@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240203.0 → 0.0.0-nightly-20240204.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
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
/*!
|
|
3
3
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
4
4
|
* For licensing, see LICENSE.md.
|
|
5
|
-
*/(()=>{var t={588:(t,e,n)=>{t.exports=n(104)("./src/collaboration-core.js")},968:(t,e,n)=>{t.exports=n(672)("./src/core.js")},684:(t,e,n)=>{t.exports=n(672)("./src/engine.js")},976:(t,e,n)=>{t.exports=n(672)("./src/enter.js")},500:(t,e,n)=>{t.exports=n(672)("./src/typing.js")},348:(t,e,n)=>{t.exports=n(672)("./src/ui.js")},316:(t,e,n)=>{t.exports=n(672)("./src/utils.js")},396:(t,e,n)=>{t.exports=n(672)("./src/widget.js")},104:t=>{"use strict";t.exports=CKEditor5.collaborationDll},672:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},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 r={};(()=>{"use strict";n.r(r),n.d(r,{BaseSuggestionThreadView:()=>Kc,TrackChanges:()=>cl,TrackChangesData:()=>hl,TrackChangesEditing:()=>Ac});var t=n(968),e=n(316),i=n(348),o=n(588),s=n(684),x=n(396);const a=["refresh","execute","_isEnabledBasedOnSelection","has","editor","commands","value","affectsData","forceDisabled","clearForceDisabled","isEnabled","_disableUnsupportedCommands","_enabledCommands","_enableCommands"];var c,l;c=a,l=428,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("0x4")]=e,this[u("0xc")]=!1,this[u("0x6")](),this[u("0x8")]=!1}[u("0x6")](){this[u("0x2")]=!0}[u("0x7")](){this[u("0xc")]=!this[u("0xc")],this.value?this._disableUnsupportedCommands():this._enableCommands()}[u("0x3")](){for(const t of this.editor.commands.commands())t[u("0xd")]&&!this[u("0x4")][u("0x9")](t)&&t[u("0x0")]("TrackChangesCommand")}[u("0x5")](){for(const t of this[u("0xa")][u("0xb")].commands())t.affectsData&&!this[u("0x4")][u("0x9")](t)&&t[u("0x1")]("TrackChangesCommand")}}const g=["_suggestions","getRanges","execute","canEditAt","refresh","acceptSuggestion","get","_isEnabledBasedOnSelection","isEnabled","editor","plugins","TrackChangesEditing"];var f,h;f=g,h=195,function(t){for(;--t;)f.push(f.shift())}(++h);const m=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[m("0x9")]=e,this[m("0x1")](),this[m("0x4")]=!1}[m("0x1")](){this[m("0x5")]=!0}[m("0xb")](t){const n=this[m("0x9")][m("0x3")](t);if(!n)throw new e.CKEditorError("track-changes-accept-suggestion-not-found",this);const r=n[m("0xa")]();this[m("0x6")].model[m("0x0")](r)&&this[m("0x6")][m("0x7")][m("0x3")](m("0x8"))[m("0x2")](n)}}const b=["track-changes-discard-suggestion-not-found","TrackChangesEditing","editor","get","_isEnabledBasedOnSelection","_suggestions","canEditAt","getRanges","discardSuggestion","model","refresh"];var E,_;E=b,_=225,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("0x0")]=e,this[T("0x5")](),this[T("0xa")]=!1}[T("0x5")](){this.isEnabled=!0}execute(t){const n=this[T("0x0")][T("0x9")](t);if(!n)throw new e.CKEditorError(T("0x6"),this);const r=n[T("0x2")]();this[T("0x8")][T("0x4")][T("0x1")](r)&&this.editor.plugins[T("0x9")](T("0x7"))[T("0x3")](n)}}const C=["isCollapsed","length","isObject","isIntersecting","sort"," [color ","add","isArray","start","isTouching","value","map","getRanges","deletion","color","push","isMultiRange","createPositionAt","createPositionBefore","end","splice","type","isInContent","schema","join","from"];var A,k;A=C,k=456,function(t){for(;--t;)A.push(A.shift())}(++k);const I=function(t,e){return C[t-=0]};function R(t){return t[I("0x10")](((t,e)=>I("0x19")==t.type&&I("0x19")!=e[I("0x7")]?-1:I("0x19")!=t[I("0x7")]&&I("0x19")==e[I("0x7")]?1:0))}function S(t,e){let n,r=0;const i=[],o=e[I("0x9")];for(;r<t[I("0xd")];){const s=t[r],x=t[r+1];n||(n=e[I("0x4")](s)),v(e,s,x)||(i[I("0x1")](e.createRange(n,o[I("0xe")](s)?e.createPositionAfter(s):e[I("0x3")](s,I("0x5")))),n=null),r++}return i}function v(t,e,n){if(!n)return!1;const r=t.createPositionAfter(e),i=t[I("0x4")](n);return r[I("0x15")](i)}function N(t,e,n){for(;n.length;){const r=n[I("0x6")](0,100);t.change((()=>{for(const t of r)t.isInContent&&e.execute(t.id)}))}}const L=["from","model","_suggestions","values","refresh","_command","getRanges","some","editor","execute","_isEnabledBasedOnSelection"];var M,w;M=L,w=272,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return L[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x8")]=e,this._suggestions=n,this[O("0x7")](),this[O("0x2")]=!1}[O("0x7")](){const t=Array[O("0x3")](this[O("0x5")][O("0x6")]())[O("0xa")]((t=>t.isInContent));this.isEnabled=this[O("0x8")].isEnabled&&t}[O("0x1")](){const t=R(Array[O("0x3")](this[O("0x5")][O("0x6")]()));for(const e of t){const t=e[O("0x9")]();if(!this[O("0x0")][O("0x4")].canEditAt(t))return}N(this[O("0x0")][O("0x4")],this[O("0x8")],t)}}const D=["_selectedSuggestions","document","_suggestions","_command","values","size","selection","model","from","getRanges","isEnabled","canEditAt","execute","editor","refresh","_isEnabledBasedOnSelection"];var P,B;P=D,B=334,function(t){for(;--t;)P.push(P.shift())}(++B);const U=function(t,e){return D[t-=0]};class j extends t.Command{constructor(t,e,n){super(t),this[U("0x5")]=e,this._suggestions=n,this[U("0x2")]=new Set,this[U("0x0")](),this[U("0x1")]=!1}[U("0x0")](){const t=this.editor[U("0x9")][U("0x3")][U("0x8")],e=Array[U("0xa")](this[U("0x4")][U("0x6")]());this[U("0x2")]=function(t,e){const n=Array[I("0xb")](t[I("0x18")]()),r=new Set;for(const i of e)if(i[I("0x8")])for(const e of n)for(const n of i[I("0x18")]())(e[I("0xf")](n)||t[I("0xc")]&&!i[I("0x2")]&&i.next&&n[I("0x5")].isTouching(e[I("0x14")]))&&r[I("0x12")](i);return r}(t,e),this[U("0xc")]=this[U("0x5")][U("0xc")]&&!!this._selectedSuggestions[U("0x7")]}[U("0xe")](){const t=R(Array[U("0xa")](this[U("0x2")]));for(const e of t){const t=e[U("0xb")]();if(!this[U("0xf")][U("0x9")][U("0xd")](t))return}N(this.editor[U("0x9")],this[U("0x5")],t)}}const G=function(){this.__data__=[],this.size=0};const V=function(t,e){return t===e||t!=t&&e!=e};const H=function(t,e){for(var n=t.length;n--;)if(V(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const W=function(t){var e=this.__data__,n=H(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=H(e,t);return n<0?void 0:e[n][1]};const q=function(t){return H(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,r=H(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}$.prototype.clear=G,$.prototype.delete=W,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const Z=$;const Y=function(){this.__data__=new Z,this.size=0};const J=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Q=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 rt=et||nt||Function("return this")();const it=rt.Symbol;var ot=Object.prototype,st=ot.hasOwnProperty,xt=ot.toString,at=it?it.toStringTag:void 0;const ct=function(t){var e=st.call(t,at),n=t[at];try{t[at]=void 0;var r=!0}catch(t){}var i=xt.call(t);return r&&(e?t[at]=n:delete t[at]),i};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=it?it.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 ft=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ht=function(t){if(!ft(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const mt=rt["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(mt&&mt.keys&&mt.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,At=Object.prototype,kt=Ct.toString,It=At.hasOwnProperty,Rt=RegExp("^"+kt.call(It).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!ft(t)||Et(t))&&(ht(t)?Rt:yt).test(Tt(t))};const vt=function(t,e){return null==t?void 0:t[e]};const Nt=function(t,e){var n=vt(t,e);return St(n)?n:void 0};const Lt=Nt(rt,"Map");const Mt=Nt(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 Dt=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 Pt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Pt.call(e,t)};const Ut=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 jt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}jt.prototype.clear=wt,jt.prototype.delete=Ot,jt.prototype.get=Dt,jt.prototype.has=Bt,jt.prototype.set=Ut;const Gt=jt;const Vt=function(){this.size=0,this.__data__={hash:new Gt,map:new(Lt||Z),string:new Gt}};const Ht=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 Ht(e)?n["string"==typeof e?"string":"hash"]:n.map};const Wt=function(t){var e=zt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return zt(this,t).get(t)};const qt=function(t){return zt(this,t).has(t)};const Xt=function(t,e){var n=zt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}$t.prototype.clear=Vt,$t.prototype.delete=Wt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Zt=$t;const Yt=function(t,e){var n=this.__data__;if(n instanceof Z){var r=n.__data__;if(!Lt||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Zt(r)}return n.set(t,e),this.size=n.size,this};function Jt(t){var e=this.__data__=new Z(t);this.size=e.size}Jt.prototype.clear=Y,Jt.prototype.delete=J,Jt.prototype.get=Q,Jt.prototype.has=tt,Jt.prototype.set=Yt;const Qt=Jt;const te=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Nt(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 re=Object.prototype.hasOwnProperty;const ie=function(t,e,n){var r=t[e];re.call(t,e)&&V(r,n)&&(void 0!==n||e in t)||ne(t,e,n)};const oe=function(t,e,n,r){var i=!n;n||(n={});for(var o=-1,s=e.length;++o<s;){var x=e[o],a=r?r(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),i?ne(n,x,a):ie(n,x,a)}return n};const se=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r};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 fe=function(){return!1};var he="object"==typeof exports&&exports&&!exports.nodeType&&exports,me=he&&"object"==typeof module&&module&&!module.nodeType&&module,pe=me&&me.exports===he?rt.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||fe;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 Ae=function(t){return function(e){return t(e)}};var ke="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ie=ke&&"object"==typeof module&&module&&!module.nodeType&&module,Re=Ie&&Ie.exports===ke&&et.process;const Se=function(){try{var t=Ie&&Ie.require&&Ie.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var ve=Se&&Se.isTypedArray;const Ne=ve?Ae(ve):Ce;var Le=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),r=!n&&de(t),i=!n&&!r&&be(t),o=!n&&!r&&!i&&Ne(t),s=n||r||i||o,x=s?se(t.length,String):[],a=x.length;for(var c in t)!e&&!Le.call(t,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("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 De=Fe(Object.keys,Object);var Pe=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return De(t);var e=[];for(var n in Object(t))Pe.call(t,n)&&"constructor"!=n&&e.push(n);return e};const Ue=function(t){return null!=t&&Te(t.length)&&!ht(t)};const je=function(t){return Ue(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&oe(e,je(e),t)};const Ve=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var He=Object.prototype.hasOwnProperty;const ze=function(t){if(!ft(t))return Ve(t);var e=Oe(t),n=[];for(var r in t)("constructor"!=r||!e&&He.call(t,r))&&n.push(r);return n};const We=function(t){return Ue(t)?Me(t,!0):ze(t)};const Ke=function(t,e){return t&&oe(e,We(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?rt.Buffer:void 0,Ze=$e?$e.allocUnsafe:void 0;const Ye=function(t,e){if(e)return t.slice();var n=t.length,r=Ze?Ze(n):new t.constructor(n);return t.copy(r),r};const Je=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e};const Qe=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const rn=nn?function(t){return null==t?[]:(t=Object(t),Qe(nn(t),(function(e){return en.call(t,e)})))}:tn;const on=function(t,e){return oe(t,rn(t),e)};const sn=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)sn(e,rn(t)),t=xn(t);return e}:tn;const cn=function(t,e){return oe(t,an(t),e)};const ln=function(t,e,n){var r=e(t);return ge(t)?r:sn(r,n(t))};const un=function(t){return ln(t,je,rn)};const dn=function(t){return ln(t,We,an)};const gn=Nt(rt,"DataView");const fn=Nt(rt,"Promise");const hn=Nt(rt,"Set");const mn=Nt(rt,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",yn=Tt(gn),Cn=Tt(Lt),An=Tt(fn),kn=Tt(hn),In=Tt(mn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Lt&&Rn(new Lt)!=pn||fn&&Rn(fn.resolve())!=bn||hn&&Rn(new hn)!=En||mn&&Rn(new mn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,r=n?Tt(n):"";if(r)switch(r){case yn:return Tn;case Cn:return pn;case An:return bn;case kn:return En;case In:return _n}return e});const Sn=Rn;var vn=Object.prototype.hasOwnProperty;const Nn=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&vn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Ln=rt.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Ln(e).set(new Ln(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 Dn=it?it.prototype:void 0,Pn=Dn?Dn.valueOf:void 0;const Bn=function(t){return Pn?Object(Pn.call(t)):{}};const Un=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const jn=function(t,e,n){var r=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new r(+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 Un(t,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Vn=function(){function t(){}return function(e){if(!ft(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Hn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Vn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Wn=Se&&Se.isMap;const Kn=Wn?Ae(Wn):zn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?Ae(Xn):qn;var Zn="[object Arguments]",Yn="[object Function]",Jn="[object Object]",Qn={};Qn[Zn]=Qn["[object Array]"]=Qn["[object ArrayBuffer]"]=Qn["[object DataView]"]=Qn["[object Boolean]"]=Qn["[object Date]"]=Qn["[object Float32Array]"]=Qn["[object Float64Array]"]=Qn["[object Int8Array]"]=Qn["[object Int16Array]"]=Qn["[object Int32Array]"]=Qn["[object Map]"]=Qn["[object Number]"]=Qn[Jn]=Qn["[object RegExp]"]=Qn["[object Set]"]=Qn["[object String]"]=Qn["[object Symbol]"]=Qn["[object Uint8Array]"]=Qn["[object Uint8ClampedArray]"]=Qn["[object Uint16Array]"]=Qn["[object Uint32Array]"]=!0,Qn["[object Error]"]=Qn[Yn]=Qn["[object WeakMap]"]=!1;const tr=function t(e,n,r,i,o,s){var x,a=1&n,c=2&n,l=4&n;if(r&&(x=o?r(e,i,o,s):r(e)),void 0!==x)return x;if(!ft(e))return e;var u=ge(e);if(u){if(x=Nn(e),!a)return Je(e,x)}else{var d=Sn(e),g=d==Yn||"[object GeneratorFunction]"==d;if(be(e))return Ye(e,a);if(d==Jn||d==Zn||g&&!o){if(x=c||g?{}:Hn(e),!a)return c?cn(e,Ke(x,e)):on(e,Ge(x,e))}else{if(!Qn[d])return o?e:{};x=jn(e,d,a)}}s||(s=new Qt);var f=s.get(e);if(f)return f;s.set(e,x),$n(e)?e.forEach((function(i){x.add(t(i,n,r,i,e,s))})):Kn(e)&&e.forEach((function(i,o){x.set(o,t(i,n,r,o,e,s))}));var h=u?void 0:(l?c?dn:un:c?We:je)(e);return te(h||e,(function(i,o){h&&(i=e[o=i]),ie(x,o,t(i,n,r,o,e,s))})),x};const er=function(t){return tr(t,5)};const nr=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var rr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ir=/^\w*$/;const or=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!nr(t))||(ir.test(t)||!rr.test(t)||null!=e&&t in Object(e))};function sr(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(sr.Cache||Zt),n}sr.Cache=Zt;const xr=sr;var ar=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cr=/\\(\\)?/g;const lr=function(t){var e=xr(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(ar,(function(t,n,r,i){e.push(r?i.replace(cr,"$1"):n||t)})),e}));const ur=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i};var dr=it?it.prototype:void 0,gr=dr?dr.toString:void 0;const fr=function t(e){if("string"==typeof e)return e;if(ge(e))return ur(e,t)+"";if(nr(e))return gr?gr.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const hr=function(t){return null==t?"":fr(t)};const mr=function(t,e){return ge(t)?t:or(t,e)?[t]:lr(hr(t))};const pr=function(t){if("string"==typeof t||nr(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const br=function(t,e,n,r){if(!ft(t))return t;for(var i=-1,o=(e=mr(e,t)).length,s=o-1,x=t;null!=x&&++i<o;){var a=pr(e[i]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(i!=s){var l=x[a];void 0===(c=r?r(l,a,x):void 0)&&(c=ft(l)?l:_e(e[i+1])?[]:{})}ie(x,a,c),x=x[a]}return t};const Er=function(t,e,n){return null==t?t:br(t,e,n)};const _r=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Tr=function(t){return this.__data__.has(t)};function yr(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Zt;++e<n;)this.add(t[e])}yr.prototype.add=yr.prototype.push=_r,yr.prototype.has=Tr;const Cr=yr;const Ar=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1};const kr=function(t,e){return t.has(e)};const Ir=function(t,e,n,r,i,o){var s=1&n,x=t.length,a=e.length;if(x!=a&&!(s&&a>x))return!1;var c=o.get(t),l=o.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new Cr:void 0;for(o.set(t,e),o.set(e,t);++u<x;){var f=t[u],h=e[u];if(r)var m=s?r(h,f,u,e,t,o):r(f,h,u,t,e,o);if(void 0!==m){if(m)continue;d=!1;break}if(g){if(!Ar(e,(function(t,e){if(!kr(g,e)&&(f===t||i(f,t,n,r,o)))return g.push(e)}))){d=!1;break}}else if(f!==h&&!i(f,h,n,r,o)){d=!1;break}}return o.delete(t),o.delete(e),d};const Rr=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n};const Sr=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var vr=it?it.prototype:void 0,Nr=vr?vr.valueOf:void 0;const Lr=function(t,e,n,r,i,o,s){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||!o(new Ln(t),new Ln(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return V(+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=Rr;case"[object Set]":var a=1&r;if(x||(x=Sr),t.size!=e.size&&!a)return!1;var c=s.get(t);if(c)return c==e;r|=2,s.set(t,e);var l=Ir(x(t),x(e),r,i,o,s);return s.delete(t),l;case"[object Symbol]":if(Nr)return Nr.call(t)==Nr.call(e)}return!1};var Mr=Object.prototype.hasOwnProperty;const wr=function(t,e,n,r,i,o){var s=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!s)return!1;for(var c=a;c--;){var l=x[c];if(!(s?l in e:Mr.call(e,l)))return!1}var u=o.get(t),d=o.get(e);if(u&&d)return u==e&&d==t;var g=!0;o.set(t,e),o.set(e,t);for(var f=s;++c<a;){var h=t[l=x[c]],m=e[l];if(r)var p=s?r(m,h,l,e,t,o):r(h,m,l,t,e,o);if(!(void 0===p?h===m||i(h,m,n,r,o):p)){g=!1;break}f||(f="constructor"==l)}if(g&&!f){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return o.delete(t),o.delete(e),g};var Or="[object Arguments]",Fr="[object Array]",Dr="[object Object]",Pr=Object.prototype.hasOwnProperty;const Br=function(t,e,n,r,i,o){var s=ge(t),x=ge(e),a=s?Fr:Sn(t),c=x?Fr:Sn(e),l=(a=a==Or?Dr:a)==Dr,u=(c=c==Or?Dr:c)==Dr,d=a==c;if(d&&be(t)){if(!be(e))return!1;s=!0,l=!1}if(d&&!l)return o||(o=new Qt),s||Ne(t)?Ir(t,e,n,r,i,o):Lr(t,e,a,n,r,i,o);if(!(1&n)){var g=l&&Pr.call(t,"__wrapped__"),f=u&&Pr.call(e,"__wrapped__");if(g||f){var h=g?t.value():t,m=f?e.value():e;return o||(o=new Qt),i(h,m,n,r,o)}}return!!d&&(o||(o=new Qt),wr(t,e,n,r,i,o))};const Ur=function t(e,n,r,i,o){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:Br(e,n,r,i,t,o))};const jr=function(t,e){return Ur(t,e)};const Gr=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Vr=function(t,e){for(var n=0,r=(e=mr(e,t)).length;null!=t&&n<r;)t=t[pr(e[n++])];return n&&n==r?t:void 0};const Hr=function(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o};const zr=function(t,e){return e.length<2?t:Vr(t,Hr(e,0,-1))};const Wr=function(t,e){return e=mr(e,t),null==(t=zr(t,e))||delete t[pr(Gr(e))]};const Kr=function(t,e){return null==t||Wr(t,e)},qr=["substr","creator","set","getMarkers","isIntersectingWithRange","nodeAfter","_onAccept","_model","commentThread","discard","getAllAdjacentSuggestions","length","next","onAccept","hasComments","clear","reduce","getMultiRangeId","data","@external","from","delete","_isDataLoaded","push","_markerNames","onAttributesChange","attributes","accept","getRange","isIntersecting","getFirstMarker","getMarkerNames","removeMarkers","subType","authoredAt","author","suggestion:","type","nodeBefore","getRanges","createdAt","split","previous","_onDiscard","decorate","isInContent","start","addRange","isExternal","getItems","end","markers","toJSON","setAttribute","addMarkerName","getFirstRange","filter","addMarker","change","_onAttributesChange","getContainedElement"];var Xr,$r;Xr=qr,$r=342,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Zr=function(t,e){return qr[t-=0]};class Yr extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Zr("0x2e")]=!1,this.id=e.id,this[Zr("0x0")]=e[Zr("0x0")],this.subType=e[Zr("0x39")]||null,this.author=e[Zr("0x3b")],this[Zr("0x19")]=e.creator||e[Zr("0x3b")],this[Zr("0xb")]=Boolean(e[Zr("0x32")]&&e[Zr("0x32")][Zr("0x2b")]),this[Zr("0x2a")]=null,this[Zr("0x1f")]=t,this[Zr("0x1e")]=e[Zr("0x25")],this._onDiscard=e.onDiscard,this[Zr("0x16")]=e[Zr("0x31")],this[Zr("0x30")]=new Set,this[Zr("0x3")]=null,this[Zr("0x1a")](Zr("0x3a"),null),this[Zr("0x1a")](Zr("0x32"),e[Zr("0x32")]||{}),this[Zr("0x1a")](Zr("0x5"),null),this[Zr("0x1a")](Zr("0x24"),null),this[Zr("0x1a")](Zr("0x20"),null),this[Zr("0x1a")]("_saved",!1),this[Zr("0x7")](Zr("0x33")),this.decorate(Zr("0x21"))}get head(){let t=this;for(;t[Zr("0x5")];)t=t[Zr("0x5")];return t}get[Zr("0x26")](){return!!this[Zr("0x20")]&&this[Zr("0x20")].length>0}get isMultiRange(){return 0!=this[Zr("0x30")].size&&6==Array[Zr("0x2c")](this[Zr("0x30")])[0][Zr("0x4")](":")[Zr("0x23")]}get[Zr("0x8")](){return null!==this[Zr("0x36")]()}[Zr("0x11")](t){this[Zr("0x30")].add(t)}[Zr("0x37")](){return Array[Zr("0x2c")](this[Zr("0x30")])}[Zr("0x1b")](){return this[Zr("0x37")]().map((t=>this[Zr("0x1f")][Zr("0xe")].get(t)))[Zr("0x13")]((t=>t))}[Zr("0x36")](){return this[Zr("0x1b")]()[0]||null}[Zr("0x38")](){this[Zr("0x1f")][Zr("0x15")]((t=>{for(const e of this[Zr("0x1b")]())t.removeMarker(e)})),this[Zr("0x30")][Zr("0x27")]()}removeMarker(t){this[Zr("0x1f")].change((e=>{e.removeMarker(t)})),this[Zr("0x30")][Zr("0x2d")](t)}[Zr("0xa")](t){const e=Zr("0x3c")+this[Zr("0x0")]+":"+this[Zr("0x39")]+":"+this.id+":"+this.creator.id+":"+Yr[Zr("0x29")]();this[Zr("0x11")](e),this[Zr("0x1f")][Zr("0x15")]((n=>{n[Zr("0x14")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Zr("0x1c")](t){for(const e of this[Zr("0x2")]())if(e[Zr("0x35")](t))return!0;return!1}[Zr("0x2")](){return this[Zr("0x1b")]().map((t=>t.getRange()))}[Zr("0xc")](){return this[Zr("0x2")]()[Zr("0x28")](((t,e)=>[...t,...e[Zr("0xc")]()]),[])}[Zr("0x12")](){var t;return(null===(t=this[Zr("0x36")]())||void 0===t?void 0:t[Zr("0x34")]())||null}[Zr("0x17")](){const t=this[Zr("0x2")]();if(1!=t.length)return null;const e=t[0],n=e[Zr("0x9")][Zr("0x1d")],r=e[Zr("0xd")][Zr("0x1")];return n instanceof s.Element?n!=r?null:n:null}[Zr("0x33")](){this._onAccept(this[Zr("0x2")](),this[Zr("0x2a")],this.attributes),this[Zr("0x38")]()}[Zr("0x21")](){this[Zr("0x6")](this.getRanges(),this[Zr("0x2a")],this[Zr("0x32")]),this.removeMarkers()}[Zr("0x22")](){const t=[];let e=this.head;for(;e;)t[Zr("0x2f")](e),e=e[Zr("0x24")];return t}[Zr("0x10")](t,e){const n=er(this[Zr("0x32")]);Er(n,t,e),jr(n,this[Zr("0x32")])||(this.attributes=n,this[Zr("0x16")](n))}removeAttribute(t){const e=er(this[Zr("0x32")]);Kr(e,t),jr(e,this.attributes)||(this[Zr("0x32")]=e,this._onAttributesChange(this[Zr("0x32")]))}[Zr("0xf")](){return{id:this.id,type:this[Zr("0x39")]?this[Zr("0x0")]+":"+this[Zr("0x39")]:this[Zr("0x0")],authorId:this[Zr("0x19")].id,createdAt:this[Zr("0x3")],hasComments:this[Zr("0x26")],data:this[Zr("0x2a")],attributes:this.attributes}}static getMultiRangeId(){return(0,e.uid)()[Zr("0x18")](1,5)}}function Jr(t,e,n){const r=t.t;switch(e){case"Track changes":return r("Track changes");case"Accept suggestion":return r("Accept suggestion");case"Discard suggestion":return r("Discard suggestion");case"Accept all suggestions":return r("Accept all suggestions");case"Accept all selected suggestions":return r("Accept all selected suggestions");case"Discard all suggestions":return r("Discard all suggestions");case"Discard all selected suggestions":return r("Discard all selected suggestions");case"*Reset font size*":return r("*Reset font size*");case"*Reset font family*":return r("*Reset font family*");case"*Reset font color*":return r("*Reset font color*");case"*Reset font background color*":return r("*Reset font background color*");case"*Remove image text alternative*":return r("*Remove image text alternative*");case"*Reset image width*":return r("*Reset image width*");case"*Remove link*":return r("*Remove link*");case"*Check item*":return r("*Check item*");case"*Uncheck item*":return r("*Uncheck item*");case"*Remove all formatting*":return r("*Remove all formatting*");case"*Replace table cells*":return r("*Replace table cells*");case"*Merge cells*":return r("*Merge cells*");case"*Split cell:* vertically":return r("*Split cell:* vertically");case"*Split cell:* horizontally":return r("*Split cell:* horizontally");case"*Indent:* %0":return r("*Indent:* %0",n);case"*Outdent:* %0":return r("*Outdent:* %0",n);case"*Change to:* %0":return r("*Change to:* %0",n);case"*Insert:* %0":return r("*Insert:* %0",n);case"*Format:* %0":return r("*Format:* %0",n);case"*Format:* change table properties":return r("*Format:* change table properties");case"*Format:* change table cell properties":return r("*Format:* change table cell properties");case"*Format:* insert into %0":return r("*Format:* insert into %0",n);case"*Format:* remove from %0":return r("*Format:* remove from %0",n);case"*Replace image URL*":return r("*Replace image URL*");case"*Format:* resize table":return r("*Format:* resize table");case"*Format:* set order to reversed":return r("*Format:* set order to reversed");case"*Format:* set order to regular":return r("*Format:* set order to regular");case"*Format:* set start index to %0":return r("*Format:* set start index to %0",n);case"*Change %0 content*":return r("*Change %0 content*",n);case"*Remove:* %0":return r("*Remove:* %0",n);case"*Merge:* %0":return r("*Merge:* %0",n);case"*Split:* %0":return r("*Split:* %0",n);case"*Remove format:* %0":return r("*Remove format:* %0",n);case"*Set font size:* %0":return r("*Set font size:* %0",n);case"*Set font family:* %0":return r("*Set font family:* %0",n);case"*Set format to:* %0":return r("*Set format to:* %0",n);case"*Set font color:* %0":return r("*Set font color:* %0",n);case"*Set font background color:* %0":return r("*Set font background color:* %0",n);case"*Set format:* %0":return r("*Set format:* %0",n);case"*Set image text alternative:* %0":return r("*Set image text alternative:* %0",n);case"*Set image width:* %0":return r("*Set image width:* %0",n);case"*Set link:* %0":return r("*Set link:* %0",n);case"*Set highlight:* %0":return r("*Set highlight:* %0",n);case"*Remove highlight*":return r("*Remove highlight*");case"FORMAT_HIGHLIGHT":return r({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return r({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return r({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return r({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return r({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return r({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return r({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return r({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return r({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return r({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return r({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return r({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return r({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return r({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return r({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return r({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return r({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_DEFAULT":return r({string:"bulleted list (default)",id:"ELEMENT_BULLETED_LIST_DEFAULT"});case"ELEMENT_BULLETED_LIST_CIRCLE":return r({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return r({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return r({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST_DEFAULT":return r({string:"numbered list (default)",id:"ELEMENT_NUMBERED_LIST_DEFAULT"});case"ELEMENT_NUMBERED_LIST":return r({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return r({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return r({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return r({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return r({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return r({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return r({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return r({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return r({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return r({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGNMENT":return r({string:"alignment",id:"FORMAT_ALIGNMENT"});case"FORMAT_ALIGN_TO_LEFT":return r({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return r({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return r({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return r({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return r({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return r({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return r({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return r({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return r({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return r({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return r({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return r({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return r({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return r({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return r({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return r({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return r({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"FORMAT_INDENT":return r({string:"indent",id:"FORMAT_INDENT"});case"FORMAT_LIST_REVERSED":return r({string:"list reversed",id:"FORMAT_LIST_REVERSED"});case"FORMAT_LIST_START":return r({string:"list start",id:"FORMAT_LIST_START"});case"FORMAT_FONT_SIZE":return r({string:"font size",id:"FORMAT_FONT_SIZE"});case"FORMAT_FONT_FAMILY":return r({string:"font family",id:"FORMAT_FONT_FAMILY"});case"FORMAT_FONT_COLOR":return r({string:"font color",id:"FORMAT_FONT_COLOR"});case"FORMAT_FONT_BACKGROUND":return r({string:"font background color",id:"FORMAT_FONT_BACKGROUND"});case"FORMAT_IMAGE_SIZE":return r({string:"image size",id:"FORMAT_IMAGE_SIZE"});case"FORMAT_STYLE":return r({string:"style",id:"FORMAT_STYLE"});case"PENDING_ACTION_SUGGESTION":return r({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return r({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return r({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return r({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 r({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return r({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 r({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return r({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return r({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return r({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return r({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return r({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return r({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);case"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT":return r({string:"Entering insertion suggestion.",id:"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT":return r({string:"Leaving insertion suggestion.",id:"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT":return r({string:"Entering deletion suggestion.",id:"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT":return r({string:"Leaving deletion suggestion.",id:"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT":return r({string:"Entering formatting suggestion.",id:"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT":return r({string:"Leaving formatting suggestion.",id:"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT"});default:return e}}const Qr=["REPLACE_TEXT","deletion","attribute","_handleCustomCallbackDescription","isEmpty","add","remove","$text","pop","elementStart","_handleInsertRemoveSuggestionDescription","nextSibling","join","*Split:* %0","getItemLabel","subType","start","isEqual","getFirstRange","data","_attributeLabels","has","removeContainer","_locale","skip","type","_handleAttributeSuggestionDescription","Object","addObject","$1 $2","push","EmptyContainer","previousSibling","format","nodeAfter","ELEMENT_SPACE","_schema","replace","end","addContainer","addEmptyContainer","newValue","$textProxy","text","_itemLabels","_customCallbacks","_handleRenameSuggestionDescription","quantity","getWalker","normal","*Insert:* %0","map","insertion","indexOf","_resolveDescriptionItems","key","elementEnd","item","Container","length","addFormat","match","*Remove:* %0","get","matchingCallback","removeFormat","isInContent","checkChild","_addDescriptionItems","name","registerDescriptionCallback","removeEmptyContainer","_itemLabelsCallbacks","isObject","element","softBreak"];var ti,ei;ti=Qr,ei=269,function(t){for(;--t;)ti.push(ti.shift())}(++ei);const ni=function(t,e){return Qr[t-=0]};class ri{constructor(t,e){this[ni("0x4")]=[],this[ni("0x3")]=new Map,this[ni("0x1f")]=[],this[ni("0x37")]=new Map,this[ni("0x47")]=t,this[ni("0x3a")]=e}getDescriptions(t){const e=[],n=new Set,r=new Set;for(let i=0;i<t[ni("0x12")];i++){const o=t[i];if(!o[ni("0x19")])continue;const s=this[ni("0x26")](o);if(s){if(null!=o[ni("0x32")]){if(n[ni("0x38")](o[ni("0x32")]))continue;n[ni("0x28")](o[ni("0x32")])}e[ni("0x41")](s)}else if(ni("0x25")!=o.type)ni("0xb")!=o[ni("0x3c")]&&ni("0x24")!=o[ni("0x3c")]||this[ni("0x2d")](e,o,t[i+1]);else{const t=o.data[ni("0xe")];if(r[ni("0x38")](t))continue;r[ni("0x28")](o.data[ni("0xe")]),t==Cc?this[ni("0x5")](e,o):this[ni("0x3d")](e,o)}}return this[ni("0xd")](e)}[ni("0x1d")](t){this[ni("0x4")][ni("0x41")](t)}registerElementLabel(t,n,r=e.priorities[ni("0x8")]){"function"==typeof t?(0,e.insertToPriorityArray)(this[ni("0x1f")],{matchingCallback:t,label:n,priority:r}):this[ni("0x3")].set(t,n)}registerAttributeLabel(t,e){this[ni("0x37")].set(t,e)}[ni("0x31")](t,e=1){let n;for(const e of this[ni("0x1f")])if(e[ni("0x17")](t)){n=e.label;break}return n||(n=this._itemLabels[ni("0x16")](t[ni("0x1c")])),n?n(e):1!==e?e+" "+t[ni("0x1c")]+"s":""+t.name}[ni("0x1b")](t,e){const n=e[ni("0x35")]()[ni("0x7")](),r="insertion"==e[ni("0x3c")]?"add":ni("0x29");for(const e of n){const i=e[ni("0x10")],o=t[t[ni("0x12")]-1];if(i.is(ni("0x1")))o&&o.type[ni("0xc")](ni("0x11"))>-1&&t[ni("0x2b")](),o&&ni("0x2")==o[ni("0x3c")]?o[r]+=i[ni("0x36")]:t[ni("0x41")]({type:ni("0x2"),add:ni("0x28")==r?i.data:"",remove:"remove"==r?i[ni("0x36")]:""});else if(this[ni("0x47")][ni("0x20")](i)){const s=i;if(o&&o[ni("0x3c")].indexOf(ni("0x11"))>-1&&t[ni("0x2b")](),ni("0xf")==e[ni("0x3c")])continue;o&&o[ni("0x3c")]==r+ni("0x3e")&&o.element[ni("0x1c")]==s.name?o.quantity++:t.push({type:r+ni("0x3e"),element:s,quantity:1}),n[ni("0x3b")]((t=>!("elementEnd"==t[ni("0x3c")]&&t[ni("0x10")]==i)))}else if(this[ni("0x47")][ni("0x1a")](i,ni("0x2a"))||i.is(ni("0x21"),ni("0x22"))){const n=i;if("add"==r&&ni("0x2c")==e[ni("0x3c")]||ni("0x29")==r&&"elementEnd"==e[ni("0x3c")])continue;if(o&&-1==o[ni("0x3c")][ni("0xc")](ni("0x11"))){ni("0x2")==o.type&&(o[r]+="\n");continue}let s;if(s="add"==r?n[ni("0x2e")]&&!this[ni("0x47")][ni("0x20")](n[ni("0x2e")])?n.nextSibling:null:n[ni("0x43")]&&!this[ni("0x47")][ni("0x20")](n[ni("0x43")])?n.previousSibling:null,n[ni("0x27")]||s&&s[ni("0x27")]){const e=s&&s.isEmpty?s:n;o&&o[ni("0x3c")]==r+ni("0x42")&&o[ni("0x21")][ni("0x1c")]==e[ni("0x1c")]?o[ni("0x6")]++:t[ni("0x41")]({type:r+ni("0x42"),element:e,quantity:1})}else t[ni("0x41")]({type:r+ni("0x11"),element:n})}}}_resolveDescriptionItems(t){const e=this._locale,n=[],r=[],i=[];for(const o of t)switch(o[ni("0x3c")]){case"text":if(o[ni("0x28")]=o.add[ni("0x48")](/(\S)\u000A+(\S)/g,ni("0x40"))[ni("0x48")](/\u000A/g,""),o.remove=o[ni("0x29")].replace(/(\S)\u000A+(\S)/g,ni("0x40"))[ni("0x48")](/\u000A/g,""),""!=o[ni("0x28")]&&""!=o[ni("0x29")]){n[ni("0x41")]({type:ni("0x48"),content:Jr(e,ni("0x23"),['"'+o[ni("0x29")]+'"','"'+o.add+'"'])});continue}if(null!=o[ni("0x28")][ni("0x14")](/^ +$/)){n.push({type:ni("0xb"),content:Jr(e,ni("0x9"),Jr(e,ni("0x46"),o[ni("0x28")][ni("0x12")]))});continue}if(null!=o[ni("0x29")][ni("0x14")](/^ +$/)){n[ni("0x41")]({type:"deletion",content:Jr(e,"*Remove:* %0",Jr(e,"ELEMENT_SPACE",o.remove[ni("0x12")]))});continue}if(""!=o.add){n[ni("0x41")]({type:"insertion",content:Jr(e,"*Insert:* %0",'"'+o[ni("0x28")]+'"')});continue}n[ni("0x41")]({type:"deletion",content:Jr(e,ni("0x15"),'"'+o[ni("0x29")]+'"')});continue;case ni("0x4b"):case ni("0x3f"):n[ni("0x41")]({type:ni("0xb"),content:Jr(e,ni("0x9"),this[ni("0x31")](o[ni("0x21")],o[ni("0x6")]))});continue;case ni("0x1e"):case"removeObject":n[ni("0x41")]({type:ni("0x24"),content:Jr(e,"*Remove:* %0",this[ni("0x31")](o[ni("0x21")],o[ni("0x6")]))});continue;case ni("0x4a"):n.push({type:ni("0xb"),content:Jr(e,ni("0x30"),this[ni("0x31")](o[ni("0x21")],o[ni("0x6")]))});continue;case ni("0x39"):n[ni("0x41")]({type:"deletion",content:Jr(e,"*Merge:* %0",this[ni("0x31")](o[ni("0x21")],o[ni("0x6")]))});continue;case ni("0x13"):r[ni("0x41")](o[ni("0xe")]);continue;case ni("0x18"):i.push(o[ni("0xe")]);continue;default:n.push(o)}if(r[ni("0x12")]){const t=r.map((t=>this[ni("0x37")][ni("0x38")](t)?this._attributeLabels[ni("0x16")](t):t))[ni("0x2f")](", ");n[ni("0x41")]({type:ni("0x44"),content:Jr(this._locale,"*Set format:* %0",t)})}if(i.length){const t=i[ni("0xa")]((t=>this[ni("0x37")][ni("0x38")](t)?this[ni("0x37")].get(t):t))[ni("0x2f")](", ");n[ni("0x41")]({type:ni("0x44"),content:Jr(this._locale,"*Remove format:* %0",t)})}return n}[ni("0x26")](t){for(const e of this[ni("0x4")]){const n=e(t);if(n&&ni("0x3c")in n)return n}}[ni("0x3d")](t,e){const n=e[ni("0x36")],r=void 0===n[ni("0x0")]?"removeFormat":ni("0x13");t[ni("0x41")]({type:r,key:n.key})}_handleRenameSuggestionDescription(t,e){t[ni("0x41")]({type:ni("0x44"),content:Jr(this._locale,"*Change to:* %0",this[ni("0x31")](e[ni("0x35")]()[ni("0x33")][ni("0x45")],1))})}[ni("0x2d")](t,e,n){if(this[ni("0x1b")](t,e),n&&n[ni("0x35")]()&&!e[ni("0x35")]()[ni("0x49")][ni("0x34")](n.getFirstRange()[ni("0x33")])){const n=t[t[ni("0x12")]-1],r="insertion"==e.type?ni("0x28"):ni("0x29");n&&ni("0x2")==n[ni("0x3c")]&&(n[r]+="\n")}}}const ii=["commands","showAIAssistant","TrackChangesEditing","afterInit","get","editor","plugins"];var oi,si;oi=ii,si=382,function(t){for(;--t;)oi.push(oi.shift())}(++si);const xi=function(t,e){return ii[t-=0]};class ai extends t.Plugin{[xi("0x6")](){const t=this[xi("0x1")],e=t[xi("0x2")].get(xi("0x5"));t[xi("0x3")][xi("0x0")]("showAIAssistant")&&e.enableCommand(xi("0x4"))}}const ci=["FORMAT_JUSTIFY_TEXT","plugins","type","format","_descriptionFactory","commandName","TrackChangesEditing","FORMAT_ALIGN_TO_LEFT","right","AlignmentEditing","editor","locale","center","afterInit","_enableDefaultAttributesIntegration","FORMAT_ALIGN_TO_RIGHT","alignment","FORMAT_ALIGN_TO_CENTER","commandParams","get","has","justify","_registerLegacyDescription","FORMAT_ALIGNMENT","*Format:* %0"];var li,ui;li=ci,ui=207,function(t){for(;--t;)li.push(li.shift())}(++ui);const di=function(t,e){return ci[t-=0]};class gi extends t.Plugin{[di("0x6")](){const t=this[di("0x3")],e=t[di("0x4")];if(!t[di("0x13")][di("0xd")](di("0x2")))return;const n=t[di("0x13")][di("0xc")]("TrackChangesEditing");n[di("0x7")](di("0x9"),[],[di("0x9")]),n[di("0x16")].registerAttributeLabel("alignment",Jr(e,di("0x10"))),this[di("0xf")]()}[di("0xf")](){const t=this[di("0x3")],e=t[di("0x4")];t[di("0x13")][di("0xc")](di("0x18"))._descriptionFactory.registerDescriptionCallback((t=>{if("formatBlock"!=t[di("0x14")])return;const{data:n}=t;if(n&&di("0x9")==n[di("0x17")]){const t=n[di("0xb")][0].value;return{type:di("0x15"),content:Jr(e,di("0x11"),function(t){switch(t){case"left":return Jr(e,di("0x0"));case di("0x1"):return Jr(e,di("0x8"));case di("0x5"):return Jr(e,di("0xa"));case di("0xe"):return Jr(e,di("0x12"))}}(t))}}}))}}const fi=["toLowerCase","FORMAT_","bold","has","FORMAT_ITALIC","code","*Remove format:* %0","commandName","FORMAT_SUBSCRIPT","forceValue","SubscriptEditing","slice","_descriptionFactory","UnderlineEditing","type","ItalicEditing","subscript","strikethrough","CodeEditing","registerAttributeLabel","superscript","get","toUpperCase","plugins","BoldEditing","_enableDefaultAttributesIntegration","TrackChangesEditing","FORMAT_UNDERLINE","_registerLegacyDescription","editor","underline","italic","locale","commandParams"];var hi,mi;hi=fi,mi=142,function(t){for(;--t;)hi.push(hi.shift())}(++mi);const pi=function(t,e){return fi[t-=0]},bi=[pi("0x12"),pi("0x9"),pi("0x7"),pi("0xc"),"StrikethroughEditing",pi("0x4"),"SuperscriptEditing"];class Ei extends t.Plugin{afterInit(){const t=this[pi("0x17")],e=t[pi("0x11")][pi("0xf")]("TrackChangesEditing"),n=t[pi("0x1a")];for(const r of bi){if(!t[pi("0x11")][pi("0x1f")](r))continue;const i=r[pi("0x5")](0,-7)[pi("0x1c")](),o=pi("0x1d")+i[pi("0x10")]();e[pi("0x13")](i,[i]),e[pi("0x6")][pi("0xd")](i,Jr(n,o))}this[pi("0x16")]()}[pi("0x16")](){const t=this[pi("0x17")],e=t[pi("0x1a")],n=t.plugins[pi("0xf")](pi("0x14"));function r(t,r){n[pi("0x6")].registerDescriptionCallback((n=>{if("formatInline"!=n[pi("0x8")])return;const{data:i}=n;return i&&i[pi("0x1")]===t?i[pi("0x1b")][0][pi("0x3")]?{type:"format",content:Jr(e,"*Format:* %0",r)}:{type:"format",content:Jr(e,pi("0x0"),r)}:void 0}))}r(pi("0x1e"),Jr(e,"FORMAT_BOLD")),r(pi("0x19"),Jr(e,pi("0x20"))),r(pi("0x18"),Jr(e,pi("0x15"))),r(pi("0x21"),Jr(e,"FORMAT_CODE")),r(pi("0xb"),Jr(e,"FORMAT_STRIKETHROUGH")),r(pi("0xa"),Jr(e,pi("0x2"))),r(pi("0xe"),Jr(e,"FORMAT_SUPERSCRIPT"))}}const _i=["filter","schema","ELEMENT_BLOCK_QUOTE","afterInit","*Set format:* %0","_descriptionFactory","model","format","checkChild","parent","selection","locale","forceValue","value","has","$root","get","enableCommand","plugins","markBlockFormat","BlockQuoteEditing","editor","from","document","blockQuote","*Remove format:* %0","commands","change","name","registerDescriptionCallback","commandParams","TrackChangesEditing"];var Ti,yi;Ti=_i,yi=467,function(t){for(;--t;)Ti.push(Ti.shift())}(++yi);const Ci=function(t,e){return _i[t-=0]};class Ai extends t.Plugin{[Ci("0x10")](){const t=this[Ci("0x2")],e=t[Ci("0x18")];if(!t[Ci("0x1f")][Ci("0x1b")](Ci("0x1")))return;const n=t[Ci("0x1f")].get(Ci("0xc")),r=this[Ci("0x2")][Ci("0x7")][Ci("0x1d")](Ci("0x5"));n[Ci("0x1e")](Ci("0x5"),((e,i={})=>{const o=this[Ci("0x2")].model[Ci("0x4")][Ci("0x17")],s=i&&void 0!==i[Ci("0x19")]?i[Ci("0x19")]:!r[Ci("0x1a")];let x=[];if(s){const e=Array[Ci("0x3")](o.getSelectedBlocks()).filter((t=>ki(t)||function(t,e){const n=e[Ci("0x15")](t.parent,"blockQuote"),r=e[Ci("0x15")]([Ci("0x1c"),Ci("0x5")],t);return n&&r}(t,this[Ci("0x2")].model[Ci("0xe")])));x=S(e,t[Ci("0x13")])}else{const e=Array[Ci("0x3")](o.getSelectedBlocks())[Ci("0xd")]((t=>ki(t)));x=S(e,t.model)}t[Ci("0x13")][Ci("0x8")]((()=>{for(const t of x)n[Ci("0x0")](t,{commandName:"blockQuote",commandParams:[{forceValue:s}]})}))})),n[Ci("0x12")][Ci("0xa")]((t=>{const{data:n}=t;if(n&&Ci("0x5")==n.commandName){const t=Jr(e,Ci("0xf"));return n[Ci("0xb")][0][Ci("0x19")]?{type:Ci("0x14"),content:Jr(e,Ci("0x11"),t)}:{type:Ci("0x14"),content:Jr(e,Ci("0x6"),t)}}}))}}function ki(t){return Ci("0x5")==t[Ci("0x16")][Ci("0x9")]}const Ii=["plugins","changeCaseTitle","has","editor","TrackChangesEditing","get","enableCommand","changeCaseUpper","afterInit","CaseChange"];var Ri,Si;Ri=Ii,Si=217,function(t){for(;--t;)Ri.push(Ri.shift())}(++Si);const vi=function(t,e){return Ii[t-=0]};class Ni extends t.Plugin{[vi("0x1")](){const t=this[vi("0x6")];t[vi("0x3")][vi("0x5")](vi("0x2"))&&(t[vi("0x3")].get(vi("0x7")).enableCommand(vi("0x0")),t[vi("0x3")][vi("0x8")]("TrackChangesEditing")[vi("0x9")]("changeCaseLower"),t[vi("0x3")][vi("0x8")](vi("0x7"))[vi("0x9")](vi("0x4")))}}const Li=["get","afterInit","plugins","ckbox","editor","enableCommand","TrackChangesEditing"];var Mi,wi;Mi=Li,wi=453,function(t){for(;--t;)Mi.push(Mi.shift())}(++wi);const Oi=function(t,e){return Li[t-=0]};class Fi extends t.Plugin{[Oi("0x3")](){const t=this[Oi("0x6")];t.commands[Oi("0x2")](Oi("0x5"))&&t[Oi("0x4")][Oi("0x2")](Oi("0x1"))[Oi("0x0")](Oi("0x5"))}}const Di=["filter","editor","commandName","*Set format:* %0","label","document","blockName","schema","formatBlock","commands","isLimit","enableCommand","indentCodeBlock","codeBlock","value","languages","from","_descriptionFactory","get","model","language","checkChild","find","config","change","CodeBlock","ELEMENT_CODE_BLOCK","plugins","afterInit","registerDescriptionCallback","rootElement","selection","commandParams","forceValue","format","markBlockFormat","registerElementLabel","parent"];var Pi,Bi;Pi=Di,Bi=281,function(t){for(;--t;)Pi.push(Pi.shift())}(++Bi);const Ui=function(t,e){return Di[t-=0]};class ji extends t.Plugin{[Ui("0xd")](){const t=this[Ui("0x18")];if(!t[Ui("0xc")].has(Ui("0xa")))return;const e=t[Ui("0xc")].get("TrackChangesEditing"),n=t.locale,r=t[Ui("0x8")][Ui("0x3")]("codeBlock")[Ui("0x0")],i=t[Ui("0x20")][Ui("0x3")](Ui("0x24"));e[Ui("0x22")](Ui("0x23")),e[Ui("0x22")]("outdentCodeBlock"),e[Ui("0x22")](Ui("0x24"),((n,o={})=>{const s=t.model,x=t[Ui("0x4")][Ui("0x1c")][Ui("0x10")],a=o&&void 0!==o.forceValue?o[Ui("0x12")]:!i[Ui("0x25")];let c;o[Ui("0x5")]||(o[Ui("0x5")]=r[0][Ui("0x5")]),c=a?Array.from(x.getSelectedBlocks())[Ui("0x17")]((t=>{return Gi(t)||(e=t,n=s[Ui("0x1e")],!e.is(Ui("0xf"))&&!n[Ui("0x21")](e)&&n[Ui("0x6")](e[Ui("0x16")],Ui("0x24")));var e,n})):Array[Ui("0x1")](x.getSelectedBlocks())[Ui("0x17")]((t=>Gi(t)));const l=S(c,s);s[Ui("0x9")]((()=>{for(const t of l)e[Ui("0x14")](t,{commandName:Ui("0x24"),commandParams:[{...o,forceValue:a}],formatGroupId:Ui("0x1d")})}))})),e[Ui("0x2")][Ui("0x15")](Ui("0x24"),(t=>Jr(n,Ui("0xb"),t))),e._descriptionFactory[Ui("0xe")]((t=>{if(Ui("0x1f")!=t.type)return;const e=n.t,{data:i}=t;if(!i||Ui("0x24")!=i[Ui("0x19")])return;const o=i[Ui("0x11")][0][Ui("0x5")],s=e(r[Ui("0x7")]((t=>t.language===o))[Ui("0x1b")]).toLowerCase();return i[Ui("0x11")][0][Ui("0x12")]?{type:Ui("0x13"),content:Jr(n,Ui("0x1a"),Jr(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:Ui("0x13"),content:Jr(n,"*Remove format:* %0",Jr(n,Ui("0xb"),1))}}))}}function Gi(t){return Ui("0x24")==t.name}const Vi=["plugins","editor","TrackChangesEditing","enableCommand","addCommentThread","CommentsEditing","get"];var Hi,zi;Hi=Vi,zi=224,function(t){for(;--t;)Hi.push(Hi.shift())}(++zi);const Wi=function(t,e){return Vi[t-=0]};class Ki extends t.Plugin{afterInit(){const t=this[Wi("0x1")];t[Wi("0x0")].has(Wi("0x5"))&&t.plugins[Wi("0x6")](Wi("0x2"))[Wi("0x3")](Wi("0x4"))}}var qi=n(500);const Xi=["listItem","schema","push","getItems","get","getAttribute","isLimit","mapper","model","bindElementToMarker","elementEnd","markerRange","getWalker","nextSibling","getCustomProperty","isContent","includes","markerName","TrackChangesEditing","type","span","insert","start","previousPosition","parent","isBlock","toViewElement","addHighlight","listIndent","plugins","item","writer","addClass","createRangeOn","ck-suggestion-marker--active"];var $i,Zi;$i=Xi,Zi=456,function(t){for(;--t;)$i.push($i.shift())}(++Zi);const Yi=function(t,e){return Xi[t-=0]};function Ji(t,e,n){const r=[];for(const i of e[Yi("0x2")]())i.hasAttribute(t)&&r[Yi("0x1")](n[Yi("0x20")](i));return r}function Qi(t,e,{showActiveMarker:n=!0}={}){const r=t[Yi("0x1c")][Yi("0x3")](Yi("0x11"));return(i,o,s)=>{if(!s.consumable.test(o[Yi("0xa")],i.name))return;const x=o[Yi("0xa")][Yi("0xb")](),a=o[Yi("0xa")][Yi("0x15")],c=t[Yi("0x7")][Yi("0x0")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[Yi("0x1d")];d=d||c[Yi("0xe")](e);const n=s.mapper[Yi("0x19")](e);if(n&&n[Yi("0xd")](Yi("0x1a")))return;Yi("0x9")==t[Yi("0x12")]&&c[Yi("0x18")](e)&&!c[Yi("0x5")](e)&&(e[Yi("0xc")]||a.isAtEnd?l&&l[Yi("0x17")]==e||(l=e,f(t[Yi("0x16")]),g=!0):u=u||t[Yi("0x16")])}function f(t){const i=s.writer.createUIElement(Yi("0x13"),{class:"ck-suggestion-marker-"+e}),x=s[Yi("0x6")].toViewPosition(t);n&&r.activeMarkers[Yi("0xf")](o[Yi("0x10")])&&s[Yi("0x1e")][Yi("0x1f")](Yi("0x21"),i),s[Yi("0x1e")][Yi("0x14")](x,i),s.mapper[Yi("0x8")](i,o[Yi("0x10")])}d||g||!u||f(u)}}const to=["requires","unit","lock","root","markerName","start","uiElement","rootName","mapper","markerNameToElements","selection","merge","TrackChangesEditing","detach","batch","commands","removeMarker:suggestion:deletion","options","end","document","buffer","editing","modifySelection","addMarker:suggestion:deletion","writer","downcastDispatcher","editor","high","unlock","remove","$graveyard","setSelection","deleteForward","fromRange","enqueueChange","data","delete","enableCommand","bind","model","createRange","getFirstRange","get"];var eo,no;eo=to,no=101,function(t){for(;--t;)eo.push(eo.shift())}(++no);const ro=function(t,e){return to[t-=0]};class io extends t.Plugin{static get[ro("0x1c")](){return[qi.Delete]}init(){const t=this[ro("0xb")],e=t.plugins.get(ro("0x28"));e[ro("0x16")](ro("0x15"));const n=t[ro("0x0")][ro("0x1b")](ro("0x11"));e.enableCommand(ro("0x11"),((e,r={})=>{const i=t[ro("0x18")].createSelection(t[ro("0x18")][ro("0x4")][ro("0x26")]);i.isCollapsed&&t[ro("0x18")][ro("0x7")](i,{direction:"forward",unit:r[ro("0x1d")]});const o=i[ro("0x1a")](),x=s.LiveRange[ro("0x12")](o);let a;e(r),a=ro("0xf")==x[ro("0x1f")][ro("0x23")]?t.model[ro("0x19")](o[ro("0x21")]):t[ro("0x18")][ro("0x19")](x[ro("0x21")],x[ro("0x3")]),x[ro("0x29")](),t.model[ro("0x13")](n[ro("0x5")][ro("0x2a")],(t=>{n[ro("0x5")][ro("0x1e")](),t[ro("0x10")](t[ro("0x19")](a.end)),n[ro("0x5")][ro("0xd")]()}))})),t[ro("0x6")][ro("0xa")].on(ro("0x8"),Qi(t,ro("0x27")),{priority:ro("0xc")}),t[ro("0x14")][ro("0xa")].on(ro("0x8"),((e,n,r)=>{r[ro("0x2")].showSuggestionHighlights&&Qi(t,"merge",{showActiveMarker:!1})[ro("0x17")](this)(e,n,r)}),{priority:ro("0xc")}),t[ro("0x6")].downcastDispatcher.on(ro("0x1"),((t,e,n)=>{const r=n[ro("0x24")][ro("0x25")](e[ro("0x20")]);if(r)for(const t of r)t.is(ro("0x22"))&&(n[ro("0x24")].unbindElementFromMarkerName(t,e[ro("0x20")]),n[ro("0x9")][ro("0xe")](t))}),{priority:ro("0xc")})}}const oo=["detach","documentList","meta","groupId","_registerLegacyDescription","getFirstMarker","FORMAT_INDENT","outdentList","getFirstRange","*Merge:* %0","editor","listType","default","indentList","getAttribute","length","_descriptionFactory","nodeAfter","ELEMENT_BULLETED_LIST","batch","_suggestionFactory","change","oldValue","listStart","ELEMENT_TODO_LIST","getSuggestions","registerDescriptionCallback","data","numbered","setAttribute","document","*Format:* remove from %0","removeMarker","mergeListItemBackward","*Outdent:* %0","start","head","schema","registerElementLabel","includes","ELEMENT_LIST_ITEM","type","listIndent","isNextTo","commandParams","ELEMENT_NUMBERED_LIST","registerAttributeLabel","mergeListItemForward","model","previousSibling","map","TrackChangesEditing","*Merge:* list item","*Format:* insert into %0","attributes","plugins","listReversed","_getAttributeKey","multipleBlocks","isLocal","refresh","value","createPositionAt","key","next","newValue","_findSuggestions","parent","format","listStyle","_enableDefaultAttributesIntegration","formatBlock","registerPostFixer","TodoListEditing","getRanges","*Set format:* %0","find","listItemIdFixer","registerCustomCallback","noTrackChangesFixer","todo","todoList","every","range","ListEditing","end","todoListChecked","fromRange","toUpperCase","listItemId","filter","*Remove format:* %0","bulleted","commandName","numberedList","list.multiBlock","has","splitListItemAfter","splitListItemBefore","*Indent:* %0","get","isObject","commands","differ","getChanges","createRange","forceValue","deletion","config","selection","isUndo","setSelection","locale","attribute","bulletedList","*Split:* list item","suggestion","assureChains"];var so,xo;so=oo,xo=212,function(t){for(;--t;)so.push(so.shift())}(++xo);const ao=function(t,e){return oo[t-=0]};class co extends t.Plugin{afterInit(){const t=this[ao("0x22")];if(!t[ao("0x4f")][ao("0x2")](ao("0x6c")))return;const e=t[ao("0x12")],n=t.plugins[ao("0x6")](ao("0x4b")),r=t[ao("0x4f")][ao("0x2")](ao("0x61")),i=!!t[ao("0xe")][ao("0x6")](ao("0x1"));function o(t){return{type:ao("0x5c"),content:""+Jr(e,ao("0x63"),t)}}function s(t){return{type:ao("0x5c"),content:""+Jr(e,ao("0x73"),t)}}n[ao("0x5e")](ao("0x0"),[],[ao("0x71"),ao("0x23"),ao("0x42")]),n[ao("0x5e")](ao("0x14")),n[ao("0x5e")]("indentList"),n._enableDefaultAttributesIntegration(ao("0x1f")),n[ao("0x5e")](ao("0x3")),n[ao("0x5e")](ao("0x4")),i&&(n[ao("0x5e")](ao("0x39")),n[ao("0x5e")](ao("0x47"))),r&&(n[ao("0x5e")](ao("0x69")),n._enableDefaultAttributesIntegration("checkTodoList",[],[ao("0x6e")]),n[ao("0x28")][ao("0x32")]((t=>{const{data:n}=t;if(n&&"todoListChecked"==n[ao("0x57")])return{type:ao("0x5c"),content:n[ao("0x59")]?Jr(e,"*Check item*"):Jr(e,"*Uncheck item*")}})),this[ao("0x22")][ao("0x48")].document.registerPostFixer((t=>{if(t[ao("0x2b")][ao("0x10")])return!1;let e=!1;const r=n[ao("0x31")]({skipNotAttached:!0})[ao("0x72")]((t=>ao("0x6e")===n[ao("0x51")](t)));for(const i of r)ao("0x68")!=i.getFirstRange()[ao("0x3b")][ao("0x29")][ao("0x26")](ao("0x23"))&&(n._findSuggestions(i[ao("0x20")](),ao("0x13"))[ao("0x64")]((t=>ao("0x23")===n._getAttributeKey(t[ao("0x16")])))||(t.removeMarker(i.getFirstMarker()),e=!0));return e}))),n[ao("0x28")][ao("0x46")]("listIndent",Jr(e,ao("0x1e")));const x={type:"format",content:""};n[ao("0x28")][ao("0x32")]((t=>{const{data:n}=t;if(!n||ao("0x23")!=n[ao("0x57")])return;let r=t[ao("0x3c")];for(;r;){if(r[ao("0x33")]&&(ao("0x5d")==r[ao("0x33")][ao("0x57")]&&(r[ao("0x33")][ao("0x59")]&&ao("0x24")!=r[ao("0x33")].newValue||ao("0x24")!=r[ao("0x33")][ao("0x2e")]&&!n.newValue)||!i&&r[ao("0x33")][ao("0x57")]==Cc))return x;r=r[ao("0x58")]}if(null==n.newValue)switch(n[ao("0x2e")]){case ao("0x74"):return s(Jr(e,ao("0x2a")));case ao("0x34"):return s(Jr(e,ao("0x45")));case ao("0x68"):return s(Jr(e,ao("0x30")))}switch(n.newValue){case ao("0x74"):return o(Jr(e,"ELEMENT_BULLETED_LIST"));case ao("0x34"):return o(Jr(e,ao("0x45")));case ao("0x68"):return o(Jr(e,"ELEMENT_TODO_LIST"))}})),n[ao("0x28")][ao("0x32")]((t=>{const{data:e}=t;if(e&&"listIndent"==e.key)return null==e[ao("0x59")]||null==e[ao("0x2e")]&&0==e[ao("0x59")]?x:void 0})),n._descriptionFactory[ao("0x32")]((t=>{if(ao("0x13")!=t.type)return;const{data:n}=t;if(!n||ao("0x71")!=n[ao("0x57")])return;const r=lo(t);return r?"newValue"==r?{type:ao("0x5c"),content:Jr(e,ao("0x4c"))}:ao("0x2e")==r?{type:ao("0x5c"),content:Jr(e,ao("0x15"))}:x:x})),t.model.document[ao("0x60")]((t=>this[ao("0x65")](t))),t[ao("0x48")][ao("0x36")].registerPostFixer((t=>this[ao("0x67")](t))),t.model[ao("0x36")][ao("0x60")]((t=>this[ao("0x17")](t))),this._supportLegacySuggestions()}[ao("0x65")](t){if(t[ao("0x2b")][ao("0x10")]||!t.batch.isLocal)return!1;let e=!1;const n=this.editor[ao("0x4f")][ao("0x6")](ao("0x4b"))[ao("0x31")]({skipNotAttached:!0}).filter((t=>t[ao("0x33")]&&"listItemId"==t.data[ao("0x57")])).filter((t=>t.data[ao("0x59")]&&t.data.oldValue));for(const r of n)lo(r)||(t[ao("0x38")](r.getFirstMarker()),e=!0);return e}noTrackChangesFixer(t){if(t[ao("0x2b")][ao("0x10")]||!t.batch[ao("0x53")])return!1;const e=this[ao("0x22")][ao("0x4f")][ao("0x6")](ao("0x4b"));if(e.trackChangesCommand[ao("0x55")])return!1;let n=!1;const r=["listType","listStyle",ao("0x71"),ao("0x42"),"listStart",ao("0x50"),"todoListCheck"],i=this[ao("0x22")].model.document[ao("0x9")][ao("0xa")]()[ao("0x72")]((t=>"attribute"==t.type))[ao("0x72")]((t=>r[ao("0x3f")](t.attributeKey)));if(0==i[ao("0x27")])return n;for(const o of i){const i=e[ao("0x5a")](o[ao("0x6b")],ao("0x13"))[ao("0x72")]((t=>!t[ao("0x1a")][ao("0x43")]))[ao("0x4a")]((t=>t[ao("0x16")]))[ao("0x72")]((t=>{const n=e[ao("0x51")](t);return r[ao("0x3f")](n)}));if(i[ao("0x27")]){for(const e of i)t[ao("0x38")](e[ao("0x1d")]());n=!0}}return n}[ao("0x17")](t){if(t[ao("0x2b")][ao("0x10")]||!t[ao("0x2b")][ao("0x53")])return!1;const e=this[ao("0x22")][ao("0x4f")][ao("0x6")](ao("0x4b"));let n=!1;const r=[ao("0x23"),ao("0x5d"),"listItemId","listIndent",ao("0x2f"),ao("0x50"),"todoListCheck"];for(const t of e[ao("0x31")]({skipNotAttached:!0})){const i=e[ao("0x5a")](t[ao("0x20")](),ao("0x13"))[ao("0x4a")]((t=>t.suggestion))[ao("0x72")]((t=>t.data&&r[ao("0x3f")](t[ao("0x33")][ao("0x57")])));if(!i[ao("0x27")])continue;const s=i[0][ao("0x3c")][ao("0x4e")][ao("0x1b")];if(!i[ao("0x6a")]((t=>t[ao("0x4e")][ao("0x1b")]===s)))for(const t of i)o(t,s)&&(n=!0)}return n;function i(t,n){for(const r of e[ao("0x31")]({skipNotAttached:!0}).filter((e=>ao("0x13")==e[ao("0x41")]&&e.attributes.groupId==t)))r[ao("0x35")](ao("0x1b"),n)}function o(t,e){let n=t[ao("0x3c")],r=!1;for(;n;)n[ao("0x4e")][ao("0x1b")]!=e&&(i(n.attributes[ao("0x1b")],e),n.setAttribute(ao("0x1b"),e),r=!0),n=n[ao("0x58")];return r}}_supportLegacySuggestions(){const t=this.editor,e=t[ao("0x12")],n=t[ao("0x4f")].get(ao("0x4b"));this[ao("0x1c")](),n[ao("0x2c")][ao("0x66")](ao("0x5f"),ao("0x19"),"accept",(function(e,n){const r=[];for(let n of e)n[ao("0x3b")][ao("0x29")]===n[ao("0x6d")][ao("0x5b")]&&(n=t[ao("0x48")][ao("0xb")](t[ao("0x48")][ao("0x56")](n.start[ao("0x29")],0))),r.push(n);t[ao("0x48")][ao("0x2d")]((e=>{const i=t.model[ao("0x36")][ao("0xf")],o=Array.from(i[ao("0x62")]()).map((t=>s.LiveRange[ao("0x6f")](t)));e[ao("0x11")](r),t[ao("0x8")][ao("0x6")](n[ao("0x75")])[ao("0x54")](),n[ao("0x44")].push({forceDefaultExecution:!0}),t.execute(n[ao("0x75")],...n[ao("0x44")]),e[ao("0x11")](o);for(const t of o)t[ao("0x18")]()}))})),n[ao("0x28")][ao("0x3e")]((function(e){const n=!t[ao("0x48")][ao("0x3d")][ao("0x7")](e),r=e[ao("0x49")],i=e.nextSibling,o=e[ao("0x26")](ao("0x71")),s=!r||r[ao("0x26")]("listItemId")!==o,x=!i||i[ao("0x26")](ao("0x71"))!==o;return n&&Boolean(o)&&s&&x}),(t=>Jr(e,"ELEMENT_LIST_ITEM",t)))}[ao("0x1c")](){const t=this[ao("0x22")],e=t[ao("0x12")];function n(e){const n=t.commands.get(ao("0x14")).value,r=t[ao("0x8")][ao("0x6")](ao("0x0")).value;return ao("0x0")===e?n:r}t[ao("0x4f")][ao("0x6")](ao("0x4b"))[ao("0x28")][ao("0x32")]((function(r){if(ao("0x5f")!=r[ao("0x41")])return;const{data:i}=r;if(!i)return;let o,s,x,a;switch(i.commandName){case"bulletedList":x=i[ao("0x44")][0][ao("0xc")],a=n(i[ao("0x75")]),o=ao(x?"0x4d":"0x37"),!a&&t[ao("0xe")].get("list.multiBlock")||(o="*Change to:* %0"),s={type:ao("0x5c"),content:Jr(e,o,Jr(e,ao("0x2a")))};break;case ao("0x0"):x=i.commandParams[0][ao("0xc")],a=n(i.commandName),o=x?ao("0x4d"):"*Format:* remove from %0",!a&&t[ao("0xe")][ao("0x6")]("list.multiBlock")||(o="*Change to:* %0"),s={type:ao("0x5c"),content:Jr(e,o,Jr(e,"ELEMENT_NUMBERED_LIST"))};break;case ao("0x25"):o=ao("0x5"),s={type:ao("0x5c"),content:Jr(e,o,Jr(e,ao("0x40")))};break;case ao("0x1f"):o=function(t){const e=t[ao("0x20")]();let n=e[ao("0x3b")][ao("0x29")];for(;n&&e.containsItem(n);){if(n.getAttribute(ao("0x42"))>0)return!1;n=n.nextSibling}return!0}(r)?Jr(e,ao("0x37"),Jr(e,"ELEMENT_"+r[ao("0x20")]()[ao("0x3b")].nodeAfter.getAttribute(ao("0x23"))[ao("0x70")]()+"_LIST")):Jr(e,ao("0x3a"),Jr(e,"ELEMENT_LIST_ITEM")),s={type:ao("0x5c"),content:o};break;case ao("0x39"):case ao("0x47"):!1===i[ao("0x52")]&&(o=ao("0x21"),s={type:ao("0xd"),content:Jr(e,o,Jr(e,ao("0x40")))})}return s}))}}function lo(t){let e=t.getFirstRange()[ao("0x3b")][ao("0x29")][ao("0x49")];for(;e;){const n=e[ao("0x26")](ao("0x71"));if(!n)return!1;if(n==t[ao("0x33")][ao("0x59")])return"newValue";if(n==t[ao("0x33")][ao("0x2e")])return ao("0x2e");e=e[ao("0x49")]}return!1}const uo=["listType","format","ListPropertiesEditing","_LIST_DEFAULT","registerAttributeLabel","get","_registerLegacyDescription","FORMAT_LIST_REVERSED","registerDescriptionCallback","getSuggestions","find","replace","includes","_getTranslationKeyForListStyle","oldValue","suggestion","disc","editor","newValue","key","document","*Remove format:* %0","*Format:* set order to regular","batch","has","config","upper-latin","plugins","upper-roman","reversed","_findSuggestions","afterInit","locale","formatBlock","listReversed","ELEMENT_","square","decimal-leading-zero","_enableDefaultAttributesIntegration","_LIST_","default","FORMAT_LIST_START","nodeAfter","type","listStyle","model","head","lower-latin","start","handleDescriptions","removeMarker","attribute","listStart","getFirstMarker","*Format:* set start index to %0","startIndex","_descriptionFactory","getFirstRange","getAttribute","toUpperCase","*Set format:* %0","commandParams","bulleted","_getAttributeKey","TrackChangesEditing","filter","data"];var go,fo;go=uo,fo=437,function(t){for(;--t;)go.push(go.shift())}(++fo);const ho=function(t,e){return uo[t-=0]};class mo extends t.Plugin{[ho("0x3f")](){if(!this[ho("0x31")].plugins[ho("0x38")](ho("0x22")))return;const t=this[ho("0x31")][ho("0x39")][ho("0x25")]("list.properties"),e=this[ho("0x31")][ho("0x3b")][ho("0x25")](ho("0x1d"));t.styles&&e[ho("0x3")](ho("0x9"),[],[ho("0x9")]),t[ho("0x3d")]&&e[ho("0x3")](ho("0x42"),[],[ho("0x42")]),t[ho("0x14")]&&e[ho("0x3")](ho("0x11"),[],[ho("0x11")]);const n={type:"format",content:""};e[ho("0x15")].registerDescriptionCallback(this.handleDescriptions.bind(this));const r=this[ho("0x31")].locale;e[ho("0x15")][ho("0x24")](ho("0x42"),Jr(r,ho("0x27"))),e[ho("0x15")][ho("0x28")]((t=>{const{data:e}=t;if(e&&"listReversed"==e.key)return null==e.newValue||0==e[ho("0x32")]&&null==e[ho("0x2e")]?n:void 0})),e._descriptionFactory[ho("0x24")](ho("0x11"),Jr(r,ho("0x6"))),e[ho("0x15")][ho("0x28")]((t=>{const{data:e}=t;if(e&&"listStart"==e.key)return null==e[ho("0x32")]||1==e[ho("0x32")]&&null==e[ho("0x2e")]?n:void 0})),this[ho("0x31")][ho("0xa")][ho("0x34")].registerPostFixer((t=>{if(t[ho("0x37")].isUndo)return!1;let n=!1;const r=e[ho("0x29")]({skipNotAttached:!0})[ho("0x1e")]((t=>{const n=e[ho("0x1c")](t);return"listStart"==n||"listReversed"==n}));for(const i of r)"numbered"!=i.getFirstRange().start[ho("0x7")][ho("0x17")](ho("0x20"))&&(e[ho("0x3e")](i.getFirstRange(),ho("0x10"))[ho("0x2a")]((t=>"listType"==e._getAttributeKey(t[ho("0x2f")])))||(t[ho("0xf")](i[ho("0x12")]()),n=!0));return n})),this._registerLegacyDescription()}[ho("0xe")](t){const e=this[ho("0x31")][ho("0x40")],{data:n}=t,r={type:ho("0x21"),content:""};if(!n||ho("0x9")!=n.key)return;if(!n[ho("0x2e")])return"default"==n[ho("0x32")]?r:{type:"format",content:""+Jr(e,"*Set format:* %0",Jr(e,this[ho("0x2d")](n[ho("0x32")])))};if(!n[ho("0x32")]){if(ho("0x5")==n[ho("0x2e")])return r;let i=t[ho("0xb")];for(;i;){if(i[ho("0x1f")]&&ho("0x20")==i.data[ho("0x33")]&&i[ho("0x1f")][ho("0x32")])return r;i=i.next}return{type:ho("0x21"),content:""+Jr(e,ho("0x35"),Jr(e,this[ho("0x2d")](n[ho("0x2e")])))}}if(ho("0x5")!=n.newValue)return{type:ho("0x21"),content:""+Jr(e,ho("0x19"),Jr(e,this[ho("0x2d")](n[ho("0x32")])))};let i=t[ho("0xb")];for(;i;){if(i[ho("0x1f")]&&"listType"==i[ho("0x1f")].key&&i[ho("0x1f")][ho("0x32")]&&i[ho("0x1f")][ho("0x2e")])return r;i=i.next}const o=t[ho("0x16")]()[ho("0xd")].nodeAfter[ho("0x17")](ho("0x20"));return{type:ho("0x21"),content:Jr(e,ho("0x19"),Jr(e,"ELEMENT_"+o[ho("0x18")]()+ho("0x23")))}}[ho("0x26")](){const t=this[ho("0x31")],e=t[ho("0x40")];t.plugins.get(ho("0x1d"))[ho("0x15")][ho("0x28")]((t=>{if(ho("0x41")!=t[ho("0x8")])return;const{data:n}=t;if(!n)return;let r,i;switch(n.commandName){case ho("0x9"):r="*Change to:* %0",i={type:ho("0x21"),content:Jr(e,r,Jr(e,this._getTranslationKeyForListStyle(n.commandParams[0][ho("0x8")])))};break;case ho("0x42"):r=n.commandParams[0][ho("0x3d")]?"*Format:* set order to reversed":ho("0x36"),i={type:"format",content:Jr(e,r)};break;case"listStart":r=ho("0x13"),i={type:ho("0x21"),content:Jr(e,r,n[ho("0x1a")][0][ho("0x14")])}}return i}))}[ho("0x2d")](t){return ho("0x0")+(e=t,po[ho("0x2c")](e)?ho("0x1b"):bo[ho("0x2c")](e)?"numbered":null)[ho("0x18")]()+ho("0x4")+t[ho("0x18")]()[ho("0x2b")](/-/g,"_");var e}}const po=[ho("0x30"),"circle",ho("0x1")],bo=["decimal",ho("0x2"),"lower-roman",ho("0x3c"),ho("0xc"),ho("0x3a")];var Eo=n(976);const _o=["nextSibling","document","enter","hasClass","afterExecute","commands","init","markerName","writer","markInsertion","showSuggestionHighlights","plugins","model","markerNameToElements","get","editor","enterBlock","addMarker:suggestion:insertion","data","split","mapper","fire","options","fromRange","createRange","createPositionAt","TrackChangesEditing","unbindElementFromMarkerName","high","remove","downcastDispatcher","enableCommand","getFirstRange","end","editing","selection","detach","change","getFirstPosition"];var To,yo;To=_o,yo=367,function(t){for(;--t;)To.push(To.shift())}(++yo);const Co=function(t,e){return _o[t-=0]};class Ao extends t.Plugin{static get requires(){return[Eo.Enter]}[Co("0x1d")](){const t=this[Co("0x26")],e=t[Co("0x22")].get(Co("0xa")),n=t[Co("0x1c")][Co("0x25")](Co("0x19"));e[Co("0xf")](Co("0x19"),(()=>{t[Co("0x23")][Co("0x15")]((r=>{const i=t[Co("0x23")][Co("0x18")][Co("0x13")],o=i[Co("0x16")](),x=s.LiveRange[Co("0x7")](i[Co("0x10")]());if(n[Co("0x0")](r)){const n=t[Co("0x23")][Co("0x9")](o.parent[Co("0x17")],0),i=r[Co("0x8")](o,n);e[Co("0x20")](i)}else r.setSelection(r.createRange(x[Co("0x11")]));x[Co("0x14")](),n[Co("0x5")](Co("0x1b"),{writer:r})}))})),t[Co("0x12")][Co("0xe")].on(Co("0x1"),Qi(t,Co("0x3")),{priority:Co("0xc")}),t[Co("0x12")][Co("0xe")].on("removeMarker:suggestion:insertion",((t,e,n)=>{const r=n[Co("0x4")][Co("0x24")](e[Co("0x1e")]);if(r)for(const t of r)t[Co("0x1a")]("ck-suggestion-marker-split")&&(n[Co("0x4")][Co("0xb")](t,e[Co("0x1e")]),n[Co("0x1f")][Co("0xd")](t))}),{priority:Co("0xc")}),t[Co("0x2")][Co("0xe")].on(Co("0x1"),((e,n,r)=>{r[Co("0x6")][Co("0x21")]&&Qi(t,Co("0x3"),{showActiveMarker:!1}).bind(this)(e,n,r)}),{priority:Co("0xc")})}}const ko=["TrackChangesEditing","plugins","model","string","createRange","has","createPositionAt","findByTextCallback","get","find","handleFindCommand","filter","end","replace","enableCommand","item","editor","findPrevious","_isInDeletionRange","bind"];var Io,Ro;Io=ko,Ro=418,function(t){for(;--t;)Io.push(Io.shift())}(++Ro);const So=function(t,e){return ko[t-=0]};class vo extends t.Plugin{afterInit(){if(!this[So("0x12")][So("0x3")][So("0x7")]("FindAndReplaceEditing"))return;const t=this.editor[So("0x3")][So("0xa")](So("0x2"));t[So("0x10")](So("0xb"),this.handleFindCommand[So("0x1")](this)),t[So("0x10")]("findNext"),t.enableCommand(So("0x13")),t[So("0x10")](So("0xf")),t[So("0x10")]("replaceAll")}[So("0xc")](t,e,n={}){const r=this[So("0x12")][So("0x3")][So("0xa")]("FindAndReplaceUtils");return t((t=>(So("0x5")==typeof e?r[So("0x9")](e,n):e)(t)[So("0xd")]((e=>!1===this[So("0x0")](e,t[So("0x11")])))),n)}_isInDeletionRange(t,e){const n=this[So("0x12")][So("0x4")][So("0x6")](this[So("0x12")][So("0x4")][So("0x8")](e,t.start),this[So("0x12")][So("0x4")][So("0x8")](e,t[So("0xe")]));for(const t of this[So("0x12")][So("0x4")].markers.getMarkersGroup("suggestion:deletion"))if(null!==n.getIntersection(t.getRange()))return!0;return!1}}const No=["toLowerCase","normalizeSizeOptions","FORMAT_FONT_FAMILY","FORMAT_FONT_COLOR","FontSize","*Reset font size*","fontColor.colors","*Set font family:* %0","*Reset font background color*","_enableDefaultAttributesIntegration","_registerLegacyDescription","formatInline","has","fontBackgroundColor","_descriptionFactory","*Set font color:* %0","*Reset font color*","registerAttributeLabel","fontBackgroundColor.colors","*Reset font family*","FontFamilyEditing","locale","*Set font size:* %0","fontFamily","editor","registerDescriptionCallback","commandName","commandParams","fontColor","fontSize.options","trim","value","FontBackgroundColorEditing","format","config","FontSizeEditing","label","fontSize","find","plugins","get","title","*Set font background color:* %0","afterInit","type","TrackChangesEditing","model","FORMAT_FONT_BACKGROUND"];var Lo,Mo;Lo=No,Mo=288,function(t){for(;--t;)Lo.push(Lo.shift())}(++Mo);const wo=function(t,e){return No[t-=0]},Oo=[{pluginName:wo("0x23"),commandName:wo("0x25")},{pluginName:wo("0x14"),commandName:wo("0x17")},{pluginName:"FontColorEditing",commandName:wo("0x1c")},{pluginName:wo("0x20"),commandName:wo("0xd")}];class Fo extends t.Plugin{[wo("0x2b")](){const t=this[wo("0x18")][wo("0x15")],e=this[wo("0x18")].plugins.get(wo("0x2d"));for(const{pluginName:t,commandName:n}of Oo)this[wo("0x18")][wo("0x27")][wo("0xc")](t)&&e[wo("0x9")](n,[n]);t.t,e[wo("0xe")][wo("0x11")](wo("0x25"),Jr(t,"FORMAT_FONT_SIZE")),e[wo("0xe")][wo("0x11")](wo("0x17"),Jr(t,wo("0x2"))),e[wo("0xe")][wo("0x11")]("fontColor",Jr(t,wo("0x3"))),e._descriptionFactory[wo("0x11")](wo("0xd"),Jr(t,wo("0x2f"))),this[wo("0xa")]()}[wo("0xa")](){const t=this[wo("0x18")],e=t[wo("0x15")];t.plugins[wo("0x28")](wo("0x2d"))[wo("0xe")][wo("0x19")]((t=>{const n=e.t;if(wo("0xb")!=t[wo("0x2c")])return;const{data:r}=t;if(null!=r){if(wo("0x25")==r[wo("0x1a")]){const t=r[wo("0x1b")][0].value;if(t){const r=n(this.editor[wo("0x27")][wo("0x28")](wo("0x4"))[wo("0x1")](this[wo("0x18")].config[wo("0x28")](wo("0x1d")))[wo("0x26")]((e=>e[wo("0x2e")]==t))[wo("0x29")])[wo("0x0")]();return{type:wo("0x21"),content:Jr(e,wo("0x16"),r)}}return{type:wo("0x21"),content:Jr(e,wo("0x5"))}}if("fontFamily"==r[wo("0x1a")]){const t=r[wo("0x1b")][0][wo("0x1f")];return t?{type:wo("0x21"),content:Jr(e,wo("0x7"),t)}:{type:wo("0x21"),content:Jr(e,wo("0x13"))}}if("fontColor"==r[wo("0x1a")]){const t=r.commandParams[0][wo("0x1f")];if(t){const r=(0,i.normalizeColorOptions)(this.editor.config[wo("0x28")](wo("0x6"))).find((e=>e[wo("0x2e")]==t));let o=t,s="";return r&&(o=r[wo("0x24")],s=n(o)[wo("0x0")]()),{type:"format",content:Jr(e,wo("0xf"),s)[wo("0x1e")](),color:{value:t,title:s||o}}}return{type:wo("0x21"),content:Jr(e,wo("0x10"))}}if("fontBackgroundColor"==r[wo("0x1a")]){const t=r[wo("0x1b")][0].value;if(t){const r=(0,i.normalizeColorOptions)(this.editor[wo("0x22")].get(wo("0x12")))[wo("0x26")]((e=>e[wo("0x2e")]==t));let o=t,s="";return r&&(o=r[wo("0x24")],s=n(o).toLowerCase()),{type:wo("0x21"),content:Jr(e,wo("0x2a"),s)[wo("0x1e")](),color:{value:t,title:s||o}}}return{type:wo("0x21"),content:Jr(e,wo("0x8"))}}}}))}}const Do=["charAt","toLowerCase","_registerLegacyDescription","label","normalizeSizeOptions","boolean","pasteFormat","slice","find","type","afterInit","fontColor","_descriptionFactory","commandName","commandParams","*Set format to:* %0","formatInline","get","FontSize","join","locale","length","push","fontColor.colors","toUpperCase","registerDescriptionCallback","fontSize","copyFormat","plugins","enableCommand","title","model","split","editor","TrackChangesEditing","config","format","commands","*Remove all formatting*"];var Po,Bo;Po=Do,Bo=488,function(t){for(;--t;)Po.push(Po.shift())}(++Bo);const Uo=function(t,e){return Do[t-=0]};class jo extends t.Plugin{[Uo("0x1d")](){const t=this[Uo("0xd")],e=t[Uo("0x8")][Uo("0x24")](Uo("0xe")),n=t.commands[Uo("0x24")](Uo("0x7")),r=t[Uo("0x11")][Uo("0x24")](Uo("0x19"));n&&r&&(e._enableDefaultAttributesIntegration(Uo("0x19")),e[Uo("0x9")]("copyFormat"),this[Uo("0x15")]())}[Uo("0x15")](){const t=this[Uo("0xd")],e=t[Uo("0x0")];t.plugins[Uo("0x24")]("TrackChangesEditing")[Uo("0x1f")][Uo("0x5")]((n=>{if("formatBlock"!=n[Uo("0x1c")]&&Uo("0x23")!=n[Uo("0x1c")])return;const{data:r}=n;if(r&&"pasteFormat"===r[Uo("0x20")]){const n=[],i=r[Uo("0x21")][0];for(const[e,r]of Object.entries(i))n[Uo("0x2")](Go(t,e,r));return n[Uo("0x1")]?{type:Uo("0x10"),content:Jr(e,Uo("0x22"),n.join(", "))}:{type:Uo("0x10"),content:Jr(e,Uo("0x12"))}}}))}}function Go(t,e,n){const r=t.locale.t,o=e[Uo("0xc")](/(?=[A-Z])/)[Uo("0x26")](" "),s=r(o[Uo("0x13")](0)[Uo("0x4")]()+o[Uo("0x1a")](1)).toLowerCase();if(Uo("0x18")==typeof n)return s;if(Uo("0x1e")===e||"fontBackgroundColor"===e){const e=(0,i.normalizeColorOptions)(t[Uo("0xf")][Uo("0x24")](Uo("0x3")))[Uo("0x1b")]((t=>t[Uo("0xb")]==n));return s+" ("+(e?r(e[Uo("0x16")])[Uo("0x14")]():n)+")"}if(Uo("0x6")===e&&isNaN(parseFloat(n))){const e=t[Uo("0x8")][Uo("0x24")](Uo("0x25"))[Uo("0x17")](t.config[Uo("0x24")]("fontSize.options"))[Uo("0x1b")]((t=>t.model==n));return s+" ("+(e?r(e[Uo("0xa")])[Uo("0x14")]():n)+")"}return s+" ("+n+")"}const Vo=["ELEMENT_HEADING_CUSTOM","heading.options","ELEMENT_HEADING","heading","plugins","model","format","title","view","TrackChangesEditing","*Change to:* %0","registerElementLabel","_enableDefaultAttributesIntegration","get","has","value","name","HeadingEditing","config","match","_descriptionFactory","commandName","_registerLegacyDescription","_headingOptions","afterInit","paragraph","_getHeadingLevel","locale","editor","find","type"];var Ho,zo;Ho=Vo,zo=103,function(t){for(;--t;)Ho.push(Ho.shift())}(++zo);const Wo=function(t,e){return Vo[t-=0]};class Ko extends t.Plugin{[Wo("0xe")](){const t=this[Wo("0x12")];if(!t[Wo("0x19")][Wo("0x4")](Wo("0x7")))return;this[Wo("0xd")]=t[Wo("0x8")][Wo("0x3")](Wo("0x16"));const e=t[Wo("0x11")],n=t[Wo("0x19")][Wo("0x3")](Wo("0x1e"));n[Wo("0x2")](Wo("0x18"));for(const t of this[Wo("0xd")])Wo("0xf")!=t[Wo("0x1a")]&&n._descriptionFactory[Wo("0x1")](t[Wo("0x1a")],(n=>{const r=this[Wo("0x10")](t[Wo("0x1a")]);return null!==r?(s=n,x=r,Jr(e,Wo("0x17"),[s,x])):(i=n,o=t[Wo("0x1c")],Jr(e,"ELEMENT_HEADING_CUSTOM",[i,o]));var i,o,s,x}));this[Wo("0xc")]()}[Wo("0xc")](){const t=this[Wo("0x12")],e=t[Wo("0x11")];t.plugins.get(Wo("0x1e"))[Wo("0xa")].registerDescriptionCallback((t=>{if("formatBlock"!=t[Wo("0x14")])return;const{data:n}=t;if(n&&Wo("0x18")==n[Wo("0xb")]){const t=n.commandParams[0][Wo("0x5")],s=this._getHeadingLevel(t);if(null!==s)return{type:Wo("0x1b"),content:Jr(e,Wo("0x0"),(1,o=s,Jr(e,"ELEMENT_HEADING",[1,o])))};const x=this._headingOptions[Wo("0x13")]((e=>e[Wo("0x1a")]===t)).title;return{type:Wo("0x1b"),content:Jr(e,Wo("0x0"),(r=1,i=x,Jr(e,Wo("0x15"),[r,i])))}}var r,i,o}))}_getHeadingLevel(t){var e,n;const r=t[Wo("0x9")](/^heading(\d+)/);if(r)return r[1];const i=null===(e=this[Wo("0xd")])||void 0===e?void 0:e[Wo("0x13")]((e=>e[Wo("0x1a")]==t));if(i&&i[Wo("0x1d")]){const t=i[Wo("0x1d")],e=(null!==(n=t[Wo("0x6")])&&void 0!==n?n:t)[Wo("0x9")](/^h(\d+)/);if(e)return e[1]}return null}}const qo=["color","registerDescriptionCallback","editor","HighlightEditing","toLowerCase","format","_registerLegacyDescription","highlight","commandName","plugins","*Set highlight:* %0","registerAttributeLabel","get","type","highlight.options","title","config","has","FORMAT_HIGHLIGHT","model","_descriptionFactory","value","TrackChangesEditing","formatInline","commandParams","afterInit"];var Xo,$o;Xo=qo,$o=411,function(t){for(;--t;)Xo.push(Xo.shift())}(++$o);const Zo=function(t,e){return qo[t-=0]};class Yo extends t.Plugin{[Zo("0x4")](){const t=this[Zo("0x7")];if(!t[Zo("0xe")][Zo("0x16")](Zo("0x8")))return;const e=t[Zo("0xe")][Zo("0x11")](Zo("0x1")),n=t.locale;e._enableDefaultAttributesIntegration(Zo("0xc"),[Zo("0xc")]),e._descriptionFactory[Zo("0x10")](Zo("0xc"),Jr(n,Zo("0x17"))),this[Zo("0xb")]()}[Zo("0xb")](){const t=this[Zo("0x7")],e=t.locale;t[Zo("0xe")].get("TrackChangesEditing")[Zo("0x19")][Zo("0x6")]((n=>{if(Zo("0x2")!=n[Zo("0x12")])return;const{data:r}=n;if(r&&Zo("0xc")==r[Zo("0xd")]){const n=e.t,i=r[Zo("0x3")][0][Zo("0x0")];if(i){const r=t[Zo("0x15")].get(Zo("0x13")).find((t=>t[Zo("0x18")]==i)),o=n(r[Zo("0x14")])[Zo("0x9")]();return{type:Zo("0xa"),content:Jr(e,Zo("0xf"),o),color:{value:r[Zo("0x5")],title:r[Zo("0x14")]}}}return{type:"format",content:Jr(e,"*Remove highlight*",Jr(e,Zo("0x17")))}}}))}}const Jo=["editor","high","enableCommand","createPositionAt","plugins","horizontalLine","registerElementLabel","afterInit","for","_descriptionFactory","elementToStructure","get","TrackChangesEditing","has","ck-horizontal-line","dataDowncast","createContainerElement"];var Qo,ts;Qo=Jo,ts=403,function(t){for(;--t;)Qo.push(Qo.shift())}(++ts);const es=function(t,e){return Jo[t-=0]};class ns extends t.Plugin{[es("0xc")](){const t=this[es("0x5")];if(!t.plugins[es("0x1")]("HorizontalLineEditing"))return;t.plugins[es("0x10")](es("0x0"))[es("0x7")](es("0xa"));const e=t[es("0x9")].get(es("0x0")),n=t.locale;e[es("0xe")][es("0xb")](es("0xa"),(t=>Jr(n,"ELEMENT_HORIZONTAL_LINE",t))),t.conversion[es("0xd")](es("0x3"))[es("0xf")]({model:es("0xa"),view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return null;const r=e[es("0x4")]("div"),i=e.createEmptyElement("hr");return e.addClass(es("0x2"),r),e.insert(e[es("0x8")](r,0),i),r},converterPriority:es("0x6")})}}const rs=["afterInit","_descriptionFactory","editor","*Change %0 content*","_registerLegacyDescription","TrackChangesEditing","getFirstRange","ELEMENT_HTML_EMBED","plugins","registerDescriptionCallback","rawHtml","htmlEmbed","element","locale","nodeAfter","attribute","formatBlock","registerElementLabel","HtmlEmbed","key","value","format","has","type"];var is,os;is=rs,os=384,function(t){for(;--t;)is.push(is.shift())}(++os);const ss=function(t,e){return rs[t-=0]};class xs extends t.Plugin{[ss("0x0")](){const t=this[ss("0x2")];if(!t.plugins[ss("0x16")](ss("0x12")))return;const e=t[ss("0x8")].get("TrackChangesEditing"),n=t[ss("0xd")];e[ss("0x1")][ss("0x11")](ss("0xa"),(t=>Jr(n,ss("0x7"),t))),e._enableDefaultAttributesIntegration(ss("0xb"),[],["value"]),e._descriptionFactory[ss("0x9")]((t=>{if(ss("0xf")!=t[ss("0x17")])return;const{data:e}=t;if(e&&ss("0x14")==e[ss("0x13")]&&t[ss("0x6")]().start[ss("0xe")].is(ss("0xc"),"rawHtml")){const t=Jr(n,ss("0x7"));return{type:ss("0x15"),content:Jr(n,ss("0x3"),t)}}})),this[ss("0x4")]()}[ss("0x4")](){const t=this[ss("0x2")],e=t[ss("0xd")];t[ss("0x8")].get(ss("0x5"))[ss("0x1")][ss("0x9")]((t=>{if(ss("0x10")!=t[ss("0x17")])return;const{data:n}=t;if(n&&ss("0xb")==n.commandName){const t=Jr(e,"ELEMENT_HTML_EMBED");return{type:ss("0x15"),content:Jr(e,"*Change %0 content*",t)}}}))}}const as=["caption","ImageTextAlternativeEditing","get","chain","imageInline","ImageUploadEditing","document","markBlockFormat","uploadImage","getFirstRange","nodeBefore","join","type","forceDefaultExecution","backward","attribute","*Remove image text alternative*","accept","ELEMENT_CAPTION","registerAttributeLabel","enableCommand","nodeAfter","has","ImageBlockEditing","registerDescriptionCallback","newValue","subType","commandName","editor","alt","insertion","plugins","isCollapsed","end","commandParams","getSuggestionCallback","toggleImageCaption","imageStylePreApply","imageCaption","imageTextAlternative","findIndex","width","isBefore","markDeletion","formatBlock","convertBlockImageToInline","imageTypeInline","format","TrackChangesEditing","getNearestSelectionRange","start","_enableDefaultAttributesIntegration","ELEMENT_INLINE_IMAGE","find","resizeImage","*Reset image width*","convertInlineImageToBlock","isIntersecting","filter","_registerLegacyDescription","isBlockImage","imageBlock","selection","ImageCaptionEditing","*Set image width:* %0","discard","change","fromPosition","_suggestionFactory","locale","isEqual","toNext","ELEMENT_IMAGE","removeObject","registerElementLabel","createRangeOn","previous","afterInit","resizedWidth","createRange","deletion","element","length","registerCustomCallback","*Set image text alternative:* %0","model","Block image to inline image","getClosestSelectedImageElement","ImageEditing","imageTypeBlock","ImageUtils","_descriptionFactory","markInsertion"];var cs,ls;cs=as,ls=181,function(t){for(;--t;)cs.push(cs.shift())}(++ls);const us=function(t,e){return as[t-=0]};class ds extends t.Plugin{[us("0x52")](){const t=this.editor;if(!t[us("0x24")][us("0x1b")](us("0x0")))return;const e=t[us("0x24")][us("0x7")](us("0x35")),n=t.plugins.get(us("0x2")),r=t.locale;e[us("0x19")]("insertImage"),e[us("0x3")][us("0x4f")](us("0x42"),(t=>Jr(r,us("0x4d"),t))),e[us("0x3")].registerElementLabel(us("0x9"),(t=>Jr(r,us("0x39"),t))),e[us("0x3")][us("0x4f")](us("0x5"),(()=>Jr(r,us("0x17")))),t.plugins.has(us("0xa"))&&e[us("0x19")](us("0xd")),t.plugins[us("0x1b")](us("0x1c"))&&t[us("0x24")].has("ImageInlineEditing")&&(e[us("0x19")]("imageTypeInline",((r,i)=>{const o=n.getClosestSelectedImageElement(t[us("0x5a")].document[us("0x43")]);t[us("0x5a")][us("0x47")]((()=>{e[us("0xc")](o,{commandName:us("0x33"),commandParams:[i]},[],us("0x32"))}))})),e[us("0x19")](us("0x1"),((r,i)=>{t[us("0x5a")][us("0x47")]((o=>{let x=n[us("0x5c")](t[us("0x5a")][us("0xb")].selection),a=o[us("0x50")](x);const c=s.LivePosition[us("0x48")](a.start,"toPrevious"),l=s.LivePosition.fromPosition(a.end,us("0x4c"));e[us("0x12")]((()=>r(i))),x=n[us("0x5c")](t[us("0x5a")][us("0xb")].selection),a=o.createRangeOn(x);const u=o[us("0x54")](c,l);c.detach(),l.detach(),e[us("0xc")](x,{commandName:us("0x33"),commandParams:[i]},[],"convertInlineImageToBlock"),u.start.isBefore(a[us("0x37")])&&e.markInsertion(o[us("0x54")](u[us("0x37")],a[us("0x37")]),us("0x3d")),a[us("0x26")].isBefore(u[us("0x26")])&&e[us("0x4")](o[us("0x54")](a.end,u[us("0x26")]),us("0x3d"))}))})),e[us("0x49")][us("0x58")]("formatBlock",us("0x3d"),us("0x10"),(()=>!1)),e._suggestionFactory[us("0x58")]("formatBlock",us("0x3d"),"accept",(()=>!1)),e[us("0x49")][us("0x58")]("formatBlock",us("0x3d"),us("0x46"),e[us("0x49")][us("0x28")]("formatBlock","",us("0x16"))),e[us("0x49")][us("0x58")](us("0x23"),us("0x3d"),us("0x10"),(()=>!1)),e[us("0x49")][us("0x58")](us("0x23"),us("0x3d"),"discard",(([n])=>{const r=e._suggestionFactory[us("0x28")](us("0x23"),"",us("0x46"));let i=n.start,o=n[us("0x26")];const s=t[us("0x5a")].schema[us("0x36")](i,us("0x13")),x=t[us("0x5a")].schema[us("0x36")](o,"forward");s[us("0x25")]&&(i=s[us("0x37")]),x.isCollapsed&&(o=x[us("0x26")]),r([t.model[us("0x54")](i,o)])})),e[us("0x49")][us("0x58")]("formatBlock","convertInlineImageToBlock",us("0x8"),x),e[us("0x49")][us("0x58")](us("0x23"),us("0x3d"),us("0x8"),x)),t[us("0x24")].has(us("0x44"))&&(e[us("0x19")](us("0x29"),((r,i)=>{const o=t[us("0x24")][us("0x7")]("ImageCaptionUtils");let s=n[us("0x5c")](t[us("0x5a")].document[us("0x43")]),x=o.getCaptionFromImageModelElement(s);t.model[us("0x47")]((()=>{if(x)return void e[us("0x30")](t[us("0x5a")][us("0x50")](x));const a=n[us("0x41")](s);r(i),s=n[us("0x5c")](t.model[us("0xb")][us("0x43")]),x=o.getCaptionFromImageModelElement(s),e[us("0x4")](t.model.createRangeOn(x),a?null:us("0x2b"))}))})),e[us("0x49")][us("0x58")](us("0x23"),"imageCaption","chain",x));const i=[{type:us("0x31"),subType:us("0x2a")},{type:"insertion",subType:us("0x2b")},{type:us("0x31"),subType:us("0x3d")},{type:us("0x23"),subType:us("0x3d")}];function o(t,r){const o=i.findIndex((({type:e,subType:n})=>t.type==e&&t.subType==n)),s=i[us("0x2d")]((({type:t,subType:e})=>r[us("0x11")]==t&&r[us("0x1f")]==e));if(o<0||s<0)return!1;const x=t.getFirstRange(),a=r[us("0xe")]();if((0==o||1==o)&&2==s&&x[us("0x3e")](a))return!0;if(2==o&&3==s){const t=e._findSuggestions(x,us("0x23"))[us("0x3f")]((({suggestion:t,meta:e})=>e.isOwn&&us("0x3d")==t[us("0x1f")]));if(t[us("0x57")]>1&&a.end.isEqual(x[us("0x37")]))return!0;if(1==t[us("0x57")]&&(x[us("0x37")][us("0x4b")](a[us("0x26")])||x[us("0x26")][us("0x4b")](a.start)))return!0}if(3==o&&3==s&&x[us("0x37")][us("0x2f")](a[us("0x37")])){const t=x.end[us("0x1a")],e=a[us("0x37")][us("0xf")];return n[us("0x41")](t)&&t===e}return!1}function x(t,e){return o(t,e)?[t,e]:o(e,t)?[e,t]:null}t[us("0x24")][us("0x1b")]("ImageResize")&&(e._enableDefaultAttributesIntegration(us("0x3b"),[],[us("0x53")]),e[us("0x3")][us("0x18")](us("0x53"),Jr(r,"FORMAT_IMAGE_SIZE"))),t[us("0x24")][us("0x1b")](us("0x6"))&&e[us("0x38")](us("0x2c"),[],[us("0x22")]),e[us("0x3")][us("0x1d")]((t=>{if(i[us("0x3a")]((({type:e,subType:n})=>t.type==e&&t.subType==n)))return t[us("0x51")]?{}:void 0})),e[us("0x3")][us("0x1d")]((t=>{if(us("0x23")==t[us("0x11")]||us("0x55")==t.type){const e=t.getContainedElement();if(e&&e.is(us("0x56"),us("0x5")))return{type:us("0x23")==t.type?"addObject":us("0x4e"),element:e,quantity:1}}})),e[us("0x3")].registerDescriptionCallback((t=>"formatBlock"==t[us("0x11")]&&us("0x3d")==t[us("0x1f")]?{type:us("0x34"),content:"Inline image to block image"}:us("0x31")==t[us("0x11")]&&"convertBlockImageToInline"==t.subType?{type:us("0x34"),content:us("0x5b")}:void 0)),e[us("0x3")].registerDescriptionCallback((t=>{if(us("0x14")!=t[us("0x11")])return;const{data:e}=t;if(!e||us("0x22")!=e.key)return;const n=e.newValue;return n?{type:"format",content:Jr(r,"*Set image text alternative:* %0",'"'+n+'"')}:{type:us("0x34"),content:Jr(r,us("0x15"))}})),this[us("0x40")]()}[us("0x40")](){const t=this[us("0x21")],e=t[us("0x4a")];t[us("0x24")][us("0x7")](us("0x35"))[us("0x3")][us("0x1d")]((t=>{if("formatBlock"!=t[us("0x11")]&&"formatInline"!=t[us("0x11")])return;const{data:n}=t;if(n){if("imageTextAlternative"==n[us("0x20")]){const t=n[us("0x27")][0][us("0x1e")];return t?{type:us("0x34"),content:Jr(e,us("0x59"),'"'+t+'"')}:{type:"format",content:Jr(e,us("0x15"))}}if(us("0x3b")==n.commandName){const t=n.commandParams[0][us("0x2e")];return t?{type:"format",content:Jr(e,us("0x45"),t)}:{type:"format",content:Jr(e,us("0x3c"))}}}}))}}const gs=["getSuggestionCallback","afterInit","has","discard","type","formatBlock","formatInline","ImageEditing","*Replace image URL*","_registerLegacyDescription","accept","registerDescriptionCallback","src","replaceImageSource","plugins","oldValue","key","editor","TrackChangesEditing","_descriptionFactory","_suggestionFactory","_enableDefaultAttributesIntegration","_handleLegacySuggestions","*Format:* replace image URL","locale","get","format","registerCustomCallback"];var fs,hs;fs=gs,hs=277,function(t){for(;--t;)fs.push(fs.shift())}(++hs);const ms=function(t,e){return gs[t-=0]};class ps extends t.Plugin{[ms("0x4")](){if(!this[ms("0x14")][ms("0x11")][ms("0x5")](ms("0xa")))return;const t=this[ms("0x14")][ms("0x1b")],e=this.editor[ms("0x11")][ms("0x0")](ms("0x15"));e[ms("0x18")](ms("0x10"),[],[ms("0xf")]),e[ms("0x16")][ms("0xe")]((e=>{if("attribute"!=e[ms("0x7")])return;const{data:n}=e;return n&&ms("0xf")==n[ms("0x13")]?n.newValue&&n[ms("0x12")]?{type:"format",content:Jr(t,ms("0xb"))}:{type:ms("0x1"),content:""}:void 0})),this[ms("0x19")]()}_handleLegacySuggestions(){const t=this[ms("0x14")][ms("0x11")].get(ms("0x15"));t[ms("0x17")][ms("0x2")](ms("0x8"),ms("0x10"),ms("0xd"),t._suggestionFactory.getSuggestionCallback(ms("0x8"),null,ms("0x6"))),t._suggestionFactory[ms("0x2")](ms("0x8"),"replaceImageSource","discard",t[ms("0x17")][ms("0x3")]("formatBlock",null,ms("0xd"))),this._registerLegacyDescription()}[ms("0xc")](){const t=this[ms("0x14")],e=t[ms("0x1b")];t[ms("0x11")][ms("0x0")](ms("0x15"))[ms("0x16")][ms("0xe")]((t=>{if(ms("0x8")!=t[ms("0x7")]&&ms("0x9")!=t[ms("0x7")])return;const{data:n}=t;return n&&ms("0x10")==n.commandName?{type:ms("0x1"),content:Jr(e,ms("0x1a"))}:void 0}))}}const bs=["commands","imageTypeBlock","suggestion","registerPostFixer","imageStyle","imageStylePostApply","afterInit","name","refresh","imageTypeInline","get","join","plugins","getContainedElement","findIndex","isBlockImage","model","convertInlineImageToBlock","length","getFirstRange","isOwn","registerDescriptionCallback","author","isInlineImage","value","newRange","FORMAT_SIDE_IMAGE","document","getClosestSelectedImageElement","isInContent","filter","nodeBefore","next","TrackChangesEditing","formatInline","markBlockFormat","_descriptionFactory","registerCustomCallback","_registerLegacyDescription","commandReversedParams","getSuggestions","editor","discard","commandName","isBefore","title","chain","imageStylePreApply","selection","discardSuggestion","getSuggestionCallback","getSuggestion","imageCaption","change","commandParams","accept","locale","setImageNaturalSizeAttributes","formatBlock","side","_suggestionFactory","shouldConvertImageType","nodeAfter","enableCommand","markInlineFormat","type","ImageUtils","start","_findSuggestions","differ","subType","*Format:* %0","isEqual","isIntersecting","insertion","end","ImageStyleEditing"];var Es,_s;Es=bs,_s=487,function(t){for(;--t;)Es.push(Es.shift())}(++_s);const Ts=function(t,e){return bs[t-=0]};class ys extends t.Plugin{[Ts("0x3a")](){const t=this[Ts("0x10")];if(!t.plugins.has(Ts("0x33")))return;const n=t[Ts("0x40")][Ts("0x3e")](Ts("0x8")),r=t[Ts("0x40")].get(Ts("0x29")),i={};n[Ts("0x26")](Ts("0x38"),((i,o)=>{const s=t.plugins[Ts("0x3e")]("Users").me,x=t.commands[Ts("0x3e")](Ts("0x38"));let a=r[Ts("0x3")](t[Ts("0x44")][Ts("0x2")][Ts("0x17")]),c=t[Ts("0x44")].createRangeOn(a),l=x[Ts("0x4c")];if(l==o[Ts("0x4c")])return;const u={commandName:Ts("0x38"),commandParams:[o],formatGroupId:(0,e.uid)()};t[Ts("0x44")][Ts("0x1c")]((()=>{if(n[Ts("0xf")]()[Ts("0x5")]((t=>t[Ts("0x4")]&&s==t[Ts("0x4a")]&&(Ts("0x21")==t[Ts("0x28")]||"formatInline"==t[Ts("0x28")])&&("imageStylePreApply"==t[Ts("0x2d")]||Ts("0x39")==t[Ts("0x2d")])&&t[Ts("0x47")]()[Ts("0x2f")](c))).forEach((t=>n.discardSuggestion(t.head))),a=r[Ts("0x3")](t[Ts("0x44")].document.selection),c=t[Ts("0x44")].createRangeOn(a),x[Ts("0x3c")](),t[Ts("0x34")][Ts("0x3e")](Ts("0x3d")).refresh(),t.commands[Ts("0x3e")](Ts("0x35"))[Ts("0x3c")](),l=x[Ts("0x4c")],l!=o.value)return r[Ts("0x4b")](a)&&x[Ts("0x24")](o[Ts("0x4c")],a)?(i({...o,setImageSizes:!1}),a=r[Ts("0x3")](t[Ts("0x44")].document.selection),void n[Ts("0xa")](a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],"imageStylePreApply")):void(r[Ts("0x43")](a)?n[Ts("0xa")](a,u,[],Ts("0x39")):n[Ts("0x27")](c,u,Ts("0x39")))}))}));for(const e of t[Ts("0x40")][Ts("0x3e")](Ts("0x33")).normalizedStyles)i[e[Ts("0x3b")]]=e[Ts("0x14")].toLowerCase();n._suggestionFactory.registerCustomCallback(Ts("0x21"),Ts("0x16"),"join",(()=>!1)),n[Ts("0x23")].registerCustomCallback("formatBlock","imageStylePostApply",Ts("0x3f"),(()=>!1)),n[Ts("0x23")][Ts("0xc")]("formatInline","imageStylePostApply",Ts("0x3f"),(()=>!1)),n[Ts("0x23")][Ts("0xc")]("formatBlock","imageStylePreApply",Ts("0x1e"),(([t])=>{r[Ts("0x20")](t[Ts("0x41")]())})),n[Ts("0x23")][Ts("0xc")](Ts("0x21"),Ts("0x16"),Ts("0x11"),((t,e)=>{n._suggestionFactory[Ts("0x19")](Ts("0x21"),"",Ts("0x1e"))(t,{commandName:e[Ts("0x12")],commandParams:e[Ts("0xe")]})})),n._suggestionFactory[Ts("0xc")]("formatBlock","imageStylePreApply",Ts("0x15"),(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const o=[{type:Ts("0x21"),subType:Ts("0x16")},{type:"insertion",subType:"imageCaption"},{type:"formatBlock",subType:Ts("0x45")},{type:Ts("0x31"),subType:Ts("0x45")}];function s(t,e){const i=o[Ts("0x42")]((({type:e,subType:n})=>t[Ts("0x28")]==e&&t[Ts("0x2d")]==n)),s=o.findIndex((({type:t,subType:n})=>e[Ts("0x28")]==t&&e.subType==n));if(i<0||s<0)return!1;const x=t.getFirstRange(),a=e[Ts("0x47")]();if((0==i||1==i)&&2==s&&x[Ts("0x30")](a))return!0;if(2==i&&3==s){const t=n[Ts("0x2b")](x,"insertion").filter((({suggestion:t,meta:e})=>e[Ts("0x48")]&&Ts("0x45")==t[Ts("0x2d")]));if(t[Ts("0x46")]>1&&a.end.isEqual(x[Ts("0x2a")]))return!0;if(1==t.length&&(x[Ts("0x2a")][Ts("0x2f")](a[Ts("0x32")])||x[Ts("0x32")][Ts("0x2f")](a.start)))return!0}if(3==i&&3==s&&x.start[Ts("0x13")](a[Ts("0x2a")])){const t=x[Ts("0x32")][Ts("0x25")],e=a[Ts("0x2a")][Ts("0x6")];return r.isBlockImage(t)&&t===e}return!1}t[Ts("0x44")][Ts("0x2")][Ts("0x37")]((()=>{let e=!1;const i=Array.from(t[Ts("0x44")][Ts("0x2")][Ts("0x2c")].getChangedMarkers());for(const{name:t,data:o}of i){const{group:i,type:s,subType:x,id:a}=n._splitMarkerName(t);if(Ts("0x36")==i&&n.hasSuggestion(a)){if("formatBlock"==s&&(Ts("0x16")==x||"imageStylePostApply"==x)){const t=n[Ts("0x1a")](a);if(o[Ts("0x0")]){const i=t[Ts("0x47")]()[Ts("0x41")]();if(r.isBlockImage(i))continue;n[Ts("0x18")](t),e=!0}}if(Ts("0x31")==s&&Ts("0x1b")==x&&!o[Ts("0x0")]){const t=n[Ts("0x1a")](a);t.next&&t[Ts("0x7")].isInContent&&(n[Ts("0x18")](t.next),e=!0)}}}return e})),this[Ts("0xd")](i)}[Ts("0xd")](t){const e=this[Ts("0x10")],n=e[Ts("0x1f")];e[Ts("0x40")].get(Ts("0x8"))[Ts("0xb")][Ts("0x49")]((e=>{if("formatBlock"!=e[Ts("0x28")]&&Ts("0x9")!=e[Ts("0x28")])return;const{data:r}=e;if(!r||Ts("0x38")!=r[Ts("0x12")])return;const i=r[Ts("0x1d")][0][Ts("0x4c")];return o=Ts("0x22")===i?Jr(n,Ts("0x1")):t[i]||i,{type:"format",content:Jr(n,Ts("0x2e"),o)};var o}))}}const Cs=["value","track_changes","lowest","plugins","listenTo","Users","get","dataInsert","execute","commands","_trackChangesExecuted","_trackChangesValueDuringImport","trackChanges","enableCommand","importWord","afterInit","TrackChangesEditing","collaboration_features","editor","_handleImportedData","high"];var As,ks;As=Cs,ks=415,function(t){for(;--t;)As.push(As.shift())}(++ks);const Is=function(t,e){return Cs[t-=0]};class Rs extends t.Plugin{constructor(t){super(t),this[Is("0x10")]=!1,this._trackChangesExecuted=!1}[Is("0x14")](){const t=this[Is("0x2")],e=t[Is("0xe")].get(Is("0x13")),n=t[Is("0xe")][Is("0xb")](Is("0x11"));e&&(e.on("execute",((t,[,e])=>{this[Is("0x10")]=n[Is("0x5")],e[Is("0x1")][Is("0x6")]=!this[Is("0x10")]}),{priority:Is("0x4")}),this[Is("0x9")](e,"dataInsert",this._handleImportedData.bind(this)),this[Is("0x9")](e,Is("0xc"),(()=>{this[Is("0xf")]&&(n[Is("0xd")](),this[Is("0xf")]=!1)}),{priority:Is("0x7")}),t.plugins[Is("0xb")](Is("0x0"))[Is("0x12")](Is("0x13")))}[Is("0x3")](t,e){const{suggestions:n}=e,r=this[Is("0x2")].commands[Is("0xb")](Is("0x11")),i=r[Is("0x5")];this[Is("0x10")]!==i&&(r[Is("0xd")](),this[Is("0xf")]=!0),n&&n.forEach((({id:t,type:e,author:n,created_at:r})=>{const i={id:t,type:e,authorId:this[Is("0x2")][Is("0x8")].get(Is("0xa")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:r?new Date(r):new Date,source:"importWord"}}};this[Is("0x2")][Is("0x8")].get(Is("0x0"))._setSuggestionData(i)}))}}const Ss=["formatBlock","_registerBlockAttribute","editor","plugins","indent","registerDescriptionCallback","_enableDefaultAttributesIntegration","getItemLabel","outdent","_descriptionFactory","outdentBlock","indentBlock","locale","commandName","type","getItems","FORMAT_INDENT","get","has","TrackChangesEditing","format","IndentEditing","IndentBlock","*Indent:* %0","enableCommand","registerAttributeLabel","*Outdent:* %0","_registerLegacyDescription","blockIndent"];var vs,Ns;vs=Ss,Ns=463,function(t){for(;--t;)vs.push(vs.shift())}(++Ns);const Ls=function(t,e){return Ss[t-=0]};class Ms extends t.Plugin{afterInit(){const t=this[Ls("0x3")],e=t[Ls("0x4")][Ls("0x12")]("TrackChangesEditing");if(t.plugins[Ls("0x13")](Ls("0x16"))&&(e[Ls("0x19")](Ls("0x5")),e.enableCommand(Ls("0x9"))),t[Ls("0x4")][Ls("0x13")](Ls("0x17")))for(const t of[Ls("0xc"),"outdentBlock"])e[Ls("0x7")](t);const n=t.locale;e[Ls("0x2")]("blockIndent"),e[Ls("0xa")][Ls("0x1a")](Ls("0x0"),Jr(n,Ls("0x11"))),this[Ls("0x1c")]()}_registerLegacyDescription(){const t=this.editor,e=t[Ls("0xd")],n=t.plugins.get(Ls("0x14"));n[Ls("0xa")][Ls("0x6")]((t=>{if(Ls("0x1")!=t[Ls("0xf")])return;const{data:r}=t;if(!r)return;if(Ls("0xc")!=r[Ls("0xe")]&&Ls("0xb")!=r[Ls("0xe")])return;const i=t[Ls("0x10")]()[0],o=n._descriptionFactory[Ls("0x8")](i);return Ls("0xc")==r[Ls("0xe")]?{type:Ls("0x15"),content:Jr(e,Ls("0x18"),o)}:Ls("0xb")==r[Ls("0xe")]?{type:Ls("0x15"),content:Jr(e,Ls("0x1b"),o)}:void 0}))}}var ws,Os,Fs=["init","editor","plugins","input","enableCommand","get"];ws=Fs,Os=407,function(t){for(;--t;)ws.push(ws.shift())}(++Os);var Ds=function(t,e){return Fs[t-=0]};class Ps extends t.Plugin{static get requires(){return[qi.Input]}[Ds("0x1")](){this[Ds("0x2")][Ds("0x3")][Ds("0x0")]("TrackChangesEditing")[Ds("0x5")](Ds("0x4"))}}const Bs=["type","commandName","_registerLegacyDescription","_enableDefaultAttributesIntegration","*Set link:* %0","TrackChangesEditing","commandParams","newValue","plugins","map","afterInit","format","link","label","commands","has","linkHref","get","key","unlink","LinkEditing","*Remove link*","registerAttributeLabel","_descriptionFactory","link (","attribute","locale"];var Us,js;Us=Bs,js=108,function(t){for(;--t;)Us.push(Us.shift())}(++js);const Gs=function(t,e){return Bs[t-=0]};class Vs extends t.Plugin{[Gs("0xa")](){const t=this.editor;if(!t[Gs("0x8")][Gs("0xf")](Gs("0x14")))return;const e=t.plugins[Gs("0x11")](Gs("0x5")),n=t[Gs("0xe")].get(Gs("0xc"));e[Gs("0x3")]("link",[Gs("0x10"),...n.manualDecorators[Gs("0x9")]((t=>t.id))]),e[Gs("0x3")](Gs("0x13"));for(const t of n.manualDecorators)e[Gs("0x17")][Gs("0x16")](t.id,Gs("0x18")+t[Gs("0xd")].toLowerCase()+")");e[Gs("0x17")].registerDescriptionCallback((e=>{if(Gs("0x19")!=e[Gs("0x0")])return;const{data:n}=e;if(!n||"linkHref"!=n[Gs("0x12")])return;const r=n[Gs("0x7")],i=t[Gs("0x1a")];return{type:Gs("0xb"),content:null==r?Jr(i,Gs("0x15")):Jr(i,Gs("0x4"),'"'+r+'"')}})),this[Gs("0x2")]()}_registerLegacyDescription(){const t=this.editor,e=t.locale;t.plugins[Gs("0x11")](Gs("0x5"))._descriptionFactory.registerDescriptionCallback((t=>{if("formatInline"!=t.type)return;const{data:n}=t;if(n){if(Gs("0xc")==n[Gs("0x1")]){const t=n[Gs("0x6")][0];return{type:Gs("0xb"),content:Jr(e,Gs("0x4"),'"'+t+'"')}}return"unlink"==n.commandName?{type:Gs("0xb"),content:Jr(e,"*Remove link*")}:void 0}}))}}const Hs=["type","afterInit","registerElementLabel","createPositionAt","model","bulletedList","filter","editor","replace","listIndent","change","markBlockFormat","bulleted","format","todoListChecked","List","parent","get","listItem","numberedList","commandParams","ELEMENT_LIST_ITEM","push","commandName","value","document","createRange","enableCommand","_descriptionFactory","selection","*Check item*","LegacyTodoListEditing","ELEMENT_NUMBERED_LIST","ELEMENT_TODO_LIST","execute","checkTodoList","formatInline","registerDescriptionCallback","numbered","plugins","forceValue","*Change to:* %0","_selectedElements","has","indentList","ELEMENT_BULLETED_LIST","nextSibling","length","getAttribute","getSelectedBlocks","outdentList","element","todoList","isObject","name","formatBlock","checkChild","todo","paragraph","TrackChangesEditing","*Indent:* %0","from","blockName","add","LegacyListEditing","*Uncheck item*","before","findIndex","locale","previousSibling","slice"];var zs,Ws;zs=Hs,Ws=143,function(t){for(;--t;)zs.push(zs.shift())}(++Ws);const Ks=function(t,e){return Hs[t-=0]};class qs extends t.Plugin{[Ks("0x0")](){const t=this[Ks("0x6")],e=t[Ks("0x43")];if(!t[Ks("0x26")].has(Ks("0x3f")))return;const n=t[Ks("0x26")].get(Ks("0x3a")),r=t.plugins[Ks("0x2a")](Ks("0x1e"));function i(e){return()=>{const r=t[Ks("0x3")][Ks("0x18")][Ks("0x1c")],i=t.commands.get(e);if(i[Ks("0x17")])return void t[Ks("0x21")](Ks("0x39"),{});const o=e.slice(0,-4),s=function(t,e,n){let r=Array[Ks("0x3c")](t)[Ks("0x5")]((t=>{return e=t,(r=n)[Ks("0x37")](e[Ks("0xf")],Ks("0x11"))&&!r[Ks("0x34")](e);var e,r}));r=r[Ks("0x5")]((t=>!t.is(Ks("0x32"),Ks("0x11"))||t[Ks("0x2f")]("listType")!=e));const i=new Set;for(const t of r)t.is(Ks("0x32"),Ks("0x11"))?i.add(Xs(t)):i[Ks("0x3e")](t);return Array[Ks("0x3c")](i)}(r[Ks("0x30")](),o,t[Ks("0x3")].schema);t[Ks("0x3")][Ks("0x9")]((()=>{for(const t of s)n[Ks("0xa")](t,{commandName:e,commandParams:[{forceValue:!i.value}],formatGroupId:Ks("0x3d")},$s(t))}))}}function o(e){return()=>{const r=function(t){let e=Array[Ks("0x3c")](t);const n=e[Ks("0x42")]((t=>"listItem"!=t[Ks("0x35")]));return n>-1&&(e=e[Ks("0x45")](0,n)),e}(t[Ks("0x3")][Ks("0x18")][Ks("0x1c")].getSelectedBlocks()),i=t.model[Ks("0x19")](t.model[Ks("0x2")](r[0],Ks("0x41")),t[Ks("0x3")][Ks("0x2")](r[r[Ks("0x2e")]-1],"end"));t[Ks("0x3")][Ks("0x9")]((()=>{n[Ks("0xa")](i,{commandName:e,commandParams:[],formatGroupId:Ks("0x8")},function(t){const e=new Set;for(const n of t){let t=n[Ks("0x2d")];for(;t&&t[Ks("0x2f")](Ks("0x8"))>n.getAttribute("listIndent");)e[Ks("0x3e")](t),t=t.nextSibling}return Array.from(e)}(r))}))}}n.enableCommand(Ks("0x12"),i("numberedList")),n[Ks("0x1a")](Ks("0x4"),i(Ks("0x4"))),r&&n[Ks("0x1a")](Ks("0x33"),i("todoList")),n[Ks("0x1a")]("indentList",o(Ks("0x2b"))),n[Ks("0x1a")](Ks("0x31"),o("outdentList")),r&&n[Ks("0x1a")]("checkTodoList",(()=>{const e=t.commands[Ks("0x10")](Ks("0x22")),r=Array[Ks("0x3c")](e[Ks("0x29")]);r[Ks("0x5")]((t=>t[Ks("0x2f")](Ks("0xd"))!=e[Ks("0x17")])),t.model[Ks("0x9")]((()=>{for(const t of r)n[Ks("0xa")](t,{commandName:Ks("0x22"),commandParams:[{forceValue:!e[Ks("0x17")]}]})}))})),n[Ks("0x1b")][Ks("0x1")](Ks("0x11"),(t=>Jr(e,Ks("0x14"),t))),n[Ks("0x1b")][Ks("0x24")]((t=>{if(Ks("0x36")!=t[Ks("0x46")]&&Ks("0x23")!=t[Ks("0x46")])return;const{data:n}=t;if(n){if(Ks("0x12")==n[Ks("0x16")]||Ks("0x4")==n[Ks("0x16")]||Ks("0x33")==n[Ks("0x16")])switch(n[Ks("0x16")][Ks("0x7")](Ks("0xe"),"")){case Ks("0xb"):return r(Jr(e,Ks("0x2c")));case Ks("0x25"):return r(Jr(e,Ks("0x1f")));case Ks("0x38"):return r(Jr(e,Ks("0x20")))}if(Ks("0x2b")==n.commandName)return{type:Ks("0xc"),content:Jr(e,Ks("0x3b"),Jr(e,Ks("0x14")))};if(Ks("0x31")==n[Ks("0x16")])return{type:Ks("0xc"),content:Jr(e,"*Outdent:* %0",Jr(e,Ks("0x14")))};if(Ks("0x22")==n[Ks("0x16")])return n[Ks("0x13")][0][Ks("0x27")]?{type:"format",content:Jr(e,Ks("0x1d"))}:{type:Ks("0xc"),content:Jr(e,Ks("0x40"))}}function r(t){return{type:"format",content:Jr(e,Ks("0x28"),t)}}}))}}function Xs(t){const e=t[Ks("0x2f")](Ks("0x8"));if(0==e)return t;let n=t;for(;t[Ks("0x44")]&&t[Ks("0x44")].is(Ks("0x32"),Ks("0x11"));){const r=t[Ks("0x44")][Ks("0x2f")]("listIndent");if(r==e)n=t[Ks("0x44")];else if(r<e)break;t=t.previousSibling}return n}function $s(t){const e=[];if(t.is(Ks("0x32"),Ks("0x11"))&&t.getAttribute(Ks("0x8"))>0){let n=t[Ks("0x2d")];for(;n&&"listItem"==n[Ks("0x35")]&&n[Ks("0x2f")](Ks("0x8"))==t[Ks("0x2f")]("listIndent");)e[Ks("0x15")](n),n=n[Ks("0x2d")]}return e}const Zs=["LegacyListUtils","forward","*Format:* set start index to %0","unshift","_LIST_","parent","handleDescriptions","formatInline","numbered","afterInit","getSelectedBlocks","getLastPosition","length","createRange","handleListStyleCommand","locale","listStart","push","map","registerDescriptionCallback","handleListStartCommand","handleListReversedCommand","element","editor","format","selection","_getSuggestionBlocks","getFirstPosition","*Change to:* %0","model","before","getSiblingNodes","list.properties","toUpperCase","styles","commandName","createPositionAt","filter","markMultiRangeBlockFormat","plugins","get","type","has","listStyle","change","listType","_descriptionFactory","reversed","*Format:* set order to reversed","replace","listItem","document","listReversed","bind","backward","_getTranslationKeyForListStyle","enableCommand","_getSuggestionBlocksForListStyle","ELEMENT_","*Format:* set order to regular","startIndex","commandParams","getListTypeFromListStyleType"];var Ys,Js;Ys=Zs,Js=401,function(t){for(;--t;)Ys.push(Ys.shift())}(++Js);const Qs=function(t,e){return Zs[t-=0]};class tx extends t.Plugin{[Qs("0x31")](){if(!this[Qs("0x0")][Qs("0x10")][Qs("0x13")]("LegacyListPropertiesEditing"))return;const t=this[Qs("0x0")].config[Qs("0x11")](Qs("0x9")),e=this.editor[Qs("0x10")].get("TrackChangesEditing");t[Qs("0xb")]&&e[Qs("0x21")](Qs("0x14"),this[Qs("0x36")].bind(this)),t[Qs("0x18")]&&e[Qs("0x21")](Qs("0x1d"),this[Qs("0x3d")][Qs("0x1e")](this)),t[Qs("0x25")]&&e[Qs("0x21")](Qs("0x38"),this.handleListStartCommand[Qs("0x1e")](this)),e[Qs("0x17")][Qs("0x3b")](this[Qs("0x2e")][Qs("0x1e")](this))}[Qs("0x36")](t,e={}){const n=this[Qs("0x0")].plugins[Qs("0x11")]("TrackChangesEditing"),r=this[Qs("0x22")]();this[Qs("0x0")].model[Qs("0x15")]((()=>{n.markMultiRangeBlockFormat(r,{commandName:Qs("0x14"),commandParams:[{type:e[Qs("0x12")]}],formatGroupId:Qs("0x14")})}))}[Qs("0x3d")](t,e={}){const n=this.editor[Qs("0x10")][Qs("0x11")]("TrackChangesEditing"),r=this[Qs("0x3")]((t=>t.is(Qs("0x3e"),Qs("0x1b"))&&"numbered"===t.getAttribute(Qs("0x16"))));if(r[Qs("0x34")]<1)return;const i=r[Qs("0x3a")]((t=>this[Qs("0x0")][Qs("0x6")][Qs("0x35")](this[Qs("0x0")].model[Qs("0xd")](t,Qs("0x7")),this[Qs("0x0")][Qs("0x6")].createPositionAt(t,0))));this.editor[Qs("0x6")][Qs("0x15")]((()=>{n[Qs("0xf")](i,{commandName:"listReversed",commandParams:[{reversed:e[Qs("0x18")]}],formatGroupId:"listReversed"})}))}[Qs("0x3c")](t,e={}){const n=this[Qs("0x0")][Qs("0x10")].get("TrackChangesEditing"),r=this[Qs("0x3")]((t=>t.is(Qs("0x3e"),Qs("0x1b"))&&Qs("0x30")===t.getAttribute(Qs("0x16"))));if(r.length<1)return;const i=r[Qs("0x3a")]((t=>this.editor.model[Qs("0x35")](this[Qs("0x0")][Qs("0x6")][Qs("0xd")](t,Qs("0x7")),this[Qs("0x0")][Qs("0x6")].createPositionAt(t,0))));this[Qs("0x0")][Qs("0x6")][Qs("0x15")]((()=>{n.markMultiRangeBlockFormat(i,{commandName:Qs("0x38"),commandParams:[{startIndex:e[Qs("0x25")]}],formatGroupId:Qs("0x38")})}))}[Qs("0x2e")](t){if("formatBlock"!=t[Qs("0x12")]&&Qs("0x2f")!=t[Qs("0x12")])return;const e=this[Qs("0x0")][Qs("0x37")],{data:n}=t;if(!n)return;let r,i;switch(n[Qs("0xc")]){case Qs("0x14"):r=Qs("0x5"),i={type:Qs("0x1"),content:Jr(e,r,Jr(e,this[Qs("0x20")](n[Qs("0x26")][0].type)))};break;case Qs("0x1d"):r=n[Qs("0x26")][0][Qs("0x18")]?Qs("0x19"):Qs("0x24"),i={type:Qs("0x1"),content:Jr(e,r)};break;case"listStart":r=Qs("0x2a"),i={type:"format",content:Jr(e,r,n.commandParams[0][Qs("0x25")])}}return i}[Qs("0x22")](){var t,e,n,r;const i=this[Qs("0x0")][Qs("0x10")][Qs("0x11")](Qs("0x28"));let o=Array.from(this[Qs("0x0")][Qs("0x6")][Qs("0x1c")][Qs("0x2")][Qs("0x32")]());return(null===(t=o[0])||void 0===t?void 0:t.is(Qs("0x3e"),Qs("0x1b")))&&o[Qs("0x2b")](...i[Qs("0x8")](this[Qs("0x0")].model[Qs("0x1c")].selection[Qs("0x4")](),"backward")),(null===(e=o[o[Qs("0x34")]-1])||void 0===e?void 0:e.is("element",Qs("0x1b")))&&o[Qs("0x39")](...i[Qs("0x8")](this[Qs("0x0")][Qs("0x6")].document.selection[Qs("0x33")](),"forward")),o=[...new Set(o)],(null===(r=null===(n=this[Qs("0x0")][Qs("0x6")][Qs("0x1c")][Qs("0x2")][Qs("0x4")]())||void 0===n?void 0:n[Qs("0x2d")])||void 0===r?void 0:r.is(Qs("0x3e"),"listItem"))&&(o=o[Qs("0xe")]((t=>t.is("element",Qs("0x1b"))))),o}[Qs("0x3")](t){const e=this[Qs("0x0")][Qs("0x10")][Qs("0x11")](Qs("0x28"));let n=Array.from(this.editor[Qs("0x6")][Qs("0x1c")][Qs("0x2")][Qs("0x32")]())[Qs("0xe")](t)[Qs("0x3a")]((t=>{const n=this.editor[Qs("0x6")][Qs("0xd")](t,0);return[...e.getSiblingNodes(n,Qs("0x1f")),...e[Qs("0x8")](n,Qs("0x29"))]})).flat();return n=[...new Set(n)],n}[Qs("0x20")](t){return Qs("0x23")+this[Qs("0x0")].plugins[Qs("0x11")](Qs("0x28"))[Qs("0x27")](t)[Qs("0xa")]()+Qs("0x2c")+t.toUpperCase()[Qs("0x1a")](/-/g,"_")}}const ex=["high","editor","registerElementLabel","options","media","afterInit","TrackChangesEditing","attribute:url:media","_descriptionFactory","enableCommand","ELEMENT_MEDIA","data","locale","plugins","createEmptyElement","for","has","showSuggestionHighlights","div"];var nx,rx;nx=ex,rx=379,function(t){for(;--t;)nx.push(nx.shift())}(++rx);const ix=function(t,e){return ex[t-=0]};class ox extends t.Plugin{[ix("0x6")](){const t=this[ix("0x2")];if(!t[ix("0xe")][ix("0x11")]("MediaEmbedEditing"))return;const e=t[ix("0xe")].get(ix("0x7")),n=t[ix("0xd")];e[ix("0xa")]("mediaEmbed"),e[ix("0x9")][ix("0x3")](ix("0x5"),(t=>Jr(n,ix("0xb"),t))),t.conversion[ix("0x10")]("dataDowncast").elementToElement({model:ix("0x5"),view:(t,{writer:e,options:n})=>{if(n[ix("0x12")])return e[ix("0xf")](ix("0x0"))},converterPriority:ix("0x1")}),t[ix("0xc")].downcastDispatcher.on(ix("0x8"),((t,e,n)=>{n[ix("0x4")][ix("0x12")]&&t.stop()}),{priority:"high"})}}const sx=["MentionEditing","has","TrackChangesEditing","plugins","get","mention"];var xx,ax;xx=sx,ax=379,function(t){for(;--t;)xx.push(xx.shift())}(++ax);const cx=function(t,e){return sx[t-=0]};class lx extends t.Plugin{afterInit(){const t=this.editor;t[cx("0x2")][cx("0x0")](cx("0x5"))&&t[cx("0x2")][cx("0x3")](cx("0x1")).enableCommand(cx("0x4"))}}const ux=["plugins","ELEMENT_PAGE_BREAK","editor","enableCommand","has","pageBreak","_descriptionFactory","locale","afterInit","registerElementLabel","get","TrackChangesEditing","PageBreakEditing"];var dx,gx;dx=ux,gx=335,function(t){for(;--t;)dx.push(dx.shift())}(++gx);const fx=function(t,e){return ux[t-=0]};class hx extends t.Plugin{[fx("0xb")](){const t=this[fx("0x5")];if(!t.plugins[fx("0x7")](fx("0x2")))return;t[fx("0x3")].get(fx("0x1"))[fx("0x6")](fx("0x8"));const e=t[fx("0x3")][fx("0x0")](fx("0x1")),n=t[fx("0xa")];e[fx("0x9")][fx("0xc")](fx("0x8"),(t=>Jr(n,fx("0x4"),t)))}}const mx=["activeMarkers","editor","checkChild","getFirstRange","*Insert:* %0","model","addMarker:suggestion:insertion","consumable","options","nodeAfter","isLimit","paragraph","$text","markerName","Paragraph","enableCommand","highest","insert","afterInit","getItemLabel","span","TrackChangesEditing","format","schema","isTouching","type","*Change to:* %0","bindElementToMarker","get","markerRange","_enableDefaultAttributesIntegration","_registerLegacyDescription","addClass","_descriptionFactory","insertion","includes","ck-suggestion-marker--active","registerDescriptionCallback","isBlock","writer","has","ck-suggestion-marker-split","end","name","showSuggestionHighlights","toViewPosition","editing","downcastDispatcher","plugins","start","formatBlock","locale","registerElementLabel"];var px,bx;px=mx,bx=101,function(t){for(;--t;)px.push(px.shift())}(++bx);const Ex=function(t,e){return mx[t-=0]};class _x extends t.Plugin{[Ex("0x17")](){const t=this[Ex("0x6")];if(!t[Ex("0x0")][Ex("0x2d")](Ex("0x13")))return;const e=t[Ex("0x3")],n=t[Ex("0x0")].get(Ex("0x1a"));n[Ex("0x26")][Ex("0x4")](Ex("0x10"),(t=>Jr(e,"ELEMENT_PARAGRAPH",t))),n[Ex("0x23")](Ex("0x10")),n[Ex("0x14")]("insertParagraph"),t[Ex("0x33")][Ex("0x34")].on(Ex("0xb"),Tx(t),{priority:Ex("0x15")}),t.data[Ex("0x34")].on("addMarker:suggestion:insertion",((e,n,r)=>{r[Ex("0xd")][Ex("0x31")]&&Tx(t,{showActiveMarker:!1})(e,n,r)}),{priority:Ex("0x15")});const r=n[Ex("0x26")];r[Ex("0x2a")]((n=>{if(Ex("0x27")!==n.type)return;const{start:i,end:o}=n[Ex("0x8")]();if(!i.isTouching(o)||!i[Ex("0xe")])return;const s=t[Ex("0xa")].schema,x=i.nodeAfter;return s[Ex("0x2b")](x)&&!s[Ex("0xf")](x)&&s[Ex("0x7")](x,Ex("0x11"))?{type:Ex("0x27"),content:Jr(e,Ex("0x9"),r[Ex("0x18")](x,1))}:void 0})),this[Ex("0x24")]()}[Ex("0x24")](){const t=this.editor,e=t[Ex("0x3")];t[Ex("0x0")][Ex("0x21")](Ex("0x1a"))[Ex("0x26")][Ex("0x2a")]((t=>{if(Ex("0x2")!=t[Ex("0x1e")])return;const{data:n}=t;return n&&Ex("0x10")==n.commandName?{type:Ex("0x1b"),content:Jr(e,Ex("0x1f"),Jr(e,"ELEMENT_PARAGRAPH"))}:void 0}))}}function Tx(t,{showActiveMarker:e=!0}={}){return(n,r,i)=>{const o=t.plugins[Ex("0x21")](Ex("0x1a")),s=r[Ex("0x22")][Ex("0x1")],x=r[Ex("0x22")][Ex("0x2f")],a=t[Ex("0xa")][Ex("0x1c")];if(!s[Ex("0x1d")](x)||!s[Ex("0xe")])return;const c=s[Ex("0xe")];if(a[Ex("0x2b")](c)&&!a.isLimit(c)&&a[Ex("0x7")](c,Ex("0x11"))){if(!i[Ex("0xc")].consume(r[Ex("0x22")],n[Ex("0x30")]))return;const t=i[Ex("0x2c")].createUIElement(Ex("0x19"),{class:Ex("0x2e")}),s=i.mapper[Ex("0x32")](x);e&&o[Ex("0x5")][Ex("0x28")](r.markerName)&&i.writer[Ex("0x25")](Ex("0x29"),t),i[Ex("0x2c")][Ex("0x16")](s,t),i.mapper[Ex("0x20")](t,r[Ex("0x12")])}}}const yx=["_registerLegacyDescription","registerDescriptionCallback","type","*Remove all formatting*","_enableDefaultAttributesIntegration","commandName","TrackChangesEditing","get","removeFormat","formatInline","afterInit","editor","has","plugins","locale"];var Cx,Ax;Cx=yx,Ax=190,function(t){for(;--t;)Cx.push(Cx.shift())}(++Ax);const kx=function(t,e){return yx[t-=0]};class Ix extends t.Plugin{[kx("0x0")](){const t=this.editor;t[kx("0x3")][kx("0x2")]("RemoveFormatEditing")&&(t.plugins[kx("0xc")](kx("0xb"))[kx("0x9")](kx("0xd")),this[kx("0x5")]())}[kx("0x5")](){const t=this[kx("0x1")];t[kx("0x3")].get(kx("0xb"))._descriptionFactory[kx("0x6")]((e=>{if("formatBlock"!=e[kx("0x7")]&&kx("0xe")!=e.type)return;const{data:n}=e;return n&&"removeFormat"==n[kx("0xa")]?{type:"format",content:Jr(t[kx("0x4")],kx("0x8"))}:void 0}))}}const Rx=["enableCommand","RestrictedEditingModeEditing","goToNextRestrictedEditingException","has","TrackChangesEditing","acceptAllSuggestions","afterInit","plugins","get","goToPreviousRestrictedEditingException","acceptSuggestion","discardSuggestion"];var Sx,vx;Sx=Rx,vx=173,function(t){for(;--t;)Sx.push(Sx.shift())}(++vx);const Nx=function(t,e){return Rx[t-=0]};class Lx extends t.Plugin{[Nx("0x1")](){const t=this.editor;if(!t.plugins[Nx("0xa")](Nx("0x8")))return;const e=t.plugins[Nx("0x3")](Nx("0xb"));e.enableCommand(Nx("0x4")),e[Nx("0x7")](Nx("0x9"));const n=t[Nx("0x2")][Nx("0x3")](Nx("0x8"));n[Nx("0x7")]("trackChanges"),n[Nx("0x7")](Nx("0x5")),n[Nx("0x7")](Nx("0x6")),n[Nx("0x7")](Nx("0x0")),n[Nx("0x7")]("discardAllSuggestions"),n[Nx("0x7")]("acceptSelectedSuggestions"),n[Nx("0x7")]("discardSelectedSuggestions")}}const Mx=["ELEMENT_LINE_BREAK","markerRange","showSuggestionHighlights","addMarker:suggestion:deletion","shiftEnter","_descriptionFactory","writer","split","plugins","addMarker:suggestion:insertion","activeMarkers","element","model","editing","deletion","test","locale","toViewPosition","createPositionBefore","enableCommand","get","downcastDispatcher","registerElementLabel","span","softBreak","TrackChangesEditing","high","createUIElement","ck-suggestion-marker--active","bindElementToMarker","mapper","init","editor","insert","name","markerName","includes","ck-suggestion-marker-","addMarker:suggestion","merge"];var wx,Ox;wx=Mx,Ox=440,function(t){for(;--t;)wx.push(wx.shift())}(++Ox);const Fx=function(t,e){return Mx[t-=0]};class Dx extends t.Plugin{static get requires(){return[Eo.ShiftEnter]}[Fx("0x1f")](){const t=this[Fx("0x20")],e=t.plugins[Fx("0x14")](Fx("0x19"));e[Fx("0x13")](Fx("0x4")),t.editing[Fx("0x15")].on(Fx("0x9"),Px(t),{priority:Fx("0x1a")}),t[Fx("0xd")][Fx("0x15")].on(Fx("0x3"),Px(t),{priority:Fx("0x1a")}),t.data[Fx("0x15")].on(Fx("0x26"),((e,n,r)=>{r.options[Fx("0x2")]&&Px(t,{showActiveMarker:!1})(e,n,r)})),e[Fx("0x5")][Fx("0x16")](Fx("0x18"),(e=>Jr(t[Fx("0x10")],Fx("0x0"),e)))}}function Px(t,{showActiveMarker:e=!0}={}){return(n,r,i)=>{const o=t[Fx("0x8")][Fx("0x14")]("TrackChangesEditing");if(!i.consumable[Fx("0xf")](r[Fx("0x1")],n[Fx("0x22")]))return;const s=t[Fx("0xc")];for(const t of r.markerRange.getItems()){if(!t.is(Fx("0xb"),Fx("0x18")))continue;const n=Fx("0xe")==r[Fx("0x23")][Fx("0x7")](":")[1]?Fx("0x27"):Fx("0x7"),x=i[Fx("0x6")][Fx("0x1b")](Fx("0x17"),{class:Fx("0x25")+n}),a=i[Fx("0x1e")][Fx("0x11")](s[Fx("0x12")](t));e&&o[Fx("0xa")][Fx("0x24")](r[Fx("0x23")])&&i[Fx("0x6")].addClass(Fx("0x1c"),x),i[Fx("0x6")][Fx("0x21")](a,x),i[Fx("0x1e")][Fx("0x1d")](x,r[Fx("0x23")])}}}const Bx=["model","commandName","formatInline","FORMAT_RESTRICTED_ENABLED","getRanges","isCollapsed","selection","enableCommand","_descriptionFactory","get","restrictedEditingException","locale","TrackChangesEditing","type","format","registerDescriptionCallback","has","afterInit","StandardEditingModeEditing","from","FORMAT_RESTRICTED_DISABLED","commands","plugins","formatBlock","document","forceValue","change","editor"];var Ux,jx;Ux=Bx,jx=236,function(t){for(;--t;)Ux.push(Ux.shift())}(++jx);const Gx=function(t,e){return Bx[t-=0]};class Vx extends t.Plugin{[Gx("0x5")](){const t=this[Gx("0xf")],e=t[Gx("0x10")],n=t[Gx("0x1b")];if(!t[Gx("0xa")][Gx("0x4")](Gx("0x6")))return;const r=t[Gx("0xa")][Gx("0x19")](Gx("0x0")),i=Gx("0x1a"),o=t[Gx("0x9")].get(i);r[Gx("0x17")](i,((t,n={})=>{const s=e[Gx("0xc")][Gx("0x16")];if(s[Gx("0x15")])return void t(n);const x=void 0!==n[Gx("0xd")]?n[Gx("0xd")]:!o.value;e[Gx("0xe")]((()=>{const t=Array[Gx("0x7")](s[Gx("0x14")]());for(const n of t){const t=x?[n]:Ji(i,n,e);for(const e of t)r.markInlineFormat(e,{commandName:i,commandParams:[{forceValue:x}]})}}))})),r[Gx("0x18")][Gx("0x3")]((t=>{if(Gx("0xb")!=t[Gx("0x1")]&&Gx("0x12")!=t.type)return;const{data:e}=t;return e&&e[Gx("0x11")]==i?e.commandParams[0][Gx("0xd")]?{type:Gx("0x2"),content:Jr(n,Gx("0x13"))}:{type:"format",content:Jr(n,Gx("0x8"))}:void 0}))}}const Hx=["formatBlock","getGhsAttributeNameForElement","block","style","registerAttributeLabel","TrackChangesEditing","ghsAttributes","has","element","plugins","locale","GeneralHtmlSupport","config","type","_enableDefaultAttributesIntegration","add","definitions","_registerBlockAttribute","_registerInlineAttribute","toLowerCase","registerDescriptionCallback","DataSchema","_descriptionFactory","editor","forceValue","commandParams","format","get","formatInline","Style","StyleUtils","FORMAT_STYLE","*Remove format:* %0","afterInit","styleName"];var zx,Wx;zx=Hx,Wx=415,function(t){for(;--t;)zx.push(zx.shift())}(++Wx);const Kx=function(t,e){return Hx[t-=0]};class qx extends t.Plugin{[Kx("0x3")](){const t=this[Kx("0x1c")];if(!t.plugins[Kx("0xc")](Kx("0x22"))||!t.plugins.has("DataSchema"))return;const e=t.plugins[Kx("0x20")](Kx("0xa")),n=t.locale,r=t[Kx("0x11")][Kx("0x20")](Kx("0x8")),i=t.plugins[Kx("0x20")](Kx("0x10")),o=t.plugins.get(Kx("0x0")).normalizeConfig(t[Kx("0xe")].get(Kx("0x1a")),r[Kx("0x15")]);e[Kx("0x13")]("style");const s=new Set;for(const t of o[Kx("0x7")]){const e=i[Kx("0x6")](t[Kx("0xd")]);s[Kx("0x14")](e)}const x=new Set;for(const t of o.inline){const e=i[Kx("0x6")](t[Kx("0xd")]);x[Kx("0x14")](e);for(const e of t[Kx("0xb")])x.add(e)}for(const t of s)e[Kx("0x16")](t),e[Kx("0x1b")][Kx("0x9")](t,Jr(n,"FORMAT_STYLE"));for(const t of x)e[Kx("0x17")](t),e._descriptionFactory[Kx("0x9")](t,Jr(n,Kx("0x1")));this._registerLegacyDescription()}_registerLegacyDescription(){const t=this[Kx("0x1c")],e=t[Kx("0xf")];t[Kx("0xe")].get(Kx("0xa"))._descriptionFactory[Kx("0x19")]((t=>{if(Kx("0x5")!=t[Kx("0x12")]&&Kx("0x21")!=t[Kx("0x12")])return;const{data:n}=t;return n&&Kx("0x8")===n.commandName?n[Kx("0x1e")][0][Kx("0x1d")]?{type:Kx("0x1f"),content:Jr(e,"*Set format:* %0",n[Kx("0x1e")][0][Kx("0x4")][Kx("0x18")]())}:{type:Kx("0x1f"),content:Jr(e,Kx("0x2"),n[Kx("0x1e")][0][Kx("0x4")][Kx("0x18")]())}:void 0}))}}const Xx=["selection","execute","nodeAfter","accept","position","createRangeIn","_splitMarkerName","type","every","insertTableColumnLeft","writer","add","selectTableColumn","last","from","get","TableUtils","registerCustomCallback","TrackChangesEditing","left","MAX_SAFE_INTEGER","locale","isIntersectingWithRange","nodeBefore","ELEMENT_TABLE_WITH_TEXT","removeTableColumn","createPositionAt","getSelectionAffectedTableCells","removeClass","element","getCellLocation","name","ELEMENT_TABLE_ROW","enableCommand","has","root","tableRow","length","getRanges","ELEMENT_TABLE_ROW_WITH_TEXT","*Remove:* %0","mapper","options","startsWith","refresh","insert","substr","createRangeOn","MIN_SAFE_INTEGER","highest","getAttribute","includes","data","addClass","isEqual","tablePaste","tableCell","commands","filter","classes","createTableWalker","removeTableRow","maxColumn","start","markMultiRangeDeletion","getChildren","getItems","findAncestor","colspan","ELEMENT_TABLE_COLUMN_WITH_TEXT","registerDescriptionCallback","insertTableColumnRight","registerElementLabel","insertion","getContainedElement","min","*Insert:* %0","deletion","getRowIndexes","_getSuggestionCoords","plugins","_getCoordsForCells","enqueueChange","max","$textProxy","oldRange","insertTable","editor","markMultiRangeInsertion","join","table","some","_descriptionFactory","ELEMENT_TABLE_COLUMN","differ","span","detach","maxRow","selectTableRow","_tableSuggestions","order","discard","end","isInContent","rootName","registerPostFixer","document","_suggestionFactory","isTouching","subType","push","$graveyard","toLowerCase","cell","fromRange","first","above","low","setSelection","model","insertTableRowAbove","insertTableRowBelow","change:data","map","hasAttribute","getFirstRange","change","getChanges","addRange","_setupColumnsRowsFixing","minRow","rowspan","tableColumn","addMarker:suggestion","_acceptFormatSuggestionCallbackFactory"];var $x,Zx;$x=Xx,Zx=279,function(t){for(;--t;)$x.push($x.shift())}(++Zx);const Yx=function(t,e){return Xx[t-=0]};class Jx extends t.Plugin{constructor(t){super(t),this._tablePostFixingSubtypes=[Yx("0x1b"),Yx("0x7b")],this._tableSuggestions=new Set}afterInit(){const t=this.editor,e=t[Yx("0x6e")][Yx("0x61")][Yx("0x7e")];if(!t.plugins[Yx("0x19")]("TableEditing"))return;const n=t[Yx("0xc")],r=t[Yx("0x47")].get("TrackChangesEditing"),i=t.plugins.get(Yx("0x7"));r[Yx("0x53")][Yx("0x3f")](Yx("0x51"),(t=>Jr(n,"ELEMENT_TABLE",t))),this[Yx("0x78")](),r.enableCommand(Yx("0x4d")),r[Yx("0x18")](Yx("0x59")),r[Yx("0x18")](Yx("0x3"));for(const n of[Yx("0x6f"),Yx("0x70")]){const o=t[Yx("0x30")][Yx("0x6")](n);r[Yx("0x18")](n,(n=>{t.model[Yx("0x75")]((t=>{n();const s=Yx("0x6b")===o.order,x=i[Yx("0x12")](e),a=i[Yx("0x45")](x),c=s?a[Yx("0x6a")]-1:a[Yx("0x4")]+1,l=x[0][Yx("0x3a")](Yx("0x51")),u=i[Yx("0x33")](l,{startRow:c,endRow:c}),d=Array.from(u).map((e=>t[Yx("0x26")](e[Yx("0x68")])));r[Yx("0x4f")](d,Yx("0x1b"))}))}))}for(const n of[Yx("0x0"),Yx("0x3e")]){const o=t[Yx("0x30")].get(n);r[Yx("0x18")](n,(n=>{t[Yx("0x6e")][Yx("0x75")]((t=>{n();const s=Yx("0xa")===o[Yx("0x5b")],x=i[Yx("0x12")](e),a=i.getColumnIndexes(x),c=s?a[Yx("0x6a")]-1:a.last+1,l=x[0][Yx("0x3a")](Yx("0x51")),u=i[Yx("0x33")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Yx("0x5")](u)[Yx("0x72")]((e=>t.createRangeOn(e[Yx("0x68")])));r.markMultiRangeInsertion(d,Yx("0x7b"))}))}))}for(const n of[Yx("0x34"),"removeTableColumn"]){const o=n[Yx("0x25")](11),s=o.toLowerCase(),x=s[Yx("0x25")](0,3)+Yx("0x56"),a=Yx("0x51")+o,c=Yx("0x42")+o,l=Yx("0x4a")+o;r[Yx("0x18")](n,(()=>{t[Yx("0x6e")][Yx("0x75")]((t=>{const o=i[Yx("0x12")](e),u=o[0][Yx("0x3a")](Yx("0x51"));let d;if(Yx("0x34")==n){const t=i[Yx("0x45")](o);d={startRow:t.first,endRow:t[Yx("0x4")],includeAllSlots:!0}}else{const t=i.getColumnIndexes(o);d={startColumn:t[Yx("0x6a")],endColumn:t.last,includeAllSlots:!0}}const g=i[Yx("0x33")](u,d),f=Array[Yx("0x5")](g)[Yx("0x72")]((({cell:t})=>t)),h=Qx(f[Yx("0x31")]((t=>t[Yx("0x73")](x)))),m=Qx(f.filter((t=>!t[Yx("0x73")](x))))[Yx("0x72")]((e=>t[Yx("0x26")](e))),p=r[Yx("0x37")](m,a);if(p&&(Yx("0x1b")==p[Yx("0x64")]||"tableColumn"==p[Yx("0x64")])){const e=this[Yx("0x46")](p);for(const n of h){const r=t[Yx("0x26")](n),o=i[Yx("0x15")](n),a=n[Yx("0x29")](x)-1,u=e[c],d=e[l];u<=o[s]&&o[s]+a<=d&&p[Yx("0x77")](r)}}}))}))}function o(n){const r=Array[Yx("0x5")](e[Yx("0x1d")]()).map((t=>s.LiveRange.fromRange(t)));t.model.change((e=>{const i=e.batch;n=n.filter((t=>Yx("0x66")!=t.root[Yx("0x5f")])),e[Yx("0x6d")](n),t[Yx("0x30")][Yx("0x6")](Yx("0x34"))[Yx("0x23")](),t.execute(Yx("0x34"),{forceDefaultExecution:!0}),t[Yx("0x6e")][Yx("0x49")]((()=>{t[Yx("0x6e")][Yx("0x49")](i,(t=>{const e=r[Yx("0x31")]((t=>Yx("0x66")!=t[Yx("0x1a")][Yx("0x5f")]));e[Yx("0x1c")]>0&&t.setSelection(e);for(const t of r)t.detach()}))}))}))}function a(n){t[Yx("0x6e")][Yx("0x75")]((r=>{const i=Array.from(e[Yx("0x1d")]()).map((t=>s.LiveRange[Yx("0x69")](t))),o=[];for(const t of n)for(const e of t[Yx("0x39")]({shallow:!0}))o[Yx("0x65")](e);for(const e of o)Yx("0x66")!=e[Yx("0x1a")][Yx("0x5f")]&&(r[Yx("0x6d")](r[Yx("0x11")](e,0)),t[Yx("0x30")][Yx("0x6")]("removeTableColumn").refresh(),t[Yx("0x7f")](Yx("0x10"),{forceDefaultExecution:!0}));const x=i[Yx("0x31")]((t=>Yx("0x66")!=t[Yx("0x1a")].rootName));x[Yx("0x1c")]>0&&r.setSelection(x);for(const t of i)t.detach()}))}function c(t,e){return e[Yx("0x86")]((e=>t[Yx("0x52")]((t=>t.end[Yx("0x2d")](e[Yx("0x36")])||e.end[Yx("0x2d")](t[Yx("0x36")])))))}function l(t,e){return t[Yx("0x52")]((t=>e[Yx("0x52")]((e=>t[Yx("0x5d")][Yx("0x63")](e[Yx("0x36")])))))}t[Yx("0x2b")].downcastDispatcher.on(Yx("0x7c"),((t,e,n)=>{if(!n[Yx("0x21")].showSuggestionHighlights)return;const r=e.item;if(!r)return;const i=n[Yx("0x20")].toViewElement(r);function o(t){return Array.isArray(t)?t:[t]}i&&Yx("0x2f")===r[Yx("0x16")]&&(0,x.setHighlightHandling)(i,n[Yx("0x1")],((t,e,n)=>n[Yx("0x2c")](o(e[Yx("0x32")]),t)),((t,e,n)=>n[Yx("0x13")](o(e[Yx("0x32")]),t)))}),{priority:Yx("0x28")}),r[Yx("0x53")][Yx("0x3d")]((t=>{if(Yx("0x40")!=t.type&&"deletion"!=t[Yx("0x85")])return;const e=t[Yx("0x41")]();if(null!=e&&e.is(Yx("0x14"),Yx("0x51"))){if(Yx("0x40")==t[Yx("0x85")]){const e=t[Yx("0x39")]()[Yx("0x31")]((t=>t.is(Yx("0x4b"))))[Yx("0x72")]((t=>t[Yx("0x2b")]));if(e[Yx("0x1c")])return{type:"insertion",content:Jr(n,"*Insert:* %0",Jr(n,Yx("0xf"),'"'+e[Yx("0x50")](" ")+'"'))}}if(Yx("0x44")==t[Yx("0x85")]){const e=t[Yx("0x39")]()[Yx("0x31")]((t=>t.is("$textProxy")))[Yx("0x72")]((t=>t[Yx("0x2b")]));if(e[Yx("0x1c")])return{type:Yx("0x44"),content:Jr(n,Yx("0x1f"),Jr(n,Yx("0xf"),'"'+e.join(" ")+'"'))}}}})),r[Yx("0x53")][Yx("0x3d")]((t=>{if(Yx("0x1b")==t[Yx("0x64")]){const e=t.getItems()[Yx("0x31")]((t=>t.is("$textProxy")))[Yx("0x72")]((t=>t.data)),r=this[Yx("0x46")](t),i=r[Yx("0x58")]-r[Yx("0x79")]+1;if(Yx("0x40")==t[Yx("0x85")])return e.length?{type:"insertion",content:Jr(n,Yx("0x43"),Jr(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[i,'"'+e[Yx("0x50")](" ")+'"']))}:{type:Yx("0x40"),content:Jr(n,Yx("0x43"),Jr(n,Yx("0x17"),i))};if("deletion"==t[Yx("0x85")])return e[Yx("0x1c")]?{type:Yx("0x44"),content:Jr(n,Yx("0x1f"),Jr(n,Yx("0x1e"),[i,'"'+e.join(" ")+'"']))}:{type:Yx("0x44"),content:Jr(n,Yx("0x1f"),Jr(n,"ELEMENT_TABLE_ROW",i))}}if(Yx("0x7b")==t[Yx("0x64")]){const e=t[Yx("0x39")]().filter((t=>t.is(Yx("0x4b")))).map((t=>t[Yx("0x2b")])),r=this[Yx("0x46")](t),i=r[Yx("0x35")]-r.minColumn+1;if(Yx("0x40")==t[Yx("0x85")])return e[Yx("0x1c")]?{type:"insertion",content:Jr(n,"*Insert:* %0",Jr(n,Yx("0x3c"),[i,'"'+e[Yx("0x50")](" ")+'"']))}:{type:Yx("0x40"),content:Jr(n,Yx("0x43"),Jr(n,Yx("0x54"),i))};if(Yx("0x44")==t.type)return e.length?{type:Yx("0x44"),content:Jr(n,Yx("0x1f"),Jr(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[i,'"'+e[Yx("0x50")](" ")+'"']))}:{type:Yx("0x44"),content:Jr(n,"*Remove:* %0",Jr(n,Yx("0x54"),i))}}})),r[Yx("0x62")].registerCustomCallback("insertion",Yx("0x1b"),Yx("0x5c"),o),r[Yx("0x62")][Yx("0x8")]("deletion","tableRow",Yx("0x81"),o),r[Yx("0x62")].registerCustomCallback("insertion","tableColumn",Yx("0x5c"),a),r._suggestionFactory[Yx("0x8")](Yx("0x44"),"tableColumn","accept",a),r[Yx("0x62")].registerCustomCallback(Yx("0x40"),Yx("0x7b"),"join",c),r[Yx("0x62")].registerCustomCallback(Yx("0x44"),Yx("0x7b"),Yx("0x50"),c),r[Yx("0x62")].registerCustomCallback(Yx("0x40"),"tableRow","join",l),r[Yx("0x62")][Yx("0x8")](Yx("0x44"),"tableRow",Yx("0x50"),l)}[Yx("0x7d")](){const t=this[Yx("0x4e")],e=t.model.document[Yx("0x7e")];return(n,r)=>{t[Yx("0x6e")][Yx("0x75")]((i=>{const{commandName:o,commandParams:x}=r;let a=n[0][Yx("0x5d")][Yx("0xe")];x&&x[0]&&!1===x[0].forceValue&&(a=n[0].start.nodeAfter);const c=i[Yx("0x83")](a);if(Yx("0x66")==c[Yx("0x1a")][Yx("0x5f")])return;const l=Array[Yx("0x5")](e.getRanges())[Yx("0x72")]((t=>s.LiveRange[Yx("0x69")](t)));i[Yx("0x6d")](c),t.commands.get(o)[Yx("0x23")](),x[Yx("0x65")]({forceDefaultExecution:!0}),t[Yx("0x7f")](o,...x);const u=l.filter((t=>Yx("0x66")!=t[Yx("0x1a")][Yx("0x5f")]));u[Yx("0x1c")]>0&&i[Yx("0x6d")](u);for(const t of l)t[Yx("0x57")]()}))}}_getCoordsForCells(t){const e=this.editor[Yx("0x47")][Yx("0x6")](Yx("0x7"));let n=Number[Yx("0xb")],r=Number[Yx("0x27")],i=Number[Yx("0xb")],o=Number[Yx("0x27")];for(const s of t){if(Yx("0x66")==s[Yx("0x1a")][Yx("0x5f")])continue;const{row:t,column:x}=e[Yx("0x15")](s),a=s[Yx("0x73")](Yx("0x7a"))?s[Yx("0x29")](Yx("0x7a"))-1:0,c=s[Yx("0x73")](Yx("0x3b"))?s[Yx("0x29")](Yx("0x3b"))-1:0;n=t<n?t:n,r=t+a>r?t+a:r,i=x<i?x:i,o=x+c>o?x+c:o}return{minRow:n,maxRow:r,minColumn:i,maxColumn:o}}[Yx("0x78")](){const t=this[Yx("0x4e")],e=t.plugins.get(Yx("0x9")),n=t[Yx("0x47")][Yx("0x6")]("TableUtils");t[Yx("0x6e")][Yx("0x61")].on(Yx("0x71"),(()=>{const n=Array[Yx("0x5")](t[Yx("0x6e")][Yx("0x61")][Yx("0x55")].getChangedMarkers());for(const{name:t,data:r}of n){const{group:n,id:i,subType:o}=e[Yx("0x84")](t);if("suggestion"!=n)continue;if(null!=r[Yx("0x4c")])continue;const s=e.getSuggestion(i);this._tablePostFixingSubtypes[Yx("0x2a")](o)&&this[Yx("0x5a")][Yx("0x2")](s)}}),{priority:Yx("0x6c")});const r=(t,e)=>{let r=!1;const i=e.createRangeOn(t),o=t[Yx("0x3a")]("table"),s=n[Yx("0x15")](t);for(const e of this[Yx("0x5a")]){const n=e[Yx("0x64")],x=n[Yx("0x22")](Yx("0x2e")),a=n[Yx("0x25")](x?10:5),c=a[Yx("0x67")](),l=c[Yx("0x25")](0,3)+"span",u="min"+a,d=Yx("0x4a")+a;if(!e[Yx("0x5e")])continue;if(o!=e[Yx("0x74")]()[Yx("0x36")][Yx("0x3a")]("table"))continue;if(e[Yx("0xd")](i))continue;const g=t.hasAttribute(l)?t[Yx("0x29")](l)-1:0,f=this[Yx("0x46")](e),h=f[u],m=f[d];h<=s[c]&&s[c]+g<=m&&(e.addRange(i),r=!0)}return r};t.model.document[Yx("0x60")]((e=>{let n=!1;for(const i of t.model[Yx("0x61")].differ[Yx("0x76")]())if(Yx("0x24")==i[Yx("0x85")])if(Yx("0x1b")==i[Yx("0x16")])for(const t of i[Yx("0x82")][Yx("0x80")][Yx("0x38")]())n=n||r(t,e);else Yx("0x2f")==i[Yx("0x16")]&&(n=n||r(i.position[Yx("0x80")],e));return n}))}[Yx("0x46")](t){return this[Yx("0x48")](t[Yx("0x1d")]().map((t=>t[Yx("0x36")][Yx("0x80")])))}}function Qx(t){return Array.from(new Set(t).values())}const ta=["add","registerCustomCallback","enableCommand","element","detach","splitTableCellHorizontally","cell","getAncestors","_descriptionFactory","markMultiRangeBlockFormat","$graveyard","markBlockFormat","change","execute","trackChanges","deletion","tableCell","rootName","TableUtils","locale","stop","low","_areSelectedCellsMergable","set:isEnabled","mergeTableCellRight","get","isEnabled","length","_areMergableCells","formatInline","_acceptFormatSuggestionCallbackFactory","highest","*Split cell:* horizontally","selection","mergeTableCellUp","find","type","_tablePostFixingSubtypes","filter","createTableWalker","TableEditing","_suggestionFactory","getSelectionAffectedTableCells","registerDescriptionCallback","document","plugins","accept","table","forceDefaultExecution","commands","return","push","mergeTableCells","mergeTableCellLeft","_isForcedDefaultExecutionBlock","*Merge cells*","refresh","from","formatBlock","createRangeOn","afterInit","model","containsRange","*Split cell:* vertically","editor","getRanges","has","size","getSuggestions","mergeTableCellDown","value","horizontally","map","direction","getFirstPosition","splitTableCellVertically","root","TrackChangesEditing","format","commandName"];var ea,na;ea=ta,na=154,function(t){for(;--t;)ea.push(ea.shift())}(++na);const ra=function(t,e){return ta[t-=0]};class ia extends t.Plugin{static get requires(){return[Jx]}[ra("0x42")](){const t=this[ra("0x46")],e=t[ra("0x43")][ra("0x32")].selection,n=t[ra("0x19")];if(!t[ra("0x33")][ra("0x48")](ra("0x2e")))return;const r=t[ra("0x33")][ra("0x1f")](ra("0x3")),i=t[ra("0x33")][ra("0x1f")](ra("0x18")),o=t[ra("0x33")].get(Jx);o[ra("0x2b")][ra("0x39")](ra("0x3a")),r[ra("0x8")](ra("0x3a"),(()=>{const e=i.getSelectionAffectedTableCells(t[ra("0x43")][ra("0x32")][ra("0x27")]);t[ra("0x43")][ra("0x12")]((()=>{r[ra("0xf")](e,{commandName:ra("0x3a"),commandParams:[]},[],ra("0x3a"))}))})),t[ra("0x37")][ra("0x1f")](ra("0x3a")).on(ra("0x13"),((e,n)=>{t[ra("0x37")][ra("0x1f")](ra("0x14"))[ra("0x4c")]&&(n[ra("0x21")]>0&&n[n[ra("0x21")]-1]&&n[n.length-1][ra("0x36")]||r[ra("0x3c")]||this[ra("0x1c")]()||e[ra("0x1a")]())}),{priority:ra("0x25")});for(const e of[ra("0x28"),ra("0x1e"),ra("0x4b"),ra("0x3b")]){const n=t[ra("0x37")].get(e);r[ra("0x8")](e,(()=>{const e=t[ra("0x43")][ra("0x32")].selection[ra("0x0")]()[ra("0xd")]()[ra("0x29")]((t=>t.is("element",ra("0x16")))),i=n.value;t[ra("0x43")].change((()=>{r[ra("0xf")]([e,i],{commandName:ra("0x3a"),commandParams:[]},[],ra("0x3a"))}))}))}for(const e of[ra("0x1"),"splitTableCellHorizontally"]){const n=t.commands[ra("0x1f")](e);r[ra("0x8")](e,(()=>{const o=i.getSelectionAffectedTableCells(t[ra("0x43")][ra("0x32")][ra("0x27")])[0],s=o.findAncestor(ra("0x35")),{column:x,row:a}=i.getCellLocation(o);let c=[];if(ra("0x4d")==n[ra("0x4f")]){const t=i[ra("0x2d")](s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[ra("0x3f")](t)[ra("0x4e")]((t=>t.cell))}else{const t=i[ra("0x2d")](s,{column:x,includeAllSlots:!0});c=Array[ra("0x3f")](t)[ra("0x4e")]((t=>t[ra("0xc")]))}t.model[ra("0x12")]((t=>{r[ra("0x11")](t[ra("0x41")](o),{commandName:e,commandParams:[]},c,e)}))}))}r[ra("0xe")].registerDescriptionCallback((t=>{if("formatBlock"!=t[ra("0x2a")]&&ra("0x23")!=t[ra("0x2a")])return;const{data:e}=t;return e&&"mergeTableCells"==e[ra("0x5")]?{type:ra("0x4"),content:Jr(n,ra("0x3d"))}:void 0})),r[ra("0xe")][ra("0x31")]((t=>{if(ra("0x40")!=t.type&&"formatInline"!=t.type)return;const{data:e}=t;return e?ra("0x1")==e[ra("0x5")]?{type:"format",content:Jr(n,ra("0x45"))}:ra("0xb")==e[ra("0x5")]?{type:ra("0x4"),content:Jr(n,ra("0x26"))}:void 0:void 0}));const x=o[ra("0x24")]();for(const t of[ra("0x28"),"mergeTableCellRight",ra("0x4b"),ra("0x3b")])r[ra("0x2f")][ra("0x7")]("formatBlock",t,ra("0x34"),x);for(const t of["splitTableCellVertically",ra("0xb")])r._suggestionFactory[ra("0x7")](ra("0x40"),t,ra("0x34"),x);r._suggestionFactory[ra("0x7")]("formatBlock",ra("0x3a"),ra("0x34"),(n=>{t[ra("0x43")].change((r=>{const i=Array[ra("0x3f")](e[ra("0x47")]())[ra("0x4e")]((t=>s.LiveRange.fromRange(t)));r.setSelection(n),t[ra("0x37")][ra("0x1f")](ra("0x3a"))[ra("0x3e")](),t[ra("0x13")]("mergeTableCells",{forceDefaultExecution:!0});const o=i[ra("0x2c")]((t=>ra("0x10")!=t[ra("0x2")][ra("0x17")]));o.length>0&&r.setSelection(o);for(const t of i)t[ra("0xa")]()}))}));for(const e of[ra("0x28"),ra("0x4b"),ra("0x3b"),ra("0x1e")]){const n=t[ra("0x37")][ra("0x1f")](e);n.on(ra("0x1d"),((e,r,i)=>{if(i){const r=t.model[ra("0x32")][ra("0x27")].getFirstPosition()[ra("0xd")]()[ra("0x29")]((t=>t.is(ra("0x9"),ra("0x16"))));this._areMergableCells(n[ra("0x4c")],r)||(e[ra("0x38")]=!1,e[ra("0x1a")]())}}),{priority:ra("0x1b")})}}_areSelectedCellsMergable(){const t=this[ra("0x46")].commands[ra("0x1f")](ra("0x3a")),e=this[ra("0x46")][ra("0x33")][ra("0x1f")](ra("0x18"));if(!t[ra("0x20")])return!1;const n=e[ra("0x30")](this[ra("0x46")][ra("0x43")][ra("0x32")][ra("0x27")]);for(const t of n)for(const e of n)if(t!=e&&!this._areMergableCells(t,e))return!1;return!0}[ra("0x22")](t,e){const n=this[ra("0x46")].plugins.get(ra("0x3")),r=this[ra("0x46")][ra("0x43")][ra("0x41")](t),i=this[ra("0x46")][ra("0x43")][ra("0x41")](e),o=new Set,s=new Set;for(const t of n[ra("0x4a")]())if(("insertion"==t[ra("0x2a")]||ra("0x15")==t[ra("0x2a")]||ra("0x3a")==t.subType)&&t.isInContent)for(const e of t[ra("0x47")]())e[ra("0x44")](r,!0)&&o[ra("0x6")](t.type+":"+t.author.id),e[ra("0x44")](i,!0)&&s[ra("0x6")](t[ra("0x2a")]+":"+t.author.id);if(o[ra("0x49")]!=s.size)return!1;for(const t of o)if(!s.has(t))return!1;return!0}}const oa=["end","data","mapper","ck-suggestion-marker-","toViewElement","parent","FORMAT_HEADER_COLUMN","editing","has","consumable","locale","editor","accept","get","FORMAT_REGULAR_ROW","addMarker:suggestion","createTableWalker","nodeBefore","downcastDispatcher","headingRows","registerCustomCallback","markerName","showSuggestionHighlights","item","setAttribute","formatBlock","headingColumns","requires","_suggestionFactory","addClass","markerNameToElements","commandName","data-suggestion","activeMarkers","_registerLegacyDescription","FORMAT_REGULAR_COLUMN","highest","removeMarker:suggestion","_handleLegacySuggestions","unbindElementFromMarkerName","commandParams","afterInit","registerDescriptionCallback","removeAttribute","ck-suggestion-marker--active","_enableDefaultAttributesIntegration","_splitMarkerName","_descriptionFactory","*Format:* %0","forceValue","getCellLocation","bindElementToMarker","start","TableEditing","setTableRowHeader","TrackChangesEditing","setTableColumnHeader","markerRange","removeClass","stop","writer","name","options","plugins","consume","registerAttributeLabel"];var sa,xa;sa=oa,xa=366,function(t){for(;--t;)sa.push(sa.shift())}(++xa);const aa=function(t,e){return oa[t-=0]};class ca extends t.Plugin{static get[aa("0x39")](){return[Jx]}[aa("0x5")](){const t=this.editor;if(!t[aa("0x1b")][aa("0x26")](aa("0x11")))return;const e=t[aa("0x28")],n=t.plugins[aa("0x2b")](aa("0x13"));n[aa("0x9")](aa("0x12"),[],[aa("0x31")]),n._enableDefaultAttributesIntegration(aa("0x14"),[],[aa("0x38")]),n[aa("0xb")][aa("0x1d")]("headingRows",Jr(e,"FORMAT_HEADER_ROW")),n[aa("0xb")][aa("0x1d")](aa("0x38"),Jr(e,aa("0x24"))),this[aa("0x2")]()}_handleLegacySuggestions(){const t=this[aa("0x29")].plugins[aa("0x2b")](aa("0x13")),e=this[aa("0x29")].plugins[aa("0x2b")]("TableUtils"),n=this[aa("0x29")][aa("0x1b")][aa("0x2b")](Jx)._acceptFormatSuggestionCallbackFactory();function r({showActiveMarker:n=!0,setDataAttribute:r=!0}={}){return(i,o,s)=>{const{type:x,id:a}=t[aa("0xa")](o.markerName),c=t.getSuggestion(a),l=c.data;if(aa("0x37")!=c.type||!l||aa("0x14")!=l[aa("0x3d")])return;if(o[aa("0x35")])return void i[aa("0x17")]();if(!s[aa("0x27")][aa("0x1c")](o[aa("0x15")],i[aa("0x19")]))return;const u=o[aa("0x15")][aa("0x10")].nodeAfter,d=o[aa("0x15")][aa("0x1e")][aa("0x2f")],g=u[aa("0x23")][aa("0x23")],{column:f}=e[aa("0xe")](u),{column:h}=e[aa("0xe")](d);for(let i=f;i<=h;i++){const c=e[aa("0x2e")](g,{column:i,includeAllSlots:!1});for(const e of c){const i=e.cell,c=s.mapper[aa("0x22")](i);s[aa("0x18")].addClass(aa("0x21")+x,c),r&&s[aa("0x18")][aa("0x36")](aa("0x3e"),a,c),s.mapper[aa("0xf")](c,o[aa("0x33")]),n&&(t[aa("0x3f")].includes(o[aa("0x33")])?s[aa("0x18")][aa("0x3b")]("ck-suggestion-marker--active",c):s[aa("0x18")][aa("0x16")](aa("0x8"),c))}}}}t[aa("0x3a")][aa("0x32")](aa("0x37"),aa("0x12"),aa("0x2a"),n),t[aa("0x3a")][aa("0x32")](aa("0x37"),aa("0x14"),aa("0x2a"),n),this[aa("0x29")][aa("0x25")].downcastDispatcher.on(aa("0x2d"),r(),{priority:aa("0x0")}),this[aa("0x29")].data[aa("0x30")].on(aa("0x2d"),((t,e,n)=>{n[aa("0x1a")][aa("0x34")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:aa("0x0")}),this[aa("0x29")][aa("0x25")][aa("0x30")].on(aa("0x1"),((e,n,r)=>{const{type:i,id:o}=t._splitMarkerName(n[aa("0x33")]),s=t.getSuggestion(o),x=s[aa("0x1f")];if(aa("0x37")!=s.type||!x||aa("0x14")!=x[aa("0x3d")])return;const a=r[aa("0x20")][aa("0x3c")](n[aa("0x33")]);if(a)for(const t of a)r[aa("0x18")].removeClass(aa("0x21")+i,t),r[aa("0x18")].removeClass(aa("0x8"),t),r.writer[aa("0x7")](aa("0x3e"),t),r[aa("0x20")][aa("0x3")](t,n[aa("0x33")])}),{priority:aa("0x0")}),this[aa("0x40")]()}_registerLegacyDescription(){const t=this[aa("0x29")],e=t[aa("0x28")];function n(t){return{type:"format",content:Jr(e,aa("0xc"),t)}}t[aa("0x1b")][aa("0x2b")](aa("0x13"))._descriptionFactory[aa("0x6")]((t=>{if(aa("0x37")!=t.type)return;const{data:r}=t;if(r){if(aa("0x12")==r[aa("0x3d")]){const t=r[aa("0x4")][0][aa("0xd")];return n(Jr(e,t?"FORMAT_HEADER_ROW":aa("0x2c")))}if("setTableColumnHeader"==r[aa("0x3d")]){const t=r[aa("0x4")][0][aa("0xd")];return n(Jr(e,t?"FORMAT_HEADER_COLUMN":aa("0x41")))}}}))}}const la=["TableClipboard","for","getSuggestionCallback","isEmpty","tablePasteRow","get","getChangedMarkers","_createdBatches","differ","suggestion","table","endColumn","TrackChangesEditing","getShiftedBy","startsWith","schema","createPositionBefore","markMultiRangeBlockFormat","fill","containsRange","isInContent","registerDescriptionCallback","forceDefaultExecution","join","has","tableCellPadding","deletion","getRange","createTableWalker","findAncestor","columnInsertionIndexes","attributes","tableCellHorizontalAlignment","insertion","afterInit","editing","low","trackChanges","options","columnInsertionRanges","type","length","rowInsertionRanges","removeMarkers","ck-suggestion-marker","selection","getContainedElement","getChanges","end","createRangeIn","next","content","_splitMarkerName","getItems","author","getMarkers","registerCustomCallback","column","suggestion-td","tablePaste","insertContent","getRanges","return","getChild","*Replace table cells*","tablePasteCell","tableCellBackgroundColor","filter","subType","first","map","keys","getAllAdjacentSuggestions","_descriptionFactory","start","insertionRanges","showSuggestionHighlights","setAttributes","accept","_replaceTableSlotCell","oldRange","register","every","reduce","createRangeOn","insertRows","cell","ck-suggestion-marker--active","_isForcedDefaultExecutionBlock","markMultiRangeInsertion","element","fromEntries","includes","remove","batch","getChildren","setAttribute","getColumns","view","hasSuggestion","add","tablePasteChainId","name","push","getTableIfOnlyTableInContent","position","Users","root","nextSibling","rowInsertionIndexes","documentSelection","getColumnIndexes","change","tableCellBorderColor","from","suggestionLoaded","commands","set","markerName","entries","tableCellSuggestion","stop","getRowIndexes","activeMarkers","previous","createElement","paragraph","isEqual","redo","previousSibling","formatBlock","_suggestionFactory","markerAttributes","rows","requires","unwrap","tablePasteColumn","markerToHighlight","move","clipboardOutput","discard","value","$graveyard","elementToElement","removeMarker","document","suggestion:formatBlock:tablePasteCell","cells","model","conversion","tableCell","insert","nodeAfter","markers","high","tableCellBorderWidth","removeRows","getSuggestions","last","registerPostFixer","editor","newRange","plugins"];var ua,da;ua=la,da=195,function(t){for(;--t;)ua.push(ua.shift())}(++da);const ga=function(t,e){return la[t-=0]},fa=[ga("0x7b"),ga("0x51"),"tableCellBorderStyle",ga("0x0"),"tableCellVerticalAlignment",ga("0x22"),ga("0x9c")],ha=Object.fromEntries(fa[ga("0x26")]((t=>[t,null])));class ma extends t.Plugin{static get[ga("0x66")](){return[Jx]}[ga("0x2")](){const t=this[ga("0x80")];if(!t.plugins.has(ga("0x83")))return;const n=t.plugins.get(ga("0x8f")),r=t.plugins[ga("0x88")]("TableUtils"),i=t[ga("0x82")][ga("0x88")](Jx),o=t[ga("0x82")][ga("0x88")](ga("0x83"));i._tablePostFixingSubtypes.push("tablePasteRow","tablePasteColumn"),t[ga("0x74")][ga("0x92")][ga("0x31")]("tableCellSuggestion",{allowIn:ga("0x76"),allowContentOf:ga("0x76"),isLimit:!0}),t[ga("0x75")][ga("0x6f")]({model:ga("0x58"),view:"suggestion-td"});let s=null;t.model.on("insertContent",((i,x)=>{const[a,c]=x,l=x[x[ga("0x9")]-1];l&&l[ga("0x99")]||n[ga("0x38")]||this[ga("0x80")][ga("0x54")][ga("0x88")](ga("0x5"))[ga("0x6d")]&&function(t,e,n,r,i){if(e&&!e.is(ga("0x4e")))return!1;const o=i[ga("0x48")](t,n);if(!o||!ba(o,void 0,r))return!1;const s=r.getSelectionAffectedTableCells(n[ga("0x71")][ga("0xd")]);if(!s.length)return!1;const x=s[0][ga("0xa0")](ga("0x8d")),a=r[ga("0x5a")](s),c=r[ga("0x4f")](s),l={startRow:a[ga("0x25")],endRow:a[ga("0x7e")],startColumn:c[ga("0x25")],endColumn:c[ga("0x7e")]};return 1==s.length&&(l.endRow+=r.getRows(o)-1,l[ga("0x8e")]+=r[ga("0x41")](o)-1),ba(x,l,r)}(a,c,t[ga("0x74")],r,o)&&(i.stop(),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[ga("0x74")].change((()=>{t[ga("0x74")][ga("0x1c")](x[0],x[1],x[2],{forceDefaultExecution:!0});const r=(0,e.uid)(),{rowInsertionRanges:i,columnInsertionRanges:o,insertionRanges:a,deletionRanges:c,cells:l}=s;i[ga("0x9")]&&n[ga("0x39")](i,ga("0x87"),{tablePasteChainId:r}),o[ga("0x9")]&&n[ga("0x39")](o,ga("0x68"),{tablePasteChainId:r}),a[ga("0x9")]&&n[ga("0x39")](a,"tablePaste",{tablePasteChainId:r,skipNestingCheck:!0}),c[ga("0x9")]&&n.markMultiRangeDeletion(c,ga("0x1b"),{tablePasteChainId:r,skipNestingCheck:!0});const u=n[ga("0x94")](l[ga("0x26")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],ga("0x21"),{tablePasteChainId:r});if(u){const e=u.getMarkers(),n=[];for(const{element:r,attributes:i}of l){if(!i)continue;const o=t[ga("0x74")][ga("0x34")](r),s=e.find((t=>t.getRange().isEqual(o)));s&&n.push([s[ga("0x46")],i])}n[ga("0x9")]&&u[ga("0x40")]("markerAttributes",Object[ga("0x3b")](n))}s=null})))}),{priority:e.priorities.high+10}),t[ga("0x82")][ga("0x88")](ga("0x83")).on(ga("0x2f"),((t,e)=>{const[n,r,,i]=e;if(!s)return;t[ga("0x59")]();const o=n[ga("0x36")],x=r,a=pa(o),c=pa(x);t[ga("0x1e")]=o;let l=null,u=null;if(c||a)if(a&&!c){i[ga("0x3d")](o[ga("0x1f")](0));for(const t of Array[ga("0x52")](x.getChildren()))i[ga("0x77")](t,o,ga("0x10"));const t=s[ga("0x4d")][ga("0x3c")](n.row),e=s[ga("0xa1")].includes(n[ga("0x19")]);t||e||(l=i[ga("0x11")](o))}else c&&!a&&(u=i[ga("0x11")](o));else{const t=i.createElement(ga("0x58")),e=i[ga("0x5d")](ga("0x58"));i.wrap(i[ga("0x11")](o),e),i[ga("0x77")](t,o,0);for(const e of Array[ga("0x52")](x[ga("0x3f")]()))i[ga("0x77")](e,t,ga("0x10"));l=i.createRangeOn(t),u=i[ga("0x34")](e)}const d=Array[ga("0x52")](x.getAttributes())[ga("0x23")]((([t])=>fa.includes(t)));s[ga("0x73")][ga("0x47")]({element:o,attributes:d[ga("0x9")]?Object[ga("0x3b")](d):null}),l&&s[ga("0x2b")][ga("0x47")](l),u&&s.deletionRanges[ga("0x47")](u)}),{priority:ga("0x7a")}),r.on("insertColumns",((e,n)=>{const[i,o={}]=n;if(!s)return;const x=o.at||0,a=o.columns||1;s[ga("0xa1")]=new Array(a).fill(x)[ga("0x26")](((t,e)=>t+e));for(const{cell:e}of r[ga("0x9f")](i,{startColumn:x,endColumn:x+a-1}))s[ga("0x7")][ga("0x47")](t[ga("0x74")][ga("0x34")](e))}),{priority:ga("0x4")}),r.on(ga("0x35"),((e,n)=>{const[i,o={}]=n;if(!s)return;const x=o.at||0,a=o[ga("0x65")]||1;s[ga("0x4d")]=new Array(a)[ga("0x95")](x)[ga("0x26")](((t,e)=>t+e));for(const{cell:e}of r[ga("0x9f")](i,{startRow:x,endRow:x+a-1}))s[ga("0xa")][ga("0x47")](t[ga("0x74")].createRangeOn(e))}),{priority:ga("0x4")}),n[ga("0x29")][ga("0x98")]((e=>{if(e[ga("0x24")]&&e[ga("0x24")][ga("0x91")](ga("0x1b")))return e[ga("0x5c")]?{}:{type:ga("0x1"),content:Jr(t.locale,ga("0x20"))}}));const x=()=>!1;for(const t of[ga("0x1b"),ga("0x68"),ga("0x87"),ga("0x21")])n[ga("0x63")][ga("0x18")](ga("0x1"),t,ga("0x9a"),x),n[ga("0x63")][ga("0x18")](ga("0x9d"),t,ga("0x9a"),x),n[ga("0x63")][ga("0x18")](ga("0x62"),t,ga("0x9a"),x);n._suggestionFactory[ga("0x18")](ga("0x62"),ga("0x21"),ga("0x6c"),x),n._suggestionFactory[ga("0x18")](ga("0x62"),ga("0x21"),ga("0x2e"),((e,n,r)=>{const i=e[ga("0x26")]((t=>t.getContainedElement()))[ga("0x23")]((t=>t)),o=new Map(i[ga("0x26")]((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s[ga("0x73")])e&&o[ga("0x55")](t,e);else if(r&&r[ga("0x64")])for(const[e,n]of Object[ga("0x57")](r[ga("0x64")])){const r=t[ga("0x74")][ga("0x79")][ga("0x88")](e),i=r?r.getRange()[ga("0xe")]():null;i&&o[ga("0x55")](i,n)}t.model[ga("0x50")]((t=>{for(const[e,n]of o)t[ga("0x2d")]({...ha,...n},e)}))}));const a=(e,r)=>{n[ga("0x63")][ga("0x18")](e,ga("0x1b"),r,((i,o,s)=>{t[ga("0x74")][ga("0x50")]((t=>{const x=[];for(const t of i){const e=t[ga("0x2a")][ga("0x78")];e.is("element",ga("0x58"))&&x[ga("0x47")](e)}n[ga("0x63")][ga("0x85")](e,null,r)(i,o,s);for(const e of x)ga("0x6e")!=e[ga("0x4b")].rootName&&t[ga("0x67")](e)}))}))};a(ga("0x1"),"accept"),a("insertion",ga("0x6c")),a(ga("0x9d"),ga("0x2e")),a(ga("0x9d"),ga("0x6c")),n[ga("0x63")][ga("0x18")]("insertion",ga("0x87"),ga("0x6c"),(t=>{const e=t[ga("0x26")]((t=>t[ga("0xe")]())),n=e[0].findAncestor(ga("0x8d")),{minRow:o,maxRow:s}=i._getCoordsForCells(e);r[ga("0x7c")](n,{at:o,rows:s-o+1})})),n[ga("0x63")].registerCustomCallback(ga("0x1"),ga("0x68"),ga("0x6c"),(t=>{const e=t[ga("0x26")]((t=>t.getContainedElement())),n=e[0][ga("0xa0")](ga("0x8d")),{minColumn:o,maxColumn:s}=i._getCoordsForCells(e);r.removeColumns(n,{at:o,columns:s-o+1})}));const c=(t,e)=>{if(!e[ga("0x24")]||!e.subType[ga("0x91")](ga("0x1b")))return;const r=e[ga("0xa2")][ga("0x45")],i=n[ga("0x7d")]()[ga("0x23")]((t=>t[ga("0x97")]&&t[ga("0xa2")]&&t.attributes[ga("0x45")]==r));i[ga("0x9")]&&e.getAllAdjacentSuggestions()[ga("0x9")]!=i[ga("0x9")]&&i[ga("0x33")](((t,e)=>(t[ga("0x12")]=e,e[ga("0x5c")]=t,e)))};function l(t,e=!0){const{id:r}=n[ga("0x14")](t.markerName),i=[ga("0xc"),"ck-suggestion-marker-insertion"],o=n[ga("0x5b")][ga("0x3c")](t[ga("0x56")]);return o&&i[ga("0x47")](ga("0x37")),{classes:i,attributes:{"data-suggestion":r},priority:o&&e?3010:3e3}}n.on(ga("0x53"),c,{priority:ga("0x7a")}),n.on("suggestionUnloaded",c,{priority:ga("0x7a")}),t[ga("0x74")].document[ga("0x7f")]((()=>{let e=!1;const r=Array[ga("0x52")](t[ga("0x74")].document[ga("0x8b")][ga("0x89")]());for(const{name:i,data:o}of r){const{group:r,type:s,id:x}=n._splitMarkerName(i);if(ga("0x8c")!=r||"deletion"!=s||o.oldRange)continue;if(!n[ga("0x43")](x))continue;const a=n.getSuggestion(x)[ga("0x1d")](),c=t.plugins[ga("0x88")](ga("0x4a")).me;for(const t of n[ga("0x7d")]())if(t[ga("0x97")]&&t[ga("0x16")]==c&&ga("0x62")==t[ga("0x8")]&&ga("0x21")==t[ga("0x24")]&&t[ga("0x1d")]()[ga("0x32")]((t=>a.some((e=>e[ga("0x96")](t,!0))))))for(const n of t[ga("0x28")]())n[ga("0x97")]&&(n[ga("0x6c")](),e=!0)}return e})),t.model[ga("0x71")][ga("0x7f")]((e=>{const r=t.commands[ga("0x88")](ga("0x60"));if(!r||!r[ga("0x8a")][ga("0x9b")](e[ga("0x3e")]))return!1;let i=!1;const o=t[ga("0x82")][ga("0x88")](ga("0x4a")).me,s=t.model[ga("0x71")].differ[ga("0xf")](),x=Array[ga("0x52")](t[ga("0x74")][ga("0x71")][ga("0x8b")][ga("0x89")]())[ga("0x23")]((({name:t,data:e})=>{const{group:r,subType:i,authorId:s}=n[ga("0x14")](t);return ga("0x8c")==r&&ga("0x1b")==i&&s==o.id&&!e[ga("0x30")]}));for(const t of s){if(ga("0x77")!=t[ga("0x8")]||ga("0x58")!=t[ga("0x46")]||1!=t.length)continue;const n=e.createRange(t.position,t[ga("0x49")][ga("0x90")](1));if(!x.find((({data:t})=>t[ga("0x81")][ga("0x5f")](n))))for(const{name:t,data:r}of x)if(n[ga("0x96")](r[ga("0x81")])){e.updateMarker(t,{range:n}),i=!0;break}}return i})),t[ga("0x74")][ga("0x71")][ga("0x7f")]((e=>{let r=!1;const i=t.plugins[ga("0x88")](ga("0x4a")).me,o=n[ga("0x7d")]()[ga("0x23")]((t=>t.isInContent&&t[ga("0x16")]==i)),s=new Set,x=new Set;for(const t of o)if("tablePaste"==t[ga("0x24")])for(const e of t[ga("0x17")]()){const n=e[ga("0x9e")]()[ga("0xe")]();if(n)if(n.is(ga("0x3a"),ga("0x58"))&&pa(n)){t[ga("0x70")](e[ga("0x46")]),s[ga("0x44")](n),r=!0;const i=n[ga("0x4c")],o=n[ga("0x61")],a=i&&i.is(ga("0x3a"),ga("0x58")),c=o&&o.is(ga("0x3a"),ga("0x58"));a&&!s.has(i)&&x.add(i),c&&!s[ga("0x9b")](o)&&x[ga("0x44")](o)}else n.is(ga("0x3a"),ga("0x5e"))&&n[ga("0x86")]&&(t[ga("0x70")](e[ga("0x46")]),r=!0)}else if(ga("0x21")==t[ga("0x24")]){if(!t[ga("0xa2")]||!t[ga("0xa2")].tablePasteChainId)continue;const e=t.attributes.markerAttributes;if(e&&Object[ga("0x27")](e)[ga("0x9")])continue;const n=t[ga("0xa2")].tablePasteChainId;let i=!0,s=!0;for(const e of o)if(e[ga("0x24")]&&e.subType.startsWith(ga("0x1b"))){if(!e[ga("0xa2")][ga("0x45")]){s=!1;break}if(e.id!=t.id&&e[ga("0xa2")][ga("0x45")]==n){i=!1;break}}s&&i&&(t[ga("0xb")](),r=!0)}for(const t of s)e[ga("0x3d")](t);for(const t of x)e[ga("0x67")](t);return r})),t[ga("0x75")][ga("0x84")]("editingDowncast").markerToHighlight({model:ga("0x72"),view:(t,e)=>l(t),converterPriority:"high"}),t[ga("0x75")].for("dataDowncast")[ga("0x69")]({model:ga("0x72"),view:(t,e)=>e[ga("0x6")][ga("0x2c")]?l(t,!1):null,converterPriority:"high"});const u=t[ga("0x3")][ga("0x42")];this.listenTo(u[ga("0x71")],ga("0x6b"),((t,e)=>{const n=[];for(const t of u[ga("0x11")](e[ga("0x13")])[ga("0x15")]())t.is(ga("0x3a"),ga("0x1a"))&&n[ga("0x47")](t);u[ga("0x50")]((t=>{for(const e of n)t[ga("0x6a")](t[ga("0x11")](e),t[ga("0x93")](e)),t[ga("0x3d")](e)}))}))}}function pa(t){if(t[ga("0x86")])return!0;const e=t[ga("0x1f")](0);return e.is(ga("0x3a"),ga("0x5e"))&&e[ga("0x86")]}function ba(t,e={},n){for(const{isAnchor:r,cellHeight:i,cellWidth:o}of n.createTableWalker(t,{includeAllSlots:!0,...e}))if(!r||1!=i||1!=o)return!1;return!0}const Ea=["bind","TableColumnResizeEditing","get","change","selection","TrackChangesEditing","table","commandParams","columnWidths","formatGroupId","markBlockFormat","getSelectedElement","plugins","subType","Users","type","format","handleResizeTableWidthCommand","formatBlock","data","locale","_descriptionFactory","getAttribute","model","_suggestionFactory","document","*Format:* resize table","editor","tableWidth","registerCustomCallback","getSuggestions","getSuggestionCallback","resizeTable","handleSuggestionDescription","discard"];var _a,Ta;_a=Ea,Ta=289,function(t){for(;--t;)_a.push(_a.shift())}(++Ta);const ya=function(t,e){return Ea[t-=0]};class Ca extends t.Plugin{afterInit(){if(!this[ya("0x12")].plugins.has("TableColumnResizeEditing"))return;const t=this[ya("0x12")][ya("0x3")].get(ya("0x1f"));t.enableCommand("resizeTableWidth",this[ya("0x8")][ya("0x1a")](this)),t[ya("0xf")].registerCustomCallback(ya("0x9"),"resizeTable","accept",t[ya("0xf")][ya("0x16")](ya("0x9"),null,ya("0x19"))),t._suggestionFactory[ya("0x14")](ya("0x9"),ya("0x17"),ya("0x19"),t[ya("0xf")][ya("0x16")](ya("0x9"),null,"accept")),t[ya("0xc")].registerDescriptionCallback(this[ya("0x18")][ya("0x1a")](this))}handleResizeTableWidthCommand(t,e){const n=this[ya("0x12")][ya("0x3")][ya("0x1c")]("TrackChangesEditing"),r=this[ya("0x12")][ya("0x3")].get(ya("0x1b")),i=e[ya("0x20")]||this[ya("0x12")][ya("0xe")][ya("0x10")][ya("0x1e")][ya("0x2")]();this[ya("0x12")].model[ya("0x1d")]((()=>{const o=r.getColumnGroupElement(i);let s=o?r.getTableColumnsWidths(o):null,x=i[ya("0xd")]("tableWidth")||null;const a=e[ya("0x13")]||x,c=e.columnWidths||s,l=this.editor.plugins.get(ya("0x5")).me;for(const t of n[ya("0x15")]()){const e=t.getContainedElement();if("resizeTable"===t[ya("0x4")]&&e===i){t.author!==l&&t.discard();const e=t[ya("0xa")][ya("0x21")];x=e[0][ya("0x13")],s=e[0][ya("0x22")];break}}t({table:i,tableWidth:a,columnWidths:c}),n[ya("0x1")](i,{commandName:"resizeTableWidth",commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:ya("0x17")},[],ya("0x17"))}))}[ya("0x18")](t){if(ya("0x9")!=t.type&&"formatInline"!=t[ya("0x6")])return;const{data:e}=t;if(e&&ya("0x17")===e[ya("0x0")]){const t=ya("0x11");return{type:ya("0x7"),content:Jr(this[ya("0x12")][ya("0xb")],t)}}}}const Aa=["TrackChangesEditing","Template","insertTemplate","has","plugins","editor","get","afterInit"];var ka,Ia;ka=Aa,Ia=184,function(t){for(;--t;)ka.push(ka.shift())}(++Ia);const Ra=function(t,e){return Aa[t-=0]};class Sa extends t.Plugin{[Ra("0x7")](){const t=this[Ra("0x5")];t.plugins[Ra("0x3")](Ra("0x1"))&&t[Ra("0x4")][Ra("0x6")](Ra("0x0")).enableCommand(Ra("0x2"))}}const va=["locale","editor","_descriptionFactory","plugins","ELEMENT_TABLE_OF_CONTENTS","tableOfContents","TrackChangesEditing","enableCommand","insertTableOfContents","get","afterInit","commands"];var Na,La;Na=va,La=140,function(t){for(;--t;)Na.push(Na.shift())}(++La);const Ma=function(t,e){return va[t-=0]};class wa extends t.Plugin{[Ma("0x2")](){const t=this[Ma("0x5")];if(!t[Ma("0x3")][Ma("0x1")]("insertTableOfContents"))return;t[Ma("0x7")][Ma("0x1")](Ma("0xa"))[Ma("0xb")](Ma("0x0"));const e=t[Ma("0x7")][Ma("0x1")](Ma("0xa")),n=t[Ma("0x4")];e[Ma("0x6")].registerElementLabel(Ma("0x9"),(t=>Jr(n,Ma("0x8"),t)))}}const Oa=["_splitMarkerName","differ","TrackChangesEditing","registerElementLabel","newRange","document","start","updateMarker","plugins","createRange","model","afterInit","forward","title-content","isEqual","end","editor","isTouching","registerPostFixer","removeMarker","element","ELEMENT_TITLE","isCollapsed","get","has","Title"];var Fa,Da;Fa=Oa,Da=131,function(t){for(;--t;)Fa.push(Fa.shift())}(++Da);const Pa=function(t,e){return Oa[t-=0]};class Ba extends t.Plugin{[Pa("0xa")](){const t=this[Pa("0xf")];if(!t[Pa("0x7")][Pa("0x17")](Pa("0x18")))return;const e=t.plugins[Pa("0x16")](Pa("0x1"));e._descriptionFactory[Pa("0x2")](Pa("0xc"),(()=>Jr(t.locale,Pa("0x14")))),t.model[Pa("0x4")][Pa("0x11")]((n=>{let r=!1;const i=Array.from(t[Pa("0x9")][Pa("0x4")][Pa("0x0")].getChangedMarkers());for(const{name:o,data:s}of i){const{group:i}=e[Pa("0x19")](o);if("suggestion"!==i||!s[Pa("0x3")])continue;const x=s.newRange,a=x[Pa("0xe")].nodeBefore;if(!a||!a.is(Pa("0x13"),Pa("0xc")))continue;if(!x[Pa("0x5")][Pa("0x10")](x[Pa("0xe")]))continue;const c=t[Pa("0x9")].schema.getNearestSelectionRange(x[Pa("0xe")],Pa("0xb"));if(c&&c[Pa("0x15")]){const t=n[Pa("0x8")](x[Pa("0x5")],c[Pa("0x5")]);t[Pa("0xd")](x)||(n[Pa("0x6")](o,{range:t}),r=!0)}r||(n[Pa("0x12")](o),r=!0)}return r}))}}const Ua=["redo","enableCommand","UndoEditing","has","undo","get","TrackChangesEditing","plugins"];var ja,Ga;ja=Ua,Ga=322,function(t){for(;--t;)ja.push(ja.shift())}(++Ga);const Va=function(t,e){return Ua[t-=0]};class Ha extends t.Plugin{afterInit(){const t=this.editor,e=t[Va("0x5")][Va("0x3")](Va("0x4"));t.plugins[Va("0x1")](Va("0x0"))&&(e[Va("0x7")](Va("0x2")),e[Va("0x7")](Va("0x6")))}}const za=["toggleTableCaption","enableCommand","plugins","afterInit","has","editor","get"];var Wa,Ka;Wa=za,Ka=270,function(t){for(;--t;)Wa.push(Wa.shift())}(++Ka);const qa=function(t,e){return za[t-=0]};class Xa extends t.Plugin{static get requires(){return[Jx]}[qa("0x6")](){const t=this[qa("0x1")];t[qa("0x5")][qa("0x0")]("TableCaptionEditing")&&t.plugins[qa("0x2")]("TrackChangesEditing")[qa("0x4")](qa("0x3"))}}const $a=["tableWidth","tableCellBorderColor","subType","has","_getSuggestion","format","document","handleSuggestionDescription","formatBlock","pluginName","tableCellBorderWidth","tableCellWidth","batch","tableCellBorderStyle","accept","selection","plugins","tableHeight","tableBorderColor","TableUtils","TableCellPropertiesEditing","data","tableCellBackgroundColor","enableCommand","TrackChangesEditing","findAncestor","locale","get","tableBorderStyle","tableBorderWidth","model","commandParams","table","discard","join","handleDiscardAction","tableCellProperties","getSelectionAffectedTableCells","TablePropertiesEditing","registerDescriptionCallback","*Format:* change table properties","tableCellHeight","change","getSuggestions","getSuggestionCallback","tableProperties","setAttribute","getFirstPosition","tableCellPadding","_descriptionFactory","tableCellVerticalAlignment","tableCellHorizontalAlignment","editor","_handlePropertyChange","registerCustomCallback","_suggestionFactory","removeAttribute","afterInit","nodeAfter"];var Za,Ya;Za=$a,Ya=232,function(t){for(;--t;)Za.push(Za.shift())}(++Ya);const Ja=function(t,e){return $a[t-=0]};class Qa extends t.Plugin{constructor(t){super(t),this[Ja("0x31")]=[Ja("0x16"),Ja("0x20"),Ja("0x21"),"tableAlignment",Ja("0x4"),Ja("0x15"),"tableBackgroundColor"],this[Ja("0x28")]=[Ja("0x5"),Ja("0x11"),Ja("0xe"),Ja("0x34"),Ja("0xf"),Ja("0x2d"),Ja("0x1a"),Ja("0x37"),Ja("0x36")]}static get[Ja("0xd")](){return"TrackChangesTableProperties"}[Ja("0x2")](){const t=this[Ja("0x38")][Ja("0x14")].get("TrackChangesEditing");if(this[Ja("0x38")].plugins[Ja("0x7")](Ja("0x2a"))){for(const e of this[Ja("0x31")])t[Ja("0x1b")](e,((t,n)=>{const r=this.editor.model.document[Ja("0x13")][Ja("0x33")]()[Ja("0x1d")](Ja("0x24"));this._handlePropertyChange(e,[r],this[Ja("0x31")],Ja("0x31"),t,n)}));t[Ja("0x0")][Ja("0x3a")](Ja("0xc"),Ja("0x31"),Ja("0x12"),t._suggestionFactory[Ja("0x30")](Ja("0xc"),null,Ja("0x25"))),t[Ja("0x0")][Ja("0x3a")]("formatBlock",Ja("0x31"),"discard",((t,e)=>this[Ja("0x27")](this[Ja("0x31")],t,e))),t._suggestionFactory.registerCustomCallback(Ja("0xc"),Ja("0x31"),Ja("0x26"),(()=>!1))}if(this[Ja("0x38")].plugins[Ja("0x7")](Ja("0x18"))){for(const e of this.tableCellProperties)t[Ja("0x1b")](e,((t,n)=>{const r=this[Ja("0x38")].plugins[Ja("0x1f")](Ja("0x17"))[Ja("0x29")](this[Ja("0x38")][Ja("0x22")][Ja("0xa")][Ja("0x13")]);this[Ja("0x39")](e,r,this[Ja("0x28")],Ja("0x28"),t,n)}));t[Ja("0x0")][Ja("0x3a")](Ja("0xc"),"tableCellProperties",Ja("0x12"),t[Ja("0x0")].getSuggestionCallback(Ja("0xc"),null,"discard")),t[Ja("0x0")][Ja("0x3a")](Ja("0xc"),Ja("0x28"),Ja("0x25"),((t,e)=>this[Ja("0x27")](this[Ja("0x28")],t,e))),t[Ja("0x0")][Ja("0x3a")]("formatBlock",Ja("0x28"),Ja("0x26"),(()=>!1))}t[Ja("0x35")][Ja("0x2b")]((t=>this[Ja("0xb")](t)))}_handlePropertyChange(t,e,n,r,i,o){const s=this[Ja("0x38")][Ja("0x14")][Ja("0x1f")](Ja("0x1c"));this[Ja("0x38")][Ja("0x22")].enqueueChange(o[Ja("0x10")],(()=>{for(const t of e)if(this._getSuggestion(t,r))i(o);else{const e={};for(const r of n){const n=t.getAttribute(r);void 0!==n&&(e[r]=n)}i(o),s.markBlockFormat(t,{commandParams:[e]},[],r)}}))}handleDiscardAction(t,e,n){const r=e[0].start[Ja("0x3")],i=n[Ja("0x23")][0];this[Ja("0x38")][Ja("0x22")][Ja("0x2e")]((e=>{for(const n of t)void 0!==i[n]?e[Ja("0x32")](n,i[n],r):e[Ja("0x1")](n,r)}))}[Ja("0xb")](t){if(t[Ja("0x19")])switch(t.subType){case Ja("0x31"):return{type:Ja("0x9"),content:Jr(this.editor[Ja("0x1e")],Ja("0x2c"))};case"tableCellProperties":return{type:"format",content:Jr(this[Ja("0x38")].locale,"*Format:* change table cell properties")}}}[Ja("0x8")](t,e){const n=this.editor.plugins[Ja("0x1f")](Ja("0x1c"));for(const r of n[Ja("0x2f")]({skipNotAttached:!0})){const n=r.getContainedElement();if(r[Ja("0x6")]===e&&n===t)return r}return null}}var tc=Function.prototype,ec=Object.prototype,nc=tc.toString,rc=ec.hasOwnProperty,ic=nc.call(Object);const oc=function(t){if(!xe(t)||"[object Object]"!=gt(t))return!1;var e=xn(t);if(null===e)return!0;var n=rc.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&nc.call(n)==ic};const sc=function(t){return oc(t)?void 0:t};var xc=it?it.isConcatSpreadable:void 0;const ac=function(t){return ge(t)||de(t)||!!(xc&&t&&t[xc])};const cc=function t(e,n,r,i,o){var s=-1,x=e.length;for(r||(r=ac),o||(o=[]);++s<x;){var a=e[s];n>0&&r(a)?n>1?t(a,n-1,r,i,o):sn(o,a):i||(o[o.length]=a)}return o};const lc=function(t){return(null==t?0:t.length)?cc(t,1):[]};const uc=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)};var dc=Math.max;const gc=function(t,e,n){return e=dc(void 0===e?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=dc(r.length-e,0),s=Array(o);++i<o;)s[i]=r[e+i];i=-1;for(var x=Array(e+1);++i<e;)x[i]=r[i];return x[e]=n(s),uc(t,this,x)}};const fc=function(t){return function(){return t}};const hc=ee?function(t,e){return ee(t,"toString",{configurable:!0,enumerable:!1,value:fc(e),writable:!0})}:function(t){return t};var mc=Date.now;const pc=function(t){var e=0,n=0;return function(){var r=mc(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(hc);const bc=function(t){return pc(gc(t,void 0,lc),t+"")}((function(t,e){var n={};if(null==t)return n;var r=!1;e=ur(e,(function(e){return e=mr(e,t),r||(r=e.length>1),e})),oe(t,dn(t),n),r&&(n=tr(n,7,sc));for(var i=e.length;i--;)Wr(n,e[i]);return n})),Ec=["formatBlock:chain","substring","toUpperCase","_findSuggestions","_isRegisteredAttribute","nodeAfter","isObject","_descriptionFactory","_saved","markerName","getFirstRange","authorName","includes","_cutOutSuggestionMarker","_commentsRepository","_initAriaMarkerChangeAnnouncements","getUser","Users","multipleBlocks","_getAttributeKey","options","addMarker:suggestion:formatBlock","createRangeIn","change","markInsertion","deletion:","deletion:accept","for","chain","_breakSuggestionMarker","_isBlockAttribute","toViewElement","size","add","activeMarkers","isUndo","targetPosition","documentSelection","attribute:","isNextTo","detach","suggestion","buildSuggestion","substr","normal","unshift","showSuggestionHighlights","trackChangesCommand","_joinWithAdjacentSuggestions","insertion:join","clone","low","_updateSuggestionData","addMarker:suggestion:attribute","suggestionChanged","createRange","insertContent","return","containerElement","isMultiRange","open","hasCommentThread","never","removeComment","pluginName","getItems","default","trackChanges.trackFormatChanges","start","meta","selection","createdAt","markAttributeChange","ck-suggestion-marker-formatBlock","formatGroupId","markerReady","originalSuggestionId","differ","getRange","subType","move","backward","splice","insertion:discard","insertion:","commandName","isInsideObject","getChanges","removeMarker:suggestion:attribute","oldValue","root","ck-suggestion-marker-formatInline","name","getAttribute","addMarkerName","formatInline:join","accepted","update:suggestion","formatInline","highest","acceptSelectedSuggestions","elementEnd","_checkSuggestionCorrectness","addSuggestionData","getAllAdjacentSuggestions","upcast","howMany","isOwn","discardSuggestion","_rangeIsInLocalUserInsertion","discardAllSuggestions","_getExternalAuthor","multi","_refreshAttributeSuggestionsChain","groupId","accept","_registerInlineAttribute","_afterChanges","keys","ready","mapper","external:","define","split","moveTargetPosition","map","_addThreadToSuggestion","_registerBlockAttribute","fromRange","acceptSuggestion","$marker","length","markInlineFormat","parent","discardSelectedSuggestions","formatInline:","ariaLiveAnnouncer","isTouching","isIntersecting","type","concat","isBefore","_getAuthorFromId","from","addMarker","removeClass","error-saving-suggestion-data-suggestion-discarded","enqueueChange","getContainedElement","insertion:accept","dataDowncast","batch","_setSuggestionData","some","newRange","getWalker","addSuggestion","init","formatBlock:join","attribute:discard","forward","suggestionLoaded","hasComments","skipNestingCheck","isAtEnd","collaboration.channelId","_processAttributeSuggestions","_blockAttributeKeys","_defaultCallbacks","trackChanges","isCollapsed","attributeKey","discard","track-changes-adapter-missing-getsuggestion","PENDING_ACTION_SUGGESTION","forceDefaultExecution","editing","track-changes-adapter-already-set","enableReadOnlyMode","removeMarker:suggestion:formatBlock","insertion:chain","next","isExternal","change:_saved","schema","isArray","suggestion:","attribute:join","createRangeOn","isBlock","stopListening","deletion","splitPosition","get","_suggestionState","_suggestionFactory","bindElementToMarker","_trackFormatChanges","oldRange","startsWith","tablePasteChainId","forEach","_reduceSuggestionAttributeRange","deleteContent","_getSuggestionData","high","track-changes-suggestion-not-found","track-changes-suggestion-data-mismatch","isIntersectingWithRange","authoredAt","element","getChangedMarkers","getCustomProperty","filter","every","deletion:chain","registerCustomCallback","_enableDefaultAttributesIntegration","change:data","_removeSuggestion","_inlineAttributeKeys","createPositionAfter","config","registerPostFixer","_customCallbacks","consumable","previous","notReady","warn","ck-suggestion-marker--active","find","_handleNewSuggestionMarker","isSelectable","createPositionAt","key","_SUGGESTION_ANNOUNCEMENT","$elementName","_model","creator","_addSuggestionMarker","range","getIntersection","document","rejected","delete","sort","rename","_adapter","getRanges","isRemovable","getMarkers","_getMarkerAnnouncementText","formatBlock:discard","rootName","addComment","getShiftedBy","getDifference","author","createPositionBefore","position","commentThread","model","unbindElementFromMarkerName","remove","markerToHighlight","PendingActions","_isDataLoaded","has","nodeBefore","getSuggestionCallback","LEAVE","formatBlock:accept","addClass","requires","fetchCommentThread","ENTER","announce","removeMarker","_element","_processAttributeChanges","set","getNearestSelectionRange","attributes","getMultiRangeId","widget","markBlockFormat","@external","stop","_isForcedDefaultExecutionBlock","createElement","enableCommand","_recordAttributeChanges","updateSuggestion","values","getSuggestion","containsPosition","item","isLocal","refresh","formatBlock","ck-suggestion-marker","reconvertMarker","plugins","before","formatInline:chain","getLastMatchingPosition","fire","isInContent","_reduceExistingSuggestions","_suggestions","conversion","_registerDefaultCallbacks","markerToData","attributeNewValue","removeMarkers","_joinSuggestions","addRange","assign","comments","getSuggestions","always","elementToElement","markers","_refreshSuggestionsChain","containsItem","updateMarker","_createSuggestion","isAfter","markMultiRangeBlockFormat","deletion:join","after","isLimit","_recordAttributeSuggestions","editingDowncast","_mergeNestedSuggestions","containsRange","markerNameToElements","lowest","execute","attributeOldValue","setSelection","end","join","writer","value","_setSuggestionRange","CommentsRepository","attribute","$text","setAttribute","addUser","dataToMarker","push","elementStart","$graveyard","_editor","_onDiscard","getAncestors","marker-count","$textProxy","Creating a suggestion for attribute with too long attribute key. This may lead to errors. Change the attribute key to a value shorter than 37 characters.","consume","listenTo","data-suggestion","containsRangeInObject","formatInline:discard","getFirstMarker","addHighlight","removed","formatBlock:","toJSON","editor","adapter","locale","markMultiRangeInsertion","then","insertion","commands","group","change:activeMarkers","_splitMarkerName","ck-suggestion-marker-","data","acceptAllSuggestions","removeAttribute","isAtStart","_enabledCommands","isEqual"];var _c,Tc;_c=Ec,Tc=160,function(t){for(;--t;)_c.push(_c.shift())}(++Tc);const yc=function(t,e){return Ec[t-=0]},Cc=yc("0x4c");class Ac extends t.Plugin{static get[yc("0x71")](){return["CommentsRepository",o.Users,t.PendingActions,ai,gi,Ei,Ai,Fi,Ni,ji,Ki,io,Ao,vo,Fo,jo,Ko,Yo,ns,xs,ds,ys,ps,Rs,Ms,Ps,qs,tx,Vs,co,mo,ox,lx,hx,_x,Ix,Lx,Dx,Vx,qx,Jx,ia,ca,Xa,ma,Ca,wa,Qa,Sa,Ba,Ha]}static get[yc("0x124")](){return"TrackChangesEditing"}constructor(t){function e(t){return t.map((t=>String.fromCharCode(t)))[yc("0xb6")]("")}super(t),this[yc("0xac")]=!1,this[yc("0x78")](yc("0x106"),[]),this.on(yc("0xdb"),((e,n,r,i)=>{this._model[yc("0xfb")]((()=>{for(const e of[...i,...r])this[yc("0x4d")][yc("0xa2")].has(e)&&t[yc("0x10")][yc("0x8d")](e)}))})),this[yc("0xeb")]=new ri(this[yc("0xd3")].model[yc("0x18")],this.editor.locale),this._adapter=null,this[yc("0x23")]=new kc(this.editor),this[yc("0x95")]=new Map,this[yc("0xf2")]=t[yc("0x8e")][yc("0x21")](yc("0xba")),this[yc("0xe2")]=new Set,this[yc("0x4d")]=this[yc("0xd3")][yc("0x65")],this._suggestionState=new WeakMap,this._isForcedDefaultExecutionBlock=!1,this._blockAttributeKeys=new Set([yc("0x4c")]),this._inlineAttributeKeys=new Set,t[yc("0x3e")][yc("0x15e")](yc("0x127"),"default"),this[yc("0x25")]=t[yc("0x3e")][yc("0x21")](yc("0x127")),t.config[yc("0x15e")]("trackChanges.mergeNestedSuggestions",!0),this[yc("0xae")]=t[yc("0x3e")][yc("0x21")]("trackChanges.mergeNestedSuggestions"),this[yc("0x113")]=new d(t,this[yc("0xe2")]),this[yc("0xf3")](),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,56,48,52,48,54])}[yc("0x181")](){const t=this[yc("0xd3")],n=(t,e)=>{if("attribute"!=t)return yc("0xdd")+t;const n=e.split("|")[0];return this[yc("0x102")](n)?"ck-suggestion-marker-formatBlock":yc("0x13f")};t.conversion.for(yc("0xad")).markerToHighlight({model:yc("0x10d"),view:t=>{const{id:e,type:r,subType:i}=this[yc("0xdc")](t.markerName),o=[yc("0x8c"),n(r,i)];let s=3e3;return this[yc("0x106")][yc("0xf0")](t.markerName)&&(o[yc("0xc0")](yc("0x45")),s=3010),yc("0x1f")==r&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t.conversion[yc("0xff")](yc("0x17a"))[yc("0x105")]((e=>{e.on("addMarker:suggestion",((e,n,r)=>{if(!r[yc("0xf8")].showSuggestionHighlights)return;const i=n[yc("0x88")];if(!i)return;const o=r[yc("0x15c")][yc("0x103")](i);t[yc("0x65")][yc("0x18")][yc("0xea")](i)&&o&&!o[yc("0x34")](yc("0x7c"))&&o.is(yc("0x11e"))&&(0,x.toWidget)(o,r.writer)}),{priority:yc("0x2d")})})),t[yc("0x96")][yc("0xff")](yc("0x17a"))[yc("0x68")]({model:"suggestion",view:(t,e)=>{if(!e[yc("0xf8")][yc("0x112")])return null;const{type:r,subType:i}=this[yc("0xdc")](t[yc("0xed")]);return{classes:[yc("0x8c"),n(r,i)],priority:3e3}}});const r=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(r,i,o)=>{if(!i.item)return;const{id:s}=this[yc("0xdc")](i[yc("0xed")]);if(n){const t=this._suggestions[yc("0x21")](s),e=this[yc("0xf7")](t);if(!this[yc("0x102")](e))return}if(i[yc("0x88")].is(yc("0x12a")))return void o[yc("0x41")][yc("0xc9")](i[yc("0x88")],r[yc("0x140")]);const x=o.mapper[yc("0x103")](i[yc("0x88")]);if(i[yc("0x88")].is(yc("0x32"))&&t[yc("0x65")].schema[yc("0x1d")](i[yc("0x88")])&&!x.getCustomProperty(yc("0xcf"))){o[yc("0xb7")][yc("0x70")]([yc("0x8c"),yc("0x12d")],x),o[yc("0xb7")][yc("0xbd")](yc("0xcb"),s,x),o[yc("0x15c")][yc("0x24")](x,i.markerName),e&&(this[yc("0x106")].includes(i[yc("0xed")])?o.writer[yc("0x70")](yc("0x45"),x):o[yc("0xb7")][yc("0x175")](yc("0x45"),x));for(const e of t[yc("0x65")][yc("0xfa")](i.item)[yc("0x125")]())o[yc("0x41")][yc("0xc9")](e,r[yc("0x140")]);o.consumable.consume(i.item,r.name)}};t[yc("0x96")].for(yc("0x17a"))[yc("0x105")]((t=>{t.on("addMarker:suggestion:formatBlock",((t,e,n)=>{n[yc("0xf8")][yc("0x112")]&&r({showActiveMarkers:!1})(t,e,n)}),{priority:yc("0x147")})})),t[yc("0x96")].for(yc("0x17a"))[yc("0x105")]((t=>{t.on(yc("0x119"),((t,e,n)=>{n.options[yc("0x112")]&&r({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:"highest"})})),t.conversion.for(yc("0x17a"))[yc("0x98")]({model:yc("0x10d"),view:(t,e)=>e.options[yc("0x112")]?null:{group:yc("0x10d"),name:t[yc("0x10f")](11)}}),t[yc("0x96")][yc("0xff")](yc("0x14d"))[yc("0xa1")]({view:{name:"suggestion",attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=yc("0x1a")+t[yc("0x141")]("suggestion-type")+":"+t[yc("0x141")]("id");return t.getAttribute(yc("0xc6"))&&(n+=":"+t[yc("0x141")]("marker-count")),e[yc("0x81")](yc("0x166"),{"data-name":n})}}),t[yc("0x96")][yc("0xff")](yc("0x14d"))[yc("0xbf")]({view:"suggestion"}),t[yc("0x96")][yc("0xff")]("editingDowncast")[yc("0x105")]((t=>{t.on(yc("0xf9"),r(),{priority:"high"})})),t.conversion[yc("0xff")](yc("0xad")).add((t=>{t.on(yc("0x119"),r({isAttributeSuggestion:!0}),{priority:yc("0x2d")})})),t.conversion[yc("0xff")](yc("0xad")).add((t=>{t.on(yc("0x13"),((t,e,n)=>{const r=n[yc("0x15c")][yc("0xb0")](e[yc("0xed")]);if(r)for(const t of r)t[yc("0x34")]("addHighlight")||(n[yc("0xb7")][yc("0x175")]([yc("0x8c"),yc("0x12d"),"ck-suggestion-marker--active"],t),n[yc("0xb7")][yc("0xe0")](yc("0xcb"),t),n[yc("0x15c")][yc("0x66")](t,e[yc("0xed")]))}),{priority:yc("0x2d")})})),t[yc("0x96")][yc("0xff")](yc("0xad"))[yc("0x105")]((t=>{t.on(yc("0x13c"),((t,e,n)=>{const r=n[yc("0x15c")].markerNameToElements(e[yc("0xed")]);if(!r)return;const{id:i}=this[yc("0xdc")](e[yc("0xed")]),o=this[yc("0x95")].get(i),s=this[yc("0xf7")](o);if(this._isBlockAttribute(s))for(const t of r)t[yc("0x34")](yc("0xcf"))||(n.writer.removeClass([yc("0x8c"),yc("0x12d"),yc("0x45")],t),n[yc("0xb7")][yc("0xe0")](yc("0xcb"),t),n.mapper[yc("0x66")](t,e[yc("0xed")]))}),{priority:yc("0x2d")})})),t[yc("0x65")][yc("0x52")][yc("0x3f")]((e=>{let n=!1;const r=Array[yc("0x173")](t[yc("0x65")].document[yc("0x131")][yc("0x33")]()),i=new Set;for(const{name:x,data:a}of r){const{group:r,type:c,subType:l,id:u}=this._splitMarkerName(x);if(yc("0x10d")!==r)continue;const d=this[yc("0x95")][yc("0x21")](u);if(null!=a[yc("0x17e")]){yc("0x146")==c&&(n=n||Sc(a[yc("0x17e")],x,e,t[yc("0x65")][yc("0x18")]));const r=yc("0xbb")==c&&this[yc("0x102")](l[yc("0x15f")]("|")[0]);if(a[yc("0x17e")][yc("0xa")]||"$graveyard"==a[yc("0x17e")][yc("0x13e")][yc("0x5d")]||yc("0x8b")==c&&!Nc(a[yc("0x17e")])||r&&!Nc(a[yc("0x17e")])||"deletion"==c&&(Rc(s=a[yc("0x17e")])||(o=s)[yc("0x128")][yc("0x169")]==o[yc("0xb5")].nodeBefore&&o.start[yc("0x4")]))e[yc("0x75")](x),n=!0;else{if(!d||!d[yc("0x93")])continue;i.add(d)}}}var o,s;return i[yc("0x104")]>0&&(n=!!this[yc("0x114")](i)||n),n})),t[yc("0x65")].document[yc("0x3f")]((e=>{let n=!1;for(const r of t.model[yc("0x52")][yc("0x131")][yc("0x13b")]())if("insert"==r[yc("0x16f")])for(const r of this._suggestions.values()){if(r.isMultiRange||!r[yc("0x93")])continue;const i=yc("0x8b")==r.type,o=this[yc("0xf7")](r),s=o&&this[yc("0x102")](o);if(!i&&!s)continue;const x=r[yc("0xee")]();if(x[yc("0x128")][yc("0x169")]!=x[yc("0xb5")][yc("0x169")]&&!x[yc("0xb5")][yc("0x4")]){const i=t.model[yc("0x49")](x[yc("0x128")][yc("0xe9")],yc("0xb5")),o=t[yc("0x65")][yc("0x11b")](x[yc("0x128")],i);e[yc("0xa5")](r[yc("0xce")](),{range:o}),n=!0}}return n})),t[yc("0x65")][yc("0x52")].registerPostFixer((t=>this._processAttributeChanges(t))),t[yc("0x65")].document[yc("0x3f")]((t=>!t.batch[yc("0x89")]&&this[yc("0x6")](t))),t.model.on(yc("0x159"),(()=>{this[yc("0xac")]=!1})),t[yc("0x65")][yc("0x52")].on(yc("0x3a"),((n,r)=>{if(!r[yc("0x89")]||r[yc("0x107")])return;if(!this._recordAttributeSuggestions)return;const i=t[yc("0x65")][yc("0x52")][yc("0x131")][yc("0x13b")]();if(0==i[yc("0x167")])return;const o=[],s=i[yc("0x35")]((t=>"attribute"==t[yc("0x16f")])),x=i.filter((t=>"insert"==t[yc("0x16f")]&&yc("0xbc")!=t[yc("0x140")])),a=i[yc("0x35")]((t=>"remove"==t[yc("0x16f")]&&"$text"!=t[yc("0x140")]));for(const e of s)this[yc("0xe8")](e[yc("0xb")])&&o.push({key:e.attributeKey,newValue:e.attributeNewValue,oldValue:e.attributeOldValue,range:Lc(e[yc("0x50")],t[yc("0x65")])});for(const e of x){const n=a.find((t=>t[yc("0x76")]===e[yc("0x76")]));if(n){const r=Mc(e[yc("0x63")][yc("0xe9")],t[yc("0x65")]);n.name!==e[yc("0x140")]&&o.push({key:yc("0x4c"),newValue:e[yc("0x140")],oldValue:n[yc("0x140")],range:r});for(const[t,i]of n.attributes){if(!this._isRegisteredAttribute(t))continue;const n=e.attributes[yc("0x21")](t);i!==n&&o.push({key:t,newValue:n,oldValue:i,range:r})}for(const[t,i]of e[yc("0x7a")])this[yc("0xe8")](t)&&(n[yc("0x7a")][yc("0x6b")](t)||o[yc("0xc0")]({key:t,newValue:i,oldValue:null,range:r}))}}0!=o[yc("0x167")]&&t.model.enqueueChange(r,(t=>{const n=(0,e.uid)();for(const{range:t,key:e,oldValue:r,newValue:i}of o)this[yc("0x12c")](t,e,r,i,{groupId:n});this[yc("0x94")](t,o)}))}),{priority:yc("0xb1")}),t.model.markers.on(yc("0x145"),((t,e,n)=>{if(null==n){const{id:t}=this._splitMarkerName(e[yc("0x140")]),n=this[yc("0x95")][yc("0x21")](t);n&&n[yc("0x142")](e[yc("0x140")])}})),t.model[yc("0x52")].on(yc("0x3a"),(()=>{const e=Array[yc("0x173")](t[yc("0x65")][yc("0x52")].differ[yc("0x33")]()).filter((t=>yc("0x10d")===this[yc("0xdc")](t.name)[yc("0xda")]));if(0===e.length)return;e[yc("0x55")](((t,e)=>{const n=t[yc("0xde")][yc("0x26")],r=e[yc("0xde")][yc("0x26")];return null===n&&null===r?0:null===n&&null!==r?-1:null!==n&&null===r?1:n.start[yc("0x171")](r[yc("0x128")])?-1:1}));const n=new Set,r=new Set;for(const{name:t,data:i}of e){const{id:e}=this[yc("0xdc")](t);if(null===i[yc("0x26")]){const e=this[yc("0x47")](t);r[yc("0x105")](e)}else{const t=this[yc("0x95")][yc("0x21")](e);null!==i[yc("0x17e")]||t[yc("0x93")]?(n.add(t.head),r[yc("0x105")](t)):this[yc("0x3b")](t)}}r[yc("0x104")]>0&&this[yc("0xa3")](r);for(const t of n)this.fire(yc("0x11a"),t)})),t[yc("0x65")].on("applyOperation",((e,n)=>{const r=n[0];if(!this[yc("0x95")].size)return;if(!r.isDocumentOperation)return;if(r[yc("0x17b")][yc("0x107")]||!r.batch[yc("0x89")])return;let i,o;switch(r[yc("0x16f")]){case"insert":i=t.model[yc("0x49")](r.position),o=i[yc("0x5f")](r.howMany);break;case yc("0x15f"):i=t[yc("0x65")].createPositionAt(r[yc("0x20")]),o=t.model[yc("0x49")](r[yc("0x160")]);break;case yc("0x134"):i=t.model[yc("0x49")](r[yc("0x108")]),o=i.getShiftedBy(r[yc("0x14e")]);break;default:return}const s=t[yc("0x65")][yc("0x11b")](i,o);t[yc("0x65")].change((()=>{for(const{suggestion:t,meta:e}of this[yc("0xe7")](s)){if(t[yc("0x11f")])continue;if(yc("0x146")==t.type)continue;const n=this._getAttributeKey(t);if(n&&this[yc("0x102")](n)&&yc("0x15f")!=r.type)continue;const x=t[yc("0xde")]&&t[yc("0xde")][yc("0xf6")];(yc("0x8b")!=t[yc("0x16f")]||yc("0x15f")==r[yc("0x16f")]&&!x)&&(e[yc("0xcc")]||yc("0xd8")==t[yc("0x16f")]&&e.isOwn||t[yc("0xee")]()[yc("0xaf")](s)&&this._breakSuggestionMarker(t,i,o))}}))}),{priority:yc("0xb1")}),t[yc("0x65")].on(yc("0x2b"),((e,n)=>{const r=n[0],i=n[1];if(i&&i[yc("0xf")])return;if(this[yc("0x80")])return;if(!this[yc("0x113")][yc("0xb8")])return;if(r[yc("0xa")])return;const o=t.model[yc("0x18")],{start:s,end:x}=r.getFirstRange(),a=s[yc("0xe9")]&&o[yc("0xab")](s[yc("0xe9")])?null:o.getNearestSelectionRange(s,yc("0x0")),c=x[yc("0x6c")]&&o[yc("0xab")](x[yc("0x6c")])?null:o[yc("0x79")](x,yc("0x135")),l=t.model[yc("0x11b")](a?a.start:s,c?c.end:x);t[yc("0x65")].change((e=>{this.markDeletion(l);const n=t[yc("0x65")][yc("0x18")][yc("0x79")](l.start);r.is(yc("0x109"))?e[yc("0xb4")](n):r.setTo(n)})),e[yc("0x7f")]()}),{priority:e.priorities[yc("0x110")]+10}),t[yc("0x65")].on(yc("0x11c"),((e,n)=>{const r=n[n[yc("0x167")]-1];r&&r[yc("0xf")]||this[yc("0x80")]||this.trackChangesCommand.value&&(t.model[yc("0xfb")]((()=>{let r=t[yc("0x65")][yc("0x11c")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!r)return;e[yc("0x11d")]=r[yc("0x116")]();const i=r.end[yc("0x6c")],o=t[yc("0x65")].schema;i&&o.isBlock(i)&&!o.isObject(i)&&(r=t[yc("0x65")][yc("0x11b")](r[yc("0x128")],t.model[yc("0x49")](i,yc("0xb5")))),this.markInsertion(r)})),e[yc("0x7f")]())}),{priority:yc("0x2d")}),this[yc("0xd3")].commands[yc("0x105")](yc("0x9"),this[yc("0x113")]),this[yc("0x82")](yc("0x9"));const i=new p(t,this[yc("0x95")]);t[yc("0xd9")].add(yc("0x165"),i),this[yc("0x82")](yc("0x165"));const o=new y(t,this[yc("0x95")]);t[yc("0xd9")][yc("0x105")](yc("0x150"),o),this.enableCommand("discardSuggestion"),t[yc("0xd9")][yc("0x105")]("acceptAllSuggestions",new F(t,i,this[yc("0x95")])),this[yc("0x82")](yc("0xdf")),t[yc("0xd9")][yc("0x105")](yc("0x152"),new F(t,o,this[yc("0x95")])),this[yc("0x82")](yc("0x152")),t[yc("0xd9")][yc("0x105")](yc("0x148"),new j(t,i,this._suggestions)),this[yc("0x82")]("acceptSelectedSuggestions"),t[yc("0xd9")][yc("0x105")](yc("0x16a"),new j(t,o,this[yc("0x95")])),this[yc("0x82")]("discardSelectedSuggestions");const s=t[yc("0x8e")][yc("0x21")](yc("0xba"));this[yc("0xca")](s,yc("0x5e"),((t,{threadId:e})=>{const n=this._suggestions[yc("0x21")](e);n&&n[yc("0x64")]&&1===n[yc("0x64")][yc("0x167")]&&this[yc("0x118")](e,{hasComments:!0})}),{priority:"low"}),this[yc("0xca")](s,yc("0x123"),((t,{threadId:e})=>{const n=this[yc("0x95")][yc("0x21")](e);n&&n[yc("0x64")]&&!n[yc("0x64")][yc("0x167")]&&this._updateSuggestionData(e,{hasComments:!1})}),{priority:yc("0x117")})}set[yc("0xd4")](t){if(this[yc("0x57")])throw new e.CKEditorError(yc("0x11"),this);this[yc("0x57")]=t}get[yc("0xd4")](){return this[yc("0x57")]}[yc("0x9f")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[yc("0x95")][yc("0x85")]())t&&!e[yc("0x93")]||n[yc("0xc0")](e);return e?n[yc("0x161")]((t=>t[yc("0xd2")]())):n}getSuggestion(t){const n=this[yc("0x95")][yc("0x21")](t);if(!n)throw new e.CKEditorError(yc("0x2e"),this);return n}hasSuggestion(t){return this._suggestions.has(t)}[yc("0x14b")](t){const{authorId:e,id:n,attributes:r}=t,[i,o]=t[yc("0x16f")].split(":"),s=this._suggestions.get(n)||this[yc("0xa6")](i,o,n,e,r);if(this[yc("0x162")](s),this[yc("0x14a")](s,i,o||null,e),s.createdAt=t[yc("0x12b")],s._isDataLoaded=!0,r&&r["@external"]){const t=r[yc("0x7e")],e=this[yc("0x153")](t[yc("0xef")]);s.authoredAt=t.createdAt,s.author=e,s[yc("0x16")]=!0}else s[yc("0x31")]=t.createdAt;switch(t[yc("0xde")]&&(s[yc("0xde")]=t[yc("0xde")]),t[yc("0x7a")]&&(s.attributes=t[yc("0x7a")]),this._adapter&&this[yc("0x57")][yc("0x180")]||(s._saved=!0),this[yc("0x22")][yc("0x21")](s)){case"notReady":this._suggestionState[yc("0x78")](s,"dataReady");break;case"markerReady":s[yc("0x93")]?(this._joinWithAdjacentSuggestions(new Set([s])),this[yc("0xa3")](new Set([s])),this._suggestionState[yc("0x78")](s,"ready"),this[yc("0x92")](yc("0x1"),s)):this._suggestionState[yc("0x78")](s,yc("0xd0"))}return s}acceptSuggestion(t){this[yc("0xf")]((()=>{this[yc("0xd3")][yc("0x65")][yc("0xfb")]((()=>{for(const e of t.getAllAdjacentSuggestions())e[yc("0x157")]()}))}))}discardSuggestion(t){this[yc("0xf")]((()=>{this[yc("0xd3")][yc("0x65")].change((()=>{for(const e of t[yc("0x14c")]())e[yc("0xc")]()}))}))}[yc("0x82")](t,n){const r=this.editor.commands[yc("0x21")](t);if(!r)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});if(this[yc("0xe2")].has(r))throw new e.CKEditorError("track-changes-enable-command-twice",this,{commandName:t});this._enabledCommands.add(r),n&&r.on(yc("0xb2"),((t,e)=>{this[yc("0x113")][yc("0xb8")]&&(this[yc("0x80")]||(e[yc("0x167")]>0&&e[e[yc("0x167")]-1]&&e[e.length-1][yc("0xf")]?e.pop():(t[yc("0x11d")]=n(((...t)=>r[yc("0xb2")](...t,{forceDefaultExecution:!0})),...e),t[yc("0x7f")]())))}),{priority:"high"})}[yc("0xf")](t){let n,r;const i=this[yc("0x80")];this[yc("0x80")]=!0;try{n=t()}catch(t){r=t}return i||(this[yc("0x80")]=!1),r&&e.CKEditorError.rethrowUnexpectedError(r,this),n}[yc("0xfc")](t,n=null,r={}){if(t.isCollapsed)return null;const i=this[yc("0xd3")][yc("0x8e")].get(yc("0xf5")).me;for(const{suggestion:e,meta:i}of this[yc("0xe7")](t,yc("0xd8")))if(i.isOwn){if(!i[yc("0x10b")]){if(i[yc("0xcc")]){if(!this[yc("0xae")]||!Fc(e,r))continue;return e}if(Fc(e,r))return e;this[yc("0x101")](e,t.start,t[yc("0xb5")]);break}if(n==e[yc("0x133")]&&Fc(e,r)){const n=e[yc("0xee")]();return n.start[yc("0xe3")](t[yc("0xb5")])?this[yc("0xb9")](e,this[yc("0x4d")][yc("0x11b")](t.start,n.end)):this[yc("0xb9")](e,this[yc("0x4d")][yc("0x11b")](n[yc("0x128")],t[yc("0xb5")])),e}}const o=(0,e.uid)(),s=i.id,x=n?yc("0x138")+n:yc("0xd8"),a=this[yc("0x17c")]({id:o,type:x,createdAt:new Date,authorId:s,attributes:r});return this[yc("0x4f")](x,o,s,t),a}[yc("0xd6")](t,n="multi",r={}){const i=this.editor.plugins[yc("0x21")]("Users").me,o=this[yc("0x23")][yc("0x6d")](yc("0xd8"),n,yc("0xb6"));for(const e of this[yc("0x9f")]())if(e[yc("0x61")].id==i.id&&yc("0xd8")==e.type&&e[yc("0x133")]==n&&Fc(e,r)&&(o(e.getRanges(),t)||o(t,e[yc("0x58")]()))){for(const n of t)e[yc("0x9c")](n);return e}for(const{suggestion:e,meta:n}of this[yc("0xe7")](t,yc("0xd8"))){if(!n[yc("0x14f")])continue;if(!this[yc("0xae")]&&n[yc("0xcc")])continue;if(!Fc(e,r))continue;let i=!0;for(const n of e[yc("0x58")]())for(const e of t)if(!n[yc("0xaf")](e)){i=!1;break}if(i)return e}const s=(0,e.uid)(),x=i.id,a=yc("0x138")+n,c=this[yc("0x17c")]({id:s,type:a,createdAt:new Date,authorId:x,attributes:r});for(const e of t)this[yc("0x4f")](a,s,x,e,Yr.getMultiRangeId());return c}[yc("0x168")](t,n,r=null,i={}){if(r=r||vc(n),t[yc("0xa")])return null;if(yc("0x122")===this._trackFormatChanges){const e=this[yc("0x23")][yc("0x6d")]("formatInline",r,"accept");return this[yc("0xf")]((()=>e([t],n,i))),null}const o=this[yc("0xd3")][yc("0x8e")][yc("0x21")]("Users").me,s=[];if(yc("0xa0")!==this[yc("0x25")])for(const{suggestion:e,meta:n}of this._findSuggestions(t,yc("0xd8")))n.isOwn&&!n[yc("0x13a")]&&s[yc("0xc0")](...e[yc("0x58")]());const x=function(t,e){const n=[];for(const r of e){const e=t[yc("0x51")](r);e&&n.push(e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[yc("0x167")];){const r=n[e][yc("0x60")](t);n[yc("0x136")](e,1,...r),e+=r[yc("0x167")]}}return n}(t,s);x[yc("0x167")]&&this[yc("0x4d")].change((()=>{for(const t of x){const e=this[yc("0x23")][yc("0x6d")](yc("0x146"),r,yc("0x157"));this[yc("0xf")]((()=>e([t],n,i)))}}));for(const t of a){let s=null,x=t[yc("0x128")],a=t[yc("0xb5")];for(const{suggestion:e,meta:n}of this[yc("0xe7")](t,yc("0x146"))){if(!n.isOwn)continue;if(e[yc("0x133")]!=r)continue;if(!Fc(e,i))continue;const o=e[yc("0xee")]();if(o[yc("0xaf")](t,!0))return null;x=x[yc("0x171")](o.start)?x:o[yc("0x128")],a=a[yc("0xa7")](o[yc("0xb5")])?a:o.end,s?o[yc("0x128")][yc("0x171")](s[yc("0xee")]()[yc("0x128")])?(s[yc("0x9a")](),s=e):e.removeMarkers():s=e}const c=this[yc("0x4d")].createRange(x,a);if(s)this[yc("0xb9")](s,c);else{const t=(0,e.uid)(),s=o.id;this._setSuggestionData({id:t,type:yc("0x16b")+r,data:n,createdAt:new Date,authorId:s,attributes:i}),this[yc("0x4f")](yc("0x16b")+r,t,s,c)}}return null}[yc("0x7d")](t,n,r=[],i=null,o={}){n.formatGroupId||(n[yc("0x12e")]=n[yc("0x139")]),n[yc("0xf6")]=t.is("range"),i=i||vc(n);const s=r[yc("0x161")]((t=>Mc(t,this[yc("0x4d")]))),x=t.is(yc("0x50"))?t:Mc(t,this[yc("0x4d")]);if(yc("0x122")===this[yc("0x25")]){const t=this._suggestionFactory.getSuggestionCallback(yc("0x8b"),i,yc("0x157"));return this.forceDefaultExecution((()=>t([x],n,o))),null}s[yc("0xc0")](x);let a=!0;for(const t of s)if(!this[yc("0x151")](t)){a=!1;break}if(a&&"always"!==this[yc("0x25")]){const t=this[yc("0x23")][yc("0x6d")]("formatBlock",i,"accept");return this[yc("0xf")]((()=>t([x],n,o))),null}let c=null,l=x[yc("0x128")],u=x[yc("0xb5")];for(const{suggestion:t,meta:e}of this[yc("0xe7")](x,yc("0x8b"))){if(!e.isOwn)continue;if(e.isNextTo||e[yc("0xcc")]||e.isInsideObject)continue;if(t[yc("0xde")][yc("0x12e")]!=n[yc("0x12e")])continue;if(!Fc(t,o))continue;const r=t[yc("0xee")]();if(t[yc("0x133")]==i){if(r[yc("0xaf")](x,!0))return null;l=l[yc("0x171")](r.start)?l:r[yc("0x128")],u=u[yc("0xa7")](r[yc("0xb5")])?u:r[yc("0xb5")],c?r[yc("0x128")][yc("0x171")](c[yc("0xee")]()[yc("0x128")])?(c[yc("0x9a")](),c=t):t[yc("0x9a")]():c=t}else{const e=x[yc("0x51")](r);this._cutOutSuggestionMarker(t,e)}}const d=this.editor[yc("0x8e")][yc("0x21")](yc("0xf5")).me,g=(0,e.uid)(),f=d.id;if(c)return this[yc("0xb9")](c,this[yc("0x4d")][yc("0x11b")](l,u)),c;{const t=this[yc("0x17c")]({id:g,type:"formatBlock:"+i,data:n,createdAt:new Date,authorId:f,attributes:o});return this[yc("0x4f")](yc("0xd1")+i,g,f,this._model.createRange(l,u)),t}}[yc("0xa8")](t,n,r=[],i=null,o={}){n[yc("0x12e")]||(n[yc("0x12e")]=n[yc("0x139")]);const s=t[0];n.multipleBlocks=s.is(yc("0x50")),i=i||vc(n);const x=r.map((t=>Mc(t,this._model))),a=s.is(yc("0x50"))?t:t.map((t=>Mc(t,this._model)));if(yc("0x122")===this[yc("0x25")]){const t=this[yc("0x23")][yc("0x6d")](yc("0x8b"),i,yc("0x157"));return this[yc("0xf")]((()=>t(a,n,o))),null}x[yc("0xc0")](...a);let c=!0;for(const t of x)if(!this[yc("0x151")](t)){c=!1;break}if(c&&yc("0xa0")!==this[yc("0x25")]){const t=this[yc("0x23")][yc("0x6d")]("formatBlock",i,yc("0x157"));return this[yc("0xf")]((()=>t(a,n,o))),null}const l=this[yc("0xd3")][yc("0x8e")][yc("0x21")](yc("0xf5")).me;for(const t of this.getSuggestions()){if(t.author.id!=l.id)continue;if(yc("0x8b")!=t[yc("0x16f")]||t[yc("0xde")][yc("0x12e")]!=n[yc("0x12e")])continue;if(!Fc(t,o))continue;const e=t[yc("0x133")]==i;for(let n=0;n<a.length;n++){const r=a[n];for(const i of t[yc("0x5a")]()){const o=i[yc("0x132")]();if(r[yc("0xe3")](o)){e?(a[yc("0x136")](n,1),n--):t.removeMarker(i[yc("0x140")]);break}}}}if(0==a.length)return null;const u=this[yc("0x23")][yc("0x6d")]("formatBlock",i,yc("0xb6"));for(const t of this[yc("0x9f")]())if(t[yc("0x61")].id==l.id&&"formatBlock"==t[yc("0x16f")]&&t[yc("0xde")].formatGroupId==n[yc("0x12e")]&&t[yc("0x133")]==i&&Fc(t,o)&&(u(t.getRanges(),a)||u(a,t[yc("0x58")]()))){for(const e of a)t[yc("0x9c")](e);return t}const d=(0,e.uid)(),g=l.id,f=yc("0xd1")+i,h=this[yc("0x17c")]({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:o});for(const t of a)this[yc("0x4f")](f,d,g,t,Yr.getMultiRangeId());return h}markDeletion(t,n=null,r={}){if(t[yc("0xa")])return null;const i=this[yc("0xd3")][yc("0x8e")].get("Users").me,o=new s.LiveRange(t.start,t[yc("0xb5")]);for(const{suggestion:t,meta:e}of this[yc("0xe7")](o,yc("0xd8")))if(e[yc("0x14f")]&&!e[yc("0x10b")])if(t[yc("0x11f")]){const e=t[yc("0x58")]()[yc("0x35")]((t=>"$graveyard"!=t[yc("0x13e")].rootName));if(e[yc("0x36")]((t=>o.containsRange(t,!0)))&&t[yc("0xc")](),e.some((t=>t[yc("0xaf")](o,!0)))){const t=this[yc("0x23")][yc("0x6d")](yc("0x1f"),n,yc("0x157"));return this[yc("0xf")]((()=>t([o],null,r))),null}}else{const e=o[yc("0x51")](t[yc("0xee")]());null!==e&&t[yc("0xc4")]([e],null,r)}if(o[yc("0x10c")](),o[yc("0xa")]||yc("0xc2")==o[yc("0x13e")][yc("0x5d")])return null;let x=null,a=o[yc("0x128")],c=o[yc("0xb5")];const l=this._findSuggestions(o,yc("0x1f"));for(const{suggestion:t,meta:e}of l){const n=this[yc("0x4d")][yc("0x11b")](a,c);if(e[yc("0x14f")]&&(this[yc("0xae")]||!e[yc("0xcc")]&&!e.isInsideObject))if(t[yc("0x11f")]){if(!Fc(t,r))continue;let e=!0;for(const r of t.getRanges()){if(r[yc("0xaf")](n,!0))return t;n[yc("0xaf")](r)||(e=!1)}e&&t[yc("0xc")]()}else{const e=t[yc("0xee")]();if(e[yc("0xaf")](n,!0))return t;if(!Fc(t,r)){n.containsRange(e)?t.removeMarkers():e.containsPosition(a)?a=e[yc("0xb5")]:e[yc("0x87")](c)&&(c=e.start);continue}a=a[yc("0x171")](e.start)?a:e.start,c=c[yc("0xa7")](e[yc("0xb5")])?c:e[yc("0xb5")],r=Object[yc("0x9d")]({},t[yc("0x7a")]),x?e.start[yc("0x171")](x[yc("0xee")]()[yc("0x128")])?(x[yc("0x9a")](),x=t):t[yc("0x9a")]():x=t}}if(x)return this._setSuggestionRange(x,this[yc("0x4d")].createRange(a,c)),x;{const t=(0,e.uid)(),o=this[yc("0x4d")][yc("0x11b")](a,c),s=i.id,x=n?yc("0xfd")+n:yc("0x1f"),l=this[yc("0x17c")]({id:t,type:x,createdAt:new Date,authorId:s,attributes:r});return this._addSuggestionMarker(x,t,s,o),l}}markMultiRangeDeletion(t,n=yc("0x154"),r={}){const i=this[yc("0xd3")][yc("0x8e")][yc("0x21")](yc("0xf5")).me,o=t[yc("0x161")]((t=>new s.LiveRange(t.start,t.end))),x=new Set;for(const{suggestion:t,meta:e}of this[yc("0xe7")](o,"insertion"))e[yc("0x14f")]&&!e[yc("0x10b")]&&x[yc("0x105")](t);for(const e of x)if(e[yc("0x11f")]){const i=e.getRanges();if((!e[yc("0x7a")]||!e[yc("0x7a")][yc("0x3")])&&i[yc("0x36")]((t=>o[yc("0x17d")]((e=>e.containsRange(t,!0)))))&&e[yc("0xc")](),o[yc("0x36")]((t=>i.some((e=>e[yc("0xaf")](t,!0)))))){const e=this[yc("0x23")][yc("0x6d")](yc("0x1f"),n,yc("0x157"));return this.forceDefaultExecution((()=>e(t,null,r))),null}}else{const t=e[yc("0xee")]();if(o.some((e=>e[yc("0xaf")](t,!0)))&&e[yc("0xc")](),o.every((e=>t[yc("0xaf")](e,!0)))){const t=this[yc("0x23")][yc("0x6d")](yc("0x1f"),n,yc("0x157"));return this.forceDefaultExecution((()=>t(o,null,r))),null}}const a=this[yc("0x23")][yc("0x6d")](yc("0x1f"),n,yc("0xb6"));let c=null;for(const t of this[yc("0x9f")]())if(t[yc("0x61")].id==i.id&&t.isInContent&&yc("0x1f")==t[yc("0x16f")]&&t[yc("0x133")]==n&&Fc(t,r)&&(a(t[yc("0x58")](),o)||a(o,t[yc("0x58")]())))if(c){if(t[yc("0x64")]&&t.commentThread[yc("0x167")])continue;for(const e of t[yc("0x58")]())c[yc("0x30")](e)||c[yc("0x9c")](e);t.removeMarkers()}else{c=t;for(const e of o)t.isIntersectingWithRange(e)||t[yc("0x9c")](e)}if(c)return c;x.clear();for(const{suggestion:t,meta:e}of this[yc("0xe7")](o,yc("0x1f")))e.isOwn&&(this._mergeNestedSuggestions||!e.containsRangeInObject&&!e[yc("0x13a")])&&Fc(t,r)&&x[yc("0x105")](t);for(const t of x){const e=t[yc("0x58")]();if((!r||!r.skipNestingCheck)&&o[yc("0x36")]((t=>e.some((e=>e.containsRange(t,!0))))))return t;(!t[yc("0x7a")]||!t.attributes[yc("0x3")])&&e[yc("0x36")]((t=>o.some((e=>e[yc("0xaf")](t,!0)))))&&t[yc("0xc")]()}const l=(0,e.uid)(),u=i.id,d=yc("0xfd")+n,g=this[yc("0x17c")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:r});for(const t of o)t[yc("0x10c")](),t[yc("0xa")]||yc("0xc2")==t.root[yc("0x5d")]||this[yc("0x4f")](d,l,u,t,Yr[yc("0x7b")]());return g}[yc("0x12c")](t,n,r,i,o){if(t[yc("0xa")])return[];if(yc("0x122")===this[yc("0x25")])return[];const s=this.editor[yc("0x8e")].get("Users").me.id,x=Array.from(this[yc("0x95")][yc("0x85")]())[yc("0x35")]((e=>yc("0xbb")==e[yc("0x16f")]&&e[yc("0xde")][yc("0x4a")]==n&&e[yc("0x30")](t)));if(yc("0x126")===this[yc("0x25")]){const e=this[yc("0xe7")](t,"insertion")[yc("0x35")]((({meta:t})=>t[yc("0x14f")]&&!t[yc("0x13a")]&&!t[yc("0x10b")]))[yc("0x161")]((({suggestion:t})=>t));x[yc("0x111")](...e)}const a=new Map([[t,r]]);for(const t of x){const e="attribute"==t.type?t.data[yc("0x13d")]:void 0,o=t[yc("0xee")](),s=Array.from(a[yc("0x15a")]())[yc("0x46")]((t=>t[yc("0x16e")](o)));if(!s)continue;const x=s[yc("0x60")](o);this[yc("0x102")](n)&&yc("0xd8")==t[yc("0x16f")]&&0!=x.length||(a[yc("0x54")](s),x[yc("0x29")]((t=>{a[yc("0x78")](t,r)})),yc("0xd8")!=t[yc("0x16f")]&&e!=i&&a[yc("0x78")](s[yc("0x51")](o),e))}const c=[];for(const[t,r]of a){const x=(0,e.uid)(),a={key:n,oldValue:r,newValue:i};n[yc("0x167")]>37&&console[yc("0x44")](yc("0xc8"),{key:n});const l=(yc("0x10a")+(n+"|")+vc({newValue:i}))[yc("0xe5")](0,60),u=this[yc("0x17c")]({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:o});c[yc("0xc0")](u),this[yc("0x4f")](l,x,s,t)}return c}[yc("0x163")](t){this[yc("0x7")][yc("0x105")](t)}[yc("0x158")](t){this[yc("0x3c")][yc("0x105")](t)}[yc("0x39")](t,e=[],n=[]){this[yc("0x82")](t,((t,...e)=>{this._recordAttributeChanges((()=>{t(...e)}))}));for(const t of e)this[yc("0x158")](t);for(const t of n)this[yc("0x163")](t)}[yc("0xf7")](t){return"attribute"==t[yc("0x16f")]?t[yc("0x133")][yc("0x15f")]("|")[0]:null}[yc("0xb9")](t,e){const n=t[yc("0xce")]();this[yc("0x4d")][yc("0xfb")]((t=>{t[yc("0xa5")](n,{range:e})}))}[yc("0x162")](t){const e=t.id,n=this.editor[yc("0x3e")][yc("0x21")]("collaboration.channelId");this._commentsRepository[yc("0x121")](e)||this._commentsRepository.addCommentThread({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const r=this[yc("0xf2")].getCommentThread(e);r.unbind("isRemovable"),r[yc("0x59")]=!1,t[yc("0x64")]=r}_checkSuggestionCorrectness(t,n,r,i){if(t[yc("0x16f")]!=n||t[yc("0x133")]!=r||t[yc("0x4e")].id!=i)throw this.editor[yc("0x12")](yc("0x2f")),new e.CKEditorError("track-changes-suggestion-data-mismatch",this)}[yc("0xf1")](t,n){const r=t[yc("0xee")]();if(n[yc("0xe3")](r))t.removeMarkers();else if(r[yc("0xaf")](n)){const i=this[yc("0x4d")][yc("0x49")](n.start[yc("0x6c")],yc("0xb5"));this[yc("0xb9")](t,this[yc("0x4d")][yc("0x11b")](r[yc("0x128")],i));const o=(0,e.uid)(),s=t[yc("0x4e")].id,x=t[yc("0x16f")]+":"+t.subType;this[yc("0x17c")]({id:o,type:x,createdAt:new Date,authorId:s,data:t[yc("0xde")],attributes:t[yc("0x7a")]});const a=this[yc("0x4d")].createPositionAt(n[yc("0xb5")].parent,yc("0xaa")),c=this._model[yc("0x11b")](a,r.end);this._addSuggestionMarker(x,o,s,c)}else if(r[yc("0x87")](n[yc("0x128")])){const e=this._model[yc("0x49")](n[yc("0x128")][yc("0x6c")],"end");this[yc("0xb9")](t,this._model.createRange(r[yc("0x128")],e))}else{const e=this[yc("0x4d")][yc("0x49")](n[yc("0xb5")].parent,yc("0xaa"));this[yc("0xb9")](t,this._model[yc("0x11b")](e,r[yc("0xb5")]))}}_rangeIsInLocalUserInsertion(t){for(const{suggestion:e,meta:n}of this[yc("0xe7")](t,yc("0xd8"))){if(!n[yc("0x14f")])continue;const r=e[yc("0x58")]();for(const e of r)if(!t[yc("0x60")](e)[yc("0x167")])return!0}return!1}[yc("0x172")](t){const n=this.editor[yc("0x8e")].get(yc("0xf5"))[yc("0xf4")](t);if(!n)throw new e.CKEditorError("track-changes-user-not-found",this);return n}[yc("0x153")](t){const e=this[yc("0xd3")][yc("0x8e")][yc("0x21")](yc("0xf5")),n=(0,o.hashObject)(yc("0x15d")+t);return e[yc("0xf4")](n)||e[yc("0xbe")]({id:n,name:t})}[yc("0xa6")](t,e,n,r,i){const o=this[yc("0x172")](r),s=this[yc("0x23")][yc("0x10e")](t,e,n,o,i,(t=>{this[yc("0x118")](n,{attributes:t});const e=this[yc("0x86")](n);this[yc("0x114")](new Set([e])),this._refreshSuggestionsChain(new Set([e]))}));return this[yc("0xca")](s,yc("0x157"),(()=>{this[yc("0x118")](n,{state:yc("0x144")})}),{priority:yc("0x2d")}),this[yc("0xca")](s,yc("0xc"),(()=>{this[yc("0x118")](n,{state:yc("0x53")})}),{priority:yc("0x2d")}),this[yc("0x95")][yc("0x78")](n,s),this[yc("0x22")][yc("0x78")](s,yc("0x43")),s}[yc("0xdc")](t){const e=t[yc("0x15f")](":");return{group:e[0],type:e[1],subType:e[yc("0x167")]>=5?e[2]:null,id:e[yc("0x167")]<5?e[2]:e[3],authorId:e[yc("0x167")]<5?e[3]:e[4],markerCount:6==e.length?e[5]:null}}[yc("0x101")](t,n,r){const i=t[yc("0xee")](),o=i[yc("0x128")],s=i[yc("0xb5")];this[yc("0xb9")](t,this[yc("0x4d")][yc("0x11b")](o,n));const x=(0,e.uid)(),a=t[yc("0x4e")].id,c=t.type+(t[yc("0x133")]?":"+t[yc("0x133")]:"");this[yc("0x17c")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[yc("0x7a")],data:t[yc("0xde")]});const l=this[yc("0xf7")](t);(yc("0x8b")==t[yc("0x16f")]||l&&this[yc("0x102")](l))&&(r=this._model[yc("0x62")](r[yc("0x169")])),this[yc("0x4f")](c,x,a,this[yc("0x4d")][yc("0x11b")](r,s))}_findSuggestions(t,e=null){const n=[],r=this[yc("0xd3")][yc("0x8e")][yc("0x21")](yc("0xf5")).me;Array[yc("0x19")](t)||(t=[t]);for(const i of this[yc("0x9f")]()){if(!i[yc("0x93")])continue;if(e&&i[yc("0x16f")]!=e)continue;let o=!1;for(const e of i.getRanges()){for(const s of t){const t=s[yc("0x128")][yc("0xe3")](e[yc("0xb5")])||s[yc("0xb5")].isEqual(e.start);if(t||s.getIntersection(e)){const x=s[yc("0xaf")](e)&&Ic(this._model[yc("0x18")],e.start,s),a=e[yc("0xaf")](s)&&Ic(this._model[yc("0x18")],s[yc("0x128")],e);n[yc("0xc0")]({suggestion:i,meta:{isOwn:r==i.author,isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),o=!0;break}}if(o)break}}return n}[yc("0x4f")](t,e,n,r,i){this._model[yc("0xfb")]((o=>{let s=yc("0x1a")+t+":"+e+":"+n;i&&(s=s+":"+i),o[yc("0x174")](s,{range:r,usingOperation:!0,affectsData:!0})}))}[yc("0x3b")](t){const e=t[yc("0x42")],n=t[yc("0x15")];t.previous=null,t[yc("0x15")]=null,null!=e&&e[yc("0x15")]==t&&(e[yc("0x15")]=n),null!=n&&n.previous==t&&(n[yc("0x42")]=e),yc("0x15b")==this._suggestionState[yc("0x21")](t)&&(this[yc("0x22")].set(t,yc("0xd0")),this.fire("suggestionUnloaded",t,e,n))}[yc("0x17c")](t){const n=t.id,r=this[yc("0x14b")](t);if(this[yc("0x57")]&&this._adapter[yc("0x180")]){const i=this.editor[yc("0x8e")][yc("0x21")]("PendingActions"),o=r[yc("0x2")],s=r[yc("0x133")]?r.type+":"+r.subType:r[yc("0x16f")],x=this[yc("0xd3")][yc("0xd5")],a=i.add(Jr(x,"PENDING_ACTION_SUGGESTION")),c={id:n,type:s,hasComments:o,data:t[yc("0xde")]||null,originalSuggestionId:t[yc("0x130")]||null,attributes:r[yc("0x7a")]};this[yc("0x57")][yc("0x180")](c).then((t=>{r._saved=!0,i[yc("0x67")](a),t&&t[yc("0x12b")]&&(this[yc("0x95")][yc("0x21")](n)[yc("0x12b")]=t[yc("0x12b")])})).catch((t=>{throw(0,e.logWarning)(yc("0x176")),this.editor.model[yc("0x177")]({isUndoable:!1},(()=>{r[yc("0xc")]()})),r[yc("0x1e")](),this[yc("0x95")].delete(r.id),this[yc("0x22")].delete(r),t}))}return r}[yc("0x102")](t){return this[yc("0x7")][yc("0x6b")](t)}[yc("0x118")](t,e){const n=this.editor[yc("0x8e")].get(yc("0x69")),r=this[yc("0x86")](t);if(this[yc("0x57")]&&this._adapter[yc("0x84")])if(r[yc("0xec")]){const r=n.add(Jr(this.editor[yc("0xd5")],yc("0xe")));this[yc("0x57")].updateSuggestion(t,e).then((()=>{n.remove(r)}))}else r.on(yc("0x17"),(()=>{this[yc("0x118")](t,e)}))}[yc("0x2c")](t){if(!this._adapter||!this._adapter[yc("0x86")])throw new e.CKEditorError(yc("0xd"),this);return this[yc("0x57")][yc("0x86")](t)}[yc("0x47")](t){const{id:e,type:n,subType:r,authorId:i}=this[yc("0xdc")](t),o=this[yc("0x95")][yc("0x21")](e)||this[yc("0xa6")](n,r,e,i,{});switch(this[yc("0x14a")](o,n,r,i),this[yc("0x22")][yc("0x21")](o)){case yc("0x43"):this[yc("0x2c")](e)[yc("0xd7")]((t=>{let n=Promise.resolve();t.hasComments&&(n=this[yc("0xf2")][yc("0x72")]({channelId:this.editor[yc("0x3e")].get(yc("0x5")),threadId:e})),n[yc("0xd7")]((()=>{this[yc("0x14b")](t)[yc("0xec")]=!0}))})),this[yc("0x22")][yc("0x78")](o,yc("0x12f"));break;case"removed":this[yc("0x118")](e,{state:yc("0x120")});case"dataReady":this[yc("0x22")][yc("0x78")](o,yc("0x15b")),this[yc("0x92")](yc("0x1"),o);break;case yc("0x15b"):this.fire(yc("0x11a"),o)}return o[yc("0x142")](t),o}[yc("0xa3")](t){const e=Array[yc("0x173")](t),n=e[yc("0x35")]((t=>"attribute"==t[yc("0x16f")]));this[yc("0x155")](n);const r=e[yc("0x35")]((t=>!t[yc("0x11f")]&&"attribute"!=t[yc("0x16f")])),i=this.getSuggestions({skipNotAttached:!0})[yc("0x35")]((t=>!t[yc("0x11f")]&&yc("0xbb")!=t[yc("0x16f")])),o=i[yc("0x35")]((e=>!t.has(e))),s=new Map(i[yc("0x161")]((t=>[t,this[yc("0x23")][yc("0x6d")](t[yc("0x16f")],t[yc("0x133")],yc("0x100"))]))),x=new Map(i[yc("0x161")]((t=>[t,t[yc("0xee")]()]))),a=new Set,c=new Set;for(let t=0;t<r[yc("0x167")];t++)u(r[t],r,t+1);for(let t=0;t<r[yc("0x167")];t++)u(r[t],o,0);const l=new Set;for(let t=0;t<r[yc("0x167")];t++){const e=r[t];!c[yc("0x6b")](e)&&e[yc("0x42")]&&(l[yc("0x105")](e[yc("0x42")]),e[yc("0x42")][yc("0x15")]===e&&(e[yc("0x42")][yc("0x15")]=null),e[yc("0x42")]=null),!a[yc("0x6b")](e)&&e.next&&(l[yc("0x105")](e.next),e[yc("0x15")][yc("0x42")]===e&&(e.next[yc("0x42")]=null),e[yc("0x15")]=null)}function u(t,e,n){for(let r=n;r<e.length;r++){const n=d(t,e[r]);n&&(n[0].next=n[1],n[1].previous=n[0],a[yc("0x105")](n[0]),c[yc("0x105")](n[1]))}}function d(t,e){if(t[yc("0x61")].id!==e[yc("0x61")].id)return null;const n=s[yc("0x21")](t)(t,e,x[yc("0x21")](t),x.get(e));return n&&s[yc("0x21")](e)(t,e,x[yc("0x21")](t),x.get(e))?n[1][yc("0x64")]&&n[1][yc("0x64")][yc("0x167")]?null:n:null}l[yc("0x104")]&&this._refreshSuggestionsChain(l)}[yc("0x155")](t){if(0==t.length)return;const e=this[yc("0x9f")]({skipNotAttached:!0})[yc("0x35")]((t=>yc("0xbb")==t[yc("0x16f")]&&t[yc("0x6a")])),n=[],r=new Map;for(const t of e){const e=(0,o.hashObject)(t[yc("0x7a")]);r[yc("0x6b")](e)||(r[yc("0x78")](e,n[yc("0x167")]),n.push([]));const i=r.get(e);n[i][yc("0xc0")](t)}!function(){n[yc("0x55")](((t,e)=>{const n=t[0][yc("0x12b")],r=e[0][yc("0x12b")];return n==r?t[0][yc("0x7a")][yc("0x156")]<e[0][yc("0x7a")][yc("0x156")]?-1:1:n<r?-1:1}));for(const t of n)t.sort(((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n[yc("0x167")];t++){if(0==n[t][yc("0x167")])continue;const e=[];for(let r=t+1;r<n[yc("0x167")];r++)0!=n[r][yc("0x167")]&&i(n[t],n[r])&&e[yc("0xc0")](r);for(const r of e)n[t]=n[t][yc("0x170")](n[r]),n[r]=[]}for(const t of n)for(let e=0;e<t[yc("0x167")];e++)t[e].next=t[e+1]||null;for(const t of n)for(let e=0;e<t[yc("0x167")];e++)t[e][yc("0x42")]=t[e-1]||null;function i(t,e){if(t[0][yc("0x7a")].groupId!==e[0][yc("0x7a")].groupId&&t[0][yc("0x61")]!==e[0][yc("0x61")])return!1;if(n=t[0],r=e[0],(n[yc("0x2")]||r[yc("0x2")])&&(n[yc("0x2")]&&r[yc("0x2")]||!(n[yc("0x2")]&&r.createdAt<n[yc("0x64")][yc("0x9e")][yc("0x21")](0)[yc("0x12b")]||r[yc("0x2")]&&n.createdAt<r.commentThread[yc("0x9e")][yc("0x21")](0)[yc("0x12b")])))return!1;var n,r;const i=bc(t[0].attributes,yc("0x156")),o=bc(e[0].attributes,yc("0x156"));return!!jr(i,o)&&(!!t[yc("0x36")]((t=>e[yc("0x17d")]((e=>t[yc("0xee")]().isEqual(e[yc("0xee")]())))))&&e[yc("0x36")]((e=>t[yc("0x17d")]((t=>e[yc("0xee")]()[yc("0xe3")](t[yc("0xee")]()))))))}}_joinWithAdjacentSuggestions(t){const e=Array.from(t),n=this[yc("0x9f")]({skipNotAttached:!0}),r=n[yc("0x35")]((e=>!t[yc("0x6b")](e))),i=new Map(e[yc("0x161")]((t=>[t,this[yc("0x23")][yc("0x6d")](t[yc("0x16f")],t[yc("0x133")],"join")]))),o=new Map(n[yc("0x161")]((t=>[t,t[yc("0x58")]()])));for(let t=0;t<e[yc("0x167")];t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e[yc("0x167")];t++)if(s(this,e[t],r,0))return!0;return!1;function s(t,e,n,r){for(let s=r;s<n[yc("0x167")];s++){const r=n[s];if(r.type!==e[yc("0x16f")]||r[yc("0x61")].id!==e[yc("0x61")].id||r[yc("0x133")]!==e.subType)continue;if(!Oc(e,r,[yc("0x156")]))continue;if("attribute"==e[yc("0x16f")]&&e[yc("0xde")][yc("0x13d")]!=r[yc("0xde")][yc("0x13d")])continue;if(yc("0xbb")==e[yc("0x16f")]&&t[yc("0x102")](e[yc("0xde")][yc("0x4a")]))continue;if(yc("0x8b")==e.type){const n=t.editor[yc("0x65")],r=e[yc("0x178")]();if(r&&(n.schema[yc("0xea")](r)||n[yc("0x18")][yc("0xab")](r)))continue}const x=i[yc("0x21")](e),a=o.get(e),c=o.get(r),l=e[yc("0x64")]&&e.commentThread[yc("0x167")],u=r[yc("0x64")]&&r[yc("0x64")][yc("0x167")];if(!l&&x(c,a))return t[yc("0x9b")](r,e),o.delete(e),!0;if(!u&&x(a,c))return t[yc("0x9b")](e,r),o[yc("0x54")](r),!0}return!1}}[yc("0x9b")](t,e){if(t.isMultiRange)for(const n of e[yc("0x58")]())t[yc("0x9c")](n);else{const n=e[yc("0xee")]()[yc("0xb5")];this[yc("0xb9")](t,this[yc("0x4d")].createRange(t[yc("0xee")]()[yc("0x128")],n))}e[yc("0x9a")]()}[yc("0x5b")](t,e){const n=t[yc("0x27")]("format")||t.startsWith(yc("0xbb"))?"FORMATTING":t[yc("0xe6")]();return Jr(this[yc("0xd3")][yc("0xd5")],e+"_"+n+yc("0x4b"))}[yc("0xf3")](){const t=this.editor;(0,o.surroundingMarkersDetector)(this[yc("0x4d")],(({left:e,entered:n})=>{const r=[];for(const t of e){const{group:e,type:n}=this[yc("0xdc")](t.name);if(yc("0x10d")===e){r.push(this[yc("0x5b")](n,yc("0x6e")));break}}for(const t of n){const{group:e,type:n}=this[yc("0xdc")](t[yc("0x140")]);if(yc("0x10d")===e){r[yc("0xc0")](this._getMarkerAnnouncementText(n,yc("0x73")));break}}r[yc("0x167")]&&t.ui[yc("0x16c")][yc("0x74")](yc("0x9"),r[yc("0xb6")](" "))}))}[yc("0x77")](t){if(this[yc("0xac")])return!1;const e=this[yc("0xd3")],n=e[yc("0x65")][yc("0x52")][yc("0x131")][yc("0x13b")]();if(0==n[yc("0x167")])return!1;const r=[],i=n[yc("0x35")]((t=>"attribute"==t.type)),o=n[yc("0x35")]((t=>"insert"==t[yc("0x16f")]&&"$text"!=t[yc("0x140")])),s=n.filter((t=>yc("0x67")==t[yc("0x16f")]&&"$text"!=t.name));for(const t of i)r[yc("0xc0")]({key:t[yc("0xb")],newValue:t[yc("0x99")],oldValue:t[yc("0xb3")],range:Lc(t[yc("0x50")],e[yc("0x65")])});for(const t of o){const n=s[yc("0x46")]((e=>e[yc("0x63")][yc("0xe3")](t[yc("0x63")])));n&&r[yc("0xc0")]({key:yc("0x4c"),newValue:t[yc("0x140")],oldValue:n[yc("0x140")],range:e[yc("0x65")][yc("0x1c")](t[yc("0x63")][yc("0xe9")])})}return 0!=r[yc("0x167")]&&this._reduceExistingSuggestions(t,r)}_processAttributeSuggestions(t){let e=!1;const n=this.editor[yc("0x65")][yc("0x52")][yc("0x131")].getChangedMarkers()[yc("0x35")]((t=>t.data[yc("0x17e")]&&t[yc("0x140")][yc("0x27")]("suggestion:attribute:")));for(const r of n){const{subType:n,id:i}=this[yc("0xdc")](r[yc("0x140")]),o=n.split("|")[0];for(const n of this[yc("0x9f")]({skipNotAttached:!0}))n.id!=i&&yc("0xbb")==n[yc("0x16f")]&&n.data&&n.data.key==o&&n[yc("0xee")]().isIntersecting(r[yc("0xde")][yc("0x17e")])&&(this[yc("0x2a")](n,r[yc("0xde")][yc("0x17e")],t),e=!0)}return e}[yc("0x83")](t){this[yc("0xd3")],this._recordAttributeSuggestions=!0,t()}_isRegisteredAttribute(t){const e=this._isBlockAttribute(t),n=this[yc("0x3c")].has(t);return e||n}[yc("0x94")](t,e){if(0==e[yc("0x167")])return!1;let n=!1;for(const r of e){const e=this[yc("0xe7")](r.range,yc("0xbb")).filter((t=>!t[yc("0x129")][yc("0x10b")]))[yc("0x161")]((t=>t[yc("0x10d")])),i=(0,o.hashObject)({newValue:r.newValue});e[yc("0x35")]((t=>{const[e,n]=t[yc("0x133")][yc("0x15f")]("|");return e==r.key&&n!=i}))[yc("0x29")]((e=>{this[yc("0x2a")](e,r[yc("0x50")],t),n=!0}))}return n}[yc("0x2a")](t,e,n){const r=t[yc("0xee")]()[yc("0x60")](e);0!==r[yc("0x167")]?1!==r[yc("0x167")]?this[yc("0x101")](t,e[yc("0x128")],e[yc("0xb5")]):this[yc("0xb9")](t,r[0]):n[yc("0x75")](t[yc("0xce")]())}}class kc{constructor(t){this[yc("0xc3")]=t,this[yc("0x4d")]=t[yc("0x65")],this[yc("0x40")]=new Map,this[yc("0x8")]=new Map,this[yc("0x97")]()}[yc("0x10e")](t,e,n,r,i,o){return new Yr(this[yc("0x4d")],{type:t,subType:e,id:n,author:r,creator:r,attributes:i,onAttributesChange:o,onAccept:(...n)=>this.getSuggestionCallback(t,e,yc("0x157"))(...n),onDiscard:(...n)=>this[yc("0x6d")](t,e,yc("0xc"))(...n)})}[yc("0x38")](t,e,n,r){const i=t+":"+e+":"+n;this[yc("0x40")][yc("0x78")](i,r)}[yc("0x6d")](t,e,n){const r=t+":"+e+":"+n;return this[yc("0x40")].get(r)||this._defaultCallbacks[yc("0x21")](t+":"+n)}_registerDefaultCallbacks(){const t=()=>!1,e=t=>{t[yc("0x55")](((t,e)=>t[yc("0x128")][yc("0x171")](e[yc("0x128")])?1:-1)),this._model[yc("0xfb")]((e=>{for(const n of t){let t;t=n[yc("0xb5")][yc("0x4")]&&n[yc("0xb5")][yc("0x169")]==n[yc("0x128")][yc("0xe9")]?e.createSelection(n[yc("0x128")].nodeAfter,"on"):e.createSelection(n),this[yc("0x4d")].deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this[yc("0x4d")][yc("0xfb")]((n=>{const{commandName:r,commandParams:i=[]}=e,o=t[yc("0x161")]((t=>(Rc(t)&&(t=this[yc("0x4d")][yc("0x11b")](t.end)),t)))[yc("0x35")]((t=>yc("0xc2")!==t[yc("0x13e")][yc("0x5d")]));if(o.length<1)return;const x=Array.from(this[yc("0x4d")][yc("0x52")][yc("0x12a")][yc("0x58")]()).map((t=>s.LiveRange[yc("0x164")](t)));n[yc("0xb4")](o);for(const t of this[yc("0xc3")][yc("0xd9")][yc("0xd9")]())t[yc("0x8a")]();i[yc("0xc0")]({forceDefaultExecution:!0}),this[yc("0xc3")].execute(r,...i);const a=x.filter((t=>"$graveyard"!=t[yc("0x13e")][yc("0x5d")]));a.length>0&&n[yc("0xb4")](a);for(const t of x)t[yc("0x10c")]()}))},r=(t,e)=>1==t.length&&1==e[yc("0x167")]&&t[0][yc("0xb5")][yc("0xe3")](e[0][yc("0x128")]),i=(t,e,n,r)=>wc(t,e,n,r,this._model)?[t,e]:wc(e,t,r,n,this[yc("0x4d")])?[e,t]:null;this._defaultCallbacks[yc("0x78")](yc("0x179"),t),this[yc("0x8")][yc("0x78")](yc("0x137"),e),this[yc("0x8")][yc("0x78")](yc("0x115"),r),this[yc("0x8")][yc("0x78")](yc("0x14"),i),this[yc("0x8")].set(yc("0xfe"),e),this[yc("0x8")][yc("0x78")]("deletion:discard",t),this[yc("0x8")][yc("0x78")](yc("0xa9"),r),this[yc("0x8")][yc("0x78")](yc("0x37"),i),this[yc("0x8")][yc("0x78")]("formatInline:accept",n),this[yc("0x8")][yc("0x78")](yc("0xcd"),t),this[yc("0x8")][yc("0x78")](yc("0x143"),r),this._defaultCallbacks[yc("0x78")](yc("0x90"),t),this[yc("0x8")][yc("0x78")](yc("0x6f"),n),this[yc("0x8")].set(yc("0x5c"),t),this[yc("0x8")][yc("0x78")](yc("0x182"),r),this[yc("0x8")][yc("0x78")](yc("0xe4"),t),this[yc("0x8")].set("attribute:accept",t),this[yc("0x8")][yc("0x78")](yc("0x183"),((t,e)=>{if(!e)return;const n=this[yc("0xc3")].plugins.get(Ac);this[yc("0x4d")][yc("0xfb")]((r=>{if(yc("0x4c")==e[yc("0x4a")])for(const n of t){const t=n[yc("0x128")][yc("0xe9")],i=e.oldValue;r[yc("0x56")](t,i)}else if(n[yc("0x102")](e[yc("0x4a")]))for(const n of t)void 0!==e[yc("0x13d")]?r.setAttribute(e[yc("0x4a")],e[yc("0x13d")],n[yc("0x128")][yc("0xe9")]):r[yc("0xe0")](e[yc("0x4a")],n[yc("0x128")][yc("0xe9")]);else for(const n of t)e[yc("0x13d")]?r[yc("0xbd")](e[yc("0x4a")],e[yc("0x13d")],n):r[yc("0xe0")](e[yc("0x4a")],n)}))})),this._defaultCallbacks[yc("0x78")](yc("0x1b"),r)}}function Ic(t,e,n){for(const r of e[yc("0x169")][yc("0xc5")]({includeSelf:!0,parentFirst:!0})){if(r[yc("0x13e")]==r)return!1;if(!n[yc("0xa4")](r))return!1;if(t.isObject(r)||t[yc("0xab")](r))return!0}return!1}function Rc(t){return t[yc("0xb5")][yc("0x169")]==t[yc("0x128")][yc("0xe9")]&&t[yc("0xb5")][yc("0xe1")]}function Sc(t,e,n,r){const i=t=>!t.item.is(yc("0xc7"))&&!r[yc("0xea")](t[yc("0x88")]),o=t[yc("0x128")][yc("0x91")](i),s=t[yc("0xb5")][yc("0x91")](i,{direction:yc("0x135")});return!(t[yc("0x128")][yc("0xe3")](o)&&t[yc("0xb5")][yc("0xe3")](s)||(o[yc("0x171")](s)?n[yc("0xa5")](e,{range:n[yc("0x11b")](o,s)}):n.removeMarker(e),0))}function vc(t){return(0,o.hashObject)(t)}function Nc(t){const e=t[yc("0x128")].nodeAfter;return e&&e.is("element")}function Lc(t,e){return null==t[yc("0xb5")].nodeBefore&&t[yc("0xb5")][yc("0x169")]==t.start[yc("0xe9")]?Mc(t[yc("0x128")][yc("0xe9")],e):t}function Mc(t,e){const n=e.schema[yc("0xea")](t)||e.schema[yc("0x48")](t);return e[yc("0x11b")](e[yc("0x49")](t,yc("0x8f")),n?e[yc("0x3d")](t):e.createPositionAt(t,yc("0xb5")))}function wc(t,e,n,r,i){if(!Oc(t,e))return!1;if(n[yc("0xb5")][yc("0xe3")](r[yc("0x128")]))return!0;if(t[yc("0x16f")]!=e[yc("0x16f")])return!1;if(!n[yc("0xb5")][yc("0x16d")](r[yc("0x128")]))return!1;const o=i[yc("0x11b")](n[yc("0xb5")],r.start)[yc("0x17f")]();for(const t of o)if([yc("0xc1"),yc("0x149")][yc("0xf0")](t[yc("0x16f")])&&i[yc("0x18")][yc("0xab")](t[yc("0x88")]))return!1;return!0}function Oc(t,e,n=[]){return!(!t[yc("0x6a")]||!e[yc("0x6a")])&&jr(bc(t[yc("0x7a")],n),bc(e.attributes,n))}function Fc(t,e){const n=Dc(t[yc("0x7a")]),r=Dc(e);if(!t[yc("0x6a")])return!1;for(const t of Object.keys(r))if(!jr(n[t],r[t]))return!1;return!0}function Dc(t){const e=Object[yc("0x9d")]({},t);return delete e[yc("0x3")],delete e[yc("0x28")],e}const Pc=["stopListening","canEditAt","add","isEnabled","_pendingAction","get","execute","_setPendingAction","commands","isDirty","unbind","getRanges","canAccept","_removePendingAction","_editor","_discardCommand","locale","_acceptCommand","PendingActions","canDiscard","acceptSuggestion","discardSuggestion","view","commentThreadController","listenTo","model","bind","remove"];var Bc,Uc;Bc=Pc,Uc=404,function(t){for(;--t;)Bc.push(Bc.shift())}(++Uc);const jc=function(t,e){return Pc[t-=0]};class Gc extends((0,e.ObservableMixin)()){constructor(t,e,n,r){super(),this[jc("0xd")]=e,this[jc("0xa")]=n,this[jc("0xb")]=r,this._editor=t,this[jc("0x5")]=t.commands[jc("0x15")](jc("0x8")),this[jc("0x3")]=t[jc("0x18")].get("discardSuggestion"),this[jc("0xa")][jc("0xe")](jc("0x13")).to(this[jc("0x5")],this[jc("0x3")],((t,e)=>t||e)),this.view[jc("0xe")](jc("0x0")).to(this._acceptCommand,jc("0x13"),(t=>t&&this[jc("0x2")][jc("0xd")][jc("0x11")](e[jc("0x1b")]()))),this[jc("0xa")][jc("0xe")]("canDiscard").to(this[jc("0x3")],jc("0x13"),(t=>t&&this[jc("0x2")].model[jc("0x11")](e[jc("0x1b")]()))),this[jc("0x14")]=null,n[jc("0x19")]&&this[jc("0x17")](),this[jc("0xc")](n,"acceptSuggestion",(()=>this[jc("0x8")]())),this[jc("0xc")](n,jc("0x9"),(()=>this[jc("0x9")]())),this[jc("0xc")](n,"change:isDirty",(()=>{n[jc("0x19")]?this[jc("0x17")]():this._removePendingAction()}))}acceptSuggestion(){this[jc("0x5")][jc("0x16")](this[jc("0xd")].id)}[jc("0x9")](){this[jc("0x3")][jc("0x16")](this[jc("0xd")].id)}destroy(){this[jc("0xa")][jc("0x1a")](jc("0x13")),this[jc("0xa")][jc("0x1a")](jc("0x0")),this[jc("0xa")][jc("0x1a")](jc("0x7")),this[jc("0x10")](),this[jc("0xb")].destroy(),this[jc("0x14")]&&this[jc("0x1")]()}[jc("0x17")](){const t=Jr(this._editor[jc("0x4")],"PENDING_ACTION_SUGGESTION");this[jc("0x14")]=this._editor.plugins[jc("0x15")](jc("0x6"))[jc("0x12")](t)}[jc("0x1")](){null!==this._pendingAction&&this._editor.plugins[jc("0x15")](jc("0x6"))[jc("0xf")](this[jc("0x14")]),this._pendingAction=null}}const Vc=["_createCommentViews","isReadOnly","_localUser","cancel","commentsListView","setData","assign","_config","canAccept","_model","commentInputView","focus","hasDirtyComment","element","set","locale","fire","delegate","removeComment","CommentView","destroy","isEnabled","showInput","isActive","bind","descriptionParts","length","authoredAt","commentThread","commentThreadInputView","disableComments","editorConfig","isDirty","disabledSubmit","addComment","_createCommentThreadInputView","submit","editor"];var Hc,zc;Hc=Vc,zc=127,function(t){for(;--t;)Hc.push(Hc.shift())}(++zc);const Wc=function(t,e){return Vc[t-=0]};class Kc extends i.View{constructor(t,e,n,r){super(t),this[Wc("0x1d")]=null,this[Wc("0x10")]=null,this[Wc("0x1")](Wc("0xa"),!1),this[Wc("0x1")]("authoredAt",e.authoredAt),this.bind(Wc("0xe")).to(e),this[Wc("0x1")](Wc("0xc"),[]),this.set(Wc("0x13"),!1),this[Wc("0x1")](Wc("0x8"),!1),this.set(Wc("0x21"),!1),this.set("canDiscard",!1),this[Wc("0x22")]=e,this[Wc("0x1b")]=n,this._config=r,r[Wc("0x11")]?this[Wc("0x1")](Wc("0xd"),1):this[Wc("0x19")]()}[Wc("0x24")](){this[Wc("0x0")][Wc("0x24")]()}[Wc("0x7")](){this.commentsListView&&this[Wc("0x1d")][Wc("0x7")](),this[Wc("0x10")]&&this[Wc("0x10")][Wc("0x7")](),super[Wc("0x7")]()}[Wc("0x19")](){const{CommentsListView:t}=this._config;this[Wc("0x1d")]=new t(this[Wc("0x2")],this._model[Wc("0xf")],Object[Wc("0x1f")]({CommentView:this[Wc("0x20")][Wc("0x6")]},this[Wc("0x20")])),this.commentsListView[Wc("0x4")](Wc("0x5")).to(this),this[Wc("0x1d")].delegate("updateComment").to(this),this[Wc("0x1d")][Wc("0xb")](Wc("0xa")).to(this),this.set(Wc("0xd"),this[Wc("0x1d")][Wc("0xd")]+1),this.bind(Wc("0xd")).to(this[Wc("0x1d")],Wc("0xd"),(t=>t+1)),this.commentThreadInputView=this[Wc("0x16")](),this.on(Wc("0x5"),(()=>this[Wc("0x24")]())),this[Wc("0xb")]("isDirty").to(this.commentsListView,Wc("0x25"),this[Wc("0x10")].commentInputView,"value",((t,e)=>t||!!e))}[Wc("0x16")](){const{CommentThreadInputView:t}=this[Wc("0x20")],e=new t(this[Wc("0x2")],this[Wc("0x1b")],this[Wc("0x20")][Wc("0x12")]),n=e[Wc("0x23")];return e[Wc("0xb")](Wc("0x9")).to(this,"isActive",this[Wc("0x22")][Wc("0xf")],Wc("0x1a"),n,"value",((t,e,n)=>!!n||t&&!e)),n.on(Wc("0x17"),((t,e)=>{this[Wc("0x3")](Wc("0x15"),e),n[Wc("0x18")][Wc("0x1e")]("")})),n.on(Wc("0x1c"),(()=>this[Wc("0x24")]())),n[Wc("0xb")](Wc("0x14")).to(this[Wc("0x22")][Wc("0xf")],Wc("0x1a")),e}}const qc=["content","userView","</span>","acceptSuggestion","setTemplate","div","isEnabled","ck-annotation__main","push","ck-annotation__info-time","canDiscard",'<span class="ck-suggestion-type">',"commentsListView","<p>","ck-suggestion-wrapper","_model","check","ck-comment__info-time","isExternal","bind","ck-suggestion__info","extendTemplate","formatDateTime","creator","ck-annotation__content-wrapper","value","EXTERNAL_IMPORT_WORD_AVATAR","@external","ck-suggestion--discard","ck-comment__external","delegate","locale","span","_createButton","map","editorDestroyed","ck-annotation","discardButton","source",'"></span>',"editorReady","cancel","render","color","EXTERNAL_SUGGESTION","authoredAt","discardSuggestion","</p>","canAccept","commentThreadInputView","innerHTML","ck-annotation__user",".ck-annotation__content-wrapper","isActive","element","_descriptionElement","descriptionParts","ck-suggestion-wrapper--active","set","getExternalSuggestionNote","time","author","children","getUserViewNotificationText","name","ck-suggestion-","importWord","ck-suggestion__main","acceptButton","ck-annotation__info-name","description","type","_config","disableComments","ck-suggestion__user","Discard suggestion","ck-suggestion--disabled-comments","ck-annotation__actions","split","ck-suggestion__info-name","attributes","querySelector","Accept suggestion"];var Xc,$c;Xc=qc,$c=323,function(t){for(;--t;)Xc.push(Xc.shift())}(++$c);const Zc=function(t,e){return qc[t-=0]};class Yc extends Kc{constructor(e,n,r,i){super(e,n,r,i),this[Zc("0x43")](Zc("0x50"),""),this.bind(Zc("0x50")).to(this,Zc("0x41"),(t=>t&&t[0]?t[0].type:"")),this.bind("description").to(this,Zc("0x41"),this,"isActive",((t,e)=>{let n="";for(const e of t)n+=Zc("0x16")+Jc(e[Zc("0x9")],e[Zc("0x34")])+Zc("0x38");return e?n:(0,o.trimHtml)(n,{limit:140})})),this[Zc("0x40")]=null,this[Zc("0x4d")]=this[Zc("0x2a")](Jr(e,Zc("0x8")),t.icons[Zc("0x19")],"ck-suggestion--accept",Zc("0xc"),"sw"),this[Zc("0x4d")][Zc("0x1c")](Zc("0xf")).to(this,Zc("0x39")),this[Zc("0x2e")]=this[Zc("0x2a")](Jr(e,Zc("0x1")),t.icons[Zc("0x32")],Zc("0x25"),Zc("0x37"),"sw"),this[Zc("0x2e")][Zc("0x1c")]("isEnabled").to(this,Zc("0x13")),this[Zc("0xa")]=new o.UserView(e,this[Zc("0x18")][Zc("0x46")],this[Zc("0x48")]()),this[Zc("0xa")][Zc("0x1e")]({attributes:{class:[Zc("0x0"),Zc("0x3c")]}}),this[Zc("0xd")](this.getTemplate())}getTemplate(){const t=this.bindTemplate,e=[{tag:"div",attributes:{class:[Zc("0x1d"),"ck-annotation__info"]},children:[{tag:"span",children:[{text:this[Zc("0xa")][Zc("0x49")]}],attributes:{class:[Zc("0x5"),Zc("0x4e")]}},{tag:Zc("0x45"),attributes:{datetime:t.to(Zc("0x36")),class:[Zc("0x1a"),Zc("0x12")]},children:[{text:t.to("authoredAt",(t=>this[Zc("0x51")][Zc("0x1f")](t)))}]}]},{tag:Zc("0xe"),attributes:{class:["ck-suggestion__actions",Zc("0x3")]},children:[this[Zc("0x4d")],this[Zc("0x2e")]]},{tag:Zc("0xe"),attributes:{class:[Zc("0x21")]}}];this[Zc("0x18")].isExternal&&e.push({tag:Zc("0xe"),attributes:{class:[Zc("0x26")]},children:[{text:this[Zc("0x44")]()}]});const n={tag:Zc("0xe"),attributes:{class:[Zc("0x17"),t.if(Zc("0x3e"),Zc("0x42")),t.to("type",(t=>Zc("0x4a")+t)),this[Zc("0x51")][Zc("0x52")]&&Zc("0x2")],"data-suggestion-id":this[Zc("0x18")].id,"data-thread-id":this[Zc("0x18")].commentThread.id,"data-author-id":this[Zc("0x18")][Zc("0x46")].id,tabindex:-1},children:[{tag:Zc("0xe"),attributes:{class:["ck-suggestion",Zc("0x2d")]},children:[this[Zc("0xa")],{tag:Zc("0xe"),attributes:{class:[Zc("0x4c"),Zc("0x10")]},children:e}]}]};return this[Zc("0x15")]&&this[Zc("0x3a")]&&(n[Zc("0x47")][Zc("0x11")](this[Zc("0x15")],this[Zc("0x3a")]),this[Zc("0x15")][Zc("0x27")](Zc("0x31")).to(this),this[Zc("0x15")][Zc("0x27")](Zc("0x2c")).to(this),this[Zc("0x3a")][Zc("0x27")](Zc("0x31")).to(this),this.commentThreadInputView[Zc("0x27")]("editorDestroyed").to(this)),n}[Zc("0x33")](){super.render(),this[Zc("0x40")]=this[Zc("0x3f")][Zc("0x7")](Zc("0x3d")),this[Zc("0x40")][Zc("0x3b")]=this[Zc("0x4f")],this.on("change:description",((t,e,n)=>{this[Zc("0x40")][Zc("0x3b")]=n}))}[Zc("0x2a")](t,e,n,r,o){const s=new i.ButtonView(this.locale);return s.set({label:t,icon:e,tooltip:!0,tooltipPosition:o}),s[Zc("0x1e")]({attributes:{class:n}}),s.on("execute",(()=>{this.fire(r,this[Zc("0x18")].id)})),s}[Zc("0x44")](){return"importWord"===this[Zc("0x18")][Zc("0x6")][Zc("0x24")].source?Jr(this[Zc("0x28")],"EXTERNAL_IMPORT_WORD_SUGGESTION"):Jr(this[Zc("0x28")],Zc("0x35"))}[Zc("0x48")](){return this[Zc("0x18")][Zc("0x1b")]?Zc("0x4b")===this[Zc("0x18")].attributes[Zc("0x24")][Zc("0x2f")]?Jr(this[Zc("0x28")],Zc("0x23"),this[Zc("0x18")].creator[Zc("0x49")]):Jr(this[Zc("0x28")],"EXTERNAL_AVATAR",this[Zc("0x18")][Zc("0x20")].name):null}}function Jc(t,e){let n="";return n+=t[Zc("0x4")]("*")[Zc("0x2b")](((t,e)=>e%2!=0?Zc("0x14")+Qc(t)+Zc("0xb"):Qc(t))).join(""),e&&(n+='<span class="ck-suggestion-color" style="background-color: '+e[Zc("0x22")]+'" title="'+e.title+Zc("0x30")),n}function Qc(t){const e=document.createElement(Zc("0x29"));return e.innerText=t,e.innerHTML}const tl=["isInContent","comments","init","getRanges","_viewToController","lowest","config","getMarkerNames","add","_bindAnnotationToEditors","bind","editing","getAllAdjacentSuggestions","type","_destroyController","_disableComments","Track changes","_suggestionToController","TrackChangesEditing","activeAnnotations","suggestionLoaded","focus","trackChanges.SuggestionThreadView","length","commands","reduce","_descriptionFactory","clear","discardButton","head","comments.maxCommentCharsWhenCollapsed","trackChanges.disableComments","registerAnnotation","acceptSelectedSuggestions","remove","model","mainView","commandName","Discard all suggestions","createAnnotation","addSourceCollector","switchbutton","push","activeMarkers","_annotationViews","filter","change:activeAnnotations","isDirty","suggestionUnloaded","unbind","getByInnerView","_unbindEditors","requires","_updateController","createAnnotationView","Annotations","suggestion-","plugins","locale","from","previous","pluginName","button","map","_handleControllerBuffer","SuggestionThreadView","refreshSelectedViews","_createUIButton","value","CommentView","arrowView","actionView","innerView","_initializeController","keys","buttonView","size","CommentsUI","getSuggestion","componentFactory","getFirstRange","_handleSuggestionControllerDelayed","comments.editorConfig","some","getDescriptions","delete","acceptAllSuggestions","view","listenTo","has","values","_refreshActiveMarkers","define","get","EditorAnnotations","addComment","isOn","set","CommentsRepository","destroy","execute","comments.maxCommentsWhenCollapsed","change:previous","trackChanges","isMultiRange","acceptButton","isEnabled","discardAllSuggestions","comments.maxThreadTotalWeight","stopListening","toMany","getJoined","editor"];var el,nl;el=tl,nl=470,function(t){for(;--t;)el.push(el.shift())}(++nl);const rl=function(t,e){return tl[t-=0]};class il extends t.Plugin{static get[rl("0x22")](){return[Ac,o.Users,rl("0x50"),"Annotations","EditorAnnotations"]}static get[rl("0x2b")](){return"TrackChangesUI"}constructor(t){super(t),this[rl("0x70")]=new Map,this[rl("0x63")]=new Map,this[rl("0x1a")]=new Map,this[rl("0x2e")]=new Map;const e=this[rl("0x5e")][rl("0x65")];e[rl("0x4a")](rl("0x4"),Yc),e[rl("0x4a")](rl("0xd"),!1),this[rl("0x6e")]=e[rl("0x4b")](rl("0xd"))}[rl("0x3f")](t,e){0===this[rl("0x2e")][rl("0x3a")]&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this._suggestionToController[rl("0x47")](t);n||e?n&&e&&this._destroyController(t):this[rl("0x37")](t)}this[rl("0x2e")][rl("0x9")](),this[rl("0x5e")][rl("0x27")][rl("0x4b")](rl("0x4c"))[rl("0x30")](),this._refreshActiveMarkers()}),10),this[rl("0x2e")].set(t,e)}[rl("0x61")](){const t=this.editor,e=t.plugins[rl("0x4b")]("TrackChangesEditing"),n=t.plugins[rl("0x4b")](rl("0x25")),r=t[rl("0x27")][rl("0x4b")](rl("0x4c")),i=t.plugins[rl("0x4b")](rl("0x50"));t.ui[rl("0x3d")][rl("0x67")](rl("0x55"),(t=>this._createUIButton(t))),r[rl("0x16")]((()=>{const t=[];for(const[e,n]of Array[rl("0x29")](this._suggestionToController)){const r=e[rl("0x6b")](),i=[];for(const t of r){if(!t.isInContent)continue;if(t[rl("0x56")]){i[rl("0x18")](...t[rl("0x62")]());continue}const e=t[rl("0x3e")]();if(i[rl("0x5")]>0){const t=i[0][rl("0x5d")](e);if(t){i[0]=t;continue}}i[rl("0x18")](e)}t[rl("0x18")]([n[rl("0x45")],i])}return t})),this[rl("0x46")](e,rl("0x2"),((t,e)=>{this[rl("0x46")](e,rl("0x54"),((t,n,r,i)=>{e[rl("0x5f")]&&(null==r?(this[rl("0x23")](i[rl("0xb")]),this[rl("0x3f")](e,!1)):(this._updateController(r.head),null==i&&this[rl("0x3f")](e,!0)))})),null!==e[rl("0x2a")]?this._updateController(e[rl("0xb")]):this[rl("0x3f")](e,!1)})),this[rl("0x46")](e,rl("0x1e"),((t,e,n)=>{this[rl("0x5b")](e,"change:previous"),this._handleControllerBuffer[rl("0x43")](e),this[rl("0x70")][rl("0x47")](e)&&this[rl("0x6d")](e),n&&this[rl("0x23")](n[rl("0xb")])})),this[rl("0x46")](e,"suggestionChanged",((t,e)=>{this._updateController(e)})),this[rl("0x46")](n,rl("0x1c"),(()=>{this._refreshActiveMarkers()})),this.listenTo(i,rl("0x4d"),((t,{threadId:n,isFromAdapter:r})=>{if(r||!e.hasSuggestion(n))return;const i=e[rl("0x3c")](n);this[rl("0x70")][rl("0x4b")](i)[rl("0x45")][rl("0x3")]()}),{priority:rl("0x64")})}[rl("0x49")](){const t=this[rl("0x5e")][rl("0x27")].get(rl("0x25")),e=this[rl("0x5e")][rl("0x27")].get(rl("0x0")),n=Array[rl("0x29")](t[rl("0x1")],(t=>t[rl("0x36")]))[rl("0x1b")]((t=>this[rl("0x63")].has(t))),r=[];for(const t of n){const e=this._viewToController[rl("0x4b")](t)[rl("0x11")][rl("0x6b")]();r[rl("0x18")](...e[rl("0x7")](((t,e)=>[...t,...e[rl("0x66")]()]),[]))}e[rl("0x19")]=r}[rl("0x31")](t){const n=(0,i.createDropdown)(t,i.SplitButtonView),r=this.editor.commands[rl("0x4b")]("trackChanges"),o=Jr(t,rl("0x6f"));n[rl("0x39")][rl("0x4f")]({tooltip:o,label:o,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-2024, 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.buttonView[rl("0x69")]("isOn").to(r,rl("0x32")),n.buttonView.on(rl("0x52"),(()=>{r[rl("0x52")](),this.editor[rl("0x6a")][rl("0x45")].focus()}));const s=new e.Collection,x=[{type:rl("0x17"),model:{withText:!0,label:o,commandName:"trackChanges"}},{type:"separator"},{type:rl("0x2c"),model:{withText:!0,label:Jr(t,"Accept all suggestions"),commandName:rl("0x44")}},{type:"button",model:{withText:!0,label:Jr(t,"Accept all selected suggestions"),commandName:rl("0xf")}},{type:rl("0x2c"),model:{withText:!0,label:Jr(t,rl("0x14")),commandName:rl("0x59")}},{type:rl("0x2c"),model:{withText:!0,label:Jr(t,"Discard all selected suggestions"),commandName:"discardSelectedSuggestions"}}];for(const t of x){let e={type:"separator"};if(t[rl("0x11")]){const n=new i.ViewModel(t[rl("0x11")]),r=this[rl("0x5e")][rl("0x6")][rl("0x4b")](n[rl("0x13")]);n.bind(rl("0x4e"),"isEnabled").to(r,"value",rl("0x58")),e={type:t.type,model:n}}s[rl("0x67")](e)}(0,i.addListToDropdown)(n,s);const a=x[rl("0x1b")]((t=>null!=t[rl("0x11")]))[rl("0x2d")]((t=>this[rl("0x5e")][rl("0x6")][rl("0x4b")](t[rl("0x11")][rl("0x13")]))),c=n[rl("0x39")];return c[rl("0x35")].unbind(rl("0x58")),c.arrowView[rl("0x1f")](rl("0x58")),c[rl("0x35")][rl("0x69")](rl("0x58")).to(r,"isEnabled"),c[rl("0x34")][rl("0x69")](rl("0x58"))[rl("0x5c")](a,rl("0x58"),((...t)=>t[rl("0x41")]((t=>t)))),n.on(rl("0x52"),(t=>{this.editor[rl("0x52")](t.source[rl("0x13")]),this[rl("0x5e")][rl("0x6a")][rl("0x45")].focus()})),n}[rl("0x37")](t){const e=this.editor,n=e[rl("0x65")],r=e.plugins[rl("0x4b")](rl("0x25")),i=e[rl("0x27")][rl("0x4b")]("CommentsRepository"),s=e.plugins[rl("0x4b")]("EditorAnnotations"),x=e[rl("0x27")].get(o.Users).me,a=n.get(rl("0x55"))[rl("0x2f")],{CommentsListView:c,CommentThreadInputView:l}=e[rl("0x27")].get(rl("0x3b"));let u,d;this[rl("0x1a")][rl("0x47")](t.id)?(d=this[rl("0x1a")][rl("0x4b")](t.id),u=d[rl("0x12")]):(u=new a(e[rl("0x28")],t,x,{disableComments:this[rl("0x6e")],editorConfig:n[rl("0x4b")](rl("0x40")),maxCommentsWhenCollapsed:n[rl("0x4b")](rl("0x53")),maxThreadTotalWeight:n[rl("0x4b")](rl("0x5a")),maxCommentCharsWhenCollapsed:n[rl("0x4b")](rl("0xc")),formatDateTime:(0,o.getDateTimeFormatter)(n[rl("0x4b")](rl("0x28"))),CommentView:n[rl("0x4b")](rl("0x60"))[rl("0x33")],CommentsListView:c,CommentThreadInputView:l}),u[rl("0x57")].on(rl("0x52"),(()=>{e[rl("0x6a")][rl("0x45")][rl("0x3")]()})),u[rl("0xa")].on(rl("0x52"),(()=>{e.editing.view[rl("0x3")]()})),d=r[rl("0x24")](this[rl("0x5e")][rl("0x28")],u),d[rl("0x69")](rl("0x1d")).to(u,rl("0x1d")),d[rl("0x69")](rl("0x5")).to(u),d[rl("0x69")](rl("0x6c")).to(u,rl("0x6c"),(t=>rl("0x26")+t)),this[rl("0x1a")].set(t.id,d));const g=i.createCommentThreadController(t.commentThread,u),f=new Gc(e,t,u,g),h=t[rl("0x6b")]()[rl("0x1b")]((t=>t[rl("0x5f")]));u.descriptionParts=e.plugins[rl("0x4b")](rl("0x0"))[rl("0x8")][rl("0x42")](h),this[rl("0x70")][rl("0x4f")](t,f),this._viewToController.set(u,f);const m=r[rl("0x15")]({view:d,target:()=>{const n=[],r=t[rl("0x6b")]()[rl("0x1b")]((t=>t.isInContent));for(const t of r)n[rl("0x18")](...t.getMarkers());return(0,o.getAllMarkersDomElementsSorted)(e[rl("0x6a")],n)},type:()=>rl("0x26")+f[rl("0x45")].type});i[rl("0x68")](u,m),r.add(m),s[rl("0xe")](m)}[rl("0x6d")](t){const e=this[rl("0x5e")].plugins[rl("0x4b")](rl("0x50")),n=this[rl("0x5e")].plugins[rl("0x4b")](rl("0x25")),r=this[rl("0x70")][rl("0x4b")](t),i=r[rl("0x45")],o=n[rl("0x20")](i);e[rl("0x21")](i),o&&n[rl("0x10")](o),this[rl("0x70")][rl("0x43")](t),this[rl("0x63")][rl("0x43")](i),r[rl("0x51")]()}_updateController(t){if(!t[rl("0x5f")]||!this[rl("0x70")].has(t))return;const e=this[rl("0x5e")][rl("0x27")][rl("0x4b")](rl("0x0")),n=this._suggestionToController[rl("0x4b")](t),r=t[rl("0x6b")]();n[rl("0x45")].descriptionParts=e[rl("0x8")].getDescriptions(r)}[rl("0x51")](){for(const t of this._suggestionToController[rl("0x38")]())this[rl("0x6d")](t);for(const t of this._annotationViews[rl("0x48")]())t.mainView.destroy();super.destroy()}}var ol,sl,xl=["addSuggestion","Comments","getSuggestion","plugins","TrackChanges","editor","adapter","get"];ol=xl,sl=122,function(t){for(;--t;)ol.push(ol.shift())}(++sl);var al=function(t,e){return xl[t-=0]};class cl extends t.Plugin{static get requires(){return[Ac,il,al("0x7")]}static get pluginName(){return al("0x2")}set[al("0x4")](t){this.editor.plugins.get(Ac)[al("0x4")]=t}get[al("0x4")](){return this[al("0x3")][al("0x1")][al("0x5")](Ac)[al("0x4")]}[al("0x6")](t){return this[al("0x3")][al("0x1")].get(Ac).addSuggestionData(t)}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[al("0x3")][al("0x1")].get(Ac).getSuggestions({skipNotAttached:t,toJSON:e})}[al("0x0")](t){return this[al("0x3")][al("0x1")][al("0x5")](Ac).getSuggestion(t)}}const ll=["TrackChangesDataGetter","useAnonymousUser","acceptAllSuggestions","define","set","createDocumentFragment","getRootsAttributes","get","result","getSuggestions","trackChangesData","getRootNames","TrackChangesEditing","discardAllSuggestions","TrackChangesData","editor","reduce","addSuggestionData","appendChild","editorCreator","trackChangesData.editorCreator","init","Users","getDataWithAcceptedSuggestions","addUser","users","data","map","Pagination","getUser","plugins","document","end","requires","getDataWithDiscardedSuggestions","_adapter","model","getFullData","create","config","CommentsRepository","name","pluginName"];var ul,dl;ul=ll,dl=243,function(t){for(;--t;)ul.push(ul.shift())}(++dl);const gl=function(t,e){return ll[t-=0]},fl=[gl("0x0")];class hl extends t.Plugin{static get[gl("0x5")](){return[Ac]}static get[gl("0xe")](){return gl("0x1d")}[gl("0x24")](){const t=this[gl("0x1e")];if(t[gl("0xb")][gl("0x12")](gl("0x23"),(e=>{const n=t[gl("0x8")][gl("0x3")].getRootNames().reduce(((t,e)=>(t[e]="",t)),{});return t.constructor[gl("0xa")](n,e)})),"function"!=typeof t[gl("0xb")][gl("0x16")](gl("0x19"))[gl("0x22")])throw new e.CKEditorError("track-changes-data-invalid-editor-creator")}[gl("0x26")](t){return bl(this[gl("0x1e")],!0,t)}[gl("0x6")](t){return bl(this[gl("0x1e")],!1,t)}}class ml extends t.Plugin{static get[gl("0xe")](){return gl("0xf")}constructor(t){super(t),this[gl("0x17")]=gl("0x4")}[gl("0x24")](){this[gl("0x1e")][gl("0x2")][gl("0x16")](gl("0xc"))[gl("0x7")]={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this.editor[gl("0x2")][gl("0x16")](gl("0x1b"))[gl("0x7")]=null}}function pl(t){return void 0!==t[gl("0x15")]}async function bl(t,e,n){const r=(0,o.sanitizeEditorConfig)(t,fl);r[gl("0x2")].push(Ac,ml),r.rootsAttributes=pl(t)?t.getRootsAttributes():void 0;const i=document[gl("0x14")](),s=t[gl("0xb")][gl("0x16")](gl("0x19"))[gl("0x22")],x=await s(r,(()=>function(t){const e=document.createElement("div");return t[gl("0x21")](e),e}(i)));!function(t,e){const n=t[gl("0x8")][gl("0x3")][gl("0x1a")]()[gl("0x1f")](((e,n)=>(e[n]=t[gl("0x29")][gl("0x16")]({rootName:n}),e)),{}),r=t[gl("0x2")][gl("0x16")](gl("0x25"))[gl("0x28")][gl("0x2a")]((t=>({id:t.id,name:t[gl("0xd")]}))),i=t[gl("0x2")][gl("0x16")](gl("0x1b"))[gl("0x18")]({skipNotAttached:!0,toJSON:!0}),o=e.plugins[gl("0x16")]("Users"),s=e[gl("0x2")][gl("0x16")]("TrackChangesEditing");for(const t of r)o[gl("0x1")](t.id)||o[gl("0x27")](t);o.me||o[gl("0x10")]();for(const t of i)s[gl("0x20")](t);e.data[gl("0x13")](n)}(t,x),x.execute(gl(e?"0x11":"0x1c"));const a=pl(x)?x[gl("0x9")](n):x[gl("0x29")][gl("0x16")](n);return await x.destroy(),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=r})();
|
|
5
|
+
*/(()=>{var t={588:(t,e,n)=>{t.exports=n(104)("./src/collaboration-core.js")},968:(t,e,n)=>{t.exports=n(672)("./src/core.js")},684:(t,e,n)=>{t.exports=n(672)("./src/engine.js")},976:(t,e,n)=>{t.exports=n(672)("./src/enter.js")},500:(t,e,n)=>{t.exports=n(672)("./src/typing.js")},348:(t,e,n)=>{t.exports=n(672)("./src/ui.js")},316:(t,e,n)=>{t.exports=n(672)("./src/utils.js")},396:(t,e,n)=>{t.exports=n(672)("./src/widget.js")},104:t=>{"use strict";t.exports=CKEditor5.collaborationDll},672:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},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 r={};(()=>{"use strict";n.r(r),n.d(r,{BaseSuggestionThreadView:()=>Kc,TrackChanges:()=>cl,TrackChangesData:()=>hl,TrackChangesEditing:()=>Ac});var t=n(968),e=n(316),i=n(348),o=n(588),s=n(684),x=n(396);const a=["refresh","execute","_isEnabledBasedOnSelection","has","editor","commands","value","affectsData","forceDisabled","clearForceDisabled","isEnabled","_disableUnsupportedCommands","_enabledCommands","_enableCommands"];var c,l;c=a,l=428,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("0x4")]=e,this[u("0xc")]=!1,this[u("0x6")](),this[u("0x8")]=!1}[u("0x6")](){this[u("0x2")]=!0}[u("0x7")](){this[u("0xc")]=!this[u("0xc")],this.value?this._disableUnsupportedCommands():this._enableCommands()}[u("0x3")](){for(const t of this.editor.commands.commands())t[u("0xd")]&&!this[u("0x4")][u("0x9")](t)&&t[u("0x0")]("TrackChangesCommand")}[u("0x5")](){for(const t of this[u("0xa")][u("0xb")].commands())t.affectsData&&!this[u("0x4")][u("0x9")](t)&&t[u("0x1")]("TrackChangesCommand")}}const g=["_suggestions","getRanges","execute","canEditAt","refresh","acceptSuggestion","get","_isEnabledBasedOnSelection","isEnabled","editor","plugins","TrackChangesEditing"];var f,h;f=g,h=195,function(t){for(;--t;)f.push(f.shift())}(++h);const m=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[m("0x9")]=e,this[m("0x1")](),this[m("0x4")]=!1}[m("0x1")](){this[m("0x5")]=!0}[m("0xb")](t){const n=this[m("0x9")][m("0x3")](t);if(!n)throw new e.CKEditorError("track-changes-accept-suggestion-not-found",this);const r=n[m("0xa")]();this[m("0x6")].model[m("0x0")](r)&&this[m("0x6")][m("0x7")][m("0x3")](m("0x8"))[m("0x2")](n)}}const b=["track-changes-discard-suggestion-not-found","TrackChangesEditing","editor","get","_isEnabledBasedOnSelection","_suggestions","canEditAt","getRanges","discardSuggestion","model","refresh"];var E,_;E=b,_=225,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("0x0")]=e,this[T("0x5")](),this[T("0xa")]=!1}[T("0x5")](){this.isEnabled=!0}execute(t){const n=this[T("0x0")][T("0x9")](t);if(!n)throw new e.CKEditorError(T("0x6"),this);const r=n[T("0x2")]();this[T("0x8")][T("0x4")][T("0x1")](r)&&this.editor.plugins[T("0x9")](T("0x7"))[T("0x3")](n)}}const C=["isCollapsed","length","isObject","isIntersecting","sort"," [color ","add","isArray","start","isTouching","value","map","getRanges","deletion","color","push","isMultiRange","createPositionAt","createPositionBefore","end","splice","type","isInContent","schema","join","from"];var A,k;A=C,k=456,function(t){for(;--t;)A.push(A.shift())}(++k);const I=function(t,e){return C[t-=0]};function R(t){return t[I("0x10")](((t,e)=>I("0x19")==t.type&&I("0x19")!=e[I("0x7")]?-1:I("0x19")!=t[I("0x7")]&&I("0x19")==e[I("0x7")]?1:0))}function S(t,e){let n,r=0;const i=[],o=e[I("0x9")];for(;r<t[I("0xd")];){const s=t[r],x=t[r+1];n||(n=e[I("0x4")](s)),v(e,s,x)||(i[I("0x1")](e.createRange(n,o[I("0xe")](s)?e.createPositionAfter(s):e[I("0x3")](s,I("0x5")))),n=null),r++}return i}function v(t,e,n){if(!n)return!1;const r=t.createPositionAfter(e),i=t[I("0x4")](n);return r[I("0x15")](i)}function L(t,e,n){for(;n.length;){const r=n[I("0x6")](0,100);t.change((()=>{for(const t of r)t.isInContent&&e.execute(t.id)}))}}const N=["from","model","_suggestions","values","refresh","_command","getRanges","some","editor","execute","_isEnabledBasedOnSelection"];var M,w;M=N,w=272,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("0x8")]=e,this._suggestions=n,this[O("0x7")](),this[O("0x2")]=!1}[O("0x7")](){const t=Array[O("0x3")](this[O("0x5")][O("0x6")]())[O("0xa")]((t=>t.isInContent));this.isEnabled=this[O("0x8")].isEnabled&&t}[O("0x1")](){const t=R(Array[O("0x3")](this[O("0x5")][O("0x6")]()));for(const e of t){const t=e[O("0x9")]();if(!this[O("0x0")][O("0x4")].canEditAt(t))return}L(this[O("0x0")][O("0x4")],this[O("0x8")],t)}}const D=["_selectedSuggestions","document","_suggestions","_command","values","size","selection","model","from","getRanges","isEnabled","canEditAt","execute","editor","refresh","_isEnabledBasedOnSelection"];var P,B;P=D,B=334,function(t){for(;--t;)P.push(P.shift())}(++B);const U=function(t,e){return D[t-=0]};class j extends t.Command{constructor(t,e,n){super(t),this[U("0x5")]=e,this._suggestions=n,this[U("0x2")]=new Set,this[U("0x0")](),this[U("0x1")]=!1}[U("0x0")](){const t=this.editor[U("0x9")][U("0x3")][U("0x8")],e=Array[U("0xa")](this[U("0x4")][U("0x6")]());this[U("0x2")]=function(t,e){const n=Array[I("0xb")](t[I("0x18")]()),r=new Set;for(const i of e)if(i[I("0x8")])for(const e of n)for(const n of i[I("0x18")]())(e[I("0xf")](n)||t[I("0xc")]&&!i[I("0x2")]&&i.next&&n[I("0x5")].isTouching(e[I("0x14")]))&&r[I("0x12")](i);return r}(t,e),this[U("0xc")]=this[U("0x5")][U("0xc")]&&!!this._selectedSuggestions[U("0x7")]}[U("0xe")](){const t=R(Array[U("0xa")](this[U("0x2")]));for(const e of t){const t=e[U("0xb")]();if(!this[U("0xf")][U("0x9")][U("0xd")](t))return}L(this.editor[U("0x9")],this[U("0x5")],t)}}const G=function(){this.__data__=[],this.size=0};const V=function(t,e){return t===e||t!=t&&e!=e};const H=function(t,e){for(var n=t.length;n--;)if(V(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const W=function(t){var e=this.__data__,n=H(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=H(e,t);return n<0?void 0:e[n][1]};const q=function(t){return H(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,r=H(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}$.prototype.clear=G,$.prototype.delete=W,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const Z=$;const Y=function(){this.__data__=new Z,this.size=0};const J=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Q=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 rt=et||nt||Function("return this")();const it=rt.Symbol;var ot=Object.prototype,st=ot.hasOwnProperty,xt=ot.toString,at=it?it.toStringTag:void 0;const ct=function(t){var e=st.call(t,at),n=t[at];try{t[at]=void 0;var r=!0}catch(t){}var i=xt.call(t);return r&&(e?t[at]=n:delete t[at]),i};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=it?it.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 ft=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ht=function(t){if(!ft(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const mt=rt["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(mt&&mt.keys&&mt.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,At=Object.prototype,kt=Ct.toString,It=At.hasOwnProperty,Rt=RegExp("^"+kt.call(It).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!ft(t)||Et(t))&&(ht(t)?Rt:yt).test(Tt(t))};const vt=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=vt(t,e);return St(n)?n:void 0};const Nt=Lt(rt,"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 Dt=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 Pt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Pt.call(e,t)};const Ut=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 jt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}jt.prototype.clear=wt,jt.prototype.delete=Ot,jt.prototype.get=Dt,jt.prototype.has=Bt,jt.prototype.set=Ut;const Gt=jt;const Vt=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||Z),string:new Gt}};const Ht=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 Ht(e)?n["string"==typeof e?"string":"hash"]:n.map};const Wt=function(t){var e=zt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return zt(this,t).get(t)};const qt=function(t){return zt(this,t).has(t)};const Xt=function(t,e){var n=zt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}$t.prototype.clear=Vt,$t.prototype.delete=Wt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Zt=$t;const Yt=function(t,e){var n=this.__data__;if(n instanceof Z){var r=n.__data__;if(!Nt||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Zt(r)}return n.set(t,e),this.size=n.size,this};function Jt(t){var e=this.__data__=new Z(t);this.size=e.size}Jt.prototype.clear=Y,Jt.prototype.delete=J,Jt.prototype.get=Q,Jt.prototype.has=tt,Jt.prototype.set=Yt;const Qt=Jt;const te=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!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 re=Object.prototype.hasOwnProperty;const ie=function(t,e,n){var r=t[e];re.call(t,e)&&V(r,n)&&(void 0!==n||e in t)||ne(t,e,n)};const oe=function(t,e,n,r){var i=!n;n||(n={});for(var o=-1,s=e.length;++o<s;){var x=e[o],a=r?r(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),i?ne(n,x,a):ie(n,x,a)}return n};const se=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r};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 fe=function(){return!1};var he="object"==typeof exports&&exports&&!exports.nodeType&&exports,me=he&&"object"==typeof module&&module&&!module.nodeType&&module,pe=me&&me.exports===he?rt.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||fe;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 Ae=function(t){return function(e){return t(e)}};var ke="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ie=ke&&"object"==typeof module&&module&&!module.nodeType&&module,Re=Ie&&Ie.exports===ke&&et.process;const Se=function(){try{var t=Ie&&Ie.require&&Ie.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var ve=Se&&Se.isTypedArray;const Le=ve?Ae(ve):Ce;var Ne=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),r=!n&&de(t),i=!n&&!r&&be(t),o=!n&&!r&&!i&&Le(t),s=n||r||i||o,x=s?se(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("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 De=Fe(Object.keys,Object);var Pe=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return De(t);var e=[];for(var n in Object(t))Pe.call(t,n)&&"constructor"!=n&&e.push(n);return e};const Ue=function(t){return null!=t&&Te(t.length)&&!ht(t)};const je=function(t){return Ue(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&oe(e,je(e),t)};const Ve=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var He=Object.prototype.hasOwnProperty;const ze=function(t){if(!ft(t))return Ve(t);var e=Oe(t),n=[];for(var r in t)("constructor"!=r||!e&&He.call(t,r))&&n.push(r);return n};const We=function(t){return Ue(t)?Me(t,!0):ze(t)};const Ke=function(t,e){return t&&oe(e,We(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?rt.Buffer:void 0,Ze=$e?$e.allocUnsafe:void 0;const Ye=function(t,e){if(e)return t.slice();var n=t.length,r=Ze?Ze(n):new t.constructor(n);return t.copy(r),r};const Je=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e};const Qe=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const rn=nn?function(t){return null==t?[]:(t=Object(t),Qe(nn(t),(function(e){return en.call(t,e)})))}:tn;const on=function(t,e){return oe(t,rn(t),e)};const sn=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)sn(e,rn(t)),t=xn(t);return e}:tn;const cn=function(t,e){return oe(t,an(t),e)};const ln=function(t,e,n){var r=e(t);return ge(t)?r:sn(r,n(t))};const un=function(t){return ln(t,je,rn)};const dn=function(t){return ln(t,We,an)};const gn=Lt(rt,"DataView");const fn=Lt(rt,"Promise");const hn=Lt(rt,"Set");const mn=Lt(rt,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",yn=Tt(gn),Cn=Tt(Nt),An=Tt(fn),kn=Tt(hn),In=Tt(mn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||fn&&Rn(fn.resolve())!=bn||hn&&Rn(new hn)!=En||mn&&Rn(new mn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,r=n?Tt(n):"";if(r)switch(r){case yn:return Tn;case Cn:return pn;case An:return bn;case kn:return En;case In:return _n}return e});const Sn=Rn;var vn=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&vn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=rt.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 Dn=it?it.prototype:void 0,Pn=Dn?Dn.valueOf:void 0;const Bn=function(t){return Pn?Object(Pn.call(t)):{}};const Un=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const jn=function(t,e,n){var r=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new r(+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 Un(t,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Vn=function(){function t(){}return function(e){if(!ft(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Hn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Vn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Wn=Se&&Se.isMap;const Kn=Wn?Ae(Wn):zn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?Ae(Xn):qn;var Zn="[object Arguments]",Yn="[object Function]",Jn="[object Object]",Qn={};Qn[Zn]=Qn["[object Array]"]=Qn["[object ArrayBuffer]"]=Qn["[object DataView]"]=Qn["[object Boolean]"]=Qn["[object Date]"]=Qn["[object Float32Array]"]=Qn["[object Float64Array]"]=Qn["[object Int8Array]"]=Qn["[object Int16Array]"]=Qn["[object Int32Array]"]=Qn["[object Map]"]=Qn["[object Number]"]=Qn[Jn]=Qn["[object RegExp]"]=Qn["[object Set]"]=Qn["[object String]"]=Qn["[object Symbol]"]=Qn["[object Uint8Array]"]=Qn["[object Uint8ClampedArray]"]=Qn["[object Uint16Array]"]=Qn["[object Uint32Array]"]=!0,Qn["[object Error]"]=Qn[Yn]=Qn["[object WeakMap]"]=!1;const tr=function t(e,n,r,i,o,s){var x,a=1&n,c=2&n,l=4&n;if(r&&(x=o?r(e,i,o,s):r(e)),void 0!==x)return x;if(!ft(e))return e;var u=ge(e);if(u){if(x=Ln(e),!a)return Je(e,x)}else{var d=Sn(e),g=d==Yn||"[object GeneratorFunction]"==d;if(be(e))return Ye(e,a);if(d==Jn||d==Zn||g&&!o){if(x=c||g?{}:Hn(e),!a)return c?cn(e,Ke(x,e)):on(e,Ge(x,e))}else{if(!Qn[d])return o?e:{};x=jn(e,d,a)}}s||(s=new Qt);var f=s.get(e);if(f)return f;s.set(e,x),$n(e)?e.forEach((function(i){x.add(t(i,n,r,i,e,s))})):Kn(e)&&e.forEach((function(i,o){x.set(o,t(i,n,r,o,e,s))}));var h=u?void 0:(l?c?dn:un:c?We:je)(e);return te(h||e,(function(i,o){h&&(i=e[o=i]),ie(x,o,t(i,n,r,o,e,s))})),x};const er=function(t){return tr(t,5)};const nr=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var rr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ir=/^\w*$/;const or=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!nr(t))||(ir.test(t)||!rr.test(t)||null!=e&&t in Object(e))};function sr(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(sr.Cache||Zt),n}sr.Cache=Zt;const xr=sr;var ar=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cr=/\\(\\)?/g;const lr=function(t){var e=xr(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(ar,(function(t,n,r,i){e.push(r?i.replace(cr,"$1"):n||t)})),e}));const ur=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i};var dr=it?it.prototype:void 0,gr=dr?dr.toString:void 0;const fr=function t(e){if("string"==typeof e)return e;if(ge(e))return ur(e,t)+"";if(nr(e))return gr?gr.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const hr=function(t){return null==t?"":fr(t)};const mr=function(t,e){return ge(t)?t:or(t,e)?[t]:lr(hr(t))};const pr=function(t){if("string"==typeof t||nr(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const br=function(t,e,n,r){if(!ft(t))return t;for(var i=-1,o=(e=mr(e,t)).length,s=o-1,x=t;null!=x&&++i<o;){var a=pr(e[i]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(i!=s){var l=x[a];void 0===(c=r?r(l,a,x):void 0)&&(c=ft(l)?l:_e(e[i+1])?[]:{})}ie(x,a,c),x=x[a]}return t};const Er=function(t,e,n){return null==t?t:br(t,e,n)};const _r=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Tr=function(t){return this.__data__.has(t)};function yr(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Zt;++e<n;)this.add(t[e])}yr.prototype.add=yr.prototype.push=_r,yr.prototype.has=Tr;const Cr=yr;const Ar=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1};const kr=function(t,e){return t.has(e)};const Ir=function(t,e,n,r,i,o){var s=1&n,x=t.length,a=e.length;if(x!=a&&!(s&&a>x))return!1;var c=o.get(t),l=o.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new Cr:void 0;for(o.set(t,e),o.set(e,t);++u<x;){var f=t[u],h=e[u];if(r)var m=s?r(h,f,u,e,t,o):r(f,h,u,t,e,o);if(void 0!==m){if(m)continue;d=!1;break}if(g){if(!Ar(e,(function(t,e){if(!kr(g,e)&&(f===t||i(f,t,n,r,o)))return g.push(e)}))){d=!1;break}}else if(f!==h&&!i(f,h,n,r,o)){d=!1;break}}return o.delete(t),o.delete(e),d};const Rr=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n};const Sr=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var vr=it?it.prototype:void 0,Lr=vr?vr.valueOf:void 0;const Nr=function(t,e,n,r,i,o,s){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||!o(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return V(+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=Rr;case"[object Set]":var a=1&r;if(x||(x=Sr),t.size!=e.size&&!a)return!1;var c=s.get(t);if(c)return c==e;r|=2,s.set(t,e);var l=Ir(x(t),x(e),r,i,o,s);return s.delete(t),l;case"[object Symbol]":if(Lr)return Lr.call(t)==Lr.call(e)}return!1};var Mr=Object.prototype.hasOwnProperty;const wr=function(t,e,n,r,i,o){var s=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!s)return!1;for(var c=a;c--;){var l=x[c];if(!(s?l in e:Mr.call(e,l)))return!1}var u=o.get(t),d=o.get(e);if(u&&d)return u==e&&d==t;var g=!0;o.set(t,e),o.set(e,t);for(var f=s;++c<a;){var h=t[l=x[c]],m=e[l];if(r)var p=s?r(m,h,l,e,t,o):r(h,m,l,t,e,o);if(!(void 0===p?h===m||i(h,m,n,r,o):p)){g=!1;break}f||(f="constructor"==l)}if(g&&!f){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return o.delete(t),o.delete(e),g};var Or="[object Arguments]",Fr="[object Array]",Dr="[object Object]",Pr=Object.prototype.hasOwnProperty;const Br=function(t,e,n,r,i,o){var s=ge(t),x=ge(e),a=s?Fr:Sn(t),c=x?Fr:Sn(e),l=(a=a==Or?Dr:a)==Dr,u=(c=c==Or?Dr:c)==Dr,d=a==c;if(d&&be(t)){if(!be(e))return!1;s=!0,l=!1}if(d&&!l)return o||(o=new Qt),s||Le(t)?Ir(t,e,n,r,i,o):Nr(t,e,a,n,r,i,o);if(!(1&n)){var g=l&&Pr.call(t,"__wrapped__"),f=u&&Pr.call(e,"__wrapped__");if(g||f){var h=g?t.value():t,m=f?e.value():e;return o||(o=new Qt),i(h,m,n,r,o)}}return!!d&&(o||(o=new Qt),wr(t,e,n,r,i,o))};const Ur=function t(e,n,r,i,o){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:Br(e,n,r,i,t,o))};const jr=function(t,e){return Ur(t,e)};const Gr=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Vr=function(t,e){for(var n=0,r=(e=mr(e,t)).length;null!=t&&n<r;)t=t[pr(e[n++])];return n&&n==r?t:void 0};const Hr=function(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o};const zr=function(t,e){return e.length<2?t:Vr(t,Hr(e,0,-1))};const Wr=function(t,e){return e=mr(e,t),null==(t=zr(t,e))||delete t[pr(Gr(e))]};const Kr=function(t,e){return null==t||Wr(t,e)},qr=["substr","creator","set","getMarkers","isIntersectingWithRange","nodeAfter","_onAccept","_model","commentThread","discard","getAllAdjacentSuggestions","length","next","onAccept","hasComments","clear","reduce","getMultiRangeId","data","@external","from","delete","_isDataLoaded","push","_markerNames","onAttributesChange","attributes","accept","getRange","isIntersecting","getFirstMarker","getMarkerNames","removeMarkers","subType","authoredAt","author","suggestion:","type","nodeBefore","getRanges","createdAt","split","previous","_onDiscard","decorate","isInContent","start","addRange","isExternal","getItems","end","markers","toJSON","setAttribute","addMarkerName","getFirstRange","filter","addMarker","change","_onAttributesChange","getContainedElement"];var Xr,$r;Xr=qr,$r=342,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Zr=function(t,e){return qr[t-=0]};class Yr extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Zr("0x2e")]=!1,this.id=e.id,this[Zr("0x0")]=e[Zr("0x0")],this.subType=e[Zr("0x39")]||null,this.author=e[Zr("0x3b")],this[Zr("0x19")]=e.creator||e[Zr("0x3b")],this[Zr("0xb")]=Boolean(e[Zr("0x32")]&&e[Zr("0x32")][Zr("0x2b")]),this[Zr("0x2a")]=null,this[Zr("0x1f")]=t,this[Zr("0x1e")]=e[Zr("0x25")],this._onDiscard=e.onDiscard,this[Zr("0x16")]=e[Zr("0x31")],this[Zr("0x30")]=new Set,this[Zr("0x3")]=null,this[Zr("0x1a")](Zr("0x3a"),null),this[Zr("0x1a")](Zr("0x32"),e[Zr("0x32")]||{}),this[Zr("0x1a")](Zr("0x5"),null),this[Zr("0x1a")](Zr("0x24"),null),this[Zr("0x1a")](Zr("0x20"),null),this[Zr("0x1a")]("_saved",!1),this[Zr("0x7")](Zr("0x33")),this.decorate(Zr("0x21"))}get head(){let t=this;for(;t[Zr("0x5")];)t=t[Zr("0x5")];return t}get[Zr("0x26")](){return!!this[Zr("0x20")]&&this[Zr("0x20")].length>0}get isMultiRange(){return 0!=this[Zr("0x30")].size&&6==Array[Zr("0x2c")](this[Zr("0x30")])[0][Zr("0x4")](":")[Zr("0x23")]}get[Zr("0x8")](){return null!==this[Zr("0x36")]()}[Zr("0x11")](t){this[Zr("0x30")].add(t)}[Zr("0x37")](){return Array[Zr("0x2c")](this[Zr("0x30")])}[Zr("0x1b")](){return this[Zr("0x37")]().map((t=>this[Zr("0x1f")][Zr("0xe")].get(t)))[Zr("0x13")]((t=>t))}[Zr("0x36")](){return this[Zr("0x1b")]()[0]||null}[Zr("0x38")](){this[Zr("0x1f")][Zr("0x15")]((t=>{for(const e of this[Zr("0x1b")]())t.removeMarker(e)})),this[Zr("0x30")][Zr("0x27")]()}removeMarker(t){this[Zr("0x1f")].change((e=>{e.removeMarker(t)})),this[Zr("0x30")][Zr("0x2d")](t)}[Zr("0xa")](t){const e=Zr("0x3c")+this[Zr("0x0")]+":"+this[Zr("0x39")]+":"+this.id+":"+this.creator.id+":"+Yr[Zr("0x29")]();this[Zr("0x11")](e),this[Zr("0x1f")][Zr("0x15")]((n=>{n[Zr("0x14")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Zr("0x1c")](t){for(const e of this[Zr("0x2")]())if(e[Zr("0x35")](t))return!0;return!1}[Zr("0x2")](){return this[Zr("0x1b")]().map((t=>t.getRange()))}[Zr("0xc")](){return this[Zr("0x2")]()[Zr("0x28")](((t,e)=>[...t,...e[Zr("0xc")]()]),[])}[Zr("0x12")](){var t;return(null===(t=this[Zr("0x36")]())||void 0===t?void 0:t[Zr("0x34")]())||null}[Zr("0x17")](){const t=this[Zr("0x2")]();if(1!=t.length)return null;const e=t[0],n=e[Zr("0x9")][Zr("0x1d")],r=e[Zr("0xd")][Zr("0x1")];return n instanceof s.Element?n!=r?null:n:null}[Zr("0x33")](){this._onAccept(this[Zr("0x2")](),this[Zr("0x2a")],this.attributes),this[Zr("0x38")]()}[Zr("0x21")](){this[Zr("0x6")](this.getRanges(),this[Zr("0x2a")],this[Zr("0x32")]),this.removeMarkers()}[Zr("0x22")](){const t=[];let e=this.head;for(;e;)t[Zr("0x2f")](e),e=e[Zr("0x24")];return t}[Zr("0x10")](t,e){const n=er(this[Zr("0x32")]);Er(n,t,e),jr(n,this[Zr("0x32")])||(this.attributes=n,this[Zr("0x16")](n))}removeAttribute(t){const e=er(this[Zr("0x32")]);Kr(e,t),jr(e,this.attributes)||(this[Zr("0x32")]=e,this._onAttributesChange(this[Zr("0x32")]))}[Zr("0xf")](){return{id:this.id,type:this[Zr("0x39")]?this[Zr("0x0")]+":"+this[Zr("0x39")]:this[Zr("0x0")],authorId:this[Zr("0x19")].id,createdAt:this[Zr("0x3")],hasComments:this[Zr("0x26")],data:this[Zr("0x2a")],attributes:this.attributes}}static getMultiRangeId(){return(0,e.uid)()[Zr("0x18")](1,5)}}function Jr(t,e,n){const r=t.t;switch(e){case"Track changes":return r("Track changes");case"Accept suggestion":return r("Accept suggestion");case"Discard suggestion":return r("Discard suggestion");case"Accept all suggestions":return r("Accept all suggestions");case"Accept all selected suggestions":return r("Accept all selected suggestions");case"Discard all suggestions":return r("Discard all suggestions");case"Discard all selected suggestions":return r("Discard all selected suggestions");case"*Reset font size*":return r("*Reset font size*");case"*Reset font family*":return r("*Reset font family*");case"*Reset font color*":return r("*Reset font color*");case"*Reset font background color*":return r("*Reset font background color*");case"*Remove image text alternative*":return r("*Remove image text alternative*");case"*Reset image width*":return r("*Reset image width*");case"*Remove link*":return r("*Remove link*");case"*Check item*":return r("*Check item*");case"*Uncheck item*":return r("*Uncheck item*");case"*Remove all formatting*":return r("*Remove all formatting*");case"*Replace table cells*":return r("*Replace table cells*");case"*Merge cells*":return r("*Merge cells*");case"*Split cell:* vertically":return r("*Split cell:* vertically");case"*Split cell:* horizontally":return r("*Split cell:* horizontally");case"*Indent:* %0":return r("*Indent:* %0",n);case"*Outdent:* %0":return r("*Outdent:* %0",n);case"*Change to:* %0":return r("*Change to:* %0",n);case"*Insert:* %0":return r("*Insert:* %0",n);case"*Format:* %0":return r("*Format:* %0",n);case"*Format:* change table properties":return r("*Format:* change table properties");case"*Format:* change table cell properties":return r("*Format:* change table cell properties");case"*Format:* insert into %0":return r("*Format:* insert into %0",n);case"*Format:* remove from %0":return r("*Format:* remove from %0",n);case"*Replace image URL*":return r("*Replace image URL*");case"*Format:* resize table":return r("*Format:* resize table");case"*Format:* set order to reversed":return r("*Format:* set order to reversed");case"*Format:* set order to regular":return r("*Format:* set order to regular");case"*Format:* set start index to %0":return r("*Format:* set start index to %0",n);case"*Change %0 content*":return r("*Change %0 content*",n);case"*Remove:* %0":return r("*Remove:* %0",n);case"*Merge:* %0":return r("*Merge:* %0",n);case"*Split:* %0":return r("*Split:* %0",n);case"*Remove format:* %0":return r("*Remove format:* %0",n);case"*Set font size:* %0":return r("*Set font size:* %0",n);case"*Set font family:* %0":return r("*Set font family:* %0",n);case"*Set format to:* %0":return r("*Set format to:* %0",n);case"*Set font color:* %0":return r("*Set font color:* %0",n);case"*Set font background color:* %0":return r("*Set font background color:* %0",n);case"*Set format:* %0":return r("*Set format:* %0",n);case"*Set image text alternative:* %0":return r("*Set image text alternative:* %0",n);case"*Set image width:* %0":return r("*Set image width:* %0",n);case"*Set link:* %0":return r("*Set link:* %0",n);case"*Set highlight:* %0":return r("*Set highlight:* %0",n);case"*Remove highlight*":return r("*Remove highlight*");case"FORMAT_HIGHLIGHT":return r({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return r({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return r({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return r({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return r({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return r({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return r({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return r({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return r({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return r({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return r({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return r({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return r({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return r({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return r({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return r({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return r({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_DEFAULT":return r({string:"bulleted list (default)",id:"ELEMENT_BULLETED_LIST_DEFAULT"});case"ELEMENT_BULLETED_LIST_CIRCLE":return r({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return r({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return r({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST_DEFAULT":return r({string:"numbered list (default)",id:"ELEMENT_NUMBERED_LIST_DEFAULT"});case"ELEMENT_NUMBERED_LIST":return r({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return r({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return r({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return r({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return r({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return r({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return r({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return r({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return r({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return r({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGNMENT":return r({string:"alignment",id:"FORMAT_ALIGNMENT"});case"FORMAT_ALIGN_TO_LEFT":return r({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return r({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return r({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return r({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return r({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return r({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return r({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return r({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return r({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return r({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return r({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return r({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return r({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return r({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return r({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return r({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return r({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"FORMAT_INDENT":return r({string:"indent",id:"FORMAT_INDENT"});case"FORMAT_LIST_REVERSED":return r({string:"list reversed",id:"FORMAT_LIST_REVERSED"});case"FORMAT_LIST_START":return r({string:"list start",id:"FORMAT_LIST_START"});case"FORMAT_FONT_SIZE":return r({string:"font size",id:"FORMAT_FONT_SIZE"});case"FORMAT_FONT_FAMILY":return r({string:"font family",id:"FORMAT_FONT_FAMILY"});case"FORMAT_FONT_COLOR":return r({string:"font color",id:"FORMAT_FONT_COLOR"});case"FORMAT_FONT_BACKGROUND":return r({string:"font background color",id:"FORMAT_FONT_BACKGROUND"});case"FORMAT_IMAGE_SIZE":return r({string:"image size",id:"FORMAT_IMAGE_SIZE"});case"FORMAT_STYLE":return r({string:"style",id:"FORMAT_STYLE"});case"PENDING_ACTION_SUGGESTION":return r({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return r({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return r({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return r({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 r({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return r({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 r({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return r({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return r({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return r({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return r({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return r({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return r({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);case"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT":return r({string:"Entering insertion suggestion.",id:"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT":return r({string:"Leaving insertion suggestion.",id:"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT":return r({string:"Entering deletion suggestion.",id:"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT":return r({string:"Leaving deletion suggestion.",id:"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT":return r({string:"Entering formatting suggestion.",id:"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT":return r({string:"Leaving formatting suggestion.",id:"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT"});default:return e}}const Qr=["REPLACE_TEXT","deletion","attribute","_handleCustomCallbackDescription","isEmpty","add","remove","$text","pop","elementStart","_handleInsertRemoveSuggestionDescription","nextSibling","join","*Split:* %0","getItemLabel","subType","start","isEqual","getFirstRange","data","_attributeLabels","has","removeContainer","_locale","skip","type","_handleAttributeSuggestionDescription","Object","addObject","$1 $2","push","EmptyContainer","previousSibling","format","nodeAfter","ELEMENT_SPACE","_schema","replace","end","addContainer","addEmptyContainer","newValue","$textProxy","text","_itemLabels","_customCallbacks","_handleRenameSuggestionDescription","quantity","getWalker","normal","*Insert:* %0","map","insertion","indexOf","_resolveDescriptionItems","key","elementEnd","item","Container","length","addFormat","match","*Remove:* %0","get","matchingCallback","removeFormat","isInContent","checkChild","_addDescriptionItems","name","registerDescriptionCallback","removeEmptyContainer","_itemLabelsCallbacks","isObject","element","softBreak"];var ti,ei;ti=Qr,ei=269,function(t){for(;--t;)ti.push(ti.shift())}(++ei);const ni=function(t,e){return Qr[t-=0]};class ri{constructor(t,e){this[ni("0x4")]=[],this[ni("0x3")]=new Map,this[ni("0x1f")]=[],this[ni("0x37")]=new Map,this[ni("0x47")]=t,this[ni("0x3a")]=e}getDescriptions(t){const e=[],n=new Set,r=new Set;for(let i=0;i<t[ni("0x12")];i++){const o=t[i];if(!o[ni("0x19")])continue;const s=this[ni("0x26")](o);if(s){if(null!=o[ni("0x32")]){if(n[ni("0x38")](o[ni("0x32")]))continue;n[ni("0x28")](o[ni("0x32")])}e[ni("0x41")](s)}else if(ni("0x25")!=o.type)ni("0xb")!=o[ni("0x3c")]&&ni("0x24")!=o[ni("0x3c")]||this[ni("0x2d")](e,o,t[i+1]);else{const t=o.data[ni("0xe")];if(r[ni("0x38")](t))continue;r[ni("0x28")](o.data[ni("0xe")]),t==Cc?this[ni("0x5")](e,o):this[ni("0x3d")](e,o)}}return this[ni("0xd")](e)}[ni("0x1d")](t){this[ni("0x4")][ni("0x41")](t)}registerElementLabel(t,n,r=e.priorities[ni("0x8")]){"function"==typeof t?(0,e.insertToPriorityArray)(this[ni("0x1f")],{matchingCallback:t,label:n,priority:r}):this[ni("0x3")].set(t,n)}registerAttributeLabel(t,e){this[ni("0x37")].set(t,e)}[ni("0x31")](t,e=1){let n;for(const e of this[ni("0x1f")])if(e[ni("0x17")](t)){n=e.label;break}return n||(n=this._itemLabels[ni("0x16")](t[ni("0x1c")])),n?n(e):1!==e?e+" "+t[ni("0x1c")]+"s":""+t.name}[ni("0x1b")](t,e){const n=e[ni("0x35")]()[ni("0x7")](),r="insertion"==e[ni("0x3c")]?"add":ni("0x29");for(const e of n){const i=e[ni("0x10")],o=t[t[ni("0x12")]-1];if(i.is(ni("0x1")))o&&o.type[ni("0xc")](ni("0x11"))>-1&&t[ni("0x2b")](),o&&ni("0x2")==o[ni("0x3c")]?o[r]+=i[ni("0x36")]:t[ni("0x41")]({type:ni("0x2"),add:ni("0x28")==r?i.data:"",remove:"remove"==r?i[ni("0x36")]:""});else if(this[ni("0x47")][ni("0x20")](i)){const s=i;if(o&&o[ni("0x3c")].indexOf(ni("0x11"))>-1&&t[ni("0x2b")](),ni("0xf")==e[ni("0x3c")])continue;o&&o[ni("0x3c")]==r+ni("0x3e")&&o.element[ni("0x1c")]==s.name?o.quantity++:t.push({type:r+ni("0x3e"),element:s,quantity:1}),n[ni("0x3b")]((t=>!("elementEnd"==t[ni("0x3c")]&&t[ni("0x10")]==i)))}else if(this[ni("0x47")][ni("0x1a")](i,ni("0x2a"))||i.is(ni("0x21"),ni("0x22"))){const n=i;if("add"==r&&ni("0x2c")==e[ni("0x3c")]||ni("0x29")==r&&"elementEnd"==e[ni("0x3c")])continue;if(o&&-1==o[ni("0x3c")][ni("0xc")](ni("0x11"))){ni("0x2")==o.type&&(o[r]+="\n");continue}let s;if(s="add"==r?n[ni("0x2e")]&&!this[ni("0x47")][ni("0x20")](n[ni("0x2e")])?n.nextSibling:null:n[ni("0x43")]&&!this[ni("0x47")][ni("0x20")](n[ni("0x43")])?n.previousSibling:null,n[ni("0x27")]||s&&s[ni("0x27")]){const e=s&&s.isEmpty?s:n;o&&o[ni("0x3c")]==r+ni("0x42")&&o[ni("0x21")][ni("0x1c")]==e[ni("0x1c")]?o[ni("0x6")]++:t[ni("0x41")]({type:r+ni("0x42"),element:e,quantity:1})}else t[ni("0x41")]({type:r+ni("0x11"),element:n})}}}_resolveDescriptionItems(t){const e=this._locale,n=[],r=[],i=[];for(const o of t)switch(o[ni("0x3c")]){case"text":if(o[ni("0x28")]=o.add[ni("0x48")](/(\S)\u000A+(\S)/g,ni("0x40"))[ni("0x48")](/\u000A/g,""),o.remove=o[ni("0x29")].replace(/(\S)\u000A+(\S)/g,ni("0x40"))[ni("0x48")](/\u000A/g,""),""!=o[ni("0x28")]&&""!=o[ni("0x29")]){n[ni("0x41")]({type:ni("0x48"),content:Jr(e,ni("0x23"),['"'+o[ni("0x29")]+'"','"'+o.add+'"'])});continue}if(null!=o[ni("0x28")][ni("0x14")](/^ +$/)){n.push({type:ni("0xb"),content:Jr(e,ni("0x9"),Jr(e,ni("0x46"),o[ni("0x28")][ni("0x12")]))});continue}if(null!=o[ni("0x29")][ni("0x14")](/^ +$/)){n[ni("0x41")]({type:"deletion",content:Jr(e,"*Remove:* %0",Jr(e,"ELEMENT_SPACE",o.remove[ni("0x12")]))});continue}if(""!=o.add){n[ni("0x41")]({type:"insertion",content:Jr(e,"*Insert:* %0",'"'+o[ni("0x28")]+'"')});continue}n[ni("0x41")]({type:"deletion",content:Jr(e,ni("0x15"),'"'+o[ni("0x29")]+'"')});continue;case ni("0x4b"):case ni("0x3f"):n[ni("0x41")]({type:ni("0xb"),content:Jr(e,ni("0x9"),this[ni("0x31")](o[ni("0x21")],o[ni("0x6")]))});continue;case ni("0x1e"):case"removeObject":n[ni("0x41")]({type:ni("0x24"),content:Jr(e,"*Remove:* %0",this[ni("0x31")](o[ni("0x21")],o[ni("0x6")]))});continue;case ni("0x4a"):n.push({type:ni("0xb"),content:Jr(e,ni("0x30"),this[ni("0x31")](o[ni("0x21")],o[ni("0x6")]))});continue;case ni("0x39"):n[ni("0x41")]({type:"deletion",content:Jr(e,"*Merge:* %0",this[ni("0x31")](o[ni("0x21")],o[ni("0x6")]))});continue;case ni("0x13"):r[ni("0x41")](o[ni("0xe")]);continue;case ni("0x18"):i.push(o[ni("0xe")]);continue;default:n.push(o)}if(r[ni("0x12")]){const t=r.map((t=>this[ni("0x37")][ni("0x38")](t)?this._attributeLabels[ni("0x16")](t):t))[ni("0x2f")](", ");n[ni("0x41")]({type:ni("0x44"),content:Jr(this._locale,"*Set format:* %0",t)})}if(i.length){const t=i[ni("0xa")]((t=>this[ni("0x37")][ni("0x38")](t)?this[ni("0x37")].get(t):t))[ni("0x2f")](", ");n[ni("0x41")]({type:ni("0x44"),content:Jr(this._locale,"*Remove format:* %0",t)})}return n}[ni("0x26")](t){for(const e of this[ni("0x4")]){const n=e(t);if(n&&ni("0x3c")in n)return n}}[ni("0x3d")](t,e){const n=e[ni("0x36")],r=void 0===n[ni("0x0")]?"removeFormat":ni("0x13");t[ni("0x41")]({type:r,key:n.key})}_handleRenameSuggestionDescription(t,e){t[ni("0x41")]({type:ni("0x44"),content:Jr(this._locale,"*Change to:* %0",this[ni("0x31")](e[ni("0x35")]()[ni("0x33")][ni("0x45")],1))})}[ni("0x2d")](t,e,n){if(this[ni("0x1b")](t,e),n&&n[ni("0x35")]()&&!e[ni("0x35")]()[ni("0x49")][ni("0x34")](n.getFirstRange()[ni("0x33")])){const n=t[t[ni("0x12")]-1],r="insertion"==e.type?ni("0x28"):ni("0x29");n&&ni("0x2")==n[ni("0x3c")]&&(n[r]+="\n")}}}const ii=["commands","showAIAssistant","TrackChangesEditing","afterInit","get","editor","plugins"];var oi,si;oi=ii,si=382,function(t){for(;--t;)oi.push(oi.shift())}(++si);const xi=function(t,e){return ii[t-=0]};class ai extends t.Plugin{[xi("0x6")](){const t=this[xi("0x1")],e=t[xi("0x2")].get(xi("0x5"));t[xi("0x3")][xi("0x0")]("showAIAssistant")&&e.enableCommand(xi("0x4"))}}const ci=["FORMAT_JUSTIFY_TEXT","plugins","type","format","_descriptionFactory","commandName","TrackChangesEditing","FORMAT_ALIGN_TO_LEFT","right","AlignmentEditing","editor","locale","center","afterInit","_enableDefaultAttributesIntegration","FORMAT_ALIGN_TO_RIGHT","alignment","FORMAT_ALIGN_TO_CENTER","commandParams","get","has","justify","_registerLegacyDescription","FORMAT_ALIGNMENT","*Format:* %0"];var li,ui;li=ci,ui=207,function(t){for(;--t;)li.push(li.shift())}(++ui);const di=function(t,e){return ci[t-=0]};class gi extends t.Plugin{[di("0x6")](){const t=this[di("0x3")],e=t[di("0x4")];if(!t[di("0x13")][di("0xd")](di("0x2")))return;const n=t[di("0x13")][di("0xc")]("TrackChangesEditing");n[di("0x7")](di("0x9"),[],[di("0x9")]),n[di("0x16")].registerAttributeLabel("alignment",Jr(e,di("0x10"))),this[di("0xf")]()}[di("0xf")](){const t=this[di("0x3")],e=t[di("0x4")];t[di("0x13")][di("0xc")](di("0x18"))._descriptionFactory.registerDescriptionCallback((t=>{if("formatBlock"!=t[di("0x14")])return;const{data:n}=t;if(n&&di("0x9")==n[di("0x17")]){const t=n[di("0xb")][0].value;return{type:di("0x15"),content:Jr(e,di("0x11"),function(t){switch(t){case"left":return Jr(e,di("0x0"));case di("0x1"):return Jr(e,di("0x8"));case di("0x5"):return Jr(e,di("0xa"));case di("0xe"):return Jr(e,di("0x12"))}}(t))}}}))}}const fi=["toLowerCase","FORMAT_","bold","has","FORMAT_ITALIC","code","*Remove format:* %0","commandName","FORMAT_SUBSCRIPT","forceValue","SubscriptEditing","slice","_descriptionFactory","UnderlineEditing","type","ItalicEditing","subscript","strikethrough","CodeEditing","registerAttributeLabel","superscript","get","toUpperCase","plugins","BoldEditing","_enableDefaultAttributesIntegration","TrackChangesEditing","FORMAT_UNDERLINE","_registerLegacyDescription","editor","underline","italic","locale","commandParams"];var hi,mi;hi=fi,mi=142,function(t){for(;--t;)hi.push(hi.shift())}(++mi);const pi=function(t,e){return fi[t-=0]},bi=[pi("0x12"),pi("0x9"),pi("0x7"),pi("0xc"),"StrikethroughEditing",pi("0x4"),"SuperscriptEditing"];class Ei extends t.Plugin{afterInit(){const t=this[pi("0x17")],e=t[pi("0x11")][pi("0xf")]("TrackChangesEditing"),n=t[pi("0x1a")];for(const r of bi){if(!t[pi("0x11")][pi("0x1f")](r))continue;const i=r[pi("0x5")](0,-7)[pi("0x1c")](),o=pi("0x1d")+i[pi("0x10")]();e[pi("0x13")](i,[i]),e[pi("0x6")][pi("0xd")](i,Jr(n,o))}this[pi("0x16")]()}[pi("0x16")](){const t=this[pi("0x17")],e=t[pi("0x1a")],n=t.plugins[pi("0xf")](pi("0x14"));function r(t,r){n[pi("0x6")].registerDescriptionCallback((n=>{if("formatInline"!=n[pi("0x8")])return;const{data:i}=n;return i&&i[pi("0x1")]===t?i[pi("0x1b")][0][pi("0x3")]?{type:"format",content:Jr(e,"*Format:* %0",r)}:{type:"format",content:Jr(e,pi("0x0"),r)}:void 0}))}r(pi("0x1e"),Jr(e,"FORMAT_BOLD")),r(pi("0x19"),Jr(e,pi("0x20"))),r(pi("0x18"),Jr(e,pi("0x15"))),r(pi("0x21"),Jr(e,"FORMAT_CODE")),r(pi("0xb"),Jr(e,"FORMAT_STRIKETHROUGH")),r(pi("0xa"),Jr(e,pi("0x2"))),r(pi("0xe"),Jr(e,"FORMAT_SUPERSCRIPT"))}}const _i=["filter","schema","ELEMENT_BLOCK_QUOTE","afterInit","*Set format:* %0","_descriptionFactory","model","format","checkChild","parent","selection","locale","forceValue","value","has","$root","get","enableCommand","plugins","markBlockFormat","BlockQuoteEditing","editor","from","document","blockQuote","*Remove format:* %0","commands","change","name","registerDescriptionCallback","commandParams","TrackChangesEditing"];var Ti,yi;Ti=_i,yi=467,function(t){for(;--t;)Ti.push(Ti.shift())}(++yi);const Ci=function(t,e){return _i[t-=0]};class Ai extends t.Plugin{[Ci("0x10")](){const t=this[Ci("0x2")],e=t[Ci("0x18")];if(!t[Ci("0x1f")][Ci("0x1b")](Ci("0x1")))return;const n=t[Ci("0x1f")].get(Ci("0xc")),r=this[Ci("0x2")][Ci("0x7")][Ci("0x1d")](Ci("0x5"));n[Ci("0x1e")](Ci("0x5"),((e,i={})=>{const o=this[Ci("0x2")].model[Ci("0x4")][Ci("0x17")],s=i&&void 0!==i[Ci("0x19")]?i[Ci("0x19")]:!r[Ci("0x1a")];let x=[];if(s){const e=Array[Ci("0x3")](o.getSelectedBlocks()).filter((t=>ki(t)||function(t,e){const n=e[Ci("0x15")](t.parent,"blockQuote"),r=e[Ci("0x15")]([Ci("0x1c"),Ci("0x5")],t);return n&&r}(t,this[Ci("0x2")].model[Ci("0xe")])));x=S(e,t[Ci("0x13")])}else{const e=Array[Ci("0x3")](o.getSelectedBlocks())[Ci("0xd")]((t=>ki(t)));x=S(e,t.model)}t[Ci("0x13")][Ci("0x8")]((()=>{for(const t of x)n[Ci("0x0")](t,{commandName:"blockQuote",commandParams:[{forceValue:s}]})}))})),n[Ci("0x12")][Ci("0xa")]((t=>{const{data:n}=t;if(n&&Ci("0x5")==n.commandName){const t=Jr(e,Ci("0xf"));return n[Ci("0xb")][0][Ci("0x19")]?{type:Ci("0x14"),content:Jr(e,Ci("0x11"),t)}:{type:Ci("0x14"),content:Jr(e,Ci("0x6"),t)}}}))}}function ki(t){return Ci("0x5")==t[Ci("0x16")][Ci("0x9")]}const Ii=["plugins","changeCaseTitle","has","editor","TrackChangesEditing","get","enableCommand","changeCaseUpper","afterInit","CaseChange"];var Ri,Si;Ri=Ii,Si=217,function(t){for(;--t;)Ri.push(Ri.shift())}(++Si);const vi=function(t,e){return Ii[t-=0]};class Li extends t.Plugin{[vi("0x1")](){const t=this[vi("0x6")];t[vi("0x3")][vi("0x5")](vi("0x2"))&&(t[vi("0x3")].get(vi("0x7")).enableCommand(vi("0x0")),t[vi("0x3")][vi("0x8")]("TrackChangesEditing")[vi("0x9")]("changeCaseLower"),t[vi("0x3")][vi("0x8")](vi("0x7"))[vi("0x9")](vi("0x4")))}}const Ni=["get","afterInit","plugins","ckbox","editor","enableCommand","TrackChangesEditing"];var Mi,wi;Mi=Ni,wi=453,function(t){for(;--t;)Mi.push(Mi.shift())}(++wi);const Oi=function(t,e){return Ni[t-=0]};class Fi extends t.Plugin{[Oi("0x3")](){const t=this[Oi("0x6")];t.commands[Oi("0x2")](Oi("0x5"))&&t[Oi("0x4")][Oi("0x2")](Oi("0x1"))[Oi("0x0")](Oi("0x5"))}}const Di=["filter","editor","commandName","*Set format:* %0","label","document","blockName","schema","formatBlock","commands","isLimit","enableCommand","indentCodeBlock","codeBlock","value","languages","from","_descriptionFactory","get","model","language","checkChild","find","config","change","CodeBlock","ELEMENT_CODE_BLOCK","plugins","afterInit","registerDescriptionCallback","rootElement","selection","commandParams","forceValue","format","markBlockFormat","registerElementLabel","parent"];var Pi,Bi;Pi=Di,Bi=281,function(t){for(;--t;)Pi.push(Pi.shift())}(++Bi);const Ui=function(t,e){return Di[t-=0]};class ji extends t.Plugin{[Ui("0xd")](){const t=this[Ui("0x18")];if(!t[Ui("0xc")].has(Ui("0xa")))return;const e=t[Ui("0xc")].get("TrackChangesEditing"),n=t.locale,r=t[Ui("0x8")][Ui("0x3")]("codeBlock")[Ui("0x0")],i=t[Ui("0x20")][Ui("0x3")](Ui("0x24"));e[Ui("0x22")](Ui("0x23")),e[Ui("0x22")]("outdentCodeBlock"),e[Ui("0x22")](Ui("0x24"),((n,o={})=>{const s=t.model,x=t[Ui("0x4")][Ui("0x1c")][Ui("0x10")],a=o&&void 0!==o.forceValue?o[Ui("0x12")]:!i[Ui("0x25")];let c;o[Ui("0x5")]||(o[Ui("0x5")]=r[0][Ui("0x5")]),c=a?Array.from(x.getSelectedBlocks())[Ui("0x17")]((t=>{return Gi(t)||(e=t,n=s[Ui("0x1e")],!e.is(Ui("0xf"))&&!n[Ui("0x21")](e)&&n[Ui("0x6")](e[Ui("0x16")],Ui("0x24")));var e,n})):Array[Ui("0x1")](x.getSelectedBlocks())[Ui("0x17")]((t=>Gi(t)));const l=S(c,s);s[Ui("0x9")]((()=>{for(const t of l)e[Ui("0x14")](t,{commandName:Ui("0x24"),commandParams:[{...o,forceValue:a}],formatGroupId:Ui("0x1d")})}))})),e[Ui("0x2")][Ui("0x15")](Ui("0x24"),(t=>Jr(n,Ui("0xb"),t))),e._descriptionFactory[Ui("0xe")]((t=>{if(Ui("0x1f")!=t.type)return;const e=n.t,{data:i}=t;if(!i||Ui("0x24")!=i[Ui("0x19")])return;const o=i[Ui("0x11")][0][Ui("0x5")],s=e(r[Ui("0x7")]((t=>t.language===o))[Ui("0x1b")]).toLowerCase();return i[Ui("0x11")][0][Ui("0x12")]?{type:Ui("0x13"),content:Jr(n,Ui("0x1a"),Jr(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:Ui("0x13"),content:Jr(n,"*Remove format:* %0",Jr(n,Ui("0xb"),1))}}))}}function Gi(t){return Ui("0x24")==t.name}const Vi=["plugins","editor","TrackChangesEditing","enableCommand","addCommentThread","CommentsEditing","get"];var Hi,zi;Hi=Vi,zi=224,function(t){for(;--t;)Hi.push(Hi.shift())}(++zi);const Wi=function(t,e){return Vi[t-=0]};class Ki extends t.Plugin{afterInit(){const t=this[Wi("0x1")];t[Wi("0x0")].has(Wi("0x5"))&&t.plugins[Wi("0x6")](Wi("0x2"))[Wi("0x3")](Wi("0x4"))}}var qi=n(500);const Xi=["listItem","schema","push","getItems","get","getAttribute","isLimit","mapper","model","bindElementToMarker","elementEnd","markerRange","getWalker","nextSibling","getCustomProperty","isContent","includes","markerName","TrackChangesEditing","type","span","insert","start","previousPosition","parent","isBlock","toViewElement","addHighlight","listIndent","plugins","item","writer","addClass","createRangeOn","ck-suggestion-marker--active"];var $i,Zi;$i=Xi,Zi=456,function(t){for(;--t;)$i.push($i.shift())}(++Zi);const Yi=function(t,e){return Xi[t-=0]};function Ji(t,e,n){const r=[];for(const i of e[Yi("0x2")]())i.hasAttribute(t)&&r[Yi("0x1")](n[Yi("0x20")](i));return r}function Qi(t,e,{showActiveMarker:n=!0}={}){const r=t[Yi("0x1c")][Yi("0x3")](Yi("0x11"));return(i,o,s)=>{if(!s.consumable.test(o[Yi("0xa")],i.name))return;const x=o[Yi("0xa")][Yi("0xb")](),a=o[Yi("0xa")][Yi("0x15")],c=t[Yi("0x7")][Yi("0x0")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[Yi("0x1d")];d=d||c[Yi("0xe")](e);const n=s.mapper[Yi("0x19")](e);if(n&&n[Yi("0xd")](Yi("0x1a")))return;Yi("0x9")==t[Yi("0x12")]&&c[Yi("0x18")](e)&&!c[Yi("0x5")](e)&&(e[Yi("0xc")]||a.isAtEnd?l&&l[Yi("0x17")]==e||(l=e,f(t[Yi("0x16")]),g=!0):u=u||t[Yi("0x16")])}function f(t){const i=s.writer.createUIElement(Yi("0x13"),{class:"ck-suggestion-marker-"+e}),x=s[Yi("0x6")].toViewPosition(t);n&&r.activeMarkers[Yi("0xf")](o[Yi("0x10")])&&s[Yi("0x1e")][Yi("0x1f")](Yi("0x21"),i),s[Yi("0x1e")][Yi("0x14")](x,i),s.mapper[Yi("0x8")](i,o[Yi("0x10")])}d||g||!u||f(u)}}const to=["requires","unit","lock","root","markerName","start","uiElement","rootName","mapper","markerNameToElements","selection","merge","TrackChangesEditing","detach","batch","commands","removeMarker:suggestion:deletion","options","end","document","buffer","editing","modifySelection","addMarker:suggestion:deletion","writer","downcastDispatcher","editor","high","unlock","remove","$graveyard","setSelection","deleteForward","fromRange","enqueueChange","data","delete","enableCommand","bind","model","createRange","getFirstRange","get"];var eo,no;eo=to,no=101,function(t){for(;--t;)eo.push(eo.shift())}(++no);const ro=function(t,e){return to[t-=0]};class io extends t.Plugin{static get[ro("0x1c")](){return[qi.Delete]}init(){const t=this[ro("0xb")],e=t.plugins.get(ro("0x28"));e[ro("0x16")](ro("0x15"));const n=t[ro("0x0")][ro("0x1b")](ro("0x11"));e.enableCommand(ro("0x11"),((e,r={})=>{const i=t[ro("0x18")].createSelection(t[ro("0x18")][ro("0x4")][ro("0x26")]);i.isCollapsed&&t[ro("0x18")][ro("0x7")](i,{direction:"forward",unit:r[ro("0x1d")]});const o=i[ro("0x1a")](),x=s.LiveRange[ro("0x12")](o);let a;e(r),a=ro("0xf")==x[ro("0x1f")][ro("0x23")]?t.model[ro("0x19")](o[ro("0x21")]):t[ro("0x18")][ro("0x19")](x[ro("0x21")],x[ro("0x3")]),x[ro("0x29")](),t.model[ro("0x13")](n[ro("0x5")][ro("0x2a")],(t=>{n[ro("0x5")][ro("0x1e")](),t[ro("0x10")](t[ro("0x19")](a.end)),n[ro("0x5")][ro("0xd")]()}))})),t[ro("0x6")][ro("0xa")].on(ro("0x8"),Qi(t,ro("0x27")),{priority:ro("0xc")}),t[ro("0x14")][ro("0xa")].on(ro("0x8"),((e,n,r)=>{r[ro("0x2")].showSuggestionHighlights&&Qi(t,"merge",{showActiveMarker:!1})[ro("0x17")](this)(e,n,r)}),{priority:ro("0xc")}),t[ro("0x6")].downcastDispatcher.on(ro("0x1"),((t,e,n)=>{const r=n[ro("0x24")][ro("0x25")](e[ro("0x20")]);if(r)for(const t of r)t.is(ro("0x22"))&&(n[ro("0x24")].unbindElementFromMarkerName(t,e[ro("0x20")]),n[ro("0x9")][ro("0xe")](t))}),{priority:ro("0xc")})}}const oo=["detach","documentList","meta","groupId","_registerLegacyDescription","getFirstMarker","FORMAT_INDENT","outdentList","getFirstRange","*Merge:* %0","editor","listType","default","indentList","getAttribute","length","_descriptionFactory","nodeAfter","ELEMENT_BULLETED_LIST","batch","_suggestionFactory","change","oldValue","listStart","ELEMENT_TODO_LIST","getSuggestions","registerDescriptionCallback","data","numbered","setAttribute","document","*Format:* remove from %0","removeMarker","mergeListItemBackward","*Outdent:* %0","start","head","schema","registerElementLabel","includes","ELEMENT_LIST_ITEM","type","listIndent","isNextTo","commandParams","ELEMENT_NUMBERED_LIST","registerAttributeLabel","mergeListItemForward","model","previousSibling","map","TrackChangesEditing","*Merge:* list item","*Format:* insert into %0","attributes","plugins","listReversed","_getAttributeKey","multipleBlocks","isLocal","refresh","value","createPositionAt","key","next","newValue","_findSuggestions","parent","format","listStyle","_enableDefaultAttributesIntegration","formatBlock","registerPostFixer","TodoListEditing","getRanges","*Set format:* %0","find","listItemIdFixer","registerCustomCallback","noTrackChangesFixer","todo","todoList","every","range","ListEditing","end","todoListChecked","fromRange","toUpperCase","listItemId","filter","*Remove format:* %0","bulleted","commandName","numberedList","list.multiBlock","has","splitListItemAfter","splitListItemBefore","*Indent:* %0","get","isObject","commands","differ","getChanges","createRange","forceValue","deletion","config","selection","isUndo","setSelection","locale","attribute","bulletedList","*Split:* list item","suggestion","assureChains"];var so,xo;so=oo,xo=212,function(t){for(;--t;)so.push(so.shift())}(++xo);const ao=function(t,e){return oo[t-=0]};class co extends t.Plugin{afterInit(){const t=this[ao("0x22")];if(!t[ao("0x4f")][ao("0x2")](ao("0x6c")))return;const e=t[ao("0x12")],n=t.plugins[ao("0x6")](ao("0x4b")),r=t[ao("0x4f")][ao("0x2")](ao("0x61")),i=!!t[ao("0xe")][ao("0x6")](ao("0x1"));function o(t){return{type:ao("0x5c"),content:""+Jr(e,ao("0x63"),t)}}function s(t){return{type:ao("0x5c"),content:""+Jr(e,ao("0x73"),t)}}n[ao("0x5e")](ao("0x0"),[],[ao("0x71"),ao("0x23"),ao("0x42")]),n[ao("0x5e")](ao("0x14")),n[ao("0x5e")]("indentList"),n._enableDefaultAttributesIntegration(ao("0x1f")),n[ao("0x5e")](ao("0x3")),n[ao("0x5e")](ao("0x4")),i&&(n[ao("0x5e")](ao("0x39")),n[ao("0x5e")](ao("0x47"))),r&&(n[ao("0x5e")](ao("0x69")),n._enableDefaultAttributesIntegration("checkTodoList",[],[ao("0x6e")]),n[ao("0x28")][ao("0x32")]((t=>{const{data:n}=t;if(n&&"todoListChecked"==n[ao("0x57")])return{type:ao("0x5c"),content:n[ao("0x59")]?Jr(e,"*Check item*"):Jr(e,"*Uncheck item*")}})),this[ao("0x22")][ao("0x48")].document.registerPostFixer((t=>{if(t[ao("0x2b")][ao("0x10")])return!1;let e=!1;const r=n[ao("0x31")]({skipNotAttached:!0})[ao("0x72")]((t=>ao("0x6e")===n[ao("0x51")](t)));for(const i of r)ao("0x68")!=i.getFirstRange()[ao("0x3b")][ao("0x29")][ao("0x26")](ao("0x23"))&&(n._findSuggestions(i[ao("0x20")](),ao("0x13"))[ao("0x64")]((t=>ao("0x23")===n._getAttributeKey(t[ao("0x16")])))||(t.removeMarker(i.getFirstMarker()),e=!0));return e}))),n[ao("0x28")][ao("0x46")]("listIndent",Jr(e,ao("0x1e")));const x={type:"format",content:""};n[ao("0x28")][ao("0x32")]((t=>{const{data:n}=t;if(!n||ao("0x23")!=n[ao("0x57")])return;let r=t[ao("0x3c")];for(;r;){if(r[ao("0x33")]&&(ao("0x5d")==r[ao("0x33")][ao("0x57")]&&(r[ao("0x33")][ao("0x59")]&&ao("0x24")!=r[ao("0x33")].newValue||ao("0x24")!=r[ao("0x33")][ao("0x2e")]&&!n.newValue)||!i&&r[ao("0x33")][ao("0x57")]==Cc))return x;r=r[ao("0x58")]}if(null==n.newValue)switch(n[ao("0x2e")]){case ao("0x74"):return s(Jr(e,ao("0x2a")));case ao("0x34"):return s(Jr(e,ao("0x45")));case ao("0x68"):return s(Jr(e,ao("0x30")))}switch(n.newValue){case ao("0x74"):return o(Jr(e,"ELEMENT_BULLETED_LIST"));case ao("0x34"):return o(Jr(e,ao("0x45")));case ao("0x68"):return o(Jr(e,"ELEMENT_TODO_LIST"))}})),n[ao("0x28")][ao("0x32")]((t=>{const{data:e}=t;if(e&&"listIndent"==e.key)return null==e[ao("0x59")]||null==e[ao("0x2e")]&&0==e[ao("0x59")]?x:void 0})),n._descriptionFactory[ao("0x32")]((t=>{if(ao("0x13")!=t.type)return;const{data:n}=t;if(!n||ao("0x71")!=n[ao("0x57")])return;const r=lo(t);return r?"newValue"==r?{type:ao("0x5c"),content:Jr(e,ao("0x4c"))}:ao("0x2e")==r?{type:ao("0x5c"),content:Jr(e,ao("0x15"))}:x:x})),t.model.document[ao("0x60")]((t=>this[ao("0x65")](t))),t[ao("0x48")][ao("0x36")].registerPostFixer((t=>this[ao("0x67")](t))),t.model[ao("0x36")][ao("0x60")]((t=>this[ao("0x17")](t))),this._supportLegacySuggestions()}[ao("0x65")](t){if(t[ao("0x2b")][ao("0x10")]||!t.batch.isLocal)return!1;let e=!1;const n=this.editor[ao("0x4f")][ao("0x6")](ao("0x4b"))[ao("0x31")]({skipNotAttached:!0}).filter((t=>t[ao("0x33")]&&"listItemId"==t.data[ao("0x57")])).filter((t=>t.data[ao("0x59")]&&t.data.oldValue));for(const r of n)lo(r)||(t[ao("0x38")](r.getFirstMarker()),e=!0);return e}noTrackChangesFixer(t){if(t[ao("0x2b")][ao("0x10")]||!t.batch[ao("0x53")])return!1;const e=this[ao("0x22")][ao("0x4f")][ao("0x6")](ao("0x4b"));if(e.trackChangesCommand[ao("0x55")])return!1;let n=!1;const r=["listType","listStyle",ao("0x71"),ao("0x42"),"listStart",ao("0x50"),"todoListCheck"],i=this[ao("0x22")].model.document[ao("0x9")][ao("0xa")]()[ao("0x72")]((t=>"attribute"==t.type))[ao("0x72")]((t=>r[ao("0x3f")](t.attributeKey)));if(0==i[ao("0x27")])return n;for(const o of i){const i=e[ao("0x5a")](o[ao("0x6b")],ao("0x13"))[ao("0x72")]((t=>!t[ao("0x1a")][ao("0x43")]))[ao("0x4a")]((t=>t[ao("0x16")]))[ao("0x72")]((t=>{const n=e[ao("0x51")](t);return r[ao("0x3f")](n)}));if(i[ao("0x27")]){for(const e of i)t[ao("0x38")](e[ao("0x1d")]());n=!0}}return n}[ao("0x17")](t){if(t[ao("0x2b")][ao("0x10")]||!t[ao("0x2b")][ao("0x53")])return!1;const e=this[ao("0x22")][ao("0x4f")][ao("0x6")](ao("0x4b"));let n=!1;const r=[ao("0x23"),ao("0x5d"),"listItemId","listIndent",ao("0x2f"),ao("0x50"),"todoListCheck"];for(const t of e[ao("0x31")]({skipNotAttached:!0})){const i=e[ao("0x5a")](t[ao("0x20")](),ao("0x13"))[ao("0x4a")]((t=>t.suggestion))[ao("0x72")]((t=>t.data&&r[ao("0x3f")](t[ao("0x33")][ao("0x57")])));if(!i[ao("0x27")])continue;const s=i[0][ao("0x3c")][ao("0x4e")][ao("0x1b")];if(!i[ao("0x6a")]((t=>t[ao("0x4e")][ao("0x1b")]===s)))for(const t of i)o(t,s)&&(n=!0)}return n;function i(t,n){for(const r of e[ao("0x31")]({skipNotAttached:!0}).filter((e=>ao("0x13")==e[ao("0x41")]&&e.attributes.groupId==t)))r[ao("0x35")](ao("0x1b"),n)}function o(t,e){let n=t[ao("0x3c")],r=!1;for(;n;)n[ao("0x4e")][ao("0x1b")]!=e&&(i(n.attributes[ao("0x1b")],e),n.setAttribute(ao("0x1b"),e),r=!0),n=n[ao("0x58")];return r}}_supportLegacySuggestions(){const t=this.editor,e=t[ao("0x12")],n=t[ao("0x4f")].get(ao("0x4b"));this[ao("0x1c")](),n[ao("0x2c")][ao("0x66")](ao("0x5f"),ao("0x19"),"accept",(function(e,n){const r=[];for(let n of e)n[ao("0x3b")][ao("0x29")]===n[ao("0x6d")][ao("0x5b")]&&(n=t[ao("0x48")][ao("0xb")](t[ao("0x48")][ao("0x56")](n.start[ao("0x29")],0))),r.push(n);t[ao("0x48")][ao("0x2d")]((e=>{const i=t.model[ao("0x36")][ao("0xf")],o=Array.from(i[ao("0x62")]()).map((t=>s.LiveRange[ao("0x6f")](t)));e[ao("0x11")](r),t[ao("0x8")][ao("0x6")](n[ao("0x75")])[ao("0x54")](),n[ao("0x44")].push({forceDefaultExecution:!0}),t.execute(n[ao("0x75")],...n[ao("0x44")]),e[ao("0x11")](o);for(const t of o)t[ao("0x18")]()}))})),n[ao("0x28")][ao("0x3e")]((function(e){const n=!t[ao("0x48")][ao("0x3d")][ao("0x7")](e),r=e[ao("0x49")],i=e.nextSibling,o=e[ao("0x26")](ao("0x71")),s=!r||r[ao("0x26")]("listItemId")!==o,x=!i||i[ao("0x26")](ao("0x71"))!==o;return n&&Boolean(o)&&s&&x}),(t=>Jr(e,"ELEMENT_LIST_ITEM",t)))}[ao("0x1c")](){const t=this[ao("0x22")],e=t[ao("0x12")];function n(e){const n=t.commands.get(ao("0x14")).value,r=t[ao("0x8")][ao("0x6")](ao("0x0")).value;return ao("0x0")===e?n:r}t[ao("0x4f")][ao("0x6")](ao("0x4b"))[ao("0x28")][ao("0x32")]((function(r){if(ao("0x5f")!=r[ao("0x41")])return;const{data:i}=r;if(!i)return;let o,s,x,a;switch(i.commandName){case"bulletedList":x=i[ao("0x44")][0][ao("0xc")],a=n(i[ao("0x75")]),o=ao(x?"0x4d":"0x37"),!a&&t[ao("0xe")].get("list.multiBlock")||(o="*Change to:* %0"),s={type:ao("0x5c"),content:Jr(e,o,Jr(e,ao("0x2a")))};break;case ao("0x0"):x=i.commandParams[0][ao("0xc")],a=n(i.commandName),o=x?ao("0x4d"):"*Format:* remove from %0",!a&&t[ao("0xe")][ao("0x6")]("list.multiBlock")||(o="*Change to:* %0"),s={type:ao("0x5c"),content:Jr(e,o,Jr(e,"ELEMENT_NUMBERED_LIST"))};break;case ao("0x25"):o=ao("0x5"),s={type:ao("0x5c"),content:Jr(e,o,Jr(e,ao("0x40")))};break;case ao("0x1f"):o=function(t){const e=t[ao("0x20")]();let n=e[ao("0x3b")][ao("0x29")];for(;n&&e.containsItem(n);){if(n.getAttribute(ao("0x42"))>0)return!1;n=n.nextSibling}return!0}(r)?Jr(e,ao("0x37"),Jr(e,"ELEMENT_"+r[ao("0x20")]()[ao("0x3b")].nodeAfter.getAttribute(ao("0x23"))[ao("0x70")]()+"_LIST")):Jr(e,ao("0x3a"),Jr(e,"ELEMENT_LIST_ITEM")),s={type:ao("0x5c"),content:o};break;case ao("0x39"):case ao("0x47"):!1===i[ao("0x52")]&&(o=ao("0x21"),s={type:ao("0xd"),content:Jr(e,o,Jr(e,ao("0x40")))})}return s}))}}function lo(t){let e=t.getFirstRange()[ao("0x3b")][ao("0x29")][ao("0x49")];for(;e;){const n=e[ao("0x26")](ao("0x71"));if(!n)return!1;if(n==t[ao("0x33")][ao("0x59")])return"newValue";if(n==t[ao("0x33")][ao("0x2e")])return ao("0x2e");e=e[ao("0x49")]}return!1}const uo=["listType","format","ListPropertiesEditing","_LIST_DEFAULT","registerAttributeLabel","get","_registerLegacyDescription","FORMAT_LIST_REVERSED","registerDescriptionCallback","getSuggestions","find","replace","includes","_getTranslationKeyForListStyle","oldValue","suggestion","disc","editor","newValue","key","document","*Remove format:* %0","*Format:* set order to regular","batch","has","config","upper-latin","plugins","upper-roman","reversed","_findSuggestions","afterInit","locale","formatBlock","listReversed","ELEMENT_","square","decimal-leading-zero","_enableDefaultAttributesIntegration","_LIST_","default","FORMAT_LIST_START","nodeAfter","type","listStyle","model","head","lower-latin","start","handleDescriptions","removeMarker","attribute","listStart","getFirstMarker","*Format:* set start index to %0","startIndex","_descriptionFactory","getFirstRange","getAttribute","toUpperCase","*Set format:* %0","commandParams","bulleted","_getAttributeKey","TrackChangesEditing","filter","data"];var go,fo;go=uo,fo=437,function(t){for(;--t;)go.push(go.shift())}(++fo);const ho=function(t,e){return uo[t-=0]};class mo extends t.Plugin{[ho("0x3f")](){if(!this[ho("0x31")].plugins[ho("0x38")](ho("0x22")))return;const t=this[ho("0x31")][ho("0x39")][ho("0x25")]("list.properties"),e=this[ho("0x31")][ho("0x3b")][ho("0x25")](ho("0x1d"));t.styles&&e[ho("0x3")](ho("0x9"),[],[ho("0x9")]),t[ho("0x3d")]&&e[ho("0x3")](ho("0x42"),[],[ho("0x42")]),t[ho("0x14")]&&e[ho("0x3")](ho("0x11"),[],[ho("0x11")]);const n={type:"format",content:""};e[ho("0x15")].registerDescriptionCallback(this.handleDescriptions.bind(this));const r=this[ho("0x31")].locale;e[ho("0x15")][ho("0x24")](ho("0x42"),Jr(r,ho("0x27"))),e[ho("0x15")][ho("0x28")]((t=>{const{data:e}=t;if(e&&"listReversed"==e.key)return null==e.newValue||0==e[ho("0x32")]&&null==e[ho("0x2e")]?n:void 0})),e._descriptionFactory[ho("0x24")](ho("0x11"),Jr(r,ho("0x6"))),e[ho("0x15")][ho("0x28")]((t=>{const{data:e}=t;if(e&&"listStart"==e.key)return null==e[ho("0x32")]||1==e[ho("0x32")]&&null==e[ho("0x2e")]?n:void 0})),this[ho("0x31")][ho("0xa")][ho("0x34")].registerPostFixer((t=>{if(t[ho("0x37")].isUndo)return!1;let n=!1;const r=e[ho("0x29")]({skipNotAttached:!0})[ho("0x1e")]((t=>{const n=e[ho("0x1c")](t);return"listStart"==n||"listReversed"==n}));for(const i of r)"numbered"!=i.getFirstRange().start[ho("0x7")][ho("0x17")](ho("0x20"))&&(e[ho("0x3e")](i.getFirstRange(),ho("0x10"))[ho("0x2a")]((t=>"listType"==e._getAttributeKey(t[ho("0x2f")])))||(t[ho("0xf")](i[ho("0x12")]()),n=!0));return n})),this._registerLegacyDescription()}[ho("0xe")](t){const e=this[ho("0x31")][ho("0x40")],{data:n}=t,r={type:ho("0x21"),content:""};if(!n||ho("0x9")!=n.key)return;if(!n[ho("0x2e")])return"default"==n[ho("0x32")]?r:{type:"format",content:""+Jr(e,"*Set format:* %0",Jr(e,this[ho("0x2d")](n[ho("0x32")])))};if(!n[ho("0x32")]){if(ho("0x5")==n[ho("0x2e")])return r;let i=t[ho("0xb")];for(;i;){if(i[ho("0x1f")]&&ho("0x20")==i.data[ho("0x33")]&&i[ho("0x1f")][ho("0x32")])return r;i=i.next}return{type:ho("0x21"),content:""+Jr(e,ho("0x35"),Jr(e,this[ho("0x2d")](n[ho("0x2e")])))}}if(ho("0x5")!=n.newValue)return{type:ho("0x21"),content:""+Jr(e,ho("0x19"),Jr(e,this[ho("0x2d")](n[ho("0x32")])))};let i=t[ho("0xb")];for(;i;){if(i[ho("0x1f")]&&"listType"==i[ho("0x1f")].key&&i[ho("0x1f")][ho("0x32")]&&i[ho("0x1f")][ho("0x2e")])return r;i=i.next}const o=t[ho("0x16")]()[ho("0xd")].nodeAfter[ho("0x17")](ho("0x20"));return{type:ho("0x21"),content:Jr(e,ho("0x19"),Jr(e,"ELEMENT_"+o[ho("0x18")]()+ho("0x23")))}}[ho("0x26")](){const t=this[ho("0x31")],e=t[ho("0x40")];t.plugins.get(ho("0x1d"))[ho("0x15")][ho("0x28")]((t=>{if(ho("0x41")!=t[ho("0x8")])return;const{data:n}=t;if(!n)return;let r,i;switch(n.commandName){case ho("0x9"):r="*Change to:* %0",i={type:ho("0x21"),content:Jr(e,r,Jr(e,this._getTranslationKeyForListStyle(n.commandParams[0][ho("0x8")])))};break;case ho("0x42"):r=n.commandParams[0][ho("0x3d")]?"*Format:* set order to reversed":ho("0x36"),i={type:"format",content:Jr(e,r)};break;case"listStart":r=ho("0x13"),i={type:ho("0x21"),content:Jr(e,r,n[ho("0x1a")][0][ho("0x14")])}}return i}))}[ho("0x2d")](t){return ho("0x0")+(e=t,po[ho("0x2c")](e)?ho("0x1b"):bo[ho("0x2c")](e)?"numbered":null)[ho("0x18")]()+ho("0x4")+t[ho("0x18")]()[ho("0x2b")](/-/g,"_");var e}}const po=[ho("0x30"),"circle",ho("0x1")],bo=["decimal",ho("0x2"),"lower-roman",ho("0x3c"),ho("0xc"),ho("0x3a")];var Eo=n(976);const _o=["nextSibling","document","enter","hasClass","afterExecute","commands","init","markerName","writer","markInsertion","showSuggestionHighlights","plugins","model","markerNameToElements","get","editor","enterBlock","addMarker:suggestion:insertion","data","split","mapper","fire","options","fromRange","createRange","createPositionAt","TrackChangesEditing","unbindElementFromMarkerName","high","remove","downcastDispatcher","enableCommand","getFirstRange","end","editing","selection","detach","change","getFirstPosition"];var To,yo;To=_o,yo=367,function(t){for(;--t;)To.push(To.shift())}(++yo);const Co=function(t,e){return _o[t-=0]};class Ao extends t.Plugin{static get requires(){return[Eo.Enter]}[Co("0x1d")](){const t=this[Co("0x26")],e=t[Co("0x22")].get(Co("0xa")),n=t[Co("0x1c")][Co("0x25")](Co("0x19"));e[Co("0xf")](Co("0x19"),(()=>{t[Co("0x23")][Co("0x15")]((r=>{const i=t[Co("0x23")][Co("0x18")][Co("0x13")],o=i[Co("0x16")](),x=s.LiveRange[Co("0x7")](i[Co("0x10")]());if(n[Co("0x0")](r)){const n=t[Co("0x23")][Co("0x9")](o.parent[Co("0x17")],0),i=r[Co("0x8")](o,n);e[Co("0x20")](i)}else r.setSelection(r.createRange(x[Co("0x11")]));x[Co("0x14")](),n[Co("0x5")](Co("0x1b"),{writer:r})}))})),t[Co("0x12")][Co("0xe")].on(Co("0x1"),Qi(t,Co("0x3")),{priority:Co("0xc")}),t[Co("0x12")][Co("0xe")].on("removeMarker:suggestion:insertion",((t,e,n)=>{const r=n[Co("0x4")][Co("0x24")](e[Co("0x1e")]);if(r)for(const t of r)t[Co("0x1a")]("ck-suggestion-marker-split")&&(n[Co("0x4")][Co("0xb")](t,e[Co("0x1e")]),n[Co("0x1f")][Co("0xd")](t))}),{priority:Co("0xc")}),t[Co("0x2")][Co("0xe")].on(Co("0x1"),((e,n,r)=>{r[Co("0x6")][Co("0x21")]&&Qi(t,Co("0x3"),{showActiveMarker:!1}).bind(this)(e,n,r)}),{priority:Co("0xc")})}}const ko=["TrackChangesEditing","plugins","model","string","createRange","has","createPositionAt","findByTextCallback","get","find","handleFindCommand","filter","end","replace","enableCommand","item","editor","findPrevious","_isInDeletionRange","bind"];var Io,Ro;Io=ko,Ro=418,function(t){for(;--t;)Io.push(Io.shift())}(++Ro);const So=function(t,e){return ko[t-=0]};class vo extends t.Plugin{afterInit(){if(!this[So("0x12")][So("0x3")][So("0x7")]("FindAndReplaceEditing"))return;const t=this.editor[So("0x3")][So("0xa")](So("0x2"));t[So("0x10")](So("0xb"),this.handleFindCommand[So("0x1")](this)),t[So("0x10")]("findNext"),t.enableCommand(So("0x13")),t[So("0x10")](So("0xf")),t[So("0x10")]("replaceAll")}[So("0xc")](t,e,n={}){const r=this[So("0x12")][So("0x3")][So("0xa")]("FindAndReplaceUtils");return t((t=>(So("0x5")==typeof e?r[So("0x9")](e,n):e)(t)[So("0xd")]((e=>!1===this[So("0x0")](e,t[So("0x11")])))),n)}_isInDeletionRange(t,e){const n=this[So("0x12")][So("0x4")][So("0x6")](this[So("0x12")][So("0x4")][So("0x8")](e,t.start),this[So("0x12")][So("0x4")][So("0x8")](e,t[So("0xe")]));for(const t of this[So("0x12")][So("0x4")].markers.getMarkersGroup("suggestion:deletion"))if(null!==n.getIntersection(t.getRange()))return!0;return!1}}const Lo=["toLowerCase","normalizeSizeOptions","FORMAT_FONT_FAMILY","FORMAT_FONT_COLOR","FontSize","*Reset font size*","fontColor.colors","*Set font family:* %0","*Reset font background color*","_enableDefaultAttributesIntegration","_registerLegacyDescription","formatInline","has","fontBackgroundColor","_descriptionFactory","*Set font color:* %0","*Reset font color*","registerAttributeLabel","fontBackgroundColor.colors","*Reset font family*","FontFamilyEditing","locale","*Set font size:* %0","fontFamily","editor","registerDescriptionCallback","commandName","commandParams","fontColor","fontSize.options","trim","value","FontBackgroundColorEditing","format","config","FontSizeEditing","label","fontSize","find","plugins","get","title","*Set font background color:* %0","afterInit","type","TrackChangesEditing","model","FORMAT_FONT_BACKGROUND"];var No,Mo;No=Lo,Mo=288,function(t){for(;--t;)No.push(No.shift())}(++Mo);const wo=function(t,e){return Lo[t-=0]},Oo=[{pluginName:wo("0x23"),commandName:wo("0x25")},{pluginName:wo("0x14"),commandName:wo("0x17")},{pluginName:"FontColorEditing",commandName:wo("0x1c")},{pluginName:wo("0x20"),commandName:wo("0xd")}];class Fo extends t.Plugin{[wo("0x2b")](){const t=this[wo("0x18")][wo("0x15")],e=this[wo("0x18")].plugins.get(wo("0x2d"));for(const{pluginName:t,commandName:n}of Oo)this[wo("0x18")][wo("0x27")][wo("0xc")](t)&&e[wo("0x9")](n,[n]);t.t,e[wo("0xe")][wo("0x11")](wo("0x25"),Jr(t,"FORMAT_FONT_SIZE")),e[wo("0xe")][wo("0x11")](wo("0x17"),Jr(t,wo("0x2"))),e[wo("0xe")][wo("0x11")]("fontColor",Jr(t,wo("0x3"))),e._descriptionFactory[wo("0x11")](wo("0xd"),Jr(t,wo("0x2f"))),this[wo("0xa")]()}[wo("0xa")](){const t=this[wo("0x18")],e=t[wo("0x15")];t.plugins[wo("0x28")](wo("0x2d"))[wo("0xe")][wo("0x19")]((t=>{const n=e.t;if(wo("0xb")!=t[wo("0x2c")])return;const{data:r}=t;if(null!=r){if(wo("0x25")==r[wo("0x1a")]){const t=r[wo("0x1b")][0].value;if(t){const r=n(this.editor[wo("0x27")][wo("0x28")](wo("0x4"))[wo("0x1")](this[wo("0x18")].config[wo("0x28")](wo("0x1d")))[wo("0x26")]((e=>e[wo("0x2e")]==t))[wo("0x29")])[wo("0x0")]();return{type:wo("0x21"),content:Jr(e,wo("0x16"),r)}}return{type:wo("0x21"),content:Jr(e,wo("0x5"))}}if("fontFamily"==r[wo("0x1a")]){const t=r[wo("0x1b")][0][wo("0x1f")];return t?{type:wo("0x21"),content:Jr(e,wo("0x7"),t)}:{type:wo("0x21"),content:Jr(e,wo("0x13"))}}if("fontColor"==r[wo("0x1a")]){const t=r.commandParams[0][wo("0x1f")];if(t){const r=(0,i.normalizeColorOptions)(this.editor.config[wo("0x28")](wo("0x6"))).find((e=>e[wo("0x2e")]==t));let o=t,s="";return r&&(o=r[wo("0x24")],s=n(o)[wo("0x0")]()),{type:"format",content:Jr(e,wo("0xf"),s)[wo("0x1e")](),color:{value:t,title:s||o}}}return{type:wo("0x21"),content:Jr(e,wo("0x10"))}}if("fontBackgroundColor"==r[wo("0x1a")]){const t=r[wo("0x1b")][0].value;if(t){const r=(0,i.normalizeColorOptions)(this.editor[wo("0x22")].get(wo("0x12")))[wo("0x26")]((e=>e[wo("0x2e")]==t));let o=t,s="";return r&&(o=r[wo("0x24")],s=n(o).toLowerCase()),{type:wo("0x21"),content:Jr(e,wo("0x2a"),s)[wo("0x1e")](),color:{value:t,title:s||o}}}return{type:wo("0x21"),content:Jr(e,wo("0x8"))}}}}))}}const Do=["charAt","toLowerCase","_registerLegacyDescription","label","normalizeSizeOptions","boolean","pasteFormat","slice","find","type","afterInit","fontColor","_descriptionFactory","commandName","commandParams","*Set format to:* %0","formatInline","get","FontSize","join","locale","length","push","fontColor.colors","toUpperCase","registerDescriptionCallback","fontSize","copyFormat","plugins","enableCommand","title","model","split","editor","TrackChangesEditing","config","format","commands","*Remove all formatting*"];var Po,Bo;Po=Do,Bo=488,function(t){for(;--t;)Po.push(Po.shift())}(++Bo);const Uo=function(t,e){return Do[t-=0]};class jo extends t.Plugin{[Uo("0x1d")](){const t=this[Uo("0xd")],e=t[Uo("0x8")][Uo("0x24")](Uo("0xe")),n=t.commands[Uo("0x24")](Uo("0x7")),r=t[Uo("0x11")][Uo("0x24")](Uo("0x19"));n&&r&&(e._enableDefaultAttributesIntegration(Uo("0x19")),e[Uo("0x9")]("copyFormat"),this[Uo("0x15")]())}[Uo("0x15")](){const t=this[Uo("0xd")],e=t[Uo("0x0")];t.plugins[Uo("0x24")]("TrackChangesEditing")[Uo("0x1f")][Uo("0x5")]((n=>{if("formatBlock"!=n[Uo("0x1c")]&&Uo("0x23")!=n[Uo("0x1c")])return;const{data:r}=n;if(r&&"pasteFormat"===r[Uo("0x20")]){const n=[],i=r[Uo("0x21")][0];for(const[e,r]of Object.entries(i))n[Uo("0x2")](Go(t,e,r));return n[Uo("0x1")]?{type:Uo("0x10"),content:Jr(e,Uo("0x22"),n.join(", "))}:{type:Uo("0x10"),content:Jr(e,Uo("0x12"))}}}))}}function Go(t,e,n){const r=t.locale.t,o=e[Uo("0xc")](/(?=[A-Z])/)[Uo("0x26")](" "),s=r(o[Uo("0x13")](0)[Uo("0x4")]()+o[Uo("0x1a")](1)).toLowerCase();if(Uo("0x18")==typeof n)return s;if(Uo("0x1e")===e||"fontBackgroundColor"===e){const e=(0,i.normalizeColorOptions)(t[Uo("0xf")][Uo("0x24")](Uo("0x3")))[Uo("0x1b")]((t=>t[Uo("0xb")]==n));return s+" ("+(e?r(e[Uo("0x16")])[Uo("0x14")]():n)+")"}if(Uo("0x6")===e&&isNaN(parseFloat(n))){const e=t[Uo("0x8")][Uo("0x24")](Uo("0x25"))[Uo("0x17")](t.config[Uo("0x24")]("fontSize.options"))[Uo("0x1b")]((t=>t.model==n));return s+" ("+(e?r(e[Uo("0xa")])[Uo("0x14")]():n)+")"}return s+" ("+n+")"}const Vo=["ELEMENT_HEADING_CUSTOM","heading.options","ELEMENT_HEADING","heading","plugins","model","format","title","view","TrackChangesEditing","*Change to:* %0","registerElementLabel","_enableDefaultAttributesIntegration","get","has","value","name","HeadingEditing","config","match","_descriptionFactory","commandName","_registerLegacyDescription","_headingOptions","afterInit","paragraph","_getHeadingLevel","locale","editor","find","type"];var Ho,zo;Ho=Vo,zo=103,function(t){for(;--t;)Ho.push(Ho.shift())}(++zo);const Wo=function(t,e){return Vo[t-=0]};class Ko extends t.Plugin{[Wo("0xe")](){const t=this[Wo("0x12")];if(!t[Wo("0x19")][Wo("0x4")](Wo("0x7")))return;this[Wo("0xd")]=t[Wo("0x8")][Wo("0x3")](Wo("0x16"));const e=t[Wo("0x11")],n=t[Wo("0x19")][Wo("0x3")](Wo("0x1e"));n[Wo("0x2")](Wo("0x18"));for(const t of this[Wo("0xd")])Wo("0xf")!=t[Wo("0x1a")]&&n._descriptionFactory[Wo("0x1")](t[Wo("0x1a")],(n=>{const r=this[Wo("0x10")](t[Wo("0x1a")]);return null!==r?(s=n,x=r,Jr(e,Wo("0x17"),[s,x])):(i=n,o=t[Wo("0x1c")],Jr(e,"ELEMENT_HEADING_CUSTOM",[i,o]));var i,o,s,x}));this[Wo("0xc")]()}[Wo("0xc")](){const t=this[Wo("0x12")],e=t[Wo("0x11")];t.plugins.get(Wo("0x1e"))[Wo("0xa")].registerDescriptionCallback((t=>{if("formatBlock"!=t[Wo("0x14")])return;const{data:n}=t;if(n&&Wo("0x18")==n[Wo("0xb")]){const t=n.commandParams[0][Wo("0x5")],s=this._getHeadingLevel(t);if(null!==s)return{type:Wo("0x1b"),content:Jr(e,Wo("0x0"),(1,o=s,Jr(e,"ELEMENT_HEADING",[1,o])))};const x=this._headingOptions[Wo("0x13")]((e=>e[Wo("0x1a")]===t)).title;return{type:Wo("0x1b"),content:Jr(e,Wo("0x0"),(r=1,i=x,Jr(e,Wo("0x15"),[r,i])))}}var r,i,o}))}_getHeadingLevel(t){var e,n;const r=t[Wo("0x9")](/^heading(\d+)/);if(r)return r[1];const i=null===(e=this[Wo("0xd")])||void 0===e?void 0:e[Wo("0x13")]((e=>e[Wo("0x1a")]==t));if(i&&i[Wo("0x1d")]){const t=i[Wo("0x1d")],e=(null!==(n=t[Wo("0x6")])&&void 0!==n?n:t)[Wo("0x9")](/^h(\d+)/);if(e)return e[1]}return null}}const qo=["color","registerDescriptionCallback","editor","HighlightEditing","toLowerCase","format","_registerLegacyDescription","highlight","commandName","plugins","*Set highlight:* %0","registerAttributeLabel","get","type","highlight.options","title","config","has","FORMAT_HIGHLIGHT","model","_descriptionFactory","value","TrackChangesEditing","formatInline","commandParams","afterInit"];var Xo,$o;Xo=qo,$o=411,function(t){for(;--t;)Xo.push(Xo.shift())}(++$o);const Zo=function(t,e){return qo[t-=0]};class Yo extends t.Plugin{[Zo("0x4")](){const t=this[Zo("0x7")];if(!t[Zo("0xe")][Zo("0x16")](Zo("0x8")))return;const e=t[Zo("0xe")][Zo("0x11")](Zo("0x1")),n=t.locale;e._enableDefaultAttributesIntegration(Zo("0xc"),[Zo("0xc")]),e._descriptionFactory[Zo("0x10")](Zo("0xc"),Jr(n,Zo("0x17"))),this[Zo("0xb")]()}[Zo("0xb")](){const t=this[Zo("0x7")],e=t.locale;t[Zo("0xe")].get("TrackChangesEditing")[Zo("0x19")][Zo("0x6")]((n=>{if(Zo("0x2")!=n[Zo("0x12")])return;const{data:r}=n;if(r&&Zo("0xc")==r[Zo("0xd")]){const n=e.t,i=r[Zo("0x3")][0][Zo("0x0")];if(i){const r=t[Zo("0x15")].get(Zo("0x13")).find((t=>t[Zo("0x18")]==i)),o=n(r[Zo("0x14")])[Zo("0x9")]();return{type:Zo("0xa"),content:Jr(e,Zo("0xf"),o),color:{value:r[Zo("0x5")],title:r[Zo("0x14")]}}}return{type:"format",content:Jr(e,"*Remove highlight*",Jr(e,Zo("0x17")))}}}))}}const Jo=["editor","high","enableCommand","createPositionAt","plugins","horizontalLine","registerElementLabel","afterInit","for","_descriptionFactory","elementToStructure","get","TrackChangesEditing","has","ck-horizontal-line","dataDowncast","createContainerElement"];var Qo,ts;Qo=Jo,ts=403,function(t){for(;--t;)Qo.push(Qo.shift())}(++ts);const es=function(t,e){return Jo[t-=0]};class ns extends t.Plugin{[es("0xc")](){const t=this[es("0x5")];if(!t.plugins[es("0x1")]("HorizontalLineEditing"))return;t.plugins[es("0x10")](es("0x0"))[es("0x7")](es("0xa"));const e=t[es("0x9")].get(es("0x0")),n=t.locale;e[es("0xe")][es("0xb")](es("0xa"),(t=>Jr(n,"ELEMENT_HORIZONTAL_LINE",t))),t.conversion[es("0xd")](es("0x3"))[es("0xf")]({model:es("0xa"),view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return null;const r=e[es("0x4")]("div"),i=e.createEmptyElement("hr");return e.addClass(es("0x2"),r),e.insert(e[es("0x8")](r,0),i),r},converterPriority:es("0x6")})}}const rs=["afterInit","_descriptionFactory","editor","*Change %0 content*","_registerLegacyDescription","TrackChangesEditing","getFirstRange","ELEMENT_HTML_EMBED","plugins","registerDescriptionCallback","rawHtml","htmlEmbed","element","locale","nodeAfter","attribute","formatBlock","registerElementLabel","HtmlEmbed","key","value","format","has","type"];var is,os;is=rs,os=384,function(t){for(;--t;)is.push(is.shift())}(++os);const ss=function(t,e){return rs[t-=0]};class xs extends t.Plugin{[ss("0x0")](){const t=this[ss("0x2")];if(!t.plugins[ss("0x16")](ss("0x12")))return;const e=t[ss("0x8")].get("TrackChangesEditing"),n=t[ss("0xd")];e[ss("0x1")][ss("0x11")](ss("0xa"),(t=>Jr(n,ss("0x7"),t))),e._enableDefaultAttributesIntegration(ss("0xb"),[],["value"]),e._descriptionFactory[ss("0x9")]((t=>{if(ss("0xf")!=t[ss("0x17")])return;const{data:e}=t;if(e&&ss("0x14")==e[ss("0x13")]&&t[ss("0x6")]().start[ss("0xe")].is(ss("0xc"),"rawHtml")){const t=Jr(n,ss("0x7"));return{type:ss("0x15"),content:Jr(n,ss("0x3"),t)}}})),this[ss("0x4")]()}[ss("0x4")](){const t=this[ss("0x2")],e=t[ss("0xd")];t[ss("0x8")].get(ss("0x5"))[ss("0x1")][ss("0x9")]((t=>{if(ss("0x10")!=t[ss("0x17")])return;const{data:n}=t;if(n&&ss("0xb")==n.commandName){const t=Jr(e,"ELEMENT_HTML_EMBED");return{type:ss("0x15"),content:Jr(e,"*Change %0 content*",t)}}}))}}const as=["caption","ImageTextAlternativeEditing","get","chain","imageInline","ImageUploadEditing","document","markBlockFormat","uploadImage","getFirstRange","nodeBefore","join","type","forceDefaultExecution","backward","attribute","*Remove image text alternative*","accept","ELEMENT_CAPTION","registerAttributeLabel","enableCommand","nodeAfter","has","ImageBlockEditing","registerDescriptionCallback","newValue","subType","commandName","editor","alt","insertion","plugins","isCollapsed","end","commandParams","getSuggestionCallback","toggleImageCaption","imageStylePreApply","imageCaption","imageTextAlternative","findIndex","width","isBefore","markDeletion","formatBlock","convertBlockImageToInline","imageTypeInline","format","TrackChangesEditing","getNearestSelectionRange","start","_enableDefaultAttributesIntegration","ELEMENT_INLINE_IMAGE","find","resizeImage","*Reset image width*","convertInlineImageToBlock","isIntersecting","filter","_registerLegacyDescription","isBlockImage","imageBlock","selection","ImageCaptionEditing","*Set image width:* %0","discard","change","fromPosition","_suggestionFactory","locale","isEqual","toNext","ELEMENT_IMAGE","removeObject","registerElementLabel","createRangeOn","previous","afterInit","resizedWidth","createRange","deletion","element","length","registerCustomCallback","*Set image text alternative:* %0","model","Block image to inline image","getClosestSelectedImageElement","ImageEditing","imageTypeBlock","ImageUtils","_descriptionFactory","markInsertion"];var cs,ls;cs=as,ls=181,function(t){for(;--t;)cs.push(cs.shift())}(++ls);const us=function(t,e){return as[t-=0]};class ds extends t.Plugin{[us("0x52")](){const t=this.editor;if(!t[us("0x24")][us("0x1b")](us("0x0")))return;const e=t[us("0x24")][us("0x7")](us("0x35")),n=t.plugins.get(us("0x2")),r=t.locale;e[us("0x19")]("insertImage"),e[us("0x3")][us("0x4f")](us("0x42"),(t=>Jr(r,us("0x4d"),t))),e[us("0x3")].registerElementLabel(us("0x9"),(t=>Jr(r,us("0x39"),t))),e[us("0x3")][us("0x4f")](us("0x5"),(()=>Jr(r,us("0x17")))),t.plugins.has(us("0xa"))&&e[us("0x19")](us("0xd")),t.plugins[us("0x1b")](us("0x1c"))&&t[us("0x24")].has("ImageInlineEditing")&&(e[us("0x19")]("imageTypeInline",((r,i)=>{const o=n.getClosestSelectedImageElement(t[us("0x5a")].document[us("0x43")]);t[us("0x5a")][us("0x47")]((()=>{e[us("0xc")](o,{commandName:us("0x33"),commandParams:[i]},[],us("0x32"))}))})),e[us("0x19")](us("0x1"),((r,i)=>{t[us("0x5a")][us("0x47")]((o=>{let x=n[us("0x5c")](t[us("0x5a")][us("0xb")].selection),a=o[us("0x50")](x);const c=s.LivePosition[us("0x48")](a.start,"toPrevious"),l=s.LivePosition.fromPosition(a.end,us("0x4c"));e[us("0x12")]((()=>r(i))),x=n[us("0x5c")](t[us("0x5a")][us("0xb")].selection),a=o.createRangeOn(x);const u=o[us("0x54")](c,l);c.detach(),l.detach(),e[us("0xc")](x,{commandName:us("0x33"),commandParams:[i]},[],"convertInlineImageToBlock"),u.start.isBefore(a[us("0x37")])&&e.markInsertion(o[us("0x54")](u[us("0x37")],a[us("0x37")]),us("0x3d")),a[us("0x26")].isBefore(u[us("0x26")])&&e[us("0x4")](o[us("0x54")](a.end,u[us("0x26")]),us("0x3d"))}))})),e[us("0x49")][us("0x58")]("formatBlock",us("0x3d"),us("0x10"),(()=>!1)),e._suggestionFactory[us("0x58")]("formatBlock",us("0x3d"),"accept",(()=>!1)),e[us("0x49")][us("0x58")]("formatBlock",us("0x3d"),us("0x46"),e[us("0x49")][us("0x28")]("formatBlock","",us("0x16"))),e[us("0x49")][us("0x58")](us("0x23"),us("0x3d"),us("0x10"),(()=>!1)),e[us("0x49")][us("0x58")](us("0x23"),us("0x3d"),"discard",(([n])=>{const r=e._suggestionFactory[us("0x28")](us("0x23"),"",us("0x46"));let i=n.start,o=n[us("0x26")];const s=t[us("0x5a")].schema[us("0x36")](i,us("0x13")),x=t[us("0x5a")].schema[us("0x36")](o,"forward");s[us("0x25")]&&(i=s[us("0x37")]),x.isCollapsed&&(o=x[us("0x26")]),r([t.model[us("0x54")](i,o)])})),e[us("0x49")][us("0x58")]("formatBlock","convertInlineImageToBlock",us("0x8"),x),e[us("0x49")][us("0x58")](us("0x23"),us("0x3d"),us("0x8"),x)),t[us("0x24")].has(us("0x44"))&&(e[us("0x19")](us("0x29"),((r,i)=>{const o=t[us("0x24")][us("0x7")]("ImageCaptionUtils");let s=n[us("0x5c")](t[us("0x5a")].document[us("0x43")]),x=o.getCaptionFromImageModelElement(s);t.model[us("0x47")]((()=>{if(x)return void e[us("0x30")](t[us("0x5a")][us("0x50")](x));const a=n[us("0x41")](s);r(i),s=n[us("0x5c")](t.model[us("0xb")][us("0x43")]),x=o.getCaptionFromImageModelElement(s),e[us("0x4")](t.model.createRangeOn(x),a?null:us("0x2b"))}))})),e[us("0x49")][us("0x58")](us("0x23"),"imageCaption","chain",x));const i=[{type:us("0x31"),subType:us("0x2a")},{type:"insertion",subType:us("0x2b")},{type:us("0x31"),subType:us("0x3d")},{type:us("0x23"),subType:us("0x3d")}];function o(t,r){const o=i.findIndex((({type:e,subType:n})=>t.type==e&&t.subType==n)),s=i[us("0x2d")]((({type:t,subType:e})=>r[us("0x11")]==t&&r[us("0x1f")]==e));if(o<0||s<0)return!1;const x=t.getFirstRange(),a=r[us("0xe")]();if((0==o||1==o)&&2==s&&x[us("0x3e")](a))return!0;if(2==o&&3==s){const t=e._findSuggestions(x,us("0x23"))[us("0x3f")]((({suggestion:t,meta:e})=>e.isOwn&&us("0x3d")==t[us("0x1f")]));if(t[us("0x57")]>1&&a.end.isEqual(x[us("0x37")]))return!0;if(1==t[us("0x57")]&&(x[us("0x37")][us("0x4b")](a[us("0x26")])||x[us("0x26")][us("0x4b")](a.start)))return!0}if(3==o&&3==s&&x[us("0x37")][us("0x2f")](a[us("0x37")])){const t=x.end[us("0x1a")],e=a[us("0x37")][us("0xf")];return n[us("0x41")](t)&&t===e}return!1}function x(t,e){return o(t,e)?[t,e]:o(e,t)?[e,t]:null}t[us("0x24")][us("0x1b")]("ImageResize")&&(e._enableDefaultAttributesIntegration(us("0x3b"),[],[us("0x53")]),e[us("0x3")][us("0x18")](us("0x53"),Jr(r,"FORMAT_IMAGE_SIZE"))),t[us("0x24")][us("0x1b")](us("0x6"))&&e[us("0x38")](us("0x2c"),[],[us("0x22")]),e[us("0x3")][us("0x1d")]((t=>{if(i[us("0x3a")]((({type:e,subType:n})=>t.type==e&&t.subType==n)))return t[us("0x51")]?{}:void 0})),e[us("0x3")][us("0x1d")]((t=>{if(us("0x23")==t[us("0x11")]||us("0x55")==t.type){const e=t.getContainedElement();if(e&&e.is(us("0x56"),us("0x5")))return{type:us("0x23")==t.type?"addObject":us("0x4e"),element:e,quantity:1}}})),e[us("0x3")].registerDescriptionCallback((t=>"formatBlock"==t[us("0x11")]&&us("0x3d")==t[us("0x1f")]?{type:us("0x34"),content:"Inline image to block image"}:us("0x31")==t[us("0x11")]&&"convertBlockImageToInline"==t.subType?{type:us("0x34"),content:us("0x5b")}:void 0)),e[us("0x3")].registerDescriptionCallback((t=>{if(us("0x14")!=t[us("0x11")])return;const{data:e}=t;if(!e||us("0x22")!=e.key)return;const n=e.newValue;return n?{type:"format",content:Jr(r,"*Set image text alternative:* %0",'"'+n+'"')}:{type:us("0x34"),content:Jr(r,us("0x15"))}})),this[us("0x40")]()}[us("0x40")](){const t=this[us("0x21")],e=t[us("0x4a")];t[us("0x24")][us("0x7")](us("0x35"))[us("0x3")][us("0x1d")]((t=>{if("formatBlock"!=t[us("0x11")]&&"formatInline"!=t[us("0x11")])return;const{data:n}=t;if(n){if("imageTextAlternative"==n[us("0x20")]){const t=n[us("0x27")][0][us("0x1e")];return t?{type:us("0x34"),content:Jr(e,us("0x59"),'"'+t+'"')}:{type:"format",content:Jr(e,us("0x15"))}}if(us("0x3b")==n.commandName){const t=n.commandParams[0][us("0x2e")];return t?{type:"format",content:Jr(e,us("0x45"),t)}:{type:"format",content:Jr(e,us("0x3c"))}}}}))}}const gs=["getSuggestionCallback","afterInit","has","discard","type","formatBlock","formatInline","ImageEditing","*Replace image URL*","_registerLegacyDescription","accept","registerDescriptionCallback","src","replaceImageSource","plugins","oldValue","key","editor","TrackChangesEditing","_descriptionFactory","_suggestionFactory","_enableDefaultAttributesIntegration","_handleLegacySuggestions","*Format:* replace image URL","locale","get","format","registerCustomCallback"];var fs,hs;fs=gs,hs=277,function(t){for(;--t;)fs.push(fs.shift())}(++hs);const ms=function(t,e){return gs[t-=0]};class ps extends t.Plugin{[ms("0x4")](){if(!this[ms("0x14")][ms("0x11")][ms("0x5")](ms("0xa")))return;const t=this[ms("0x14")][ms("0x1b")],e=this.editor[ms("0x11")][ms("0x0")](ms("0x15"));e[ms("0x18")](ms("0x10"),[],[ms("0xf")]),e[ms("0x16")][ms("0xe")]((e=>{if("attribute"!=e[ms("0x7")])return;const{data:n}=e;return n&&ms("0xf")==n[ms("0x13")]?n.newValue&&n[ms("0x12")]?{type:"format",content:Jr(t,ms("0xb"))}:{type:ms("0x1"),content:""}:void 0})),this[ms("0x19")]()}_handleLegacySuggestions(){const t=this[ms("0x14")][ms("0x11")].get(ms("0x15"));t[ms("0x17")][ms("0x2")](ms("0x8"),ms("0x10"),ms("0xd"),t._suggestionFactory.getSuggestionCallback(ms("0x8"),null,ms("0x6"))),t._suggestionFactory[ms("0x2")](ms("0x8"),"replaceImageSource","discard",t[ms("0x17")][ms("0x3")]("formatBlock",null,ms("0xd"))),this._registerLegacyDescription()}[ms("0xc")](){const t=this[ms("0x14")],e=t[ms("0x1b")];t[ms("0x11")][ms("0x0")](ms("0x15"))[ms("0x16")][ms("0xe")]((t=>{if(ms("0x8")!=t[ms("0x7")]&&ms("0x9")!=t[ms("0x7")])return;const{data:n}=t;return n&&ms("0x10")==n.commandName?{type:ms("0x1"),content:Jr(e,ms("0x1a"))}:void 0}))}}const bs=["commands","imageTypeBlock","suggestion","registerPostFixer","imageStyle","imageStylePostApply","afterInit","name","refresh","imageTypeInline","get","join","plugins","getContainedElement","findIndex","isBlockImage","model","convertInlineImageToBlock","length","getFirstRange","isOwn","registerDescriptionCallback","author","isInlineImage","value","newRange","FORMAT_SIDE_IMAGE","document","getClosestSelectedImageElement","isInContent","filter","nodeBefore","next","TrackChangesEditing","formatInline","markBlockFormat","_descriptionFactory","registerCustomCallback","_registerLegacyDescription","commandReversedParams","getSuggestions","editor","discard","commandName","isBefore","title","chain","imageStylePreApply","selection","discardSuggestion","getSuggestionCallback","getSuggestion","imageCaption","change","commandParams","accept","locale","setImageNaturalSizeAttributes","formatBlock","side","_suggestionFactory","shouldConvertImageType","nodeAfter","enableCommand","markInlineFormat","type","ImageUtils","start","_findSuggestions","differ","subType","*Format:* %0","isEqual","isIntersecting","insertion","end","ImageStyleEditing"];var Es,_s;Es=bs,_s=487,function(t){for(;--t;)Es.push(Es.shift())}(++_s);const Ts=function(t,e){return bs[t-=0]};class ys extends t.Plugin{[Ts("0x3a")](){const t=this[Ts("0x10")];if(!t.plugins.has(Ts("0x33")))return;const n=t[Ts("0x40")][Ts("0x3e")](Ts("0x8")),r=t[Ts("0x40")].get(Ts("0x29")),i={};n[Ts("0x26")](Ts("0x38"),((i,o)=>{const s=t.plugins[Ts("0x3e")]("Users").me,x=t.commands[Ts("0x3e")](Ts("0x38"));let a=r[Ts("0x3")](t[Ts("0x44")][Ts("0x2")][Ts("0x17")]),c=t[Ts("0x44")].createRangeOn(a),l=x[Ts("0x4c")];if(l==o[Ts("0x4c")])return;const u={commandName:Ts("0x38"),commandParams:[o],formatGroupId:(0,e.uid)()};t[Ts("0x44")][Ts("0x1c")]((()=>{if(n[Ts("0xf")]()[Ts("0x5")]((t=>t[Ts("0x4")]&&s==t[Ts("0x4a")]&&(Ts("0x21")==t[Ts("0x28")]||"formatInline"==t[Ts("0x28")])&&("imageStylePreApply"==t[Ts("0x2d")]||Ts("0x39")==t[Ts("0x2d")])&&t[Ts("0x47")]()[Ts("0x2f")](c))).forEach((t=>n.discardSuggestion(t.head))),a=r[Ts("0x3")](t[Ts("0x44")].document.selection),c=t[Ts("0x44")].createRangeOn(a),x[Ts("0x3c")](),t[Ts("0x34")][Ts("0x3e")](Ts("0x3d")).refresh(),t.commands[Ts("0x3e")](Ts("0x35"))[Ts("0x3c")](),l=x[Ts("0x4c")],l!=o.value)return r[Ts("0x4b")](a)&&x[Ts("0x24")](o[Ts("0x4c")],a)?(i({...o,setImageSizes:!1}),a=r[Ts("0x3")](t[Ts("0x44")].document.selection),void n[Ts("0xa")](a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],"imageStylePreApply")):void(r[Ts("0x43")](a)?n[Ts("0xa")](a,u,[],Ts("0x39")):n[Ts("0x27")](c,u,Ts("0x39")))}))}));for(const e of t[Ts("0x40")][Ts("0x3e")](Ts("0x33")).normalizedStyles)i[e[Ts("0x3b")]]=e[Ts("0x14")].toLowerCase();n._suggestionFactory.registerCustomCallback(Ts("0x21"),Ts("0x16"),"join",(()=>!1)),n[Ts("0x23")].registerCustomCallback("formatBlock","imageStylePostApply",Ts("0x3f"),(()=>!1)),n[Ts("0x23")][Ts("0xc")]("formatInline","imageStylePostApply",Ts("0x3f"),(()=>!1)),n[Ts("0x23")][Ts("0xc")]("formatBlock","imageStylePreApply",Ts("0x1e"),(([t])=>{r[Ts("0x20")](t[Ts("0x41")]())})),n[Ts("0x23")][Ts("0xc")](Ts("0x21"),Ts("0x16"),Ts("0x11"),((t,e)=>{n._suggestionFactory[Ts("0x19")](Ts("0x21"),"",Ts("0x1e"))(t,{commandName:e[Ts("0x12")],commandParams:e[Ts("0xe")]})})),n._suggestionFactory[Ts("0xc")]("formatBlock","imageStylePreApply",Ts("0x15"),(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const o=[{type:Ts("0x21"),subType:Ts("0x16")},{type:"insertion",subType:"imageCaption"},{type:"formatBlock",subType:Ts("0x45")},{type:Ts("0x31"),subType:Ts("0x45")}];function s(t,e){const i=o[Ts("0x42")]((({type:e,subType:n})=>t[Ts("0x28")]==e&&t[Ts("0x2d")]==n)),s=o.findIndex((({type:t,subType:n})=>e[Ts("0x28")]==t&&e.subType==n));if(i<0||s<0)return!1;const x=t.getFirstRange(),a=e[Ts("0x47")]();if((0==i||1==i)&&2==s&&x[Ts("0x30")](a))return!0;if(2==i&&3==s){const t=n[Ts("0x2b")](x,"insertion").filter((({suggestion:t,meta:e})=>e[Ts("0x48")]&&Ts("0x45")==t[Ts("0x2d")]));if(t[Ts("0x46")]>1&&a.end.isEqual(x[Ts("0x2a")]))return!0;if(1==t.length&&(x[Ts("0x2a")][Ts("0x2f")](a[Ts("0x32")])||x[Ts("0x32")][Ts("0x2f")](a.start)))return!0}if(3==i&&3==s&&x.start[Ts("0x13")](a[Ts("0x2a")])){const t=x[Ts("0x32")][Ts("0x25")],e=a[Ts("0x2a")][Ts("0x6")];return r.isBlockImage(t)&&t===e}return!1}t[Ts("0x44")][Ts("0x2")][Ts("0x37")]((()=>{let e=!1;const i=Array.from(t[Ts("0x44")][Ts("0x2")][Ts("0x2c")].getChangedMarkers());for(const{name:t,data:o}of i){const{group:i,type:s,subType:x,id:a}=n._splitMarkerName(t);if(Ts("0x36")==i&&n.hasSuggestion(a)){if("formatBlock"==s&&(Ts("0x16")==x||"imageStylePostApply"==x)){const t=n[Ts("0x1a")](a);if(o[Ts("0x0")]){const i=t[Ts("0x47")]()[Ts("0x41")]();if(r.isBlockImage(i))continue;n[Ts("0x18")](t),e=!0}}if(Ts("0x31")==s&&Ts("0x1b")==x&&!o[Ts("0x0")]){const t=n[Ts("0x1a")](a);t.next&&t[Ts("0x7")].isInContent&&(n[Ts("0x18")](t.next),e=!0)}}}return e})),this[Ts("0xd")](i)}[Ts("0xd")](t){const e=this[Ts("0x10")],n=e[Ts("0x1f")];e[Ts("0x40")].get(Ts("0x8"))[Ts("0xb")][Ts("0x49")]((e=>{if("formatBlock"!=e[Ts("0x28")]&&Ts("0x9")!=e[Ts("0x28")])return;const{data:r}=e;if(!r||Ts("0x38")!=r[Ts("0x12")])return;const i=r[Ts("0x1d")][0][Ts("0x4c")];return o=Ts("0x22")===i?Jr(n,Ts("0x1")):t[i]||i,{type:"format",content:Jr(n,Ts("0x2e"),o)};var o}))}}const Cs=["value","track_changes","lowest","plugins","listenTo","Users","get","dataInsert","execute","commands","_trackChangesExecuted","_trackChangesValueDuringImport","trackChanges","enableCommand","importWord","afterInit","TrackChangesEditing","collaboration_features","editor","_handleImportedData","high"];var As,ks;As=Cs,ks=415,function(t){for(;--t;)As.push(As.shift())}(++ks);const Is=function(t,e){return Cs[t-=0]};class Rs extends t.Plugin{constructor(t){super(t),this[Is("0x10")]=!1,this._trackChangesExecuted=!1}[Is("0x14")](){const t=this[Is("0x2")],e=t[Is("0xe")].get(Is("0x13")),n=t[Is("0xe")][Is("0xb")](Is("0x11"));e&&(e.on("execute",((t,[,e])=>{this[Is("0x10")]=n[Is("0x5")],e[Is("0x1")][Is("0x6")]=!this[Is("0x10")]}),{priority:Is("0x4")}),this[Is("0x9")](e,"dataInsert",this._handleImportedData.bind(this)),this[Is("0x9")](e,Is("0xc"),(()=>{this[Is("0xf")]&&(n[Is("0xd")](),this[Is("0xf")]=!1)}),{priority:Is("0x7")}),t.plugins[Is("0xb")](Is("0x0"))[Is("0x12")](Is("0x13")))}[Is("0x3")](t,e){const{suggestions:n}=e,r=this[Is("0x2")].commands[Is("0xb")](Is("0x11")),i=r[Is("0x5")];this[Is("0x10")]!==i&&(r[Is("0xd")](),this[Is("0xf")]=!0),n&&n.forEach((({id:t,type:e,author:n,created_at:r})=>{const i={id:t,type:e,authorId:this[Is("0x2")][Is("0x8")].get(Is("0xa")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:r?new Date(r):new Date,source:"importWord"}}};this[Is("0x2")][Is("0x8")].get(Is("0x0"))._setSuggestionData(i)}))}}const Ss=["formatBlock","_registerBlockAttribute","editor","plugins","indent","registerDescriptionCallback","_enableDefaultAttributesIntegration","getItemLabel","outdent","_descriptionFactory","outdentBlock","indentBlock","locale","commandName","type","getItems","FORMAT_INDENT","get","has","TrackChangesEditing","format","IndentEditing","IndentBlock","*Indent:* %0","enableCommand","registerAttributeLabel","*Outdent:* %0","_registerLegacyDescription","blockIndent"];var vs,Ls;vs=Ss,Ls=463,function(t){for(;--t;)vs.push(vs.shift())}(++Ls);const Ns=function(t,e){return Ss[t-=0]};class Ms extends t.Plugin{afterInit(){const t=this[Ns("0x3")],e=t[Ns("0x4")][Ns("0x12")]("TrackChangesEditing");if(t.plugins[Ns("0x13")](Ns("0x16"))&&(e[Ns("0x19")](Ns("0x5")),e.enableCommand(Ns("0x9"))),t[Ns("0x4")][Ns("0x13")](Ns("0x17")))for(const t of[Ns("0xc"),"outdentBlock"])e[Ns("0x7")](t);const n=t.locale;e[Ns("0x2")]("blockIndent"),e[Ns("0xa")][Ns("0x1a")](Ns("0x0"),Jr(n,Ns("0x11"))),this[Ns("0x1c")]()}_registerLegacyDescription(){const t=this.editor,e=t[Ns("0xd")],n=t.plugins.get(Ns("0x14"));n[Ns("0xa")][Ns("0x6")]((t=>{if(Ns("0x1")!=t[Ns("0xf")])return;const{data:r}=t;if(!r)return;if(Ns("0xc")!=r[Ns("0xe")]&&Ns("0xb")!=r[Ns("0xe")])return;const i=t[Ns("0x10")]()[0],o=n._descriptionFactory[Ns("0x8")](i);return Ns("0xc")==r[Ns("0xe")]?{type:Ns("0x15"),content:Jr(e,Ns("0x18"),o)}:Ns("0xb")==r[Ns("0xe")]?{type:Ns("0x15"),content:Jr(e,Ns("0x1b"),o)}:void 0}))}}var ws,Os,Fs=["init","editor","plugins","input","enableCommand","get"];ws=Fs,Os=407,function(t){for(;--t;)ws.push(ws.shift())}(++Os);var Ds=function(t,e){return Fs[t-=0]};class Ps extends t.Plugin{static get requires(){return[qi.Input]}[Ds("0x1")](){this[Ds("0x2")][Ds("0x3")][Ds("0x0")]("TrackChangesEditing")[Ds("0x5")](Ds("0x4"))}}const Bs=["type","commandName","_registerLegacyDescription","_enableDefaultAttributesIntegration","*Set link:* %0","TrackChangesEditing","commandParams","newValue","plugins","map","afterInit","format","link","label","commands","has","linkHref","get","key","unlink","LinkEditing","*Remove link*","registerAttributeLabel","_descriptionFactory","link (","attribute","locale"];var Us,js;Us=Bs,js=108,function(t){for(;--t;)Us.push(Us.shift())}(++js);const Gs=function(t,e){return Bs[t-=0]};class Vs extends t.Plugin{[Gs("0xa")](){const t=this.editor;if(!t[Gs("0x8")][Gs("0xf")](Gs("0x14")))return;const e=t.plugins[Gs("0x11")](Gs("0x5")),n=t[Gs("0xe")].get(Gs("0xc"));e[Gs("0x3")]("link",[Gs("0x10"),...n.manualDecorators[Gs("0x9")]((t=>t.id))]),e[Gs("0x3")](Gs("0x13"));for(const t of n.manualDecorators)e[Gs("0x17")][Gs("0x16")](t.id,Gs("0x18")+t[Gs("0xd")].toLowerCase()+")");e[Gs("0x17")].registerDescriptionCallback((e=>{if(Gs("0x19")!=e[Gs("0x0")])return;const{data:n}=e;if(!n||"linkHref"!=n[Gs("0x12")])return;const r=n[Gs("0x7")],i=t[Gs("0x1a")];return{type:Gs("0xb"),content:null==r?Jr(i,Gs("0x15")):Jr(i,Gs("0x4"),'"'+r+'"')}})),this[Gs("0x2")]()}_registerLegacyDescription(){const t=this.editor,e=t.locale;t.plugins[Gs("0x11")](Gs("0x5"))._descriptionFactory.registerDescriptionCallback((t=>{if("formatInline"!=t.type)return;const{data:n}=t;if(n){if(Gs("0xc")==n[Gs("0x1")]){const t=n[Gs("0x6")][0];return{type:Gs("0xb"),content:Jr(e,Gs("0x4"),'"'+t+'"')}}return"unlink"==n.commandName?{type:Gs("0xb"),content:Jr(e,"*Remove link*")}:void 0}}))}}const Hs=["type","afterInit","registerElementLabel","createPositionAt","model","bulletedList","filter","editor","replace","listIndent","change","markBlockFormat","bulleted","format","todoListChecked","List","parent","get","listItem","numberedList","commandParams","ELEMENT_LIST_ITEM","push","commandName","value","document","createRange","enableCommand","_descriptionFactory","selection","*Check item*","LegacyTodoListEditing","ELEMENT_NUMBERED_LIST","ELEMENT_TODO_LIST","execute","checkTodoList","formatInline","registerDescriptionCallback","numbered","plugins","forceValue","*Change to:* %0","_selectedElements","has","indentList","ELEMENT_BULLETED_LIST","nextSibling","length","getAttribute","getSelectedBlocks","outdentList","element","todoList","isObject","name","formatBlock","checkChild","todo","paragraph","TrackChangesEditing","*Indent:* %0","from","blockName","add","LegacyListEditing","*Uncheck item*","before","findIndex","locale","previousSibling","slice"];var zs,Ws;zs=Hs,Ws=143,function(t){for(;--t;)zs.push(zs.shift())}(++Ws);const Ks=function(t,e){return Hs[t-=0]};class qs extends t.Plugin{[Ks("0x0")](){const t=this[Ks("0x6")],e=t[Ks("0x43")];if(!t[Ks("0x26")].has(Ks("0x3f")))return;const n=t[Ks("0x26")].get(Ks("0x3a")),r=t.plugins[Ks("0x2a")](Ks("0x1e"));function i(e){return()=>{const r=t[Ks("0x3")][Ks("0x18")][Ks("0x1c")],i=t.commands.get(e);if(i[Ks("0x17")])return void t[Ks("0x21")](Ks("0x39"),{});const o=e.slice(0,-4),s=function(t,e,n){let r=Array[Ks("0x3c")](t)[Ks("0x5")]((t=>{return e=t,(r=n)[Ks("0x37")](e[Ks("0xf")],Ks("0x11"))&&!r[Ks("0x34")](e);var e,r}));r=r[Ks("0x5")]((t=>!t.is(Ks("0x32"),Ks("0x11"))||t[Ks("0x2f")]("listType")!=e));const i=new Set;for(const t of r)t.is(Ks("0x32"),Ks("0x11"))?i.add(Xs(t)):i[Ks("0x3e")](t);return Array[Ks("0x3c")](i)}(r[Ks("0x30")](),o,t[Ks("0x3")].schema);t[Ks("0x3")][Ks("0x9")]((()=>{for(const t of s)n[Ks("0xa")](t,{commandName:e,commandParams:[{forceValue:!i.value}],formatGroupId:Ks("0x3d")},$s(t))}))}}function o(e){return()=>{const r=function(t){let e=Array[Ks("0x3c")](t);const n=e[Ks("0x42")]((t=>"listItem"!=t[Ks("0x35")]));return n>-1&&(e=e[Ks("0x45")](0,n)),e}(t[Ks("0x3")][Ks("0x18")][Ks("0x1c")].getSelectedBlocks()),i=t.model[Ks("0x19")](t.model[Ks("0x2")](r[0],Ks("0x41")),t[Ks("0x3")][Ks("0x2")](r[r[Ks("0x2e")]-1],"end"));t[Ks("0x3")][Ks("0x9")]((()=>{n[Ks("0xa")](i,{commandName:e,commandParams:[],formatGroupId:Ks("0x8")},function(t){const e=new Set;for(const n of t){let t=n[Ks("0x2d")];for(;t&&t[Ks("0x2f")](Ks("0x8"))>n.getAttribute("listIndent");)e[Ks("0x3e")](t),t=t.nextSibling}return Array.from(e)}(r))}))}}n.enableCommand(Ks("0x12"),i("numberedList")),n[Ks("0x1a")](Ks("0x4"),i(Ks("0x4"))),r&&n[Ks("0x1a")](Ks("0x33"),i("todoList")),n[Ks("0x1a")]("indentList",o(Ks("0x2b"))),n[Ks("0x1a")](Ks("0x31"),o("outdentList")),r&&n[Ks("0x1a")]("checkTodoList",(()=>{const e=t.commands[Ks("0x10")](Ks("0x22")),r=Array[Ks("0x3c")](e[Ks("0x29")]);r[Ks("0x5")]((t=>t[Ks("0x2f")](Ks("0xd"))!=e[Ks("0x17")])),t.model[Ks("0x9")]((()=>{for(const t of r)n[Ks("0xa")](t,{commandName:Ks("0x22"),commandParams:[{forceValue:!e[Ks("0x17")]}]})}))})),n[Ks("0x1b")][Ks("0x1")](Ks("0x11"),(t=>Jr(e,Ks("0x14"),t))),n[Ks("0x1b")][Ks("0x24")]((t=>{if(Ks("0x36")!=t[Ks("0x46")]&&Ks("0x23")!=t[Ks("0x46")])return;const{data:n}=t;if(n){if(Ks("0x12")==n[Ks("0x16")]||Ks("0x4")==n[Ks("0x16")]||Ks("0x33")==n[Ks("0x16")])switch(n[Ks("0x16")][Ks("0x7")](Ks("0xe"),"")){case Ks("0xb"):return r(Jr(e,Ks("0x2c")));case Ks("0x25"):return r(Jr(e,Ks("0x1f")));case Ks("0x38"):return r(Jr(e,Ks("0x20")))}if(Ks("0x2b")==n.commandName)return{type:Ks("0xc"),content:Jr(e,Ks("0x3b"),Jr(e,Ks("0x14")))};if(Ks("0x31")==n[Ks("0x16")])return{type:Ks("0xc"),content:Jr(e,"*Outdent:* %0",Jr(e,Ks("0x14")))};if(Ks("0x22")==n[Ks("0x16")])return n[Ks("0x13")][0][Ks("0x27")]?{type:"format",content:Jr(e,Ks("0x1d"))}:{type:Ks("0xc"),content:Jr(e,Ks("0x40"))}}function r(t){return{type:"format",content:Jr(e,Ks("0x28"),t)}}}))}}function Xs(t){const e=t[Ks("0x2f")](Ks("0x8"));if(0==e)return t;let n=t;for(;t[Ks("0x44")]&&t[Ks("0x44")].is(Ks("0x32"),Ks("0x11"));){const r=t[Ks("0x44")][Ks("0x2f")]("listIndent");if(r==e)n=t[Ks("0x44")];else if(r<e)break;t=t.previousSibling}return n}function $s(t){const e=[];if(t.is(Ks("0x32"),Ks("0x11"))&&t.getAttribute(Ks("0x8"))>0){let n=t[Ks("0x2d")];for(;n&&"listItem"==n[Ks("0x35")]&&n[Ks("0x2f")](Ks("0x8"))==t[Ks("0x2f")]("listIndent");)e[Ks("0x15")](n),n=n[Ks("0x2d")]}return e}const Zs=["LegacyListUtils","forward","*Format:* set start index to %0","unshift","_LIST_","parent","handleDescriptions","formatInline","numbered","afterInit","getSelectedBlocks","getLastPosition","length","createRange","handleListStyleCommand","locale","listStart","push","map","registerDescriptionCallback","handleListStartCommand","handleListReversedCommand","element","editor","format","selection","_getSuggestionBlocks","getFirstPosition","*Change to:* %0","model","before","getSiblingNodes","list.properties","toUpperCase","styles","commandName","createPositionAt","filter","markMultiRangeBlockFormat","plugins","get","type","has","listStyle","change","listType","_descriptionFactory","reversed","*Format:* set order to reversed","replace","listItem","document","listReversed","bind","backward","_getTranslationKeyForListStyle","enableCommand","_getSuggestionBlocksForListStyle","ELEMENT_","*Format:* set order to regular","startIndex","commandParams","getListTypeFromListStyleType"];var Ys,Js;Ys=Zs,Js=401,function(t){for(;--t;)Ys.push(Ys.shift())}(++Js);const Qs=function(t,e){return Zs[t-=0]};class tx extends t.Plugin{[Qs("0x31")](){if(!this[Qs("0x0")][Qs("0x10")][Qs("0x13")]("LegacyListPropertiesEditing"))return;const t=this[Qs("0x0")].config[Qs("0x11")](Qs("0x9")),e=this.editor[Qs("0x10")].get("TrackChangesEditing");t[Qs("0xb")]&&e[Qs("0x21")](Qs("0x14"),this[Qs("0x36")].bind(this)),t[Qs("0x18")]&&e[Qs("0x21")](Qs("0x1d"),this[Qs("0x3d")][Qs("0x1e")](this)),t[Qs("0x25")]&&e[Qs("0x21")](Qs("0x38"),this.handleListStartCommand[Qs("0x1e")](this)),e[Qs("0x17")][Qs("0x3b")](this[Qs("0x2e")][Qs("0x1e")](this))}[Qs("0x36")](t,e={}){const n=this[Qs("0x0")].plugins[Qs("0x11")]("TrackChangesEditing"),r=this[Qs("0x22")]();this[Qs("0x0")].model[Qs("0x15")]((()=>{n.markMultiRangeBlockFormat(r,{commandName:Qs("0x14"),commandParams:[{type:e[Qs("0x12")]}],formatGroupId:Qs("0x14")})}))}[Qs("0x3d")](t,e={}){const n=this.editor[Qs("0x10")][Qs("0x11")]("TrackChangesEditing"),r=this[Qs("0x3")]((t=>t.is(Qs("0x3e"),Qs("0x1b"))&&"numbered"===t.getAttribute(Qs("0x16"))));if(r[Qs("0x34")]<1)return;const i=r[Qs("0x3a")]((t=>this[Qs("0x0")][Qs("0x6")][Qs("0x35")](this[Qs("0x0")].model[Qs("0xd")](t,Qs("0x7")),this[Qs("0x0")][Qs("0x6")].createPositionAt(t,0))));this.editor[Qs("0x6")][Qs("0x15")]((()=>{n[Qs("0xf")](i,{commandName:"listReversed",commandParams:[{reversed:e[Qs("0x18")]}],formatGroupId:"listReversed"})}))}[Qs("0x3c")](t,e={}){const n=this[Qs("0x0")][Qs("0x10")].get("TrackChangesEditing"),r=this[Qs("0x3")]((t=>t.is(Qs("0x3e"),Qs("0x1b"))&&Qs("0x30")===t.getAttribute(Qs("0x16"))));if(r.length<1)return;const i=r[Qs("0x3a")]((t=>this.editor.model[Qs("0x35")](this[Qs("0x0")][Qs("0x6")][Qs("0xd")](t,Qs("0x7")),this[Qs("0x0")][Qs("0x6")].createPositionAt(t,0))));this[Qs("0x0")][Qs("0x6")][Qs("0x15")]((()=>{n.markMultiRangeBlockFormat(i,{commandName:Qs("0x38"),commandParams:[{startIndex:e[Qs("0x25")]}],formatGroupId:Qs("0x38")})}))}[Qs("0x2e")](t){if("formatBlock"!=t[Qs("0x12")]&&Qs("0x2f")!=t[Qs("0x12")])return;const e=this[Qs("0x0")][Qs("0x37")],{data:n}=t;if(!n)return;let r,i;switch(n[Qs("0xc")]){case Qs("0x14"):r=Qs("0x5"),i={type:Qs("0x1"),content:Jr(e,r,Jr(e,this[Qs("0x20")](n[Qs("0x26")][0].type)))};break;case Qs("0x1d"):r=n[Qs("0x26")][0][Qs("0x18")]?Qs("0x19"):Qs("0x24"),i={type:Qs("0x1"),content:Jr(e,r)};break;case"listStart":r=Qs("0x2a"),i={type:"format",content:Jr(e,r,n.commandParams[0][Qs("0x25")])}}return i}[Qs("0x22")](){var t,e,n,r;const i=this[Qs("0x0")][Qs("0x10")][Qs("0x11")](Qs("0x28"));let o=Array.from(this[Qs("0x0")][Qs("0x6")][Qs("0x1c")][Qs("0x2")][Qs("0x32")]());return(null===(t=o[0])||void 0===t?void 0:t.is(Qs("0x3e"),Qs("0x1b")))&&o[Qs("0x2b")](...i[Qs("0x8")](this[Qs("0x0")].model[Qs("0x1c")].selection[Qs("0x4")](),"backward")),(null===(e=o[o[Qs("0x34")]-1])||void 0===e?void 0:e.is("element",Qs("0x1b")))&&o[Qs("0x39")](...i[Qs("0x8")](this[Qs("0x0")][Qs("0x6")].document.selection[Qs("0x33")](),"forward")),o=[...new Set(o)],(null===(r=null===(n=this[Qs("0x0")][Qs("0x6")][Qs("0x1c")][Qs("0x2")][Qs("0x4")]())||void 0===n?void 0:n[Qs("0x2d")])||void 0===r?void 0:r.is(Qs("0x3e"),"listItem"))&&(o=o[Qs("0xe")]((t=>t.is("element",Qs("0x1b"))))),o}[Qs("0x3")](t){const e=this[Qs("0x0")][Qs("0x10")][Qs("0x11")](Qs("0x28"));let n=Array.from(this.editor[Qs("0x6")][Qs("0x1c")][Qs("0x2")][Qs("0x32")]())[Qs("0xe")](t)[Qs("0x3a")]((t=>{const n=this.editor[Qs("0x6")][Qs("0xd")](t,0);return[...e.getSiblingNodes(n,Qs("0x1f")),...e[Qs("0x8")](n,Qs("0x29"))]})).flat();return n=[...new Set(n)],n}[Qs("0x20")](t){return Qs("0x23")+this[Qs("0x0")].plugins[Qs("0x11")](Qs("0x28"))[Qs("0x27")](t)[Qs("0xa")]()+Qs("0x2c")+t.toUpperCase()[Qs("0x1a")](/-/g,"_")}}const ex=["high","editor","registerElementLabel","options","media","afterInit","TrackChangesEditing","attribute:url:media","_descriptionFactory","enableCommand","ELEMENT_MEDIA","data","locale","plugins","createEmptyElement","for","has","showSuggestionHighlights","div"];var nx,rx;nx=ex,rx=379,function(t){for(;--t;)nx.push(nx.shift())}(++rx);const ix=function(t,e){return ex[t-=0]};class ox extends t.Plugin{[ix("0x6")](){const t=this[ix("0x2")];if(!t[ix("0xe")][ix("0x11")]("MediaEmbedEditing"))return;const e=t[ix("0xe")].get(ix("0x7")),n=t[ix("0xd")];e[ix("0xa")]("mediaEmbed"),e[ix("0x9")][ix("0x3")](ix("0x5"),(t=>Jr(n,ix("0xb"),t))),t.conversion[ix("0x10")]("dataDowncast").elementToElement({model:ix("0x5"),view:(t,{writer:e,options:n})=>{if(n[ix("0x12")])return e[ix("0xf")](ix("0x0"))},converterPriority:ix("0x1")}),t[ix("0xc")].downcastDispatcher.on(ix("0x8"),((t,e,n)=>{n[ix("0x4")][ix("0x12")]&&t.stop()}),{priority:"high"})}}const sx=["MentionEditing","has","TrackChangesEditing","plugins","get","mention"];var xx,ax;xx=sx,ax=379,function(t){for(;--t;)xx.push(xx.shift())}(++ax);const cx=function(t,e){return sx[t-=0]};class lx extends t.Plugin{afterInit(){const t=this.editor;t[cx("0x2")][cx("0x0")](cx("0x5"))&&t[cx("0x2")][cx("0x3")](cx("0x1")).enableCommand(cx("0x4"))}}const ux=["plugins","ELEMENT_PAGE_BREAK","editor","enableCommand","has","pageBreak","_descriptionFactory","locale","afterInit","registerElementLabel","get","TrackChangesEditing","PageBreakEditing"];var dx,gx;dx=ux,gx=335,function(t){for(;--t;)dx.push(dx.shift())}(++gx);const fx=function(t,e){return ux[t-=0]};class hx extends t.Plugin{[fx("0xb")](){const t=this[fx("0x5")];if(!t.plugins[fx("0x7")](fx("0x2")))return;t[fx("0x3")].get(fx("0x1"))[fx("0x6")](fx("0x8"));const e=t[fx("0x3")][fx("0x0")](fx("0x1")),n=t[fx("0xa")];e[fx("0x9")][fx("0xc")](fx("0x8"),(t=>Jr(n,fx("0x4"),t)))}}const mx=["activeMarkers","editor","checkChild","getFirstRange","*Insert:* %0","model","addMarker:suggestion:insertion","consumable","options","nodeAfter","isLimit","paragraph","$text","markerName","Paragraph","enableCommand","highest","insert","afterInit","getItemLabel","span","TrackChangesEditing","format","schema","isTouching","type","*Change to:* %0","bindElementToMarker","get","markerRange","_enableDefaultAttributesIntegration","_registerLegacyDescription","addClass","_descriptionFactory","insertion","includes","ck-suggestion-marker--active","registerDescriptionCallback","isBlock","writer","has","ck-suggestion-marker-split","end","name","showSuggestionHighlights","toViewPosition","editing","downcastDispatcher","plugins","start","formatBlock","locale","registerElementLabel"];var px,bx;px=mx,bx=101,function(t){for(;--t;)px.push(px.shift())}(++bx);const Ex=function(t,e){return mx[t-=0]};class _x extends t.Plugin{[Ex("0x17")](){const t=this[Ex("0x6")];if(!t[Ex("0x0")][Ex("0x2d")](Ex("0x13")))return;const e=t[Ex("0x3")],n=t[Ex("0x0")].get(Ex("0x1a"));n[Ex("0x26")][Ex("0x4")](Ex("0x10"),(t=>Jr(e,"ELEMENT_PARAGRAPH",t))),n[Ex("0x23")](Ex("0x10")),n[Ex("0x14")]("insertParagraph"),t[Ex("0x33")][Ex("0x34")].on(Ex("0xb"),Tx(t),{priority:Ex("0x15")}),t.data[Ex("0x34")].on("addMarker:suggestion:insertion",((e,n,r)=>{r[Ex("0xd")][Ex("0x31")]&&Tx(t,{showActiveMarker:!1})(e,n,r)}),{priority:Ex("0x15")});const r=n[Ex("0x26")];r[Ex("0x2a")]((n=>{if(Ex("0x27")!==n.type)return;const{start:i,end:o}=n[Ex("0x8")]();if(!i.isTouching(o)||!i[Ex("0xe")])return;const s=t[Ex("0xa")].schema,x=i.nodeAfter;return s[Ex("0x2b")](x)&&!s[Ex("0xf")](x)&&s[Ex("0x7")](x,Ex("0x11"))?{type:Ex("0x27"),content:Jr(e,Ex("0x9"),r[Ex("0x18")](x,1))}:void 0})),this[Ex("0x24")]()}[Ex("0x24")](){const t=this.editor,e=t[Ex("0x3")];t[Ex("0x0")][Ex("0x21")](Ex("0x1a"))[Ex("0x26")][Ex("0x2a")]((t=>{if(Ex("0x2")!=t[Ex("0x1e")])return;const{data:n}=t;return n&&Ex("0x10")==n.commandName?{type:Ex("0x1b"),content:Jr(e,Ex("0x1f"),Jr(e,"ELEMENT_PARAGRAPH"))}:void 0}))}}function Tx(t,{showActiveMarker:e=!0}={}){return(n,r,i)=>{const o=t.plugins[Ex("0x21")](Ex("0x1a")),s=r[Ex("0x22")][Ex("0x1")],x=r[Ex("0x22")][Ex("0x2f")],a=t[Ex("0xa")][Ex("0x1c")];if(!s[Ex("0x1d")](x)||!s[Ex("0xe")])return;const c=s[Ex("0xe")];if(a[Ex("0x2b")](c)&&!a.isLimit(c)&&a[Ex("0x7")](c,Ex("0x11"))){if(!i[Ex("0xc")].consume(r[Ex("0x22")],n[Ex("0x30")]))return;const t=i[Ex("0x2c")].createUIElement(Ex("0x19"),{class:Ex("0x2e")}),s=i.mapper[Ex("0x32")](x);e&&o[Ex("0x5")][Ex("0x28")](r.markerName)&&i.writer[Ex("0x25")](Ex("0x29"),t),i[Ex("0x2c")][Ex("0x16")](s,t),i.mapper[Ex("0x20")](t,r[Ex("0x12")])}}}const yx=["_registerLegacyDescription","registerDescriptionCallback","type","*Remove all formatting*","_enableDefaultAttributesIntegration","commandName","TrackChangesEditing","get","removeFormat","formatInline","afterInit","editor","has","plugins","locale"];var Cx,Ax;Cx=yx,Ax=190,function(t){for(;--t;)Cx.push(Cx.shift())}(++Ax);const kx=function(t,e){return yx[t-=0]};class Ix extends t.Plugin{[kx("0x0")](){const t=this.editor;t[kx("0x3")][kx("0x2")]("RemoveFormatEditing")&&(t.plugins[kx("0xc")](kx("0xb"))[kx("0x9")](kx("0xd")),this[kx("0x5")]())}[kx("0x5")](){const t=this[kx("0x1")];t[kx("0x3")].get(kx("0xb"))._descriptionFactory[kx("0x6")]((e=>{if("formatBlock"!=e[kx("0x7")]&&kx("0xe")!=e.type)return;const{data:n}=e;return n&&"removeFormat"==n[kx("0xa")]?{type:"format",content:Jr(t[kx("0x4")],kx("0x8"))}:void 0}))}}const Rx=["enableCommand","RestrictedEditingModeEditing","goToNextRestrictedEditingException","has","TrackChangesEditing","acceptAllSuggestions","afterInit","plugins","get","goToPreviousRestrictedEditingException","acceptSuggestion","discardSuggestion"];var Sx,vx;Sx=Rx,vx=173,function(t){for(;--t;)Sx.push(Sx.shift())}(++vx);const Lx=function(t,e){return Rx[t-=0]};class Nx extends t.Plugin{[Lx("0x1")](){const t=this.editor;if(!t.plugins[Lx("0xa")](Lx("0x8")))return;const e=t.plugins[Lx("0x3")](Lx("0xb"));e.enableCommand(Lx("0x4")),e[Lx("0x7")](Lx("0x9"));const n=t[Lx("0x2")][Lx("0x3")](Lx("0x8"));n[Lx("0x7")]("trackChanges"),n[Lx("0x7")](Lx("0x5")),n[Lx("0x7")](Lx("0x6")),n[Lx("0x7")](Lx("0x0")),n[Lx("0x7")]("discardAllSuggestions"),n[Lx("0x7")]("acceptSelectedSuggestions"),n[Lx("0x7")]("discardSelectedSuggestions")}}const Mx=["ELEMENT_LINE_BREAK","markerRange","showSuggestionHighlights","addMarker:suggestion:deletion","shiftEnter","_descriptionFactory","writer","split","plugins","addMarker:suggestion:insertion","activeMarkers","element","model","editing","deletion","test","locale","toViewPosition","createPositionBefore","enableCommand","get","downcastDispatcher","registerElementLabel","span","softBreak","TrackChangesEditing","high","createUIElement","ck-suggestion-marker--active","bindElementToMarker","mapper","init","editor","insert","name","markerName","includes","ck-suggestion-marker-","addMarker:suggestion","merge"];var wx,Ox;wx=Mx,Ox=440,function(t){for(;--t;)wx.push(wx.shift())}(++Ox);const Fx=function(t,e){return Mx[t-=0]};class Dx extends t.Plugin{static get requires(){return[Eo.ShiftEnter]}[Fx("0x1f")](){const t=this[Fx("0x20")],e=t.plugins[Fx("0x14")](Fx("0x19"));e[Fx("0x13")](Fx("0x4")),t.editing[Fx("0x15")].on(Fx("0x9"),Px(t),{priority:Fx("0x1a")}),t[Fx("0xd")][Fx("0x15")].on(Fx("0x3"),Px(t),{priority:Fx("0x1a")}),t.data[Fx("0x15")].on(Fx("0x26"),((e,n,r)=>{r.options[Fx("0x2")]&&Px(t,{showActiveMarker:!1})(e,n,r)})),e[Fx("0x5")][Fx("0x16")](Fx("0x18"),(e=>Jr(t[Fx("0x10")],Fx("0x0"),e)))}}function Px(t,{showActiveMarker:e=!0}={}){return(n,r,i)=>{const o=t[Fx("0x8")][Fx("0x14")]("TrackChangesEditing");if(!i.consumable[Fx("0xf")](r[Fx("0x1")],n[Fx("0x22")]))return;const s=t[Fx("0xc")];for(const t of r.markerRange.getItems()){if(!t.is(Fx("0xb"),Fx("0x18")))continue;const n=Fx("0xe")==r[Fx("0x23")][Fx("0x7")](":")[1]?Fx("0x27"):Fx("0x7"),x=i[Fx("0x6")][Fx("0x1b")](Fx("0x17"),{class:Fx("0x25")+n}),a=i[Fx("0x1e")][Fx("0x11")](s[Fx("0x12")](t));e&&o[Fx("0xa")][Fx("0x24")](r[Fx("0x23")])&&i[Fx("0x6")].addClass(Fx("0x1c"),x),i[Fx("0x6")][Fx("0x21")](a,x),i[Fx("0x1e")][Fx("0x1d")](x,r[Fx("0x23")])}}}const Bx=["model","commandName","formatInline","FORMAT_RESTRICTED_ENABLED","getRanges","isCollapsed","selection","enableCommand","_descriptionFactory","get","restrictedEditingException","locale","TrackChangesEditing","type","format","registerDescriptionCallback","has","afterInit","StandardEditingModeEditing","from","FORMAT_RESTRICTED_DISABLED","commands","plugins","formatBlock","document","forceValue","change","editor"];var Ux,jx;Ux=Bx,jx=236,function(t){for(;--t;)Ux.push(Ux.shift())}(++jx);const Gx=function(t,e){return Bx[t-=0]};class Vx extends t.Plugin{[Gx("0x5")](){const t=this[Gx("0xf")],e=t[Gx("0x10")],n=t[Gx("0x1b")];if(!t[Gx("0xa")][Gx("0x4")](Gx("0x6")))return;const r=t[Gx("0xa")][Gx("0x19")](Gx("0x0")),i=Gx("0x1a"),o=t[Gx("0x9")].get(i);r[Gx("0x17")](i,((t,n={})=>{const s=e[Gx("0xc")][Gx("0x16")];if(s[Gx("0x15")])return void t(n);const x=void 0!==n[Gx("0xd")]?n[Gx("0xd")]:!o.value;e[Gx("0xe")]((()=>{const t=Array[Gx("0x7")](s[Gx("0x14")]());for(const n of t){const t=x?[n]:Ji(i,n,e);for(const e of t)r.markInlineFormat(e,{commandName:i,commandParams:[{forceValue:x}]})}}))})),r[Gx("0x18")][Gx("0x3")]((t=>{if(Gx("0xb")!=t[Gx("0x1")]&&Gx("0x12")!=t.type)return;const{data:e}=t;return e&&e[Gx("0x11")]==i?e.commandParams[0][Gx("0xd")]?{type:Gx("0x2"),content:Jr(n,Gx("0x13"))}:{type:"format",content:Jr(n,Gx("0x8"))}:void 0}))}}const Hx=["formatBlock","getGhsAttributeNameForElement","block","style","registerAttributeLabel","TrackChangesEditing","ghsAttributes","has","element","plugins","locale","GeneralHtmlSupport","config","type","_enableDefaultAttributesIntegration","add","definitions","_registerBlockAttribute","_registerInlineAttribute","toLowerCase","registerDescriptionCallback","DataSchema","_descriptionFactory","editor","forceValue","commandParams","format","get","formatInline","Style","StyleUtils","FORMAT_STYLE","*Remove format:* %0","afterInit","styleName"];var zx,Wx;zx=Hx,Wx=415,function(t){for(;--t;)zx.push(zx.shift())}(++Wx);const Kx=function(t,e){return Hx[t-=0]};class qx extends t.Plugin{[Kx("0x3")](){const t=this[Kx("0x1c")];if(!t.plugins[Kx("0xc")](Kx("0x22"))||!t.plugins.has("DataSchema"))return;const e=t.plugins[Kx("0x20")](Kx("0xa")),n=t.locale,r=t[Kx("0x11")][Kx("0x20")](Kx("0x8")),i=t.plugins[Kx("0x20")](Kx("0x10")),o=t.plugins.get(Kx("0x0")).normalizeConfig(t[Kx("0xe")].get(Kx("0x1a")),r[Kx("0x15")]);e[Kx("0x13")]("style");const s=new Set;for(const t of o[Kx("0x7")]){const e=i[Kx("0x6")](t[Kx("0xd")]);s[Kx("0x14")](e)}const x=new Set;for(const t of o.inline){const e=i[Kx("0x6")](t[Kx("0xd")]);x[Kx("0x14")](e);for(const e of t[Kx("0xb")])x.add(e)}for(const t of s)e[Kx("0x16")](t),e[Kx("0x1b")][Kx("0x9")](t,Jr(n,"FORMAT_STYLE"));for(const t of x)e[Kx("0x17")](t),e._descriptionFactory[Kx("0x9")](t,Jr(n,Kx("0x1")));this._registerLegacyDescription()}_registerLegacyDescription(){const t=this[Kx("0x1c")],e=t[Kx("0xf")];t[Kx("0xe")].get(Kx("0xa"))._descriptionFactory[Kx("0x19")]((t=>{if(Kx("0x5")!=t[Kx("0x12")]&&Kx("0x21")!=t[Kx("0x12")])return;const{data:n}=t;return n&&Kx("0x8")===n.commandName?n[Kx("0x1e")][0][Kx("0x1d")]?{type:Kx("0x1f"),content:Jr(e,"*Set format:* %0",n[Kx("0x1e")][0][Kx("0x4")][Kx("0x18")]())}:{type:Kx("0x1f"),content:Jr(e,Kx("0x2"),n[Kx("0x1e")][0][Kx("0x4")][Kx("0x18")]())}:void 0}))}}const Xx=["selection","execute","nodeAfter","accept","position","createRangeIn","_splitMarkerName","type","every","insertTableColumnLeft","writer","add","selectTableColumn","last","from","get","TableUtils","registerCustomCallback","TrackChangesEditing","left","MAX_SAFE_INTEGER","locale","isIntersectingWithRange","nodeBefore","ELEMENT_TABLE_WITH_TEXT","removeTableColumn","createPositionAt","getSelectionAffectedTableCells","removeClass","element","getCellLocation","name","ELEMENT_TABLE_ROW","enableCommand","has","root","tableRow","length","getRanges","ELEMENT_TABLE_ROW_WITH_TEXT","*Remove:* %0","mapper","options","startsWith","refresh","insert","substr","createRangeOn","MIN_SAFE_INTEGER","highest","getAttribute","includes","data","addClass","isEqual","tablePaste","tableCell","commands","filter","classes","createTableWalker","removeTableRow","maxColumn","start","markMultiRangeDeletion","getChildren","getItems","findAncestor","colspan","ELEMENT_TABLE_COLUMN_WITH_TEXT","registerDescriptionCallback","insertTableColumnRight","registerElementLabel","insertion","getContainedElement","min","*Insert:* %0","deletion","getRowIndexes","_getSuggestionCoords","plugins","_getCoordsForCells","enqueueChange","max","$textProxy","oldRange","insertTable","editor","markMultiRangeInsertion","join","table","some","_descriptionFactory","ELEMENT_TABLE_COLUMN","differ","span","detach","maxRow","selectTableRow","_tableSuggestions","order","discard","end","isInContent","rootName","registerPostFixer","document","_suggestionFactory","isTouching","subType","push","$graveyard","toLowerCase","cell","fromRange","first","above","low","setSelection","model","insertTableRowAbove","insertTableRowBelow","change:data","map","hasAttribute","getFirstRange","change","getChanges","addRange","_setupColumnsRowsFixing","minRow","rowspan","tableColumn","addMarker:suggestion","_acceptFormatSuggestionCallbackFactory"];var $x,Zx;$x=Xx,Zx=279,function(t){for(;--t;)$x.push($x.shift())}(++Zx);const Yx=function(t,e){return Xx[t-=0]};class Jx extends t.Plugin{constructor(t){super(t),this._tablePostFixingSubtypes=[Yx("0x1b"),Yx("0x7b")],this._tableSuggestions=new Set}afterInit(){const t=this.editor,e=t[Yx("0x6e")][Yx("0x61")][Yx("0x7e")];if(!t.plugins[Yx("0x19")]("TableEditing"))return;const n=t[Yx("0xc")],r=t[Yx("0x47")].get("TrackChangesEditing"),i=t.plugins.get(Yx("0x7"));r[Yx("0x53")][Yx("0x3f")](Yx("0x51"),(t=>Jr(n,"ELEMENT_TABLE",t))),this[Yx("0x78")](),r.enableCommand(Yx("0x4d")),r[Yx("0x18")](Yx("0x59")),r[Yx("0x18")](Yx("0x3"));for(const n of[Yx("0x6f"),Yx("0x70")]){const o=t[Yx("0x30")][Yx("0x6")](n);r[Yx("0x18")](n,(n=>{t.model[Yx("0x75")]((t=>{n();const s=Yx("0x6b")===o.order,x=i[Yx("0x12")](e),a=i[Yx("0x45")](x),c=s?a[Yx("0x6a")]-1:a[Yx("0x4")]+1,l=x[0][Yx("0x3a")](Yx("0x51")),u=i[Yx("0x33")](l,{startRow:c,endRow:c}),d=Array.from(u).map((e=>t[Yx("0x26")](e[Yx("0x68")])));r[Yx("0x4f")](d,Yx("0x1b"))}))}))}for(const n of[Yx("0x0"),Yx("0x3e")]){const o=t[Yx("0x30")].get(n);r[Yx("0x18")](n,(n=>{t[Yx("0x6e")][Yx("0x75")]((t=>{n();const s=Yx("0xa")===o[Yx("0x5b")],x=i[Yx("0x12")](e),a=i.getColumnIndexes(x),c=s?a[Yx("0x6a")]-1:a.last+1,l=x[0][Yx("0x3a")](Yx("0x51")),u=i[Yx("0x33")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Yx("0x5")](u)[Yx("0x72")]((e=>t.createRangeOn(e[Yx("0x68")])));r.markMultiRangeInsertion(d,Yx("0x7b"))}))}))}for(const n of[Yx("0x34"),"removeTableColumn"]){const o=n[Yx("0x25")](11),s=o.toLowerCase(),x=s[Yx("0x25")](0,3)+Yx("0x56"),a=Yx("0x51")+o,c=Yx("0x42")+o,l=Yx("0x4a")+o;r[Yx("0x18")](n,(()=>{t[Yx("0x6e")][Yx("0x75")]((t=>{const o=i[Yx("0x12")](e),u=o[0][Yx("0x3a")](Yx("0x51"));let d;if(Yx("0x34")==n){const t=i[Yx("0x45")](o);d={startRow:t.first,endRow:t[Yx("0x4")],includeAllSlots:!0}}else{const t=i.getColumnIndexes(o);d={startColumn:t[Yx("0x6a")],endColumn:t.last,includeAllSlots:!0}}const g=i[Yx("0x33")](u,d),f=Array[Yx("0x5")](g)[Yx("0x72")]((({cell:t})=>t)),h=Qx(f[Yx("0x31")]((t=>t[Yx("0x73")](x)))),m=Qx(f.filter((t=>!t[Yx("0x73")](x))))[Yx("0x72")]((e=>t[Yx("0x26")](e))),p=r[Yx("0x37")](m,a);if(p&&(Yx("0x1b")==p[Yx("0x64")]||"tableColumn"==p[Yx("0x64")])){const e=this[Yx("0x46")](p);for(const n of h){const r=t[Yx("0x26")](n),o=i[Yx("0x15")](n),a=n[Yx("0x29")](x)-1,u=e[c],d=e[l];u<=o[s]&&o[s]+a<=d&&p[Yx("0x77")](r)}}}))}))}function o(n){const r=Array[Yx("0x5")](e[Yx("0x1d")]()).map((t=>s.LiveRange.fromRange(t)));t.model.change((e=>{const i=e.batch;n=n.filter((t=>Yx("0x66")!=t.root[Yx("0x5f")])),e[Yx("0x6d")](n),t[Yx("0x30")][Yx("0x6")](Yx("0x34"))[Yx("0x23")](),t.execute(Yx("0x34"),{forceDefaultExecution:!0}),t[Yx("0x6e")][Yx("0x49")]((()=>{t[Yx("0x6e")][Yx("0x49")](i,(t=>{const e=r[Yx("0x31")]((t=>Yx("0x66")!=t[Yx("0x1a")][Yx("0x5f")]));e[Yx("0x1c")]>0&&t.setSelection(e);for(const t of r)t.detach()}))}))}))}function a(n){t[Yx("0x6e")][Yx("0x75")]((r=>{const i=Array.from(e[Yx("0x1d")]()).map((t=>s.LiveRange[Yx("0x69")](t))),o=[];for(const t of n)for(const e of t[Yx("0x39")]({shallow:!0}))o[Yx("0x65")](e);for(const e of o)Yx("0x66")!=e[Yx("0x1a")][Yx("0x5f")]&&(r[Yx("0x6d")](r[Yx("0x11")](e,0)),t[Yx("0x30")][Yx("0x6")]("removeTableColumn").refresh(),t[Yx("0x7f")](Yx("0x10"),{forceDefaultExecution:!0}));const x=i[Yx("0x31")]((t=>Yx("0x66")!=t[Yx("0x1a")].rootName));x[Yx("0x1c")]>0&&r.setSelection(x);for(const t of i)t.detach()}))}function c(t,e){return e[Yx("0x86")]((e=>t[Yx("0x52")]((t=>t.end[Yx("0x2d")](e[Yx("0x36")])||e.end[Yx("0x2d")](t[Yx("0x36")])))))}function l(t,e){return t[Yx("0x52")]((t=>e[Yx("0x52")]((e=>t[Yx("0x5d")][Yx("0x63")](e[Yx("0x36")])))))}t[Yx("0x2b")].downcastDispatcher.on(Yx("0x7c"),((t,e,n)=>{if(!n[Yx("0x21")].showSuggestionHighlights)return;const r=e.item;if(!r)return;const i=n[Yx("0x20")].toViewElement(r);function o(t){return Array.isArray(t)?t:[t]}i&&Yx("0x2f")===r[Yx("0x16")]&&(0,x.setHighlightHandling)(i,n[Yx("0x1")],((t,e,n)=>n[Yx("0x2c")](o(e[Yx("0x32")]),t)),((t,e,n)=>n[Yx("0x13")](o(e[Yx("0x32")]),t)))}),{priority:Yx("0x28")}),r[Yx("0x53")][Yx("0x3d")]((t=>{if(Yx("0x40")!=t.type&&"deletion"!=t[Yx("0x85")])return;const e=t[Yx("0x41")]();if(null!=e&&e.is(Yx("0x14"),Yx("0x51"))){if(Yx("0x40")==t[Yx("0x85")]){const e=t[Yx("0x39")]()[Yx("0x31")]((t=>t.is(Yx("0x4b"))))[Yx("0x72")]((t=>t[Yx("0x2b")]));if(e[Yx("0x1c")])return{type:"insertion",content:Jr(n,"*Insert:* %0",Jr(n,Yx("0xf"),'"'+e[Yx("0x50")](" ")+'"'))}}if(Yx("0x44")==t[Yx("0x85")]){const e=t[Yx("0x39")]()[Yx("0x31")]((t=>t.is("$textProxy")))[Yx("0x72")]((t=>t[Yx("0x2b")]));if(e[Yx("0x1c")])return{type:Yx("0x44"),content:Jr(n,Yx("0x1f"),Jr(n,Yx("0xf"),'"'+e.join(" ")+'"'))}}}})),r[Yx("0x53")][Yx("0x3d")]((t=>{if(Yx("0x1b")==t[Yx("0x64")]){const e=t.getItems()[Yx("0x31")]((t=>t.is("$textProxy")))[Yx("0x72")]((t=>t.data)),r=this[Yx("0x46")](t),i=r[Yx("0x58")]-r[Yx("0x79")]+1;if(Yx("0x40")==t[Yx("0x85")])return e.length?{type:"insertion",content:Jr(n,Yx("0x43"),Jr(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[i,'"'+e[Yx("0x50")](" ")+'"']))}:{type:Yx("0x40"),content:Jr(n,Yx("0x43"),Jr(n,Yx("0x17"),i))};if("deletion"==t[Yx("0x85")])return e[Yx("0x1c")]?{type:Yx("0x44"),content:Jr(n,Yx("0x1f"),Jr(n,Yx("0x1e"),[i,'"'+e.join(" ")+'"']))}:{type:Yx("0x44"),content:Jr(n,Yx("0x1f"),Jr(n,"ELEMENT_TABLE_ROW",i))}}if(Yx("0x7b")==t[Yx("0x64")]){const e=t[Yx("0x39")]().filter((t=>t.is(Yx("0x4b")))).map((t=>t[Yx("0x2b")])),r=this[Yx("0x46")](t),i=r[Yx("0x35")]-r.minColumn+1;if(Yx("0x40")==t[Yx("0x85")])return e[Yx("0x1c")]?{type:"insertion",content:Jr(n,"*Insert:* %0",Jr(n,Yx("0x3c"),[i,'"'+e[Yx("0x50")](" ")+'"']))}:{type:Yx("0x40"),content:Jr(n,Yx("0x43"),Jr(n,Yx("0x54"),i))};if(Yx("0x44")==t.type)return e.length?{type:Yx("0x44"),content:Jr(n,Yx("0x1f"),Jr(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[i,'"'+e[Yx("0x50")](" ")+'"']))}:{type:Yx("0x44"),content:Jr(n,"*Remove:* %0",Jr(n,Yx("0x54"),i))}}})),r[Yx("0x62")].registerCustomCallback("insertion",Yx("0x1b"),Yx("0x5c"),o),r[Yx("0x62")][Yx("0x8")]("deletion","tableRow",Yx("0x81"),o),r[Yx("0x62")].registerCustomCallback("insertion","tableColumn",Yx("0x5c"),a),r._suggestionFactory[Yx("0x8")](Yx("0x44"),"tableColumn","accept",a),r[Yx("0x62")].registerCustomCallback(Yx("0x40"),Yx("0x7b"),"join",c),r[Yx("0x62")].registerCustomCallback(Yx("0x44"),Yx("0x7b"),Yx("0x50"),c),r[Yx("0x62")].registerCustomCallback(Yx("0x40"),"tableRow","join",l),r[Yx("0x62")][Yx("0x8")](Yx("0x44"),"tableRow",Yx("0x50"),l)}[Yx("0x7d")](){const t=this[Yx("0x4e")],e=t.model.document[Yx("0x7e")];return(n,r)=>{t[Yx("0x6e")][Yx("0x75")]((i=>{const{commandName:o,commandParams:x}=r;let a=n[0][Yx("0x5d")][Yx("0xe")];x&&x[0]&&!1===x[0].forceValue&&(a=n[0].start.nodeAfter);const c=i[Yx("0x83")](a);if(Yx("0x66")==c[Yx("0x1a")][Yx("0x5f")])return;const l=Array[Yx("0x5")](e.getRanges())[Yx("0x72")]((t=>s.LiveRange[Yx("0x69")](t)));i[Yx("0x6d")](c),t.commands.get(o)[Yx("0x23")](),x[Yx("0x65")]({forceDefaultExecution:!0}),t[Yx("0x7f")](o,...x);const u=l.filter((t=>Yx("0x66")!=t[Yx("0x1a")][Yx("0x5f")]));u[Yx("0x1c")]>0&&i[Yx("0x6d")](u);for(const t of l)t[Yx("0x57")]()}))}}_getCoordsForCells(t){const e=this.editor[Yx("0x47")][Yx("0x6")](Yx("0x7"));let n=Number[Yx("0xb")],r=Number[Yx("0x27")],i=Number[Yx("0xb")],o=Number[Yx("0x27")];for(const s of t){if(Yx("0x66")==s[Yx("0x1a")][Yx("0x5f")])continue;const{row:t,column:x}=e[Yx("0x15")](s),a=s[Yx("0x73")](Yx("0x7a"))?s[Yx("0x29")](Yx("0x7a"))-1:0,c=s[Yx("0x73")](Yx("0x3b"))?s[Yx("0x29")](Yx("0x3b"))-1:0;n=t<n?t:n,r=t+a>r?t+a:r,i=x<i?x:i,o=x+c>o?x+c:o}return{minRow:n,maxRow:r,minColumn:i,maxColumn:o}}[Yx("0x78")](){const t=this[Yx("0x4e")],e=t.plugins.get(Yx("0x9")),n=t[Yx("0x47")][Yx("0x6")]("TableUtils");t[Yx("0x6e")][Yx("0x61")].on(Yx("0x71"),(()=>{const n=Array[Yx("0x5")](t[Yx("0x6e")][Yx("0x61")][Yx("0x55")].getChangedMarkers());for(const{name:t,data:r}of n){const{group:n,id:i,subType:o}=e[Yx("0x84")](t);if("suggestion"!=n)continue;if(null!=r[Yx("0x4c")])continue;const s=e.getSuggestion(i);this._tablePostFixingSubtypes[Yx("0x2a")](o)&&this[Yx("0x5a")][Yx("0x2")](s)}}),{priority:Yx("0x6c")});const r=(t,e)=>{let r=!1;const i=e.createRangeOn(t),o=t[Yx("0x3a")]("table"),s=n[Yx("0x15")](t);for(const e of this[Yx("0x5a")]){const n=e[Yx("0x64")],x=n[Yx("0x22")](Yx("0x2e")),a=n[Yx("0x25")](x?10:5),c=a[Yx("0x67")](),l=c[Yx("0x25")](0,3)+"span",u="min"+a,d=Yx("0x4a")+a;if(!e[Yx("0x5e")])continue;if(o!=e[Yx("0x74")]()[Yx("0x36")][Yx("0x3a")]("table"))continue;if(e[Yx("0xd")](i))continue;const g=t.hasAttribute(l)?t[Yx("0x29")](l)-1:0,f=this[Yx("0x46")](e),h=f[u],m=f[d];h<=s[c]&&s[c]+g<=m&&(e.addRange(i),r=!0)}return r};t.model.document[Yx("0x60")]((e=>{let n=!1;for(const i of t.model[Yx("0x61")].differ[Yx("0x76")]())if(Yx("0x24")==i[Yx("0x85")])if(Yx("0x1b")==i[Yx("0x16")])for(const t of i[Yx("0x82")][Yx("0x80")][Yx("0x38")]())n=n||r(t,e);else Yx("0x2f")==i[Yx("0x16")]&&(n=n||r(i.position[Yx("0x80")],e));return n}))}[Yx("0x46")](t){return this[Yx("0x48")](t[Yx("0x1d")]().map((t=>t[Yx("0x36")][Yx("0x80")])))}}function Qx(t){return Array.from(new Set(t).values())}const ta=["add","registerCustomCallback","enableCommand","element","detach","splitTableCellHorizontally","cell","getAncestors","_descriptionFactory","markMultiRangeBlockFormat","$graveyard","markBlockFormat","change","execute","trackChanges","deletion","tableCell","rootName","TableUtils","locale","stop","low","_areSelectedCellsMergable","set:isEnabled","mergeTableCellRight","get","isEnabled","length","_areMergableCells","formatInline","_acceptFormatSuggestionCallbackFactory","highest","*Split cell:* horizontally","selection","mergeTableCellUp","find","type","_tablePostFixingSubtypes","filter","createTableWalker","TableEditing","_suggestionFactory","getSelectionAffectedTableCells","registerDescriptionCallback","document","plugins","accept","table","forceDefaultExecution","commands","return","push","mergeTableCells","mergeTableCellLeft","_isForcedDefaultExecutionBlock","*Merge cells*","refresh","from","formatBlock","createRangeOn","afterInit","model","containsRange","*Split cell:* vertically","editor","getRanges","has","size","getSuggestions","mergeTableCellDown","value","horizontally","map","direction","getFirstPosition","splitTableCellVertically","root","TrackChangesEditing","format","commandName"];var ea,na;ea=ta,na=154,function(t){for(;--t;)ea.push(ea.shift())}(++na);const ra=function(t,e){return ta[t-=0]};class ia extends t.Plugin{static get requires(){return[Jx]}[ra("0x42")](){const t=this[ra("0x46")],e=t[ra("0x43")][ra("0x32")].selection,n=t[ra("0x19")];if(!t[ra("0x33")][ra("0x48")](ra("0x2e")))return;const r=t[ra("0x33")][ra("0x1f")](ra("0x3")),i=t[ra("0x33")][ra("0x1f")](ra("0x18")),o=t[ra("0x33")].get(Jx);o[ra("0x2b")][ra("0x39")](ra("0x3a")),r[ra("0x8")](ra("0x3a"),(()=>{const e=i.getSelectionAffectedTableCells(t[ra("0x43")][ra("0x32")][ra("0x27")]);t[ra("0x43")][ra("0x12")]((()=>{r[ra("0xf")](e,{commandName:ra("0x3a"),commandParams:[]},[],ra("0x3a"))}))})),t[ra("0x37")][ra("0x1f")](ra("0x3a")).on(ra("0x13"),((e,n)=>{t[ra("0x37")][ra("0x1f")](ra("0x14"))[ra("0x4c")]&&(n[ra("0x21")]>0&&n[n[ra("0x21")]-1]&&n[n.length-1][ra("0x36")]||r[ra("0x3c")]||this[ra("0x1c")]()||e[ra("0x1a")]())}),{priority:ra("0x25")});for(const e of[ra("0x28"),ra("0x1e"),ra("0x4b"),ra("0x3b")]){const n=t[ra("0x37")].get(e);r[ra("0x8")](e,(()=>{const e=t[ra("0x43")][ra("0x32")].selection[ra("0x0")]()[ra("0xd")]()[ra("0x29")]((t=>t.is("element",ra("0x16")))),i=n.value;t[ra("0x43")].change((()=>{r[ra("0xf")]([e,i],{commandName:ra("0x3a"),commandParams:[]},[],ra("0x3a"))}))}))}for(const e of[ra("0x1"),"splitTableCellHorizontally"]){const n=t.commands[ra("0x1f")](e);r[ra("0x8")](e,(()=>{const o=i.getSelectionAffectedTableCells(t[ra("0x43")][ra("0x32")][ra("0x27")])[0],s=o.findAncestor(ra("0x35")),{column:x,row:a}=i.getCellLocation(o);let c=[];if(ra("0x4d")==n[ra("0x4f")]){const t=i[ra("0x2d")](s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[ra("0x3f")](t)[ra("0x4e")]((t=>t.cell))}else{const t=i[ra("0x2d")](s,{column:x,includeAllSlots:!0});c=Array[ra("0x3f")](t)[ra("0x4e")]((t=>t[ra("0xc")]))}t.model[ra("0x12")]((t=>{r[ra("0x11")](t[ra("0x41")](o),{commandName:e,commandParams:[]},c,e)}))}))}r[ra("0xe")].registerDescriptionCallback((t=>{if("formatBlock"!=t[ra("0x2a")]&&ra("0x23")!=t[ra("0x2a")])return;const{data:e}=t;return e&&"mergeTableCells"==e[ra("0x5")]?{type:ra("0x4"),content:Jr(n,ra("0x3d"))}:void 0})),r[ra("0xe")][ra("0x31")]((t=>{if(ra("0x40")!=t.type&&"formatInline"!=t.type)return;const{data:e}=t;return e?ra("0x1")==e[ra("0x5")]?{type:"format",content:Jr(n,ra("0x45"))}:ra("0xb")==e[ra("0x5")]?{type:ra("0x4"),content:Jr(n,ra("0x26"))}:void 0:void 0}));const x=o[ra("0x24")]();for(const t of[ra("0x28"),"mergeTableCellRight",ra("0x4b"),ra("0x3b")])r[ra("0x2f")][ra("0x7")]("formatBlock",t,ra("0x34"),x);for(const t of["splitTableCellVertically",ra("0xb")])r._suggestionFactory[ra("0x7")](ra("0x40"),t,ra("0x34"),x);r._suggestionFactory[ra("0x7")]("formatBlock",ra("0x3a"),ra("0x34"),(n=>{t[ra("0x43")].change((r=>{const i=Array[ra("0x3f")](e[ra("0x47")]())[ra("0x4e")]((t=>s.LiveRange.fromRange(t)));r.setSelection(n),t[ra("0x37")][ra("0x1f")](ra("0x3a"))[ra("0x3e")](),t[ra("0x13")]("mergeTableCells",{forceDefaultExecution:!0});const o=i[ra("0x2c")]((t=>ra("0x10")!=t[ra("0x2")][ra("0x17")]));o.length>0&&r.setSelection(o);for(const t of i)t[ra("0xa")]()}))}));for(const e of[ra("0x28"),ra("0x4b"),ra("0x3b"),ra("0x1e")]){const n=t[ra("0x37")][ra("0x1f")](e);n.on(ra("0x1d"),((e,r,i)=>{if(i){const r=t.model[ra("0x32")][ra("0x27")].getFirstPosition()[ra("0xd")]()[ra("0x29")]((t=>t.is(ra("0x9"),ra("0x16"))));this._areMergableCells(n[ra("0x4c")],r)||(e[ra("0x38")]=!1,e[ra("0x1a")]())}}),{priority:ra("0x1b")})}}_areSelectedCellsMergable(){const t=this[ra("0x46")].commands[ra("0x1f")](ra("0x3a")),e=this[ra("0x46")][ra("0x33")][ra("0x1f")](ra("0x18"));if(!t[ra("0x20")])return!1;const n=e[ra("0x30")](this[ra("0x46")][ra("0x43")][ra("0x32")][ra("0x27")]);for(const t of n)for(const e of n)if(t!=e&&!this._areMergableCells(t,e))return!1;return!0}[ra("0x22")](t,e){const n=this[ra("0x46")].plugins.get(ra("0x3")),r=this[ra("0x46")][ra("0x43")][ra("0x41")](t),i=this[ra("0x46")][ra("0x43")][ra("0x41")](e),o=new Set,s=new Set;for(const t of n[ra("0x4a")]())if(("insertion"==t[ra("0x2a")]||ra("0x15")==t[ra("0x2a")]||ra("0x3a")==t.subType)&&t.isInContent)for(const e of t[ra("0x47")]())e[ra("0x44")](r,!0)&&o[ra("0x6")](t.type+":"+t.author.id),e[ra("0x44")](i,!0)&&s[ra("0x6")](t[ra("0x2a")]+":"+t.author.id);if(o[ra("0x49")]!=s.size)return!1;for(const t of o)if(!s.has(t))return!1;return!0}}const oa=["end","data","mapper","ck-suggestion-marker-","toViewElement","parent","FORMAT_HEADER_COLUMN","editing","has","consumable","locale","editor","accept","get","FORMAT_REGULAR_ROW","addMarker:suggestion","createTableWalker","nodeBefore","downcastDispatcher","headingRows","registerCustomCallback","markerName","showSuggestionHighlights","item","setAttribute","formatBlock","headingColumns","requires","_suggestionFactory","addClass","markerNameToElements","commandName","data-suggestion","activeMarkers","_registerLegacyDescription","FORMAT_REGULAR_COLUMN","highest","removeMarker:suggestion","_handleLegacySuggestions","unbindElementFromMarkerName","commandParams","afterInit","registerDescriptionCallback","removeAttribute","ck-suggestion-marker--active","_enableDefaultAttributesIntegration","_splitMarkerName","_descriptionFactory","*Format:* %0","forceValue","getCellLocation","bindElementToMarker","start","TableEditing","setTableRowHeader","TrackChangesEditing","setTableColumnHeader","markerRange","removeClass","stop","writer","name","options","plugins","consume","registerAttributeLabel"];var sa,xa;sa=oa,xa=366,function(t){for(;--t;)sa.push(sa.shift())}(++xa);const aa=function(t,e){return oa[t-=0]};class ca extends t.Plugin{static get[aa("0x39")](){return[Jx]}[aa("0x5")](){const t=this.editor;if(!t[aa("0x1b")][aa("0x26")](aa("0x11")))return;const e=t[aa("0x28")],n=t.plugins[aa("0x2b")](aa("0x13"));n[aa("0x9")](aa("0x12"),[],[aa("0x31")]),n._enableDefaultAttributesIntegration(aa("0x14"),[],[aa("0x38")]),n[aa("0xb")][aa("0x1d")]("headingRows",Jr(e,"FORMAT_HEADER_ROW")),n[aa("0xb")][aa("0x1d")](aa("0x38"),Jr(e,aa("0x24"))),this[aa("0x2")]()}_handleLegacySuggestions(){const t=this[aa("0x29")].plugins[aa("0x2b")](aa("0x13")),e=this[aa("0x29")].plugins[aa("0x2b")]("TableUtils"),n=this[aa("0x29")][aa("0x1b")][aa("0x2b")](Jx)._acceptFormatSuggestionCallbackFactory();function r({showActiveMarker:n=!0,setDataAttribute:r=!0}={}){return(i,o,s)=>{const{type:x,id:a}=t[aa("0xa")](o.markerName),c=t.getSuggestion(a),l=c.data;if(aa("0x37")!=c.type||!l||aa("0x14")!=l[aa("0x3d")])return;if(o[aa("0x35")])return void i[aa("0x17")]();if(!s[aa("0x27")][aa("0x1c")](o[aa("0x15")],i[aa("0x19")]))return;const u=o[aa("0x15")][aa("0x10")].nodeAfter,d=o[aa("0x15")][aa("0x1e")][aa("0x2f")],g=u[aa("0x23")][aa("0x23")],{column:f}=e[aa("0xe")](u),{column:h}=e[aa("0xe")](d);for(let i=f;i<=h;i++){const c=e[aa("0x2e")](g,{column:i,includeAllSlots:!1});for(const e of c){const i=e.cell,c=s.mapper[aa("0x22")](i);s[aa("0x18")].addClass(aa("0x21")+x,c),r&&s[aa("0x18")][aa("0x36")](aa("0x3e"),a,c),s.mapper[aa("0xf")](c,o[aa("0x33")]),n&&(t[aa("0x3f")].includes(o[aa("0x33")])?s[aa("0x18")][aa("0x3b")]("ck-suggestion-marker--active",c):s[aa("0x18")][aa("0x16")](aa("0x8"),c))}}}}t[aa("0x3a")][aa("0x32")](aa("0x37"),aa("0x12"),aa("0x2a"),n),t[aa("0x3a")][aa("0x32")](aa("0x37"),aa("0x14"),aa("0x2a"),n),this[aa("0x29")][aa("0x25")].downcastDispatcher.on(aa("0x2d"),r(),{priority:aa("0x0")}),this[aa("0x29")].data[aa("0x30")].on(aa("0x2d"),((t,e,n)=>{n[aa("0x1a")][aa("0x34")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:aa("0x0")}),this[aa("0x29")][aa("0x25")][aa("0x30")].on(aa("0x1"),((e,n,r)=>{const{type:i,id:o}=t._splitMarkerName(n[aa("0x33")]),s=t.getSuggestion(o),x=s[aa("0x1f")];if(aa("0x37")!=s.type||!x||aa("0x14")!=x[aa("0x3d")])return;const a=r[aa("0x20")][aa("0x3c")](n[aa("0x33")]);if(a)for(const t of a)r[aa("0x18")].removeClass(aa("0x21")+i,t),r[aa("0x18")].removeClass(aa("0x8"),t),r.writer[aa("0x7")](aa("0x3e"),t),r[aa("0x20")][aa("0x3")](t,n[aa("0x33")])}),{priority:aa("0x0")}),this[aa("0x40")]()}_registerLegacyDescription(){const t=this[aa("0x29")],e=t[aa("0x28")];function n(t){return{type:"format",content:Jr(e,aa("0xc"),t)}}t[aa("0x1b")][aa("0x2b")](aa("0x13"))._descriptionFactory[aa("0x6")]((t=>{if(aa("0x37")!=t.type)return;const{data:r}=t;if(r){if(aa("0x12")==r[aa("0x3d")]){const t=r[aa("0x4")][0][aa("0xd")];return n(Jr(e,t?"FORMAT_HEADER_ROW":aa("0x2c")))}if("setTableColumnHeader"==r[aa("0x3d")]){const t=r[aa("0x4")][0][aa("0xd")];return n(Jr(e,t?"FORMAT_HEADER_COLUMN":aa("0x41")))}}}))}}const la=["TableClipboard","for","getSuggestionCallback","isEmpty","tablePasteRow","get","getChangedMarkers","_createdBatches","differ","suggestion","table","endColumn","TrackChangesEditing","getShiftedBy","startsWith","schema","createPositionBefore","markMultiRangeBlockFormat","fill","containsRange","isInContent","registerDescriptionCallback","forceDefaultExecution","join","has","tableCellPadding","deletion","getRange","createTableWalker","findAncestor","columnInsertionIndexes","attributes","tableCellHorizontalAlignment","insertion","afterInit","editing","low","trackChanges","options","columnInsertionRanges","type","length","rowInsertionRanges","removeMarkers","ck-suggestion-marker","selection","getContainedElement","getChanges","end","createRangeIn","next","content","_splitMarkerName","getItems","author","getMarkers","registerCustomCallback","column","suggestion-td","tablePaste","insertContent","getRanges","return","getChild","*Replace table cells*","tablePasteCell","tableCellBackgroundColor","filter","subType","first","map","keys","getAllAdjacentSuggestions","_descriptionFactory","start","insertionRanges","showSuggestionHighlights","setAttributes","accept","_replaceTableSlotCell","oldRange","register","every","reduce","createRangeOn","insertRows","cell","ck-suggestion-marker--active","_isForcedDefaultExecutionBlock","markMultiRangeInsertion","element","fromEntries","includes","remove","batch","getChildren","setAttribute","getColumns","view","hasSuggestion","add","tablePasteChainId","name","push","getTableIfOnlyTableInContent","position","Users","root","nextSibling","rowInsertionIndexes","documentSelection","getColumnIndexes","change","tableCellBorderColor","from","suggestionLoaded","commands","set","markerName","entries","tableCellSuggestion","stop","getRowIndexes","activeMarkers","previous","createElement","paragraph","isEqual","redo","previousSibling","formatBlock","_suggestionFactory","markerAttributes","rows","requires","unwrap","tablePasteColumn","markerToHighlight","move","clipboardOutput","discard","value","$graveyard","elementToElement","removeMarker","document","suggestion:formatBlock:tablePasteCell","cells","model","conversion","tableCell","insert","nodeAfter","markers","high","tableCellBorderWidth","removeRows","getSuggestions","last","registerPostFixer","editor","newRange","plugins"];var ua,da;ua=la,da=195,function(t){for(;--t;)ua.push(ua.shift())}(++da);const ga=function(t,e){return la[t-=0]},fa=[ga("0x7b"),ga("0x51"),"tableCellBorderStyle",ga("0x0"),"tableCellVerticalAlignment",ga("0x22"),ga("0x9c")],ha=Object.fromEntries(fa[ga("0x26")]((t=>[t,null])));class ma extends t.Plugin{static get[ga("0x66")](){return[Jx]}[ga("0x2")](){const t=this[ga("0x80")];if(!t.plugins.has(ga("0x83")))return;const n=t.plugins.get(ga("0x8f")),r=t.plugins[ga("0x88")]("TableUtils"),i=t[ga("0x82")][ga("0x88")](Jx),o=t[ga("0x82")][ga("0x88")](ga("0x83"));i._tablePostFixingSubtypes.push("tablePasteRow","tablePasteColumn"),t[ga("0x74")][ga("0x92")][ga("0x31")]("tableCellSuggestion",{allowIn:ga("0x76"),allowContentOf:ga("0x76"),isLimit:!0}),t[ga("0x75")][ga("0x6f")]({model:ga("0x58"),view:"suggestion-td"});let s=null;t.model.on("insertContent",((i,x)=>{const[a,c]=x,l=x[x[ga("0x9")]-1];l&&l[ga("0x99")]||n[ga("0x38")]||this[ga("0x80")][ga("0x54")][ga("0x88")](ga("0x5"))[ga("0x6d")]&&function(t,e,n,r,i){if(e&&!e.is(ga("0x4e")))return!1;const o=i[ga("0x48")](t,n);if(!o||!ba(o,void 0,r))return!1;const s=r.getSelectionAffectedTableCells(n[ga("0x71")][ga("0xd")]);if(!s.length)return!1;const x=s[0][ga("0xa0")](ga("0x8d")),a=r[ga("0x5a")](s),c=r[ga("0x4f")](s),l={startRow:a[ga("0x25")],endRow:a[ga("0x7e")],startColumn:c[ga("0x25")],endColumn:c[ga("0x7e")]};return 1==s.length&&(l.endRow+=r.getRows(o)-1,l[ga("0x8e")]+=r[ga("0x41")](o)-1),ba(x,l,r)}(a,c,t[ga("0x74")],r,o)&&(i.stop(),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[ga("0x74")].change((()=>{t[ga("0x74")][ga("0x1c")](x[0],x[1],x[2],{forceDefaultExecution:!0});const r=(0,e.uid)(),{rowInsertionRanges:i,columnInsertionRanges:o,insertionRanges:a,deletionRanges:c,cells:l}=s;i[ga("0x9")]&&n[ga("0x39")](i,ga("0x87"),{tablePasteChainId:r}),o[ga("0x9")]&&n[ga("0x39")](o,ga("0x68"),{tablePasteChainId:r}),a[ga("0x9")]&&n[ga("0x39")](a,"tablePaste",{tablePasteChainId:r,skipNestingCheck:!0}),c[ga("0x9")]&&n.markMultiRangeDeletion(c,ga("0x1b"),{tablePasteChainId:r,skipNestingCheck:!0});const u=n[ga("0x94")](l[ga("0x26")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],ga("0x21"),{tablePasteChainId:r});if(u){const e=u.getMarkers(),n=[];for(const{element:r,attributes:i}of l){if(!i)continue;const o=t[ga("0x74")][ga("0x34")](r),s=e.find((t=>t.getRange().isEqual(o)));s&&n.push([s[ga("0x46")],i])}n[ga("0x9")]&&u[ga("0x40")]("markerAttributes",Object[ga("0x3b")](n))}s=null})))}),{priority:e.priorities.high+10}),t[ga("0x82")][ga("0x88")](ga("0x83")).on(ga("0x2f"),((t,e)=>{const[n,r,,i]=e;if(!s)return;t[ga("0x59")]();const o=n[ga("0x36")],x=r,a=pa(o),c=pa(x);t[ga("0x1e")]=o;let l=null,u=null;if(c||a)if(a&&!c){i[ga("0x3d")](o[ga("0x1f")](0));for(const t of Array[ga("0x52")](x.getChildren()))i[ga("0x77")](t,o,ga("0x10"));const t=s[ga("0x4d")][ga("0x3c")](n.row),e=s[ga("0xa1")].includes(n[ga("0x19")]);t||e||(l=i[ga("0x11")](o))}else c&&!a&&(u=i[ga("0x11")](o));else{const t=i.createElement(ga("0x58")),e=i[ga("0x5d")](ga("0x58"));i.wrap(i[ga("0x11")](o),e),i[ga("0x77")](t,o,0);for(const e of Array[ga("0x52")](x[ga("0x3f")]()))i[ga("0x77")](e,t,ga("0x10"));l=i.createRangeOn(t),u=i[ga("0x34")](e)}const d=Array[ga("0x52")](x.getAttributes())[ga("0x23")]((([t])=>fa.includes(t)));s[ga("0x73")][ga("0x47")]({element:o,attributes:d[ga("0x9")]?Object[ga("0x3b")](d):null}),l&&s[ga("0x2b")][ga("0x47")](l),u&&s.deletionRanges[ga("0x47")](u)}),{priority:ga("0x7a")}),r.on("insertColumns",((e,n)=>{const[i,o={}]=n;if(!s)return;const x=o.at||0,a=o.columns||1;s[ga("0xa1")]=new Array(a).fill(x)[ga("0x26")](((t,e)=>t+e));for(const{cell:e}of r[ga("0x9f")](i,{startColumn:x,endColumn:x+a-1}))s[ga("0x7")][ga("0x47")](t[ga("0x74")][ga("0x34")](e))}),{priority:ga("0x4")}),r.on(ga("0x35"),((e,n)=>{const[i,o={}]=n;if(!s)return;const x=o.at||0,a=o[ga("0x65")]||1;s[ga("0x4d")]=new Array(a)[ga("0x95")](x)[ga("0x26")](((t,e)=>t+e));for(const{cell:e}of r[ga("0x9f")](i,{startRow:x,endRow:x+a-1}))s[ga("0xa")][ga("0x47")](t[ga("0x74")].createRangeOn(e))}),{priority:ga("0x4")}),n[ga("0x29")][ga("0x98")]((e=>{if(e[ga("0x24")]&&e[ga("0x24")][ga("0x91")](ga("0x1b")))return e[ga("0x5c")]?{}:{type:ga("0x1"),content:Jr(t.locale,ga("0x20"))}}));const x=()=>!1;for(const t of[ga("0x1b"),ga("0x68"),ga("0x87"),ga("0x21")])n[ga("0x63")][ga("0x18")](ga("0x1"),t,ga("0x9a"),x),n[ga("0x63")][ga("0x18")](ga("0x9d"),t,ga("0x9a"),x),n[ga("0x63")][ga("0x18")](ga("0x62"),t,ga("0x9a"),x);n._suggestionFactory[ga("0x18")](ga("0x62"),ga("0x21"),ga("0x6c"),x),n._suggestionFactory[ga("0x18")](ga("0x62"),ga("0x21"),ga("0x2e"),((e,n,r)=>{const i=e[ga("0x26")]((t=>t.getContainedElement()))[ga("0x23")]((t=>t)),o=new Map(i[ga("0x26")]((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s[ga("0x73")])e&&o[ga("0x55")](t,e);else if(r&&r[ga("0x64")])for(const[e,n]of Object[ga("0x57")](r[ga("0x64")])){const r=t[ga("0x74")][ga("0x79")][ga("0x88")](e),i=r?r.getRange()[ga("0xe")]():null;i&&o[ga("0x55")](i,n)}t.model[ga("0x50")]((t=>{for(const[e,n]of o)t[ga("0x2d")]({...ha,...n},e)}))}));const a=(e,r)=>{n[ga("0x63")][ga("0x18")](e,ga("0x1b"),r,((i,o,s)=>{t[ga("0x74")][ga("0x50")]((t=>{const x=[];for(const t of i){const e=t[ga("0x2a")][ga("0x78")];e.is("element",ga("0x58"))&&x[ga("0x47")](e)}n[ga("0x63")][ga("0x85")](e,null,r)(i,o,s);for(const e of x)ga("0x6e")!=e[ga("0x4b")].rootName&&t[ga("0x67")](e)}))}))};a(ga("0x1"),"accept"),a("insertion",ga("0x6c")),a(ga("0x9d"),ga("0x2e")),a(ga("0x9d"),ga("0x6c")),n[ga("0x63")][ga("0x18")]("insertion",ga("0x87"),ga("0x6c"),(t=>{const e=t[ga("0x26")]((t=>t[ga("0xe")]())),n=e[0].findAncestor(ga("0x8d")),{minRow:o,maxRow:s}=i._getCoordsForCells(e);r[ga("0x7c")](n,{at:o,rows:s-o+1})})),n[ga("0x63")].registerCustomCallback(ga("0x1"),ga("0x68"),ga("0x6c"),(t=>{const e=t[ga("0x26")]((t=>t.getContainedElement())),n=e[0][ga("0xa0")](ga("0x8d")),{minColumn:o,maxColumn:s}=i._getCoordsForCells(e);r.removeColumns(n,{at:o,columns:s-o+1})}));const c=(t,e)=>{if(!e[ga("0x24")]||!e.subType[ga("0x91")](ga("0x1b")))return;const r=e[ga("0xa2")][ga("0x45")],i=n[ga("0x7d")]()[ga("0x23")]((t=>t[ga("0x97")]&&t[ga("0xa2")]&&t.attributes[ga("0x45")]==r));i[ga("0x9")]&&e.getAllAdjacentSuggestions()[ga("0x9")]!=i[ga("0x9")]&&i[ga("0x33")](((t,e)=>(t[ga("0x12")]=e,e[ga("0x5c")]=t,e)))};function l(t,e=!0){const{id:r}=n[ga("0x14")](t.markerName),i=[ga("0xc"),"ck-suggestion-marker-insertion"],o=n[ga("0x5b")][ga("0x3c")](t[ga("0x56")]);return o&&i[ga("0x47")](ga("0x37")),{classes:i,attributes:{"data-suggestion":r},priority:o&&e?3010:3e3}}n.on(ga("0x53"),c,{priority:ga("0x7a")}),n.on("suggestionUnloaded",c,{priority:ga("0x7a")}),t[ga("0x74")].document[ga("0x7f")]((()=>{let e=!1;const r=Array[ga("0x52")](t[ga("0x74")].document[ga("0x8b")][ga("0x89")]());for(const{name:i,data:o}of r){const{group:r,type:s,id:x}=n._splitMarkerName(i);if(ga("0x8c")!=r||"deletion"!=s||o.oldRange)continue;if(!n[ga("0x43")](x))continue;const a=n.getSuggestion(x)[ga("0x1d")](),c=t.plugins[ga("0x88")](ga("0x4a")).me;for(const t of n[ga("0x7d")]())if(t[ga("0x97")]&&t[ga("0x16")]==c&&ga("0x62")==t[ga("0x8")]&&ga("0x21")==t[ga("0x24")]&&t[ga("0x1d")]()[ga("0x32")]((t=>a.some((e=>e[ga("0x96")](t,!0))))))for(const n of t[ga("0x28")]())n[ga("0x97")]&&(n[ga("0x6c")](),e=!0)}return e})),t.model[ga("0x71")][ga("0x7f")]((e=>{const r=t.commands[ga("0x88")](ga("0x60"));if(!r||!r[ga("0x8a")][ga("0x9b")](e[ga("0x3e")]))return!1;let i=!1;const o=t[ga("0x82")][ga("0x88")](ga("0x4a")).me,s=t.model[ga("0x71")].differ[ga("0xf")](),x=Array[ga("0x52")](t[ga("0x74")][ga("0x71")][ga("0x8b")][ga("0x89")]())[ga("0x23")]((({name:t,data:e})=>{const{group:r,subType:i,authorId:s}=n[ga("0x14")](t);return ga("0x8c")==r&&ga("0x1b")==i&&s==o.id&&!e[ga("0x30")]}));for(const t of s){if(ga("0x77")!=t[ga("0x8")]||ga("0x58")!=t[ga("0x46")]||1!=t.length)continue;const n=e.createRange(t.position,t[ga("0x49")][ga("0x90")](1));if(!x.find((({data:t})=>t[ga("0x81")][ga("0x5f")](n))))for(const{name:t,data:r}of x)if(n[ga("0x96")](r[ga("0x81")])){e.updateMarker(t,{range:n}),i=!0;break}}return i})),t[ga("0x74")][ga("0x71")][ga("0x7f")]((e=>{let r=!1;const i=t.plugins[ga("0x88")](ga("0x4a")).me,o=n[ga("0x7d")]()[ga("0x23")]((t=>t.isInContent&&t[ga("0x16")]==i)),s=new Set,x=new Set;for(const t of o)if("tablePaste"==t[ga("0x24")])for(const e of t[ga("0x17")]()){const n=e[ga("0x9e")]()[ga("0xe")]();if(n)if(n.is(ga("0x3a"),ga("0x58"))&&pa(n)){t[ga("0x70")](e[ga("0x46")]),s[ga("0x44")](n),r=!0;const i=n[ga("0x4c")],o=n[ga("0x61")],a=i&&i.is(ga("0x3a"),ga("0x58")),c=o&&o.is(ga("0x3a"),ga("0x58"));a&&!s.has(i)&&x.add(i),c&&!s[ga("0x9b")](o)&&x[ga("0x44")](o)}else n.is(ga("0x3a"),ga("0x5e"))&&n[ga("0x86")]&&(t[ga("0x70")](e[ga("0x46")]),r=!0)}else if(ga("0x21")==t[ga("0x24")]){if(!t[ga("0xa2")]||!t[ga("0xa2")].tablePasteChainId)continue;const e=t.attributes.markerAttributes;if(e&&Object[ga("0x27")](e)[ga("0x9")])continue;const n=t[ga("0xa2")].tablePasteChainId;let i=!0,s=!0;for(const e of o)if(e[ga("0x24")]&&e.subType.startsWith(ga("0x1b"))){if(!e[ga("0xa2")][ga("0x45")]){s=!1;break}if(e.id!=t.id&&e[ga("0xa2")][ga("0x45")]==n){i=!1;break}}s&&i&&(t[ga("0xb")](),r=!0)}for(const t of s)e[ga("0x3d")](t);for(const t of x)e[ga("0x67")](t);return r})),t[ga("0x75")][ga("0x84")]("editingDowncast").markerToHighlight({model:ga("0x72"),view:(t,e)=>l(t),converterPriority:"high"}),t[ga("0x75")].for("dataDowncast")[ga("0x69")]({model:ga("0x72"),view:(t,e)=>e[ga("0x6")][ga("0x2c")]?l(t,!1):null,converterPriority:"high"});const u=t[ga("0x3")][ga("0x42")];this.listenTo(u[ga("0x71")],ga("0x6b"),((t,e)=>{const n=[];for(const t of u[ga("0x11")](e[ga("0x13")])[ga("0x15")]())t.is(ga("0x3a"),ga("0x1a"))&&n[ga("0x47")](t);u[ga("0x50")]((t=>{for(const e of n)t[ga("0x6a")](t[ga("0x11")](e),t[ga("0x93")](e)),t[ga("0x3d")](e)}))}))}}function pa(t){if(t[ga("0x86")])return!0;const e=t[ga("0x1f")](0);return e.is(ga("0x3a"),ga("0x5e"))&&e[ga("0x86")]}function ba(t,e={},n){for(const{isAnchor:r,cellHeight:i,cellWidth:o}of n.createTableWalker(t,{includeAllSlots:!0,...e}))if(!r||1!=i||1!=o)return!1;return!0}const Ea=["bind","TableColumnResizeEditing","get","change","selection","TrackChangesEditing","table","commandParams","columnWidths","formatGroupId","markBlockFormat","getSelectedElement","plugins","subType","Users","type","format","handleResizeTableWidthCommand","formatBlock","data","locale","_descriptionFactory","getAttribute","model","_suggestionFactory","document","*Format:* resize table","editor","tableWidth","registerCustomCallback","getSuggestions","getSuggestionCallback","resizeTable","handleSuggestionDescription","discard"];var _a,Ta;_a=Ea,Ta=289,function(t){for(;--t;)_a.push(_a.shift())}(++Ta);const ya=function(t,e){return Ea[t-=0]};class Ca extends t.Plugin{afterInit(){if(!this[ya("0x12")].plugins.has("TableColumnResizeEditing"))return;const t=this[ya("0x12")][ya("0x3")].get(ya("0x1f"));t.enableCommand("resizeTableWidth",this[ya("0x8")][ya("0x1a")](this)),t[ya("0xf")].registerCustomCallback(ya("0x9"),"resizeTable","accept",t[ya("0xf")][ya("0x16")](ya("0x9"),null,ya("0x19"))),t._suggestionFactory[ya("0x14")](ya("0x9"),ya("0x17"),ya("0x19"),t[ya("0xf")][ya("0x16")](ya("0x9"),null,"accept")),t[ya("0xc")].registerDescriptionCallback(this[ya("0x18")][ya("0x1a")](this))}handleResizeTableWidthCommand(t,e){const n=this[ya("0x12")][ya("0x3")][ya("0x1c")]("TrackChangesEditing"),r=this[ya("0x12")][ya("0x3")].get(ya("0x1b")),i=e[ya("0x20")]||this[ya("0x12")][ya("0xe")][ya("0x10")][ya("0x1e")][ya("0x2")]();this[ya("0x12")].model[ya("0x1d")]((()=>{const o=r.getColumnGroupElement(i);let s=o?r.getTableColumnsWidths(o):null,x=i[ya("0xd")]("tableWidth")||null;const a=e[ya("0x13")]||x,c=e.columnWidths||s,l=this.editor.plugins.get(ya("0x5")).me;for(const t of n[ya("0x15")]()){const e=t.getContainedElement();if("resizeTable"===t[ya("0x4")]&&e===i){t.author!==l&&t.discard();const e=t[ya("0xa")][ya("0x21")];x=e[0][ya("0x13")],s=e[0][ya("0x22")];break}}t({table:i,tableWidth:a,columnWidths:c}),n[ya("0x1")](i,{commandName:"resizeTableWidth",commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:ya("0x17")},[],ya("0x17"))}))}[ya("0x18")](t){if(ya("0x9")!=t.type&&"formatInline"!=t[ya("0x6")])return;const{data:e}=t;if(e&&ya("0x17")===e[ya("0x0")]){const t=ya("0x11");return{type:ya("0x7"),content:Jr(this[ya("0x12")][ya("0xb")],t)}}}}const Aa=["TrackChangesEditing","Template","insertTemplate","has","plugins","editor","get","afterInit"];var ka,Ia;ka=Aa,Ia=184,function(t){for(;--t;)ka.push(ka.shift())}(++Ia);const Ra=function(t,e){return Aa[t-=0]};class Sa extends t.Plugin{[Ra("0x7")](){const t=this[Ra("0x5")];t.plugins[Ra("0x3")](Ra("0x1"))&&t[Ra("0x4")][Ra("0x6")](Ra("0x0")).enableCommand(Ra("0x2"))}}const va=["locale","editor","_descriptionFactory","plugins","ELEMENT_TABLE_OF_CONTENTS","tableOfContents","TrackChangesEditing","enableCommand","insertTableOfContents","get","afterInit","commands"];var La,Na;La=va,Na=140,function(t){for(;--t;)La.push(La.shift())}(++Na);const Ma=function(t,e){return va[t-=0]};class wa extends t.Plugin{[Ma("0x2")](){const t=this[Ma("0x5")];if(!t[Ma("0x3")][Ma("0x1")]("insertTableOfContents"))return;t[Ma("0x7")][Ma("0x1")](Ma("0xa"))[Ma("0xb")](Ma("0x0"));const e=t[Ma("0x7")][Ma("0x1")](Ma("0xa")),n=t[Ma("0x4")];e[Ma("0x6")].registerElementLabel(Ma("0x9"),(t=>Jr(n,Ma("0x8"),t)))}}const Oa=["_splitMarkerName","differ","TrackChangesEditing","registerElementLabel","newRange","document","start","updateMarker","plugins","createRange","model","afterInit","forward","title-content","isEqual","end","editor","isTouching","registerPostFixer","removeMarker","element","ELEMENT_TITLE","isCollapsed","get","has","Title"];var Fa,Da;Fa=Oa,Da=131,function(t){for(;--t;)Fa.push(Fa.shift())}(++Da);const Pa=function(t,e){return Oa[t-=0]};class Ba extends t.Plugin{[Pa("0xa")](){const t=this[Pa("0xf")];if(!t[Pa("0x7")][Pa("0x17")](Pa("0x18")))return;const e=t.plugins[Pa("0x16")](Pa("0x1"));e._descriptionFactory[Pa("0x2")](Pa("0xc"),(()=>Jr(t.locale,Pa("0x14")))),t.model[Pa("0x4")][Pa("0x11")]((n=>{let r=!1;const i=Array.from(t[Pa("0x9")][Pa("0x4")][Pa("0x0")].getChangedMarkers());for(const{name:o,data:s}of i){const{group:i}=e[Pa("0x19")](o);if("suggestion"!==i||!s[Pa("0x3")])continue;const x=s.newRange,a=x[Pa("0xe")].nodeBefore;if(!a||!a.is(Pa("0x13"),Pa("0xc")))continue;if(!x[Pa("0x5")][Pa("0x10")](x[Pa("0xe")]))continue;const c=t[Pa("0x9")].schema.getNearestSelectionRange(x[Pa("0xe")],Pa("0xb"));if(c&&c[Pa("0x15")]){const t=n[Pa("0x8")](x[Pa("0x5")],c[Pa("0x5")]);t[Pa("0xd")](x)||(n[Pa("0x6")](o,{range:t}),r=!0)}r||(n[Pa("0x12")](o),r=!0)}return r}))}}const Ua=["redo","enableCommand","UndoEditing","has","undo","get","TrackChangesEditing","plugins"];var ja,Ga;ja=Ua,Ga=322,function(t){for(;--t;)ja.push(ja.shift())}(++Ga);const Va=function(t,e){return Ua[t-=0]};class Ha extends t.Plugin{afterInit(){const t=this.editor,e=t[Va("0x5")][Va("0x3")](Va("0x4"));t.plugins[Va("0x1")](Va("0x0"))&&(e[Va("0x7")](Va("0x2")),e[Va("0x7")](Va("0x6")))}}const za=["toggleTableCaption","enableCommand","plugins","afterInit","has","editor","get"];var Wa,Ka;Wa=za,Ka=270,function(t){for(;--t;)Wa.push(Wa.shift())}(++Ka);const qa=function(t,e){return za[t-=0]};class Xa extends t.Plugin{static get requires(){return[Jx]}[qa("0x6")](){const t=this[qa("0x1")];t[qa("0x5")][qa("0x0")]("TableCaptionEditing")&&t.plugins[qa("0x2")]("TrackChangesEditing")[qa("0x4")](qa("0x3"))}}const $a=["tableWidth","tableCellBorderColor","subType","has","_getSuggestion","format","document","handleSuggestionDescription","formatBlock","pluginName","tableCellBorderWidth","tableCellWidth","batch","tableCellBorderStyle","accept","selection","plugins","tableHeight","tableBorderColor","TableUtils","TableCellPropertiesEditing","data","tableCellBackgroundColor","enableCommand","TrackChangesEditing","findAncestor","locale","get","tableBorderStyle","tableBorderWidth","model","commandParams","table","discard","join","handleDiscardAction","tableCellProperties","getSelectionAffectedTableCells","TablePropertiesEditing","registerDescriptionCallback","*Format:* change table properties","tableCellHeight","change","getSuggestions","getSuggestionCallback","tableProperties","setAttribute","getFirstPosition","tableCellPadding","_descriptionFactory","tableCellVerticalAlignment","tableCellHorizontalAlignment","editor","_handlePropertyChange","registerCustomCallback","_suggestionFactory","removeAttribute","afterInit","nodeAfter"];var Za,Ya;Za=$a,Ya=232,function(t){for(;--t;)Za.push(Za.shift())}(++Ya);const Ja=function(t,e){return $a[t-=0]};class Qa extends t.Plugin{constructor(t){super(t),this[Ja("0x31")]=[Ja("0x16"),Ja("0x20"),Ja("0x21"),"tableAlignment",Ja("0x4"),Ja("0x15"),"tableBackgroundColor"],this[Ja("0x28")]=[Ja("0x5"),Ja("0x11"),Ja("0xe"),Ja("0x34"),Ja("0xf"),Ja("0x2d"),Ja("0x1a"),Ja("0x37"),Ja("0x36")]}static get[Ja("0xd")](){return"TrackChangesTableProperties"}[Ja("0x2")](){const t=this[Ja("0x38")][Ja("0x14")].get("TrackChangesEditing");if(this[Ja("0x38")].plugins[Ja("0x7")](Ja("0x2a"))){for(const e of this[Ja("0x31")])t[Ja("0x1b")](e,((t,n)=>{const r=this.editor.model.document[Ja("0x13")][Ja("0x33")]()[Ja("0x1d")](Ja("0x24"));this._handlePropertyChange(e,[r],this[Ja("0x31")],Ja("0x31"),t,n)}));t[Ja("0x0")][Ja("0x3a")](Ja("0xc"),Ja("0x31"),Ja("0x12"),t._suggestionFactory[Ja("0x30")](Ja("0xc"),null,Ja("0x25"))),t[Ja("0x0")][Ja("0x3a")]("formatBlock",Ja("0x31"),"discard",((t,e)=>this[Ja("0x27")](this[Ja("0x31")],t,e))),t._suggestionFactory.registerCustomCallback(Ja("0xc"),Ja("0x31"),Ja("0x26"),(()=>!1))}if(this[Ja("0x38")].plugins[Ja("0x7")](Ja("0x18"))){for(const e of this.tableCellProperties)t[Ja("0x1b")](e,((t,n)=>{const r=this[Ja("0x38")].plugins[Ja("0x1f")](Ja("0x17"))[Ja("0x29")](this[Ja("0x38")][Ja("0x22")][Ja("0xa")][Ja("0x13")]);this[Ja("0x39")](e,r,this[Ja("0x28")],Ja("0x28"),t,n)}));t[Ja("0x0")][Ja("0x3a")](Ja("0xc"),"tableCellProperties",Ja("0x12"),t[Ja("0x0")].getSuggestionCallback(Ja("0xc"),null,"discard")),t[Ja("0x0")][Ja("0x3a")](Ja("0xc"),Ja("0x28"),Ja("0x25"),((t,e)=>this[Ja("0x27")](this[Ja("0x28")],t,e))),t[Ja("0x0")][Ja("0x3a")]("formatBlock",Ja("0x28"),Ja("0x26"),(()=>!1))}t[Ja("0x35")][Ja("0x2b")]((t=>this[Ja("0xb")](t)))}_handlePropertyChange(t,e,n,r,i,o){const s=this[Ja("0x38")][Ja("0x14")][Ja("0x1f")](Ja("0x1c"));this[Ja("0x38")][Ja("0x22")].enqueueChange(o[Ja("0x10")],(()=>{for(const t of e)if(this._getSuggestion(t,r))i(o);else{const e={};for(const r of n){const n=t.getAttribute(r);void 0!==n&&(e[r]=n)}i(o),s.markBlockFormat(t,{commandParams:[e]},[],r)}}))}handleDiscardAction(t,e,n){const r=e[0].start[Ja("0x3")],i=n[Ja("0x23")][0];this[Ja("0x38")][Ja("0x22")][Ja("0x2e")]((e=>{for(const n of t)void 0!==i[n]?e[Ja("0x32")](n,i[n],r):e[Ja("0x1")](n,r)}))}[Ja("0xb")](t){if(t[Ja("0x19")])switch(t.subType){case Ja("0x31"):return{type:Ja("0x9"),content:Jr(this.editor[Ja("0x1e")],Ja("0x2c"))};case"tableCellProperties":return{type:"format",content:Jr(this[Ja("0x38")].locale,"*Format:* change table cell properties")}}}[Ja("0x8")](t,e){const n=this.editor.plugins[Ja("0x1f")](Ja("0x1c"));for(const r of n[Ja("0x2f")]({skipNotAttached:!0})){const n=r.getContainedElement();if(r[Ja("0x6")]===e&&n===t)return r}return null}}var tc=Function.prototype,ec=Object.prototype,nc=tc.toString,rc=ec.hasOwnProperty,ic=nc.call(Object);const oc=function(t){if(!xe(t)||"[object Object]"!=gt(t))return!1;var e=xn(t);if(null===e)return!0;var n=rc.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&nc.call(n)==ic};const sc=function(t){return oc(t)?void 0:t};var xc=it?it.isConcatSpreadable:void 0;const ac=function(t){return ge(t)||de(t)||!!(xc&&t&&t[xc])};const cc=function t(e,n,r,i,o){var s=-1,x=e.length;for(r||(r=ac),o||(o=[]);++s<x;){var a=e[s];n>0&&r(a)?n>1?t(a,n-1,r,i,o):sn(o,a):i||(o[o.length]=a)}return o};const lc=function(t){return(null==t?0:t.length)?cc(t,1):[]};const uc=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)};var dc=Math.max;const gc=function(t,e,n){return e=dc(void 0===e?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=dc(r.length-e,0),s=Array(o);++i<o;)s[i]=r[e+i];i=-1;for(var x=Array(e+1);++i<e;)x[i]=r[i];return x[e]=n(s),uc(t,this,x)}};const fc=function(t){return function(){return t}};const hc=ee?function(t,e){return ee(t,"toString",{configurable:!0,enumerable:!1,value:fc(e),writable:!0})}:function(t){return t};var mc=Date.now;const pc=function(t){var e=0,n=0;return function(){var r=mc(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(hc);const bc=function(t){return pc(gc(t,void 0,lc),t+"")}((function(t,e){var n={};if(null==t)return n;var r=!1;e=ur(e,(function(e){return e=mr(e,t),r||(r=e.length>1),e})),oe(t,dn(t),n),r&&(n=tr(n,7,sc));for(var i=e.length;i--;)Wr(n,e[i]);return n})),Ec=["targetPosition","getFirstRange","_suggestions","getFirstMarker","trackChanges","track-changes-enable-command-twice","elementToElement","_saved","markInlineFormat","_joinSuggestions","join","stop","formatBlock:","reconvertMarker","key","elementStart","startsWith","_initAriaMarkerChangeAnnouncements","createElement","commentThread","rejected","tablePasteChainId","change:_saved","_refreshAttributeSuggestionsChain","registerPostFixer","suggestionChanged","isRemovable","plugins","_recordAttributeSuggestions","getSuggestion","_trackFormatChanges","_enabledCommands","ck-suggestion-marker--active","for","commands","_setSuggestionData","getAncestors","unshift","enqueueChange","formatBlock:discard","editor","multipleBlocks","differ","delete","ENTER","format","nodeAfter","ck-suggestion-marker","_reduceExistingSuggestions","from","execute","_findSuggestions","_SUGGESTION_ANNOUNCEMENT","attribute:join","insertion:","removeMarker:suggestion:attribute","suggestion","createdAt","track-changes-suggestion-not-found","pluginName","return","value","ck-suggestion-marker-","track-changes-adapter-missing-getsuggestion","isSelectable","getSuggestions","attribute","marker-count","getAllAdjacentSuggestions","getIntersection","backward","newRange","head","isBlock","has","addHighlight","FORMATTING","markers","discardAllSuggestions","trackChanges.mergeNestedSuggestions","LEAVE","values","acceptSelectedSuggestions","insertion:discard","data","markerToHighlight","getUser","PENDING_ACTION_SUGGESTION","splice","_recordAttributeChanges","getChanges","originalSuggestionId","error-saving-suggestion-data-suggestion-discarded","unbind","comments","after","isIntersectingWithRange","createRangeIn","markAttributeChange","$marker","$graveyard","addSuggestion","setTo","item","_registerInlineAttribute","refresh","data-suggestion","getWalker","_blockAttributeKeys","toViewElement","size","clone","isCollapsed","suggestion:","never","rename","_splitMarkerName","_addThreadToSuggestion","enableReadOnlyMode","attribute:accept","isUndo","_customCallbacks","root","lowest","isBefore","substr","before","listenTo","then","_removeSuggestion","always","_afterChanges","_isDataLoaded","_processAttributeSuggestions","fire","_enableDefaultAttributesIntegration","announce","_isBlockAttribute","warn","high","length","getRanges","_inlineAttributeKeys","_createSuggestion","locale","groupId","rootName","set","updateSuggestion","addMarkerName","getDifference","markMultiRangeDeletion","_registerBlockAttribute","_reduceSuggestionAttributeRange","creator","writer","update:suggestion","createSelection","removeMarkers","updateMarker","discardSuggestion","isAtEnd","_model","containerElement","isLimit","getShiftedBy","group","isIntersecting","isMultiRange","stopListening","formatInline:","multi","newValue","removeMarker:suggestion:formatBlock","markMultiRangeInsertion","isAfter","addUser","remove","detach","markMultiRangeBlockFormat","ck-suggestion-marker-formatInline","consumable","deletion:","isEqual","accepted","map","trackChanges.trackFormatChanges","notReady","formatBlock","attributeNewValue","buildSuggestion","_defaultCallbacks","dataDowncast","options","editing","hasComments","insertion:chain","track-changes-suggestion-data-mismatch","low","mapper","attributeKey","batch","createRange","showSuggestionHighlights","applyOperation","containsRangeInObject","getSuggestionCallback","TrackChangesEditing","_checkSuggestionCorrectness","subType","consume","_suggestionState","accept","activeMarkers","every","deletion","requires","forceDefaultExecution","dataReady","Creating a suggestion for attribute with too long attribute key. This may lead to errors. Change the attribute key to a value shorter than 37 characters.","end","isDocumentOperation","editingDowncast","removeMarker","fromCharCode","normal","formatInline:accept","getItems","ck-suggestion-marker-formatBlock","unbindElementFromMarkerName","_getExternalAuthor","formatInline:join","getLastMatchingPosition","position","toUpperCase","isObject","oldRange","ariaLiveAnnouncer","removeComment","find","clear","split","CommentsRepository","@external","insertion:join","removeClass","discardSelectedSuggestions","concat","catch","addRange","createRangeOn","toJSON","addClass","markerNameToElements","_suggestionFactory","hasSuggestion","chain","_adapter","meta","change:activeMarkers","_descriptionFactory","createPositionBefore","conversion","removeAttribute","markInsertion","removed","isTouching","containsRange","deletion:accept","author","track-changes-user-not-found","createPositionAt","isOwn","deletion:discard","external:","commandName","formatInline","formatInline:discard","acceptSuggestion","skipNestingCheck","_cutOutSuggestionMarker","formatBlock:chain","track-changes-adapter-already-set","start","getAttribute","track-changes-command-not-found","getRange","previous","push","discard","isExternal","type","adapter","createPositionAfter","markBlockFormat","insertContent","insertion","keys","getChangedMarkers","setSelection","element","elementEnd","Users","_getMarkerAnnouncementText","enableCommand","isLocal","howMany","forward","isNextTo","_isForcedDefaultExecutionBlock","splitPosition","_editor","isInsideObject","next","oldValue","markerName","parent","forEach","attributes","documentSelection","suggestion:attribute:","insert","filter","isInContent","_refreshSuggestionsChain","resolve","$elementName","getMultiRangeId","_commentsRepository","includes","define","containsPosition","nodeBefore","get","range","schema","_processAttributeChanges","markerReady","_getAttributeKey","add","getCustomProperty","document","hasCommentThread","setAttribute","markDeletion","name","config","_setSuggestionRange","_getAuthorFromId","$textProxy","authoredAt","rethrowUnexpectedError","$text","_registerDefaultCallbacks","some","deleteContent","default","move","change","fetchCommentThread","trackChangesCommand","collaboration.channelId","formatBlock:join","_onDiscard","_addSuggestionMarker","_rangeIsInLocalUserInsertion","getNearestSelectionRange","assign","suggestionUnloaded","_getSuggestionData","sort","suggestion-type","formatGroupId","_joinWithAdjacentSuggestions","upcast","suggestionLoaded","_updateSuggestionData","addMarker:suggestion:formatBlock","_handleNewSuggestionMarker","attributeOldValue","_isRegisteredAttribute","_breakSuggestionMarker","model","ready","_mergeNestedSuggestions","PendingActions","_element","addSuggestionData","change:data"];var _c,Tc;_c=Ec,Tc=499,function(t){for(;--t;)_c.push(_c.shift())}(++Tc);const yc=function(t,e){return Ec[t-=0]},Cc="$elementName";class Ac extends t.Plugin{static get[yc("0x6a")](){return[yc("0x84"),o.Users,t.PendingActions,ai,gi,Ei,Ai,Fi,Li,ji,Ki,io,Ao,vo,Fo,jo,Ko,Yo,ns,xs,ds,ys,ps,Rs,Ms,Ps,qs,tx,Vs,co,mo,ox,lx,hx,_x,Ix,Nx,Dx,Vx,qx,Jx,ia,ca,Xa,ma,Ca,wa,Qa,Sa,Ba,Ha]}static get[yc("0x152")](){return yc("0x61")}constructor(t){function e(t){return t[yc("0x4b")]((t=>String[yc("0x72")](t)))[yc("0x121")]("")}super(t),this._recordAttributeSuggestions=!1,this.set(yc("0x67"),[]),this.on(yc("0x95"),((e,n,r,i)=>{this[yc("0x34")][yc("0xf8")]((()=>{for(const e of[...i,...r])this._model[yc("0x164")][yc("0x161")](e)&&t[yc("0x54")][yc("0x124")](e)}))})),this[yc("0x96")]=new ri(this[yc("0x13f")][yc("0x110")].schema,this[yc("0x13f")][yc("0x22")]),this[yc("0x93")]=null,this[yc("0x90")]=new kc(this.editor),this[yc("0x119")]=new Map,this[yc("0xda")]=t[yc("0x132")][yc("0xdf")](yc("0x84")),this[yc("0x136")]=new Set,this[yc("0x34")]=this[yc("0x13f")][yc("0x110")],this[yc("0x65")]=new WeakMap,this[yc("0xc7")]=!1,this[yc("0x183")]=new Set([yc("0xd8")]),this[yc("0x20")]=new Set,t[yc("0xec")][yc("0xdc")](yc("0x4c"),"default"),this[yc("0x135")]=t[yc("0xec")][yc("0xdf")]("trackChanges.trackFormatChanges"),t.config.define(yc("0x166"),!0),this[yc("0x112")]=t[yc("0xec")].get(yc("0x166")),this.trackChangesCommand=new d(t,this[yc("0x136")]),this._initAriaMarkerChangeAnnouncements(),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,56,48,52,48,56])}init(){const t=this[yc("0x13f")],n=(t,e)=>{if("attribute"!=t)return yc("0x155")+t;const n=e[yc("0x83")]("|")[0];return this[yc("0x1b")](n)?yc("0x76"):yc("0x46")};t[yc("0x98")][yc("0x138")](yc("0x70"))[yc("0x16c")]({model:yc("0x14f"),view:t=>{const{id:e,type:r,subType:i}=this._splitMarkerName(t[yc("0xcd")]),o=["ck-suggestion-marker",n(r,i)];let s=3e3;return this.activeMarkers[yc("0xdb")](t[yc("0xcd")])&&(o.push(yc("0x137")),s=3010),yc("0x69")==r&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t.conversion[yc("0x138")](yc("0x52"))[yc("0xe5")]((e=>{e.on("addMarker:suggestion",((e,n,r)=>{if(!r[yc("0x53")].showSuggestionHighlights)return;const i=n[yc("0x17e")];if(!i)return;const o=r[yc("0x59")][yc("0x184")](i);t[yc("0x110")][yc("0xe1")].isObject(i)&&o&&!o.getCustomProperty("widget")&&o.is(yc("0x35"))&&(0,x.toWidget)(o,r.writer)}),{priority:yc("0x1d")})})),t[yc("0x98")].for("dataDowncast")[yc("0x16c")]({model:"suggestion",view:(t,e)=>{if(!e[yc("0x53")][yc("0x5d")])return null;const{type:r,subType:i}=this[yc("0x6")](t[yc("0xcd")]);return{classes:["ck-suggestion-marker",n(r,i)],priority:3e3}}});const r=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(r,i,o)=>{if(!i.item)return;const{id:s}=this[yc("0x6")](i[yc("0xcd")]);if(n){const t=this[yc("0x119")][yc("0xdf")](s),e=this[yc("0xe4")](t);if(!this[yc("0x1b")](e))return}if(i.item.is("selection"))return void o[yc("0x47")][yc("0x64")](i[yc("0x17e")],r[yc("0xeb")]);const x=o[yc("0x59")][yc("0x184")](i[yc("0x17e")]);if(i[yc("0x17e")].is(yc("0xbe"))&&t[yc("0x110")].schema[yc("0x160")](i.item)&&!x[yc("0xe6")](yc("0x162"))){o[yc("0x2d")].addClass([yc("0x146"),"ck-suggestion-marker-formatBlock"],x),o.writer[yc("0xe9")]("data-suggestion",s,x),o[yc("0x59")].bindElementToMarker(x,i[yc("0xcd")]),e&&(this.activeMarkers.includes(i[yc("0xcd")])?o.writer[yc("0x8e")](yc("0x137"),x):o[yc("0x2d")][yc("0x87")](yc("0x137"),x));for(const e of t[yc("0x110")][yc("0x178")](i[yc("0x17e")])[yc("0x75")]())o[yc("0x47")][yc("0x64")](e,r[yc("0xeb")]);o.consumable.consume(i.item,r[yc("0xeb")])}};t[yc("0x98")][yc("0x138")](yc("0x52"))[yc("0xe5")]((t=>{t.on(yc("0x10b"),((t,e,n)=>{n[yc("0x53")].showSuggestionHighlights&&r({showActiveMarkers:!1})(t,e,n)}),{priority:"highest"})})),t[yc("0x98")][yc("0x138")](yc("0x52"))[yc("0xe5")]((t=>{t.on("addMarker:suggestion:attribute",((t,e,n)=>{n[yc("0x53")].showSuggestionHighlights&&r({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:"highest"})})),t[yc("0x98")][yc("0x138")]("dataDowncast").markerToData({model:yc("0x14f"),view:(t,e)=>e[yc("0x53")][yc("0x5d")]?null:{group:yc("0x14f"),name:t[yc("0xf")](11)}}),t[yc("0x98")][yc("0x138")]("upcast")[yc("0x11d")]({view:{name:yc("0x14f"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=yc("0x3")+t[yc("0xae")](yc("0x105"))+":"+t[yc("0xae")]("id");return t[yc("0xae")](yc("0x15a"))&&(n+=":"+t[yc("0xae")]("marker-count")),e[yc("0x129")](yc("0x17a"),{"data-name":n})}}),t[yc("0x98")][yc("0x138")](yc("0x108")).dataToMarker({view:yc("0x14f")}),t.conversion[yc("0x138")](yc("0x70"))[yc("0xe5")]((t=>{t.on(yc("0x10b"),r(),{priority:yc("0x1d")})})),t.conversion[yc("0x138")]("editingDowncast")[yc("0xe5")]((t=>{t.on("addMarker:suggestion:attribute",r({isAttributeSuggestion:!0}),{priority:"high"})})),t[yc("0x98")].for(yc("0x70")).add((t=>{t.on(yc("0x3f"),((t,e,n)=>{const r=n.mapper.markerNameToElements(e[yc("0xcd")]);if(r)for(const t of r)t[yc("0xe6")](yc("0x162"))||(n[yc("0x2d")][yc("0x87")]([yc("0x146"),yc("0x76"),"ck-suggestion-marker--active"],t),n[yc("0x2d")][yc("0x99")](yc("0x181"),t),n[yc("0x59")][yc("0x77")](t,e[yc("0xcd")]))}),{priority:yc("0x1d")})})),t[yc("0x98")][yc("0x138")](yc("0x70"))[yc("0xe5")]((t=>{t.on(yc("0x14e"),((t,e,n)=>{const r=n[yc("0x59")][yc("0x8f")](e[yc("0xcd")]);if(!r)return;const{id:i}=this[yc("0x6")](e.markerName),o=this._suggestions[yc("0xdf")](i),s=this[yc("0xe4")](o);if(this._isBlockAttribute(s))for(const t of r)t[yc("0xe6")](yc("0x162"))||(n.writer[yc("0x87")]([yc("0x146"),"ck-suggestion-marker-formatBlock",yc("0x137")],t),n[yc("0x2d")][yc("0x99")]("data-suggestion",t),n[yc("0x59")][yc("0x77")](t,e[yc("0xcd")]))}),{priority:yc("0x1d")})})),t[yc("0x110")][yc("0xe7")][yc("0x12f")]((e=>{let n=!1;const r=Array[yc("0x148")](t[yc("0x110")].document[yc("0x141")][yc("0xbc")]()),i=new Set;for(const{name:x,data:a}of r){const{group:r,type:c,subType:l,id:u}=this._splitMarkerName(x);if(yc("0x14f")!==r)continue;const d=this[yc("0x119")][yc("0xdf")](u);if(null!=a[yc("0x15e")]){yc("0xa6")==c&&(n=n||Sc(a[yc("0x15e")],x,e,t[yc("0x110")][yc("0xe1")]));const r=yc("0x159")==c&&this[yc("0x1b")](l[yc("0x83")]("|")[0]);if(a.newRange[yc("0x2")]||yc("0x17b")==a[yc("0x15e")][yc("0xc")][yc("0x24")]||"formatBlock"==c&&!Lc(a[yc("0x15e")])||r&&!Lc(a.newRange)||yc("0x69")==c&&(Rc(s=a[yc("0x15e")])||(o=s)[yc("0xad")][yc("0xce")]==o[yc("0x6e")][yc("0xde")]&&o.start.isAtEnd))e.removeMarker(x),n=!0;else{if(!d||!d.isInContent)continue;i[yc("0xe5")](d)}}}var o,s;return i[yc("0x0")]>0&&(n=!!this._joinWithAdjacentSuggestions(i)||n),n})),t.model[yc("0xe7")].registerPostFixer((e=>{let n=!1;for(const r of t[yc("0x110")][yc("0xe7")][yc("0x141")][yc("0x171")]())if(yc("0xd3")==r[yc("0xb5")])for(const r of this[yc("0x119")][yc("0x168")]()){if(r[yc("0x3a")]||!r[yc("0xd5")])continue;const i=yc("0x4e")==r.type,o=this[yc("0xe4")](r),s=o&&this[yc("0x1b")](o);if(!i&&!s)continue;const x=r.getFirstRange();if(x.start[yc("0xce")]!=x[yc("0x6e")][yc("0xce")]&&!x[yc("0x6e")][yc("0x33")]){const i=t.model[yc("0xa1")](x.start[yc("0x145")],yc("0x6e")),o=t[yc("0x110")][yc("0x5c")](x.start,i);e[yc("0x31")](r[yc("0x11a")](),{range:o}),n=!0}}return n})),t[yc("0x110")][yc("0xe7")][yc("0x12f")]((t=>this[yc("0xe2")](t))),t[yc("0x110")].document[yc("0x12f")]((t=>!t[yc("0x5b")][yc("0xc3")]&&this[yc("0x17")](t))),t[yc("0x110")].on(yc("0x15"),(()=>{this._recordAttributeSuggestions=!1})),t[yc("0x110")][yc("0xe7")].on(yc("0x116"),((n,r)=>{if(!r[yc("0xc3")]||r[yc("0xa")])return;if(!this[yc("0x133")])return;const i=t.model.document.differ[yc("0x171")]();if(0==i[yc("0x1e")])return;const o=[],s=i[yc("0xd4")]((t=>yc("0x159")==t[yc("0xb5")])),x=i[yc("0xd4")]((t=>"insert"==t.type&&yc("0xf2")!=t.name)),a=i.filter((t=>"remove"==t[yc("0xb5")]&&yc("0xf2")!=t[yc("0xeb")]));for(const e of s)this._isRegisteredAttribute(e[yc("0x5a")])&&o[yc("0xb2")]({key:e[yc("0x5a")],newValue:e[yc("0x4f")],oldValue:e[yc("0x10d")],range:Nc(e.range,t.model)});for(const e of x){const n=a[yc("0x81")]((t=>t._element===e[yc("0x114")]));if(n){const r=Mc(e[yc("0x7b")].nodeAfter,t[yc("0x110")]);n[yc("0xeb")]!==e[yc("0xeb")]&&o[yc("0xb2")]({key:yc("0xd8"),newValue:e[yc("0xeb")],oldValue:n[yc("0xeb")],range:r});for(const[t,i]of n[yc("0xd0")]){if(!this[yc("0x10e")](t))continue;const n=e.attributes[yc("0xdf")](t);i!==n&&o[yc("0xb2")]({key:t,newValue:n,oldValue:i,range:r})}for(const[t,i]of e[yc("0xd0")])this[yc("0x10e")](t)&&(n[yc("0xd0")].has(t)||o.push({key:t,newValue:i,oldValue:null,range:r}))}}0!=o.length&&t[yc("0x110")].enqueueChange(r,(t=>{const n=(0,e.uid)();for(const{range:t,key:e,oldValue:r,newValue:i}of o)this[yc("0x179")](t,e,r,i,{groupId:n});this[yc("0x147")](t,o)}))}),{priority:yc("0xd")}),t[yc("0x110")].markers.on(yc("0x2e"),((t,e,n)=>{if(null==n){const{id:t}=this[yc("0x6")](e.name),n=this[yc("0x119")][yc("0xdf")](t);n&&n[yc("0x27")](e[yc("0xeb")])}})),t[yc("0x110")].document.on(yc("0x116"),(()=>{const e=Array[yc("0x148")](t[yc("0x110")][yc("0xe7")][yc("0x141")][yc("0xbc")]()).filter((t=>yc("0x14f")===this[yc("0x6")](t[yc("0xeb")])[yc("0x38")]));if(0===e[yc("0x1e")])return;e[yc("0x104")](((t,e)=>{const n=t[yc("0x16b")][yc("0x7e")],r=e.data[yc("0x7e")];return null===n&&null===r?0:null===n&&null!==r?-1:null!==n&&null===r?1:n[yc("0xad")][yc("0xe")](r[yc("0xad")])?-1:1}));const n=new Set,r=new Set;for(const{name:t,data:i}of e){const{id:e}=this[yc("0x6")](t);if(null===i[yc("0x7e")]){const e=this._handleNewSuggestionMarker(t);r[yc("0xe5")](e)}else{const t=this._suggestions[yc("0xdf")](e);null!==i.newRange||t[yc("0xd5")]?(n[yc("0xe5")](t[yc("0x15f")]),r[yc("0xe5")](t)):this[yc("0x13")](t)}}r[yc("0x0")]>0&&this[yc("0xd6")](r);for(const t of n)this[yc("0x18")](yc("0x130"),t)})),t.model.on(yc("0x5e"),((e,n)=>{const r=n[0];if(!this[yc("0x119")][yc("0x0")])return;if(!r[yc("0x6f")])return;if(r.batch[yc("0xa")]||!r[yc("0x5b")][yc("0xc3")])return;let i,o;switch(r[yc("0xb5")]){case yc("0xd3"):i=t.model[yc("0xa1")](r[yc("0x7b")]),o=i[yc("0x37")](r[yc("0xc4")]);break;case yc("0x83"):i=t.model[yc("0xa1")](r[yc("0xc8")]),o=t.model[yc("0xa1")](r.moveTargetPosition);break;case yc("0xf7"):i=t[yc("0x110")][yc("0xa1")](r[yc("0x117")]),o=i[yc("0x37")](r[yc("0xc4")]);break;default:return}const s=t[yc("0x110")][yc("0x5c")](i,o);t.model[yc("0xf8")]((()=>{for(const{suggestion:t,meta:e}of this[yc("0x14a")](s)){if(t[yc("0x3a")])continue;if(yc("0xa6")==t.type)continue;const n=this[yc("0xe4")](t);if(n&&this[yc("0x1b")](n)&&yc("0x83")!=r[yc("0xb5")])continue;const x=t[yc("0x16b")]&&t[yc("0x16b")][yc("0x140")];(yc("0x4e")!=t[yc("0xb5")]||yc("0x83")==r[yc("0xb5")]&&!x)&&(e[yc("0x5f")]||yc("0xba")==t.type&&e[yc("0xa2")]||t.getFirstRange().containsRange(s)&&this[yc("0x10f")](t,i,o))}}))}),{priority:yc("0xd")}),t[yc("0x110")].on(yc("0xf5"),((e,n)=>{const r=n[0],i=n[1];if(i&&i[yc("0x6b")])return;if(this[yc("0xc7")])return;if(!this[yc("0xfa")][yc("0x154")])return;if(r[yc("0x2")])return;const o=t[yc("0x110")][yc("0xe1")],{start:s,end:x}=r[yc("0x118")](),a=s[yc("0x145")]&&o[yc("0x36")](s.nodeAfter)?null:o.getNearestSelectionRange(s,yc("0xc5")),c=x[yc("0xde")]&&o[yc("0x36")](x[yc("0xde")])?null:o[yc("0x100")](x,"backward"),l=t[yc("0x110")][yc("0x5c")](a?a[yc("0xad")]:s,c?c[yc("0x6e")]:x);t[yc("0x110")][yc("0xf8")]((e=>{this[yc("0xea")](l);const n=t.model[yc("0xe1")][yc("0x100")](l.start);r.is(yc("0xd1"))?e[yc("0xbd")](n):r[yc("0x17d")](n)})),e[yc("0x122")]()}),{priority:e.priorities[yc("0x73")]+10}),t[yc("0x110")].on(yc("0xb9"),((e,n)=>{const r=n[n[yc("0x1e")]-1];r&&r.forceDefaultExecution||this[yc("0xc7")]||this.trackChangesCommand[yc("0x154")]&&(t[yc("0x110")][yc("0xf8")]((()=>{let r=t[yc("0x110")][yc("0xb9")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!r)return;e[yc("0x153")]=r[yc("0x1")]();const i=r.end[yc("0xde")],o=t[yc("0x110")][yc("0xe1")];i&&o[yc("0x160")](i)&&!o.isObject(i)&&(r=t[yc("0x110")][yc("0x5c")](r[yc("0xad")],t[yc("0x110")].createPositionAt(i,yc("0x6e")))),this[yc("0x9a")](r)})),e[yc("0x122")]())}),{priority:yc("0x1d")}),this[yc("0x13f")].commands[yc("0xe5")]("trackChanges",this[yc("0xfa")]),this.enableCommand(yc("0x11b"));const i=new p(t,this[yc("0x119")]);t[yc("0x139")].add(yc("0xa8"),i),this[yc("0xc2")](yc("0xa8"));const o=new y(t,this._suggestions);t[yc("0x139")].add(yc("0x32"),o),this[yc("0xc2")]("discardSuggestion"),t[yc("0x139")][yc("0xe5")]("acceptAllSuggestions",new F(t,i,this._suggestions)),this[yc("0xc2")]("acceptAllSuggestions"),t.commands[yc("0xe5")](yc("0x165"),new F(t,o,this._suggestions)),this.enableCommand("discardAllSuggestions"),t[yc("0x139")][yc("0xe5")](yc("0x169"),new j(t,i,this[yc("0x119")])),this[yc("0xc2")](yc("0x169")),t[yc("0x139")][yc("0xe5")](yc("0x88"),new j(t,o,this[yc("0x119")])),this.enableCommand(yc("0x88"));const s=t.plugins[yc("0xdf")](yc("0x84"));this[yc("0x11")](s,"addComment",((t,{threadId:e})=>{const n=this._suggestions.get(e);n&&n[yc("0x12a")]&&1===n.commentThread[yc("0x1e")]&&this[yc("0x10a")](e,{hasComments:!0})}),{priority:yc("0x58")}),this[yc("0x11")](s,yc("0x80"),((t,{threadId:e})=>{const n=this._suggestions[yc("0xdf")](e);n&&n[yc("0x12a")]&&!n[yc("0x12a")][yc("0x1e")]&&this[yc("0x10a")](e,{hasComments:!1})}),{priority:yc("0x58")})}set[yc("0xb6")](t){if(this._adapter)throw new e.CKEditorError(yc("0xac"),this);this[yc("0x93")]=t}get[yc("0xb6")](){return this[yc("0x93")]}[yc("0x158")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions[yc("0x168")]())t&&!e[yc("0xd5")]||n[yc("0xb2")](e);return e?n.map((t=>t[yc("0x8d")]())):n}[yc("0x134")](t){const n=this[yc("0x119")][yc("0xdf")](t);if(!n)throw new e.CKEditorError(yc("0x151"),this);return n}[yc("0x91")](t){return this[yc("0x119")].has(t)}[yc("0x115")](t){const{authorId:e,id:n,attributes:r}=t,[i,o]=t[yc("0xb5")][yc("0x83")](":"),s=this._suggestions[yc("0xdf")](n)||this[yc("0x21")](i,o,n,e,r);if(this._addThreadToSuggestion(s),this._checkSuggestionCorrectness(s,i,o||null,e),s[yc("0x150")]=t.createdAt,s[yc("0x16")]=!0,r&&r["@external"]){const t=r[yc("0x85")],e=this[yc("0x78")](t.authorName);s[yc("0xf0")]=t[yc("0x150")],s.author=e,s[yc("0xb4")]=!0}else s[yc("0xf0")]=t[yc("0x150")];switch(t[yc("0x16b")]&&(s.data=t[yc("0x16b")]),t[yc("0xd0")]&&(s[yc("0xd0")]=t[yc("0xd0")]),this._adapter&&this[yc("0x93")][yc("0x17c")]||(s._saved=!0),this[yc("0x65")][yc("0xdf")](s)){case"notReady":this[yc("0x65")][yc("0x25")](s,"dataReady");break;case yc("0xe3"):s[yc("0xd5")]?(this[yc("0x107")](new Set([s])),this._refreshSuggestionsChain(new Set([s])),this._suggestionState[yc("0x25")](s,yc("0x111")),this[yc("0x18")](yc("0x109"),s)):this[yc("0x65")][yc("0x25")](s,yc("0x9b"))}return s}[yc("0xa8")](t){this.forceDefaultExecution((()=>{this[yc("0x13f")].model[yc("0xf8")]((()=>{for(const e of t[yc("0x15b")]())e[yc("0x66")]()}))}))}discardSuggestion(t){this[yc("0x6b")]((()=>{this[yc("0x13f")][yc("0x110")][yc("0xf8")]((()=>{for(const e of t[yc("0x15b")]())e[yc("0xb3")]()}))}))}enableCommand(t,n){const r=this[yc("0x13f")][yc("0x139")].get(t);if(!r)throw new e.CKEditorError(yc("0xaf"),this,{commandName:t});if(this._enabledCommands.has(r))throw new e.CKEditorError(yc("0x11c"),this,{commandName:t});this[yc("0x136")].add(r),n&&r.on("execute",((t,e)=>{this.trackChangesCommand.value&&(this[yc("0xc7")]||(e.length>0&&e[e[yc("0x1e")]-1]&&e[e.length-1].forceDefaultExecution?e.pop():(t[yc("0x153")]=n(((...t)=>r[yc("0x149")](...t,{forceDefaultExecution:!0})),...e),t[yc("0x122")]())))}),{priority:yc("0x1d")})}[yc("0x6b")](t){let n,r;const i=this[yc("0xc7")];this[yc("0xc7")]=!0;try{n=t()}catch(t){r=t}return i||(this[yc("0xc7")]=!1),r&&e.CKEditorError[yc("0xf1")](r,this),n}[yc("0x9a")](t,n=null,r={}){if(t[yc("0x2")])return null;const i=this[yc("0x13f")][yc("0x132")].get(yc("0xc0")).me;for(const{suggestion:e,meta:i}of this._findSuggestions(t,yc("0xba")))if(i[yc("0xa2")]){if(!i[yc("0xc6")]){if(i.containsRangeInObject){if(!this[yc("0x112")]||!Fc(e,r))continue;return e}if(Fc(e,r))return e;this[yc("0x10f")](e,t[yc("0xad")],t[yc("0x6e")]);break}if(n==e[yc("0x63")]&&Fc(e,r)){const n=e[yc("0x118")]();return n[yc("0xad")][yc("0x49")](t[yc("0x6e")])?this._setSuggestionRange(e,this[yc("0x34")][yc("0x5c")](t[yc("0xad")],n[yc("0x6e")])):this[yc("0xed")](e,this[yc("0x34")][yc("0x5c")](n[yc("0xad")],t[yc("0x6e")])),e}}const o=(0,e.uid)(),s=i.id,x=n?"insertion:"+n:yc("0xba"),a=this[yc("0x13a")]({id:o,type:x,createdAt:new Date,authorId:s,attributes:r});return this[yc("0xfe")](x,o,s,t),a}[yc("0x40")](t,n=yc("0x3d"),r={}){const i=this[yc("0x13f")][yc("0x132")].get(yc("0xc0")).me,o=this[yc("0x90")][yc("0x60")](yc("0xba"),n,"join");for(const e of this[yc("0x158")]())if(e[yc("0x9f")].id==i.id&&yc("0xba")==e.type&&e[yc("0x63")]==n&&Fc(e,r)&&(o(e[yc("0x1f")](),t)||o(t,e[yc("0x1f")]()))){for(const n of t)e[yc("0x8b")](n);return e}for(const{suggestion:e,meta:n}of this._findSuggestions(t,yc("0xba"))){if(!n.isOwn)continue;if(!this[yc("0x112")]&&n[yc("0x5f")])continue;if(!Fc(e,r))continue;let i=!0;for(const n of e.getRanges())for(const e of t)if(!n[yc("0x9d")](e)){i=!1;break}if(i)return e}const s=(0,e.uid)(),x=i.id,a=yc("0x14d")+n,c=this[yc("0x13a")]({id:s,type:a,createdAt:new Date,authorId:x,attributes:r});for(const e of t)this[yc("0xfe")](a,s,x,e,Yr[yc("0xd9")]());return c}[yc("0x11f")](t,n,r=null,i={}){if(r=r||vc(n),t[yc("0x2")])return null;if(yc("0x4")===this[yc("0x135")]){const e=this._suggestionFactory[yc("0x60")]("formatInline",r,"accept");return this[yc("0x6b")]((()=>e([t],n,i))),null}const o=this[yc("0x13f")].plugins[yc("0xdf")]("Users").me,s=[];if(yc("0x14")!==this[yc("0x135")])for(const{suggestion:e,meta:n}of this._findSuggestions(t,"insertion"))n.isOwn&&!n[yc("0xca")]&&s[yc("0xb2")](...e.getRanges());const x=function(t,e){const n=[];for(const r of e){const e=t[yc("0x15c")](r);e&&n[yc("0xb2")](e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n.length;){const r=n[e].getDifference(t);n[yc("0x16f")](e,1,...r),e+=r[yc("0x1e")]}}return n}(t,s);x[yc("0x1e")]&&this[yc("0x34")][yc("0xf8")]((()=>{for(const t of x){const e=this[yc("0x90")].getSuggestionCallback(yc("0xa6"),r,yc("0x66"));this.forceDefaultExecution((()=>e([t],n,i)))}}));for(const t of a){let s=null,x=t.start,a=t[yc("0x6e")];for(const{suggestion:e,meta:n}of this[yc("0x14a")](t,yc("0xa6"))){if(!n[yc("0xa2")])continue;if(e[yc("0x63")]!=r)continue;if(!Fc(e,i))continue;const o=e.getFirstRange();if(o.containsRange(t,!0))return null;x=x[yc("0xe")](o.start)?x:o.start,a=a[yc("0x41")](o[yc("0x6e")])?a:o[yc("0x6e")],s?o.start[yc("0xe")](s[yc("0x118")]()[yc("0xad")])?(s[yc("0x30")](),s=e):e[yc("0x30")]():s=e}const c=this[yc("0x34")][yc("0x5c")](x,a);if(s)this[yc("0xed")](s,c);else{const t=(0,e.uid)(),s=o.id;this[yc("0x13a")]({id:t,type:yc("0x3c")+r,data:n,createdAt:new Date,authorId:s,attributes:i}),this[yc("0xfe")](yc("0x3c")+r,t,s,c)}}return null}[yc("0xb8")](t,n,r=[],i=null,o={}){n[yc("0x106")]||(n[yc("0x106")]=n[yc("0xa5")]),n[yc("0x140")]=t.is(yc("0xe0")),i=i||vc(n);const s=r[yc("0x4b")]((t=>Mc(t,this[yc("0x34")]))),x=t.is(yc("0xe0"))?t:Mc(t,this[yc("0x34")]);if(yc("0x4")===this._trackFormatChanges){const t=this[yc("0x90")].getSuggestionCallback("formatBlock",i,yc("0x66"));return this[yc("0x6b")]((()=>t([x],n,o))),null}s[yc("0xb2")](x);let a=!0;for(const t of s)if(!this[yc("0xff")](t)){a=!1;break}if(a&&"always"!==this[yc("0x135")]){const t=this[yc("0x90")].getSuggestionCallback(yc("0x4e"),i,"accept");return this.forceDefaultExecution((()=>t([x],n,o))),null}let c=null,l=x[yc("0xad")],u=x[yc("0x6e")];for(const{suggestion:t,meta:e}of this[yc("0x14a")](x,"formatBlock")){if(!e[yc("0xa2")])continue;if(e[yc("0xc6")]||e[yc("0x5f")]||e[yc("0xca")])continue;if(t[yc("0x16b")].formatGroupId!=n[yc("0x106")])continue;if(!Fc(t,o))continue;const r=t.getFirstRange();if(t[yc("0x63")]==i){if(r.containsRange(x,!0))return null;l=l.isBefore(r[yc("0xad")])?l:r[yc("0xad")],u=u[yc("0x41")](r[yc("0x6e")])?u:r.end,c?r[yc("0xad")].isBefore(c[yc("0x118")]()[yc("0xad")])?(c[yc("0x30")](),c=t):t[yc("0x30")]():c=t}else{const e=x[yc("0x15c")](r);this[yc("0xaa")](t,e)}}const d=this[yc("0x13f")].plugins[yc("0xdf")](yc("0xc0")).me,g=(0,e.uid)(),f=d.id;if(c)return this[yc("0xed")](c,this[yc("0x34")][yc("0x5c")](l,u)),c;{const t=this[yc("0x13a")]({id:g,type:"formatBlock:"+i,data:n,createdAt:new Date,authorId:f,attributes:o});return this._addSuggestionMarker(yc("0x123")+i,g,f,this._model[yc("0x5c")](l,u)),t}}[yc("0x45")](t,n,r=[],i=null,o={}){n[yc("0x106")]||(n.formatGroupId=n[yc("0xa5")]);const s=t[0];n[yc("0x140")]=s.is("range"),i=i||vc(n);const x=r.map((t=>Mc(t,this[yc("0x34")]))),a=s.is(yc("0xe0"))?t:t[yc("0x4b")]((t=>Mc(t,this[yc("0x34")])));if(yc("0x4")===this[yc("0x135")]){const t=this._suggestionFactory[yc("0x60")](yc("0x4e"),i,yc("0x66"));return this.forceDefaultExecution((()=>t(a,n,o))),null}x[yc("0xb2")](...a);let c=!0;for(const t of x)if(!this[yc("0xff")](t)){c=!1;break}if(c&&"always"!==this._trackFormatChanges){const t=this._suggestionFactory[yc("0x60")](yc("0x4e"),i,yc("0x66"));return this.forceDefaultExecution((()=>t(a,n,o))),null}const l=this[yc("0x13f")][yc("0x132")][yc("0xdf")](yc("0xc0")).me;for(const t of this.getSuggestions()){if(t[yc("0x9f")].id!=l.id)continue;if(yc("0x4e")!=t[yc("0xb5")]||t[yc("0x16b")][yc("0x106")]!=n.formatGroupId)continue;if(!Fc(t,o))continue;const e=t[yc("0x63")]==i;for(let n=0;n<a[yc("0x1e")];n++){const r=a[n];for(const i of t.getMarkers()){const o=i[yc("0xb0")]();if(r[yc("0x49")](o)){e?(a[yc("0x16f")](n,1),n--):t[yc("0x71")](i.name);break}}}}if(0==a[yc("0x1e")])return null;const u=this[yc("0x90")].getSuggestionCallback(yc("0x4e"),i,yc("0x121"));for(const t of this[yc("0x158")]())if(t[yc("0x9f")].id==l.id&&yc("0x4e")==t[yc("0xb5")]&&t[yc("0x16b")][yc("0x106")]==n.formatGroupId&&t.subType==i&&Fc(t,o)&&(u(t[yc("0x1f")](),a)||u(a,t[yc("0x1f")]()))){for(const e of a)t[yc("0x8b")](e);return t}const d=(0,e.uid)(),g=l.id,f=yc("0x123")+i,h=this._setSuggestionData({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:o});for(const t of a)this[yc("0xfe")](f,d,g,t,Yr.getMultiRangeId());return h}[yc("0xea")](t,n=null,r={}){if(t[yc("0x2")])return null;const i=this[yc("0x13f")][yc("0x132")].get(yc("0xc0")).me,o=new s.LiveRange(t[yc("0xad")],t.end);for(const{suggestion:t,meta:e}of this[yc("0x14a")](o,yc("0xba")))if(e.isOwn&&!e.isNextTo)if(t[yc("0x3a")]){const e=t[yc("0x1f")]()[yc("0xd4")]((t=>yc("0x17b")!=t[yc("0xc")][yc("0x24")]));if(e[yc("0x68")]((t=>o.containsRange(t,!0)))&&t[yc("0xb3")](),e[yc("0xf4")]((t=>t[yc("0x9d")](o,!0)))){const t=this[yc("0x90")][yc("0x60")]("deletion",n,yc("0x66"));return this.forceDefaultExecution((()=>t([o],null,r))),null}}else{const e=o[yc("0x15c")](t.getFirstRange());null!==e&&t[yc("0xfd")]([e],null,r)}if(o.detach(),o.isCollapsed||"$graveyard"==o[yc("0xc")][yc("0x24")])return null;let x=null,a=o[yc("0xad")],c=o[yc("0x6e")];const l=this[yc("0x14a")](o,yc("0x69"));for(const{suggestion:t,meta:e}of l){const n=this._model[yc("0x5c")](a,c);if(e[yc("0xa2")]&&(this[yc("0x112")]||!e[yc("0x5f")]&&!e[yc("0xca")]))if(t[yc("0x3a")]){if(!Fc(t,r))continue;let e=!0;for(const r of t[yc("0x1f")]()){if(r[yc("0x9d")](n,!0))return t;n[yc("0x9d")](r)||(e=!1)}e&&t[yc("0xb3")]()}else{const e=t[yc("0x118")]();if(e[yc("0x9d")](n,!0))return t;if(!Fc(t,r)){n.containsRange(e)?t[yc("0x30")]():e[yc("0xdd")](a)?a=e[yc("0x6e")]:e.containsPosition(c)&&(c=e.start);continue}a=a[yc("0xe")](e[yc("0xad")])?a:e[yc("0xad")],c=c[yc("0x41")](e[yc("0x6e")])?c:e[yc("0x6e")],r=Object[yc("0x101")]({},t[yc("0xd0")]),x?e[yc("0xad")].isBefore(x[yc("0x118")]().start)?(x.removeMarkers(),x=t):t.removeMarkers():x=t}}if(x)return this[yc("0xed")](x,this[yc("0x34")][yc("0x5c")](a,c)),x;{const t=(0,e.uid)(),o=this[yc("0x34")][yc("0x5c")](a,c),s=i.id,x=n?yc("0x48")+n:yc("0x69"),l=this[yc("0x13a")]({id:t,type:x,createdAt:new Date,authorId:s,attributes:r});return this[yc("0xfe")](x,t,s,o),l}}[yc("0x29")](t,n=yc("0x3d"),r={}){const i=this[yc("0x13f")][yc("0x132")][yc("0xdf")](yc("0xc0")).me,o=t.map((t=>new s.LiveRange(t[yc("0xad")],t.end))),x=new Set;for(const{suggestion:t,meta:e}of this[yc("0x14a")](o,yc("0xba")))e[yc("0xa2")]&&!e[yc("0xc6")]&&x[yc("0xe5")](t);for(const e of x)if(e[yc("0x3a")]){const i=e[yc("0x1f")]();if((!e[yc("0xd0")]||!e.attributes.skipNestingCheck)&&i[yc("0x68")]((t=>o[yc("0xf4")]((e=>e[yc("0x9d")](t,!0)))))&&e.discard(),o[yc("0x68")]((t=>i[yc("0xf4")]((e=>e[yc("0x9d")](t,!0)))))){const e=this._suggestionFactory[yc("0x60")](yc("0x69"),n,yc("0x66"));return this[yc("0x6b")]((()=>e(t,null,r))),null}}else{const t=e[yc("0x118")]();if(o[yc("0xf4")]((e=>e[yc("0x9d")](t,!0)))&&e.discard(),o[yc("0x68")]((e=>t.containsRange(e,!0)))){const t=this[yc("0x90")][yc("0x60")](yc("0x69"),n,yc("0x66"));return this.forceDefaultExecution((()=>t(o,null,r))),null}}const a=this[yc("0x90")][yc("0x60")]("deletion",n,yc("0x121"));let c=null;for(const t of this.getSuggestions())if(t[yc("0x9f")].id==i.id&&t[yc("0xd5")]&&yc("0x69")==t[yc("0xb5")]&&t[yc("0x63")]==n&&Fc(t,r)&&(a(t[yc("0x1f")](),o)||a(o,t.getRanges())))if(c){if(t[yc("0x12a")]&&t[yc("0x12a")][yc("0x1e")])continue;for(const e of t[yc("0x1f")]())c[yc("0x177")](e)||c[yc("0x8b")](e);t[yc("0x30")]()}else{c=t;for(const e of o)t.isIntersectingWithRange(e)||t[yc("0x8b")](e)}if(c)return c;x[yc("0x82")]();for(const{suggestion:t,meta:e}of this._findSuggestions(o,yc("0x69")))e[yc("0xa2")]&&(this[yc("0x112")]||!e[yc("0x5f")]&&!e[yc("0xca")])&&Fc(t,r)&&x[yc("0xe5")](t);for(const t of x){const e=t[yc("0x1f")]();if((!r||!r[yc("0xa9")])&&o.every((t=>e[yc("0xf4")]((e=>e[yc("0x9d")](t,!0))))))return t;(!t[yc("0xd0")]||!t[yc("0xd0")][yc("0xa9")])&&e[yc("0x68")]((t=>o.some((e=>e.containsRange(t,!0)))))&&t[yc("0xb3")]()}const l=(0,e.uid)(),u=i.id,d="deletion:"+n,g=this[yc("0x13a")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:r});for(const t of o)t[yc("0x44")](),t[yc("0x2")]||yc("0x17b")==t[yc("0xc")].rootName||this[yc("0xfe")](d,l,u,t,Yr[yc("0xd9")]());return g}[yc("0x179")](t,n,r,i,o){if(t.isCollapsed)return[];if(yc("0x4")===this._trackFormatChanges)return[];const s=this[yc("0x13f")][yc("0x132")].get("Users").me.id,x=Array[yc("0x148")](this[yc("0x119")].values()).filter((e=>yc("0x159")==e[yc("0xb5")]&&e[yc("0x16b")].key==n&&e[yc("0x177")](t)));if(yc("0xf6")===this._trackFormatChanges){const e=this[yc("0x14a")](t,yc("0xba")).filter((({meta:t})=>t.isOwn&&!t[yc("0xca")]&&!t[yc("0xc6")]))[yc("0x4b")]((({suggestion:t})=>t));x[yc("0x13c")](...e)}const a=new Map([[t,r]]);for(const t of x){const e="attribute"==t[yc("0xb5")]?t[yc("0x16b")][yc("0xcc")]:void 0,o=t.getFirstRange(),s=Array[yc("0x148")](a.keys())[yc("0x81")]((t=>t[yc("0x39")](o)));if(!s)continue;const x=s[yc("0x28")](o);this._isBlockAttribute(n)&&"insertion"==t[yc("0xb5")]&&0!=x.length||(a[yc("0x142")](s),x[yc("0xcf")]((t=>{a.set(t,r)})),"insertion"!=t[yc("0xb5")]&&e!=i&&a[yc("0x25")](s[yc("0x15c")](o),e))}const c=[];for(const[t,r]of a){const x=(0,e.uid)(),a={key:n,oldValue:r,newValue:i};n[yc("0x1e")]>37&&console[yc("0x1c")](yc("0x6d"),{key:n});const l=("attribute:"+n+"|"+vc({newValue:i})).substring(0,60),u=this[yc("0x13a")]({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:o});c.push(u),this[yc("0xfe")](l,x,s,t)}return c}[yc("0x2a")](t){this[yc("0x183")][yc("0xe5")](t)}_registerInlineAttribute(t){this[yc("0x20")][yc("0xe5")](t)}[yc("0x19")](t,e=[],n=[]){this[yc("0xc2")](t,((t,...e)=>{this[yc("0x170")]((()=>{t(...e)}))}));for(const t of e)this[yc("0x17f")](t);for(const t of n)this._registerBlockAttribute(t)}[yc("0xe4")](t){return yc("0x159")==t[yc("0xb5")]?t[yc("0x63")][yc("0x83")]("|")[0]:null}[yc("0xed")](t,e){const n=t.getFirstMarker();this._model[yc("0xf8")]((t=>{t[yc("0x31")](n,{range:e})}))}[yc("0x7")](t){const e=t.id,n=this[yc("0x13f")][yc("0xec")][yc("0xdf")]("collaboration.channelId");this[yc("0xda")][yc("0xe8")](e)||this[yc("0xda")].addCommentThread({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const r=this[yc("0xda")].getCommentThread(e);r[yc("0x174")]("isRemovable"),r[yc("0x131")]=!1,t[yc("0x12a")]=r}[yc("0x62")](t,n,r,i){if(t[yc("0xb5")]!=n||t.subType!=r||t[yc("0x2c")].id!=i)throw this[yc("0x13f")][yc("0x8")](yc("0x57")),new e.CKEditorError(yc("0x57"),this)}[yc("0xaa")](t,n){const r=t.getFirstRange();if(n[yc("0x49")](r))t[yc("0x30")]();else if(r[yc("0x9d")](n)){const i=this[yc("0x34")][yc("0xa1")](n[yc("0xad")][yc("0xde")],yc("0x6e"));this[yc("0xed")](t,this._model.createRange(r.start,i));const o=(0,e.uid)(),s=t.creator.id,x=t[yc("0xb5")]+":"+t[yc("0x63")];this._setSuggestionData({id:o,type:x,createdAt:new Date,authorId:s,data:t[yc("0x16b")],attributes:t[yc("0xd0")]});const a=this._model[yc("0xa1")](n[yc("0x6e")].parent,yc("0x176")),c=this._model.createRange(a,r[yc("0x6e")]);this._addSuggestionMarker(x,o,s,c)}else if(r[yc("0xdd")](n[yc("0xad")])){const e=this[yc("0x34")].createPositionAt(n.start.nodeBefore,yc("0x6e"));this[yc("0xed")](t,this._model.createRange(r.start,e))}else{const e=this[yc("0x34")][yc("0xa1")](n[yc("0x6e")][yc("0xce")],yc("0x176"));this[yc("0xed")](t,this[yc("0x34")][yc("0x5c")](e,r[yc("0x6e")]))}}[yc("0xff")](t){for(const{suggestion:e,meta:n}of this._findSuggestions(t,"insertion")){if(!n[yc("0xa2")])continue;const r=e[yc("0x1f")]();for(const e of r)if(!t[yc("0x28")](e)[yc("0x1e")])return!0}return!1}[yc("0xee")](t){const n=this[yc("0x13f")][yc("0x132")][yc("0xdf")](yc("0xc0"))[yc("0x16d")](t);if(!n)throw new e.CKEditorError(yc("0xa0"),this);return n}[yc("0x78")](t){const e=this.editor[yc("0x132")][yc("0xdf")](yc("0xc0")),n=(0,o.hashObject)(yc("0xa4")+t);return e[yc("0x16d")](n)||e[yc("0x42")]({id:n,name:t})}[yc("0x21")](t,e,n,r,i){const o=this[yc("0xee")](r),s=this[yc("0x90")][yc("0x50")](t,e,n,o,i,(t=>{this._updateSuggestionData(n,{attributes:t});const e=this[yc("0x134")](n);this[yc("0x107")](new Set([e])),this[yc("0xd6")](new Set([e]))}));return this.listenTo(s,yc("0x66"),(()=>{this._updateSuggestionData(n,{state:yc("0x4a")})}),{priority:yc("0x1d")}),this[yc("0x11")](s,yc("0xb3"),(()=>{this._updateSuggestionData(n,{state:yc("0x12b")})}),{priority:yc("0x1d")}),this[yc("0x119")][yc("0x25")](n,s),this[yc("0x65")][yc("0x25")](s,yc("0x4d")),s}_splitMarkerName(t){const e=t[yc("0x83")](":");return{group:e[0],type:e[1],subType:e.length>=5?e[2]:null,id:e.length<5?e[2]:e[3],authorId:e[yc("0x1e")]<5?e[3]:e[4],markerCount:6==e[yc("0x1e")]?e[5]:null}}[yc("0x10f")](t,n,r){const i=t[yc("0x118")](),o=i[yc("0xad")],s=i[yc("0x6e")];this[yc("0xed")](t,this._model[yc("0x5c")](o,n));const x=(0,e.uid)(),a=t[yc("0x2c")].id,c=t[yc("0xb5")]+(t[yc("0x63")]?":"+t.subType:"");this._setSuggestionData({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[yc("0xd0")],data:t[yc("0x16b")]});const l=this[yc("0xe4")](t);(yc("0x4e")==t[yc("0xb5")]||l&&this[yc("0x1b")](l))&&(r=this[yc("0x34")][yc("0x97")](r[yc("0xce")])),this[yc("0xfe")](c,x,a,this._model[yc("0x5c")](r,s))}[yc("0x14a")](t,e=null){const n=[],r=this[yc("0x13f")].plugins[yc("0xdf")]("Users").me;Array.isArray(t)||(t=[t]);for(const i of this[yc("0x158")]()){if(!i[yc("0xd5")])continue;if(e&&i[yc("0xb5")]!=e)continue;let o=!1;for(const e of i[yc("0x1f")]()){for(const s of t){const t=s.start[yc("0x49")](e[yc("0x6e")])||s[yc("0x6e")][yc("0x49")](e[yc("0xad")]);if(t||s[yc("0x15c")](e)){const x=s[yc("0x9d")](e)&&Ic(this[yc("0x34")].schema,e.start,s),a=e[yc("0x9d")](s)&&Ic(this._model[yc("0xe1")],s.start,e);n.push({suggestion:i,meta:{isOwn:r==i[yc("0x9f")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),o=!0;break}}if(o)break}}return n}[yc("0xfe")](t,e,n,r,i){this[yc("0x34")][yc("0xf8")]((o=>{let s=yc("0x3")+t+":"+e+":"+n;i&&(s=s+":"+i),o.addMarker(s,{range:r,usingOperation:!0,affectsData:!0})}))}_removeSuggestion(t){const e=t[yc("0xb1")],n=t[yc("0xcb")];t.previous=null,t.next=null,null!=e&&e[yc("0xcb")]==t&&(e.next=n),null!=n&&n.previous==t&&(n[yc("0xb1")]=e),"ready"==this[yc("0x65")][yc("0xdf")](t)&&(this._suggestionState[yc("0x25")](t,yc("0x9b")),this[yc("0x18")](yc("0x102"),t,e,n))}[yc("0x13a")](t){const n=t.id,r=this[yc("0x115")](t);if(this[yc("0x93")]&&this[yc("0x93")][yc("0x17c")]){const i=this[yc("0x13f")][yc("0x132")][yc("0xdf")](yc("0x113")),o=r.hasComments,s=r[yc("0x63")]?r[yc("0xb5")]+":"+r[yc("0x63")]:r[yc("0xb5")],x=this.editor[yc("0x22")],a=i[yc("0xe5")](Jr(x,yc("0x16e"))),c={id:n,type:s,hasComments:o,data:t[yc("0x16b")]||null,originalSuggestionId:t[yc("0x172")]||null,attributes:r[yc("0xd0")]};this[yc("0x93")][yc("0x17c")](c)[yc("0x12")]((t=>{r[yc("0x11e")]=!0,i[yc("0x43")](a),t&&t[yc("0x150")]&&(this._suggestions.get(n).createdAt=t[yc("0x150")])}))[yc("0x8a")]((t=>{throw(0,e.logWarning)(yc("0x173")),this[yc("0x13f")][yc("0x110")][yc("0x13d")]({isUndoable:!1},(()=>{r.discard()})),r[yc("0x3b")](),this[yc("0x119")][yc("0x142")](r.id),this[yc("0x65")][yc("0x142")](r),t}))}return r}[yc("0x1b")](t){return this._blockAttributeKeys.has(t)}[yc("0x10a")](t,e){const n=this.editor[yc("0x132")][yc("0xdf")](yc("0x113")),r=this[yc("0x134")](t);if(this[yc("0x93")]&&this[yc("0x93")][yc("0x26")])if(r[yc("0x11e")]){const r=n[yc("0xe5")](Jr(this[yc("0x13f")][yc("0x22")],yc("0x16e")));this[yc("0x93")][yc("0x26")](t,e)[yc("0x12")]((()=>{n.remove(r)}))}else r.on(yc("0x12d"),(()=>{this[yc("0x10a")](t,e)}))}[yc("0x103")](t){if(!this[yc("0x93")]||!this[yc("0x93")][yc("0x134")])throw new e.CKEditorError(yc("0x156"),this);return this[yc("0x93")].getSuggestion(t)}[yc("0x10c")](t){const{id:e,type:n,subType:r,authorId:i}=this[yc("0x6")](t),o=this[yc("0x119")][yc("0xdf")](e)||this._createSuggestion(n,r,e,i,{});switch(this._checkSuggestionCorrectness(o,n,r,i),this[yc("0x65")][yc("0xdf")](o)){case"notReady":this[yc("0x103")](e)[yc("0x12")]((t=>{let n=Promise[yc("0xd7")]();t[yc("0x55")]&&(n=this[yc("0xda")][yc("0xf9")]({channelId:this[yc("0x13f")][yc("0xec")][yc("0xdf")](yc("0xfb")),threadId:e})),n[yc("0x12")]((()=>{this[yc("0x115")](t)._saved=!0}))})),this._suggestionState[yc("0x25")](o,yc("0xe3"));break;case yc("0x9b"):this[yc("0x10a")](e,{state:"open"});case yc("0x6c"):this[yc("0x65")][yc("0x25")](o,yc("0x111")),this.fire(yc("0x109"),o);break;case yc("0x111"):this[yc("0x18")](yc("0x130"),o)}return o[yc("0x27")](t),o}[yc("0xd6")](t){const e=Array[yc("0x148")](t),n=e[yc("0xd4")]((t=>yc("0x159")==t[yc("0xb5")]));this[yc("0x12e")](n);const r=e[yc("0xd4")]((t=>!t.isMultiRange&&yc("0x159")!=t.type)),i=this[yc("0x158")]({skipNotAttached:!0})[yc("0xd4")]((t=>!t[yc("0x3a")]&&yc("0x159")!=t[yc("0xb5")])),o=i[yc("0xd4")]((e=>!t[yc("0x161")](e))),s=new Map(i[yc("0x4b")]((t=>[t,this._suggestionFactory[yc("0x60")](t[yc("0xb5")],t.subType,yc("0x92"))]))),x=new Map(i[yc("0x4b")]((t=>[t,t[yc("0x118")]()]))),a=new Set,c=new Set;for(let t=0;t<r[yc("0x1e")];t++)u(r[t],r,t+1);for(let t=0;t<r[yc("0x1e")];t++)u(r[t],o,0);const l=new Set;for(let t=0;t<r[yc("0x1e")];t++){const e=r[t];!c[yc("0x161")](e)&&e.previous&&(l[yc("0xe5")](e.previous),e[yc("0xb1")][yc("0xcb")]===e&&(e[yc("0xb1")].next=null),e[yc("0xb1")]=null),!a[yc("0x161")](e)&&e[yc("0xcb")]&&(l.add(e[yc("0xcb")]),e.next[yc("0xb1")]===e&&(e[yc("0xcb")][yc("0xb1")]=null),e.next=null)}function u(t,e,n){for(let r=n;r<e[yc("0x1e")];r++){const n=d(t,e[r]);n&&(n[0][yc("0xcb")]=n[1],n[1][yc("0xb1")]=n[0],a.add(n[0]),c[yc("0xe5")](n[1]))}}function d(t,e){if(t[yc("0x9f")].id!==e.author.id)return null;const n=s.get(t)(t,e,x[yc("0xdf")](t),x.get(e));return n&&s[yc("0xdf")](e)(t,e,x[yc("0xdf")](t),x[yc("0xdf")](e))?n[1][yc("0x12a")]&&n[1].commentThread.length?null:n:null}l[yc("0x0")]&&this[yc("0xd6")](l)}[yc("0x12e")](t){if(0==t[yc("0x1e")])return;const e=this[yc("0x158")]({skipNotAttached:!0})[yc("0xd4")]((t=>yc("0x159")==t[yc("0xb5")]&&t[yc("0x16")])),n=[],r=new Map;for(const t of e){const e=(0,o.hashObject)(t[yc("0xd0")]);r[yc("0x161")](e)||(r[yc("0x25")](e,n[yc("0x1e")]),n.push([]));const i=r[yc("0xdf")](e);n[i][yc("0xb2")](t)}!function(){n[yc("0x104")](((t,e)=>{const n=t[0][yc("0x150")],r=e[0].createdAt;return n==r?t[0][yc("0xd0")].groupId<e[0].attributes[yc("0x23")]?-1:1:n<r?-1:1}));for(const t of n)t[yc("0x104")](((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n[yc("0x1e")];t++){if(0==n[t][yc("0x1e")])continue;const e=[];for(let r=t+1;r<n[yc("0x1e")];r++)0!=n[r][yc("0x1e")]&&i(n[t],n[r])&&e.push(r);for(const r of e)n[t]=n[t][yc("0x89")](n[r]),n[r]=[]}for(const t of n)for(let e=0;e<t[yc("0x1e")];e++)t[e][yc("0xcb")]=t[e+1]||null;for(const t of n)for(let e=0;e<t.length;e++)t[e].previous=t[e-1]||null;function i(t,e){if(t[0][yc("0xd0")].groupId!==e[0][yc("0xd0")][yc("0x23")]&&t[0].author!==e[0].author)return!1;if(n=t[0],r=e[0],(n.hasComments||r.hasComments)&&(n.hasComments&&r.hasComments||!(n[yc("0x55")]&&r[yc("0x150")]<n[yc("0x12a")].comments.get(0)[yc("0x150")]||r[yc("0x55")]&&n.createdAt<r.commentThread[yc("0x175")].get(0).createdAt)))return!1;var n,r;const i=bc(t[0].attributes,"groupId"),o=bc(e[0][yc("0xd0")],yc("0x23"));return!!jr(i,o)&&(!!t[yc("0x68")]((t=>e.some((e=>t[yc("0x118")]()[yc("0x49")](e[yc("0x118")]())))))&&e[yc("0x68")]((e=>t.some((t=>e[yc("0x118")]()[yc("0x49")](t[yc("0x118")]()))))))}}[yc("0x107")](t){const e=Array[yc("0x148")](t),n=this[yc("0x158")]({skipNotAttached:!0}),r=n[yc("0xd4")]((e=>!t[yc("0x161")](e))),i=new Map(e[yc("0x4b")]((t=>[t,this[yc("0x90")].getSuggestionCallback(t[yc("0xb5")],t[yc("0x63")],yc("0x121"))]))),o=new Map(n[yc("0x4b")]((t=>[t,t[yc("0x1f")]()])));for(let t=0;t<e[yc("0x1e")];t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e[yc("0x1e")];t++)if(s(this,e[t],r,0))return!0;return!1;function s(t,e,n,r){for(let s=r;s<n[yc("0x1e")];s++){const r=n[s];if(r.type!==e[yc("0xb5")]||r.author.id!==e[yc("0x9f")].id||r[yc("0x63")]!==e[yc("0x63")])continue;if(!Oc(e,r,[yc("0x23")]))continue;if("attribute"==e.type&&e[yc("0x16b")][yc("0xcc")]!=r[yc("0x16b")][yc("0xcc")])continue;if(yc("0x159")==e[yc("0xb5")]&&t[yc("0x1b")](e.data[yc("0x125")]))continue;if(yc("0x4e")==e.type){const n=t.editor[yc("0x110")],r=e.getContainedElement();if(r&&(n[yc("0xe1")].isObject(r)||n.schema[yc("0x36")](r)))continue}const x=i[yc("0xdf")](e),a=o[yc("0xdf")](e),c=o[yc("0xdf")](r),l=e[yc("0x12a")]&&e[yc("0x12a")][yc("0x1e")],u=r.commentThread&&r[yc("0x12a")][yc("0x1e")];if(!l&&x(c,a))return t[yc("0x120")](r,e),o[yc("0x142")](e),!0;if(!u&&x(a,c))return t[yc("0x120")](e,r),o.delete(r),!0}return!1}}[yc("0x120")](t,e){if(t[yc("0x3a")])for(const n of e[yc("0x1f")]())t.addRange(n);else{const n=e[yc("0x118")]()[yc("0x6e")];this[yc("0xed")](t,this[yc("0x34")][yc("0x5c")](t[yc("0x118")]().start,n))}e[yc("0x30")]()}[yc("0xc1")](t,e){const n=t[yc("0x127")](yc("0x144"))||t[yc("0x127")](yc("0x159"))?yc("0x163"):t[yc("0x7c")]();return Jr(this[yc("0x13f")].locale,e+"_"+n+yc("0x14b"))}[yc("0x128")](){const t=this.editor;(0,o.surroundingMarkersDetector)(this._model,(({left:e,entered:n})=>{const r=[];for(const t of e){const{group:e,type:n}=this[yc("0x6")](t[yc("0xeb")]);if("suggestion"===e){r[yc("0xb2")](this._getMarkerAnnouncementText(n,yc("0x167")));break}}for(const t of n){const{group:e,type:n}=this[yc("0x6")](t[yc("0xeb")]);if(yc("0x14f")===e){r[yc("0xb2")](this._getMarkerAnnouncementText(n,yc("0x143")));break}}r[yc("0x1e")]&&t.ui[yc("0x7f")][yc("0x1a")](yc("0x11b"),r[yc("0x121")](" "))}))}_processAttributeChanges(t){if(this._recordAttributeSuggestions)return!1;const e=this[yc("0x13f")],n=e[yc("0x110")][yc("0xe7")][yc("0x141")][yc("0x171")]();if(0==n[yc("0x1e")])return!1;const r=[],i=n[yc("0xd4")]((t=>yc("0x159")==t[yc("0xb5")])),o=n[yc("0xd4")]((t=>"insert"==t.type&&yc("0xf2")!=t[yc("0xeb")])),s=n[yc("0xd4")]((t=>yc("0x43")==t[yc("0xb5")]&&yc("0xf2")!=t[yc("0xeb")]));for(const t of i)r[yc("0xb2")]({key:t[yc("0x5a")],newValue:t.attributeNewValue,oldValue:t[yc("0x10d")],range:Nc(t[yc("0xe0")],e[yc("0x110")])});for(const t of o){const n=s[yc("0x81")]((e=>e[yc("0x7b")][yc("0x49")](t[yc("0x7b")])));n&&r.push({key:yc("0xd8"),newValue:t[yc("0xeb")],oldValue:n.name,range:e.model[yc("0x8c")](t[yc("0x7b")].nodeAfter)})}return 0!=r[yc("0x1e")]&&this[yc("0x147")](t,r)}_processAttributeSuggestions(t){let e=!1;const n=this[yc("0x13f")][yc("0x110")][yc("0xe7")].differ[yc("0xbc")]()[yc("0xd4")]((t=>t[yc("0x16b")][yc("0x15e")]&&t.name.startsWith(yc("0xd2"))));for(const r of n){const{subType:n,id:i}=this[yc("0x6")](r[yc("0xeb")]),o=n[yc("0x83")]("|")[0];for(const n of this[yc("0x158")]({skipNotAttached:!0}))n.id!=i&&yc("0x159")==n[yc("0xb5")]&&n.data&&n[yc("0x16b")][yc("0x125")]==o&&n[yc("0x118")]()[yc("0x39")](r[yc("0x16b")][yc("0x15e")])&&(this[yc("0x2b")](n,r[yc("0x16b")][yc("0x15e")],t),e=!0)}return e}_recordAttributeChanges(t){this.editor,this[yc("0x133")]=!0,t()}[yc("0x10e")](t){const e=this[yc("0x1b")](t),n=this[yc("0x20")][yc("0x161")](t);return e||n}_reduceExistingSuggestions(t,e){if(0==e.length)return!1;let n=!1;for(const r of e){const e=this._findSuggestions(r.range,yc("0x159"))[yc("0xd4")]((t=>!t[yc("0x94")][yc("0xc6")])).map((t=>t[yc("0x14f")])),i=(0,o.hashObject)({newValue:r[yc("0x3e")]});e[yc("0xd4")]((t=>{const[e,n]=t[yc("0x63")].split("|");return e==r[yc("0x125")]&&n!=i}))[yc("0xcf")]((e=>{this[yc("0x2b")](e,r[yc("0xe0")],t),n=!0}))}return n}_reduceSuggestionAttributeRange(t,e,n){const r=t[yc("0x118")]()[yc("0x28")](e);0!==r[yc("0x1e")]?1!==r[yc("0x1e")]?this[yc("0x10f")](t,e.start,e[yc("0x6e")]):this[yc("0xed")](t,r[0]):n[yc("0x71")](t[yc("0x11a")]())}}class kc{constructor(t){this[yc("0xc9")]=t,this[yc("0x34")]=t.model,this._customCallbacks=new Map,this[yc("0x51")]=new Map,this[yc("0xf3")]()}[yc("0x50")](t,e,n,r,i,o){return new Yr(this[yc("0x34")],{type:t,subType:e,id:n,author:r,creator:r,attributes:i,onAttributesChange:o,onAccept:(...n)=>this.getSuggestionCallback(t,e,yc("0x66"))(...n),onDiscard:(...n)=>this[yc("0x60")](t,e,yc("0xb3"))(...n)})}registerCustomCallback(t,e,n,r){const i=t+":"+e+":"+n;this[yc("0xb")][yc("0x25")](i,r)}[yc("0x60")](t,e,n){const r=t+":"+e+":"+n;return this[yc("0xb")][yc("0xdf")](r)||this[yc("0x51")][yc("0xdf")](t+":"+n)}[yc("0xf3")](){const t=()=>!1,e=t=>{t[yc("0x104")](((t,e)=>t[yc("0xad")][yc("0xe")](e[yc("0xad")])?1:-1)),this._model[yc("0xf8")]((e=>{for(const n of t){let t;t=n[yc("0x6e")][yc("0x33")]&&n[yc("0x6e")][yc("0xce")]==n[yc("0xad")][yc("0x145")]?e[yc("0x2f")](n[yc("0xad")].nodeAfter,"on"):e.createSelection(n),this[yc("0x34")][yc("0xf5")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this[yc("0x34")][yc("0xf8")]((n=>{const{commandName:r,commandParams:i=[]}=e,o=t.map((t=>(Rc(t)&&(t=this[yc("0x34")].createRange(t[yc("0x6e")])),t)))[yc("0xd4")]((t=>yc("0x17b")!==t[yc("0xc")].rootName));if(o.length<1)return;const x=Array[yc("0x148")](this[yc("0x34")][yc("0xe7")].selection[yc("0x1f")]())[yc("0x4b")]((t=>s.LiveRange.fromRange(t)));n[yc("0xbd")](o);for(const t of this[yc("0xc9")].commands[yc("0x139")]())t[yc("0x180")]();i[yc("0xb2")]({forceDefaultExecution:!0}),this[yc("0xc9")][yc("0x149")](r,...i);const a=x.filter((t=>yc("0x17b")!=t[yc("0xc")][yc("0x24")]));a.length>0&&n.setSelection(a);for(const t of x)t.detach()}))},r=(t,e)=>1==t.length&&1==e.length&&t[0][yc("0x6e")][yc("0x49")](e[0].start),i=(t,e,n,r)=>wc(t,e,n,r,this[yc("0x34")])?[t,e]:wc(e,t,r,n,this._model)?[e,t]:null;this[yc("0x51")][yc("0x25")]("insertion:accept",t),this._defaultCallbacks[yc("0x25")](yc("0x16a"),e),this._defaultCallbacks.set(yc("0x86"),r),this[yc("0x51")][yc("0x25")](yc("0x56"),i),this[yc("0x51")][yc("0x25")](yc("0x9e"),e),this[yc("0x51")][yc("0x25")](yc("0xa3"),t),this[yc("0x51")][yc("0x25")]("deletion:join",r),this[yc("0x51")].set("deletion:chain",i),this[yc("0x51")][yc("0x25")](yc("0x74"),n),this[yc("0x51")][yc("0x25")](yc("0xa7"),t),this[yc("0x51")].set(yc("0x79"),r),this[yc("0x51")].set("formatInline:chain",t),this._defaultCallbacks[yc("0x25")]("formatBlock:accept",n),this[yc("0x51")].set(yc("0x13e"),t),this[yc("0x51")][yc("0x25")](yc("0xfc"),r),this[yc("0x51")][yc("0x25")](yc("0xab"),t),this[yc("0x51")][yc("0x25")](yc("0x9"),t),this[yc("0x51")][yc("0x25")]("attribute:discard",((t,e)=>{if(!e)return;const n=this._editor.plugins.get(Ac);this._model.change((r=>{if(yc("0xd8")==e.key)for(const n of t){const t=n.start.nodeAfter,i=e.oldValue;r[yc("0x5")](t,i)}else if(n[yc("0x1b")](e[yc("0x125")]))for(const n of t)void 0!==e.oldValue?r[yc("0xe9")](e[yc("0x125")],e.oldValue,n[yc("0xad")].nodeAfter):r[yc("0x99")](e[yc("0x125")],n[yc("0xad")][yc("0x145")]);else for(const n of t)e[yc("0xcc")]?r[yc("0xe9")](e[yc("0x125")],e[yc("0xcc")],n):r[yc("0x99")](e.key,n)}))})),this[yc("0x51")].set(yc("0x14c"),r)}}function Ic(t,e,n){for(const r of e[yc("0xce")][yc("0x13b")]({includeSelf:!0,parentFirst:!0})){if(r[yc("0xc")]==r)return!1;if(!n.containsItem(r))return!1;if(t.isObject(r)||t.isLimit(r))return!0}return!1}function Rc(t){return t[yc("0x6e")][yc("0xce")]==t[yc("0xad")][yc("0x145")]&&t[yc("0x6e")].isAtStart}function Sc(t,e,n,r){const i=t=>!t.item.is(yc("0xef"))&&!r[yc("0x7d")](t[yc("0x17e")]),o=t[yc("0xad")].getLastMatchingPosition(i),s=t[yc("0x6e")][yc("0x7a")](i,{direction:yc("0x15d")});return!(t.start[yc("0x49")](o)&&t.end[yc("0x49")](s)||(o[yc("0xe")](s)?n[yc("0x31")](e,{range:n[yc("0x5c")](o,s)}):n[yc("0x71")](e),0))}function vc(t){return(0,o.hashObject)(t)}function Lc(t){const e=t[yc("0xad")][yc("0x145")];return e&&e.is(yc("0xbe"))}function Nc(t,e){return null==t[yc("0x6e")][yc("0xde")]&&t[yc("0x6e")][yc("0xce")]==t[yc("0xad")][yc("0x145")]?Mc(t[yc("0xad")].nodeAfter,e):t}function Mc(t,e){const n=e[yc("0xe1")].isObject(t)||e[yc("0xe1")][yc("0x157")](t);return e[yc("0x5c")](e[yc("0xa1")](t,yc("0x10")),n?e[yc("0xb7")](t):e[yc("0xa1")](t,"end"))}function wc(t,e,n,r,i){if(!Oc(t,e))return!1;if(n[yc("0x6e")][yc("0x49")](r.start))return!0;if(t[yc("0xb5")]!=e.type)return!1;if(!n[yc("0x6e")][yc("0x9c")](r[yc("0xad")]))return!1;const o=i[yc("0x5c")](n[yc("0x6e")],r[yc("0xad")])[yc("0x182")]();for(const t of o)if([yc("0x126"),yc("0xbf")][yc("0xdb")](t[yc("0xb5")])&&i[yc("0xe1")].isLimit(t[yc("0x17e")]))return!1;return!0}function Oc(t,e,n=[]){return!(!t._isDataLoaded||!e[yc("0x16")])&&jr(bc(t[yc("0xd0")],n),bc(e.attributes,n))}function Fc(t,e){const n=Dc(t[yc("0xd0")]),r=Dc(e);if(!t._isDataLoaded)return!1;for(const t of Object[yc("0xbb")](r))if(!jr(n[t],r[t]))return!1;return!0}function Dc(t){const e=Object[yc("0x101")]({},t);return delete e[yc("0xa9")],delete e[yc("0x12c")],e}const Pc=["stopListening","canEditAt","add","isEnabled","_pendingAction","get","execute","_setPendingAction","commands","isDirty","unbind","getRanges","canAccept","_removePendingAction","_editor","_discardCommand","locale","_acceptCommand","PendingActions","canDiscard","acceptSuggestion","discardSuggestion","view","commentThreadController","listenTo","model","bind","remove"];var Bc,Uc;Bc=Pc,Uc=404,function(t){for(;--t;)Bc.push(Bc.shift())}(++Uc);const jc=function(t,e){return Pc[t-=0]};class Gc extends((0,e.ObservableMixin)()){constructor(t,e,n,r){super(),this[jc("0xd")]=e,this[jc("0xa")]=n,this[jc("0xb")]=r,this._editor=t,this[jc("0x5")]=t.commands[jc("0x15")](jc("0x8")),this[jc("0x3")]=t[jc("0x18")].get("discardSuggestion"),this[jc("0xa")][jc("0xe")](jc("0x13")).to(this[jc("0x5")],this[jc("0x3")],((t,e)=>t||e)),this.view[jc("0xe")](jc("0x0")).to(this._acceptCommand,jc("0x13"),(t=>t&&this[jc("0x2")][jc("0xd")][jc("0x11")](e[jc("0x1b")]()))),this[jc("0xa")][jc("0xe")]("canDiscard").to(this[jc("0x3")],jc("0x13"),(t=>t&&this[jc("0x2")].model[jc("0x11")](e[jc("0x1b")]()))),this[jc("0x14")]=null,n[jc("0x19")]&&this[jc("0x17")](),this[jc("0xc")](n,"acceptSuggestion",(()=>this[jc("0x8")]())),this[jc("0xc")](n,jc("0x9"),(()=>this[jc("0x9")]())),this[jc("0xc")](n,"change:isDirty",(()=>{n[jc("0x19")]?this[jc("0x17")]():this._removePendingAction()}))}acceptSuggestion(){this[jc("0x5")][jc("0x16")](this[jc("0xd")].id)}[jc("0x9")](){this[jc("0x3")][jc("0x16")](this[jc("0xd")].id)}destroy(){this[jc("0xa")][jc("0x1a")](jc("0x13")),this[jc("0xa")][jc("0x1a")](jc("0x0")),this[jc("0xa")][jc("0x1a")](jc("0x7")),this[jc("0x10")](),this[jc("0xb")].destroy(),this[jc("0x14")]&&this[jc("0x1")]()}[jc("0x17")](){const t=Jr(this._editor[jc("0x4")],"PENDING_ACTION_SUGGESTION");this[jc("0x14")]=this._editor.plugins[jc("0x15")](jc("0x6"))[jc("0x12")](t)}[jc("0x1")](){null!==this._pendingAction&&this._editor.plugins[jc("0x15")](jc("0x6"))[jc("0xf")](this[jc("0x14")]),this._pendingAction=null}}const Vc=["_createCommentViews","isReadOnly","_localUser","cancel","commentsListView","setData","assign","_config","canAccept","_model","commentInputView","focus","hasDirtyComment","element","set","locale","fire","delegate","removeComment","CommentView","destroy","isEnabled","showInput","isActive","bind","descriptionParts","length","authoredAt","commentThread","commentThreadInputView","disableComments","editorConfig","isDirty","disabledSubmit","addComment","_createCommentThreadInputView","submit","editor"];var Hc,zc;Hc=Vc,zc=127,function(t){for(;--t;)Hc.push(Hc.shift())}(++zc);const Wc=function(t,e){return Vc[t-=0]};class Kc extends i.View{constructor(t,e,n,r){super(t),this[Wc("0x1d")]=null,this[Wc("0x10")]=null,this[Wc("0x1")](Wc("0xa"),!1),this[Wc("0x1")]("authoredAt",e.authoredAt),this.bind(Wc("0xe")).to(e),this[Wc("0x1")](Wc("0xc"),[]),this.set(Wc("0x13"),!1),this[Wc("0x1")](Wc("0x8"),!1),this.set(Wc("0x21"),!1),this.set("canDiscard",!1),this[Wc("0x22")]=e,this[Wc("0x1b")]=n,this._config=r,r[Wc("0x11")]?this[Wc("0x1")](Wc("0xd"),1):this[Wc("0x19")]()}[Wc("0x24")](){this[Wc("0x0")][Wc("0x24")]()}[Wc("0x7")](){this.commentsListView&&this[Wc("0x1d")][Wc("0x7")](),this[Wc("0x10")]&&this[Wc("0x10")][Wc("0x7")](),super[Wc("0x7")]()}[Wc("0x19")](){const{CommentsListView:t}=this._config;this[Wc("0x1d")]=new t(this[Wc("0x2")],this._model[Wc("0xf")],Object[Wc("0x1f")]({CommentView:this[Wc("0x20")][Wc("0x6")]},this[Wc("0x20")])),this.commentsListView[Wc("0x4")](Wc("0x5")).to(this),this[Wc("0x1d")].delegate("updateComment").to(this),this[Wc("0x1d")][Wc("0xb")](Wc("0xa")).to(this),this.set(Wc("0xd"),this[Wc("0x1d")][Wc("0xd")]+1),this.bind(Wc("0xd")).to(this[Wc("0x1d")],Wc("0xd"),(t=>t+1)),this.commentThreadInputView=this[Wc("0x16")](),this.on(Wc("0x5"),(()=>this[Wc("0x24")]())),this[Wc("0xb")]("isDirty").to(this.commentsListView,Wc("0x25"),this[Wc("0x10")].commentInputView,"value",((t,e)=>t||!!e))}[Wc("0x16")](){const{CommentThreadInputView:t}=this[Wc("0x20")],e=new t(this[Wc("0x2")],this[Wc("0x1b")],this[Wc("0x20")][Wc("0x12")]),n=e[Wc("0x23")];return e[Wc("0xb")](Wc("0x9")).to(this,"isActive",this[Wc("0x22")][Wc("0xf")],Wc("0x1a"),n,"value",((t,e,n)=>!!n||t&&!e)),n.on(Wc("0x17"),((t,e)=>{this[Wc("0x3")](Wc("0x15"),e),n[Wc("0x18")][Wc("0x1e")]("")})),n.on(Wc("0x1c"),(()=>this[Wc("0x24")]())),n[Wc("0xb")](Wc("0x14")).to(this[Wc("0x22")][Wc("0xf")],Wc("0x1a")),e}}const qc=["content","userView","</span>","acceptSuggestion","setTemplate","div","isEnabled","ck-annotation__main","push","ck-annotation__info-time","canDiscard",'<span class="ck-suggestion-type">',"commentsListView","<p>","ck-suggestion-wrapper","_model","check","ck-comment__info-time","isExternal","bind","ck-suggestion__info","extendTemplate","formatDateTime","creator","ck-annotation__content-wrapper","value","EXTERNAL_IMPORT_WORD_AVATAR","@external","ck-suggestion--discard","ck-comment__external","delegate","locale","span","_createButton","map","editorDestroyed","ck-annotation","discardButton","source",'"></span>',"editorReady","cancel","render","color","EXTERNAL_SUGGESTION","authoredAt","discardSuggestion","</p>","canAccept","commentThreadInputView","innerHTML","ck-annotation__user",".ck-annotation__content-wrapper","isActive","element","_descriptionElement","descriptionParts","ck-suggestion-wrapper--active","set","getExternalSuggestionNote","time","author","children","getUserViewNotificationText","name","ck-suggestion-","importWord","ck-suggestion__main","acceptButton","ck-annotation__info-name","description","type","_config","disableComments","ck-suggestion__user","Discard suggestion","ck-suggestion--disabled-comments","ck-annotation__actions","split","ck-suggestion__info-name","attributes","querySelector","Accept suggestion"];var Xc,$c;Xc=qc,$c=323,function(t){for(;--t;)Xc.push(Xc.shift())}(++$c);const Zc=function(t,e){return qc[t-=0]};class Yc extends Kc{constructor(e,n,r,i){super(e,n,r,i),this[Zc("0x43")](Zc("0x50"),""),this.bind(Zc("0x50")).to(this,Zc("0x41"),(t=>t&&t[0]?t[0].type:"")),this.bind("description").to(this,Zc("0x41"),this,"isActive",((t,e)=>{let n="";for(const e of t)n+=Zc("0x16")+Jc(e[Zc("0x9")],e[Zc("0x34")])+Zc("0x38");return e?n:(0,o.trimHtml)(n,{limit:140})})),this[Zc("0x40")]=null,this[Zc("0x4d")]=this[Zc("0x2a")](Jr(e,Zc("0x8")),t.icons[Zc("0x19")],"ck-suggestion--accept",Zc("0xc"),"sw"),this[Zc("0x4d")][Zc("0x1c")](Zc("0xf")).to(this,Zc("0x39")),this[Zc("0x2e")]=this[Zc("0x2a")](Jr(e,Zc("0x1")),t.icons[Zc("0x32")],Zc("0x25"),Zc("0x37"),"sw"),this[Zc("0x2e")][Zc("0x1c")]("isEnabled").to(this,Zc("0x13")),this[Zc("0xa")]=new o.UserView(e,this[Zc("0x18")][Zc("0x46")],this[Zc("0x48")]()),this[Zc("0xa")][Zc("0x1e")]({attributes:{class:[Zc("0x0"),Zc("0x3c")]}}),this[Zc("0xd")](this.getTemplate())}getTemplate(){const t=this.bindTemplate,e=[{tag:"div",attributes:{class:[Zc("0x1d"),"ck-annotation__info"]},children:[{tag:"span",children:[{text:this[Zc("0xa")][Zc("0x49")]}],attributes:{class:[Zc("0x5"),Zc("0x4e")]}},{tag:Zc("0x45"),attributes:{datetime:t.to(Zc("0x36")),class:[Zc("0x1a"),Zc("0x12")]},children:[{text:t.to("authoredAt",(t=>this[Zc("0x51")][Zc("0x1f")](t)))}]}]},{tag:Zc("0xe"),attributes:{class:["ck-suggestion__actions",Zc("0x3")]},children:[this[Zc("0x4d")],this[Zc("0x2e")]]},{tag:Zc("0xe"),attributes:{class:[Zc("0x21")]}}];this[Zc("0x18")].isExternal&&e.push({tag:Zc("0xe"),attributes:{class:[Zc("0x26")]},children:[{text:this[Zc("0x44")]()}]});const n={tag:Zc("0xe"),attributes:{class:[Zc("0x17"),t.if(Zc("0x3e"),Zc("0x42")),t.to("type",(t=>Zc("0x4a")+t)),this[Zc("0x51")][Zc("0x52")]&&Zc("0x2")],"data-suggestion-id":this[Zc("0x18")].id,"data-thread-id":this[Zc("0x18")].commentThread.id,"data-author-id":this[Zc("0x18")][Zc("0x46")].id,tabindex:-1},children:[{tag:Zc("0xe"),attributes:{class:["ck-suggestion",Zc("0x2d")]},children:[this[Zc("0xa")],{tag:Zc("0xe"),attributes:{class:[Zc("0x4c"),Zc("0x10")]},children:e}]}]};return this[Zc("0x15")]&&this[Zc("0x3a")]&&(n[Zc("0x47")][Zc("0x11")](this[Zc("0x15")],this[Zc("0x3a")]),this[Zc("0x15")][Zc("0x27")](Zc("0x31")).to(this),this[Zc("0x15")][Zc("0x27")](Zc("0x2c")).to(this),this[Zc("0x3a")][Zc("0x27")](Zc("0x31")).to(this),this.commentThreadInputView[Zc("0x27")]("editorDestroyed").to(this)),n}[Zc("0x33")](){super.render(),this[Zc("0x40")]=this[Zc("0x3f")][Zc("0x7")](Zc("0x3d")),this[Zc("0x40")][Zc("0x3b")]=this[Zc("0x4f")],this.on("change:description",((t,e,n)=>{this[Zc("0x40")][Zc("0x3b")]=n}))}[Zc("0x2a")](t,e,n,r,o){const s=new i.ButtonView(this.locale);return s.set({label:t,icon:e,tooltip:!0,tooltipPosition:o}),s[Zc("0x1e")]({attributes:{class:n}}),s.on("execute",(()=>{this.fire(r,this[Zc("0x18")].id)})),s}[Zc("0x44")](){return"importWord"===this[Zc("0x18")][Zc("0x6")][Zc("0x24")].source?Jr(this[Zc("0x28")],"EXTERNAL_IMPORT_WORD_SUGGESTION"):Jr(this[Zc("0x28")],Zc("0x35"))}[Zc("0x48")](){return this[Zc("0x18")][Zc("0x1b")]?Zc("0x4b")===this[Zc("0x18")].attributes[Zc("0x24")][Zc("0x2f")]?Jr(this[Zc("0x28")],Zc("0x23"),this[Zc("0x18")].creator[Zc("0x49")]):Jr(this[Zc("0x28")],"EXTERNAL_AVATAR",this[Zc("0x18")][Zc("0x20")].name):null}}function Jc(t,e){let n="";return n+=t[Zc("0x4")]("*")[Zc("0x2b")](((t,e)=>e%2!=0?Zc("0x14")+Qc(t)+Zc("0xb"):Qc(t))).join(""),e&&(n+='<span class="ck-suggestion-color" style="background-color: '+e[Zc("0x22")]+'" title="'+e.title+Zc("0x30")),n}function Qc(t){const e=document.createElement(Zc("0x29"));return e.innerText=t,e.innerHTML}const tl=["isInContent","comments","init","getRanges","_viewToController","lowest","config","getMarkerNames","add","_bindAnnotationToEditors","bind","editing","getAllAdjacentSuggestions","type","_destroyController","_disableComments","Track changes","_suggestionToController","TrackChangesEditing","activeAnnotations","suggestionLoaded","focus","trackChanges.SuggestionThreadView","length","commands","reduce","_descriptionFactory","clear","discardButton","head","comments.maxCommentCharsWhenCollapsed","trackChanges.disableComments","registerAnnotation","acceptSelectedSuggestions","remove","model","mainView","commandName","Discard all suggestions","createAnnotation","addSourceCollector","switchbutton","push","activeMarkers","_annotationViews","filter","change:activeAnnotations","isDirty","suggestionUnloaded","unbind","getByInnerView","_unbindEditors","requires","_updateController","createAnnotationView","Annotations","suggestion-","plugins","locale","from","previous","pluginName","button","map","_handleControllerBuffer","SuggestionThreadView","refreshSelectedViews","_createUIButton","value","CommentView","arrowView","actionView","innerView","_initializeController","keys","buttonView","size","CommentsUI","getSuggestion","componentFactory","getFirstRange","_handleSuggestionControllerDelayed","comments.editorConfig","some","getDescriptions","delete","acceptAllSuggestions","view","listenTo","has","values","_refreshActiveMarkers","define","get","EditorAnnotations","addComment","isOn","set","CommentsRepository","destroy","execute","comments.maxCommentsWhenCollapsed","change:previous","trackChanges","isMultiRange","acceptButton","isEnabled","discardAllSuggestions","comments.maxThreadTotalWeight","stopListening","toMany","getJoined","editor"];var el,nl;el=tl,nl=470,function(t){for(;--t;)el.push(el.shift())}(++nl);const rl=function(t,e){return tl[t-=0]};class il extends t.Plugin{static get[rl("0x22")](){return[Ac,o.Users,rl("0x50"),"Annotations","EditorAnnotations"]}static get[rl("0x2b")](){return"TrackChangesUI"}constructor(t){super(t),this[rl("0x70")]=new Map,this[rl("0x63")]=new Map,this[rl("0x1a")]=new Map,this[rl("0x2e")]=new Map;const e=this[rl("0x5e")][rl("0x65")];e[rl("0x4a")](rl("0x4"),Yc),e[rl("0x4a")](rl("0xd"),!1),this[rl("0x6e")]=e[rl("0x4b")](rl("0xd"))}[rl("0x3f")](t,e){0===this[rl("0x2e")][rl("0x3a")]&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this._suggestionToController[rl("0x47")](t);n||e?n&&e&&this._destroyController(t):this[rl("0x37")](t)}this[rl("0x2e")][rl("0x9")](),this[rl("0x5e")][rl("0x27")][rl("0x4b")](rl("0x4c"))[rl("0x30")](),this._refreshActiveMarkers()}),10),this[rl("0x2e")].set(t,e)}[rl("0x61")](){const t=this.editor,e=t.plugins[rl("0x4b")]("TrackChangesEditing"),n=t.plugins[rl("0x4b")](rl("0x25")),r=t[rl("0x27")][rl("0x4b")](rl("0x4c")),i=t.plugins[rl("0x4b")](rl("0x50"));t.ui[rl("0x3d")][rl("0x67")](rl("0x55"),(t=>this._createUIButton(t))),r[rl("0x16")]((()=>{const t=[];for(const[e,n]of Array[rl("0x29")](this._suggestionToController)){const r=e[rl("0x6b")](),i=[];for(const t of r){if(!t.isInContent)continue;if(t[rl("0x56")]){i[rl("0x18")](...t[rl("0x62")]());continue}const e=t[rl("0x3e")]();if(i[rl("0x5")]>0){const t=i[0][rl("0x5d")](e);if(t){i[0]=t;continue}}i[rl("0x18")](e)}t[rl("0x18")]([n[rl("0x45")],i])}return t})),this[rl("0x46")](e,rl("0x2"),((t,e)=>{this[rl("0x46")](e,rl("0x54"),((t,n,r,i)=>{e[rl("0x5f")]&&(null==r?(this[rl("0x23")](i[rl("0xb")]),this[rl("0x3f")](e,!1)):(this._updateController(r.head),null==i&&this[rl("0x3f")](e,!0)))})),null!==e[rl("0x2a")]?this._updateController(e[rl("0xb")]):this[rl("0x3f")](e,!1)})),this[rl("0x46")](e,rl("0x1e"),((t,e,n)=>{this[rl("0x5b")](e,"change:previous"),this._handleControllerBuffer[rl("0x43")](e),this[rl("0x70")][rl("0x47")](e)&&this[rl("0x6d")](e),n&&this[rl("0x23")](n[rl("0xb")])})),this[rl("0x46")](e,"suggestionChanged",((t,e)=>{this._updateController(e)})),this[rl("0x46")](n,rl("0x1c"),(()=>{this._refreshActiveMarkers()})),this.listenTo(i,rl("0x4d"),((t,{threadId:n,isFromAdapter:r})=>{if(r||!e.hasSuggestion(n))return;const i=e[rl("0x3c")](n);this[rl("0x70")][rl("0x4b")](i)[rl("0x45")][rl("0x3")]()}),{priority:rl("0x64")})}[rl("0x49")](){const t=this[rl("0x5e")][rl("0x27")].get(rl("0x25")),e=this[rl("0x5e")][rl("0x27")].get(rl("0x0")),n=Array[rl("0x29")](t[rl("0x1")],(t=>t[rl("0x36")]))[rl("0x1b")]((t=>this[rl("0x63")].has(t))),r=[];for(const t of n){const e=this._viewToController[rl("0x4b")](t)[rl("0x11")][rl("0x6b")]();r[rl("0x18")](...e[rl("0x7")](((t,e)=>[...t,...e[rl("0x66")]()]),[]))}e[rl("0x19")]=r}[rl("0x31")](t){const n=(0,i.createDropdown)(t,i.SplitButtonView),r=this.editor.commands[rl("0x4b")]("trackChanges"),o=Jr(t,rl("0x6f"));n[rl("0x39")][rl("0x4f")]({tooltip:o,label:o,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-2024, 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.buttonView[rl("0x69")]("isOn").to(r,rl("0x32")),n.buttonView.on(rl("0x52"),(()=>{r[rl("0x52")](),this.editor[rl("0x6a")][rl("0x45")].focus()}));const s=new e.Collection,x=[{type:rl("0x17"),model:{withText:!0,label:o,commandName:"trackChanges"}},{type:"separator"},{type:rl("0x2c"),model:{withText:!0,label:Jr(t,"Accept all suggestions"),commandName:rl("0x44")}},{type:"button",model:{withText:!0,label:Jr(t,"Accept all selected suggestions"),commandName:rl("0xf")}},{type:rl("0x2c"),model:{withText:!0,label:Jr(t,rl("0x14")),commandName:rl("0x59")}},{type:rl("0x2c"),model:{withText:!0,label:Jr(t,"Discard all selected suggestions"),commandName:"discardSelectedSuggestions"}}];for(const t of x){let e={type:"separator"};if(t[rl("0x11")]){const n=new i.ViewModel(t[rl("0x11")]),r=this[rl("0x5e")][rl("0x6")][rl("0x4b")](n[rl("0x13")]);n.bind(rl("0x4e"),"isEnabled").to(r,"value",rl("0x58")),e={type:t.type,model:n}}s[rl("0x67")](e)}(0,i.addListToDropdown)(n,s);const a=x[rl("0x1b")]((t=>null!=t[rl("0x11")]))[rl("0x2d")]((t=>this[rl("0x5e")][rl("0x6")][rl("0x4b")](t[rl("0x11")][rl("0x13")]))),c=n[rl("0x39")];return c[rl("0x35")].unbind(rl("0x58")),c.arrowView[rl("0x1f")](rl("0x58")),c[rl("0x35")][rl("0x69")](rl("0x58")).to(r,"isEnabled"),c[rl("0x34")][rl("0x69")](rl("0x58"))[rl("0x5c")](a,rl("0x58"),((...t)=>t[rl("0x41")]((t=>t)))),n.on(rl("0x52"),(t=>{this.editor[rl("0x52")](t.source[rl("0x13")]),this[rl("0x5e")][rl("0x6a")][rl("0x45")].focus()})),n}[rl("0x37")](t){const e=this.editor,n=e[rl("0x65")],r=e.plugins[rl("0x4b")](rl("0x25")),i=e[rl("0x27")][rl("0x4b")]("CommentsRepository"),s=e.plugins[rl("0x4b")]("EditorAnnotations"),x=e[rl("0x27")].get(o.Users).me,a=n.get(rl("0x55"))[rl("0x2f")],{CommentsListView:c,CommentThreadInputView:l}=e[rl("0x27")].get(rl("0x3b"));let u,d;this[rl("0x1a")][rl("0x47")](t.id)?(d=this[rl("0x1a")][rl("0x4b")](t.id),u=d[rl("0x12")]):(u=new a(e[rl("0x28")],t,x,{disableComments:this[rl("0x6e")],editorConfig:n[rl("0x4b")](rl("0x40")),maxCommentsWhenCollapsed:n[rl("0x4b")](rl("0x53")),maxThreadTotalWeight:n[rl("0x4b")](rl("0x5a")),maxCommentCharsWhenCollapsed:n[rl("0x4b")](rl("0xc")),formatDateTime:(0,o.getDateTimeFormatter)(n[rl("0x4b")](rl("0x28"))),CommentView:n[rl("0x4b")](rl("0x60"))[rl("0x33")],CommentsListView:c,CommentThreadInputView:l}),u[rl("0x57")].on(rl("0x52"),(()=>{e[rl("0x6a")][rl("0x45")][rl("0x3")]()})),u[rl("0xa")].on(rl("0x52"),(()=>{e.editing.view[rl("0x3")]()})),d=r[rl("0x24")](this[rl("0x5e")][rl("0x28")],u),d[rl("0x69")](rl("0x1d")).to(u,rl("0x1d")),d[rl("0x69")](rl("0x5")).to(u),d[rl("0x69")](rl("0x6c")).to(u,rl("0x6c"),(t=>rl("0x26")+t)),this[rl("0x1a")].set(t.id,d));const g=i.createCommentThreadController(t.commentThread,u),f=new Gc(e,t,u,g),h=t[rl("0x6b")]()[rl("0x1b")]((t=>t[rl("0x5f")]));u.descriptionParts=e.plugins[rl("0x4b")](rl("0x0"))[rl("0x8")][rl("0x42")](h),this[rl("0x70")][rl("0x4f")](t,f),this._viewToController.set(u,f);const m=r[rl("0x15")]({view:d,target:()=>{const n=[],r=t[rl("0x6b")]()[rl("0x1b")]((t=>t.isInContent));for(const t of r)n[rl("0x18")](...t.getMarkers());return(0,o.getAllMarkersDomElementsSorted)(e[rl("0x6a")],n)},type:()=>rl("0x26")+f[rl("0x45")].type});i[rl("0x68")](u,m),r.add(m),s[rl("0xe")](m)}[rl("0x6d")](t){const e=this[rl("0x5e")].plugins[rl("0x4b")](rl("0x50")),n=this[rl("0x5e")].plugins[rl("0x4b")](rl("0x25")),r=this[rl("0x70")][rl("0x4b")](t),i=r[rl("0x45")],o=n[rl("0x20")](i);e[rl("0x21")](i),o&&n[rl("0x10")](o),this[rl("0x70")][rl("0x43")](t),this[rl("0x63")][rl("0x43")](i),r[rl("0x51")]()}_updateController(t){if(!t[rl("0x5f")]||!this[rl("0x70")].has(t))return;const e=this[rl("0x5e")][rl("0x27")][rl("0x4b")](rl("0x0")),n=this._suggestionToController[rl("0x4b")](t),r=t[rl("0x6b")]();n[rl("0x45")].descriptionParts=e[rl("0x8")].getDescriptions(r)}[rl("0x51")](){for(const t of this._suggestionToController[rl("0x38")]())this[rl("0x6d")](t);for(const t of this._annotationViews[rl("0x48")]())t.mainView.destroy();super.destroy()}}var ol,sl,xl=["addSuggestion","Comments","getSuggestion","plugins","TrackChanges","editor","adapter","get"];ol=xl,sl=122,function(t){for(;--t;)ol.push(ol.shift())}(++sl);var al=function(t,e){return xl[t-=0]};class cl extends t.Plugin{static get requires(){return[Ac,il,al("0x7")]}static get pluginName(){return al("0x2")}set[al("0x4")](t){this.editor.plugins.get(Ac)[al("0x4")]=t}get[al("0x4")](){return this[al("0x3")][al("0x1")][al("0x5")](Ac)[al("0x4")]}[al("0x6")](t){return this[al("0x3")][al("0x1")].get(Ac).addSuggestionData(t)}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[al("0x3")][al("0x1")].get(Ac).getSuggestions({skipNotAttached:t,toJSON:e})}[al("0x0")](t){return this[al("0x3")][al("0x1")][al("0x5")](Ac).getSuggestion(t)}}const ll=["TrackChangesDataGetter","useAnonymousUser","acceptAllSuggestions","define","set","createDocumentFragment","getRootsAttributes","get","result","getSuggestions","trackChangesData","getRootNames","TrackChangesEditing","discardAllSuggestions","TrackChangesData","editor","reduce","addSuggestionData","appendChild","editorCreator","trackChangesData.editorCreator","init","Users","getDataWithAcceptedSuggestions","addUser","users","data","map","Pagination","getUser","plugins","document","end","requires","getDataWithDiscardedSuggestions","_adapter","model","getFullData","create","config","CommentsRepository","name","pluginName"];var ul,dl;ul=ll,dl=243,function(t){for(;--t;)ul.push(ul.shift())}(++dl);const gl=function(t,e){return ll[t-=0]},fl=[gl("0x0")];class hl extends t.Plugin{static get[gl("0x5")](){return[Ac]}static get[gl("0xe")](){return gl("0x1d")}[gl("0x24")](){const t=this[gl("0x1e")];if(t[gl("0xb")][gl("0x12")](gl("0x23"),(e=>{const n=t[gl("0x8")][gl("0x3")].getRootNames().reduce(((t,e)=>(t[e]="",t)),{});return t.constructor[gl("0xa")](n,e)})),"function"!=typeof t[gl("0xb")][gl("0x16")](gl("0x19"))[gl("0x22")])throw new e.CKEditorError("track-changes-data-invalid-editor-creator")}[gl("0x26")](t){return bl(this[gl("0x1e")],!0,t)}[gl("0x6")](t){return bl(this[gl("0x1e")],!1,t)}}class ml extends t.Plugin{static get[gl("0xe")](){return gl("0xf")}constructor(t){super(t),this[gl("0x17")]=gl("0x4")}[gl("0x24")](){this[gl("0x1e")][gl("0x2")][gl("0x16")](gl("0xc"))[gl("0x7")]={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this.editor[gl("0x2")][gl("0x16")](gl("0x1b"))[gl("0x7")]=null}}function pl(t){return void 0!==t[gl("0x15")]}async function bl(t,e,n){const r=(0,o.sanitizeEditorConfig)(t,fl);r[gl("0x2")].push(Ac,ml),r.rootsAttributes=pl(t)?t.getRootsAttributes():void 0;const i=document[gl("0x14")](),s=t[gl("0xb")][gl("0x16")](gl("0x19"))[gl("0x22")],x=await s(r,(()=>function(t){const e=document.createElement("div");return t[gl("0x21")](e),e}(i)));!function(t,e){const n=t[gl("0x8")][gl("0x3")][gl("0x1a")]()[gl("0x1f")](((e,n)=>(e[n]=t[gl("0x29")][gl("0x16")]({rootName:n}),e)),{}),r=t[gl("0x2")][gl("0x16")](gl("0x25"))[gl("0x28")][gl("0x2a")]((t=>({id:t.id,name:t[gl("0xd")]}))),i=t[gl("0x2")][gl("0x16")](gl("0x1b"))[gl("0x18")]({skipNotAttached:!0,toJSON:!0}),o=e.plugins[gl("0x16")]("Users"),s=e[gl("0x2")][gl("0x16")]("TrackChangesEditing");for(const t of r)o[gl("0x1")](t.id)||o[gl("0x27")](t);o.me||o[gl("0x10")]();for(const t of i)s[gl("0x20")](t);e.data[gl("0x13")](n)}(t,x),x.execute(gl(e?"0x11":"0x1c"));const a=pl(x)?x[gl("0x9")](n):x[gl("0x29")][gl("0x16")](n);return await x.destroy(),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=r})();
|