@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230909.0 → 0.0.0-nightly-20230910.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-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
4
4
|
* For licensing, see LICENSE.md.
|
|
5
|
-
*/(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var s=e[o];if(void 0!==s)return s.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>dc,TrackChanges:()=>Ic,TrackChangesData:()=>Oc,TrackChangesEditing:()=>Wx});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),a=n(995);const x=["_disableUnsupportedCommands","editor","_enabledCommands","isEnabled","commands","_enableCommands","execute","_isEnabledBasedOnSelection","refresh","value","has","forceDisabled","TrackChangesCommand","affectsData","clearForceDisabled"];var c,l;c=x,l=399,function(t){for(;--t;)c.push(c.shift())}(++l);const d=function(t,e){return x[t-=0]};class u extends t.Command{constructor(t,e){super(t),this._enabledCommands=e,this[d("0x0")]=!1,this[d("0xe")](),this[d("0xd")]=!1}[d("0xe")](){this[d("0x9")]=!0}[d("0xc")](){this[d("0x0")]=!this[d("0x0")],this.value?this[d("0x6")]():this[d("0xb")]()}[d("0x6")](){for(const t of this[d("0x7")].commands[d("0xa")]())t[d("0x4")]&&!this._enabledCommands[d("0x1")](t)&&t[d("0x2")](d("0x3"))}[d("0xb")](){for(const t of this[d("0x7")][d("0xa")][d("0xa")]())t[d("0x4")]&&!this[d("0x8")][d("0x1")](t)&&t[d("0x5")](d("0x3"))}}const g=["model","isEnabled","acceptSuggestion","_suggestions","get","getRanges","editor","_isEnabledBasedOnSelection","TrackChangesEditing","execute","track-changes-accept-suggestion-not-found"];var m,f;m=g,f=172,function(t){for(;--t;)m.push(m.shift())}(++f);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[h("0x7")]=e,this.refresh(),this[h("0x0")]=!1}refresh(){this[h("0x5")]=!0}[h("0x2")](t){const n=this[h("0x7")][h("0x8")](t);if(!n)throw new e.CKEditorError(h("0x3"),this);const o=n[h("0x9")]();this[h("0xa")][h("0x4")].canEditAt(o)&&this[h("0xa")].plugins[h("0x8")](h("0x1"))[h("0x6")](n)}}const b=["editor","refresh","get","canEditAt","model","execute","_suggestions","isEnabled","track-changes-discard-suggestion-not-found","_isEnabledBasedOnSelection","plugins"];var E,_;E=b,_=158,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class C extends t.Command{constructor(t,e){super(t),this._suggestions=e,this[T("0x8")](),this[T("0x5")]=!1}[T("0x8")](){this[T("0x3")]=!0}[T("0x1")](t){const n=this[T("0x2")][T("0x9")](t);if(!n)throw new e.CKEditorError(T("0x4"),this);const o=n.getRanges();this.editor[T("0x0")][T("0xa")](o)&&this[T("0x7")][T("0x6")].get("TrackChangesEditing").discardSuggestion(n)}}const y=["isMultiRange","from","execute","next","getRanges","end","type","isArray","createPositionAt","splice","isTouching","join","replace","schema"," [color ","createPositionAfter","sort","isIntersecting","map","createPositionBefore","length","deletion","change","color","push","isCollapsed","isObject","isInContent"];var k,A;k=y,A=231,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x9")](((t,e)=>"deletion"==t[v("0x1b")]&&v("0xe")!=e[v("0x1b")]?-1:v("0xe")!=t[v("0x1b")]&&"deletion"==e[v("0x1b")]?1:0))}function I(t,e){let n,o=0;const s=[],r=e[v("0x6")];for(;o<t[v("0xd")];){const i=t[o],a=t[o+1];n||(n=e[v("0xc")](i)),S(e,i,a)||(s[v("0x11")](e.createRange(n,r[v("0x13")](i)?e.createPositionAfter(i):e[v("0x1")](i,v("0x1a")))),n=null),o++}return s}function S(t,e,n){if(!n)return!1;const o=t[v("0x8")](e),s=t[v("0xc")](n);return o[v("0x3")](s)}function L(t,e,n){for(;n.length;){const o=n[v("0x2")](0,100);t[v("0xf")]((()=>{for(const t of o)t[v("0x14")]&&e[v("0x17")](t.id)}))}}const N=["getRanges","model","_suggestions","_command","values","isEnabled","editor","from","canEditAt","refresh","execute","some"];var M,w;M=N,w=137,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("0xa")]=e,this[O("0x9")]=n,this[O("0x4")](),this._isEnabledBasedOnSelection=!1}[O("0x4")](){const t=Array[O("0x2")](this._suggestions[O("0xb")]())[O("0x6")]((t=>t.isInContent));this[O("0x0")]=this[O("0xa")][O("0x0")]&&t}[O("0x5")](){const t=R(Array[O("0x2")](this._suggestions[O("0xb")]()));for(const e of t){const t=e[O("0x7")]();if(!this[O("0x1")][O("0x8")][O("0x3")](t))return}L(this[O("0x1")][O("0x8")],this[O("0xa")],t)}}const P=["execute","_isEnabledBasedOnSelection","editor","document","isEnabled","size","model","_command","_selectedSuggestions","canEditAt","selection","values","refresh"];var D,B;D=P,B=137,function(t){for(;--t;)D.push(D.shift())}(++B);const j=function(t,e){return P[t-=0]};class U extends t.Command{constructor(t,e,n){super(t),this[j("0x0")]=e,this._suggestions=n,this[j("0x1")]=new Set,this[j("0x5")](),this[j("0x7")]=!1}refresh(){const t=this[j("0x8")][j("0xc")][j("0x9")][j("0x3")],e=Array.from(this._suggestions[j("0x4")]());this[j("0x1")]=function(t,e){const n=Array[v("0x16")](t[v("0x19")]()),o=new Set;for(const s of e)if(s.isInContent)for(const e of n)for(const n of s[v("0x19")]())(e[v("0xa")](n)||t[v("0x12")]&&!s[v("0x15")]&&s[v("0x18")]&&n[v("0x1a")][v("0x3")](e.start))&&o.add(s);return o}(t,e),this.isEnabled=this[j("0x0")][j("0xa")]&&!!this._selectedSuggestions[j("0xb")]}[j("0x6")](){const t=R(Array.from(this[j("0x1")]));for(const e of t){const t=e.getRanges();if(!this[j("0x8")][j("0xc")][j("0x2")](t))return}L(this.editor.model,this[j("0x0")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const z=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var W=Array.prototype.splice;const V=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():W.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=z(e,t);return n<0?void 0:e[n][1]};const q=function(t){return z(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=z(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const J=$;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,at=rt.toString,xt=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,xt),n=t[xt];try{t[xt]=void 0;var o=!0}catch(t){}var s=at.call(t);return o&&(e?t[xt]=n:delete t[xt]),s};var lt=Object.prototype.toString;const dt=function(t){return lt.call(t)};var ut=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ut&&ut in Object(t)?ct(t):dt(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const It=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const St=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=St(t,e);return It(n)?n:void 0};const Nt=Lt(ot,"Map");const Mt=Lt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=wt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Wt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=Wt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Wt(this,t).get(t)};const qt=function(t){return Wt(this,t).has(t)};const Xt=function(t,e){var n=Wt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var a=e[r],x=o?o(n[a],t[a],a,n,t):void 0;void 0===x&&(x=t[a]),s?ne(n,a,x):se(n,a,x)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const ae=function(t){return null!=t&&"object"==typeof t};const xe=function(t){return ae(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,de=ce.propertyIsEnumerable;const ue=xe(function(){return arguments}())?xe:function(t){return ae(t)&&le.call(t,"callee")&&!de.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return ae(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Ie=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Se=Ie&&Ie.isTypedArray;const Le=Se?ke(Se):ye;var Ne=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&ue(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,a=i?ie(t.length,String):[],x=a.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,x))||a.push(c);return a};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const We=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?Me(t,!0):We(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Je=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const an=Fe(Object.getPrototypeOf,Object);const xn=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=an(t);return e}:tn;const cn=function(t,e){return re(t,xn(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const dn=function(t){return ln(t,Ue,on)};const un=function(t){return ln(t,Ve,xn)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const In=Rn;var Sn=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Sn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(an(t))};const Wn=function(t){return ae(t)&&"[object Map]"==In(t)};var Vn=Ie&&Ie.isMap;const Kn=Vn?ke(Vn):Wn;const qn=function(t){return ae(t)&&"[object Set]"==In(t)};var Xn=Ie&&Ie.isSet;const $n=Xn?ke(Xn):qn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var a,x=1&n,c=2&n,l=4&n;if(o&&(a=r?o(e,s,r,i):o(e)),void 0!==a)return a;if(!mt(e))return e;var d=ge(e);if(d){if(a=Ln(e),!x)return Ze(e,a)}else{var u=In(e),g=u==Qn||"[object GeneratorFunction]"==u;if(be(e))return Qe(e,x);if(u==Zn||u==Jn||g&&!r){if(a=c||g?{}:zn(e),!x)return c?cn(e,Ke(a,e)):sn(e,Ge(a,e))}else{if(!Yn[u])return r?e:{};a=Un(e,u,x)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,a),$n(e)?e.forEach((function(s){a.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){a.set(r,t(s,n,o,r,e,i))}));var f=d?void 0:(l?c?un:dn:c?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(a,r,t(s,n,o,r,e,i))})),a};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||ae(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const ao=io;var xo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=ao(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(xo,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=po(e,t)).length,i=r-1,a=t;null!=a&&++s<r;){var x=bo(e[s]),c=n;if("__proto__"===x||"constructor"===x||"prototype"===x)return t;if(s!=i){var l=a[x];void 0===(c=o?o(l,x,a):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(a,x,c),a=a[x]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,a=t.length,x=e.length;if(a!=x&&!(i&&x>a))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var d=-1,u=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++d<a;){var m=t[d],f=e[d];if(o)var h=i?o(f,m,d,e,t,r):o(m,f,d,t,e,r);if(void 0!==h){if(h)continue;u=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){u=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){u=!1;break}}return r.delete(t),r.delete(e),u};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const Mo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var a=Io;case"[object Set]":var x=1&o;if(a||(a=So),t.size!=e.size&&!x)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(a(t),a(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,a=dn(t),x=a.length;if(x!=dn(e).length&&!i)return!1;for(var c=x;c--;){var l=a[c];if(!(i?l in e:wo.call(e,l)))return!1}var d=r.get(t),u=r.get(e);if(d&&u)return d==e&&u==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<x;){var f=t[l=a[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===p?f===h||s(f,h,n,o,r):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),a=ge(e),x=i?Po:In(t),c=a?Po:In(e),l=(x=x==Fo?Do:x)==Do,d=(c=c==Fo?Do:c)==Do,u=x==c;if(u&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(u&&!l)return r||(r=new Yt),i||Le(t)?Ro(t,e,n,o,s,r):Mo(t,e,x,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=d&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!u&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!ae(e)&&!ae(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const zo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const Wo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Vo=function(t,e){return e.length<2?t:zo(t,Wo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Vo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["getContainedElement","previous","addRange","@external","isMultiRange","_onDiscard","getItems","split","getRange","head","toJSON","map","isIntersecting","next","discard","push","set","addMarker","change","size","get","createdAt","type","addMarkerName","_isDataLoaded","_onAttributesChange","_markerNames","getMarkerNames","_saved","getRanges","creator","hasComments","end","removeMarker","getMultiRangeId","clear","delete","attributes","removeMarkers","getMarkers","length","onAccept","author","markers","filter","isExternal","commentThread","data","decorate","accept","subType","from","_model","onAttributesChange","removeAttribute","getFirstMarker","nodeBefore","getAllAdjacentSuggestions","isInContent","add"];var $o,Jo;$o=Xo,Jo=247,function(t){for(;--t;)$o.push($o.shift())}(++Jo);const Qo=function(t,e){return Xo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Qo("0x11")]=!1,this.id=e.id,this[Qo("0xf")]=e[Qo("0xf")],this.subType=e.subType||null,this[Qo("0x23")]=e.author,this[Qo("0x17")]=e.creator||e[Qo("0x23")],this[Qo("0x26")]=Boolean(e[Qo("0x1e")]&&e[Qo("0x1e")][Qo("0x38")]),this[Qo("0x28")]=null,this[Qo("0x2d")]=t,this._onAccept=e[Qo("0x22")],this[Qo("0x3a")]=e.onDiscard,this[Qo("0x12")]=e[Qo("0x2e")],this[Qo("0x13")]=new Set,this.createdAt=null,this.set("authoredAt",null),this[Qo("0x9")](Qo("0x1e"),e[Qo("0x1e")]||{}),this.set("previous",null),this[Qo("0x9")]("next",null),this[Qo("0x9")](Qo("0x27"),null),this[Qo("0x9")](Qo("0x15"),!1),this[Qo("0x29")](Qo("0x2a")),this[Qo("0x29")]("discard")}get[Qo("0x2")](){let t=this;for(;t[Qo("0x36")];)t=t[Qo("0x36")];return t}get[Qo("0x18")](){return!!this[Qo("0x27")]&&this[Qo("0x27")][Qo("0x21")]>0}get[Qo("0x39")](){return 0!=this[Qo("0x13")][Qo("0xc")]&&6==Array[Qo("0x2c")](this[Qo("0x13")])[0][Qo("0x0")](":")[Qo("0x21")]}get[Qo("0x33")](){return null!==this[Qo("0x30")]()}[Qo("0x10")](t){this[Qo("0x13")][Qo("0x34")](t)}getMarkerNames(){return Array[Qo("0x2c")](this[Qo("0x13")])}getMarkers(){return this[Qo("0x14")]().map((t=>this._model[Qo("0x24")][Qo("0xd")](t)))[Qo("0x25")]((t=>t))}getFirstMarker(){return this[Qo("0x20")]()[0]||null}removeMarkers(){this[Qo("0x2d")][Qo("0xb")]((t=>{for(const e of this.getMarkers())t[Qo("0x1a")](e)})),this[Qo("0x13")][Qo("0x1c")]()}[Qo("0x1a")](t){this[Qo("0x2d")].change((e=>{e.removeMarker(t)})),this[Qo("0x13")][Qo("0x1d")](t)}[Qo("0x37")](t){const e="suggestion:"+this.type+":"+this[Qo("0x2b")]+":"+this.id+":"+this[Qo("0x17")].id+":"+Zo[Qo("0x1b")]();this[Qo("0x10")](e),this._model.change((n=>{n[Qo("0xa")](e,{range:t,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(t){for(const e of this[Qo("0x16")]())if(e[Qo("0x5")](t))return!0;return!1}[Qo("0x16")](){return this[Qo("0x20")]()[Qo("0x4")]((t=>t[Qo("0x1")]()))}[Qo("0x3b")](){return this[Qo("0x16")]().reduce(((t,e)=>[...t,...e[Qo("0x3b")]()]),[])}getFirstRange(){var t;return(null===(t=this.getFirstMarker())||void 0===t?void 0:t[Qo("0x1")]())||null}[Qo("0x35")](){const t=this.getRanges();if(1!=t.length)return null;const e=t[0],n=e.start.nodeAfter,o=e[Qo("0x19")][Qo("0x31")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0x2a")](){this._onAccept(this.getRanges(),this[Qo("0x28")],this[Qo("0x1e")]),this[Qo("0x1f")]()}[Qo("0x7")](){this[Qo("0x3a")](this[Qo("0x16")](),this[Qo("0x28")],this[Qo("0x1e")]),this[Qo("0x1f")]()}[Qo("0x32")](){const t=[];let e=this.head;for(;e;)t[Qo("0x8")](e),e=e[Qo("0x6")];return t}setAttribute(t,e){const n=eo(this.attributes);_o(n,t,e),Go(n,this[Qo("0x1e")])||(this[Qo("0x1e")]=n,this[Qo("0x12")](n))}[Qo("0x2f")](t){const e=eo(this[Qo("0x1e")]);qo(e,t),Go(e,this[Qo("0x1e")])||(this[Qo("0x1e")]=e,this[Qo("0x12")](this[Qo("0x1e")]))}[Qo("0x3")](){return{id:this.id,type:this[Qo("0x2b")]?this.type+":"+this[Qo("0x2b")]:this[Qo("0xf")],authorId:this[Qo("0x17")].id,createdAt:this[Qo("0xe")],hasComments:this[Qo("0x18")],data:this[Qo("0x28")],attributes:this[Qo("0x1e")]}}static[Qo("0x1b")](){return(0,e.uid)().substr(1,5)}}function Yo(t,e,n){const o=t.t;switch(e){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* change table properties":return o("*Format:* change table properties");case"*Format:* change table cell properties":return o("*Format:* change table cell properties");case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Format:* replace image URL":return o("*Format:* replace image URL");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set format to:* %0":return o("*Set format to:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return o({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return o({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return o({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);default:return e}}const ts=["label","isEqual","pop","_customCallbacks","replace","skip","*Merge:* %0","end","*Remove:* %0","_locale","registerElementLabel","isEmpty","_addDescriptionItems","length","insertion","ELEMENT_SPACE","push","removeContainer","isObject","getFirstRange","isInContent","text","element","match","set","get","REPLACE_TEXT","type","*Split:* %0","Container","$text","getWalker","elementEnd","*Insert:* %0","_itemLabels","indexOf","$1 $2","removeEmptyContainer","normal","name","start","quantity","softBreak","nextSibling","$textProxy","previousSibling","EmptyContainer","_schema","_resolveDescriptionItems","addEmptyContainer","removeObject","getItemLabel","getDescriptions","data","remove","deletion","add","addObject","Object","_itemLabelsCallbacks"];var es,ns;es=ts,ns=335,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class ss{constructor(t,e){this[os("0x1c")]=[],this[os("0x3b")]=new Map,this[os("0x18")]=[],this[os("0xc")]=t,this[os("0x22")]=e}[os("0x11")](t){const e=[];for(let n=0;n<t[os("0x26")];n++){const o=t[n];if(!o[os("0x2d")])continue;let s=!1;for(const t of this._customCallbacks){const n=t(o);if(n){os("0x34")in n&&e.push(n),s=!0;break}}if(!s){this[os("0x25")](e,o);const s=t[n+1];if(s&&!o[os("0x2c")]()[os("0x20")][os("0x1a")](s[os("0x2c")]()[os("0x5")])){const t=e[e.length-1],n="insertion"==o[os("0x34")]?os("0x15"):os("0x13");t&&os("0x2e")==t[os("0x34")]&&(t[n]+="\n")}}}return this._resolveDescriptionItems(e)}registerDescriptionCallback(t){this[os("0x1c")].push(t)}[os("0x23")](t,n,o=e.priorities[os("0x3")]){"function"==typeof t?(0,e.insertToPriorityArray)(this._itemLabelsCallbacks,{matchingCallback:t,label:n,priority:o}):this._itemLabels[os("0x31")](t,n)}[os("0x10")](t,e=1){let n;for(const e of this[os("0x18")])if(e.matchingCallback(t)){n=e[os("0x19")];break}return n||(n=this._itemLabels[os("0x32")](t[os("0x4")])),n?n(e):1!==e?e+" "+t.name+"s":""+t[os("0x4")]}_addDescriptionItems(t,e){const n=e.getFirstRange()[os("0x38")](),o=os("0x27")==e[os("0x34")]?os("0x15"):os("0x13");for(const e of n){const s=e.item,r=t[t[os("0x26")]-1];if(s.is(os("0x9")))r&&r.type[os("0x0")](os("0x36"))>-1&&t[os("0x1b")](),r&&"text"==r[os("0x34")]?r[o]+=s.data:t.push({type:os("0x2e"),add:os("0x15")==o?s[os("0x12")]:"",remove:os("0x13")==o?s[os("0x12")]:""});else if(this[os("0xc")][os("0x2b")](s)){const i=s;if(r&&r[os("0x34")][os("0x0")]("Container")>-1&&t[os("0x1b")](),os("0x39")==e.type)continue;r&&r[os("0x34")]==o+os("0x17")&&r[os("0x2f")][os("0x4")]==i.name?r[os("0x6")]++:t[os("0x29")]({type:o+os("0x17"),element:i,quantity:1}),n[os("0x1e")]((t=>!(os("0x39")==t.type&&t.item==s)))}else if(this[os("0xc")].checkChild(s,os("0x37"))||s.is(os("0x2f"),os("0x7"))){const n=s;if(os("0x15")==o&&"elementStart"==e.type||os("0x13")==o&&os("0x39")==e[os("0x34")])continue;if(r&&-1==r[os("0x34")][os("0x0")](os("0x36"))){os("0x2e")==r.type&&(r[o]+="\n");continue}let i;if(i=os("0x15")==o?n[os("0x8")]&&!this._schema[os("0x2b")](n[os("0x8")])?n[os("0x8")]:null:n.previousSibling&&!this[os("0xc")][os("0x2b")](n[os("0xa")])?n[os("0xa")]:null,n[os("0x24")]||i&&i[os("0x24")]){const e=i&&i[os("0x24")]?i:n;r&&r[os("0x34")]==o+os("0xb")&&r[os("0x2f")].name==e[os("0x4")]?r[os("0x6")]++:t[os("0x29")]({type:o+"EmptyContainer",element:e,quantity:1})}else t[os("0x29")]({type:o+os("0x36"),element:n})}}}[os("0xd")](t){const e=this[os("0x22")],n=[];for(const o of t){switch(o.type){case os("0x2e"):if(o[os("0x15")]=o.add.replace(/(\S)\u000A+(\S)/g,os("0x1"))[os("0x1d")](/\u000A/g,""),o[os("0x13")]=o.remove[os("0x1d")](/(\S)\u000A+(\S)/g,os("0x1"))[os("0x1d")](/\u000A/g,""),""!=o[os("0x15")]&&""!=o[os("0x13")]){n[os("0x29")]({type:os("0x1d"),content:Yo(e,os("0x33"),['"'+o.remove+'"','"'+o[os("0x15")]+'"'])});continue}if(null!=o.add[os("0x30")](/^ +$/)){n[os("0x29")]({type:"insertion",content:Yo(e,os("0x3a"),Yo(e,os("0x28"),o.add[os("0x26")]))});continue}if(null!=o[os("0x13")].match(/^ +$/)){n[os("0x29")]({type:os("0x14"),content:Yo(e,os("0x21"),Yo(e,"ELEMENT_SPACE",o[os("0x13")][os("0x26")]))});continue}if(""!=o[os("0x15")]){n[os("0x29")]({type:os("0x27"),content:Yo(e,os("0x3a"),'"'+o[os("0x15")]+'"')});continue}n[os("0x29")]({type:os("0x14"),content:Yo(e,os("0x21"),'"'+o[os("0x13")]+'"')});continue;case os("0xe"):case os("0x16"):n[os("0x29")]({type:os("0x27"),content:Yo(e,os("0x3a"),this[os("0x10")](o[os("0x2f")],o[os("0x6")]))});continue;case os("0x2"):case os("0xf"):n[os("0x29")]({type:os("0x14"),content:Yo(e,"*Remove:* %0",this[os("0x10")](o[os("0x2f")],o[os("0x6")]))});continue;case"addContainer":n[os("0x29")]({type:"insertion",content:Yo(e,os("0x35"),this[os("0x10")](o.element,o.quantity))});continue;case os("0x2a"):n[os("0x29")]({type:os("0x14"),content:Yo(e,os("0x1f"),this[os("0x10")](o[os("0x2f")],o.quantity))});continue}n[os("0x29")](o)}return n}}const rs=["document","getSelectedBlocks","getAttribute","editor","_descriptionFactory","registerDescriptionCallback","left","contentLanguageDirection","ltr","format","checkAttribute","plugins","commandParams","selection","change","value","model","FORMAT_ALIGN_TO_CENTER","enableCommand","schema","commandName","locale","has","alignment","TrackChangesEditing","afterInit","markBlockFormat","FORMAT_ALIGN_TO_RIGHT","from"];var is,as;is=rs,as=229,function(t){for(;--t;)is.push(is.shift())}(++as);const xs=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[xs("0x1c")](){const t=this[xs("0x6")],e=t[xs("0x18")];if(!t.plugins[xs("0x19")]("AlignmentEditing"))return;const n=t[xs("0xe")].get(xs("0x1b"));n[xs("0x15")]("alignment",((e,o={})=>{let s=o[xs("0x12")];o.value||(s=xs("0xb")===t[xs("0x18")][xs("0xa")]?xs("0x9"):"right");const r=Array[xs("0x2")](this.editor.model[xs("0x3")][xs("0x10")][xs("0x4")]()).filter((t=>function(t,e,n){const o=t[xs("0x5")](xs("0x1a"))||null;return e[xs("0xd")](t,xs("0x1a"))&&n!=o}(t,this[xs("0x6")].model[xs("0x16")],s)));t[xs("0x13")][xs("0x11")]((()=>{for(const t of r)n[xs("0x0")](t,{commandName:xs("0x1a"),commandParams:[{value:s}]})}))})),n[xs("0x7")][xs("0x8")]((t=>{const{data:n}=t;if(n&&xs("0x1a")==n[xs("0x17")]){const t=n[xs("0xf")][0][xs("0x12")];return{type:xs("0xc"),content:Yo(e,"*Format:* %0",function(t){switch(t){case"left":return Yo(e,"FORMAT_ALIGN_TO_LEFT");case"right":return Yo(e,xs("0x1"));case"center":return Yo(e,xs("0x14"));case"justify":return Yo(e,"FORMAT_JUSTIFY_TEXT")}}(t))}}}))}}const ls=["type","ck-suggestion-marker-","parent","isAtEnd","listItem","writer","isLimit","markerName","isBlock","test","addClass","markerRange","previousPosition","consumable","elementEnd","hasAttribute","getWalker","mapper","name","nextSibling","listIndent","TrackChangesEditing","getCustomProperty","getItems","insert","isContent","includes","plugins","schema","element","push","get","bindElementToMarker","createRangeOn"];var ds,us;ds=ls,us=488,function(t){for(;--t;)ds.push(ds.shift())}(++us);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e[gs("0xb")]())s[gs("0x3")](t)&&o.push(n[gs("0x15")](s));return o}function fs(t){const e=[];if(t.is(gs("0x11"),gs("0x1a"))){let n=t[gs("0x7")];for(;n&&n.is(gs("0x11"),gs("0x1a"))&&n.getAttribute(gs("0x8"))>0;)e[gs("0x12")](n),n=n[gs("0x7")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t[gs("0xf")][gs("0x13")](gs("0x9"));return(s,r,i)=>{if(!i[gs("0x1")][gs("0x1f")](r.markerRange,s[gs("0x6")]))return;const a=r[gs("0x21")][gs("0x4")](),x=r[gs("0x21")].start,c=t.model[gs("0x10")];let l=null,d=null,u=!1,g=!1;for(const t of a){const e=t.item;u=u||c[gs("0xd")](e);const n=i[gs("0x5")].toViewElement(e);if(n&&n[gs("0xa")]("addHighlight"))return;gs("0x2")==t[gs("0x16")]&&c[gs("0x1e")](e)&&!c[gs("0x1c")](e)&&(e[gs("0x7")]||x[gs("0x19")]?l&&l[gs("0x18")]==e||(l=e,m(t[gs("0x0")]),g=!0):d=d||t[gs("0x0")])}function m(t){const s=i[gs("0x1b")].createUIElement("span",{class:gs("0x17")+e}),a=i[gs("0x5")].toViewPosition(t);n&&o.activeMarkers[gs("0xe")](r[gs("0x1d")])&&i[gs("0x1b")][gs("0x20")]("ck-suggestion-marker--active",s),i[gs("0x1b")][gs("0xc")](a,s),i[gs("0x5")][gs("0x14")](s,r[gs("0x1d")])}u||g||!d||m(d)}}const ps=["FORMAT_CODE","forceValue","strikethrough","value","FORMAT_STRIKETHROUGH","FORMAT_SUBSCRIPT","getRanges","editor","SuperscriptEditing","TrackChangesEditing","SubscriptEditing","locale","FORMAT_ITALIC","superscript","italic","document","toLowerCase","underline","format","subscript","*Remove format:* %0","BoldEditing","from","*Format:* %0","FORMAT_UNDERLINE","ItalicEditing","StrikethroughEditing","slice","change","registerDescriptionCallback","FORMAT_SUPERSCRIPT","selection","get","CodeEditing","plugins","markInlineFormat"];var bs,Es;bs=ps,Es=431,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=[_s("0x16"),_s("0x1a"),"UnderlineEditing",_s("0x22"),_s("0x1b"),_s("0xb"),_s("0x9")];class Cs extends t.Plugin{afterInit(){const t=this[_s("0x8")],e=t.model,n=t[_s("0x23")].get(_s("0xa")),o=t[_s("0xc")];for(const o of Ts){if(!t[_s("0x23")].has(o))continue;const s=o[_s("0x1c")](0,-7)[_s("0x11")](),r=t.commands[_s("0x21")](s);n.enableCommand(s,((t,o={})=>{const i=e[_s("0x10")][_s("0x20")];if(i.isCollapsed)return void t(o);const a=void 0!==o.forceValue?o[_s("0x2")]:!r[_s("0x4")];e[_s("0x1d")]((()=>{const t=Array[_s("0x17")](i[_s("0x7")]());for(const o of t){const t=a?[o]:ms(s,o,e);for(const e of t)n[_s("0x0")](e,{commandName:s,commandParams:[{forceValue:a}]})}}))}))}function s(t,e){n._descriptionFactory[_s("0x1e")]((n=>{const{data:s}=n;if(s&&s.commandName===t)return s.commandParams[0].forceValue?{type:"format",content:Yo(o,_s("0x18"),e)}:{type:_s("0x13"),content:Yo(o,_s("0x15"),e)}}))}s("bold",Yo(o,"FORMAT_BOLD")),s(_s("0xf"),Yo(o,_s("0xd"))),s(_s("0x12"),Yo(o,_s("0x19"))),s("code",Yo(o,_s("0x1"))),s(_s("0x3"),Yo(o,_s("0x5"))),s(_s("0x14"),Yo(o,_s("0x6"))),s(_s("0xe"),Yo(o,_s("0x1f")))}}const ys=["plugins","document","has","schema","value","*Remove format:* %0","parent","change","editor","ELEMENT_BLOCK_QUOTE","getSelectedBlocks","locale","from","forceValue","selection","checkChild","blockQuote","afterInit","name","filter","registerDescriptionCallback","$root","format","enableCommand","*Format:* %0","BlockQuoteEditing","get","model","commands"];var ks,As;ks=ys,As=227,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0x16")](){const t=this[vs("0xd")],e=t[vs("0x10")];if(!t[vs("0x5")][vs("0x7")](vs("0x1")))return;const n=t[vs("0x5")][vs("0x2")]("TrackChangesEditing"),o=this.editor[vs("0x4")][vs("0x2")](vs("0x15"));n[vs("0x1c")]("blockQuote",((e,s={})=>{const r=this[vs("0xd")].model[vs("0x6")][vs("0x13")],i=s&&void 0!==s[vs("0x12")]?s.forceValue:!o[vs("0x9")];let a=[];if(i){const e=Array.from(r[vs("0xf")]())[vs("0x18")]((t=>Is(t)||function(t,e){const n=e[vs("0x14")](t[vs("0xb")],vs("0x15")),o=e[vs("0x14")]([vs("0x1a"),vs("0x15")],t);return n&&o}(t,this[vs("0xd")][vs("0x3")][vs("0x8")])));a=I(e,t[vs("0x3")])}else{const e=Array[vs("0x11")](r[vs("0xf")]())[vs("0x18")]((t=>Is(t)));a=I(e,t[vs("0x3")])}t.model[vs("0xc")]((()=>{for(const t of a)n.markBlockFormat(t,{commandName:vs("0x15"),commandParams:[{forceValue:i}]})}))})),n._descriptionFactory[vs("0x19")]((t=>{const{data:n}=t;if(n&&vs("0x15")==n.commandName){const t=Yo(e,vs("0xe"));return n.commandParams[0].forceValue?{type:vs("0x1b"),content:Yo(e,vs("0x0"),t)}:{type:"format",content:Yo(e,vs("0xa"),t)}}}))}}function Is(t){return vs("0x15")==t.parent[vs("0x17")]}const Ss=["get","ckbox","TrackChangesEditing","plugins","editor","commands","afterInit"];var Ls,Ns;Ls=Ss,Ns=198,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const Ms=function(t,e){return Ss[t-=0]};class ws extends t.Plugin{[Ms("0x4")](){const t=this[Ms("0x2")];t[Ms("0x3")][Ms("0x5")](Ms("0x6"))&&t[Ms("0x1")].get(Ms("0x0")).enableCommand(Ms("0x6"))}}const Os=["editor","*Format:* %0","codeBlock","ELEMENT_CODE_BLOCK","formatBlock","model","registerElementLabel","selection","_descriptionFactory","label","get","config","commandParams","forceValue","getSelectedBlocks","language","commands","checkChild","rootElement","markBlockFormat","languages","outdentCodeBlock","plugins","enableCommand","commandName","schema","filter","*Remove format:* %0","blockName","has","CodeBlock","name","from","value","format","document","TrackChangesEditing"];var Fs,Ps;Fs=Os,Ps=197,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{afterInit(){const t=this[Ds("0x19")];if(!t[Ds("0xa")][Ds("0x11")](Ds("0x12")))return;const e=t[Ds("0xa")][Ds("0x23")](Ds("0x18")),n=t.locale,o=t[Ds("0x24")][Ds("0x23")](Ds("0x1b"))[Ds("0x8")],s=t[Ds("0x4")][Ds("0x23")](Ds("0x1b"));e[Ds("0xb")]("indentCodeBlock"),e[Ds("0xb")](Ds("0x9")),e[Ds("0xb")]("codeBlock",((n,r={})=>{const i=t[Ds("0x1e")],a=t.model[Ds("0x17")][Ds("0x20")],x=r&&void 0!==r[Ds("0x1")]?r[Ds("0x1")]:!s[Ds("0x15")];let c;r[Ds("0x3")]||(r[Ds("0x3")]=o[0][Ds("0x3")]),c=x?Array[Ds("0x14")](a.getSelectedBlocks())[Ds("0xe")]((t=>{return js(t)||(e=t,n=i[Ds("0xd")],!e.is(Ds("0x6"))&&!n.isLimit(e)&&n[Ds("0x5")](e.parent,Ds("0x1b")));var e,n})):Array.from(a[Ds("0x2")]()).filter((t=>js(t)));const l=I(c,i);i.change((()=>{for(const t of l)e[Ds("0x7")](t,{commandName:Ds("0x1b"),commandParams:[{...r,forceValue:x}],formatGroupId:Ds("0x10")})}))})),e[Ds("0x21")][Ds("0x1f")]("codeBlock",(t=>Yo(n,Ds("0x1c"),t))),e[Ds("0x21")].registerDescriptionCallback((t=>{const e=n.t,{type:s,data:r}=t;if(Ds("0x1d")==s&&r&&Ds("0x1b")==r[Ds("0xc")]){const t=r.commandParams[0][Ds("0x3")],s=e(o.find((e=>e[Ds("0x3")]===t))[Ds("0x22")]);return r[Ds("0x0")][0][Ds("0x1")]?{type:Ds("0x16"),content:Yo(n,Ds("0x1a"),Yo(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:Ds("0x16"),content:Yo(n,Ds("0xf"),Yo(n,Ds("0x1c"),1))}}}))}}function js(t){return Ds("0x1b")==t[Ds("0x13")]}const Us=["editor","plugins","get","enableCommand","addCommentThread","TrackChangesEditing"];var Gs,Hs;Gs=Us,Hs=415,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const zs=function(t,e){return Us[t-=0]};class Ws extends t.Plugin{afterInit(){const t=this[zs("0x5")];t[zs("0x0")].has("CommentsEditing")&&t.plugins[zs("0x1")](zs("0x4"))[zs("0x2")](zs("0x3"))}}var Vs=n(181);const Ks=["batch","end","init","enqueueChange","unbindElementFromMarkerName","plugins","model","high","addMarker:suggestion:deletion","options","fromRange","lock","unlock","requires","delete","get","merge","createSelection","markerNameToElements","uiElement","createRange","getFirstRange","unit","selection","root","editing","downcastDispatcher","bind","commands","remove","removeMarker:suggestion:deletion","writer","markerName","deleteForward","start","setSelection","forward","buffer","enableCommand","isCollapsed"];var qs,Xs;qs=Ks,Xs=486,function(t){for(;--t;)qs.push(qs.shift())}(++Xs);const $s=function(t,e){return Ks[t-=0]};class Js extends t.Plugin{static get[$s("0x7")](){return[Vs.Delete]}[$s("0x24")](){const t=this.editor,e=t[$s("0x27")].get("TrackChangesEditing");e[$s("0x20")]($s("0x8"));const n=t[$s("0x16")][$s("0x9")]($s("0x1b"));e.enableCommand("deleteForward",((e,o={})=>{const s=t.model[$s("0xb")](t[$s("0x0")].document[$s("0x11")]);s[$s("0x21")]&&t[$s("0x0")].modifySelection(s,{direction:$s("0x1e"),unit:o[$s("0x10")]});const r=s[$s("0xf")](),a=i.LiveRange[$s("0x4")](r);let x;e(o),x="$graveyard"==a[$s("0x12")].rootName?t[$s("0x0")][$s("0xe")](r.start):t[$s("0x0")][$s("0xe")](a[$s("0x1c")],a[$s("0x23")]),a.detach(),t[$s("0x0")][$s("0x25")](n.buffer[$s("0x22")],(t=>{n.buffer[$s("0x5")](),t[$s("0x1d")](t.createRange(x.end)),n[$s("0x1f")][$s("0x6")]()}))})),t[$s("0x13")].downcastDispatcher.on($s("0x2"),hs(t,"merge"),{priority:$s("0x1")}),t.data[$s("0x14")].on("addMarker:suggestion:deletion",((e,n,o)=>{o[$s("0x3")].showSuggestionHighlights&&hs(t,$s("0xa"),{showActiveMarker:!1})[$s("0x15")](this)(e,n,o)}),{priority:$s("0x1")}),t[$s("0x13")].downcastDispatcher.on($s("0x18"),((t,e,n)=>{const o=n.mapper[$s("0xc")](e[$s("0x1a")]);if(o)for(const t of o)t.is($s("0xd"))&&(n.mapper[$s("0x26")](t,e[$s("0x1a")]),n[$s("0x19")][$s("0x17")](t))}),{priority:$s("0x1")})}}const Qs=["commandParams","commands","from","plugins","DocumentListUtils","end","getFirstRange","afterInit","markMultiRangeBlockFormat","isFirstBlockOfListItem","before","expandListBlocksToCompleteList","has","registerDescriptionCallback","commandName","listIndent","push","value","accept","forceValue","enableCommand","previousSibling","containsItem","parent","createRange","createPositionAt","model","splitListItemBefore","indentList","getAttribute","documentList","*Change to:* %0","refresh","ELEMENT_NUMBERED_LIST","hasAttribute","numberedList","listType","get","_descriptionFactory","ELEMENT_BULLETED_LIST","detach","change","markBlockFormat","DocumentListEditing","outdentList","mergeListItemForward","selection","schema","add","locale","ELEMENT_LIST_ITEM","splitListItemAfter","multipleBlocks","ELEMENT_","format","listItemId","registerCustomCallback","isObject","document","editor","registerElementLabel","*Format:* remove from %0","*Indent:* %0","mergeListItemBackward","fromRange","execute","getSelectedBlocks","nextSibling","toUpperCase","setSelection","start","nodeAfter"];var Zs,Ys;Zs=Qs,Ys=288,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0x7")](){const t=this[tr("0x3b")];if(!t[tr("0x3")][tr("0xc")](tr("0x2b")))return;const e=t[tr("0x31")],n=t.plugins.get("TrackChangesEditing"),o=t[tr("0x3")][tr("0x25")](tr("0x4"));function s(e){return()=>{const s=t[tr("0x1")][tr("0x25")](e);let r=Array.from(t.model[tr("0x3a")][tr("0x2e")][tr("0x42")]());if(x(e)){r=o[tr("0xb")](r);const t=[];for(const e of r)o[tr("0x9")](e)&&t[tr("0x10")](e);r=t}t[tr("0x1a")][tr("0x29")]((()=>{n[tr("0x8")](r,{commandName:e,commandParams:[{forceValue:!s[tr("0x11")]}],formatGroupId:tr("0x24")},[],tr("0x1e"))}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0x2")](t);const n=e.findIndex((t=>!t[tr("0x22")](tr("0x37"))));return n>-1&&(e=e.slice(0,n)),e}(t[tr("0x1a")][tr("0x3a")][tr("0x2e")].getSelectedBlocks()),s=o[o.length-1],r=t[tr("0x1a")][tr("0x2f")][tr("0x39")](s)?"after":tr("0x5"),i=t[tr("0x1a")].createRange(t[tr("0x1a")][tr("0x19")](o[0],tr("0xa")),t[tr("0x1a")][tr("0x19")](s,r));t[tr("0x1a")][tr("0x29")]((()=>{n.markBlockFormat(i,{commandName:e,commandParams:[],formatGroupId:tr("0x24")},function(t){const e=new Set;for(const n of t){let t=n[tr("0x43")];for(;t&&t[tr("0x1d")]("listIndent")>n[tr("0x1d")](tr("0xf"));)e[tr("0x30")](t),t=t[tr("0x43")]}return Array.from(e)}(o))}))}}function a(e){return()=>{const o=t.model[tr("0x3a")][tr("0x2e")][tr("0x42")]().next()[tr("0x11")],s=t[tr("0x1a")][tr("0x19")](o,tr("0xa")),r=t[tr("0x1a")][tr("0x19")](o,0),i=t.model[tr("0x18")](s,r);t.model[tr("0x29")]((()=>{n[tr("0x2a")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x24")})}))}}function x(e){const n=t[tr("0x1")][tr("0x25")]("bulletedList")[tr("0x11")],o=t.commands.get(tr("0x23"))[tr("0x11")];return tr("0x23")===e?n:o}n[tr("0x14")](tr("0x23"),s("numberedList")),n[tr("0x14")]("bulletedList",s("bulletedList")),n[tr("0x14")]("indentList",r("indentList")),n[tr("0x14")](tr("0x2c"),r(tr("0x2c"))),n[tr("0x14")]("splitListItemAfter",a(tr("0x33"))),n[tr("0x14")]("splitListItemBefore",a(tr("0x1b"))),n[tr("0x26")][tr("0x3c")]((function(e){const n=!t[tr("0x1a")][tr("0x2f")][tr("0x39")](e),o=e[tr("0x15")],s=e[tr("0x43")],r=e[tr("0x1d")](tr("0x37")),i=!o||o.getAttribute(tr("0x37"))!==r,a=!s||s[tr("0x1d")](tr("0x37"))!==r;return n&&Boolean(r)&&i&&a}),(t=>Yo(e,tr("0x32"),t))),n[tr("0x26")][tr("0xd")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0xe")]){case"bulletedList":r=n[tr("0x0")][0][tr("0x13")],i=x(n.commandName),o=r?"*Format:* insert into %0":tr("0x3d"),i&&(o=tr("0x1f")),s={type:tr("0x36"),content:Yo(e,o,Yo(e,tr("0x27")))};break;case tr("0x23"):r=n[tr("0x0")][0][tr("0x13")],i=x(n[tr("0xe")]),o=r?"*Format:* insert into %0":tr("0x3d"),i&&(o=tr("0x1f")),s={type:tr("0x36"),content:Yo(e,o,Yo(e,tr("0x21")))};break;case tr("0x1c"):o=tr("0x3e"),s={type:tr("0x36"),content:Yo(e,o,Yo(e,tr("0x32")))};break;case"outdentList":o=function(t){const e=t[tr("0x6")]();let n=e.start[tr("0x47")];for(;n&&e[tr("0x16")](n);){if(n[tr("0x1d")]("listIndent")>0)return!1;n=n.nextSibling}return!0}(t)?Yo(e,tr("0x3d"),Yo(e,function(t){const e=t.getFirstRange()[tr("0x46")].nodeAfter;return tr("0x35")+e[tr("0x1d")]("listType")[tr("0x44")]()+"_LIST"}(t))):Yo(e,"*Outdent:* %0",Yo(e,tr("0x32"))),s={type:tr("0x36"),content:o};break;case tr("0x3f"):case tr("0x2d"):!1===n[tr("0x34")]&&(o="*Merge:* %0",s={type:"deletion",content:Yo(e,o,Yo(e,tr("0x32")))})}return s})),n._suggestionFactory[tr("0x38")]("formatBlock",tr("0x1e"),tr("0x12"),(function(e,n){const o=[];for(let n of e)n[tr("0x46")][tr("0x47")]===n.end[tr("0x17")]&&(n=t[tr("0x1a")][tr("0x18")](t[tr("0x1a")].createPositionAt(n[tr("0x46")].nodeAfter,0))),o[tr("0x10")](n);t[tr("0x1a")][tr("0x29")]((e=>{const s=t[tr("0x1a")].document[tr("0x2e")],r=Array[tr("0x2")](s.getRanges()).map((t=>i.LiveRange[tr("0x40")](t)));e[tr("0x45")](o),t[tr("0x1")][tr("0x25")](n.commandName)[tr("0x20")](),n.commandParams[tr("0x10")]({forceDefaultExecution:!0}),t[tr("0x41")](n[tr("0xe")],...n[tr("0x0")]),e[tr("0x45")](r);for(const t of r)t[tr("0x28")]()}))}))}}var nr=n(331);const or=["detach","get","model","getFirstRange","plugins","afterExecute","hasClass","editing","data","removeMarker:suggestion:insertion","getFirstPosition","mapper","TrackChangesEditing","parent","createRange","downcastDispatcher","remove","addMarker:suggestion:insertion","markerNameToElements","ck-suggestion-marker-split","document","bind","unbindElementFromMarkerName","createPositionAt","change","selection","markInsertion","enterBlock","markerName","enter","setSelection","high","split"];var sr,rr;sr=or,rr=407,function(t){for(;--t;)sr.push(sr.shift())}(++rr);const ir=function(t,e){return or[t-=0]};class ar extends t.Plugin{static get requires(){return[nr.Enter]}init(){const t=this.editor,e=t[ir("0x1a")][ir("0x17")](ir("0x1")),n=t.commands.get(ir("0x12"));e.enableCommand(ir("0x12"),(()=>{t.model[ir("0xd")]((o=>{const s=t[ir("0x18")][ir("0x9")][ir("0xe")],r=s[ir("0x20")](),a=i.LiveRange.fromRange(s[ir("0x19")]());if(n[ir("0x10")](o)){const n=t[ir("0x18")][ir("0xc")](r[ir("0x2")].nextSibling,0),s=o[ir("0x3")](r,n);e[ir("0xf")](s)}else o[ir("0x13")](o[ir("0x3")](a.end));a[ir("0x16")](),n.fire(ir("0x1b"),{writer:o})}))})),t[ir("0x1d")][ir("0x4")].on(ir("0x6"),hs(t,ir("0x15")),{priority:ir("0x14")}),t[ir("0x1d")][ir("0x4")].on(ir("0x1f"),((t,e,n)=>{const o=n.mapper[ir("0x7")](e[ir("0x11")]);if(o)for(const t of o)t[ir("0x1c")](ir("0x8"))&&(n[ir("0x0")][ir("0xb")](t,e[ir("0x11")]),n.writer[ir("0x5")](t))}),{priority:ir("0x14")}),t[ir("0x1e")][ir("0x4")].on(ir("0x6"),((e,n,o)=>{o.options.showSuggestionHighlights&&hs(t,ir("0x15"),{showActiveMarker:!1})[ir("0xa")](this)(e,n,o)}),{priority:ir("0x14")})}}const xr=["find","FindAndReplaceEditing","getIntersection","findPrevious","model","markers","end","createPositionAt","string","handleFindCommand","afterInit","createRange","findByTextCallback","FindAndReplaceUtils","replaceAll","bind","plugins","enableCommand","_isInDeletionRange","getMarkersGroup","editor","get","item","getRange","start","suggestion:deletion","has"];var cr,lr;cr=xr,lr=209,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return xr[t-=0]};class ur extends t.Plugin{[dr("0x11")](){if(!this[dr("0x0")].plugins[dr("0x6")](dr("0x8")))return;const t=this.editor[dr("0x17")][dr("0x1")]("TrackChangesEditing");t.enableCommand(dr("0x7"),this[dr("0x10")][dr("0x16")](this)),t[dr("0x18")]("findNext"),t.enableCommand(dr("0xa")),t[dr("0x18")]("replace"),t[dr("0x18")](dr("0x15"))}[dr("0x10")](t,e,n={}){const o=this[dr("0x0")][dr("0x17")][dr("0x1")](dr("0x14"));void 0!==n&&t((t=>(dr("0xf")==typeof e?o[dr("0x13")](e,n):e)(t).filter((e=>!1===this[dr("0x19")](e,t[dr("0x2")])))),n)}[dr("0x19")](t,e){const n=this[dr("0x0")][dr("0xb")][dr("0x12")](this[dr("0x0")][dr("0xb")][dr("0xe")](e,t[dr("0x4")]),this.editor.model[dr("0xe")](e,t[dr("0xd")]));for(const t of this[dr("0x0")][dr("0xb")][dr("0xc")][dr("0x1a")](dr("0x5")))if(null!==n[dr("0x9")](t[dr("0x3")]()))return!0;return!1}}const gr=["title","fontSize.options","enableCommand","has","FontBackgroundColorEditing","selection","get","format","label","getRanges","commandName","_enableCommand","editor","config","_descriptionFactory","FontColorEditing","*Reset font size*","commandParams","afterInit","*Set font color:* %0","FontFamilyEditing","plugins","fontBackgroundColor","fontColor","fontColor.colors","trim","*Set font size:* %0","change","model","fontSize","*Reset font family*","toLowerCase","from","value","TrackChangesEditing","locale","find","*Set font family:* %0","FontSizeEditing","markInlineFormat"];var mr,fr;mr=gr,fr=289,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:hr("0x1d"),commandName:hr("0x14")},{pluginName:hr("0xb"),commandName:"fontFamily"},{pluginName:hr("0x6"),commandName:hr("0xe")},{pluginName:hr("0x23"),commandName:hr("0xd")}];class br extends t.Plugin{[hr("0x9")](){const t=this[hr("0x3")][hr("0x1a")];for(const{pluginName:t,commandName:e}of pr)this[hr("0x3")][hr("0xc")][hr("0x22")](t)&&this[hr("0x2")](e);this[hr("0x3")][hr("0xc")][hr("0x25")](hr("0x19"))[hr("0x5")].registerDescriptionCallback((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0x14")==o.commandName){const e=o[hr("0x8")][0][hr("0x18")];if(e){const o=n(this.editor[hr("0xc")][hr("0x25")]("FontSize").normalizeSizeOptions(this.editor[hr("0x4")][hr("0x25")](hr("0x20")))[hr("0x1b")]((t=>t[hr("0x13")]==e))[hr("0x1f")]).toLowerCase();return{type:"format",content:Yo(t,hr("0x11"),o)}}return{type:hr("0x26"),content:Yo(t,hr("0x7"))}}if("fontFamily"==o[hr("0x1")]){const e=o[hr("0x8")][0][hr("0x18")];return e?{type:hr("0x26"),content:Yo(t,hr("0x1c"),e)}:{type:hr("0x26"),content:Yo(t,hr("0x15"))}}if(hr("0xe")==o[hr("0x1")]){const e=o[hr("0x8")][0][hr("0x18")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x3")][hr("0x4")][hr("0x25")](hr("0xf")))[hr("0x1b")]((t=>t[hr("0x13")]==e));let r=e,i="";return o&&(r=o.label,i=n(r).toLowerCase()),{type:hr("0x26"),content:Yo(t,hr("0xa"),i)[hr("0x10")](),color:{value:e,title:i||r}}}return{type:"format",content:Yo(t,"*Reset font color*")}}if(hr("0xd")==o[hr("0x1")]){const e=o.commandParams[0][hr("0x18")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x3")][hr("0x4")][hr("0x25")]("fontBackgroundColor.colors"))[hr("0x1b")]((t=>t[hr("0x13")]==e));let r=e,i="";return o&&(r=o[hr("0x27")],i=n(r)[hr("0x16")]()),{type:hr("0x26"),content:Yo(t,"*Set font background color:* %0",i).trim(),color:{value:e,title:i||r}}}return{type:hr("0x26"),content:Yo(t,"*Reset font background color*")}}}}))}[hr("0x2")](t){const e=this[hr("0x3")];e.plugins[hr("0x25")](hr("0x19"))[hr("0x21")](t,((n,o={})=>{const s=e[hr("0x13")].document[hr("0x24")],r=o[hr("0x18")];s.isCollapsed?n(o):e.model[hr("0x12")]((()=>{const n=Array[hr("0x17")](s[hr("0x0")]());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0x13")]);for(const o of n)e.plugins[hr("0x25")]("TrackChangesEditing")[hr("0x1e")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["entries","format","config","markInlineFormat","get","isFormatting","copyFormat","normalizeSizeOptions","find","isCollapsed","getAttributeProperties","getAttributes","*Set format to:* %0","commands","toUpperCase","split","fontColor","enableCommand","fontSize","fontSize.options","TrackChangesEditing","title","afterInit","commandName","model","length","fontBackgroundColor","slice","charAt","locale","change","plugins","getItems","isBlock","getRanges","editor","backward","pasteFormat","fontColor.colors","getLastPosition","word","schema","keys","toLowerCase","getFirstPosition"];var _r,Tr;_r=Er,Tr=378,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0x4")](){const t=this[Cr("0x11")],n=t[Cr("0x6")],o=n.document.selection,s=t.plugins[Cr("0x1f")](Cr("0x2")),r=t[Cr("0xb")],i=t[Cr("0x28")][Cr("0x1f")](Cr("0x21")),a=t[Cr("0x28")].get(Cr("0x13"));i&&a&&(s[Cr("0x2c")](Cr("0x13"),((t,r={})=>{const i=r;n[Cr("0xc")]((()=>{const t=Array.from(o[Cr("0x10")]()),r=o[Cr("0x24")]?[kr(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t[Cr("0x26")]()){const t=e[Cr("0x25")](n);t&&t[Cr("0x20")]&&(yield n)}}(t,n));for(const e of t[Cr("0x10")]())for(const t of e[Cr("0xe")]())!n[Cr("0xf")](t)&&o(t)&&(yield t);for(const e of t.getSelectedBlocks())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x17")]))||0!==Object[Cr("0x18")](i)[Cr("0x7")])for(const t of r)s[Cr("0x1e")](t,{commandName:Cr("0x13"),commandParams:[i]})}))})),s._descriptionFactory.registerDescriptionCallback((e=>{const{data:n}=e;if(n&&Cr("0x13")===n[Cr("0x5")]){const e=[],o=n.commandParams[0];for(const[n,s]of Object[Cr("0x1b")](o))e.push(Ar(t,n,s));return e.length?{type:Cr("0x1c"),content:Yo(r,Cr("0x27"),e.join(", "))}:{type:Cr("0x1c"),content:Yo(r,"*Remove all formatting*")}}})),t[Cr("0xd")][Cr("0x1f")](Cr("0x2"))[Cr("0x2c")](Cr("0x21")))}}function kr(t,e){const n=t.createSelection(e);t.modifySelection(n,{unit:"word",direction:Cr("0x12")});const o=n[Cr("0x1a")]();t.modifySelection(n,{unit:Cr("0x16"),direction:"forward"});const s=n[Cr("0x15")]();return t.createRange(o,s)}function Ar(t,e,n){const o=t[Cr("0xb")].t,r=e[Cr("0x2a")](/(?=[A-Z])/).join(" "),i=o(r[Cr("0xa")](0)[Cr("0x29")]()+r[Cr("0x9")](1))[Cr("0x19")]();if("boolean"==typeof n)return i;if(Cr("0x2b")===e||Cr("0x8")===e){const e=(0,s.normalizeColorOptions)(t.config[Cr("0x1f")](Cr("0x14")))[Cr("0x23")]((t=>t[Cr("0x6")]==n));return i+" ("+(e?o(e.label)[Cr("0x19")]():n)+")"}if(Cr("0x0")===e&&isNaN(parseFloat(n))){const e=t.plugins[Cr("0x1f")]("FontSize")[Cr("0x22")](t[Cr("0x1d")][Cr("0x1f")](Cr("0x1")))[Cr("0x23")]((t=>t[Cr("0x6")]==n));return i+" ("+(e?o(e[Cr("0x3")])[Cr("0x19")]():n)+")"}return i+" ("+n+")"}const vr=["markBlockFormat","title","TrackChangesEditing","heading.options","parent","get","change","match","from","checkChild","afterInit","_descriptionFactory","getSelectedBlocks","heading","registerElementLabel","formatBlock","isObject","editor","format","selection","commandName","config","name","value","plugins","registerDescriptionCallback","ELEMENT_HEADING","blockName","HeadingEditing","enableCommand","model","document","find","commandParams","schema","*Change to:* %0"];var Rr,Ir;Rr=vr,Ir=436,function(t){for(;--t;)Rr.push(Rr.shift())}(++Ir);const Sr=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Sr("0x6")](){const t=this.editor,e=t.locale,n=t[Sr("0x11")][Sr("0x1")](Sr("0x23"));if(!t[Sr("0x14")].has(Sr("0x18")))return;const o=t[Sr("0x14")][Sr("0x1")](Sr("0x22"));o[Sr("0x19")](Sr("0x9"),((e,n)=>{const s=n[Sr("0x13")],r=Array[Sr("0x4")](this[Sr("0xd")][Sr("0x1a")][Sr("0x1b")][Sr("0xf")][Sr("0x8")]()).filter((t=>{return e=t,n=s,(o=this[Sr("0xd")][Sr("0x1a")][Sr("0x1e")])[Sr("0x5")](e[Sr("0x0")],n)&&!o[Sr("0xc")](e)&&e[Sr("0x12")]!=n;var e,n,o}));t[Sr("0x1a")][Sr("0x2")]((()=>{for(const t of r)o[Sr("0x20")](t,{commandName:Sr("0x9"),commandParams:[n],formatGroupId:Sr("0x17")},fs(t))}))}));for(const t of n)"paragraph"!=t[Sr("0x1a")]&&o._descriptionFactory[Sr("0xa")](t[Sr("0x1a")],(e=>{const n=Nr(t[Sr("0x1a")]);return null!==n?s(e,n):r(e,t[Sr("0x21")])}));function s(t,n){return Yo(e,Sr("0x16"),[t,n])}function r(t,n){return Yo(e,"ELEMENT_HEADING_CUSTOM",[t,n])}o[Sr("0x7")][Sr("0x15")]((t=>{const{type:o,data:i}=t;if(Sr("0xb")==o&&i&&Sr("0x9")==i[Sr("0x10")]){const t=i[Sr("0x1d")][0].value,o=Nr(t);if(null!==o)return{type:Sr("0xe"),content:Yo(e,Sr("0x1f"),s(1,o))};const a=n[Sr("0x1c")]((e=>e[Sr("0x1a")]===t))[Sr("0x21")];return{type:"format",content:Yo(e,Sr("0x1f"),r(1,a))}}}))}}function Nr(t){const e=t[Sr("0x3")](/^heading(\d+)$/);return e?e[1]:null}const Mr=["TrackChangesEditing","item","change","value","registerDescriptionCallback","format","enableCommand","has","find","*Set highlight:* %0","getLastMatchingPosition","_descriptionFactory","hasAttribute","getAttribute","editor","createRange","highlight","config","get","title","FORMAT_HIGHLIGHT","plugins","model","highlight.options","commandName","push","markInlineFormat","selection","getFirstPosition","getRanges","afterInit","document","locale"];var wr,Or;wr=Mr,Or=173,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Pr extends t.Plugin{[Fr("0x16")](){const t=this[Fr("0x6")];if(!t[Fr("0xd")][Fr("0x20")]("HighlightEditing"))return;const e=t.plugins[Fr("0xa")](Fr("0x19"));e[Fr("0x1f")](Fr("0x8"),((n,o={})=>{const s=t[Fr("0xe")][Fr("0x17")][Fr("0x13")],r=s[Fr("0x5")](Fr("0x8"));let i=o[Fr("0x1c")],a=[];if(s.isCollapsed){const e=s[Fr("0x14")]();if(!s[Fr("0x4")](Fr("0x8")))return void n(o);{const n=t=>t[Fr("0x1a")][Fr("0x5")]("highlight")===r,o=e[Fr("0x2")](n,{direction:"backward"}),s=e[Fr("0x2")](n);a=[t[Fr("0xe")][Fr("0x7")](o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0x15")]())i?a[Fr("0x11")](e):a.push(...ms(Fr("0x8"),e,t[Fr("0xe")]));t[Fr("0xe")][Fr("0x1b")]((()=>{for(const t of a)e[Fr("0x12")](t,{commandName:"highlight",commandParams:[{value:i}]})}))}));const n=t[Fr("0x18")];e[Fr("0x3")][Fr("0x1d")]((e=>{const{type:o,data:s}=e;if("formatInline"==o&&s&&Fr("0x8")==s[Fr("0x10")]){const e=n.t,o=s.commandParams[0][Fr("0x1c")];if(o){const s=t[Fr("0x9")].get(Fr("0xf"))[Fr("0x0")]((t=>t.model==o)),r=e(s.title).toLowerCase();return{type:Fr("0x1e"),content:Yo(n,Fr("0x1"),r),color:{value:s.color,title:s[Fr("0xb")]}}}return{type:Fr("0x1e"),content:Yo(n,"*Remove highlight*",Yo(n,Fr("0xc")))}}}))}}const Dr=["ELEMENT_HORIZONTAL_LINE","TrackChangesEditing","dataDowncast","createEmptyElement","get","registerElementLabel","high","for","createPositionAt","plugins","div","createContainerElement","conversion","insert","_descriptionFactory","editor","afterInit","HorizontalLineEditing","enableCommand","ck-horizontal-line","showSuggestionHighlights"];var Br,jr;Br=Dr,jr=370,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0x3")](){const t=this[Ur("0x2")];if(!t[Ur("0x11")].has(Ur("0x4")))return;t[Ur("0x11")][Ur("0xc")](Ur("0x9"))[Ur("0x5")]("horizontalLine");const e=t[Ur("0x11")][Ur("0xc")](Ur("0x9")),n=t.locale;e[Ur("0x1")][Ur("0xd")]("horizontalLine",(t=>Yo(n,Ur("0x8"),t))),t[Ur("0x14")][Ur("0xf")](Ur("0xa")).elementToStructure({model:"horizontalLine",view:(t,{writer:e,options:n})=>{if(!n[Ur("0x7")])return null;const o=e[Ur("0x13")](Ur("0x12")),s=e[Ur("0xb")]("hr");return e.addClass(Ur("0x6"),o),e[Ur("0x0")](e[Ur("0x10")](o,0),s),o},converterPriority:Ur("0xe")})}}const Hr=["ELEMENT_HTML_EMBED","getCustomProperty","getSelectedElement","getAttribute","registerDescriptionCallback","locale","element","get","format","htmlEmbed","has","commandName","_descriptionFactory","model","enableCommand","TrackChangesEditing","rawHtmlApi","editing","*Change %0 content*","selection","document","rawHtml","plugins","editor","view"];var zr,Wr;zr=Hr,Wr=319,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{afterInit(){const t=this[Vr("0x4")];if(!t.plugins[Vr("0x10")]("HtmlEmbed"))return;const e=t.plugins[Vr("0xd")]("TrackChangesEditing"),n=t[Vr("0xb")],o=t[Vr("0x17")][Vr("0x5")].document[Vr("0x0")];e[Vr("0x12")].registerElementLabel(Vr("0x2"),(t=>Yo(n,Vr("0x6"),t))),t[Vr("0x3")][Vr("0xd")](Vr("0x15"))[Vr("0x14")]("htmlEmbed",((n,s)=>{const r=t[Vr("0x13")],i=r[Vr("0x1")][Vr("0x0")];r.change((()=>{const t=function(t){const e=t[Vr("0x8")]();return e&&e.is(Vr("0xc"),Vr("0x2"))?t.getSelectedElement():null}(i);if(!t)return void n(null);const r=t[Vr("0x9")]("value")||"";void 0!==s&&s!==r&&(e.markBlockFormat(t,{commandName:Vr("0xf"),commandParams:[s]}),o[Vr("0x8")]()[Vr("0x7")](Vr("0x16")).cancel())}))})),e[Vr("0x12")][Vr("0xa")]((t=>{const{data:e}=t;if(e&&Vr("0xf")==e[Vr("0x11")]){const t=Yo(n,Vr("0x6"));return{type:Vr("0xe"),content:Yo(n,Vr("0x18"),t)}}}))}}const qr=["locale","_suggestionFactory","plugins","alt","markInsertion","getChangedMarkers","newValue","registerCustomCallback","*Set image width:* %0","discardSuggestion","insertImage","*Reset image width*","imageInline","find","start","length","ImageCaptionEditing","hasAttribute","value","imageTypeBlock","Users","editor","ImageUtils","detach","width","isBefore","end","refresh","toPrevious","suggestion","author","join","formatInline","imageStylePostApply","schema","insertion","toLowerCase","_descriptionFactory","toggleImageCaption","getSuggestionCallback","formatBlock","getClosestSelectedImageElement","imageTypeInline","hasSuggestion","ELEMENT_CAPTION","markDeletion","commandName","removeObject","has","commands","title","getContainedElement","previous","_splitMarkerName","TrackChangesEditing","get","ImageBlockEditing","subType","selection","name","isEqual","Block image to inline image","registerDescriptionCallback","createRangeOn","change","filter","convertBlockImageToInline","shouldConvertImageType","createRange","next","isCollapsed","nodeAfter","getCaptionFromImageModelElement","isIntersecting","caption","enableCommand","isInContent","differ","registerElementLabel","format","type","FORMAT_SIDE_IMAGE","forceDefaultExecution","afterInit","discard","resizeImage","addObject","ImageTextAlternativeEditing","markBlockFormat","uploadImage","ImageEditing","getAttribute","imageCaption","getFirstRange","getSuggestion","from","ImageResize","backward","accept","convertInlineImageToBlock","forEach","ImageInlineEditing","getNearestSelectionRange","commandParams","ELEMENT_IMAGE","imageBlock","chain","ELEMENT_INLINE_IMAGE","newRange","ImageStyleEditing","fromPosition","getSuggestions","isBlockImage","document","model","head","forward","findIndex","imageStylePreApply","imageTextAlternative","imageStyle","*Format:* %0"];var Xr,$r;Xr=qr,$r=298,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{[Jr("0x1d")](){const t=this[Jr("0x59")];if(!t[Jr("0x46")][Jr("0x74")](Jr("0x24")))return;const n=t[Jr("0x46")][Jr("0x1")](Jr("0x0")),o=t[Jr("0x46")].get(Jr("0x5a")),s={},r=t[Jr("0x44")];if(n.enableCommand(Jr("0x4e")),n[Jr("0x69")][Jr("0x18")](Jr("0x33"),(t=>Yo(r,Jr("0x32"),t))),n._descriptionFactory.registerElementLabel(Jr("0x50"),(t=>Yo(r,Jr("0x35"),t))),n[Jr("0x69")][Jr("0x18")](Jr("0x14"),(()=>Yo(r,Jr("0x70")))),t[Jr("0x46")][Jr("0x74")]("ImageUploadEditing")&&n[Jr("0x15")](Jr("0x23")),t[Jr("0x46")].has(Jr("0x2"))&&t.plugins[Jr("0x74")](Jr("0x2f"))&&(n[Jr("0x15")](Jr("0x6e"),((e,s)=>{const r=o[Jr("0x6d")](t[Jr("0x3c")][Jr("0x3b")][Jr("0x4")]);t[Jr("0x3c")][Jr("0xa")]((()=>{n.markBlockFormat(r,{commandName:"imageTypeInline",commandParams:[s]},[],"convertBlockImageToInline")}))})),n.enableCommand(Jr("0x57"),((e,s)=>{t[Jr("0x3c")][Jr("0xa")]((r=>{let a=o[Jr("0x6d")](t.model[Jr("0x3b")][Jr("0x4")]),x=r.createRangeOn(a);const c=i.LivePosition[Jr("0x38")](x.start,Jr("0x60")),l=i.LivePosition[Jr("0x38")](x[Jr("0x5e")],"toNext");n[Jr("0x1c")]((()=>e(s))),a=o[Jr("0x6d")](t.model[Jr("0x3b")][Jr("0x4")]),x=r[Jr("0x9")](a);const d=r.createRange(c,l);c[Jr("0x5b")](),l[Jr("0x5b")](),n[Jr("0x22")](a,{commandName:Jr("0x6e"),commandParams:[]},[],Jr("0x2d")),d[Jr("0x52")].isBefore(x.start)&&n[Jr("0x48")](r[Jr("0xe")](d[Jr("0x52")],x[Jr("0x52")]),Jr("0x2d")),x.end[Jr("0x5d")](d[Jr("0x5e")])&&n[Jr("0x48")](r[Jr("0xe")](x[Jr("0x5e")],d[Jr("0x5e")]),Jr("0x2d"))}))})),n[Jr("0x45")].registerCustomCallback(Jr("0x6c"),"convertInlineImageToBlock",Jr("0x63"),(()=>!1)),n[Jr("0x45")].registerCustomCallback(Jr("0x6c"),Jr("0x2d"),"accept",(()=>!1)),n[Jr("0x45")][Jr("0x4b")]("formatBlock",Jr("0x2d"),Jr("0x1e"),n[Jr("0x45")][Jr("0x6b")](Jr("0x6c"),"",Jr("0x2c"))),n._suggestionFactory[Jr("0x4b")](Jr("0x67"),"convertInlineImageToBlock","join",(()=>!1)),n[Jr("0x45")].registerCustomCallback(Jr("0x67"),"convertInlineImageToBlock",Jr("0x1e"),(([e])=>{const o=n._suggestionFactory[Jr("0x6b")]("insertion","",Jr("0x1e"));let s=e[Jr("0x52")],r=e[Jr("0x5e")];const i=t[Jr("0x3c")].schema.getNearestSelectionRange(s,Jr("0x2b")),a=t[Jr("0x3c")][Jr("0x66")][Jr("0x30")](r,Jr("0x3e"));i.isCollapsed&&(s=i[Jr("0x52")]),a[Jr("0x10")]&&(r=a[Jr("0x5e")]),o([t[Jr("0x3c")].createRange(s,r)])})),n._suggestionFactory[Jr("0x4b")]("formatBlock","convertInlineImageToBlock","chain",c),n[Jr("0x45")][Jr("0x4b")](Jr("0x67"),"convertInlineImageToBlock",Jr("0x34"),c)),t[Jr("0x46")][Jr("0x74")](Jr("0x54"))&&(n[Jr("0x15")](Jr("0x6a"),((e,s)=>{const r=t.plugins[Jr("0x1")]("ImageCaptionUtils");let i=o[Jr("0x6d")](t[Jr("0x3c")][Jr("0x3b")][Jr("0x4")]),a=r.getCaptionFromImageModelElement(i);t[Jr("0x3c")][Jr("0xa")]((()=>{if(a)return void n[Jr("0x71")](t[Jr("0x3c")][Jr("0x9")](a));const x=o[Jr("0x3a")](i);e(s),i=o[Jr("0x6d")](t.model[Jr("0x3b")][Jr("0x4")]),a=r[Jr("0x12")](i),n.markInsertion(t[Jr("0x3c")][Jr("0x9")](a),x?null:Jr("0x26"))}))})),n[Jr("0x45")].registerCustomCallback(Jr("0x67"),Jr("0x26"),"chain",c)),t[Jr("0x46")].has("ImageStyleEditing")){n.enableCommand(Jr("0x42"),((s,r)=>{const i=t[Jr("0x46")][Jr("0x1")](Jr("0x58")).me,a=t[Jr("0x75")][Jr("0x1")](Jr("0x42"));let x=o[Jr("0x6d")](t.model[Jr("0x3b")][Jr("0x4")]),c=t.model[Jr("0x9")](x),l=a[Jr("0x56")];if(l==r[Jr("0x56")])return;const d={commandName:"imageStyle",commandParams:[r],formatGroupId:(0,e.uid)()};t.model.change((()=>{if(n[Jr("0x39")]()[Jr("0xb")]((t=>t.isInContent&&i==t[Jr("0x62")]&&(Jr("0x6c")==t[Jr("0x1a")]||Jr("0x64")==t[Jr("0x1a")])&&(Jr("0x40")==t[Jr("0x3")]||"imageStylePostApply"==t[Jr("0x3")])&&t[Jr("0x27")]().isEqual(c)))[Jr("0x2e")]((t=>n[Jr("0x4d")](t[Jr("0x3d")]))),x=o.getClosestSelectedImageElement(t[Jr("0x3c")][Jr("0x3b")].selection),c=t[Jr("0x3c")][Jr("0x9")](x),a.refresh(),t[Jr("0x75")].get(Jr("0x6e"))[Jr("0x5f")](),t[Jr("0x75")].get(Jr("0x57"))[Jr("0x5f")](),l=a.value,l!=r[Jr("0x56")])return o.isInlineImage(x)&&a[Jr("0xd")](r[Jr("0x56")],x)?(s(r),x=o[Jr("0x6d")](t[Jr("0x3c")][Jr("0x3b")][Jr("0x4")]),void n[Jr("0x22")](x,{...d,commandReversedParams:[{value:l||null}]},[],"imageStylePreApply")):void(o.isBlockImage(x)?n[Jr("0x22")](x,d,[],Jr("0x65")):n.markInlineFormat(c,d,Jr("0x65")))}))}));for(const e of t[Jr("0x46")][Jr("0x1")](Jr("0x37")).normalizedStyles)s[e[Jr("0x5")]]=e[Jr("0x76")][Jr("0x68")]();n[Jr("0x45")][Jr("0x4b")]("formatBlock",Jr("0x40"),"join",(()=>!1)),n[Jr("0x45")][Jr("0x4b")](Jr("0x6c"),Jr("0x65"),Jr("0x63"),(()=>!1)),n[Jr("0x45")][Jr("0x4b")](Jr("0x64"),Jr("0x65"),"join",(()=>!1)),n[Jr("0x45")].registerCustomCallback(Jr("0x6c"),Jr("0x40"),Jr("0x2c"),(()=>!1)),n[Jr("0x45")].registerCustomCallback("formatBlock","imageStylePreApply",Jr("0x1e"),((t,e)=>{n[Jr("0x45")][Jr("0x6b")]("formatBlock","","accept")(t,{commandName:e[Jr("0x72")],commandParams:e.commandReversedParams})})),n[Jr("0x45")].registerCustomCallback(Jr("0x6c"),Jr("0x40"),Jr("0x34"),c)}const a=[{type:"formatBlock",subType:Jr("0x40")},{type:Jr("0x67"),subType:Jr("0x26")},{type:Jr("0x6c"),subType:Jr("0x2d")},{type:Jr("0x67"),subType:"convertInlineImageToBlock"}];function x(t,e){const s=a.findIndex((({type:e,subType:n})=>t[Jr("0x1a")]==e&&t.subType==n)),r=a[Jr("0x3f")]((({type:t,subType:n})=>e[Jr("0x1a")]==t&&e[Jr("0x3")]==n));if(s<0||r<0)return!1;const i=t[Jr("0x27")](),x=e[Jr("0x27")]();if((0==s||1==s)&&2==r&&i[Jr("0x13")](x))return!0;if(2==s&&3==r){const t=n._findSuggestions(i,"insertion")[Jr("0xb")]((({suggestion:t,meta:e})=>e.isOwn&&Jr("0x2d")==t[Jr("0x3")]));if(t.length>1&&x.end[Jr("0x6")](i[Jr("0x52")]))return!0;if(1==t[Jr("0x53")]&&(i[Jr("0x52")][Jr("0x6")](x[Jr("0x5e")])||i[Jr("0x5e")][Jr("0x6")](x[Jr("0x52")])))return!0}if(3==s&&3==r&&i.start[Jr("0x5d")](x.start)){const t=i[Jr("0x5e")][Jr("0x11")],e=x.start.nodeBefore;return o.isBlockImage(t)&&t===e}return!1}function c(t,e){return x(t,e)?[t,e]:x(e,t)?[e,t]:null}t[Jr("0x3c")].document.registerPostFixer((()=>{let e=!1;const s=Array[Jr("0x29")](t.model[Jr("0x3b")][Jr("0x17")][Jr("0x49")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:a,id:x}=n[Jr("0x79")](t);if(Jr("0x61")==s&&n[Jr("0x6f")](x)){if(Jr("0x6c")==i&&(Jr("0x40")==a||"imageStylePostApply"==a)){const t=n[Jr("0x28")](x);if(r[Jr("0x36")]){const s=t.getFirstRange()[Jr("0x77")]();if(o[Jr("0x3a")](s))continue;n[Jr("0x4d")](t),e=!0}}if("insertion"==i&&Jr("0x26")==a&&!r[Jr("0x36")]){const t=n.getSuggestion(x);t.next&&t[Jr("0xf")][Jr("0x16")]&&(n[Jr("0x4d")](t.next),e=!0)}}}return e})),t[Jr("0x46")][Jr("0x74")](Jr("0x2a"))&&n[Jr("0x15")](Jr("0x1f"),((e,s)=>{const r=o[Jr("0x6d")](t.model[Jr("0x3b")][Jr("0x4")]);r[Jr("0x25")](Jr("0x5c"))!=s[Jr("0x5c")]&&t.model[Jr("0xa")]((()=>{n.markBlockFormat(r,{commandName:Jr("0x1f"),commandParams:[s]})}))})),t[Jr("0x46")].has(Jr("0x21"))&&n[Jr("0x15")](Jr("0x41"),((e,s)=>{const r=o[Jr("0x6d")](t.model[Jr("0x3b")][Jr("0x4")]);(r[Jr("0x55")](Jr("0x47"))?r[Jr("0x25")](Jr("0x47")):"")!=s[Jr("0x4a")]&&t[Jr("0x3c")][Jr("0xa")]((()=>{n.markBlockFormat(r,{commandName:Jr("0x41"),commandParams:[s]})}))})),n._descriptionFactory[Jr("0x8")]((t=>{if(a[Jr("0x51")]((({type:e,subType:n})=>t[Jr("0x1a")]==e&&t[Jr("0x3")]==n)))return t[Jr("0x78")]?{}:void 0})),n._descriptionFactory[Jr("0x8")]((t=>{if(Jr("0x67")==t[Jr("0x1a")]||"deletion"==t.type){const e=t.getContainedElement();if(e&&e.is("element",Jr("0x14")))return{type:Jr("0x67")==t[Jr("0x1a")]?Jr("0x20"):Jr("0x73"),element:e,quantity:1}}})),n[Jr("0x69")][Jr("0x8")]((t=>"formatBlock"==t[Jr("0x1a")]&&Jr("0x2d")==t.subType?{type:Jr("0x19"),content:"Inline image to block image"}:Jr("0x6c")==t[Jr("0x1a")]&&Jr("0xc")==t[Jr("0x3")]?{type:Jr("0x19"),content:Jr("0x7")}:void 0)),n[Jr("0x69")].registerDescriptionCallback((t=>{const{data:e}=t;if(e){if("imageStyle"==e.commandName){const t=e[Jr("0x31")][0].value;return n="side"===t?Yo(r,Jr("0x1b")):s[t]||t,{type:Jr("0x19"),content:Yo(r,Jr("0x43"),n)}}if(Jr("0x41")==e[Jr("0x72")]){const t=e.commandParams[0][Jr("0x4a")];return t?{type:Jr("0x19"),content:Yo(r,"*Set image text alternative:* %0",'"'+t+'"')}:{type:Jr("0x19"),content:Yo(r,"*Remove image text alternative*")}}if(Jr("0x1f")==e[Jr("0x72")]){const t=e[Jr("0x31")][0][Jr("0x5c")];return t?{type:Jr("0x19"),content:Yo(r,Jr("0x4c"),t)}:{type:"format",content:Yo(r,Jr("0x4f"))}}}var n}))}}const Zr=["accept","handleSuggestionDescription","editor","model","getSuggestions","source","formatBlock","data","_suggestionFactory","locale","markBlockFormat","enableCommand","getAttribute","replaceImageSource","registerCustomCallback","getSuggestionCallback","format","getSelectedElement","author","has","discard","getContainedElement","change","registerDescriptionCallback","subType","_descriptionFactory","get","*Format:* replace image URL","TrackChangesEditing","plugins","selection","handleReplaceImageCommand","commandName"];var Yr,ti;Yr=Zr,ti=227,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{afterInit(){if(!this[ei("0x6")][ei("0x0")][ei("0x17")]("ImageEditing"))return;const t=this[ei("0x6")].plugins.get(ei("0x20"));t[ei("0xf")]("replaceImageSource",((t,e)=>this.handleReplaceImageCommand(t,e))),t[ei("0xc")][ei("0x12")](ei("0xa"),ei("0x11"),ei("0x4"),t[ei("0xc")][ei("0x13")](ei("0xa"),null,ei("0x18"))),t[ei("0xc")][ei("0x12")](ei("0xa"),ei("0x11"),"discard",t._suggestionFactory[ei("0x13")]("formatBlock",null,ei("0x4"))),t[ei("0x1d")][ei("0x1b")]((t=>this.handleSuggestionDescription(t)))}[ei("0x2")](t,e){const n=this.editor[ei("0x0")][ei("0x1e")](ei("0x20")),o=this[ei("0x6")][ei("0x7")].document[ei("0x1")][ei("0x15")]();this.editor.model[ei("0x1a")]((()=>{let s=o[ei("0x10")]("src");const r=this[ei("0x6")][ei("0x0")][ei("0x1e")]("Users").me;for(const t of n[ei("0x8")]({skipNotAttached:!0})){const e=t[ei("0x19")]();if(ei("0x11")===t[ei("0x1c")]&&e===o){t[ei("0x16")]!==r&&t[ei("0x18")](),s=t[ei("0xb")].commandParams[0][ei("0x9")];break}}t(e),n[ei("0xe")](o,{commandName:ei("0x11"),commandParams:[{source:s}]},[],ei("0x11"))}))}[ei("0x5")](t){const{data:e}=t;if(e&&ei("0x11")===e[ei("0x3")]){const t=ei("0x1f");return{type:ei("0x14"),content:Yo(this[ei("0x6")][ei("0xd")],t)}}}}const oi=["plugins","lowest","_trackChangesValueDuringImport","listenTo","TrackChangesEditing","commands","Users","afterInit","importWord","editor","_setSuggestionData","enableCommand","get","_trackChangesExecuted","dataInsert","value","collaboration_features","bind","track_changes","high","execute","forEach","_handleImportedData"];var si,ri;si=oi,ri=453,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class ai extends t.Plugin{constructor(t){super(t),this._trackChangesValueDuringImport=!1,this._trackChangesExecuted=!1}[ii("0xe")](){const t=this[ii("0x10")],e=t[ii("0xc")][ii("0x13")](ii("0xf")),n=t[ii("0xc")][ii("0x13")]("trackChanges");e&&(e.on(ii("0x4"),((t,[,e])=>{this._trackChangesValueDuringImport=n[ii("0x16")],e[ii("0x0")][ii("0x2")]=!this[ii("0x9")]}),{priority:ii("0x3")}),this[ii("0xa")](e,"dataInsert",this[ii("0x6")][ii("0x1")](this)),this[ii("0xa")](e,ii("0x15"),(()=>{this[ii("0x14")]&&(n.execute(),this[ii("0x14")]=!1)}),{priority:ii("0x8")}),t[ii("0x7")].get(ii("0xb"))[ii("0x12")](ii("0xf")))}[ii("0x6")](t,e){const{suggestions:n}=e,o=this[ii("0x10")][ii("0xc")][ii("0x13")]("trackChanges"),s=o[ii("0x16")];this[ii("0x9")]!==s&&(o[ii("0x4")](),this._trackChangesExecuted=!0),n&&n[ii("0x5")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0x10")][ii("0x7")][ii("0x13")](ii("0xd")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0xf")}}};this.editor[ii("0x7")].get(ii("0xb"))[ii("0x11")](s)}))}}const xi=["locale","change","registerDescriptionCallback","getItems","TrackChangesEditing","indent","outdentBlock","markBlockFormat","enableCommand","getSelectedBlocks","_descriptionFactory","format","afterInit","getItemLabel","*Outdent:* %0","indentBlock","checkAttribute","editor","commandName","plugins","selection","get","IndentBlock","schema","*Indent:* %0","document","outdent","IndentEditing","model"];var ci,li;ci=xi,li=236,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return xi[t-=0]};class ui extends t.Plugin{[di("0x8")](){const t=this[di("0xd")],e=t[di("0xf")][di("0x11")](di("0x0"));t.plugins.has(di("0x17"))&&(e[di("0x4")](di("0x1")),e[di("0x4")](di("0x16")));const n=t[di("0x19")];if(t[di("0xf")].has(di("0x12"))){for(const n of[di("0xb"),di("0x2")])e[di("0x4")](n,(()=>{const o=Array.from(this[di("0xd")][di("0x18")][di("0x15")][di("0x10")][di("0x5")]()).filter((t=>this[di("0xd")][di("0x18")][di("0x13")][di("0xc")](t,"blockIndent")));t.model[di("0x1a")]((()=>{for(const t of o)e[di("0x3")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:di("0xb")})}))}));e[di("0x6")][di("0x1b")]((t=>{const{data:o}=t;if(!o)return;if(di("0xb")!=o[di("0xe")]&&di("0x2")!=o[di("0xe")])return;const s=t[di("0x1c")]()[0],r=e[di("0x6")][di("0x9")](s);return"indentBlock"==o[di("0xe")]?{type:di("0x7"),content:Yo(n,di("0x14"),r)}:di("0x2")==o.commandName?{type:"format",content:Yo(n,di("0xa"),r)}:void 0}))}}}var gi,mi,fi=["get","input","plugins","editor","init","TrackChangesEditing","requires"];gi=fi,mi=487,function(t){for(;--t;)gi.push(gi.shift())}(++mi);var hi=function(t,e){return fi[t-=0]};class pi extends t.Plugin{static get[hi("0x2")](){return[Vs.Input]}[hi("0x0")](){this[hi("0x6")][hi("0x5")][hi("0x3")](hi("0x1")).enableCommand(hi("0x4"))}}const bi=["enableCommand","getRanges","change","unlink","selection","plugins","TrackChangesEditing","markInlineFormat","commandName","linkHref","locale","registerDescriptionCallback","link","*Remove link*","has","model","getFirstRange","hasAttribute","format","document","getFirstPosition","from","commandParams","getAttribute","*Set link:* %0","isCollapsed","get","_descriptionFactory","afterInit"];var Ei,_i;Ei=bi,_i=266,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{[Ti("0x17")](){const t=this.editor;if(!t[Ti("0x0")][Ti("0x9")]("LinkEditing"))return;const e=t[Ti("0x0")][Ti("0x15")](Ti("0x1"));e[Ti("0x18")](Ti("0x7"),((n,o)=>{const s=t[Ti("0xa")].document[Ti("0x1c")];let r=[];if(s[Ti("0x14")]){if(!s[Ti("0xc")](Ti("0x4")))return void n(o);{const e=(0,Vs.findAttributeRange)(s[Ti("0xf")](),"linkHref",s[Ti("0x12")](Ti("0x4")),t.model);r=[e]}}else r=Array[Ti("0x10")](s[Ti("0x19")]());t[Ti("0xa")][Ti("0x1a")]((()=>{for(const t of r)e[Ti("0x2")](t,{commandName:Ti("0x7"),commandParams:[o]})}))})),e[Ti("0x18")]("unlink",(()=>{const n=this.editor[Ti("0xa")],o=n[Ti("0xe")][Ti("0x1c")];n.change((()=>{let n=[];n=o[Ti("0x14")]?[(0,Vs.findAttributeRange)(o[Ti("0xf")](),Ti("0x4"),o[Ti("0x12")](Ti("0x4")),t[Ti("0xa")])]:ms("linkHref",o[Ti("0xb")](),t[Ti("0xa")]);for(const t of n)e[Ti("0x2")](t,{commandName:Ti("0x1b"),commandParams:[]})}))})),e[Ti("0x16")][Ti("0x6")]((e=>{const{data:n}=e,o=t[Ti("0x5")];if(n){if(Ti("0x7")==n[Ti("0x3")]){const t=n[Ti("0x11")][0];return{type:"format",content:Yo(o,Ti("0x13"),'"'+t+'"')}}return Ti("0x1b")==n[Ti("0x3")]?{type:Ti("0xd"),content:Yo(o,Ti("0x8"))}:void 0}}))}}const yi=["locale","get","numbered","bulleted","document","element","commands","registerElementLabel","createPositionAt","numberedList","add","blockName","editor","_descriptionFactory","value","ELEMENT_LIST_ITEM","filter","has","selection","before","findIndex","todoList","registerDescriptionCallback","TodoListEditing","*Outdent:* %0","commandParams","nextSibling","plugins","*Change to:* %0","ELEMENT_BULLETED_LIST","*Indent:* %0","getAttribute","enableCommand","commandName","model","execute","checkTodoList","from","slice","previousSibling","parent","listType","ELEMENT_NUMBERED_LIST","forceValue","listItem","change","indentList","listIndent","*Uncheck item*","outdentList","getSelectedBlocks","_selectedElements","replace","TrackChangesEditing","markBlockFormat","createRange","paragraph","*Check item*","name","bulletedList","todoListChecked","format"];var ki,Ai;ki=yi,Ai=455,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{afterInit(){const t=this[vi("0x35")],e=t[vi("0x29")];if(!t[vi("0x6")][vi("0x3a")]("ListEditing"))return;const n=t[vi("0x6")].get(vi("0x20")),o=t[vi("0x6")][vi("0x3a")](vi("0x2"));function s(e){return()=>{const o=t[vi("0xd")][vi("0x2d")][vi("0x3b")],s=t[vi("0x2f")][vi("0x2a")](e);if(s[vi("0x37")])return void t[vi("0xe")](vi("0x23"),{});const r=e.slice(0,-4),i=function(t,e,n){let o=Array[vi("0x10")](t).filter((t=>{return e=t,(o=n).checkChild(e[vi("0x13")],vi("0x17"))&&!o.isObject(e);var e,o}));o=o[vi("0x39")]((t=>!t.is(vi("0x2e"),vi("0x17"))||t[vi("0xa")](vi("0x14"))!=e));const s=new Set;for(const t of o)t.is(vi("0x2e"),vi("0x17"))?s.add(Ii(t)):s[vi("0x33")](t);return Array[vi("0x10")](s)}(o.getSelectedBlocks(),r,t.model.schema);t[vi("0xd")][vi("0x18")]((()=>{for(const t of i)n[vi("0x21")](t,{commandName:e,commandParams:[{forceValue:!s.value}],formatGroupId:vi("0x34")},Si(t))}))}}function r(e){return()=>{const o=function(t){let e=Array.from(t);const n=e[vi("0x3d")]((t=>vi("0x17")!=t[vi("0x25")]));return n>-1&&(e=e[vi("0x11")](0,n)),e}(t[vi("0xd")][vi("0x2d")][vi("0x3b")][vi("0x1d")]()),s=t[vi("0xd")][vi("0x22")](t.model[vi("0x31")](o[0],vi("0x3c")),t.model[vi("0x31")](o[o.length-1],"end"));t.model[vi("0x18")]((()=>{n[vi("0x21")](s,{commandName:e,commandParams:[],formatGroupId:vi("0x1a")},function(t){const e=new Set;for(const n of t){let t=n[vi("0x5")];for(;t&&t[vi("0xa")](vi("0x1a"))>n[vi("0xa")](vi("0x1a"));)e.add(t),t=t[vi("0x5")]}return Array[vi("0x10")](e)}(o))}))}}n[vi("0xb")](vi("0x32"),s("numberedList")),n[vi("0xb")]("bulletedList",s(vi("0x26"))),o&&n[vi("0xb")](vi("0x0"),s(vi("0x0"))),n[vi("0xb")](vi("0x19"),r(vi("0x19"))),n[vi("0xb")]("outdentList",r(vi("0x1c"))),o&&n[vi("0xb")](vi("0xf"),(()=>{const e=t[vi("0x2f")][vi("0x2a")]("checkTodoList"),o=Array[vi("0x10")](e[vi("0x1e")]);o[vi("0x39")]((t=>t.getAttribute(vi("0x27"))!=e[vi("0x37")])),t[vi("0xd")][vi("0x18")]((()=>{for(const t of o)n[vi("0x21")](t,{commandName:vi("0xf"),commandParams:[{forceValue:!e[vi("0x37")]}]})}))})),n[vi("0x36")][vi("0x30")](vi("0x17"),(t=>Yo(e,vi("0x38"),t))),n[vi("0x36")][vi("0x1")]((t=>{const{data:n}=t;if(n){if(vi("0x32")==n[vi("0xc")]||vi("0x26")==n.commandName||vi("0x0")==n.commandName)switch(n[vi("0xc")][vi("0x1f")]("List","")){case vi("0x2c"):return o(Yo(e,vi("0x8")));case vi("0x2b"):return o(Yo(e,vi("0x15")));case"todo":return o(Yo(e,"ELEMENT_TODO_LIST"))}if(vi("0x19")==n[vi("0xc")])return{type:"format",content:Yo(e,vi("0x9"),Yo(e,vi("0x38")))};if("outdentList"==n[vi("0xc")])return{type:"format",content:Yo(e,vi("0x3"),Yo(e,vi("0x38")))};if(vi("0xf")==n[vi("0xc")])return n[vi("0x4")][0][vi("0x16")]?{type:vi("0x28"),content:Yo(e,vi("0x24"))}:{type:vi("0x28"),content:Yo(e,vi("0x1b"))}}function o(t){return{type:vi("0x28"),content:Yo(e,vi("0x7"),t)}}}))}}function Ii(t){const e=t.getAttribute("listIndent");if(0==e)return t;let n=t;for(;t.previousSibling&&t[vi("0x12")].is(vi("0x2e"),vi("0x17"));){const o=t[vi("0x12")].getAttribute(vi("0x1a"));if(o==e)n=t[vi("0x12")];else if(o<e)break;t=t[vi("0x12")]}return n}function Si(t){const e=[];if(t.is("element",vi("0x17"))&&t[vi("0xa")](vi("0x1a"))>0){let n=t[vi("0x5")];for(;n&&vi("0x17")==n.name&&n[vi("0xa")](vi("0x1a"))==t.getAttribute(vi("0x1a"));)e.push(n),n=n.nextSibling}return e}const Li=["getAttribute","plugins","numbered","bind","TrackChangesEditing","afterInit","_LIST_","get","listStyle","ListUtils","_getSuggestionBlocks","parent","enableCommand","getSiblingNodes","getSelectedBlocks","ELEMENT_","listReversed","startIndex","handleListStartCommand","element","length","change","forward","getFirstPosition","model","handleDescriptions","backward","createPositionAt","list.properties","commandName","editor","push","*Format:* set order to reversed","createRange","listItem","listStart","*Format:* set start index to %0","from","_getTranslationKeyForListStyle","has","map","handleListStyleCommand","styles","config","markMultiRangeBlockFormat","unshift","filter","_getSuggestionBlocksForListStyle","reversed","locale","handleListReversedCommand","selection","before","getLastPosition","commandParams","type","format","toUpperCase","document","listType"];var Ni,Mi;Ni=Li,Mi=478,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[wi("0x7")](){if(!this.editor[wi("0x3")][wi("0x29")]("ListPropertiesEditing"))return;const t=this.editor[wi("0x2d")][wi("0x9")](wi("0x1e")),e=this.editor[wi("0x3")][wi("0x9")](wi("0x6"));t[wi("0x2c")]&&e.enableCommand(wi("0xa"),this[wi("0x2b")][wi("0x5")](this)),t[wi("0x32")]&&e[wi("0xe")](wi("0x12"),this[wi("0x34")][wi("0x5")](this)),t[wi("0x13")]&&e.enableCommand(wi("0x25"),this[wi("0x14")][wi("0x5")](this)),e._descriptionFactory.registerDescriptionCallback(this.handleDescriptions[wi("0x5")](this))}handleListStyleCommand(t,e={}){const n=this.editor.plugins[wi("0x9")]("TrackChangesEditing"),o=this[wi("0x31")]();this[wi("0x20")].model[wi("0x17")]((()=>{n[wi("0x2e")](o,{commandName:"listStyle",commandParams:[{type:e[wi("0x39")]}],formatGroupId:"listStyle"})}))}handleListReversedCommand(t,e={}){const n=this[wi("0x20")][wi("0x3")][wi("0x9")]("TrackChangesEditing"),o=this[wi("0xc")]((t=>t.is(wi("0x15"),"listItem")&&wi("0x4")===t[wi("0x2")](wi("0x1"))));if(o[wi("0x16")]<1)return;const s=o[wi("0x2a")]((t=>this[wi("0x20")][wi("0x1a")].createRange(this[wi("0x20")][wi("0x1a")][wi("0x1d")](t,wi("0x36")),this[wi("0x20")].model[wi("0x1d")](t,0))));this[wi("0x20")][wi("0x1a")][wi("0x17")]((()=>{n[wi("0x2e")](s,{commandName:wi("0x12"),commandParams:[{reversed:e[wi("0x32")]}],formatGroupId:"listReversed"})}))}handleListStartCommand(t,e={}){const n=this[wi("0x20")].plugins[wi("0x9")](wi("0x6")),o=this[wi("0xc")]((t=>t.is(wi("0x15"),wi("0x24"))&&"numbered"===t.getAttribute(wi("0x1"))));if(o[wi("0x16")]<1)return;const s=o.map((t=>this[wi("0x20")][wi("0x1a")][wi("0x23")](this[wi("0x20")][wi("0x1a")][wi("0x1d")](t,"before"),this[wi("0x20")][wi("0x1a")][wi("0x1d")](t,0))));this[wi("0x20")][wi("0x1a")][wi("0x17")]((()=>{n[wi("0x2e")](s,{commandName:wi("0x25"),commandParams:[{startIndex:e[wi("0x13")]}],formatGroupId:wi("0x25")})}))}[wi("0x1b")](t){const e=this.editor[wi("0x33")],{data:n}=t;if(!n)return;let o,s;switch(n[wi("0x1f")]){case"listStyle":o="*Change to:* %0",s={type:wi("0x3a"),content:Yo(e,o,Yo(e,this[wi("0x28")](n[wi("0x38")][0][wi("0x39")])))};break;case"listReversed":o=n[wi("0x38")][0][wi("0x32")]?wi("0x22"):"*Format:* set order to regular",s={type:wi("0x3a"),content:Yo(e,o)};break;case"listStart":o=wi("0x26"),s={type:"format",content:Yo(e,o,n[wi("0x38")][0].startIndex)}}return s}[wi("0x31")](){var t,e,n,o;const s=this[wi("0x20")][wi("0x3")][wi("0x9")]("ListUtils");let r=Array.from(this[wi("0x20")][wi("0x1a")][wi("0x0")].selection[wi("0x10")]());return(null===(t=r[0])||void 0===t?void 0:t.is(wi("0x15"),"listItem"))&&r[wi("0x2f")](...s[wi("0xf")](this[wi("0x20")][wi("0x1a")][wi("0x0")].selection.getFirstPosition(),wi("0x1c"))),(null===(e=r[r[wi("0x16")]-1])||void 0===e?void 0:e.is("element","listItem"))&&r[wi("0x21")](...s.getSiblingNodes(this[wi("0x20")][wi("0x1a")][wi("0x0")].selection[wi("0x37")](),"forward")),r=[...new Set(r)],(null===(o=null===(n=this[wi("0x20")][wi("0x1a")].document.selection[wi("0x19")]())||void 0===n?void 0:n[wi("0xd")])||void 0===o?void 0:o.is(wi("0x15"),wi("0x24")))&&(r=r[wi("0x30")]((t=>t.is(wi("0x15"),wi("0x24"))))),r}[wi("0xc")](t){const e=this[wi("0x20")][wi("0x3")][wi("0x9")]("ListUtils");let n=Array[wi("0x27")](this[wi("0x20")].model[wi("0x0")][wi("0x35")][wi("0x10")]())[wi("0x30")](t)[wi("0x2a")]((t=>{const n=this[wi("0x20")].model[wi("0x1d")](t,0);return[...e[wi("0xf")](n,"backward"),...e[wi("0xf")](n,wi("0x18"))]})).flat();return n=[...new Set(n)],n}[wi("0x28")](t){return wi("0x11")+this.editor[wi("0x3")][wi("0x9")](wi("0xb")).getListTypeFromListStyleType(t).toUpperCase()+wi("0x8")+t[wi("0x3b")]().replace(/-/g,"_")}}const Fi=["elementToElement","enableCommand","plugins","stop","for","media","dataDowncast","afterInit","ELEMENT_MEDIA","data","showSuggestionHighlights","mediaEmbed","high","TrackChangesEditing","options","MediaEmbedEditing","has","conversion","editor","locale","createEmptyElement","_descriptionFactory"];var Pi,Di;Pi=Fi,Di=107,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0xa")](){const t=this[Bi("0x15")];if(!t[Bi("0x5")][Bi("0x13")](Bi("0x12")))return;const e=t[Bi("0x5")].get(Bi("0x10")),n=t[Bi("0x0")];e[Bi("0x4")](Bi("0xe")),e[Bi("0x2")].registerElementLabel("media",(t=>Yo(n,Bi("0xb"),t))),t[Bi("0x14")][Bi("0x7")](Bi("0x9"))[Bi("0x3")]({model:Bi("0x8"),view:(t,{writer:e,options:n})=>{if(n[Bi("0xd")])return e[Bi("0x1")]("div")},converterPriority:Bi("0xf")}),t[Bi("0xc")].downcastDispatcher.on("attribute:url:media",((t,e,n)=>{n[Bi("0x11")][Bi("0xd")]&&t[Bi("0x6")]()}),{priority:"high"})}}const Ui=["TrackChangesEditing","get","enableCommand","MentionEditing","afterInit","mention","has","plugins"];var Gi,Hi;Gi=Ui,Hi=244,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{[zi("0x0")](){const t=this.editor;t.plugins[zi("0x2")](zi("0x7"))&&t[zi("0x3")][zi("0x5")](zi("0x4"))[zi("0x6")](zi("0x1"))}}const Vi=["pageBreak","plugins","afterInit","editor","PageBreakEditing","enableCommand","registerElementLabel","get","locale","ELEMENT_PAGE_BREAK","has","_descriptionFactory","TrackChangesEditing"];var Ki,qi;Ki=Vi,qi=496,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{[Xi("0x0")](){const t=this[Xi("0x1")];if(!t[Xi("0xc")][Xi("0x8")](Xi("0x2")))return;t.plugins.get(Xi("0xa"))[Xi("0x3")](Xi("0xb"));const e=t[Xi("0xc")][Xi("0x5")](Xi("0xa")),n=t[Xi("0x6")];e[Xi("0x9")][Xi("0x4")](Xi("0xb"),(t=>Yo(n,Xi("0x7"),t)))}}const Ji=["activeMarkers","plugins","ELEMENT_PARAGRAPH","Paragraph","type","registerElementLabel","ck-suggestion-marker-split","isTouching","afterInit","registerDescriptionCallback","*Change to:* %0","isLimit","createUIElement","_descriptionFactory","paragraph","$text","filter","addMarker:suggestion:insertion","document","parent","insertParagraph","insertion","change","consumable","enableCommand","from","blockName","downcastDispatcher","showSuggestionHighlights","getSelectedBlocks","get","nodeAfter","writer","checkChild","getItemLabel","editing","ck-suggestion-marker--active","TrackChangesEditing","editor","bindElementToMarker","*Insert:* %0","has","commandName","includes","selection","getFirstRange","markerName","name","isBlock","end","markBlockFormat","markerRange","mapper","toViewPosition","model","locale","insert","options","addClass","highest","span","consume","schema"];var Qi,Zi;Qi=Ji,Zi=224,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class ta extends t.Plugin{[Yi("0x24")](){const t=this[Yi("0x3")];if(!t[Yi("0x1d")][Yi("0x6")](Yi("0x1f")))return;const e=t[Yi("0x14")],n=t[Yi("0x1d")][Yi("0x3a")](Yi("0x2"));n[Yi("0x29")][Yi("0x21")](Yi("0x2a"),(t=>Yo(e,Yi("0x1e"),t))),n[Yi("0x34")](Yi("0x2a"),((e,o={})=>{const s=t[Yi("0x13")][Yi("0x2e")],r=o[Yi("0x9")]||s[Yi("0x9")],i=Array[Yi("0x35")](r[Yi("0x39")]())[Yi("0x2c")]((t=>{return e=t,(n=this.editor[Yi("0x13")][Yi("0x1b")])[Yi("0x3d")](e[Yi("0x2f")],Yi("0x2a"))&&!n.isObject(e)&&Yi("0x2a")!=e.name;var e,n}));t[Yi("0x13")][Yi("0x32")]((()=>{for(const t of i)n[Yi("0xf")](t,{commandName:"paragraph",commandParams:[],formatGroupId:Yi("0x36")},fs(t))}))})),n[Yi("0x29")][Yi("0x25")]((t=>{const{data:n}=t;if(n&&Yi("0x2a")==n[Yi("0x7")])return{type:"format",content:Yo(e,Yi("0x26"),Yo(e,"ELEMENT_PARAGRAPH"))}})),n[Yi("0x34")](Yi("0x30")),t[Yi("0x0")][Yi("0x37")].on(Yi("0x2d"),ea(t),{priority:"highest"}),t.data[Yi("0x37")].on(Yi("0x2d"),((e,n,o)=>{o[Yi("0x16")][Yi("0x38")]&&ea(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0x18")});const o=n[Yi("0x29")];o.registerDescriptionCallback((n=>{if("insertion"!==n[Yi("0x20")])return;const{start:s,end:r}=n[Yi("0xa")]();if(!s[Yi("0x23")](r)||!s[Yi("0x3b")])return;const i=t[Yi("0x13")].schema,a=s[Yi("0x3b")];return i[Yi("0xd")](a)&&!i[Yi("0x27")](a)&&i.checkChild(a,Yi("0x2b"))?{type:Yi("0x31"),content:Yo(e,Yi("0x5"),o[Yi("0x3e")](a,1))}:void 0}))}}function ea(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Yi("0x1d")][Yi("0x3a")]("TrackChangesEditing"),i=o.markerRange.start,a=o.markerRange[Yi("0xe")],x=t.model.schema;if(!i[Yi("0x23")](a)||!i[Yi("0x3b")])return;const c=i[Yi("0x3b")];if(x[Yi("0xd")](c)&&!x.isLimit(c)&&x[Yi("0x3d")](c,Yi("0x2b"))){if(!s[Yi("0x33")][Yi("0x1a")](o[Yi("0x10")],n[Yi("0xc")]))return;const t=s[Yi("0x3c")][Yi("0x28")](Yi("0x19"),{class:Yi("0x22")}),i=s[Yi("0x11")][Yi("0x12")](a);e&&r[Yi("0x1c")][Yi("0x8")](o[Yi("0xb")])&&s[Yi("0x3c")][Yi("0x17")](Yi("0x1"),t),s[Yi("0x3c")][Yi("0x15")](i,t),s[Yi("0x11")][Yi("0x4")](t,o[Yi("0xb")])}}}const na=["removeFormat","commandName","getItems","schema","change","locale","markInlineFormat","isFormatting","isCollapsed","plugins","has","model","format","afterInit","from","*Remove all formatting*"];var oa,sa;oa=na,sa=116,function(t){for(;--t;)oa.push(oa.shift())}(++sa);const ra=function(t,e){return na[t-=0]};class ia extends t.Plugin{[ra("0x9")](){const t=this.editor;if(!t[ra("0x5")][ra("0x6")]("RemoveFormatEditing"))return;const e=t[ra("0x5")].get("TrackChangesEditing");e.enableCommand(ra("0xc"),(n=>{const o=t[ra("0x7")].document.selection;o[ra("0x4")]?n():t[ra("0x7")][ra("0x0")]((()=>{const n=Array[ra("0xa")](o.getRanges());for(const o of n)for(const n of o[ra("0xe")]())aa(n,t[ra("0x7")][ra("0xf")])&&e[ra("0x2")](t.model.createRangeOn(n),{commandName:ra("0xc"),commandParams:[]})}))})),e._descriptionFactory.registerDescriptionCallback((e=>{const{data:n}=e;if(n&&ra("0xc")==n[ra("0xd")])return{type:ra("0x8"),content:Yo(t[ra("0x1")],ra("0xb"))}}))}}function aa(t,e){for(const[n]of t.getAttributes()){const t=e.getAttributeProperties(n);if(t&&t[ra("0x3")])return!0}return!1}const xa=["TrackChangesEditing","plugins","RestrictedEditingModeEditing","trackChanges","enableCommand","get","acceptSuggestion","discardSuggestion","discardAllSuggestions","acceptSelectedSuggestions","goToNextRestrictedEditingException","acceptAllSuggestions","goToPreviousRestrictedEditingException","discardSelectedSuggestions","has"];var ca,la;ca=xa,la=163,function(t){for(;--t;)ca.push(ca.shift())}(++la);const da=function(t,e){return xa[t-=0]};class ua extends t.Plugin{afterInit(){const t=this.editor;if(!t[da("0x3")][da("0x1")](da("0x4")))return;const e=t[da("0x3")][da("0x7")](da("0x2"));e[da("0x6")](da("0xe")),e[da("0x6")](da("0xc"));const n=t.plugins[da("0x7")](da("0x4"));n.enableCommand(da("0x5")),n.enableCommand(da("0x8")),n[da("0x6")](da("0x9")),n[da("0x6")](da("0xd")),n.enableCommand(da("0xa")),n[da("0x6")](da("0xb")),n[da("0x6")](da("0x0"))}}const ga=["init","downcastDispatcher","test","editing","softBreak","plugins","data","ELEMENT_LINE_BREAK","merge","requires","element","writer","addMarker:suggestion:insertion","showSuggestionHighlights","markerRange","model","locale","addClass","options","high","shiftEnter","split","TrackChangesEditing","mapper","deletion","activeMarkers","createPositionBefore","name","toViewPosition","addMarker:suggestion","bindElementToMarker","_descriptionFactory","get"];var ma,fa;ma=ga,fa=124,function(t){for(;--t;)ma.push(ma.shift())}(++fa);const ha=function(t,e){return ga[t-=0]};class pa extends t.Plugin{static get[ha("0x11")](){return[nr.ShiftEnter]}[ha("0x8")](){const t=this.editor,e=t[ha("0xd")][ha("0x7")](ha("0x1e"));e.enableCommand(ha("0x1c")),t[ha("0xb")][ha("0x9")].on(ha("0x14"),ba(t),{priority:ha("0x1b")}),t[ha("0xb")][ha("0x9")].on("addMarker:suggestion:deletion",ba(t),{priority:ha("0x1b")}),t[ha("0xe")].downcastDispatcher.on(ha("0x4"),((e,n,o)=>{o[ha("0x1a")][ha("0x15")]&&ba(t,{showActiveMarker:!1})(e,n,o)})),e[ha("0x6")].registerElementLabel("softBreak",(e=>Yo(t[ha("0x18")],ha("0xf"),e)))}}function ba(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[ha("0xd")].get(ha("0x1e"));if(!s.consumable[ha("0xa")](o[ha("0x16")],n[ha("0x2")]))return;const i=t[ha("0x17")];for(const t of o[ha("0x16")].getItems()){if(!t.is(ha("0x12"),ha("0xc")))continue;const n=ha("0x20")==o.markerName[ha("0x1d")](":")[1]?ha("0x10"):"split",a=s[ha("0x13")].createUIElement("span",{class:"ck-suggestion-marker-"+n}),x=s[ha("0x1f")][ha("0x3")](i[ha("0x1")](t));e&&r[ha("0x0")].includes(o.markerName)&&s.writer[ha("0x19")]("ck-suggestion-marker--active",a),s[ha("0x13")].insert(x,a),s[ha("0x1f")][ha("0x5")](a,o.markerName)}}}const Ea=["value","locale","restrictedEditingException","FORMAT_RESTRICTED_DISABLED","markInlineFormat","isCollapsed","document","getRanges","editor","plugins","FORMAT_RESTRICTED_ENABLED","forceValue","selection","afterInit","_descriptionFactory","StandardEditingModeEditing","enableCommand","registerDescriptionCallback","has","change","format","get"];var _a,Ta;_a=Ea,Ta=272,function(t){for(;--t;)_a.push(_a.shift())}(++Ta);const Ca=function(t,e){return Ea[t-=0]};class ya extends t.Plugin{[Ca("0x5")](){const t=this[Ca("0x0")],e=t.model,n=t[Ca("0xf")];if(!t[Ca("0x1")][Ca("0xa")](Ca("0x7")))return;const o=t[Ca("0x1")][Ca("0xd")]("TrackChangesEditing"),s=Ca("0x10"),r=t.commands.get(s);o[Ca("0x8")](s,((t,n={})=>{const i=e[Ca("0x14")][Ca("0x4")];if(i[Ca("0x13")])return void t(n);const a=void 0!==n[Ca("0x3")]?n[Ca("0x3")]:!r[Ca("0xe")];e[Ca("0xb")]((()=>{const t=Array.from(i[Ca("0x15")]());for(const n of t){const t=a?[n]:ms(s,n,e);for(const e of t)o[Ca("0x12")](e,{commandName:s,commandParams:[{forceValue:a}]})}}))})),o[Ca("0x6")][Ca("0x9")]((t=>{const{data:e}=t;if(e&&e.commandName==s)return e.commandParams[0].forceValue?{type:Ca("0xc"),content:Yo(n,Ca("0x2"))}:{type:Ca("0xc"),content:Yo(n,Ca("0x11"))}}))}}const ka=["model","config","inline","find","TrackChangesEditing","includes","style","createRangeOn","commands","element","block","toLowerCase","format","from","classes","_getStyleDefinition","enabledStyles","push","StyleUtils","plugins","getItems","styleName","get","markInlineFormat","normalizeConfig","_descriptionFactory","change","locale","getAncestors","style.definitions","markBlockFormat","has","forceValue","getSelectedBlocks","name","value","_getRangesWithClasses","style:","*Remove format:* %0","selection","getDefinitionsForView","*Format:* %0","registerDescriptionCallback","DataSchema","afterInit","getRanges","every","commandParams"];var Aa,va;Aa=ka,va=462,function(t){for(;--t;)Aa.push(Aa.shift())}(++va);const Ra=function(t,e){return ka[t-=0]};class Ia extends t.Plugin{[Ra("0xe")](){const t=this.editor;if(!t[Ra("0x25")][Ra("0x1")]("Style"))return;const e=t[Ra("0x1a")][Ra("0x28")]("style"),n=t[Ra("0x25")][Ra("0x28")](Ra("0x16")),o=t[Ra("0x2d")],s=t[Ra("0x25")][Ra("0x28")](Ra("0xd")),r=t.plugins[Ra("0x28")](Ra("0x24"))[Ra("0x2a")](s,t[Ra("0x13")].get(Ra("0x2f")));n.enableCommand(Ra("0x18"),((o,{styleName:i})=>{const a=t[Ra("0x12")].document[Ra("0x9")],x=this[Ra("0x21")](i,r);if(!x)return;if(!e[Ra("0x22")][Ra("0x17")](i))return;if(a.isCollapsed&&!x.isBlock)return void o({styleName:i});const c=!e[Ra("0x5")][Ra("0x17")](x[Ra("0x4")]);if(x.isBlock){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Ra("0x2e")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[Ra("0x17")](o[Ra("0x4")])){n.add(o);break}}return n}(a[Ra("0x3")](),x.modelElements);t[Ra("0x12")][Ra("0x2c")]((()=>{for(const t of e)n[Ra("0x0")](t,{commandName:Ra("0x18"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:Ra("0x7")+i})}))}else{let e=Array[Ra("0x1f")](a[Ra("0xf")]());if(!c){const n=Array[Ra("0x1f")](s[Ra("0xa")](x[Ra("0x1b")],!1))[0].model,o=[];for(const s of e){const e=this[Ra("0x6")](t.model,s,x[Ra("0x20")],n);o[Ra("0x23")](...e)}e=o}t[Ra("0x12")][Ra("0x2c")]((()=>{for(const t of e)n[Ra("0x29")](t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Ra("0x2b")][Ra("0xc")]((t=>{const{data:e}=t;if(e&&Ra("0x18")===e.commandName)return e.commandParams[0][Ra("0x2")]?{type:"format",content:Yo(o,Ra("0xb"),e[Ra("0x11")][0][Ra("0x27")].toLowerCase())}:{type:Ra("0x1e"),content:Yo(o,Ra("0x8"),e[Ra("0x11")][0][Ra("0x27")][Ra("0x1d")]())}}))}[Ra("0x21")](t,e){let n=e[Ra("0x1c")][Ra("0x15")]((e=>e[Ra("0x4")]===t));return n||(n=e[Ra("0x14")].find((e=>e[Ra("0x4")]===t))),n}_getRangesWithClasses(t,e,n,o){const s=[];for(const r of e[Ra("0x26")]()){const e=r.getAttribute(o);e&&n[Ra("0x10")]((t=>e[Ra("0x20")][Ra("0x17")](t)))&&s.push(t[Ra("0x19")](r))}return s}}const Sa=["insertTableColumnRight","toViewElement","createPositionAt","data","from","MAX_SAFE_INTEGER","getItems","options","_tableSuggestions","getRowIndexes","isTouching","getRanges","getSelectionAffectedTableCells","position","every","hasAttribute","insertTableRowBelow","isArray","accept","fromRange","_tablePostFixingSubtypes","TrackChangesEditing","locale","ELEMENT_TABLE_WITH_TEXT","registerElementLabel","_getSuggestionCoords","createRangeIn","insertTable","_splitMarkerName","plugins","createTableWalker","getChangedMarkers","downcastDispatcher","setSelection","nodeAfter","includes","$textProxy","enqueueChange","tableRow","toLowerCase","addMarker:suggestion","_setupColumnsRowsFixing","selectTableRow","ELEMENT_TABLE_COLUMN","selection","startsWith","change:data","selectTableColumn","getColumnIndexes","ELEMENT_TABLE_ROW","table","batch","getCellLocation","createRangeOn","map","registerCustomCallback","type","join","removeTableColumn","_getCoordsForCells","some","order","document","getFirstRange","highest","last","findAncestor","minRow","writer","name","isEqual","get","markMultiRangeInsertion","isInContent","max","rowspan","registerDescriptionCallback","nodeBefore","*Remove:* %0","deletion","detach","insertion","removeTableRow","tableCell","oldRange","end","substr","mapper","insert","span","MIN_SAFE_INTEGER","TableUtils","cell","tableColumn","getAttribute","$graveyard","subType","tablePaste","refresh","removeClass","*Insert:* %0","change","colspan","getChanges","has","getContainedElement","addClass","discard","filter","start","TableEditing","commands","differ","model","left","element","item","above","first","ELEMENT_TABLE_COLUMN_WITH_TEXT","root","length","enableCommand","editor","add","getChildren","rootName","_suggestionFactory","maxRow","_descriptionFactory"];var La,Na;La=Sa,Na=496,function(t){for(;--t;)La.push(La.shift())}(++Na);const Ma=function(t,e){return Sa[t-=0]};class wa extends t.Plugin{constructor(t){super(t),this._tablePostFixingSubtypes=["tableRow","tableColumn"],this[Ma("0x20")]=new Set}afterInit(){const t=this[Ma("0x11")],e=t[Ma("0x7")][Ma("0x56")][Ma("0x44")];if(!t.plugins[Ma("0x80")](Ma("0x4")))return;const n=t[Ma("0x2e")],o=t.plugins[Ma("0x5f")](Ma("0x2d")),s=t[Ma("0x35")][Ma("0x5f")]("TableUtils");o[Ma("0x17")][Ma("0x30")]("table",(t=>Yo(n,"ELEMENT_TABLE",t))),this[Ma("0x41")](),o[Ma("0x10")](Ma("0x33")),o[Ma("0x10")](Ma("0x42")),o[Ma("0x10")](Ma("0x47"));for(const n of["insertTableRowAbove",Ma("0x28")]){const r=t[Ma("0x5")][Ma("0x5f")](n);o[Ma("0x10")](n,(n=>{t[Ma("0x7")][Ma("0x7d")]((t=>{n();const i=Ma("0xb")===r[Ma("0x55")],a=s[Ma("0x24")](e),x=s[Ma("0x21")](a),c=i?x.first-1:x.last+1,l=a[0].findAncestor(Ma("0x4a")),d=s.createTableWalker(l,{startRow:c,endRow:c}),u=Array[Ma("0x1c")](d)[Ma("0x4e")]((e=>t[Ma("0x4d")](e[Ma("0x74")])));o[Ma("0x60")](u,"tableRow")}))}))}for(const n of["insertTableColumnLeft",Ma("0x18")]){const r=t.commands.get(n);o.enableCommand(n,(n=>{t[Ma("0x7")].change((t=>{n();const i=Ma("0x8")===r[Ma("0x55")],a=s[Ma("0x24")](e),x=s[Ma("0x48")](a),c=i?x[Ma("0xc")]-1:x[Ma("0x59")]+1,l=a[0].findAncestor(Ma("0x4a")),d=s[Ma("0x36")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[Ma("0x1c")](d)[Ma("0x4e")]((e=>t[Ma("0x4d")](e[Ma("0x74")])));o[Ma("0x60")](u,Ma("0x75"))}))}))}for(const n of[Ma("0x6a"),Ma("0x52")]){const r=n[Ma("0x6e")](11),i=r.toLowerCase(),a=i[Ma("0x6e")](0,3)+Ma("0x71"),x=Ma("0x4a")+r,c="min"+r,l=Ma("0x62")+r;o.enableCommand(n,(()=>{t[Ma("0x7")][Ma("0x7d")]((t=>{const r=s[Ma("0x24")](e),d=r[0][Ma("0x5a")](Ma("0x4a"));let u;if(Ma("0x6a")==n){const t=s[Ma("0x21")](r);u={startRow:t.first,endRow:t[Ma("0x59")],includeAllSlots:!0}}else{const t=s[Ma("0x48")](r);u={startColumn:t[Ma("0xc")],endColumn:t[Ma("0x59")],includeAllSlots:!0}}const g=s[Ma("0x36")](d,u),m=Array[Ma("0x1c")](g).map((({cell:t})=>t)),f=Oa(m[Ma("0x2")]((t=>t[Ma("0x27")](a)))),h=Oa(m[Ma("0x2")]((t=>!t[Ma("0x27")](a))))[Ma("0x4e")]((e=>t[Ma("0x4d")](e))),p=o.markMultiRangeDeletion(h,x);if(p&&(Ma("0x3e")==p[Ma("0x78")]||Ma("0x75")==p.subType)){const e=this[Ma("0x31")](p);for(const n of f){const o=t.createRangeOn(n),r=s[Ma("0x4c")](n),x=n[Ma("0x76")](a)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+x<=u&&p.addRange(o)}}}))}))}function r(n){const o=Array.from(e[Ma("0x23")]())[Ma("0x4e")]((t=>i.LiveRange.fromRange(t)));t[Ma("0x7")][Ma("0x7d")]((e=>{const s=e[Ma("0x4b")];n=n[Ma("0x2")]((t=>Ma("0x77")!=t[Ma("0xe")].rootName)),e.setSelection(n),t[Ma("0x5")][Ma("0x5f")](Ma("0x6a"))[Ma("0x7a")](),t.execute(Ma("0x6a"),{forceDefaultExecution:!0}),t[Ma("0x7")].enqueueChange((()=>{t[Ma("0x7")][Ma("0x3d")](s,(t=>{const e=o[Ma("0x2")]((t=>"$graveyard"!=t.root[Ma("0x14")]));e[Ma("0xf")]>0&&t[Ma("0x39")](e);for(const t of o)t[Ma("0x68")]()}))}))}))}function x(n){t[Ma("0x7")].change((o=>{const s=Array[Ma("0x1c")](e[Ma("0x23")]()).map((t=>i.LiveRange[Ma("0x2b")](t))),r=[];for(const t of n)for(const e of t.getItems({shallow:!0}))r.push(e);for(const e of r)"$graveyard"!=e[Ma("0xe")][Ma("0x14")]&&(o[Ma("0x39")](o[Ma("0x1a")](e,0)),t[Ma("0x5")][Ma("0x5f")]("removeTableColumn")[Ma("0x7a")](),t.execute("removeTableColumn",{forceDefaultExecution:!0}));const a=s[Ma("0x2")]((t=>"$graveyard"!=t[Ma("0xe")][Ma("0x14")]));a[Ma("0xf")]>0&&o.setSelection(a);for(const t of s)t[Ma("0x68")]()}))}function c(t,e){return e[Ma("0x26")]((e=>t[Ma("0x54")]((t=>t.end[Ma("0x5e")](e[Ma("0x3")])||e[Ma("0x6d")][Ma("0x5e")](t[Ma("0x3")])))))}function l(t,e){return t[Ma("0x54")]((t=>e[Ma("0x54")]((e=>t.end[Ma("0x22")](e[Ma("0x3")])))))}t[Ma("0x1b")][Ma("0x38")].on(Ma("0x40"),((t,e,n)=>{if(!n[Ma("0x1f")].showSuggestionHighlights)return;const o=e[Ma("0xa")];if(!o)return;const s=n[Ma("0x6f")][Ma("0x19")](o);function r(t){return Array[Ma("0x29")](t)?t:[t]}s&&Ma("0x6b")===o[Ma("0x5d")]&&(0,a.setHighlightHandling)(s,n[Ma("0x5c")],((t,e,n)=>n[Ma("0x0")](r(e.classes),t)),((t,e,n)=>n[Ma("0x7b")](r(e.classes),t)))}),{priority:Ma("0x58")}),o[Ma("0x17")][Ma("0x64")]((t=>{if("insertion"!=t[Ma("0x50")]&&Ma("0x67")!=t.type)return;const e=t[Ma("0x81")]();if(null!=e&&e.is(Ma("0x9"),Ma("0x4a"))){if(Ma("0x69")==t[Ma("0x50")]){const e=t[Ma("0x1e")]()[Ma("0x2")]((t=>t.is(Ma("0x3c")))).map((t=>t[Ma("0x1b")]));if(e[Ma("0xf")])return{type:Ma("0x69"),content:Yo(n,Ma("0x7c"),Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e.join(" ")+'"'))}}if(Ma("0x67")==t[Ma("0x50")]){const e=t[Ma("0x1e")]()[Ma("0x2")]((t=>t.is(Ma("0x3c"))))[Ma("0x4e")]((t=>t[Ma("0x1b")]));if(e.length)return{type:"deletion",content:Yo(n,Ma("0x66"),Yo(n,Ma("0x2f"),'"'+e[Ma("0x51")](" ")+'"'))}}}})),o[Ma("0x17")][Ma("0x64")]((t=>{if("tableRow"==t[Ma("0x78")]){const e=t[Ma("0x1e")]().filter((t=>t.is(Ma("0x3c"))))[Ma("0x4e")]((t=>t[Ma("0x1b")])),o=this._getSuggestionCoords(t),s=o[Ma("0x16")]-o[Ma("0x5b")]+1;if(Ma("0x69")==t[Ma("0x50")])return e[Ma("0xf")]?{type:"insertion",content:Yo(n,Ma("0x7c"),Yo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[s,'"'+e[Ma("0x51")](" ")+'"']))}:{type:Ma("0x69"),content:Yo(n,Ma("0x7c"),Yo(n,Ma("0x49"),s))};if(Ma("0x67")==t[Ma("0x50")])return e.length?{type:Ma("0x67"),content:Yo(n,Ma("0x66"),Yo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[s,'"'+e[Ma("0x51")](" ")+'"']))}:{type:Ma("0x67"),content:Yo(n,Ma("0x66"),Yo(n,Ma("0x49"),s))}}if(Ma("0x75")==t[Ma("0x78")]){const e=t[Ma("0x1e")]().filter((t=>t.is(Ma("0x3c"))))[Ma("0x4e")]((t=>t.data)),o=this[Ma("0x31")](t),s=o.maxColumn-o.minColumn+1;if("insertion"==t[Ma("0x50")])return e[Ma("0xf")]?{type:"insertion",content:Yo(n,"*Insert:* %0",Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e[Ma("0x51")](" ")+'"']))}:{type:"insertion",content:Yo(n,Ma("0x7c"),Yo(n,Ma("0x43"),s))};if(Ma("0x67")==t[Ma("0x50")])return e[Ma("0xf")]?{type:Ma("0x67"),content:Yo(n,Ma("0x66"),Yo(n,Ma("0xd"),[s,'"'+e[Ma("0x51")](" ")+'"']))}:{type:Ma("0x67"),content:Yo(n,Ma("0x66"),Yo(n,"ELEMENT_TABLE_COLUMN",s))}}})),o[Ma("0x15")].registerCustomCallback(Ma("0x69"),Ma("0x3e"),Ma("0x1"),r),o[Ma("0x15")].registerCustomCallback("deletion",Ma("0x3e"),Ma("0x2a"),r),o[Ma("0x15")].registerCustomCallback(Ma("0x69"),"tableColumn",Ma("0x1"),x),o._suggestionFactory.registerCustomCallback("deletion",Ma("0x75"),Ma("0x2a"),x),o[Ma("0x15")][Ma("0x4f")](Ma("0x69"),Ma("0x75"),Ma("0x51"),c),o[Ma("0x15")].registerCustomCallback(Ma("0x67"),Ma("0x75"),Ma("0x51"),c),o[Ma("0x15")].registerCustomCallback(Ma("0x69"),Ma("0x3e"),"join",l),o[Ma("0x15")][Ma("0x4f")]("deletion","tableRow","join",l)}_acceptFormatSuggestionCallbackFactory(){const t=this[Ma("0x11")],e=t[Ma("0x7")].document[Ma("0x44")];return(n,o)=>{t[Ma("0x7")].change((s=>{const{commandName:r,commandParams:a}=o;let x=n[0][Ma("0x6d")][Ma("0x65")];a&&a[0]&&!1===a[0].forceValue&&(x=n[0].start[Ma("0x3a")]);const c=s[Ma("0x32")](x);if(Ma("0x77")==c.root[Ma("0x14")])return;const l=Array[Ma("0x1c")](e[Ma("0x23")]())[Ma("0x4e")]((t=>i.LiveRange[Ma("0x2b")](t)));s[Ma("0x39")](c),t[Ma("0x5")][Ma("0x5f")](r)[Ma("0x7a")](),a.push({forceDefaultExecution:!0}),t.execute(r,...a);const d=l[Ma("0x2")]((t=>Ma("0x77")!=t[Ma("0xe")].rootName));d[Ma("0xf")]>0&&s[Ma("0x39")](d);for(const t of l)t[Ma("0x68")]()}))}}[Ma("0x53")](t){const e=this[Ma("0x11")][Ma("0x35")][Ma("0x5f")](Ma("0x73"));let n=Number[Ma("0x1d")],o=Number[Ma("0x72")],s=Number.MAX_SAFE_INTEGER,r=Number[Ma("0x72")];for(const i of t){if(Ma("0x77")==i[Ma("0xe")].rootName)continue;const{row:t,column:a}=e[Ma("0x4c")](i),x=i[Ma("0x27")]("rowspan")?i.getAttribute(Ma("0x63"))-1:0,c=i[Ma("0x27")](Ma("0x7e"))?i[Ma("0x76")](Ma("0x7e"))-1:0;n=t<n?t:n,o=t+x>o?t+x:o,s=a<s?a:s,r=a+c>r?a+c:r}return{minRow:n,maxRow:o,minColumn:s,maxColumn:r}}[Ma("0x41")](){const t=this[Ma("0x11")],e=t[Ma("0x35")][Ma("0x5f")](Ma("0x2d")),n=t.plugins[Ma("0x5f")](Ma("0x73"));t.model[Ma("0x56")].on(Ma("0x46"),(()=>{const n=Array.from(t[Ma("0x7")].document[Ma("0x6")][Ma("0x37")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Ma("0x34")](t);if("suggestion"!=n)continue;if(null!=o[Ma("0x6c")])continue;const i=e.getSuggestion(s);this[Ma("0x2c")][Ma("0x3b")](r)&&this._tableSuggestions[Ma("0x12")](i)}}),{priority:"low"});const o=(t,e)=>{let o=!1;const s=e[Ma("0x4d")](t),r=t[Ma("0x5a")]("table"),i=n[Ma("0x4c")](t);for(const e of this[Ma("0x20")]){const n=e.subType,a=n[Ma("0x45")](Ma("0x79")),x=n[Ma("0x6e")](a?10:5),c=x[Ma("0x3f")](),l=c[Ma("0x6e")](0,3)+"span",d="min"+x,u=Ma("0x62")+x;if(!e[Ma("0x61")])continue;if(r!=e[Ma("0x57")]().start[Ma("0x5a")](Ma("0x4a")))continue;if(e.isIntersectingWithRange(s))continue;const g=t.hasAttribute(l)?t[Ma("0x76")](l)-1:0,m=this._getSuggestionCoords(e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e.addRange(s),o=!0)}return o};t.model[Ma("0x56")].registerPostFixer((e=>{let n=!1;for(const s of t[Ma("0x7")][Ma("0x56")].differ[Ma("0x7f")]())if(Ma("0x70")==s[Ma("0x50")])if(Ma("0x3e")==s[Ma("0x5d")])for(const t of s[Ma("0x25")].nodeAfter[Ma("0x13")]())n=n||o(t,e);else Ma("0x6b")==s[Ma("0x5d")]&&(n=n||o(s[Ma("0x25")].nodeAfter,e));return n}))}[Ma("0x31")](t){return this[Ma("0x53")](t[Ma("0x23")]()[Ma("0x4e")]((t=>t[Ma("0x3")].nodeAfter)))}}function Oa(t){return Array[Ma("0x1c")](new Set(t).values())}const Fa=["TableUtils","low","plugins","find","value","map","setSelection","formatBlock","getSuggestions","markMultiRangeBlockFormat","detach","model","registerCustomCallback","getFirstPosition","locale","type","splitTableCellVertically","_acceptFormatSuggestionCallbackFactory","has","return","document","fromRange","mergeTableCellLeft","enableCommand","getSelectionAffectedTableCells","stop","commands","horizontally","highest","accept","from","format","trackChanges","cell","$graveyard","forceDefaultExecution","tableCell","mergeTableCellDown","length","table","mergeTableCellRight","add","splitTableCellHorizontally","_isForcedDefaultExecutionBlock","registerDescriptionCallback","_descriptionFactory","get","direction","refresh","editor","mergeTableCells","TrackChangesEditing","commandName","markBlockFormat","author","selection","_areSelectedCellsMergable","subType","_areMergableCells","*Merge cells*","createTableWalker","size","insertion","*Split cell:* vertically","getAncestors","getCellLocation","filter","afterInit","element","TableEditing","_suggestionFactory","mergeTableCellUp","createRangeOn","change","isEnabled"];var Pa,Da;Pa=Fa,Da=166,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{static get requires(){return[wa]}[Ba("0x33")](){const t=this[Ba("0x21")],e=t[Ba("0x46")][Ba("0x4")][Ba("0x27")],n=t[Ba("0x49")];if(!t[Ba("0x3d")].has(Ba("0x35")))return;const o=t[Ba("0x3d")][Ba("0x1e")](Ba("0x23")),s=t[Ba("0x3d")].get(Ba("0x3b")),r=t.plugins[Ba("0x1e")](wa);r._tablePostFixingSubtypes.push("mergeTableCells"),o[Ba("0x7")]("mergeTableCells",(()=>{const e=s[Ba("0x8")](t[Ba("0x46")][Ba("0x4")][Ba("0x27")]);t[Ba("0x46")][Ba("0x39")]((()=>{o[Ba("0x44")](e,{commandName:Ba("0x22"),commandParams:[]},[],Ba("0x22"))}))})),t[Ba("0xa")].get(Ba("0x22")).on("execute",((e,n)=>{t[Ba("0xa")][Ba("0x1e")](Ba("0x10"))[Ba("0x3f")]&&(n[Ba("0x16")]>0&&n[n[Ba("0x16")]-1]&&n[n.length-1][Ba("0x13")]||o[Ba("0x1b")]||this._areSelectedCellsMergable()||e[Ba("0x9")]())}),{priority:Ba("0xc")});for(const e of["mergeTableCellUp",Ba("0x18"),Ba("0x15"),Ba("0x6")]){const n=t.commands[Ba("0x1e")](e);o[Ba("0x7")](e,(()=>{const e=t[Ba("0x46")].document[Ba("0x27")][Ba("0x48")]().getAncestors().find((t=>t.is(Ba("0x34"),Ba("0x14")))),s=n[Ba("0x3f")];t[Ba("0x46")][Ba("0x39")]((()=>{o[Ba("0x44")]([e,s],{commandName:Ba("0x22"),commandParams:[]},[],Ba("0x22"))}))}))}for(const e of["splitTableCellVertically",Ba("0x1a")]){const n=t.commands.get(e);o.enableCommand(e,(()=>{const r=s[Ba("0x8")](t[Ba("0x46")][Ba("0x4")][Ba("0x27")])[0],i=r.findAncestor(Ba("0x17")),{column:a,row:x}=s[Ba("0x31")](r);let c=[];if(Ba("0xb")==n[Ba("0x1f")]){const t=s.createTableWalker(i,{startRow:x,endRow:x,includeAllSlots:!0});c=Array[Ba("0xe")](t)[Ba("0x40")]((t=>t[Ba("0x11")]))}else{const t=s[Ba("0x2c")](i,{column:a,includeAllSlots:!0});c=Array[Ba("0xe")](t)[Ba("0x40")]((t=>t[Ba("0x11")]))}t.model[Ba("0x39")]((t=>{o[Ba("0x25")](t[Ba("0x38")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[Ba("0x1d")][Ba("0x1c")]((t=>{const{data:e}=t;if(e)return"mergeTableCells"==e[Ba("0x24")]?{type:Ba("0xf"),content:Yo(n,Ba("0x2b"))}:void 0})),o[Ba("0x1d")].registerDescriptionCallback((t=>{const{data:e}=t;if(e)return Ba("0x0")==e[Ba("0x24")]?{type:"format",content:Yo(n,Ba("0x2f"))}:"splitTableCellHorizontally"==e.commandName?{type:Ba("0xf"),content:Yo(n,"*Split cell:* horizontally")}:void 0}));const a=r[Ba("0x1")]();for(const t of[Ba("0x37"),"mergeTableCellRight",Ba("0x15"),Ba("0x6")])o[Ba("0x36")].registerCustomCallback("formatBlock",t,Ba("0xd"),a);for(const t of["splitTableCellVertically",Ba("0x1a")])o[Ba("0x36")].registerCustomCallback("formatBlock",t,"accept",a);o[Ba("0x36")][Ba("0x47")](Ba("0x42"),Ba("0x22"),Ba("0xd"),(n=>{t[Ba("0x46")][Ba("0x39")]((o=>{const s=Array[Ba("0xe")](e.getRanges())[Ba("0x40")]((t=>i.LiveRange[Ba("0x5")](t)));o[Ba("0x41")](n),t[Ba("0xa")][Ba("0x1e")](Ba("0x22"))[Ba("0x20")](),t.execute(Ba("0x22"),{forceDefaultExecution:!0});const r=s[Ba("0x32")]((t=>Ba("0x12")!=t.root.rootName));r[Ba("0x16")]>0&&o[Ba("0x41")](r);for(const t of s)t[Ba("0x45")]()}))}));for(const e of[Ba("0x37"),Ba("0x15"),Ba("0x6"),Ba("0x18")]){const n=t.commands[Ba("0x1e")](e);n.on("set:isEnabled",((e,o,s)=>{if(s){const o=t[Ba("0x46")][Ba("0x4")].selection[Ba("0x48")]()[Ba("0x30")]()[Ba("0x3e")]((t=>t.is(Ba("0x34"),Ba("0x14"))));this[Ba("0x2a")](n[Ba("0x3f")],o)||(e[Ba("0x3")]=!1,e[Ba("0x9")]())}}),{priority:Ba("0x3c")})}}[Ba("0x28")](){const t=this[Ba("0x21")][Ba("0xa")][Ba("0x1e")]("mergeTableCells"),e=this[Ba("0x21")][Ba("0x3d")][Ba("0x1e")](Ba("0x3b"));if(!t[Ba("0x3a")])return!1;const n=e[Ba("0x8")](this[Ba("0x21")][Ba("0x46")].document.selection);for(const t of n)for(const e of n)if(t!=e&&!this[Ba("0x2a")](t,e))return!1;return!0}[Ba("0x2a")](t,e){const n=this[Ba("0x21")][Ba("0x3d")][Ba("0x1e")]("TrackChangesEditing"),o=this.editor.model[Ba("0x38")](t),s=this[Ba("0x21")].model.createRangeOn(e),r=new Set,i=new Set;for(const t of n[Ba("0x43")]())if((Ba("0x2e")==t[Ba("0x4a")]||"deletion"==t.type||Ba("0x22")==t[Ba("0x29")])&&t.isInContent)for(const e of t.getRanges())e.containsRange(o,!0)&&r[Ba("0x19")](t[Ba("0x4a")]+":"+t[Ba("0x26")].id),e.containsRange(s,!0)&&i[Ba("0x19")](t[Ba("0x4a")]+":"+t[Ba("0x26")].id);if(r.size!=i[Ba("0x2d")])return!1;for(const t of r)if(!i[Ba("0x2")](t))return!1;return!0}}const Ua=["showSuggestionHighlights","parent","index","enableCommand","removeAttribute","options","consumable","registerCustomCallback","table","isBefore","ck-suggestion-marker--active","formatBlock","name","item","locale","getSelectionAffectedTableCells","ck-suggestion-marker-","createTableWalker","editor","headingRows","toViewElement","first","findAncestor","removeClass","change","accept","TableEditing","model","_suggestionFactory","unbindElementFromMarkerName","end","setTableRowHeader","createRange","afterInit","nodeAfter","markerName","FORMAT_REGULAR_COLUMN","data","addMarker:suggestion","setAttribute","markBlockFormat","TableUtils","requires","value","data-suggestion","setTableColumnHeader","get","createPositionBefore","document","mapper","highest","plugins","getSuggestion","nodeBefore","forceValue","cell","TrackChangesEditing","getAttribute","addClass","commandName","*Format:* %0","commands","getColumnIndexes","markerRange","createPositionAfter","registerDescriptionCallback","format","FORMAT_REGULAR_ROW","getCellLocation","headingColumns","downcastDispatcher","writer","last","editing","bindElementToMarker","getChild","_acceptFormatSuggestionCallbackFactory","_descriptionFactory","childCount","removeMarker:suggestion","selection","commandParams","has"];var Ga,Ha;Ga=Ua,Ha=317,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Wa extends t.Plugin{static get[za("0x39")](){return[wa]}[za("0x30")](){const t=this[za("0x21")];if(!t[za("0x42")][za("0xe")](za("0x29")))return;const e=t[za("0x1d")],n=t[za("0x42")][za("0x3d")](za("0x47")),o=t[za("0x42")][za("0x3d")]("TableUtils"),s=t[za("0x42")][za("0x3d")](wa);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:a,id:x}=n._splitMarkerName(r[za("0x32")]),c=n[za("0x43")](x);if(!c[za("0x34")]||za("0x3c")!=c[za("0x34")][za("0x4a")])return;if(r[za("0x1c")])return void s.stop();if(!i[za("0x15")].consume(r[za("0x4e")],s[za("0x1b")]))return;const l=r.markerRange.start[za("0x31")],d=r[za("0x4e")][za("0x2d")][za("0x44")],u=l.parent[za("0x10")],{column:g}=o[za("0x0")](l),{column:m}=o.getCellLocation(d);for(let s=g;s<=m;s++){const c=o[za("0x20")](u,{column:s,includeAllSlots:!1});for(const o of c){const s=o.cell,c=i[za("0x40")][za("0x23")](s);i.writer[za("0x49")]("ck-suggestion-marker-"+a,c),e&&i.writer[za("0x36")](za("0x3b"),x,c),i[za("0x40")][za("0x6")](c,r[za("0x32")]),t&&(n.activeMarkers.includes(r[za("0x32")])?i[za("0x3")].addClass("ck-suggestion-marker--active",c):i.writer[za("0x26")]("ck-suggestion-marker--active",c))}}}}n.enableCommand(za("0x2e"),((e,s)=>{const r=o[za("0x1e")](t.model[za("0x3f")][za("0xc")]),i=o.getRowIndexes(r),a=r[0][za("0x25")](za("0x17")),x=a.getAttribute(za("0x22"))||0,c=s&&null!==s[za("0x45")]?s[za("0x45")]:!t[za("0x4c")][za("0x3d")](za("0x2e"))[za("0x3a")],l=c?i[za("0x4")]:i[za("0x24")],d=a[za("0x7")](l);let u;if(c){const e=a[za("0x7")](x);if(d[za("0x11")]<e.index)return;u=t.model[za("0x2f")](t[za("0x2a")][za("0x3e")](e.getChild(0)),t[za("0x2a")][za("0x4f")](d[za("0x7")](d.childCount-1)))}else{const e=a.getChild(x-1);if(!e)return;u=t.model[za("0x2f")](t.model[za("0x3e")](d.getChild(0)),t[za("0x2a")][za("0x4f")](e[za("0x7")](e[za("0xa")]-1)))}t[za("0x2a")].change((()=>{n[za("0x37")](u,{commandName:za("0x2e"),commandParams:[{forceValue:c}]},[],za("0x2e"))}))})),n[za("0x12")]("setTableColumnHeader",((e,o)=>{const s=t[za("0x42")][za("0x3d")](za("0x38")),r=s.getSelectionAffectedTableCells(t[za("0x2a")].document.selection),i=s[za("0x4d")](r),a=r[0].findAncestor(za("0x17")),x=a[za("0x48")](za("0x1"))||0,c=o&&null!==o.forceValue?o[za("0x45")]:!t[za("0x4c")][za("0x3d")]("setTableColumnHeader").value;let l;const d=a[za("0x7")](0),u=c?i.last:i[za("0x24")],g=s[za("0x20")](a,{startRow:0,column:u,includeAllSlots:!1}),m=Array.from(g)[0][za("0x46")];if(c){const e=d.getChild(x);if(m[za("0x18")](e))return;l=t[za("0x2a")][za("0x2f")](t[za("0x2a")].createPositionBefore(e),t[za("0x2a")].createPositionAfter(m))}else{const e=d.getChild(x-1);if(!e)return;l=t[za("0x2a")][za("0x2f")](t.model[za("0x3e")](m),t.model[za("0x4f")](e))}t[za("0x2a")][za("0x27")]((()=>{n[za("0x37")](l,{commandName:za("0x3c"),commandParams:[{forceValue:c}]},[],za("0x3c"))}))})),t.editing[za("0x2")].on(za("0x35"),r(),{priority:za("0x41")}),t[za("0x34")][za("0x2")].on(za("0x35"),((t,e,n)=>{n[za("0x14")][za("0xf")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:za("0x41")}),t[za("0x5")][za("0x2")].on(za("0xb"),((t,e,o)=>{const{type:s,id:r}=n._splitMarkerName(e[za("0x32")]),i=n[za("0x43")](r);if(!i.data||"setTableColumnHeader"!=i[za("0x34")][za("0x4a")])return;const a=o[za("0x40")].markerNameToElements(e[za("0x32")]);if(a)for(const t of a)o[za("0x3")].removeClass(za("0x1f")+s,t),o[za("0x3")][za("0x26")](za("0x19"),t),o[za("0x3")][za("0x13")](za("0x3b"),t),o[za("0x40")][za("0x2c")](t,e[za("0x32")])}),{priority:za("0x41")}),n[za("0x9")][za("0x50")]((t=>{const{data:n}=t;if(n){if(za("0x2e")==n[za("0x4a")]){const t=n[za("0xd")][0][za("0x45")];return o(Yo(e,t?"FORMAT_HEADER_ROW":za("0x52")))}if(za("0x3c")==n.commandName){const t=n.commandParams[0].forceValue;return o(Yo(e,t?"FORMAT_HEADER_COLUMN":za("0x33")))}}function o(t){return{type:za("0x51"),content:Yo(e,za("0x4b"),t)}}}));const i=s[za("0x8")]();n[za("0x2b")][za("0x16")](za("0x1a"),"setTableRowHeader",za("0x28"),i),n[za("0x2b")].registerCustomCallback(za("0x1a"),"setTableColumnHeader","accept",i)}}const Va=["suggestion-td","document","getAttributes","previous","editing","findAncestor","tableCellBorderWidth","row","root","next","suggestion","differ","find","markMultiRangeBlockFormat","markers","tablePasteChainId","nodeAfter","columns","getShiftedBy","formatBlock","name","updateMarker","add","getSuggestionCallback","removeRows","options","documentSelection","getItems","suggestion:formatBlock:tablePasteCell","dataDowncast","newRange","subType","batch","move","start","includes","has","createPositionBefore","length","startsWith","tableCellHorizontalAlignment","for","tablePasteColumn","_isForcedDefaultExecutionBlock","element","tableCellBorderStyle","createRangeOn","createRangeIn","_splitMarkerName","isEqual","_suggestionFactory","_createdBatches","map","_descriptionFactory","tableCellBackgroundColor","getTableIfOnlyTableInContent","rowInsertionRanges","columnInsertionIndexes","unwrap","TrackChangesEditing","content","_tablePostFixingSubtypes","column","markMultiRangeDeletion","getSuggestion","tablePaste","rootName","table","tablePasteCell","requires","endRow","tableCell","last","schema","first","insertColumns","insertContent","model","markerName","getContainedElement","cell","getSuggestions","getRowIndexes","endColumn","showSuggestionHighlights","selection","ck-suggestion-marker--active","wrap","remove","author","getAllAdjacentSuggestions","containsRange","low","*Replace table cells*","oldRange","getChild","getColumnIndexes","getRanges","_getCoordsForCells","change","markerAttributes","suggestionLoaded","TableClipboard","Users","markerToHighlight","deletion","tableCellVerticalAlignment","some","tableCellPadding","clipboardOutput","attributes","discard","type","editingDowncast","end","getMarkers","reduce","_replaceTableSlotCell","rowInsertionIndexes","isInContent","afterInit","insertion","plugins","previousSibling","insert","getChangedMarkers","from","push","isEmpty","createTableWalker","accept","filter","insertRows","view","get","tableCellSuggestion","entries","keys","fill","TableUtils","set","getRange","registerPostFixer","paragraph","high","registerCustomCallback","stop","cells","markMultiRangeInsertion","conversion","locale","position","ck-suggestion-marker-insertion","createElement","ck-suggestion-marker","getChildren","deletionRanges","forceDefaultExecution","editor","getRows","removeMarker","$graveyard","trackChanges","tablePasteRow","elementToElement","every","commands"];var Ka,qa;Ka=Va,qa=197,function(t){for(;--t;)Ka.push(Ka.shift())}(++qa);const Xa=function(t,e){return Va[t-=0]},$a=[Xa("0x8f"),"tableCellBorderColor",Xa("0xf"),Xa("0xa"),Xa("0x4c"),Xa("0x18"),Xa("0x4e")],Ja=Object.fromEntries($a[Xa("0x16")]((t=>[t,null])));class Qa extends t.Plugin{static get[Xa("0x27")](){return[wa]}[Xa("0x5a")](){const t=this.editor;if(!t[Xa("0x5c")][Xa("0x6")](Xa("0x48")))return;const n=t.plugins.get(Xa("0x1d")),o=t[Xa("0x5c")][Xa("0x68")](Xa("0x6d")),s=t[Xa("0x5c")][Xa("0x68")](wa),r=t[Xa("0x5c")][Xa("0x68")](Xa("0x48"));s[Xa("0x1f")][Xa("0x61")](Xa("0x85"),Xa("0xc")),t[Xa("0x2f")][Xa("0x2b")].register(Xa("0x69"),{allowIn:Xa("0x29"),allowContentOf:Xa("0x29"),isLimit:!0}),t[Xa("0x77")][Xa("0x86")]({model:Xa("0x69"),view:Xa("0x89")});let i=null;t[Xa("0x2f")].on(Xa("0x2e"),((s,a)=>{const[x,c]=a,l=a[a[Xa("0x8")]-1];l&&l[Xa("0x7f")]||n[Xa("0xd")]||this[Xa("0x80")][Xa("0x88")][Xa("0x68")](Xa("0x84")).value&&function(t,e,n,o,s){if(e&&!e.is(Xa("0xa3")))return!1;const r=s[Xa("0x19")](t,n);if(!r||!Ya(r,void 0,o))return!1;const i=o.getSelectionAffectedTableCells(n[Xa("0x8a")][Xa("0x37")]);if(!i[Xa("0x8")])return!1;const a=i[0][Xa("0x8e")](Xa("0x25")),x=o[Xa("0x34")](i),c=o[Xa("0x42")](i),l={startRow:x[Xa("0x2c")],endRow:x[Xa("0x2a")],startColumn:c[Xa("0x2c")],endColumn:c.last};return 1==i[Xa("0x8")]&&(l[Xa("0x28")]+=o[Xa("0x81")](r)-1,l[Xa("0x35")]+=o.getColumns(r)-1),Ya(a,l,o)}(x,c,t[Xa("0x2f")],o,r)&&(s[Xa("0x74")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Xa("0x2f")][Xa("0x45")]((()=>{t[Xa("0x2f")].insertContent(a[0],a[1],a[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:x,deletionRanges:c,cells:l}=i;s.length&&n[Xa("0x76")](s,Xa("0x85"),{tablePasteChainId:o}),r[Xa("0x8")]&&n.markMultiRangeInsertion(r,Xa("0xc"),{tablePasteChainId:o}),x[Xa("0x8")]&&n[Xa("0x76")](x,Xa("0x23"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Xa("0x8")]&&n[Xa("0x21")](c,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0});const d=n[Xa("0x96")](l[Xa("0x16")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Xa("0x26"),{tablePasteChainId:o});if(d){const e=d[Xa("0x55")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[Xa("0x2f")][Xa("0x10")](o),i=e.find((t=>t[Xa("0x6f")]()[Xa("0x13")](r)));i&&n.push([i[Xa("0x9d")],s])}n[Xa("0x8")]&&d.setAttribute(Xa("0x46"),Object.fromEntries(n))}i=null})))}),{priority:e.priorities[Xa("0x72")]+10}),t[Xa("0x5c")][Xa("0x68")]("TableClipboard").on(Xa("0x57"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t[Xa("0x74")]();const r=n[Xa("0x32")],a=o,x=Za(r),c=Za(a);t.return=r;let l=null,d=null;if(c||x)if(x&&!c){s.remove(r.getChild(0));for(const t of Array[Xa("0x60")](a.getChildren()))s[Xa("0x5e")](t,r,Xa("0x54"));const t=i[Xa("0x58")][Xa("0x5")](n[Xa("0x90")]),e=i[Xa("0x1b")].includes(n[Xa("0x20")]);t||e||(l=s[Xa("0x11")](r))}else c&&!x&&(d=s[Xa("0x11")](r));else{const t=s[Xa("0x7b")](Xa("0x69")),e=s[Xa("0x7b")](Xa("0x69"));s[Xa("0x39")](s[Xa("0x11")](r),e),s[Xa("0x5e")](t,r,0);for(const e of Array[Xa("0x60")](a[Xa("0x7d")]()))s[Xa("0x5e")](e,t,Xa("0x54"));l=s[Xa("0x10")](t),d=s[Xa("0x10")](e)}const u=Array.from(a[Xa("0x8b")]())[Xa("0x65")]((([t])=>$a[Xa("0x5")](t)));i[Xa("0x75")].push({element:r,attributes:u[Xa("0x8")]?Object.fromEntries(u):null}),l&&i.insertionRanges[Xa("0x61")](l),d&&i[Xa("0x7e")].push(d)}),{priority:Xa("0x72")}),o.on(Xa("0x2d"),((e,n)=>{const[s,r={}]=n;if(!i)return;const a=r.at||0,x=r[Xa("0x9a")]||1;i.columnInsertionIndexes=new Array(x)[Xa("0x6c")](a)[Xa("0x16")](((t,e)=>t+e));for(const{cell:e}of o[Xa("0x63")](s,{startColumn:a,endColumn:a+x-1}))i.columnInsertionRanges.push(t.model[Xa("0x10")](e))}),{priority:Xa("0x3e")}),o.on(Xa("0x66"),((e,n)=>{const[s,r={}]=n;if(!i)return;const a=r.at||0,x=r.rows||1;i[Xa("0x58")]=new Array(x)[Xa("0x6c")](a)[Xa("0x16")](((t,e)=>t+e));for(const{cell:e}of o[Xa("0x63")](s,{startRow:a,endRow:a+x-1}))i[Xa("0x1a")][Xa("0x61")](t[Xa("0x2f")][Xa("0x10")](e))}),{priority:"low"}),n[Xa("0x17")].registerDescriptionCallback((e=>{if(e[Xa("0x1")]&&e[Xa("0x1")][Xa("0x9")](Xa("0x23")))return e.previous?{}:{type:Xa("0x5b"),content:Yo(t[Xa("0x78")],Xa("0x3f"))}}));const a=()=>!1;for(const t of[Xa("0x23"),Xa("0xc"),"tablePasteRow",Xa("0x26")])n[Xa("0x14")].registerCustomCallback(Xa("0x5b"),t,"join",a),n[Xa("0x14")][Xa("0x73")]("deletion",t,"join",a),n[Xa("0x14")][Xa("0x73")](Xa("0x9c"),t,"join",a);n._suggestionFactory.registerCustomCallback(Xa("0x9c"),Xa("0x26"),Xa("0x51"),a),n[Xa("0x14")][Xa("0x73")](Xa("0x9c"),Xa("0x26"),"accept",((e,n,o)=>{const s=e[Xa("0x16")]((t=>t[Xa("0x31")]()))[Xa("0x65")]((t=>t)),r=new Map(s[Xa("0x16")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Xa("0x75")])e&&r.set(t,e);else if(o&&o[Xa("0x46")])for(const[e,n]of Object[Xa("0x6a")](o[Xa("0x46")])){const o=t[Xa("0x2f")][Xa("0x97")][Xa("0x68")](e),s=o?o[Xa("0x6f")]().getContainedElement():null;s&&r[Xa("0x6e")](s,n)}t[Xa("0x2f")][Xa("0x45")]((t=>{for(const[e,n]of r)t.setAttributes({...Ja,...n},e)}))}));const x=(e,o)=>{n[Xa("0x14")][Xa("0x73")](e,"tablePaste",o,((s,r,i)=>{t.model[Xa("0x45")]((t=>{const a=[];for(const t of s){const e=t[Xa("0x4")][Xa("0x99")];e.is(Xa("0xe"),"tableCellSuggestion")&&a[Xa("0x61")](e)}n[Xa("0x14")][Xa("0xa0")](e,null,o)(s,r,i);for(const e of a)Xa("0x83")!=e[Xa("0x91")][Xa("0x24")]&&t[Xa("0x1c")](e)}))}))};x(Xa("0x5b"),Xa("0x64")),x("insertion",Xa("0x51")),x(Xa("0x4b"),Xa("0x64")),x("deletion",Xa("0x51")),n[Xa("0x14")].registerCustomCallback("insertion","tablePasteRow",Xa("0x51"),(t=>{const e=t[Xa("0x16")]((t=>t[Xa("0x31")]())),n=e[0][Xa("0x8e")](Xa("0x25")),{minRow:r,maxRow:i}=s._getCoordsForCells(e);o[Xa("0xa1")](n,{at:r,rows:i-r+1})})),n[Xa("0x14")][Xa("0x73")]("insertion","tablePasteColumn",Xa("0x51"),(t=>{const e=t[Xa("0x16")]((t=>t[Xa("0x31")]())),n=e[0][Xa("0x8e")](Xa("0x25")),{minColumn:r,maxColumn:i}=s[Xa("0x44")](e);o.removeColumns(n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e.subType||!e.subType[Xa("0x9")](Xa("0x23")))return;const o=e.attributes.tablePasteChainId,s=n.getSuggestions()[Xa("0x65")]((t=>t[Xa("0x59")]&&t[Xa("0x50")]&&t[Xa("0x50")][Xa("0x98")]==o));s[Xa("0x8")]&&e[Xa("0x3c")]()[Xa("0x8")]!=s[Xa("0x8")]&&s[Xa("0x56")](((t,e)=>(t[Xa("0x92")]=e,e[Xa("0x8c")]=t,e)))};function l(t,e=!0){const{id:o}=n._splitMarkerName(t[Xa("0x30")]),s=[Xa("0x7c"),Xa("0x7a")],r=n.activeMarkers.includes(t[Xa("0x30")]);return r&&s[Xa("0x61")](Xa("0x38")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Xa("0x47"),c,{priority:Xa("0x72")}),n.on("suggestionUnloaded",c,{priority:Xa("0x72")}),t.model[Xa("0x8a")][Xa("0x70")]((()=>{let e=!1;const o=Array.from(t[Xa("0x2f")][Xa("0x8a")][Xa("0x94")][Xa("0x5f")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:a}=n[Xa("0x12")](s);if(Xa("0x93")!=o||Xa("0x4b")!=i||r[Xa("0x40")])continue;if(!n.hasSuggestion(a))continue;const x=n[Xa("0x22")](a)[Xa("0x43")](),c=t[Xa("0x5c")].get(Xa("0x49")).me;for(const t of n[Xa("0x33")]())if(t[Xa("0x59")]&&t[Xa("0x3b")]==c&&"formatBlock"==t[Xa("0x52")]&&Xa("0x26")==t[Xa("0x1")]&&t[Xa("0x43")]()[Xa("0x87")]((t=>x[Xa("0x4d")]((e=>e[Xa("0x3d")](t,!0))))))for(const n of t[Xa("0x3c")]())n[Xa("0x59")]&&(n[Xa("0x51")](),e=!0)}return e})),t[Xa("0x2f")].document.registerPostFixer((e=>{const o=t[Xa("0x88")][Xa("0x68")]("redo");if(!o||!o[Xa("0x15")][Xa("0x6")](e[Xa("0x2")]))return!1;let s=!1;const r=t[Xa("0x5c")].get(Xa("0x49")).me,i=t[Xa("0x2f")][Xa("0x8a")][Xa("0x94")].getChanges(),a=Array[Xa("0x60")](t.model[Xa("0x8a")][Xa("0x94")][Xa("0x5f")]())[Xa("0x65")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Xa("0x12")](t);return Xa("0x93")==o&&Xa("0x23")==s&&i==r.id&&!e.oldRange}));for(const t of i){if("insert"!=t[Xa("0x52")]||Xa("0x69")!=t.name||1!=t[Xa("0x8")])continue;const n=e.createRange(t[Xa("0x79")],t[Xa("0x79")][Xa("0x9b")](1));if(!a[Xa("0x95")]((({data:t})=>t[Xa("0x0")].isEqual(n))))for(const{name:t,data:o}of a)if(n[Xa("0x3d")](o.newRange)){e[Xa("0x9e")](t,{range:n}),s=!0;break}}return s})),t.model[Xa("0x8a")].registerPostFixer((e=>{let o=!1;const s=t[Xa("0x5c")][Xa("0x68")](Xa("0x49")).me,r=n[Xa("0x33")]()[Xa("0x65")]((t=>t[Xa("0x59")]&&t[Xa("0x3b")]==s)),i=new Set,a=new Set;for(const t of r)if("tablePaste"==t.subType)for(const e of t.getMarkers()){const n=e[Xa("0x6f")]().getContainedElement();if(n)if(n.is("element",Xa("0x69"))&&Za(n)){t[Xa("0x82")](e[Xa("0x9d")]),i[Xa("0x9f")](n),o=!0;const s=n.nextSibling,r=n[Xa("0x5d")],x=s&&s.is(Xa("0xe"),"tableCellSuggestion"),c=r&&r.is("element",Xa("0x69"));x&&!i.has(s)&&a[Xa("0x9f")](s),c&&!i[Xa("0x6")](r)&&a[Xa("0x9f")](r)}else n.is(Xa("0xe"),Xa("0x71"))&&n[Xa("0x62")]&&(t[Xa("0x82")](e.name),o=!0)}else if(Xa("0x26")==t[Xa("0x1")]){if(!t[Xa("0x50")]||!t.attributes[Xa("0x98")])continue;const e=t[Xa("0x50")][Xa("0x46")];if(e&&Object[Xa("0x6b")](e)[Xa("0x8")])continue;const n=t[Xa("0x50")][Xa("0x98")];let s=!0,i=!0;for(const e of r)if(e[Xa("0x1")]&&e[Xa("0x1")][Xa("0x9")](Xa("0x23"))){if(!e.attributes[Xa("0x98")]){i=!1;break}if(e.id!=t.id&&e.attributes[Xa("0x98")]==n){s=!1;break}}i&&s&&(t.removeMarkers(),o=!0)}for(const t of i)e.remove(t);for(const t of a)e[Xa("0x1c")](t);return o})),t.conversion[Xa("0xb")](Xa("0x53"))[Xa("0x4a")]({model:Xa("0xa5"),view:(t,e)=>l(t),converterPriority:Xa("0x72")}),t[Xa("0x77")][Xa("0xb")](Xa("0xa6"))[Xa("0x4a")]({model:Xa("0xa5"),view:(t,e)=>e[Xa("0xa2")][Xa("0x36")]?l(t,!1):null,converterPriority:Xa("0x72")});const d=t[Xa("0x8d")][Xa("0x67")];this.listenTo(d[Xa("0x8a")],Xa("0x4f"),((t,e)=>{const n=[];for(const t of d.createRangeIn(e[Xa("0x1e")])[Xa("0xa4")]())t.is("element",Xa("0x89"))&&n[Xa("0x61")](t);d[Xa("0x45")]((t=>{for(const e of n)t[Xa("0x3")](t[Xa("0x11")](e),t[Xa("0x7")](e)),t[Xa("0x3a")](e)}))}))}}function Za(t){if(t.isEmpty)return!0;const e=t[Xa("0x41")](0);return e.is(Xa("0xe"),Xa("0x71"))&&e[Xa("0x62")]}function Ya(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Xa("0x63")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const tx=["document","TrackChangesEditing","_suggestionFactory","format","data","locale","enableCommand","getTableColumnsWidths","handleResizeTableWidthCommand","getContainedElement","formatGroupId","getSuggestionCallback","afterInit","columnWidths","registerDescriptionCallback","discard","accept","model","has","author","change","registerCustomCallback","selection","plugins","_descriptionFactory","getColumnGroupElement","table","getAttribute","*Format:* resize table","resizeTableWidth","TableColumnResizeEditing","commandParams","tableWidth","handleSuggestionDescription","editor","subType","get","formatBlock","resizeTable","Users","markBlockFormat","bind"];var ex,nx;ex=tx,nx=371,function(t){for(;--t;)ex.push(ex.shift())}(++nx);const ox=function(t,e){return tx[t-=0]};class sx extends t.Plugin{[ox("0x13")](){if(!this[ox("0x29")][ox("0x1e")][ox("0x19")](ox("0x25")))return;const t=this[ox("0x29")].plugins[ox("0x1")](ox("0x8"));t[ox("0xd")]("resizeTableWidth",this.handleResizeTableWidthCommand[ox("0x6")](this)),t[ox("0xd")]("resizeColumnWidths",this[ox("0xf")].bind(this)),t[ox("0x9")][ox("0x1c")](ox("0x2"),"resizeTable","accept",t._suggestionFactory[ox("0x12")](ox("0x2"),null,ox("0x16"))),t[ox("0x9")].registerCustomCallback(ox("0x2"),ox("0x3"),ox("0x16"),t[ox("0x9")].getSuggestionCallback(ox("0x2"),null,ox("0x17"))),t[ox("0x1f")][ox("0x15")](this.handleSuggestionDescription[ox("0x6")](this))}handleResizeTableWidthCommand(t,e){const n=this[ox("0x29")][ox("0x1e")][ox("0x1")](ox("0x8")),o=this[ox("0x29")][ox("0x1e")].get(ox("0x25")),s=e[ox("0x21")]||this[ox("0x29")][ox("0x18")][ox("0x7")][ox("0x1d")].getSelectedElement();this[ox("0x29")][ox("0x18")][ox("0x1b")]((()=>{const r=o[ox("0x20")](s);let i=r?o[ox("0xe")](r):null,a=s[ox("0x22")](ox("0x27"))||null;const x=e[ox("0x27")]||a,c=e[ox("0x14")]||i,l=this.editor.plugins[ox("0x1")](ox("0x4")).me;for(const t of n.getSuggestions()){const e=t[ox("0x10")]();if(ox("0x3")===t[ox("0x0")]&&e===s){t[ox("0x1a")]!==l&&t[ox("0x16")]();const e=t[ox("0xb")][ox("0x26")];a=e[0].tableWidth,i=e[0][ox("0x14")];break}}t({table:s,tableWidth:x,columnWidths:c}),n[ox("0x5")](s,{commandName:ox("0x24"),commandParams:[{tableWidth:a,columnWidths:i}],formatGroupId:"resizeTable"},[],"resizeTable")}))}[ox("0x28")](t){const{data:e}=t;if(e&&"resizeTable"===e[ox("0x11")]){const t=ox("0x23");return{type:ox("0xa"),content:Yo(this.editor[ox("0xc")],t)}}}}const rx=["insertTemplate","has","Template","get","editor","plugins","TrackChangesEditing","enableCommand","afterInit"];var ix,ax;ix=rx,ax=121,function(t){for(;--t;)ix.push(ix.shift())}(++ax);const xx=function(t,e){return rx[t-=0]};class cx extends t.Plugin{[xx("0x4")](){const t=this[xx("0x0")];t[xx("0x1")][xx("0x6")](xx("0x7"))&&t[xx("0x1")][xx("0x8")](xx("0x2"))[xx("0x3")](xx("0x5"))}}const lx=["tableOfContents","commands","get","_descriptionFactory","plugins","locale","afterInit","editor","enableCommand","TrackChangesEditing","ELEMENT_TABLE_OF_CONTENTS","insertTableOfContents"];var dx,ux;dx=lx,ux=268,function(t){for(;--t;)dx.push(dx.shift())}(++ux);const gx=function(t,e){return lx[t-=0]};class mx extends t.Plugin{[gx("0x2")](){const t=this[gx("0x3")];if(!t[gx("0x9")][gx("0xa")](gx("0x7")))return;t.plugins[gx("0xa")]("TrackChangesEditing")[gx("0x4")](gx("0x7"));const e=t[gx("0x0")][gx("0xa")](gx("0x5")),n=t[gx("0x1")];e[gx("0xb")].registerElementLabel(gx("0x8"),(t=>Yo(n,gx("0x6"),t)))}}const fx=["afterInit","_splitMarkerName","schema","getChangedMarkers","get","isTouching","title-content","_descriptionFactory","isCollapsed","nodeBefore","Title","model","removeMarker","element","newRange","start","registerElementLabel","has","plugins","isEqual","suggestion","forward","differ","end","locale","TrackChangesEditing","document","from"];var hx,px;hx=fx,px=258,function(t){for(;--t;)hx.push(hx.shift())}(++px);const bx=function(t,e){return fx[t-=0]};class Ex extends t.Plugin{[bx("0x16")](){const t=this.editor;if(!t[bx("0xc")][bx("0xb")](bx("0x4")))return;const e=t[bx("0xc")][bx("0x1a")](bx("0x13"));e[bx("0x1")][bx("0xa")](bx("0x0"),(()=>Yo(t[bx("0x12")],"ELEMENT_TITLE"))),t.model[bx("0x14")].registerPostFixer((n=>{let o=!1;const s=Array[bx("0x15")](t[bx("0x5")][bx("0x14")][bx("0x10")][bx("0x19")]());for(const{name:r,data:i}of s){const{group:s}=e[bx("0x17")](r);if(bx("0xe")!==s||!i[bx("0x8")])continue;const a=i[bx("0x8")],x=a[bx("0x11")][bx("0x3")];if(!x||!x.is(bx("0x7"),bx("0x0")))continue;if(!a[bx("0x9")][bx("0x1b")](a.end))continue;const c=t[bx("0x5")][bx("0x18")].getNearestSelectionRange(a[bx("0x11")],bx("0xf"));if(c&&c[bx("0x2")]){const t=n.createRange(a[bx("0x9")],c.start);t[bx("0xd")](a)||(n.updateMarker(r,{range:t}),o=!0)}o||(n[bx("0x6")](r),o=!0)}return o}))}}const _x=["redo","editor","get","TrackChangesEditing","afterInit","plugins","UndoEditing","has"];var Tx,Cx;Tx=_x,Cx=176,function(t){for(;--t;)Tx.push(Tx.shift())}(++Cx);const yx=function(t,e){return _x[t-=0]};class kx extends t.Plugin{[yx("0x4")](){const t=this[yx("0x1")],e=t[yx("0x5")][yx("0x2")](yx("0x3"));t[yx("0x5")][yx("0x7")](yx("0x6"))&&(e.enableCommand("undo"),e.enableCommand(yx("0x0")))}}const Ax=["enableCommand","TrackChangesEditing","plugins","toggleTableCaption","has","requires","TableCaptionEditing","afterInit"];var vx,Rx;vx=Ax,Rx=233,function(t){for(;--t;)vx.push(vx.shift())}(++Rx);const Ix=function(t,e){return Ax[t-=0]};class Sx extends t.Plugin{static get[Ix("0x4")](){return[wa]}[Ix("0x6")](){const t=this.editor;t[Ix("0x1")][Ix("0x3")](Ix("0x5"))&&t[Ix("0x1")].get(Ix("0x0"))[Ix("0x7")](Ix("0x2"))}}const Lx=["model","list.properties","*Format:* set order to reversed","change","styles","toUpperCase","isFirstBlockOfListItem","_LIST_","_getSuggestionBlocks","listReversed","DocumentListPropertiesEditing","format","afterInit","get","enableCommand","expandListBlocksToCompleteList","getSelectedBlocks","TrackChangesEditing","_getTranslationKeyForListStyle","listStyle","numbered","handleListStyleCommand","commandParams","isListItemBlock","type","_descriptionFactory","startIndex","filter","document","bind","*Change to:* %0","getListTypeFromListStyleType","length","registerDescriptionCallback","listType","plugins","DocumentListPropertiesUtils","replace","DocumentListUtils","from","selection","handleListStartCommand","push","editor","getAttribute","_getSuggestionBlocksForListStyle","locale","markMultiRangeBlockFormat","listStart","reversed","handleDescriptions"];var Nx,Mx;Nx=Lx,Mx=239,function(t){for(;--t;)Nx.push(Nx.shift())}(++Mx);const wx=function(t,e){return Lx[t-=0]};class Ox extends t.Plugin{[wx("0x1c")](){if(!this.editor[wx("0x0")].has(wx("0x1a")))return;const t=this[wx("0x8")].config[wx("0x1d")](wx("0x11")),e=this[wx("0x8")][wx("0x0")][wx("0x1d")](wx("0x21"));t[wx("0x14")]&&e[wx("0x1e")](wx("0x23"),this[wx("0x25")].bind(this)),t[wx("0xe")]&&e[wx("0x1e")](wx("0x19"),this.handleListReversedCommand[wx("0x2d")](this)),t[wx("0x2a")]&&e[wx("0x1e")](wx("0xd"),this[wx("0x6")][wx("0x2d")](this)),e[wx("0x29")][wx("0x31")](this[wx("0xf")][wx("0x2d")](this))}[wx("0x25")](t,e={}){const n=this[wx("0x8")][wx("0x0")][wx("0x1d")](wx("0x21")),o=this[wx("0xa")]();this[wx("0x8")][wx("0x10")][wx("0x13")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:wx("0x23"),commandParams:[{type:e[wx("0x28")]}],formatGroupId:wx("0x23")})}))}handleListReversedCommand(t,e={}){const n=this.editor[wx("0x0")][wx("0x1d")](wx("0x21")),o=this.editor[wx("0x0")][wx("0x1d")](wx("0x3")),s=this[wx("0x18")]((t=>o[wx("0x27")](t)&&"numbered"===t[wx("0x9")](wx("0x32"))));null!==s&&this[wx("0x8")].model.change((()=>{n.markMultiRangeBlockFormat(s,{commandName:"listReversed",commandParams:[{reversed:e[wx("0xe")]}],formatGroupId:wx("0x19")})}))}[wx("0x6")](t,e={}){const n=this[wx("0x8")].plugins[wx("0x1d")]("TrackChangesEditing"),o=this[wx("0x8")][wx("0x0")][wx("0x1d")](wx("0x3")),s=this[wx("0x18")]((t=>o[wx("0x27")](t)&&wx("0x24")===t[wx("0x9")]("listType")));null!==s&&this[wx("0x8")].model.change((()=>{n[wx("0xc")](s,{commandName:"listStart",commandParams:[{startIndex:e[wx("0x2a")]}],formatGroupId:wx("0xd")})}))}handleDescriptions(t){const e=this[wx("0x8")][wx("0xb")],{data:n}=t;if(!n)return;let o,s;switch(n.commandName){case wx("0x23"):o=wx("0x2e"),s={type:wx("0x1b"),content:Yo(e,o,Yo(e,this[wx("0x22")](n[wx("0x26")][0].type)))};break;case wx("0x19"):o=n[wx("0x26")][0][wx("0xe")]?wx("0x12"):"*Format:* set order to regular",s={type:wx("0x1b"),content:Yo(e,o)};break;case wx("0xd"):o="*Format:* set start index to %0",s={type:wx("0x1b"),content:Yo(e,o,n[wx("0x26")][0].startIndex)}}return s}[wx("0xa")](){const t=this[wx("0x8")].plugins[wx("0x1d")](wx("0x3"));let e=Array[wx("0x4")](this[wx("0x8")][wx("0x10")][wx("0x2c")][wx("0x5")][wx("0x20")]());return e.push(...t[wx("0x1f")](e)),e=[...new Set(e)],e}[wx("0x18")](t){const e=this[wx("0x8")][wx("0x0")].get("DocumentListUtils");let n=Array.from(this.editor[wx("0x10")][wx("0x2c")][wx("0x5")][wx("0x20")]())[wx("0x2b")](t);if(!n[wx("0x30")])return null;n=e[wx("0x1f")](n);const o=[];for(const t of n)e[wx("0x16")](t)&&o[wx("0x7")](t);return o}[wx("0x22")](t){return"ELEMENT_"+this[wx("0x8")][wx("0x0")][wx("0x1d")](wx("0x1"))[wx("0x2f")](t)[wx("0x15")]()+wx("0x17")+t[wx("0x15")]()[wx("0x2")](/-/g,"_")}}const Fx=["_descriptionFactory","enqueueChange","table","change","_suggestionFactory","registerDescriptionCallback","getSuggestionCallback","plugins","tableBorderColor","tableCellBorderWidth","get","getFirstPosition","tableCellWidth","discard","batch","tableCellBackgroundColor","document","locale","tableBorderWidth","handleSuggestionDescription","tableCellHeight","enableCommand","TrackChangesEditing","model","TablePropertiesEditing","tableWidth","tableBorderStyle","findAncestor","handleDiscardAction","accept","tableCellBorderColor","removeAttribute","_handlePropertyChange","pluginName","has","selection","getAttribute","registerCustomCallback","format","join","data","subType","tableCellProperties","getSuggestions","formatBlock","tableProperties","getSelectionAffectedTableCells","start","*Format:* change table cell properties","tableCellPadding","_getSuggestion","setAttribute","markBlockFormat","getContainedElement","editor","TableCellPropertiesEditing"];var Px,Dx;Px=Fx,Dx=451,function(t){for(;--t;)Px.push(Px.shift())}(++Dx);const Bx=function(t,e){return Fx[t-=0]};class jx extends t.Plugin{constructor(t){super(t),this[Bx("0x2a")]=[Bx("0x5"),Bx("0x17"),Bx("0xf"),"tableAlignment",Bx("0x16"),"tableHeight","tableBackgroundColor"],this[Bx("0x27")]=[Bx("0x1b"),"tableCellBorderStyle",Bx("0x6"),Bx("0x2e"),Bx("0x9"),Bx("0x11"),Bx("0xc"),"tableCellHorizontalAlignment","tableCellVerticalAlignment"]}static get[Bx("0x1e")](){return"TrackChangesTableProperties"}afterInit(){const t=this[Bx("0x33")][Bx("0x4")][Bx("0x7")](Bx("0x13"));if(this[Bx("0x33")][Bx("0x4")][Bx("0x1f")](Bx("0x15"))){for(const e of this.tableProperties)t.enableCommand(e,((t,n)=>{const o=this[Bx("0x33")][Bx("0x14")][Bx("0xd")].selection[Bx("0x8")]()[Bx("0x18")](Bx("0x37"));this[Bx("0x1d")](e,[o],this[Bx("0x2a")],"tableProperties",t,n)}));t[Bx("0x1")][Bx("0x22")](Bx("0x29"),Bx("0x2a"),Bx("0x1a"),t[Bx("0x1")][Bx("0x3")](Bx("0x29"),null,Bx("0xa"))),t._suggestionFactory[Bx("0x22")](Bx("0x29"),"tableProperties",Bx("0xa"),((t,e)=>this[Bx("0x19")](this[Bx("0x2a")],t,e))),t._suggestionFactory[Bx("0x22")](Bx("0x29"),Bx("0x2a"),Bx("0x24"),(()=>!1))}if(this.editor.plugins[Bx("0x1f")](Bx("0x34"))){for(const e of this[Bx("0x27")])t[Bx("0x12")](e,((t,n)=>{const o=this[Bx("0x33")][Bx("0x4")].get("TableUtils")[Bx("0x2b")](this.editor[Bx("0x14")][Bx("0xd")][Bx("0x20")]);this[Bx("0x1d")](e,o,this[Bx("0x27")],Bx("0x27"),t,n)}));t[Bx("0x1")][Bx("0x22")](Bx("0x29"),Bx("0x27"),Bx("0x1a"),t[Bx("0x1")][Bx("0x3")]("formatBlock",null,"discard")),t._suggestionFactory.registerCustomCallback(Bx("0x29"),Bx("0x27"),"discard",((t,e)=>this[Bx("0x19")](this[Bx("0x27")],t,e))),t[Bx("0x1")][Bx("0x22")](Bx("0x29"),Bx("0x27"),Bx("0x24"),(()=>!1))}t[Bx("0x35")][Bx("0x2")]((t=>this.handleSuggestionDescription(t)))}_handlePropertyChange(t,e,n,o,s,r){const i=this[Bx("0x33")][Bx("0x4")][Bx("0x7")](Bx("0x13"));this.editor[Bx("0x14")][Bx("0x36")](r[Bx("0xb")],(()=>{for(const t of e)if(this._getSuggestion(t,o))s(r);else{const e={};for(const o of n){const n=t[Bx("0x21")](o);void 0!==n&&(e[o]=n)}s(r),i[Bx("0x31")](t,{commandParams:[e]},[],o)}}))}[Bx("0x19")](t,e,n){const o=e[0][Bx("0x2c")].nodeAfter,s=n.commandParams[0];this[Bx("0x33")].model[Bx("0x0")]((e=>{for(const n of t)void 0!==s[n]?e[Bx("0x30")](n,s[n],o):e[Bx("0x1c")](n,o)}))}[Bx("0x10")](t){if(t[Bx("0x25")])switch(t[Bx("0x26")]){case Bx("0x2a"):return{type:"format",content:Yo(this.editor.locale,"*Format:* change table properties")};case Bx("0x27"):return{type:Bx("0x23"),content:Yo(this[Bx("0x33")][Bx("0xe")],Bx("0x2d"))}}}[Bx("0x2f")](t,e){const n=this[Bx("0x33")][Bx("0x4")][Bx("0x7")](Bx("0x13"));for(const o of n[Bx("0x28")]({skipNotAttached:!0})){const n=o[Bx("0x32")]();if(o[Bx("0x26")]===e&&n===t)return o}return null}}const Ux=["isInsideObject","unbindElementFromMarkerName","formatInline","showSuggestionHighlights","authorName","define","markMultiRangeDeletion","plugins","split","set","_rangeIsInLocalUserInsertion","getSuggestion","mapper","error-saving-suggestion-data-suggestion-discarded","getLastMatchingPosition","CommentsRepository","_defaultCallbacks","markBlockFormat","always","moveTargetPosition","suggestionChanged","removeClass","unbind","_mergeNestedSuggestions","isDocumentOperation","open","createPositionAt","_isDataLoaded","range","nodeAfter","head","elementStart","_suggestionFactory","_enabledCommands","toJSON","for","bindElementToMarker","_removeSuggestion","removeMarker","getSuggestionCallback","_editor","isEqual","discardSuggestion","_setSuggestionData","formatBlock","_customCallbacks","schema","splitPosition","push","skipNestingCheck","resolve","suggestionUnloaded","documentSelection","_descriptionFactory","filter","ck-suggestion-marker-formatBlock","nodeBefore","elementToElement","containsRangeInObject","length","removeAttribute","trackChangesCommand","deletion:join","markerName","removeMarkers","formatInline:chain","isArray","discardAllSuggestions","fromRange","addClass","data","elementEnd","execute","addRange","createdAt","_addSuggestionMarker","_model","requires","accepted","markDeletion","enableReadOnlyMode","getShiftedBy","isBlock","formatBlock:","_joinSuggestions","locale","isAfter","multi","get","isIntersectingWithRange","_trackFormatChanges","removed","isSelectable","getItems","addMarkerName","markInsertion","next","addSuggestion","selection","default","isUndo","addUser","document","hasComments","_getAuthorFromId","updateMarker","multipleBlocks","adapter","config","insertion:join","isBefore","isNextTo","track-changes-user-not-found","size","splice","getIntersection","formatBlock:join","isExternal","consume","forward","@external","editor","isCollapsed","$graveyard","accept","root","isLimit","fetchCommentThread","isRemovable","insertContent","setSelection","highest","removeMarker:suggestion:formatBlock","dataDowncast","delete","acceptAllSuggestions","_adapter","stop","dataToMarker","formatGroupId","before","getNearestSelectionRange","parent","addMarker:suggestion","assign","editingDowncast","suggestionLoaded","marker-count","catch","pluginName","writer","formatInline:accept","insertion:chain","listenTo","commentThread","containerElement","removeComment","rootName","includes","chain","containsPosition","item","end","addMarker:suggestion:formatBlock","backward","track-changes-adapter-already-set","consumable","insert","_checkSuggestionCorrectness","trackChanges.mergeNestedSuggestions","getAllAdjacentSuggestions","_createSuggestion","ck-suggestion-marker-","isInContent","values","_findSuggestions","subType","formatInline:discard","sort","_updateSuggestionData","high","_handleNewSuggestionMarker","deletion:","createPositionAfter","change:activeMarkers","fire","low","clear","getUser","rethrowUnexpectedError","init","discardSelectedSuggestions","start","trackChanges","clone","registerPostFixer","containsRange","fromCharCode","suggestion-type","getWalker","getFirstMarker","data-suggestion","formatInline:join","dataReady","createPositionBefore","_setSuggestionRange","setTo","_getExternalAuthor","markInlineFormat","PendingActions","previous","tablePasteChainId","rejected","getFirstRange","change:data","_splitMarkerName","change","_isForcedDefaultExecutionBlock","ck-suggestion-marker","getMarkers","setAttribute","keys","from","_onDiscard","getChangedMarkers","refresh","deleteContent","getAttribute","widget","then","getCommentThread","acceptSuggestion","remove","authoredAt","has","name","detach","creator","addCommentThread","formatInline:","suggestion","getRanges","isObject","forceDefaultExecution","getCustomProperty","isAtEnd","value","acceptSelectedSuggestions","getDifference","return","change:_saved","model","track-changes-suggestion-not-found","_joinWithAdjacentSuggestions","isLocal","buildSuggestion","insertion","author","Users","hasCommentThread","isMultiRange","_refreshSuggestionsChain","enqueueChange","markers","_addThreadToSuggestion","_breakSuggestionMarker","never","join","suggestion:","batch","toViewElement","some","_suggestions","_saved","markerReady","formatBlock:chain","discard","createRange","newRange","TrackChangesEditing","_cutOutSuggestionMarker","originalSuggestionId","options","group","attributes","deletion","notReady","targetPosition","markMultiRangeBlockFormat","reconvertMarker","add","_suggestionState","addSuggestionData","updateSuggestion","markerToHighlight","ck-suggestion-marker--active","map","track-changes-adapter-missing-getsuggestion","commandName","conversion","addComment","trackChanges.trackFormatChanges","track-changes-suggestion-data-mismatch","getSuggestions","every","getMultiRangeId","oldRange","element","collaboration.channelId","type","insertion:accept","isOwn","insertion:","PENDING_ACTION_SUGGESTION","position","commands","_getSuggestionData","howMany","enableCommand","_commentsRepository","differ","isTouching"];var Gx,Hx;Gx=Ux,Hx=458,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const zx=function(t,e){return Ux[t-=0]};class Wx extends t.Plugin{static get[zx("0x107")](){return["CommentsRepository",r.Users,t.PendingActions,cs,Cs,Rs,ws,Bs,Ws,Js,er,Ox,ar,ur,br,yr,Lr,Pr,Gr,Kr,Qr,ni,ai,ui,pi,Ci,Ri,Oi,ji,Wi,$i,ta,ia,ua,pa,ya,Ia,wa,ja,Wa,Sx,Qa,sx,mx,jx,cx,Ex,kx]}static get[zx("0xd")](){return zx("0x8f")}constructor(t){function e(t){return t.map((t=>String[zx("0x3d")](t))).join("")}super(t),this[zx("0xc3")]("activeMarkers",[]),this.on(zx("0x30"),((e,n,o,s)=>{this[zx("0x106")].change((()=>{for(const e of[...s,...o])this[zx("0x106")][zx("0x7f")][zx("0x62")](e)&&t.editing[zx("0x99")](e)}))})),this[zx("0xef")]=new ss(this[zx("0x133")][zx("0x73")][zx("0xe8")],this[zx("0x133")][zx("0x10f")]),this._adapter=null,this[zx("0xda")]=new Vx(this.editor),this[zx("0x88")]=new Map,this[zx("0xb7")]=t[zx("0xc1")].get(zx("0xc9")),this[zx("0xdb")]=new Set,this[zx("0x106")]=this.editor[zx("0x73")],this[zx("0x9b")]=new WeakMap,this._isForcedDefaultExecutionBlock=!1,t[zx("0x126")][zx("0xbf")](zx("0xa5"),zx("0x11d")),this[zx("0x114")]=t[zx("0x126")][zx("0x112")](zx("0xa5")),t[zx("0x126")][zx("0xbf")](zx("0x21"),!0),this._mergeNestedSuggestions=t[zx("0x126")][zx("0x112")](zx("0x21")),this[zx("0xf7")]=new u(t,this[zx("0xdb")]),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,49,56,49,56])}[zx("0x36")](){const t=this.editor;t.conversion[zx("0xdd")](zx("0x9"))[zx("0x9e")]({model:zx("0x68"),view:t=>{const{id:e,type:n}=this[zx("0x4f")](t[zx("0xf9")]),o=[zx("0x52"),zx("0x24")+n];let s=3e3;return this.activeMarkers[zx("0x16")](t[zx("0xf9")])&&(o[zx("0xea")](zx("0x9f")),s=3010),zx("0x95")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t.conversion[zx("0xdd")](zx("0x13f"))[zx("0x9a")]((e=>{e.on(zx("0x7"),((e,n,o)=>{if(!o[zx("0x92")][zx("0xbd")])return;const s=n[zx("0x19")];if(!s)return;const r=o.mapper[zx("0x86")](s);t[zx("0x73")][zx("0xe8")][zx("0x6a")](s)&&r&&!r.getCustomProperty(zx("0x5c"))&&r.is(zx("0x13"))&&(0,a.toWidget)(r,o[zx("0xe")])}),{priority:zx("0x2c")})})),t[zx("0xa3")][zx("0xdd")](zx("0x13f"))[zx("0x9e")]({model:zx("0x68"),view:(t,e)=>{if(!e[zx("0x92")][zx("0xbd")])return null;const{type:n}=this[zx("0x4f")](t.markerName);return{classes:[zx("0x52"),zx("0x24")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[zx("0x19")])return;if(o[zx("0x19")].is("selection"))return void s[zx("0x1e")][zx("0x130")](o[zx("0x19")],n[zx("0x63")]);const r=s[zx("0xc6")][zx("0x86")](o[zx("0x19")]);if(!o[zx("0x19")].is(zx("0xab"))||!t.model[zx("0xe8")][zx("0x10c")](o[zx("0x19")])||r.getCustomProperty("addHighlight"))return;const{id:i}=this[zx("0x4f")](o[zx("0xf9")]);s[zx("0xe")][zx("0xff")]([zx("0x52"),"ck-suggestion-marker-formatBlock"],r),s[zx("0xe")][zx("0x54")]("data-suggestion",i,r),s[zx("0xc6")][zx("0xde")](r,o[zx("0xf9")]),e&&(this.activeMarkers[zx("0x16")](o.markerName)?s[zx("0xe")][zx("0xff")]("ck-suggestion-marker--active",r):s[zx("0xe")].removeClass(zx("0x9f"),r));for(const e of t[zx("0x73")].createRangeIn(o[zx("0x19")])[zx("0x117")]())s[zx("0x1e")][zx("0x130")](e,n[zx("0x63")]);s.consumable[zx("0x130")](o.item,n[zx("0x63")])};t[zx("0xa3")][zx("0xdd")](zx("0x13f")).add((t=>{t.on("addMarker:suggestion:formatBlock",((t,e,o)=>{o[zx("0x92")].showSuggestionHighlights&&n({showActiveMarkers:!1})(t,e,o)}),{priority:zx("0x13d")})})),t[zx("0xa3")][zx("0xdd")](zx("0x13f")).markerToData({model:zx("0x68"),view:(t,e)=>e[zx("0x92")][zx("0xbd")]?null:{group:zx("0x68"),name:t.substr(11)}}),t.conversion.for("upcast")[zx("0xf3")]({view:{name:zx("0x68"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=zx("0x84")+t[zx("0x5b")](zx("0x3e"))+":"+t[zx("0x5b")]("id");return t[zx("0x5b")](zx("0xb"))&&(n+=":"+t[zx("0x5b")](zx("0xb"))),e.createElement("$marker",{"data-name":n})}}),t[zx("0xa3")][zx("0xdd")]("upcast")[zx("0x2")]({view:zx("0x68")}),t[zx("0xa3")][zx("0xdd")]("editingDowncast")[zx("0x9a")]((t=>{t.on(zx("0x1b"),n(),{priority:zx("0x2c")})})),t[zx("0xa3")][zx("0xdd")]("editingDowncast").add((t=>{t.on(zx("0x13e"),((t,e,n)=>{const o=n.mapper.markerNameToElements(e[zx("0xf9")]);if(o)for(const t of o)t[zx("0x6c")]("addHighlight")||(n[zx("0xe")][zx("0xcf")]([zx("0x52"),zx("0xf1"),zx("0x9f")],t),n.writer[zx("0xf6")](zx("0x41"),t),n[zx("0xc6")][zx("0xbb")](t,e[zx("0xf9")]))}),{priority:"high"})})),t[zx("0x73")][zx("0x120")][zx("0x3b")]((e=>{let n=!1;const o=Array[zx("0x56")](t[zx("0x73")][zx("0x120")][zx("0xb8")][zx("0x58")]()),s=new Set;for(const{name:a,data:x}of o){const{group:o,type:c,id:l}=this[zx("0x4f")](a);if(zx("0x68")!==o)continue;const d=this[zx("0x88")][zx("0x112")](l);if(null!=x[zx("0x8e")])if("formatInline"==c&&(n=n||Xx(x[zx("0x8e")],a,e,t[zx("0x73")].schema)),x[zx("0x8e")][zx("0x134")]||"$graveyard"==x[zx("0x8e")][zx("0x137")].rootName||zx("0xe6")==c&&!Jx(x[zx("0x8e")])||zx("0x95")==c&&(qx(i=x[zx("0x8e")])||(r=i)[zx("0x38")][zx("0x6")]==r[zx("0x1a")][zx("0xf2")]&&r[zx("0x38")][zx("0x6d")]))e[zx("0xe0")](a),n=!0;else{if(!d||!d[zx("0x25")])continue;s[zx("0x9a")](d)}}var r,i;return s[zx("0x12b")]>0&&(n=!!this[zx("0x75")](s)||n),n})),t[zx("0x73")][zx("0x120")][zx("0x3b")]((e=>{let n=!1;for(const o of t[zx("0x73")].document.differ.getChanges()){if(zx("0x1f")!=o[zx("0xad")])continue;const s=o[zx("0xb2")][zx("0x10b")](o.length);if(s[zx("0x6d")])for(const r of this[zx("0x88")][zx("0x26")]()){if(r[zx("0x7c")]||!r[zx("0x25")])continue;if(zx("0xe6")!=r.type)continue;const i=r[zx("0x4d")]();if(i[zx("0x38")].parent!=i[zx("0x1a")][zx("0x6")]&&i[zx("0x1a")].isEqual(o[zx("0xb2")])){const o=t.model[zx("0x8d")](i[zx("0x38")],s);e[zx("0x123")](r[zx("0x40")](),{range:o}),n=!0}}}return n})),t[zx("0x73")].markers.on("update:suggestion",((t,e,n)=>{if(null==n){const{id:t}=this[zx("0x4f")](e[zx("0x63")]),n=this[zx("0x88")][zx("0x112")](t);n&&n[zx("0x118")](e[zx("0x63")])}})),t[zx("0x73")].document.on(zx("0x4e"),(()=>{const e=Array[zx("0x56")](t.model[zx("0x120")][zx("0xb8")][zx("0x58")]())[zx("0xf0")]((t=>zx("0x68")===this[zx("0x4f")](t[zx("0x63")])[zx("0x93")]));if(0===e[zx("0xf5")])return;e.sort(((t,e)=>{const n=t[zx("0x100")][zx("0xaa")],o=e[zx("0x100")][zx("0xaa")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[zx("0x38")][zx("0x128")](o.start)?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[zx("0x4f")](t);if(null===s.oldRange){const e=this[zx("0x2d")](t);o[zx("0x9a")](e)}else{const t=this[zx("0x88")][zx("0x112")](e);null!==s[zx("0x8e")]||t.isInContent?(n[zx("0x9a")](t[zx("0xd8")]),o[zx("0x9a")](t)):this[zx("0xdf")](t)}}o[zx("0x12b")]>0&&this[zx("0x7d")](o);for(const t of n)this[zx("0x31")](zx("0xce"),t)})),t.model.on("applyOperation",((e,n)=>{const o=n[0];if(!this._suggestions[zx("0x12b")])return;if(!o[zx("0xd2")])return;if(o[zx("0x85")][zx("0x11e")]||!o[zx("0x85")][zx("0x76")])return;let s,r;switch(o[zx("0xad")]){case zx("0x1f"):s=t[zx("0x73")].createPositionAt(o[zx("0xb2")]),r=s[zx("0x10b")](o[zx("0xb5")]);break;case zx("0xc2"):s=t[zx("0x73")][zx("0xd4")](o[zx("0xe9")]),r=t.model.createPositionAt(o[zx("0xcd")]);break;case"move":s=t.model.createPositionAt(o[zx("0x97")]),r=s[zx("0x10b")](o[zx("0xb5")]);break;default:return}const i=t[zx("0x73")][zx("0x8d")](s,r);t[zx("0x73")][zx("0x50")]((()=>{for(const{suggestion:t,meta:e}of this._findSuggestions(i)){if(t[zx("0x7c")])continue;if(zx("0xbc")==t[zx("0xad")])continue;const n=t.data&&t[zx("0x100")][zx("0x124")];(zx("0xe6")!=t[zx("0xad")]||"split"==o[zx("0xad")]&&!n)&&(e[zx("0xf4")]||zx("0x78")==t.type&&e[zx("0xaf")]||t[zx("0x4d")]().containsRange(i)&&this[zx("0x81")](t,s,r))}}))}),{priority:"lowest"}),t[zx("0x73")].on(zx("0x5a"),((e,n)=>{const o=n[0],s=n[1];if(s&&s.forceDefaultExecution)return;if(this[zx("0x51")])return;if(!this[zx("0xf7")][zx("0x6e")])return;if(o[zx("0x134")])return;const r=t[zx("0x73")][zx("0xe8")],{start:i,end:a}=o[zx("0x4d")](),x=i.nodeAfter&&r[zx("0x138")](i[zx("0xd7")])?null:r[zx("0x5")](i,zx("0x131")),c=a.nodeBefore&&r[zx("0x138")](a[zx("0xf2")])?null:r.getNearestSelectionRange(a,zx("0x1c")),l=t.model[zx("0x8d")](x?x.start:i,c?c[zx("0x1a")]:a);t[zx("0x73")][zx("0x50")]((e=>{this[zx("0x109")](l);const n=t[zx("0x73")].schema[zx("0x5")](l[zx("0x38")]);o.is(zx("0xee"))?e[zx("0x13c")](n):o[zx("0x46")](n)})),e[zx("0x1")]()}),{priority:e.priorities.normal+10}),t[zx("0x73")].on(zx("0x13b"),((e,n)=>{const o=n[n[zx("0xf5")]-1];o&&o[zx("0x6b")]||this[zx("0x51")]||this[zx("0xf7")].value&&(t[zx("0x73")][zx("0x50")]((()=>{let o=t[zx("0x73")][zx("0x13b")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[zx("0x71")]=o[zx("0x3a")]();const s=o[zx("0x1a")][zx("0xf2")],r=t.model[zx("0xe8")];s&&r.isBlock(s)&&!r[zx("0x6a")](s)&&(o=t[zx("0x73")][zx("0x8d")](o[zx("0x38")],t[zx("0x73")][zx("0xd4")](s,zx("0x1a")))),this[zx("0x119")](o)})),e[zx("0x1")]())}),{priority:zx("0x2c")}),this[zx("0x133")][zx("0xb3")][zx("0x9a")](zx("0x39"),this[zx("0xf7")]),this[zx("0xb6")](zx("0x39"));const o=new p(t,this[zx("0x88")]);t[zx("0xb3")].add(zx("0x5f"),o),this[zx("0xb6")](zx("0x5f"));const s=new C(t,this[zx("0x88")]);t[zx("0xb3")][zx("0x9a")](zx("0xe4"),s),this[zx("0xb6")]("discardSuggestion"),t[zx("0xb3")][zx("0x9a")](zx("0x141"),new F(t,o,this[zx("0x88")])),this[zx("0xb6")](zx("0x141")),t.commands[zx("0x9a")](zx("0xfd"),new F(t,s,this[zx("0x88")])),this.enableCommand(zx("0xfd")),t.commands[zx("0x9a")](zx("0x6f"),new U(t,o,this[zx("0x88")])),this[zx("0xb6")](zx("0x6f")),t.commands[zx("0x9a")]("discardSelectedSuggestions",new U(t,s,this[zx("0x88")])),this.enableCommand(zx("0x37"));const r=t[zx("0xc1")][zx("0x112")](zx("0xc9"));this[zx("0x11")](r,zx("0xa4"),((t,{threadId:e})=>{const n=this[zx("0x88")].get(e);n&&n[zx("0x12")]&&1===n[zx("0x12")][zx("0xf5")]&&this[zx("0x2b")](e,{hasComments:!0})}),{priority:zx("0x32")}),this[zx("0x11")](r,zx("0x14"),((t,{threadId:e})=>{const n=this[zx("0x88")][zx("0x112")](e);n&&n[zx("0x12")]&&!n[zx("0x12")][zx("0xf5")]&&this[zx("0x2b")](e,{hasComments:!1})}),{priority:"low"})}set[zx("0x125")](t){if(this[zx("0x0")])throw new e.CKEditorError(zx("0x1d"),this);this[zx("0x0")]=t}get[zx("0x125")](){return this[zx("0x0")]}[zx("0xa7")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions[zx("0x26")]())t&&!e.isInContent||n[zx("0xea")](e);return e?n.map((t=>t[zx("0xdc")]())):n}[zx("0xc5")](t){const n=this[zx("0x88")].get(t);if(!n)throw new e.CKEditorError(zx("0x74"),this);return n}hasSuggestion(t){return this[zx("0x88")][zx("0x62")](t)}addSuggestionData(t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[zx("0xad")][zx("0xc2")](":"),i=this[zx("0x88")][zx("0x112")](n)||this[zx("0x23")](s,r,n,e,o);if(this[zx("0x80")](i),this[zx("0x20")](i,s,r||null,e),i[zx("0x104")]=t[zx("0x104")],i[zx("0xd5")]=!0,o&&o[zx("0x132")]){const t=o[zx("0x132")],e=this[zx("0x47")](t[zx("0xbe")]);i[zx("0x61")]=t.createdAt,i[zx("0x79")]=e,i[zx("0x12f")]=!0}else i[zx("0x61")]=t.createdAt;switch(t.data&&(i.data=t[zx("0x100")]),t.attributes&&(i.attributes=t[zx("0x94")]),this._adapter&&this[zx("0x0")][zx("0x11b")]||(i[zx("0x89")]=!0),this[zx("0x9b")][zx("0x112")](i)){case"notReady":this[zx("0x9b")][zx("0xc3")](i,zx("0x43"));break;case"markerReady":i[zx("0x25")]?(this[zx("0x7d")](new Set([i])),this[zx("0x75")](new Set([i])),this[zx("0x9b")][zx("0xc3")](i,"ready"),this[zx("0x31")](zx("0xa"),i)):this._suggestionState[zx("0xc3")](i,zx("0x115"))}return i}[zx("0x5f")](t){this[zx("0x6b")]((()=>{this[zx("0x133")].model.change((()=>{for(const e of t.getAllAdjacentSuggestions())e[zx("0x136")]()}))}))}[zx("0xe4")](t){this[zx("0x6b")]((()=>{this[zx("0x133")][zx("0x73")][zx("0x50")]((()=>{for(const e of t[zx("0x22")]())e[zx("0x8c")]()}))}))}[zx("0xb6")](t,n){const o=this[zx("0x133")].commands.get(t);if(!o)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});this[zx("0xdb")][zx("0x9a")](o),n&&o.on(zx("0x102"),((t,e)=>{this[zx("0xf7")].value&&(this[zx("0x51")]||e.length>0&&e[e.length-1]&&e[e[zx("0xf5")]-1][zx("0x6b")]||(n(((...t)=>o.execute(...t,{forceDefaultExecution:!0})),...e),t[zx("0x1")]()))}),{priority:zx("0x2c")})}[zx("0x6b")](t){let n,o;const s=this._isForcedDefaultExecutionBlock;this._isForcedDefaultExecutionBlock=!0;try{n=t()}catch(t){o=t}return s||(this[zx("0x51")]=!1),o&&e.CKEditorError[zx("0x35")](o,this),n}[zx("0x119")](t,n=null,o={}){if(t[zx("0x134")])return null;const s=this.editor[zx("0xc1")].get(zx("0x7a")).me;for(const{suggestion:e,meta:s}of this._findSuggestions(t,zx("0x78")))if(s[zx("0xaf")]){if(!s.isNextTo){if(s.containsRangeInObject){if(!this[zx("0xd1")]||!tc(e,o))continue;return e}if(tc(e,o))return e;this[zx("0x81")](e,t[zx("0x38")],t[zx("0x1a")]);break}if(n==e.subType&&tc(e,o)){const n=e.getFirstRange();return n[zx("0x38")][zx("0xe3")](t.end)?this[zx("0x45")](e,this[zx("0x106")][zx("0x8d")](t[zx("0x38")],n[zx("0x1a")])):this._setSuggestionRange(e,this[zx("0x106")][zx("0x8d")](n[zx("0x38")],t[zx("0x1a")])),e}}const r=(0,e.uid)(),i=s.id,a=n?zx("0xb0")+n:zx("0x78"),x=this[zx("0xe5")]({id:r,type:a,createdAt:new Date,authorId:i,attributes:o});return this[zx("0x105")](a,r,i,t),x}markMultiRangeInsertion(t,n=zx("0x111"),o={}){const s=this[zx("0x133")][zx("0xc1")][zx("0x112")]("Users").me,r=this[zx("0xda")].getSuggestionCallback(zx("0x78"),n,zx("0x83"));for(const e of this[zx("0xa7")]())if(e.author.id==s.id&&zx("0x78")==e.type&&e[zx("0x28")]==n&&tc(e,o)&&(r(e.getRanges(),t)||r(t,e[zx("0x69")]()))){for(const n of t)e.addRange(n);return e}for(const{suggestion:e,meta:n}of this[zx("0x27")](t,"insertion")){if(!n[zx("0xaf")])continue;if(!this[zx("0xd1")]&&n[zx("0xf4")])continue;if(!tc(e,o))continue;let s=!0;for(const n of e[zx("0x69")]())for(const e of t)if(!n[zx("0x3c")](e)){s=!1;break}if(s)return e}const i=(0,e.uid)(),a=s.id,x=zx("0xb0")+n,c=this[zx("0xe5")]({id:i,type:x,createdAt:new Date,authorId:a,attributes:o});for(const e of t)this[zx("0x105")](x,i,a,e,Zo[zx("0xa9")]());return c}[zx("0x48")](t,n,o=null,s={}){if(o=o||$x(n),t.isCollapsed)return null;if(zx("0x82")===this[zx("0x114")]){const e=this[zx("0xda")][zx("0xe1")](zx("0xbc"),o,zx("0x136"));return this[zx("0x6b")]((()=>e([t],n,s))),null}const r=this[zx("0x133")][zx("0xc1")].get(zx("0x7a")).me,i=[];if(zx("0xcc")!==this[zx("0x114")])for(const{suggestion:e,meta:n}of this[zx("0x27")](t,zx("0x78")))n[zx("0xaf")]&&!n[zx("0xba")]&&i[zx("0xea")](...e[zx("0x69")]());const a=function(t,e){const n=[];for(const o of e){const e=t[zx("0x12d")](o);e&&n[zx("0xea")](e)}return n}(t,i),x=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[zx("0xf5")];){const o=n[e][zx("0x70")](t);n[zx("0x12c")](e,1,...o),e+=o[zx("0xf5")]}}return n}(t,i);a.length&&this._model[zx("0x50")]((()=>{for(const t of a){const e=this[zx("0xda")].getSuggestionCallback(zx("0xbc"),o,zx("0x136"));this[zx("0x6b")]((()=>e([t],n,s)))}}));for(const t of x){let i=null,a=t[zx("0x38")],x=t[zx("0x1a")];for(const{suggestion:e,meta:n}of this[zx("0x27")](t,zx("0xbc"))){if(!n[zx("0xaf")])continue;if(e.subType!=o)continue;if(!tc(e,s))continue;const r=e[zx("0x4d")]();if(r[zx("0x3c")](t,!0))return null;a=a[zx("0x128")](r.start)?a:r[zx("0x38")],x=x[zx("0x110")](r[zx("0x1a")])?x:r[zx("0x1a")],i?r.start[zx("0x128")](i.getFirstRange()[zx("0x38")])?(i.removeMarkers(),i=e):e.removeMarkers():i=e}const c=this[zx("0x106")][zx("0x8d")](a,x);if(i)this._setSuggestionRange(i,c);else{const t=(0,e.uid)(),i=r.id;this[zx("0xe5")]({id:t,type:zx("0x67")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this._addSuggestionMarker(zx("0x67")+o,t,i,c)}}return null}[zx("0xcb")](t,n,o=[],s=null,r={}){n[zx("0x3")]||(n[zx("0x3")]=n.commandName),n[zx("0x124")]=t.is(zx("0xd6")),s=s||$x(n);const i=o[zx("0xa0")]((t=>Qx(t,this[zx("0x106")]))),a=t.is(zx("0xd6"))?t:Qx(t,this[zx("0x106")]);if("never"===this[zx("0x114")]){const t=this._suggestionFactory[zx("0xe1")](zx("0xe6"),s,zx("0x136"));return this[zx("0x6b")]((()=>t([a],n,r))),null}i.push(a);let x=!0;for(const t of i)if(!this[zx("0xc4")](t)){x=!1;break}if(x&&zx("0xcc")!==this[zx("0x114")]){const t=this[zx("0xda")][zx("0xe1")](zx("0xe6"),s,zx("0x136"));return this[zx("0x6b")]((()=>t([a],n,r))),null}let c=null,l=a[zx("0x38")],d=a.end;for(const{suggestion:t,meta:e}of this._findSuggestions(a,zx("0xe6"))){if(!e[zx("0xaf")])continue;if(e[zx("0x129")]||e[zx("0xf4")]||e[zx("0xba")])continue;if(t[zx("0x100")].formatGroupId!=n[zx("0x3")])continue;if(!tc(t,r))continue;const o=t.getFirstRange();if(t[zx("0x28")]==s){if(o[zx("0x3c")](a,!0))return null;l=l.isBefore(o[zx("0x38")])?l:o[zx("0x38")],d=d[zx("0x110")](o[zx("0x1a")])?d:o[zx("0x1a")],c?o[zx("0x38")].isBefore(c.getFirstRange()[zx("0x38")])?(c.removeMarkers(),c=t):t.removeMarkers():c=t}else{const e=a[zx("0x12d")](o);this[zx("0x90")](t,e)}}const u=this.editor[zx("0xc1")][zx("0x112")](zx("0x7a")).me,g=(0,e.uid)(),m=u.id;if(c)return this[zx("0x45")](c,this[zx("0x106")].createRange(l,d)),c;{const t=this[zx("0xe5")]({id:g,type:zx("0x10d")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this._addSuggestionMarker(zx("0x10d")+s,g,m,this[zx("0x106")][zx("0x8d")](l,d)),t}}[zx("0x98")](t,n,o=[],s=null,r={}){n[zx("0x3")]||(n[zx("0x3")]=n[zx("0xa2")]);const i=t[0];n[zx("0x124")]=i.is(zx("0xd6")),s=s||$x(n);const a=o[zx("0xa0")]((t=>Qx(t,this[zx("0x106")]))),x=i.is("range")?t:t[zx("0xa0")]((t=>Qx(t,this._model)));if("never"===this[zx("0x114")]){const t=this[zx("0xda")].getSuggestionCallback(zx("0xe6"),s,zx("0x136"));return this[zx("0x6b")]((()=>t(x,n,r))),null}a.push(...x);let c=!0;for(const t of a)if(!this[zx("0xc4")](t)){c=!1;break}if(c&&zx("0xcc")!==this[zx("0x114")]){const t=this[zx("0xda")][zx("0xe1")]("formatBlock",s,"accept");return this[zx("0x6b")]((()=>t(x,n,r))),null}const l=this[zx("0x133")][zx("0xc1")][zx("0x112")]("Users").me;for(const t of this[zx("0xa7")]()){if(t[zx("0x79")].id!=l.id)continue;if(zx("0xe6")!=t[zx("0xad")]||t[zx("0x100")][zx("0x3")]!=n[zx("0x3")])continue;if(!tc(t,r))continue;const e=t[zx("0x28")]==s;for(let n=0;n<x[zx("0xf5")];n++){const o=x[n];for(const s of t[zx("0x53")]()){const r=s.getRange();if(o[zx("0xe3")](r)){e?(x[zx("0x12c")](n,1),n--):t.removeMarker(s[zx("0x63")]);break}}}}if(0==x[zx("0xf5")])return null;const d=this[zx("0xda")][zx("0xe1")](zx("0xe6"),s,"join");for(const t of this[zx("0xa7")]())if(t[zx("0x79")].id==l.id&&zx("0xe6")==t[zx("0xad")]&&t[zx("0x100")].formatGroupId==n[zx("0x3")]&&t.subType==s&&tc(t,r)&&(d(t.getRanges(),x)||d(x,t[zx("0x69")]()))){for(const e of x)t[zx("0x103")](e);return t}const u=(0,e.uid)(),g=l.id,m=zx("0x10d")+s,f=this[zx("0xe5")]({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of x)this[zx("0x105")](m,u,g,t,Zo[zx("0xa9")]());return f}markDeletion(t,n=null,o={}){if(t[zx("0x134")])return null;const s=this[zx("0x133")].plugins[zx("0x112")](zx("0x7a")).me,r=new i.LiveRange(t.start,t.end);for(const{suggestion:t,meta:e}of this[zx("0x27")](r,zx("0x78")))if(e[zx("0xaf")]&&!e.isNextTo)if(t.isMultiRange){const e=t[zx("0x69")]()[zx("0xf0")]((t=>zx("0x135")!=t.root[zx("0x15")]));if(e.every((t=>r[zx("0x3c")](t,!0)))&&t[zx("0x8c")](),e[zx("0x87")]((t=>t.containsRange(r,!0)))){const t=this._suggestionFactory.getSuggestionCallback(zx("0x95"),n,"accept");return this[zx("0x6b")]((()=>t([r],null,o))),null}}else{const e=r[zx("0x12d")](t[zx("0x4d")]());null!==e&&t[zx("0x57")]([e],null,o)}if(r[zx("0x64")](),r[zx("0x134")]||zx("0x135")==r[zx("0x137")][zx("0x15")])return null;let a=null,x=r.start,c=r[zx("0x1a")];const l=this[zx("0x27")](r,zx("0x95"));for(const{suggestion:t,meta:e}of l){const n=this[zx("0x106")][zx("0x8d")](x,c);if(e[zx("0xaf")]&&(this[zx("0xd1")]||!e[zx("0xf4")]&&!e.isInsideObject))if(t[zx("0x7c")]){if(!tc(t,o))continue;let e=!0;for(const o of t.getRanges()){if(o[zx("0x3c")](n,!0))return t;n[zx("0x3c")](o)||(e=!1)}e&&t.discard()}else{const e=t.getFirstRange();if(e[zx("0x3c")](n,!0))return t;if(!tc(t,o)){n[zx("0x3c")](e)?t[zx("0xfa")]():e[zx("0x18")](x)?x=e[zx("0x1a")]:e[zx("0x18")](c)&&(c=e[zx("0x38")]);continue}x=x.isBefore(e[zx("0x38")])?x:e[zx("0x38")],c=c[zx("0x110")](e[zx("0x1a")])?c:e[zx("0x1a")],o=Object[zx("0x8")]({},t[zx("0x94")]),a?e[zx("0x38")][zx("0x128")](a[zx("0x4d")]().start)?(a.removeMarkers(),a=t):t[zx("0xfa")]():a=t}}if(a)return this[zx("0x45")](a,this[zx("0x106")][zx("0x8d")](x,c)),a;{const t=(0,e.uid)(),r=this[zx("0x106")].createRange(x,c),i=s.id,a=n?"deletion:"+n:zx("0x95"),l=this[zx("0xe5")]({id:t,type:a,createdAt:new Date,authorId:i,attributes:o});return this[zx("0x105")](a,t,i,r),l}}[zx("0xc0")](t,n="multi",o={}){const s=this[zx("0x133")][zx("0xc1")][zx("0x112")](zx("0x7a")).me,r=t[zx("0xa0")]((t=>new i.LiveRange(t[zx("0x38")],t[zx("0x1a")]))),a=new Set;for(const{suggestion:t,meta:e}of this[zx("0x27")](r,zx("0x78")))e.isOwn&&!e[zx("0x129")]&&a[zx("0x9a")](t);for(const e of a)if(e[zx("0x7c")]){const s=e[zx("0x69")]();if((!e.attributes||!e.attributes[zx("0xeb")])&&s.every((t=>r[zx("0x87")]((e=>e[zx("0x3c")](t,!0)))))&&e[zx("0x8c")](),r[zx("0xa8")]((t=>s[zx("0x87")]((e=>e[zx("0x3c")](t,!0)))))){const e=this._suggestionFactory[zx("0xe1")](zx("0x95"),n,"accept");return this[zx("0x6b")]((()=>e(t,null,o))),null}}else{const t=e[zx("0x4d")]();if(r[zx("0x87")]((e=>e[zx("0x3c")](t,!0)))&&e.discard(),r[zx("0xa8")]((e=>t[zx("0x3c")](e,!0)))){const t=this[zx("0xda")][zx("0xe1")]("deletion",n,"accept");return this[zx("0x6b")]((()=>t(r,null,o))),null}}const x=this[zx("0xda")][zx("0xe1")](zx("0x95"),n,zx("0x83"));let c=null;for(const t of this.getSuggestions())if(t.author.id==s.id&&t[zx("0x25")]&&zx("0x95")==t.type&&t[zx("0x28")]==n&&tc(t,o)&&(x(t[zx("0x69")](),r)||x(r,t.getRanges())))if(c){if(t[zx("0x12")]&&t[zx("0x12")][zx("0xf5")])continue;for(const e of t.getRanges())c[zx("0x113")](e)||c[zx("0x103")](e);t.removeMarkers()}else{c=t;for(const e of r)t[zx("0x113")](e)||t[zx("0x103")](e)}if(c)return c;a[zx("0x33")]();for(const{suggestion:t,meta:e}of this[zx("0x27")](r,zx("0x95")))e.isOwn&&(this[zx("0xd1")]||!e[zx("0xf4")]&&!e[zx("0xba")])&&tc(t,o)&&a.add(t);for(const t of a){const e=t[zx("0x69")]();if((!o||!o[zx("0xeb")])&&r[zx("0xa8")]((t=>e[zx("0x87")]((e=>e.containsRange(t,!0))))))return t;(!t[zx("0x94")]||!t[zx("0x94")][zx("0xeb")])&&e.every((t=>r[zx("0x87")]((e=>e[zx("0x3c")](t,!0)))))&&t[zx("0x8c")]()}const l=(0,e.uid)(),d=s.id,u=zx("0x2e")+n,g=this._setSuggestionData({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t[zx("0x64")](),t[zx("0x134")]||zx("0x135")==t[zx("0x137")][zx("0x15")]||this[zx("0x105")](u,l,d,t,Zo[zx("0xa9")]());return g}[zx("0x45")](t,e){const n=t[zx("0x40")]();this[zx("0x106")][zx("0x50")]((t=>{t[zx("0x123")](n,{range:e})}))}[zx("0x80")](t){const e=t.id,n=this[zx("0x133")].config[zx("0x112")](zx("0xac"));this[zx("0xb7")][zx("0x7b")](e)||this[zx("0xb7")][zx("0x66")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[zx("0xb7")][zx("0x5e")](e);o[zx("0xd0")](zx("0x13a")),o[zx("0x13a")]=!1,t.commentThread=o}[zx("0x20")](t,n,o,s){if(t.type!=n||t[zx("0x28")]!=o||t[zx("0x65")].id!=s)throw this[zx("0x133")][zx("0x10a")](zx("0xa6")),new e.CKEditorError("track-changes-suggestion-data-mismatch",this)}[zx("0x90")](t,n){const o=t[zx("0x4d")]();if(n[zx("0xe3")](o))t[zx("0xfa")]();else if(o[zx("0x3c")](n)){const s=this._model[zx("0xd4")](n[zx("0x38")][zx("0xf2")],zx("0x1a"));this[zx("0x45")](t,this[zx("0x106")].createRange(o[zx("0x38")],s));const r=(0,e.uid)(),i=t[zx("0x65")].id,a=t[zx("0xad")]+":"+t.subType;this[zx("0xe5")]({id:r,type:a,createdAt:new Date,authorId:i,data:t[zx("0x100")],attributes:t[zx("0x94")]});const x=this[zx("0x106")][zx("0xd4")](n[zx("0x1a")][zx("0x6")],"after"),c=this[zx("0x106")][zx("0x8d")](x,o.end);this._addSuggestionMarker(a,r,i,c)}else if(o.containsPosition(n[zx("0x38")])){const e=this[zx("0x106")][zx("0xd4")](n[zx("0x38")].nodeBefore,"end");this[zx("0x45")](t,this._model.createRange(o.start,e))}else{const e=this[zx("0x106")].createPositionAt(n.end[zx("0x6")],"after");this._setSuggestionRange(t,this[zx("0x106")][zx("0x8d")](e,o[zx("0x1a")]))}}_rangeIsInLocalUserInsertion(t){for(const{suggestion:e,meta:n}of this[zx("0x27")](t,zx("0x78"))){if(!n[zx("0xaf")])continue;const o=e.getRanges();for(const e of o)if(!t[zx("0x70")](e)[zx("0xf5")])return!0}return!1}_getAuthorFromId(t){const n=this[zx("0x133")][zx("0xc1")].get(zx("0x7a"))[zx("0x34")](t);if(!n)throw new e.CKEditorError(zx("0x12a"),this);return n}[zx("0x47")](t){const e=this.editor.plugins[zx("0x112")](zx("0x7a")),n=(0,r.hashObject)("external:"+t);return e[zx("0x34")](n)||e[zx("0x11f")]({id:n,name:t})}[zx("0x23")](t,e,n,o,s){const r=this[zx("0x122")](o),i=this[zx("0xda")][zx("0x77")](t,e,n,r,s,(t=>this[zx("0x2b")](n,{attributes:t})));return this[zx("0x11")](i,zx("0x136"),(()=>{this[zx("0x2b")](n,{state:zx("0x108")})}),{priority:"high"}),this[zx("0x11")](i,zx("0x8c"),(()=>{this[zx("0x2b")](n,{state:zx("0x4c")})}),{priority:zx("0x2c")}),this[zx("0x88")][zx("0xc3")](n,i),this[zx("0x9b")][zx("0xc3")](i,zx("0x96")),i}[zx("0x4f")](t){const e=t[zx("0xc2")](":");return{group:e[0],type:e[1],subType:e[zx("0xf5")]>=5?e[2]:null,id:e[zx("0xf5")]<5?e[2]:e[3],authorId:e[zx("0xf5")]<5?e[3]:e[4],markerCount:6==e[zx("0xf5")]?e[5]:null}}[zx("0x81")](t,n,o){const s=t[zx("0x4d")](),r=s[zx("0x38")],i=s[zx("0x1a")];this[zx("0x45")](t,this._model.createRange(r,n));const a=(0,e.uid)(),x=t[zx("0x65")].id,c=t[zx("0xad")]+(t[zx("0x28")]?":"+t[zx("0x28")]:"");this[zx("0xe5")]({id:a,type:c,createdAt:new Date,authorId:x,originalSuggestionId:t.id,attributes:t[zx("0x94")],data:t[zx("0x100")]}),zx("0xe6")==t[zx("0xad")]&&(o=this[zx("0x106")][zx("0x44")](o[zx("0x6")])),this[zx("0x105")](c,a,x,this[zx("0x106")][zx("0x8d")](o,i))}[zx("0x27")](t,e=null){const n=[],o=this[zx("0x133")][zx("0xc1")][zx("0x112")](zx("0x7a")).me;Array[zx("0xfc")](t)||(t=[t]);for(const s of this[zx("0xa7")]()){if(!s[zx("0x25")])continue;if(e&&s[zx("0xad")]!=e)continue;let r=!1;for(const e of s[zx("0x69")]()){for(const i of t){const t=i[zx("0x38")][zx("0xe3")](e[zx("0x1a")])||i[zx("0x1a")][zx("0xe3")](e.start);if(t||i.getIntersection(e)){const a=i[zx("0x3c")](e)&&Kx(this[zx("0x106")][zx("0xe8")],e[zx("0x38")],i),x=e.containsRange(i)&&Kx(this[zx("0x106")][zx("0xe8")],i.start,e);n.push({suggestion:s,meta:{isOwn:o==s[zx("0x79")],isNextTo:t,isInsideObject:a,containsRangeInObject:x}}),r=!0;break}}if(r)break}}return n}[zx("0x105")](t,e,n,o,s){this._model.change((r=>{let i=zx("0x84")+t+":"+e+":"+n;s&&(i=i+":"+s),r.addMarker(i,{range:o,usingOperation:!0,affectsData:!0})}))}[zx("0xdf")](t){const e=t[zx("0x4a")],n=t.next;t[zx("0x4a")]=null,null!=e&&(e[zx("0x11a")]=null),t[zx("0x11a")]=null,null!=n&&(n.previous=null),"ready"==this._suggestionState[zx("0x112")](t)&&(this[zx("0x9b")][zx("0xc3")](t,"removed"),this[zx("0x31")](zx("0xed"),t,e,n))}[zx("0xe5")](t){const n=t.id,o=this[zx("0x9c")](t);if(this._adapter&&this[zx("0x0")][zx("0x11b")]){const s=this.editor[zx("0xc1")][zx("0x112")]("PendingActions"),r=o[zx("0x121")],i=o[zx("0x28")]?o[zx("0xad")]+":"+o.subType:o.type,a=this.editor[zx("0x10f")],x=s[zx("0x9a")](Yo(a,zx("0xb1"))),c={id:n,type:i,hasComments:r,data:t[zx("0x100")]||null,originalSuggestionId:t[zx("0x91")]||null,attributes:o[zx("0x94")]};this._adapter.addSuggestion(c).then((t=>{o._saved=!0,s[zx("0x60")](x),t&&t[zx("0x104")]&&(this[zx("0x88")].get(n)[zx("0x104")]=t.createdAt)}))[zx("0xc")]((t=>{throw(0,e.logWarning)(zx("0xc7")),this[zx("0x133")].model[zx("0x7e")]({isUndoable:!1},(()=>{o.discard()})),o.stopListening(),this._suggestions[zx("0x140")](o.id),this[zx("0x9b")][zx("0x140")](o),t}))}return o}_updateSuggestionData(t,e){const n=this[zx("0x133")][zx("0xc1")][zx("0x112")](zx("0x49")),o=this[zx("0xc5")](t);if(this[zx("0x0")]&&this[zx("0x0")][zx("0x9d")])if(o[zx("0x89")]){const o=n[zx("0x9a")](Yo(this[zx("0x133")][zx("0x10f")],"PENDING_ACTION_SUGGESTION"));this[zx("0x0")][zx("0x9d")](t,e)[zx("0x5d")]((()=>{n.remove(o)}))}else o.on(zx("0x72"),(()=>{this[zx("0x2b")](t,e)}))}[zx("0xb4")](t){if(!this[zx("0x0")]||!this[zx("0x0")][zx("0xc5")])throw new e.CKEditorError(zx("0xa1"),this);return this[zx("0x0")][zx("0xc5")](t)}_handleNewSuggestionMarker(t){const{id:e,type:n,subType:o,authorId:s}=this._splitMarkerName(t),r=this[zx("0x88")][zx("0x112")](e)||this[zx("0x23")](n,o,e,s,{});switch(this[zx("0x20")](r,n,o,s),this[zx("0x9b")][zx("0x112")](r)){case zx("0x96"):this[zx("0xb4")](e).then((t=>{let n=Promise[zx("0xec")]();t[zx("0x121")]&&(n=this[zx("0xb7")][zx("0x139")]({channelId:this[zx("0x133")][zx("0x126")][zx("0x112")](zx("0xac")),threadId:e})),n[zx("0x5d")]((()=>{this[zx("0x9c")](t)[zx("0x89")]=!0}))})),this[zx("0x9b")][zx("0xc3")](r,zx("0x8a"));break;case zx("0x115"):this[zx("0x2b")](e,{state:zx("0xd3")});case zx("0x43"):this[zx("0x9b")].set(r,"ready"),this.fire(zx("0xa"),r);break;case"ready":this[zx("0x31")](zx("0xce"),r)}return r[zx("0x118")](t),r}[zx("0x7d")](t){const e=Array[zx("0x56")](t)[zx("0xf0")]((t=>!t[zx("0x7c")])),n=this[zx("0xa7")]({skipNotAttached:!0})[zx("0xf0")]((t=>!t[zx("0x7c")])),o=n[zx("0xf0")]((e=>!t[zx("0x62")](e))),s=new Map(n[zx("0xa0")]((t=>[t,this[zx("0xda")].getSuggestionCallback(t[zx("0xad")],t[zx("0x28")],zx("0x17"))]))),r=new Map(n[zx("0xa0")]((t=>[t,t[zx("0x4d")]()]))),i=new Set,a=new Set;for(let t=0;t<e[zx("0xf5")];t++)x(e[t],e,t+1);for(let t=0;t<e.length;t++)x(e[t],o,0);for(let t=0;t<e[zx("0xf5")];t++){const n=e[t];!a.has(n)&&n[zx("0x4a")]&&(n[zx("0x4a")][zx("0x11a")]===n&&(n.previous[zx("0x11a")]=null),n[zx("0x4a")]=null),!i[zx("0x62")](n)&&n[zx("0x11a")]&&(n[zx("0x11a")][zx("0x4a")]===n&&(n.next[zx("0x4a")]=null),n[zx("0x11a")]=null)}function x(t,e,n){for(let o=n;o<e.length;o++){const n=c(t,e[o]);n&&(n[0][zx("0x11a")]=n[1],n[1][zx("0x4a")]=n[0],i[zx("0x9a")](n[0]),a[zx("0x9a")](n[1]))}}function c(t,e){if(t.author.id!==e[zx("0x79")].id)return null;const n=s[zx("0x112")](t)(t,e,r[zx("0x112")](t),r[zx("0x112")](e));return n&&s[zx("0x112")](e)(t,e,r[zx("0x112")](t),r[zx("0x112")](e))?n[1].commentThread&&n[1].commentThread[zx("0xf5")]?null:n:null}}_joinWithAdjacentSuggestions(t){const e=Array[zx("0x56")](t),n=this[zx("0xa7")]({skipNotAttached:!0}),o=n[zx("0xf0")]((e=>!t[zx("0x62")](e))),s=new Map(e[zx("0xa0")]((t=>[t,this[zx("0xda")][zx("0xe1")](t[zx("0xad")],t[zx("0x28")],"join")]))),r=new Map(n[zx("0xa0")]((t=>[t,t[zx("0x69")]()])));for(let t=0;t<e.length;t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[zx("0xf5")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n[zx("0xf5")];i++){const o=n[i];if(o.type!==e.type||o[zx("0x79")].id!==e[zx("0x79")].id||o.subType!==e[zx("0x28")])continue;if(!Yx(e,o))continue;const a=s[zx("0x112")](e),x=r[zx("0x112")](e),c=r[zx("0x112")](o),l=e.commentThread&&e[zx("0x12")].length,d=o.commentThread&&o[zx("0x12")].length;if(!l&&a(c,x))return t._joinSuggestions(o,e),r.delete(e),!0;if(!d&&a(x,c))return t[zx("0x10e")](e,o),r[zx("0x140")](o),!0}return!1}}_joinSuggestions(t,e){if(t.isMultiRange)for(const n of e.getRanges())t.addRange(n);else{const n=e[zx("0x4d")]()[zx("0x1a")];this[zx("0x45")](t,this[zx("0x106")][zx("0x8d")](t.getFirstRange().start,n))}e[zx("0xfa")]()}}class Vx{constructor(t){this[zx("0xe2")]=t,this[zx("0x106")]=t[zx("0x73")],this[zx("0xe7")]=new Map,this[zx("0xca")]=new Map,this._registerDefaultCallbacks()}[zx("0x77")](t,e,n,o,s,r){return new Zo(this[zx("0x106")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[zx("0xe1")](t,e,zx("0x136"))(...n),onDiscard:(...n)=>this[zx("0xe1")](t,e,zx("0x8c"))(...n)})}registerCustomCallback(t,e,n,o){const s=t+":"+e+":"+n;this[zx("0xe7")].set(s,o)}[zx("0xe1")](t,e,n){const o=t+":"+e+":"+n;return this[zx("0xe7")][zx("0x112")](o)||this._defaultCallbacks[zx("0x112")](t+":"+n)}_registerDefaultCallbacks(){const t=()=>!1,e=t=>{t[zx("0x2a")](((t,e)=>t[zx("0x38")][zx("0x128")](e[zx("0x38")])?1:-1)),this[zx("0x106")][zx("0x50")]((e=>{for(const n of t){let t;t=n[zx("0x1a")][zx("0x6d")]&&n.end[zx("0x6")]==n[zx("0x38")][zx("0xd7")]?e.createSelection(n[zx("0x38")][zx("0xd7")],"on"):e.createSelection(n),this[zx("0x106")].deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[zx("0x106")][zx("0x50")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[zx("0xa0")]((t=>(qx(t)&&(t=this[zx("0x106")][zx("0x8d")](t[zx("0x1a")])),t)))[zx("0xf0")]((t=>"$graveyard"!==t[zx("0x137")][zx("0x15")]));if(r[zx("0xf5")]<1)return;const a=Array[zx("0x56")](this[zx("0x106")][zx("0x120")][zx("0x11c")][zx("0x69")]())[zx("0xa0")]((t=>i.LiveRange[zx("0xfe")](t)));n[zx("0x13c")](r);for(const t of this[zx("0xe2")][zx("0xb3")][zx("0xb3")]())t[zx("0x59")]();s[zx("0xea")]({forceDefaultExecution:!0}),this._editor[zx("0x102")](o,...s);const x=a[zx("0xf0")]((t=>zx("0x135")!=t[zx("0x137")][zx("0x15")]));x[zx("0xf5")]>0&&n[zx("0x13c")](x);for(const t of a)t[zx("0x64")]()}))},o=(t,e)=>1==t[zx("0xf5")]&&1==e[zx("0xf5")]&&t[0][zx("0x1a")][zx("0xe3")](e[0][zx("0x38")]),s=(t,e,n,o)=>Zx(t,e,n,o,this._model)?[t,e]:Zx(e,t,o,n,this[zx("0x106")])?[e,t]:null;this._defaultCallbacks[zx("0xc3")](zx("0xae"),t),this._defaultCallbacks[zx("0xc3")]("insertion:discard",e),this[zx("0xca")].set(zx("0x127"),o),this[zx("0xca")][zx("0xc3")](zx("0x10"),s),this._defaultCallbacks[zx("0xc3")]("deletion:accept",e),this[zx("0xca")].set("deletion:discard",t),this[zx("0xca")][zx("0xc3")](zx("0xf8"),o),this[zx("0xca")][zx("0xc3")]("deletion:chain",s),this[zx("0xca")].set(zx("0xf"),n),this._defaultCallbacks[zx("0xc3")](zx("0x29"),t),this[zx("0xca")][zx("0xc3")](zx("0x42"),o),this[zx("0xca")][zx("0xc3")](zx("0xfb"),t),this[zx("0xca")][zx("0xc3")]("formatBlock:accept",n),this[zx("0xca")][zx("0xc3")]("formatBlock:discard",t),this[zx("0xca")].set(zx("0x12e"),o),this._defaultCallbacks.set(zx("0x8b"),t)}}function Kx(t,e,n){for(const o of e[zx("0x6")].getAncestors({includeSelf:!0,parentFirst:!0})){if(o.root==o)return!1;if(!n.containsItem(o))return!1;if(t[zx("0x6a")](o)||t[zx("0x138")](o))return!0}return!1}function qx(t){return t[zx("0x1a")].parent==t[zx("0x38")][zx("0xd7")]&&t[zx("0x1a")].isAtStart}function Xx(t,e,n,o){const s=t=>!t[zx("0x19")].is("$textProxy")&&!o[zx("0x6a")](t[zx("0x19")]),r=t[zx("0x38")][zx("0xc8")](s),i=t[zx("0x1a")].getLastMatchingPosition(s,{direction:zx("0x1c")});return!(t[zx("0x38")][zx("0xe3")](r)&&t[zx("0x1a")].isEqual(i)||(r[zx("0x128")](i)?n[zx("0x123")](e,{range:n[zx("0x8d")](r,i)}):n[zx("0xe0")](e),0))}function $x(t){return(0,r.hashObject)(t)}function Jx(t){const e=t.start[zx("0xd7")];return e&&e.is(zx("0xab"))}function Qx(t,e){const n=e[zx("0xe8")][zx("0x6a")](t)||e[zx("0xe8")][zx("0x116")](t);return e.createRange(e[zx("0xd4")](t,zx("0x4")),n?e[zx("0x2f")](t):e[zx("0xd4")](t,zx("0x1a")))}function Zx(t,e,n,o,s){if(!Yx(t,e))return!1;if(n[zx("0x1a")][zx("0xe3")](o[zx("0x38")]))return!0;if(t[zx("0xad")]!=e[zx("0xad")])return!1;if(!n.end[zx("0xb9")](o[zx("0x38")]))return!1;const r=s[zx("0x8d")](n.end,o[zx("0x38")])[zx("0x3f")]();for(const t of r)if([zx("0xd9"),zx("0x101")][zx("0x16")](t[zx("0xad")])&&s.schema.isLimit(t.item))return!1;return!0}function Yx(t,e){return!(!t[zx("0xd5")]||!e[zx("0xd5")])&&Go(t[zx("0x94")],e[zx("0x94")])}function tc(t,e){const n=ec(t[zx("0x94")]),o=ec(e);if(!t._isDataLoaded)return!1;for(const t of Object[zx("0x55")](o))if(!Go(n[t],o[t]))return!1;return!0}function ec(t){const e=Object[zx("0x8")]({},t);return delete e.skipNestingCheck,delete e[zx("0x4b")],e}const nc=["destroy","unbind","get","_editor","_pendingAction","PendingActions","commands","stopListening","getRanges","remove","isEnabled","canAccept","_acceptCommand","canDiscard","bind","commentThreadController","add","discardSuggestion","acceptSuggestion","model","_discardCommand","execute","PENDING_ACTION_SUGGESTION","_removePendingAction","listenTo","locale","isDirty","view","_setPendingAction","plugins"];var oc,sc;oc=nc,sc=480,function(t){for(;--t;)oc.push(oc.shift())}(++sc);const rc=function(t,e){return nc[t-=0]};class ic extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[rc("0x13")]=e,this.view=n,this.commentThreadController=o,this._editor=t,this[rc("0xc")]=t[rc("0x6")][rc("0x2")]("acceptSuggestion"),this[rc("0x14")]=t[rc("0x6")][rc("0x2")](rc("0x11")),this.view[rc("0xe")](rc("0xa")).to(this._acceptCommand,this._discardCommand,((t,e)=>t||e)),this.view[rc("0xe")]("canAccept").to(this[rc("0xc")],"isEnabled",(t=>t&&this[rc("0x3")][rc("0x13")].canEditAt(e[rc("0x8")]()))),this[rc("0x1b")][rc("0xe")]("canDiscard").to(this[rc("0x14")],rc("0xa"),(t=>t&&this[rc("0x3")].model.canEditAt(e[rc("0x8")]()))),this[rc("0x4")]=null,n[rc("0x1a")]&&this._setPendingAction(),this.listenTo(n,"acceptSuggestion",(()=>this[rc("0x12")]())),this[rc("0x18")](n,rc("0x11"),(()=>this.discardSuggestion())),this.listenTo(n,"change:isDirty",(()=>{n[rc("0x1a")]?this[rc("0x1c")]():this[rc("0x17")]()}))}[rc("0x12")](){this[rc("0xc")][rc("0x15")](this[rc("0x13")].id)}[rc("0x11")](){this[rc("0x14")].execute(this[rc("0x13")].id)}[rc("0x0")](){this.view[rc("0x1")](rc("0xa")),this[rc("0x1b")][rc("0x1")](rc("0xb")),this[rc("0x1b")][rc("0x1")](rc("0xd")),this[rc("0x7")](),this[rc("0xf")][rc("0x0")](),this[rc("0x4")]&&this[rc("0x17")]()}[rc("0x1c")](){const t=Yo(this[rc("0x3")][rc("0x19")],rc("0x16"));this[rc("0x4")]=this[rc("0x3")][rc("0x1d")][rc("0x2")]("PendingActions")[rc("0x10")](t)}_removePendingAction(){null!==this._pendingAction&&this[rc("0x3")][rc("0x1d")][rc("0x2")](rc("0x5"))[rc("0x9")](this[rc("0x4")]),this[rc("0x4")]=null}}const ac=["addComment","_localUser","_config","set","destroy","isActive","locale","commentsListView","delegate","isEnabled","_model","bind","commentThreadInputView","commentThread","fire","submit","removeComment","canAccept","_createCommentViews","isReadOnly","value","showInput","isDirty","commentInputView","_createCommentThreadInputView","hasDirtyComment","cancel","assign","authoredAt","updateComment","focus","editorConfig","length"];var xc,cc;xc=ac,cc=445,function(t){for(;--t;)xc.push(xc.shift())}(++cc);const lc=function(t,e){return ac[t-=0]};class dc extends s.View{constructor(t,e,n,o){super(t),this.commentsListView=null,this.commentThreadInputView=null,this[lc("0x14")](lc("0x16"),!1),this[lc("0x14")](lc("0xc"),e[lc("0xc")]),this.bind(lc("0xc")).to(e),this[lc("0x14")]("descriptionParts",[]),this.set(lc("0x6"),!1),this.set(lc("0x1a"),!1),this[lc("0x14")](lc("0x1"),!1),this.set("canDiscard",!1),this[lc("0x1b")]=e,this[lc("0x12")]=n,this[lc("0x13")]=o,o.disableComments?this[lc("0x14")](lc("0x10"),1):this[lc("0x2")]()}focus(){this.element[lc("0xe")]()}[lc("0x15")](){this[lc("0x18")]&&this[lc("0x18")][lc("0x15")](),this.commentThreadInputView&&this[lc("0x1d")][lc("0x15")](),super[lc("0x15")]()}[lc("0x2")](){const{CommentsListView:t}=this[lc("0x13")];this[lc("0x18")]=new t(this[lc("0x17")],this[lc("0x1b")][lc("0x1e")],Object[lc("0xb")]({CommentView:this._config.CommentView},this[lc("0x13")])),this[lc("0x18")][lc("0x19")]("removeComment").to(this),this[lc("0x18")][lc("0x19")](lc("0xd")).to(this),this[lc("0x18")].bind(lc("0x16")).to(this),this.set(lc("0x10"),this[lc("0x18")].length+1),this[lc("0x1c")](lc("0x10")).to(this[lc("0x18")],lc("0x10"),(t=>t+1)),this[lc("0x1d")]=this[lc("0x8")](),this.on(lc("0x0"),(()=>this[lc("0xe")]())),this[lc("0x1c")](lc("0x6")).to(this[lc("0x18")],lc("0x9"),this[lc("0x1d")][lc("0x7")],lc("0x4"),((t,e)=>t||!!e))}[lc("0x8")](){const{CommentThreadInputView:t}=this[lc("0x13")],e=new t(this.locale,this[lc("0x12")],this[lc("0x13")][lc("0xf")]),n=e.commentInputView;return e[lc("0x1c")](lc("0x5")).to(this,lc("0x16"),this._model[lc("0x1e")],lc("0x3"),n,lc("0x4"),((t,e,n)=>!!n||t&&!e)),n.on(lc("0x20"),((t,e)=>{this[lc("0x1f")](lc("0x11"),e),n.editor.setData("")})),n.on(lc("0xa"),(()=>this[lc("0xe")]())),n[lc("0x1c")]("disabledSubmit").to(this[lc("0x1b")][lc("0x1e")],lc("0x3")),e}}const uc=["ck-suggestion--disabled-comments","ck-annotation__actions","title","div","ck-suggestion--discard","acceptButton","commentsListView","Accept suggestion","source","bindTemplate","bind","acceptSuggestion",'" title="',"color","render","userView","isExternal","editorReady","_descriptionElement","querySelector","ck-annotation__content-wrapper","ck-comment__external","editorDestroyed","</p>","description","delegate","authoredAt","getExternalSuggestionNote","formatDateTime","attributes","disableComments","ck-annotation","creator","getUserViewNotificationText","EXTERNAL_AVATAR","split","change:description","<p>","name","setTemplate","children","ck-annotation__info-time","locale","importWord","value",'<span class="ck-suggestion-type">',"innerHTML","push","ck-suggestion-wrapper--active","_config","execute","isEnabled","EXTERNAL_SUGGESTION","extendTemplate","descriptionParts","createElement","_model","ck-annotation__info","cancel","_createButton",".ck-annotation__content-wrapper","@external",'"></span>',"set","element","map","isActive","discardButton","canDiscard","ck-annotation__info-name","ck-suggestion","join","getTemplate","ck-suggestion__user","EXTERNAL_IMPORT_WORD_AVATAR","ck-annotation__user","author","ck-suggestion__info","check","ck-suggestion-","type","ck-suggestion__main","commentThreadInputView","span","ck-annotation__main","commentThread","ck-comment__info-time"];var gc,mc;gc=uc,mc=166,function(t){for(;--t;)gc.push(gc.shift())}(++mc);const fc=function(t,e){return uc[t-=0]};class hc extends dc{constructor(e,n,o,s){super(e,n,o,s),this[fc("0x47")](fc("0x1"),""),this[fc("0x12")](fc("0x1")).to(this,fc("0x3e"),(t=>t&&t[0]?t[0][fc("0x1")]:"")),this[fc("0x12")](fc("0x20")).to(this,fc("0x3e"),this,fc("0x4a"),((t,e)=>{let n="";for(const e of t)n+=fc("0x2d")+pc(e.content,e[fc("0x15")])+fc("0x1f");return e?n:(0,r.trimHtml)(n,{limit:140})})),this._descriptionElement=null,this[fc("0xd")]=this[fc("0x43")](Yo(e,fc("0xf")),t.icons[fc("0x56")],"ck-suggestion--accept",fc("0x13"),"sw"),this[fc("0xd")][fc("0x12")](fc("0x3b")).to(this,"canAccept"),this.discardButton=this._createButton(Yo(e,"Discard suggestion"),t.icons[fc("0x42")],fc("0xc"),"discardSuggestion","sw"),this[fc("0x4b")][fc("0x12")](fc("0x3b")).to(this,fc("0x4c")),this[fc("0x17")]=new r.UserView(e,this[fc("0x40")][fc("0x54")],this[fc("0x29")]()),this.userView.extendTemplate({attributes:{class:[fc("0x51"),fc("0x53")]}}),this[fc("0x2f")](this.getTemplate())}[fc("0x50")](){const t=this[fc("0x11")],e=[{tag:fc("0xb"),attributes:{class:[fc("0x55"),fc("0x41")]},children:[{tag:fc("0x4"),children:[{text:this.userView[fc("0x2e")]}],attributes:{class:["ck-suggestion__info-name",fc("0x4d")]}},{tag:"time",attributes:{datetime:t.to(fc("0x22")),class:[fc("0x7"),fc("0x31")]},children:[{text:t.to(fc("0x22"),(t=>this[fc("0x39")][fc("0x24")](t)))}]}]},{tag:fc("0xb"),attributes:{class:["ck-suggestion__actions",fc("0x9")]},children:[this[fc("0xd")],this.discardButton]},{tag:fc("0xb"),attributes:{class:[fc("0x1c")]}}];this._model[fc("0x18")]&&e.push({tag:fc("0xb"),attributes:{class:[fc("0x1d")]},children:[{text:this[fc("0x23")]()}]});const n={tag:fc("0xb"),attributes:{class:["ck-suggestion-wrapper",t.if(fc("0x4a"),fc("0x38")),t.to(fc("0x1"),(t=>fc("0x0")+t)),this[fc("0x39")][fc("0x26")]&&fc("0x8")],"data-suggestion-id":this._model.id,"data-thread-id":this[fc("0x40")][fc("0x6")].id,"data-author-id":this[fc("0x40")][fc("0x54")].id,tabindex:-1},children:[{tag:fc("0xb"),attributes:{class:[fc("0x4e"),fc("0x27")]},children:[this.userView,{tag:fc("0xb"),attributes:{class:[fc("0x2"),fc("0x5")]},children:e}]}]};return this[fc("0xe")]&&this.commentThreadInputView&&(n[fc("0x30")][fc("0x37")](this[fc("0xe")],this[fc("0x3")]),this[fc("0xe")][fc("0x21")](fc("0x19")).to(this),this.commentsListView[fc("0x21")]("editorDestroyed").to(this),this[fc("0x3")][fc("0x21")](fc("0x19")).to(this),this[fc("0x3")].delegate(fc("0x1e")).to(this)),n}[fc("0x16")](){super.render(),this._descriptionElement=this[fc("0x48")][fc("0x1b")](fc("0x44")),this[fc("0x1a")][fc("0x36")]=this[fc("0x20")],this.on(fc("0x2c"),((t,e,n)=>{this[fc("0x1a")][fc("0x36")]=n}))}[fc("0x43")](t,e,n,o,r){const i=new s.ButtonView(this.locale);return i[fc("0x47")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[fc("0x3d")]({attributes:{class:n}}),i.on(fc("0x3a"),(()=>{this.fire(o,this[fc("0x40")].id)})),i}[fc("0x23")](){return"importWord"===this[fc("0x40")].attributes[fc("0x45")].source?Yo(this.locale,"EXTERNAL_IMPORT_WORD_SUGGESTION"):Yo(this[fc("0x32")],fc("0x3c"))}[fc("0x29")](){return this[fc("0x40")][fc("0x18")]?fc("0x33")===this[fc("0x40")][fc("0x25")][fc("0x45")][fc("0x10")]?Yo(this.locale,fc("0x52"),this[fc("0x40")][fc("0x28")][fc("0x2e")]):Yo(this[fc("0x32")],fc("0x2a"),this[fc("0x40")].creator[fc("0x2e")]):null}}function pc(t,e){let n="";return n+=t[fc("0x2b")]("*")[fc("0x49")](((t,e)=>e%2!=0?fc("0x35")+bc(t)+"</span>":bc(t)))[fc("0x4f")](""),e&&(n+='<span class="ck-suggestion-color" style="background-color: '+e[fc("0x34")]+fc("0x14")+e[fc("0xa")]+fc("0x46")),n}function bc(t){const e=document[fc("0x3f")](fc("0x4"));return e.innerText=t,e[fc("0x36")]}const Ec=["filter","_annotationViews","toMany","has","delete","suggestionChanged","Discard all selected suggestions","map","isInContent","SuggestionThreadView","view","suggestionUnloaded","isEnabled","getSuggestion","trackChanges","_updateController","arrowView","Annotations","Track changes","type","button","addComment","_viewToController","lowest","getJoined","innerView","values","get","destroy","requires","_refreshActiveMarkers","buttonView","_createUIButton","locale","set","_descriptionFactory","commandName","descriptionParts","focus","trackChanges.disableComments","switchbutton","length","getAllAdjacentSuggestions","commentThread","Discard all suggestions","isDirty","discardSelectedSuggestions","getMarkers","activeMarkers","Accept all selected suggestions","listenTo","_suggestionToController","add","commands","value","init","_handleControllerBuffer","model","reduce","bind","comments.maxCommentCharsWhenCollapsed","Accept all suggestions","_disableComments","getFirstRange","getRanges","getDescriptions","suggestionLoaded","addSourceCollector","change:activeAnnotations","getMarkerNames","discardAllSuggestions","TrackChangesEditing","editor","_bindAnnotationToEditors","trackChanges.SuggestionThreadView","CommentView","previous","CommentsUI","getByInnerView","hasSuggestion","change:previous","registerAnnotation","_unbindEditors","createAnnotationView","pluginName","size","EditorAnnotations","createCommentThreadController","isMultiRange","execute","_destroyController","mainView","acceptSelectedSuggestions","remove","acceptButton","actionView","isOn","config","push","editing","head","createAnnotation","CommentsRepository","from","acceptAllSuggestions","refreshSelectedViews","activeAnnotations","_initializeController","plugins","_handleSuggestionControllerDelayed"];var _c,Tc;_c=Ec,Tc=127,function(t){for(;--t;)_c.push(_c.shift())}(++Tc);const Cc=function(t,e){return Ec[t-=0]};class yc extends t.Plugin{static get[Cc("0xc")](){return[Wx,r.Users,Cc("0x55"),"Annotations",Cc("0x45")]}static get[Cc("0x43")](){return"TrackChangesUI"}constructor(t){super(t),this._suggestionToController=new Map,this[Cc("0x5")]=new Map,this._annotationViews=new Map,this[Cc("0x27")]=new Map;const e=this.editor[Cc("0x50")];e.define(Cc("0x39"),hc),e.define(Cc("0x16"),!1),this[Cc("0x2d")]=e[Cc("0xa")](Cc("0x16"))}[Cc("0x5c")](t,e){0===this._handleControllerBuffer[Cc("0x44")]&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this._suggestionToController[Cc("0x60")](t);n||e?n&&e&&this[Cc("0x49")](t):this[Cc("0x5a")](t)}this[Cc("0x37")][Cc("0x5b")][Cc("0xa")]("EditorAnnotations")[Cc("0x58")](),this[Cc("0xd")](),this[Cc("0x27")].clear()}),10),this[Cc("0x27")][Cc("0x11")](t,e)}[Cc("0x26")](){const t=this.editor,e=t[Cc("0x5b")][Cc("0xa")]("TrackChangesEditing"),n=t[Cc("0x5b")][Cc("0xa")]("Annotations"),o=t[Cc("0x5b")][Cc("0xa")](Cc("0x45")),s=t[Cc("0x5b")][Cc("0xa")]("CommentsRepository");t.ui.componentFactory[Cc("0x23")](Cc("0x6b"),(t=>this[Cc("0xf")](t))),o[Cc("0x32")]((()=>{const t=[];for(const[e,n]of Array[Cc("0x56")](this[Cc("0x22")])){const o=e[Cc("0x19")](),s=[];for(const t of o){if(!t[Cc("0x65")])continue;if(t[Cc("0x47")]){s[Cc("0x51")](...t[Cc("0x2f")]());continue}const e=t[Cc("0x2e")]();if(s[Cc("0x18")]>0){const t=s[0][Cc("0x7")](e);if(t){s[0]=t;continue}}s[Cc("0x51")](e)}t.push([n[Cc("0x67")],s])}return t})),this[Cc("0x21")](e,Cc("0x31"),((t,e)=>{this[Cc("0x21")](e,Cc("0x3f"),((t,n,o,s)=>{e[Cc("0x65")]&&(null==o?(this[Cc("0x6c")](s[Cc("0x53")]),this[Cc("0x5c")](e,!1)):(this._updateController(o[Cc("0x53")]),this[Cc("0x5c")](e,!0)))})),null===e[Cc("0x3b")]?this[Cc("0x5c")](e,!1):this[Cc("0x6c")](e[Cc("0x53")])})),this[Cc("0x21")](e,Cc("0x68"),((t,e,n)=>{this.stopListening(e,Cc("0x3f")),this[Cc("0x27")][Cc("0x61")](e);const o=n?n.head:e,s=this._suggestionToController[Cc("0xa")](o);null!==n&&this[Cc("0x6c")](o),null===n&&s&&this[Cc("0x49")](e)})),this[Cc("0x21")](e,Cc("0x62"),((t,e)=>{this[Cc("0x6c")](e)})),this[Cc("0x21")](n,Cc("0x33"),(()=>{this[Cc("0xd")]()})),this[Cc("0x21")](s,Cc("0x4"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Cc("0x3e")](n))return;const s=e[Cc("0x6a")](n);this[Cc("0x22")].get(s).view[Cc("0x15")]()}),{priority:Cc("0x6")})}_refreshActiveMarkers(){const t=this[Cc("0x37")].plugins.get("Annotations"),e=this[Cc("0x37")][Cc("0x5b")][Cc("0xa")](Cc("0x36")),n=Array[Cc("0x56")](t[Cc("0x59")],(t=>t[Cc("0x8")]))[Cc("0x5d")]((t=>this[Cc("0x5")].has(t))),o=[];for(const t of n){const e=this[Cc("0x5")].get(t)[Cc("0x28")][Cc("0x19")]();o[Cc("0x51")](...e[Cc("0x29")](((t,e)=>[...t,...e[Cc("0x34")]()]),[]))}e[Cc("0x1f")]=o}[Cc("0xf")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Cc("0x37")][Cc("0x24")].get(Cc("0x6b")),r=Yo(t,Cc("0x1"));n[Cc("0xe")][Cc("0x11")]({tooltip:r,label:r,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n.buttonView[Cc("0x2a")](Cc("0x4f")).to(o,Cc("0x25")),n[Cc("0xe")].on("execute",(()=>{o[Cc("0x48")](),this.editor.editing[Cc("0x67")].focus()}));const i=new e.Collection,a=[{type:Cc("0x17"),model:{withText:!0,label:r,commandName:Cc("0x6b")}},{type:"separator"},{type:Cc("0x3"),model:{withText:!0,label:Yo(t,Cc("0x2c")),commandName:Cc("0x57")}},{type:"button",model:{withText:!0,label:Yo(t,Cc("0x20")),commandName:Cc("0x4b")}},{type:Cc("0x3"),model:{withText:!0,label:Yo(t,Cc("0x1b")),commandName:Cc("0x35")}},{type:Cc("0x3"),model:{withText:!0,label:Yo(t,Cc("0x63")),commandName:Cc("0x1d")}}];for(const t of a){let e={type:"separator"};if(t[Cc("0x28")]){const n=new s.Model(t[Cc("0x28")]),o=this.editor.commands[Cc("0xa")](n.commandName);n[Cc("0x2a")](Cc("0x4f"),Cc("0x69")).to(o,"value",Cc("0x69")),e={type:t.type,model:n}}i.add(e)}(0,s.addListToDropdown)(n,i);const x=a[Cc("0x5d")]((t=>null!=t.model))[Cc("0x64")]((t=>this[Cc("0x37")][Cc("0x24")][Cc("0xa")](t[Cc("0x28")][Cc("0x13")]))),c=n[Cc("0xe")];return c[Cc("0x4e")].unbind(Cc("0x69")),c[Cc("0x6d")].unbind(Cc("0x69")),c[Cc("0x4e")][Cc("0x2a")](Cc("0x69")).to(o,Cc("0x69")),c[Cc("0x6d")].bind("isEnabled")[Cc("0x5f")](x,Cc("0x69"),((...t)=>t.some((t=>t)))),n.on(Cc("0x48"),(t=>{this[Cc("0x37")][Cc("0x48")](t.source[Cc("0x13")]),this[Cc("0x37")][Cc("0x52")][Cc("0x67")].focus()})),n}[Cc("0x5a")](t){const e=this.editor,n=e.config,o=e.plugins[Cc("0xa")](Cc("0x0")),s=e[Cc("0x5b")].get(Cc("0x55")),i=e[Cc("0x5b")][Cc("0xa")](Cc("0x45")),a=e.plugins.get(r.Users).me,x=n[Cc("0xa")](Cc("0x6b"))[Cc("0x66")],{CommentsListView:c,CommentThreadInputView:l}=e[Cc("0x5b")][Cc("0xa")](Cc("0x3c"));let d,u;this[Cc("0x5e")].has(t.id)?(u=this[Cc("0x5e")].get(t.id),d=u[Cc("0x4a")]):(d=new x(e[Cc("0x10")],t,a,{disableComments:this[Cc("0x2d")],editorConfig:n[Cc("0xa")]("comments.editorConfig"),maxCommentsWhenCollapsed:n[Cc("0xa")]("comments.maxCommentsWhenCollapsed"),maxThreadTotalWeight:n[Cc("0xa")]("comments.maxThreadTotalWeight"),maxCommentCharsWhenCollapsed:n[Cc("0xa")](Cc("0x2b")),formatDateTime:(0,r.getDateTimeFormatter)(n[Cc("0xa")](Cc("0x10"))),CommentView:n[Cc("0xa")]("comments")[Cc("0x3a")],CommentsListView:c,CommentThreadInputView:l}),d[Cc("0x4d")].on("execute",(()=>{e[Cc("0x52")][Cc("0x67")][Cc("0x15")]()})),d.discardButton.on(Cc("0x48"),(()=>{e[Cc("0x52")][Cc("0x67")].focus()})),u=o[Cc("0x42")](this[Cc("0x37")][Cc("0x10")],d),u[Cc("0x2a")](Cc("0x1c")).to(d,"isDirty"),u[Cc("0x2a")](Cc("0x18")).to(d),u.bind(Cc("0x2")).to(d,Cc("0x2"),(t=>"suggestion-"+t)),this[Cc("0x5e")][Cc("0x11")](t.id,u));const g=s[Cc("0x46")](t[Cc("0x1a")],d),m=new ic(e,t,d,g),f=t.getAllAdjacentSuggestions()[Cc("0x5d")]((t=>t[Cc("0x65")]));d.descriptionParts=e[Cc("0x5b")].get("TrackChangesEditing")[Cc("0x12")][Cc("0x30")](f),this[Cc("0x22")][Cc("0x11")](t,m),this._viewToController[Cc("0x11")](d,m);const h=o[Cc("0x54")]({view:u,target:()=>{const n=[],o=t.getAllAdjacentSuggestions()[Cc("0x5d")]((t=>t[Cc("0x65")]));for(const t of o)n[Cc("0x51")](...t[Cc("0x1e")]());return(0,r.getAllMarkersDomElementsSorted)(e.editing,n)},type:()=>"suggestion-"+m[Cc("0x67")][Cc("0x2")]});s[Cc("0x38")](d,h),o[Cc("0x23")](h),i[Cc("0x40")](h)}_destroyController(t){const e=this[Cc("0x37")][Cc("0x5b")][Cc("0xa")](Cc("0x55")),n=this[Cc("0x37")][Cc("0x5b")][Cc("0xa")](Cc("0x0")),o=this[Cc("0x22")].get(t),s=o[Cc("0x67")],r=n[Cc("0x3d")](s);e[Cc("0x41")](s),r&&n[Cc("0x4c")](r),this[Cc("0x22")].delete(t),this._viewToController[Cc("0x61")](s),o[Cc("0xb")]()}[Cc("0x6c")](t){if(!t[Cc("0x65")]||!this[Cc("0x22")][Cc("0x60")](t))return;const e=this[Cc("0x37")].plugins.get(Cc("0x36")),n=this[Cc("0x22")][Cc("0xa")](t),o=t.getAllAdjacentSuggestions();n[Cc("0x67")][Cc("0x14")]=e[Cc("0x12")][Cc("0x30")](o)}[Cc("0xb")](){for(const t of this[Cc("0x22")].keys())this._destroyController(t);for(const t of this[Cc("0x5e")][Cc("0x9")]())t[Cc("0x4a")][Cc("0xb")]();super[Cc("0xb")]()}}var kc,Ac,vc=["TrackChanges","getSuggestion","addSuggestionData","get","editor","plugins","getSuggestions","requires","pluginName","adapter"];kc=vc,Ac=326,function(t){for(;--t;)kc.push(kc.shift())}(++Ac);var Rc=function(t,e){return vc[t-=0]};class Ic extends t.Plugin{static get[Rc("0x1")](){return[Wx,yc,"Comments"]}static get[Rc("0x2")](){return Rc("0x4")}set[Rc("0x3")](t){this.editor[Rc("0x9")][Rc("0x7")](Wx).adapter=t}get[Rc("0x3")](){return this[Rc("0x8")][Rc("0x9")][Rc("0x7")](Wx)[Rc("0x3")]}addSuggestion(t){return this[Rc("0x8")][Rc("0x9")][Rc("0x7")](Wx)[Rc("0x6")](t)}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[Rc("0x8")].plugins[Rc("0x7")](Wx)[Rc("0x0")]({skipNotAttached:t,toJSON:e})}[Rc("0x5")](t){return this.editor[Rc("0x9")][Rc("0x7")](Wx)[Rc("0x5")](t)}}const Sc=["_adapter","init","push","map","getRootNames","acceptAllSuggestions","reduce","function","set","getDataWithAcceptedSuggestions","constructor","getRootsAttributes","Users","get","TrackChangesDataGetter","pluginName","appendChild","trackChangesData","useAnonymousUser","data","div","result","getFullData","document","end","requires","Pagination","execute","addUser","TrackChangesData","destroy","plugins","TrackChangesEditing","editor","getSuggestions","getDataWithDiscardedSuggestions","rootsAttributes","getUser","trackChangesData.editorCreator","define","discardAllSuggestions","model","config"];var Lc,Nc;Lc=Sc,Nc=295,function(t){for(;--t;)Lc.push(Lc.shift())}(++Nc);const Mc=function(t,e){return Sc[t-=0]},wc=[Mc("0x20")];class Oc extends t.Plugin{static get[Mc("0x1f")](){return[Wx]}static get[Mc("0x15")](){return Mc("0x23")}init(){const t=this[Mc("0x27")];if(t[Mc("0x5")][Mc("0x2")](Mc("0x1"),(e=>{const n=t[Mc("0x4")][Mc("0x1d")][Mc("0xa")]()[Mc("0xc")](((t,e)=>(t[e]="",t)),{});return t[Mc("0x10")].create(n,e)})),Mc("0xd")!=typeof t[Mc("0x5")][Mc("0x13")](Mc("0x17")).editorCreator)throw new e.CKEditorError("track-changes-data-invalid-editor-creator")}[Mc("0xf")](t){return Dc(this[Mc("0x27")],!0,t)}[Mc("0x29")](t){return Dc(this[Mc("0x27")],!1,t)}}class Fc extends t.Plugin{static get[Mc("0x15")](){return Mc("0x14")}constructor(t){super(t),this[Mc("0x1b")]=Mc("0x1e")}[Mc("0x7")](){this[Mc("0x27")][Mc("0x25")][Mc("0x13")]("CommentsRepository")[Mc("0x6")]={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[Mc("0x27")][Mc("0x25")].get(Mc("0x26"))[Mc("0x6")]=null}}function Pc(t){return void 0!==t[Mc("0x11")]}async function Dc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,wc);o[Mc("0x25")][Mc("0x8")](Wx,Fc),o[Mc("0x2a")]=Pc(t)?t[Mc("0x11")]():void 0;const s=document.createDocumentFragment(),i=t[Mc("0x5")][Mc("0x13")](Mc("0x17")).editorCreator,a=await i(o,(()=>function(t){const e=document.createElement(Mc("0x1a"));return t[Mc("0x16")](e),e}(s)));!function(t,e){const n=t[Mc("0x4")].document[Mc("0xa")]().reduce(((e,n)=>(e[n]=t[Mc("0x19")].get({rootName:n}),e)),{}),o=t[Mc("0x25")].get("Users").users[Mc("0x9")]((t=>({id:t.id,name:t.name}))),s=t[Mc("0x25")][Mc("0x13")](Mc("0x26"))[Mc("0x28")]({skipNotAttached:!0,toJSON:!0}),r=e[Mc("0x25")][Mc("0x13")](Mc("0x12")),i=e[Mc("0x25")].get(Mc("0x26"));for(const t of o)r[Mc("0x0")](t.id)||r[Mc("0x22")](t);r.me||r[Mc("0x18")]();for(const t of s)i.addSuggestionData(t);e[Mc("0x19")][Mc("0xe")](n)}(t,a),a[Mc("0x21")](Mc(e?"0xb":"0x3"));const x=Pc(a)?a[Mc("0x1c")](n):a.data[Mc("0x13")](n);return await a[Mc("0x24")](),x}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|
|
5
|
+
*/(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var s=e[o];if(void 0!==s)return s.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>dc,TrackChanges:()=>Sc,TrackChangesData:()=>Oc,TrackChangesEditing:()=>Wa});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["_disableUnsupportedCommands","editor","_enabledCommands","isEnabled","commands","_enableCommands","execute","_isEnabledBasedOnSelection","refresh","value","has","forceDisabled","TrackChangesCommand","affectsData","clearForceDisabled"];var c,l;c=a,l=399,function(t){for(;--t;)c.push(c.shift())}(++l);const d=function(t,e){return a[t-=0]};class u extends t.Command{constructor(t,e){super(t),this._enabledCommands=e,this[d("0x0")]=!1,this[d("0xe")](),this[d("0xd")]=!1}[d("0xe")](){this[d("0x9")]=!0}[d("0xc")](){this[d("0x0")]=!this[d("0x0")],this.value?this[d("0x6")]():this[d("0xb")]()}[d("0x6")](){for(const t of this[d("0x7")].commands[d("0xa")]())t[d("0x4")]&&!this._enabledCommands[d("0x1")](t)&&t[d("0x2")](d("0x3"))}[d("0xb")](){for(const t of this[d("0x7")][d("0xa")][d("0xa")]())t[d("0x4")]&&!this[d("0x8")][d("0x1")](t)&&t[d("0x5")](d("0x3"))}}const g=["model","isEnabled","acceptSuggestion","_suggestions","get","getRanges","editor","_isEnabledBasedOnSelection","TrackChangesEditing","execute","track-changes-accept-suggestion-not-found"];var m,f;m=g,f=172,function(t){for(;--t;)m.push(m.shift())}(++f);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[h("0x7")]=e,this.refresh(),this[h("0x0")]=!1}refresh(){this[h("0x5")]=!0}[h("0x2")](t){const n=this[h("0x7")][h("0x8")](t);if(!n)throw new e.CKEditorError(h("0x3"),this);const o=n[h("0x9")]();this[h("0xa")][h("0x4")].canEditAt(o)&&this[h("0xa")].plugins[h("0x8")](h("0x1"))[h("0x6")](n)}}const b=["editor","refresh","get","canEditAt","model","execute","_suggestions","isEnabled","track-changes-discard-suggestion-not-found","_isEnabledBasedOnSelection","plugins"];var E,_;E=b,_=158,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class C extends t.Command{constructor(t,e){super(t),this._suggestions=e,this[T("0x8")](),this[T("0x5")]=!1}[T("0x8")](){this[T("0x3")]=!0}[T("0x1")](t){const n=this[T("0x2")][T("0x9")](t);if(!n)throw new e.CKEditorError(T("0x4"),this);const o=n.getRanges();this.editor[T("0x0")][T("0xa")](o)&&this[T("0x7")][T("0x6")].get("TrackChangesEditing").discardSuggestion(n)}}const y=["isMultiRange","from","execute","next","getRanges","end","type","isArray","createPositionAt","splice","isTouching","join","replace","schema"," [color ","createPositionAfter","sort","isIntersecting","map","createPositionBefore","length","deletion","change","color","push","isCollapsed","isObject","isInContent"];var k,A;k=y,A=231,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x9")](((t,e)=>"deletion"==t[v("0x1b")]&&v("0xe")!=e[v("0x1b")]?-1:v("0xe")!=t[v("0x1b")]&&"deletion"==e[v("0x1b")]?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0x6")];for(;o<t[v("0xd")];){const i=t[o],x=t[o+1];n||(n=e[v("0xc")](i)),I(e,i,x)||(s[v("0x11")](e.createRange(n,r[v("0x13")](i)?e.createPositionAfter(i):e[v("0x1")](i,v("0x1a")))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0x8")](e),s=t[v("0xc")](n);return o[v("0x3")](s)}function L(t,e,n){for(;n.length;){const o=n[v("0x2")](0,100);t[v("0xf")]((()=>{for(const t of o)t[v("0x14")]&&e[v("0x17")](t.id)}))}}const N=["getRanges","model","_suggestions","_command","values","isEnabled","editor","from","canEditAt","refresh","execute","some"];var M,w;M=N,w=137,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("0xa")]=e,this[O("0x9")]=n,this[O("0x4")](),this._isEnabledBasedOnSelection=!1}[O("0x4")](){const t=Array[O("0x2")](this._suggestions[O("0xb")]())[O("0x6")]((t=>t.isInContent));this[O("0x0")]=this[O("0xa")][O("0x0")]&&t}[O("0x5")](){const t=R(Array[O("0x2")](this._suggestions[O("0xb")]()));for(const e of t){const t=e[O("0x7")]();if(!this[O("0x1")][O("0x8")][O("0x3")](t))return}L(this[O("0x1")][O("0x8")],this[O("0xa")],t)}}const P=["execute","_isEnabledBasedOnSelection","editor","document","isEnabled","size","model","_command","_selectedSuggestions","canEditAt","selection","values","refresh"];var D,B;D=P,B=137,function(t){for(;--t;)D.push(D.shift())}(++B);const j=function(t,e){return P[t-=0]};class U extends t.Command{constructor(t,e,n){super(t),this[j("0x0")]=e,this._suggestions=n,this[j("0x1")]=new Set,this[j("0x5")](),this[j("0x7")]=!1}refresh(){const t=this[j("0x8")][j("0xc")][j("0x9")][j("0x3")],e=Array.from(this._suggestions[j("0x4")]());this[j("0x1")]=function(t,e){const n=Array[v("0x16")](t[v("0x19")]()),o=new Set;for(const s of e)if(s.isInContent)for(const e of n)for(const n of s[v("0x19")]())(e[v("0xa")](n)||t[v("0x12")]&&!s[v("0x15")]&&s[v("0x18")]&&n[v("0x1a")][v("0x3")](e.start))&&o.add(s);return o}(t,e),this.isEnabled=this[j("0x0")][j("0xa")]&&!!this._selectedSuggestions[j("0xb")]}[j("0x6")](){const t=R(Array.from(this[j("0x1")]));for(const e of t){const t=e.getRanges();if(!this[j("0x8")][j("0xc")][j("0x2")](t))return}L(this.editor.model,this[j("0x0")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const z=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var W=Array.prototype.splice;const V=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():W.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=z(e,t);return n<0?void 0:e[n][1]};const q=function(t){return z(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=z(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const J=$;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const dt=function(t){return lt.call(t)};var ut=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ut&&ut in Object(t)?ct(t):dt(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const It=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=It(t,e);return St(n)?n:void 0};const Nt=Lt(ot,"Map");const Mt=Lt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=wt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Wt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=Wt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Wt(this,t).get(t)};const qt=function(t){return Wt(this,t).has(t)};const Xt=function(t,e){var n=Wt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,de=ce.propertyIsEnumerable;const ue=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!de.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Se=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Ie=Se&&Se.isTypedArray;const Le=Ie?ke(Ie):ye;var Ne=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&ue(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const We=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?Me(t,!0):We(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Je=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const dn=function(t){return ln(t,Ue,on)};const un=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const Sn=Rn;var In=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&In.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Wn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Vn=Se&&Se.isMap;const Kn=Vn?ke(Vn):Wn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?ke(Xn):qn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var d=ge(e);if(d){if(x=Ln(e),!a)return Ze(e,x)}else{var u=Sn(e),g=u==Qn||"[object GeneratorFunction]"==u;if(be(e))return Qe(e,a);if(u==Zn||u==Jn||g&&!r){if(x=c||g?{}:zn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[u])return r?e:{};x=Un(e,u,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),$n(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var f=d?void 0:(l?c?un:dn:c?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=po(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var d=-1,u=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++d<x;){var m=t[d],f=e[d];if(o)var h=i?o(f,m,d,e,t,r):o(m,f,d,t,e,r);if(void 0!==h){if(h)continue;u=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){u=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){u=!1;break}}return r.delete(t),r.delete(e),u};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const Mo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=So;case"[object Set]":var a=1&o;if(x||(x=Io),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=dn(t),a=x.length;if(a!=dn(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:wo.call(e,l)))return!1}var d=r.get(t),u=r.get(e);if(d&&u)return d==e&&u==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===p?f===h||s(f,h,n,o,r):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po:Sn(t),c=x?Po:Sn(e),l=(a=a==Fo?Do:a)==Do,d=(c=c==Fo?Do:c)==Do,u=a==c;if(u&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(u&&!l)return r||(r=new Yt),i||Le(t)?Ro(t,e,n,o,s,r):Mo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=d&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!u&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const zo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const Wo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Vo=function(t,e){return e.length<2?t:zo(t,Wo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Vo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["getContainedElement","previous","addRange","@external","isMultiRange","_onDiscard","getItems","split","getRange","head","toJSON","map","isIntersecting","next","discard","push","set","addMarker","change","size","get","createdAt","type","addMarkerName","_isDataLoaded","_onAttributesChange","_markerNames","getMarkerNames","_saved","getRanges","creator","hasComments","end","removeMarker","getMultiRangeId","clear","delete","attributes","removeMarkers","getMarkers","length","onAccept","author","markers","filter","isExternal","commentThread","data","decorate","accept","subType","from","_model","onAttributesChange","removeAttribute","getFirstMarker","nodeBefore","getAllAdjacentSuggestions","isInContent","add"];var $o,Jo;$o=Xo,Jo=247,function(t){for(;--t;)$o.push($o.shift())}(++Jo);const Qo=function(t,e){return Xo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Qo("0x11")]=!1,this.id=e.id,this[Qo("0xf")]=e[Qo("0xf")],this.subType=e.subType||null,this[Qo("0x23")]=e.author,this[Qo("0x17")]=e.creator||e[Qo("0x23")],this[Qo("0x26")]=Boolean(e[Qo("0x1e")]&&e[Qo("0x1e")][Qo("0x38")]),this[Qo("0x28")]=null,this[Qo("0x2d")]=t,this._onAccept=e[Qo("0x22")],this[Qo("0x3a")]=e.onDiscard,this[Qo("0x12")]=e[Qo("0x2e")],this[Qo("0x13")]=new Set,this.createdAt=null,this.set("authoredAt",null),this[Qo("0x9")](Qo("0x1e"),e[Qo("0x1e")]||{}),this.set("previous",null),this[Qo("0x9")]("next",null),this[Qo("0x9")](Qo("0x27"),null),this[Qo("0x9")](Qo("0x15"),!1),this[Qo("0x29")](Qo("0x2a")),this[Qo("0x29")]("discard")}get[Qo("0x2")](){let t=this;for(;t[Qo("0x36")];)t=t[Qo("0x36")];return t}get[Qo("0x18")](){return!!this[Qo("0x27")]&&this[Qo("0x27")][Qo("0x21")]>0}get[Qo("0x39")](){return 0!=this[Qo("0x13")][Qo("0xc")]&&6==Array[Qo("0x2c")](this[Qo("0x13")])[0][Qo("0x0")](":")[Qo("0x21")]}get[Qo("0x33")](){return null!==this[Qo("0x30")]()}[Qo("0x10")](t){this[Qo("0x13")][Qo("0x34")](t)}getMarkerNames(){return Array[Qo("0x2c")](this[Qo("0x13")])}getMarkers(){return this[Qo("0x14")]().map((t=>this._model[Qo("0x24")][Qo("0xd")](t)))[Qo("0x25")]((t=>t))}getFirstMarker(){return this[Qo("0x20")]()[0]||null}removeMarkers(){this[Qo("0x2d")][Qo("0xb")]((t=>{for(const e of this.getMarkers())t[Qo("0x1a")](e)})),this[Qo("0x13")][Qo("0x1c")]()}[Qo("0x1a")](t){this[Qo("0x2d")].change((e=>{e.removeMarker(t)})),this[Qo("0x13")][Qo("0x1d")](t)}[Qo("0x37")](t){const e="suggestion:"+this.type+":"+this[Qo("0x2b")]+":"+this.id+":"+this[Qo("0x17")].id+":"+Zo[Qo("0x1b")]();this[Qo("0x10")](e),this._model.change((n=>{n[Qo("0xa")](e,{range:t,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(t){for(const e of this[Qo("0x16")]())if(e[Qo("0x5")](t))return!0;return!1}[Qo("0x16")](){return this[Qo("0x20")]()[Qo("0x4")]((t=>t[Qo("0x1")]()))}[Qo("0x3b")](){return this[Qo("0x16")]().reduce(((t,e)=>[...t,...e[Qo("0x3b")]()]),[])}getFirstRange(){var t;return(null===(t=this.getFirstMarker())||void 0===t?void 0:t[Qo("0x1")]())||null}[Qo("0x35")](){const t=this.getRanges();if(1!=t.length)return null;const e=t[0],n=e.start.nodeAfter,o=e[Qo("0x19")][Qo("0x31")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0x2a")](){this._onAccept(this.getRanges(),this[Qo("0x28")],this[Qo("0x1e")]),this[Qo("0x1f")]()}[Qo("0x7")](){this[Qo("0x3a")](this[Qo("0x16")](),this[Qo("0x28")],this[Qo("0x1e")]),this[Qo("0x1f")]()}[Qo("0x32")](){const t=[];let e=this.head;for(;e;)t[Qo("0x8")](e),e=e[Qo("0x6")];return t}setAttribute(t,e){const n=eo(this.attributes);_o(n,t,e),Go(n,this[Qo("0x1e")])||(this[Qo("0x1e")]=n,this[Qo("0x12")](n))}[Qo("0x2f")](t){const e=eo(this[Qo("0x1e")]);qo(e,t),Go(e,this[Qo("0x1e")])||(this[Qo("0x1e")]=e,this[Qo("0x12")](this[Qo("0x1e")]))}[Qo("0x3")](){return{id:this.id,type:this[Qo("0x2b")]?this.type+":"+this[Qo("0x2b")]:this[Qo("0xf")],authorId:this[Qo("0x17")].id,createdAt:this[Qo("0xe")],hasComments:this[Qo("0x18")],data:this[Qo("0x28")],attributes:this[Qo("0x1e")]}}static[Qo("0x1b")](){return(0,e.uid)().substr(1,5)}}function Yo(t,e,n){const o=t.t;switch(e){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* change table properties":return o("*Format:* change table properties");case"*Format:* change table cell properties":return o("*Format:* change table cell properties");case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Format:* replace image URL":return o("*Format:* replace image URL");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set format to:* %0":return o("*Set format to:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return o({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return o({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return o({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);default:return e}}const ts=["label","isEqual","pop","_customCallbacks","replace","skip","*Merge:* %0","end","*Remove:* %0","_locale","registerElementLabel","isEmpty","_addDescriptionItems","length","insertion","ELEMENT_SPACE","push","removeContainer","isObject","getFirstRange","isInContent","text","element","match","set","get","REPLACE_TEXT","type","*Split:* %0","Container","$text","getWalker","elementEnd","*Insert:* %0","_itemLabels","indexOf","$1 $2","removeEmptyContainer","normal","name","start","quantity","softBreak","nextSibling","$textProxy","previousSibling","EmptyContainer","_schema","_resolveDescriptionItems","addEmptyContainer","removeObject","getItemLabel","getDescriptions","data","remove","deletion","add","addObject","Object","_itemLabelsCallbacks"];var es,ns;es=ts,ns=335,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class ss{constructor(t,e){this[os("0x1c")]=[],this[os("0x3b")]=new Map,this[os("0x18")]=[],this[os("0xc")]=t,this[os("0x22")]=e}[os("0x11")](t){const e=[];for(let n=0;n<t[os("0x26")];n++){const o=t[n];if(!o[os("0x2d")])continue;let s=!1;for(const t of this._customCallbacks){const n=t(o);if(n){os("0x34")in n&&e.push(n),s=!0;break}}if(!s){this[os("0x25")](e,o);const s=t[n+1];if(s&&!o[os("0x2c")]()[os("0x20")][os("0x1a")](s[os("0x2c")]()[os("0x5")])){const t=e[e.length-1],n="insertion"==o[os("0x34")]?os("0x15"):os("0x13");t&&os("0x2e")==t[os("0x34")]&&(t[n]+="\n")}}}return this._resolveDescriptionItems(e)}registerDescriptionCallback(t){this[os("0x1c")].push(t)}[os("0x23")](t,n,o=e.priorities[os("0x3")]){"function"==typeof t?(0,e.insertToPriorityArray)(this._itemLabelsCallbacks,{matchingCallback:t,label:n,priority:o}):this._itemLabels[os("0x31")](t,n)}[os("0x10")](t,e=1){let n;for(const e of this[os("0x18")])if(e.matchingCallback(t)){n=e[os("0x19")];break}return n||(n=this._itemLabels[os("0x32")](t[os("0x4")])),n?n(e):1!==e?e+" "+t.name+"s":""+t[os("0x4")]}_addDescriptionItems(t,e){const n=e.getFirstRange()[os("0x38")](),o=os("0x27")==e[os("0x34")]?os("0x15"):os("0x13");for(const e of n){const s=e.item,r=t[t[os("0x26")]-1];if(s.is(os("0x9")))r&&r.type[os("0x0")](os("0x36"))>-1&&t[os("0x1b")](),r&&"text"==r[os("0x34")]?r[o]+=s.data:t.push({type:os("0x2e"),add:os("0x15")==o?s[os("0x12")]:"",remove:os("0x13")==o?s[os("0x12")]:""});else if(this[os("0xc")][os("0x2b")](s)){const i=s;if(r&&r[os("0x34")][os("0x0")]("Container")>-1&&t[os("0x1b")](),os("0x39")==e.type)continue;r&&r[os("0x34")]==o+os("0x17")&&r[os("0x2f")][os("0x4")]==i.name?r[os("0x6")]++:t[os("0x29")]({type:o+os("0x17"),element:i,quantity:1}),n[os("0x1e")]((t=>!(os("0x39")==t.type&&t.item==s)))}else if(this[os("0xc")].checkChild(s,os("0x37"))||s.is(os("0x2f"),os("0x7"))){const n=s;if(os("0x15")==o&&"elementStart"==e.type||os("0x13")==o&&os("0x39")==e[os("0x34")])continue;if(r&&-1==r[os("0x34")][os("0x0")](os("0x36"))){os("0x2e")==r.type&&(r[o]+="\n");continue}let i;if(i=os("0x15")==o?n[os("0x8")]&&!this._schema[os("0x2b")](n[os("0x8")])?n[os("0x8")]:null:n.previousSibling&&!this[os("0xc")][os("0x2b")](n[os("0xa")])?n[os("0xa")]:null,n[os("0x24")]||i&&i[os("0x24")]){const e=i&&i[os("0x24")]?i:n;r&&r[os("0x34")]==o+os("0xb")&&r[os("0x2f")].name==e[os("0x4")]?r[os("0x6")]++:t[os("0x29")]({type:o+"EmptyContainer",element:e,quantity:1})}else t[os("0x29")]({type:o+os("0x36"),element:n})}}}[os("0xd")](t){const e=this[os("0x22")],n=[];for(const o of t){switch(o.type){case os("0x2e"):if(o[os("0x15")]=o.add.replace(/(\S)\u000A+(\S)/g,os("0x1"))[os("0x1d")](/\u000A/g,""),o[os("0x13")]=o.remove[os("0x1d")](/(\S)\u000A+(\S)/g,os("0x1"))[os("0x1d")](/\u000A/g,""),""!=o[os("0x15")]&&""!=o[os("0x13")]){n[os("0x29")]({type:os("0x1d"),content:Yo(e,os("0x33"),['"'+o.remove+'"','"'+o[os("0x15")]+'"'])});continue}if(null!=o.add[os("0x30")](/^ +$/)){n[os("0x29")]({type:"insertion",content:Yo(e,os("0x3a"),Yo(e,os("0x28"),o.add[os("0x26")]))});continue}if(null!=o[os("0x13")].match(/^ +$/)){n[os("0x29")]({type:os("0x14"),content:Yo(e,os("0x21"),Yo(e,"ELEMENT_SPACE",o[os("0x13")][os("0x26")]))});continue}if(""!=o[os("0x15")]){n[os("0x29")]({type:os("0x27"),content:Yo(e,os("0x3a"),'"'+o[os("0x15")]+'"')});continue}n[os("0x29")]({type:os("0x14"),content:Yo(e,os("0x21"),'"'+o[os("0x13")]+'"')});continue;case os("0xe"):case os("0x16"):n[os("0x29")]({type:os("0x27"),content:Yo(e,os("0x3a"),this[os("0x10")](o[os("0x2f")],o[os("0x6")]))});continue;case os("0x2"):case os("0xf"):n[os("0x29")]({type:os("0x14"),content:Yo(e,"*Remove:* %0",this[os("0x10")](o[os("0x2f")],o[os("0x6")]))});continue;case"addContainer":n[os("0x29")]({type:"insertion",content:Yo(e,os("0x35"),this[os("0x10")](o.element,o.quantity))});continue;case os("0x2a"):n[os("0x29")]({type:os("0x14"),content:Yo(e,os("0x1f"),this[os("0x10")](o[os("0x2f")],o.quantity))});continue}n[os("0x29")](o)}return n}}const rs=["document","getSelectedBlocks","getAttribute","editor","_descriptionFactory","registerDescriptionCallback","left","contentLanguageDirection","ltr","format","checkAttribute","plugins","commandParams","selection","change","value","model","FORMAT_ALIGN_TO_CENTER","enableCommand","schema","commandName","locale","has","alignment","TrackChangesEditing","afterInit","markBlockFormat","FORMAT_ALIGN_TO_RIGHT","from"];var is,xs;is=rs,xs=229,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x1c")](){const t=this[as("0x6")],e=t[as("0x18")];if(!t.plugins[as("0x19")]("AlignmentEditing"))return;const n=t[as("0xe")].get(as("0x1b"));n[as("0x15")]("alignment",((e,o={})=>{let s=o[as("0x12")];o.value||(s=as("0xb")===t[as("0x18")][as("0xa")]?as("0x9"):"right");const r=Array[as("0x2")](this.editor.model[as("0x3")][as("0x10")][as("0x4")]()).filter((t=>function(t,e,n){const o=t[as("0x5")](as("0x1a"))||null;return e[as("0xd")](t,as("0x1a"))&&n!=o}(t,this[as("0x6")].model[as("0x16")],s)));t[as("0x13")][as("0x11")]((()=>{for(const t of r)n[as("0x0")](t,{commandName:as("0x1a"),commandParams:[{value:s}]})}))})),n[as("0x7")][as("0x8")]((t=>{const{data:n}=t;if(n&&as("0x1a")==n[as("0x17")]){const t=n[as("0xf")][0][as("0x12")];return{type:as("0xc"),content:Yo(e,"*Format:* %0",function(t){switch(t){case"left":return Yo(e,"FORMAT_ALIGN_TO_LEFT");case"right":return Yo(e,as("0x1"));case"center":return Yo(e,as("0x14"));case"justify":return Yo(e,"FORMAT_JUSTIFY_TEXT")}}(t))}}}))}}const ls=["type","ck-suggestion-marker-","parent","isAtEnd","listItem","writer","isLimit","markerName","isBlock","test","addClass","markerRange","previousPosition","consumable","elementEnd","hasAttribute","getWalker","mapper","name","nextSibling","listIndent","TrackChangesEditing","getCustomProperty","getItems","insert","isContent","includes","plugins","schema","element","push","get","bindElementToMarker","createRangeOn"];var ds,us;ds=ls,us=488,function(t){for(;--t;)ds.push(ds.shift())}(++us);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e[gs("0xb")]())s[gs("0x3")](t)&&o.push(n[gs("0x15")](s));return o}function fs(t){const e=[];if(t.is(gs("0x11"),gs("0x1a"))){let n=t[gs("0x7")];for(;n&&n.is(gs("0x11"),gs("0x1a"))&&n.getAttribute(gs("0x8"))>0;)e[gs("0x12")](n),n=n[gs("0x7")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t[gs("0xf")][gs("0x13")](gs("0x9"));return(s,r,i)=>{if(!i[gs("0x1")][gs("0x1f")](r.markerRange,s[gs("0x6")]))return;const x=r[gs("0x21")][gs("0x4")](),a=r[gs("0x21")].start,c=t.model[gs("0x10")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t.item;u=u||c[gs("0xd")](e);const n=i[gs("0x5")].toViewElement(e);if(n&&n[gs("0xa")]("addHighlight"))return;gs("0x2")==t[gs("0x16")]&&c[gs("0x1e")](e)&&!c[gs("0x1c")](e)&&(e[gs("0x7")]||a[gs("0x19")]?l&&l[gs("0x18")]==e||(l=e,m(t[gs("0x0")]),g=!0):d=d||t[gs("0x0")])}function m(t){const s=i[gs("0x1b")].createUIElement("span",{class:gs("0x17")+e}),x=i[gs("0x5")].toViewPosition(t);n&&o.activeMarkers[gs("0xe")](r[gs("0x1d")])&&i[gs("0x1b")][gs("0x20")]("ck-suggestion-marker--active",s),i[gs("0x1b")][gs("0xc")](x,s),i[gs("0x5")][gs("0x14")](s,r[gs("0x1d")])}u||g||!d||m(d)}}const ps=["FORMAT_CODE","forceValue","strikethrough","value","FORMAT_STRIKETHROUGH","FORMAT_SUBSCRIPT","getRanges","editor","SuperscriptEditing","TrackChangesEditing","SubscriptEditing","locale","FORMAT_ITALIC","superscript","italic","document","toLowerCase","underline","format","subscript","*Remove format:* %0","BoldEditing","from","*Format:* %0","FORMAT_UNDERLINE","ItalicEditing","StrikethroughEditing","slice","change","registerDescriptionCallback","FORMAT_SUPERSCRIPT","selection","get","CodeEditing","plugins","markInlineFormat"];var bs,Es;bs=ps,Es=431,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=[_s("0x16"),_s("0x1a"),"UnderlineEditing",_s("0x22"),_s("0x1b"),_s("0xb"),_s("0x9")];class Cs extends t.Plugin{afterInit(){const t=this[_s("0x8")],e=t.model,n=t[_s("0x23")].get(_s("0xa")),o=t[_s("0xc")];for(const o of Ts){if(!t[_s("0x23")].has(o))continue;const s=o[_s("0x1c")](0,-7)[_s("0x11")](),r=t.commands[_s("0x21")](s);n.enableCommand(s,((t,o={})=>{const i=e[_s("0x10")][_s("0x20")];if(i.isCollapsed)return void t(o);const x=void 0!==o.forceValue?o[_s("0x2")]:!r[_s("0x4")];e[_s("0x1d")]((()=>{const t=Array[_s("0x17")](i[_s("0x7")]());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n[_s("0x0")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n._descriptionFactory[_s("0x1e")]((n=>{const{data:s}=n;if(s&&s.commandName===t)return s.commandParams[0].forceValue?{type:"format",content:Yo(o,_s("0x18"),e)}:{type:_s("0x13"),content:Yo(o,_s("0x15"),e)}}))}s("bold",Yo(o,"FORMAT_BOLD")),s(_s("0xf"),Yo(o,_s("0xd"))),s(_s("0x12"),Yo(o,_s("0x19"))),s("code",Yo(o,_s("0x1"))),s(_s("0x3"),Yo(o,_s("0x5"))),s(_s("0x14"),Yo(o,_s("0x6"))),s(_s("0xe"),Yo(o,_s("0x1f")))}}const ys=["plugins","document","has","schema","value","*Remove format:* %0","parent","change","editor","ELEMENT_BLOCK_QUOTE","getSelectedBlocks","locale","from","forceValue","selection","checkChild","blockQuote","afterInit","name","filter","registerDescriptionCallback","$root","format","enableCommand","*Format:* %0","BlockQuoteEditing","get","model","commands"];var ks,As;ks=ys,As=227,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0x16")](){const t=this[vs("0xd")],e=t[vs("0x10")];if(!t[vs("0x5")][vs("0x7")](vs("0x1")))return;const n=t[vs("0x5")][vs("0x2")]("TrackChangesEditing"),o=this.editor[vs("0x4")][vs("0x2")](vs("0x15"));n[vs("0x1c")]("blockQuote",((e,s={})=>{const r=this[vs("0xd")].model[vs("0x6")][vs("0x13")],i=s&&void 0!==s[vs("0x12")]?s.forceValue:!o[vs("0x9")];let x=[];if(i){const e=Array.from(r[vs("0xf")]())[vs("0x18")]((t=>Ss(t)||function(t,e){const n=e[vs("0x14")](t[vs("0xb")],vs("0x15")),o=e[vs("0x14")]([vs("0x1a"),vs("0x15")],t);return n&&o}(t,this[vs("0xd")][vs("0x3")][vs("0x8")])));x=S(e,t[vs("0x3")])}else{const e=Array[vs("0x11")](r[vs("0xf")]())[vs("0x18")]((t=>Ss(t)));x=S(e,t[vs("0x3")])}t.model[vs("0xc")]((()=>{for(const t of x)n.markBlockFormat(t,{commandName:vs("0x15"),commandParams:[{forceValue:i}]})}))})),n._descriptionFactory[vs("0x19")]((t=>{const{data:n}=t;if(n&&vs("0x15")==n.commandName){const t=Yo(e,vs("0xe"));return n.commandParams[0].forceValue?{type:vs("0x1b"),content:Yo(e,vs("0x0"),t)}:{type:"format",content:Yo(e,vs("0xa"),t)}}}))}}function Ss(t){return vs("0x15")==t.parent[vs("0x17")]}const Is=["get","ckbox","TrackChangesEditing","plugins","editor","commands","afterInit"];var Ls,Ns;Ls=Is,Ns=198,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const Ms=function(t,e){return Is[t-=0]};class ws extends t.Plugin{[Ms("0x4")](){const t=this[Ms("0x2")];t[Ms("0x3")][Ms("0x5")](Ms("0x6"))&&t[Ms("0x1")].get(Ms("0x0")).enableCommand(Ms("0x6"))}}const Os=["editor","*Format:* %0","codeBlock","ELEMENT_CODE_BLOCK","formatBlock","model","registerElementLabel","selection","_descriptionFactory","label","get","config","commandParams","forceValue","getSelectedBlocks","language","commands","checkChild","rootElement","markBlockFormat","languages","outdentCodeBlock","plugins","enableCommand","commandName","schema","filter","*Remove format:* %0","blockName","has","CodeBlock","name","from","value","format","document","TrackChangesEditing"];var Fs,Ps;Fs=Os,Ps=197,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{afterInit(){const t=this[Ds("0x19")];if(!t[Ds("0xa")][Ds("0x11")](Ds("0x12")))return;const e=t[Ds("0xa")][Ds("0x23")](Ds("0x18")),n=t.locale,o=t[Ds("0x24")][Ds("0x23")](Ds("0x1b"))[Ds("0x8")],s=t[Ds("0x4")][Ds("0x23")](Ds("0x1b"));e[Ds("0xb")]("indentCodeBlock"),e[Ds("0xb")](Ds("0x9")),e[Ds("0xb")]("codeBlock",((n,r={})=>{const i=t[Ds("0x1e")],x=t.model[Ds("0x17")][Ds("0x20")],a=r&&void 0!==r[Ds("0x1")]?r[Ds("0x1")]:!s[Ds("0x15")];let c;r[Ds("0x3")]||(r[Ds("0x3")]=o[0][Ds("0x3")]),c=a?Array[Ds("0x14")](x.getSelectedBlocks())[Ds("0xe")]((t=>{return js(t)||(e=t,n=i[Ds("0xd")],!e.is(Ds("0x6"))&&!n.isLimit(e)&&n[Ds("0x5")](e.parent,Ds("0x1b")));var e,n})):Array.from(x[Ds("0x2")]()).filter((t=>js(t)));const l=S(c,i);i.change((()=>{for(const t of l)e[Ds("0x7")](t,{commandName:Ds("0x1b"),commandParams:[{...r,forceValue:a}],formatGroupId:Ds("0x10")})}))})),e[Ds("0x21")][Ds("0x1f")]("codeBlock",(t=>Yo(n,Ds("0x1c"),t))),e[Ds("0x21")].registerDescriptionCallback((t=>{const e=n.t,{type:s,data:r}=t;if(Ds("0x1d")==s&&r&&Ds("0x1b")==r[Ds("0xc")]){const t=r.commandParams[0][Ds("0x3")],s=e(o.find((e=>e[Ds("0x3")]===t))[Ds("0x22")]);return r[Ds("0x0")][0][Ds("0x1")]?{type:Ds("0x16"),content:Yo(n,Ds("0x1a"),Yo(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:Ds("0x16"),content:Yo(n,Ds("0xf"),Yo(n,Ds("0x1c"),1))}}}))}}function js(t){return Ds("0x1b")==t[Ds("0x13")]}const Us=["editor","plugins","get","enableCommand","addCommentThread","TrackChangesEditing"];var Gs,Hs;Gs=Us,Hs=415,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const zs=function(t,e){return Us[t-=0]};class Ws extends t.Plugin{afterInit(){const t=this[zs("0x5")];t[zs("0x0")].has("CommentsEditing")&&t.plugins[zs("0x1")](zs("0x4"))[zs("0x2")](zs("0x3"))}}var Vs=n(181);const Ks=["batch","end","init","enqueueChange","unbindElementFromMarkerName","plugins","model","high","addMarker:suggestion:deletion","options","fromRange","lock","unlock","requires","delete","get","merge","createSelection","markerNameToElements","uiElement","createRange","getFirstRange","unit","selection","root","editing","downcastDispatcher","bind","commands","remove","removeMarker:suggestion:deletion","writer","markerName","deleteForward","start","setSelection","forward","buffer","enableCommand","isCollapsed"];var qs,Xs;qs=Ks,Xs=486,function(t){for(;--t;)qs.push(qs.shift())}(++Xs);const $s=function(t,e){return Ks[t-=0]};class Js extends t.Plugin{static get[$s("0x7")](){return[Vs.Delete]}[$s("0x24")](){const t=this.editor,e=t[$s("0x27")].get("TrackChangesEditing");e[$s("0x20")]($s("0x8"));const n=t[$s("0x16")][$s("0x9")]($s("0x1b"));e.enableCommand("deleteForward",((e,o={})=>{const s=t.model[$s("0xb")](t[$s("0x0")].document[$s("0x11")]);s[$s("0x21")]&&t[$s("0x0")].modifySelection(s,{direction:$s("0x1e"),unit:o[$s("0x10")]});const r=s[$s("0xf")](),x=i.LiveRange[$s("0x4")](r);let a;e(o),a="$graveyard"==x[$s("0x12")].rootName?t[$s("0x0")][$s("0xe")](r.start):t[$s("0x0")][$s("0xe")](x[$s("0x1c")],x[$s("0x23")]),x.detach(),t[$s("0x0")][$s("0x25")](n.buffer[$s("0x22")],(t=>{n.buffer[$s("0x5")](),t[$s("0x1d")](t.createRange(a.end)),n[$s("0x1f")][$s("0x6")]()}))})),t[$s("0x13")].downcastDispatcher.on($s("0x2"),hs(t,"merge"),{priority:$s("0x1")}),t.data[$s("0x14")].on("addMarker:suggestion:deletion",((e,n,o)=>{o[$s("0x3")].showSuggestionHighlights&&hs(t,$s("0xa"),{showActiveMarker:!1})[$s("0x15")](this)(e,n,o)}),{priority:$s("0x1")}),t[$s("0x13")].downcastDispatcher.on($s("0x18"),((t,e,n)=>{const o=n.mapper[$s("0xc")](e[$s("0x1a")]);if(o)for(const t of o)t.is($s("0xd"))&&(n.mapper[$s("0x26")](t,e[$s("0x1a")]),n[$s("0x19")][$s("0x17")](t))}),{priority:$s("0x1")})}}const Qs=["commandParams","commands","from","plugins","DocumentListUtils","end","getFirstRange","afterInit","markMultiRangeBlockFormat","isFirstBlockOfListItem","before","expandListBlocksToCompleteList","has","registerDescriptionCallback","commandName","listIndent","push","value","accept","forceValue","enableCommand","previousSibling","containsItem","parent","createRange","createPositionAt","model","splitListItemBefore","indentList","getAttribute","documentList","*Change to:* %0","refresh","ELEMENT_NUMBERED_LIST","hasAttribute","numberedList","listType","get","_descriptionFactory","ELEMENT_BULLETED_LIST","detach","change","markBlockFormat","DocumentListEditing","outdentList","mergeListItemForward","selection","schema","add","locale","ELEMENT_LIST_ITEM","splitListItemAfter","multipleBlocks","ELEMENT_","format","listItemId","registerCustomCallback","isObject","document","editor","registerElementLabel","*Format:* remove from %0","*Indent:* %0","mergeListItemBackward","fromRange","execute","getSelectedBlocks","nextSibling","toUpperCase","setSelection","start","nodeAfter"];var Zs,Ys;Zs=Qs,Ys=288,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0x7")](){const t=this[tr("0x3b")];if(!t[tr("0x3")][tr("0xc")](tr("0x2b")))return;const e=t[tr("0x31")],n=t.plugins.get("TrackChangesEditing"),o=t[tr("0x3")][tr("0x25")](tr("0x4"));function s(e){return()=>{const s=t[tr("0x1")][tr("0x25")](e);let r=Array.from(t.model[tr("0x3a")][tr("0x2e")][tr("0x42")]());if(a(e)){r=o[tr("0xb")](r);const t=[];for(const e of r)o[tr("0x9")](e)&&t[tr("0x10")](e);r=t}t[tr("0x1a")][tr("0x29")]((()=>{n[tr("0x8")](r,{commandName:e,commandParams:[{forceValue:!s[tr("0x11")]}],formatGroupId:tr("0x24")},[],tr("0x1e"))}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0x2")](t);const n=e.findIndex((t=>!t[tr("0x22")](tr("0x37"))));return n>-1&&(e=e.slice(0,n)),e}(t[tr("0x1a")][tr("0x3a")][tr("0x2e")].getSelectedBlocks()),s=o[o.length-1],r=t[tr("0x1a")][tr("0x2f")][tr("0x39")](s)?"after":tr("0x5"),i=t[tr("0x1a")].createRange(t[tr("0x1a")][tr("0x19")](o[0],tr("0xa")),t[tr("0x1a")][tr("0x19")](s,r));t[tr("0x1a")][tr("0x29")]((()=>{n.markBlockFormat(i,{commandName:e,commandParams:[],formatGroupId:tr("0x24")},function(t){const e=new Set;for(const n of t){let t=n[tr("0x43")];for(;t&&t[tr("0x1d")]("listIndent")>n[tr("0x1d")](tr("0xf"));)e[tr("0x30")](t),t=t[tr("0x43")]}return Array.from(e)}(o))}))}}function x(e){return()=>{const o=t.model[tr("0x3a")][tr("0x2e")][tr("0x42")]().next()[tr("0x11")],s=t[tr("0x1a")][tr("0x19")](o,tr("0xa")),r=t[tr("0x1a")][tr("0x19")](o,0),i=t.model[tr("0x18")](s,r);t.model[tr("0x29")]((()=>{n[tr("0x2a")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x24")})}))}}function a(e){const n=t[tr("0x1")][tr("0x25")]("bulletedList")[tr("0x11")],o=t.commands.get(tr("0x23"))[tr("0x11")];return tr("0x23")===e?n:o}n[tr("0x14")](tr("0x23"),s("numberedList")),n[tr("0x14")]("bulletedList",s("bulletedList")),n[tr("0x14")]("indentList",r("indentList")),n[tr("0x14")](tr("0x2c"),r(tr("0x2c"))),n[tr("0x14")]("splitListItemAfter",x(tr("0x33"))),n[tr("0x14")]("splitListItemBefore",x(tr("0x1b"))),n[tr("0x26")][tr("0x3c")]((function(e){const n=!t[tr("0x1a")][tr("0x2f")][tr("0x39")](e),o=e[tr("0x15")],s=e[tr("0x43")],r=e[tr("0x1d")](tr("0x37")),i=!o||o.getAttribute(tr("0x37"))!==r,x=!s||s[tr("0x1d")](tr("0x37"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,tr("0x32"),t))),n[tr("0x26")][tr("0xd")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0xe")]){case"bulletedList":r=n[tr("0x0")][0][tr("0x13")],i=a(n.commandName),o=r?"*Format:* insert into %0":tr("0x3d"),i&&(o=tr("0x1f")),s={type:tr("0x36"),content:Yo(e,o,Yo(e,tr("0x27")))};break;case tr("0x23"):r=n[tr("0x0")][0][tr("0x13")],i=a(n[tr("0xe")]),o=r?"*Format:* insert into %0":tr("0x3d"),i&&(o=tr("0x1f")),s={type:tr("0x36"),content:Yo(e,o,Yo(e,tr("0x21")))};break;case tr("0x1c"):o=tr("0x3e"),s={type:tr("0x36"),content:Yo(e,o,Yo(e,tr("0x32")))};break;case"outdentList":o=function(t){const e=t[tr("0x6")]();let n=e.start[tr("0x47")];for(;n&&e[tr("0x16")](n);){if(n[tr("0x1d")]("listIndent")>0)return!1;n=n.nextSibling}return!0}(t)?Yo(e,tr("0x3d"),Yo(e,function(t){const e=t.getFirstRange()[tr("0x46")].nodeAfter;return tr("0x35")+e[tr("0x1d")]("listType")[tr("0x44")]()+"_LIST"}(t))):Yo(e,"*Outdent:* %0",Yo(e,tr("0x32"))),s={type:tr("0x36"),content:o};break;case tr("0x3f"):case tr("0x2d"):!1===n[tr("0x34")]&&(o="*Merge:* %0",s={type:"deletion",content:Yo(e,o,Yo(e,tr("0x32")))})}return s})),n._suggestionFactory[tr("0x38")]("formatBlock",tr("0x1e"),tr("0x12"),(function(e,n){const o=[];for(let n of e)n[tr("0x46")][tr("0x47")]===n.end[tr("0x17")]&&(n=t[tr("0x1a")][tr("0x18")](t[tr("0x1a")].createPositionAt(n[tr("0x46")].nodeAfter,0))),o[tr("0x10")](n);t[tr("0x1a")][tr("0x29")]((e=>{const s=t[tr("0x1a")].document[tr("0x2e")],r=Array[tr("0x2")](s.getRanges()).map((t=>i.LiveRange[tr("0x40")](t)));e[tr("0x45")](o),t[tr("0x1")][tr("0x25")](n.commandName)[tr("0x20")](),n.commandParams[tr("0x10")]({forceDefaultExecution:!0}),t[tr("0x41")](n[tr("0xe")],...n[tr("0x0")]),e[tr("0x45")](r);for(const t of r)t[tr("0x28")]()}))}))}}var nr=n(331);const or=["detach","get","model","getFirstRange","plugins","afterExecute","hasClass","editing","data","removeMarker:suggestion:insertion","getFirstPosition","mapper","TrackChangesEditing","parent","createRange","downcastDispatcher","remove","addMarker:suggestion:insertion","markerNameToElements","ck-suggestion-marker-split","document","bind","unbindElementFromMarkerName","createPositionAt","change","selection","markInsertion","enterBlock","markerName","enter","setSelection","high","split"];var sr,rr;sr=or,rr=407,function(t){for(;--t;)sr.push(sr.shift())}(++rr);const ir=function(t,e){return or[t-=0]};class xr extends t.Plugin{static get requires(){return[nr.Enter]}init(){const t=this.editor,e=t[ir("0x1a")][ir("0x17")](ir("0x1")),n=t.commands.get(ir("0x12"));e.enableCommand(ir("0x12"),(()=>{t.model[ir("0xd")]((o=>{const s=t[ir("0x18")][ir("0x9")][ir("0xe")],r=s[ir("0x20")](),x=i.LiveRange.fromRange(s[ir("0x19")]());if(n[ir("0x10")](o)){const n=t[ir("0x18")][ir("0xc")](r[ir("0x2")].nextSibling,0),s=o[ir("0x3")](r,n);e[ir("0xf")](s)}else o[ir("0x13")](o[ir("0x3")](x.end));x[ir("0x16")](),n.fire(ir("0x1b"),{writer:o})}))})),t[ir("0x1d")][ir("0x4")].on(ir("0x6"),hs(t,ir("0x15")),{priority:ir("0x14")}),t[ir("0x1d")][ir("0x4")].on(ir("0x1f"),((t,e,n)=>{const o=n.mapper[ir("0x7")](e[ir("0x11")]);if(o)for(const t of o)t[ir("0x1c")](ir("0x8"))&&(n[ir("0x0")][ir("0xb")](t,e[ir("0x11")]),n.writer[ir("0x5")](t))}),{priority:ir("0x14")}),t[ir("0x1e")][ir("0x4")].on(ir("0x6"),((e,n,o)=>{o.options.showSuggestionHighlights&&hs(t,ir("0x15"),{showActiveMarker:!1})[ir("0xa")](this)(e,n,o)}),{priority:ir("0x14")})}}const ar=["find","FindAndReplaceEditing","getIntersection","findPrevious","model","markers","end","createPositionAt","string","handleFindCommand","afterInit","createRange","findByTextCallback","FindAndReplaceUtils","replaceAll","bind","plugins","enableCommand","_isInDeletionRange","getMarkersGroup","editor","get","item","getRange","start","suggestion:deletion","has"];var cr,lr;cr=ar,lr=209,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return ar[t-=0]};class ur extends t.Plugin{[dr("0x11")](){if(!this[dr("0x0")].plugins[dr("0x6")](dr("0x8")))return;const t=this.editor[dr("0x17")][dr("0x1")]("TrackChangesEditing");t.enableCommand(dr("0x7"),this[dr("0x10")][dr("0x16")](this)),t[dr("0x18")]("findNext"),t.enableCommand(dr("0xa")),t[dr("0x18")]("replace"),t[dr("0x18")](dr("0x15"))}[dr("0x10")](t,e,n={}){const o=this[dr("0x0")][dr("0x17")][dr("0x1")](dr("0x14"));void 0!==n&&t((t=>(dr("0xf")==typeof e?o[dr("0x13")](e,n):e)(t).filter((e=>!1===this[dr("0x19")](e,t[dr("0x2")])))),n)}[dr("0x19")](t,e){const n=this[dr("0x0")][dr("0xb")][dr("0x12")](this[dr("0x0")][dr("0xb")][dr("0xe")](e,t[dr("0x4")]),this.editor.model[dr("0xe")](e,t[dr("0xd")]));for(const t of this[dr("0x0")][dr("0xb")][dr("0xc")][dr("0x1a")](dr("0x5")))if(null!==n[dr("0x9")](t[dr("0x3")]()))return!0;return!1}}const gr=["title","fontSize.options","enableCommand","has","FontBackgroundColorEditing","selection","get","format","label","getRanges","commandName","_enableCommand","editor","config","_descriptionFactory","FontColorEditing","*Reset font size*","commandParams","afterInit","*Set font color:* %0","FontFamilyEditing","plugins","fontBackgroundColor","fontColor","fontColor.colors","trim","*Set font size:* %0","change","model","fontSize","*Reset font family*","toLowerCase","from","value","TrackChangesEditing","locale","find","*Set font family:* %0","FontSizeEditing","markInlineFormat"];var mr,fr;mr=gr,fr=289,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:hr("0x1d"),commandName:hr("0x14")},{pluginName:hr("0xb"),commandName:"fontFamily"},{pluginName:hr("0x6"),commandName:hr("0xe")},{pluginName:hr("0x23"),commandName:hr("0xd")}];class br extends t.Plugin{[hr("0x9")](){const t=this[hr("0x3")][hr("0x1a")];for(const{pluginName:t,commandName:e}of pr)this[hr("0x3")][hr("0xc")][hr("0x22")](t)&&this[hr("0x2")](e);this[hr("0x3")][hr("0xc")][hr("0x25")](hr("0x19"))[hr("0x5")].registerDescriptionCallback((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0x14")==o.commandName){const e=o[hr("0x8")][0][hr("0x18")];if(e){const o=n(this.editor[hr("0xc")][hr("0x25")]("FontSize").normalizeSizeOptions(this.editor[hr("0x4")][hr("0x25")](hr("0x20")))[hr("0x1b")]((t=>t[hr("0x13")]==e))[hr("0x1f")]).toLowerCase();return{type:"format",content:Yo(t,hr("0x11"),o)}}return{type:hr("0x26"),content:Yo(t,hr("0x7"))}}if("fontFamily"==o[hr("0x1")]){const e=o[hr("0x8")][0][hr("0x18")];return e?{type:hr("0x26"),content:Yo(t,hr("0x1c"),e)}:{type:hr("0x26"),content:Yo(t,hr("0x15"))}}if(hr("0xe")==o[hr("0x1")]){const e=o[hr("0x8")][0][hr("0x18")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x3")][hr("0x4")][hr("0x25")](hr("0xf")))[hr("0x1b")]((t=>t[hr("0x13")]==e));let r=e,i="";return o&&(r=o.label,i=n(r).toLowerCase()),{type:hr("0x26"),content:Yo(t,hr("0xa"),i)[hr("0x10")](),color:{value:e,title:i||r}}}return{type:"format",content:Yo(t,"*Reset font color*")}}if(hr("0xd")==o[hr("0x1")]){const e=o.commandParams[0][hr("0x18")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x3")][hr("0x4")][hr("0x25")]("fontBackgroundColor.colors"))[hr("0x1b")]((t=>t[hr("0x13")]==e));let r=e,i="";return o&&(r=o[hr("0x27")],i=n(r)[hr("0x16")]()),{type:hr("0x26"),content:Yo(t,"*Set font background color:* %0",i).trim(),color:{value:e,title:i||r}}}return{type:hr("0x26"),content:Yo(t,"*Reset font background color*")}}}}))}[hr("0x2")](t){const e=this[hr("0x3")];e.plugins[hr("0x25")](hr("0x19"))[hr("0x21")](t,((n,o={})=>{const s=e[hr("0x13")].document[hr("0x24")],r=o[hr("0x18")];s.isCollapsed?n(o):e.model[hr("0x12")]((()=>{const n=Array[hr("0x17")](s[hr("0x0")]());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0x13")]);for(const o of n)e.plugins[hr("0x25")]("TrackChangesEditing")[hr("0x1e")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["entries","format","config","markInlineFormat","get","isFormatting","copyFormat","normalizeSizeOptions","find","isCollapsed","getAttributeProperties","getAttributes","*Set format to:* %0","commands","toUpperCase","split","fontColor","enableCommand","fontSize","fontSize.options","TrackChangesEditing","title","afterInit","commandName","model","length","fontBackgroundColor","slice","charAt","locale","change","plugins","getItems","isBlock","getRanges","editor","backward","pasteFormat","fontColor.colors","getLastPosition","word","schema","keys","toLowerCase","getFirstPosition"];var _r,Tr;_r=Er,Tr=378,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0x4")](){const t=this[Cr("0x11")],n=t[Cr("0x6")],o=n.document.selection,s=t.plugins[Cr("0x1f")](Cr("0x2")),r=t[Cr("0xb")],i=t[Cr("0x28")][Cr("0x1f")](Cr("0x21")),x=t[Cr("0x28")].get(Cr("0x13"));i&&x&&(s[Cr("0x2c")](Cr("0x13"),((t,r={})=>{const i=r;n[Cr("0xc")]((()=>{const t=Array.from(o[Cr("0x10")]()),r=o[Cr("0x24")]?[kr(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t[Cr("0x26")]()){const t=e[Cr("0x25")](n);t&&t[Cr("0x20")]&&(yield n)}}(t,n));for(const e of t[Cr("0x10")]())for(const t of e[Cr("0xe")]())!n[Cr("0xf")](t)&&o(t)&&(yield t);for(const e of t.getSelectedBlocks())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x17")]))||0!==Object[Cr("0x18")](i)[Cr("0x7")])for(const t of r)s[Cr("0x1e")](t,{commandName:Cr("0x13"),commandParams:[i]})}))})),s._descriptionFactory.registerDescriptionCallback((e=>{const{data:n}=e;if(n&&Cr("0x13")===n[Cr("0x5")]){const e=[],o=n.commandParams[0];for(const[n,s]of Object[Cr("0x1b")](o))e.push(Ar(t,n,s));return e.length?{type:Cr("0x1c"),content:Yo(r,Cr("0x27"),e.join(", "))}:{type:Cr("0x1c"),content:Yo(r,"*Remove all formatting*")}}})),t[Cr("0xd")][Cr("0x1f")](Cr("0x2"))[Cr("0x2c")](Cr("0x21")))}}function kr(t,e){const n=t.createSelection(e);t.modifySelection(n,{unit:"word",direction:Cr("0x12")});const o=n[Cr("0x1a")]();t.modifySelection(n,{unit:Cr("0x16"),direction:"forward"});const s=n[Cr("0x15")]();return t.createRange(o,s)}function Ar(t,e,n){const o=t[Cr("0xb")].t,r=e[Cr("0x2a")](/(?=[A-Z])/).join(" "),i=o(r[Cr("0xa")](0)[Cr("0x29")]()+r[Cr("0x9")](1))[Cr("0x19")]();if("boolean"==typeof n)return i;if(Cr("0x2b")===e||Cr("0x8")===e){const e=(0,s.normalizeColorOptions)(t.config[Cr("0x1f")](Cr("0x14")))[Cr("0x23")]((t=>t[Cr("0x6")]==n));return i+" ("+(e?o(e.label)[Cr("0x19")]():n)+")"}if(Cr("0x0")===e&&isNaN(parseFloat(n))){const e=t.plugins[Cr("0x1f")]("FontSize")[Cr("0x22")](t[Cr("0x1d")][Cr("0x1f")](Cr("0x1")))[Cr("0x23")]((t=>t[Cr("0x6")]==n));return i+" ("+(e?o(e[Cr("0x3")])[Cr("0x19")]():n)+")"}return i+" ("+n+")"}const vr=["markBlockFormat","title","TrackChangesEditing","heading.options","parent","get","change","match","from","checkChild","afterInit","_descriptionFactory","getSelectedBlocks","heading","registerElementLabel","formatBlock","isObject","editor","format","selection","commandName","config","name","value","plugins","registerDescriptionCallback","ELEMENT_HEADING","blockName","HeadingEditing","enableCommand","model","document","find","commandParams","schema","*Change to:* %0"];var Rr,Sr;Rr=vr,Sr=436,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const Ir=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Ir("0x6")](){const t=this.editor,e=t.locale,n=t[Ir("0x11")][Ir("0x1")](Ir("0x23"));if(!t[Ir("0x14")].has(Ir("0x18")))return;const o=t[Ir("0x14")][Ir("0x1")](Ir("0x22"));o[Ir("0x19")](Ir("0x9"),((e,n)=>{const s=n[Ir("0x13")],r=Array[Ir("0x4")](this[Ir("0xd")][Ir("0x1a")][Ir("0x1b")][Ir("0xf")][Ir("0x8")]()).filter((t=>{return e=t,n=s,(o=this[Ir("0xd")][Ir("0x1a")][Ir("0x1e")])[Ir("0x5")](e[Ir("0x0")],n)&&!o[Ir("0xc")](e)&&e[Ir("0x12")]!=n;var e,n,o}));t[Ir("0x1a")][Ir("0x2")]((()=>{for(const t of r)o[Ir("0x20")](t,{commandName:Ir("0x9"),commandParams:[n],formatGroupId:Ir("0x17")},fs(t))}))}));for(const t of n)"paragraph"!=t[Ir("0x1a")]&&o._descriptionFactory[Ir("0xa")](t[Ir("0x1a")],(e=>{const n=Nr(t[Ir("0x1a")]);return null!==n?s(e,n):r(e,t[Ir("0x21")])}));function s(t,n){return Yo(e,Ir("0x16"),[t,n])}function r(t,n){return Yo(e,"ELEMENT_HEADING_CUSTOM",[t,n])}o[Ir("0x7")][Ir("0x15")]((t=>{const{type:o,data:i}=t;if(Ir("0xb")==o&&i&&Ir("0x9")==i[Ir("0x10")]){const t=i[Ir("0x1d")][0].value,o=Nr(t);if(null!==o)return{type:Ir("0xe"),content:Yo(e,Ir("0x1f"),s(1,o))};const x=n[Ir("0x1c")]((e=>e[Ir("0x1a")]===t))[Ir("0x21")];return{type:"format",content:Yo(e,Ir("0x1f"),r(1,x))}}}))}}function Nr(t){const e=t[Ir("0x3")](/^heading(\d+)$/);return e?e[1]:null}const Mr=["TrackChangesEditing","item","change","value","registerDescriptionCallback","format","enableCommand","has","find","*Set highlight:* %0","getLastMatchingPosition","_descriptionFactory","hasAttribute","getAttribute","editor","createRange","highlight","config","get","title","FORMAT_HIGHLIGHT","plugins","model","highlight.options","commandName","push","markInlineFormat","selection","getFirstPosition","getRanges","afterInit","document","locale"];var wr,Or;wr=Mr,Or=173,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Pr extends t.Plugin{[Fr("0x16")](){const t=this[Fr("0x6")];if(!t[Fr("0xd")][Fr("0x20")]("HighlightEditing"))return;const e=t.plugins[Fr("0xa")](Fr("0x19"));e[Fr("0x1f")](Fr("0x8"),((n,o={})=>{const s=t[Fr("0xe")][Fr("0x17")][Fr("0x13")],r=s[Fr("0x5")](Fr("0x8"));let i=o[Fr("0x1c")],x=[];if(s.isCollapsed){const e=s[Fr("0x14")]();if(!s[Fr("0x4")](Fr("0x8")))return void n(o);{const n=t=>t[Fr("0x1a")][Fr("0x5")]("highlight")===r,o=e[Fr("0x2")](n,{direction:"backward"}),s=e[Fr("0x2")](n);x=[t[Fr("0xe")][Fr("0x7")](o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0x15")]())i?x[Fr("0x11")](e):x.push(...ms(Fr("0x8"),e,t[Fr("0xe")]));t[Fr("0xe")][Fr("0x1b")]((()=>{for(const t of x)e[Fr("0x12")](t,{commandName:"highlight",commandParams:[{value:i}]})}))}));const n=t[Fr("0x18")];e[Fr("0x3")][Fr("0x1d")]((e=>{const{type:o,data:s}=e;if("formatInline"==o&&s&&Fr("0x8")==s[Fr("0x10")]){const e=n.t,o=s.commandParams[0][Fr("0x1c")];if(o){const s=t[Fr("0x9")].get(Fr("0xf"))[Fr("0x0")]((t=>t.model==o)),r=e(s.title).toLowerCase();return{type:Fr("0x1e"),content:Yo(n,Fr("0x1"),r),color:{value:s.color,title:s[Fr("0xb")]}}}return{type:Fr("0x1e"),content:Yo(n,"*Remove highlight*",Yo(n,Fr("0xc")))}}}))}}const Dr=["ELEMENT_HORIZONTAL_LINE","TrackChangesEditing","dataDowncast","createEmptyElement","get","registerElementLabel","high","for","createPositionAt","plugins","div","createContainerElement","conversion","insert","_descriptionFactory","editor","afterInit","HorizontalLineEditing","enableCommand","ck-horizontal-line","showSuggestionHighlights"];var Br,jr;Br=Dr,jr=370,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0x3")](){const t=this[Ur("0x2")];if(!t[Ur("0x11")].has(Ur("0x4")))return;t[Ur("0x11")][Ur("0xc")](Ur("0x9"))[Ur("0x5")]("horizontalLine");const e=t[Ur("0x11")][Ur("0xc")](Ur("0x9")),n=t.locale;e[Ur("0x1")][Ur("0xd")]("horizontalLine",(t=>Yo(n,Ur("0x8"),t))),t[Ur("0x14")][Ur("0xf")](Ur("0xa")).elementToStructure({model:"horizontalLine",view:(t,{writer:e,options:n})=>{if(!n[Ur("0x7")])return null;const o=e[Ur("0x13")](Ur("0x12")),s=e[Ur("0xb")]("hr");return e.addClass(Ur("0x6"),o),e[Ur("0x0")](e[Ur("0x10")](o,0),s),o},converterPriority:Ur("0xe")})}}const Hr=["ELEMENT_HTML_EMBED","getCustomProperty","getSelectedElement","getAttribute","registerDescriptionCallback","locale","element","get","format","htmlEmbed","has","commandName","_descriptionFactory","model","enableCommand","TrackChangesEditing","rawHtmlApi","editing","*Change %0 content*","selection","document","rawHtml","plugins","editor","view"];var zr,Wr;zr=Hr,Wr=319,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{afterInit(){const t=this[Vr("0x4")];if(!t.plugins[Vr("0x10")]("HtmlEmbed"))return;const e=t.plugins[Vr("0xd")]("TrackChangesEditing"),n=t[Vr("0xb")],o=t[Vr("0x17")][Vr("0x5")].document[Vr("0x0")];e[Vr("0x12")].registerElementLabel(Vr("0x2"),(t=>Yo(n,Vr("0x6"),t))),t[Vr("0x3")][Vr("0xd")](Vr("0x15"))[Vr("0x14")]("htmlEmbed",((n,s)=>{const r=t[Vr("0x13")],i=r[Vr("0x1")][Vr("0x0")];r.change((()=>{const t=function(t){const e=t[Vr("0x8")]();return e&&e.is(Vr("0xc"),Vr("0x2"))?t.getSelectedElement():null}(i);if(!t)return void n(null);const r=t[Vr("0x9")]("value")||"";void 0!==s&&s!==r&&(e.markBlockFormat(t,{commandName:Vr("0xf"),commandParams:[s]}),o[Vr("0x8")]()[Vr("0x7")](Vr("0x16")).cancel())}))})),e[Vr("0x12")][Vr("0xa")]((t=>{const{data:e}=t;if(e&&Vr("0xf")==e[Vr("0x11")]){const t=Yo(n,Vr("0x6"));return{type:Vr("0xe"),content:Yo(n,Vr("0x18"),t)}}}))}}const qr=["locale","_suggestionFactory","plugins","alt","markInsertion","getChangedMarkers","newValue","registerCustomCallback","*Set image width:* %0","discardSuggestion","insertImage","*Reset image width*","imageInline","find","start","length","ImageCaptionEditing","hasAttribute","value","imageTypeBlock","Users","editor","ImageUtils","detach","width","isBefore","end","refresh","toPrevious","suggestion","author","join","formatInline","imageStylePostApply","schema","insertion","toLowerCase","_descriptionFactory","toggleImageCaption","getSuggestionCallback","formatBlock","getClosestSelectedImageElement","imageTypeInline","hasSuggestion","ELEMENT_CAPTION","markDeletion","commandName","removeObject","has","commands","title","getContainedElement","previous","_splitMarkerName","TrackChangesEditing","get","ImageBlockEditing","subType","selection","name","isEqual","Block image to inline image","registerDescriptionCallback","createRangeOn","change","filter","convertBlockImageToInline","shouldConvertImageType","createRange","next","isCollapsed","nodeAfter","getCaptionFromImageModelElement","isIntersecting","caption","enableCommand","isInContent","differ","registerElementLabel","format","type","FORMAT_SIDE_IMAGE","forceDefaultExecution","afterInit","discard","resizeImage","addObject","ImageTextAlternativeEditing","markBlockFormat","uploadImage","ImageEditing","getAttribute","imageCaption","getFirstRange","getSuggestion","from","ImageResize","backward","accept","convertInlineImageToBlock","forEach","ImageInlineEditing","getNearestSelectionRange","commandParams","ELEMENT_IMAGE","imageBlock","chain","ELEMENT_INLINE_IMAGE","newRange","ImageStyleEditing","fromPosition","getSuggestions","isBlockImage","document","model","head","forward","findIndex","imageStylePreApply","imageTextAlternative","imageStyle","*Format:* %0"];var Xr,$r;Xr=qr,$r=298,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{[Jr("0x1d")](){const t=this[Jr("0x59")];if(!t[Jr("0x46")][Jr("0x74")](Jr("0x24")))return;const n=t[Jr("0x46")][Jr("0x1")](Jr("0x0")),o=t[Jr("0x46")].get(Jr("0x5a")),s={},r=t[Jr("0x44")];if(n.enableCommand(Jr("0x4e")),n[Jr("0x69")][Jr("0x18")](Jr("0x33"),(t=>Yo(r,Jr("0x32"),t))),n._descriptionFactory.registerElementLabel(Jr("0x50"),(t=>Yo(r,Jr("0x35"),t))),n[Jr("0x69")][Jr("0x18")](Jr("0x14"),(()=>Yo(r,Jr("0x70")))),t[Jr("0x46")][Jr("0x74")]("ImageUploadEditing")&&n[Jr("0x15")](Jr("0x23")),t[Jr("0x46")].has(Jr("0x2"))&&t.plugins[Jr("0x74")](Jr("0x2f"))&&(n[Jr("0x15")](Jr("0x6e"),((e,s)=>{const r=o[Jr("0x6d")](t[Jr("0x3c")][Jr("0x3b")][Jr("0x4")]);t[Jr("0x3c")][Jr("0xa")]((()=>{n.markBlockFormat(r,{commandName:"imageTypeInline",commandParams:[s]},[],"convertBlockImageToInline")}))})),n.enableCommand(Jr("0x57"),((e,s)=>{t[Jr("0x3c")][Jr("0xa")]((r=>{let x=o[Jr("0x6d")](t.model[Jr("0x3b")][Jr("0x4")]),a=r.createRangeOn(x);const c=i.LivePosition[Jr("0x38")](a.start,Jr("0x60")),l=i.LivePosition[Jr("0x38")](a[Jr("0x5e")],"toNext");n[Jr("0x1c")]((()=>e(s))),x=o[Jr("0x6d")](t.model[Jr("0x3b")][Jr("0x4")]),a=r[Jr("0x9")](x);const d=r.createRange(c,l);c[Jr("0x5b")](),l[Jr("0x5b")](),n[Jr("0x22")](x,{commandName:Jr("0x6e"),commandParams:[]},[],Jr("0x2d")),d[Jr("0x52")].isBefore(a.start)&&n[Jr("0x48")](r[Jr("0xe")](d[Jr("0x52")],a[Jr("0x52")]),Jr("0x2d")),a.end[Jr("0x5d")](d[Jr("0x5e")])&&n[Jr("0x48")](r[Jr("0xe")](a[Jr("0x5e")],d[Jr("0x5e")]),Jr("0x2d"))}))})),n[Jr("0x45")].registerCustomCallback(Jr("0x6c"),"convertInlineImageToBlock",Jr("0x63"),(()=>!1)),n[Jr("0x45")].registerCustomCallback(Jr("0x6c"),Jr("0x2d"),"accept",(()=>!1)),n[Jr("0x45")][Jr("0x4b")]("formatBlock",Jr("0x2d"),Jr("0x1e"),n[Jr("0x45")][Jr("0x6b")](Jr("0x6c"),"",Jr("0x2c"))),n._suggestionFactory[Jr("0x4b")](Jr("0x67"),"convertInlineImageToBlock","join",(()=>!1)),n[Jr("0x45")].registerCustomCallback(Jr("0x67"),"convertInlineImageToBlock",Jr("0x1e"),(([e])=>{const o=n._suggestionFactory[Jr("0x6b")]("insertion","",Jr("0x1e"));let s=e[Jr("0x52")],r=e[Jr("0x5e")];const i=t[Jr("0x3c")].schema.getNearestSelectionRange(s,Jr("0x2b")),x=t[Jr("0x3c")][Jr("0x66")][Jr("0x30")](r,Jr("0x3e"));i.isCollapsed&&(s=i[Jr("0x52")]),x[Jr("0x10")]&&(r=x[Jr("0x5e")]),o([t[Jr("0x3c")].createRange(s,r)])})),n._suggestionFactory[Jr("0x4b")]("formatBlock","convertInlineImageToBlock","chain",c),n[Jr("0x45")][Jr("0x4b")](Jr("0x67"),"convertInlineImageToBlock",Jr("0x34"),c)),t[Jr("0x46")][Jr("0x74")](Jr("0x54"))&&(n[Jr("0x15")](Jr("0x6a"),((e,s)=>{const r=t.plugins[Jr("0x1")]("ImageCaptionUtils");let i=o[Jr("0x6d")](t[Jr("0x3c")][Jr("0x3b")][Jr("0x4")]),x=r.getCaptionFromImageModelElement(i);t[Jr("0x3c")][Jr("0xa")]((()=>{if(x)return void n[Jr("0x71")](t[Jr("0x3c")][Jr("0x9")](x));const a=o[Jr("0x3a")](i);e(s),i=o[Jr("0x6d")](t.model[Jr("0x3b")][Jr("0x4")]),x=r[Jr("0x12")](i),n.markInsertion(t[Jr("0x3c")][Jr("0x9")](x),a?null:Jr("0x26"))}))})),n[Jr("0x45")].registerCustomCallback(Jr("0x67"),Jr("0x26"),"chain",c)),t[Jr("0x46")].has("ImageStyleEditing")){n.enableCommand(Jr("0x42"),((s,r)=>{const i=t[Jr("0x46")][Jr("0x1")](Jr("0x58")).me,x=t[Jr("0x75")][Jr("0x1")](Jr("0x42"));let a=o[Jr("0x6d")](t.model[Jr("0x3b")][Jr("0x4")]),c=t.model[Jr("0x9")](a),l=x[Jr("0x56")];if(l==r[Jr("0x56")])return;const d={commandName:"imageStyle",commandParams:[r],formatGroupId:(0,e.uid)()};t.model.change((()=>{if(n[Jr("0x39")]()[Jr("0xb")]((t=>t.isInContent&&i==t[Jr("0x62")]&&(Jr("0x6c")==t[Jr("0x1a")]||Jr("0x64")==t[Jr("0x1a")])&&(Jr("0x40")==t[Jr("0x3")]||"imageStylePostApply"==t[Jr("0x3")])&&t[Jr("0x27")]().isEqual(c)))[Jr("0x2e")]((t=>n[Jr("0x4d")](t[Jr("0x3d")]))),a=o.getClosestSelectedImageElement(t[Jr("0x3c")][Jr("0x3b")].selection),c=t[Jr("0x3c")][Jr("0x9")](a),x.refresh(),t[Jr("0x75")].get(Jr("0x6e"))[Jr("0x5f")](),t[Jr("0x75")].get(Jr("0x57"))[Jr("0x5f")](),l=x.value,l!=r[Jr("0x56")])return o.isInlineImage(a)&&x[Jr("0xd")](r[Jr("0x56")],a)?(s(r),a=o[Jr("0x6d")](t[Jr("0x3c")][Jr("0x3b")][Jr("0x4")]),void n[Jr("0x22")](a,{...d,commandReversedParams:[{value:l||null}]},[],"imageStylePreApply")):void(o.isBlockImage(a)?n[Jr("0x22")](a,d,[],Jr("0x65")):n.markInlineFormat(c,d,Jr("0x65")))}))}));for(const e of t[Jr("0x46")][Jr("0x1")](Jr("0x37")).normalizedStyles)s[e[Jr("0x5")]]=e[Jr("0x76")][Jr("0x68")]();n[Jr("0x45")][Jr("0x4b")]("formatBlock",Jr("0x40"),"join",(()=>!1)),n[Jr("0x45")][Jr("0x4b")](Jr("0x6c"),Jr("0x65"),Jr("0x63"),(()=>!1)),n[Jr("0x45")][Jr("0x4b")](Jr("0x64"),Jr("0x65"),"join",(()=>!1)),n[Jr("0x45")].registerCustomCallback(Jr("0x6c"),Jr("0x40"),Jr("0x2c"),(()=>!1)),n[Jr("0x45")].registerCustomCallback("formatBlock","imageStylePreApply",Jr("0x1e"),((t,e)=>{n[Jr("0x45")][Jr("0x6b")]("formatBlock","","accept")(t,{commandName:e[Jr("0x72")],commandParams:e.commandReversedParams})})),n[Jr("0x45")].registerCustomCallback(Jr("0x6c"),Jr("0x40"),Jr("0x34"),c)}const x=[{type:"formatBlock",subType:Jr("0x40")},{type:Jr("0x67"),subType:Jr("0x26")},{type:Jr("0x6c"),subType:Jr("0x2d")},{type:Jr("0x67"),subType:"convertInlineImageToBlock"}];function a(t,e){const s=x.findIndex((({type:e,subType:n})=>t[Jr("0x1a")]==e&&t.subType==n)),r=x[Jr("0x3f")]((({type:t,subType:n})=>e[Jr("0x1a")]==t&&e[Jr("0x3")]==n));if(s<0||r<0)return!1;const i=t[Jr("0x27")](),a=e[Jr("0x27")]();if((0==s||1==s)&&2==r&&i[Jr("0x13")](a))return!0;if(2==s&&3==r){const t=n._findSuggestions(i,"insertion")[Jr("0xb")]((({suggestion:t,meta:e})=>e.isOwn&&Jr("0x2d")==t[Jr("0x3")]));if(t.length>1&&a.end[Jr("0x6")](i[Jr("0x52")]))return!0;if(1==t[Jr("0x53")]&&(i[Jr("0x52")][Jr("0x6")](a[Jr("0x5e")])||i[Jr("0x5e")][Jr("0x6")](a[Jr("0x52")])))return!0}if(3==s&&3==r&&i.start[Jr("0x5d")](a.start)){const t=i[Jr("0x5e")][Jr("0x11")],e=a.start.nodeBefore;return o.isBlockImage(t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Jr("0x3c")].document.registerPostFixer((()=>{let e=!1;const s=Array[Jr("0x29")](t.model[Jr("0x3b")][Jr("0x17")][Jr("0x49")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Jr("0x79")](t);if(Jr("0x61")==s&&n[Jr("0x6f")](a)){if(Jr("0x6c")==i&&(Jr("0x40")==x||"imageStylePostApply"==x)){const t=n[Jr("0x28")](a);if(r[Jr("0x36")]){const s=t.getFirstRange()[Jr("0x77")]();if(o[Jr("0x3a")](s))continue;n[Jr("0x4d")](t),e=!0}}if("insertion"==i&&Jr("0x26")==x&&!r[Jr("0x36")]){const t=n.getSuggestion(a);t.next&&t[Jr("0xf")][Jr("0x16")]&&(n[Jr("0x4d")](t.next),e=!0)}}}return e})),t[Jr("0x46")][Jr("0x74")](Jr("0x2a"))&&n[Jr("0x15")](Jr("0x1f"),((e,s)=>{const r=o[Jr("0x6d")](t.model[Jr("0x3b")][Jr("0x4")]);r[Jr("0x25")](Jr("0x5c"))!=s[Jr("0x5c")]&&t.model[Jr("0xa")]((()=>{n.markBlockFormat(r,{commandName:Jr("0x1f"),commandParams:[s]})}))})),t[Jr("0x46")].has(Jr("0x21"))&&n[Jr("0x15")](Jr("0x41"),((e,s)=>{const r=o[Jr("0x6d")](t.model[Jr("0x3b")][Jr("0x4")]);(r[Jr("0x55")](Jr("0x47"))?r[Jr("0x25")](Jr("0x47")):"")!=s[Jr("0x4a")]&&t[Jr("0x3c")][Jr("0xa")]((()=>{n.markBlockFormat(r,{commandName:Jr("0x41"),commandParams:[s]})}))})),n._descriptionFactory[Jr("0x8")]((t=>{if(x[Jr("0x51")]((({type:e,subType:n})=>t[Jr("0x1a")]==e&&t[Jr("0x3")]==n)))return t[Jr("0x78")]?{}:void 0})),n._descriptionFactory[Jr("0x8")]((t=>{if(Jr("0x67")==t[Jr("0x1a")]||"deletion"==t.type){const e=t.getContainedElement();if(e&&e.is("element",Jr("0x14")))return{type:Jr("0x67")==t[Jr("0x1a")]?Jr("0x20"):Jr("0x73"),element:e,quantity:1}}})),n[Jr("0x69")][Jr("0x8")]((t=>"formatBlock"==t[Jr("0x1a")]&&Jr("0x2d")==t.subType?{type:Jr("0x19"),content:"Inline image to block image"}:Jr("0x6c")==t[Jr("0x1a")]&&Jr("0xc")==t[Jr("0x3")]?{type:Jr("0x19"),content:Jr("0x7")}:void 0)),n[Jr("0x69")].registerDescriptionCallback((t=>{const{data:e}=t;if(e){if("imageStyle"==e.commandName){const t=e[Jr("0x31")][0].value;return n="side"===t?Yo(r,Jr("0x1b")):s[t]||t,{type:Jr("0x19"),content:Yo(r,Jr("0x43"),n)}}if(Jr("0x41")==e[Jr("0x72")]){const t=e.commandParams[0][Jr("0x4a")];return t?{type:Jr("0x19"),content:Yo(r,"*Set image text alternative:* %0",'"'+t+'"')}:{type:Jr("0x19"),content:Yo(r,"*Remove image text alternative*")}}if(Jr("0x1f")==e[Jr("0x72")]){const t=e[Jr("0x31")][0][Jr("0x5c")];return t?{type:Jr("0x19"),content:Yo(r,Jr("0x4c"),t)}:{type:"format",content:Yo(r,Jr("0x4f"))}}}var n}))}}const Zr=["accept","handleSuggestionDescription","editor","model","getSuggestions","source","formatBlock","data","_suggestionFactory","locale","markBlockFormat","enableCommand","getAttribute","replaceImageSource","registerCustomCallback","getSuggestionCallback","format","getSelectedElement","author","has","discard","getContainedElement","change","registerDescriptionCallback","subType","_descriptionFactory","get","*Format:* replace image URL","TrackChangesEditing","plugins","selection","handleReplaceImageCommand","commandName"];var Yr,ti;Yr=Zr,ti=227,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{afterInit(){if(!this[ei("0x6")][ei("0x0")][ei("0x17")]("ImageEditing"))return;const t=this[ei("0x6")].plugins.get(ei("0x20"));t[ei("0xf")]("replaceImageSource",((t,e)=>this.handleReplaceImageCommand(t,e))),t[ei("0xc")][ei("0x12")](ei("0xa"),ei("0x11"),ei("0x4"),t[ei("0xc")][ei("0x13")](ei("0xa"),null,ei("0x18"))),t[ei("0xc")][ei("0x12")](ei("0xa"),ei("0x11"),"discard",t._suggestionFactory[ei("0x13")]("formatBlock",null,ei("0x4"))),t[ei("0x1d")][ei("0x1b")]((t=>this.handleSuggestionDescription(t)))}[ei("0x2")](t,e){const n=this.editor[ei("0x0")][ei("0x1e")](ei("0x20")),o=this[ei("0x6")][ei("0x7")].document[ei("0x1")][ei("0x15")]();this.editor.model[ei("0x1a")]((()=>{let s=o[ei("0x10")]("src");const r=this[ei("0x6")][ei("0x0")][ei("0x1e")]("Users").me;for(const t of n[ei("0x8")]({skipNotAttached:!0})){const e=t[ei("0x19")]();if(ei("0x11")===t[ei("0x1c")]&&e===o){t[ei("0x16")]!==r&&t[ei("0x18")](),s=t[ei("0xb")].commandParams[0][ei("0x9")];break}}t(e),n[ei("0xe")](o,{commandName:ei("0x11"),commandParams:[{source:s}]},[],ei("0x11"))}))}[ei("0x5")](t){const{data:e}=t;if(e&&ei("0x11")===e[ei("0x3")]){const t=ei("0x1f");return{type:ei("0x14"),content:Yo(this[ei("0x6")][ei("0xd")],t)}}}}const oi=["plugins","lowest","_trackChangesValueDuringImport","listenTo","TrackChangesEditing","commands","Users","afterInit","importWord","editor","_setSuggestionData","enableCommand","get","_trackChangesExecuted","dataInsert","value","collaboration_features","bind","track_changes","high","execute","forEach","_handleImportedData"];var si,ri;si=oi,ri=453,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{constructor(t){super(t),this._trackChangesValueDuringImport=!1,this._trackChangesExecuted=!1}[ii("0xe")](){const t=this[ii("0x10")],e=t[ii("0xc")][ii("0x13")](ii("0xf")),n=t[ii("0xc")][ii("0x13")]("trackChanges");e&&(e.on(ii("0x4"),((t,[,e])=>{this._trackChangesValueDuringImport=n[ii("0x16")],e[ii("0x0")][ii("0x2")]=!this[ii("0x9")]}),{priority:ii("0x3")}),this[ii("0xa")](e,"dataInsert",this[ii("0x6")][ii("0x1")](this)),this[ii("0xa")](e,ii("0x15"),(()=>{this[ii("0x14")]&&(n.execute(),this[ii("0x14")]=!1)}),{priority:ii("0x8")}),t[ii("0x7")].get(ii("0xb"))[ii("0x12")](ii("0xf")))}[ii("0x6")](t,e){const{suggestions:n}=e,o=this[ii("0x10")][ii("0xc")][ii("0x13")]("trackChanges"),s=o[ii("0x16")];this[ii("0x9")]!==s&&(o[ii("0x4")](),this._trackChangesExecuted=!0),n&&n[ii("0x5")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0x10")][ii("0x7")][ii("0x13")](ii("0xd")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0xf")}}};this.editor[ii("0x7")].get(ii("0xb"))[ii("0x11")](s)}))}}const ai=["locale","change","registerDescriptionCallback","getItems","TrackChangesEditing","indent","outdentBlock","markBlockFormat","enableCommand","getSelectedBlocks","_descriptionFactory","format","afterInit","getItemLabel","*Outdent:* %0","indentBlock","checkAttribute","editor","commandName","plugins","selection","get","IndentBlock","schema","*Indent:* %0","document","outdent","IndentEditing","model"];var ci,li;ci=ai,li=236,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{[di("0x8")](){const t=this[di("0xd")],e=t[di("0xf")][di("0x11")](di("0x0"));t.plugins.has(di("0x17"))&&(e[di("0x4")](di("0x1")),e[di("0x4")](di("0x16")));const n=t[di("0x19")];if(t[di("0xf")].has(di("0x12"))){for(const n of[di("0xb"),di("0x2")])e[di("0x4")](n,(()=>{const o=Array.from(this[di("0xd")][di("0x18")][di("0x15")][di("0x10")][di("0x5")]()).filter((t=>this[di("0xd")][di("0x18")][di("0x13")][di("0xc")](t,"blockIndent")));t.model[di("0x1a")]((()=>{for(const t of o)e[di("0x3")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:di("0xb")})}))}));e[di("0x6")][di("0x1b")]((t=>{const{data:o}=t;if(!o)return;if(di("0xb")!=o[di("0xe")]&&di("0x2")!=o[di("0xe")])return;const s=t[di("0x1c")]()[0],r=e[di("0x6")][di("0x9")](s);return"indentBlock"==o[di("0xe")]?{type:di("0x7"),content:Yo(n,di("0x14"),r)}:di("0x2")==o.commandName?{type:"format",content:Yo(n,di("0xa"),r)}:void 0}))}}}var gi,mi,fi=["get","input","plugins","editor","init","TrackChangesEditing","requires"];gi=fi,mi=487,function(t){for(;--t;)gi.push(gi.shift())}(++mi);var hi=function(t,e){return fi[t-=0]};class pi extends t.Plugin{static get[hi("0x2")](){return[Vs.Input]}[hi("0x0")](){this[hi("0x6")][hi("0x5")][hi("0x3")](hi("0x1")).enableCommand(hi("0x4"))}}const bi=["enableCommand","getRanges","change","unlink","selection","plugins","TrackChangesEditing","markInlineFormat","commandName","linkHref","locale","registerDescriptionCallback","link","*Remove link*","has","model","getFirstRange","hasAttribute","format","document","getFirstPosition","from","commandParams","getAttribute","*Set link:* %0","isCollapsed","get","_descriptionFactory","afterInit"];var Ei,_i;Ei=bi,_i=266,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{[Ti("0x17")](){const t=this.editor;if(!t[Ti("0x0")][Ti("0x9")]("LinkEditing"))return;const e=t[Ti("0x0")][Ti("0x15")](Ti("0x1"));e[Ti("0x18")](Ti("0x7"),((n,o)=>{const s=t[Ti("0xa")].document[Ti("0x1c")];let r=[];if(s[Ti("0x14")]){if(!s[Ti("0xc")](Ti("0x4")))return void n(o);{const e=(0,Vs.findAttributeRange)(s[Ti("0xf")](),"linkHref",s[Ti("0x12")](Ti("0x4")),t.model);r=[e]}}else r=Array[Ti("0x10")](s[Ti("0x19")]());t[Ti("0xa")][Ti("0x1a")]((()=>{for(const t of r)e[Ti("0x2")](t,{commandName:Ti("0x7"),commandParams:[o]})}))})),e[Ti("0x18")]("unlink",(()=>{const n=this.editor[Ti("0xa")],o=n[Ti("0xe")][Ti("0x1c")];n.change((()=>{let n=[];n=o[Ti("0x14")]?[(0,Vs.findAttributeRange)(o[Ti("0xf")](),Ti("0x4"),o[Ti("0x12")](Ti("0x4")),t[Ti("0xa")])]:ms("linkHref",o[Ti("0xb")](),t[Ti("0xa")]);for(const t of n)e[Ti("0x2")](t,{commandName:Ti("0x1b"),commandParams:[]})}))})),e[Ti("0x16")][Ti("0x6")]((e=>{const{data:n}=e,o=t[Ti("0x5")];if(n){if(Ti("0x7")==n[Ti("0x3")]){const t=n[Ti("0x11")][0];return{type:"format",content:Yo(o,Ti("0x13"),'"'+t+'"')}}return Ti("0x1b")==n[Ti("0x3")]?{type:Ti("0xd"),content:Yo(o,Ti("0x8"))}:void 0}}))}}const yi=["locale","get","numbered","bulleted","document","element","commands","registerElementLabel","createPositionAt","numberedList","add","blockName","editor","_descriptionFactory","value","ELEMENT_LIST_ITEM","filter","has","selection","before","findIndex","todoList","registerDescriptionCallback","TodoListEditing","*Outdent:* %0","commandParams","nextSibling","plugins","*Change to:* %0","ELEMENT_BULLETED_LIST","*Indent:* %0","getAttribute","enableCommand","commandName","model","execute","checkTodoList","from","slice","previousSibling","parent","listType","ELEMENT_NUMBERED_LIST","forceValue","listItem","change","indentList","listIndent","*Uncheck item*","outdentList","getSelectedBlocks","_selectedElements","replace","TrackChangesEditing","markBlockFormat","createRange","paragraph","*Check item*","name","bulletedList","todoListChecked","format"];var ki,Ai;ki=yi,Ai=455,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{afterInit(){const t=this[vi("0x35")],e=t[vi("0x29")];if(!t[vi("0x6")][vi("0x3a")]("ListEditing"))return;const n=t[vi("0x6")].get(vi("0x20")),o=t[vi("0x6")][vi("0x3a")](vi("0x2"));function s(e){return()=>{const o=t[vi("0xd")][vi("0x2d")][vi("0x3b")],s=t[vi("0x2f")][vi("0x2a")](e);if(s[vi("0x37")])return void t[vi("0xe")](vi("0x23"),{});const r=e.slice(0,-4),i=function(t,e,n){let o=Array[vi("0x10")](t).filter((t=>{return e=t,(o=n).checkChild(e[vi("0x13")],vi("0x17"))&&!o.isObject(e);var e,o}));o=o[vi("0x39")]((t=>!t.is(vi("0x2e"),vi("0x17"))||t[vi("0xa")](vi("0x14"))!=e));const s=new Set;for(const t of o)t.is(vi("0x2e"),vi("0x17"))?s.add(Si(t)):s[vi("0x33")](t);return Array[vi("0x10")](s)}(o.getSelectedBlocks(),r,t.model.schema);t[vi("0xd")][vi("0x18")]((()=>{for(const t of i)n[vi("0x21")](t,{commandName:e,commandParams:[{forceValue:!s.value}],formatGroupId:vi("0x34")},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array.from(t);const n=e[vi("0x3d")]((t=>vi("0x17")!=t[vi("0x25")]));return n>-1&&(e=e[vi("0x11")](0,n)),e}(t[vi("0xd")][vi("0x2d")][vi("0x3b")][vi("0x1d")]()),s=t[vi("0xd")][vi("0x22")](t.model[vi("0x31")](o[0],vi("0x3c")),t.model[vi("0x31")](o[o.length-1],"end"));t.model[vi("0x18")]((()=>{n[vi("0x21")](s,{commandName:e,commandParams:[],formatGroupId:vi("0x1a")},function(t){const e=new Set;for(const n of t){let t=n[vi("0x5")];for(;t&&t[vi("0xa")](vi("0x1a"))>n[vi("0xa")](vi("0x1a"));)e.add(t),t=t[vi("0x5")]}return Array[vi("0x10")](e)}(o))}))}}n[vi("0xb")](vi("0x32"),s("numberedList")),n[vi("0xb")]("bulletedList",s(vi("0x26"))),o&&n[vi("0xb")](vi("0x0"),s(vi("0x0"))),n[vi("0xb")](vi("0x19"),r(vi("0x19"))),n[vi("0xb")]("outdentList",r(vi("0x1c"))),o&&n[vi("0xb")](vi("0xf"),(()=>{const e=t[vi("0x2f")][vi("0x2a")]("checkTodoList"),o=Array[vi("0x10")](e[vi("0x1e")]);o[vi("0x39")]((t=>t.getAttribute(vi("0x27"))!=e[vi("0x37")])),t[vi("0xd")][vi("0x18")]((()=>{for(const t of o)n[vi("0x21")](t,{commandName:vi("0xf"),commandParams:[{forceValue:!e[vi("0x37")]}]})}))})),n[vi("0x36")][vi("0x30")](vi("0x17"),(t=>Yo(e,vi("0x38"),t))),n[vi("0x36")][vi("0x1")]((t=>{const{data:n}=t;if(n){if(vi("0x32")==n[vi("0xc")]||vi("0x26")==n.commandName||vi("0x0")==n.commandName)switch(n[vi("0xc")][vi("0x1f")]("List","")){case vi("0x2c"):return o(Yo(e,vi("0x8")));case vi("0x2b"):return o(Yo(e,vi("0x15")));case"todo":return o(Yo(e,"ELEMENT_TODO_LIST"))}if(vi("0x19")==n[vi("0xc")])return{type:"format",content:Yo(e,vi("0x9"),Yo(e,vi("0x38")))};if("outdentList"==n[vi("0xc")])return{type:"format",content:Yo(e,vi("0x3"),Yo(e,vi("0x38")))};if(vi("0xf")==n[vi("0xc")])return n[vi("0x4")][0][vi("0x16")]?{type:vi("0x28"),content:Yo(e,vi("0x24"))}:{type:vi("0x28"),content:Yo(e,vi("0x1b"))}}function o(t){return{type:vi("0x28"),content:Yo(e,vi("0x7"),t)}}}))}}function Si(t){const e=t.getAttribute("listIndent");if(0==e)return t;let n=t;for(;t.previousSibling&&t[vi("0x12")].is(vi("0x2e"),vi("0x17"));){const o=t[vi("0x12")].getAttribute(vi("0x1a"));if(o==e)n=t[vi("0x12")];else if(o<e)break;t=t[vi("0x12")]}return n}function Ii(t){const e=[];if(t.is("element",vi("0x17"))&&t[vi("0xa")](vi("0x1a"))>0){let n=t[vi("0x5")];for(;n&&vi("0x17")==n.name&&n[vi("0xa")](vi("0x1a"))==t.getAttribute(vi("0x1a"));)e.push(n),n=n.nextSibling}return e}const Li=["getAttribute","plugins","numbered","bind","TrackChangesEditing","afterInit","_LIST_","get","listStyle","ListUtils","_getSuggestionBlocks","parent","enableCommand","getSiblingNodes","getSelectedBlocks","ELEMENT_","listReversed","startIndex","handleListStartCommand","element","length","change","forward","getFirstPosition","model","handleDescriptions","backward","createPositionAt","list.properties","commandName","editor","push","*Format:* set order to reversed","createRange","listItem","listStart","*Format:* set start index to %0","from","_getTranslationKeyForListStyle","has","map","handleListStyleCommand","styles","config","markMultiRangeBlockFormat","unshift","filter","_getSuggestionBlocksForListStyle","reversed","locale","handleListReversedCommand","selection","before","getLastPosition","commandParams","type","format","toUpperCase","document","listType"];var Ni,Mi;Ni=Li,Mi=478,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[wi("0x7")](){if(!this.editor[wi("0x3")][wi("0x29")]("ListPropertiesEditing"))return;const t=this.editor[wi("0x2d")][wi("0x9")](wi("0x1e")),e=this.editor[wi("0x3")][wi("0x9")](wi("0x6"));t[wi("0x2c")]&&e.enableCommand(wi("0xa"),this[wi("0x2b")][wi("0x5")](this)),t[wi("0x32")]&&e[wi("0xe")](wi("0x12"),this[wi("0x34")][wi("0x5")](this)),t[wi("0x13")]&&e.enableCommand(wi("0x25"),this[wi("0x14")][wi("0x5")](this)),e._descriptionFactory.registerDescriptionCallback(this.handleDescriptions[wi("0x5")](this))}handleListStyleCommand(t,e={}){const n=this.editor.plugins[wi("0x9")]("TrackChangesEditing"),o=this[wi("0x31")]();this[wi("0x20")].model[wi("0x17")]((()=>{n[wi("0x2e")](o,{commandName:"listStyle",commandParams:[{type:e[wi("0x39")]}],formatGroupId:"listStyle"})}))}handleListReversedCommand(t,e={}){const n=this[wi("0x20")][wi("0x3")][wi("0x9")]("TrackChangesEditing"),o=this[wi("0xc")]((t=>t.is(wi("0x15"),"listItem")&&wi("0x4")===t[wi("0x2")](wi("0x1"))));if(o[wi("0x16")]<1)return;const s=o[wi("0x2a")]((t=>this[wi("0x20")][wi("0x1a")].createRange(this[wi("0x20")][wi("0x1a")][wi("0x1d")](t,wi("0x36")),this[wi("0x20")].model[wi("0x1d")](t,0))));this[wi("0x20")][wi("0x1a")][wi("0x17")]((()=>{n[wi("0x2e")](s,{commandName:wi("0x12"),commandParams:[{reversed:e[wi("0x32")]}],formatGroupId:"listReversed"})}))}handleListStartCommand(t,e={}){const n=this[wi("0x20")].plugins[wi("0x9")](wi("0x6")),o=this[wi("0xc")]((t=>t.is(wi("0x15"),wi("0x24"))&&"numbered"===t.getAttribute(wi("0x1"))));if(o[wi("0x16")]<1)return;const s=o.map((t=>this[wi("0x20")][wi("0x1a")][wi("0x23")](this[wi("0x20")][wi("0x1a")][wi("0x1d")](t,"before"),this[wi("0x20")][wi("0x1a")][wi("0x1d")](t,0))));this[wi("0x20")][wi("0x1a")][wi("0x17")]((()=>{n[wi("0x2e")](s,{commandName:wi("0x25"),commandParams:[{startIndex:e[wi("0x13")]}],formatGroupId:wi("0x25")})}))}[wi("0x1b")](t){const e=this.editor[wi("0x33")],{data:n}=t;if(!n)return;let o,s;switch(n[wi("0x1f")]){case"listStyle":o="*Change to:* %0",s={type:wi("0x3a"),content:Yo(e,o,Yo(e,this[wi("0x28")](n[wi("0x38")][0][wi("0x39")])))};break;case"listReversed":o=n[wi("0x38")][0][wi("0x32")]?wi("0x22"):"*Format:* set order to regular",s={type:wi("0x3a"),content:Yo(e,o)};break;case"listStart":o=wi("0x26"),s={type:"format",content:Yo(e,o,n[wi("0x38")][0].startIndex)}}return s}[wi("0x31")](){var t,e,n,o;const s=this[wi("0x20")][wi("0x3")][wi("0x9")]("ListUtils");let r=Array.from(this[wi("0x20")][wi("0x1a")][wi("0x0")].selection[wi("0x10")]());return(null===(t=r[0])||void 0===t?void 0:t.is(wi("0x15"),"listItem"))&&r[wi("0x2f")](...s[wi("0xf")](this[wi("0x20")][wi("0x1a")][wi("0x0")].selection.getFirstPosition(),wi("0x1c"))),(null===(e=r[r[wi("0x16")]-1])||void 0===e?void 0:e.is("element","listItem"))&&r[wi("0x21")](...s.getSiblingNodes(this[wi("0x20")][wi("0x1a")][wi("0x0")].selection[wi("0x37")](),"forward")),r=[...new Set(r)],(null===(o=null===(n=this[wi("0x20")][wi("0x1a")].document.selection[wi("0x19")]())||void 0===n?void 0:n[wi("0xd")])||void 0===o?void 0:o.is(wi("0x15"),wi("0x24")))&&(r=r[wi("0x30")]((t=>t.is(wi("0x15"),wi("0x24"))))),r}[wi("0xc")](t){const e=this[wi("0x20")][wi("0x3")][wi("0x9")]("ListUtils");let n=Array[wi("0x27")](this[wi("0x20")].model[wi("0x0")][wi("0x35")][wi("0x10")]())[wi("0x30")](t)[wi("0x2a")]((t=>{const n=this[wi("0x20")].model[wi("0x1d")](t,0);return[...e[wi("0xf")](n,"backward"),...e[wi("0xf")](n,wi("0x18"))]})).flat();return n=[...new Set(n)],n}[wi("0x28")](t){return wi("0x11")+this.editor[wi("0x3")][wi("0x9")](wi("0xb")).getListTypeFromListStyleType(t).toUpperCase()+wi("0x8")+t[wi("0x3b")]().replace(/-/g,"_")}}const Fi=["elementToElement","enableCommand","plugins","stop","for","media","dataDowncast","afterInit","ELEMENT_MEDIA","data","showSuggestionHighlights","mediaEmbed","high","TrackChangesEditing","options","MediaEmbedEditing","has","conversion","editor","locale","createEmptyElement","_descriptionFactory"];var Pi,Di;Pi=Fi,Di=107,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0xa")](){const t=this[Bi("0x15")];if(!t[Bi("0x5")][Bi("0x13")](Bi("0x12")))return;const e=t[Bi("0x5")].get(Bi("0x10")),n=t[Bi("0x0")];e[Bi("0x4")](Bi("0xe")),e[Bi("0x2")].registerElementLabel("media",(t=>Yo(n,Bi("0xb"),t))),t[Bi("0x14")][Bi("0x7")](Bi("0x9"))[Bi("0x3")]({model:Bi("0x8"),view:(t,{writer:e,options:n})=>{if(n[Bi("0xd")])return e[Bi("0x1")]("div")},converterPriority:Bi("0xf")}),t[Bi("0xc")].downcastDispatcher.on("attribute:url:media",((t,e,n)=>{n[Bi("0x11")][Bi("0xd")]&&t[Bi("0x6")]()}),{priority:"high"})}}const Ui=["TrackChangesEditing","get","enableCommand","MentionEditing","afterInit","mention","has","plugins"];var Gi,Hi;Gi=Ui,Hi=244,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{[zi("0x0")](){const t=this.editor;t.plugins[zi("0x2")](zi("0x7"))&&t[zi("0x3")][zi("0x5")](zi("0x4"))[zi("0x6")](zi("0x1"))}}const Vi=["pageBreak","plugins","afterInit","editor","PageBreakEditing","enableCommand","registerElementLabel","get","locale","ELEMENT_PAGE_BREAK","has","_descriptionFactory","TrackChangesEditing"];var Ki,qi;Ki=Vi,qi=496,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{[Xi("0x0")](){const t=this[Xi("0x1")];if(!t[Xi("0xc")][Xi("0x8")](Xi("0x2")))return;t.plugins.get(Xi("0xa"))[Xi("0x3")](Xi("0xb"));const e=t[Xi("0xc")][Xi("0x5")](Xi("0xa")),n=t[Xi("0x6")];e[Xi("0x9")][Xi("0x4")](Xi("0xb"),(t=>Yo(n,Xi("0x7"),t)))}}const Ji=["activeMarkers","plugins","ELEMENT_PARAGRAPH","Paragraph","type","registerElementLabel","ck-suggestion-marker-split","isTouching","afterInit","registerDescriptionCallback","*Change to:* %0","isLimit","createUIElement","_descriptionFactory","paragraph","$text","filter","addMarker:suggestion:insertion","document","parent","insertParagraph","insertion","change","consumable","enableCommand","from","blockName","downcastDispatcher","showSuggestionHighlights","getSelectedBlocks","get","nodeAfter","writer","checkChild","getItemLabel","editing","ck-suggestion-marker--active","TrackChangesEditing","editor","bindElementToMarker","*Insert:* %0","has","commandName","includes","selection","getFirstRange","markerName","name","isBlock","end","markBlockFormat","markerRange","mapper","toViewPosition","model","locale","insert","options","addClass","highest","span","consume","schema"];var Qi,Zi;Qi=Ji,Zi=224,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0x24")](){const t=this[Yi("0x3")];if(!t[Yi("0x1d")][Yi("0x6")](Yi("0x1f")))return;const e=t[Yi("0x14")],n=t[Yi("0x1d")][Yi("0x3a")](Yi("0x2"));n[Yi("0x29")][Yi("0x21")](Yi("0x2a"),(t=>Yo(e,Yi("0x1e"),t))),n[Yi("0x34")](Yi("0x2a"),((e,o={})=>{const s=t[Yi("0x13")][Yi("0x2e")],r=o[Yi("0x9")]||s[Yi("0x9")],i=Array[Yi("0x35")](r[Yi("0x39")]())[Yi("0x2c")]((t=>{return e=t,(n=this.editor[Yi("0x13")][Yi("0x1b")])[Yi("0x3d")](e[Yi("0x2f")],Yi("0x2a"))&&!n.isObject(e)&&Yi("0x2a")!=e.name;var e,n}));t[Yi("0x13")][Yi("0x32")]((()=>{for(const t of i)n[Yi("0xf")](t,{commandName:"paragraph",commandParams:[],formatGroupId:Yi("0x36")},fs(t))}))})),n[Yi("0x29")][Yi("0x25")]((t=>{const{data:n}=t;if(n&&Yi("0x2a")==n[Yi("0x7")])return{type:"format",content:Yo(e,Yi("0x26"),Yo(e,"ELEMENT_PARAGRAPH"))}})),n[Yi("0x34")](Yi("0x30")),t[Yi("0x0")][Yi("0x37")].on(Yi("0x2d"),ex(t),{priority:"highest"}),t.data[Yi("0x37")].on(Yi("0x2d"),((e,n,o)=>{o[Yi("0x16")][Yi("0x38")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0x18")});const o=n[Yi("0x29")];o.registerDescriptionCallback((n=>{if("insertion"!==n[Yi("0x20")])return;const{start:s,end:r}=n[Yi("0xa")]();if(!s[Yi("0x23")](r)||!s[Yi("0x3b")])return;const i=t[Yi("0x13")].schema,x=s[Yi("0x3b")];return i[Yi("0xd")](x)&&!i[Yi("0x27")](x)&&i.checkChild(x,Yi("0x2b"))?{type:Yi("0x31"),content:Yo(e,Yi("0x5"),o[Yi("0x3e")](x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Yi("0x1d")][Yi("0x3a")]("TrackChangesEditing"),i=o.markerRange.start,x=o.markerRange[Yi("0xe")],a=t.model.schema;if(!i[Yi("0x23")](x)||!i[Yi("0x3b")])return;const c=i[Yi("0x3b")];if(a[Yi("0xd")](c)&&!a.isLimit(c)&&a[Yi("0x3d")](c,Yi("0x2b"))){if(!s[Yi("0x33")][Yi("0x1a")](o[Yi("0x10")],n[Yi("0xc")]))return;const t=s[Yi("0x3c")][Yi("0x28")](Yi("0x19"),{class:Yi("0x22")}),i=s[Yi("0x11")][Yi("0x12")](x);e&&r[Yi("0x1c")][Yi("0x8")](o[Yi("0xb")])&&s[Yi("0x3c")][Yi("0x17")](Yi("0x1"),t),s[Yi("0x3c")][Yi("0x15")](i,t),s[Yi("0x11")][Yi("0x4")](t,o[Yi("0xb")])}}}const nx=["removeFormat","commandName","getItems","schema","change","locale","markInlineFormat","isFormatting","isCollapsed","plugins","has","model","format","afterInit","from","*Remove all formatting*"];var ox,sx;ox=nx,sx=116,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[rx("0x9")](){const t=this.editor;if(!t[rx("0x5")][rx("0x6")]("RemoveFormatEditing"))return;const e=t[rx("0x5")].get("TrackChangesEditing");e.enableCommand(rx("0xc"),(n=>{const o=t[rx("0x7")].document.selection;o[rx("0x4")]?n():t[rx("0x7")][rx("0x0")]((()=>{const n=Array[rx("0xa")](o.getRanges());for(const o of n)for(const n of o[rx("0xe")]())xx(n,t[rx("0x7")][rx("0xf")])&&e[rx("0x2")](t.model.createRangeOn(n),{commandName:rx("0xc"),commandParams:[]})}))})),e._descriptionFactory.registerDescriptionCallback((e=>{const{data:n}=e;if(n&&rx("0xc")==n[rx("0xd")])return{type:rx("0x8"),content:Yo(t[rx("0x1")],rx("0xb"))}}))}}function xx(t,e){for(const[n]of t.getAttributes()){const t=e.getAttributeProperties(n);if(t&&t[rx("0x3")])return!0}return!1}const ax=["TrackChangesEditing","plugins","RestrictedEditingModeEditing","trackChanges","enableCommand","get","acceptSuggestion","discardSuggestion","discardAllSuggestions","acceptSelectedSuggestions","goToNextRestrictedEditingException","acceptAllSuggestions","goToPreviousRestrictedEditingException","discardSelectedSuggestions","has"];var cx,lx;cx=ax,lx=163,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const dx=function(t,e){return ax[t-=0]};class ux extends t.Plugin{afterInit(){const t=this.editor;if(!t[dx("0x3")][dx("0x1")](dx("0x4")))return;const e=t[dx("0x3")][dx("0x7")](dx("0x2"));e[dx("0x6")](dx("0xe")),e[dx("0x6")](dx("0xc"));const n=t.plugins[dx("0x7")](dx("0x4"));n.enableCommand(dx("0x5")),n.enableCommand(dx("0x8")),n[dx("0x6")](dx("0x9")),n[dx("0x6")](dx("0xd")),n.enableCommand(dx("0xa")),n[dx("0x6")](dx("0xb")),n[dx("0x6")](dx("0x0"))}}const gx=["init","downcastDispatcher","test","editing","softBreak","plugins","data","ELEMENT_LINE_BREAK","merge","requires","element","writer","addMarker:suggestion:insertion","showSuggestionHighlights","markerRange","model","locale","addClass","options","high","shiftEnter","split","TrackChangesEditing","mapper","deletion","activeMarkers","createPositionBefore","name","toViewPosition","addMarker:suggestion","bindElementToMarker","_descriptionFactory","get"];var mx,fx;mx=gx,fx=124,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{static get[hx("0x11")](){return[nr.ShiftEnter]}[hx("0x8")](){const t=this.editor,e=t[hx("0xd")][hx("0x7")](hx("0x1e"));e.enableCommand(hx("0x1c")),t[hx("0xb")][hx("0x9")].on(hx("0x14"),bx(t),{priority:hx("0x1b")}),t[hx("0xb")][hx("0x9")].on("addMarker:suggestion:deletion",bx(t),{priority:hx("0x1b")}),t[hx("0xe")].downcastDispatcher.on(hx("0x4"),((e,n,o)=>{o[hx("0x1a")][hx("0x15")]&&bx(t,{showActiveMarker:!1})(e,n,o)})),e[hx("0x6")].registerElementLabel("softBreak",(e=>Yo(t[hx("0x18")],hx("0xf"),e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[hx("0xd")].get(hx("0x1e"));if(!s.consumable[hx("0xa")](o[hx("0x16")],n[hx("0x2")]))return;const i=t[hx("0x17")];for(const t of o[hx("0x16")].getItems()){if(!t.is(hx("0x12"),hx("0xc")))continue;const n=hx("0x20")==o.markerName[hx("0x1d")](":")[1]?hx("0x10"):"split",x=s[hx("0x13")].createUIElement("span",{class:"ck-suggestion-marker-"+n}),a=s[hx("0x1f")][hx("0x3")](i[hx("0x1")](t));e&&r[hx("0x0")].includes(o.markerName)&&s.writer[hx("0x19")]("ck-suggestion-marker--active",x),s[hx("0x13")].insert(a,x),s[hx("0x1f")][hx("0x5")](x,o.markerName)}}}const Ex=["value","locale","restrictedEditingException","FORMAT_RESTRICTED_DISABLED","markInlineFormat","isCollapsed","document","getRanges","editor","plugins","FORMAT_RESTRICTED_ENABLED","forceValue","selection","afterInit","_descriptionFactory","StandardEditingModeEditing","enableCommand","registerDescriptionCallback","has","change","format","get"];var _x,Tx;_x=Ex,Tx=272,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{[Cx("0x5")](){const t=this[Cx("0x0")],e=t.model,n=t[Cx("0xf")];if(!t[Cx("0x1")][Cx("0xa")](Cx("0x7")))return;const o=t[Cx("0x1")][Cx("0xd")]("TrackChangesEditing"),s=Cx("0x10"),r=t.commands.get(s);o[Cx("0x8")](s,((t,n={})=>{const i=e[Cx("0x14")][Cx("0x4")];if(i[Cx("0x13")])return void t(n);const x=void 0!==n[Cx("0x3")]?n[Cx("0x3")]:!r[Cx("0xe")];e[Cx("0xb")]((()=>{const t=Array.from(i[Cx("0x15")]());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o[Cx("0x12")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Cx("0x6")][Cx("0x9")]((t=>{const{data:e}=t;if(e&&e.commandName==s)return e.commandParams[0].forceValue?{type:Cx("0xc"),content:Yo(n,Cx("0x2"))}:{type:Cx("0xc"),content:Yo(n,Cx("0x11"))}}))}}const kx=["model","config","inline","find","TrackChangesEditing","includes","style","createRangeOn","commands","element","block","toLowerCase","format","from","classes","_getStyleDefinition","enabledStyles","push","StyleUtils","plugins","getItems","styleName","get","markInlineFormat","normalizeConfig","_descriptionFactory","change","locale","getAncestors","style.definitions","markBlockFormat","has","forceValue","getSelectedBlocks","name","value","_getRangesWithClasses","style:","*Remove format:* %0","selection","getDefinitionsForView","*Format:* %0","registerDescriptionCallback","DataSchema","afterInit","getRanges","every","commandParams"];var Ax,vx;Ax=kx,vx=462,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{[Rx("0xe")](){const t=this.editor;if(!t[Rx("0x25")][Rx("0x1")]("Style"))return;const e=t[Rx("0x1a")][Rx("0x28")]("style"),n=t[Rx("0x25")][Rx("0x28")](Rx("0x16")),o=t[Rx("0x2d")],s=t[Rx("0x25")][Rx("0x28")](Rx("0xd")),r=t.plugins[Rx("0x28")](Rx("0x24"))[Rx("0x2a")](s,t[Rx("0x13")].get(Rx("0x2f")));n.enableCommand(Rx("0x18"),((o,{styleName:i})=>{const x=t[Rx("0x12")].document[Rx("0x9")],a=this[Rx("0x21")](i,r);if(!a)return;if(!e[Rx("0x22")][Rx("0x17")](i))return;if(x.isCollapsed&&!a.isBlock)return void o({styleName:i});const c=!e[Rx("0x5")][Rx("0x17")](a[Rx("0x4")]);if(a.isBlock){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Rx("0x2e")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[Rx("0x17")](o[Rx("0x4")])){n.add(o);break}}return n}(x[Rx("0x3")](),a.modelElements);t[Rx("0x12")][Rx("0x2c")]((()=>{for(const t of e)n[Rx("0x0")](t,{commandName:Rx("0x18"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:Rx("0x7")+i})}))}else{let e=Array[Rx("0x1f")](x[Rx("0xf")]());if(!c){const n=Array[Rx("0x1f")](s[Rx("0xa")](a[Rx("0x1b")],!1))[0].model,o=[];for(const s of e){const e=this[Rx("0x6")](t.model,s,a[Rx("0x20")],n);o[Rx("0x23")](...e)}e=o}t[Rx("0x12")][Rx("0x2c")]((()=>{for(const t of e)n[Rx("0x29")](t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0x2b")][Rx("0xc")]((t=>{const{data:e}=t;if(e&&Rx("0x18")===e.commandName)return e.commandParams[0][Rx("0x2")]?{type:"format",content:Yo(o,Rx("0xb"),e[Rx("0x11")][0][Rx("0x27")].toLowerCase())}:{type:Rx("0x1e"),content:Yo(o,Rx("0x8"),e[Rx("0x11")][0][Rx("0x27")][Rx("0x1d")]())}}))}[Rx("0x21")](t,e){let n=e[Rx("0x1c")][Rx("0x15")]((e=>e[Rx("0x4")]===t));return n||(n=e[Rx("0x14")].find((e=>e[Rx("0x4")]===t))),n}_getRangesWithClasses(t,e,n,o){const s=[];for(const r of e[Rx("0x26")]()){const e=r.getAttribute(o);e&&n[Rx("0x10")]((t=>e[Rx("0x20")][Rx("0x17")](t)))&&s.push(t[Rx("0x19")](r))}return s}}const Ix=["insertTableColumnRight","toViewElement","createPositionAt","data","from","MAX_SAFE_INTEGER","getItems","options","_tableSuggestions","getRowIndexes","isTouching","getRanges","getSelectionAffectedTableCells","position","every","hasAttribute","insertTableRowBelow","isArray","accept","fromRange","_tablePostFixingSubtypes","TrackChangesEditing","locale","ELEMENT_TABLE_WITH_TEXT","registerElementLabel","_getSuggestionCoords","createRangeIn","insertTable","_splitMarkerName","plugins","createTableWalker","getChangedMarkers","downcastDispatcher","setSelection","nodeAfter","includes","$textProxy","enqueueChange","tableRow","toLowerCase","addMarker:suggestion","_setupColumnsRowsFixing","selectTableRow","ELEMENT_TABLE_COLUMN","selection","startsWith","change:data","selectTableColumn","getColumnIndexes","ELEMENT_TABLE_ROW","table","batch","getCellLocation","createRangeOn","map","registerCustomCallback","type","join","removeTableColumn","_getCoordsForCells","some","order","document","getFirstRange","highest","last","findAncestor","minRow","writer","name","isEqual","get","markMultiRangeInsertion","isInContent","max","rowspan","registerDescriptionCallback","nodeBefore","*Remove:* %0","deletion","detach","insertion","removeTableRow","tableCell","oldRange","end","substr","mapper","insert","span","MIN_SAFE_INTEGER","TableUtils","cell","tableColumn","getAttribute","$graveyard","subType","tablePaste","refresh","removeClass","*Insert:* %0","change","colspan","getChanges","has","getContainedElement","addClass","discard","filter","start","TableEditing","commands","differ","model","left","element","item","above","first","ELEMENT_TABLE_COLUMN_WITH_TEXT","root","length","enableCommand","editor","add","getChildren","rootName","_suggestionFactory","maxRow","_descriptionFactory"];var Lx,Nx;Lx=Ix,Nx=496,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const Mx=function(t,e){return Ix[t-=0]};class wx extends t.Plugin{constructor(t){super(t),this._tablePostFixingSubtypes=["tableRow","tableColumn"],this[Mx("0x20")]=new Set}afterInit(){const t=this[Mx("0x11")],e=t[Mx("0x7")][Mx("0x56")][Mx("0x44")];if(!t.plugins[Mx("0x80")](Mx("0x4")))return;const n=t[Mx("0x2e")],o=t.plugins[Mx("0x5f")](Mx("0x2d")),s=t[Mx("0x35")][Mx("0x5f")]("TableUtils");o[Mx("0x17")][Mx("0x30")]("table",(t=>Yo(n,"ELEMENT_TABLE",t))),this[Mx("0x41")](),o[Mx("0x10")](Mx("0x33")),o[Mx("0x10")](Mx("0x42")),o[Mx("0x10")](Mx("0x47"));for(const n of["insertTableRowAbove",Mx("0x28")]){const r=t[Mx("0x5")][Mx("0x5f")](n);o[Mx("0x10")](n,(n=>{t[Mx("0x7")][Mx("0x7d")]((t=>{n();const i=Mx("0xb")===r[Mx("0x55")],x=s[Mx("0x24")](e),a=s[Mx("0x21")](x),c=i?a.first-1:a.last+1,l=x[0].findAncestor(Mx("0x4a")),d=s.createTableWalker(l,{startRow:c,endRow:c}),u=Array[Mx("0x1c")](d)[Mx("0x4e")]((e=>t[Mx("0x4d")](e[Mx("0x74")])));o[Mx("0x60")](u,"tableRow")}))}))}for(const n of["insertTableColumnLeft",Mx("0x18")]){const r=t.commands.get(n);o.enableCommand(n,(n=>{t[Mx("0x7")].change((t=>{n();const i=Mx("0x8")===r[Mx("0x55")],x=s[Mx("0x24")](e),a=s[Mx("0x48")](x),c=i?a[Mx("0xc")]-1:a[Mx("0x59")]+1,l=x[0].findAncestor(Mx("0x4a")),d=s[Mx("0x36")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[Mx("0x1c")](d)[Mx("0x4e")]((e=>t[Mx("0x4d")](e[Mx("0x74")])));o[Mx("0x60")](u,Mx("0x75"))}))}))}for(const n of[Mx("0x6a"),Mx("0x52")]){const r=n[Mx("0x6e")](11),i=r.toLowerCase(),x=i[Mx("0x6e")](0,3)+Mx("0x71"),a=Mx("0x4a")+r,c="min"+r,l=Mx("0x62")+r;o.enableCommand(n,(()=>{t[Mx("0x7")][Mx("0x7d")]((t=>{const r=s[Mx("0x24")](e),d=r[0][Mx("0x5a")](Mx("0x4a"));let u;if(Mx("0x6a")==n){const t=s[Mx("0x21")](r);u={startRow:t.first,endRow:t[Mx("0x59")],includeAllSlots:!0}}else{const t=s[Mx("0x48")](r);u={startColumn:t[Mx("0xc")],endColumn:t[Mx("0x59")],includeAllSlots:!0}}const g=s[Mx("0x36")](d,u),m=Array[Mx("0x1c")](g).map((({cell:t})=>t)),f=Ox(m[Mx("0x2")]((t=>t[Mx("0x27")](x)))),h=Ox(m[Mx("0x2")]((t=>!t[Mx("0x27")](x))))[Mx("0x4e")]((e=>t[Mx("0x4d")](e))),p=o.markMultiRangeDeletion(h,a);if(p&&(Mx("0x3e")==p[Mx("0x78")]||Mx("0x75")==p.subType)){const e=this[Mx("0x31")](p);for(const n of f){const o=t.createRangeOn(n),r=s[Mx("0x4c")](n),a=n[Mx("0x76")](x)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+a<=u&&p.addRange(o)}}}))}))}function r(n){const o=Array.from(e[Mx("0x23")]())[Mx("0x4e")]((t=>i.LiveRange.fromRange(t)));t[Mx("0x7")][Mx("0x7d")]((e=>{const s=e[Mx("0x4b")];n=n[Mx("0x2")]((t=>Mx("0x77")!=t[Mx("0xe")].rootName)),e.setSelection(n),t[Mx("0x5")][Mx("0x5f")](Mx("0x6a"))[Mx("0x7a")](),t.execute(Mx("0x6a"),{forceDefaultExecution:!0}),t[Mx("0x7")].enqueueChange((()=>{t[Mx("0x7")][Mx("0x3d")](s,(t=>{const e=o[Mx("0x2")]((t=>"$graveyard"!=t.root[Mx("0x14")]));e[Mx("0xf")]>0&&t[Mx("0x39")](e);for(const t of o)t[Mx("0x68")]()}))}))}))}function a(n){t[Mx("0x7")].change((o=>{const s=Array[Mx("0x1c")](e[Mx("0x23")]()).map((t=>i.LiveRange[Mx("0x2b")](t))),r=[];for(const t of n)for(const e of t.getItems({shallow:!0}))r.push(e);for(const e of r)"$graveyard"!=e[Mx("0xe")][Mx("0x14")]&&(o[Mx("0x39")](o[Mx("0x1a")](e,0)),t[Mx("0x5")][Mx("0x5f")]("removeTableColumn")[Mx("0x7a")](),t.execute("removeTableColumn",{forceDefaultExecution:!0}));const x=s[Mx("0x2")]((t=>"$graveyard"!=t[Mx("0xe")][Mx("0x14")]));x[Mx("0xf")]>0&&o.setSelection(x);for(const t of s)t[Mx("0x68")]()}))}function c(t,e){return e[Mx("0x26")]((e=>t[Mx("0x54")]((t=>t.end[Mx("0x5e")](e[Mx("0x3")])||e[Mx("0x6d")][Mx("0x5e")](t[Mx("0x3")])))))}function l(t,e){return t[Mx("0x54")]((t=>e[Mx("0x54")]((e=>t.end[Mx("0x22")](e[Mx("0x3")])))))}t[Mx("0x1b")][Mx("0x38")].on(Mx("0x40"),((t,e,n)=>{if(!n[Mx("0x1f")].showSuggestionHighlights)return;const o=e[Mx("0xa")];if(!o)return;const s=n[Mx("0x6f")][Mx("0x19")](o);function r(t){return Array[Mx("0x29")](t)?t:[t]}s&&Mx("0x6b")===o[Mx("0x5d")]&&(0,x.setHighlightHandling)(s,n[Mx("0x5c")],((t,e,n)=>n[Mx("0x0")](r(e.classes),t)),((t,e,n)=>n[Mx("0x7b")](r(e.classes),t)))}),{priority:Mx("0x58")}),o[Mx("0x17")][Mx("0x64")]((t=>{if("insertion"!=t[Mx("0x50")]&&Mx("0x67")!=t.type)return;const e=t[Mx("0x81")]();if(null!=e&&e.is(Mx("0x9"),Mx("0x4a"))){if(Mx("0x69")==t[Mx("0x50")]){const e=t[Mx("0x1e")]()[Mx("0x2")]((t=>t.is(Mx("0x3c")))).map((t=>t[Mx("0x1b")]));if(e[Mx("0xf")])return{type:Mx("0x69"),content:Yo(n,Mx("0x7c"),Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e.join(" ")+'"'))}}if(Mx("0x67")==t[Mx("0x50")]){const e=t[Mx("0x1e")]()[Mx("0x2")]((t=>t.is(Mx("0x3c"))))[Mx("0x4e")]((t=>t[Mx("0x1b")]));if(e.length)return{type:"deletion",content:Yo(n,Mx("0x66"),Yo(n,Mx("0x2f"),'"'+e[Mx("0x51")](" ")+'"'))}}}})),o[Mx("0x17")][Mx("0x64")]((t=>{if("tableRow"==t[Mx("0x78")]){const e=t[Mx("0x1e")]().filter((t=>t.is(Mx("0x3c"))))[Mx("0x4e")]((t=>t[Mx("0x1b")])),o=this._getSuggestionCoords(t),s=o[Mx("0x16")]-o[Mx("0x5b")]+1;if(Mx("0x69")==t[Mx("0x50")])return e[Mx("0xf")]?{type:"insertion",content:Yo(n,Mx("0x7c"),Yo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[s,'"'+e[Mx("0x51")](" ")+'"']))}:{type:Mx("0x69"),content:Yo(n,Mx("0x7c"),Yo(n,Mx("0x49"),s))};if(Mx("0x67")==t[Mx("0x50")])return e.length?{type:Mx("0x67"),content:Yo(n,Mx("0x66"),Yo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[s,'"'+e[Mx("0x51")](" ")+'"']))}:{type:Mx("0x67"),content:Yo(n,Mx("0x66"),Yo(n,Mx("0x49"),s))}}if(Mx("0x75")==t[Mx("0x78")]){const e=t[Mx("0x1e")]().filter((t=>t.is(Mx("0x3c"))))[Mx("0x4e")]((t=>t.data)),o=this[Mx("0x31")](t),s=o.maxColumn-o.minColumn+1;if("insertion"==t[Mx("0x50")])return e[Mx("0xf")]?{type:"insertion",content:Yo(n,"*Insert:* %0",Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e[Mx("0x51")](" ")+'"']))}:{type:"insertion",content:Yo(n,Mx("0x7c"),Yo(n,Mx("0x43"),s))};if(Mx("0x67")==t[Mx("0x50")])return e[Mx("0xf")]?{type:Mx("0x67"),content:Yo(n,Mx("0x66"),Yo(n,Mx("0xd"),[s,'"'+e[Mx("0x51")](" ")+'"']))}:{type:Mx("0x67"),content:Yo(n,Mx("0x66"),Yo(n,"ELEMENT_TABLE_COLUMN",s))}}})),o[Mx("0x15")].registerCustomCallback(Mx("0x69"),Mx("0x3e"),Mx("0x1"),r),o[Mx("0x15")].registerCustomCallback("deletion",Mx("0x3e"),Mx("0x2a"),r),o[Mx("0x15")].registerCustomCallback(Mx("0x69"),"tableColumn",Mx("0x1"),a),o._suggestionFactory.registerCustomCallback("deletion",Mx("0x75"),Mx("0x2a"),a),o[Mx("0x15")][Mx("0x4f")](Mx("0x69"),Mx("0x75"),Mx("0x51"),c),o[Mx("0x15")].registerCustomCallback(Mx("0x67"),Mx("0x75"),Mx("0x51"),c),o[Mx("0x15")].registerCustomCallback(Mx("0x69"),Mx("0x3e"),"join",l),o[Mx("0x15")][Mx("0x4f")]("deletion","tableRow","join",l)}_acceptFormatSuggestionCallbackFactory(){const t=this[Mx("0x11")],e=t[Mx("0x7")].document[Mx("0x44")];return(n,o)=>{t[Mx("0x7")].change((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][Mx("0x6d")][Mx("0x65")];x&&x[0]&&!1===x[0].forceValue&&(a=n[0].start[Mx("0x3a")]);const c=s[Mx("0x32")](a);if(Mx("0x77")==c.root[Mx("0x14")])return;const l=Array[Mx("0x1c")](e[Mx("0x23")]())[Mx("0x4e")]((t=>i.LiveRange[Mx("0x2b")](t)));s[Mx("0x39")](c),t[Mx("0x5")][Mx("0x5f")](r)[Mx("0x7a")](),x.push({forceDefaultExecution:!0}),t.execute(r,...x);const d=l[Mx("0x2")]((t=>Mx("0x77")!=t[Mx("0xe")].rootName));d[Mx("0xf")]>0&&s[Mx("0x39")](d);for(const t of l)t[Mx("0x68")]()}))}}[Mx("0x53")](t){const e=this[Mx("0x11")][Mx("0x35")][Mx("0x5f")](Mx("0x73"));let n=Number[Mx("0x1d")],o=Number[Mx("0x72")],s=Number.MAX_SAFE_INTEGER,r=Number[Mx("0x72")];for(const i of t){if(Mx("0x77")==i[Mx("0xe")].rootName)continue;const{row:t,column:x}=e[Mx("0x4c")](i),a=i[Mx("0x27")]("rowspan")?i.getAttribute(Mx("0x63"))-1:0,c=i[Mx("0x27")](Mx("0x7e"))?i[Mx("0x76")](Mx("0x7e"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,s=x<s?x:s,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:s,maxColumn:r}}[Mx("0x41")](){const t=this[Mx("0x11")],e=t[Mx("0x35")][Mx("0x5f")](Mx("0x2d")),n=t.plugins[Mx("0x5f")](Mx("0x73"));t.model[Mx("0x56")].on(Mx("0x46"),(()=>{const n=Array.from(t[Mx("0x7")].document[Mx("0x6")][Mx("0x37")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Mx("0x34")](t);if("suggestion"!=n)continue;if(null!=o[Mx("0x6c")])continue;const i=e.getSuggestion(s);this[Mx("0x2c")][Mx("0x3b")](r)&&this._tableSuggestions[Mx("0x12")](i)}}),{priority:"low"});const o=(t,e)=>{let o=!1;const s=e[Mx("0x4d")](t),r=t[Mx("0x5a")]("table"),i=n[Mx("0x4c")](t);for(const e of this[Mx("0x20")]){const n=e.subType,x=n[Mx("0x45")](Mx("0x79")),a=n[Mx("0x6e")](x?10:5),c=a[Mx("0x3f")](),l=c[Mx("0x6e")](0,3)+"span",d="min"+a,u=Mx("0x62")+a;if(!e[Mx("0x61")])continue;if(r!=e[Mx("0x57")]().start[Mx("0x5a")](Mx("0x4a")))continue;if(e.isIntersectingWithRange(s))continue;const g=t.hasAttribute(l)?t[Mx("0x76")](l)-1:0,m=this._getSuggestionCoords(e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e.addRange(s),o=!0)}return o};t.model[Mx("0x56")].registerPostFixer((e=>{let n=!1;for(const s of t[Mx("0x7")][Mx("0x56")].differ[Mx("0x7f")]())if(Mx("0x70")==s[Mx("0x50")])if(Mx("0x3e")==s[Mx("0x5d")])for(const t of s[Mx("0x25")].nodeAfter[Mx("0x13")]())n=n||o(t,e);else Mx("0x6b")==s[Mx("0x5d")]&&(n=n||o(s[Mx("0x25")].nodeAfter,e));return n}))}[Mx("0x31")](t){return this[Mx("0x53")](t[Mx("0x23")]()[Mx("0x4e")]((t=>t[Mx("0x3")].nodeAfter)))}}function Ox(t){return Array[Mx("0x1c")](new Set(t).values())}const Fx=["TableUtils","low","plugins","find","value","map","setSelection","formatBlock","getSuggestions","markMultiRangeBlockFormat","detach","model","registerCustomCallback","getFirstPosition","locale","type","splitTableCellVertically","_acceptFormatSuggestionCallbackFactory","has","return","document","fromRange","mergeTableCellLeft","enableCommand","getSelectionAffectedTableCells","stop","commands","horizontally","highest","accept","from","format","trackChanges","cell","$graveyard","forceDefaultExecution","tableCell","mergeTableCellDown","length","table","mergeTableCellRight","add","splitTableCellHorizontally","_isForcedDefaultExecutionBlock","registerDescriptionCallback","_descriptionFactory","get","direction","refresh","editor","mergeTableCells","TrackChangesEditing","commandName","markBlockFormat","author","selection","_areSelectedCellsMergable","subType","_areMergableCells","*Merge cells*","createTableWalker","size","insertion","*Split cell:* vertically","getAncestors","getCellLocation","filter","afterInit","element","TableEditing","_suggestionFactory","mergeTableCellUp","createRangeOn","change","isEnabled"];var Px,Dx;Px=Fx,Dx=166,function(t){for(;--t;)Px.push(Px.shift())}(++Dx);const Bx=function(t,e){return Fx[t-=0]};class jx extends t.Plugin{static get requires(){return[wx]}[Bx("0x33")](){const t=this[Bx("0x21")],e=t[Bx("0x46")][Bx("0x4")][Bx("0x27")],n=t[Bx("0x49")];if(!t[Bx("0x3d")].has(Bx("0x35")))return;const o=t[Bx("0x3d")][Bx("0x1e")](Bx("0x23")),s=t[Bx("0x3d")].get(Bx("0x3b")),r=t.plugins[Bx("0x1e")](wx);r._tablePostFixingSubtypes.push("mergeTableCells"),o[Bx("0x7")]("mergeTableCells",(()=>{const e=s[Bx("0x8")](t[Bx("0x46")][Bx("0x4")][Bx("0x27")]);t[Bx("0x46")][Bx("0x39")]((()=>{o[Bx("0x44")](e,{commandName:Bx("0x22"),commandParams:[]},[],Bx("0x22"))}))})),t[Bx("0xa")].get(Bx("0x22")).on("execute",((e,n)=>{t[Bx("0xa")][Bx("0x1e")](Bx("0x10"))[Bx("0x3f")]&&(n[Bx("0x16")]>0&&n[n[Bx("0x16")]-1]&&n[n.length-1][Bx("0x13")]||o[Bx("0x1b")]||this._areSelectedCellsMergable()||e[Bx("0x9")]())}),{priority:Bx("0xc")});for(const e of["mergeTableCellUp",Bx("0x18"),Bx("0x15"),Bx("0x6")]){const n=t.commands[Bx("0x1e")](e);o[Bx("0x7")](e,(()=>{const e=t[Bx("0x46")].document[Bx("0x27")][Bx("0x48")]().getAncestors().find((t=>t.is(Bx("0x34"),Bx("0x14")))),s=n[Bx("0x3f")];t[Bx("0x46")][Bx("0x39")]((()=>{o[Bx("0x44")]([e,s],{commandName:Bx("0x22"),commandParams:[]},[],Bx("0x22"))}))}))}for(const e of["splitTableCellVertically",Bx("0x1a")]){const n=t.commands.get(e);o.enableCommand(e,(()=>{const r=s[Bx("0x8")](t[Bx("0x46")][Bx("0x4")][Bx("0x27")])[0],i=r.findAncestor(Bx("0x17")),{column:x,row:a}=s[Bx("0x31")](r);let c=[];if(Bx("0xb")==n[Bx("0x1f")]){const t=s.createTableWalker(i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0xe")](t)[Bx("0x40")]((t=>t[Bx("0x11")]))}else{const t=s[Bx("0x2c")](i,{column:x,includeAllSlots:!0});c=Array[Bx("0xe")](t)[Bx("0x40")]((t=>t[Bx("0x11")]))}t.model[Bx("0x39")]((t=>{o[Bx("0x25")](t[Bx("0x38")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[Bx("0x1d")][Bx("0x1c")]((t=>{const{data:e}=t;if(e)return"mergeTableCells"==e[Bx("0x24")]?{type:Bx("0xf"),content:Yo(n,Bx("0x2b"))}:void 0})),o[Bx("0x1d")].registerDescriptionCallback((t=>{const{data:e}=t;if(e)return Bx("0x0")==e[Bx("0x24")]?{type:"format",content:Yo(n,Bx("0x2f"))}:"splitTableCellHorizontally"==e.commandName?{type:Bx("0xf"),content:Yo(n,"*Split cell:* horizontally")}:void 0}));const x=r[Bx("0x1")]();for(const t of[Bx("0x37"),"mergeTableCellRight",Bx("0x15"),Bx("0x6")])o[Bx("0x36")].registerCustomCallback("formatBlock",t,Bx("0xd"),x);for(const t of["splitTableCellVertically",Bx("0x1a")])o[Bx("0x36")].registerCustomCallback("formatBlock",t,"accept",x);o[Bx("0x36")][Bx("0x47")](Bx("0x42"),Bx("0x22"),Bx("0xd"),(n=>{t[Bx("0x46")][Bx("0x39")]((o=>{const s=Array[Bx("0xe")](e.getRanges())[Bx("0x40")]((t=>i.LiveRange[Bx("0x5")](t)));o[Bx("0x41")](n),t[Bx("0xa")][Bx("0x1e")](Bx("0x22"))[Bx("0x20")](),t.execute(Bx("0x22"),{forceDefaultExecution:!0});const r=s[Bx("0x32")]((t=>Bx("0x12")!=t.root.rootName));r[Bx("0x16")]>0&&o[Bx("0x41")](r);for(const t of s)t[Bx("0x45")]()}))}));for(const e of[Bx("0x37"),Bx("0x15"),Bx("0x6"),Bx("0x18")]){const n=t.commands[Bx("0x1e")](e);n.on("set:isEnabled",((e,o,s)=>{if(s){const o=t[Bx("0x46")][Bx("0x4")].selection[Bx("0x48")]()[Bx("0x30")]()[Bx("0x3e")]((t=>t.is(Bx("0x34"),Bx("0x14"))));this[Bx("0x2a")](n[Bx("0x3f")],o)||(e[Bx("0x3")]=!1,e[Bx("0x9")]())}}),{priority:Bx("0x3c")})}}[Bx("0x28")](){const t=this[Bx("0x21")][Bx("0xa")][Bx("0x1e")]("mergeTableCells"),e=this[Bx("0x21")][Bx("0x3d")][Bx("0x1e")](Bx("0x3b"));if(!t[Bx("0x3a")])return!1;const n=e[Bx("0x8")](this[Bx("0x21")][Bx("0x46")].document.selection);for(const t of n)for(const e of n)if(t!=e&&!this[Bx("0x2a")](t,e))return!1;return!0}[Bx("0x2a")](t,e){const n=this[Bx("0x21")][Bx("0x3d")][Bx("0x1e")]("TrackChangesEditing"),o=this.editor.model[Bx("0x38")](t),s=this[Bx("0x21")].model.createRangeOn(e),r=new Set,i=new Set;for(const t of n[Bx("0x43")]())if((Bx("0x2e")==t[Bx("0x4a")]||"deletion"==t.type||Bx("0x22")==t[Bx("0x29")])&&t.isInContent)for(const e of t.getRanges())e.containsRange(o,!0)&&r[Bx("0x19")](t[Bx("0x4a")]+":"+t[Bx("0x26")].id),e.containsRange(s,!0)&&i[Bx("0x19")](t[Bx("0x4a")]+":"+t[Bx("0x26")].id);if(r.size!=i[Bx("0x2d")])return!1;for(const t of r)if(!i[Bx("0x2")](t))return!1;return!0}}const Ux=["showSuggestionHighlights","parent","index","enableCommand","removeAttribute","options","consumable","registerCustomCallback","table","isBefore","ck-suggestion-marker--active","formatBlock","name","item","locale","getSelectionAffectedTableCells","ck-suggestion-marker-","createTableWalker","editor","headingRows","toViewElement","first","findAncestor","removeClass","change","accept","TableEditing","model","_suggestionFactory","unbindElementFromMarkerName","end","setTableRowHeader","createRange","afterInit","nodeAfter","markerName","FORMAT_REGULAR_COLUMN","data","addMarker:suggestion","setAttribute","markBlockFormat","TableUtils","requires","value","data-suggestion","setTableColumnHeader","get","createPositionBefore","document","mapper","highest","plugins","getSuggestion","nodeBefore","forceValue","cell","TrackChangesEditing","getAttribute","addClass","commandName","*Format:* %0","commands","getColumnIndexes","markerRange","createPositionAfter","registerDescriptionCallback","format","FORMAT_REGULAR_ROW","getCellLocation","headingColumns","downcastDispatcher","writer","last","editing","bindElementToMarker","getChild","_acceptFormatSuggestionCallbackFactory","_descriptionFactory","childCount","removeMarker:suggestion","selection","commandParams","has"];var Gx,Hx;Gx=Ux,Hx=317,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const zx=function(t,e){return Ux[t-=0]};class Wx extends t.Plugin{static get[zx("0x39")](){return[wx]}[zx("0x30")](){const t=this[zx("0x21")];if(!t[zx("0x42")][zx("0xe")](zx("0x29")))return;const e=t[zx("0x1d")],n=t[zx("0x42")][zx("0x3d")](zx("0x47")),o=t[zx("0x42")][zx("0x3d")]("TableUtils"),s=t[zx("0x42")][zx("0x3d")](wx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n._splitMarkerName(r[zx("0x32")]),c=n[zx("0x43")](a);if(!c[zx("0x34")]||zx("0x3c")!=c[zx("0x34")][zx("0x4a")])return;if(r[zx("0x1c")])return void s.stop();if(!i[zx("0x15")].consume(r[zx("0x4e")],s[zx("0x1b")]))return;const l=r.markerRange.start[zx("0x31")],d=r[zx("0x4e")][zx("0x2d")][zx("0x44")],u=l.parent[zx("0x10")],{column:g}=o[zx("0x0")](l),{column:m}=o.getCellLocation(d);for(let s=g;s<=m;s++){const c=o[zx("0x20")](u,{column:s,includeAllSlots:!1});for(const o of c){const s=o.cell,c=i[zx("0x40")][zx("0x23")](s);i.writer[zx("0x49")]("ck-suggestion-marker-"+x,c),e&&i.writer[zx("0x36")](zx("0x3b"),a,c),i[zx("0x40")][zx("0x6")](c,r[zx("0x32")]),t&&(n.activeMarkers.includes(r[zx("0x32")])?i[zx("0x3")].addClass("ck-suggestion-marker--active",c):i.writer[zx("0x26")]("ck-suggestion-marker--active",c))}}}}n.enableCommand(zx("0x2e"),((e,s)=>{const r=o[zx("0x1e")](t.model[zx("0x3f")][zx("0xc")]),i=o.getRowIndexes(r),x=r[0][zx("0x25")](zx("0x17")),a=x.getAttribute(zx("0x22"))||0,c=s&&null!==s[zx("0x45")]?s[zx("0x45")]:!t[zx("0x4c")][zx("0x3d")](zx("0x2e"))[zx("0x3a")],l=c?i[zx("0x4")]:i[zx("0x24")],d=x[zx("0x7")](l);let u;if(c){const e=x[zx("0x7")](a);if(d[zx("0x11")]<e.index)return;u=t.model[zx("0x2f")](t[zx("0x2a")][zx("0x3e")](e.getChild(0)),t[zx("0x2a")][zx("0x4f")](d[zx("0x7")](d.childCount-1)))}else{const e=x.getChild(a-1);if(!e)return;u=t.model[zx("0x2f")](t.model[zx("0x3e")](d.getChild(0)),t[zx("0x2a")][zx("0x4f")](e[zx("0x7")](e[zx("0xa")]-1)))}t[zx("0x2a")].change((()=>{n[zx("0x37")](u,{commandName:zx("0x2e"),commandParams:[{forceValue:c}]},[],zx("0x2e"))}))})),n[zx("0x12")]("setTableColumnHeader",((e,o)=>{const s=t[zx("0x42")][zx("0x3d")](zx("0x38")),r=s.getSelectionAffectedTableCells(t[zx("0x2a")].document.selection),i=s[zx("0x4d")](r),x=r[0].findAncestor(zx("0x17")),a=x[zx("0x48")](zx("0x1"))||0,c=o&&null!==o.forceValue?o[zx("0x45")]:!t[zx("0x4c")][zx("0x3d")]("setTableColumnHeader").value;let l;const d=x[zx("0x7")](0),u=c?i.last:i[zx("0x24")],g=s[zx("0x20")](x,{startRow:0,column:u,includeAllSlots:!1}),m=Array.from(g)[0][zx("0x46")];if(c){const e=d.getChild(a);if(m[zx("0x18")](e))return;l=t[zx("0x2a")][zx("0x2f")](t[zx("0x2a")].createPositionBefore(e),t[zx("0x2a")].createPositionAfter(m))}else{const e=d.getChild(a-1);if(!e)return;l=t[zx("0x2a")][zx("0x2f")](t.model[zx("0x3e")](m),t.model[zx("0x4f")](e))}t[zx("0x2a")][zx("0x27")]((()=>{n[zx("0x37")](l,{commandName:zx("0x3c"),commandParams:[{forceValue:c}]},[],zx("0x3c"))}))})),t.editing[zx("0x2")].on(zx("0x35"),r(),{priority:zx("0x41")}),t[zx("0x34")][zx("0x2")].on(zx("0x35"),((t,e,n)=>{n[zx("0x14")][zx("0xf")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:zx("0x41")}),t[zx("0x5")][zx("0x2")].on(zx("0xb"),((t,e,o)=>{const{type:s,id:r}=n._splitMarkerName(e[zx("0x32")]),i=n[zx("0x43")](r);if(!i.data||"setTableColumnHeader"!=i[zx("0x34")][zx("0x4a")])return;const x=o[zx("0x40")].markerNameToElements(e[zx("0x32")]);if(x)for(const t of x)o[zx("0x3")].removeClass(zx("0x1f")+s,t),o[zx("0x3")][zx("0x26")](zx("0x19"),t),o[zx("0x3")][zx("0x13")](zx("0x3b"),t),o[zx("0x40")][zx("0x2c")](t,e[zx("0x32")])}),{priority:zx("0x41")}),n[zx("0x9")][zx("0x50")]((t=>{const{data:n}=t;if(n){if(zx("0x2e")==n[zx("0x4a")]){const t=n[zx("0xd")][0][zx("0x45")];return o(Yo(e,t?"FORMAT_HEADER_ROW":zx("0x52")))}if(zx("0x3c")==n.commandName){const t=n.commandParams[0].forceValue;return o(Yo(e,t?"FORMAT_HEADER_COLUMN":zx("0x33")))}}function o(t){return{type:zx("0x51"),content:Yo(e,zx("0x4b"),t)}}}));const i=s[zx("0x8")]();n[zx("0x2b")][zx("0x16")](zx("0x1a"),"setTableRowHeader",zx("0x28"),i),n[zx("0x2b")].registerCustomCallback(zx("0x1a"),"setTableColumnHeader","accept",i)}}const Vx=["suggestion-td","document","getAttributes","previous","editing","findAncestor","tableCellBorderWidth","row","root","next","suggestion","differ","find","markMultiRangeBlockFormat","markers","tablePasteChainId","nodeAfter","columns","getShiftedBy","formatBlock","name","updateMarker","add","getSuggestionCallback","removeRows","options","documentSelection","getItems","suggestion:formatBlock:tablePasteCell","dataDowncast","newRange","subType","batch","move","start","includes","has","createPositionBefore","length","startsWith","tableCellHorizontalAlignment","for","tablePasteColumn","_isForcedDefaultExecutionBlock","element","tableCellBorderStyle","createRangeOn","createRangeIn","_splitMarkerName","isEqual","_suggestionFactory","_createdBatches","map","_descriptionFactory","tableCellBackgroundColor","getTableIfOnlyTableInContent","rowInsertionRanges","columnInsertionIndexes","unwrap","TrackChangesEditing","content","_tablePostFixingSubtypes","column","markMultiRangeDeletion","getSuggestion","tablePaste","rootName","table","tablePasteCell","requires","endRow","tableCell","last","schema","first","insertColumns","insertContent","model","markerName","getContainedElement","cell","getSuggestions","getRowIndexes","endColumn","showSuggestionHighlights","selection","ck-suggestion-marker--active","wrap","remove","author","getAllAdjacentSuggestions","containsRange","low","*Replace table cells*","oldRange","getChild","getColumnIndexes","getRanges","_getCoordsForCells","change","markerAttributes","suggestionLoaded","TableClipboard","Users","markerToHighlight","deletion","tableCellVerticalAlignment","some","tableCellPadding","clipboardOutput","attributes","discard","type","editingDowncast","end","getMarkers","reduce","_replaceTableSlotCell","rowInsertionIndexes","isInContent","afterInit","insertion","plugins","previousSibling","insert","getChangedMarkers","from","push","isEmpty","createTableWalker","accept","filter","insertRows","view","get","tableCellSuggestion","entries","keys","fill","TableUtils","set","getRange","registerPostFixer","paragraph","high","registerCustomCallback","stop","cells","markMultiRangeInsertion","conversion","locale","position","ck-suggestion-marker-insertion","createElement","ck-suggestion-marker","getChildren","deletionRanges","forceDefaultExecution","editor","getRows","removeMarker","$graveyard","trackChanges","tablePasteRow","elementToElement","every","commands"];var Kx,qx;Kx=Vx,qx=197,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]},$x=[Xx("0x8f"),"tableCellBorderColor",Xx("0xf"),Xx("0xa"),Xx("0x4c"),Xx("0x18"),Xx("0x4e")],Jx=Object.fromEntries($x[Xx("0x16")]((t=>[t,null])));class Qx extends t.Plugin{static get[Xx("0x27")](){return[wx]}[Xx("0x5a")](){const t=this.editor;if(!t[Xx("0x5c")][Xx("0x6")](Xx("0x48")))return;const n=t.plugins.get(Xx("0x1d")),o=t[Xx("0x5c")][Xx("0x68")](Xx("0x6d")),s=t[Xx("0x5c")][Xx("0x68")](wx),r=t[Xx("0x5c")][Xx("0x68")](Xx("0x48"));s[Xx("0x1f")][Xx("0x61")](Xx("0x85"),Xx("0xc")),t[Xx("0x2f")][Xx("0x2b")].register(Xx("0x69"),{allowIn:Xx("0x29"),allowContentOf:Xx("0x29"),isLimit:!0}),t[Xx("0x77")][Xx("0x86")]({model:Xx("0x69"),view:Xx("0x89")});let i=null;t[Xx("0x2f")].on(Xx("0x2e"),((s,x)=>{const[a,c]=x,l=x[x[Xx("0x8")]-1];l&&l[Xx("0x7f")]||n[Xx("0xd")]||this[Xx("0x80")][Xx("0x88")][Xx("0x68")](Xx("0x84")).value&&function(t,e,n,o,s){if(e&&!e.is(Xx("0xa3")))return!1;const r=s[Xx("0x19")](t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o.getSelectionAffectedTableCells(n[Xx("0x8a")][Xx("0x37")]);if(!i[Xx("0x8")])return!1;const x=i[0][Xx("0x8e")](Xx("0x25")),a=o[Xx("0x34")](i),c=o[Xx("0x42")](i),l={startRow:a[Xx("0x2c")],endRow:a[Xx("0x2a")],startColumn:c[Xx("0x2c")],endColumn:c.last};return 1==i[Xx("0x8")]&&(l[Xx("0x28")]+=o[Xx("0x81")](r)-1,l[Xx("0x35")]+=o.getColumns(r)-1),Yx(x,l,o)}(a,c,t[Xx("0x2f")],o,r)&&(s[Xx("0x74")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Xx("0x2f")][Xx("0x45")]((()=>{t[Xx("0x2f")].insertContent(x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=i;s.length&&n[Xx("0x76")](s,Xx("0x85"),{tablePasteChainId:o}),r[Xx("0x8")]&&n.markMultiRangeInsertion(r,Xx("0xc"),{tablePasteChainId:o}),a[Xx("0x8")]&&n[Xx("0x76")](a,Xx("0x23"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Xx("0x8")]&&n[Xx("0x21")](c,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0});const d=n[Xx("0x96")](l[Xx("0x16")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Xx("0x26"),{tablePasteChainId:o});if(d){const e=d[Xx("0x55")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[Xx("0x2f")][Xx("0x10")](o),i=e.find((t=>t[Xx("0x6f")]()[Xx("0x13")](r)));i&&n.push([i[Xx("0x9d")],s])}n[Xx("0x8")]&&d.setAttribute(Xx("0x46"),Object.fromEntries(n))}i=null})))}),{priority:e.priorities[Xx("0x72")]+10}),t[Xx("0x5c")][Xx("0x68")]("TableClipboard").on(Xx("0x57"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t[Xx("0x74")]();const r=n[Xx("0x32")],x=o,a=Zx(r),c=Zx(x);t.return=r;let l=null,d=null;if(c||a)if(a&&!c){s.remove(r.getChild(0));for(const t of Array[Xx("0x60")](x.getChildren()))s[Xx("0x5e")](t,r,Xx("0x54"));const t=i[Xx("0x58")][Xx("0x5")](n[Xx("0x90")]),e=i[Xx("0x1b")].includes(n[Xx("0x20")]);t||e||(l=s[Xx("0x11")](r))}else c&&!a&&(d=s[Xx("0x11")](r));else{const t=s[Xx("0x7b")](Xx("0x69")),e=s[Xx("0x7b")](Xx("0x69"));s[Xx("0x39")](s[Xx("0x11")](r),e),s[Xx("0x5e")](t,r,0);for(const e of Array[Xx("0x60")](x[Xx("0x7d")]()))s[Xx("0x5e")](e,t,Xx("0x54"));l=s[Xx("0x10")](t),d=s[Xx("0x10")](e)}const u=Array.from(x[Xx("0x8b")]())[Xx("0x65")]((([t])=>$x[Xx("0x5")](t)));i[Xx("0x75")].push({element:r,attributes:u[Xx("0x8")]?Object.fromEntries(u):null}),l&&i.insertionRanges[Xx("0x61")](l),d&&i[Xx("0x7e")].push(d)}),{priority:Xx("0x72")}),o.on(Xx("0x2d"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x9a")]||1;i.columnInsertionIndexes=new Array(a)[Xx("0x6c")](x)[Xx("0x16")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x63")](s,{startColumn:x,endColumn:x+a-1}))i.columnInsertionRanges.push(t.model[Xx("0x10")](e))}),{priority:Xx("0x3e")}),o.on(Xx("0x66"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r.rows||1;i[Xx("0x58")]=new Array(a)[Xx("0x6c")](x)[Xx("0x16")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x63")](s,{startRow:x,endRow:x+a-1}))i[Xx("0x1a")][Xx("0x61")](t[Xx("0x2f")][Xx("0x10")](e))}),{priority:"low"}),n[Xx("0x17")].registerDescriptionCallback((e=>{if(e[Xx("0x1")]&&e[Xx("0x1")][Xx("0x9")](Xx("0x23")))return e.previous?{}:{type:Xx("0x5b"),content:Yo(t[Xx("0x78")],Xx("0x3f"))}}));const x=()=>!1;for(const t of[Xx("0x23"),Xx("0xc"),"tablePasteRow",Xx("0x26")])n[Xx("0x14")].registerCustomCallback(Xx("0x5b"),t,"join",x),n[Xx("0x14")][Xx("0x73")]("deletion",t,"join",x),n[Xx("0x14")][Xx("0x73")](Xx("0x9c"),t,"join",x);n._suggestionFactory.registerCustomCallback(Xx("0x9c"),Xx("0x26"),Xx("0x51"),x),n[Xx("0x14")][Xx("0x73")](Xx("0x9c"),Xx("0x26"),"accept",((e,n,o)=>{const s=e[Xx("0x16")]((t=>t[Xx("0x31")]()))[Xx("0x65")]((t=>t)),r=new Map(s[Xx("0x16")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Xx("0x75")])e&&r.set(t,e);else if(o&&o[Xx("0x46")])for(const[e,n]of Object[Xx("0x6a")](o[Xx("0x46")])){const o=t[Xx("0x2f")][Xx("0x97")][Xx("0x68")](e),s=o?o[Xx("0x6f")]().getContainedElement():null;s&&r[Xx("0x6e")](s,n)}t[Xx("0x2f")][Xx("0x45")]((t=>{for(const[e,n]of r)t.setAttributes({...Jx,...n},e)}))}));const a=(e,o)=>{n[Xx("0x14")][Xx("0x73")](e,"tablePaste",o,((s,r,i)=>{t.model[Xx("0x45")]((t=>{const x=[];for(const t of s){const e=t[Xx("0x4")][Xx("0x99")];e.is(Xx("0xe"),"tableCellSuggestion")&&x[Xx("0x61")](e)}n[Xx("0x14")][Xx("0xa0")](e,null,o)(s,r,i);for(const e of x)Xx("0x83")!=e[Xx("0x91")][Xx("0x24")]&&t[Xx("0x1c")](e)}))}))};a(Xx("0x5b"),Xx("0x64")),a("insertion",Xx("0x51")),a(Xx("0x4b"),Xx("0x64")),a("deletion",Xx("0x51")),n[Xx("0x14")].registerCustomCallback("insertion","tablePasteRow",Xx("0x51"),(t=>{const e=t[Xx("0x16")]((t=>t[Xx("0x31")]())),n=e[0][Xx("0x8e")](Xx("0x25")),{minRow:r,maxRow:i}=s._getCoordsForCells(e);o[Xx("0xa1")](n,{at:r,rows:i-r+1})})),n[Xx("0x14")][Xx("0x73")]("insertion","tablePasteColumn",Xx("0x51"),(t=>{const e=t[Xx("0x16")]((t=>t[Xx("0x31")]())),n=e[0][Xx("0x8e")](Xx("0x25")),{minColumn:r,maxColumn:i}=s[Xx("0x44")](e);o.removeColumns(n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e.subType||!e.subType[Xx("0x9")](Xx("0x23")))return;const o=e.attributes.tablePasteChainId,s=n.getSuggestions()[Xx("0x65")]((t=>t[Xx("0x59")]&&t[Xx("0x50")]&&t[Xx("0x50")][Xx("0x98")]==o));s[Xx("0x8")]&&e[Xx("0x3c")]()[Xx("0x8")]!=s[Xx("0x8")]&&s[Xx("0x56")](((t,e)=>(t[Xx("0x92")]=e,e[Xx("0x8c")]=t,e)))};function l(t,e=!0){const{id:o}=n._splitMarkerName(t[Xx("0x30")]),s=[Xx("0x7c"),Xx("0x7a")],r=n.activeMarkers.includes(t[Xx("0x30")]);return r&&s[Xx("0x61")](Xx("0x38")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Xx("0x47"),c,{priority:Xx("0x72")}),n.on("suggestionUnloaded",c,{priority:Xx("0x72")}),t.model[Xx("0x8a")][Xx("0x70")]((()=>{let e=!1;const o=Array.from(t[Xx("0x2f")][Xx("0x8a")][Xx("0x94")][Xx("0x5f")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Xx("0x12")](s);if(Xx("0x93")!=o||Xx("0x4b")!=i||r[Xx("0x40")])continue;if(!n.hasSuggestion(x))continue;const a=n[Xx("0x22")](x)[Xx("0x43")](),c=t[Xx("0x5c")].get(Xx("0x49")).me;for(const t of n[Xx("0x33")]())if(t[Xx("0x59")]&&t[Xx("0x3b")]==c&&"formatBlock"==t[Xx("0x52")]&&Xx("0x26")==t[Xx("0x1")]&&t[Xx("0x43")]()[Xx("0x87")]((t=>a[Xx("0x4d")]((e=>e[Xx("0x3d")](t,!0))))))for(const n of t[Xx("0x3c")]())n[Xx("0x59")]&&(n[Xx("0x51")](),e=!0)}return e})),t[Xx("0x2f")].document.registerPostFixer((e=>{const o=t[Xx("0x88")][Xx("0x68")]("redo");if(!o||!o[Xx("0x15")][Xx("0x6")](e[Xx("0x2")]))return!1;let s=!1;const r=t[Xx("0x5c")].get(Xx("0x49")).me,i=t[Xx("0x2f")][Xx("0x8a")][Xx("0x94")].getChanges(),x=Array[Xx("0x60")](t.model[Xx("0x8a")][Xx("0x94")][Xx("0x5f")]())[Xx("0x65")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Xx("0x12")](t);return Xx("0x93")==o&&Xx("0x23")==s&&i==r.id&&!e.oldRange}));for(const t of i){if("insert"!=t[Xx("0x52")]||Xx("0x69")!=t.name||1!=t[Xx("0x8")])continue;const n=e.createRange(t[Xx("0x79")],t[Xx("0x79")][Xx("0x9b")](1));if(!x[Xx("0x95")]((({data:t})=>t[Xx("0x0")].isEqual(n))))for(const{name:t,data:o}of x)if(n[Xx("0x3d")](o.newRange)){e[Xx("0x9e")](t,{range:n}),s=!0;break}}return s})),t.model[Xx("0x8a")].registerPostFixer((e=>{let o=!1;const s=t[Xx("0x5c")][Xx("0x68")](Xx("0x49")).me,r=n[Xx("0x33")]()[Xx("0x65")]((t=>t[Xx("0x59")]&&t[Xx("0x3b")]==s)),i=new Set,x=new Set;for(const t of r)if("tablePaste"==t.subType)for(const e of t.getMarkers()){const n=e[Xx("0x6f")]().getContainedElement();if(n)if(n.is("element",Xx("0x69"))&&Zx(n)){t[Xx("0x82")](e[Xx("0x9d")]),i[Xx("0x9f")](n),o=!0;const s=n.nextSibling,r=n[Xx("0x5d")],a=s&&s.is(Xx("0xe"),"tableCellSuggestion"),c=r&&r.is("element",Xx("0x69"));a&&!i.has(s)&&x[Xx("0x9f")](s),c&&!i[Xx("0x6")](r)&&x[Xx("0x9f")](r)}else n.is(Xx("0xe"),Xx("0x71"))&&n[Xx("0x62")]&&(t[Xx("0x82")](e.name),o=!0)}else if(Xx("0x26")==t[Xx("0x1")]){if(!t[Xx("0x50")]||!t.attributes[Xx("0x98")])continue;const e=t[Xx("0x50")][Xx("0x46")];if(e&&Object[Xx("0x6b")](e)[Xx("0x8")])continue;const n=t[Xx("0x50")][Xx("0x98")];let s=!0,i=!0;for(const e of r)if(e[Xx("0x1")]&&e[Xx("0x1")][Xx("0x9")](Xx("0x23"))){if(!e.attributes[Xx("0x98")]){i=!1;break}if(e.id!=t.id&&e.attributes[Xx("0x98")]==n){s=!1;break}}i&&s&&(t.removeMarkers(),o=!0)}for(const t of i)e.remove(t);for(const t of x)e[Xx("0x1c")](t);return o})),t.conversion[Xx("0xb")](Xx("0x53"))[Xx("0x4a")]({model:Xx("0xa5"),view:(t,e)=>l(t),converterPriority:Xx("0x72")}),t[Xx("0x77")][Xx("0xb")](Xx("0xa6"))[Xx("0x4a")]({model:Xx("0xa5"),view:(t,e)=>e[Xx("0xa2")][Xx("0x36")]?l(t,!1):null,converterPriority:Xx("0x72")});const d=t[Xx("0x8d")][Xx("0x67")];this.listenTo(d[Xx("0x8a")],Xx("0x4f"),((t,e)=>{const n=[];for(const t of d.createRangeIn(e[Xx("0x1e")])[Xx("0xa4")]())t.is("element",Xx("0x89"))&&n[Xx("0x61")](t);d[Xx("0x45")]((t=>{for(const e of n)t[Xx("0x3")](t[Xx("0x11")](e),t[Xx("0x7")](e)),t[Xx("0x3a")](e)}))}))}}function Zx(t){if(t.isEmpty)return!0;const e=t[Xx("0x41")](0);return e.is(Xx("0xe"),Xx("0x71"))&&e[Xx("0x62")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Xx("0x63")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["document","TrackChangesEditing","_suggestionFactory","format","data","locale","enableCommand","getTableColumnsWidths","handleResizeTableWidthCommand","getContainedElement","formatGroupId","getSuggestionCallback","afterInit","columnWidths","registerDescriptionCallback","discard","accept","model","has","author","change","registerCustomCallback","selection","plugins","_descriptionFactory","getColumnGroupElement","table","getAttribute","*Format:* resize table","resizeTableWidth","TableColumnResizeEditing","commandParams","tableWidth","handleSuggestionDescription","editor","subType","get","formatBlock","resizeTable","Users","markBlockFormat","bind"];var ea,na;ea=ta,na=371,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{[oa("0x13")](){if(!this[oa("0x29")][oa("0x1e")][oa("0x19")](oa("0x25")))return;const t=this[oa("0x29")].plugins[oa("0x1")](oa("0x8"));t[oa("0xd")]("resizeTableWidth",this.handleResizeTableWidthCommand[oa("0x6")](this)),t[oa("0xd")]("resizeColumnWidths",this[oa("0xf")].bind(this)),t[oa("0x9")][oa("0x1c")](oa("0x2"),"resizeTable","accept",t._suggestionFactory[oa("0x12")](oa("0x2"),null,oa("0x16"))),t[oa("0x9")].registerCustomCallback(oa("0x2"),oa("0x3"),oa("0x16"),t[oa("0x9")].getSuggestionCallback(oa("0x2"),null,oa("0x17"))),t[oa("0x1f")][oa("0x15")](this.handleSuggestionDescription[oa("0x6")](this))}handleResizeTableWidthCommand(t,e){const n=this[oa("0x29")][oa("0x1e")][oa("0x1")](oa("0x8")),o=this[oa("0x29")][oa("0x1e")].get(oa("0x25")),s=e[oa("0x21")]||this[oa("0x29")][oa("0x18")][oa("0x7")][oa("0x1d")].getSelectedElement();this[oa("0x29")][oa("0x18")][oa("0x1b")]((()=>{const r=o[oa("0x20")](s);let i=r?o[oa("0xe")](r):null,x=s[oa("0x22")](oa("0x27"))||null;const a=e[oa("0x27")]||x,c=e[oa("0x14")]||i,l=this.editor.plugins[oa("0x1")](oa("0x4")).me;for(const t of n.getSuggestions()){const e=t[oa("0x10")]();if(oa("0x3")===t[oa("0x0")]&&e===s){t[oa("0x1a")]!==l&&t[oa("0x16")]();const e=t[oa("0xb")][oa("0x26")];x=e[0].tableWidth,i=e[0][oa("0x14")];break}}t({table:s,tableWidth:a,columnWidths:c}),n[oa("0x5")](s,{commandName:oa("0x24"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:"resizeTable"},[],"resizeTable")}))}[oa("0x28")](t){const{data:e}=t;if(e&&"resizeTable"===e[oa("0x11")]){const t=oa("0x23");return{type:oa("0xa"),content:Yo(this.editor[oa("0xc")],t)}}}}const ra=["insertTemplate","has","Template","get","editor","plugins","TrackChangesEditing","enableCommand","afterInit"];var ia,xa;ia=ra,xa=121,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{[aa("0x4")](){const t=this[aa("0x0")];t[aa("0x1")][aa("0x6")](aa("0x7"))&&t[aa("0x1")][aa("0x8")](aa("0x2"))[aa("0x3")](aa("0x5"))}}const la=["tableOfContents","commands","get","_descriptionFactory","plugins","locale","afterInit","editor","enableCommand","TrackChangesEditing","ELEMENT_TABLE_OF_CONTENTS","insertTableOfContents"];var da,ua;da=la,ua=268,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x2")](){const t=this[ga("0x3")];if(!t[ga("0x9")][ga("0xa")](ga("0x7")))return;t.plugins[ga("0xa")]("TrackChangesEditing")[ga("0x4")](ga("0x7"));const e=t[ga("0x0")][ga("0xa")](ga("0x5")),n=t[ga("0x1")];e[ga("0xb")].registerElementLabel(ga("0x8"),(t=>Yo(n,ga("0x6"),t)))}}const fa=["afterInit","_splitMarkerName","schema","getChangedMarkers","get","isTouching","title-content","_descriptionFactory","isCollapsed","nodeBefore","Title","model","removeMarker","element","newRange","start","registerElementLabel","has","plugins","isEqual","suggestion","forward","differ","end","locale","TrackChangesEditing","document","from"];var ha,pa;ha=fa,pa=258,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[ba("0x16")](){const t=this.editor;if(!t[ba("0xc")][ba("0xb")](ba("0x4")))return;const e=t[ba("0xc")][ba("0x1a")](ba("0x13"));e[ba("0x1")][ba("0xa")](ba("0x0"),(()=>Yo(t[ba("0x12")],"ELEMENT_TITLE"))),t.model[ba("0x14")].registerPostFixer((n=>{let o=!1;const s=Array[ba("0x15")](t[ba("0x5")][ba("0x14")][ba("0x10")][ba("0x19")]());for(const{name:r,data:i}of s){const{group:s}=e[ba("0x17")](r);if(ba("0xe")!==s||!i[ba("0x8")])continue;const x=i[ba("0x8")],a=x[ba("0x11")][ba("0x3")];if(!a||!a.is(ba("0x7"),ba("0x0")))continue;if(!x[ba("0x9")][ba("0x1b")](x.end))continue;const c=t[ba("0x5")][ba("0x18")].getNearestSelectionRange(x[ba("0x11")],ba("0xf"));if(c&&c[ba("0x2")]){const t=n.createRange(x[ba("0x9")],c.start);t[ba("0xd")](x)||(n.updateMarker(r,{range:t}),o=!0)}o||(n[ba("0x6")](r),o=!0)}return o}))}}const _a=["redo","editor","get","TrackChangesEditing","afterInit","plugins","UndoEditing","has"];var Ta,Ca;Ta=_a,Ca=176,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x4")](){const t=this[ya("0x1")],e=t[ya("0x5")][ya("0x2")](ya("0x3"));t[ya("0x5")][ya("0x7")](ya("0x6"))&&(e.enableCommand("undo"),e.enableCommand(ya("0x0")))}}const Aa=["enableCommand","TrackChangesEditing","plugins","toggleTableCaption","has","requires","TableCaptionEditing","afterInit"];var va,Ra;va=Aa,Ra=233,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Sa=function(t,e){return Aa[t-=0]};class Ia extends t.Plugin{static get[Sa("0x4")](){return[wx]}[Sa("0x6")](){const t=this.editor;t[Sa("0x1")][Sa("0x3")](Sa("0x5"))&&t[Sa("0x1")].get(Sa("0x0"))[Sa("0x7")](Sa("0x2"))}}const La=["model","list.properties","*Format:* set order to reversed","change","styles","toUpperCase","isFirstBlockOfListItem","_LIST_","_getSuggestionBlocks","listReversed","DocumentListPropertiesEditing","format","afterInit","get","enableCommand","expandListBlocksToCompleteList","getSelectedBlocks","TrackChangesEditing","_getTranslationKeyForListStyle","listStyle","numbered","handleListStyleCommand","commandParams","isListItemBlock","type","_descriptionFactory","startIndex","filter","document","bind","*Change to:* %0","getListTypeFromListStyleType","length","registerDescriptionCallback","listType","plugins","DocumentListPropertiesUtils","replace","DocumentListUtils","from","selection","handleListStartCommand","push","editor","getAttribute","_getSuggestionBlocksForListStyle","locale","markMultiRangeBlockFormat","listStart","reversed","handleDescriptions"];var Na,Ma;Na=La,Ma=239,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{[wa("0x1c")](){if(!this.editor[wa("0x0")].has(wa("0x1a")))return;const t=this[wa("0x8")].config[wa("0x1d")](wa("0x11")),e=this[wa("0x8")][wa("0x0")][wa("0x1d")](wa("0x21"));t[wa("0x14")]&&e[wa("0x1e")](wa("0x23"),this[wa("0x25")].bind(this)),t[wa("0xe")]&&e[wa("0x1e")](wa("0x19"),this.handleListReversedCommand[wa("0x2d")](this)),t[wa("0x2a")]&&e[wa("0x1e")](wa("0xd"),this[wa("0x6")][wa("0x2d")](this)),e[wa("0x29")][wa("0x31")](this[wa("0xf")][wa("0x2d")](this))}[wa("0x25")](t,e={}){const n=this[wa("0x8")][wa("0x0")][wa("0x1d")](wa("0x21")),o=this[wa("0xa")]();this[wa("0x8")][wa("0x10")][wa("0x13")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:wa("0x23"),commandParams:[{type:e[wa("0x28")]}],formatGroupId:wa("0x23")})}))}handleListReversedCommand(t,e={}){const n=this.editor[wa("0x0")][wa("0x1d")](wa("0x21")),o=this.editor[wa("0x0")][wa("0x1d")](wa("0x3")),s=this[wa("0x18")]((t=>o[wa("0x27")](t)&&"numbered"===t[wa("0x9")](wa("0x32"))));null!==s&&this[wa("0x8")].model.change((()=>{n.markMultiRangeBlockFormat(s,{commandName:"listReversed",commandParams:[{reversed:e[wa("0xe")]}],formatGroupId:wa("0x19")})}))}[wa("0x6")](t,e={}){const n=this[wa("0x8")].plugins[wa("0x1d")]("TrackChangesEditing"),o=this[wa("0x8")][wa("0x0")][wa("0x1d")](wa("0x3")),s=this[wa("0x18")]((t=>o[wa("0x27")](t)&&wa("0x24")===t[wa("0x9")]("listType")));null!==s&&this[wa("0x8")].model.change((()=>{n[wa("0xc")](s,{commandName:"listStart",commandParams:[{startIndex:e[wa("0x2a")]}],formatGroupId:wa("0xd")})}))}handleDescriptions(t){const e=this[wa("0x8")][wa("0xb")],{data:n}=t;if(!n)return;let o,s;switch(n.commandName){case wa("0x23"):o=wa("0x2e"),s={type:wa("0x1b"),content:Yo(e,o,Yo(e,this[wa("0x22")](n[wa("0x26")][0].type)))};break;case wa("0x19"):o=n[wa("0x26")][0][wa("0xe")]?wa("0x12"):"*Format:* set order to regular",s={type:wa("0x1b"),content:Yo(e,o)};break;case wa("0xd"):o="*Format:* set start index to %0",s={type:wa("0x1b"),content:Yo(e,o,n[wa("0x26")][0].startIndex)}}return s}[wa("0xa")](){const t=this[wa("0x8")].plugins[wa("0x1d")](wa("0x3"));let e=Array[wa("0x4")](this[wa("0x8")][wa("0x10")][wa("0x2c")][wa("0x5")][wa("0x20")]());return e.push(...t[wa("0x1f")](e)),e=[...new Set(e)],e}[wa("0x18")](t){const e=this[wa("0x8")][wa("0x0")].get("DocumentListUtils");let n=Array.from(this.editor[wa("0x10")][wa("0x2c")][wa("0x5")][wa("0x20")]())[wa("0x2b")](t);if(!n[wa("0x30")])return null;n=e[wa("0x1f")](n);const o=[];for(const t of n)e[wa("0x16")](t)&&o[wa("0x7")](t);return o}[wa("0x22")](t){return"ELEMENT_"+this[wa("0x8")][wa("0x0")][wa("0x1d")](wa("0x1"))[wa("0x2f")](t)[wa("0x15")]()+wa("0x17")+t[wa("0x15")]()[wa("0x2")](/-/g,"_")}}const Fa=["_descriptionFactory","enqueueChange","table","change","_suggestionFactory","registerDescriptionCallback","getSuggestionCallback","plugins","tableBorderColor","tableCellBorderWidth","get","getFirstPosition","tableCellWidth","discard","batch","tableCellBackgroundColor","document","locale","tableBorderWidth","handleSuggestionDescription","tableCellHeight","enableCommand","TrackChangesEditing","model","TablePropertiesEditing","tableWidth","tableBorderStyle","findAncestor","handleDiscardAction","accept","tableCellBorderColor","removeAttribute","_handlePropertyChange","pluginName","has","selection","getAttribute","registerCustomCallback","format","join","data","subType","tableCellProperties","getSuggestions","formatBlock","tableProperties","getSelectionAffectedTableCells","start","*Format:* change table cell properties","tableCellPadding","_getSuggestion","setAttribute","markBlockFormat","getContainedElement","editor","TableCellPropertiesEditing"];var Pa,Da;Pa=Fa,Da=451,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{constructor(t){super(t),this[Ba("0x2a")]=[Ba("0x5"),Ba("0x17"),Ba("0xf"),"tableAlignment",Ba("0x16"),"tableHeight","tableBackgroundColor"],this[Ba("0x27")]=[Ba("0x1b"),"tableCellBorderStyle",Ba("0x6"),Ba("0x2e"),Ba("0x9"),Ba("0x11"),Ba("0xc"),"tableCellHorizontalAlignment","tableCellVerticalAlignment"]}static get[Ba("0x1e")](){return"TrackChangesTableProperties"}afterInit(){const t=this[Ba("0x33")][Ba("0x4")][Ba("0x7")](Ba("0x13"));if(this[Ba("0x33")][Ba("0x4")][Ba("0x1f")](Ba("0x15"))){for(const e of this.tableProperties)t.enableCommand(e,((t,n)=>{const o=this[Ba("0x33")][Ba("0x14")][Ba("0xd")].selection[Ba("0x8")]()[Ba("0x18")](Ba("0x37"));this[Ba("0x1d")](e,[o],this[Ba("0x2a")],"tableProperties",t,n)}));t[Ba("0x1")][Ba("0x22")](Ba("0x29"),Ba("0x2a"),Ba("0x1a"),t[Ba("0x1")][Ba("0x3")](Ba("0x29"),null,Ba("0xa"))),t._suggestionFactory[Ba("0x22")](Ba("0x29"),"tableProperties",Ba("0xa"),((t,e)=>this[Ba("0x19")](this[Ba("0x2a")],t,e))),t._suggestionFactory[Ba("0x22")](Ba("0x29"),Ba("0x2a"),Ba("0x24"),(()=>!1))}if(this.editor.plugins[Ba("0x1f")](Ba("0x34"))){for(const e of this[Ba("0x27")])t[Ba("0x12")](e,((t,n)=>{const o=this[Ba("0x33")][Ba("0x4")].get("TableUtils")[Ba("0x2b")](this.editor[Ba("0x14")][Ba("0xd")][Ba("0x20")]);this[Ba("0x1d")](e,o,this[Ba("0x27")],Ba("0x27"),t,n)}));t[Ba("0x1")][Ba("0x22")](Ba("0x29"),Ba("0x27"),Ba("0x1a"),t[Ba("0x1")][Ba("0x3")]("formatBlock",null,"discard")),t._suggestionFactory.registerCustomCallback(Ba("0x29"),Ba("0x27"),"discard",((t,e)=>this[Ba("0x19")](this[Ba("0x27")],t,e))),t[Ba("0x1")][Ba("0x22")](Ba("0x29"),Ba("0x27"),Ba("0x24"),(()=>!1))}t[Ba("0x35")][Ba("0x2")]((t=>this.handleSuggestionDescription(t)))}_handlePropertyChange(t,e,n,o,s,r){const i=this[Ba("0x33")][Ba("0x4")][Ba("0x7")](Ba("0x13"));this.editor[Ba("0x14")][Ba("0x36")](r[Ba("0xb")],(()=>{for(const t of e)if(this._getSuggestion(t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0x21")](o);void 0!==n&&(e[o]=n)}s(r),i[Ba("0x31")](t,{commandParams:[e]},[],o)}}))}[Ba("0x19")](t,e,n){const o=e[0][Ba("0x2c")].nodeAfter,s=n.commandParams[0];this[Ba("0x33")].model[Ba("0x0")]((e=>{for(const n of t)void 0!==s[n]?e[Ba("0x30")](n,s[n],o):e[Ba("0x1c")](n,o)}))}[Ba("0x10")](t){if(t[Ba("0x25")])switch(t[Ba("0x26")]){case Ba("0x2a"):return{type:"format",content:Yo(this.editor.locale,"*Format:* change table properties")};case Ba("0x27"):return{type:Ba("0x23"),content:Yo(this[Ba("0x33")][Ba("0xe")],Ba("0x2d"))}}}[Ba("0x2f")](t,e){const n=this[Ba("0x33")][Ba("0x4")][Ba("0x7")](Ba("0x13"));for(const o of n[Ba("0x28")]({skipNotAttached:!0})){const n=o[Ba("0x32")]();if(o[Ba("0x26")]===e&&n===t)return o}return null}}const Ua=["getLastMatchingPosition","_adapter","$graveyard","discard","_addThreadToSuggestion","previous","change","activeMarkers","removed","howMany","getFirstRange","from","hasComments","isDocumentOperation","_refreshSuggestionsChain","isOwn","getAllAdjacentSuggestions","consumable","documentSelection","isTouching","$textProxy","_breakSuggestionMarker","enqueueChange","consume","_joinWithAdjacentSuggestions","change:activeMarkers","marker-count","isAtStart","deletion","setSelection","commandName","clone","_removeSuggestion","isAfter","pluginName","elementEnd","batch","acceptSuggestion","insertion","getCommentThread","setTo","data","insertContent","markMultiRangeDeletion","_createSuggestion","high","for","CommentsRepository","init","editor","createPositionAt","assign","getChanges","delete","oldRange","model","adapter","splice","accept","element","type","_handleNewSuggestionMarker","getSuggestions","containsPosition","backward","never","addMarker:suggestion","ck-suggestion-marker--active","setAttribute","collaboration.channelId","discardSelectedSuggestions","creator","schema","formatInline","name","_cutOutSuggestionMarker","acceptSelectedSuggestions","unbind","_commentsRepository","getSuggestion","insertion:chain","deletion:chain","getUser","stopListening","ck-suggestion-marker","elementToElement","_suggestionState","_isForcedDefaultExecutionBlock","_isDataLoaded","get","range","editingDowncast","author","newRange","notReady","addMarker","removeMarkers","join","suggestionUnloaded","then","suggestion","_suggestions","value","data-suggestion","always","markDeletion","ready","addSuggestionData","getSuggestionCallback","insertion:join","ck-suggestion-marker-","isInContent","mapper","markerNameToElements","isObject","every","default","formatInline:chain","getMultiRangeId","markMultiRangeInsertion","config","ck-suggestion-marker-formatBlock","registerCustomCallback","isRemovable","addSuggestion","_descriptionFactory","_suggestionFactory","createRange","markerToData","nodeBefore","add","requires","forward","external:","_addSuggestionMarker","rootName","_saved","showSuggestionHighlights","_checkSuggestionCorrectness","map","next","conversion","_mergeNestedSuggestions","attributes","formatBlock:join","isAtEnd","lowest","splitPosition","dataDowncast","removeMarker","isLimit","return","removeClass","forceDefaultExecution","acceptAllSuggestions","differ","_setSuggestionData","enableReadOnlyMode","rethrowUnexpectedError","split","deletion:","addHighlight","addCommentThread","discardSuggestion","Users","upcast","length","isEqual","plugins","skipNestingCheck","applyOperation","normal","track-changes-suggestion-not-found","writer","isArray","isBlock","createdAt","containsItem","getWalker","containsRange","insertion:","suggestionLoaded","isLocal","markers","multi","catch","enableCommand","_getSuggestionData","open","getCustomProperty","_getExternalAuthor","getIntersection","_getAuthorFromId","updateMarker","trackChangesCommand","commands","_rangeIsInLocalUserInsertion","PendingActions","addMarker:suggestion:formatBlock","detach","_model","registerPostFixer","_setSuggestionRange","removeAttribute","createPositionBefore","formatInline:discard","toViewElement","head","dataReady","position","_editor","addRange","_customCallbacks","sort","formatInline:accept","isUndo","hasSuggestion","deletion:accept","getNearestSelectionRange","fromRange","isMultiRange","originalSuggestionId","createElement","selection","_enabledCommands","markerReady","multipleBlocks","after","markerName","removeComment","document","isExternal","nodeAfter","change:data","end","formatGroupId","formatInline:","define","move","substr","highest","buildSuggestion","dataToMarker","addMarkerName","getDifference","markerToHighlight","suggestionChanged","hasCommentThread","includes","isInsideObject","_splitMarkerName","createSelection","isIntersectingWithRange","resolve","fetchCommentThread","start","getAncestors","getFirstMarker","refresh","size","suggestion:","discardAllSuggestions","getRange","remove","formatBlock:","getMarkers","set","_updateSuggestionData","isCollapsed","item","markMultiRangeBlockFormat","TrackChangesEditing","listenTo","_defaultCallbacks","containerElement","commentThread","subType","before","suggestion-type","push","deletion:discard","_findSuggestions","trackChanges","root","containsRangeInObject","track-changes-suggestion-data-mismatch","@external","getRanges","_joinSuggestions","deleteContent","parent","insertion:accept","low","locale","values","trackChanges.trackFormatChanges","getChangedMarkers","has","markInsertion","isNextTo","reconvertMarker","insert","fromCharCode","execute","formatBlock:chain","some","removeMarker:suggestion:formatBlock","fire","_registerDefaultCallbacks","isSelectable","deletion:join","group","filter","formatBlock","PENDING_ACTION_SUGGESTION","options","authoredAt","updateSuggestion","_trackFormatChanges","widget","getAttribute","$marker","accepted","editing","stop","addClass","isBefore","getShiftedBy"];var Ga,Ha;Ga=Ua,Ha=378,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Wa extends t.Plugin{static get[za("0x51")](){return["CommentsRepository",r.Users,t.PendingActions,cs,Cs,Rs,ws,Bs,Ws,Js,er,Oa,xr,ur,br,yr,Lr,Pr,Gr,Kr,Qr,ni,xi,ui,pi,Ci,Ri,Oi,ji,Wi,$i,tx,ix,ux,px,yx,Sx,wx,jx,Wx,Ia,Qx,sa,ma,ja,ca,Ea,ka]}static get[za("0x138")](){return za("0xdd")}constructor(t){function e(t){return t[za("0x59")]((t=>String[za("0xfc")](t)))[za("0x2f")]("")}super(t),this[za("0xd8")](za("0x11d"),[]),this.on(za("0x12f"),((e,n,o,s)=>{this[za("0x96")][za("0x11c")]((()=>{for(const e of[...s,...o])this._model[za("0x85")][za("0xf7")](e)&&t[za("0x111")][za("0xfa")](e)}))})),this[za("0x4b")]=new ss(this[za("0x147")][za("0x5")][za("0x16")],this.editor[za("0xf3")]),this[za("0x117")]=null,this[za("0x4c")]=new Va(this[za("0x147")]),this[za("0x33")]=new Map,this[za("0x1c")]=t[za("0x76")].get(za("0x145")),this[za("0xae")]=new Set,this._model=this[za("0x147")][za("0x5")],this[za("0x24")]=new WeakMap,this[za("0x25")]=!1,t[za("0x46")].define(za("0xf5"),za("0x42")),this[za("0x10c")]=t[za("0x46")][za("0x27")](za("0xf5")),t.config[za("0xbb")]("trackChanges.mergeNestedSuggestions",!0),this[za("0x5c")]=t.config[za("0x27")]("trackChanges.mergeNestedSuggestions"),this[za("0x90")]=new u(t,this[za("0xae")]),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,49,56,50,48])}[za("0x146")](){const t=this[za("0x147")];t[za("0x5b")][za("0x144")](za("0x29"))[za("0xc3")]({model:"suggestion",view:t=>{const{id:e,type:n}=this[za("0xc8")](t[za("0xb2")]),o=[za("0x22"),za("0x3c")+n];let s=3e3;return this[za("0x11d")][za("0xc6")](t[za("0xb2")])&&(o.push(za("0x11")),s=3010),za("0x132")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t.conversion[za("0x144")](za("0x62"))[za("0x50")]((e=>{e.on(za("0x10"),((e,n,o)=>{if(!o.options.showSuggestionHighlights)return;const s=n[za("0xdb")];if(!s)return;const r=o[za("0x3e")].toViewElement(s);t[za("0x5")][za("0x16")][za("0x40")](s)&&r&&!r[za("0x8b")](za("0x10d"))&&r.is(za("0xe0"))&&(0,x.toWidget)(r,o.writer)}),{priority:za("0x143")})})),t.conversion[za("0x144")](za("0x62"))[za("0xc3")]({model:za("0x32"),view:(t,e)=>{if(!e[za("0x109")][za("0x57")])return null;const{type:n}=this[za("0xc8")](t[za("0xb2")]);return{classes:[za("0x22"),za("0x3c")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o.item)return;if(o[za("0xdb")].is(za("0xad")))return void s[za("0x127")][za("0x12d")](o[za("0xdb")],n.name);const r=s[za("0x3e")][za("0x9c")](o[za("0xdb")]);if(!o[za("0xdb")].is("element")||!t.model[za("0x16")][za("0x7d")](o[za("0xdb")])||r[za("0x8b")](za("0x6f")))return;const{id:i}=this[za("0xc8")](o[za("0xb2")]);s[za("0x7b")].addClass([za("0x22"),za("0x47")],r),s.writer[za("0x12")](za("0x35"),i,r),s[za("0x3e")].bindElementToMarker(r,o[za("0xb2")]),e&&(this.activeMarkers[za("0xc6")](o[za("0xb2")])?s[za("0x7b")][za("0x113")]("ck-suggestion-marker--active",r):s[za("0x7b")][za("0x66")](za("0x11"),r));for(const e of t[za("0x5")].createRangeIn(o.item).getItems())s[za("0x127")][za("0x12d")](e,n[za("0x18")]);s[za("0x127")][za("0x12d")](o[za("0xdb")],n.name)};t.conversion[za("0x144")](za("0x62"))[za("0x50")]((t=>{t.on(za("0x94"),((t,e,o)=>{o[za("0x109")][za("0x57")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:za("0xbe")})})),t[za("0x5b")][za("0x144")](za("0x62"))[za("0x4e")]({model:za("0x32"),view:(t,e)=>e[za("0x109")][za("0x57")]?null:{group:za("0x32"),name:t[za("0xbd")](11)}}),t[za("0x5b")][za("0x144")](za("0x73"))[za("0x23")]({view:{name:"suggestion",attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=za("0xd2")+t.getAttribute(za("0xe4"))+":"+t.getAttribute("id");return t[za("0x10e")]("marker-count")&&(n+=":"+t[za("0x10e")](za("0x130"))),e[za("0xac")](za("0x10f"),{"data-name":n})}}),t[za("0x5b")][za("0x144")]("upcast")[za("0xc0")]({view:za("0x32")}),t[za("0x5b")][za("0x144")](za("0x29"))[za("0x50")]((t=>{t.on("addMarker:suggestion:formatBlock",n(),{priority:"high"})})),t[za("0x5b")].for(za("0x29")).add((t=>{t.on(za("0x100"),((t,e,n)=>{const o=n.mapper[za("0x3f")](e[za("0xb2")]);if(o)for(const t of o)t[za("0x8b")](za("0x6f"))||(n.writer[za("0x66")]([za("0x22"),"ck-suggestion-marker-formatBlock",za("0x11")],t),n.writer[za("0x99")](za("0x35"),t),n.mapper.unbindElementFromMarkerName(t,e.markerName))}),{priority:za("0x143")})})),t[za("0x5")][za("0xb4")][za("0x97")]((e=>{let n=!1;const o=Array.from(t[za("0x5")][za("0xb4")][za("0x69")][za("0xf6")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this._splitMarkerName(x);if(za("0x32")!==o)continue;const d=this[za("0x33")][za("0x27")](l);if(null!=a[za("0x2b")])if(za("0x17")==c&&(n=n||Xa(a[za("0x2b")],x,e,t.model.schema)),a[za("0x2b")].isCollapsed||za("0x118")==a[za("0x2b")][za("0xe9")][za("0x55")]||"formatBlock"==c&&!Ja(a[za("0x2b")])||za("0x132")==c&&(qa(i=a[za("0x2b")])||(r=i).start[za("0xf0")]==r.end.nodeBefore&&r.start[za("0x5f")]))e[za("0x63")](x),n=!0;else{if(!d||!d[za("0x3d")])continue;s.add(d)}}var r,i;return s.size>0&&(n=!!this[za("0x12e")](s)||n),n})),t[za("0x5")][za("0xb4")][za("0x97")]((e=>{let n=!1;for(const o of t[za("0x5")][za("0xb4")].differ[za("0x2")]()){if(za("0xfb")!=o[za("0xa")])continue;const s=o[za("0x9f")][za("0x115")](o[za("0x74")]);if(s[za("0x5f")])for(const r of this[za("0x33")][za("0xf4")]()){if(r[za("0xaa")]||!r.isInContent)continue;if(za("0x107")!=r[za("0xa")])continue;const i=r.getFirstRange();if(i[za("0xcd")][za("0xf0")]!=i[za("0xb8")].parent&&i.end.isEqual(o[za("0x9f")])){const o=t[za("0x5")][za("0x4d")](i.start,s);e.updateMarker(r[za("0xcf")](),{range:o}),n=!0}}}return n})),t[za("0x5")][za("0x85")].on("update:suggestion",((t,e,n)=>{if(null==n){const{id:t}=this._splitMarkerName(e.name),n=this[za("0x33")][za("0x27")](t);n&&n.addMarkerName(e[za("0x18")])}})),t[za("0x5")].document.on(za("0xb7"),(()=>{const e=Array[za("0x121")](t[za("0x5")].document[za("0x69")][za("0xf6")]()).filter((t=>za("0x32")===this._splitMarkerName(t[za("0x18")])[za("0x105")]));if(0===e[za("0x74")])return;e[za("0xa3")](((t,e)=>{const n=t.data[za("0x4")],o=e.data[za("0x4")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[za("0xcd")].isBefore(o[za("0xcd")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[za("0xc8")](t);if(null===s[za("0x4")]){const e=this._handleNewSuggestionMarker(t);o.add(e)}else{const t=this[za("0x33")][za("0x27")](e);null!==s[za("0x2b")]||t[za("0x3d")]?(n[za("0x50")](t[za("0x9d")]),o[za("0x50")](t)):this[za("0x136")](t)}}o.size>0&&this[za("0x124")](o);for(const t of n)this[za("0x101")](za("0xc4"),t)})),t[za("0x5")].on(za("0x78"),((e,n)=>{const o=n[0];if(!this._suggestions[za("0xd1")])return;if(!o[za("0x123")])return;if(o[za("0x13a")][za("0xa5")]||!o[za("0x13a")][za("0x84")])return;let s,r;switch(o[za("0xa")]){case za("0xfb"):s=t[za("0x5")][za("0x0")](o.position),r=s[za("0x115")](o[za("0x11f")]);break;case za("0x6d"):s=t[za("0x5")].createPositionAt(o[za("0x61")]),r=t[za("0x5")][za("0x0")](o.moveTargetPosition);break;case za("0xbc"):s=t[za("0x5")].createPositionAt(o.targetPosition),r=s[za("0x115")](o.howMany);break;default:return}const i=t.model.createRange(s,r);t[za("0x5")][za("0x11c")]((()=>{for(const{suggestion:t,meta:e}of this[za("0xe7")](i)){if(t[za("0xaa")])continue;if("formatInline"==t.type)continue;const n=t[za("0x13f")]&&t[za("0x13f")][za("0xb0")];(za("0x107")!=t[za("0xa")]||za("0x6d")==o[za("0xa")]&&!n)&&(e[za("0xea")]||za("0x13c")==t[za("0xa")]&&e[za("0x125")]||t.getFirstRange()[za("0x81")](i)&&this[za("0x12b")](t,s,r))}}))}),{priority:za("0x60")}),t[za("0x5")].on(za("0xef"),((e,n)=>{const o=n[0],s=n[1];if(s&&s[za("0x67")])return;if(this[za("0x25")])return;if(!this[za("0x90")][za("0x34")])return;if(o[za("0xda")])return;const r=t[za("0x5")].schema,{start:i,end:x}=o[za("0x120")](),a=i[za("0xb6")]&&r[za("0x64")](i[za("0xb6")])?null:r[za("0xa8")](i,za("0x52")),c=x[za("0x4f")]&&r[za("0x64")](x[za("0x4f")])?null:r[za("0xa8")](x,za("0xe")),l=t.model[za("0x4d")](a?a.start:i,c?c[za("0xb8")]:x);t[za("0x5")].change((e=>{this.markDeletion(l);const n=t[za("0x5")][za("0x16")][za("0xa8")](l[za("0xcd")]);o.is(za("0x128"))?e.setSelection(n):o[za("0x13e")](n)})),e.stop()}),{priority:e.priorities[za("0x79")]+10}),t.model.on("insertContent",((e,n)=>{const o=n[n.length-1];o&&o[za("0x67")]||this[za("0x25")]||this[za("0x90")][za("0x34")]&&(t[za("0x5")][za("0x11c")]((()=>{let o=t.model[za("0x140")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[za("0x65")]=o[za("0x135")]();const s=o[za("0xb8")][za("0x4f")],r=t[za("0x5")][za("0x16")];s&&r[za("0x7d")](s)&&!r[za("0x40")](s)&&(o=t[za("0x5")][za("0x4d")](o[za("0xcd")],t[za("0x5")][za("0x0")](s,za("0xb8")))),this[za("0xf8")](o)})),e[za("0x112")]())}),{priority:za("0x143")}),this.editor.commands[za("0x50")](za("0xe8"),this[za("0x90")]),this[za("0x88")](za("0xe8"));const o=new p(t,this[za("0x33")]);t[za("0x91")].add(za("0x13b"),o),this[za("0x88")](za("0x13b"));const s=new C(t,this[za("0x33")]);t.commands[za("0x50")](za("0x71"),s),this[za("0x88")](za("0x71")),t[za("0x91")][za("0x50")](za("0x68"),new F(t,o,this[za("0x33")])),this.enableCommand(za("0x68")),t[za("0x91")][za("0x50")](za("0xd3"),new F(t,s,this._suggestions)),this[za("0x88")](za("0xd3")),t[za("0x91")][za("0x50")](za("0x1a"),new U(t,o,this[za("0x33")])),this.enableCommand(za("0x1a")),t[za("0x91")][za("0x50")]("discardSelectedSuggestions",new U(t,s,this[za("0x33")])),this[za("0x88")](za("0x14"));const r=t[za("0x76")][za("0x27")]("CommentsRepository");this.listenTo(r,"addComment",((t,{threadId:e})=>{const n=this[za("0x33")][za("0x27")](e);n&&n[za("0xe1")]&&1===n[za("0xe1")][za("0x74")]&&this[za("0xd9")](e,{hasComments:!0})}),{priority:za("0xf2")}),this[za("0xde")](r,za("0xb3"),((t,{threadId:e})=>{const n=this[za("0x33")][za("0x27")](e);n&&n[za("0xe1")]&&!n[za("0xe1")].length&&this[za("0xd9")](e,{hasComments:!1})}),{priority:"low"})}set adapter(t){if(this[za("0x117")])throw new e.CKEditorError("track-changes-adapter-already-set",this);this._adapter=t}get[za("0x6")](){return this[za("0x117")]}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[za("0x33")][za("0xf4")]())t&&!e.isInContent||n[za("0xe5")](e);return e?n[za("0x59")]((t=>t.toJSON())):n}[za("0x1d")](t){const n=this._suggestions[za("0x27")](t);if(!n)throw new e.CKEditorError(za("0x7a"),this);return n}[za("0xa6")](t){return this[za("0x33")][za("0xf7")](t)}[za("0x39")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t.type[za("0x6d")](":"),i=this._suggestions.get(n)||this[za("0x142")](s,r,n,e,o);if(this[za("0x11a")](i),this[za("0x58")](i,s,r||null,e),i[za("0x7e")]=t[za("0x7e")],i._isDataLoaded=!0,o&&o["@external"]){const t=o[za("0xec")],e=this._getExternalAuthor(t.authorName);i[za("0x10a")]=t[za("0x7e")],i[za("0x2a")]=e,i[za("0xb5")]=!0}else i.authoredAt=t[za("0x7e")];switch(t[za("0x13f")]&&(i.data=t[za("0x13f")]),t[za("0x5d")]&&(i.attributes=t[za("0x5d")]),this[za("0x117")]&&this[za("0x117")][za("0x4a")]||(i._saved=!0),this[za("0x24")][za("0x27")](i)){case za("0x2c"):this[za("0x24")].set(i,za("0x9e"));break;case za("0xaf"):i[za("0x3d")]?(this._refreshSuggestionsChain(new Set([i])),this[za("0x12e")](new Set([i])),this[za("0x24")][za("0xd8")](i,"ready"),this.fire(za("0x83"),i)):this._suggestionState.set(i,za("0x11e"))}return i}acceptSuggestion(t){this[za("0x67")]((()=>{this[za("0x147")][za("0x5")][za("0x11c")]((()=>{for(const e of t.getAllAdjacentSuggestions())e[za("0x8")]()}))}))}[za("0x71")](t){this[za("0x67")]((()=>{this[za("0x147")][za("0x5")][za("0x11c")]((()=>{for(const e of t[za("0x126")]())e[za("0x119")]()}))}))}[za("0x88")](t,n){const o=this[za("0x147")][za("0x91")][za("0x27")](t);if(!o)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});this._enabledCommands[za("0x50")](o),n&&o.on("execute",((t,e)=>{this[za("0x90")][za("0x34")]&&(this[za("0x25")]||e[za("0x74")]>0&&e[e.length-1]&&e[e[za("0x74")]-1][za("0x67")]||(n(((...t)=>o[za("0xfd")](...t,{forceDefaultExecution:!0})),...e),t[za("0x112")]()))}),{priority:"high"})}forceDefaultExecution(t){let n,o;const s=this[za("0x25")];this[za("0x25")]=!0;try{n=t()}catch(t){o=t}return s||(this[za("0x25")]=!1),o&&e.CKEditorError[za("0x6c")](o,this),n}[za("0xf8")](t,n=null,o={}){if(t[za("0xda")])return null;const s=this[za("0x147")][za("0x76")][za("0x27")](za("0x72")).me;for(const{suggestion:e,meta:s}of this._findSuggestions(t,za("0x13c")))if(s[za("0x125")]){if(!s[za("0xf9")]){if(s.containsRangeInObject){if(!this._mergeNestedSuggestions||!tc(e,o))continue;return e}if(tc(e,o))return e;this[za("0x12b")](e,t.start,t.end);break}if(n==e[za("0xe2")]&&tc(e,o)){const n=e[za("0x120")]();return n.start[za("0x75")](t[za("0xb8")])?this[za("0x98")](e,this._model.createRange(t.start,n[za("0xb8")])):this[za("0x98")](e,this[za("0x96")][za("0x4d")](n[za("0xcd")],t[za("0xb8")])),e}}const r=(0,e.uid)(),i=s.id,x=n?za("0x82")+n:"insertion",a=this._setSuggestionData({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x54")](x,r,i,t),a}[za("0x45")](t,n="multi",o={}){const s=this[za("0x147")][za("0x76")].get(za("0x72")).me,r=this[za("0x4c")].getSuggestionCallback(za("0x13c"),n,"join");for(const e of this[za("0xc")]())if(e.author.id==s.id&&za("0x13c")==e[za("0xa")]&&e[za("0xe2")]==n&&tc(e,o)&&(r(e.getRanges(),t)||r(t,e.getRanges()))){for(const n of t)e[za("0xa1")](n);return e}for(const{suggestion:e,meta:n}of this[za("0xe7")](t,za("0x13c"))){if(!n.isOwn)continue;if(!this._mergeNestedSuggestions&&n[za("0xea")])continue;if(!tc(e,o))continue;let s=!0;for(const n of e[za("0xed")]())for(const e of t)if(!n[za("0x81")](e)){s=!1;break}if(s)return e}const i=(0,e.uid)(),x=s.id,a=za("0x82")+n,c=this[za("0x6a")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this._addSuggestionMarker(a,i,x,e,Zo[za("0x44")]());return c}markInlineFormat(t,n,o=null,s={}){if(o=o||$a(n),t[za("0xda")])return null;if(za("0xf")===this[za("0x10c")]){const e=this._suggestionFactory[za("0x3a")]("formatInline",o,za("0x8"));return this[za("0x67")]((()=>e([t],n,s))),null}const r=this[za("0x147")][za("0x76")][za("0x27")](za("0x72")).me,i=[];if("always"!==this[za("0x10c")])for(const{suggestion:e,meta:n}of this[za("0xe7")](t,"insertion"))n.isOwn&&!n[za("0xc7")]&&i[za("0xe5")](...e.getRanges());const x=function(t,e){const n=[];for(const o of e){const e=t.getIntersection(o);e&&n[za("0xe5")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[za("0x74")];){const o=n[e][za("0xc2")](t);n[za("0x7")](e,1,...o),e+=o[za("0x74")]}}return n}(t,i);x.length&&this[za("0x96")][za("0x11c")]((()=>{for(const t of x){const e=this[za("0x4c")][za("0x3a")]("formatInline",o,za("0x8"));this[za("0x67")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[za("0xcd")],a=t[za("0xb8")];for(const{suggestion:e,meta:n}of this[za("0xe7")](t,za("0x17"))){if(!n[za("0x125")])continue;if(e[za("0xe2")]!=o)continue;if(!tc(e,s))continue;const r=e[za("0x120")]();if(r.containsRange(t,!0))return null;x=x[za("0x114")](r[za("0xcd")])?x:r.start,a=a[za("0x137")](r[za("0xb8")])?a:r.end,i?r[za("0xcd")][za("0x114")](i[za("0x120")]()[za("0xcd")])?(i[za("0x2e")](),i=e):e[za("0x2e")]():i=e}const c=this[za("0x96")].createRange(x,a);if(i)this._setSuggestionRange(i,c);else{const t=(0,e.uid)(),i=r.id;this._setSuggestionData({id:t,type:za("0xba")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this._addSuggestionMarker(za("0xba")+o,t,i,c)}}return null}markBlockFormat(t,n,o=[],s=null,r={}){n[za("0xb9")]||(n[za("0xb9")]=n[za("0x134")]),n.multipleBlocks=t.is("range"),s=s||$a(n);const i=o.map((t=>Qa(t,this._model))),x=t.is(za("0x28"))?t:Qa(t,this._model);if(za("0xf")===this[za("0x10c")]){const t=this[za("0x4c")][za("0x3a")](za("0x107"),s,za("0x8"));return this[za("0x67")]((()=>t([x],n,r))),null}i.push(x);let a=!0;for(const t of i)if(!this[za("0x92")](t)){a=!1;break}if(a&&za("0x36")!==this[za("0x10c")]){const t=this[za("0x4c")].getSuggestionCallback("formatBlock",s,za("0x8"));return this[za("0x67")]((()=>t([x],n,r))),null}let c=null,l=x[za("0xcd")],d=x[za("0xb8")];for(const{suggestion:t,meta:e}of this[za("0xe7")](x,za("0x107"))){if(!e[za("0x125")])continue;if(e[za("0xf9")]||e[za("0xea")]||e[za("0xc7")])continue;if(t[za("0x13f")][za("0xb9")]!=n[za("0xb9")])continue;if(!tc(t,r))continue;const o=t.getFirstRange();if(t.subType==s){if(o.containsRange(x,!0))return null;l=l[za("0x114")](o[za("0xcd")])?l:o.start,d=d.isAfter(o[za("0xb8")])?d:o[za("0xb8")],c?o.start.isBefore(c.getFirstRange()[za("0xcd")])?(c[za("0x2e")](),c=t):t[za("0x2e")]():c=t}else{const e=x[za("0x8d")](o);this._cutOutSuggestionMarker(t,e)}}const u=this[za("0x147")][za("0x76")][za("0x27")](za("0x72")).me,g=(0,e.uid)(),m=u.id;if(c)return this[za("0x98")](c,this._model[za("0x4d")](l,d)),c;{const t=this[za("0x6a")]({id:g,type:za("0xd6")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[za("0x54")](za("0xd6")+s,g,m,this[za("0x96")][za("0x4d")](l,d)),t}}[za("0xdc")](t,n,o=[],s=null,r={}){n.formatGroupId||(n[za("0xb9")]=n[za("0x134")]);const i=t[0];n[za("0xb0")]=i.is(za("0x28")),s=s||$a(n);const x=o[za("0x59")]((t=>Qa(t,this[za("0x96")]))),a=i.is(za("0x28"))?t:t[za("0x59")]((t=>Qa(t,this[za("0x96")])));if(za("0xf")===this[za("0x10c")]){const t=this[za("0x4c")][za("0x3a")](za("0x107"),s,za("0x8"));return this[za("0x67")]((()=>t(a,n,r))),null}x[za("0xe5")](...a);let c=!0;for(const t of x)if(!this[za("0x92")](t)){c=!1;break}if(c&&za("0x36")!==this[za("0x10c")]){const t=this[za("0x4c")][za("0x3a")]("formatBlock",s,za("0x8"));return this[za("0x67")]((()=>t(a,n,r))),null}const l=this[za("0x147")][za("0x76")].get(za("0x72")).me;for(const t of this.getSuggestions()){if(t[za("0x2a")].id!=l.id)continue;if(za("0x107")!=t[za("0xa")]||t[za("0x13f")][za("0xb9")]!=n[za("0xb9")])continue;if(!tc(t,r))continue;const e=t.subType==s;for(let n=0;n<a[za("0x74")];n++){const o=a[n];for(const s of t[za("0xd7")]()){const r=s[za("0xd4")]();if(o[za("0x75")](r)){e?(a[za("0x7")](n,1),n--):t[za("0x63")](s[za("0x18")]);break}}}}if(0==a.length)return null;const d=this[za("0x4c")].getSuggestionCallback(za("0x107"),s,za("0x2f"));for(const t of this[za("0xc")]())if(t[za("0x2a")].id==l.id&&"formatBlock"==t[za("0xa")]&&t.data[za("0xb9")]==n.formatGroupId&&t[za("0xe2")]==s&&tc(t,r)&&(d(t[za("0xed")](),a)||d(a,t.getRanges()))){for(const e of a)t.addRange(e);return t}const u=(0,e.uid)(),g=l.id,m=za("0xd6")+s,f=this[za("0x6a")]({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this._addSuggestionMarker(m,u,g,t,Zo.getMultiRangeId());return f}[za("0x37")](t,n=null,o={}){if(t[za("0xda")])return null;const s=this[za("0x147")][za("0x76")][za("0x27")]("Users").me,r=new i.LiveRange(t.start,t[za("0xb8")]);for(const{suggestion:t,meta:e}of this._findSuggestions(r,za("0x13c")))if(e.isOwn&&!e[za("0xf9")])if(t[za("0xaa")]){const e=t[za("0xed")]().filter((t=>za("0x118")!=t[za("0xe9")][za("0x55")]));if(e[za("0x41")]((t=>r[za("0x81")](t,!0)))&&t[za("0x119")](),e.some((t=>t[za("0x81")](r,!0)))){const t=this._suggestionFactory[za("0x3a")](za("0x132"),n,za("0x8"));return this[za("0x67")]((()=>t([r],null,o))),null}}else{const e=r[za("0x8d")](t[za("0x120")]());null!==e&&t._onDiscard([e],null,o)}if(r[za("0x95")](),r[za("0xda")]||za("0x118")==r[za("0xe9")][za("0x55")])return null;let x=null,a=r[za("0xcd")],c=r[za("0xb8")];const l=this._findSuggestions(r,za("0x132"));for(const{suggestion:t,meta:e}of l){const n=this[za("0x96")][za("0x4d")](a,c);if(e[za("0x125")]&&(this._mergeNestedSuggestions||!e[za("0xea")]&&!e[za("0xc7")]))if(t[za("0xaa")]){if(!tc(t,o))continue;let e=!0;for(const o of t.getRanges()){if(o[za("0x81")](n,!0))return t;n[za("0x81")](o)||(e=!1)}e&&t[za("0x119")]()}else{const e=t[za("0x120")]();if(e.containsRange(n,!0))return t;if(!tc(t,o)){n[za("0x81")](e)?t[za("0x2e")]():e[za("0xd")](a)?a=e[za("0xb8")]:e[za("0xd")](c)&&(c=e[za("0xcd")]);continue}a=a[za("0x114")](e.start)?a:e[za("0xcd")],c=c[za("0x137")](e[za("0xb8")])?c:e.end,o=Object.assign({},t.attributes),x?e.start.isBefore(x[za("0x120")]()[za("0xcd")])?(x[za("0x2e")](),x=t):t.removeMarkers():x=t}}if(x)return this._setSuggestionRange(x,this[za("0x96")][za("0x4d")](a,c)),x;{const t=(0,e.uid)(),r=this[za("0x96")][za("0x4d")](a,c),i=s.id,x=n?"deletion:"+n:"deletion",l=this._setSuggestionData({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x54")](x,t,i,r),l}}[za("0x141")](t,n=za("0x86"),o={}){const s=this[za("0x147")].plugins[za("0x27")](za("0x72")).me,r=t.map((t=>new i.LiveRange(t[za("0xcd")],t.end))),x=new Set;for(const{suggestion:t,meta:e}of this._findSuggestions(r,"insertion"))e.isOwn&&!e.isNextTo&&x.add(t);for(const e of x)if(e.isMultiRange){const s=e[za("0xed")]();if((!e[za("0x5d")]||!e.attributes[za("0x77")])&&s.every((t=>r.some((e=>e.containsRange(t,!0)))))&&e[za("0x119")](),r[za("0x41")]((t=>s[za("0xff")]((e=>e.containsRange(t,!0)))))){const e=this[za("0x4c")][za("0x3a")](za("0x132"),n,za("0x8"));return this[za("0x67")]((()=>e(t,null,o))),null}}else{const t=e[za("0x120")]();if(r[za("0xff")]((e=>e[za("0x81")](t,!0)))&&e[za("0x119")](),r.every((e=>t[za("0x81")](e,!0)))){const t=this[za("0x4c")][za("0x3a")](za("0x132"),n,"accept");return this.forceDefaultExecution((()=>t(r,null,o))),null}}const a=this._suggestionFactory[za("0x3a")]("deletion",n,za("0x2f"));let c=null;for(const t of this.getSuggestions())if(t[za("0x2a")].id==s.id&&t[za("0x3d")]&&za("0x132")==t[za("0xa")]&&t[za("0xe2")]==n&&tc(t,o)&&(a(t[za("0xed")](),r)||a(r,t.getRanges())))if(c){if(t[za("0xe1")]&&t[za("0xe1")][za("0x74")])continue;for(const e of t[za("0xed")]())c[za("0xca")](e)||c.addRange(e);t[za("0x2e")]()}else{c=t;for(const e of r)t.isIntersectingWithRange(e)||t[za("0xa1")](e)}if(c)return c;x.clear();for(const{suggestion:t,meta:e}of this[za("0xe7")](r,za("0x132")))e.isOwn&&(this._mergeNestedSuggestions||!e[za("0xea")]&&!e.isInsideObject)&&tc(t,o)&&x[za("0x50")](t);for(const t of x){const e=t[za("0xed")]();if((!o||!o[za("0x77")])&&r[za("0x41")]((t=>e.some((e=>e[za("0x81")](t,!0))))))return t;(!t[za("0x5d")]||!t[za("0x5d")][za("0x77")])&&e[za("0x41")]((t=>r.some((e=>e.containsRange(t,!0)))))&&t.discard()}const l=(0,e.uid)(),d=s.id,u=za("0x6e")+n,g=this[za("0x6a")]({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t[za("0x95")](),t[za("0xda")]||"$graveyard"==t[za("0xe9")].rootName||this[za("0x54")](u,l,d,t,Zo[za("0x44")]());return g}[za("0x98")](t,e){const n=t.getFirstMarker();this[za("0x96")][za("0x11c")]((t=>{t[za("0x8f")](n,{range:e})}))}[za("0x11a")](t){const e=t.id,n=this[za("0x147")][za("0x46")][za("0x27")](za("0x13"));this._commentsRepository[za("0xc5")](e)||this._commentsRepository[za("0x70")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[za("0x1c")][za("0x13d")](e);o[za("0x1b")](za("0x49")),o[za("0x49")]=!1,t[za("0xe1")]=o}_checkSuggestionCorrectness(t,n,o,s){if(t.type!=n||t[za("0xe2")]!=o||t.creator.id!=s)throw this[za("0x147")][za("0x6b")](za("0xeb")),new e.CKEditorError("track-changes-suggestion-data-mismatch",this)}[za("0x19")](t,n){const o=t[za("0x120")]();if(n.isEqual(o))t.removeMarkers();else if(o[za("0x81")](n)){const s=this._model[za("0x0")](n[za("0xcd")][za("0x4f")],"end");this[za("0x98")](t,this[za("0x96")][za("0x4d")](o[za("0xcd")],s));const r=(0,e.uid)(),i=t[za("0x15")].id,x=t[za("0xa")]+":"+t[za("0xe2")];this[za("0x6a")]({id:r,type:x,createdAt:new Date,authorId:i,data:t.data,attributes:t.attributes});const a=this._model[za("0x0")](n[za("0xb8")][za("0xf0")],za("0xb1")),c=this[za("0x96")].createRange(a,o[za("0xb8")]);this[za("0x54")](x,r,i,c)}else if(o[za("0xd")](n[za("0xcd")])){const e=this[za("0x96")][za("0x0")](n[za("0xcd")].nodeBefore,za("0xb8"));this[za("0x98")](t,this[za("0x96")].createRange(o[za("0xcd")],e))}else{const e=this[za("0x96")].createPositionAt(n[za("0xb8")][za("0xf0")],za("0xb1"));this[za("0x98")](t,this._model[za("0x4d")](e,o[za("0xb8")]))}}[za("0x92")](t){for(const{suggestion:e,meta:n}of this[za("0xe7")](t,za("0x13c"))){if(!n[za("0x125")])continue;const o=e[za("0xed")]();for(const e of o)if(!t[za("0xc2")](e).length)return!0}return!1}[za("0x8e")](t){const n=this.editor[za("0x76")][za("0x27")]("Users")[za("0x20")](t);if(!n)throw new e.CKEditorError("track-changes-user-not-found",this);return n}[za("0x8c")](t){const e=this[za("0x147")][za("0x76")].get(za("0x72")),n=(0,r.hashObject)(za("0x53")+t);return e[za("0x20")](n)||e.addUser({id:n,name:t})}_createSuggestion(t,e,n,o,s){const r=this[za("0x8e")](o),i=this[za("0x4c")][za("0xbf")](t,e,n,r,s,(t=>this[za("0xd9")](n,{attributes:t})));return this.listenTo(i,za("0x8"),(()=>{this[za("0xd9")](n,{state:za("0x110")})}),{priority:"high"}),this.listenTo(i,za("0x119"),(()=>{this[za("0xd9")](n,{state:"rejected"})}),{priority:"high"}),this[za("0x33")][za("0xd8")](n,i),this[za("0x24")][za("0xd8")](i,za("0x2c")),i}[za("0xc8")](t){const e=t.split(":");return{group:e[0],type:e[1],subType:e[za("0x74")]>=5?e[2]:null,id:e[za("0x74")]<5?e[2]:e[3],authorId:e[za("0x74")]<5?e[3]:e[4],markerCount:6==e[za("0x74")]?e[5]:null}}[za("0x12b")](t,n,o){const s=t[za("0x120")](),r=s[za("0xcd")],i=s[za("0xb8")];this._setSuggestionRange(t,this[za("0x96")].createRange(r,n));const x=(0,e.uid)(),a=t[za("0x15")].id,c=t[za("0xa")]+(t[za("0xe2")]?":"+t[za("0xe2")]:"");this[za("0x6a")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[za("0x5d")],data:t.data}),za("0x107")==t.type&&(o=this[za("0x96")][za("0x9a")](o[za("0xf0")])),this[za("0x54")](c,x,a,this[za("0x96")][za("0x4d")](o,i))}[za("0xe7")](t,e=null){const n=[],o=this[za("0x147")][za("0x76")][za("0x27")](za("0x72")).me;Array[za("0x7c")](t)||(t=[t]);for(const s of this.getSuggestions()){if(!s[za("0x3d")])continue;if(e&&s[za("0xa")]!=e)continue;let r=!1;for(const e of s[za("0xed")]()){for(const i of t){const t=i[za("0xcd")].isEqual(e.end)||i[za("0xb8")][za("0x75")](e[za("0xcd")]);if(t||i[za("0x8d")](e)){const x=i[za("0x81")](e)&&Ka(this._model[za("0x16")],e[za("0xcd")],i),a=e.containsRange(i)&&Ka(this._model[za("0x16")],i[za("0xcd")],e);n[za("0xe5")]({suggestion:s,meta:{isOwn:o==s[za("0x2a")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),r=!0;break}}if(r)break}}return n}_addSuggestionMarker(t,e,n,o,s){this[za("0x96")][za("0x11c")]((r=>{let i=za("0xd2")+t+":"+e+":"+n;s&&(i=i+":"+s),r[za("0x2d")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[za("0x136")](t){const e=t[za("0x11b")],n=t.next;t[za("0x11b")]=null,null!=e&&(e[za("0x5a")]=null),t[za("0x5a")]=null,null!=n&&(n[za("0x11b")]=null),za("0x38")==this[za("0x24")][za("0x27")](t)&&(this._suggestionState[za("0xd8")](t,za("0x11e")),this[za("0x101")](za("0x30"),t,e,n))}[za("0x6a")](t){const n=t.id,o=this[za("0x39")](t);if(this[za("0x117")]&&this[za("0x117")][za("0x4a")]){const s=this[za("0x147")][za("0x76")][za("0x27")](za("0x93")),r=o[za("0x122")],i=o[za("0xe2")]?o[za("0xa")]+":"+o[za("0xe2")]:o[za("0xa")],x=this[za("0x147")].locale,a=s[za("0x50")](Yo(x,"PENDING_ACTION_SUGGESTION")),c={id:n,type:i,hasComments:r,data:t[za("0x13f")]||null,originalSuggestionId:t[za("0xab")]||null,attributes:o.attributes};this._adapter[za("0x4a")](c).then((t=>{o._saved=!0,s.remove(a),t&&t[za("0x7e")]&&(this[za("0x33")][za("0x27")](n).createdAt=t[za("0x7e")])}))[za("0x87")]((t=>{throw(0,e.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this.editor[za("0x5")][za("0x12c")]({isUndoable:!1},(()=>{o[za("0x119")]()})),o[za("0x21")](),this._suggestions.delete(o.id),this[za("0x24")][za("0x3")](o),t}))}return o}[za("0xd9")](t,e){const n=this.editor[za("0x76")][za("0x27")](za("0x93")),o=this[za("0x1d")](t);if(this[za("0x117")]&&this._adapter.updateSuggestion)if(o[za("0x56")]){const o=n[za("0x50")](Yo(this[za("0x147")][za("0xf3")],za("0x108")));this[za("0x117")][za("0x10b")](t,e)[za("0x31")]((()=>{n[za("0xd5")](o)}))}else o.on("change:_saved",(()=>{this[za("0xd9")](t,e)}))}[za("0x89")](t){if(!this._adapter||!this[za("0x117")][za("0x1d")])throw new e.CKEditorError("track-changes-adapter-missing-getsuggestion",this);return this[za("0x117")].getSuggestion(t)}[za("0xb")](t){const{id:e,type:n,subType:o,authorId:s}=this[za("0xc8")](t),r=this[za("0x33")].get(e)||this[za("0x142")](n,o,e,s,{});switch(this[za("0x58")](r,n,o,s),this[za("0x24")][za("0x27")](r)){case"notReady":this._getSuggestionData(e)[za("0x31")]((t=>{let n=Promise[za("0xcb")]();t[za("0x122")]&&(n=this[za("0x1c")][za("0xcc")]({channelId:this[za("0x147")][za("0x46")][za("0x27")]("collaboration.channelId"),threadId:e})),n[za("0x31")]((()=>{this[za("0x39")](t)._saved=!0}))})),this[za("0x24")][za("0xd8")](r,"markerReady");break;case za("0x11e"):this[za("0xd9")](e,{state:za("0x8a")});case za("0x9e"):this[za("0x24")][za("0xd8")](r,za("0x38")),this[za("0x101")](za("0x83"),r);break;case za("0x38"):this.fire("suggestionChanged",r)}return r[za("0xc1")](t),r}[za("0x124")](t){const e=Array[za("0x121")](t)[za("0x106")]((t=>!t[za("0xaa")])),n=this[za("0xc")]({skipNotAttached:!0})[za("0x106")]((t=>!t[za("0xaa")])),o=n[za("0x106")]((e=>!t[za("0xf7")](e))),s=new Map(n[za("0x59")]((t=>[t,this[za("0x4c")][za("0x3a")](t[za("0xa")],t[za("0xe2")],"chain")]))),r=new Map(n[za("0x59")]((t=>[t,t[za("0x120")]()]))),i=new Set,x=new Set;for(let t=0;t<e[za("0x74")];t++)a(e[t],e,t+1);for(let t=0;t<e[za("0x74")];t++)a(e[t],o,0);for(let t=0;t<e[za("0x74")];t++){const n=e[t];!x[za("0xf7")](n)&&n[za("0x11b")]&&(n[za("0x11b")][za("0x5a")]===n&&(n[za("0x11b")][za("0x5a")]=null),n[za("0x11b")]=null),!i[za("0xf7")](n)&&n[za("0x5a")]&&(n.next[za("0x11b")]===n&&(n[za("0x5a")].previous=null),n[za("0x5a")]=null)}function a(t,e,n){for(let o=n;o<e[za("0x74")];o++){const n=c(t,e[o]);n&&(n[0].next=n[1],n[1][za("0x11b")]=n[0],i.add(n[0]),x[za("0x50")](n[1]))}}function c(t,e){if(t[za("0x2a")].id!==e[za("0x2a")].id)return null;const n=s[za("0x27")](t)(t,e,r[za("0x27")](t),r[za("0x27")](e));return n&&s[za("0x27")](e)(t,e,r.get(t),r[za("0x27")](e))?n[1][za("0xe1")]&&n[1][za("0xe1")].length?null:n:null}}[za("0x12e")](t){const e=Array[za("0x121")](t),n=this[za("0xc")]({skipNotAttached:!0}),o=n[za("0x106")]((e=>!t[za("0xf7")](e))),s=new Map(e[za("0x59")]((t=>[t,this[za("0x4c")][za("0x3a")](t[za("0xa")],t[za("0xe2")],za("0x2f"))]))),r=new Map(n[za("0x59")]((t=>[t,t[za("0xed")]()])));for(let t=0;t<e[za("0x74")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[za("0x74")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n[za("0x74")];i++){const o=n[i];if(o[za("0xa")]!==e[za("0xa")]||o[za("0x2a")].id!==e[za("0x2a")].id||o[za("0xe2")]!==e[za("0xe2")])continue;if(!Ya(e,o))continue;const x=s[za("0x27")](e),a=r[za("0x27")](e),c=r.get(o),l=e[za("0xe1")]&&e[za("0xe1")].length,d=o[za("0xe1")]&&o[za("0xe1")][za("0x74")];if(!l&&x(c,a))return t[za("0xee")](o,e),r.delete(e),!0;if(!d&&x(a,c))return t[za("0xee")](e,o),r.delete(o),!0}return!1}}_joinSuggestions(t,e){if(t[za("0xaa")])for(const n of e.getRanges())t[za("0xa1")](n);else{const n=e[za("0x120")]().end;this[za("0x98")](t,this[za("0x96")].createRange(t[za("0x120")]().start,n))}e[za("0x2e")]()}}class Va{constructor(t){this[za("0xa0")]=t,this[za("0x96")]=t[za("0x5")],this[za("0xa2")]=new Map,this._defaultCallbacks=new Map,this._registerDefaultCallbacks()}[za("0xbf")](t,e,n,o,s,r){return new Zo(this._model,{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this.getSuggestionCallback(t,e,za("0x8"))(...n),onDiscard:(...n)=>this[za("0x3a")](t,e,za("0x119"))(...n)})}[za("0x48")](t,e,n,o){const s=t+":"+e+":"+n;this._customCallbacks[za("0xd8")](s,o)}[za("0x3a")](t,e,n){const o=t+":"+e+":"+n;return this[za("0xa2")].get(o)||this._defaultCallbacks.get(t+":"+n)}[za("0x102")](){const t=()=>!1,e=t=>{t[za("0xa3")](((t,e)=>t[za("0xcd")][za("0x114")](e[za("0xcd")])?1:-1)),this[za("0x96")][za("0x11c")]((e=>{for(const n of t){let t;t=n[za("0xb8")].isAtEnd&&n.end.parent==n[za("0xcd")][za("0xb6")]?e.createSelection(n.start.nodeAfter,"on"):e[za("0xc9")](n),this._model[za("0xef")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[za("0x96")].change((n=>{const{commandName:o,commandParams:s=[]}=e,r=t.map((t=>(qa(t)&&(t=this[za("0x96")][za("0x4d")](t[za("0xb8")])),t))).filter((t=>za("0x118")!==t[za("0xe9")][za("0x55")]));if(r[za("0x74")]<1)return;const x=Array[za("0x121")](this._model[za("0xb4")][za("0xad")][za("0xed")]())[za("0x59")]((t=>i.LiveRange[za("0xa9")](t)));n[za("0x133")](r);for(const t of this[za("0xa0")].commands[za("0x91")]())t[za("0xd0")]();s.push({forceDefaultExecution:!0}),this[za("0xa0")][za("0xfd")](o,...s);const a=x[za("0x106")]((t=>za("0x118")!=t[za("0xe9")][za("0x55")]));a.length>0&&n[za("0x133")](a);for(const t of x)t[za("0x95")]()}))},o=(t,e)=>1==t[za("0x74")]&&1==e[za("0x74")]&&t[0][za("0xb8")][za("0x75")](e[0][za("0xcd")]),s=(t,e,n,o)=>Za(t,e,n,o,this[za("0x96")])?[t,e]:Za(e,t,o,n,this[za("0x96")])?[e,t]:null;this[za("0xdf")].set(za("0xf1"),t),this[za("0xdf")][za("0xd8")]("insertion:discard",e),this[za("0xdf")][za("0xd8")](za("0x3b"),o),this[za("0xdf")][za("0xd8")](za("0x1e"),s),this[za("0xdf")].set(za("0xa7"),e),this[za("0xdf")][za("0xd8")](za("0xe6"),t),this[za("0xdf")][za("0xd8")](za("0x104"),o),this[za("0xdf")][za("0xd8")](za("0x1f"),s),this[za("0xdf")].set(za("0xa4"),n),this[za("0xdf")][za("0xd8")](za("0x9b"),t),this._defaultCallbacks[za("0xd8")]("formatInline:join",o),this[za("0xdf")][za("0xd8")](za("0x43"),t),this[za("0xdf")][za("0xd8")]("formatBlock:accept",n),this[za("0xdf")][za("0xd8")]("formatBlock:discard",t),this._defaultCallbacks.set(za("0x5e"),o),this[za("0xdf")][za("0xd8")](za("0xfe"),t)}}function Ka(t,e,n){for(const o of e[za("0xf0")][za("0xce")]({includeSelf:!0,parentFirst:!0})){if(o[za("0xe9")]==o)return!1;if(!n[za("0x7f")](o))return!1;if(t[za("0x40")](o)||t[za("0x64")](o))return!0}return!1}function qa(t){return t[za("0xb8")][za("0xf0")]==t[za("0xcd")][za("0xb6")]&&t[za("0xb8")][za("0x131")]}function Xa(t,e,n,o){const s=t=>!t[za("0xdb")].is(za("0x12a"))&&!o[za("0x40")](t[za("0xdb")]),r=t[za("0xcd")].getLastMatchingPosition(s),i=t[za("0xb8")][za("0x116")](s,{direction:"backward"});return!(t[za("0xcd")].isEqual(r)&&t[za("0xb8")][za("0x75")](i)||(r[za("0x114")](i)?n[za("0x8f")](e,{range:n[za("0x4d")](r,i)}):n.removeMarker(e),0))}function $a(t){return(0,r.hashObject)(t)}function Ja(t){const e=t[za("0xcd")][za("0xb6")];return e&&e.is(za("0x9"))}function Qa(t,e){const n=e[za("0x16")].isObject(t)||e[za("0x16")][za("0x103")](t);return e[za("0x4d")](e[za("0x0")](t,za("0xe3")),n?e.createPositionAfter(t):e[za("0x0")](t,"end"))}function Za(t,e,n,o,s){if(!Ya(t,e))return!1;if(n[za("0xb8")][za("0x75")](o[za("0xcd")]))return!0;if(t[za("0xa")]!=e.type)return!1;if(!n.end[za("0x129")](o[za("0xcd")]))return!1;const r=s[za("0x4d")](n[za("0xb8")],o.start)[za("0x80")]();for(const t of r)if(["elementStart",za("0x139")][za("0xc6")](t[za("0xa")])&&s[za("0x16")].isLimit(t[za("0xdb")]))return!1;return!0}function Ya(t,e){return!(!t[za("0x26")]||!e._isDataLoaded)&&Go(t[za("0x5d")],e[za("0x5d")])}function tc(t,e){const n=ec(t[za("0x5d")]),o=ec(e);if(!t[za("0x26")])return!1;for(const t of Object.keys(o))if(!Go(n[t],o[t]))return!1;return!0}function ec(t){const e=Object[za("0x1")]({},t);return delete e[za("0x77")],delete e.tablePasteChainId,e}const nc=["destroy","unbind","get","_editor","_pendingAction","PendingActions","commands","stopListening","getRanges","remove","isEnabled","canAccept","_acceptCommand","canDiscard","bind","commentThreadController","add","discardSuggestion","acceptSuggestion","model","_discardCommand","execute","PENDING_ACTION_SUGGESTION","_removePendingAction","listenTo","locale","isDirty","view","_setPendingAction","plugins"];var oc,sc;oc=nc,sc=480,function(t){for(;--t;)oc.push(oc.shift())}(++sc);const rc=function(t,e){return nc[t-=0]};class ic extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[rc("0x13")]=e,this.view=n,this.commentThreadController=o,this._editor=t,this[rc("0xc")]=t[rc("0x6")][rc("0x2")]("acceptSuggestion"),this[rc("0x14")]=t[rc("0x6")][rc("0x2")](rc("0x11")),this.view[rc("0xe")](rc("0xa")).to(this._acceptCommand,this._discardCommand,((t,e)=>t||e)),this.view[rc("0xe")]("canAccept").to(this[rc("0xc")],"isEnabled",(t=>t&&this[rc("0x3")][rc("0x13")].canEditAt(e[rc("0x8")]()))),this[rc("0x1b")][rc("0xe")]("canDiscard").to(this[rc("0x14")],rc("0xa"),(t=>t&&this[rc("0x3")].model.canEditAt(e[rc("0x8")]()))),this[rc("0x4")]=null,n[rc("0x1a")]&&this._setPendingAction(),this.listenTo(n,"acceptSuggestion",(()=>this[rc("0x12")]())),this[rc("0x18")](n,rc("0x11"),(()=>this.discardSuggestion())),this.listenTo(n,"change:isDirty",(()=>{n[rc("0x1a")]?this[rc("0x1c")]():this[rc("0x17")]()}))}[rc("0x12")](){this[rc("0xc")][rc("0x15")](this[rc("0x13")].id)}[rc("0x11")](){this[rc("0x14")].execute(this[rc("0x13")].id)}[rc("0x0")](){this.view[rc("0x1")](rc("0xa")),this[rc("0x1b")][rc("0x1")](rc("0xb")),this[rc("0x1b")][rc("0x1")](rc("0xd")),this[rc("0x7")](),this[rc("0xf")][rc("0x0")](),this[rc("0x4")]&&this[rc("0x17")]()}[rc("0x1c")](){const t=Yo(this[rc("0x3")][rc("0x19")],rc("0x16"));this[rc("0x4")]=this[rc("0x3")][rc("0x1d")][rc("0x2")]("PendingActions")[rc("0x10")](t)}_removePendingAction(){null!==this._pendingAction&&this[rc("0x3")][rc("0x1d")][rc("0x2")](rc("0x5"))[rc("0x9")](this[rc("0x4")]),this[rc("0x4")]=null}}const xc=["addComment","_localUser","_config","set","destroy","isActive","locale","commentsListView","delegate","isEnabled","_model","bind","commentThreadInputView","commentThread","fire","submit","removeComment","canAccept","_createCommentViews","isReadOnly","value","showInput","isDirty","commentInputView","_createCommentThreadInputView","hasDirtyComment","cancel","assign","authoredAt","updateComment","focus","editorConfig","length"];var ac,cc;ac=xc,cc=445,function(t){for(;--t;)ac.push(ac.shift())}(++cc);const lc=function(t,e){return xc[t-=0]};class dc extends s.View{constructor(t,e,n,o){super(t),this.commentsListView=null,this.commentThreadInputView=null,this[lc("0x14")](lc("0x16"),!1),this[lc("0x14")](lc("0xc"),e[lc("0xc")]),this.bind(lc("0xc")).to(e),this[lc("0x14")]("descriptionParts",[]),this.set(lc("0x6"),!1),this.set(lc("0x1a"),!1),this[lc("0x14")](lc("0x1"),!1),this.set("canDiscard",!1),this[lc("0x1b")]=e,this[lc("0x12")]=n,this[lc("0x13")]=o,o.disableComments?this[lc("0x14")](lc("0x10"),1):this[lc("0x2")]()}focus(){this.element[lc("0xe")]()}[lc("0x15")](){this[lc("0x18")]&&this[lc("0x18")][lc("0x15")](),this.commentThreadInputView&&this[lc("0x1d")][lc("0x15")](),super[lc("0x15")]()}[lc("0x2")](){const{CommentsListView:t}=this[lc("0x13")];this[lc("0x18")]=new t(this[lc("0x17")],this[lc("0x1b")][lc("0x1e")],Object[lc("0xb")]({CommentView:this._config.CommentView},this[lc("0x13")])),this[lc("0x18")][lc("0x19")]("removeComment").to(this),this[lc("0x18")][lc("0x19")](lc("0xd")).to(this),this[lc("0x18")].bind(lc("0x16")).to(this),this.set(lc("0x10"),this[lc("0x18")].length+1),this[lc("0x1c")](lc("0x10")).to(this[lc("0x18")],lc("0x10"),(t=>t+1)),this[lc("0x1d")]=this[lc("0x8")](),this.on(lc("0x0"),(()=>this[lc("0xe")]())),this[lc("0x1c")](lc("0x6")).to(this[lc("0x18")],lc("0x9"),this[lc("0x1d")][lc("0x7")],lc("0x4"),((t,e)=>t||!!e))}[lc("0x8")](){const{CommentThreadInputView:t}=this[lc("0x13")],e=new t(this.locale,this[lc("0x12")],this[lc("0x13")][lc("0xf")]),n=e.commentInputView;return e[lc("0x1c")](lc("0x5")).to(this,lc("0x16"),this._model[lc("0x1e")],lc("0x3"),n,lc("0x4"),((t,e,n)=>!!n||t&&!e)),n.on(lc("0x20"),((t,e)=>{this[lc("0x1f")](lc("0x11"),e),n.editor.setData("")})),n.on(lc("0xa"),(()=>this[lc("0xe")]())),n[lc("0x1c")]("disabledSubmit").to(this[lc("0x1b")][lc("0x1e")],lc("0x3")),e}}const uc=["ck-suggestion--disabled-comments","ck-annotation__actions","title","div","ck-suggestion--discard","acceptButton","commentsListView","Accept suggestion","source","bindTemplate","bind","acceptSuggestion",'" title="',"color","render","userView","isExternal","editorReady","_descriptionElement","querySelector","ck-annotation__content-wrapper","ck-comment__external","editorDestroyed","</p>","description","delegate","authoredAt","getExternalSuggestionNote","formatDateTime","attributes","disableComments","ck-annotation","creator","getUserViewNotificationText","EXTERNAL_AVATAR","split","change:description","<p>","name","setTemplate","children","ck-annotation__info-time","locale","importWord","value",'<span class="ck-suggestion-type">',"innerHTML","push","ck-suggestion-wrapper--active","_config","execute","isEnabled","EXTERNAL_SUGGESTION","extendTemplate","descriptionParts","createElement","_model","ck-annotation__info","cancel","_createButton",".ck-annotation__content-wrapper","@external",'"></span>',"set","element","map","isActive","discardButton","canDiscard","ck-annotation__info-name","ck-suggestion","join","getTemplate","ck-suggestion__user","EXTERNAL_IMPORT_WORD_AVATAR","ck-annotation__user","author","ck-suggestion__info","check","ck-suggestion-","type","ck-suggestion__main","commentThreadInputView","span","ck-annotation__main","commentThread","ck-comment__info-time"];var gc,mc;gc=uc,mc=166,function(t){for(;--t;)gc.push(gc.shift())}(++mc);const fc=function(t,e){return uc[t-=0]};class hc extends dc{constructor(e,n,o,s){super(e,n,o,s),this[fc("0x47")](fc("0x1"),""),this[fc("0x12")](fc("0x1")).to(this,fc("0x3e"),(t=>t&&t[0]?t[0][fc("0x1")]:"")),this[fc("0x12")](fc("0x20")).to(this,fc("0x3e"),this,fc("0x4a"),((t,e)=>{let n="";for(const e of t)n+=fc("0x2d")+pc(e.content,e[fc("0x15")])+fc("0x1f");return e?n:(0,r.trimHtml)(n,{limit:140})})),this._descriptionElement=null,this[fc("0xd")]=this[fc("0x43")](Yo(e,fc("0xf")),t.icons[fc("0x56")],"ck-suggestion--accept",fc("0x13"),"sw"),this[fc("0xd")][fc("0x12")](fc("0x3b")).to(this,"canAccept"),this.discardButton=this._createButton(Yo(e,"Discard suggestion"),t.icons[fc("0x42")],fc("0xc"),"discardSuggestion","sw"),this[fc("0x4b")][fc("0x12")](fc("0x3b")).to(this,fc("0x4c")),this[fc("0x17")]=new r.UserView(e,this[fc("0x40")][fc("0x54")],this[fc("0x29")]()),this.userView.extendTemplate({attributes:{class:[fc("0x51"),fc("0x53")]}}),this[fc("0x2f")](this.getTemplate())}[fc("0x50")](){const t=this[fc("0x11")],e=[{tag:fc("0xb"),attributes:{class:[fc("0x55"),fc("0x41")]},children:[{tag:fc("0x4"),children:[{text:this.userView[fc("0x2e")]}],attributes:{class:["ck-suggestion__info-name",fc("0x4d")]}},{tag:"time",attributes:{datetime:t.to(fc("0x22")),class:[fc("0x7"),fc("0x31")]},children:[{text:t.to(fc("0x22"),(t=>this[fc("0x39")][fc("0x24")](t)))}]}]},{tag:fc("0xb"),attributes:{class:["ck-suggestion__actions",fc("0x9")]},children:[this[fc("0xd")],this.discardButton]},{tag:fc("0xb"),attributes:{class:[fc("0x1c")]}}];this._model[fc("0x18")]&&e.push({tag:fc("0xb"),attributes:{class:[fc("0x1d")]},children:[{text:this[fc("0x23")]()}]});const n={tag:fc("0xb"),attributes:{class:["ck-suggestion-wrapper",t.if(fc("0x4a"),fc("0x38")),t.to(fc("0x1"),(t=>fc("0x0")+t)),this[fc("0x39")][fc("0x26")]&&fc("0x8")],"data-suggestion-id":this._model.id,"data-thread-id":this[fc("0x40")][fc("0x6")].id,"data-author-id":this[fc("0x40")][fc("0x54")].id,tabindex:-1},children:[{tag:fc("0xb"),attributes:{class:[fc("0x4e"),fc("0x27")]},children:[this.userView,{tag:fc("0xb"),attributes:{class:[fc("0x2"),fc("0x5")]},children:e}]}]};return this[fc("0xe")]&&this.commentThreadInputView&&(n[fc("0x30")][fc("0x37")](this[fc("0xe")],this[fc("0x3")]),this[fc("0xe")][fc("0x21")](fc("0x19")).to(this),this.commentsListView[fc("0x21")]("editorDestroyed").to(this),this[fc("0x3")][fc("0x21")](fc("0x19")).to(this),this[fc("0x3")].delegate(fc("0x1e")).to(this)),n}[fc("0x16")](){super.render(),this._descriptionElement=this[fc("0x48")][fc("0x1b")](fc("0x44")),this[fc("0x1a")][fc("0x36")]=this[fc("0x20")],this.on(fc("0x2c"),((t,e,n)=>{this[fc("0x1a")][fc("0x36")]=n}))}[fc("0x43")](t,e,n,o,r){const i=new s.ButtonView(this.locale);return i[fc("0x47")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[fc("0x3d")]({attributes:{class:n}}),i.on(fc("0x3a"),(()=>{this.fire(o,this[fc("0x40")].id)})),i}[fc("0x23")](){return"importWord"===this[fc("0x40")].attributes[fc("0x45")].source?Yo(this.locale,"EXTERNAL_IMPORT_WORD_SUGGESTION"):Yo(this[fc("0x32")],fc("0x3c"))}[fc("0x29")](){return this[fc("0x40")][fc("0x18")]?fc("0x33")===this[fc("0x40")][fc("0x25")][fc("0x45")][fc("0x10")]?Yo(this.locale,fc("0x52"),this[fc("0x40")][fc("0x28")][fc("0x2e")]):Yo(this[fc("0x32")],fc("0x2a"),this[fc("0x40")].creator[fc("0x2e")]):null}}function pc(t,e){let n="";return n+=t[fc("0x2b")]("*")[fc("0x49")](((t,e)=>e%2!=0?fc("0x35")+bc(t)+"</span>":bc(t)))[fc("0x4f")](""),e&&(n+='<span class="ck-suggestion-color" style="background-color: '+e[fc("0x34")]+fc("0x14")+e[fc("0xa")]+fc("0x46")),n}function bc(t){const e=document[fc("0x3f")](fc("0x4"));return e.innerText=t,e[fc("0x36")]}const Ec=["filter","_annotationViews","toMany","has","delete","suggestionChanged","Discard all selected suggestions","map","isInContent","SuggestionThreadView","view","suggestionUnloaded","isEnabled","getSuggestion","trackChanges","_updateController","arrowView","Annotations","Track changes","type","button","addComment","_viewToController","lowest","getJoined","innerView","values","get","destroy","requires","_refreshActiveMarkers","buttonView","_createUIButton","locale","set","_descriptionFactory","commandName","descriptionParts","focus","trackChanges.disableComments","switchbutton","length","getAllAdjacentSuggestions","commentThread","Discard all suggestions","isDirty","discardSelectedSuggestions","getMarkers","activeMarkers","Accept all selected suggestions","listenTo","_suggestionToController","add","commands","value","init","_handleControllerBuffer","model","reduce","bind","comments.maxCommentCharsWhenCollapsed","Accept all suggestions","_disableComments","getFirstRange","getRanges","getDescriptions","suggestionLoaded","addSourceCollector","change:activeAnnotations","getMarkerNames","discardAllSuggestions","TrackChangesEditing","editor","_bindAnnotationToEditors","trackChanges.SuggestionThreadView","CommentView","previous","CommentsUI","getByInnerView","hasSuggestion","change:previous","registerAnnotation","_unbindEditors","createAnnotationView","pluginName","size","EditorAnnotations","createCommentThreadController","isMultiRange","execute","_destroyController","mainView","acceptSelectedSuggestions","remove","acceptButton","actionView","isOn","config","push","editing","head","createAnnotation","CommentsRepository","from","acceptAllSuggestions","refreshSelectedViews","activeAnnotations","_initializeController","plugins","_handleSuggestionControllerDelayed"];var _c,Tc;_c=Ec,Tc=127,function(t){for(;--t;)_c.push(_c.shift())}(++Tc);const Cc=function(t,e){return Ec[t-=0]};class yc extends t.Plugin{static get[Cc("0xc")](){return[Wa,r.Users,Cc("0x55"),"Annotations",Cc("0x45")]}static get[Cc("0x43")](){return"TrackChangesUI"}constructor(t){super(t),this._suggestionToController=new Map,this[Cc("0x5")]=new Map,this._annotationViews=new Map,this[Cc("0x27")]=new Map;const e=this.editor[Cc("0x50")];e.define(Cc("0x39"),hc),e.define(Cc("0x16"),!1),this[Cc("0x2d")]=e[Cc("0xa")](Cc("0x16"))}[Cc("0x5c")](t,e){0===this._handleControllerBuffer[Cc("0x44")]&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this._suggestionToController[Cc("0x60")](t);n||e?n&&e&&this[Cc("0x49")](t):this[Cc("0x5a")](t)}this[Cc("0x37")][Cc("0x5b")][Cc("0xa")]("EditorAnnotations")[Cc("0x58")](),this[Cc("0xd")](),this[Cc("0x27")].clear()}),10),this[Cc("0x27")][Cc("0x11")](t,e)}[Cc("0x26")](){const t=this.editor,e=t[Cc("0x5b")][Cc("0xa")]("TrackChangesEditing"),n=t[Cc("0x5b")][Cc("0xa")]("Annotations"),o=t[Cc("0x5b")][Cc("0xa")](Cc("0x45")),s=t[Cc("0x5b")][Cc("0xa")]("CommentsRepository");t.ui.componentFactory[Cc("0x23")](Cc("0x6b"),(t=>this[Cc("0xf")](t))),o[Cc("0x32")]((()=>{const t=[];for(const[e,n]of Array[Cc("0x56")](this[Cc("0x22")])){const o=e[Cc("0x19")](),s=[];for(const t of o){if(!t[Cc("0x65")])continue;if(t[Cc("0x47")]){s[Cc("0x51")](...t[Cc("0x2f")]());continue}const e=t[Cc("0x2e")]();if(s[Cc("0x18")]>0){const t=s[0][Cc("0x7")](e);if(t){s[0]=t;continue}}s[Cc("0x51")](e)}t.push([n[Cc("0x67")],s])}return t})),this[Cc("0x21")](e,Cc("0x31"),((t,e)=>{this[Cc("0x21")](e,Cc("0x3f"),((t,n,o,s)=>{e[Cc("0x65")]&&(null==o?(this[Cc("0x6c")](s[Cc("0x53")]),this[Cc("0x5c")](e,!1)):(this._updateController(o[Cc("0x53")]),this[Cc("0x5c")](e,!0)))})),null===e[Cc("0x3b")]?this[Cc("0x5c")](e,!1):this[Cc("0x6c")](e[Cc("0x53")])})),this[Cc("0x21")](e,Cc("0x68"),((t,e,n)=>{this.stopListening(e,Cc("0x3f")),this[Cc("0x27")][Cc("0x61")](e);const o=n?n.head:e,s=this._suggestionToController[Cc("0xa")](o);null!==n&&this[Cc("0x6c")](o),null===n&&s&&this[Cc("0x49")](e)})),this[Cc("0x21")](e,Cc("0x62"),((t,e)=>{this[Cc("0x6c")](e)})),this[Cc("0x21")](n,Cc("0x33"),(()=>{this[Cc("0xd")]()})),this[Cc("0x21")](s,Cc("0x4"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Cc("0x3e")](n))return;const s=e[Cc("0x6a")](n);this[Cc("0x22")].get(s).view[Cc("0x15")]()}),{priority:Cc("0x6")})}_refreshActiveMarkers(){const t=this[Cc("0x37")].plugins.get("Annotations"),e=this[Cc("0x37")][Cc("0x5b")][Cc("0xa")](Cc("0x36")),n=Array[Cc("0x56")](t[Cc("0x59")],(t=>t[Cc("0x8")]))[Cc("0x5d")]((t=>this[Cc("0x5")].has(t))),o=[];for(const t of n){const e=this[Cc("0x5")].get(t)[Cc("0x28")][Cc("0x19")]();o[Cc("0x51")](...e[Cc("0x29")](((t,e)=>[...t,...e[Cc("0x34")]()]),[]))}e[Cc("0x1f")]=o}[Cc("0xf")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Cc("0x37")][Cc("0x24")].get(Cc("0x6b")),r=Yo(t,Cc("0x1"));n[Cc("0xe")][Cc("0x11")]({tooltip:r,label:r,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n.buttonView[Cc("0x2a")](Cc("0x4f")).to(o,Cc("0x25")),n[Cc("0xe")].on("execute",(()=>{o[Cc("0x48")](),this.editor.editing[Cc("0x67")].focus()}));const i=new e.Collection,x=[{type:Cc("0x17"),model:{withText:!0,label:r,commandName:Cc("0x6b")}},{type:"separator"},{type:Cc("0x3"),model:{withText:!0,label:Yo(t,Cc("0x2c")),commandName:Cc("0x57")}},{type:"button",model:{withText:!0,label:Yo(t,Cc("0x20")),commandName:Cc("0x4b")}},{type:Cc("0x3"),model:{withText:!0,label:Yo(t,Cc("0x1b")),commandName:Cc("0x35")}},{type:Cc("0x3"),model:{withText:!0,label:Yo(t,Cc("0x63")),commandName:Cc("0x1d")}}];for(const t of x){let e={type:"separator"};if(t[Cc("0x28")]){const n=new s.Model(t[Cc("0x28")]),o=this.editor.commands[Cc("0xa")](n.commandName);n[Cc("0x2a")](Cc("0x4f"),Cc("0x69")).to(o,"value",Cc("0x69")),e={type:t.type,model:n}}i.add(e)}(0,s.addListToDropdown)(n,i);const a=x[Cc("0x5d")]((t=>null!=t.model))[Cc("0x64")]((t=>this[Cc("0x37")][Cc("0x24")][Cc("0xa")](t[Cc("0x28")][Cc("0x13")]))),c=n[Cc("0xe")];return c[Cc("0x4e")].unbind(Cc("0x69")),c[Cc("0x6d")].unbind(Cc("0x69")),c[Cc("0x4e")][Cc("0x2a")](Cc("0x69")).to(o,Cc("0x69")),c[Cc("0x6d")].bind("isEnabled")[Cc("0x5f")](a,Cc("0x69"),((...t)=>t.some((t=>t)))),n.on(Cc("0x48"),(t=>{this[Cc("0x37")][Cc("0x48")](t.source[Cc("0x13")]),this[Cc("0x37")][Cc("0x52")][Cc("0x67")].focus()})),n}[Cc("0x5a")](t){const e=this.editor,n=e.config,o=e.plugins[Cc("0xa")](Cc("0x0")),s=e[Cc("0x5b")].get(Cc("0x55")),i=e[Cc("0x5b")][Cc("0xa")](Cc("0x45")),x=e.plugins.get(r.Users).me,a=n[Cc("0xa")](Cc("0x6b"))[Cc("0x66")],{CommentsListView:c,CommentThreadInputView:l}=e[Cc("0x5b")][Cc("0xa")](Cc("0x3c"));let d,u;this[Cc("0x5e")].has(t.id)?(u=this[Cc("0x5e")].get(t.id),d=u[Cc("0x4a")]):(d=new a(e[Cc("0x10")],t,x,{disableComments:this[Cc("0x2d")],editorConfig:n[Cc("0xa")]("comments.editorConfig"),maxCommentsWhenCollapsed:n[Cc("0xa")]("comments.maxCommentsWhenCollapsed"),maxThreadTotalWeight:n[Cc("0xa")]("comments.maxThreadTotalWeight"),maxCommentCharsWhenCollapsed:n[Cc("0xa")](Cc("0x2b")),formatDateTime:(0,r.getDateTimeFormatter)(n[Cc("0xa")](Cc("0x10"))),CommentView:n[Cc("0xa")]("comments")[Cc("0x3a")],CommentsListView:c,CommentThreadInputView:l}),d[Cc("0x4d")].on("execute",(()=>{e[Cc("0x52")][Cc("0x67")][Cc("0x15")]()})),d.discardButton.on(Cc("0x48"),(()=>{e[Cc("0x52")][Cc("0x67")].focus()})),u=o[Cc("0x42")](this[Cc("0x37")][Cc("0x10")],d),u[Cc("0x2a")](Cc("0x1c")).to(d,"isDirty"),u[Cc("0x2a")](Cc("0x18")).to(d),u.bind(Cc("0x2")).to(d,Cc("0x2"),(t=>"suggestion-"+t)),this[Cc("0x5e")][Cc("0x11")](t.id,u));const g=s[Cc("0x46")](t[Cc("0x1a")],d),m=new ic(e,t,d,g),f=t.getAllAdjacentSuggestions()[Cc("0x5d")]((t=>t[Cc("0x65")]));d.descriptionParts=e[Cc("0x5b")].get("TrackChangesEditing")[Cc("0x12")][Cc("0x30")](f),this[Cc("0x22")][Cc("0x11")](t,m),this._viewToController[Cc("0x11")](d,m);const h=o[Cc("0x54")]({view:u,target:()=>{const n=[],o=t.getAllAdjacentSuggestions()[Cc("0x5d")]((t=>t[Cc("0x65")]));for(const t of o)n[Cc("0x51")](...t[Cc("0x1e")]());return(0,r.getAllMarkersDomElementsSorted)(e.editing,n)},type:()=>"suggestion-"+m[Cc("0x67")][Cc("0x2")]});s[Cc("0x38")](d,h),o[Cc("0x23")](h),i[Cc("0x40")](h)}_destroyController(t){const e=this[Cc("0x37")][Cc("0x5b")][Cc("0xa")](Cc("0x55")),n=this[Cc("0x37")][Cc("0x5b")][Cc("0xa")](Cc("0x0")),o=this[Cc("0x22")].get(t),s=o[Cc("0x67")],r=n[Cc("0x3d")](s);e[Cc("0x41")](s),r&&n[Cc("0x4c")](r),this[Cc("0x22")].delete(t),this._viewToController[Cc("0x61")](s),o[Cc("0xb")]()}[Cc("0x6c")](t){if(!t[Cc("0x65")]||!this[Cc("0x22")][Cc("0x60")](t))return;const e=this[Cc("0x37")].plugins.get(Cc("0x36")),n=this[Cc("0x22")][Cc("0xa")](t),o=t.getAllAdjacentSuggestions();n[Cc("0x67")][Cc("0x14")]=e[Cc("0x12")][Cc("0x30")](o)}[Cc("0xb")](){for(const t of this[Cc("0x22")].keys())this._destroyController(t);for(const t of this[Cc("0x5e")][Cc("0x9")]())t[Cc("0x4a")][Cc("0xb")]();super[Cc("0xb")]()}}var kc,Ac,vc=["TrackChanges","getSuggestion","addSuggestionData","get","editor","plugins","getSuggestions","requires","pluginName","adapter"];kc=vc,Ac=326,function(t){for(;--t;)kc.push(kc.shift())}(++Ac);var Rc=function(t,e){return vc[t-=0]};class Sc extends t.Plugin{static get[Rc("0x1")](){return[Wa,yc,"Comments"]}static get[Rc("0x2")](){return Rc("0x4")}set[Rc("0x3")](t){this.editor[Rc("0x9")][Rc("0x7")](Wa).adapter=t}get[Rc("0x3")](){return this[Rc("0x8")][Rc("0x9")][Rc("0x7")](Wa)[Rc("0x3")]}addSuggestion(t){return this[Rc("0x8")][Rc("0x9")][Rc("0x7")](Wa)[Rc("0x6")](t)}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[Rc("0x8")].plugins[Rc("0x7")](Wa)[Rc("0x0")]({skipNotAttached:t,toJSON:e})}[Rc("0x5")](t){return this.editor[Rc("0x9")][Rc("0x7")](Wa)[Rc("0x5")](t)}}const Ic=["_adapter","init","push","map","getRootNames","acceptAllSuggestions","reduce","function","set","getDataWithAcceptedSuggestions","constructor","getRootsAttributes","Users","get","TrackChangesDataGetter","pluginName","appendChild","trackChangesData","useAnonymousUser","data","div","result","getFullData","document","end","requires","Pagination","execute","addUser","TrackChangesData","destroy","plugins","TrackChangesEditing","editor","getSuggestions","getDataWithDiscardedSuggestions","rootsAttributes","getUser","trackChangesData.editorCreator","define","discardAllSuggestions","model","config"];var Lc,Nc;Lc=Ic,Nc=295,function(t){for(;--t;)Lc.push(Lc.shift())}(++Nc);const Mc=function(t,e){return Ic[t-=0]},wc=[Mc("0x20")];class Oc extends t.Plugin{static get[Mc("0x1f")](){return[Wa]}static get[Mc("0x15")](){return Mc("0x23")}init(){const t=this[Mc("0x27")];if(t[Mc("0x5")][Mc("0x2")](Mc("0x1"),(e=>{const n=t[Mc("0x4")][Mc("0x1d")][Mc("0xa")]()[Mc("0xc")](((t,e)=>(t[e]="",t)),{});return t[Mc("0x10")].create(n,e)})),Mc("0xd")!=typeof t[Mc("0x5")][Mc("0x13")](Mc("0x17")).editorCreator)throw new e.CKEditorError("track-changes-data-invalid-editor-creator")}[Mc("0xf")](t){return Dc(this[Mc("0x27")],!0,t)}[Mc("0x29")](t){return Dc(this[Mc("0x27")],!1,t)}}class Fc extends t.Plugin{static get[Mc("0x15")](){return Mc("0x14")}constructor(t){super(t),this[Mc("0x1b")]=Mc("0x1e")}[Mc("0x7")](){this[Mc("0x27")][Mc("0x25")][Mc("0x13")]("CommentsRepository")[Mc("0x6")]={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[Mc("0x27")][Mc("0x25")].get(Mc("0x26"))[Mc("0x6")]=null}}function Pc(t){return void 0!==t[Mc("0x11")]}async function Dc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,wc);o[Mc("0x25")][Mc("0x8")](Wa,Fc),o[Mc("0x2a")]=Pc(t)?t[Mc("0x11")]():void 0;const s=document.createDocumentFragment(),i=t[Mc("0x5")][Mc("0x13")](Mc("0x17")).editorCreator,x=await i(o,(()=>function(t){const e=document.createElement(Mc("0x1a"));return t[Mc("0x16")](e),e}(s)));!function(t,e){const n=t[Mc("0x4")].document[Mc("0xa")]().reduce(((e,n)=>(e[n]=t[Mc("0x19")].get({rootName:n}),e)),{}),o=t[Mc("0x25")].get("Users").users[Mc("0x9")]((t=>({id:t.id,name:t.name}))),s=t[Mc("0x25")][Mc("0x13")](Mc("0x26"))[Mc("0x28")]({skipNotAttached:!0,toJSON:!0}),r=e[Mc("0x25")][Mc("0x13")](Mc("0x12")),i=e[Mc("0x25")].get(Mc("0x26"));for(const t of o)r[Mc("0x0")](t.id)||r[Mc("0x22")](t);r.me||r[Mc("0x18")]();for(const t of s)i.addSuggestionData(t);e[Mc("0x19")][Mc("0xe")](n)}(t,x),x[Mc("0x21")](Mc(e?"0xb":"0x3"));const a=Pc(x)?x[Mc("0x1c")](n):x.data[Mc("0x13")](n);return await x[Mc("0x24")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|