@ckeditor/ckeditor5-track-changes 34.1.0 → 34.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +2 -2
- package/build/translations/az.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/lv.js +1 -0
- package/build/translations/nl.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/contexts.json +2 -0
- package/lang/translations/az.po +10 -0
- package/lang/translations/cs.po +12 -0
- package/lang/translations/da.po +10 -0
- package/lang/translations/de.po +10 -0
- package/lang/translations/el.po +10 -0
- package/lang/translations/en-au.po +10 -0
- package/lang/translations/en.po +10 -0
- package/lang/translations/es.po +29 -1
- package/lang/translations/et.po +10 -0
- package/lang/translations/fr.po +29 -1
- package/lang/translations/gl.po +10 -0
- package/lang/translations/hi.po +10 -0
- package/lang/translations/hr.po +11 -0
- package/lang/translations/id.po +9 -0
- package/lang/translations/it.po +29 -1
- package/lang/translations/lv.po +415 -0
- package/lang/translations/nl.po +10 -0
- package/lang/translations/pl.po +12 -0
- package/lang/translations/pt-br.po +29 -1
- package/lang/translations/sk.po +12 -0
- package/lang/translations/sr-latn.po +11 -0
- package/lang/translations/sr.po +11 -0
- package/lang/translations/tk.po +10 -0
- package/lang/translations/tr.po +10 -0
- package/lang/translations/zh-cn.po +9 -0
- package/lang/translations/zh.po +9 -0
- package/package.json +3 -3
- package/src/commands/acceptallsuggestionscommand.js +1 -1
- package/src/commands/acceptselectedsuggestionscommand.js +1 -1
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardallsuggestionscommand.js +1 -1
- package/src/commands/discardselectedsuggestionscommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +23 -0
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +23 -0
- package/src/integrations/image.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/getrangesofblockgroups.js +23 -0
- package/src/utils/getselectedsuggestions.js +1 -1
- package/src/utils/hashobject.js +1 -1
- package/src/utils/normalizedescription.js +1 -1
- package/src/utils/sortsuggestions.js +1 -1
package/build/track-changes.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
!function(t){const e=t.en=t.en||{};e.dictionary=Object.assign(e.dictionary||{},{"*Change to:* %0":"*Change to:* %0","*Check item*":"*Check item*","*Format:* %0":"*Format:* %0","*Indent:* %0":"*Indent:* %0","*Insert:* %0":"*Insert:* %0","*Merge cells*":"*Merge cells*","*Merge:* %0":"*Merge:* %0","*Outdent:* %0":"*Outdent:* %0","*Remove all formatting*":"*Remove all formatting*","*Remove format:* %0":"*Remove format:* %0","*Remove highlight*":"*Remove highlight*","*Remove image text alternative*":"*Remove image text alternative*","*Remove link*":"*Remove link*","*Remove:* %0":"*Remove:* %0","*Replace table cells*":"*Replace table cells*","*Reset font background color*":"*Reset font background color*","*Reset font color*":"*Reset font color*","*Reset font family*":"*Reset font family*","*Reset font size*":"*Reset font size*","*Reset image width*":"*Reset image width*","*Set font background color:* %0":"*Set font background color:* %0","*Set font color:* %0":"*Set font color:* %0","*Set font family:* %0":"*Set font family:* %0","*Set font size:* %0":"*Set font size:* %0","*Set highlight:* %0":"*Set highlight:* %0","*Set image text alternative:* %0":"*Set image text alternative:* %0","*Set image width:* %0":"*Set image width:* %0","*Set link:* %0":"*Set link:* %0","*Split cell:* horizontally":"*Split cell:* horizontally","*Split cell:* vertically":"*Split cell:* vertically","*Split:* %0":"*Split:* %0","*Uncheck item*":"*Uncheck item*","Accept all selected suggestions":"Accept all selected suggestions","Accept all suggestions":"Accept all suggestions","Accept suggestion":"Accept suggestion","Discard all selected suggestions":"Discard all selected suggestions","Discard all suggestions":"Discard all suggestions","Discard suggestion":"Discard suggestion",ELEMENT_BLOCK_QUOTE:"block quote",ELEMENT_BULLETED_LIST:"bulleted list",ELEMENT_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_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_PAGE_BREAK:["page break","%0 page breaks"],ELEMENT_PARAGRAPH:["paragraph","%0 paragraphs"],ELEMENT_SPACE:["space","%0 spaces"],ELEMENT_TABLE:["table","%0 tables"],ELEMENT_TABLE_COLUMN:["table column","%0 table columns"],ELEMENT_TABLE_COLUMN_WITH_TEXT:["table column *with text* %1","%0 table columns *with text* %1"],ELEMENT_TABLE_ROW:["table row","%0 table rows"],ELEMENT_TABLE_ROW_WITH_TEXT:["table row *with text* %1","%0 table rows *with text* %1"],ELEMENT_TABLE_WITH_TEXT:"table *with text* %0",ELEMENT_TITLE:"title",ELEMENT_TODO_LIST:"to-do list",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","*Indent:* %0":"*Indent:* %0","*Insert:* %0":"*Insert:* %0","*Merge cells*":"*Merge cells*","*Merge:* %0":"*Merge:* %0","*Outdent:* %0":"*Outdent:* %0","*Remove all formatting*":"*Remove all formatting*","*Remove format:* %0":"*Remove format:* %0","*Remove highlight*":"*Remove highlight*","*Remove image text alternative*":"*Remove image text alternative*","*Remove link*":"*Remove link*","*Remove:* %0":"*Remove:* %0","*Replace table cells*":"*Replace table cells*","*Reset font background color*":"*Reset font background color*","*Reset font color*":"*Reset font color*","*Reset font family*":"*Reset font family*","*Reset font size*":"*Reset font size*","*Reset image width*":"*Reset image width*","*Set font background color:* %0":"*Set font background color:* %0","*Set font color:* %0":"*Set font color:* %0","*Set font family:* %0":"*Set font family:* %0","*Set font size:* %0":"*Set font size:* %0","*Set highlight:* %0":"*Set highlight:* %0","*Set image text alternative:* %0":"*Set image text alternative:* %0","*Set image width:* %0":"*Set image width:* %0","*Set link:* %0":"*Set link:* %0","*Split cell:* horizontally":"*Split cell:* horizontally","*Split cell:* vertically":"*Split cell:* vertically","*Split:* %0":"*Split:* %0","*Uncheck item*":"*Uncheck item*","Accept all selected suggestions":"Accept all selected suggestions","Accept all suggestions":"Accept all suggestions","Accept suggestion":"Accept suggestion","Discard all selected suggestions":"Discard all selected suggestions","Discard all suggestions":"Discard all suggestions","Discard suggestion":"Discard suggestion",ELEMENT_BLOCK_QUOTE:"block quote",ELEMENT_BULLETED_LIST:"bulleted list",ELEMENT_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_PAGE_BREAK:["page break","%0 page breaks"],ELEMENT_PARAGRAPH:["paragraph","%0 paragraphs"],ELEMENT_SPACE:["space","%0 spaces"],ELEMENT_TABLE:["table","%0 tables"],ELEMENT_TABLE_COLUMN:["table column","%0 table columns"],ELEMENT_TABLE_COLUMN_WITH_TEXT:["table column *with text* %1","%0 table columns *with text* %1"],ELEMENT_TABLE_ROW:["table row","%0 table rows"],ELEMENT_TABLE_ROW_WITH_TEXT:["table row *with text* %1","%0 table rows *with text* %1"],ELEMENT_TABLE_WITH_TEXT:"table *with text* %0",ELEMENT_TITLE:"title",ELEMENT_TODO_LIST:"to-do list",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-2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
4
4
|
* For licensing, see LICENSE.md.
|
|
5
|
-
*/(()=>{var t={596:t=>{t.exports='\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'},417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var r=e[o];if(void 0!==r)return r.exports;var s=e[o]={exports:{}};return t[o](s,s.exports,n),s.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},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:()=>_a,TrackChanges:()=>Ba,TrackChangesData:()=>Ka});var t=n(704),e=n(209),r=n(273),s=n(417);const i=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const x="object"==typeof global&&global&&global.Object===Object&&global;var a="object"==typeof self&&self&&self.Object===Object&&self;const c=x||a||Function("return this")();const l=function(){return c.Date.now()};var u=/\s/;const d=function(t){for(var e=t.length;e--&&u.test(t.charAt(e)););return e};var g=/^\s+/;const f=function(t){return t?t.slice(0,d(t)+1).replace(g,""):t};const m=c.Symbol;var h=Object.prototype,p=h.hasOwnProperty,b=h.toString,E=m?m.toStringTag:void 0;const _=function(t){var e=p.call(t,E),n=t[E];try{t[E]=void 0;var o=!0}catch(t){}var r=b.call(t);return o&&(e?t[E]=n:delete t[E]),r};var y=Object.prototype.toString;const T=function(t){return y.call(t)};var C=m?m.toStringTag:void 0;const k=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":C&&C in Object(t)?_(t):T(t)};const v=function(t){return null!=t&&"object"==typeof t};const A=function(t){return"symbol"==typeof t||v(t)&&"[object Symbol]"==k(t)};var R=/^[-+]0x[0-9a-f]+$/i,I=/^0b[01]+$/i,S=/^0o[0-7]+$/i,w=parseInt;const M=function(t){if("number"==typeof t)return t;if(A(t))return NaN;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=f(t);var n=I.test(t);return n||S.test(t)?w(t.slice(2),n?2:8):R.test(t)?NaN:+t};var N=Math.max,L=Math.min;const O=function(t,e,n){var o,r,s,x,a,c,u=0,d=!1,g=!1,f=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function m(e){var n=o,s=r;return o=r=void 0,u=e,x=t.apply(s,n)}function h(t){return u=t,a=setTimeout(b,e),d?m(t):x}function p(t){var n=t-c;return void 0===c||n>=e||n<0||g&&t-u>=s}function b(){var t=l();if(p(t))return E(t);a=setTimeout(b,function(t){var n=e-(t-c);return g?L(n,s-(t-u)):n}(t))}function E(t){return a=void 0,f&&o?m(t):(o=r=void 0,x)}function _(){var t=l(),n=p(t);if(o=arguments,r=this,c=t,n){if(void 0===a)return h(c);if(g)return clearTimeout(a),a=setTimeout(b,e),m(c)}return void 0===a&&(a=setTimeout(b,e)),x}return e=M(e)||0,i(n)&&(d=!!n.leading,s=(g="maxWait"in n)?N(M(n.maxWait)||0,e):s,f="trailing"in n?!!n.trailing:f),_.cancel=function(){void 0!==a&&clearTimeout(a),u=0,o=c=r=a=void 0},_.flush=function(){return void 0===a?x:E(l())},_};var F=n(492),P=n(995);const D=["value","_disableUnsupportedCommands","_enableCommands","_enabledCommands","execute","clearForceDisabled","affectsData","commands","has","TrackChangesCommand"];var j,B;j=D,B=223,function(t){for(;--t;)j.push(j.shift())}(++B);const U=function(t,e){return D[t-=0]};class H extends t.Command{constructor(t,e){super(t),this[U("0x0")]=e,this[U("0x7")]=!1,this.refresh()}refresh(){this.isEnabled=!0}[U("0x1")](){this[U("0x7")]=!this[U("0x7")],this[U("0x7")]?this[U("0x8")]():this[U("0x9")]()}_disableUnsupportedCommands(){for(const t of this.editor.commands.commands())t[U("0x3")]&&!this[U("0x0")][U("0x5")](t)&&t.forceDisabled(U("0x6"))}[U("0x9")](){for(const t of this.editor[U("0x4")][U("0x4")]())t[U("0x3")]&&!this[U("0x0")][U("0x5")](t)&&t[U("0x2")](U("0x6"))}}const G=["track-changes-accept-suggestion-not-found","get","TrackChangesEditing","execute","plugins","_suggestions","refresh","editor"];var z,V;z=G,V=446,function(t){for(;--t;)z.push(z.shift())}(++V);const W=function(t,e){return G[t-=0]};class K extends t.Command{constructor(t,e){super(t),this[W("0x7")]=e,this[W("0x0")]()}[W("0x0")](){this.isEnabled=!0}[W("0x5")](t){const n=this[W("0x7")][W("0x3")](t);if(!n)throw new e.CKEditorError(W("0x2"),this);this[W("0x1")][W("0x6")][W("0x3")](W("0x4")).acceptSuggestion(n)}}const q=["TrackChangesEditing","discardSuggestion","execute","plugins","refresh","_suggestions","get","editor"];var $,X;$=q,X=458,function(t){for(;--t;)$.push($.shift())}(++X);const J=function(t,e){return q[t-=0]};class Q extends t.Command{constructor(t,e){super(t),this[J("0x3")]=e,this.refresh()}[J("0x2")](){this.isEnabled=!0}[J("0x0")](t){const n=this[J("0x3")].get(t);if(!n)throw new e.CKEditorError("track-changes-discard-suggestion-not-found",this);this[J("0x5")][J("0x1")][J("0x4")](J("0x6"))[J("0x7")](n)}}var Y,Z,tt=["deletion","type"];Y=tt,Z=220,function(t){for(;--t;)Y.push(Y.shift())}(++Z);var et=function(t,e){return tt[t-=0]};function nt(t){return t.sort(((t,e)=>"deletion"==t[et("0x1")]&&"deletion"!=e[et("0x1")]?-1:et("0x0")!=t[et("0x1")]&&et("0x0")==e.type?1:0))}const ot=["values","editor","isEnabled","_suggestions","from","isInContent","model","refresh","_acceptSuggestionCommand","some","execute"];var rt,st;rt=ot,st=487,function(t){for(;--t;)rt.push(rt.shift())}(++st);const it=function(t,e){return ot[t-=0]};class xt extends t.Command{constructor(t,e,n){super(t),this[it("0x5")]=e,this[it("0x0")]=n,this[it("0x4")]()}[it("0x4")](){const t=this[it("0x5")];this.isEnabled=t[it("0xa")]&&Array.from(this[it("0x0")].values())[it("0x6")]((t=>t.isInContent))}[it("0x7")](){this[it("0x9")][it("0x3")].change((()=>{const t=nt(Array[it("0x1")](this._suggestions[it("0x8")]()));for(const e of t)e[it("0x2")]&&this[it("0x5")][it("0x7")](e.id)}))}}const at=["isMultiRange","next","getRange","isCollapsed","end","from","isIntersecting","start","getMarkers","isInContent","isTouching","add"];var ct,lt;ct=at,lt=438,function(t){for(;--t;)ct.push(ct.shift())}(++lt);const ut=function(t,e){return at[t-=0]};function dt(t,e){const n=Array[ut("0xb")](t.getRanges()),o=new Set;for(const r of e)if(r[ut("0x3")])for(const e of n)for(const n of r[ut("0x2")]()){const s=n[ut("0x8")]();(e[ut("0x0")](s)||t[ut("0x9")]&&!r[ut("0x6")]&&r[ut("0x7")]&&s[ut("0xa")][ut("0x4")](e[ut("0x1")]))&&o[ut("0x5")](r)}return o}const gt=["execute","selection","size","_suggestions","document","isEnabled","model","editor","refresh","_selectedSuggestions","_acceptSuggestionCommand","values","from","change"];var ft,mt;ft=gt,mt=185,function(t){for(;--t;)ft.push(ft.shift())}(++mt);const ht=function(t,e){return gt[t-=0]};class pt extends t.Command{constructor(t,e,n){super(t),this[ht("0x7")]=e,this[ht("0x0")]=n,this[ht("0x6")]=new Set,this.refresh()}[ht("0x5")](){const t=this._acceptSuggestionCommand,e=this[ht("0x4")][ht("0x3")][ht("0x1")][ht("0xc")],n=Array.from(this[ht("0x0")][ht("0x8")]());this[ht("0x6")]=dt(e,n),this.isEnabled=t[ht("0x2")]&&!!this[ht("0x6")][ht("0xd")]}[ht("0xb")](){this.editor.model[ht("0xa")]((()=>{const t=nt(Array[ht("0x9")](this[ht("0x6")]));for(const e of t)this[ht("0x7")].execute(e.id)}))}}const bt=["_discardSuggestionCommand","values","change","editor","from","execute","refresh","isInContent","isEnabled","model","some","_suggestions"];var Et,_t;Et=bt,_t=413,function(t){for(;--t;)Et.push(Et.shift())}(++_t);const yt=function(t,e){return bt[t-=0]};class Tt extends t.Command{constructor(t,e,n){super(t),this[yt("0x7")]=e,this[yt("0x6")]=n,this[yt("0x1")]()}[yt("0x1")](){const t=this._discardSuggestionCommand;this[yt("0x3")]=t[yt("0x3")]&&Array[yt("0xb")](this[yt("0x6")][yt("0x8")]())[yt("0x5")]((t=>t[yt("0x2")]))}[yt("0x0")](){this[yt("0xa")][yt("0x4")][yt("0x9")]((()=>{for(const t of this[yt("0x6")][yt("0x8")]())t[yt("0x2")]&&this[yt("0x7")][yt("0x0")](t.id)}))}}const Ct=["from","_suggestions","_discardSuggestionCommand","_selectedSuggestions","values","execute","document","size","model","refresh","editor","isEnabled","selection"];var kt,vt;kt=Ct,vt=486,function(t){for(;--t;)kt.push(kt.shift())}(++vt);const At=function(t,e){return Ct[t-=0]};class Rt extends t.Command{constructor(t,e,n){super(t),this[At("0xa")]=e,this[At("0x9")]=n,this._selectedSuggestions=new Set,this.refresh()}[At("0x4")](){const t=this[At("0xa")],e=this.editor[At("0x3")][At("0x1")][At("0x7")],n=Array[At("0x8")](this[At("0x9")][At("0xc")]());this[At("0xb")]=dt(e,n),this[At("0x6")]=t.isEnabled&&!!this[At("0xb")][At("0x2")]}execute(){this[At("0x5")][At("0x3")].change((()=>{for(const t of this._selectedSuggestions)this[At("0xa")][At("0x0")](t.id)}))}}const It=function(){this.__data__=[],this.size=0};const St=function(t,e){return t===e||t!=t&&e!=e};const wt=function(t,e){for(var n=t.length;n--;)if(St(t[n][0],e))return n;return-1};var Mt=Array.prototype.splice;const Nt=function(t){var e=this.__data__,n=wt(e,t);return!(n<0)&&(n==e.length-1?e.pop():Mt.call(e,n,1),--this.size,!0)};const Lt=function(t){var e=this.__data__,n=wt(e,t);return n<0?void 0:e[n][1]};const Ot=function(t){return wt(this.__data__,t)>-1};const Ft=function(t,e){var n=this.__data__,o=wt(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function Pt(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])}}Pt.prototype.clear=It,Pt.prototype.delete=Nt,Pt.prototype.get=Lt,Pt.prototype.has=Ot,Pt.prototype.set=Ft;const Dt=Pt;const jt=function(){this.__data__=new Dt,this.size=0};const Bt=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Ut=function(t){return this.__data__.get(t)};const Ht=function(t){return this.__data__.has(t)};const Gt=function(t){if(!i(t))return!1;var e=k(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const zt=c["__core-js_shared__"];var Vt,Wt=(Vt=/[^.]+$/.exec(zt&&zt.keys&&zt.keys.IE_PROTO||""))?"Symbol(src)_1."+Vt:"";const Kt=function(t){return!!Wt&&Wt in t};var qt=Function.prototype.toString;const $t=function(t){if(null!=t){try{return qt.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Xt=/^\[object .+?Constructor\]$/,Jt=Function.prototype,Qt=Object.prototype,Yt=Jt.toString,Zt=Qt.hasOwnProperty,te=RegExp("^"+Yt.call(Zt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const ee=function(t){return!(!i(t)||Kt(t))&&(Gt(t)?te:Xt).test($t(t))};const ne=function(t,e){return null==t?void 0:t[e]};const oe=function(t,e){var n=ne(t,e);return ee(n)?n:void 0};const re=oe(c,"Map");const se=oe(Object,"create");const ie=function(){this.__data__=se?se(null):{},this.size=0};const xe=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var ae=Object.prototype.hasOwnProperty;const ce=function(t){var e=this.__data__;if(se){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return ae.call(e,t)?e[t]:void 0};var le=Object.prototype.hasOwnProperty;const ue=function(t){var e=this.__data__;return se?void 0!==e[t]:le.call(e,t)};const de=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=se&&void 0===e?"__lodash_hash_undefined__":e,this};function ge(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])}}ge.prototype.clear=ie,ge.prototype.delete=xe,ge.prototype.get=ce,ge.prototype.has=ue,ge.prototype.set=de;const fe=ge;const me=function(){this.size=0,this.__data__={hash:new fe,map:new(re||Dt),string:new fe}};const he=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const pe=function(t,e){var n=t.__data__;return he(e)?n["string"==typeof e?"string":"hash"]:n.map};const be=function(t){var e=pe(this,t).delete(t);return this.size-=e?1:0,e};const Ee=function(t){return pe(this,t).get(t)};const _e=function(t){return pe(this,t).has(t)};const ye=function(t,e){var n=pe(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function Te(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])}}Te.prototype.clear=me,Te.prototype.delete=be,Te.prototype.get=Ee,Te.prototype.has=_e,Te.prototype.set=ye;const Ce=Te;const ke=function(t,e){var n=this.__data__;if(n instanceof Dt){var o=n.__data__;if(!re||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Ce(o)}return n.set(t,e),this.size=n.size,this};function ve(t){var e=this.__data__=new Dt(t);this.size=e.size}ve.prototype.clear=jt,ve.prototype.delete=Bt,ve.prototype.get=Ut,ve.prototype.has=Ht,ve.prototype.set=ke;const Ae=ve;const Re=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const Ie=function(){try{var t=oe(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const Se=function(t,e,n){"__proto__"==e&&Ie?Ie(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var we=Object.prototype.hasOwnProperty;const Me=function(t,e,n){var o=t[e];we.call(t,e)&&St(o,n)&&(void 0!==n||e in t)||Se(t,e,n)};const Ne=function(t,e,n,o){var r=!n;n||(n={});for(var s=-1,i=e.length;++s<i;){var x=e[s],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),r?Se(n,x,a):Me(n,x,a)}return n};const Le=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const Oe=function(t){return v(t)&&"[object Arguments]"==k(t)};var Fe=Object.prototype,Pe=Fe.hasOwnProperty,De=Fe.propertyIsEnumerable;const je=Oe(function(){return arguments}())?Oe:function(t){return v(t)&&Pe.call(t,"callee")&&!De.call(t,"callee")};const Be=Array.isArray;const Ue=function(){return!1};var He="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ge=He&&"object"==typeof module&&module&&!module.nodeType&&module,ze=Ge&&Ge.exports===He?c.Buffer:void 0;const Ve=(ze?ze.isBuffer:void 0)||Ue;var We=/^(?:0|[1-9]\d*)$/;const Ke=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&We.test(t))&&t>-1&&t%1==0&&t<e};const qe=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var $e={};$e["[object Float32Array]"]=$e["[object Float64Array]"]=$e["[object Int8Array]"]=$e["[object Int16Array]"]=$e["[object Int32Array]"]=$e["[object Uint8Array]"]=$e["[object Uint8ClampedArray]"]=$e["[object Uint16Array]"]=$e["[object Uint32Array]"]=!0,$e["[object Arguments]"]=$e["[object Array]"]=$e["[object ArrayBuffer]"]=$e["[object Boolean]"]=$e["[object DataView]"]=$e["[object Date]"]=$e["[object Error]"]=$e["[object Function]"]=$e["[object Map]"]=$e["[object Number]"]=$e["[object Object]"]=$e["[object RegExp]"]=$e["[object Set]"]=$e["[object String]"]=$e["[object WeakMap]"]=!1;const Xe=function(t){return v(t)&&qe(t.length)&&!!$e[k(t)]};const Je=function(t){return function(e){return t(e)}};var Qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ye=Qe&&"object"==typeof module&&module&&!module.nodeType&&module,Ze=Ye&&Ye.exports===Qe&&x.process;const tn=function(){try{var t=Ye&&Ye.require&&Ye.require("util").types;return t||Ze&&Ze.binding&&Ze.binding("util")}catch(t){}}();var en=tn&&tn.isTypedArray;const nn=en?Je(en):Xe;var on=Object.prototype.hasOwnProperty;const rn=function(t,e){var n=Be(t),o=!n&&je(t),r=!n&&!o&&Ve(t),s=!n&&!o&&!r&&nn(t),i=n||o||r||s,x=i?Le(t.length,String):[],a=x.length;for(var c in t)!e&&!on.call(t,c)||i&&("length"==c||r&&("offset"==c||"parent"==c)||s&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Ke(c,a))||x.push(c);return x};var sn=Object.prototype;const xn=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||sn)};const an=function(t,e){return function(n){return t(e(n))}};const cn=an(Object.keys,Object);var ln=Object.prototype.hasOwnProperty;const un=function(t){if(!xn(t))return cn(t);var e=[];for(var n in Object(t))ln.call(t,n)&&"constructor"!=n&&e.push(n);return e};const dn=function(t){return null!=t&&qe(t.length)&&!Gt(t)};const gn=function(t){return dn(t)?rn(t):un(t)};const fn=function(t,e){return t&&Ne(e,gn(e),t)};const mn=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var hn=Object.prototype.hasOwnProperty;const pn=function(t){if(!i(t))return mn(t);var e=xn(t),n=[];for(var o in t)("constructor"!=o||!e&&hn.call(t,o))&&n.push(o);return n};const bn=function(t){return dn(t)?rn(t,!0):pn(t)};const En=function(t,e){return t&&Ne(e,bn(e),t)};var _n="object"==typeof exports&&exports&&!exports.nodeType&&exports,yn=_n&&"object"==typeof module&&module&&!module.nodeType&&module,Tn=yn&&yn.exports===_n?c.Buffer:void 0,Cn=Tn?Tn.allocUnsafe:void 0;const kn=function(t,e){if(e)return t.slice();var n=t.length,o=Cn?Cn(n):new t.constructor(n);return t.copy(o),o};const vn=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const An=function(t,e){for(var n=-1,o=null==t?0:t.length,r=0,s=[];++n<o;){var i=t[n];e(i,n,t)&&(s[r++]=i)}return s};const Rn=function(){return[]};var In=Object.prototype.propertyIsEnumerable,Sn=Object.getOwnPropertySymbols;const wn=Sn?function(t){return null==t?[]:(t=Object(t),An(Sn(t),(function(e){return In.call(t,e)})))}:Rn;const Mn=function(t,e){return Ne(t,wn(t),e)};const Nn=function(t,e){for(var n=-1,o=e.length,r=t.length;++n<o;)t[r+n]=e[n];return t};const Ln=an(Object.getPrototypeOf,Object);const On=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)Nn(e,wn(t)),t=Ln(t);return e}:Rn;const Fn=function(t,e){return Ne(t,On(t),e)};const Pn=function(t,e,n){var o=e(t);return Be(t)?o:Nn(o,n(t))};const Dn=function(t){return Pn(t,gn,wn)};const jn=function(t){return Pn(t,bn,On)};const Bn=oe(c,"DataView");const Un=oe(c,"Promise");const Hn=oe(c,"Set");const Gn=oe(c,"WeakMap");var zn="[object Map]",Vn="[object Promise]",Wn="[object Set]",Kn="[object WeakMap]",qn="[object DataView]",$n=$t(Bn),Xn=$t(re),Jn=$t(Un),Qn=$t(Hn),Yn=$t(Gn),Zn=k;(Bn&&Zn(new Bn(new ArrayBuffer(1)))!=qn||re&&Zn(new re)!=zn||Un&&Zn(Un.resolve())!=Vn||Hn&&Zn(new Hn)!=Wn||Gn&&Zn(new Gn)!=Kn)&&(Zn=function(t){var e=k(t),n="[object Object]"==e?t.constructor:void 0,o=n?$t(n):"";if(o)switch(o){case $n:return qn;case Xn:return zn;case Jn:return Vn;case Qn:return Wn;case Yn:return Kn}return e});const to=Zn;var eo=Object.prototype.hasOwnProperty;const no=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&eo.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const oo=c.Uint8Array;const ro=function(t){var e=new t.constructor(t.byteLength);return new oo(e).set(new oo(t)),e};const so=function(t,e){var n=e?ro(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var io=/\w*$/;const xo=function(t){var e=new t.constructor(t.source,io.exec(t));return e.lastIndex=t.lastIndex,e};var ao=m?m.prototype:void 0,co=ao?ao.valueOf:void 0;const lo=function(t){return co?Object(co.call(t)):{}};const uo=function(t,e){var n=e?ro(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const go=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return ro(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return so(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 uo(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 xo(t);case"[object Symbol]":return lo(t)}};var fo=Object.create;const mo=function(){function t(){}return function(e){if(!i(e))return{};if(fo)return fo(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const ho=function(t){return"function"!=typeof t.constructor||xn(t)?{}:mo(Ln(t))};const po=function(t){return v(t)&&"[object Map]"==to(t)};var bo=tn&&tn.isMap;const Eo=bo?Je(bo):po;const _o=function(t){return v(t)&&"[object Set]"==to(t)};var yo=tn&&tn.isSet;const To=yo?Je(yo):_o;var Co="[object Arguments]",ko="[object Function]",vo="[object Object]",Ao={};Ao[Co]=Ao["[object Array]"]=Ao["[object ArrayBuffer]"]=Ao["[object DataView]"]=Ao["[object Boolean]"]=Ao["[object Date]"]=Ao["[object Float32Array]"]=Ao["[object Float64Array]"]=Ao["[object Int8Array]"]=Ao["[object Int16Array]"]=Ao["[object Int32Array]"]=Ao["[object Map]"]=Ao["[object Number]"]=Ao["[object Object]"]=Ao["[object RegExp]"]=Ao["[object Set]"]=Ao["[object String]"]=Ao["[object Symbol]"]=Ao["[object Uint8Array]"]=Ao["[object Uint8ClampedArray]"]=Ao["[object Uint16Array]"]=Ao["[object Uint32Array]"]=!0,Ao["[object Error]"]=Ao[ko]=Ao["[object WeakMap]"]=!1;const Ro=function t(e,n,o,r,s,x){var a,c=1&n,l=2&n,u=4&n;if(o&&(a=s?o(e,r,s,x):o(e)),void 0!==a)return a;if(!i(e))return e;var d=Be(e);if(d){if(a=no(e),!c)return vn(e,a)}else{var g=to(e),f=g==ko||"[object GeneratorFunction]"==g;if(Ve(e))return kn(e,c);if(g==vo||g==Co||f&&!s){if(a=l||f?{}:ho(e),!c)return l?Fn(e,En(a,e)):Mn(e,fn(a,e))}else{if(!Ao[g])return s?e:{};a=go(e,g,c)}}x||(x=new Ae);var m=x.get(e);if(m)return m;x.set(e,a),To(e)?e.forEach((function(r){a.add(t(r,n,o,r,e,x))})):Eo(e)&&e.forEach((function(r,s){a.set(s,t(r,n,o,s,e,x))}));var h=d?void 0:(u?l?jn:Dn:l?bn:gn)(e);return Re(h||e,(function(r,s){h&&(r=e[s=r]),Me(a,s,t(r,n,o,s,e,x))})),a};const Io=function(t){return Ro(t,5)};var So=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wo=/^\w*$/;const Mo=function(t,e){if(Be(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!A(t))||(wo.test(t)||!So.test(t)||null!=e&&t in Object(e))};function No(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,r=e?e.apply(this,o):o[0],s=n.cache;if(s.has(r))return s.get(r);var i=t.apply(this,o);return n.cache=s.set(r,i)||s,i};return n.cache=new(No.Cache||Ce),n}No.Cache=Ce;const Lo=No;var Oo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fo=/\\(\\)?/g;const Po=function(t){var e=Lo(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(Oo,(function(t,n,o,r){e.push(o?r.replace(Fo,"$1"):n||t)})),e}));const Do=function(t,e){for(var n=-1,o=null==t?0:t.length,r=Array(o);++n<o;)r[n]=e(t[n],n,t);return r};var jo=m?m.prototype:void 0,Bo=jo?jo.toString:void 0;const Uo=function t(e){if("string"==typeof e)return e;if(Be(e))return Do(e,t)+"";if(A(e))return Bo?Bo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const Ho=function(t){return null==t?"":Uo(t)};const Go=function(t,e){return Be(t)?t:Mo(t,e)?[t]:Po(Ho(t))};const zo=function(t){if("string"==typeof t||A(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Vo=function(t,e,n,o){if(!i(t))return t;for(var r=-1,s=(e=Go(e,t)).length,x=s-1,a=t;null!=a&&++r<s;){var c=zo(e[r]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(r!=x){var u=a[c];void 0===(l=o?o(u,c,a):void 0)&&(l=i(u)?u:Ke(e[r+1])?[]:{})}Me(a,c,l),a=a[c]}return t};const Wo=function(t,e,n){return null==t?t:Vo(t,e,n)};const Ko=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const qo=function(t){return this.__data__.has(t)};function $o(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Ce;++e<n;)this.add(t[e])}$o.prototype.add=$o.prototype.push=Ko,$o.prototype.has=qo;const Xo=$o;const Jo=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 Qo=function(t,e){return t.has(e)};const Yo=function(t,e,n,o,r,s){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=s.get(t),l=s.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new Xo:void 0;for(s.set(t,e),s.set(e,t);++u<x;){var f=t[u],m=e[u];if(o)var h=i?o(m,f,u,e,t,s):o(f,m,u,t,e,s);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!Jo(e,(function(t,e){if(!Qo(g,e)&&(f===t||r(f,t,n,o,s)))return g.push(e)}))){d=!1;break}}else if(f!==m&&!r(f,m,n,o,s)){d=!1;break}}return s.delete(t),s.delete(e),d};const Zo=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const tr=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var er=m?m.prototype:void 0,nr=er?er.valueOf:void 0;const or=function(t,e,n,o,r,s,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!s(new oo(t),new oo(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return St(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=Zo;case"[object Set]":var a=1&o;if(x||(x=tr),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Yo(x(t),x(e),o,r,s,i);return i.delete(t),l;case"[object Symbol]":if(nr)return nr.call(t)==nr.call(e)}return!1};var rr=Object.prototype.hasOwnProperty;const sr=function(t,e,n,o,r,s){var i=1&n,x=Dn(t),a=x.length;if(a!=Dn(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:rr.call(e,l)))return!1}var u=s.get(t),d=s.get(e);if(u&&d)return u==e&&d==t;var g=!0;s.set(t,e),s.set(e,t);for(var f=i;++c<a;){var m=t[l=x[c]],h=e[l];if(o)var p=i?o(h,m,l,e,t,s):o(m,h,l,t,e,s);if(!(void 0===p?m===h||r(m,h,n,o,s):p)){g=!1;break}f||(f="constructor"==l)}if(g&&!f){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return s.delete(t),s.delete(e),g};var ir="[object Arguments]",xr="[object Array]",ar="[object Object]",cr=Object.prototype.hasOwnProperty;const lr=function(t,e,n,o,r,s){var i=Be(t),x=Be(e),a=i?xr:to(t),c=x?xr:to(e),l=(a=a==ir?ar:a)==ar,u=(c=c==ir?ar:c)==ar,d=a==c;if(d&&Ve(t)){if(!Ve(e))return!1;i=!0,l=!1}if(d&&!l)return s||(s=new Ae),i||nn(t)?Yo(t,e,n,o,r,s):or(t,e,a,n,o,r,s);if(!(1&n)){var g=l&&cr.call(t,"__wrapped__"),f=u&&cr.call(e,"__wrapped__");if(g||f){var m=g?t.value():t,h=f?e.value():e;return s||(s=new Ae),r(m,h,n,o,s)}}return!!d&&(s||(s=new Ae),sr(t,e,n,o,r,s))};const ur=function t(e,n,o,r,s){return e===n||(null==e||null==n||!v(e)&&!v(n)?e!=e&&n!=n:lr(e,n,o,r,t,s))};const dr=function(t,e){return ur(t,e)};const gr=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const fr=function(t,e){for(var n=0,o=(e=Go(e,t)).length;null!=t&&n<o;)t=t[zo(e[n++])];return n&&n==o?t:void 0};const mr=function(t,e,n){var o=-1,r=t.length;e<0&&(e=-e>r?0:r+e),(n=n>r?r:n)<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var s=Array(r);++o<r;)s[o]=t[o+e];return s};const hr=function(t,e){return e.length<2?t:fr(t,mr(e,0,-1))};const pr=function(t,e){return e=Go(e,t),null==(t=hr(t,e))||delete t[zo(gr(e))]};const br=function(t,e){return null==t||pr(t,e)},Er=["removeMarker","accept","_onAttributesChange","_onAccept","addMarker","push","isInContent","decorate","end","getAllAdjacentSuggestions","getContainedElement","createdAt","isMultiRange","subType","markers","data","length","addMarkerName","getMarkerNames","isIntersectingWithRange","from","author","getRange","change","filter","onDiscard","attributes","set","onAccept","_saved","map","getMultiRangeId","getFirstRange","isIntersecting","discard","previous","suggestion:","commentThread","next","type","split","_markerNames","onAttributesChange","getRanges","_onDiscard","getMarkers","removeMarkers","toJSON","hasComments","clear","removeAttribute","getFirstMarker","_model","delete","getItems","head"];var _r,yr;_r=Er,yr=315,function(t){for(;--t;)_r.push(_r.shift())}(++yr);const Tr=function(t,e){return Er[t-=0]};class Cr{constructor(t,e){this.id=e.id,this[Tr("0x4")]=e[Tr("0x4")],this[Tr("0x22")]=e[Tr("0x22")]||null,this[Tr("0x2a")]=e[Tr("0x2a")],this.data=null,this[Tr("0x11")]=t,this._onAccept=e[Tr("0x31")],this[Tr("0x9")]=e[Tr("0x2e")],this[Tr("0x17")]=e[Tr("0x7")],this[Tr("0x6")]=new Set,this.set(Tr("0x20"),null),this[Tr("0x30")](Tr("0x2f"),e.attributes||{}),this.set(Tr("0x0"),null),this.set("next",null),this.set(Tr("0x2"),null),this[Tr("0x30")](Tr("0x32"),!1),this.decorate(Tr("0x16")),this[Tr("0x1c")]("discard")}get head(){let t=this;for(;t[Tr("0x0")];)t=t[Tr("0x0")];return t}get[Tr("0xd")](){return!!this[Tr("0x2")]&&this[Tr("0x2")][Tr("0x25")]>0}get[Tr("0x21")](){return 0!=this[Tr("0x6")].size&&6==Array.from(this[Tr("0x6")])[0][Tr("0x5")](":")[Tr("0x25")]}get[Tr("0x1b")](){return null!==this.getFirstMarker()}[Tr("0x26")](t){this[Tr("0x6")].add(t)}[Tr("0x27")](){return Array[Tr("0x29")](this._markerNames)}[Tr("0xa")](){return this[Tr("0x27")]()[Tr("0x33")]((t=>this[Tr("0x11")][Tr("0x23")].get(t)))[Tr("0x2d")]((t=>t))}getFirstMarker(){return this.getMarkers()[0]||null}[Tr("0xb")](){this._model[Tr("0x2c")]((t=>{for(const e of this.getMarkers())t[Tr("0x15")](e)})),this[Tr("0x6")][Tr("0xe")]()}removeMarker(t){this[Tr("0x11")][Tr("0x2c")]((e=>{e[Tr("0x15")](t)})),this[Tr("0x6")][Tr("0x12")](t)}addRange(t){const e=Tr("0x1")+this.type+":"+this[Tr("0x22")]+":"+this.id+":"+this.author.id+":"+Cr[Tr("0x34")]();this[Tr("0x26")](e),this[Tr("0x11")][Tr("0x2c")]((n=>{n[Tr("0x19")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Tr("0x28")](t){for(const e of this[Tr("0x8")]())if(e[Tr("0x36")](t))return!0;return!1}getRanges(){return this[Tr("0xa")]()[Tr("0x33")]((t=>t[Tr("0x2b")]()))}getItems(){return this[Tr("0x8")]().reduce(((t,e)=>[...t,...e[Tr("0x13")]()]),[])}[Tr("0x35")](){return this[Tr("0x10")]()[Tr("0x2b")]()}[Tr("0x1f")](){const t=this[Tr("0x8")]();if(1!=t[Tr("0x25")])return null;const e=t[0],n=e.start.nodeAfter,o=e[Tr("0x1d")].nodeBefore;return n instanceof F.Element?n!=o?null:n:null}[Tr("0x16")](){this[Tr("0x18")](this.getRanges(),this[Tr("0x24")],this[Tr("0x2f")]),this[Tr("0xb")]()}[Tr("0x37")](){this._onDiscard(this[Tr("0x8")](),this[Tr("0x24")],this[Tr("0x2f")]),this[Tr("0xb")]()}[Tr("0x1e")](){const t=[];let e=this[Tr("0x14")];for(;e;)t[Tr("0x1a")](e),e=e[Tr("0x3")];return t}setAttribute(t,e){const n=Io(this.attributes);Wo(n,t,e),dr(n,this[Tr("0x2f")])||(this[Tr("0x2f")]=n,this._onAttributesChange(n))}[Tr("0xf")](t){const e=Io(this[Tr("0x2f")]);br(e,t),dr(e,this[Tr("0x2f")])||(this[Tr("0x2f")]=e,this[Tr("0x17")](this.attributes))}[Tr("0xc")](){return{id:this.id,type:this[Tr("0x22")]?this.type+":"+this[Tr("0x22")]:this[Tr("0x4")],authorId:this.author.id,createdAt:this[Tr("0x20")],hasComments:this[Tr("0xd")],data:this.data,attributes:this.attributes}}static getMultiRangeId(){return(0,e.uid)().substr(1,5)}}function kr(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"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_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_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"})}}(0,e.mix)(Cr,e.ObservableMixin);const vr=["start","getItemLabel","*Merge:* %0","indexOf","set","element","addEmptyContainer","remove","EmptyContainer","getFirstRange","_addDescriptionItems","name","addObject","deletion","length","insertion","replace","*Split:* %0","softBreak","end","data","_schema","$text","*Insert:* %0","removeContainer","_resolveDescriptionItems","text","addContainer","Container","*Remove:* %0","isEqual","checkChild","elementStart","isEmpty","getDescriptions","_itemLabels","pop","_locale","elementEnd","add","item","push","Object","isObject","skip","_customCallbacks","ELEMENT_SPACE","function","nextSibling","previousSibling","get","type","REPLACE_TEXT","$1 $2","removeEmptyContainer","quantity","isInContent"];var Ar,Rr;Ar=vr,Rr=281,function(t){for(;--t;)Ar.push(Ar.shift())}(++Rr);const Ir=function(t,e){return vr[t-=0]};class Sr{constructor(t,e){this[Ir("0x31")]=[],this[Ir("0x27")]=new Map,this[Ir("0x19")]=t,this._locale=e}[Ir("0x26")](t){const e=[];for(let n=0;n<t.length;n++){const o=t[n];if(!o[Ir("0x3")])continue;let r=!1;for(const t of this[Ir("0x31")]){const n=t(o);if(n){n[Ir("0x37")]&&e[Ir("0x2d")](n),r=!0;break}}if(!r){this[Ir("0xe")](e,o);const r=t[n+1];if(r&&!o[Ir("0xd")]()[Ir("0x17")][Ir("0x22")](r[Ir("0xd")]()[Ir("0x4")])){const t=e[e.length-1],n=Ir("0x13")==o[Ir("0x37")]?"add":Ir("0xb");t&&"text"==t.type&&(t[n]+="\n")}}}return this._resolveDescriptionItems(e)}registerDescriptionCallback(t){this._customCallbacks[Ir("0x2d")](t)}registerElementLabel(t,e){this[Ir("0x27")][Ir("0x8")](t,e)}[Ir("0x5")](t,e=1){const n=this[Ir("0x27")][Ir("0x36")](t)||t;return Ir("0x33")==typeof n?n(e):1!==e?e+" "+n+"s":""+n}[Ir("0xe")](t,e){const n=e.getFirstRange().getWalker(),o=Ir("0x13")==e.type?"add":Ir("0xb");for(const e of n){const r=e[Ir("0x2c")],s=t[t.length-1];if(r.is("textProxy"))s&&s.type[Ir("0x7")](Ir("0x20"))>-1&&t[Ir("0x28")](),s&&Ir("0x1e")==s[Ir("0x37")]?s[o]+=r[Ir("0x18")]:t[Ir("0x2d")]({type:Ir("0x1e"),add:Ir("0x2b")==o?r[Ir("0x18")]:"",remove:"remove"==o?r[Ir("0x18")]:""});else if(this._schema[Ir("0x2f")](r)){if(s&&s.type[Ir("0x7")](Ir("0x20"))>-1&&t[Ir("0x28")](),Ir("0x2a")==e[Ir("0x37")])continue;s&&s[Ir("0x37")]==o+Ir("0x2e")&&s[Ir("0xf")]==r[Ir("0xf")]?s[Ir("0x2")]++:t[Ir("0x2d")]({type:o+"Object",name:r[Ir("0xf")],quantity:1}),n[Ir("0x30")]((t=>!(Ir("0x2a")==t[Ir("0x37")]&&t[Ir("0x2c")]==r)))}else if(this._schema[Ir("0x23")](r,Ir("0x1a"))||r.is(Ir("0x9"),Ir("0x16"))){if(Ir("0x2b")==o&&Ir("0x24")==e[Ir("0x37")]||Ir("0xb")==o&&Ir("0x2a")==e[Ir("0x37")])continue;if(s&&-1==s[Ir("0x37")][Ir("0x7")](Ir("0x20"))){Ir("0x1e")==s.type&&(s[o]+="\n");continue}let n;if(n=Ir("0x2b")==o?r.nextSibling&&!this[Ir("0x19")][Ir("0x2f")](r[Ir("0x34")])?r[Ir("0x34")]:null:r[Ir("0x35")]&&!this[Ir("0x19")][Ir("0x2f")](r[Ir("0x35")])?r[Ir("0x35")]:null,r.isEmpty||n&&n[Ir("0x25")]){const e=n&&n.isEmpty?n.name:r[Ir("0xf")];s&&s[Ir("0x37")]==o+Ir("0xc")&&s[Ir("0xf")]==e?s[Ir("0x2")]++:t[Ir("0x2d")]({type:o+Ir("0xc"),name:e,quantity:1})}else t[Ir("0x2d")]({type:o+Ir("0x20"),name:r[Ir("0xf")]})}}}[Ir("0x1d")](t){const e=this[Ir("0x29")],n=[];for(const o of t){switch(o.type){case Ir("0x1e"):if(o[Ir("0x2b")]=o[Ir("0x2b")][Ir("0x14")](/(\S)\u000A+(\S)/g,"$1 $2").replace(/\u000A/g,""),o[Ir("0xb")]=o[Ir("0xb")].replace(/(\S)\u000A+(\S)/g,Ir("0x0"))[Ir("0x14")](/\u000A/g,""),""!=o.add&&""!=o[Ir("0xb")]){n[Ir("0x2d")]({type:Ir("0x14"),content:kr(e,Ir("0x38"),['"'+o[Ir("0xb")]+'"','"'+o[Ir("0x2b")]+'"'])});continue}if(null!=o[Ir("0x2b")].match(/^ +$/)){n.push({type:Ir("0x13"),content:kr(e,Ir("0x1b"),kr(e,Ir("0x32"),o[Ir("0x2b")][Ir("0x12")]))});continue}if(null!=o.remove.match(/^ +$/)){n[Ir("0x2d")]({type:Ir("0x11"),content:kr(e,Ir("0x21"),kr(e,Ir("0x32"),o[Ir("0xb")].length))});continue}if(""!=o[Ir("0x2b")]){n.push({type:Ir("0x13"),content:kr(e,"*Insert:* %0",'"'+o[Ir("0x2b")]+'"')});continue}n[Ir("0x2d")]({type:"deletion",content:kr(e,Ir("0x21"),'"'+o[Ir("0xb")]+'"')});continue;case Ir("0xa"):case Ir("0x10"):n.push({type:"insertion",content:kr(e,Ir("0x1b"),this[Ir("0x5")](o.name,o.quantity))});continue;case Ir("0x1"):case"removeObject":n.push({type:Ir("0x11"),content:kr(e,Ir("0x21"),this[Ir("0x5")](o.name,o.quantity))});continue;case Ir("0x1f"):n.push({type:"insertion",content:kr(e,Ir("0x15"),this[Ir("0x5")](o.name,o[Ir("0x2")]))});continue;case Ir("0x1c"):n[Ir("0x2d")]({type:"deletion",content:kr(e,Ir("0x6"),this.getItemLabel(o.name,o[Ir("0x2")]))});continue}n[Ir("0x2d")](o)}return n}}const wr=["alignment","right","editor","afterInit","getSelectedBlocks","left","model","FORMAT_ALIGN_TO_LEFT","has","FORMAT_ALIGN_TO_CENTER","value","plugins","checkAttribute","enableCommand","FORMAT_JUSTIFY_TEXT","TrackChangesEditing","FORMAT_ALIGN_TO_RIGHT","_descriptionFactory","change","ltr","get","document","selection","markBlockFormat","*Format:* %0","registerDescriptionCallback","locale","center"];var Mr,Nr;Mr=wr,Nr=339,function(t){for(;--t;)Mr.push(Mr.shift())}(++Nr);const Lr=function(t,e){return wr[t-=0]};class Or extends t.Plugin{[Lr("0x0")](){const t=this.editor,e=t[Lr("0x17")];if(!t[Lr("0x8")][Lr("0x5")]("AlignmentEditing"))return;const n=t[Lr("0x8")][Lr("0x11")](Lr("0xc"));n[Lr("0xa")]("alignment",((e,o={})=>{let r=o[Lr("0x7")];o[Lr("0x7")]||(r=Lr("0x10")===t.locale.contentLanguageDirection?Lr("0x2"):Lr("0x1a"));const s=Array.from(this[Lr("0x1b")][Lr("0x3")][Lr("0x12")][Lr("0x13")][Lr("0x1")]()).filter((t=>function(t,e,n){const o=t.getAttribute(Lr("0x19"))||null;return e[Lr("0x9")](t,"alignment")&&n!=o}(t,this[Lr("0x1b")][Lr("0x3")].schema,r)));t.model[Lr("0xf")]((()=>{for(const t of s)n[Lr("0x14")](t,{commandName:Lr("0x19"),commandParams:[{value:r}]})}))})),n[Lr("0xe")][Lr("0x16")]((t=>{const{data:n}=t;if(n&&"alignment"==n.commandName){const t=n.commandParams[0][Lr("0x7")];return{type:"format",content:kr(e,Lr("0x15"),function(t){switch(t){case Lr("0x2"):return kr(e,Lr("0x4"));case Lr("0x1a"):return kr(e,Lr("0xd"));case Lr("0x18"):return kr(e,Lr("0x6"));case"justify":return kr(e,Lr("0xb"))}}(t))}}}))}}const Fr=["listItem","activeMarkers","getWalker","elementEnd","isContent","plugins","push","isAtEnd","markerName","listIndent","isBlock","createRangeOn","TrackChangesEditing","hasAttribute","mapper","schema","writer","type","bindElementToMarker","test","getAttribute","createUIElement","getItems","toViewPosition","previousPosition","markerRange","ck-suggestion-marker-","getCustomProperty","name","nextSibling","toViewElement","element","consumable","parent","isLimit","span","item"];var Pr,Dr;Pr=Fr,Dr=201,function(t){for(;--t;)Pr.push(Pr.shift())}(++Dr);const jr=function(t,e){return Fr[t-=0]};function Br(t,e,n){const o=[];for(const r of e[jr("0x6")]())r[jr("0x22")](t)&&o.push(n[jr("0x20")](r));return o}function Ur(t){const e=[];if(t.is(jr("0xf"),jr("0x15"))){let n=t.nextSibling;for(;n&&n.is(jr("0xf"),"listItem")&&n[jr("0x4")](jr("0x1e"))>0;)e[jr("0x1b")](n),n=n[jr("0xd")]}return e}function Hr(t,e,{showActiveMarker:n=!0}={}){const o=t[jr("0x1a")].get(jr("0x21"));return(r,s,i)=>{if(!i[jr("0x10")][jr("0x3")](s[jr("0x9")],r[jr("0xc")]))return;const x=s.markerRange[jr("0x17")](),a=s.markerRange.start,c=t.model[jr("0x24")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[jr("0x14")];d=d||c[jr("0x19")](e);const n=i[jr("0x23")][jr("0xe")](e);if(n&&n[jr("0xb")]("addHighlight"))return;jr("0x18")==t[jr("0x1")]&&c[jr("0x1f")](e)&&!c[jr("0x12")](e)&&(e[jr("0xd")]||a[jr("0x1c")]?l&&l[jr("0x11")]==e||(l=e,f(t[jr("0x8")]),g=!0):u=u||t[jr("0x8")])}function f(t){const r=i.writer[jr("0x5")](jr("0x13"),{class:jr("0xa")+e}),x=i[jr("0x23")][jr("0x7")](t);n&&o[jr("0x16")].includes(s[jr("0x1d")])&&i[jr("0x0")].addClass("ck-suggestion-marker--active",r),i.writer.insert(x,r),i[jr("0x23")][jr("0x2")](r,s.markerName)}d||g||!u||f(u)}}const Gr=["model","BoldEditing","subscript","*Remove format:* %0","underline","TrackChangesEditing","FORMAT_SUPERSCRIPT","SubscriptEditing","change","getRanges","FORMAT_BOLD","forceValue","registerDescriptionCallback","get","bold","FORMAT_STRIKETHROUGH","superscript","enableCommand","_descriptionFactory","from","FORMAT_SUBSCRIPT","slice","markInlineFormat","selection","format","toLowerCase","plugins","isCollapsed","value","editor","SuperscriptEditing","FORMAT_CODE","has","commands","document"];var zr,Vr;zr=Gr,Vr=109,function(t){for(;--t;)zr.push(zr.shift())}(++Vr);const Wr=function(t,e){return Gr[t-=0]},Kr=[Wr("0x20"),"ItalicEditing","UnderlineEditing","CodeEditing","StrikethroughEditing",Wr("0x3"),Wr("0x1a")];class qr extends t.Plugin{afterInit(){const t=this[Wr("0x19")],e=t[Wr("0x1f")],n=t[Wr("0x16")][Wr("0x9")](Wr("0x1")),o=t.locale;for(const o of Kr){if(!t[Wr("0x16")][Wr("0x1c")](o))continue;const r=o[Wr("0x11")](0,-7)[Wr("0x15")](),s=t[Wr("0x1d")].get(r);n[Wr("0xd")](r,((t,o={})=>{const i=e[Wr("0x1e")][Wr("0x13")];if(i[Wr("0x17")])return void t(o);const x=void 0!==o[Wr("0x7")]?o[Wr("0x7")]:!s[Wr("0x18")];e[Wr("0x4")]((()=>{const t=Array[Wr("0xf")](i[Wr("0x5")]());for(const o of t){const t=x?[o]:Br(r,o,e);for(const e of t)n[Wr("0x12")](e,{commandName:r,commandParams:[{forceValue:x}]})}}))}))}function r(t,e){n[Wr("0xe")][Wr("0x8")]((n=>{const{data:r}=n;if(r&&r.commandName===t)return r.commandParams[0][Wr("0x7")]?{type:"format",content:kr(o,"*Format:* %0",e)}:{type:Wr("0x14"),content:kr(o,Wr("0x22"),e)}}))}r(Wr("0xa"),kr(o,Wr("0x6"))),r("italic",kr(o,"FORMAT_ITALIC")),r(Wr("0x0"),kr(o,"FORMAT_UNDERLINE")),r("code",kr(o,Wr("0x1b"))),r("strikethrough",kr(o,Wr("0xb"))),r(Wr("0x21"),kr(o,Wr("0x10"))),r(Wr("0xc"),kr(o,Wr("0x2")))}}const $r=["change","length","name","forceValue","get","createRange","locale","$root","model","value","end","from","type","registerDescriptionCallback","schema","has","commandParams","afterInit","ELEMENT_BLOCK_QUOTE","markBlockFormat","parent","filter","*Remove format:* %0","checkChild","getSelectedBlocks","createPositionBefore","commands","commandName","createPositionAfter","push","*Format:* %0","isObject","BlockQuoteEditing","createPositionAt","isLimit","item","document","editor","enableCommand","blockQuote","_descriptionFactory"];var Xr,Jr;Xr=$r,Jr=405,function(t){for(;--t;)Xr.push(Xr.shift())}(++Jr);const Qr=function(t,e){return $r[t-=0]};class Yr extends t.Plugin{[Qr("0x16")](){const t=this.editor,e=t[Qr("0xb")];if(!t.plugins[Qr("0x14")](Qr("0x25")))return;const n=t.plugins[Qr("0x9")]("TrackChangesEditing"),o=this[Qr("0x1")][Qr("0x1f")][Qr("0x9")](Qr("0x3"));n[Qr("0x2")]("blockQuote",((e,r={})=>{const s=this[Qr("0x1")].model[Qr("0x0")].selection,i=r&&void 0!==r[Qr("0x8")]?r[Qr("0x8")]:!o[Qr("0xe")];let x=[];if(i){const e=Array.from(s[Qr("0x1d")]())[Qr("0x1a")]((t=>Zr(t)||function(t,e){const n=e[Qr("0x1c")](t[Qr("0x19")],Qr("0x3")),o=e[Qr("0x1c")]([Qr("0xc"),Qr("0x3")],t);return n&&o}(t,this.editor[Qr("0xd")].schema)));x=ts(e,t[Qr("0xd")])}else{const e=Array[Qr("0x10")](s[Qr("0x1d")]()).filter((t=>Zr(t)));x=ts(e,t[Qr("0xd")])}t[Qr("0xd")][Qr("0x5")]((()=>{for(const t of x)n[Qr("0x18")](t,{commandName:"blockQuote",commandParams:[{forceValue:i}]})}))})),n[Qr("0x4")][Qr("0x12")]((t=>{const{data:n}=t;if(n&&"blockQuote"==n[Qr("0x20")]){const t=kr(e,Qr("0x17"));return n[Qr("0x15")][0][Qr("0x8")]?{type:"format",content:kr(e,Qr("0x23"),t)}:{type:"format",content:kr(e,Qr("0x1b"),t)}}}))}}function Zr(t){return Qr("0x3")==t[Qr("0x19")][Qr("0x7")]}function ts(t,e){let n,o=0;const r=[],s=e[Qr("0x13")];for(;o<t[Qr("0x6")];){const i=t[o],x=t[o+1];n||(n=e[Qr("0x1e")](i)),es(e,i,x)||(r[Qr("0x22")](e[Qr("0xa")](n,s[Qr("0x24")](i)?e[Qr("0x21")](i):e[Qr("0x26")](i,Qr("0xf")))),n=null),o++}return r}function es(t,e,n){if(!n)return!1;const o=t[Qr("0x21")](e),r=t[Qr("0x1e")](n),s=new F.TreeWalker({boundaries:t.createRange(o,r)});for(const e of s)if("text"==e[Qr("0x11")]||t[Qr("0x13")][Qr("0x27")](e[Qr("0x28")]))return!1;return!0}const ns=["plugins","locale","TrackChangesEditing","CodeBlock","ELEMENT_CODE_BLOCK","afterInit","get","registerElementLabel"];var os,rs;os=ns,rs=439,function(t){for(;--t;)os.push(os.shift())}(++rs);const ss=function(t,e){return ns[t-=0]};class is extends t.Plugin{[ss("0x6")](){const t=this.editor,e=t[ss("0x2")];t[ss("0x1")].has(ss("0x4"))&&t[ss("0x1")][ss("0x7")](ss("0x3"))._descriptionFactory[ss("0x0")]("codeBlock",(t=>kr(e,ss("0x5"),t)))}}var xs,as,cs=["enableCommand","addCommentThread","init","get","TrackChangesEditing","editor","plugins","CommentsEditing"];xs=cs,as=114,function(t){for(;--t;)xs.push(xs.shift())}(++as);var ls=function(t,e){return cs[t-=0]};class us extends t.Plugin{static get requires(){return[ls("0x5")]}[ls("0x0")](){this[ls("0x3")][ls("0x4")][ls("0x1")](ls("0x2"))[ls("0x6")](ls("0x7"))}}var ds=n(181);const gs=["unit","options","$graveyard","markerName","enableCommand","plugins","createSelection","delete","start","TrackChangesEditing","data","root","deleteForward","editing","batch","getFirstRange","addMarker:suggestion:deletion","showSuggestionHighlights","downcastDispatcher","buffer","lock","high","detach","createRange","uiElement","fromRange","end","editor","mapper","commands","selection","unbindElementFromMarkerName","document","isCollapsed","get","model","writer","removeMarker:suggestion:deletion","requires","enqueueChange","setSelection"];var fs,ms;fs=gs,ms=245,function(t){for(;--t;)fs.push(fs.shift())}(++ms);const hs=function(t,e){return gs[t-=0]};class ps extends t.Plugin{static get[hs("0x27")](){return[ds.Delete]}init(){const t=this[hs("0x1c")],e=t[hs("0x6")][hs("0x23")](hs("0xa"));e[hs("0x5")](hs("0x8"));const n=t[hs("0x1e")][hs("0x23")](hs("0xd"));e[hs("0x5")](hs("0xd"),((e,o={})=>{const r=t[hs("0x24")][hs("0x7")](t[hs("0x24")][hs("0x21")][hs("0x1f")]);r[hs("0x22")]&&t[hs("0x24")].modifySelection(r,{direction:"forward",unit:o[hs("0x1")]});const s=r[hs("0x10")](),i=F.LiveRange[hs("0x1a")](s);let x;e(o),x=hs("0x3")==i[hs("0xc")].rootName?t[hs("0x24")][hs("0x18")](s[hs("0x9")]):t[hs("0x24")].createRange(i[hs("0x9")],i[hs("0x1b")]),i[hs("0x17")](),t.model[hs("0x28")](n[hs("0x14")][hs("0xf")],(t=>{n[hs("0x14")][hs("0x15")](),t[hs("0x0")](t[hs("0x18")](x[hs("0x1b")])),n[hs("0x14")].unlock()}))})),t[hs("0xe")][hs("0x13")].on(hs("0x11"),Hr(t,"merge"),{priority:hs("0x16")}),t[hs("0xb")][hs("0x13")].on(hs("0x11"),((e,n,o)=>{o[hs("0x2")][hs("0x12")]&&Hr(t,"merge",{showActiveMarker:!1})(e,n,o)}),{priority:hs("0x16")}),t[hs("0xe")][hs("0x13")].on(hs("0x26"),((t,e,n)=>{const o=n[hs("0x1d")].markerNameToElements(e[hs("0x4")]);if(o)for(const t of o)t.is(hs("0x19"))&&(n[hs("0x1d")][hs("0x20")](t,e[hs("0x4")]),n[hs("0x25")].remove(t))}),{priority:"high"})}}var bs=n(331);const Es=["writer","downcastDispatcher","end","plugins","isAtEnd","model","start","schema","fromRange","TrackChangesEditing","mapper","markerName","requires","editing","createPositionAt","init","nextSibling","enter","markInsertion","addMarker:suggestion:insertion","unbindElementFromMarkerName","markerNameToElements","options","createRange","isLimit","setSelection","parent","high","document","detach","removeMarker:suggestion:insertion","selection","getFirstRange","remove","get","data","isCollapsed","hasClass"];var _s,ys;_s=Es,ys=451,function(t){for(;--t;)_s.push(_s.shift())}(++ys);const Ts=function(t,e){return Es[t-=0]};class Cs extends t.Plugin{static get[Ts("0x11")](){return[bs.Enter]}[Ts("0x14")](){const t=this.editor,e=t[Ts("0x8")][Ts("0x1")](Ts("0xe"));e.enableCommand(Ts("0x16"),(n=>{t[Ts("0xa")].change((o=>{const r=t[Ts("0xa")][Ts("0x21")][Ts("0x24")],s=r.getFirstPosition(),i=r[Ts("0x3")],x=F.LiveRange[Ts("0xd")](r[Ts("0x25")]()),a=x[Ts("0xb")][Ts("0x1f")],c=x[Ts("0x7")][Ts("0x1f")],l=!(x.start.isAtStart&&x[Ts("0x7")][Ts("0x9")]),u=a==c,d=!(t[Ts("0xa")][Ts("0xc")][Ts("0x1d")](a)||t[Ts("0xa")].schema[Ts("0x1d")](c))&&(i||l&&u);if(n(),d){const n=t[Ts("0xa")][Ts("0x13")](s[Ts("0x1f")][Ts("0x15")],0),r=o[Ts("0x1c")](s,n);e[Ts("0x17")](r)}else o[Ts("0x1e")](o.createRange(x[Ts("0x7")]));x[Ts("0x22")]()}))})),t[Ts("0x12")][Ts("0x6")].on(Ts("0x18"),Hr(t,"split"),{priority:Ts("0x20")}),t[Ts("0x12")][Ts("0x6")].on(Ts("0x23"),((t,e,n)=>{const o=n[Ts("0xf")][Ts("0x1a")](e[Ts("0x10")]);if(o)for(const t of o)t[Ts("0x4")]("ck-suggestion-marker-split")&&(n[Ts("0xf")][Ts("0x19")](t,e.markerName),n[Ts("0x5")][Ts("0x0")](t))}),{priority:Ts("0x20")}),t[Ts("0x2")][Ts("0x6")].on(Ts("0x18"),((e,n,o)=>{o[Ts("0x1b")].showSuggestionHighlights&&Hr(t,"split",{showActiveMarker:!1})(e,n,o)}),{priority:Ts("0x20")})}}const ks=["TrackChangesEditing","FontSizeEditing","getRanges","_enableCommand","trim","*Reset font size*","normalizeSizeOptions","format","fontColor","toLowerCase","has","markInlineFormat","plugins","find","commandParams","*Reset font background color*","change","*Set font family:* %0","afterInit","*Set font color:* %0","_descriptionFactory","from","config","FontBackgroundColorEditing","fontBackgroundColor","registerDescriptionCallback","enableCommand","fontBackgroundColor.colors","value","model","get","commandName","FontFamilyEditing","title","*Set font background color:* %0","document","*Set font size:* %0","*Reset font family*","fontSize","fontSize.options","locale","FontColorEditing","editor","*Reset font color*","fontFamily"];var vs,As;vs=ks,As=128,function(t){for(;--t;)vs.push(vs.shift())}(++As);const Rs=function(t,e){return ks[t-=0]},Is=[{pluginName:Rs("0x8"),commandName:Rs("0x0")},{pluginName:Rs("0x27"),commandName:Rs("0x6")},{pluginName:Rs("0x3"),commandName:"fontColor"},{pluginName:Rs("0x1e"),commandName:"fontBackgroundColor"}];class Ss extends t.Plugin{[Rs("0x19")](){const t=this[Rs("0x4")][Rs("0x2")];for(const{pluginName:t,commandName:e}of Is)this[Rs("0x4")][Rs("0x13")][Rs("0x11")](t)&&this._enableCommand(e);this[Rs("0x4")].plugins[Rs("0x25")](Rs("0x7"))[Rs("0x1b")][Rs("0x20")]((e=>{const{data:n}=e;if(null!=n){if(Rs("0x0")==n[Rs("0x26")]){const e=n[Rs("0x15")][0][Rs("0x23")];if(e){const n=this[Rs("0x4")][Rs("0x13")][Rs("0x25")]("FontSize")[Rs("0xd")](this.editor[Rs("0x1d")][Rs("0x25")](Rs("0x1")))[Rs("0x14")]((t=>t.model==e))[Rs("0x28")],o=this[Rs("0x4")][Rs("0x2")]._t(n)[Rs("0x10")]();return{type:Rs("0xe"),content:kr(t,Rs("0x2b"),o)}}return{type:Rs("0xe"),content:kr(t,Rs("0xc"))}}if(Rs("0x6")==n.commandName){const e=n[Rs("0x15")][0][Rs("0x23")];return e?{type:Rs("0xe"),content:kr(t,Rs("0x18"),e)}:{type:Rs("0xe"),content:kr(t,Rs("0x2c"))}}if(Rs("0xf")==n[Rs("0x26")]){const e=n[Rs("0x15")][0].value;if(e){const n=(0,r.normalizeColorOptions)(this[Rs("0x4")].config.get("fontColor.colors"))[Rs("0x14")]((t=>t[Rs("0x24")]==e));let o=e,s="";return n&&(o=n.label,s=t._t(o)[Rs("0x10")]()),{type:Rs("0xe"),content:kr(t,Rs("0x1a"),s)[Rs("0xb")](),color:{value:e,title:s||o}}}return{type:Rs("0xe"),content:kr(t,Rs("0x5"))}}if(Rs("0x1f")==n[Rs("0x26")]){const e=n.commandParams[0][Rs("0x23")];if(e){const n=(0,r.normalizeColorOptions)(this[Rs("0x4")][Rs("0x1d")][Rs("0x25")](Rs("0x22")))[Rs("0x14")]((t=>t.model==e));let o=e,s="";return n&&(o=n.label,s=t._t(o)[Rs("0x10")]()),{type:"format",content:kr(t,Rs("0x29"),s)[Rs("0xb")](),color:{value:e,title:s||o}}}return{type:"format",content:kr(t,Rs("0x16"))}}}}))}[Rs("0xa")](t){const e=this.editor;e.plugins[Rs("0x25")](Rs("0x7"))[Rs("0x21")](t,((n,o={})=>{const r=e[Rs("0x24")][Rs("0x2a")].selection,s=o[Rs("0x23")];r.isCollapsed?n(o):e[Rs("0x24")][Rs("0x17")]((()=>{const n=Array[Rs("0x1c")](r[Rs("0x9")]());for(const o of n){const n=s?[o]:Br(t,o,e[Rs("0x24")]);for(const o of n)e.plugins.get(Rs("0x7"))[Rs("0x12")](o,{commandName:t,commandParams:[{value:s}]})}}))}))}}const ws=["ELEMENT_HEADING_CUSTOM","format","checkChild","config","blockName","value","has","*Change to:* %0","commandParams","match","parent","filter","heading","name","get","editor","markBlockFormat","heading.options","TrackChangesEditing","registerDescriptionCallback","registerElementLabel","plugins","_descriptionFactory","ELEMENT_HEADING","change","from","enableCommand","model","document","title","isObject","locale","commandName","find","HeadingEditing"];var Ms,Ns;Ms=ws,Ns=482,function(t){for(;--t;)Ms.push(Ms.shift())}(++Ns);const Ls=function(t,e){return ws[t-=0]};class Os extends t.Plugin{afterInit(){const t=this.editor,e=t[Ls("0x4")],n=t[Ls("0xb")][Ls("0x16")](Ls("0x19"));if(!t[Ls("0x1d")][Ls("0xe")](Ls("0x7")))return;const o=t[Ls("0x1d")][Ls("0x16")](Ls("0x1a"));o[Ls("0x22")](Ls("0x14"),((e,n)=>{const r=n.value,s=Array[Ls("0x21")](this.editor[Ls("0x0")][Ls("0x1")].selection.getSelectedBlocks())[Ls("0x13")]((t=>{return e=t,n=r,(o=this[Ls("0x17")].model.schema)[Ls("0xa")](e[Ls("0x12")],n)&&!o[Ls("0x3")](e)&&e[Ls("0x15")]!=n;var e,n,o}));t[Ls("0x0")][Ls("0x20")]((()=>{for(const t of s)o[Ls("0x18")](t,{commandName:Ls("0x14"),commandParams:[n],formatGroupId:Ls("0xc")},Ur(t))}))}));for(const t of n)"paragraph"!=t[Ls("0x0")]&&o[Ls("0x1e")][Ls("0x1c")](t[Ls("0x0")],(e=>{const n=Fs(t[Ls("0x0")]);return null!==n?r(e,n):s(e,t.title)}));function r(t,n){return kr(e,Ls("0x1f"),[t,n])}function s(t,n){return kr(e,Ls("0x8"),[t,n])}o[Ls("0x1e")][Ls("0x1b")]((t=>{const{type:o,data:i}=t;if("formatBlock"==o&&i&&"heading"==i[Ls("0x5")]){const t=i[Ls("0x10")][0][Ls("0xd")],o=Fs(t);if(null!==o)return{type:Ls("0x9"),content:kr(e,Ls("0xf"),r(1,o))};const x=n[Ls("0x6")]((e=>e.model===t))[Ls("0x2")];return{type:Ls("0x9"),content:kr(e,Ls("0xf"),s(1,x))}}}))}}function Fs(t){const e=t[Ls("0x11")](/^heading(\d+)$/);return e?e[1]:null}const Ps=["registerDescriptionCallback","getRanges","formatInline","commandName","backward","getFirstPosition","highlight.options","value","HighlightEditing","get","push","item","format","color","*Set highlight:* %0","getLastMatchingPosition","plugins","change","find","hasAttribute","config","model","getAttribute","document","highlight","commandParams","editor","title"];var Ds,js;Ds=Ps,js=446,function(t){for(;--t;)Ds.push(Ds.shift())}(++js);const Bs=function(t,e){return Ps[t-=0]};class Us extends t.Plugin{afterInit(){const t=this[Bs("0x0")];if(!t[Bs("0x12")].has(Bs("0xa")))return;const e=t[Bs("0x12")].get("TrackChangesEditing");e.enableCommand(Bs("0x1a"),((n,o={})=>{const r=t.model[Bs("0x19")].selection,s=r.getAttribute("highlight");let i=o[Bs("0x9")],x=[];if(r.isCollapsed){const e=r[Bs("0x7")]();if(!r[Bs("0x15")](Bs("0x1a")))return void n(o);{const n=t=>t[Bs("0xd")][Bs("0x18")](Bs("0x1a"))===s,o=e[Bs("0x11")](n,{direction:Bs("0x6")}),r=e[Bs("0x11")](n);x=[t[Bs("0x17")].createRange(o,r)],i==s&&(i=null)}}else for(const e of r[Bs("0x3")]())i?x[Bs("0xc")](e):x[Bs("0xc")](...Br(Bs("0x1a"),e,t[Bs("0x17")]));t.model[Bs("0x13")]((()=>{for(const t of x)e.markInlineFormat(t,{commandName:"highlight",commandParams:[{value:i}]})}))}));const n=t.locale;e._descriptionFactory[Bs("0x2")]((e=>{const{type:o,data:r}=e;if(Bs("0x4")==o&&r&&Bs("0x1a")==r[Bs("0x5")]){const e=r[Bs("0x1b")][0].value;if(e){const o=t[Bs("0x16")][Bs("0xb")](Bs("0x8"))[Bs("0x14")]((t=>t.model==e)),r=n._t(o[Bs("0x1")]).toLowerCase();return{type:Bs("0xe"),content:kr(n,Bs("0x10"),r),color:{value:o[Bs("0xf")],title:o[Bs("0x1")]}}}return{type:Bs("0xe"),content:kr(n,"*Remove highlight*",kr(n,"FORMAT_HIGHLIGHT"))}}}))}}const Hs=["plugins","insert","high","HorizontalLineEditing","conversion","dataDowncast","afterInit","createEmptyElement","elementToStructure","get","horizontalLine","createContainerElement","enableCommand","showSuggestionHighlights","locale","has","_descriptionFactory"];var Gs,zs;Gs=Hs,zs=151,function(t){for(;--t;)Gs.push(Gs.shift())}(++zs);const Vs=function(t,e){return Hs[t-=0]};class Ws extends t.Plugin{[Vs("0x8")](){const t=this.editor;if(!t.plugins[Vs("0x0")](Vs("0x5")))return;t[Vs("0x2")][Vs("0xb")]("TrackChangesEditing")[Vs("0xe")](Vs("0xc"));const e=t[Vs("0x2")].get("TrackChangesEditing"),n=t[Vs("0x10")];e[Vs("0x1")].registerElementLabel(Vs("0xc"),(t=>kr(n,"ELEMENT_HORIZONTAL_LINE",t))),t[Vs("0x6")].for(Vs("0x7"))[Vs("0xa")]({model:"horizontalLine",view:(t,{writer:e,options:n})=>{if(!n[Vs("0xf")])return;const o=e[Vs("0xd")]("div"),r=e[Vs("0x9")]("hr");return e.addClass("ck-horizontal-line",o),e[Vs("0x3")](e.createPositionAt(o,0),r),o},converterPriority:Vs("0x4")})}}const Ks=["isInlineImage","toggleImageCaption","TrackChangesEditing","filter","registerPostFixer","ImageBlockEditing","getContainedElement","findIndex","suggestion","isIntersecting","*Set image width:* %0","start","addObject","*Set image text alternative:* %0","markBlockFormat","selection","isBlockImage","nodeBefore","schema","find","nodeAfter","head","getAttribute","insertImage","document","ImageEditing","deletion","width","getClosestSelectedImageElement","hasAttribute","createRange","ImageUtils","commands","getChangedMarkers","from","imageStylePreApply","convertInlineImageToBlock","side","toNext","detach","getSuggestion","Users","plugins","imageStyle","_suggestionFactory","isInContent","ELEMENT_CAPTION","end","author","newValue","getCaptionFromImageModelElement","markDeletion","model","*Remove image text alternative*","get","uploadImage","name","chain","editor","removeObject","hasSuggestion","imageStylePostApply","differ","forward","refresh","commandReversedParams","enableCommand","next","isOwn","imageTypeInline","accept","markInsertion","subType","formatInline","imageBlock","type","commandParams","_descriptionFactory","has","ImageUploadEditing","forEach","Inline image to block image","discardSuggestion","resizeImage","ImageStyleEditing","imageCaption","forceDefaultExecution","registerCustomCallback","ELEMENT_INLINE_IMAGE","createRangeOn","isEqual","caption","getSuggestionCallback","formatBlock","isBefore","FORMAT_SIDE_IMAGE","length","registerDescriptionCallback","Block image to inline image","join","*Format:* %0","isCollapsed","getFirstRange","commandName","format","imageTextAlternative","registerElementLabel","alt","change","shouldConvertImageType","backward","imageTypeBlock","ImageResize","ImageInlineEditing","imageInline","fromPosition","element","ELEMENT_IMAGE","insertion","value","convertBlockImageToInline","discard"];var qs,$s;qs=Ks,$s=138,function(t){for(;--t;)qs.push(qs.shift())}(++$s);const Xs=function(t,e){return Ks[t-=0]};class Js extends t.Plugin{afterInit(){const t=this[Xs("0x2a")];if(!t.plugins.has(Xs("0x9")))return;const n=t[Xs("0x1a")][Xs("0x26")](Xs("0x6c")),o=t[Xs("0x1a")].get(Xs("0xf")),r={},s=t.locale;if(n.enableCommand(Xs("0x7")),n[Xs("0x3d")].registerElementLabel(Xs("0x3a"),(t=>kr(s,Xs("0x65"),t))),n._descriptionFactory[Xs("0x5a")](Xs("0x62"),(t=>kr(s,Xs("0x48"),t))),n[Xs("0x3d")].registerElementLabel(Xs("0x4b"),kr(s,Xs("0x1e"))),t[Xs("0x1a")][Xs("0x3e")](Xs("0x3f"))&&n.enableCommand(Xs("0x27")),t[Xs("0x1a")][Xs("0x3e")](Xs("0x6f"))&&t[Xs("0x1a")][Xs("0x3e")](Xs("0x61"))&&(n[Xs("0x32")](Xs("0x35"),((e,r)=>{const s=o[Xs("0xc")](t.model[Xs("0x8")].selection);t[Xs("0x24")][Xs("0x5c")]((()=>{n[Xs("0x78")](s,{commandName:Xs("0x35"),commandParams:[r]},[],Xs("0x68"))}))})),n[Xs("0x32")]("imageTypeBlock",((e,r)=>{t[Xs("0x24")][Xs("0x5c")]((s=>{let i=o[Xs("0xc")](t[Xs("0x24")][Xs("0x8")][Xs("0x79")]),x=s[Xs("0x49")](i);const a=F.LivePosition.fromPosition(x[Xs("0x75")],"toPrevious"),c=F.LivePosition[Xs("0x63")](x[Xs("0x1f")],Xs("0x16"));n[Xs("0x46")]((()=>e(r))),i=o[Xs("0xc")](t[Xs("0x24")].document[Xs("0x79")]),x=s[Xs("0x49")](i);const l=s.createRange(a,c);a[Xs("0x17")](),c[Xs("0x17")](),n[Xs("0x78")](i,{commandName:"imageTypeInline"},[],"convertInlineImageToBlock"),l.start[Xs("0x4e")](x[Xs("0x75")])&&n.markInsertion(s[Xs("0xe")](l[Xs("0x75")],x.start),Xs("0x14")),x.end[Xs("0x4e")](l[Xs("0x1f")])&&n[Xs("0x37")](s[Xs("0xe")](x.end,l.end),Xs("0x14"))}))})),n[Xs("0x1c")][Xs("0x47")]("formatBlock","convertInlineImageToBlock",Xs("0x53"),(()=>{})),n[Xs("0x1c")].registerCustomCallback(Xs("0x4d"),Xs("0x14"),Xs("0x36"),(()=>{})),n[Xs("0x1c")].registerCustomCallback(Xs("0x4d"),Xs("0x14"),Xs("0x69"),n[Xs("0x1c")][Xs("0x4c")](Xs("0x4d"),"",Xs("0x36"))),n[Xs("0x1c")].registerCustomCallback("insertion",Xs("0x14"),"join",(()=>{})),n[Xs("0x1c")][Xs("0x47")](Xs("0x66"),Xs("0x14"),Xs("0x69"),(([e])=>{const o=n[Xs("0x1c")][Xs("0x4c")](Xs("0x66"),"","discard");let r=e[Xs("0x75")],s=e[Xs("0x1f")];const i=t[Xs("0x24")][Xs("0x2")].getNearestSelectionRange(r,Xs("0x5e")),x=t.model.schema.getNearestSelectionRange(s,Xs("0x2f"));i.isCollapsed&&(r=i[Xs("0x75")]),x[Xs("0x55")]&&(s=x.end),o([t[Xs("0x24")][Xs("0xe")](r,s)])})),n[Xs("0x1c")][Xs("0x47")](Xs("0x4d"),"convertInlineImageToBlock",Xs("0x29"),a),n[Xs("0x1c")].registerCustomCallback(Xs("0x66"),Xs("0x14"),Xs("0x29"),a)),t.plugins[Xs("0x3e")]("ImageCaptionEditing")&&(n[Xs("0x32")](Xs("0x6b"),((e,r)=>{const s=t[Xs("0x1a")].get("ImageCaptionUtils");let i=o[Xs("0xc")](t[Xs("0x24")][Xs("0x8")][Xs("0x79")]),x=s[Xs("0x22")](i);t[Xs("0x24")][Xs("0x5c")]((()=>{if(x)return void n[Xs("0x23")](t.model[Xs("0x49")](x));const a=o[Xs("0x0")](i);e(r),i=o[Xs("0xc")](t[Xs("0x24")][Xs("0x8")][Xs("0x79")]),x=s[Xs("0x22")](i),n[Xs("0x37")](t[Xs("0x24")][Xs("0x49")](x),a?null:Xs("0x45"))}))})),n[Xs("0x1c")].registerCustomCallback("insertion",Xs("0x45"),"chain",a)),t.plugins.has(Xs("0x44"))){n[Xs("0x32")](Xs("0x1b"),((r,s)=>{const i=t[Xs("0x1a")][Xs("0x26")](Xs("0x19")).me,x=t[Xs("0x10")].get(Xs("0x1b"));let a=o[Xs("0xc")](t.model.document[Xs("0x79")]),c=t.model[Xs("0x49")](a),l=x[Xs("0x67")];if(l==s[Xs("0x67")])return;const u={commandName:"imageStyle",commandParams:[s],formatGroupId:(0,e.uid)()};t[Xs("0x24")][Xs("0x5c")]((()=>{if(n.getSuggestions()[Xs("0x6d")]((t=>t[Xs("0x1d")]&&i==t[Xs("0x20")]&&("formatBlock"==t.type||"formatInline"==t[Xs("0x3b")])&&(Xs("0x13")==t.subType||Xs("0x2d")==t[Xs("0x38")])&&t[Xs("0x56")]()[Xs("0x4a")](c)))[Xs("0x40")]((t=>n[Xs("0x42")](t[Xs("0x5")]))),a=o[Xs("0xc")](t[Xs("0x24")][Xs("0x8")].selection),c=t.model[Xs("0x49")](a),x[Xs("0x30")](),t[Xs("0x10")][Xs("0x26")](Xs("0x35"))[Xs("0x30")](),t.commands.get(Xs("0x5f"))[Xs("0x30")](),l=x[Xs("0x67")],l!=s[Xs("0x67")])return o[Xs("0x6a")](a)&&x[Xs("0x5d")](s[Xs("0x67")],a)?(r(s),a=o.getClosestSelectedImageElement(t[Xs("0x24")][Xs("0x8")][Xs("0x79")]),void n.markBlockFormat(a,{...u,commandReversedParams:[{value:l||null}]},[],"imageStylePreApply")):void(o.isBlockImage(a)?n[Xs("0x78")](a,u,[],Xs("0x2d")):n.markInlineFormat(c,u,"imageStylePostApply"))}))}));for(const e of t[Xs("0x1a")][Xs("0x26")](Xs("0x44")).normalizedStyles)r[e[Xs("0x28")]]=e.title.toLowerCase();n[Xs("0x1c")][Xs("0x47")](Xs("0x4d"),Xs("0x13"),Xs("0x53"),(()=>{})),n[Xs("0x1c")][Xs("0x47")](Xs("0x4d"),"imageStylePostApply",Xs("0x53"),(()=>{})),n._suggestionFactory.registerCustomCallback(Xs("0x39"),Xs("0x2d"),Xs("0x53"),(()=>{})),n._suggestionFactory[Xs("0x47")](Xs("0x4d"),Xs("0x13"),Xs("0x36"),(()=>{})),n._suggestionFactory.registerCustomCallback(Xs("0x4d"),Xs("0x13"),Xs("0x69"),((t,e)=>{n[Xs("0x1c")][Xs("0x4c")](Xs("0x4d"),"",Xs("0x36"))(t,{commandName:e.commandName,commandParams:e[Xs("0x31")]})})),n[Xs("0x1c")][Xs("0x47")]("formatBlock","imageStylePreApply",Xs("0x29"),a)}const i=[{type:Xs("0x4d"),subType:Xs("0x13")},{type:Xs("0x66"),subType:Xs("0x45")},{type:Xs("0x4d"),subType:Xs("0x14")},{type:Xs("0x66"),subType:Xs("0x14")}];function x(t,e){const r=i.findIndex((({type:e,subType:n})=>t[Xs("0x3b")]==e&&t[Xs("0x38")]==n)),s=i[Xs("0x71")]((({type:t,subType:n})=>e.type==t&&e[Xs("0x38")]==n));if(r<0||s<0)return!1;const x=t[Xs("0x56")](),a=e[Xs("0x56")]();if((0==r||1==r)&&2==s&&x[Xs("0x73")](a))return!0;if(2==r&&3==s){const t=n._findSuggestions(x,Xs("0x66"))[Xs("0x6d")]((({suggestion:t,meta:e})=>e[Xs("0x34")]&&Xs("0x14")==t[Xs("0x38")]));if(t.length>1&&a[Xs("0x1f")].isEqual(x[Xs("0x75")]))return!0;if(1==t[Xs("0x50")]&&(x[Xs("0x75")][Xs("0x4a")](a[Xs("0x1f")])||x[Xs("0x1f")][Xs("0x4a")](a[Xs("0x75")])))return!0}if(3==r&&3==s&&x[Xs("0x75")].isBefore(a[Xs("0x75")])){const t=x[Xs("0x1f")][Xs("0x4")],e=a[Xs("0x75")][Xs("0x1")];return o[Xs("0x0")](t)&&t===e}return!1}function a(t,e){return x(t,e)?[t,e]:x(e,t)?[e,t]:null}t[Xs("0x24")][Xs("0x8")][Xs("0x6e")]((()=>{let e=!1;const r=Array[Xs("0x12")](t[Xs("0x24")].document[Xs("0x2e")][Xs("0x11")]());for(const{name:t,data:s}of r){const{group:r,type:i,subType:x,id:a}=n._splitMarkerName(t);if(Xs("0x72")==r&&n[Xs("0x2c")](a)){if("formatBlock"==i&&(Xs("0x13")==x||Xs("0x2d")==x)){const t=n[Xs("0x18")](a);if(s.newRange){const r=t.getFirstRange()[Xs("0x70")]();if(o[Xs("0x0")](r))continue;n[Xs("0x42")](t),e=!0}}if("insertion"==i&&Xs("0x45")==x&&!s.newRange){const t=n.getSuggestion(a);t.next&&t[Xs("0x33")][Xs("0x1d")]&&(n[Xs("0x42")](t.next),e=!0)}}}return e})),t[Xs("0x1a")][Xs("0x3e")](Xs("0x60"))&&n[Xs("0x32")](Xs("0x43"),((e,r)=>{const s=o[Xs("0xc")](t[Xs("0x24")][Xs("0x8")].selection);s.getAttribute(Xs("0xb"))!=r.width&&t[Xs("0x24")][Xs("0x5c")]((()=>{n.markBlockFormat(s,{commandName:Xs("0x43"),commandParams:[r]})}))})),t.plugins[Xs("0x3e")]("ImageTextAlternativeEditing")&&n.enableCommand(Xs("0x59"),((e,r)=>{const s=o[Xs("0xc")](t[Xs("0x24")][Xs("0x8")][Xs("0x79")]);(s[Xs("0xd")]("alt")?s[Xs("0x6")](Xs("0x5b")):"")!=r.newValue&&t.model.change((()=>{n[Xs("0x78")](s,{commandName:Xs("0x59"),commandParams:[r]})}))})),n[Xs("0x3d")][Xs("0x51")]((t=>{if(i[Xs("0x3")]((({type:e,subType:n})=>t[Xs("0x3b")]==e&&t.subType==n)))return t.previous?{}:void 0})),n._descriptionFactory[Xs("0x51")]((t=>{if(Xs("0x66")==t[Xs("0x3b")]||Xs("0xa")==t.type){const e=t.getContainedElement();if(e&&e.is(Xs("0x64"),Xs("0x4b")))return{type:Xs("0x66")==t[Xs("0x3b")]?Xs("0x76"):Xs("0x2b"),name:e.name,quantity:1}}})),n[Xs("0x3d")][Xs("0x51")]((t=>Xs("0x4d")==t.type&&Xs("0x14")==t.subType?{type:Xs("0x58"),content:Xs("0x41")}:"formatBlock"==t.type&&Xs("0x68")==t.subType?{type:"format",content:Xs("0x52")}:void 0)),n._descriptionFactory[Xs("0x51")]((t=>{const{data:e}=t;if(e){if(Xs("0x1b")==e[Xs("0x57")]){const t=e[Xs("0x3c")][0][Xs("0x67")];return n=Xs("0x15")===t?kr(s,Xs("0x4f")):r[t]||t,{type:"format",content:kr(s,Xs("0x54"),n)}}if(Xs("0x59")==e[Xs("0x57")]){const t=e[Xs("0x3c")][0][Xs("0x21")];return t?{type:Xs("0x58"),content:kr(s,Xs("0x77"),'"'+t+'"')}:{type:Xs("0x58"),content:kr(s,Xs("0x25"))}}if(Xs("0x43")==e[Xs("0x57")]){const t=e[Xs("0x3c")][0][Xs("0xb")];return t?{type:Xs("0x58"),content:kr(s,Xs("0x74"),t)}:{type:"format",content:kr(s,"*Reset image width*")}}}var n}))}}const Qs=["from","document","registerDescriptionCallback","change","outdentBlock","plugins","getItems","indentBlock","IndentEditing","filter","checkAttribute","indent","format","selection","outdent","*Indent:* %0","getItemLabel","markBlockFormat","commandName","afterInit","IndentBlock","getSelectedBlocks","has","TrackChangesEditing","enableCommand","model","_descriptionFactory","editor","locale"];var Ys,Zs;Ys=Qs,Zs=437,function(t){for(;--t;)Ys.push(Ys.shift())}(++Zs);const ti=function(t,e){return Qs[t-=0]};class ei extends t.Plugin{[ti("0x11")](){const t=this[ti("0x19")],e=t[ti("0x3")].get(ti("0x15"));t.plugins[ti("0x14")](ti("0x6"))&&(e[ti("0x16")](ti("0x9")),e[ti("0x16")](ti("0xc")));const n=t[ti("0x1a")];if(t[ti("0x3")][ti("0x14")](ti("0x12"))){for(const n of["indentBlock",ti("0x2")])e[ti("0x16")](n,(()=>{const o=Array[ti("0x1b")](this[ti("0x19")][ti("0x17")][ti("0x1c")][ti("0xb")][ti("0x13")]())[ti("0x7")]((t=>this[ti("0x19")].model.schema[ti("0x8")](t,"blockIndent")));t[ti("0x17")][ti("0x1")]((()=>{for(const t of o)e[ti("0xf")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:ti("0x5")})}))}));e[ti("0x18")][ti("0x0")]((t=>{const{data:o}=t;if(!o)return;if(ti("0x5")!=o[ti("0x10")]&&ti("0x2")!=o[ti("0x10")])return;const r=t[ti("0x4")]()[0],s=e[ti("0x18")][ti("0xe")](r.name);return ti("0x5")==o[ti("0x10")]?{type:ti("0xa"),content:kr(n,ti("0xd"),s)}:ti("0x2")==o[ti("0x10")]?{type:"format",content:kr(n,"*Outdent:* %0",s)}:void 0}))}}}var ni,oi,ri=["enableCommand","get","editor","init"];ni=ri,oi=256,function(t){for(;--t;)ni.push(ni.shift())}(++oi);var si=function(t,e){return ri[t-=0]};class ii extends t.Plugin{static get requires(){return[ds.Input]}[si("0x3")](){this[si("0x2")].plugins[si("0x1")]("TrackChangesEditing")[si("0x0")]("input")}}const xi=["hasAttribute","selection","isCollapsed","unlink","*Remove link*","registerDescriptionCallback","change","document","LinkEditing","model","commandParams","format","commandName","*Set link:* %0","getFirstRange","getFirstPosition","TrackChangesEditing","getAttribute","enableCommand","linkHref","link","editor","markInlineFormat"];var ai,ci;ai=xi,ci=126,function(t){for(;--t;)ai.push(ai.shift())}(++ci);const li=function(t,e){return xi[t-=0]};class ui extends t.Plugin{afterInit(){const t=this[li("0xa")];if(!t.plugins.has(li("0x14")))return;const e=t.plugins.get(li("0x5"));e.enableCommand("link",((n,o)=>{const r=t.model[li("0x13")][li("0xd")];let s=[];if(r.isCollapsed){if(!r[li("0xc")](li("0x8")))return void n(o);{const e=(0,ds.findAttributeRange)(r[li("0x4")](),li("0x8"),r[li("0x6")](li("0x8")),t[li("0x15")]);s=[e]}}else s=Array.from(r.getRanges());t.model.change((()=>{for(const t of s)e.markInlineFormat(t,{commandName:li("0x9"),commandParams:[o]})}))})),e[li("0x7")](li("0xf"),(()=>{const n=this[li("0xa")].model,o=n.document[li("0xd")];n[li("0x12")]((()=>{let n=[];n=o[li("0xe")]?[(0,ds.findAttributeRange)(o[li("0x4")](),li("0x8"),o.getAttribute(li("0x8")),t[li("0x15")])]:Br(li("0x8"),o[li("0x3")](),t.model);for(const t of n)e[li("0xb")](t,{commandName:li("0xf"),commandParams:[]})}))})),e._descriptionFactory[li("0x11")]((e=>{const{data:n}=e,o=t.locale;if(n){if(li("0x9")==n[li("0x1")]){const t=n[li("0x16")][0];return{type:li("0x0"),content:kr(o,li("0x2"),'"'+t+'"')}}return"unlink"==n[li("0x1")]?{type:li("0x0"),content:kr(o,li("0x10"))}:void 0}}))}}const di=["_selectedElements","bulletedList","*Outdent:* %0","todo","afterInit","format","slice","blockName","indentList","from","createRange","listIndent","TodoListEditing","*Change to:* %0","checkTodoList","parent","previousSibling","name","checkChild","outdentList","element","TrackChangesEditing","replace","document","*Indent:* %0","listItem","markBlockFormat","nextSibling","List","*Check item*","commands","numberedList","commandParams","todoList","filter","change","selection","findIndex","createPositionAt","ELEMENT_LIST_ITEM","enableCommand","getAttribute","paragraph","has","ELEMENT_NUMBERED_LIST","model","plugins","ListEditing","execute","commandName","listType","registerElementLabel","isObject","before","_descriptionFactory","get","schema","locale","getSelectedBlocks","numbered","value","add"];var gi,fi;gi=di,fi=367,function(t){for(;--t;)gi.push(gi.shift())}(++fi);const mi=function(t,e){return di[t-=0]};class hi extends t.Plugin{[mi("0x9")](){const t=this.editor,e=t[mi("0x0")];if(!t[mi("0x33")][mi("0x30")](mi("0x34")))return;const n=t.plugins[mi("0x3c")](mi("0x1a")),o=t[mi("0x33")].has(mi("0x11"));function r(e){return()=>{const o=t[mi("0x32")][mi("0x1c")][mi("0x29")],r=t[mi("0x23")][mi("0x3c")](e);if(r[mi("0x3")])return void t[mi("0x35")](mi("0x2f"),{});const s=e[mi("0xb")](0,-4),i=function(t,e,n){let o=Array.from(t)[mi("0x27")]((t=>{return e=t,(o=n)[mi("0x17")](e[mi("0x14")],mi("0x1e"))&&!o[mi("0x39")](e);var e,o}));o=o[mi("0x27")]((t=>!t.is(mi("0x19"),mi("0x1e"))||t[mi("0x2e")](mi("0x37"))!=e));const r=new Set;for(const t of o)t.is("element",mi("0x1e"))?r[mi("0x4")](pi(t)):r[mi("0x4")](t);return Array[mi("0xe")](r)}(o[mi("0x1")](),s,t[mi("0x32")][mi("0x3d")]);t[mi("0x32")][mi("0x28")]((()=>{for(const t of i)n[mi("0x1f")](t,{commandName:e,commandParams:[{forceValue:!r[mi("0x3")]}],formatGroupId:mi("0xc")},bi(t))}))}}function s(e){return()=>{const o=function(t){const e=(t=Array[mi("0xe")](t))[mi("0x2a")]((t=>"listItem"!=t.name));return e>-1&&(t=t[mi("0xb")](0,e)),t}(t[mi("0x32")].document.selection.getSelectedBlocks()),r=t[mi("0x32")][mi("0xf")](t.model[mi("0x2b")](o[0],mi("0x3a")),t[mi("0x32")][mi("0x2b")](o[o.length-1],"end"));t.model[mi("0x28")]((()=>{n.markBlockFormat(r,{commandName:e,commandParams:[],formatGroupId:mi("0x10")},function(t){const e=new Set;for(const n of t){let t=n[mi("0x20")];for(;t&&t[mi("0x2e")](mi("0x10"))>n[mi("0x2e")](mi("0x10"));)e[mi("0x4")](t),t=t[mi("0x20")]}return Array[mi("0xe")](e)}(o))}))}}n[mi("0x2d")](mi("0x24"),r(mi("0x24"))),n.enableCommand(mi("0x6"),r(mi("0x6"))),o&&n[mi("0x2d")](mi("0x26"),r(mi("0x26"))),n[mi("0x2d")](mi("0xd"),s("indentList")),n[mi("0x2d")](mi("0x18"),s(mi("0x18"))),o&&n.enableCommand("checkTodoList",(()=>{const e=t[mi("0x23")].get(mi("0x13")),o=Array.from(e[mi("0x5")]);o.filter((t=>t[mi("0x2e")]("todoListChecked")!=e.value)),t[mi("0x32")][mi("0x28")]((()=>{for(const t of o)n[mi("0x1f")](t,{commandName:mi("0x13"),commandParams:[{forceValue:!e[mi("0x3")]}]})}))})),n._descriptionFactory[mi("0x38")](mi("0x1e"),(t=>kr(e,mi("0x2c"),t))),n[mi("0x3b")].registerDescriptionCallback((t=>{const{data:n}=t;if(n){if("numberedList"==n.commandName||mi("0x6")==n.commandName||mi("0x26")==n[mi("0x36")])switch(n[mi("0x36")][mi("0x1b")](mi("0x21"),"")){case"bulleted":return o(kr(e,"ELEMENT_BULLETED_LIST"));case mi("0x2"):return o(kr(e,mi("0x31")));case mi("0x8"):return o(kr(e,"ELEMENT_TODO_LIST"))}if(mi("0xd")==n.commandName)return{type:"format",content:kr(e,mi("0x1d"),kr(e,mi("0x2c")))};if(mi("0x18")==n[mi("0x36")])return{type:"format",content:kr(e,mi("0x7"),kr(e,mi("0x2c")))};if(mi("0x13")==n[mi("0x36")])return n[mi("0x25")][0].forceValue?{type:mi("0xa"),content:kr(e,mi("0x22"))}:{type:mi("0xa"),content:kr(e,"*Uncheck item*")}}function o(t){return{type:mi("0xa"),content:kr(e,mi("0x12"),t)}}}))}}function pi(t){const e=t[mi("0x2e")](mi("0x10"));if(0==e)return t;let n=t;for(;t[mi("0x15")]&&t[mi("0x15")].is(mi("0x19"),"listItem");){const o=t[mi("0x15")].getAttribute("listIndent");if(o==e)n=t[mi("0x15")];else if(o<e)break;t=t[mi("0x15")]}return n}function bi(t){const e=[];if(t.is(mi("0x19"),mi("0x1e"))&&t[mi("0x2e")](mi("0x10"))>0){let n=t[mi("0x20")];for(;n&&"listItem"==n[mi("0x16")]&&n[mi("0x2e")](mi("0x10"))==t[mi("0x2e")]("listIndent");)e.push(n),n=n[mi("0x20")]}return e}const Ei=["conversion","_descriptionFactory","showSuggestionHighlights","locale","MediaEmbedEditing","dataDowncast","plugins","elementToElement","ELEMENT_MEDIA","high","mediaEmbed","afterInit","registerElementLabel","stop","div","get","enableCommand","TrackChangesEditing","downcastDispatcher","createEmptyElement","options","attribute:url:media","media"];var _i,yi;_i=Ei,yi=266,function(t){for(;--t;)_i.push(_i.shift())}(++yi);const Ti=function(t,e){return Ei[t-=0]};class Ci extends t.Plugin{[Ti("0x15")](){const t=this.editor;if(!t[Ti("0x10")].has(Ti("0xe")))return;const e=t[Ti("0x10")][Ti("0x2")](Ti("0x4")),n=t[Ti("0xd")];e[Ti("0x3")](Ti("0x14")),e[Ti("0xb")][Ti("0x16")](Ti("0x9"),(t=>kr(n,Ti("0x12"),t))),t[Ti("0xa")].for(Ti("0xf"))[Ti("0x11")]({model:Ti("0x9"),view:(t,{writer:e,options:n})=>{if(n[Ti("0xc")])return e[Ti("0x6")](Ti("0x1"))},converterPriority:"high"}),t.data[Ti("0x5")].on(Ti("0x8"),((t,e,n)=>{n[Ti("0x7")][Ti("0xc")]&&t[Ti("0x0")]()}),{priority:Ti("0x13")})}}const ki=["afterInit","has","MentionEditing","editor","plugins","mention","get"];var vi,Ai;vi=ki,Ai=371,function(t){for(;--t;)vi.push(vi.shift())}(++Ai);const Ri=function(t,e){return ki[t-=0]};class Ii extends t.Plugin{[Ri("0x0")](){const t=this[Ri("0x3")];t[Ri("0x4")][Ri("0x1")](Ri("0x2"))&&t[Ri("0x4")][Ri("0x6")]("TrackChangesEditing").enableCommand(Ri("0x5"))}}const Si=["registerElementLabel","afterInit","get","TrackChangesEditing","_descriptionFactory","ELEMENT_PAGE_BREAK","enableCommand","editor","pageBreak","PageBreakEditing","plugins"];var wi,Mi;wi=Si,Mi=134,function(t){for(;--t;)wi.push(wi.shift())}(++Mi);const Ni=function(t,e){return Si[t-=0]};class Li extends t.Plugin{[Ni("0xa")](){const t=this[Ni("0x5")];if(!t[Ni("0x8")].has(Ni("0x7")))return;t[Ni("0x8")][Ni("0x0")](Ni("0x1"))[Ni("0x4")](Ni("0x6"));const e=t[Ni("0x8")][Ni("0x0")](Ni("0x1")),n=t.locale;e[Ni("0x2")][Ni("0x9")](Ni("0x6"),(t=>kr(n,Ni("0x3"),t)))}}const Oi=["span","insertParagraph","isBlock","checkChild","addClass","ck-suggestion-marker-split","Paragraph","createUIElement","*Insert:* %0","markerName","highest","markBlockFormat","consume","markerRange","bindElementToMarker","addMarker:suggestion:insertion","afterInit","model","registerDescriptionCallback","document","registerElementLabel","TrackChangesEditing","toViewPosition","selection","isObject","data","change","commandName","isTouching","editing","parent","$text","start","format","insert","type","downcastDispatcher","insertion","ck-suggestion-marker--active","schema","mapper","isLimit","consumable","getSelectedBlocks","_descriptionFactory","locale","activeMarkers","writer","get","enableCommand","paragraph","options","has","plugins","end","nodeAfter"];var Fi,Pi;Fi=Oi,Pi=228,function(t){for(;--t;)Fi.push(Fi.shift())}(++Pi);const Di=function(t,e){return Oi[t-=0]};class ji extends t.Plugin{[Di("0xc")](){const t=this.editor;if(!t[Di("0x31")][Di("0x30")](Di("0x2")))return;const e=t[Di("0x29")],n=t[Di("0x31")][Di("0x2c")](Di("0x11"));n[Di("0x28")][Di("0x10")](Di("0x2e"),(t=>kr(e,"ELEMENT_PARAGRAPH",t))),n[Di("0x2d")](Di("0x2e"),((e,o={})=>{const r=t.model[Di("0xf")],s=o[Di("0x13")]||r[Di("0x13")],i=Array.from(s[Di("0x27")]()).filter((t=>{return e=t,(n=this.editor[Di("0xd")].schema)[Di("0x37")](e[Di("0x1a")],Di("0x2e"))&&!n[Di("0x14")](e)&&Di("0x2e")!=e.name;var e,n}));t[Di("0xd")][Di("0x16")]((()=>{for(const t of i)n[Di("0x7")](t,{commandName:Di("0x2e"),commandParams:[],formatGroupId:"blockName"},Ur(t))}))})),n[Di("0x28")][Di("0xe")]((t=>{const{data:n}=t;if(n&&Di("0x2e")==n[Di("0x17")])return{type:Di("0x1d"),content:kr(e,"*Change to:* %0",kr(e,"ELEMENT_PARAGRAPH"))}})),n[Di("0x2d")](Di("0x35")),t[Di("0x19")][Di("0x20")].on(Di("0xb"),Bi(t),{priority:Di("0x6")}),t[Di("0x15")][Di("0x20")].on(Di("0xb"),((e,n,o)=>{o[Di("0x2f")].showSuggestionHighlights&&Bi(t,{showActiveMarker:!1})(e,n,o)}),{priority:Di("0x6")});const o=n._descriptionFactory;o[Di("0xe")]((n=>{if(Di("0x21")!==n[Di("0x1f")])return;const{start:r,end:s}=n.getFirstRange();if(!r[Di("0x18")](s)||!r[Di("0x33")])return;const i=t.model[Di("0x23")],x=r[Di("0x33")];return i[Di("0x36")](x)&&!i.isLimit(x)&&i[Di("0x37")](x,"$text")?{type:Di("0x21"),content:kr(e,Di("0x4"),o.getItemLabel(x.name,1))}:void 0}))}}function Bi(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const s=t[Di("0x31")].get(Di("0x11")),i=o[Di("0x9")][Di("0x1c")],x=o[Di("0x9")][Di("0x32")],a=t[Di("0xd")][Di("0x23")];if(!i.isTouching(x)||!i[Di("0x33")])return;const c=i[Di("0x33")];if(a[Di("0x36")](c)&&!a[Di("0x25")](c)&&a[Di("0x37")](c,Di("0x1b"))){if(!r[Di("0x26")][Di("0x8")](o[Di("0x9")],n.name))return;const t=r.writer[Di("0x3")](Di("0x34"),{class:Di("0x1")}),i=r[Di("0x24")][Di("0x12")](x);e&&s[Di("0x2a")].includes(o[Di("0x5")])&&r[Di("0x2b")][Di("0x0")](Di("0x22"),t),r[Di("0x2b")][Di("0x1e")](i,t),r[Di("0x24")][Di("0xa")](t,o[Di("0x5")])}}}const Ui=["getAttributes","locale","get","from","commandName","plugins","isCollapsed","getAttributeProperties","*Remove all formatting*","change","model","removeFormat","document","_descriptionFactory","editor","enableCommand","TrackChangesEditing","afterInit","schema","format","isFormatting"];var Hi,Gi;Hi=Ui,Gi=105,function(t){for(;--t;)Hi.push(Hi.shift())}(++Gi);const zi=function(t,e){return Ui[t-=0]};class Vi extends t.Plugin{[zi("0x11")](){const t=this[zi("0xe")];if(!t[zi("0x5")].has("RemoveFormatEditing"))return;const e=t.plugins[zi("0x2")](zi("0x10"));e[zi("0xf")](zi("0xb"),(n=>{const o=t.model[zi("0xc")].selection;o[zi("0x6")]?n():t.model[zi("0x9")]((()=>{const n=Array[zi("0x3")](o.getRanges());for(const o of n)for(const n of o.getItems())Wi(n,t[zi("0xa")][zi("0x12")])&&e.markInlineFormat(t[zi("0xa")].createRangeOn(n),{commandName:zi("0xb"),commandParams:[]})}))})),e[zi("0xd")].registerDescriptionCallback((e=>{const{data:n}=e;if(n&&zi("0xb")==n[zi("0x4")])return{type:zi("0x13"),content:kr(t[zi("0x1")],zi("0x8"))}}))}}function Wi(t,e){for(const[n]of t[zi("0x0")]()){const t=e[zi("0x7")](n);if(t&&t[zi("0x14")])return!0}return!1}const Ki=["enableCommand","RestrictedEditingModeEditing","goToNextRestrictedEditingException","trackChanges","goToPreviousRestrictedEditingException","editor","get","plugins","has","acceptSelectedSuggestions","acceptAllSuggestions","acceptSuggestion","discardSelectedSuggestions","discardSuggestion","afterInit"];var qi,$i;qi=Ki,$i=446,function(t){for(;--t;)qi.push(qi.shift())}(++$i);const Xi=function(t,e){return Ki[t-=0]};class Ji extends t.Plugin{[Xi("0x3")](){const t=this[Xi("0x9")];if(!t.plugins[Xi("0xc")](Xi("0x5")))return;const e=t[Xi("0xb")][Xi("0xa")]("TrackChangesEditing");e[Xi("0x4")](Xi("0x8")),e[Xi("0x4")](Xi("0x6"));const n=t.plugins[Xi("0xa")](Xi("0x5"));n[Xi("0x4")](Xi("0x7")),n[Xi("0x4")](Xi("0x0")),n[Xi("0x4")](Xi("0x2")),n.enableCommand(Xi("0xe")),n[Xi("0x4")]("discardAllSuggestions"),n[Xi("0x4")](Xi("0xd")),n[Xi("0x4")](Xi("0x1"))}}const Qi=["editing","registerElementLabel","writer","high","model","editor","bindElementToMarker","insert","deletion","markerName","data","addClass","addMarker:suggestion","addMarker:suggestion:deletion","mapper","element","split","name","plugins","markerRange","createUIElement","showSuggestionHighlights","ck-suggestion-marker--active","toViewPosition","options","activeMarkers","requires","TrackChangesEditing","test","enableCommand","init","_descriptionFactory","get","consumable","shiftEnter","downcastDispatcher","softBreak","span"];var Yi,Zi;Yi=Qi,Zi=288,function(t){for(;--t;)Yi.push(Yi.shift())}(++Zi);const tx=function(t,e){return Qi[t-=0]};class ex extends t.Plugin{static get[tx("0x4")](){return[bs.ShiftEnter]}[tx("0x8")](){const t=this[tx("0x15")],e=t[tx("0x22")][tx("0xa")](tx("0x5"));e[tx("0x7")](tx("0xc")),t[tx("0x10")][tx("0xd")].on("addMarker:suggestion:insertion",nx(t),{priority:tx("0x13")}),t[tx("0x10")][tx("0xd")].on(tx("0x1d"),nx(t),{priority:tx("0x13")}),t[tx("0x1a")].downcastDispatcher.on(tx("0x1c"),((e,n,o)=>{o[tx("0x2")][tx("0x25")]&&nx(t,{showActiveMarker:!1})(e,n,o)})),e[tx("0x9")][tx("0x11")](tx("0xe"),(e=>kr(t.locale,"ELEMENT_LINE_BREAK",e)))}}function nx(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const s=t.plugins[tx("0xa")]("TrackChangesEditing");if(!r[tx("0xb")][tx("0x6")](o[tx("0x23")],n[tx("0x21")]))return;const i=t[tx("0x14")];for(const t of o[tx("0x23")].getItems()){if(!t.is(tx("0x1f"),tx("0xe")))continue;const n=tx("0x18")==o[tx("0x19")][tx("0x20")](":")[1]?"merge":tx("0x20"),x=r[tx("0x12")][tx("0x24")](tx("0xf"),{class:"ck-suggestion-marker-"+n}),a=r[tx("0x1e")][tx("0x1")](i.createPositionBefore(t));e&&s[tx("0x3")].includes(o[tx("0x19")])&&r[tx("0x12")][tx("0x1b")](tx("0x0"),x),r.writer[tx("0x17")](a,x),r.mapper[tx("0x16")](x,o.markerName)}}}const ox=["forceValue","_descriptionFactory","plugins","markInlineFormat","FORMAT_RESTRICTED_DISABLED","editor","getRanges","selection","format","StandardEditingModeEditing","get","locale","value","registerDescriptionCallback","restrictedEditingException","commands"];var rx,sx;rx=ox,sx=371,function(t){for(;--t;)rx.push(rx.shift())}(++sx);const ix=function(t,e){return ox[t-=0]};class xx extends t.Plugin{afterInit(){const t=this[ix("0x2")],e=t.model,n=t[ix("0x8")];if(!t[ix("0xf")].has(ix("0x6")))return;const o=t.plugins[ix("0x7")]("TrackChangesEditing"),r=ix("0xb"),s=t[ix("0xc")][ix("0x7")](r);o.enableCommand(r,((t,n={})=>{const i=e.document[ix("0x4")];if(i.isCollapsed)return void t(n);const x=void 0!==n.forceValue?n.forceValue:!s[ix("0x9")];e.change((()=>{const t=Array.from(i[ix("0x3")]());for(const n of t){const t=x?[n]:Br(r,n,e);for(const e of t)o[ix("0x0")](e,{commandName:r,commandParams:[{forceValue:x}]})}}))})),o[ix("0xe")][ix("0xa")]((t=>{const{data:e}=t;if(e&&e.commandName==r)return e.commandParams[0][ix("0xd")]?{type:ix("0x5"),content:kr(n,"FORMAT_RESTRICTED_ENABLED")}:{type:ix("0x5"),content:kr(n,ix("0x1"))}}))}}const ax=["selectTableRow","minColumn","refresh","isArray","markMultiRangeDeletion","model","order","above","filter","maxColumn","insertTableRowAbove","getSuggestion","hasAttribute","commands","colspan","showSuggestionHighlights","fromRange","getContainedElement","getItems","getFirstRange","maxRow","locale","tableCell","differ","insertTable","markMultiRangeInsertion","_setupColumnsRowsFixing","_suggestionFactory","plugins","end","last","insert","length","findAncestor","toLowerCase","isIntersectingWithRange","_getSuggestionCoords","getChildren","options","minRow","MIN_SAFE_INTEGER","_getCoordsForCells","TableEditing","root","ELEMENT_TABLE_COLUMN","selection","rowspan","mapper","getAttribute","_tablePostFixingSubtypes","ELEMENT_TABLE_COLUMN_WITH_TEXT","afterInit","editor","MAX_SAFE_INTEGER","name","*Remove:* %0","TableUtils","getSelectionAffectedTableCells","addMarker:suggestion","getChangedMarkers","removeClass","ELEMENT_TABLE_ROW_WITH_TEXT","document","deletion","_acceptFormatSuggestionCallbackFactory","add","registerCustomCallback","enqueueChange","low","registerDescriptionCallback","ELEMENT_TABLE","batch","getRanges","tableRow","nodeAfter","createTableWalker","execute","setSelection","table","accept","tableColumn","insertTableColumnLeft","detach","includes","addRange","type","change:data","span","map","removeTableRow","selectTableColumn","push","from","createPositionAt","TrackChangesEditing","ELEMENT_TABLE_WITH_TEXT","$graveyard","toViewElement","*Insert:* %0","startsWith","getChanges","isTouching","subType","textProxy","getCellLocation","registerElementLabel","nodeBefore","isInContent","left","max","getRowIndexes","createRangeOn","position","get","insertTableRowBelow","insertTableColumnRight","some","_descriptionFactory","data","isEqual","rootName","first","classes","change","substr","_tableSuggestions","getColumnIndexes","cell","_splitMarkerName","join","enableCommand","start","tablePaste","ELEMENT_TABLE_ROW","insertion","removeTableColumn","has","downcastDispatcher","min","values","discard"];var cx,lx;cx=ax,lx=412,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{constructor(t){super(t),this[ux("0x3c")]=[ux("0x54"),ux("0x5b")]}[ux("0x3e")](){const t=this[ux("0x3f")],e=t[ux("0x10")].document.selection;if(!t.plugins[ux("0x6")](ux("0x35")))return;const n=t[ux("0x20")],o=t[ux("0x27")][ux("0x7c")](ux("0x69")),r=t[ux("0x27")].get(ux("0x43"));o._descriptionFactory[ux("0x74")](ux("0x59"),(t=>kr(n,ux("0x51"),t))),this[ux("0x25")](),o.enableCommand(ux("0x23")),o[ux("0x0")](ux("0xb")),o[ux("0x0")](ux("0x65"));for(const n of[ux("0x15"),ux("0x7d")]){const s=t[ux("0x18")].get(n);o[ux("0x0")](n,(n=>{t[ux("0x10")].change((t=>{n();const i=ux("0x12")===s[ux("0x11")],x=r.getSelectionAffectedTableCells(e),a=r[ux("0x79")](x),c=i?a[ux("0x84")]-1:a[ux("0x29")]+1,l=x[0][ux("0x2c")](ux("0x59")),u=r[ux("0x56")](l,{startRow:c,endRow:c}),d=Array[ux("0x67")](u)[ux("0x63")]((e=>t[ux("0x7a")](e[ux("0x8a")])));o[ux("0x24")](d,"tableRow")}))}))}for(const n of[ux("0x5c"),ux("0x7e")]){const s=t[ux("0x18")][ux("0x7c")](n);o.enableCommand(n,(n=>{t[ux("0x10")][ux("0x86")]((t=>{n();const i=ux("0x77")===s[ux("0x11")],x=r[ux("0x44")](e),a=r[ux("0x89")](x),c=i?a[ux("0x84")]-1:a[ux("0x29")]+1,l=x[0].findAncestor(ux("0x59")),u=r.createTableWalker(l,{startRow:0,column:c,includeAllSlots:!1}),d=Array.from(u)[ux("0x63")]((e=>t[ux("0x7a")](e.cell)));o[ux("0x24")](d,ux("0x5b"))}))}))}for(const n of[ux("0x64"),"removeTableColumn"]){const s=n[ux("0x87")](11),i=s[ux("0x2d")](),x=i[ux("0x87")](0,3)+ux("0x62"),a=ux("0x59")+s,c=ux("0x8")+s,l=ux("0x78")+s;o.enableCommand(n,(()=>{t.model.change((t=>{const s=r[ux("0x44")](e),u=s[0][ux("0x2c")](ux("0x59"));let d;if(ux("0x64")==n){const t=r[ux("0x79")](s);d={startRow:t[ux("0x84")],endRow:t[ux("0x29")],includeAllSlots:!0}}else{const t=r.getColumnIndexes(s);d={startColumn:t[ux("0x84")],endColumn:t.last,includeAllSlots:!0}}const g=r[ux("0x56")](u,d),f=Array[ux("0x67")](g)[ux("0x63")]((({cell:t})=>t)),m=gx(f[ux("0x13")]((t=>t[ux("0x17")](x)))),h=gx(f.filter((t=>!t[ux("0x17")](x))))[ux("0x63")]((e=>t[ux("0x7a")](e))),p=o[ux("0xf")](h,a);if(p&&(ux("0x54")==p.subType||ux("0x5b")==p.subType)){const e=this._getSuggestionCoords(p);for(const n of m){const o=t.createRangeOn(n),s=r.getCellLocation(n),a=n[ux("0x3b")](x)-1,u=e[c],d=e[l];u<=s[i]&&s[i]+a<=d&&p[ux("0x5f")](o)}}}))}))}function s(n){const o=Array[ux("0x67")](e[ux("0x53")]())[ux("0x63")]((t=>F.LiveRange[ux("0x1b")](t)));t.model[ux("0x86")]((e=>{const r=e[ux("0x52")];n=n.filter((t=>ux("0x6b")!=t[ux("0x36")].rootName)),e[ux("0x58")](n),t[ux("0x18")].get(ux("0x64"))[ux("0xd")](),t.execute(ux("0x64"),{forceDefaultExecution:!0}),t[ux("0x10")][ux("0x4e")]((()=>{t[ux("0x10")][ux("0x4e")](r,(t=>{const e=o[ux("0x13")]((t=>"$graveyard"!=t[ux("0x36")].rootName));e[ux("0x2b")]>0&&t[ux("0x58")](e);for(const t of o)t[ux("0x5d")]()}))}))}))}function i(n){t[ux("0x10")][ux("0x86")]((o=>{const r=Array[ux("0x67")](e.getRanges()).map((t=>F.LiveRange[ux("0x1b")](t))),s=[];for(const t of n)for(const e of t[ux("0x1d")]({shallow:!0}))s[ux("0x66")](e);for(const e of s)ux("0x6b")!=e[ux("0x36")][ux("0x83")]&&(o[ux("0x58")](o[ux("0x68")](e,0)),t[ux("0x18")][ux("0x7c")](ux("0x5")).refresh(),t[ux("0x57")](ux("0x5"),{forceDefaultExecution:!0}));const i=r[ux("0x13")]((t=>ux("0x6b")!=t[ux("0x36")][ux("0x83")]));i.length>0&&o[ux("0x58")](i);for(const t of r)t[ux("0x5d")]()}))}function x(t,e){return e.every((e=>t[ux("0x7f")]((t=>t.end[ux("0x82")](e.start)||e[ux("0x28")][ux("0x82")](t[ux("0x1")])))))}function a(t,e){return t.some((t=>e[ux("0x7f")]((e=>t.end[ux("0x70")](e[ux("0x1")])))))}t.data[ux("0x7")].on(ux("0x45"),((t,e,n)=>{if(!n[ux("0x31")][ux("0x1a")])return;const o=e.item;if(!o)return;const r=n[ux("0x3a")][ux("0x6c")](o);function s(t){return Array[ux("0xe")](t)?t:[t]}r&&"tableCell"===o[ux("0x41")]&&(0,P.setHighlightHandling)(r,n.writer,((t,e,n)=>n.addClass(s(e[ux("0x85")]),t)),((t,e,n)=>n[ux("0x47")](s(e[ux("0x85")]),t)))}),{priority:"highest"}),o._descriptionFactory[ux("0x50")]((t=>{if(ux("0x4")!=t[ux("0x60")]&&"deletion"!=t[ux("0x60")])return;const e=t[ux("0x1c")]();if(null!=e&&e.is("element",ux("0x59"))){if("insertion"==t[ux("0x60")]){const e=t[ux("0x1d")]().filter((t=>t.is("textProxy")))[ux("0x63")]((t=>t[ux("0x81")]));if(e[ux("0x2b")])return{type:ux("0x4"),content:kr(n,ux("0x6d"),kr(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e.join(" ")+'"'))}}if(ux("0x4a")==t.type){const e=t[ux("0x1d")]()[ux("0x13")]((t=>t.is(ux("0x72"))))[ux("0x63")]((t=>t[ux("0x81")]));if(e.length)return{type:ux("0x4a"),content:kr(n,ux("0x42"),kr(n,ux("0x6a"),'"'+e[ux("0x8c")](" ")+'"'))}}}})),o[ux("0x80")].registerDescriptionCallback((t=>{if(ux("0x54")==t[ux("0x71")]){const e=t[ux("0x1d")]()[ux("0x13")]((t=>t.is(ux("0x72"))))[ux("0x63")]((t=>t[ux("0x81")])),o=this[ux("0x2f")](t),r=o[ux("0x1f")]-o[ux("0x32")]+1;if(ux("0x4")==t[ux("0x60")])return e[ux("0x2b")]?{type:ux("0x4"),content:kr(n,ux("0x6d"),kr(n,ux("0x48"),[r,'"'+e.join(" ")+'"']))}:{type:"insertion",content:kr(n,ux("0x6d"),kr(n,ux("0x3"),r))};if(ux("0x4a")==t.type)return e[ux("0x2b")]?{type:ux("0x4a"),content:kr(n,ux("0x42"),kr(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[r,'"'+e.join(" ")+'"']))}:{type:ux("0x4a"),content:kr(n,ux("0x42"),kr(n,ux("0x3"),r))}}if(ux("0x5b")==t[ux("0x71")]){const e=t[ux("0x1d")]()[ux("0x13")]((t=>t.is("textProxy"))).map((t=>t[ux("0x81")])),o=this[ux("0x2f")](t),r=o[ux("0x14")]-o[ux("0xc")]+1;if(ux("0x4")==t[ux("0x60")])return e[ux("0x2b")]?{type:ux("0x4"),content:kr(n,ux("0x6d"),kr(n,ux("0x3d"),[r,'"'+e[ux("0x8c")](" ")+'"']))}:{type:"insertion",content:kr(n,ux("0x6d"),kr(n,ux("0x37"),r))};if("deletion"==t[ux("0x60")])return e.length?{type:ux("0x4a"),content:kr(n,"*Remove:* %0",kr(n,ux("0x3d"),[r,'"'+e.join(" ")+'"']))}:{type:ux("0x4a"),content:kr(n,ux("0x42"),kr(n,ux("0x37"),r))}}})),o[ux("0x26")].registerCustomCallback(ux("0x4"),ux("0x54"),ux("0xa"),s),o[ux("0x26")].registerCustomCallback(ux("0x4a"),ux("0x54"),ux("0x5a"),s),o[ux("0x26")][ux("0x4d")](ux("0x4"),ux("0x5b"),ux("0xa"),i),o._suggestionFactory[ux("0x4d")](ux("0x4a"),"tableColumn",ux("0x5a"),i),o[ux("0x26")][ux("0x4d")](ux("0x4"),"tableColumn","join",x),o[ux("0x26")][ux("0x4d")]("deletion",ux("0x5b"),"join",x),o[ux("0x26")][ux("0x4d")](ux("0x4"),ux("0x54"),ux("0x8c"),a),o._suggestionFactory[ux("0x4d")](ux("0x4a"),ux("0x54"),ux("0x8c"),a)}[ux("0x4b")](){const t=this[ux("0x3f")],e=t[ux("0x10")][ux("0x49")][ux("0x38")];return(n,o)=>{t[ux("0x10")].change((r=>{const{commandName:s,commandParams:i}=o;let x=n[0][ux("0x28")][ux("0x75")];i&&i[0]&&!1===i[0].forceValue&&(x=n[0][ux("0x1")][ux("0x55")]);const a=r.createRangeIn(x);if("$graveyard"==a[ux("0x36")][ux("0x83")])return;const c=Array[ux("0x67")](e[ux("0x53")]())[ux("0x63")]((t=>F.LiveRange[ux("0x1b")](t)));r[ux("0x58")](a),t.commands[ux("0x7c")](s)[ux("0xd")](),i[ux("0x66")]({forceDefaultExecution:!0}),t[ux("0x57")](s,...i);const l=c[ux("0x13")]((t=>"$graveyard"!=t.root[ux("0x83")]));l[ux("0x2b")]>0&&r[ux("0x58")](l);for(const t of c)t[ux("0x5d")]()}))}}_getCoordsForCells(t){const e=this[ux("0x3f")][ux("0x27")][ux("0x7c")](ux("0x43"));let n=Number[ux("0x40")],o=Number[ux("0x33")],r=Number[ux("0x40")],s=Number.MIN_SAFE_INTEGER;for(const i of t){if(ux("0x6b")==i[ux("0x36")][ux("0x83")])continue;const{row:t,column:x}=e[ux("0x73")](i),a=i[ux("0x17")](ux("0x39"))?i[ux("0x3b")](ux("0x39"))-1:0,c=i[ux("0x17")]("colspan")?i[ux("0x3b")](ux("0x19"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,r=x<r?x:r,s=x+c>s?x+c:s}return{minRow:n,maxRow:o,minColumn:r,maxColumn:s}}[ux("0x25")](){const t=this[ux("0x3f")],e=t[ux("0x27")].get(ux("0x69")),n=t[ux("0x27")][ux("0x7c")](ux("0x43"));this[ux("0x88")]=new Set,t.model.document.on(ux("0x61"),(()=>{const n=Array[ux("0x67")](t.model[ux("0x49")][ux("0x22")][ux("0x46")]());for(const{name:t,data:o}of n){const{group:n,id:r,subType:s}=e[ux("0x8b")](t);if("suggestion"!=n)continue;if(null!=o.oldRange)continue;const i=e[ux("0x16")](r);this[ux("0x3c")][ux("0x5e")](s)&&this[ux("0x88")][ux("0x4c")](i)}}),{priority:ux("0x4f")});const o=(t,e)=>{let o=!1;const r=e[ux("0x7a")](t),s=t[ux("0x2c")]("table"),i=n[ux("0x73")](t);for(const e of this[ux("0x88")]){const n=e[ux("0x71")],x=n[ux("0x6e")](ux("0x2")),a=n.substr(x?10:5),c=a[ux("0x2d")](),l=c.substr(0,3)+"span",u=ux("0x8")+a,d=ux("0x78")+a;if(!e[ux("0x76")])continue;if(s!=e[ux("0x1e")]()[ux("0x1")].findAncestor(ux("0x59")))continue;if(e[ux("0x2e")](r))continue;const g=t[ux("0x17")](l)?t.getAttribute(l)-1:0,f=this._getSuggestionCoords(e),m=f[u],h=f[d];m<=i[c]&&i[c]+g<=h&&(e[ux("0x5f")](r),o=!0)}return o};t[ux("0x10")][ux("0x49")].registerPostFixer((e=>{let n=!1;for(const r of t.model[ux("0x49")][ux("0x22")][ux("0x6f")]())if(ux("0x2a")==r[ux("0x60")])if(ux("0x54")==r[ux("0x41")])for(const t of r[ux("0x7b")][ux("0x55")][ux("0x30")]())n=n||o(t,e);else ux("0x21")==r[ux("0x41")]&&(n=n||o(r[ux("0x7b")][ux("0x55")],e));return n}))}[ux("0x2f")](t){return this[ux("0x34")](t[ux("0x53")]()[ux("0x63")]((t=>t.start.nodeAfter)))}}function gx(t){return Array[ux("0x67")](new Set(t)[ux("0x9")]())}const fx=["afterInit","_suggestionFactory","getRanges","map","value","get","TableUtils","set:isEnabled","accept","splitTableCellVertically","subType","mergeTableCells","_isForcedDefaultExecutionBlock","table","cell","getSelectionAffectedTableCells","commands","highest","editor","_acceptFormatSuggestionCallbackFactory","fromRange","type","enableCommand","_areSelectedCellsMergable","isInContent","mergeTableCellLeft","locale","change","insertion","element","has","containsRange","root","mergeTableCellUp","formatBlock","add","return","getAncestors","length","model","execute","getCellLocation","$graveyard","setSelection","format","TableEditing","tableCell","selection","size","_areMergableCells","low","deletion","_tablePostFixingSubtypes","createTableWalker","getFirstPosition","from","TrackChangesEditing","*Split cell:* horizontally","commandName","*Merge cells*","mergeTableCellDown","markMultiRangeBlockFormat","registerDescriptionCallback","author","filter","document","find","detach","registerCustomCallback","mergeTableCellRight","stop","splitTableCellHorizontally","plugins","rootName","createRangeOn","_descriptionFactory","refresh"];var mx,hx;mx=fx,hx=183,function(t){for(;--t;)mx.push(mx.shift())}(++hx);const px=function(t,e){return fx[t-=0]};class bx extends t.Plugin{static get requires(){return[dx]}[px("0x30")](){const t=this.editor,e=t[px("0xa")][px("0x24")][px("0x12")],n=t[px("0x4a")];if(!t[px("0x2b")][px("0x1")](px("0x10")))return;const o=t[px("0x2b")][px("0x35")]("TrackChangesEditing"),r=t[px("0x2b")][px("0x35")]("TableUtils"),s=t.plugins[px("0x35")](dx);s[px("0x17")].push(px("0x3b")),o[px("0x46")](px("0x3b"),(()=>{const e=r.getSelectionAffectedTableCells(t[px("0xa")][px("0x24")].selection);t[px("0xa")][px("0x4b")]((()=>{o.markMultiRangeBlockFormat(e,{commandName:"mergeTableCells",commandParams:[]},[],px("0x3b"))}))})),t.commands.get("mergeTableCells").on(px("0xb"),((e,n)=>{t.commands[px("0x35")]("trackChanges").value&&(n[px("0x9")]>0&&n[n[px("0x9")]-1]&&n[n[px("0x9")]-1].forceDefaultExecution||o[px("0x3c")]||this[px("0x47")]()||e[px("0x29")]())}),{priority:px("0x41")});for(const e of["mergeTableCellUp","mergeTableCellRight",px("0x1f"),"mergeTableCellLeft"]){const n=t[px("0x40")][px("0x35")](e);o.enableCommand(e,(()=>{const e=t[px("0xa")].document[px("0x12")][px("0x19")]()[px("0x8")]()[px("0x25")]((t=>t.is("element",px("0x11")))),r=n[px("0x34")];t[px("0xa")][px("0x4b")]((()=>{o[px("0x20")]([e,r],{commandName:px("0x3b"),commandParams:[]},[],px("0x3b"))}))}))}for(const e of[px("0x39"),px("0x2a")]){const n=t[px("0x40")].get(e);o[px("0x46")](e,(()=>{const s=r[px("0x3f")](t[px("0xa")].document.selection)[0],i=s.findAncestor(px("0x3d")),{column:x,row:a}=r[px("0xc")](s);let c=[];if("horizontally"==n.direction){const t=r[px("0x18")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[px("0x1a")](t).map((t=>t[px("0x3e")]))}else{const t=r[px("0x18")](i,{column:x,includeAllSlots:!0});c=Array[px("0x1a")](t)[px("0x33")]((t=>t[px("0x3e")]))}t.model.change((t=>{o.markBlockFormat(t[px("0x2d")](s),{commandName:e,commandParams:[]},c,e)}))}))}o[px("0x2e")][px("0x21")]((t=>{const{data:e}=t;if(e)return"mergeTableCells"==e.commandName?{type:px("0xf"),content:kr(n,px("0x1e"))}:void 0})),o[px("0x2e")][px("0x21")]((t=>{const{data:e}=t;if(e)return"splitTableCellVertically"==e[px("0x1d")]?{type:px("0xf"),content:kr(n,"*Split cell:* vertically")}:px("0x2a")==e.commandName?{type:px("0xf"),content:kr(n,px("0x1c"))}:void 0}));const i=s[px("0x43")]();for(const t of["mergeTableCellUp",px("0x28"),"mergeTableCellDown",px("0x49")])o[px("0x31")][px("0x27")]("formatBlock",t,px("0x38"),i);for(const t of["splitTableCellVertically",px("0x2a")])o._suggestionFactory[px("0x27")]("formatBlock",t,"accept",i);o[px("0x31")].registerCustomCallback(px("0x5"),px("0x3b"),px("0x38"),(n=>{t[px("0xa")][px("0x4b")]((o=>{const r=Array[px("0x1a")](e.getRanges())[px("0x33")]((t=>F.LiveRange[px("0x44")](t)));o.setSelection(n),t[px("0x40")].get(px("0x3b"))[px("0x2f")](),t.execute(px("0x3b"),{forceDefaultExecution:!0});const s=r[px("0x23")]((t=>px("0xd")!=t[px("0x3")][px("0x2c")]));s.length>0&&o[px("0xe")](s);for(const t of r)t[px("0x26")]()}))}));for(const e of[px("0x4"),px("0x1f"),"mergeTableCellLeft",px("0x28")]){const n=t[px("0x40")][px("0x35")](e);n.on(px("0x37"),((e,o,r)=>{if(r){const o=t[px("0xa")][px("0x24")][px("0x12")].getFirstPosition()[px("0x8")]()[px("0x25")]((t=>t.is(px("0x0"),px("0x11"))));this[px("0x14")](n[px("0x34")],o)||(e[px("0x7")]=!1,e.stop())}}),{priority:px("0x15")})}}[px("0x47")](){const t=this[px("0x42")][px("0x40")][px("0x35")]("mergeTableCells"),e=this[px("0x42")][px("0x2b")][px("0x35")](px("0x36"));if(!t.isEnabled)return!1;const n=e[px("0x3f")](this[px("0x42")].model[px("0x24")].selection);for(const t of n)for(const e of n)if(t!=e&&!this[px("0x14")](t,e))return!1;return!0}[px("0x14")](t,e){const n=this[px("0x42")].plugins[px("0x35")](px("0x1b")),o=this[px("0x42")][px("0xa")][px("0x2d")](t),r=this[px("0x42")].model[px("0x2d")](e),s=new Set,i=new Set;for(const t of n.getSuggestions())if((px("0x4c")==t[px("0x45")]||px("0x16")==t.type||px("0x3b")==t[px("0x3a")])&&t[px("0x48")])for(const e of t[px("0x32")]())e[px("0x2")](o,!0)&&s[px("0x6")](t[px("0x45")]+":"+t[px("0x22")].id),e[px("0x2")](r,!0)&&i[px("0x6")](t.type+":"+t[px("0x22")].id);if(s.size!=i[px("0x13")])return!1;for(const t of s)if(!i[px("0x1")](t))return!1;return!0}}const Ex=["activeMarkers","createPositionAfter","getSuggestion","getColumnIndexes","stop","TableEditing","ck-suggestion-marker-","highest","removeMarker:suggestion","format","TableUtils","findAncestor","removeClass","selection","commandName","item","commands","addMarker:suggestion","*Format:* %0","end","mapper","showSuggestionHighlights","data-suggestion","nodeBefore","markerNameToElements","createTableWalker","addClass","registerDescriptionCallback","getSelectionAffectedTableCells","options","enableCommand","FORMAT_HEADER_COLUMN","getCellLocation","value","index","ck-suggestion-marker--active","markerRange","has","parent","afterInit","plugins","first","_splitMarkerName","consume","cell","setAttribute","includes","forceValue","createPositionBefore","document","isBefore","accept","TrackChangesEditing","editing","childCount","FORMAT_HEADER_ROW","registerCustomCallback","setTableRowHeader","locale","from","commandParams","formatBlock","get","markBlockFormat","markerName","writer","last","table","model","data","setTableColumnHeader","FORMAT_REGULAR_COLUMN","requires","_descriptionFactory","createRange","change","downcastDispatcher","getChild","_acceptFormatSuggestionCallbackFactory","getAttribute","name","FORMAT_REGULAR_ROW","removeAttribute"];var _x,yx;_x=Ex,yx=418,function(t){for(;--t;)_x.push(_x.shift())}(++yx);const Tx=function(t,e){return Ex[t-=0]};class Cx extends t.Plugin{static get[Tx("0x45")](){return[dx]}[Tx("0x24")](){const t=this.editor;if(!t.plugins[Tx("0x22")](Tx("0x2")))return;const e=t[Tx("0x37")],n=t[Tx("0x25")][Tx("0x3b")](Tx("0x31")),o=t[Tx("0x25")].get(Tx("0x7")),r=t.plugins[Tx("0x3b")](dx);function s({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(r,s,i)=>{const{type:x,id:a}=n[Tx("0x27")](s[Tx("0x3d")]),c=n[Tx("0x52")](a);if(!c[Tx("0x42")]||Tx("0x43")!=c[Tx("0x42")][Tx("0xb")])return;if(s[Tx("0xc")])return void r[Tx("0x1")]();if(!i.consumable[Tx("0x28")](s.markerRange,r[Tx("0x4d")]))return;const l=s[Tx("0x21")].start.nodeAfter,u=s[Tx("0x21")][Tx("0x10")][Tx("0x14")],d=l.parent[Tx("0x23")],{column:g}=o.getCellLocation(l),{column:f}=o[Tx("0x1d")](u);for(let r=g;r<=f;r++){const c=o.createTableWalker(d,{column:r,includeAllSlots:!1});for(const o of c){const r=o[Tx("0x29")],c=i[Tx("0x11")].toViewElement(r);i[Tx("0x3e")][Tx("0x17")](Tx("0x3")+x,c),e&&i[Tx("0x3e")][Tx("0x2a")](Tx("0x13"),a,c),i[Tx("0x11")].bindElementToMarker(c,s[Tx("0x3d")]),t&&(n[Tx("0x50")][Tx("0x2b")](s[Tx("0x3d")])?i.writer[Tx("0x17")](Tx("0x20"),c):i[Tx("0x3e")][Tx("0x9")](Tx("0x20"),c))}}}}n[Tx("0x1b")](Tx("0x36"),((e,r)=>{const s=o[Tx("0x19")](t[Tx("0x41")][Tx("0x2e")][Tx("0xa")]),i=o.getRowIndexes(s),x=s[0][Tx("0x8")](Tx("0x40")),a=x[Tx("0x4c")]("headingRows")||0,c=r&&null!==r.forceValue?r.forceValue:!t[Tx("0xd")][Tx("0x3b")](Tx("0x36"))[Tx("0x1e")],l=c?i[Tx("0x3f")]:i[Tx("0x26")],u=x[Tx("0x4a")](l);let d;if(c){const e=x[Tx("0x4a")](a);if(u[Tx("0x1f")]<e[Tx("0x1f")])return;d=t[Tx("0x41")][Tx("0x47")](t[Tx("0x41")][Tx("0x2d")](e[Tx("0x4a")](0)),t[Tx("0x41")][Tx("0x51")](u.getChild(u.childCount-1)))}else{const e=x[Tx("0x4a")](a-1);if(!e)return;d=t[Tx("0x41")][Tx("0x47")](t[Tx("0x41")].createPositionBefore(u[Tx("0x4a")](0)),t[Tx("0x41")][Tx("0x51")](e[Tx("0x4a")](e[Tx("0x33")]-1)))}t[Tx("0x41")][Tx("0x48")]((()=>{n[Tx("0x3c")](d,{commandName:"setTableRowHeader",commandParams:[{forceValue:c}]},[],Tx("0x36"))}))})),n.enableCommand(Tx("0x43"),((e,o)=>{const r=t[Tx("0x25")][Tx("0x3b")](Tx("0x7")),s=r[Tx("0x19")](t.model[Tx("0x2e")][Tx("0xa")]),i=r[Tx("0x0")](s),x=s[0][Tx("0x8")](Tx("0x40")),a=x[Tx("0x4c")]("headingColumns")||0,c=o&&null!==o[Tx("0x2c")]?o.forceValue:!t[Tx("0xd")][Tx("0x3b")](Tx("0x43"))[Tx("0x1e")];let l;const u=x.getChild(0),d=c?i[Tx("0x3f")]:i[Tx("0x26")],g=r[Tx("0x16")](x,{startRow:0,column:d,includeAllSlots:!1}),f=Array[Tx("0x38")](g)[0].cell;if(c){const e=u[Tx("0x4a")](a);if(f[Tx("0x2f")](e))return;l=t[Tx("0x41")][Tx("0x47")](t[Tx("0x41")][Tx("0x2d")](e),t[Tx("0x41")][Tx("0x51")](f))}else{const e=u.getChild(a-1);if(!e)return;l=t[Tx("0x41")][Tx("0x47")](t.model[Tx("0x2d")](f),t[Tx("0x41")][Tx("0x51")](e))}t[Tx("0x41")][Tx("0x48")]((()=>{n[Tx("0x3c")](l,{commandName:"setTableColumnHeader",commandParams:[{forceValue:c}]},[],Tx("0x43"))}))})),t[Tx("0x32")][Tx("0x49")].on(Tx("0xe"),s(),{priority:Tx("0x4")}),t[Tx("0x42")].downcastDispatcher.on("addMarker:suggestion",((t,e,n)=>{n[Tx("0x1a")][Tx("0x12")]&&s({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:Tx("0x4")}),t[Tx("0x32")][Tx("0x49")].on(Tx("0x5"),((t,e,o)=>{const{type:r,id:s}=n[Tx("0x27")](e[Tx("0x3d")]),i=n[Tx("0x52")](s);if(!i[Tx("0x42")]||Tx("0x43")!=i[Tx("0x42")][Tx("0xb")])return;const x=o.mapper[Tx("0x15")](e.markerName);if(x)for(const t of x)o.writer[Tx("0x9")](Tx("0x3")+r,t),o[Tx("0x3e")][Tx("0x9")]("ck-suggestion-marker--active",t),o[Tx("0x3e")][Tx("0x4f")](Tx("0x13"),t),o[Tx("0x11")].unbindElementFromMarkerName(t,e[Tx("0x3d")])}),{priority:Tx("0x4")}),n[Tx("0x46")][Tx("0x18")]((t=>{const{data:n}=t;if(n){if("setTableRowHeader"==n[Tx("0xb")]){const t=n[Tx("0x39")][0][Tx("0x2c")];return o(kr(e,Tx(t?"0x34":"0x4e")))}if(Tx("0x43")==n[Tx("0xb")]){const t=n[Tx("0x39")][0][Tx("0x2c")];return o(kr(e,Tx(t?"0x1c":"0x44")))}}function o(t){return{type:Tx("0x6"),content:kr(e,Tx("0xf"),t)}}}));const i=r[Tx("0x4b")]();n._suggestionFactory[Tx("0x35")](Tx("0x3a"),Tx("0x36"),Tx("0x30"),i),n._suggestionFactory[Tx("0x35")](Tx("0x3a"),"setTableColumnHeader",Tx("0x30"),i)}}const kx=["hasSuggestion","getMarkers","_descriptionFactory","tablePasteCell","author","suggestion:formatBlock:tablePasteCell","tableCellBackgroundColor","suggestionUnloaded","subType","showSuggestionHighlights","createRangeOn","deletion","tableCellVerticalAlignment","remove","_createdBatches","column","find","type","containsRange","setAttribute","markMultiRangeInsertion","getChangedMarkers","endRow","change","oldRange","fill","tableCellBorderWidth","attributes","ck-suggestion-marker--active","formatBlock","endColumn","getColumnIndexes","selection","rowInsertionRanges","$graveyard","getSuggestions","removeMarkers","previousSibling","root","register","TrackChangesEditing","from","discard","element","editingDowncast","keys","redo","position","tablePaste","createRange","createRangeIn","suggestionLoaded","_splitMarkerName","insertColumns","join","has","TableClipboard","suggestion-td","markerToHighlight","isEqual","next","registerPostFixer","getSuggestion","requires","rootName","getChildren","tablePasteRow","removeRows","move","_getCoordsForCells","newRange","fromEntries","length","start","name","previous","unwrap","editor","options","isEmpty","tableCellBorderStyle","batch","markMultiRangeDeletion","deletionRanges","set","high","forceDefaultExecution","Users","conversion","markerAttributes","elementToElement","return","createPositionBefore","TableUtils","updateMarker","cell","includes","getRows","differ","paragraph","tableCellPadding","suggestion","insertion","nodeAfter","model","end","tableCell","map","table","ck-suggestion-marker-insertion","insertionRanges","commands","setAttributes","columns","dataDowncast","tablePasteColumn","insert","_isForcedDefaultExecutionBlock","getRange","startsWith","activeMarkers","_tablePostFixingSubtypes","getColumns","findAncestor","stop","removeMarker","tableCellBorderColor","some","document","tablePasteChainId","nextSibling","getItems","first","last","value","getRanges","createElement","rows","get","filter","locale","getContainedElement","registerCustomCallback","for","getAllAdjacentSuggestions","tableCellSuggestion","rowInsertionIndexes","getChild","plugins","markMultiRangeBlockFormat","view","registerDescriptionCallback","markerName","insertRows","markers","isInContent","insertContent","_suggestionFactory","push","columnInsertionIndexes","accept","getTableIfOnlyTableInContent","trackChanges","columnInsertionRanges","*Replace table cells*","cells","getSelectionAffectedTableCells","createTableWalker"];var vx,Ax;vx=kx,Ax=125,function(t){for(;--t;)vx.push(vx.shift())}(++Ax);const Rx=function(t,e){return kx[t-=0]},Ix=[Rx("0x45"),Rx("0x1"),Rx("0x7b"),"tableCellHorizontalAlignment",Rx("0x37"),Rx("0x31"),Rx("0x8f")],Sx=Object[Rx("0x72")](Ix[Rx("0x96")]((t=>[t,null])));class wx extends t.Plugin{static get[Rx("0x6a")](){return[dx]}afterInit(){const t=this[Rx("0x78")];if(!t[Rx("0x17")][Rx("0x62")](Rx("0x63")))return;const n=t.plugins.get(Rx("0x53")),o=t[Rx("0x17")][Rx("0xd")](Rx("0x88")),r=t[Rx("0x17")][Rx("0xd")](dx),s=t[Rx("0x17")][Rx("0xd")]("TableClipboard");r[Rx("0xa4")][Rx("0x21")](Rx("0x6d"),Rx("0x9e")),t[Rx("0x93")].schema[Rx("0x52")](Rx("0x14"),{allowIn:Rx("0x95"),allowContentOf:Rx("0x95"),isLimit:!0}),t.conversion[Rx("0x85")]({model:"tableCellSuggestion",view:Rx("0x64")});let i=null;t[Rx("0x93")].on("insertContent",((r,x)=>{const[a,c]=x,l=x[x[Rx("0x73")]-1];l&&l[Rx("0x81")]||n[Rx("0xa0")]||this[Rx("0x78")][Rx("0x9a")][Rx("0xd")](Rx("0x25"))[Rx("0x9")]&&function(t,e,n,o,r){if(e&&!e.is("documentSelection"))return!1;const s=r[Rx("0x24")](t,n);if(!s||!Nx(s,null,o))return!1;const i=o[Rx("0x29")](n[Rx("0x3")][Rx("0x4b")]);if(!i[Rx("0x73")])return!1;const x=i[0][Rx("0xa6")](Rx("0x97")),a=o.getRowIndexes(i),c=o[Rx("0x4a")](i),l={startRow:a[Rx("0x7")],endRow:a[Rx("0x8")],startColumn:c[Rx("0x7")],endColumn:c[Rx("0x8")]};return 1==i[Rx("0x73")]&&(l[Rx("0x41")]+=o[Rx("0x8c")](s)-1,l[Rx("0x49")]+=o[Rx("0xa5")](s)-1),Nx(x,l,o)}(a,c,t[Rx("0x93")],o,s)&&(r[Rx("0xa7")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Rx("0x93")][Rx("0x42")]((()=>{t[Rx("0x93")][Rx("0x1f")](x[0],x[1],x[2],x[3],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:r,columnInsertionRanges:s,insertionRanges:a,deletionRanges:c,cells:l}=i;r[Rx("0x73")]&&n[Rx("0x3f")](r,Rx("0x6d"),{tablePasteChainId:o}),s[Rx("0x73")]&&n[Rx("0x3f")](s,Rx("0x9e"),{tablePasteChainId:o}),a[Rx("0x73")]&&n[Rx("0x3f")](a,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0}),c[Rx("0x73")]&&n[Rx("0x7d")](c,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0});const u=n[Rx("0x18")](l[Rx("0x96")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],"tablePasteCell",{tablePasteChainId:o});if(u){const e=u.getMarkers(),n=[];for(const{element:o,attributes:r}of l){if(!r)continue;const s=t[Rx("0x93")].createRangeOn(o),i=e[Rx("0x3b")]((t=>t[Rx("0xa1")]()[Rx("0x66")](s)));i&&n.push([i[Rx("0x75")],r])}n.length&&u[Rx("0x3e")](Rx("0x84"),Object.fromEntries(n))}i=null})))}),{priority:e.priorities[Rx("0x80")]+10}),t[Rx("0x17")].get("TableClipboard").on("_replaceTableSlotCell",((t,e)=>{const[n,o,,r]=e;if(!i)return;t[Rx("0xa7")]();const s=n[Rx("0x8a")],x=o,a=Mx(s),c=Mx(x);t[Rx("0x86")]=s;let l=null,u=null;if(c||a)if(a&&!c){r.remove(s[Rx("0x16")](0));for(const t of Array[Rx("0x54")](x[Rx("0x6c")]()))r[Rx("0x9f")](t,s,Rx("0x94"));const t=i.rowInsertionIndexes[Rx("0x8b")](n.row),e=i[Rx("0x22")][Rx("0x8b")](n[Rx("0x3a")]);t||e||(l=r[Rx("0x5d")](s))}else c&&!a&&(u=r[Rx("0x5d")](s));else{const t=r[Rx("0xb")](Rx("0x14")),e=r[Rx("0xb")](Rx("0x14"));r.wrap(r[Rx("0x5d")](s),e),r[Rx("0x9f")](t,s,0);for(const e of Array[Rx("0x54")](x[Rx("0x6c")]()))r[Rx("0x9f")](e,t,"end");l=r[Rx("0x35")](t),u=r.createRangeOn(e)}const d=Array[Rx("0x54")](x.getAttributes())[Rx("0xe")]((([t])=>Ix.includes(t)));i[Rx("0x28")][Rx("0x21")]({element:s,attributes:d[Rx("0x73")]?Object[Rx("0x72")](d):null}),l&&i[Rx("0x99")][Rx("0x21")](l),u&&i[Rx("0x7e")].push(u)}),{priority:Rx("0x80")}),o.on(Rx("0x60"),((e,n)=>{const[r,s={}]=n;if(!i)return;const x=s.at||0,a=s[Rx("0x9c")]||1;i[Rx("0x22")]=new Array(a)[Rx("0x44")](x)[Rx("0x96")](((t,e)=>t+e));for(const{cell:e}of o[Rx("0x2a")](r,{startColumn:x,endColumn:x+a-1}))i[Rx("0x26")][Rx("0x21")](t[Rx("0x93")].createRangeOn(e))}),{priority:"low"}),o.on(Rx("0x1c"),((e,n)=>{const[r,s={}]=n;if(!i)return;const x=s.at||0,a=s[Rx("0xc")]||1;i[Rx("0x15")]=new Array(a)[Rx("0x44")](x).map(((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(r,{startRow:x,endRow:x+a-1}))i[Rx("0x4c")][Rx("0x21")](t[Rx("0x93")][Rx("0x35")](e))}),{priority:"low"}),n[Rx("0x2d")][Rx("0x1a")]((e=>{if(e[Rx("0x33")]&&e[Rx("0x33")].startsWith("tablePaste"))return e[Rx("0x76")]?{}:{type:Rx("0x91"),content:kr(t[Rx("0xf")],Rx("0x27"))}}));const x=()=>{};for(const t of["tablePaste",Rx("0x9e"),"tablePasteRow",Rx("0x2e")])n[Rx("0x20")].registerCustomCallback("insertion",t,Rx("0x61"),x),n[Rx("0x20")].registerCustomCallback(Rx("0x36"),t,"join",x);n[Rx("0x20")][Rx("0x11")](Rx("0x48"),Rx("0x2e"),Rx("0x55"),x),n[Rx("0x20")][Rx("0x11")](Rx("0x48"),"tablePasteCell",Rx("0x23"),((e,n,o)=>{const r=e.map((t=>t[Rx("0x10")]()))[Rx("0xe")]((t=>t)),s=new Map(r[Rx("0x96")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Rx("0x28")])e&&s[Rx("0x7f")](t,e);else if(o&&o[Rx("0x84")])for(const[e,n]of Object.entries(o[Rx("0x84")])){const o=t[Rx("0x93")][Rx("0x1d")].get(e),r=o?o[Rx("0xa1")]().getContainedElement():null;r&&s[Rx("0x7f")](r,n)}t.model[Rx("0x42")]((t=>{for(const[e,n]of s)t[Rx("0x9b")]({...Sx,...n},e)}))}));const a=(e,o)=>{n[Rx("0x20")][Rx("0x11")](e,Rx("0x5b"),o,((r,s,i)=>{t[Rx("0x93")][Rx("0x42")]((t=>{const x=[];for(const t of r){const e=t[Rx("0x74")][Rx("0x92")];e.is(Rx("0x56"),"tableCellSuggestion")&&x[Rx("0x21")](e)}n[Rx("0x20")].getSuggestionCallback(e,null,o)(r,s,i);for(const e of x)Rx("0x4d")!=e[Rx("0x51")][Rx("0x6b")]&&t[Rx("0x77")](e)}))}))};a(Rx("0x91"),Rx("0x23")),a("insertion",Rx("0x55")),a(Rx("0x36"),"accept"),a(Rx("0x36"),Rx("0x55")),n[Rx("0x20")][Rx("0x11")](Rx("0x91"),"tablePasteRow",Rx("0x55"),(t=>{const e=t.map((t=>t.getContainedElement())),n=e[0].findAncestor(Rx("0x97")),{minRow:s,maxRow:i}=r[Rx("0x70")](e);o[Rx("0x6e")](n,{at:s,rows:i-s+1})})),n[Rx("0x20")][Rx("0x11")](Rx("0x91"),Rx("0x9e"),Rx("0x55"),(t=>{const e=t[Rx("0x96")]((t=>t.getContainedElement())),n=e[0][Rx("0xa6")]("table"),{minColumn:s,maxColumn:i}=r[Rx("0x70")](e);o.removeColumns(n,{at:s,columns:i-s+1})}));const c=(t,e)=>{if(!e[Rx("0x33")]||!e[Rx("0x33")][Rx("0xa2")](Rx("0x5b")))return;const o=e[Rx("0x46")][Rx("0x4")],r=n[Rx("0x4e")]()[Rx("0xe")]((t=>t[Rx("0x1e")]&&t[Rx("0x46")]&&t[Rx("0x46")][Rx("0x4")]==o));r[Rx("0x73")]&&e[Rx("0x13")]()[Rx("0x73")]!=r[Rx("0x73")]&&r.reduce(((t,e)=>(t[Rx("0x67")]=e,e[Rx("0x76")]=t,e)))};function l(t,{showActiveMarker:e=!0}={}){const{id:o}=n[Rx("0x5f")](t[Rx("0x1b")]),r=["ck-suggestion-marker",Rx("0x98")],s=n[Rx("0xa3")].includes(t[Rx("0x1b")]);return s&&r[Rx("0x21")](Rx("0x47")),{classes:r,attributes:{"data-suggestion":o},priority:s&&e?3010:3e3}}n.on(Rx("0x5e"),c,{priority:"high"}),n.on(Rx("0x32"),c,{priority:Rx("0x80")}),t[Rx("0x93")][Rx("0x3")][Rx("0x68")]((()=>{let e=!1;const o=Array[Rx("0x54")](t.model[Rx("0x3")][Rx("0x8d")].getChangedMarkers());for(const{name:r,data:s}of o){const{group:o,type:i,id:x}=n[Rx("0x5f")](r);if("suggestion"!=o||Rx("0x36")!=i||s[Rx("0x43")])continue;if(!n[Rx("0x2b")](x))continue;const a=n[Rx("0x69")](x).getRanges(),c=t[Rx("0x17")].get(Rx("0x82")).me;for(const t of n[Rx("0x4e")]())if(t[Rx("0x1e")]&&t[Rx("0x2f")]==c&&Rx("0x48")==t[Rx("0x3c")]&&Rx("0x2e")==t[Rx("0x33")]&&t[Rx("0xa")]().every((t=>a[Rx("0x2")]((e=>e[Rx("0x3d")](t,!0))))))for(const n of t[Rx("0x13")]())n[Rx("0x1e")]&&(n[Rx("0x55")](),e=!0)}return e})),t[Rx("0x93")].document[Rx("0x68")]((e=>{const o=t[Rx("0x9a")][Rx("0xd")](Rx("0x59"));if(!o||!o[Rx("0x39")].has(e[Rx("0x7c")]))return!1;let r=!1;const s=t.plugins[Rx("0xd")]("Users").me,i=t[Rx("0x93")][Rx("0x3")][Rx("0x8d")].getChanges(),x=Array[Rx("0x54")](t.model[Rx("0x3")].differ[Rx("0x40")]())[Rx("0xe")]((({name:t,data:e})=>{const{group:o,subType:r,authorId:i}=n[Rx("0x5f")](t);return Rx("0x90")==o&&"tablePaste"==r&&i==s.id&&!e.oldRange}));for(const t of i){if(Rx("0x9f")!=t[Rx("0x3c")]||"tableCellSuggestion"!=t.name||1!=t[Rx("0x73")])continue;const n=e[Rx("0x5c")](t.position,t[Rx("0x5a")].getShiftedBy(1));if(!x[Rx("0x3b")]((({data:t})=>t.newRange.isEqual(n))))for(const{name:t,data:o}of x)if(n.containsRange(o[Rx("0x71")])){e[Rx("0x89")](t,{range:n}),r=!0;break}}return r})),t.model[Rx("0x3")].registerPostFixer((e=>{let o=!1;const r=t[Rx("0x17")][Rx("0xd")](Rx("0x82")).me,s=n[Rx("0x4e")]()[Rx("0xe")]((t=>t[Rx("0x1e")]&&t[Rx("0x2f")]==r)),i=new Set,x=new Set;for(const t of s)if("tablePaste"==t[Rx("0x33")])for(const e of t[Rx("0x2c")]()){const n=e[Rx("0xa1")]().getContainedElement();if(n)if(n.is(Rx("0x56"),Rx("0x14"))&&Mx(n)){t[Rx("0x0")](e.name),i.add(n),o=!0;const r=n[Rx("0x5")],s=n[Rx("0x50")],a=r&&r.is(Rx("0x56"),Rx("0x14")),c=s&&s.is(Rx("0x56"),Rx("0x14"));a&&!i[Rx("0x62")](r)&&x.add(r),c&&!i.has(s)&&x.add(s)}else n.is("element","paragraph")&&n[Rx("0x7a")]&&(t[Rx("0x0")](e[Rx("0x75")]),o=!0)}else if(Rx("0x2e")==t[Rx("0x33")]){if(!t[Rx("0x46")]||!t[Rx("0x46")][Rx("0x4")])continue;const e=t.attributes.markerAttributes;if(e&&Object[Rx("0x58")](e)[Rx("0x73")])continue;const n=t.attributes.tablePasteChainId;let r=!0,i=!0;for(const e of s)if(e.subType&&e.subType[Rx("0xa2")](Rx("0x5b"))){if(!e[Rx("0x46")][Rx("0x4")]){i=!1;break}if(e.id!=t.id&&e[Rx("0x46")].tablePasteChainId==n){r=!1;break}}i&&r&&(t[Rx("0x4f")](),o=!0)}for(const t of i)e[Rx("0x38")](t);for(const t of x)e[Rx("0x77")](t);return o})),t[Rx("0x83")][Rx("0x12")](Rx("0x57"))[Rx("0x65")]({model:Rx("0x30"),view:l,converterPriority:Rx("0x80")}),t[Rx("0x83")][Rx("0x12")](Rx("0x9d")).markerToHighlight({model:Rx("0x30"),view:(t,e)=>{if(e[Rx("0x79")][Rx("0x34")])return l(t,{showActiveMarker:!1})},converterPriority:Rx("0x80")});const u=t.editing[Rx("0x19")];this.listenTo(u[Rx("0x3")],"clipboardOutput",((t,e)=>{const n=[];for(const t of u[Rx("0x5d")](e.content)[Rx("0x6")]())t.is("element",Rx("0x64"))&&n[Rx("0x21")](t);u.change((t=>{for(const e of n)t[Rx("0x6f")](t[Rx("0x5d")](e),t[Rx("0x87")](e)),t[Rx("0x38")](e)}))}))}}function Mx(t){if(t[Rx("0x7a")])return!0;const e=t[Rx("0x16")](0);return e.is(Rx("0x56"),Rx("0x8e"))&&e[Rx("0x7a")]}function Nx(t,e={},n){for(const{isAnchor:o,cellHeight:r,cellWidth:s}of n[Rx("0x2a")](t,{includeAllSlots:!0,...e}))if(!o||1!=r||1!=s)return!1;return!0}const Lx=["ELEMENT_TITLE","registerElementLabel","removeMarker","document","differ","_splitMarkerName","from","isEqual","getNearestSelectionRange","newRange","updateMarker","isCollapsed","isTouching","TrackChangesEditing","start","createRange","registerPostFixer","schema","title-content","element","model","plugins","nodeBefore","Title","end","afterInit","editor","locale"];var Ox,Fx;Ox=Lx,Fx=125,function(t){for(;--t;)Ox.push(Ox.shift())}(++Fx);const Px=function(t,e){return Lx[t-=0]};class Dx extends t.Plugin{[Px("0xc")](){const t=this[Px("0xd")];if(!t.plugins.has(Px("0xa")))return;const e=t[Px("0x8")].get(Px("0x0"));e._descriptionFactory[Px("0x10")]("title-content",(()=>kr(t[Px("0xe")],Px("0xf")))),t[Px("0x7")][Px("0x12")][Px("0x3")]((n=>{let o=!1;const r=Array[Px("0x15")](t[Px("0x7")].document[Px("0x13")].getChangedMarkers());for(const{name:s,data:i}of r){const{group:r}=e[Px("0x14")](s);if("suggestion"!==r||!i.newRange)continue;const x=i[Px("0x18")],a=x.end[Px("0x9")];if(!a||!a.is(Px("0x6"),Px("0x5")))continue;if(!x.start[Px("0x1b")](x[Px("0xb")]))continue;const c=t[Px("0x7")][Px("0x4")][Px("0x17")](x[Px("0xb")],"forward");if(c&&c[Px("0x1a")]){const t=n[Px("0x2")](x[Px("0x1")],c[Px("0x1")]);t[Px("0x16")](x)||(n[Px("0x19")](s,{range:t}),o=!0)}o||(n[Px("0x11")](s),o=!0)}return o}))}}const jx=["TrackChangesEditing","editor","undo","has","plugins","get","enableCommand"];var Bx,Ux;Bx=jx,Ux=410,function(t){for(;--t;)Bx.push(Bx.shift())}(++Ux);const Hx=function(t,e){return jx[t-=0]};class Gx extends t.Plugin{afterInit(){const t=this[Hx("0x4")],e=t.plugins[Hx("0x1")](Hx("0x3"));t[Hx("0x0")][Hx("0x6")]("UndoEditing")&&(e[Hx("0x2")](Hx("0x5")),e[Hx("0x2")]("redo"))}}const zx=["sign","isArray","number","boolean","keys","object","charCodeAt"];var Vx,Wx;Vx=zx,Wx=221,function(t){for(;--t;)Vx.push(Vx.shift())}(++Wx);const Kx=function(t,e){return zx[t-=0]};function*qx(t){t?Kx("0x6")==typeof t?yield 1:Array[Kx("0x4")](t)?yield*function*(t){for(const e of t)yield*qx(e)}(t):Kx("0x1")==typeof t?yield*$x(t):"string"==typeof t?yield*Xx(t):Kx("0x5")==typeof t&&(yield t):yield 0}function*$x(t){if(yield Jx("{"),t){const e=Object[Kx("0x0")](t).sort();for(const n of e){yield*Xx(n),yield Jx(":");const e=t[n];yield*qx(e)}}yield Jx("}")}function*Xx(t){yield Jx('"');for(const e of t)yield Jx(e);yield Jx('"')}function Jx(t){return t[Kx("0x2")](0)}function Qx(t){return(t*=Math[Kx("0x3")](t)).toString(36)}const Yx=["_updateSuggestionData","_joinWithAdjacentSuggestions","_addSuggestionMarker","insertContent","marker-count","getAllAdjacentSuggestions","formatBlock","isSelectable","fire","registerCustomCallback","hasComments","dataReady","isNextTo","execute","addSuggestion","editing","model","_joinSuggestions","getRanges","isObject","removeClass","data","filter","change:data","isLocal","notReady","addClass","originalSuggestionId","isCollapsed","markInlineFormat","getCustomProperty","skipNestingCheck","forceDefaultExecution","normal","stop","fetchCommentThread","detach","isInContent","elementToElement","isUndo","markDeletion","collaboration.channelId","_suggestionState","set","getWalker","toViewElement","splitPosition","newRange","containsRangeInObject","_createSuggestion","createPositionAt","listenTo","_setSuggestionRange","map","updateMarker","targetPosition","markBlockFormat","every","_defaultCallbacks","clear","deletion:discard","join","createdAt","_rangeIsInLocalUserInsertion","elementStart","suggestion:","isBefore","markers","getShiftedBy","createRangeIn","fromCharCode","ck-suggestion-marker","getUser","getSuggestion","some","getMultiRangeId","getSuggestionCallback","acceptSuggestion","commentThread","$graveyard","_suggestions","getNearestSelectionRange","add","schema","push","includes","track-changes-suggestion-data-mismatch","differ","return","pluginName","formatInline","reconvertMarker","formatBlock:chain","isInsideObject","markerReady","locale","removeAttribute","rootName","rejected","getAttribute","containsPosition","consumable","setSelection","values","_enabledCommands","formatInline:","elementEnd","containerElement","multi","formatBlock:","end","getFirstRange","createPositionBefore","config","formatInline:discard","removeComment","getIntersection","parent","deletion:join","track-changes-suggestion-not-found","suggestion","addHighlight","PENDING_ACTION_SUGGESTION","markMultiRangeInsertion","getFirstMarker","value","_registerDefaultCallbacks","insertion:accept","suggestionUnloaded","before","discard","for","remove","discardAllSuggestions","addMarkerName","selection","containsRange","isBlock","consume","_getSuggestionData","formatInline:join","requires","change:activeMarkers","nodeAfter","_model","plugins","conversion","size","_refreshSuggestionsChain","_editor","getAncestors","accept","getCommentThread","trackChanges","deletion","removeMarker","accepted","isIntersectingWithRange","element","CommentsRepository","createSelection","after","has","_cutOutSuggestionMarker","buildSuggestion","next","createPositionAfter","attributes","writer","low","isAfter","splice","item","addSuggestionData","addMarker:suggestion","hasSuggestion","insertion","ck-suggestion-marker-","deleteContent","insertion:","addMarker:suggestion:formatBlock","change:_saved","start","clone","suggestionChanged","_findSuggestions","fromRange","get","getChanges","textProxy","PendingActions","discardSelectedSuggestions","name","getSuggestions","then","getRange","type","lowest","commands","resolve","mapper","removeMarkers","Users","commandName","_setSuggestionData","_adapter","$marker","getDifference","range","insertion:chain","high","track-changes-adapter-already-set","rethrowUnexpectedError","chain","enableCommand","head","track-changes-command-not-found","unbind","suggestionLoaded","_customCallbacks","editingDowncast","howMany","TrackChangesEditing","isLimit","document","batch","insert","multipleBlocks","formatGroupId","deletion:accept","author","addMarker","length","isEqual","trackChangesCommand","_isForcedDefaultExecutionBlock","isDocumentOperation","_removeSuggestion","previous","track-changes-user-not-found","ready","nodeBefore","removed","markMultiRangeDeletion","_addThreadToSuggestion","formatBlock:join","root","addComment","position","removeMarker:suggestion:formatBlock","getItems","acceptSelectedSuggestions","upcast","markerToData","track-changes-adapter-missing-getsuggestion","_suggestionFactory","deletion:","_saved","adapter","init","enableReadOnlyMode","sort","markInsertion","subType","bindElementToMarker","activeMarkers","open","_checkSuggestionCorrectness","registerPostFixer","options","split","_commentsRepository","_breakSuggestionMarker","ck-suggestion-marker--active","createRange","isMultiRange","acceptAllSuggestions","markerToHighlight","updateSuggestion","addRange","markerName","isOwn","showSuggestionHighlights","getChangedMarkers","dataDowncast","from","oldRange","moveTargetPosition","backward","_handleNewSuggestionMarker","editor","change","isAtEnd","getLastMatchingPosition","deletion:chain","dataToMarker","formatBlock:discard","toJSON","_splitMarkerName"];var Zx,ta;Zx=Yx,ta=200,function(t){for(;--t;)Zx.push(Zx.shift())}(++ta);const ea=function(t,e){return Yx[t-=0]};class na extends t.Plugin{static get[ea("0xf0")](){return[ea("0x102"),s.Users,t.PendingActions,Or,qr,Yr,is,us,ps,Cs,Ss,Os,Us,Ws,Js,ei,ii,ui,hi,Ci,Ii,Li,ji,Vi,Ji,ex,xx,dx,bx,Cx,wx,Dx,Gx]}static get[ea("0xbc")](){return ea("0x16")}constructor(t){function e(t){return t[ea("0x98")]((t=>String[ea("0xa9")](t)))[ea("0xa0")]("")}super(t),this.set(ea("0x41"),[]),this.on(ea("0xf1"),((e,n,o,r)=>{this[ea("0xf3")].change((()=>{for(const e of[...r,...o])this[ea("0xf3")][ea("0xa6")][ea("0x105")](e)&&t[ea("0x72")][ea("0xbe")](e)}))})),this._descriptionFactory=new Sr(this[ea("0x5a")].model[ea("0xb6")],this[ea("0x5a")][ea("0xc2")]),this._adapter=null,this[ea("0x37")]=new oa(this.editor),this[ea("0xb3")]=new Map,this._commentsRepository=t[ea("0xf4")][ea("0x11e")](ea("0x102")),this[ea("0xcb")]=new Set,this[ea("0xf3")]=this[ea("0x5a")].model,this[ea("0x8d")]=new WeakMap,this[ea("0x23")]=!1,this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,52,49,48,53,48])}[ea("0x3b")](){const t=this[ea("0x5a")];t.conversion.for(ea("0x14"))[ea("0x4d")]({model:ea("0xdb"),view:t=>{const{id:e,type:n}=this[ea("0x62")](t[ea("0x50")]),o=[ea("0xaa"),ea("0x114")+n];let r=3e3;return this.activeMarkers.includes(t.markerName)&&(o[ea("0xb7")]("ck-suggestion-marker--active"),r=3010),"deletion"==n&&(r+=5),{classes:o,attributes:{"data-suggestion":e},priority:r}}}),t[ea("0xf5")].for("dataDowncast").add((e=>{e.on(ea("0x111"),((e,n,o)=>{if(!o.options[ea("0x52")])return;const r=n[ea("0x10f")];if(!r)return;const s=o.mapper[ea("0x90")](r);t[ea("0x73")][ea("0xb6")][ea("0x76")](r)&&s&&!s.getCustomProperty("widget")&&s.is(ea("0xce"))&&(0,P.toWidget)(s,o.writer)}),{priority:ea("0xa")})})),t[ea("0xf5")].for(ea("0x54"))[ea("0x4d")]({model:ea("0xdb"),view:(t,e)=>{if(!e[ea("0x45")][ea("0x52")])return null;const{type:n}=this[ea("0x62")](t[ea("0x50")]);return{classes:["ck-suggestion-marker",ea("0x114")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,r)=>{if(!o[ea("0x10f")])return;if(o.item.is(ea("0xea")))return void r[ea("0xc8")][ea("0xed")](o[ea("0x10f")],n[ea("0x123")]);const s=r[ea("0x0")][ea("0x90")](o.item);if(!o.item.is(ea("0x101"))||!t[ea("0x73")][ea("0xb6")][ea("0xec")](o[ea("0x10f")])||s[ea("0x81")](ea("0xdc")))return;const{id:i}=this._splitMarkerName(o[ea("0x50")]);r.writer[ea("0x7d")]([ea("0xaa"),"ck-suggestion-marker-formatBlock"],s),r.writer.setAttribute("data-suggestion",i,s),r.mapper[ea("0x40")](s,o[ea("0x50")]),e&&(this.activeMarkers.includes(o.markerName)?r[ea("0x10b")].addClass("ck-suggestion-marker--active",s):r[ea("0x10b")].removeClass(ea("0x49"),s));for(const e of t.model[ea("0xa8")](o[ea("0x10f")])[ea("0x32")]())r[ea("0xc8")][ea("0xed")](e,n[ea("0x123")]);r.consumable.consume(o[ea("0x10f")],n[ea("0x123")])};t[ea("0xf5")][ea("0xe6")]("dataDowncast").add((t=>{t.on(ea("0x117"),((t,e,o)=>{o[ea("0x45")].showSuggestionHighlights&&n({showActiveMarkers:!1})(t,e,o)}),{priority:"highest"})})),t.conversion[ea("0xe6")](ea("0x54"))[ea("0x35")]({model:"suggestion",view:(t,e)=>e[ea("0x45")][ea("0x52")]?null:{group:ea("0xdb"),name:t.substr("suggestion"[ea("0x20")]+1)}}),t[ea("0xf5")][ea("0xe6")](ea("0x34"))[ea("0x89")]({view:{name:ea("0xdb"),attribute:{id:/^\w/,suggestionType:/^\w/}},model:(t,{writer:e})=>{let n=ea("0xa4")+t[ea("0xc6")]("suggestion-type")+":"+t.getAttribute("id");return t[ea("0xc6")]("marker-count")&&(n+=":"+t.getAttribute(ea("0x67"))),e.createElement(ea("0x6"),{"data-name":n})}}),t[ea("0xf5")][ea("0xe6")]("upcast")[ea("0x5f")]({view:ea("0xdb")}),t[ea("0xf5")][ea("0xe6")](ea("0x14")).add((t=>{t.on(ea("0x117"),n(),{priority:ea("0xa")})})),t[ea("0xf5")].for(ea("0x14"))[ea("0xb5")]((t=>{t.on(ea("0x31"),((t,e,n)=>{const o=n.mapper.markerNameToElements(e.markerName);if(o)for(const t of o)t[ea("0x81")](ea("0xdc"))||(n[ea("0x10b")][ea("0x77")](["ck-suggestion-marker","ck-suggestion-marker-formatBlock",ea("0x49")],t),n[ea("0x10b")][ea("0xc3")]("data-suggestion",t),n[ea("0x0")].unbindElementFromMarkerName(t,e[ea("0x50")]))}),{priority:ea("0xa")})})),t.model.document[ea("0x44")]((e=>{let n=!1;const o=Array.from(t[ea("0x73")][ea("0x18")][ea("0xba")][ea("0x53")]());for(const{name:i,data:x}of o){const{group:o,type:a,id:c}=this[ea("0x62")](i);if(ea("0xdb")!==o)continue;const l=this[ea("0xb3")][ea("0x11e")](c);if(null!=x[ea("0x92")])if(ea("0xbd")==a&&(n=n||ia(x.newRange,i,e,t[ea("0x73")][ea("0xb6")])),x[ea("0x92")][ea("0x7f")]||ea("0xb2")==x[ea("0x92")][ea("0x2e")][ea("0xc4")]||ea("0x69")==a&&!aa(x.newRange)||ea("0xfd")==a&&(sa(s=x[ea("0x92")])||(r=s)[ea("0x119")].parent==r[ea("0xd1")][ea("0x29")]&&r[ea("0x119")][ea("0x5c")]))e.removeMarker(i),n=!0;else{if(!l||!l[ea("0x88")])continue;n=!!this._joinWithAdjacentSuggestions(l)||n}}var r,s;return n})),t[ea("0x73")][ea("0x18")][ea("0x44")]((e=>{let n=!1;for(const o of t[ea("0x73")][ea("0x18")].differ[ea("0x11f")]()){if(ea("0x1a")!=o[ea("0x127")])continue;const r=o[ea("0x30")].getShiftedBy(o[ea("0x20")]);if(r[ea("0x5c")])for(const s of this[ea("0xb3")][ea("0xca")]()){if(s[ea("0x4b")]||!s[ea("0x88")])continue;if("formatBlock"!=s.type)continue;const i=s[ea("0xd2")]();if(i.start[ea("0xd8")]!=i[ea("0xd1")][ea("0xd8")]&&i[ea("0xd1")][ea("0x21")](o[ea("0x30")])){const o=t[ea("0x73")].createRange(i[ea("0x119")],r);e[ea("0x99")](s[ea("0xdf")](),{range:o}),n=!0}}}return n})),t[ea("0x73")][ea("0xa6")].on("update:suggestion",((t,e,n)=>{if(null==n){const{id:t}=this._splitMarkerName(e[ea("0x123")]),n=this._suggestions[ea("0x11e")](t);n&&n[ea("0xe9")](e.name)}})),t.model[ea("0x18")].on(ea("0x7a"),(()=>{const e=Array[ea("0x55")](t[ea("0x73")][ea("0x18")][ea("0xba")][ea("0x53")]());e[ea("0x3d")](((t,e)=>{const n=t[ea("0x78")].oldRange,o=e[ea("0x78")][ea("0x56")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[ea("0x119")].isBefore(o[ea("0x119")])?-1:1}));const n=new Set;for(const{name:t,data:o}of e){const{group:e,id:r}=this[ea("0x62")](t);if(ea("0xdb")===e&&(null===o[ea("0x56")]&&this[ea("0x59")](t),null===o[ea("0x92")])){const t=this[ea("0xb3")][ea("0x11e")](r);t.isInContent?n[ea("0xb5")](t):this[ea("0x25")](t)}}for(const{name:t,data:o}of e){const{group:e,id:r}=this[ea("0x62")](t);if(ea("0xdb")!==e)continue;const s=this[ea("0xb3")][ea("0x11e")](r);null!=o[ea("0x92")]&&null!=o[ea("0x56")]&&(this[ea("0xf7")](s),n[ea("0xb5")](s[ea("0xf")]))}for(const t of n)this[ea("0x6b")](ea("0x11b"),t);n[ea("0x9e")]()})),t[ea("0x73")].on("applyOperation",((e,n)=>{const o=n[0];if(!this._suggestions[ea("0xf6")])return;if(!o[ea("0x24")])return;if(o[ea("0x19")][ea("0x8a")]||!o[ea("0x19")][ea("0x7b")])return;let r,s;switch(o[ea("0x127")]){case ea("0x1a"):r=t.model[ea("0x95")](o[ea("0x30")]),s=r[ea("0xa7")](o[ea("0x15")]);break;case"split":r=t.model[ea("0x95")](o[ea("0x91")]),s=t[ea("0x73")][ea("0x95")](o[ea("0x57")]);break;case"move":r=t[ea("0x73")].createPositionAt(o[ea("0x9a")]),s=r[ea("0xa7")](o[ea("0x15")]);break;default:return}const i=t[ea("0x73")][ea("0x4a")](r,s);t.model[ea("0x5b")]((()=>{for(const{suggestion:t,meta:e}of this[ea("0x11c")](i)){if(t[ea("0x4b")])continue;if(ea("0xbd")==t[ea("0x127")])continue;const n=t.data&&t[ea("0x78")][ea("0x1b")];(ea("0x69")!=t[ea("0x127")]||"split"==o[ea("0x127")]&&!n)&&(e[ea("0x93")]||ea("0x113")==t.type&&e[ea("0x51")]||t[ea("0xd2")]()[ea("0xeb")](i)&&this[ea("0x48")](t,r,s))}}))}),{priority:ea("0x128")}),t[ea("0x73")].on(ea("0x115"),((e,n)=>{const o=n[0],r=n[1];if(r&&r[ea("0x83")])return;if(this[ea("0x23")])return;if(!this[ea("0x22")][ea("0xe0")])return;if(o[ea("0x7f")])return;const s=t[ea("0x73")][ea("0xb6")],{start:i,end:x}=o[ea("0xd2")](),a=i[ea("0xf2")]&&s[ea("0x76")](i[ea("0xf2")])?null:s[ea("0xb4")](i,"forward"),c=x[ea("0x29")]&&s.isObject(x[ea("0x29")])?null:s[ea("0xb4")](x,ea("0x58")),l=t[ea("0x73")][ea("0x4a")](a?a.start:i,c?c[ea("0xd1")]:x);t[ea("0x73")][ea("0x5b")]((e=>{this[ea("0x8b")](l);const n=t[ea("0x73")][ea("0xb6")].getNearestSelectionRange(l[ea("0x119")]);o.is("documentSelection")?e.setSelection(n):o.setTo(n)})),e.stop()}),{priority:e.priorities[ea("0x84")]+10}),t[ea("0x73")].on(ea("0x66"),((e,n)=>{const o=n[n.length-1];o&&o[ea("0x83")]||this._isForcedDefaultExecutionBlock||this[ea("0x22")][ea("0xe0")]&&(t.model[ea("0x5b")]((()=>{let o=t[ea("0x73")][ea("0x66")](n[0],n[1],n[2],n[3],{forceDefaultExecution:!0});if(!o)return;e[ea("0xbb")]=o[ea("0x11a")]();const r=o[ea("0xd1")].nodeBefore,s=t[ea("0x73")].schema;r&&s.isBlock(r)&&!s[ea("0x76")](r)&&(o=t[ea("0x73")].createRange(o[ea("0x119")],t[ea("0x73")].createPositionAt(r,"end"))),this[ea("0x3e")](o)})),e[ea("0x85")]())}),{priority:ea("0xa")}),this[ea("0x22")]=new H(t,this[ea("0xcb")]),this[ea("0x5a")].commands.add("trackChanges",this[ea("0x22")]),this[ea("0xe")](ea("0xfc"));const o=new K(t,this[ea("0xb3")]);t.commands[ea("0xb5")](ea("0xb0"),o),this[ea("0xe")](ea("0xb0"));const r=new Q(t,this[ea("0xb3")]);t[ea("0x129")][ea("0xb5")]("discardSuggestion",r),this[ea("0xe")]("discardSuggestion"),t[ea("0x129")][ea("0xb5")]("acceptAllSuggestions",new xt(t,o,this._suggestions)),this.enableCommand(ea("0x4c")),t[ea("0x129")].add(ea("0xe8"),new Tt(t,r,this[ea("0xb3")])),this.enableCommand(ea("0xe8")),t[ea("0x129")][ea("0xb5")](ea("0x33"),new pt(t,o,this._suggestions)),this[ea("0xe")]("acceptSelectedSuggestions"),t[ea("0x129")][ea("0xb5")](ea("0x122"),new Rt(t,r,this[ea("0xb3")])),this[ea("0xe")](ea("0x122"));const s=t[ea("0xf4")][ea("0x11e")]("CommentsRepository");this[ea("0x96")](s,ea("0x2f"),((t,{threadId:e})=>{const n=this._suggestions[ea("0x11e")](e);n&&n[ea("0xb1")]&&1===n[ea("0xb1")][ea("0x20")]&&this._updateSuggestionData(e,{hasComments:!0})}),{priority:ea("0x10c")}),this[ea("0x96")](s,ea("0xd6"),((t,{threadId:e})=>{const n=this[ea("0xb3")][ea("0x11e")](e);n&&n[ea("0xb1")]&&!n[ea("0xb1")].length&&this[ea("0x63")](e,{hasComments:!1})}),{priority:ea("0x10c")})}set[ea("0x3a")](t){if(this._adapter)throw new e.CKEditorError(ea("0xb"),this);this[ea("0x5")]=t}get[ea("0x3a")](){return this._adapter}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[ea("0xb3")][ea("0xca")]())t&&!e[ea("0x88")]||n.push(e);return e?n[ea("0x98")]((t=>t[ea("0x61")]())):n}[ea("0xac")](t){const n=this[ea("0xb3")].get(t);if(!n)throw new e.CKEditorError(ea("0xda"),this);return n}[ea("0x112")](t){return this._suggestions.has(t)}[ea("0x110")](t){const{id:e,authorId:n}=t,[o,r]=t[ea("0x127")][ea("0x46")](":"),s=this[ea("0xb3")][ea("0x11e")](e)||this[ea("0x94")](o,r,e,n);switch(this[ea("0x2c")](s),this._checkSuggestionCorrectness(s,o,r||null,n),s[ea("0xa1")]=t[ea("0xa1")],t.data&&(s.data=t[ea("0x78")]),t.attributes&&(s.attributes=t[ea("0x10a")]),this._adapter&&this[ea("0x5")].addSuggestion||(s[ea("0x39")]=!0),this[ea("0x8d")][ea("0x11e")](s)){case ea("0x7c"):this._suggestionState[ea("0x8e")](s,ea("0x6e"));break;case ea("0xc1"):s.isInContent?(this[ea("0x8d")].set(s,ea("0x28")),this[ea("0x6b")](ea("0x12"),s)):this[ea("0x8d")][ea("0x8e")](s,"removed")}return s}[ea("0xb0")](t){this[ea("0x83")]((()=>{this[ea("0x5a")].model.change((()=>{for(const e of t.getAllAdjacentSuggestions())e[ea("0xfa")]()}))}))}discardSuggestion(t){this.forceDefaultExecution((()=>{this[ea("0x5a")].model[ea("0x5b")]((()=>{for(const e of t[ea("0x68")]())e.discard()}))}))}[ea("0xe")](t,n){const o=this[ea("0x5a")][ea("0x129")][ea("0x11e")](t);if(!o)throw new e.CKEditorError(ea("0x10"),this,{commandName:t});this[ea("0xcb")].add(o),n&&o.on(ea("0x70"),((t,e)=>{this.trackChangesCommand[ea("0xe0")]&&(this[ea("0x23")]||e[ea("0x20")]>0&&e[e[ea("0x20")]-1]&&e[e.length-1][ea("0x83")]||(n(((...t)=>o[ea("0x70")](...t,{forceDefaultExecution:!0})),...e),t[ea("0x85")]()))}),{priority:ea("0xa")})}forceDefaultExecution(t){let n,o;const r=this[ea("0x23")];this._isForcedDefaultExecutionBlock=!0;try{n=t()}catch(t){o=t}return r||(this[ea("0x23")]=!1),o&&e.CKEditorError[ea("0xc")](o,this),n}[ea("0x3e")](t,n=null,o={}){if(t[ea("0x7f")])return null;const r=this[ea("0x5a")][ea("0xf4")][ea("0x11e")](ea("0x2")).me;for(const{suggestion:e,meta:o}of this[ea("0x11c")](t,ea("0x113")))if(o[ea("0x51")]){if(!o[ea("0x6f")])return e;if(n==e.subType){const n=e[ea("0xd2")]();return n[ea("0x119")][ea("0x21")](t[ea("0xd1")])?this[ea("0x97")](e,this[ea("0xf3")][ea("0x4a")](t[ea("0x119")],n[ea("0xd1")])):this[ea("0x97")](e,this[ea("0xf3")].createRange(n[ea("0x119")],t[ea("0xd1")])),e}}const s=(0,e.uid)(),i=r.id,x=n?ea("0x116")+n:ea("0x113"),a=this[ea("0x4")]({id:s,type:x,createdAt:new Date,authorId:i,attributes:o});return this[ea("0x65")](x,s,i,t),a}[ea("0xde")](t,n=ea("0xcf"),o={}){const r=this[ea("0x5a")][ea("0xf4")].get(ea("0x2")).me,s=this._suggestionFactory[ea("0xaf")](ea("0x113"),n,ea("0xa0"));for(const e of this[ea("0x124")]())if(e[ea("0x1e")].id==r.id&&ea("0x113")==e.type&&e[ea("0x3f")]==n&&(s(e[ea("0x75")](),t)||s(t,e[ea("0x75")]()))){for(const n of t)e[ea("0x4f")](n);return e}for(const e of t)for(const{suggestion:n,meta:o}of this._findSuggestions(e,ea("0x113"))){if(!o[ea("0x51")])continue;let e=!0;for(const o of n[ea("0x75")]())for(const n of t)if(!o[ea("0xeb")](n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=r.id,a=ea("0x116")+n,c=this[ea("0x4")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[ea("0x65")](a,i,x,e,Cr[ea("0xae")]());return c}[ea("0x80")](t,n,o=null,r={}){if(o=o||xa(n),t[ea("0x7f")])return;const s=this[ea("0x5a")][ea("0xf4")][ea("0x11e")](ea("0x2")).me,i=[];for(const{suggestion:e,meta:n}of this[ea("0x11c")](t,ea("0x113")))n[ea("0x51")]&&!n.isInsideObject&&i.push(...e[ea("0x75")]());const x=function(t,e){const n=[];for(const o of e){const e=t[ea("0xd7")](o);e&&n[ea("0xb7")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[ea("0x20")];){const o=n[e].getDifference(t);n[ea("0x10e")](e,1,...o),e+=o[ea("0x20")]}}return n}(t,i);x[ea("0x20")]&&this[ea("0xf3")][ea("0x5b")]((()=>{for(const t of x){const e=this._suggestionFactory[ea("0xaf")](ea("0xbd"),o,ea("0xfa"));this.forceDefaultExecution((()=>e([t],n,r)))}}));for(const t of a){let i=null,x=t[ea("0x119")],a=t.end;for(const{suggestion:e,meta:n}of this[ea("0x11c")](t,ea("0xbd"))){if(!n[ea("0x51")])continue;if(e[ea("0x3f")]!=o)continue;const r=e[ea("0xd2")]();if(r[ea("0xeb")](t,!0))return;x=x[ea("0xa5")](r[ea("0x119")])?x:r[ea("0x119")],a=a[ea("0x10d")](r[ea("0xd1")])?a:r[ea("0xd1")],i?r.start.isBefore(i[ea("0xd2")]().start)?(i[ea("0x1")](),i=e):e[ea("0x1")]():i=e}const c=this[ea("0xf3")][ea("0x4a")](x,a);if(i)this[ea("0x97")](i,c);else{const t=(0,e.uid)(),i=s.id;this._setSuggestionData({id:t,type:"formatInline:"+o,data:n,createdAt:new Date,authorId:i,attributes:r}),this._addSuggestionMarker(ea("0xcc")+o,t,i,c)}}}[ea("0x9b")](t,n,o=[],r=null,s={}){n[ea("0x1c")]||(n.formatGroupId=n[ea("0x3")]),n[ea("0x1b")]=t.is(ea("0x8")),r=r||xa(n);const i=o[ea("0x98")]((t=>ca(t,this[ea("0xf3")]))),x=t.is(ea("0x8"))?t:ca(t,this[ea("0xf3")]);i.push(x);let a=!0;for(const t of i)if(!this[ea("0xa2")](t)){a=!1;break}if(a){const t=this[ea("0x37")][ea("0xaf")](ea("0x69"),r,ea("0xfa"));return void this[ea("0x83")]((()=>t([x],n,s)))}let c=null,l=x[ea("0x119")],u=x[ea("0xd1")];for(const{suggestion:t,meta:e}of this[ea("0x11c")](x,ea("0x69"))){if(!e[ea("0x51")]||e[ea("0x6f")]||e[ea("0x93")]||e[ea("0xc0")])continue;if(t[ea("0x78")].formatGroupId!=n.formatGroupId)continue;const o=t[ea("0xd2")]();if(t[ea("0x3f")]==r){if(o[ea("0xeb")](x,!0))return;l=l.isBefore(o.start)?l:o[ea("0x119")],u=u[ea("0x10d")](o[ea("0xd1")])?u:o[ea("0xd1")],c?o[ea("0x119")][ea("0xa5")](c[ea("0xd2")]()[ea("0x119")])?(c.removeMarkers(),c=t):t.removeMarkers():c=t}else{const e=x[ea("0xd7")](o);this._cutOutSuggestionMarker(t,e)}}const d=this[ea("0x5a")][ea("0xf4")][ea("0x11e")](ea("0x2")).me,g=(0,e.uid)(),f=d.id;c?this._setSuggestionRange(c,this[ea("0xf3")][ea("0x4a")](l,u)):(this[ea("0x4")]({id:g,type:ea("0xd0")+r,data:n,createdAt:new Date,authorId:f,attributes:s}),this._addSuggestionMarker(ea("0xd0")+r,g,f,this._model[ea("0x4a")](l,u)))}markMultiRangeBlockFormat(t,n,o=[],r=null,s={}){n[ea("0x1c")]||(n.formatGroupId=n[ea("0x3")]),n[ea("0x1b")]=!1,r=r||xa(n);const i=o[ea("0x98")]((t=>ca(t,this[ea("0xf3")]))),x=t.map((t=>ca(t,this._model)));i[ea("0xb7")](...x);let a=!0;for(const t of i)if(!this._rangeIsInLocalUserInsertion(t)){a=!1;break}if(a){const t=this[ea("0x37")][ea("0xaf")](ea("0x69"),r,ea("0xfa"));return void this[ea("0x83")]((()=>t(x,n,s)))}const c=this[ea("0x5a")][ea("0xf4")][ea("0x11e")]("Users").me;for(const t of this[ea("0x124")]()){if(t[ea("0x1e")].id!=c.id)continue;if(ea("0x69")!=t[ea("0x127")]||t[ea("0x78")].formatGroupId!=n[ea("0x1c")])continue;const e=t.subType==r;for(let n=0;n<x[ea("0x20")];n++){const o=x[n];for(const r of t.getMarkers()){const s=r[ea("0x126")]();if(o[ea("0x21")](s)){e?(x[ea("0x10e")](n,1),n--):t[ea("0xfe")](r[ea("0x123")]);break}}}}if(0==x[ea("0x20")])return;const l=this[ea("0x37")][ea("0xaf")]("formatBlock",r,ea("0xa0"));for(const t of this.getSuggestions())if(t[ea("0x1e")].id==c.id&&ea("0x69")==t[ea("0x127")]&&t.data[ea("0x1c")]==n[ea("0x1c")]&&t[ea("0x3f")]==r&&(l(t.getRanges(),x)||l(x,t[ea("0x75")]()))){for(const e of x)t[ea("0x4f")](e);return t}const u=(0,e.uid)(),d=c.id,g=ea("0xd0")+r,f=this[ea("0x4")]({id:u,type:g,data:n,createdAt:new Date,authorId:d,attributes:s});for(const t of x)this._addSuggestionMarker(g,u,d,t,Cr[ea("0xae")]());return f}[ea("0x8b")](t,n=null,o={}){if(t[ea("0x7f")])return null;const r=this[ea("0x5a")][ea("0xf4")][ea("0x11e")](ea("0x2")).me,s=new F.LiveRange(t[ea("0x119")],t[ea("0xd1")]);for(const{suggestion:t,meta:e}of this[ea("0x11c")](s,ea("0x113")))if(e[ea("0x51")]&&!e[ea("0x6f")])if(t[ea("0x4b")]){const e=t[ea("0x75")]()[ea("0x79")]((t=>ea("0xb2")!=t[ea("0x2e")].rootName));if(e[ea("0x9c")]((t=>s[ea("0xeb")](t,!0)))&&t[ea("0xe5")](),e[ea("0xad")]((t=>t[ea("0xeb")](s,!0)))){const t=this._suggestionFactory.getSuggestionCallback("deletion",n,ea("0xfa"));return this[ea("0x83")]((()=>t([s],null,o))),null}}else{const e=s[ea("0xd7")](t[ea("0xd2")]());t._onDiscard([e],null,o)}if(s[ea("0x87")](),s[ea("0x7f")]||ea("0xb2")==s[ea("0x2e")].rootName)return null;let i=null,x=s[ea("0x119")],a=s[ea("0xd1")];for(const{suggestion:t,meta:e}of this[ea("0x11c")](s,ea("0xfd")))if(e[ea("0x51")])if(t[ea("0x4b")]){let e=!0;for(const n of t[ea("0x75")]()){if(n.containsRange(s,!0))return t;s[ea("0xeb")](n)||(e=!1)}e&&t[ea("0xe5")]()}else{const e=t.getFirstRange();if(e[ea("0xeb")](s,!0))return t;x=x[ea("0xa5")](e.start)?x:e.start,a=a[ea("0x10d")](e.end)?a:e[ea("0xd1")],i?e[ea("0x119")][ea("0xa5")](i[ea("0xd2")]()[ea("0x119")])?(i[ea("0x1")](),i=t):t[ea("0x1")]():i=t}if(i)return this[ea("0x97")](i,this[ea("0xf3")][ea("0x4a")](x,a)),i;{const t=(0,e.uid)(),s=this[ea("0xf3")][ea("0x4a")](x,a),i=r.id,c=n?ea("0x38")+n:ea("0xfd"),l=this._setSuggestionData({id:t,type:c,createdAt:new Date,authorId:i,attributes:o});return this[ea("0x65")](c,t,i,s),l}}[ea("0x2b")](t,n=ea("0xcf"),o={}){const r=this[ea("0x5a")][ea("0xf4")].get("Users").me,s=t[ea("0x98")]((t=>new F.LiveRange(t[ea("0x119")],t[ea("0xd1")]))),i=new Set;for(const t of s)for(const{suggestion:e,meta:n}of this[ea("0x11c")](t,ea("0x113")))n[ea("0x51")]&&!n.isNextTo&&i[ea("0xb5")](e);for(const e of i)if(e[ea("0x4b")]){const r=e[ea("0x75")]();if((!e[ea("0x10a")]||!e[ea("0x10a")][ea("0x82")])&&r.every((t=>s[ea("0xad")]((e=>e[ea("0xeb")](t,!0)))))&&e.discard(),s.every((t=>r.some((e=>e[ea("0xeb")](t,!0)))))){const e=this[ea("0x37")].getSuggestionCallback(ea("0xfd"),n,ea("0xfa"));return this[ea("0x83")]((()=>e(t,null,o))),null}}else{const t=e[ea("0xd2")]();if(s.some((e=>e[ea("0xeb")](t,!0)))&&e[ea("0xe5")](),s.every((e=>t[ea("0xeb")](e,!0)))){const t=this[ea("0x37")].getSuggestionCallback("deletion",n,ea("0xfa"));return this[ea("0x83")]((()=>t(s,null,o))),null}}const x=this[ea("0x37")][ea("0xaf")](ea("0xfd"),n,ea("0xa0"));let a=null;for(const t of this[ea("0x124")]())if(t.author.id==r.id&&t.isInContent&&ea("0xfd")==t[ea("0x127")]&&t.subType==n&&(x(t[ea("0x75")](),s)||x(s,t[ea("0x75")]())))if(a){if(t.commentThread&&t[ea("0xb1")][ea("0x20")])continue;for(const e of t[ea("0x75")]())a[ea("0x100")](e)||a[ea("0x4f")](e);t.removeMarkers()}else{a=t;for(const e of s)t[ea("0x100")](e)||t[ea("0x4f")](e)}if(a)return a;i[ea("0x9e")]();for(const t of s)for(const{suggestion:e,meta:n}of this._findSuggestions(t,ea("0xfd")))n.isOwn&&i[ea("0xb5")](e);for(const t of i){const e=t[ea("0x75")]();if((!o||!o[ea("0x82")])&&s[ea("0x9c")]((t=>e[ea("0xad")]((e=>e[ea("0xeb")](t,!0))))))return t;(!t[ea("0x10a")]||!t[ea("0x10a")][ea("0x82")])&&e[ea("0x9c")]((t=>s[ea("0xad")]((e=>e[ea("0xeb")](t,!0)))))&&t[ea("0xe5")]()}const c=(0,e.uid)(),l=r.id,u=ea("0x38")+n,d=this[ea("0x4")]({id:c,type:u,createdAt:new Date,authorId:l,attributes:o});for(const t of s)t[ea("0x87")](),t[ea("0x7f")]||ea("0xb2")==t[ea("0x2e")][ea("0xc4")]||this[ea("0x65")](u,c,l,t,Cr[ea("0xae")]());return d}[ea("0x97")](t,e){const n=t.getFirstMarker();this[ea("0xf3")][ea("0x5b")]((t=>{t[ea("0x99")](n,{range:e})}))}[ea("0x2c")](t){const e=t.id,n=this[ea("0x5a")][ea("0xd4")][ea("0x11e")]("collaboration.channelId");this._commentsRepository.hasCommentThread(e)||this[ea("0x47")].addCommentThread({channelId:n,threadId:e});const o=this._commentsRepository[ea("0xfb")](e);o[ea("0x11")]("isRemovable"),o.isRemovable=!1,t[ea("0xb1")]=o}_checkSuggestionCorrectness(t,n,o,r){if(t[ea("0x127")]!=n||t.subType!=o||t[ea("0x1e")].id!=r)throw this[ea("0x5a")][ea("0x3c")](ea("0xb9")),new e.CKEditorError("track-changes-suggestion-data-mismatch",this)}[ea("0x106")](t,n){const o=t.getFirstRange();if(n.isEqual(o))t[ea("0x1")]();else if(o[ea("0xeb")](n)){const r=this[ea("0xf3")][ea("0x95")](n[ea("0x119")][ea("0x29")],ea("0xd1"));this[ea("0x97")](t,this[ea("0xf3")].createRange(o[ea("0x119")],r));const s=(0,e.uid)(),i=t[ea("0x1e")].id,x=t[ea("0x127")]+":"+t[ea("0x3f")];this._setSuggestionData({id:s,type:x,createdAt:new Date,authorId:i,data:t[ea("0x78")],attributes:t[ea("0x10a")]});const a=this[ea("0xf3")].createPositionAt(n.end.parent,ea("0x104")),c=this[ea("0xf3")].createRange(a,o[ea("0xd1")]);this[ea("0x65")](x,s,i,c)}else if(o[ea("0xc7")](n[ea("0x119")])){const e=this[ea("0xf3")].createPositionAt(n[ea("0x119")][ea("0x29")],ea("0xd1"));this[ea("0x97")](t,this._model[ea("0x4a")](o[ea("0x119")],e))}else{const e=this._model[ea("0x95")](n[ea("0xd1")][ea("0xd8")],ea("0x104"));this[ea("0x97")](t,this._model.createRange(e,o[ea("0xd1")]))}}[ea("0xa2")](t){for(const{suggestion:e,meta:n}of this[ea("0x11c")](t,ea("0x113"))){if(!n[ea("0x51")])continue;const o=e[ea("0x75")]();for(const e of o)if(!t[ea("0x7")](e).length)return!0}return!1}_getAuthorFromId(t){const n=this[ea("0x5a")][ea("0xf4")][ea("0x11e")](ea("0x2"))[ea("0xab")](t);if(!n)throw new e.CKEditorError(ea("0x27"),this);return n}[ea("0x94")](t,e,n,o){const r=this._getAuthorFromId(o),s=this[ea("0x37")][ea("0x107")](t,e,n,r,(t=>this._updateSuggestionData(n,{attributes:t})));return this[ea("0x96")](s,ea("0xfa"),(()=>{this[ea("0x63")](n,{state:ea("0xff")})}),{priority:ea("0xa")}),this[ea("0x96")](s,ea("0xe5"),(()=>{this[ea("0x63")](n,{state:ea("0xc5")})}),{priority:"high"}),this[ea("0xb3")][ea("0x8e")](n,s),this[ea("0x8d")][ea("0x8e")](s,ea("0x7c")),s}_splitMarkerName(t){const e=t[ea("0x46")](":");return{group:e[0],type:e[1],subType:e[ea("0x20")]>=5?e[2]:null,id:e[ea("0x20")]<5?e[2]:e[3],authorId:e[ea("0x20")]<5?e[3]:e[4],markerCount:6==e[ea("0x20")]?e[5]:null}}[ea("0x48")](t,n,o){const r=t[ea("0xd2")](),s=r[ea("0x119")],i=r[ea("0xd1")];this._setSuggestionRange(t,this[ea("0xf3")].createRange(s,n));const x=(0,e.uid)(),a=t[ea("0x1e")].id,c=t[ea("0x127")]+(t[ea("0x3f")]?":"+t[ea("0x3f")]:"");this[ea("0x4")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,data:t[ea("0x78")]}),"formatBlock"==t[ea("0x127")]&&(o=this[ea("0xf3")][ea("0xd3")](o[ea("0xd8")])),this[ea("0x65")](c,x,a,this[ea("0xf3")].createRange(o,i))}[ea("0x11c")](t,e=null){const n=[],o=this[ea("0xf3")].schema,r=this[ea("0x5a")][ea("0xf4")][ea("0x11e")](ea("0x2")).me;for(const s of this[ea("0x124")]())if(s.isInContent&&(!e||s[ea("0x127")]==e))for(const e of s[ea("0x75")]()){const i=t[ea("0x119")][ea("0x21")](e[ea("0xd1")])||t[ea("0xd1")].isEqual(e[ea("0x119")]);if(i||t[ea("0xd7")](e)){const x=t[ea("0xeb")](e)&&ra(o,e.start,t),a=e[ea("0xeb")](t)&&ra(o,t[ea("0x119")],e);n[ea("0xb7")]({suggestion:s,meta:{isOwn:r==s[ea("0x1e")],isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}[ea("0x65")](t,e,n,o,r=null){this[ea("0xf3")][ea("0x5b")]((s=>{let i=ea("0xa4")+t+":"+e+":"+n;r&&(i=i+":"+r),s[ea("0x1f")](i,{range:o,usingOperation:!0,affectsData:!0})}))}_removeSuggestion(t){const e=t.previous,n=t[ea("0x108")];t[ea("0x26")]=null,null!=e&&(e[ea("0x108")]=null),t[ea("0x108")]=null,null!=n&&(n[ea("0x26")]=null),ea("0x28")==this[ea("0x8d")][ea("0x11e")](t)&&(this[ea("0x8d")][ea("0x8e")](t,"removed"),this[ea("0x6b")](ea("0xe3"),t,e,n))}[ea("0x4")](t){const e=t.id,n=this[ea("0x110")](t);if(this[ea("0x5")]&&this[ea("0x5")][ea("0x71")]){const o=this[ea("0x5a")][ea("0xf4")].get(ea("0x121")),r=n[ea("0x6d")],s=n[ea("0x3f")]?n.type+":"+n[ea("0x3f")]:n.type,i=this.editor[ea("0xc2")],x=o[ea("0xb5")](kr(i,ea("0xdd"))),a={id:e,type:s,hasComments:r,data:t[ea("0x78")]||null,originalSuggestionId:t[ea("0x7e")]||null,attributes:n[ea("0x10a")]};this._adapter[ea("0x71")](a)[ea("0x125")]((t=>{n._saved=!0,o[ea("0xe7")](x),t&&t[ea("0xa1")]&&(this[ea("0xb3")][ea("0x11e")](e)[ea("0xa1")]=t.createdAt)}))}return n}[ea("0x63")](t,e){const n=this[ea("0x5a")][ea("0xf4")][ea("0x11e")]("PendingActions"),o=this[ea("0xb3")][ea("0x11e")](t);if(this[ea("0x5")]&&this[ea("0x5")].updateSuggestion)if(o[ea("0x39")]){const o=n[ea("0xb5")](kr(this.editor[ea("0xc2")],"PENDING_ACTION_SUGGESTION"));this[ea("0x5")][ea("0x4e")](t,e).then((()=>{n.remove(o)}))}else o.on(ea("0x118"),(()=>{this[ea("0x63")](t,e)}))}_getSuggestionData(t){if(!this[ea("0x5")]||!this[ea("0x5")][ea("0xac")])throw new e.CKEditorError(ea("0x36"),this);return this._adapter.getSuggestion(t)}[ea("0x59")](t){const{id:e,type:n,subType:o,authorId:r}=this[ea("0x62")](t),s=this._suggestions.get(e)||this[ea("0x94")](n,o,e,r);switch(this[ea("0x43")](s,n,o,r),this[ea("0x8d")][ea("0x11e")](s)){case ea("0x7c"):this[ea("0xee")](e).then((t=>{let n=Promise[ea("0x12a")]();t[ea("0x6d")]&&(n=this[ea("0x47")][ea("0x86")]({channelId:this[ea("0x5a")][ea("0xd4")][ea("0x11e")](ea("0x8c")),threadId:e})),n[ea("0x125")]((()=>{this[ea("0x110")](t)[ea("0x39")]=!0}))})),this[ea("0x8d")].set(s,ea("0xc1"));break;case ea("0x2a"):this[ea("0x63")](e,{state:ea("0x42")});case ea("0x6e"):this[ea("0x8d")].set(s,ea("0x28")),this.fire("suggestionLoaded",s);break;case ea("0x28"):this.fire(ea("0x11b"),s)}s[ea("0xe9")](t),this[ea("0xf7")](s)}_refreshSuggestionsChain(t){if(t[ea("0x4b")])return;let e=!0,n=!0;for(const o of this.getSuggestions()){if(o[ea("0x4b")])continue;if(o==t||!o.isInContent)continue;if(o[ea("0x1e")].id!=t[ea("0x1e")].id)continue;const r=this[ea("0x37")].getSuggestionCallback(t[ea("0x127")],t[ea("0x3f")],ea("0xd")),s=this._suggestionFactory[ea("0xaf")](o[ea("0x127")],o[ea("0x3f")],ea("0xd")),i=r(t,o),x=s(t,o);i&&x&&(i[1][ea("0xb1")]&&i[1].commentThread[ea("0x20")]||(i[0][ea("0x108")]=i[1],i[1][ea("0x26")]=i[0],i[0]==t?n=!1:e=!1))}t[ea("0x26")]&&e&&(t[ea("0x26")].next=null,t[ea("0x26")]=null),t[ea("0x108")]&&n&&(t[ea("0x108")][ea("0x26")]=null,t[ea("0x108")]=null)}[ea("0x64")](t){for(const e of this._suggestions[ea("0xca")]()){if(e==t||!e.isInContent)continue;if(e[ea("0x127")]!=t[ea("0x127")]||e[ea("0x1e")].id!=t[ea("0x1e")].id||e[ea("0x3f")]!=t[ea("0x3f")])continue;const n=this[ea("0x37")][ea("0xaf")](t.type,t[ea("0x3f")],"join");if(n(e[ea("0x75")](),t[ea("0x75")]())){if(t[ea("0xb1")]&&t.commentThread[ea("0x20")])continue;return this._joinSuggestions(e,t),!0}if(n(t[ea("0x75")](),e.getRanges())){if(e[ea("0xb1")]&&e.commentThread[ea("0x20")])continue;return this._joinSuggestions(t,e),!0}}return!1}[ea("0x74")](t,e){if(t.isMultiRange)for(const n of e[ea("0x75")]())t[ea("0x4f")](n);else{const n=e[ea("0xd2")]()[ea("0xd1")];this._setSuggestionRange(t,this[ea("0xf3")][ea("0x4a")](t[ea("0xd2")]()[ea("0x119")],n))}e[ea("0x1")]()}}(0,e.mix)(na,e.EmitterMixin);class oa{constructor(t){this._editor=t,this._model=t[ea("0x73")],this[ea("0x13")]=new Map,this._defaultCallbacks=new Map,this[ea("0xe1")]()}[ea("0x107")](t,e,n,o,r){return new Cr(this[ea("0xf3")],{type:t,subType:e,id:n,author:o,onAttributesChange:r,onAccept:(...n)=>this[ea("0xaf")](t,e,ea("0xfa"))(...n),onDiscard:(...n)=>this.getSuggestionCallback(t,e,ea("0xe5"))(...n)})}[ea("0x6c")](t,e,n,o){const r=t+":"+e+":"+n;this[ea("0x13")][ea("0x8e")](r,o)}[ea("0xaf")](t,e,n){const o=t+":"+e+":"+n;return this._customCallbacks[ea("0x11e")](o)||this._defaultCallbacks[ea("0x11e")](t+":"+n)}[ea("0xe1")](){const t=()=>{},e=t=>{t[ea("0x3d")](((t,e)=>t[ea("0x119")][ea("0xa5")](e[ea("0x119")])?1:-1)),this[ea("0xf3")].change((e=>{for(const n of t){let t;t=n.end[ea("0x5c")]&&n[ea("0xd1")][ea("0xd8")]==n[ea("0x119")].nodeAfter?e[ea("0x103")](n[ea("0x119")][ea("0xf2")],"on"):e[ea("0x103")](n),this[ea("0xf3")][ea("0x115")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[ea("0xf3")][ea("0x5b")]((n=>{const{commandName:o,commandParams:r=[]}=e,s=t[0];if(ea("0xb2")==s[ea("0x2e")].rootName)return;const i=Array[ea("0x55")](this._model[ea("0x18")][ea("0xea")][ea("0x75")]())[ea("0x98")]((t=>F.LiveRange[ea("0x11d")](t)));sa(s)?n[ea("0xc9")](this[ea("0xf3")].createRange(s[ea("0xd1")])):n[ea("0xc9")](s);for(const t of this[ea("0xf8")][ea("0x129")][ea("0x129")]())t.refresh();r[ea("0xb7")]({forceDefaultExecution:!0}),this._editor[ea("0x70")](o,...r);const x=i[ea("0x79")]((t=>ea("0xb2")!=t[ea("0x2e")][ea("0xc4")]));x[ea("0x20")]>0&&n.setSelection(x);for(const t of i)t[ea("0x87")]()}))},o=(t,e)=>1==t.length&&1==e[ea("0x20")]&&t[0].end[ea("0x21")](e[0][ea("0x119")]),r=(t,e)=>la(t,e,this[ea("0xf3")])?[t,e]:la(e,t,this._model)?[e,t]:null;this._defaultCallbacks.set(ea("0xe2"),t),this[ea("0x9d")][ea("0x8e")]("insertion:discard",e),this[ea("0x9d")].set("insertion:join",o),this[ea("0x9d")][ea("0x8e")](ea("0x9"),r),this[ea("0x9d")][ea("0x8e")](ea("0x1d"),e),this[ea("0x9d")][ea("0x8e")](ea("0x9f"),t),this[ea("0x9d")][ea("0x8e")](ea("0xd9"),o),this[ea("0x9d")].set(ea("0x5e"),r),this[ea("0x9d")][ea("0x8e")]("formatInline:accept",n),this._defaultCallbacks[ea("0x8e")](ea("0xd5"),t),this[ea("0x9d")].set(ea("0xef"),o),this._defaultCallbacks.set("formatInline:chain",t),this[ea("0x9d")][ea("0x8e")]("formatBlock:accept",n),this[ea("0x9d")][ea("0x8e")](ea("0x60"),t),this[ea("0x9d")][ea("0x8e")](ea("0x2d"),o),this._defaultCallbacks[ea("0x8e")](ea("0xbf"),t)}}function ra(t,e,n){for(const o of e.parent[ea("0xf9")]({includeSelf:!0,parentFirst:!0})){if(o[ea("0x2e")]==o)return!1;if(!n.containsItem(o))return!1;if(t[ea("0x76")](o)||t.isLimit(o))return!0}}function sa(t){return t.end[ea("0xd8")]==t[ea("0x119")][ea("0xf2")]&&t[ea("0xd1")].isAtStart}function ia(t,e,n,o){const r=t=>!t[ea("0x10f")].is(ea("0x120"))&&!o[ea("0x76")](t[ea("0x10f")]),s=t.start[ea("0x5d")](r),i=t[ea("0xd1")].getLastMatchingPosition(r,{direction:ea("0x58")});return!(t[ea("0x119")].isEqual(s)&&t[ea("0xd1")][ea("0x21")](i)||(s[ea("0xa5")](i)?n[ea("0x99")](e,{range:n.createRange(s,i)}):n[ea("0xfe")](e),0))}function xa(t){return function(t){let e=0,n=0;for(const o of $x(t))e=(e<<5)-e+o,e&=e,[e,n]=[n,e];return Qx(e)+Qx(n)}(t)}function aa(t){const e=t[ea("0x119")][ea("0xf2")];return e&&e.is("element")}function ca(t,e){const n=e.schema[ea("0x76")](t)||e.schema[ea("0x6a")](t);return e[ea("0x4a")](e[ea("0x95")](t,ea("0xe4")),n?e[ea("0x109")](t):e.createPositionAt(t,"end"))}function la(t,e,n){const o=t[ea("0xd2")](),r=e[ea("0xd2")]();if(o[ea("0xd1")].isEqual(r.start))return!0;if(t[ea("0x127")]!=e[ea("0x127")])return!1;if(!o[ea("0xd1")].isTouching(r[ea("0x119")]))return!1;const s=n[ea("0x4a")](o[ea("0xd1")],r[ea("0x119")])[ea("0x8f")]();for(const t of s)if([ea("0xa3"),ea("0xcd")][ea("0xb8")](t[ea("0x127")])&&n[ea("0xb6")][ea("0x17")](t[ea("0x10f")]))return!1;return!0}var ua,da,ga=["bind","execute","acceptSuggestion","_acceptCommand","discardSuggestion","unbind","commentThreadController","stopListening","destroy","listenTo","_discardCommand","view","isEnabled","model"];ua=ga,da=323,function(t){for(;--t;)ua.push(ua.shift())}(++da);var fa=function(t,e){return ga[t-=0]};class ma{constructor(t,e,n,o,r){this[fa("0xc")]=t,this[fa("0xa")]=e,this[fa("0x5")]=r,this._acceptCommand=n,this[fa("0x9")]=o,this[fa("0xa")][fa("0xd")](fa("0xb")).to(this[fa("0x2")]),this[fa("0x8")](e,fa("0x1"),(()=>this[fa("0x1")]())),this[fa("0x8")](e,fa("0x3"),(()=>this.discardSuggestion()))}acceptSuggestion(){this[fa("0x2")][fa("0x0")](this[fa("0xc")].id)}[fa("0x3")](){this[fa("0x9")][fa("0x0")](this[fa("0xc")].id)}[fa("0x7")](){this[fa("0xa")][fa("0x4")](fa("0xb")),this[fa("0x6")](),this[fa("0x5")][fa("0x7")]()}}(0,e.mix)(ma,e.ObservableMixin);const ha=["value","isDirty","editorConfig","focus","commentInputView","descriptionParts","editor","length","cancel","_model","commentsListView","delegate","destroy","addComment","bind","setData","hasDirtyComment","commentThread","isActive","isEnabled","fire","locale","_localUser","createdAt","CommentView","element","isReadOnly","removeComment","_config","_createCommentThreadInputView","set","disableComments","assign","commentThreadInputView"];var pa,ba;pa=ha,ba=110,function(t){for(;--t;)pa.push(pa.shift())}(++ba);const Ea=function(t,e){return ha[t-=0]};class _a extends r.View{constructor(t,e,n,o){super(t),this[Ea("0x2")]=null,this.commentThreadInputView=null,this.set("isActive",!1),this[Ea("0x16")](Ea("0xf"),e[Ea("0xf")]),this[Ea("0x6")](Ea("0xf")).to(e),this[Ea("0x16")](Ea("0x1f"),[]),this[Ea("0x16")]("isDirty",!1),this[Ea("0x16")](Ea("0xb"),!1),this[Ea("0x1")]=e,this[Ea("0xe")]=n,this._config=o,o[Ea("0x17")]?this[Ea("0x16")](Ea("0x21"),1):this._createCommentViews()}[Ea("0x1d")](){this[Ea("0x11")][Ea("0x1d")]()}[Ea("0x4")](){this.isDirty=!1,this[Ea("0x2")]&&this.commentsListView.destroy(),this[Ea("0x19")]&&this[Ea("0x19")][Ea("0x4")](),super[Ea("0x4")]()}_createCommentViews(){const{CommentsListView:t}=this[Ea("0x14")];this[Ea("0x2")]=new t(this[Ea("0xd")],this._model[Ea("0x9")],Object[Ea("0x18")]({CommentView:this[Ea("0x14")][Ea("0x10")]},this._config)),this[Ea("0x2")][Ea("0x3")](Ea("0x13")).to(this),this.commentsListView[Ea("0x3")]("updateComment").to(this),this[Ea("0x2")][Ea("0x6")](Ea("0xa")).to(this),this[Ea("0x16")](Ea("0x21"),this[Ea("0x2")].length+1),this[Ea("0x6")]("length").to(this[Ea("0x2")],Ea("0x21"),(t=>t+1)),this.commentThreadInputView=this[Ea("0x15")](),this.on(Ea("0x13"),(()=>this[Ea("0x1d")]())),this[Ea("0x6")](Ea("0x1b")).to(this[Ea("0x2")],Ea("0x8"),this[Ea("0x19")][Ea("0x1e")],Ea("0x1a"),((t,e)=>t||!!e))}[Ea("0x15")](){const{CommentThreadInputView:t}=this[Ea("0x14")],e=new t(this[Ea("0xd")],this[Ea("0xe")],this[Ea("0x14")][Ea("0x1c")]),n=e[Ea("0x1e")];return e[Ea("0x6")]("showInput").to(this,Ea("0xa"),this[Ea("0x1")].commentThread,Ea("0x12"),n,Ea("0x1a"),((t,e,n)=>!!n||t&&!e)),n.on("submit",((t,e)=>{this[Ea("0xc")](Ea("0x5"),e),n[Ea("0x20")][Ea("0x7")]("")})),n.on(Ea("0x0"),(()=>this.focus())),n[Ea("0x6")]("disabledSubmit").to(this[Ea("0x1")][Ea("0x9")],Ea("0x12")),e}}const ya=["push","description","acceptButton",'" title="',"</p>","_descriptionElement","ck-annotation__info-name","commentsListView","ck-suggestion__info-name","acceptSuggestion","descriptionParts","isActive","ck-suggestion__main","_createButton","createdAt","ck-annotation","bind","commentThreadInputView",'<span class="ck-suggestion-type">',"check","createElement","locale","content","div","innerHTML","map","discardButton","ck-suggestion--discard","_model","value","ck-suggestion__info","ck-comment__info-time","color","ck-suggestion--accept","formatDateTime","discardSuggestion","</span>","set","ck-suggestion-wrapper","render","ck-annotation__main","ck-suggestion-","userView",'<span class="ck-suggestion-color" style="background-color: ',"Accept suggestion","querySelector","ck-suggestion","author","ck-suggestion--disabled-comments","type","ck-annotation__actions","cancel","_config","getTemplate","innerText","execute","ck-annotation__info-time","ck-annotation__content-wrapper","ck-suggestion__actions",".ck-annotation__content-wrapper","name","commentThread","ck-suggestion-wrapper--active","span"];var Ta,Ca;Ta=ya,Ca=320,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ka=function(t,e){return ya[t-=0]};class va extends _a{constructor(e,n,o,r){super(e,n,o,r),this[ka("0x25")](ka("0x31"),""),this[ka("0x10")](ka("0x31")).to(this,ka("0xa"),(t=>t&&t[0]?t[0][ka("0x31")]:"")),this[ka("0x10")](ka("0x1")).to(this,ka("0xa"),this,ka("0xb"),((t,e)=>{let n="";for(const e of t)n+="<p>"+Aa(e[ka("0x16")],e[ka("0x20")])+ka("0x4");return e?n:(0,s.trimHtml)(n,{limit:140})})),this[ka("0x5")]=null,this.acceptButton=this[ka("0xd")](kr(e,ka("0x2c")),t.icons[ka("0x13")],ka("0x21"),ka("0x9")),this[ka("0x1a")]=this[ka("0xd")](kr(e,"Discard suggestion"),t.icons[ka("0x33")],ka("0x1b"),ka("0x23")),this.userView=new s.UserView(e,this._model.author),this[ka("0x2a")].extendTemplate({attributes:{class:["ck-suggestion__user","ck-annotation__user"]}}),this.setTemplate(this[ka("0x35")]())}[ka("0x35")](){const t=this.bindTemplate,e={tag:"div",attributes:{class:[ka("0x26"),t.if(ka("0xb"),ka("0x3e")),t.to(ka("0x31"),(t=>ka("0x29")+t)),this._config.disableComments&&ka("0x30")],"data-suggestion-id":this[ka("0x1c")].id,"data-thread-id":this[ka("0x1c")][ka("0x3d")].id,"data-author-id":this[ka("0x1c")][ka("0x2f")].id,tabindex:-1},children:[{tag:ka("0x17"),attributes:{class:[ka("0x2e"),ka("0xf")]},children:[this[ka("0x2a")],{tag:ka("0x17"),attributes:{class:[ka("0xc"),ka("0x28")]},children:[{tag:ka("0x17"),attributes:{class:[ka("0x1e"),"ck-annotation__info"]},children:[{tag:ka("0x3f"),children:[{text:this[ka("0x2a")][ka("0x3c")]}],attributes:{class:[ka("0x8"),ka("0x6")]}},{tag:"time",attributes:{datetime:t.to(ka("0xe")),class:[ka("0x1f"),ka("0x38")]},children:[{text:t.to(ka("0xe"),(t=>this[ka("0x34")][ka("0x22")](t)))}]}]},{tag:ka("0x17"),attributes:{class:[ka("0x3a"),ka("0x32")]},children:[this[ka("0x2")],this[ka("0x1a")]]},{tag:ka("0x17"),attributes:{class:[ka("0x39")]}}]}]}]};return this[ka("0x7")]&&this[ka("0x11")]&&e.children[ka("0x0")](this[ka("0x7")],this[ka("0x11")]),e}[ka("0x27")](){super.render(),this[ka("0x5")]=this.element[ka("0x2d")](ka("0x3b")),this[ka("0x5")][ka("0x18")]=this[ka("0x1")],this.on("change:description",((t,e,n)=>{this[ka("0x5")][ka("0x18")]=n}))}[ka("0xd")](t,e,n,o){const s=new r.ButtonView(this[ka("0x15")]);return s[ka("0x25")]({label:t,icon:e,tooltip:!0}),s.extendTemplate({attributes:{class:n}}),s.on(ka("0x37"),(()=>{this.fire(o,this[ka("0x1c")].id)})),s[ka("0x10")]("isEnabled").to(this),s}}function Aa(t,e){let n="";return n+=t.split("*")[ka("0x19")](((t,e)=>e%2!=0?ka("0x12")+Ra(t)+ka("0x24"):Ra(t))).join(""),e&&(n+=ka("0x2b")+e[ka("0x1d")]+ka("0x3")+e.title+'"></span>'),n}function Ra(t){const e=document[ka("0x14")]("span");return e[ka("0x36")]=t,e[ka("0x18")]}var Ia=n(596),Sa=n.n(Ia);const wa=["remove","commands","execute","trackChanges","PendingActions","view","suggestionUnloaded","values","value","getAllAdjacentSuggestions","has","discardAllSuggestions","buttonView","trackChanges.SuggestionThreadView","switchbutton","type","comments.maxCommentCharsWhenCollapsed","CommentsUI","from","delete","define","commandName","source","unbind","actionView","filter","focus","cancel","listenTo","getMarkerNames","get","change:activeAnnotations","activeMarkers","innerView","change:previous","getJoined","_descriptionFactory","TrackChangesEditing","keys","locale","isOn","getDescriptions","discardSelectedSuggestions","_disableComments","_destroyController","separator","length","refreshSelectedViews","clear","destroy","model","Track changes","bind","plugins","push","some","Annotations","comments.maxCommentsWhenCollapsed","getFirstMarker","head","_debouncedHandlers","descriptionParts","Accept all suggestions","isEnabled","isMultiRange","isDirty","getRanges","suggestion-","getContainedElement","getRange","arrowView","config","EditorAnnotations","SuggestionThreadView","set","getSuggestion","pluginName","CommentsRepository","_suggestionToController","editing","add","trackChanges.disableComments","editor","comments.editorConfig","init","button","toMany","stopListening","previous","commentThread","acceptSelectedSuggestions","addSourceCollector","_viewToController","_createUIButton","map","PENDING_ACTION_SUGGESTION","getFirstRange","getByInnerView","_initializeController","_updateController","createAnnotationView","requires","reduce","toViewElement","Discard all selected suggestions","isInContent","discardSuggestion","comments"];var Ma,Na;Ma=wa,Na=212,function(t){for(;--t;)Ma.push(Ma.shift())}(++Na);const La=function(t,e){return wa[t-=0]};class Oa extends t.Plugin{static get[La("0x69")](){return[na,s.Users,La("0x51"),La("0x3c"),La("0x4c")]}static get[La("0x50")](){return"TrackChangesUI"}constructor(t){super(t),this._suggestionToController=new Map,this[La("0x60")]=new Map,this[La("0x40")]=new Map;const e=this[La("0x56")][La("0x4b")];e[La("0x18")](La("0x11"),va),e.define(La("0x55"),!1),this._disableComments=e.get("trackChanges.disableComments")}[La("0x58")](){const t=this.editor,e=t[La("0x39")][La("0x22")](na),n=t[La("0x39")][La("0x22")](La("0x3c")),o=t[La("0x39")].get(La("0x4c")),r=t[La("0x39")].get(La("0x51"));t.ui.componentFactory[La("0x54")](La("0x7"),(t=>this._createUIButton(t))),o[La("0x5f")]((()=>{const t=[];for(const[e,n]of Array[La("0x16")](this[La("0x52")])){const o=e[La("0xd")](),r=[];for(const t of o){if(!t.isInContent)continue;if(t[La("0x44")]){r[La("0x3a")](...t[La("0x46")]());continue}const e=t[La("0x64")]();if(r[La("0x32")]>0){const t=r[0][La("0x27")](e);if(t){r[0]=t;continue}}r[La("0x3a")](e)}t[La("0x3a")]([n[La("0x9")],r])}return t})),this[La("0x20")](e,"suggestionLoaded",((t,e)=>{let n=!1;const r=O((t=>{n||t?n&&t&&(this[La("0x30")](e),o[La("0x33")](),n=!1):(this[La("0x66")](e),o[La("0x33")](),n=!0)}),10);this[La("0x40")][La("0x4e")](e,r),this.listenTo(e,La("0x26"),((t,n,o,s)=>{e[La("0x1")]&&(null==o?(this[La("0x67")](s[La("0x3f")]),r(!1)):(this[La("0x67")](o[La("0x3f")]),r(!0)))})),null===e[La("0x5c")]?r(!1):this[La("0x67")](e[La("0x3f")])})),this[La("0x20")](e,La("0xa"),((t,e,n)=>{this[La("0x5b")](e,La("0x26")),this._debouncedHandlers.get(e)[La("0x1f")](),this[La("0x40")][La("0x17")](e);const o=n?n[La("0x3f")]:e,r=this[La("0x52")][La("0x22")](o);null!==n&&this[La("0x67")](o),null===n&&r&&this._destroyController(e)})),this[La("0x20")](e,"suggestionChanged",((t,e)=>{this[La("0x67")](e)})),this[La("0x20")](n,La("0x23"),((t,n,o)=>{const r=Array[La("0x16")](o,(t=>t[La("0x25")]))[La("0x1d")]((t=>this[La("0x60")][La("0xe")](t))),s=[];for(const t of r){const e=this[La("0x60")][La("0x22")](t)[La("0x36")][La("0xd")]();s.push(...e[La("0x6a")](((t,e)=>[...t,...e[La("0x21")]()]),[]))}e[La("0x24")]=s})),this[La("0x20")](r,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e.hasSuggestion(n))return;const r=e[La("0x4f")](n);this[La("0x52")][La("0x22")](r).view[La("0x1e")]()}),{priority:"lowest"})}[La("0x61")](t){const n=(0,r.createDropdown)(t,r.SplitButtonView),o=this[La("0x56")].commands[La("0x22")]("trackChanges"),s=kr(t,La("0x37"));n[La("0x10")][La("0x4e")]({tooltip:s,label:s,icon:Sa()}),n[La("0x10")][La("0x38")]("isOn").to(o,La("0xc")),n[La("0x10")].on("execute",(()=>o[La("0x6")]()));const i=new e.Collection,x=[{type:La("0x12"),model:{withText:!0,label:s,commandName:"trackChanges"}},{type:La("0x31")},{type:La("0x59"),model:{withText:!0,label:kr(t,La("0x42")),commandName:"acceptAllSuggestions"}},{type:La("0x59"),model:{withText:!0,label:kr(t,"Accept all selected suggestions"),commandName:La("0x5e")}},{type:La("0x59"),model:{withText:!0,label:kr(t,"Discard all suggestions"),commandName:La("0xf")}},{type:"button",model:{withText:!0,label:kr(t,La("0x0")),commandName:La("0x2e")}}];for(const t of x){const e={type:t[La("0x13")]};if(t[La("0x36")]){const n=new r.Model(t.model),o=this[La("0x56")][La("0x5")][La("0x22")](n[La("0x19")]);n.bind(La("0x2c"),"isEnabled").to(o,La("0xc"),La("0x43")),e.model=n}i.add(e)}(0,r.addListToDropdown)(n,i);const a=x[La("0x1d")]((t=>null!=t[La("0x36")]))[La("0x62")]((t=>this[La("0x56")][La("0x5")][La("0x22")](t[La("0x36")][La("0x19")])));return n[La("0x10")].actionView[La("0x1b")](La("0x43")),n[La("0x10")][La("0x4a")][La("0x1b")](La("0x43")),n[La("0x10")][La("0x1c")][La("0x38")](La("0x43")).to(o,La("0x43")),n[La("0x10")][La("0x4a")][La("0x38")](La("0x43"))[La("0x5a")](a,La("0x43"),((...t)=>t[La("0x3b")]((t=>t)))),n.on(La("0x6"),(t=>this.editor.execute(t[La("0x1a")][La("0x19")]))),n}[La("0x66")](t){const e=this[La("0x56")],n=e[La("0x4b")],o=e[La("0x39")][La("0x22")]("Annotations"),r=e[La("0x39")][La("0x22")](La("0x51")),i=t[La("0xd")]()[La("0x1d")]((t=>t[La("0x1")])),x=e[La("0x39")][La("0x22")](s.Users).me,a=e[La("0x5")].get("acceptSuggestion"),c=e.commands.get(La("0x2")),l=n[La("0x22")](La("0x7"))[La("0x4d")],{CommentsListView:u,CommentThreadInputView:d}=e[La("0x39")].get(La("0x15")),g=new l(e[La("0x2b")],t,x,{disableComments:this[La("0x2f")],editorConfig:n[La("0x22")](La("0x57")),maxCommentsWhenCollapsed:n.get(La("0x3d")),maxThreadTotalWeight:n[La("0x22")]("comments.maxThreadTotalWeight"),maxCommentCharsWhenCollapsed:n[La("0x22")](La("0x14")),formatDateTime:(0,s.getDateTimeFormatter)(n[La("0x22")](La("0x2b"))),CommentView:n.get(La("0x3")).CommentView,CommentsListView:u,CommentThreadInputView:d}),f=r.createCommentThreadController(t[La("0x5d")],g),m=new ma(t,g,a,c,f);g[La("0x41")]=e.plugins[La("0x22")](La("0x29"))[La("0x28")][La("0x2d")](i),this[La("0x52")][La("0x4e")](t,m),this[La("0x60")].set(g,m);const h=o[La("0x68")](this[La("0x56")][La("0x2b")],g);h[La("0x38")](La("0x45")).to(g,La("0x45")),h[La("0x38")](La("0x32")).to(g),h.bind(La("0x13")).to(g,La("0x13"),(t=>La("0x47")+t));const p=o.createAnnotation({view:h,target:()=>{const t=i[0][La("0x3e")]();if(!t)return null;const n=t[La("0x49")]()[La("0x48")]();return n&&!e[La("0x53")].mapper[La("0x6b")](n)?null:(0,s.getMarkerDomElement)(e[La("0x53")],t)||null},type:()=>La("0x47")+m[La("0x9")][La("0x13")]});o[La("0x54")](p);const b=e[La("0x39")][La("0x22")](La("0x8"));let E;g.on("change:isDirty",((t,e,n)=>{n?E=b.add(kr(this[La("0x56")][La("0x2b")],La("0x63"))):(b[La("0x4")](E),E=null)}))}[La("0x30")](t){const e=this[La("0x56")][La("0x39")][La("0x22")]("Annotations"),n=this[La("0x52")].get(t),o=n.view,r=e[La("0x65")](o);r&&e[La("0x4")](r),this[La("0x52")][La("0x17")](t),this[La("0x60")][La("0x17")](o),n.destroy(),o[La("0x35")]()}_updateController(t){if(!t[La("0x1")]||!this[La("0x52")][La("0xe")](t))return;const e=this[La("0x56")][La("0x39")][La("0x22")](La("0x29")),n=this._suggestionToController.get(t),o=t[La("0xd")]();n[La("0x9")][La("0x41")]=e[La("0x28")].getDescriptions(o)}destroy(){super.destroy();for(const t of this[La("0x52")][La("0x2a")]())this[La("0x30")](t);for(const t of this._debouncedHandlers[La("0xb")]())t[La("0x1f")]();this[La("0x40")][La("0x34")]()}}var Fa,Pa,Da=["addSuggestion","pluginName","adapter","getSuggestions","plugins","Comments","get","editor","getSuggestion","TrackChanges"];Fa=Da,Pa=492,function(t){for(;--t;)Fa.push(Fa.shift())}(++Pa);var ja=function(t,e){return Da[t-=0]};class Ba extends t.Plugin{static get requires(){return[na,Oa,ja("0x3")]}static get[ja("0x9")](){return ja("0x7")}set[ja("0x0")](t){this[ja("0x5")].plugins[ja("0x4")](na)[ja("0x0")]=t}get[ja("0x0")](){return this[ja("0x5")][ja("0x2")][ja("0x4")](na)[ja("0x0")]}[ja("0x8")](t){return this[ja("0x5")][ja("0x2")][ja("0x4")](na).addSuggestionData(t)}[ja("0x1")](t){return this.editor[ja("0x2")][ja("0x4")](na).getSuggestions(t)}[ja("0x6")](t){return this.editor[ja("0x2")][ja("0x4")](na).getSuggestion(t)}}const Ua=["config","getRootNames","createDocumentFragment","context","TrackChangesEditing","trackChangesData.editorCreator","extraPlugins","requires","div","data","getSuggestions","trackChangesData","editorCreator","string","map","TrackChangesDataGetter","add","Autosave","RealTimeCollaborativeEditing","CommentsRepository","discardAllSuggestions","get","plugins","execute","includes","every","end","acceptAllSuggestions","function","from","push","editor","create","concat","track-changes-data-invalid-editor-creator","toolbar","constructor","addSuggestionData","Users","destroy","model","pluginName","TrackChangesData","result","useAnonymousUser","RealTimeCollaborativeTrackChanges","document","users","has","createElement","getDataWithAcceptedSuggestions","_adapter"];var Ha,Ga;Ha=Ua,Ga=428,function(t){for(;--t;)Ha.push(Ha.shift())}(++Ga);const za=function(t,e){return Ua[t-=0]},Va=["initialData",za("0x2b"),za("0x17")],Wa=[za("0x6"),"RealTimeCollaborativeComments",za("0x21"),za("0x5")];class Ka extends t.Plugin{static get[za("0x2f")](){return[na]}static get[za("0x1d")](){return za("0x1e")}init(){const t=this[za("0x13")];if(t[za("0x28")].define(za("0x2d"),(e=>t[za("0x18")][za("0x14")]("",e))),za("0x10")!=typeof t[za("0x28")][za("0x9")](za("0x33"))[za("0x0")])throw new e.CKEditorError(za("0x16"))}[za("0x26")](t){return $a(this.editor,!0,t)}getDataWithDiscardedSuggestions(t){return $a(this[za("0x13")],!1,t)}}class qa extends t.Plugin{static get pluginName(){return za("0x3")}init(){this[za("0x1f")]=za("0xe"),this[za("0x13")][za("0xa")][za("0x9")](za("0x7"))._adapter={getCommentThread:()=>new Promise((()=>{}))},this[za("0x13")].plugins[za("0x9")](za("0x2c"))[za("0x27")]=null}}async function $a(t,e,n){const o=function(t){const e={};for(const n of t[za("0x28")].names())Va.includes(n)||(e[n]=t[za("0x28")][za("0x9")](n));const n=t[za("0x18")].builtinPlugins||[],o=e[za("0x2e")]||[];delete e[za("0x2e")];const r=n[za("0x15")](e.plugins)[za("0x15")](o)[za("0x2")]((t=>za("0x1")==typeof t?n.find((e=>e.pluginName==t)):t)),s=Array[za("0x11")](new Set(r));return e.plugins=s.filter((t=>Xa(t,new Set))),e[za("0xa")][za("0x12")](qa),e.plugins[za("0x12")](na),e}(t),r=document[za("0x2a")](),s=t[za("0x28")][za("0x9")](za("0x33"))[za("0x0")],i=await s(o,(()=>function(t){const e=document[za("0x25")](za("0x30"));return t.appendChild(e),e}(r)));!function(t,e){const n=t[za("0x1c")][za("0x22")][za("0x29")]().reduce(((e,n)=>(e[n]=t.data[za("0x9")]({rootName:n}),e)),{}),o=t.plugins[za("0x9")](za("0x1a"))[za("0x23")][za("0x2")]((t=>({id:t.id}))),r=t[za("0xa")][za("0x9")](za("0x2c"))[za("0x32")]({skipNotAttached:!0,toJSON:!0}),s=e.plugins[za("0x9")](za("0x1a")),i=e[za("0xa")][za("0x9")]("TrackChangesEditing");for(const t of o)s.getUser(t.id)||s.addUser(t);s.me||s[za("0x20")]();for(const t of r)i[za("0x19")](t);e.data.set(n)}(t,i),i[za("0xb")](za(e?"0xf":"0x8"));const x=i[za("0x31")][za("0x9")](n);return await i[za("0x1b")](),x}function Xa(t,e){if(e[za("0x24")](t))return!0;e[za("0x4")](t);const n=za("0x10")==typeof t?t[za("0x1d")]||t.name:t;return(!n||!Wa[za("0xc")](n))&&(!t[za("0x2f")]||t[za("0x2f")][za("0xd")]((t=>Xa(t,e))))}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|
|
5
|
+
*/(()=>{var t={596:t=>{t.exports='\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'},417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var r=e[o];if(void 0!==r)return r.exports;var s=e[o]={exports:{}};return t[o](s,s.exports,n),s.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},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:()=>Fx,TrackChanges:()=>tc,TrackChangesData:()=>ac});var t=n(704),e=n(209),r=n(273),s=n(417);const i=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const a="object"==typeof global&&global&&global.Object===Object&&global;var x="object"==typeof self&&self&&self.Object===Object&&self;const c=a||x||Function("return this")();const l=function(){return c.Date.now()};var u=/\s/;const d=function(t){for(var e=t.length;e--&&u.test(t.charAt(e)););return e};var g=/^\s+/;const f=function(t){return t?t.slice(0,d(t)+1).replace(g,""):t};const m=c.Symbol;var h=Object.prototype,p=h.hasOwnProperty,b=h.toString,E=m?m.toStringTag:void 0;const _=function(t){var e=p.call(t,E),n=t[E];try{t[E]=void 0;var o=!0}catch(t){}var r=b.call(t);return o&&(e?t[E]=n:delete t[E]),r};var y=Object.prototype.toString;const T=function(t){return y.call(t)};var C=m?m.toStringTag:void 0;const k=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":C&&C in Object(t)?_(t):T(t)};const v=function(t){return null!=t&&"object"==typeof t};const A=function(t){return"symbol"==typeof t||v(t)&&"[object Symbol]"==k(t)};var R=/^[-+]0x[0-9a-f]+$/i,S=/^0b[01]+$/i,I=/^0o[0-7]+$/i,w=parseInt;const M=function(t){if("number"==typeof t)return t;if(A(t))return NaN;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=f(t);var n=S.test(t);return n||I.test(t)?w(t.slice(2),n?2:8):R.test(t)?NaN:+t};var N=Math.max,L=Math.min;const O=function(t,e,n){var o,r,s,a,x,c,u=0,d=!1,g=!1,f=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function m(e){var n=o,s=r;return o=r=void 0,u=e,a=t.apply(s,n)}function h(t){return u=t,x=setTimeout(b,e),d?m(t):a}function p(t){var n=t-c;return void 0===c||n>=e||n<0||g&&t-u>=s}function b(){var t=l();if(p(t))return E(t);x=setTimeout(b,function(t){var n=e-(t-c);return g?L(n,s-(t-u)):n}(t))}function E(t){return x=void 0,f&&o?m(t):(o=r=void 0,a)}function _(){var t=l(),n=p(t);if(o=arguments,r=this,c=t,n){if(void 0===x)return h(c);if(g)return clearTimeout(x),x=setTimeout(b,e),m(c)}return void 0===x&&(x=setTimeout(b,e)),a}return e=M(e)||0,i(n)&&(d=!!n.leading,s=(g="maxWait"in n)?N(M(n.maxWait)||0,e):s,f="trailing"in n?!!n.trailing:f),_.cancel=function(){void 0!==x&&clearTimeout(x),u=0,o=c=r=x=void 0},_.flush=function(){return void 0===x?a:E(l())},_};var F=n(492),P=n(995);const D=["has","_disableUnsupportedCommands","_enabledCommands","refresh","_enableCommands","commands","clearForceDisabled","editor","forceDisabled","isEnabled"];var j,B;j=D,B=197,function(t){for(;--t;)j.push(j.shift())}(++B);const U=function(t,e){return D[t-=0]};class H extends t.Command{constructor(t,e){super(t),this._enabledCommands=e,this.value=!1,this[U("0x6")]()}refresh(){this[U("0x2")]=!0}execute(){this.value=!this.value,this.value?this[U("0x4")]():this[U("0x7")]()}_disableUnsupportedCommands(){for(const t of this[U("0x0")][U("0x8")].commands())t.affectsData&&!this[U("0x5")][U("0x3")](t)&&t[U("0x1")]("TrackChangesCommand")}[U("0x7")](){for(const t of this[U("0x0")][U("0x8")][U("0x8")]())t.affectsData&&!this[U("0x5")].has(t)&&t[U("0x9")]("TrackChangesCommand")}}const G=["_suggestions","plugins","track-changes-accept-suggestion-not-found","refresh","editor","get"];var V,z;V=G,z=359,function(t){for(;--t;)V.push(V.shift())}(++z);const W=function(t,e){return G[t-=0]};class K extends t.Command{constructor(t,e){super(t),this[W("0x1")]=e,this[W("0x4")]()}[W("0x4")](){this.isEnabled=!0}execute(t){const n=this._suggestions[W("0x0")](t);if(!n)throw new e.CKEditorError(W("0x3"),this);this[W("0x5")][W("0x2")][W("0x0")]("TrackChangesEditing").acceptSuggestion(n)}}const $=["editor","track-changes-discard-suggestion-not-found","execute","get","discardSuggestion","TrackChangesEditing","isEnabled","refresh","_suggestions","plugins"];var q,X;q=$,X=267,function(t){for(;--t;)q.push(q.shift())}(++X);const J=function(t,e){return $[t-=0]};class Q extends t.Command{constructor(t,e){super(t),this._suggestions=e,this[J("0x0")]()}[J("0x0")](){this[J("0x9")]=!0}[J("0x5")](t){const n=this[J("0x1")][J("0x6")](t);if(!n)throw new e.CKEditorError(J("0x4"),this);this[J("0x3")][J("0x2")][J("0x6")](J("0x8"))[J("0x7")](n)}}var Y,Z,tt=["type","deletion"];Y=tt,Z=364,function(t){for(;--t;)Y.push(Y.shift())}(++Z);var et=function(t,e){return tt[t-=0]};function nt(t){return t.sort(((t,e)=>"deletion"==t[et("0x0")]&&et("0x1")!=e.type?-1:et("0x1")!=t.type&&"deletion"==e[et("0x0")]?1:0))}const ot=["model","isInContent","editor","change","values","from","refresh","_suggestions","isEnabled","execute","_acceptSuggestionCommand","some"];var rt,st;rt=ot,st=158,function(t){for(;--t;)rt.push(rt.shift())}(++st);const it=function(t,e){return ot[t-=0]};class at extends t.Command{constructor(t,e,n){super(t),this[it("0x8")]=e,this[it("0x5")]=n,this[it("0x4")]()}[it("0x4")](){const t=this[it("0x8")];this.isEnabled=t[it("0x6")]&&Array[it("0x3")](this[it("0x5")].values())[it("0x9")]((t=>t[it("0xb")]))}[it("0x7")](){this[it("0x0")][it("0xa")][it("0x1")]((()=>{const t=nt(Array.from(this[it("0x5")][it("0x2")]()));for(const e of t)e[it("0xb")]&&this[it("0x8")][it("0x7")](e.id)}))}}const xt=["getMarkers","start","getRange","isMultiRange","isTouching","isIntersecting","end","isCollapsed","add","from"];var ct,lt;ct=xt,lt=381,function(t){for(;--t;)ct.push(ct.shift())}(++lt);const ut=function(t,e){return xt[t-=0]};function dt(t,e){const n=Array[ut("0x8")](t.getRanges()),o=new Set;for(const r of e)if(r.isInContent)for(const e of n)for(const n of r[ut("0x9")]()){const s=n[ut("0x1")]();(e[ut("0x4")](s)||t[ut("0x6")]&&!r[ut("0x2")]&&r.next&&s[ut("0x5")][ut("0x3")](e[ut("0x0")]))&&o[ut("0x7")](r)}return o}const gt=["editor","from","refresh","size","selection","execute","_suggestions","_selectedSuggestions","isEnabled","model","_acceptSuggestionCommand"];var ft,mt;ft=gt,mt=441,function(t){for(;--t;)ft.push(ft.shift())}(++mt);const ht=function(t,e){return gt[t-=0]};class pt extends t.Command{constructor(t,e,n){super(t),this[ht("0x9")]=e,this[ht("0x5")]=n,this[ht("0x6")]=new Set,this[ht("0x1")]()}[ht("0x1")](){const t=this._acceptSuggestionCommand,e=this[ht("0xa")][ht("0x8")].document[ht("0x3")],n=Array[ht("0x0")](this[ht("0x5")].values());this[ht("0x6")]=dt(e,n),this[ht("0x7")]=t[ht("0x7")]&&!!this[ht("0x6")][ht("0x2")]}[ht("0x4")](){this[ht("0xa")][ht("0x8")].change((()=>{const t=nt(Array[ht("0x0")](this[ht("0x6")]));for(const e of t)this[ht("0x9")][ht("0x4")](e.id)}))}}const bt=["editor","execute","model","isInContent","_suggestions","change","from","_discardSuggestionCommand","values","isEnabled","refresh","some"];var Et,_t;Et=bt,_t=163,function(t){for(;--t;)Et.push(Et.shift())}(++_t);const yt=function(t,e){return bt[t-=0]};class Tt extends t.Command{constructor(t,e,n){super(t),this[yt("0x0")]=e,this._suggestions=n,this[yt("0x3")]()}[yt("0x3")](){const t=this[yt("0x0")];this.isEnabled=t[yt("0x2")]&&Array[yt("0xb")](this[yt("0x9")][yt("0x1")]())[yt("0x4")]((t=>t[yt("0x8")]))}[yt("0x6")](){this[yt("0x5")][yt("0x7")][yt("0xa")]((()=>{for(const t of this[yt("0x9")][yt("0x1")]())t[yt("0x8")]&&this._discardSuggestionCommand[yt("0x6")](t.id)}))}}const Ct=["isEnabled","_suggestions","execute","change","editor","model","size","_discardSuggestionCommand","refresh","selection","values","_selectedSuggestions"];var kt,vt;kt=Ct,vt=447,function(t){for(;--t;)kt.push(kt.shift())}(++vt);const At=function(t,e){return Ct[t-=0]};class Rt extends t.Command{constructor(t,e,n){super(t),this[At("0x4")]=e,this._suggestions=n,this[At("0x8")]=new Set,this[At("0x5")]()}[At("0x5")](){const t=this._discardSuggestionCommand,e=this[At("0x1")].model.document[At("0x6")],n=Array.from(this[At("0xa")][At("0x7")]());this[At("0x8")]=dt(e,n),this[At("0x9")]=t.isEnabled&&!!this._selectedSuggestions[At("0x3")]}[At("0xb")](){this[At("0x1")][At("0x2")][At("0x0")]((()=>{for(const t of this[At("0x8")])this._discardSuggestionCommand[At("0xb")](t.id)}))}}const St=function(){this.__data__=[],this.size=0};const It=function(t,e){return t===e||t!=t&&e!=e};const wt=function(t,e){for(var n=t.length;n--;)if(It(t[n][0],e))return n;return-1};var Mt=Array.prototype.splice;const Nt=function(t){var e=this.__data__,n=wt(e,t);return!(n<0)&&(n==e.length-1?e.pop():Mt.call(e,n,1),--this.size,!0)};const Lt=function(t){var e=this.__data__,n=wt(e,t);return n<0?void 0:e[n][1]};const Ot=function(t){return wt(this.__data__,t)>-1};const Ft=function(t,e){var n=this.__data__,o=wt(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function Pt(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])}}Pt.prototype.clear=St,Pt.prototype.delete=Nt,Pt.prototype.get=Lt,Pt.prototype.has=Ot,Pt.prototype.set=Ft;const Dt=Pt;const jt=function(){this.__data__=new Dt,this.size=0};const Bt=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Ut=function(t){return this.__data__.get(t)};const Ht=function(t){return this.__data__.has(t)};const Gt=function(t){if(!i(t))return!1;var e=k(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const Vt=c["__core-js_shared__"];var zt,Wt=(zt=/[^.]+$/.exec(Vt&&Vt.keys&&Vt.keys.IE_PROTO||""))?"Symbol(src)_1."+zt:"";const Kt=function(t){return!!Wt&&Wt in t};var $t=Function.prototype.toString;const qt=function(t){if(null!=t){try{return $t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Xt=/^\[object .+?Constructor\]$/,Jt=Function.prototype,Qt=Object.prototype,Yt=Jt.toString,Zt=Qt.hasOwnProperty,te=RegExp("^"+Yt.call(Zt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const ee=function(t){return!(!i(t)||Kt(t))&&(Gt(t)?te:Xt).test(qt(t))};const ne=function(t,e){return null==t?void 0:t[e]};const oe=function(t,e){var n=ne(t,e);return ee(n)?n:void 0};const re=oe(c,"Map");const se=oe(Object,"create");const ie=function(){this.__data__=se?se(null):{},this.size=0};const ae=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var xe=Object.prototype.hasOwnProperty;const ce=function(t){var e=this.__data__;if(se){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return xe.call(e,t)?e[t]:void 0};var le=Object.prototype.hasOwnProperty;const ue=function(t){var e=this.__data__;return se?void 0!==e[t]:le.call(e,t)};const de=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=se&&void 0===e?"__lodash_hash_undefined__":e,this};function ge(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])}}ge.prototype.clear=ie,ge.prototype.delete=ae,ge.prototype.get=ce,ge.prototype.has=ue,ge.prototype.set=de;const fe=ge;const me=function(){this.size=0,this.__data__={hash:new fe,map:new(re||Dt),string:new fe}};const he=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const pe=function(t,e){var n=t.__data__;return he(e)?n["string"==typeof e?"string":"hash"]:n.map};const be=function(t){var e=pe(this,t).delete(t);return this.size-=e?1:0,e};const Ee=function(t){return pe(this,t).get(t)};const _e=function(t){return pe(this,t).has(t)};const ye=function(t,e){var n=pe(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function Te(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])}}Te.prototype.clear=me,Te.prototype.delete=be,Te.prototype.get=Ee,Te.prototype.has=_e,Te.prototype.set=ye;const Ce=Te;const ke=function(t,e){var n=this.__data__;if(n instanceof Dt){var o=n.__data__;if(!re||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Ce(o)}return n.set(t,e),this.size=n.size,this};function ve(t){var e=this.__data__=new Dt(t);this.size=e.size}ve.prototype.clear=jt,ve.prototype.delete=Bt,ve.prototype.get=Ut,ve.prototype.has=Ht,ve.prototype.set=ke;const Ae=ve;const Re=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const Se=function(){try{var t=oe(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const Ie=function(t,e,n){"__proto__"==e&&Se?Se(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var we=Object.prototype.hasOwnProperty;const Me=function(t,e,n){var o=t[e];we.call(t,e)&&It(o,n)&&(void 0!==n||e in t)||Ie(t,e,n)};const Ne=function(t,e,n,o){var r=!n;n||(n={});for(var s=-1,i=e.length;++s<i;){var a=e[s],x=o?o(n[a],t[a],a,n,t):void 0;void 0===x&&(x=t[a]),r?Ie(n,a,x):Me(n,a,x)}return n};const Le=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const Oe=function(t){return v(t)&&"[object Arguments]"==k(t)};var Fe=Object.prototype,Pe=Fe.hasOwnProperty,De=Fe.propertyIsEnumerable;const je=Oe(function(){return arguments}())?Oe:function(t){return v(t)&&Pe.call(t,"callee")&&!De.call(t,"callee")};const Be=Array.isArray;const Ue=function(){return!1};var He="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ge=He&&"object"==typeof module&&module&&!module.nodeType&&module,Ve=Ge&&Ge.exports===He?c.Buffer:void 0;const ze=(Ve?Ve.isBuffer:void 0)||Ue;var We=/^(?:0|[1-9]\d*)$/;const Ke=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&We.test(t))&&t>-1&&t%1==0&&t<e};const $e=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var qe={};qe["[object Float32Array]"]=qe["[object Float64Array]"]=qe["[object Int8Array]"]=qe["[object Int16Array]"]=qe["[object Int32Array]"]=qe["[object Uint8Array]"]=qe["[object Uint8ClampedArray]"]=qe["[object Uint16Array]"]=qe["[object Uint32Array]"]=!0,qe["[object Arguments]"]=qe["[object Array]"]=qe["[object ArrayBuffer]"]=qe["[object Boolean]"]=qe["[object DataView]"]=qe["[object Date]"]=qe["[object Error]"]=qe["[object Function]"]=qe["[object Map]"]=qe["[object Number]"]=qe["[object Object]"]=qe["[object RegExp]"]=qe["[object Set]"]=qe["[object String]"]=qe["[object WeakMap]"]=!1;const Xe=function(t){return v(t)&&$e(t.length)&&!!qe[k(t)]};const Je=function(t){return function(e){return t(e)}};var Qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ye=Qe&&"object"==typeof module&&module&&!module.nodeType&&module,Ze=Ye&&Ye.exports===Qe&&a.process;const tn=function(){try{var t=Ye&&Ye.require&&Ye.require("util").types;return t||Ze&&Ze.binding&&Ze.binding("util")}catch(t){}}();var en=tn&&tn.isTypedArray;const nn=en?Je(en):Xe;var on=Object.prototype.hasOwnProperty;const rn=function(t,e){var n=Be(t),o=!n&&je(t),r=!n&&!o&&ze(t),s=!n&&!o&&!r&&nn(t),i=n||o||r||s,a=i?Le(t.length,String):[],x=a.length;for(var c in t)!e&&!on.call(t,c)||i&&("length"==c||r&&("offset"==c||"parent"==c)||s&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Ke(c,x))||a.push(c);return a};var sn=Object.prototype;const an=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||sn)};const xn=function(t,e){return function(n){return t(e(n))}};const cn=xn(Object.keys,Object);var ln=Object.prototype.hasOwnProperty;const un=function(t){if(!an(t))return cn(t);var e=[];for(var n in Object(t))ln.call(t,n)&&"constructor"!=n&&e.push(n);return e};const dn=function(t){return null!=t&&$e(t.length)&&!Gt(t)};const gn=function(t){return dn(t)?rn(t):un(t)};const fn=function(t,e){return t&&Ne(e,gn(e),t)};const mn=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var hn=Object.prototype.hasOwnProperty;const pn=function(t){if(!i(t))return mn(t);var e=an(t),n=[];for(var o in t)("constructor"!=o||!e&&hn.call(t,o))&&n.push(o);return n};const bn=function(t){return dn(t)?rn(t,!0):pn(t)};const En=function(t,e){return t&&Ne(e,bn(e),t)};var _n="object"==typeof exports&&exports&&!exports.nodeType&&exports,yn=_n&&"object"==typeof module&&module&&!module.nodeType&&module,Tn=yn&&yn.exports===_n?c.Buffer:void 0,Cn=Tn?Tn.allocUnsafe:void 0;const kn=function(t,e){if(e)return t.slice();var n=t.length,o=Cn?Cn(n):new t.constructor(n);return t.copy(o),o};const vn=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const An=function(t,e){for(var n=-1,o=null==t?0:t.length,r=0,s=[];++n<o;){var i=t[n];e(i,n,t)&&(s[r++]=i)}return s};const Rn=function(){return[]};var Sn=Object.prototype.propertyIsEnumerable,In=Object.getOwnPropertySymbols;const wn=In?function(t){return null==t?[]:(t=Object(t),An(In(t),(function(e){return Sn.call(t,e)})))}:Rn;const Mn=function(t,e){return Ne(t,wn(t),e)};const Nn=function(t,e){for(var n=-1,o=e.length,r=t.length;++n<o;)t[r+n]=e[n];return t};const Ln=xn(Object.getPrototypeOf,Object);const On=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)Nn(e,wn(t)),t=Ln(t);return e}:Rn;const Fn=function(t,e){return Ne(t,On(t),e)};const Pn=function(t,e,n){var o=e(t);return Be(t)?o:Nn(o,n(t))};const Dn=function(t){return Pn(t,gn,wn)};const jn=function(t){return Pn(t,bn,On)};const Bn=oe(c,"DataView");const Un=oe(c,"Promise");const Hn=oe(c,"Set");const Gn=oe(c,"WeakMap");var Vn="[object Map]",zn="[object Promise]",Wn="[object Set]",Kn="[object WeakMap]",$n="[object DataView]",qn=qt(Bn),Xn=qt(re),Jn=qt(Un),Qn=qt(Hn),Yn=qt(Gn),Zn=k;(Bn&&Zn(new Bn(new ArrayBuffer(1)))!=$n||re&&Zn(new re)!=Vn||Un&&Zn(Un.resolve())!=zn||Hn&&Zn(new Hn)!=Wn||Gn&&Zn(new Gn)!=Kn)&&(Zn=function(t){var e=k(t),n="[object Object]"==e?t.constructor:void 0,o=n?qt(n):"";if(o)switch(o){case qn:return $n;case Xn:return Vn;case Jn:return zn;case Qn:return Wn;case Yn:return Kn}return e});const to=Zn;var eo=Object.prototype.hasOwnProperty;const no=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&eo.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const oo=c.Uint8Array;const ro=function(t){var e=new t.constructor(t.byteLength);return new oo(e).set(new oo(t)),e};const so=function(t,e){var n=e?ro(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var io=/\w*$/;const ao=function(t){var e=new t.constructor(t.source,io.exec(t));return e.lastIndex=t.lastIndex,e};var xo=m?m.prototype:void 0,co=xo?xo.valueOf:void 0;const lo=function(t){return co?Object(co.call(t)):{}};const uo=function(t,e){var n=e?ro(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const go=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return ro(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return so(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 uo(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 ao(t);case"[object Symbol]":return lo(t)}};var fo=Object.create;const mo=function(){function t(){}return function(e){if(!i(e))return{};if(fo)return fo(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const ho=function(t){return"function"!=typeof t.constructor||an(t)?{}:mo(Ln(t))};const po=function(t){return v(t)&&"[object Map]"==to(t)};var bo=tn&&tn.isMap;const Eo=bo?Je(bo):po;const _o=function(t){return v(t)&&"[object Set]"==to(t)};var yo=tn&&tn.isSet;const To=yo?Je(yo):_o;var Co="[object Arguments]",ko="[object Function]",vo="[object Object]",Ao={};Ao[Co]=Ao["[object Array]"]=Ao["[object ArrayBuffer]"]=Ao["[object DataView]"]=Ao["[object Boolean]"]=Ao["[object Date]"]=Ao["[object Float32Array]"]=Ao["[object Float64Array]"]=Ao["[object Int8Array]"]=Ao["[object Int16Array]"]=Ao["[object Int32Array]"]=Ao["[object Map]"]=Ao["[object Number]"]=Ao["[object Object]"]=Ao["[object RegExp]"]=Ao["[object Set]"]=Ao["[object String]"]=Ao["[object Symbol]"]=Ao["[object Uint8Array]"]=Ao["[object Uint8ClampedArray]"]=Ao["[object Uint16Array]"]=Ao["[object Uint32Array]"]=!0,Ao["[object Error]"]=Ao[ko]=Ao["[object WeakMap]"]=!1;const Ro=function t(e,n,o,r,s,a){var x,c=1&n,l=2&n,u=4&n;if(o&&(x=s?o(e,r,s,a):o(e)),void 0!==x)return x;if(!i(e))return e;var d=Be(e);if(d){if(x=no(e),!c)return vn(e,x)}else{var g=to(e),f=g==ko||"[object GeneratorFunction]"==g;if(ze(e))return kn(e,c);if(g==vo||g==Co||f&&!s){if(x=l||f?{}:ho(e),!c)return l?Fn(e,En(x,e)):Mn(e,fn(x,e))}else{if(!Ao[g])return s?e:{};x=go(e,g,c)}}a||(a=new Ae);var m=a.get(e);if(m)return m;a.set(e,x),To(e)?e.forEach((function(r){x.add(t(r,n,o,r,e,a))})):Eo(e)&&e.forEach((function(r,s){x.set(s,t(r,n,o,s,e,a))}));var h=d?void 0:(u?l?jn:Dn:l?bn:gn)(e);return Re(h||e,(function(r,s){h&&(r=e[s=r]),Me(x,s,t(r,n,o,s,e,a))})),x};const So=function(t){return Ro(t,5)};var Io=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wo=/^\w*$/;const Mo=function(t,e){if(Be(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!A(t))||(wo.test(t)||!Io.test(t)||null!=e&&t in Object(e))};function No(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,r=e?e.apply(this,o):o[0],s=n.cache;if(s.has(r))return s.get(r);var i=t.apply(this,o);return n.cache=s.set(r,i)||s,i};return n.cache=new(No.Cache||Ce),n}No.Cache=Ce;const Lo=No;var Oo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fo=/\\(\\)?/g;const Po=function(t){var e=Lo(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(Oo,(function(t,n,o,r){e.push(o?r.replace(Fo,"$1"):n||t)})),e}));const Do=function(t,e){for(var n=-1,o=null==t?0:t.length,r=Array(o);++n<o;)r[n]=e(t[n],n,t);return r};var jo=m?m.prototype:void 0,Bo=jo?jo.toString:void 0;const Uo=function t(e){if("string"==typeof e)return e;if(Be(e))return Do(e,t)+"";if(A(e))return Bo?Bo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const Ho=function(t){return null==t?"":Uo(t)};const Go=function(t,e){return Be(t)?t:Mo(t,e)?[t]:Po(Ho(t))};const Vo=function(t){if("string"==typeof t||A(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const zo=function(t,e,n,o){if(!i(t))return t;for(var r=-1,s=(e=Go(e,t)).length,a=s-1,x=t;null!=x&&++r<s;){var c=Vo(e[r]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(r!=a){var u=x[c];void 0===(l=o?o(u,c,x):void 0)&&(l=i(u)?u:Ke(e[r+1])?[]:{})}Me(x,c,l),x=x[c]}return t};const Wo=function(t,e,n){return null==t?t:zo(t,e,n)};const Ko=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const $o=function(t){return this.__data__.has(t)};function qo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Ce;++e<n;)this.add(t[e])}qo.prototype.add=qo.prototype.push=Ko,qo.prototype.has=$o;const Xo=qo;const Jo=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 Qo=function(t,e){return t.has(e)};const Yo=function(t,e,n,o,r,s){var i=1&n,a=t.length,x=e.length;if(a!=x&&!(i&&x>a))return!1;var c=s.get(t),l=s.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new Xo:void 0;for(s.set(t,e),s.set(e,t);++u<a;){var f=t[u],m=e[u];if(o)var h=i?o(m,f,u,e,t,s):o(f,m,u,t,e,s);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!Jo(e,(function(t,e){if(!Qo(g,e)&&(f===t||r(f,t,n,o,s)))return g.push(e)}))){d=!1;break}}else if(f!==m&&!r(f,m,n,o,s)){d=!1;break}}return s.delete(t),s.delete(e),d};const Zo=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const tr=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var er=m?m.prototype:void 0,nr=er?er.valueOf:void 0;const or=function(t,e,n,o,r,s,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!s(new oo(t),new oo(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return It(+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=Zo;case"[object Set]":var x=1&o;if(a||(a=tr),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=Yo(a(t),a(e),o,r,s,i);return i.delete(t),l;case"[object Symbol]":if(nr)return nr.call(t)==nr.call(e)}return!1};var rr=Object.prototype.hasOwnProperty;const sr=function(t,e,n,o,r,s){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:rr.call(e,l)))return!1}var u=s.get(t),d=s.get(e);if(u&&d)return u==e&&d==t;var g=!0;s.set(t,e),s.set(e,t);for(var f=i;++c<x;){var m=t[l=a[c]],h=e[l];if(o)var p=i?o(h,m,l,e,t,s):o(m,h,l,t,e,s);if(!(void 0===p?m===h||r(m,h,n,o,s):p)){g=!1;break}f||(f="constructor"==l)}if(g&&!f){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return s.delete(t),s.delete(e),g};var ir="[object Arguments]",ar="[object Array]",xr="[object Object]",cr=Object.prototype.hasOwnProperty;const lr=function(t,e,n,o,r,s){var i=Be(t),a=Be(e),x=i?ar:to(t),c=a?ar:to(e),l=(x=x==ir?xr:x)==xr,u=(c=c==ir?xr:c)==xr,d=x==c;if(d&&ze(t)){if(!ze(e))return!1;i=!0,l=!1}if(d&&!l)return s||(s=new Ae),i||nn(t)?Yo(t,e,n,o,r,s):or(t,e,x,n,o,r,s);if(!(1&n)){var g=l&&cr.call(t,"__wrapped__"),f=u&&cr.call(e,"__wrapped__");if(g||f){var m=g?t.value():t,h=f?e.value():e;return s||(s=new Ae),r(m,h,n,o,s)}}return!!d&&(s||(s=new Ae),sr(t,e,n,o,r,s))};const ur=function t(e,n,o,r,s){return e===n||(null==e||null==n||!v(e)&&!v(n)?e!=e&&n!=n:lr(e,n,o,r,t,s))};const dr=function(t,e){return ur(t,e)};const gr=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const fr=function(t,e){for(var n=0,o=(e=Go(e,t)).length;null!=t&&n<o;)t=t[Vo(e[n++])];return n&&n==o?t:void 0};const mr=function(t,e,n){var o=-1,r=t.length;e<0&&(e=-e>r?0:r+e),(n=n>r?r:n)<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var s=Array(r);++o<r;)s[o]=t[o+e];return s};const hr=function(t,e){return e.length<2?t:fr(t,mr(e,0,-1))};const pr=function(t,e){return e=Go(e,t),null==(t=hr(t,e))||delete t[Vo(gr(e))]};const br=function(t,e){return null==t||pr(t,e)},Er=["nodeAfter","onDiscard","removeMarkers","suggestion:","removeMarker","get","substr","push","removeAttribute","map","_onDiscard","getRange","hasComments","from","commentThread","next","getMarkerNames","getMarkers","head","type","addRange","addMarker","length","createdAt","clear","discard","author","isIntersecting","getAllAdjacentSuggestions","change","decorate","end","_onAccept","isInContent","onAttributesChange","getFirstRange","_onAttributesChange","addMarkerName","setAttribute","_markerNames","previous","getFirstMarker","filter","accept","getMultiRangeId","getItems","delete","subType","getRanges","start","set","data","split","isMultiRange","attributes","_saved","_model","toJSON"];var _r,yr;_r=Er,yr=138,function(t){for(;--t;)_r.push(_r.shift())}(++yr);const Tr=function(t,e){return Er[t-=0]};class Cr{constructor(t,e){this.id=e.id,this[Tr("0x37")]=e[Tr("0x37")],this.subType=e.subType||null,this[Tr("0x4")]=e[Tr("0x4")],this[Tr("0x1d")]=null,this[Tr("0x22")]=t,this._onAccept=e.onAccept,this[Tr("0x2e")]=e[Tr("0x25")],this[Tr("0xe")]=e[Tr("0xc")],this._markerNames=new Set,this.set(Tr("0x1"),null),this[Tr("0x1c")]("attributes",e.attributes||{}),this.set(Tr("0x12"),null),this[Tr("0x1c")](Tr("0x33"),null),this[Tr("0x1c")](Tr("0x32"),null),this[Tr("0x1c")](Tr("0x21"),!1),this[Tr("0x8")](Tr("0x15")),this.decorate("discard")}get head(){let t=this;for(;t.previous;)t=t.previous;return t}get[Tr("0x30")](){return!!this[Tr("0x32")]&&this[Tr("0x32")][Tr("0x0")]>0}get[Tr("0x1f")](){return 0!=this._markerNames.size&&6==Array[Tr("0x31")](this[Tr("0x11")])[0][Tr("0x1e")](":").length}get[Tr("0xb")](){return null!==this[Tr("0x13")]()}[Tr("0xf")](t){this._markerNames.add(t)}[Tr("0x34")](){return Array.from(this[Tr("0x11")])}[Tr("0x35")](){return this[Tr("0x34")]().map((t=>this[Tr("0x22")].markers[Tr("0x29")](t)))[Tr("0x14")]((t=>t))}[Tr("0x13")](){return this[Tr("0x35")]()[0]||null}[Tr("0x26")](){this[Tr("0x22")][Tr("0x7")]((t=>{for(const e of this[Tr("0x35")]())t[Tr("0x28")](e)})),this._markerNames[Tr("0x2")]()}[Tr("0x28")](t){this._model[Tr("0x7")]((e=>{e.removeMarker(t)})),this._markerNames[Tr("0x18")](t)}[Tr("0x38")](t){const e=Tr("0x27")+this[Tr("0x37")]+":"+this[Tr("0x19")]+":"+this.id+":"+this.author.id+":"+Cr[Tr("0x16")]();this[Tr("0xf")](e),this[Tr("0x22")].change((n=>{n[Tr("0x39")](e,{range:t,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(t){for(const e of this[Tr("0x1a")]())if(e[Tr("0x5")](t))return!0;return!1}[Tr("0x1a")](){return this[Tr("0x35")]()[Tr("0x2d")]((t=>t[Tr("0x2f")]()))}[Tr("0x17")](){return this[Tr("0x1a")]().reduce(((t,e)=>[...t,...e[Tr("0x17")]()]),[])}[Tr("0xd")](){return this.getFirstMarker().getRange()}getContainedElement(){const t=this[Tr("0x1a")]();if(1!=t[Tr("0x0")])return null;const e=t[0],n=e[Tr("0x1b")][Tr("0x24")],o=e[Tr("0x9")].nodeBefore;return n instanceof F.Element?n!=o?null:n:null}[Tr("0x15")](){this[Tr("0xa")](this[Tr("0x1a")](),this[Tr("0x1d")],this[Tr("0x20")]),this.removeMarkers()}[Tr("0x3")](){this[Tr("0x2e")](this[Tr("0x1a")](),this.data,this[Tr("0x20")]),this.removeMarkers()}[Tr("0x6")](){const t=[];let e=this[Tr("0x36")];for(;e;)t[Tr("0x2b")](e),e=e[Tr("0x33")];return t}[Tr("0x10")](t,e){const n=So(this[Tr("0x20")]);Wo(n,t,e),dr(n,this[Tr("0x20")])||(this[Tr("0x20")]=n,this[Tr("0xe")](n))}[Tr("0x2c")](t){const e=So(this[Tr("0x20")]);br(e,t),dr(e,this[Tr("0x20")])||(this[Tr("0x20")]=e,this[Tr("0xe")](this.attributes))}[Tr("0x23")](){return{id:this.id,type:this[Tr("0x19")]?this.type+":"+this[Tr("0x19")]:this.type,authorId:this[Tr("0x4")].id,createdAt:this.createdAt,hasComments:this.hasComments,data:this[Tr("0x1d")],attributes:this[Tr("0x20")]}}static[Tr("0x16")](){return(0,e.uid)()[Tr("0x2a")](1,5)}}function kr(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"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"})}}(0,e.mix)(Cr,e.ObservableMixin);const vr=["item","*Merge:* %0","addEmptyContainer","EmptyContainer","nextSibling","deletion","removeContainer","removeEmptyContainer","*Insert:* %0","*Remove:* %0","getWalker","quantity","isObject","element","type","data","registerDescriptionCallback","_locale","replace","$1 $2","textProxy","match","removeObject","ELEMENT_SPACE","previousSibling","end","isEmpty","_resolveDescriptionItems","pop","length","addObject","_addDescriptionItems","checkChild","softBreak","addContainer","REPLACE_TEXT","_schema","registerElementLabel","indexOf","name","elementEnd","start","Container","set","getItemLabel","add","function","push","Object","insertion","text","remove","isInContent","$text","_itemLabels","getFirstRange"];var Ar,Rr;Ar=vr,Rr=345,function(t){for(;--t;)Ar.push(Ar.shift())}(++Rr);const Sr=function(t,e){return vr[t-=0]};class Ir{constructor(t,e){this._customCallbacks=[],this._itemLabels=new Map,this._schema=t,this._locale=e}getDescriptions(t){const e=[];for(let n=0;n<t[Sr("0x14")];n++){const o=t[n];if(!o[Sr("0x2b")])continue;let r=!1;for(const t of this._customCallbacks){const n=t(o);if(n){n[Sr("0x5")]&&e[Sr("0x26")](n),r=!0;break}}if(!r){this[Sr("0x16")](e,o);const r=t[n+1];if(r&&!o[Sr("0x2e")]()[Sr("0x10")].isEqual(r[Sr("0x2e")]()[Sr("0x20")])){const t=e[e[Sr("0x14")]-1],n=Sr("0x28")==o.type?Sr("0x24"):Sr("0x2a");t&&Sr("0x29")==t.type&&(t[n]+="\n")}}}return this._resolveDescriptionItems(e)}[Sr("0x7")](t){this._customCallbacks[Sr("0x26")](t)}[Sr("0x1c")](t,e){this[Sr("0x2d")][Sr("0x22")](t,e)}[Sr("0x23")](t,e=1){const n=this[Sr("0x2d")].get(t)||t;return Sr("0x25")==typeof n?n(e):1!==e?e+" "+n+"s":""+n}[Sr("0x16")](t,e){const n=e[Sr("0x2e")]()[Sr("0x1")](),o=Sr("0x28")==e.type?Sr("0x24"):Sr("0x2a");for(const e of n){const r=e[Sr("0x2f")],s=t[t.length-1];if(r.is(Sr("0xb")))s&&s[Sr("0x5")].indexOf(Sr("0x21"))>-1&&t[Sr("0x13")](),s&&Sr("0x29")==s[Sr("0x5")]?s[o]+=r[Sr("0x6")]:t[Sr("0x26")]({type:"text",add:"add"==o?r.data:"",remove:Sr("0x2a")==o?r[Sr("0x6")]:""});else if(this[Sr("0x1b")].isObject(r)){if(s&&s[Sr("0x5")][Sr("0x1d")](Sr("0x21"))>-1&&t[Sr("0x13")](),Sr("0x1f")==e[Sr("0x5")])continue;s&&s[Sr("0x5")]==o+Sr("0x27")&&s[Sr("0x1e")]==r.name?s[Sr("0x2")]++:t[Sr("0x26")]({type:o+Sr("0x27"),name:r[Sr("0x1e")],quantity:1}),n.skip((t=>!("elementEnd"==t[Sr("0x5")]&&t[Sr("0x2f")]==r)))}else if(this[Sr("0x1b")][Sr("0x17")](r,Sr("0x2c"))||r.is(Sr("0x4"),Sr("0x18"))){if("add"==o&&"elementStart"==e[Sr("0x5")]||Sr("0x2a")==o&&Sr("0x1f")==e[Sr("0x5")])continue;if(s&&-1==s[Sr("0x5")][Sr("0x1d")](Sr("0x21"))){"text"==s[Sr("0x5")]&&(s[o]+="\n");continue}let n;if(n=Sr("0x24")==o?r[Sr("0x33")]&&!this[Sr("0x1b")][Sr("0x3")](r.nextSibling)?r[Sr("0x33")]:null:r[Sr("0xf")]&&!this[Sr("0x1b")].isObject(r[Sr("0xf")])?r.previousSibling:null,r[Sr("0x11")]||n&&n.isEmpty){const e=n&&n[Sr("0x11")]?n.name:r[Sr("0x1e")];s&&s[Sr("0x5")]==o+Sr("0x32")&&s.name==e?s.quantity++:t[Sr("0x26")]({type:o+Sr("0x32"),name:e,quantity:1})}else t[Sr("0x26")]({type:o+Sr("0x21"),name:r.name})}}}[Sr("0x12")](t){const e=this[Sr("0x8")],n=[];for(const o of t){switch(o[Sr("0x5")]){case Sr("0x29"):if(o.add=o[Sr("0x24")].replace(/(\S)\u000A+(\S)/g,Sr("0xa"))[Sr("0x9")](/\u000A/g,""),o[Sr("0x2a")]=o[Sr("0x2a")][Sr("0x9")](/(\S)\u000A+(\S)/g,Sr("0xa"))[Sr("0x9")](/\u000A/g,""),""!=o[Sr("0x24")]&&""!=o[Sr("0x2a")]){n[Sr("0x26")]({type:Sr("0x9"),content:kr(e,Sr("0x1a"),['"'+o[Sr("0x2a")]+'"','"'+o.add+'"'])});continue}if(null!=o.add[Sr("0xc")](/^ +$/)){n[Sr("0x26")]({type:Sr("0x28"),content:kr(e,Sr("0x37"),kr(e,"ELEMENT_SPACE",o[Sr("0x24")][Sr("0x14")]))});continue}if(null!=o.remove[Sr("0xc")](/^ +$/)){n[Sr("0x26")]({type:Sr("0x34"),content:kr(e,Sr("0x0"),kr(e,Sr("0xe"),o[Sr("0x2a")][Sr("0x14")]))});continue}if(""!=o.add){n.push({type:Sr("0x28"),content:kr(e,Sr("0x37"),'"'+o[Sr("0x24")]+'"')});continue}n.push({type:Sr("0x34"),content:kr(e,Sr("0x0"),'"'+o.remove+'"')});continue;case Sr("0x31"):case Sr("0x15"):n.push({type:Sr("0x28"),content:kr(e,Sr("0x37"),this[Sr("0x23")](o[Sr("0x1e")],o[Sr("0x2")]))});continue;case Sr("0x36"):case Sr("0xd"):n.push({type:Sr("0x34"),content:kr(e,"*Remove:* %0",this.getItemLabel(o.name,o[Sr("0x2")]))});continue;case Sr("0x19"):n[Sr("0x26")]({type:Sr("0x28"),content:kr(e,"*Split:* %0",this.getItemLabel(o[Sr("0x1e")],o.quantity))});continue;case Sr("0x35"):n[Sr("0x26")]({type:Sr("0x34"),content:kr(e,Sr("0x30"),this[Sr("0x23")](o[Sr("0x1e")],o[Sr("0x2")]))});continue}n[Sr("0x26")](o)}return n}}const wr=["right","getSelectedBlocks","registerDescriptionCallback","center","FORMAT_ALIGN_TO_LEFT","from","TrackChangesEditing","format","commandName","_descriptionFactory","commandParams","enableCommand","locale","checkAttribute","alignment","editor","justify","FORMAT_ALIGN_TO_RIGHT","value","document","get","schema","has","plugins","ltr","afterInit","AlignmentEditing","model","contentLanguageDirection"];var Mr,Nr;Mr=wr,Nr=479,function(t){for(;--t;)Mr.push(Mr.shift())}(++Nr);const Lr=function(t,e){return wr[t-=0]};class Or extends t.Plugin{[Lr("0xa")](){const t=this[Lr("0x0")],e=t[Lr("0x1a")];if(!t[Lr("0x8")][Lr("0x7")](Lr("0xb")))return;const n=t[Lr("0x8")][Lr("0x5")](Lr("0x14"));n[Lr("0x19")]("alignment",((e,o={})=>{let r=o.value;o.value||(r=Lr("0x9")===t.locale[Lr("0xd")]?"left":Lr("0xe"));const s=Array[Lr("0x13")](this[Lr("0x0")][Lr("0xc")][Lr("0x4")].selection[Lr("0xf")]()).filter((t=>function(t,e,n){const o=t.getAttribute(Lr("0x1c"))||null;return e[Lr("0x1b")](t,"alignment")&&n!=o}(t,this[Lr("0x0")].model[Lr("0x6")],r)));t[Lr("0xc")].change((()=>{for(const t of s)n.markBlockFormat(t,{commandName:Lr("0x1c"),commandParams:[{value:r}]})}))})),n[Lr("0x17")][Lr("0x10")]((t=>{const{data:n}=t;if(n&&Lr("0x1c")==n[Lr("0x16")]){const t=n[Lr("0x18")][0][Lr("0x3")];return{type:Lr("0x15"),content:kr(e,"*Format:* %0",function(t){switch(t){case"left":return kr(e,Lr("0x12"));case Lr("0xe"):return kr(e,Lr("0x2"));case Lr("0x11"):return kr(e,"FORMAT_ALIGN_TO_CENTER");case Lr("0x1"):return kr(e,"FORMAT_JUSTIFY_TEXT")}}(t))}}}))}}const Fr=["getItems","parent","bindElementToMarker","getCustomProperty","push","model","item","type","mapper","isLimit","addHighlight","schema","previousPosition","activeMarkers","element","isContent","markerRange","ck-suggestion-marker--active","hasAttribute","elementEnd","insert","name","includes","ck-suggestion-marker-","listItem","start","nextSibling","span","isAtEnd","toViewPosition","createRangeOn","toViewElement","listIndent","writer"];var Pr,Dr;Pr=Fr,Dr=212,function(t){for(;--t;)Pr.push(Pr.shift())}(++Dr);const jr=function(t,e){return Fr[t-=0]};function Br(t,e,n){const o=[];for(const r of e[jr("0x1a")]())r[jr("0xa")](t)&&o.push(n[jr("0x16")](r));return o}function Ur(t){const e=[];if(t.is(jr("0x6"),jr("0x10"))){let n=t[jr("0x12")];for(;n&&n.is(jr("0x6"),jr("0x10"))&&n.getAttribute(jr("0x18"))>0;)e[jr("0x1e")](n),n=n[jr("0x12")]}return e}function Hr(t,e,{showActiveMarker:n=!0}={}){const o=t.plugins.get("TrackChangesEditing");return(r,s,i)=>{if(!i.consumable.test(s.markerRange,r[jr("0xd")]))return;const a=s[jr("0x8")].getWalker(),x=s.markerRange[jr("0x11")],c=t[jr("0x1f")][jr("0x3")];let l=null,u=null,d=!1,g=!1;for(const t of a){const e=t[jr("0x20")];d=d||c[jr("0x7")](e);const n=i[jr("0x0")][jr("0x17")](e);if(n&&n[jr("0x1d")](jr("0x2")))return;jr("0xb")==t[jr("0x21")]&&c.isBlock(e)&&!c[jr("0x1")](e)&&(e[jr("0x12")]||x[jr("0x14")]?l&&l[jr("0x1b")]==e||(l=e,f(t[jr("0x4")]),g=!0):u=u||t.previousPosition)}function f(t){const r=i[jr("0x19")].createUIElement(jr("0x13"),{class:jr("0xf")+e}),a=i[jr("0x0")][jr("0x15")](t);n&&o[jr("0x5")][jr("0xe")](s.markerName)&&i.writer.addClass(jr("0x9"),r),i[jr("0x19")][jr("0xc")](a,r),i[jr("0x0")][jr("0x1c")](r,s.markerName)}d||g||!u||f(u)}}const Gr=["format","editor","commandParams","commandName","toLowerCase","model","plugins","FORMAT_SUBSCRIPT","bold","_descriptionFactory","StrikethroughEditing","*Format:* %0","ItalicEditing","SubscriptEditing","strikethrough","enableCommand","FORMAT_ITALIC","BoldEditing","FORMAT_SUPERSCRIPT","get","has","FORMAT_STRIKETHROUGH","underline","isCollapsed","UnderlineEditing","*Remove format:* %0","FORMAT_UNDERLINE","getRanges","FORMAT_BOLD","document","italic","code","from","forceValue","value"];var Vr,zr;Vr=Gr,zr=150,function(t){for(;--t;)Vr.push(Vr.shift())}(++zr);const Wr=function(t,e){return Gr[t-=0]},Kr=[Wr("0x7"),Wr("0x2"),Wr("0xe"),"CodeEditing",Wr("0x0"),Wr("0x3"),"SuperscriptEditing"];class $r extends t.Plugin{afterInit(){const t=this[Wr("0x1a")],e=t[Wr("0x1e")],n=t[Wr("0x1f")][Wr("0x9")]("TrackChangesEditing"),o=t.locale;for(const o of Kr){if(!t[Wr("0x1f")][Wr("0xa")](o))continue;const r=o.slice(0,-7)[Wr("0x1d")](),s=t.commands.get(r);n[Wr("0x5")](r,((t,o={})=>{const i=e[Wr("0x13")].selection;if(i[Wr("0xd")])return void t(o);const a=void 0!==o.forceValue?o[Wr("0x17")]:!s[Wr("0x18")];e.change((()=>{const t=Array[Wr("0x16")](i[Wr("0x11")]());for(const o of t){const t=a?[o]:Br(r,o,e);for(const e of t)n.markInlineFormat(e,{commandName:r,commandParams:[{forceValue:a}]})}}))}))}function r(t,e){n[Wr("0x22")].registerDescriptionCallback((n=>{const{data:r}=n;if(r&&r[Wr("0x1c")]===t)return r[Wr("0x1b")][0].forceValue?{type:Wr("0x19"),content:kr(o,Wr("0x1"),e)}:{type:Wr("0x19"),content:kr(o,Wr("0xf"),e)}}))}r(Wr("0x21"),kr(o,Wr("0x12"))),r(Wr("0x14"),kr(o,Wr("0x6"))),r(Wr("0xc"),kr(o,Wr("0x10"))),r(Wr("0x15"),kr(o,"FORMAT_CODE")),r(Wr("0x4"),kr(o,Wr("0xb"))),r("subscript",kr(o,Wr("0x20"))),r("superscript",kr(o,Wr("0x8")))}}const qr=["createPositionAfter","createPositionBefore","isObject","end","isTouching","push","createPositionAt","createRange"];var Xr,Jr;Xr=qr,Jr=314,function(t){for(;--t;)Xr.push(Xr.shift())}(++Jr);const Qr=function(t,e){return qr[t-=0]};function Yr(t,e){let n,o=0;const r=[],s=e.schema;for(;o<t.length;){const i=t[o],a=t[o+1];n||(n=e[Qr("0x7")](i)),Zr(e,i,a)||(r[Qr("0x3")](e[Qr("0x5")](n,s[Qr("0x0")](i)?e[Qr("0x6")](i):e[Qr("0x4")](i,Qr("0x1")))),n=null),o++}return r}function Zr(t,e,n){if(!n)return!1;const o=t[Qr("0x6")](e),r=t[Qr("0x7")](n);return o[Qr("0x2")](r)}const ts=["has","_descriptionFactory","registerDescriptionCallback","commandParams","*Format:* %0","from","model","editor","format","change","blockQuote","filter","checkChild","TrackChangesEditing","schema","$root","BlockQuoteEditing","getSelectedBlocks","name","afterInit","plugins","commands","get","forceValue","selection","value","parent"];var es,ns;es=ts,ns=469,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class rs extends t.Plugin{[os("0x9")](){const t=this[os("0x18")],e=t.locale;if(!t[os("0xa")][os("0x11")](os("0x6")))return;const n=t[os("0xa")][os("0xc")](os("0x3")),o=this[os("0x18")][os("0xb")].get(os("0x0"));n.enableCommand(os("0x0"),((e,r={})=>{const s=this[os("0x18")][os("0x17")].document[os("0xe")],i=r&&void 0!==r[os("0xd")]?r[os("0xd")]:!o[os("0xf")];let a=[];if(i){const e=Array[os("0x16")](s.getSelectedBlocks()).filter((t=>ss(t)||function(t,e){const n=e[os("0x2")](t[os("0x10")],os("0x0")),o=e[os("0x2")]([os("0x5"),os("0x0")],t);return n&&o}(t,this[os("0x18")][os("0x17")][os("0x4")])));a=Yr(e,t[os("0x17")])}else{const e=Array[os("0x16")](s[os("0x7")]())[os("0x1")]((t=>ss(t)));a=Yr(e,t[os("0x17")])}t.model[os("0x1a")]((()=>{for(const t of a)n.markBlockFormat(t,{commandName:os("0x0"),commandParams:[{forceValue:i}]})}))})),n[os("0x12")][os("0x13")]((t=>{const{data:n}=t;if(n&&os("0x0")==n.commandName){const t=kr(e,"ELEMENT_BLOCK_QUOTE");return n[os("0x14")][0][os("0xd")]?{type:os("0x19"),content:kr(e,os("0x15"),t)}:{type:os("0x19"),content:kr(e,"*Remove format:* %0",t)}}}))}}function ss(t){return os("0x0")==t.parent[os("0x8")]}const is=["enableCommand","editor","ckbox","get","commands","afterInit"];var as,xs;as=is,xs=461,function(t){for(;--t;)as.push(as.shift())}(++xs);const cs=function(t,e){return is[t-=0]};class ls extends t.Plugin{[cs("0x0")](){const t=this[cs("0x2")];t[cs("0x5")][cs("0x4")](cs("0x3"))&&t.plugins[cs("0x4")]("TrackChangesEditing")[cs("0x1")](cs("0x3"))}}const us=["has","checkChild","label","codeBlock","from","outdentCodeBlock","markBlockFormat","locale","language","plugins","getSelectedBlocks","registerDescriptionCallback","blockName","*Format:* %0","formatBlock","name","get","model","schema","config","commands","ELEMENT_CODE_BLOCK","rootElement","TrackChangesEditing","*Remove format:* %0","_descriptionFactory","parent","commandName","CodeBlock","document","selection","forceValue","change","languages","commandParams","enableCommand","filter","format","isLimit","afterInit"];var ds,gs;ds=us,gs=195,function(t){for(;--t;)ds.push(ds.shift())}(++gs);const fs=function(t,e){return us[t-=0]};class ms extends t.Plugin{[fs("0x4")](){const t=this.editor;if(!t[fs("0xe")][fs("0x5")](fs("0x21")))return;const e=t[fs("0xe")][fs("0x15")](fs("0x1c")),n=t[fs("0xc")],o=t[fs("0x18")][fs("0x15")]("codeBlock")[fs("0x26")],r=t[fs("0x19")].get(fs("0x8"));e[fs("0x0")]("indentCodeBlock"),e[fs("0x0")](fs("0xa")),e[fs("0x0")](fs("0x8"),((n,s={})=>{const i=t[fs("0x16")],a=t[fs("0x16")][fs("0x22")][fs("0x23")],x=s&&void 0!==s.forceValue?s[fs("0x24")]:!r.value;let c;s[fs("0xd")]||(s[fs("0xd")]=o[0].language),c=x?Array[fs("0x9")](a[fs("0xf")]())[fs("0x1")]((t=>{return hs(t)||(e=t,n=i[fs("0x17")],!e.is(fs("0x1b"))&&!n[fs("0x3")](e)&&n[fs("0x6")](e[fs("0x1f")],fs("0x8")));var e,n})):Array[fs("0x9")](a[fs("0xf")]())[fs("0x1")]((t=>hs(t)));const l=Yr(c,i);i[fs("0x25")]((()=>{for(const t of l)e[fs("0xb")](t,{commandName:fs("0x8"),commandParams:[{...s,forceValue:x}],formatGroupId:fs("0x11")})}))})),e[fs("0x1e")].registerElementLabel("codeBlock",(t=>kr(n,fs("0x1a"),t))),e._descriptionFactory[fs("0x10")]((t=>{const{type:e,data:r}=t;if(fs("0x13")==e&&r&&fs("0x8")==r[fs("0x20")]){const t=r.commandParams[0][fs("0xd")],e=o.find((e=>e.language===t))[fs("0x7")],s=n._t(e);return r[fs("0x27")][0].forceValue?{type:fs("0x2"),content:kr(n,fs("0x12"),kr(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:fs("0x2"),content:kr(n,fs("0x1d"),kr(n,fs("0x1a"),1))}}}))}}function hs(t){return fs("0x8")==t[fs("0x14")]}var ps,bs,Es=["get","plugins","addCommentThread","editor","TrackChangesEditing","init","requires","enableCommand"];ps=Es,bs=254,function(t){for(;--t;)ps.push(ps.shift())}(++bs);var _s=function(t,e){return Es[t-=0]};class ys extends t.Plugin{static get[_s("0x0")](){return["CommentsEditing"]}[_s("0x7")](){this[_s("0x5")][_s("0x3")][_s("0x2")](_s("0x6"))[_s("0x1")](_s("0x4"))}}var Ts=n(181);const Cs=["detach","markerName","createRange","markerNameToElements","selection","root","rootName","requires","document","model","downcastDispatcher","$graveyard","lock","batch","enqueueChange","getFirstRange","delete","start","end","modifySelection","high","options","removeMarker:suggestion:deletion","editor","buffer","unlock","addMarker:suggestion:deletion","createSelection","forward","fromRange","editing","unbindElementFromMarkerName","writer","deleteForward","init","uiElement","remove"];var ks,vs;ks=Cs,vs=349,function(t){for(;--t;)ks.push(ks.shift())}(++vs);const As=function(t,e){return Cs[t-=0]};class Rs extends t.Plugin{static get[As("0x1c")](){return[Ts.Delete]}[As("0x12")](){const t=this[As("0x7")],e=t.plugins.get("TrackChangesEditing");e.enableCommand(As("0x0"));const n=t.commands.get("deleteForward");e.enableCommand(As("0x11"),((e,o={})=>{const r=t[As("0x1e")][As("0xb")](t[As("0x1e")][As("0x1d")][As("0x19")]);r.isCollapsed&&t.model[As("0x3")](r,{direction:As("0xc"),unit:o.unit});const s=r[As("0x24")](),i=F.LiveRange[As("0xd")](s);let a;e(o),a=As("0x20")==i[As("0x1a")][As("0x1b")]?t[As("0x1e")][As("0x17")](s[As("0x1")]):t[As("0x1e")][As("0x17")](i[As("0x1")],i[As("0x2")]),i[As("0x15")](),t.model[As("0x23")](n[As("0x8")][As("0x22")],(t=>{n.buffer[As("0x21")](),t.setSelection(t[As("0x17")](a.end)),n[As("0x8")][As("0x9")]()}))})),t[As("0xe")][As("0x1f")].on(As("0xa"),Hr(t,"merge"),{priority:As("0x4")}),t.data[As("0x1f")].on(As("0xa"),((e,n,o)=>{o[As("0x5")].showSuggestionHighlights&&Hr(t,"merge",{showActiveMarker:!1})(e,n,o)}),{priority:As("0x4")}),t[As("0xe")][As("0x1f")].on(As("0x6"),((t,e,n)=>{const o=n.mapper[As("0x18")](e[As("0x16")]);if(o)for(const t of o)t.is(As("0x13"))&&(n.mapper[As("0xf")](t,e[As("0x16")]),n[As("0x10")][As("0x14")](t))}),{priority:"high"})}}var Ss=n(331);const Is=["ck-suggestion-marker-split","high","TrackChangesEditing","plugins","start","hasClass","detach","init","createRange","change","model","enter","selection","end","nextSibling","split","downcastDispatcher","writer","parent","setSelection","mapper","fromRange","get","schema","showSuggestionHighlights","document","getFirstPosition","markInsertion","editing","removeMarker:suggestion:insertion","editor","createPositionAt","remove","addMarker:suggestion:insertion","data"];var ws,Ms;ws=Is,Ms=154,function(t){for(;--t;)ws.push(ws.shift())}(++Ms);const Ns=function(t,e){return Is[t-=0]};class Ls extends t.Plugin{static get requires(){return[Ss.Enter]}[Ns("0x1c")](){const t=this[Ns("0x10")],e=t[Ns("0x18")][Ns("0x8")](Ns("0x17"));e.enableCommand(Ns("0x20"),(n=>{t[Ns("0x1f")][Ns("0x1e")]((o=>{const r=t[Ns("0x1f")][Ns("0xb")][Ns("0x21")],s=r[Ns("0xc")](),i=r.isCollapsed,a=F.LiveRange[Ns("0x7")](r.getFirstRange()),x=a[Ns("0x19")][Ns("0x4")],c=a.end[Ns("0x4")],l=!(a[Ns("0x19")].isAtStart&&a[Ns("0x22")].isAtEnd),u=x==c,d=!(t.model.schema.isLimit(x)||t[Ns("0x1f")][Ns("0x9")].isLimit(c))&&(i||l&&u);if(n(),d){const n=t[Ns("0x1f")][Ns("0x11")](s[Ns("0x4")][Ns("0x0")],0),r=o[Ns("0x1d")](s,n);e[Ns("0xd")](r)}else o[Ns("0x5")](o[Ns("0x1d")](a[Ns("0x22")]));a[Ns("0x1b")]()}))})),t[Ns("0xe")].downcastDispatcher.on(Ns("0x13"),Hr(t,Ns("0x1")),{priority:"high"}),t[Ns("0xe")][Ns("0x2")].on(Ns("0xf"),((t,e,n)=>{const o=n[Ns("0x6")].markerNameToElements(e.markerName);if(o)for(const t of o)t[Ns("0x1a")](Ns("0x15"))&&(n.mapper.unbindElementFromMarkerName(t,e.markerName),n[Ns("0x3")][Ns("0x12")](t))}),{priority:Ns("0x16")}),t[Ns("0x14")][Ns("0x2")].on("addMarker:suggestion:insertion",((e,n,o)=>{o.options[Ns("0xa")]&&Hr(t,Ns("0x1"),{showActiveMarker:!1})(e,n,o)}),{priority:Ns("0x16")})}}const Os=["title","FontBackgroundColorEditing","editor","afterInit","plugins","FontFamilyEditing","*Reset font color*","fontSize","label","format","get","model","fontColor","registerDescriptionCallback","*Reset font family*","find","config","fontBackgroundColor.colors","document","toLowerCase","*Reset font size*","_enableCommand","TrackChangesEditing","fontFamily","value","markInlineFormat","fontBackgroundColor","selection","FontColorEditing","commandName","FontSizeEditing","commandParams","fontSize.options","*Reset font background color*","*Set font background color:* %0","trim","change","*Set font size:* %0","enableCommand","*Set font color:* %0","has","normalizeSizeOptions","locale","getRanges"];var Fs,Ps;Fs=Os,Ps=199,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]},js=[{pluginName:Ds("0x7"),commandName:Ds("0x1c")},{pluginName:Ds("0x1a"),commandName:Ds("0x0")},{pluginName:Ds("0x5"),commandName:Ds("0x21")},{pluginName:Ds("0x16"),commandName:Ds("0x3")}];class Bs extends t.Plugin{[Ds("0x18")](){const t=this[Ds("0x17")].locale;for(const{pluginName:t,commandName:e}of js)this[Ds("0x17")][Ds("0x19")][Ds("0x11")](t)&&this[Ds("0x2a")](e);this[Ds("0x17")][Ds("0x19")][Ds("0x1f")](Ds("0x2b"))._descriptionFactory[Ds("0x22")]((e=>{const{data:n}=e;if(null!=n){if("fontSize"==n[Ds("0x6")]){const e=n[Ds("0x8")][0][Ds("0x1")];if(e){const n=this[Ds("0x17")].plugins[Ds("0x1f")]("FontSize")[Ds("0x12")](this.editor.config[Ds("0x1f")](Ds("0x9")))[Ds("0x24")]((t=>t[Ds("0x20")]==e))[Ds("0x15")],o=this[Ds("0x17")][Ds("0x13")]._t(n)[Ds("0x28")]();return{type:Ds("0x1e"),content:kr(t,Ds("0xe"),o)}}return{type:Ds("0x1e"),content:kr(t,Ds("0x29"))}}if(Ds("0x0")==n[Ds("0x6")]){const e=n[Ds("0x8")][0][Ds("0x1")];return e?{type:"format",content:kr(t,"*Set font family:* %0",e)}:{type:"format",content:kr(t,Ds("0x23"))}}if("fontColor"==n[Ds("0x6")]){const e=n[Ds("0x8")][0].value;if(e){const n=(0,r.normalizeColorOptions)(this[Ds("0x17")][Ds("0x25")][Ds("0x1f")]("fontColor.colors"))[Ds("0x24")]((t=>t.model==e));let o=e,s="";return n&&(o=n[Ds("0x1d")],s=t._t(o).toLowerCase()),{type:Ds("0x1e"),content:kr(t,Ds("0x10"),s)[Ds("0xc")](),color:{value:e,title:s||o}}}return{type:Ds("0x1e"),content:kr(t,Ds("0x1b"))}}if("fontBackgroundColor"==n[Ds("0x6")]){const e=n.commandParams[0][Ds("0x1")];if(e){const n=(0,r.normalizeColorOptions)(this[Ds("0x17")][Ds("0x25")][Ds("0x1f")](Ds("0x26"))).find((t=>t[Ds("0x20")]==e));let o=e,s="";return n&&(o=n[Ds("0x1d")],s=t._t(o)[Ds("0x28")]()),{type:Ds("0x1e"),content:kr(t,Ds("0xb"),s)[Ds("0xc")](),color:{value:e,title:s||o}}}return{type:Ds("0x1e"),content:kr(t,Ds("0xa"))}}}}))}_enableCommand(t){const e=this[Ds("0x17")];e.plugins.get(Ds("0x2b"))[Ds("0xf")](t,((n,o={})=>{const r=e[Ds("0x20")][Ds("0x27")][Ds("0x4")],s=o[Ds("0x1")];r.isCollapsed?n(o):e[Ds("0x20")][Ds("0xd")]((()=>{const n=Array.from(r[Ds("0x14")]());for(const o of n){const n=s?[o]:Br(t,o,e.model);for(const o of n)e[Ds("0x19")][Ds("0x1f")](Ds("0x2b"))[Ds("0x2")](o,{commandName:t,commandParams:[{value:s}]})}}))}))}}const Us=["selection","isObject","heading.options","filter","enableCommand","format","heading","document","markBlockFormat","*Change to:* %0","title","schema","from","TrackChangesEditing","formatBlock","blockName","locale","match","value","paragraph","_descriptionFactory","config","registerElementLabel","model","editor","change","parent","registerDescriptionCallback","get","commandName","ELEMENT_HEADING_CUSTOM","plugins","name"];var Hs,Gs;Hs=Us,Gs=300,function(t){for(;--t;)Hs.push(Hs.shift())}(++Gs);const Vs=function(t,e){return Us[t-=0]};class zs extends t.Plugin{afterInit(){const t=this[Vs("0x15")],e=t[Vs("0xd")],n=t[Vs("0x12")][Vs("0x19")](Vs("0x20"));if(!t[Vs("0x1c")].has("HeadingEditing"))return;const o=t[Vs("0x1c")].get(Vs("0xa"));o[Vs("0x1")](Vs("0x3"),((e,n)=>{const r=n[Vs("0xf")],s=Array[Vs("0x9")](this[Vs("0x15")][Vs("0x14")][Vs("0x4")][Vs("0x1e")].getSelectedBlocks())[Vs("0x0")]((t=>{return e=t,n=r,(o=this.editor.model[Vs("0x8")]).checkChild(e[Vs("0x17")],n)&&!o[Vs("0x1f")](e)&&e[Vs("0x1d")]!=n;var e,n,o}));t.model[Vs("0x16")]((()=>{for(const t of s)o[Vs("0x5")](t,{commandName:Vs("0x3"),commandParams:[n],formatGroupId:Vs("0xc")},Ur(t))}))}));for(const t of n)Vs("0x10")!=t[Vs("0x14")]&&o[Vs("0x11")][Vs("0x13")](t.model,(e=>{const n=Ws(t.model);return null!==n?r(e,n):s(e,t[Vs("0x7")])}));function r(t,n){return kr(e,"ELEMENT_HEADING",[t,n])}function s(t,n){return kr(e,Vs("0x1b"),[t,n])}o[Vs("0x11")][Vs("0x18")]((t=>{const{type:o,data:i}=t;if(Vs("0xb")==o&&i&&Vs("0x3")==i[Vs("0x1a")]){const t=i.commandParams[0][Vs("0xf")],o=Ws(t);if(null!==o)return{type:Vs("0x2"),content:kr(e,"*Change to:* %0",r(1,o))};const a=n.find((e=>e.model===t)).title;return{type:Vs("0x2"),content:kr(e,Vs("0x6"),s(1,a))}}}))}}function Ws(t){const e=t[Vs("0xe")](/^heading(\d+)$/);return e?e[1]:null}const Ks=["item","*Set highlight:* %0","toLowerCase","commandName","find","FORMAT_HIGHLIGHT","getRanges","color","_descriptionFactory","document","title","TrackChangesEditing","value","backward","getLastMatchingPosition","has","config","HighlightEditing","change","formatInline","locale","getFirstPosition","model","isCollapsed","plugins","highlight","editor","*Remove highlight*","createRange","selection","getAttribute","format"];var $s,qs;$s=Ks,qs=311,function(t){for(;--t;)$s.push($s.shift())}(++qs);const Xs=function(t,e){return Ks[t-=0]};class Js extends t.Plugin{afterInit(){const t=this[Xs("0x3")];if(!t.plugins[Xs("0x18")](Xs("0x1a")))return;const e=t[Xs("0x1")].get(Xs("0x14"));e.enableCommand("highlight",((n,o={})=>{const r=t[Xs("0x1f")][Xs("0x12")][Xs("0x6")],s=r[Xs("0x7")](Xs("0x2"));let i=o[Xs("0x15")],a=[];if(r[Xs("0x0")]){const e=r[Xs("0x1e")]();if(!r.hasAttribute("highlight"))return void n(o);{const n=t=>t[Xs("0x9")].getAttribute("highlight")===s,o=e.getLastMatchingPosition(n,{direction:Xs("0x16")}),r=e[Xs("0x17")](n);a=[t[Xs("0x1f")][Xs("0x5")](o,r)],i==s&&(i=null)}}else for(const e of r[Xs("0xf")]())i?a.push(e):a.push(...Br(Xs("0x2"),e,t[Xs("0x1f")]));t.model[Xs("0x1b")]((()=>{for(const t of a)e.markInlineFormat(t,{commandName:Xs("0x2"),commandParams:[{value:i}]})}))}));const n=t[Xs("0x1d")];e[Xs("0x11")].registerDescriptionCallback((e=>{const{type:o,data:r}=e;if(Xs("0x1c")==o&&r&&Xs("0x2")==r[Xs("0xc")]){const e=r.commandParams[0][Xs("0x15")];if(e){const o=t[Xs("0x19")].get("highlight.options")[Xs("0xd")]((t=>t[Xs("0x1f")]==e)),r=n._t(o[Xs("0x13")])[Xs("0xb")]();return{type:Xs("0x8"),content:kr(n,Xs("0xa"),r),color:{value:o[Xs("0x10")],title:o[Xs("0x13")]}}}return{type:Xs("0x8"),content:kr(n,Xs("0x4"),kr(n,Xs("0xe")))}}}))}}const Qs=["div","get","createPositionAt","plugins","ELEMENT_HORIZONTAL_LINE","locale","insert","horizontalLine","for","elementToStructure","addClass","has","registerElementLabel","createContainerElement","enableCommand","editor","dataDowncast","TrackChangesEditing","ck-horizontal-line","HorizontalLineEditing"];var Ys,Zs;Ys=Qs,Zs=169,function(t){for(;--t;)Ys.push(Ys.shift())}(++Zs);const ti=function(t,e){return Qs[t-=0]};class ei extends t.Plugin{afterInit(){const t=this[ti("0x6")];if(!t[ti("0xe")][ti("0x2")](ti("0xa")))return;t.plugins[ti("0xc")]("TrackChangesEditing")[ti("0x5")](ti("0x12"));const e=t[ti("0xe")][ti("0xc")](ti("0x8")),n=t[ti("0x10")];e._descriptionFactory[ti("0x3")](ti("0x12"),(t=>kr(n,ti("0xf"),t))),t.conversion[ti("0x13")](ti("0x7"))[ti("0x0")]({model:ti("0x12"),view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return;const o=e[ti("0x4")](ti("0xb")),r=e.createEmptyElement("hr");return e[ti("0x1")](ti("0x9"),o),e[ti("0x11")](e[ti("0xd")](o,0),r),o},converterPriority:"high"})}}const ni=["commandName","HtmlEmbed","*Change %0 content*","registerDescriptionCallback","markBlockFormat","format","rawHtml","cancel","document","ELEMENT_HTML_EMBED","value","htmlEmbed","enableCommand","getCustomProperty","element","rawHtmlApi","getSelectedElement","get","locale","has","model","_descriptionFactory","editor","TrackChangesEditing","selection","plugins","view","registerElementLabel"];var oi,ri;oi=ni,ri=397,function(t){for(;--t;)oi.push(oi.shift())}(++ri);const si=function(t,e){return ni[t-=0]};class ii extends t.Plugin{afterInit(){const t=this[si("0x11")];if(!t[si("0x14")][si("0xe")](si("0x18")))return;const e=t.plugins.get(si("0x12")),n=t[si("0xd")],o=t.editing[si("0x15")].document.selection;e[si("0x10")][si("0x16")](si("0x1"),(t=>kr(n,si("0x4"),t))),t[si("0x14")][si("0xc")](si("0x12"))[si("0x7")]("htmlEmbed",((n,r)=>{const s=t[si("0xf")],i=s[si("0x3")][si("0x13")];s.change((()=>{const t=function(t){const e=t[si("0xb")]();return e&&e.is(si("0x9"),si("0x1"))?t[si("0xb")]():null}(i);if(!t)return void n(null);const s=t.getAttribute(si("0x5"))||"";void 0!==r&&r!==s&&(e[si("0x1b")](t,{commandName:si("0x6"),commandParams:[r]}),o[si("0xb")]()[si("0x8")](si("0xa"))[si("0x2")]())}))})),e[si("0x10")][si("0x1a")]((t=>{const{data:e}=t;if(e&&si("0x6")==e[si("0x17")]){const t=kr(n,"ELEMENT_HTML_EMBED");return{type:si("0x0"),content:kr(n,si("0x19"),t)}}}))}}const ai=["registerCustomCallback","getNearestSelectionRange","getContainedElement","width","plugins","hasAttribute","resizeImage","join","toPrevious","ImageCaptionUtils","imageTypeInline","formatBlock","enableCommand","getAttribute","subType","discardSuggestion","newRange","locale","removeObject","shouldConvertImageType","getFirstRange","start","getChangedMarkers","imageBlock","end","imageTextAlternative","accept","change","ImageStyleEditing","previous","getCaptionFromImageModelElement","schema","filter","*Set image text alternative:* %0","registerDescriptionCallback","nodeAfter","createRangeOn","imageStyle","formatInline","registerElementLabel","imageCaption","author","getSuggestions","isCollapsed","ELEMENT_IMAGE","toLowerCase","Block image to inline image","caption","*Set image width:* %0","fromPosition","*Remove image text alternative*","ImageTextAlternativeEditing","normalizedStyles","getSuggestion","format","refresh","name","forEach","toggleImageCaption","imageStylePostApply","imageStylePreApply","_descriptionFactory","forward","commandReversedParams","*Format:* %0","commands","isBlockImage","title","imageTypeBlock","chain","insertion","side","value","markBlockFormat","find","_splitMarkerName","ELEMENT_INLINE_IMAGE","isIntersecting","getClosestSelectedImageElement","detach","Inline image to block image","uploadImage","getSuggestionCallback","discard","get","findIndex","isInlineImage","length","isBefore","next","afterInit","selection","FORMAT_SIDE_IMAGE","newValue","hasSuggestion","document","isInContent","has","ImageUtils","nodeBefore","head","isEqual","toNext","markInlineFormat","from","deletion","editor","ImageBlockEditing","ImageInlineEditing","type","_findSuggestions","model","element","commandParams","createRange","commandName","convertBlockImageToInline","_suggestionFactory","convertInlineImageToBlock"];var xi,ci;xi=ai,ci=445,function(t){for(;--t;)xi.push(xi.shift())}(++ci);const li=function(t,e){return ai[t-=0]};class ui extends t.Plugin{[li("0x2")](){const t=this[li("0x12")];if(!t[li("0x23")][li("0x9")]("ImageEditing"))return;const n=t[li("0x23")].get("TrackChangesEditing"),o=t[li("0x23")][li("0x73")](li("0xa")),r={},s=t[li("0x30")];if(n[li("0x2b")]("insertImage"),n[li("0x5c")][li("0x46")](li("0x36"),(t=>kr(s,li("0x4b"),t))),n[li("0x5c")][li("0x46")]("imageInline",(t=>kr(s,li("0x6b"),t))),n[li("0x5c")].registerElementLabel("caption",kr(s,"ELEMENT_CAPTION")),t[li("0x23")].has("ImageUploadEditing")&&n[li("0x2b")](li("0x70")),t[li("0x23")][li("0x9")](li("0x13"))&&t[li("0x23")][li("0x9")](li("0x14"))&&(n[li("0x2b")](li("0x29"),((e,r)=>{const s=o[li("0x6d")](t[li("0x17")][li("0x7")][li("0x3")]);t.model[li("0x3a")]((()=>{n[li("0x68")](s,{commandName:li("0x29"),commandParams:[r]},[],li("0x1c"))}))})),n[li("0x2b")]("imageTypeBlock",((e,r)=>{t[li("0x17")][li("0x3a")]((s=>{let i=o.getClosestSelectedImageElement(t[li("0x17")].document[li("0x3")]),a=s[li("0x43")](i);const x=F.LivePosition[li("0x50")](a.start,li("0x27")),c=F.LivePosition[li("0x50")](a[li("0x37")],li("0xe"));n.forceDefaultExecution((()=>e(r))),i=o[li("0x6d")](t.model[li("0x7")][li("0x3")]),a=s[li("0x43")](i);const l=s.createRange(x,c);x.detach(),c[li("0x6e")](),n[li("0x68")](i,{commandName:li("0x29")},[],li("0x1e")),l.start[li("0x0")](a[li("0x34")])&&n.markInsertion(s[li("0x1a")](l.start,a.start),"convertInlineImageToBlock"),a[li("0x37")][li("0x0")](l[li("0x37")])&&n.markInsertion(s[li("0x1a")](a.end,l[li("0x37")]),li("0x1e"))}))})),n._suggestionFactory[li("0x1f")](li("0x2a"),li("0x1e"),li("0x26"),(()=>{})),n[li("0x1d")][li("0x1f")](li("0x2a"),li("0x1e"),li("0x39"),(()=>{})),n[li("0x1d")][li("0x1f")](li("0x2a"),li("0x1e"),li("0x72"),n._suggestionFactory.getSuggestionCallback(li("0x2a"),"",li("0x39"))),n._suggestionFactory[li("0x1f")]("insertion",li("0x1e"),li("0x26"),(()=>{})),n[li("0x1d")].registerCustomCallback(li("0x65"),"convertInlineImageToBlock",li("0x72"),(([e])=>{const o=n[li("0x1d")][li("0x71")](li("0x65"),"",li("0x72"));let r=e[li("0x34")],s=e[li("0x37")];const i=t[li("0x17")][li("0x3e")][li("0x20")](r,"backward"),a=t[li("0x17")][li("0x3e")][li("0x20")](s,li("0x5d"));i[li("0x4a")]&&(r=i[li("0x34")]),a[li("0x4a")]&&(s=a[li("0x37")]),o([t[li("0x17")].createRange(r,s)])})),n[li("0x1d")].registerCustomCallback(li("0x2a"),li("0x1e"),li("0x64"),x),n._suggestionFactory.registerCustomCallback(li("0x65"),li("0x1e"),li("0x64"),x)),t.plugins.has("ImageCaptionEditing")&&(n[li("0x2b")](li("0x59"),((e,r)=>{const s=t[li("0x23")].get(li("0x28"));let i=o[li("0x6d")](t.model[li("0x7")][li("0x3")]),a=s[li("0x3d")](i);t.model[li("0x3a")]((()=>{if(a)return void n.markDeletion(t[li("0x17")][li("0x43")](a));const x=o[li("0x61")](i);e(r),i=o[li("0x6d")](t[li("0x17")].document.selection),a=s.getCaptionFromImageModelElement(i),n.markInsertion(t[li("0x17")].createRangeOn(a),x?null:li("0x47"))}))})),n[li("0x1d")][li("0x1f")]("insertion",li("0x47"),"chain",x)),t.plugins[li("0x9")]("ImageStyleEditing")){n.enableCommand(li("0x44"),((r,s)=>{const i=t[li("0x23")][li("0x73")]("Users").me,a=t[li("0x60")][li("0x73")](li("0x44"));let x=o.getClosestSelectedImageElement(t[li("0x17")].document.selection),c=t.model[li("0x43")](x),l=a.value;if(l==s.value)return;const u={commandName:"imageStyle",commandParams:[s],formatGroupId:(0,e.uid)()};t[li("0x17")][li("0x3a")]((()=>{if(n[li("0x49")]()[li("0x3f")]((t=>t[li("0x8")]&&i==t[li("0x48")]&&("formatBlock"==t[li("0x15")]||li("0x45")==t[li("0x15")])&&("imageStylePreApply"==t[li("0x2d")]||"imageStylePostApply"==t[li("0x2d")])&&t[li("0x33")]()[li("0xd")](c)))[li("0x58")]((t=>n[li("0x2e")](t[li("0xc")]))),x=o[li("0x6d")](t[li("0x17")][li("0x7")][li("0x3")]),c=t[li("0x17")].createRangeOn(x),a[li("0x56")](),t[li("0x60")][li("0x73")](li("0x29"))[li("0x56")](),t.commands[li("0x73")](li("0x63"))[li("0x56")](),l=a[li("0x67")],l!=s[li("0x67")])return o[li("0x75")](x)&&a[li("0x32")](s[li("0x67")],x)?(r(s),x=o[li("0x6d")](t[li("0x17")][li("0x7")][li("0x3")]),void n[li("0x68")](x,{...u,commandReversedParams:[{value:l||null}]},[],li("0x5b"))):void(o[li("0x61")](x)?n[li("0x68")](x,u,[],li("0x5a")):n[li("0xf")](c,u,"imageStylePostApply"))}))}));for(const e of t[li("0x23")].get(li("0x3b"))[li("0x53")])r[e[li("0x57")]]=e[li("0x62")][li("0x4c")]();n[li("0x1d")].registerCustomCallback(li("0x2a"),"imageStylePreApply",li("0x26"),(()=>{})),n._suggestionFactory[li("0x1f")]("formatBlock","imageStylePostApply",li("0x26"),(()=>{})),n[li("0x1d")][li("0x1f")](li("0x45"),li("0x5a"),li("0x26"),(()=>{})),n[li("0x1d")][li("0x1f")]("formatBlock",li("0x5b"),li("0x39"),(()=>{})),n[li("0x1d")].registerCustomCallback(li("0x2a"),li("0x5b"),li("0x72"),((t,e)=>{n[li("0x1d")][li("0x71")](li("0x2a"),"",li("0x39"))(t,{commandName:e.commandName,commandParams:e[li("0x5e")]})})),n[li("0x1d")][li("0x1f")](li("0x2a"),li("0x5b"),li("0x64"),x)}const i=[{type:li("0x2a"),subType:"imageStylePreApply"},{type:li("0x65"),subType:"imageCaption"},{type:li("0x2a"),subType:li("0x1e")},{type:"insertion",subType:li("0x1e")}];function a(t,e){const r=i.findIndex((({type:e,subType:n})=>t[li("0x15")]==e&&t[li("0x2d")]==n)),s=i[li("0x74")]((({type:t,subType:n})=>e.type==t&&e[li("0x2d")]==n));if(r<0||s<0)return!1;const a=t[li("0x33")](),x=e[li("0x33")]();if((0==r||1==r)&&2==s&&a[li("0x6c")](x))return!0;if(2==r&&3==s){const t=n[li("0x16")](a,li("0x65"))[li("0x3f")]((({suggestion:t,meta:e})=>e.isOwn&&"convertInlineImageToBlock"==t[li("0x2d")]));if(t[li("0x76")]>1&&x.end[li("0xd")](a.start))return!0;if(1==t[li("0x76")]&&(a[li("0x34")][li("0xd")](x[li("0x37")])||a[li("0x37")][li("0xd")](x[li("0x34")])))return!0}if(3==r&&3==s&&a[li("0x34")][li("0x0")](x.start)){const t=a[li("0x37")][li("0x42")],e=x.start[li("0xb")];return o[li("0x61")](t)&&t===e}return!1}function x(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[li("0x17")][li("0x7")].registerPostFixer((()=>{let e=!1;const r=Array[li("0x10")](t[li("0x17")][li("0x7")].differ[li("0x35")]());for(const{name:t,data:s}of r){const{group:r,type:i,subType:a,id:x}=n[li("0x6a")](t);if("suggestion"==r&&n[li("0x6")](x)){if(li("0x2a")==i&&(li("0x5b")==a||li("0x5a")==a)){const t=n[li("0x54")](x);if(s[li("0x2f")]){const r=t.getFirstRange()[li("0x21")]();if(o[li("0x61")](r))continue;n[li("0x2e")](t),e=!0}}if(li("0x65")==i&&li("0x47")==a&&!s[li("0x2f")]){const t=n[li("0x54")](x);t[li("0x1")]&&t[li("0x1")][li("0x8")]&&(n[li("0x2e")](t[li("0x1")]),e=!0)}}}return e})),t[li("0x23")][li("0x9")]("ImageResize")&&n.enableCommand(li("0x25"),((e,r)=>{const s=o.getClosestSelectedImageElement(t[li("0x17")].document[li("0x3")]);s[li("0x2c")](li("0x22"))!=r.width&&t.model.change((()=>{n[li("0x68")](s,{commandName:li("0x25"),commandParams:[r]})}))})),t[li("0x23")][li("0x9")](li("0x52"))&&n[li("0x2b")](li("0x38"),((e,r)=>{const s=o.getClosestSelectedImageElement(t.model[li("0x7")].selection);(s[li("0x24")]("alt")?s[li("0x2c")]("alt"):"")!=r[li("0x5")]&&t[li("0x17")][li("0x3a")]((()=>{n[li("0x68")](s,{commandName:li("0x38"),commandParams:[r]})}))})),n[li("0x5c")][li("0x41")]((t=>{if(i[li("0x69")]((({type:e,subType:n})=>t[li("0x15")]==e&&t.subType==n)))return t[li("0x3c")]?{}:void 0})),n._descriptionFactory[li("0x41")]((t=>{if(li("0x65")==t.type||li("0x11")==t.type){const e=t.getContainedElement();if(e&&e.is(li("0x18"),li("0x4e")))return{type:li("0x65")==t.type?"addObject":li("0x31"),name:e.name,quantity:1}}})),n[li("0x5c")][li("0x41")]((t=>li("0x2a")==t[li("0x15")]&&li("0x1e")==t[li("0x2d")]?{type:li("0x55"),content:li("0x6f")}:li("0x2a")==t[li("0x15")]&&li("0x1c")==t[li("0x2d")]?{type:li("0x55"),content:li("0x4d")}:void 0)),n[li("0x5c")][li("0x41")]((t=>{const{data:e}=t;if(e){if(li("0x44")==e[li("0x1b")]){const t=e[li("0x19")][0][li("0x67")];return n=li("0x66")===t?kr(s,li("0x4")):r[t]||t,{type:"format",content:kr(s,li("0x5f"),n)}}if(li("0x38")==e.commandName){const t=e[li("0x19")][0][li("0x5")];return t?{type:"format",content:kr(s,li("0x40"),'"'+t+'"')}:{type:li("0x55"),content:kr(s,li("0x51"))}}if(li("0x25")==e.commandName){const t=e[li("0x19")][0].width;return t?{type:li("0x55"),content:kr(s,li("0x4f"),t)}:{type:"format",content:kr(s,"*Reset image width*")}}}var n}))}}const di=["getSelectedBlocks","outdent","IndentBlock","getItems","model","has","filter","name","format","checkAttribute","getItemLabel","indentBlock","from","editor","enableCommand","change","locale","commandName","plugins","document","_descriptionFactory","registerDescriptionCallback","indent","blockIndent","afterInit","outdentBlock"];var gi,fi;gi=di,fi=142,function(t){for(;--t;)gi.push(gi.shift())}(++fi);const mi=function(t,e){return di[t-=0]};class hi extends t.Plugin{[mi("0xc")](){const t=this[mi("0x1")],e=t[mi("0x6")].get("TrackChangesEditing");t[mi("0x6")].has("IndentEditing")&&(e[mi("0x2")](mi("0xa")),e[mi("0x2")](mi("0xf")));const n=t[mi("0x4")];if(t[mi("0x6")][mi("0x13")](mi("0x10"))){for(const n of[mi("0x19"),mi("0xd")])e[mi("0x2")](n,(()=>{const o=Array[mi("0x0")](this[mi("0x1")][mi("0x12")][mi("0x7")].selection[mi("0xe")]())[mi("0x14")]((t=>this[mi("0x1")][mi("0x12")].schema[mi("0x17")](t,mi("0xb"))));t[mi("0x12")][mi("0x3")]((()=>{for(const t of o)e.markBlockFormat(t,{commandName:n,commandParams:[{value:""}],formatGroupId:mi("0x19")})}))}));e[mi("0x8")][mi("0x9")]((t=>{const{data:o}=t;if(!o)return;if(mi("0x19")!=o[mi("0x5")]&&mi("0xd")!=o[mi("0x5")])return;const r=t[mi("0x11")]()[0],s=e._descriptionFactory[mi("0x18")](r[mi("0x15")]);return mi("0x19")==o.commandName?{type:mi("0x16"),content:kr(n,"*Indent:* %0",s)}:mi("0xd")==o[mi("0x5")]?{type:"format",content:kr(n,"*Outdent:* %0",s)}:void 0}))}}}var pi,bi,Ei=["get","input","editor","init","enableCommand","requires"];pi=Ei,bi=371,function(t){for(;--t;)pi.push(pi.shift())}(++bi);var _i=function(t,e){return Ei[t-=0]};class yi extends t.Plugin{static get[_i("0x0")](){return[Ts.Input]}[_i("0x4")](){this[_i("0x3")].plugins[_i("0x1")]("TrackChangesEditing")[_i("0x5")](_i("0x2"))}}const Ti=["from","get","markInlineFormat","change","format","afterInit","getFirstRange","unlink","enableCommand","selection","hasAttribute","commandParams","getRanges","*Set link:* %0","registerDescriptionCallback","TrackChangesEditing","commandName","_descriptionFactory","isCollapsed","model","link","editor","locale","getAttribute","getFirstPosition","linkHref","has","document"];var Ci,ki;Ci=Ti,ki=311,function(t){for(;--t;)Ci.push(Ci.shift())}(++ki);const vi=function(t,e){return Ti[t-=0]};class Ai extends t.Plugin{[vi("0x2")](){const t=this[vi("0x12")];if(!t.plugins[vi("0x17")]("LinkEditing"))return;const e=t.plugins[vi("0x1a")](vi("0xc"));e.enableCommand("link",((n,o)=>{const r=t[vi("0x10")][vi("0x18")][vi("0x6")];let s=[];if(r[vi("0xf")]){if(!r[vi("0x7")]("linkHref"))return void n(o);{const e=(0,Ts.findAttributeRange)(r[vi("0x15")](),vi("0x16"),r[vi("0x14")]("linkHref"),t.model);s=[e]}}else s=Array[vi("0x19")](r[vi("0x9")]());t.model[vi("0x0")]((()=>{for(const t of s)e[vi("0x1b")](t,{commandName:vi("0x11"),commandParams:[o]})}))})),e[vi("0x5")](vi("0x4"),(()=>{const n=this[vi("0x12")][vi("0x10")],o=n[vi("0x18")][vi("0x6")];n[vi("0x0")]((()=>{let n=[];n=o[vi("0xf")]?[(0,Ts.findAttributeRange)(o[vi("0x15")](),vi("0x16"),o.getAttribute("linkHref"),t[vi("0x10")])]:Br(vi("0x16"),o[vi("0x3")](),t[vi("0x10")]);for(const t of n)e[vi("0x1b")](t,{commandName:vi("0x4"),commandParams:[]})}))})),e[vi("0xe")][vi("0xb")]((e=>{const{data:n}=e,o=t[vi("0x13")];if(n){if("link"==n[vi("0xd")]){const t=n[vi("0x8")][0];return{type:vi("0x1"),content:kr(o,vi("0xa"),'"'+t+'"')}}return vi("0x4")==n[vi("0xd")]?{type:vi("0x1"),content:kr(o,"*Remove link*")}:void 0}}))}}const Ri=["editor","model","previousSibling","bulletedList","has","afterInit","getAttribute","markBlockFormat","forceValue","nextSibling","filter","numbered","checkTodoList","commands","document","add","blockName","numberedList","*Uncheck item*","List","createRange","todoList","plugins","change","registerDescriptionCallback","isObject","get","value","length","createPositionAt","bulleted","end","TrackChangesEditing","paragraph","ELEMENT_NUMBERED_LIST","checkChild","listItem","before","_selectedElements","slice","enableCommand","getSelectedBlocks","name","*Change to:* %0","_descriptionFactory","from","schema","indentList","TodoListEditing","commandParams","*Check item*","element","todoListChecked","ELEMENT_LIST_ITEM","*Indent:* %0","listIndent","push","format","commandName","*Outdent:* %0","ListEditing","outdentList"];var Si,Ii;Si=Ri,Ii=464,function(t){for(;--t;)Si.push(Si.shift())}(++Ii);const wi=function(t,e){return Ri[t-=0]};class Mi extends t.Plugin{[wi("0x25")](){const t=this[wi("0x20")],e=t.locale;if(!t.plugins[wi("0x24")](wi("0x1e")))return;const n=t.plugins.get(wi("0x2")),o=t[wi("0x36")][wi("0x24")](wi("0x12"));function r(e){return()=>{const o=t[wi("0x21")].document.selection,r=t[wi("0x2d")][wi("0x3a")](e);if(r[wi("0x3b")])return void t.execute(wi("0x3"),{});const s=e.slice(0,-4),i=function(t,e,n){let o=Array[wi("0xf")](t).filter((t=>{return e=t,(o=n)[wi("0x5")](e.parent,"listItem")&&!o[wi("0x39")](e);var e,o}));o=o[wi("0x2a")]((t=>!t.is(wi("0x15"),wi("0x6"))||t[wi("0x26")]("listType")!=e));const r=new Set;for(const t of o)t.is("element",wi("0x6"))?r.add(Ni(t)):r[wi("0x2f")](t);return Array[wi("0xf")](r)}(o[wi("0xb")](),s,t.model[wi("0x10")]);t[wi("0x21")][wi("0x37")]((()=>{for(const t of i)n[wi("0x27")](t,{commandName:e,commandParams:[{forceValue:!r[wi("0x3b")]}],formatGroupId:wi("0x30")},Li(t))}))}}function s(e){return()=>{const o=function(t){const e=(t=Array.from(t)).findIndex((t=>wi("0x6")!=t.name));return e>-1&&(t=t[wi("0x9")](0,e)),t}(t[wi("0x21")][wi("0x2e")].selection[wi("0xb")]()),r=t[wi("0x21")][wi("0x34")](t[wi("0x21")][wi("0x3d")](o[0],wi("0x7")),t.model[wi("0x3d")](o[o[wi("0x3c")]-1],wi("0x1")));t[wi("0x21")].change((()=>{n[wi("0x27")](r,{commandName:e,commandParams:[],formatGroupId:wi("0x19")},function(t){const e=new Set;for(const n of t){let t=n[wi("0x29")];for(;t&&t[wi("0x26")](wi("0x19"))>n[wi("0x26")](wi("0x19"));)e[wi("0x2f")](t),t=t[wi("0x29")]}return Array.from(e)}(o))}))}}n[wi("0xa")](wi("0x31"),r(wi("0x31"))),n[wi("0xa")](wi("0x23"),r(wi("0x23"))),o&&n[wi("0xa")](wi("0x35"),r("todoList")),n.enableCommand(wi("0x11"),s(wi("0x11"))),n[wi("0xa")](wi("0x1f"),s(wi("0x1f"))),o&&n.enableCommand("checkTodoList",(()=>{const e=t.commands[wi("0x3a")]("checkTodoList"),o=Array[wi("0xf")](e[wi("0x8")]);o.filter((t=>t[wi("0x26")](wi("0x16"))!=e[wi("0x3b")])),t.model.change((()=>{for(const t of o)n[wi("0x27")](t,{commandName:wi("0x2c"),commandParams:[{forceValue:!e[wi("0x3b")]}]})}))})),n[wi("0xe")].registerElementLabel("listItem",(t=>kr(e,wi("0x17"),t))),n[wi("0xe")][wi("0x38")]((t=>{const{data:n}=t;if(n){if(wi("0x31")==n[wi("0x1c")]||"bulletedList"==n[wi("0x1c")]||wi("0x35")==n[wi("0x1c")])switch(n[wi("0x1c")].replace(wi("0x33"),"")){case wi("0x0"):return o(kr(e,"ELEMENT_BULLETED_LIST"));case wi("0x2b"):return o(kr(e,wi("0x4")));case"todo":return o(kr(e,"ELEMENT_TODO_LIST"))}if("indentList"==n[wi("0x1c")])return{type:wi("0x1b"),content:kr(e,wi("0x18"),kr(e,"ELEMENT_LIST_ITEM"))};if(wi("0x1f")==n[wi("0x1c")])return{type:wi("0x1b"),content:kr(e,wi("0x1d"),kr(e,"ELEMENT_LIST_ITEM"))};if("checkTodoList"==n[wi("0x1c")])return n[wi("0x13")][0][wi("0x28")]?{type:wi("0x1b"),content:kr(e,wi("0x14"))}:{type:"format",content:kr(e,wi("0x32"))}}function o(t){return{type:wi("0x1b"),content:kr(e,wi("0xd"),t)}}}))}}function Ni(t){const e=t[wi("0x26")](wi("0x19"));if(0==e)return t;let n=t;for(;t[wi("0x22")]&&t[wi("0x22")].is(wi("0x15"),wi("0x6"));){const o=t.previousSibling[wi("0x26")](wi("0x19"));if(o==e)n=t.previousSibling;else if(o<e)break;t=t[wi("0x22")]}return n}function Li(t){const e=[];if(t.is(wi("0x15"),wi("0x6"))&&t[wi("0x26")](wi("0x19"))>0){let n=t[wi("0x29")];for(;n&&wi("0x6")==n[wi("0xc")]&&n[wi("0x26")](wi("0x19"))==t[wi("0x26")](wi("0x19"));)e[wi("0x1a")](n),n=n[wi("0x29")]}return e}const Oi=["attribute:url:media","get","elementToElement","high","afterInit","enableCommand","conversion","dataDowncast","MediaEmbedEditing","locale","div","data","plugins","options","stop","createEmptyElement","has","editor","for","showSuggestionHighlights","media","_descriptionFactory","downcastDispatcher","TrackChangesEditing"];var Fi,Pi;Fi=Oi,Pi=470,function(t){for(;--t;)Fi.push(Fi.shift())}(++Pi);const Di=function(t,e){return Oi[t-=0]};class ji extends t.Plugin{[Di("0xe")](){const t=this[Di("0x3")];if(!t[Di("0x16")][Di("0x2")](Di("0x12")))return;const e=t.plugins[Di("0xb")](Di("0x9")),n=t[Di("0x13")];e[Di("0xf")]("mediaEmbed"),e[Di("0x7")].registerElementLabel(Di("0x6"),(t=>kr(n,"ELEMENT_MEDIA",t))),t[Di("0x10")][Di("0x4")](Di("0x11"))[Di("0xc")]({model:Di("0x6"),view:(t,{writer:e,options:n})=>{if(n[Di("0x5")])return e[Di("0x1")](Di("0x14"))},converterPriority:Di("0xd")}),t[Di("0x15")][Di("0x8")].on(Di("0xa"),((t,e,n)=>{n[Di("0x17")][Di("0x5")]&&t[Di("0x0")]()}),{priority:"high"})}}const Bi=["mention","plugins","enableCommand","TrackChangesEditing","editor","afterInit"];var Ui,Hi;Ui=Bi,Hi=375,function(t){for(;--t;)Ui.push(Ui.shift())}(++Hi);const Gi=function(t,e){return Bi[t-=0]};class Vi extends t.Plugin{[Gi("0x2")](){const t=this[Gi("0x1")];t[Gi("0x4")].has("MentionEditing")&&t[Gi("0x4")].get(Gi("0x0"))[Gi("0x5")](Gi("0x3"))}}const zi=["locale","PageBreakEditing","get","enableCommand","editor","has","pageBreak","_descriptionFactory","TrackChangesEditing","registerElementLabel","ELEMENT_PAGE_BREAK","plugins"];var Wi,Ki;Wi=zi,Ki=453,function(t){for(;--t;)Wi.push(Wi.shift())}(++Ki);const $i=function(t,e){return zi[t-=0]};class qi extends t.Plugin{afterInit(){const t=this[$i("0x7")];if(!t.plugins[$i("0x8")]($i("0x4")))return;t[$i("0x2")][$i("0x5")]("TrackChangesEditing")[$i("0x6")]($i("0x9"));const e=t[$i("0x2")][$i("0x5")]($i("0xb")),n=t[$i("0x3")];e[$i("0xa")][$i("0x0")]("pageBreak",(t=>kr(n,$i("0x1"),t)))}}const Xi=["toViewPosition","showSuggestionHighlights","ELEMENT_PARAGRAPH","afterInit","document","options","model","writer","registerElementLabel","TrackChangesEditing","isObject","end","locale","editing","editor","isBlock","nodeAfter","getItemLabel","mapper","parent","filter","span","registerDescriptionCallback","_descriptionFactory","has","paragraph","from","data","*Change to:* %0","ck-suggestion-marker--active","*Insert:* %0","addMarker:suggestion:insertion","blockName","selection","name","consumable","commandName","bindElementToMarker","change","markerRange","consume","$text","markerName","type","includes","markBlockFormat","checkChild","plugins","insertion","schema","isLimit","get"];var Ji,Qi;Ji=Xi,Qi=408,function(t){for(;--t;)Ji.push(Ji.shift())}(++Qi);const Yi=function(t,e){return Xi[t-=0]};class Zi extends t.Plugin{[Yi("0xb")](){const t=this[Yi("0x16")];if(!t[Yi("0x3")][Yi("0x20")]("Paragraph"))return;const e=t[Yi("0x14")],n=t[Yi("0x3")][Yi("0x7")](Yi("0x11"));n[Yi("0x1f")][Yi("0x10")](Yi("0x21"),(t=>kr(e,"ELEMENT_PARAGRAPH",t))),n.enableCommand(Yi("0x21"),((e,o={})=>{const r=t[Yi("0xe")][Yi("0xc")],s=o[Yi("0x29")]||r[Yi("0x29")],i=Array[Yi("0x22")](s.getSelectedBlocks())[Yi("0x1c")]((t=>{return e=t,(n=this[Yi("0x16")].model[Yi("0x5")])[Yi("0x2")](e[Yi("0x1b")],"paragraph")&&!n[Yi("0x12")](e)&&Yi("0x21")!=e[Yi("0x2a")];var e,n}));t[Yi("0xe")][Yi("0x2e")]((()=>{for(const t of i)n[Yi("0x1")](t,{commandName:Yi("0x21"),commandParams:[],formatGroupId:Yi("0x28")},Ur(t))}))})),n._descriptionFactory[Yi("0x1e")]((t=>{const{data:n}=t;if(n&&Yi("0x21")==n[Yi("0x2c")])return{type:"format",content:kr(e,Yi("0x24"),kr(e,Yi("0xa")))}})),n.enableCommand("insertParagraph"),t[Yi("0x15")].downcastDispatcher.on(Yi("0x27"),ta(t),{priority:"highest"}),t[Yi("0x23")].downcastDispatcher.on(Yi("0x27"),((e,n,o)=>{o[Yi("0xd")][Yi("0x9")]&&ta(t,{showActiveMarker:!1})(e,n,o)}),{priority:"highest"});const o=n[Yi("0x1f")];o.registerDescriptionCallback((n=>{if(Yi("0x4")!==n[Yi("0x33")])return;const{start:r,end:s}=n.getFirstRange();if(!r.isTouching(s)||!r[Yi("0x18")])return;const i=t[Yi("0xe")].schema,a=r[Yi("0x18")];return i[Yi("0x17")](a)&&!i.isLimit(a)&&i[Yi("0x2")](a,Yi("0x31"))?{type:"insertion",content:kr(e,Yi("0x26"),o[Yi("0x19")](a[Yi("0x2a")],1))}:void 0}))}}function ta(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const s=t[Yi("0x3")].get(Yi("0x11")),i=o[Yi("0x2f")].start,a=o[Yi("0x2f")][Yi("0x13")],x=t.model[Yi("0x5")];if(!i.isTouching(a)||!i[Yi("0x18")])return;const c=i[Yi("0x18")];if(x[Yi("0x17")](c)&&!x[Yi("0x6")](c)&&x[Yi("0x2")](c,Yi("0x31"))){if(!r[Yi("0x2b")][Yi("0x30")](o[Yi("0x2f")],n[Yi("0x2a")]))return;const t=r[Yi("0xf")].createUIElement(Yi("0x1d"),{class:"ck-suggestion-marker-split"}),i=r[Yi("0x1a")][Yi("0x8")](a);e&&s.activeMarkers[Yi("0x0")](o[Yi("0x32")])&&r.writer.addClass(Yi("0x25"),t),r[Yi("0xf")].insert(i,t),r.mapper[Yi("0x2d")](t,o[Yi("0x32")])}}}const ea=["locale","change","model","plugins","isCollapsed","commandName","*Remove all formatting*","_descriptionFactory","createRangeOn","from","TrackChangesEditing","registerDescriptionCallback","document","getRanges","getAttributes","removeFormat","isFormatting","getItems","get","markInlineFormat","schema","getAttributeProperties","afterInit"];var na,oa;na=ea,oa=275,function(t){for(;--t;)na.push(na.shift())}(++oa);const ra=function(t,e){return ea[t-=0]};class sa extends t.Plugin{[ra("0x0")](){const t=this.editor;if(!t[ra("0x4")].has("RemoveFormatEditing"))return;const e=t[ra("0x4")][ra("0x13")](ra("0xb"));e.enableCommand(ra("0x10"),(n=>{const o=t[ra("0x3")][ra("0xd")].selection;o[ra("0x5")]?n():t[ra("0x3")][ra("0x2")]((()=>{const n=Array[ra("0xa")](o[ra("0xe")]());for(const o of n)for(const n of o[ra("0x12")]())ia(n,t[ra("0x3")][ra("0x15")])&&e[ra("0x14")](t[ra("0x3")][ra("0x9")](n),{commandName:ra("0x10"),commandParams:[]})}))})),e[ra("0x8")][ra("0xc")]((e=>{const{data:n}=e;if(n&&"removeFormat"==n[ra("0x6")])return{type:"format",content:kr(t[ra("0x1")],ra("0x7"))}}))}}function ia(t,e){for(const[n]of t[ra("0xf")]()){const t=e[ra("0x16")](n);if(t&&t[ra("0x11")])return!0}return!1}const aa=["acceptSelectedSuggestions","RestrictedEditingModeEditing","trackChanges","editor","TrackChangesEditing","plugins","discardSuggestion","discardSelectedSuggestions","discardAllSuggestions","enableCommand","goToPreviousRestrictedEditingException","afterInit","acceptAllSuggestions","has","goToNextRestrictedEditingException"];var xa,ca;xa=aa,ca=141,function(t){for(;--t;)xa.push(xa.shift())}(++ca);const la=function(t,e){return aa[t-=0]};class ua extends t.Plugin{[la("0x5")](){const t=this[la("0xc")];if(!t[la("0xe")][la("0x7")](la("0xa")))return;const e=t[la("0xe")].get(la("0xd"));e.enableCommand(la("0x4")),e[la("0x3")](la("0x8"));const n=t[la("0xe")].get(la("0xa"));n[la("0x3")](la("0xb")),n[la("0x3")]("acceptSuggestion"),n[la("0x3")](la("0x0")),n[la("0x3")](la("0x6")),n[la("0x3")](la("0x2")),n[la("0x3")](la("0x9")),n[la("0x3")](la("0x1"))}}const da=["element","markerName","addMarker:suggestion:deletion","softBreak","getItems","showSuggestionHighlights","editing","insert","split","addMarker:suggestion:insertion","editor","addClass","test","options","ck-suggestion-marker--active","consumable","init","_descriptionFactory","mapper","name","addMarker:suggestion","locale","ELEMENT_LINE_BREAK","model","get","markerRange","TrackChangesEditing","plugins","registerElementLabel","activeMarkers","deletion","createPositionBefore","writer","merge","downcastDispatcher","bindElementToMarker","high","span"];var ga,fa;ga=da,fa=338,function(t){for(;--t;)ga.push(ga.shift())}(++fa);const ma=function(t,e){return da[t-=0]};class ha extends t.Plugin{static get requires(){return[Ss.ShiftEnter]}[ma("0x14")](){const t=this[ma("0xe")],e=t[ma("0x1f")][ma("0x1c")](ma("0x1e"));e.enableCommand("shiftEnter"),t.editing[ma("0x0")].on(ma("0xd"),pa(t),{priority:ma("0x2")}),t[ma("0xa")][ma("0x0")].on(ma("0x6"),pa(t),{priority:ma("0x2")}),t.data[ma("0x0")].on(ma("0x18"),((e,n,o)=>{o[ma("0x11")][ma("0x9")]&&pa(t,{showActiveMarker:!1})(e,n,o)})),e[ma("0x15")][ma("0x20")](ma("0x7"),(e=>kr(t[ma("0x19")],ma("0x1a"),e)))}}function pa(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const s=t.plugins[ma("0x1c")](ma("0x1e"));if(!r[ma("0x13")][ma("0x10")](o[ma("0x1d")],n[ma("0x17")]))return;const i=t[ma("0x1b")];for(const t of o.markerRange[ma("0x8")]()){if(!t.is(ma("0x4"),ma("0x7")))continue;const n=ma("0x22")==o[ma("0x5")][ma("0xc")](":")[1]?ma("0x25"):ma("0xc"),a=r[ma("0x24")].createUIElement(ma("0x3"),{class:"ck-suggestion-marker-"+n}),x=r[ma("0x16")].toViewPosition(i[ma("0x23")](t));e&&s[ma("0x21")].includes(o.markerName)&&r[ma("0x24")][ma("0xf")](ma("0x12"),a),r.writer[ma("0xb")](x,a),r[ma("0x16")][ma("0x1")](a,o[ma("0x5")])}}}const ba=["value","has","document","restrictedEditingException","FORMAT_RESTRICTED_ENABLED","getRanges","editor","FORMAT_RESTRICTED_DISABLED","locale","forceValue","selection","format","plugins","model","registerDescriptionCallback","enableCommand","_descriptionFactory","markInlineFormat","get","afterInit"];var Ea,_a;Ea=ba,_a=492,function(t){for(;--t;)Ea.push(Ea.shift())}(++_a);const ya=function(t,e){return ba[t-=0]};class Ta extends t.Plugin{[ya("0x7")](){const t=this[ya("0xe")],e=t[ya("0x1")],n=t[ya("0x10")];if(!t[ya("0x0")][ya("0x9")]("StandardEditingModeEditing"))return;const o=t[ya("0x0")][ya("0x6")]("TrackChangesEditing"),r=ya("0xb"),s=t.commands.get(r);o[ya("0x3")](r,((t,n={})=>{const i=e[ya("0xa")][ya("0x12")];if(i.isCollapsed)return void t(n);const a=void 0!==n[ya("0x11")]?n[ya("0x11")]:!s[ya("0x8")];e.change((()=>{const t=Array.from(i[ya("0xd")]());for(const n of t){const t=a?[n]:Br(r,n,e);for(const e of t)o[ya("0x5")](e,{commandName:r,commandParams:[{forceValue:a}]})}}))})),o[ya("0x4")][ya("0x2")]((t=>{const{data:e}=t;if(e&&e.commandName==r)return e.commandParams[0][ya("0x11")]?{type:"format",content:kr(n,ya("0xc"))}:{type:ya("0x13"),content:kr(n,ya("0xf"))}}))}}const Ca=["showSuggestionHighlights","table","left","getRanges","getSuggestion","insertTableColumnLeft","accept","textProxy","createTableWalker","has","enqueueChange","colspan","getChanges","_getCoordsForCells","TrackChangesEditing","isArray","plugins","minColumn","rootName","filter","position","_setupColumnsRowsFixing","join","refresh","length","_getSuggestionCoords","getAttribute","toLowerCase","tableCell","writer","getColumnIndexes","maxRow","item","low","start","isTouching","tablePaste","TableUtils","element","markMultiRangeInsertion","_descriptionFactory","batch","selectTableColumn","map","getChangedMarkers","createRangeOn","insert","_suggestionFactory","addRange","values","execute","getItems","createRangeIn","name","tableColumn","removeTableColumn","end","tableRow","discard","findAncestor","deletion","MAX_SAFE_INTEGER","ELEMENT_TABLE","change","ELEMENT_TABLE_COLUMN","insertion","_tableSuggestions","detach","ELEMENT_TABLE_WITH_TEXT","getRowIndexes","hasAttribute","min","isEqual","MIN_SAFE_INTEGER","removeTableRow","commands","isIntersectingWithRange","$graveyard","locale","data","cell","rowspan","getFirstRange","max","afterInit","*Insert:* %0","suggestion","from","*Remove:* %0","ELEMENT_TABLE_ROW_WITH_TEXT","highest","setSelection","above","model","_tablePostFixingSubtypes","fromRange","root","nodeBefore","getCellLocation","get","getSelectionAffectedTableCells","enableCommand","mapper","registerPostFixer","registerDescriptionCallback","markMultiRangeDeletion","removeClass","nodeAfter","insertTableColumnRight","last","downcastDispatcher","substr","forceValue","ELEMENT_TABLE_ROW","getChildren","differ","subType","span","options","editor","includes","registerCustomCallback","order","document","createPositionAt","type","toViewElement","first","addClass","selectTableRow"];var ka,va;ka=Ca,va=309,function(t){for(;--t;)ka.push(ka.shift())}(++va);const Aa=function(t,e){return Ca[t-=0]};class Ra extends t.Plugin{constructor(t){super(t),this._tablePostFixingSubtypes=[Aa("0x8"),Aa("0x5")]}[Aa("0x23")](){const t=this[Aa("0x46")],e=t[Aa("0x2c")][Aa("0x4a")].selection;if(!t.plugins[Aa("0x5a")]("TableEditing"))return;const n=t[Aa("0x1d")],o=t.plugins[Aa("0x32")](Aa("0x5f")),r=t[Aa("0x61")][Aa("0x32")](Aa("0x76"));o[Aa("0x79")].registerElementLabel(Aa("0x52"),(t=>kr(n,Aa("0xd"),t))),this[Aa("0x66")](),o[Aa("0x34")]("insertTable"),o[Aa("0x34")](Aa("0x50")),o[Aa("0x34")](Aa("0x7b"));for(const n of["insertTableRowAbove","insertTableRowBelow"]){const s=t[Aa("0x1a")][Aa("0x32")](n);o[Aa("0x34")](n,(n=>{t[Aa("0x2c")][Aa("0xe")]((t=>{n();const i=Aa("0x2b")===s[Aa("0x49")],a=r[Aa("0x33")](e),x=r[Aa("0x14")](a),c=i?x[Aa("0x4e")]-1:x[Aa("0x3c")]+1,l=a[0][Aa("0xa")](Aa("0x52")),u=r[Aa("0x59")](l,{startRow:c,endRow:c}),d=Array[Aa("0x26")](u).map((e=>t[Aa("0x7e")](e.cell)));o[Aa("0x78")](d,Aa("0x8"))}))}))}for(const n of[Aa("0x56"),Aa("0x3b")]){const s=t[Aa("0x1a")][Aa("0x32")](n);o[Aa("0x34")](n,(n=>{t.model[Aa("0xe")]((t=>{n();const i=Aa("0x53")===s.order,a=r.getSelectionAffectedTableCells(e),x=r[Aa("0x6f")](a),c=i?x.first-1:x[Aa("0x3c")]+1,l=a[0].findAncestor("table"),u=r.createTableWalker(l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Aa("0x26")](u)[Aa("0x7c")]((e=>t[Aa("0x7e")](e[Aa("0x1f")])));o[Aa("0x78")](d,"tableColumn")}))}))}for(const n of["removeTableRow",Aa("0x6")]){const s=n[Aa("0x3e")](11),i=s[Aa("0x6c")](),a=i[Aa("0x3e")](0,3)+"span",x="table"+s,c="min"+s,l=Aa("0x22")+s;o[Aa("0x34")](n,(()=>{t[Aa("0x2c")][Aa("0xe")]((t=>{const s=r.getSelectionAffectedTableCells(e),u=s[0][Aa("0xa")](Aa("0x52"));let d;if(Aa("0x19")==n){const t=r[Aa("0x14")](s);d={startRow:t.first,endRow:t[Aa("0x3c")],includeAllSlots:!0}}else{const t=r[Aa("0x6f")](s);d={startColumn:t[Aa("0x4e")],endColumn:t[Aa("0x3c")],includeAllSlots:!0}}const g=r.createTableWalker(u,d),f=Array[Aa("0x26")](g)[Aa("0x7c")]((({cell:t})=>t)),m=Sa(f[Aa("0x64")]((t=>t.hasAttribute(a)))),h=Sa(f[Aa("0x64")]((t=>!t[Aa("0x15")](a))))[Aa("0x7c")]((e=>t[Aa("0x7e")](e))),p=o[Aa("0x38")](h,x);if(p&&(Aa("0x8")==p.subType||"tableColumn"==p[Aa("0x43")])){const e=this[Aa("0x6a")](p);for(const n of m){const o=t[Aa("0x7e")](n),s=r[Aa("0x31")](n),x=n[Aa("0x6b")](a)-1,u=e[c],d=e[l];u<=s[i]&&s[i]+x<=d&&p[Aa("0x81")](o)}}}))}))}function s(n){const o=Array.from(e[Aa("0x54")]())[Aa("0x7c")]((t=>F.LiveRange[Aa("0x2e")](t)));t.model[Aa("0xe")]((e=>{const r=e[Aa("0x7a")];n=n[Aa("0x64")]((t=>"$graveyard"!=t[Aa("0x2f")][Aa("0x63")])),e[Aa("0x2a")](n),t.commands[Aa("0x32")](Aa("0x19"))[Aa("0x68")](),t[Aa("0x1")]("removeTableRow",{forceDefaultExecution:!0}),t[Aa("0x2c")][Aa("0x5b")]((()=>{t[Aa("0x2c")][Aa("0x5b")](r,(t=>{const e=o.filter((t=>Aa("0x1c")!=t[Aa("0x2f")][Aa("0x63")]));e[Aa("0x69")]>0&&t[Aa("0x2a")](e);for(const t of o)t[Aa("0x12")]()}))}))}))}function i(n){t[Aa("0x2c")][Aa("0xe")]((o=>{const r=Array[Aa("0x26")](e[Aa("0x54")]())[Aa("0x7c")]((t=>F.LiveRange.fromRange(t))),s=[];for(const t of n)for(const e of t[Aa("0x2")]({shallow:!0}))s.push(e);for(const e of s)Aa("0x1c")!=e[Aa("0x2f")][Aa("0x63")]&&(o[Aa("0x2a")](o[Aa("0x4b")](e,0)),t[Aa("0x1a")][Aa("0x32")](Aa("0x6"))[Aa("0x68")](),t.execute(Aa("0x6"),{forceDefaultExecution:!0}));const i=r.filter((t=>Aa("0x1c")!=t[Aa("0x2f")].rootName));i[Aa("0x69")]>0&&o[Aa("0x2a")](i);for(const t of r)t[Aa("0x12")]()}))}function a(t,e){return e.every((e=>t.some((t=>t[Aa("0x7")][Aa("0x17")](e[Aa("0x73")])||e[Aa("0x7")].isEqual(t.start)))))}function x(t,e){return t.some((t=>e.some((e=>t.end[Aa("0x74")](e[Aa("0x73")])))))}t.data[Aa("0x3d")].on("addMarker:suggestion",((t,e,n)=>{if(!n[Aa("0x45")][Aa("0x51")])return;const o=e[Aa("0x71")];if(!o)return;const r=n[Aa("0x35")][Aa("0x4d")](o);function s(t){return Array[Aa("0x60")](t)?t:[t]}r&&Aa("0x6d")===o.name&&(0,P.setHighlightHandling)(r,n[Aa("0x6e")],((t,e,n)=>n[Aa("0x4f")](s(e.classes),t)),((t,e,n)=>n[Aa("0x39")](s(e.classes),t)))}),{priority:Aa("0x29")}),o._descriptionFactory[Aa("0x37")]((t=>{if(Aa("0x10")!=t[Aa("0x4c")]&&Aa("0xb")!=t[Aa("0x4c")])return;const e=t.getContainedElement();if(null!=e&&e.is(Aa("0x77"),Aa("0x52"))){if("insertion"==t[Aa("0x4c")]){const e=t[Aa("0x2")]()[Aa("0x64")]((t=>t.is(Aa("0x58")))).map((t=>t[Aa("0x1e")]));if(e[Aa("0x69")])return{type:Aa("0x10"),content:kr(n,"*Insert:* %0",kr(n,Aa("0x13"),'"'+e.join(" ")+'"'))}}if(Aa("0xb")==t[Aa("0x4c")]){const e=t[Aa("0x2")]().filter((t=>t.is(Aa("0x58"))))[Aa("0x7c")]((t=>t[Aa("0x1e")]));if(e.length)return{type:"deletion",content:kr(n,Aa("0x27"),kr(n,Aa("0x13"),'"'+e[Aa("0x67")](" ")+'"'))}}}})),o[Aa("0x79")].registerDescriptionCallback((t=>{if(Aa("0x8")==t.subType){const e=t[Aa("0x2")]().filter((t=>t.is("textProxy")))[Aa("0x7c")]((t=>t[Aa("0x1e")])),o=this._getSuggestionCoords(t),r=o[Aa("0x70")]-o.minRow+1;if("insertion"==t[Aa("0x4c")])return e[Aa("0x69")]?{type:"insertion",content:kr(n,"*Insert:* %0",kr(n,Aa("0x28"),[r,'"'+e[Aa("0x67")](" ")+'"']))}:{type:Aa("0x10"),content:kr(n,Aa("0x24"),kr(n,Aa("0x40"),r))};if(Aa("0xb")==t[Aa("0x4c")])return e.length?{type:"deletion",content:kr(n,Aa("0x27"),kr(n,Aa("0x28"),[r,'"'+e[Aa("0x67")](" ")+'"']))}:{type:Aa("0xb"),content:kr(n,Aa("0x27"),kr(n,Aa("0x40"),r))}}if(Aa("0x5")==t[Aa("0x43")]){const e=t[Aa("0x2")]()[Aa("0x64")]((t=>t.is(Aa("0x58"))))[Aa("0x7c")]((t=>t[Aa("0x1e")])),o=this[Aa("0x6a")](t),r=o.maxColumn-o[Aa("0x62")]+1;if(Aa("0x10")==t[Aa("0x4c")])return e[Aa("0x69")]?{type:"insertion",content:kr(n,"*Insert:* %0",kr(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[r,'"'+e.join(" ")+'"']))}:{type:Aa("0x10"),content:kr(n,Aa("0x24"),kr(n,Aa("0xf"),r))};if("deletion"==t.type)return e[Aa("0x69")]?{type:Aa("0xb"),content:kr(n,Aa("0x27"),kr(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[r,'"'+e.join(" ")+'"']))}:{type:"deletion",content:kr(n,Aa("0x27"),kr(n,Aa("0xf"),r))}}})),o[Aa("0x80")][Aa("0x48")](Aa("0x10"),Aa("0x8"),Aa("0x9"),s),o[Aa("0x80")].registerCustomCallback(Aa("0xb"),"tableRow",Aa("0x57"),s),o[Aa("0x80")][Aa("0x48")](Aa("0x10"),"tableColumn",Aa("0x9"),i),o[Aa("0x80")][Aa("0x48")]("deletion",Aa("0x5"),Aa("0x57"),i),o[Aa("0x80")][Aa("0x48")](Aa("0x10"),Aa("0x5"),Aa("0x67"),a),o[Aa("0x80")][Aa("0x48")]("deletion",Aa("0x5"),"join",a),o[Aa("0x80")][Aa("0x48")](Aa("0x10"),Aa("0x8"),"join",x),o[Aa("0x80")].registerCustomCallback(Aa("0xb"),Aa("0x8"),Aa("0x67"),x)}_acceptFormatSuggestionCallbackFactory(){const t=this[Aa("0x46")],e=t.model.document.selection;return(n,o)=>{t[Aa("0x2c")][Aa("0xe")]((r=>{const{commandName:s,commandParams:i}=o;let a=n[0][Aa("0x7")][Aa("0x30")];i&&i[0]&&!1===i[0][Aa("0x3f")]&&(a=n[0].start[Aa("0x3a")]);const x=r[Aa("0x3")](a);if("$graveyard"==x[Aa("0x2f")][Aa("0x63")])return;const c=Array.from(e.getRanges())[Aa("0x7c")]((t=>F.LiveRange[Aa("0x2e")](t)));r.setSelection(x),t.commands[Aa("0x32")](s)[Aa("0x68")](),i.push({forceDefaultExecution:!0}),t[Aa("0x1")](s,...i);const l=c[Aa("0x64")]((t=>"$graveyard"!=t[Aa("0x2f")][Aa("0x63")]));l.length>0&&r.setSelection(l);for(const t of c)t.detach()}))}}[Aa("0x5e")](t){const e=this.editor.plugins[Aa("0x32")]("TableUtils");let n=Number[Aa("0xc")],o=Number[Aa("0x18")],r=Number[Aa("0xc")],s=Number[Aa("0x18")];for(const i of t){if("$graveyard"==i[Aa("0x2f")][Aa("0x63")])continue;const{row:t,column:a}=e[Aa("0x31")](i),x=i.hasAttribute(Aa("0x20"))?i[Aa("0x6b")](Aa("0x20"))-1:0,c=i[Aa("0x15")](Aa("0x5c"))?i[Aa("0x6b")](Aa("0x5c"))-1:0;n=t<n?t:n,o=t+x>o?t+x:o,r=a<r?a:r,s=a+c>s?a+c:s}return{minRow:n,maxRow:o,minColumn:r,maxColumn:s}}[Aa("0x66")](){const t=this[Aa("0x46")],e=t[Aa("0x61")][Aa("0x32")](Aa("0x5f")),n=t[Aa("0x61")][Aa("0x32")](Aa("0x76"));this[Aa("0x11")]=new Set,t[Aa("0x2c")][Aa("0x4a")].on("change:data",(()=>{const n=Array[Aa("0x26")](t[Aa("0x2c")][Aa("0x4a")][Aa("0x42")][Aa("0x7d")]());for(const{name:t,data:o}of n){const{group:n,id:r,subType:s}=e._splitMarkerName(t);if(Aa("0x25")!=n)continue;if(null!=o.oldRange)continue;const i=e[Aa("0x55")](r);this[Aa("0x2d")][Aa("0x47")](s)&&this[Aa("0x11")].add(i)}}),{priority:Aa("0x72")});const o=(t,e)=>{let o=!1;const r=e[Aa("0x7e")](t),s=t[Aa("0xa")](Aa("0x52")),i=n[Aa("0x31")](t);for(const e of this[Aa("0x11")]){const n=e[Aa("0x43")],a=n.startsWith(Aa("0x75")),x=n.substr(a?10:5),c=x[Aa("0x6c")](),l=c.substr(0,3)+Aa("0x44"),u=Aa("0x16")+x,d=Aa("0x22")+x;if(!e.isInContent)continue;if(s!=e[Aa("0x21")]()[Aa("0x73")].findAncestor(Aa("0x52")))continue;if(e[Aa("0x1b")](r))continue;const g=t.hasAttribute(l)?t[Aa("0x6b")](l)-1:0,f=this[Aa("0x6a")](e),m=f[u],h=f[d];m<=i[c]&&i[c]+g<=h&&(e[Aa("0x81")](r),o=!0)}return o};t[Aa("0x2c")][Aa("0x4a")][Aa("0x36")]((e=>{let n=!1;for(const r of t[Aa("0x2c")].document.differ[Aa("0x5d")]())if(Aa("0x7f")==r.type)if(Aa("0x8")==r[Aa("0x4")])for(const t of r[Aa("0x65")][Aa("0x3a")][Aa("0x41")]())n=n||o(t,e);else Aa("0x6d")==r[Aa("0x4")]&&(n=n||o(r.position[Aa("0x3a")],e));return n}))}[Aa("0x6a")](t){return this[Aa("0x5e")](t.getRanges()[Aa("0x7c")]((t=>t[Aa("0x73")][Aa("0x3a")])))}}function Sa(t){return Array[Aa("0x26")](new Set(t)[Aa("0x0")]())}const Ia=["registerDescriptionCallback","markMultiRangeBlockFormat","subType","mergeTableCellDown","$graveyard","change","markBlockFormat","from","accept","TableEditing","*Split cell:* vertically","isInContent","enableCommand","length","commands","value","document","createRangeOn","map","_suggestionFactory","trackChanges","size","containsRange","_areMergableCells","getAncestors","execute","splitTableCellVertically","*Merge cells*","selection","push","fromRange","return","element","findAncestor","forceDefaultExecution","splitTableCellHorizontally","createTableWalker","_tablePostFixingSubtypes","stop","mergeTableCellLeft","model","refresh","plugins","isEnabled","mergeTableCellUp","rootName","mergeTableCells","registerCustomCallback","editor","tableCell","insertion","format","highest","TableUtils","mergeTableCellRight","cell","has","_areSelectedCellsMergable","type","low","commandName","getFirstPosition","author","get","add","_descriptionFactory","locale","TrackChangesEditing","setSelection","getSelectionAffectedTableCells","detach","formatBlock","find","getRanges"];var wa,Ma;wa=Ia,Ma=239,function(t){for(;--t;)wa.push(wa.shift())}(++Ma);const Na=function(t,e){return Ia[t-=0]};class La extends t.Plugin{static get requires(){return[Ra]}afterInit(){const t=this[Na("0x1f")],e=t[Na("0x17")].document[Na("0xb")],n=t[Na("0x31")];if(!t.plugins[Na("0x27")](Na("0x42")))return;const o=t[Na("0x19")].get(Na("0x32")),r=t[Na("0x19")][Na("0x2e")](Na("0x24")),s=t[Na("0x19")].get(Ra);s[Na("0x14")][Na("0xc")](Na("0x1d")),o[Na("0x45")](Na("0x1d"),(()=>{const e=r[Na("0x34")](t[Na("0x17")][Na("0x49")].selection);t.model.change((()=>{o[Na("0x3a")](e,{commandName:"mergeTableCells",commandParams:[]},[],Na("0x1d"))}))})),t.commands[Na("0x2e")]("mergeTableCells").on(Na("0x8"),((e,n)=>{t[Na("0x47")].get(Na("0x3")).value&&(n[Na("0x46")]>0&&n[n.length-1]&&n[n[Na("0x46")]-1][Na("0x11")]||o._isForcedDefaultExecutionBlock||this[Na("0x28")]()||e[Na("0x15")]())}),{priority:Na("0x23")});for(const e of[Na("0x1b"),Na("0x25"),Na("0x3c"),Na("0x16")]){const n=t.commands.get(e);o[Na("0x45")](e,(()=>{const e=t[Na("0x17")][Na("0x49")][Na("0xb")][Na("0x2c")]().getAncestors()[Na("0x37")]((t=>t.is(Na("0xf"),Na("0x20")))),r=n.value;t.model[Na("0x3e")]((()=>{o[Na("0x3a")]([e,r],{commandName:Na("0x1d"),commandParams:[]},[],"mergeTableCells")}))}))}for(const e of[Na("0x9"),Na("0x12")]){const n=t[Na("0x47")][Na("0x2e")](e);o[Na("0x45")](e,(()=>{const s=r[Na("0x34")](t[Na("0x17")][Na("0x49")][Na("0xb")])[0],i=s[Na("0x10")]("table"),{column:a,row:x}=r.getCellLocation(s);let c=[];if("horizontally"==n.direction){const t=r.createTableWalker(i,{startRow:x,endRow:x,includeAllSlots:!0});c=Array[Na("0x40")](t)[Na("0x1")]((t=>t[Na("0x26")]))}else{const t=r[Na("0x13")](i,{column:a,includeAllSlots:!0});c=Array[Na("0x40")](t).map((t=>t[Na("0x26")]))}t[Na("0x17")][Na("0x3e")]((t=>{o[Na("0x3f")](t[Na("0x0")](s),{commandName:e,commandParams:[]},c,e)}))}))}o[Na("0x30")][Na("0x39")]((t=>{const{data:e}=t;if(e)return Na("0x1d")==e[Na("0x2b")]?{type:Na("0x22"),content:kr(n,Na("0xa"))}:void 0})),o[Na("0x30")][Na("0x39")]((t=>{const{data:e}=t;if(e)return"splitTableCellVertically"==e[Na("0x2b")]?{type:Na("0x22"),content:kr(n,Na("0x43"))}:Na("0x12")==e[Na("0x2b")]?{type:"format",content:kr(n,"*Split cell:* horizontally")}:void 0}));const i=s._acceptFormatSuggestionCallbackFactory();for(const t of[Na("0x1b"),Na("0x25"),Na("0x3c"),"mergeTableCellLeft"])o._suggestionFactory[Na("0x1e")](Na("0x36"),t,"accept",i);for(const t of[Na("0x9"),"splitTableCellHorizontally"])o[Na("0x2")][Na("0x1e")](Na("0x36"),t,Na("0x41"),i);o[Na("0x2")][Na("0x1e")](Na("0x36"),Na("0x1d"),Na("0x41"),(n=>{t.model[Na("0x3e")]((o=>{const r=Array[Na("0x40")](e[Na("0x38")]())[Na("0x1")]((t=>F.LiveRange[Na("0xd")](t)));o[Na("0x33")](n),t[Na("0x47")][Na("0x2e")](Na("0x1d"))[Na("0x18")](),t[Na("0x8")](Na("0x1d"),{forceDefaultExecution:!0});const s=r.filter((t=>Na("0x3d")!=t.root[Na("0x1c")]));s[Na("0x46")]>0&&o.setSelection(s);for(const t of r)t[Na("0x35")]()}))}));for(const e of[Na("0x1b"),"mergeTableCellDown",Na("0x16"),Na("0x25")]){const n=t[Na("0x47")][Na("0x2e")](e);n.on("set:isEnabled",((e,o,r)=>{if(r){const o=t[Na("0x17")][Na("0x49")][Na("0xb")][Na("0x2c")]()[Na("0x7")]().find((t=>t.is(Na("0xf"),Na("0x20"))));this._areMergableCells(n[Na("0x48")],o)||(e[Na("0xe")]=!1,e[Na("0x15")]())}}),{priority:Na("0x2a")})}}[Na("0x28")](){const t=this[Na("0x1f")][Na("0x47")][Na("0x2e")]("mergeTableCells"),e=this[Na("0x1f")].plugins[Na("0x2e")]("TableUtils");if(!t[Na("0x1a")])return!1;const n=e[Na("0x34")](this.editor[Na("0x17")][Na("0x49")][Na("0xb")]);for(const t of n)for(const e of n)if(t!=e&&!this[Na("0x6")](t,e))return!1;return!0}[Na("0x6")](t,e){const n=this[Na("0x1f")].plugins[Na("0x2e")](Na("0x32")),o=this[Na("0x1f")][Na("0x17")][Na("0x0")](t),r=this.editor[Na("0x17")][Na("0x0")](e),s=new Set,i=new Set;for(const t of n.getSuggestions())if((Na("0x21")==t[Na("0x29")]||"deletion"==t[Na("0x29")]||Na("0x1d")==t[Na("0x3b")])&&t[Na("0x44")])for(const e of t[Na("0x38")]())e[Na("0x5")](o,!0)&&s[Na("0x2f")](t[Na("0x29")]+":"+t[Na("0x2d")].id),e[Na("0x5")](r,!0)&&i[Na("0x2f")](t[Na("0x29")]+":"+t[Na("0x2d")].id);if(s[Na("0x4")]!=i[Na("0x4")])return!1;for(const t of s)if(!i[Na("0x27")](t))return!1;return!0}}const Oa=["start","forceValue","requires","commandParams","markerRange","change","addClass","value","data","highest","FORMAT_HEADER_COLUMN","item","selection","isBefore","document","stop","_splitMarkerName","options","name","registerDescriptionCallback","headingRows","formatBlock","FORMAT_HEADER_ROW","TableUtils","createRange","getChild","end","markerNameToElements","showSuggestionHighlights","last","locale","setTableRowHeader","unbindElementFromMarkerName","nodeAfter","toViewElement","first","downcastDispatcher","ck-suggestion-marker-","editing","createPositionBefore","commandName","_acceptFormatSuggestionCallbackFactory","_suggestionFactory","enableCommand","createTableWalker","markBlockFormat","mapper","FORMAT_REGULAR_ROW","*Format:* %0","TrackChangesEditing","setAttribute","cell","commands","has","markerName","createPositionAfter","writer","accept","findAncestor","headingColumns","parent","childCount","getSuggestion","ck-suggestion-marker--active","get","getCellLocation","setTableColumnHeader","model","registerCustomCallback","removeClass","getSelectionAffectedTableCells","consumable","bindElementToMarker","plugins","format"];var Fa,Pa;Fa=Oa,Pa=260,function(t){for(;--t;)Fa.push(Fa.shift())}(++Pa);const Da=function(t,e){return Oa[t-=0]};class ja extends t.Plugin{static get[Da("0x2a")](){return[Ra]}afterInit(){const t=this.editor;if(!t.plugins[Da("0x12")]("TableEditing"))return;const e=t[Da("0x46")],n=t[Da("0x26")][Da("0x1d")](Da("0xe")),o=t.plugins.get(Da("0x3f")),r=t.plugins.get(Ra);function s({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(r,s,i)=>{const{type:a,id:x}=n[Da("0x38")](s[Da("0x13")]),c=n.getSuggestion(x);if(!c[Da("0x30")]||Da("0x1f")!=c[Da("0x30")][Da("0x5")])return;if(s[Da("0x33")])return void r[Da("0x37")]();if(!i[Da("0x24")].consume(s[Da("0x2c")],r[Da("0x3a")]))return;const l=s[Da("0x2c")][Da("0x28")][Da("0x49")],u=s[Da("0x2c")][Da("0x42")].nodeBefore,d=l[Da("0x19")].parent,{column:g}=o[Da("0x1e")](l),{column:f}=o[Da("0x1e")](u);for(let r=g;r<=f;r++){const c=o.createTableWalker(d,{column:r,includeAllSlots:!1});for(const o of c){const r=o[Da("0x10")],c=i.mapper[Da("0x4a")](r);i[Da("0x15")][Da("0x2e")](Da("0x2")+a,c),e&&i[Da("0x15")][Da("0xf")]("data-suggestion",x,c),i[Da("0xb")][Da("0x25")](c,s[Da("0x13")]),t&&(n.activeMarkers.includes(s.markerName)?i.writer[Da("0x2e")](Da("0x1c"),c):i[Da("0x15")][Da("0x22")]("ck-suggestion-marker--active",c))}}}}n[Da("0x8")]("setTableRowHeader",((e,r)=>{const s=o[Da("0x23")](t[Da("0x20")][Da("0x36")][Da("0x34")]),i=o.getRowIndexes(s),a=s[0][Da("0x17")]("table"),x=a.getAttribute(Da("0x3c"))||0,c=r&&null!==r.forceValue?r.forceValue:!t[Da("0x11")][Da("0x1d")](Da("0x47"))[Da("0x2f")],l=c?i[Da("0x45")]:i[Da("0x0")],u=a[Da("0x41")](l);let d;if(c){const e=a[Da("0x41")](x);if(u.index<e.index)return;d=t[Da("0x20")][Da("0x40")](t.model[Da("0x4")](e[Da("0x41")](0)),t[Da("0x20")][Da("0x14")](u[Da("0x41")](u[Da("0x1a")]-1)))}else{const e=a[Da("0x41")](x-1);if(!e)return;d=t.model[Da("0x40")](t[Da("0x20")][Da("0x4")](u.getChild(0)),t[Da("0x20")][Da("0x14")](e[Da("0x41")](e.childCount-1)))}t[Da("0x20")][Da("0x2d")]((()=>{n[Da("0xa")](d,{commandName:Da("0x47"),commandParams:[{forceValue:c}]},[],Da("0x47"))}))})),n[Da("0x8")](Da("0x1f"),((e,o)=>{const r=t[Da("0x26")][Da("0x1d")](Da("0x3f")),s=r.getSelectionAffectedTableCells(t[Da("0x20")][Da("0x36")][Da("0x34")]),i=r.getColumnIndexes(s),a=s[0].findAncestor("table"),x=a.getAttribute(Da("0x18"))||0,c=o&&null!==o.forceValue?o[Da("0x29")]:!t[Da("0x11")][Da("0x1d")]("setTableColumnHeader")[Da("0x2f")];let l;const u=a.getChild(0),d=c?i[Da("0x45")]:i[Da("0x0")],g=r[Da("0x9")](a,{startRow:0,column:d,includeAllSlots:!1}),f=Array.from(g)[0].cell;if(c){const e=u[Da("0x41")](x);if(f[Da("0x35")](e))return;l=t[Da("0x20")][Da("0x40")](t[Da("0x20")].createPositionBefore(e),t[Da("0x20")][Da("0x14")](f))}else{const e=u[Da("0x41")](x-1);if(!e)return;l=t[Da("0x20")][Da("0x40")](t.model.createPositionBefore(f),t[Da("0x20")].createPositionAfter(e))}t.model[Da("0x2d")]((()=>{n.markBlockFormat(l,{commandName:Da("0x1f"),commandParams:[{forceValue:c}]},[],"setTableColumnHeader")}))})),t[Da("0x3")][Da("0x1")].on("addMarker:suggestion",s(),{priority:Da("0x31")}),t.data[Da("0x1")].on("addMarker:suggestion",((t,e,n)=>{n[Da("0x39")][Da("0x44")]&&s({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:Da("0x31")}),t[Da("0x3")][Da("0x1")].on("removeMarker:suggestion",((t,e,o)=>{const{type:r,id:s}=n[Da("0x38")](e[Da("0x13")]),i=n[Da("0x1b")](s);if(!i.data||"setTableColumnHeader"!=i[Da("0x30")][Da("0x5")])return;const a=o.mapper[Da("0x43")](e.markerName);if(a)for(const t of a)o[Da("0x15")][Da("0x22")]("ck-suggestion-marker-"+r,t),o[Da("0x15")][Da("0x22")](Da("0x1c"),t),o.writer.removeAttribute("data-suggestion",t),o[Da("0xb")][Da("0x48")](t,e[Da("0x13")])}),{priority:Da("0x31")}),n._descriptionFactory[Da("0x3b")]((t=>{const{data:n}=t;if(n){if(Da("0x47")==n[Da("0x5")]){const t=n.commandParams[0][Da("0x29")];return o(kr(e,Da(t?"0x3e":"0xc")))}if(Da("0x1f")==n[Da("0x5")]){const t=n[Da("0x2b")][0].forceValue;return o(kr(e,t?Da("0x32"):"FORMAT_REGULAR_COLUMN"))}}function o(t){return{type:Da("0x27"),content:kr(e,Da("0xd"),t)}}}));const i=r[Da("0x6")]();n[Da("0x7")][Da("0x21")](Da("0x3d"),Da("0x47"),"accept",i),n._suggestionFactory.registerCustomCallback("formatBlock",Da("0x1f"),Da("0x16"),i)}}const Ba=["tablePasteCell","containsRange","oldRange","table","remove","columnInsertionIndexes","showSuggestionHighlights","requires","editor","TableUtils","tableCellBorderStyle","batch","first","findAncestor","change","stop","tablePasteRow","tableCellPadding","differ","last","from","wrap","suggestionUnloaded","Users","createRange","root","editingDowncast","get","ck-suggestion-marker-insertion","plugins","add","has","tablePaste","setAttribute","createRangeIn","formatBlock","getMarkers","activeMarkers","insertionRanges","set","markers","_suggestionFactory","includes","column","rowInsertionIndexes","registerDescriptionCallback","cell","afterInit","listenTo","move","tableCellHorizontalAlignment","find","ck-suggestion-marker","content","_descriptionFactory","fromEntries","insertContent","fill","registerCustomCallback","tableCell","updateMarker","endRow","getChildren","getContainedElement","tableCellSuggestion","commands","TableClipboard","previous","newRange","cells","markMultiRangeDeletion","isInContent","elementToElement","_isForcedDefaultExecutionBlock","row","_splitMarkerName","getRanges","setAttributes","getSuggestions","getAllAdjacentSuggestions","options","insertRows","removeMarker","tableCellBorderWidth","rootName","removeMarkers","join","removeRows","accept","dataDowncast","tablePasteChainId","suggestion","element","map","createPositionBefore","startsWith","attributes","markerToHighlight","locale","deletion","*Replace table cells*","markerAttributes","isEqual","markMultiRangeInsertion","filter","insert","TrackChangesEditing","getRows","_getCoordsForCells","discard","length","tableCellBorderColor","selection","type","getRange","getChangedMarkers","createTableWalker","unwrap","low","deletionRanges","registerPostFixer","insertion","_createdBatches","conversion","markerName","nextSibling","subType","model","suggestion-td","columnInsertionRanges","createElement","hasSuggestion","push","end","tablePasteColumn","rows","getTableIfOnlyTableInContent","insertColumns","_replaceTableSlotCell","getColumns","paragraph","getChild","isEmpty","register","high","getShiftedBy","document","redo","getItems","view","markMultiRangeBlockFormat","next","$graveyard","getAttributes","position","createRangeOn","nodeAfter","name","getColumnIndexes"];var Ua,Ha;Ua=Ba,Ha=355,function(t){for(;--t;)Ua.push(Ua.shift())}(++Ha);const Ga=function(t,e){return Ba[t-=0]},Va=[Ga("0x2e"),Ga("0x4a"),Ga("0x84"),Ga("0xd"),"tableCellVerticalAlignment","tableCellBackgroundColor",Ga("0x8b")],za=Object[Ga("0x12")](Va[Ga("0x38")]((t=>[t,null])));class Wa extends t.Plugin{static get[Ga("0x81")](){return[Ra]}[Ga("0xa")](){const t=this[Ga("0x82")];if(!t[Ga("0x97")][Ga("0x99")](Ga("0x1d")))return;const n=t[Ga("0x97")][Ga("0x95")](Ga("0x45")),o=t[Ga("0x97")][Ga("0x95")](Ga("0x83")),r=t.plugins[Ga("0x95")](Ra),s=t.plugins[Ga("0x95")](Ga("0x1d"));r._tablePostFixingSubtypes[Ga("0x5f")](Ga("0x8a"),"tablePasteColumn"),t[Ga("0x5a")].schema[Ga("0x6a")](Ga("0x1b"),{allowIn:"tableCell",allowContentOf:Ga("0x16"),isLimit:!0}),t[Ga("0x56")][Ga("0x23")]({model:Ga("0x1b"),view:Ga("0x5b")});let i=null;t[Ga("0x5a")].on(Ga("0x13"),((r,a)=>{const[x,c]=a,l=a[a[Ga("0x49")]-1];l&&l.forceDefaultExecution||n[Ga("0x24")]||this[Ga("0x82")][Ga("0x1c")][Ga("0x95")]("trackChanges").value&&function(t,e,n,o,r){if(e&&!e.is("documentSelection"))return!1;const s=r[Ga("0x63")](t,n);if(!s||!$a(s,null,o))return!1;const i=o.getSelectionAffectedTableCells(n[Ga("0x6d")][Ga("0x4b")]);if(!i.length)return!1;const a=i[0][Ga("0x87")]("table"),x=o.getRowIndexes(i),c=o[Ga("0x79")](i),l={startRow:x[Ga("0x86")],endRow:x.last,startColumn:c[Ga("0x86")],endColumn:c[Ga("0x8d")]};return 1==i.length&&(l[Ga("0x18")]+=o[Ga("0x46")](s)-1,l.endColumn+=o[Ga("0x66")](s)-1),$a(a,l,o)}(x,c,t[Ga("0x5a")],o,s)&&(r[Ga("0x89")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Ga("0x5a")].change((()=>{t[Ga("0x5a")].insertContent(a[0],a[1],a[2],a[3],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:r,columnInsertionRanges:s,insertionRanges:x,deletionRanges:c,cells:l}=i;r[Ga("0x49")]&&n.markMultiRangeInsertion(r,Ga("0x8a"),{tablePasteChainId:o}),s.length&&n[Ga("0x42")](s,"tablePasteColumn",{tablePasteChainId:o}),x[Ga("0x49")]&&n[Ga("0x42")](x,Ga("0x9a"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Ga("0x49")]&&n[Ga("0x21")](c,Ga("0x9a"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n[Ga("0x71")](l.map((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Ga("0x7a"),{tablePasteChainId:o});if(u){const e=u[Ga("0x9e")](),n=[];for(const{element:o,attributes:r}of l){if(!r)continue;const s=t.model.createRangeOn(o),i=e[Ga("0xe")]((t=>t[Ga("0x4d")]()[Ga("0x41")](s)));i&&n[Ga("0x5f")]([i.name,r])}n[Ga("0x49")]&&u[Ga("0x9b")](Ga("0x40"),Object[Ga("0x12")](n))}i=null})))}),{priority:e.priorities[Ga("0x6b")]+10}),t[Ga("0x97")].get(Ga("0x1d")).on(Ga("0x65"),((t,e)=>{const[n,o,,r]=e;if(!i)return;t[Ga("0x89")]();const s=n[Ga("0x9")],a=o,x=Ka(s),c=Ka(a);t.return=s;let l=null,u=null;if(c||x)if(x&&!c){r.remove(s[Ga("0x68")](0));for(const t of Array[Ga("0x8e")](a[Ga("0x19")]()))r[Ga("0x44")](t,s,"end");const t=i[Ga("0x7")][Ga("0x5")](n[Ga("0x25")]),e=i[Ga("0x7f")][Ga("0x5")](n[Ga("0x6")]);t||e||(l=r[Ga("0x9c")](s))}else c&&!x&&(u=r[Ga("0x9c")](s));else{const t=r[Ga("0x5d")](Ga("0x1b")),e=r[Ga("0x5d")]("tableCellSuggestion");r[Ga("0x8f")](r.createRangeIn(s),e),r[Ga("0x44")](t,s,0);for(const e of Array[Ga("0x8e")](a[Ga("0x19")]()))r[Ga("0x44")](e,t,Ga("0x60"));l=r[Ga("0x76")](t),u=r[Ga("0x76")](e)}const d=Array[Ga("0x8e")](a[Ga("0x74")]()).filter((([t])=>Va[Ga("0x5")](t)));i[Ga("0x20")][Ga("0x5f")]({element:s,attributes:d.length?Object.fromEntries(d):null}),l&&i[Ga("0x1")][Ga("0x5f")](l),u&&i[Ga("0x52")].push(u)}),{priority:Ga("0x6b")}),o.on(Ga("0x64"),((e,n)=>{const[r,s={}]=n;if(!i)return;const a=s.at||0,x=s.columns||1;i[Ga("0x7f")]=new Array(x)[Ga("0x14")](a)[Ga("0x38")](((t,e)=>t+e));for(const{cell:e}of o[Ga("0x4f")](r,{startColumn:a,endColumn:a+x-1}))i[Ga("0x5c")][Ga("0x5f")](t[Ga("0x5a")].createRangeOn(e))}),{priority:Ga("0x51")}),o.on(Ga("0x2c"),((e,n)=>{const[r,s={}]=n;if(!i)return;const a=s.at||0,x=s[Ga("0x62")]||1;i[Ga("0x7")]=new Array(x)[Ga("0x14")](a)[Ga("0x38")](((t,e)=>t+e));for(const{cell:e}of o[Ga("0x4f")](r,{startRow:a,endRow:a+x-1}))i.rowInsertionRanges[Ga("0x5f")](t[Ga("0x5a")].createRangeOn(e))}),{priority:Ga("0x51")}),n[Ga("0x11")][Ga("0x8")]((e=>{if(e[Ga("0x59")]&&e[Ga("0x59")].startsWith(Ga("0x9a")))return e[Ga("0x1e")]?{}:{type:"insertion",content:kr(t[Ga("0x3d")],Ga("0x3f"))}}));const a=()=>{};for(const t of["tablePaste",Ga("0x61"),Ga("0x8a"),"tablePasteCell"])n._suggestionFactory[Ga("0x15")](Ga("0x54"),t,Ga("0x31"),a),n[Ga("0x4")][Ga("0x15")](Ga("0x3e"),t,Ga("0x31"),a);n[Ga("0x4")][Ga("0x15")](Ga("0x9d"),Ga("0x7a"),Ga("0x48"),a),n._suggestionFactory[Ga("0x15")](Ga("0x9d"),Ga("0x7a"),Ga("0x33"),((e,n,o)=>{const r=e[Ga("0x38")]((t=>t[Ga("0x1a")]())).filter((t=>t)),s=new Map(r.map((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Ga("0x20")])e&&s[Ga("0x2")](t,e);else if(o&&o[Ga("0x40")])for(const[e,n]of Object.entries(o.markerAttributes)){const o=t[Ga("0x5a")][Ga("0x3")][Ga("0x95")](e),r=o?o[Ga("0x4d")]()[Ga("0x1a")]():null;r&&s[Ga("0x2")](r,n)}t[Ga("0x5a")][Ga("0x88")]((t=>{for(const[e,n]of s)t[Ga("0x28")]({...za,...n},e)}))}));const x=(e,o)=>{n[Ga("0x4")][Ga("0x15")](e,Ga("0x9a"),o,((r,s,i)=>{t.model[Ga("0x88")]((t=>{const a=[];for(const t of r){const e=t.start[Ga("0x77")];e.is("element",Ga("0x1b"))&&a.push(e)}n[Ga("0x4")].getSuggestionCallback(e,null,o)(r,s,i);for(const e of a)Ga("0x73")!=e[Ga("0x93")][Ga("0x2f")]&&t[Ga("0x50")](e)}))}))};x("insertion",Ga("0x33")),x(Ga("0x54"),"discard"),x("deletion",Ga("0x33")),x(Ga("0x3e"),Ga("0x48")),n._suggestionFactory[Ga("0x15")](Ga("0x54"),Ga("0x8a"),Ga("0x48"),(t=>{const e=t.map((t=>t.getContainedElement())),n=e[0].findAncestor(Ga("0x7d")),{minRow:s,maxRow:i}=r[Ga("0x47")](e);o[Ga("0x32")](n,{at:s,rows:i-s+1})})),n._suggestionFactory[Ga("0x15")](Ga("0x54"),"tablePasteColumn",Ga("0x48"),(t=>{const e=t[Ga("0x38")]((t=>t[Ga("0x1a")]())),n=e[0][Ga("0x87")](Ga("0x7d")),{minColumn:s,maxColumn:i}=r._getCoordsForCells(e);o.removeColumns(n,{at:s,columns:i-s+1})}));const c=(t,e)=>{if(!e[Ga("0x59")]||!e[Ga("0x59")][Ga("0x3a")](Ga("0x9a")))return;const o=e.attributes.tablePasteChainId,r=n.getSuggestions()[Ga("0x43")]((t=>t[Ga("0x22")]&&t[Ga("0x3b")]&&t.attributes.tablePasteChainId==o));r.length&&e[Ga("0x2a")]()[Ga("0x49")]!=r[Ga("0x49")]&&r.reduce(((t,e)=>(t[Ga("0x72")]=e,e[Ga("0x1e")]=t,e)))};function l(t,{showActiveMarker:e=!0}={}){const{id:o}=n[Ga("0x26")](t[Ga("0x57")]),r=[Ga("0xf"),Ga("0x96")],s=n[Ga("0x0")][Ga("0x5")](t[Ga("0x57")]);return s&&r.push("ck-suggestion-marker--active"),{classes:r,attributes:{"data-suggestion":o},priority:s&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:Ga("0x6b")}),n.on(Ga("0x90"),c,{priority:Ga("0x6b")}),t.model[Ga("0x6d")][Ga("0x53")]((()=>{let e=!1;const o=Array[Ga("0x8e")](t.model[Ga("0x6d")][Ga("0x8c")][Ga("0x4e")]());for(const{name:r,data:s}of o){const{group:o,type:i,id:a}=n[Ga("0x26")](r);if(Ga("0x36")!=o||"deletion"!=i||s[Ga("0x7c")])continue;if(!n[Ga("0x5e")](a))continue;const x=n.getSuggestion(a)[Ga("0x27")](),c=t[Ga("0x97")][Ga("0x95")](Ga("0x91")).me;for(const t of n.getSuggestions())if(t[Ga("0x22")]&&t.author==c&&Ga("0x9d")==t[Ga("0x4c")]&&Ga("0x7a")==t[Ga("0x59")]&&t[Ga("0x27")]().every((t=>x.some((e=>e[Ga("0x7b")](t,!0))))))for(const n of t.getAllAdjacentSuggestions())n[Ga("0x22")]&&(n[Ga("0x48")](),e=!0)}return e})),t[Ga("0x5a")][Ga("0x6d")].registerPostFixer((e=>{const o=t[Ga("0x1c")].get(Ga("0x6e"));if(!o||!o[Ga("0x55")][Ga("0x99")](e[Ga("0x85")]))return!1;let r=!1;const s=t[Ga("0x97")].get("Users").me,i=t[Ga("0x5a")].document[Ga("0x8c")].getChanges(),a=Array[Ga("0x8e")](t[Ga("0x5a")][Ga("0x6d")][Ga("0x8c")][Ga("0x4e")]())[Ga("0x43")]((({name:t,data:e})=>{const{group:o,subType:r,authorId:i}=n._splitMarkerName(t);return Ga("0x36")==o&&Ga("0x9a")==r&&i==s.id&&!e[Ga("0x7c")]}));for(const t of i){if(Ga("0x44")!=t[Ga("0x4c")]||Ga("0x1b")!=t[Ga("0x78")]||1!=t[Ga("0x49")])continue;const n=e[Ga("0x92")](t[Ga("0x75")],t.position[Ga("0x6c")](1));if(!a[Ga("0xe")]((({data:t})=>t[Ga("0x1f")][Ga("0x41")](n))))for(const{name:t,data:o}of a)if(n[Ga("0x7b")](o[Ga("0x1f")])){e[Ga("0x17")](t,{range:n}),r=!0;break}}return r})),t[Ga("0x5a")][Ga("0x6d")][Ga("0x53")]((e=>{let o=!1;const r=t[Ga("0x97")][Ga("0x95")]("Users").me,s=n[Ga("0x29")]()[Ga("0x43")]((t=>t.isInContent&&t.author==r)),i=new Set,a=new Set;for(const t of s)if(Ga("0x9a")==t[Ga("0x59")])for(const e of t[Ga("0x9e")]()){const n=e.getRange()[Ga("0x1a")]();if(n)if(n.is(Ga("0x37"),Ga("0x1b"))&&Ka(n)){t[Ga("0x2d")](e[Ga("0x78")]),i[Ga("0x98")](n),o=!0;const r=n[Ga("0x58")],s=n.previousSibling,x=r&&r.is("element",Ga("0x1b")),c=s&&s.is(Ga("0x37"),Ga("0x1b"));x&&!i[Ga("0x99")](r)&&a[Ga("0x98")](r),c&&!i[Ga("0x99")](s)&&a.add(s)}else n.is(Ga("0x37"),Ga("0x67"))&&n[Ga("0x69")]&&(t[Ga("0x2d")](e[Ga("0x78")]),o=!0)}else if(Ga("0x7a")==t.subType){if(!t[Ga("0x3b")]||!t.attributes[Ga("0x35")])continue;const e=t.attributes[Ga("0x40")];if(e&&Object.keys(e)[Ga("0x49")])continue;const n=t.attributes[Ga("0x35")];let r=!0,i=!0;for(const e of s)if(e[Ga("0x59")]&&e[Ga("0x59")][Ga("0x3a")](Ga("0x9a"))){if(!e[Ga("0x3b")][Ga("0x35")]){i=!1;break}if(e.id!=t.id&&e.attributes[Ga("0x35")]==n){r=!1;break}}i&&r&&(t[Ga("0x30")](),o=!0)}for(const t of i)e[Ga("0x7e")](t);for(const t of a)e[Ga("0x50")](t);return o})),t.conversion.for(Ga("0x94")).markerToHighlight({model:"suggestion:formatBlock:tablePasteCell",view:l,converterPriority:Ga("0x6b")}),t.conversion.for(Ga("0x34"))[Ga("0x3c")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>{if(e[Ga("0x2b")][Ga("0x80")])return l(t,{showActiveMarker:!1})},converterPriority:Ga("0x6b")});const u=t.editing[Ga("0x70")];this[Ga("0xb")](u[Ga("0x6d")],"clipboardOutput",((t,e)=>{const n=[];for(const t of u[Ga("0x9c")](e[Ga("0x10")])[Ga("0x6f")]())t.is(Ga("0x37"),"suggestion-td")&&n.push(t);u[Ga("0x88")]((t=>{for(const e of n)t[Ga("0xc")](t[Ga("0x9c")](e),t[Ga("0x39")](e)),t[Ga("0x7e")](e)}))}))}}function Ka(t){if(t[Ga("0x69")])return!0;const e=t[Ga("0x68")](0);return e.is(Ga("0x37"),Ga("0x67"))&&e[Ga("0x69")]}function $a(t,e={},n){for(const{isAnchor:o,cellHeight:r,cellWidth:s}of n[Ga("0x4f")](t,{includeAllSlots:!0,...e}))if(!o||1!=r||1!=s)return!1;return!0}const qa=["createRange","ELEMENT_TITLE","editor","schema","nodeBefore","start","isCollapsed","TrackChangesEditing","title-content","model","plugins","Title","_descriptionFactory","registerPostFixer","getChangedMarkers","_splitMarkerName","updateMarker","forward","suggestion","document","element","from","end","newRange","has","afterInit","getNearestSelectionRange","isTouching"];var Xa,Ja;Xa=qa,Ja=219,function(t){for(;--t;)Xa.push(Xa.shift())}(++Ja);const Qa=function(t,e){return qa[t-=0]};class Ya extends t.Plugin{[Qa("0x2")](){const t=this[Qa("0x7")];if(!t[Qa("0xf")][Qa("0x1")](Qa("0x10")))return;const e=t[Qa("0xf")].get(Qa("0xc"));e[Qa("0x11")].registerElementLabel(Qa("0xd"),(()=>kr(t.locale,Qa("0x6")))),t[Qa("0xe")][Qa("0x18")][Qa("0x12")]((n=>{let o=!1;const r=Array[Qa("0x1a")](t[Qa("0xe")][Qa("0x18")].differ[Qa("0x13")]());for(const{name:s,data:i}of r){const{group:r}=e[Qa("0x14")](s);if(Qa("0x17")!==r||!i[Qa("0x0")])continue;const a=i[Qa("0x0")],x=a.end[Qa("0x9")];if(!x||!x.is(Qa("0x19"),Qa("0xd")))continue;if(!a[Qa("0xa")][Qa("0x4")](a[Qa("0x1b")]))continue;const c=t[Qa("0xe")][Qa("0x8")][Qa("0x3")](a[Qa("0x1b")],Qa("0x16"));if(c&&c[Qa("0xb")]){const t=n[Qa("0x5")](a[Qa("0xa")],c[Qa("0xa")]);t.isEqual(a)||(n[Qa("0x15")](s,{range:t}),o=!0)}o||(n.removeMarker(s),o=!0)}return o}))}}const Za=["editor","enableCommand","UndoEditing","afterInit","get","redo","plugins","has"];var tx,ex;tx=Za,ex=266,function(t){for(;--t;)tx.push(tx.shift())}(++ex);const nx=function(t,e){return Za[t-=0]};class ox extends t.Plugin{[nx("0x1")](){const t=this[nx("0x6")],e=t[nx("0x4")][nx("0x2")]("TrackChangesEditing");t[nx("0x4")][nx("0x5")](nx("0x0"))&&(e[nx("0x7")]("undo"),e[nx("0x7")](nx("0x3")))}}const rx=["keys","sign","string","charCodeAt","isArray","boolean"];var sx,ix;sx=rx,ix=350,function(t){for(;--t;)sx.push(sx.shift())}(++ix);const ax=function(t,e){return rx[t-=0]};function*xx(t){t?ax("0x3")==typeof t?yield 1:Array[ax("0x2")](t)?yield*function*(t){for(const e of t)yield*xx(e)}(t):"object"==typeof t?yield*cx(t):ax("0x0")==typeof t?yield*lx(t):"number"==typeof t&&(yield t):yield 0}function*cx(t){if(yield ux("{"),t){const e=Object[ax("0x4")](t).sort();for(const n of e){yield*lx(n),yield ux(":");const e=t[n];yield*xx(e)}}yield ux("}")}function*lx(t){yield ux('"');for(const e of t)yield ux(e);yield ux('"')}function ux(t){return t[ax("0x1")](0)}function dx(t){return(t*=Math[ax("0x5")](t)).toString(36)}const gx=["_setSuggestionData","length","refresh","plugins","markerReady","_getSuggestionData","buildSuggestion","track-changes-user-not-found","commandName","isOwn","createPositionAt","includes","PENDING_ACTION_SUGGESTION","marker-count","isBefore","_editor","markBlockFormat","isIntersectingWithRange","formatBlock:accept","_rangeIsInLocalUserInsertion","dataReady","low","skipNestingCheck","addSuggestionData","suggestion","selection","addHighlight","formatInline","deletion:","root","return","trackChanges","getMarkers","subType","type","updateMarker","insertion:","createPositionAfter","unbind","containsRangeInObject","element","values","mapper","_getAuthorFromId","getCustomProperty","deletion","markMultiRangeInsertion","_suggestions","registerCustomCallback","change","then","editing","showSuggestionHighlights","isNextTo","notReady","fromCharCode","init","conversion","markInsertion","setTo","head","createSelection","isObject","markMultiRangeBlockFormat","ready","discardAllSuggestions","splice","_handleNewSuggestionMarker","stop","containsRange","name","_findSuggestions","ck-suggestion-marker--active","clear","removed","howMany","markerToData","adapter","formatBlock","position","suggestionChanged","_refreshSuggestionsChain","isTouching","insert","removeClass","join","push","addSuggestion","range","editingDowncast","PendingActions","fromRange","data","getCommentThread","editor","isAtStart","getItems","formatGroupId","clone","rejected","getChangedMarkers","getIntersection","_descriptionFactory","getSuggestions","markInlineFormat","createRange","isLocal","hasComments","isAfter","_customCallbacks","_createSuggestion","deletion:join","config","suggestion:","getAttribute","originalSuggestionId","collaboration.channelId","parent","discard","_joinWithAdjacentSuggestions","getFirstRange","markDeletion","suggestionUnloaded","isRemovable","open","getNearestSelectionRange","enableCommand","addMarker:suggestion:formatBlock","createRangeIn","track-changes-adapter-missing-getsuggestion","discardSelectedSuggestions","removeMarker:suggestion:formatBlock","accept","model","after","batch","ck-suggestion-marker","map","track-changes-adapter-already-set","createdAt","elementToElement","TrackChangesEditing","formatInline:","split","track-changes-suggestion-data-mismatch","activeMarkers","end","markerToHighlight","_setSuggestionRange","_suggestionState","document","acceptSuggestion","getAncestors","for","before","_commentsRepository","containsItem","add","_checkSuggestionCorrectness","fetchCommentThread","containsPosition","elementStart","markers","Users","forceDefaultExecution","applyOperation","createPositionBefore","isInContent","track-changes-command-not-found","commentThread","_onDiscard","_addSuggestionMarker","acceptSelectedSuggestions","insertion:discard","fire","suggestion-type","CommentsRepository","execute","pluginName","nodeBefore","_updateSuggestionData","isCollapsed","addClass","_cutOutSuggestionMarker","getSuggestion","markMultiRangeDeletion","removeAttribute","updateSuggestion","getRanges","oldRange","formatBlock:chain","value","next","previous","_enabledCommands","addComment","some","targetPosition","formatBlock:","schema","writer","hasCommentThread","multi","_saved","isEqual","_removeSuggestion","removeMarker","data-suggestion","isDocumentOperation","_adapter","dataToMarker","options","change:data","track-changes-suggestion-not-found","nodeAfter","createElement","commands","consume","addMarkerName","isLimit","detach","listenTo","from","filter","markerNameToElements","enableReadOnlyMode","get","high","addMarker","start","differ","getShiftedBy","getFirstMarker","setSelection","_isForcedDefaultExecutionBlock","requires","discardSuggestion","getAllAdjacentSuggestions","getMultiRangeId","isInsideObject","insertContent","isUndo","consumable","_defaultCallbacks","getDifference","insertion:chain","attributes","getWalker","_suggestionFactory","change:activeMarkers","acceptAllSuggestions","newRange","every","_registerDefaultCallbacks","toJSON","removeComment","registerPostFixer","multipleBlocks","remove","addRange","item","author","suggestionLoaded","deletion:accept","textProxy","getSuggestionCallback","markerName","dataDowncast","rootName","sort","trackChangesCommand","_joinSuggestions","formatBlock:discard","removeMarkers","bindElementToMarker","upcast","hasSuggestion","$graveyard","isMultiRange","move","isSelectable","rethrowUnexpectedError","change:_saved","_model","insertion","ck-suggestion-marker-formatBlock","size","documentSelection","has","formatInline:join","deleteContent","locale","toViewElement","_breakSuggestionMarker","isAtEnd","_splitMarkerName","getChanges","moveTargetPosition","highest","set","forward","formatInline:accept"];var fx,mx;fx=gx,mx=368,function(t){for(;--t;)fx.push(fx.shift())}(++mx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{static get[hx("0xa9")](){return[hx("0x6e"),s.Users,t.PendingActions,Or,$r,rs,ls,ms,ys,Rs,Ls,Bs,zs,Js,ei,ii,ui,hi,yi,Ai,Mi,ji,Vi,qi,Zi,sa,ua,ha,Ta,Ra,La,ja,Wa,Ya,ox]}static get[hx("0x70")](){return hx("0x4b")}constructor(t){function e(t){return t[hx("0x47")]((t=>String[hx("0x123")](t)))[hx("0x13")]("")}super(t),this[hx("0xe9")]("activeMarkers",[]),this.on(hx("0xb7"),((e,n,o,r)=>{this._model[hx("0x11d")]((()=>{for(const e of[...r,...o])this[hx("0xd9")][hx("0x60")].has(e)&&t[hx("0x11f")].reconvertMarker(e)}))})),this[hx("0x24")]=new Ir(this[hx("0x1c")].model[hx("0x85")],this[hx("0x1c")][hx("0xe1")]),this[hx("0x8f")]=null,this._suggestionFactory=new bx(this[hx("0x1c")]),this[hx("0x11b")]=new Map,this[hx("0x59")]=t.plugins[hx("0xa0")]("CommentsRepository"),this[hx("0x80")]=new Set,this[hx("0xd9")]=this[hx("0x1c")][hx("0x43")],this[hx("0x53")]=new WeakMap,this[hx("0xa8")]=!1,this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,52,49,50,53,56])}[hx("0x124")](){const t=this.editor;t[hx("0x125")][hx("0x57")](hx("0x17"))[hx("0x51")]({model:hx("0x104"),view:t=>{const{id:e,type:n}=this[hx("0xe5")](t[hx("0xc8")]),o=[hx("0x46"),"ck-suggestion-marker-"+n];let r=3e3;return this[hx("0x4f")][hx("0xf7")](t[hx("0xc8")])&&(o[hx("0x14")](hx("0x6")),r=3010),hx("0x119")==n&&(r+=5),{classes:o,attributes:{"data-suggestion":e},priority:r}}}),t[hx("0x125")][hx("0x57")](hx("0xc9"))[hx("0x5b")]((e=>{e.on("addMarker:suggestion",((e,n,o)=>{if(!o.options[hx("0x120")])return;const r=n[hx("0xc2")];if(!r)return;const s=o[hx("0x116")][hx("0xe2")](r);t[hx("0x43")][hx("0x85")].isObject(r)&&s&&!s[hx("0x118")]("widget")&&s.is("containerElement")&&(0,P.toWidget)(s,o.writer)}),{priority:hx("0xa1")})})),t.conversion.for(hx("0xc9"))[hx("0x51")]({model:hx("0x104"),view:(t,e)=>{if(!e.options[hx("0x120")])return null;const{type:n}=this[hx("0xe5")](t.markerName);return{classes:[hx("0x46"),"ck-suggestion-marker-"+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,r)=>{if(!o.item)return;if(o.item.is(hx("0x105")))return void r[hx("0xb0")][hx("0x97")](o[hx("0xc2")],n[hx("0x4")]);const s=r[hx("0x116")][hx("0xe2")](o[hx("0xc2")]);if(!o.item.is(hx("0x114"))||!t.model.schema.isBlock(o[hx("0xc2")])||s.getCustomProperty(hx("0x106")))return;const{id:i}=this._splitMarkerName(o[hx("0xc8")]);r[hx("0x86")][hx("0x74")](["ck-suggestion-marker","ck-suggestion-marker-formatBlock"],s),r[hx("0x86")].setAttribute(hx("0x8d"),i,s),r[hx("0x116")][hx("0xd0")](s,o[hx("0xc8")]),e&&(this.activeMarkers[hx("0xf7")](o[hx("0xc8")])?r[hx("0x86")].addClass("ck-suggestion-marker--active",s):r[hx("0x86")][hx("0x12")](hx("0x6"),s));for(const e of t[hx("0x43")][hx("0x3e")](o[hx("0xc2")])[hx("0x1e")]())r[hx("0xb0")][hx("0x97")](e,n.name);r[hx("0xb0")][hx("0x97")](o[hx("0xc2")],n[hx("0x4")])};t[hx("0x125")][hx("0x57")](hx("0xc9"))[hx("0x5b")]((t=>{t.on(hx("0x3d"),((t,e,o)=>{o[hx("0x91")][hx("0x120")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:hx("0xe8")})})),t[hx("0x125")][hx("0x57")]("dataDowncast")[hx("0xa")]({model:hx("0x104"),view:(t,e)=>e[hx("0x91")][hx("0x120")]?null:{group:hx("0x104"),name:t.substr(hx("0x104")[hx("0xed")]+1)}}),t[hx("0x125")][hx("0x57")](hx("0xd1"))[hx("0x4a")]({view:{name:hx("0x104"),attribute:{id:/^\w/,suggestionType:/^\w/}},model:(t,{writer:e})=>{let n="suggestion:"+t.getAttribute(hx("0x6d"))+":"+t[hx("0x30")]("id");return t[hx("0x30")](hx("0xf9"))&&(n+=":"+t[hx("0x30")](hx("0xf9"))),e[hx("0x95")]("$marker",{"data-name":n})}}),t[hx("0x125")].for(hx("0xd1"))[hx("0x90")]({view:hx("0x104")}),t.conversion[hx("0x57")](hx("0x17")).add((t=>{t.on(hx("0x3d"),n(),{priority:hx("0xa1")})})),t.conversion.for(hx("0x17")).add((t=>{t.on(hx("0x41"),((t,e,n)=>{const o=n[hx("0x116")][hx("0x9e")](e[hx("0xc8")]);if(o)for(const t of o)t.getCustomProperty(hx("0x106"))||(n[hx("0x86")][hx("0x12")](["ck-suggestion-marker",hx("0xdb"),hx("0x6")],t),n[hx("0x86")][hx("0x78")](hx("0x8d"),t),n.mapper.unbindElementFromMarkerName(t,e.markerName))}),{priority:"high"})})),t.model[hx("0x54")][hx("0xbe")]((e=>{let n=!1;const o=Array.from(t[hx("0x43")].document.differ.getChangedMarkers());for(const{name:i,data:a}of o){const{group:o,type:x,id:c}=this[hx("0xe5")](i);if(hx("0x104")!==o)continue;const l=this._suggestions.get(c);if(null!=a[hx("0xb9")])if(hx("0x107")==x&&(n=n||yx(a.newRange,i,e,t[hx("0x43")][hx("0x85")])),a.newRange[hx("0x73")]||hx("0xd3")==a[hx("0xb9")][hx("0x109")][hx("0xca")]||"formatBlock"==x&&!Cx(a[hx("0xb9")])||hx("0x119")==x&&(_x(s=a[hx("0xb9")])||(r=s)[hx("0xa3")][hx("0x33")]==r[hx("0x50")][hx("0x71")]&&r.start[hx("0xe4")]))e[hx("0x8c")](i),n=!0;else{if(!l||!l[hx("0x65")])continue;n=!!this[hx("0x35")](l)||n}}var r,s;return n})),t.model.document[hx("0xbe")]((e=>{let n=!1;for(const o of t[hx("0x43")][hx("0x54")][hx("0xa4")][hx("0xe6")]()){if(hx("0x11")!=o[hx("0x10e")])continue;const r=o[hx("0xd")][hx("0xa5")](o.length);if(r[hx("0xe4")])for(const s of this[hx("0x11b")].values()){if(s[hx("0xd4")]||!s.isInContent)continue;if(hx("0xc")!=s[hx("0x10e")])continue;const i=s[hx("0x36")]();if(i[hx("0xa3")].parent!=i[hx("0x50")][hx("0x33")]&&i[hx("0x50")][hx("0x8a")](o[hx("0xd")])){const o=t[hx("0x43")][hx("0x27")](i[hx("0xa3")],r);e[hx("0x10f")](s.getFirstMarker(),{range:o}),n=!0}}}return n})),t[hx("0x43")].markers.on("update:suggestion",((t,e,n)=>{if(null==n){const{id:t}=this[hx("0xe5")](e[hx("0x4")]),n=this._suggestions[hx("0xa0")](t);n&&n[hx("0x98")](e.name)}})),t.model.document.on(hx("0x92"),(()=>{const e=Array[hx("0x9c")](t.model.document[hx("0xa4")][hx("0x22")]());e[hx("0xcb")](((t,e)=>{const n=t.data.oldRange,o=e.data.oldRange;return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[hx("0xa3")][hx("0xfa")](o[hx("0xa3")])?-1:1}));const n=new Set;for(const{name:t,data:o}of e){const{group:e,id:r}=this._splitMarkerName(t);if(hx("0x104")===e&&(null===o[hx("0x7b")]&&this[hx("0x1")](t),null===o[hx("0xb9")])){const t=this._suggestions[hx("0xa0")](r);t[hx("0x65")]?n[hx("0x5b")](t):this[hx("0x8b")](t)}}for(const{name:t,data:o}of e){const{group:e,id:r}=this[hx("0xe5")](t);if(hx("0x104")!==e)continue;const s=this[hx("0x11b")][hx("0xa0")](r);null!=o[hx("0xb9")]&&null!=o[hx("0x7b")]&&(this[hx("0xf")](s),n[hx("0x5b")](s[hx("0x128")]))}for(const t of n)this[hx("0x6c")](hx("0xe"),t);n.clear()})),t[hx("0x43")].on(hx("0x63"),((e,n)=>{const o=n[0];if(!this[hx("0x11b")][hx("0xdc")])return;if(!o[hx("0x8e")])return;if(o.batch[hx("0xaf")]||!o[hx("0x45")][hx("0x28")])return;let r,s;switch(o[hx("0x10e")]){case hx("0x11"):r=t[hx("0x43")].createPositionAt(o[hx("0xd")]),s=r[hx("0xa5")](o[hx("0x9")]);break;case hx("0x4d"):r=t[hx("0x43")][hx("0xf6")](o.splitPosition),s=t[hx("0x43")][hx("0xf6")](o[hx("0xe7")]);break;case hx("0xd5"):r=t.model.createPositionAt(o[hx("0x83")]),s=r[hx("0xa5")](o[hx("0x9")]);break;default:return}const i=t[hx("0x43")][hx("0x27")](r,s);t[hx("0x43")][hx("0x11d")]((()=>{for(const{suggestion:t,meta:e}of this[hx("0x5")](i)){if(t[hx("0xd4")])continue;if(hx("0x107")==t[hx("0x10e")])continue;const n=t[hx("0x1a")]&&t[hx("0x1a")][hx("0xbf")];(hx("0xc")!=t[hx("0x10e")]||hx("0x4d")==o.type&&!n)&&(e[hx("0x113")]||"insertion"==t.type&&e[hx("0xf5")]||t.getFirstRange()[hx("0x3")](i)&&this[hx("0xe3")](t,r,s))}}))}),{priority:"lowest"}),t.model.on(hx("0xe0"),((e,n)=>{const o=n[0],r=n[1];if(r&&r.forceDefaultExecution)return;if(this._isForcedDefaultExecutionBlock)return;if(!this[hx("0xcc")][hx("0x7d")])return;if(o[hx("0x73")])return;const s=t[hx("0x43")][hx("0x85")],{start:i,end:a}=o[hx("0x36")](),x=i[hx("0x94")]&&s[hx("0x12a")](i[hx("0x94")])?null:s[hx("0x3b")](i,hx("0xea")),c=a[hx("0x71")]&&s[hx("0x12a")](a[hx("0x71")])?null:s[hx("0x3b")](a,"backward"),l=t[hx("0x43")][hx("0x27")](x?x[hx("0xa3")]:i,c?c[hx("0x50")]:a);t[hx("0x43")][hx("0x11d")]((e=>{this[hx("0x37")](l);const n=t.model.schema[hx("0x3b")](l[hx("0xa3")]);o.is(hx("0xdd"))?e.setSelection(n):o[hx("0x127")](n)})),e[hx("0x2")]()}),{priority:e.priorities.normal+10}),t[hx("0x43")].on(hx("0xae"),((e,n)=>{const o=n[n.length-1];o&&o[hx("0x62")]||this._isForcedDefaultExecutionBlock||this.trackChangesCommand[hx("0x7d")]&&(t[hx("0x43")][hx("0x11d")]((()=>{let o=t[hx("0x43")].insertContent(n[0],n[1],n[2],n[3],{forceDefaultExecution:!0});if(!o)return;e[hx("0x10a")]=o[hx("0x20")]();const r=o[hx("0x50")].nodeBefore,s=t.model.schema;r&&s.isBlock(r)&&!s[hx("0x12a")](r)&&(o=t[hx("0x43")][hx("0x27")](o[hx("0xa3")],t[hx("0x43")][hx("0xf6")](r,hx("0x50")))),this.markInsertion(o)})),e[hx("0x2")]())}),{priority:hx("0xa1")}),this[hx("0xcc")]=new H(t,this[hx("0x80")]),this[hx("0x1c")][hx("0x96")][hx("0x5b")]("trackChanges",this.trackChangesCommand),this[hx("0x3c")](hx("0x10b"));const o=new K(t,this[hx("0x11b")]);t[hx("0x96")][hx("0x5b")](hx("0x55"),o),this[hx("0x3c")]("acceptSuggestion");const r=new Q(t,this._suggestions);t[hx("0x96")][hx("0x5b")]("discardSuggestion",r),this.enableCommand("discardSuggestion"),t[hx("0x96")][hx("0x5b")](hx("0xb8"),new at(t,o,this[hx("0x11b")])),this[hx("0x3c")](hx("0xb8")),t[hx("0x96")].add(hx("0x12d"),new Tt(t,r,this[hx("0x11b")])),this.enableCommand(hx("0x12d")),t.commands[hx("0x5b")]("acceptSelectedSuggestions",new pt(t,o,this[hx("0x11b")])),this[hx("0x3c")](hx("0x6a")),t.commands[hx("0x5b")](hx("0x40"),new Rt(t,r,this[hx("0x11b")])),this.enableCommand(hx("0x40"));const s=t.plugins[hx("0xa0")](hx("0x6e"));this[hx("0x9b")](s,hx("0x81"),((t,{threadId:e})=>{const n=this[hx("0x11b")][hx("0xa0")](e);n&&n[hx("0x67")]&&1===n[hx("0x67")].length&&this._updateSuggestionData(e,{hasComments:!0})}),{priority:"low"}),this[hx("0x9b")](s,hx("0xbd"),((t,{threadId:e})=>{const n=this[hx("0x11b")][hx("0xa0")](e);n&&n[hx("0x67")]&&!n[hx("0x67")].length&&this[hx("0x72")](e,{hasComments:!1})}),{priority:hx("0x101")})}set[hx("0xb")](t){if(this[hx("0x8f")])throw new e.CKEditorError(hx("0x48"),this);this._adapter=t}get[hx("0xb")](){return this[hx("0x8f")]}[hx("0x25")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[hx("0x11b")][hx("0x115")]())t&&!e.isInContent||n[hx("0x14")](e);return e?n.map((t=>t[hx("0xbc")]())):n}[hx("0x76")](t){const n=this[hx("0x11b")].get(t);if(!n)throw new e.CKEditorError(hx("0x93"),this);return n}[hx("0xd2")](t){return this[hx("0x11b")][hx("0xde")](t)}[hx("0x103")](t){const{id:e,authorId:n}=t,[o,r]=t.type.split(":"),s=this[hx("0x11b")][hx("0xa0")](e)||this[hx("0x2c")](o,r,e,n);switch(this._addThreadToSuggestion(s),this[hx("0x5c")](s,o,r||null,n),s[hx("0x49")]=t[hx("0x49")],t[hx("0x1a")]&&(s[hx("0x1a")]=t.data),t[hx("0xb4")]&&(s[hx("0xb4")]=t[hx("0xb4")]),this[hx("0x8f")]&&this[hx("0x8f")][hx("0x15")]||(s[hx("0x89")]=!0),this._suggestionState[hx("0xa0")](s)){case hx("0x122"):this[hx("0x53")][hx("0xe9")](s,hx("0x100"));break;case hx("0xf0"):s[hx("0x65")]?(this[hx("0x53")].set(s,hx("0x12c")),this[hx("0x6c")]("suggestionLoaded",s)):this._suggestionState.set(s,hx("0x8"))}return s}[hx("0x55")](t){this[hx("0x62")]((()=>{this[hx("0x1c")][hx("0x43")][hx("0x11d")]((()=>{for(const e of t[hx("0xab")]())e[hx("0x42")]()}))}))}[hx("0xaa")](t){this[hx("0x62")]((()=>{this[hx("0x1c")][hx("0x43")][hx("0x11d")]((()=>{for(const e of t[hx("0xab")]())e[hx("0x34")]()}))}))}[hx("0x3c")](t,n){const o=this[hx("0x1c")][hx("0x96")][hx("0xa0")](t);if(!o)throw new e.CKEditorError(hx("0x66"),this,{commandName:t});this[hx("0x80")][hx("0x5b")](o),n&&o.on(hx("0x6f"),((t,e)=>{this.trackChangesCommand[hx("0x7d")]&&(this[hx("0xa8")]||e.length>0&&e[e.length-1]&&e[e[hx("0xed")]-1].forceDefaultExecution||(n(((...t)=>o.execute(...t,{forceDefaultExecution:!0})),...e),t[hx("0x2")]()))}),{priority:"high"})}[hx("0x62")](t){let n,o;const r=this[hx("0xa8")];this[hx("0xa8")]=!0;try{n=t()}catch(t){o=t}return r||(this._isForcedDefaultExecutionBlock=!1),o&&e.CKEditorError[hx("0xd7")](o,this),n}[hx("0x126")](t,n=null,o={}){if(t[hx("0x73")])return null;const r=this[hx("0x1c")][hx("0xef")].get(hx("0x61")).me;for(const{suggestion:e,meta:o}of this._findSuggestions(t,hx("0xda")))if(o.isOwn){if(!o[hx("0x121")])return e;if(n==e[hx("0x10d")]){const n=e[hx("0x36")]();return n[hx("0xa3")][hx("0x8a")](t.end)?this[hx("0x52")](e,this[hx("0xd9")][hx("0x27")](t[hx("0xa3")],n[hx("0x50")])):this._setSuggestionRange(e,this[hx("0xd9")].createRange(n.start,t[hx("0x50")])),e}}const s=(0,e.uid)(),i=r.id,a=n?hx("0x110")+n:"insertion",x=this[hx("0xec")]({id:s,type:a,createdAt:new Date,authorId:i,attributes:o});return this[hx("0x69")](a,s,i,t),x}[hx("0x11a")](t,n="multi",o={}){const r=this[hx("0x1c")][hx("0xef")][hx("0xa0")](hx("0x61")).me,s=this[hx("0xb6")].getSuggestionCallback("insertion",n,hx("0x13"));for(const e of this[hx("0x25")]())if(e[hx("0xc3")].id==r.id&&hx("0xda")==e.type&&e.subType==n&&(s(e[hx("0x7a")](),t)||s(t,e[hx("0x7a")]()))){for(const n of t)e[hx("0xc1")](n);return e}for(const e of t)for(const{suggestion:n,meta:o}of this._findSuggestions(e,hx("0xda"))){if(!o[hx("0xf5")])continue;let e=!0;for(const o of n[hx("0x7a")]())for(const n of t)if(!o.containsRange(n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),a=r.id,x=hx("0x110")+n,c=this[hx("0xec")]({id:i,type:x,createdAt:new Date,authorId:a,attributes:o});for(const e of t)this[hx("0x69")](x,i,a,e,Cr[hx("0xac")]());return c}[hx("0x26")](t,n,o=null,r={}){if(o=o||Tx(n),t[hx("0x73")])return;const s=this[hx("0x1c")][hx("0xef")].get(hx("0x61")).me,i=[];for(const{suggestion:e,meta:n}of this[hx("0x5")](t,hx("0xda")))n[hx("0xf5")]&&!n.isInsideObject&&i[hx("0x14")](...e[hx("0x7a")]());const a=function(t,e){const n=[];for(const o of e){const e=t.getIntersection(o);e&&n.push(e)}return n}(t,i),x=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[hx("0xed")];){const o=n[e][hx("0xb2")](t);n[hx("0x0")](e,1,...o),e+=o[hx("0xed")]}}return n}(t,i);a[hx("0xed")]&&this[hx("0xd9")][hx("0x11d")]((()=>{for(const t of a){const e=this._suggestionFactory.getSuggestionCallback(hx("0x107"),o,hx("0x42"));this[hx("0x62")]((()=>e([t],n,r)))}}));for(const t of x){let i=null,a=t[hx("0xa3")],x=t.end;for(const{suggestion:e,meta:n}of this[hx("0x5")](t,hx("0x107"))){if(!n[hx("0xf5")])continue;if(e.subType!=o)continue;const r=e[hx("0x36")]();if(r[hx("0x3")](t,!0))return;a=a[hx("0xfa")](r.start)?a:r[hx("0xa3")],x=x[hx("0x2a")](r[hx("0x50")])?x:r[hx("0x50")],i?r[hx("0xa3")].isBefore(i.getFirstRange()[hx("0xa3")])?(i[hx("0xcf")](),i=e):e[hx("0xcf")]():i=e}const c=this[hx("0xd9")][hx("0x27")](a,x);if(i)this[hx("0x52")](i,c);else{const t=(0,e.uid)(),i=s.id;this[hx("0xec")]({id:t,type:hx("0x4c")+o,data:n,createdAt:new Date,authorId:i,attributes:r}),this[hx("0x69")](hx("0x4c")+o,t,i,c)}}}[hx("0xfc")](t,n,o=[],r=null,s={}){n[hx("0x1f")]||(n[hx("0x1f")]=n[hx("0xf4")]),n[hx("0xbf")]=t.is(hx("0x16")),r=r||Tx(n);const i=o[hx("0x47")]((t=>kx(t,this[hx("0xd9")]))),a=t.is("range")?t:kx(t,this[hx("0xd9")]);i[hx("0x14")](a);let x=!0;for(const t of i)if(!this[hx("0xff")](t)){x=!1;break}if(x){const t=this[hx("0xb6")].getSuggestionCallback(hx("0xc"),r,hx("0x42"));return void this.forceDefaultExecution((()=>t([a],n,s)))}let c=null,l=a[hx("0xa3")],u=a[hx("0x50")];for(const{suggestion:t,meta:e}of this[hx("0x5")](a,hx("0xc"))){if(!e[hx("0xf5")]||e.isNextTo||e.containsRangeInObject||e[hx("0xad")])continue;if(t.data[hx("0x1f")]!=n[hx("0x1f")])continue;const o=t[hx("0x36")]();if(t[hx("0x10d")]==r){if(o[hx("0x3")](a,!0))return;l=l.isBefore(o[hx("0xa3")])?l:o.start,u=u[hx("0x2a")](o[hx("0x50")])?u:o[hx("0x50")],c?o[hx("0xa3")][hx("0xfa")](c[hx("0x36")]().start)?(c[hx("0xcf")](),c=t):t[hx("0xcf")]():c=t}else{const e=a[hx("0x23")](o);this[hx("0x75")](t,e)}}const d=this[hx("0x1c")][hx("0xef")][hx("0xa0")](hx("0x61")).me,g=(0,e.uid)(),f=d.id;c?this[hx("0x52")](c,this[hx("0xd9")].createRange(l,u)):(this[hx("0xec")]({id:g,type:hx("0x84")+r,data:n,createdAt:new Date,authorId:f,attributes:s}),this[hx("0x69")]("formatBlock:"+r,g,f,this[hx("0xd9")][hx("0x27")](l,u)))}[hx("0x12b")](t,n,o=[],r=null,s={}){n.formatGroupId||(n[hx("0x1f")]=n[hx("0xf4")]),n[hx("0xbf")]=!1,r=r||Tx(n);const i=o[hx("0x47")]((t=>kx(t,this[hx("0xd9")]))),a=t[hx("0x47")]((t=>kx(t,this[hx("0xd9")])));i[hx("0x14")](...a);let x=!0;for(const t of i)if(!this[hx("0xff")](t)){x=!1;break}if(x){const t=this[hx("0xb6")].getSuggestionCallback("formatBlock",r,hx("0x42"));return void this.forceDefaultExecution((()=>t(a,n,s)))}const c=this.editor[hx("0xef")][hx("0xa0")](hx("0x61")).me;for(const t of this[hx("0x25")]()){if(t[hx("0xc3")].id!=c.id)continue;if(hx("0xc")!=t[hx("0x10e")]||t.data[hx("0x1f")]!=n.formatGroupId)continue;const e=t.subType==r;for(let n=0;n<a[hx("0xed")];n++){const o=a[n];for(const r of t[hx("0x10c")]()){const s=r.getRange();if(o[hx("0x8a")](s)){e?(a[hx("0x0")](n,1),n--):t[hx("0x8c")](r.name);break}}}}if(0==a[hx("0xed")])return;const l=this._suggestionFactory[hx("0xc7")](hx("0xc"),r,"join");for(const t of this.getSuggestions())if(t[hx("0xc3")].id==c.id&&hx("0xc")==t[hx("0x10e")]&&t[hx("0x1a")][hx("0x1f")]==n[hx("0x1f")]&&t[hx("0x10d")]==r&&(l(t[hx("0x7a")](),a)||l(a,t[hx("0x7a")]()))){for(const e of a)t[hx("0xc1")](e);return t}const u=(0,e.uid)(),d=c.id,g=hx("0x84")+r,f=this[hx("0xec")]({id:u,type:g,data:n,createdAt:new Date,authorId:d,attributes:s});for(const t of a)this[hx("0x69")](g,u,d,t,Cr[hx("0xac")]());return f}[hx("0x37")](t,n=null,o={}){if(t[hx("0x73")])return null;const r=this.editor.plugins[hx("0xa0")](hx("0x61")).me,s=new F.LiveRange(t[hx("0xa3")],t[hx("0x50")]);for(const{suggestion:t,meta:e}of this[hx("0x5")](s,hx("0xda")))if(e[hx("0xf5")]&&!e[hx("0x121")])if(t[hx("0xd4")]){const e=t[hx("0x7a")]()[hx("0x9d")]((t=>"$graveyard"!=t[hx("0x109")][hx("0xca")]));if(e[hx("0xba")]((t=>s[hx("0x3")](t,!0)))&&t[hx("0x34")](),e[hx("0x82")]((t=>t.containsRange(s,!0)))){const t=this[hx("0xb6")].getSuggestionCallback(hx("0x119"),n,hx("0x42"));return this[hx("0x62")]((()=>t([s],null,o))),null}}else{const e=s[hx("0x23")](t.getFirstRange());t[hx("0x68")]([e],null,o)}if(s[hx("0x9a")](),s.isCollapsed||hx("0xd3")==s.root[hx("0xca")])return null;let i=null,a=s[hx("0xa3")],x=s[hx("0x50")];for(const{suggestion:t,meta:e}of this[hx("0x5")](s,hx("0x119")))if(e[hx("0xf5")])if(t[hx("0xd4")]){let e=!0;for(const n of t[hx("0x7a")]()){if(n[hx("0x3")](s,!0))return t;s[hx("0x3")](n)||(e=!1)}e&&t[hx("0x34")]()}else{const e=t[hx("0x36")]();if(e[hx("0x3")](s,!0))return t;a=a.isBefore(e.start)?a:e[hx("0xa3")],x=x[hx("0x2a")](e[hx("0x50")])?x:e[hx("0x50")],i?e.start.isBefore(i.getFirstRange()[hx("0xa3")])?(i[hx("0xcf")](),i=t):t[hx("0xcf")]():i=t}if(i)return this[hx("0x52")](i,this[hx("0xd9")][hx("0x27")](a,x)),i;{const t=(0,e.uid)(),s=this[hx("0xd9")][hx("0x27")](a,x),i=r.id,c=n?hx("0x108")+n:hx("0x119"),l=this[hx("0xec")]({id:t,type:c,createdAt:new Date,authorId:i,attributes:o});return this[hx("0x69")](c,t,i,s),l}}[hx("0x77")](t,n=hx("0x88"),o={}){const r=this[hx("0x1c")][hx("0xef")][hx("0xa0")](hx("0x61")).me,s=t[hx("0x47")]((t=>new F.LiveRange(t.start,t[hx("0x50")]))),i=new Set;for(const t of s)for(const{suggestion:e,meta:n}of this._findSuggestions(t,hx("0xda")))n.isOwn&&!n[hx("0x121")]&&i[hx("0x5b")](e);for(const e of i)if(e.isMultiRange){const r=e[hx("0x7a")]();if((!e[hx("0xb4")]||!e.attributes.skipNestingCheck)&&r[hx("0xba")]((t=>s.some((e=>e.containsRange(t,!0)))))&&e.discard(),s[hx("0xba")]((t=>r[hx("0x82")]((e=>e[hx("0x3")](t,!0)))))){const e=this[hx("0xb6")].getSuggestionCallback(hx("0x119"),n,"accept");return this[hx("0x62")]((()=>e(t,null,o))),null}}else{const t=e[hx("0x36")]();if(s[hx("0x82")]((e=>e.containsRange(t,!0)))&&e[hx("0x34")](),s.every((e=>t[hx("0x3")](e,!0)))){const t=this[hx("0xb6")].getSuggestionCallback(hx("0x119"),n,"accept");return this[hx("0x62")]((()=>t(s,null,o))),null}}const a=this._suggestionFactory[hx("0xc7")](hx("0x119"),n,hx("0x13"));let x=null;for(const t of this.getSuggestions())if(t[hx("0xc3")].id==r.id&&t.isInContent&&"deletion"==t[hx("0x10e")]&&t.subType==n&&(a(t[hx("0x7a")](),s)||a(s,t[hx("0x7a")]())))if(x){if(t.commentThread&&t[hx("0x67")].length)continue;for(const e of t[hx("0x7a")]())x[hx("0xfd")](e)||x[hx("0xc1")](e);t[hx("0xcf")]()}else{x=t;for(const e of s)t[hx("0xfd")](e)||t[hx("0xc1")](e)}if(x)return x;i[hx("0x7")]();for(const t of s)for(const{suggestion:e,meta:n}of this[hx("0x5")](t,hx("0x119")))n[hx("0xf5")]&&i[hx("0x5b")](e);for(const t of i){const e=t[hx("0x7a")]();if((!o||!o[hx("0x102")])&&s[hx("0xba")]((t=>e[hx("0x82")]((e=>e.containsRange(t,!0))))))return t;(!t[hx("0xb4")]||!t[hx("0xb4")][hx("0x102")])&&e.every((t=>s[hx("0x82")]((e=>e[hx("0x3")](t,!0)))))&&t[hx("0x34")]()}const c=(0,e.uid)(),l=r.id,u="deletion:"+n,d=this[hx("0xec")]({id:c,type:u,createdAt:new Date,authorId:l,attributes:o});for(const t of s)t.detach(),t.isCollapsed||hx("0xd3")==t[hx("0x109")][hx("0xca")]||this[hx("0x69")](u,c,l,t,Cr.getMultiRangeId());return d}[hx("0x52")](t,e){const n=t[hx("0xa6")]();this[hx("0xd9")][hx("0x11d")]((t=>{t[hx("0x10f")](n,{range:e})}))}_addThreadToSuggestion(t){const e=t.id,n=this[hx("0x1c")][hx("0x2e")][hx("0xa0")](hx("0x32"));this._commentsRepository[hx("0x87")](e)||this[hx("0x59")].addCommentThread({channelId:n,threadId:e});const o=this[hx("0x59")][hx("0x1b")](e);o[hx("0x112")](hx("0x39")),o[hx("0x39")]=!1,t[hx("0x67")]=o}[hx("0x5c")](t,n,o,r){if(t[hx("0x10e")]!=n||t[hx("0x10d")]!=o||t[hx("0xc3")].id!=r)throw this[hx("0x1c")][hx("0x9f")](hx("0x4e")),new e.CKEditorError("track-changes-suggestion-data-mismatch",this)}[hx("0x75")](t,n){const o=t[hx("0x36")]();if(n[hx("0x8a")](o))t.removeMarkers();else if(o[hx("0x3")](n)){const r=this[hx("0xd9")].createPositionAt(n.start[hx("0x71")],hx("0x50"));this[hx("0x52")](t,this[hx("0xd9")][hx("0x27")](o[hx("0xa3")],r));const s=(0,e.uid)(),i=t[hx("0xc3")].id,a=t[hx("0x10e")]+":"+t.subType;this._setSuggestionData({id:s,type:a,createdAt:new Date,authorId:i,data:t[hx("0x1a")],attributes:t[hx("0xb4")]});const x=this[hx("0xd9")][hx("0xf6")](n[hx("0x50")].parent,hx("0x44")),c=this[hx("0xd9")].createRange(x,o[hx("0x50")]);this._addSuggestionMarker(a,s,i,c)}else if(o[hx("0x5e")](n.start)){const e=this[hx("0xd9")][hx("0xf6")](n.start[hx("0x71")],hx("0x50"));this[hx("0x52")](t,this[hx("0xd9")][hx("0x27")](o[hx("0xa3")],e))}else{const e=this[hx("0xd9")].createPositionAt(n[hx("0x50")][hx("0x33")],hx("0x44"));this[hx("0x52")](t,this[hx("0xd9")][hx("0x27")](e,o[hx("0x50")]))}}[hx("0xff")](t){for(const{suggestion:e,meta:n}of this[hx("0x5")](t,hx("0xda"))){if(!n.isOwn)continue;const o=e[hx("0x7a")]();for(const e of o)if(!t.getDifference(e).length)return!0}return!1}[hx("0x117")](t){const n=this[hx("0x1c")][hx("0xef")].get(hx("0x61")).getUser(t);if(!n)throw new e.CKEditorError(hx("0xf3"),this);return n}[hx("0x2c")](t,e,n,o){const r=this[hx("0x117")](o),s=this._suggestionFactory.buildSuggestion(t,e,n,r,(t=>this[hx("0x72")](n,{attributes:t})));return this[hx("0x9b")](s,"accept",(()=>{this[hx("0x72")](n,{state:"accepted"})}),{priority:hx("0xa1")}),this.listenTo(s,"discard",(()=>{this._updateSuggestionData(n,{state:hx("0x21")})}),{priority:hx("0xa1")}),this[hx("0x11b")][hx("0xe9")](n,s),this._suggestionState[hx("0xe9")](s,hx("0x122")),s}_splitMarkerName(t){const e=t[hx("0x4d")](":");return{group:e[0],type:e[1],subType:e[hx("0xed")]>=5?e[2]:null,id:e.length<5?e[2]:e[3],authorId:e[hx("0xed")]<5?e[3]:e[4],markerCount:6==e[hx("0xed")]?e[5]:null}}[hx("0xe3")](t,n,o){const r=t.getFirstRange(),s=r[hx("0xa3")],i=r.end;this[hx("0x52")](t,this[hx("0xd9")][hx("0x27")](s,n));const a=(0,e.uid)(),x=t[hx("0xc3")].id,c=t[hx("0x10e")]+(t[hx("0x10d")]?":"+t[hx("0x10d")]:"");this[hx("0xec")]({id:a,type:c,createdAt:new Date,authorId:x,originalSuggestionId:t.id,data:t[hx("0x1a")]}),hx("0xc")==t.type&&(o=this[hx("0xd9")][hx("0x64")](o.parent)),this._addSuggestionMarker(c,a,x,this._model.createRange(o,i))}_findSuggestions(t,e=null){const n=[],o=this[hx("0xd9")][hx("0x85")],r=this[hx("0x1c")][hx("0xef")].get(hx("0x61")).me;for(const s of this[hx("0x25")]())if(s.isInContent&&(!e||s.type==e))for(const e of s[hx("0x7a")]()){const i=t[hx("0xa3")][hx("0x8a")](e[hx("0x50")])||t[hx("0x50")][hx("0x8a")](e[hx("0xa3")]);if(i||t[hx("0x23")](e)){const a=t[hx("0x3")](e)&&Ex(o,e[hx("0xa3")],t),x=e[hx("0x3")](t)&&Ex(o,t[hx("0xa3")],e);n[hx("0x14")]({suggestion:s,meta:{isOwn:r==s.author,isNextTo:i,isInsideObject:a,containsRangeInObject:x}});break}}return n}[hx("0x69")](t,e,n,o,r=null){this[hx("0xd9")][hx("0x11d")]((s=>{let i=hx("0x2f")+t+":"+e+":"+n;r&&(i=i+":"+r),s[hx("0xa2")](i,{range:o,usingOperation:!0,affectsData:!0})}))}_removeSuggestion(t){const e=t[hx("0x7f")],n=t[hx("0x7e")];t.previous=null,null!=e&&(e[hx("0x7e")]=null),t[hx("0x7e")]=null,null!=n&&(n[hx("0x7f")]=null),hx("0x12c")==this[hx("0x53")][hx("0xa0")](t)&&(this[hx("0x53")].set(t,"removed"),this[hx("0x6c")](hx("0x38"),t,e,n))}[hx("0xec")](t){const e=t.id,n=this.addSuggestionData(t);if(this[hx("0x8f")]&&this._adapter.addSuggestion){const o=this[hx("0x1c")][hx("0xef")][hx("0xa0")](hx("0x18")),r=n[hx("0x29")],s=n[hx("0x10d")]?n[hx("0x10e")]+":"+n[hx("0x10d")]:n[hx("0x10e")],i=this.editor[hx("0xe1")],a=o.add(kr(i,"PENDING_ACTION_SUGGESTION")),x={id:e,type:s,hasComments:r,data:t.data||null,originalSuggestionId:t[hx("0x31")]||null,attributes:n[hx("0xb4")]};this[hx("0x8f")].addSuggestion(x)[hx("0x11e")]((t=>{n[hx("0x89")]=!0,o[hx("0xc0")](a),t&&t[hx("0x49")]&&(this[hx("0x11b")][hx("0xa0")](e)[hx("0x49")]=t[hx("0x49")])}))}return n}[hx("0x72")](t,e){const n=this[hx("0x1c")][hx("0xef")][hx("0xa0")]("PendingActions"),o=this[hx("0x11b")][hx("0xa0")](t);if(this[hx("0x8f")]&&this[hx("0x8f")].updateSuggestion)if(o._saved){const o=n[hx("0x5b")](kr(this[hx("0x1c")][hx("0xe1")],hx("0xf8")));this[hx("0x8f")][hx("0x79")](t,e).then((()=>{n[hx("0xc0")](o)}))}else o.on(hx("0xd8"),(()=>{this[hx("0x72")](t,e)}))}[hx("0xf1")](t){if(!this[hx("0x8f")]||!this._adapter.getSuggestion)throw new e.CKEditorError(hx("0x3f"),this);return this[hx("0x8f")].getSuggestion(t)}[hx("0x1")](t){const{id:e,type:n,subType:o,authorId:r}=this._splitMarkerName(t),s=this[hx("0x11b")][hx("0xa0")](e)||this[hx("0x2c")](n,o,e,r);switch(this[hx("0x5c")](s,n,o,r),this[hx("0x53")].get(s)){case hx("0x122"):this[hx("0xf1")](e)[hx("0x11e")]((t=>{let n=Promise.resolve();t[hx("0x29")]&&(n=this[hx("0x59")][hx("0x5d")]({channelId:this[hx("0x1c")][hx("0x2e")][hx("0xa0")]("collaboration.channelId"),threadId:e})),n[hx("0x11e")]((()=>{this[hx("0x103")](t)[hx("0x89")]=!0}))})),this[hx("0x53")][hx("0xe9")](s,hx("0xf0"));break;case"removed":this[hx("0x72")](e,{state:hx("0x3a")});case hx("0x100"):this[hx("0x53")][hx("0xe9")](s,hx("0x12c")),this[hx("0x6c")](hx("0xc4"),s);break;case hx("0x12c"):this[hx("0x6c")]("suggestionChanged",s)}s.addMarkerName(t),this[hx("0xf")](s)}_refreshSuggestionsChain(t){if(t[hx("0xd4")])return;let e=!0,n=!0;for(const o of this[hx("0x25")]()){if(o.isMultiRange)continue;if(o==t||!o[hx("0x65")])continue;if(o[hx("0xc3")].id!=t[hx("0xc3")].id)continue;const r=this._suggestionFactory[hx("0xc7")](t[hx("0x10e")],t[hx("0x10d")],"chain"),s=this._suggestionFactory.getSuggestionCallback(o[hx("0x10e")],o[hx("0x10d")],"chain"),i=r(t,o),a=s(t,o);i&&a&&(i[1].commentThread&&i[1][hx("0x67")][hx("0xed")]||(i[0][hx("0x7e")]=i[1],i[1].previous=i[0],i[0]==t?n=!1:e=!1))}t[hx("0x7f")]&&e&&(t[hx("0x7f")][hx("0x7e")]=null,t[hx("0x7f")]=null),t[hx("0x7e")]&&n&&(t[hx("0x7e")][hx("0x7f")]=null,t[hx("0x7e")]=null)}[hx("0x35")](t){for(const e of this[hx("0x11b")][hx("0x115")]()){if(e==t||!e.isInContent)continue;if(e[hx("0x10e")]!=t[hx("0x10e")]||e[hx("0xc3")].id!=t[hx("0xc3")].id||e[hx("0x10d")]!=t[hx("0x10d")])continue;const n=this[hx("0xb6")][hx("0xc7")](t[hx("0x10e")],t[hx("0x10d")],"join");if(n(e[hx("0x7a")](),t[hx("0x7a")]())){if(t[hx("0x67")]&&t[hx("0x67")][hx("0xed")])continue;return this[hx("0xcd")](e,t),!0}if(n(t[hx("0x7a")](),e[hx("0x7a")]())){if(e[hx("0x67")]&&e[hx("0x67")][hx("0xed")])continue;return this[hx("0xcd")](t,e),!0}}return!1}[hx("0xcd")](t,e){if(t[hx("0xd4")])for(const n of e[hx("0x7a")]())t.addRange(n);else{const n=e[hx("0x36")]()[hx("0x50")];this[hx("0x52")](t,this[hx("0xd9")][hx("0x27")](t[hx("0x36")]()[hx("0xa3")],n))}e[hx("0xcf")]()}}(0,e.mix)(px,e.EmitterMixin);class bx{constructor(t){this[hx("0xfb")]=t,this._model=t[hx("0x43")],this[hx("0x2b")]=new Map,this._defaultCallbacks=new Map,this._registerDefaultCallbacks()}[hx("0xf2")](t,e,n,o,r){return new Cr(this._model,{type:t,subType:e,id:n,author:o,onAttributesChange:r,onAccept:(...n)=>this[hx("0xc7")](t,e,hx("0x42"))(...n),onDiscard:(...n)=>this[hx("0xc7")](t,e,hx("0x34"))(...n)})}[hx("0x11c")](t,e,n,o){const r=t+":"+e+":"+n;this._customCallbacks[hx("0xe9")](r,o)}[hx("0xc7")](t,e,n){const o=t+":"+e+":"+n;return this[hx("0x2b")].get(o)||this[hx("0xb1")].get(t+":"+n)}[hx("0xbb")](){const t=()=>{},e=t=>{t[hx("0xcb")](((t,e)=>t[hx("0xa3")][hx("0xfa")](e[hx("0xa3")])?1:-1)),this._model[hx("0x11d")]((e=>{for(const n of t){let t;t=n[hx("0x50")][hx("0xe4")]&&n[hx("0x50")][hx("0x33")]==n[hx("0xa3")][hx("0x94")]?e[hx("0x129")](n[hx("0xa3")].nodeAfter,"on"):e.createSelection(n),this[hx("0xd9")][hx("0xe0")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[hx("0xd9")][hx("0x11d")]((n=>{const{commandName:o,commandParams:r=[]}=e,s=t[0];if(hx("0xd3")==s.root[hx("0xca")])return;const i=Array[hx("0x9c")](this[hx("0xd9")][hx("0x54")].selection[hx("0x7a")]()).map((t=>F.LiveRange[hx("0x19")](t)));_x(s)?n.setSelection(this[hx("0xd9")][hx("0x27")](s[hx("0x50")])):n[hx("0xa7")](s);for(const t of this[hx("0xfb")][hx("0x96")][hx("0x96")]())t[hx("0xee")]();r.push({forceDefaultExecution:!0}),this[hx("0xfb")][hx("0x6f")](o,...r);const a=i.filter((t=>"$graveyard"!=t[hx("0x109")][hx("0xca")]));a.length>0&&n[hx("0xa7")](a);for(const t of i)t[hx("0x9a")]()}))},o=(t,e)=>1==t.length&&1==e[hx("0xed")]&&t[0][hx("0x50")][hx("0x8a")](e[0][hx("0xa3")]),r=(t,e)=>vx(t,e,this[hx("0xd9")])?[t,e]:vx(e,t,this[hx("0xd9")])?[e,t]:null;this._defaultCallbacks.set("insertion:accept",t),this[hx("0xb1")][hx("0xe9")](hx("0x6b"),e),this[hx("0xb1")][hx("0xe9")]("insertion:join",o),this._defaultCallbacks[hx("0xe9")](hx("0xb3"),r),this[hx("0xb1")][hx("0xe9")](hx("0xc5"),e),this._defaultCallbacks[hx("0xe9")]("deletion:discard",t),this._defaultCallbacks[hx("0xe9")](hx("0x2d"),o),this[hx("0xb1")][hx("0xe9")]("deletion:chain",r),this[hx("0xb1")][hx("0xe9")](hx("0xeb"),n),this[hx("0xb1")][hx("0xe9")]("formatInline:discard",t),this[hx("0xb1")].set(hx("0xdf"),o),this[hx("0xb1")][hx("0xe9")]("formatInline:chain",t),this[hx("0xb1")][hx("0xe9")](hx("0xfe"),n),this[hx("0xb1")][hx("0xe9")](hx("0xce"),t),this[hx("0xb1")][hx("0xe9")]("formatBlock:join",o),this[hx("0xb1")][hx("0xe9")](hx("0x7c"),t)}}function Ex(t,e,n){for(const o of e[hx("0x33")][hx("0x56")]({includeSelf:!0,parentFirst:!0})){if(o[hx("0x109")]==o)return!1;if(!n[hx("0x5a")](o))return!1;if(t.isObject(o)||t[hx("0x99")](o))return!0}}function _x(t){return t[hx("0x50")][hx("0x33")]==t[hx("0xa3")].nodeAfter&&t.end[hx("0x1d")]}function yx(t,e,n,o){const r=t=>!t[hx("0xc2")].is(hx("0xc6"))&&!o[hx("0x12a")](t[hx("0xc2")]),s=t[hx("0xa3")].getLastMatchingPosition(r),i=t[hx("0x50")].getLastMatchingPosition(r,{direction:"backward"});return!(t.start[hx("0x8a")](s)&&t[hx("0x50")][hx("0x8a")](i)||(s[hx("0xfa")](i)?n[hx("0x10f")](e,{range:n[hx("0x27")](s,i)}):n.removeMarker(e),0))}function Tx(t){return function(t){let e=0,n=0;for(const o of cx(t))e=(e<<5)-e+o,e&=e,[e,n]=[n,e];return dx(e)+dx(n)}(t)}function Cx(t){const e=t[hx("0xa3")][hx("0x94")];return e&&e.is(hx("0x114"))}function kx(t,e){const n=e[hx("0x85")].isObject(t)||e[hx("0x85")][hx("0xd6")](t);return e[hx("0x27")](e[hx("0xf6")](t,hx("0x58")),n?e[hx("0x111")](t):e[hx("0xf6")](t,"end"))}function vx(t,e,n){const o=t[hx("0x36")](),r=e[hx("0x36")]();if(o[hx("0x50")][hx("0x8a")](r[hx("0xa3")]))return!0;if(t[hx("0x10e")]!=e[hx("0x10e")])return!1;if(!o[hx("0x50")][hx("0x10")](r[hx("0xa3")]))return!1;const s=n[hx("0x27")](o[hx("0x50")],r[hx("0xa3")])[hx("0xb5")]();for(const t of s)if([hx("0x5f"),"elementEnd"][hx("0xf7")](t.type)&&n[hx("0x85")].isLimit(t.item))return!1;return!0}var Ax,Rx,Sx=["unbind","destroy","bind","model","discardSuggestion","listenTo","acceptSuggestion","_discardCommand","isEnabled","execute","_acceptCommand","view","commentThreadController"];Ax=Sx,Rx=194,function(t){for(;--t;)Ax.push(Ax.shift())}(++Rx);var Ix=function(t,e){return Sx[t-=0]};class wx{constructor(t,e,n,o,r){this[Ix("0x4")]=t,this[Ix("0xc")]=e,this[Ix("0x0")]=r,this[Ix("0xb")]=n,this[Ix("0x8")]=o,this[Ix("0xc")][Ix("0x3")](Ix("0x9")).to(this[Ix("0xb")]),this[Ix("0x6")](e,"acceptSuggestion",(()=>this[Ix("0x7")]())),this.listenTo(e,Ix("0x5"),(()=>this[Ix("0x5")]()))}[Ix("0x7")](){this[Ix("0xb")][Ix("0xa")](this[Ix("0x4")].id)}discardSuggestion(){this[Ix("0x8")][Ix("0xa")](this[Ix("0x4")].id)}[Ix("0x2")](){this.view[Ix("0x1")](Ix("0x9")),this.stopListening(),this[Ix("0x0")][Ix("0x2")]()}}(0,e.mix)(wx,e.ObservableMixin);const Mx=["_createCommentThreadInputView","commentInputView","_config","descriptionParts","updateComment","_model","length","isActive","hasDirtyComment","set","fire","editor","addComment","commentThread","element","commentsListView","bind","destroy","value","showInput","isDirty","focus","delegate","submit","locale","_localUser","isReadOnly","_createCommentViews","setData","createdAt","commentThreadInputView","disabledSubmit","assign"];var Nx,Lx;Nx=Mx,Lx=409,function(t){for(;--t;)Nx.push(Nx.shift())}(++Lx);const Ox=function(t,e){return Mx[t-=0]};class Fx extends r.View{constructor(t,e,n,o){super(t),this[Ox("0x2")]=null,this[Ox("0x11")]=null,this[Ox("0x1d")](Ox("0x1b"),!1),this[Ox("0x1d")](Ox("0x10"),e.createdAt),this.bind(Ox("0x10")).to(e),this[Ox("0x1d")](Ox("0x17"),[]),this[Ox("0x1d")](Ox("0x7"),!1),this.set("isEnabled",!1),this._model=e,this[Ox("0xc")]=n,this[Ox("0x16")]=o,o.disableComments?this.set(Ox("0x1a"),1):this[Ox("0xe")]()}[Ox("0x8")](){this[Ox("0x1")].focus()}[Ox("0x4")](){this[Ox("0x7")]=!1,this[Ox("0x2")]&&this[Ox("0x2")][Ox("0x4")](),this[Ox("0x11")]&&this.commentThreadInputView.destroy(),super.destroy()}[Ox("0xe")](){const{CommentsListView:t}=this[Ox("0x16")];this[Ox("0x2")]=new t(this.locale,this._model[Ox("0x0")],Object[Ox("0x13")]({CommentView:this[Ox("0x16")].CommentView},this._config)),this.commentsListView.delegate("removeComment").to(this),this.commentsListView[Ox("0x9")](Ox("0x18")).to(this),this[Ox("0x2")].bind(Ox("0x1b")).to(this),this[Ox("0x1d")](Ox("0x1a"),this[Ox("0x2")][Ox("0x1a")]+1),this.bind(Ox("0x1a")).to(this[Ox("0x2")],"length",(t=>t+1)),this.commentThreadInputView=this._createCommentThreadInputView(),this.on("removeComment",(()=>this[Ox("0x8")]())),this[Ox("0x3")](Ox("0x7")).to(this[Ox("0x2")],Ox("0x1c"),this[Ox("0x11")].commentInputView,"value",((t,e)=>t||!!e))}[Ox("0x14")](){const{CommentThreadInputView:t}=this[Ox("0x16")],e=new t(this[Ox("0xb")],this[Ox("0xc")],this[Ox("0x16")].editorConfig),n=e[Ox("0x15")];return e[Ox("0x3")](Ox("0x6")).to(this,Ox("0x1b"),this[Ox("0x19")].commentThread,"isReadOnly",n,Ox("0x5"),((t,e,n)=>!!n||t&&!e)),n.on(Ox("0xa"),((t,e)=>{this[Ox("0x1e")](Ox("0x20"),e),n[Ox("0x1f")][Ox("0xf")]("")})),n.on("cancel",(()=>this[Ox("0x8")]())),n[Ox("0x3")](Ox("0x12")).to(this[Ox("0x19")][Ox("0x0")],Ox("0xd")),e}}const Px=["acceptButton","element","ck-suggestion__info-name","isEnabled","ck-suggestion-","discardButton","set","_createButton",'<span class="ck-suggestion-color" style="background-color: ',"Accept suggestion","description","join","ck-annotation__info-time","type","innerText",'<span class="ck-suggestion-type">',"time","ck-suggestion--accept","getTemplate","isActive","innerHTML","title","ck-annotation__info-name","ck-suggestion__main","Discard suggestion","ck-annotation__info","push","commentsListView","extendTemplate","bind","</span>","value","span","commentThreadInputView","fire","ck-suggestion__actions","ck-annotation__actions","_descriptionElement","ck-suggestion--disabled-comments","check","userView","createElement","cancel","disableComments","author","color","setTemplate","ck-suggestion-wrapper--active",'"></span>',"ck-suggestion__info","formatDateTime","execute","ck-suggestion--discard","change:description","querySelector","div","map","render","content","</p>","commentThread","_model","ck-annotation","<p>","ck-suggestion-wrapper","ck-comment__info-time","children","ck-annotation__user","ck-annotation__content-wrapper","split","ck-suggestion__user","descriptionParts"];var Dx,jx;Dx=Px,jx=195,function(t){for(;--t;)Dx.push(Dx.shift())}(++jx);const Bx=function(t,e){return Px[t-=0]};class Ux extends Fx{constructor(e,n,o,r){super(e,n,o,r),this[Bx("0x1b")](Bx("0x22"),""),this[Bx("0x32")]("type").to(this,Bx("0x14"),(t=>t&&t[0]?t[0][Bx("0x22")]:"")),this[Bx("0x32")](Bx("0x1f")).to(this,"descriptionParts",this,Bx("0x28"),((t,e)=>{let n="";for(const e of t)n+=Bx("0xc")+Hx(e[Bx("0x7")],e[Bx("0x42")])+Bx("0x8");return e?n:(0,s.trimHtml)(n,{limit:140})})),this[Bx("0x3a")]=null,this.acceptButton=this[Bx("0x1c")](kr(e,Bx("0x1e")),t.icons[Bx("0x3c")],Bx("0x26"),"acceptSuggestion"),this[Bx("0x1a")]=this[Bx("0x1c")](kr(e,Bx("0x2d")),t.icons[Bx("0x3f")],Bx("0x1"),"discardSuggestion"),this[Bx("0x3d")]=new s.UserView(e,this[Bx("0xa")][Bx("0x41")]),this[Bx("0x3d")][Bx("0x31")]({attributes:{class:[Bx("0x13"),Bx("0x10")]}}),this[Bx("0x43")](this[Bx("0x27")]())}getTemplate(){const t=this.bindTemplate,e={tag:Bx("0x4"),attributes:{class:[Bx("0xd"),t.if(Bx("0x28"),Bx("0x44")),t.to("type",(t=>Bx("0x19")+t)),this._config[Bx("0x40")]&&Bx("0x3b")],"data-suggestion-id":this[Bx("0xa")].id,"data-thread-id":this[Bx("0xa")][Bx("0x9")].id,"data-author-id":this[Bx("0xa")][Bx("0x41")].id,tabindex:-1},children:[{tag:Bx("0x4"),attributes:{class:["ck-suggestion",Bx("0xb")]},children:[this[Bx("0x3d")],{tag:Bx("0x4"),attributes:{class:[Bx("0x2c"),"ck-annotation__main"]},children:[{tag:"div",attributes:{class:[Bx("0x46"),Bx("0x2e")]},children:[{tag:Bx("0x35"),children:[{text:this[Bx("0x3d")].name}],attributes:{class:[Bx("0x17"),Bx("0x2b")]}},{tag:Bx("0x25"),attributes:{datetime:t.to("createdAt"),class:[Bx("0xe"),Bx("0x21")]},children:[{text:t.to("createdAt",(t=>this._config[Bx("0x47")](t)))}]}]},{tag:Bx("0x4"),attributes:{class:[Bx("0x38"),Bx("0x39")]},children:[this[Bx("0x15")],this[Bx("0x1a")]]},{tag:"div",attributes:{class:[Bx("0x11")]}}]}]}]};return this[Bx("0x30")]&&this[Bx("0x36")]&&e[Bx("0xf")][Bx("0x2f")](this[Bx("0x30")],this[Bx("0x36")]),e}[Bx("0x6")](){super[Bx("0x6")](),this[Bx("0x3a")]=this[Bx("0x16")][Bx("0x3")](".ck-annotation__content-wrapper"),this[Bx("0x3a")][Bx("0x29")]=this[Bx("0x1f")],this.on(Bx("0x2"),((t,e,n)=>{this[Bx("0x3a")][Bx("0x29")]=n}))}[Bx("0x1c")](t,e,n,o){const s=new r.ButtonView(this.locale);return s[Bx("0x1b")]({label:t,icon:e,tooltip:!0}),s.extendTemplate({attributes:{class:n}}),s.on(Bx("0x0"),(()=>{this[Bx("0x37")](o,this[Bx("0xa")].id)})),s[Bx("0x32")](Bx("0x18")).to(this),s}}function Hx(t,e){let n="";return n+=t[Bx("0x12")]("*")[Bx("0x5")](((t,e)=>e%2!=0?Bx("0x24")+Gx(t)+Bx("0x33"):Gx(t)))[Bx("0x20")](""),e&&(n+=Bx("0x1d")+e[Bx("0x34")]+'" title="'+e[Bx("0x2a")]+Bx("0x45")),n}function Gx(t){const e=document[Bx("0x3e")](Bx("0x35"));return e[Bx("0x23")]=t,e[Bx("0x29")]}var Vx=n(596),zx=n.n(Vx);const Wx=["_createUIButton","change:previous","getRange","_disableComments","_viewToController","discardSuggestion","comments.maxThreadTotalWeight","reduce","actionView","PENDING_ACTION_SUGGESTION","PendingActions","isMultiRange","toMany","values","buttonView","head","getSuggestion","commands","source","destroy","Discard all suggestions","config","getAllAdjacentSuggestions","locale","createCommentThreadController","push","trackChanges.disableComments","_debouncedHandlers","getContainedElement","get","_updateController","requires","commentThread","unbind","change:isDirty","define","plugins","_destroyController","TrackChangesEditing","comments","filter","acceptAllSuggestions","some","from","_suggestionToController","suggestionUnloaded","set","acceptSuggestion","hasSuggestion","arrowView","suggestion-","discardSelectedSuggestions","remove","length","Accept all selected suggestions","descriptionParts","model","Annotations","_descriptionFactory","map","SuggestionThreadView","type","CommentView","change:activeAnnotations","getJoined","componentFactory","view","addSourceCollector","CommentsRepository","getByInnerView","isInContent","comments.maxCommentCharsWhenCollapsed","lowest","clear","acceptSelectedSuggestions","bind","isOn","TrackChangesUI","getRanges","cancel","comments.maxCommentsWhenCollapsed","switchbutton","keys","createAnnotation","_initializeController","separator","add","refreshSelectedViews","trackChanges.SuggestionThreadView","value","editing","listenTo","Discard all selected suggestions","isEnabled","trackChanges","Track changes","editor","pluginName","toViewElement","focus","EditorAnnotations","suggestionLoaded","delete","button","has","activeMarkers","commandName","previous"];var Kx,$x;Kx=Wx,$x=352,function(t){for(;--t;)Kx.push(Kx.shift())}(++$x);const qx=function(t,e){return Wx[t-=0]};class Xx extends t.Plugin{static get[qx("0x3")](){return[px,s.Users,qx("0x28"),"Annotations",qx("0x48")]}static get[qx("0x45")](){return qx("0x31")}constructor(t){super(t),this._suggestionToController=new Map,this[qx("0x54")]=new Map,this._debouncedHandlers=new Map;const e=this.editor.config;e.define(qx("0x3c"),Ux),e[qx("0x7")](qx("0x6a"),!1),this[qx("0x53")]=e[qx("0x1")]("trackChanges.disableComments")}init(){const t=this[qx("0x44")],e=t[qx("0x8")][qx("0x1")](px),n=t[qx("0x8")][qx("0x1")]("Annotations"),o=t[qx("0x8")][qx("0x1")]("EditorAnnotations"),r=t[qx("0x8")][qx("0x1")](qx("0x28"));t.ui[qx("0x25")][qx("0x3a")](qx("0x42"),(t=>this[qx("0x50")](t))),o[qx("0x27")]((()=>{const t=[];for(const[e,n]of Array[qx("0xf")](this[qx("0x10")])){const o=e[qx("0x66")](),r=[];for(const t of o){if(!t[qx("0x2a")])continue;if(t[qx("0x5b")]){r.push(...t[qx("0x32")]());continue}const e=t.getFirstRange();if(r.length>0){const t=r[0][qx("0x24")](e);if(t){r[0]=t;continue}}r.push(e)}t.push([n.view,r])}return t})),this[qx("0x3f")](e,qx("0x49"),((t,e)=>{let n=!1;const r=O((t=>{n||t?n&&t&&(this._destroyController(e),o[qx("0x3b")](),n=!1):(this[qx("0x38")](e),o[qx("0x3b")](),n=!0)}),10);this[qx("0x6b")][qx("0x12")](e,r),this[qx("0x3f")](e,qx("0x51"),((t,n,o,s)=>{e[qx("0x2a")]&&(null==o?(this[qx("0x2")](s.head),r(!1)):(this[qx("0x2")](o[qx("0x5f")]),r(!0)))})),null===e[qx("0x4f")]?r(!1):this[qx("0x2")](e[qx("0x5f")])})),this[qx("0x3f")](e,qx("0x11"),((t,e,n)=>{this.stopListening(e,qx("0x51")),this._debouncedHandlers[qx("0x1")](e).cancel(),this._debouncedHandlers.delete(e);const o=n?n[qx("0x5f")]:e,r=this[qx("0x10")][qx("0x1")](o);null!==n&&this[qx("0x2")](o),null===n&&r&&this._destroyController(e)})),this[qx("0x3f")](e,"suggestionChanged",((t,e)=>{this[qx("0x2")](e)})),this.listenTo(n,qx("0x23"),((t,n,o)=>{const r=Array[qx("0xf")](o,(t=>t.innerView))[qx("0xc")]((t=>this[qx("0x54")][qx("0x4c")](t))),s=[];for(const t of r){const e=this[qx("0x54")][qx("0x1")](t)[qx("0x1c")][qx("0x66")]();s[qx("0x69")](...e[qx("0x57")](((t,e)=>[...t,...e.getMarkerNames()]),[]))}e[qx("0x4d")]=s})),this.listenTo(r,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[qx("0x14")](n))return;const r=e[qx("0x60")](n);this[qx("0x10")].get(r)[qx("0x26")][qx("0x47")]()}),{priority:qx("0x2c")})}[qx("0x50")](t){const n=(0,r.createDropdown)(t,r.SplitButtonView),o=this.editor[qx("0x61")][qx("0x1")](qx("0x42")),s=kr(t,qx("0x43"));n[qx("0x5e")][qx("0x12")]({tooltip:s,label:s,icon:zx()}),n[qx("0x5e")][qx("0x2f")](qx("0x30")).to(o,qx("0x3d")),n[qx("0x5e")].on("execute",(()=>o.execute()));const i=new e.Collection,a=[{type:qx("0x35"),model:{withText:!0,label:s,commandName:"trackChanges"}},{type:qx("0x39")},{type:qx("0x4b"),model:{withText:!0,label:kr(t,"Accept all suggestions"),commandName:qx("0xd")}},{type:qx("0x4b"),model:{withText:!0,label:kr(t,qx("0x1a")),commandName:qx("0x2e")}},{type:qx("0x4b"),model:{withText:!0,label:kr(t,qx("0x64")),commandName:"discardAllSuggestions"}},{type:qx("0x4b"),model:{withText:!0,label:kr(t,qx("0x40")),commandName:qx("0x17")}}];for(const t of a){const e={type:t.type};if(t[qx("0x1c")]){const n=new r.Model(t[qx("0x1c")]),o=this[qx("0x44")].commands[qx("0x1")](n[qx("0x4e")]);n.bind("isOn",qx("0x41")).to(o,qx("0x3d"),qx("0x41")),e.model=n}i[qx("0x3a")](e)}(0,r.addListToDropdown)(n,i);const x=a[qx("0xc")]((t=>null!=t[qx("0x1c")]))[qx("0x1f")]((t=>this[qx("0x44")][qx("0x61")][qx("0x1")](t[qx("0x1c")][qx("0x4e")])));return n[qx("0x5e")].actionView[qx("0x5")](qx("0x41")),n[qx("0x5e")][qx("0x15")][qx("0x5")](qx("0x41")),n[qx("0x5e")][qx("0x58")].bind(qx("0x41")).to(o,"isEnabled"),n.buttonView.arrowView[qx("0x2f")](qx("0x41"))[qx("0x5c")](x,qx("0x41"),((...t)=>t[qx("0xe")]((t=>t)))),n.on("execute",(t=>this[qx("0x44")].execute(t[qx("0x62")][qx("0x4e")]))),n}_initializeController(t){const e=this[qx("0x44")],n=e[qx("0x65")],o=e.plugins[qx("0x1")](qx("0x1d")),r=e[qx("0x8")][qx("0x1")](qx("0x28")),i=t[qx("0x66")]().filter((t=>t.isInContent)),a=e.plugins[qx("0x1")](s.Users).me,x=e[qx("0x61")][qx("0x1")](qx("0x13")),c=e.commands[qx("0x1")](qx("0x55")),l=n[qx("0x1")](qx("0x42"))[qx("0x20")],{CommentsListView:u,CommentThreadInputView:d}=e[qx("0x8")][qx("0x1")]("CommentsUI"),g=new l(e[qx("0x67")],t,a,{disableComments:this[qx("0x53")],editorConfig:n[qx("0x1")]("comments.editorConfig"),maxCommentsWhenCollapsed:n[qx("0x1")](qx("0x34")),maxThreadTotalWeight:n[qx("0x1")](qx("0x56")),maxCommentCharsWhenCollapsed:n[qx("0x1")](qx("0x2b")),formatDateTime:(0,s.getDateTimeFormatter)(n.get(qx("0x67"))),CommentView:n.get(qx("0xb"))[qx("0x22")],CommentsListView:u,CommentThreadInputView:d}),f=r[qx("0x68")](t[qx("0x4")],g),m=new wx(t,g,x,c,f);g[qx("0x1b")]=e[qx("0x8")].get(qx("0xa"))[qx("0x1e")].getDescriptions(i),this._suggestionToController[qx("0x12")](t,m),this._viewToController[qx("0x12")](g,m);const h=o.createAnnotationView(this[qx("0x44")][qx("0x67")],g);h[qx("0x2f")]("isDirty").to(g,"isDirty"),h.bind(qx("0x19")).to(g),h[qx("0x2f")](qx("0x21")).to(g,qx("0x21"),(t=>"suggestion-"+t));const p=o[qx("0x37")]({view:h,target:()=>{const t=i[0].getFirstMarker();if(!t)return null;const n=t[qx("0x52")]()[qx("0x0")]();return n&&!e[qx("0x3e")].mapper[qx("0x46")](n)?null:(0,s.getMarkerDomElement)(e.editing,t)||null},type:()=>qx("0x16")+m.view[qx("0x21")]});o[qx("0x3a")](p);const b=e.plugins[qx("0x1")](qx("0x5a"));let E;g.on(qx("0x6"),((t,e,n)=>{n?E=b[qx("0x3a")](kr(this[qx("0x44")][qx("0x67")],qx("0x59"))):(b[qx("0x18")](E),E=null)}))}_destroyController(t){const e=this.editor[qx("0x8")].get("Annotations"),n=this[qx("0x10")][qx("0x1")](t),o=n.view,r=e[qx("0x29")](o);r&&e[qx("0x18")](r),this[qx("0x10")][qx("0x4a")](t),this[qx("0x54")].delete(o),n[qx("0x63")](),o[qx("0x63")]()}[qx("0x2")](t){if(!t[qx("0x2a")]||!this[qx("0x10")][qx("0x4c")](t))return;const e=this[qx("0x44")][qx("0x8")].get(qx("0xa")),n=this[qx("0x10")][qx("0x1")](t),o=t[qx("0x66")]();n[qx("0x26")][qx("0x1b")]=e[qx("0x1e")].getDescriptions(o)}[qx("0x63")](){super[qx("0x63")]();for(const t of this[qx("0x10")][qx("0x36")]())this[qx("0x9")](t);for(const t of this[qx("0x6b")][qx("0x5d")]())t[qx("0x33")]();this[qx("0x6b")][qx("0x2d")]()}}var Jx,Qx,Yx=["addSuggestion","get","getSuggestion","editor","plugins","getSuggestions","requires","pluginName","TrackChanges","Comments","addSuggestionData","adapter"];Jx=Yx,Qx=170,function(t){for(;--t;)Jx.push(Jx.shift())}(++Qx);var Zx=function(t,e){return Yx[t-=0]};class tc extends t.Plugin{static get[Zx("0x4")](){return[px,Xx,Zx("0x7")]}static get[Zx("0x5")](){return Zx("0x6")}set[Zx("0x9")](t){this.editor[Zx("0x2")][Zx("0xb")](px)[Zx("0x9")]=t}get adapter(){return this[Zx("0x1")][Zx("0x2")][Zx("0xb")](px)[Zx("0x9")]}[Zx("0xa")](t){return this.editor[Zx("0x2")][Zx("0xb")](px)[Zx("0x8")](t)}[Zx("0x3")](t){return this[Zx("0x1")][Zx("0x2")][Zx("0xb")](px)[Zx("0x3")](t)}[Zx("0x0")](t){return this.editor[Zx("0x2")].get(px)[Zx("0x0")](t)}}const ec=["name","discardAllSuggestions","execute","push","addSuggestionData","editorCreator","Users","data","getUser","reduce","getDataWithDiscardedSuggestions","builtinPlugins","trackChangesData","init","useAnonymousUser","pluginName","Autosave","_adapter","acceptAllSuggestions","define","includes","plugins","initialData","RealTimeCollaborativeComments","editor","get","getSuggestions","names","constructor","users","getRootNames","track-changes-data-invalid-editor-creator","TrackChangesEditing","every","config","toolbar","function","trackChangesData.editorCreator","has","TrackChangesDataGetter","add","destroy","create","RealTimeCollaborativeEditing","CommentsRepository","string","set","document","TrackChangesData","from","requires","filter","concat"];var nc,oc;nc=ec,oc=494,function(t){for(;--t;)nc.push(nc.shift())}(++oc);const rc=function(t,e){return ec[t-=0]},sc=[rc("0x5"),"context",rc("0x12")],ic=[rc("0x1a"),rc("0x6"),"RealTimeCollaborativeTrackChanges",rc("0x34")];class ac extends t.Plugin{static get[rc("0x21")](){return[px]}static get[rc("0x33")](){return rc("0x1f")}[rc("0x31")](){const t=this[rc("0x7")];if(t[rc("0x11")][rc("0x2")](rc("0x14"),(e=>t[rc("0xb")][rc("0x19")]("",e))),rc("0x13")!=typeof t[rc("0x11")].get(rc("0x30"))[rc("0x29")])throw new e.CKEditorError(rc("0xe"))}getDataWithAcceptedSuggestions(t){return cc(this[rc("0x7")],!0,t)}[rc("0x2e")](t){return cc(this[rc("0x7")],!1,t)}}class xc extends t.Plugin{static get pluginName(){return rc("0x16")}[rc("0x31")](){this.result="end",this[rc("0x7")][rc("0x4")].get(rc("0x1b"))[rc("0x0")]={getCommentThread:()=>new Promise((()=>{}))},this[rc("0x7")][rc("0x4")].get(rc("0xf"))[rc("0x0")]=null}}async function cc(t,e,n){const o=function(t){const e={};for(const n of t.config[rc("0xa")]())sc[rc("0x3")](n)||(e[n]=t[rc("0x11")].get(n));const n=t[rc("0xb")][rc("0x2f")]||[],o=e.extraPlugins||[];delete e.extraPlugins;const r=n[rc("0x23")](e[rc("0x4")])[rc("0x23")](o).map((t=>rc("0x1c")==typeof t?n.find((e=>e.pluginName==t)):t)),s=Array[rc("0x20")](new Set(r));return e[rc("0x4")]=s[rc("0x22")]((t=>lc(t,new Set))),e[rc("0x4")][rc("0x27")](xc),e.plugins[rc("0x27")](px),e}(t),r=document.createDocumentFragment(),s=t[rc("0x11")][rc("0x8")](rc("0x30"))[rc("0x29")],i=await s(o,(()=>function(t){const e=document.createElement("div");return t.appendChild(e),e}(r)));!function(t,e){const n=t.model[rc("0x1e")][rc("0xd")]()[rc("0x2d")](((e,n)=>(e[n]=t.data.get({rootName:n}),e)),{}),o=t[rc("0x4")].get(rc("0x2a"))[rc("0xc")].map((t=>({id:t.id}))),r=t[rc("0x4")].get(rc("0xf"))[rc("0x9")]({skipNotAttached:!0,toJSON:!0}),s=e[rc("0x4")][rc("0x8")]("Users"),i=e[rc("0x4")][rc("0x8")](rc("0xf"));for(const t of o)s[rc("0x2c")](t.id)||s.addUser(t);s.me||s[rc("0x32")]();for(const t of r)i[rc("0x28")](t);e[rc("0x2b")][rc("0x1d")](n)}(t,i),i[rc("0x26")](rc(e?"0x1":"0x25"));const a=i[rc("0x2b")][rc("0x8")](n);return await i[rc("0x18")](),a}function lc(t,e){if(e[rc("0x15")](t))return!0;e[rc("0x17")](t);const n=rc("0x13")==typeof t?t.pluginName||t[rc("0x24")]:t;return(!n||!ic[rc("0x3")](n))&&(!t[rc("0x21")]||t.requires[rc("0x10")]((t=>lc(t,e))))}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|