@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230630.0 → 0.0.0-nightly-20230702.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 +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.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 +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.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 +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.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/listproperties.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/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.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/utils.js +1 -1
package/build/track-changes.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
/*!
|
|
3
3
|
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
4
4
|
* For licensing, see LICENSE.md.
|
|
5
|
-
*/(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var s=e[o];if(void 0!==s)return s.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>ac,TrackChanges:()=>Ac,TrackChangesData:()=>Mc,TrackChangesEditing:()=>za});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["execute","_isEnabledBasedOnSelection","_disableUnsupportedCommands","editor","has","value","commands","_enabledCommands","forceDisabled","refresh","isEnabled","affectsData","TrackChangesCommand","_enableCommands"];var c,l;c=a,l=402,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this[u("0xb")]=e,this[u("0x9")]=!1,this[u("0xd")](),this[u("0x5")]=!1}[u("0xd")](){this[u("0x0")]=!0}[u("0x4")](){this[u("0x9")]=!this.value,this[u("0x9")]?this[u("0x6")]():this[u("0x3")]()}_disableUnsupportedCommands(){for(const t of this[u("0x7")][u("0xa")].commands())t[u("0x1")]&&!this[u("0xb")][u("0x8")](t)&&t[u("0xc")](u("0x2"))}[u("0x3")](){for(const t of this[u("0x7")].commands[u("0xa")]())t.affectsData&&!this[u("0xb")][u("0x8")](t)&&t.clearForceDisabled(u("0x2"))}}const g=["model","track-changes-accept-suggestion-not-found","execute","plugins","getRanges","canEditAt","acceptSuggestion","editor","TrackChangesEditing","refresh","_suggestions","isEnabled","get"];var m,f;m=g,f=156,function(t){for(;--t;)m.push(m.shift())}(++f);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[h("0xa")]=e,this.refresh(),this._isEnabledBasedOnSelection=!1}[h("0x9")](){this[h("0xb")]=!0}[h("0x2")](t){const n=this._suggestions.get(t);if(!n)throw new e.CKEditorError(h("0x1"),this);const o=n[h("0x4")]();this[h("0x7")][h("0x0")][h("0x5")](o)&&this[h("0x7")][h("0x3")][h("0xc")](h("0x8"))[h("0x6")](n)}}const b=["execute","discardSuggestion","model","get","_isEnabledBasedOnSelection","plugins","refresh","getRanges","_suggestions"];var E,_;E=b,_=240,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class y extends t.Command{constructor(t,e){super(t),this[T("0x2")]=e,this[T("0x0")](),this[T("0x7")]=!1}[T("0x0")](){this.isEnabled=!0}[T("0x3")](t){const n=this._suggestions[T("0x6")](t);if(!n)throw new e.CKEditorError("track-changes-discard-suggestion-not-found",this);const o=n[T("0x1")]();this.editor[T("0x5")].canEditAt(o)&&this.editor[T("0x8")][T("0x6")]("TrackChangesEditing")[T("0x4")](n)}}const C=["getRange","createPositionAt","start","createPositionBefore","createPositionAfter","end","sort","isObject","isMultiRange","isTouching","content","getRanges","color","value","isInContent","change","getMarkers","length","replace","schema","deletion","createRange","next","from","splice","type"];var k,A;k=C,A=276,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return C[t-=0]};function R(t){return t[v("0x10")](((t,e)=>v("0x4")==t[v("0x9")]&&v("0x4")!=e[v("0x9")]?-1:v("0x4")!=t[v("0x9")]&&v("0x4")==e[v("0x9")]?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0x3")];for(;o<t[v("0x1")];){const i=t[o],x=t[o+1];n||(n=e[v("0xd")](i)),I(e,i,x)||(s.push(e[v("0x5")](n,r[v("0x11")](i)?e[v("0xe")](i):e[v("0xb")](i,"end"))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0xe")](e),s=t[v("0xd")](n);return o[v("0x13")](s)}function L(t,e,n){for(;n[v("0x1")];){const o=n[v("0x8")](0,100);t[v("0x19")]((()=>{for(const t of o)t[v("0x18")]&&e.execute(t.id)}))}}const N=["model","from","getRanges","execute","_isEnabledBasedOnSelection","isEnabled","canEditAt","isInContent","values","_suggestions","refresh","_command"];var M,w;M=N,w=181,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this._command=e,this[O("0x8")]=n,this[O("0x9")](),this[O("0x3")]=!1}[O("0x9")](){const t=Array[O("0x0")](this[O("0x8")].values()).some((t=>t[O("0x6")]));this.isEnabled=this[O("0xa")][O("0x4")]&&t}[O("0x2")](){const t=R(Array[O("0x0")](this._suggestions[O("0x7")]()));for(const e of t){const t=e[O("0x1")]();if(!this.editor[O("0xb")][O("0x5")](t))return}L(this.editor[O("0xb")],this[O("0xa")],t)}}const P=["size","_selectedSuggestions","selection","isEnabled","execute","editor","canEditAt","_command","model","from","getRanges","values","_isEnabledBasedOnSelection","refresh","_suggestions"];var D,B;D=P,B=343,function(t){for(;--t;)D.push(D.shift())}(++B);const j=function(t,e){return P[t-=0]};class U extends t.Command{constructor(t,e,n){super(t),this[j("0x9")]=e,this[j("0x1")]=n,this[j("0x3")]=new Set,this[j("0x0")](),this[j("0xe")]=!1}refresh(){const t=this[j("0x7")].model.document[j("0x4")],e=Array[j("0xb")](this[j("0x1")][j("0xd")]());this[j("0x3")]=function(t,e){const n=Array[v("0x7")](t[v("0x15")]()),o=new Set;for(const s of e)if(s[v("0x18")])for(const e of n)for(const n of s[v("0x0")]()){const r=n[v("0xa")]();(e.isIntersecting(r)||t.isCollapsed&&!s[v("0x12")]&&s[v("0x6")]&&r[v("0xf")].isTouching(e[v("0xc")]))&&o.add(s)}return o}(t,e),this[j("0x5")]=this[j("0x9")][j("0x5")]&&!!this[j("0x3")][j("0x2")]}[j("0x6")](){const t=R(Array[j("0xb")](this[j("0x3")]));for(const e of t){const t=e[j("0xc")]();if(!this.editor[j("0xa")][j("0x8")](t))return}L(this[j("0x7")][j("0xa")],this[j("0x9")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const W=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const V=function(t){var e=this.__data__,n=W(e,t);return!(n<0)&&(n==e.length-1?e.pop():z.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=W(e,t);return n<0?void 0:e[n][1]};const q=function(t){return W(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=W(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const J=$;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var yt=/^\[object .+?Constructor\]$/,Ct=Function.prototype,kt=Object.prototype,At=Ct.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:yt).test(Tt(t))};const It=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=It(t,e);return St(n)?n:void 0};const Nt=Lt(ot,"Map");const Mt=Lt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=wt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const Wt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const zt=function(t,e){var n=t.__data__;return Wt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=zt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return zt(this,t).get(t)};const qt=function(t){return zt(this,t).has(t)};const Xt=function(t,e){var n=zt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var ye={};ye["[object Float32Array]"]=ye["[object Float64Array]"]=ye["[object Int8Array]"]=ye["[object Int16Array]"]=ye["[object Int32Array]"]=ye["[object Uint8Array]"]=ye["[object Uint8ClampedArray]"]=ye["[object Uint16Array]"]=ye["[object Uint32Array]"]=!0,ye["[object Arguments]"]=ye["[object Array]"]=ye["[object ArrayBuffer]"]=ye["[object Boolean]"]=ye["[object DataView]"]=ye["[object Date]"]=ye["[object Error]"]=ye["[object Function]"]=ye["[object Map]"]=ye["[object Number]"]=ye["[object Object]"]=ye["[object RegExp]"]=ye["[object Set]"]=ye["[object String]"]=ye["[object WeakMap]"]=!1;const Ce=function(t){return xe(t)&&Te(t.length)&&!!ye[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Se=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Ie=Se&&Se.isTypedArray;const Le=Ie?ke(Ie):Ce;var Ne=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&de(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var We=Object.prototype.hasOwnProperty;const ze=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&We.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?Me(t,!0):ze(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Je=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const un=function(t){return ln(t,Ue,on)};const dn=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",yn=Tt(gn),Cn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case yn:return Tn;case Cn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const Sn=Rn;var In=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&In.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Wn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Vn=Se&&Se.isMap;const Kn=Vn?ke(Vn):zn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?ke(Xn):qn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var u=ge(e);if(u){if(x=Ln(e),!a)return Ze(e,x)}else{var d=Sn(e),g=d==Qn||"[object GeneratorFunction]"==d;if(be(e))return Qe(e,a);if(d==Zn||d==Jn||g&&!r){if(x=c||g?{}:Wn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[d])return r?e:{};x=Un(e,d,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),$n(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var f=u?void 0:(l?c?dn:un:c?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=po(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const yo=function(t){return this.__data__.has(t)};function Co(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}Co.prototype.add=Co.prototype.push=To,Co.prototype.has=yo;const ko=Co;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++u<x;){var m=t[u],f=e[u];if(o)var h=i?o(f,m,u,e,t,r):o(m,f,u,t,e,r);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){d=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){d=!1;break}}return r.delete(t),r.delete(e),d};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const Mo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=So;case"[object Set]":var a=1&o;if(x||(x=Io),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:wo.call(e,l)))return!1}var u=r.get(t),d=r.get(e);if(u&&d)return u==e&&d==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===p?f===h||s(f,h,n,o,r):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po:Sn(t),c=x?Po:Sn(e),l=(a=a==Fo?Do:a)==Do,u=(c=c==Fo?Do:c)==Do,d=a==c;if(d&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(d&&!l)return r||(r=new Yt),i||Le(t)?Ro(t,e,n,o,s,r):Mo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=u&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!d&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Wo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const zo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Vo=function(t,e){return e.length<2?t:Wo(t,zo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Vo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["getMarkers","addRange","_onAttributesChange","from","getMultiRangeId","toJSON","getRange","addMarkerName","hasComments","add","next","commentThread","change","discard","@external","subType","push","isIntersecting","removeAttribute","end","authoredAt","_onAccept","getItems","split","length","getMarkerNames","removeMarkers","isExternal","data","isMultiRange","start","_onDiscard","_markerNames","_model","removeMarker","suggestion:","head","getFirstMarker","nodeBefore","addMarker","type","creator","getContainedElement","attributes","map","_saved","decorate","nodeAfter","delete","onAccept","clear","getRanges","previous","reduce","set","getFirstRange","createdAt","accept","author","isInContent","filter"];var $o,Jo;$o=Xo,Jo=375,function(t){for(;--t;)$o.push($o.shift())}(++Jo);const Qo=function(t,e){return Xo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this.id=e.id,this.type=e[Qo("0x1f")],this[Qo("0x6")]=e[Qo("0x6")]||null,this[Qo("0x31")]=e[Qo("0x31")],this[Qo("0x20")]=e[Qo("0x20")]||e[Qo("0x31")],this[Qo("0x12")]=Boolean(e[Qo("0x22")]&&e[Qo("0x22")][Qo("0x5")]),this[Qo("0x13")]=null,this._model=t,this[Qo("0xc")]=e[Qo("0x28")],this[Qo("0x16")]=e.onDiscard,this[Qo("0x36")]=e.onAttributesChange,this[Qo("0x17")]=new Set,this[Qo("0x2f")]=null,this[Qo("0x2d")](Qo("0xb"),null),this[Qo("0x2d")](Qo("0x22"),e[Qo("0x22")]||{}),this[Qo("0x2d")](Qo("0x2b"),null),this[Qo("0x2d")](Qo("0x1"),null),this.set(Qo("0x2"),null),this.set(Qo("0x24"),!1),this[Qo("0x25")](Qo("0x30")),this[Qo("0x25")](Qo("0x4"))}get head(){let t=this;for(;t[Qo("0x2b")];)t=t[Qo("0x2b")];return t}get[Qo("0x3c")](){return!!this.commentThread&&this[Qo("0x2")][Qo("0xf")]>0}get[Qo("0x14")](){return 0!=this[Qo("0x17")].size&&6==Array[Qo("0x37")](this[Qo("0x17")])[0][Qo("0xe")](":").length}get[Qo("0x32")](){return null!==this[Qo("0x1c")]()}[Qo("0x3b")](t){this[Qo("0x17")][Qo("0x0")](t)}getMarkerNames(){return Array[Qo("0x37")](this[Qo("0x17")])}[Qo("0x34")](){return this[Qo("0x10")]()[Qo("0x23")]((t=>this._model.markers.get(t)))[Qo("0x33")]((t=>t))}getFirstMarker(){return this[Qo("0x34")]()[0]||null}removeMarkers(){this[Qo("0x18")][Qo("0x3")]((t=>{for(const e of this[Qo("0x34")]())t.removeMarker(e)})),this[Qo("0x17")][Qo("0x29")]()}[Qo("0x19")](t){this[Qo("0x18")][Qo("0x3")]((e=>{e[Qo("0x19")](t)})),this[Qo("0x17")][Qo("0x27")](t)}[Qo("0x35")](t){const e=Qo("0x1a")+this.type+":"+this[Qo("0x6")]+":"+this.id+":"+this.creator.id+":"+Zo[Qo("0x38")]();this[Qo("0x3b")](e),this._model[Qo("0x3")]((n=>{n[Qo("0x1e")](e,{range:t,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(t){for(const e of this[Qo("0x2a")]())if(e[Qo("0x8")](t))return!0;return!1}[Qo("0x2a")](){return this.getMarkers()[Qo("0x23")]((t=>t[Qo("0x3a")]()))}getItems(){return this[Qo("0x2a")]()[Qo("0x2c")](((t,e)=>[...t,...e[Qo("0xd")]()]),[])}[Qo("0x2e")](){var t;return(null===(t=this[Qo("0x1c")]())||void 0===t?void 0:t[Qo("0x3a")]())||null}[Qo("0x21")](){const t=this[Qo("0x2a")]();if(1!=t[Qo("0xf")])return null;const e=t[0],n=e[Qo("0x15")][Qo("0x26")],o=e[Qo("0xa")][Qo("0x1d")];return n instanceof i.Element?n!=o?null:n:null}accept(){this._onAccept(this[Qo("0x2a")](),this[Qo("0x13")],this[Qo("0x22")]),this[Qo("0x11")]()}discard(){this._onDiscard(this.getRanges(),this[Qo("0x13")],this[Qo("0x22")]),this[Qo("0x11")]()}getAllAdjacentSuggestions(){const t=[];let e=this[Qo("0x1b")];for(;e;)t[Qo("0x7")](e),e=e[Qo("0x1")];return t}setAttribute(t,e){const n=eo(this[Qo("0x22")]);_o(n,t,e),Go(n,this[Qo("0x22")])||(this[Qo("0x22")]=n,this[Qo("0x36")](n))}[Qo("0x9")](t){const e=eo(this[Qo("0x22")]);qo(e,t),Go(e,this[Qo("0x22")])||(this[Qo("0x22")]=e,this[Qo("0x36")](this[Qo("0x22")]))}[Qo("0x39")](){return{id:this.id,type:this[Qo("0x6")]?this.type+":"+this[Qo("0x6")]:this[Qo("0x1f")],authorId:this[Qo("0x20")].id,createdAt:this[Qo("0x2f")],hasComments:this[Qo("0x3c")],data:this[Qo("0x13")],attributes:this[Qo("0x22")]}}static[Qo("0x38")](){return(0,e.uid)().substr(1,5)}}function Yo(t,e,n){const o=t.t;switch(e){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* change table properties":return o("*Format:* change table properties");case"*Format:* change table cell properties":return o("*Format:* change table cell properties");case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Format:* replace image URL":return o("*Format:* replace image URL");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set format to:* %0":return o("*Set format to:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return o({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return o({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return o({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);default:return e}}const ts=["length","isEmpty","label","add","text","*Merge:* %0","getWalker","insertion","isEqual","previousSibling","getDescriptions","type","isObject","*Remove:* %0","elementEnd","removeEmptyContainer","deletion","remove","addContainer","_itemLabels","$textProxy","end","start","indexOf","_schema","pop","_resolveDescriptionItems","element","set","push","removeObject","item","Container","name","_locale","registerDescriptionCallback","$1 $2","EmptyContainer","getItemLabel","checkChild","_itemLabelsCallbacks","skip","quantity","data","*Insert:* %0","_customCallbacks","_addDescriptionItems","ELEMENT_SPACE","addEmptyContainer","match","replace","*Split:* %0","Object","get"];var es,ns;es=ts,ns=429,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class ss{constructor(t,e){this[os("0x30")]=[],this._itemLabels=new Map,this._itemLabelsCallbacks=[],this[os("0x1b")]=t,this._locale=e}[os("0xd")](t){const e=[];for(let n=0;n<t.length;n++){const o=t[n];if(!o.isInContent)continue;let s=!1;for(const t of this[os("0x30")]){const n=t(o);if(n){os("0xe")in n&&e[os("0x20")](n),s=!0;break}}if(!s){this[os("0x31")](e,o);const s=t[n+1];if(s&&!o.getFirstRange()[os("0x18")][os("0xb")](s.getFirstRange()[os("0x19")])){const t=e[e[os("0x3")]-1],n=os("0xa")==o[os("0xe")]?os("0x6"):os("0x14");t&&os("0x7")==t[os("0xe")]&&(t[n]+="\n")}}}return this._resolveDescriptionItems(e)}[os("0x26")](t){this[os("0x30")][os("0x20")](t)}registerElementLabel(t,n,o=e.priorities.normal){"function"==typeof t?(0,e.insertToPriorityArray)(this[os("0x2b")],{matchingCallback:t,label:n,priority:o}):this[os("0x16")][os("0x1f")](t,n)}getItemLabel(t,e=1){let n;for(const e of this[os("0x2b")])if(e.matchingCallback(t)){n=e[os("0x5")];break}return n||(n=this[os("0x16")][os("0x2")](t.name)),n?n(e):1!==e?e+" "+t[os("0x24")]+"s":""+t.name}[os("0x31")](t,e){const n=e.getFirstRange()[os("0x9")](),o=os("0xa")==e[os("0xe")]?os("0x6"):os("0x14");for(const e of n){const s=e[os("0x22")],r=t[t[os("0x3")]-1];if(s.is(os("0x17")))r&&r.type.indexOf(os("0x23"))>-1&&t[os("0x1c")](),r&&"text"==r[os("0xe")]?r[o]+=s[os("0x2e")]:t.push({type:"text",add:"add"==o?s[os("0x2e")]:"",remove:"remove"==o?s[os("0x2e")]:""});else if(this._schema[os("0xf")](s)){const i=s;if(r&&r.type[os("0x1a")](os("0x23"))>-1&&t.pop(),os("0x11")==e[os("0xe")])continue;r&&r.type==o+os("0x1")&&r[os("0x1e")].name==i.name?r[os("0x2d")]++:t[os("0x20")]({type:o+os("0x1"),element:i,quantity:1}),n[os("0x2c")]((t=>!(os("0x11")==t[os("0xe")]&&t[os("0x22")]==s)))}else if(this._schema[os("0x2a")](s,"$text")||s.is("element","softBreak")){const n=s;if(os("0x6")==o&&"elementStart"==e[os("0xe")]||"remove"==o&&os("0x11")==e.type)continue;if(r&&-1==r[os("0xe")][os("0x1a")](os("0x23"))){os("0x7")==r[os("0xe")]&&(r[o]+="\n");continue}let i;if(i=os("0x6")==o?n.nextSibling&&!this[os("0x1b")][os("0xf")](n.nextSibling)?n.nextSibling:null:n.previousSibling&&!this[os("0x1b")].isObject(n.previousSibling)?n[os("0xc")]:null,n[os("0x4")]||i&&i[os("0x4")]){const e=i&&i[os("0x4")]?i:n;r&&r[os("0xe")]==o+os("0x28")&&r.element[os("0x24")]==e.name?r[os("0x2d")]++:t[os("0x20")]({type:o+os("0x28"),element:e,quantity:1})}else t[os("0x20")]({type:o+"Container",element:n})}}}[os("0x1d")](t){const e=this[os("0x25")],n=[];for(const o of t){switch(o[os("0xe")]){case os("0x7"):if(o[os("0x6")]=o[os("0x6")][os("0x35")](/(\S)\u000A+(\S)/g,os("0x27"))[os("0x35")](/\u000A/g,""),o[os("0x14")]=o[os("0x14")][os("0x35")](/(\S)\u000A+(\S)/g,"$1 $2")[os("0x35")](/\u000A/g,""),""!=o[os("0x6")]&&""!=o.remove){n[os("0x20")]({type:os("0x35"),content:Yo(e,"REPLACE_TEXT",['"'+o[os("0x14")]+'"','"'+o.add+'"'])});continue}if(null!=o[os("0x6")][os("0x34")](/^ +$/)){n[os("0x20")]({type:os("0xa"),content:Yo(e,os("0x2f"),Yo(e,"ELEMENT_SPACE",o[os("0x6")].length))});continue}if(null!=o[os("0x14")][os("0x34")](/^ +$/)){n.push({type:"deletion",content:Yo(e,os("0x10"),Yo(e,os("0x32"),o.remove.length))});continue}if(""!=o.add){n.push({type:os("0xa"),content:Yo(e,os("0x2f"),'"'+o[os("0x6")]+'"')});continue}n.push({type:"deletion",content:Yo(e,os("0x10"),'"'+o[os("0x14")]+'"')});continue;case os("0x33"):case"addObject":n[os("0x20")]({type:os("0xa"),content:Yo(e,os("0x2f"),this.getItemLabel(o[os("0x1e")],o[os("0x2d")]))});continue;case os("0x12"):case os("0x21"):n[os("0x20")]({type:"deletion",content:Yo(e,"*Remove:* %0",this.getItemLabel(o[os("0x1e")],o[os("0x2d")]))});continue;case os("0x15"):n[os("0x20")]({type:os("0xa"),content:Yo(e,os("0x0"),this[os("0x29")](o[os("0x1e")],o.quantity))});continue;case"removeContainer":n[os("0x20")]({type:os("0x13"),content:Yo(e,os("0x8"),this.getItemLabel(o[os("0x1e")],o[os("0x2d")]))});continue}n[os("0x20")](o)}return n}}const rs=["has","contentLanguageDirection","left","FORMAT_ALIGN_TO_LEFT","schema","enableCommand","getSelectedBlocks","alignment","locale","format","model","justify","document","FORMAT_JUSTIFY_TEXT","center","selection","getAttribute","right","checkAttribute","filter","editor","commandParams","commandName","value","_descriptionFactory","markBlockFormat","*Format:* %0"];var is,xs;is=rs,xs=499,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{afterInit(){const t=this[as("0x7")],e=t[as("0x16")];if(!t.plugins[as("0xe")]("AlignmentEditing"))return;const n=t.plugins.get("TrackChangesEditing");n[as("0x13")](as("0x15"),((e,o={})=>{let s=o[as("0xa")];o[as("0xa")]||(s="ltr"===t[as("0x16")][as("0xf")]?"left":as("0x4"));const r=Array.from(this[as("0x7")][as("0x18")][as("0x1a")][as("0x2")][as("0x14")]())[as("0x6")]((t=>function(t,e,n){const o=t[as("0x3")](as("0x15"))||null;return e[as("0x5")](t,as("0x15"))&&n!=o}(t,this[as("0x7")][as("0x18")][as("0x12")],s)));t[as("0x18")].change((()=>{for(const t of r)n[as("0xc")](t,{commandName:as("0x15"),commandParams:[{value:s}]})}))})),n[as("0xb")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&as("0x15")==n[as("0x9")]){const t=n[as("0x8")][0][as("0xa")];return{type:as("0x17"),content:Yo(e,as("0xd"),function(t){switch(t){case as("0x10"):return Yo(e,as("0x11"));case as("0x4"):return Yo(e,"FORMAT_ALIGN_TO_RIGHT");case as("0x1"):return Yo(e,"FORMAT_ALIGN_TO_CENTER");case as("0x19"):return Yo(e,as("0x0"))}}(t))}}}))}}const ls=["listIndent","parent","writer","elementEnd","createUIElement","addClass","name","get","listItem","isContent","consumable","previousPosition","schema","getAttribute","insert","includes","ck-suggestion-marker-","item","ck-suggestion-marker--active","span","getWalker","type","isAtEnd","plugins","push","nextSibling","hasAttribute","mapper","toViewElement","addHighlight","getItems","markerName","element","start","model","TrackChangesEditing","bindElementToMarker"];var us,ds;us=ls,ds=405,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e[gs("0x20")]())s[gs("0x1c")](t)&&o.push(n.createRangeOn(s));return o}function fs(t){const e=[];if(t.is(gs("0x22"),gs("0xa"))){let n=t[gs("0x1b")];for(;n&&n.is(gs("0x22"),gs("0xa"))&&n[gs("0xf")](gs("0x2"))>0;)e[gs("0x1a")](n),n=n[gs("0x1b")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t[gs("0x19")][gs("0x9")](gs("0x0"));return(s,r,i)=>{if(!i[gs("0xc")].test(r.markerRange,s[gs("0x8")]))return;const x=r.markerRange[gs("0x16")](),a=r.markerRange[gs("0x23")],c=t[gs("0x24")][gs("0xe")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[gs("0x13")];d=d||c[gs("0xb")](e);const n=i[gs("0x1d")][gs("0x1e")](e);if(n&&n.getCustomProperty(gs("0x1f")))return;gs("0x5")==t[gs("0x17")]&&c.isBlock(e)&&!c.isLimit(e)&&(e[gs("0x1b")]||a[gs("0x18")]?l&&l[gs("0x3")]==e||(l=e,m(t.previousPosition),g=!0):u=u||t[gs("0xd")])}function m(t){const s=i[gs("0x4")][gs("0x6")](gs("0x15"),{class:gs("0x12")+e}),x=i[gs("0x1d")].toViewPosition(t);n&&o.activeMarkers[gs("0x11")](r[gs("0x21")])&&i[gs("0x4")][gs("0x7")](gs("0x14"),s),i[gs("0x4")][gs("0x10")](x,s),i.mapper[gs("0x1")](s,r[gs("0x21")])}d||g||!u||m(u)}}const ps=["FORMAT_UNDERLINE","toLowerCase","FORMAT_STRIKETHROUGH","model","StrikethroughEditing","code","has","value","plugins","TrackChangesEditing","markInlineFormat","UnderlineEditing","*Remove format:* %0","commandParams","SuperscriptEditing","commandName","getRanges","get","afterInit","SubscriptEditing","_descriptionFactory","enableCommand","change","format","isCollapsed","commands","FORMAT_SUBSCRIPT","FORMAT_ITALIC","CodeEditing","slice","editor","FORMAT_BOLD","underline","registerDescriptionCallback","forceValue"];var bs,Es;bs=ps,Es=403,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=["BoldEditing","ItalicEditing",_s("0x1c"),_s("0xa"),_s("0x15"),_s("0x1"),_s("0x1f")];class ys extends t.Plugin{[_s("0x0")](){const t=this[_s("0xc")],e=t[_s("0x14")],n=t[_s("0x19")][_s("0x22")](_s("0x1a")),o=t.locale;for(const o of Ts){if(!t[_s("0x19")][_s("0x17")](o))continue;const s=o[_s("0xb")](0,-7)[_s("0x12")](),r=t[_s("0x7")][_s("0x22")](s);n[_s("0x3")](s,((t,o={})=>{const i=e.document.selection;if(i[_s("0x6")])return void t(o);const x=void 0!==o.forceValue?o[_s("0x10")]:!r[_s("0x18")];e[_s("0x4")]((()=>{const t=Array.from(i[_s("0x21")]());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n[_s("0x1b")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[_s("0x2")][_s("0xf")]((n=>{const{data:s}=n;if(s&&s[_s("0x20")]===t)return s[_s("0x1e")][0][_s("0x10")]?{type:_s("0x5"),content:Yo(o,"*Format:* %0",e)}:{type:_s("0x5"),content:Yo(o,_s("0x1d"),e)}}))}s("bold",Yo(o,_s("0xd"))),s("italic",Yo(o,_s("0x9"))),s(_s("0xe"),Yo(o,_s("0x11"))),s(_s("0x16"),Yo(o,"FORMAT_CODE")),s("strikethrough",Yo(o,_s("0x13"))),s("subscript",Yo(o,_s("0x8"))),s("superscript",Yo(o,"FORMAT_SUPERSCRIPT"))}}const Cs=["selection","checkChild","markBlockFormat","model","schema","_descriptionFactory","TrackChangesEditing","plugins","commands","filter","*Remove format:* %0","from","has","getSelectedBlocks","$root","get","*Format:* %0","editor","locale","format","name","ELEMENT_BLOCK_QUOTE","commandParams","forceValue","value","commandName","parent","afterInit","blockQuote"];var ks,As;ks=Cs,As=379,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return Cs[t-=0]};class Rs extends t.Plugin{[vs("0x19")](){const t=this[vs("0xf")],e=t[vs("0x10")];if(!t.plugins[vs("0xa")]("BlockQuoteEditing"))return;const n=t[vs("0x5")][vs("0xd")](vs("0x4")),o=this.editor[vs("0x6")].get(vs("0x1a"));n.enableCommand(vs("0x1a"),((e,s={})=>{const r=this[vs("0xf")][vs("0x1")].document[vs("0x1b")],i=s&&void 0!==s[vs("0x15")]?s[vs("0x15")]:!o[vs("0x16")];let x=[];if(i){const e=Array[vs("0x9")](r.getSelectedBlocks())[vs("0x7")]((t=>Ss(t)||function(t,e){const n=e[vs("0x1c")](t[vs("0x18")],vs("0x1a")),o=e.checkChild([vs("0xc"),vs("0x1a")],t);return n&&o}(t,this[vs("0xf")].model[vs("0x2")])));x=S(e,t.model)}else{const e=Array[vs("0x9")](r[vs("0xb")]())[vs("0x7")]((t=>Ss(t)));x=S(e,t[vs("0x1")])}t.model.change((()=>{for(const t of x)n[vs("0x0")](t,{commandName:vs("0x1a"),commandParams:[{forceValue:i}]})}))})),n[vs("0x3")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&vs("0x1a")==n[vs("0x17")]){const t=Yo(e,vs("0x13"));return n[vs("0x14")][0].forceValue?{type:vs("0x11"),content:Yo(e,vs("0xe"),t)}:{type:vs("0x11"),content:Yo(e,vs("0x8"),t)}}}))}}function Ss(t){return vs("0x1a")==t[vs("0x18")][vs("0x12")]}const Is=["TrackChangesEditing","get","plugins","editor","commands","afterInit","ckbox"];var Ls,Ns;Ls=Is,Ns=409,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const Ms=function(t,e){return Is[t-=0]};class ws extends t.Plugin{[Ms("0x2")](){const t=this[Ms("0x0")];t[Ms("0x1")][Ms("0x5")](Ms("0x3"))&&t[Ms("0x6")][Ms("0x5")](Ms("0x4")).enableCommand(Ms("0x3"))}}const Os=["afterInit","selection","markBlockFormat","_descriptionFactory","isLimit","language","has","value","ELEMENT_CODE_BLOCK","getSelectedBlocks","CodeBlock","plugins","enableCommand","formatBlock","languages","*Remove format:* %0","registerDescriptionCallback","filter","*Format:* %0","name","model","forceValue","codeBlock","from","find","config","rootElement","locale","commands","outdentCodeBlock","indentCodeBlock","get","commandParams","commandName"];var Fs,Ps;Fs=Os,Ps=424,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x12")](){const t=this.editor;if(!t[Ds("0x1d")][Ds("0x18")](Ds("0x1c")))return;const e=t[Ds("0x1d")][Ds("0xf")]("TrackChangesEditing"),n=t[Ds("0xb")],o=t[Ds("0x9")][Ds("0xf")](Ds("0x6"))[Ds("0x20")],s=t[Ds("0xc")][Ds("0xf")](Ds("0x6"));e[Ds("0x1e")](Ds("0xe")),e[Ds("0x1e")](Ds("0xd")),e[Ds("0x1e")](Ds("0x6"),((n,r={})=>{const i=t[Ds("0x4")],x=t[Ds("0x4")].document[Ds("0x13")],a=r&&void 0!==r.forceValue?r[Ds("0x5")]:!s[Ds("0x19")];let c;r[Ds("0x17")]||(r[Ds("0x17")]=o[0][Ds("0x17")]),c=a?Array[Ds("0x7")](x[Ds("0x1b")]())[Ds("0x1")]((t=>{return js(t)||(e=t,n=i.schema,!e.is(Ds("0xa"))&&!n[Ds("0x16")](e)&&n.checkChild(e.parent,Ds("0x6")));var e,n})):Array[Ds("0x7")](x.getSelectedBlocks())[Ds("0x1")]((t=>js(t)));const l=S(c,i);i.change((()=>{for(const t of l)e[Ds("0x14")](t,{commandName:"codeBlock",commandParams:[{...r,forceValue:a}],formatGroupId:"blockName"})}))})),e[Ds("0x15")].registerElementLabel("codeBlock",(t=>Yo(n,Ds("0x1a"),t))),e._descriptionFactory[Ds("0x0")]((t=>{const e=n.t,{type:s,data:r}=t;if(Ds("0x1f")==s&&r&&"codeBlock"==r[Ds("0x11")]){const t=r[Ds("0x10")][0][Ds("0x17")],s=e(o[Ds("0x8")]((e=>e.language===t)).label);return r.commandParams[0][Ds("0x5")]?{type:"format",content:Yo(n,Ds("0x2"),Yo(n,Ds("0x1a"),1)+" ("+s+")")}:{type:"format",content:Yo(n,Ds("0x21"),Yo(n,"ELEMENT_CODE_BLOCK",1))}}}))}}function js(t){return Ds("0x6")==t[Ds("0x3")]}const Us=["enableCommand","plugins","editor","CommentsEditing","afterInit","addCommentThread","get","TrackChangesEditing"];var Gs,Hs;Gs=Us,Hs=395,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const Ws=function(t,e){return Us[t-=0]};class zs extends t.Plugin{[Ws("0x1")](){const t=this[Ws("0x7")];t.plugins.has(Ws("0x0"))&&t[Ws("0x6")][Ws("0x3")](Ws("0x4"))[Ws("0x5")](Ws("0x2"))}}var Vs=n(181);const Ks=["bind","deleteForward","unlock","removeMarker:suggestion:deletion","markerNameToElements","mapper","setSelection","buffer","rootName","$graveyard","plugins","downcastDispatcher","enableCommand","addMarker:suggestion:deletion","createSelection","get","editor","remove","commands","end","unbindElementFromMarkerName","modifySelection","showSuggestionHighlights","getFirstRange","uiElement","start","high","editing","model","createRange","selection","unit","document","lock","markerName","delete","isCollapsed","merge","root"];var qs,Xs;qs=Ks,Xs=102,function(t){for(;--t;)qs.push(qs.shift())}(++Xs);const $s=function(t,e){return Ks[t-=0]};class Js extends t.Plugin{static get requires(){return[Vs.Delete]}init(){const t=this[$s("0x1f")],e=t[$s("0x19")][$s("0x1e")]("TrackChangesEditing");e[$s("0x1b")]($s("0xb"));const n=t[$s("0x21")][$s("0x1e")]("deleteForward");e[$s("0x1b")]($s("0x10"),((e,o={})=>{const s=t[$s("0x4")][$s("0x1d")](t[$s("0x4")][$s("0x8")][$s("0x6")]);s[$s("0xc")]&&t[$s("0x4")][$s("0x24")](s,{direction:"forward",unit:o[$s("0x7")]});const r=s[$s("0x26")](),x=i.LiveRange.fromRange(r);let a;e(o),a=$s("0x18")==x[$s("0xe")][$s("0x17")]?t[$s("0x4")][$s("0x5")](r[$s("0x1")]):t[$s("0x4")][$s("0x5")](x[$s("0x1")],x[$s("0x22")]),x.detach(),t[$s("0x4")].enqueueChange(n.buffer.batch,(t=>{n[$s("0x16")][$s("0x9")](),t[$s("0x15")](t.createRange(a[$s("0x22")])),n.buffer[$s("0x11")]()}))})),t[$s("0x3")].downcastDispatcher.on($s("0x1c"),hs(t,"merge"),{priority:$s("0x2")}),t.data[$s("0x1a")].on($s("0x1c"),((e,n,o)=>{o.options[$s("0x25")]&&hs(t,$s("0xd"),{showActiveMarker:!1})[$s("0xf")](this)(e,n,o)}),{priority:$s("0x2")}),t[$s("0x3")].downcastDispatcher.on($s("0x12"),((t,e,n)=>{const o=n[$s("0x14")][$s("0x13")](e[$s("0xa")]);if(o)for(const t of o)t.is($s("0x0"))&&(n.mapper[$s("0x23")](t,e[$s("0xa")]),n.writer[$s("0x20")](t))}),{priority:$s("0x2")})}}const Qs=["bulletedList","setSelection","enableCommand","deletion","isObject","splitListItemBefore","commands","registerElementLabel","model","getSelectedBlocks","nodeAfter","listIndent","commandParams","findIndex","ELEMENT_","nextSibling","getAttribute","selection","schema","commandName","get","toUpperCase","next","value","ELEMENT_NUMBERED_LIST","outdentList","_descriptionFactory","accept","multipleBlocks","parent","*Indent:* %0","splitListItemAfter","listItemId","plugins","expandListBlocksToCompleteList","mergeListItemForward","ELEMENT_LIST_ITEM","start","*Outdent:* %0","document","locale","createPositionAt","*Merge:* %0","getRanges","format","change","from","push","markBlockFormat","DocumentListUtils","numberedList","slice","TrackChangesEditing","markMultiRangeBlockFormat","registerCustomCallback","ELEMENT_BULLETED_LIST","DocumentListEditing","hasAttribute","afterInit","_suggestionFactory","indentList","editor","listType","length","documentList","has","detach","refresh","*Format:* remove from %0","*Change to:* %0","end","*Format:* insert into %0","containsItem","execute","forceValue"];var Zs,Ys;Zs=Qs,Ys=311,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0x2f")](){const t=this[tr("0x32")];if(!t.plugins[tr("0x36")](tr("0x2d")))return;const e=t[tr("0x1d")],n=t.plugins.get(tr("0x29")),o=t[tr("0x16")][tr("0x9")](tr("0x26"));function s(e){return()=>{const s=t[tr("0x46")][tr("0x9")](e);let r=Array.from(t[tr("0x48")][tr("0x1c")][tr("0x6")][tr("0x49")]());if(a(e)){r=o[tr("0x17")](r);const t=[];for(const e of r)o.isFirstBlockOfListItem(e)&&t[tr("0x24")](e);r=t}t[tr("0x48")].change((()=>{n[tr("0x2a")](r,{commandName:e,commandParams:[{forceValue:!s.value}],formatGroupId:tr("0x33")},[],"documentList")}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0x23")](t);const n=e[tr("0x2")]((t=>!t[tr("0x2e")](tr("0x15"))));return n>-1&&(e=e[tr("0x28")](0,n)),e}(t.model[tr("0x1c")][tr("0x6")][tr("0x49")]()),s=o[o[tr("0x34")]-1],r=t[tr("0x48")][tr("0x7")][tr("0x44")](s)?"after":tr("0x3b"),i=t[tr("0x48")].createRange(t[tr("0x48")][tr("0x1e")](o[0],"before"),t[tr("0x48")][tr("0x1e")](s,r));t[tr("0x48")][tr("0x22")]((()=>{n.markBlockFormat(i,{commandName:e,commandParams:[],formatGroupId:tr("0x33")},function(t){const e=new Set;for(const n of t){let t=n[tr("0x4")];for(;t&&t[tr("0x5")]("listIndent")>n[tr("0x5")](tr("0x0"));)e.add(t),t=t[tr("0x4")]}return Array[tr("0x23")](e)}(o))}))}}function x(e){return()=>{const o=t[tr("0x48")][tr("0x1c")][tr("0x6")][tr("0x49")]()[tr("0xb")]()[tr("0xc")],s=t[tr("0x48")][tr("0x1e")](o,"before"),r=t[tr("0x48")][tr("0x1e")](o,0),i=t[tr("0x48")].createRange(s,r);t[tr("0x48")][tr("0x22")]((()=>{n[tr("0x25")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x33")})}))}}function a(e){const n=t[tr("0x46")][tr("0x9")](tr("0x40"))[tr("0xc")],o=t[tr("0x46")][tr("0x9")](tr("0x27"))[tr("0xc")];return tr("0x27")===e?n:o}n.enableCommand(tr("0x27"),s(tr("0x27"))),n[tr("0x42")](tr("0x40"),s(tr("0x40"))),n.enableCommand("indentList",r(tr("0x31"))),n[tr("0x42")](tr("0xe"),r(tr("0xe"))),n[tr("0x42")]("splitListItemAfter",x(tr("0x14"))),n[tr("0x42")](tr("0x45"),x(tr("0x45"))),n[tr("0xf")][tr("0x47")]((function(e){const n=!t.model[tr("0x7")].isObject(e),o=e.previousSibling,s=e.nextSibling,r=e[tr("0x5")](tr("0x15")),i=!o||o[tr("0x5")](tr("0x15"))!==r,x=!s||s[tr("0x5")](tr("0x15"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,tr("0x19"),t))),n[tr("0xf")].registerDescriptionCallback((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x8")]){case"bulletedList":r=n[tr("0x1")][0][tr("0x3f")],i=a(n.commandName),o=tr(r?"0x3c":"0x39"),i&&(o=tr("0x3a")),s={type:tr("0x21"),content:Yo(e,o,Yo(e,tr("0x2c")))};break;case tr("0x27"):r=n[tr("0x1")][0].forceValue,i=a(n.commandName),o=r?"*Format:* insert into %0":tr("0x39"),i&&(o=tr("0x3a")),s={type:"format",content:Yo(e,o,Yo(e,tr("0xd")))};break;case tr("0x31"):o=tr("0x13"),s={type:tr("0x21"),content:Yo(e,o,Yo(e,tr("0x19")))};break;case tr("0xe"):o=function(t){const e=t.getFirstRange();let n=e.start[tr("0x4a")];for(;n&&e[tr("0x3d")](n);){if(n[tr("0x5")](tr("0x0"))>0)return!1;n=n[tr("0x4")]}return!0}(t)?Yo(e,"*Format:* remove from %0",Yo(e,function(t){const e=t.getFirstRange()[tr("0x1a")][tr("0x4a")];return tr("0x3")+e.getAttribute(tr("0x33"))[tr("0xa")]()+"_LIST"}(t))):Yo(e,tr("0x1b"),Yo(e,"ELEMENT_LIST_ITEM")),s={type:tr("0x21"),content:o};break;case"mergeListItemBackward":case tr("0x18"):!1===n[tr("0x11")]&&(o=tr("0x1f"),s={type:tr("0x43"),content:Yo(e,o,Yo(e,tr("0x19")))})}return s})),n[tr("0x30")][tr("0x2b")]("formatBlock",tr("0x35"),tr("0x10"),(function(e,n){const o=[];for(let n of e)n[tr("0x1a")].nodeAfter===n[tr("0x3b")][tr("0x12")]&&(n=t[tr("0x48")].createRange(t[tr("0x48")].createPositionAt(n[tr("0x1a")].nodeAfter,0))),o[tr("0x24")](n);t[tr("0x48")][tr("0x22")]((e=>{const s=t[tr("0x48")][tr("0x1c")][tr("0x6")],r=Array.from(s[tr("0x20")]()).map((t=>i.LiveRange.fromRange(t)));e[tr("0x41")](o),t[tr("0x46")][tr("0x9")](n.commandName)[tr("0x38")](),n[tr("0x1")][tr("0x24")]({forceDefaultExecution:!0}),t[tr("0x3e")](n[tr("0x8")],...n[tr("0x1")]),e[tr("0x41")](r);for(const t of r)t[tr("0x37")]()}))}))}}var nr=n(331);const or=["enableCommand","model","nextSibling","selection","bind","afterExecute","getFirstPosition","detach","change","createRange","downcastDispatcher","fromRange","getFirstRange","data","init","split","fire","markerName","ck-suggestion-marker-split","requires","get","remove","mapper","document","high","createPositionAt","removeMarker:suggestion:insertion","editor","end","writer","options","commands","parent","showSuggestionHighlights","enter","enterBlock","editing","hasClass","markInsertion"];var sr,rr;sr=or,rr=108,function(t){for(;--t;)sr.push(sr.shift())}(++rr);const ir=function(t,e){return or[t-=0]};class xr extends t.Plugin{static get[ir("0x1c")](){return[nr.Enter]}[ir("0x17")](){const t=this[ir("0x24")],e=t.plugins[ir("0x1d")]("TrackChangesEditing"),n=t[ir("0x1")][ir("0x1d")](ir("0x4"));e[ir("0x9")]("enter",(()=>{t.model[ir("0x11")]((o=>{const s=t[ir("0xa")][ir("0x20")][ir("0xc")],r=s[ir("0xf")](),x=i.LiveRange[ir("0x14")](s[ir("0x15")]());if(n[ir("0x5")](o)){const n=t[ir("0xa")][ir("0x22")](r[ir("0x2")][ir("0xb")],0),s=o[ir("0x12")](r,n);e[ir("0x8")](s)}else o.setSelection(o.createRange(x[ir("0x25")]));x[ir("0x10")](),n[ir("0x19")](ir("0xe"),{writer:o})}))})),t[ir("0x6")][ir("0x13")].on("addMarker:suggestion:insertion",hs(t,ir("0x18")),{priority:"high"}),t.editing[ir("0x13")].on(ir("0x23"),((t,e,n)=>{const o=n[ir("0x1f")].markerNameToElements(e[ir("0x1a")]);if(o)for(const t of o)t[ir("0x7")](ir("0x1b"))&&(n[ir("0x1f")].unbindElementFromMarkerName(t,e.markerName),n[ir("0x26")][ir("0x1e")](t))}),{priority:ir("0x21")}),t[ir("0x16")][ir("0x13")].on("addMarker:suggestion:insertion",((e,n,o)=>{o[ir("0x0")][ir("0x3")]&&hs(t,ir("0x18"),{showActiveMarker:!1})[ir("0xd")](this)(e,n,o)}),{priority:ir("0x21")})}}const ar=["item","replace","handleFindCommand","createPositionAt","end","bind","createRange","getMarkersGroup","enableCommand","model","start","markers","string","editor","plugins","filter","afterInit","_isInDeletionRange","get","findPrevious","FindAndReplaceEditing","find"];var cr,lr;cr=ar,lr=231,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const ur=function(t,e){return ar[t-=0]};class dr extends t.Plugin{[ur("0x5")](){if(!this.editor[ur("0x3")].has(ur("0x9")))return;const t=this[ur("0x2")][ur("0x3")].get("TrackChangesEditing");t[ur("0x13")](ur("0xa"),this.handleFindCommand[ur("0x10")](this)),t[ur("0x13")]("findNext"),t.enableCommand(ur("0x8")),t[ur("0x13")](ur("0xc")),t[ur("0x13")]("replaceAll")}[ur("0xd")](t,e,n={}){const o=this[ur("0x2")][ur("0x3")][ur("0x7")]("FindAndReplaceUtils");void 0!==n&&t((t=>(ur("0x1")==typeof e?o.findByTextCallback(e,n):e)(t)[ur("0x4")]((e=>!1===this[ur("0x6")](e,t[ur("0xb")])))),n)}[ur("0x6")](t,e){const n=this[ur("0x2")][ur("0x14")][ur("0x11")](this[ur("0x2")][ur("0x14")][ur("0xe")](e,t[ur("0x15")]),this[ur("0x2")].model[ur("0xe")](e,t[ur("0xf")]));for(const t of this.editor[ur("0x14")][ur("0x0")][ur("0x12")]("suggestion:deletion"))if(null!==n.getIntersection(t.getRange()))return!0;return!1}}const gr=["fontColor","trim","FontSizeEditing","*Reset font family*","FontFamilyEditing","label","*Set font color:* %0","fontSize.options","TrackChangesEditing","toLowerCase","commandParams","has","plugins","*Set font size:* %0","*Reset font size*","*Reset font color*","fontSize","config","fontFamily","*Set font background color:* %0","get","change","FontSize","FontBackgroundColorEditing","selection","isCollapsed","model","locale","fontColor.colors","commandName","getRanges","afterInit","_enableCommand","fontBackgroundColor.colors","normalizeSizeOptions","find","markInlineFormat","value","editor","format","FontColorEditing","_descriptionFactory"];var mr,fr;mr=gr,fr=194,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:hr("0x12"),commandName:hr("0x20")},{pluginName:hr("0x14"),commandName:"fontFamily"},{pluginName:hr("0xe"),commandName:hr("0x10")},{pluginName:hr("0x27"),commandName:"fontBackgroundColor"}];class br extends t.Plugin{[hr("0x5")](){const t=this.editor[hr("0x1")];for(const{pluginName:t,commandName:e}of pr)this[hr("0xc")][hr("0x1c")][hr("0x1b")](t)&&this[hr("0x6")](e);this[hr("0xc")][hr("0x1c")][hr("0x24")](hr("0x18"))[hr("0xf")].registerDescriptionCallback((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0x20")==o[hr("0x3")]){const e=o.commandParams[0].value;if(e){const o=n(this[hr("0xc")].plugins[hr("0x24")](hr("0x26"))[hr("0x8")](this[hr("0xc")][hr("0x21")].get(hr("0x17")))[hr("0x9")]((t=>t[hr("0x0")]==e)).title)[hr("0x19")]();return{type:"format",content:Yo(t,hr("0x1d"),o)}}return{type:"format",content:Yo(t,hr("0x1e"))}}if(hr("0x22")==o[hr("0x3")]){const e=o[hr("0x1a")][0][hr("0xb")];return e?{type:hr("0xd"),content:Yo(t,"*Set font family:* %0",e)}:{type:hr("0xd"),content:Yo(t,hr("0x13"))}}if("fontColor"==o.commandName){const e=o.commandParams[0].value;if(e){const o=(0,s.normalizeColorOptions)(this[hr("0xc")][hr("0x21")][hr("0x24")](hr("0x2")))[hr("0x9")]((t=>t[hr("0x0")]==e));let r=e,i="";return o&&(r=o.label,i=n(r)[hr("0x19")]()),{type:"format",content:Yo(t,hr("0x16"),i).trim(),color:{value:e,title:i||r}}}return{type:hr("0xd"),content:Yo(t,hr("0x1f"))}}if("fontBackgroundColor"==o[hr("0x3")]){const e=o[hr("0x1a")][0][hr("0xb")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0xc")][hr("0x21")].get(hr("0x7"))).find((t=>t[hr("0x0")]==e));let r=e,i="";return o&&(r=o[hr("0x15")],i=n(r)[hr("0x19")]()),{type:hr("0xd"),content:Yo(t,hr("0x23"),i)[hr("0x11")](),color:{value:e,title:i||r}}}return{type:"format",content:Yo(t,"*Reset font background color*")}}}}))}[hr("0x6")](t){const e=this[hr("0xc")];e[hr("0x1c")].get(hr("0x18")).enableCommand(t,((n,o={})=>{const s=e[hr("0x0")].document[hr("0x28")],r=o[hr("0xb")];s[hr("0x29")]?n(o):e[hr("0x0")][hr("0x25")]((()=>{const n=Array.from(s[hr("0x4")]());for(const o of n){const n=r?[o]:ms(t,o,e.model);for(const o of n)e.plugins[hr("0x24")]("TrackChangesEditing")[hr("0xa")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["from","length","find","normalizeSizeOptions","getFirstPosition","FontSize","join","getAttributes","word","locale","commandName","split","change","label","config","modifySelection","getSelectedBlocks","model","slice","getRanges","_descriptionFactory","isCollapsed","format","fontColor.colors","toUpperCase","enableCommand","selection","schema","editor","createSelection","forward","backward","pasteFormat","getAttributeProperties","getItems","TrackChangesEditing","copyFormat","plugins","commands","toLowerCase","get","entries","push","fontSize.options","boolean","keys","fontSize","*Remove all formatting*"];var _r,Tr;_r=Er,Tr=186,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const yr=function(t,e){return Er[t-=0]};class Cr extends t.Plugin{afterInit(){const t=this[yr("0x22")],n=t[yr("0x17")],o=n.document[yr("0x20")],s=t[yr("0x2b")][yr("0x2e")](yr("0x29")),r=t[yr("0xf")],i=t[yr("0x2c")][yr("0x2e")]("copyFormat"),x=t[yr("0x2c")][yr("0x2e")](yr("0x26"));i&&x&&(s.enableCommand(yr("0x26"),((t,r={})=>{const i=r;n[yr("0x12")]((()=>{const t=Array[yr("0x6")](o.getRanges()),r=o[yr("0x1b")]?[kr(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t[yr("0xd")]()){const t=e[yr("0x27")](n);t&&t.isFormatting&&(yield n)}}(t,n));for(const e of t[yr("0x19")]())for(const t of e[yr("0x28")]())!n.isBlock(t)&&o(t)&&(yield t);for(const e of t[yr("0x16")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[yr("0x21")]))||0!==Object[yr("0x3")](i)[yr("0x7")])for(const t of r)s.markInlineFormat(t,{commandName:yr("0x26"),commandParams:[i]})}))})),s[yr("0x1a")].registerDescriptionCallback((e=>{const{data:n}=e;if(n&&yr("0x26")===n[yr("0x10")]){const e=[],o=n.commandParams[0];for(const[n,s]of Object[yr("0x2f")](o))e[yr("0x0")](Ar(t,n,s));return e[yr("0x7")]?{type:yr("0x1c"),content:Yo(r,"*Set format to:* %0",e[yr("0xc")](", "))}:{type:yr("0x1c"),content:Yo(r,yr("0x5"))}}})),t.plugins[yr("0x2e")](yr("0x29"))[yr("0x1f")](yr("0x2a")))}}function kr(t,e){const n=t[yr("0x23")](e);t[yr("0x15")](n,{unit:yr("0xe"),direction:yr("0x25")});const o=n[yr("0xa")]();t.modifySelection(n,{unit:yr("0xe"),direction:yr("0x24")});const s=n.getLastPosition();return t.createRange(o,s)}function Ar(t,e,n){const o=t.locale.t,r=e[yr("0x11")](/(?=[A-Z])/).join(" "),i=o(r.charAt(0)[yr("0x1e")]()+r[yr("0x18")](1))[yr("0x2d")]();if(yr("0x2")==typeof n)return i;if("fontColor"===e||"fontBackgroundColor"===e){const e=(0,s.normalizeColorOptions)(t[yr("0x14")][yr("0x2e")](yr("0x1d")))[yr("0x8")]((t=>t[yr("0x17")]==n));return i+" ("+(e?o(e[yr("0x13")])[yr("0x2d")]():n)+")"}if(yr("0x4")===e&&isNaN(parseFloat(n))){const e=t[yr("0x2b")][yr("0x2e")](yr("0xb"))[yr("0x9")](t.config[yr("0x2e")](yr("0x1")))[yr("0x8")]((t=>t[yr("0x17")]==n));return i+" ("+(e?o(e.title)[yr("0x2d")]():n)+")"}return i+" ("+n+")"}const vr=["checkChild","get","editor","match","isObject","has","format","selection","heading","document","formatBlock","change","commandParams","name","plugins","registerElementLabel","schema","ELEMENT_HEADING","ELEMENT_HEADING_CUSTOM","value","commandName","title","HeadingEditing","heading.options","paragraph","_descriptionFactory","find","locale","parent","model","filter","enableCommand","*Change to:* %0","config","from","afterInit"];var Rr,Sr;Rr=vr,Sr=434,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const Ir=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Ir("0x21")](){const t=this[Ir("0x0")],e=t[Ir("0x19")],n=t[Ir("0x1f")].get(Ir("0x15"));if(!t[Ir("0xc")][Ir("0x3")](Ir("0x14")))return;const o=t[Ir("0xc")][Ir("0x23")]("TrackChangesEditing");o[Ir("0x1d")](Ir("0x6"),((e,n)=>{const s=n[Ir("0x11")],r=Array[Ir("0x20")](this[Ir("0x0")][Ir("0x1b")][Ir("0x7")][Ir("0x5")].getSelectedBlocks())[Ir("0x1c")]((t=>{return e=t,n=s,(o=this[Ir("0x0")][Ir("0x1b")][Ir("0xe")])[Ir("0x22")](e[Ir("0x1a")],n)&&!o[Ir("0x2")](e)&&e[Ir("0xb")]!=n;var e,n,o}));t.model[Ir("0x9")]((()=>{for(const t of r)o.markBlockFormat(t,{commandName:Ir("0x6"),commandParams:[n],formatGroupId:"blockName"},fs(t))}))}));for(const t of n)Ir("0x16")!=t.model&&o._descriptionFactory[Ir("0xd")](t[Ir("0x1b")],(e=>{const n=Nr(t[Ir("0x1b")]);return null!==n?s(e,n):r(e,t[Ir("0x13")])}));function s(t,n){return Yo(e,Ir("0xf"),[t,n])}function r(t,n){return Yo(e,Ir("0x10"),[t,n])}o[Ir("0x17")].registerDescriptionCallback((t=>{const{type:o,data:i}=t;if(Ir("0x8")==o&&i&&Ir("0x6")==i[Ir("0x12")]){const t=i[Ir("0xa")][0][Ir("0x11")],o=Nr(t);if(null!==o)return{type:Ir("0x4"),content:Yo(e,Ir("0x1e"),s(1,o))};const x=n[Ir("0x18")]((e=>e[Ir("0x1b")]===t)).title;return{type:Ir("0x4"),content:Yo(e,Ir("0x1e"),r(1,x))}}}))}}function Nr(t){const e=t[Ir("0x1")](/^heading(\d+)$/);return e?e[1]:null}const Mr=["commandName","HighlightEditing","_descriptionFactory","TrackChangesEditing","createRange","push","format","hasAttribute","backward","afterInit","locale","highlight","*Set highlight:* %0","item","has","document","markInlineFormat","config","enableCommand","get","commandParams","toLowerCase","getFirstPosition","isCollapsed","change","value","getLastMatchingPosition","model","registerDescriptionCallback"];var wr,Or;wr=Mr,Or=241,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Pr extends t.Plugin{[Fr("0x0")](){const t=this.editor;if(!t.plugins[Fr("0x5")](Fr("0x15")))return;const e=t.plugins.get(Fr("0x17"));e[Fr("0x9")]("highlight",((n,o={})=>{const s=t[Fr("0x12")][Fr("0x6")].selection,r=s.getAttribute(Fr("0x2"));let i=o[Fr("0x10")],x=[];if(s[Fr("0xe")]){const e=s[Fr("0xd")]();if(!s[Fr("0x1b")](Fr("0x2")))return void n(o);{const n=t=>t[Fr("0x4")].getAttribute(Fr("0x2"))===r,o=e[Fr("0x11")](n,{direction:Fr("0x1c")}),s=e[Fr("0x11")](n);x=[t.model[Fr("0x18")](o,s)],i==r&&(i=null)}}else for(const e of s.getRanges())i?x.push(e):x[Fr("0x19")](...ms(Fr("0x2"),e,t[Fr("0x12")]));t[Fr("0x12")][Fr("0xf")]((()=>{for(const t of x)e[Fr("0x7")](t,{commandName:"highlight",commandParams:[{value:i}]})}))}));const n=t[Fr("0x1")];e[Fr("0x16")][Fr("0x13")]((e=>{const{type:o,data:s}=e;if("formatInline"==o&&s&&Fr("0x2")==s[Fr("0x14")]){const e=n.t,o=s[Fr("0xb")][0][Fr("0x10")];if(o){const s=t[Fr("0x8")][Fr("0xa")]("highlight.options").find((t=>t[Fr("0x12")]==o)),r=e(s.title)[Fr("0xc")]();return{type:Fr("0x1a"),content:Yo(n,Fr("0x3"),r),color:{value:s.color,title:s.title}}}return{type:Fr("0x1a"),content:Yo(n,"*Remove highlight*",Yo(n,"FORMAT_HIGHLIGHT"))}}}))}}const Dr=["registerElementLabel","ck-horizontal-line","HorizontalLineEditing","high","editor","addClass","createContainerElement","_descriptionFactory","horizontalLine","has","locale","TrackChangesEditing","for","afterInit","insert","createPositionAt","dataDowncast","showSuggestionHighlights","elementToStructure","enableCommand","createEmptyElement","get","plugins","div"];var Br,jr;Br=Dr,jr=363,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0xa")](){const t=this[Ur("0x1")];if(!t[Ur("0x13")][Ur("0x6")](Ur("0x17")))return;t[Ur("0x13")][Ur("0x12")](Ur("0x8"))[Ur("0x10")](Ur("0x5"));const e=t[Ur("0x13")][Ur("0x12")](Ur("0x8")),n=t[Ur("0x7")];e[Ur("0x4")][Ur("0x15")](Ur("0x5"),(t=>Yo(n,"ELEMENT_HORIZONTAL_LINE",t))),t.conversion[Ur("0x9")](Ur("0xd"))[Ur("0xf")]({model:Ur("0x5"),view:(t,{writer:e,options:n})=>{if(!n[Ur("0xe")])return null;const o=e[Ur("0x3")](Ur("0x14")),s=e[Ur("0x11")]("hr");return e[Ur("0x2")](Ur("0x16"),o),e[Ur("0xb")](e[Ur("0xc")](o,0),s),o},converterPriority:Ur("0x0")})}}const Hr=["document","selection","enableCommand","ELEMENT_HTML_EMBED","_descriptionFactory","editing","TrackChangesEditing","getAttribute","model","element","commandName","registerElementLabel","has","format","*Change %0 content*","rawHtmlApi","htmlEmbed","rawHtml","editor","get","getSelectedElement","HtmlEmbed","afterInit","plugins","value"];var Wr,zr;Wr=Hr,zr=417,function(t){for(;--t;)Wr.push(Wr.shift())}(++zr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0x5")](){const t=this[Vr("0x1")];if(!t[Vr("0x6")][Vr("0x14")](Vr("0x4")))return;const e=t[Vr("0x6")][Vr("0x2")](Vr("0xe")),n=t.locale,o=t[Vr("0xd")].view[Vr("0x8")][Vr("0x9")];e._descriptionFactory[Vr("0x13")](Vr("0x0"),(t=>Yo(n,Vr("0xb"),t))),t[Vr("0x6")][Vr("0x2")](Vr("0xe"))[Vr("0xa")](Vr("0x18"),((n,s)=>{const r=t[Vr("0x10")],i=r[Vr("0x8")][Vr("0x9")];r.change((()=>{const t=function(t){const e=t[Vr("0x3")]();return e&&e.is(Vr("0x11"),Vr("0x0"))?t.getSelectedElement():null}(i);if(!t)return void n(null);const r=t[Vr("0xf")](Vr("0x7"))||"";void 0!==s&&s!==r&&(e.markBlockFormat(t,{commandName:Vr("0x18"),commandParams:[s]}),o[Vr("0x3")]().getCustomProperty(Vr("0x17")).cancel())}))})),e[Vr("0xc")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&Vr("0x18")==e[Vr("0x12")]){const t=Yo(n,"ELEMENT_HTML_EMBED");return{type:Vr("0x15"),content:Yo(n,Vr("0x16"),t)}}}))}}const qr=["isIntersecting","length","locale","hasAttribute","nodeBefore","ImageCaptionUtils","getNearestSelectionRange","*Reset image width*","registerPostFixer","ImageStyleEditing","TrackChangesEditing","value","afterInit","ImageUploadEditing","markInsertion","isInlineImage","toNext","getClosestSelectedImageElement","schema","createRange","discard","join","registerDescriptionCallback","selection","getSuggestions","name","resizeImage","markBlockFormat","get","accept","subType","*Set image text alternative:* %0","isEqual","fromPosition","next","ImageTextAlternativeEditing","change","enableCommand","uploadImage","plugins","commandReversedParams","ELEMENT_INLINE_IMAGE","detach","start","has","width","ImageUtils","formatInline","addObject","ImageInlineEditing","commandParams","forward","*Remove image text alternative*","getFirstRange","editor","shouldConvertImageType","removeObject","isOwn","caption","isBlockImage","getSuggestion","nodeAfter","toPrevious","commands","imageInline","imageStyle","ImageResize","imageCaption","imageStylePostApply","getSuggestionCallback","isBefore","formatBlock","_descriptionFactory","ImageCaptionEditing","isCollapsed","filter","newValue","toLowerCase","imageBlock","chain","from","registerCustomCallback","isInContent","registerElementLabel","suggestion","markInlineFormat","Inline image to block image","toggleImageCaption","findIndex","_suggestionFactory","convertBlockImageToInline","commandName","type","newRange","imageTextAlternative","markDeletion","getAttribute","getCaptionFromImageModelElement","head","ELEMENT_CAPTION","alt","previous","differ","insertion","model","document","_findSuggestions","Block image to inline image","discardSuggestion","insertImage","convertInlineImageToBlock","imageTypeInline","getContainedElement","createRangeOn","forceDefaultExecution","element","imageStylePreApply","author","refresh","format","imageTypeBlock","backward","end"];var Xr,$r;Xr=qr,$r=156,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{[Jr("0x66")](){const t=this[Jr("0x15")];if(!t[Jr("0x6")].has("ImageEditing"))return;const n=t.plugins[Jr("0x76")](Jr("0x64")),o=t[Jr("0x6")].get(Jr("0xd")),s={},r=t[Jr("0x5c")];if(n[Jr("0x4")](Jr("0x4c")),n[Jr("0x27")][Jr("0x32")](Jr("0x2d"),(t=>Yo(r,"ELEMENT_IMAGE",t))),n._descriptionFactory[Jr("0x32")](Jr("0x1f"),(t=>Yo(r,Jr("0x8"),t))),n[Jr("0x27")][Jr("0x32")](Jr("0x19"),(()=>Yo(r,Jr("0x42")))),t[Jr("0x6")][Jr("0xb")](Jr("0x67"))&&n[Jr("0x4")](Jr("0x5")),t[Jr("0x6")][Jr("0xb")]("ImageBlockEditing")&&t[Jr("0x6")][Jr("0xb")](Jr("0x10"))&&(n.enableCommand(Jr("0x4e"),((e,s)=>{const r=o[Jr("0x6b")](t[Jr("0x47")][Jr("0x48")].selection);t[Jr("0x47")][Jr("0x3")]((()=>{n[Jr("0x75")](r,{commandName:Jr("0x4e"),commandParams:[s]},[],Jr("0x39"))}))})),n[Jr("0x4")]("imageTypeBlock",((e,s)=>{t[Jr("0x47")][Jr("0x3")]((r=>{let x=o[Jr("0x6b")](t[Jr("0x47")][Jr("0x48")][Jr("0x71")]),a=r[Jr("0x50")](x);const c=i.LivePosition[Jr("0x0")](a[Jr("0xa")],Jr("0x1d")),l=i.LivePosition[Jr("0x0")](a.end,Jr("0x6a"));n[Jr("0x51")]((()=>e(s))),x=o.getClosestSelectedImageElement(t.model[Jr("0x48")][Jr("0x71")]),a=r[Jr("0x50")](x);const u=r[Jr("0x6d")](c,l);c.detach(),l[Jr("0x9")](),n[Jr("0x75")](x,{commandName:Jr("0x4e"),commandParams:[]},[],Jr("0x4d")),u[Jr("0xa")][Jr("0x25")](a[Jr("0xa")])&&n[Jr("0x68")](r[Jr("0x6d")](u[Jr("0xa")],a[Jr("0xa")]),Jr("0x4d")),a[Jr("0x59")][Jr("0x25")](u[Jr("0x59")])&&n[Jr("0x68")](r[Jr("0x6d")](a[Jr("0x59")],u[Jr("0x59")]),Jr("0x4d"))}))})),n[Jr("0x38")][Jr("0x30")](Jr("0x26"),Jr("0x4d"),Jr("0x6f"),(()=>{})),n[Jr("0x38")][Jr("0x30")](Jr("0x26"),"convertInlineImageToBlock",Jr("0x77"),(()=>{})),n[Jr("0x38")][Jr("0x30")](Jr("0x26"),"convertInlineImageToBlock",Jr("0x6e"),n[Jr("0x38")][Jr("0x24")](Jr("0x26"),"",Jr("0x77"))),n[Jr("0x38")][Jr("0x30")](Jr("0x46"),"convertInlineImageToBlock",Jr("0x6f"),(()=>{})),n[Jr("0x38")][Jr("0x30")](Jr("0x46"),"convertInlineImageToBlock",Jr("0x6e"),(([e])=>{const o=n._suggestionFactory[Jr("0x24")](Jr("0x46"),"",Jr("0x6e"));let s=e[Jr("0xa")],r=e.end;const i=t[Jr("0x47")][Jr("0x6c")][Jr("0x60")](s,Jr("0x58")),x=t[Jr("0x47")].schema.getNearestSelectionRange(r,Jr("0x12"));i[Jr("0x29")]&&(s=i.start),x[Jr("0x29")]&&(r=x[Jr("0x59")]),o([t[Jr("0x47")].createRange(s,r)])})),n._suggestionFactory[Jr("0x30")](Jr("0x26"),"convertInlineImageToBlock",Jr("0x2e"),c),n[Jr("0x38")][Jr("0x30")]("insertion",Jr("0x4d"),Jr("0x2e"),c)),t.plugins[Jr("0xb")](Jr("0x28"))&&(n[Jr("0x4")](Jr("0x36"),((e,s)=>{const r=t[Jr("0x6")][Jr("0x76")](Jr("0x5f"));let i=o[Jr("0x6b")](t[Jr("0x47")][Jr("0x48")].selection),x=r.getCaptionFromImageModelElement(i);t.model[Jr("0x3")]((()=>{if(x)return void n[Jr("0x3e")](t.model[Jr("0x50")](x));const a=o[Jr("0x1a")](i);e(s),i=o[Jr("0x6b")](t.model.document[Jr("0x71")]),x=r[Jr("0x40")](i),n[Jr("0x68")](t.model[Jr("0x50")](x),a?null:Jr("0x22"))}))})),n._suggestionFactory[Jr("0x30")]("insertion","imageCaption","chain",c)),t[Jr("0x6")][Jr("0xb")](Jr("0x63"))){n[Jr("0x4")](Jr("0x20"),((s,r)=>{const i=t[Jr("0x6")][Jr("0x76")]("Users").me,x=t[Jr("0x1e")][Jr("0x76")]("imageStyle");let a=o[Jr("0x6b")](t[Jr("0x47")][Jr("0x48")][Jr("0x71")]),c=t[Jr("0x47")][Jr("0x50")](a),l=x.value;if(l==r[Jr("0x65")])return;const u={commandName:Jr("0x20"),commandParams:[r],formatGroupId:(0,e.uid)()};t[Jr("0x47")].change((()=>{if(n[Jr("0x72")]()[Jr("0x2a")]((t=>t[Jr("0x31")]&&i==t[Jr("0x54")]&&(Jr("0x26")==t.type||Jr("0xe")==t[Jr("0x3b")])&&(Jr("0x53")==t[Jr("0x78")]||Jr("0x23")==t[Jr("0x78")])&&t[Jr("0x14")]().isEqual(c))).forEach((t=>n.discardSuggestion(t[Jr("0x41")]))),a=o[Jr("0x6b")](t.model[Jr("0x48")][Jr("0x71")]),c=t[Jr("0x47")][Jr("0x50")](a),x[Jr("0x55")](),t[Jr("0x1e")][Jr("0x76")]("imageTypeInline")[Jr("0x55")](),t[Jr("0x1e")][Jr("0x76")](Jr("0x57"))[Jr("0x55")](),l=x.value,l!=r.value)return o[Jr("0x69")](a)&&x[Jr("0x16")](r[Jr("0x65")],a)?(s(r),a=o[Jr("0x6b")](t[Jr("0x47")].document[Jr("0x71")]),void n[Jr("0x75")](a,{...u,commandReversedParams:[{value:l||null}]},[],Jr("0x53"))):void(o[Jr("0x1a")](a)?n[Jr("0x75")](a,u,[],"imageStylePostApply"):n[Jr("0x34")](c,u,Jr("0x23")))}))}));for(const e of t[Jr("0x6")].get(Jr("0x63")).normalizedStyles)s[e[Jr("0x73")]]=e.title[Jr("0x2c")]();n[Jr("0x38")][Jr("0x30")](Jr("0x26"),Jr("0x53"),Jr("0x6f"),(()=>{})),n[Jr("0x38")][Jr("0x30")](Jr("0x26"),Jr("0x23"),Jr("0x6f"),(()=>{})),n[Jr("0x38")][Jr("0x30")](Jr("0xe"),"imageStylePostApply",Jr("0x6f"),(()=>{})),n[Jr("0x38")][Jr("0x30")](Jr("0x26"),"imageStylePreApply",Jr("0x77"),(()=>{})),n[Jr("0x38")][Jr("0x30")](Jr("0x26"),Jr("0x53"),Jr("0x6e"),((t,e)=>{n[Jr("0x38")][Jr("0x24")](Jr("0x26"),"",Jr("0x77"))(t,{commandName:e.commandName,commandParams:e[Jr("0x7")]})})),n[Jr("0x38")][Jr("0x30")](Jr("0x26"),Jr("0x53"),"chain",c)}const x=[{type:Jr("0x26"),subType:Jr("0x53")},{type:Jr("0x46"),subType:Jr("0x22")},{type:Jr("0x26"),subType:Jr("0x4d")},{type:Jr("0x46"),subType:Jr("0x4d")}];function a(t,e){const s=x[Jr("0x37")]((({type:e,subType:n})=>t[Jr("0x3b")]==e&&t[Jr("0x78")]==n)),r=x[Jr("0x37")]((({type:t,subType:n})=>e[Jr("0x3b")]==t&&e[Jr("0x78")]==n));if(s<0||r<0)return!1;const i=t[Jr("0x14")](),a=e[Jr("0x14")]();if((0==s||1==s)&&2==r&&i[Jr("0x5a")](a))return!0;if(2==s&&3==r){const t=n[Jr("0x49")](i,Jr("0x46"))[Jr("0x2a")]((({suggestion:t,meta:e})=>e[Jr("0x18")]&&Jr("0x4d")==t.subType));if(t[Jr("0x5b")]>1&&a.end[Jr("0x7a")](i.start))return!0;if(1==t[Jr("0x5b")]&&(i[Jr("0xa")].isEqual(a.end)||i[Jr("0x59")][Jr("0x7a")](a[Jr("0xa")])))return!0}if(3==s&&3==r&&i.start[Jr("0x25")](a[Jr("0xa")])){const t=i[Jr("0x59")][Jr("0x1c")],e=a[Jr("0xa")][Jr("0x5e")];return o[Jr("0x1a")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t.model[Jr("0x48")][Jr("0x62")]((()=>{let e=!1;const s=Array[Jr("0x2f")](t[Jr("0x47")][Jr("0x48")][Jr("0x45")].getChangedMarkers());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n._splitMarkerName(t);if(Jr("0x33")==s&&n.hasSuggestion(a)){if(Jr("0x26")==i&&(Jr("0x53")==x||Jr("0x23")==x)){const t=n[Jr("0x1b")](a);if(r[Jr("0x3c")]){const s=t[Jr("0x14")]()[Jr("0x4f")]();if(o[Jr("0x1a")](s))continue;n[Jr("0x4b")](t),e=!0}}if("insertion"==i&&Jr("0x22")==x&&!r.newRange){const t=n.getSuggestion(a);t[Jr("0x1")]&&t[Jr("0x1")][Jr("0x31")]&&(n[Jr("0x4b")](t[Jr("0x1")]),e=!0)}}}return e})),t[Jr("0x6")].has(Jr("0x21"))&&n[Jr("0x4")]("resizeImage",((e,s)=>{const r=o[Jr("0x6b")](t[Jr("0x47")][Jr("0x48")][Jr("0x71")]);r[Jr("0x3f")](Jr("0xc"))!=s.width&&t[Jr("0x47")][Jr("0x3")]((()=>{n[Jr("0x75")](r,{commandName:Jr("0x74"),commandParams:[s]})}))})),t.plugins[Jr("0xb")](Jr("0x2"))&&n[Jr("0x4")]("imageTextAlternative",((e,s)=>{const r=o[Jr("0x6b")](t[Jr("0x47")].document[Jr("0x71")]);(r[Jr("0x5d")](Jr("0x43"))?r.getAttribute(Jr("0x43")):"")!=s[Jr("0x2b")]&&t.model.change((()=>{n.markBlockFormat(r,{commandName:"imageTextAlternative",commandParams:[s]})}))})),n[Jr("0x27")][Jr("0x70")]((t=>{if(x.find((({type:e,subType:n})=>t[Jr("0x3b")]==e&&t[Jr("0x78")]==n)))return t[Jr("0x44")]?{}:void 0})),n[Jr("0x27")][Jr("0x70")]((t=>{if(Jr("0x46")==t.type||"deletion"==t.type){const e=t[Jr("0x4f")]();if(e&&e.is(Jr("0x52"),Jr("0x19")))return{type:"insertion"==t.type?Jr("0xf"):Jr("0x17"),element:e,quantity:1}}})),n[Jr("0x27")][Jr("0x70")]((t=>Jr("0x26")==t[Jr("0x3b")]&&Jr("0x4d")==t.subType?{type:Jr("0x56"),content:Jr("0x35")}:"formatBlock"==t.type&&"convertBlockImageToInline"==t[Jr("0x78")]?{type:Jr("0x56"),content:Jr("0x4a")}:void 0)),n[Jr("0x27")][Jr("0x70")]((t=>{const{data:e}=t;if(e){if(Jr("0x20")==e[Jr("0x3a")]){const t=e[Jr("0x11")][0][Jr("0x65")];return n="side"===t?Yo(r,"FORMAT_SIDE_IMAGE"):s[t]||t,{type:Jr("0x56"),content:Yo(r,"*Format:* %0",n)}}if(Jr("0x3d")==e[Jr("0x3a")]){const t=e[Jr("0x11")][0][Jr("0x2b")];return t?{type:Jr("0x56"),content:Yo(r,Jr("0x79"),'"'+t+'"')}:{type:Jr("0x56"),content:Yo(r,Jr("0x13"))}}if(Jr("0x74")==e[Jr("0x3a")]){const t=e[Jr("0x11")][0][Jr("0xc")];return t?{type:Jr("0x56"),content:Yo(r,"*Set image width:* %0",t)}:{type:Jr("0x56"),content:Yo(r,Jr("0x61"))}}}var n}))}}const Zr=["getContainedElement","has","change","getAttribute","*Format:* replace image URL","ImageEditing","commandName","selection","Users","document","data","source","getSelectedElement","plugins","formatBlock","format","TrackChangesEditing","discard","enableCommand","handleReplaceImageCommand","afterInit","accept","registerCustomCallback","registerDescriptionCallback","author","handleSuggestionDescription","_suggestionFactory","getSuggestionCallback","subType","replaceImageSource","editor","get"];var Yr,ti;Yr=Zr,ti=149,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0x1f")](){if(!this[ei("0x9")][ei("0x18")][ei("0xc")](ei("0x10")))return;const t=this[ei("0x9")][ei("0x18")][ei("0xa")](ei("0x1b"));t[ei("0x1d")](ei("0x8"),((t,e)=>this[ei("0x1e")](t,e))),t[ei("0x5")][ei("0x1")](ei("0x19"),ei("0x8"),"accept",t[ei("0x5")][ei("0x6")](ei("0x19"),null,ei("0x1c"))),t[ei("0x5")].registerCustomCallback(ei("0x19"),ei("0x8"),ei("0x1c"),t[ei("0x5")][ei("0x6")](ei("0x19"),null,ei("0x0"))),t._descriptionFactory[ei("0x2")]((t=>this[ei("0x4")](t)))}[ei("0x1e")](t,e){const n=this.editor[ei("0x18")][ei("0xa")](ei("0x1b")),o=this[ei("0x9")].model[ei("0x14")][ei("0x12")][ei("0x17")]();this.editor.model[ei("0xd")]((()=>{let s=o[ei("0xe")]("src");const r=this[ei("0x9")][ei("0x18")][ei("0xa")](ei("0x13")).me;for(const t of n.getSuggestions({skipNotAttached:!0})){const e=t[ei("0xb")]();if(ei("0x8")===t[ei("0x7")]&&e===o){t[ei("0x3")]!==r&&t.discard(),s=t[ei("0x15")].commandParams[0][ei("0x16")];break}}t(e),n.markBlockFormat(o,{commandName:ei("0x8"),commandParams:[{source:s}]},[],ei("0x8"))}))}[ei("0x4")](t){const{data:e}=t;if(e&&ei("0x8")===e[ei("0x11")]){const t=ei("0xf");return{type:ei("0x1a"),content:Yo(this.editor.locale,t)}}}}const oi=["plugins","bind","commands","listenTo","importWord","_handleImportedData","high","lowest","enableCommand","trackChanges","_trackChangesValueDuringImport","_trackChangesExecuted","value","execute","collaboration_features","get","editor","TrackChangesEditing","Users","track_changes"];var si,ri;si=oi,ri=320,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{constructor(t){super(t),this._trackChangesValueDuringImport=!1,this[ii("0xb")]=!1}afterInit(){const t=this.editor,e=t.commands[ii("0xf")](ii("0x4")),n=t[ii("0x2")][ii("0xf")](ii("0x9"));e&&(e.on(ii("0xd"),((t,[,e])=>{this[ii("0xa")]=n[ii("0xc")],e[ii("0xe")][ii("0x13")]=!this[ii("0xa")]}),{priority:ii("0x6")}),this[ii("0x3")](e,"dataInsert",this[ii("0x5")][ii("0x1")](this)),this[ii("0x3")](e,"dataInsert",(()=>{this._trackChangesExecuted&&(n[ii("0xd")](),this[ii("0xb")]=!1)}),{priority:ii("0x7")}),t.plugins[ii("0xf")]("TrackChangesEditing")[ii("0x8")]("importWord"))}[ii("0x5")](t,e){const{suggestions:n}=e,o=this.editor[ii("0x2")][ii("0xf")](ii("0x9")),s=o.value;this._trackChangesValueDuringImport!==s&&(o[ii("0xd")](),this[ii("0xb")]=!0),n&&n.forEach((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0x10")][ii("0x0")][ii("0xf")](ii("0x12")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:"importWord"}}};this.editor[ii("0x0")][ii("0xf")](ii("0x11"))._setSuggestionData(s)}))}}const ai=["outdentBlock","document","get","selection","IndentBlock","getItems","plugins","getSelectedBlocks","IndentEditing","checkAttribute","getItemLabel","indentBlock","locale","schema","change","enableCommand","TrackChangesEditing","from","model","commandName","has","*Indent:* %0","markBlockFormat","_descriptionFactory","indent","blockIndent"];var ci,li;ci=ai,li=231,function(t){for(;--t;)ci.push(ci.shift())}(++li);const ui=function(t,e){return ai[t-=0]};class di extends t.Plugin{afterInit(){const t=this.editor,e=t[ui("0x9")][ui("0x5")](ui("0x13"));t.plugins[ui("0x17")](ui("0xb"))&&(e[ui("0x12")](ui("0x1")),e[ui("0x12")]("outdent"));const n=t[ui("0xf")];if(t[ui("0x9")][ui("0x17")](ui("0x7"))){for(const n of[ui("0xe"),"outdentBlock"])e[ui("0x12")](n,(()=>{const o=Array[ui("0x14")](this.editor.model[ui("0x4")][ui("0x6")][ui("0xa")]()).filter((t=>this.editor[ui("0x15")][ui("0x10")][ui("0xc")](t,ui("0x2"))));t[ui("0x15")][ui("0x11")]((()=>{for(const t of o)e[ui("0x19")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:ui("0xe")})}))}));e[ui("0x0")].registerDescriptionCallback((t=>{const{data:o}=t;if(!o)return;if("indentBlock"!=o[ui("0x16")]&&ui("0x3")!=o[ui("0x16")])return;const s=t[ui("0x8")]()[0],r=e[ui("0x0")][ui("0xd")](s);return ui("0xe")==o[ui("0x16")]?{type:"format",content:Yo(n,ui("0x18"),r)}:ui("0x3")==o[ui("0x16")]?{type:"format",content:Yo(n,"*Outdent:* %0",r)}:void 0}))}}}var gi,mi,fi=["get","TrackChangesEditing","plugins","requires"];gi=fi,mi=407,function(t){for(;--t;)gi.push(gi.shift())}(++mi);var hi=function(t,e){return fi[t-=0]};class pi extends t.Plugin{static get[hi("0x0")](){return[Vs.Input]}init(){this.editor[hi("0x3")][hi("0x1")](hi("0x2")).enableCommand("input")}}const bi=["TrackChangesEditing","selection","link","document","linkHref","isCollapsed","afterInit","commandParams","enableCommand","_descriptionFactory","plugins","model","has","getAttribute","commandName","change","unlink","hasAttribute","*Remove link*","get","LinkEditing","getRanges","editor","markInlineFormat","from","registerDescriptionCallback","format"];var Ei,_i;Ei=bi,_i=417,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class yi extends t.Plugin{[Ti("0x15")](){const t=this[Ti("0xa")];if(!t.plugins[Ti("0x0")](Ti("0x8")))return;const e=t[Ti("0x19")][Ti("0x7")](Ti("0xf"));e[Ti("0x17")](Ti("0x11"),((n,o)=>{const s=t[Ti("0x1a")][Ti("0x12")][Ti("0x10")];let r=[];if(s[Ti("0x14")]){if(!s[Ti("0x5")](Ti("0x13")))return void n(o);{const e=(0,Vs.findAttributeRange)(s.getFirstPosition(),Ti("0x13"),s[Ti("0x1")](Ti("0x13")),t[Ti("0x1a")]);r=[e]}}else r=Array[Ti("0xc")](s[Ti("0x9")]());t.model[Ti("0x3")]((()=>{for(const t of r)e[Ti("0xb")](t,{commandName:Ti("0x11"),commandParams:[o]})}))})),e[Ti("0x17")]("unlink",(()=>{const n=this.editor[Ti("0x1a")],o=n[Ti("0x12")][Ti("0x10")];n[Ti("0x3")]((()=>{let n=[];n=o[Ti("0x14")]?[(0,Vs.findAttributeRange)(o.getFirstPosition(),Ti("0x13"),o.getAttribute(Ti("0x13")),t[Ti("0x1a")])]:ms("linkHref",o.getFirstRange(),t[Ti("0x1a")]);for(const t of n)e[Ti("0xb")](t,{commandName:Ti("0x4"),commandParams:[]})}))})),e[Ti("0x18")][Ti("0xd")]((e=>{const{data:n}=e,o=t.locale;if(n){if(Ti("0x11")==n[Ti("0x2")]){const t=n[Ti("0x16")][0];return{type:Ti("0xe"),content:Yo(o,"*Set link:* %0",'"'+t+'"')}}return"unlink"==n[Ti("0x2")]?{type:Ti("0xe"),content:Yo(o,Ti("0x6"))}:void 0}}))}}const Ci=["execute","format","from","bulletedList","_descriptionFactory","markBlockFormat","forceValue","blockName","todoList","numbered","change","*Uncheck item*","*Outdent:* %0","has","element","end","createPositionAt","listItem","checkChild","todoListChecked","model","length","commandParams","ELEMENT_TODO_LIST","paragraph","replace","TodoListEditing","previousSibling","add","registerDescriptionCallback","get","todo","slice","*Check item*","editor","value","ListEditing","parent","List","name","enableCommand","outdentList","plugins","selection","push","registerElementLabel","numberedList","_selectedElements","checkTodoList","getAttribute","schema","listType","getSelectedBlocks","commandName","ELEMENT_LIST_ITEM","locale","nextSibling","filter","commands","listIndent"];var ki,Ai;ki=Ci,Ai=245,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return Ci[t-=0]};class Ri extends t.Plugin{afterInit(){const t=this[vi("0x1d")],e=t[vi("0x32")];if(!t[vi("0x25")][vi("0x8")](vi("0x1f")))return;const n=t[vi("0x25")].get("TrackChangesEditing"),o=t.plugins[vi("0x8")](vi("0x15"));function s(e){return()=>{const o=t.model.document[vi("0x26")],s=t.commands[vi("0x19")](e);if(s.value)return void t[vi("0x37")](vi("0x13"),{});const r=e[vi("0x1b")](0,-4),i=function(t,e,n){let o=Array.from(t)[vi("0x34")]((t=>{return e=t,(o=n)[vi("0xd")](e[vi("0x20")],vi("0xc"))&&!o.isObject(e);var e,o}));o=o[vi("0x34")]((t=>!t.is(vi("0x9"),vi("0xc"))||t[vi("0x2c")](vi("0x2e"))!=e));const s=new Set;for(const t of o)t.is("element","listItem")?s[vi("0x17")](Si(t)):s[vi("0x17")](t);return Array[vi("0x39")](s)}(o[vi("0x2f")](),r,t[vi("0xf")][vi("0x2d")]);t.model.change((()=>{for(const t of i)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!s[vi("0x1e")]}],formatGroupId:vi("0x2")},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[vi("0x39")](t);const n=e.findIndex((t=>vi("0xc")!=t[vi("0x22")]));return n>-1&&(e=e.slice(0,n)),e}(t[vi("0xf")].document.selection[vi("0x2f")]()),s=t[vi("0xf")].createRange(t[vi("0xf")][vi("0xb")](o[0],"before"),t[vi("0xf")][vi("0xb")](o[o[vi("0x10")]-1],vi("0xa")));t[vi("0xf")][vi("0x5")]((()=>{n[vi("0x0")](s,{commandName:e,commandParams:[],formatGroupId:vi("0x36")},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t.getAttribute("listIndent")>n.getAttribute(vi("0x36"));)e.add(t),t=t[vi("0x33")]}return Array.from(e)}(o))}))}}n[vi("0x23")]("numberedList",s(vi("0x29"))),n.enableCommand(vi("0x3a"),s(vi("0x3a"))),o&&n[vi("0x23")](vi("0x3"),s("todoList")),n[vi("0x23")]("indentList",r("indentList")),n[vi("0x23")](vi("0x24"),r(vi("0x24"))),o&&n[vi("0x23")]("checkTodoList",(()=>{const e=t[vi("0x35")][vi("0x19")](vi("0x2b")),o=Array[vi("0x39")](e[vi("0x2a")]);o[vi("0x34")]((t=>t[vi("0x2c")](vi("0xe"))!=e[vi("0x1e")])),t[vi("0xf")][vi("0x5")]((()=>{for(const t of o)n.markBlockFormat(t,{commandName:vi("0x2b"),commandParams:[{forceValue:!e[vi("0x1e")]}]})}))})),n[vi("0x3b")][vi("0x28")](vi("0xc"),(t=>Yo(e,vi("0x31"),t))),n[vi("0x3b")][vi("0x18")]((t=>{const{data:n}=t;if(n){if(vi("0x29")==n[vi("0x30")]||"bulletedList"==n.commandName||vi("0x3")==n[vi("0x30")])switch(n.commandName[vi("0x14")](vi("0x21"),"")){case"bulleted":return o(Yo(e,"ELEMENT_BULLETED_LIST"));case vi("0x4"):return o(Yo(e,"ELEMENT_NUMBERED_LIST"));case vi("0x1a"):return o(Yo(e,vi("0x12")))}if("indentList"==n[vi("0x30")])return{type:"format",content:Yo(e,"*Indent:* %0",Yo(e,vi("0x31")))};if(vi("0x24")==n.commandName)return{type:"format",content:Yo(e,vi("0x7"),Yo(e,vi("0x31")))};if(vi("0x2b")==n.commandName)return n[vi("0x11")][0][vi("0x1")]?{type:"format",content:Yo(e,vi("0x1c"))}:{type:vi("0x38"),content:Yo(e,vi("0x6"))}}function o(t){return{type:"format",content:Yo(e,"*Change to:* %0",t)}}}))}}function Si(t){const e=t.getAttribute(vi("0x36"));if(0==e)return t;let n=t;for(;t.previousSibling&&t[vi("0x16")].is(vi("0x9"),"listItem");){const o=t[vi("0x16")].getAttribute(vi("0x36"));if(o==e)n=t[vi("0x16")];else if(o<e)break;t=t[vi("0x16")]}return n}function Ii(t){const e=[];if(t.is(vi("0x9"),vi("0xc"))&&t[vi("0x2c")](vi("0x36"))>0){let n=t[vi("0x33")];for(;n&&vi("0xc")==n[vi("0x22")]&&n[vi("0x2c")](vi("0x36"))==t[vi("0x2c")](vi("0x36"));)e[vi("0x27")](n),n=n[vi("0x33")]}return e}const Li=["commandParams","_LIST_","toUpperCase","_getSuggestionBlocks","*Format:* set order to regular","getSelectedBlocks","listReversed","length","from","get","getSiblingNodes","handleListReversedCommand","_getTranslationKeyForListStyle","replace","type","has","markMultiRangeBlockFormat","getAttribute","ListUtils","editor","_getSuggestionBlocksForListStyle","filter","flat","getFirstPosition","listStart","*Format:* set order to reversed","handleListStyleCommand","handleDescriptions","format","getListTypeFromListStyleType","unshift","startIndex","enableCommand","document","createRange","forward","selection","styles","handleListStartCommand","afterInit","reversed","model","registerDescriptionCallback","change","commandName","backward","element","before","listItem","locale","getLastPosition","map","numbered","ELEMENT_","parent","TrackChangesEditing","push","bind","listType","*Change to:* %0","createPositionAt","listStyle","plugins","*Format:* set start index to %0","list.properties","_descriptionFactory"];var Ni,Mi;Ni=Li,Mi=353,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[wi("0x10")](){if(!this[wi("0x3e")].plugins[wi("0x3a")]("ListPropertiesEditing"))return;const t=this[wi("0x3e")].config[wi("0x34")](wi("0x29")),e=this.editor[wi("0x27")].get(wi("0x20"));t[wi("0xe")]&&e[wi("0x9")](wi("0x26"),this[wi("0x3")][wi("0x22")](this)),t.reversed&&e[wi("0x9")](wi("0x31"),this[wi("0x36")][wi("0x22")](this)),t.startIndex&&e[wi("0x9")](wi("0x1"),this[wi("0xf")][wi("0x22")](this)),e[wi("0x2a")][wi("0x13")](this.handleDescriptions.bind(this))}[wi("0x3")](t,e={}){const n=this[wi("0x3e")][wi("0x27")][wi("0x34")](wi("0x20")),o=this[wi("0x3f")]();this[wi("0x3e")][wi("0x12")].change((()=>{n[wi("0x3b")](o,{commandName:wi("0x26"),commandParams:[{type:e[wi("0x39")]}],formatGroupId:wi("0x26")})}))}handleListReversedCommand(t,e={}){const n=this.editor[wi("0x27")][wi("0x34")]("TrackChangesEditing"),o=this._getSuggestionBlocks((t=>t.is(wi("0x17"),"listItem")&&"numbered"===t[wi("0x3c")](wi("0x23"))));if(o.length<1)return;const s=o[wi("0x1c")]((t=>this.editor[wi("0x12")].createRange(this.editor[wi("0x12")][wi("0x25")](t,"before"),this[wi("0x3e")][wi("0x12")][wi("0x25")](t,0))));this[wi("0x3e")].model[wi("0x14")]((()=>{n[wi("0x3b")](s,{commandName:wi("0x31"),commandParams:[{reversed:e[wi("0x11")]}],formatGroupId:wi("0x31")})}))}[wi("0xf")](t,e={}){const n=this[wi("0x3e")][wi("0x27")][wi("0x34")](wi("0x20")),o=this[wi("0x2e")]((t=>t.is(wi("0x17"),wi("0x19"))&&wi("0x1d")===t[wi("0x3c")](wi("0x23"))));if(o[wi("0x32")]<1)return;const s=o[wi("0x1c")]((t=>this[wi("0x3e")][wi("0x12")][wi("0xb")](this[wi("0x3e")][wi("0x12")][wi("0x25")](t,wi("0x18")),this.editor.model[wi("0x25")](t,0))));this[wi("0x3e")][wi("0x12")][wi("0x14")]((()=>{n[wi("0x3b")](s,{commandName:wi("0x1"),commandParams:[{startIndex:e.startIndex}],formatGroupId:wi("0x1")})}))}[wi("0x4")](t){const e=this[wi("0x3e")][wi("0x1a")],{data:n}=t;if(!n)return;let o,s;switch(n[wi("0x15")]){case wi("0x26"):o=wi("0x24"),s={type:wi("0x5"),content:Yo(e,o,Yo(e,this[wi("0x37")](n[wi("0x2b")][0][wi("0x39")])))};break;case"listReversed":o=n[wi("0x2b")][0].reversed?wi("0x2"):wi("0x2f"),s={type:wi("0x5"),content:Yo(e,o)};break;case wi("0x1"):o=wi("0x28"),s={type:"format",content:Yo(e,o,n[wi("0x2b")][0][wi("0x8")])}}return s}_getSuggestionBlocksForListStyle(){var t,e,n,o;const s=this[wi("0x3e")].plugins[wi("0x34")](wi("0x3d"));let r=Array.from(this[wi("0x3e")][wi("0x12")].document[wi("0xd")][wi("0x30")]());return(null===(t=r[0])||void 0===t?void 0:t.is(wi("0x17"),"listItem"))&&r[wi("0x7")](...s[wi("0x35")](this[wi("0x3e")][wi("0x12")][wi("0xa")][wi("0xd")][wi("0x0")](),wi("0x16"))),(null===(e=r[r[wi("0x32")]-1])||void 0===e?void 0:e.is(wi("0x17"),wi("0x19")))&&r[wi("0x21")](...s[wi("0x35")](this[wi("0x3e")][wi("0x12")][wi("0xa")].selection[wi("0x1b")](),wi("0xc"))),r=[...new Set(r)],(null===(o=null===(n=this[wi("0x3e")].model.document.selection[wi("0x0")]())||void 0===n?void 0:n[wi("0x1f")])||void 0===o?void 0:o.is("element",wi("0x19")))&&(r=r[wi("0x40")]((t=>t.is(wi("0x17"),wi("0x19"))))),r}[wi("0x2e")](t){const e=this.editor[wi("0x27")][wi("0x34")](wi("0x3d"));let n=Array[wi("0x33")](this.editor[wi("0x12")].document[wi("0xd")].getSelectedBlocks()).filter(t)[wi("0x1c")]((t=>{const n=this[wi("0x3e")][wi("0x12")].createPositionAt(t,0);return[...e[wi("0x35")](n,wi("0x16")),...e[wi("0x35")](n,wi("0xc"))]}))[wi("0x41")]();return n=[...new Set(n)],n}_getTranslationKeyForListStyle(t){return wi("0x1e")+this[wi("0x3e")][wi("0x27")][wi("0x34")](wi("0x3d"))[wi("0x6")](t)[wi("0x2d")]()+wi("0x2c")+t[wi("0x2d")]()[wi("0x38")](/-/g,"_")}}const Fi=["downcastDispatcher","_descriptionFactory","conversion","MediaEmbedEditing","createEmptyElement","ELEMENT_MEDIA","showSuggestionHighlights","stop","has","editor","plugins","data","TrackChangesEditing","high","enableCommand","dataDowncast","attribute:url:media","locale"];var Pi,Di;Pi=Fi,Di=219,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{afterInit(){const t=this[Bi("0x6")];if(!t[Bi("0x7")][Bi("0x5")](Bi("0x0")))return;const e=t[Bi("0x7")].get(Bi("0x9")),n=t[Bi("0xe")];e[Bi("0xb")]("mediaEmbed"),e[Bi("0x10")].registerElementLabel("media",(t=>Yo(n,Bi("0x2"),t))),t[Bi("0x11")].for(Bi("0xc")).elementToElement({model:"media",view:(t,{writer:e,options:n})=>{if(n[Bi("0x3")])return e[Bi("0x1")]("div")},converterPriority:Bi("0xa")}),t[Bi("0x8")][Bi("0xf")].on(Bi("0xd"),((t,e,n)=>{n.options[Bi("0x3")]&&t[Bi("0x4")]()}),{priority:Bi("0xa")})}}const Ui=["has","MentionEditing","editor","get","mention","enableCommand","afterInit","plugins"];var Gi,Hi;Gi=Ui,Hi=168,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const Wi=function(t,e){return Ui[t-=0]};class zi extends t.Plugin{[Wi("0x6")](){const t=this[Wi("0x2")];t[Wi("0x7")][Wi("0x0")](Wi("0x1"))&&t[Wi("0x7")][Wi("0x3")]("TrackChangesEditing")[Wi("0x5")](Wi("0x4"))}}const Vi=["plugins","afterInit","_descriptionFactory","PageBreakEditing","ELEMENT_PAGE_BREAK","pageBreak","has","enableCommand","get","locale","editor"];var Ki,qi;Ki=Vi,qi=121,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{[Xi("0x1")](){const t=this[Xi("0xa")];if(!t[Xi("0x0")][Xi("0x6")](Xi("0x3")))return;t[Xi("0x0")][Xi("0x8")]("TrackChangesEditing")[Xi("0x7")](Xi("0x5"));const e=t[Xi("0x0")][Xi("0x8")]("TrackChangesEditing"),n=t[Xi("0x9")];e[Xi("0x2")].registerElementLabel("pageBreak",(t=>Yo(n,Xi("0x4"),t)))}}const Ji=["$text","Paragraph","checkChild","ELEMENT_PARAGRAPH","selection","isObject","document","insertion","isBlock","consume","data","locale","addMarker:suggestion:insertion","markerRange","registerElementLabel","paragraph","plugins","nodeAfter","format","isLimit","options","parent","*Insert:* %0","highest","end","isTouching","createUIElement","toViewPosition","addClass","name","getItemLabel","getSelectedBlocks","schema","type","TrackChangesEditing","insertParagraph","enableCommand","change","activeMarkers","blockName","insert","commandName","mapper","filter","writer","editing","bindElementToMarker","ck-suggestion-marker-split","downcastDispatcher","ck-suggestion-marker--active","getFirstRange","_descriptionFactory","includes","markerName","model","markBlockFormat","registerDescriptionCallback","has"];var Qi,Zi;Qi=Ji,Zi=140,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{afterInit(){const t=this.editor;if(!t[Yi("0x32")][Yi("0x21")](Yi("0x23")))return;const e=t[Yi("0x2d")],n=t[Yi("0x32")].get(Yi("0xa"));n[Yi("0x1b")][Yi("0x30")](Yi("0x31"),(t=>Yo(e,Yi("0x25"),t))),n[Yi("0xc")](Yi("0x31"),((e,o={})=>{const s=t.model[Yi("0x28")],r=o[Yi("0x26")]||s[Yi("0x26")],i=Array.from(r[Yi("0x7")]())[Yi("0x13")]((t=>{return e=t,(n=this.editor.model.schema)[Yi("0x24")](e[Yi("0x37")],Yi("0x31"))&&!n[Yi("0x27")](e)&&"paragraph"!=e[Yi("0x5")];var e,n}));t[Yi("0x1e")][Yi("0xd")]((()=>{for(const t of i)n[Yi("0x1f")](t,{commandName:Yi("0x31"),commandParams:[],formatGroupId:Yi("0xf")},fs(t))}))})),n._descriptionFactory[Yi("0x20")]((t=>{const{data:n}=t;if(n&&"paragraph"==n[Yi("0x11")])return{type:Yi("0x34"),content:Yo(e,"*Change to:* %0",Yo(e,Yi("0x25")))}})),n[Yi("0xc")](Yi("0xb")),t[Yi("0x15")].downcastDispatcher.on(Yi("0x2e"),ex(t),{priority:Yi("0x39")}),t[Yi("0x2c")][Yi("0x18")].on(Yi("0x2e"),((e,n,o)=>{o[Yi("0x36")].showSuggestionHighlights&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:"highest"});const o=n[Yi("0x1b")];o[Yi("0x20")]((n=>{if(Yi("0x29")!==n[Yi("0x9")])return;const{start:s,end:r}=n[Yi("0x1a")]();if(!s[Yi("0x1")](r)||!s[Yi("0x33")])return;const i=t[Yi("0x1e")][Yi("0x8")],x=s[Yi("0x33")];return i[Yi("0x2a")](x)&&!i[Yi("0x35")](x)&&i[Yi("0x24")](x,Yi("0x22"))?{type:Yi("0x29"),content:Yo(e,Yi("0x38"),o[Yi("0x6")](x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Yi("0x32")].get("TrackChangesEditing"),i=o[Yi("0x2f")].start,x=o.markerRange[Yi("0x0")],a=t.model[Yi("0x8")];if(!i[Yi("0x1")](x)||!i.nodeAfter)return;const c=i[Yi("0x33")];if(a.isBlock(c)&&!a[Yi("0x35")](c)&&a[Yi("0x24")](c,Yi("0x22"))){if(!s.consumable[Yi("0x2b")](o.markerRange,n[Yi("0x5")]))return;const t=s[Yi("0x14")][Yi("0x2")]("span",{class:Yi("0x17")}),i=s.mapper[Yi("0x3")](x);e&&r[Yi("0xe")][Yi("0x1c")](o[Yi("0x1d")])&&s[Yi("0x14")][Yi("0x4")](Yi("0x19"),t),s[Yi("0x14")][Yi("0x10")](i,t),s[Yi("0x12")][Yi("0x16")](t,o[Yi("0x1d")])}}}const nx=["from","has","removeFormat","getRanges","selection","createRangeOn","getAttributes","afterInit","getItems","document","enableCommand","model","change","isCollapsed","markInlineFormat","_descriptionFactory","plugins","getAttributeProperties","registerDescriptionCallback","*Remove all formatting*"];var ox,sx;ox=nx,sx=131,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[rx("0x10")](){const t=this.editor;if(!t[rx("0x5")][rx("0xa")]("RemoveFormatEditing"))return;const e=t[rx("0x5")].get("TrackChangesEditing");e[rx("0x13")](rx("0xb"),(n=>{const o=t.model[rx("0x12")][rx("0xd")];o[rx("0x2")]?n():t[rx("0x0")][rx("0x1")]((()=>{const n=Array[rx("0x9")](o[rx("0xc")]());for(const o of n)for(const n of o[rx("0x11")]())xx(n,t[rx("0x0")].schema)&&e[rx("0x3")](t[rx("0x0")][rx("0xe")](n),{commandName:rx("0xb"),commandParams:[]})}))})),e[rx("0x4")][rx("0x7")]((e=>{const{data:n}=e;if(n&&rx("0xb")==n.commandName)return{type:"format",content:Yo(t.locale,rx("0x8"))}}))}}function xx(t,e){for(const[n]of t[rx("0xf")]()){const t=e[rx("0x6")](n);if(t&&t.isFormatting)return!0}return!1}const ax=["acceptSuggestion","acceptAllSuggestions","acceptSelectedSuggestions","has","plugins","discardAllSuggestions","enableCommand","goToNextRestrictedEditingException","editor","get","goToPreviousRestrictedEditingException","trackChanges","discardSelectedSuggestions","RestrictedEditingModeEditing"];var cx,lx;cx=ax,lx=174,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{afterInit(){const t=this[ux("0x2")];if(!t[ux("0xc")][ux("0xb")](ux("0x7")))return;const e=t[ux("0xc")][ux("0x3")]("TrackChangesEditing");e.enableCommand(ux("0x4")),e[ux("0x0")](ux("0x1"));const n=t[ux("0xc")][ux("0x3")](ux("0x7"));n.enableCommand(ux("0x5")),n[ux("0x0")](ux("0x8")),n[ux("0x0")]("discardSuggestion"),n[ux("0x0")](ux("0x9")),n[ux("0x0")](ux("0xd")),n[ux("0x0")](ux("0xa")),n[ux("0x0")](ux("0x6"))}}const gx=["addMarker:suggestion:deletion","split","_descriptionFactory","ck-suggestion-marker--active","deletion","merge","options","createPositionBefore","shiftEnter","mapper","editor","TrackChangesEditing","element","addMarker:suggestion:insertion","init","plugins","enableCommand","high","toViewPosition","locale","softBreak","writer","addClass","bindElementToMarker","test","downcastDispatcher","registerElementLabel","markerRange","editing","addMarker:suggestion","ELEMENT_LINE_BREAK","span","activeMarkers","markerName","model","get"];var mx,fx;mx=gx,fx=264,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{static get requires(){return[nr.ShiftEnter]}[hx("0x2")](){const t=this[hx("0x22")],e=t[hx("0x3")][hx("0x17")](hx("0x23"));e[hx("0x4")](hx("0x20")),t.editing[hx("0xd")].on(hx("0x1"),bx(t),{priority:"high"}),t[hx("0x10")].downcastDispatcher.on(hx("0x18"),bx(t),{priority:hx("0x5")}),t.data[hx("0xd")].on(hx("0x11"),((e,n,o)=>{o[hx("0x1e")].showSuggestionHighlights&&bx(t,{showActiveMarker:!1})(e,n,o)})),e[hx("0x1a")][hx("0xe")](hx("0x8"),(e=>Yo(t[hx("0x7")],hx("0x12"),e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t.plugins.get(hx("0x23"));if(!s.consumable[hx("0xc")](o[hx("0xf")],n.name))return;const i=t[hx("0x16")];for(const t of o.markerRange.getItems()){if(!t.is(hx("0x0"),"softBreak"))continue;const n=hx("0x1c")==o[hx("0x15")][hx("0x19")](":")[1]?hx("0x1d"):hx("0x19"),x=s[hx("0x9")].createUIElement(hx("0x13"),{class:"ck-suggestion-marker-"+n}),a=s[hx("0x21")][hx("0x6")](i[hx("0x1f")](t));e&&r[hx("0x14")].includes(o[hx("0x15")])&&s.writer[hx("0xa")](hx("0x1b"),x),s[hx("0x9")].insert(a,x),s[hx("0x21")][hx("0xb")](x,o[hx("0x15")])}}}const Ex=["locale","isCollapsed","FORMAT_RESTRICTED_ENABLED","editor","value","has","format","_descriptionFactory","commands","from","markInlineFormat","getRanges","forceValue","commandName","enableCommand","afterInit","TrackChangesEditing","commandParams","registerDescriptionCallback","plugins"];var _x,Tx;_x=Ex,Tx=468,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const yx=function(t,e){return Ex[t-=0]};class Cx extends t.Plugin{[yx("0x7")](){const t=this[yx("0xf")],e=t.model,n=t[yx("0xc")];if(!t[yx("0xb")][yx("0x11")]("StandardEditingModeEditing"))return;const o=t[yx("0xb")].get(yx("0x8")),s="restrictedEditingException",r=t[yx("0x0")].get(s);o[yx("0x6")](s,((t,n={})=>{const i=e.document.selection;if(i[yx("0xd")])return void t(n);const x=void 0!==n[yx("0x4")]?n[yx("0x4")]:!r[yx("0x10")];e.change((()=>{const t=Array[yx("0x1")](i[yx("0x3")]());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o[yx("0x2")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[yx("0x13")][yx("0xa")]((t=>{const{data:e}=t;if(e&&e[yx("0x5")]==s)return e[yx("0x9")][0][yx("0x4")]?{type:yx("0x12"),content:Yo(n,yx("0xe"))}:{type:yx("0x12"),content:Yo(n,"FORMAT_RESTRICTED_DISABLED")}}))}}const kx=["commandParams","toLowerCase","includes","isCollapsed","format","plugins","*Remove format:* %0","TrackChangesEditing","model","push","StyleUtils","createRangeOn","getSelectedBlocks","forceValue","*Format:* %0","isBlock","markBlockFormat","style","styleName","every","value","_getRangesWithClasses","editor","_getStyleDefinition","from","get","block","has","afterInit","config","_descriptionFactory","commandName","enabledStyles","normalizeConfig","modelElements","inline","selection","change","DataSchema","classes","markInlineFormat","enableCommand","getDefinitionsForView","document","name","getRanges","find","add","registerDescriptionCallback","style.definitions"];var Ax,vx;Ax=kx,vx=193,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{[Rx("0x23")](){const t=this[Rx("0x1d")];if(!t[Rx("0xc")][Rx("0x22")]("Style"))return;const e=t.commands[Rx("0x20")]("style"),n=t[Rx("0xc")][Rx("0x20")](Rx("0xe")),o=t.locale,s=t[Rx("0xc")][Rx("0x20")](Rx("0x2d")),r=t[Rx("0xc")][Rx("0x20")](Rx("0x11"))[Rx("0x28")](s,t[Rx("0x24")][Rx("0x20")](Rx("0x6")));n[Rx("0x30")](Rx("0x18"),((o,{styleName:i})=>{const x=t.model[Rx("0x0")][Rx("0x2b")],a=this._getStyleDefinition(i,r);if(!a)return;if(!e[Rx("0x27")][Rx("0x9")](i))return;if(x[Rx("0xa")]&&!a.isBlock)return void o({styleName:i});const c=!e[Rx("0x1b")].includes(a[Rx("0x1")]);if(a[Rx("0x16")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o.getAncestors({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[Rx("0x9")](o[Rx("0x1")])){n[Rx("0x4")](o);break}}return n}(x[Rx("0x13")](),a[Rx("0x29")]);t[Rx("0xf")][Rx("0x2c")]((()=>{for(const t of e)n[Rx("0x17")](t,{commandName:Rx("0x18"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:"style:"+i})}))}else{let e=Array[Rx("0x1f")](x[Rx("0x2")]());if(!c){const n=Array[Rx("0x1f")](s[Rx("0x31")](a.element,!1))[0][Rx("0xf")],o=[];for(const s of e){const e=this[Rx("0x1c")](t[Rx("0xf")],s,a[Rx("0x2e")],n);o[Rx("0x10")](...e)}e=o}t.model[Rx("0x2c")]((()=>{for(const t of e)n[Rx("0x2f")](t,{commandName:Rx("0x18"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0x25")][Rx("0x5")]((t=>{const{data:e}=t;if(e&&Rx("0x18")===e[Rx("0x26")])return e[Rx("0x7")][0][Rx("0x14")]?{type:Rx("0xb"),content:Yo(o,Rx("0x15"),e[Rx("0x7")][0][Rx("0x19")][Rx("0x8")]())}:{type:Rx("0xb"),content:Yo(o,Rx("0xd"),e[Rx("0x7")][0][Rx("0x19")][Rx("0x8")]())}}))}[Rx("0x1e")](t,e){let n=e[Rx("0x21")][Rx("0x3")]((e=>e.name===t));return n||(n=e[Rx("0x2a")].find((e=>e[Rx("0x1")]===t))),n}_getRangesWithClasses(t,e,n,o){const s=[];for(const r of e.getItems()){const e=r.getAttribute(o);e&&n[Rx("0x1a")]((t=>e[Rx("0x2e")][Rx("0x9")](t)))&&s.push(t[Rx("0x12")](r))}return s}}const Ix=["name","change","ELEMENT_TABLE","ELEMENT_TABLE_ROW_WITH_TEXT","TrackChangesEditing","*Insert:* %0","data","maxRow","forceValue","getChildren","showSuggestionHighlights","deletion","_setupColumnsRowsFixing","span","add","first","getSelectionAffectedTableCells","selection","insertion","registerPostFixer","left","registerElementLabel","$graveyard","start","tableRow","type","suggestion","isTouching","substr","setSelection","model","editor","every","commands","_getCoordsForCells","hasAttribute","some","filter","table","root","markMultiRangeDeletion","map","_getSuggestionCoords","ELEMENT_TABLE_COLUMN_WITH_TEXT","insertTableColumnRight","differ","length","low","isInContent","tableCell","last","min","getRanges","position","registerCustomCallback","ELEMENT_TABLE_ROW","getAttribute","getChanges","tablePaste","ELEMENT_TABLE_COLUMN","removeTableRow","isArray","getContainedElement","mapper","join","_acceptFormatSuggestionCallbackFactory","rootName","registerDescriptionCallback","max","has","discard","fromRange","toLowerCase","locale","removeClass","_descriptionFactory","minColumn","_tableSuggestions","getFirstRange","findAncestor","values","$textProxy","isEqual","*Remove:* %0","colspan","cell","insertTable","subType","MIN_SAFE_INTEGER","startsWith","includes","oldRange","batch","change:data","addClass","markMultiRangeInsertion","TableUtils","createRangeIn","options","tableColumn","createTableWalker","_tablePostFixingSubtypes","rowspan","maxColumn","document","_splitMarkerName","detach","enqueueChange","TableEditing","nodeAfter","order","refresh","end","getChangedMarkers","createRangeOn","get","accept","insertTableRowBelow","getCellLocation","downcastDispatcher","enableCommand","classes","addRange","getItems","nodeBefore","execute","toViewElement","push","from","addMarker:suggestion","above","MAX_SAFE_INTEGER","_suggestionFactory","plugins","removeTableColumn","getSuggestion","item","getColumnIndexes","insert","createPositionAt","ELEMENT_TABLE_WITH_TEXT","getRowIndexes","element"];var Lx,Nx;Lx=Ix,Nx=308,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const Mx=function(t,e){return Ix[t-=0]};class wx extends t.Plugin{constructor(t){super(t),this[Mx("0x4f")]=["tableRow","tableColumn"],this._tableSuggestions=new Set}afterInit(){const t=this[Mx("0x9")],e=t[Mx("0x8")][Mx("0x52")][Mx("0x8a")];if(!t.plugins[Mx("0x2f")](Mx("0x56")))return;const n=t[Mx("0x33")],o=t[Mx("0x6f")][Mx("0x5d")](Mx("0x7d")),s=t.plugins[Mx("0x5d")](Mx("0x4a"));o[Mx("0x35")][Mx("0x8e")]("table",(t=>Yo(n,Mx("0x7b"),t))),this[Mx("0x85")](),o[Mx("0x62")](Mx("0x40")),o[Mx("0x62")]("selectTableRow"),o[Mx("0x62")]("selectTableColumn");for(const n of["insertTableRowAbove",Mx("0x5f")]){const r=t[Mx("0xb")].get(n);o[Mx("0x62")](n,(n=>{t[Mx("0x8")][Mx("0x7a")]((t=>{n();const i=Mx("0x6c")===r[Mx("0x58")],x=s[Mx("0x89")](e),a=s.getRowIndexes(x),c=i?a.first-1:a.last+1,l=x[0][Mx("0x39")](Mx("0x10")),u=s.createTableWalker(l,{startRow:c,endRow:c}),d=Array[Mx("0x6a")](u).map((e=>t[Mx("0x5c")](e[Mx("0x3f")])));o[Mx("0x49")](d,"tableRow")}))}))}for(const n of["insertTableColumnLeft",Mx("0x16")]){const r=t.commands[Mx("0x5d")](n);o[Mx("0x62")](n,(n=>{t[Mx("0x8")][Mx("0x7a")]((t=>{n();const i=Mx("0x8d")===r[Mx("0x58")],x=s.getSelectionAffectedTableCells(e),a=s.getColumnIndexes(x),c=i?a[Mx("0x88")]-1:a[Mx("0x1c")]+1,l=x[0].findAncestor("table"),u=s[Mx("0x4e")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Mx("0x6a")](u)[Mx("0x13")]((e=>t[Mx("0x5c")](e[Mx("0x3f")])));o[Mx("0x49")](d,Mx("0x4d"))}))}))}for(const n of[Mx("0x26"),Mx("0x70")]){const r=n[Mx("0x6")](11),i=r.toLowerCase(),x=i[Mx("0x6")](0,3)+Mx("0x86"),a=Mx("0x10")+r,c=Mx("0x1d")+r,l=Mx("0x2e")+r;o[Mx("0x62")](n,(()=>{t.model[Mx("0x7a")]((t=>{const r=s[Mx("0x89")](e),u=r[0].findAncestor(Mx("0x10"));let d;if(Mx("0x26")==n){const t=s[Mx("0x77")](r);d={startRow:t[Mx("0x88")],endRow:t[Mx("0x1c")],includeAllSlots:!0}}else{const t=s[Mx("0x73")](r);d={startColumn:t.first,endColumn:t[Mx("0x1c")],includeAllSlots:!0}}const g=s[Mx("0x4e")](u,d),m=Array[Mx("0x6a")](g)[Mx("0x13")]((({cell:t})=>t)),f=Ox(m[Mx("0xf")]((t=>t[Mx("0xd")](x)))),h=Ox(m[Mx("0xf")]((t=>!t[Mx("0xd")](x)))).map((e=>t[Mx("0x5c")](e))),p=o[Mx("0x12")](h,a);if(p&&(Mx("0x2")==p.subType||Mx("0x4d")==p[Mx("0x41")])){const e=this._getSuggestionCoords(p);for(const n of f){const o=t.createRangeOn(n),r=s[Mx("0x60")](n),a=n.getAttribute(x)-1,u=e[c],d=e[l];u<=r[i]&&r[i]+a<=d&&p[Mx("0x64")](o)}}}))}))}function r(n){const o=Array[Mx("0x6a")](e[Mx("0x1e")]())[Mx("0x13")]((t=>i.LiveRange.fromRange(t)));t[Mx("0x8")][Mx("0x7a")]((e=>{const s=e[Mx("0x46")];n=n[Mx("0xf")]((t=>Mx("0x0")!=t.root.rootName)),e[Mx("0x7")](n),t[Mx("0xb")][Mx("0x5d")](Mx("0x26")).refresh(),t[Mx("0x67")]("removeTableRow",{forceDefaultExecution:!0}),t[Mx("0x8")][Mx("0x55")]((()=>{t.model[Mx("0x55")](s,(t=>{const e=o[Mx("0xf")]((t=>Mx("0x0")!=t[Mx("0x11")][Mx("0x2c")]));e[Mx("0x18")]>0&&t[Mx("0x7")](e);for(const t of o)t[Mx("0x54")]()}))}))}))}function a(n){t[Mx("0x8")][Mx("0x7a")]((o=>{const s=Array[Mx("0x6a")](e[Mx("0x1e")]()).map((t=>i.LiveRange.fromRange(t))),r=[];for(const t of n)for(const e of t[Mx("0x65")]({shallow:!0}))r.push(e);for(const e of r)Mx("0x0")!=e[Mx("0x11")][Mx("0x2c")]&&(o[Mx("0x7")](o[Mx("0x75")](e,0)),t.commands[Mx("0x5d")]("removeTableColumn")[Mx("0x59")](),t[Mx("0x67")]("removeTableColumn",{forceDefaultExecution:!0}));const x=s.filter((t=>Mx("0x0")!=t.root[Mx("0x2c")]));x[Mx("0x18")]>0&&o[Mx("0x7")](x);for(const t of s)t[Mx("0x54")]()}))}function c(t,e){return e[Mx("0xa")]((e=>t[Mx("0xe")]((t=>t.end[Mx("0x3c")](e[Mx("0x1")])||e[Mx("0x5a")][Mx("0x3c")](t.start)))))}function l(t,e){return t[Mx("0xe")]((t=>e[Mx("0xe")]((e=>t.end[Mx("0x5")](e.start)))))}t.data[Mx("0x61")].on(Mx("0x6b"),((t,e,n)=>{if(!n[Mx("0x4c")][Mx("0x83")])return;const o=e[Mx("0x72")];if(!o)return;const s=n[Mx("0x29")][Mx("0x68")](o);function r(t){return Array[Mx("0x27")](t)?t:[t]}s&&"tableCell"===o[Mx("0x79")]&&(0,x.setHighlightHandling)(s,n.writer,((t,e,n)=>n[Mx("0x48")](r(e[Mx("0x63")]),t)),((t,e,n)=>n[Mx("0x34")](r(e[Mx("0x63")]),t)))}),{priority:"highest"}),o[Mx("0x35")].registerDescriptionCallback((t=>{if("insertion"!=t[Mx("0x3")]&&Mx("0x84")!=t.type)return;const e=t[Mx("0x28")]();if(null!=e&&e.is(Mx("0x78"),Mx("0x10"))){if(Mx("0x8b")==t[Mx("0x3")]){const e=t.getItems()[Mx("0xf")]((t=>t.is(Mx("0x3b"))))[Mx("0x13")]((t=>t.data));if(e.length)return{type:Mx("0x8b"),content:Yo(n,Mx("0x7e"),Yo(n,Mx("0x76"),'"'+e.join(" ")+'"'))}}if(Mx("0x84")==t[Mx("0x3")]){const e=t[Mx("0x65")]()[Mx("0xf")]((t=>t.is(Mx("0x3b")))).map((t=>t[Mx("0x7f")]));if(e[Mx("0x18")])return{type:Mx("0x84"),content:Yo(n,Mx("0x3d"),Yo(n,Mx("0x76"),'"'+e[Mx("0x2a")](" ")+'"'))}}}})),o[Mx("0x35")][Mx("0x2d")]((t=>{if(Mx("0x2")==t.subType){const e=t.getItems().filter((t=>t.is(Mx("0x3b"))))[Mx("0x13")]((t=>t.data)),o=this[Mx("0x14")](t),s=o[Mx("0x80")]-o.minRow+1;if(Mx("0x8b")==t[Mx("0x3")])return e[Mx("0x18")]?{type:Mx("0x8b"),content:Yo(n,"*Insert:* %0",Yo(n,Mx("0x7c"),[s,'"'+e[Mx("0x2a")](" ")+'"']))}:{type:Mx("0x8b"),content:Yo(n,Mx("0x7e"),Yo(n,"ELEMENT_TABLE_ROW",s))};if(Mx("0x84")==t[Mx("0x3")])return e[Mx("0x18")]?{type:Mx("0x84"),content:Yo(n,"*Remove:* %0",Yo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[s,'"'+e[Mx("0x2a")](" ")+'"']))}:{type:"deletion",content:Yo(n,Mx("0x3d"),Yo(n,Mx("0x21"),s))}}if(Mx("0x4d")==t.subType){const e=t[Mx("0x65")]()[Mx("0xf")]((t=>t.is("$textProxy")))[Mx("0x13")]((t=>t[Mx("0x7f")])),o=this._getSuggestionCoords(t),s=o[Mx("0x51")]-o[Mx("0x36")]+1;if(Mx("0x8b")==t[Mx("0x3")])return e.length?{type:Mx("0x8b"),content:Yo(n,Mx("0x7e"),Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e.join(" ")+'"']))}:{type:Mx("0x8b"),content:Yo(n,Mx("0x7e"),Yo(n,Mx("0x25"),s))};if(Mx("0x84")==t.type)return e.length?{type:Mx("0x84"),content:Yo(n,"*Remove:* %0",Yo(n,Mx("0x15"),[s,'"'+e[Mx("0x2a")](" ")+'"']))}:{type:Mx("0x84"),content:Yo(n,Mx("0x3d"),Yo(n,Mx("0x25"),s))}}})),o[Mx("0x6e")][Mx("0x20")](Mx("0x8b"),"tableRow","discard",r),o._suggestionFactory[Mx("0x20")]("deletion",Mx("0x2"),"accept",r),o[Mx("0x6e")][Mx("0x20")](Mx("0x8b"),"tableColumn",Mx("0x30"),a),o[Mx("0x6e")][Mx("0x20")](Mx("0x84"),Mx("0x4d"),Mx("0x5e"),a),o[Mx("0x6e")][Mx("0x20")]("insertion","tableColumn","join",c),o[Mx("0x6e")][Mx("0x20")](Mx("0x84"),"tableColumn",Mx("0x2a"),c),o[Mx("0x6e")].registerCustomCallback(Mx("0x8b"),"tableRow","join",l),o[Mx("0x6e")][Mx("0x20")](Mx("0x84"),Mx("0x2"),"join",l)}[Mx("0x2b")](){const t=this.editor,e=t.model[Mx("0x52")][Mx("0x8a")];return(n,o)=>{t[Mx("0x8")][Mx("0x7a")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][Mx("0x5a")][Mx("0x66")];x&&x[0]&&!1===x[0][Mx("0x81")]&&(a=n[0].start[Mx("0x57")]);const c=s[Mx("0x4b")](a);if(Mx("0x0")==c[Mx("0x11")][Mx("0x2c")])return;const l=Array[Mx("0x6a")](e[Mx("0x1e")]())[Mx("0x13")]((t=>i.LiveRange[Mx("0x31")](t)));s.setSelection(c),t[Mx("0xb")][Mx("0x5d")](r)[Mx("0x59")](),x[Mx("0x69")]({forceDefaultExecution:!0}),t[Mx("0x67")](r,...x);const u=l.filter((t=>Mx("0x0")!=t[Mx("0x11")][Mx("0x2c")]));u[Mx("0x18")]>0&&s[Mx("0x7")](u);for(const t of l)t[Mx("0x54")]()}))}}[Mx("0xc")](t){const e=this.editor[Mx("0x6f")][Mx("0x5d")](Mx("0x4a"));let n=Number.MAX_SAFE_INTEGER,o=Number.MIN_SAFE_INTEGER,s=Number[Mx("0x6d")],r=Number[Mx("0x42")];for(const i of t){if(Mx("0x0")==i[Mx("0x11")][Mx("0x2c")])continue;const{row:t,column:x}=e[Mx("0x60")](i),a=i[Mx("0xd")]("rowspan")?i[Mx("0x22")](Mx("0x50"))-1:0,c=i[Mx("0xd")](Mx("0x3e"))?i.getAttribute("colspan")-1:0;n=t<n?t:n,o=t+a>o?t+a:o,s=x<s?x:s,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:s,maxColumn:r}}[Mx("0x85")](){const t=this[Mx("0x9")],e=t[Mx("0x6f")][Mx("0x5d")]("TrackChangesEditing"),n=t[Mx("0x6f")].get("TableUtils");t.model[Mx("0x52")].on(Mx("0x47"),(()=>{const n=Array.from(t[Mx("0x8")][Mx("0x52")][Mx("0x17")][Mx("0x5b")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Mx("0x53")](t);if(Mx("0x4")!=n)continue;if(null!=o[Mx("0x45")])continue;const i=e[Mx("0x71")](s);this[Mx("0x4f")][Mx("0x44")](r)&&this[Mx("0x37")][Mx("0x87")](i)}}),{priority:Mx("0x19")});const o=(t,e)=>{let o=!1;const s=e[Mx("0x5c")](t),r=t[Mx("0x39")]("table"),i=n[Mx("0x60")](t);for(const e of this._tableSuggestions){const n=e[Mx("0x41")],x=n[Mx("0x43")](Mx("0x24")),a=n[Mx("0x6")](x?10:5),c=a[Mx("0x32")](),l=c[Mx("0x6")](0,3)+Mx("0x86"),u=Mx("0x1d")+a,d=Mx("0x2e")+a;if(!e[Mx("0x1a")])continue;if(r!=e[Mx("0x38")]()[Mx("0x1")][Mx("0x39")]("table"))continue;if(e.isIntersectingWithRange(s))continue;const g=t[Mx("0xd")](l)?t[Mx("0x22")](l)-1:0,m=this[Mx("0x14")](e),f=m[u],h=m[d];f<=i[c]&&i[c]+g<=h&&(e[Mx("0x64")](s),o=!0)}return o};t[Mx("0x8")].document[Mx("0x8c")]((e=>{let n=!1;for(const s of t[Mx("0x8")].document[Mx("0x17")][Mx("0x23")]())if(Mx("0x74")==s.type)if(Mx("0x2")==s[Mx("0x79")])for(const t of s[Mx("0x1f")][Mx("0x57")][Mx("0x82")]())n=n||o(t,e);else Mx("0x1b")==s[Mx("0x79")]&&(n=n||o(s[Mx("0x1f")][Mx("0x57")],e));return n}))}[Mx("0x14")](t){return this._getCoordsForCells(t[Mx("0x1e")]()[Mx("0x13")]((t=>t.start[Mx("0x57")])))}}function Ox(t){return Array[Mx("0x6a")](new Set(t)[Mx("0x3a")]())}const Fx=["selection","fromRange","push","accept","detach","value","getAncestors","findAncestor","isEnabled","_isForcedDefaultExecutionBlock","type","isInContent","size","createTableWalker","TrackChangesEditing","afterInit","model","has","TableEditing","mergeTableCellDown","setSelection","requires","createRangeOn","stop","splitTableCellHorizontally","change","forceDefaultExecution","*Merge cells*","mergeTableCellRight","low","*Split cell:* vertically","find","_suggestionFactory","element","return","direction","subType","getSelectionAffectedTableCells","TableUtils","rootName","table","plugins","registerCustomCallback","splitTableCellVertically","markMultiRangeBlockFormat","commandName","execute","map","getFirstPosition","formatBlock","editor","_acceptFormatSuggestionCallbackFactory","locale","get","cell","author","length","tableCell","commands","_descriptionFactory","from","registerDescriptionCallback","_areSelectedCellsMergable","mergeTableCellUp","mergeTableCells","refresh","trackChanges","document","enableCommand","set:isEnabled","format","_areMergableCells","_tablePostFixingSubtypes"];var Px,Dx;Px=Fx,Dx=210,function(t){for(;--t;)Px.push(Px.shift())}(++Dx);const Bx=function(t,e){return Fx[t-=0]};class jx extends t.Plugin{static get[Bx("0x1e")](){return[wx]}[Bx("0x18")](){const t=this[Bx("0x3b")],e=t.model.document[Bx("0x9")],n=t[Bx("0x3d")];if(!t[Bx("0x32")][Bx("0x1a")](Bx("0x1b")))return;const o=t[Bx("0x32")][Bx("0x3e")](Bx("0x17")),s=t[Bx("0x32")][Bx("0x3e")](Bx("0x2f")),r=t[Bx("0x32")][Bx("0x3e")](wx);r[Bx("0x8")][Bx("0xb")](Bx("0x0")),o.enableCommand(Bx("0x0"),(()=>{const e=s[Bx("0x2e")](t[Bx("0x19")].document[Bx("0x9")]);t[Bx("0x19")][Bx("0x22")]((()=>{o.markMultiRangeBlockFormat(e,{commandName:Bx("0x0"),commandParams:[]},[],Bx("0x0"))}))})),t[Bx("0x43")][Bx("0x3e")](Bx("0x0")).on(Bx("0x37"),((e,n)=>{t[Bx("0x43")].get(Bx("0x2"))[Bx("0xe")]&&(n[Bx("0x41")]>0&&n[n.length-1]&&n[n[Bx("0x41")]-1][Bx("0x23")]||o[Bx("0x12")]||this[Bx("0x47")]()||e[Bx("0x20")]())}),{priority:"highest"});for(const e of["mergeTableCellUp",Bx("0x25"),Bx("0x1c"),"mergeTableCellLeft"]){const n=t.commands[Bx("0x3e")](e);o[Bx("0x4")](e,(()=>{const e=t[Bx("0x19")].document[Bx("0x9")][Bx("0x39")]()[Bx("0xf")]()[Bx("0x28")]((t=>t.is("element",Bx("0x42")))),s=n[Bx("0xe")];t[Bx("0x19")][Bx("0x22")]((()=>{o[Bx("0x35")]([e,s],{commandName:Bx("0x0"),commandParams:[]},[],Bx("0x0"))}))}))}for(const e of[Bx("0x34"),Bx("0x21")]){const n=t[Bx("0x43")][Bx("0x3e")](e);o[Bx("0x4")](e,(()=>{const r=s[Bx("0x2e")](t[Bx("0x19")][Bx("0x3")][Bx("0x9")])[0],i=r[Bx("0x10")](Bx("0x31")),{column:x,row:a}=s.getCellLocation(r);let c=[];if("horizontally"==n[Bx("0x2c")]){const t=s[Bx("0x16")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array.from(t)[Bx("0x38")]((t=>t[Bx("0x3f")]))}else{const t=s[Bx("0x16")](i,{column:x,includeAllSlots:!0});c=Array[Bx("0x45")](t)[Bx("0x38")]((t=>t.cell))}t[Bx("0x19")].change((t=>{o.markBlockFormat(t.createRangeOn(r),{commandName:e,commandParams:[]},c,e)}))}))}o[Bx("0x44")].registerDescriptionCallback((t=>{const{data:e}=t;if(e)return Bx("0x0")==e[Bx("0x36")]?{type:Bx("0x6"),content:Yo(n,Bx("0x24"))}:void 0})),o[Bx("0x44")][Bx("0x46")]((t=>{const{data:e}=t;if(e)return Bx("0x34")==e.commandName?{type:Bx("0x6"),content:Yo(n,Bx("0x27"))}:Bx("0x21")==e[Bx("0x36")]?{type:Bx("0x6"),content:Yo(n,"*Split cell:* horizontally")}:void 0}));const x=r[Bx("0x3c")]();for(const t of[Bx("0x48"),"mergeTableCellRight",Bx("0x1c"),"mergeTableCellLeft"])o._suggestionFactory[Bx("0x33")](Bx("0x3a"),t,Bx("0xc"),x);for(const t of[Bx("0x34"),"splitTableCellHorizontally"])o[Bx("0x29")][Bx("0x33")]("formatBlock",t,Bx("0xc"),x);o[Bx("0x29")][Bx("0x33")]("formatBlock",Bx("0x0"),Bx("0xc"),(n=>{t[Bx("0x19")].change((o=>{const s=Array.from(e.getRanges())[Bx("0x38")]((t=>i.LiveRange[Bx("0xa")](t)));o[Bx("0x1d")](n),t[Bx("0x43")][Bx("0x3e")](Bx("0x0"))[Bx("0x1")](),t[Bx("0x37")](Bx("0x0"),{forceDefaultExecution:!0});const r=s.filter((t=>"$graveyard"!=t.root[Bx("0x30")]));r[Bx("0x41")]>0&&o.setSelection(r);for(const t of s)t[Bx("0xd")]()}))}));for(const e of[Bx("0x48"),Bx("0x1c"),"mergeTableCellLeft",Bx("0x25")]){const n=t[Bx("0x43")][Bx("0x3e")](e);n.on(Bx("0x5"),((e,o,s)=>{if(s){const o=t[Bx("0x19")][Bx("0x3")][Bx("0x9")][Bx("0x39")]()[Bx("0xf")]()[Bx("0x28")]((t=>t.is(Bx("0x2a"),Bx("0x42"))));this[Bx("0x7")](n[Bx("0xe")],o)||(e[Bx("0x2b")]=!1,e.stop())}}),{priority:Bx("0x26")})}}[Bx("0x47")](){const t=this.editor[Bx("0x43")][Bx("0x3e")]("mergeTableCells"),e=this[Bx("0x3b")].plugins[Bx("0x3e")](Bx("0x2f"));if(!t[Bx("0x11")])return!1;const n=e[Bx("0x2e")](this.editor[Bx("0x19")][Bx("0x3")][Bx("0x9")]);for(const t of n)for(const e of n)if(t!=e&&!this._areMergableCells(t,e))return!1;return!0}[Bx("0x7")](t,e){const n=this[Bx("0x3b")].plugins[Bx("0x3e")]("TrackChangesEditing"),o=this[Bx("0x3b")][Bx("0x19")][Bx("0x1f")](t),s=this[Bx("0x3b")].model[Bx("0x1f")](e),r=new Set,i=new Set;for(const t of n.getSuggestions())if(("insertion"==t.type||"deletion"==t[Bx("0x13")]||Bx("0x0")==t[Bx("0x2d")])&&t[Bx("0x14")])for(const e of t.getRanges())e.containsRange(o,!0)&&r.add(t[Bx("0x13")]+":"+t.author.id),e.containsRange(s,!0)&&i.add(t[Bx("0x13")]+":"+t[Bx("0x40")].id);if(r[Bx("0x15")]!=i[Bx("0x15")])return!1;for(const t of r)if(!i[Bx("0x1a")](t))return!1;return!0}}const Ux=["showSuggestionHighlights","writer","editor","afterInit","findAncestor","consume","cell","accept","from","downcastDispatcher","registerCustomCallback","getRowIndexes","setTableColumnHeader","bindElementToMarker","get","editing","ck-suggestion-marker--active","removeMarker:suggestion","_descriptionFactory","nodeBefore","_splitMarkerName","document","ck-suggestion-marker-","start","childCount","index","highest","isBefore","value","last","selection","getCellLocation","markerRange","createPositionBefore","commandParams","model","mapper","requires","getSuggestion","addClass","headingColumns","TrackChangesEditing","locale","first","FORMAT_REGULAR_ROW","nodeAfter","setTableRowHeader","parent","createRange","getAttribute","forceValue","toViewElement","createPositionAfter","data-suggestion","addMarker:suggestion","createTableWalker","includes","item","removeAttribute","getSelectionAffectedTableCells","formatBlock","markBlockFormat","setAttribute","headingRows","*Format:* %0","table","name","removeClass","plugins","commands","options","has","getChild","TableUtils","commandName","markerName","enableCommand","TableEditing","data","FORMAT_REGULAR_COLUMN"];var Gx,Hx;Gx=Ux,Hx=356,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const Wx=function(t,e){return Ux[t-=0]};class zx extends t.Plugin{static get[Wx("0x1")](){return[wx]}[Wx("0x2f")](){const t=this[Wx("0x2e")];if(!t[Wx("0x20")][Wx("0x23")](Wx("0x29")))return;const e=t[Wx("0x6")],n=t[Wx("0x20")][Wx("0x3a")](Wx("0x5")),o=t[Wx("0x20")][Wx("0x3a")](Wx("0x25")),s=t[Wx("0x20")].get(wx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[Wx("0x40")](r[Wx("0x27")]),c=n[Wx("0x2")](a);if(!c.data||Wx("0x38")!=c[Wx("0x2a")][Wx("0x26")])return;if(r[Wx("0x15")])return void s.stop();if(!i.consumable[Wx("0x31")](r[Wx("0x4c")],s[Wx("0x1e")]))return;const l=r[Wx("0x4c")][Wx("0x43")][Wx("0x9")],u=r.markerRange.end[Wx("0x3f")],d=l[Wx("0xb")][Wx("0xb")],{column:g}=o.getCellLocation(l),{column:m}=o[Wx("0x4b")](u);for(let s=g;s<=m;s++){const c=o[Wx("0x13")](d,{column:s,includeAllSlots:!1});for(const o of c){const s=o[Wx("0x32")],c=i[Wx("0x0")][Wx("0xf")](s);i[Wx("0x2d")][Wx("0x3")](Wx("0x42")+x,c),e&&i[Wx("0x2d")][Wx("0x1a")]("data-suggestion",a,c),i[Wx("0x0")][Wx("0x39")](c,r[Wx("0x27")]),t&&(n.activeMarkers[Wx("0x14")](r.markerName)?i[Wx("0x2d")][Wx("0x3")]("ck-suggestion-marker--active",c):i[Wx("0x2d")][Wx("0x1f")]("ck-suggestion-marker--active",c))}}}}n[Wx("0x28")](Wx("0xa"),((e,s)=>{const r=o[Wx("0x17")](t[Wx("0x4f")][Wx("0x41")][Wx("0x4a")]),i=o[Wx("0x37")](r),x=r[0].findAncestor(Wx("0x1d")),a=x.getAttribute(Wx("0x1b"))||0,c=s&&null!==s.forceValue?s[Wx("0xe")]:!t[Wx("0x21")][Wx("0x3a")]("setTableRowHeader")[Wx("0x48")],l=c?i[Wx("0x49")]:i[Wx("0x7")],u=x.getChild(l);let d;if(c){const e=x.getChild(a);if(u[Wx("0x45")]<e.index)return;d=t[Wx("0x4f")][Wx("0xc")](t[Wx("0x4f")].createPositionBefore(e[Wx("0x24")](0)),t[Wx("0x4f")][Wx("0x10")](u[Wx("0x24")](u[Wx("0x44")]-1)))}else{const e=x[Wx("0x24")](a-1);if(!e)return;d=t.model[Wx("0xc")](t[Wx("0x4f")][Wx("0x4d")](u[Wx("0x24")](0)),t[Wx("0x4f")][Wx("0x10")](e[Wx("0x24")](e[Wx("0x44")]-1)))}t[Wx("0x4f")].change((()=>{n[Wx("0x19")](d,{commandName:Wx("0xa"),commandParams:[{forceValue:c}]},[],Wx("0xa"))}))})),n[Wx("0x28")]("setTableColumnHeader",((e,o)=>{const s=t[Wx("0x20")][Wx("0x3a")](Wx("0x25")),r=s[Wx("0x17")](t[Wx("0x4f")][Wx("0x41")].selection),i=s.getColumnIndexes(r),x=r[0][Wx("0x30")]("table"),a=x[Wx("0xd")](Wx("0x4"))||0,c=o&&null!==o.forceValue?o[Wx("0xe")]:!t.commands[Wx("0x3a")](Wx("0x38"))[Wx("0x48")];let l;const u=x.getChild(0),d=c?i[Wx("0x49")]:i[Wx("0x7")],g=s[Wx("0x13")](x,{startRow:0,column:d,includeAllSlots:!1}),m=Array[Wx("0x34")](g)[0][Wx("0x32")];if(c){const e=u[Wx("0x24")](a);if(m[Wx("0x47")](e))return;l=t.model[Wx("0xc")](t[Wx("0x4f")][Wx("0x4d")](e),t.model[Wx("0x10")](m))}else{const e=u[Wx("0x24")](a-1);if(!e)return;l=t.model[Wx("0xc")](t[Wx("0x4f")][Wx("0x4d")](m),t[Wx("0x4f")][Wx("0x10")](e))}t.model.change((()=>{n.markBlockFormat(l,{commandName:Wx("0x38"),commandParams:[{forceValue:c}]},[],Wx("0x38"))}))})),t.editing[Wx("0x35")].on("addMarker:suggestion",r(),{priority:Wx("0x46")}),t.data[Wx("0x35")].on(Wx("0x12"),((t,e,n)=>{n[Wx("0x22")][Wx("0x2c")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:Wx("0x46")}),t[Wx("0x3b")][Wx("0x35")].on(Wx("0x3d"),((t,e,o)=>{const{type:s,id:r}=n[Wx("0x40")](e[Wx("0x27")]),i=n.getSuggestion(r);if(!i[Wx("0x2a")]||Wx("0x38")!=i[Wx("0x2a")][Wx("0x26")])return;const x=o[Wx("0x0")].markerNameToElements(e.markerName);if(x)for(const t of x)o[Wx("0x2d")].removeClass(Wx("0x42")+s,t),o.writer.removeClass(Wx("0x3c"),t),o.writer[Wx("0x16")](Wx("0x11"),t),o[Wx("0x0")].unbindElementFromMarkerName(t,e[Wx("0x27")])}),{priority:Wx("0x46")}),n[Wx("0x3e")].registerDescriptionCallback((t=>{const{data:n}=t;if(n){if("setTableRowHeader"==n.commandName){const t=n[Wx("0x4e")][0].forceValue;return o(Yo(e,t?"FORMAT_HEADER_ROW":Wx("0x8")))}if(Wx("0x38")==n[Wx("0x26")]){const t=n[Wx("0x4e")][0][Wx("0xe")];return o(Yo(e,t?"FORMAT_HEADER_COLUMN":Wx("0x2b")))}}function o(t){return{type:"format",content:Yo(e,Wx("0x1c"),t)}}}));const i=s._acceptFormatSuggestionCallbackFactory();n._suggestionFactory[Wx("0x36")](Wx("0x18"),Wx("0xa"),"accept",i),n._suggestionFactory[Wx("0x36")](Wx("0x18"),"setTableColumnHeader",Wx("0x33"),i)}}const Vx=["hasSuggestion","_replaceTableSlotCell","type","getRows","createElement","tableCell","conversion","paragraph","TrackChangesEditing","getSelectionAffectedTableCells","insertionRanges","deletionRanges","columnInsertionRanges","insertColumns","suggestion-td","endColumn","createTableWalker","end","columnInsertionIndexes","ck-suggestion-marker","root","register","TableUtils","ck-suggestion-marker-insertion","first","_descriptionFactory","position","isEmpty","getMarkers","$graveyard","tablePasteCell","get","_createdBatches","rootName","start","fill","suggestion","registerPostFixer","dataDowncast","plugins","for","endRow","markers","getRowIndexes","requires","editor","getSuggestionCallback","fromEntries","filter","getRanges","*Replace table cells*","clipboardOutput","activeMarkers","stop","tableCellSuggestion","nextSibling","removeColumns","last","entries","_isForcedDefaultExecutionBlock","subType","containsRange","commands","removeRows","tablePasteChainId","startsWith","locale","markerAttributes","afterInit","updateMarker","oldRange","getShiftedBy","deletion","forceDefaultExecution","name","previous","getChild","find","getSuggestion","showSuggestionHighlights","element","next","_splitMarkerName","schema","high","isInContent","getColumns","tablePaste","insert","markMultiRangeInsertion","document","createRange","getSuggestions","tableCellPadding","value","from","join","rowInsertionIndexes","tableCellBackgroundColor","getContainedElement","_getCoordsForCells","has","discard","wrap","createRangeOn","options","low","remove","suggestionUnloaded","createRangeIn","author","isEqual","table","insertContent","elementToElement","tableCellVerticalAlignment","add","rowInsertionRanges","accept","getChangedMarkers","newRange","set","trackChanges","some","view","attributes","findAncestor","insertRows","getAllAdjacentSuggestions","unwrap","every","suggestion:formatBlock:tablePasteCell","tablePasteColumn","length","getRange","suggestionLoaded","map","keys","insertion","nodeAfter","previousSibling","removeMarker","includes","markerToHighlight","model","getItems","editingDowncast","columns","registerDescriptionCallback","markerName","differ","_suggestionFactory","TableClipboard","createPositionBefore","change","markMultiRangeBlockFormat","tablePasteRow","editing","row","listenTo","getChildren","return","registerCustomCallback","tableCellBorderStyle","selection","push","Users","formatBlock"];var Kx,qx;Kx=Vx,qx=500,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]},$x=["tableCellBorderWidth","tableCellBorderColor",Xx("0xa7"),"tableCellHorizontalAlignment",Xx("0x77"),Xx("0x66"),Xx("0x61")],Jx=Object[Xx("0x33")]($x[Xx("0x8c")]((t=>[t,null])));class Qx extends t.Plugin{static get[Xx("0x30")](){return[wx]}[Xx("0x48")](){const t=this[Xx("0x31")];if(!t.plugins.has(Xx("0x9c")))return;const n=t[Xx("0x2b")][Xx("0x23")](Xx("0xc")),o=t[Xx("0x2b")][Xx("0x23")](Xx("0x1a")),s=t[Xx("0x2b")][Xx("0x23")](wx),r=t[Xx("0x2b")][Xx("0x23")]("TableClipboard");s._tablePostFixingSubtypes[Xx("0x1")](Xx("0xa0"),Xx("0x88")),t[Xx("0x94")][Xx("0x57")][Xx("0x19")](Xx("0x3a"),{allowIn:Xx("0x9"),allowContentOf:Xx("0x9"),isLimit:!0}),t[Xx("0xa")][Xx("0x76")]({model:Xx("0x3a"),view:"suggestion-td"});let i=null;t.model.on(Xx("0x75"),((s,x)=>{const[a,c]=x,l=x[x[Xx("0x89")]-1];l&&l[Xx("0x4d")]||n[Xx("0x3f")]||this[Xx("0x31")][Xx("0x42")][Xx("0x23")](Xx("0x7e"))[Xx("0x62")]&&function(t,e,n,o,s){if(e&&!e.is("documentSelection"))return!1;const r=s.getTableIfOnlyTableInContent(t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o[Xx("0xd")](n.document[Xx("0x0")]);if(!i[Xx("0x89")])return!1;const x=i[0][Xx("0x82")](Xx("0x74")),a=o[Xx("0x2f")](i),c=o.getColumnIndexes(i),l={startRow:a[Xx("0x1c")],endRow:a.last,startColumn:c[Xx("0x1c")],endColumn:c[Xx("0x3d")]};return 1==i[Xx("0x89")]&&(l[Xx("0x2d")]+=o[Xx("0x7")](r)-1,l[Xx("0x13")]+=o[Xx("0x5a")](r)-1),Yx(x,l,o)}(a,c,t[Xx("0x94")],o,r)&&(s[Xx("0x39")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Xx("0x94")][Xx("0x9e")]((()=>{t[Xx("0x94")][Xx("0x75")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=i;s[Xx("0x89")]&&n[Xx("0x5d")](s,Xx("0xa0"),{tablePasteChainId:o}),r[Xx("0x89")]&&n[Xx("0x5d")](r,Xx("0x88"),{tablePasteChainId:o}),a[Xx("0x89")]&&n[Xx("0x5d")](a,Xx("0x5b"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Xx("0x89")]&&n.markMultiRangeDeletion(c,Xx("0x5b"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n[Xx("0x9f")](l.map((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Xx("0x22"),{tablePasteChainId:o});if(u){const e=u[Xx("0x20")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[Xx("0x94")][Xx("0x6c")](o),i=e[Xx("0x51")]((t=>t.getRange().isEqual(r)));i&&n[Xx("0x1")]([i[Xx("0x4e")],s])}n[Xx("0x89")]&&u.setAttribute(Xx("0x47"),Object[Xx("0x33")](n))}i=null})))}),{priority:e.priorities.high+10}),t[Xx("0x2b")][Xx("0x23")](Xx("0x9c")).on(Xx("0x5"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t[Xx("0x39")]();const r=n.cell,x=o,a=Zx(r),c=Zx(x);t[Xx("0xa5")]=r;let l=null,u=null;if(c||a)if(a&&!c){s.remove(r[Xx("0x50")](0));for(const t of Array[Xx("0x63")](x[Xx("0xa4")]()))s[Xx("0x5c")](t,r,Xx("0x15"));const t=i[Xx("0x65")][Xx("0x92")](n[Xx("0xa2")]),e=i[Xx("0x16")].includes(n.column);t||e||(l=s[Xx("0x71")](r))}else c&&!a&&(u=s.createRangeIn(r));else{const t=s[Xx("0x8")]("tableCellSuggestion"),e=s[Xx("0x8")](Xx("0x3a"));s[Xx("0x6b")](s.createRangeIn(r),e),s.insert(t,r,0);for(const e of Array[Xx("0x63")](x[Xx("0xa4")]()))s[Xx("0x5c")](e,t,Xx("0x15"));l=s[Xx("0x6c")](t),u=s[Xx("0x6c")](e)}const d=Array[Xx("0x63")](x.getAttributes())[Xx("0x34")]((([t])=>$x[Xx("0x92")](t)));i.cells[Xx("0x1")]({element:r,attributes:d[Xx("0x89")]?Object[Xx("0x33")](d):null}),l&&i[Xx("0xe")][Xx("0x1")](l),u&&i[Xx("0xf")][Xx("0x1")](u)}),{priority:Xx("0x58")}),o.on(Xx("0x11"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x97")]||1;i.columnInsertionIndexes=new Array(a).fill(x)[Xx("0x8c")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(s,{startColumn:x,endColumn:x+a-1}))i[Xx("0x10")][Xx("0x1")](t[Xx("0x94")][Xx("0x6c")](e))}),{priority:Xx("0x6e")}),o.on(Xx("0x83"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r.rows||1;i[Xx("0x65")]=new Array(a)[Xx("0x27")](x)[Xx("0x8c")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(s,{startRow:x,endRow:x+a-1}))i[Xx("0x79")][Xx("0x1")](t[Xx("0x94")][Xx("0x6c")](e))}),{priority:Xx("0x6e")}),n[Xx("0x1d")][Xx("0x98")]((e=>{if(e[Xx("0x40")]&&e[Xx("0x40")][Xx("0x45")](Xx("0x5b")))return e[Xx("0x4f")]?{}:{type:Xx("0x8e"),content:Yo(t[Xx("0x46")],Xx("0x36"))}}));const x=()=>{};for(const t of[Xx("0x5b"),Xx("0x88"),"tablePasteRow",Xx("0x22")])n[Xx("0x9b")].registerCustomCallback("insertion",t,Xx("0x64"),x),n._suggestionFactory[Xx("0xa6")]("deletion",t,Xx("0x64"),x);n[Xx("0x9b")][Xx("0xa6")](Xx("0x3"),Xx("0x22"),"discard",x),n[Xx("0x9b")][Xx("0xa6")](Xx("0x3"),"tablePasteCell",Xx("0x7a"),((e,n,o)=>{const s=e[Xx("0x8c")]((t=>t.getContainedElement()))[Xx("0x34")]((t=>t)),r=new Map(s[Xx("0x8c")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i.cells)e&&r[Xx("0x7d")](t,e);else if(o&&o[Xx("0x47")])for(const[e,n]of Object[Xx("0x3e")](o[Xx("0x47")])){const o=t.model[Xx("0x2e")][Xx("0x23")](e),s=o?o[Xx("0x8a")]()[Xx("0x67")]():null;s&&r[Xx("0x7d")](s,n)}t[Xx("0x94")][Xx("0x9e")]((t=>{for(const[e,n]of r)t.setAttributes({...Jx,...n},e)}))}));const a=(e,o)=>{n[Xx("0x9b")][Xx("0xa6")](e,Xx("0x5b"),o,((s,r,i)=>{t[Xx("0x94")][Xx("0x9e")]((t=>{const x=[];for(const t of s){const e=t[Xx("0x26")][Xx("0x8f")];e.is(Xx("0x54"),Xx("0x3a"))&&x[Xx("0x1")](e)}n[Xx("0x9b")][Xx("0x32")](e,null,o)(s,r,i);for(const e of x)Xx("0x21")!=e[Xx("0x18")][Xx("0x25")]&&t[Xx("0x85")](e)}))}))};a("insertion","accept"),a("insertion",Xx("0x6a")),a(Xx("0x4c"),Xx("0x7a")),a(Xx("0x4c"),"discard"),n._suggestionFactory[Xx("0xa6")]("insertion","tablePasteRow","discard",(t=>{const e=t[Xx("0x8c")]((t=>t[Xx("0x67")]())),n=e[0][Xx("0x82")](Xx("0x74")),{minRow:r,maxRow:i}=s[Xx("0x68")](e);o[Xx("0x43")](n,{at:r,rows:i-r+1})})),n[Xx("0x9b")].registerCustomCallback(Xx("0x8e"),Xx("0x88"),"discard",(t=>{const e=t[Xx("0x8c")]((t=>t[Xx("0x67")]())),n=e[0][Xx("0x82")](Xx("0x74")),{minColumn:r,maxColumn:i}=s[Xx("0x68")](e);o[Xx("0x3c")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e.subType||!e[Xx("0x40")][Xx("0x45")](Xx("0x5b")))return;const o=e.attributes[Xx("0x44")],s=n[Xx("0x60")]()[Xx("0x34")]((t=>t[Xx("0x59")]&&t[Xx("0x81")]&&t.attributes[Xx("0x44")]==o));s[Xx("0x89")]&&e[Xx("0x84")]()[Xx("0x89")]!=s[Xx("0x89")]&&s.reduce(((t,e)=>(t[Xx("0x55")]=e,e[Xx("0x4f")]=t,e)))};function l(t,e=!0){const{id:o}=n[Xx("0x56")](t.markerName),s=[Xx("0x17"),Xx("0x1b")],r=n[Xx("0x38")][Xx("0x92")](t[Xx("0x99")]);return r&&s[Xx("0x1")]("ck-suggestion-marker--active"),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Xx("0x8b"),c,{priority:Xx("0x58")}),n.on(Xx("0x70"),c,{priority:"high"}),t[Xx("0x94")][Xx("0x5e")][Xx("0x29")]((()=>{let e=!1;const o=Array[Xx("0x63")](t[Xx("0x94")][Xx("0x5e")][Xx("0x9a")][Xx("0x7b")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n._splitMarkerName(s);if(Xx("0x28")!=o||Xx("0x4c")!=i||r[Xx("0x4a")])continue;if(!n[Xx("0x4")](x))continue;const a=n[Xx("0x52")](x)[Xx("0x35")](),c=t.plugins[Xx("0x23")](Xx("0x2")).me;for(const t of n.getSuggestions())if(t[Xx("0x59")]&&t[Xx("0x72")]==c&&"formatBlock"==t[Xx("0x6")]&&Xx("0x22")==t[Xx("0x40")]&&t.getRanges()[Xx("0x86")]((t=>a[Xx("0x7f")]((e=>e[Xx("0x41")](t,!0))))))for(const n of t.getAllAdjacentSuggestions())n[Xx("0x59")]&&(n[Xx("0x6a")](),e=!0)}return e})),t[Xx("0x94")][Xx("0x5e")][Xx("0x29")]((e=>{const o=t.commands.get("redo");if(!o||!o[Xx("0x24")][Xx("0x69")](e.batch))return!1;let s=!1;const r=t[Xx("0x2b")].get(Xx("0x2")).me,i=t.model[Xx("0x5e")][Xx("0x9a")].getChanges(),x=Array.from(t[Xx("0x94")][Xx("0x5e")][Xx("0x9a")][Xx("0x7b")]()).filter((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Xx("0x56")](t);return Xx("0x28")==o&&Xx("0x5b")==s&&i==r.id&&!e[Xx("0x4a")]}));for(const t of i){if("insert"!=t[Xx("0x6")]||Xx("0x3a")!=t[Xx("0x4e")]||1!=t[Xx("0x89")])continue;const n=e[Xx("0x5f")](t[Xx("0x1e")],t[Xx("0x1e")][Xx("0x4b")](1));if(!x[Xx("0x51")]((({data:t})=>t[Xx("0x7c")][Xx("0x73")](n))))for(const{name:t,data:o}of x)if(n[Xx("0x41")](o[Xx("0x7c")])){e[Xx("0x49")](t,{range:n}),s=!0;break}}return s})),t[Xx("0x94")].document[Xx("0x29")]((e=>{let o=!1;const s=t[Xx("0x2b")].get(Xx("0x2")).me,r=n.getSuggestions()[Xx("0x34")]((t=>t[Xx("0x59")]&&t[Xx("0x72")]==s)),i=new Set,x=new Set;for(const t of r)if(Xx("0x5b")==t[Xx("0x40")])for(const e of t[Xx("0x20")]()){const n=e[Xx("0x8a")]()[Xx("0x67")]();if(n)if(n.is(Xx("0x54"),"tableCellSuggestion")&&Zx(n)){t[Xx("0x91")](e[Xx("0x4e")]),i.add(n),o=!0;const s=n[Xx("0x3b")],r=n[Xx("0x90")],a=s&&s.is(Xx("0x54"),Xx("0x3a")),c=r&&r.is("element",Xx("0x3a"));a&&!i[Xx("0x69")](s)&&x[Xx("0x78")](s),c&&!i[Xx("0x69")](r)&&x[Xx("0x78")](r)}else n.is(Xx("0x54"),Xx("0xb"))&&n.isEmpty&&(t[Xx("0x91")](e[Xx("0x4e")]),o=!0)}else if("tablePasteCell"==t[Xx("0x40")]){if(!t.attributes||!t.attributes[Xx("0x44")])continue;const e=t[Xx("0x81")].markerAttributes;if(e&&Object[Xx("0x8d")](e)[Xx("0x89")])continue;const n=t[Xx("0x81")][Xx("0x44")];let s=!0,i=!0;for(const e of r)if(e[Xx("0x40")]&&e.subType[Xx("0x45")]("tablePaste")){if(!e[Xx("0x81")][Xx("0x44")]){i=!1;break}if(e.id!=t.id&&e[Xx("0x81")][Xx("0x44")]==n){s=!1;break}}i&&s&&(t.removeMarkers(),o=!0)}for(const t of i)e[Xx("0x6f")](t);for(const t of x)e[Xx("0x85")](t);return o})),t[Xx("0xa")][Xx("0x2c")](Xx("0x96"))[Xx("0x93")]({model:Xx("0x87"),view:(t,e)=>l(t),converterPriority:Xx("0x58")}),t.conversion[Xx("0x2c")](Xx("0x2a")).markerToHighlight({model:Xx("0x87"),view:(t,e)=>e[Xx("0x6d")][Xx("0x53")]?l(t,!1):null,converterPriority:Xx("0x58")});const u=t[Xx("0xa1")][Xx("0x80")];this[Xx("0xa3")](u.document,Xx("0x37"),((t,e)=>{const n=[];for(const t of u.createRangeIn(e.content)[Xx("0x95")]())t.is("element",Xx("0x12"))&&n.push(t);u[Xx("0x9e")]((t=>{for(const e of n)t.move(t.createRangeIn(e),t[Xx("0x9d")](e)),t[Xx("0x6f")](e)}))}))}}function Zx(t){if(t[Xx("0x1f")])return!0;const e=t.getChild(0);return e.is(Xx("0x54"),Xx("0xb"))&&e.isEmpty}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Xx("0x14")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["*Format:* resize table","_suggestionFactory","handleSuggestionDescription","get","resizeTableWidth","selection","formatBlock","getAttribute","TableColumnResizeEditing","columnWidths","getSelectedElement","resizeColumnWidths","discard","afterInit","registerCustomCallback","enableCommand","change","formatGroupId","getSuggestionCallback","handleResizeTableWidthCommand","_descriptionFactory","locale","table","editor","subType","getColumnGroupElement","Users","registerDescriptionCallback","format","model","resizeTable","plugins","bind","getSuggestions","TrackChangesEditing","markBlockFormat","tableWidth","getContainedElement"];var ea,na;ea=ta,na=199,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{[oa("0x4")](){if(!this[oa("0xe")][oa("0x16")].has("TableColumnResizeEditing"))return;const t=this.editor[oa("0x16")].get(oa("0x19"));t[oa("0x6")](oa("0x21"),this[oa("0xa")].bind(this)),t[oa("0x6")](oa("0x2"),this[oa("0xa")].bind(this)),t[oa("0x1e")][oa("0x5")](oa("0x23"),oa("0x15"),"accept",t[oa("0x1e")][oa("0x9")](oa("0x23"),null,oa("0x3"))),t._suggestionFactory[oa("0x5")]("formatBlock",oa("0x15"),oa("0x3"),t._suggestionFactory[oa("0x9")](oa("0x23"),null,"accept")),t[oa("0xb")][oa("0x12")](this[oa("0x1f")][oa("0x17")](this))}[oa("0xa")](t,e){const n=this[oa("0xe")][oa("0x16")][oa("0x20")](oa("0x19")),o=this.editor.plugins[oa("0x20")](oa("0x25")),s=e[oa("0xd")]||this[oa("0xe")][oa("0x14")].document[oa("0x22")][oa("0x1")]();this[oa("0xe")].model[oa("0x7")]((()=>{const r=o[oa("0x10")](s);let i=r?o.getTableColumnsWidths(r):null,x=s[oa("0x24")]("tableWidth")||null;const a=e.tableWidth||x,c=e[oa("0x0")]||i,l=this[oa("0xe")][oa("0x16")][oa("0x20")](oa("0x11")).me;for(const t of n[oa("0x18")]()){const e=t[oa("0x1c")]();if("resizeTable"===t[oa("0xf")]&&e===s){t.author!==l&&t[oa("0x3")]();const e=t.data.commandParams;x=e[0][oa("0x1b")],i=e[0][oa("0x0")];break}}t({table:s,tableWidth:a,columnWidths:c}),n[oa("0x1a")](s,{commandName:oa("0x21"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0x15")},[],"resizeTable")}))}handleSuggestionDescription(t){const{data:e}=t;if(e&&oa("0x15")===e[oa("0x8")]){const t=oa("0x1d");return{type:oa("0x13"),content:Yo(this.editor[oa("0xc")],t)}}}}const ra=["TrackChangesEditing","get","editor","insertTemplate","has","enableCommand"];var ia,xa;ia=ra,xa=281,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{afterInit(){const t=this[aa("0x3")];t.plugins[aa("0x5")]("Template")&&t.plugins[aa("0x2")](aa("0x1"))[aa("0x0")](aa("0x4"))}}const la=["afterInit","TrackChangesEditing","tableOfContents","insertTableOfContents","ELEMENT_TABLE_OF_CONTENTS","editor","_descriptionFactory","plugins","locale","enableCommand","registerElementLabel","commands","get"];var ua,da;ua=la,da=447,function(t){for(;--t;)ua.push(ua.shift())}(++da);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x8")](){const t=this[ga("0x0")];if(!t[ga("0x6")][ga("0x7")](ga("0xb")))return;t[ga("0x2")][ga("0x7")](ga("0x9"))[ga("0x4")]("insertTableOfContents");const e=t.plugins[ga("0x7")](ga("0x9")),n=t[ga("0x3")];e[ga("0x1")][ga("0x5")](ga("0xa"),(t=>Yo(n,ga("0xc"),t)))}}const fa=["from","document","locale","title-content","get","newRange","_splitMarkerName","isEqual","start","end","plugins","createRange","differ","removeMarker","_descriptionFactory","forward","getNearestSelectionRange","suggestion","TrackChangesEditing","registerPostFixer","model","isTouching","element","getChangedMarkers","afterInit","ELEMENT_TITLE","editor","registerElementLabel","nodeBefore"];var ha,pa;ha=fa,pa=254,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[ba("0x2")](){const t=this[ba("0x4")];if(!t.plugins.has("Title"))return;const e=t[ba("0x11")][ba("0xb")](ba("0x19"));e[ba("0x15")][ba("0x5")](ba("0xa"),(()=>Yo(t[ba("0x9")],ba("0x3")))),t[ba("0x1b")][ba("0x8")][ba("0x1a")]((n=>{let o=!1;const s=Array[ba("0x7")](t[ba("0x1b")][ba("0x8")][ba("0x13")][ba("0x1")]());for(const{name:r,data:i}of s){const{group:s}=e[ba("0xd")](r);if(ba("0x18")!==s||!i[ba("0xc")])continue;const x=i[ba("0xc")],a=x[ba("0x10")][ba("0x6")];if(!a||!a.is(ba("0x0"),ba("0xa")))continue;if(!x.start[ba("0x1c")](x[ba("0x10")]))continue;const c=t[ba("0x1b")].schema[ba("0x17")](x[ba("0x10")],ba("0x16"));if(c&&c.isCollapsed){const t=n[ba("0x12")](x[ba("0xf")],c[ba("0xf")]);t[ba("0xe")](x)||(n.updateMarker(r,{range:t}),o=!0)}o||(n[ba("0x14")](r),o=!0)}return o}))}}const _a=["get","redo","plugins","undo","has","enableCommand","editor"];var Ta,ya;Ta=_a,ya=225,function(t){for(;--t;)Ta.push(Ta.shift())}(++ya);const Ca=function(t,e){return _a[t-=0]};class ka extends t.Plugin{afterInit(){const t=this[Ca("0x5")],e=t[Ca("0x1")][Ca("0x6")]("TrackChangesEditing");t.plugins[Ca("0x3")]("UndoEditing")&&(e[Ca("0x4")](Ca("0x2")),e.enableCommand(Ca("0x0")))}}const Aa=["has","get","toggleTableCaption","TrackChangesEditing","plugins","editor"];var va,Ra;va=Aa,Ra=239,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Sa=function(t,e){return Aa[t-=0]};class Ia extends t.Plugin{static get requires(){return[wx]}afterInit(){const t=this[Sa("0x0")];t[Sa("0x5")][Sa("0x1")]("TableCaptionEditing")&&t[Sa("0x5")][Sa("0x2")](Sa("0x4")).enableCommand(Sa("0x3"))}}const La=["length","filter","document","*Format:* set order to regular","listReversed","DocumentListPropertiesUtils","ELEMENT_","listType","_LIST_","plugins","DocumentListPropertiesEditing","isListItemBlock","expandListBlocksToCompleteList","listStart","_getSuggestionBlocks","_getTranslationKeyForListStyle","styles","*Change to:* %0","format","change","DocumentListUtils","_getSuggestionBlocksForListStyle","model","getSelectedBlocks","from","numbered","commandParams","TrackChangesEditing","getListTypeFromListStyleType","reversed","startIndex","bind","editor","handleListReversedCommand","list.properties","selection","get","listStyle","type","isFirstBlockOfListItem","_descriptionFactory","afterInit","handleListStartCommand","markMultiRangeBlockFormat","toUpperCase","has","push","commandName","enableCommand","handleDescriptions"];var Na,Ma;Na=La,Ma=475,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{[wa("0x10")](){if(!this.editor.plugins[wa("0x14")](wa("0x23")))return;const t=this[wa("0x7")].config.get(wa("0x9")),e=this[wa("0x7")][wa("0x22")][wa("0xb")]("TrackChangesEditing");t[wa("0x29")]&&e[wa("0x17")](wa("0xc"),this.handleListStyleCommand[wa("0x6")](this)),t[wa("0x4")]&&e[wa("0x17")](wa("0x1d"),this[wa("0x8")].bind(this)),t[wa("0x5")]&&e[wa("0x17")](wa("0x26"),this[wa("0x11")].bind(this)),e[wa("0xf")].registerDescriptionCallback(this[wa("0x18")][wa("0x6")](this))}handleListStyleCommand(t,e={}){const n=this[wa("0x7")].plugins[wa("0xb")](wa("0x2")),o=this[wa("0x2e")]();this[wa("0x7")][wa("0x2f")][wa("0x2c")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:"listStyle",commandParams:[{type:e.type}],formatGroupId:wa("0xc")})}))}[wa("0x8")](t,e={}){const n=this.editor[wa("0x22")][wa("0xb")](wa("0x2")),o=this.editor[wa("0x22")][wa("0xb")]("DocumentListUtils"),s=this[wa("0x27")]((t=>o[wa("0x24")](t)&&wa("0x0")===t.getAttribute(wa("0x20"))));null!==s&&this[wa("0x7")][wa("0x2f")].change((()=>{n[wa("0x12")](s,{commandName:wa("0x1d"),commandParams:[{reversed:e.reversed}],formatGroupId:wa("0x1d")})}))}handleListStartCommand(t,e={}){const n=this[wa("0x7")][wa("0x22")][wa("0xb")](wa("0x2")),o=this[wa("0x7")].plugins[wa("0xb")](wa("0x2d")),s=this[wa("0x27")]((t=>o[wa("0x24")](t)&&wa("0x0")===t.getAttribute(wa("0x20"))));null!==s&&this[wa("0x7")][wa("0x2f")][wa("0x2c")]((()=>{n[wa("0x12")](s,{commandName:wa("0x26"),commandParams:[{startIndex:e[wa("0x5")]}],formatGroupId:wa("0x26")})}))}[wa("0x18")](t){const e=this[wa("0x7")].locale,{data:n}=t;if(!n)return;let o,s;switch(n[wa("0x16")]){case wa("0xc"):o=wa("0x2a"),s={type:wa("0x2b"),content:Yo(e,o,Yo(e,this[wa("0x28")](n.commandParams[0][wa("0xd")])))};break;case wa("0x1d"):o=n.commandParams[0][wa("0x4")]?"*Format:* set order to reversed":wa("0x1c"),s={type:wa("0x2b"),content:Yo(e,o)};break;case wa("0x26"):o="*Format:* set start index to %0",s={type:wa("0x2b"),content:Yo(e,o,n[wa("0x1")][0][wa("0x5")])}}return s}[wa("0x2e")](){const t=this[wa("0x7")][wa("0x22")][wa("0xb")](wa("0x2d"));let e=Array[wa("0x31")](this[wa("0x7")][wa("0x2f")][wa("0x1b")][wa("0xa")][wa("0x30")]());return e.push(...t[wa("0x25")](e)),e=[...new Set(e)],e}[wa("0x27")](t){const e=this[wa("0x7")].plugins[wa("0xb")](wa("0x2d"));let n=Array[wa("0x31")](this[wa("0x7")][wa("0x2f")][wa("0x1b")][wa("0xa")][wa("0x30")]())[wa("0x1a")](t);if(!n[wa("0x19")])return null;n=e.expandListBlocksToCompleteList(n);const o=[];for(const t of n)e[wa("0xe")](t)&&o[wa("0x15")](t);return o}[wa("0x28")](t){return wa("0x1f")+this[wa("0x7")][wa("0x22")][wa("0xb")](wa("0x1e"))[wa("0x3")](t)[wa("0x13")]()+wa("0x21")+t.toUpperCase().replace(/-/g,"_")}}const Fa=["_getSuggestion","tableProperties","tableCellBorderStyle","getSuggestionCallback","nodeAfter","table","tableBorderWidth","discard","tableBorderStyle","tableCellBackgroundColor","findAncestor","model","markBlockFormat","_handlePropertyChange","tableCellHorizontalAlignment","handleDiscardAction","format","batch","accept","TrackChangesEditing","TablePropertiesEditing","change","commandParams","setAttribute","*Format:* change table properties","tableCellProperties","data","*Format:* change table cell properties","tableCellVerticalAlignment","tableCellPadding","getSelectionAffectedTableCells","registerCustomCallback","has","join","enableCommand","registerDescriptionCallback","tableCellBorderColor","enqueueChange","locale","getFirstPosition","plugins","formatBlock","subType","tableCellWidth","selection","start","pluginName","get","document","_descriptionFactory","tableAlignment","tableBorderColor","afterInit","getAttribute","_suggestionFactory","tableHeight","handleSuggestionDescription","tableBackgroundColor","tableCellHeight","editor"];var Pa,Da;Pa=Fa,Da=242,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{constructor(t){super(t),this.tableProperties=[Ba("0x31"),Ba("0x6"),Ba("0x4"),Ba("0x30"),"tableWidth",Ba("0x35"),Ba("0x37")],this[Ba("0x17")]=[Ba("0x22"),Ba("0x0"),"tableCellBorderWidth",Ba("0x1b"),Ba("0x29"),Ba("0x38"),Ba("0x7"),Ba("0xc"),Ba("0x1a")]}static get[Ba("0x2c")](){return"TrackChangesTableProperties"}[Ba("0x32")](){const t=this.editor[Ba("0x26")].get(Ba("0x11"));if(this.editor[Ba("0x26")].has(Ba("0x12"))){for(const e of this[Ba("0x3b")])t.enableCommand(e,((t,n)=>{const o=this[Ba("0x39")][Ba("0x9")][Ba("0x2e")][Ba("0x2a")][Ba("0x25")]()[Ba("0x8")](Ba("0x3"));this._handlePropertyChange(e,[o],this[Ba("0x3b")],Ba("0x3b"),t,n)}));t._suggestionFactory[Ba("0x1d")](Ba("0x27"),Ba("0x3b"),Ba("0x10"),t[Ba("0x34")][Ba("0x1")]("formatBlock",null,Ba("0x5"))),t._suggestionFactory[Ba("0x1d")]("formatBlock","tableProperties",Ba("0x5"),((t,e)=>this.handleDiscardAction(this.tableProperties,t,e))),t._suggestionFactory[Ba("0x1d")](Ba("0x27"),"tableProperties",Ba("0x1f"),(()=>!1))}if(this.editor[Ba("0x26")][Ba("0x1e")]("TableCellPropertiesEditing")){for(const e of this[Ba("0x17")])t[Ba("0x20")](e,((t,n)=>{const o=this[Ba("0x39")][Ba("0x26")][Ba("0x2d")]("TableUtils")[Ba("0x1c")](this[Ba("0x39")][Ba("0x9")][Ba("0x2e")][Ba("0x2a")]);this[Ba("0xb")](e,o,this.tableCellProperties,Ba("0x17"),t,n)}));t._suggestionFactory.registerCustomCallback("formatBlock",Ba("0x17"),Ba("0x10"),t[Ba("0x34")][Ba("0x1")](Ba("0x27"),null,Ba("0x5"))),t[Ba("0x34")][Ba("0x1d")]("formatBlock",Ba("0x17"),Ba("0x5"),((t,e)=>this[Ba("0xd")](this.tableCellProperties,t,e))),t._suggestionFactory[Ba("0x1d")](Ba("0x27"),Ba("0x17"),Ba("0x1f"),(()=>!1))}t[Ba("0x2f")][Ba("0x21")]((t=>this[Ba("0x36")](t)))}[Ba("0xb")](t,e,n,o,s,r){const i=this[Ba("0x39")].plugins.get(Ba("0x11"));this.editor[Ba("0x9")][Ba("0x23")](r[Ba("0xf")],(()=>{for(const t of e)if(this[Ba("0x3a")](t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0x33")](o);void 0!==n&&(e[o]=n)}s(r),i[Ba("0xa")](t,{commandParams:[e]},[],o)}}))}[Ba("0xd")](t,e,n){const o=e[0][Ba("0x2b")][Ba("0x2")],s=n[Ba("0x14")][0];this.editor[Ba("0x9")][Ba("0x13")]((e=>{for(const n of t)void 0!==s[n]?e[Ba("0x15")](n,s[n],o):e.removeAttribute(n,o)}))}[Ba("0x36")](t){if(t[Ba("0x18")])switch(t[Ba("0x28")]){case Ba("0x3b"):return{type:"format",content:Yo(this.editor[Ba("0x24")],Ba("0x16"))};case Ba("0x17"):return{type:Ba("0xe"),content:Yo(this.editor[Ba("0x24")],Ba("0x19"))}}}[Ba("0x3a")](t,e){const n=this[Ba("0x39")][Ba("0x26")][Ba("0x2d")](Ba("0x11"));for(const o of n.getSuggestions({skipNotAttached:!0})){const n=o.getContainedElement();if(o[Ba("0x28")]===e&&n===t)return o}return null}}const Ua=["showSuggestionHighlights","enqueueChange","move","root","item","suggestion-type","getSuggestionCallback","setSelection","fire","addCommentThread","removeAttribute","acceptSuggestion","isMultiRange","_removeSuggestion","_handleNewSuggestionMarker","deletion:","removeMarker","isBefore","insertContent","parent","upcast","formatInline:chain","_getAuthorFromId","getSuggestion","acceptAllSuggestions","_model","enableCommand","values","external:","update:suggestion","widget","sort","subType","get","_refreshSuggestionsChain","createPositionAt","map","next","setAttribute","rejected","createdAt","author","formatInline:accept","data-suggestion","markers","pluginName","PendingActions","addHighlight","range","markerReady","isInsideObject","createRange","notReady","isAfter","value","deletion:join","_customCallbacks","clone","markerName","commentThread","removeComment","unbind","removeMarkers","_joinSuggestions","editingDowncast","stopListening","updateMarker","normal","CommentsRepository","chain","removeClass","authoredAt","adapter","insertion","attributes","batch","$graveyard","remove","selection","_findSuggestions","_suggestionFactory","addRange","conversion","low","dataReady","newRange","_getSuggestionData","some","_checkSuggestionCorrectness","model","size","enableReadOnlyMode","formatBlock","for","backward","_editor","group","_breakSuggestionMarker","highest","_saved","removeMarker:suggestion:formatBlock","_suggestions","createPositionBefore","push","dataDowncast","markerToHighlight","listenTo","editor","define","deletion","from","_joinWithAdjacentSuggestions","suggestionChanged","activeMarkers","insertion:discard","trackChanges.trackFormatChanges","discard","start","refresh","ready","data","consume","hasComments","isEqual","consumable","addSuggestionData","getMultiRangeId","createElement","writer","creator","isRemovable","high","previous","split","@external","dataToMarker","_registerDefaultCallbacks","init","change:data","insertion:accept","isLocal","addClass","ck-suggestion-marker--active","element","insertion:chain","fromRange","getItems","isExternal","_updateSuggestionData","change:_saved","_isForcedDefaultExecutionBlock","_mergeNestedSuggestions","_descriptionFactory","discardAllSuggestions","track-changes-user-not-found","trackChanges","_addSuggestionMarker","deletion:discard","join","nodeAfter","isUndo","getChangedMarkers","isBlock","before","name","track-changes-suggestion-not-found","markerNameToElements","type","applyOperation","hasSuggestion","fetchCommentThread","isLimit","toViewElement","suggestion","oldRange","_cutOutSuggestionMarker","addMarker:suggestion","addMarkerName","_suggestionState","formatBlock:discard","_getExternalAuthor","has","getRange","insertion:","splice","formatGroupId","_trackFormatChanges","_setSuggestionRange","formatInline:discard","isIntersectingWithRange","_defaultCallbacks","containsPosition","nodeBefore","open","locale","ck-suggestion-marker-formatBlock","markerToData","isObject","track-changes-suggestion-data-mismatch","getShiftedBy","discardSelectedSuggestions","acceptSelectedSuggestions","getRanges","then","rootName","rethrowUnexpectedError","formatInline:join","getCommentThread","_setSuggestionData","getChanges","isInContent","isNextTo","hasCommentThread","formatBlock:","PENDING_ACTION_SUGGESTION","getIntersection","set","commands","multi","error-saving-suggestion-data-suggestion-discarded","filter","trackChanges.mergeNestedSuggestions","getCustomProperty","howMany","change","includes","always","isAtStart","containsRange","addComment","removed","every","_rangeIsInLocalUserInsertion","multipleBlocks","getMarkers","containsRangeInObject","trackChangesCommand","isOwn","getAttribute","elementEnd","isAtEnd","getAncestors","suggestion:","getUser","isCollapsed","accept","getWalker","containsItem","mapper","getNearestSelectionRange","markMultiRangeBlockFormat","differ","accepted","addMarker:suggestion:formatBlock","never","collaboration.channelId","length","isTouching","detach","getSuggestions","plugins","editing","suggestionUnloaded","schema","delete","getAllAdjacentSuggestions","originalSuggestionId","_addThreadToSuggestion","substr","getFirstMarker","discardSuggestion","options","config","_splitMarkerName","unbindElementFromMarkerName","deletion:accept","default","isDocumentOperation","deleteContent","addSuggestion","_commentsRepository","insert","createPositionAfter","forward","formatInline","getFirstRange","track-changes-command-not-found","end","position","targetPosition","skipNestingCheck","buildSuggestion","moveTargetPosition","ck-suggestion-marker","Users","forceDefaultExecution","stop","setTo","clear","registerPostFixer","document","_createSuggestion","track-changes-adapter-missing-getsuggestion","updateSuggestion","head","createSelection","_enabledCommands","markInsertion","add","_adapter","commandName"];var Ga,Ha;Ga=Ua,Ha=111,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const Wa=function(t,e){return Ua[t-=0]};class za extends t.Plugin{static get requires(){return[Wa("0x10c"),r.Users,t.PendingActions,cs,ys,Rs,ws,Bs,zs,Js,er,Oa,xr,dr,br,Cr,Lr,Pr,Gr,Kr,Qr,ni,xi,di,pi,yi,Ri,Oi,ji,zi,$i,tx,ix,dx,px,Cx,Sx,wx,jx,zx,Ia,Qx,sa,ma,ja,ca,Ea,ka]}static get[Wa("0xf5")](){return"TrackChangesEditing"}constructor(t){function e(t){return t[Wa("0xec")]((t=>String.fromCharCode(t)))[Wa("0x2f")]("")}super(t),this[Wa("0x69")]("activeMarkers",[]),this.on("change:activeMarkers",((e,n,o,s)=>{this[Wa("0xe1")][Wa("0x71")]((()=>{for(const e of[...s,...o])this._model[Wa("0xf4")][Wa("0x46")](e)&&t[Wa("0x96")].reconvertMarker(e)}))})),this[Wa("0x29")]=new ss(this.editor[Wa("0x121")][Wa("0x98")],this[Wa("0x133")][Wa("0x53")]),this[Wa("0xc6")]=null,this[Wa("0x118")]=new Va(this[Wa("0x133")]),this[Wa("0x12d")]=new Map,this[Wa("0xa9")]=t[Wa("0x95")][Wa("0xe9")]("CommentsRepository"),this[Wa("0xc3")]=new Set,this[Wa("0xe1")]=this[Wa("0x133")].model,this[Wa("0x43")]=new WeakMap,this[Wa("0x27")]=!1,t[Wa("0xa1")].define(Wa("0x4"),Wa("0xa5")),this[Wa("0x4b")]=t[Wa("0xa1")].get(Wa("0x4")),t.config[Wa("0x134")](Wa("0x6e"),!0),this[Wa("0x28")]=t[Wa("0xa1")][Wa("0xe9")]("trackChanges.mergeNestedSuggestions"),this.trackChangesCommand=new d(t,this[Wa("0xc3")]),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,49,50,54,48])}[Wa("0x1a")](){const t=this[Wa("0x133")];t[Wa("0x11a")][Wa("0x125")](Wa("0x108"))[Wa("0x131")]({model:Wa("0x3e"),view:t=>{const{id:e,type:n}=this[Wa("0xa2")](t.markerName),o=[Wa("0xb6"),"ck-suggestion-marker-"+n];let s=3e3;return this[Wa("0x2")].includes(t[Wa("0x102")])&&(o[Wa("0x12f")](Wa("0x1f")),s=3010),Wa("0x135")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[Wa("0x11a")][Wa("0x125")](Wa("0x130"))[Wa("0xc5")]((e=>{e.on(Wa("0x41"),((e,n,o)=>{if(!o[Wa("0xa0")][Wa("0xc8")])return;const s=n[Wa("0xcc")];if(!s)return;const r=o[Wa("0x89")][Wa("0x3d")](s);t[Wa("0x121")][Wa("0x98")][Wa("0x56")](s)&&r&&!r[Wa("0x6f")](Wa("0xe6"))&&r.is("containerElement")&&(0,x.toWidget)(r,o[Wa("0x11")])}),{priority:Wa("0x14")})})),t[Wa("0x11a")][Wa("0x125")]("dataDowncast")[Wa("0x131")]({model:Wa("0x3e"),view:(t,e)=>{if(!e.options[Wa("0xc8")])return null;const{type:n}=this[Wa("0xa2")](t[Wa("0x102")]);return{classes:[Wa("0xb6"),"ck-suggestion-marker-"+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[Wa("0xcc")])return;if(o[Wa("0xcc")].is(Wa("0x116")))return void s[Wa("0xd")][Wa("0xa")](o[Wa("0xcc")],n.name);const r=s[Wa("0x89")].toViewElement(o.item);if(!o.item.is(Wa("0x20"))||!t[Wa("0x121")][Wa("0x98")][Wa("0x33")](o[Wa("0xcc")])||r.getCustomProperty(Wa("0xf7")))return;const{id:i}=this[Wa("0xa2")](o[Wa("0x102")]);s[Wa("0x11")][Wa("0x1e")](["ck-suggestion-marker",Wa("0x54")],r),s.writer[Wa("0xee")](Wa("0xf3"),i,r),s[Wa("0x89")].bindElementToMarker(r,o[Wa("0x102")]),e&&(this[Wa("0x2")][Wa("0x72")](o[Wa("0x102")])?s[Wa("0x11")][Wa("0x1e")]("ck-suggestion-marker--active",r):s[Wa("0x11")][Wa("0x10e")]("ck-suggestion-marker--active",r));for(const e of t[Wa("0x121")].createRangeIn(o[Wa("0xcc")])[Wa("0x23")]())s[Wa("0xd")][Wa("0xa")](e,n.name);s[Wa("0xd")].consume(o[Wa("0xcc")],n[Wa("0x35")])};t.conversion[Wa("0x125")](Wa("0x130")).add((t=>{t.on("addMarker:suggestion:formatBlock",((t,e,o)=>{o[Wa("0xa0")][Wa("0xc8")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:Wa("0x12a")})})),t[Wa("0x11a")][Wa("0x125")](Wa("0x130"))[Wa("0x55")]({model:"suggestion",view:(t,e)=>e[Wa("0xa0")].showSuggestionHighlights?null:{group:Wa("0x3e"),name:t[Wa("0x9d")](11)}}),t.conversion.for(Wa("0xdc")).elementToElement({view:{name:"suggestion",attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=Wa("0x83")+t.getAttribute(Wa("0xcd"))+":"+t[Wa("0x7f")]("id");return t.getAttribute("marker-count")&&(n+=":"+t[Wa("0x7f")]("marker-count")),e[Wa("0x10")]("$marker",{"data-name":n})}}),t[Wa("0x11a")][Wa("0x125")]("upcast")[Wa("0x18")]({view:Wa("0x3e")}),t.conversion[Wa("0x125")]("editingDowncast")[Wa("0xc5")]((t=>{t.on(Wa("0x8e"),n(),{priority:"high"})})),t[Wa("0x11a")][Wa("0x125")](Wa("0x108"))[Wa("0xc5")]((t=>{t.on(Wa("0x12c"),((t,e,n)=>{const o=n[Wa("0x89")][Wa("0x37")](e[Wa("0x102")]);if(o)for(const t of o)t[Wa("0x6f")](Wa("0xf7"))||(n.writer[Wa("0x10e")]([Wa("0xb6"),Wa("0x54"),Wa("0x1f")],t),n[Wa("0x11")][Wa("0xd2")](Wa("0xf3"),t),n[Wa("0x89")][Wa("0xa3")](t,e[Wa("0x102")]))}),{priority:Wa("0x14")})})),t[Wa("0x121")][Wa("0xbd")].registerPostFixer((e=>{let n=!1;const o=Array.from(t.model.document[Wa("0x8c")][Wa("0x32")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[Wa("0xa2")](x);if(Wa("0x3e")!==o)continue;const u=this[Wa("0x12d")][Wa("0xe9")](l);if(null!=a[Wa("0x11d")])if(Wa("0xad")==c&&(n=n||Xa(a[Wa("0x11d")],x,e,t[Wa("0x121")].schema)),a[Wa("0x11d")][Wa("0x85")]||Wa("0x114")==a[Wa("0x11d")][Wa("0xcb")][Wa("0x5d")]||Wa("0x124")==c&&!Ja(a[Wa("0x11d")])||Wa("0x135")==c&&(qa(i=a[Wa("0x11d")])||(r=i)[Wa("0x6")][Wa("0xdb")]==r[Wa("0xb0")][Wa("0x51")]&&r[Wa("0x6")].isAtEnd))e.removeMarker(x),n=!0;else{if(!u||!u[Wa("0x63")])continue;s[Wa("0xc5")](u)}}var r,i;return s.size>0&&(n=!!this[Wa("0x0")](s)||n),n})),t[Wa("0x121")][Wa("0xbd")][Wa("0xbc")]((e=>{let n=!1;for(const o of t[Wa("0x121")].document[Wa("0x8c")][Wa("0x62")]()){if(Wa("0xaa")!=o[Wa("0x38")])continue;const s=o.position[Wa("0x58")](o.length);if(s[Wa("0x81")])for(const r of this[Wa("0x12d")][Wa("0xe3")]()){if(r[Wa("0xd4")]||!r[Wa("0x63")])continue;if(Wa("0x124")!=r.type)continue;const i=r[Wa("0xae")]();if(i[Wa("0x6")][Wa("0xdb")]!=i.end[Wa("0xdb")]&&i[Wa("0xb0")][Wa("0xc")](o[Wa("0xb1")])){const o=t[Wa("0x121")][Wa("0xfb")](i.start,s);e.updateMarker(r[Wa("0x9e")](),{range:o}),n=!0}}}return n})),t[Wa("0x121")][Wa("0xf4")].on(Wa("0xe5"),((t,e,n)=>{if(null==n){const{id:t}=this[Wa("0xa2")](e.name),n=this[Wa("0x12d")][Wa("0xe9")](t);n&&n[Wa("0x42")](e.name)}})),t[Wa("0x121")].document.on(Wa("0x1b"),(()=>{const e=Array[Wa("0x136")](t[Wa("0x121")][Wa("0xbd")][Wa("0x8c")][Wa("0x32")]()).filter((t=>"suggestion"===this[Wa("0xa2")](t[Wa("0x35")])[Wa("0x128")]));if(0===e[Wa("0x91")])return;e[Wa("0xe7")](((t,e)=>{const n=t[Wa("0x9")][Wa("0x3f")],o=e[Wa("0x9")][Wa("0x3f")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[Wa("0x6")][Wa("0xd9")](o.start)?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[Wa("0xa2")](t);if(null===s[Wa("0x3f")]){const e=this[Wa("0xd6")](t);o.add(e)}else{const t=this[Wa("0x12d")][Wa("0xe9")](e);null!==s[Wa("0x11d")]||t[Wa("0x63")]?(n[Wa("0xc5")](t[Wa("0xc1")]),o[Wa("0xc5")](t)):this[Wa("0xd5")](t)}}o[Wa("0x122")]>0&&this._refreshSuggestionsChain(o);for(const t of n)this[Wa("0xd0")](Wa("0x1"),t)})),t.model.on(Wa("0x39"),((e,n)=>{const o=n[0];if(!this[Wa("0x12d")].size)return;if(!o[Wa("0xa6")])return;if(o[Wa("0x113")][Wa("0x31")]||!o[Wa("0x113")][Wa("0x1d")])return;let s,r;switch(o[Wa("0x38")]){case"insert":s=t[Wa("0x121")].createPositionAt(o[Wa("0xb1")]),r=s[Wa("0x58")](o[Wa("0x70")]);break;case Wa("0x16"):s=t[Wa("0x121")][Wa("0xeb")](o.splitPosition),r=t[Wa("0x121")][Wa("0xeb")](o[Wa("0xb5")]);break;case Wa("0xca"):s=t[Wa("0x121")][Wa("0xeb")](o[Wa("0xb2")]),r=s[Wa("0x58")](o[Wa("0x70")]);break;default:return}const i=t[Wa("0x121")][Wa("0xfb")](s,r);t[Wa("0x121")][Wa("0x71")]((()=>{for(const{suggestion:t,meta:e}of this[Wa("0x117")](i)){if(t[Wa("0xd4")])continue;if("formatInline"==t[Wa("0x38")])continue;const n=t.data&&t[Wa("0x9")][Wa("0x7a")];(Wa("0x124")!=t[Wa("0x38")]||Wa("0x16")==o.type&&!n)&&(e[Wa("0x7c")]||Wa("0x111")==t[Wa("0x38")]&&e.isOwn||t[Wa("0xae")]().containsRange(i)&&this._breakSuggestionMarker(t,s,r))}}))}),{priority:"lowest"}),t[Wa("0x121")].on(Wa("0xa7"),((e,n)=>{const o=n[0],s=n[1];if(s&&s.forceDefaultExecution)return;if(this[Wa("0x27")])return;if(!this[Wa("0x7d")].value)return;if(o[Wa("0x85")])return;const r=t[Wa("0x121")][Wa("0x98")],{start:i,end:x}=o[Wa("0xae")](),a=i[Wa("0x30")]&&r[Wa("0x3c")](i[Wa("0x30")])?null:r[Wa("0x8a")](i,Wa("0xac")),c=x[Wa("0x51")]&&r[Wa("0x3c")](x[Wa("0x51")])?null:r.getNearestSelectionRange(x,Wa("0x126")),l=t[Wa("0x121")][Wa("0xfb")](a?a[Wa("0x6")]:i,c?c.end:x);t.model.change((e=>{this.markDeletion(l);const n=t.model[Wa("0x98")].getNearestSelectionRange(l[Wa("0x6")]);o.is("documentSelection")?e[Wa("0xcf")](n):o[Wa("0xba")](n)})),e[Wa("0xb9")]()}),{priority:e.priorities[Wa("0x10b")]+10}),t.model.on(Wa("0xda"),((e,n)=>{const o=n[n[Wa("0x91")]-1];o&&o[Wa("0xb8")]||this[Wa("0x27")]||this[Wa("0x7d")].value&&(t[Wa("0x121")][Wa("0x71")]((()=>{let o=t.model[Wa("0xda")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e.return=o[Wa("0x101")]();const s=o[Wa("0xb0")][Wa("0x51")],r=t.model[Wa("0x98")];s&&r[Wa("0x33")](s)&&!r.isObject(s)&&(o=t[Wa("0x121")][Wa("0xfb")](o[Wa("0x6")],t.model[Wa("0xeb")](s,Wa("0xb0")))),this[Wa("0xc4")](o)})),e[Wa("0xb9")]())}),{priority:Wa("0x14")}),this[Wa("0x133")].commands[Wa("0xc5")]("trackChanges",this[Wa("0x7d")]),this[Wa("0xe2")](Wa("0x2c"));const o=new p(t,this[Wa("0x12d")]);t.commands.add(Wa("0xd3"),o),this[Wa("0xe2")](Wa("0xd3"));const s=new y(t,this[Wa("0x12d")]);t[Wa("0x6a")].add(Wa("0x9f"),s),this[Wa("0xe2")](Wa("0x9f")),t[Wa("0x6a")][Wa("0xc5")](Wa("0xe0"),new F(t,o,this[Wa("0x12d")])),this.enableCommand(Wa("0xe0")),t.commands.add(Wa("0x2a"),new F(t,s,this[Wa("0x12d")])),this[Wa("0xe2")]("discardAllSuggestions"),t[Wa("0x6a")].add(Wa("0x5a"),new U(t,o,this._suggestions)),this[Wa("0xe2")](Wa("0x5a")),t[Wa("0x6a")][Wa("0xc5")](Wa("0x59"),new U(t,s,this[Wa("0x12d")])),this[Wa("0xe2")](Wa("0x59"));const r=t[Wa("0x95")][Wa("0xe9")](Wa("0x10c"));this[Wa("0x132")](r,Wa("0x76"),((t,{threadId:e})=>{const n=this._suggestions.get(e);n&&n[Wa("0x103")]&&1===n[Wa("0x103")][Wa("0x91")]&&this[Wa("0x25")](e,{hasComments:!0})}),{priority:"low"}),this[Wa("0x132")](r,Wa("0x104"),((t,{threadId:e})=>{const n=this[Wa("0x12d")][Wa("0xe9")](e);n&&n[Wa("0x103")]&&!n.commentThread[Wa("0x91")]&&this[Wa("0x25")](e,{hasComments:!1})}),{priority:Wa("0x11b")})}set[Wa("0x110")](t){if(this[Wa("0xc6")])throw new e.CKEditorError("track-changes-adapter-already-set",this);this[Wa("0xc6")]=t}get[Wa("0x110")](){return this._adapter}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[Wa("0x12d")][Wa("0xe3")]())t&&!e[Wa("0x63")]||n[Wa("0x12f")](e);return e?n[Wa("0xec")]((t=>t.toJSON())):n}getSuggestion(t){const n=this._suggestions[Wa("0xe9")](t);if(!n)throw new e.CKEditorError(Wa("0x36"),this);return n}[Wa("0x3a")](t){return this[Wa("0x12d")].has(t)}[Wa("0xe")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[Wa("0x38")][Wa("0x16")](":"),i=this[Wa("0x12d")][Wa("0xe9")](n)||this[Wa("0xbe")](s,r,n,e,o);if(this[Wa("0x9c")](i),this[Wa("0x120")](i,s,r||null,e),i[Wa("0xf0")]=t[Wa("0xf0")],o&&o[Wa("0x17")]){const t=o["@external"],e=this._getExternalAuthor(t.authorName);i[Wa("0x10f")]=t.createdAt,i[Wa("0xf1")]=e,i[Wa("0x24")]=!0}else i[Wa("0x10f")]=t[Wa("0xf0")];switch(t[Wa("0x9")]&&(i.data=t[Wa("0x9")]),t[Wa("0x112")]&&(i.attributes=t[Wa("0x112")]),this[Wa("0xc6")]&&this[Wa("0xc6")][Wa("0xa8")]||(i._saved=!0),this._suggestionState[Wa("0xe9")](i)){case"notReady":this[Wa("0x43")].set(i,"dataReady");break;case Wa("0xf9"):i[Wa("0x63")]?(this._suggestionState[Wa("0x69")](i,Wa("0x8")),this[Wa("0xd0")]("suggestionLoaded",i)):this[Wa("0x43")][Wa("0x69")](i,"removed")}return i}acceptSuggestion(t){this.forceDefaultExecution((()=>{this[Wa("0x133")].model[Wa("0x71")]((()=>{for(const e of t.getAllAdjacentSuggestions())e[Wa("0x86")]()}))}))}[Wa("0x9f")](t){this[Wa("0xb8")]((()=>{this.editor.model[Wa("0x71")]((()=>{for(const e of t[Wa("0x9a")]())e.discard()}))}))}[Wa("0xe2")](t,n){const o=this[Wa("0x133")][Wa("0x6a")][Wa("0xe9")](t);if(!o)throw new e.CKEditorError(Wa("0xaf"),this,{commandName:t});this[Wa("0xc3")].add(o),n&&o.on("execute",((t,e)=>{this.trackChangesCommand[Wa("0xfe")]&&(this._isForcedDefaultExecutionBlock||e[Wa("0x91")]>0&&e[e[Wa("0x91")]-1]&&e[e[Wa("0x91")]-1][Wa("0xb8")]||(n(((...t)=>o.execute(...t,{forceDefaultExecution:!0})),...e),t[Wa("0xb9")]()))}),{priority:Wa("0x14")})}forceDefaultExecution(t){let n,o;const s=this._isForcedDefaultExecutionBlock;this[Wa("0x27")]=!0;try{n=t()}catch(t){o=t}return s||(this[Wa("0x27")]=!1),o&&e.CKEditorError[Wa("0x5e")](o,this),n}[Wa("0xc4")](t,n=null,o={}){if(t.isCollapsed)return null;const s=this[Wa("0x133")].plugins[Wa("0xe9")]("Users").me;for(const{suggestion:e,meta:o}of this[Wa("0x117")](t,Wa("0x111")))if(o[Wa("0x7e")]){if(!o[Wa("0x64")]){if(!this[Wa("0x28")]&&o[Wa("0x7c")])continue;return e}if(n==e[Wa("0xe8")]){const n=e[Wa("0xae")]();return n[Wa("0x6")][Wa("0xc")](t.end)?this[Wa("0x4c")](e,this[Wa("0xe1")].createRange(t.start,n[Wa("0xb0")])):this._setSuggestionRange(e,this._model[Wa("0xfb")](n[Wa("0x6")],t[Wa("0xb0")])),e}}const r=(0,e.uid)(),i=s.id,x=n?Wa("0x48")+n:Wa("0x111"),a=this[Wa("0x61")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this._addSuggestionMarker(x,r,i,t),a}markMultiRangeInsertion(t,n=Wa("0x6b"),o={}){const s=this[Wa("0x133")][Wa("0x95")].get(Wa("0xb7")).me,r=this._suggestionFactory.getSuggestionCallback(Wa("0x111"),n,Wa("0x2f"));for(const e of this[Wa("0x94")]())if(e.author.id==s.id&&"insertion"==e[Wa("0x38")]&&e[Wa("0xe8")]==n&&(r(e[Wa("0x5b")](),t)||r(t,e[Wa("0x5b")]()))){for(const n of t)e[Wa("0x119")](n);return e}if(this[Wa("0x28")])for(const e of t)for(const{suggestion:n,meta:o}of this._findSuggestions(e,Wa("0x111"))){if(!o[Wa("0x7e")])continue;let e=!0;for(const o of n.getRanges())for(const n of t)if(!o.containsRange(n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=s.id,a=Wa("0x48")+n,c=this._setSuggestionData({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[Wa("0x2d")](a,i,x,e,Zo[Wa("0xf")]());return c}markInlineFormat(t,n,o=null,s={}){if(o=o||$a(n),t[Wa("0x85")])return null;if(Wa("0x8f")===this[Wa("0x4b")]){const e=this._suggestionFactory[Wa("0xce")](Wa("0xad"),o,Wa("0x86"));return this[Wa("0xb8")]((()=>e([t],n,s))),null}const r=this[Wa("0x133")][Wa("0x95")][Wa("0xe9")](Wa("0xb7")).me,i=[];if(Wa("0x73")!==this[Wa("0x4b")])for(const{suggestion:e,meta:n}of this[Wa("0x117")](t,Wa("0x111")))n.isOwn&&!n.isInsideObject&&i[Wa("0x12f")](...e.getRanges());const x=function(t,e){const n=[];for(const o of e){const e=t[Wa("0x68")](o);e&&n[Wa("0x12f")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[Wa("0x91")];){const o=n[e].getDifference(t);n[Wa("0x49")](e,1,...o),e+=o.length}}return n}(t,i);x.length&&this[Wa("0xe1")][Wa("0x71")]((()=>{for(const t of x){const e=this[Wa("0x118")][Wa("0xce")](Wa("0xad"),o,Wa("0x86"));this[Wa("0xb8")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[Wa("0x6")],a=t[Wa("0xb0")];for(const{suggestion:e,meta:n}of this[Wa("0x117")](t,"formatInline")){if(!n[Wa("0x7e")])continue;if(e.subType!=o)continue;const s=e.getFirstRange();if(s[Wa("0x75")](t,!0))return null;x=x[Wa("0xd9")](s[Wa("0x6")])?x:s[Wa("0x6")],a=a[Wa("0xfd")](s.end)?a:s[Wa("0xb0")],i?s[Wa("0x6")][Wa("0xd9")](i[Wa("0xae")]()[Wa("0x6")])?(i[Wa("0x106")](),i=e):e[Wa("0x106")]():i=e}const c=this[Wa("0xe1")][Wa("0xfb")](x,a);if(i)this[Wa("0x4c")](i,c);else{const t=(0,e.uid)(),i=r.id;this[Wa("0x61")]({id:t,type:"formatInline:"+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[Wa("0x2d")]("formatInline:"+o,t,i,c)}}return null}markBlockFormat(t,n,o=[],s=null,r={}){n[Wa("0x4a")]||(n[Wa("0x4a")]=n[Wa("0xc7")]),n.multipleBlocks=t.is(Wa("0xf8")),s=s||$a(n);const i=o[Wa("0xec")]((t=>Qa(t,this[Wa("0xe1")]))),x=t.is(Wa("0xf8"))?t:Qa(t,this[Wa("0xe1")]);if(Wa("0x8f")===this[Wa("0x4b")]){const t=this[Wa("0x118")][Wa("0xce")](Wa("0x124"),s,Wa("0x86"));return this[Wa("0xb8")]((()=>t([x],n,r))),null}i[Wa("0x12f")](x);let a=!0;for(const t of i)if(!this[Wa("0x79")](t)){a=!1;break}if(a&&Wa("0x73")!==this[Wa("0x4b")]){const t=this[Wa("0x118")].getSuggestionCallback(Wa("0x124"),s,Wa("0x86"));return this.forceDefaultExecution((()=>t([x],n,r))),null}let c=null,l=x[Wa("0x6")],u=x.end;for(const{suggestion:t,meta:e}of this[Wa("0x117")](x,Wa("0x124"))){if(!e[Wa("0x7e")]||e[Wa("0x64")]||e[Wa("0x7c")]||e[Wa("0xfa")])continue;if(t[Wa("0x9")][Wa("0x4a")]!=n.formatGroupId)continue;const o=t[Wa("0xae")]();if(t[Wa("0xe8")]==s){if(o[Wa("0x75")](x,!0))return null;l=l[Wa("0xd9")](o[Wa("0x6")])?l:o[Wa("0x6")],u=u[Wa("0xfd")](o[Wa("0xb0")])?u:o[Wa("0xb0")],c?o[Wa("0x6")][Wa("0xd9")](c[Wa("0xae")]()[Wa("0x6")])?(c[Wa("0x106")](),c=t):t[Wa("0x106")]():c=t}else{const e=x.getIntersection(o);this[Wa("0x40")](t,e)}}const d=this[Wa("0x133")][Wa("0x95")][Wa("0xe9")](Wa("0xb7")).me,g=(0,e.uid)(),m=d.id;if(c)return this[Wa("0x4c")](c,this[Wa("0xe1")].createRange(l,u)),c;{const t=this._setSuggestionData({id:g,type:"formatBlock:"+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[Wa("0x2d")](Wa("0x66")+s,g,m,this._model[Wa("0xfb")](l,u)),t}}[Wa("0x8b")](t,n,o=[],s=null,r={}){n[Wa("0x4a")]||(n[Wa("0x4a")]=n[Wa("0xc7")]);const i=t[0];n[Wa("0x7a")]=i.is(Wa("0xf8")),s=s||$a(n);const x=o[Wa("0xec")]((t=>Qa(t,this[Wa("0xe1")]))),a=i.is(Wa("0xf8"))?t:t[Wa("0xec")]((t=>Qa(t,this[Wa("0xe1")])));if(Wa("0x8f")===this[Wa("0x4b")]){const t=this._suggestionFactory.getSuggestionCallback("formatBlock",s,"accept");return this[Wa("0xb8")]((()=>t(a,n,r))),null}x[Wa("0x12f")](...a);let c=!0;for(const t of x)if(!this[Wa("0x79")](t)){c=!1;break}if(c&&Wa("0x73")!==this[Wa("0x4b")]){const t=this._suggestionFactory[Wa("0xce")]("formatBlock",s,Wa("0x86"));return this[Wa("0xb8")]((()=>t(a,n,r))),null}const l=this[Wa("0x133")][Wa("0x95")].get(Wa("0xb7")).me;for(const t of this[Wa("0x94")]()){if(t[Wa("0xf1")].id!=l.id)continue;if(Wa("0x124")!=t[Wa("0x38")]||t[Wa("0x9")][Wa("0x4a")]!=n[Wa("0x4a")])continue;const e=t.subType==s;for(let n=0;n<a[Wa("0x91")];n++){const o=a[n];for(const s of t[Wa("0x7b")]()){const r=s[Wa("0x47")]();if(o[Wa("0xc")](r)){e?(a[Wa("0x49")](n,1),n--):t[Wa("0xd8")](s[Wa("0x35")]);break}}}}if(0==a[Wa("0x91")])return null;const u=this[Wa("0x118")][Wa("0xce")](Wa("0x124"),s,"join");for(const t of this[Wa("0x94")]())if(t[Wa("0xf1")].id==l.id&&Wa("0x124")==t[Wa("0x38")]&&t[Wa("0x9")][Wa("0x4a")]==n[Wa("0x4a")]&&t.subType==s&&(u(t[Wa("0x5b")](),a)||u(a,t.getRanges()))){for(const e of a)t.addRange(e);return t}const d=(0,e.uid)(),g=l.id,m=Wa("0x66")+s,f=this._setSuggestionData({id:d,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this._addSuggestionMarker(m,d,g,t,Zo[Wa("0xf")]());return f}markDeletion(t,n=null,o={}){if(t[Wa("0x85")])return null;const s=this[Wa("0x133")][Wa("0x95")].get(Wa("0xb7")).me,r=new i.LiveRange(t[Wa("0x6")],t.end);for(const{suggestion:t,meta:e}of this._findSuggestions(r,Wa("0x111")))if(e[Wa("0x7e")]&&!e[Wa("0x64")])if(t[Wa("0xd4")]){const e=t[Wa("0x5b")]().filter((t=>Wa("0x114")!=t.root[Wa("0x5d")]));if(e[Wa("0x78")]((t=>r[Wa("0x75")](t,!0)))&&t[Wa("0x5")](),e[Wa("0x11f")]((t=>t[Wa("0x75")](r,!0)))){const t=this[Wa("0x118")][Wa("0xce")]("deletion",n,Wa("0x86"));return this[Wa("0xb8")]((()=>t([r],null,o))),null}}else{const e=r[Wa("0x68")](t[Wa("0xae")]());null!==e&&t._onDiscard([e],null,o)}if(r[Wa("0x93")](),r[Wa("0x85")]||Wa("0x114")==r[Wa("0xcb")][Wa("0x5d")])return null;let x=null,a=r.start,c=r[Wa("0xb0")];for(const{suggestion:t,meta:e}of this._findSuggestions(r,"deletion"))if(e[Wa("0x7e")])if(t.isMultiRange&&this[Wa("0x28")]){let e=!0;for(const n of t[Wa("0x5b")]()){if(n[Wa("0x75")](r,!0))return t;r[Wa("0x75")](n)||(e=!1)}e&&t[Wa("0x5")]()}else{const n=t[Wa("0xae")]();if(n[Wa("0x75")](r,!0)){if(!this._mergeNestedSuggestions&&e.containsRangeInObject)continue;return t}a=a[Wa("0xd9")](n.start)?a:n[Wa("0x6")],c=c[Wa("0xfd")](n.end)?c:n[Wa("0xb0")],x?n[Wa("0x6")].isBefore(x.getFirstRange()[Wa("0x6")])?(x[Wa("0x106")](),x=t):t[Wa("0x106")]():x=t}if(x)return this[Wa("0x4c")](x,this[Wa("0xe1")][Wa("0xfb")](a,c)),x;{const t=(0,e.uid)(),r=this[Wa("0xe1")][Wa("0xfb")](a,c),i=s.id,x=n?Wa("0xd7")+n:Wa("0x135"),l=this[Wa("0x61")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Wa("0x2d")](x,t,i,r),l}}markMultiRangeDeletion(t,n="multi",o={}){const s=this[Wa("0x133")][Wa("0x95")][Wa("0xe9")](Wa("0xb7")).me,r=t[Wa("0xec")]((t=>new i.LiveRange(t.start,t[Wa("0xb0")]))),x=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this[Wa("0x117")](t,Wa("0x111")))n[Wa("0x7e")]&&!n.isNextTo&&x[Wa("0xc5")](e);for(const e of x)if(e[Wa("0xd4")]){const s=e[Wa("0x5b")]();if((!e[Wa("0x112")]||!e[Wa("0x112")][Wa("0xb3")])&&s[Wa("0x78")]((t=>r.some((e=>e[Wa("0x75")](t,!0)))))&&e.discard(),r[Wa("0x78")]((t=>s.some((e=>e[Wa("0x75")](t,!0)))))){const e=this[Wa("0x118")][Wa("0xce")](Wa("0x135"),n,Wa("0x86"));return this[Wa("0xb8")]((()=>e(t,null,o))),null}}else{const t=e[Wa("0xae")]();if(r[Wa("0x11f")]((e=>e[Wa("0x75")](t,!0)))&&e.discard(),r[Wa("0x78")]((e=>t[Wa("0x75")](e,!0)))){const t=this[Wa("0x118")][Wa("0xce")](Wa("0x135"),n,"accept");return this[Wa("0xb8")]((()=>t(r,null,o))),null}}const a=this._suggestionFactory[Wa("0xce")](Wa("0x135"),n,Wa("0x2f"));let c=null;for(const t of this.getSuggestions())if(t[Wa("0xf1")].id==s.id&&t[Wa("0x63")]&&Wa("0x135")==t[Wa("0x38")]&&t[Wa("0xe8")]==n&&(a(t[Wa("0x5b")](),r)||a(r,t.getRanges())))if(c){if(t.commentThread&&t[Wa("0x103")][Wa("0x91")])continue;for(const e of t[Wa("0x5b")]())c[Wa("0x4e")](e)||c[Wa("0x119")](e);t[Wa("0x106")]()}else{c=t;for(const e of r)t.isIntersectingWithRange(e)||t[Wa("0x119")](e)}if(c)return c;x[Wa("0xbb")]();for(const t of r)for(const{suggestion:e,meta:n}of this[Wa("0x117")](t,Wa("0x135")))n[Wa("0x7e")]&&x[Wa("0xc5")](e);for(const t of x){const e=t[Wa("0x5b")]();if((!o||!o[Wa("0xb3")])&&r[Wa("0x78")]((t=>e[Wa("0x11f")]((e=>e[Wa("0x75")](t,!0))))))return t;(!t[Wa("0x112")]||!t.attributes[Wa("0xb3")])&&e[Wa("0x78")]((t=>r.some((e=>e[Wa("0x75")](t,!0)))))&&t[Wa("0x5")]()}const l=(0,e.uid)(),u=s.id,d=Wa("0xd7")+n,g=this[Wa("0x61")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of r)t.detach(),t.isCollapsed||Wa("0x114")==t.root.rootName||this[Wa("0x2d")](d,l,u,t,Zo[Wa("0xf")]());return g}_setSuggestionRange(t,e){const n=t[Wa("0x9e")]();this[Wa("0xe1")][Wa("0x71")]((t=>{t[Wa("0x10a")](n,{range:e})}))}[Wa("0x9c")](t){const e=t.id,n=this[Wa("0x133")][Wa("0xa1")][Wa("0xe9")](Wa("0x90"));this[Wa("0xa9")][Wa("0x65")](e)||this[Wa("0xa9")][Wa("0xd1")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[Wa("0xa9")][Wa("0x60")](e);o[Wa("0x105")](Wa("0x13")),o.isRemovable=!1,t[Wa("0x103")]=o}[Wa("0x120")](t,n,o,s){if(t[Wa("0x38")]!=n||t[Wa("0xe8")]!=o||t.creator.id!=s)throw this[Wa("0x133")][Wa("0x123")](Wa("0x57")),new e.CKEditorError(Wa("0x57"),this)}[Wa("0x40")](t,n){const o=t.getFirstRange();if(n[Wa("0xc")](o))t[Wa("0x106")]();else if(o.containsRange(n)){const s=this[Wa("0xe1")][Wa("0xeb")](n.start[Wa("0x51")],"end");this[Wa("0x4c")](t,this._model[Wa("0xfb")](o[Wa("0x6")],s));const r=(0,e.uid)(),i=t[Wa("0x12")].id,x=t[Wa("0x38")]+":"+t[Wa("0xe8")];this[Wa("0x61")]({id:r,type:x,createdAt:new Date,authorId:i,data:t[Wa("0x9")],attributes:t[Wa("0x112")]});const a=this[Wa("0xe1")].createPositionAt(n.end[Wa("0xdb")],"after"),c=this[Wa("0xe1")].createRange(a,o[Wa("0xb0")]);this[Wa("0x2d")](x,r,i,c)}else if(o[Wa("0x50")](n[Wa("0x6")])){const e=this._model[Wa("0xeb")](n[Wa("0x6")][Wa("0x51")],Wa("0xb0"));this[Wa("0x4c")](t,this[Wa("0xe1")][Wa("0xfb")](o[Wa("0x6")],e))}else{const e=this[Wa("0xe1")][Wa("0xeb")](n[Wa("0xb0")][Wa("0xdb")],"after");this[Wa("0x4c")](t,this[Wa("0xe1")][Wa("0xfb")](e,o[Wa("0xb0")]))}}_rangeIsInLocalUserInsertion(t){for(const{suggestion:e,meta:n}of this[Wa("0x117")](t,Wa("0x111"))){if(!n[Wa("0x7e")])continue;const o=e[Wa("0x5b")]();for(const e of o)if(!t.getDifference(e)[Wa("0x91")])return!0}return!1}[Wa("0xde")](t){const n=this[Wa("0x133")][Wa("0x95")][Wa("0xe9")]("Users")[Wa("0x84")](t);if(!n)throw new e.CKEditorError(Wa("0x2b"),this);return n}[Wa("0x45")](t){const e=this[Wa("0x133")][Wa("0x95")][Wa("0xe9")](Wa("0xb7")),n=(0,r.hashObject)(Wa("0xe4")+t);return e[Wa("0x84")](n)||e.addUser({id:n,name:t})}[Wa("0xbe")](t,e,n,o,s){const r=this._getAuthorFromId(o),i=this[Wa("0x118")].buildSuggestion(t,e,n,r,s,(t=>this[Wa("0x25")](n,{attributes:t})));return this[Wa("0x132")](i,Wa("0x86"),(()=>{this[Wa("0x25")](n,{state:Wa("0x8d")})}),{priority:"high"}),this[Wa("0x132")](i,Wa("0x5"),(()=>{this[Wa("0x25")](n,{state:Wa("0xef")})}),{priority:"high"}),this[Wa("0x12d")][Wa("0x69")](n,i),this[Wa("0x43")][Wa("0x69")](i,Wa("0xfc")),i}_splitMarkerName(t){const e=t[Wa("0x16")](":");return{group:e[0],type:e[1],subType:e[Wa("0x91")]>=5?e[2]:null,id:e[Wa("0x91")]<5?e[2]:e[3],authorId:e[Wa("0x91")]<5?e[3]:e[4],markerCount:6==e[Wa("0x91")]?e[5]:null}}[Wa("0x129")](t,n,o){const s=t[Wa("0xae")](),r=s.start,i=s.end;this._setSuggestionRange(t,this._model[Wa("0xfb")](r,n));const x=(0,e.uid)(),a=t[Wa("0x12")].id,c=t[Wa("0x38")]+(t[Wa("0xe8")]?":"+t[Wa("0xe8")]:"");this[Wa("0x61")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[Wa("0x112")],data:t.data}),Wa("0x124")==t[Wa("0x38")]&&(o=this[Wa("0xe1")][Wa("0x12e")](o[Wa("0xdb")])),this[Wa("0x2d")](c,x,a,this._model.createRange(o,i))}[Wa("0x117")](t,e=null){const n=[],o=this[Wa("0xe1")][Wa("0x98")],s=this[Wa("0x133")].plugins.get(Wa("0xb7")).me;for(const r of this[Wa("0x94")]())if(r[Wa("0x63")]&&(!e||r.type==e))for(const e of r.getRanges()){const i=t[Wa("0x6")].isEqual(e.end)||t.end[Wa("0xc")](e.start);if(i||t[Wa("0x68")](e)){const x=t[Wa("0x75")](e)&&Ka(o,e[Wa("0x6")],t),a=e[Wa("0x75")](t)&&Ka(o,t[Wa("0x6")],e);n[Wa("0x12f")]({suggestion:r,meta:{isOwn:s==r[Wa("0xf1")],isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}_addSuggestionMarker(t,e,n,o,s){this._model[Wa("0x71")]((r=>{let i=Wa("0x83")+t+":"+e+":"+n;s&&(i=i+":"+s),r.addMarker(i,{range:o,usingOperation:!0,affectsData:!0})}))}[Wa("0xd5")](t){const e=t[Wa("0x15")],n=t[Wa("0xed")];t[Wa("0x15")]=null,null!=e&&(e[Wa("0xed")]=null),t[Wa("0xed")]=null,null!=n&&(n[Wa("0x15")]=null),Wa("0x8")==this[Wa("0x43")][Wa("0xe9")](t)&&(this[Wa("0x43")][Wa("0x69")](t,Wa("0x77")),this[Wa("0xd0")](Wa("0x97"),t,e,n))}_setSuggestionData(t){const n=t.id,o=this[Wa("0xe")](t);if(this[Wa("0xc6")]&&this[Wa("0xc6")].addSuggestion){const s=this[Wa("0x133")].plugins[Wa("0xe9")](Wa("0xf6")),r=o[Wa("0xb")],i=o[Wa("0xe8")]?o[Wa("0x38")]+":"+o[Wa("0xe8")]:o[Wa("0x38")],x=this.editor.locale,a=s[Wa("0xc5")](Yo(x,Wa("0x67"))),c={id:n,type:i,hasComments:r,data:t[Wa("0x9")]||null,originalSuggestionId:t[Wa("0x9b")]||null,attributes:o.attributes};this._adapter[Wa("0xa8")](c).then((t=>{o[Wa("0x12b")]=!0,s[Wa("0x115")](a),t&&t[Wa("0xf0")]&&(this._suggestions[Wa("0xe9")](n).createdAt=t[Wa("0xf0")])})).catch((t=>{throw(0,e.logWarning)(Wa("0x6c")),this[Wa("0x133")][Wa("0x121")][Wa("0xc9")]({isUndoable:!1},(()=>{o[Wa("0x5")]()})),o[Wa("0x109")](),this._suggestions[Wa("0x99")](o.id),this[Wa("0x43")][Wa("0x99")](o),t}))}return o}[Wa("0x25")](t,e){const n=this.editor[Wa("0x95")][Wa("0xe9")](Wa("0xf6")),o=this.getSuggestion(t);if(this[Wa("0xc6")]&&this[Wa("0xc6")][Wa("0xc0")])if(o[Wa("0x12b")]){const o=n[Wa("0xc5")](Yo(this[Wa("0x133")].locale,"PENDING_ACTION_SUGGESTION"));this[Wa("0xc6")].updateSuggestion(t,e)[Wa("0x5c")]((()=>{n.remove(o)}))}else o.on(Wa("0x26"),(()=>{this[Wa("0x25")](t,e)}))}_getSuggestionData(t){if(!this._adapter||!this[Wa("0xc6")][Wa("0xdf")])throw new e.CKEditorError(Wa("0xbf"),this);return this[Wa("0xc6")][Wa("0xdf")](t)}[Wa("0xd6")](t){const{id:e,type:n,subType:o,authorId:s}=this[Wa("0xa2")](t),r=this._suggestions[Wa("0xe9")](e)||this[Wa("0xbe")](n,o,e,s,{});switch(this[Wa("0x120")](r,n,o,s),this[Wa("0x43")].get(r)){case Wa("0xfc"):this[Wa("0x11e")](e).then((t=>{let n=Promise.resolve();t[Wa("0xb")]&&(n=this[Wa("0xa9")][Wa("0x3b")]({channelId:this[Wa("0x133")].config[Wa("0xe9")](Wa("0x90")),threadId:e})),n[Wa("0x5c")]((()=>{this[Wa("0xe")](t)[Wa("0x12b")]=!0}))})),this[Wa("0x43")][Wa("0x69")](r,"markerReady");break;case Wa("0x77"):this._updateSuggestionData(e,{state:Wa("0x52")});case Wa("0x11c"):this[Wa("0x43")][Wa("0x69")](r,Wa("0x8")),this[Wa("0xd0")]("suggestionLoaded",r);break;case Wa("0x8"):this[Wa("0xd0")](Wa("0x1"),r)}return r[Wa("0x42")](t),r}[Wa("0xea")](t){const e=Array[Wa("0x136")](t)[Wa("0x6d")]((t=>!t[Wa("0xd4")])),n=this.getSuggestions({skipNotAttached:!0})[Wa("0x6d")]((t=>!t[Wa("0xd4")])),o=n.filter((e=>!t[Wa("0x46")](e))),s=new Map(n[Wa("0xec")]((t=>[t,this._suggestionFactory[Wa("0xce")](t[Wa("0x38")],t[Wa("0xe8")],Wa("0x10d"))]))),r=new Map(n[Wa("0xec")]((t=>[t,t.getFirstRange()]))),i=new Set,x=new Set;for(let t=0;t<e[Wa("0x91")];t++)a(e[t],e,t+1);for(let t=0;t<e[Wa("0x91")];t++)a(e[t],o,0);for(let t=0;t<e.length;t++){const n=e[t];!x[Wa("0x46")](n)&&n[Wa("0x15")]&&(n[Wa("0x15")].next===n&&(n[Wa("0x15")][Wa("0xed")]=null),n[Wa("0x15")]=null),!i[Wa("0x46")](n)&&n.next&&(n[Wa("0xed")].previous===n&&(n[Wa("0xed")].previous=null),n[Wa("0xed")]=null)}function a(t,e,n){for(let o=n;o<e.length;o++){const n=c(t,e[o]);n&&(n[0].next=n[1],n[1].previous=n[0],i[Wa("0xc5")](n[0]),x[Wa("0xc5")](n[1]))}}function c(t,e){if(t[Wa("0xf1")].id!==e[Wa("0xf1")].id)return null;const n=s[Wa("0xe9")](t)(t,e,r.get(t),r.get(e));return n&&s.get(e)(t,e,r.get(t),r[Wa("0xe9")](e))?n[1][Wa("0x103")]&&n[1][Wa("0x103")][Wa("0x91")]?null:n:null}}_joinWithAdjacentSuggestions(t){const e=Array.from(t),n=this.getSuggestions({skipNotAttached:!0}),o=n[Wa("0x6d")]((e=>!t[Wa("0x46")](e))),s=new Map(e.map((t=>[t,this._suggestionFactory.getSuggestionCallback(t[Wa("0x38")],t[Wa("0xe8")],Wa("0x2f"))]))),r=new Map(n[Wa("0xec")]((t=>[t,t.getRanges()])));for(let t=0;t<e.length;t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[Wa("0x91")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n.length;i++){const o=n[i];if(o[Wa("0x38")]!==e[Wa("0x38")]||o[Wa("0xf1")].id!==e[Wa("0xf1")].id||o[Wa("0xe8")]!==e[Wa("0xe8")])continue;const x=s[Wa("0xe9")](e),a=r.get(e),c=r[Wa("0xe9")](o),l=e[Wa("0x103")]&&e[Wa("0x103")][Wa("0x91")],u=o.commentThread&&o[Wa("0x103")][Wa("0x91")];if(!l&&x(c,a))return t[Wa("0x107")](o,e),r[Wa("0x99")](e),!0;if(!u&&x(a,c))return t[Wa("0x107")](e,o),r[Wa("0x99")](o),!0}return!1}}[Wa("0x107")](t,e){if(t[Wa("0xd4")])for(const n of e[Wa("0x5b")]())t[Wa("0x119")](n);else{const n=e.getFirstRange().end;this[Wa("0x4c")](t,this[Wa("0xe1")].createRange(t.getFirstRange()[Wa("0x6")],n))}e.removeMarkers()}}class Va{constructor(t){this[Wa("0x127")]=t,this[Wa("0xe1")]=t[Wa("0x121")],this._customCallbacks=new Map,this[Wa("0x4f")]=new Map,this[Wa("0x19")]()}[Wa("0xb4")](t,e,n,o,s,r){return new Zo(this[Wa("0xe1")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this.getSuggestionCallback(t,e,"accept")(...n),onDiscard:(...n)=>this.getSuggestionCallback(t,e,Wa("0x5"))(...n)})}registerCustomCallback(t,e,n,o){const s=t+":"+e+":"+n;this[Wa("0x100")].set(s,o)}getSuggestionCallback(t,e,n){const o=t+":"+e+":"+n;return this[Wa("0x100")][Wa("0xe9")](o)||this[Wa("0x4f")].get(t+":"+n)}[Wa("0x19")](){const t=()=>{},e=t=>{t[Wa("0xe7")](((t,e)=>t[Wa("0x6")][Wa("0xd9")](e[Wa("0x6")])?1:-1)),this[Wa("0xe1")][Wa("0x71")]((e=>{for(const n of t){let t;t=n[Wa("0xb0")][Wa("0x81")]&&n.end[Wa("0xdb")]==n[Wa("0x6")].nodeAfter?e[Wa("0xc2")](n[Wa("0x6")].nodeAfter,"on"):e[Wa("0xc2")](n),this[Wa("0xe1")][Wa("0xa7")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[Wa("0xe1")][Wa("0x71")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[Wa("0xec")]((t=>(qa(t)&&(t=this[Wa("0xe1")][Wa("0xfb")](t.end)),t)))[Wa("0x6d")]((t=>Wa("0x114")!==t.root.rootName));if(r.length<1)return;const x=Array[Wa("0x136")](this[Wa("0xe1")][Wa("0xbd")][Wa("0x116")][Wa("0x5b")]())[Wa("0xec")]((t=>i.LiveRange[Wa("0x22")](t)));n[Wa("0xcf")](r);for(const t of this[Wa("0x127")][Wa("0x6a")][Wa("0x6a")]())t[Wa("0x7")]();s.push({forceDefaultExecution:!0}),this._editor.execute(o,...s);const a=x.filter((t=>"$graveyard"!=t.root[Wa("0x5d")]));a[Wa("0x91")]>0&&n[Wa("0xcf")](a);for(const t of x)t.detach()}))},o=(t,e)=>1==t[Wa("0x91")]&&1==e[Wa("0x91")]&&t[0].end[Wa("0xc")](e[0][Wa("0x6")]),s=(t,e,n,o)=>Za(t,e,n,o,this[Wa("0xe1")])?[t,e]:Za(e,t,o,n,this._model)?[e,t]:null;this[Wa("0x4f")][Wa("0x69")](Wa("0x1c"),t),this[Wa("0x4f")][Wa("0x69")](Wa("0x3"),e),this[Wa("0x4f")][Wa("0x69")]("insertion:join",o),this[Wa("0x4f")][Wa("0x69")](Wa("0x21"),s),this._defaultCallbacks.set(Wa("0xa4"),e),this[Wa("0x4f")][Wa("0x69")](Wa("0x2e"),t),this._defaultCallbacks[Wa("0x69")](Wa("0xff"),o),this[Wa("0x4f")][Wa("0x69")]("deletion:chain",s),this[Wa("0x4f")][Wa("0x69")](Wa("0xf2"),n),this[Wa("0x4f")][Wa("0x69")](Wa("0x4d"),t),this[Wa("0x4f")][Wa("0x69")](Wa("0x5f"),o),this[Wa("0x4f")][Wa("0x69")](Wa("0xdd"),t),this[Wa("0x4f")][Wa("0x69")]("formatBlock:accept",n),this[Wa("0x4f")].set(Wa("0x44"),t),this[Wa("0x4f")].set("formatBlock:join",o),this._defaultCallbacks[Wa("0x69")]("formatBlock:chain",t)}}function Ka(t,e,n){for(const o of e.parent[Wa("0x82")]({includeSelf:!0,parentFirst:!0})){if(o[Wa("0xcb")]==o)return!1;if(!n[Wa("0x88")](o))return!1;if(t[Wa("0x56")](o)||t[Wa("0x3c")](o))return!0}return!1}function qa(t){return t[Wa("0xb0")][Wa("0xdb")]==t[Wa("0x6")][Wa("0x30")]&&t[Wa("0xb0")][Wa("0x74")]}function Xa(t,e,n,o){const s=t=>!t[Wa("0xcc")].is("$textProxy")&&!o[Wa("0x56")](t[Wa("0xcc")]),r=t[Wa("0x6")].getLastMatchingPosition(s),i=t[Wa("0xb0")].getLastMatchingPosition(s,{direction:Wa("0x126")});return!(t[Wa("0x6")][Wa("0xc")](r)&&t.end[Wa("0xc")](i)||(r[Wa("0xd9")](i)?n[Wa("0x10a")](e,{range:n[Wa("0xfb")](r,i)}):n[Wa("0xd8")](e),0))}function $a(t){return(0,r.hashObject)(t)}function Ja(t){const e=t.start[Wa("0x30")];return e&&e.is(Wa("0x20"))}function Qa(t,e){const n=e.schema.isObject(t)||e[Wa("0x98")].isSelectable(t);return e[Wa("0xfb")](e.createPositionAt(t,Wa("0x34")),n?e[Wa("0xab")](t):e[Wa("0xeb")](t,Wa("0xb0")))}function Za(t,e,n,o,s){if(n[Wa("0xb0")][Wa("0xc")](o.start))return!0;if(t.type!=e[Wa("0x38")])return!1;if(!n.end[Wa("0x92")](o[Wa("0x6")]))return!1;const r=s.createRange(n[Wa("0xb0")],o[Wa("0x6")])[Wa("0x87")]();for(const t of r)if(["elementStart",Wa("0x80")].includes(t[Wa("0x38")])&&s[Wa("0x98")][Wa("0x3c")](t[Wa("0xcc")]))return!1;return!0}const Ya=["unbind","destroy","acceptSuggestion","view","add","isDirty","_removePendingAction","model","getRanges","canAccept","stopListening","commands","get","listenTo","_setPendingAction","isEnabled","bind","canEditAt","discardSuggestion","remove","plugins","_pendingAction","_acceptCommand","_editor","canDiscard","change:isDirty","commentThreadController","PendingActions","_discardCommand"];var tc,ec;tc=Ya,ec=260,function(t){for(;--t;)tc.push(tc.shift())}(++ec);const nc=function(t,e){return Ya[t-=0]};class oc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[nc("0x8")]=e,this[nc("0x4")]=n,this[nc("0x1b")]=o,this._editor=t,this[nc("0x17")]=t.commands.get(nc("0x3")),this[nc("0x0")]=t[nc("0xc")][nc("0xd")]("discardSuggestion"),this.view[nc("0x11")]("isEnabled").to(this._acceptCommand,this[nc("0x0")],((t,e)=>t||e)),this[nc("0x4")][nc("0x11")]("canAccept").to(this[nc("0x17")],nc("0x10"),(t=>t&&this._editor.model[nc("0x12")](e[nc("0x9")]()))),this.view.bind(nc("0x19")).to(this[nc("0x0")],nc("0x10"),(t=>t&&this[nc("0x18")][nc("0x8")][nc("0x12")](e[nc("0x9")]()))),this[nc("0x16")]=null,n[nc("0x6")]&&this[nc("0xf")](),this[nc("0xe")](n,"acceptSuggestion",(()=>this.acceptSuggestion())),this[nc("0xe")](n,nc("0x13"),(()=>this[nc("0x13")]())),this[nc("0xe")](n,nc("0x1a"),(()=>{n.isDirty?this._setPendingAction():this._removePendingAction()}))}acceptSuggestion(){this[nc("0x17")].execute(this[nc("0x8")].id)}[nc("0x13")](){this[nc("0x0")].execute(this[nc("0x8")].id)}[nc("0x2")](){this[nc("0x4")][nc("0x1")](nc("0x10")),this[nc("0x4")][nc("0x1")](nc("0xa")),this[nc("0x4")][nc("0x1")](nc("0x19")),this[nc("0xb")](),this[nc("0x1b")][nc("0x2")](),this[nc("0x16")]&&this[nc("0x7")]()}[nc("0xf")](){const t=Yo(this._editor.locale,"PENDING_ACTION_SUGGESTION");this[nc("0x16")]=this._editor[nc("0x15")][nc("0xd")]("PendingActions")[nc("0x5")](t)}[nc("0x7")](){null!==this[nc("0x16")]&&this[nc("0x18")][nc("0x15")][nc("0xd")](nc("0x1c"))[nc("0x14")](this[nc("0x16")]),this._pendingAction=null}}const sc=["commentsListView","bind","commentThreadInputView","authoredAt","commentThread","isEnabled","value","assign","length","hasDirtyComment","descriptionParts","element","isActive","isDirty","submit","showInput","editor","CommentView","fire","_createCommentViews","set","_localUser","focus","_createCommentThreadInputView","commentInputView","locale","_config","_model","cancel","removeComment","delegate","setData","destroy","canDiscard"];var rc,ic;rc=sc,ic=249,function(t){for(;--t;)rc.push(rc.shift())}(++ic);const xc=function(t,e){return sc[t-=0]};class ac extends s.View{constructor(t,e,n,o){super(t),this.commentsListView=null,this[xc("0x19")]=null,this[xc("0x9")](xc("0x1"),!1),this[xc("0x9")](xc("0x1a"),e[xc("0x1a")]),this[xc("0x18")](xc("0x1a")).to(e),this[xc("0x9")](xc("0x21"),[]),this.set(xc("0x2"),!1),this.set(xc("0x1c"),!1),this[xc("0x9")]("canAccept",!1),this[xc("0x9")](xc("0x16"),!1),this._model=e,this[xc("0xa")]=n,this[xc("0xf")]=o,o.disableComments?this[xc("0x9")](xc("0x1f"),1):this[xc("0x8")]()}focus(){this[xc("0x0")][xc("0xb")]()}[xc("0x15")](){this[xc("0x17")]&&this[xc("0x17")][xc("0x15")](),this[xc("0x19")]&&this[xc("0x19")][xc("0x15")](),super.destroy()}[xc("0x8")](){const{CommentsListView:t}=this._config;this[xc("0x17")]=new t(this[xc("0xe")],this[xc("0x10")].commentThread,Object[xc("0x1e")]({CommentView:this[xc("0xf")][xc("0x6")]},this[xc("0xf")])),this[xc("0x17")][xc("0x13")](xc("0x12")).to(this),this[xc("0x17")][xc("0x13")]("updateComment").to(this),this[xc("0x17")][xc("0x18")](xc("0x1")).to(this),this[xc("0x9")](xc("0x1f"),this[xc("0x17")][xc("0x1f")]+1),this[xc("0x18")](xc("0x1f")).to(this[xc("0x17")],"length",(t=>t+1)),this.commentThreadInputView=this[xc("0xc")](),this.on("removeComment",(()=>this[xc("0xb")]())),this[xc("0x18")](xc("0x2")).to(this[xc("0x17")],xc("0x20"),this.commentThreadInputView.commentInputView,"value",((t,e)=>t||!!e))}[xc("0xc")](){const{CommentThreadInputView:t}=this[xc("0xf")],e=new t(this[xc("0xe")],this._localUser,this[xc("0xf")].editorConfig),n=e[xc("0xd")];return e[xc("0x18")](xc("0x4")).to(this,"isActive",this[xc("0x10")][xc("0x1b")],"isReadOnly",n,xc("0x1d"),((t,e,n)=>!!n||t&&!e)),n.on(xc("0x3"),((t,e)=>{this[xc("0x7")]("addComment",e),n[xc("0x5")][xc("0x14")]("")})),n.on(xc("0x11"),(()=>this.focus())),n.bind("disabledSubmit").to(this._model.commentThread,"isReadOnly"),e}}const cc=["discardButton","ck-suggestion__info-name","innerHTML","content","ck-annotation__content-wrapper","EXTERNAL_AVATAR","EXTERNAL_IMPORT_WORD_AVATAR","disableComments","span","type","EXTERNAL_IMPORT_WORD_SUGGESTION","extendTemplate","commentThreadInputView","ck-annotation__info-time","ck-comment__info-time","isExternal","_createButton","acceptButton","ck-annotation","ck-suggestion__main","ck-suggestion--disabled-comments","ck-annotation__main","formatDateTime","_model","check","creator","getUserViewNotificationText","push","bind","commentsListView","split","ck-annotation__info-name","innerText","author","_config","isEnabled","ck-suggestion__info",'" title="',"set","name","ck-suggestion__actions","userView","authoredAt","source","div","cancel","execute","ck-suggestion--discard","commentThread","description","ck-suggestion--accept","ck-annotation__user","<p>",'<span class="ck-suggestion-color" style="background-color: ',"attributes","element","ck-annotation__actions","render","getExternalSuggestionNote","isActive","EXTERNAL_SUGGESTION","@external","acceptSuggestion","getTemplate","setTemplate","discardSuggestion","</p>","ck-suggestion","_descriptionElement","ck-suggestion-wrapper--active","locale","join","ck-suggestion-","ck-suggestion__user"];var lc,uc;lc=cc,uc=147,function(t){for(;--t;)lc.push(lc.shift())}(++uc);const dc=function(t,e){return cc[t-=0]};class gc extends ac{constructor(e,n,o,s){super(e,n,o,s),this[dc("0x27")]("type",""),this[dc("0x1d")](dc("0xa")).to(this,"descriptionParts",(t=>t&&t[0]?t[0][dc("0xa")]:"")),this.bind(dc("0x32")).to(this,"descriptionParts",this,"isActive",((t,e)=>{let n="";for(const e of t)n+=dc("0x35")+mc(e[dc("0x4")],e.color)+dc("0x43");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[dc("0x45")]=null,this[dc("0x12")]=this._createButton(Yo(e,"Accept suggestion"),t.icons[dc("0x19")],dc("0x33"),dc("0x3f"),"sw"),this[dc("0x12")][dc("0x1d")](dc("0x24")).to(this,"canAccept"),this.discardButton=this[dc("0x11")](Yo(e,"Discard suggestion"),t.icons[dc("0x2e")],dc("0x30"),dc("0x42"),"sw"),this[dc("0x1")].bind(dc("0x24")).to(this,"canDiscard"),this[dc("0x2a")]=new r.UserView(e,this[dc("0x18")][dc("0x22")],this[dc("0x1b")]()),this.userView[dc("0xc")]({attributes:{class:[dc("0x0"),dc("0x34")]}}),this[dc("0x41")](this[dc("0x40")]())}[dc("0x40")](){const t=this.bindTemplate,e=[{tag:dc("0x2d"),attributes:{class:[dc("0x25"),"ck-annotation__info"]},children:[{tag:dc("0x9"),children:[{text:this.userView[dc("0x28")]}],attributes:{class:[dc("0x2"),dc("0x20")]}},{tag:"time",attributes:{datetime:t.to(dc("0x2b")),class:[dc("0xf"),dc("0xe")]},children:[{text:t.to(dc("0x2b"),(t=>this[dc("0x23")][dc("0x17")](t)))}]}]},{tag:dc("0x2d"),attributes:{class:[dc("0x29"),dc("0x39")]},children:[this[dc("0x12")],this.discardButton]},{tag:"div",attributes:{class:[dc("0x5")]}}];this[dc("0x18")][dc("0x10")]&&e.push({tag:dc("0x2d"),attributes:{class:["ck-comment__external"]},children:[{text:this.getExternalSuggestionNote()}]});const n={tag:"div",attributes:{class:["ck-suggestion-wrapper",t.if(dc("0x3c"),dc("0x46")),t.to(dc("0xa"),(t=>dc("0x49")+t)),this[dc("0x23")][dc("0x8")]&&dc("0x15")],"data-suggestion-id":this._model.id,"data-thread-id":this[dc("0x18")][dc("0x31")].id,"data-author-id":this._model[dc("0x22")].id,tabindex:-1},children:[{tag:dc("0x2d"),attributes:{class:[dc("0x44"),dc("0x13")]},children:[this.userView,{tag:dc("0x2d"),attributes:{class:[dc("0x14"),dc("0x16")]},children:e}]}]};return this[dc("0x1e")]&&this.commentThreadInputView&&n.children[dc("0x1c")](this[dc("0x1e")],this[dc("0xd")]),n}[dc("0x3a")](){super.render(),this._descriptionElement=this[dc("0x38")].querySelector(".ck-annotation__content-wrapper"),this[dc("0x45")][dc("0x3")]=this[dc("0x32")],this.on("change:description",((t,e,n)=>{this[dc("0x45")].innerHTML=n}))}_createButton(t,e,n,o,r){const i=new s.ButtonView(this[dc("0x47")]);return i[dc("0x27")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[dc("0xc")]({attributes:{class:n}}),i.on(dc("0x2f"),(()=>{this.fire(o,this[dc("0x18")].id)})),i}[dc("0x3b")](){return"importWord"===this._model[dc("0x37")][dc("0x3e")][dc("0x2c")]?Yo(this[dc("0x47")],dc("0xb")):Yo(this[dc("0x47")],dc("0x3d"))}getUserViewNotificationText(){return this[dc("0x18")][dc("0x10")]?"importWord"===this[dc("0x18")][dc("0x37")][dc("0x3e")][dc("0x2c")]?Yo(this.locale,dc("0x7"),this[dc("0x18")][dc("0x1a")][dc("0x28")]):Yo(this.locale,dc("0x6"),this[dc("0x18")][dc("0x1a")][dc("0x28")]):null}}function mc(t,e){let n="";return n+=t[dc("0x1f")]("*").map(((t,e)=>e%2!=0?'<span class="ck-suggestion-type">'+fc(t)+"</span>":fc(t)))[dc("0x48")](""),e&&(n+=dc("0x36")+e.value+dc("0x26")+e.title+'"></span>'),n}function fc(t){const e=document.createElement(dc("0x9"));return e[dc("0x21")]=t,e[dc("0x3")]}const hc=["Discard all selected suggestions","locale","commandName","isInContent","config","push","view","mainView","getAllAdjacentSuggestions","length","commentThread","acceptAllSuggestions","TrackChangesUI","getByInnerView","listenTo","suggestion-","registerAnnotation","isDirty","change:previous","getMarkers","_annotationViews","previous","_createUIButton","Discard all suggestions","_destroyController","set","getDescriptions","bind","arrowView","toMany","createAnnotationView","button","separator","filter","CommentsUI","keys","CommentsRepository","head","size","requires","reduce","isEnabled","comments.maxThreadTotalWeight","commands","descriptionParts","stopListening","trackChanges.disableComments","acceptButton","execute","discardSelectedSuggestions","_updateController","_initializeController","createAnnotation","isMultiRange","EditorAnnotations","activeAnnotations","values","actionView","value","_suggestionToController","acceptSelectedSuggestions","unbind","buttonView","getJoined","model","innerView","Accept all suggestions","source","_handleSuggestionControllerDelayed","change:activeAnnotations","hasSuggestion","map","editor","_descriptionFactory","from","init","add","get","Accept all selected suggestions","trackChanges","addComment","isOn","remove","define","_viewToController","addSourceCollector","clear","TrackChangesEditing","suggestionChanged","Annotations","destroy","focus","type","pluginName","delete","plugins","has","discardButton","discardAllSuggestions","componentFactory","editing","_handleControllerBuffer"];var pc,bc;pc=hc,bc=160,function(t){for(;--t;)pc.push(pc.shift())}(++bc);const Ec=function(t,e){return hc[t-=0]};class _c extends t.Plugin{static get[Ec("0x53")](){return[za,r.Users,Ec("0x50"),Ec("0x1f"),Ec("0x62")]}static get[Ec("0x23")](){return Ec("0x38")}constructor(t){super(t),this[Ec("0x1")]=new Map,this[Ec("0x1a")]=new Map,this[Ec("0x40")]=new Map,this[Ec("0x2b")]=new Map;const e=this[Ec("0xe")][Ec("0x30")];e[Ec("0x19")]("trackChanges.SuggestionThreadView",gc),e[Ec("0x19")](Ec("0x5a"),!1),this._disableComments=e.get(Ec("0x5a"))}[Ec("0xa")](t,e){0===this[Ec("0x2b")][Ec("0x52")]&&setTimeout((()=>{for(const[t,e]of this[Ec("0x2b")]){const n=this[Ec("0x1")][Ec("0x26")](t);n||e?n&&e&&this[Ec("0x44")](t):this._initializeController(t)}this[Ec("0xe")].plugins[Ec("0x13")](Ec("0x62")).refreshSelectedViews(),this._refreshActiveMarkers(),this[Ec("0x2b")][Ec("0x1c")]()}),10),this._handleControllerBuffer[Ec("0x45")](t,e)}[Ec("0x11")](){const t=this[Ec("0xe")],e=t.plugins.get(Ec("0x1d")),n=t[Ec("0x25")].get(Ec("0x1f")),o=t[Ec("0x25")][Ec("0x13")]("EditorAnnotations"),s=t.plugins.get("CommentsRepository");t.ui[Ec("0x29")][Ec("0x12")]("trackChanges",(t=>this[Ec("0x42")](t))),o[Ec("0x1b")]((()=>{const t=[];for(const[e,n]of Array[Ec("0x10")](this[Ec("0x1")])){const o=e.getAllAdjacentSuggestions(),s=[];for(const t of o){if(!t.isInContent)continue;if(t[Ec("0x61")]){s.push(...t.getRanges());continue}const e=t.getFirstRange();if(s[Ec("0x35")]>0){const t=s[0][Ec("0x5")](e);if(t){s[0]=t;continue}}s.push(e)}t[Ec("0x31")]([n[Ec("0x32")],s])}return t})),this[Ec("0x3a")](e,"suggestionLoaded",((t,e)=>{this[Ec("0x3a")](e,Ec("0x3e"),((t,n,o,s)=>{e.isInContent&&(null==o?(this[Ec("0x5e")](s.head),this[Ec("0xa")](e,!1)):(this[Ec("0x5e")](o.head),this[Ec("0xa")](e,!0)))})),null===e[Ec("0x41")]?this[Ec("0xa")](e,!1):this[Ec("0x5e")](e[Ec("0x51")])})),this[Ec("0x3a")](e,"suggestionUnloaded",((t,e,n)=>{this[Ec("0x59")](e,Ec("0x3e")),this[Ec("0x2b")][Ec("0x24")](e);const o=n?n.head:e,s=this[Ec("0x1")][Ec("0x13")](o);null!==n&&this[Ec("0x5e")](o),null===n&&s&&this._destroyController(e)})),this.listenTo(e,Ec("0x1e"),((t,e)=>{this[Ec("0x5e")](e)})),this[Ec("0x3a")](n,Ec("0xb"),(()=>{this._refreshActiveMarkers()})),this[Ec("0x3a")](s,Ec("0x16"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Ec("0xc")](n))return;const s=e.getSuggestion(n);this._suggestionToController.get(s).view[Ec("0x21")]()}),{priority:"lowest"})}_refreshActiveMarkers(){const t=this[Ec("0xe")].plugins.get(Ec("0x1f")),e=this[Ec("0xe")][Ec("0x25")][Ec("0x13")]("TrackChangesEditing"),n=Array[Ec("0x10")](t[Ec("0x63")],(t=>t[Ec("0x7")]))[Ec("0x4d")]((t=>this._viewToController[Ec("0x26")](t))),o=[];for(const t of n){const e=this[Ec("0x1a")][Ec("0x13")](t)[Ec("0x6")][Ec("0x34")]();o[Ec("0x31")](...e[Ec("0x54")](((t,e)=>[...t,...e.getMarkerNames()]),[]))}e.activeMarkers=o}[Ec("0x42")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this.editor.commands.get(Ec("0x15")),r=Yo(t,"Track changes");n.buttonView[Ec("0x45")]({tooltip:r,label:r,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Ec("0x4")][Ec("0x47")](Ec("0x17")).to(o,Ec("0x0")),n.buttonView.on(Ec("0x5c"),(()=>{o.execute(),this.editor[Ec("0x2a")].view[Ec("0x21")]()}));const i=new e.Collection,x=[{type:"switchbutton",model:{withText:!0,label:r,commandName:Ec("0x15")}},{type:Ec("0x4c")},{type:Ec("0x4b"),model:{withText:!0,label:Yo(t,Ec("0x8")),commandName:Ec("0x37")}},{type:Ec("0x4b"),model:{withText:!0,label:Yo(t,Ec("0x14")),commandName:Ec("0x2")}},{type:Ec("0x4b"),model:{withText:!0,label:Yo(t,Ec("0x43")),commandName:Ec("0x28")}},{type:"button",model:{withText:!0,label:Yo(t,Ec("0x2c")),commandName:Ec("0x5d")}}];for(const t of x){let e={type:"separator"};if(t[Ec("0x6")]){const n=new s.Model(t[Ec("0x6")]),o=this[Ec("0xe")][Ec("0x57")][Ec("0x13")](n.commandName);n[Ec("0x47")](Ec("0x17"),Ec("0x55")).to(o,Ec("0x0"),"isEnabled"),e={type:t[Ec("0x22")],model:n}}i[Ec("0x12")](e)}(0,s.addListToDropdown)(n,i);const a=x[Ec("0x4d")]((t=>null!=t[Ec("0x6")]))[Ec("0xd")]((t=>this[Ec("0xe")][Ec("0x57")][Ec("0x13")](t[Ec("0x6")][Ec("0x2e")]))),c=n[Ec("0x4")];return c[Ec("0x65")][Ec("0x3")]("isEnabled"),c[Ec("0x48")][Ec("0x3")](Ec("0x55")),c[Ec("0x65")].bind(Ec("0x55")).to(o,Ec("0x55")),c[Ec("0x48")][Ec("0x47")](Ec("0x55"))[Ec("0x49")](a,Ec("0x55"),((...t)=>t.some((t=>t)))),n.on("execute",(t=>{this.editor[Ec("0x5c")](t[Ec("0x9")][Ec("0x2e")]),this[Ec("0xe")].editing[Ec("0x32")].focus()})),n}[Ec("0x5f")](t){const e=this[Ec("0xe")],n=e[Ec("0x30")],o=e[Ec("0x25")][Ec("0x13")](Ec("0x1f")),s=e[Ec("0x25")][Ec("0x13")](Ec("0x50")),i=e.plugins.get(Ec("0x62")),x=e[Ec("0x25")][Ec("0x13")](r.Users).me,a=n[Ec("0x13")]("trackChanges").SuggestionThreadView,{CommentsListView:c,CommentThreadInputView:l}=e[Ec("0x25")].get(Ec("0x4e"));let u,d;this._annotationViews[Ec("0x26")](t.id)?(d=this[Ec("0x40")][Ec("0x13")](t.id),u=d.mainView):(u=new a(e[Ec("0x2d")],t,x,{disableComments:this._disableComments,editorConfig:n.get("comments.editorConfig"),maxCommentsWhenCollapsed:n.get("comments.maxCommentsWhenCollapsed"),maxThreadTotalWeight:n[Ec("0x13")](Ec("0x56")),maxCommentCharsWhenCollapsed:n[Ec("0x13")]("comments.maxCommentCharsWhenCollapsed"),formatDateTime:(0,r.getDateTimeFormatter)(n[Ec("0x13")](Ec("0x2d"))),CommentView:n[Ec("0x13")]("comments").CommentView,CommentsListView:c,CommentThreadInputView:l}),u[Ec("0x5b")].on(Ec("0x5c"),(()=>{e[Ec("0x2a")][Ec("0x32")].focus()})),u[Ec("0x27")].on(Ec("0x5c"),(()=>{e[Ec("0x2a")][Ec("0x32")][Ec("0x21")]()})),d=o[Ec("0x4a")](this.editor[Ec("0x2d")],u),d[Ec("0x47")](Ec("0x3d")).to(u,"isDirty"),d[Ec("0x47")](Ec("0x35")).to(u),d[Ec("0x47")](Ec("0x22")).to(u,Ec("0x22"),(t=>Ec("0x3b")+t)),this[Ec("0x40")][Ec("0x45")](t.id,d));const g=s.createCommentThreadController(t[Ec("0x36")],u),m=new oc(e,t,u,g),f=t[Ec("0x34")]()[Ec("0x4d")]((t=>t[Ec("0x2f")]));u[Ec("0x58")]=e[Ec("0x25")].get(Ec("0x1d"))[Ec("0xf")][Ec("0x46")](f),this._suggestionToController[Ec("0x45")](t,m),this[Ec("0x1a")][Ec("0x45")](u,m);const h=o[Ec("0x60")]({view:d,target:()=>{const n=[],o=t[Ec("0x34")]()[Ec("0x4d")]((t=>t[Ec("0x2f")]));for(const t of o)n[Ec("0x31")](...t[Ec("0x3f")]());return(0,r.getAllMarkersDomElementsSorted)(e[Ec("0x2a")],n)},type:()=>Ec("0x3b")+m[Ec("0x32")].type});o.add(h),i[Ec("0x3c")](h)}[Ec("0x44")](t){const e=this[Ec("0xe")][Ec("0x25")][Ec("0x13")](Ec("0x1f")),n=this[Ec("0x1")].get(t),o=n[Ec("0x32")],s=e[Ec("0x39")](o);s&&e[Ec("0x18")](s),this[Ec("0x1")][Ec("0x24")](t),this[Ec("0x1a")][Ec("0x24")](o),n[Ec("0x20")]()}[Ec("0x5e")](t){if(!t[Ec("0x2f")]||!this[Ec("0x1")][Ec("0x26")](t))return;const e=this.editor[Ec("0x25")][Ec("0x13")](Ec("0x1d")),n=this[Ec("0x1")][Ec("0x13")](t),o=t.getAllAdjacentSuggestions();n[Ec("0x32")][Ec("0x58")]=e[Ec("0xf")][Ec("0x46")](o)}[Ec("0x20")](){for(const t of this[Ec("0x1")][Ec("0x4f")]())this._destroyController(t);for(const t of this[Ec("0x40")][Ec("0x64")]())t[Ec("0x33")].destroy();super[Ec("0x20")]()}}var Tc,yc,Cc=["adapter","Comments","get","getSuggestions","plugins","TrackChanges","addSuggestion","getSuggestion","addSuggestionData","editor"];Tc=Cc,yc=427,function(t){for(;--t;)Tc.push(Tc.shift())}(++yc);var kc=function(t,e){return Cc[t-=0]};class Ac extends t.Plugin{static get requires(){return[za,_c,kc("0x4")]}static get pluginName(){return kc("0x8")}set[kc("0x3")](t){this[kc("0x2")][kc("0x7")][kc("0x5")](za)[kc("0x3")]=t}get adapter(){return this.editor[kc("0x7")][kc("0x5")](za)[kc("0x3")]}[kc("0x9")](t){return this[kc("0x2")][kc("0x7")][kc("0x5")](za)[kc("0x1")](t)}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[kc("0x2")][kc("0x7")].get(za)[kc("0x6")]({skipNotAttached:t,toJSON:e})}[kc("0x0")](t){return this.editor[kc("0x7")][kc("0x5")](za)[kc("0x0")](t)}}const vc=["from","set","concat","requires","trackChangesData","define","every","_adapter","config","get","addUser","push","Users","createDocumentFragment","builtinPlugins","names","context","getDataWithAcceptedSuggestions","appendChild","tokenUrl","includes","cloudServices","TrackChangesDataGetter","TrackChangesEditing","Autosave","data","filter","map","constructor","destroy","toolbar","name","track-changes-data-invalid-editor-creator","document","div","find","DocumentOutline","CommentsRepository","getDataWithDiscardedSuggestions","model","init","getRootNames","function","users","RevisionTracker","TrackChangesData","getUser","editor","plugins","createElement","getSuggestions","result","string","create","Pagination","WebSocketGateway","WordCount","pluginName","reduce","editorCreator","has","initialData","acceptAllSuggestions"];var Rc,Sc;Rc=vc,Sc=292,function(t){for(;--t;)Rc.push(Rc.shift())}(++Sc);const Ic=function(t,e){return vc[t-=0]},Lc=[Ic("0x15"),Ic("0x27"),Ic("0x35")],Nc=[Ic("0xf"),Ic("0x4"),Ic("0x2f"),Ic("0x10"),Ic("0xe"),Ic("0x3b")];class Mc extends t.Plugin{static get requires(){return[za]}static get pluginName(){return Ic("0x5")}[Ic("0x0")](){const t=this.editor;if(t.config[Ic("0x1c")]("trackChangesData.editorCreator",(e=>t[Ic("0x33")][Ic("0xd")]("",e))),Ic("0x2")!=typeof t[Ic("0x1f")][Ic("0x20")]("trackChangesData")[Ic("0x13")])throw new e.CKEditorError(Ic("0x37"))}[Ic("0x28")](t){return Oc(this[Ic("0x7")],!0,t)}[Ic("0x3d")](t){return Oc(this[Ic("0x7")],!1,t)}}class wc extends t.Plugin{static get[Ic("0x11")](){return Ic("0x2d")}constructor(t){super(t),this[Ic("0xb")]="end"}init(){this[Ic("0x7")][Ic("0x8")][Ic("0x20")](Ic("0x3c"))._adapter={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this[Ic("0x7")].plugins[Ic("0x20")]("TrackChangesEditing")[Ic("0x1e")]=null}}async function Oc(t,e,n){const o=function(t){const e={};for(const n of t[Ic("0x1f")][Ic("0x26")]())Lc[Ic("0x2b")](n)||(e[n]=t[Ic("0x1f")][Ic("0x20")](n));e[Ic("0x2c")]&&e[Ic("0x2c")].tokenUrl&&delete e[Ic("0x2c")][Ic("0x2a")];const n=t[Ic("0x33")][Ic("0x25")]||[],o=e.extraPlugins||[];delete e.extraPlugins;const s=t._context.config[Ic("0x20")]("plugins")||[],r=n[Ic("0x19")](e[Ic("0x8")])[Ic("0x19")](o)[Ic("0x19")](s)[Ic("0x32")]((t=>Ic("0xc")==typeof t?n[Ic("0x3a")]((e=>e[Ic("0x11")]==t)):t)),i=Array[Ic("0x17")](new Set(r)),x=new Map;return e[Ic("0x8")]=i[Ic("0x31")]((t=>Fc(t,x))),e[Ic("0x8")][Ic("0x22")](za),e[Ic("0x8")][Ic("0x22")](wc),e}(t),s=document[Ic("0x24")](),r=t.config.get(Ic("0x1b"))[Ic("0x13")],i=await r(o,(()=>function(t){const e=document[Ic("0x9")](Ic("0x39"));return t[Ic("0x29")](e),e}(s)));!function(t,e){const n=t[Ic("0x3e")][Ic("0x38")][Ic("0x1")]()[Ic("0x12")](((e,n)=>(e[n]=t[Ic("0x30")][Ic("0x20")]({rootName:n}),e)),{}),o=t.plugins[Ic("0x20")](Ic("0x23"))[Ic("0x3")][Ic("0x32")]((t=>({id:t.id,name:t.name}))),s=t[Ic("0x8")][Ic("0x20")](Ic("0x2e"))[Ic("0xa")]({skipNotAttached:!0,toJSON:!0}),r=e.plugins[Ic("0x20")](Ic("0x23")),i=e[Ic("0x8")][Ic("0x20")](Ic("0x2e"));for(const t of o)r[Ic("0x6")](t.id)||r[Ic("0x21")](t);r.me||r.useAnonymousUser();for(const t of s)i.addSuggestionData(t);e[Ic("0x30")][Ic("0x18")](n)}(t,i),i.execute(e?Ic("0x16"):"discardAllSuggestions");const x=i[Ic("0x30")][Ic("0x20")](n);return await i[Ic("0x34")](),x}function Fc(t,e){const n=Ic("0x2")==typeof t?t[Ic("0x11")]||t[Ic("0x36")]:t;if(e[Ic("0x14")](n))return e.get(n);if(e[Ic("0x18")](n,!0),n&&Nc[Ic("0x2b")](n))return e[Ic("0x18")](n,!1),!1;if(!t.requires)return e[Ic("0x18")](n,!0),!0;const o=t[Ic("0x1a")][Ic("0x1d")]((t=>Fc(t,e)));return e[Ic("0x18")](n,o),o}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|
|
5
|
+
*/(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var s=e[o];if(void 0!==s)return s.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>ac,TrackChanges:()=>Ac,TrackChangesData:()=>Mc,TrackChangesEditing:()=>Wa});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["clearForceDisabled","value","refresh","TrackChangesCommand","_isEnabledBasedOnSelection","isEnabled","_disableUnsupportedCommands","execute","_enabledCommands","commands","affectsData","editor","_enableCommands","has"];var c,l;c=a,l=417,function(t){for(;--t;)c.push(c.shift())}(++l);const d=function(t,e){return a[t-=0]};class u extends t.Command{constructor(t,e){super(t),this._enabledCommands=e,this.value=!1,this[d("0x5")](),this[d("0x7")]=!1}[d("0x5")](){this[d("0x8")]=!0}[d("0xa")](){this[d("0x4")]=!this.value,this[d("0x4")]?this[d("0x9")]():this[d("0x1")]()}[d("0x9")](){for(const t of this[d("0x0")][d("0xc")].commands())t[d("0xd")]&&!this[d("0xb")][d("0x2")](t)&&t.forceDisabled(d("0x6"))}_enableCommands(){for(const t of this[d("0x0")][d("0xc")][d("0xc")]())t[d("0xd")]&&!this[d("0xb")].has(t)&&t[d("0x3")]("TrackChangesCommand")}}const g=["getRanges","_isEnabledBasedOnSelection","canEditAt","isEnabled","acceptSuggestion","editor","_suggestions","track-changes-accept-suggestion-not-found","refresh","get","model","TrackChangesEditing"];var m,f;m=g,f=342,function(t){for(;--t;)m.push(m.shift())}(++f);const h=function(t,e){return g[t-=0]};class b extends t.Command{constructor(t,e){super(t),this[h("0x0")]=e,this[h("0x2")](),this[h("0x7")]=!1}[h("0x2")](){this[h("0x9")]=!0}execute(t){const n=this[h("0x0")][h("0x3")](t);if(!n)throw new e.CKEditorError(h("0x1"),this);const o=n[h("0x6")]();this[h("0xb")][h("0x4")][h("0x8")](o)&&this[h("0xb")].plugins.get(h("0x5"))[h("0xa")](n)}}const p=["get","execute","discardSuggestion","_isEnabledBasedOnSelection","editor","refresh","_suggestions","model","plugins","getRanges"];var E,_;E=p,_=229,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return p[t-=0]};class C extends t.Command{constructor(t,e){super(t),this._suggestions=e,this[T("0x6")](),this[T("0x4")]=!1}refresh(){this.isEnabled=!0}[T("0x2")](t){const n=this[T("0x7")][T("0x1")](t);if(!n)throw new e.CKEditorError("track-changes-discard-suggestion-not-found",this);const o=n[T("0x0")]();this[T("0x5")][T("0x8")].canEditAt(o)&&this[T("0x5")][T("0x9")].get("TrackChangesEditing")[T("0x3")](n)}}const y=["next","type","map","isMultiRange","length","push","createPositionAfter","getRanges","schema","from","isCollapsed","end","add","isTouching","splice","isObject","deletion","getRange","isInContent","join","color","content","value","sort"];var k,A;k=y,A=154,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0xd")](((t,e)=>v("0x6")==t[v("0xf")]&&v("0x6")!=e[v("0xf")]?-1:v("0x6")!=t[v("0xf")]&&v("0x6")==e[v("0xf")]?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0x16")];for(;o<t.length;){const i=t[o],x=t[o+1];n||(n=e.createPositionBefore(i)),I(e,i,x)||(s[v("0x13")](e.createRange(n,r[v("0x5")](i)?e[v("0x14")](i):e.createPositionAt(i,v("0x1")))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0x14")](e),s=t.createPositionBefore(n);return o.isTouching(s)}function L(t,e,n){for(;n[v("0x12")];){const o=n[v("0x4")](0,100);t.change((()=>{for(const t of o)t.isInContent&&e.execute(t.id)}))}}const N=["_suggestions","canEditAt","isEnabled","some","from","_command","getRanges","editor","refresh","values","execute","model","isInContent"];var M,w;M=N,w=449,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0xb")]=e,this[O("0x6")]=n,this[O("0x1")](),this._isEnabledBasedOnSelection=!1}[O("0x1")](){const t=Array[O("0xa")](this[O("0x6")][O("0x2")]())[O("0x9")]((t=>t[O("0x5")]));this.isEnabled=this[O("0xb")][O("0x8")]&&t}[O("0x3")](){const t=R(Array.from(this[O("0x6")][O("0x2")]()));for(const e of t){const t=e[O("0xc")]();if(!this[O("0x0")][O("0x4")][O("0x7")](t))return}L(this[O("0x0")][O("0x4")],this[O("0xb")],t)}}const P=["from","isEnabled","_isEnabledBasedOnSelection","getRanges","size","model","_selectedSuggestions","document","_command","selection","refresh","values","editor","_suggestions","execute"];var D,B;D=P,B=323,function(t){for(;--t;)D.push(D.shift())}(++B);const j=function(t,e){return P[t-=0]};class U extends t.Command{constructor(t,e,n){super(t),this[j("0x0")]=e,this[j("0x5")]=n,this[j("0xd")]=new Set,this[j("0x2")](),this[j("0x9")]=!1}refresh(){const t=this[j("0x4")][j("0xc")][j("0xe")][j("0x1")],e=Array.from(this[j("0x5")][j("0x3")]());this._selectedSuggestions=function(t,e){const n=Array[v("0x17")](t[v("0x15")]()),o=new Set;for(const s of e)if(s[v("0x8")])for(const e of n)for(const n of s.getMarkers()){const r=n[v("0x7")]();(e.isIntersecting(r)||t[v("0x0")]&&!s[v("0x11")]&&s[v("0xe")]&&r[v("0x1")][v("0x3")](e.start))&&o[v("0x2")](s)}return o}(t,e),this[j("0x8")]=this[j("0x0")][j("0x8")]&&!!this._selectedSuggestions[j("0xb")]}[j("0x6")](){const t=R(Array[j("0x7")](this[j("0xd")]));for(const e of t){const t=e[j("0xa")]();if(!this[j("0x4")][j("0xc")].canEditAt(t))return}L(this.editor.model,this[j("0x0")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const z=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var W=Array.prototype.splice;const V=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():W.call(e,n,1),--this.size,!0)};const q=function(t){var e=this.__data__,n=z(e,t);return n<0?void 0:e[n][1]};const K=function(t){return z(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=z(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=q,$.prototype.has=K,$.prototype.set=X;const J=$;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const dt=function(t){return lt.call(t)};var ut=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ut&&ut in Object(t)?ct(t):dt(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var bt,pt=(bt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+bt:"";const Et=function(t){return!!pt&&pt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const It=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=It(t,e);return St(n)?n:void 0};const Nt=Lt(ot,"Map");const Mt=Lt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=wt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Wt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=Wt(this,t).delete(t);return this.size-=e?1:0,e};const qt=function(t){return Wt(this,t).get(t)};const Kt=function(t){return Wt(this,t).has(t)};const Xt=function(t,e){var n=Wt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=qt,$t.prototype.has=Kt,$t.prototype.set=Xt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,de=ce.propertyIsEnumerable;const ue=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!de.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,be=he&&he.exports===fe?ot.Buffer:void 0;const pe=(be?be.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Se=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Ie=Se&&Se.isTypedArray;const Le=Ie?ke(Ie):ye;var Ne=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&ue(t),s=!n&&!o&&pe(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const We=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?Me(t,!0):We(t)};const qe=function(t,e){return t&&re(e,Ve(e),t)};var Ke="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=Ke&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===Ke?ot.Buffer:void 0,Je=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const dn=function(t){return ln(t,Ue,on)};const un=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var bn="[object Map]",pn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=bn||mn&&Rn(mn.resolve())!=pn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return bn;case kn:return pn;case An:return En;case vn:return _n}return e});const Sn=Rn;var In=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&In.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Wn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Vn=Se&&Se.isMap;const qn=Vn?ke(Vn):Wn;const Kn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?ke(Xn):Kn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var d=ge(e);if(d){if(x=Ln(e),!a)return Ze(e,x)}else{var u=Sn(e),g=u==Qn||"[object GeneratorFunction]"==u;if(pe(e))return Qe(e,a);if(u==Zn||u==Jn||g&&!r){if(x=c||g?{}:zn(e),!a)return c?cn(e,qe(x,e)):sn(e,Ge(x,e))}else{if(!Yn[u])return r?e:{};x=Un(e,u,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),$n(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):qn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var f=d?void 0:(l?c?un:dn:c?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const bo=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const po=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=bo(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=po(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var d=-1,u=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++d<x;){var m=t[d],f=e[d];if(o)var h=i?o(f,m,d,e,t,r):o(m,f,d,t,e,r);if(void 0!==h){if(h)continue;u=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){u=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){u=!1;break}}return r.delete(t),r.delete(e),u};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const Mo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=So;case"[object Set]":var a=1&o;if(x||(x=Io),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){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:wo.call(e,l)))return!1}var d=r.get(t),u=r.get(e);if(d&&u)return d==e&&u==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var b=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===b?f===h||s(f,h,n,o,r):b)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var p=t.constructor,E=e.constructor;p==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof p&&p instanceof p&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po:Sn(t),c=x?Po:Sn(e),l=(a=a==Fo?Do:a)==Do,d=(c=c==Fo?Do:c)==Do,u=a==c;if(u&&pe(t)){if(!pe(e))return!1;i=!0,l=!1}if(u&&!l)return r||(r=new Yt),i||Le(t)?Ro(t,e,n,o,s,r):Mo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=d&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!u&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const zo=function(t,e){for(var n=0,o=(e=bo(e,t)).length;null!=t&&n<o;)t=t[po(e[n++])];return n&&n==o?t:void 0};const Wo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Vo=function(t,e){return e.length<2?t:zo(t,Wo(e,0,-1))};const qo=function(t,e){return e=bo(e,t),null==(t=Vo(t,e))||delete t[po(Ho(e))]};const Ko=function(t,e){return null==t||qo(t,e)},Xo=["removeAttribute","accept","discard","nodeBefore","getMarkers","decorate","author","clear","map","onDiscard","isMultiRange","onAttributesChange","length","reduce","creator","getItems","set","removeMarker","getContainedElement","data","getFirstMarker","hasComments","add","start","onAccept","isInContent","head","getRanges","addRange","attributes","getMultiRangeId","getFirstRange","getMarkerNames","isIntersecting","nodeAfter","filter","createdAt","_model","get","next","previous","removeMarkers","from","addMarkerName","authoredAt","getRange","_markerNames","push","end","_onDiscard","_onAccept","type","_saved","commentThread","subType","change","size","toJSON","_onAttributesChange","delete"];var $o,Jo;$o=Xo,Jo=266,function(t){for(;--t;)$o.push($o.shift())}(++Jo);const Qo=function(t,e){return Xo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this.id=e.id,this[Qo("0x19")]=e[Qo("0x19")],this.subType=e[Qo("0x1c")]||null,this.author=e[Qo("0x28")],this.creator=e[Qo("0x30")]||e[Qo("0x28")],this.isExternal=Boolean(e[Qo("0x3")]&&e[Qo("0x3")]["@external"]),this.data=null,this[Qo("0xb")]=t,this[Qo("0x18")]=e[Qo("0x3a")],this[Qo("0x17")]=e[Qo("0x2b")],this[Qo("0x20")]=e[Qo("0x2d")],this[Qo("0x14")]=new Set,this[Qo("0xa")]=null,this.set(Qo("0x12"),null),this[Qo("0x32")]("attributes",e.attributes||{}),this[Qo("0x32")](Qo("0xe"),null),this[Qo("0x32")](Qo("0xd"),null),this[Qo("0x32")]("commentThread",null),this[Qo("0x32")](Qo("0x1a"),!1),this.decorate(Qo("0x23")),this[Qo("0x27")](Qo("0x24"))}get[Qo("0x0")](){let t=this;for(;t[Qo("0xe")];)t=t[Qo("0xe")];return t}get[Qo("0x37")](){return!!this[Qo("0x1b")]&&this[Qo("0x1b")][Qo("0x2e")]>0}get[Qo("0x2c")](){return 0!=this[Qo("0x14")][Qo("0x1e")]&&6==Array[Qo("0x10")](this[Qo("0x14")])[0].split(":").length}get[Qo("0x3b")](){return null!==this.getFirstMarker()}[Qo("0x11")](t){this[Qo("0x14")][Qo("0x38")](t)}[Qo("0x6")](){return Array[Qo("0x10")](this[Qo("0x14")])}[Qo("0x26")](){return this[Qo("0x6")]()[Qo("0x2a")]((t=>this[Qo("0xb")].markers[Qo("0xc")](t)))[Qo("0x9")]((t=>t))}[Qo("0x36")](){return this[Qo("0x26")]()[0]||null}[Qo("0xf")](){this[Qo("0xb")][Qo("0x1d")]((t=>{for(const e of this[Qo("0x26")]())t.removeMarker(e)})),this[Qo("0x14")][Qo("0x29")]()}[Qo("0x33")](t){this._model[Qo("0x1d")]((e=>{e[Qo("0x33")](t)})),this[Qo("0x14")][Qo("0x21")](t)}[Qo("0x2")](t){const e="suggestion:"+this[Qo("0x19")]+":"+this[Qo("0x1c")]+":"+this.id+":"+this[Qo("0x30")].id+":"+Zo[Qo("0x4")]();this[Qo("0x11")](e),this[Qo("0xb")][Qo("0x1d")]((n=>{n.addMarker(e,{range:t,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(t){for(const e of this[Qo("0x1")]())if(e[Qo("0x7")](t))return!0;return!1}getRanges(){return this.getMarkers()[Qo("0x2a")]((t=>t[Qo("0x13")]()))}getItems(){return this.getRanges()[Qo("0x2f")](((t,e)=>[...t,...e[Qo("0x31")]()]),[])}[Qo("0x5")](){var t;return(null===(t=this.getFirstMarker())||void 0===t?void 0:t.getRange())||null}[Qo("0x34")](){const t=this[Qo("0x1")]();if(1!=t[Qo("0x2e")])return null;const e=t[0],n=e[Qo("0x39")][Qo("0x8")],o=e[Qo("0x16")][Qo("0x25")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0x23")](){this[Qo("0x18")](this[Qo("0x1")](),this[Qo("0x35")],this[Qo("0x3")]),this[Qo("0xf")]()}[Qo("0x24")](){this[Qo("0x17")](this[Qo("0x1")](),this[Qo("0x35")],this[Qo("0x3")]),this.removeMarkers()}getAllAdjacentSuggestions(){const t=[];let e=this[Qo("0x0")];for(;e;)t[Qo("0x15")](e),e=e.next;return t}setAttribute(t,e){const n=eo(this[Qo("0x3")]);_o(n,t,e),Go(n,this[Qo("0x3")])||(this[Qo("0x3")]=n,this[Qo("0x20")](n))}[Qo("0x22")](t){const e=eo(this.attributes);Ko(e,t),Go(e,this[Qo("0x3")])||(this[Qo("0x3")]=e,this[Qo("0x20")](this[Qo("0x3")]))}[Qo("0x1f")](){return{id:this.id,type:this[Qo("0x1c")]?this[Qo("0x19")]+":"+this[Qo("0x1c")]:this[Qo("0x19")],authorId:this[Qo("0x30")].id,createdAt:this.createdAt,hasComments:this[Qo("0x37")],data:this[Qo("0x35")],attributes:this[Qo("0x3")]}}static[Qo("0x4")](){return(0,e.uid)().substr(1,5)}}function Yo(t,e,n){const o=t.t;switch(e){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* change table properties":return o("*Format:* change table properties");case"*Format:* change table cell properties":return o("*Format:* change table cell properties");case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Format:* replace image URL":return o("*Format:* replace image URL");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set format to:* %0":return o("*Set format to:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return o({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return o({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return o({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);default:return e}}const ts=["checkChild","softBreak","*Remove:* %0","data","indexOf","skip","length","_itemLabels","*Merge:* %0","_customCallbacks","isObject","ELEMENT_SPACE","add","item","_resolveDescriptionItems","$1 $2","registerElementLabel","removeEmptyContainer","$textProxy","EmptyContainer","getItemLabel","set","insertion","quantity","Container","*Split:* %0","push","function","text","*Insert:* %0","label","_locale","$text","remove","end","previousSibling","normal","isInContent","isEmpty","_addDescriptionItems","elementStart","match","isEqual","matchingCallback","getDescriptions","nextSibling","elementEnd","addContainer","getWalker","name","get","removeObject","start","deletion","replace","type","getFirstRange","_itemLabelsCallbacks","_schema","element","Object"];var es,ns;es=ts,ns=261,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class ss{constructor(t,e){this[os("0x35")]=[],this[os("0x33")]=new Map,this[os("0x28")]=[],this[os("0x29")]=t,this[os("0xe")]=e}[os("0x1b")](t){const e=[];for(let n=0;n<t.length;n++){const o=t[n];if(!o[os("0x14")])continue;let s=!1;for(const t of this[os("0x35")]){const n=t(o);if(n){os("0x26")in n&&e.push(n),s=!0;break}}if(!s){this[os("0x16")](e,o);const s=t[n+1];if(s&&!o.getFirstRange()[os("0x11")][os("0x19")](s[os("0x27")]()[os("0x23")])){const t=e[e[os("0x32")]-1],n="insertion"==o.type?os("0x38"):"remove";t&&os("0xb")==t[os("0x26")]&&(t[n]+="\n")}}}return this[os("0x3a")](e)}registerDescriptionCallback(t){this[os("0x35")][os("0x9")](t)}[os("0x3c")](t,n,o=e.priorities[os("0x13")]){os("0xa")==typeof t?(0,e.insertToPriorityArray)(this[os("0x28")],{matchingCallback:t,label:n,priority:o}):this._itemLabels[os("0x4")](t,n)}[os("0x3")](t,e=1){let n;for(const e of this[os("0x28")])if(e[os("0x1a")](t)){n=e[os("0xd")];break}return n||(n=this[os("0x33")][os("0x21")](t.name)),n?n(e):1!==e?e+" "+t.name+"s":""+t.name}[os("0x16")](t,e){const n=e[os("0x27")]()[os("0x1f")](),o="insertion"==e[os("0x26")]?os("0x38"):"remove";for(const e of n){const s=e.item,r=t[t[os("0x32")]-1];if(s.is(os("0x1")))r&&r[os("0x26")][os("0x30")]("Container")>-1&&t.pop(),r&&os("0xb")==r[os("0x26")]?r[o]+=s.data:t.push({type:"text",add:os("0x38")==o?s[os("0x2f")]:"",remove:os("0x10")==o?s[os("0x2f")]:""});else if(this[os("0x29")][os("0x36")](s)){const i=s;if(r&&r.type[os("0x30")]("Container")>-1&&t.pop(),os("0x1d")==e[os("0x26")])continue;r&&r[os("0x26")]==o+os("0x2b")&&r[os("0x2a")][os("0x20")]==i[os("0x20")]?r[os("0x6")]++:t[os("0x9")]({type:o+os("0x2b"),element:i,quantity:1}),n[os("0x31")]((t=>!("elementEnd"==t.type&&t[os("0x39")]==s)))}else if(this._schema[os("0x2c")](s,os("0xf"))||s.is(os("0x2a"),os("0x2d"))){const n=s;if("add"==o&&os("0x17")==e[os("0x26")]||os("0x10")==o&&os("0x1d")==e.type)continue;if(r&&-1==r.type[os("0x30")](os("0x7"))){os("0xb")==r.type&&(r[o]+="\n");continue}let i;if(i=os("0x38")==o?n.nextSibling&&!this[os("0x29")].isObject(n.nextSibling)?n[os("0x1c")]:null:n.previousSibling&&!this._schema[os("0x36")](n[os("0x12")])?n[os("0x12")]:null,n.isEmpty||i&&i[os("0x15")]){const e=i&&i[os("0x15")]?i:n;r&&r.type==o+os("0x2")&&r[os("0x2a")][os("0x20")]==e.name?r[os("0x6")]++:t[os("0x9")]({type:o+os("0x2"),element:e,quantity:1})}else t[os("0x9")]({type:o+"Container",element:n})}}}[os("0x3a")](t){const e=this[os("0xe")],n=[];for(const o of t){switch(o[os("0x26")]){case"text":if(o[os("0x38")]=o.add.replace(/(\S)\u000A+(\S)/g,os("0x3b")).replace(/\u000A/g,""),o.remove=o.remove[os("0x25")](/(\S)\u000A+(\S)/g,os("0x3b")).replace(/\u000A/g,""),""!=o.add&&""!=o[os("0x10")]){n[os("0x9")]({type:os("0x25"),content:Yo(e,"REPLACE_TEXT",['"'+o.remove+'"','"'+o.add+'"'])});continue}if(null!=o[os("0x38")].match(/^ +$/)){n[os("0x9")]({type:"insertion",content:Yo(e,os("0xc"),Yo(e,os("0x37"),o[os("0x38")][os("0x32")]))});continue}if(null!=o[os("0x10")][os("0x18")](/^ +$/)){n[os("0x9")]({type:"deletion",content:Yo(e,os("0x2e"),Yo(e,"ELEMENT_SPACE",o[os("0x10")][os("0x32")]))});continue}if(""!=o[os("0x38")]){n[os("0x9")]({type:os("0x5"),content:Yo(e,os("0xc"),'"'+o.add+'"')});continue}n[os("0x9")]({type:os("0x24"),content:Yo(e,os("0x2e"),'"'+o[os("0x10")]+'"')});continue;case"addEmptyContainer":case"addObject":n[os("0x9")]({type:os("0x5"),content:Yo(e,os("0xc"),this.getItemLabel(o[os("0x2a")],o.quantity))});continue;case os("0x0"):case os("0x22"):n.push({type:os("0x24"),content:Yo(e,os("0x2e"),this[os("0x3")](o[os("0x2a")],o.quantity))});continue;case os("0x1e"):n[os("0x9")]({type:os("0x5"),content:Yo(e,os("0x8"),this[os("0x3")](o[os("0x2a")],o.quantity))});continue;case"removeContainer":n.push({type:os("0x24"),content:Yo(e,os("0x34"),this[os("0x3")](o[os("0x2a")],o[os("0x6")]))});continue}n[os("0x9")](o)}return n}}const rs=["center","AlignmentEditing","model","change","FORMAT_ALIGN_TO_CENTER","ltr","justify","value","getAttribute","alignment","commandName","FORMAT_JUSTIFY_TEXT","right","*Format:* %0","selection","left","FORMAT_ALIGN_TO_LEFT","getSelectedBlocks","document","registerDescriptionCallback","afterInit","from","TrackChangesEditing","format","plugins","editor","locale","markBlockFormat"];var is,xs;is=rs,xs=340,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x10")](){const t=this.editor,e=t.locale;if(!t[as("0x14")].has(as("0x19")))return;const n=t[as("0x14")].get(as("0x12"));n.enableCommand("alignment",((e,o={})=>{let s=o[as("0x3")];o[as("0x3")]||(s=as("0x1")===t[as("0x16")].contentLanguageDirection?as("0xb"):as("0x8"));const r=Array[as("0x11")](this[as("0x15")][as("0x1a")][as("0xe")][as("0xa")][as("0xd")]()).filter((t=>function(t,e,n){const o=t[as("0x4")](as("0x5"))||null;return e.checkAttribute(t,as("0x5"))&&n!=o}(t,this[as("0x15")].model.schema,s)));t[as("0x1a")][as("0x1b")]((()=>{for(const t of r)n[as("0x17")](t,{commandName:as("0x5"),commandParams:[{value:s}]})}))})),n._descriptionFactory[as("0xf")]((t=>{const{data:n}=t;if(n&&as("0x5")==n[as("0x6")]){const t=n.commandParams[0][as("0x3")];return{type:as("0x13"),content:Yo(e,as("0x9"),function(t){switch(t){case as("0xb"):return Yo(e,as("0xc"));case"right":return Yo(e,"FORMAT_ALIGN_TO_RIGHT");case as("0x18"):return Yo(e,as("0x0"));case as("0x2"):return Yo(e,as("0x7"))}}(t))}}}))}}const ls=["markerName","bindElementToMarker","listItem","createUIElement","test","activeMarkers","mapper","writer","previousPosition","schema","TrackChangesEditing","nextSibling","addClass","getItems","item","isAtEnd","plugins","hasAttribute","listIndent","ck-suggestion-marker-","start","parent","getAttribute","markerRange","get","includes","type","isLimit","consumable","element","getCustomProperty"];var ds,us;ds=ls,us=148,function(t){for(;--t;)ds.push(ds.shift())}(++us);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e[gs("0x14")]())s[gs("0x18")](t)&&o.push(n.createRangeOn(s));return o}function fs(t){const e=[];if(t.is(gs("0x5"),gs("0x9"))){let n=t[gs("0x12")];for(;n&&n.is(gs("0x5"),gs("0x9"))&&n[gs("0x1d")](gs("0x19"))>0;)e.push(n),n=n[gs("0x12")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t[gs("0x17")][gs("0x0")](gs("0x11"));return(s,r,i)=>{if(!i[gs("0x4")][gs("0xb")](r[gs("0x1e")],s.name))return;const x=r.markerRange.getWalker(),a=r[gs("0x1e")][gs("0x1b")],c=t.model[gs("0x10")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t[gs("0x15")];u=u||c.isContent(e);const n=i.mapper.toViewElement(e);if(n&&n[gs("0x6")]("addHighlight"))return;"elementEnd"==t[gs("0x2")]&&c.isBlock(e)&&!c[gs("0x3")](e)&&(e[gs("0x12")]||a[gs("0x16")]?l&&l[gs("0x1c")]==e||(l=e,m(t[gs("0xf")]),g=!0):d=d||t[gs("0xf")])}function m(t){const s=i[gs("0xe")][gs("0xa")]("span",{class:gs("0x1a")+e}),x=i[gs("0xd")].toViewPosition(t);n&&o[gs("0xc")][gs("0x1")](r[gs("0x7")])&&i[gs("0xe")][gs("0x13")]("ck-suggestion-marker--active",s),i.writer.insert(x,s),i[gs("0xd")][gs("0x8")](s,r[gs("0x7")])}u||g||!d||m(d)}}const bs=["document","value","FORMAT_CODE","FORMAT_STRIKETHROUGH","SuperscriptEditing","underline","getRanges","strikethrough","locale","*Remove format:* %0","change","get","italic","plugins","format","UnderlineEditing","commandParams","superscript","BoldEditing","StrikethroughEditing","slice","FORMAT_SUBSCRIPT","ItalicEditing","selection","CodeEditing","FORMAT_ITALIC","markInlineFormat","afterInit","from","toLowerCase","FORMAT_BOLD","forceValue","has","*Format:* %0","SubscriptEditing","commands","commandName","TrackChangesEditing","FORMAT_UNDERLINE","code","model"];var ps,Es;ps=bs,Es=245,function(t){for(;--t;)ps.push(ps.shift())}(++Es);const _s=function(t,e){return bs[t-=0]},Ts=[_s("0x13"),_s("0x17"),_s("0x10"),_s("0x19"),_s("0x14"),_s("0x23"),_s("0x5")];class Cs extends t.Plugin{[_s("0x1c")](){const t=this.editor,e=t[_s("0x0")],n=t[_s("0xe")][_s("0xc")](_s("0x26")),o=t[_s("0x9")];for(const o of Ts){if(!t[_s("0xe")][_s("0x21")](o))continue;const s=o[_s("0x15")](0,-7)[_s("0x1e")](),r=t[_s("0x24")].get(s);n.enableCommand(s,((t,o={})=>{const i=e[_s("0x1")][_s("0x18")];if(i.isCollapsed)return void t(o);const x=void 0!==o[_s("0x20")]?o[_s("0x20")]:!r[_s("0x2")];e[_s("0xb")]((()=>{const t=Array[_s("0x1d")](i[_s("0x7")]());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n[_s("0x1b")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n._descriptionFactory.registerDescriptionCallback((n=>{const{data:s}=n;if(s&&s[_s("0x25")]===t)return s[_s("0x11")][0][_s("0x20")]?{type:_s("0xf"),content:Yo(o,_s("0x22"),e)}:{type:_s("0xf"),content:Yo(o,_s("0xa"),e)}}))}s("bold",Yo(o,_s("0x1f"))),s(_s("0xd"),Yo(o,_s("0x1a"))),s(_s("0x6"),Yo(o,_s("0x27"))),s(_s("0x28"),Yo(o,_s("0x3"))),s(_s("0x8"),Yo(o,_s("0x4"))),s("subscript",Yo(o,_s("0x16"))),s(_s("0x12"),Yo(o,"FORMAT_SUPERSCRIPT"))}}const ys=["model","BlockQuoteEditing","get","has","checkChild","afterInit","markBlockFormat","_descriptionFactory","commands","*Format:* %0","parent","$root","ELEMENT_BLOCK_QUOTE","blockQuote","commandName","name","from","change","format","enableCommand","filter","schema","getSelectedBlocks","registerDescriptionCallback","selection","forceValue","editor"];var ks,As;ks=ys,As=269,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0x6")](){const t=this[vs("0x0")],e=t.locale;if(!t.plugins[vs("0x4")](vs("0x2")))return;const n=t.plugins[vs("0x3")]("TrackChangesEditing"),o=this.editor[vs("0x9")][vs("0x3")](vs("0xe"));n[vs("0x14")]("blockQuote",((e,s={})=>{const r=this[vs("0x0")].model.document[vs("0x19")],i=s&&void 0!==s[vs("0x1a")]?s[vs("0x1a")]:!o.value;let x=[];if(i){const e=Array[vs("0x11")](r.getSelectedBlocks())[vs("0x15")]((t=>Ss(t)||function(t,e){const n=e[vs("0x5")](t[vs("0xb")],vs("0xe")),o=e[vs("0x5")]([vs("0xc"),vs("0xe")],t);return n&&o}(t,this.editor[vs("0x1")][vs("0x16")])));x=S(e,t[vs("0x1")])}else{const e=Array[vs("0x11")](r[vs("0x17")]())[vs("0x15")]((t=>Ss(t)));x=S(e,t[vs("0x1")])}t.model[vs("0x12")]((()=>{for(const t of x)n[vs("0x7")](t,{commandName:vs("0xe"),commandParams:[{forceValue:i}]})}))})),n[vs("0x8")][vs("0x18")]((t=>{const{data:n}=t;if(n&&vs("0xe")==n[vs("0xf")]){const t=Yo(e,vs("0xd"));return n.commandParams[0].forceValue?{type:vs("0x13"),content:Yo(e,vs("0xa"),t)}:{type:vs("0x13"),content:Yo(e,"*Remove format:* %0",t)}}}))}}function Ss(t){return vs("0xe")==t[vs("0xb")][vs("0x10")]}const Is=["get","TrackChangesEditing","commands","plugins","ckbox","enableCommand"];var Ls,Ns;Ls=Is,Ns=342,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const Ms=function(t,e){return Is[t-=0]};class ws extends t.Plugin{afterInit(){const t=this.editor;t[Ms("0x2")].get(Ms("0x4"))&&t[Ms("0x3")][Ms("0x0")](Ms("0x1"))[Ms("0x5")]("ckbox")}}const Os=["enableCommand","name","afterInit","format","languages","value","document","filter","blockName","forceValue","selection","locale","CodeBlock","get","plugins","commandName","commands","config","outdentCodeBlock","commandParams","ELEMENT_CODE_BLOCK","*Remove format:* %0","from","*Format:* %0","codeBlock","_descriptionFactory","language","formatBlock","parent","schema","indentCodeBlock","model","checkChild","markBlockFormat","getSelectedBlocks","find","editor","registerElementLabel","change"];var Fs,Ps;Fs=Os,Ps=405,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x1a")](){const t=this[Ds("0x15")];if(!t.plugins.has(Ds("0x24")))return;const e=t[Ds("0x26")][Ds("0x25")]("TrackChangesEditing"),n=t[Ds("0x23")],o=t[Ds("0x2")][Ds("0x25")]("codeBlock")[Ds("0x1c")],s=t[Ds("0x1")][Ds("0x25")](Ds("0x9"));e[Ds("0x18")](Ds("0xf")),e[Ds("0x18")](Ds("0x3")),e[Ds("0x18")](Ds("0x9"),((n,r={})=>{const i=t[Ds("0x10")],x=t.model[Ds("0x1e")][Ds("0x22")],a=r&&void 0!==r[Ds("0x21")]?r.forceValue:!s[Ds("0x1d")];let c;r.language||(r.language=o[0][Ds("0xb")]),c=a?Array[Ds("0x7")](x[Ds("0x13")]())[Ds("0x1f")]((t=>{return js(t)||(e=t,n=i[Ds("0xe")],!e.is("rootElement")&&!n.isLimit(e)&&n[Ds("0x11")](e[Ds("0xd")],"codeBlock"));var e,n})):Array[Ds("0x7")](x[Ds("0x13")]())[Ds("0x1f")]((t=>js(t)));const l=S(c,i);i[Ds("0x17")]((()=>{for(const t of l)e[Ds("0x12")](t,{commandName:Ds("0x9"),commandParams:[{...r,forceValue:a}],formatGroupId:Ds("0x20")})}))})),e[Ds("0xa")][Ds("0x16")](Ds("0x9"),(t=>Yo(n,Ds("0x5"),t))),e[Ds("0xa")].registerDescriptionCallback((t=>{const e=n.t,{type:s,data:r}=t;if(Ds("0xc")==s&&r&&Ds("0x9")==r[Ds("0x0")]){const t=r[Ds("0x4")][0][Ds("0xb")],s=e(o[Ds("0x14")]((e=>e[Ds("0xb")]===t)).label);return r.commandParams[0][Ds("0x21")]?{type:"format",content:Yo(n,Ds("0x8"),Yo(n,Ds("0x5"),1)+" ("+s+")")}:{type:Ds("0x1b"),content:Yo(n,Ds("0x6"),Yo(n,Ds("0x5"),1))}}}))}}function js(t){return Ds("0x9")==t[Ds("0x19")]}const Us=["enableCommand","addCommentThread","editor","CommentsEditing","plugins","has","get","TrackChangesEditing","afterInit"];var Gs,Hs;Gs=Us,Hs=247,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const zs=function(t,e){return Us[t-=0]};class Ws extends t.Plugin{[zs("0x4")](){const t=this[zs("0x7")];t[zs("0x0")][zs("0x1")](zs("0x8"))&&t[zs("0x0")][zs("0x2")](zs("0x3"))[zs("0x5")](zs("0x6"))}}var Vs=n(181);const qs=["requires","setSelection","document","removeMarker:suggestion:deletion","data","createRange","enqueueChange","model","end","commands","bind","addMarker:suggestion:deletion","high","isCollapsed","getFirstRange","editor","lock","options","remove","get","start","enableCommand","unlock","deleteForward","root","init","$graveyard","downcastDispatcher","buffer","modifySelection","fromRange","markerNameToElements","forward","mapper","merge"];var Ks,Xs;Ks=qs,Xs=308,function(t){for(;--t;)Ks.push(Ks.shift())}(++Xs);const $s=function(t,e){return qs[t-=0]};class Js extends t.Plugin{static get[$s("0x7")](){return[Vs.Delete]}[$s("0x20")](){const t=this[$s("0x16")],e=t.plugins[$s("0x1a")]("TrackChangesEditing");e.enableCommand("delete");const n=t[$s("0x10")][$s("0x1a")]($s("0x1e"));e[$s("0x1c")]($s("0x1e"),((e,o={})=>{const s=t[$s("0xe")].createSelection(t[$s("0xe")][$s("0x9")].selection);s[$s("0x14")]&&t[$s("0xe")][$s("0x1")](s,{direction:$s("0x4"),unit:o.unit});const r=s[$s("0x15")](),x=i.LiveRange[$s("0x2")](r);let a;e(o),a=$s("0x21")==x[$s("0x1f")].rootName?t[$s("0xe")][$s("0xc")](r[$s("0x1b")]):t[$s("0xe")][$s("0xc")](x.start,x.end),x.detach(),t[$s("0xe")][$s("0xd")](n[$s("0x0")].batch,(t=>{n[$s("0x0")][$s("0x17")](),t[$s("0x8")](t[$s("0xc")](a[$s("0xf")])),n[$s("0x0")][$s("0x1d")]()}))})),t.editing[$s("0x22")].on($s("0x12"),hs(t,$s("0x6")),{priority:"high"}),t[$s("0xb")][$s("0x22")].on($s("0x12"),((e,n,o)=>{o[$s("0x18")].showSuggestionHighlights&&hs(t,$s("0x6"),{showActiveMarker:!1})[$s("0x11")](this)(e,n,o)}),{priority:"high"}),t.editing[$s("0x22")].on($s("0xa"),((t,e,n)=>{const o=n[$s("0x5")][$s("0x3")](e.markerName);if(o)for(const t of o)t.is("uiElement")&&(n[$s("0x5")].unbindElementFromMarkerName(t,e.markerName),n.writer[$s("0x19")](t))}),{priority:$s("0x13")})}}const Qs=["nextSibling","previousSibling","isFirstBlockOfListItem","getRanges","DocumentListUtils","enableCommand","getAttribute","document","registerDescriptionCallback","isObject","documentList","getFirstRange","map","*Format:* insert into %0","multipleBlocks","nodeAfter","TrackChangesEditing","mergeListItemForward","createRange","splitListItemBefore","_descriptionFactory","*Indent:* %0","registerCustomCallback","ELEMENT_LIST_ITEM","markBlockFormat","markMultiRangeBlockFormat","formatBlock","before","plugins","commands","setSelection","get","commandParams","change","bulletedList","accept","DocumentListEditing","editor","from","listType","format","slice","start","schema","containsItem","after","commandName","numberedList","listItemId","push","outdentList","locale","listIndent","end","refresh","length","createPositionAt","getSelectedBlocks","value","forceValue","*Format:* remove from %0","_LIST","ELEMENT_NUMBERED_LIST","toUpperCase","selection","next","*Outdent:* %0","ELEMENT_BULLETED_LIST","model","fromRange","*Change to:* %0","indentList","splitListItemAfter","execute","has","*Merge:* %0"];var Zs,Ys;Zs=Qs,Ys=447,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{afterInit(){const t=this[tr("0x2e")];if(!t[tr("0x25")][tr("0x7")](tr("0x2d")))return;const e=t[tr("0x3c")],n=t.plugins[tr("0x28")](tr("0x19")),o=t[tr("0x25")].get(tr("0xd"));function s(e){return()=>{const s=t[tr("0x26")][tr("0x28")](e);let r=Array[tr("0x2f")](t.model[tr("0x10")][tr("0x49")][tr("0x42")]());if(a(e)){r=o.expandListBlocksToCompleteList(r);const t=[];for(const e of r)o[tr("0xb")](e)&&t[tr("0x3a")](e);r=t}t[tr("0x1")][tr("0x2a")]((()=>{n[tr("0x22")](r,{commandName:e,commandParams:[{forceValue:!s[tr("0x43")]}],formatGroupId:tr("0x30")},[],tr("0x13"))}))}}function r(e){return()=>{const o=function(t){let e=Array.from(t);const n=e.findIndex((t=>!t.hasAttribute(tr("0x39"))));return n>-1&&(e=e[tr("0x32")](0,n)),e}(t[tr("0x1")][tr("0x10")][tr("0x49")][tr("0x42")]()),s=o[o[tr("0x40")]-1],r=t[tr("0x1")][tr("0x34")].isObject(s)?tr("0x36"):tr("0x3e"),i=t[tr("0x1")][tr("0x1b")](t[tr("0x1")][tr("0x41")](o[0],tr("0x24")),t[tr("0x1")].createPositionAt(s,r));t[tr("0x1")][tr("0x2a")]((()=>{n[tr("0x21")](i,{commandName:e,commandParams:[],formatGroupId:"listType"},function(t){const e=new Set;for(const n of t){let t=n[tr("0x9")];for(;t&&t[tr("0xf")](tr("0x3d"))>n[tr("0xf")]("listIndent");)e.add(t),t=t.nextSibling}return Array[tr("0x2f")](e)}(o))}))}}function x(e){return()=>{const o=t[tr("0x1")][tr("0x10")].selection[tr("0x42")]()[tr("0x4a")]()[tr("0x43")],s=t[tr("0x1")][tr("0x41")](o,tr("0x24")),r=t[tr("0x1")][tr("0x41")](o,0),i=t[tr("0x1")][tr("0x1b")](s,r);t[tr("0x1")][tr("0x2a")]((()=>{n[tr("0x21")](i,{commandName:e,commandParams:[],formatGroupId:"listType"})}))}}function a(e){const n=t.commands[tr("0x28")](tr("0x2b"))[tr("0x43")],o=t[tr("0x26")][tr("0x28")]("numberedList")[tr("0x43")];return tr("0x38")===e?n:o}n.enableCommand("numberedList",s(tr("0x38"))),n[tr("0xe")]("bulletedList",s("bulletedList")),n.enableCommand("indentList",r("indentList")),n[tr("0xe")](tr("0x3b"),r(tr("0x3b"))),n.enableCommand(tr("0x5"),x(tr("0x5"))),n.enableCommand(tr("0x1c"),x("splitListItemBefore")),n[tr("0x1d")].registerElementLabel((function(e){const n=!t[tr("0x1")][tr("0x34")][tr("0x12")](e),o=e[tr("0xa")],s=e.nextSibling,r=e[tr("0xf")]("listItemId"),i=!o||o[tr("0xf")]("listItemId")!==r,x=!s||s.getAttribute(tr("0x39"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,tr("0x20"),t))),n[tr("0x1d")][tr("0x11")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x37")]){case"bulletedList":r=n[tr("0x29")][0][tr("0x44")],i=a(n[tr("0x37")]),o=tr(r?"0x16":"0x45"),i&&(o="*Change to:* %0"),s={type:"format",content:Yo(e,o,Yo(e,tr("0x0")))};break;case"numberedList":r=n[tr("0x29")][0][tr("0x44")],i=a(n.commandName),o=tr(r?"0x16":"0x45"),i&&(o=tr("0x3")),s={type:tr("0x31"),content:Yo(e,o,Yo(e,tr("0x47")))};break;case tr("0x4"):o=tr("0x1e"),s={type:"format",content:Yo(e,o,Yo(e,tr("0x20")))};break;case tr("0x3b"):o=function(t){const e=t[tr("0x14")]();let n=e[tr("0x33")].nodeAfter;for(;n&&e[tr("0x35")](n);){if(n.getAttribute("listIndent")>0)return!1;n=n[tr("0x9")]}return!0}(t)?Yo(e,tr("0x45"),Yo(e,"ELEMENT_"+t.getFirstRange()[tr("0x33")][tr("0x18")][tr("0xf")]("listType")[tr("0x48")]()+tr("0x46"))):Yo(e,tr("0x4b"),Yo(e,tr("0x20"))),s={type:"format",content:o};break;case"mergeListItemBackward":case tr("0x1a"):!1===n[tr("0x17")]&&(o=tr("0x8"),s={type:"deletion",content:Yo(e,o,Yo(e,tr("0x20")))})}return s})),n._suggestionFactory[tr("0x1f")](tr("0x23"),tr("0x13"),tr("0x2c"),(function(e,n){const o=[];for(let n of e)n[tr("0x33")][tr("0x18")]===n[tr("0x3e")].parent&&(n=t.model[tr("0x1b")](t[tr("0x1")][tr("0x41")](n[tr("0x33")][tr("0x18")],0))),o[tr("0x3a")](n);t[tr("0x1")][tr("0x2a")]((e=>{const s=t[tr("0x1")].document[tr("0x49")],r=Array[tr("0x2f")](s[tr("0xc")]())[tr("0x15")]((t=>i.LiveRange[tr("0x2")](t)));e.setSelection(o),t[tr("0x26")][tr("0x28")](n[tr("0x37")])[tr("0x3f")](),n[tr("0x29")][tr("0x3a")]({forceDefaultExecution:!0}),t[tr("0x6")](n[tr("0x37")],...n[tr("0x29")]),e[tr("0x27")](r);for(const t of r)t.detach()}))}))}}var nr=n(331);const or=["downcastDispatcher","document","ck-suggestion-marker-split","editing","markerNameToElements","selection","remove","requires","getFirstRange","showSuggestionHighlights","enterBlock","model","setSelection","fire","markerName","afterExecute","nextSibling","addMarker:suggestion:insertion","removeMarker:suggestion:insertion","unbindElementFromMarkerName","end","plugins","get","enableCommand","commands","TrackChangesEditing","markInsertion","mapper","hasClass","enter","high","parent","writer","split","editor","createRange"];var sr,rr;sr=or,rr=499,function(t){for(;--t;)sr.push(sr.shift())}(++rr);const ir=function(t,e){return or[t-=0]};class xr extends t.Plugin{static get[ir("0xc")](){return[nr.Enter]}init(){const t=this[ir("0x3")],e=t[ir("0x1a")].get(ir("0x1e")),n=t[ir("0x1d")][ir("0x1b")](ir("0x22"));e[ir("0x1c")](ir("0x22"),(()=>{t[ir("0x10")].change((o=>{const s=t[ir("0x10")][ir("0x6")][ir("0xa")],r=s.getFirstPosition(),x=i.LiveRange.fromRange(s[ir("0xd")]());if(n[ir("0xf")](o)){const n=t[ir("0x10")].createPositionAt(r[ir("0x0")][ir("0x15")],0),s=o[ir("0x4")](r,n);e[ir("0x1f")](s)}else o[ir("0x11")](o.createRange(x[ir("0x19")]));x.detach(),n[ir("0x12")](ir("0x14"),{writer:o})}))})),t[ir("0x8")][ir("0x5")].on(ir("0x16"),hs(t,ir("0x2")),{priority:ir("0x23")}),t[ir("0x8")][ir("0x5")].on(ir("0x17"),((t,e,n)=>{const o=n[ir("0x20")][ir("0x9")](e.markerName);if(o)for(const t of o)t[ir("0x21")](ir("0x7"))&&(n.mapper[ir("0x18")](t,e[ir("0x13")]),n[ir("0x1")][ir("0xb")](t))}),{priority:ir("0x23")}),t.data[ir("0x5")].on(ir("0x16"),((e,n,o)=>{o.options[ir("0xe")]&&hs(t,ir("0x2"),{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:"high"})}}const ar=["getIntersection","findNext","handleFindCommand","replace","createPositionAt","replaceAll","find","get","string","findByTextCallback","model","getMarkersGroup","createRange","getRange","item","enableCommand","plugins","editor","suggestion:deletion","_isInDeletionRange","filter","has"];var cr,lr;cr=ar,lr=211,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return ar[t-=0]};class ur extends t.Plugin{afterInit(){if(!this[dr("0x4")][dr("0x3")][dr("0x8")]("FindAndReplaceEditing"))return;const t=this.editor[dr("0x3")][dr("0x10")]("TrackChangesEditing");t.enableCommand(dr("0xf"),this[dr("0xb")].bind(this)),t.enableCommand(dr("0xa")),t[dr("0x2")]("findPrevious"),t.enableCommand(dr("0xc")),t[dr("0x2")](dr("0xe"))}[dr("0xb")](t,e,n={}){const o=this.editor.plugins.get("FindAndReplaceUtils");void 0!==n&&t((t=>(dr("0x11")==typeof e?o[dr("0x12")](e,n):e)(t)[dr("0x7")]((e=>!1===this[dr("0x6")](e,t[dr("0x1")])))),n)}[dr("0x6")](t,e){const n=this[dr("0x4")].model[dr("0x15")](this[dr("0x4")][dr("0x13")].createPositionAt(e,t.start),this[dr("0x4")].model[dr("0xd")](e,t.end));for(const t of this[dr("0x4")].model.markers[dr("0x14")](dr("0x5")))if(null!==n[dr("0x9")](t[dr("0x0")]()))return!0;return!1}}const gr=["toLowerCase","fontBackgroundColor.colors","commandName","value","registerDescriptionCallback","selection","*Reset font background color*","title","*Set font color:* %0","FontBackgroundColorEditing","FontFamilyEditing","*Reset font size*","fontColor","TrackChangesEditing","afterInit","model","change","FontSize","*Set font family:* %0","find","*Set font size:* %0","commandParams","has","isCollapsed","format","_enableCommand","plugins","FontSizeEditing","fontSize.options","fontBackgroundColor","config","FontColorEditing","fontSize","label","fontFamily","*Set font background color:* %0","trim","get","editor"];var mr,fr;mr=gr,fr=456,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},br=[{pluginName:hr("0x0"),commandName:hr("0x5")},{pluginName:hr("0x16"),commandName:hr("0x7")},{pluginName:hr("0x4"),commandName:hr("0x18")},{pluginName:hr("0x15"),commandName:"fontBackgroundColor"}];class pr extends t.Plugin{[hr("0x1a")](){const t=this[hr("0xb")].locale;for(const{pluginName:t,commandName:e}of br)this[hr("0xb")][hr("0x26")][hr("0x22")](t)&&this[hr("0x25")](e);this[hr("0xb")].plugins[hr("0xa")]("TrackChangesEditing")._descriptionFactory[hr("0x10")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0x5")==o.commandName){const e=o[hr("0x21")][0].value;if(e){const o=n(this[hr("0xb")][hr("0x26")][hr("0xa")](hr("0x1d")).normalizeSizeOptions(this[hr("0xb")][hr("0x3")].get(hr("0x1")))[hr("0x1f")]((t=>t[hr("0x1b")]==e))[hr("0x13")])[hr("0xc")]();return{type:hr("0x24"),content:Yo(t,hr("0x20"),o)}}return{type:hr("0x24"),content:Yo(t,hr("0x17"))}}if("fontFamily"==o[hr("0xe")]){const e=o[hr("0x21")][0].value;return e?{type:"format",content:Yo(t,hr("0x1e"),e)}:{type:hr("0x24"),content:Yo(t,"*Reset font family*")}}if(hr("0x18")==o.commandName){const e=o[hr("0x21")][0][hr("0xf")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0xb")][hr("0x3")].get("fontColor.colors")).find((t=>t[hr("0x1b")]==e));let r=e,i="";return o&&(r=o[hr("0x6")],i=n(r)[hr("0xc")]()),{type:hr("0x24"),content:Yo(t,hr("0x14"),i)[hr("0x9")](),color:{value:e,title:i||r}}}return{type:hr("0x24"),content:Yo(t,"*Reset font color*")}}if(hr("0x2")==o[hr("0xe")]){const e=o[hr("0x21")][0][hr("0xf")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0xb")][hr("0x3")].get(hr("0xd")))[hr("0x1f")]((t=>t[hr("0x1b")]==e));let r=e,i="";return o&&(r=o[hr("0x6")],i=n(r)[hr("0xc")]()),{type:hr("0x24"),content:Yo(t,hr("0x8"),i)[hr("0x9")](),color:{value:e,title:i||r}}}return{type:hr("0x24"),content:Yo(t,hr("0x12"))}}}}))}[hr("0x25")](t){const e=this[hr("0xb")];e[hr("0x26")][hr("0xa")](hr("0x19")).enableCommand(t,((n,o={})=>{const s=e.model.document[hr("0x11")],r=o.value;s[hr("0x23")]?n(o):e[hr("0x1b")][hr("0x1c")]((()=>{const n=Array.from(s.getRanges());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0x1b")]);for(const o of n)e[hr("0x26")][hr("0xa")](hr("0x19")).markInlineFormat(o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["document","boolean","title","selection","locale","afterInit","commands","fontColor","getLastPosition","getRanges","schema","fontSize.options","fontBackgroundColor","length","keys","FontSize","getAttributeProperties","registerDescriptionCallback","*Remove all formatting*","format","isFormatting","commandName","getAttributes","editor","isBlock","getSelectedBlocks","getItems","createSelection","slice","get","from","fontColor.colors","find","model","fontSize","copyFormat","modifySelection","toLowerCase","charAt","*Set format to:* %0","entries","push","forward","TrackChangesEditing","normalizeSizeOptions","word","pasteFormat","enableCommand","_descriptionFactory","backward","isCollapsed","join","plugins","commandParams"];var _r,Tr;_r=Er,Tr=428,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0x9")](){const t=this[Cr("0x1b")],n=t[Cr("0x25")],o=n[Cr("0x4")][Cr("0x7")],s=t[Cr("0x2")].get("TrackChangesEditing"),r=t[Cr("0x8")],i=t[Cr("0xa")].get(Cr("0x27")),x=t[Cr("0xa")][Cr("0x21")](Cr("0x32"));i&&x&&(s[Cr("0x33")](Cr("0x32"),((t,r={})=>{const i=r;n.change((()=>{const t=Array[Cr("0x22")](o[Cr("0xd")]()),r=o[Cr("0x0")]?[kr(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t[Cr("0x1a")]()){const t=e[Cr("0x14")](n);t&&t[Cr("0x18")]&&(yield n)}}(t,n));for(const e of t[Cr("0xd")]())for(const t of e[Cr("0x1e")]())!n[Cr("0x1c")](t)&&o(t)&&(yield t);for(const e of t[Cr("0x1d")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0xe")]))||0!==Object[Cr("0x12")](i)[Cr("0x11")])for(const t of r)s.markInlineFormat(t,{commandName:"pasteFormat",commandParams:[i]})}))})),s[Cr("0x34")][Cr("0x15")]((e=>{const{data:n}=e;if(n&&Cr("0x32")===n[Cr("0x19")]){const e=[],o=n[Cr("0x3")][0];for(const[n,s]of Object[Cr("0x2c")](o))e[Cr("0x2d")](Ar(t,n,s));return e[Cr("0x11")]?{type:Cr("0x17"),content:Yo(r,Cr("0x2b"),e[Cr("0x1")](", "))}:{type:"format",content:Yo(r,Cr("0x16"))}}})),t[Cr("0x2")].get(Cr("0x2f"))[Cr("0x33")](Cr("0x27")))}}function kr(t,e){const n=t[Cr("0x1f")](e);t.modifySelection(n,{unit:Cr("0x31"),direction:Cr("0x35")});const o=n.getFirstPosition();t[Cr("0x28")](n,{unit:Cr("0x31"),direction:Cr("0x2e")});const s=n[Cr("0xc")]();return t.createRange(o,s)}function Ar(t,e,n){const o=t[Cr("0x8")].t,r=e.split(/(?=[A-Z])/)[Cr("0x1")](" "),i=o(r[Cr("0x2a")](0).toUpperCase()+r[Cr("0x20")](1))[Cr("0x29")]();if(Cr("0x5")==typeof n)return i;if(Cr("0xb")===e||Cr("0x10")===e){const e=(0,s.normalizeColorOptions)(t.config[Cr("0x21")](Cr("0x23")))[Cr("0x24")]((t=>t[Cr("0x25")]==n));return i+" ("+(e?o(e.label)[Cr("0x29")]():n)+")"}if(Cr("0x26")===e&&isNaN(parseFloat(n))){const e=t.plugins[Cr("0x21")](Cr("0x13"))[Cr("0x30")](t.config.get(Cr("0xf"))).find((t=>t[Cr("0x25")]==n));return i+" ("+(e?o(e[Cr("0x6")])[Cr("0x29")]():n)+")"}return i+" ("+n+")"}const vr=["HeadingEditing","getSelectedBlocks","heading","config","*Change to:* %0","title","value","find","model","filter","selection","paragraph","markBlockFormat","change","format","commandName","match","plugins","get","blockName","document","registerElementLabel","checkChild","schema","heading.options","TrackChangesEditing","has","_descriptionFactory","editor","ELEMENT_HEADING_CUSTOM","isObject","commandParams","registerDescriptionCallback","afterInit","from","name","ELEMENT_HEADING"];var Rr,Sr;Rr=vr,Sr=372,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const Ir=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Ir("0x1f")](){const t=this[Ir("0x1a")],e=t.locale,n=t[Ir("0x1")][Ir("0x10")](Ir("0x16"));if(!t[Ir("0xf")][Ir("0x18")](Ir("0x23")))return;const o=t[Ir("0xf")][Ir("0x10")](Ir("0x17"));o.enableCommand(Ir("0x0"),((e,n)=>{const s=n.value,r=Array[Ir("0x20")](this[Ir("0x1a")].model[Ir("0x12")][Ir("0x8")][Ir("0x24")]())[Ir("0x7")]((t=>{return e=t,n=s,(o=this[Ir("0x1a")].model[Ir("0x15")])[Ir("0x14")](e.parent,n)&&!o[Ir("0x1c")](e)&&e[Ir("0x21")]!=n;var e,n,o}));t[Ir("0x6")][Ir("0xb")]((()=>{for(const t of r)o[Ir("0xa")](t,{commandName:Ir("0x0"),commandParams:[n],formatGroupId:Ir("0x11")},fs(t))}))}));for(const t of n)Ir("0x9")!=t[Ir("0x6")]&&o._descriptionFactory[Ir("0x13")](t[Ir("0x6")],(e=>{const n=Nr(t.model);return null!==n?s(e,n):r(e,t[Ir("0x3")])}));function s(t,n){return Yo(e,Ir("0x22"),[t,n])}function r(t,n){return Yo(e,Ir("0x1b"),[t,n])}o[Ir("0x19")][Ir("0x1e")]((t=>{const{type:o,data:i}=t;if("formatBlock"==o&&i&&Ir("0x0")==i[Ir("0xd")]){const t=i[Ir("0x1d")][0][Ir("0x4")],o=Nr(t);if(null!==o)return{type:Ir("0xc"),content:Yo(e,Ir("0x2"),s(1,o))};const x=n[Ir("0x5")]((e=>e[Ir("0x6")]===t)).title;return{type:Ir("0xc"),content:Yo(e,"*Change to:* %0",r(1,x))}}}))}}function Nr(t){const e=t[Ir("0xe")](/^heading(\d+)$/);return e?e[1]:null}const Mr=["format","_descriptionFactory","editor","getRanges","toLowerCase","*Set highlight:* %0","plugins","hasAttribute","afterInit","*Remove highlight*","model","backward","change","getAttribute","highlight.options","get","getFirstPosition","document","markInlineFormat","getLastMatchingPosition","title","find","createRange","selection","enableCommand","value","commandParams","FORMAT_HIGHLIGHT","TrackChangesEditing","highlight","formatInline","color","push","commandName","isCollapsed"];var wr,Or;wr=Mr,Or=447,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Pr extends t.Plugin{[Fr("0x10")](){const t=this[Fr("0xa")];if(!t[Fr("0xe")].has("HighlightEditing"))return;const e=t.plugins[Fr("0x17")](Fr("0x1"));e[Fr("0x20")](Fr("0x2"),((n,o={})=>{const s=t[Fr("0x12")][Fr("0x19")][Fr("0x1f")],r=s.getAttribute("highlight");let i=o[Fr("0x21")],x=[];if(s[Fr("0x7")]){const e=s[Fr("0x18")]();if(!s[Fr("0xf")](Fr("0x2")))return void n(o);{const n=t=>t.item[Fr("0x15")]("highlight")===r,o=e[Fr("0x1b")](n,{direction:Fr("0x13")}),s=e[Fr("0x1b")](n);x=[t[Fr("0x12")][Fr("0x1e")](o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0xb")]())i?x[Fr("0x5")](e):x[Fr("0x5")](...ms(Fr("0x2"),e,t[Fr("0x12")]));t.model[Fr("0x14")]((()=>{for(const t of x)e[Fr("0x1a")](t,{commandName:"highlight",commandParams:[{value:i}]})}))}));const n=t.locale;e[Fr("0x9")].registerDescriptionCallback((e=>{const{type:o,data:s}=e;if(Fr("0x3")==o&&s&&"highlight"==s[Fr("0x6")]){const e=n.t,o=s[Fr("0x22")][0][Fr("0x21")];if(o){const s=t.config[Fr("0x17")](Fr("0x16"))[Fr("0x1d")]((t=>t.model==o)),r=e(s.title)[Fr("0xc")]();return{type:Fr("0x8"),content:Yo(n,Fr("0xd"),r),color:{value:s[Fr("0x4")],title:s[Fr("0x1c")]}}}return{type:"format",content:Yo(n,Fr("0x11"),Yo(n,Fr("0x0")))}}}))}}const Dr=["conversion","elementToStructure","locale","addClass","createPositionAt","registerElementLabel","dataDowncast","get","createEmptyElement","ELEMENT_HORIZONTAL_LINE","div","_descriptionFactory","plugins","high","createContainerElement","horizontalLine","HorizontalLineEditing","TrackChangesEditing","ck-horizontal-line"];var Br,jr;Br=Dr,jr=320,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{afterInit(){const t=this.editor;if(!t.plugins.has(Ur("0x0")))return;t[Ur("0xf")][Ur("0xa")](Ur("0x1")).enableCommand(Ur("0x12"));const e=t[Ur("0xf")][Ur("0xa")](Ur("0x1")),n=t[Ur("0x5")];e[Ur("0xe")][Ur("0x8")](Ur("0x12"),(t=>Yo(n,Ur("0xc"),t))),t[Ur("0x3")].for(Ur("0x9"))[Ur("0x4")]({model:Ur("0x12"),view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return null;const o=e[Ur("0x11")](Ur("0xd")),s=e[Ur("0xb")]("hr");return e[Ur("0x6")](Ur("0x2"),o),e.insert(e[Ur("0x7")](o,0),s),o},converterPriority:Ur("0x10")})}}const Hr=["editing","getAttribute","value","get","locale","selection","_descriptionFactory","editor","plugins","getCustomProperty","rawHtml","enableCommand","document","ELEMENT_HTML_EMBED","registerDescriptionCallback","HtmlEmbed","element","TrackChangesEditing","getSelectedElement","commandName","*Change %0 content*","htmlEmbed","afterInit"];var zr,Wr;zr=Hr,Wr=416,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class qr extends t.Plugin{[Vr("0x14")](){const t=this[Vr("0x5")];if(!t[Vr("0x6")].has(Vr("0xd")))return;const e=t[Vr("0x6")][Vr("0x1")](Vr("0xf")),n=t[Vr("0x2")],o=t[Vr("0x15")].view[Vr("0xa")][Vr("0x3")];e[Vr("0x4")].registerElementLabel("rawHtml",(t=>Yo(n,Vr("0xb"),t))),t.plugins.get(Vr("0xf"))[Vr("0x9")](Vr("0x13"),((n,s)=>{const r=t.model,i=r[Vr("0xa")].selection;r.change((()=>{const t=function(t){const e=t[Vr("0x10")]();return e&&e.is(Vr("0xe"),Vr("0x8"))?t[Vr("0x10")]():null}(i);if(!t)return void n(null);const r=t[Vr("0x16")](Vr("0x0"))||"";void 0!==s&&s!==r&&(e.markBlockFormat(t,{commandName:Vr("0x13"),commandParams:[s]}),o[Vr("0x10")]()[Vr("0x7")]("rawHtmlApi").cancel())}))})),e._descriptionFactory[Vr("0xc")]((t=>{const{data:e}=t;if(e&&Vr("0x13")==e[Vr("0x11")]){const t=Yo(n,Vr("0xb"));return{type:"format",content:Yo(n,Vr("0x12"),t)}}}))}}const Kr=["selection","from","toLowerCase","afterInit","title","toPrevious","registerDescriptionCallback","_suggestionFactory","isBlockImage","ImageUtils","isInContent","ELEMENT_INLINE_IMAGE","imageTextAlternative","previous","isCollapsed","width","format","locale","next","side","ImageEditing","imageStylePostApply","refresh","newValue","get","element","start","imageTypeInline","commandName","normalizedStyles","discard","FORMAT_SIDE_IMAGE","getAttribute","_splitMarkerName","shouldConvertImageType","isIntersecting","model","editor","commandParams","detach","insertImage","caption","differ","isOwn","join","getContainedElement","hasAttribute","markBlockFormat","subType","markInsertion","ImageBlockEditing","getNearestSelectionRange","type","getClosestSelectedImageElement","formatBlock","has","ImageTextAlternativeEditing","isEqual","getSuggestions","formatInline","fromPosition","createRangeOn","backward","registerElementLabel","isInlineImage","enableCommand","ELEMENT_CAPTION","uploadImage","markInlineFormat","getCaptionFromImageModelElement","chain","value","head","discardSuggestion","ImageCaptionUtils","TrackChangesEditing","end","filter","createRange","commands","insertion","imageStylePreApply","convertBlockImageToInline","document","registerCustomCallback","forEach","_descriptionFactory","Inline image to block image","convertInlineImageToBlock","*Remove image text alternative*","getSuggestionCallback","schema","accept","forward","plugins","imageTypeBlock","imageStyle","findIndex","toggleImageCaption","suggestion","nodeBefore","isBefore","resizeImage","imageCaption","change","toNext","getSuggestion","alt"];var Xr,$r;Xr=Kr,$r=439,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return Kr[t-=0]};class Qr extends t.Plugin{[Jr("0x68")](){const t=this[Jr("0x1e")];if(!t[Jr("0x57")][Jr("0x30")](Jr("0xd")))return;const n=t[Jr("0x57")][Jr("0x11")](Jr("0x44")),o=t[Jr("0x57")][Jr("0x11")](Jr("0x2")),s={},r=t[Jr("0xa")];if(n.enableCommand(Jr("0x21")),n._descriptionFactory[Jr("0x38")]("imageBlock",(t=>Yo(r,"ELEMENT_IMAGE",t))),n[Jr("0x4f")][Jr("0x38")]("imageInline",(t=>Yo(r,Jr("0x4"),t))),n[Jr("0x4f")][Jr("0x38")](Jr("0x22"),(()=>Yo(r,Jr("0x3b")))),t[Jr("0x57")][Jr("0x30")]("ImageUploadEditing")&&n[Jr("0x3a")](Jr("0x3c")),t[Jr("0x57")][Jr("0x30")](Jr("0x2b"))&&t[Jr("0x57")][Jr("0x30")]("ImageInlineEditing")&&(n[Jr("0x3a")](Jr("0x14"),((e,s)=>{const r=o.getClosestSelectedImageElement(t[Jr("0x1d")][Jr("0x4c")][Jr("0x65")]);t[Jr("0x1d")][Jr("0x61")]((()=>{n.markBlockFormat(r,{commandName:Jr("0x14"),commandParams:[s]},[],Jr("0x4b"))}))})),n[Jr("0x3a")]("imageTypeBlock",((e,s)=>{t[Jr("0x1d")].change((r=>{let x=o[Jr("0x2e")](t.model[Jr("0x4c")][Jr("0x65")]),a=r.createRangeOn(x);const c=i.LivePosition[Jr("0x35")](a[Jr("0x13")],Jr("0x6a")),l=i.LivePosition.fromPosition(a[Jr("0x45")],Jr("0x62"));n.forceDefaultExecution((()=>e(s))),x=o[Jr("0x2e")](t[Jr("0x1d")][Jr("0x4c")][Jr("0x65")]),a=r.createRangeOn(x);const d=r[Jr("0x47")](c,l);c[Jr("0x20")](),l.detach(),n[Jr("0x28")](x,{commandName:Jr("0x14"),commandParams:[]},[],Jr("0x51")),d[Jr("0x13")][Jr("0x5e")](a.start)&&n[Jr("0x2a")](r[Jr("0x47")](d[Jr("0x13")],a[Jr("0x13")]),Jr("0x51")),a[Jr("0x45")][Jr("0x5e")](d[Jr("0x45")])&&n[Jr("0x2a")](r[Jr("0x47")](a[Jr("0x45")],d[Jr("0x45")]),Jr("0x51"))}))})),n._suggestionFactory[Jr("0x4d")]("formatBlock",Jr("0x51"),Jr("0x25"),(()=>{})),n[Jr("0x0")].registerCustomCallback(Jr("0x2f"),Jr("0x51"),Jr("0x55"),(()=>{})),n[Jr("0x0")][Jr("0x4d")](Jr("0x2f"),Jr("0x51"),Jr("0x17"),n[Jr("0x0")][Jr("0x53")](Jr("0x2f"),"",Jr("0x55"))),n[Jr("0x0")][Jr("0x4d")]("insertion",Jr("0x51"),Jr("0x25"),(()=>{})),n[Jr("0x0")].registerCustomCallback("insertion","convertInlineImageToBlock",Jr("0x17"),(([e])=>{const o=n._suggestionFactory[Jr("0x53")](Jr("0x49"),"",Jr("0x17"));let s=e.start,r=e[Jr("0x45")];const i=t.model[Jr("0x54")][Jr("0x2c")](s,Jr("0x37")),x=t[Jr("0x1d")][Jr("0x54")][Jr("0x2c")](r,Jr("0x56"));i[Jr("0x7")]&&(s=i.start),x[Jr("0x7")]&&(r=x[Jr("0x45")]),o([t[Jr("0x1d")][Jr("0x47")](s,r)])})),n[Jr("0x0")][Jr("0x4d")](Jr("0x2f"),Jr("0x51"),Jr("0x3f"),c),n[Jr("0x0")][Jr("0x4d")](Jr("0x49"),Jr("0x51"),Jr("0x3f"),c)),t[Jr("0x57")][Jr("0x30")]("ImageCaptionEditing")&&(n.enableCommand(Jr("0x5b"),((e,s)=>{const r=t[Jr("0x57")][Jr("0x11")](Jr("0x43"));let i=o.getClosestSelectedImageElement(t[Jr("0x1d")].document.selection),x=r[Jr("0x3e")](i);t[Jr("0x1d")].change((()=>{if(x)return void n.markDeletion(t[Jr("0x1d")][Jr("0x36")](x));const a=o[Jr("0x1")](i);e(s),i=o[Jr("0x2e")](t[Jr("0x1d")][Jr("0x4c")][Jr("0x65")]),x=r[Jr("0x3e")](i),n[Jr("0x2a")](t[Jr("0x1d")].createRangeOn(x),a?null:Jr("0x60"))}))})),n[Jr("0x0")].registerCustomCallback(Jr("0x49"),Jr("0x60"),"chain",c)),t.plugins[Jr("0x30")]("ImageStyleEditing")){n[Jr("0x3a")](Jr("0x59"),((s,r)=>{const i=t[Jr("0x57")][Jr("0x11")]("Users").me,x=t.commands[Jr("0x11")](Jr("0x59"));let a=o[Jr("0x2e")](t[Jr("0x1d")].document[Jr("0x65")]),c=t[Jr("0x1d")][Jr("0x36")](a),l=x[Jr("0x40")];if(l==r[Jr("0x40")])return;const d={commandName:Jr("0x59"),commandParams:[r],formatGroupId:(0,e.uid)()};t[Jr("0x1d")].change((()=>{if(n[Jr("0x33")]()[Jr("0x46")]((t=>t.isInContent&&i==t.author&&(Jr("0x2f")==t.type||Jr("0x34")==t[Jr("0x2d")])&&(Jr("0x4a")==t[Jr("0x29")]||Jr("0xe")==t[Jr("0x29")])&&t.getFirstRange()[Jr("0x32")](c)))[Jr("0x4e")]((t=>n[Jr("0x42")](t[Jr("0x41")]))),a=o[Jr("0x2e")](t.model.document[Jr("0x65")]),c=t.model[Jr("0x36")](a),x[Jr("0xf")](),t.commands[Jr("0x11")]("imageTypeInline")[Jr("0xf")](),t[Jr("0x48")][Jr("0x11")](Jr("0x58"))[Jr("0xf")](),l=x[Jr("0x40")],l!=r[Jr("0x40")])return o[Jr("0x39")](a)&&x[Jr("0x1b")](r[Jr("0x40")],a)?(s(r),a=o[Jr("0x2e")](t.model[Jr("0x4c")][Jr("0x65")]),void n[Jr("0x28")](a,{...d,commandReversedParams:[{value:l||null}]},[],"imageStylePreApply")):void(o[Jr("0x1")](a)?n.markBlockFormat(a,d,[],"imageStylePostApply"):n[Jr("0x3d")](c,d,Jr("0xe")))}))}));for(const e of t[Jr("0x57")][Jr("0x11")]("ImageStyleEditing")[Jr("0x16")])s[e.name]=e[Jr("0x69")][Jr("0x67")]();n[Jr("0x0")][Jr("0x4d")](Jr("0x2f"),Jr("0x4a"),Jr("0x25"),(()=>{})),n._suggestionFactory[Jr("0x4d")]("formatBlock",Jr("0xe"),"join",(()=>{})),n[Jr("0x0")].registerCustomCallback(Jr("0x34"),Jr("0xe"),Jr("0x25"),(()=>{})),n[Jr("0x0")].registerCustomCallback(Jr("0x2f"),"imageStylePreApply",Jr("0x55"),(()=>{})),n._suggestionFactory[Jr("0x4d")](Jr("0x2f"),Jr("0x4a"),"discard",((t,e)=>{n[Jr("0x0")].getSuggestionCallback(Jr("0x2f"),"",Jr("0x55"))(t,{commandName:e[Jr("0x15")],commandParams:e.commandReversedParams})})),n[Jr("0x0")][Jr("0x4d")](Jr("0x2f"),Jr("0x4a"),"chain",c)}const x=[{type:"formatBlock",subType:Jr("0x4a")},{type:"insertion",subType:"imageCaption"},{type:Jr("0x2f"),subType:Jr("0x51")},{type:"insertion",subType:Jr("0x51")}];function a(t,e){const s=x[Jr("0x5a")]((({type:e,subType:n})=>t[Jr("0x2d")]==e&&t[Jr("0x29")]==n)),r=x[Jr("0x5a")]((({type:t,subType:n})=>e[Jr("0x2d")]==t&&e.subType==n));if(s<0||r<0)return!1;const i=t.getFirstRange(),a=e.getFirstRange();if((0==s||1==s)&&2==r&&i[Jr("0x1c")](a))return!0;if(2==s&&3==r){const t=n._findSuggestions(i,Jr("0x49"))[Jr("0x46")]((({suggestion:t,meta:e})=>e[Jr("0x24")]&&Jr("0x51")==t[Jr("0x29")]));if(t.length>1&&a[Jr("0x45")].isEqual(i[Jr("0x13")]))return!0;if(1==t.length&&(i.start.isEqual(a[Jr("0x45")])||i.end[Jr("0x32")](a[Jr("0x13")])))return!0}if(3==s&&3==r&&i[Jr("0x13")][Jr("0x5e")](a[Jr("0x13")])){const t=i[Jr("0x45")].nodeAfter,e=a[Jr("0x13")][Jr("0x5d")];return o[Jr("0x1")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Jr("0x1d")].document.registerPostFixer((()=>{let e=!1;const s=Array[Jr("0x66")](t[Jr("0x1d")][Jr("0x4c")][Jr("0x23")].getChangedMarkers());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Jr("0x1a")](t);if(Jr("0x5c")==s&&n.hasSuggestion(a)){if("formatBlock"==i&&(Jr("0x4a")==x||Jr("0xe")==x)){const t=n[Jr("0x63")](a);if(r.newRange){const s=t.getFirstRange()[Jr("0x26")]();if(o[Jr("0x1")](s))continue;n[Jr("0x42")](t),e=!0}}if(Jr("0x49")==i&&Jr("0x60")==x&&!r.newRange){const t=n[Jr("0x63")](a);t.next&&t[Jr("0xb")][Jr("0x3")]&&(n.discardSuggestion(t.next),e=!0)}}}return e})),t[Jr("0x57")][Jr("0x30")]("ImageResize")&&n[Jr("0x3a")]("resizeImage",((e,s)=>{const r=o[Jr("0x2e")](t.model[Jr("0x4c")][Jr("0x65")]);r[Jr("0x19")](Jr("0x8"))!=s[Jr("0x8")]&&t[Jr("0x1d")][Jr("0x61")]((()=>{n[Jr("0x28")](r,{commandName:"resizeImage",commandParams:[s]})}))})),t[Jr("0x57")][Jr("0x30")](Jr("0x31"))&&n[Jr("0x3a")](Jr("0x5"),((e,s)=>{const r=o.getClosestSelectedImageElement(t[Jr("0x1d")][Jr("0x4c")].selection);(r[Jr("0x27")]("alt")?r[Jr("0x19")](Jr("0x64")):"")!=s[Jr("0x10")]&&t.model[Jr("0x61")]((()=>{n[Jr("0x28")](r,{commandName:"imageTextAlternative",commandParams:[s]})}))})),n[Jr("0x4f")][Jr("0x6b")]((t=>{if(x.find((({type:e,subType:n})=>t[Jr("0x2d")]==e&&t.subType==n)))return t[Jr("0x6")]?{}:void 0})),n[Jr("0x4f")][Jr("0x6b")]((t=>{if(Jr("0x49")==t[Jr("0x2d")]||"deletion"==t[Jr("0x2d")]){const e=t[Jr("0x26")]();if(e&&e.is(Jr("0x12"),Jr("0x22")))return{type:Jr("0x49")==t[Jr("0x2d")]?"addObject":"removeObject",element:e,quantity:1}}})),n[Jr("0x4f")][Jr("0x6b")]((t=>"formatBlock"==t[Jr("0x2d")]&&Jr("0x51")==t.subType?{type:Jr("0x9"),content:Jr("0x50")}:"formatBlock"==t[Jr("0x2d")]&&Jr("0x4b")==t[Jr("0x29")]?{type:"format",content:"Block image to inline image"}:void 0)),n[Jr("0x4f")][Jr("0x6b")]((t=>{const{data:e}=t;if(e){if(Jr("0x59")==e[Jr("0x15")]){const t=e[Jr("0x1f")][0][Jr("0x40")];return n=Jr("0xc")===t?Yo(r,Jr("0x18")):s[t]||t,{type:Jr("0x9"),content:Yo(r,"*Format:* %0",n)}}if(Jr("0x5")==e[Jr("0x15")]){const t=e[Jr("0x1f")][0][Jr("0x10")];return t?{type:Jr("0x9"),content:Yo(r,"*Set image text alternative:* %0",'"'+t+'"')}:{type:Jr("0x9"),content:Yo(r,Jr("0x52"))}}if(Jr("0x5f")==e[Jr("0x15")]){const t=e[Jr("0x1f")][0][Jr("0x8")];return t?{type:Jr("0x9"),content:Yo(r,"*Set image width:* %0",t)}:{type:Jr("0x9"),content:Yo(r,"*Reset image width*")}}}var n}))}}const Zr=["registerCustomCallback","enableCommand","accept","_descriptionFactory","data","has","selection","Users","formatBlock","commandParams","source","*Format:* replace image URL","getSelectedElement","change","discard","format","plugins","src","handleSuggestionDescription","ImageEditing","registerDescriptionCallback","model","document","get","commandName","author","_suggestionFactory","editor","locale","subType","getSuggestions","getAttribute","afterInit","replaceImageSource","getContainedElement","getSuggestionCallback","TrackChangesEditing"];var Yr,ti;Yr=Zr,ti=488,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0x19")](){if(!this[ei("0x14")][ei("0x9")][ei("0x23")](ei("0xc")))return;const t=this[ei("0x14")][ei("0x9")].get(ei("0x1d"));t[ei("0x1f")](ei("0x1a"),((t,e)=>this.handleReplaceImageCommand(t,e))),t[ei("0x13")][ei("0x1e")](ei("0x1"),ei("0x1a"),"accept",t._suggestionFactory[ei("0x1c")]("formatBlock",null,ei("0x7"))),t[ei("0x13")][ei("0x1e")]("formatBlock",ei("0x1a"),"discard",t[ei("0x13")].getSuggestionCallback(ei("0x1"),null,ei("0x20"))),t[ei("0x21")][ei("0xd")]((t=>this[ei("0xb")](t)))}handleReplaceImageCommand(t,e){const n=this[ei("0x14")][ei("0x9")].get(ei("0x1d")),o=this[ei("0x14")][ei("0xe")][ei("0xf")][ei("0x24")][ei("0x5")]();this[ei("0x14")][ei("0xe")][ei("0x6")]((()=>{let s=o[ei("0x18")](ei("0xa"));const r=this[ei("0x14")][ei("0x9")][ei("0x10")](ei("0x0")).me;for(const t of n[ei("0x17")]({skipNotAttached:!0})){const e=t[ei("0x1b")]();if(ei("0x1a")===t[ei("0x16")]&&e===o){t[ei("0x12")]!==r&&t[ei("0x7")](),s=t[ei("0x22")][ei("0x2")][0][ei("0x3")];break}}t(e),n.markBlockFormat(o,{commandName:ei("0x1a"),commandParams:[{source:s}]},[],ei("0x1a"))}))}[ei("0xb")](t){const{data:e}=t;if(e&&ei("0x1a")===e[ei("0x11")]){const t=ei("0x4");return{type:ei("0x8"),content:Yo(this[ei("0x14")][ei("0x15")],t)}}}}const oi=["collaboration_features","editor","dataInsert","high","_trackChangesValueDuringImport","enableCommand","_setSuggestionData","trackChanges","importWord","TrackChangesEditing","bind","_handleImportedData","listenTo","execute","plugins","commands","afterInit","get","_trackChangesExecuted","forEach"];var si,ri;si=oi,ri=393,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{constructor(t){super(t),this[ii("0xb")]=!1,this[ii("0x5")]=!1}[ii("0x3")](){const t=this.editor,e=t[ii("0x2")][ii("0x4")](ii("0xf")),n=t.commands[ii("0x4")](ii("0xe"));e&&(e.on(ii("0x0"),((t,[,e])=>{this._trackChangesValueDuringImport=n.value,e[ii("0x7")].track_changes=!this._trackChangesValueDuringImport}),{priority:ii("0xa")}),this[ii("0x13")](e,ii("0x9"),this[ii("0x12")][ii("0x11")](this)),this[ii("0x13")](e,"dataInsert",(()=>{this._trackChangesExecuted&&(n[ii("0x0")](),this._trackChangesExecuted=!1)}),{priority:"lowest"}),t.plugins.get(ii("0x10"))[ii("0xc")](ii("0xf")))}[ii("0x12")](t,e){const{suggestions:n}=e,o=this[ii("0x8")].commands[ii("0x4")]("trackChanges"),s=o.value;this[ii("0xb")]!==s&&(o.execute(),this[ii("0x5")]=!0),n&&n[ii("0x6")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this.editor.plugins[ii("0x4")]("Users").me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:"importWord"}}};this.editor[ii("0x1")].get(ii("0x10"))[ii("0xd")](s)}))}}const ai=["registerDescriptionCallback","locale","enableCommand","TrackChangesEditing","has","outdent","from","_descriptionFactory","*Indent:* %0","get","checkAttribute","format","getItemLabel","commandName","blockIndent","plugins","IndentEditing","filter","indentBlock","schema","markBlockFormat","indent","model","outdentBlock","change","IndentBlock","editor","document"];var ci,li;ci=ai,li=426,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{afterInit(){const t=this.editor,e=t[di("0x9")][di("0x3")](di("0x19"));t.plugins[di("0x1a")](di("0xa"))&&(e.enableCommand(di("0xf")),e.enableCommand(di("0x1b")));const n=t[di("0x17")];if(t[di("0x9")][di("0x1a")](di("0x13"))){for(const n of[di("0xc"),"outdentBlock"])e[di("0x18")](n,(()=>{const o=Array[di("0x0")](this.editor[di("0x10")][di("0x15")].selection.getSelectedBlocks())[di("0xb")]((t=>this[di("0x14")][di("0x10")][di("0xd")][di("0x4")](t,di("0x8"))));t[di("0x10")][di("0x12")]((()=>{for(const t of o)e[di("0xe")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:di("0xc")})}))}));e[di("0x1")][di("0x16")]((t=>{const{data:o}=t;if(!o)return;if("indentBlock"!=o.commandName&&"outdentBlock"!=o[di("0x7")])return;const s=t.getItems()[0],r=e[di("0x1")][di("0x6")](s);return"indentBlock"==o[di("0x7")]?{type:di("0x5"),content:Yo(n,di("0x2"),r)}:di("0x11")==o[di("0x7")]?{type:di("0x5"),content:Yo(n,"*Outdent:* %0",r)}:void 0}))}}}var gi,mi,fi=["requires","input","enableCommand","editor"];gi=fi,mi=334,function(t){for(;--t;)gi.push(gi.shift())}(++mi);var hi=function(t,e){return fi[t-=0]};class bi extends t.Plugin{static get[hi("0x2")](){return[Vs.Input]}init(){this[hi("0x1")].plugins.get("TrackChangesEditing")[hi("0x0")](hi("0x3"))}}const pi=["LinkEditing","hasAttribute","selection","model","*Remove link*","linkHref","commandParams","isCollapsed","getRanges","link","unlink","locale","editor","markInlineFormat","format","enableCommand","has","plugins","commandName","getFirstPosition","change","getFirstRange","document","getAttribute"];var Ei,_i;Ei=pi,_i=489,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return pi[t-=0]};class Ci extends t.Plugin{afterInit(){const t=this.editor;if(!t.plugins[Ti("0x7")](Ti("0xf")))return;const e=t[Ti("0x8")].get("TrackChangesEditing");e[Ti("0x6")](Ti("0x0"),((n,o)=>{const s=t[Ti("0x12")][Ti("0xd")][Ti("0x11")];let r=[];if(s[Ti("0x16")]){if(!s[Ti("0x10")](Ti("0x14")))return void n(o);{const e=(0,Vs.findAttributeRange)(s[Ti("0xa")](),Ti("0x14"),s[Ti("0xe")](Ti("0x14")),t[Ti("0x12")]);r=[e]}}else r=Array.from(s[Ti("0x17")]());t[Ti("0x12")][Ti("0xb")]((()=>{for(const t of r)e[Ti("0x4")](t,{commandName:Ti("0x0"),commandParams:[o]})}))})),e[Ti("0x6")](Ti("0x1"),(()=>{const n=this[Ti("0x3")][Ti("0x12")],o=n[Ti("0xd")][Ti("0x11")];n[Ti("0xb")]((()=>{let n=[];n=o[Ti("0x16")]?[(0,Vs.findAttributeRange)(o[Ti("0xa")](),Ti("0x14"),o[Ti("0xe")]("linkHref"),t[Ti("0x12")])]:ms(Ti("0x14"),o[Ti("0xc")](),t[Ti("0x12")]);for(const t of n)e[Ti("0x4")](t,{commandName:Ti("0x1"),commandParams:[]})}))})),e._descriptionFactory.registerDescriptionCallback((e=>{const{data:n}=e,o=t[Ti("0x2")];if(n){if(Ti("0x0")==n[Ti("0x9")]){const t=n[Ti("0x15")][0];return{type:Ti("0x5"),content:Yo(o,"*Set link:* %0",'"'+t+'"')}}return Ti("0x1")==n[Ti("0x9")]?{type:Ti("0x5"),content:Yo(o,Ti("0x13"))}:void 0}}))}}const yi=["filter","ListEditing","markBlockFormat","schema","createRange","ELEMENT_TODO_LIST","before","afterInit","_selectedElements","listIndent","nextSibling","*Uncheck item*","getSelectedBlocks","slice","commands","bulletedList","*Outdent:* %0","enableCommand","blockName","indentList","selection","checkTodoList","todoList","add","ELEMENT_NUMBERED_LIST","todo","checkChild","commandParams","parent","plugins","get","length","editor","push","element","todoListChecked","document","replace","isObject","model","paragraph","locale","ELEMENT_LIST_ITEM","numbered","bulleted","listItem","name","createPositionAt","change","*Change to:* %0","from","execute","format","TrackChangesEditing","outdentList","commandName","has","TodoListEditing","_descriptionFactory","previousSibling","numberedList","value","findIndex","forceValue","getAttribute"];var ki,Ai;ki=yi,Ai=400,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0x3e")](){const t=this[vi("0x16")],e=t[vi("0x1f")];if(!t[vi("0x13")][vi("0x2e")](vi("0x38")))return;const n=t[vi("0x13")].get(vi("0x2b")),o=t[vi("0x13")].has(vi("0x2f"));function s(e){return()=>{const o=t.model[vi("0x1a")][vi("0xa")],s=t[vi("0x4")][vi("0x14")](e);if(s[vi("0x33")])return void t[vi("0x29")](vi("0x1e"),{});const r=e[vi("0x3")](0,-4),i=function(t,e,n){let o=Array[vi("0x28")](t)[vi("0x37")]((t=>{return e=t,(o=n)[vi("0x10")](e[vi("0x12")],vi("0x23"))&&!o[vi("0x1c")](e);var e,o}));o=o[vi("0x37")]((t=>!t.is(vi("0x18"),vi("0x23"))||t[vi("0x36")]("listType")!=e));const s=new Set;for(const t of o)t.is("element",vi("0x23"))?s[vi("0xd")](Si(t)):s[vi("0xd")](t);return Array[vi("0x28")](s)}(o[vi("0x2")](),r,t[vi("0x1d")][vi("0x3a")]);t[vi("0x1d")].change((()=>{for(const t of i)n[vi("0x39")](t,{commandName:e,commandParams:[{forceValue:!s.value}],formatGroupId:vi("0x8")},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[vi("0x28")](t);const n=e[vi("0x34")]((t=>"listItem"!=t[vi("0x24")]));return n>-1&&(e=e[vi("0x3")](0,n)),e}(t.model[vi("0x1a")][vi("0xa")].getSelectedBlocks()),s=t[vi("0x1d")][vi("0x3b")](t[vi("0x1d")][vi("0x25")](o[0],vi("0x3d")),t.model[vi("0x25")](o[o[vi("0x15")]-1],"end"));t[vi("0x1d")][vi("0x26")]((()=>{n[vi("0x39")](s,{commandName:e,commandParams:[],formatGroupId:vi("0x40")},function(t){const e=new Set;for(const n of t){let t=n[vi("0x0")];for(;t&&t.getAttribute("listIndent")>n[vi("0x36")](vi("0x40"));)e.add(t),t=t[vi("0x0")]}return Array.from(e)}(o))}))}}n[vi("0x7")]("numberedList",s(vi("0x32"))),n[vi("0x7")](vi("0x5"),s("bulletedList")),o&&n[vi("0x7")](vi("0xc"),s(vi("0xc"))),n[vi("0x7")](vi("0x9"),r("indentList")),n[vi("0x7")]("outdentList",r(vi("0x2c"))),o&&n.enableCommand(vi("0xb"),(()=>{const e=t[vi("0x4")].get(vi("0xb")),o=Array[vi("0x28")](e[vi("0x3f")]);o[vi("0x37")]((t=>t.getAttribute(vi("0x19"))!=e[vi("0x33")])),t[vi("0x1d")].change((()=>{for(const t of o)n.markBlockFormat(t,{commandName:vi("0xb"),commandParams:[{forceValue:!e[vi("0x33")]}]})}))})),n[vi("0x30")].registerElementLabel("listItem",(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n[vi("0x30")].registerDescriptionCallback((t=>{const{data:n}=t;if(n){if(vi("0x32")==n[vi("0x2d")]||"bulletedList"==n[vi("0x2d")]||vi("0xc")==n.commandName)switch(n[vi("0x2d")][vi("0x1b")]("List","")){case vi("0x22"):return o(Yo(e,"ELEMENT_BULLETED_LIST"));case vi("0x21"):return o(Yo(e,vi("0xe")));case vi("0xf"):return o(Yo(e,vi("0x3c")))}if(vi("0x9")==n[vi("0x2d")])return{type:"format",content:Yo(e,"*Indent:* %0",Yo(e,vi("0x20")))};if(vi("0x2c")==n[vi("0x2d")])return{type:vi("0x2a"),content:Yo(e,vi("0x6"),Yo(e,"ELEMENT_LIST_ITEM"))};if("checkTodoList"==n[vi("0x2d")])return n[vi("0x11")][0][vi("0x35")]?{type:vi("0x2a"),content:Yo(e,"*Check item*")}:{type:vi("0x2a"),content:Yo(e,vi("0x1"))}}function o(t){return{type:"format",content:Yo(e,vi("0x27"),t)}}}))}}function Si(t){const e=t.getAttribute(vi("0x40"));if(0==e)return t;let n=t;for(;t.previousSibling&&t.previousSibling.is("element",vi("0x23"));){const o=t[vi("0x31")][vi("0x36")](vi("0x40"));if(o==e)n=t[vi("0x31")];else if(o<e)break;t=t[vi("0x31")]}return n}function Ii(t){const e=[];if(t.is(vi("0x18"),"listItem")&&t[vi("0x36")](vi("0x40"))>0){let n=t[vi("0x0")];for(;n&&"listItem"==n[vi("0x24")]&&n[vi("0x36")](vi("0x40"))==t[vi("0x36")](vi("0x40"));)e[vi("0x17")](n),n=n[vi("0x0")]}return e}const Li=["from","unshift","handleListStyleCommand","getListTypeFromListStyleType","*Format:* set start index to %0","styles","push","type","*Format:* set order to reversed","markMultiRangeBlockFormat","enableCommand","replace","listStart","backward","listType","flat","_getSuggestionBlocksForListStyle","_getSuggestionBlocks","change","list.properties","listItem","TrackChangesEditing","getSiblingNodes","model","_LIST_","numbered","editor","getAttribute","commandName","ListUtils","createPositionAt","ELEMENT_","listReversed","filter","handleDescriptions","get","forward","getFirstPosition","before","getLastPosition","element","plugins","commandParams","toUpperCase","createRange","format","getSelectedBlocks","has","_getTranslationKeyForListStyle","bind","document","_descriptionFactory","registerDescriptionCallback","selection","map","handleListReversedCommand","parent","ListPropertiesEditing","reversed","startIndex","handleListStartCommand","listStyle","length"];var Ni,Mi;Ni=Li,Mi=219,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{afterInit(){if(!this[wi("0x3b")][wi("0xb")][wi("0x11")](wi("0x1b")))return;const t=this.editor.config[wi("0x5")](wi("0x34")),e=this[wi("0x3b")][wi("0xb")][wi("0x5")](wi("0x36"));t[wi("0x26")]&&e[wi("0x2b")](wi("0x1f"),this[wi("0x23")][wi("0x13")](this)),t.reversed&&e[wi("0x2b")](wi("0x2"),this[wi("0x19")][wi("0x13")](this)),t[wi("0x1d")]&&e[wi("0x2b")](wi("0x2d"),this[wi("0x1e")][wi("0x13")](this)),e[wi("0x15")][wi("0x16")](this[wi("0x4")][wi("0x13")](this))}[wi("0x23")](t,e={}){const n=this[wi("0x3b")][wi("0xb")][wi("0x5")](wi("0x36")),o=this[wi("0x31")]();this[wi("0x3b")][wi("0x38")][wi("0x33")]((()=>{n[wi("0x2a")](o,{commandName:wi("0x1f"),commandParams:[{type:e[wi("0x28")]}],formatGroupId:wi("0x1f")})}))}[wi("0x19")](t,e={}){const n=this[wi("0x3b")].plugins[wi("0x5")]("TrackChangesEditing"),o=this[wi("0x32")]((t=>t.is(wi("0xa"),wi("0x35"))&&wi("0x3a")===t[wi("0x3c")](wi("0x2f"))));if(o.length<1)return;const s=o[wi("0x18")]((t=>this[wi("0x3b")][wi("0x38")].createRange(this[wi("0x3b")][wi("0x38")][wi("0x0")](t,"before"),this.editor[wi("0x38")][wi("0x0")](t,0))));this[wi("0x3b")][wi("0x38")][wi("0x33")]((()=>{n[wi("0x2a")](s,{commandName:wi("0x2"),commandParams:[{reversed:e.reversed}],formatGroupId:wi("0x2")})}))}[wi("0x1e")](t,e={}){const n=this[wi("0x3b")][wi("0xb")].get(wi("0x36")),o=this[wi("0x32")]((t=>t.is(wi("0xa"),wi("0x35"))&&wi("0x3a")===t[wi("0x3c")](wi("0x2f"))));if(o[wi("0x20")]<1)return;const s=o.map((t=>this.editor[wi("0x38")][wi("0xe")](this[wi("0x3b")].model[wi("0x0")](t,wi("0x8")),this.editor[wi("0x38")][wi("0x0")](t,0))));this[wi("0x3b")].model[wi("0x33")]((()=>{n[wi("0x2a")](s,{commandName:wi("0x2d"),commandParams:[{startIndex:e[wi("0x1d")]}],formatGroupId:wi("0x2d")})}))}[wi("0x4")](t){const e=this[wi("0x3b")].locale,{data:n}=t;if(!n)return;let o,s;switch(n[wi("0x3d")]){case wi("0x1f"):o="*Change to:* %0",s={type:"format",content:Yo(e,o,Yo(e,this[wi("0x12")](n[wi("0xc")][0].type)))};break;case wi("0x2"):o=n.commandParams[0][wi("0x1c")]?wi("0x29"):"*Format:* set order to regular",s={type:wi("0xf"),content:Yo(e,o)};break;case"listStart":o=wi("0x25"),s={type:wi("0xf"),content:Yo(e,o,n.commandParams[0][wi("0x1d")])}}return s}[wi("0x31")](){var t,e,n,o;const s=this[wi("0x3b")][wi("0xb")][wi("0x5")](wi("0x3e"));let r=Array[wi("0x21")](this[wi("0x3b")][wi("0x38")].document[wi("0x17")][wi("0x10")]());return(null===(t=r[0])||void 0===t?void 0:t.is(wi("0xa"),"listItem"))&&r[wi("0x22")](...s.getSiblingNodes(this[wi("0x3b")].model[wi("0x14")][wi("0x17")][wi("0x7")](),wi("0x2e"))),(null===(e=r[r[wi("0x20")]-1])||void 0===e?void 0:e.is(wi("0xa"),wi("0x35")))&&r[wi("0x27")](...s[wi("0x37")](this[wi("0x3b")][wi("0x38")][wi("0x14")].selection[wi("0x9")](),wi("0x6"))),r=[...new Set(r)],(null===(o=null===(n=this[wi("0x3b")].model[wi("0x14")][wi("0x17")].getFirstPosition())||void 0===n?void 0:n[wi("0x1a")])||void 0===o?void 0:o.is(wi("0xa"),wi("0x35")))&&(r=r.filter((t=>t.is("element",wi("0x35"))))),r}[wi("0x32")](t){const e=this[wi("0x3b")][wi("0xb")][wi("0x5")](wi("0x3e"));let n=Array.from(this.editor[wi("0x38")][wi("0x14")][wi("0x17")][wi("0x10")]())[wi("0x3")](t)[wi("0x18")]((t=>{const n=this.editor.model.createPositionAt(t,0);return[...e[wi("0x37")](n,wi("0x2e")),...e[wi("0x37")](n,wi("0x6"))]}))[wi("0x30")]();return n=[...new Set(n)],n}[wi("0x12")](t){return wi("0x1")+this[wi("0x3b")][wi("0xb")][wi("0x5")](wi("0x3e"))[wi("0x24")](t)[wi("0xd")]()+wi("0x39")+t[wi("0xd")]()[wi("0x2c")](/-/g,"_")}}const Fi=["media","downcastDispatcher","_descriptionFactory","MediaEmbedEditing","stop","locale","div","plugins","editor","createEmptyElement","TrackChangesEditing","high","enableCommand","has","showSuggestionHighlights","data","conversion","for","ELEMENT_MEDIA","mediaEmbed"];var Pi,Di;Pi=Fi,Di=329,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{afterInit(){const t=this[Bi("0x13")];if(!t.plugins[Bi("0x4")](Bi("0xe")))return;const e=t[Bi("0x12")].get(Bi("0x1")),n=t[Bi("0x10")];e[Bi("0x3")](Bi("0xa")),e[Bi("0xd")].registerElementLabel(Bi("0xb"),(t=>Yo(n,Bi("0x9"),t))),t[Bi("0x7")][Bi("0x8")]("dataDowncast").elementToElement({model:"media",view:(t,{writer:e,options:n})=>{if(n.showSuggestionHighlights)return e[Bi("0x0")](Bi("0x11"))},converterPriority:Bi("0x2")}),t[Bi("0x6")][Bi("0xc")].on("attribute:url:media",((t,e,n)=>{n.options[Bi("0x5")]&&t[Bi("0xf")]()}),{priority:Bi("0x2")})}}const Ui=["afterInit","TrackChangesEditing","get","editor","enableCommand","MentionEditing","has","mention","plugins"];var Gi,Hi;Gi=Ui,Hi=489,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{[zi("0x6")](){const t=this[zi("0x0")];t[zi("0x5")][zi("0x3")](zi("0x2"))&&t[zi("0x5")][zi("0x8")](zi("0x7"))[zi("0x1")](zi("0x4"))}}const Vi=["ELEMENT_PAGE_BREAK","plugins","get","registerElementLabel","PageBreakEditing","has","TrackChangesEditing","pageBreak","enableCommand","locale","editor"];var qi,Ki;qi=Vi,Ki=242,function(t){for(;--t;)qi.push(qi.shift())}(++Ki);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{afterInit(){const t=this[Xi("0xa")];if(!t.plugins[Xi("0x5")](Xi("0x4")))return;t[Xi("0x1")][Xi("0x2")](Xi("0x6"))[Xi("0x8")]("pageBreak");const e=t[Xi("0x1")][Xi("0x2")](Xi("0x6")),n=t[Xi("0x9")];e._descriptionFactory[Xi("0x3")](Xi("0x7"),(t=>Yo(n,Xi("0x0"),t)))}}const Ji=["ck-suggestion-marker--active","commandName","plugins","start","span","locale","_descriptionFactory","options","writer","insert","name","createUIElement","editor","paragraph","addMarker:suggestion:insertion","addClass","editing","data","$text","filter","isTouching","parent","format","selection","schema","TrackChangesEditing","showSuggestionHighlights","from","end","afterInit","markerName","isBlock","registerElementLabel","highest","checkChild","registerDescriptionCallback","consume","getSelectedBlocks","*Insert:* %0","get","model","insertParagraph","markBlockFormat","insertion","ELEMENT_PARAGRAPH","*Change to:* %0","enableCommand","includes","isObject","downcastDispatcher","nodeAfter","isLimit","markerRange","blockName","Paragraph","consumable"];var Qi,Zi;Qi=Ji,Zi=371,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0x32")](){const t=this.editor;if(!t.plugins.has(Yi("0x13")))return;const e=t[Yi("0x1a")],n=t[Yi("0x17")][Yi("0x4")]("TrackChangesEditing");n[Yi("0x1b")][Yi("0x35")](Yi("0x22"),(t=>Yo(e,Yi("0x9"),t))),n[Yi("0xb")]("paragraph",((e,o={})=>{const s=t[Yi("0x5")].document,r=o[Yi("0x2c")]||s[Yi("0x2c")],i=Array[Yi("0x30")](r[Yi("0x2")]())[Yi("0x28")]((t=>{return e=t,(n=this[Yi("0x21")][Yi("0x5")][Yi("0x2d")])[Yi("0x37")](e[Yi("0x2a")],Yi("0x22"))&&!n[Yi("0xd")](e)&&"paragraph"!=e[Yi("0x1f")];var e,n}));t[Yi("0x5")].change((()=>{for(const t of i)n[Yi("0x7")](t,{commandName:"paragraph",commandParams:[],formatGroupId:Yi("0x12")},fs(t))}))})),n[Yi("0x1b")][Yi("0x0")]((t=>{const{data:n}=t;if(n&&Yi("0x22")==n[Yi("0x16")])return{type:Yi("0x2b"),content:Yo(e,Yi("0xa"),Yo(e,"ELEMENT_PARAGRAPH"))}})),n.enableCommand(Yi("0x6")),t[Yi("0x25")][Yi("0xe")].on("addMarker:suggestion:insertion",ex(t),{priority:Yi("0x36")}),t[Yi("0x26")].downcastDispatcher.on(Yi("0x23"),((e,n,o)=>{o[Yi("0x1c")][Yi("0x2f")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:"highest"});const o=n[Yi("0x1b")];o[Yi("0x0")]((n=>{if(Yi("0x8")!==n.type)return;const{start:s,end:r}=n.getFirstRange();if(!s[Yi("0x29")](r)||!s[Yi("0xf")])return;const i=t.model[Yi("0x2d")],x=s[Yi("0xf")];return i[Yi("0x34")](x)&&!i[Yi("0x10")](x)&&i[Yi("0x37")](x,Yi("0x27"))?{type:"insertion",content:Yo(e,Yi("0x3"),o.getItemLabel(x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t.plugins[Yi("0x4")](Yi("0x2e")),i=o.markerRange[Yi("0x18")],x=o[Yi("0x11")][Yi("0x31")],a=t[Yi("0x5")][Yi("0x2d")];if(!i[Yi("0x29")](x)||!i[Yi("0xf")])return;const c=i[Yi("0xf")];if(a.isBlock(c)&&!a.isLimit(c)&&a.checkChild(c,Yi("0x27"))){if(!s[Yi("0x14")][Yi("0x1")](o[Yi("0x11")],n.name))return;const t=s[Yi("0x1d")][Yi("0x20")](Yi("0x19"),{class:"ck-suggestion-marker-split"}),i=s.mapper.toViewPosition(x);e&&r.activeMarkers[Yi("0xc")](o[Yi("0x33")])&&s[Yi("0x1d")][Yi("0x24")](Yi("0x15"),t),s[Yi("0x1d")][Yi("0x1e")](i,t),s.mapper.bindElementToMarker(t,o[Yi("0x33")])}}}const nx=["plugins","isFormatting","schema","change","markInlineFormat","document","_descriptionFactory","getAttributes","has","RemoveFormatEditing","get","commandName","getAttributeProperties","removeFormat","model","afterInit","editor","*Remove all formatting*","isCollapsed","locale"];var ox,sx;ox=nx,sx=449,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[rx("0x6")](){const t=this[rx("0x7")];if(!t[rx("0xb")][rx("0x13")](rx("0x0")))return;const e=t[rx("0xb")][rx("0x1")]("TrackChangesEditing");e.enableCommand(rx("0x4"),(n=>{const o=t[rx("0x5")][rx("0x10")].selection;o[rx("0x9")]?n():t.model[rx("0xe")]((()=>{const n=Array.from(o.getRanges());for(const o of n)for(const n of o.getItems())xx(n,t[rx("0x5")][rx("0xd")])&&e[rx("0xf")](t[rx("0x5")].createRangeOn(n),{commandName:rx("0x4"),commandParams:[]})}))})),e[rx("0x11")].registerDescriptionCallback((e=>{const{data:n}=e;if(n&&rx("0x4")==n[rx("0x2")])return{type:"format",content:Yo(t[rx("0xa")],rx("0x8"))}}))}}function xx(t,e){for(const[n]of t[rx("0x12")]()){const t=e[rx("0x3")](n);if(t&&t[rx("0xc")])return!0}return!1}const ax=["acceptSelectedSuggestions","TrackChangesEditing","discardSelectedSuggestions","get","enableCommand","plugins","RestrictedEditingModeEditing","goToNextRestrictedEditingException","editor","has","goToPreviousRestrictedEditingException","discardAllSuggestions","acceptSuggestion","trackChanges","discardSuggestion"];var cx,lx;cx=ax,lx=251,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const dx=function(t,e){return ax[t-=0]};class ux extends t.Plugin{afterInit(){const t=this[dx("0xc")];if(!t.plugins[dx("0xd")](dx("0xa")))return;const e=t.plugins[dx("0x7")](dx("0x5"));e[dx("0x8")](dx("0xe")),e[dx("0x8")](dx("0xb"));const n=t[dx("0x9")][dx("0x7")](dx("0xa"));n[dx("0x8")](dx("0x2")),n.enableCommand(dx("0x1")),n[dx("0x8")](dx("0x3")),n.enableCommand("acceptAllSuggestions"),n[dx("0x8")](dx("0x0")),n.enableCommand(dx("0x4")),n[dx("0x8")](dx("0x6"))}}const gx=["init","locale","registerElementLabel","softBreak","editing","high","addMarker:suggestion","toViewPosition","plugins","options","downcastDispatcher","addMarker:suggestion:insertion","deletion","markerRange","writer","addMarker:suggestion:deletion","ck-suggestion-marker-","TrackChangesEditing","editor","activeMarkers","requires","name","showSuggestionHighlights","mapper","createPositionBefore","getItems","markerName","bindElementToMarker","span","split","data","enableCommand"];var mx,fx;mx=gx,fx=321,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class bx extends t.Plugin{static get[hx("0x13")](){return[nr.ShiftEnter]}[hx("0x1f")](){const t=this[hx("0x11")],e=t[hx("0x7")].get(hx("0x10"));e[hx("0x1e")]("shiftEnter"),t[hx("0x3")][hx("0x9")].on(hx("0xa"),px(t),{priority:hx("0x4")}),t[hx("0x3")].downcastDispatcher.on(hx("0xe"),px(t),{priority:hx("0x4")}),t[hx("0x1d")][hx("0x9")].on(hx("0x5"),((e,n,o)=>{o[hx("0x8")][hx("0x15")]&&px(t,{showActiveMarker:!1})(e,n,o)})),e._descriptionFactory[hx("0x1")](hx("0x2"),(e=>Yo(t[hx("0x0")],"ELEMENT_LINE_BREAK",e)))}}function px(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[hx("0x7")].get("TrackChangesEditing");if(!s.consumable.test(o[hx("0xc")],n[hx("0x14")]))return;const i=t.model;for(const t of o[hx("0xc")][hx("0x18")]()){if(!t.is("element",hx("0x2")))continue;const n=hx("0xb")==o[hx("0x19")][hx("0x1c")](":")[1]?"merge":hx("0x1c"),x=s[hx("0xd")].createUIElement(hx("0x1b"),{class:hx("0xf")+n}),a=s[hx("0x16")][hx("0x6")](i[hx("0x17")](t));e&&r[hx("0x12")].includes(o[hx("0x19")])&&s[hx("0xd")].addClass("ck-suggestion-marker--active",x),s[hx("0xd")].insert(a,x),s[hx("0x16")][hx("0x1a")](x,o[hx("0x19")])}}}const Ex=["commandParams","selection","getRanges","enableCommand","restrictedEditingException","commandName","has","TrackChangesEditing","forceValue","markInlineFormat","FORMAT_RESTRICTED_DISABLED","change","value","locale","FORMAT_RESTRICTED_ENABLED","get","document","StandardEditingModeEditing","plugins"];var _x,Tx;_x=Ex,Tx=407,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{afterInit(){const t=this.editor,e=t.model,n=t[Cx("0x5")];if(!t[Cx("0xa")][Cx("0x11")](Cx("0x9")))return;const o=t.plugins[Cx("0x7")](Cx("0x12")),s=Cx("0xf"),r=t.commands[Cx("0x7")](s);o[Cx("0xe")](s,((t,n={})=>{const i=e[Cx("0x8")][Cx("0xc")];if(i.isCollapsed)return void t(n);const x=void 0!==n[Cx("0x0")]?n.forceValue:!r[Cx("0x4")];e[Cx("0x3")]((()=>{const t=Array.from(i[Cx("0xd")]());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o[Cx("0x1")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o._descriptionFactory.registerDescriptionCallback((t=>{const{data:e}=t;if(e&&e[Cx("0x10")]==s)return e[Cx("0xb")][0].forceValue?{type:"format",content:Yo(n,Cx("0x6"))}:{type:"format",content:Yo(n,Cx("0x2"))}}))}}const kx=["*Remove format:* %0","plugins","markBlockFormat","commands","element","forceValue","registerDescriptionCallback","includes","classes","DataSchema","commandParams","every","push","isBlock","block","_descriptionFactory","isCollapsed","styleName","find","style.definitions","from","style","getAttribute","name","change","locale","modelElements","*Format:* %0","markInlineFormat","StyleUtils","TrackChangesEditing","model","_getStyleDefinition","get","toLowerCase","document","normalizeConfig","inline","getRanges","has","enabledStyles"];var Ax,vx;Ax=kx,vx=276,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{afterInit(){const t=this.editor;if(!t[Rx("0xc")][Rx("0x9")]("Style"))return;const e=t[Rx("0xe")].get(Rx("0x20")),n=t[Rx("0xc")][Rx("0x3")](Rx("0x0")),o=t[Rx("0x24")],s=t[Rx("0xc")][Rx("0x3")](Rx("0x14")),r=t[Rx("0xc")][Rx("0x3")](Rx("0x28"))[Rx("0x6")](s,t.config[Rx("0x3")](Rx("0x1e")));n.enableCommand(Rx("0x20"),((o,{styleName:i})=>{const x=t[Rx("0x1")][Rx("0x5")].selection,a=this[Rx("0x2")](i,r);if(!a)return;if(!e[Rx("0xa")][Rx("0x12")](i))return;if(x[Rx("0x1b")]&&!a[Rx("0x18")])return void o({styleName:i});const c=!e.value.includes(a[Rx("0x22")]);if(a[Rx("0x18")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o.getAncestors({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[Rx("0x12")](o[Rx("0x22")])){n.add(o);break}}return n}(x.getSelectedBlocks(),a[Rx("0x25")]);t.model[Rx("0x23")]((()=>{for(const t of e)n[Rx("0xd")](t,{commandName:Rx("0x20"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:"style:"+i})}))}else{let e=Array[Rx("0x1f")](x[Rx("0x8")]());if(!c){const n=Array[Rx("0x1f")](s.getDefinitionsForView(a[Rx("0xf")],!1))[0].model,o=[];for(const s of e){const e=this._getRangesWithClasses(t[Rx("0x1")],s,a[Rx("0x13")],n);o[Rx("0x17")](...e)}e=o}t.model.change((()=>{for(const t of e)n[Rx("0x27")](t,{commandName:Rx("0x20"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0x1a")][Rx("0x11")]((t=>{const{data:e}=t;if(e&&Rx("0x20")===e.commandName)return e[Rx("0x15")][0][Rx("0x10")]?{type:"format",content:Yo(o,Rx("0x26"),e[Rx("0x15")][0][Rx("0x1c")][Rx("0x4")]())}:{type:"format",content:Yo(o,Rx("0xb"),e.commandParams[0][Rx("0x1c")][Rx("0x4")]())}}))}[Rx("0x2")](t,e){let n=e[Rx("0x19")].find((e=>e[Rx("0x22")]===t));return n||(n=e[Rx("0x7")][Rx("0x1d")]((e=>e.name===t))),n}_getRangesWithClasses(t,e,n,o){const s=[];for(const r of e.getItems()){const e=r[Rx("0x21")](o);e&&n[Rx("0x16")]((t=>e.classes[Rx("0x12")](t)))&&s.push(t.createRangeOn(r))}return s}}const Ix=["left","getFirstRange","downcastDispatcher","document","ELEMENT_TABLE_WITH_TEXT","_tableSuggestions","max","TableUtils","insert","change","_tablePostFixingSubtypes","ELEMENT_TABLE","selectTableColumn","TrackChangesEditing","suggestion","toViewElement","selection","join","commands","rowspan","hasAttribute","$textProxy","get","forceValue","element","tableCell","item","options","substr","order","isArray","insertTableRowBelow","MAX_SAFE_INTEGER","setSelection","every","insertion","map","data","createRangeOn","low","values","isEqual","tableRow","addClass","getItems","writer","rootName","locale","subType","deletion","insertTableRowAbove","discard","maxRow","getAttribute","registerElementLabel","differ","removeClass","_setupColumnsRowsFixing","execute","type","getRowIndexes","detach","batch","findAncestor","accept","add","MIN_SAFE_INTEGER","startsWith","registerCustomCallback","span","root","addRange","first","tableColumn","table","ELEMENT_TABLE_ROW","enqueueChange","fromRange","$graveyard","start","length","editor","nodeAfter","_getSuggestionCoords","registerPostFixer","maxColumn","getCellLocation","last","*Remove:* %0","removeTableColumn","isTouching","ELEMENT_TABLE_ROW_WITH_TEXT","getSelectionAffectedTableCells","tablePaste","showSuggestionHighlights","getChanges","ELEMENT_TABLE_COLUMN","cell","classes","plugins","TableEditing","nodeBefore","highest","colspan","refresh","name","createTableWalker","_descriptionFactory","getContainedElement","insertTable","_splitMarkerName","ELEMENT_TABLE_COLUMN_WITH_TEXT","createPositionAt","end","includes","markMultiRangeInsertion","toLowerCase","enableCommand","getRanges","getChangedMarkers","position","insertTableColumnLeft","removeTableRow","from","filter","model","_getCoordsForCells","_suggestionFactory","registerDescriptionCallback","markMultiRangeDeletion","some","change:data","*Insert:* %0"];var Lx,Nx;Lx=Ix,Nx=357,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const Mx=function(t,e){return Ix[t-=0]};class wx extends t.Plugin{constructor(t){super(t),this[Mx("0x34")]=["tableRow","tableColumn"],this[Mx("0x2f")]=new Set}afterInit(){const t=this[Mx("0x7b")],e=t.model[Mx("0x2d")].selection;if(!t[Mx("0x8")].has(Mx("0x9")))return;const n=t[Mx("0x59")],o=t[Mx("0x8")][Mx("0x40")]("TrackChangesEditing"),s=t[Mx("0x8")][Mx("0x40")](Mx("0x31"));o._descriptionFactory[Mx("0x60")](Mx("0x74"),(t=>Yo(n,Mx("0x35"),t))),this[Mx("0x63")](),o[Mx("0x1a")](Mx("0x12")),o[Mx("0x1a")]("selectTableRow"),o[Mx("0x1a")](Mx("0x36"));for(const n of[Mx("0x5c"),Mx("0x49")]){const r=t.commands.get(n);o[Mx("0x1a")](n,(n=>{t.model.change((t=>{n();const i="above"===r[Mx("0x47")],x=s.getSelectionAffectedTableCells(e),a=s.getRowIndexes(x),c=i?a[Mx("0x72")]-1:a[Mx("0x81")]+1,l=x[0][Mx("0x69")](Mx("0x74")),d=s.createTableWalker(l,{startRow:c,endRow:c}),u=Array[Mx("0x20")](d).map((e=>t[Mx("0x50")](e.cell)));o[Mx("0x18")](u,Mx("0x54"))}))}))}for(const n of[Mx("0x1e"),"insertTableColumnRight"]){const r=t[Mx("0x3c")][Mx("0x40")](n);o[Mx("0x1a")](n,(n=>{t[Mx("0x22")].change((t=>{n();const i=Mx("0x2a")===r[Mx("0x47")],x=s[Mx("0x1")](e),a=s.getColumnIndexes(x),c=i?a[Mx("0x72")]-1:a.last+1,l=x[0][Mx("0x69")](Mx("0x74")),d=s[Mx("0xf")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[Mx("0x20")](d)[Mx("0x4e")]((e=>t[Mx("0x50")](e[Mx("0x6")])));o.markMultiRangeInsertion(u,Mx("0x73"))}))}))}for(const n of["removeTableRow",Mx("0x83")]){const r=n[Mx("0x46")](11),i=r[Mx("0x19")](),x=i[Mx("0x46")](0,3)+Mx("0x6f"),a=Mx("0x74")+r,c="min"+r,l=Mx("0x30")+r;o[Mx("0x1a")](n,(()=>{t[Mx("0x22")].change((t=>{const r=s[Mx("0x1")](e),d=r[0][Mx("0x69")](Mx("0x74"));let u;if(Mx("0x1f")==n){const t=s[Mx("0x66")](r);u={startRow:t[Mx("0x72")],endRow:t.last,includeAllSlots:!0}}else{const t=s.getColumnIndexes(r);u={startColumn:t.first,endColumn:t[Mx("0x81")],includeAllSlots:!0}}const g=s[Mx("0xf")](d,u),m=Array[Mx("0x20")](g)[Mx("0x4e")]((({cell:t})=>t)),f=Ox(m[Mx("0x21")]((t=>t[Mx("0x3e")](x)))),h=Ox(m[Mx("0x21")]((t=>!t[Mx("0x3e")](x))))[Mx("0x4e")]((e=>t.createRangeOn(e))),b=o[Mx("0x26")](h,a);if(b&&(Mx("0x54")==b[Mx("0x5a")]||Mx("0x73")==b[Mx("0x5a")])){const e=this._getSuggestionCoords(b);for(const n of f){const o=t[Mx("0x50")](n),r=s[Mx("0x80")](n),a=n[Mx("0x5f")](x)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+a<=u&&b[Mx("0x71")](o)}}}))}))}function r(n){const o=Array[Mx("0x20")](e[Mx("0x1b")]()).map((t=>i.LiveRange[Mx("0x77")](t)));t[Mx("0x22")][Mx("0x33")]((e=>{const s=e[Mx("0x68")];n=n[Mx("0x21")]((t=>Mx("0x78")!=t[Mx("0x70")][Mx("0x58")])),e.setSelection(n),t[Mx("0x3c")].get(Mx("0x1f"))[Mx("0xd")](),t.execute(Mx("0x1f"),{forceDefaultExecution:!0}),t[Mx("0x22")][Mx("0x76")]((()=>{t[Mx("0x22")].enqueueChange(s,(t=>{const e=o[Mx("0x21")]((t=>Mx("0x78")!=t.root[Mx("0x58")]));e.length>0&&t[Mx("0x4b")](e);for(const t of o)t[Mx("0x67")]()}))}))}))}function a(n){t[Mx("0x22")][Mx("0x33")]((o=>{const s=Array[Mx("0x20")](e.getRanges())[Mx("0x4e")]((t=>i.LiveRange[Mx("0x77")](t))),r=[];for(const t of n)for(const e of t[Mx("0x56")]({shallow:!0}))r.push(e);for(const e of r)Mx("0x78")!=e[Mx("0x70")][Mx("0x58")]&&(o[Mx("0x4b")](o[Mx("0x15")](e,0)),t.commands.get(Mx("0x83")).refresh(),t[Mx("0x64")](Mx("0x83"),{forceDefaultExecution:!0}));const x=s[Mx("0x21")]((t=>Mx("0x78")!=t.root[Mx("0x58")]));x[Mx("0x7a")]>0&&o[Mx("0x4b")](x);for(const t of s)t.detach()}))}function c(t,e){return e[Mx("0x4c")]((e=>t[Mx("0x27")]((t=>t.end[Mx("0x53")](e[Mx("0x79")])||e[Mx("0x16")][Mx("0x53")](t[Mx("0x79")])))))}function l(t,e){return t[Mx("0x27")]((t=>e[Mx("0x27")]((e=>t[Mx("0x16")][Mx("0x84")](e[Mx("0x79")])))))}t.data[Mx("0x2c")].on("addMarker:suggestion",((t,e,n)=>{if(!n[Mx("0x45")][Mx("0x3")])return;const o=e[Mx("0x44")];if(!o)return;const s=n.mapper[Mx("0x39")](o);function r(t){return Array[Mx("0x48")](t)?t:[t]}s&&Mx("0x43")===o.name&&(0,x.setHighlightHandling)(s,n[Mx("0x57")],((t,e,n)=>n[Mx("0x55")](r(e[Mx("0x7")]),t)),((t,e,n)=>n[Mx("0x62")](r(e[Mx("0x7")]),t)))}),{priority:Mx("0xb")}),o[Mx("0x10")][Mx("0x25")]((t=>{if(Mx("0x4d")!=t[Mx("0x65")]&&Mx("0x5b")!=t[Mx("0x65")])return;const e=t[Mx("0x11")]();if(null!=e&&e.is(Mx("0x42"),Mx("0x74"))){if("insertion"==t[Mx("0x65")]){const e=t.getItems()[Mx("0x21")]((t=>t.is("$textProxy"))).map((t=>t[Mx("0x4f")]));if(e[Mx("0x7a")])return{type:Mx("0x4d"),content:Yo(n,Mx("0x29"),Yo(n,Mx("0x2e"),'"'+e.join(" ")+'"'))}}if(Mx("0x5b")==t[Mx("0x65")]){const e=t[Mx("0x56")]()[Mx("0x21")]((t=>t.is(Mx("0x3f"))))[Mx("0x4e")]((t=>t[Mx("0x4f")]));if(e.length)return{type:Mx("0x5b"),content:Yo(n,"*Remove:* %0",Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Mx("0x3b")](" ")+'"'))}}}})),o._descriptionFactory.registerDescriptionCallback((t=>{if(Mx("0x54")==t.subType){const e=t[Mx("0x56")]()[Mx("0x21")]((t=>t.is(Mx("0x3f"))))[Mx("0x4e")]((t=>t.data)),o=this[Mx("0x7d")](t),s=o[Mx("0x5e")]-o.minRow+1;if(Mx("0x4d")==t[Mx("0x65")])return e[Mx("0x7a")]?{type:Mx("0x4d"),content:Yo(n,"*Insert:* %0",Yo(n,Mx("0x0"),[s,'"'+e[Mx("0x3b")](" ")+'"']))}:{type:"insertion",content:Yo(n,"*Insert:* %0",Yo(n,Mx("0x75"),s))};if(Mx("0x5b")==t.type)return e.length?{type:Mx("0x5b"),content:Yo(n,Mx("0x82"),Yo(n,Mx("0x0"),[s,'"'+e.join(" ")+'"']))}:{type:Mx("0x5b"),content:Yo(n,"*Remove:* %0",Yo(n,Mx("0x75"),s))}}if(Mx("0x73")==t[Mx("0x5a")]){const e=t[Mx("0x56")]()[Mx("0x21")]((t=>t.is(Mx("0x3f"))))[Mx("0x4e")]((t=>t[Mx("0x4f")])),o=this[Mx("0x7d")](t),s=o[Mx("0x7f")]-o.minColumn+1;if(Mx("0x4d")==t[Mx("0x65")])return e[Mx("0x7a")]?{type:Mx("0x4d"),content:Yo(n,"*Insert:* %0",Yo(n,Mx("0x14"),[s,'"'+e[Mx("0x3b")](" ")+'"']))}:{type:Mx("0x4d"),content:Yo(n,"*Insert:* %0",Yo(n,Mx("0x5"),s))};if(Mx("0x5b")==t.type)return e[Mx("0x7a")]?{type:"deletion",content:Yo(n,"*Remove:* %0",Yo(n,Mx("0x14"),[s,'"'+e[Mx("0x3b")](" ")+'"']))}:{type:Mx("0x5b"),content:Yo(n,"*Remove:* %0",Yo(n,"ELEMENT_TABLE_COLUMN",s))}}})),o[Mx("0x24")][Mx("0x6e")](Mx("0x4d"),Mx("0x54"),Mx("0x5d"),r),o[Mx("0x24")][Mx("0x6e")](Mx("0x5b"),"tableRow",Mx("0x6a"),r),o[Mx("0x24")].registerCustomCallback(Mx("0x4d"),Mx("0x73"),Mx("0x5d"),a),o[Mx("0x24")].registerCustomCallback(Mx("0x5b"),Mx("0x73"),"accept",a),o[Mx("0x24")].registerCustomCallback(Mx("0x4d"),Mx("0x73"),Mx("0x3b"),c),o._suggestionFactory[Mx("0x6e")](Mx("0x5b"),"tableColumn",Mx("0x3b"),c),o[Mx("0x24")].registerCustomCallback(Mx("0x4d"),Mx("0x54"),Mx("0x3b"),l),o[Mx("0x24")].registerCustomCallback(Mx("0x5b"),Mx("0x54"),Mx("0x3b"),l)}_acceptFormatSuggestionCallbackFactory(){const t=this.editor,e=t[Mx("0x22")][Mx("0x2d")][Mx("0x3a")];return(n,o)=>{t[Mx("0x22")][Mx("0x33")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0].end[Mx("0xa")];x&&x[0]&&!1===x[0][Mx("0x41")]&&(a=n[0][Mx("0x79")][Mx("0x7c")]);const c=s.createRangeIn(a);if(Mx("0x78")==c[Mx("0x70")][Mx("0x58")])return;const l=Array.from(e[Mx("0x1b")]())[Mx("0x4e")]((t=>i.LiveRange[Mx("0x77")](t)));s[Mx("0x4b")](c),t.commands[Mx("0x40")](r).refresh(),x.push({forceDefaultExecution:!0}),t[Mx("0x64")](r,...x);const d=l.filter((t=>"$graveyard"!=t[Mx("0x70")][Mx("0x58")]));d[Mx("0x7a")]>0&&s[Mx("0x4b")](d);for(const t of l)t[Mx("0x67")]()}))}}[Mx("0x23")](t){const e=this[Mx("0x7b")][Mx("0x8")][Mx("0x40")]("TableUtils");let n=Number[Mx("0x4a")],o=Number.MIN_SAFE_INTEGER,s=Number[Mx("0x4a")],r=Number[Mx("0x6c")];for(const i of t){if(Mx("0x78")==i[Mx("0x70")].rootName)continue;const{row:t,column:x}=e.getCellLocation(i),a=i[Mx("0x3e")](Mx("0x3d"))?i[Mx("0x5f")](Mx("0x3d"))-1:0,c=i[Mx("0x3e")](Mx("0xc"))?i[Mx("0x5f")](Mx("0xc"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,s=x<s?x:s,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:s,maxColumn:r}}_setupColumnsRowsFixing(){const t=this[Mx("0x7b")],e=t[Mx("0x8")][Mx("0x40")](Mx("0x37")),n=t[Mx("0x8")][Mx("0x40")](Mx("0x31"));t[Mx("0x22")].document.on(Mx("0x28"),(()=>{const n=Array.from(t[Mx("0x22")][Mx("0x2d")][Mx("0x61")][Mx("0x1c")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Mx("0x13")](t);if(Mx("0x38")!=n)continue;if(null!=o.oldRange)continue;const i=e.getSuggestion(s);this[Mx("0x34")][Mx("0x17")](r)&&this._tableSuggestions[Mx("0x6b")](i)}}),{priority:Mx("0x51")});const o=(t,e)=>{let o=!1;const s=e[Mx("0x50")](t),r=t.findAncestor("table"),i=n.getCellLocation(t);for(const e of this[Mx("0x2f")]){const n=e[Mx("0x5a")],x=n[Mx("0x6d")](Mx("0x2")),a=n[Mx("0x46")](x?10:5),c=a.toLowerCase(),l=c.substr(0,3)+Mx("0x6f"),d="min"+a,u=Mx("0x30")+a;if(!e.isInContent)continue;if(r!=e[Mx("0x2b")]()[Mx("0x79")][Mx("0x69")](Mx("0x74")))continue;if(e.isIntersectingWithRange(s))continue;const g=t[Mx("0x3e")](l)?t.getAttribute(l)-1:0,m=this[Mx("0x7d")](e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e[Mx("0x71")](s),o=!0)}return o};t[Mx("0x22")].document[Mx("0x7e")]((e=>{let n=!1;for(const s of t[Mx("0x22")][Mx("0x2d")].differ[Mx("0x4")]())if(Mx("0x32")==s[Mx("0x65")])if("tableRow"==s[Mx("0xe")])for(const t of s[Mx("0x1d")][Mx("0x7c")].getChildren())n=n||o(t,e);else Mx("0x43")==s.name&&(n=n||o(s[Mx("0x1d")][Mx("0x7c")],e));return n}))}[Mx("0x7d")](t){return this[Mx("0x23")](t[Mx("0x1b")]()[Mx("0x4e")]((t=>t.start[Mx("0x7c")])))}}function Ox(t){return Array.from(new Set(t)[Mx("0x52")]())}const Fx=["isEnabled","find","editor","type","formatBlock","$graveyard","_isForcedDefaultExecutionBlock","return","add","_tablePostFixingSubtypes","subType","mergeTableCellDown","TrackChangesEditing","mergeTableCellLeft","selection","getSuggestions","filter","mergeTableCellUp","low","direction","_suggestionFactory","execute","afterInit","fromRange","containsRange","model","isInContent","_acceptFormatSuggestionCallbackFactory","splitTableCellVertically","enableCommand","has","cell","createRangeOn","get","detach","markBlockFormat","registerDescriptionCallback","locale","commandName","_descriptionFactory","format","accept","getSelectionAffectedTableCells","commands","document","push","trackChanges","findAncestor","registerCustomCallback","horizontally","value","getRanges","TableUtils","setSelection","*Split cell:* vertically","mergeTableCells","length","author","*Split cell:* horizontally","stop","getAncestors","change","forceDefaultExecution","splitTableCellHorizontally","_areSelectedCellsMergable","deletion","element","size","mergeTableCellRight","requires","from","createTableWalker","getFirstPosition","_areMergableCells","map","markMultiRangeBlockFormat","highest","plugins","tableCell","rootName"];var Px,Dx;Px=Fx,Dx=407,function(t){for(;--t;)Px.push(Px.shift())}(++Dx);const Bx=function(t,e){return Fx[t-=0]};class jx extends t.Plugin{static get[Bx("0x3e")](){return[wx]}[Bx("0xf")](){const t=this[Bx("0x4b")],e=t[Bx("0x12")][Bx("0x25")][Bx("0x7")],n=t[Bx("0x1e")];if(!t[Bx("0x46")][Bx("0x17")]("TableEditing"))return;const o=t[Bx("0x46")].get(Bx("0x5")),s=t[Bx("0x46")][Bx("0x1a")](Bx("0x2d")),r=t.plugins[Bx("0x1a")](wx);r[Bx("0x2")][Bx("0x26")]("mergeTableCells"),o[Bx("0x16")](Bx("0x30"),(()=>{const e=s[Bx("0x23")](t[Bx("0x12")][Bx("0x25")][Bx("0x7")]);t[Bx("0x12")].change((()=>{o[Bx("0x44")](e,{commandName:Bx("0x30"),commandParams:[]},[],Bx("0x30"))}))})),t[Bx("0x24")][Bx("0x1a")](Bx("0x30")).on(Bx("0xe"),((e,n)=>{t.commands[Bx("0x1a")](Bx("0x27")).value&&(n[Bx("0x31")]>0&&n[n[Bx("0x31")]-1]&&n[n[Bx("0x31")]-1][Bx("0x37")]||o[Bx("0x4f")]||this[Bx("0x39")]()||e[Bx("0x34")]())}),{priority:Bx("0x45")});for(const e of[Bx("0xa"),Bx("0x3d"),Bx("0x4"),"mergeTableCellLeft"]){const n=t[Bx("0x24")][Bx("0x1a")](e);o[Bx("0x16")](e,(()=>{const e=t.model.document.selection[Bx("0x41")]().getAncestors()[Bx("0x4a")]((t=>t.is(Bx("0x3b"),Bx("0x47")))),s=n[Bx("0x2b")];t[Bx("0x12")][Bx("0x36")]((()=>{o[Bx("0x44")]([e,s],{commandName:Bx("0x30"),commandParams:[]},[],"mergeTableCells")}))}))}for(const e of[Bx("0x15"),"splitTableCellHorizontally"]){const n=t[Bx("0x24")].get(e);o[Bx("0x16")](e,(()=>{const r=s[Bx("0x23")](t[Bx("0x12")][Bx("0x25")][Bx("0x7")])[0],i=r[Bx("0x28")]("table"),{column:x,row:a}=s.getCellLocation(r);let c=[];if(Bx("0x2a")==n[Bx("0xc")]){const t=s[Bx("0x40")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0x3f")](t)[Bx("0x43")]((t=>t.cell))}else{const t=s[Bx("0x40")](i,{column:x,includeAllSlots:!0});c=Array.from(t)[Bx("0x43")]((t=>t[Bx("0x18")]))}t.model.change((t=>{o[Bx("0x1c")](t[Bx("0x19")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[Bx("0x20")][Bx("0x1d")]((t=>{const{data:e}=t;if(e)return"mergeTableCells"==e[Bx("0x1f")]?{type:Bx("0x21"),content:Yo(n,"*Merge cells*")}:void 0})),o[Bx("0x20")][Bx("0x1d")]((t=>{const{data:e}=t;if(e)return"splitTableCellVertically"==e[Bx("0x1f")]?{type:Bx("0x21"),content:Yo(n,Bx("0x2f"))}:"splitTableCellHorizontally"==e.commandName?{type:"format",content:Yo(n,Bx("0x33"))}:void 0}));const x=r[Bx("0x14")]();for(const t of[Bx("0xa"),Bx("0x3d"),Bx("0x4"),Bx("0x6")])o._suggestionFactory[Bx("0x29")](Bx("0x4d"),t,"accept",x);for(const t of[Bx("0x15"),Bx("0x38")])o[Bx("0xd")].registerCustomCallback(Bx("0x4d"),t,Bx("0x22"),x);o[Bx("0xd")][Bx("0x29")](Bx("0x4d"),"mergeTableCells",Bx("0x22"),(n=>{t[Bx("0x12")].change((o=>{const s=Array[Bx("0x3f")](e[Bx("0x2c")]()).map((t=>i.LiveRange[Bx("0x10")](t)));o[Bx("0x2e")](n),t[Bx("0x24")].get(Bx("0x30")).refresh(),t[Bx("0xe")](Bx("0x30"),{forceDefaultExecution:!0});const r=s[Bx("0x9")]((t=>Bx("0x4e")!=t.root[Bx("0x48")]));r[Bx("0x31")]>0&&o[Bx("0x2e")](r);for(const t of s)t[Bx("0x1b")]()}))}));for(const e of[Bx("0xa"),Bx("0x4"),Bx("0x6"),Bx("0x3d")]){const n=t[Bx("0x24")][Bx("0x1a")](e);n.on("set:isEnabled",((e,o,s)=>{if(s){const o=t.model.document.selection[Bx("0x41")]()[Bx("0x35")]().find((t=>t.is(Bx("0x3b"),Bx("0x47"))));this[Bx("0x42")](n[Bx("0x2b")],o)||(e[Bx("0x0")]=!1,e[Bx("0x34")]())}}),{priority:Bx("0xb")})}}[Bx("0x39")](){const t=this.editor[Bx("0x24")][Bx("0x1a")](Bx("0x30")),e=this.editor.plugins[Bx("0x1a")](Bx("0x2d"));if(!t[Bx("0x49")])return!1;const n=e[Bx("0x23")](this[Bx("0x4b")][Bx("0x12")][Bx("0x25")].selection);for(const t of n)for(const e of n)if(t!=e&&!this[Bx("0x42")](t,e))return!1;return!0}[Bx("0x42")](t,e){const n=this[Bx("0x4b")][Bx("0x46")][Bx("0x1a")](Bx("0x5")),o=this[Bx("0x4b")][Bx("0x12")].createRangeOn(t),s=this.editor[Bx("0x12")][Bx("0x19")](e),r=new Set,i=new Set;for(const t of n[Bx("0x8")]())if(("insertion"==t[Bx("0x4c")]||Bx("0x3a")==t.type||Bx("0x30")==t[Bx("0x3")])&&t[Bx("0x13")])for(const e of t[Bx("0x2c")]())e.containsRange(o,!0)&&r[Bx("0x1")](t[Bx("0x4c")]+":"+t[Bx("0x32")].id),e[Bx("0x11")](s,!0)&&i[Bx("0x1")](t[Bx("0x4c")]+":"+t[Bx("0x32")].id);if(r.size!=i[Bx("0x3c")])return!1;for(const t of r)if(!i.has(t))return!1;return!0}}const Ux=["TrackChangesEditing","commandParams","commandName","formatBlock","FORMAT_REGULAR_ROW","createPositionAfter","plugins","toViewElement","markerRange","forceValue","getRowIndexes","downcastDispatcher","value","getSelectionAffectedTableCells","getSuggestion","showSuggestionHighlights","_descriptionFactory","parent","TableEditing","consume","registerCustomCallback","*Format:* %0","accept","end","ck-suggestion-marker--active","commands","setTableRowHeader","markBlockFormat","registerDescriptionCallback","addMarker:suggestion","ck-suggestion-marker-","editor","writer","setAttribute","start","getColumnIndexes","last","table","getChild","editing","setTableColumnHeader","change","consumable","_suggestionFactory","getCellLocation","createRange","isBefore","nodeBefore","headingColumns","includes","stop","markerName","data","childCount","removeClass","name","data-suggestion","highest","locale","FORMAT_HEADER_COLUMN","TableUtils","enableCommand","createTableWalker","selection","bindElementToMarker","cell","item","format","options","getAttribute","createPositionBefore","index","afterInit","findAncestor","model","_acceptFormatSuggestionCallbackFactory","document","unbindElementFromMarkerName","first","mapper","get"];var Gx,Hx;Gx=Ux,Hx=375,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const zx=function(t,e){return Ux[t-=0]};class Wx extends t.Plugin{static get requires(){return[wx]}[zx("0x15")](){const t=this[zx("0x3d")];if(!t[zx("0x24")].has(zx("0x30")))return;const e=t[zx("0x7")],n=t[zx("0x24")][zx("0x1d")](zx("0x1e")),o=t.plugins[zx("0x1d")]("TableUtils"),s=t[zx("0x24")][zx("0x1d")](wx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n._splitMarkerName(r[zx("0x0")]),c=n[zx("0x2c")](a);if(!c[zx("0x1")]||zx("0x46")!=c[zx("0x1")][zx("0x20")])return;if(r[zx("0xf")])return void s[zx("0x50")]();if(!i[zx("0x48")][zx("0x31")](r.markerRange,s[zx("0x4")]))return;const l=r[zx("0x26")][zx("0x40")].nodeAfter,d=r[zx("0x26")][zx("0x35")][zx("0x4d")],u=l[zx("0x2f")][zx("0x2f")],{column:g}=o[zx("0x4a")](l),{column:m}=o.getCellLocation(d);for(let s=g;s<=m;s++){const c=o[zx("0xb")](u,{column:s,includeAllSlots:!1});for(const o of c){const s=o[zx("0xe")],c=i[zx("0x1c")][zx("0x25")](s);i[zx("0x3e")].addClass("ck-suggestion-marker-"+x,c),e&&i[zx("0x3e")][zx("0x3f")](zx("0x5"),a,c),i[zx("0x1c")][zx("0xd")](c,r[zx("0x0")]),t&&(n.activeMarkers[zx("0x4f")](r[zx("0x0")])?i[zx("0x3e")].addClass("ck-suggestion-marker--active",c):i[zx("0x3e")][zx("0x3")](zx("0x36"),c))}}}}n.enableCommand(zx("0x38"),((e,s)=>{const r=o.getSelectionAffectedTableCells(t[zx("0x17")][zx("0x19")].selection),i=o[zx("0x28")](r),x=r[0][zx("0x16")](zx("0x43")),a=x[zx("0x12")]("headingRows")||0,c=s&&null!==s[zx("0x27")]?s[zx("0x27")]:!t[zx("0x37")][zx("0x1d")](zx("0x38"))[zx("0x2a")],l=c?i[zx("0x42")]:i.first,d=x[zx("0x44")](l);let u;if(c){const e=x.getChild(a);if(d[zx("0x14")]<e[zx("0x14")])return;u=t[zx("0x17")][zx("0x4b")](t[zx("0x17")].createPositionBefore(e[zx("0x44")](0)),t.model[zx("0x23")](d[zx("0x44")](d[zx("0x2")]-1)))}else{const e=x[zx("0x44")](a-1);if(!e)return;u=t[zx("0x17")][zx("0x4b")](t[zx("0x17")][zx("0x13")](d[zx("0x44")](0)),t.model.createPositionAfter(e[zx("0x44")](e[zx("0x2")]-1)))}t[zx("0x17")][zx("0x47")]((()=>{n[zx("0x39")](u,{commandName:zx("0x38"),commandParams:[{forceValue:c}]},[],zx("0x38"))}))})),n[zx("0xa")]("setTableColumnHeader",((e,o)=>{const s=t[zx("0x24")][zx("0x1d")](zx("0x9")),r=s[zx("0x2b")](t.model[zx("0x19")][zx("0xc")]),i=s[zx("0x41")](r),x=r[0][zx("0x16")](zx("0x43")),a=x[zx("0x12")](zx("0x4e"))||0,c=o&&null!==o[zx("0x27")]?o[zx("0x27")]:!t[zx("0x37")][zx("0x1d")](zx("0x46"))[zx("0x2a")];let l;const d=x[zx("0x44")](0),u=c?i[zx("0x42")]:i[zx("0x1b")],g=s.createTableWalker(x,{startRow:0,column:u,includeAllSlots:!1}),m=Array.from(g)[0][zx("0xe")];if(c){const e=d.getChild(a);if(m[zx("0x4c")](e))return;l=t[zx("0x17")].createRange(t[zx("0x17")][zx("0x13")](e),t[zx("0x17")][zx("0x23")](m))}else{const e=d[zx("0x44")](a-1);if(!e)return;l=t.model[zx("0x4b")](t[zx("0x17")][zx("0x13")](m),t.model[zx("0x23")](e))}t.model.change((()=>{n.markBlockFormat(l,{commandName:zx("0x46"),commandParams:[{forceValue:c}]},[],zx("0x46"))}))})),t.editing[zx("0x29")].on(zx("0x3b"),r(),{priority:zx("0x6")}),t[zx("0x1")][zx("0x29")].on(zx("0x3b"),((t,e,n)=>{n[zx("0x11")][zx("0x2d")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:zx("0x6")}),t[zx("0x45")][zx("0x29")].on("removeMarker:suggestion",((t,e,o)=>{const{type:s,id:r}=n._splitMarkerName(e[zx("0x0")]),i=n[zx("0x2c")](r);if(!i[zx("0x1")]||zx("0x46")!=i[zx("0x1")][zx("0x20")])return;const x=o[zx("0x1c")].markerNameToElements(e[zx("0x0")]);if(x)for(const t of x)o.writer[zx("0x3")](zx("0x3c")+s,t),o[zx("0x3e")].removeClass(zx("0x36"),t),o[zx("0x3e")].removeAttribute(zx("0x5"),t),o[zx("0x1c")][zx("0x1a")](t,e[zx("0x0")])}),{priority:"highest"}),n[zx("0x2e")][zx("0x3a")]((t=>{const{data:n}=t;if(n){if("setTableRowHeader"==n[zx("0x20")]){const t=n[zx("0x1f")][0].forceValue;return o(Yo(e,t?"FORMAT_HEADER_ROW":zx("0x22")))}if(zx("0x46")==n.commandName){const t=n[zx("0x1f")][0][zx("0x27")];return o(Yo(e,t?zx("0x8"):"FORMAT_REGULAR_COLUMN"))}}function o(t){return{type:zx("0x10"),content:Yo(e,zx("0x33"),t)}}}));const i=s[zx("0x18")]();n[zx("0x49")][zx("0x32")](zx("0x21"),zx("0x38"),zx("0x34"),i),n[zx("0x49")][zx("0x32")](zx("0x21"),zx("0x46"),zx("0x34"),i)}}const Vx=["forceDefaultExecution","findAncestor","markMultiRangeDeletion","dataDowncast","author","getAllAdjacentSuggestions","set","createTableWalker","*Replace table cells*","table","get","insertion","first","containsRange","trackChanges","suggestion","batch","has","from","redo","oldRange","createRange","includes","clipboardOutput","updateMarker","stop","setAttributes","createRangeIn","some","end","afterInit","change","view","model","listenTo","isEmpty","entries","selection","commands","tablePasteChainId","schema","hasSuggestion","tableCellBackgroundColor","high","endColumn","tablePasteColumn","markMultiRangeBlockFormat","getRange","tablePasteCell","join","root","plugins","editingDowncast","tableCellBorderColor","getRowIndexes","getRows","getContainedElement","TableClipboard","length","attributes","_createdBatches","ck-suggestion-marker-insertion","conversion","requires","tableCellSuggestion","document","startsWith","ck-suggestion-marker--active","find","getChildren","markerAttributes","deletion","tableCellHorizontalAlignment","row","tableCell","type","columnInsertionRanges","tablePasteRow","getShiftedBy","showSuggestionHighlights","suggestionUnloaded","$graveyard","deletionRanges","markerName","getAttributes","_getCoordsForCells","filter","discard","isInContent","editor","getChangedMarkers","rowInsertionRanges","_isForcedDefaultExecutionBlock","suggestion-td","endRow","registerCustomCallback","column","getSuggestions","wrap","reduce","suggestionLoaded","ck-suggestion-marker","getRanges","name","move","_suggestionFactory","previous","position","_splitMarkerName","previousSibling","cell","cells","setAttribute","insertionRanges","_tablePostFixingSubtypes","tableCellBorderWidth","getSuggestion","every","accept","content","removeMarkers","add","remove","element","suggestion:formatBlock:tablePasteCell","low","push","getTableIfOnlyTableInContent","getItems","insertContent","value","TrackChangesEditing","subType","columnInsertionIndexes","Users","paragraph","removeMarker","rowInsertionIndexes","newRange","last","registerPostFixer","insert","unwrap","markers","isEqual","insertRows","createRangeOn","formatBlock","markMultiRangeInsertion","map","tablePaste","differ","insertColumns","markerToHighlight","for","getChild","fill","getChanges","getColumns","getMarkers","activeMarkers","editing"];var qx,Kx;qx=Vx,Kx=135,function(t){for(;--t;)qx.push(qx.shift())}(++Kx);const Xx=function(t,e){return Vx[t-=0]},$x=[Xx("0x8e"),Xx("0x50"),"tableCellBorderStyle",Xx("0x63"),"tableCellVerticalAlignment",Xx("0x45"),"tableCellPadding"],Jx=Object.fromEntries($x[Xx("0xe")]((t=>[t,null])));class Qx extends t.Plugin{static get[Xx("0x5a")](){return[wx]}[Xx("0x39")](){const t=this.editor;if(!t[Xx("0x4e")][Xx("0x2c")](Xx("0x54")))return;const n=t[Xx("0x4e")][Xx("0x25")](Xx("0x9e")),o=t[Xx("0x4e")][Xx("0x25")]("TableUtils"),s=t[Xx("0x4e")].get(wx),r=t.plugins[Xx("0x25")]("TableClipboard");s[Xx("0x8d")][Xx("0x99")]("tablePasteRow",Xx("0x48")),t[Xx("0x3c")][Xx("0x43")].register(Xx("0x5b"),{allowIn:Xx("0x65"),allowContentOf:"tableCell",isLimit:!0}),t.conversion.elementToElement({model:Xx("0x5b"),view:"suggestion-td"});let i=null;t[Xx("0x3c")].on("insertContent",((s,x)=>{const[a,c]=x,l=x[x.length-1];l&&l[Xx("0x1b")]||n[Xx("0x77")]||this[Xx("0x74")][Xx("0x41")][Xx("0x25")](Xx("0x29"))[Xx("0x9d")]&&function(t,e,n,o,s){if(e&&!e.is("documentSelection"))return!1;const r=s[Xx("0x9a")](t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o.getSelectionAffectedTableCells(n[Xx("0x5c")][Xx("0x40")]);if(!i.length)return!1;const x=i[0][Xx("0x1c")](Xx("0x24")),a=o[Xx("0x51")](i),c=o.getColumnIndexes(i),l={startRow:a[Xx("0x27")],endRow:a[Xx("0x4")],startColumn:c[Xx("0x27")],endColumn:c.last};return 1==i[Xx("0x55")]&&(l[Xx("0x79")]+=o[Xx("0x52")](r)-1,l[Xx("0x47")]+=o[Xx("0x17")](r)-1),Yx(x,l,o)}(a,c,t.model,o,r)&&(s[Xx("0x34")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Xx("0x3c")][Xx("0x3a")]((()=>{t[Xx("0x3c")][Xx("0x9c")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=i;s[Xx("0x55")]&&n[Xx("0xd")](s,Xx("0x68"),{tablePasteChainId:o}),r.length&&n[Xx("0xd")](r,Xx("0x48"),{tablePasteChainId:o}),a[Xx("0x55")]&&n.markMultiRangeInsertion(a,Xx("0xf"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Xx("0x55")]&&n[Xx("0x1d")](c,Xx("0xf"),{tablePasteChainId:o,skipNestingCheck:!0});const d=n[Xx("0x49")](l[Xx("0xe")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Xx("0x4b"),{tablePasteChainId:o});if(d){const e=d[Xx("0x18")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[Xx("0x3c")][Xx("0xb")](o),i=e[Xx("0x5f")]((t=>t.getRange()[Xx("0x9")](r)));i&&n[Xx("0x99")]([i.name,s])}n[Xx("0x55")]&&d[Xx("0x8b")](Xx("0x61"),Object.fromEntries(n))}i=null})))}),{priority:e.priorities[Xx("0x46")]+10}),t[Xx("0x4e")].get(Xx("0x54")).on("_replaceTableSlotCell",((t,e)=>{const[n,o,,s]=e;if(!i)return;t.stop();const r=n[Xx("0x89")],x=o,a=Zx(r),c=Zx(x);t.return=r;let l=null,d=null;if(c||a)if(a&&!c){s[Xx("0x95")](r.getChild(0));for(const t of Array[Xx("0x2d")](x[Xx("0x60")]()))s[Xx("0x6")](t,r,Xx("0x38"));const t=i.rowInsertionIndexes.includes(n[Xx("0x64")]),e=i[Xx("0xa0")][Xx("0x31")](n[Xx("0x7b")]);t||e||(l=s[Xx("0x36")](r))}else c&&!a&&(d=s[Xx("0x36")](r));else{const t=s.createElement("tableCellSuggestion"),e=s.createElement(Xx("0x5b"));s[Xx("0x7d")](s[Xx("0x36")](r),e),s[Xx("0x6")](t,r,0);for(const e of Array[Xx("0x2d")](x[Xx("0x60")]()))s[Xx("0x6")](e,t,Xx("0x38"));l=s.createRangeOn(t),d=s[Xx("0xb")](e)}const u=Array[Xx("0x2d")](x[Xx("0x6f")]())[Xx("0x71")]((([t])=>$x[Xx("0x31")](t)));i[Xx("0x8a")][Xx("0x99")]({element:r,attributes:u.length?Object.fromEntries(u):null}),l&&i[Xx("0x8c")].push(l),d&&i[Xx("0x6d")][Xx("0x99")](d)}),{priority:Xx("0x46")}),o.on(Xx("0x11"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r.columns||1;i.columnInsertionIndexes=new Array(a)[Xx("0x15")](x)[Xx("0xe")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x22")](s,{startColumn:x,endColumn:x+a-1}))i[Xx("0x67")].push(t[Xx("0x3c")][Xx("0xb")](e))}),{priority:Xx("0x98")}),o.on(Xx("0xa"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r.rows||1;i[Xx("0x2")]=new Array(a)[Xx("0x15")](x)[Xx("0xe")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(s,{startRow:x,endRow:x+a-1}))i[Xx("0x76")][Xx("0x99")](t[Xx("0x3c")].createRangeOn(e))}),{priority:Xx("0x98")}),n._descriptionFactory.registerDescriptionCallback((e=>{if(e[Xx("0x9f")]&&e.subType.startsWith(Xx("0xf")))return e[Xx("0x85")]?{}:{type:Xx("0x26"),content:Yo(t.locale,Xx("0x23"))}}));const x=()=>{};for(const t of[Xx("0xf"),Xx("0x48"),"tablePasteRow",Xx("0x4b")])n._suggestionFactory.registerCustomCallback(Xx("0x26"),t,"join",x),n[Xx("0x84")].registerCustomCallback("deletion",t,Xx("0x4c"),x);n._suggestionFactory[Xx("0x7a")](Xx("0xc"),Xx("0x4b"),Xx("0x72"),x),n[Xx("0x84")][Xx("0x7a")](Xx("0xc"),Xx("0x4b"),Xx("0x91"),((e,n,o)=>{const s=e.map((t=>t[Xx("0x53")]())).filter((t=>t)),r=new Map(s[Xx("0xe")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i.cells)e&&r[Xx("0x21")](t,e);else if(o&&o[Xx("0x61")])for(const[e,n]of Object[Xx("0x3f")](o[Xx("0x61")])){const o=t[Xx("0x3c")][Xx("0x8")][Xx("0x25")](e),s=o?o[Xx("0x4a")]()[Xx("0x53")]():null;s&&r[Xx("0x21")](s,n)}t[Xx("0x3c")][Xx("0x3a")]((t=>{for(const[e,n]of r)t[Xx("0x35")]({...Jx,...n},e)}))}));const a=(e,o)=>{n[Xx("0x84")][Xx("0x7a")](e,"tablePaste",o,((s,r,i)=>{t.model[Xx("0x3a")]((t=>{const x=[];for(const t of s){const e=t.start.nodeAfter;e.is(Xx("0x96"),Xx("0x5b"))&&x[Xx("0x99")](e)}n._suggestionFactory.getSuggestionCallback(e,null,o)(s,r,i);for(const e of x)Xx("0x6c")!=e[Xx("0x4d")].rootName&&t[Xx("0x7")](e)}))}))};a(Xx("0x26"),Xx("0x91")),a(Xx("0x26"),"discard"),a(Xx("0x62"),Xx("0x91")),a(Xx("0x62"),Xx("0x72")),n[Xx("0x84")][Xx("0x7a")]("insertion",Xx("0x68"),"discard",(t=>{const e=t[Xx("0xe")]((t=>t[Xx("0x53")]())),n=e[0][Xx("0x1c")]("table"),{minRow:r,maxRow:i}=s[Xx("0x70")](e);o.removeRows(n,{at:r,rows:i-r+1})})),n[Xx("0x84")][Xx("0x7a")]("insertion",Xx("0x48"),Xx("0x72"),(t=>{const e=t[Xx("0xe")]((t=>t.getContainedElement())),n=e[0][Xx("0x1c")](Xx("0x24")),{minColumn:r,maxColumn:i}=s._getCoordsForCells(e);o.removeColumns(n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Xx("0x9f")]||!e[Xx("0x9f")].startsWith("tablePaste"))return;const o=e.attributes[Xx("0x42")],s=n[Xx("0x7c")]()[Xx("0x71")]((t=>t.isInContent&&t.attributes&&t[Xx("0x56")][Xx("0x42")]==o));s[Xx("0x55")]&&e[Xx("0x20")]()[Xx("0x55")]!=s[Xx("0x55")]&&s[Xx("0x7e")](((t,e)=>(t.next=e,e[Xx("0x85")]=t,e)))};function l(t,e=!0){const{id:o}=n[Xx("0x87")](t.markerName),s=[Xx("0x80"),Xx("0x58")],r=n[Xx("0x19")][Xx("0x31")](t[Xx("0x6e")]);return r&&s[Xx("0x99")](Xx("0x5e")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Xx("0x7f"),c,{priority:Xx("0x46")}),n.on(Xx("0x6b"),c,{priority:Xx("0x46")}),t[Xx("0x3c")][Xx("0x5c")][Xx("0x5")]((()=>{let e=!1;const o=Array[Xx("0x2d")](t[Xx("0x3c")][Xx("0x5c")][Xx("0x10")][Xx("0x75")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Xx("0x87")](s);if(Xx("0x2a")!=o||Xx("0x62")!=i||r[Xx("0x2f")])continue;if(!n[Xx("0x44")](x))continue;const a=n[Xx("0x8f")](x).getRanges(),c=t[Xx("0x4e")][Xx("0x25")](Xx("0xa1")).me;for(const t of n.getSuggestions())if(t[Xx("0x73")]&&t[Xx("0x1f")]==c&&Xx("0xc")==t[Xx("0x66")]&&"tablePasteCell"==t[Xx("0x9f")]&&t[Xx("0x81")]()[Xx("0x90")]((t=>a[Xx("0x37")]((e=>e[Xx("0x28")](t,!0))))))for(const n of t[Xx("0x20")]())n[Xx("0x73")]&&(n[Xx("0x72")](),e=!0)}return e})),t[Xx("0x3c")].document[Xx("0x5")]((e=>{const o=t[Xx("0x41")][Xx("0x25")](Xx("0x2e"));if(!o||!o[Xx("0x57")][Xx("0x2c")](e[Xx("0x2b")]))return!1;let s=!1;const r=t[Xx("0x4e")][Xx("0x25")](Xx("0xa1")).me,i=t[Xx("0x3c")][Xx("0x5c")][Xx("0x10")][Xx("0x16")](),x=Array[Xx("0x2d")](t[Xx("0x3c")][Xx("0x5c")][Xx("0x10")].getChangedMarkers())[Xx("0x71")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Xx("0x87")](t);return"suggestion"==o&&"tablePaste"==s&&i==r.id&&!e[Xx("0x2f")]}));for(const t of i){if(Xx("0x6")!=t[Xx("0x66")]||Xx("0x5b")!=t[Xx("0x82")]||1!=t[Xx("0x55")])continue;const n=e[Xx("0x30")](t.position,t[Xx("0x86")][Xx("0x69")](1));if(!x[Xx("0x5f")]((({data:t})=>t[Xx("0x3")][Xx("0x9")](n))))for(const{name:t,data:o}of x)if(n.containsRange(o[Xx("0x3")])){e[Xx("0x33")](t,{range:n}),s=!0;break}}return s})),t[Xx("0x3c")][Xx("0x5c")][Xx("0x5")]((e=>{let o=!1;const s=t[Xx("0x4e")].get("Users").me,r=n.getSuggestions()[Xx("0x71")]((t=>t[Xx("0x73")]&&t.author==s)),i=new Set,x=new Set;for(const t of r)if(Xx("0xf")==t.subType)for(const e of t.getMarkers()){const n=e[Xx("0x4a")]()[Xx("0x53")]();if(n)if(n.is("element",Xx("0x5b"))&&Zx(n)){t[Xx("0x1")](e[Xx("0x82")]),i.add(n),o=!0;const s=n.nextSibling,r=n[Xx("0x88")],a=s&&s.is(Xx("0x96"),Xx("0x5b")),c=r&&r.is("element",Xx("0x5b"));a&&!i.has(s)&&x[Xx("0x94")](s),c&&!i[Xx("0x2c")](r)&&x[Xx("0x94")](r)}else n.is("element",Xx("0x0"))&&n[Xx("0x3e")]&&(t.removeMarker(e.name),o=!0)}else if(Xx("0x4b")==t[Xx("0x9f")]){if(!t[Xx("0x56")]||!t[Xx("0x56")][Xx("0x42")])continue;const e=t[Xx("0x56")].markerAttributes;if(e&&Object.keys(e)[Xx("0x55")])continue;const n=t[Xx("0x56")][Xx("0x42")];let s=!0,i=!0;for(const e of r)if(e[Xx("0x9f")]&&e[Xx("0x9f")][Xx("0x5d")]("tablePaste")){if(!e.attributes[Xx("0x42")]){i=!1;break}if(e.id!=t.id&&e[Xx("0x56")][Xx("0x42")]==n){s=!1;break}}i&&s&&(t[Xx("0x93")](),o=!0)}for(const t of i)e[Xx("0x95")](t);for(const t of x)e[Xx("0x7")](t);return o})),t[Xx("0x59")][Xx("0x13")](Xx("0x4f"))[Xx("0x12")]({model:Xx("0x97"),view:(t,e)=>l(t),converterPriority:"high"}),t[Xx("0x59")][Xx("0x13")](Xx("0x1e"))[Xx("0x12")]({model:Xx("0x97"),view:(t,e)=>e.options[Xx("0x6a")]?l(t,!1):null,converterPriority:Xx("0x46")});const d=t[Xx("0x1a")][Xx("0x3b")];this[Xx("0x3d")](d[Xx("0x5c")],Xx("0x32"),((t,e)=>{const n=[];for(const t of d[Xx("0x36")](e[Xx("0x92")])[Xx("0x9b")]())t.is(Xx("0x96"),Xx("0x78"))&&n[Xx("0x99")](t);d[Xx("0x3a")]((t=>{for(const e of n)t[Xx("0x83")](t.createRangeIn(e),t.createPositionBefore(e)),t[Xx("0x95")](e)}))}))}}function Zx(t){if(t[Xx("0x3e")])return!0;const e=t[Xx("0x14")](0);return e.is("element",Xx("0x0"))&&e[Xx("0x3e")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Xx("0x22")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["format","subType","accept","editor","discard","selection","afterInit","registerCustomCallback","formatGroupId","handleResizeTableWidthCommand","plugins","columnWidths","change","registerDescriptionCallback","formatBlock","getTableColumnsWidths","getContainedElement","enableCommand","getSelectedElement","model","*Format:* resize table","resizeTable","get","resizeColumnWidths","TrackChangesEditing","handleSuggestionDescription","bind","has","tableWidth","data","commandParams","getColumnGroupElement","document","resizeTableWidth","TableColumnResizeEditing","_suggestionFactory"];var ea,na;ea=ta,na=208,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{[oa("0xe")](){if(!this[oa("0xb")][oa("0x12")][oa("0x23")](oa("0x6")))return;const t=this[oa("0xb")][oa("0x12")][oa("0x1e")]("TrackChangesEditing");t[oa("0x19")](oa("0x5"),this[oa("0x11")][oa("0x22")](this)),t[oa("0x19")](oa("0x1f"),this[oa("0x11")][oa("0x22")](this)),t[oa("0x7")][oa("0xf")](oa("0x16"),oa("0x1d"),oa("0xa"),t[oa("0x7")].getSuggestionCallback("formatBlock",null,oa("0xc"))),t[oa("0x7")][oa("0xf")]("formatBlock",oa("0x1d"),oa("0xc"),t[oa("0x7")].getSuggestionCallback(oa("0x16"),null,"accept")),t._descriptionFactory[oa("0x15")](this[oa("0x21")][oa("0x22")](this))}[oa("0x11")](t,e){const n=this[oa("0xb")][oa("0x12")][oa("0x1e")](oa("0x20")),o=this[oa("0xb")].plugins.get(oa("0x6")),s=e.table||this[oa("0xb")][oa("0x1b")][oa("0x4")][oa("0xd")][oa("0x1a")]();this.editor[oa("0x1b")][oa("0x14")]((()=>{const r=o[oa("0x3")](s);let i=r?o[oa("0x17")](r):null,x=s.getAttribute(oa("0x0"))||null;const a=e[oa("0x0")]||x,c=e[oa("0x13")]||i,l=this[oa("0xb")][oa("0x12")][oa("0x1e")]("Users").me;for(const t of n.getSuggestions()){const e=t[oa("0x18")]();if(oa("0x1d")===t[oa("0x9")]&&e===s){t.author!==l&&t[oa("0xc")]();const e=t[oa("0x1")][oa("0x2")];x=e[0][oa("0x0")],i=e[0][oa("0x13")];break}}t({table:s,tableWidth:a,columnWidths:c}),n.markBlockFormat(s,{commandName:oa("0x5"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0x1d")},[],"resizeTable")}))}[oa("0x21")](t){const{data:e}=t;if(e&&"resizeTable"===e[oa("0x10")]){const t=oa("0x1c");return{type:oa("0x8"),content:Yo(this.editor.locale,t)}}}}const ra=["Template","TrackChangesEditing","editor","plugins","afterInit","has","get","insertTemplate"];var ia,xa;ia=ra,xa=494,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{[aa("0x6")](){const t=this[aa("0x4")];t[aa("0x5")][aa("0x7")](aa("0x2"))&&t[aa("0x5")][aa("0x0")](aa("0x3")).enableCommand(aa("0x1"))}}const la=["tableOfContents","editor","commands","ELEMENT_TABLE_OF_CONTENTS","plugins","get","TrackChangesEditing","insertTableOfContents"];var da,ua;da=la,ua=277,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{afterInit(){const t=this[ga("0x4")];if(!t[ga("0x5")][ga("0x0")](ga("0x2")))return;t[ga("0x7")][ga("0x0")](ga("0x1")).enableCommand(ga("0x2"));const e=t[ga("0x7")][ga("0x0")](ga("0x1")),n=t.locale;e._descriptionFactory.registerElementLabel(ga("0x3"),(t=>Yo(n,ga("0x6"),t)))}}const fa=["isEqual","getNearestSelectionRange","editor","plugins","removeMarker","differ","start","get","updateMarker","has","nodeBefore","newRange","registerElementLabel","end","isTouching","model","schema","Title","TrackChangesEditing","registerPostFixer","_splitMarkerName","document","suggestion","createRange","locale","ELEMENT_TITLE","element"];var ha,ba;ha=fa,ba=463,function(t){for(;--t;)ha.push(ha.shift())}(++ba);const pa=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{afterInit(){const t=this[pa("0x19")];if(!t[pa("0x1a")][pa("0x5")](pa("0xd")))return;const e=t[pa("0x1a")][pa("0x3")](pa("0xe"));e._descriptionFactory[pa("0x8")]("title-content",(()=>Yo(t[pa("0x14")],pa("0x15")))),t[pa("0xb")][pa("0x11")][pa("0xf")]((n=>{let o=!1;const s=Array.from(t[pa("0xb")].document[pa("0x1")].getChangedMarkers());for(const{name:r,data:i}of s){const{group:s}=e[pa("0x10")](r);if(pa("0x12")!==s||!i.newRange)continue;const x=i[pa("0x7")],a=x[pa("0x9")][pa("0x6")];if(!a||!a.is(pa("0x16"),"title-content"))continue;if(!x[pa("0x2")][pa("0xa")](x[pa("0x9")]))continue;const c=t[pa("0xb")][pa("0xc")][pa("0x18")](x[pa("0x9")],"forward");if(c&&c.isCollapsed){const t=n[pa("0x13")](x.start,c.start);t[pa("0x17")](x)||(n[pa("0x4")](r,{range:t}),o=!0)}o||(n[pa("0x0")](r),o=!0)}return o}))}}const _a=["enableCommand","get","plugins","editor","has","UndoEditing","redo","TrackChangesEditing"];var Ta,Ca;Ta=_a,Ca=222,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{afterInit(){const t=this[ya("0x5")],e=t[ya("0x4")][ya("0x3")](ya("0x1"));t.plugins[ya("0x6")](ya("0x7"))&&(e[ya("0x2")]("undo"),e.enableCommand(ya("0x0")))}}const Aa=["TableCaptionEditing","get","toggleTableCaption","TrackChangesEditing","enableCommand","afterInit","requires","plugins","has"];var va,Ra;va=Aa,Ra=226,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Sa=function(t,e){return Aa[t-=0]};class Ia extends t.Plugin{static get[Sa("0x5")](){return[wx]}[Sa("0x4")](){const t=this.editor;t[Sa("0x6")][Sa("0x7")](Sa("0x8"))&&t.plugins[Sa("0x0")](Sa("0x2"))[Sa("0x3")](Sa("0x1"))}}const La=["*Format:* set start index to %0","afterInit","filter","getAttribute","commandName","TrackChangesEditing","listType","change","expandListBlocksToCompleteList","commandParams","_getSuggestionBlocksForListStyle","plugins","replace","*Format:* set order to regular","from","_descriptionFactory","has","listStart","getListTypeFromListStyleType","get","DocumentListUtils","config","toUpperCase","handleListStartCommand","listReversed","_LIST_","handleDescriptions","numbered","ELEMENT_","_getSuggestionBlocks","document","*Change to:* %0","model","enableCommand","editor","listStyle","startIndex","getSelectedBlocks","DocumentListPropertiesUtils","type","push","selection","reversed","bind","markMultiRangeBlockFormat","length","format","handleListStyleCommand","styles","handleListReversedCommand","locale","list.properties","isListItemBlock"];var Na,Ma;Na=La,Ma=218,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{[wa("0x30")](){if(!this.editor.plugins[wa("0xa")]("DocumentListPropertiesEditing"))return;const t=this.editor[wa("0xf")][wa("0xd")](wa("0x2d")),e=this[wa("0x1c")].plugins.get(wa("0x34"));t[wa("0x2a")]&&e[wa("0x1b")](wa("0x1d"),this.handleListStyleCommand.bind(this)),t[wa("0x24")]&&e[wa("0x1b")](wa("0x12"),this[wa("0x2b")][wa("0x25")](this)),t[wa("0x1e")]&&e[wa("0x1b")](wa("0xb"),this.handleListStartCommand.bind(this)),e[wa("0x9")].registerDescriptionCallback(this[wa("0x14")][wa("0x25")](this))}[wa("0x29")](t,e={}){const n=this[wa("0x1c")][wa("0x5")].get(wa("0x34")),o=this[wa("0x4")]();this[wa("0x1c")][wa("0x1a")].change((()=>{n[wa("0x26")](o,{commandName:wa("0x1d"),commandParams:[{type:e[wa("0x21")]}],formatGroupId:"listStyle"})}))}handleListReversedCommand(t,e={}){const n=this[wa("0x1c")][wa("0x5")].get("TrackChangesEditing"),o=this[wa("0x1c")][wa("0x5")][wa("0xd")](wa("0xe")),s=this[wa("0x17")]((t=>o.isListItemBlock(t)&&wa("0x15")===t[wa("0x32")](wa("0x0"))));null!==s&&this[wa("0x1c")].model[wa("0x1")]((()=>{n[wa("0x26")](s,{commandName:wa("0x12"),commandParams:[{reversed:e[wa("0x24")]}],formatGroupId:"listReversed"})}))}[wa("0x11")](t,e={}){const n=this[wa("0x1c")][wa("0x5")].get(wa("0x34")),o=this.editor[wa("0x5")][wa("0xd")](wa("0xe")),s=this[wa("0x17")]((t=>o[wa("0x2e")](t)&&"numbered"===t[wa("0x32")](wa("0x0"))));null!==s&&this[wa("0x1c")][wa("0x1a")][wa("0x1")]((()=>{n[wa("0x26")](s,{commandName:wa("0xb"),commandParams:[{startIndex:e[wa("0x1e")]}],formatGroupId:wa("0xb")})}))}[wa("0x14")](t){const e=this.editor[wa("0x2c")],{data:n}=t;if(!n)return;let o,s;switch(n[wa("0x33")]){case wa("0x1d"):o=wa("0x19"),s={type:wa("0x28"),content:Yo(e,o,Yo(e,this._getTranslationKeyForListStyle(n[wa("0x3")][0].type)))};break;case wa("0x12"):o=n[wa("0x3")][0][wa("0x24")]?"*Format:* set order to reversed":wa("0x7"),s={type:wa("0x28"),content:Yo(e,o)};break;case wa("0xb"):o=wa("0x2f"),s={type:wa("0x28"),content:Yo(e,o,n[wa("0x3")][0][wa("0x1e")])}}return s}[wa("0x4")](){const t=this[wa("0x1c")][wa("0x5")][wa("0xd")](wa("0xe"));let e=Array[wa("0x8")](this[wa("0x1c")][wa("0x1a")].document.selection[wa("0x1f")]());return e[wa("0x22")](...t[wa("0x2")](e)),e=[...new Set(e)],e}[wa("0x17")](t){const e=this.editor[wa("0x5")][wa("0xd")](wa("0xe"));let n=Array.from(this[wa("0x1c")].model[wa("0x18")][wa("0x23")][wa("0x1f")]())[wa("0x31")](t);if(!n[wa("0x27")])return null;n=e[wa("0x2")](n);const o=[];for(const t of n)e.isFirstBlockOfListItem(t)&&o[wa("0x22")](t);return o}_getTranslationKeyForListStyle(t){return wa("0x16")+this[wa("0x1c")][wa("0x5")][wa("0xd")](wa("0x20"))[wa("0xc")](t)[wa("0x10")]()+wa("0x13")+t[wa("0x10")]()[wa("0x6")](/-/g,"_")}}const Fa=["pluginName","TrackChangesTableProperties","formatBlock","table","tableCellPadding","getSuggestionCallback","model","start","tableWidth","tableHeight","has","change","setAttribute","accept","TableUtils","tableCellVerticalAlignment","discard","commandParams","TrackChangesEditing","*Format:* change table properties","tableCellProperties","handleDiscardAction","removeAttribute","nodeAfter","getContainedElement","_handlePropertyChange","getAttribute","format","document","tableCellBorderColor","registerCustomCallback","tableCellHeight","tableBorderStyle","tableCellBackgroundColor","tableProperties","getFirstPosition","enqueueChange","_descriptionFactory","_suggestionFactory","tableCellBorderStyle","get","handleSuggestionDescription","tableCellBorderWidth","TablePropertiesEditing","findAncestor","tableCellHorizontalAlignment","subType","*Format:* change table cell properties","locale","editor","tableBorderColor","plugins","selection","tableAlignment","afterInit","registerDescriptionCallback"];var Pa,Da;Pa=Fa,Da=237,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{constructor(t){super(t),this[Ba("0x15")]=[Ba("0x25"),Ba("0x13"),"tableBorderWidth",Ba("0x28"),Ba("0x33"),Ba("0x34"),"tableBackgroundColor"],this[Ba("0x7")]=[Ba("0x10"),Ba("0x1a"),Ba("0x1d"),Ba("0x2f"),"tableCellWidth",Ba("0x12"),Ba("0x14"),Ba("0x20"),Ba("0x2")]}static get[Ba("0x2b")](){return Ba("0x2c")}[Ba("0x29")](){const t=this[Ba("0x24")].plugins[Ba("0x1b")](Ba("0x5"));if(this.editor[Ba("0x26")][Ba("0x35")](Ba("0x1e"))){for(const e of this.tableProperties)t.enableCommand(e,((t,n)=>{const o=this[Ba("0x24")][Ba("0x31")].document.selection[Ba("0x16")]()[Ba("0x1f")](Ba("0x2e"));this[Ba("0xc")](e,[o],this[Ba("0x15")],"tableProperties",t,n)}));t[Ba("0x19")][Ba("0x11")](Ba("0x2d"),"tableProperties",Ba("0x0"),t[Ba("0x19")][Ba("0x30")](Ba("0x2d"),null,"discard")),t[Ba("0x19")][Ba("0x11")](Ba("0x2d"),Ba("0x15"),"discard",((t,e)=>this[Ba("0x8")](this[Ba("0x15")],t,e))),t._suggestionFactory[Ba("0x11")](Ba("0x2d"),"tableProperties","join",(()=>!1))}if(this[Ba("0x24")].plugins[Ba("0x35")]("TableCellPropertiesEditing")){for(const e of this[Ba("0x7")])t.enableCommand(e,((t,n)=>{const o=this[Ba("0x24")][Ba("0x26")][Ba("0x1b")](Ba("0x1")).getSelectionAffectedTableCells(this[Ba("0x24")][Ba("0x31")][Ba("0xf")][Ba("0x27")]);this[Ba("0xc")](e,o,this[Ba("0x7")],Ba("0x7"),t,n)}));t._suggestionFactory[Ba("0x11")](Ba("0x2d"),"tableCellProperties",Ba("0x0"),t[Ba("0x19")][Ba("0x30")]("formatBlock",null,Ba("0x3"))),t[Ba("0x19")][Ba("0x11")](Ba("0x2d"),Ba("0x7"),Ba("0x3"),((t,e)=>this[Ba("0x8")](this[Ba("0x7")],t,e))),t[Ba("0x19")][Ba("0x11")](Ba("0x2d"),Ba("0x7"),"join",(()=>!1))}t[Ba("0x18")][Ba("0x2a")]((t=>this[Ba("0x1c")](t)))}[Ba("0xc")](t,e,n,o,s,r){const i=this[Ba("0x24")][Ba("0x26")][Ba("0x1b")](Ba("0x5"));this.editor[Ba("0x31")][Ba("0x17")](r.batch,(()=>{for(const t of e)if(this._getSuggestion(t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0xd")](o);void 0!==n&&(e[o]=n)}s(r),i.markBlockFormat(t,{commandParams:[e]},[],o)}}))}handleDiscardAction(t,e,n){const o=e[0][Ba("0x32")][Ba("0xa")],s=n[Ba("0x4")][0];this.editor[Ba("0x31")][Ba("0x36")]((e=>{for(const n of t)void 0!==s[n]?e[Ba("0x37")](n,s[n],o):e[Ba("0x9")](n,o)}))}[Ba("0x1c")](t){if(t.data)switch(t[Ba("0x21")]){case"tableProperties":return{type:Ba("0xe"),content:Yo(this[Ba("0x24")][Ba("0x23")],Ba("0x6"))};case Ba("0x7"):return{type:Ba("0xe"),content:Yo(this[Ba("0x24")][Ba("0x23")],Ba("0x22"))}}}_getSuggestion(t,e){const n=this[Ba("0x24")].plugins[Ba("0x1b")]("TrackChangesEditing");for(const o of n.getSuggestions({skipNotAttached:!0})){const n=o[Ba("0xb")]();if(o[Ba("0x21")]===e&&n===t)return o}return null}}const Ua=["ck-suggestion-marker","item","clone","discard","every","isTouching","track-changes-suggestion-not-found","addClass","getMultiRangeId","schema","PendingActions","move","insertContent","updateSuggestion","deletion:","type","@external","_mergeNestedSuggestions","data-suggestion","_editor","addUser","head","nodeAfter","markInlineFormat","suggestionChanged","stop","removeMarker:suggestion:formatBlock","change:data","default","removeClass","toJSON","_handleNewSuggestionMarker","markMultiRangeInsertion","formatBlock:accept","deletion","_getAuthorFromId","config","backward","elementStart","editor","never","update:suggestion","discardAllSuggestions","isDocumentOperation","hasComments","setSelection","isInsideObject","getFirstRange","_getSuggestionData","containsRange","_findSuggestions","previous","buildSuggestion","acceptSuggestion","addComment","acceptSelectedSuggestions","createPositionAt","init","adapter","isAtStart","authoredAt","isMultiRange","rejected","markerName","PENDING_ACTION_SUGGESTION","getRanges","forward","formatInline:discard","createSelection","commands","high","addMarker","filter","group","return","trackChanges.mergeNestedSuggestions","newRange","getMarkers","getSuggestionCallback","pluginName","moveTargetPosition","addSuggestion","insertion:join","isCollapsed","selection","_cutOutSuggestionMarker","for","_trackFormatChanges","accepted","$marker","dataDowncast","formatInline","skipNestingCheck","_adapter","formatInline:","change:_saved","_checkSuggestionCorrectness","setTo","Users","addMarker:suggestion","containsItem","document","_setSuggestionData","getCommentThread","dataToMarker","normal","split","_addSuggestionMarker","catch","containsRangeInObject","addCommentThread","_enabledCommands","commentThread","isIntersectingWithRange","formatBlock:join","clear","rethrowUnexpectedError","getSuggestion","delete","updateMarker","formatBlock","some","rootName","markerToData","multipleBlocks","insertion:","ck-suggestion-marker-formatBlock","suggestion:","isBefore","getAttribute","_saved","getSuggestions","createElement","_suggestionState","_onDiscard","listenTo","setAttribute","resolve","suggestion-type","parent","isAtEnd","element","change","root","ck-suggestion-marker--active","model","_createSuggestion","_isForcedDefaultExecutionBlock","removed","name","_registerDefaultCallbacks","start","has","isBlock","author","forceDefaultExecution","writer","subType","nodeBefore","editingDowncast","isInContent","ready","formatInline:chain","_setSuggestionRange","registerPostFixer","getCustomProperty","_updateSuggestionData","attributes","commandName","range","includes","define","differ","_refreshSuggestionsChain","add","length","push","insert","bindElementToMarker","consumable","formatBlock:discard","set","change:activeMarkers","_removeSuggestion","getFirstMarker","_addThreadToSuggestion","track-changes-command-not-found","options","originalSuggestionId","upcast","isOwn","then","dataReady","_suggestionFactory","low","markDeletion","_commentsRepository","markMultiRangeDeletion","createPositionAfter","TrackChangesEditing","markerReady","$graveyard","documentSelection","join","next","trackChanges.trackFormatChanges","consume","position","highest","end","getChanges","trackChanges","fromRange","howMany","mapper","plugins","ck-suggestion-marker-","suggestionUnloaded","formatGroupId","removeMarkers","splitPosition","isEqual","_defaultCallbacks","markerToHighlight","conversion","getNearestSelectionRange","_customCallbacks","markerNameToElements","isExternal","insertion","values","formatBlock:","fire","_suggestions","addHighlight","suggestion","data","refresh","getShiftedBy","getDifference","remove","track-changes-suggestion-data-mismatch","getAncestors","addMarker:suggestion:formatBlock","widget","deleteContent","_splitMarkerName","getChangedMarkers","size","value","locale","splice","suggestionLoaded","open","isLocal","isSelectable","isObject","createPositionBefore","unbind","addSuggestionData","_descriptionFactory","markInsertion","notReady","markers","getUser","toViewElement","getIntersection","marker-count","trackChangesCommand","error-saving-suggestion-data-suggestion-discarded","acceptAllSuggestions","isLimit","execute","createdAt","getWalker","multi","elementEnd","$textProxy","collaboration.channelId","getAllAdjacentSuggestions","isNextTo","showSuggestionHighlights","deletion:accept","enableCommand","sort","markMultiRangeBlockFormat","enqueueChange","containerElement","hasCommentThread","oldRange","batch","fromCharCode","insertion:chain","map","isUndo","deletion:discard","removeMarker","CommentsRepository","_joinSuggestions","formatInline:join","createRange","markBlockFormat","after","creator","_model","substr","from","detach","_rangeIsInLocalUserInsertion","addRange","accept","getItems","isAfter","addMarkerName","always","activeMarkers","_getExternalAuthor","get"];var Ga,Ha;Ga=Ua,Ha=282,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Wa extends t.Plugin{static get requires(){return[za("0xf"),r.Users,t.PendingActions,cs,Cs,Rs,ws,Bs,Ws,Js,er,Oa,xr,ur,pr,yr,Lr,Pr,Gr,qr,Qr,ni,xi,ui,bi,Ci,Ri,Oi,ji,Wi,$i,tx,ix,ux,bx,yx,Sx,wx,jx,Wx,Ia,Qx,sa,ma,ja,ca,Ea,ka]}static get[za("0x73")](){return za("0xeb")}constructor(t){function e(t){return t.map((t=>String[za("0x9")](t)))[za("0xef")]("")}super(t),this[za("0xd9")](za("0x21"),[]),this.on(za("0xda"),((e,n,o,s)=>{this[za("0x16")].change((()=>{for(const e of[...s,...o])this[za("0x16")][za("0x12b")][za("0xbc")](e)&&t.editing.reconvertMarker(e)}))})),this[za("0x128")]=new ss(this.editor.model[za("0x2d")],this[za("0x4b")][za("0x11e")]),this[za("0x81")]=null,this._suggestionFactory=new Va(this[za("0x4b")]),this[za("0x10d")]=new Map,this[za("0xe8")]=t[za("0xfb")].get(za("0xf")),this[za("0x93")]=new Set,this._model=this[za("0x4b")][za("0xb5")],this[za("0xa9")]=new WeakMap,this[za("0xb7")]=!1,t[za("0x48")][za("0xcf")](za("0xf1"),za("0x40")),this._trackFormatChanges=t.config[za("0x23")](za("0xf1")),t.config[za("0xcf")](za("0x6f"),!0),this[za("0x35")]=t[za("0x48")][za("0x23")](za("0x6f")),this[za("0x130")]=new u(t,this[za("0x93")]),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,49,52,48,52])}[za("0x5d")](){const t=this[za("0x4b")];t[za("0x104")].for(za("0xc3"))[za("0x103")]({model:za("0x10f"),view:t=>{const{id:e,type:n}=this[za("0x11a")](t.markerName),o=[za("0x24"),za("0xfc")+n];let s=3e3;return this.activeMarkers.includes(t.markerName)&&(o.push("ck-suggestion-marker--active"),s=3010),"deletion"==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t.conversion[za("0x7a")]("dataDowncast").add((e=>{e.on(za("0x87"),((e,n,o)=>{if(!o[za("0xdf")][za("0x13d")])return;const s=n[za("0x25")];if(!s)return;const r=o[za("0xfa")][za("0x12d")](s);t.model.schema[za("0x124")](s)&&r&&!r[za("0xc9")](za("0x118"))&&r.is(za("0x5"))&&(0,x.toWidget)(r,o[za("0xc0")])}),{priority:za("0x6a")})})),t[za("0x104")][za("0x7a")](za("0x7e")).markerToHighlight({model:za("0x10f"),view:(t,e)=>{if(!e[za("0xdf")][za("0x13d")])return null;const{type:n}=this._splitMarkerName(t[za("0x63")]);return{classes:[za("0x24"),za("0xfc")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o.item)return;if(o[za("0x25")].is(za("0x78")))return void s[za("0xd7")][za("0xf2")](o[za("0x25")],n[za("0xb9")]);const r=s[za("0xfa")][za("0x12d")](o[za("0x25")]);if(!o[za("0x25")].is("element")||!t[za("0xb5")][za("0x2d")].isBlock(o.item)||r.getCustomProperty(za("0x10e")))return;const{id:i}=this[za("0x11a")](o.markerName);s[za("0xc0")].addClass([za("0x24"),za("0xa2")],r),s[za("0xc0")][za("0xac")](za("0x36"),i,r),s[za("0xfa")][za("0xd6")](r,o.markerName),e&&(this.activeMarkers[za("0xce")](o.markerName)?s[za("0xc0")][za("0x2b")]("ck-suggestion-marker--active",r):s[za("0xc0")][za("0x41")](za("0xb4"),r));for(const e of t.model.createRangeIn(o[za("0x25")])[za("0x1d")]())s[za("0xd7")].consume(e,n[za("0xb9")]);s.consumable[za("0xf2")](o[za("0x25")],n.name)};t[za("0x104")][za("0x7a")](za("0x7e"))[za("0xd2")]((t=>{t.on(za("0x117"),((t,e,o)=>{o[za("0xdf")].showSuggestionHighlights&&n({showActiveMarkers:!1})(t,e,o)}),{priority:za("0xf4")})})),t[za("0x104")].for(za("0x7e"))[za("0x9f")]({model:za("0x10f"),view:(t,e)=>e[za("0xdf")][za("0x13d")]?null:{group:"suggestion",name:t[za("0x17")](11)}}),t[za("0x104")][za("0x7a")]("upcast").elementToElement({view:{name:za("0x10f"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=za("0xa3")+t[za("0xa5")](za("0xae"))+":"+t.getAttribute("id");return t.getAttribute(za("0x12f"))&&(n+=":"+t.getAttribute("marker-count")),e[za("0xa8")](za("0x7d"),{"data-name":n})}}),t[za("0x104")].for(za("0xe1"))[za("0x8c")]({view:za("0x10f")}),t[za("0x104")].for(za("0xc3"))[za("0xd2")]((t=>{t.on(za("0x117"),n(),{priority:za("0x6a")})})),t[za("0x104")][za("0x7a")](za("0xc3")).add((t=>{t.on(za("0x3e"),((t,e,n)=>{const o=n[za("0xfa")][za("0x107")](e[za("0x63")]);if(o)for(const t of o)t[za("0xc9")](za("0x10e"))||(n[za("0xc0")][za("0x41")]([za("0x24"),za("0xa2"),za("0xb4")],t),n[za("0xc0")].removeAttribute("data-suggestion",t),n[za("0xfa")].unbindElementFromMarkerName(t,e[za("0x63")]))}),{priority:za("0x6a")})})),t[za("0xb5")].document[za("0xc8")]((e=>{let n=!1;const o=Array[za("0x18")](t[za("0xb5")][za("0x89")][za("0xd0")][za("0x11b")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this._splitMarkerName(x);if(za("0x10f")!==o)continue;const d=this[za("0x10d")][za("0x23")](l);if(null!=a[za("0x70")])if(za("0x7f")==c&&(n=n||Xa(a[za("0x70")],x,e,t[za("0xb5")].schema)),a[za("0x70")][za("0x77")]||"$graveyard"==a[za("0x70")].root.rootName||"formatBlock"==c&&!Ja(a[za("0x70")])||"deletion"==c&&(Ka(i=a[za("0x70")])||(r=i)[za("0xbb")].parent==r[za("0xf5")].nodeBefore&&r[za("0xbb")][za("0xb0")]))e[za("0xe")](x),n=!0;else{if(!d||!d[za("0xc4")])continue;s[za("0xd2")](d)}}var r,i;return s[za("0x11c")]>0&&(n=!!this._joinWithAdjacentSuggestions(s)||n),n})),t[za("0xb5")][za("0x89")].registerPostFixer((e=>{let n=!1;for(const o of t[za("0xb5")][za("0x89")][za("0xd0")][za("0xf6")]()){if(za("0xd5")!=o[za("0x33")])continue;const s=o[za("0xf3")][za("0x112")](o[za("0xd3")]);if(s.isAtEnd)for(const r of this._suggestions.values()){if(r[za("0x61")]||!r[za("0xc4")])continue;if(za("0x9c")!=r[za("0x33")])continue;const i=r[za("0x53")]();if(i[za("0xbb")][za("0xaf")]!=i[za("0xf5")][za("0xaf")]&&i[za("0xf5")].isEqual(o[za("0xf3")])){const o=t.model[za("0x12")](i[za("0xbb")],s);e[za("0x9b")](r[za("0xdc")](),{range:o}),n=!0}}}return n})),t.model.markers.on(za("0x4d"),((t,e,n)=>{if(null==n){const{id:t}=this[za("0x11a")](e[za("0xb9")]),n=this._suggestions.get(t);n&&n[za("0x1f")](e[za("0xb9")])}})),t[za("0xb5")].document.on(za("0x3f"),(()=>{const e=Array[za("0x18")](t[za("0xb5")][za("0x89")][za("0xd0")].getChangedMarkers())[za("0x6c")]((t=>za("0x10f")===this[za("0x11a")](t[za("0xb9")])[za("0x6d")]));if(0===e[za("0xd3")])return;e[za("0x2")](((t,e)=>{const n=t.data[za("0x7")],o=e[za("0x110")][za("0x7")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[za("0xbb")].isBefore(o.start)?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this._splitMarkerName(t);if(null===s[za("0x7")]){const e=this[za("0x43")](t);o[za("0xd2")](e)}else{const t=this._suggestions[za("0x23")](e);null!==s[za("0x70")]||t[za("0xc4")]?(n[za("0xd2")](t[za("0x39")]),o[za("0xd2")](t)):this[za("0xdb")](t)}}o.size>0&&this._refreshSuggestionsChain(o);for(const t of n)this[za("0x10c")](za("0x3c"),t)})),t[za("0xb5")].on("applyOperation",((e,n)=>{const o=n[0];if(!this[za("0x10d")].size)return;if(!o[za("0x4f")])return;if(o[za("0x8")][za("0xc")]||!o[za("0x8")][za("0x122")])return;let s,r;switch(o[za("0x33")]){case za("0xd5"):s=t.model[za("0x5c")](o[za("0xf3")]),r=s[za("0x112")](o[za("0xf9")]);break;case za("0x8e"):s=t[za("0xb5")][za("0x5c")](o[za("0x100")]),r=t[za("0xb5")][za("0x5c")](o[za("0x74")]);break;case za("0x2f"):s=t.model[za("0x5c")](o.targetPosition),r=s[za("0x112")](o[za("0xf9")]);break;default:return}const i=t.model[za("0x12")](s,r);t.model[za("0xb2")]((()=>{for(const{suggestion:t,meta:e}of this[za("0x56")](i)){if(t[za("0x61")])continue;if("formatInline"==t[za("0x33")])continue;const n=t.data&&t[za("0x110")][za("0xa0")];(za("0x9c")!=t[za("0x33")]||za("0x8e")==o[za("0x33")]&&!n)&&(e[za("0x91")]||"insertion"==t[za("0x33")]&&e.isOwn||t[za("0x53")]().containsRange(i)&&this._breakSuggestionMarker(t,s,r))}}))}),{priority:"lowest"}),t[za("0xb5")].on(za("0x119"),((e,n)=>{const o=n[0],s=n[1];if(s&&s[za("0xbf")])return;if(this._isForcedDefaultExecutionBlock)return;if(!this[za("0x130")][za("0x11d")])return;if(o[za("0x77")])return;const r=t[za("0xb5")][za("0x2d")],{start:i,end:x}=o.getFirstRange(),a=i[za("0x3a")]&&r[za("0x133")](i.nodeAfter)?null:r[za("0x105")](i,za("0x66")),c=x.nodeBefore&&r.isLimit(x[za("0xc2")])?null:r[za("0x105")](x,"backward"),l=t[za("0xb5")][za("0x12")](a?a.start:i,c?c[za("0xf5")]:x);t.model.change((e=>{this[za("0xe7")](l);const n=t[za("0xb5")].schema[za("0x105")](l[za("0xbb")]);o.is(za("0xee"))?e[za("0x51")](n):o[za("0x85")](n)})),e[za("0x3d")]()}),{priority:e.priorities[za("0x8d")]+10}),t[za("0xb5")].on(za("0x30"),((e,n)=>{const o=n[n[za("0xd3")]-1];o&&o[za("0xbf")]||this[za("0xb7")]||this[za("0x130")][za("0x11d")]&&(t[za("0xb5")].change((()=>{let o=t[za("0xb5")].insertContent(n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[za("0x6e")]=o[za("0x26")]();const s=o[za("0xf5")][za("0xc2")],r=t[za("0xb5")].schema;s&&r[za("0xbd")](s)&&!r.isObject(s)&&(o=t.model.createRange(o[za("0xbb")],t[za("0xb5")][za("0x5c")](s,za("0xf5")))),this[za("0x129")](o)})),e[za("0x3d")]())}),{priority:za("0x6a")}),this.editor[za("0x69")][za("0xd2")](za("0xf7"),this[za("0x130")]),this.enableCommand(za("0xf7"));const o=new b(t,this[za("0x10d")]);t[za("0x69")][za("0xd2")](za("0x59"),o),this[za("0x1")](za("0x59"));const s=new C(t,this[za("0x10d")]);t[za("0x69")].add("discardSuggestion",s),this[za("0x1")]("discardSuggestion"),t[za("0x69")][za("0xd2")](za("0x132"),new F(t,o,this._suggestions)),this.enableCommand(za("0x132")),t[za("0x69")][za("0xd2")](za("0x4e"),new F(t,s,this[za("0x10d")])),this[za("0x1")](za("0x4e")),t.commands[za("0xd2")](za("0x5b"),new U(t,o,this[za("0x10d")])),this[za("0x1")]("acceptSelectedSuggestions"),t.commands[za("0xd2")]("discardSelectedSuggestions",new U(t,s,this._suggestions)),this[za("0x1")]("discardSelectedSuggestions");const r=t[za("0xfb")][za("0x23")](za("0xf"));this[za("0xab")](r,za("0x5a"),((t,{threadId:e})=>{const n=this[za("0x10d")][za("0x23")](e);n&&n.commentThread&&1===n.commentThread[za("0xd3")]&&this[za("0xca")](e,{hasComments:!0})}),{priority:za("0xe6")}),this[za("0xab")](r,"removeComment",((t,{threadId:e})=>{const n=this[za("0x10d")][za("0x23")](e);n&&n[za("0x94")]&&!n[za("0x94")][za("0xd3")]&&this[za("0xca")](e,{hasComments:!1})}),{priority:za("0xe6")})}set adapter(t){if(this[za("0x81")])throw new e.CKEditorError("track-changes-adapter-already-set",this);this[za("0x81")]=t}get[za("0x5e")](){return this[za("0x81")]}[za("0xa7")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions[za("0x10a")]())t&&!e[za("0xc4")]||n.push(e);return e?n[za("0xb")]((t=>t[za("0x42")]())):n}[za("0x99")](t){const n=this[za("0x10d")][za("0x23")](t);if(!n)throw new e.CKEditorError(za("0x2a"),this);return n}hasSuggestion(t){return this._suggestions[za("0xbc")](t)}[za("0x127")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[za("0x33")].split(":"),i=this._suggestions[za("0x23")](n)||this[za("0xb6")](s,r,n,e,o);if(this[za("0xdd")](i),this[za("0x84")](i,s,r||null,e),i.createdAt=t[za("0x135")],o&&o[za("0x34")]){const t=o["@external"],e=this[za("0x22")](t.authorName);i[za("0x60")]=t[za("0x135")],i[za("0xbe")]=e,i[za("0x108")]=!0}else i[za("0x60")]=t[za("0x135")];switch(t[za("0x110")]&&(i[za("0x110")]=t[za("0x110")]),t[za("0xcb")]&&(i[za("0xcb")]=t[za("0xcb")]),this[za("0x81")]&&this._adapter.addSuggestion||(i[za("0xa6")]=!0),this[za("0xa9")].get(i)){case"notReady":this._suggestionState[za("0xd9")](i,za("0xe4"));break;case za("0xec"):i.isInContent?(this._suggestionState[za("0xd9")](i,za("0xc5")),this[za("0x10c")](za("0x120"),i)):this[za("0xa9")][za("0xd9")](i,za("0xb8"))}return i}[za("0x59")](t){this.forceDefaultExecution((()=>{this[za("0x4b")][za("0xb5")][za("0xb2")]((()=>{for(const e of t.getAllAdjacentSuggestions())e[za("0x1c")]()}))}))}discardSuggestion(t){this[za("0xbf")]((()=>{this[za("0x4b")][za("0xb5")][za("0xb2")]((()=>{for(const e of t[za("0x13b")]())e.discard()}))}))}[za("0x1")](t,n){const o=this[za("0x4b")][za("0x69")].get(t);if(!o)throw new e.CKEditorError(za("0xde"),this,{commandName:t});this[za("0x93")][za("0xd2")](o),n&&o.on(za("0x134"),((t,e)=>{this[za("0x130")][za("0x11d")]&&(this[za("0xb7")]||e[za("0xd3")]>0&&e[e[za("0xd3")]-1]&&e[e[za("0xd3")]-1][za("0xbf")]||(n(((...t)=>o[za("0x134")](...t,{forceDefaultExecution:!0})),...e),t.stop()))}),{priority:za("0x6a")})}[za("0xbf")](t){let n,o;const s=this[za("0xb7")];this[za("0xb7")]=!0;try{n=t()}catch(t){o=t}return s||(this[za("0xb7")]=!1),o&&e.CKEditorError[za("0x98")](o,this),n}markInsertion(t,n=null,o={}){if(t[za("0x77")])return null;const s=this[za("0x4b")][za("0xfb")][za("0x23")](za("0x86")).me;for(const{suggestion:e,meta:o}of this[za("0x56")](t,za("0x109")))if(o[za("0xe2")]){if(!o[za("0x13c")]){if(!this[za("0x35")]&&o[za("0x91")])continue;return e}if(n==e[za("0xc1")]){const n=e[za("0x53")]();return n[za("0xbb")][za("0x101")](t[za("0xf5")])?this[za("0xc7")](e,this[za("0x16")].createRange(t.start,n[za("0xf5")])):this[za("0xc7")](e,this[za("0x16")][za("0x12")](n.start,t[za("0xf5")])),e}}const r=(0,e.uid)(),i=s.id,x=n?za("0xa1")+n:"insertion",a=this[za("0x8a")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x8f")](x,r,i,t),a}[za("0x44")](t,n=za("0x137"),o={}){const s=this[za("0x4b")][za("0xfb")][za("0x23")]("Users").me,r=this[za("0xe5")][za("0x72")](za("0x109"),n,za("0xef"));for(const e of this[za("0xa7")]())if(e.author.id==s.id&&za("0x109")==e.type&&e[za("0xc1")]==n&&(r(e[za("0x65")](),t)||r(t,e[za("0x65")]()))){for(const n of t)e.addRange(n);return e}if(this[za("0x35")])for(const e of t)for(const{suggestion:n,meta:o}of this[za("0x56")](e,za("0x109"))){if(!o.isOwn)continue;let e=!0;for(const o of n[za("0x65")]())for(const n of t)if(!o[za("0x55")](n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=s.id,a=za("0xa1")+n,c=this[za("0x8a")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[za("0x8f")](a,i,x,e,Zo[za("0x2c")]());return c}[za("0x3b")](t,n,o=null,s={}){if(o=o||$a(n),t[za("0x77")])return null;if(za("0x4c")===this._trackFormatChanges){const e=this[za("0xe5")].getSuggestionCallback(za("0x7f"),o,za("0x1c"));return this[za("0xbf")]((()=>e([t],n,s))),null}const r=this[za("0x4b")].plugins[za("0x23")](za("0x86")).me,i=[];if("always"!==this._trackFormatChanges)for(const{suggestion:e,meta:n}of this._findSuggestions(t,za("0x109")))n.isOwn&&!n[za("0x52")]&&i[za("0xd4")](...e[za("0x65")]());const x=function(t,e){const n=[];for(const o of e){const e=t[za("0x12e")](o);e&&n[za("0xd4")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[za("0xd3")];){const o=n[e][za("0x113")](t);n.splice(e,1,...o),e+=o[za("0xd3")]}}return n}(t,i);x.length&&this._model[za("0xb2")]((()=>{for(const t of x){const e=this[za("0xe5")][za("0x72")](za("0x7f"),o,za("0x1c"));this[za("0xbf")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[za("0xbb")],a=t[za("0xf5")];for(const{suggestion:e,meta:n}of this[za("0x56")](t,za("0x7f"))){if(!n[za("0xe2")])continue;if(e[za("0xc1")]!=o)continue;const s=e.getFirstRange();if(s[za("0x55")](t,!0))return null;x=x[za("0xa4")](s.start)?x:s[za("0xbb")],a=a[za("0x1e")](s[za("0xf5")])?a:s.end,i?s.start[za("0xa4")](i.getFirstRange()[za("0xbb")])?(i[za("0xff")](),i=e):e[za("0xff")]():i=e}const c=this._model[za("0x12")](x,a);if(i)this[za("0xc7")](i,c);else{const t=(0,e.uid)(),i=r.id;this[za("0x8a")]({id:t,type:za("0x82")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[za("0x8f")](za("0x82")+o,t,i,c)}}return null}[za("0x13")](t,n,o=[],s=null,r={}){n[za("0xfe")]||(n[za("0xfe")]=n[za("0xcc")]),n[za("0xa0")]=t.is(za("0xcd")),s=s||$a(n);const i=o[za("0xb")]((t=>Qa(t,this._model))),x=t.is(za("0xcd"))?t:Qa(t,this[za("0x16")]);if("never"===this[za("0x7b")]){const t=this[za("0xe5")][za("0x72")](za("0x9c"),s,"accept");return this.forceDefaultExecution((()=>t([x],n,r))),null}i[za("0xd4")](x);let a=!0;for(const t of i)if(!this[za("0x1a")](t)){a=!1;break}if(a&&za("0x20")!==this[za("0x7b")]){const t=this._suggestionFactory[za("0x72")]("formatBlock",s,za("0x1c"));return this.forceDefaultExecution((()=>t([x],n,r))),null}let c=null,l=x[za("0xbb")],d=x.end;for(const{suggestion:t,meta:e}of this[za("0x56")](x,za("0x9c"))){if(!e[za("0xe2")]||e.isNextTo||e.containsRangeInObject||e.isInsideObject)continue;if(t[za("0x110")][za("0xfe")]!=n[za("0xfe")])continue;const o=t[za("0x53")]();if(t[za("0xc1")]==s){if(o.containsRange(x,!0))return null;l=l[za("0xa4")](o[za("0xbb")])?l:o[za("0xbb")],d=d.isAfter(o[za("0xf5")])?d:o[za("0xf5")],c?o[za("0xbb")].isBefore(c[za("0x53")]()[za("0xbb")])?(c[za("0xff")](),c=t):t[za("0xff")]():c=t}else{const e=x[za("0x12e")](o);this[za("0x79")](t,e)}}const u=this[za("0x4b")].plugins[za("0x23")](za("0x86")).me,g=(0,e.uid)(),m=u.id;if(c)return this[za("0xc7")](c,this[za("0x16")].createRange(l,d)),c;{const t=this[za("0x8a")]({id:g,type:za("0x10b")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this._addSuggestionMarker(za("0x10b")+s,g,m,this[za("0x16")][za("0x12")](l,d)),t}}[za("0x3")](t,n,o=[],s=null,r={}){n[za("0xfe")]||(n[za("0xfe")]=n[za("0xcc")]);const i=t[0];n[za("0xa0")]=i.is(za("0xcd")),s=s||$a(n);const x=o[za("0xb")]((t=>Qa(t,this[za("0x16")]))),a=i.is(za("0xcd"))?t:t[za("0xb")]((t=>Qa(t,this[za("0x16")])));if(za("0x4c")===this._trackFormatChanges){const t=this[za("0xe5")].getSuggestionCallback(za("0x9c"),s,"accept");return this[za("0xbf")]((()=>t(a,n,r))),null}x[za("0xd4")](...a);let c=!0;for(const t of x)if(!this[za("0x1a")](t)){c=!1;break}if(c&&za("0x20")!==this[za("0x7b")]){const t=this[za("0xe5")][za("0x72")](za("0x9c"),s,"accept");return this[za("0xbf")]((()=>t(a,n,r))),null}const l=this.editor[za("0xfb")].get(za("0x86")).me;for(const t of this[za("0xa7")]()){if(t[za("0xbe")].id!=l.id)continue;if("formatBlock"!=t.type||t[za("0x110")][za("0xfe")]!=n.formatGroupId)continue;const e=t.subType==s;for(let n=0;n<a.length;n++){const o=a[n];for(const s of t[za("0x71")]()){const r=s.getRange();if(o[za("0x101")](r)){e?(a[za("0x11f")](n,1),n--):t[za("0xe")](s[za("0xb9")]);break}}}}if(0==a[za("0xd3")])return null;const d=this._suggestionFactory.getSuggestionCallback(za("0x9c"),s,za("0xef"));for(const t of this.getSuggestions())if(t.author.id==l.id&&za("0x9c")==t[za("0x33")]&&t[za("0x110")][za("0xfe")]==n[za("0xfe")]&&t[za("0xc1")]==s&&(d(t[za("0x65")](),a)||d(a,t[za("0x65")]()))){for(const e of a)t[za("0x1b")](e);return t}const u=(0,e.uid)(),g=l.id,m="formatBlock:"+s,f=this[za("0x8a")]({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[za("0x8f")](m,u,g,t,Zo[za("0x2c")]());return f}[za("0xe7")](t,n=null,o={}){if(t[za("0x77")])return null;const s=this.editor.plugins[za("0x23")](za("0x86")).me,r=new i.LiveRange(t[za("0xbb")],t[za("0xf5")]);for(const{suggestion:t,meta:e}of this[za("0x56")](r,za("0x109")))if(e.isOwn&&!e.isNextTo)if(t[za("0x61")]){const e=t.getRanges()[za("0x6c")]((t=>za("0xed")!=t[za("0xb3")][za("0x9e")]));if(e.every((t=>r[za("0x55")](t,!0)))&&t[za("0x27")](),e[za("0x9d")]((t=>t[za("0x55")](r,!0)))){const t=this[za("0xe5")][za("0x72")](za("0x46"),n,za("0x1c"));return this[za("0xbf")]((()=>t([r],null,o))),null}}else{const e=r.getIntersection(t[za("0x53")]());null!==e&&t[za("0xaa")]([e],null,o)}if(r.detach(),r[za("0x77")]||"$graveyard"==r.root[za("0x9e")])return null;let x=null,a=r.start,c=r[za("0xf5")];for(const{suggestion:t,meta:e}of this[za("0x56")](r,za("0x46")))if(e.isOwn)if(t[za("0x61")]&&this[za("0x35")]){let e=!0;for(const n of t.getRanges()){if(n[za("0x55")](r,!0))return t;r.containsRange(n)||(e=!1)}e&&t[za("0x27")]()}else{const n=t.getFirstRange();if(n[za("0x55")](r,!0)){if(!this._mergeNestedSuggestions&&e.containsRangeInObject)continue;return t}a=a[za("0xa4")](n[za("0xbb")])?a:n[za("0xbb")],c=c[za("0x1e")](n.end)?c:n.end,x?n[za("0xbb")].isBefore(x.getFirstRange()[za("0xbb")])?(x[za("0xff")](),x=t):t[za("0xff")]():x=t}if(x)return this[za("0xc7")](x,this[za("0x16")].createRange(a,c)),x;{const t=(0,e.uid)(),r=this[za("0x16")][za("0x12")](a,c),i=s.id,x=n?za("0x32")+n:za("0x46"),l=this[za("0x8a")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x8f")](x,t,i,r),l}}[za("0xe9")](t,n=za("0x137"),o={}){const s=this[za("0x4b")][za("0xfb")][za("0x23")](za("0x86")).me,r=t[za("0xb")]((t=>new i.LiveRange(t[za("0xbb")],t[za("0xf5")]))),x=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this[za("0x56")](t,za("0x109")))n[za("0xe2")]&&!n[za("0x13c")]&&x[za("0xd2")](e);for(const e of x)if(e.isMultiRange){const s=e[za("0x65")]();if((!e.attributes||!e[za("0xcb")][za("0x80")])&&s[za("0x28")]((t=>r[za("0x9d")]((e=>e[za("0x55")](t,!0)))))&&e[za("0x27")](),r[za("0x28")]((t=>s[za("0x9d")]((e=>e[za("0x55")](t,!0)))))){const e=this[za("0xe5")][za("0x72")](za("0x46"),n,za("0x1c"));return this[za("0xbf")]((()=>e(t,null,o))),null}}else{const t=e.getFirstRange();if(r[za("0x9d")]((e=>e[za("0x55")](t,!0)))&&e.discard(),r.every((e=>t[za("0x55")](e,!0)))){const t=this[za("0xe5")][za("0x72")]("deletion",n,"accept");return this[za("0xbf")]((()=>t(r,null,o))),null}}const a=this[za("0xe5")][za("0x72")](za("0x46"),n,"join");let c=null;for(const t of this[za("0xa7")]())if(t[za("0xbe")].id==s.id&&t[za("0xc4")]&&za("0x46")==t[za("0x33")]&&t[za("0xc1")]==n&&(a(t[za("0x65")](),r)||a(r,t[za("0x65")]())))if(c){if(t.commentThread&&t.commentThread[za("0xd3")])continue;for(const e of t[za("0x65")]())c[za("0x95")](e)||c.addRange(e);t.removeMarkers()}else{c=t;for(const e of r)t[za("0x95")](e)||t.addRange(e)}if(c)return c;x[za("0x97")]();for(const t of r)for(const{suggestion:e,meta:n}of this._findSuggestions(t,za("0x46")))n[za("0xe2")]&&x[za("0xd2")](e);for(const t of x){const e=t[za("0x65")]();if((!o||!o[za("0x80")])&&r[za("0x28")]((t=>e[za("0x9d")]((e=>e.containsRange(t,!0))))))return t;(!t[za("0xcb")]||!t.attributes.skipNestingCheck)&&e[za("0x28")]((t=>r.some((e=>e.containsRange(t,!0)))))&&t[za("0x27")]()}const l=(0,e.uid)(),d=s.id,u=za("0x32")+n,g=this[za("0x8a")]({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t[za("0x19")](),t[za("0x77")]||za("0xed")==t[za("0xb3")].rootName||this[za("0x8f")](u,l,d,t,Zo.getMultiRangeId());return g}_setSuggestionRange(t,e){const n=t[za("0xdc")]();this[za("0x16")][za("0xb2")]((t=>{t[za("0x9b")](n,{range:e})}))}[za("0xdd")](t){const e=t.id,n=this.editor.config.get(za("0x13a"));this[za("0xe8")][za("0x6")](e)||this[za("0xe8")][za("0x92")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[za("0xe8")][za("0x8b")](e);o[za("0x126")]("isRemovable"),o.isRemovable=!1,t[za("0x94")]=o}[za("0x84")](t,n,o,s){if(t.type!=n||t.subType!=o||t[za("0x15")].id!=s)throw this.editor.enableReadOnlyMode(za("0x115")),new e.CKEditorError("track-changes-suggestion-data-mismatch",this)}[za("0x79")](t,n){const o=t[za("0x53")]();if(n.isEqual(o))t.removeMarkers();else if(o[za("0x55")](n)){const s=this[za("0x16")].createPositionAt(n.start[za("0xc2")],"end");this[za("0xc7")](t,this[za("0x16")][za("0x12")](o[za("0xbb")],s));const r=(0,e.uid)(),i=t.creator.id,x=t.type+":"+t[za("0xc1")];this[za("0x8a")]({id:r,type:x,createdAt:new Date,authorId:i,data:t[za("0x110")],attributes:t[za("0xcb")]});const a=this[za("0x16")][za("0x5c")](n[za("0xf5")][za("0xaf")],"after"),c=this[za("0x16")][za("0x12")](a,o[za("0xf5")]);this[za("0x8f")](x,r,i,c)}else if(o.containsPosition(n[za("0xbb")])){const e=this[za("0x16")][za("0x5c")](n.start.nodeBefore,za("0xf5"));this._setSuggestionRange(t,this[za("0x16")][za("0x12")](o[za("0xbb")],e))}else{const e=this[za("0x16")][za("0x5c")](n[za("0xf5")][za("0xaf")],za("0x14"));this[za("0xc7")](t,this[za("0x16")].createRange(e,o[za("0xf5")]))}}[za("0x1a")](t){for(const{suggestion:e,meta:n}of this[za("0x56")](t,za("0x109"))){if(!n.isOwn)continue;const o=e.getRanges();for(const e of o)if(!t[za("0x113")](e)[za("0xd3")])return!0}return!1}[za("0x47")](t){const n=this[za("0x4b")][za("0xfb")][za("0x23")](za("0x86")).getUser(t);if(!n)throw new e.CKEditorError("track-changes-user-not-found",this);return n}_getExternalAuthor(t){const e=this[za("0x4b")][za("0xfb")].get(za("0x86")),n=(0,r.hashObject)("external:"+t);return e[za("0x12c")](n)||e[za("0x38")]({id:n,name:t})}[za("0xb6")](t,e,n,o,s){const r=this[za("0x47")](o),i=this[za("0xe5")][za("0x58")](t,e,n,r,s,(t=>this[za("0xca")](n,{attributes:t})));return this.listenTo(i,za("0x1c"),(()=>{this._updateSuggestionData(n,{state:za("0x7c")})}),{priority:za("0x6a")}),this[za("0xab")](i,za("0x27"),(()=>{this[za("0xca")](n,{state:za("0x62")})}),{priority:"high"}),this[za("0x10d")][za("0xd9")](n,i),this[za("0xa9")][za("0xd9")](i,za("0x12a")),i}[za("0x11a")](t){const e=t[za("0x8e")](":");return{group:e[0],type:e[1],subType:e[za("0xd3")]>=5?e[2]:null,id:e[za("0xd3")]<5?e[2]:e[3],authorId:e[za("0xd3")]<5?e[3]:e[4],markerCount:6==e[za("0xd3")]?e[5]:null}}_breakSuggestionMarker(t,n,o){const s=t[za("0x53")](),r=s[za("0xbb")],i=s[za("0xf5")];this._setSuggestionRange(t,this[za("0x16")][za("0x12")](r,n));const x=(0,e.uid)(),a=t[za("0x15")].id,c=t[za("0x33")]+(t.subType?":"+t[za("0xc1")]:"");this[za("0x8a")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[za("0xcb")],data:t[za("0x110")]}),"formatBlock"==t[za("0x33")]&&(o=this[za("0x16")][za("0x125")](o.parent)),this[za("0x8f")](c,x,a,this[za("0x16")][za("0x12")](o,i))}_findSuggestions(t,e=null){const n=[],o=this[za("0x16")].schema,s=this.editor[za("0xfb")][za("0x23")](za("0x86")).me;for(const r of this[za("0xa7")]())if(r[za("0xc4")]&&(!e||r[za("0x33")]==e))for(const e of r[za("0x65")]()){const i=t[za("0xbb")][za("0x101")](e[za("0xf5")])||t[za("0xf5")][za("0x101")](e[za("0xbb")]);if(i||t[za("0x12e")](e)){const x=t[za("0x55")](e)&&qa(o,e[za("0xbb")],t),a=e.containsRange(t)&&qa(o,t.start,e);n[za("0xd4")]({suggestion:r,meta:{isOwn:s==r.author,isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}[za("0x8f")](t,e,n,o,s){this[za("0x16")].change((r=>{let i=za("0xa3")+t+":"+e+":"+n;s&&(i=i+":"+s),r[za("0x6b")](i,{range:o,usingOperation:!0,affectsData:!0})}))}_removeSuggestion(t){const e=t.previous,n=t.next;t[za("0x57")]=null,null!=e&&(e[za("0xf0")]=null),t[za("0xf0")]=null,null!=n&&(n[za("0x57")]=null),za("0xc5")==this[za("0xa9")][za("0x23")](t)&&(this._suggestionState.set(t,za("0xb8")),this[za("0x10c")](za("0xfd"),t,e,n))}[za("0x8a")](t){const n=t.id,o=this.addSuggestionData(t);if(this._adapter&&this[za("0x81")][za("0x75")]){const s=this.editor.plugins[za("0x23")]("PendingActions"),r=o[za("0x50")],i=o[za("0xc1")]?o.type+":"+o[za("0xc1")]:o[za("0x33")],x=this[za("0x4b")][za("0x11e")],a=s[za("0xd2")](Yo(x,za("0x64"))),c={id:n,type:i,hasComments:r,data:t[za("0x110")]||null,originalSuggestionId:t[za("0xe0")]||null,attributes:o[za("0xcb")]};this[za("0x81")].addSuggestion(c)[za("0xe3")]((t=>{o._saved=!0,s[za("0x114")](a),t&&t[za("0x135")]&&(this._suggestions.get(n)[za("0x135")]=t[za("0x135")])}))[za("0x90")]((t=>{throw(0,e.logWarning)(za("0x131")),this[za("0x4b")][za("0xb5")][za("0x4")]({isUndoable:!1},(()=>{o[za("0x27")]()})),o.stopListening(),this._suggestions.delete(o.id),this[za("0xa9")][za("0x9a")](o),t}))}return o}[za("0xca")](t,e){const n=this[za("0x4b")][za("0xfb")][za("0x23")](za("0x2e")),o=this[za("0x99")](t);if(this[za("0x81")]&&this[za("0x81")].updateSuggestion)if(o[za("0xa6")]){const o=n.add(Yo(this.editor[za("0x11e")],za("0x64")));this[za("0x81")][za("0x31")](t,e).then((()=>{n[za("0x114")](o)}))}else o.on(za("0x83"),(()=>{this[za("0xca")](t,e)}))}_getSuggestionData(t){if(!this[za("0x81")]||!this[za("0x81")][za("0x99")])throw new e.CKEditorError("track-changes-adapter-missing-getsuggestion",this);return this[za("0x81")].getSuggestion(t)}_handleNewSuggestionMarker(t){const{id:e,type:n,subType:o,authorId:s}=this._splitMarkerName(t),r=this[za("0x10d")][za("0x23")](e)||this[za("0xb6")](n,o,e,s,{});switch(this[za("0x84")](r,n,o,s),this._suggestionState[za("0x23")](r)){case za("0x12a"):this[za("0x54")](e).then((t=>{let n=Promise[za("0xad")]();t.hasComments&&(n=this._commentsRepository.fetchCommentThread({channelId:this[za("0x4b")][za("0x48")][za("0x23")](za("0x13a")),threadId:e})),n[za("0xe3")]((()=>{this[za("0x127")](t)._saved=!0}))})),this[za("0xa9")][za("0xd9")](r,za("0xec"));break;case za("0xb8"):this[za("0xca")](e,{state:za("0x121")});case za("0xe4"):this[za("0xa9")][za("0xd9")](r,za("0xc5")),this[za("0x10c")](za("0x120"),r);break;case za("0xc5"):this[za("0x10c")](za("0x3c"),r)}return r[za("0x1f")](t),r}[za("0xd1")](t){const e=Array[za("0x18")](t)[za("0x6c")]((t=>!t[za("0x61")])),n=this.getSuggestions({skipNotAttached:!0}).filter((t=>!t[za("0x61")])),o=n[za("0x6c")]((e=>!t[za("0xbc")](e))),s=new Map(n[za("0xb")]((t=>[t,this[za("0xe5")][za("0x72")](t[za("0x33")],t[za("0xc1")],"chain")]))),r=new Map(n[za("0xb")]((t=>[t,t[za("0x53")]()]))),i=new Set,x=new Set;for(let t=0;t<e[za("0xd3")];t++)a(e[t],e,t+1);for(let t=0;t<e.length;t++)a(e[t],o,0);for(let t=0;t<e[za("0xd3")];t++){const n=e[t];!x[za("0xbc")](n)&&n.previous&&(n.previous[za("0xf0")]===n&&(n[za("0x57")][za("0xf0")]=null),n.previous=null),!i[za("0xbc")](n)&&n.next&&(n[za("0xf0")].previous===n&&(n[za("0xf0")][za("0x57")]=null),n[za("0xf0")]=null)}function a(t,e,n){for(let o=n;o<e[za("0xd3")];o++){const n=c(t,e[o]);n&&(n[0].next=n[1],n[1][za("0x57")]=n[0],i.add(n[0]),x[za("0xd2")](n[1]))}}function c(t,e){if(t[za("0xbe")].id!==e.author.id)return null;const n=s[za("0x23")](t)(t,e,r[za("0x23")](t),r[za("0x23")](e));return n&&s[za("0x23")](e)(t,e,r[za("0x23")](t),r.get(e))?n[1][za("0x94")]&&n[1][za("0x94")][za("0xd3")]?null:n:null}}_joinWithAdjacentSuggestions(t){const e=Array.from(t),n=this[za("0xa7")]({skipNotAttached:!0}),o=n[za("0x6c")]((e=>!t[za("0xbc")](e))),s=new Map(e[za("0xb")]((t=>[t,this[za("0xe5")][za("0x72")](t[za("0x33")],t[za("0xc1")],za("0xef"))]))),r=new Map(n[za("0xb")]((t=>[t,t[za("0x65")]()])));for(let t=0;t<e[za("0xd3")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e.length;t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n[za("0xd3")];i++){const o=n[i];if(o.type!==e[za("0x33")]||o[za("0xbe")].id!==e[za("0xbe")].id||o[za("0xc1")]!==e[za("0xc1")])continue;const x=s[za("0x23")](e),a=r[za("0x23")](e),c=r[za("0x23")](o),l=e[za("0x94")]&&e[za("0x94")][za("0xd3")],d=o[za("0x94")]&&o[za("0x94")][za("0xd3")];if(!l&&x(c,a))return t[za("0x10")](o,e),r.delete(e),!0;if(!d&&x(a,c))return t[za("0x10")](e,o),r.delete(o),!0}return!1}}[za("0x10")](t,e){if(t[za("0x61")])for(const n of e.getRanges())t.addRange(n);else{const n=e[za("0x53")]()[za("0xf5")];this[za("0xc7")](t,this._model[za("0x12")](t[za("0x53")]()[za("0xbb")],n))}e[za("0xff")]()}}class Va{constructor(t){this[za("0x37")]=t,this._model=t[za("0xb5")],this[za("0x106")]=new Map,this._defaultCallbacks=new Map,this._registerDefaultCallbacks()}[za("0x58")](t,e,n,o,s,r){return new Zo(this[za("0x16")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[za("0x72")](t,e,za("0x1c"))(...n),onDiscard:(...n)=>this.getSuggestionCallback(t,e,za("0x27"))(...n)})}registerCustomCallback(t,e,n,o){const s=t+":"+e+":"+n;this[za("0x106")].set(s,o)}[za("0x72")](t,e,n){const o=t+":"+e+":"+n;return this._customCallbacks[za("0x23")](o)||this._defaultCallbacks[za("0x23")](t+":"+n)}[za("0xba")](){const t=()=>{},e=t=>{t[za("0x2")](((t,e)=>t.start.isBefore(e.start)?1:-1)),this[za("0x16")][za("0xb2")]((e=>{for(const n of t){let t;t=n[za("0xf5")][za("0xb0")]&&n[za("0xf5")][za("0xaf")]==n.start[za("0x3a")]?e[za("0x68")](n[za("0xbb")].nodeAfter,"on"):e.createSelection(n),this._model.deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[za("0x16")].change((n=>{const{commandName:o,commandParams:s=[]}=e,r=t.map((t=>(Ka(t)&&(t=this._model.createRange(t[za("0xf5")])),t))).filter((t=>"$graveyard"!==t[za("0xb3")][za("0x9e")]));if(r[za("0xd3")]<1)return;const x=Array.from(this._model.document.selection[za("0x65")]()).map((t=>i.LiveRange[za("0xf8")](t)));n[za("0x51")](r);for(const t of this[za("0x37")][za("0x69")].commands())t[za("0x111")]();s[za("0xd4")]({forceDefaultExecution:!0}),this[za("0x37")][za("0x134")](o,...s);const a=x[za("0x6c")]((t=>"$graveyard"!=t[za("0xb3")][za("0x9e")]));a[za("0xd3")]>0&&n[za("0x51")](a);for(const t of x)t[za("0x19")]()}))},o=(t,e)=>1==t[za("0xd3")]&&1==e[za("0xd3")]&&t[0][za("0xf5")].isEqual(e[0][za("0xbb")]),s=(t,e,n,o)=>Za(t,e,n,o,this._model)?[t,e]:Za(e,t,o,n,this[za("0x16")])?[e,t]:null;this._defaultCallbacks[za("0xd9")]("insertion:accept",t),this._defaultCallbacks.set("insertion:discard",e),this[za("0x102")][za("0xd9")](za("0x76"),o),this[za("0x102")][za("0xd9")](za("0xa"),s),this[za("0x102")][za("0xd9")](za("0x0"),e),this[za("0x102")].set(za("0xd"),t),this[za("0x102")].set("deletion:join",o),this[za("0x102")].set("deletion:chain",s),this[za("0x102")].set("formatInline:accept",n),this[za("0x102")].set(za("0x67"),t),this[za("0x102")].set(za("0x11"),o),this[za("0x102")][za("0xd9")](za("0xc6"),t),this._defaultCallbacks[za("0xd9")](za("0x45"),n),this._defaultCallbacks[za("0xd9")](za("0xd8"),t),this[za("0x102")][za("0xd9")](za("0x96"),o),this[za("0x102")][za("0xd9")]("formatBlock:chain",t)}}function qa(t,e,n){for(const o of e.parent[za("0x116")]({includeSelf:!0,parentFirst:!0})){if(o[za("0xb3")]==o)return!1;if(!n[za("0x88")](o))return!1;if(t[za("0x124")](o)||t.isLimit(o))return!0}return!1}function Ka(t){return t[za("0xf5")][za("0xaf")]==t[za("0xbb")][za("0x3a")]&&t.end[za("0x5f")]}function Xa(t,e,n,o){const s=t=>!t[za("0x25")].is(za("0x139"))&&!o[za("0x124")](t[za("0x25")]),r=t[za("0xbb")].getLastMatchingPosition(s),i=t[za("0xf5")].getLastMatchingPosition(s,{direction:za("0x49")});return!(t[za("0xbb")][za("0x101")](r)&&t.end.isEqual(i)||(r[za("0xa4")](i)?n[za("0x9b")](e,{range:n[za("0x12")](r,i)}):n[za("0xe")](e),0))}function $a(t){return(0,r.hashObject)(t)}function Ja(t){const e=t[za("0xbb")].nodeAfter;return e&&e.is(za("0xb1"))}function Qa(t,e){const n=e[za("0x2d")][za("0x124")](t)||e[za("0x2d")][za("0x123")](t);return e.createRange(e.createPositionAt(t,"before"),n?e[za("0xea")](t):e.createPositionAt(t,za("0xf5")))}function Za(t,e,n,o,s){if(n[za("0xf5")][za("0x101")](o[za("0xbb")]))return!0;if(t.type!=e[za("0x33")])return!1;if(!n.end[za("0x29")](o[za("0xbb")]))return!1;const r=s[za("0x12")](n[za("0xf5")],o[za("0xbb")])[za("0x136")]();for(const t of r)if([za("0x4a"),za("0x138")][za("0xce")](t[za("0x33")])&&s[za("0x2d")][za("0x133")](t[za("0x25")]))return!1;return!0}const Ya=["acceptSuggestion","_pendingAction","model","commentThreadController","canEditAt","discardSuggestion","remove","_removePendingAction","_discardCommand","getRanges","listenTo","isDirty","change:isDirty","PENDING_ACTION_SUGGESTION","_acceptCommand","commands","_editor","destroy","locale","execute","canDiscard","add","_setPendingAction","unbind","canAccept","get","plugins","bind","view","isEnabled","PendingActions"];var tc,ec;tc=Ya,ec=282,function(t){for(;--t;)tc.push(tc.shift())}(++ec);const nc=function(t,e){return Ya[t-=0]};class oc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[nc("0x1e")]=e,this[nc("0x19")]=n,this[nc("0x0")]=o,this._editor=t,this._acceptCommand=t[nc("0xc")][nc("0x16")](nc("0x1c")),this._discardCommand=t[nc("0xc")].get(nc("0x2")),this[nc("0x19")][nc("0x18")]("isEnabled").to(this[nc("0xb")],this[nc("0x5")],((t,e)=>t||e)),this[nc("0x19")].bind("canAccept").to(this[nc("0xb")],"isEnabled",(t=>t&&this._editor[nc("0x1e")][nc("0x1")](e[nc("0x6")]()))),this.view[nc("0x18")](nc("0x11")).to(this[nc("0x5")],"isEnabled",(t=>t&&this._editor[nc("0x1e")][nc("0x1")](e.getRanges()))),this[nc("0x1d")]=null,n[nc("0x8")]&&this._setPendingAction(),this[nc("0x7")](n,nc("0x1c"),(()=>this.acceptSuggestion())),this[nc("0x7")](n,"discardSuggestion",(()=>this[nc("0x2")]())),this.listenTo(n,nc("0x9"),(()=>{n[nc("0x8")]?this[nc("0x13")]():this[nc("0x4")]()}))}[nc("0x1c")](){this[nc("0xb")][nc("0x10")](this.model.id)}discardSuggestion(){this[nc("0x5")][nc("0x10")](this.model.id)}[nc("0xe")](){this[nc("0x19")][nc("0x14")](nc("0x1a")),this[nc("0x19")].unbind(nc("0x15")),this[nc("0x19")][nc("0x14")]("canDiscard"),this.stopListening(),this.commentThreadController[nc("0xe")](),this[nc("0x1d")]&&this[nc("0x4")]()}[nc("0x13")](){const t=Yo(this[nc("0xd")][nc("0xf")],nc("0xa"));this[nc("0x1d")]=this[nc("0xd")][nc("0x17")].get(nc("0x1b"))[nc("0x12")](t)}_removePendingAction(){null!==this[nc("0x1d")]&&this._editor[nc("0x17")][nc("0x16")]("PendingActions")[nc("0x3")](this[nc("0x1d")]),this[nc("0x1d")]=null}}const sc=["_localUser","cancel","_createCommentThreadInputView","setData","commentsListView","destroy","hasDirtyComment","_model","fire","authoredAt","value","_config","commentThread","set","_createCommentViews","bind","submit","CommentView","showInput","removeComment","updateComment","commentThreadInputView","addComment","focus","isDirty","isReadOnly","isEnabled","editorConfig","isActive","canDiscard","length","assign","editor"];var rc,ic;rc=sc,ic=189,function(t){for(;--t;)rc.push(rc.shift())}(++ic);const xc=function(t,e){return sc[t-=0]};class ac extends s.View{constructor(t,e,n,o){super(t),this.commentsListView=null,this[xc("0x1e")]=null,this[xc("0x16")](xc("0x4"),!1),this[xc("0x16")](xc("0x12"),e[xc("0x12")]),this[xc("0x18")](xc("0x12")).to(e),this[xc("0x16")]("descriptionParts",[]),this[xc("0x16")](xc("0x0"),!1),this.set(xc("0x2"),!1),this.set("canAccept",!1),this[xc("0x16")](xc("0x5"),!1),this[xc("0x10")]=e,this[xc("0x9")]=n,this._config=o,o.disableComments?this[xc("0x16")](xc("0x6"),1):this[xc("0x17")]()}[xc("0x20")](){this.element[xc("0x20")]()}[xc("0xe")](){this[xc("0xd")]&&this[xc("0xd")].destroy(),this[xc("0x1e")]&&this[xc("0x1e")].destroy(),super.destroy()}[xc("0x17")](){const{CommentsListView:t}=this[xc("0x14")];this.commentsListView=new t(this.locale,this[xc("0x10")][xc("0x15")],Object[xc("0x7")]({CommentView:this._config[xc("0x1a")]},this[xc("0x14")])),this[xc("0xd")].delegate(xc("0x1c")).to(this),this[xc("0xd")].delegate(xc("0x1d")).to(this),this.commentsListView[xc("0x18")]("isActive").to(this),this.set(xc("0x6"),this.commentsListView[xc("0x6")]+1),this[xc("0x18")](xc("0x6")).to(this[xc("0xd")],xc("0x6"),(t=>t+1)),this[xc("0x1e")]=this[xc("0xb")](),this.on(xc("0x1c"),(()=>this[xc("0x20")]())),this[xc("0x18")](xc("0x0")).to(this.commentsListView,xc("0xf"),this[xc("0x1e")].commentInputView,xc("0x13"),((t,e)=>t||!!e))}[xc("0xb")](){const{CommentThreadInputView:t}=this[xc("0x14")],e=new t(this.locale,this[xc("0x9")],this[xc("0x14")][xc("0x3")]),n=e.commentInputView;return e[xc("0x18")](xc("0x1b")).to(this,"isActive",this._model[xc("0x15")],xc("0x1"),n,"value",((t,e,n)=>!!n||t&&!e)),n.on(xc("0x19"),((t,e)=>{this[xc("0x11")](xc("0x1f"),e),n[xc("0x8")][xc("0xc")]("")})),n.on(xc("0xa"),(()=>this[xc("0x20")]())),n[xc("0x18")]("disabledSubmit").to(this[xc("0x10")][xc("0x15")],"isReadOnly"),e}}const cc=["acceptSuggestion","getUserViewNotificationText","description","createElement","fire","bind","value","span","title","set",".ck-annotation__content-wrapper","join","check","ck-annotation__actions","setTemplate","acceptButton","ck-annotation__user","ck-suggestion","ck-suggestion__user","getTemplate","color","isExternal","name","ck-suggestion-","extendTemplate","innerHTML","ck-annotation__info-time","attributes","type","commentsListView","discardButton","_descriptionElement","isActive","ck-suggestion--accept","Accept suggestion","render","ck-suggestion--discard","ck-suggestion__actions","ck-comment__external","EXTERNAL_SUGGESTION","_config","source","ck-annotation__info-name","ck-annotation__main","map","canDiscard","discardSuggestion","importWord","ck-suggestion--disabled-comments","disableComments","getExternalSuggestionNote","</span>","commentThreadInputView","push",'"></span>',"isEnabled","@external","_createButton","userView","innerText",'<span class="ck-suggestion-color" style="background-color: ',"ck-comment__info-time","<p>","canAccept","change:description","Discard suggestion","cancel","ck-annotation__content-wrapper","ck-suggestion-wrapper",'<span class="ck-suggestion-type">',"_model","locale","children","ck-suggestion__main","ck-suggestion__info-name","creator","split","ck-annotation","div","querySelector","descriptionParts","author"];var lc,dc;lc=cc,dc=161,function(t){for(;--t;)lc.push(lc.shift())}(++dc);const uc=function(t,e){return cc[t-=0]};class gc extends ac{constructor(e,n,o,s){super(e,n,o,s),this[uc("0xc")]("type",""),this[uc("0x8")](uc("0x1f")).to(this,uc("0x1"),(t=>t&&t[0]?t[0][uc("0x1f")]:"")),this.bind(uc("0x5")).to(this,uc("0x1"),this,uc("0x23"),((t,e)=>{let n="";for(const e of t)n+=uc("0x41")+mc(e.content,e[uc("0x17")])+"</p>";return e?n:(0,r.trimHtml)(n,{limit:140})})),this[uc("0x22")]=null,this.acceptButton=this[uc("0x3c")](Yo(e,uc("0x25")),t.icons[uc("0xf")],uc("0x24"),uc("0x3"),"sw"),this[uc("0x12")][uc("0x8")](uc("0x3a")).to(this,uc("0x42")),this[uc("0x21")]=this._createButton(Yo(e,uc("0x44")),t.icons[uc("0x45")],uc("0x27"),uc("0x31"),"sw"),this[uc("0x21")][uc("0x8")](uc("0x3a")).to(this,uc("0x30")),this.userView=new r.UserView(e,this._model[uc("0x2")],this[uc("0x4")]()),this[uc("0x3d")][uc("0x1b")]({attributes:{class:[uc("0x15"),uc("0x13")]}}),this[uc("0x11")](this[uc("0x16")]())}[uc("0x16")](){const t=this.bindTemplate,e=[{tag:"div",attributes:{class:["ck-suggestion__info","ck-annotation__info"]},children:[{tag:uc("0xa"),children:[{text:this[uc("0x3d")][uc("0x19")]}],attributes:{class:[uc("0x4d"),uc("0x2d")]}},{tag:"time",attributes:{datetime:t.to("authoredAt"),class:[uc("0x40"),uc("0x1d")]},children:[{text:t.to("authoredAt",(t=>this[uc("0x2b")].formatDateTime(t)))}]}]},{tag:uc("0x51"),attributes:{class:[uc("0x28"),uc("0x10")]},children:[this[uc("0x12")],this[uc("0x21")]]},{tag:uc("0x51"),attributes:{class:[uc("0x46")]}}];this[uc("0x49")][uc("0x18")]&&e.push({tag:"div",attributes:{class:[uc("0x29")]},children:[{text:this[uc("0x35")]()}]});const n={tag:uc("0x51"),attributes:{class:[uc("0x47"),t.if(uc("0x23"),"ck-suggestion-wrapper--active"),t.to(uc("0x1f"),(t=>uc("0x1a")+t)),this[uc("0x2b")][uc("0x34")]&&uc("0x33")],"data-suggestion-id":this[uc("0x49")].id,"data-thread-id":this[uc("0x49")].commentThread.id,"data-author-id":this[uc("0x49")].author.id,tabindex:-1},children:[{tag:uc("0x51"),attributes:{class:[uc("0x14"),uc("0x50")]},children:[this[uc("0x3d")],{tag:uc("0x51"),attributes:{class:[uc("0x4c"),uc("0x2e")]},children:e}]}]};return this[uc("0x20")]&&this.commentThreadInputView&&n[uc("0x4b")][uc("0x38")](this[uc("0x20")],this[uc("0x37")]),n}[uc("0x26")](){super.render(),this[uc("0x22")]=this.element[uc("0x0")](uc("0xd")),this[uc("0x22")].innerHTML=this[uc("0x5")],this.on(uc("0x43"),((t,e,n)=>{this._descriptionElement[uc("0x1c")]=n}))}[uc("0x3c")](t,e,n,o,r){const i=new s.ButtonView(this[uc("0x4a")]);return i[uc("0xc")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[uc("0x1b")]({attributes:{class:n}}),i.on("execute",(()=>{this[uc("0x7")](o,this._model.id)})),i}[uc("0x35")](){return uc("0x32")===this[uc("0x49")].attributes["@external"][uc("0x2c")]?Yo(this[uc("0x4a")],"EXTERNAL_IMPORT_WORD_SUGGESTION"):Yo(this[uc("0x4a")],uc("0x2a"))}[uc("0x4")](){return this[uc("0x49")][uc("0x18")]?uc("0x32")===this[uc("0x49")][uc("0x1e")][uc("0x3b")][uc("0x2c")]?Yo(this[uc("0x4a")],"EXTERNAL_IMPORT_WORD_AVATAR",this[uc("0x49")][uc("0x4e")][uc("0x19")]):Yo(this[uc("0x4a")],"EXTERNAL_AVATAR",this._model[uc("0x4e")][uc("0x19")]):null}}function mc(t,e){let n="";return n+=t[uc("0x4f")]("*")[uc("0x2f")](((t,e)=>e%2!=0?uc("0x48")+fc(t)+uc("0x36"):fc(t)))[uc("0xe")](""),e&&(n+=uc("0x3f")+e[uc("0x9")]+'" title="'+e[uc("0xb")]+uc("0x39")),n}function fc(t){const e=document[uc("0x6")](uc("0xa"));return e[uc("0x3e")]=t,e.innerHTML}const hc=["getMarkers","stopListening","getMarkerNames","discardAllSuggestions","_updateController","CommentView","change:previous","getFirstRange","trackChanges.SuggestionThreadView","buttonView","filter","delete","mainView","_initializeController","discardButton","_suggestionToController","keys","discardSelectedSuggestions","plugins","Accept all selected suggestions","length","createCommentThreadController","some","arrowView","button","model","Accept all suggestions","add","_descriptionFactory","comments.maxCommentsWhenCollapsed","isDirty","activeAnnotations","pluginName","innerView","actionView","_refreshActiveMarkers","change:activeAnnotations","acceptAllSuggestions","destroy","map","clear","_createUIButton","init","suggestion-","lowest","_viewToController","isEnabled","previous","view","getByInnerView","unbind","config","isOn","_handleControllerBuffer","separator","source","getJoined","from","_disableComments","SuggestionThreadView","_annotationViews","commandName","acceptButton","Track changes","get","comments","value","toMany","TrackChangesUI","suggestionLoaded","getDescriptions","trackChanges","suggestionChanged","editing","head","commentThread","comments.maxThreadTotalWeight","locale","focus","commands","getAllAdjacentSuggestions","suggestionUnloaded","type","bind","_handleSuggestionControllerDelayed","activeMarkers","componentFactory","listenTo","editor","set","isInContent","descriptionParts","Discard all suggestions","remove","EditorAnnotations","push","_destroyController","Annotations","comments.maxCommentCharsWhenCollapsed","has","size","execute","TrackChangesEditing","createAnnotation"];var bc,pc;bc=hc,pc=230,function(t){for(;--t;)bc.push(bc.shift())}(++pc);const Ec=function(t,e){return hc[t-=0]};class _c extends t.Plugin{static get requires(){return[Wa,r.Users,"CommentsRepository",Ec("0x4b"),Ec("0x48")]}static get[Ec("0xa")](){return Ec("0x2e")}constructor(t){super(t),this[Ec("0x61")]=new Map,this[Ec("0x17")]=new Map,this._annotationViews=new Map,this._handleControllerBuffer=new Map;const e=this[Ec("0x42")][Ec("0x1d")];e.define(Ec("0x5a"),gc),e.define("trackChanges.disableComments",!1),this[Ec("0x24")]=e.get("trackChanges.disableComments")}[Ec("0x3e")](t,e){0===this[Ec("0x1f")][Ec("0x4e")]&&setTimeout((()=>{for(const[t,e]of this[Ec("0x1f")]){const n=this[Ec("0x61")][Ec("0x4d")](t);n||e?n&&e&&this._destroyController(t):this[Ec("0x5f")](t)}this[Ec("0x42")][Ec("0x64")][Ec("0x2a")](Ec("0x48")).refreshSelectedViews(),this[Ec("0xd")](),this._handleControllerBuffer[Ec("0x12")]()}),10),this._handleControllerBuffer[Ec("0x43")](t,e)}[Ec("0x14")](){const t=this.editor,e=t[Ec("0x64")].get("TrackChangesEditing"),n=t[Ec("0x64")][Ec("0x2a")](Ec("0x4b")),o=t[Ec("0x64")][Ec("0x2a")](Ec("0x48")),s=t[Ec("0x64")].get("CommentsRepository");t.ui[Ec("0x40")].add(Ec("0x31"),(t=>this[Ec("0x13")](t))),o.addSourceCollector((()=>{const t=[];for(const[e,n]of Array.from(this[Ec("0x61")])){const o=e.getAllAdjacentSuggestions(),s=[];for(const t of o){if(!t[Ec("0x44")])continue;if(t.isMultiRange){s.push(...t.getRanges());continue}const e=t[Ec("0x59")]();if(s.length>0){const t=s[0][Ec("0x22")](e);if(t){s[0]=t;continue}}s.push(e)}t.push([n[Ec("0x1a")],s])}return t})),this[Ec("0x41")](e,Ec("0x2f"),((t,e)=>{this[Ec("0x41")](e,Ec("0x58"),((t,n,o,s)=>{e[Ec("0x44")]&&(null==o?(this[Ec("0x56")](s[Ec("0x34")]),this[Ec("0x3e")](e,!1)):(this[Ec("0x56")](o[Ec("0x34")]),this[Ec("0x3e")](e,!0)))})),null===e[Ec("0x19")]?this[Ec("0x3e")](e,!1):this[Ec("0x56")](e[Ec("0x34")])})),this[Ec("0x41")](e,Ec("0x3b"),((t,e,n)=>{this[Ec("0x53")](e,"change:previous"),this[Ec("0x1f")][Ec("0x5d")](e);const o=n?n.head:e,s=this._suggestionToController[Ec("0x2a")](o);null!==n&&this[Ec("0x56")](o),null===n&&s&&this[Ec("0x4a")](e)})),this.listenTo(e,Ec("0x32"),((t,e)=>{this[Ec("0x56")](e)})),this[Ec("0x41")](n,Ec("0xe"),(()=>{this[Ec("0xd")]()})),this.listenTo(s,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e.hasSuggestion(n))return;const s=e.getSuggestion(n);this[Ec("0x61")][Ec("0x2a")](s)[Ec("0x1a")][Ec("0x38")]()}),{priority:Ec("0x16")})}[Ec("0xd")](){const t=this[Ec("0x42")].plugins[Ec("0x2a")](Ec("0x4b")),e=this.editor[Ec("0x64")][Ec("0x2a")](Ec("0x50")),n=Array[Ec("0x23")](t[Ec("0x9")],(t=>t[Ec("0xb")]))[Ec("0x5c")]((t=>this._viewToController.has(t))),o=[];for(const t of n){const e=this[Ec("0x17")][Ec("0x2a")](t).model[Ec("0x3a")]();o[Ec("0x49")](...e.reduce(((t,e)=>[...t,...e[Ec("0x54")]()]),[]))}e[Ec("0x3f")]=o}[Ec("0x13")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Ec("0x42")][Ec("0x39")][Ec("0x2a")](Ec("0x31")),r=Yo(t,Ec("0x29"));n.buttonView[Ec("0x43")]({tooltip:r,label:r,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Ec("0x5b")].bind(Ec("0x1e")).to(o,Ec("0x2c")),n[Ec("0x5b")].on(Ec("0x4f"),(()=>{o[Ec("0x4f")](),this[Ec("0x42")][Ec("0x33")][Ec("0x1a")][Ec("0x38")]()}));const i=new e.Collection,x=[{type:"switchbutton",model:{withText:!0,label:r,commandName:Ec("0x31")}},{type:"separator"},{type:"button",model:{withText:!0,label:Yo(t,Ec("0x4")),commandName:Ec("0xf")}},{type:"button",model:{withText:!0,label:Yo(t,Ec("0x65")),commandName:"acceptSelectedSuggestions"}},{type:"button",model:{withText:!0,label:Yo(t,Ec("0x46")),commandName:Ec("0x55")}},{type:Ec("0x2"),model:{withText:!0,label:Yo(t,"Discard all selected suggestions"),commandName:Ec("0x63")}}];for(const t of x){let e={type:Ec("0x20")};if(t.model){const n=new s.Model(t[Ec("0x3")]),o=this[Ec("0x42")][Ec("0x39")].get(n[Ec("0x27")]);n[Ec("0x3d")]("isOn",Ec("0x18")).to(o,Ec("0x2c"),Ec("0x18")),e={type:t[Ec("0x3c")],model:n}}i[Ec("0x5")](e)}(0,s.addListToDropdown)(n,i);const a=x[Ec("0x5c")]((t=>null!=t[Ec("0x3")]))[Ec("0x11")]((t=>this[Ec("0x42")][Ec("0x39")][Ec("0x2a")](t[Ec("0x3")][Ec("0x27")]))),c=n[Ec("0x5b")];return c[Ec("0xc")][Ec("0x1c")](Ec("0x18")),c[Ec("0x1")][Ec("0x1c")](Ec("0x18")),c[Ec("0xc")][Ec("0x3d")](Ec("0x18")).to(o,Ec("0x18")),c[Ec("0x1")][Ec("0x3d")](Ec("0x18"))[Ec("0x2d")](a,Ec("0x18"),((...t)=>t[Ec("0x0")]((t=>t)))),n.on(Ec("0x4f"),(t=>{this[Ec("0x42")][Ec("0x4f")](t[Ec("0x21")].commandName),this[Ec("0x42")][Ec("0x33")][Ec("0x1a")][Ec("0x38")]()})),n}_initializeController(t){const e=this[Ec("0x42")],n=e.config,o=e.plugins.get(Ec("0x4b")),s=e[Ec("0x64")].get("CommentsRepository"),i=e[Ec("0x64")][Ec("0x2a")](Ec("0x48")),x=e.plugins[Ec("0x2a")](r.Users).me,a=n[Ec("0x2a")]("trackChanges")[Ec("0x25")],{CommentsListView:c,CommentThreadInputView:l}=e[Ec("0x64")].get("CommentsUI");let d,u;this[Ec("0x26")].has(t.id)?(u=this._annotationViews[Ec("0x2a")](t.id),d=u[Ec("0x5e")]):(d=new a(e[Ec("0x37")],t,x,{disableComments:this[Ec("0x24")],editorConfig:n.get("comments.editorConfig"),maxCommentsWhenCollapsed:n[Ec("0x2a")](Ec("0x7")),maxThreadTotalWeight:n.get(Ec("0x36")),maxCommentCharsWhenCollapsed:n.get(Ec("0x4c")),formatDateTime:(0,r.getDateTimeFormatter)(n[Ec("0x2a")](Ec("0x37"))),CommentView:n[Ec("0x2a")](Ec("0x2b"))[Ec("0x57")],CommentsListView:c,CommentThreadInputView:l}),d[Ec("0x28")].on(Ec("0x4f"),(()=>{e[Ec("0x33")].view[Ec("0x38")]()})),d[Ec("0x60")].on(Ec("0x4f"),(()=>{e[Ec("0x33")][Ec("0x1a")].focus()})),u=o.createAnnotationView(this[Ec("0x42")].locale,d),u[Ec("0x3d")]("isDirty").to(d,Ec("0x8")),u[Ec("0x3d")](Ec("0x66")).to(d),u[Ec("0x3d")]("type").to(d,Ec("0x3c"),(t=>Ec("0x15")+t)),this._annotationViews[Ec("0x43")](t.id,u));const g=s[Ec("0x67")](t[Ec("0x35")],d),m=new oc(e,t,d,g),f=t[Ec("0x3a")]().filter((t=>t[Ec("0x44")]));d[Ec("0x45")]=e.plugins[Ec("0x2a")]("TrackChangesEditing")._descriptionFactory[Ec("0x30")](f),this[Ec("0x61")][Ec("0x43")](t,m),this[Ec("0x17")][Ec("0x43")](d,m);const h=o[Ec("0x51")]({view:u,target:()=>{const n=[],o=t[Ec("0x3a")]()[Ec("0x5c")]((t=>t.isInContent));for(const t of o)n[Ec("0x49")](...t[Ec("0x52")]());return(0,r.getAllMarkersDomElementsSorted)(e.editing,n)},type:()=>Ec("0x15")+m.view[Ec("0x3c")]});o[Ec("0x5")](h),i.registerAnnotation(h)}[Ec("0x4a")](t){const e=this[Ec("0x42")][Ec("0x64")][Ec("0x2a")](Ec("0x4b")),n=this[Ec("0x61")][Ec("0x2a")](t),o=n[Ec("0x1a")],s=e[Ec("0x1b")](o);s&&e[Ec("0x47")](s),this._suggestionToController[Ec("0x5d")](t),this._viewToController[Ec("0x5d")](o),n[Ec("0x10")]()}[Ec("0x56")](t){if(!t[Ec("0x44")]||!this._suggestionToController[Ec("0x4d")](t))return;const e=this.editor[Ec("0x64")][Ec("0x2a")](Ec("0x50")),n=this[Ec("0x61")][Ec("0x2a")](t),o=t[Ec("0x3a")]();n[Ec("0x1a")][Ec("0x45")]=e[Ec("0x6")].getDescriptions(o)}[Ec("0x10")](){for(const t of this._suggestionToController[Ec("0x62")]())this[Ec("0x4a")](t);for(const t of this[Ec("0x26")].values())t[Ec("0x5e")][Ec("0x10")]();super[Ec("0x10")]()}}var Tc,Cc,yc=["pluginName","getSuggestion","get","editor","plugins","Comments","requires","addSuggestion","adapter","getSuggestions"];Tc=yc,Cc=392,function(t){for(;--t;)Tc.push(Tc.shift())}(++Cc);var kc=function(t,e){return yc[t-=0]};class Ac extends t.Plugin{static get[kc("0x4")](){return[Wa,_c,kc("0x3")]}static get[kc("0x8")](){return"TrackChanges"}set[kc("0x6")](t){this[kc("0x1")][kc("0x2")][kc("0x0")](Wa)[kc("0x6")]=t}get[kc("0x6")](){return this.editor.plugins[kc("0x0")](Wa)[kc("0x6")]}[kc("0x5")](t){return this.editor[kc("0x2")][kc("0x0")](Wa).addSuggestionData(t)}[kc("0x7")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[kc("0x1")].plugins[kc("0x0")](Wa).getSuggestions({skipNotAttached:t,toJSON:e})}[kc("0x9")](t){return this.editor[kc("0x2")].get(Wa).getSuggestion(t)}}const vc=["_context","TrackChangesDataGetter","extraPlugins","function","string","CommentsRepository","getRootNames","trackChangesData.editorCreator","includes","destroy","end","TrackChangesData","Users","getUser","tokenUrl","every","has","reduce","context","appendChild","editor","push","toolbar","document","addUser","getDataWithAcceptedSuggestions","init","createDocumentFragment","concat","define","requires","WebSocketGateway","name","set","config","cloudServices","editorCreator","users","get","getSuggestions","div","data","model","constructor","map","execute","track-changes-data-invalid-editor-creator","result","_adapter","createElement","filter","Autosave","find","from","names","useAnonymousUser","TrackChangesEditing","plugins","addSuggestionData","trackChangesData"];var Rc,Sc;Rc=vc,Sc=489,function(t){for(;--t;)Rc.push(Rc.shift())}(++Sc);const Ic=function(t,e){return vc[t-=0]},Lc=["initialData",Ic("0x9"),Ic("0xd")],Nc=[Ic("0x16"),"RevisionTracker",Ic("0x2a"),"WordCount","Pagination","DocumentOutline"];class Mc extends t.Plugin{static get[Ic("0x15")](){return[Wa]}static get pluginName(){return Ic("0x2")}[Ic("0x11")](){const t=this[Ic("0xb")];if(t.config[Ic("0x14")](Ic("0x3a"),(e=>t.constructor.create("",e))),Ic("0x36")!=typeof t[Ic("0x19")][Ic("0x1d")]("trackChangesData")[Ic("0x1b")])throw new e.CKEditorError(Ic("0x25"))}[Ic("0x10")](t){return Oc(this[Ic("0xb")],!0,t)}getDataWithDiscardedSuggestions(t){return Oc(this[Ic("0xb")],!1,t)}}class wc extends t.Plugin{static get pluginName(){return Ic("0x34")}constructor(t){super(t),this[Ic("0x26")]=Ic("0x1")}[Ic("0x11")](){this.editor[Ic("0x30")].get(Ic("0x38"))[Ic("0x27")]={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this[Ic("0xb")].plugins[Ic("0x1d")](Ic("0x2f"))[Ic("0x27")]=null}}async function Oc(t,e,n){const o=function(t){const e={};for(const n of t.config[Ic("0x2d")]())Lc[Ic("0x3b")](n)||(e[n]=t[Ic("0x19")][Ic("0x1d")](n));e.cloudServices&&e[Ic("0x1a")][Ic("0x5")]&&delete e[Ic("0x1a")][Ic("0x5")];const n=t[Ic("0x22")].builtinPlugins||[],o=e[Ic("0x35")]||[];delete e[Ic("0x35")];const s=t[Ic("0x33")][Ic("0x19")].get(Ic("0x30"))||[],r=n[Ic("0x13")](e[Ic("0x30")])[Ic("0x13")](o)[Ic("0x13")](s)[Ic("0x23")]((t=>Ic("0x37")==typeof t?n[Ic("0x2b")]((e=>e.pluginName==t)):t)),i=Array[Ic("0x2c")](new Set(r)),x=new Map;return e[Ic("0x30")]=i[Ic("0x29")]((t=>Fc(t,x))),e[Ic("0x30")].push(Wa),e[Ic("0x30")][Ic("0xc")](wc),e}(t),s=document[Ic("0x12")](),r=t.config[Ic("0x1d")](Ic("0x32"))[Ic("0x1b")],i=await r(o,(()=>function(t){const e=document[Ic("0x28")](Ic("0x1f"));return t[Ic("0xa")](e),e}(s)));!function(t,e){const n=t[Ic("0x21")][Ic("0xe")][Ic("0x39")]()[Ic("0x8")](((e,n)=>(e[n]=t[Ic("0x20")][Ic("0x1d")]({rootName:n}),e)),{}),o=t[Ic("0x30")][Ic("0x1d")](Ic("0x3"))[Ic("0x1c")][Ic("0x23")]((t=>({id:t.id,name:t[Ic("0x17")]}))),s=t[Ic("0x30")][Ic("0x1d")](Ic("0x2f"))[Ic("0x1e")]({skipNotAttached:!0,toJSON:!0}),r=e[Ic("0x30")][Ic("0x1d")](Ic("0x3")),i=e[Ic("0x30")][Ic("0x1d")](Ic("0x2f"));for(const t of o)r[Ic("0x4")](t.id)||r[Ic("0xf")](t);r.me||r[Ic("0x2e")]();for(const t of s)i[Ic("0x31")](t);e[Ic("0x20")].set(n)}(t,i),i[Ic("0x24")](e?"acceptAllSuggestions":"discardAllSuggestions");const x=i[Ic("0x20")][Ic("0x1d")](n);return await i[Ic("0x0")](),x}function Fc(t,e){const n=Ic("0x36")==typeof t?t.pluginName||t.name:t;if(e[Ic("0x7")](n))return e[Ic("0x1d")](n);if(e[Ic("0x18")](n,!0),n&&Nc[Ic("0x3b")](n))return e[Ic("0x18")](n,!1),!1;if(!t[Ic("0x15")])return e[Ic("0x18")](n,!0),!0;const o=t.requires[Ic("0x6")]((t=>Fc(t,e)));return e[Ic("0x18")](n,o),o}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|