@ckeditor/ckeditor5-track-changes 38.0.0-rc.1 → 38.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.
Files changed (64) hide show
  1. package/build/track-changes.js +2 -2
  2. package/package.json +3 -3
  3. package/src/commands/acceptsuggestioncommand.js +1 -1
  4. package/src/commands/discardsuggestioncommand.js +1 -1
  5. package/src/commands/executeonallsuggestionscommand.js +1 -1
  6. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  7. package/src/commands/trackchangescommand.js +1 -1
  8. package/src/integrations/alignment.js +1 -1
  9. package/src/integrations/basicstyles.js +1 -1
  10. package/src/integrations/blockquote.js +1 -1
  11. package/src/integrations/ckbox.js +1 -1
  12. package/src/integrations/codeblock.js +1 -1
  13. package/src/integrations/comments.js +1 -1
  14. package/src/integrations/deletecommand.js +1 -1
  15. package/src/integrations/documentlist.js +1 -1
  16. package/src/integrations/documentlistproperties.js +1 -1
  17. package/src/integrations/entercommand.js +1 -1
  18. package/src/integrations/findandreplace.js +1 -1
  19. package/src/integrations/font.js +1 -1
  20. package/src/integrations/formatpainter.js +1 -1
  21. package/src/integrations/heading.js +1 -1
  22. package/src/integrations/highlight.js +1 -1
  23. package/src/integrations/horizontalline.js +1 -1
  24. package/src/integrations/htmlembed.js +1 -1
  25. package/src/integrations/image.js +1 -1
  26. package/src/integrations/imagereplace.js +1 -1
  27. package/src/integrations/importword.js +1 -1
  28. package/src/integrations/indent.js +1 -1
  29. package/src/integrations/inputcommand.js +1 -1
  30. package/src/integrations/link.js +1 -1
  31. package/src/integrations/list.js +1 -1
  32. package/src/integrations/listproperties.js +1 -1
  33. package/src/integrations/mediaembed.js +1 -1
  34. package/src/integrations/mention.js +1 -1
  35. package/src/integrations/pagebreak.js +1 -1
  36. package/src/integrations/paragraph.js +1 -1
  37. package/src/integrations/removeformat.js +1 -1
  38. package/src/integrations/restrictededitingmode.js +1 -1
  39. package/src/integrations/shiftentercommand.js +1 -1
  40. package/src/integrations/standardeditingmode.js +1 -1
  41. package/src/integrations/style.js +1 -1
  42. package/src/integrations/table.js +1 -1
  43. package/src/integrations/tablecaption.js +1 -1
  44. package/src/integrations/tableclipboard.js +1 -1
  45. package/src/integrations/tablecolumnresize.js +1 -1
  46. package/src/integrations/tableheadings.js +1 -1
  47. package/src/integrations/tablemergesplit.js +1 -1
  48. package/src/integrations/tableofcontents.js +1 -1
  49. package/src/integrations/tableproperties.js +1 -1
  50. package/src/integrations/template.js +1 -1
  51. package/src/integrations/title.js +1 -1
  52. package/src/integrations/undo.js +1 -1
  53. package/src/integrations/utils.js +1 -1
  54. package/src/suggestion.js +1 -1
  55. package/src/suggestiondescriptionfactory.js +1 -1
  56. package/src/trackchanges.js +1 -1
  57. package/src/trackchangesdata.js +1 -1
  58. package/src/trackchangesediting.js +1 -1
  59. package/src/trackchangesui.js +1 -1
  60. package/src/ui/suggestioncontroller.js +1 -1
  61. package/src/ui/view/basesuggestionthreadview.js +1 -1
  62. package/src/ui/view/suggestionthreadview.js +1 -1
  63. package/src/utils/common-translations.js +1 -1
  64. package/src/utils/utils.js +1 -1
@@ -1,5 +1,5 @@
1
- !function(e){const t=e.en=e.en||{};t.dictionary=Object.assign(t.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 format to:* %0":"*Set format to:* %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_OF_CONTENTS:["table of contents","%0 tables of contents"],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 format to:* %0":"*Set format to:* %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_OF_CONTENTS:["table of contents","%0 tables of contents"],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
3
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var e={417:(e,t,n)=>{e.exports=n(720)("./src/collaboration-core.js")},704:(e,t,n)=>{e.exports=n(79)("./src/core.js")},492:(e,t,n)=>{e.exports=n(79)("./src/engine.js")},331:(e,t,n)=>{e.exports=n(79)("./src/enter.js")},181:(e,t,n)=>{e.exports=n(79)("./src/typing.js")},273:(e,t,n)=>{e.exports=n(79)("./src/ui.js")},209:(e,t,n)=>{e.exports=n(79)("./src/utils.js")},995:(e,t,n)=>{e.exports=n(79)("./src/widget.js")},720:e=>{"use strict";e.exports=CKEditor5.collaborationDll},79:e=>{"use strict";e.exports=CKEditor5.dll}},t={};function n(o){var s=t[o];if(void 0!==s)return s.exports;var r=t[o]={exports:{}};return e[o](r,r.exports,n),r.exports}n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>ac,TrackChanges:()=>Ac,TrackChangesData:()=>wc,TrackChangesEditing:()=>Wa});var e=n(704),t=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["TrackChangesCommand","value","forceDisabled","has","refresh","affectsData","_disableUnsupportedCommands","isEnabled","_enableCommands","clearForceDisabled","editor","_enabledCommands","_isEnabledBasedOnSelection"];var c,l;c=a,l=240,function(e){for(;--e;)c.push(c.shift())}(++l);const u=function(e,t){return a[e-=0]};class d extends e.Command{constructor(e,t){super(e),this[u("0x5")]=t,this.value=!1,this[u("0xb")](),this[u("0x6")]=!1}[u("0xb")](){this[u("0x1")]=!0}execute(){this[u("0x8")]=!this.value,this.value?this[u("0x0")]():this[u("0x2")]()}[u("0x0")](){for(const e of this[u("0x4")].commands.commands())e[u("0xc")]&&!this[u("0x5")].has(e)&&e[u("0x9")](u("0x7"))}[u("0x2")](){for(const e of this.editor.commands.commands())e[u("0xc")]&&!this[u("0x5")][u("0xa")](e)&&e[u("0x3")](u("0x7"))}}const g=["execute","plugins","_isEnabledBasedOnSelection","model","getRanges","_suggestions","editor","TrackChangesEditing","canEditAt","isEnabled","get","refresh"];var m,f;m=g,f=432,function(e){for(;--e;)m.push(m.shift())}(++f);const h=function(e,t){return g[e-=0]};class p extends e.Command{constructor(e,t){super(e),this._suggestions=t,this[h("0xb")](),this[h("0x2")]=!1}refresh(){this[h("0x9")]=!0}[h("0x0")](e){const n=this[h("0x5")][h("0xa")](e);if(!n)throw new t.CKEditorError("track-changes-accept-suggestion-not-found",this);const o=n[h("0x4")]();this[h("0x6")][h("0x3")][h("0x8")](o)&&this[h("0x6")][h("0x1")].get(h("0x7")).acceptSuggestion(n)}}const b=["canEditAt","get","refresh","plugins","editor","isEnabled","_suggestions","execute","_isEnabledBasedOnSelection","getRanges"];var E,_;E=b,_=134,function(e){for(;--e;)E.push(E.shift())}(++_);const T=function(e,t){return b[e-=0]};class C extends e.Command{constructor(e,t){super(e),this[T("0x2")]=t,this[T("0x8")](),this[T("0x4")]=!1}[T("0x8")](){this[T("0x1")]=!0}[T("0x3")](e){const n=this[T("0x2")].get(e);if(!n)throw new t.CKEditorError("track-changes-discard-suggestion-not-found",this);const o=n[T("0x5")]();this.editor.model[T("0x6")](o)&&this[T("0x0")][T("0x9")][T("0x7")]("TrackChangesEditing").discardSuggestion(n)}}const y=["deletion","from","push"," [color ","map","isIntersecting","add","createRange","replace","join","isObject","content","type","createPositionAfter","createPositionBefore","schema","isInContent","isArray","start","sort","length","getRanges","getRange","execute","color","value","end","isTouching"];var k,A;k=y,A=144,function(e){for(;--e;)k.push(k.shift())}(++A);const v=function(e,t){return y[e-=0]};function R(e){return e[v("0xf")](((e,t)=>"deletion"==e[v("0x8")]&&v("0x18")!=t[v("0x8")]?-1:"deletion"!=e[v("0x8")]&&v("0x18")==t[v("0x8")]?1:0))}function S(e,t){let n,o=0;const s=[],r=t[v("0xb")];for(;o<e[v("0x10")];){const i=e[o],x=e[o+1];n||(n=t[v("0xa")](i)),I(t,i,x)||(s[v("0x1a")](t[v("0x3")](n,r[v("0x6")](i)?t[v("0x9")](i):t.createPositionAt(i,"end"))),n=null),o++}return s}function I(e,t,n){if(!n)return!1;const o=e[v("0x9")](t),s=e[v("0xa")](n);return o[v("0x17")](s)}function L(e,t,n){for(;n[v("0x10")];){const o=n.splice(0,100);e.change((()=>{for(const e of o)e[v("0xc")]&&t[v("0x13")](e.id)}))}}const N=["refresh","execute","editor","some","values","_isEnabledBasedOnSelection","isInContent","isEnabled","from","_command","canEditAt","model","_suggestions","getRanges"];var w,M;w=N,M=379,function(e){for(;--e;)w.push(w.shift())}(++M);const O=function(e,t){return N[e-=0]};class F extends e.Command{constructor(e,t,n){super(e),this[O("0x8")]=t,this[O("0xb")]=n,this[O("0xd")](),this[O("0x4")]=!1}[O("0xd")](){const e=Array[O("0x7")](this[O("0xb")][O("0x3")]())[O("0x2")]((e=>e[O("0x5")]));this[O("0x6")]=this[O("0x8")].isEnabled&&e}[O("0x0")](){const e=R(Array[O("0x7")](this[O("0xb")][O("0x3")]()));for(const t of e){const e=t[O("0xc")]();if(!this.editor[O("0xa")][O("0x9")](e))return}L(this[O("0x1")][O("0xa")],this[O("0x8")],e)}}const P=["model","isEnabled","document","editor","from","_isEnabledBasedOnSelection","getRanges","_selectedSuggestions","refresh","size","_command","values","_suggestions"];var D,B;D=P,B=201,function(e){for(;--e;)D.push(D.shift())}(++B);const j=function(e,t){return P[e-=0]};class U extends e.Command{constructor(e,t,n){super(e),this._command=t,this._suggestions=n,this[j("0x1")]=new Set,this[j("0x2")](),this[j("0xc")]=!1}[j("0x2")](){const e=this[j("0xa")][j("0x7")][j("0x9")].selection,t=Array[j("0xb")](this[j("0x6")][j("0x5")]());this[j("0x1")]=function(e,t){const n=Array[v("0x19")](e[v("0x11")]()),o=new Set;for(const s of t)if(s.isInContent)for(const t of n)for(const n of s.getMarkers()){const r=n[v("0x12")]();(t[v("0x1")](r)||e.isCollapsed&&!s.isMultiRange&&s.next&&r[v("0x16")][v("0x17")](t[v("0xe")]))&&o[v("0x2")](s)}return o}(e,t),this[j("0x8")]=this._command[j("0x8")]&&!!this._selectedSuggestions[j("0x3")]}execute(){const e=R(Array[j("0xb")](this[j("0x1")]));for(const t of e){const e=t[j("0x0")]();if(!this[j("0xa")][j("0x7")].canEditAt(e))return}L(this[j("0xa")].model,this[j("0x4")],e)}}const G=function(){this.__data__=[],this.size=0};const H=function(e,t){return e===t||e!=e&&t!=t};const z=function(e,t){for(var n=e.length;n--;)if(H(e[n][0],t))return n;return-1};var W=Array.prototype.splice;const V=function(e){var t=this.__data__,n=z(t,e);return!(n<0)&&(n==t.length-1?t.pop():W.call(t,n,1),--this.size,!0)};const K=function(e){var t=this.__data__,n=z(t,e);return n<0?void 0:t[n][1]};const q=function(e){return z(this.__data__,e)>-1};const X=function(e,t){var n=this.__data__,o=z(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this};function $(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const Q=$;const J=function(){this.__data__=new Q,this.size=0};const Z=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};const Y=function(e){return this.__data__.get(e)};const ee=function(e){return this.__data__.has(e)};const te="object"==typeof global&&global&&global.Object===Object&&global;var ne="object"==typeof self&&self&&self.Object===Object&&self;const oe=te||ne||Function("return this")();const se=oe.Symbol;var re=Object.prototype,ie=re.hasOwnProperty,xe=re.toString,ae=se?se.toStringTag:void 0;const ce=function(e){var t=ie.call(e,ae),n=e[ae];try{e[ae]=void 0;var o=!0}catch(e){}var s=xe.call(e);return o&&(t?e[ae]=n:delete e[ae]),s};var le=Object.prototype.toString;const ue=function(e){return le.call(e)};var de=se?se.toStringTag:void 0;const ge=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":de&&de in Object(e)?ce(e):ue(e)};const me=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};const fe=function(e){if(!me(e))return!1;var t=ge(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};const he=oe["__core-js_shared__"];var pe,be=(pe=/[^.]+$/.exec(he&&he.keys&&he.keys.IE_PROTO||""))?"Symbol(src)_1."+pe:"";const Ee=function(e){return!!be&&be in e};var _e=Function.prototype.toString;const Te=function(e){if(null!=e){try{return _e.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var Ce=/^\[object .+?Constructor\]$/,ye=Function.prototype,ke=Object.prototype,Ae=ye.toString,ve=ke.hasOwnProperty,Re=RegExp("^"+Ae.call(ve).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Se=function(e){return!(!me(e)||Ee(e))&&(fe(e)?Re:Ce).test(Te(e))};const Ie=function(e,t){return null==e?void 0:e[t]};const Le=function(e,t){var n=Ie(e,t);return Se(n)?n:void 0};const Ne=Le(oe,"Map");const we=Le(Object,"create");const Me=function(){this.__data__=we?we(null):{},this.size=0};const Oe=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t};var Fe=Object.prototype.hasOwnProperty;const Pe=function(e){var t=this.__data__;if(we){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Fe.call(t,e)?t[e]:void 0};var De=Object.prototype.hasOwnProperty;const Be=function(e){var t=this.__data__;return we?void 0!==t[e]:De.call(t,e)};const je=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=we&&void 0===t?"__lodash_hash_undefined__":t,this};function Ue(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}Ue.prototype.clear=Me,Ue.prototype.delete=Oe,Ue.prototype.get=Pe,Ue.prototype.has=Be,Ue.prototype.set=je;const Ge=Ue;const He=function(){this.size=0,this.__data__={hash:new Ge,map:new(Ne||Q),string:new Ge}};const ze=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};const We=function(e,t){var n=e.__data__;return ze(t)?n["string"==typeof t?"string":"hash"]:n.map};const Ve=function(e){var t=We(this,e).delete(e);return this.size-=t?1:0,t};const Ke=function(e){return We(this,e).get(e)};const qe=function(e){return We(this,e).has(e)};const Xe=function(e,t){var n=We(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this};function $e(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}$e.prototype.clear=He,$e.prototype.delete=Ve,$e.prototype.get=Ke,$e.prototype.has=qe,$e.prototype.set=Xe;const Qe=$e;const Je=function(e,t){var n=this.__data__;if(n instanceof Q){var o=n.__data__;if(!Ne||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new Qe(o)}return n.set(e,t),this.size=n.size,this};function Ze(e){var t=this.__data__=new Q(e);this.size=t.size}Ze.prototype.clear=J,Ze.prototype.delete=Z,Ze.prototype.get=Y,Ze.prototype.has=ee,Ze.prototype.set=Je;const Ye=Ze;const et=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o&&!1!==t(e[n],n,e););return e};const tt=function(){try{var e=Le(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();const nt=function(e,t,n){"__proto__"==t&&tt?tt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var ot=Object.prototype.hasOwnProperty;const st=function(e,t,n){var o=e[t];ot.call(e,t)&&H(o,n)&&(void 0!==n||t in e)||nt(e,t,n)};const rt=function(e,t,n,o){var s=!n;n||(n={});for(var r=-1,i=t.length;++r<i;){var x=t[r],a=o?o(n[x],e[x],x,n,e):void 0;void 0===a&&(a=e[x]),s?nt(n,x,a):st(n,x,a)}return n};const it=function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o};const xt=function(e){return null!=e&&"object"==typeof e};const at=function(e){return xt(e)&&"[object Arguments]"==ge(e)};var ct=Object.prototype,lt=ct.hasOwnProperty,ut=ct.propertyIsEnumerable;const dt=at(function(){return arguments}())?at:function(e){return xt(e)&&lt.call(e,"callee")&&!ut.call(e,"callee")};const gt=Array.isArray;const mt=function(){return!1};var ft="object"==typeof exports&&exports&&!exports.nodeType&&exports,ht=ft&&"object"==typeof module&&module&&!module.nodeType&&module,pt=ht&&ht.exports===ft?oe.Buffer:void 0;const bt=(pt?pt.isBuffer:void 0)||mt;var Et=/^(?:0|[1-9]\d*)$/;const _t=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Et.test(e))&&e>-1&&e%1==0&&e<t};const Tt=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var Ct={};Ct["[object Float32Array]"]=Ct["[object Float64Array]"]=Ct["[object Int8Array]"]=Ct["[object Int16Array]"]=Ct["[object Int32Array]"]=Ct["[object Uint8Array]"]=Ct["[object Uint8ClampedArray]"]=Ct["[object Uint16Array]"]=Ct["[object Uint32Array]"]=!0,Ct["[object Arguments]"]=Ct["[object Array]"]=Ct["[object ArrayBuffer]"]=Ct["[object Boolean]"]=Ct["[object DataView]"]=Ct["[object Date]"]=Ct["[object Error]"]=Ct["[object Function]"]=Ct["[object Map]"]=Ct["[object Number]"]=Ct["[object Object]"]=Ct["[object RegExp]"]=Ct["[object Set]"]=Ct["[object String]"]=Ct["[object WeakMap]"]=!1;const yt=function(e){return xt(e)&&Tt(e.length)&&!!Ct[ge(e)]};const kt=function(e){return function(t){return e(t)}};var At="object"==typeof exports&&exports&&!exports.nodeType&&exports,vt=At&&"object"==typeof module&&module&&!module.nodeType&&module,Rt=vt&&vt.exports===At&&te.process;const St=function(){try{var e=vt&&vt.require&&vt.require("util").types;return e||Rt&&Rt.binding&&Rt.binding("util")}catch(e){}}();var It=St&&St.isTypedArray;const Lt=It?kt(It):yt;var Nt=Object.prototype.hasOwnProperty;const wt=function(e,t){var n=gt(e),o=!n&&dt(e),s=!n&&!o&&bt(e),r=!n&&!o&&!s&&Lt(e),i=n||o||s||r,x=i?it(e.length,String):[],a=x.length;for(var c in e)!t&&!Nt.call(e,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_t(c,a))||x.push(c);return x};var Mt=Object.prototype;const Ot=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Mt)};const Ft=function(e,t){return function(n){return e(t(n))}};const Pt=Ft(Object.keys,Object);var Dt=Object.prototype.hasOwnProperty;const Bt=function(e){if(!Ot(e))return Pt(e);var t=[];for(var n in Object(e))Dt.call(e,n)&&"constructor"!=n&&t.push(n);return t};const jt=function(e){return null!=e&&Tt(e.length)&&!fe(e)};const Ut=function(e){return jt(e)?wt(e):Bt(e)};const Gt=function(e,t){return e&&rt(t,Ut(t),e)};const Ht=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t};var zt=Object.prototype.hasOwnProperty;const Wt=function(e){if(!me(e))return Ht(e);var t=Ot(e),n=[];for(var o in e)("constructor"!=o||!t&&zt.call(e,o))&&n.push(o);return n};const Vt=function(e){return jt(e)?wt(e,!0):Wt(e)};const Kt=function(e,t){return e&&rt(t,Vt(t),e)};var qt="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xt=qt&&"object"==typeof module&&module&&!module.nodeType&&module,$t=Xt&&Xt.exports===qt?oe.Buffer:void 0,Qt=$t?$t.allocUnsafe:void 0;const Jt=function(e,t){if(t)return e.slice();var n=e.length,o=Qt?Qt(n):new e.constructor(n);return e.copy(o),o};const Zt=function(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t};const Yt=function(e,t){for(var n=-1,o=null==e?0:e.length,s=0,r=[];++n<o;){var i=e[n];t(i,n,e)&&(r[s++]=i)}return r};const en=function(){return[]};var tn=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(e){return null==e?[]:(e=Object(e),Yt(nn(e),(function(t){return tn.call(e,t)})))}:en;const sn=function(e,t){return rt(e,on(e),t)};const rn=function(e,t){for(var n=-1,o=t.length,s=e.length;++n<o;)e[s+n]=t[n];return e};const xn=Ft(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)rn(t,on(e)),e=xn(e);return t}:en;const cn=function(e,t){return rt(e,an(e),t)};const ln=function(e,t,n){var o=t(e);return gt(e)?o:rn(o,n(e))};const un=function(e){return ln(e,Ut,on)};const dn=function(e){return ln(e,Vt,an)};const gn=Le(oe,"DataView");const mn=Le(oe,"Promise");const fn=Le(oe,"Set");const hn=Le(oe,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Te(gn),yn=Te(Ne),kn=Te(mn),An=Te(fn),vn=Te(hn),Rn=ge;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Ne&&Rn(new Ne)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(e){var t=ge(e),n="[object Object]"==t?e.constructor:void 0,o=n?Te(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 t});const Sn=Rn;var In=Object.prototype.hasOwnProperty;const Ln=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&In.call(e,"index")&&(n.index=e.index,n.input=e.input),n};const Nn=oe.Uint8Array;const wn=function(e){var t=new e.constructor(e.byteLength);return new Nn(t).set(new Nn(e)),t};const Mn=function(e,t){var n=t?wn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)};var On=/\w*$/;const Fn=function(e){var t=new e.constructor(e.source,On.exec(e));return t.lastIndex=e.lastIndex,t};var Pn=se?se.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(e){return Dn?Object(Dn.call(e)):{}};const jn=function(e,t){var n=t?wn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};const Un=function(e,t,n){var o=e.constructor;switch(t){case"[object ArrayBuffer]":return wn(e);case"[object Boolean]":case"[object Date]":return new o(+e);case"[object DataView]":return Mn(e,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(e,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(e);case"[object RegExp]":return Fn(e);case"[object Symbol]":return Bn(e)}};var Gn=Object.create;const Hn=function(){function e(){}return function(t){if(!me(t))return{};if(Gn)return Gn(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const zn=function(e){return"function"!=typeof e.constructor||Ot(e)?{}:Hn(xn(e))};const Wn=function(e){return xt(e)&&"[object Map]"==Sn(e)};var Vn=St&&St.isMap;const Kn=Vn?kt(Vn):Wn;const qn=function(e){return xt(e)&&"[object Set]"==Sn(e)};var Xn=St&&St.isSet;const $n=Xn?kt(Xn):qn;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 eo=function e(t,n,o,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(t,s,r,i):o(t)),void 0!==x)return x;if(!me(t))return t;var u=gt(t);if(u){if(x=Ln(t),!a)return Zt(t,x)}else{var d=Sn(t),g=d==Jn||"[object GeneratorFunction]"==d;if(bt(t))return Jt(t,a);if(d==Zn||d==Qn||g&&!r){if(x=c||g?{}:zn(t),!a)return c?cn(t,Kt(x,t)):sn(t,Gt(x,t))}else{if(!Yn[d])return r?t:{};x=Un(t,d,a)}}i||(i=new Ye);var m=i.get(t);if(m)return m;i.set(t,x),$n(t)?t.forEach((function(s){x.add(e(s,n,o,s,t,i))})):Kn(t)&&t.forEach((function(s,r){x.set(r,e(s,n,o,r,t,i))}));var f=u?void 0:(l?c?dn:un:c?Vt:Ut)(t);return et(f||t,(function(s,r){f&&(s=t[r=s]),st(x,r,e(s,n,o,r,t,i))})),x};const to=function(e){return eo(e,5)};const no=function(e){return"symbol"==typeof e||xt(e)&&"[object Symbol]"==ge(e)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(e,t){if(gt(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!no(e))||(so.test(e)||!oo.test(e)||null!=t&&e in Object(t))};function io(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=t?t.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=e.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Qe),n}io.Cache=Qe;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(e){var t=xo(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ao,(function(e,n,o,s){t.push(o?s.replace(co,"$1"):n||e)})),t}));const uo=function(e,t){for(var n=-1,o=null==e?0:e.length,s=Array(o);++n<o;)s[n]=t(e[n],n,e);return s};var go=se?se.prototype:void 0,mo=go?go.toString:void 0;const fo=function e(t){if("string"==typeof t)return t;if(gt(t))return uo(t,e)+"";if(no(t))return mo?mo.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n};const ho=function(e){return null==e?"":fo(e)};const po=function(e,t){return gt(e)?e:ro(e,t)?[e]:lo(ho(e))};const bo=function(e){if("string"==typeof e||no(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};const Eo=function(e,t,n,o){if(!me(e))return e;for(var s=-1,r=(t=po(t,e)).length,i=r-1,x=e;null!=x&&++s<r;){var a=bo(t[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return e;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=me(l)?l:_t(t[s+1])?[]:{})}st(x,a,c),x=x[a]}return e};const _o=function(e,t,n){return null==e?e:Eo(e,t,n)};const To=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};const Co=function(e){return this.__data__.has(e)};function yo(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Qe;++t<n;)this.add(e[t])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1};const vo=function(e,t){return e.has(t)};const Ro=function(e,t,n,o,s,r){var i=1&n,x=e.length,a=t.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(e),l=r.get(t);if(c&&l)return c==t&&l==e;var u=-1,d=!0,g=2&n?new ko:void 0;for(r.set(e,t),r.set(t,e);++u<x;){var m=e[u],f=t[u];if(o)var h=i?o(f,m,u,t,e,r):o(m,f,u,e,t,r);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!Ao(t,(function(e,t){if(!vo(g,t)&&(m===e||s(m,e,n,o,r)))return g.push(t)}))){d=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){d=!1;break}}return r.delete(e),r.delete(t),d};const So=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,o){n[++t]=[o,e]})),n};const Io=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n};var Lo=se?se.prototype:void 0,No=Lo?Lo.valueOf:void 0;const wo=function(e,t,n,o,s,r,i){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!r(new Nn(e),new Nn(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var x=So;case"[object Set]":var a=1&o;if(x||(x=Io),e.size!=t.size&&!a)return!1;var c=i.get(e);if(c)return c==t;o|=2,i.set(e,t);var l=Ro(x(e),x(t),o,s,r,i);return i.delete(e),l;case"[object Symbol]":if(No)return No.call(e)==No.call(t)}return!1};var Mo=Object.prototype.hasOwnProperty;const Oo=function(e,t,n,o,s,r){var i=1&n,x=un(e),a=x.length;if(a!=un(t).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in t:Mo.call(t,l)))return!1}var u=r.get(e),d=r.get(t);if(u&&d)return u==t&&d==e;var g=!0;r.set(e,t),r.set(t,e);for(var m=i;++c<a;){var f=e[l=x[c]],h=t[l];if(o)var p=i?o(h,f,l,t,e,r):o(f,h,l,e,t,r);if(!(void 0===p?f===h||s(f,h,n,o,r):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=e.constructor,E=t.constructor;b==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(e),r.delete(t),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(e,t,n,o,s,r){var i=gt(e),x=gt(t),a=i?Po:Sn(e),c=x?Po:Sn(t),l=(a=a==Fo?Do:a)==Do,u=(c=c==Fo?Do:c)==Do,d=a==c;if(d&&bt(e)){if(!bt(t))return!1;i=!0,l=!1}if(d&&!l)return r||(r=new Ye),i||Lt(e)?Ro(e,t,n,o,s,r):wo(e,t,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(e,"__wrapped__"),m=u&&Bo.call(t,"__wrapped__");if(g||m){var f=g?e.value():e,h=m?t.value():t;return r||(r=new Ye),s(f,h,n,o,r)}}return!!d&&(r||(r=new Ye),Oo(e,t,n,o,s,r))};const Uo=function e(t,n,o,s,r){return t===n||(null==t||null==n||!xt(t)&&!xt(n)?t!=t&&n!=n:jo(t,n,o,s,e,r))};const Go=function(e,t){return Uo(e,t)};const Ho=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};const zo=function(e,t){for(var n=0,o=(t=po(t,e)).length;null!=e&&n<o;)e=e[bo(t[n++])];return n&&n==o?e:void 0};const Wo=function(e,t,n){var o=-1,s=e.length;t<0&&(t=-t>s?0:s+t),(n=n>s?s:n)<0&&(n+=s),s=t>n?0:n-t>>>0,t>>>=0;for(var r=Array(s);++o<s;)r[o]=e[o+t];return r};const Vo=function(e,t){return t.length<2?e:zo(e,Wo(t,0,-1))};const Ko=function(e,t){return t=po(t,e),null==(e=Vo(e,t))||delete e[bo(Ho(t))]};const qo=function(e,t){return null==e||Ko(e,t)},Xo=["get","split","addMarker","_onAttributesChange","change","head","set","accept","length","setAttribute","_onDiscard","_markerNames","discard","filter","hasComments","getFirstRange","toJSON","next","getContainedElement","nodeBefore","push","createdAt","markers","decorate","isMultiRange","map","getMarkerNames","data","getMarkers","@external","getAllAdjacentSuggestions","commentThread","from","type","previous","onDiscard","isIntersecting","removeMarkers","addMarkerName","getRanges","subType","removeMarker","addRange","_onAccept","getFirstMarker","getMultiRangeId","removeAttribute","nodeAfter","_model","creator","onAttributesChange","attributes","suggestion:","isInContent","author","getRange","_saved","add"];var $o,Qo;$o=Xo,Qo=473,function(e){for(;--e;)$o.push($o.shift())}(++Qo);const Jo=function(e,t){return Xo[e-=0]};class Zo extends((0,t.ObservableMixin)()){constructor(e,t){super(),this.id=t.id,this[Jo("0x18")]=t.type,this.subType=t[Jo("0x1f")]||null,this[Jo("0x2d")]=t[Jo("0x2d")],this.creator=t.creator||t[Jo("0x2d")],this.isExternal=Boolean(t[Jo("0x2a")]&&t[Jo("0x2a")][Jo("0x14")]),this.data=null,this[Jo("0x27")]=e,this[Jo("0x22")]=t.onAccept,this[Jo("0x1")]=t[Jo("0x1a")],this._onAttributesChange=t[Jo("0x29")],this[Jo("0x2")]=new Set,this.createdAt=null,this[Jo("0x37")]("authoredAt",null),this[Jo("0x37")](Jo("0x2a"),t[Jo("0x2a")]||{}),this[Jo("0x37")](Jo("0x19"),null),this[Jo("0x37")](Jo("0x8"),null),this[Jo("0x37")]("commentThread",null),this[Jo("0x37")](Jo("0x2f"),!1),this.decorate(Jo("0x38")),this[Jo("0xe")](Jo("0x3"))}get[Jo("0x36")](){let e=this;for(;e[Jo("0x19")];)e=e.previous;return e}get hasComments(){return!!this[Jo("0x16")]&&this[Jo("0x16")].length>0}get[Jo("0xf")](){return 0!=this._markerNames.size&&6==Array[Jo("0x17")](this._markerNames)[0][Jo("0x32")](":").length}get[Jo("0x2c")](){return null!==this[Jo("0x23")]()}[Jo("0x1d")](e){this[Jo("0x2")][Jo("0x30")](e)}[Jo("0x11")](){return Array[Jo("0x17")](this[Jo("0x2")])}[Jo("0x13")](){return this[Jo("0x11")]()[Jo("0x10")]((e=>this._model[Jo("0xd")][Jo("0x31")](e)))[Jo("0x4")]((e=>e))}[Jo("0x23")](){return this[Jo("0x13")]()[0]||null}[Jo("0x1c")](){this[Jo("0x27")][Jo("0x35")]((e=>{for(const t of this[Jo("0x13")]())e[Jo("0x20")](t)})),this[Jo("0x2")].clear()}[Jo("0x20")](e){this[Jo("0x27")][Jo("0x35")]((t=>{t[Jo("0x20")](e)})),this._markerNames.delete(e)}[Jo("0x21")](e){const t=Jo("0x2b")+this.type+":"+this.subType+":"+this.id+":"+this[Jo("0x28")].id+":"+Zo[Jo("0x24")]();this[Jo("0x1d")](t),this[Jo("0x27")].change((n=>{n[Jo("0x33")](t,{range:e,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(e){for(const t of this[Jo("0x1e")]())if(t[Jo("0x1b")](e))return!0;return!1}[Jo("0x1e")](){return this[Jo("0x13")]()[Jo("0x10")]((e=>e[Jo("0x2e")]()))}getItems(){return this[Jo("0x1e")]().reduce(((e,t)=>[...e,...t.getItems()]),[])}[Jo("0x6")](){var e;return(null===(e=this.getFirstMarker())||void 0===e?void 0:e[Jo("0x2e")]())||null}[Jo("0x9")](){const e=this[Jo("0x1e")]();if(1!=e[Jo("0x39")])return null;const t=e[0],n=t.start[Jo("0x26")],o=t.end[Jo("0xa")];return n instanceof i.Element?n!=o?null:n:null}[Jo("0x38")](){this[Jo("0x22")](this.getRanges(),this.data,this[Jo("0x2a")]),this.removeMarkers()}[Jo("0x3")](){this._onDiscard(this[Jo("0x1e")](),this.data,this.attributes),this[Jo("0x1c")]()}[Jo("0x15")](){const e=[];let t=this[Jo("0x36")];for(;t;)e[Jo("0xb")](t),t=t.next;return e}[Jo("0x0")](e,t){const n=to(this[Jo("0x2a")]);_o(n,e,t),Go(n,this[Jo("0x2a")])||(this[Jo("0x2a")]=n,this[Jo("0x34")](n))}[Jo("0x25")](e){const t=to(this[Jo("0x2a")]);qo(t,e),Go(t,this[Jo("0x2a")])||(this.attributes=t,this[Jo("0x34")](this[Jo("0x2a")]))}[Jo("0x7")](){return{id:this.id,type:this[Jo("0x1f")]?this.type+":"+this[Jo("0x1f")]:this[Jo("0x18")],authorId:this[Jo("0x28")].id,createdAt:this[Jo("0xc")],hasComments:this[Jo("0x5")],data:this[Jo("0x12")],attributes:this[Jo("0x2a")]}}static[Jo("0x24")](){return(0,t.uid)().substr(1,5)}}function Yo(e,t,n){const o=e.t;switch(t){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 format to:* %0":return o("*Set format to:* %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_TABLE_OF_CONTENTS":return o({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},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);default:return t}}const es=["registerElementLabel","indexOf","isInContent","item","elementEnd","ELEMENT_SPACE","_locale","checkChild","previousSibling","Container","remove","REPLACE_TEXT","isEqual","matchingCallback","_schema","label","_itemLabelsCallbacks","add","*Merge:* %0","Object","*Remove:* %0","push","*Insert:* %0","_addDescriptionItems","data","removeContainer","replace","element","start","_itemLabels","normal","addEmptyContainer","nextSibling","length","*Split:* %0","getWalker","getItemLabel","type","insertion","pop","deletion","_resolveDescriptionItems","$text","match","$textProxy","set","text","name","removeEmptyContainer","$1 $2","isEmpty","quantity","registerDescriptionCallback","function","getFirstRange","skip","isObject","_customCallbacks"];var ts,ns;ts=es,ns=475,function(e){for(;--e;)ts.push(ts.shift())}(++ns);const os=function(e,t){return es[e-=0]};class ss{constructor(e,t){this[os("0x2e")]=[],this[os("0x12")]=new Map,this[os("0x5")]=[],this._schema=e,this._locale=t}getDescriptions(e){const t=[];for(let n=0;n<e[os("0x16")];n++){const o=e[n];if(!o[os("0x31")])continue;let s=!1;for(const e of this[os("0x2e")]){const n=e(o);if(n){"type"in n&&t.push(n),s=!0;break}}if(!s){this._addDescriptionItems(t,o);const s=e[n+1];if(s&&!o[os("0x2b")]().end[os("0x1")](s[os("0x2b")]()[os("0x11")])){const e=t[t[os("0x16")]-1],n=os("0x1b")==o[os("0x1a")]?os("0x6"):os("0x39");e&&os("0x23")==e[os("0x1a")]&&(e[n]+="\n")}}}return this._resolveDescriptionItems(t)}[os("0x29")](e){this[os("0x2e")][os("0xa")](e)}[os("0x2f")](e,n,o=t.priorities[os("0x13")]){os("0x2a")==typeof e?(0,t.insertToPriorityArray)(this[os("0x5")],{matchingCallback:e,label:n,priority:o}):this[os("0x12")][os("0x22")](e,n)}[os("0x19")](e,t=1){let n;for(const t of this[os("0x5")])if(t[os("0x2")](e)){n=t[os("0x4")];break}return n||(n=this[os("0x12")].get(e.name)),n?n(t):1!==t?t+" "+e[os("0x24")]+"s":""+e[os("0x24")]}[os("0xc")](e,t){const n=t[os("0x2b")]()[os("0x18")](),o="insertion"==t.type?os("0x6"):os("0x39");for(const t of n){const s=t[os("0x32")],r=e[e[os("0x16")]-1];if(s.is(os("0x21")))r&&r.type.indexOf("Container")>-1&&e[os("0x1c")](),r&&os("0x23")==r[os("0x1a")]?r[o]+=s[os("0xd")]:e[os("0xa")]({type:os("0x23"),add:os("0x6")==o?s[os("0xd")]:"",remove:"remove"==o?s.data:""});else if(this[os("0x3")][os("0x2d")](s)){const i=s;if(r&&r[os("0x1a")][os("0x30")]("Container")>-1&&e[os("0x1c")](),os("0x33")==t[os("0x1a")])continue;r&&r[os("0x1a")]==o+os("0x8")&&r[os("0x10")][os("0x24")]==i[os("0x24")]?r[os("0x28")]++:e[os("0xa")]({type:o+os("0x8"),element:i,quantity:1}),n[os("0x2c")]((e=>!(os("0x33")==e[os("0x1a")]&&e[os("0x32")]==s)))}else if(this[os("0x3")][os("0x36")](s,os("0x1f"))||s.is(os("0x10"),"softBreak")){const n=s;if(os("0x6")==o&&"elementStart"==t[os("0x1a")]||os("0x39")==o&&os("0x33")==t[os("0x1a")])continue;if(r&&-1==r[os("0x1a")][os("0x30")]("Container")){os("0x23")==r[os("0x1a")]&&(r[o]+="\n");continue}let i;if(i=os("0x6")==o?n[os("0x15")]&&!this[os("0x3")][os("0x2d")](n[os("0x15")])?n[os("0x15")]:null:n[os("0x37")]&&!this[os("0x3")][os("0x2d")](n.previousSibling)?n[os("0x37")]:null,n[os("0x27")]||i&&i.isEmpty){const t=i&&i[os("0x27")]?i:n;r&&r[os("0x1a")]==o+"EmptyContainer"&&r[os("0x10")][os("0x24")]==t[os("0x24")]?r[os("0x28")]++:e[os("0xa")]({type:o+"EmptyContainer",element:t,quantity:1})}else e[os("0xa")]({type:o+os("0x38"),element:n})}}}[os("0x1e")](e){const t=this[os("0x35")],n=[];for(const o of e){switch(o[os("0x1a")]){case os("0x23"):if(o[os("0x6")]=o.add.replace(/(\S)\u000A+(\S)/g,os("0x26")).replace(/\u000A/g,""),o[os("0x39")]=o[os("0x39")][os("0xf")](/(\S)\u000A+(\S)/g,os("0x26")).replace(/\u000A/g,""),""!=o[os("0x6")]&&""!=o[os("0x39")]){n[os("0xa")]({type:"replace",content:Yo(t,os("0x0"),['"'+o.remove+'"','"'+o[os("0x6")]+'"'])});continue}if(null!=o[os("0x6")][os("0x20")](/^ +$/)){n[os("0xa")]({type:os("0x1b"),content:Yo(t,os("0xb"),Yo(t,os("0x34"),o.add[os("0x16")]))});continue}if(null!=o[os("0x39")][os("0x20")](/^ +$/)){n.push({type:os("0x1d"),content:Yo(t,os("0x9"),Yo(t,os("0x34"),o[os("0x39")][os("0x16")]))});continue}if(""!=o.add){n.push({type:os("0x1b"),content:Yo(t,os("0xb"),'"'+o.add+'"')});continue}n[os("0xa")]({type:os("0x1d"),content:Yo(t,os("0x9"),'"'+o.remove+'"')});continue;case os("0x14"):case"addObject":n[os("0xa")]({type:os("0x1b"),content:Yo(t,"*Insert:* %0",this[os("0x19")](o.element,o[os("0x28")]))});continue;case os("0x25"):case"removeObject":n[os("0xa")]({type:"deletion",content:Yo(t,"*Remove:* %0",this[os("0x19")](o[os("0x10")],o.quantity))});continue;case"addContainer":n[os("0xa")]({type:os("0x1b"),content:Yo(t,os("0x17"),this[os("0x19")](o[os("0x10")],o.quantity))});continue;case os("0xe"):n[os("0xa")]({type:os("0x1d"),content:Yo(t,os("0x7"),this[os("0x19")](o[os("0x10")],o[os("0x28")]))});continue}n.push(o)}return n}}const rs=["markBlockFormat","center","afterInit","selection","change","locale","document","get","FORMAT_JUSTIFY_TEXT","alignment","right","value","plugins","justify","checkAttribute","getAttribute","TrackChangesEditing","_descriptionFactory","commandName","has","format","filter","editor","left","enableCommand","from","registerDescriptionCallback","model","AlignmentEditing","commandParams","contentLanguageDirection","getSelectedBlocks"];var is,xs;is=rs,xs=206,function(e){for(;--e;)is.push(is.shift())}(++xs);const as=function(e,t){return rs[e-=0]};class cs extends e.Plugin{[as("0x14")](){const e=this[as("0x8")],t=e[as("0x17")];if(!e.plugins[as("0x5")](as("0xe")))return;const n=e[as("0x1e")][as("0x19")](as("0x2"));n[as("0xa")](as("0x1b"),((t,o={})=>{let s=o[as("0x1d")];o[as("0x1d")]||(s="ltr"===e[as("0x17")][as("0x10")]?as("0x9"):as("0x1c"));const r=Array[as("0xb")](this[as("0x8")][as("0xd")][as("0x18")][as("0x15")][as("0x11")]())[as("0x7")]((e=>function(e,t,n){const o=e[as("0x1")](as("0x1b"))||null;return t[as("0x0")](e,"alignment")&&n!=o}(e,this[as("0x8")][as("0xd")].schema,s)));e[as("0xd")][as("0x16")]((()=>{for(const e of r)n[as("0x12")](e,{commandName:as("0x1b"),commandParams:[{value:s}]})}))})),n[as("0x3")][as("0xc")]((e=>{const{data:n}=e;if(n&&as("0x1b")==n[as("0x4")]){const e=n[as("0xf")][0][as("0x1d")];return{type:as("0x6"),content:Yo(t,"*Format:* %0",function(e){switch(e){case as("0x9"):return Yo(t,"FORMAT_ALIGN_TO_LEFT");case as("0x1c"):return Yo(t,"FORMAT_ALIGN_TO_RIGHT");case as("0x13"):return Yo(t,"FORMAT_ALIGN_TO_CENTER");case as("0x1f"):return Yo(t,as("0x1a"))}}(e))}}}))}}const ls=["toViewPosition","writer","isBlock","ck-suggestion-marker-","elementEnd","previousPosition","item","addClass","isAtEnd","markerRange","span","addHighlight","type","test","bindElementToMarker","get","getItems","push","getCustomProperty","activeMarkers","start","insert","isContent","hasAttribute","nextSibling","element","listIndent","parent","TrackChangesEditing","schema","listItem","toViewElement","createUIElement","createRangeOn","name","mapper","markerName","consumable","model"];var us,ds;us=ls,ds=224,function(e){for(;--e;)us.push(us.shift())}(++ds);const gs=function(e,t){return ls[e-=0]};function ms(e,t,n){const o=[];for(const s of t[gs("0x1a")]())s[gs("0x21")](e)&&o[gs("0x1b")](n[gs("0x4")](s));return o}function fs(e){const t=[];if(e.is(gs("0x23"),gs("0x1"))){let n=e[gs("0x22")];for(;n&&n.is("element",gs("0x1"))&&n.getAttribute(gs("0x24"))>0;)t.push(n),n=n[gs("0x22")]}return t}function hs(e,t,{showActiveMarker:n=!0}={}){const o=e.plugins[gs("0x19")](gs("0x26"));return(s,r,i)=>{if(!i[gs("0x8")][gs("0x17")](r[gs("0x13")],s[gs("0x5")]))return;const x=r[gs("0x13")].getWalker(),a=r[gs("0x13")][gs("0x1e")],c=e[gs("0x9")][gs("0x0")];let l=null,u=null,d=!1,g=!1;for(const e of x){const t=e[gs("0x10")];d=d||c[gs("0x20")](t);const n=i[gs("0x6")][gs("0x2")](t);if(n&&n[gs("0x1c")](gs("0x15")))return;gs("0xe")==e[gs("0x16")]&&c[gs("0xc")](t)&&!c.isLimit(t)&&(t[gs("0x22")]||a[gs("0x12")]?l&&l[gs("0x25")]==t||(l=t,m(e[gs("0xf")]),g=!0):u=u||e[gs("0xf")])}function m(e){const s=i.writer[gs("0x3")](gs("0x14"),{class:gs("0xd")+t}),x=i[gs("0x6")][gs("0xa")](e);n&&o[gs("0x1d")].includes(r[gs("0x7")])&&i[gs("0xb")][gs("0x11")]("ck-suggestion-marker--active",s),i[gs("0xb")][gs("0x1f")](x,s),i.mapper[gs("0x18")](s,r[gs("0x7")])}d||g||!u||m(u)}}const ps=["_descriptionFactory","subscript","FORMAT_UNDERLINE","format","forceValue","isCollapsed","toLowerCase","slice","plugins","StrikethroughEditing","*Remove format:* %0","strikethrough","selection","editor","get","SuperscriptEditing","enableCommand","afterInit","getRanges","bold","*Format:* %0","UnderlineEditing","from","FORMAT_ITALIC","commands","FORMAT_STRIKETHROUGH","registerDescriptionCallback","FORMAT_CODE","code","markInlineFormat","document","BoldEditing","change","has"];var bs,Es;bs=ps,Es=247,function(e){for(;--e;)bs.push(bs.shift())}(++Es);const _s=function(e,t){return ps[e-=0]},Ts=[_s("0x16"),"ItalicEditing",_s("0xc"),"CodeEditing",_s("0x0"),"SubscriptEditing",_s("0x6")];class Cs extends e.Plugin{[_s("0x8")](){const e=this[_s("0x4")],t=e.model,n=e[_s("0x21")][_s("0x5")]("TrackChangesEditing"),o=e.locale;for(const o of Ts){if(!e[_s("0x21")][_s("0x18")](o))continue;const s=o[_s("0x20")](0,-7)[_s("0x1f")](),r=e[_s("0xf")][_s("0x5")](s);n[_s("0x7")](s,((e,o={})=>{const i=t[_s("0x15")][_s("0x3")];if(i[_s("0x1e")])return void e(o);const x=void 0!==o[_s("0x1d")]?o.forceValue:!r.value;t[_s("0x17")]((()=>{const e=Array[_s("0xd")](i[_s("0x9")]());for(const o of e){const e=x?[o]:ms(s,o,t);for(const t of e)n[_s("0x14")](t,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(e,t){n[_s("0x19")][_s("0x11")]((n=>{const{data:s}=n;if(s&&s.commandName===e)return s.commandParams[0][_s("0x1d")]?{type:_s("0x1c"),content:Yo(o,_s("0xb"),t)}:{type:_s("0x1c"),content:Yo(o,_s("0x1"),t)}}))}s(_s("0xa"),Yo(o,"FORMAT_BOLD")),s("italic",Yo(o,_s("0xe"))),s("underline",Yo(o,_s("0x1b"))),s(_s("0x13"),Yo(o,_s("0x12"))),s(_s("0x2"),Yo(o,_s("0x10"))),s(_s("0x1a"),Yo(o,"FORMAT_SUBSCRIPT")),s("superscript",Yo(o,"FORMAT_SUPERSCRIPT"))}}const ys=["registerDescriptionCallback","format","value","model","document","change","commandName","$root","enableCommand","blockQuote","ELEMENT_BLOCK_QUOTE","from","commands","parent","forceValue","BlockQuoteEditing","*Format:* %0","commandParams","getSelectedBlocks","checkChild","_descriptionFactory","selection","schema","has","afterInit","*Remove format:* %0","filter","TrackChangesEditing","plugins","markBlockFormat","get","editor","name"];var ks,As;ks=ys,As=222,function(e){for(;--e;)ks.push(ks.shift())}(++As);const vs=function(e,t){return ys[e-=0]};class Rs extends e.Plugin{[vs("0x0")](){const e=this[vs("0x7")],t=e.locale;if(!e[vs("0x4")][vs("0x20")](vs("0x18")))return;const n=e[vs("0x4")][vs("0x6")](vs("0x3")),o=this[vs("0x7")][vs("0x15")][vs("0x6")](vs("0x12"));n[vs("0x11")]("blockQuote",((t,s={})=>{const r=this[vs("0x7")][vs("0xc")][vs("0xd")][vs("0x1e")],i=s&&void 0!==s[vs("0x17")]?s[vs("0x17")]:!o[vs("0xb")];let x=[];if(i){const t=Array[vs("0x14")](r[vs("0x1b")]()).filter((e=>Ss(e)||function(e,t){const n=t[vs("0x1c")](e[vs("0x16")],"blockQuote"),o=t[vs("0x1c")]([vs("0x10"),vs("0x12")],e);return n&&o}(e,this[vs("0x7")].model[vs("0x1f")])));x=S(t,e[vs("0xc")])}else{const t=Array[vs("0x14")](r.getSelectedBlocks())[vs("0x2")]((e=>Ss(e)));x=S(t,e[vs("0xc")])}e[vs("0xc")][vs("0xe")]((()=>{for(const e of x)n[vs("0x5")](e,{commandName:vs("0x12"),commandParams:[{forceValue:i}]})}))})),n[vs("0x1d")][vs("0x9")]((e=>{const{data:n}=e;if(n&&"blockQuote"==n[vs("0xf")]){const e=Yo(t,vs("0x13"));return n[vs("0x1a")][0].forceValue?{type:vs("0xa"),content:Yo(t,vs("0x19"),e)}:{type:vs("0xa"),content:Yo(t,vs("0x1"),e)}}}))}}function Ss(e){return"blockQuote"==e[vs("0x16")][vs("0x8")]}const Is=["enableCommand","plugins","commands","afterInit","editor","get","TrackChangesEditing","ckbox"];var Ls,Ns;Ls=Is,Ns=325,function(e){for(;--e;)Ls.push(Ls.shift())}(++Ns);const ws=function(e,t){return Is[e-=0]};class Ms extends e.Plugin{[ws("0x6")](){const e=this[ws("0x7")];e[ws("0x5")][ws("0x0")](ws("0x2"))&&e[ws("0x4")][ws("0x0")](ws("0x1"))[ws("0x3")]("ckbox")}}const Os=["config","get","document","outdentCodeBlock","from","ELEMENT_CODE_BLOCK","format","registerElementLabel","languages","formatBlock","_descriptionFactory","forceValue","plugins","has","checkChild","commandParams","*Format:* %0","locale","getSelectedBlocks","markBlockFormat","language","label","enableCommand","parent","afterInit","commandName","filter","change","find","codeBlock","selection","isLimit","indentCodeBlock","model","CodeBlock"];var Fs,Ps;Fs=Os,Ps=210,function(e){for(;--e;)Fs.push(Fs.shift())}(++Ps);const Ds=function(e,t){return Os[e-=0]};class Bs extends e.Plugin{[Ds("0x18")](){const e=this.editor;if(!e[Ds("0xc")][Ds("0xd")](Ds("0x22")))return;const t=e[Ds("0xc")][Ds("0x1")]("TrackChangesEditing"),n=e[Ds("0x11")],o=e[Ds("0x0")][Ds("0x1")](Ds("0x1d"))[Ds("0x8")],s=e.commands[Ds("0x1")](Ds("0x1d"));t.enableCommand(Ds("0x20")),t.enableCommand(Ds("0x3")),t[Ds("0x16")](Ds("0x1d"),((n,r={})=>{const i=e.model,x=e[Ds("0x21")][Ds("0x2")][Ds("0x1e")],a=r&&void 0!==r[Ds("0xb")]?r.forceValue:!s.value;let c;r[Ds("0x14")]||(r.language=o[0][Ds("0x14")]),c=a?Array.from(x.getSelectedBlocks())[Ds("0x1a")]((e=>{return js(e)||(t=e,n=i.schema,!t.is("rootElement")&&!n[Ds("0x1f")](t)&&n[Ds("0xe")](t[Ds("0x17")],Ds("0x1d")));var t,n})):Array[Ds("0x4")](x[Ds("0x12")]())[Ds("0x1a")]((e=>js(e)));const l=S(c,i);i[Ds("0x1b")]((()=>{for(const e of l)t[Ds("0x13")](e,{commandName:Ds("0x1d"),commandParams:[{...r,forceValue:a}],formatGroupId:"blockName"})}))})),t[Ds("0xa")][Ds("0x7")](Ds("0x1d"),(e=>Yo(n,Ds("0x5"),e))),t._descriptionFactory.registerDescriptionCallback((e=>{const t=n.t,{type:s,data:r}=e;if(Ds("0x9")==s&&r&&Ds("0x1d")==r[Ds("0x19")]){const e=r[Ds("0xf")][0].language,s=t(o[Ds("0x1c")]((t=>t.language===e))[Ds("0x15")]);return r[Ds("0xf")][0][Ds("0xb")]?{type:Ds("0x6"),content:Yo(n,Ds("0x10"),Yo(n,Ds("0x5"),1)+" ("+s+")")}:{type:"format",content:Yo(n,"*Remove format:* %0",Yo(n,Ds("0x5"),1))}}}))}}function js(e){return"codeBlock"==e.name}const Us=["addCommentThread","enableCommand","has","CommentsEditing","plugins","TrackChangesEditing","get","editor"];var Gs,Hs;Gs=Us,Hs=146,function(e){for(;--e;)Gs.push(Gs.shift())}(++Hs);const zs=function(e,t){return Us[e-=0]};class Ws extends e.Plugin{afterInit(){const e=this[zs("0x5")];e.plugins[zs("0x0")](zs("0x1"))&&e[zs("0x2")][zs("0x4")](zs("0x3"))[zs("0x7")](zs("0x6"))}}var Vs=n(181);const Ks=["unbindElementFromMarkerName","unlock","merge","start","init","modifySelection","editing","markerNameToElements","addMarker:suggestion:deletion","showSuggestionHighlights","high","bind","plugins","model","enqueueChange","fromRange","downcastDispatcher","markerName","removeMarker:suggestion:deletion","requires","setSelection","getFirstRange","unit","editor","root","TrackChangesEditing","delete","mapper","get","buffer","createRange","detach","writer","isCollapsed","end","data","enableCommand","deleteForward"];var qs,Xs;qs=Ks,Xs=287,function(e){for(;--e;)qs.push(qs.shift())}(++Xs);const $s=function(e,t){return Ks[e-=0]};class Qs extends e.Plugin{static get[$s("0x24")](){return[Vs.Delete]}[$s("0x15")](){const e=this[$s("0x2")],t=e[$s("0x1d")][$s("0x7")]($s("0x4"));t[$s("0xf")]($s("0x5"));const n=e.commands[$s("0x7")]($s("0x10"));t[$s("0xf")]($s("0x10"),((t,o={})=>{const s=e[$s("0x1e")].createSelection(e[$s("0x1e")].document.selection);s[$s("0xc")]&&e.model[$s("0x16")](s,{direction:"forward",unit:o[$s("0x1")]});const r=s[$s("0x0")](),x=i.LiveRange[$s("0x20")](r);let a;t(o),a="$graveyard"==x[$s("0x3")].rootName?e[$s("0x1e")].createRange(r[$s("0x14")]):e[$s("0x1e")][$s("0x9")](x[$s("0x14")],x[$s("0xd")]),x[$s("0xa")](),e[$s("0x1e")][$s("0x1f")](n[$s("0x8")].batch,(e=>{n[$s("0x8")].lock(),e[$s("0x25")](e[$s("0x9")](a[$s("0xd")])),n[$s("0x8")][$s("0x12")]()}))})),e[$s("0x17")][$s("0x21")].on($s("0x19"),hs(e,$s("0x13")),{priority:$s("0x1b")}),e[$s("0xe")][$s("0x21")].on($s("0x19"),((t,n,o)=>{o.options[$s("0x1a")]&&hs(e,$s("0x13"),{showActiveMarker:!1})[$s("0x1c")](this)(t,n,o)}),{priority:$s("0x1b")}),e[$s("0x17")][$s("0x21")].on($s("0x23"),((e,t,n)=>{const o=n[$s("0x6")][$s("0x18")](t[$s("0x22")]);if(o)for(const e of o)e.is("uiElement")&&(n.mapper[$s("0x11")](e,t[$s("0x22")]),n[$s("0xb")].remove(e))}),{priority:$s("0x1b")})}}const Js=["registerDescriptionCallback","_suggestionFactory","hasAttribute","multipleBlocks","get","isFirstBlockOfListItem","expandListBlocksToCompleteList","change","ELEMENT_","map","from","before","markBlockFormat","mergeListItemBackward","toUpperCase","registerCustomCallback","accept","getAttribute","setSelection","getSelectedBlocks","value","*Change to:* %0","ELEMENT_LIST_ITEM","getFirstRange","_descriptionFactory","*Format:* remove from %0","forceValue","end","splitListItemAfter","selection","numberedList","enableCommand","splitListItemBefore","ELEMENT_BULLETED_LIST","has","listItemId","DocumentListEditing","bulletedList","after","*Format:* insert into %0","outdentList","format","fromRange","start","slice","DocumentListUtils","listType","*Outdent:* %0","document","model","ELEMENT_NUMBERED_LIST","commandParams","length","add","plugins","*Indent:* %0","nextSibling","createPositionAt","registerElementLabel","execute","documentList","createRange","previousSibling","nodeAfter","indentList","isObject","commandName","markMultiRangeBlockFormat","containsItem","next","commands","findIndex","push","listIndent","detach","mergeListItemForward","_LIST"];var Zs,Ys;Zs=Js,Ys=372,function(e){for(;--e;)Zs.push(Zs.shift())}(++Ys);const er=function(e,t){return Js[e-=0]};class tr extends e.Plugin{afterInit(){const e=this.editor;if(!e[er("0x43")][er("0x2f")](er("0x31")))return;const t=e.locale,n=e[er("0x43")][er("0x11")]("TrackChangesEditing"),o=e.plugins.get(er("0x3a"));function s(t){return()=>{const s=e.commands.get(t);let r=Array[er("0x17")](e[er("0x3e")][er("0x3d")][er("0x2a")][er("0x20")]());if(a(t)){r=o[er("0x13")](r);const e=[];for(const t of r)o[er("0x12")](t)&&e.push(t);r=e}e[er("0x3e")][er("0x14")]((()=>{n[er("0x3")](r,{commandName:t,commandParams:[{forceValue:!s[er("0x21")]}],formatGroupId:"listType"},[],er("0x49"))}))}}function r(t){return()=>{const o=function(e){let t=Array[er("0x17")](e);const n=t[er("0x7")]((e=>!e[er("0xf")](er("0x30"))));return n>-1&&(t=t[er("0x39")](0,n)),t}(e.model[er("0x3d")][er("0x2a")][er("0x20")]()),s=o[o[er("0x41")]-1],r=e[er("0x3e")].schema.isObject(s)?er("0x33"):er("0x28"),i=e[er("0x3e")].createRange(e[er("0x3e")][er("0x46")](o[0],"before"),e[er("0x3e")][er("0x46")](s,r));e.model.change((()=>{n[er("0x19")](i,{commandName:t,commandParams:[],formatGroupId:er("0x3b")},function(e){const t=new Set;for(const n of e){let e=n.nextSibling;for(;e&&e[er("0x1e")](er("0x9"))>n[er("0x1e")](er("0x9"));)t[er("0x42")](e),e=e.nextSibling}return Array.from(t)}(o))}))}}function x(t){return()=>{const o=e[er("0x3e")][er("0x3d")][er("0x2a")][er("0x20")]()[er("0x5")]()[er("0x21")],s=e[er("0x3e")][er("0x46")](o,er("0x18")),r=e.model[er("0x46")](o,0),i=e[er("0x3e")][er("0x4a")](s,r);e.model.change((()=>{n.markBlockFormat(i,{commandName:t,commandParams:[],formatGroupId:er("0x3b")})}))}}function a(t){const n=e.commands.get(er("0x32"))[er("0x21")],o=e[er("0x6")][er("0x11")](er("0x2b"))[er("0x21")];return er("0x2b")===t?n:o}n[er("0x2c")](er("0x2b"),s(er("0x2b"))),n[er("0x2c")](er("0x32"),s(er("0x32"))),n[er("0x2c")](er("0x0"),r(er("0x0"))),n.enableCommand(er("0x35"),r("outdentList")),n[er("0x2c")](er("0x29"),x(er("0x29"))),n[er("0x2c")](er("0x2d"),x(er("0x2d"))),n[er("0x25")][er("0x47")]((function(t){const n=!e[er("0x3e")].schema[er("0x1")](t),o=t[er("0x4b")],s=t[er("0x45")],r=t[er("0x1e")](er("0x30")),i=!o||o.getAttribute(er("0x30"))!==r,x=!s||s.getAttribute("listItemId")!==r;return n&&Boolean(r)&&i&&x}),(e=>Yo(t,"ELEMENT_LIST_ITEM",e))),n[er("0x25")][er("0xd")]((function(e){const{data:n}=e;if(!n)return;let o,s,r,i;switch(n[er("0x2")]){case er("0x32"):r=n.commandParams[0].forceValue,i=a(n.commandName),o=r?"*Format:* insert into %0":"*Format:* remove from %0",i&&(o="*Change to:* %0"),s={type:"format",content:Yo(t,o,Yo(t,er("0x2e")))};break;case er("0x2b"):r=n[er("0x40")][0][er("0x27")],i=a(n[er("0x2")]),o=er(r?"0x34":"0x26"),i&&(o=er("0x22")),s={type:"format",content:Yo(t,o,Yo(t,er("0x3f")))};break;case er("0x0"):o=er("0x44"),s={type:er("0x36"),content:Yo(t,o,Yo(t,er("0x23")))};break;case er("0x35"):o=function(e){const t=e[er("0x24")]();let n=t[er("0x38")][er("0x4c")];for(;n&&t[er("0x4")](n);){if(n[er("0x1e")]("listIndent")>0)return!1;n=n.nextSibling}return!0}(e)?Yo(t,er("0x26"),Yo(t,function(e){const t=e[er("0x24")]()[er("0x38")].nodeAfter;return er("0x15")+t[er("0x1e")](er("0x3b"))[er("0x1b")]()+er("0xc")}(e))):Yo(t,er("0x3c"),Yo(t,er("0x23"))),s={type:er("0x36"),content:o};break;case er("0x1a"):case er("0xb"):!1===n[er("0x10")]&&(o="*Merge:* %0",s={type:"deletion",content:Yo(t,o,Yo(t,"ELEMENT_LIST_ITEM"))})}return s})),n[er("0xe")][er("0x1c")]("formatBlock",er("0x49"),er("0x1d"),(function(t,n){const o=[];for(let n of t)n[er("0x38")].nodeAfter===n[er("0x28")].parent&&(n=e[er("0x3e")][er("0x4a")](e[er("0x3e")][er("0x46")](n[er("0x38")].nodeAfter,0))),o[er("0x8")](n);e[er("0x3e")].change((t=>{const s=e[er("0x3e")][er("0x3d")].selection,r=Array[er("0x17")](s.getRanges())[er("0x16")]((e=>i.LiveRange[er("0x37")](e)));t[er("0x1f")](o),e[er("0x6")].get(n.commandName).refresh(),n.commandParams[er("0x8")]({forceDefaultExecution:!0}),e[er("0x48")](n[er("0x2")],...n[er("0x40")]),t[er("0x1f")](r);for(const e of r)e[er("0xa")]()}))}))}}var nr=n(331);const or=["fromRange","addMarker:suggestion:insertion","options","split","removeMarker:suggestion:insertion","showSuggestionHighlights","editing","requires","change","nextSibling","fire","markerNameToElements","init","enterBlock","afterExecute","hasClass","getFirstRange","unbindElementFromMarkerName","bind","setSelection","high","detach","downcastDispatcher","ck-suggestion-marker-split","model","markInsertion","commands","plugins","get","enter","createPositionAt","selection","markerName","enableCommand","createRange","document","mapper"];var sr,rr;sr=or,rr=483,function(e){for(;--e;)sr.push(sr.shift())}(++rr);const ir=function(e,t){return or[e-=0]};class xr extends e.Plugin{static get[ir("0x5")](){return[nr.Enter]}[ir("0xa")](){const e=this.editor,t=e[ir("0x19")][ir("0x1a")]("TrackChangesEditing"),n=e[ir("0x18")][ir("0x1a")]("enter");t[ir("0x1f")](ir("0x1b"),(()=>{e[ir("0x16")][ir("0x6")]((o=>{const s=e[ir("0x16")][ir("0x21")][ir("0x1d")],r=s.getFirstPosition(),x=i.LiveRange[ir("0x23")](s[ir("0xe")]());if(n[ir("0xb")](o)){const n=e[ir("0x16")][ir("0x1c")](r.parent[ir("0x7")],0),s=o[ir("0x20")](r,n);t[ir("0x17")](s)}else o[ir("0x11")](o[ir("0x20")](x.end));x[ir("0x13")](),n[ir("0x8")](ir("0xc"),{writer:o})}))})),e[ir("0x4")][ir("0x14")].on(ir("0x24"),hs(e,ir("0x1")),{priority:ir("0x12")}),e[ir("0x4")].downcastDispatcher.on(ir("0x2"),((e,t,n)=>{const o=n[ir("0x22")][ir("0x9")](t[ir("0x1e")]);if(o)for(const e of o)e[ir("0xd")](ir("0x15"))&&(n[ir("0x22")][ir("0xf")](e,t.markerName),n.writer.remove(e))}),{priority:ir("0x12")}),e.data[ir("0x14")].on(ir("0x24"),((t,n,o)=>{o[ir("0x0")][ir("0x3")]&&hs(e,ir("0x1"),{showActiveMarker:!1})[ir("0x10")](this)(t,n,o)}),{priority:"high"})}}const ar=["model","find","findPrevious","createPositionAt","has","markers","plugins","item","replaceAll","createRange","FindAndReplaceEditing","getIntersection","handleFindCommand","_isInDeletionRange","get","FindAndReplaceUtils","replace","editor","getMarkersGroup","findNext","getRange","start","suggestion:deletion","enableCommand","TrackChangesEditing","findByTextCallback","bind"];var cr,lr;cr=ar,lr=103,function(e){for(;--e;)cr.push(cr.shift())}(++lr);const ur=function(e,t){return ar[e-=0]};class dr extends e.Plugin{afterInit(){if(!this[ur("0x16")][ur("0xb")][ur("0x9")](ur("0xf")))return;const e=this[ur("0x16")][ur("0xb")][ur("0x13")](ur("0x2"));e[ur("0x1")](ur("0x6"),this[ur("0x11")][ur("0x4")](this)),e[ur("0x1")](ur("0x18")),e[ur("0x1")](ur("0x7")),e[ur("0x1")](ur("0x15")),e.enableCommand(ur("0xd"))}[ur("0x11")](e,t,n={}){const o=this.editor[ur("0xb")][ur("0x13")](ur("0x14"));void 0!==n&&e((e=>("string"==typeof t?o[ur("0x3")](t,n):t)(e).filter((t=>!1===this[ur("0x12")](t,e[ur("0xc")])))),n)}[ur("0x12")](e,t){const n=this[ur("0x16")].model[ur("0xe")](this[ur("0x16")].model[ur("0x8")](t,e[ur("0x1a")]),this[ur("0x16")][ur("0x5")][ur("0x8")](t,e.end));for(const e of this[ur("0x16")][ur("0x5")][ur("0xa")][ur("0x17")](ur("0x0")))if(null!==n[ur("0x10")](e[ur("0x19")]()))return!0;return!1}}const gr=["fontColor.colors","getRanges","fontFamily","afterInit","markInlineFormat","title","*Set font color:* %0","find","FontFamilyEditing","enableCommand","config","TrackChangesEditing","*Set font size:* %0","model","trim","*Reset font family*","*Reset font background color*","commandName","*Reset font color*","label","_descriptionFactory","change","value","*Set font background color:* %0","_enableCommand","editor","format","isCollapsed","registerDescriptionCallback","selection","toLowerCase","commandParams","from","fontSize.options","FontColorEditing","normalizeSizeOptions","get","fontSize","fontColor","plugins","fontBackgroundColor"];var mr,fr;mr=gr,fr=490,function(e){for(;--e;)mr.push(mr.shift())}(++fr);const hr=function(e,t){return gr[e-=0]},pr=[{pluginName:"FontSizeEditing",commandName:hr("0x27")},{pluginName:hr("0xa"),commandName:hr("0x4")},{pluginName:hr("0x24"),commandName:hr("0x28")},{pluginName:"FontBackgroundColorEditing",commandName:"fontBackgroundColor"}];class br extends e.Plugin{[hr("0x5")](){const e=this[hr("0x1b")].locale;for(const{pluginName:e,commandName:t}of pr)this.editor[hr("0x0")].has(e)&&this[hr("0x1a")](t);this[hr("0x1b")][hr("0x0")][hr("0x26")](hr("0xd"))[hr("0x16")][hr("0x1e")]((t=>{const n=e.t,{data:o}=t;if(null!=o){if("fontSize"==o[hr("0x13")]){const t=o.commandParams[0][hr("0x18")];if(t){const o=n(this.editor[hr("0x0")][hr("0x26")]("FontSize")[hr("0x25")](this[hr("0x1b")].config[hr("0x26")](hr("0x23"))).find((e=>e[hr("0xf")]==t))[hr("0x7")])[hr("0x20")]();return{type:"format",content:Yo(e,hr("0xe"),o)}}return{type:hr("0x1c"),content:Yo(e,"*Reset font size*")}}if(hr("0x4")==o[hr("0x13")]){const t=o[hr("0x21")][0][hr("0x18")];return t?{type:"format",content:Yo(e,"*Set font family:* %0",t)}:{type:"format",content:Yo(e,hr("0x11"))}}if("fontColor"==o[hr("0x13")]){const t=o[hr("0x21")][0][hr("0x18")];if(t){const o=(0,s.normalizeColorOptions)(this.editor[hr("0xc")][hr("0x26")](hr("0x2")))[hr("0x9")]((e=>e[hr("0xf")]==t));let r=t,i="";return o&&(r=o[hr("0x15")],i=n(r)[hr("0x20")]()),{type:hr("0x1c"),content:Yo(e,hr("0x8"),i)[hr("0x10")](),color:{value:t,title:i||r}}}return{type:hr("0x1c"),content:Yo(e,hr("0x14"))}}if(hr("0x1")==o[hr("0x13")]){const t=o[hr("0x21")][0][hr("0x18")];if(t){const o=(0,s.normalizeColorOptions)(this[hr("0x1b")][hr("0xc")][hr("0x26")]("fontBackgroundColor.colors")).find((e=>e[hr("0xf")]==t));let r=t,i="";return o&&(r=o[hr("0x15")],i=n(r).toLowerCase()),{type:"format",content:Yo(e,hr("0x19"),i)[hr("0x10")](),color:{value:t,title:i||r}}}return{type:hr("0x1c"),content:Yo(e,hr("0x12"))}}}}))}[hr("0x1a")](e){const t=this[hr("0x1b")];t[hr("0x0")][hr("0x26")](hr("0xd"))[hr("0xb")](e,((n,o={})=>{const s=t[hr("0xf")].document[hr("0x1f")],r=o[hr("0x18")];s[hr("0x1d")]?n(o):t[hr("0xf")][hr("0x17")]((()=>{const n=Array[hr("0x22")](s[hr("0x3")]());for(const o of n){const n=r?[o]:ms(e,o,t[hr("0xf")]);for(const o of n)t[hr("0x0")][hr("0x26")](hr("0xd"))[hr("0x6")](o,{commandName:e,commandParams:[{value:r}]})}}))}))}}const Er=["copyFormat","fontBackgroundColor","locale","from","createSelection","*Remove all formatting*","length","slice","find","enableCommand","getLastPosition","fontColor.colors","document","format","fontSize","selection","markInlineFormat","word","getRanges","isCollapsed","isFormatting","getFirstPosition","schema","plugins","charAt","fontSize.options","modifySelection","entries","pasteFormat","*Set format to:* %0","backward","commands","TrackChangesEditing","afterInit","get","keys","config","getItems","registerDescriptionCallback","toLowerCase","isBlock","fontColor","model","getSelectedBlocks","FontSize","getAttributes","getAttributeProperties","normalizeSizeOptions","forward"];var _r,Tr;_r=Er,Tr=290,function(e){for(;--e;)_r.push(_r.shift())}(++Tr);const Cr=function(e,t){return Er[e-=0]};class yr extends e.Plugin{[Cr("0x25")](){const e=this.editor,n=e[Cr("0x2e")],o=n[Cr("0x10")][Cr("0x13")],s=e[Cr("0x1b")][Cr("0x26")](Cr("0x24")),r=e[Cr("0x6")],i=e[Cr("0x23")][Cr("0x26")](Cr("0x4")),x=e[Cr("0x23")][Cr("0x26")](Cr("0x20"));i&&x&&(s.enableCommand(Cr("0x20"),((e,r={})=>{const i=r;n.change((()=>{const e=Array[Cr("0x7")](o.getRanges()),r=o[Cr("0x17")]?[kr(n,o)]:e;if(!!(0,t.first)(function*(e,n){const o=e=>!!(0,t.first)(function*(e,t){for(const[n]of e[Cr("0x0")]()){const e=t[Cr("0x1")](n);e&&e[Cr("0x18")]&&(yield n)}}(e,n));for(const t of e[Cr("0x16")]())for(const e of t[Cr("0x29")]())!n[Cr("0x2c")](e)&&o(e)&&(yield e);for(const t of e[Cr("0x2f")]())o(t)&&(yield t);o(e)&&(yield e)}(o,n[Cr("0x1a")]))||0!==Object[Cr("0x27")](i)[Cr("0xa")])for(const e of r)s[Cr("0x14")](e,{commandName:"pasteFormat",commandParams:[i]})}))})),s._descriptionFactory[Cr("0x2a")]((t=>{const{data:n}=t;if(n&&"pasteFormat"===n.commandName){const t=[],o=n.commandParams[0];for(const[n,s]of Object[Cr("0x1f")](o))t.push(Ar(e,n,s));return t[Cr("0xa")]?{type:Cr("0x11"),content:Yo(r,Cr("0x21"),t.join(", "))}:{type:Cr("0x11"),content:Yo(r,Cr("0x9"))}}})),e[Cr("0x1b")][Cr("0x26")]("TrackChangesEditing")[Cr("0xd")](Cr("0x4")))}}function kr(e,t){const n=e[Cr("0x8")](t);e[Cr("0x1e")](n,{unit:Cr("0x15"),direction:Cr("0x22")});const o=n[Cr("0x19")]();e[Cr("0x1e")](n,{unit:Cr("0x15"),direction:Cr("0x3")});const s=n[Cr("0xe")]();return e.createRange(o,s)}function Ar(e,t,n){const o=e[Cr("0x6")].t,r=t.split(/(?=[A-Z])/).join(" "),i=o(r[Cr("0x1c")](0).toUpperCase()+r[Cr("0xb")](1))[Cr("0x2b")]();if("boolean"==typeof n)return i;if(Cr("0x2d")===t||Cr("0x5")===t){const t=(0,s.normalizeColorOptions)(e[Cr("0x28")][Cr("0x26")](Cr("0xf")))[Cr("0xc")]((e=>e.model==n));return i+" ("+(t?o(t.label)[Cr("0x2b")]():n)+")"}if(Cr("0x12")===t&&isNaN(parseFloat(n))){const t=e.plugins.get(Cr("0x30"))[Cr("0x2")](e[Cr("0x28")][Cr("0x26")](Cr("0x1d")))[Cr("0xc")]((e=>e[Cr("0x2e")]==n));return i+" ("+(t?o(t.title)[Cr("0x2b")]():n)+")"}return i+" ("+n+")"}const vr=["formatBlock","config","TrackChangesEditing","registerDescriptionCallback","paragraph","ELEMENT_HEADING","afterInit","match","locale","editor","registerElementLabel","document","plugins","isObject","HeadingEditing","checkChild","commandName","_descriptionFactory","model","selection","name","getSelectedBlocks","from","heading.options","value","filter","ELEMENT_HEADING_CUSTOM","change","heading","has","*Change to:* %0","enableCommand","get","format","blockName","commandParams"];var Rr,Sr;Rr=vr,Sr=134,function(e){for(;--e;)Rr.push(Rr.shift())}(++Sr);const Ir=function(e,t){return vr[e-=0]};class Lr extends e.Plugin{[Ir("0x10")](){const e=this[Ir("0x13")],t=e[Ir("0x12")],n=e[Ir("0xb")].get(Ir("0x21"));if(!e[Ir("0x16")][Ir("0x3")](Ir("0x18")))return;const o=e[Ir("0x16")][Ir("0x6")](Ir("0xc"));o[Ir("0x5")](Ir("0x2"),((t,n)=>{const s=n[Ir("0x22")],r=Array[Ir("0x20")](this.editor[Ir("0x1c")][Ir("0x15")][Ir("0x1d")][Ir("0x1f")]())[Ir("0x23")]((e=>{return t=e,n=s,(o=this[Ir("0x13")][Ir("0x1c")].schema)[Ir("0x19")](t.parent,n)&&!o[Ir("0x17")](t)&&t[Ir("0x1e")]!=n;var t,n,o}));e.model[Ir("0x1")]((()=>{for(const e of r)o.markBlockFormat(e,{commandName:Ir("0x2"),commandParams:[n],formatGroupId:Ir("0x8")},fs(e))}))}));for(const e of n)Ir("0xe")!=e.model&&o[Ir("0x1b")][Ir("0x14")](e[Ir("0x1c")],(t=>{const n=Nr(e[Ir("0x1c")]);return null!==n?s(t,n):r(t,e.title)}));function s(e,n){return Yo(t,Ir("0xf"),[e,n])}function r(e,n){return Yo(t,Ir("0x0"),[e,n])}o[Ir("0x1b")][Ir("0xd")]((e=>{const{type:o,data:i}=e;if(Ir("0xa")==o&&i&&Ir("0x2")==i[Ir("0x1a")]){const e=i[Ir("0x9")][0][Ir("0x22")],o=Nr(e);if(null!==o)return{type:Ir("0x7"),content:Yo(t,Ir("0x4"),s(1,o))};const x=n.find((t=>t[Ir("0x1c")]===e)).title;return{type:Ir("0x7"),content:Yo(t,Ir("0x4"),r(1,x))}}}))}}function Nr(e){const t=e[Ir("0x11")](/^heading(\d+)$/);return t?t[1]:null}const wr=["push","highlight.options","selection","format","commandName","_descriptionFactory","title","item","isCollapsed","highlight","hasAttribute","formatInline","getRanges","*Remove highlight*","get","editor","markInlineFormat","document","toLowerCase","color","plugins","value","*Set highlight:* %0","locale","getLastMatchingPosition","model","has","FORMAT_HIGHLIGHT","getFirstPosition","backward","enableCommand","getAttribute","commandParams"];var Mr,Or;Mr=wr,Or=252,function(e){for(;--e;)Mr.push(Mr.shift())}(++Or);const Fr=function(e,t){return wr[e-=0]};class Pr extends e.Plugin{afterInit(){const e=this[Fr("0x1b")];if(!e[Fr("0x20")][Fr("0x5")]("HighlightEditing"))return;const t=e.plugins[Fr("0x1a")]("TrackChangesEditing");t[Fr("0x9")](Fr("0x15"),((n,o={})=>{const s=e.model[Fr("0x1d")][Fr("0xe")],r=s.getAttribute(Fr("0x15"));let i=o[Fr("0x0")],x=[];if(s[Fr("0x14")]){const t=s[Fr("0x7")]();if(!s[Fr("0x16")](Fr("0x15")))return void n(o);{const n=e=>e[Fr("0x13")][Fr("0xa")](Fr("0x15"))===r,o=t[Fr("0x3")](n,{direction:Fr("0x8")}),s=t[Fr("0x3")](n);x=[e[Fr("0x4")].createRange(o,s)],i==r&&(i=null)}}else for(const t of s[Fr("0x18")]())i?x[Fr("0xc")](t):x.push(...ms(Fr("0x15"),t,e[Fr("0x4")]));e[Fr("0x4")].change((()=>{for(const e of x)t[Fr("0x1c")](e,{commandName:Fr("0x15"),commandParams:[{value:i}]})}))}));const n=e[Fr("0x2")];t[Fr("0x11")].registerDescriptionCallback((t=>{const{type:o,data:s}=t;if(Fr("0x17")==o&&s&&Fr("0x15")==s[Fr("0x10")]){const t=n.t,o=s[Fr("0xb")][0].value;if(o){const s=e.config[Fr("0x1a")](Fr("0xd")).find((e=>e[Fr("0x4")]==o)),r=t(s[Fr("0x12")])[Fr("0x1e")]();return{type:"format",content:Yo(n,Fr("0x1"),r),color:{value:s[Fr("0x1f")],title:s.title}}}return{type:Fr("0xf"),content:Yo(n,Fr("0x19"),Yo(n,Fr("0x6")))}}}))}}const Dr=["createPositionAt","createEmptyElement","showSuggestionHighlights","HorizontalLineEditing","insert","enableCommand","plugins","TrackChangesEditing","createContainerElement","ck-horizontal-line","conversion","get","div","afterInit","ELEMENT_HORIZONTAL_LINE","horizontalLine","_descriptionFactory","editor","has"];var Br,jr;Br=Dr,jr=437,function(e){for(;--e;)Br.push(Br.shift())}(++jr);const Ur=function(e,t){return Dr[e-=0]};class Gr extends e.Plugin{[Ur("0xd")](){const e=this[Ur("0x11")];if(!e[Ur("0x6")][Ur("0x12")](Ur("0x3")))return;e.plugins[Ur("0xb")](Ur("0x7"))[Ur("0x5")](Ur("0xf"));const t=e.plugins[Ur("0xb")](Ur("0x7")),n=e.locale;t[Ur("0x10")].registerElementLabel(Ur("0xf"),(e=>Yo(n,Ur("0xe"),e))),e[Ur("0xa")].for("dataDowncast").elementToStructure({model:Ur("0xf"),view:(e,{writer:t,options:n})=>{if(!n[Ur("0x2")])return null;const o=t[Ur("0x8")](Ur("0xc")),s=t[Ur("0x1")]("hr");return t.addClass(Ur("0x9"),o),t[Ur("0x4")](t[Ur("0x0")](o,0),s),o},converterPriority:"high"})}}const Hr=["htmlEmbed","afterInit","value","rawHtml","document","registerDescriptionCallback","get","getSelectedElement","change","_descriptionFactory","locale","selection","ELEMENT_HTML_EMBED","getAttribute","has","getCustomProperty","plugins","HtmlEmbed","rawHtmlApi","cancel","registerElementLabel","TrackChangesEditing"];var zr,Wr;zr=Hr,Wr=439,function(e){for(;--e;)zr.push(zr.shift())}(++Wr);const Vr=function(e,t){return Hr[e-=0]};class Kr extends e.Plugin{[Vr("0x2")](){const e=this.editor;if(!e.plugins[Vr("0xf")](Vr("0x12")))return;const t=e.plugins[Vr("0x7")](Vr("0x0")),n=e[Vr("0xb")],o=e.editing.view[Vr("0x5")][Vr("0xc")];t[Vr("0xa")][Vr("0x15")](Vr("0x4"),(e=>Yo(n,Vr("0xd"),e))),e[Vr("0x11")].get("TrackChangesEditing").enableCommand(Vr("0x1"),((n,s)=>{const r=e.model,i=r[Vr("0x5")][Vr("0xc")];r[Vr("0x9")]((()=>{const e=function(e){const t=e[Vr("0x8")]();return t&&t.is("element",Vr("0x4"))?e[Vr("0x8")]():null}(i);if(!e)return void n(null);const r=e[Vr("0xe")](Vr("0x3"))||"";void 0!==s&&s!==r&&(t.markBlockFormat(e,{commandName:"htmlEmbed",commandParams:[s]}),o[Vr("0x8")]()[Vr("0x10")](Vr("0x13"))[Vr("0x14")]())}))})),t[Vr("0xa")][Vr("0x6")]((e=>{const{data:t}=e;if(t&&Vr("0x1")==t.commandName){const e=Yo(n,"ELEMENT_HTML_EMBED");return{type:"format",content:Yo(n,"*Change %0 content*",e)}}}))}}const qr=["insertImage","*Set image width:* %0","forceDefaultExecution","ImageBlockEditing","detach","insertion","shouldConvertImageType","hasAttribute","length","discardSuggestion","ImageCaptionEditing","toggleImageCaption","title","getSuggestion","Block image to inline image","markDeletion","isOwn","createRange","normalizedStyles","get","createRangeOn","convertInlineImageToBlock","markInsertion","ELEMENT_IMAGE","removeObject","fromPosition","ImageStyleEditing","formatInline","isBefore","commands","uploadImage","document","format","caption","afterInit","author","*Set image text alternative:* %0","formatBlock","element","ImageCaptionUtils","commandParams","markBlockFormat","findIndex","editor","registerDescriptionCallback","_descriptionFactory","side","getSuggestionCallback","ImageUtils","plugins","change","getContainedElement","toLowerCase","discard","getCaptionFromImageModelElement","isInContent","isInlineImage","next","alt","newValue","getClosestSelectedImageElement","getNearestSelectionRange","chain","ImageTextAlternativeEditing","imageTypeBlock","hasSuggestion","getSuggestions","toPrevious","newRange","end","isEqual","ImageEditing","registerPostFixer","registerElementLabel","markInlineFormat","imageTypeInline","deletion","refresh","accept","commandReversedParams","value","registerCustomCallback","getFirstRange","subType","forward","previous","type","imageInline","_suggestionFactory","ImageResize","has","ELEMENT_CAPTION","getChangedMarkers","selection","FORMAT_SIDE_IMAGE","imageBlock","enableCommand","*Remove image text alternative*","start","*Format:* %0","imageTextAlternative","isIntersecting","imageStylePostApply","isCollapsed","commandName","imageStylePreApply","join","Inline image to block image","filter","imageStyle","Users","getAttribute","isBlockImage","schema","convertBlockImageToInline","model","width","head","suggestion","resizeImage","ImageInlineEditing","imageCaption","*Reset image width*"];var Xr,$r;Xr=qr,$r=221,function(e){for(;--e;)Xr.push(Xr.shift())}(++$r);const Qr=function(e,t){return qr[e-=0]};class Jr extends e.Plugin{[Qr("0x3b")](){const e=this[Qr("0x44")];if(!e[Qr("0x4a")][Qr("0x73")](Qr("0x60")))return;const n=e.plugins[Qr("0x2c")]("TrackChangesEditing"),o=e[Qr("0x4a")][Qr("0x2c")](Qr("0x49")),s={},r=e.locale;if(n[Qr("0x79")](Qr("0x19")),n[Qr("0x46")].registerElementLabel(Qr("0x78"),(e=>Yo(r,Qr("0x30"),e))),n._descriptionFactory.registerElementLabel(Qr("0x70"),(e=>Yo(r,"ELEMENT_INLINE_IMAGE",e))),n[Qr("0x46")][Qr("0x62")](Qr("0x3a"),(()=>Yo(r,Qr("0x74")))),e[Qr("0x4a")].has("ImageUploadEditing")&&n[Qr("0x79")](Qr("0x37")),e.plugins.has(Qr("0x1c"))&&e[Qr("0x4a")][Qr("0x73")](Qr("0x16"))&&(n.enableCommand("imageTypeInline",((t,s)=>{const r=o[Qr("0x55")](e[Qr("0x11")].document[Qr("0x76")]);e.model.change((()=>{n[Qr("0x42")](r,{commandName:Qr("0x64"),commandParams:[s]},[],"convertBlockImageToInline")}))})),n[Qr("0x79")](Qr("0x59"),((t,s)=>{e[Qr("0x11")][Qr("0x4b")]((r=>{let x=o.getClosestSelectedImageElement(e[Qr("0x11")].document.selection),a=r[Qr("0x2d")](x);const c=i.LivePosition[Qr("0x32")](a[Qr("0x0")],Qr("0x5c")),l=i.LivePosition[Qr("0x32")](a[Qr("0x5e")],"toNext");n[Qr("0x1b")]((()=>t(s))),x=o[Qr("0x55")](e.model[Qr("0x38")].selection),a=r[Qr("0x2d")](x);const u=r[Qr("0x2a")](c,l);c[Qr("0x1d")](),l.detach(),n.markBlockFormat(x,{commandName:Qr("0x64"),commandParams:[]},[],"convertInlineImageToBlock"),u[Qr("0x0")][Qr("0x35")](a[Qr("0x0")])&&n.markInsertion(r[Qr("0x2a")](u[Qr("0x0")],a.start),Qr("0x2e")),a[Qr("0x5e")].isBefore(u.end)&&n[Qr("0x2f")](r[Qr("0x2a")](a[Qr("0x5e")],u.end),"convertInlineImageToBlock")}))})),n[Qr("0x71")][Qr("0x6a")](Qr("0x3e"),"convertInlineImageToBlock","join",(()=>{})),n._suggestionFactory[Qr("0x6a")]("formatBlock",Qr("0x2e"),Qr("0x67"),(()=>{})),n[Qr("0x71")].registerCustomCallback(Qr("0x3e"),Qr("0x2e"),"discard",n[Qr("0x71")][Qr("0x48")](Qr("0x3e"),"",Qr("0x67"))),n._suggestionFactory.registerCustomCallback("insertion","convertInlineImageToBlock",Qr("0x8"),(()=>{})),n._suggestionFactory[Qr("0x6a")](Qr("0x1e"),"convertInlineImageToBlock",Qr("0x4e"),(([t])=>{const o=n[Qr("0x71")][Qr("0x48")](Qr("0x1e"),"",Qr("0x4e"));let s=t[Qr("0x0")],r=t[Qr("0x5e")];const i=e[Qr("0x11")].schema.getNearestSelectionRange(s,"backward"),x=e[Qr("0x11")][Qr("0xf")][Qr("0x56")](r,Qr("0x6d"));i[Qr("0x5")]&&(s=i.start),x[Qr("0x5")]&&(r=x[Qr("0x5e")]),o([e[Qr("0x11")][Qr("0x2a")](s,r)])})),n._suggestionFactory.registerCustomCallback(Qr("0x3e"),"convertInlineImageToBlock","chain",c),n[Qr("0x71")][Qr("0x6a")]("insertion",Qr("0x2e"),Qr("0x57"),c)),e[Qr("0x4a")][Qr("0x73")](Qr("0x23"))&&(n[Qr("0x79")](Qr("0x24"),((t,s)=>{const r=e.plugins[Qr("0x2c")](Qr("0x40"));let i=o.getClosestSelectedImageElement(e.model.document[Qr("0x76")]),x=r[Qr("0x4f")](i);e[Qr("0x11")][Qr("0x4b")]((()=>{if(x)return void n[Qr("0x28")](e.model[Qr("0x2d")](x));const a=o.isBlockImage(i);t(s),i=o[Qr("0x55")](e.model[Qr("0x38")].selection),x=r.getCaptionFromImageModelElement(i),n[Qr("0x2f")](e[Qr("0x11")][Qr("0x2d")](x),a?null:Qr("0x17"))}))})),n._suggestionFactory.registerCustomCallback(Qr("0x1e"),Qr("0x17"),Qr("0x57"),c)),e.plugins.has("ImageStyleEditing")){n[Qr("0x79")](Qr("0xb"),((s,r)=>{const i=e[Qr("0x4a")].get(Qr("0xc")).me,x=e[Qr("0x36")][Qr("0x2c")](Qr("0xb"));let a=o[Qr("0x55")](e[Qr("0x11")][Qr("0x38")][Qr("0x76")]),c=e[Qr("0x11")][Qr("0x2d")](a),l=x[Qr("0x69")];if(l==r.value)return;const u={commandName:Qr("0xb"),commandParams:[r],formatGroupId:(0,t.uid)()};e[Qr("0x11")].change((()=>{if(n[Qr("0x5b")]().filter((e=>e[Qr("0x50")]&&i==e[Qr("0x3c")]&&("formatBlock"==e[Qr("0x6f")]||"formatInline"==e[Qr("0x6f")])&&(Qr("0x7")==e[Qr("0x6c")]||Qr("0x4")==e[Qr("0x6c")])&&e[Qr("0x6b")]()[Qr("0x5f")](c))).forEach((e=>n.discardSuggestion(e[Qr("0x13")]))),a=o[Qr("0x55")](e.model[Qr("0x38")].selection),c=e[Qr("0x11")].createRangeOn(a),x.refresh(),e[Qr("0x36")][Qr("0x2c")](Qr("0x64")).refresh(),e[Qr("0x36")][Qr("0x2c")](Qr("0x59"))[Qr("0x66")](),l=x[Qr("0x69")],l!=r.value)return o[Qr("0x51")](a)&&x[Qr("0x1f")](r[Qr("0x69")],a)?(s(r),a=o[Qr("0x55")](e.model.document[Qr("0x76")]),void n[Qr("0x42")](a,{...u,commandReversedParams:[{value:l||null}]},[],Qr("0x7"))):void(o.isBlockImage(a)?n[Qr("0x42")](a,u,[],Qr("0x4")):n[Qr("0x63")](c,u,Qr("0x4")))}))}));for(const t of e[Qr("0x4a")].get(Qr("0x33"))[Qr("0x2b")])s[t.name]=t[Qr("0x25")][Qr("0x4d")]();n[Qr("0x71")][Qr("0x6a")](Qr("0x3e"),Qr("0x7"),Qr("0x8"),(()=>{})),n._suggestionFactory[Qr("0x6a")](Qr("0x3e"),"imageStylePostApply",Qr("0x8"),(()=>{})),n._suggestionFactory[Qr("0x6a")](Qr("0x34"),Qr("0x4"),Qr("0x8"),(()=>{})),n[Qr("0x71")][Qr("0x6a")](Qr("0x3e"),Qr("0x7"),"accept",(()=>{})),n[Qr("0x71")].registerCustomCallback("formatBlock","imageStylePreApply",Qr("0x4e"),((e,t)=>{n[Qr("0x71")].getSuggestionCallback(Qr("0x3e"),"",Qr("0x67"))(e,{commandName:t[Qr("0x6")],commandParams:t[Qr("0x68")]})})),n[Qr("0x71")][Qr("0x6a")](Qr("0x3e"),"imageStylePreApply",Qr("0x57"),c)}const x=[{type:Qr("0x3e"),subType:Qr("0x7")},{type:Qr("0x1e"),subType:Qr("0x17")},{type:Qr("0x3e"),subType:"convertInlineImageToBlock"},{type:"insertion",subType:Qr("0x2e")}];function a(e,t){const s=x[Qr("0x43")]((({type:t,subType:n})=>e.type==t&&e[Qr("0x6c")]==n)),r=x.findIndex((({type:e,subType:n})=>t[Qr("0x6f")]==e&&t[Qr("0x6c")]==n));if(s<0||r<0)return!1;const i=e[Qr("0x6b")](),a=t.getFirstRange();if((0==s||1==s)&&2==r&&i[Qr("0x3")](a))return!0;if(2==s&&3==r){const e=n._findSuggestions(i,Qr("0x1e"))[Qr("0xa")]((({suggestion:e,meta:t})=>t[Qr("0x29")]&&Qr("0x2e")==e[Qr("0x6c")]));if(e[Qr("0x21")]>1&&a[Qr("0x5e")][Qr("0x5f")](i.start))return!0;if(1==e[Qr("0x21")]&&(i[Qr("0x0")][Qr("0x5f")](a.end)||i[Qr("0x5e")][Qr("0x5f")](a[Qr("0x0")])))return!0}if(3==s&&3==r&&i[Qr("0x0")][Qr("0x35")](a[Qr("0x0")])){const e=i[Qr("0x5e")].nodeAfter,t=a[Qr("0x0")].nodeBefore;return o[Qr("0xe")](e)&&e===t}return!1}function c(e,t){return a(e,t)?[e,t]:a(t,e)?[t,e]:null}e[Qr("0x11")][Qr("0x38")][Qr("0x61")]((()=>{let t=!1;const s=Array.from(e[Qr("0x11")][Qr("0x38")].differ[Qr("0x75")]());for(const{name:e,data:r}of s){const{group:s,type:i,subType:x,id:a}=n._splitMarkerName(e);if(Qr("0x14")==s&&n[Qr("0x5a")](a)){if(Qr("0x3e")==i&&(Qr("0x7")==x||"imageStylePostApply"==x)){const e=n[Qr("0x26")](a);if(r[Qr("0x5d")]){const s=e[Qr("0x6b")]().getContainedElement();if(o[Qr("0xe")](s))continue;n.discardSuggestion(e),t=!0}}if(Qr("0x1e")==i&&Qr("0x17")==x&&!r.newRange){const e=n.getSuggestion(a);e[Qr("0x52")]&&e[Qr("0x52")][Qr("0x50")]&&(n[Qr("0x22")](e[Qr("0x52")]),t=!0)}}}return t})),e[Qr("0x4a")][Qr("0x73")](Qr("0x72"))&&n[Qr("0x79")](Qr("0x15"),((t,s)=>{const r=o[Qr("0x55")](e[Qr("0x11")][Qr("0x38")][Qr("0x76")]);r[Qr("0xd")](Qr("0x12"))!=s[Qr("0x12")]&&e[Qr("0x11")].change((()=>{n[Qr("0x42")](r,{commandName:Qr("0x15"),commandParams:[s]})}))})),e[Qr("0x4a")][Qr("0x73")](Qr("0x58"))&&n[Qr("0x79")]("imageTextAlternative",((t,s)=>{const r=o[Qr("0x55")](e[Qr("0x11")].document[Qr("0x76")]);(r[Qr("0x20")](Qr("0x53"))?r[Qr("0xd")](Qr("0x53")):"")!=s.newValue&&e[Qr("0x11")].change((()=>{n[Qr("0x42")](r,{commandName:Qr("0x2"),commandParams:[s]})}))})),n._descriptionFactory[Qr("0x45")]((e=>{if(x.find((({type:t,subType:n})=>e[Qr("0x6f")]==t&&e[Qr("0x6c")]==n)))return e[Qr("0x6e")]?{}:void 0})),n[Qr("0x46")][Qr("0x45")]((e=>{if("insertion"==e[Qr("0x6f")]||Qr("0x65")==e[Qr("0x6f")]){const t=e[Qr("0x4c")]();if(t&&t.is(Qr("0x3f"),Qr("0x3a")))return{type:Qr("0x1e")==e[Qr("0x6f")]?"addObject":Qr("0x31"),element:t,quantity:1}}})),n[Qr("0x46")][Qr("0x45")]((e=>Qr("0x3e")==e[Qr("0x6f")]&&Qr("0x2e")==e[Qr("0x6c")]?{type:Qr("0x39"),content:Qr("0x9")}:Qr("0x3e")==e[Qr("0x6f")]&&Qr("0x10")==e[Qr("0x6c")]?{type:Qr("0x39"),content:Qr("0x27")}:void 0)),n[Qr("0x46")].registerDescriptionCallback((e=>{const{data:t}=e;if(t){if(Qr("0xb")==t[Qr("0x6")]){const e=t.commandParams[0][Qr("0x69")];return n=Qr("0x47")===e?Yo(r,Qr("0x77")):s[e]||e,{type:Qr("0x39"),content:Yo(r,Qr("0x1"),n)}}if(Qr("0x2")==t[Qr("0x6")]){const e=t[Qr("0x41")][0][Qr("0x54")];return e?{type:Qr("0x39"),content:Yo(r,Qr("0x3d"),'"'+e+'"')}:{type:Qr("0x39"),content:Yo(r,Qr("0x7a"))}}if(Qr("0x15")==t[Qr("0x6")]){const e=t.commandParams[0][Qr("0x12")];return e?{type:"format",content:Yo(r,Qr("0x1a"),e)}:{type:Qr("0x39"),content:Yo(r,Qr("0x18"))}}}var n}))}}const Zr=["get","registerDescriptionCallback","subType","src","selection","registerCustomCallback","format","model","handleSuggestionDescription","has","formatBlock","plugins","TrackChangesEditing","author","getAttribute","accept","enableCommand","change","data","editor","locale","ImageEditing","_suggestionFactory","source","discard","handleReplaceImageCommand","markBlockFormat","Users","getSuggestions","commandParams","document","replaceImageSource","*Format:* replace image URL","getContainedElement"];var Yr,ei;Yr=Zr,ei=428,function(e){for(;--e;)Yr.push(Yr.shift())}(++ei);const ti=function(e,t){return Zr[e-=0]};class ni extends e.Plugin{afterInit(){if(!this[ti("0x21")][ti("0x19")][ti("0x17")](ti("0x1")))return;const e=this.editor[ti("0x19")].get(ti("0x1a"));e[ti("0x1e")]("replaceImageSource",((e,t)=>this[ti("0x5")](e,t))),e[ti("0x2")][ti("0x13")](ti("0x18"),ti("0xb"),ti("0x1d"),e[ti("0x2")].getSuggestionCallback(ti("0x18"),null,ti("0x4"))),e[ti("0x2")].registerCustomCallback(ti("0x18"),ti("0xb"),ti("0x4"),e[ti("0x2")].getSuggestionCallback(ti("0x18"),null,"accept")),e._descriptionFactory[ti("0xf")]((e=>this[ti("0x16")](e)))}[ti("0x5")](e,t){const n=this[ti("0x21")][ti("0x19")][ti("0xe")]("TrackChangesEditing"),o=this.editor[ti("0x15")][ti("0xa")][ti("0x12")].getSelectedElement();this[ti("0x21")][ti("0x15")][ti("0x1f")]((()=>{let s=o[ti("0x1c")](ti("0x11"));const r=this[ti("0x21")][ti("0x19")][ti("0xe")](ti("0x7")).me;for(const e of n[ti("0x8")]({skipNotAttached:!0})){const t=e[ti("0xd")]();if(ti("0xb")===e[ti("0x10")]&&t===o){e[ti("0x1b")]!==r&&e[ti("0x4")](),s=e[ti("0x20")][ti("0x9")][0][ti("0x3")];break}}e(t),n[ti("0x6")](o,{commandName:ti("0xb"),commandParams:[{source:s}]},[],ti("0xb"))}))}[ti("0x16")](e){const{data:t}=e;if(t&&ti("0xb")===t.commandName){const e=ti("0xc");return{type:ti("0x14"),content:Yo(this[ti("0x21")][ti("0x0")],e)}}}}const oi=["bind","editor","commands","plugins","execute","importWord","Users","_trackChangesExecuted","_setSuggestionData","listenTo","dataInsert","collaboration_features","_handleImportedData","trackChanges","afterInit","value","TrackChangesEditing","track_changes","get","forEach","_trackChangesValueDuringImport"];var si,ri;si=oi,ri=199,function(e){for(;--e;)si.push(si.shift())}(++ri);const ii=function(e,t){return oi[e-=0]};class xi extends e.Plugin{constructor(e){super(e),this[ii("0xa")]=!1,this[ii("0x12")]=!1}[ii("0x4")](){const e=this[ii("0xc")],t=e.commands.get(ii("0x10")),n=e[ii("0xd")].get(ii("0x3"));t&&(t.on(ii("0xf"),((e,[,t])=>{this[ii("0xa")]=n[ii("0x5")],t[ii("0x1")][ii("0x7")]=!this[ii("0xa")]}),{priority:"high"}),this[ii("0x14")](t,ii("0x0"),this[ii("0x2")][ii("0xb")](this)),this.listenTo(t,ii("0x0"),(()=>{this[ii("0x12")]&&(n.execute(),this._trackChangesExecuted=!1)}),{priority:"lowest"}),e[ii("0xe")].get(ii("0x6")).enableCommand(ii("0x10")))}[ii("0x2")](e,t){const{suggestions:n}=t,o=this[ii("0xc")].commands.get(ii("0x3")),s=o[ii("0x5")];this[ii("0xa")]!==s&&(o[ii("0xf")](),this[ii("0x12")]=!0),n&&n[ii("0x9")]((({id:e,type:t,author:n,created_at:o})=>{const s={id:e,type:t,authorId:this.editor[ii("0xe")][ii("0x8")](ii("0x11")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0x10")}}};this[ii("0xc")].plugins.get(ii("0x6"))[ii("0x13")](s)}))}}const ai=["blockIndent","change","locale","*Indent:* %0","commandName","model","get","getItems","markBlockFormat","afterInit","selection","IndentBlock","getSelectedBlocks","_descriptionFactory","*Outdent:* %0","plugins","indentBlock","schema","outdentBlock","editor","checkAttribute","IndentEditing","enableCommand","has","indent","TrackChangesEditing","format"];var ci,li;ci=ai,li=145,function(e){for(;--e;)ci.push(ci.shift())}(++li);const ui=function(e,t){return ai[e-=0]};class di extends e.Plugin{[ui("0x1a")](){const e=this[ui("0x9")],t=e.plugins[ui("0x17")](ui("0xf"));e[ui("0x5")][ui("0xd")](ui("0xb"))&&(t[ui("0xc")](ui("0xe")),t.enableCommand("outdent"));const n=e[ui("0x13")];if(e[ui("0x5")][ui("0xd")](ui("0x1"))){for(const n of[ui("0x6"),ui("0x8")])t[ui("0xc")](n,(()=>{const o=Array.from(this[ui("0x9")][ui("0x16")].document[ui("0x0")][ui("0x2")]()).filter((e=>this[ui("0x9")][ui("0x16")][ui("0x7")][ui("0xa")](e,ui("0x11"))));e.model[ui("0x12")]((()=>{for(const e of o)t[ui("0x19")](e,{commandName:n,commandParams:[{value:""}],formatGroupId:ui("0x6")})}))}));t[ui("0x3")].registerDescriptionCallback((e=>{const{data:o}=e;if(!o)return;if(ui("0x6")!=o[ui("0x15")]&&ui("0x8")!=o[ui("0x15")])return;const s=e[ui("0x18")]()[0],r=t[ui("0x3")].getItemLabel(s);return ui("0x6")==o[ui("0x15")]?{type:ui("0x10"),content:Yo(n,ui("0x14"),r)}:ui("0x8")==o.commandName?{type:ui("0x10"),content:Yo(n,ui("0x4"),r)}:void 0}))}}}var gi,mi,fi=["requires","input","plugins","enableCommand","get","init"];gi=fi,mi=168,function(e){for(;--e;)gi.push(gi.shift())}(++mi);var hi=function(e,t){return fi[e-=0]};class pi extends e.Plugin{static get[hi("0x0")](){return[Vs.Input]}[hi("0x5")](){this.editor[hi("0x2")][hi("0x4")]("TrackChangesEditing")[hi("0x3")](hi("0x1"))}}const bi=["commandParams","plugins","locale","getFirstPosition","model","link","format","commandName","selection","TrackChangesEditing","*Set link:* %0","linkHref","document","from","_descriptionFactory","getFirstRange","editor","get","unlink","hasAttribute","afterInit","change","enableCommand","getRanges","getAttribute","LinkEditing","registerDescriptionCallback","markInlineFormat","isCollapsed"];var Ei,_i;Ei=bi,_i=439,function(e){for(;--e;)Ei.push(Ei.shift())}(++_i);const Ti=function(e,t){return bi[e-=0]};class Ci extends e.Plugin{[Ti("0x10")](){const e=this.editor;if(!e[Ti("0x1a")].has(Ti("0x15")))return;const t=e.plugins[Ti("0xd")](Ti("0x5"));t[Ti("0x12")](Ti("0x1"),((n,o)=>{const s=e.model[Ti("0x8")].selection;let r=[];if(s[Ti("0x18")]){if(!s[Ti("0xf")]("linkHref"))return void n(o);{const t=(0,Vs.findAttributeRange)(s[Ti("0x1c")](),Ti("0x7"),s[Ti("0x14")](Ti("0x7")),e[Ti("0x0")]);r=[t]}}else r=Array[Ti("0x9")](s[Ti("0x13")]());e.model.change((()=>{for(const e of r)t[Ti("0x17")](e,{commandName:Ti("0x1"),commandParams:[o]})}))})),t.enableCommand(Ti("0xe"),(()=>{const n=this[Ti("0xc")][Ti("0x0")],o=n[Ti("0x8")][Ti("0x4")];n[Ti("0x11")]((()=>{let n=[];n=o[Ti("0x18")]?[(0,Vs.findAttributeRange)(o[Ti("0x1c")](),Ti("0x7"),o[Ti("0x14")](Ti("0x7")),e.model)]:ms(Ti("0x7"),o[Ti("0xb")](),e.model);for(const e of n)t[Ti("0x17")](e,{commandName:"unlink",commandParams:[]})}))})),t[Ti("0xa")][Ti("0x16")]((t=>{const{data:n}=t,o=e[Ti("0x1b")];if(n){if(Ti("0x1")==n.commandName){const e=n[Ti("0x19")][0];return{type:Ti("0x2"),content:Yo(o,Ti("0x6"),'"'+e+'"')}}return Ti("0xe")==n[Ti("0x3")]?{type:Ti("0x2"),content:Yo(o,"*Remove link*")}:void 0}}))}}const yi=["slice","todoListChecked","change","listItem","selection","getAttribute","bulletedList","from","length","*Uncheck item*","checkTodoList","forceValue","value","ELEMENT_TODO_LIST","has","editor","locale","filter","listType","_selectedElements","end","numberedList","createRange","registerElementLabel","TrackChangesEditing","commands","listIndent","todoList","nextSibling","get","execute","numbered","bulleted","getSelectedBlocks","createPositionAt","format","ListEditing","ELEMENT_NUMBERED_LIST","parent","previousSibling","element","plugins","afterInit","blockName","model","ELEMENT_LIST_ITEM","TodoListEditing","checkChild","commandName","replace","indentList","registerDescriptionCallback","outdentList","markBlockFormat","_descriptionFactory","enableCommand","*Outdent:* %0","add","*Check item*","findIndex","isObject","name","document","List"];var ki,Ai;ki=yi,Ai=463,function(e){for(;--e;)ki.push(ki.shift())}(++Ai);const vi=function(e,t){return yi[e-=0]};class Ri extends e.Plugin{[vi("0x1b")](){const e=this[vi("0x0")],t=e[vi("0x1")];if(!e.plugins[vi("0x3f")](vi("0x15")))return;const n=e[vi("0x1a")][vi("0xe")](vi("0x9")),o=e[vi("0x1a")][vi("0x3f")](vi("0x1f"));function s(t){return()=>{const o=e[vi("0x1d")][vi("0x2f")].selection,s=e.commands[vi("0xe")](t);if(s[vi("0x3d")])return void e[vi("0xf")]("paragraph",{});const r=t[vi("0x31")](0,-4),i=function(e,t,n){let o=Array[vi("0x38")](e)[vi("0x2")]((e=>{return t=e,(o=n)[vi("0x20")](t[vi("0x17")],vi("0x34"))&&!o[vi("0x2d")](t);var t,o}));o=o[vi("0x2")]((e=>!e.is("element",vi("0x34"))||e[vi("0x36")](vi("0x3"))!=t));const s=new Set;for(const e of o)e.is(vi("0x19"),vi("0x34"))?s[vi("0x2a")](Si(e)):s[vi("0x2a")](e);return Array[vi("0x38")](s)}(o[vi("0x12")](),r,e[vi("0x1d")].schema);e[vi("0x1d")].change((()=>{for(const e of i)n.markBlockFormat(e,{commandName:t,commandParams:[{forceValue:!s[vi("0x3d")]}],formatGroupId:vi("0x1c")},Ii(e))}))}}function r(t){return()=>{const o=function(e){let t=Array[vi("0x38")](e);const n=t[vi("0x2c")]((e=>vi("0x34")!=e[vi("0x2e")]));return n>-1&&(t=t[vi("0x31")](0,n)),t}(e[vi("0x1d")][vi("0x2f")][vi("0x35")].getSelectedBlocks()),s=e[vi("0x1d")][vi("0x7")](e.model[vi("0x13")](o[0],"before"),e[vi("0x1d")].createPositionAt(o[o[vi("0x39")]-1],vi("0x5")));e[vi("0x1d")][vi("0x33")]((()=>{n[vi("0x26")](s,{commandName:t,commandParams:[],formatGroupId:vi("0xb")},function(e){const t=new Set;for(const n of e){let e=n.nextSibling;for(;e&&e[vi("0x36")]("listIndent")>n.getAttribute(vi("0xb"));)t[vi("0x2a")](e),e=e.nextSibling}return Array[vi("0x38")](t)}(o))}))}}n[vi("0x28")](vi("0x6"),s(vi("0x6"))),n.enableCommand("bulletedList",s(vi("0x37"))),o&&n[vi("0x28")](vi("0xc"),s(vi("0xc"))),n.enableCommand(vi("0x23"),r(vi("0x23"))),n[vi("0x28")](vi("0x25"),r(vi("0x25"))),o&&n[vi("0x28")](vi("0x3b"),(()=>{const t=e[vi("0xa")][vi("0xe")]("checkTodoList"),o=Array[vi("0x38")](t[vi("0x4")]);o[vi("0x2")]((e=>e[vi("0x36")](vi("0x32"))!=t[vi("0x3d")])),e[vi("0x1d")][vi("0x33")]((()=>{for(const e of o)n[vi("0x26")](e,{commandName:vi("0x3b"),commandParams:[{forceValue:!t[vi("0x3d")]}]})}))})),n._descriptionFactory[vi("0x8")](vi("0x34"),(e=>Yo(t,vi("0x1e"),e))),n[vi("0x27")][vi("0x24")]((e=>{const{data:n}=e;if(n){if(vi("0x6")==n[vi("0x21")]||vi("0x37")==n.commandName||vi("0xc")==n.commandName)switch(n[vi("0x21")][vi("0x22")](vi("0x30"),"")){case vi("0x11"):return o(Yo(t,"ELEMENT_BULLETED_LIST"));case vi("0x10"):return o(Yo(t,vi("0x16")));case"todo":return o(Yo(t,vi("0x3e")))}if("indentList"==n[vi("0x21")])return{type:vi("0x14"),content:Yo(t,"*Indent:* %0",Yo(t,vi("0x1e")))};if(vi("0x25")==n[vi("0x21")])return{type:"format",content:Yo(t,vi("0x29"),Yo(t,"ELEMENT_LIST_ITEM"))};if(vi("0x3b")==n.commandName)return n.commandParams[0][vi("0x3c")]?{type:vi("0x14"),content:Yo(t,vi("0x2b"))}:{type:vi("0x14"),content:Yo(t,vi("0x3a"))}}function o(e){return{type:vi("0x14"),content:Yo(t,"*Change to:* %0",e)}}}))}}function Si(e){const t=e[vi("0x36")](vi("0xb"));if(0==t)return e;let n=e;for(;e[vi("0x18")]&&e[vi("0x18")].is(vi("0x19"),vi("0x34"));){const o=e[vi("0x18")][vi("0x36")]("listIndent");if(o==t)n=e[vi("0x18")];else if(o<t)break;e=e[vi("0x18")]}return n}function Ii(e){const t=[];if(e.is(vi("0x19"),vi("0x34"))&&e.getAttribute("listIndent")>0){let n=e.nextSibling;for(;n&&vi("0x34")==n[vi("0x2e")]&&n.getAttribute(vi("0xb"))==e[vi("0x36")](vi("0xb"));)t.push(n),n=n[vi("0xd")]}return t}const Li=["backward","list.properties","commandParams","push","getLastPosition","registerDescriptionCallback","ListUtils","listStart","locale","handleListReversedCommand","listItem","listReversed","ELEMENT_","styles","unshift","getAttribute","plugins","map","getListTypeFromListStyleType","toUpperCase","before","createPositionAt","listType","numbered","flat","change","selection","type","_getSuggestionBlocks","config","element","commandName","filter","editor","get","getSiblingNodes","document","model","*Format:* set order to reversed","getFirstPosition","from","_getTranslationKeyForListStyle","format","handleListStyleCommand","*Format:* set order to regular","markMultiRangeBlockFormat","TrackChangesEditing","ListPropertiesEditing","handleListStartCommand","*Format:* set start index to %0","handleDescriptions","bind","_getSuggestionBlocksForListStyle","enableCommand","length","createRange","parent","listStyle","forward","getSelectedBlocks"];var Ni,wi;Ni=Li,wi=207,function(e){for(;--e;)Ni.push(Ni.shift())}(++wi);const Mi=function(e,t){return Li[e-=0]};class Oi extends e.Plugin{afterInit(){if(!this[Mi("0x6")][Mi("0x31")].has(Mi("0x14")))return;const e=this[Mi("0x6")][Mi("0x2")].get(Mi("0x22")),t=this.editor[Mi("0x31")][Mi("0x7")](Mi("0x13"));e[Mi("0x2e")]&&t[Mi("0x1a")](Mi("0x1e"),this[Mi("0x10")][Mi("0x18")](this)),e.reversed&&t[Mi("0x1a")]("listReversed",this[Mi("0x2a")][Mi("0x18")](this)),e.startIndex&&t[Mi("0x1a")](Mi("0x28"),this[Mi("0x15")][Mi("0x18")](this)),t._descriptionFactory[Mi("0x26")](this[Mi("0x17")].bind(this))}[Mi("0x10")](e,t={}){const n=this[Mi("0x6")][Mi("0x31")][Mi("0x7")]("TrackChangesEditing"),o=this[Mi("0x19")]();this[Mi("0x6")][Mi("0xa")][Mi("0x3a")]((()=>{n[Mi("0x12")](o,{commandName:Mi("0x1e"),commandParams:[{type:t[Mi("0x0")]}],formatGroupId:Mi("0x1e")})}))}[Mi("0x2a")](e,t={}){const n=this[Mi("0x6")][Mi("0x31")][Mi("0x7")](Mi("0x13")),o=this[Mi("0x1")]((e=>e.is(Mi("0x3"),Mi("0x2b"))&&"numbered"===e[Mi("0x30")](Mi("0x37"))));if(o[Mi("0x1b")]<1)return;const s=o[Mi("0x32")]((e=>this[Mi("0x6")][Mi("0xa")][Mi("0x1c")](this[Mi("0x6")][Mi("0xa")][Mi("0x36")](e,Mi("0x35")),this[Mi("0x6")][Mi("0xa")][Mi("0x36")](e,0))));this[Mi("0x6")][Mi("0xa")].change((()=>{n[Mi("0x12")](s,{commandName:Mi("0x2c"),commandParams:[{reversed:t.reversed}],formatGroupId:Mi("0x2c")})}))}[Mi("0x15")](e,t={}){const n=this.editor[Mi("0x31")][Mi("0x7")](Mi("0x13")),o=this[Mi("0x1")]((e=>e.is(Mi("0x3"),Mi("0x2b"))&&Mi("0x38")===e[Mi("0x30")]("listType")));if(o.length<1)return;const s=o[Mi("0x32")]((e=>this[Mi("0x6")].model.createRange(this[Mi("0x6")].model[Mi("0x36")](e,Mi("0x35")),this[Mi("0x6")].model.createPositionAt(e,0))));this[Mi("0x6")].model[Mi("0x3a")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:Mi("0x28"),commandParams:[{startIndex:t.startIndex}],formatGroupId:Mi("0x28")})}))}[Mi("0x17")](e){const t=this[Mi("0x6")][Mi("0x29")],{data:n}=e;if(!n)return;let o,s;switch(n[Mi("0x4")]){case Mi("0x1e"):o="*Change to:* %0",s={type:Mi("0xf"),content:Yo(t,o,Yo(t,this[Mi("0xe")](n.commandParams[0].type)))};break;case Mi("0x2c"):o=n[Mi("0x23")][0].reversed?Mi("0xb"):Mi("0x11"),s={type:"format",content:Yo(t,o)};break;case"listStart":o=Mi("0x16"),s={type:Mi("0xf"),content:Yo(t,o,n[Mi("0x23")][0].startIndex)}}return s}[Mi("0x19")](){var e,t,n,o;const s=this[Mi("0x6")][Mi("0x31")][Mi("0x7")]("ListUtils");let r=Array[Mi("0xd")](this.editor.model[Mi("0x9")][Mi("0x3b")][Mi("0x20")]());return(null===(e=r[0])||void 0===e?void 0:e.is(Mi("0x3"),Mi("0x2b")))&&r[Mi("0x2f")](...s[Mi("0x8")](this[Mi("0x6")].model.document[Mi("0x3b")][Mi("0xc")](),Mi("0x21"))),(null===(t=r[r[Mi("0x1b")]-1])||void 0===t?void 0:t.is("element",Mi("0x2b")))&&r[Mi("0x24")](...s[Mi("0x8")](this[Mi("0x6")][Mi("0xa")].document.selection[Mi("0x25")](),Mi("0x1f"))),r=[...new Set(r)],(null===(o=null===(n=this[Mi("0x6")].model[Mi("0x9")][Mi("0x3b")][Mi("0xc")]())||void 0===n?void 0:n[Mi("0x1d")])||void 0===o?void 0:o.is(Mi("0x3"),Mi("0x2b")))&&(r=r[Mi("0x5")]((e=>e.is(Mi("0x3"),Mi("0x2b"))))),r}[Mi("0x1")](e){const t=this.editor[Mi("0x31")][Mi("0x7")](Mi("0x27"));let n=Array[Mi("0xd")](this[Mi("0x6")][Mi("0xa")][Mi("0x9")][Mi("0x3b")][Mi("0x20")]())[Mi("0x5")](e).map((e=>{const n=this[Mi("0x6")].model[Mi("0x36")](e,0);return[...t[Mi("0x8")](n,Mi("0x21")),...t[Mi("0x8")](n,Mi("0x1f"))]}))[Mi("0x39")]();return n=[...new Set(n)],n}[Mi("0xe")](e){return Mi("0x2d")+this.editor[Mi("0x31")][Mi("0x7")]("ListUtils")[Mi("0x33")](e).toUpperCase()+"_LIST_"+e[Mi("0x34")]().replace(/-/g,"_")}}const Fi=["ELEMENT_MEDIA","media","editor","registerElementLabel","get","elementToElement","for","showSuggestionHighlights","createEmptyElement","downcastDispatcher","mediaEmbed","attribute:url:media","conversion","data","stop","div","plugins","_descriptionFactory","afterInit","high","TrackChangesEditing","has","dataDowncast"];var Pi,Di;Pi=Fi,Di=238,function(e){for(;--e;)Pi.push(Pi.shift())}(++Di);const Bi=function(e,t){return Fi[e-=0]};class ji extends e.Plugin{[Bi("0xa")](){const e=this[Bi("0x11")];if(!e[Bi("0x8")][Bi("0xd")]("MediaEmbedEditing"))return;const t=e[Bi("0x8")][Bi("0x13")](Bi("0xc")),n=e.locale;t.enableCommand(Bi("0x2")),t[Bi("0x9")][Bi("0x12")](Bi("0x10"),(e=>Yo(n,Bi("0xf"),e))),e[Bi("0x4")][Bi("0x15")](Bi("0xe"))[Bi("0x14")]({model:"media",view:(e,{writer:t,options:n})=>{if(n[Bi("0x16")])return t[Bi("0x0")](Bi("0x7"))},converterPriority:Bi("0xb")}),e[Bi("0x5")][Bi("0x1")].on(Bi("0x3"),((e,t,n)=>{n.options[Bi("0x16")]&&e[Bi("0x6")]()}),{priority:Bi("0xb")})}}const Ui=["plugins","has","editor","enableCommand","get","mention"];var Gi,Hi;Gi=Ui,Hi=181,function(e){for(;--e;)Gi.push(Gi.shift())}(++Hi);const zi=function(e,t){return Ui[e-=0]};class Wi extends e.Plugin{afterInit(){const e=this[zi("0x1")];e[zi("0x5")][zi("0x0")]("MentionEditing")&&e[zi("0x5")][zi("0x3")]("TrackChangesEditing")[zi("0x2")](zi("0x4"))}}const Vi=["pageBreak","get","plugins","editor","registerElementLabel","TrackChangesEditing","afterInit","enableCommand","ELEMENT_PAGE_BREAK","has","PageBreakEditing"];var Ki,qi;Ki=Vi,qi=269,function(e){for(;--e;)Ki.push(Ki.shift())}(++qi);const Xi=function(e,t){return Vi[e-=0]};class $i extends e.Plugin{[Xi("0x1")](){const e=this[Xi("0x9")];if(!e[Xi("0x8")][Xi("0x4")](Xi("0x5")))return;e[Xi("0x8")][Xi("0x7")](Xi("0x0"))[Xi("0x2")](Xi("0x6"));const t=e[Xi("0x8")][Xi("0x7")](Xi("0x0")),n=e.locale;t._descriptionFactory[Xi("0xa")](Xi("0x6"),(e=>Yo(n,Xi("0x3"),e)))}}const Qi=["showSuggestionHighlights","getItemLabel","afterInit","addClass","_descriptionFactory","has","bindElementToMarker","end","name","selection","$text","registerDescriptionCallback","schema","checkChild","registerElementLabel","commandName","model","get","format","paragraph","addMarker:suggestion:insertion","markBlockFormat","mapper","markerName","locale","TrackChangesEditing","consumable","start","isObject","isLimit","parent","downcastDispatcher","ELEMENT_PARAGRAPH","nodeAfter","activeMarkers","Paragraph","writer","ck-suggestion-marker-split","includes","getSelectedBlocks","editor","filter","isTouching","highest","type","plugins","markerRange","consume","isBlock","change","document","insertion","editing","ck-suggestion-marker--active","insertParagraph","enableCommand"];var Ji,Zi;Ji=Qi,Zi=215,function(e){for(;--e;)Ji.push(Ji.shift())}(++Zi);const Yi=function(e,t){return Qi[e-=0]};class ex extends e.Plugin{[Yi("0xb")](){const e=this[Yi("0x31")];if(!e[Yi("0x36")][Yi("0xe")](Yi("0x2c")))return;const t=e[Yi("0x21")],n=e.plugins[Yi("0x1a")](Yi("0x22"));n[Yi("0xd")][Yi("0x17")](Yi("0x1c"),(e=>Yo(t,Yi("0x29"),e))),n[Yi("0x8")]("paragraph",((t,o={})=>{const s=e[Yi("0x19")][Yi("0x3")],r=o.selection||s[Yi("0x12")],i=Array.from(r[Yi("0x30")]())[Yi("0x32")]((e=>{return t=e,(n=this.editor[Yi("0x19")][Yi("0x15")]).checkChild(t[Yi("0x27")],Yi("0x1c"))&&!n[Yi("0x25")](t)&&Yi("0x1c")!=t[Yi("0x11")];var t,n}));e.model[Yi("0x2")]((()=>{for(const e of i)n[Yi("0x1e")](e,{commandName:Yi("0x1c"),commandParams:[],formatGroupId:"blockName"},fs(e))}))})),n[Yi("0xd")].registerDescriptionCallback((e=>{const{data:n}=e;if(n&&Yi("0x1c")==n[Yi("0x18")])return{type:Yi("0x1b"),content:Yo(t,"*Change to:* %0",Yo(t,Yi("0x29")))}})),n[Yi("0x8")](Yi("0x7")),e[Yi("0x5")][Yi("0x28")].on(Yi("0x1d"),tx(e),{priority:Yi("0x34")}),e.data[Yi("0x28")].on(Yi("0x1d"),((t,n,o)=>{o.options[Yi("0x9")]&&tx(e,{showActiveMarker:!1})(t,n,o)}),{priority:Yi("0x34")});const o=n[Yi("0xd")];o[Yi("0x14")]((n=>{if("insertion"!==n[Yi("0x35")])return;const{start:s,end:r}=n.getFirstRange();if(!s[Yi("0x33")](r)||!s[Yi("0x2a")])return;const i=e[Yi("0x19")].schema,x=s[Yi("0x2a")];return i[Yi("0x1")](x)&&!i[Yi("0x26")](x)&&i.checkChild(x,"$text")?{type:Yi("0x4"),content:Yo(t,"*Insert:* %0",o[Yi("0xa")](x,1))}:void 0}))}}function tx(e,{showActiveMarker:t=!0}={}){return(n,o,s)=>{const r=e.plugins.get(Yi("0x22")),i=o[Yi("0x37")][Yi("0x24")],x=o[Yi("0x37")][Yi("0x10")],a=e.model.schema;if(!i[Yi("0x33")](x)||!i[Yi("0x2a")])return;const c=i[Yi("0x2a")];if(a[Yi("0x1")](c)&&!a.isLimit(c)&&a[Yi("0x16")](c,Yi("0x13"))){if(!s[Yi("0x23")][Yi("0x0")](o[Yi("0x37")],n.name))return;const e=s[Yi("0x2d")].createUIElement("span",{class:Yi("0x2e")}),i=s[Yi("0x1f")].toViewPosition(x);t&&r[Yi("0x2b")][Yi("0x2f")](o[Yi("0x20")])&&s[Yi("0x2d")][Yi("0xc")](Yi("0x6"),e),s[Yi("0x2d")].insert(i,e),s[Yi("0x1f")][Yi("0xf")](e,o[Yi("0x20")])}}}const nx=["commandName","format","locale","*Remove all formatting*","schema","document","model","get","createRangeOn","isFormatting","removeFormat","markInlineFormat","getRanges","TrackChangesEditing","from","plugins","getAttributeProperties","isCollapsed","registerDescriptionCallback","RemoveFormatEditing","afterInit","change"];var ox,sx;ox=nx,sx=253,function(e){for(;--e;)ox.push(ox.shift())}(++sx);const rx=function(e,t){return nx[e-=0]};class ix extends e.Plugin{[rx("0x9")](){const e=this.editor;if(!e[rx("0x4")].has(rx("0x8")))return;const t=e[rx("0x4")][rx("0x12")](rx("0x2"));t.enableCommand(rx("0x15"),(n=>{const o=e[rx("0x11")][rx("0x10")].selection;o[rx("0x6")]?n():e.model[rx("0xa")]((()=>{const n=Array[rx("0x3")](o[rx("0x1")]());for(const o of n)for(const n of o.getItems())xx(n,e[rx("0x11")][rx("0xf")])&&t[rx("0x0")](e[rx("0x11")][rx("0x13")](n),{commandName:"removeFormat",commandParams:[]})}))})),t._descriptionFactory[rx("0x7")]((t=>{const{data:n}=t;if(n&&rx("0x15")==n[rx("0xb")])return{type:rx("0xc"),content:Yo(e[rx("0xd")],rx("0xe"))}}))}}function xx(e,t){for(const[n]of e.getAttributes()){const e=t[rx("0x5")](n);if(e&&e[rx("0x14")])return!0}return!1}const ax=["goToPreviousRestrictedEditingException","editor","has","discardSuggestion","acceptSelectedSuggestions","acceptSuggestion","get","goToNextRestrictedEditingException","enableCommand","discardSelectedSuggestions","RestrictedEditingModeEditing","TrackChangesEditing","plugins","afterInit","trackChanges","acceptAllSuggestions"];var cx,lx;cx=ax,lx=274,function(e){for(;--e;)cx.push(cx.shift())}(++lx);const ux=function(e,t){return ax[e-=0]};class dx extends e.Plugin{[ux("0xb")](){const e=this[ux("0xf")];if(!e.plugins[ux("0x0")](ux("0x8")))return;const t=e[ux("0xa")][ux("0x4")](ux("0x9"));t[ux("0x6")](ux("0xe")),t[ux("0x6")](ux("0x5"));const n=e[ux("0xa")][ux("0x4")](ux("0x8"));n[ux("0x6")](ux("0xc")),n.enableCommand(ux("0x3")),n[ux("0x6")](ux("0x1")),n[ux("0x6")](ux("0xd")),n[ux("0x6")]("discardAllSuggestions"),n[ux("0x6")](ux("0x2")),n[ux("0x6")](ux("0x7"))}}const gx=["createUIElement","requires","softBreak","createPositionBefore","locale","writer","deletion","TrackChangesEditing","high","ELEMENT_LINE_BREAK","activeMarkers","ck-suggestion-marker-","addMarker:suggestion:deletion","get","init","editor","showSuggestionHighlights","merge","downcastDispatcher","addMarker:suggestion","editing","insert","consumable","bindElementToMarker","shiftEnter","plugins","getItems","name","addClass","model","markerRange","toViewPosition","markerName","addMarker:suggestion:insertion","enableCommand","mapper","test","options"];var mx,fx;mx=gx,fx=381,function(e){for(;--e;)mx.push(mx.shift())}(++fx);const hx=function(e,t){return gx[e-=0]};class px extends e.Plugin{static get[hx("0x0")](){return[nr.ShiftEnter]}[hx("0xd")](){const e=this[hx("0xe")],t=e[hx("0x18")][hx("0xc")](hx("0x6"));t[hx("0x21")](hx("0x17")),e[hx("0x13")].downcastDispatcher.on(hx("0x20"),bx(e),{priority:hx("0x7")}),e[hx("0x13")][hx("0x11")].on(hx("0xb"),bx(e),{priority:"high"}),e.data[hx("0x11")].on(hx("0x12"),((t,n,o)=>{o[hx("0x24")][hx("0xf")]&&bx(e,{showActiveMarker:!1})(t,n,o)})),t._descriptionFactory.registerElementLabel(hx("0x1"),(t=>Yo(e[hx("0x3")],hx("0x8"),t)))}}function bx(e,{showActiveMarker:t=!0}={}){return(n,o,s)=>{const r=e[hx("0x18")][hx("0xc")](hx("0x6"));if(!s[hx("0x15")][hx("0x23")](o[hx("0x1d")],n[hx("0x1a")]))return;const i=e[hx("0x1c")];for(const e of o[hx("0x1d")][hx("0x19")]()){if(!e.is("element","softBreak"))continue;const n=hx("0x5")==o[hx("0x1f")].split(":")[1]?hx("0x10"):"split",x=s[hx("0x4")][hx("0x25")]("span",{class:hx("0xa")+n}),a=s[hx("0x22")][hx("0x1e")](i[hx("0x2")](e));t&&r[hx("0x9")].includes(o[hx("0x1f")])&&s[hx("0x4")][hx("0x1b")]("ck-suggestion-marker--active",x),s.writer[hx("0x14")](a,x),s[hx("0x22")][hx("0x16")](x,o[hx("0x1f")])}}}const Ex=["format","FORMAT_RESTRICTED_ENABLED","editor","_descriptionFactory","from","markInlineFormat","has","change","getRanges","plugins","enableCommand","commandName","model","get","locale","forceValue","restrictedEditingException","TrackChangesEditing","FORMAT_RESTRICTED_DISABLED","StandardEditingModeEditing","afterInit","registerDescriptionCallback"];var _x,Tx;_x=Ex,Tx=339,function(e){for(;--e;)_x.push(_x.shift())}(++Tx);const Cx=function(e,t){return Ex[e-=0]};class yx extends e.Plugin{[Cx("0xb")](){const e=this[Cx("0xf")],t=e[Cx("0x3")],n=e[Cx("0x5")];if(!e.plugins[Cx("0x13")](Cx("0xa")))return;const o=e[Cx("0x0")][Cx("0x4")](Cx("0x8")),s=Cx("0x7"),r=e.commands.get(s);o[Cx("0x1")](s,((e,n={})=>{const i=t.document.selection;if(i.isCollapsed)return void e(n);const x=void 0!==n[Cx("0x6")]?n[Cx("0x6")]:!r.value;t[Cx("0x14")]((()=>{const e=Array[Cx("0x11")](i[Cx("0x15")]());for(const n of e){const e=x?[n]:ms(s,n,t);for(const t of e)o[Cx("0x12")](t,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Cx("0x10")][Cx("0xc")]((e=>{const{data:t}=e;if(t&&t[Cx("0x2")]==s)return t.commandParams[0][Cx("0x6")]?{type:Cx("0xd"),content:Yo(n,Cx("0xe"))}:{type:"format",content:Yo(n,Cx("0x9"))}}))}}const kx=["Style","markBlockFormat","commands","isBlock","style:","plugins","from","includes","style.definitions","element","getAncestors","editor","value","styleName","find","config","modelElements","afterInit","DataSchema","_getRangesWithClasses","block","get","markInlineFormat","TrackChangesEditing","format","selection","_descriptionFactory","normalizeConfig","getSelectedBlocks","enabledStyles","every","getAttribute","*Format:* %0","change","registerDescriptionCallback","style","_getStyleDefinition","model","add","toLowerCase","document","commandParams","classes","push","inline","StyleUtils","enableCommand","name","isCollapsed","locale"];var Ax,vx;Ax=kx,vx=337,function(e){for(;--e;)Ax.push(Ax.shift())}(++vx);const Rx=function(e,t){return kx[e-=0]};class Sx extends e.Plugin{[Rx("0x1e")](){const e=this[Rx("0x18")];if(!e[Rx("0x12")].has(Rx("0xd")))return;const t=e[Rx("0xf")].get(Rx("0x30")),n=e[Rx("0x12")][Rx("0x22")](Rx("0x24")),o=e[Rx("0xc")],s=e[Rx("0x12")][Rx("0x22")](Rx("0x1f")),r=e[Rx("0x12")][Rx("0x22")](Rx("0x8"))[Rx("0x28")](s,e[Rx("0x1c")][Rx("0x22")](Rx("0x15")));n[Rx("0x9")]("style",((o,{styleName:i})=>{const x=e[Rx("0x0")][Rx("0x3")][Rx("0x26")],a=this[Rx("0x31")](i,r);if(!a)return;if(!t[Rx("0x2a")][Rx("0x14")](i))return;if(x[Rx("0xb")]&&!a[Rx("0x10")])return void o({styleName:i});const c=!t[Rx("0x19")][Rx("0x14")](a.name);if(a[Rx("0x10")]){const t=function(e,t){const n=new Set;for(const o of e){const e=o[Rx("0x17")]({includeSelf:!0,parentFirst:!0});for(const o of e)if(t[Rx("0x14")](o[Rx("0xa")])){n[Rx("0x1")](o);break}}return n}(x[Rx("0x29")](),a[Rx("0x1d")]);e[Rx("0x0")][Rx("0x2e")]((()=>{for(const e of t)n[Rx("0xe")](e,{commandName:"style",commandParams:[{styleName:i,forceValue:c}],formatGroupId:Rx("0x11")+i})}))}else{let t=Array[Rx("0x13")](x.getRanges());if(!c){const n=Array.from(s.getDefinitionsForView(a[Rx("0x16")],!1))[0][Rx("0x0")],o=[];for(const s of t){const t=this[Rx("0x20")](e[Rx("0x0")],s,a[Rx("0x5")],n);o[Rx("0x6")](...t)}t=o}e[Rx("0x0")][Rx("0x2e")]((()=>{for(const e of t)n[Rx("0x23")](e,{commandName:Rx("0x30"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0x27")][Rx("0x2f")]((e=>{const{data:t}=e;if(t&&Rx("0x30")===t.commandName)return t[Rx("0x4")][0].forceValue?{type:Rx("0x25"),content:Yo(o,Rx("0x2d"),t[Rx("0x4")][0][Rx("0x1a")][Rx("0x2")]())}:{type:Rx("0x25"),content:Yo(o,"*Remove format:* %0",t[Rx("0x4")][0][Rx("0x1a")][Rx("0x2")]())}}))}[Rx("0x31")](e,t){let n=t[Rx("0x21")].find((t=>t.name===e));return n||(n=t[Rx("0x7")][Rx("0x1b")]((t=>t[Rx("0xa")]===e))),n}_getRangesWithClasses(e,t,n,o){const s=[];for(const r of t.getItems()){const t=r[Rx("0x2c")](o);t&&n[Rx("0x2b")]((e=>t[Rx("0x5")][Rx("0x14")](e)))&&s[Rx("0x6")](e.createRangeOn(r))}return s}}const Ix=["name","rootName","getRowIndexes","addRange","selectTableRow","data","getRanges","getContainedElement","some","first","get","map","markMultiRangeDeletion","min","enqueueChange","from","_descriptionFactory","addMarker:suggestion","tableRow","differ","getChangedMarkers","insertTableRowAbove","table","element","$graveyard","oldRange","getSuggestion","getItems","tablePaste","highest","order","editor","ELEMENT_TABLE_WITH_TEXT","_getCoordsForCells","$textProxy","getSelectionAffectedTableCells","locale","end","length","nodeBefore","getChildren","change","insertTableRowBelow","createTableWalker","removeClass","classes","start","above","insertTable","root","ELEMENT_TABLE_ROW","markMultiRangeInsertion","TrackChangesEditing","substr","removeTableRow","last","createRangeIn","ELEMENT_TABLE","model","minColumn","_suggestionFactory","MIN_SAFE_INTEGER","suggestion","getCellLocation","subType","registerCustomCallback","ELEMENT_TABLE_COLUMN","type","findAncestor","writer","colspan","minRow","tableColumn","registerDescriptionCallback","setSelection","selection","getAttribute","toViewElement","nodeAfter","forceValue","mapper","isEqual","execute","has","toLowerCase","rowspan","_getSuggestionCoords","includes","commands","plugins","maxColumn","hasAttribute","change:data","*Remove:* %0","TableEditing","join","insertion","isArray","isTouching","ELEMENT_TABLE_COLUMN_WITH_TEXT","enableCommand","span","_splitMarkerName","afterInit","ELEMENT_TABLE_ROW_WITH_TEXT","insertTableColumnRight","left","createRangeOn","removeTableColumn","registerElementLabel","detach","getColumnIndexes","TableUtils","_tableSuggestions","position","max","every","maxRow","cell","isInContent","deletion","push","document","add","filter","options","tableCell","showSuggestionHighlights","*Insert:* %0","fromRange","getChanges","insertTableColumnLeft","discard","createPositionAt"];var Lx,Nx;Lx=Ix,Nx=242,function(e){for(;--e;)Lx.push(Lx.shift())}(++Nx);const wx=function(e,t){return Ix[e-=0]};class Mx extends e.Plugin{constructor(e){super(e),this._tablePostFixingSubtypes=[wx("0x2c"),wx("0x62")],this._tableSuggestions=new Set}[wx("0x81")](){const e=this[wx("0x39")],t=e[wx("0x54")][wx("0xe")][wx("0x65")];if(!e[wx("0x73")][wx("0x6d")](wx("0x78")))return;const n=e[wx("0x3e")],o=e[wx("0x73")][wx("0x24")](wx("0x4e")),s=e[wx("0x73")][wx("0x24")](wx("0x4"));o[wx("0x2a")][wx("0x1")](wx("0x30"),(e=>Yo(n,wx("0x53"),e))),this._setupColumnsRowsFixing(),o.enableCommand(wx("0x4a")),o[wx("0x7e")](wx("0x1e")),o[wx("0x7e")]("selectTableColumn");for(const n of[wx("0x2f"),wx("0x44")]){const r=e[wx("0x72")][wx("0x24")](n);o.enableCommand(n,(n=>{e[wx("0x54")][wx("0x43")]((e=>{n();const i=wx("0x49")===r[wx("0x38")],x=s[wx("0x3d")](t),a=s[wx("0x1c")](x),c=i?a[wx("0x23")]-1:a[wx("0x51")]+1,l=x[0][wx("0x5e")](wx("0x30")),u=s[wx("0x45")](l,{startRow:c,endRow:c}),d=Array.from(u)[wx("0x25")]((t=>e.createRangeOn(t[wx("0xa")])));o[wx("0x4d")](d,wx("0x2c"))}))}))}for(const n of[wx("0x17"),wx("0x83")]){const r=e.commands[wx("0x24")](n);o[wx("0x7e")](n,(n=>{e[wx("0x54")][wx("0x43")]((e=>{n();const i=wx("0x84")===r.order,x=s[wx("0x3d")](t),a=s[wx("0x3")](x),c=i?a[wx("0x23")]-1:a[wx("0x51")]+1,l=x[0][wx("0x5e")](wx("0x30")),u=s[wx("0x45")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array.from(u)[wx("0x25")]((t=>e[wx("0x85")](t[wx("0xa")])));o.markMultiRangeInsertion(d,wx("0x62"))}))}))}for(const n of[wx("0x50"),wx("0x0")]){const r=n.substr(11),i=r[wx("0x6e")](),x=i[wx("0x4f")](0,3)+wx("0x7f"),a="table"+r,c="min"+r,l=wx("0x7")+r;o[wx("0x7e")](n,(()=>{e[wx("0x54")][wx("0x43")]((e=>{const r=s.getSelectionAffectedTableCells(t),u=r[0][wx("0x5e")]("table");let d;if(wx("0x50")==n){const e=s.getRowIndexes(r);d={startRow:e[wx("0x23")],endRow:e[wx("0x51")],includeAllSlots:!0}}else{const e=s.getColumnIndexes(r);d={startColumn:e[wx("0x23")],endColumn:e[wx("0x51")],includeAllSlots:!0}}const g=s[wx("0x45")](u,d),m=Array[wx("0x29")](g)[wx("0x25")]((({cell:e})=>e)),f=Ox(m[wx("0x10")]((e=>e.hasAttribute(x)))),h=Ox(m.filter((e=>!e[wx("0x75")](x))))[wx("0x25")]((t=>e[wx("0x85")](t))),p=o[wx("0x26")](h,a);if(p&&(wx("0x2c")==p[wx("0x5a")]||"tableColumn"==p[wx("0x5a")])){const t=this._getSuggestionCoords(p);for(const n of f){const o=e.createRangeOn(n),r=s[wx("0x59")](n),a=n.getAttribute(x)-1,u=t[c],d=t[l];u<=r[i]&&r[i]+a<=d&&p.addRange(o)}}}))}))}function r(n){const o=Array[wx("0x29")](t[wx("0x20")]()).map((e=>i.LiveRange[wx("0x15")](e)));e[wx("0x54")].change((t=>{const s=t.batch;n=n[wx("0x10")]((e=>wx("0x32")!=e[wx("0x4b")][wx("0x1b")])),t[wx("0x64")](n),e[wx("0x72")][wx("0x24")](wx("0x50")).refresh(),e[wx("0x6c")](wx("0x50"),{forceDefaultExecution:!0}),e[wx("0x54")][wx("0x28")]((()=>{e[wx("0x54")][wx("0x28")](s,(e=>{const t=o[wx("0x10")]((e=>wx("0x32")!=e[wx("0x4b")].rootName));t[wx("0x40")]>0&&e.setSelection(t);for(const e of o)e.detach()}))}))}))}function a(n){e[wx("0x54")].change((o=>{const s=Array[wx("0x29")](t.getRanges())[wx("0x25")]((e=>i.LiveRange[wx("0x15")](e))),r=[];for(const e of n)for(const t of e[wx("0x35")]({shallow:!0}))r[wx("0xd")](t);for(const t of r)wx("0x32")!=t.root[wx("0x1b")]&&(o[wx("0x64")](o[wx("0x19")](t,0)),e[wx("0x72")][wx("0x24")](wx("0x0")).refresh(),e[wx("0x6c")]("removeTableColumn",{forceDefaultExecution:!0}));const x=s[wx("0x10")]((e=>"$graveyard"!=e[wx("0x4b")][wx("0x1b")]));x[wx("0x40")]>0&&o[wx("0x64")](x);for(const e of s)e.detach()}))}function c(e,t){return t[wx("0x8")]((t=>e[wx("0x22")]((e=>e[wx("0x3f")][wx("0x6b")](t[wx("0x48")])||t[wx("0x3f")][wx("0x6b")](e[wx("0x48")])))))}function l(e,t){return e[wx("0x22")]((e=>t[wx("0x22")]((t=>e[wx("0x3f")][wx("0x7c")](t[wx("0x48")])))))}e[wx("0x1f")].downcastDispatcher.on(wx("0x2b"),((e,t,n)=>{if(!n[wx("0x11")][wx("0x13")])return;const o=t.item;if(!o)return;const s=n[wx("0x6a")][wx("0x67")](o);function r(e){return Array[wx("0x7b")](e)?e:[e]}s&&wx("0x12")===o.name&&(0,x.setHighlightHandling)(s,n[wx("0x5f")],((e,t,n)=>n.addClass(r(t[wx("0x47")]),e)),((e,t,n)=>n[wx("0x46")](r(t.classes),e)))}),{priority:wx("0x37")}),o[wx("0x2a")][wx("0x63")]((e=>{if("insertion"!=e[wx("0x5d")]&&wx("0xc")!=e[wx("0x5d")])return;const t=e[wx("0x21")]();if(null!=t&&t.is(wx("0x31"),wx("0x30"))){if(wx("0x7a")==e[wx("0x5d")]){const t=e.getItems()[wx("0x10")]((e=>e.is(wx("0x3c"))))[wx("0x25")]((e=>e[wx("0x1f")]));if(t[wx("0x40")])return{type:"insertion",content:Yo(n,wx("0x14"),Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+t[wx("0x79")](" ")+'"'))}}if(wx("0xc")==e[wx("0x5d")]){const t=e[wx("0x35")]()[wx("0x10")]((e=>e.is(wx("0x3c"))))[wx("0x25")]((e=>e[wx("0x1f")]));if(t[wx("0x40")])return{type:wx("0xc"),content:Yo(n,"*Remove:* %0",Yo(n,wx("0x3a"),'"'+t.join(" ")+'"'))}}}})),o[wx("0x2a")][wx("0x63")]((e=>{if(wx("0x2c")==e[wx("0x5a")]){const t=e[wx("0x35")]().filter((e=>e.is(wx("0x3c"))))[wx("0x25")]((e=>e[wx("0x1f")])),o=this[wx("0x70")](e),s=o[wx("0x9")]-o[wx("0x61")]+1;if("insertion"==e[wx("0x5d")])return t[wx("0x40")]?{type:wx("0x7a"),content:Yo(n,wx("0x14"),Yo(n,wx("0x82"),[s,'"'+t[wx("0x79")](" ")+'"']))}:{type:"insertion",content:Yo(n,wx("0x14"),Yo(n,wx("0x4c"),s))};if(wx("0xc")==e.type)return t[wx("0x40")]?{type:"deletion",content:Yo(n,wx("0x77"),Yo(n,wx("0x82"),[s,'"'+t[wx("0x79")](" ")+'"']))}:{type:wx("0xc"),content:Yo(n,wx("0x77"),Yo(n,wx("0x4c"),s))}}if(wx("0x62")==e[wx("0x5a")]){const t=e.getItems()[wx("0x10")]((e=>e.is("$textProxy")))[wx("0x25")]((e=>e[wx("0x1f")])),o=this[wx("0x70")](e),s=o[wx("0x74")]-o[wx("0x55")]+1;if("insertion"==e.type)return t.length?{type:wx("0x7a"),content:Yo(n,wx("0x14"),Yo(n,wx("0x7d"),[s,'"'+t[wx("0x79")](" ")+'"']))}:{type:wx("0x7a"),content:Yo(n,wx("0x14"),Yo(n,"ELEMENT_TABLE_COLUMN",s))};if(wx("0xc")==e.type)return t[wx("0x40")]?{type:wx("0xc"),content:Yo(n,wx("0x77"),Yo(n,wx("0x7d"),[s,'"'+t[wx("0x79")](" ")+'"']))}:{type:wx("0xc"),content:Yo(n,wx("0x77"),Yo(n,wx("0x5c"),s))}}})),o[wx("0x56")][wx("0x5b")](wx("0x7a"),wx("0x2c"),wx("0x18"),r),o[wx("0x56")][wx("0x5b")]("deletion",wx("0x2c"),"accept",r),o[wx("0x56")][wx("0x5b")](wx("0x7a"),wx("0x62"),wx("0x18"),a),o[wx("0x56")][wx("0x5b")](wx("0xc"),"tableColumn","accept",a),o[wx("0x56")][wx("0x5b")](wx("0x7a"),wx("0x62"),wx("0x79"),c),o[wx("0x56")].registerCustomCallback(wx("0xc"),"tableColumn",wx("0x79"),c),o[wx("0x56")].registerCustomCallback("insertion",wx("0x2c"),wx("0x79"),l),o[wx("0x56")][wx("0x5b")](wx("0xc"),wx("0x2c"),wx("0x79"),l)}_acceptFormatSuggestionCallbackFactory(){const e=this[wx("0x39")],t=e[wx("0x54")].document.selection;return(n,o)=>{e[wx("0x54")].change((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][wx("0x3f")][wx("0x41")];x&&x[0]&&!1===x[0][wx("0x69")]&&(a=n[0][wx("0x48")][wx("0x68")]);const c=s[wx("0x52")](a);if(wx("0x32")==c[wx("0x4b")][wx("0x1b")])return;const l=Array[wx("0x29")](t[wx("0x20")]())[wx("0x25")]((e=>i.LiveRange[wx("0x15")](e)));s[wx("0x64")](c),e[wx("0x72")][wx("0x24")](r).refresh(),x.push({forceDefaultExecution:!0}),e[wx("0x6c")](r,...x);const u=l[wx("0x10")]((e=>wx("0x32")!=e[wx("0x4b")][wx("0x1b")]));u.length>0&&s[wx("0x64")](u);for(const e of l)e[wx("0x2")]()}))}}_getCoordsForCells(e){const t=this[wx("0x39")].plugins[wx("0x24")](wx("0x4"));let n=Number.MAX_SAFE_INTEGER,o=Number[wx("0x57")],s=Number.MAX_SAFE_INTEGER,r=Number[wx("0x57")];for(const i of e){if(wx("0x32")==i[wx("0x4b")].rootName)continue;const{row:e,column:x}=t[wx("0x59")](i),a=i[wx("0x75")](wx("0x6f"))?i.getAttribute(wx("0x6f"))-1:0,c=i[wx("0x75")]("colspan")?i[wx("0x66")](wx("0x60"))-1:0;n=e<n?e:n,o=e+a>o?e+a:o,s=x<s?x:s,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:s,maxColumn:r}}_setupColumnsRowsFixing(){const e=this[wx("0x39")],t=e[wx("0x73")][wx("0x24")](wx("0x4e")),n=e.plugins[wx("0x24")](wx("0x4"));e.model.document.on(wx("0x76"),(()=>{const n=Array.from(e[wx("0x54")][wx("0xe")][wx("0x2d")][wx("0x2e")]());for(const{name:e,data:o}of n){const{group:n,id:s,subType:r}=t[wx("0x80")](e);if(wx("0x58")!=n)continue;if(null!=o[wx("0x33")])continue;const i=t[wx("0x34")](s);this._tablePostFixingSubtypes[wx("0x71")](r)&&this[wx("0x5")][wx("0xf")](i)}}),{priority:"low"});const o=(e,t)=>{let o=!1;const s=t.createRangeOn(e),r=e.findAncestor(wx("0x30")),i=n[wx("0x59")](e);for(const t of this[wx("0x5")]){const n=t[wx("0x5a")],x=n.startsWith(wx("0x36")),a=n[wx("0x4f")](x?10:5),c=a[wx("0x6e")](),l=c[wx("0x4f")](0,3)+wx("0x7f"),u=wx("0x27")+a,d="max"+a;if(!t[wx("0xb")])continue;if(r!=t.getFirstRange()[wx("0x48")][wx("0x5e")](wx("0x30")))continue;if(t.isIntersectingWithRange(s))continue;const g=e[wx("0x75")](l)?e[wx("0x66")](l)-1:0,m=this[wx("0x70")](t),f=m[u],h=m[d];f<=i[c]&&i[c]+g<=h&&(t[wx("0x1d")](s),o=!0)}return o};e[wx("0x54")].document.registerPostFixer((t=>{let n=!1;for(const s of e[wx("0x54")][wx("0xe")][wx("0x2d")][wx("0x16")]())if("insert"==s[wx("0x5d")])if("tableRow"==s[wx("0x1a")])for(const e of s[wx("0x6")][wx("0x68")][wx("0x42")]())n=n||o(e,t);else"tableCell"==s[wx("0x1a")]&&(n=n||o(s[wx("0x6")].nodeAfter,t));return n}))}[wx("0x70")](e){return this[wx("0x3b")](e[wx("0x20")]()[wx("0x25")]((e=>e[wx("0x48")][wx("0x68")])))}}function Ox(e){return Array.from(new Set(e).values())}const Fx=["root","getRanges","commands","isEnabled","getSuggestions","type","has","find","model","createRangeOn","detach","commandName","insertion","TableEditing","refresh","filter","change","mergeTableCellDown","rootName","tableCell","add","mergeTableCellUp","setSelection","author","mergeTableCellRight","*Merge cells*","TableUtils","get","_suggestionFactory","low","plugins","containsRange","length","stop","enableCommand","formatBlock","createTableWalker","mergeTableCellLeft","format","accept","*Split cell:* horizontally","isInContent","map","_tablePostFixingSubtypes","_descriptionFactory","trackChanges","_areMergableCells","table","push","subType","deletion","selection","editor","from","size","element","getAncestors","splitTableCellHorizontally","highest","locale","return","markBlockFormat","getSelectionAffectedTableCells","registerCustomCallback","forceDefaultExecution","splitTableCellVertically","execute","markMultiRangeBlockFormat","registerDescriptionCallback","fromRange","document","mergeTableCells","cell","_areSelectedCellsMergable","_isForcedDefaultExecutionBlock","value"];var Px,Dx;Px=Fx,Dx=456,function(e){for(;--e;)Px.push(Px.shift())}(++Dx);const Bx=function(e,t){return Fx[e-=0]};class jx extends e.Plugin{static get requires(){return[Mx]}afterInit(){const e=this[Bx("0x34")],t=e[Bx("0x8")][Bx("0x46")].selection,n=e[Bx("0x3b")];if(!e[Bx("0x1e")][Bx("0x6")](Bx("0xd")))return;const o=e[Bx("0x1e")][Bx("0x1b")]("TrackChangesEditing"),s=e.plugins[Bx("0x1b")](Bx("0x1a")),r=e.plugins[Bx("0x1b")](Mx);r[Bx("0x2b")][Bx("0x30")](Bx("0x47")),o[Bx("0x22")](Bx("0x47"),(()=>{const t=s.getSelectionAffectedTableCells(e.model[Bx("0x46")][Bx("0x33")]);e[Bx("0x8")][Bx("0x10")]((()=>{o.markMultiRangeBlockFormat(t,{commandName:Bx("0x47"),commandParams:[]},[],Bx("0x47"))}))})),e[Bx("0x2")][Bx("0x1b")]("mergeTableCells").on(Bx("0x42"),((t,n)=>{e.commands.get(Bx("0x2d"))[Bx("0x4b")]&&(n.length>0&&n[n[Bx("0x20")]-1]&&n[n.length-1][Bx("0x40")]||o[Bx("0x4a")]||this[Bx("0x49")]()||t[Bx("0x21")]())}),{priority:Bx("0x3a")});for(const t of["mergeTableCellUp",Bx("0x18"),"mergeTableCellDown","mergeTableCellLeft"]){const n=e[Bx("0x2")].get(t);o[Bx("0x22")](t,(()=>{const t=e[Bx("0x8")][Bx("0x46")][Bx("0x33")].getFirstPosition()[Bx("0x38")]()[Bx("0x7")]((e=>e.is("element",Bx("0x13")))),s=n[Bx("0x4b")];e[Bx("0x8")][Bx("0x10")]((()=>{o[Bx("0x43")]([t,s],{commandName:"mergeTableCells",commandParams:[]},[],Bx("0x47"))}))}))}for(const t of[Bx("0x41"),Bx("0x39")]){const n=e[Bx("0x2")][Bx("0x1b")](t);o[Bx("0x22")](t,(()=>{const r=s.getSelectionAffectedTableCells(e[Bx("0x8")][Bx("0x46")][Bx("0x33")])[0],i=r.findAncestor(Bx("0x2f")),{column:x,row:a}=s.getCellLocation(r);let c=[];if("horizontally"==n.direction){const e=s[Bx("0x24")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0x35")](e).map((e=>e[Bx("0x48")]))}else{const e=s[Bx("0x24")](i,{column:x,includeAllSlots:!0});c=Array[Bx("0x35")](e)[Bx("0x2a")]((e=>e[Bx("0x48")]))}e[Bx("0x8")][Bx("0x10")]((e=>{o[Bx("0x3d")](e[Bx("0x9")](r),{commandName:t,commandParams:[]},c,t)}))}))}o[Bx("0x2c")][Bx("0x44")]((e=>{const{data:t}=e;if(t)return Bx("0x47")==t[Bx("0xb")]?{type:Bx("0x26"),content:Yo(n,Bx("0x19"))}:void 0})),o[Bx("0x2c")][Bx("0x44")]((e=>{const{data:t}=e;if(t)return"splitTableCellVertically"==t.commandName?{type:"format",content:Yo(n,"*Split cell:* vertically")}:Bx("0x39")==t[Bx("0xb")]?{type:"format",content:Yo(n,Bx("0x28"))}:void 0}));const x=r._acceptFormatSuggestionCallbackFactory();for(const e of[Bx("0x15"),Bx("0x18"),Bx("0x11"),Bx("0x25")])o[Bx("0x1c")].registerCustomCallback(Bx("0x23"),e,Bx("0x27"),x);for(const e of[Bx("0x41"),Bx("0x39")])o._suggestionFactory[Bx("0x3f")](Bx("0x23"),e,"accept",x);o[Bx("0x1c")][Bx("0x3f")](Bx("0x23"),Bx("0x47"),Bx("0x27"),(n=>{e[Bx("0x8")].change((o=>{const s=Array[Bx("0x35")](t[Bx("0x1")]())[Bx("0x2a")]((e=>i.LiveRange[Bx("0x45")](e)));o[Bx("0x16")](n),e[Bx("0x2")][Bx("0x1b")](Bx("0x47"))[Bx("0xe")](),e[Bx("0x42")](Bx("0x47"),{forceDefaultExecution:!0});const r=s[Bx("0xf")]((e=>"$graveyard"!=e[Bx("0x0")][Bx("0x12")]));r[Bx("0x20")]>0&&o[Bx("0x16")](r);for(const e of s)e[Bx("0xa")]()}))}));for(const t of[Bx("0x15"),Bx("0x11"),"mergeTableCellLeft","mergeTableCellRight"]){const n=e[Bx("0x2")][Bx("0x1b")](t);n.on("set:isEnabled",((t,o,s)=>{if(s){const o=e[Bx("0x8")][Bx("0x46")].selection.getFirstPosition()[Bx("0x38")]()[Bx("0x7")]((e=>e.is(Bx("0x37"),Bx("0x13"))));this[Bx("0x2e")](n[Bx("0x4b")],o)||(t[Bx("0x3c")]=!1,t[Bx("0x21")]())}}),{priority:Bx("0x1d")})}}_areSelectedCellsMergable(){const e=this.editor.commands[Bx("0x1b")](Bx("0x47")),t=this[Bx("0x34")][Bx("0x1e")].get(Bx("0x1a"));if(!e[Bx("0x3")])return!1;const n=t[Bx("0x3e")](this[Bx("0x34")][Bx("0x8")][Bx("0x46")][Bx("0x33")]);for(const e of n)for(const t of n)if(e!=t&&!this[Bx("0x2e")](e,t))return!1;return!0}_areMergableCells(e,t){const n=this[Bx("0x34")][Bx("0x1e")][Bx("0x1b")]("TrackChangesEditing"),o=this.editor[Bx("0x8")][Bx("0x9")](e),s=this[Bx("0x34")][Bx("0x8")].createRangeOn(t),r=new Set,i=new Set;for(const e of n[Bx("0x4")]())if((Bx("0xc")==e[Bx("0x5")]||Bx("0x32")==e[Bx("0x5")]||"mergeTableCells"==e[Bx("0x31")])&&e[Bx("0x29")])for(const t of e[Bx("0x1")]())t[Bx("0x1f")](o,!0)&&r[Bx("0x14")](e[Bx("0x5")]+":"+e.author.id),t[Bx("0x1f")](s,!0)&&i[Bx("0x14")](e[Bx("0x5")]+":"+e[Bx("0x17")].id);if(r.size!=i[Bx("0x36")])return!1;for(const e of r)if(!i[Bx("0x6")](e))return!1;return!0}}const Ux=["forceValue","markerRange","addClass","_splitMarkerName","data","isBefore","table","getChild","afterInit","index","createTableWalker","cell","FORMAT_REGULAR_COLUMN","parent","change","commands","mapper","FORMAT_REGULAR_ROW","format","childCount","createPositionAfter","nodeAfter","last","downcastDispatcher","ck-suggestion-marker--active","getSuggestion","end","markBlockFormat","*Format:* %0","commandParams","data-suggestion","TableUtils","removeMarker:suggestion","activeMarkers","markerName","TrackChangesEditing","enableCommand","start","getRowIndexes","writer","stop","ck-suggestion-marker-","includes","addMarker:suggestion","options","registerCustomCallback","item","first","get","getCellLocation","getAttribute","setTableRowHeader","registerDescriptionCallback","createRange","markerNameToElements","removeClass","from","getSelectionAffectedTableCells","headingRows","locale","highest","plugins","_suggestionFactory","showSuggestionHighlights","model","selection","value","consume","commandName","consumable","document","editor","FORMAT_HEADER_COLUMN","FORMAT_HEADER_ROW","unbindElementFromMarkerName","removeAttribute","formatBlock","accept","findAncestor","editing","setTableColumnHeader","setAttribute"];var Gx,Hx;Gx=Ux,Hx=434,function(e){for(;--e;)Gx.push(Gx.shift())}(++Hx);const zx=function(e,t){return Ux[e-=0]};class Wx extends e.Plugin{static get requires(){return[Mx]}[zx("0x42")](){const e=this[zx("0x2f")];if(!e[zx("0x25")].has("TableEditing"))return;const t=e[zx("0x23")],n=e.plugins[zx("0x18")](zx("0xb")),o=e[zx("0x25")][zx("0x18")](zx("0x7")),s=e[zx("0x25")][zx("0x18")](Mx);function r({showActiveMarker:e=!0,setDataAttribute:t=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n._splitMarkerName(r.markerName),c=n[zx("0x1")](a);if(!c[zx("0x3e")]||zx("0x38")!=c[zx("0x3e")][zx("0x2c")])return;if(r[zx("0x16")])return void s[zx("0x10")]();if(!i[zx("0x2d")][zx("0x2b")](r[zx("0x3b")],s.name))return;const l=r[zx("0x3b")][zx("0xd")][zx("0x4f")],u=r[zx("0x3b")][zx("0x2")].nodeBefore,d=l.parent[zx("0x47")],{column:g}=o[zx("0x19")](l),{column:m}=o[zx("0x19")](u);for(let s=g;s<=m;s++){const c=o.createTableWalker(d,{column:s,includeAllSlots:!1});for(const o of c){const s=o[zx("0x45")],c=i[zx("0x4a")].toViewElement(s);i[zx("0xf")][zx("0x3c")](zx("0x11")+x,c),t&&i[zx("0xf")][zx("0x39")](zx("0x6"),a,c),i.mapper.bindElementToMarker(c,r[zx("0xa")]),e&&(n[zx("0x9")][zx("0x12")](r[zx("0xa")])?i.writer.addClass("ck-suggestion-marker--active",c):i.writer.removeClass("ck-suggestion-marker--active",c))}}}}n.enableCommand("setTableRowHeader",((t,s)=>{const r=o[zx("0x21")](e.model[zx("0x2e")][zx("0x29")]),i=o[zx("0xe")](r),x=r[0].findAncestor(zx("0x40")),a=x[zx("0x1a")](zx("0x22"))||0,c=s&&null!==s[zx("0x3a")]?s[zx("0x3a")]:!e.commands[zx("0x18")]("setTableRowHeader")[zx("0x2a")],l=c?i[zx("0x50")]:i.first,u=x[zx("0x41")](l);let d;if(c){const t=x[zx("0x41")](a);if(u.index<t[zx("0x43")])return;d=e[zx("0x28")][zx("0x1d")](e.model.createPositionBefore(t[zx("0x41")](0)),e[zx("0x28")][zx("0x4e")](u[zx("0x41")](u.childCount-1)))}else{const t=x[zx("0x41")](a-1);if(!t)return;d=e[zx("0x28")][zx("0x1d")](e[zx("0x28")].createPositionBefore(u.getChild(0)),e[zx("0x28")][zx("0x4e")](t[zx("0x41")](t[zx("0x4d")]-1)))}e[zx("0x28")].change((()=>{n[zx("0x3")](d,{commandName:zx("0x1b"),commandParams:[{forceValue:c}]},[],zx("0x1b"))}))})),n[zx("0xc")](zx("0x38"),((t,o)=>{const s=e[zx("0x25")][zx("0x18")](zx("0x7")),r=s.getSelectionAffectedTableCells(e[zx("0x28")][zx("0x2e")][zx("0x29")]),i=s.getColumnIndexes(r),x=r[0][zx("0x36")]("table"),a=x[zx("0x1a")]("headingColumns")||0,c=o&&null!==o.forceValue?o[zx("0x3a")]:!e[zx("0x49")][zx("0x18")](zx("0x38"))[zx("0x2a")];let l;const u=x.getChild(0),d=c?i.last:i[zx("0x17")],g=s[zx("0x44")](x,{startRow:0,column:d,includeAllSlots:!1}),m=Array[zx("0x20")](g)[0][zx("0x45")];if(c){const t=u[zx("0x41")](a);if(m[zx("0x3f")](t))return;l=e[zx("0x28")][zx("0x1d")](e[zx("0x28")].createPositionBefore(t),e[zx("0x28")][zx("0x4e")](m))}else{const t=u[zx("0x41")](a-1);if(!t)return;l=e[zx("0x28")].createRange(e.model.createPositionBefore(m),e[zx("0x28")].createPositionAfter(t))}e[zx("0x28")][zx("0x48")]((()=>{n[zx("0x3")](l,{commandName:zx("0x38"),commandParams:[{forceValue:c}]},[],zx("0x38"))}))})),e[zx("0x37")].downcastDispatcher.on(zx("0x13"),r(),{priority:zx("0x24")}),e.data[zx("0x51")].on(zx("0x13"),((e,t,n)=>{n[zx("0x14")][zx("0x27")]&&r({showActiveMarker:!1,setDataAttribute:!1})(e,t,n)}),{priority:zx("0x24")}),e[zx("0x37")][zx("0x51")].on(zx("0x8"),((e,t,o)=>{const{type:s,id:r}=n[zx("0x3d")](t[zx("0xa")]),i=n.getSuggestion(r);if(!i[zx("0x3e")]||"setTableColumnHeader"!=i[zx("0x3e")][zx("0x2c")])return;const x=o[zx("0x4a")][zx("0x1e")](t[zx("0xa")]);if(x)for(const e of x)o[zx("0xf")].removeClass(zx("0x11")+s,e),o[zx("0xf")][zx("0x1f")](zx("0x0"),e),o[zx("0xf")][zx("0x33")](zx("0x6"),e),o[zx("0x4a")][zx("0x32")](e,t[zx("0xa")])}),{priority:zx("0x24")}),n._descriptionFactory[zx("0x1c")]((e=>{const{data:n}=e;if(n){if("setTableRowHeader"==n[zx("0x2c")]){const e=n[zx("0x5")][0].forceValue;return o(Yo(t,zx(e?"0x31":"0x4b")))}if(zx("0x38")==n[zx("0x2c")]){const e=n[zx("0x5")][0][zx("0x3a")];return o(Yo(t,zx(e?"0x30":"0x46")))}}function o(e){return{type:zx("0x4c"),content:Yo(t,zx("0x4"),e)}}}));const i=s._acceptFormatSuggestionCallbackFactory();n[zx("0x26")][zx("0x15")](zx("0x34"),zx("0x1b"),zx("0x35"),i),n._suggestionFactory[zx("0x15")](zx("0x34"),zx("0x38"),"accept",i)}}const Vx=["markers","tableCell","removeMarker","_isForcedDefaultExecutionBlock","markMultiRangeInsertion","isEqual","$graveyard","newRange","editingDowncast","locale","markerAttributes","getColumnIndexes","tableCellVerticalAlignment","getAttributes","markerName","differ","move","ck-suggestion-marker","tableCellBorderStyle","columns","rowInsertionIndexes","remove","stop","batch","attributes","clipboardOutput","options","removeMarkers","elementToElement","createElement","getChildren","findAncestor","tableCellBorderColor","getShiftedBy","plugins","has","containsRange","map","first","fill","name","getItems","tablePasteChainId","_replaceTableSlotCell","content","getTableIfOnlyTableInContent","keys","afterInit","hasSuggestion","includes","getSelectionAffectedTableCells","dataDowncast","getContainedElement","forceDefaultExecution","removeColumns","columnInsertionIndexes","insertColumns","column","registerPostFixer","tableCellPadding","element","high","requires","author","_splitMarkerName","suggestion","filter","tablePasteRow","redo","reduce","last","_tablePostFixingSubtypes","_createdBatches","model","columnInsertionRanges","tablePasteColumn","from","formatBlock","commands","insertion","TableClipboard","getAllAdjacentSuggestions","setAttributes","cells","get","cell","createRangeIn","set","every","selection","Users","isInContent","wrap","join","find","insert","accept","registerDescriptionCallback","deletion","deletionRanges","unwrap","ck-suggestion-marker--active","ck-suggestion-marker-insertion","endRow","activeMarkers","add","startsWith","createRange","suggestion-td","subType","setAttribute","root","removeRows","createPositionBefore","insertionRanges","_suggestionFactory","for","table","createTableWalker","editing","conversion","getSuggestions","registerCustomCallback","low","markMultiRangeBlockFormat","isEmpty","type","entries","getChanges","return","tablePaste","length","getChild","end","tablePasteCell","getRange","change","getMarkers","createRangeOn","tableCellSuggestion","rows","TrackChangesEditing","_getCoordsForCells","suggestionUnloaded","previous","getSuggestion","getSuggestionCallback","getColumns","fromEntries","documentSelection","start","discard","push","oldRange","getChangedMarkers","editor","previousSibling","getRanges","markMultiRangeDeletion","position","suggestion:formatBlock:tablePasteCell","document","rowInsertionRanges","nodeAfter","markerToHighlight","view","register","row","insertContent","suggestionLoaded","endColumn"];var Kx,qx;Kx=Vx,qx=448,function(e){for(;--e;)Kx.push(Kx.shift())}(++qx);const Xx=function(e,t){return Vx[e-=0]},$x=["tableCellBorderWidth",Xx("0x61"),Xx("0x53"),"tableCellHorizontalAlignment",Xx("0x4d"),"tableCellBackgroundColor",Xx("0x7c")],Qx=Object[Xx("0x2a")]($x.map((e=>[e,null])));class Jx extends e.Plugin{static get[Xx("0x7f")](){return[Mx]}[Xx("0x70")](){const e=this[Xx("0x31")];if(!e[Xx("0x63")][Xx("0x64")](Xx("0x91")))return;const n=e[Xx("0x63")][Xx("0x95")](Xx("0x23")),o=e[Xx("0x63")][Xx("0x95")]("TableUtils"),s=e[Xx("0x63")].get(Mx),r=e.plugins[Xx("0x95")](Xx("0x91"));s[Xx("0x88")].push(Xx("0x84"),Xx("0x8c")),e[Xx("0x8a")].schema[Xx("0x3c")](Xx("0x21"),{allowIn:"tableCell",allowContentOf:Xx("0x42"),isLimit:!0}),e[Xx("0xe")][Xx("0x5d")]({model:Xx("0x21"),view:Xx("0x2")});let i=null;e[Xx("0x8a")].on("insertContent",((s,x)=>{const[a,c]=x,l=x[x[Xx("0x19")]-1];l&&l[Xx("0x76")]||n[Xx("0x44")]||this[Xx("0x31")][Xx("0x8f")].get("trackChanges").value&&function(e,t,n,o,s){if(t&&!t.is(Xx("0x2b")))return!1;const r=s[Xx("0x6e")](e,n);if(!r||!Yx(r,void 0,o))return!1;const i=o[Xx("0x73")](n[Xx("0x37")][Xx("0x9a")]);if(!i[Xx("0x19")])return!1;const x=i[0].findAncestor(Xx("0xb")),a=o.getRowIndexes(i),c=o[Xx("0x4c")](i),l={startRow:a[Xx("0x67")],endRow:a[Xx("0x87")],startColumn:c.first,endColumn:c.last};return 1==i[Xx("0x19")]&&(l[Xx("0xa8")]+=o.getRows(r)-1,l[Xx("0x40")]+=o[Xx("0x29")](r)-1),Yx(x,l,o)}(a,c,e[Xx("0x8a")],o,r)&&(s.stop(),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},e[Xx("0x8a")].change((()=>{e[Xx("0x8a")][Xx("0x3e")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,t.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=i;s[Xx("0x19")]&&n.markMultiRangeInsertion(s,"tablePasteRow",{tablePasteChainId:o}),r[Xx("0x19")]&&n[Xx("0x45")](r,Xx("0x8c"),{tablePasteChainId:o}),a[Xx("0x19")]&&n[Xx("0x45")](a,Xx("0x18"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Xx("0x19")]&&n[Xx("0x34")](c,Xx("0x18"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n[Xx("0x12")](l.map((({element:e})=>e)),{formatGroupId:(0,t.uid)()},[],Xx("0x1c"),{tablePasteChainId:o});if(u){const t=u[Xx("0x1f")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=e.model[Xx("0x20")](o),i=t[Xx("0x9f")]((e=>e[Xx("0x1d")]()[Xx("0x46")](r)));i&&n[Xx("0x2e")]([i[Xx("0x69")],s])}n[Xx("0x19")]&&u[Xx("0x4")](Xx("0x4b"),Object.fromEntries(n))}i=null})))}),{priority:t.priorities[Xx("0x7e")]+10}),e.plugins[Xx("0x95")]("TableClipboard").on(Xx("0x6c"),((e,t)=>{const[n,o,,s]=t;if(!i)return;e[Xx("0x57")]();const r=n[Xx("0x96")],x=o,a=Zx(r),c=Zx(x);e[Xx("0x17")]=r;let l=null,u=null;if(c||a)if(a&&!c){s[Xx("0x56")](r.getChild(0));for(const e of Array[Xx("0x8d")](x[Xx("0x5f")]()))s.insert(e,r,Xx("0x1b"));const e=i[Xx("0x55")][Xx("0x72")](n[Xx("0x3d")]),t=i[Xx("0x78")].includes(n[Xx("0x7a")]);e||t||(l=s[Xx("0x97")](r))}else c&&!a&&(u=s[Xx("0x97")](r));else{const e=s[Xx("0x5e")](Xx("0x21")),t=s[Xx("0x5e")](Xx("0x21"));s[Xx("0x9d")](s.createRangeIn(r),t),s[Xx("0xa0")](e,r,0);for(const t of Array.from(x[Xx("0x5f")]()))s.insert(t,e,Xx("0x1b"));l=s[Xx("0x20")](e),u=s[Xx("0x20")](t)}const d=Array[Xx("0x8d")](x[Xx("0x4e")]())[Xx("0x83")]((([e])=>$x[Xx("0x72")](e)));i[Xx("0x94")][Xx("0x2e")]({element:r,attributes:d[Xx("0x19")]?Object[Xx("0x2a")](d):null}),l&&i[Xx("0x8")].push(l),u&&i[Xx("0xa4")][Xx("0x2e")](u)}),{priority:Xx("0x7e")}),o.on(Xx("0x79"),((t,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x54")]||1;i[Xx("0x78")]=new Array(a)[Xx("0x68")](x)[Xx("0x66")](((e,t)=>e+t));for(const{cell:t}of o.createTableWalker(s,{startColumn:x,endColumn:x+a-1}))i[Xx("0x8b")][Xx("0x2e")](e.model.createRangeOn(t))}),{priority:Xx("0x11")}),o.on("insertRows",((t,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x22")]||1;i[Xx("0x55")]=new Array(a)[Xx("0x68")](x)[Xx("0x66")](((e,t)=>e+t));for(const{cell:t}of o[Xx("0xc")](s,{startRow:x,endRow:x+a-1}))i[Xx("0x38")][Xx("0x2e")](e[Xx("0x8a")][Xx("0x20")](t))}),{priority:Xx("0x11")}),n._descriptionFactory[Xx("0xa2")]((t=>{if(t.subType&&t.subType[Xx("0x0")](Xx("0x18")))return t[Xx("0x26")]?{}:{type:Xx("0x90"),content:Yo(e[Xx("0x4a")],"*Replace table cells*")}}));const x=()=>{};for(const e of["tablePaste",Xx("0x8c"),Xx("0x84"),Xx("0x1c")])n[Xx("0x9")][Xx("0x10")](Xx("0x90"),e,Xx("0x9e"),x),n[Xx("0x9")].registerCustomCallback(Xx("0xa3"),e,Xx("0x9e"),x);n[Xx("0x9")][Xx("0x10")](Xx("0x8e"),Xx("0x1c"),Xx("0x2d"),x),n._suggestionFactory[Xx("0x10")]("formatBlock",Xx("0x1c"),Xx("0xa1"),((t,n,o)=>{const s=t[Xx("0x66")]((e=>e[Xx("0x75")]()))[Xx("0x83")]((e=>e)),r=new Map(s[Xx("0x66")]((e=>[e,null])));if(i)for(const{element:e,attributes:t}of i[Xx("0x94")])t&&r[Xx("0x98")](e,t);else if(o&&o[Xx("0x4b")])for(const[t,n]of Object[Xx("0x15")](o[Xx("0x4b")])){const o=e[Xx("0x8a")][Xx("0x41")][Xx("0x95")](t),s=o?o[Xx("0x1d")]()[Xx("0x75")]():null;s&&r[Xx("0x98")](s,n)}e[Xx("0x8a")][Xx("0x1e")]((e=>{for(const[t,n]of r)e[Xx("0x93")]({...Qx,...n},t)}))}));const a=(t,o)=>{n[Xx("0x9")][Xx("0x10")](t,"tablePaste",o,((s,r,i)=>{e.model[Xx("0x1e")]((e=>{const x=[];for(const e of s){const t=e[Xx("0x2c")][Xx("0x39")];t.is("element","tableCellSuggestion")&&x.push(t)}n[Xx("0x9")][Xx("0x28")](t,null,o)(s,r,i);for(const t of x)Xx("0x47")!=t[Xx("0x5")].rootName&&e[Xx("0xa5")](t)}))}))};a("insertion",Xx("0xa1")),a(Xx("0x90"),"discard"),a(Xx("0xa3"),"accept"),a(Xx("0xa3"),Xx("0x2d")),n._suggestionFactory.registerCustomCallback(Xx("0x90"),Xx("0x84"),"discard",(e=>{const t=e[Xx("0x66")]((e=>e[Xx("0x75")]())),n=t[0][Xx("0x60")](Xx("0xb")),{minRow:r,maxRow:i}=s[Xx("0x24")](t);o[Xx("0x6")](n,{at:r,rows:i-r+1})})),n._suggestionFactory[Xx("0x10")](Xx("0x90"),Xx("0x8c"),Xx("0x2d"),(e=>{const t=e[Xx("0x66")]((e=>e[Xx("0x75")]())),n=t[0][Xx("0x60")](Xx("0xb")),{minColumn:r,maxColumn:i}=s[Xx("0x24")](t);o[Xx("0x77")](n,{at:r,columns:i-r+1})}));const c=(e,t)=>{if(!t[Xx("0x3")]||!t[Xx("0x3")].startsWith(Xx("0x18")))return;const o=t[Xx("0x59")][Xx("0x6b")],s=n[Xx("0xf")]()[Xx("0x83")]((e=>e[Xx("0x9c")]&&e[Xx("0x59")]&&e[Xx("0x59")][Xx("0x6b")]==o));s[Xx("0x19")]&&t[Xx("0x92")]()[Xx("0x19")]!=s.length&&s[Xx("0x86")](((e,t)=>(e.next=t,t[Xx("0x26")]=e,t)))};function l(e,t=!0){const{id:o}=n[Xx("0x81")](e[Xx("0x4f")]),s=[Xx("0x52"),Xx("0xa7")],r=n[Xx("0xa9")][Xx("0x72")](e[Xx("0x4f")]);return r&&s[Xx("0x2e")](Xx("0xa6")),{classes:s,attributes:{"data-suggestion":o},priority:r&&t?3010:3e3}}n.on(Xx("0x3f"),c,{priority:"high"}),n.on(Xx("0x25"),c,{priority:Xx("0x7e")}),e[Xx("0x8a")][Xx("0x37")][Xx("0x7b")]((()=>{let t=!1;const o=Array.from(e[Xx("0x8a")].document[Xx("0x50")][Xx("0x30")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Xx("0x81")](s);if("suggestion"!=o||Xx("0xa3")!=i||r[Xx("0x2f")])continue;if(!n[Xx("0x71")](x))continue;const a=n[Xx("0x27")](x).getRanges(),c=e.plugins[Xx("0x95")](Xx("0x9b")).me;for(const e of n[Xx("0xf")]())if(e[Xx("0x9c")]&&e[Xx("0x80")]==c&&Xx("0x8e")==e.type&&Xx("0x1c")==e.subType&&e[Xx("0x33")]()[Xx("0x99")]((e=>a.some((t=>t[Xx("0x65")](e,!0))))))for(const n of e[Xx("0x92")]())n.isInContent&&(n.discard(),t=!0)}return t})),e[Xx("0x8a")][Xx("0x37")].registerPostFixer((t=>{const o=e.commands[Xx("0x95")](Xx("0x85"));if(!o||!o[Xx("0x89")][Xx("0x64")](t[Xx("0x58")]))return!1;let s=!1;const r=e[Xx("0x63")][Xx("0x95")](Xx("0x9b")).me,i=e[Xx("0x8a")][Xx("0x37")][Xx("0x50")][Xx("0x16")](),x=Array[Xx("0x8d")](e.model[Xx("0x37")].differ[Xx("0x30")]()).filter((({name:e,data:t})=>{const{group:o,subType:s,authorId:i}=n[Xx("0x81")](e);return Xx("0x82")==o&&Xx("0x18")==s&&i==r.id&&!t[Xx("0x2f")]}));for(const e of i){if(Xx("0xa0")!=e[Xx("0x14")]||Xx("0x21")!=e.name||1!=e[Xx("0x19")])continue;const n=t[Xx("0x1")](e[Xx("0x35")],e[Xx("0x35")][Xx("0x62")](1));if(!x[Xx("0x9f")]((({data:e})=>e[Xx("0x48")][Xx("0x46")](n))))for(const{name:e,data:o}of x)if(n[Xx("0x65")](o[Xx("0x48")])){t.updateMarker(e,{range:n}),s=!0;break}}return s})),e[Xx("0x8a")].document[Xx("0x7b")]((t=>{let o=!1;const s=e.plugins[Xx("0x95")](Xx("0x9b")).me,r=n.getSuggestions()[Xx("0x83")]((e=>e[Xx("0x9c")]&&e[Xx("0x80")]==s)),i=new Set,x=new Set;for(const e of r)if(Xx("0x18")==e[Xx("0x3")])for(const t of e[Xx("0x1f")]()){const n=t[Xx("0x1d")]()[Xx("0x75")]();if(n)if(n.is(Xx("0x7d"),Xx("0x21"))&&Zx(n)){e[Xx("0x43")](t[Xx("0x69")]),i[Xx("0xaa")](n),o=!0;const s=n.nextSibling,r=n[Xx("0x32")],a=s&&s.is(Xx("0x7d"),Xx("0x21")),c=r&&r.is(Xx("0x7d"),Xx("0x21"));a&&!i[Xx("0x64")](s)&&x[Xx("0xaa")](s),c&&!i[Xx("0x64")](r)&&x[Xx("0xaa")](r)}else n.is(Xx("0x7d"),"paragraph")&&n[Xx("0x13")]&&(e[Xx("0x43")](t.name),o=!0)}else if(Xx("0x1c")==e.subType){if(!e[Xx("0x59")]||!e.attributes.tablePasteChainId)continue;const t=e.attributes[Xx("0x4b")];if(t&&Object[Xx("0x6f")](t)[Xx("0x19")])continue;const n=e[Xx("0x59")][Xx("0x6b")];let s=!0,i=!0;for(const t of r)if(t[Xx("0x3")]&&t[Xx("0x3")][Xx("0x0")](Xx("0x18"))){if(!t[Xx("0x59")][Xx("0x6b")]){i=!1;break}if(t.id!=e.id&&t[Xx("0x59")][Xx("0x6b")]==n){s=!1;break}}i&&s&&(e[Xx("0x5c")](),o=!0)}for(const e of i)t[Xx("0x56")](e);for(const e of x)t[Xx("0xa5")](e);return o})),e[Xx("0xe")][Xx("0xa")](Xx("0x49"))[Xx("0x3a")]({model:Xx("0x36"),view:(e,t)=>l(e),converterPriority:Xx("0x7e")}),e[Xx("0xe")].for(Xx("0x74"))[Xx("0x3a")]({model:Xx("0x36"),view:(e,t)=>t[Xx("0x5b")].showSuggestionHighlights?l(e,!1):null,converterPriority:Xx("0x7e")});const u=e[Xx("0xd")][Xx("0x3b")];this.listenTo(u[Xx("0x37")],Xx("0x5a"),((e,t)=>{const n=[];for(const e of u[Xx("0x97")](t[Xx("0x6d")])[Xx("0x6a")]())e.is(Xx("0x7d"),Xx("0x2"))&&n[Xx("0x2e")](e);u[Xx("0x1e")]((e=>{for(const t of n)e[Xx("0x51")](e[Xx("0x97")](t),e[Xx("0x7")](t)),e[Xx("0x56")](t)}))}))}}function Zx(e){if(e.isEmpty)return!0;const t=e[Xx("0x1a")](0);return t.is(Xx("0x7d"),"paragraph")&&t.isEmpty}function Yx(e,t={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Xx("0xc")](e,{includeAllSlots:!0,...t}))if(!o||1!=s||1!=r)return!1;return!0}const ea=["selection","discard","get","tableWidth","plugins","registerDescriptionCallback","author","getSuggestionCallback","has","markBlockFormat","Users","TableColumnResizeEditing","resizeTableWidth","accept","model","locale","change","_descriptionFactory","enableCommand","editor","columnWidths","_suggestionFactory","afterInit","resizeColumnWidths","formatGroupId","formatBlock","commandParams","subType","TrackChangesEditing","format","resizeTable","handleSuggestionDescription","getAttribute","bind","registerCustomCallback","handleResizeTableWidthCommand","getSelectedElement","*Format:* resize table"];var ta,na;ta=ea,na=179,function(e){for(;--e;)ta.push(ta.shift())}(++na);const oa=function(e,t){return ea[e-=0]};class sa extends e.Plugin{[oa("0x21")](){if(!this.editor[oa("0xf")][oa("0x13")]("TableColumnResizeEditing"))return;const e=this[oa("0x1e")][oa("0xf")].get(oa("0x1"));e.enableCommand(oa("0x17"),this.handleResizeTableWidthCommand[oa("0x6")](this)),e[oa("0x1d")](oa("0x22"),this.handleResizeTableWidthCommand[oa("0x6")](this)),e[oa("0x20")][oa("0x7")](oa("0x24"),"resizeTable",oa("0x18"),e[oa("0x20")][oa("0x12")](oa("0x24"),null,oa("0xc"))),e[oa("0x20")][oa("0x7")](oa("0x24"),oa("0x3"),oa("0xc"),e._suggestionFactory[oa("0x12")](oa("0x24"),null,oa("0x18"))),e[oa("0x1c")][oa("0x10")](this[oa("0x4")][oa("0x6")](this))}[oa("0x8")](e,t){const n=this[oa("0x1e")][oa("0xf")][oa("0xd")]("TrackChangesEditing"),o=this[oa("0x1e")][oa("0xf")].get(oa("0x16")),s=t.table||this[oa("0x1e")].model.document[oa("0xb")][oa("0x9")]();this[oa("0x1e")][oa("0x19")][oa("0x1b")]((()=>{const r=o.getColumnGroupElement(s);let i=r?o.getTableColumnsWidths(r):null,x=s[oa("0x5")](oa("0xe"))||null;const a=t[oa("0xe")]||x,c=t[oa("0x1f")]||i,l=this.editor.plugins[oa("0xd")](oa("0x15")).me;for(const e of n.getSuggestions()){const t=e.getContainedElement();if(oa("0x3")===e[oa("0x0")]&&t===s){e[oa("0x11")]!==l&&e[oa("0xc")]();const t=e.data[oa("0x25")];x=t[0][oa("0xe")],i=t[0][oa("0x1f")];break}}e({table:s,tableWidth:a,columnWidths:c}),n[oa("0x14")](s,{commandName:oa("0x17"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:"resizeTable"},[],oa("0x3"))}))}handleSuggestionDescription(e){const{data:t}=e;if(t&&oa("0x3")===t[oa("0x23")]){const e=oa("0xa");return{type:oa("0x2"),content:Yo(this[oa("0x1e")][oa("0x1a")],e)}}}}const ra=["insertTemplate","afterInit","has","enableCommand","TrackChangesEditing","editor","plugins"];var ia,xa;ia=ra,xa=290,function(e){for(;--e;)ia.push(ia.shift())}(++xa);const aa=function(e,t){return ra[e-=0]};class ca extends e.Plugin{[aa("0x5")](){const e=this[aa("0x2")];e[aa("0x3")][aa("0x6")]("Template")&&e[aa("0x3")].get(aa("0x1"))[aa("0x0")](aa("0x4"))}}const la=["insertTableOfContents","get","_descriptionFactory","enableCommand","editor","ELEMENT_TABLE_OF_CONTENTS","afterInit","plugins","locale","commands","TrackChangesEditing"];var ua,da;ua=la,da=171,function(e){for(;--e;)ua.push(ua.shift())}(++da);const ga=function(e,t){return la[e-=0]};class ma extends e.Plugin{[ga("0x0")](){const e=this[ga("0x9")];if(!e[ga("0x3")].get(ga("0x5")))return;e[ga("0x1")][ga("0x6")](ga("0x4"))[ga("0x8")](ga("0x5"));const t=e.plugins[ga("0x6")]("TrackChangesEditing"),n=e[ga("0x2")];t[ga("0x7")].registerElementLabel("tableOfContents",(e=>Yo(n,ga("0xa"),e)))}}const fa=["start","from","locale","editor","end","get","ELEMENT_TITLE","afterInit","registerPostFixer","suggestion","element","plugins","schema","document","nodeBefore","forward","isEqual","isTouching","isCollapsed","getChangedMarkers","registerElementLabel","title-content","newRange","updateMarker","model","has","TrackChangesEditing","differ"];var ha,pa;ha=fa,pa=476,function(e){for(;--e;)ha.push(ha.shift())}(++pa);const ba=function(e,t){return fa[e-=0]};class Ea extends e.Plugin{[ba("0x7")](){const e=this[ba("0x3")];if(!e[ba("0xb")][ba("0x19")]("Title"))return;const t=e[ba("0xb")][ba("0x5")](ba("0x1a"));t._descriptionFactory[ba("0x14")](ba("0x15"),(()=>Yo(e[ba("0x2")],ba("0x6")))),e[ba("0x18")][ba("0xd")][ba("0x8")]((n=>{let o=!1;const s=Array[ba("0x1")](e[ba("0x18")][ba("0xd")][ba("0x1b")][ba("0x13")]());for(const{name:r,data:i}of s){const{group:s}=t._splitMarkerName(r);if(ba("0x9")!==s||!i[ba("0x16")])continue;const x=i[ba("0x16")],a=x[ba("0x4")][ba("0xe")];if(!a||!a.is(ba("0xa"),"title-content"))continue;if(!x[ba("0x0")][ba("0x11")](x[ba("0x4")]))continue;const c=e[ba("0x18")][ba("0xc")].getNearestSelectionRange(x[ba("0x4")],ba("0xf"));if(c&&c[ba("0x12")]){const e=n.createRange(x[ba("0x0")],c[ba("0x0")]);e[ba("0x10")](x)||(n[ba("0x17")](r,{range:e}),o=!0)}o||(n.removeMarker(r),o=!0)}return o}))}}const _a=["plugins","get","enableCommand","has","editor","TrackChangesEditing","undo","redo","afterInit"];var Ta,Ca;Ta=_a,Ca=451,function(e){for(;--e;)Ta.push(Ta.shift())}(++Ca);const ya=function(e,t){return _a[e-=0]};class ka extends e.Plugin{[ya("0x7")](){const e=this[ya("0x3")],t=e[ya("0x8")][ya("0x0")](ya("0x4"));e[ya("0x8")][ya("0x2")]("UndoEditing")&&(t.enableCommand(ya("0x5")),t[ya("0x1")](ya("0x6")))}}const Aa=["requires","toggleTableCaption","get","plugins","enableCommand","TrackChangesEditing"];var va,Ra;va=Aa,Ra=483,function(e){for(;--e;)va.push(va.shift())}(++Ra);const Sa=function(e,t){return Aa[e-=0]};class Ia extends e.Plugin{static get[Sa("0x3")](){return[Mx]}afterInit(){const e=this.editor;e[Sa("0x0")].has("TableCaptionEditing")&&e.plugins[Sa("0x5")](Sa("0x2"))[Sa("0x1")](Sa("0x4"))}}const La=["enableCommand","_getSuggestionBlocksForListStyle","handleListStyleCommand","replace","push","styles","handleListReversedCommand","get","registerDescriptionCallback","reversed","handleListStartCommand","plugins","getAttribute","expandListBlocksToCompleteList","commandName","format","isListItemBlock","selection","locale","*Format:* set start index to %0","ELEMENT_","startIndex","listStart","type","*Format:* set order to reversed","afterInit","getSelectedBlocks","listReversed","_getSuggestionBlocks","markMultiRangeBlockFormat","change","*Format:* set order to regular","DocumentListPropertiesEditing","bind","handleDescriptions","model","TrackChangesEditing","commandParams","_LIST_","list.properties","DocumentListPropertiesUtils","filter","DocumentListUtils","listStyle","listType","_descriptionFactory","getListTypeFromListStyleType","toUpperCase","config","document","_getTranslationKeyForListStyle","has","from","editor"];var Na,wa;Na=La,wa=335,function(e){for(;--e;)Na.push(Na.shift())}(++wa);const Ma=function(e,t){return La[e-=0]};class Oa extends e.Plugin{[Ma("0xe")](){if(!this[Ma("0x2a")][Ma("0x0")][Ma("0x28")](Ma("0x15")))return;const e=this[Ma("0x2a")][Ma("0x25")][Ma("0x32")](Ma("0x1c")),t=this.editor[Ma("0x0")][Ma("0x32")](Ma("0x19"));e[Ma("0x30")]&&t[Ma("0x2b")](Ma("0x20"),this[Ma("0x2d")][Ma("0x16")](this)),e[Ma("0x34")]&&t.enableCommand(Ma("0x10"),this[Ma("0x31")].bind(this)),e[Ma("0xa")]&&t[Ma("0x2b")](Ma("0xb"),this[Ma("0x35")][Ma("0x16")](this)),t[Ma("0x22")][Ma("0x33")](this[Ma("0x17")][Ma("0x16")](this))}[Ma("0x2d")](e,t={}){const n=this[Ma("0x2a")][Ma("0x0")].get(Ma("0x19")),o=this[Ma("0x2c")]();this[Ma("0x2a")][Ma("0x18")].change((()=>{n[Ma("0x12")](o,{commandName:Ma("0x20"),commandParams:[{type:t[Ma("0xc")]}],formatGroupId:Ma("0x20")})}))}[Ma("0x31")](e,t={}){const n=this[Ma("0x2a")][Ma("0x0")][Ma("0x32")]("TrackChangesEditing"),o=this[Ma("0x2a")][Ma("0x0")].get(Ma("0x1f")),s=this[Ma("0x11")]((e=>o[Ma("0x5")](e)&&"numbered"===e[Ma("0x1")]("listType")));null!==s&&this[Ma("0x2a")][Ma("0x18")][Ma("0x13")]((()=>{n[Ma("0x12")](s,{commandName:Ma("0x10"),commandParams:[{reversed:t.reversed}],formatGroupId:Ma("0x10")})}))}[Ma("0x35")](e,t={}){const n=this[Ma("0x2a")][Ma("0x0")][Ma("0x32")](Ma("0x19")),o=this[Ma("0x2a")][Ma("0x0")][Ma("0x32")]("DocumentListUtils"),s=this._getSuggestionBlocks((e=>o[Ma("0x5")](e)&&"numbered"===e[Ma("0x1")](Ma("0x21"))));null!==s&&this[Ma("0x2a")][Ma("0x18")].change((()=>{n.markMultiRangeBlockFormat(s,{commandName:Ma("0xb"),commandParams:[{startIndex:t[Ma("0xa")]}],formatGroupId:"listStart"})}))}[Ma("0x17")](e){const t=this[Ma("0x2a")][Ma("0x7")],{data:n}=e;if(!n)return;let o,s;switch(n[Ma("0x3")]){case Ma("0x20"):o="*Change to:* %0",s={type:Ma("0x4"),content:Yo(t,o,Yo(t,this[Ma("0x27")](n[Ma("0x1a")][0][Ma("0xc")])))};break;case"listReversed":o=n.commandParams[0][Ma("0x34")]?Ma("0xd"):Ma("0x14"),s={type:Ma("0x4"),content:Yo(t,o)};break;case Ma("0xb"):o=Ma("0x8"),s={type:Ma("0x4"),content:Yo(t,o,n[Ma("0x1a")][0][Ma("0xa")])}}return s}[Ma("0x2c")](){const e=this[Ma("0x2a")].plugins[Ma("0x32")](Ma("0x1f"));let t=Array[Ma("0x29")](this.editor[Ma("0x18")][Ma("0x26")].selection[Ma("0xf")]());return t[Ma("0x2f")](...e.expandListBlocksToCompleteList(t)),t=[...new Set(t)],t}[Ma("0x11")](e){const t=this[Ma("0x2a")][Ma("0x0")].get(Ma("0x1f"));let n=Array[Ma("0x29")](this.editor[Ma("0x18")].document[Ma("0x6")][Ma("0xf")]())[Ma("0x1e")](e);if(!n.length)return null;n=t[Ma("0x2")](n);const o=[];for(const e of n)t.isFirstBlockOfListItem(e)&&o.push(e);return o}_getTranslationKeyForListStyle(e){return Ma("0x9")+this[Ma("0x2a")][Ma("0x0")][Ma("0x32")](Ma("0x1d"))[Ma("0x23")](e).toUpperCase()+Ma("0x1b")+e[Ma("0x24")]()[Ma("0x2e")](/-/g,"_")}}const Fa=["format","plugins","accept","selection","pluginName","TrackChangesEditing","tableWidth","getFirstPosition","enableCommand","*Format:* change table properties","get","data","getAttribute","tableCellWidth","TablePropertiesEditing","join","TableCellPropertiesEditing","getContainedElement","enqueueChange","model","tableCellHorizontalAlignment","handleDiscardAction","_descriptionFactory","handleSuggestionDescription","start","table","nodeAfter","commandParams","markBlockFormat","_suggestionFactory","has","getSuggestionCallback","*Format:* change table cell properties","registerCustomCallback","editor","findAncestor","tableCellBorderStyle","tableCellHeight","tableHeight","discard","tableProperties","tableCellBorderColor","subType","tableCellPadding","tableCellProperties","_getSuggestion","tableBorderStyle","change","tableCellBackgroundColor","tableBorderWidth","TrackChangesTableProperties","_handlePropertyChange","document","formatBlock","locale"];var Pa,Da;Pa=Fa,Da=450,function(e){for(;--e;)Pa.push(Pa.shift())}(++Da);const Ba=function(e,t){return Fa[e-=0]};class ja extends e.Plugin{constructor(e){super(e),this[Ba("0x1e")]=["tableBorderColor",Ba("0x24"),Ba("0x27"),"tableAlignment",Ba("0x33"),Ba("0x1c"),"tableBackgroundColor"],this.tableCellProperties=[Ba("0x1f"),Ba("0x1a"),"tableCellBorderWidth",Ba("0x21"),Ba("0x3"),Ba("0x1b"),Ba("0x26"),Ba("0xa"),"tableCellVerticalAlignment"]}static get[Ba("0x31")](){return Ba("0x28")}afterInit(){const e=this.editor[Ba("0x2e")][Ba("0x0")]("TrackChangesEditing");if(this[Ba("0x18")].plugins.has(Ba("0x4"))){for(const t of this[Ba("0x1e")])e[Ba("0x35")](t,((e,n)=>{const o=this[Ba("0x18")][Ba("0x9")][Ba("0x2a")][Ba("0x30")][Ba("0x34")]()[Ba("0x19")](Ba("0xf"));this[Ba("0x29")](t,[o],this[Ba("0x1e")],"tableProperties",e,n)}));e[Ba("0x13")][Ba("0x17")]("formatBlock",Ba("0x1e"),Ba("0x2f"),e[Ba("0x13")][Ba("0x15")]("formatBlock",null,"discard")),e[Ba("0x13")][Ba("0x17")](Ba("0x2b"),"tableProperties","discard",((e,t)=>this[Ba("0xb")](this[Ba("0x1e")],e,t))),e._suggestionFactory[Ba("0x17")](Ba("0x2b"),Ba("0x1e"),"join",(()=>!1))}if(this[Ba("0x18")].plugins[Ba("0x14")](Ba("0x6"))){for(const t of this[Ba("0x22")])e.enableCommand(t,((e,n)=>{const o=this[Ba("0x18")].plugins[Ba("0x0")]("TableUtils").getSelectionAffectedTableCells(this.editor.model[Ba("0x2a")][Ba("0x30")]);this[Ba("0x29")](t,o,this.tableCellProperties,Ba("0x22"),e,n)}));e[Ba("0x13")][Ba("0x17")](Ba("0x2b"),Ba("0x22"),Ba("0x2f"),e[Ba("0x13")][Ba("0x15")](Ba("0x2b"),null,"discard")),e[Ba("0x13")][Ba("0x17")](Ba("0x2b"),Ba("0x22"),Ba("0x1d"),((e,t)=>this[Ba("0xb")](this.tableCellProperties,e,t))),e._suggestionFactory.registerCustomCallback(Ba("0x2b"),Ba("0x22"),Ba("0x5"),(()=>!1))}e[Ba("0xc")].registerDescriptionCallback((e=>this.handleSuggestionDescription(e)))}[Ba("0x29")](e,t,n,o,s,r){const i=this[Ba("0x18")][Ba("0x2e")][Ba("0x0")](Ba("0x32"));this[Ba("0x18")].model[Ba("0x8")](r.batch,(()=>{for(const e of t)if(this[Ba("0x23")](e,o))s(r);else{const t={};for(const o of n){const n=e[Ba("0x2")](o);void 0!==n&&(t[o]=n)}s(r),i[Ba("0x12")](e,{commandParams:[t]},[],o)}}))}[Ba("0xb")](e,t,n){const o=t[0][Ba("0xe")][Ba("0x10")],s=n[Ba("0x11")][0];this[Ba("0x18")][Ba("0x9")][Ba("0x25")]((t=>{for(const n of e)void 0!==s[n]?t.setAttribute(n,s[n],o):t.removeAttribute(n,o)}))}[Ba("0xd")](e){if(e[Ba("0x1")])switch(e[Ba("0x20")]){case Ba("0x1e"):return{type:Ba("0x2d"),content:Yo(this[Ba("0x18")].locale,Ba("0x36"))};case Ba("0x22"):return{type:Ba("0x2d"),content:Yo(this[Ba("0x18")][Ba("0x2c")],Ba("0x16"))}}}[Ba("0x23")](e,t){const n=this[Ba("0x18")][Ba("0x2e")][Ba("0x0")](Ba("0x32"));for(const o of n.getSuggestions({skipNotAttached:!0})){const n=o[Ba("0x7")]();if(o[Ba("0x20")]===t&&n===e)return o}return null}}const Ua=["for","editor","end","clear","plugins","containerElement","discardSelectedSuggestions","_findSuggestions","options","formatInline:accept","getAncestors","suggestion-type","getLastMatchingPosition","_suggestionFactory","pluginName","_handleNewSuggestionMarker","normal","_splitMarkerName","isInsideObject","isAfter","formatBlock:discard","_setSuggestionRange","head","getCustomProperty","every","_joinSuggestions","markDeletion","accept","set","lowest","isTouching","getChangedMarkers","setTo","creator","toViewElement","authorName","change","isEqual","getWalker","then","_addThreadToSuggestion","newRange","fire","removeMarkers","type","$marker","_joinWithAdjacentSuggestions","chain","formatBlock","selection","getAllAdjacentSuggestions","conversion","deletion:chain","hasComments","addMarker","_updateSuggestionData","_registerDefaultCallbacks","_cutOutSuggestionMarker","_mergeNestedSuggestions","isObject","_setSuggestionData","isCollapsed","activeMarkers","value","_removeSuggestion","collaboration.channelId","getSuggestion","backward","_createSuggestion","default","deletion:discard","schema","catch","addMarker:suggestion","after","removeMarker","commands","isExternal","formatInline:join","has","isLimit","insertion:join","before","getIntersection","multipleBlocks","add","differ","deletion:","addRange","insertion","detach","fromCharCode","discardSuggestion","values","notReady","getDifference","markerName","trackChangesCommand","PendingActions","element","map","author","markInsertion","isLocal","previous","sort","_rangeIsInLocalUserInsertion","_suggestions","_model","oldRange","elementToElement","stopListening","marker-count","fromRange","_editor","markMultiRangeDeletion","editing","_checkSuggestionCorrectness","updateMarker","markerNameToElements","data","_isForcedDefaultExecutionBlock","addMarker:suggestion:formatBlock","$graveyard","registerCustomCallback","split","splice","$textProxy","createdAt","consume","range","getSuggestionCallback","removeAttribute","_refreshSuggestionsChain","showSuggestionHighlights","buildSuggestion","attributes","upcast","getCommentThread","rootName","elementEnd","define","ck-suggestion-marker--active","PENDING_ACTION_SUGGESTION","ready","isSelectable","containsRangeInObject","acceptSelectedSuggestions","removeComment","createRangeIn","skipNestingCheck","getAttribute","splitPosition","moveTargetPosition","enqueueChange","getUser","accepted","listenTo","from","parent","_getExternalAuthor","formatBlock:chain","insertion:","acceptSuggestion","formatBlock:join","authoredAt","join","root","document","some","name","commandName","isIntersectingWithRange","formatInline","getFirstMarker","batch","insertion:chain","position","multi","markInlineFormat","discardAllSuggestions","suggestionLoaded","bindElementToMarker","insertion:discard","error-saving-suggestion-data-suggestion-discarded","get","init","enableReadOnlyMode","@external","suggestionChanged","mapper","editingDowncast","dataDowncast","toJSON","length","getSuggestions","createElement","low","ck-suggestion-marker-","includes","addSuggestionData","never","deletion","always","isDocumentOperation","highest","getRanges","hasSuggestion","formatGroupId","formatBlock:accept","change:data","TrackChangesEditing","_saved","markerToHighlight","markMultiRangeBlockFormat","getFirstRange","ck-suggestion-marker","deletion:join","formatInline:chain","change:_saved","track-changes-adapter-missing-getsuggestion","howMany","getItems","nodeAfter","_enabledCommands","Users","remove","track-changes-command-not-found","removeClass","update:suggestion","high","trackChanges","addMarkerName","commentThread","isOwn","_defaultCallbacks","substr","trackChanges.trackFormatChanges","_trackFormatChanges","execute","_suggestionState","_customCallbacks","dataToMarker","targetPosition","enableCommand","locale","filter","getRange","applyOperation","insertContent","isAtEnd","group","insertion:accept","removed","addSuggestion","markerReady","start","isInContent","_commentsRepository","return","_addSuggestionMarker","isBlock","containsRange","deleteContent","track-changes-suggestion-data-mismatch","delete","createPositionAfter","getNearestSelectionRange","isNextTo","_onDiscard","change:activeMarkers","external:","addHighlight","subType","consumable","adapter","config","nodeBefore","size","model","discard","getMultiRangeId","fetchCommentThread","setAttribute","_descriptionFactory","insert","addComment","suggestion","push","getShiftedBy","resolve","_getSuggestionData","forceDefaultExecution","widget","isMultiRange","dataReady","containsPosition","createRange","_adapter","writer","formatBlock:","hasCommentThread","forward","createSelection","updateSuggestion","trackChanges.mergeNestedSuggestions","next","createPositionAt","setSelection","data-suggestion","CommentsRepository","stop","refresh","isBefore","item","ck-suggestion-marker-formatBlock","_breakSuggestionMarker"];var Ga,Ha;Ga=Ua,Ha=315,function(e){for(;--e;)Ga.push(Ga.shift())}(++Ha);const za=function(e,t){return Ua[e-=0]};class Wa extends e.Plugin{static get requires(){return[za("0x138"),r.Users,e.PendingActions,cs,Cs,Rs,Ms,Bs,Ws,Qs,tr,Oa,xr,dr,br,yr,Lr,Pr,Gr,Kr,Jr,ni,xi,di,pi,Ci,Ri,Oi,ji,Wi,$i,ex,ix,dx,px,yx,Sx,Mx,jx,Wx,Ia,Jx,sa,ma,ja,ca,Ea,ka]}static get[za("0x10")](){return za("0xd5")}constructor(e){function t(e){return e.map((e=>String[za("0x5d")](e)))[za("0xa8")]("")}super(e),this[za("0x1e")](za("0x40"),[]),this.on(za("0x110"),((t,n,o,s)=>{this._model.change((()=>{for(const t of[...s,...o])this[za("0x6e")].markers.has(t)&&e[za("0x76")].reconvertMarker(t)}))})),this[za("0x11e")]=new ss(this.editor[za("0x119")].schema,this[za("0x3")][za("0xf7")]),this[za("0x12c")]=null,this[za("0xf")]=new Va(this.editor),this[za("0x6d")]=new Map,this[za("0x104")]=e[za("0x6")][za("0xbb")](za("0x138")),this._enabledCommands=new Set,this[za("0x6e")]=this.editor[za("0x119")],this._suggestionState=new WeakMap,this[za("0x7b")]=!1,e[za("0x116")][za("0x8f")](za("0xef"),za("0x47")),this[za("0xf0")]=e[za("0x116")].get(za("0xef")),e[za("0x116")][za("0x8f")](za("0x133"),!0),this._mergeNestedSuggestions=e.config[za("0xbb")]("trackChanges.mergeNestedSuggestions"),this[za("0x63")]=new d(e,this[za("0xe2")]),this[t([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=t([52,48,52,54,49,48,51,50])}[za("0xbc")](){const e=this[za("0x3")];e[za("0x35")][za("0x2")](za("0xc1"))[za("0xd7")]({model:za("0x121"),view:e=>{const{id:t,type:n}=this[za("0x13")](e.markerName),o=[za("0xda"),za("0xc8")+n];let s=3e3;return this[za("0x40")][za("0xc9")](e[za("0x62")])&&(o.push(za("0x90")),s=3010),"deletion"==n&&(s+=5),{classes:o,attributes:{"data-suggestion":t},priority:s}}}),e[za("0x35")][za("0x2")](za("0xc2"))[za("0x57")]((t=>{t.on(za("0x4b"),((t,n,o)=>{if(!o[za("0xa")][za("0x88")])return;const s=n.item;if(!s)return;const r=o.mapper.toViewElement(s);e[za("0x119")][za("0x49")][za("0x3d")](s)&&r&&!r[za("0x19")](za("0x127"))&&r.is(za("0x7"))&&(0,x.toWidget)(r,o[za("0x12d")])}),{priority:za("0xe8")})})),e[za("0x35")].for(za("0xc2"))[za("0xd7")]({model:"suggestion",view:(e,t)=>{if(!t[za("0xa")][za("0x88")])return null;const{type:n}=this[za("0x13")](e[za("0x62")]);return{classes:[za("0xda"),"ck-suggestion-marker-"+n],priority:3e3}}});const n=({showActiveMarkers:t=!0}={})=>(n,o,s)=>{if(!o[za("0x13c")])return;if(o[za("0x13c")].is("selection"))return void s[za("0x114")].consume(o[za("0x13c")],n.name);const r=s.mapper[za("0x24")](o[za("0x13c")]);if(!o.item.is(za("0x65"))||!e[za("0x119")][za("0x49")][za("0x107")](o[za("0x13c")])||r[za("0x19")](za("0x112")))return;const{id:i}=this[za("0x13")](o[za("0x62")]);s.writer.addClass([za("0xda"),za("0x0")],r),s.writer[za("0x11d")](za("0x137"),i,r),s[za("0xc0")][za("0xb8")](r,o[za("0x62")]),t&&(this.activeMarkers.includes(o.markerName)?s[za("0x12d")].addClass("ck-suggestion-marker--active",r):s[za("0x12d")].removeClass(za("0x90"),r));for(const t of e[za("0x119")][za("0x97")](o[za("0x13c")])[za("0xe0")]())s.consumable.consume(t,n[za("0xac")]);s.consumable[za("0x83")](o[za("0x13c")],n.name)};e.conversion[za("0x2")](za("0xc2")).add((e=>{e.on(za("0x7c"),((e,t,o)=>{o.options[za("0x88")]&&n({showActiveMarkers:!1})(e,t,o)}),{priority:za("0xcf")})})),e.conversion.for("dataDowncast").markerToData({model:"suggestion",view:(e,t)=>t[za("0xa")].showSuggestionHighlights?null:{group:"suggestion",name:e[za("0xee")](11)}}),e.conversion[za("0x2")](za("0x8b"))[za("0x70")]({view:{name:za("0x121"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(e,{writer:t})=>{let n="suggestion:"+e[za("0x99")](za("0xd"))+":"+e[za("0x99")]("id");return e[za("0x99")](za("0x72"))&&(n+=":"+e[za("0x99")](za("0x72"))),t[za("0xc6")](za("0x2f"),{"data-name":n})}}),e[za("0x35")].for(za("0x8b"))[za("0xf4")]({view:za("0x121")}),e[za("0x35")][za("0x2")](za("0xc1")).add((e=>{e.on(za("0x7c"),n(),{priority:za("0xe8")})})),e[za("0x35")][za("0x2")](za("0xc1"))[za("0x57")]((e=>{e.on("removeMarker:suggestion:formatBlock",((e,t,n)=>{const o=n[za("0xc0")][za("0x79")](t[za("0x62")]);if(o)for(const e of o)e[za("0x19")](za("0x112"))||(n[za("0x12d")][za("0xe6")]([za("0xda"),za("0x0"),za("0x90")],e),n[za("0x12d")][za("0x86")](za("0x137"),e),n[za("0xc0")].unbindElementFromMarkerName(e,t[za("0x62")]))}),{priority:za("0xe8")})})),e.model[za("0xaa")].registerPostFixer((t=>{let n=!1;const o=Array.from(e.model[za("0xaa")][za("0x58")][za("0x21")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[za("0x13")](x);if(za("0x121")!==o)continue;const u=this._suggestions.get(l);if(null!=a[za("0x2b")])if(za("0xaf")==c&&(n=n||Xa(a.newRange,x,t,e[za("0x119")][za("0x49")])),a.newRange[za("0x3f")]||za("0x7d")==a[za("0x2b")][za("0xa9")][za("0x8d")]||za("0x32")==c&&!Qa(a.newRange)||za("0xcc")==c&&(qa(i=a[za("0x2b")])||(r=i)[za("0x102")].parent==r[za("0x4")][za("0x117")]&&r[za("0x102")].isAtEnd))t.removeMarker(x),n=!0;else{if(!u||!u.isInContent)continue;s[za("0x57")](u)}}var r,i;return s[za("0x118")]>0&&(n=!!this[za("0x30")](s)||n),n})),e[za("0x119")][za("0xaa")].registerPostFixer((t=>{let n=!1;for(const o of e[za("0x119")].document[za("0x58")].getChanges()){if("insert"!=o[za("0x2e")])continue;const s=o[za("0xb3")].getShiftedBy(o.length);if(s[za("0xfc")])for(const r of this._suggestions[za("0x5f")]()){if(r[za("0x128")]||!r.isInContent)continue;if(za("0x32")!=r[za("0x2e")])continue;const i=r[za("0xd9")]();if(i.start[za("0xa1")]!=i[za("0x4")][za("0xa1")]&&i[za("0x4")].isEqual(o[za("0xb3")])){const o=e[za("0x119")][za("0x12b")](i[za("0x102")],s);t[za("0x78")](r[za("0xb0")](),{range:o}),n=!0}}}return n})),e[za("0x119")].markers.on(za("0xe7"),((e,t,n)=>{if(null==n){const{id:e}=this[za("0x13")](t[za("0xac")]),n=this[za("0x6d")][za("0xbb")](e);n&&n[za("0xea")](t[za("0xac")])}})),e.model[za("0xaa")].on(za("0xd4"),(()=>{const t=Array[za("0xa0")](e[za("0x119")][za("0xaa")][za("0x58")].getChangedMarkers()).filter((e=>za("0x121")===this[za("0x13")](e[za("0xac")])[za("0xfd")]));if(0===t[za("0xc4")])return;t[za("0x6b")](((e,t)=>{const n=e[za("0x7a")][za("0x6f")],o=t[za("0x7a")][za("0x6f")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[za("0x102")][za("0x13b")](o.start)?-1:1}));const n=new Set,o=new Set;for(const{name:e,data:s}of t){const{id:t}=this[za("0x13")](e);if(null===s.oldRange){const t=this[za("0x11")](e);o[za("0x57")](t)}else{const e=this[za("0x6d")][za("0xbb")](t);null!==s[za("0x2b")]||e[za("0x103")]?(n[za("0x57")](e[za("0x18")]),o.add(e)):this[za("0x42")](e)}}o[za("0x118")]>0&&this[za("0x87")](o);for(const e of n)this[za("0x2c")](za("0xbf"),e)})),e.model.on(za("0xfa"),((t,n)=>{const o=n[0];if(!this[za("0x6d")][za("0x118")])return;if(!o[za("0xce")])return;if(o[za("0xb1")].isUndo||!o[za("0xb1")][za("0x69")])return;let s,r;switch(o[za("0x2e")]){case za("0x11f"):s=e.model[za("0x135")](o[za("0xb3")]),r=s[za("0x123")](o.howMany);break;case za("0x7f"):s=e.model.createPositionAt(o[za("0x9a")]),r=e[za("0x119")][za("0x135")](o[za("0x9b")]);break;case"move":s=e[za("0x119")].createPositionAt(o[za("0xf5")]),r=s[za("0x123")](o[za("0xdf")]);break;default:return}const i=e[za("0x119")][za("0x12b")](s,r);e.model[za("0x26")]((()=>{for(const{suggestion:e,meta:t}of this[za("0x9")](i)){if(e[za("0x128")])continue;if(za("0xaf")==e.type)continue;const n=e[za("0x7a")]&&e[za("0x7a")][za("0x56")];(za("0x32")!=e[za("0x2e")]||za("0x7f")==o[za("0x2e")]&&!n)&&(t[za("0x94")]||za("0x5b")==e[za("0x2e")]&&t.isOwn||e.getFirstRange().containsRange(i)&&this[za("0x1")](e,s,r))}}))}),{priority:za("0x1f")}),e[za("0x119")].on("deleteContent",((t,n)=>{const o=n[0],s=n[1];if(s&&s[za("0x126")])return;if(this[za("0x7b")])return;if(!this[za("0x63")][za("0x41")])return;if(o.isCollapsed)return;const r=e.model[za("0x49")],{start:i,end:x}=o.getFirstRange(),a=i.nodeAfter&&r.isLimit(i[za("0xe1")])?null:r[za("0x10d")](i,za("0x130")),c=x[za("0x117")]&&r[za("0x52")](x.nodeBefore)?null:r[za("0x10d")](x,"backward"),l=e[za("0x119")].createRange(a?a[za("0x102")]:i,c?c[za("0x4")]:x);e[za("0x119")].change((t=>{this[za("0x1c")](l);const n=e[za("0x119")][za("0x49")].getNearestSelectionRange(l[za("0x102")]);o.is("documentSelection")?t[za("0x136")](n):o[za("0x22")](n)})),t[za("0x139")]()}),{priority:t.priorities[za("0x12")]+10}),e.model.on("insertContent",((t,n)=>{const o=n[n[za("0xc4")]-1];o&&o[za("0x126")]||this._isForcedDefaultExecutionBlock||this[za("0x63")][za("0x41")]&&(e[za("0x119")][za("0x26")]((()=>{let o=e[za("0x119")][za("0xfb")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;t[za("0x105")]=o.clone();const s=o.end[za("0x117")],r=e[za("0x119")][za("0x49")];s&&r.isBlock(s)&&!r[za("0x3d")](s)&&(o=e.model[za("0x12b")](o[za("0x102")],e[za("0x119")][za("0x135")](s,za("0x4")))),this[za("0x68")](o)})),t[za("0x139")]())}),{priority:za("0xe8")}),this.editor[za("0x4e")][za("0x57")](za("0xe9"),this[za("0x63")]),this.enableCommand("trackChanges");const o=new p(e,this[za("0x6d")]);e[za("0x4e")][za("0x57")](za("0xa5"),o),this[za("0xf6")]("acceptSuggestion");const s=new C(e,this[za("0x6d")]);e[za("0x4e")][za("0x57")]("discardSuggestion",s),this[za("0xf6")]("discardSuggestion"),e[za("0x4e")][za("0x57")]("acceptAllSuggestions",new F(e,o,this[za("0x6d")])),this[za("0xf6")]("acceptAllSuggestions"),e.commands[za("0x57")](za("0xb6"),new F(e,s,this[za("0x6d")])),this.enableCommand("discardAllSuggestions"),e[za("0x4e")].add(za("0x95"),new U(e,o,this._suggestions)),this.enableCommand("acceptSelectedSuggestions"),e[za("0x4e")][za("0x57")](za("0x8"),new U(e,s,this[za("0x6d")])),this[za("0xf6")](za("0x8"));const r=e.plugins[za("0xbb")](za("0x138"));this[za("0x9f")](r,za("0x120"),((e,{threadId:t})=>{const n=this._suggestions[za("0xbb")](t);n&&n[za("0xeb")]&&1===n[za("0xeb")][za("0xc4")]&&this[za("0x39")](t,{hasComments:!0})}),{priority:za("0xc7")}),this[za("0x9f")](r,za("0x96"),((e,{threadId:t})=>{const n=this[za("0x6d")][za("0xbb")](t);n&&n[za("0xeb")]&&!n[za("0xeb")].length&&this[za("0x39")](t,{hasComments:!1})}),{priority:"low"})}set[za("0x115")](e){if(this._adapter)throw new t.CKEditorError("track-changes-adapter-already-set",this);this._adapter=e}get[za("0x115")](){return this._adapter}[za("0xc5")]({skipNotAttached:e=!1,toJSON:t=!1}={}){const n=[];for(const t of this[za("0x6d")][za("0x5f")]())e&&!t[za("0x103")]||n[za("0x122")](t);return t?n[za("0x66")]((e=>e[za("0xc3")]())):n}[za("0x44")](e){const n=this[za("0x6d")][za("0xbb")](e);if(!n)throw new t.CKEditorError("track-changes-suggestion-not-found",this);return n}[za("0xd1")](e){return this[za("0x6d")][za("0x51")](e)}[za("0xca")](e){const{authorId:t,id:n,attributes:o}=e,[s,r]=e[za("0x2e")].split(":"),i=this._suggestions.get(n)||this._createSuggestion(s,r,n,t,o);if(this[za("0x2a")](i),this[za("0x77")](i,s,r||null,t),i[za("0x82")]=e.createdAt,o&&o[za("0xbe")]){const e=o[za("0xbe")],t=this[za("0xa2")](e[za("0x25")]);i.authoredAt=e[za("0x82")],i[za("0x67")]=t,i[za("0x4f")]=!0}else i[za("0xa7")]=e[za("0x82")];switch(e[za("0x7a")]&&(i[za("0x7a")]=e.data),e[za("0x8a")]&&(i[za("0x8a")]=e.attributes),this[za("0x12c")]&&this[za("0x12c")][za("0x100")]||(i[za("0xd6")]=!0),this[za("0xf2")][za("0xbb")](i)){case"notReady":this[za("0xf2")][za("0x1e")](i,za("0x129"));break;case za("0x101"):i.isInContent?(this[za("0xf2")][za("0x1e")](i,za("0x92")),this[za("0x2c")](za("0xb7"),i)):this[za("0xf2")].set(i,za("0xff"))}return i}[za("0xa5")](e){this[za("0x126")]((()=>{this.editor[za("0x119")][za("0x26")]((()=>{for(const t of e[za("0x34")]())t.accept()}))}))}[za("0x5e")](e){this[za("0x126")]((()=>{this[za("0x3")][za("0x119")][za("0x26")]((()=>{for(const t of e[za("0x34")]())t[za("0x11a")]()}))}))}[za("0xf6")](e,n){const o=this[za("0x3")][za("0x4e")][za("0xbb")](e);if(!o)throw new t.CKEditorError(za("0xe5"),this,{commandName:e});this[za("0xe2")].add(o),n&&o.on(za("0xf1"),((e,t)=>{this[za("0x63")][za("0x41")]&&(this[za("0x7b")]||t.length>0&&t[t[za("0xc4")]-1]&&t[t[za("0xc4")]-1].forceDefaultExecution||(n(((...e)=>o[za("0xf1")](...e,{forceDefaultExecution:!0})),...t),e[za("0x139")]()))}),{priority:"high"})}[za("0x126")](e){let n,o;const s=this[za("0x7b")];this._isForcedDefaultExecutionBlock=!0;try{n=e()}catch(e){o=e}return s||(this._isForcedDefaultExecutionBlock=!1),o&&t.CKEditorError.rethrowUnexpectedError(o,this),n}[za("0x68")](e,n=null,o={}){if(e[za("0x3f")])return null;const s=this[za("0x3")].plugins[za("0xbb")](za("0xe3")).me;for(const{suggestion:t,meta:o}of this[za("0x9")](e,"insertion"))if(o.isOwn){if(!o[za("0x10e")]){if(!this[za("0x3c")]&&o[za("0x94")])continue;return t}if(n==t[za("0x113")]){const n=t[za("0xd9")]();return n[za("0x102")][za("0x27")](e[za("0x4")])?this[za("0x17")](t,this[za("0x6e")][za("0x12b")](e[za("0x102")],n.end)):this[za("0x17")](t,this[za("0x6e")][za("0x12b")](n[za("0x102")],e[za("0x4")])),t}}const r=(0,t.uid)(),i=s.id,x=n?za("0xa4")+n:za("0x5b"),a=this[za("0x3e")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x106")](x,r,i,e),a}markMultiRangeInsertion(e,n="multi",o={}){const s=this[za("0x3")][za("0x6")][za("0xbb")](za("0xe3")).me,r=this._suggestionFactory[za("0x85")](za("0x5b"),n,za("0xa8"));for(const t of this[za("0xc5")]())if(t[za("0x67")].id==s.id&&za("0x5b")==t[za("0x2e")]&&t[za("0x113")]==n&&(r(t[za("0xd0")](),e)||r(e,t[za("0xd0")]()))){for(const n of e)t[za("0x5a")](n);return t}if(this._mergeNestedSuggestions)for(const t of e)for(const{suggestion:n,meta:o}of this[za("0x9")](t,za("0x5b"))){if(!o.isOwn)continue;let t=!0;for(const o of n[za("0xd0")]())for(const n of e)if(!o[za("0x108")](n)){t=!1;break}if(t)return n}const i=(0,t.uid)(),x=s.id,a=za("0xa4")+n,c=this[za("0x3e")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const t of e)this[za("0x106")](a,i,x,t,Zo[za("0x11b")]());return c}[za("0xb5")](e,n,o=null,s={}){if(o=o||$a(n),e.isCollapsed)return null;if(za("0xcb")===this[za("0xf0")]){const t=this._suggestionFactory.getSuggestionCallback(za("0xaf"),o,za("0x1d"));return this[za("0x126")]((()=>t([e],n,s))),null}const r=this[za("0x3")][za("0x6")][za("0xbb")](za("0xe3")).me,i=[];if(za("0xcd")!==this[za("0xf0")])for(const{suggestion:t,meta:n}of this[za("0x9")](e,za("0x5b")))n[za("0xec")]&&!n[za("0x14")]&&i[za("0x122")](...t[za("0xd0")]());const x=function(e,t){const n=[];for(const o of t){const t=e[za("0x55")](o);t&&n[za("0x122")](t)}return n}(e,i),a=function(e,t){const n=[e];for(const e of t){let t=0;for(;t<n[za("0xc4")];){const o=n[t][za("0x61")](e);n[za("0x80")](t,1,...o),t+=o.length}}return n}(e,i);x[za("0xc4")]&&this[za("0x6e")].change((()=>{for(const e of x){const t=this[za("0xf")][za("0x85")](za("0xaf"),o,za("0x1d"));this[za("0x126")]((()=>t([e],n,s)))}}));for(const e of a){let i=null,x=e[za("0x102")],a=e[za("0x4")];for(const{suggestion:t,meta:n}of this[za("0x9")](e,za("0xaf"))){if(!n[za("0xec")])continue;if(t.subType!=o)continue;const s=t.getFirstRange();if(s[za("0x108")](e,!0))return null;x=x[za("0x13b")](s[za("0x102")])?x:s[za("0x102")],a=a[za("0x15")](s.end)?a:s.end,i?s[za("0x102")][za("0x13b")](i[za("0xd9")]().start)?(i.removeMarkers(),i=t):t[za("0x2d")]():i=t}const c=this._model[za("0x12b")](x,a);if(i)this[za("0x17")](i,c);else{const e=(0,t.uid)(),i=r.id;this[za("0x3e")]({id:e,type:"formatInline:"+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this._addSuggestionMarker("formatInline:"+o,e,i,c)}}return null}markBlockFormat(e,n,o=[],s=null,r={}){n[za("0xd2")]||(n[za("0xd2")]=n[za("0xad")]),n.multipleBlocks=e.is(za("0x84")),s=s||$a(n);const i=o.map((e=>Ja(e,this[za("0x6e")]))),x=e.is(za("0x84"))?e:Ja(e,this[za("0x6e")]);if("never"===this[za("0xf0")]){const e=this._suggestionFactory[za("0x85")](za("0x32"),s,za("0x1d"));return this[za("0x126")]((()=>e([x],n,r))),null}i.push(x);let a=!0;for(const e of i)if(!this[za("0x6c")](e)){a=!1;break}if(a&&za("0xcd")!==this[za("0xf0")]){const e=this[za("0xf")][za("0x85")](za("0x32"),s,"accept");return this[za("0x126")]((()=>e([x],n,r))),null}let c=null,l=x[za("0x102")],u=x[za("0x4")];for(const{suggestion:e,meta:t}of this._findSuggestions(x,za("0x32"))){if(!t[za("0xec")]||t[za("0x10e")]||t[za("0x94")]||t[za("0x14")])continue;if(e[za("0x7a")].formatGroupId!=n[za("0xd2")])continue;const o=e.getFirstRange();if(e[za("0x113")]==s){if(o.containsRange(x,!0))return null;l=l[za("0x13b")](o[za("0x102")])?l:o.start,u=u[za("0x15")](o[za("0x4")])?u:o[za("0x4")],c?o[za("0x102")].isBefore(c[za("0xd9")]()[za("0x102")])?(c.removeMarkers(),c=e):e[za("0x2d")]():c=e}else{const t=x[za("0x55")](o);this._cutOutSuggestionMarker(e,t)}}const d=this.editor.plugins[za("0xbb")](za("0xe3")).me,g=(0,t.uid)(),m=d.id;if(c)return this[za("0x17")](c,this[za("0x6e")][za("0x12b")](l,u)),c;{const e=this._setSuggestionData({id:g,type:za("0x12e")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[za("0x106")](za("0x12e")+s,g,m,this._model[za("0x12b")](l,u)),e}}[za("0xd8")](e,n,o=[],s=null,r={}){n[za("0xd2")]||(n.formatGroupId=n[za("0xad")]);const i=e[0];n[za("0x56")]=i.is(za("0x84")),s=s||$a(n);const x=o.map((e=>Ja(e,this[za("0x6e")]))),a=i.is(za("0x84"))?e:e[za("0x66")]((e=>Ja(e,this[za("0x6e")])));if("never"===this[za("0xf0")]){const e=this[za("0xf")].getSuggestionCallback(za("0x32"),s,"accept");return this[za("0x126")]((()=>e(a,n,r))),null}x[za("0x122")](...a);let c=!0;for(const e of x)if(!this[za("0x6c")](e)){c=!1;break}if(c&&za("0xcd")!==this[za("0xf0")]){const e=this[za("0xf")][za("0x85")](za("0x32"),s,za("0x1d"));return this[za("0x126")]((()=>e(a,n,r))),null}const l=this[za("0x3")][za("0x6")][za("0xbb")](za("0xe3")).me;for(const e of this[za("0xc5")]()){if(e.author.id!=l.id)continue;if(za("0x32")!=e[za("0x2e")]||e[za("0x7a")].formatGroupId!=n[za("0xd2")])continue;const t=e[za("0x113")]==s;for(let n=0;n<a[za("0xc4")];n++){const o=a[n];for(const s of e.getMarkers()){const r=s[za("0xf9")]();if(o[za("0x27")](r)){t?(a[za("0x80")](n,1),n--):e.removeMarker(s[za("0xac")]);break}}}}if(0==a[za("0xc4")])return null;const u=this[za("0xf")][za("0x85")]("formatBlock",s,za("0xa8"));for(const e of this[za("0xc5")]())if(e[za("0x67")].id==l.id&&za("0x32")==e[za("0x2e")]&&e[za("0x7a")].formatGroupId==n.formatGroupId&&e[za("0x113")]==s&&(u(e[za("0xd0")](),a)||u(a,e[za("0xd0")]()))){for(const t of a)e[za("0x5a")](t);return e}const d=(0,t.uid)(),g=l.id,m="formatBlock:"+s,f=this._setSuggestionData({id:d,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const e of a)this[za("0x106")](m,d,g,e,Zo[za("0x11b")]());return f}markDeletion(e,n=null,o={}){if(e[za("0x3f")])return null;const s=this[za("0x3")][za("0x6")][za("0xbb")]("Users").me,r=new i.LiveRange(e.start,e[za("0x4")]);for(const{suggestion:e,meta:t}of this._findSuggestions(r,"insertion"))if(t[za("0xec")]&&!t[za("0x10e")])if(e.isMultiRange){const t=e[za("0xd0")]()[za("0xf8")]((e=>za("0x7d")!=e[za("0xa9")][za("0x8d")]));if(t.every((e=>r[za("0x108")](e,!0)))&&e.discard(),t[za("0xab")]((e=>e.containsRange(r,!0)))){const e=this[za("0xf")][za("0x85")]("deletion",n,za("0x1d"));return this[za("0x126")]((()=>e([r],null,o))),null}}else{const t=r[za("0x55")](e.getFirstRange());null!==t&&e[za("0x10f")]([t],null,o)}if(r[za("0x5c")](),r[za("0x3f")]||za("0x7d")==r[za("0xa9")][za("0x8d")])return null;let x=null,a=r[za("0x102")],c=r.end;for(const{suggestion:e,meta:t}of this[za("0x9")](r,"deletion"))if(t.isOwn)if(e[za("0x128")]&&this._mergeNestedSuggestions){let t=!0;for(const n of e.getRanges()){if(n.containsRange(r,!0))return e;r[za("0x108")](n)||(t=!1)}t&&e.discard()}else{const n=e[za("0xd9")]();if(n[za("0x108")](r,!0)){if(!this[za("0x3c")]&&t[za("0x94")])continue;return e}a=a.isBefore(n[za("0x102")])?a:n[za("0x102")],c=c[za("0x15")](n[za("0x4")])?c:n.end,x?n[za("0x102")].isBefore(x.getFirstRange()[za("0x102")])?(x[za("0x2d")](),x=e):e[za("0x2d")]():x=e}if(x)return this[za("0x17")](x,this[za("0x6e")][za("0x12b")](a,c)),x;{const e=(0,t.uid)(),r=this[za("0x6e")][za("0x12b")](a,c),i=s.id,x=n?za("0x59")+n:za("0xcc"),l=this._setSuggestionData({id:e,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x106")](x,e,i,r),l}}[za("0x75")](e,n=za("0xb4"),o={}){const s=this[za("0x3")][za("0x6")][za("0xbb")](za("0xe3")).me,r=e[za("0x66")]((e=>new i.LiveRange(e[za("0x102")],e.end))),x=new Set;for(const e of r)for(const{suggestion:t,meta:n}of this[za("0x9")](e,za("0x5b")))n.isOwn&&!n[za("0x10e")]&&x[za("0x57")](t);for(const t of x)if(t[za("0x128")]){const s=t.getRanges();if((!t.attributes||!t.attributes[za("0x98")])&&s.every((e=>r[za("0xab")]((t=>t.containsRange(e,!0)))))&&t.discard(),r[za("0x1a")]((e=>s[za("0xab")]((t=>t[za("0x108")](e,!0)))))){const t=this._suggestionFactory[za("0x85")]("deletion",n,za("0x1d"));return this[za("0x126")]((()=>t(e,null,o))),null}}else{const e=t[za("0xd9")]();if(r[za("0xab")]((t=>t.containsRange(e,!0)))&&t.discard(),r.every((t=>e[za("0x108")](t,!0)))){const e=this[za("0xf")].getSuggestionCallback(za("0xcc"),n,za("0x1d"));return this[za("0x126")]((()=>e(r,null,o))),null}}const a=this[za("0xf")][za("0x85")]("deletion",n,za("0xa8"));let c=null;for(const e of this[za("0xc5")]())if(e.author.id==s.id&&e[za("0x103")]&&za("0xcc")==e[za("0x2e")]&&e[za("0x113")]==n&&(a(e.getRanges(),r)||a(r,e[za("0xd0")]())))if(c){if(e[za("0xeb")]&&e[za("0xeb")][za("0xc4")])continue;for(const t of e[za("0xd0")]())c[za("0xae")](t)||c[za("0x5a")](t);e.removeMarkers()}else{c=e;for(const t of r)e.isIntersectingWithRange(t)||e[za("0x5a")](t)}if(c)return c;x[za("0x5")]();for(const e of r)for(const{suggestion:t,meta:n}of this[za("0x9")](e,za("0xcc")))n[za("0xec")]&&x[za("0x57")](t);for(const e of x){const t=e[za("0xd0")]();if((!o||!o[za("0x98")])&&r[za("0x1a")]((e=>t[za("0xab")]((t=>t[za("0x108")](e,!0))))))return e;(!e.attributes||!e[za("0x8a")][za("0x98")])&&t.every((e=>r.some((t=>t[za("0x108")](e,!0)))))&&e[za("0x11a")]()}const l=(0,t.uid)(),u=s.id,d="deletion:"+n,g=this[za("0x3e")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const e of r)e[za("0x5c")](),e.isCollapsed||za("0x7d")==e[za("0xa9")][za("0x8d")]||this[za("0x106")](d,l,u,e,Zo[za("0x11b")]());return g}[za("0x17")](e,t){const n=e.getFirstMarker();this[za("0x6e")][za("0x26")]((e=>{e[za("0x78")](n,{range:t})}))}[za("0x2a")](e){const t=e.id,n=this[za("0x3")].config[za("0xbb")](za("0x43"));this[za("0x104")][za("0x12f")](t)||this._commentsRepository.addCommentThread({channelId:n,threadId:t,isResolvable:!1,isSubmitted:!0});const o=this[za("0x104")][za("0x8c")](t);o.unbind("isRemovable"),o.isRemovable=!1,e[za("0xeb")]=o}[za("0x77")](e,n,o,s){if(e[za("0x2e")]!=n||e[za("0x113")]!=o||e[za("0x23")].id!=s)throw this.editor[za("0xbd")]("track-changes-suggestion-data-mismatch"),new t.CKEditorError(za("0x10a"),this)}[za("0x3b")](e,n){const o=e[za("0xd9")]();if(n.isEqual(o))e[za("0x2d")]();else if(o[za("0x108")](n)){const s=this[za("0x6e")][za("0x135")](n[za("0x102")].nodeBefore,za("0x4"));this[za("0x17")](e,this[za("0x6e")][za("0x12b")](o[za("0x102")],s));const r=(0,t.uid)(),i=e[za("0x23")].id,x=e[za("0x2e")]+":"+e[za("0x113")];this[za("0x3e")]({id:r,type:x,createdAt:new Date,authorId:i,data:e.data,attributes:e.attributes});const a=this[za("0x6e")].createPositionAt(n.end[za("0xa1")],za("0x4c")),c=this[za("0x6e")][za("0x12b")](a,o[za("0x4")]);this[za("0x106")](x,r,i,c)}else if(o[za("0x12a")](n.start)){const t=this[za("0x6e")].createPositionAt(n[za("0x102")].nodeBefore,"end");this[za("0x17")](e,this._model[za("0x12b")](o[za("0x102")],t))}else{const t=this[za("0x6e")][za("0x135")](n[za("0x4")][za("0xa1")],za("0x4c"));this._setSuggestionRange(e,this[za("0x6e")][za("0x12b")](t,o[za("0x4")]))}}[za("0x6c")](e){for(const{suggestion:t,meta:n}of this[za("0x9")](e,za("0x5b"))){if(!n[za("0xec")])continue;const o=t[za("0xd0")]();for(const t of o)if(!e[za("0x61")](t)[za("0xc4")])return!0}return!1}_getAuthorFromId(e){const n=this[za("0x3")][za("0x6")].get(za("0xe3"))[za("0x9d")](e);if(!n)throw new t.CKEditorError("track-changes-user-not-found",this);return n}_getExternalAuthor(e){const t=this[za("0x3")].plugins[za("0xbb")]("Users"),n=(0,r.hashObject)(za("0x111")+e);return t[za("0x9d")](n)||t.addUser({id:n,name:e})}[za("0x46")](e,t,n,o,s){const r=this._getAuthorFromId(o),i=this[za("0xf")][za("0x89")](e,t,n,r,s,(e=>this[za("0x39")](n,{attributes:e})));return this.listenTo(i,za("0x1d"),(()=>{this[za("0x39")](n,{state:za("0x9e")})}),{priority:"high"}),this.listenTo(i,za("0x11a"),(()=>{this[za("0x39")](n,{state:"rejected"})}),{priority:"high"}),this[za("0x6d")][za("0x1e")](n,i),this[za("0xf2")].set(i,za("0x60")),i}_splitMarkerName(e){const t=e[za("0x7f")](":");return{group:t[0],type:t[1],subType:t[za("0xc4")]>=5?t[2]:null,id:t[za("0xc4")]<5?t[2]:t[3],authorId:t[za("0xc4")]<5?t[3]:t[4],markerCount:6==t.length?t[5]:null}}[za("0x1")](e,n,o){const s=e[za("0xd9")](),r=s.start,i=s[za("0x4")];this[za("0x17")](e,this[za("0x6e")][za("0x12b")](r,n));const x=(0,t.uid)(),a=e.creator.id,c=e[za("0x2e")]+(e[za("0x113")]?":"+e[za("0x113")]:"");this._setSuggestionData({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:e.id,attributes:e[za("0x8a")],data:e[za("0x7a")]}),za("0x32")==e[za("0x2e")]&&(o=this._model.createPositionBefore(o.parent)),this[za("0x106")](c,x,a,this[za("0x6e")][za("0x12b")](o,i))}[za("0x9")](e,t=null){const n=[],o=this[za("0x6e")][za("0x49")],s=this[za("0x3")].plugins[za("0xbb")](za("0xe3")).me;for(const r of this[za("0xc5")]())if(r[za("0x103")]&&(!t||r.type==t))for(const t of r[za("0xd0")]()){const i=e[za("0x102")][za("0x27")](t[za("0x4")])||e[za("0x4")][za("0x27")](t[za("0x102")]);if(i||e[za("0x55")](t)){const x=e[za("0x108")](t)&&Ka(o,t[za("0x102")],e),a=t[za("0x108")](e)&&Ka(o,e[za("0x102")],t);n[za("0x122")]({suggestion:r,meta:{isOwn:s==r.author,isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}[za("0x106")](e,t,n,o,s){this._model[za("0x26")]((r=>{let i="suggestion:"+e+":"+t+":"+n;s&&(i=i+":"+s),r[za("0x38")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[za("0x42")](e){const t=e.previous,n=e[za("0x134")];e[za("0x6a")]=null,null!=t&&(t.next=null),e[za("0x134")]=null,null!=n&&(n[za("0x6a")]=null),za("0x92")==this._suggestionState[za("0xbb")](e)&&(this._suggestionState[za("0x1e")](e,za("0xff")),this[za("0x2c")]("suggestionUnloaded",e,t,n))}_setSuggestionData(e){const n=e.id,o=this.addSuggestionData(e);if(this[za("0x12c")]&&this[za("0x12c")].addSuggestion){const s=this[za("0x3")][za("0x6")][za("0xbb")](za("0x64")),r=o[za("0x37")],i=o[za("0x113")]?o[za("0x2e")]+":"+o[za("0x113")]:o[za("0x2e")],x=this.editor.locale,a=s[za("0x57")](Yo(x,za("0x91"))),c={id:n,type:i,hasComments:r,data:e[za("0x7a")]||null,originalSuggestionId:e.originalSuggestionId||null,attributes:o[za("0x8a")]};this[za("0x12c")][za("0x100")](c)[za("0x29")]((e=>{o[za("0xd6")]=!0,s.remove(a),e&&e[za("0x82")]&&(this._suggestions[za("0xbb")](n)[za("0x82")]=e.createdAt)}))[za("0x4a")]((e=>{throw(0,t.logWarning)(za("0xba")),this[za("0x3")].model[za("0x9c")]({isUndoable:!1},(()=>{o[za("0x11a")]()})),o[za("0x71")](),this[za("0x6d")][za("0x10b")](o.id),this[za("0xf2")].delete(o),e}))}return o}[za("0x39")](e,t){const n=this[za("0x3")][za("0x6")][za("0xbb")](za("0x64")),o=this[za("0x44")](e);if(this[za("0x12c")]&&this[za("0x12c")].updateSuggestion)if(o[za("0xd6")]){const o=n[za("0x57")](Yo(this.editor[za("0xf7")],"PENDING_ACTION_SUGGESTION"));this[za("0x12c")][za("0x132")](e,t)[za("0x29")]((()=>{n[za("0xe4")](o)}))}else o.on(za("0xdd"),(()=>{this._updateSuggestionData(e,t)}))}[za("0x125")](e){if(!this[za("0x12c")]||!this[za("0x12c")][za("0x44")])throw new t.CKEditorError(za("0xde"),this);return this[za("0x12c")].getSuggestion(e)}[za("0x11")](e){const{id:t,type:n,subType:o,authorId:s}=this[za("0x13")](e),r=this._suggestions[za("0xbb")](t)||this[za("0x46")](n,o,t,s,{});switch(this._checkSuggestionCorrectness(r,n,o,s),this._suggestionState[za("0xbb")](r)){case za("0x60"):this[za("0x125")](t)[za("0x29")]((e=>{let n=Promise[za("0x124")]();e[za("0x37")]&&(n=this[za("0x104")][za("0x11c")]({channelId:this[za("0x3")].config[za("0xbb")](za("0x43")),threadId:t})),n[za("0x29")]((()=>{this[za("0xca")](e)[za("0xd6")]=!0}))})),this[za("0xf2")][za("0x1e")](r,za("0x101"));break;case za("0xff"):this[za("0x39")](t,{state:"open"});case za("0x129"):this[za("0xf2")].set(r,za("0x92")),this[za("0x2c")](za("0xb7"),r);break;case"ready":this[za("0x2c")](za("0xbf"),r)}return r[za("0xea")](e),r}[za("0x87")](e){const t=Array.from(e)[za("0xf8")]((e=>!e[za("0x128")])),n=this[za("0xc5")]({skipNotAttached:!0})[za("0xf8")]((e=>!e.isMultiRange)),o=n[za("0xf8")]((t=>!e[za("0x51")](t))),s=new Map(n[za("0x66")]((e=>[e,this[za("0xf")][za("0x85")](e[za("0x2e")],e[za("0x113")],za("0x31"))]))),r=new Map(n[za("0x66")]((e=>[e,e.getFirstRange()]))),i=new Set,x=new Set;for(let e=0;e<t[za("0xc4")];e++)a(t[e],t,e+1);for(let e=0;e<t[za("0xc4")];e++)a(t[e],o,0);for(let e=0;e<t[za("0xc4")];e++){const n=t[e];!x.has(n)&&n[za("0x6a")]&&(n[za("0x6a")][za("0x134")]===n&&(n[za("0x6a")][za("0x134")]=null),n[za("0x6a")]=null),!i[za("0x51")](n)&&n.next&&(n[za("0x134")][za("0x6a")]===n&&(n[za("0x134")][za("0x6a")]=null),n[za("0x134")]=null)}function a(e,t,n){for(let o=n;o<t.length;o++){const n=c(e,t[o]);n&&(n[0][za("0x134")]=n[1],n[1].previous=n[0],i[za("0x57")](n[0]),x.add(n[1]))}}function c(e,t){if(e.author.id!==t[za("0x67")].id)return null;const n=s[za("0xbb")](e)(e,t,r[za("0xbb")](e),r[za("0xbb")](t));return n&&s.get(t)(e,t,r.get(e),r[za("0xbb")](t))?n[1][za("0xeb")]&&n[1][za("0xeb")][za("0xc4")]?null:n:null}}[za("0x30")](e){const t=Array[za("0xa0")](e),n=this[za("0xc5")]({skipNotAttached:!0}),o=n[za("0xf8")]((t=>!e[za("0x51")](t))),s=new Map(t[za("0x66")]((e=>[e,this[za("0xf")].getSuggestionCallback(e[za("0x2e")],e[za("0x113")],za("0xa8"))]))),r=new Map(n[za("0x66")]((e=>[e,e[za("0xd0")]()])));for(let e=0;e<t[za("0xc4")];e++)if(i(this,t[e],t,e+1))return!0;for(let e=0;e<t[za("0xc4")];e++)if(i(this,t[e],o,0))return!0;return!1;function i(e,t,n,o){for(let i=o;i<n[za("0xc4")];i++){const o=n[i];if(o.type!==t[za("0x2e")]||o[za("0x67")].id!==t.author.id||o[za("0x113")]!==t[za("0x113")])continue;const x=s[za("0xbb")](t),a=r.get(t),c=r.get(o),l=t.commentThread&&t[za("0xeb")].length,u=o[za("0xeb")]&&o[za("0xeb")][za("0xc4")];if(!l&&x(c,a))return e._joinSuggestions(o,t),r[za("0x10b")](t),!0;if(!u&&x(a,c))return e._joinSuggestions(t,o),r.delete(o),!0}return!1}}[za("0x1b")](e,t){if(e[za("0x128")])for(const n of t[za("0xd0")]())e[za("0x5a")](n);else{const n=t[za("0xd9")]()[za("0x4")];this._setSuggestionRange(e,this._model[za("0x12b")](e[za("0xd9")]()[za("0x102")],n))}t[za("0x2d")]()}}class Va{constructor(e){this[za("0x74")]=e,this._model=e.model,this._customCallbacks=new Map,this[za("0xed")]=new Map,this[za("0x3a")]()}[za("0x89")](e,t,n,o,s,r){return new Zo(this._model,{type:e,subType:t,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[za("0x85")](e,t,za("0x1d"))(...n),onDiscard:(...n)=>this.getSuggestionCallback(e,t,"discard")(...n)})}[za("0x7e")](e,t,n,o){const s=e+":"+t+":"+n;this[za("0xf3")][za("0x1e")](s,o)}getSuggestionCallback(e,t,n){const o=e+":"+t+":"+n;return this[za("0xf3")][za("0xbb")](o)||this[za("0xed")][za("0xbb")](e+":"+n)}_registerDefaultCallbacks(){const e=()=>{},t=e=>{e[za("0x6b")](((e,t)=>e.start[za("0x13b")](t.start)?1:-1)),this[za("0x6e")][za("0x26")]((t=>{for(const n of e){let e;e=n[za("0x4")][za("0xfc")]&&n[za("0x4")][za("0xa1")]==n[za("0x102")][za("0xe1")]?t[za("0x131")](n[za("0x102")][za("0xe1")],"on"):t[za("0x131")](n),this._model[za("0x109")](e,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(e,t)=>{this[za("0x6e")].change((n=>{const{commandName:o,commandParams:s=[]}=t,r=e[za("0x66")]((e=>(qa(e)&&(e=this[za("0x6e")][za("0x12b")](e[za("0x4")])),e)))[za("0xf8")]((e=>za("0x7d")!==e.root[za("0x8d")]));if(r[za("0xc4")]<1)return;const x=Array[za("0xa0")](this._model[za("0xaa")][za("0x33")][za("0xd0")]())[za("0x66")]((e=>i.LiveRange[za("0x73")](e)));n[za("0x136")](r);for(const e of this[za("0x74")][za("0x4e")][za("0x4e")]())e[za("0x13a")]();s[za("0x122")]({forceDefaultExecution:!0}),this[za("0x74")][za("0xf1")](o,...s);const a=x[za("0xf8")]((e=>"$graveyard"!=e.root[za("0x8d")]));a.length>0&&n.setSelection(a);for(const e of x)e[za("0x5c")]()}))},o=(e,t)=>1==e[za("0xc4")]&&1==t[za("0xc4")]&&e[0].end[za("0x27")](t[0][za("0x102")]),s=(e,t,n,o)=>Za(e,t,n,o,this[za("0x6e")])?[e,t]:Za(t,e,o,n,this[za("0x6e")])?[t,e]:null;this[za("0xed")][za("0x1e")](za("0xfe"),e),this._defaultCallbacks[za("0x1e")](za("0xb9"),t),this[za("0xed")][za("0x1e")](za("0x53"),o),this[za("0xed")].set(za("0xb2"),s),this[za("0xed")][za("0x1e")]("deletion:accept",t),this._defaultCallbacks.set(za("0x48"),e),this[za("0xed")][za("0x1e")](za("0xdb"),o),this[za("0xed")].set(za("0x36"),s),this[za("0xed")][za("0x1e")](za("0xb"),n),this[za("0xed")][za("0x1e")]("formatInline:discard",e),this[za("0xed")].set(za("0x50"),o),this[za("0xed")][za("0x1e")](za("0xdc"),e),this[za("0xed")][za("0x1e")](za("0xd3"),n),this[za("0xed")].set(za("0x16"),e),this[za("0xed")][za("0x1e")](za("0xa6"),o),this[za("0xed")][za("0x1e")](za("0xa3"),e)}}function Ka(e,t,n){for(const o of t.parent[za("0xc")]({includeSelf:!0,parentFirst:!0})){if(o.root==o)return!1;if(!n.containsItem(o))return!1;if(e[za("0x3d")](o)||e[za("0x52")](o))return!0}return!1}function qa(e){return e.end[za("0xa1")]==e[za("0x102")].nodeAfter&&e.end.isAtStart}function Xa(e,t,n,o){const s=e=>!e.item.is(za("0x81"))&&!o[za("0x3d")](e[za("0x13c")]),r=e[za("0x102")][za("0xe")](s),i=e[za("0x4")][za("0xe")](s,{direction:za("0x45")});return!(e[za("0x102")].isEqual(r)&&e.end[za("0x27")](i)||(r.isBefore(i)?n[za("0x78")](t,{range:n[za("0x12b")](r,i)}):n[za("0x4d")](t),0))}function $a(e){return(0,r.hashObject)(e)}function Qa(e){const t=e[za("0x102")][za("0xe1")];return t&&t.is("element")}function Ja(e,t){const n=t[za("0x49")][za("0x3d")](e)||t[za("0x49")][za("0x93")](e);return t.createRange(t.createPositionAt(e,za("0x54")),n?t[za("0x10c")](e):t.createPositionAt(e,za("0x4")))}function Za(e,t,n,o,s){if(n[za("0x4")][za("0x27")](o[za("0x102")]))return!0;if(e.type!=t[za("0x2e")])return!1;if(!n[za("0x4")][za("0x20")](o.start))return!1;const r=s.createRange(n[za("0x4")],o[za("0x102")])[za("0x28")]();for(const e of r)if(["elementStart",za("0x8e")][za("0xc9")](e[za("0x2e")])&&s[za("0x49")][za("0x52")](e[za("0x13c")]))return!1;return!0}const Ya=["view","bind","discardSuggestion","_editor","locale","change:isDirty","plugins","destroy","_setPendingAction","canDiscard","_pendingAction","model","_discardCommand","isDirty","add","PENDING_ACTION_SUGGESTION","listenTo","isEnabled","getRanges","commentThreadController","execute","remove","unbind","canEditAt","_acceptCommand","acceptSuggestion","PendingActions","_removePendingAction","get","canAccept","commands"];var ec,tc;ec=Ya,tc=283,function(e){for(;--e;)ec.push(ec.shift())}(++tc);const nc=function(e,t){return Ya[e-=0]};class oc extends((0,t.ObservableMixin)()){constructor(e,t,n,o){super(),this[nc("0x7")]=t,this.view=n,this.commentThreadController=o,this[nc("0x1e")]=e,this[nc("0x14")]=e[nc("0x1a")][nc("0x18")](nc("0x15")),this[nc("0x8")]=e[nc("0x1a")][nc("0x18")](nc("0x1d")),this.view[nc("0x1c")](nc("0xd")).to(this[nc("0x14")],this._discardCommand,((e,t)=>e||t)),this[nc("0x1b")].bind(nc("0x19")).to(this[nc("0x14")],nc("0xd"),(e=>e&&this._editor[nc("0x7")].canEditAt(t[nc("0xe")]()))),this[nc("0x1b")][nc("0x1c")]("canDiscard").to(this[nc("0x8")],nc("0xd"),(e=>e&&this[nc("0x1e")][nc("0x7")][nc("0x13")](t[nc("0xe")]()))),this[nc("0x6")]=null,n[nc("0x9")]&&this._setPendingAction(),this[nc("0xc")](n,nc("0x15"),(()=>this[nc("0x15")]())),this.listenTo(n,"discardSuggestion",(()=>this[nc("0x1d")]())),this.listenTo(n,nc("0x1"),(()=>{n.isDirty?this._setPendingAction():this[nc("0x17")]()}))}[nc("0x15")](){this[nc("0x14")][nc("0x10")](this[nc("0x7")].id)}[nc("0x1d")](){this[nc("0x8")][nc("0x10")](this[nc("0x7")].id)}[nc("0x3")](){this[nc("0x1b")][nc("0x12")](nc("0xd")),this[nc("0x1b")][nc("0x12")](nc("0x19")),this.view[nc("0x12")](nc("0x5")),this.stopListening(),this[nc("0xf")].destroy(),this[nc("0x6")]&&this[nc("0x17")]()}[nc("0x4")](){const e=Yo(this[nc("0x1e")][nc("0x0")],nc("0xb"));this[nc("0x6")]=this[nc("0x1e")][nc("0x2")][nc("0x18")](nc("0x16"))[nc("0xa")](e)}[nc("0x17")](){null!==this[nc("0x6")]&&this._editor[nc("0x2")].get(nc("0x16"))[nc("0x11")](this[nc("0x6")]),this[nc("0x6")]=null}}const sc=["authoredAt","isDirty","canAccept","commentThread","commentsListView","canDiscard","isActive","descriptionParts","CommentView","element","delegate","_createCommentThreadInputView","length","_localUser","showInput","locale","removeComment","_model","fire","_createCommentViews","commentInputView","bind","destroy","hasDirtyComment","disableComments","addComment","editorConfig","value","focus","submit","isEnabled","commentThreadInputView","set","disabledSubmit","_config","isReadOnly"];var rc,ic;rc=sc,ic=494,function(e){for(;--e;)rc.push(rc.shift())}(++ic);const xc=function(e,t){return sc[e-=0]};class ac extends s.View{constructor(e,t,n,o){super(e),this[xc("0xe")]=null,this[xc("0x5")]=null,this.set(xc("0x10"),!1),this[xc("0x6")](xc("0xa"),t.authoredAt),this[xc("0x1f")](xc("0xa")).to(t),this[xc("0x6")](xc("0x11"),[]),this.set("isDirty",!1),this.set(xc("0x4"),!1),this.set(xc("0xc"),!1),this.set(xc("0xf"),!1),this[xc("0x1b")]=t,this[xc("0x17")]=n,this[xc("0x8")]=o,o[xc("0x22")]?this.set("length",1):this[xc("0x1d")]()}[xc("0x2")](){this[xc("0x13")].focus()}[xc("0x20")](){this[xc("0xe")]&&this.commentsListView[xc("0x20")](),this[xc("0x5")]&&this[xc("0x5")][xc("0x20")](),super[xc("0x20")]()}_createCommentViews(){const{CommentsListView:e}=this[xc("0x8")];this[xc("0xe")]=new e(this.locale,this[xc("0x1b")][xc("0xd")],Object.assign({CommentView:this[xc("0x8")][xc("0x12")]},this[xc("0x8")])),this[xc("0xe")].delegate(xc("0x1a")).to(this),this.commentsListView[xc("0x14")]("updateComment").to(this),this[xc("0xe")].bind(xc("0x10")).to(this),this[xc("0x6")]("length",this.commentsListView[xc("0x16")]+1),this[xc("0x1f")]("length").to(this[xc("0xe")],xc("0x16"),(e=>e+1)),this[xc("0x5")]=this[xc("0x15")](),this.on(xc("0x1a"),(()=>this.focus())),this[xc("0x1f")](xc("0xb")).to(this.commentsListView,xc("0x21"),this[xc("0x5")].commentInputView,xc("0x1"),((e,t)=>e||!!t))}[xc("0x15")](){const{CommentThreadInputView:e}=this[xc("0x8")],t=new e(this[xc("0x19")],this[xc("0x17")],this[xc("0x8")][xc("0x0")]),n=t[xc("0x1e")];return t[xc("0x1f")](xc("0x18")).to(this,xc("0x10"),this[xc("0x1b")][xc("0xd")],xc("0x9"),n,"value",((e,t,n)=>!!n||e&&!t)),n.on(xc("0x3"),((e,t)=>{this[xc("0x1c")](xc("0x23"),t),n.editor.setData("")})),n.on("cancel",(()=>this.focus())),n[xc("0x1f")](xc("0x7")).to(this[xc("0x1b")][xc("0xd")],xc("0x9")),t}}const cc=["innerHTML","ck-suggestion-wrapper","push","ck-annotation__content-wrapper","bindTemplate","ck-comment__info-time","extendTemplate","creator","getTemplate","commentThreadInputView",'<span class="ck-suggestion-color" style="background-color: ',"getExternalSuggestionNote","locale","ck-annotation__main","description","Discard suggestion","discardButton","children","ck-suggestion__main","ck-suggestion","ck-suggestion__info-name","<p>","authoredAt","ck-suggestion__info","ck-annotation__info-name","innerText","getUserViewNotificationText","bind","ck-suggestion__actions","ck-annotation__info","attributes","ck-annotation__actions","@external","execute","ck-suggestion--accept","type","setTemplate","name","canDiscard","Accept suggestion","ck-annotation__user","isExternal","importWord","EXTERNAL_IMPORT_WORD_AVATAR","div","source","_descriptionElement","join","_model","ck-suggestion-wrapper--active","element",".ck-annotation__content-wrapper","ck-suggestion__user","createElement","ck-suggestion--discard","_createButton","EXTERNAL_AVATAR","EXTERNAL_SUGGESTION","acceptButton","commentThread","span","isEnabled","isActive","commentsListView","userView","ck-suggestion-","querySelector","discardSuggestion",'"></span>','" title="',"fire",'<span class="ck-suggestion-type">',"cancel","render","ck-annotation","descriptionParts"];var lc,uc;lc=cc,uc=179,function(e){for(;--e;)lc.push(lc.shift())}(++uc);const dc=function(e,t){return cc[e-=0]};class gc extends ac{constructor(t,n,o,s){super(t,n,o,s),this.set(dc("0x8"),""),this.bind(dc("0x8")).to(this,dc("0x30"),(e=>e&&e[0]?e[0][dc("0x8")]:"")),this[dc("0x0")](dc("0x3f")).to(this,"descriptionParts",this,dc("0x23"),((e,t)=>{let n="";for(const t of e)n+=dc("0x46")+mc(t.content,t.color)+"</p>";return t?n:(0,r.trimHtml)(n,{limit:140})})),this[dc("0x13")]=null,this[dc("0x1f")]=this[dc("0x1c")](Yo(t,dc("0xc")),e.icons.check,dc("0x7"),"acceptSuggestion","sw"),this[dc("0x1f")].bind(dc("0x22")).to(this,"canAccept"),this.discardButton=this[dc("0x1c")](Yo(t,dc("0x40")),e.icons[dc("0x2d")],dc("0x1b"),dc("0x28"),"sw"),this[dc("0x41")][dc("0x0")]("isEnabled").to(this,dc("0xb")),this[dc("0x25")]=new r.UserView(t,this._model.author,this[dc("0x4b")]()),this[dc("0x25")][dc("0x37")]({attributes:{class:[dc("0x19"),dc("0xd")]}}),this[dc("0x9")](this[dc("0x39")]())}[dc("0x39")](){const e=this[dc("0x35")],t=[{tag:dc("0x11"),attributes:{class:[dc("0x48"),dc("0x2")]},children:[{tag:dc("0x21"),children:[{text:this[dc("0x25")].name}],attributes:{class:[dc("0x45"),dc("0x49")]}},{tag:"time",attributes:{datetime:e.to(dc("0x47")),class:[dc("0x36"),"ck-annotation__info-time"]},children:[{text:e.to(dc("0x47"),(e=>this._config.formatDateTime(e)))}]}]},{tag:"div",attributes:{class:[dc("0x1"),dc("0x4")]},children:[this.acceptButton,this[dc("0x41")]]},{tag:dc("0x11"),attributes:{class:[dc("0x34")]}}];this[dc("0x15")].isExternal&&t.push({tag:dc("0x11"),attributes:{class:["ck-comment__external"]},children:[{text:this[dc("0x3c")]()}]});const n={tag:"div",attributes:{class:[dc("0x32"),e.if("isActive",dc("0x16")),e.to(dc("0x8"),(e=>dc("0x26")+e)),this._config.disableComments&&"ck-suggestion--disabled-comments"],"data-suggestion-id":this[dc("0x15")].id,"data-thread-id":this[dc("0x15")][dc("0x20")].id,"data-author-id":this._model.author.id,tabindex:-1},children:[{tag:"div",attributes:{class:[dc("0x44"),dc("0x2f")]},children:[this[dc("0x25")],{tag:"div",attributes:{class:[dc("0x43"),dc("0x3e")]},children:t}]}]};return this[dc("0x24")]&&this.commentThreadInputView&&n[dc("0x42")][dc("0x33")](this.commentsListView,this[dc("0x3a")]),n}[dc("0x2e")](){super[dc("0x2e")](),this[dc("0x13")]=this[dc("0x17")][dc("0x27")](dc("0x18")),this[dc("0x13")][dc("0x31")]=this[dc("0x3f")],this.on("change:description",((e,t,n)=>{this[dc("0x13")][dc("0x31")]=n}))}[dc("0x1c")](e,t,n,o,r){const i=new s.ButtonView(this[dc("0x3d")]);return i.set({label:e,icon:t,tooltip:!0,tooltipPosition:r}),i[dc("0x37")]({attributes:{class:n}}),i.on(dc("0x6"),(()=>{this[dc("0x2b")](o,this[dc("0x15")].id)})),i}[dc("0x3c")](){return dc("0xf")===this._model[dc("0x3")]["@external"].source?Yo(this[dc("0x3d")],"EXTERNAL_IMPORT_WORD_SUGGESTION"):Yo(this.locale,dc("0x1e"))}[dc("0x4b")](){return this[dc("0x15")][dc("0xe")]?dc("0xf")===this[dc("0x15")].attributes[dc("0x5")][dc("0x12")]?Yo(this.locale,dc("0x10"),this[dc("0x15")][dc("0x38")][dc("0xa")]):Yo(this[dc("0x3d")],dc("0x1d"),this[dc("0x15")][dc("0x38")].name):null}}function mc(e,t){let n="";return n+=e.split("*").map(((e,t)=>t%2!=0?dc("0x2c")+fc(e)+"</span>":fc(e)))[dc("0x14")](""),t&&(n+=dc("0x3b")+t.value+dc("0x2a")+t.title+dc("0x29")),n}function fc(e){const t=document[dc("0x1a")](dc("0x21"));return t[dc("0x4a")]=e,t[dc("0x31")]}const hc=["trackChanges.disableComments","change:activeAnnotations","arrowView","source","actionView","_updateController","config","separator","_createUIButton","_disableComments","some","mainView","comments.maxCommentsWhenCollapsed","editor","comments","buttonView","trackChanges.SuggestionThreadView","init","editing","_handleSuggestionControllerDelayed","define","Discard all suggestions","getJoined","addSourceCollector","_initializeController","_refreshActiveMarkers","discardAllSuggestions","CommentsUI","change:previous","acceptAllSuggestions","set","bind","from","requires","model","comments.editorConfig","Track changes","getDescriptions","_viewToController","head","trackChanges","focus","createAnnotationView","execute","componentFactory","isDirty","CommentView","pluginName","map","Annotations","commandName","getSuggestion","value","comments.maxCommentCharsWhenCollapsed","EditorAnnotations","_suggestionToController","previous","delete","isEnabled","listenTo","activeAnnotations","isOn","add","filter","getByInnerView","unbind","Accept all suggestions","TrackChangesUI","has","commands","TrackChangesEditing","registerAnnotation","button","_destroyController","createAnnotation","acceptSelectedSuggestions","push","commentThread","_handleControllerBuffer","type","length","getRanges","hasSuggestion","locale","CommentsRepository","_descriptionFactory","refreshSelectedViews","_annotationViews","get","discardButton","destroy","getAllAdjacentSuggestions","reduce","isInContent","discardSelectedSuggestions","descriptionParts","suggestionLoaded","createCommentThreadController","suggestion-","clear","values","view","plugins","remove"];var pc,bc;pc=hc,bc=423,function(e){for(;--e;)pc.push(pc.shift())}(++bc);const Ec=function(e,t){return hc[e-=0]};class _c extends e.Plugin{static get[Ec("0x1a")](){return[Wa,r.Users,"CommentsRepository",Ec("0x2a"),Ec("0x2f")]}static get[Ec("0x28")](){return Ec("0x3c")}constructor(e){super(e),this._suggestionToController=new Map,this._viewToController=new Map,this[Ec("0x50")]=new Map,this[Ec("0x47")]=new Map;const t=this[Ec("0x6")].config;t[Ec("0xd")](Ec("0x9"),gc),t[Ec("0xd")]("trackChanges.disableComments",!1),this[Ec("0x2")]=t.get(Ec("0x61"))}[Ec("0xc")](e,t){0===this._handleControllerBuffer.size&&setTimeout((()=>{for(const[e,t]of this[Ec("0x47")]){const n=this[Ec("0x30")][Ec("0x3d")](e);n||t?n&&t&&this[Ec("0x42")](e):this[Ec("0x11")](e)}this.editor[Ec("0x5f")][Ec("0x51")](Ec("0x2f"))[Ec("0x4f")](),this[Ec("0x12")](),this[Ec("0x47")][Ec("0x5c")]()}),10),this._handleControllerBuffer[Ec("0x17")](e,t)}[Ec("0xa")](){const e=this[Ec("0x6")],t=e[Ec("0x5f")][Ec("0x51")]("TrackChangesEditing"),n=e[Ec("0x5f")][Ec("0x51")]("Annotations"),o=e[Ec("0x5f")].get(Ec("0x2f")),s=e[Ec("0x5f")][Ec("0x51")](Ec("0x4d"));e.ui[Ec("0x25")][Ec("0x37")]("trackChanges",(e=>this[Ec("0x1")](e))),o[Ec("0x10")]((()=>{const e=[];for(const[t,n]of Array[Ec("0x19")](this[Ec("0x30")])){const o=t[Ec("0x54")](),s=[];for(const e of o){if(!e[Ec("0x56")])continue;if(e.isMultiRange){s[Ec("0x45")](...e[Ec("0x4a")]());continue}const t=e.getFirstRange();if(s[Ec("0x49")]>0){const e=s[0][Ec("0xf")](t);if(e){s[0]=e;continue}}s[Ec("0x45")](t)}e[Ec("0x45")]([n[Ec("0x5e")],s])}return e})),this[Ec("0x34")](t,Ec("0x59"),((e,t)=>{this[Ec("0x34")](t,Ec("0x15"),((e,n,o,s)=>{t.isInContent&&(null==o?(this._updateController(s[Ec("0x20")]),this[Ec("0xc")](t,!1)):(this[Ec("0x66")](o[Ec("0x20")]),this._handleSuggestionControllerDelayed(t,!0)))})),null===t[Ec("0x31")]?this[Ec("0xc")](t,!1):this[Ec("0x66")](t[Ec("0x20")])})),this[Ec("0x34")](t,"suggestionUnloaded",((e,t,n)=>{this.stopListening(t,Ec("0x15")),this[Ec("0x47")][Ec("0x32")](t);const o=n?n.head:t,s=this._suggestionToController.get(o);null!==n&&this[Ec("0x66")](o),null===n&&s&&this._destroyController(t)})),this[Ec("0x34")](t,"suggestionChanged",((e,t)=>{this[Ec("0x66")](t)})),this.listenTo(n,Ec("0x62"),(()=>{this[Ec("0x12")]()})),this.listenTo(s,"addComment",((e,{threadId:n,isFromAdapter:o})=>{if(o||!t[Ec("0x4b")](n))return;const s=t[Ec("0x2c")](n);this[Ec("0x30")][Ec("0x51")](s)[Ec("0x5e")][Ec("0x22")]()}),{priority:"lowest"})}[Ec("0x12")](){const e=this.editor[Ec("0x5f")][Ec("0x51")]("Annotations"),t=this[Ec("0x6")].plugins.get(Ec("0x3f")),n=Array[Ec("0x19")](e[Ec("0x35")],(e=>e.innerView))[Ec("0x38")]((e=>this[Ec("0x1f")].has(e))),o=[];for(const e of n){const t=this[Ec("0x1f")][Ec("0x51")](e)[Ec("0x1b")][Ec("0x54")]();o[Ec("0x45")](...t[Ec("0x55")](((e,t)=>[...e,...t.getMarkerNames()]),[]))}t.activeMarkers=o}_createUIButton(e){const n=(0,s.createDropdown)(e,s.SplitButtonView),o=this[Ec("0x6")].commands[Ec("0x51")](Ec("0x21")),r=Yo(e,Ec("0x1d"));n[Ec("0x8")][Ec("0x17")]({tooltip:r,label:r,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[Ec("0x8")][Ec("0x18")](Ec("0x36")).to(o,Ec("0x2d")),n[Ec("0x8")].on(Ec("0x24"),(()=>{o.execute(),this[Ec("0x6")][Ec("0xb")][Ec("0x5e")][Ec("0x22")]()}));const i=new t.Collection,x=[{type:"switchbutton",model:{withText:!0,label:r,commandName:Ec("0x21")}},{type:Ec("0x0")},{type:Ec("0x41"),model:{withText:!0,label:Yo(e,Ec("0x3b")),commandName:Ec("0x16")}},{type:Ec("0x41"),model:{withText:!0,label:Yo(e,"Accept all selected suggestions"),commandName:Ec("0x44")}},{type:Ec("0x41"),model:{withText:!0,label:Yo(e,Ec("0xe")),commandName:Ec("0x13")}},{type:Ec("0x41"),model:{withText:!0,label:Yo(e,"Discard all selected suggestions"),commandName:Ec("0x57")}}];for(const e of x){let t={type:"separator"};if(e.model){const n=new s.Model(e[Ec("0x1b")]),o=this[Ec("0x6")][Ec("0x3e")].get(n[Ec("0x2b")]);n[Ec("0x18")]("isOn",Ec("0x33")).to(o,Ec("0x2d"),Ec("0x33")),t={type:e.type,model:n}}i.add(t)}(0,s.addListToDropdown)(n,i);const a=x.filter((e=>null!=e[Ec("0x1b")]))[Ec("0x29")]((e=>this[Ec("0x6")][Ec("0x3e")][Ec("0x51")](e[Ec("0x1b")].commandName))),c=n[Ec("0x8")];return c.actionView[Ec("0x3a")](Ec("0x33")),c[Ec("0x63")].unbind(Ec("0x33")),c[Ec("0x65")][Ec("0x18")]("isEnabled").to(o,Ec("0x33")),c[Ec("0x63")][Ec("0x18")](Ec("0x33")).toMany(a,Ec("0x33"),((...e)=>e[Ec("0x3")]((e=>e)))),n.on("execute",(e=>{this[Ec("0x6")].execute(e[Ec("0x64")][Ec("0x2b")]),this[Ec("0x6")].editing[Ec("0x5e")][Ec("0x22")]()})),n}[Ec("0x11")](e){const t=this[Ec("0x6")],n=t[Ec("0x67")],o=t[Ec("0x5f")][Ec("0x51")]("Annotations"),s=t[Ec("0x5f")].get("CommentsRepository"),i=t.plugins[Ec("0x51")]("EditorAnnotations"),x=t.plugins[Ec("0x51")](r.Users).me,a=n[Ec("0x51")](Ec("0x21")).SuggestionThreadView,{CommentsListView:c,CommentThreadInputView:l}=t[Ec("0x5f")][Ec("0x51")](Ec("0x14"));let u,d;this[Ec("0x50")][Ec("0x3d")](e.id)?(d=this._annotationViews.get(e.id),u=d[Ec("0x4")]):(u=new a(t[Ec("0x4c")],e,x,{disableComments:this[Ec("0x2")],editorConfig:n[Ec("0x51")](Ec("0x1c")),maxCommentsWhenCollapsed:n[Ec("0x51")](Ec("0x5")),maxThreadTotalWeight:n[Ec("0x51")]("comments.maxThreadTotalWeight"),maxCommentCharsWhenCollapsed:n[Ec("0x51")](Ec("0x2e")),formatDateTime:(0,r.getDateTimeFormatter)(n.get(Ec("0x4c"))),CommentView:n[Ec("0x51")](Ec("0x7"))[Ec("0x27")],CommentsListView:c,CommentThreadInputView:l}),u.acceptButton.on(Ec("0x24"),(()=>{t.editing.view[Ec("0x22")]()})),u[Ec("0x52")].on(Ec("0x24"),(()=>{t.editing[Ec("0x5e")][Ec("0x22")]()})),d=o[Ec("0x23")](this[Ec("0x6")].locale,u),d.bind(Ec("0x26")).to(u,Ec("0x26")),d[Ec("0x18")](Ec("0x49")).to(u),d[Ec("0x18")]("type").to(u,Ec("0x48"),(e=>"suggestion-"+e)),this[Ec("0x50")][Ec("0x17")](e.id,d));const g=s[Ec("0x5a")](e[Ec("0x46")],u),m=new oc(t,e,u,g),f=e.getAllAdjacentSuggestions()[Ec("0x38")]((e=>e[Ec("0x56")]));u[Ec("0x58")]=t[Ec("0x5f")][Ec("0x51")](Ec("0x3f"))[Ec("0x4e")][Ec("0x1e")](f),this._suggestionToController[Ec("0x17")](e,m),this._viewToController[Ec("0x17")](u,m);const h=o[Ec("0x43")]({view:d,target:()=>{const n=[],o=e[Ec("0x54")]()[Ec("0x38")]((e=>e[Ec("0x56")]));for(const e of o)n.push(...e.getMarkers());return(0,r.getAllMarkersDomElementsSorted)(t[Ec("0xb")],n)},type:()=>Ec("0x5b")+m[Ec("0x5e")].type});o[Ec("0x37")](h),i[Ec("0x40")](h)}[Ec("0x42")](e){const t=this.editor[Ec("0x5f")][Ec("0x51")](Ec("0x2a")),n=this[Ec("0x30")][Ec("0x51")](e),o=n.view,s=t[Ec("0x39")](o);s&&t[Ec("0x60")](s),this[Ec("0x30")][Ec("0x32")](e),this[Ec("0x1f")].delete(o),n[Ec("0x53")]()}[Ec("0x66")](e){if(!e[Ec("0x56")]||!this[Ec("0x30")][Ec("0x3d")](e))return;const t=this.editor.plugins[Ec("0x51")](Ec("0x3f")),n=this[Ec("0x30")][Ec("0x51")](e),o=e[Ec("0x54")]();n.view[Ec("0x58")]=t[Ec("0x4e")].getDescriptions(o)}[Ec("0x53")](){for(const e of this._suggestionToController.keys())this._destroyController(e);for(const e of this[Ec("0x50")][Ec("0x5d")]())e[Ec("0x4")].destroy();super.destroy()}}var Tc,Cc,yc=["editor","plugins","Comments","getSuggestion","adapter","TrackChanges","addSuggestion","get","requires","addSuggestionData","getSuggestions","pluginName"];Tc=yc,Cc=134,function(e){for(;--e;)Tc.push(Tc.shift())}(++Cc);var kc=function(e,t){return yc[e-=0]};class Ac extends e.Plugin{static get[kc("0x6")](){return[Wa,_c,kc("0x0")]}static get[kc("0x9")](){return kc("0x3")}set[kc("0x2")](e){this[kc("0xa")][kc("0xb")][kc("0x5")](Wa)[kc("0x2")]=e}get adapter(){return this.editor.plugins[kc("0x5")](Wa)[kc("0x2")]}[kc("0x4")](e){return this.editor.plugins[kc("0x5")](Wa)[kc("0x7")](e)}[kc("0x8")]({skipNotAttached:e=!1,toJSON:t=!1}={}){return this.editor[kc("0xb")].get(Wa)[kc("0x8")]({skipNotAttached:e,toJSON:t})}[kc("0x1")](e){return this[kc("0xa")][kc("0xb")][kc("0x5")](Wa).getSuggestion(e)}}const vc=["filter","WordCount","track-changes-data-invalid-editor-creator","createElement","map","_adapter","config","end","TrackChangesDataGetter","WebSocketGateway","users","DocumentOutline","trackChangesData.editorCreator","getDataWithAcceptedSuggestions","Pagination","addUser","adapter","discardAllSuggestions","reduce","function","destroy","getDataWithDiscardedSuggestions","TrackChangesData","init","context","pluginName","define","push","CommentsRepository","create","includes","TrackChangesEditing","acceptAllSuggestions","result","editor","execute","get","requires","Users","names","appendChild","set","concat","addSuggestionData","Autosave","getRootNames","div","editorCreator","document","useAnonymousUser","builtinPlugins","plugins","data","createDocumentFragment","name","extraPlugins"];var Rc,Sc;Rc=vc,Sc=457,function(e){for(;--e;)Rc.push(Rc.shift())}(++Sc);const Ic=function(e,t){return vc[e-=0]},Lc=["initialData",Ic("0xf"),"toolbar"],Nc=[Ic("0x0"),"RevisionTracker",Ic("0x23"),Ic("0x30"),Ic("0x5"),Ic("0x2")];class wc extends e.Plugin{static get[Ic("0x1c")](){return[Wa]}static get[Ic("0x10")](){return Ic("0xd")}[Ic("0xe")](){const e=this[Ic("0x19")];if(e[Ic("0x35")][Ic("0x11")](Ic("0x3"),(t=>e.constructor[Ic("0x14")]("",t))),Ic("0xa")!=typeof e[Ic("0x35")][Ic("0x1b")]("trackChangesData")[Ic("0x26")])throw new t.CKEditorError(Ic("0x31"))}[Ic("0x4")](e){return Oc(this.editor,!0,e)}[Ic("0xc")](e){return Oc(this[Ic("0x19")],!1,e)}}class Mc extends e.Plugin{static get[Ic("0x10")](){return Ic("0x37")}constructor(e){super(e),this[Ic("0x18")]=Ic("0x36")}[Ic("0xe")](){this[Ic("0x19")].plugins[Ic("0x1b")](Ic("0x13"))[Ic("0x7")]={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this[Ic("0x19")][Ic("0x2a")][Ic("0x1b")](Ic("0x16"))[Ic("0x34")]=null}}async function Oc(e,t,n){const o=function(e){const t={};for(const n of e[Ic("0x35")][Ic("0x1e")]())Lc[Ic("0x15")](n)||(t[n]=e[Ic("0x35")][Ic("0x1b")](n));const n=e.constructor[Ic("0x29")]||[],o=t[Ic("0x2e")]||[];delete t[Ic("0x2e")];const s=n[Ic("0x21")](t.plugins)[Ic("0x21")](o)[Ic("0x33")]((e=>"string"==typeof e?n.find((t=>t.pluginName==e)):e)),r=Array.from(new Set(s)),i=new Map;return t[Ic("0x2a")]=r[Ic("0x2f")]((e=>Fc(e,i))),t[Ic("0x2a")].push(Mc),t.plugins[Ic("0x12")](Wa),t}(e),s=document[Ic("0x2c")](),r=e[Ic("0x35")][Ic("0x1b")]("trackChangesData").editorCreator,i=await r(o,(()=>function(e){const t=document[Ic("0x32")](Ic("0x25"));return e[Ic("0x1f")](t),t}(s)));!function(e,t){const n=e.model[Ic("0x27")][Ic("0x24")]()[Ic("0x9")](((t,n)=>(t[n]=e[Ic("0x2b")][Ic("0x1b")]({rootName:n}),t)),{}),o=e[Ic("0x2a")][Ic("0x1b")](Ic("0x1d"))[Ic("0x1")][Ic("0x33")]((e=>({id:e.id,name:e[Ic("0x2d")]}))),s=e[Ic("0x2a")][Ic("0x1b")](Ic("0x16")).getSuggestions({skipNotAttached:!0,toJSON:!0}),r=t.plugins[Ic("0x1b")](Ic("0x1d")),i=t[Ic("0x2a")][Ic("0x1b")](Ic("0x16"));for(const e of o)r.getUser(e.id)||r[Ic("0x6")](e);r.me||r[Ic("0x28")]();for(const e of s)i[Ic("0x22")](e);t.data.set(n)}(e,i),i[Ic("0x1a")](Ic(t?"0x17":"0x8"));const x=i[Ic("0x2b")][Ic("0x1b")](n);return await i[Ic("0xb")](),x}function Fc(e,t){const n="function"==typeof e?e.pluginName||e.name:e;if(t.has(n))return t[Ic("0x1b")](n);if(t.set(n,!0),n&&Nc[Ic("0x15")](n))return t[Ic("0x20")](n,!1),!1;if(!e[Ic("0x1c")])return t[Ic("0x20")](n,!0),!0;const o=e[Ic("0x1c")].every((e=>Fc(e,t)));return t.set(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 s=e[o];if(void 0!==s)return s.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.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:()=>xc,TrackChanges:()=>Ac,TrackChangesData:()=>wc,TrackChangesEditing:()=>Wx});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),a=n(995);const x=["clearForceDisabled","_enabledCommands","editor","_enableCommands","affectsData","has","commands","_disableUnsupportedCommands","execute","value","TrackChangesCommand","_isEnabledBasedOnSelection","refresh"];var c,l;c=x,l=328,function(t){for(;--t;)c.push(c.shift())}(++l);const d=function(t,e){return x[t-=0]};class u extends t.Command{constructor(t,e){super(t),this[d("0xb")]=e,this[d("0x6")]=!1,this[d("0x9")](),this[d("0x8")]=!1}[d("0x9")](){this.isEnabled=!0}[d("0x5")](){this[d("0x6")]=!this[d("0x6")],this.value?this[d("0x4")]():this._enableCommands()}[d("0x4")](){for(const t of this[d("0xc")][d("0x3")][d("0x3")]())t[d("0x1")]&&!this[d("0xb")][d("0x2")](t)&&t.forceDisabled(d("0x7"))}[d("0x0")](){for(const t of this.editor[d("0x3")][d("0x3")]())t[d("0x1")]&&!this._enabledCommands[d("0x2")](t)&&t[d("0xa")]("TrackChangesCommand")}}const g=["refresh","plugins","_suggestions","acceptSuggestion","execute","isEnabled","get","_isEnabledBasedOnSelection","editor","track-changes-accept-suggestion-not-found"];var m,f;m=g,f=134,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("0x8")]=e,this[h("0x6")](),this[h("0x3")]=!1}[h("0x6")](){this[h("0x1")]=!0}[h("0x0")](t){const n=this._suggestions[h("0x2")](t);if(!n)throw new e.CKEditorError(h("0x5"),this);const o=n.getRanges();this[h("0x4")].model.canEditAt(o)&&this[h("0x4")][h("0x7")][h("0x2")]("TrackChangesEditing")[h("0x9")](n)}}const b=["model","get","getRanges","canEditAt","editor","_isEnabledBasedOnSelection","execute","_suggestions","plugins","refresh","discardSuggestion","isEnabled","TrackChangesEditing"];var E,_;E=b,_=141,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("0x9")]=e,this[T("0xb")](),this[T("0x7")]=!1}[T("0xb")](){this[T("0x0")]=!0}[T("0x8")](t){const n=this._suggestions[T("0x3")](t);if(!n)throw new e.CKEditorError("track-changes-discard-suggestion-not-found",this);const o=n[T("0x4")]();this[T("0x6")][T("0x2")][T("0x5")](o)&&this[T("0x6")][T("0xa")][T("0x3")](T("0x1"))[T("0xc")](n)}}const y=["isIntersecting","color","createPositionAfter","isCollapsed","type","add","createRange","sort","push","map","isInContent","join","getMarkers","end","createPositionBefore","createPositionAt","schema","deletion","start","value","isTouching","isArray","isMultiRange","replace","getRange","getRanges"," [color ","next","length"];var k,A;k=y,A=190,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x14")](((t,e)=>v("0x1")==t[v("0x11")]&&v("0x1")!=e[v("0x11")]?-1:v("0x1")!=t[v("0x11")]&&"deletion"==e[v("0x11")]?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0x0")];for(;o<t.length;){const i=t[o],a=t[o+1];n||(n=e[v("0x1b")](i)),I(e,i,a)||(s[v("0x15")](e[v("0x13")](n,r.isObject(i)?e[v("0xf")](i):e[v("0x1c")](i,v("0x1a")))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0xf")](e),s=t[v("0x1b")](n);return o[v("0x4")](s)}function L(t,e,n){for(;n[v("0xc")];){const o=n.splice(0,100);t.change((()=>{for(const t of o)t.isInContent&&e.execute(t.id)}))}}const N=["from","_command","editor","model","canEditAt","values","execute","isInContent","isEnabled","_isEnabledBasedOnSelection","_suggestions"];var w,M;w=N,M=130,function(t){for(;--t;)w.push(w.shift())}(++M);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x3")]=e,this[O("0x1")]=n,this.refresh(),this[O("0x0")]=!1}refresh(){const t=Array[O("0x2")](this[O("0x1")][O("0x7")]()).some((t=>t[O("0x9")]));this[O("0xa")]=this[O("0x3")][O("0xa")]&&t}[O("0x8")](){const t=R(Array[O("0x2")](this[O("0x1")][O("0x7")]()));for(const e of t){const t=e.getRanges();if(!this[O("0x4")][O("0x5")][O("0x6")](t))return}L(this[O("0x4")][O("0x5")],this._command,t)}}const P=["_command","isEnabled","editor","model","_isEnabledBasedOnSelection","refresh","selection","execute","_suggestions","getRanges","from","_selectedSuggestions","values","document","size","canEditAt"];var D,B;D=P,B=270,function(t){for(;--t;)D.push(D.shift())}(++B);const j=function(t,e){return P[t-=0]};class U extends t.Command{constructor(t,e,n){super(t),this[j("0x2")]=e,this[j("0xa")]=n,this[j("0xd")]=new Set,this[j("0x7")](),this[j("0x6")]=!1}refresh(){const t=this[j("0x4")][j("0x5")][j("0xf")][j("0x8")],e=Array[j("0xc")](this._suggestions[j("0xe")]());this[j("0xd")]=function(t,e){const n=Array.from(t[v("0x9")]()),o=new Set;for(const s of e)if(s[v("0x17")])for(const e of n)for(const n of s[v("0x19")]()){const r=n[v("0x8")]();(e[v("0xd")](r)||t[v("0x10")]&&!s[v("0x6")]&&s[v("0xb")]&&r[v("0x1a")].isTouching(e[v("0x2")]))&&o[v("0x12")](s)}return o}(t,e),this[j("0x3")]=this[j("0x2")].isEnabled&&!!this[j("0xd")][j("0x0")]}[j("0x9")](){const t=R(Array[j("0xc")](this[j("0xd")]));for(const e of t){const t=e[j("0xb")]();if(!this[j("0x4")][j("0x5")][j("0x1")](t))return}L(this.editor[j("0x5")],this._command,t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const z=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var W=Array.prototype.splice;const V=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():W.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=z(e,t);return n<0?void 0:e[n][1]};const q=function(t){return z(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=z(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=V,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const J=$;const Q=function(){this.__data__=new J,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 st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,at=rt.toString,xt=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,xt),n=t[xt];try{t[xt]=void 0;var o=!0}catch(t){}var s=at.call(t);return o&&(e?t[xt]=n:delete t[xt]),s};var lt=Object.prototype.toString;const dt=function(t){return lt.call(t)};var ut=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ut&&ut in Object(t)?ct(t):dt(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 St=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const It=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=It(t,e);return St(n)?n:void 0};const Nt=Lt(ot,"Map");const wt=Lt(Object,"create");const Mt=function(){this.__data__=wt?wt(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 Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(wt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return wt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=wt&&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=Mt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Wt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=Wt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Wt(this,t).get(t)};const qt=function(t){return Wt(this,t).has(t)};const Xt=function(t,e){var n=Wt(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=Vt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;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 se=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 re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var a=e[r],x=o?o(n[a],t[a],a,n,t):void 0;void 0===x&&(x=t[a]),s?ne(n,a,x):se(n,a,x)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const ae=function(t){return null!=t&&"object"==typeof t};const xe=function(t){return ae(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,de=ce.propertyIsEnumerable;const ue=xe(function(){return arguments}())?xe:function(t){return ae(t)&&le.call(t,"callee")&&!de.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 ae(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 Se=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Ie=Se&&Se.isTypedArray;const Le=Ie?ke(Ie):ye;var Ne=Object.prototype.hasOwnProperty;const we=function(t,e){var n=ge(t),o=!n&&ue(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,a=i?ie(t.length,String):[],x=a.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,x))||a.push(c);return a};var Me=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Me)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.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)?we(t):Be(t)};const Ge=function(t,e){return t&&re(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 ze=Object.prototype.hasOwnProperty;const We=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?we(t,!0):We(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Je=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(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,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};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 sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const an=Fe(Object.getPrototypeOf,Object);const xn=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=an(t);return e}:tn;const cn=function(t,e){return re(t,xn(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const dn=function(t){return ln(t,Ue,on)};const un=function(t){return ln(t,Ve,xn)};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(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=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 Sn=Rn;var In=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&In.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const wn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const Mn=function(t,e){var n=e?wn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?wn(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 wn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return Mn(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 Fn(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 zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(an(t))};const Wn=function(t){return ae(t)&&"[object Map]"==Sn(t)};var Vn=Se&&Se.isMap;const Kn=Vn?ke(Vn):Wn;const qn=function(t){return ae(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?ke(Xn):qn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=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[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var a,x=1&n,c=2&n,l=4&n;if(o&&(a=r?o(e,s,r,i):o(e)),void 0!==a)return a;if(!mt(e))return e;var d=ge(e);if(d){if(a=Ln(e),!x)return Ze(e,a)}else{var u=Sn(e),g=u==Qn||"[object GeneratorFunction]"==u;if(be(e))return Qe(e,x);if(u==Zn||u==Jn||g&&!r){if(a=c||g?{}:zn(e),!x)return c?cn(e,Ke(a,e)):sn(e,Ge(a,e))}else{if(!Yn[u])return r?e:{};a=Un(e,u,x)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,a),$n(e)?e.forEach((function(s){a.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){a.set(r,t(s,n,o,r,e,i))}));var f=d?void 0:(l?c?un:dn:c?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(a,r,t(s,n,o,r,e,i))})),a};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||ae(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.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,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const ao=io;var xo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=ao(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(xo,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.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:ro(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 s=-1,r=(e=po(e,t)).length,i=r-1,a=t;null!=a&&++s<r;){var x=bo(e[s]),c=n;if("__proto__"===x||"constructor"===x||"prototype"===x)return t;if(s!=i){var l=a[x];void 0===(c=o?o(l,x,a):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(a,x,c),a=a[x]}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 Jt;++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,s,r){var i=1&n,a=t.length,x=e.length;if(a!=x&&!(i&&x>a))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var d=-1,u=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++d<a;){var m=t[d],f=e[d];if(o)var h=i?o(f,m,d,e,t,r):o(m,f,d,t,e,r);if(void 0!==h){if(h)continue;u=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){u=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){u=!1;break}}return r.delete(t),r.delete(e),u};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const wo=function(t,e,n,o,s,r,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||!r(new Nn(t),new Nn(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 a=So;case"[object Set]":var x=1&o;if(a||(a=Io),t.size!=e.size&&!x)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(a(t),a(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var Mo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,a=dn(t),x=a.length;if(x!=dn(e).length&&!i)return!1;for(var c=x;c--;){var l=a[c];if(!(i?l in e:Mo.call(e,l)))return!1}var d=r.get(t),u=r.get(e);if(d&&u)return d==e&&u==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<x;){var f=t[l=a[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===p?f===h||s(f,h,n,o,r):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 r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),a=ge(e),x=i?Po:Sn(t),c=a?Po:Sn(e),l=(x=x==Fo?Do:x)==Do,d=(c=c==Fo?Do:c)==Do,u=x==c;if(u&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(u&&!l)return r||(r=new Yt),i||Le(t)?Ro(t,e,n,o,s,r):wo(t,e,x,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=d&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!u&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!ae(e)&&!ae(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};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 zo=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 Wo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Vo=function(t,e){return e.length<2?t:zo(t,Wo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Vo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["creator","authoredAt","getItems","end","head","next","_onAccept","getMarkers","_onAttributesChange","decorate","size","from","commentThread","_model","getRanges","removeMarkers","nodeAfter","addRange","start","addMarkerName","set","reduce","isIntersecting","subType","markers","length","hasComments","removeMarker","@external","onAccept","getMultiRangeId","onDiscard","isExternal","change","createdAt","attributes","setAttribute","getMarkerNames","map","getRange","getAllAdjacentSuggestions","add","type","isMultiRange","author","_saved","previous","addMarker","delete","getFirstMarker","nodeBefore","suggestion:","clear","push","onAttributesChange","_markerNames","data"];var $o,Jo;$o=Xo,Jo=151,function(t){for(;--t;)$o.push($o.shift())}(++Jo);const Qo=function(t,e){return Xo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this.id=e.id,this[Qo("0x5")]=e[Qo("0x5")],this[Qo("0x2b")]=e[Qo("0x2b")]||null,this[Qo("0x7")]=e[Qo("0x7")],this[Qo("0x14")]=e[Qo("0x14")]||e[Qo("0x7")],this[Qo("0x34")]=Boolean(e[Qo("0x37")]&&e[Qo("0x37")][Qo("0x30")]),this.data=null,this[Qo("0x21")]=t,this[Qo("0x1a")]=e[Qo("0x31")],this._onDiscard=e[Qo("0x33")],this[Qo("0x1c")]=e[Qo("0x11")],this._markerNames=new Set,this[Qo("0x36")]=null,this.set(Qo("0x15"),null),this[Qo("0x28")](Qo("0x37"),e[Qo("0x37")]||{}),this.set("previous",null),this[Qo("0x28")](Qo("0x19"),null),this.set(Qo("0x20"),null),this[Qo("0x28")](Qo("0x8"),!1),this[Qo("0x1d")]("accept"),this[Qo("0x1d")]("discard")}get[Qo("0x18")](){let t=this;for(;t[Qo("0x9")];)t=t[Qo("0x9")];return t}get[Qo("0x2e")](){return!!this.commentThread&&this[Qo("0x20")][Qo("0x2d")]>0}get[Qo("0x6")](){return 0!=this._markerNames[Qo("0x1e")]&&6==Array[Qo("0x1f")](this[Qo("0x12")])[0].split(":").length}get isInContent(){return null!==this[Qo("0xc")]()}[Qo("0x27")](t){this[Qo("0x12")][Qo("0x4")](t)}[Qo("0x0")](){return Array[Qo("0x1f")](this[Qo("0x12")])}[Qo("0x1b")](){return this.getMarkerNames()[Qo("0x1")]((t=>this[Qo("0x21")][Qo("0x2c")].get(t))).filter((t=>t))}[Qo("0xc")](){return this[Qo("0x1b")]()[0]||null}removeMarkers(){this[Qo("0x21")][Qo("0x35")]((t=>{for(const e of this[Qo("0x1b")]())t[Qo("0x2f")](e)})),this[Qo("0x12")][Qo("0xf")]()}[Qo("0x2f")](t){this[Qo("0x21")].change((e=>{e[Qo("0x2f")](t)})),this._markerNames[Qo("0xb")](t)}[Qo("0x25")](t){const e=Qo("0xe")+this.type+":"+this[Qo("0x2b")]+":"+this.id+":"+this[Qo("0x14")].id+":"+Zo[Qo("0x32")]();this[Qo("0x27")](e),this[Qo("0x21")][Qo("0x35")]((n=>{n[Qo("0xa")](e,{range:t,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(t){for(const e of this[Qo("0x22")]())if(e[Qo("0x2a")](t))return!0;return!1}getRanges(){return this[Qo("0x1b")]()[Qo("0x1")]((t=>t[Qo("0x2")]()))}[Qo("0x16")](){return this[Qo("0x22")]()[Qo("0x29")](((t,e)=>[...t,...e[Qo("0x16")]()]),[])}getFirstRange(){var t;return(null===(t=this[Qo("0xc")]())||void 0===t?void 0:t[Qo("0x2")]())||null}getContainedElement(){const t=this.getRanges();if(1!=t[Qo("0x2d")])return null;const e=t[0],n=e[Qo("0x26")][Qo("0x24")],o=e[Qo("0x17")][Qo("0xd")];return n instanceof i.Element?n!=o?null:n:null}accept(){this[Qo("0x1a")](this[Qo("0x22")](),this[Qo("0x13")],this[Qo("0x37")]),this[Qo("0x23")]()}discard(){this._onDiscard(this[Qo("0x22")](),this[Qo("0x13")],this[Qo("0x37")]),this[Qo("0x23")]()}[Qo("0x3")](){const t=[];let e=this[Qo("0x18")];for(;e;)t[Qo("0x10")](e),e=e[Qo("0x19")];return t}[Qo("0x38")](t,e){const n=eo(this[Qo("0x37")]);_o(n,t,e),Go(n,this[Qo("0x37")])||(this[Qo("0x37")]=n,this[Qo("0x1c")](n))}removeAttribute(t){const e=eo(this[Qo("0x37")]);qo(e,t),Go(e,this[Qo("0x37")])||(this[Qo("0x37")]=e,this[Qo("0x1c")](this[Qo("0x37")]))}toJSON(){return{id:this.id,type:this[Qo("0x2b")]?this[Qo("0x5")]+":"+this.subType:this[Qo("0x5")],authorId:this[Qo("0x14")].id,createdAt:this.createdAt,hasComments:this[Qo("0x2e")],data:this[Qo("0x13")],attributes:this[Qo("0x37")]}}static[Qo("0x32")](){return(0,e.uid)().substr(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:* 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 format to:* %0":return o("*Set format to:* %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_TABLE_OF_CONTENTS":return o({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},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);default:return e}}const ts=["addContainer","removeContainer","isEmpty","function","isInContent","*Insert:* %0","_schema","Object","_itemLabels","registerElementLabel","ELEMENT_SPACE","get","deletion","$1 $2","start","remove","softBreak","element","quantity","elementEnd","isEqual","Container","skip","insertion","indexOf","$text","removeEmptyContainer","type","text","getItemLabel","*Remove:* %0","replace","data","name","getFirstRange","pop","_locale","nextSibling","previousSibling","addEmptyContainer","_resolveDescriptionItems","$textProxy","item","add","set","elementStart","_itemLabelsCallbacks","match","label","length","end","matchingCallback","_addDescriptionItems","_customCallbacks","isObject","getWalker","push"];var es,ns;es=ts,ns=427,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class ss{constructor(t,e){this._customCallbacks=[],this._itemLabels=new Map,this[os("0x12")]=[],this[os("0x23")]=t,this[os("0x8")]=e}getDescriptions(t){const e=[];for(let n=0;n<t[os("0x15")];n++){const o=t[n];if(!o[os("0x21")])continue;let s=!1;for(const t of this[os("0x19")]){const n=t(o);if(n){os("0x38")in n&&e[os("0x1c")](n),s=!0;break}}if(!s){this._addDescriptionItems(e,o);const s=t[n+1];if(s&&!o.getFirstRange()[os("0x16")][os("0x31")](s[os("0x6")]()[os("0x2b")])){const t=e[e[os("0x15")]-1],n=os("0x34")==o[os("0x38")]?os("0xf"):os("0x2c");t&&os("0x0")==t[os("0x38")]&&(t[n]+="\n")}}}return this._resolveDescriptionItems(e)}registerDescriptionCallback(t){this[os("0x19")].push(t)}[os("0x26")](t,n,o=e.priorities.normal){os("0x20")==typeof t?(0,e.insertToPriorityArray)(this[os("0x12")],{matchingCallback:t,label:n,priority:o}):this[os("0x25")][os("0x10")](t,n)}[os("0x1")](t,e=1){let n;for(const e of this[os("0x12")])if(e[os("0x17")](t)){n=e[os("0x14")];break}return n||(n=this._itemLabels[os("0x28")](t.name)),n?n(e):1!==e?e+" "+t[os("0x5")]+"s":""+t[os("0x5")]}[os("0x18")](t,e){const n=e.getFirstRange()[os("0x1b")](),o=os("0x34")==e[os("0x38")]?os("0xf"):"remove";for(const e of n){const s=e.item,r=t[t[os("0x15")]-1];if(s.is(os("0xd")))r&&r[os("0x38")][os("0x35")](os("0x32"))>-1&&t[os("0x7")](),r&&"text"==r[os("0x38")]?r[o]+=s.data:t[os("0x1c")]({type:"text",add:"add"==o?s.data:"",remove:os("0x2c")==o?s[os("0x4")]:""});else if(this[os("0x23")][os("0x1a")](s)){const i=s;if(r&&r[os("0x38")][os("0x35")](os("0x32"))>-1&&t[os("0x7")](),os("0x30")==e.type)continue;r&&r[os("0x38")]==o+os("0x24")&&r[os("0x2e")][os("0x5")]==i[os("0x5")]?r[os("0x2f")]++:t[os("0x1c")]({type:o+os("0x24"),element:i,quantity:1}),n[os("0x33")]((t=>!(os("0x30")==t[os("0x38")]&&t[os("0xe")]==s)))}else if(this[os("0x23")].checkChild(s,os("0x36"))||s.is(os("0x2e"),os("0x2d"))){const n=s;if(os("0xf")==o&&os("0x11")==e[os("0x38")]||os("0x2c")==o&&os("0x30")==e[os("0x38")])continue;if(r&&-1==r[os("0x38")][os("0x35")]("Container")){os("0x0")==r[os("0x38")]&&(r[o]+="\n");continue}let i;if(i=os("0xf")==o?n.nextSibling&&!this._schema[os("0x1a")](n.nextSibling)?n[os("0x9")]:null:n.previousSibling&&!this[os("0x23")][os("0x1a")](n[os("0xa")])?n[os("0xa")]:null,n.isEmpty||i&&i[os("0x1f")]){const e=i&&i.isEmpty?i:n;r&&r[os("0x38")]==o+"EmptyContainer"&&r[os("0x2e")][os("0x5")]==e[os("0x5")]?r[os("0x2f")]++:t[os("0x1c")]({type:o+"EmptyContainer",element:e,quantity:1})}else t[os("0x1c")]({type:o+os("0x32"),element:n})}}}[os("0xc")](t){const e=this[os("0x8")],n=[];for(const o of t){switch(o[os("0x38")]){case os("0x0"):if(o.add=o[os("0xf")][os("0x3")](/(\S)\u000A+(\S)/g,os("0x2a"))[os("0x3")](/\u000A/g,""),o[os("0x2c")]=o[os("0x2c")][os("0x3")](/(\S)\u000A+(\S)/g,os("0x2a")).replace(/\u000A/g,""),""!=o[os("0xf")]&&""!=o.remove){n[os("0x1c")]({type:os("0x3"),content:Yo(e,"REPLACE_TEXT",['"'+o[os("0x2c")]+'"','"'+o.add+'"'])});continue}if(null!=o[os("0xf")][os("0x13")](/^ +$/)){n.push({type:os("0x34"),content:Yo(e,os("0x22"),Yo(e,os("0x27"),o[os("0xf")][os("0x15")]))});continue}if(null!=o.remove[os("0x13")](/^ +$/)){n.push({type:os("0x29"),content:Yo(e,"*Remove:* %0",Yo(e,os("0x27"),o[os("0x2c")][os("0x15")]))});continue}if(""!=o[os("0xf")]){n[os("0x1c")]({type:"insertion",content:Yo(e,os("0x22"),'"'+o.add+'"')});continue}n[os("0x1c")]({type:os("0x29"),content:Yo(e,os("0x2"),'"'+o[os("0x2c")]+'"')});continue;case os("0xb"):case"addObject":n[os("0x1c")]({type:"insertion",content:Yo(e,"*Insert:* %0",this.getItemLabel(o[os("0x2e")],o[os("0x2f")]))});continue;case os("0x37"):case"removeObject":n[os("0x1c")]({type:os("0x29"),content:Yo(e,os("0x2"),this[os("0x1")](o[os("0x2e")],o[os("0x2f")]))});continue;case os("0x1d"):n[os("0x1c")]({type:"insertion",content:Yo(e,"*Split:* %0",this[os("0x1")](o.element,o[os("0x2f")]))});continue;case os("0x1e"):n[os("0x1c")]({type:os("0x29"),content:Yo(e,"*Merge:* %0",this.getItemLabel(o[os("0x2e")],o[os("0x2f")]))});continue}n[os("0x1c")](o)}return n}}const rs=["center","from","ltr","TrackChangesEditing","left","get","justify","commandParams","locale","model","selection","editor","markBlockFormat","alignment","FORMAT_ALIGN_TO_RIGHT","plugins","FORMAT_ALIGN_TO_CENTER","value","right","*Format:* %0","change","afterInit","commandName","_descriptionFactory","enableCommand","has","AlignmentEditing","filter","getSelectedBlocks","schema","registerDescriptionCallback","getAttribute"];var is,as;is=rs,as=191,function(t){for(;--t;)is.push(is.shift())}(++as);const xs=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[xs("0x16")](){const t=this[xs("0xc")],e=t[xs("0x9")];if(!t[xs("0x10")][xs("0x1a")](xs("0x1b")))return;const n=t[xs("0x10")][xs("0x6")](xs("0x4"));n[xs("0x19")](xs("0xe"),((e,o={})=>{let s=o[xs("0x12")];o.value||(s=xs("0x3")===t[xs("0x9")].contentLanguageDirection?xs("0x5"):xs("0x13"));const r=Array[xs("0x2")](this[xs("0xc")][xs("0xa")].document[xs("0xb")][xs("0x1d")]())[xs("0x1c")]((t=>function(t,e,n){const o=t[xs("0x0")](xs("0xe"))||null;return e.checkAttribute(t,xs("0xe"))&&n!=o}(t,this[xs("0xc")][xs("0xa")][xs("0x1e")],s)));t[xs("0xa")][xs("0x15")]((()=>{for(const t of r)n[xs("0xd")](t,{commandName:"alignment",commandParams:[{value:s}]})}))})),n[xs("0x18")][xs("0x1f")]((t=>{const{data:n}=t;if(n&&xs("0xe")==n[xs("0x17")]){const t=n[xs("0x8")][0][xs("0x12")];return{type:"format",content:Yo(e,xs("0x14"),function(t){switch(t){case"left":return Yo(e,"FORMAT_ALIGN_TO_LEFT");case xs("0x13"):return Yo(e,xs("0xf"));case xs("0x1"):return Yo(e,xs("0x11"));case xs("0x7"):return Yo(e,"FORMAT_JUSTIFY_TEXT")}}(t))}}}))}}const ls=["isLimit","previousPosition","listIndent","parent","push","isContent","consumable","markerRange","nextSibling","bindElementToMarker","start","model","getCustomProperty","addHighlight","type","createRangeOn","isAtEnd","mapper","get","plugins","toViewElement","isBlock","addClass","markerName","writer","span","getWalker","createUIElement","listItem","ck-suggestion-marker--active","name","elementEnd","TrackChangesEditing"];var ds,us;ds=ls,us=378,function(t){for(;--t;)ds.push(ds.shift())}(++us);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e.getItems())s.hasAttribute(t)&&o[gs("0x16")](n[gs("0x0")](s));return o}function fs(t){const e=[];if(t.is("element",gs("0xd"))){let n=t.nextSibling;for(;n&&n.is("element",gs("0xd"))&&n.getAttribute(gs("0x14"))>0;)e[gs("0x16")](n),n=n[gs("0x1a")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t[gs("0x4")][gs("0x3")](gs("0x11"));return(s,r,i)=>{if(!i[gs("0x18")].test(r[gs("0x19")],s[gs("0xf")]))return;const a=r[gs("0x19")][gs("0xb")](),x=r[gs("0x19")][gs("0x1c")],c=t[gs("0x1d")].schema;let l=null,d=null,u=!1,g=!1;for(const t of a){const e=t.item;u=u||c[gs("0x17")](e);const n=i[gs("0x2")][gs("0x5")](e);if(n&&n[gs("0x1e")](gs("0x1f")))return;gs("0x10")==t[gs("0x20")]&&c[gs("0x6")](e)&&!c[gs("0x12")](e)&&(e[gs("0x1a")]||x[gs("0x1")]?l&&l[gs("0x15")]==e||(l=e,m(t.previousPosition),g=!0):d=d||t[gs("0x13")])}function m(t){const s=i.writer[gs("0xc")](gs("0xa"),{class:"ck-suggestion-marker-"+e}),a=i.mapper.toViewPosition(t);n&&o.activeMarkers.includes(r[gs("0x8")])&&i[gs("0x9")][gs("0x7")](gs("0xe"),s),i[gs("0x9")].insert(a,s),i.mapper[gs("0x1b")](s,r[gs("0x8")])}u||g||!d||m(d)}}const ps=["plugins","slice","forceValue","markInlineFormat","bold","FORMAT_SUBSCRIPT","toLowerCase","subscript","get","from","commands","getRanges","isCollapsed","*Format:* %0","UnderlineEditing","superscript","ItalicEditing","format","strikethrough","italic","FORMAT_STRIKETHROUGH","underline","locale","FORMAT_CODE","commandName","document","code","FORMAT_SUPERSCRIPT","selection","SuperscriptEditing"];var bs,Es;bs=ps,Es=345,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=["BoldEditing",_s("0x1"),_s("0x1d"),"CodeEditing","StrikethroughEditing","SubscriptEditing",_s("0xe")];class Cs extends t.Plugin{afterInit(){const t=this.editor,e=t.model,n=t[_s("0xf")][_s("0x17")]("TrackChangesEditing"),o=t[_s("0x7")];for(const o of Ts){if(!t.plugins.has(o))continue;const s=o[_s("0x10")](0,-7)[_s("0x15")](),r=t[_s("0x19")][_s("0x17")](s);n.enableCommand(s,((t,o={})=>{const i=e[_s("0xa")][_s("0xd")];if(i[_s("0x1b")])return void t(o);const a=void 0!==o[_s("0x11")]?o[_s("0x11")]:!r.value;e.change((()=>{const t=Array[_s("0x18")](i[_s("0x1a")]());for(const o of t){const t=a?[o]:ms(s,o,e);for(const e of t)n[_s("0x12")](e,{commandName:s,commandParams:[{forceValue:a}]})}}))}))}function s(t,e){n._descriptionFactory.registerDescriptionCallback((n=>{const{data:s}=n;if(s&&s[_s("0x9")]===t)return s.commandParams[0][_s("0x11")]?{type:_s("0x2"),content:Yo(o,_s("0x1c"),e)}:{type:_s("0x2"),content:Yo(o,"*Remove format:* %0",e)}}))}s(_s("0x13"),Yo(o,"FORMAT_BOLD")),s(_s("0x4"),Yo(o,"FORMAT_ITALIC")),s(_s("0x6"),Yo(o,"FORMAT_UNDERLINE")),s(_s("0xb"),Yo(o,_s("0x8"))),s(_s("0x3"),Yo(o,_s("0x5"))),s(_s("0x16"),Yo(o,_s("0x14"))),s(_s("0x0"),Yo(o,_s("0xc")))}}const ys=["markBlockFormat","value","getSelectedBlocks","model","afterInit","plugins","format","locale","*Remove format:* %0","editor","registerDescriptionCallback","get","parent","checkChild","selection","TrackChangesEditing","has","ELEMENT_BLOCK_QUOTE","_descriptionFactory","enableCommand","commandName","blockQuote","*Format:* %0","BlockQuoteEditing","forceValue","from","commands","filter","name"];var ks,As;ks=ys,As=107,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0xd")](){const t=this[vs("0x12")],e=t[vs("0x10")];if(!t.plugins[vs("0x19")](vs("0x3")))return;const n=t[vs("0xe")][vs("0x14")](vs("0x18")),o=this[vs("0x12")][vs("0x6")].get(vs("0x1"));n[vs("0x1c")](vs("0x1"),((e,s={})=>{const r=this[vs("0x12")][vs("0xc")].document[vs("0x17")],i=s&&void 0!==s.forceValue?s[vs("0x4")]:!o[vs("0xa")];let a=[];if(i){const e=Array[vs("0x5")](r[vs("0xb")]())[vs("0x7")]((t=>Ss(t)||function(t,e){const n=e[vs("0x16")](t.parent,vs("0x1")),o=e[vs("0x16")](["$root",vs("0x1")],t);return n&&o}(t,this.editor.model.schema)));a=S(e,t[vs("0xc")])}else{const e=Array[vs("0x5")](r[vs("0xb")]()).filter((t=>Ss(t)));a=S(e,t[vs("0xc")])}t.model.change((()=>{for(const t of a)n[vs("0x9")](t,{commandName:vs("0x1"),commandParams:[{forceValue:i}]})}))})),n[vs("0x1b")][vs("0x13")]((t=>{const{data:n}=t;if(n&&vs("0x1")==n[vs("0x0")]){const t=Yo(e,vs("0x1a"));return n.commandParams[0][vs("0x4")]?{type:"format",content:Yo(e,vs("0x2"),t)}:{type:vs("0xf"),content:Yo(e,vs("0x11"),t)}}}))}}function Ss(t){return"blockQuote"==t[vs("0x15")][vs("0x8")]}const Is=["editor","get","plugins","commands","afterInit","ckbox"];var Ls,Ns;Ls=Is,Ns=421,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const ws=function(t,e){return Is[t-=0]};class Ms extends t.Plugin{[ws("0x3")](){const t=this[ws("0x5")];t[ws("0x2")][ws("0x0")](ws("0x4"))&&t[ws("0x1")][ws("0x0")]("TrackChangesEditing").enableCommand(ws("0x4"))}}const Os=["commandName","plugins","editor","filter","languages","*Remove format:* %0","markBlockFormat","_descriptionFactory","format","enableCommand","change","value","find","commandParams","CodeBlock","indentCodeBlock","afterInit","registerDescriptionCallback","codeBlock","TrackChangesEditing","language","checkChild","schema","model","commands","formatBlock","config","selection","forceValue","isLimit","ELEMENT_CODE_BLOCK","registerElementLabel","name","document","getSelectedBlocks","outdentCodeBlock","from","parent","*Format:* %0"];var Fs,Ps;Fs=Os,Ps=494,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x1d")](){const t=this[Ds("0xf")];if(!t[Ds("0xe")].has(Ds("0x1b")))return;const e=t[Ds("0xe")].get(Ds("0x20")),n=t.locale,o=t[Ds("0x0")].get(Ds("0x1f"))[Ds("0x11")],s=t[Ds("0x25")].get("codeBlock");e[Ds("0x16")](Ds("0x1c")),e.enableCommand(Ds("0x9")),e[Ds("0x16")]("codeBlock",((n,r={})=>{const i=t.model,a=t[Ds("0x24")][Ds("0x7")][Ds("0x1")],x=r&&void 0!==r[Ds("0x2")]?r[Ds("0x2")]:!s[Ds("0x18")];let c;r[Ds("0x21")]||(r[Ds("0x21")]=o[0][Ds("0x21")]),c=x?Array[Ds("0xa")](a[Ds("0x8")]())[Ds("0x10")]((t=>{return js(t)||(e=t,n=i[Ds("0x23")],!e.is("rootElement")&&!n[Ds("0x3")](e)&&n[Ds("0x22")](e[Ds("0xb")],Ds("0x1f")));var e,n})):Array[Ds("0xa")](a[Ds("0x8")]())[Ds("0x10")]((t=>js(t)));const l=S(c,i);i[Ds("0x17")]((()=>{for(const t of l)e[Ds("0x13")](t,{commandName:Ds("0x1f"),commandParams:[{...r,forceValue:x}],formatGroupId:"blockName"})}))})),e[Ds("0x14")][Ds("0x5")](Ds("0x1f"),(t=>Yo(n,Ds("0x4"),t))),e[Ds("0x14")][Ds("0x1e")]((t=>{const e=n.t,{type:s,data:r}=t;if(Ds("0x26")==s&&r&&"codeBlock"==r[Ds("0xd")]){const t=r[Ds("0x1a")][0][Ds("0x21")],s=e(o[Ds("0x19")]((e=>e[Ds("0x21")]===t)).label);return r.commandParams[0][Ds("0x2")]?{type:"format",content:Yo(n,Ds("0xc"),Yo(n,Ds("0x4"),1)+" ("+s+")")}:{type:Ds("0x15"),content:Yo(n,Ds("0x12"),Yo(n,Ds("0x4"),1))}}}))}}function js(t){return"codeBlock"==t[Ds("0x6")]}const Us=["TrackChangesEditing","get","addCommentThread","plugins","enableCommand","afterInit","editor"];var Gs,Hs;Gs=Us,Hs=142,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const zs=function(t,e){return Us[t-=0]};class Ws extends t.Plugin{[zs("0x3")](){const t=this[zs("0x4")];t[zs("0x1")].has("CommentsEditing")&&t[zs("0x1")][zs("0x6")](zs("0x5"))[zs("0x2")](zs("0x0"))}}var Vs=n(181);const Ks=["lock","end","writer","mapper","selection","document","unbindElementFromMarkerName","get","requires","$graveyard","buffer","remove","isCollapsed","detach","createRange","editing","markerName","bind","downcastDispatcher","high","TrackChangesEditing","forward","root","unit","getFirstRange","uiElement","model","enqueueChange","delete","init","deleteForward","unlock","showSuggestionHighlights","start","enableCommand","rootName","editor","merge","addMarker:suggestion:deletion","setSelection"];var qs,Xs;qs=Ks,Xs=374,function(t){for(;--t;)qs.push(qs.shift())}(++Xs);const $s=function(t,e){return Ks[t-=0]};class Js extends t.Plugin{static get[$s("0x22")](){return[Vs.Delete]}[$s("0xf")](){const t=this[$s("0x16")],e=t.plugins[$s("0x21")]($s("0x6"));e[$s("0x14")]($s("0xe"));const n=t.commands[$s("0x21")]($s("0x10"));e.enableCommand("deleteForward",((e,o={})=>{const s=t[$s("0xc")].createSelection(t[$s("0xc")][$s("0x1f")][$s("0x1e")]);s[$s("0x26")]&&t[$s("0xc")].modifySelection(s,{direction:$s("0x7"),unit:o[$s("0x9")]});const r=s[$s("0xa")](),a=i.LiveRange.fromRange(r);let x;e(o),x=$s("0x23")==a[$s("0x8")][$s("0x15")]?t[$s("0xc")].createRange(r.start):t[$s("0xc")][$s("0x0")](a[$s("0x13")],a.end),a[$s("0x27")](),t[$s("0xc")][$s("0xd")](n[$s("0x24")].batch,(t=>{n[$s("0x24")][$s("0x1a")](),t[$s("0x19")](t[$s("0x0")](x[$s("0x1b")])),n[$s("0x24")][$s("0x11")]()}))})),t[$s("0x1")][$s("0x4")].on("addMarker:suggestion:deletion",hs(t,"merge"),{priority:"high"}),t.data[$s("0x4")].on($s("0x18"),((e,n,o)=>{o.options[$s("0x12")]&&hs(t,$s("0x17"),{showActiveMarker:!1})[$s("0x3")](this)(e,n,o)}),{priority:$s("0x5")}),t.editing[$s("0x4")].on("removeMarker:suggestion:deletion",((t,e,n)=>{const o=n[$s("0x1d")].markerNameToElements(e.markerName);if(o)for(const t of o)t.is($s("0xb"))&&(n[$s("0x1d")][$s("0x20")](t,e[$s("0x2")]),n[$s("0x1c")][$s("0x25")](t))}),{priority:$s("0x5")})}}const Qs=["splitListItemBefore","editor","ELEMENT_NUMBERED_LIST","listType","model","get","createRange","registerElementLabel","ELEMENT_","fromRange","outdentList","mergeListItemBackward","*Indent:* %0","*Merge:* %0","DocumentListEditing","DocumentListUtils","createPositionAt","registerDescriptionCallback","listItemId","map","findIndex","commandName","push","has","plugins","after","forceValue","schema","hasAttribute","*Format:* insert into %0","commands","afterInit","getAttribute","documentList","*Outdent:* %0","refresh","locale","_suggestionFactory","setSelection","document","getSelectedBlocks","_LIST","indentList","mergeListItemForward","value","toUpperCase","nodeAfter","start","splitListItemAfter","selection","before","markBlockFormat","*Format:* remove from %0","commandParams","ELEMENT_LIST_ITEM","parent","ELEMENT_BULLETED_LIST","isObject","listIndent","deletion","enableCommand","slice","add","expandListBlocksToCompleteList","change","_descriptionFactory","numberedList","formatBlock","TrackChangesEditing","nextSibling","end","registerCustomCallback","from","format","getFirstRange","getRanges","*Change to:* %0","bulletedList","markMultiRangeBlockFormat"];var Zs,Ys;Zs=Qs,Ys=477,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0x1c")](){const t=this[tr("0x4d")];if(!t[tr("0x15")][tr("0x14")](tr("0xb")))return;const e=t[tr("0x21")],n=t.plugins[tr("0x2")](tr("0x41")),o=t.plugins[tr("0x2")](tr("0xc"));function s(e){return()=>{const s=t[tr("0x1b")][tr("0x2")](e);let r=Array[tr("0x45")](t[tr("0x1")][tr("0x24")][tr("0x2e")][tr("0x25")]());if(x(e)){r=o[tr("0x3c")](r);const t=[];for(const e of r)o.isFirstBlockOfListItem(e)&&t.push(e);r=t}t[tr("0x1")][tr("0x3d")]((()=>{n[tr("0x4b")](r,{commandName:e,commandParams:[{forceValue:!s[tr("0x29")]}],formatGroupId:"listType"},[],"documentList")}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0x45")](t);const n=e[tr("0x11")]((t=>!t[tr("0x19")](tr("0xf"))));return n>-1&&(e=e[tr("0x3a")](0,n)),e}(t.model.document.selection[tr("0x25")]()),s=o[o.length-1],r=t[tr("0x1")][tr("0x18")].isObject(s)?tr("0x16"):tr("0x43"),i=t[tr("0x1")][tr("0x3")](t.model[tr("0xd")](o[0],"before"),t[tr("0x1")].createPositionAt(s,r));t[tr("0x1")].change((()=>{n[tr("0x30")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x0")},function(t){const e=new Set;for(const n of t){let t=n[tr("0x42")];for(;t&&t[tr("0x1d")](tr("0x37"))>n[tr("0x1d")](tr("0x37"));)e[tr("0x3b")](t),t=t[tr("0x42")]}return Array[tr("0x45")](e)}(o))}))}}function a(e){return()=>{const o=t[tr("0x1")][tr("0x24")].selection[tr("0x25")]().next()[tr("0x29")],s=t.model[tr("0xd")](o,tr("0x2f")),r=t[tr("0x1")][tr("0xd")](o,0),i=t.model[tr("0x3")](s,r);t[tr("0x1")][tr("0x3d")]((()=>{n.markBlockFormat(i,{commandName:e,commandParams:[],formatGroupId:"listType"})}))}}function x(e){const n=t[tr("0x1b")][tr("0x2")]("bulletedList")[tr("0x29")],o=t[tr("0x1b")][tr("0x2")](tr("0x3f")).value;return tr("0x3f")===e?n:o}n[tr("0x39")](tr("0x3f"),s(tr("0x3f"))),n.enableCommand(tr("0x4a"),s(tr("0x4a"))),n[tr("0x39")](tr("0x27"),r(tr("0x27"))),n.enableCommand(tr("0x7"),r(tr("0x7"))),n[tr("0x39")](tr("0x2d"),a(tr("0x2d"))),n.enableCommand(tr("0x4c"),a(tr("0x4c"))),n._descriptionFactory[tr("0x4")]((function(e){const n=!t[tr("0x1")][tr("0x18")][tr("0x36")](e),o=e.previousSibling,s=e[tr("0x42")],r=e[tr("0x1d")](tr("0xf")),i=!o||o[tr("0x1d")]("listItemId")!==r,a=!s||s.getAttribute(tr("0xf"))!==r;return n&&Boolean(r)&&i&&a}),(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n[tr("0x3e")][tr("0xe")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x12")]){case tr("0x4a"):r=n[tr("0x32")][0][tr("0x17")],i=x(n.commandName),o=tr(r?"0x1a":"0x31"),i&&(o="*Change to:* %0"),s={type:"format",content:Yo(e,o,Yo(e,tr("0x35")))};break;case tr("0x3f"):r=n.commandParams[0][tr("0x17")],i=x(n[tr("0x12")]),o=r?"*Format:* insert into %0":tr("0x31"),i&&(o=tr("0x49")),s={type:tr("0x46"),content:Yo(e,o,Yo(e,tr("0x4e")))};break;case tr("0x27"):o=tr("0x9"),s={type:tr("0x46"),content:Yo(e,o,Yo(e,tr("0x33")))};break;case"outdentList":o=function(t){const e=t[tr("0x47")]();let n=e.start[tr("0x2b")];for(;n&&e.containsItem(n);){if(n[tr("0x1d")]("listIndent")>0)return!1;n=n[tr("0x42")]}return!0}(t)?Yo(e,tr("0x31"),Yo(e,function(t){const e=t[tr("0x47")]().start.nodeAfter;return tr("0x5")+e[tr("0x1d")](tr("0x0"))[tr("0x2a")]()+tr("0x26")}(t))):Yo(e,tr("0x1f"),Yo(e,tr("0x33"))),s={type:tr("0x46"),content:o};break;case tr("0x8"):case tr("0x28"):!1===n.multipleBlocks&&(o=tr("0xa"),s={type:tr("0x38"),content:Yo(e,o,Yo(e,tr("0x33")))})}return s})),n[tr("0x22")][tr("0x44")](tr("0x40"),tr("0x1e"),"accept",(function(e,n){const o=[];for(let n of e)n[tr("0x2c")][tr("0x2b")]===n[tr("0x43")][tr("0x34")]&&(n=t.model[tr("0x3")](t[tr("0x1")].createPositionAt(n[tr("0x2c")][tr("0x2b")],0))),o[tr("0x13")](n);t[tr("0x1")][tr("0x3d")]((e=>{const s=t[tr("0x1")].document[tr("0x2e")],r=Array[tr("0x45")](s[tr("0x48")]())[tr("0x10")]((t=>i.LiveRange[tr("0x6")](t)));e[tr("0x23")](o),t[tr("0x1b")][tr("0x2")](n.commandName)[tr("0x20")](),n.commandParams[tr("0x13")]({forceDefaultExecution:!0}),t.execute(n[tr("0x12")],...n.commandParams),e[tr("0x23")](r);for(const t of r)t.detach()}))}))}}var nr=n(331);const or=["commands","parent","markInsertion","addMarker:suggestion:insertion","fire","enterBlock","plugins","end","downcastDispatcher","get","writer","showSuggestionHighlights","bind","setSelection","markerName","mapper","createRange","afterExecute","nextSibling","change","model","init","high","hasClass","selection","document","unbindElementFromMarkerName","editing","getFirstPosition","remove","TrackChangesEditing","enableCommand","markerNameToElements","removeMarker:suggestion:insertion","requires","getFirstRange"];var sr,rr;sr=or,rr=356,function(t){for(;--t;)sr.push(sr.shift())}(++rr);const ir=function(t,e){return or[t-=0]};class ar extends t.Plugin{static get[ir("0x2")](){return[nr.Enter]}[ir("0x19")](){const t=this.editor,e=t[ir("0xa")][ir("0xd")](ir("0x22")),n=t[ir("0x4")].get("enter");e[ir("0x23")]("enter",(()=>{t[ir("0x18")][ir("0x17")]((o=>{const s=t[ir("0x18")][ir("0x1d")][ir("0x1c")],r=s[ir("0x20")](),a=i.LiveRange.fromRange(s[ir("0x3")]());if(n[ir("0x9")](o)){const n=t[ir("0x18")].createPositionAt(r[ir("0x5")][ir("0x16")],0),s=o[ir("0x14")](r,n);e[ir("0x6")](s)}else o[ir("0x11")](o.createRange(a[ir("0xb")]));a.detach(),n[ir("0x8")](ir("0x15"),{writer:o})}))})),t.editing.downcastDispatcher.on("addMarker:suggestion:insertion",hs(t,"split"),{priority:ir("0x1a")}),t[ir("0x1f")][ir("0xc")].on(ir("0x1"),((t,e,n)=>{const o=n[ir("0x13")][ir("0x0")](e.markerName);if(o)for(const t of o)t[ir("0x1b")]("ck-suggestion-marker-split")&&(n[ir("0x13")][ir("0x1e")](t,e[ir("0x12")]),n[ir("0xe")][ir("0x21")](t))}),{priority:ir("0x1a")}),t.data[ir("0xc")].on(ir("0x7"),((e,n,o)=>{o.options[ir("0xf")]&&hs(t,"split",{showActiveMarker:!1})[ir("0x10")](this)(e,n,o)}),{priority:ir("0x1a")})}}const xr=["getMarkersGroup","model","get","createPositionAt","has","markers","filter","handleFindCommand","FindAndReplaceEditing","end","bind","createRange","enableCommand","string","findPrevious","editor","replace","_isInDeletionRange","getIntersection","replaceAll","item"];var cr,lr;cr=xr,lr=480,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return xr[t-=0]};class ur extends t.Plugin{afterInit(){if(!this[dr("0x12")].plugins[dr("0x7")](dr("0xb")))return;const t=this[dr("0x12")].plugins[dr("0x5")]("TrackChangesEditing");t[dr("0xf")]("find",this[dr("0xa")][dr("0xd")](this)),t[dr("0xf")]("findNext"),t[dr("0xf")](dr("0x11")),t[dr("0xf")](dr("0x13")),t.enableCommand(dr("0x1"))}[dr("0xa")](t,e,n={}){const o=this.editor.plugins[dr("0x5")]("FindAndReplaceUtils");void 0!==n&&t((t=>(dr("0x10")==typeof e?o.findByTextCallback(e,n):e)(t)[dr("0x9")]((e=>!1===this[dr("0x14")](e,t[dr("0x2")])))),n)}[dr("0x14")](t,e){const n=this[dr("0x12")][dr("0x4")][dr("0xe")](this[dr("0x12")][dr("0x4")][dr("0x6")](e,t.start),this[dr("0x12")][dr("0x4")][dr("0x6")](e,t[dr("0xc")]));for(const t of this[dr("0x12")][dr("0x4")][dr("0x8")][dr("0x3")]("suggestion:deletion"))if(null!==n[dr("0x0")](t.getRange()))return!0;return!1}}const gr=["title","locale","*Set font color:* %0","FontSizeEditing","trim","format","FontFamilyEditing","toLowerCase","afterInit","*Set font size:* %0","fontColor.colors","TrackChangesEditing","fontFamily","*Set font family:* %0","getRanges","*Reset font family*","from","fontBackgroundColor","FontBackgroundColorEditing","*Reset font background color*","_descriptionFactory","editor","FontColorEditing","find","commandParams","selection","config","*Set font background color:* %0","FontSize","plugins","value","*Reset font color*","markInlineFormat","fontBackgroundColor.colors","commandName","fontSize","*Reset font size*","change","model","registerDescriptionCallback","fontSize.options","get"];var mr,fr;mr=gr,fr=395,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:hr("0x1c"),commandName:hr("0x12")},{pluginName:hr("0x1f"),commandName:hr("0x25")},{pluginName:hr("0x5"),commandName:"fontColor"},{pluginName:hr("0x1"),commandName:hr("0x0")}];class br extends t.Plugin{[hr("0x21")](){const t=this[hr("0x4")][hr("0x1a")];for(const{pluginName:t,commandName:e}of pr)this[hr("0x4")][hr("0xc")].has(t)&&this._enableCommand(e);this[hr("0x4")][hr("0xc")][hr("0x18")](hr("0x24"))[hr("0x3")][hr("0x16")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0x12")==o.commandName){const e=o[hr("0x7")][0][hr("0xd")];if(e){const o=n(this[hr("0x4")].plugins[hr("0x18")](hr("0xb")).normalizeSizeOptions(this[hr("0x4")][hr("0x9")][hr("0x18")](hr("0x17")))[hr("0x6")]((t=>t[hr("0x15")]==e))[hr("0x19")])[hr("0x20")]();return{type:"format",content:Yo(t,hr("0x22"),o)}}return{type:hr("0x1e"),content:Yo(t,hr("0x13"))}}if(hr("0x25")==o.commandName){const e=o[hr("0x7")][0].value;return e?{type:hr("0x1e"),content:Yo(t,hr("0x26"),e)}:{type:hr("0x1e"),content:Yo(t,hr("0x28"))}}if("fontColor"==o[hr("0x11")]){const e=o[hr("0x7")][0][hr("0xd")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x4")][hr("0x9")][hr("0x18")](hr("0x23")))[hr("0x6")]((t=>t[hr("0x15")]==e));let r=e,i="";return o&&(r=o.label,i=n(r)[hr("0x20")]()),{type:hr("0x1e"),content:Yo(t,hr("0x1b"),i).trim(),color:{value:e,title:i||r}}}return{type:hr("0x1e"),content:Yo(t,hr("0xe"))}}if(hr("0x0")==o[hr("0x11")]){const e=o[hr("0x7")][0][hr("0xd")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x4")][hr("0x9")][hr("0x18")](hr("0x10")))[hr("0x6")]((t=>t[hr("0x15")]==e));let r=e,i="";return o&&(r=o.label,i=n(r)[hr("0x20")]()),{type:hr("0x1e"),content:Yo(t,hr("0xa"),i)[hr("0x1d")](),color:{value:e,title:i||r}}}return{type:hr("0x1e"),content:Yo(t,hr("0x2"))}}}}))}_enableCommand(t){const e=this.editor;e[hr("0xc")].get(hr("0x24")).enableCommand(t,((n,o={})=>{const s=e[hr("0x15")].document[hr("0x8")],r=o[hr("0xd")];s.isCollapsed?n(o):e[hr("0x15")][hr("0x14")]((()=>{const n=Array[hr("0x29")](s[hr("0x27")]());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0x15")]);for(const o of n)e[hr("0xc")][hr("0x18")](hr("0x24"))[hr("0xf")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["label","plugins","markInlineFormat","getAttributes","getRanges","getSelectedBlocks","_descriptionFactory","commands","fontColor","commandName","word","commandParams","get","fontBackgroundColor","length","createSelection","document","fontSize.options","locale","copyFormat","join","modifySelection","push","fontSize","isBlock","getItems","getAttributeProperties","format","afterInit","title","schema","editor","TrackChangesEditing","model","find","entries","toUpperCase","forward","selection","keys","charAt","toLowerCase","change","getFirstPosition","split","enableCommand","pasteFormat","config","isCollapsed"];var _r,Tr;_r=Er,Tr=145,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0x1e")](){const t=this[Cr("0x21")],n=t.model,o=n[Cr("0x12")][Cr("0x28")],s=t.plugins[Cr("0xe")]("TrackChangesEditing"),r=t[Cr("0x14")],i=t.commands.get("copyFormat"),a=t[Cr("0x9")][Cr("0xe")]("pasteFormat");i&&a&&(s[Cr("0x2f")](Cr("0x30"),((t,r={})=>{const i=r;n[Cr("0x2c")]((()=>{const t=Array.from(o[Cr("0x6")]()),r=o[Cr("0x1")]?[kr(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t[Cr("0x5")]()){const t=e[Cr("0x1c")](n);t&&t.isFormatting&&(yield n)}}(t,n));for(const e of t[Cr("0x6")]())for(const t of e[Cr("0x1b")]())!n[Cr("0x1a")](t)&&o(t)&&(yield t);for(const e of t[Cr("0x7")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x20")]))||0!==Object[Cr("0x29")](i).length)for(const t of r)s[Cr("0x4")](t,{commandName:Cr("0x30"),commandParams:[i]})}))})),s[Cr("0x8")].registerDescriptionCallback((e=>{const{data:n}=e;if(n&&Cr("0x30")===n[Cr("0xb")]){const e=[],o=n[Cr("0xd")][0];for(const[n,s]of Object[Cr("0x25")](o))e[Cr("0x18")](Ar(t,n,s));return e[Cr("0x10")]?{type:"format",content:Yo(r,"*Set format to:* %0",e[Cr("0x16")](", "))}:{type:Cr("0x1d"),content:Yo(r,"*Remove all formatting*")}}})),t[Cr("0x3")][Cr("0xe")](Cr("0x22"))[Cr("0x2f")](Cr("0x15")))}}function kr(t,e){const n=t[Cr("0x11")](e);t[Cr("0x17")](n,{unit:Cr("0xc"),direction:"backward"});const o=n[Cr("0x2d")]();t[Cr("0x17")](n,{unit:Cr("0xc"),direction:Cr("0x27")});const s=n.getLastPosition();return t.createRange(o,s)}function Ar(t,e,n){const o=t[Cr("0x14")].t,r=e[Cr("0x2e")](/(?=[A-Z])/)[Cr("0x16")](" "),i=o(r[Cr("0x2a")](0)[Cr("0x26")]()+r.slice(1)).toLowerCase();if("boolean"==typeof n)return i;if(Cr("0xa")===e||Cr("0xf")===e){const e=(0,s.normalizeColorOptions)(t[Cr("0x0")][Cr("0xe")]("fontColor.colors"))[Cr("0x24")]((t=>t.model==n));return i+" ("+(e?o(e[Cr("0x2")]).toLowerCase():n)+")"}if(Cr("0x19")===e&&isNaN(parseFloat(n))){const e=t[Cr("0x3")][Cr("0xe")]("FontSize").normalizeSizeOptions(t[Cr("0x0")][Cr("0xe")](Cr("0x13")))[Cr("0x24")]((t=>t[Cr("0x23")]==n));return i+" ("+(e?o(e[Cr("0x1f")])[Cr("0x2b")]():n)+")"}return i+" ("+n+")"}const vr=["paragraph","get","commandParams","HeadingEditing","TrackChangesEditing","afterInit","format","ELEMENT_HEADING","name","title","has","parent","model","_descriptionFactory","filter","find","from","config","locale","registerDescriptionCallback","checkChild","enableCommand","commandName","ELEMENT_HEADING_CUSTOM","value","document","heading","blockName","getSelectedBlocks","formatBlock","*Change to:* %0","isObject","editor"];var Rr,Sr;Rr=vr,Sr=146,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const Ir=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Ir("0x18")](){const t=this[Ir("0x12")],e=t[Ir("0x4")],n=t[Ir("0x3")][Ir("0x14")]("heading.options");if(!t.plugins[Ir("0x1d")](Ir("0x16")))return;const o=t.plugins.get(Ir("0x17"));o[Ir("0x7")](Ir("0xc"),((e,n)=>{const s=n.value,r=Array[Ir("0x2")](this.editor[Ir("0x1f")][Ir("0xb")].selection[Ir("0xe")]())[Ir("0x0")]((t=>{return e=t,n=s,(o=this[Ir("0x12")][Ir("0x1f")].schema)[Ir("0x6")](e[Ir("0x1e")],n)&&!o[Ir("0x11")](e)&&e[Ir("0x1b")]!=n;var e,n,o}));t.model.change((()=>{for(const t of r)o.markBlockFormat(t,{commandName:Ir("0xc"),commandParams:[n],formatGroupId:Ir("0xd")},fs(t))}))}));for(const t of n)Ir("0x13")!=t[Ir("0x1f")]&&o[Ir("0x20")].registerElementLabel(t[Ir("0x1f")],(e=>{const n=Nr(t[Ir("0x1f")]);return null!==n?s(e,n):r(e,t[Ir("0x1c")])}));function s(t,n){return Yo(e,Ir("0x1a"),[t,n])}function r(t,n){return Yo(e,Ir("0x9"),[t,n])}o._descriptionFactory[Ir("0x5")]((t=>{const{type:o,data:i}=t;if(Ir("0xf")==o&&i&&"heading"==i[Ir("0x8")]){const t=i[Ir("0x15")][0][Ir("0xa")],o=Nr(t);if(null!==o)return{type:Ir("0x19"),content:Yo(e,Ir("0x10"),s(1,o))};const a=n[Ir("0x1")]((e=>e[Ir("0x1f")]===t))[Ir("0x1c")];return{type:Ir("0x19"),content:Yo(e,Ir("0x10"),r(1,a))}}}))}}function Nr(t){const e=t.match(/^heading(\d+)$/);return e?e[1]:null}const wr=["formatInline","config","_descriptionFactory","HighlightEditing","title","has","toLowerCase","afterInit","commandName","plugins","get","find","TrackChangesEditing","highlight","format","createRange","document","isCollapsed","backward","registerDescriptionCallback","push","markInlineFormat","*Set highlight:* %0","getLastMatchingPosition","model","getRanges","selection","getAttribute","locale","*Remove highlight*","enableCommand","commandParams","highlight.options","value"];var Mr,Or;Mr=wr,Or=147,function(t){for(;--t;)Mr.push(Mr.shift())}(++Or);const Fr=function(t,e){return wr[t-=0]};class Pr extends t.Plugin{[Fr("0x1e")](){const t=this.editor;if(!t.plugins[Fr("0x1c")](Fr("0x1a")))return;const e=t[Fr("0x20")][Fr("0x21")](Fr("0x1"));e[Fr("0x13")](Fr("0x2"),((n,o={})=>{const s=t[Fr("0xd")][Fr("0x5")][Fr("0xf")],r=s[Fr("0x10")](Fr("0x2"));let i=o[Fr("0x16")],a=[];if(s[Fr("0x6")]){const e=s.getFirstPosition();if(!s.hasAttribute(Fr("0x2")))return void n(o);{const n=t=>t.item[Fr("0x10")](Fr("0x2"))===r,o=e[Fr("0xc")](n,{direction:Fr("0x7")}),s=e.getLastMatchingPosition(n);a=[t[Fr("0xd")][Fr("0x4")](o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0xe")]())i?a[Fr("0x9")](e):a[Fr("0x9")](...ms(Fr("0x2"),e,t[Fr("0xd")]));t[Fr("0xd")].change((()=>{for(const t of a)e[Fr("0xa")](t,{commandName:Fr("0x2"),commandParams:[{value:i}]})}))}));const n=t[Fr("0x11")];e[Fr("0x19")][Fr("0x8")]((e=>{const{type:o,data:s}=e;if(Fr("0x17")==o&&s&&"highlight"==s[Fr("0x1f")]){const e=n.t,o=s[Fr("0x14")][0].value;if(o){const s=t[Fr("0x18")].get(Fr("0x15"))[Fr("0x0")]((t=>t[Fr("0xd")]==o)),r=e(s[Fr("0x1b")])[Fr("0x1d")]();return{type:Fr("0x3"),content:Yo(n,Fr("0xb"),r),color:{value:s.color,title:s[Fr("0x1b")]}}}return{type:Fr("0x3"),content:Yo(n,Fr("0x12"),Yo(n,"FORMAT_HIGHLIGHT"))}}}))}}const Dr=["elementToStructure","afterInit","conversion","horizontalLine","createEmptyElement","locale","showSuggestionHighlights","createContainerElement","enableCommand","TrackChangesEditing","editor","insert","addClass","has","get","createPositionAt","dataDowncast","_descriptionFactory","plugins","for","registerElementLabel","ck-horizontal-line"];var Br,jr;Br=Dr,jr=316,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0xf")](){const t=this[Ur("0x2")];if(!t.plugins[Ur("0x5")]("HorizontalLineEditing"))return;t[Ur("0xa")][Ur("0x6")](Ur("0x1"))[Ur("0x0")](Ur("0x11"));const e=t[Ur("0xa")][Ur("0x6")](Ur("0x1")),n=t[Ur("0x13")];e[Ur("0x9")][Ur("0xc")](Ur("0x11"),(t=>Yo(n,"ELEMENT_HORIZONTAL_LINE",t))),t[Ur("0x10")][Ur("0xb")](Ur("0x8"))[Ur("0xe")]({model:"horizontalLine",view:(t,{writer:e,options:n})=>{if(!n[Ur("0x14")])return null;const o=e[Ur("0x15")]("div"),s=e[Ur("0x12")]("hr");return e[Ur("0x4")](Ur("0xd"),o),e[Ur("0x3")](e[Ur("0x7")](o,0),s),o},converterPriority:"high"})}}const Hr=["getSelectedElement","locale","document","ELEMENT_HTML_EMBED","commandName","format","view","HtmlEmbed","get","selection","has","editor","value","registerDescriptionCallback","getAttribute","TrackChangesEditing","_descriptionFactory","model","markBlockFormat","rawHtml","getCustomProperty","element","rawHtmlApi","enableCommand","afterInit","htmlEmbed","plugins","change","cancel"];var zr,Wr;zr=Hr,Wr=460,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0x1c")](){const t=this[Vr("0xf")];if(!t[Vr("0x1")][Vr("0xe")](Vr("0xb")))return;const e=t[Vr("0x1")].get(Vr("0x13")),n=t[Vr("0x5")],o=t.editing[Vr("0xa")][Vr("0x6")].selection;e[Vr("0x14")].registerElementLabel("rawHtml",(t=>Yo(n,Vr("0x7"),t))),t[Vr("0x1")][Vr("0xc")](Vr("0x13"))[Vr("0x1b")](Vr("0x0"),((n,s)=>{const r=t[Vr("0x15")],i=r[Vr("0x6")][Vr("0xd")];r[Vr("0x2")]((()=>{const t=function(t){const e=t[Vr("0x4")]();return e&&e.is(Vr("0x19"),Vr("0x17"))?t.getSelectedElement():null}(i);if(!t)return void n(null);const r=t[Vr("0x12")](Vr("0x10"))||"";void 0!==s&&s!==r&&(e[Vr("0x16")](t,{commandName:"htmlEmbed",commandParams:[s]}),o[Vr("0x4")]()[Vr("0x18")](Vr("0x1a"))[Vr("0x3")]())}))})),e[Vr("0x14")][Vr("0x11")]((t=>{const{data:e}=t;if(e&&Vr("0x0")==e[Vr("0x8")]){const t=Yo(n,"ELEMENT_HTML_EMBED");return{type:Vr("0x9"),content:Yo(n,"*Change %0 content*",t)}}}))}}const qr=["forward","shouldConvertImageType","_suggestionFactory","schema","caption","ImageResize","filter","ImageStyleEditing","markInlineFormat","editor","next","markBlockFormat","imageStylePreApply","addObject","registerCustomCallback","imageStyle","ELEMENT_CAPTION","backward","convertBlockImageToInline","isBlockImage","ImageCaptionUtils","discard","isInlineImage","join","ImageUtils","FORMAT_SIDE_IMAGE","getClosestSelectedImageElement","isCollapsed","length","model","document","imageTypeBlock","findIndex","alt","nodeAfter","getFirstRange","getContainedElement","nodeBefore","has","chain","detach","forEach","commandParams","imageCaption","insertImage","isInContent","getAttribute","imageStylePostApply","ImageCaptionEditing","getChangedMarkers","getNearestSelectionRange","value","selection","imageTextAlternative","type","from","formatInline","author","registerPostFixer","markDeletion","find","Users","formatBlock","suggestion","*Set image width:* %0","imageInline","convertInlineImageToBlock","resizeImage","*Format:* %0","end","isBefore","ImageUploadEditing","toLowerCase","_findSuggestions","enableCommand","getSuggestionCallback","commandName","accept","createRangeOn","subType","locale","getSuggestion","differ","afterInit","fromPosition","getSuggestions","removeObject","newValue","ImageTextAlternativeEditing","discardSuggestion","deletion","get","markInsertion","plugins","_descriptionFactory","*Reset image width*","registerElementLabel","*Remove image text alternative*","change","format","getCaptionFromImageModelElement","createRange","commands","uploadImage","imageTypeInline","newRange","toggleImageCaption","hasSuggestion","registerDescriptionCallback","ELEMENT_IMAGE","isOwn","isEqual","start","insertion","element","head","refresh","normalizedStyles","commandReversedParams","ImageBlockEditing","width","Block image to inline image"];var Xr,$r;Xr=qr,$r=479,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{[Jr("0x5c")](){const t=this[Jr("0x12")];if(!t[Jr("0x66")][Jr("0x2f")]("ImageEditing"))return;const n=t[Jr("0x66")][Jr("0x64")]("TrackChangesEditing"),o=t[Jr("0x66")][Jr("0x64")](Jr("0x21")),s={},r=t[Jr("0x59")];if(n[Jr("0x53")](Jr("0x35")),n._descriptionFactory.registerElementLabel("imageBlock",(t=>Yo(r,Jr("0x76"),t))),n[Jr("0x67")].registerElementLabel(Jr("0x4a"),(t=>Yo(r,"ELEMENT_INLINE_IMAGE",t))),n[Jr("0x67")][Jr("0x69")](Jr("0xd"),(()=>Yo(r,Jr("0x19")))),t[Jr("0x66")][Jr("0x2f")](Jr("0x50"))&&n[Jr("0x53")](Jr("0x70")),t[Jr("0x66")][Jr("0x2f")](Jr("0x6"))&&t[Jr("0x66")][Jr("0x2f")]("ImageInlineEditing")&&(n[Jr("0x53")](Jr("0x71"),((e,s)=>{const r=o[Jr("0x23")](t.model[Jr("0x27")][Jr("0x3d")]);t[Jr("0x26")].change((()=>{n[Jr("0x14")](r,{commandName:Jr("0x71"),commandParams:[s]},[],Jr("0x1b"))}))})),n[Jr("0x53")](Jr("0x28"),((e,s)=>{t.model[Jr("0x6b")]((r=>{let a=o[Jr("0x23")](t[Jr("0x26")][Jr("0x27")][Jr("0x3d")]),x=r[Jr("0x57")](a);const c=i.LivePosition[Jr("0x5d")](x[Jr("0x79")],"toPrevious"),l=i.LivePosition[Jr("0x5d")](x.end,"toNext");n.forceDefaultExecution((()=>e(s))),a=o.getClosestSelectedImageElement(t.model.document[Jr("0x3d")]),x=r[Jr("0x57")](a);const d=r[Jr("0x6e")](c,l);c[Jr("0x31")](),l[Jr("0x31")](),n.markBlockFormat(a,{commandName:Jr("0x71"),commandParams:[]},[],Jr("0x4b")),d.start.isBefore(x[Jr("0x79")])&&n[Jr("0x65")](r.createRange(d[Jr("0x79")],x[Jr("0x79")]),"convertInlineImageToBlock"),x.end[Jr("0x4f")](d[Jr("0x4e")])&&n[Jr("0x65")](r.createRange(x.end,d.end),Jr("0x4b"))}))})),n._suggestionFactory[Jr("0x17")]("formatBlock",Jr("0x4b"),"join",(()=>{})),n._suggestionFactory[Jr("0x17")](Jr("0x47"),Jr("0x4b"),Jr("0x56"),(()=>{})),n[Jr("0xb")][Jr("0x17")](Jr("0x47"),Jr("0x4b"),Jr("0x1e"),n._suggestionFactory[Jr("0x54")]("formatBlock","",Jr("0x56"))),n._suggestionFactory[Jr("0x17")](Jr("0x0"),Jr("0x4b"),Jr("0x20"),(()=>{})),n[Jr("0xb")].registerCustomCallback(Jr("0x0"),Jr("0x4b"),"discard",(([e])=>{const o=n._suggestionFactory.getSuggestionCallback(Jr("0x0"),"",Jr("0x1e"));let s=e.start,r=e[Jr("0x4e")];const i=t[Jr("0x26")][Jr("0xc")].getNearestSelectionRange(s,Jr("0x1a")),a=t[Jr("0x26")][Jr("0xc")][Jr("0x3b")](r,Jr("0x9"));i[Jr("0x24")]&&(s=i[Jr("0x79")]),a[Jr("0x24")]&&(r=a[Jr("0x4e")]),o([t.model[Jr("0x6e")](s,r)])})),n[Jr("0xb")][Jr("0x17")](Jr("0x47"),Jr("0x4b"),Jr("0x30"),c),n[Jr("0xb")].registerCustomCallback("insertion",Jr("0x4b"),"chain",c)),t[Jr("0x66")][Jr("0x2f")](Jr("0x39"))&&(n.enableCommand(Jr("0x73"),((e,s)=>{const r=t[Jr("0x66")][Jr("0x64")](Jr("0x1d"));let i=o.getClosestSelectedImageElement(t.model[Jr("0x27")][Jr("0x3d")]),a=r[Jr("0x6d")](i);t[Jr("0x26")].change((()=>{if(a)return void n[Jr("0x44")](t[Jr("0x26")][Jr("0x57")](a));const x=o[Jr("0x1c")](i);e(s),i=o[Jr("0x23")](t[Jr("0x26")][Jr("0x27")].selection),a=r[Jr("0x6d")](i),n.markInsertion(t.model[Jr("0x57")](a),x?null:Jr("0x34"))}))})),n[Jr("0xb")].registerCustomCallback("insertion",Jr("0x34"),Jr("0x30"),c)),t[Jr("0x66")][Jr("0x2f")](Jr("0x10"))){n[Jr("0x53")](Jr("0x18"),((s,r)=>{const i=t[Jr("0x66")][Jr("0x64")](Jr("0x46")).me,a=t[Jr("0x6f")][Jr("0x64")](Jr("0x18"));let x=o[Jr("0x23")](t[Jr("0x26")].document[Jr("0x3d")]),c=t[Jr("0x26")][Jr("0x57")](x),l=a[Jr("0x3c")];if(l==r[Jr("0x3c")])return;const d={commandName:Jr("0x18"),commandParams:[r],formatGroupId:(0,e.uid)()};t.model[Jr("0x6b")]((()=>{if(n[Jr("0x5e")]().filter((t=>t[Jr("0x36")]&&i==t[Jr("0x42")]&&(Jr("0x47")==t[Jr("0x3f")]||Jr("0x41")==t[Jr("0x3f")])&&("imageStylePreApply"==t.subType||"imageStylePostApply"==t.subType)&&t.getFirstRange().isEqual(c)))[Jr("0x32")]((t=>n[Jr("0x62")](t[Jr("0x2")]))),x=o[Jr("0x23")](t.model[Jr("0x27")].selection),c=t[Jr("0x26")][Jr("0x57")](x),a.refresh(),t[Jr("0x6f")].get("imageTypeInline")[Jr("0x3")](),t[Jr("0x6f")].get(Jr("0x28"))[Jr("0x3")](),l=a[Jr("0x3c")],l!=r[Jr("0x3c")])return o[Jr("0x1f")](x)&&a[Jr("0xa")](r[Jr("0x3c")],x)?(s(r),x=o[Jr("0x23")](t[Jr("0x26")][Jr("0x27")][Jr("0x3d")]),void n[Jr("0x14")](x,{...d,commandReversedParams:[{value:l||null}]},[],Jr("0x15"))):void(o[Jr("0x1c")](x)?n.markBlockFormat(x,d,[],Jr("0x38")):n[Jr("0x11")](c,d,"imageStylePostApply"))}))}));for(const e of t[Jr("0x66")][Jr("0x64")](Jr("0x10"))[Jr("0x4")])s[e.name]=e.title[Jr("0x51")]();n[Jr("0xb")][Jr("0x17")](Jr("0x47"),Jr("0x15"),Jr("0x20"),(()=>{})),n[Jr("0xb")].registerCustomCallback(Jr("0x47"),"imageStylePostApply","join",(()=>{})),n[Jr("0xb")][Jr("0x17")](Jr("0x41"),Jr("0x38"),Jr("0x20"),(()=>{})),n[Jr("0xb")][Jr("0x17")](Jr("0x47"),Jr("0x15"),Jr("0x56"),(()=>{})),n[Jr("0xb")][Jr("0x17")]("formatBlock",Jr("0x15"),Jr("0x1e"),((t,e)=>{n[Jr("0xb")].getSuggestionCallback(Jr("0x47"),"","accept")(t,{commandName:e[Jr("0x55")],commandParams:e[Jr("0x5")]})})),n[Jr("0xb")][Jr("0x17")](Jr("0x47"),Jr("0x15"),Jr("0x30"),c)}const a=[{type:Jr("0x47"),subType:Jr("0x15")},{type:Jr("0x0"),subType:Jr("0x34")},{type:Jr("0x47"),subType:Jr("0x4b")},{type:"insertion",subType:Jr("0x4b")}];function x(t,e){const s=a[Jr("0x29")]((({type:e,subType:n})=>t[Jr("0x3f")]==e&&t[Jr("0x58")]==n)),r=a[Jr("0x29")]((({type:t,subType:n})=>e[Jr("0x3f")]==t&&e[Jr("0x58")]==n));if(s<0||r<0)return!1;const i=t[Jr("0x2c")](),x=e[Jr("0x2c")]();if((0==s||1==s)&&2==r&&i.isIntersecting(x))return!0;if(2==s&&3==r){const t=n[Jr("0x52")](i,Jr("0x0"))[Jr("0xf")]((({suggestion:t,meta:e})=>e[Jr("0x77")]&&Jr("0x4b")==t[Jr("0x58")]));if(t.length>1&&x.end.isEqual(i.start))return!0;if(1==t[Jr("0x25")]&&(i.start.isEqual(x[Jr("0x4e")])||i[Jr("0x4e")][Jr("0x78")](x[Jr("0x79")])))return!0}if(3==s&&3==r&&i.start[Jr("0x4f")](x.start)){const t=i[Jr("0x4e")][Jr("0x2b")],e=x[Jr("0x79")][Jr("0x2e")];return o[Jr("0x1c")](t)&&t===e}return!1}function c(t,e){return x(t,e)?[t,e]:x(e,t)?[e,t]:null}t[Jr("0x26")].document[Jr("0x43")]((()=>{let e=!1;const s=Array[Jr("0x40")](t[Jr("0x26")][Jr("0x27")][Jr("0x5b")][Jr("0x3a")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:a,id:x}=n._splitMarkerName(t);if(Jr("0x48")==s&&n[Jr("0x74")](x)){if(Jr("0x47")==i&&("imageStylePreApply"==a||Jr("0x38")==a)){const t=n.getSuggestion(x);if(r[Jr("0x72")]){const s=t[Jr("0x2c")]()[Jr("0x2d")]();if(o[Jr("0x1c")](s))continue;n[Jr("0x62")](t),e=!0}}if(Jr("0x0")==i&&Jr("0x34")==a&&!r[Jr("0x72")]){const t=n[Jr("0x5a")](x);t.next&&t[Jr("0x13")][Jr("0x36")]&&(n[Jr("0x62")](t[Jr("0x13")]),e=!0)}}}return e})),t.plugins[Jr("0x2f")](Jr("0xe"))&&n[Jr("0x53")](Jr("0x4c"),((e,s)=>{const r=o[Jr("0x23")](t[Jr("0x26")][Jr("0x27")][Jr("0x3d")]);r[Jr("0x37")]("width")!=s[Jr("0x7")]&&t[Jr("0x26")][Jr("0x6b")]((()=>{n[Jr("0x14")](r,{commandName:Jr("0x4c"),commandParams:[s]})}))})),t.plugins.has(Jr("0x61"))&&n.enableCommand("imageTextAlternative",((e,s)=>{const r=o[Jr("0x23")](t[Jr("0x26")][Jr("0x27")].selection);(r.hasAttribute(Jr("0x2a"))?r[Jr("0x37")]("alt"):"")!=s[Jr("0x60")]&&t[Jr("0x26")].change((()=>{n.markBlockFormat(r,{commandName:Jr("0x3e"),commandParams:[s]})}))})),n._descriptionFactory[Jr("0x75")]((t=>{if(a[Jr("0x45")]((({type:e,subType:n})=>t[Jr("0x3f")]==e&&t[Jr("0x58")]==n)))return t.previous?{}:void 0})),n[Jr("0x67")][Jr("0x75")]((t=>{if("insertion"==t.type||Jr("0x63")==t[Jr("0x3f")]){const e=t[Jr("0x2d")]();if(e&&e.is(Jr("0x1"),Jr("0xd")))return{type:"insertion"==t.type?Jr("0x16"):Jr("0x5f"),element:e,quantity:1}}})),n[Jr("0x67")][Jr("0x75")]((t=>Jr("0x47")==t[Jr("0x3f")]&&Jr("0x4b")==t[Jr("0x58")]?{type:Jr("0x6c"),content:"Inline image to block image"}:Jr("0x47")==t[Jr("0x3f")]&&"convertBlockImageToInline"==t.subType?{type:"format",content:Jr("0x8")}:void 0)),n[Jr("0x67")][Jr("0x75")]((t=>{const{data:e}=t;if(e){if("imageStyle"==e[Jr("0x55")]){const t=e[Jr("0x33")][0][Jr("0x3c")];return n="side"===t?Yo(r,Jr("0x22")):s[t]||t,{type:"format",content:Yo(r,Jr("0x4d"),n)}}if("imageTextAlternative"==e[Jr("0x55")]){const t=e[Jr("0x33")][0][Jr("0x60")];return t?{type:Jr("0x6c"),content:Yo(r,"*Set image text alternative:* %0",'"'+t+'"')}:{type:Jr("0x6c"),content:Yo(r,Jr("0x6a"))}}if("resizeImage"==e[Jr("0x55")]){const t=e[Jr("0x33")][0][Jr("0x7")];return t?{type:Jr("0x6c"),content:Yo(r,Jr("0x49"),t)}:{type:Jr("0x6c"),content:Yo(r,Jr("0x68"))}}}var n}))}}const Zr=["getAttribute","getSuggestions","commandParams","_suggestionFactory","commandName","ImageEditing","registerCustomCallback","TrackChangesEditing","source","getContainedElement","replaceImageSource","afterInit","has","handleReplaceImageCommand","subType","discard","data","handleSuggestionDescription","formatBlock","get","src","*Format:* replace image URL","getSelectedElement","enableCommand","document","editor","getSuggestionCallback","change","model","plugins"];var Yr,ti;Yr=Zr,ti=158,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0x3")](){if(!this.editor.plugins[ei("0x4")](ei("0x1b")))return;const t=this.editor.plugins[ei("0xb")](ei("0x1d"));t[ei("0xf")](ei("0x2"),((t,e)=>this[ei("0x5")](t,e))),t[ei("0x19")].registerCustomCallback(ei("0xa"),ei("0x2"),"accept",t[ei("0x19")][ei("0x12")](ei("0xa"),null,ei("0x7"))),t[ei("0x19")][ei("0x1c")](ei("0xa"),ei("0x2"),"discard",t[ei("0x19")].getSuggestionCallback("formatBlock",null,"accept")),t._descriptionFactory.registerDescriptionCallback((t=>this[ei("0x9")](t)))}[ei("0x5")](t,e){const n=this[ei("0x11")].plugins[ei("0xb")](ei("0x1d")),o=this.editor.model[ei("0x10")].selection[ei("0xe")]();this.editor[ei("0x14")][ei("0x13")]((()=>{let s=o[ei("0x16")](ei("0xc"));const r=this.editor[ei("0x15")].get("Users").me;for(const t of n[ei("0x17")]({skipNotAttached:!0})){const e=t[ei("0x1")]();if(ei("0x2")===t[ei("0x6")]&&e===o){t.author!==r&&t[ei("0x7")](),s=t[ei("0x8")][ei("0x18")][0][ei("0x0")];break}}t(e),n.markBlockFormat(o,{commandName:"replaceImageSource",commandParams:[{source:s}]},[],ei("0x2"))}))}[ei("0x9")](t){const{data:e}=t;if(e&&"replaceImageSource"===e[ei("0x1a")]){const t=ei("0xd");return{type:"format",content:Yo(this.editor.locale,t)}}}}const oi=["high","_handleImportedData","execute","editor","get","_trackChangesValueDuringImport","TrackChangesEditing","bind","Users","dataInsert","importWord","plugins","enableCommand","value","commands","_setSuggestionData","forEach","collaboration_features","listenTo","_trackChangesExecuted","trackChanges","track_changes","lowest"];var si,ri;si=oi,ri=361,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class ai extends t.Plugin{constructor(t){super(t),this[ii("0xc")]=!1,this[ii("0x3")]=!1}afterInit(){const t=this.editor,e=t[ii("0x15")][ii("0xb")](ii("0x11")),n=t[ii("0x15")][ii("0xb")](ii("0x4"));e&&(e.on(ii("0x9"),((t,[,e])=>{this[ii("0xc")]=n.value,e[ii("0x1")][ii("0x5")]=!this[ii("0xc")]}),{priority:ii("0x7")}),this[ii("0x2")](e,ii("0x10"),this._handleImportedData[ii("0xe")](this)),this[ii("0x2")](e,"dataInsert",(()=>{this[ii("0x3")]&&(n[ii("0x9")](),this[ii("0x3")]=!1)}),{priority:ii("0x6")}),t[ii("0x12")][ii("0xb")](ii("0xd"))[ii("0x13")]("importWord"))}[ii("0x8")](t,e){const{suggestions:n}=e,o=this[ii("0xa")].commands[ii("0xb")](ii("0x4")),s=o[ii("0x14")];this._trackChangesValueDuringImport!==s&&(o[ii("0x9")](),this._trackChangesExecuted=!0),n&&n[ii("0x0")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0xa")][ii("0x12")][ii("0xb")](ii("0xf")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0x11")}}};this[ii("0xa")].plugins[ii("0xb")]("TrackChangesEditing")[ii("0x16")](s)}))}}const xi=["has","plugins","format","outdent","afterInit","commandName","get","locale","markBlockFormat","enableCommand","document","IndentEditing","filter","getSelectedBlocks","schema","getItemLabel","editor","selection","model","_descriptionFactory","*Indent:* %0","blockIndent","change","indentBlock","*Outdent:* %0","outdentBlock"];var ci,li;ci=xi,li=209,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return xi[t-=0]};class ui extends t.Plugin{[di("0x3")](){const t=this.editor,e=t[di("0x0")][di("0x5")]("TrackChangesEditing");t[di("0x0")][di("0x19")](di("0xa"))&&(e.enableCommand("indent"),e[di("0x8")](di("0x2")));const n=t[di("0x6")];if(t[di("0x0")][di("0x19")]("IndentBlock")){for(const n of[di("0x16"),di("0x18")])e[di("0x8")](n,(()=>{const o=Array.from(this.editor[di("0x11")][di("0x9")][di("0x10")][di("0xc")]())[di("0xb")]((t=>this[di("0xf")][di("0x11")][di("0xd")].checkAttribute(t,di("0x14"))));t[di("0x11")][di("0x15")]((()=>{for(const t of o)e[di("0x7")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:"indentBlock"})}))}));e._descriptionFactory.registerDescriptionCallback((t=>{const{data:o}=t;if(!o)return;if(di("0x16")!=o[di("0x4")]&&"outdentBlock"!=o[di("0x4")])return;const s=t.getItems()[0],r=e[di("0x12")][di("0xe")](s);return di("0x16")==o[di("0x4")]?{type:"format",content:Yo(n,di("0x13"),r)}:di("0x18")==o[di("0x4")]?{type:di("0x1"),content:Yo(n,di("0x17"),r)}:void 0}))}}}var gi,mi,fi=["TrackChangesEditing","requires","editor","get","init","plugins","input"];gi=fi,mi=340,function(t){for(;--t;)gi.push(gi.shift())}(++mi);var hi=function(t,e){return fi[t-=0]};class pi extends t.Plugin{static get[hi("0x4")](){return[Vs.Input]}[hi("0x0")](){this[hi("0x5")][hi("0x1")][hi("0x6")](hi("0x3")).enableCommand(hi("0x2"))}}const bi=["afterInit","plugins","change","from","registerDescriptionCallback","enableCommand","getAttribute","document","format","getRanges","linkHref","isCollapsed","getFirstRange","*Set link:* %0","editor","selection","getFirstPosition","markInlineFormat","link","*Remove link*","commandName","hasAttribute","get","model","commandParams","unlink"];var Ei,_i;Ei=bi,_i=300,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{[Ti("0xc")](){const t=this[Ti("0x0")];if(!t[Ti("0xd")].has("LinkEditing"))return;const e=t[Ti("0xd")][Ti("0x8")]("TrackChangesEditing");e[Ti("0x11")](Ti("0x4"),((n,o)=>{const s=t.model[Ti("0x13")][Ti("0x1")];let r=[];if(s[Ti("0x17")]){if(!s[Ti("0x7")](Ti("0x16")))return void n(o);{const e=(0,Vs.findAttributeRange)(s.getFirstPosition(),Ti("0x16"),s.getAttribute(Ti("0x16")),t[Ti("0x9")]);r=[e]}}else r=Array[Ti("0xf")](s[Ti("0x15")]());t[Ti("0x9")][Ti("0xe")]((()=>{for(const t of r)e[Ti("0x3")](t,{commandName:Ti("0x4"),commandParams:[o]})}))})),e[Ti("0x11")](Ti("0xb"),(()=>{const n=this[Ti("0x0")][Ti("0x9")],o=n[Ti("0x13")][Ti("0x1")];n[Ti("0xe")]((()=>{let n=[];n=o[Ti("0x17")]?[(0,Vs.findAttributeRange)(o[Ti("0x2")](),Ti("0x16"),o[Ti("0x12")]("linkHref"),t[Ti("0x9")])]:ms("linkHref",o[Ti("0x18")](),t.model);for(const t of n)e[Ti("0x3")](t,{commandName:"unlink",commandParams:[]})}))})),e._descriptionFactory[Ti("0x10")]((e=>{const{data:n}=e,o=t.locale;if(n){if(Ti("0x4")==n[Ti("0x6")]){const t=n[Ti("0xa")][0];return{type:Ti("0x14"),content:Yo(o,Ti("0x19"),'"'+t+'"')}}return"unlink"==n[Ti("0x6")]?{type:Ti("0x14"),content:Yo(o,Ti("0x5"))}:void 0}}))}}const yi=["listIndent","blockName","commandParams","from","registerElementLabel","schema","afterInit","value","replace","isObject","nextSibling","model","getAttribute","commands","checkChild","createPositionAt","before","ELEMENT_LIST_ITEM","change","getSelectedBlocks","plugins","todoList","document","get","List","format","paragraph","editor","todoListChecked","markBlockFormat","commandName","*Change to:* %0","*Uncheck item*","add","ELEMENT_NUMBERED_LIST","*Outdent:* %0","element","parent","filter","numberedList","checkTodoList","name","outdentList","bulletedList","enableCommand","_descriptionFactory","*Indent:* %0","todo","previousSibling","selection","has","forceValue","numbered","listItem","indentList"];var ki,Ai;ki=yi,Ai=213,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0xd")](){const t=this[vi("0x22")],e=t.locale;if(!t[vi("0x1b")][vi("0x2")]("ListEditing"))return;const n=t.plugins[vi("0x1e")]("TrackChangesEditing"),o=t[vi("0x1b")].has("TodoListEditing");function s(e){return()=>{const o=t[vi("0x12")][vi("0x1d")][vi("0x1")],s=t.commands[vi("0x1e")](e);if(s.value)return void t.execute(vi("0x21"),{});const r=e.slice(0,-4),i=function(t,e,n){let o=Array[vi("0xa")](t)[vi("0x2d")]((t=>{return e=t,(o=n)[vi("0x15")](e[vi("0x2c")],"listItem")&&!o[vi("0x10")](e);var e,o}));o=o.filter((t=>!t.is(vi("0x2b"),"listItem")||t[vi("0x13")]("listType")!=e));const s=new Set;for(const t of o)t.is(vi("0x2b"),vi("0x5"))?s.add(Si(t)):s[vi("0x28")](t);return Array[vi("0xa")](s)}(o[vi("0x1a")](),r,t.model[vi("0xc")]);t[vi("0x12")][vi("0x19")]((()=>{for(const t of i)n[vi("0x24")](t,{commandName:e,commandParams:[{forceValue:!s[vi("0xe")]}],formatGroupId:vi("0x8")},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[vi("0xa")](t);const n=e.findIndex((t=>vi("0x5")!=t[vi("0x30")]));return n>-1&&(e=e.slice(0,n)),e}(t[vi("0x12")][vi("0x1d")].selection[vi("0x1a")]()),s=t.model.createRange(t[vi("0x12")].createPositionAt(o[0],vi("0x17")),t.model[vi("0x16")](o[o.length-1],"end"));t[vi("0x12")].change((()=>{n[vi("0x24")](s,{commandName:e,commandParams:[],formatGroupId:vi("0x7")},function(t){const e=new Set;for(const n of t){let t=n[vi("0x11")];for(;t&&t.getAttribute(vi("0x7"))>n[vi("0x13")](vi("0x7"));)e[vi("0x28")](t),t=t[vi("0x11")]}return Array.from(e)}(o))}))}}n[vi("0x33")](vi("0x2e"),s(vi("0x2e"))),n.enableCommand(vi("0x32"),s(vi("0x32"))),o&&n[vi("0x33")]("todoList",s("todoList")),n.enableCommand(vi("0x6"),r(vi("0x6"))),n[vi("0x33")](vi("0x31"),r(vi("0x31"))),o&&n[vi("0x33")](vi("0x2f"),(()=>{const e=t[vi("0x14")][vi("0x1e")](vi("0x2f")),o=Array.from(e._selectedElements);o[vi("0x2d")]((t=>t[vi("0x13")](vi("0x23"))!=e.value)),t[vi("0x12")].change((()=>{for(const t of o)n[vi("0x24")](t,{commandName:vi("0x2f"),commandParams:[{forceValue:!e.value}]})}))})),n[vi("0x34")][vi("0xb")](vi("0x5"),(t=>Yo(e,vi("0x18"),t))),n[vi("0x34")].registerDescriptionCallback((t=>{const{data:n}=t;if(n){if(vi("0x2e")==n.commandName||vi("0x32")==n.commandName||vi("0x1c")==n[vi("0x25")])switch(n[vi("0x25")][vi("0xf")](vi("0x1f"),"")){case"bulleted":return o(Yo(e,"ELEMENT_BULLETED_LIST"));case vi("0x4"):return o(Yo(e,vi("0x29")));case vi("0x36"):return o(Yo(e,"ELEMENT_TODO_LIST"))}if("indentList"==n[vi("0x25")])return{type:"format",content:Yo(e,vi("0x35"),Yo(e,vi("0x18")))};if(vi("0x31")==n[vi("0x25")])return{type:vi("0x20"),content:Yo(e,vi("0x2a"),Yo(e,vi("0x18")))};if(vi("0x2f")==n[vi("0x25")])return n[vi("0x9")][0][vi("0x3")]?{type:vi("0x20"),content:Yo(e,"*Check item*")}:{type:"format",content:Yo(e,vi("0x27"))}}function o(t){return{type:vi("0x20"),content:Yo(e,vi("0x26"),t)}}}))}}function Si(t){const e=t[vi("0x13")](vi("0x7"));if(0==e)return t;let n=t;for(;t.previousSibling&&t[vi("0x0")].is("element",vi("0x5"));){const o=t.previousSibling[vi("0x13")](vi("0x7"));if(o==e)n=t[vi("0x0")];else if(o<e)break;t=t[vi("0x0")]}return n}function Ii(t){const e=[];if(t.is(vi("0x2b"),"listItem")&&t[vi("0x13")]("listIndent")>0){let n=t[vi("0x11")];for(;n&&vi("0x5")==n[vi("0x30")]&&n[vi("0x13")](vi("0x7"))==t[vi("0x13")](vi("0x7"));)e.push(n),n=n[vi("0x11")]}return e}const Li=["startIndex","forward","getAttribute","commandName","plugins","before","styles","registerDescriptionCallback","listReversed","ListUtils","push","length","bind","editor","*Format:* set order to reversed","_getTranslationKeyForListStyle","handleListStartCommand","ELEMENT_","getSelectedBlocks","listStart","flat","commandParams","handleListStyleCommand","locale","listType","type","format","model","map","_LIST_","element","*Format:* set start index to %0","ListPropertiesEditing","handleListReversedCommand","from","getFirstPosition","reversed","TrackChangesEditing","filter","enableCommand","*Change to:* %0","list.properties","listItem","_getSuggestionBlocksForListStyle","markMultiRangeBlockFormat","listStyle","document","afterInit","numbered","getSiblingNodes","*Format:* set order to regular","get","createRange","handleDescriptions","selection","replace","getListTypeFromListStyleType","change","backward","createPositionAt"];var Ni,wi;Ni=Li,wi=363,function(t){for(;--t;)Ni.push(Ni.shift())}(++wi);const Mi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[Mi("0x2c")](){if(!this.editor[Mi("0x1")].has(Mi("0x1d")))return;const t=this[Mi("0xa")].config[Mi("0x30")](Mi("0x26")),e=this[Mi("0xa")][Mi("0x1")][Mi("0x30")]("TrackChangesEditing");t[Mi("0x3")]&&e[Mi("0x24")](Mi("0x2a"),this[Mi("0x13")][Mi("0x9")](this)),t[Mi("0x21")]&&e[Mi("0x24")](Mi("0x5"),this[Mi("0x1e")][Mi("0x9")](this)),t.startIndex&&e[Mi("0x24")]("listStart",this[Mi("0xd")].bind(this)),e._descriptionFactory[Mi("0x4")](this[Mi("0x32")][Mi("0x9")](this))}[Mi("0x13")](t,e={}){const n=this.editor[Mi("0x1")].get(Mi("0x22")),o=this[Mi("0x28")]();this[Mi("0xa")][Mi("0x18")].change((()=>{n[Mi("0x29")](o,{commandName:Mi("0x2a"),commandParams:[{type:e[Mi("0x16")]}],formatGroupId:Mi("0x2a")})}))}[Mi("0x1e")](t,e={}){const n=this.editor.plugins[Mi("0x30")](Mi("0x22")),o=this._getSuggestionBlocks((t=>t.is(Mi("0x1b"),Mi("0x27"))&&Mi("0x2d")===t[Mi("0x3b")]("listType")));if(o[Mi("0x8")]<1)return;const s=o[Mi("0x19")]((t=>this[Mi("0xa")][Mi("0x18")][Mi("0x31")](this[Mi("0xa")].model[Mi("0x38")](t,Mi("0x2")),this[Mi("0xa")][Mi("0x18")].createPositionAt(t,0))));this[Mi("0xa")][Mi("0x18")][Mi("0x36")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:Mi("0x5"),commandParams:[{reversed:e[Mi("0x21")]}],formatGroupId:"listReversed"})}))}[Mi("0xd")](t,e={}){const n=this[Mi("0xa")][Mi("0x1")][Mi("0x30")](Mi("0x22")),o=this._getSuggestionBlocks((t=>t.is(Mi("0x1b"),Mi("0x27"))&&Mi("0x2d")===t[Mi("0x3b")](Mi("0x15"))));if(o.length<1)return;const s=o.map((t=>this.editor[Mi("0x18")][Mi("0x31")](this[Mi("0xa")][Mi("0x18")][Mi("0x38")](t,"before"),this[Mi("0xa")][Mi("0x18")][Mi("0x38")](t,0))));this[Mi("0xa")].model[Mi("0x36")]((()=>{n[Mi("0x29")](s,{commandName:Mi("0x10"),commandParams:[{startIndex:e.startIndex}],formatGroupId:Mi("0x10")})}))}[Mi("0x32")](t){const e=this.editor[Mi("0x14")],{data:n}=t;if(!n)return;let o,s;switch(n[Mi("0x0")]){case Mi("0x2a"):o=Mi("0x25"),s={type:Mi("0x17"),content:Yo(e,o,Yo(e,this._getTranslationKeyForListStyle(n.commandParams[0].type)))};break;case Mi("0x5"):o=n[Mi("0x12")][0][Mi("0x21")]?Mi("0xb"):Mi("0x2f"),s={type:Mi("0x17"),content:Yo(e,o)};break;case Mi("0x10"):o=Mi("0x1c"),s={type:"format",content:Yo(e,o,n[Mi("0x12")][0][Mi("0x39")])}}return s}_getSuggestionBlocksForListStyle(){var t,e,n,o;const s=this[Mi("0xa")].plugins[Mi("0x30")]("ListUtils");let r=Array[Mi("0x1f")](this[Mi("0xa")][Mi("0x18")][Mi("0x2b")][Mi("0x33")][Mi("0xf")]());return(null===(t=r[0])||void 0===t?void 0:t.is("element","listItem"))&&r.unshift(...s[Mi("0x2e")](this[Mi("0xa")][Mi("0x18")][Mi("0x2b")][Mi("0x33")][Mi("0x20")](),Mi("0x37"))),(null===(e=r[r[Mi("0x8")]-1])||void 0===e?void 0:e.is(Mi("0x1b"),Mi("0x27")))&&r[Mi("0x7")](...s[Mi("0x2e")](this[Mi("0xa")][Mi("0x18")][Mi("0x2b")][Mi("0x33")].getLastPosition(),Mi("0x3a"))),r=[...new Set(r)],(null===(o=null===(n=this[Mi("0xa")][Mi("0x18")][Mi("0x2b")][Mi("0x33")][Mi("0x20")]())||void 0===n?void 0:n.parent)||void 0===o?void 0:o.is(Mi("0x1b"),"listItem"))&&(r=r[Mi("0x23")]((t=>t.is(Mi("0x1b"),Mi("0x27"))))),r}_getSuggestionBlocks(t){const e=this[Mi("0xa")][Mi("0x1")][Mi("0x30")](Mi("0x6"));let n=Array[Mi("0x1f")](this.editor[Mi("0x18")].document[Mi("0x33")].getSelectedBlocks()).filter(t)[Mi("0x19")]((t=>{const n=this[Mi("0xa")][Mi("0x18")].createPositionAt(t,0);return[...e[Mi("0x2e")](n,"backward"),...e.getSiblingNodes(n,Mi("0x3a"))]}))[Mi("0x11")]();return n=[...new Set(n)],n}[Mi("0xc")](t){return Mi("0xe")+this.editor[Mi("0x1")][Mi("0x30")](Mi("0x6"))[Mi("0x35")](t).toUpperCase()+Mi("0x1a")+t.toUpperCase()[Mi("0x34")](/-/g,"_")}}const Fi=["high","get","options","_descriptionFactory","registerElementLabel","dataDowncast","mediaEmbed","stop","createEmptyElement","afterInit","div","enableCommand","for","plugins","locale","MediaEmbedEditing","ELEMENT_MEDIA","attribute:url:media","elementToElement","data","TrackChangesEditing","editor","media"];var Pi,Di;Pi=Fi,Di=357,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0x14")](){const t=this[Bi("0x9")];if(!t[Bi("0x1")].has(Bi("0x3")))return;const e=t[Bi("0x1")][Bi("0xc")](Bi("0x8")),n=t[Bi("0x2")];e[Bi("0x16")](Bi("0x11")),e[Bi("0xe")][Bi("0xf")](Bi("0xa"),(t=>Yo(n,Bi("0x4"),t))),t.conversion[Bi("0x0")](Bi("0x10"))[Bi("0x6")]({model:Bi("0xa"),view:(t,{writer:e,options:n})=>{if(n.showSuggestionHighlights)return e[Bi("0x13")](Bi("0x15"))},converterPriority:"high"}),t[Bi("0x7")].downcastDispatcher.on(Bi("0x5"),((t,e,n)=>{n[Bi("0xd")].showSuggestionHighlights&&t[Bi("0x12")]()}),{priority:Bi("0xb")})}}const Ui=["has","editor","mention","get","plugins","TrackChangesEditing","MentionEditing"];var Gi,Hi;Gi=Ui,Hi=500,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{afterInit(){const t=this[zi("0x5")];t[zi("0x1")][zi("0x4")](zi("0x3"))&&t[zi("0x1")][zi("0x0")](zi("0x2")).enableCommand(zi("0x6"))}}const Vi=["plugins","afterInit","get","PageBreakEditing","TrackChangesEditing","has","pageBreak","ELEMENT_PAGE_BREAK","locale","registerElementLabel"];var Ki,qi;Ki=Vi,qi=153,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{[Xi("0x8")](){const t=this.editor;if(!t[Xi("0x7")][Xi("0x2")](Xi("0x0")))return;t[Xi("0x7")][Xi("0x9")](Xi("0x1")).enableCommand("pageBreak");const e=t[Xi("0x7")][Xi("0x9")](Xi("0x1")),n=t[Xi("0x5")];e._descriptionFactory[Xi("0x6")](Xi("0x3"),(t=>Yo(n,Xi("0x4"),t)))}}const Ji=["isBlock","createUIElement","markerRange","insertion","paragraph","bindElementToMarker","document","getFirstRange","blockName","consume","schema","consumable","selection","isTouching","ck-suggestion-marker-split","highest","markBlockFormat","checkChild","change","span","end","model","TrackChangesEditing","locale","isLimit","from","registerElementLabel","insertParagraph","markerName","addClass","start","commandName","getItemLabel","options","plugins","getSelectedBlocks","*Insert:* %0","filter","nodeAfter","_descriptionFactory","type","addMarker:suggestion:insertion","*Change to:* %0","name","get","has","ELEMENT_PARAGRAPH","afterInit","format","enableCommand","downcastDispatcher","mapper","editing","registerDescriptionCallback","writer","ck-suggestion-marker--active","editor","isObject","toViewPosition","parent","insert"];var Qi,Zi;Qi=Ji,Zi=369,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class ta extends t.Plugin{[Yi("0x2c")](){const t=this[Yi("0x35")];if(!t[Yi("0x1f")][Yi("0x2a")]("Paragraph"))return;const e=t[Yi("0x14")],n=t[Yi("0x1f")][Yi("0x29")]("TrackChangesEditing");n[Yi("0x24")][Yi("0x17")]("paragraph",(t=>Yo(e,Yi("0x2b"),t))),n[Yi("0x2e")](Yi("0x1"),((e,o={})=>{const s=t[Yi("0x12")][Yi("0x3")],r=o[Yi("0x9")]||s[Yi("0x9")],i=Array[Yi("0x16")](r[Yi("0x20")]())[Yi("0x22")]((t=>{return e=t,(n=this[Yi("0x35")][Yi("0x12")][Yi("0x7")])[Yi("0xe")](e[Yi("0x38")],Yi("0x1"))&&!n[Yi("0x36")](e)&&Yi("0x1")!=e[Yi("0x28")];var e,n}));t.model[Yi("0xf")]((()=>{for(const t of i)n[Yi("0xd")](t,{commandName:Yi("0x1"),commandParams:[],formatGroupId:Yi("0x5")},fs(t))}))})),n[Yi("0x24")][Yi("0x32")]((t=>{const{data:n}=t;if(n&&"paragraph"==n[Yi("0x1c")])return{type:Yi("0x2d"),content:Yo(e,Yi("0x27"),Yo(e,Yi("0x2b")))}})),n.enableCommand(Yi("0x18")),t[Yi("0x31")][Yi("0x2f")].on(Yi("0x26"),ea(t),{priority:Yi("0xc")}),t.data[Yi("0x2f")].on(Yi("0x26"),((e,n,o)=>{o[Yi("0x1e")].showSuggestionHighlights&&ea(t,{showActiveMarker:!1})(e,n,o)}),{priority:"highest"});const o=n[Yi("0x24")];o[Yi("0x32")]((n=>{if(Yi("0x0")!==n[Yi("0x25")])return;const{start:s,end:r}=n[Yi("0x4")]();if(!s[Yi("0xa")](r)||!s.nodeAfter)return;const i=t[Yi("0x12")][Yi("0x7")],a=s[Yi("0x23")];return i[Yi("0x3a")](a)&&!i[Yi("0x15")](a)&&i[Yi("0xe")](a,"$text")?{type:"insertion",content:Yo(e,Yi("0x21"),o[Yi("0x1d")](a,1))}:void 0}))}}function ea(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Yi("0x1f")][Yi("0x29")](Yi("0x13")),i=o[Yi("0x3c")][Yi("0x1b")],a=o.markerRange[Yi("0x11")],x=t.model[Yi("0x7")];if(!i[Yi("0xa")](a)||!i[Yi("0x23")])return;const c=i[Yi("0x23")];if(x[Yi("0x3a")](c)&&!x.isLimit(c)&&x[Yi("0xe")](c,"$text")){if(!s[Yi("0x8")][Yi("0x6")](o.markerRange,n[Yi("0x28")]))return;const t=s[Yi("0x33")][Yi("0x3b")](Yi("0x10"),{class:Yi("0xb")}),i=s[Yi("0x30")][Yi("0x37")](a);e&&r.activeMarkers.includes(o.markerName)&&s.writer[Yi("0x1a")](Yi("0x34"),t),s[Yi("0x33")][Yi("0x39")](i,t),s.mapper[Yi("0x2")](t,o[Yi("0x19")])}}}const na=["*Remove all formatting*","TrackChangesEditing","schema","markInlineFormat","getAttributes","afterInit","isCollapsed","editor","model","isFormatting","from","removeFormat","plugins","format","_descriptionFactory","createRangeOn","getItems","change","enableCommand","registerDescriptionCallback","RemoveFormatEditing","commandName","selection"];var oa,sa;oa=na,sa=392,function(t){for(;--t;)oa.push(oa.shift())}(++sa);const ra=function(t,e){return na[t-=0]};class ia extends t.Plugin{[ra("0x4")](){const t=this[ra("0x6")];if(!t.plugins.has(ra("0x13")))return;const e=t[ra("0xb")].get(ra("0x0"));e[ra("0x11")]("removeFormat",(n=>{const o=t[ra("0x7")].document[ra("0x15")];o[ra("0x5")]?n():t[ra("0x7")][ra("0x10")]((()=>{const n=Array[ra("0x9")](o.getRanges());for(const o of n)for(const n of o[ra("0xf")]())aa(n,t.model[ra("0x1")])&&e[ra("0x2")](t.model[ra("0xe")](n),{commandName:"removeFormat",commandParams:[]})}))})),e[ra("0xd")][ra("0x12")]((e=>{const{data:n}=e;if(n&&ra("0xa")==n[ra("0x14")])return{type:ra("0xc"),content:Yo(t.locale,ra("0x16"))}}))}}function aa(t,e){for(const[n]of t[ra("0x3")]()){const t=e.getAttributeProperties(n);if(t&&t[ra("0x8")])return!0}return!1}const xa=["afterInit","get","goToPreviousRestrictedEditingException","discardSelectedSuggestions","trackChanges","plugins","has","goToNextRestrictedEditingException","acceptAllSuggestions","RestrictedEditingModeEditing","editor","enableCommand","TrackChangesEditing","discardSuggestion"];var ca,la;ca=xa,la=368,function(t){for(;--t;)ca.push(ca.shift())}(++la);const da=function(t,e){return xa[t-=0]};class ua extends t.Plugin{[da("0xa")](){const t=this[da("0x6")];if(!t[da("0x1")][da("0x2")](da("0x5")))return;const e=t[da("0x1")][da("0xb")](da("0x8"));e[da("0x7")](da("0xc")),e[da("0x7")](da("0x3"));const n=t[da("0x1")][da("0xb")](da("0x5"));n.enableCommand(da("0x0")),n[da("0x7")]("acceptSuggestion"),n[da("0x7")](da("0x9")),n[da("0x7")](da("0x4")),n.enableCommand("discardAllSuggestions"),n[da("0x7")]("acceptSelectedSuggestions"),n[da("0x7")](da("0xd"))}}const ga=["insert","shiftEnter","addClass","name","addMarker:suggestion","markerName","split","registerElementLabel","createUIElement","editor","get","options","markerRange","ck-suggestion-marker-","consumable","getItems","plugins","deletion","high","mapper","element","test","ELEMENT_LINE_BREAK","editing","locale","toViewPosition","includes","init","writer","TrackChangesEditing","softBreak","_descriptionFactory","ck-suggestion-marker--active","model"];var ma,fa;ma=ga,fa=294,function(t){for(;--t;)ma.push(ma.shift())}(++fa);const ha=function(t,e){return ga[t-=0]};class pa extends t.Plugin{static get requires(){return[nr.ShiftEnter]}[ha("0x5")](){const t=this[ha("0x15")],e=t[ha("0x1c")][ha("0x16")]("TrackChangesEditing");e.enableCommand(ha("0xd")),t.editing.downcastDispatcher.on("addMarker:suggestion:insertion",ba(t),{priority:"high"}),t[ha("0x1")].downcastDispatcher.on("addMarker:suggestion:deletion",ba(t),{priority:ha("0x1e")}),t.data.downcastDispatcher.on(ha("0x10"),((e,n,o)=>{o[ha("0x17")].showSuggestionHighlights&&ba(t,{showActiveMarker:!1})(e,n,o)})),e[ha("0x9")][ha("0x13")](ha("0x8"),(e=>Yo(t[ha("0x2")],ha("0x0"),e)))}}function ba(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[ha("0x1c")][ha("0x16")](ha("0x7"));if(!s[ha("0x1a")][ha("0x21")](o[ha("0x18")],n[ha("0xf")]))return;const i=t[ha("0xb")];for(const t of o.markerRange[ha("0x1b")]()){if(!t.is(ha("0x20"),ha("0x8")))continue;const n=ha("0x1d")==o[ha("0x11")][ha("0x12")](":")[1]?"merge":"split",a=s[ha("0x6")][ha("0x14")]("span",{class:ha("0x19")+n}),x=s[ha("0x1f")][ha("0x3")](i.createPositionBefore(t));e&&r.activeMarkers[ha("0x4")](o.markerName)&&s[ha("0x6")][ha("0xe")](ha("0xa"),a),s[ha("0x6")][ha("0xc")](x,a),s[ha("0x1f")].bindElementToMarker(a,o[ha("0x11")])}}}const Ea=["StandardEditingModeEditing","TrackChangesEditing","isCollapsed","has","afterInit","commands","locale","selection","from","value","document","getRanges","change","format","model","FORMAT_RESTRICTED_DISABLED","forceValue","editor","plugins","_descriptionFactory","FORMAT_RESTRICTED_ENABLED","registerDescriptionCallback","get","restrictedEditingException","enableCommand"];var _a,Ta;_a=Ea,Ta=234,function(t){for(;--t;)_a.push(_a.shift())}(++Ta);const Ca=function(t,e){return Ea[t-=0]};class ya extends t.Plugin{[Ca("0x14")](){const t=this[Ca("0x8")],e=t[Ca("0x5")],n=t[Ca("0x16")];if(!t[Ca("0x9")][Ca("0x13")](Ca("0x10")))return;const o=t[Ca("0x9")][Ca("0xd")](Ca("0x11")),s=Ca("0xe"),r=t[Ca("0x15")][Ca("0xd")](s);o[Ca("0xf")](s,((t,n={})=>{const i=e[Ca("0x1")][Ca("0x17")];if(i[Ca("0x12")])return void t(n);const a=void 0!==n[Ca("0x7")]?n[Ca("0x7")]:!r[Ca("0x0")];e[Ca("0x3")]((()=>{const t=Array[Ca("0x18")](i[Ca("0x2")]());for(const n of t){const t=a?[n]:ms(s,n,e);for(const e of t)o.markInlineFormat(e,{commandName:s,commandParams:[{forceValue:a}]})}}))})),o[Ca("0xa")][Ca("0xc")]((t=>{const{data:e}=t;if(e&&e.commandName==s)return e.commandParams[0][Ca("0x7")]?{type:"format",content:Yo(n,Ca("0xb"))}:{type:Ca("0x4"),content:Yo(n,Ca("0x6"))}}))}}const ka=["has","change","createRangeOn","editor","normalizeConfig","inline","modelElements","getItems","classes","DataSchema","block","enabledStyles","commands","isBlock","isCollapsed","document","includes","plugins","format","markBlockFormat","selection","style:","add","afterInit","_descriptionFactory","name","value","locale","TrackChangesEditing","forceValue","styleName","style","toLowerCase","from","style.definitions","get","element","model","every","find","*Remove format:* %0","_getStyleDefinition","StyleUtils","*Format:* %0","Style"];var Aa,va;Aa=ka,va=476,function(t){for(;--t;)Aa.push(Aa.shift())}(++va);const Ra=function(t,e){return ka[t-=0]};class Sa extends t.Plugin{[Ra("0x2a")](){const t=this[Ra("0x16")];if(!t[Ra("0x24")][Ra("0x13")](Ra("0x12")))return;const e=t[Ra("0x1f")][Ra("0x9")](Ra("0x5")),n=t[Ra("0x24")][Ra("0x9")](Ra("0x2")),o=t[Ra("0x1")],s=t[Ra("0x24")][Ra("0x9")](Ra("0x1c")),r=t[Ra("0x24")][Ra("0x9")](Ra("0x10"))[Ra("0x17")](s,t.config[Ra("0x9")](Ra("0x8")));n.enableCommand(Ra("0x5"),((o,{styleName:i})=>{const a=t[Ra("0xb")][Ra("0x22")][Ra("0x27")],x=this[Ra("0xf")](i,r);if(!x)return;if(!e[Ra("0x1e")][Ra("0x23")](i))return;if(a[Ra("0x21")]&&!x.isBlock)return void o({styleName:i});const c=!e[Ra("0x0")][Ra("0x23")](x[Ra("0x2c")]);if(x[Ra("0x20")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o.getAncestors({includeSelf:!0,parentFirst:!0});for(const o of t)if(e.includes(o[Ra("0x2c")])){n[Ra("0x29")](o);break}}return n}(a.getSelectedBlocks(),x[Ra("0x19")]);t.model.change((()=>{for(const t of e)n[Ra("0x26")](t,{commandName:Ra("0x5"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:Ra("0x28")+i})}))}else{let e=Array.from(a.getRanges());if(!c){const n=Array[Ra("0x7")](s.getDefinitionsForView(x[Ra("0xa")],!1))[0][Ra("0xb")],o=[];for(const s of e){const e=this._getRangesWithClasses(t.model,s,x.classes,n);o.push(...e)}e=o}t[Ra("0xb")][Ra("0x14")]((()=>{for(const t of e)n.markInlineFormat(t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Ra("0x2b")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&Ra("0x5")===e.commandName)return e.commandParams[0][Ra("0x3")]?{type:"format",content:Yo(o,Ra("0x11"),e.commandParams[0].styleName[Ra("0x6")]())}:{type:Ra("0x25"),content:Yo(o,Ra("0xe"),e.commandParams[0][Ra("0x4")][Ra("0x6")]())}}))}[Ra("0xf")](t,e){let n=e[Ra("0x1d")].find((e=>e[Ra("0x2c")]===t));return n||(n=e[Ra("0x18")][Ra("0xd")]((e=>e.name===t))),n}_getRangesWithClasses(t,e,n,o){const s=[];for(const r of e[Ra("0x1a")]()){const e=r.getAttribute(o);e&&n[Ra("0xc")]((t=>e[Ra("0x1b")].includes(t)))&&s.push(t[Ra("0x15")](r))}return s}}const Ia=["options","differ","hasAttribute","addRange","createRangeIn","forceValue","push","getAttribute","every","change:data","writer","batch","removeTableRow","element","ELEMENT_TABLE_COLUMN_WITH_TEXT","join","rowspan","mapper","maxRow","insert","removeClass","map","nodeAfter","markMultiRangeInsertion","above","*Remove:* %0","locale","selectTableColumn","root","ELEMENT_TABLE_ROW_WITH_TEXT","some","insertion","getCellLocation","data","classes","getColumnIndexes","MIN_SAFE_INTEGER","highest","min","name","subType","tableColumn","detach","item","_tablePostFixingSubtypes","insertTableColumnRight","table","tableCell","accept","addMarker:suggestion","oldRange","createPositionAt","$graveyard","selection","isInContent","createTableWalker","toLowerCase","isEqual","add","get","values","maxColumn","_tableSuggestions","span","deletion","_getCoordsForCells","addClass","setSelection","type","last","getSuggestion","getChildren","getFirstRange","enableCommand","model","getRanges","getItems","createRangeOn","commands","_getSuggestionCoords","getSelectionAffectedTableCells","findAncestor","execute","ELEMENT_TABLE_ROW","has","TableUtils","_descriptionFactory","$textProxy","cell","start","insertTableRowBelow","suggestion","getChanges","document","plugins","tablePaste","downcastDispatcher","substr","getContainedElement","max","editor","showSuggestionHighlights","rootName","isIntersectingWithRange","colspan","afterInit","tableRow","filter","refresh","nodeBefore","first","enqueueChange","removeTableColumn","*Insert:* %0","length","MAX_SAFE_INTEGER","getChangedMarkers","isTouching","change","minRow","startsWith","_setupColumnsRowsFixing","from","left","end","TrackChangesEditing","_splitMarkerName","_suggestionFactory","fromRange","_acceptFormatSuggestionCallbackFactory","registerCustomCallback","getRowIndexes","ELEMENT_TABLE_WITH_TEXT","ELEMENT_TABLE_COLUMN"];var La,Na;La=Ia,Na=201,function(t){for(;--t;)La.push(La.shift())}(++Na);const wa=function(t,e){return Ia[t-=0]};class Ma extends t.Plugin{constructor(t){super(t),this[wa("0x6f")]=[wa("0x27"),wa("0x6c")],this[wa("0x81")]=new Set}[wa("0x26")](){const t=this[wa("0x21")],e=t[wa("0x7")][wa("0x1a")].selection;if(!t.plugins[wa("0x11")]("TableEditing"))return;const n=t[wa("0x5d")],o=t[wa("0x1b")][wa("0x7e")](wa("0x3a")),s=t.plugins[wa("0x7e")]("TableUtils");o[wa("0x13")].registerElementLabel(wa("0x71"),(t=>Yo(n,"ELEMENT_TABLE",t))),this[wa("0x36")](),o[wa("0x6")]("insertTable"),o[wa("0x6")]("selectTableRow"),o[wa("0x6")](wa("0x5e"));for(const n of["insertTableRowAbove",wa("0x17")]){const r=t.commands[wa("0x7e")](n);o.enableCommand(n,(n=>{t[wa("0x7")][wa("0x33")]((t=>{n();const i=wa("0x5b")===r.order,a=s[wa("0xd")](e),x=s[wa("0x40")](a),c=i?x.first-1:x[wa("0x2")]+1,l=a[0][wa("0xe")]("table"),d=s.createTableWalker(l,{startRow:c,endRow:c}),u=Array.from(d)[wa("0x58")]((e=>t[wa("0xa")](e[wa("0x15")])));o[wa("0x5a")](u,"tableRow")}))}))}for(const n of["insertTableColumnLeft",wa("0x70")]){const r=t.commands.get(n);o[wa("0x6")](n,(n=>{t[wa("0x7")][wa("0x33")]((t=>{n();const i=wa("0x38")===r.order,a=s.getSelectionAffectedTableCells(e),x=s.getColumnIndexes(a),c=i?x.first-1:x[wa("0x2")]+1,l=a[0][wa("0xe")](wa("0x71")),d=s[wa("0x7a")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[wa("0x37")](d)[wa("0x58")]((e=>t[wa("0xa")](e[wa("0x15")])));o[wa("0x5a")](u,"tableColumn")}))}))}for(const n of[wa("0x4f"),wa("0x2d")]){const r=n[wa("0x1e")](11),i=r[wa("0x7b")](),a=i[wa("0x1e")](0,3)+wa("0x82"),x=wa("0x71")+r,c=wa("0x69")+r,l="max"+r;o[wa("0x6")](n,(()=>{t[wa("0x7")].change((t=>{const r=s[wa("0xd")](e),d=r[0][wa("0xe")](wa("0x71"));let u;if(wa("0x4f")==n){const t=s[wa("0x40")](r);u={startRow:t[wa("0x2b")],endRow:t[wa("0x2")],includeAllSlots:!0}}else{const t=s[wa("0x66")](r);u={startColumn:t[wa("0x2b")],endColumn:t[wa("0x2")],includeAllSlots:!0}}const g=s[wa("0x7a")](d,u),m=Array[wa("0x37")](g)[wa("0x58")]((({cell:t})=>t)),f=Oa(m.filter((t=>t.hasAttribute(a)))),h=Oa(m[wa("0x28")]((t=>!t.hasAttribute(a)))).map((e=>t[wa("0xa")](e))),p=o.markMultiRangeDeletion(h,x);if(p&&(wa("0x27")==p[wa("0x6b")]||wa("0x6c")==p.subType)){const e=this[wa("0xc")](p);for(const n of f){const o=t[wa("0xa")](n),r=s[wa("0x63")](n),x=n[wa("0x4a")](a)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+x<=u&&p.addRange(o)}}}))}))}function r(n){const o=Array[wa("0x37")](e[wa("0x8")]())[wa("0x58")]((t=>i.LiveRange[wa("0x3d")](t)));t[wa("0x7")].change((e=>{const s=e[wa("0x4e")];n=n[wa("0x28")]((t=>wa("0x77")!=t.root[wa("0x23")])),e[wa("0x0")](n),t[wa("0xb")][wa("0x7e")](wa("0x4f"))[wa("0x29")](),t.execute(wa("0x4f"),{forceDefaultExecution:!0}),t.model.enqueueChange((()=>{t[wa("0x7")][wa("0x2c")](s,(t=>{const e=o[wa("0x28")]((t=>"$graveyard"!=t[wa("0x5f")][wa("0x23")]));e[wa("0x2f")]>0&&t.setSelection(e);for(const t of o)t[wa("0x6d")]()}))}))}))}function x(n){t.model[wa("0x33")]((o=>{const s=Array.from(e[wa("0x8")]())[wa("0x58")]((t=>i.LiveRange[wa("0x3d")](t))),r=[];for(const t of n)for(const e of t[wa("0x9")]({shallow:!0}))r[wa("0x49")](e);for(const e of r)wa("0x77")!=e[wa("0x5f")].rootName&&(o.setSelection(o[wa("0x76")](e,0)),t.commands[wa("0x7e")](wa("0x2d"))[wa("0x29")](),t.execute("removeTableColumn",{forceDefaultExecution:!0}));const a=s[wa("0x28")]((t=>"$graveyard"!=t[wa("0x5f")][wa("0x23")]));a[wa("0x2f")]>0&&o[wa("0x0")](a);for(const t of s)t[wa("0x6d")]()}))}function c(t,e){return e[wa("0x4b")]((e=>t[wa("0x61")]((t=>t.end[wa("0x7c")](e[wa("0x16")])||e[wa("0x39")][wa("0x7c")](t[wa("0x16")])))))}function l(t,e){return t[wa("0x61")]((t=>e[wa("0x61")]((e=>t[wa("0x39")][wa("0x32")](e.start)))))}t.data[wa("0x1d")].on(wa("0x74"),((t,e,n)=>{if(!n[wa("0x43")][wa("0x22")])return;const o=e[wa("0x6e")];if(!o)return;const s=n[wa("0x54")].toViewElement(o);function r(t){return Array.isArray(t)?t:[t]}s&&wa("0x72")===o.name&&(0,a.setHighlightHandling)(s,n[wa("0x4d")],((t,e,n)=>n[wa("0x85")](r(e[wa("0x65")]),t)),((t,e,n)=>n[wa("0x57")](r(e.classes),t)))}),{priority:wa("0x68")}),o._descriptionFactory.registerDescriptionCallback((t=>{if(wa("0x62")!=t[wa("0x1")]&&"deletion"!=t[wa("0x1")])return;const e=t[wa("0x1f")]();if(null!=e&&e.is(wa("0x50"),wa("0x71"))){if("insertion"==t[wa("0x1")]){const e=t.getItems()[wa("0x28")]((t=>t.is("$textProxy")))[wa("0x58")]((t=>t[wa("0x64")]));if(e[wa("0x2f")])return{type:"insertion",content:Yo(n,wa("0x2e"),Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e.join(" ")+'"'))}}if(wa("0x83")==t[wa("0x1")]){const e=t[wa("0x9")]().filter((t=>t.is(wa("0x14")))).map((t=>t[wa("0x64")]));if(e[wa("0x2f")])return{type:wa("0x83"),content:Yo(n,"*Remove:* %0",Yo(n,wa("0x41"),'"'+e[wa("0x52")](" ")+'"'))}}}})),o._descriptionFactory.registerDescriptionCallback((t=>{if(wa("0x27")==t[wa("0x6b")]){const e=t.getItems()[wa("0x28")]((t=>t.is(wa("0x14"))))[wa("0x58")]((t=>t[wa("0x64")])),o=this[wa("0xc")](t),s=o[wa("0x55")]-o[wa("0x34")]+1;if(wa("0x62")==t[wa("0x1")])return e[wa("0x2f")]?{type:"insertion",content:Yo(n,"*Insert:* %0",Yo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[s,'"'+e[wa("0x52")](" ")+'"']))}:{type:wa("0x62"),content:Yo(n,"*Insert:* %0",Yo(n,wa("0x10"),s))};if(wa("0x83")==t[wa("0x1")])return e[wa("0x2f")]?{type:wa("0x83"),content:Yo(n,wa("0x5c"),Yo(n,wa("0x60"),[s,'"'+e[wa("0x52")](" ")+'"']))}:{type:"deletion",content:Yo(n,"*Remove:* %0",Yo(n,wa("0x10"),s))}}if(wa("0x6c")==t[wa("0x6b")]){const e=t[wa("0x9")]()[wa("0x28")]((t=>t.is(wa("0x14"))))[wa("0x58")]((t=>t[wa("0x64")])),o=this[wa("0xc")](t),s=o[wa("0x80")]-o.minColumn+1;if(wa("0x62")==t[wa("0x1")])return e[wa("0x2f")]?{type:wa("0x62"),content:Yo(n,wa("0x2e"),Yo(n,wa("0x51"),[s,'"'+e.join(" ")+'"']))}:{type:wa("0x62"),content:Yo(n,wa("0x2e"),Yo(n,wa("0x42"),s))};if(wa("0x83")==t[wa("0x1")])return e[wa("0x2f")]?{type:wa("0x83"),content:Yo(n,wa("0x5c"),Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e[wa("0x52")](" ")+'"']))}:{type:"deletion",content:Yo(n,wa("0x5c"),Yo(n,wa("0x42"),s))}}})),o[wa("0x3c")].registerCustomCallback(wa("0x62"),wa("0x27"),"discard",r),o[wa("0x3c")][wa("0x3f")](wa("0x83"),"tableRow","accept",r),o[wa("0x3c")][wa("0x3f")](wa("0x62"),wa("0x6c"),"discard",x),o[wa("0x3c")].registerCustomCallback("deletion",wa("0x6c"),wa("0x73"),x),o[wa("0x3c")][wa("0x3f")](wa("0x62"),"tableColumn","join",c),o[wa("0x3c")].registerCustomCallback("deletion","tableColumn",wa("0x52"),c),o._suggestionFactory.registerCustomCallback(wa("0x62"),"tableRow","join",l),o[wa("0x3c")][wa("0x3f")]("deletion","tableRow",wa("0x52"),l)}[wa("0x3e")](){const t=this[wa("0x21")],e=t[wa("0x7")].document[wa("0x78")];return(n,o)=>{t[wa("0x7")][wa("0x33")]((s=>{const{commandName:r,commandParams:a}=o;let x=n[0][wa("0x39")][wa("0x2a")];a&&a[0]&&!1===a[0][wa("0x48")]&&(x=n[0][wa("0x16")].nodeAfter);const c=s[wa("0x47")](x);if(wa("0x77")==c[wa("0x5f")][wa("0x23")])return;const l=Array.from(e[wa("0x8")]())[wa("0x58")]((t=>i.LiveRange[wa("0x3d")](t)));s[wa("0x0")](c),t[wa("0xb")][wa("0x7e")](r).refresh(),a.push({forceDefaultExecution:!0}),t[wa("0xf")](r,...a);const d=l.filter((t=>wa("0x77")!=t[wa("0x5f")][wa("0x23")]));d[wa("0x2f")]>0&&s[wa("0x0")](d);for(const t of l)t[wa("0x6d")]()}))}}[wa("0x84")](t){const e=this[wa("0x21")][wa("0x1b")][wa("0x7e")](wa("0x12"));let n=Number[wa("0x30")],o=Number[wa("0x67")],s=Number[wa("0x30")],r=Number[wa("0x67")];for(const i of t){if("$graveyard"==i[wa("0x5f")][wa("0x23")])continue;const{row:t,column:a}=e[wa("0x63")](i),x=i[wa("0x45")](wa("0x53"))?i[wa("0x4a")](wa("0x53"))-1:0,c=i[wa("0x45")](wa("0x25"))?i[wa("0x4a")](wa("0x25"))-1:0;n=t<n?t:n,o=t+x>o?t+x:o,s=a<s?a:s,r=a+c>r?a+c:r}return{minRow:n,maxRow:o,minColumn:s,maxColumn:r}}[wa("0x36")](){const t=this[wa("0x21")],e=t[wa("0x1b")][wa("0x7e")](wa("0x3a")),n=t[wa("0x1b")].get(wa("0x12"));t.model.document.on(wa("0x4c"),(()=>{const n=Array[wa("0x37")](t.model[wa("0x1a")][wa("0x44")][wa("0x31")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[wa("0x3b")](t);if(wa("0x18")!=n)continue;if(null!=o[wa("0x75")])continue;const i=e[wa("0x3")](s);this[wa("0x6f")].includes(r)&&this[wa("0x81")][wa("0x7d")](i)}}),{priority:"low"});const o=(t,e)=>{let o=!1;const s=e[wa("0xa")](t),r=t[wa("0xe")](wa("0x71")),i=n[wa("0x63")](t);for(const e of this[wa("0x81")]){const n=e.subType,a=n[wa("0x35")](wa("0x1c")),x=n[wa("0x1e")](a?10:5),c=x[wa("0x7b")](),l=c[wa("0x1e")](0,3)+wa("0x82"),d="min"+x,u=wa("0x20")+x;if(!e[wa("0x79")])continue;if(r!=e[wa("0x5")]()[wa("0x16")][wa("0xe")]("table"))continue;if(e[wa("0x24")](s))continue;const g=t[wa("0x45")](l)?t.getAttribute(l)-1:0,m=this[wa("0xc")](e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e[wa("0x46")](s),o=!0)}return o};t[wa("0x7")][wa("0x1a")].registerPostFixer((e=>{let n=!1;for(const s of t[wa("0x7")][wa("0x1a")][wa("0x44")][wa("0x19")]())if(wa("0x56")==s[wa("0x1")])if("tableRow"==s[wa("0x6a")])for(const t of s.position[wa("0x59")][wa("0x4")]())n=n||o(t,e);else"tableCell"==s[wa("0x6a")]&&(n=n||o(s.position[wa("0x59")],e));return n}))}[wa("0xc")](t){return this._getCoordsForCells(t[wa("0x8")]()[wa("0x58")]((t=>t[wa("0x16")][wa("0x59")])))}}function Oa(t){return Array[wa("0x37")](new Set(t)[wa("0x7f")]())}const Fa=["markBlockFormat","rootName","format","set:isEnabled","length","*Merge cells*","TrackChangesEditing","type","plugins","execute","filter","locale","deletion","map","low","mergeTableCellRight","splitTableCellVertically","trackChanges","getFirstPosition","mergeTableCellUp","return","*Split cell:* horizontally","registerDescriptionCallback","commandName","from","_isForcedDefaultExecutionBlock","TableEditing","push","_areMergableCells","direction","formatBlock","get","add","editor","stop","tableCell","isEnabled","commands","registerCustomCallback","value","detach","containsRange","has","$graveyard","getSelectionAffectedTableCells","*Split cell:* vertically","markMultiRangeBlockFormat","afterInit","cell","getAncestors","_suggestionFactory","createTableWalker","mergeTableCells","horizontally","highest","element","getSuggestions","isInContent","_areSelectedCellsMergable","author","document","mergeTableCellDown","accept","selection","size","find","mergeTableCellLeft","enableCommand","getRanges","setSelection","TableUtils","findAncestor","createRangeOn","fromRange","table","_acceptFormatSuggestionCallbackFactory","model","change"];var Pa,Da;Pa=Fa,Da=299,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{static get requires(){return[Ma]}[Ba("0x3c")](){const t=this[Ba("0x2e")],e=t[Ba("0xb")][Ba("0x49")][Ba("0x4c")],n=t[Ba("0x18")];if(!t[Ba("0x15")][Ba("0x37")](Ba("0x27")))return;const o=t[Ba("0x15")][Ba("0x2c")]("TrackChangesEditing"),s=t[Ba("0x15")][Ba("0x2c")](Ba("0x5")),r=t[Ba("0x15")][Ba("0x2c")](Ma);r._tablePostFixingSubtypes[Ba("0x28")](Ba("0x41")),o.enableCommand(Ba("0x41"),(()=>{const e=s[Ba("0x39")](t[Ba("0xb")].document.selection);t[Ba("0xb")][Ba("0xc")]((()=>{o[Ba("0x3b")](e,{commandName:Ba("0x41"),commandParams:[]},[],Ba("0x41"))}))})),t[Ba("0x32")].get(Ba("0x41")).on(Ba("0x16"),((e,n)=>{t[Ba("0x32")][Ba("0x2c")](Ba("0x1e"))[Ba("0x34")]&&(n[Ba("0x11")]>0&&n[n[Ba("0x11")]-1]&&n[n.length-1].forceDefaultExecution||o[Ba("0x26")]||this[Ba("0x47")]()||e[Ba("0x2f")]())}),{priority:Ba("0x43")});for(const e of["mergeTableCellUp","mergeTableCellRight",Ba("0x4a"),Ba("0x1")]){const n=t[Ba("0x32")][Ba("0x2c")](e);o[Ba("0x2")](e,(()=>{const e=t[Ba("0xb")][Ba("0x49")].selection[Ba("0x1f")]()[Ba("0x3e")]()[Ba("0x0")]((t=>t.is("element",Ba("0x30")))),s=n.value;t[Ba("0xb")][Ba("0xc")]((()=>{o[Ba("0x3b")]([e,s],{commandName:Ba("0x41"),commandParams:[]},[],Ba("0x41"))}))}))}for(const e of[Ba("0x1d"),"splitTableCellHorizontally"]){const n=t[Ba("0x32")][Ba("0x2c")](e);o[Ba("0x2")](e,(()=>{const r=s.getSelectionAffectedTableCells(t[Ba("0xb")][Ba("0x49")].selection)[0],i=r[Ba("0x6")](Ba("0x9")),{column:a,row:x}=s.getCellLocation(r);let c=[];if(Ba("0x42")==n[Ba("0x2a")]){const t=s[Ba("0x40")](i,{startRow:x,endRow:x,includeAllSlots:!0});c=Array.from(t)[Ba("0x1a")]((t=>t[Ba("0x3d")]))}else{const t=s[Ba("0x40")](i,{column:a,includeAllSlots:!0});c=Array[Ba("0x25")](t)[Ba("0x1a")]((t=>t[Ba("0x3d")]))}t.model[Ba("0xc")]((t=>{o[Ba("0xd")](t.createRangeOn(r),{commandName:e,commandParams:[]},c,e)}))}))}o._descriptionFactory[Ba("0x23")]((t=>{const{data:e}=t;if(e)return Ba("0x41")==e.commandName?{type:"format",content:Yo(n,Ba("0x12"))}:void 0})),o._descriptionFactory[Ba("0x23")]((t=>{const{data:e}=t;if(e)return Ba("0x1d")==e.commandName?{type:Ba("0xf"),content:Yo(n,Ba("0x3a"))}:"splitTableCellHorizontally"==e[Ba("0x24")]?{type:Ba("0xf"),content:Yo(n,Ba("0x22"))}:void 0}));const a=r[Ba("0xa")]();for(const t of[Ba("0x20"),Ba("0x1c"),Ba("0x4a"),Ba("0x1")])o[Ba("0x3f")][Ba("0x33")](Ba("0x2b"),t,Ba("0x4b"),a);for(const t of[Ba("0x1d"),"splitTableCellHorizontally"])o[Ba("0x3f")][Ba("0x33")]("formatBlock",t,"accept",a);o[Ba("0x3f")].registerCustomCallback(Ba("0x2b"),Ba("0x41"),Ba("0x4b"),(n=>{t[Ba("0xb")].change((o=>{const s=Array.from(e[Ba("0x3")]()).map((t=>i.LiveRange[Ba("0x8")](t)));o[Ba("0x4")](n),t[Ba("0x32")][Ba("0x2c")](Ba("0x41")).refresh(),t[Ba("0x16")](Ba("0x41"),{forceDefaultExecution:!0});const r=s[Ba("0x17")]((t=>Ba("0x38")!=t.root[Ba("0xe")]));r[Ba("0x11")]>0&&o.setSelection(r);for(const t of s)t[Ba("0x35")]()}))}));for(const e of[Ba("0x20"),"mergeTableCellDown",Ba("0x1"),Ba("0x1c")]){const n=t[Ba("0x32")][Ba("0x2c")](e);n.on(Ba("0x10"),((e,o,s)=>{if(s){const o=t[Ba("0xb")][Ba("0x49")][Ba("0x4c")][Ba("0x1f")]()[Ba("0x3e")]()[Ba("0x0")]((t=>t.is(Ba("0x44"),Ba("0x30"))));this._areMergableCells(n[Ba("0x34")],o)||(e[Ba("0x21")]=!1,e[Ba("0x2f")]())}}),{priority:Ba("0x1b")})}}[Ba("0x47")](){const t=this.editor[Ba("0x32")][Ba("0x2c")](Ba("0x41")),e=this[Ba("0x2e")].plugins.get(Ba("0x5"));if(!t[Ba("0x31")])return!1;const n=e[Ba("0x39")](this[Ba("0x2e")][Ba("0xb")].document[Ba("0x4c")]);for(const t of n)for(const e of n)if(t!=e&&!this._areMergableCells(t,e))return!1;return!0}[Ba("0x29")](t,e){const n=this[Ba("0x2e")][Ba("0x15")][Ba("0x2c")](Ba("0x13")),o=this[Ba("0x2e")][Ba("0xb")][Ba("0x7")](t),s=this[Ba("0x2e")][Ba("0xb")][Ba("0x7")](e),r=new Set,i=new Set;for(const t of n[Ba("0x45")]())if(("insertion"==t[Ba("0x14")]||Ba("0x19")==t.type||Ba("0x41")==t.subType)&&t[Ba("0x46")])for(const e of t[Ba("0x3")]())e.containsRange(o,!0)&&r[Ba("0x2d")](t[Ba("0x14")]+":"+t[Ba("0x48")].id),e[Ba("0x36")](s,!0)&&i[Ba("0x2d")](t[Ba("0x14")]+":"+t[Ba("0x48")].id);if(r[Ba("0x4d")]!=i.size)return!1;for(const t of r)if(!i[Ba("0x37")](t))return!1;return!0}}const Ua=["findAncestor","commands","forceValue","item","change","ck-suggestion-marker-","FORMAT_HEADER_ROW","isBefore","markerName","nodeAfter","_descriptionFactory","editing","TableEditing","getRowIndexes","model","TrackChangesEditing","_splitMarkerName","parent","getSuggestion","headingColumns","registerDescriptionCallback","get","options","data","FORMAT_HEADER_COLUMN","addClass","downcastDispatcher","setTableColumnHeader","data-suggestion","createRange","markBlockFormat","*Format:* %0","stop","getSelectionAffectedTableCells","cell","removeClass","highest","createPositionBefore","_acceptFormatSuggestionCallbackFactory","format","childCount","plugins","setAttribute","first","formatBlock","TableUtils","consume","commandName","toViewElement","mapper","_suggestionFactory","registerCustomCallback","showSuggestionHighlights","addMarker:suggestion","document","setTableRowHeader","requires","last","FORMAT_REGULAR_ROW","enableCommand","markerNameToElements","commandParams","table","getAttribute","markerRange","from","ck-suggestion-marker--active","end","writer","value","createPositionAfter","includes","getChild","editor","createTableWalker","unbindElementFromMarkerName","nodeBefore","activeMarkers"];var Ga,Ha;Ga=Ua,Ha=230,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Wa extends t.Plugin{static get[za("0x3c")](){return[Ma]}afterInit(){const t=this[za("0x4d")];if(!t[za("0x2d")].has(za("0x10")))return;const e=t.locale,n=t.plugins[za("0x19")](za("0x13")),o=t[za("0x2d")][za("0x19")]("TableUtils"),s=t[za("0x2d")][za("0x19")](Ma);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:a,id:x}=n._splitMarkerName(r.markerName),c=n.getSuggestion(x);if(!c[za("0x1b")]||za("0x1f")!=c.data[za("0x33")])return;if(r[za("0x7")])return void s[za("0x24")]();if(!i.consumable[za("0x32")](r[za("0x44")],s.name))return;const l=r[za("0x44")].start[za("0xd")],d=r.markerRange[za("0x47")][za("0x2")],u=l[za("0x15")][za("0x15")],{column:g}=o.getCellLocation(l),{column:m}=o.getCellLocation(d);for(let s=g;s<=m;s++){const c=o[za("0x0")](u,{column:s,includeAllSlots:!1});for(const o of c){const s=o[za("0x26")],c=i.mapper[za("0x34")](s);i.writer.addClass("ck-suggestion-marker-"+a,c),e&&i[za("0x48")][za("0x2e")](za("0x20"),x,c),i[za("0x35")].bindElementToMarker(c,r.markerName),t&&(n[za("0x3")][za("0x4b")](r.markerName)?i[za("0x48")][za("0x1d")]("ck-suggestion-marker--active",c):i.writer[za("0x27")](za("0x46"),c))}}}}n.enableCommand(za("0x3b"),((e,s)=>{const r=o[za("0x25")](t[za("0x12")][za("0x3a")].selection),i=o[za("0x11")](r),a=r[0][za("0x4")](za("0x42")),x=a[za("0x43")]("headingRows")||0,c=s&&null!==s.forceValue?s[za("0x6")]:!t[za("0x5")].get("setTableRowHeader").value,l=c?i[za("0x3d")]:i.first,d=a[za("0x4c")](l);let u;if(c){const e=a.getChild(x);if(d.index<e.index)return;u=t[za("0x12")][za("0x21")](t[za("0x12")][za("0x29")](e[za("0x4c")](0)),t.model[za("0x4a")](d[za("0x4c")](d[za("0x2c")]-1)))}else{const e=a[za("0x4c")](x-1);if(!e)return;u=t[za("0x12")][za("0x21")](t[za("0x12")].createPositionBefore(d.getChild(0)),t.model.createPositionAfter(e.getChild(e[za("0x2c")]-1)))}t[za("0x12")][za("0x8")]((()=>{n[za("0x22")](u,{commandName:"setTableRowHeader",commandParams:[{forceValue:c}]},[],"setTableRowHeader")}))})),n[za("0x3f")](za("0x1f"),((e,o)=>{const s=t[za("0x2d")][za("0x19")](za("0x31")),r=s[za("0x25")](t[za("0x12")].document.selection),i=s.getColumnIndexes(r),a=r[0][za("0x4")](za("0x42")),x=a[za("0x43")](za("0x17"))||0,c=o&&null!==o[za("0x6")]?o[za("0x6")]:!t[za("0x5")][za("0x19")]("setTableColumnHeader")[za("0x49")];let l;const d=a[za("0x4c")](0),u=c?i[za("0x3d")]:i[za("0x2f")],g=s[za("0x0")](a,{startRow:0,column:u,includeAllSlots:!1}),m=Array[za("0x45")](g)[0][za("0x26")];if(c){const e=d[za("0x4c")](x);if(m[za("0xb")](e))return;l=t[za("0x12")].createRange(t[za("0x12")][za("0x29")](e),t[za("0x12")][za("0x4a")](m))}else{const e=d[za("0x4c")](x-1);if(!e)return;l=t[za("0x12")][za("0x21")](t.model[za("0x29")](m),t.model[za("0x4a")](e))}t[za("0x12")][za("0x8")]((()=>{n[za("0x22")](l,{commandName:za("0x1f"),commandParams:[{forceValue:c}]},[],za("0x1f"))}))})),t[za("0xf")][za("0x1e")].on(za("0x39"),r(),{priority:za("0x28")}),t.data.downcastDispatcher.on("addMarker:suggestion",((t,e,n)=>{n[za("0x1a")][za("0x38")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:za("0x28")}),t[za("0xf")][za("0x1e")].on("removeMarker:suggestion",((t,e,o)=>{const{type:s,id:r}=n[za("0x14")](e[za("0xc")]),i=n[za("0x16")](r);if(!i.data||za("0x1f")!=i[za("0x1b")][za("0x33")])return;const a=o.mapper[za("0x40")](e[za("0xc")]);if(a)for(const t of a)o[za("0x48")][za("0x27")](za("0x9")+s,t),o[za("0x48")].removeClass("ck-suggestion-marker--active",t),o.writer.removeAttribute("data-suggestion",t),o.mapper[za("0x1")](t,e.markerName)}),{priority:za("0x28")}),n[za("0xe")][za("0x18")]((t=>{const{data:n}=t;if(n){if(za("0x3b")==n.commandName){const t=n[za("0x41")][0][za("0x6")];return o(Yo(e,za(t?"0xa":"0x3e")))}if("setTableColumnHeader"==n[za("0x33")]){const t=n.commandParams[0].forceValue;return o(Yo(e,t?za("0x1c"):"FORMAT_REGULAR_COLUMN"))}}function o(t){return{type:za("0x2b"),content:Yo(e,za("0x23"),t)}}}));const i=s[za("0x2a")]();n[za("0x36")].registerCustomCallback(za("0x30"),za("0x3b"),"accept",i),n[za("0x36")][za("0x37")](za("0x30"),za("0x1f"),"accept",i)}}const Va=["accept","tableCellPadding","rootName","getColumns","registerCustomCallback","document","subType","includes","getSuggestionCallback","discard","commands","cells","suggestionLoaded","getMarkers","$graveyard","markerName","length","redo","reduce","remove","for","first","TableUtils","add","getChanges","previousSibling","insertContent","elementToElement","insertRows","schema","model","createRange","createElement","ck-suggestion-marker-insertion","_tablePostFixingSubtypes","batch","root","removeColumns","getColumnIndexes","from","tablePasteChainId","createTableWalker","author","get","name","updateMarker","suggestion","content","TableClipboard","getAllAdjacentSuggestions","containsRange","setAttribute","newRange","push","createPositionBefore","differ","tableCellVerticalAlignment","_suggestionFactory","has","low","previous","insertion","tableCellSuggestion","editingDowncast","registerPostFixer","*Replace table cells*","columns","tableCellBorderColor","locale","forceDefaultExecution","markerToHighlight","attributes","removeMarker","tablePasteCell","value","suggestion:formatBlock:tablePasteCell","some","end","getRange","suggestionUnloaded","createRangeOn","type","tableCellHorizontalAlignment","markMultiRangeInsertion","set","ck-suggestion-marker--active","stop","getSuggestion","fill","tablePasteColumn","element","keys","fromEntries","move","markMultiRangeBlockFormat","getRowIndexes","dataDowncast","every","findAncestor","getChangedMarkers","tableCellBackgroundColor","high","conversion","getContainedElement","getShiftedBy","change","startsWith","view","getChild","trackChanges","find","isEmpty","showSuggestionHighlights","_descriptionFactory","tableCellBorderStyle","markers","suggestion-td","getRanges","registerDescriptionCallback","filter","tableCell","position","getChildren","isInContent","createRangeIn","_createdBatches","editor","options","isEqual","endColumn","oldRange","table","tablePaste","listenTo","getItems","getSuggestions","start","TrackChangesEditing","afterInit","requires","clipboardOutput","_getCoordsForCells","markerAttributes","column","rowInsertionRanges","plugins","unwrap","insert","columnInsertionIndexes","paragraph","editing","map","getTableIfOnlyTableInContent","nodeAfter","entries","rows","deletion","formatBlock","rowInsertionIndexes","Users","columnInsertionRanges","tablePasteRow","markMultiRangeDeletion","selection","_splitMarkerName"];var Ka,qa;Ka=Va,qa=389,function(t){for(;--t;)Ka.push(Ka.shift())}(++qa);const Xa=function(t,e){return Va[t-=0]},$a=["tableCellBorderWidth",Xa("0x8"),Xa("0x37"),Xa("0x17"),Xa("0xa2"),Xa("0x29"),Xa("0x6b")],Ja=Object[Xa("0x21")]($a[Xa("0x5c")]((t=>[t,null])));class Qa extends t.Plugin{static get[Xa("0x50")](){return[Ma]}[Xa("0x4f")](){const t=this[Xa("0x43")];if(!t[Xa("0x56")][Xa("0xa4")](Xa("0x9a")))return;const n=t[Xa("0x56")][Xa("0x95")](Xa("0x4e")),o=t[Xa("0x56")][Xa("0x95")](Xa("0x80")),s=t.plugins[Xa("0x95")](Ma),r=t[Xa("0x56")][Xa("0x95")](Xa("0x9a"));s[Xa("0x8c")][Xa("0x9f")](Xa("0x66"),"tablePasteColumn"),t[Xa("0x88")][Xa("0x87")].register(Xa("0x3"),{allowIn:"tableCell",allowContentOf:Xa("0x3d"),isLimit:!0}),t[Xa("0x2b")][Xa("0x85")]({model:Xa("0x3"),view:Xa("0x39")});let i=null;t.model.on(Xa("0x84"),((s,a)=>{const[x,c]=a,l=a[a[Xa("0x7a")]-1];l&&l[Xa("0xa")]||n._isForcedDefaultExecutionBlock||this.editor[Xa("0x74")][Xa("0x95")](Xa("0x32"))[Xa("0xf")]&&function(t,e,n,o,s){if(e&&!e.is("documentSelection"))return!1;const r=s[Xa("0x5d")](t,n);if(!r||!Ya(r,void 0,o))return!1;const i=o.getSelectionAffectedTableCells(n[Xa("0x6f")][Xa("0x68")]);if(!i[Xa("0x7a")])return!1;const a=i[0][Xa("0x27")](Xa("0x48")),x=o[Xa("0x24")](i),c=o[Xa("0x90")](i),l={startRow:x[Xa("0x7f")],endRow:x.last,startColumn:c.first,endColumn:c.last};return 1==i[Xa("0x7a")]&&(l.endRow+=o.getRows(r)-1,l[Xa("0x46")]+=o[Xa("0x6d")](r)-1),Ya(a,l,o)}(x,c,t[Xa("0x88")],o,r)&&(s[Xa("0x1b")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Xa("0x88")][Xa("0x2e")]((()=>{t[Xa("0x88")][Xa("0x84")](a[0],a[1],a[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:x,deletionRanges:c,cells:l}=i;s.length&&n[Xa("0x18")](s,Xa("0x66"),{tablePasteChainId:o}),r.length&&n[Xa("0x18")](r,Xa("0x1e"),{tablePasteChainId:o}),x[Xa("0x7a")]&&n[Xa("0x18")](x,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0}),c[Xa("0x7a")]&&n[Xa("0x67")](c,Xa("0x49"),{tablePasteChainId:o,skipNestingCheck:!0});const d=n[Xa("0x23")](l[Xa("0x5c")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],"tablePasteCell",{tablePasteChainId:o});if(d){const e=d[Xa("0x77")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[Xa("0x88")][Xa("0x15")](o),i=e[Xa("0x33")]((t=>t[Xa("0x13")]()[Xa("0x45")](r)));i&&n.push([i.name,s])}n[Xa("0x7a")]&&d[Xa("0x9d")](Xa("0x53"),Object[Xa("0x21")](n))}i=null})))}),{priority:e.priorities[Xa("0x2a")]+10}),t[Xa("0x56")][Xa("0x95")](Xa("0x9a")).on("_replaceTableSlotCell",((t,e)=>{const[n,o,,s]=e;if(!i)return;t.stop();const r=n.cell,a=o,x=Za(r),c=Za(a);t.return=r;let l=null,d=null;if(c||x)if(x&&!c){s[Xa("0x7d")](r[Xa("0x31")](0));for(const t of Array[Xa("0x91")](a[Xa("0x3f")]()))s.insert(t,r,Xa("0x12"));const t=i[Xa("0x63")][Xa("0x71")](n.row),e=i[Xa("0x59")][Xa("0x71")](n[Xa("0x54")]);t||e||(l=s.createRangeIn(r))}else c&&!x&&(d=s[Xa("0x41")](r));else{const t=s[Xa("0x8a")](Xa("0x3")),e=s[Xa("0x8a")](Xa("0x3"));s.wrap(s[Xa("0x41")](r),e),s[Xa("0x58")](t,r,0);for(const e of Array[Xa("0x91")](a.getChildren()))s[Xa("0x58")](e,t,Xa("0x12"));l=s[Xa("0x15")](t),d=s.createRangeOn(e)}const u=Array.from(a.getAttributes())[Xa("0x3c")]((([t])=>$a[Xa("0x71")](t)));i.cells[Xa("0x9f")]({element:r,attributes:u[Xa("0x7a")]?Object[Xa("0x21")](u):null}),l&&i.insertionRanges.push(l),d&&i.deletionRanges[Xa("0x9f")](d)}),{priority:Xa("0x2a")}),o.on("insertColumns",((e,n)=>{const[s,r={}]=n;if(!i)return;const a=r.at||0,x=r[Xa("0x7")]||1;i[Xa("0x59")]=new Array(x)[Xa("0x1d")](a)[Xa("0x5c")](((t,e)=>t+e));for(const{cell:e}of o[Xa("0x93")](s,{startColumn:a,endColumn:a+x-1}))i[Xa("0x65")][Xa("0x9f")](t[Xa("0x88")][Xa("0x15")](e))}),{priority:Xa("0x0")}),o.on(Xa("0x86"),((e,n)=>{const[s,r={}]=n;if(!i)return;const a=r.at||0,x=r[Xa("0x60")]||1;i.rowInsertionIndexes=new Array(x).fill(a)[Xa("0x5c")](((t,e)=>t+e));for(const{cell:e}of o[Xa("0x93")](s,{startRow:a,endRow:a+x-1}))i[Xa("0x55")][Xa("0x9f")](t.model[Xa("0x15")](e))}),{priority:Xa("0x0")}),n[Xa("0x36")][Xa("0x3b")]((e=>{if(e[Xa("0x70")]&&e[Xa("0x70")][Xa("0x2f")]("tablePaste"))return e.previous?{}:{type:Xa("0x2"),content:Yo(t[Xa("0x9")],Xa("0x6"))}}));const a=()=>{};for(const t of[Xa("0x49"),Xa("0x1e"),Xa("0x66"),Xa("0xe")])n[Xa("0xa3")][Xa("0x6e")](Xa("0x2"),t,"join",a),n[Xa("0xa3")][Xa("0x6e")]("deletion",t,"join",a);n[Xa("0xa3")].registerCustomCallback(Xa("0x62"),Xa("0xe"),Xa("0x73"),a),n[Xa("0xa3")].registerCustomCallback(Xa("0x62"),Xa("0xe"),Xa("0x6a"),((e,n,o)=>{const s=e[Xa("0x5c")]((t=>t.getContainedElement()))[Xa("0x3c")]((t=>t)),r=new Map(s[Xa("0x5c")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Xa("0x75")])e&&r[Xa("0x19")](t,e);else if(o&&o[Xa("0x53")])for(const[e,n]of Object[Xa("0x5f")](o.markerAttributes)){const o=t[Xa("0x88")][Xa("0x38")][Xa("0x95")](e),s=o?o[Xa("0x13")]()[Xa("0x2c")]():null;s&&r[Xa("0x19")](s,n)}t.model[Xa("0x2e")]((t=>{for(const[e,n]of r)t.setAttributes({...Ja,...n},e)}))}));const x=(e,o)=>{n[Xa("0xa3")][Xa("0x6e")](e,Xa("0x49"),o,((s,r,i)=>{t[Xa("0x88")][Xa("0x2e")]((t=>{const a=[];for(const t of s){const e=t[Xa("0x4d")][Xa("0x5e")];e.is(Xa("0x1f"),Xa("0x3"))&&a[Xa("0x9f")](e)}n._suggestionFactory[Xa("0x72")](e,null,o)(s,r,i);for(const e of a)Xa("0x78")!=e[Xa("0x8e")][Xa("0x6c")]&&t[Xa("0x57")](e)}))}))};x(Xa("0x2"),Xa("0x6a")),x(Xa("0x2"),Xa("0x73")),x("deletion","accept"),x(Xa("0x61"),"discard"),n._suggestionFactory[Xa("0x6e")](Xa("0x2"),Xa("0x66"),"discard",(t=>{const e=t[Xa("0x5c")]((t=>t.getContainedElement())),n=e[0][Xa("0x27")](Xa("0x48")),{minRow:r,maxRow:i}=s[Xa("0x52")](e);o.removeRows(n,{at:r,rows:i-r+1})})),n[Xa("0xa3")][Xa("0x6e")](Xa("0x2"),Xa("0x1e"),"discard",(t=>{const e=t[Xa("0x5c")]((t=>t.getContainedElement())),n=e[0][Xa("0x27")]("table"),{minColumn:r,maxColumn:i}=s._getCoordsForCells(e);o[Xa("0x8f")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e.subType||!e[Xa("0x70")][Xa("0x2f")](Xa("0x49")))return;const o=e[Xa("0xc")].tablePasteChainId,s=n[Xa("0x4c")]().filter((t=>t[Xa("0x40")]&&t[Xa("0xc")]&&t[Xa("0xc")][Xa("0x92")]==o));s[Xa("0x7a")]&&e.getAllAdjacentSuggestions().length!=s.length&&s[Xa("0x7c")](((t,e)=>(t.next=e,e[Xa("0x1")]=t,e)))};function l(t,e=!0){const{id:o}=n[Xa("0x69")](t.markerName),s=["ck-suggestion-marker",Xa("0x8b")],r=n.activeMarkers[Xa("0x71")](t[Xa("0x79")]);return r&&s[Xa("0x9f")](Xa("0x1a")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Xa("0x76"),c,{priority:Xa("0x2a")}),n.on(Xa("0x14"),c,{priority:"high"}),t[Xa("0x88")].document.registerPostFixer((()=>{let e=!1;const o=Array[Xa("0x91")](t[Xa("0x88")][Xa("0x6f")][Xa("0xa1")][Xa("0x28")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:a}=n[Xa("0x69")](s);if("suggestion"!=o||Xa("0x61")!=i||r.oldRange)continue;if(!n.hasSuggestion(a))continue;const x=n[Xa("0x1c")](a)[Xa("0x3a")](),c=t[Xa("0x56")][Xa("0x95")]("Users").me;for(const t of n[Xa("0x4c")]())if(t[Xa("0x40")]&&t[Xa("0x94")]==c&&Xa("0x62")==t.type&&Xa("0xe")==t[Xa("0x70")]&&t[Xa("0x3a")]()[Xa("0x26")]((t=>x[Xa("0x11")]((e=>e[Xa("0x9c")](t,!0))))))for(const n of t[Xa("0x9b")]())n[Xa("0x40")]&&(n[Xa("0x73")](),e=!0)}return e})),t[Xa("0x88")][Xa("0x6f")].registerPostFixer((e=>{const o=t[Xa("0x74")][Xa("0x95")](Xa("0x7b"));if(!o||!o[Xa("0x42")][Xa("0xa4")](e[Xa("0x8d")]))return!1;let s=!1;const r=t.plugins[Xa("0x95")](Xa("0x64")).me,i=t[Xa("0x88")][Xa("0x6f")][Xa("0xa1")][Xa("0x82")](),a=Array[Xa("0x91")](t[Xa("0x88")][Xa("0x6f")].differ[Xa("0x28")]())[Xa("0x3c")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Xa("0x69")](t);return Xa("0x98")==o&&"tablePaste"==s&&i==r.id&&!e[Xa("0x47")]}));for(const t of i){if(Xa("0x58")!=t[Xa("0x16")]||Xa("0x3")!=t[Xa("0x96")]||1!=t[Xa("0x7a")])continue;const n=e[Xa("0x89")](t[Xa("0x3e")],t[Xa("0x3e")][Xa("0x2d")](1));if(!a.find((({data:t})=>t.newRange[Xa("0x45")](n))))for(const{name:t,data:o}of a)if(n[Xa("0x9c")](o[Xa("0x9e")])){e[Xa("0x97")](t,{range:n}),s=!0;break}}return s})),t[Xa("0x88")][Xa("0x6f")][Xa("0x5")]((e=>{let o=!1;const s=t.plugins[Xa("0x95")]("Users").me,r=n[Xa("0x4c")]()[Xa("0x3c")]((t=>t[Xa("0x40")]&&t[Xa("0x94")]==s)),i=new Set,a=new Set;for(const t of r)if(Xa("0x49")==t[Xa("0x70")])for(const e of t[Xa("0x77")]()){const n=e[Xa("0x13")]().getContainedElement();if(n)if(n.is("element",Xa("0x3"))&&Za(n)){t[Xa("0xd")](e[Xa("0x96")]),i.add(n),o=!0;const s=n.nextSibling,r=n[Xa("0x83")],x=s&&s.is(Xa("0x1f"),Xa("0x3")),c=r&&r.is(Xa("0x1f"),Xa("0x3"));x&&!i.has(s)&&a.add(s),c&&!i[Xa("0xa4")](r)&&a[Xa("0x81")](r)}else n.is(Xa("0x1f"),Xa("0x5a"))&&n[Xa("0x34")]&&(t[Xa("0xd")](e[Xa("0x96")]),o=!0)}else if(Xa("0xe")==t.subType){if(!t[Xa("0xc")]||!t[Xa("0xc")][Xa("0x92")])continue;const e=t[Xa("0xc")][Xa("0x53")];if(e&&Object[Xa("0x20")](e)[Xa("0x7a")])continue;const n=t[Xa("0xc")].tablePasteChainId;let s=!0,i=!0;for(const e of r)if(e[Xa("0x70")]&&e[Xa("0x70")].startsWith(Xa("0x49"))){if(!e.attributes[Xa("0x92")]){i=!1;break}if(e.id!=t.id&&e.attributes[Xa("0x92")]==n){s=!1;break}}i&&s&&(t.removeMarkers(),o=!0)}for(const t of i)e.remove(t);for(const t of a)e[Xa("0x57")](t);return o})),t.conversion[Xa("0x7e")](Xa("0x4"))[Xa("0xb")]({model:Xa("0x10"),view:(t,e)=>l(t),converterPriority:Xa("0x2a")}),t[Xa("0x2b")].for(Xa("0x25")).markerToHighlight({model:Xa("0x10"),view:(t,e)=>e[Xa("0x44")][Xa("0x35")]?l(t,!1):null,converterPriority:"high"});const d=t[Xa("0x5b")][Xa("0x30")];this[Xa("0x4a")](d[Xa("0x6f")],Xa("0x51"),((t,e)=>{const n=[];for(const t of d.createRangeIn(e[Xa("0x99")])[Xa("0x4b")]())t.is("element","suggestion-td")&&n.push(t);d.change((t=>{for(const e of n)t[Xa("0x22")](t[Xa("0x41")](e),t[Xa("0xa0")](e)),t[Xa("0x7d")](e)}))}))}}function Za(t){if(t[Xa("0x34")])return!0;const e=t[Xa("0x31")](0);return e.is("element",Xa("0x5a"))&&e.isEmpty}function Ya(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Xa("0x93")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const tx=["getSuggestions","getColumnGroupElement","resizeTableWidth","bind","registerCustomCallback","formatBlock","accept","handleSuggestionDescription","tableWidth","handleResizeTableWidthCommand","data","_suggestionFactory","markBlockFormat","getSuggestionCallback","model","resizeTable","getContainedElement","subType","getTableColumnsWidths","_descriptionFactory","formatGroupId","get","selection","TrackChangesEditing","document","author","discard","registerDescriptionCallback","commandParams","change","enableCommand","getSelectedElement","columnWidths","TableColumnResizeEditing","editor","format","plugins"];var ex,nx;ex=tx,nx=489,function(t){for(;--t;)ex.push(ex.shift())}(++nx);const ox=function(t,e){return tx[t-=0]};class sx extends t.Plugin{afterInit(){if(!this[ox("0x1a")][ox("0x1c")].has("TableColumnResizeEditing"))return;const t=this.editor[ox("0x1c")][ox("0xd")](ox("0xf"));t[ox("0x16")](ox("0x1f"),this[ox("0x1")][ox("0x20")](this)),t[ox("0x16")]("resizeColumnWidths",this.handleResizeTableWidthCommand[ox("0x20")](this)),t[ox("0x3")][ox("0x21")](ox("0x22"),ox("0x7"),"accept",t[ox("0x3")][ox("0x5")](ox("0x22"),null,"discard")),t[ox("0x3")][ox("0x21")]("formatBlock","resizeTable",ox("0x12"),t[ox("0x3")].getSuggestionCallback(ox("0x22"),null,ox("0x23"))),t[ox("0xb")][ox("0x13")](this[ox("0x24")][ox("0x20")](this))}[ox("0x1")](t,e){const n=this[ox("0x1a")][ox("0x1c")][ox("0xd")](ox("0xf")),o=this.editor[ox("0x1c")][ox("0xd")](ox("0x19")),s=e.table||this.editor.model[ox("0x10")][ox("0xe")][ox("0x17")]();this[ox("0x1a")][ox("0x6")][ox("0x15")]((()=>{const r=o[ox("0x1e")](s);let i=r?o[ox("0xa")](r):null,a=s.getAttribute("tableWidth")||null;const x=e.tableWidth||a,c=e[ox("0x18")]||i,l=this[ox("0x1a")][ox("0x1c")].get("Users").me;for(const t of n[ox("0x1d")]()){const e=t[ox("0x8")]();if("resizeTable"===t[ox("0x9")]&&e===s){t[ox("0x11")]!==l&&t[ox("0x12")]();const e=t[ox("0x2")][ox("0x14")];a=e[0][ox("0x0")],i=e[0][ox("0x18")];break}}t({table:s,tableWidth:x,columnWidths:c}),n[ox("0x4")](s,{commandName:"resizeTableWidth",commandParams:[{tableWidth:a,columnWidths:i}],formatGroupId:ox("0x7")},[],"resizeTable")}))}[ox("0x24")](t){const{data:e}=t;if(e&&"resizeTable"===e[ox("0xc")]){const t="*Format:* resize table";return{type:ox("0x1b"),content:Yo(this[ox("0x1a")].locale,t)}}}}const rx=["insertTemplate","has","plugins","editor","TrackChangesEditing","get","afterInit","Template"];var ix,ax;ix=rx,ax=272,function(t){for(;--t;)ix.push(ix.shift())}(++ax);const xx=function(t,e){return rx[t-=0]};class cx extends t.Plugin{[xx("0x6")](){const t=this[xx("0x3")];t[xx("0x2")][xx("0x1")](xx("0x7"))&&t[xx("0x2")][xx("0x5")](xx("0x4")).enableCommand(xx("0x0"))}}const lx=["insertTableOfContents","editor","plugins","enableCommand","get","afterInit","registerElementLabel","TrackChangesEditing","tableOfContents","commands","ELEMENT_TABLE_OF_CONTENTS"];var dx,ux;dx=lx,ux=352,function(t){for(;--t;)dx.push(dx.shift())}(++ux);const gx=function(t,e){return lx[t-=0]};class mx extends t.Plugin{[gx("0x5")](){const t=this[gx("0x1")];if(!t[gx("0x9")][gx("0x4")](gx("0x0")))return;t[gx("0x2")][gx("0x4")](gx("0x7"))[gx("0x3")](gx("0x0"));const e=t[gx("0x2")][gx("0x4")](gx("0x7")),n=t.locale;e._descriptionFactory[gx("0x6")](gx("0x8"),(t=>Yo(n,gx("0xa"),t)))}}const fx=["newRange","editor","start","get","suggestion","ELEMENT_TITLE","locale","getChangedMarkers","title-content","TrackChangesEditing","from","isTouching","schema","getNearestSelectionRange","differ","model","updateMarker","isCollapsed","removeMarker","registerElementLabel","registerPostFixer","_descriptionFactory","nodeBefore","end","has","element","_splitMarkerName","document","forward","plugins","isEqual","afterInit","createRange"];var hx,px;hx=fx,px=406,function(t){for(;--t;)hx.push(hx.shift())}(++px);const bx=function(t,e){return fx[t-=0]};class Ex extends t.Plugin{[bx("0x15")](){const t=this[bx("0x18")];if(!t[bx("0x13")][bx("0xe")]("Title"))return;const e=t.plugins[bx("0x1a")](bx("0x20"));e[bx("0xb")][bx("0x9")](bx("0x1f"),(()=>Yo(t[bx("0x1d")],bx("0x1c")))),t[bx("0x5")][bx("0x11")][bx("0xa")]((n=>{let o=!1;const s=Array[bx("0x0")](t.model.document[bx("0x4")][bx("0x1e")]());for(const{name:r,data:i}of s){const{group:s}=e[bx("0x10")](r);if(bx("0x1b")!==s||!i.newRange)continue;const a=i[bx("0x17")],x=a[bx("0xd")][bx("0xc")];if(!x||!x.is(bx("0xf"),bx("0x1f")))continue;if(!a[bx("0x19")][bx("0x1")](a[bx("0xd")]))continue;const c=t[bx("0x5")][bx("0x2")][bx("0x3")](a[bx("0xd")],bx("0x12"));if(c&&c[bx("0x7")]){const t=n[bx("0x16")](a[bx("0x19")],c[bx("0x19")]);t[bx("0x14")](a)||(n[bx("0x6")](r,{range:t}),o=!0)}o||(n[bx("0x8")](r),o=!0)}return o}))}}const _x=["TrackChangesEditing","redo","get","enableCommand","afterInit","undo","plugins"];var Tx,Cx;Tx=_x,Cx=392,function(t){for(;--t;)Tx.push(Tx.shift())}(++Cx);const yx=function(t,e){return _x[t-=0]};class kx extends t.Plugin{[yx("0x4")](){const t=this.editor,e=t.plugins[yx("0x2")](yx("0x0"));t[yx("0x6")].has("UndoEditing")&&(e[yx("0x3")](yx("0x5")),e[yx("0x3")](yx("0x1")))}}const Ax=["get","has","plugins","TrackChangesEditing","TableCaptionEditing","editor","enableCommand","requires","afterInit"];var vx,Rx;vx=Ax,Rx=421,function(t){for(;--t;)vx.push(vx.shift())}(++Rx);const Sx=function(t,e){return Ax[t-=0]};class Ix extends t.Plugin{static get[Sx("0x0")](){return[Ma]}[Sx("0x1")](){const t=this[Sx("0x7")];t[Sx("0x4")][Sx("0x3")](Sx("0x6"))&&t[Sx("0x4")][Sx("0x2")](Sx("0x5"))[Sx("0x8")]("toggleTableCaption")}}const Lx=["*Format:* set start index to %0","*Change to:* %0","handleListReversedCommand","plugins","listReversed","document","_getTranslationKeyForListStyle","markMultiRangeBlockFormat","listStyle","config","from","_getSuggestionBlocks","DocumentListPropertiesUtils","expandListBlocksToCompleteList","list.properties","handleDescriptions","replace","editor","getAttribute","styles","listStart","change","startIndex","type","handleListStartCommand","TrackChangesEditing","filter","push","_LIST_","selection","enableCommand","afterInit","model","bind","format","numbered","length","DocumentListUtils","registerDescriptionCallback","_getSuggestionBlocksForListStyle","reversed","get","has","locale","commandParams","getListTypeFromListStyleType","*Format:* set order to reversed","commandName","toUpperCase","DocumentListPropertiesEditing"];var Nx,wx;Nx=Lx,wx=216,function(t){for(;--t;)Nx.push(Nx.shift())}(++wx);const Mx=function(t,e){return Lx[t-=0]};class Ox extends t.Plugin{[Mx("0xf")](){if(!this[Mx("0x1")][Mx("0x25")][Mx("0x1a")](Mx("0x21")))return;const t=this[Mx("0x1")][Mx("0x2b")].get(Mx("0x30")),e=this[Mx("0x1")][Mx("0x25")][Mx("0x19")](Mx("0x9"));t[Mx("0x3")]&&e[Mx("0xe")](Mx("0x2a"),this.handleListStyleCommand.bind(this)),t[Mx("0x18")]&&e[Mx("0xe")](Mx("0x26"),this[Mx("0x24")][Mx("0x11")](this)),t.startIndex&&e[Mx("0xe")]("listStart",this[Mx("0x8")][Mx("0x11")](this)),e._descriptionFactory[Mx("0x16")](this[Mx("0x31")][Mx("0x11")](this))}handleListStyleCommand(t,e={}){const n=this.editor[Mx("0x25")].get("TrackChangesEditing"),o=this[Mx("0x17")]();this[Mx("0x1")][Mx("0x10")][Mx("0x5")]((()=>{n[Mx("0x29")](o,{commandName:"listStyle",commandParams:[{type:e[Mx("0x7")]}],formatGroupId:"listStyle"})}))}[Mx("0x24")](t,e={}){const n=this[Mx("0x1")][Mx("0x25")].get(Mx("0x9")),o=this[Mx("0x1")][Mx("0x25")].get(Mx("0x15")),s=this[Mx("0x2d")]((t=>o.isListItemBlock(t)&&Mx("0x13")===t[Mx("0x2")]("listType")));null!==s&&this[Mx("0x1")][Mx("0x10")][Mx("0x5")]((()=>{n[Mx("0x29")](s,{commandName:Mx("0x26"),commandParams:[{reversed:e[Mx("0x18")]}],formatGroupId:Mx("0x26")})}))}handleListStartCommand(t,e={}){const n=this[Mx("0x1")][Mx("0x25")][Mx("0x19")]("TrackChangesEditing"),o=this.editor[Mx("0x25")][Mx("0x19")](Mx("0x15")),s=this[Mx("0x2d")]((t=>o.isListItemBlock(t)&&Mx("0x13")===t[Mx("0x2")]("listType")));null!==s&&this.editor[Mx("0x10")][Mx("0x5")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:Mx("0x4"),commandParams:[{startIndex:e[Mx("0x6")]}],formatGroupId:"listStart"})}))}[Mx("0x31")](t){const e=this[Mx("0x1")][Mx("0x1b")],{data:n}=t;if(!n)return;let o,s;switch(n[Mx("0x1f")]){case Mx("0x2a"):o=Mx("0x23"),s={type:Mx("0x12"),content:Yo(e,o,Yo(e,this[Mx("0x28")](n[Mx("0x1c")][0][Mx("0x7")])))};break;case"listReversed":o=n.commandParams[0][Mx("0x18")]?Mx("0x1e"):"*Format:* set order to regular",s={type:"format",content:Yo(e,o)};break;case Mx("0x4"):o=Mx("0x22"),s={type:Mx("0x12"),content:Yo(e,o,n[Mx("0x1c")][0][Mx("0x6")])}}return s}[Mx("0x17")](){const t=this.editor.plugins[Mx("0x19")]("DocumentListUtils");let e=Array.from(this[Mx("0x1")][Mx("0x10")][Mx("0x27")][Mx("0xd")].getSelectedBlocks());return e[Mx("0xb")](...t[Mx("0x2f")](e)),e=[...new Set(e)],e}[Mx("0x2d")](t){const e=this[Mx("0x1")][Mx("0x25")][Mx("0x19")](Mx("0x15"));let n=Array[Mx("0x2c")](this[Mx("0x1")][Mx("0x10")][Mx("0x27")][Mx("0xd")].getSelectedBlocks())[Mx("0xa")](t);if(!n[Mx("0x14")])return null;n=e[Mx("0x2f")](n);const o=[];for(const t of n)e.isFirstBlockOfListItem(t)&&o[Mx("0xb")](t);return o}[Mx("0x28")](t){return"ELEMENT_"+this[Mx("0x1")][Mx("0x25")].get(Mx("0x2e"))[Mx("0x1d")](t).toUpperCase()+Mx("0xc")+t[Mx("0x20")]()[Mx("0x0")](/-/g,"_")}}const Fx=["tableCellBorderColor","tableProperties","getFirstPosition","nodeAfter","registerCustomCallback","format","pluginName","getAttribute","getSuggestionCallback","accept","getSuggestions","enableCommand","tableCellPadding","_descriptionFactory","handleDiscardAction","discard","tableBorderStyle","model","editor","has","setAttribute","handleSuggestionDescription","_handlePropertyChange","tableCellVerticalAlignment","tableCellBorderWidth","tableCellProperties","TablePropertiesEditing","tableCellWidth","tableWidth","join","get","commandParams","enqueueChange","markBlockFormat","afterInit","table","_suggestionFactory","tableCellBackgroundColor","getSelectionAffectedTableCells","selection","_getSuggestion","findAncestor","change","document","formatBlock","data","locale","tableAlignment","TableCellPropertiesEditing","TableUtils","tableHeight","plugins","tableCellHeight","subType","registerDescriptionCallback","TrackChangesEditing","tableCellHorizontalAlignment","getContainedElement","TrackChangesTableProperties","tableCellBorderStyle"];var Px,Dx;Px=Fx,Dx=229,function(t){for(;--t;)Px.push(Px.shift())}(++Dx);const Bx=function(t,e){return Fx[t-=0]};class jx extends t.Plugin{constructor(t){super(t),this[Bx("0xc")]=["tableBorderColor",Bx("0x1b"),"tableBorderWidth",Bx("0x3a"),Bx("0x27"),Bx("0x1"),"tableBackgroundColor"],this[Bx("0x24")]=[Bx("0xb"),Bx("0xa"),Bx("0x23"),Bx("0x17"),Bx("0x26"),Bx("0x3"),Bx("0x30"),Bx("0x7"),Bx("0x22")]}static get[Bx("0x11")](){return Bx("0x9")}[Bx("0x2d")](){const t=this.editor.plugins[Bx("0x29")](Bx("0x6"));if(this[Bx("0x1d")][Bx("0x2")][Bx("0x1e")](Bx("0x25"))){for(const e of this.tableProperties)t[Bx("0x16")](e,((t,n)=>{const o=this[Bx("0x1d")].model[Bx("0x36")].selection[Bx("0xd")]()[Bx("0x34")](Bx("0x2e"));this[Bx("0x21")](e,[o],this.tableProperties,"tableProperties",t,n)}));t._suggestionFactory[Bx("0xf")]("formatBlock",Bx("0xc"),Bx("0x14"),t[Bx("0x2f")][Bx("0x13")](Bx("0x37"),null,"discard")),t._suggestionFactory[Bx("0xf")]("formatBlock",Bx("0xc"),Bx("0x1a"),((t,e)=>this[Bx("0x19")](this.tableProperties,t,e))),t._suggestionFactory.registerCustomCallback(Bx("0x37"),Bx("0xc"),Bx("0x28"),(()=>!1))}if(this[Bx("0x1d")].plugins[Bx("0x1e")](Bx("0x3b"))){for(const e of this.tableCellProperties)t[Bx("0x16")](e,((t,n)=>{const o=this[Bx("0x1d")][Bx("0x2")][Bx("0x29")](Bx("0x0"))[Bx("0x31")](this[Bx("0x1d")].model.document[Bx("0x32")]);this[Bx("0x21")](e,o,this[Bx("0x24")],Bx("0x24"),t,n)}));t[Bx("0x2f")].registerCustomCallback(Bx("0x37"),"tableCellProperties","accept",t[Bx("0x2f")].getSuggestionCallback("formatBlock",null,"discard")),t[Bx("0x2f")].registerCustomCallback(Bx("0x37"),Bx("0x24"),"discard",((t,e)=>this[Bx("0x19")](this[Bx("0x24")],t,e))),t[Bx("0x2f")][Bx("0xf")]("formatBlock",Bx("0x24"),Bx("0x28"),(()=>!1))}t[Bx("0x18")][Bx("0x5")]((t=>this[Bx("0x20")](t)))}[Bx("0x21")](t,e,n,o,s,r){const i=this.editor[Bx("0x2")][Bx("0x29")](Bx("0x6"));this.editor[Bx("0x1c")][Bx("0x2b")](r.batch,(()=>{for(const t of e)if(this[Bx("0x33")](t,o))s(r);else{const e={};for(const o of n){const n=t[Bx("0x12")](o);void 0!==n&&(e[o]=n)}s(r),i[Bx("0x2c")](t,{commandParams:[e]},[],o)}}))}[Bx("0x19")](t,e,n){const o=e[0].start[Bx("0xe")],s=n[Bx("0x2a")][0];this[Bx("0x1d")][Bx("0x1c")][Bx("0x35")]((e=>{for(const n of t)void 0!==s[n]?e[Bx("0x1f")](n,s[n],o):e.removeAttribute(n,o)}))}[Bx("0x20")](t){if(t[Bx("0x38")])switch(t[Bx("0x4")]){case Bx("0xc"):return{type:Bx("0x10"),content:Yo(this[Bx("0x1d")][Bx("0x39")],"*Format:* change table properties")};case Bx("0x24"):return{type:"format",content:Yo(this[Bx("0x1d")][Bx("0x39")],"*Format:* change table cell properties")}}}[Bx("0x33")](t,e){const n=this[Bx("0x1d")][Bx("0x2")][Bx("0x29")]("TrackChangesEditing");for(const o of n[Bx("0x15")]({skipNotAttached:!0})){const n=o[Bx("0x8")]();if(o[Bx("0x4")]===e&&n===t)return o}return null}}const Ux=["discardAllSuggestions","authorName","sort","addSuggestionData","_getSuggestionData","buildSuggestion","setAttribute","never","createRangeIn","getAncestors","track-changes-command-not-found","creator","fromCharCode","insertion:","originalSuggestionId","commands","isDocumentOperation","ck-suggestion-marker--active","deletion:chain","ready","getShiftedBy","createPositionAfter","addComment","getSuggestion","map","getCommentThread","markers","track-changes-adapter-missing-getsuggestion","dataReady","open","moveTargetPosition","markerReady","addHighlight","formatInline:","addMarker","requires","_suggestionFactory","init","enableCommand","markInsertion","activeMarkers","isOwn","enqueueChange","data-suggestion","getIntersection","updateMarker","isLimit","getWalker","insertion","dataDowncast","nodeBefore","consumable","after","_enabledCommands","isCollapsed","createPositionAt","markerName","splice","isIntersectingWithRange","push","_removeSuggestion","elementEnd","next","schema","subType","_findSuggestions","_suggestionState","_suggestions","targetPosition","formatBlock:","join","set","skipNestingCheck","_mergeNestedSuggestions","addUser","deleteContent","split","_setSuggestionData","author","markerNameToElements","fromRange","isNextTo","deletion:join","createPositionBefore","applyOperation","suggestionChanged","TrackChangesEditing","splitPosition","isBlock","discardSuggestion","fire","removeComment","data","removeMarker:suggestion:formatBlock","_handleNewSuggestionMarker","removed","formatBlock:chain","update:suggestion","insertion:discard","getItems","formatBlock:accept","formatBlock:join","suggestion","authoredAt","change:_saved","editingDowncast","isSelectable","discard","item","batch","formatBlock","isBefore","end","previous","every","_commentsRepository","removeClass","head","stop","pluginName","PENDING_ACTION_SUGGESTION","document","addMarkerName","start","ck-suggestion-marker-","dataToMarker","acceptSelectedSuggestions","isUndo","move","_model","hasSuggestion","createRange","setTo","_addSuggestionMarker","isLocal","_onDiscard","markMultiRangeDeletion","accepted","getMultiRangeId","deletion:accept","Users","markerToHighlight","insertion:chain","includes","hasComments","trackChanges","insertContent","getCustomProperty","insertion:accept","plugins","trackChanges.trackFormatChanges","default","isRemovable","resolve","trackChanges.mergeNestedSuggestions","normal","reconvertMarker","from","updateSuggestion","group","then","selection","differ","change:data","_setSuggestionRange","isMultiRange","rootName","writer","isAfter","createdAt","showSuggestionHighlights","formatInline","insertion:join","multi","_trackFormatChanges","_checkSuggestionCorrectness","PendingActions","value","suggestionLoaded","addSuggestion","newRange","filter","addRange","toViewElement","getSuggestions","commandName","markMultiRangeBlockFormat","backward","editor","values","removeMarker","getRanges","high","formatGroupId","options","type","rejected","setSelection","get","_saved","track-changes-suggestion-not-found","chain","$graveyard","change:activeMarkers","getAttribute","isInsideObject","_isForcedDefaultExecutionBlock","remove","collaboration.channelId","CommentsRepository","catch","createSelection","formatInline:join","getLastMatchingPosition","bindElementToMarker","insert","formatInline:chain","createElement","isExternal","getSuggestionCallback","getFirstRange","getAllAdjacentSuggestions","getRange","isAtStart","size","delete","some","adapter","name","upcast","getNearestSelectionRange","element","_refreshSuggestionsChain","_getAuthorFromId","getFirstMarker","range","@external","getChanges","multipleBlocks","isAtEnd","for","_customCallbacks","nodeAfter","conversion","_splitMarkerName","position","unbindElementFromMarkerName","forward","hasCommentThread","registerPostFixer","acceptSuggestion","_registerDefaultCallbacks","stopListening","execute","trackChangesCommand","discardSelectedSuggestions","_defaultCallbacks","has","substr","containerElement","length","clone","fetchCommentThread","locale","forceDefaultExecution","getMarkers","enableReadOnlyMode","listenTo","oldRange","containsRangeInObject","ck-suggestion-marker","always","formatBlock:discard","markInlineFormat","$textProxy","change","root","_adapter","track-changes-user-not-found","removeMarkers","deletion","_getExternalAuthor","getUser","howMany","notReady","marker-count","parent","_editor","deletion:","clear","config","lowest","addMarker:suggestion:formatBlock","low","containsItem","_cutOutSuggestionMarker","mapper","getChangedMarkers","widget","containsPosition","consume","detach","isInContent","isObject","commentThread","_addThreadToSuggestion","_joinWithAdjacentSuggestions","_updateSuggestionData","getDifference","accept","return","containsRange","_joinSuggestions","markMultiRangeInsertion","isEqual","add","suggestion:","_rangeIsInLocalUserInsertion","removeAttribute","markerToData","addMarker:suggestion","external:","model","attributes"];var Gx,Hx;Gx=Ux,Hx=478,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const zx=function(t,e){return Ux[t-=0]};class Wx extends t.Plugin{static get[zx("0xcd")](){return[zx("0x37"),r.Users,t.PendingActions,cs,Cs,Rs,Ms,Bs,Ws,Js,er,Ox,ar,ur,br,yr,Lr,Pr,Gr,Kr,Qr,ni,ai,ui,pi,Ci,Ri,Oi,ji,Wi,$i,ta,ia,ua,pa,ya,Sa,Ma,ja,Wa,Ix,Qa,sx,mx,jx,cx,Ex,kx]}static get[zx("0x121")](){return zx("0x100")}constructor(t){function e(t){return t.map((t=>String[zx("0xb6")](t))).join("")}super(t),this[zx("0xf1")]("activeMarkers",[]),this.on(zx("0x31"),((e,n,o,s)=>{this[zx("0x12b")].change((()=>{for(const e of[...s,...o])this[zx("0x12b")][zx("0xc4")][zx("0x67")](e)&&t.editing[zx("0x2")](e)}))})),this._descriptionFactory=new ss(this[zx("0x22")][zx("0xa8")][zx("0xe9")],this[zx("0x22")].locale),this[zx("0x7b")]=null,this[zx("0xce")]=new Vx(this.editor),this[zx("0xed")]=new Map,this._commentsRepository=t.plugins[zx("0x2c")]("CommentsRepository"),this[zx("0xdf")]=new Set,this[zx("0x12b")]=this[zx("0x22")][zx("0xa8")],this[zx("0xec")]=new WeakMap,this[zx("0x34")]=!1,t[zx("0x88")].define(zx("0x140"),zx("0x141")),this._trackFormatChanges=t[zx("0x88")].get("trackChanges.trackFormatChanges"),t[zx("0x88")].define(zx("0x0"),!0),this[zx("0xf3")]=t[zx("0x88")][zx("0x2c")]("trackChanges.mergeNestedSuggestions"),this[zx("0x64")]=new u(t,this[zx("0xdf")]),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,49,48,52,54])}[zx("0xcf")](){const t=this[zx("0x22")];t.conversion[zx("0x56")](zx("0x113"))[zx("0x137")]({model:zx("0x110"),view:t=>{const{id:e,type:n}=this[zx("0x5a")](t[zx("0xe2")]),o=[zx("0x74"),zx("0x126")+n];let s=3e3;return this[zx("0xd2")].includes(t[zx("0xe2")])&&(o.push("ck-suggestion-marker--active"),s=3010),zx("0x7e")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t.conversion[zx("0x56")](zx("0xdb"))[zx("0xa1")]((e=>{e.on(zx("0xa6"),((e,n,o)=>{if(!o[zx("0x28")][zx("0x10")])return;const s=n[zx("0x116")];if(!s)return;const r=o[zx("0x8e")][zx("0x1d")](s);t.model[zx("0xe9")][zx("0x95")](s)&&r&&!r.getCustomProperty(zx("0x90"))&&r.is(zx("0x69"))&&(0,a.toWidget)(r,o[zx("0xd")])}),{priority:zx("0x26")})})),t[zx("0x59")][zx("0x56")](zx("0xdb")).markerToHighlight({model:"suggestion",view:(t,e)=>{if(!e[zx("0x28")][zx("0x10")])return null;const{type:n}=this[zx("0x5a")](t[zx("0xe2")]);return{classes:[zx("0x74"),zx("0x126")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o.item)return;if(o[zx("0x116")].is(zx("0x7")))return void s[zx("0xdd")][zx("0x92")](o[zx("0x116")],n.name);const r=s[zx("0x8e")][zx("0x1d")](o.item);if(!o[zx("0x116")].is(zx("0x4d"))||!t.model[zx("0xe9")][zx("0x102")](o.item)||r[zx("0x13d")](zx("0xca")))return;const{id:i}=this[zx("0x5a")](o.markerName);s.writer.addClass([zx("0x74"),"ck-suggestion-marker-formatBlock"],r),s[zx("0xd")][zx("0xb0")](zx("0xd5"),i,r),s[zx("0x8e")][zx("0x3c")](r,o.markerName),e&&(this.activeMarkers[zx("0x139")](o[zx("0xe2")])?s[zx("0xd")].addClass("ck-suggestion-marker--active",r):s[zx("0xd")][zx("0x11e")]("ck-suggestion-marker--active",r));for(const e of t[zx("0xa8")][zx("0xb2")](o[zx("0x116")])[zx("0x10d")]())s.consumable.consume(e,n.name);s[zx("0xdd")][zx("0x92")](o[zx("0x116")],n[zx("0x4a")])};t[zx("0x59")][zx("0x56")](zx("0xdb"))[zx("0xa1")]((t=>{t.on("addMarker:suggestion:formatBlock",((t,e,o)=>{o[zx("0x28")][zx("0x10")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:"highest"})})),t[zx("0x59")][zx("0x56")](zx("0xdb"))[zx("0xa5")]({model:"suggestion",view:(t,e)=>e.options.showSuggestionHighlights?null:{group:zx("0x110"),name:t[zx("0x68")](11)}}),t[zx("0x59")][zx("0x56")](zx("0x4b")).elementToElement({view:{name:zx("0x110"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=zx("0xa2")+t.getAttribute("suggestion-type")+":"+t[zx("0x32")]("id");return t[zx("0x32")](zx("0x83"))&&(n+=":"+t[zx("0x32")](zx("0x83"))),e[zx("0x3f")]("$marker",{"data-name":n})}}),t[zx("0x59")].for("upcast")[zx("0x127")]({view:zx("0x110")}),t[zx("0x59")][zx("0x56")](zx("0x113"))[zx("0xa1")]((t=>{t.on(zx("0x8a"),n(),{priority:zx("0x26")})})),t.conversion[zx("0x56")](zx("0x113"))[zx("0xa1")]((t=>{t.on(zx("0x107"),((t,e,n)=>{const o=n[zx("0x8e")][zx("0xf9")](e.markerName);if(o)for(const t of o)t[zx("0x13d")](zx("0xca"))||(n[zx("0xd")][zx("0x11e")]([zx("0x74"),"ck-suggestion-marker-formatBlock",zx("0xbb")],t),n.writer[zx("0xa4")]("data-suggestion",t),n[zx("0x8e")][zx("0x5c")](t,e.markerName))}),{priority:"high"})})),t.model.document.registerPostFixer((e=>{let n=!1;const o=Array[zx("0x3")](t[zx("0xa8")][zx("0x123")][zx("0x8")].getChangedMarkers()),s=new Set;for(const{name:a,data:x}of o){const{group:o,type:c,id:l}=this[zx("0x5a")](a);if("suggestion"!==o)continue;const d=this[zx("0xed")][zx("0x2c")](l);if(null!=x[zx("0x1a")])if(zx("0x11")==c&&(n=n||Xx(x[zx("0x1a")],a,e,t[zx("0xa8")][zx("0xe9")])),x[zx("0x1a")][zx("0xe0")]||"$graveyard"==x.newRange.root[zx("0xc")]||zx("0x118")==c&&!Jx(x[zx("0x1a")])||zx("0x7e")==c&&(qx(i=x[zx("0x1a")])||(r=i).start.parent==r[zx("0x11a")][zx("0xdc")]&&r[zx("0x125")][zx("0x55")]))e[zx("0x24")](a),n=!0;else{if(!d||!d.isInContent)continue;s.add(d)}}var r,i;return s.size>0&&(n=!!this[zx("0x98")](s)||n),n})),t[zx("0xa8")][zx("0x123")][zx("0x5f")]((e=>{let n=!1;for(const o of t[zx("0xa8")].document[zx("0x8")][zx("0x53")]()){if(zx("0x3d")!=o[zx("0x29")])continue;const s=o.position[zx("0xbe")](o[zx("0x6a")]);if(s.isAtEnd)for(const r of this[zx("0xed")][zx("0x23")]()){if(r.isMultiRange||!r[zx("0x94")])continue;if(zx("0x118")!=r[zx("0x29")])continue;const i=r[zx("0x42")]();if(i[zx("0x125")][zx("0x84")]!=i[zx("0x11a")].parent&&i[zx("0x11a")][zx("0xa0")](o[zx("0x5b")])){const o=t.model[zx("0x12d")](i[zx("0x125")],s);e[zx("0xd7")](r.getFirstMarker(),{range:o}),n=!0}}}return n})),t.model[zx("0xc4")].on(zx("0x10b"),((t,e,n)=>{if(null==n){const{id:t}=this[zx("0x5a")](e[zx("0x4a")]),n=this._suggestions.get(t);n&&n[zx("0x124")](e.name)}})),t[zx("0xa8")][zx("0x123")].on(zx("0x9"),(()=>{const e=Array[zx("0x3")](t[zx("0xa8")][zx("0x123")][zx("0x8")][zx("0x8f")]())[zx("0x1b")]((t=>zx("0x110")===this[zx("0x5a")](t[zx("0x4a")])[zx("0x5")]));if(0===e.length)return;e[zx("0xac")](((t,e)=>{const n=t[zx("0x106")].oldRange,o=e[zx("0x106")][zx("0x72")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[zx("0x125")][zx("0x119")](o[zx("0x125")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this._splitMarkerName(t);if(null===s[zx("0x72")]){const e=this[zx("0x108")](t);o.add(e)}else{const t=this[zx("0xed")][zx("0x2c")](e);null!==s[zx("0x1a")]||t[zx("0x94")]?(n[zx("0xa1")](t[zx("0x11f")]),o.add(t)):this[zx("0xe6")](t)}}o[zx("0x46")]>0&&this[zx("0x4e")](o);for(const t of n)this[zx("0x104")]("suggestionChanged",t)})),t.model.on(zx("0xfe"),((e,n)=>{const o=n[0];if(!this._suggestions[zx("0x46")])return;if(!o[zx("0xba")])return;if(o[zx("0x117")][zx("0x129")]||!o[zx("0x117")][zx("0x130")])return;let s,r;switch(o.type){case"insert":s=t[zx("0xa8")].createPositionAt(o[zx("0x5b")]),r=s[zx("0xbe")](o[zx("0x81")]);break;case zx("0xf6"):s=t[zx("0xa8")][zx("0xe1")](o[zx("0x101")]),r=t.model.createPositionAt(o[zx("0xc8")]);break;case zx("0x12a"):s=t[zx("0xa8")][zx("0xe1")](o[zx("0xee")]),r=s[zx("0xbe")](o[zx("0x81")]);break;default:return}const i=t.model[zx("0x12d")](s,r);t[zx("0xa8")][zx("0x79")]((()=>{for(const{suggestion:t,meta:e}of this[zx("0xeb")](i)){if(t[zx("0xb")])continue;if(zx("0x11")==t[zx("0x29")])continue;const n=t[zx("0x106")]&&t[zx("0x106")][zx("0x54")];("formatBlock"!=t[zx("0x29")]||"split"==o[zx("0x29")]&&!n)&&(e[zx("0x73")]||zx("0xda")==t[zx("0x29")]&&e.isOwn||t[zx("0x42")]()[zx("0x9d")](i)&&this._breakSuggestionMarker(t,s,r))}}))}),{priority:zx("0x89")}),t[zx("0xa8")].on(zx("0xf5"),((e,n)=>{const o=n[0],s=n[1];if(s&&s[zx("0x6e")])return;if(this[zx("0x34")])return;if(!this.trackChangesCommand[zx("0x17")])return;if(o[zx("0xe0")])return;const r=t[zx("0xa8")][zx("0xe9")],{start:i,end:a}=o[zx("0x42")](),x=i[zx("0x58")]&&r[zx("0xd8")](i[zx("0x58")])?null:r[zx("0x4c")](i,zx("0x5d")),c=a[zx("0xdc")]&&r[zx("0xd8")](a[zx("0xdc")])?null:r[zx("0x4c")](a,zx("0x21")),l=t[zx("0xa8")][zx("0x12d")](x?x[zx("0x125")]:i,c?c[zx("0x11a")]:a);t[zx("0xa8")][zx("0x79")]((e=>{this.markDeletion(l);const n=t[zx("0xa8")][zx("0xe9")][zx("0x4c")](l.start);o.is("documentSelection")?e[zx("0x2b")](n):o[zx("0x12e")](n)})),e[zx("0x120")]()}),{priority:e.priorities[zx("0x1")]+10}),t[zx("0xa8")].on(zx("0x13c"),((e,n)=>{const o=n[n[zx("0x6a")]-1];o&&o[zx("0x6e")]||this[zx("0x34")]||this.trackChangesCommand[zx("0x17")]&&(t[zx("0xa8")][zx("0x79")]((()=>{let o=t[zx("0xa8")].insertContent(n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[zx("0x9c")]=o[zx("0x6b")]();const s=o.end[zx("0xdc")],r=t[zx("0xa8")][zx("0xe9")];s&&r[zx("0x102")](s)&&!r.isObject(s)&&(o=t[zx("0xa8")][zx("0x12d")](o.start,t[zx("0xa8")].createPositionAt(s,zx("0x11a")))),this[zx("0xd1")](o)})),e[zx("0x120")]())}),{priority:zx("0x26")}),this.editor[zx("0xb9")][zx("0xa1")](zx("0x13b"),this[zx("0x64")]),this[zx("0xd0")](zx("0x13b"));const o=new p(t,this[zx("0xed")]);t[zx("0xb9")][zx("0xa1")](zx("0x60"),o),this[zx("0xd0")](zx("0x60"));const s=new C(t,this[zx("0xed")]);t[zx("0xb9")].add(zx("0x103"),s),this.enableCommand("discardSuggestion"),t[zx("0xb9")][zx("0xa1")]("acceptAllSuggestions",new F(t,o,this[zx("0xed")])),this[zx("0xd0")]("acceptAllSuggestions"),t[zx("0xb9")][zx("0xa1")](zx("0xaa"),new F(t,s,this._suggestions)),this.enableCommand("discardAllSuggestions"),t[zx("0xb9")][zx("0xa1")](zx("0x128"),new U(t,o,this[zx("0xed")])),this[zx("0xd0")]("acceptSelectedSuggestions"),t[zx("0xb9")][zx("0xa1")]("discardSelectedSuggestions",new U(t,s,this._suggestions)),this[zx("0xd0")](zx("0x65"));const r=t.plugins[zx("0x2c")]("CommentsRepository");this.listenTo(r,zx("0xc0"),((t,{threadId:e})=>{const n=this[zx("0xed")][zx("0x2c")](e);n&&n[zx("0x96")]&&1===n[zx("0x96")][zx("0x6a")]&&this[zx("0x99")](e,{hasComments:!0})}),{priority:zx("0x8b")}),this[zx("0x71")](r,zx("0x105"),((t,{threadId:e})=>{const n=this[zx("0xed")][zx("0x2c")](e);n&&n[zx("0x96")]&&!n.commentThread[zx("0x6a")]&&this[zx("0x99")](e,{hasComments:!1})}),{priority:zx("0x8b")})}set[zx("0x49")](t){if(this[zx("0x7b")])throw new e.CKEditorError("track-changes-adapter-already-set",this);this[zx("0x7b")]=t}get[zx("0x49")](){return this[zx("0x7b")]}[zx("0x1e")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions[zx("0x23")]())t&&!e[zx("0x94")]||n.push(e);return e?n[zx("0xc2")]((t=>t.toJSON())):n}[zx("0xc1")](t){const n=this._suggestions[zx("0x2c")](t);if(!n)throw new e.CKEditorError(zx("0x2e"),this);return n}[zx("0x12c")](t){return this[zx("0xed")][zx("0x67")](t)}[zx("0xad")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[zx("0x29")].split(":"),i=this[zx("0xed")].get(n)||this._createSuggestion(s,r,n,e,o);if(this[zx("0x97")](i),this._checkSuggestionCorrectness(i,s,r||null,e),i.createdAt=t[zx("0xf")],o&&o[zx("0x52")]){const t=o[zx("0x52")],e=this[zx("0x7f")](t[zx("0xab")]);i.authoredAt=t[zx("0xf")],i.author=e,i[zx("0x40")]=!0}else i[zx("0x111")]=t[zx("0xf")];switch(t.data&&(i[zx("0x106")]=t[zx("0x106")]),t[zx("0xa9")]&&(i[zx("0xa9")]=t.attributes),this[zx("0x7b")]&&this._adapter.addSuggestion||(i[zx("0x2d")]=!0),this._suggestionState[zx("0x2c")](i)){case zx("0x82"):this[zx("0xec")].set(i,"dataReady");break;case zx("0xc9"):i.isInContent?(this[zx("0xec")].set(i,zx("0xbd")),this.fire("suggestionLoaded",i)):this[zx("0xec")][zx("0xf1")](i,zx("0x109"))}return i}acceptSuggestion(t){this[zx("0x6e")]((()=>{this[zx("0x22")].model[zx("0x79")]((()=>{for(const e of t[zx("0x43")]())e[zx("0x9b")]()}))}))}[zx("0x103")](t){this[zx("0x6e")]((()=>{this[zx("0x22")][zx("0xa8")].change((()=>{for(const e of t[zx("0x43")]())e[zx("0x115")]()}))}))}[zx("0xd0")](t,n){const o=this[zx("0x22")][zx("0xb9")][zx("0x2c")](t);if(!o)throw new e.CKEditorError(zx("0xb4"),this,{commandName:t});this[zx("0xdf")].add(o),n&&o.on("execute",((t,e)=>{this[zx("0x64")].value&&(this._isForcedDefaultExecutionBlock||e[zx("0x6a")]>0&&e[e[zx("0x6a")]-1]&&e[e[zx("0x6a")]-1][zx("0x6e")]||(n(((...t)=>o[zx("0x63")](...t,{forceDefaultExecution:!0})),...e),t[zx("0x120")]()))}),{priority:"high"})}[zx("0x6e")](t){let n,o;const s=this[zx("0x34")];this[zx("0x34")]=!0;try{n=t()}catch(t){o=t}return s||(this[zx("0x34")]=!1),o&&e.CKEditorError.rethrowUnexpectedError(o,this),n}[zx("0xd1")](t,n=null,o={}){if(t.isCollapsed)return null;const s=this.editor.plugins[zx("0x2c")](zx("0x136")).me;for(const{suggestion:e,meta:o}of this[zx("0xeb")](t,"insertion"))if(o.isOwn){if(!o.isNextTo){if(!this[zx("0xf3")]&&o[zx("0x73")])continue;return e}if(n==e[zx("0xea")]){const n=e.getFirstRange();return n[zx("0x125")][zx("0xa0")](t.end)?this[zx("0xa")](e,this[zx("0x12b")][zx("0x12d")](t[zx("0x125")],n[zx("0x11a")])):this[zx("0xa")](e,this._model.createRange(n[zx("0x125")],t[zx("0x11a")])),e}}const r=(0,e.uid)(),i=s.id,a=n?"insertion:"+n:zx("0xda"),x=this[zx("0xf7")]({id:r,type:a,createdAt:new Date,authorId:i,attributes:o});return this[zx("0x12f")](a,r,i,t),x}[zx("0x9f")](t,n=zx("0x13"),o={}){const s=this[zx("0x22")][zx("0x13f")].get(zx("0x136")).me,r=this[zx("0xce")][zx("0x41")](zx("0xda"),n,zx("0xf0"));for(const e of this[zx("0x1e")]())if(e[zx("0xf8")].id==s.id&&zx("0xda")==e.type&&e.subType==n&&(r(e[zx("0x25")](),t)||r(t,e.getRanges()))){for(const n of t)e[zx("0x1c")](n);return e}if(this[zx("0xf3")])for(const e of t)for(const{suggestion:n,meta:o}of this[zx("0xeb")](e,zx("0xda"))){if(!o.isOwn)continue;let e=!0;for(const o of n[zx("0x25")]())for(const n of t)if(!o[zx("0x9d")](n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),a=s.id,x=zx("0xb7")+n,c=this._setSuggestionData({id:i,type:x,createdAt:new Date,authorId:a,attributes:o});for(const e of t)this[zx("0x12f")](x,i,a,e,Zo[zx("0x134")]());return c}[zx("0x77")](t,n,o=null,s={}){if(o=o||$x(n),t[zx("0xe0")])return null;if(zx("0xb1")===this[zx("0x14")]){const e=this[zx("0xce")].getSuggestionCallback(zx("0x11"),o,zx("0x9b"));return this[zx("0x6e")]((()=>e([t],n,s))),null}const r=this.editor[zx("0x13f")][zx("0x2c")]("Users").me,i=[];if(zx("0x75")!==this[zx("0x14")])for(const{suggestion:e,meta:n}of this[zx("0xeb")](t,"insertion"))n[zx("0xd3")]&&!n.isInsideObject&&i.push(...e[zx("0x25")]());const a=function(t,e){const n=[];for(const o of e){const e=t[zx("0xd6")](o);e&&n[zx("0xe5")](e)}return n}(t,i),x=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[zx("0x6a")];){const o=n[e][zx("0x9a")](t);n[zx("0xe3")](e,1,...o),e+=o[zx("0x6a")]}}return n}(t,i);a.length&&this[zx("0x12b")].change((()=>{for(const t of a){const e=this[zx("0xce")][zx("0x41")](zx("0x11"),o,zx("0x9b"));this[zx("0x6e")]((()=>e([t],n,s)))}}));for(const t of x){let i=null,a=t[zx("0x125")],x=t[zx("0x11a")];for(const{suggestion:e,meta:n}of this[zx("0xeb")](t,"formatInline")){if(!n[zx("0xd3")])continue;if(e[zx("0xea")]!=o)continue;const s=e[zx("0x42")]();if(s[zx("0x9d")](t,!0))return null;a=a[zx("0x119")](s[zx("0x125")])?a:s[zx("0x125")],x=x[zx("0xe")](s[zx("0x11a")])?x:s[zx("0x11a")],i?s[zx("0x125")].isBefore(i[zx("0x42")]()[zx("0x125")])?(i.removeMarkers(),i=e):e[zx("0x7d")]():i=e}const c=this[zx("0x12b")].createRange(a,x);if(i)this._setSuggestionRange(i,c);else{const t=(0,e.uid)(),i=r.id;this[zx("0xf7")]({id:t,type:zx("0xcb")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[zx("0x12f")]("formatInline:"+o,t,i,c)}}return null}markBlockFormat(t,n,o=[],s=null,r={}){n[zx("0x27")]||(n[zx("0x27")]=n[zx("0x1f")]),n[zx("0x54")]=t.is("range"),s=s||$x(n);const i=o.map((t=>Qx(t,this._model))),a=t.is(zx("0x51"))?t:Qx(t,this._model);if(zx("0xb1")===this[zx("0x14")]){const t=this[zx("0xce")][zx("0x41")]("formatBlock",s,"accept");return this[zx("0x6e")]((()=>t([a],n,r))),null}i[zx("0xe5")](a);let x=!0;for(const t of i)if(!this[zx("0xa3")](t)){x=!1;break}if(x&&zx("0x75")!==this[zx("0x14")]){const t=this._suggestionFactory.getSuggestionCallback(zx("0x118"),s,"accept");return this[zx("0x6e")]((()=>t([a],n,r))),null}let c=null,l=a[zx("0x125")],d=a[zx("0x11a")];for(const{suggestion:t,meta:e}of this[zx("0xeb")](a,zx("0x118"))){if(!e[zx("0xd3")]||e.isNextTo||e[zx("0x73")]||e[zx("0x33")])continue;if(t[zx("0x106")][zx("0x27")]!=n.formatGroupId)continue;const o=t.getFirstRange();if(t[zx("0xea")]==s){if(o[zx("0x9d")](a,!0))return null;l=l[zx("0x119")](o[zx("0x125")])?l:o[zx("0x125")],d=d.isAfter(o[zx("0x11a")])?d:o[zx("0x11a")],c?o.start[zx("0x119")](c[zx("0x42")]()[zx("0x125")])?(c.removeMarkers(),c=t):t.removeMarkers():c=t}else{const e=a[zx("0xd6")](o);this[zx("0x8d")](t,e)}}const u=this[zx("0x22")][zx("0x13f")][zx("0x2c")](zx("0x136")).me,g=(0,e.uid)(),m=u.id;if(c)return this._setSuggestionRange(c,this[zx("0x12b")].createRange(l,d)),c;{const t=this[zx("0xf7")]({id:g,type:zx("0xef")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this._addSuggestionMarker(zx("0xef")+s,g,m,this[zx("0x12b")][zx("0x12d")](l,d)),t}}[zx("0x20")](t,n,o=[],s=null,r={}){n[zx("0x27")]||(n[zx("0x27")]=n[zx("0x1f")]);const i=t[0];n[zx("0x54")]=i.is(zx("0x51")),s=s||$x(n);const a=o[zx("0xc2")]((t=>Qx(t,this[zx("0x12b")]))),x=i.is("range")?t:t[zx("0xc2")]((t=>Qx(t,this[zx("0x12b")])));if("never"===this[zx("0x14")]){const t=this._suggestionFactory[zx("0x41")](zx("0x118"),s,zx("0x9b"));return this[zx("0x6e")]((()=>t(x,n,r))),null}a[zx("0xe5")](...x);let c=!0;for(const t of a)if(!this[zx("0xa3")](t)){c=!1;break}if(c&&zx("0x75")!==this[zx("0x14")]){const t=this[zx("0xce")][zx("0x41")]("formatBlock",s,zx("0x9b"));return this[zx("0x6e")]((()=>t(x,n,r))),null}const l=this[zx("0x22")][zx("0x13f")][zx("0x2c")]("Users").me;for(const t of this[zx("0x1e")]()){if(t[zx("0xf8")].id!=l.id)continue;if(zx("0x118")!=t[zx("0x29")]||t[zx("0x106")][zx("0x27")]!=n[zx("0x27")])continue;const e=t.subType==s;for(let n=0;n<x[zx("0x6a")];n++){const o=x[n];for(const s of t[zx("0x6f")]()){const r=s[zx("0x44")]();if(o.isEqual(r)){e?(x[zx("0xe3")](n,1),n--):t[zx("0x24")](s[zx("0x4a")]);break}}}}if(0==x[zx("0x6a")])return null;const d=this[zx("0xce")][zx("0x41")](zx("0x118"),s,"join");for(const t of this[zx("0x1e")]())if(t[zx("0xf8")].id==l.id&&zx("0x118")==t[zx("0x29")]&&t[zx("0x106")][zx("0x27")]==n[zx("0x27")]&&t.subType==s&&(d(t[zx("0x25")](),x)||d(x,t[zx("0x25")]()))){for(const e of x)t[zx("0x1c")](e);return t}const u=(0,e.uid)(),g=l.id,m=zx("0xef")+s,f=this[zx("0xf7")]({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of x)this._addSuggestionMarker(m,u,g,t,Zo[zx("0x134")]());return f}markDeletion(t,n=null,o={}){if(t[zx("0xe0")])return null;const s=this[zx("0x22")].plugins[zx("0x2c")](zx("0x136")).me,r=new i.LiveRange(t.start,t.end);for(const{suggestion:t,meta:e}of this[zx("0xeb")](r,zx("0xda")))if(e.isOwn&&!e[zx("0xfb")])if(t.isMultiRange){const e=t[zx("0x25")]().filter((t=>zx("0x30")!=t[zx("0x7a")][zx("0xc")]));if(e[zx("0x11c")]((t=>r[zx("0x9d")](t,!0)))&&t[zx("0x115")](),e[zx("0x48")]((t=>t[zx("0x9d")](r,!0)))){const t=this[zx("0xce")][zx("0x41")](zx("0x7e"),n,zx("0x9b"));return this[zx("0x6e")]((()=>t([r],null,o))),null}}else{const e=r[zx("0xd6")](t[zx("0x42")]());null!==e&&t[zx("0x131")]([e],null,o)}if(r[zx("0x93")](),r[zx("0xe0")]||zx("0x30")==r[zx("0x7a")].rootName)return null;let a=null,x=r[zx("0x125")],c=r[zx("0x11a")];for(const{suggestion:t,meta:e}of this._findSuggestions(r,zx("0x7e")))if(e.isOwn)if(t[zx("0xb")]&&this[zx("0xf3")]){let e=!0;for(const n of t[zx("0x25")]()){if(n[zx("0x9d")](r,!0))return t;r.containsRange(n)||(e=!1)}e&&t[zx("0x115")]()}else{const n=t[zx("0x42")]();if(n[zx("0x9d")](r,!0)){if(!this[zx("0xf3")]&&e[zx("0x73")])continue;return t}x=x.isBefore(n.start)?x:n.start,c=c.isAfter(n[zx("0x11a")])?c:n[zx("0x11a")],a?n[zx("0x125")][zx("0x119")](a.getFirstRange()[zx("0x125")])?(a[zx("0x7d")](),a=t):t[zx("0x7d")]():a=t}if(a)return this[zx("0xa")](a,this[zx("0x12b")][zx("0x12d")](x,c)),a;{const t=(0,e.uid)(),r=this[zx("0x12b")].createRange(x,c),i=s.id,a=n?zx("0x86")+n:zx("0x7e"),l=this[zx("0xf7")]({id:t,type:a,createdAt:new Date,authorId:i,attributes:o});return this[zx("0x12f")](a,t,i,r),l}}[zx("0x132")](t,n=zx("0x13"),o={}){const s=this[zx("0x22")].plugins[zx("0x2c")](zx("0x136")).me,r=t.map((t=>new i.LiveRange(t.start,t[zx("0x11a")]))),a=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this[zx("0xeb")](t,zx("0xda")))n[zx("0xd3")]&&!n[zx("0xfb")]&&a[zx("0xa1")](e);for(const e of a)if(e[zx("0xb")]){const s=e[zx("0x25")]();if((!e.attributes||!e[zx("0xa9")].skipNestingCheck)&&s[zx("0x11c")]((t=>r[zx("0x48")]((e=>e[zx("0x9d")](t,!0)))))&&e.discard(),r[zx("0x11c")]((t=>s[zx("0x48")]((e=>e[zx("0x9d")](t,!0)))))){const e=this[zx("0xce")].getSuggestionCallback(zx("0x7e"),n,"accept");return this[zx("0x6e")]((()=>e(t,null,o))),null}}else{const t=e[zx("0x42")]();if(r.some((e=>e[zx("0x9d")](t,!0)))&&e.discard(),r[zx("0x11c")]((e=>t[zx("0x9d")](e,!0)))){const t=this[zx("0xce")][zx("0x41")](zx("0x7e"),n,zx("0x9b"));return this[zx("0x6e")]((()=>t(r,null,o))),null}}const x=this[zx("0xce")][zx("0x41")](zx("0x7e"),n,zx("0xf0"));let c=null;for(const t of this[zx("0x1e")]())if(t[zx("0xf8")].id==s.id&&t[zx("0x94")]&&zx("0x7e")==t[zx("0x29")]&&t[zx("0xea")]==n&&(x(t[zx("0x25")](),r)||x(r,t[zx("0x25")]())))if(c){if(t[zx("0x96")]&&t.commentThread.length)continue;for(const e of t[zx("0x25")]())c[zx("0xe4")](e)||c.addRange(e);t.removeMarkers()}else{c=t;for(const e of r)t[zx("0xe4")](e)||t.addRange(e)}if(c)return c;a[zx("0x87")]();for(const t of r)for(const{suggestion:e,meta:n}of this[zx("0xeb")](t,"deletion"))n[zx("0xd3")]&&a.add(e);for(const t of a){const e=t.getRanges();if((!o||!o.skipNestingCheck)&&r[zx("0x11c")]((t=>e[zx("0x48")]((e=>e[zx("0x9d")](t,!0))))))return t;(!t[zx("0xa9")]||!t[zx("0xa9")][zx("0xf2")])&&e[zx("0x11c")]((t=>r[zx("0x48")]((e=>e[zx("0x9d")](t,!0)))))&&t[zx("0x115")]()}const l=(0,e.uid)(),d=s.id,u="deletion:"+n,g=this[zx("0xf7")]({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t[zx("0x93")](),t[zx("0xe0")]||zx("0x30")==t[zx("0x7a")][zx("0xc")]||this[zx("0x12f")](u,l,d,t,Zo[zx("0x134")]());return g}[zx("0xa")](t,e){const n=t[zx("0x50")]();this[zx("0x12b")][zx("0x79")]((t=>{t[zx("0xd7")](n,{range:e})}))}_addThreadToSuggestion(t){const e=t.id,n=this.editor[zx("0x88")].get(zx("0x36"));this[zx("0x11d")][zx("0x5e")](e)||this[zx("0x11d")].addCommentThread({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[zx("0x11d")][zx("0xc3")](e);o.unbind(zx("0x142")),o.isRemovable=!1,t[zx("0x96")]=o}[zx("0x15")](t,n,o,s){if(t[zx("0x29")]!=n||t[zx("0xea")]!=o||t[zx("0xb5")].id!=s)throw this[zx("0x22")][zx("0x70")]("track-changes-suggestion-data-mismatch"),new e.CKEditorError("track-changes-suggestion-data-mismatch",this)}[zx("0x8d")](t,n){const o=t.getFirstRange();if(n.isEqual(o))t[zx("0x7d")]();else if(o[zx("0x9d")](n)){const s=this._model[zx("0xe1")](n[zx("0x125")].nodeBefore,"end");this._setSuggestionRange(t,this[zx("0x12b")][zx("0x12d")](o[zx("0x125")],s));const r=(0,e.uid)(),i=t.creator.id,a=t[zx("0x29")]+":"+t.subType;this[zx("0xf7")]({id:r,type:a,createdAt:new Date,authorId:i,data:t[zx("0x106")],attributes:t.attributes});const x=this[zx("0x12b")][zx("0xe1")](n.end[zx("0x84")],zx("0xde")),c=this[zx("0x12b")].createRange(x,o[zx("0x11a")]);this[zx("0x12f")](a,r,i,c)}else if(o[zx("0x91")](n[zx("0x125")])){const e=this[zx("0x12b")][zx("0xe1")](n.start.nodeBefore,zx("0x11a"));this[zx("0xa")](t,this[zx("0x12b")][zx("0x12d")](o[zx("0x125")],e))}else{const e=this[zx("0x12b")].createPositionAt(n[zx("0x11a")][zx("0x84")],"after");this._setSuggestionRange(t,this[zx("0x12b")].createRange(e,o[zx("0x11a")]))}}_rangeIsInLocalUserInsertion(t){for(const{suggestion:e,meta:n}of this[zx("0xeb")](t,zx("0xda"))){if(!n.isOwn)continue;const o=e[zx("0x25")]();for(const e of o)if(!t[zx("0x9a")](e)[zx("0x6a")])return!0}return!1}[zx("0x4f")](t){const n=this[zx("0x22")][zx("0x13f")][zx("0x2c")](zx("0x136"))[zx("0x80")](t);if(!n)throw new e.CKEditorError(zx("0x7c"),this);return n}[zx("0x7f")](t){const e=this[zx("0x22")][zx("0x13f")][zx("0x2c")](zx("0x136")),n=(0,r.hashObject)(zx("0xa7")+t);return e[zx("0x80")](n)||e[zx("0xf4")]({id:n,name:t})}_createSuggestion(t,e,n,o,s){const r=this[zx("0x4f")](o),i=this[zx("0xce")][zx("0xaf")](t,e,n,r,s,(t=>this[zx("0x99")](n,{attributes:t})));return this[zx("0x71")](i,zx("0x9b"),(()=>{this[zx("0x99")](n,{state:zx("0x133")})}),{priority:"high"}),this[zx("0x71")](i,zx("0x115"),(()=>{this[zx("0x99")](n,{state:zx("0x2a")})}),{priority:zx("0x26")}),this[zx("0xed")][zx("0xf1")](n,i),this[zx("0xec")].set(i,zx("0x82")),i}[zx("0x5a")](t){const e=t[zx("0xf6")](":");return{group:e[0],type:e[1],subType:e[zx("0x6a")]>=5?e[2]:null,id:e.length<5?e[2]:e[3],authorId:e[zx("0x6a")]<5?e[3]:e[4],markerCount:6==e[zx("0x6a")]?e[5]:null}}_breakSuggestionMarker(t,n,o){const s=t.getFirstRange(),r=s[zx("0x125")],i=s[zx("0x11a")];this[zx("0xa")](t,this[zx("0x12b")][zx("0x12d")](r,n));const a=(0,e.uid)(),x=t[zx("0xb5")].id,c=t[zx("0x29")]+(t[zx("0xea")]?":"+t.subType:"");this[zx("0xf7")]({id:a,type:c,createdAt:new Date,authorId:x,originalSuggestionId:t.id,attributes:t[zx("0xa9")],data:t[zx("0x106")]}),zx("0x118")==t[zx("0x29")]&&(o=this[zx("0x12b")][zx("0xfd")](o.parent)),this[zx("0x12f")](c,a,x,this[zx("0x12b")][zx("0x12d")](o,i))}[zx("0xeb")](t,e=null){const n=[],o=this[zx("0x12b")].schema,s=this.editor[zx("0x13f")].get("Users").me;for(const r of this[zx("0x1e")]())if(r[zx("0x94")]&&(!e||r.type==e))for(const e of r[zx("0x25")]()){const i=t[zx("0x125")].isEqual(e[zx("0x11a")])||t[zx("0x11a")][zx("0xa0")](e.start);if(i||t[zx("0xd6")](e)){const a=t[zx("0x9d")](e)&&Kx(o,e[zx("0x125")],t),x=e.containsRange(t)&&Kx(o,t[zx("0x125")],e);n[zx("0xe5")]({suggestion:r,meta:{isOwn:s==r[zx("0xf8")],isNextTo:i,isInsideObject:a,containsRangeInObject:x}});break}}return n}[zx("0x12f")](t,e,n,o,s){this._model[zx("0x79")]((r=>{let i=zx("0xa2")+t+":"+e+":"+n;s&&(i=i+":"+s),r[zx("0xcc")](i,{range:o,usingOperation:!0,affectsData:!0})}))}_removeSuggestion(t){const e=t.previous,n=t[zx("0xe8")];t[zx("0x11b")]=null,null!=e&&(e[zx("0xe8")]=null),t[zx("0xe8")]=null,null!=n&&(n[zx("0x11b")]=null),zx("0xbd")==this._suggestionState[zx("0x2c")](t)&&(this[zx("0xec")][zx("0xf1")](t,zx("0x109")),this.fire("suggestionUnloaded",t,e,n))}[zx("0xf7")](t){const n=t.id,o=this.addSuggestionData(t);if(this._adapter&&this[zx("0x7b")].addSuggestion){const s=this[zx("0x22")].plugins[zx("0x2c")]("PendingActions"),r=o.hasComments,i=o[zx("0xea")]?o[zx("0x29")]+":"+o.subType:o.type,a=this.editor[zx("0x6d")],x=s[zx("0xa1")](Yo(a,zx("0x122"))),c={id:n,type:i,hasComments:r,data:t[zx("0x106")]||null,originalSuggestionId:t[zx("0xb8")]||null,attributes:o[zx("0xa9")]};this[zx("0x7b")][zx("0x19")](c).then((t=>{o[zx("0x2d")]=!0,s[zx("0x35")](x),t&&t[zx("0xf")]&&(this[zx("0xed")][zx("0x2c")](n)[zx("0xf")]=t[zx("0xf")])}))[zx("0x38")]((t=>{throw(0,e.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this[zx("0x22")][zx("0xa8")][zx("0xd4")]({isUndoable:!1},(()=>{o.discard()})),o[zx("0x62")](),this[zx("0xed")].delete(o.id),this[zx("0xec")][zx("0x47")](o),t}))}return o}[zx("0x99")](t,e){const n=this[zx("0x22")].plugins[zx("0x2c")](zx("0x16")),o=this[zx("0xc1")](t);if(this[zx("0x7b")]&&this[zx("0x7b")].updateSuggestion)if(o[zx("0x2d")]){const o=n[zx("0xa1")](Yo(this[zx("0x22")][zx("0x6d")],"PENDING_ACTION_SUGGESTION"));this[zx("0x7b")][zx("0x4")](t,e).then((()=>{n[zx("0x35")](o)}))}else o.on(zx("0x112"),(()=>{this._updateSuggestionData(t,e)}))}[zx("0xae")](t){if(!this[zx("0x7b")]||!this._adapter.getSuggestion)throw new e.CKEditorError(zx("0xc5"),this);return this._adapter[zx("0xc1")](t)}[zx("0x108")](t){const{id:e,type:n,subType:o,authorId:s}=this[zx("0x5a")](t),r=this._suggestions[zx("0x2c")](e)||this._createSuggestion(n,o,e,s,{});switch(this[zx("0x15")](r,n,o,s),this[zx("0xec")].get(r)){case zx("0x82"):this[zx("0xae")](e)[zx("0x6")]((t=>{let n=Promise[zx("0x143")]();t[zx("0x13a")]&&(n=this[zx("0x11d")][zx("0x6c")]({channelId:this.editor[zx("0x88")].get(zx("0x36")),threadId:e})),n.then((()=>{this[zx("0xad")](t)[zx("0x2d")]=!0}))})),this[zx("0xec")][zx("0xf1")](r,zx("0xc9"));break;case zx("0x109"):this[zx("0x99")](e,{state:zx("0xc7")});case zx("0xc6"):this[zx("0xec")][zx("0xf1")](r,"ready"),this[zx("0x104")](zx("0x18"),r);break;case zx("0xbd"):this[zx("0x104")](zx("0xff"),r)}return r[zx("0x124")](t),r}[zx("0x4e")](t){const e=Array[zx("0x3")](t)[zx("0x1b")]((t=>!t.isMultiRange)),n=this[zx("0x1e")]({skipNotAttached:!0}).filter((t=>!t.isMultiRange)),o=n[zx("0x1b")]((e=>!t[zx("0x67")](e))),s=new Map(n[zx("0xc2")]((t=>[t,this[zx("0xce")][zx("0x41")](t.type,t[zx("0xea")],zx("0x2f"))]))),r=new Map(n[zx("0xc2")]((t=>[t,t[zx("0x42")]()]))),i=new Set,a=new Set;for(let t=0;t<e[zx("0x6a")];t++)x(e[t],e,t+1);for(let t=0;t<e[zx("0x6a")];t++)x(e[t],o,0);for(let t=0;t<e[zx("0x6a")];t++){const n=e[t];!a.has(n)&&n.previous&&(n[zx("0x11b")][zx("0xe8")]===n&&(n.previous.next=null),n.previous=null),!i[zx("0x67")](n)&&n.next&&(n[zx("0xe8")][zx("0x11b")]===n&&(n.next[zx("0x11b")]=null),n[zx("0xe8")]=null)}function x(t,e,n){for(let o=n;o<e[zx("0x6a")];o++){const n=c(t,e[o]);n&&(n[0][zx("0xe8")]=n[1],n[1].previous=n[0],i.add(n[0]),a[zx("0xa1")](n[1]))}}function c(t,e){if(t[zx("0xf8")].id!==e[zx("0xf8")].id)return null;const n=s[zx("0x2c")](t)(t,e,r[zx("0x2c")](t),r[zx("0x2c")](e));return n&&s.get(e)(t,e,r[zx("0x2c")](t),r[zx("0x2c")](e))?n[1][zx("0x96")]&&n[1].commentThread[zx("0x6a")]?null:n:null}}[zx("0x98")](t){const e=Array[zx("0x3")](t),n=this.getSuggestions({skipNotAttached:!0}),o=n.filter((e=>!t.has(e))),s=new Map(e[zx("0xc2")]((t=>[t,this[zx("0xce")][zx("0x41")](t.type,t.subType,zx("0xf0"))]))),r=new Map(n[zx("0xc2")]((t=>[t,t.getRanges()])));for(let t=0;t<e[zx("0x6a")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[zx("0x6a")];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[zx("0x29")]!==e.type||o[zx("0xf8")].id!==e[zx("0xf8")].id||o[zx("0xea")]!==e[zx("0xea")])continue;const a=s.get(e),x=r[zx("0x2c")](e),c=r[zx("0x2c")](o),l=e[zx("0x96")]&&e[zx("0x96")][zx("0x6a")],d=o[zx("0x96")]&&o[zx("0x96")][zx("0x6a")];if(!l&&a(c,x))return t[zx("0x9e")](o,e),r[zx("0x47")](e),!0;if(!d&&a(x,c))return t[zx("0x9e")](e,o),r[zx("0x47")](o),!0}return!1}}[zx("0x9e")](t,e){if(t[zx("0xb")])for(const n of e[zx("0x25")]())t.addRange(n);else{const n=e[zx("0x42")]()[zx("0x11a")];this._setSuggestionRange(t,this[zx("0x12b")][zx("0x12d")](t[zx("0x42")]()[zx("0x125")],n))}e.removeMarkers()}}class Vx{constructor(t){this[zx("0x85")]=t,this[zx("0x12b")]=t[zx("0xa8")],this[zx("0x57")]=new Map,this[zx("0x66")]=new Map,this[zx("0x61")]()}buildSuggestion(t,e,n,o,s,r){return new Zo(this._model,{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[zx("0x41")](t,e,"accept")(...n),onDiscard:(...n)=>this[zx("0x41")](t,e,"discard")(...n)})}registerCustomCallback(t,e,n,o){const s=t+":"+e+":"+n;this._customCallbacks[zx("0xf1")](s,o)}getSuggestionCallback(t,e,n){const o=t+":"+e+":"+n;return this[zx("0x57")][zx("0x2c")](o)||this[zx("0x66")][zx("0x2c")](t+":"+n)}[zx("0x61")](){const t=()=>{},e=t=>{t[zx("0xac")](((t,e)=>t.start[zx("0x119")](e.start)?1:-1)),this[zx("0x12b")][zx("0x79")]((e=>{for(const n of t){let t;t=n.end[zx("0x55")]&&n[zx("0x11a")][zx("0x84")]==n[zx("0x125")][zx("0x58")]?e[zx("0x39")](n.start[zx("0x58")],"on"):e.createSelection(n),this[zx("0x12b")].deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this._model[zx("0x79")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[zx("0xc2")]((t=>(qx(t)&&(t=this[zx("0x12b")][zx("0x12d")](t[zx("0x11a")])),t)))[zx("0x1b")]((t=>"$graveyard"!==t.root[zx("0xc")]));if(r[zx("0x6a")]<1)return;const a=Array[zx("0x3")](this[zx("0x12b")][zx("0x123")][zx("0x7")].getRanges())[zx("0xc2")]((t=>i.LiveRange[zx("0xfa")](t)));n[zx("0x2b")](r);for(const t of this._editor[zx("0xb9")][zx("0xb9")]())t.refresh();s[zx("0xe5")]({forceDefaultExecution:!0}),this[zx("0x85")][zx("0x63")](o,...s);const x=a[zx("0x1b")]((t=>"$graveyard"!=t[zx("0x7a")][zx("0xc")]));x.length>0&&n[zx("0x2b")](x);for(const t of a)t[zx("0x93")]()}))},o=(t,e)=>1==t[zx("0x6a")]&&1==e[zx("0x6a")]&&t[0][zx("0x11a")][zx("0xa0")](e[0].start),s=(t,e,n,o)=>Zx(t,e,n,o,this[zx("0x12b")])?[t,e]:Zx(e,t,o,n,this[zx("0x12b")])?[e,t]:null;this[zx("0x66")][zx("0xf1")](zx("0x13e"),t),this[zx("0x66")][zx("0xf1")](zx("0x10c"),e),this[zx("0x66")][zx("0xf1")](zx("0x12"),o),this[zx("0x66")][zx("0xf1")](zx("0x138"),s),this._defaultCallbacks[zx("0xf1")](zx("0x135"),e),this._defaultCallbacks.set("deletion:discard",t),this[zx("0x66")].set(zx("0xfc"),o),this._defaultCallbacks.set(zx("0xbc"),s),this._defaultCallbacks[zx("0xf1")]("formatInline:accept",n),this[zx("0x66")].set("formatInline:discard",t),this._defaultCallbacks[zx("0xf1")](zx("0x3a"),o),this[zx("0x66")].set(zx("0x3e"),t),this[zx("0x66")].set(zx("0x10e"),n),this[zx("0x66")][zx("0xf1")](zx("0x76"),t),this[zx("0x66")][zx("0xf1")](zx("0x10f"),o),this._defaultCallbacks[zx("0xf1")](zx("0x10a"),t)}}function Kx(t,e,n){for(const o of e[zx("0x84")][zx("0xb3")]({includeSelf:!0,parentFirst:!0})){if(o.root==o)return!1;if(!n[zx("0x8c")](o))return!1;if(t[zx("0x95")](o)||t[zx("0xd8")](o))return!0}return!1}function qx(t){return t.end.parent==t[zx("0x125")].nodeAfter&&t[zx("0x11a")][zx("0x45")]}function Xx(t,e,n,o){const s=t=>!t[zx("0x116")].is(zx("0x78"))&&!o[zx("0x95")](t.item),r=t.start[zx("0x3b")](s),i=t[zx("0x11a")][zx("0x3b")](s,{direction:"backward"});return!(t[zx("0x125")][zx("0xa0")](r)&&t.end[zx("0xa0")](i)||(r[zx("0x119")](i)?n[zx("0xd7")](e,{range:n[zx("0x12d")](r,i)}):n[zx("0x24")](e),0))}function $x(t){return(0,r.hashObject)(t)}function Jx(t){const e=t[zx("0x125")][zx("0x58")];return e&&e.is(zx("0x4d"))}function Qx(t,e){const n=e[zx("0xe9")][zx("0x95")](t)||e[zx("0xe9")][zx("0x114")](t);return e.createRange(e[zx("0xe1")](t,"before"),n?e[zx("0xbf")](t):e[zx("0xe1")](t,zx("0x11a")))}function Zx(t,e,n,o,s){if(n[zx("0x11a")].isEqual(o.start))return!0;if(t.type!=e[zx("0x29")])return!1;if(!n[zx("0x11a")].isTouching(o[zx("0x125")]))return!1;const r=s[zx("0x12d")](n[zx("0x11a")],o[zx("0x125")])[zx("0xd9")]();for(const t of r)if(["elementStart",zx("0xe7")][zx("0x139")](t.type)&&s[zx("0xe9")][zx("0xd8")](t[zx("0x116")]))return!1;return!0}const Yx=["canDiscard","_removePendingAction","commentThreadController","canAccept","add","get","_setPendingAction","change:isDirty","_editor","unbind","remove","canEditAt","_discardCommand","stopListening","_acceptCommand","locale","PENDING_ACTION_SUGGESTION","PendingActions","plugins","bind","isDirty","discardSuggestion","isEnabled","_pendingAction","execute","listenTo","commands","view","destroy","acceptSuggestion","model"];var tc,ec;tc=Yx,ec=311,function(t){for(;--t;)tc.push(tc.shift())}(++ec);const nc=function(t,e){return Yx[t-=0]};class oc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[nc("0x1d")]=e,this[nc("0x1a")]=n,this.commentThreadController=o,this[nc("0x7")]=t,this._acceptCommand=t.commands[nc("0x4")](nc("0x1c")),this[nc("0xb")]=t[nc("0x19")][nc("0x4")](nc("0x14")),this.view[nc("0x12")](nc("0x15")).to(this[nc("0xd")],this._discardCommand,((t,e)=>t||e)),this.view[nc("0x12")]("canAccept").to(this[nc("0xd")],"isEnabled",(t=>t&&this[nc("0x7")][nc("0x1d")][nc("0xa")](e.getRanges()))),this.view[nc("0x12")](nc("0x1e")).to(this[nc("0xb")],nc("0x15"),(t=>t&&this[nc("0x7")].model.canEditAt(e.getRanges()))),this[nc("0x16")]=null,n[nc("0x13")]&&this._setPendingAction(),this[nc("0x18")](n,nc("0x1c"),(()=>this.acceptSuggestion())),this.listenTo(n,nc("0x14"),(()=>this[nc("0x14")]())),this[nc("0x18")](n,nc("0x6"),(()=>{n[nc("0x13")]?this._setPendingAction():this[nc("0x0")]()}))}[nc("0x1c")](){this._acceptCommand[nc("0x17")](this[nc("0x1d")].id)}[nc("0x14")](){this[nc("0xb")][nc("0x17")](this[nc("0x1d")].id)}[nc("0x1b")](){this[nc("0x1a")][nc("0x8")](nc("0x15")),this.view.unbind(nc("0x2")),this.view.unbind("canDiscard"),this[nc("0xc")](),this[nc("0x1")][nc("0x1b")](),this._pendingAction&&this._removePendingAction()}[nc("0x5")](){const t=Yo(this[nc("0x7")][nc("0xe")],nc("0xf"));this[nc("0x16")]=this._editor[nc("0x11")][nc("0x4")](nc("0x10"))[nc("0x3")](t)}[nc("0x0")](){null!==this[nc("0x16")]&&this[nc("0x7")][nc("0x11")][nc("0x4")](nc("0x10"))[nc("0x9")](this[nc("0x16")]),this[nc("0x16")]=null}}const sc=["updateComment","authoredAt","value","locale","commentsListView","setData","set","isActive","commentThread","_createCommentViews","element","isDirty","_localUser","destroy","CommentView","editor","fire","commentThreadInputView","commentInputView","_model","hasDirtyComment","isReadOnly","_config","assign","length","editorConfig","isEnabled","delegate","focus","descriptionParts","_createCommentThreadInputView","showInput","submit","canAccept","bind","addComment","disableComments","disabledSubmit"];var rc,ic;rc=sc,ic=415,function(t){for(;--t;)rc.push(rc.shift())}(++ic);const ac=function(t,e){return sc[t-=0]};class xc extends s.View{constructor(t,e,n,o){super(t),this[ac("0x7")]=null,this[ac("0x14")]=null,this.set(ac("0xa"),!1),this.set("authoredAt",e[ac("0x4")]),this[ac("0x25")](ac("0x4")).to(e),this[ac("0x9")](ac("0x20"),[]),this[ac("0x9")](ac("0xe"),!1),this[ac("0x9")](ac("0x1d"),!1),this[ac("0x9")](ac("0x24"),!1),this[ac("0x9")]("canDiscard",!1),this[ac("0x16")]=e,this[ac("0xf")]=n,this[ac("0x19")]=o,o[ac("0x1")]?this[ac("0x9")](ac("0x1b"),1):this[ac("0xc")]()}[ac("0x1f")](){this[ac("0xd")][ac("0x1f")]()}[ac("0x10")](){this.commentsListView&&this[ac("0x7")][ac("0x10")](),this.commentThreadInputView&&this[ac("0x14")][ac("0x10")](),super[ac("0x10")]()}[ac("0xc")](){const{CommentsListView:t}=this._config;this[ac("0x7")]=new t(this[ac("0x6")],this[ac("0x16")][ac("0xb")],Object[ac("0x1a")]({CommentView:this._config[ac("0x11")]},this[ac("0x19")])),this[ac("0x7")].delegate("removeComment").to(this),this[ac("0x7")][ac("0x1e")](ac("0x3")).to(this),this.commentsListView[ac("0x25")](ac("0xa")).to(this),this[ac("0x9")](ac("0x1b"),this[ac("0x7")].length+1),this.bind("length").to(this.commentsListView,ac("0x1b"),(t=>t+1)),this[ac("0x14")]=this[ac("0x21")](),this.on("removeComment",(()=>this[ac("0x1f")]())),this.bind("isDirty").to(this.commentsListView,ac("0x17"),this[ac("0x14")].commentInputView,ac("0x5"),((t,e)=>t||!!e))}_createCommentThreadInputView(){const{CommentThreadInputView:t}=this[ac("0x19")],e=new t(this[ac("0x6")],this[ac("0xf")],this[ac("0x19")][ac("0x1c")]),n=e[ac("0x15")];return e[ac("0x25")](ac("0x22")).to(this,"isActive",this[ac("0x16")].commentThread,"isReadOnly",n,ac("0x5"),((t,e,n)=>!!n||t&&!e)),n.on(ac("0x23"),((t,e)=>{this[ac("0x13")](ac("0x0"),e),n[ac("0x12")][ac("0x8")]("")})),n.on("cancel",(()=>this.focus())),n[ac("0x25")](ac("0x2")).to(this[ac("0x16")][ac("0xb")],ac("0x18")),e}}const cc=["element","ck-comment__info-time","commentThreadInputView","color","innerText","EXTERNAL_IMPORT_WORD_AVATAR",'" title="',"set","ck-suggestion__actions","ck-annotation__info","ck-annotation__main","push","value","source","bindTemplate","disableComments","creator","render","importWord",".ck-annotation__content-wrapper","ck-suggestion-","acceptSuggestion","split","@external","_config","discardButton","Discard suggestion","map","commentsListView","name","_model","span","<p>","join","isActive","ck-suggestion__info","innerHTML","ck-annotation","_descriptionElement","ck-annotation__user","setTemplate","</p>","title","locale","acceptButton","change:description","Accept suggestion","ck-comment__external",'<span class="ck-suggestion-color" style="background-color: ',"getExternalSuggestionNote","ck-annotation__actions","EXTERNAL_IMPORT_WORD_SUGGESTION","ck-suggestion","authoredAt","ck-suggestion__main","time","isExternal",'<span class="ck-suggestion-type">',"_createButton","execute","canAccept","ck-annotation__info-name","content","ck-suggestion__info-name","ck-suggestion-wrapper--active","getUserViewNotificationText","descriptionParts","querySelector","cancel","ck-suggestion--disabled-comments","ck-annotation__info-time","type","EXTERNAL_AVATAR","userView","discardSuggestion",'"></span>',"div","ck-suggestion__user","formatDateTime","ck-suggestion-wrapper","attributes","children","getTemplate","bind","extendTemplate"];var lc,dc;lc=cc,dc=379,function(t){for(;--t;)lc.push(lc.shift())}(++dc);const uc=function(t,e){return cc[t-=0]};class gc extends xc{constructor(e,n,o,s){super(e,n,o,s),this.set(uc("0x20"),""),this[uc("0x2c")]("type").to(this,"descriptionParts",(t=>t&&t[0]?t[0].type:"")),this.bind("description").to(this,uc("0x1b"),this,uc("0x50"),((t,e)=>{let n="";for(const e of t)n+=uc("0x4e")+mc(e[uc("0x17")],e[uc("0x31")])+uc("0x2");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[uc("0x54")]=null,this.acceptButton=this[uc("0x13")](Yo(e,uc("0x7")),t.icons.check,"ck-suggestion--accept",uc("0x43"),"sw"),this[uc("0x5")][uc("0x2c")]("isEnabled").to(this,uc("0x15")),this.discardButton=this[uc("0x13")](Yo(e,uc("0x48")),t.icons[uc("0x1d")],"ck-suggestion--discard",uc("0x23"),"sw"),this[uc("0x47")][uc("0x2c")]("isEnabled").to(this,"canDiscard"),this[uc("0x22")]=new r.UserView(e,this[uc("0x4c")].author,this[uc("0x1a")]()),this[uc("0x22")][uc("0x2d")]({attributes:{class:[uc("0x26"),uc("0x0")]}}),this[uc("0x1")](this[uc("0x2b")]())}[uc("0x2b")](){const t=this[uc("0x3c")],e=[{tag:"div",attributes:{class:[uc("0x51"),uc("0x37")]},children:[{tag:"span",children:[{text:this[uc("0x22")][uc("0x4b")]}],attributes:{class:[uc("0x18"),uc("0x16")]}},{tag:uc("0x10"),attributes:{datetime:t.to(uc("0xe")),class:[uc("0x2f"),uc("0x1f")]},children:[{text:t.to(uc("0xe"),(t=>this[uc("0x46")][uc("0x27")](t)))}]}]},{tag:uc("0x25"),attributes:{class:[uc("0x36"),uc("0xb")]},children:[this[uc("0x5")],this.discardButton]},{tag:"div",attributes:{class:["ck-annotation__content-wrapper"]}}];this._model[uc("0x11")]&&e[uc("0x39")]({tag:"div",attributes:{class:[uc("0x8")]},children:[{text:this[uc("0xa")]()}]});const n={tag:uc("0x25"),attributes:{class:[uc("0x28"),t.if(uc("0x50"),uc("0x19")),t.to(uc("0x20"),(t=>uc("0x42")+t)),this._config[uc("0x3d")]&&uc("0x1e")],"data-suggestion-id":this[uc("0x4c")].id,"data-thread-id":this[uc("0x4c")].commentThread.id,"data-author-id":this._model.author.id,tabindex:-1},children:[{tag:uc("0x25"),attributes:{class:[uc("0xd"),uc("0x53")]},children:[this[uc("0x22")],{tag:uc("0x25"),attributes:{class:[uc("0xf"),uc("0x38")]},children:e}]}]};return this[uc("0x4a")]&&this[uc("0x30")]&&n[uc("0x2a")][uc("0x39")](this.commentsListView,this.commentThreadInputView),n}[uc("0x3f")](){super[uc("0x3f")](),this._descriptionElement=this[uc("0x2e")][uc("0x1c")](uc("0x41")),this[uc("0x54")][uc("0x52")]=this.description,this.on(uc("0x6"),((t,e,n)=>{this[uc("0x54")][uc("0x52")]=n}))}[uc("0x13")](t,e,n,o,r){const i=new s.ButtonView(this[uc("0x4")]);return i[uc("0x35")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[uc("0x2d")]({attributes:{class:n}}),i.on(uc("0x14"),(()=>{this.fire(o,this._model.id)})),i}[uc("0xa")](){return"importWord"===this._model[uc("0x29")][uc("0x45")][uc("0x3b")]?Yo(this[uc("0x4")],uc("0xc")):Yo(this[uc("0x4")],"EXTERNAL_SUGGESTION")}getUserViewNotificationText(){return this[uc("0x4c")][uc("0x11")]?uc("0x40")===this[uc("0x4c")].attributes["@external"][uc("0x3b")]?Yo(this.locale,uc("0x33"),this[uc("0x4c")][uc("0x3e")].name):Yo(this[uc("0x4")],uc("0x21"),this[uc("0x4c")][uc("0x3e")].name):null}}function mc(t,e){let n="";return n+=t[uc("0x44")]("*")[uc("0x49")](((t,e)=>e%2!=0?uc("0x12")+fc(t)+"</span>":fc(t)))[uc("0x4f")](""),e&&(n+=uc("0x9")+e[uc("0x3a")]+uc("0x34")+e[uc("0x3")]+uc("0x24")),n}function fc(t){const e=document.createElement(uc("0x4d"));return e[uc("0x32")]=t,e.innerHTML}const hc=["comments.editorConfig","remove","previous","editing","head","suggestionChanged","comments.maxThreadTotalWeight","push","_destroyController","discardButton","_initializeController","keys","change:activeAnnotations","refreshSelectedViews","hasSuggestion","get","model","arrowView","CommentsUI","filter","getDescriptions","_disableComments","clear","actionView","getMarkers","comments.maxCommentCharsWhenCollapsed","createCommentThreadController","stopListening","isDirty","Discard all suggestions","mainView","button","buttonView","plugins","TrackChangesEditing","_createUIButton","source","_suggestionToController","requires","change:previous","execute","suggestion-","toMany","getJoined","acceptSelectedSuggestions","_refreshActiveMarkers","values","CommentView","commandName","discardAllSuggestions","view","EditorAnnotations","commands","listenTo","value","trackChanges","CommentsRepository","_handleSuggestionControllerDelayed","reduce","comments","isOn","destroy","descriptionParts","isMultiRange","Accept all selected suggestions","isInContent","comments.maxCommentsWhenCollapsed","addSourceCollector","commentThread","bind","Annotations","TrackChangesUI","editor","createAnnotationView","Discard all selected suggestions","innerView","createAnnotation","separator","add","_handleControllerBuffer","size","getRanges","delete","length","_viewToController","trackChanges.disableComments","trackChanges.SuggestionThreadView","type","map","focus","activeMarkers","locale","addComment","_descriptionFactory","_annotationViews","has","suggestionLoaded","lowest","Accept all suggestions","set","some","getSuggestion","config","isEnabled","getAllAdjacentSuggestions","_updateController","from","suggestionUnloaded"];var pc,bc;pc=hc,bc=383,function(t){for(;--t;)pc.push(pc.shift())}(++bc);const Ec=function(t,e){return hc[t-=0]};class _c extends t.Plugin{static get[Ec("0x57")](){return[Wx,r.Users,"CommentsRepository",Ec("0xb"),"EditorAnnotations"]}static get pluginName(){return Ec("0xc")}constructor(t){super(t),this._suggestionToController=new Map,this[Ec("0x19")]=new Map,this._annotationViews=new Map,this._handleControllerBuffer=new Map;const e=this.editor[Ec("0x2b")];e.define(Ec("0x1b"),gc),e.define(Ec("0x1a"),!1),this[Ec("0x46")]=e[Ec("0x40")](Ec("0x1a"))}[Ec("0x6a")](t,e){0===this._handleControllerBuffer[Ec("0x15")]&&setTimeout((()=>{for(const[t,e]of this[Ec("0x14")]){const n=this[Ec("0x56")][Ec("0x24")](t);n||e?n&&e&&this[Ec("0x39")](t):this[Ec("0x3b")](t)}this[Ec("0xd")][Ec("0x52")][Ec("0x40")](Ec("0x64"))[Ec("0x3e")](),this._refreshActiveMarkers(),this[Ec("0x14")][Ec("0x47")]()}),10),this[Ec("0x14")][Ec("0x28")](t,e)}init(){const t=this[Ec("0xd")],e=t[Ec("0x52")][Ec("0x40")](Ec("0x53")),n=t.plugins[Ec("0x40")](Ec("0xb")),o=t[Ec("0x52")][Ec("0x40")](Ec("0x64")),s=t[Ec("0x52")][Ec("0x40")](Ec("0x69"));t.ui.componentFactory[Ec("0x13")](Ec("0x68"),(t=>this[Ec("0x54")](t))),o[Ec("0x8")]((()=>{const t=[];for(const[e,n]of Array[Ec("0x2f")](this[Ec("0x56")])){const o=e[Ec("0x2d")](),s=[];for(const t of o){if(!t[Ec("0x6")])continue;if(t[Ec("0x4")]){s[Ec("0x38")](...t[Ec("0x16")]());continue}const e=t.getFirstRange();if(s[Ec("0x18")]>0){const t=s[0][Ec("0x5c")](e);if(t){s[0]=t;continue}}s.push(e)}t[Ec("0x38")]([n.view,s])}return t})),this[Ec("0x66")](e,Ec("0x25"),((t,e)=>{this.listenTo(e,Ec("0x58"),((t,n,o,s)=>{e[Ec("0x6")]&&(null==o?(this._updateController(s[Ec("0x35")]),this[Ec("0x6a")](e,!1)):(this[Ec("0x2e")](o.head),this[Ec("0x6a")](e,!0)))})),null===e[Ec("0x33")]?this[Ec("0x6a")](e,!1):this[Ec("0x2e")](e[Ec("0x35")])})),this.listenTo(e,Ec("0x30"),((t,e,n)=>{this[Ec("0x4c")](e,Ec("0x58")),this[Ec("0x14")][Ec("0x17")](e);const o=n?n[Ec("0x35")]:e,s=this._suggestionToController[Ec("0x40")](o);null!==n&&this[Ec("0x2e")](o),null===n&&s&&this[Ec("0x39")](e)})),this[Ec("0x66")](e,Ec("0x36"),((t,e)=>{this._updateController(e)})),this[Ec("0x66")](n,Ec("0x3d"),(()=>{this[Ec("0x5e")]()})),this[Ec("0x66")](s,Ec("0x21"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Ec("0x3f")](n))return;const s=e[Ec("0x2a")](n);this[Ec("0x56")].get(s)[Ec("0x63")][Ec("0x1e")]()}),{priority:Ec("0x26")})}[Ec("0x5e")](){const t=this.editor.plugins[Ec("0x40")]("Annotations"),e=this[Ec("0xd")][Ec("0x52")].get("TrackChangesEditing"),n=Array[Ec("0x2f")](t.activeAnnotations,(t=>t[Ec("0x10")])).filter((t=>this[Ec("0x19")][Ec("0x24")](t))),o=[];for(const t of n){const e=this[Ec("0x19")][Ec("0x40")](t)[Ec("0x41")].getAllAdjacentSuggestions();o.push(...e[Ec("0x6b")](((t,e)=>[...t,...e.getMarkerNames()]),[]))}e[Ec("0x1f")]=o}[Ec("0x54")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Ec("0xd")].commands[Ec("0x40")](Ec("0x68")),r=Yo(t,"Track changes");n.buttonView.set({tooltip:r,label:r,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[Ec("0x51")].bind("isOn").to(o,"value"),n[Ec("0x51")].on("execute",(()=>{o.execute(),this[Ec("0xd")][Ec("0x34")][Ec("0x63")][Ec("0x1e")]()}));const i=new e.Collection,a=[{type:"switchbutton",model:{withText:!0,label:r,commandName:Ec("0x68")}},{type:Ec("0x12")},{type:"button",model:{withText:!0,label:Yo(t,Ec("0x27")),commandName:"acceptAllSuggestions"}},{type:"button",model:{withText:!0,label:Yo(t,Ec("0x5")),commandName:Ec("0x5d")}},{type:Ec("0x50"),model:{withText:!0,label:Yo(t,Ec("0x4e")),commandName:Ec("0x62")}},{type:"button",model:{withText:!0,label:Yo(t,Ec("0xf")),commandName:"discardSelectedSuggestions"}}];for(const t of a){let e={type:Ec("0x12")};if(t[Ec("0x41")]){const n=new s.Model(t[Ec("0x41")]),o=this.editor[Ec("0x65")][Ec("0x40")](n[Ec("0x61")]);n.bind(Ec("0x1"),Ec("0x2c")).to(o,Ec("0x67"),"isEnabled"),e={type:t.type,model:n}}i[Ec("0x13")](e)}(0,s.addListToDropdown)(n,i);const x=a[Ec("0x44")]((t=>null!=t[Ec("0x41")]))[Ec("0x1d")]((t=>this[Ec("0xd")][Ec("0x65")][Ec("0x40")](t[Ec("0x41")][Ec("0x61")]))),c=n[Ec("0x51")];return c[Ec("0x48")].unbind("isEnabled"),c.arrowView.unbind(Ec("0x2c")),c[Ec("0x48")][Ec("0xa")](Ec("0x2c")).to(o,"isEnabled"),c[Ec("0x42")].bind(Ec("0x2c"))[Ec("0x5b")](x,Ec("0x2c"),((...t)=>t[Ec("0x29")]((t=>t)))),n.on(Ec("0x59"),(t=>{this.editor.execute(t[Ec("0x55")][Ec("0x61")]),this[Ec("0xd")][Ec("0x34")].view[Ec("0x1e")]()})),n}[Ec("0x3b")](t){const e=this.editor,n=e.config,o=e[Ec("0x52")].get(Ec("0xb")),s=e[Ec("0x52")][Ec("0x40")](Ec("0x69")),i=e[Ec("0x52")][Ec("0x40")]("EditorAnnotations"),a=e.plugins.get(r.Users).me,x=n[Ec("0x40")]("trackChanges").SuggestionThreadView,{CommentsListView:c,CommentThreadInputView:l}=e.plugins[Ec("0x40")](Ec("0x43"));let d,u;this[Ec("0x23")][Ec("0x24")](t.id)?(u=this[Ec("0x23")][Ec("0x40")](t.id),d=u[Ec("0x4f")]):(d=new x(e[Ec("0x20")],t,a,{disableComments:this[Ec("0x46")],editorConfig:n[Ec("0x40")](Ec("0x31")),maxCommentsWhenCollapsed:n[Ec("0x40")](Ec("0x7")),maxThreadTotalWeight:n[Ec("0x40")](Ec("0x37")),maxCommentCharsWhenCollapsed:n[Ec("0x40")](Ec("0x4a")),formatDateTime:(0,r.getDateTimeFormatter)(n[Ec("0x40")](Ec("0x20"))),CommentView:n[Ec("0x40")](Ec("0x0"))[Ec("0x60")],CommentsListView:c,CommentThreadInputView:l}),d.acceptButton.on(Ec("0x59"),(()=>{e.editing[Ec("0x63")][Ec("0x1e")]()})),d[Ec("0x3a")].on("execute",(()=>{e.editing[Ec("0x63")].focus()})),u=o[Ec("0xe")](this[Ec("0xd")][Ec("0x20")],d),u[Ec("0xa")](Ec("0x4d")).to(d,Ec("0x4d")),u[Ec("0xa")]("length").to(d),u[Ec("0xa")](Ec("0x1c")).to(d,"type",(t=>"suggestion-"+t)),this[Ec("0x23")][Ec("0x28")](t.id,u));const g=s[Ec("0x4b")](t[Ec("0x9")],d),m=new oc(e,t,d,g),f=t[Ec("0x2d")]().filter((t=>t[Ec("0x6")]));d[Ec("0x3")]=e[Ec("0x52")].get(Ec("0x53"))[Ec("0x22")].getDescriptions(f),this._suggestionToController[Ec("0x28")](t,m),this._viewToController[Ec("0x28")](d,m);const h=o[Ec("0x11")]({view:u,target:()=>{const n=[],o=t[Ec("0x2d")]().filter((t=>t[Ec("0x6")]));for(const t of o)n[Ec("0x38")](...t[Ec("0x49")]());return(0,r.getAllMarkersDomElementsSorted)(e.editing,n)},type:()=>Ec("0x5a")+m[Ec("0x63")].type});o.add(h),i.registerAnnotation(h)}[Ec("0x39")](t){const e=this.editor.plugins[Ec("0x40")](Ec("0xb")),n=this[Ec("0x56")][Ec("0x40")](t),o=n[Ec("0x63")],s=e.getByInnerView(o);s&&e[Ec("0x32")](s),this._suggestionToController[Ec("0x17")](t),this[Ec("0x19")][Ec("0x17")](o),n[Ec("0x2")]()}[Ec("0x2e")](t){if(!t.isInContent||!this[Ec("0x56")][Ec("0x24")](t))return;const e=this[Ec("0xd")][Ec("0x52")][Ec("0x40")](Ec("0x53")),n=this[Ec("0x56")][Ec("0x40")](t),o=t.getAllAdjacentSuggestions();n[Ec("0x63")][Ec("0x3")]=e[Ec("0x22")][Ec("0x45")](o)}[Ec("0x2")](){for(const t of this[Ec("0x56")][Ec("0x3c")]())this[Ec("0x39")](t);for(const t of this._annotationViews[Ec("0x5f")]())t.mainView.destroy();super.destroy()}}var Tc,Cc,yc=["TrackChanges","requires","editor","addSuggestion","getSuggestions","get","adapter","plugins"];Tc=yc,Cc=168,function(t){for(;--t;)Tc.push(Tc.shift())}(++Cc);var kc=function(t,e){return yc[t-=0]};class Ac extends t.Plugin{static get[kc("0x1")](){return[Wx,_c,"Comments"]}static get pluginName(){return kc("0x0")}set[kc("0x6")](t){this.editor[kc("0x7")].get(Wx)[kc("0x6")]=t}get adapter(){return this[kc("0x2")][kc("0x7")][kc("0x5")](Wx)[kc("0x6")]}[kc("0x3")](t){return this[kc("0x2")][kc("0x7")][kc("0x5")](Wx).addSuggestionData(t)}[kc("0x4")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[kc("0x2")][kc("0x7")].get(Wx)[kc("0x4")]({skipNotAttached:t,toJSON:e})}getSuggestion(t){return this[kc("0x2")][kc("0x7")][kc("0x5")](Wx).getSuggestion(t)}}const vc=["set","push","acceptAllSuggestions","extraPlugins","pluginName","getDataWithDiscardedSuggestions","map","constructor","RevisionTracker","addSuggestionData","concat","config","trackChangesData.editorCreator","filter","TrackChangesDataGetter","document","names","track-changes-data-invalid-editor-creator","Pagination","execute","editorCreator","string","Autosave","trackChangesData","appendChild","requires","WordCount","plugins","get","DocumentOutline","every","Users","context","create","includes","result","function","getDataWithAcceptedSuggestions","useAnonymousUser","name","getUser","init","toolbar","TrackChangesEditing","createDocumentFragment","model","data","createElement","find","WebSocketGateway","has","editor","CommentsRepository","initialData"];var Rc,Sc;Rc=vc,Sc=211,function(t){for(;--t;)Rc.push(Rc.shift())}(++Sc);const Ic=function(t,e){return vc[t-=0]},Lc=[Ic("0x4"),Ic("0x25"),Ic("0x2f")],Nc=[Ic("0x0"),Ic("0xd"),Ic("0x1b"),Ic("0x1f"),Ic("0x17"),Ic("0x22")];class wc extends t.Plugin{static get requires(){return[Wx]}static get[Ic("0x9")](){return"TrackChangesData"}[Ic("0x2e")](){const t=this[Ic("0x2")];if(t[Ic("0x10")].define(Ic("0x11"),(e=>t[Ic("0xc")][Ic("0x26")]("",e))),Ic("0x29")!=typeof t.config[Ic("0x21")](Ic("0x1c"))[Ic("0x19")])throw new e.CKEditorError(Ic("0x16"))}[Ic("0x2a")](t){return Oc(this[Ic("0x2")],!0,t)}[Ic("0xa")](t){return Oc(this[Ic("0x2")],!1,t)}}class Mc extends t.Plugin{static get[Ic("0x9")](){return Ic("0x13")}constructor(t){super(t),this[Ic("0x28")]="end"}[Ic("0x2e")](){this[Ic("0x2")].plugins.get(Ic("0x3")).adapter={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this[Ic("0x2")][Ic("0x20")][Ic("0x21")](Ic("0x30"))._adapter=null}}async function Oc(t,e,n){const o=function(t){const e={};for(const n of t.config[Ic("0x15")]())Lc[Ic("0x27")](n)||(e[n]=t.config.get(n));const n=t.constructor.builtinPlugins||[],o=e.extraPlugins||[];delete e[Ic("0x8")];const s=n[Ic("0xf")](e[Ic("0x20")])[Ic("0xf")](o).map((t=>Ic("0x1a")==typeof t?n[Ic("0x35")]((e=>e.pluginName==t)):t)),r=Array.from(new Set(s)),i=new Map;return e.plugins=r[Ic("0x12")]((t=>Fc(t,i))),e[Ic("0x20")][Ic("0x6")](Mc),e[Ic("0x20")][Ic("0x6")](Wx),e}(t),s=document[Ic("0x31")](),r=t[Ic("0x10")][Ic("0x21")](Ic("0x1c")).editorCreator,i=await r(o,(()=>function(t){const e=document[Ic("0x34")]("div");return t[Ic("0x1d")](e),e}(s)));!function(t,e){const n=t[Ic("0x32")][Ic("0x14")].getRootNames().reduce(((e,n)=>(e[n]=t.data.get({rootName:n}),e)),{}),o=t.plugins.get(Ic("0x24")).users[Ic("0xb")]((t=>({id:t.id,name:t[Ic("0x2c")]}))),s=t[Ic("0x20")][Ic("0x21")](Ic("0x30")).getSuggestions({skipNotAttached:!0,toJSON:!0}),r=e.plugins[Ic("0x21")](Ic("0x24")),i=e[Ic("0x20")][Ic("0x21")]("TrackChangesEditing");for(const t of o)r[Ic("0x2d")](t.id)||r.addUser(t);r.me||r[Ic("0x2b")]();for(const t of s)i[Ic("0xe")](t);e[Ic("0x33")].set(n)}(t,i),i[Ic("0x18")](e?Ic("0x7"):"discardAllSuggestions");const a=i[Ic("0x33")][Ic("0x21")](n);return await i.destroy(),a}function Fc(t,e){const n=Ic("0x29")==typeof t?t[Ic("0x9")]||t[Ic("0x2c")]:t;if(e[Ic("0x1")](n))return e[Ic("0x21")](n);if(e[Ic("0x5")](n,!0),n&&Nc[Ic("0x27")](n))return e.set(n,!1),!1;if(!t[Ic("0x1e")])return e[Ic("0x5")](n,!0),!0;const o=t[Ic("0x1e")][Ic("0x23")]((t=>Fc(t,e)));return e[Ic("0x5")](n,o),o}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();