@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230811.0 → 0.0.0-nightly-20230812.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/build/track-changes.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
/*!
|
|
3
3
|
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
4
4
|
* For licensing, see LICENSE.md.
|
|
5
|
-
*/(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var s=e[o];if(void 0!==s)return s.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>ac,TrackChanges:()=>Ac,TrackChangesData:()=>Nc,TrackChangesEditing:()=>Va});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["editor","TrackChangesCommand","affectsData","refresh","commands","_enableCommands","_enabledCommands","value","execute","_isEnabledBasedOnSelection","isEnabled","clearForceDisabled","forceDisabled","_disableUnsupportedCommands"];var c,l;c=a,l=392,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this[u("0x6")]=e,this[u("0x7")]=!1,this[u("0x3")](),this[u("0x9")]=!1}refresh(){this[u("0xa")]=!0}[u("0x8")](){this.value=!this.value,this[u("0x7")]?this[u("0xd")]():this[u("0x5")]()}[u("0xd")](){for(const t of this[u("0x0")][u("0x4")][u("0x4")]())t[u("0x2")]&&!this[u("0x6")].has(t)&&t[u("0xc")](u("0x1"))}[u("0x5")](){for(const t of this[u("0x0")][u("0x4")][u("0x4")]())t.affectsData&&!this[u("0x6")].has(t)&&t[u("0xb")]("TrackChangesCommand")}}const g=["TrackChangesEditing","canEditAt","isEnabled","_isEnabledBasedOnSelection","model","plugins","execute","_suggestions","getRanges","get","refresh","acceptSuggestion","track-changes-accept-suggestion-not-found","editor"];var m,f;m=g,f=357,function(t){for(;--t;)m.push(m.shift())}(++f);const h=function(t,e){return g[t-=0]};class b extends t.Command{constructor(t,e){super(t),this[h("0x0")]=e,this[h("0x3")](),this[h("0xa")]=!1}[h("0x3")](){this[h("0x9")]=!0}[h("0xd")](t){const n=this[h("0x0")][h("0x2")](t);if(!n)throw new e.CKEditorError(h("0x5"),this);const o=n[h("0x1")]();this.editor[h("0xb")][h("0x8")](o)&&this[h("0x6")][h("0xc")][h("0x2")](h("0x7"))[h("0x4")](n)}}const p=["get","editor","model","track-changes-discard-suggestion-not-found","canEditAt","TrackChangesEditing","isEnabled","_isEnabledBasedOnSelection","execute","refresh","_suggestions","getRanges"];var E,_;E=p,_=137,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return p[t-=0]};class C extends t.Command{constructor(t,e){super(t),this[T("0x5")]=e,this[T("0x4")](),this[T("0x2")]=!1}refresh(){this[T("0x1")]=!0}[T("0x3")](t){const n=this[T("0x5")][T("0x7")](t);if(!n)throw new e.CKEditorError(T("0xa"),this);const o=n[T("0x6")]();this.editor[T("0x9")][T("0xb")](o)&&this[T("0x8")].plugins.get(T("0x0")).discardSuggestion(n)}}const y=["createPositionAt","push","add","deletion","getRanges","change","createPositionBefore","getRange","isTouching","length","value","createRange","color","execute","createPositionAfter","type","schema","end","splice","content","isIntersecting","map","replace","start","isArray","sort","isObject","join"," [color ","isInContent","next"];var k,A;k=y,A=341,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x19")](((t,e)=>"deletion"==t[v("0xf")]&&v("0x3")!=e[v("0xf")]?-1:v("0x3")!=t[v("0xf")]&&"deletion"==e[v("0xf")]?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0x10")];for(;o<t[v("0x9")];){const i=t[o],x=t[o+1];n||(n=e[v("0x6")](i)),I(e,i,x)||(s[v("0x1")](e[v("0xb")](n,r[v("0x1a")](i)?e[v("0xe")](i):e[v("0x0")](i,v("0x11")))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t.createPositionAfter(e),s=t[v("0x6")](n);return o[v("0x8")](s)}function L(t,e,n){for(;n[v("0x9")];){const o=n[v("0x12")](0,100);t[v("0x5")]((()=>{for(const t of o)t[v("0x1d")]&&e[v("0xd")](t.id)}))}}const N=["values","editor","_isEnabledBasedOnSelection","refresh","_suggestions","_command","canEditAt","isEnabled","getRanges","from","execute","model"];var M,w;M=N,w=325,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("0x4")]=e,this._suggestions=n,this[O("0x2")](),this[O("0x1")]=!1}[O("0x2")](){const t=Array[O("0x8")](this[O("0x3")][O("0xb")]()).some((t=>t.isInContent));this.isEnabled=this[O("0x4")][O("0x6")]&&t}[O("0x9")](){const t=R(Array[O("0x8")](this[O("0x3")][O("0xb")]()));for(const e of t){const t=e[O("0x7")]();if(!this[O("0x0")][O("0xa")][O("0x5")](t))return}L(this[O("0x0")][O("0xa")],this._command,t)}}const P=["selection","refresh","_suggestions","from","_command","document","values","size","_selectedSuggestions","editor","_isEnabledBasedOnSelection","model"];var D,B;D=P,B=141,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._command=e,this[j("0x5")]=n,this[j("0xb")]=new Set,this.refresh(),this[j("0x1")]=!1}[j("0x4")](){const t=this[j("0x0")][j("0x2")][j("0x8")][j("0x3")],e=Array[j("0x6")](this[j("0x5")][j("0x9")]());this[j("0xb")]=function(t,e){const n=Array.from(t[v("0x4")]()),o=new Set;for(const s of e)if(s[v("0x1d")])for(const e of n)for(const n of s.getMarkers()){const r=n[v("0x7")]();(e[v("0x14")](r)||t.isCollapsed&&!s.isMultiRange&&s[v("0x1e")]&&r[v("0x11")].isTouching(e[v("0x17")]))&&o[v("0x2")](s)}return o}(t,e),this.isEnabled=this[j("0x7")].isEnabled&&!!this._selectedSuggestions[j("0xa")]}execute(){const t=R(Array[j("0x6")](this[j("0xb")]));for(const e of t){const t=e.getRanges();if(!this[j("0x0")][j("0x2")].canEditAt(t))return}L(this.editor[j("0x2")],this[j("0x7")],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 V=Array.prototype.splice;const W=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():V.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=W,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const J=$;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var bt,pt=(bt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+bt:"";const Et=function(t){return!!pt&&pt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const It=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=It(t,e);return St(n)?n:void 0};const Nt=Lt(ot,"Map");const Mt=Lt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=wt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Vt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Wt=function(t){var e=Vt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Vt(this,t).get(t)};const qt=function(t){return Vt(this,t).has(t)};const Xt=function(t,e){var n=Vt(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=Wt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,be=he&&he.exports===fe?ot.Buffer:void 0;const pe=(be?be.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Se=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Ie=Se&&Se.isTypedArray;const Le=Ie?ke(Ie):ye;var Ne=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&de(t),s=!n&&!o&&pe(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const Ve=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 We=function(t){return je(t)?Me(t,!0):Ve(t)};const Ke=function(t,e){return t&&re(e,We(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Je=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const un=function(t){return ln(t,Ue,on)};const dn=function(t){return ln(t,We,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var bn="[object Map]",pn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=bn||mn&&Rn(mn.resolve())!=pn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return bn;case kn:return pn;case An:return En;case vn:return _n}return e});const Sn=Rn;var In=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&In.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Vn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Wn=Se&&Se.isMap;const Kn=Wn?ke(Wn):Vn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?ke(Xn):qn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var u=ge(e);if(u){if(x=Ln(e),!a)return Ze(e,x)}else{var d=Sn(e),g=d==Qn||"[object GeneratorFunction]"==d;if(pe(e))return Qe(e,a);if(d==Zn||d==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[d])return r?e:{};x=Un(e,d,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),$n(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var f=u?void 0:(l?c?dn:un:c?We:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const bo=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const po=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=bo(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=po(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++u<x;){var m=t[u],f=e[u];if(o)var h=i?o(f,m,u,e,t,r):o(m,f,u,t,e,r);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){d=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){d=!1;break}}return r.delete(t),r.delete(e),d};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const Mo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=So;case"[object Set]":var a=1&o;if(x||(x=Io),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:wo.call(e,l)))return!1}var u=r.get(t),d=r.get(e);if(u&&d)return u==e&&d==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var b=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===b?f===h||s(f,h,n,o,r):b)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var p=t.constructor,E=e.constructor;p==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof p&&p instanceof p&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po:Sn(t),c=x?Po:Sn(e),l=(a=a==Fo?Do:a)==Do,u=(c=c==Fo?Do:c)==Do,d=a==c;if(d&&pe(t)){if(!pe(e))return!1;i=!0,l=!1}if(d&&!l)return r||(r=new Yt),i||Le(t)?Ro(t,e,n,o,s,r):Mo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=u&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!d&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const zo=function(t,e){for(var n=0,o=(e=bo(e,t)).length;null!=t&&n<o;)t=t[po(e[n++])];return n&&n==o?t:void 0};const Vo=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 Wo=function(t,e){return e.length<2?t:zo(t,Vo(e,0,-1))};const Ko=function(t,e){return e=bo(e,t),null==(t=Wo(t,e))||delete t[po(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["getRanges","previous","next","_saved","addRange","type","addMarker","decorate","createdAt","change","from","commentThread","getItems","getFirstMarker","getMarkerNames","removeMarker","authoredAt","_model","removeMarkers","map","addMarkerName","length","getMultiRangeId","isMultiRange","hasComments","creator","set","data","isInContent","attributes","discard","accept","_markerNames","_onAccept","isIntersecting","delete","push","getMarkers","filter","getContainedElement","substr","subType","start","onAttributesChange","get","split","author","removeAttribute","_onAttributesChange","reduce","onAccept","getFirstRange","markers","add","suggestion:","head"];var $o,Jo;$o=Xo,Jo=150,function(t){for(;--t;)$o.push($o.shift())}(++Jo);const Qo=function(t,e){return Xo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this.id=e.id,this[Qo("0x17")]=e[Qo("0x17")],this[Qo("0x3")]=e.subType||null,this.author=e[Qo("0x8")],this[Qo("0x2b")]=e[Qo("0x2b")]||e[Qo("0x8")],this.isExternal=Boolean(e.attributes&&e[Qo("0x2f")]["@external"]),this[Qo("0x2d")]=null,this._model=t,this[Qo("0x33")]=e[Qo("0xc")],this._onDiscard=e.onDiscard,this[Qo("0xa")]=e[Qo("0x5")],this[Qo("0x32")]=new Set,this[Qo("0x1a")]=null,this[Qo("0x2c")](Qo("0x22"),null),this[Qo("0x2c")](Qo("0x2f"),e.attributes||{}),this[Qo("0x2c")]("previous",null),this[Qo("0x2c")](Qo("0x14"),null),this[Qo("0x2c")]("commentThread",null),this[Qo("0x2c")](Qo("0x15"),!1),this[Qo("0x19")](Qo("0x31")),this.decorate("discard")}get[Qo("0x11")](){let t=this;for(;t[Qo("0x13")];)t=t[Qo("0x13")];return t}get[Qo("0x2a")](){return!!this[Qo("0x1d")]&&this[Qo("0x1d")][Qo("0x27")]>0}get[Qo("0x29")](){return 0!=this[Qo("0x32")].size&&6==Array.from(this._markerNames)[0][Qo("0x7")](":").length}get[Qo("0x2e")](){return null!==this[Qo("0x1f")]()}[Qo("0x26")](t){this[Qo("0x32")][Qo("0xf")](t)}[Qo("0x20")](){return Array[Qo("0x1c")](this._markerNames)}[Qo("0x37")](){return this[Qo("0x20")]()[Qo("0x25")]((t=>this._model[Qo("0xe")][Qo("0x6")](t)))[Qo("0x0")]((t=>t))}getFirstMarker(){return this[Qo("0x37")]()[0]||null}[Qo("0x24")](){this._model[Qo("0x1b")]((t=>{for(const e of this.getMarkers())t[Qo("0x21")](e)})),this[Qo("0x32")].clear()}[Qo("0x21")](t){this[Qo("0x23")][Qo("0x1b")]((e=>{e[Qo("0x21")](t)})),this[Qo("0x32")][Qo("0x35")](t)}[Qo("0x16")](t){const e=Qo("0x10")+this[Qo("0x17")]+":"+this[Qo("0x3")]+":"+this.id+":"+this[Qo("0x2b")].id+":"+Zo[Qo("0x28")]();this[Qo("0x26")](e),this[Qo("0x23")][Qo("0x1b")]((n=>{n[Qo("0x18")](e,{range:t,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(t){for(const e of this.getRanges())if(e[Qo("0x34")](t))return!0;return!1}getRanges(){return this[Qo("0x37")]().map((t=>t.getRange()))}[Qo("0x1e")](){return this.getRanges()[Qo("0xb")](((t,e)=>[...t,...e[Qo("0x1e")]()]),[])}[Qo("0xd")](){var t;return(null===(t=this[Qo("0x1f")]())||void 0===t?void 0:t.getRange())||null}[Qo("0x1")](){const t=this[Qo("0x12")]();if(1!=t[Qo("0x27")])return null;const e=t[0],n=e[Qo("0x4")].nodeAfter,o=e.end.nodeBefore;return n instanceof i.Element?n!=o?null:n:null}[Qo("0x31")](){this[Qo("0x33")](this.getRanges(),this.data,this[Qo("0x2f")]),this.removeMarkers()}[Qo("0x30")](){this._onDiscard(this[Qo("0x12")](),this[Qo("0x2d")],this[Qo("0x2f")]),this[Qo("0x24")]()}getAllAdjacentSuggestions(){const t=[];let e=this.head;for(;e;)t[Qo("0x36")](e),e=e[Qo("0x14")];return t}setAttribute(t,e){const n=eo(this.attributes);_o(n,t,e),Go(n,this.attributes)||(this[Qo("0x2f")]=n,this[Qo("0xa")](n))}[Qo("0x9")](t){const e=eo(this.attributes);qo(e,t),Go(e,this[Qo("0x2f")])||(this[Qo("0x2f")]=e,this._onAttributesChange(this[Qo("0x2f")]))}toJSON(){return{id:this.id,type:this[Qo("0x3")]?this.type+":"+this[Qo("0x3")]:this.type,authorId:this[Qo("0x2b")].id,createdAt:this[Qo("0x1a")],hasComments:this.hasComments,data:this[Qo("0x2d")],attributes:this[Qo("0x2f")]}}static[Qo("0x28")](){return(0,e.uid)()[Qo("0x2")](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=["add","_customCallbacks","EmptyContainer","elementStart","pop","normal","type","_resolveDescriptionItems","deletion","text","_locale","removeEmptyContainer","addContainer","length","indexOf","_addDescriptionItems","registerElementLabel","skip","registerDescriptionCallback","*Merge:* %0","label","isInContent","getFirstRange","name","getWalker","quantity","push","function","elementEnd","removeObject","checkChild","previousSibling","_itemLabels","element","get","replace","match","addObject","*Split:* %0","ELEMENT_SPACE","$1 $2","data","REPLACE_TEXT","removeContainer","_schema","getItemLabel","*Remove:* %0","isObject","remove","addEmptyContainer","nextSibling","*Insert:* %0","item","insertion","Container","isEmpty","_itemLabelsCallbacks","Object","$text"];var es,ns;es=ts,ns=395,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("0x13")]=[],this[os("0x32")]=new Map,this[os("0xf")]=[],this[os("0x3")]=t,this[os("0x1c")]=e}getDescriptions(t){const e=[];for(let n=0;n<t[os("0x1f")];n++){const o=t[n];if(!o[os("0x27")])continue;let s=!1;for(const t of this[os("0x13")]){const n=t(o);if(n){"type"in n&&e[os("0x2c")](n),s=!0;break}}if(!s){this._addDescriptionItems(e,o);const s=t[n+1];if(s&&!o[os("0x28")]().end.isEqual(s[os("0x28")]().start)){const t=e[e[os("0x1f")]-1],n=os("0xc")==o[os("0x18")]?os("0x12"):os("0x7");t&&"text"==t[os("0x18")]&&(t[n]+="\n")}}}return this[os("0x19")](e)}[os("0x24")](t){this[os("0x13")][os("0x2c")](t)}[os("0x22")](t,n,o=e.priorities[os("0x17")]){os("0x2d")==typeof t?(0,e.insertToPriorityArray)(this[os("0xf")],{matchingCallback:t,label:n,priority:o}):this[os("0x32")].set(t,n)}getItemLabel(t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e.matchingCallback(t)){n=e[os("0x26")];break}return n||(n=this[os("0x32")][os("0x34")](t.name)),n?n(e):1!==e?e+" "+t[os("0x29")]+"s":""+t.name}[os("0x21")](t,e){const n=e[os("0x28")]()[os("0x2a")](),o=os("0xc")==e[os("0x18")]?"add":os("0x7");for(const e of n){const s=e[os("0xb")],r=t[t[os("0x1f")]-1];if(s.is("$textProxy"))r&&r[os("0x18")][os("0x20")](os("0xd"))>-1&&t[os("0x16")](),r&&os("0x1b")==r.type?r[o]+=s.data:t.push({type:os("0x1b"),add:"add"==o?s[os("0x0")]:"",remove:os("0x7")==o?s.data:""});else if(this[os("0x3")][os("0x6")](s)){const i=s;if(r&&r.type[os("0x20")]("Container")>-1&&t[os("0x16")](),os("0x2e")==e[os("0x18")])continue;r&&r[os("0x18")]==o+os("0x10")&&r[os("0x33")][os("0x29")]==i[os("0x29")]?r[os("0x2b")]++:t[os("0x2c")]({type:o+os("0x10"),element:i,quantity:1}),n[os("0x23")]((t=>!(os("0x2e")==t[os("0x18")]&&t[os("0xb")]==s)))}else if(this._schema[os("0x30")](s,os("0x11"))||s.is(os("0x33"),"softBreak")){const n=s;if("add"==o&&os("0x15")==e[os("0x18")]||"remove"==o&&"elementEnd"==e[os("0x18")])continue;if(r&&-1==r[os("0x18")][os("0x20")](os("0xd"))){os("0x1b")==r[os("0x18")]&&(r[o]+="\n");continue}let i;if(i=os("0x12")==o?n[os("0x9")]&&!this[os("0x3")].isObject(n[os("0x9")])?n[os("0x9")]:null:n[os("0x31")]&&!this[os("0x3")].isObject(n[os("0x31")])?n[os("0x31")]:null,n[os("0xe")]||i&&i[os("0xe")]){const e=i&&i[os("0xe")]?i:n;r&&r[os("0x18")]==o+os("0x14")&&r.element[os("0x29")]==e[os("0x29")]?r[os("0x2b")]++:t[os("0x2c")]({type:o+os("0x14"),element:e,quantity:1})}else t.push({type:o+os("0xd"),element:n})}}}[os("0x19")](t){const e=this[os("0x1c")],n=[];for(const o of t){switch(o.type){case os("0x1b"):if(o.add=o.add[os("0x35")](/(\S)\u000A+(\S)/g,os("0x3a"))[os("0x35")](/\u000A/g,""),o[os("0x7")]=o[os("0x7")][os("0x35")](/(\S)\u000A+(\S)/g,os("0x3a"))[os("0x35")](/\u000A/g,""),""!=o[os("0x12")]&&""!=o.remove){n[os("0x2c")]({type:os("0x35"),content:Yo(e,os("0x1"),['"'+o[os("0x7")]+'"','"'+o.add+'"'])});continue}if(null!=o[os("0x12")][os("0x36")](/^ +$/)){n[os("0x2c")]({type:os("0xc"),content:Yo(e,os("0xa"),Yo(e,os("0x39"),o[os("0x12")].length))});continue}if(null!=o[os("0x7")][os("0x36")](/^ +$/)){n.push({type:"deletion",content:Yo(e,os("0x5"),Yo(e,"ELEMENT_SPACE",o.remove[os("0x1f")]))});continue}if(""!=o[os("0x12")]){n.push({type:os("0xc"),content:Yo(e,"*Insert:* %0",'"'+o[os("0x12")]+'"')});continue}n[os("0x2c")]({type:os("0x1a"),content:Yo(e,"*Remove:* %0",'"'+o[os("0x7")]+'"')});continue;case os("0x8"):case os("0x37"):n[os("0x2c")]({type:"insertion",content:Yo(e,"*Insert:* %0",this[os("0x4")](o[os("0x33")],o[os("0x2b")]))});continue;case os("0x1d"):case os("0x2f"):n[os("0x2c")]({type:"deletion",content:Yo(e,os("0x5"),this[os("0x4")](o[os("0x33")],o[os("0x2b")]))});continue;case os("0x1e"):n[os("0x2c")]({type:os("0xc"),content:Yo(e,os("0x38"),this[os("0x4")](o.element,o[os("0x2b")]))});continue;case os("0x2"):n.push({type:"deletion",content:Yo(e,os("0x25"),this[os("0x4")](o[os("0x33")],o[os("0x2b")]))});continue}n[os("0x2c")](o)}return n}}const rs=["right","locale","get","document","FORMAT_ALIGN_TO_LEFT","getSelectedBlocks","*Format:* %0","FORMAT_ALIGN_TO_CENTER","model","markBlockFormat","enableCommand","FORMAT_JUSTIFY_TEXT","has","editor","getAttribute","value","AlignmentEditing","commandParams","_descriptionFactory","alignment","FORMAT_ALIGN_TO_RIGHT","ltr","left","registerDescriptionCallback","checkAttribute","plugins","justify"];var is,xs;is=rs,xs=160,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{afterInit(){const t=this[as("0xf")],e=t[as("0x3")];if(!t[as("0x0")][as("0xe")](as("0x12")))return;const n=t.plugins[as("0x4")]("TrackChangesEditing");n[as("0xc")]("alignment",((e,o={})=>{let s=o[as("0x11")];o[as("0x11")]||(s=as("0x17")===t[as("0x3")].contentLanguageDirection?as("0x18"):as("0x2"));const r=Array.from(this[as("0xf")][as("0xa")][as("0x5")].selection[as("0x7")]()).filter((t=>function(t,e,n){const o=t[as("0x10")](as("0x15"))||null;return e[as("0x1a")](t,"alignment")&&n!=o}(t,this[as("0xf")][as("0xa")].schema,s)));t[as("0xa")].change((()=>{for(const t of r)n[as("0xb")](t,{commandName:"alignment",commandParams:[{value:s}]})}))})),n[as("0x14")][as("0x19")]((t=>{const{data:n}=t;if(n&&as("0x15")==n.commandName){const t=n[as("0x13")][0][as("0x11")];return{type:"format",content:Yo(e,as("0x8"),function(t){switch(t){case"left":return Yo(e,as("0x6"));case as("0x2"):return Yo(e,as("0x16"));case"center":return Yo(e,as("0x9"));case as("0x1"):return Yo(e,as("0xd"))}}(t))}}}))}}const ls=["previousPosition","addHighlight","activeMarkers","element","markerRange","test","includes","type","schema","isBlock","elementEnd","item","plugins","writer","isContent","createRangeOn","isLimit","span","ck-suggestion-marker--active","toViewElement","bindElementToMarker","ck-suggestion-marker-","getItems","listIndent","consumable","isAtEnd","mapper","TrackChangesEditing","getWalker","toViewPosition","listItem","start","get","nextSibling","push"];var us,ds;us=ls,ds=381,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e[gs("0x1a")]())s.hasAttribute(t)&&o[gs("0x3")](n[gs("0x13")](s));return o}function fs(t){const e=[];if(t.is("element",gs("0x22"))){let n=t[gs("0x2")];for(;n&&n.is(gs("0x7"),gs("0x22"))&&n.getAttribute(gs("0x1b"))>0;)e[gs("0x3")](n),n=n[gs("0x2")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t[gs("0x10")][gs("0x1")](gs("0x1f"));return(s,r,i)=>{if(!i[gs("0x1c")][gs("0x9")](r.markerRange,s.name))return;const x=r[gs("0x8")][gs("0x20")](),a=r[gs("0x8")][gs("0x0")],c=t.model[gs("0xc")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[gs("0xf")];d=d||c[gs("0x12")](e);const n=i[gs("0x1e")][gs("0x17")](e);if(n&&n.getCustomProperty(gs("0x5")))return;gs("0xe")==t[gs("0xb")]&&c[gs("0xd")](e)&&!c[gs("0x14")](e)&&(e[gs("0x2")]||a[gs("0x1d")]?l&&l.parent==e||(l=e,m(t.previousPosition),g=!0):u=u||t[gs("0x4")])}function m(t){const s=i[gs("0x11")].createUIElement(gs("0x15"),{class:gs("0x19")+e}),x=i.mapper[gs("0x21")](t);n&&o[gs("0x6")][gs("0xa")](r.markerName)&&i[gs("0x11")].addClass(gs("0x16"),s),i.writer.insert(x,s),i[gs("0x1e")][gs("0x18")](s,r.markerName)}d||g||!u||m(u)}}const bs=["get","bold","editor","change","value","SuperscriptEditing","model","TrackChangesEditing","CodeEditing","UnderlineEditing","underline","subscript","markInlineFormat","FORMAT_STRIKETHROUGH","StrikethroughEditing","forceValue","commandParams","from","plugins","code","BoldEditing","has","isCollapsed","*Remove format:* %0","document","enableCommand","locale","FORMAT_BOLD","*Format:* %0","superscript","strikethrough","italic","afterInit","FORMAT_SUBSCRIPT","format","toLowerCase"];var ps,Es;ps=bs,Es=387,function(t){for(;--t;)ps.push(ps.shift())}(++Es);const _s=function(t,e){return bs[t-=0]},Ts=[_s("0x1d"),"ItalicEditing",_s("0x12"),_s("0x11"),_s("0x17"),"SubscriptEditing",_s("0xe")];class Cs extends t.Plugin{[_s("0x5")](){const t=this[_s("0xb")],e=t[_s("0xf")],n=t.plugins[_s("0x9")](_s("0x10")),o=t[_s("0x23")];for(const o of Ts){if(!t[_s("0x1b")][_s("0x1e")](o))continue;const s=o.slice(0,-7)[_s("0x8")](),r=t.commands[_s("0x9")](s);n[_s("0x22")](s,((t,o={})=>{const i=e[_s("0x21")].selection;if(i[_s("0x1f")])return void t(o);const x=void 0!==o[_s("0x18")]?o[_s("0x18")]:!r[_s("0xd")];e[_s("0xc")]((()=>{const t=Array[_s("0x1a")](i.getRanges());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n[_s("0x15")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n._descriptionFactory.registerDescriptionCallback((n=>{const{data:s}=n;if(s&&s.commandName===t)return s[_s("0x19")][0].forceValue?{type:_s("0x7"),content:Yo(o,_s("0x1"),e)}:{type:_s("0x7"),content:Yo(o,_s("0x20"),e)}}))}s(_s("0xa"),Yo(o,_s("0x0"))),s(_s("0x4"),Yo(o,"FORMAT_ITALIC")),s(_s("0x13"),Yo(o,"FORMAT_UNDERLINE")),s(_s("0x1c"),Yo(o,"FORMAT_CODE")),s(_s("0x3"),Yo(o,_s("0x16"))),s(_s("0x14"),Yo(o,_s("0x6"))),s(_s("0x2"),Yo(o,"FORMAT_SUPERSCRIPT"))}}const ys=["get","ELEMENT_BLOCK_QUOTE","document","format","from","_descriptionFactory","commands","afterInit","name","locale","enableCommand","*Format:* %0","filter","has","checkChild","change","editor","parent","forceValue","commandParams","BlockQuoteEditing","blockQuote","registerDescriptionCallback","*Remove format:* %0","value","$root","model","plugins","commandName","getSelectedBlocks","schema"];var ks,As;ks=ys,As=251,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0x4")](){const t=this.editor,e=t[vs("0x6")];if(!t[vs("0x18")][vs("0xa")](vs("0x11")))return;const n=t[vs("0x18")].get("TrackChangesEditing"),o=this[vs("0xd")][vs("0x3")][vs("0x1c")](vs("0x12"));n[vs("0x7")](vs("0x12"),((e,s={})=>{const r=this[vs("0xd")][vs("0x17")][vs("0x1e")].selection,i=s&&void 0!==s[vs("0xf")]?s[vs("0xf")]:!o[vs("0x15")];let x=[];if(i){const e=Array[vs("0x1")](r[vs("0x1a")]())[vs("0x9")]((t=>Ss(t)||function(t,e){const n=e[vs("0xb")](t[vs("0xe")],vs("0x12")),o=e[vs("0xb")]([vs("0x16"),"blockQuote"],t);return n&&o}(t,this[vs("0xd")][vs("0x17")][vs("0x1b")])));x=S(e,t[vs("0x17")])}else{const e=Array[vs("0x1")](r[vs("0x1a")]())[vs("0x9")]((t=>Ss(t)));x=S(e,t[vs("0x17")])}t.model[vs("0xc")]((()=>{for(const t of x)n.markBlockFormat(t,{commandName:vs("0x12"),commandParams:[{forceValue:i}]})}))})),n[vs("0x2")][vs("0x13")]((t=>{const{data:n}=t;if(n&&vs("0x12")==n[vs("0x19")]){const t=Yo(e,vs("0x1d"));return n[vs("0x10")][0].forceValue?{type:vs("0x0"),content:Yo(e,vs("0x8"),t)}:{type:vs("0x0"),content:Yo(e,vs("0x14"),t)}}}))}}function Ss(t){return"blockQuote"==t[vs("0xe")][vs("0x5")]}const Is=["get","editor","plugins","afterInit","enableCommand","ckbox","commands"];var Ls,Ns;Ls=Is,Ns=137,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const Ms=function(t,e){return Is[t-=0]};class ws extends t.Plugin{[Ms("0x6")](){const t=this[Ms("0x4")];t[Ms("0x2")][Ms("0x3")](Ms("0x1"))&&t[Ms("0x5")][Ms("0x3")]("TrackChangesEditing")[Ms("0x0")]("ckbox")}}const Os=["enableCommand","formatBlock","name","find","selection","config","filter","TrackChangesEditing","change","parent","registerElementLabel","get","plugins","indentCodeBlock","from","_descriptionFactory","model","*Format:* %0","languages","registerDescriptionCallback","isLimit","codeBlock","afterInit","language","has","editor","rootElement","ELEMENT_CODE_BLOCK","commandParams","schema","CodeBlock","value","forceValue","outdentCodeBlock","markBlockFormat","getSelectedBlocks","label","document","commandName","locale"];var Fs,Ps;Fs=Os,Ps=326,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x10")](){const t=this[Ds("0x13")];if(!t.plugins[Ds("0x12")](Ds("0x18")))return;const e=t[Ds("0x6")][Ds("0x5")](Ds("0x1")),n=t[Ds("0x21")],o=t[Ds("0x27")][Ds("0x5")](Ds("0xf"))[Ds("0xc")],s=t.commands[Ds("0x5")](Ds("0xf"));e[Ds("0x22")](Ds("0x7")),e[Ds("0x22")](Ds("0x1b")),e[Ds("0x22")](Ds("0xf"),((n,r={})=>{const i=t[Ds("0xa")],x=t[Ds("0xa")][Ds("0x1f")][Ds("0x26")],a=r&&void 0!==r[Ds("0x1a")]?r[Ds("0x1a")]:!s[Ds("0x19")];let c;r[Ds("0x11")]||(r.language=o[0][Ds("0x11")]),c=a?Array[Ds("0x8")](x[Ds("0x1d")]()).filter((t=>{return js(t)||(e=t,n=i[Ds("0x17")],!e.is(Ds("0x14"))&&!n[Ds("0xe")](e)&&n.checkChild(e[Ds("0x3")],Ds("0xf")));var e,n})):Array[Ds("0x8")](x[Ds("0x1d")]())[Ds("0x0")]((t=>js(t)));const l=S(c,i);i[Ds("0x2")]((()=>{for(const t of l)e[Ds("0x1c")](t,{commandName:Ds("0xf"),commandParams:[{...r,forceValue:a}],formatGroupId:"blockName"})}))})),e[Ds("0x9")][Ds("0x4")](Ds("0xf"),(t=>Yo(n,Ds("0x15"),t))),e[Ds("0x9")][Ds("0xd")]((t=>{const e=n.t,{type:s,data:r}=t;if(Ds("0x23")==s&&r&&Ds("0xf")==r[Ds("0x20")]){const t=r[Ds("0x16")][0].language,s=e(o[Ds("0x25")]((e=>e[Ds("0x11")]===t))[Ds("0x1e")]);return r[Ds("0x16")][0][Ds("0x1a")]?{type:"format",content:Yo(n,Ds("0xb"),Yo(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:"format",content:Yo(n,"*Remove format:* %0",Yo(n,"ELEMENT_CODE_BLOCK",1))}}}))}}function js(t){return Ds("0xf")==t[Ds("0x24")]}const Us=["CommentsEditing","afterInit","editor","get","plugins","TrackChangesEditing","has"];var Gs,Hs;Gs=Us,Hs=409,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const zs=function(t,e){return Us[t-=0]};class Vs extends t.Plugin{[zs("0x5")](){const t=this[zs("0x6")];t[zs("0x1")][zs("0x3")](zs("0x4"))&&t[zs("0x1")][zs("0x0")](zs("0x2")).enableCommand("addCommentThread")}}var Ws=n(181);const Ks=["data","enqueueChange","writer","remove","setSelection","TrackChangesEditing","editor","forward","markerName","enableCommand","downcastDispatcher","addMarker:suggestion:deletion","merge","isCollapsed","model","end","root","uiElement","high","createRange","getFirstRange","rootName","bind","editing","$graveyard","document","mapper","get","deleteForward","commands","options","unlock","requires","createSelection","start","plugins","markerNameToElements","batch","showSuggestionHighlights","init","buffer","removeMarker:suggestion:deletion"];var qs,Xs;qs=Ks,Xs=173,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("0x1b")](){return[Ws.Delete]}[$s("0x22")](){const t=this[$s("0x1")],e=t[$s("0x1e")][$s("0x16")]($s("0x0"));e[$s("0x4")]("delete");const n=t[$s("0x18")].get($s("0x17"));e[$s("0x4")]($s("0x17"),((e,o={})=>{const s=t[$s("0x9")][$s("0x1c")](t[$s("0x9")][$s("0x14")].selection);s[$s("0x8")]&&t.model.modifySelection(s,{direction:$s("0x2"),unit:o.unit});const r=s[$s("0xf")](),x=i.LiveRange.fromRange(r);let a;e(o),a=$s("0x13")==x[$s("0xb")][$s("0x10")]?t[$s("0x9")].createRange(r.start):t.model[$s("0xe")](x[$s("0x1d")],x[$s("0xa")]),x.detach(),t[$s("0x9")][$s("0x26")](n[$s("0x23")][$s("0x20")],(t=>{n.buffer.lock(),t[$s("0x29")](t[$s("0xe")](a[$s("0xa")])),n[$s("0x23")][$s("0x1a")]()}))})),t[$s("0x12")][$s("0x5")].on($s("0x6"),hs(t,$s("0x7")),{priority:$s("0xd")}),t[$s("0x25")][$s("0x5")].on($s("0x6"),((e,n,o)=>{o[$s("0x19")][$s("0x21")]&&hs(t,$s("0x7"),{showActiveMarker:!1})[$s("0x11")](this)(e,n,o)}),{priority:$s("0xd")}),t[$s("0x12")][$s("0x5")].on($s("0x24"),((t,e,n)=>{const o=n[$s("0x15")][$s("0x1f")](e.markerName);if(o)for(const t of o)t.is($s("0xc"))&&(n[$s("0x15")].unbindElementFromMarkerName(t,e[$s("0x3")]),n[$s("0x27")][$s("0x28")](t))}),{priority:$s("0xd")})}}const Qs=["get","formatBlock","_LIST","document","ELEMENT_NUMBERED_LIST","DocumentListEditing","end","outdentList","listType","*Merge:* %0","editor","TrackChangesEditing","getRanges","getAttribute","expandListBlocksToCompleteList","commandName","nextSibling","from","deletion","ELEMENT_BULLETED_LIST","ELEMENT_","map","schema","numberedList","ELEMENT_LIST_ITEM","afterInit","*Change to:* %0","start","enableCommand","detach","createRange","mergeListItemBackward","refresh","*Format:* remove from %0","getFirstRange","findIndex","getSelectedBlocks","createPositionAt","listIndent","multipleBlocks","*Indent:* %0","bulletedList","fromRange","forceValue","push","nodeAfter","_descriptionFactory","commandParams","has","setSelection","selection","isObject","indentList","registerCustomCallback","mergeListItemForward","model","length","plugins","format","splitListItemAfter","before","next","previousSibling","registerDescriptionCallback","accept","DocumentListUtils","markBlockFormat","splitListItemBefore","documentList","registerElementLabel","*Format:* insert into %0","value","markMultiRangeBlockFormat","commands","listItemId","change"];var Zs,Ys;Zs=Qs,Ys=285,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0x2c")](){const t=this[tr("0x1d")];if(!t[tr("0x0")][tr("0x43")](tr("0x18")))return;const e=t.locale,n=t.plugins[tr("0x13")](tr("0x1e")),o=t[tr("0x0")][tr("0x13")](tr("0x8"));function s(e){return()=>{const s=t.commands.get(e);let r=Array[tr("0x24")](t[tr("0x4a")].document.selection[tr("0x37")]());if(a(e)){r=o[tr("0x21")](r);const t=[];for(const e of r)o.isFirstBlockOfListItem(e)&&t[tr("0x3f")](e);r=t}t[tr("0x4a")][tr("0x12")]((()=>{n[tr("0xf")](r,{commandName:e,commandParams:[{forceValue:!s[tr("0xe")]}],formatGroupId:tr("0x1b")},[],tr("0xb"))}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0x24")](t);const n=e[tr("0x36")]((t=>!t.hasAttribute(tr("0x11"))));return n>-1&&(e=e.slice(0,n)),e}(t[tr("0x4a")][tr("0x16")][tr("0x45")][tr("0x37")]()),s=o[o[tr("0x4b")]-1],r=t[tr("0x4a")][tr("0x29")][tr("0x46")](s)?"after":tr("0x19"),i=t[tr("0x4a")].createRange(t[tr("0x4a")].createPositionAt(o[0],tr("0x3")),t.model[tr("0x38")](s,r));t[tr("0x4a")][tr("0x12")]((()=>{n[tr("0x9")](i,{commandName:e,commandParams:[],formatGroupId:"listType"},function(t){const e=new Set;for(const n of t){let t=n[tr("0x23")];for(;t&&t.getAttribute(tr("0x39"))>n[tr("0x20")](tr("0x39"));)e.add(t),t=t[tr("0x23")]}return Array[tr("0x24")](e)}(o))}))}}function x(e){return()=>{const o=t[tr("0x4a")][tr("0x16")][tr("0x45")].getSelectedBlocks()[tr("0x4")]()[tr("0xe")],s=t.model[tr("0x38")](o,tr("0x3")),r=t[tr("0x4a")].createPositionAt(o,0),i=t[tr("0x4a")].createRange(s,r);t[tr("0x4a")][tr("0x12")]((()=>{n[tr("0x9")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x1b")})}))}}function a(e){const n=t.commands.get(tr("0x3c")).value,o=t[tr("0x10")].get(tr("0x2a"))[tr("0xe")];return tr("0x2a")===e?n:o}n.enableCommand(tr("0x2a"),s(tr("0x2a"))),n[tr("0x2f")](tr("0x3c"),s(tr("0x3c"))),n.enableCommand(tr("0x47"),r("indentList")),n[tr("0x2f")](tr("0x1a"),r(tr("0x1a"))),n[tr("0x2f")](tr("0x2"),x(tr("0x2"))),n[tr("0x2f")]("splitListItemBefore",x(tr("0xa"))),n[tr("0x41")][tr("0xc")]((function(e){const n=!t.model.schema[tr("0x46")](e),o=e[tr("0x5")],s=e.nextSibling,r=e[tr("0x20")](tr("0x11")),i=!o||o[tr("0x20")](tr("0x11"))!==r,x=!s||s.getAttribute(tr("0x11"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,tr("0x2b"),t))),n[tr("0x41")][tr("0x6")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x22")]){case tr("0x3c"):r=n[tr("0x42")][0][tr("0x3e")],i=a(n[tr("0x22")]),o=tr(r?"0xd":"0x34"),i&&(o=tr("0x2d")),s={type:tr("0x1"),content:Yo(e,o,Yo(e,tr("0x26")))};break;case tr("0x2a"):r=n[tr("0x42")][0][tr("0x3e")],i=a(n[tr("0x22")]),o=tr(r?"0xd":"0x34"),i&&(o=tr("0x2d")),s={type:"format",content:Yo(e,o,Yo(e,tr("0x17")))};break;case tr("0x47"):o=tr("0x3b"),s={type:tr("0x1"),content:Yo(e,o,Yo(e,tr("0x2b")))};break;case"outdentList":o=function(t){const e=t[tr("0x35")]();let n=e[tr("0x2e")][tr("0x40")];for(;n&&e.containsItem(n);){if(n[tr("0x20")]("listIndent")>0)return!1;n=n.nextSibling}return!0}(t)?Yo(e,tr("0x34"),Yo(e,function(t){const e=t[tr("0x35")]()[tr("0x2e")].nodeAfter;return tr("0x27")+e[tr("0x20")](tr("0x1b")).toUpperCase()+tr("0x15")}(t))):Yo(e,"*Outdent:* %0",Yo(e,tr("0x2b"))),s={type:tr("0x1"),content:o};break;case tr("0x32"):case tr("0x49"):!1===n[tr("0x3a")]&&(o=tr("0x1c"),s={type:tr("0x25"),content:Yo(e,o,Yo(e,tr("0x2b")))})}return s})),n._suggestionFactory[tr("0x48")](tr("0x14"),"documentList",tr("0x7"),(function(e,n){const o=[];for(let n of e)n[tr("0x2e")][tr("0x40")]===n[tr("0x19")].parent&&(n=t[tr("0x4a")][tr("0x31")](t[tr("0x4a")][tr("0x38")](n[tr("0x2e")][tr("0x40")],0))),o[tr("0x3f")](n);t.model[tr("0x12")]((e=>{const s=t[tr("0x4a")][tr("0x16")][tr("0x45")],r=Array[tr("0x24")](s[tr("0x1f")]())[tr("0x28")]((t=>i.LiveRange[tr("0x3d")](t)));e.setSelection(o),t[tr("0x10")].get(n[tr("0x22")])[tr("0x33")](),n[tr("0x42")][tr("0x3f")]({forceDefaultExecution:!0}),t.execute(n.commandName,...n[tr("0x42")]),e[tr("0x44")](r);for(const t of r)t[tr("0x30")]()}))}))}}var nr=n(331);const or=["data","unbindElementFromMarkerName","markerName","options","enter","getFirstPosition","enterBlock","editing","getFirstRange","removeMarker:suggestion:insertion","high","selection","downcastDispatcher","fromRange","createPositionAt","detach","mapper","ck-suggestion-marker-split","setSelection","nextSibling","get","end","editor","writer","split","enableCommand","model","parent","document","fire","createRange","addMarker:suggestion:insertion","init"];var sr,rr;sr=or,rr=380,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]}[ir("0xf")](){const t=this[ir("0x5")],e=t.plugins[ir("0x3")]("TrackChangesEditing"),n=t.commands[ir("0x3")](ir("0x14"));e[ir("0x8")](ir("0x14"),(()=>{t[ir("0x9")].change((o=>{const s=t[ir("0x9")][ir("0xb")][ir("0x1b")],r=s[ir("0x15")](),x=i.LiveRange[ir("0x1d")](s[ir("0x18")]());if(n[ir("0x16")](o)){const n=t[ir("0x9")][ir("0x1e")](r[ir("0xa")][ir("0x2")],0),s=o[ir("0xd")](r,n);e.markInsertion(s)}else o[ir("0x1")](o[ir("0xd")](x[ir("0x4")]));x[ir("0x1f")](),n[ir("0xc")]("afterExecute",{writer:o})}))})),t[ir("0x17")].downcastDispatcher.on("addMarker:suggestion:insertion",hs(t,ir("0x7")),{priority:ir("0x1a")}),t.editing[ir("0x1c")].on(ir("0x19"),((t,e,n)=>{const o=n[ir("0x20")].markerNameToElements(e[ir("0x12")]);if(o)for(const t of o)t.hasClass(ir("0x0"))&&(n[ir("0x20")][ir("0x11")](t,e[ir("0x12")]),n[ir("0x6")].remove(t))}),{priority:"high"}),t[ir("0x10")][ir("0x1c")].on(ir("0xe"),((e,n,o)=>{o[ir("0x13")].showSuggestionHighlights&&hs(t,ir("0x7"),{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:ir("0x1a")})}}const ar=["findByTextCallback","getRange","editor","markers","createRange","TrackChangesEditing","handleFindCommand","_isInDeletionRange","createPositionAt","string","findPrevious","replace","end","plugins","get","model","item","enableCommand","start","has","filter"];var cr,lr;cr=ar,lr=352,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const ur=function(t,e){return ar[t-=0]};class dr extends t.Plugin{afterInit(){if(!this[ur("0x7")].plugins[ur("0x3")]("FindAndReplaceEditing"))return;const t=this[ur("0x7")][ur("0x12")][ur("0x13")](ur("0xa"));t[ur("0x1")]("find",this.handleFindCommand.bind(this)),t[ur("0x1")]("findNext"),t[ur("0x1")](ur("0xf")),t[ur("0x1")](ur("0x10")),t.enableCommand("replaceAll")}[ur("0xb")](t,e,n={}){const o=this[ur("0x7")][ur("0x12")].get("FindAndReplaceUtils");void 0!==n&&t((t=>(ur("0xe")==typeof e?o[ur("0x5")](e,n):e)(t)[ur("0x4")]((e=>!1===this[ur("0xc")](e,t[ur("0x0")])))),n)}_isInDeletionRange(t,e){const n=this.editor[ur("0x14")][ur("0x9")](this.editor.model.createPositionAt(e,t[ur("0x2")]),this[ur("0x7")][ur("0x14")][ur("0xd")](e,t[ur("0x11")]));for(const t of this[ur("0x7")][ur("0x14")][ur("0x8")].getMarkersGroup("suggestion:deletion"))if(null!==n.getIntersection(t[ur("0x6")]()))return!0;return!1}}const gr=["FontColorEditing","fontSize.options","fontColor","FontBackgroundColorEditing","selection","label","find","_descriptionFactory","TrackChangesEditing","commandParams","_enableCommand","commandName","config","enableCommand","editor","trim","value","get","change","normalizeSizeOptions","document","FontFamilyEditing","*Set font size:* %0","toLowerCase","isCollapsed","*Set font family:* %0","getRanges","format","fontBackgroundColor.colors","*Reset font size*","has","FontSize","FontSizeEditing","title","fontSize","plugins","*Reset font color*","afterInit","*Reset font family*","fontFamily","model"];var mr,fr;mr=gr,fr=473,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},br=[{pluginName:hr("0xa"),commandName:hr("0xc")},{pluginName:hr("0x28"),commandName:hr("0x11")},{pluginName:hr("0x13"),commandName:hr("0x15")},{pluginName:hr("0x16"),commandName:"fontBackgroundColor"}];class pr extends t.Plugin{[hr("0xf")](){const t=this[hr("0x21")].locale;for(const{pluginName:t,commandName:e}of br)this[hr("0x21")][hr("0xd")][hr("0x8")](t)&&this._enableCommand(e);this.editor.plugins[hr("0x24")](hr("0x1b"))[hr("0x1a")].registerDescriptionCallback((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0xc")==o[hr("0x1e")]){const e=o[hr("0x1c")][0][hr("0x23")];if(e){const o=n(this.editor.plugins[hr("0x24")](hr("0x9"))[hr("0x26")](this[hr("0x21")][hr("0x1f")][hr("0x24")](hr("0x14")))[hr("0x19")]((t=>t[hr("0x12")]==e))[hr("0xb")]).toLowerCase();return{type:hr("0x5"),content:Yo(t,hr("0x0"),o)}}return{type:hr("0x5"),content:Yo(t,hr("0x7"))}}if(hr("0x11")==o[hr("0x1e")]){const e=o[hr("0x1c")][0][hr("0x23")];return e?{type:hr("0x5"),content:Yo(t,hr("0x3"),e)}:{type:hr("0x5"),content:Yo(t,hr("0x10"))}}if("fontColor"==o[hr("0x1e")]){const e=o[hr("0x1c")][0][hr("0x23")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x21")].config[hr("0x24")]("fontColor.colors"))[hr("0x19")]((t=>t.model==e));let r=e,i="";return o&&(r=o[hr("0x18")],i=n(r).toLowerCase()),{type:"format",content:Yo(t,"*Set font color:* %0",i)[hr("0x22")](),color:{value:e,title:i||r}}}return{type:hr("0x5"),content:Yo(t,hr("0xe"))}}if("fontBackgroundColor"==o[hr("0x1e")]){const e=o[hr("0x1c")][0][hr("0x23")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x21")][hr("0x1f")].get(hr("0x6"))).find((t=>t[hr("0x12")]==e));let r=e,i="";return o&&(r=o[hr("0x18")],i=n(r)[hr("0x1")]()),{type:hr("0x5"),content:Yo(t,"*Set font background color:* %0",i)[hr("0x22")](),color:{value:e,title:i||r}}}return{type:hr("0x5"),content:Yo(t,"*Reset font background color*")}}}}))}[hr("0x1d")](t){const e=this[hr("0x21")];e.plugins.get(hr("0x1b"))[hr("0x20")](t,((n,o={})=>{const s=e.model[hr("0x27")][hr("0x17")],r=o.value;s[hr("0x2")]?n(o):e.model[hr("0x25")]((()=>{const n=Array.from(s[hr("0x4")]());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0x12")]);for(const o of n)e[hr("0xd")][hr("0x24")](hr("0x1b")).markInlineFormat(o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["fontColor.colors","getItems","join","_descriptionFactory","model","title","TrackChangesEditing","config","copyFormat","getLastPosition","length","pasteFormat","isCollapsed","toUpperCase","editor","locale","fontBackgroundColor","keys","*Set format to:* %0","modifySelection","change","entries","backward","fontColor","toLowerCase","FontSize","word","boolean","createSelection","document","enableCommand","isFormatting","fontSize","getRanges","markInlineFormat","fontSize.options","*Remove all formatting*","format","get","isBlock","commands","forward","plugins","schema","createRange","from","push","slice","label","getAttributeProperties","find","selection"];var _r,Tr;_r=Er,Tr=455,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{afterInit(){const t=this[Cr("0x1b")],n=t[Cr("0x11")],o=n[Cr("0x2a")][Cr("0xc")],s=t[Cr("0x3")][Cr("0x33")](Cr("0x13")),r=t[Cr("0x1c")],i=t.commands[Cr("0x33")](Cr("0x15")),x=t[Cr("0x1")][Cr("0x33")](Cr("0x18"));i&&x&&(s[Cr("0x2b")](Cr("0x18"),((t,r={})=>{const i=r;n[Cr("0x21")]((()=>{const t=Array[Cr("0x6")](o[Cr("0x2e")]()),r=o[Cr("0x19")]?[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.getAttributes()){const t=e[Cr("0xa")](n);t&&t[Cr("0x2c")]&&(yield n)}}(t,n));for(const e of t.getRanges())for(const t of e[Cr("0xe")]())!n[Cr("0x0")](t)&&o(t)&&(yield t);for(const e of t.getSelectedBlocks())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x4")]))||0!==Object[Cr("0x1e")](i)[Cr("0x17")])for(const t of r)s[Cr("0x2f")](t,{commandName:"pasteFormat",commandParams:[i]})}))})),s[Cr("0x10")].registerDescriptionCallback((e=>{const{data:n}=e;if(n&&Cr("0x18")===n.commandName){const e=[],o=n.commandParams[0];for(const[n,s]of Object[Cr("0x22")](o))e[Cr("0x7")](Ar(t,n,s));return e[Cr("0x17")]?{type:Cr("0x32"),content:Yo(r,Cr("0x1f"),e[Cr("0xf")](", "))}:{type:"format",content:Yo(r,Cr("0x31"))}}})),t.plugins[Cr("0x33")]("TrackChangesEditing")[Cr("0x2b")](Cr("0x15")))}}function kr(t,e){const n=t[Cr("0x29")](e);t[Cr("0x20")](n,{unit:Cr("0x27"),direction:Cr("0x23")});const o=n.getFirstPosition();t.modifySelection(n,{unit:Cr("0x27"),direction:Cr("0x2")});const s=n[Cr("0x16")]();return t[Cr("0x5")](o,s)}function Ar(t,e,n){const o=t[Cr("0x1c")].t,r=e.split(/(?=[A-Z])/)[Cr("0xf")](" "),i=o(r.charAt(0)[Cr("0x1a")]()+r[Cr("0x8")](1))[Cr("0x25")]();if(Cr("0x28")==typeof n)return i;if(Cr("0x24")===e||Cr("0x1d")===e){const e=(0,s.normalizeColorOptions)(t[Cr("0x14")][Cr("0x33")](Cr("0xd")))[Cr("0xb")]((t=>t[Cr("0x11")]==n));return i+" ("+(e?o(e[Cr("0x9")])[Cr("0x25")]():n)+")"}if(Cr("0x2d")===e&&isNaN(parseFloat(n))){const e=t[Cr("0x3")][Cr("0x33")](Cr("0x26")).normalizeSizeOptions(t[Cr("0x14")].get(Cr("0x30")))[Cr("0xb")]((t=>t[Cr("0x11")]==n));return i+" ("+(e?o(e[Cr("0x12")])[Cr("0x25")]():n)+")"}return i+" ("+n+")"}const vr=["heading","paragraph","_descriptionFactory","*Change to:* %0","parent","locale","value","enableCommand","plugins","from","name","match","getSelectedBlocks","commandName","model","blockName","title","heading.options","HeadingEditing","markBlockFormat","editor","document","checkChild","get","has","format","registerElementLabel","afterInit"];var Rr,Sr;Rr=vr,Sr=396,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const Ir=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Ir("0x17")](){const t=this.editor,e=t[Ir("0x1")],n=t.config[Ir("0x13")](Ir("0xd"));if(!t[Ir("0x4")][Ir("0x14")](Ir("0xe")))return;const o=t[Ir("0x4")].get("TrackChangesEditing");o[Ir("0x3")](Ir("0x18"),((e,n)=>{const s=n.value,r=Array[Ir("0x5")](this.editor[Ir("0xa")][Ir("0x11")].selection[Ir("0x8")]()).filter((t=>{return e=t,n=s,(o=this[Ir("0x10")].model.schema)[Ir("0x12")](e[Ir("0x0")],n)&&!o.isObject(e)&&e[Ir("0x6")]!=n;var e,n,o}));t[Ir("0xa")].change((()=>{for(const t of r)o[Ir("0xf")](t,{commandName:Ir("0x18"),commandParams:[n],formatGroupId:Ir("0xb")},fs(t))}))}));for(const t of n)Ir("0x19")!=t[Ir("0xa")]&&o[Ir("0x1a")][Ir("0x16")](t[Ir("0xa")],(e=>{const n=Nr(t[Ir("0xa")]);return null!==n?s(e,n):r(e,t[Ir("0xc")])}));function s(t,n){return Yo(e,"ELEMENT_HEADING",[t,n])}function r(t,n){return Yo(e,"ELEMENT_HEADING_CUSTOM",[t,n])}o[Ir("0x1a")].registerDescriptionCallback((t=>{const{type:o,data:i}=t;if("formatBlock"==o&&i&&Ir("0x18")==i[Ir("0x9")]){const t=i.commandParams[0][Ir("0x2")],o=Nr(t);if(null!==o)return{type:Ir("0x15"),content:Yo(e,Ir("0x1b"),s(1,o))};const x=n.find((e=>e[Ir("0xa")]===t))[Ir("0xc")];return{type:Ir("0x15"),content:Yo(e,Ir("0x1b"),r(1,x))}}}))}}function Nr(t){const e=t[Ir("0x7")](/^heading(\d+)$/);return e?e[1]:null}const Mr=["item","push","getLastMatchingPosition","has","value","markInlineFormat","plugins","title","enableCommand","formatInline","afterInit","commandName","get","HighlightEditing","highlight","*Set highlight:* %0","hasAttribute","model","TrackChangesEditing","getFirstPosition","getAttribute","FORMAT_HIGHLIGHT","document","commandParams","selection","registerDescriptionCallback","backward","format","getRanges","isCollapsed","createRange","editor","find"];var wr,Or;wr=Mr,Or=472,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Pr extends t.Plugin{[Fr("0x0")](){const t=this[Fr("0x15")];if(!t[Fr("0x1d")][Fr("0x1a")](Fr("0x3")))return;const e=t[Fr("0x1d")][Fr("0x2")](Fr("0x8"));e[Fr("0x1f")](Fr("0x4"),((n,o={})=>{const s=t[Fr("0x7")][Fr("0xc")][Fr("0xe")],r=s[Fr("0xa")](Fr("0x4"));let i=o[Fr("0x1b")],x=[];if(s[Fr("0x13")]){const e=s[Fr("0x9")]();if(!s[Fr("0x6")](Fr("0x4")))return void n(o);{const n=t=>t[Fr("0x17")].getAttribute("highlight")===r,o=e.getLastMatchingPosition(n,{direction:Fr("0x10")}),s=e[Fr("0x19")](n);x=[t[Fr("0x7")][Fr("0x14")](o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0x12")]())i?x[Fr("0x18")](e):x.push(...ms("highlight",e,t[Fr("0x7")]));t[Fr("0x7")].change((()=>{for(const t of x)e[Fr("0x1c")](t,{commandName:Fr("0x4"),commandParams:[{value:i}]})}))}));const n=t.locale;e._descriptionFactory[Fr("0xf")]((e=>{const{type:o,data:s}=e;if(Fr("0x20")==o&&s&&Fr("0x4")==s[Fr("0x1")]){const e=n.t,o=s[Fr("0xd")][0][Fr("0x1b")];if(o){const s=t.config[Fr("0x2")]("highlight.options")[Fr("0x16")]((t=>t[Fr("0x7")]==o)),r=e(s[Fr("0x1e")]).toLowerCase();return{type:Fr("0x11"),content:Yo(n,Fr("0x5"),r),color:{value:s.color,title:s[Fr("0x1e")]}}}return{type:Fr("0x11"),content:Yo(n,"*Remove highlight*",Yo(n,Fr("0xb")))}}}))}}const Dr=["afterInit","ELEMENT_HORIZONTAL_LINE","high","locale","registerElementLabel","ck-horizontal-line","createPositionAt","insert","_descriptionFactory","editor","TrackChangesEditing","horizontalLine","plugins","get","elementToStructure","dataDowncast","div","createContainerElement"];var Br,jr;Br=Dr,jr=477,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0x9")](){const t=this[Ur("0x0")];if(!t.plugins.has("HorizontalLineEditing"))return;t[Ur("0x3")][Ur("0x4")](Ur("0x1")).enableCommand("horizontalLine");const e=t[Ur("0x3")][Ur("0x4")](Ur("0x1")),n=t[Ur("0xc")];e[Ur("0x11")][Ur("0xd")](Ur("0x2"),(t=>Yo(n,Ur("0xa"),t))),t.conversion.for(Ur("0x6"))[Ur("0x5")]({model:"horizontalLine",view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return null;const o=e[Ur("0x8")](Ur("0x7")),s=e.createEmptyElement("hr");return e.addClass(Ur("0xe"),o),e[Ur("0x10")](e[Ur("0xf")](o,0),s),o},converterPriority:Ur("0xb")})}}const Hr=["rawHtml","afterInit","enableCommand","getAttribute","locale","cancel","_descriptionFactory","TrackChangesEditing","ELEMENT_HTML_EMBED","rawHtmlApi","get","registerElementLabel","editing","element","plugins","markBlockFormat","view","getSelectedElement","registerDescriptionCallback","*Change %0 content*","htmlEmbed","HtmlEmbed","change","model","selection","commandName","document","has","format"];var zr,Vr;zr=Hr,Vr=273,function(t){for(;--t;)zr.push(zr.shift())}(++Vr);const Wr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Wr("0x12")](){const t=this.editor;if(!t[Wr("0x2")][Wr("0xf")](Wr("0x9")))return;const e=t[Wr("0x2")][Wr("0x1b")](Wr("0x18")),n=t[Wr("0x15")],o=t[Wr("0x0")][Wr("0x4")][Wr("0xe")][Wr("0xc")];e[Wr("0x17")][Wr("0x1c")]("rawHtml",(t=>Yo(n,Wr("0x19"),t))),t[Wr("0x2")][Wr("0x1b")](Wr("0x18"))[Wr("0x13")](Wr("0x8"),((n,s)=>{const r=t[Wr("0xb")],i=r[Wr("0xe")].selection;r[Wr("0xa")]((()=>{const t=function(t){const e=t[Wr("0x5")]();return e&&e.is(Wr("0x1"),Wr("0x11"))?t[Wr("0x5")]():null}(i);if(!t)return void n(null);const r=t[Wr("0x14")]("value")||"";void 0!==s&&s!==r&&(e[Wr("0x3")](t,{commandName:Wr("0x8"),commandParams:[s]}),o[Wr("0x5")]().getCustomProperty(Wr("0x1a"))[Wr("0x16")]())}))})),e[Wr("0x17")][Wr("0x6")]((t=>{const{data:e}=t;if(e&&Wr("0x8")==e[Wr("0xd")]){const t=Yo(n,Wr("0x19"));return{type:Wr("0x10"),content:Yo(n,Wr("0x7"),t)}}}))}}const qr=["nodeAfter","TrackChangesEditing","convertInlineImageToBlock","imageStylePreApply","accept","ImageUtils","find","_suggestionFactory","registerCustomCallback","ImageCaptionEditing","forceDefaultExecution","imageTypeBlock","afterInit","enableCommand","createRange","registerDescriptionCallback","chain","has","deletion","caption","ImageCaptionUtils","plugins","*Reset image width*","FORMAT_SIDE_IMAGE","nodeBefore","newRange","commandName","imageStylePostApply","isBlockImage","insertImage","getCaptionFromImageModelElement","getSuggestions","end","isInlineImage","isCollapsed","convertBlockImageToInline","shouldConvertImageType","getContainedElement","length","imageStyle","side","_descriptionFactory","ImageEditing","head","markBlockFormat","ImageBlockEditing","get","width","commands","newValue","hasAttribute","isInContent","alt","Inline image to block image","refresh","discard","getSuggestion","formatInline","normalizedStyles","ImageStyleEditing","ImageInlineEditing","isOwn","filter","value","next","backward","*Set image width:* %0","toLowerCase","registerElementLabel","start","imageBlock","findIndex","editor","*Format:* %0","author","ImageTextAlternativeEditing","_findSuggestions","imageTypeInline","markInlineFormat","ELEMENT_IMAGE","name","insertion","resizeImage","isBefore","getNearestSelectionRange","change","format","toggleImageCaption","registerPostFixer","toNext","hasSuggestion","isEqual","createRangeOn","commandReversedParams","formatBlock","fromPosition","model","getSuggestionCallback","commandParams","schema","join","locale","ImageResize","addObject","imageTextAlternative","document","markInsertion","getFirstRange","getClosestSelectedImageElement","discardSuggestion","imageInline","getAttribute","type","selection","imageCaption","toPrevious","subType","element"];var Xr,$r;Xr=qr,$r=396,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{[Jr("0x58")](){const t=this[Jr("0x1e")];if(!t[Jr("0x61")][Jr("0x5d")](Jr("0x0")))return;const n=t[Jr("0x61")][Jr("0x4")](Jr("0x4d")),o=t.plugins[Jr("0x4")](Jr("0x51")),s={},r=t[Jr("0x3b")];if(n[Jr("0x59")](Jr("0x69")),n[Jr("0x75")][Jr("0x1a")](Jr("0x1c"),(t=>Yo(r,Jr("0x25"),t))),n[Jr("0x75")][Jr("0x1a")](Jr("0x44"),(t=>Yo(r,"ELEMENT_INLINE_IMAGE",t))),n[Jr("0x75")][Jr("0x1a")](Jr("0x5f"),(()=>Yo(r,"ELEMENT_CAPTION"))),t.plugins[Jr("0x5d")]("ImageUploadEditing")&&n[Jr("0x59")]("uploadImage"),t[Jr("0x61")][Jr("0x5d")](Jr("0x3"))&&t[Jr("0x61")].has(Jr("0x12"))&&(n.enableCommand(Jr("0x23"),((e,s)=>{const r=o[Jr("0x42")](t[Jr("0x36")][Jr("0x3f")][Jr("0x47")]);t[Jr("0x36")][Jr("0x2b")]((()=>{n[Jr("0x2")](r,{commandName:Jr("0x23"),commandParams:[s]},[],Jr("0x6f"))}))})),n[Jr("0x59")](Jr("0x57"),((e,s)=>{t[Jr("0x36")].change((r=>{let x=o[Jr("0x42")](t.model[Jr("0x3f")][Jr("0x47")]),a=r[Jr("0x32")](x);const c=i.LivePosition.fromPosition(a[Jr("0x1b")],Jr("0x49")),l=i.LivePosition[Jr("0x35")](a[Jr("0x6c")],Jr("0x2f"));n[Jr("0x56")]((()=>e(s))),x=o.getClosestSelectedImageElement(t.model[Jr("0x3f")][Jr("0x47")]),a=r[Jr("0x32")](x);const u=r.createRange(c,l);c.detach(),l.detach(),n[Jr("0x2")](x,{commandName:Jr("0x23"),commandParams:[]},[],Jr("0x4e")),u[Jr("0x1b")][Jr("0x29")](a[Jr("0x1b")])&&n[Jr("0x40")](r[Jr("0x5a")](u.start,a[Jr("0x1b")]),Jr("0x4e")),a[Jr("0x6c")][Jr("0x29")](u.end)&&n[Jr("0x40")](r[Jr("0x5a")](a.end,u[Jr("0x6c")]),Jr("0x4e"))}))})),n._suggestionFactory[Jr("0x54")](Jr("0x34"),Jr("0x4e"),Jr("0x3a"),(()=>{})),n._suggestionFactory.registerCustomCallback(Jr("0x34"),Jr("0x4e"),Jr("0x50"),(()=>{})),n[Jr("0x53")][Jr("0x54")](Jr("0x34"),Jr("0x4e"),Jr("0xd"),n._suggestionFactory[Jr("0x37")](Jr("0x34"),"",Jr("0x50"))),n._suggestionFactory.registerCustomCallback("insertion",Jr("0x4e"),Jr("0x3a"),(()=>{})),n[Jr("0x53")][Jr("0x54")](Jr("0x27"),Jr("0x4e"),Jr("0xd"),(([e])=>{const o=n._suggestionFactory.getSuggestionCallback(Jr("0x27"),"",Jr("0xd"));let s=e[Jr("0x1b")],r=e[Jr("0x6c")];const i=t.model.schema[Jr("0x2a")](s,Jr("0x17")),x=t[Jr("0x36")][Jr("0x39")][Jr("0x2a")](r,"forward");i.isCollapsed&&(s=i[Jr("0x1b")]),x[Jr("0x6e")]&&(r=x[Jr("0x6c")]),o([t.model[Jr("0x5a")](s,r)])})),n._suggestionFactory[Jr("0x54")]("formatBlock","convertInlineImageToBlock",Jr("0x5c"),c),n._suggestionFactory[Jr("0x54")]("insertion",Jr("0x4e"),Jr("0x5c"),c)),t.plugins[Jr("0x5d")](Jr("0x55"))&&(n[Jr("0x59")](Jr("0x2d"),((e,s)=>{const r=t.plugins[Jr("0x4")](Jr("0x60"));let i=o[Jr("0x42")](t.model[Jr("0x3f")][Jr("0x47")]),x=r[Jr("0x6a")](i);t.model[Jr("0x2b")]((()=>{if(x)return void n.markDeletion(t[Jr("0x36")][Jr("0x32")](x));const a=o[Jr("0x68")](i);e(s),i=o[Jr("0x42")](t[Jr("0x36")][Jr("0x3f")][Jr("0x47")]),x=r[Jr("0x6a")](i),n.markInsertion(t[Jr("0x36")][Jr("0x32")](x),a?null:Jr("0x48"))}))})),n._suggestionFactory[Jr("0x54")](Jr("0x27"),Jr("0x48"),Jr("0x5c"),c)),t.plugins[Jr("0x5d")](Jr("0x11"))){n.enableCommand(Jr("0x73"),((s,r)=>{const i=t[Jr("0x61")].get("Users").me,x=t.commands[Jr("0x4")](Jr("0x73"));let a=o[Jr("0x42")](t[Jr("0x36")].document.selection),c=t[Jr("0x36")][Jr("0x32")](a),l=x.value;if(l==r[Jr("0x15")])return;const u={commandName:"imageStyle",commandParams:[r],formatGroupId:(0,e.uid)()};t[Jr("0x36")][Jr("0x2b")]((()=>{if(n[Jr("0x6b")]()[Jr("0x14")]((t=>t[Jr("0x9")]&&i==t[Jr("0x20")]&&(Jr("0x34")==t.type||"formatInline"==t[Jr("0x46")])&&(Jr("0x4f")==t[Jr("0x4a")]||Jr("0x67")==t[Jr("0x4a")])&&t[Jr("0x41")]().isEqual(c))).forEach((t=>n[Jr("0x43")](t[Jr("0x1")]))),a=o[Jr("0x42")](t[Jr("0x36")][Jr("0x3f")].selection),c=t[Jr("0x36")][Jr("0x32")](a),x[Jr("0xc")](),t[Jr("0x6")][Jr("0x4")](Jr("0x23"))[Jr("0xc")](),t[Jr("0x6")][Jr("0x4")](Jr("0x57"))[Jr("0xc")](),l=x[Jr("0x15")],l!=r[Jr("0x15")])return o[Jr("0x6d")](a)&&x[Jr("0x70")](r[Jr("0x15")],a)?(s(r),a=o.getClosestSelectedImageElement(t[Jr("0x36")][Jr("0x3f")][Jr("0x47")]),void n[Jr("0x2")](a,{...u,commandReversedParams:[{value:l||null}]},[],Jr("0x4f"))):void(o[Jr("0x68")](a)?n[Jr("0x2")](a,u,[],Jr("0x67")):n[Jr("0x24")](c,u,Jr("0x67")))}))}));for(const e of t[Jr("0x61")][Jr("0x4")](Jr("0x11"))[Jr("0x10")])s[e[Jr("0x26")]]=e.title[Jr("0x19")]();n[Jr("0x53")].registerCustomCallback("formatBlock",Jr("0x4f"),Jr("0x3a"),(()=>{})),n._suggestionFactory.registerCustomCallback(Jr("0x34"),Jr("0x67"),"join",(()=>{})),n._suggestionFactory[Jr("0x54")](Jr("0xf"),"imageStylePostApply",Jr("0x3a"),(()=>{})),n._suggestionFactory.registerCustomCallback(Jr("0x34"),Jr("0x4f"),Jr("0x50"),(()=>{})),n[Jr("0x53")].registerCustomCallback(Jr("0x34"),"imageStylePreApply",Jr("0xd"),((t,e)=>{n[Jr("0x53")].getSuggestionCallback(Jr("0x34"),"",Jr("0x50"))(t,{commandName:e[Jr("0x66")],commandParams:e[Jr("0x33")]})})),n[Jr("0x53")][Jr("0x54")](Jr("0x34"),Jr("0x4f"),Jr("0x5c"),c)}const x=[{type:Jr("0x34"),subType:Jr("0x4f")},{type:Jr("0x27"),subType:Jr("0x48")},{type:Jr("0x34"),subType:"convertInlineImageToBlock"},{type:Jr("0x27"),subType:"convertInlineImageToBlock"}];function a(t,e){const s=x.findIndex((({type:e,subType:n})=>t[Jr("0x46")]==e&&t[Jr("0x4a")]==n)),r=x[Jr("0x1d")]((({type:t,subType:n})=>e[Jr("0x46")]==t&&e[Jr("0x4a")]==n));if(s<0||r<0)return!1;const i=t[Jr("0x41")](),a=e[Jr("0x41")]();if((0==s||1==s)&&2==r&&i.isIntersecting(a))return!0;if(2==s&&3==r){const t=n[Jr("0x22")](i,Jr("0x27"))[Jr("0x14")]((({suggestion:t,meta:e})=>e[Jr("0x13")]&&Jr("0x4e")==t[Jr("0x4a")]));if(t[Jr("0x72")]>1&&a[Jr("0x6c")].isEqual(i[Jr("0x1b")]))return!0;if(1==t.length&&(i[Jr("0x1b")][Jr("0x31")](a[Jr("0x6c")])||i[Jr("0x6c")][Jr("0x31")](a.start)))return!0}if(3==s&&3==r&&i[Jr("0x1b")][Jr("0x29")](a[Jr("0x1b")])){const t=i[Jr("0x6c")][Jr("0x4c")],e=a[Jr("0x1b")][Jr("0x64")];return o[Jr("0x68")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Jr("0x36")].document[Jr("0x2e")]((()=>{let e=!1;const s=Array.from(t[Jr("0x36")][Jr("0x3f")].differ.getChangedMarkers());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n._splitMarkerName(t);if("suggestion"==s&&n[Jr("0x30")](a)){if(Jr("0x34")==i&&(Jr("0x4f")==x||Jr("0x67")==x)){const t=n[Jr("0xe")](a);if(r.newRange){const s=t.getFirstRange()[Jr("0x71")]();if(o.isBlockImage(s))continue;n[Jr("0x43")](t),e=!0}}if(Jr("0x27")==i&&Jr("0x48")==x&&!r[Jr("0x65")]){const t=n[Jr("0xe")](a);t[Jr("0x16")]&&t[Jr("0x16")][Jr("0x9")]&&(n.discardSuggestion(t[Jr("0x16")]),e=!0)}}}return e})),t[Jr("0x61")].has(Jr("0x3c"))&&n.enableCommand(Jr("0x28"),((e,s)=>{const r=o[Jr("0x42")](t[Jr("0x36")].document[Jr("0x47")]);r[Jr("0x45")]("width")!=s[Jr("0x5")]&&t[Jr("0x36")].change((()=>{n[Jr("0x2")](r,{commandName:Jr("0x28"),commandParams:[s]})}))})),t[Jr("0x61")][Jr("0x5d")](Jr("0x21"))&&n[Jr("0x59")](Jr("0x3e"),((e,s)=>{const r=o[Jr("0x42")](t.model.document[Jr("0x47")]);(r[Jr("0x8")](Jr("0xa"))?r.getAttribute("alt"):"")!=s[Jr("0x7")]&&t[Jr("0x36")][Jr("0x2b")]((()=>{n[Jr("0x2")](r,{commandName:"imageTextAlternative",commandParams:[s]})}))})),n._descriptionFactory[Jr("0x5b")]((t=>{if(x[Jr("0x52")]((({type:e,subType:n})=>t[Jr("0x46")]==e&&t.subType==n)))return t.previous?{}:void 0})),n[Jr("0x75")][Jr("0x5b")]((t=>{if(Jr("0x27")==t[Jr("0x46")]||Jr("0x5e")==t[Jr("0x46")]){const e=t[Jr("0x71")]();if(e&&e.is(Jr("0x4b"),"caption"))return{type:Jr("0x27")==t[Jr("0x46")]?Jr("0x3d"):"removeObject",element:e,quantity:1}}})),n[Jr("0x75")].registerDescriptionCallback((t=>Jr("0x34")==t[Jr("0x46")]&&"convertInlineImageToBlock"==t[Jr("0x4a")]?{type:Jr("0x2c"),content:Jr("0xb")}:"formatBlock"==t[Jr("0x46")]&&Jr("0x6f")==t.subType?{type:Jr("0x2c"),content:"Block image to inline image"}:void 0)),n[Jr("0x75")][Jr("0x5b")]((t=>{const{data:e}=t;if(e){if(Jr("0x73")==e[Jr("0x66")]){const t=e[Jr("0x38")][0][Jr("0x15")];return n=Jr("0x74")===t?Yo(r,Jr("0x63")):s[t]||t,{type:Jr("0x2c"),content:Yo(r,Jr("0x1f"),n)}}if("imageTextAlternative"==e[Jr("0x66")]){const t=e.commandParams[0].newValue;return t?{type:Jr("0x2c"),content:Yo(r,"*Set image text alternative:* %0",'"'+t+'"')}:{type:Jr("0x2c"),content:Yo(r,"*Remove image text alternative*")}}if("resizeImage"==e[Jr("0x66")]){const t=e[Jr("0x38")][0][Jr("0x5")];return t?{type:Jr("0x2c"),content:Yo(r,Jr("0x18"),t)}:{type:"format",content:Yo(r,Jr("0x62"))}}}var n}))}}const Zr=["handleReplaceImageCommand","accept","editor","change","afterInit","subType","replaceImageSource","get","handleSuggestionDescription","TrackChangesEditing","Users","commandParams","getSuggestions","format","commandName","ImageEditing","plugins","data","src","_descriptionFactory","discard","registerDescriptionCallback","getSuggestionCallback","*Format:* replace image URL","getSelectedElement","getAttribute","_suggestionFactory","has","getContainedElement","locale","model","formatBlock","source"];var Yr,ti;Yr=Zr,ti=213,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0x16")](){if(!this[ei("0x14")][ei("0x1")][ei("0xc")](ei("0x0")))return;const t=this[ei("0x14")][ei("0x1")][ei("0x19")](ei("0x1b"));t.enableCommand(ei("0x18"),((t,e)=>this[ei("0x12")](t,e))),t[ei("0xb")].registerCustomCallback(ei("0x10"),"replaceImageSource",ei("0x13"),t[ei("0xb")][ei("0x7")](ei("0x10"),null,ei("0x5"))),t._suggestionFactory.registerCustomCallback("formatBlock","replaceImageSource",ei("0x5"),t._suggestionFactory[ei("0x7")]("formatBlock",null,ei("0x13"))),t[ei("0x4")][ei("0x6")]((t=>this[ei("0x1a")](t)))}handleReplaceImageCommand(t,e){const n=this[ei("0x14")][ei("0x1")].get(ei("0x1b")),o=this.editor[ei("0xf")].document.selection[ei("0x9")]();this[ei("0x14")][ei("0xf")][ei("0x15")]((()=>{let s=o[ei("0xa")](ei("0x3"));const r=this[ei("0x14")][ei("0x1")][ei("0x19")](ei("0x1c")).me;for(const t of n[ei("0x1e")]({skipNotAttached:!0})){const e=t[ei("0xd")]();if(ei("0x18")===t[ei("0x17")]&&e===o){t.author!==r&&t.discard(),s=t[ei("0x2")][ei("0x1d")][0][ei("0x11")];break}}t(e),n.markBlockFormat(o,{commandName:ei("0x18"),commandParams:[{source:s}]},[],"replaceImageSource")}))}[ei("0x1a")](t){const{data:e}=t;if(e&&ei("0x18")===e[ei("0x20")]){const t=ei("0x8");return{type:ei("0x1f"),content:Yo(this[ei("0x14")][ei("0xe")],t)}}}}const oi=["track_changes","plugins","trackChanges","TrackChangesEditing","Users","_trackChangesValueDuringImport","execute","bind","listenTo","_handleImportedData","_trackChangesExecuted","get","commands","editor","value","importWord","collaboration_features","forEach","lowest","_setSuggestionData","high","afterInit"];var si,ri;si=oi,ri=192,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{constructor(t){super(t),this._trackChangesValueDuringImport=!1,this[ii("0x10")]=!1}[ii("0x5")](){const t=this[ii("0x13")],e=t.commands[ii("0x11")]("importWord"),n=t[ii("0x12")][ii("0x11")]("trackChanges");e&&(e.on(ii("0xc"),((t,[,e])=>{this[ii("0xb")]=n[ii("0x14")],e[ii("0x0")][ii("0x6")]=!this[ii("0xb")]}),{priority:ii("0x4")}),this[ii("0xe")](e,"dataInsert",this[ii("0xf")][ii("0xd")](this)),this[ii("0xe")](e,"dataInsert",(()=>{this[ii("0x10")]&&(n[ii("0xc")](),this[ii("0x10")]=!1)}),{priority:ii("0x2")}),t[ii("0x7")][ii("0x11")](ii("0x9")).enableCommand(ii("0x15")))}[ii("0xf")](t,e){const{suggestions:n}=e,o=this[ii("0x13")][ii("0x12")][ii("0x11")](ii("0x8")),s=o[ii("0x14")];this[ii("0xb")]!==s&&(o[ii("0xc")](),this[ii("0x10")]=!0),n&&n[ii("0x1")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0x13")][ii("0x7")][ii("0x11")](ii("0xa")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:"importWord"}}};this[ii("0x13")][ii("0x7")][ii("0x11")](ii("0x9"))[ii("0x3")](s)}))}}const ai=["change","enableCommand","afterInit","*Indent:* %0","schema","plugins","filter","document","locale","model","TrackChangesEditing","IndentEditing","markBlockFormat","registerDescriptionCallback","indent","has","getItems","checkAttribute","outdent","indentBlock","selection","editor","outdentBlock","blockIndent","commandName","format","from"];var ci,li;ci=ai,li=446,function(t){for(;--t;)ci.push(ci.shift())}(++li);const ui=function(t,e){return ai[t-=0]};class di extends t.Plugin{[ui("0xf")](){const t=this[ui("0x7")],e=t[ui("0x12")].get(ui("0x17"));t[ui("0x12")][ui("0x1")](ui("0x18"))&&(e[ui("0xe")](ui("0x0")),e[ui("0xe")](ui("0x4")));const n=t[ui("0x15")];if(t[ui("0x12")][ui("0x1")]("IndentBlock")){for(const n of[ui("0x5"),"outdentBlock"])e.enableCommand(n,(()=>{const o=Array[ui("0xc")](this[ui("0x7")][ui("0x16")][ui("0x14")][ui("0x6")].getSelectedBlocks())[ui("0x13")]((t=>this[ui("0x7")][ui("0x16")][ui("0x11")][ui("0x3")](t,ui("0x9"))));t[ui("0x16")][ui("0xd")]((()=>{for(const t of o)e[ui("0x19")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:"indentBlock"})}))}));e._descriptionFactory[ui("0x1a")]((t=>{const{data:o}=t;if(!o)return;if(ui("0x5")!=o[ui("0xa")]&&"outdentBlock"!=o.commandName)return;const s=t[ui("0x2")]()[0],r=e._descriptionFactory.getItemLabel(s);return ui("0x5")==o[ui("0xa")]?{type:ui("0xb"),content:Yo(n,ui("0x10"),r)}:ui("0x8")==o[ui("0xa")]?{type:"format",content:Yo(n,"*Outdent:* %0",r)}:void 0}))}}}var gi,mi,fi=["editor","requires","plugins","get","input","enableCommand"];gi=fi,mi=369,function(t){for(;--t;)gi.push(gi.shift())}(++mi);var hi=function(t,e){return fi[t-=0]};class bi extends t.Plugin{static get[hi("0x4")](){return[Ws.Input]}init(){this[hi("0x3")][hi("0x5")][hi("0x0")]("TrackChangesEditing")[hi("0x2")](hi("0x1"))}}const pi=["isCollapsed","enableCommand","getFirstRange","TrackChangesEditing","hasAttribute","LinkEditing","commandName","document","get","unlink","model","selection","editor","*Remove link*","getAttribute","linkHref","locale","format","registerDescriptionCallback","commandParams","markInlineFormat","link","plugins","getRanges"];var Ei,_i;Ei=pi,_i=341,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return pi[t-=0]};class Ci extends t.Plugin{afterInit(){const t=this[Ti("0x7")];if(!t[Ti("0x11")].has(Ti("0x0")))return;const e=t[Ti("0x11")][Ti("0x3")](Ti("0x16"));e.enableCommand(Ti("0x10"),((n,o)=>{const s=t[Ti("0x5")][Ti("0x2")][Ti("0x6")];let r=[];if(s[Ti("0x13")]){if(!s[Ti("0x17")](Ti("0xa")))return void n(o);{const e=(0,Ws.findAttributeRange)(s.getFirstPosition(),Ti("0xa"),s.getAttribute(Ti("0xa")),t[Ti("0x5")]);r=[e]}}else r=Array.from(s[Ti("0x12")]());t[Ti("0x5")].change((()=>{for(const t of r)e[Ti("0xf")](t,{commandName:Ti("0x10"),commandParams:[o]})}))})),e[Ti("0x14")](Ti("0x4"),(()=>{const n=this.editor[Ti("0x5")],o=n[Ti("0x2")].selection;n.change((()=>{let n=[];n=o[Ti("0x13")]?[(0,Ws.findAttributeRange)(o.getFirstPosition(),Ti("0xa"),o[Ti("0x9")](Ti("0xa")),t.model)]:ms(Ti("0xa"),o[Ti("0x15")](),t[Ti("0x5")]);for(const t of n)e[Ti("0xf")](t,{commandName:"unlink",commandParams:[]})}))})),e._descriptionFactory[Ti("0xd")]((e=>{const{data:n}=e,o=t[Ti("0xb")];if(n){if(Ti("0x10")==n[Ti("0x1")]){const t=n[Ti("0xe")][0];return{type:Ti("0xc"),content:Yo(o,"*Set link:* %0",'"'+t+'"')}}return"unlink"==n[Ti("0x1")]?{type:Ti("0xc"),content:Yo(o,Ti("0x8"))}:void 0}}))}}const yi=["change","bulleted","filter","selection","findIndex","locale","listItem","plugins","numbered","todoListChecked","parent","registerDescriptionCallback","listIndent","format","has","*Uncheck item*","createPositionAt","value","ELEMENT_LIST_ITEM","slice","commandName","getSelectedBlocks","ListEditing","enableCommand","todoList","checkChild","outdentList","previousSibling","ELEMENT_BULLETED_LIST","nextSibling","*Indent:* %0","TodoListEditing","element","editor","get","markBlockFormat","indentList","add","length","_descriptionFactory","listType","createRange","replace","checkTodoList","numberedList","end","before","getAttribute","afterInit","TrackChangesEditing","paragraph","commands","isObject","bulletedList","List","*Change to:* %0","name","model","*Outdent:* %0","from"];var ki,Ai;ki=yi,Ai=187,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0x29")](){const t=this[vi("0x1a")],e=t[vi("0x3a")];if(!t[vi("0x0")][vi("0x7")](vi("0xf")))return;const n=t[vi("0x0")][vi("0x1b")](vi("0x2a")),o=t.plugins[vi("0x7")](vi("0x18"));function s(e){return()=>{const o=t[vi("0x32")].document[vi("0x38")],s=t[vi("0x2c")][vi("0x1b")](e);if(s[vi("0xa")])return void t.execute(vi("0x2b"),{});const r=e[vi("0xc")](0,-4),i=function(t,e,n){let o=Array[vi("0x34")](t)[vi("0x37")]((t=>{return e=t,(o=n)[vi("0x12")](e[vi("0x3")],vi("0x3b"))&&!o[vi("0x2d")](e);var e,o}));o=o[vi("0x37")]((t=>!t.is(vi("0x19"),vi("0x3b"))||t[vi("0x28")](vi("0x21"))!=e));const s=new Set;for(const t of o)t.is(vi("0x19"),"listItem")?s.add(Si(t)):s.add(t);return Array[vi("0x34")](s)}(o.getSelectedBlocks(),r,t[vi("0x32")].schema);t.model[vi("0x35")]((()=>{for(const t of i)n[vi("0x1c")](t,{commandName:e,commandParams:[{forceValue:!s.value}],formatGroupId:"blockName"},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[vi("0x34")](t);const n=e[vi("0x39")]((t=>vi("0x3b")!=t[vi("0x31")]));return n>-1&&(e=e[vi("0xc")](0,n)),e}(t[vi("0x32")].document[vi("0x38")][vi("0xe")]()),s=t[vi("0x32")][vi("0x22")](t[vi("0x32")][vi("0x9")](o[0],vi("0x27")),t.model[vi("0x9")](o[o[vi("0x1f")]-1],vi("0x26")));t[vi("0x32")][vi("0x35")]((()=>{n[vi("0x1c")](s,{commandName:e,commandParams:[],formatGroupId:vi("0x5")},function(t){const e=new Set;for(const n of t){let t=n[vi("0x16")];for(;t&&t.getAttribute(vi("0x5"))>n[vi("0x28")](vi("0x5"));)e[vi("0x1e")](t),t=t.nextSibling}return Array[vi("0x34")](e)}(o))}))}}n[vi("0x10")]("numberedList",s("numberedList")),n[vi("0x10")]("bulletedList",s(vi("0x2e"))),o&&n[vi("0x10")](vi("0x11"),s("todoList")),n.enableCommand(vi("0x1d"),r("indentList")),n[vi("0x10")](vi("0x13"),r(vi("0x13"))),o&&n[vi("0x10")](vi("0x24"),(()=>{const e=t.commands[vi("0x1b")](vi("0x24")),o=Array[vi("0x34")](e._selectedElements);o[vi("0x37")]((t=>t[vi("0x28")](vi("0x2"))!=e[vi("0xa")])),t[vi("0x32")][vi("0x35")]((()=>{for(const t of o)n[vi("0x1c")](t,{commandName:vi("0x24"),commandParams:[{forceValue:!e.value}]})}))})),n[vi("0x20")].registerElementLabel(vi("0x3b"),(t=>Yo(e,vi("0xb"),t))),n[vi("0x20")][vi("0x4")]((t=>{const{data:n}=t;if(n){if(vi("0x25")==n[vi("0xd")]||vi("0x2e")==n.commandName||vi("0x11")==n[vi("0xd")])switch(n[vi("0xd")][vi("0x23")](vi("0x2f"),"")){case vi("0x36"):return o(Yo(e,vi("0x15")));case vi("0x1"):return o(Yo(e,"ELEMENT_NUMBERED_LIST"));case"todo":return o(Yo(e,"ELEMENT_TODO_LIST"))}if(vi("0x1d")==n[vi("0xd")])return{type:"format",content:Yo(e,vi("0x17"),Yo(e,"ELEMENT_LIST_ITEM"))};if(vi("0x13")==n.commandName)return{type:vi("0x6"),content:Yo(e,vi("0x33"),Yo(e,vi("0xb")))};if("checkTodoList"==n[vi("0xd")])return n.commandParams[0].forceValue?{type:vi("0x6"),content:Yo(e,"*Check item*")}:{type:vi("0x6"),content:Yo(e,vi("0x8"))}}function o(t){return{type:vi("0x6"),content:Yo(e,vi("0x30"),t)}}}))}}function Si(t){const e=t[vi("0x28")](vi("0x5"));if(0==e)return t;let n=t;for(;t[vi("0x14")]&&t.previousSibling.is(vi("0x19"),vi("0x3b"));){const o=t[vi("0x14")].getAttribute(vi("0x5"));if(o==e)n=t.previousSibling;else if(o<e)break;t=t[vi("0x14")]}return n}function Ii(t){const e=[];if(t.is("element",vi("0x3b"))&&t[vi("0x28")](vi("0x5"))>0){let n=t[vi("0x16")];for(;n&&vi("0x3b")==n[vi("0x31")]&&n[vi("0x28")](vi("0x5"))==t[vi("0x28")](vi("0x5"));)e.push(n),n=n[vi("0x16")]}return e}const Li=["config","type","listItem","_getSuggestionBlocksForListStyle","getSelectedBlocks","_descriptionFactory","push","createRange","filter","getFirstPosition","_getSuggestionBlocks","handleListReversedCommand","createPositionAt","getLastPosition","document","getAttribute","ListPropertiesEditing","toUpperCase","*Format:* set order to regular","format","handleListStyleCommand","selection","ELEMENT_","bind","listType","commandName","change","getSiblingNodes","flat","list.properties","model","plugins","from","listReversed","TrackChangesEditing","forward","*Format:* set start index to %0","listStyle","styles","parent","markMultiRangeBlockFormat","_LIST_","reversed","handleDescriptions","numbered","_getTranslationKeyForListStyle","afterInit","locale","enableCommand","ListUtils","before","backward","listStart","element","getListTypeFromListStyleType","unshift","map","*Change to:* %0","startIndex","commandParams","editor","handleListStartCommand","get","length"];var Ni,Mi;Ni=Li,Mi=196,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[wi("0x2a")](){if(!this[wi("0x38")].plugins.has(wi("0xc")))return;const t=this[wi("0x38")][wi("0x3c")][wi("0x3a")](wi("0x19")),e=this[wi("0x38")][wi("0x1b")][wi("0x3a")](wi("0x1e"));t[wi("0x22")]&&e[wi("0x2c")](wi("0x21"),this[wi("0x10")][wi("0x13")](this)),t[wi("0x26")]&&e[wi("0x2c")]("listReversed",this.handleListReversedCommand.bind(this)),t[wi("0x36")]&&e[wi("0x2c")]("listStart",this.handleListStartCommand[wi("0x13")](this)),e[wi("0x1")].registerDescriptionCallback(this[wi("0x27")][wi("0x13")](this))}[wi("0x10")](t,e={}){const n=this[wi("0x38")][wi("0x1b")][wi("0x3a")](wi("0x1e")),o=this[wi("0x3f")]();this.editor[wi("0x1a")][wi("0x16")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:"listStyle",commandParams:[{type:e[wi("0x3d")]}],formatGroupId:wi("0x21")})}))}[wi("0x7")](t,e={}){const n=this.editor[wi("0x1b")][wi("0x3a")](wi("0x1e")),o=this[wi("0x6")]((t=>t.is(wi("0x31"),wi("0x3e"))&&wi("0x28")===t[wi("0xb")](wi("0x14"))));if(o[wi("0x3b")]<1)return;const s=o.map((t=>this[wi("0x38")][wi("0x1a")][wi("0x3")](this[wi("0x38")][wi("0x1a")][wi("0x8")](t,wi("0x2e")),this[wi("0x38")].model[wi("0x8")](t,0))));this.editor.model[wi("0x16")]((()=>{n[wi("0x24")](s,{commandName:wi("0x1d"),commandParams:[{reversed:e[wi("0x26")]}],formatGroupId:wi("0x1d")})}))}[wi("0x39")](t,e={}){const n=this[wi("0x38")][wi("0x1b")][wi("0x3a")](wi("0x1e")),o=this[wi("0x6")]((t=>t.is("element",wi("0x3e"))&&wi("0x28")===t[wi("0xb")](wi("0x14"))));if(o.length<1)return;const s=o.map((t=>this[wi("0x38")][wi("0x1a")][wi("0x3")](this[wi("0x38")][wi("0x1a")].createPositionAt(t,wi("0x2e")),this[wi("0x38")][wi("0x1a")].createPositionAt(t,0))));this[wi("0x38")].model.change((()=>{n[wi("0x24")](s,{commandName:wi("0x30"),commandParams:[{startIndex:e[wi("0x36")]}],formatGroupId:wi("0x30")})}))}[wi("0x27")](t){const e=this[wi("0x38")][wi("0x2b")],{data:n}=t;if(!n)return;let o,s;switch(n[wi("0x15")]){case wi("0x21"):o=wi("0x35"),s={type:wi("0xf"),content:Yo(e,o,Yo(e,this[wi("0x29")](n[wi("0x37")][0][wi("0x3d")])))};break;case"listReversed":o=n.commandParams[0][wi("0x26")]?"*Format:* set order to reversed":wi("0xe"),s={type:wi("0xf"),content:Yo(e,o)};break;case wi("0x30"):o=wi("0x20"),s={type:wi("0xf"),content:Yo(e,o,n[wi("0x37")][0][wi("0x36")])}}return s}[wi("0x3f")](){var t,e,n,o;const s=this[wi("0x38")][wi("0x1b")][wi("0x3a")](wi("0x2d"));let r=Array[wi("0x1c")](this[wi("0x38")][wi("0x1a")][wi("0xa")][wi("0x11")][wi("0x0")]());return(null===(t=r[0])||void 0===t?void 0:t.is(wi("0x31"),"listItem"))&&r[wi("0x33")](...s.getSiblingNodes(this[wi("0x38")].model[wi("0xa")][wi("0x11")][wi("0x5")](),wi("0x2f"))),(null===(e=r[r[wi("0x3b")]-1])||void 0===e?void 0:e.is(wi("0x31"),wi("0x3e")))&&r[wi("0x2")](...s[wi("0x17")](this[wi("0x38")][wi("0x1a")][wi("0xa")][wi("0x11")][wi("0x9")](),wi("0x1f"))),r=[...new Set(r)],(null===(o=null===(n=this.editor[wi("0x1a")][wi("0xa")][wi("0x11")][wi("0x5")]())||void 0===n?void 0:n[wi("0x23")])||void 0===o?void 0:o.is(wi("0x31"),wi("0x3e")))&&(r=r[wi("0x4")]((t=>t.is(wi("0x31"),wi("0x3e"))))),r}[wi("0x6")](t){const e=this[wi("0x38")][wi("0x1b")][wi("0x3a")]("ListUtils");let n=Array[wi("0x1c")](this[wi("0x38")][wi("0x1a")][wi("0xa")][wi("0x11")][wi("0x0")]())[wi("0x4")](t)[wi("0x34")]((t=>{const n=this[wi("0x38")][wi("0x1a")][wi("0x8")](t,0);return[...e[wi("0x17")](n,wi("0x2f")),...e[wi("0x17")](n,wi("0x1f"))]}))[wi("0x18")]();return n=[...new Set(n)],n}[wi("0x29")](t){return wi("0x12")+this[wi("0x38")][wi("0x1b")][wi("0x3a")](wi("0x2d"))[wi("0x32")](t)[wi("0xd")]()+wi("0x25")+t[wi("0xd")]().replace(/-/g,"_")}}const Fi=["_descriptionFactory","conversion","createEmptyElement","locale","plugins","get","high","afterInit","elementToElement","showSuggestionHighlights","downcastDispatcher","data","options","for","stop","registerElementLabel","TrackChangesEditing","mediaEmbed","MediaEmbedEditing","ELEMENT_MEDIA","media","has"];var Pi,Di;Pi=Fi,Di=199,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0x6")](){const t=this.editor;if(!t[Bi("0x3")][Bi("0x14")](Bi("0x11")))return;const e=t[Bi("0x3")][Bi("0x4")](Bi("0xf")),n=t[Bi("0x2")];e.enableCommand(Bi("0x10")),e[Bi("0x15")][Bi("0xe")](Bi("0x13"),(t=>Yo(n,Bi("0x12"),t))),t[Bi("0x0")][Bi("0xc")]("dataDowncast")[Bi("0x7")]({model:Bi("0x13"),view:(t,{writer:e,options:n})=>{if(n[Bi("0x8")])return e[Bi("0x1")]("div")},converterPriority:Bi("0x5")}),t[Bi("0xa")][Bi("0x9")].on("attribute:url:media",((t,e,n)=>{n[Bi("0xb")][Bi("0x8")]&&t[Bi("0xd")]()}),{priority:Bi("0x5")})}}const Ui=["enableCommand","get","TrackChangesEditing","MentionEditing","has","plugins","editor","mention"];var Gi,Hi;Gi=Ui,Hi=491,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Vi extends t.Plugin{afterInit(){const t=this[zi("0x3")];t.plugins[zi("0x1")](zi("0x0"))&&t[zi("0x2")][zi("0x6")](zi("0x7"))[zi("0x5")](zi("0x4"))}}const Wi=["PageBreakEditing","registerElementLabel","_descriptionFactory","editor","ELEMENT_PAGE_BREAK","enableCommand","TrackChangesEditing","get","has","plugins","pageBreak"];var Ki,qi;Ki=Wi,qi=142,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Wi[t-=0]};class $i extends t.Plugin{afterInit(){const t=this[Xi("0x4")];if(!t.plugins[Xi("0x9")](Xi("0x1")))return;t.plugins[Xi("0x8")](Xi("0x7"))[Xi("0x6")]("pageBreak");const e=t[Xi("0xa")][Xi("0x8")]("TrackChangesEditing"),n=t.locale;e[Xi("0x3")][Xi("0x2")](Xi("0x0"),(t=>Yo(n,Xi("0x5"),t)))}}const Ji=["blockName","selection","getFirstRange","editing","isObject","paragraph","end","activeMarkers","consumable","isTouching","registerDescriptionCallback","markerRange","schema","addClass","change","addMarker:suggestion:insertion","ck-suggestion-marker-split","locale","$text","get","has","checkChild","downcastDispatcher","markerName","filter","ELEMENT_PARAGRAPH","enableCommand","start","_descriptionFactory","model","ck-suggestion-marker--active","*Insert:* %0","editor","isBlock","registerElementLabel","createUIElement","getSelectedBlocks","document","writer","plugins","getItemLabel","toViewPosition","commandName","data","name","markBlockFormat","insertion","TrackChangesEditing","*Change to:* %0","nodeAfter","showSuggestionHighlights","span","parent","bindElementToMarker"];var Qi,Zi;Qi=Ji,Zi=121,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{afterInit(){const t=this[Yi("0x13")];if(!t.plugins[Yi("0x7")]("Paragraph"))return;const e=t[Yi("0x4")],n=t[Yi("0x1a")][Yi("0x6")](Yi("0x22"));n[Yi("0xf")][Yi("0x15")](Yi("0x2e"),(t=>Yo(e,"ELEMENT_PARAGRAPH",t))),n.enableCommand(Yi("0x2e"),((e,o={})=>{const s=t[Yi("0x10")][Yi("0x18")],r=o[Yi("0x2a")]||s.selection,i=Array.from(r[Yi("0x17")]())[Yi("0xb")]((t=>{return e=t,(n=this[Yi("0x13")][Yi("0x10")][Yi("0x35")])[Yi("0x8")](e[Yi("0x27")],Yi("0x2e"))&&!n[Yi("0x2d")](e)&&Yi("0x2e")!=e[Yi("0x1f")];var e,n}));t[Yi("0x10")][Yi("0x1")]((()=>{for(const t of i)n[Yi("0x20")](t,{commandName:Yi("0x2e"),commandParams:[],formatGroupId:Yi("0x29")},fs(t))}))})),n[Yi("0xf")][Yi("0x33")]((t=>{const{data:n}=t;if(n&&Yi("0x2e")==n[Yi("0x1d")])return{type:"format",content:Yo(e,Yi("0x23"),Yo(e,Yi("0xc")))}})),n[Yi("0xd")]("insertParagraph"),t[Yi("0x2c")][Yi("0x9")].on(Yi("0x2"),ex(t),{priority:"highest"}),t[Yi("0x1e")][Yi("0x9")].on(Yi("0x2"),((e,n,o)=>{o.options[Yi("0x25")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:"highest"});const o=n._descriptionFactory;o[Yi("0x33")]((n=>{if(Yi("0x21")!==n.type)return;const{start:s,end:r}=n[Yi("0x2b")]();if(!s.isTouching(r)||!s.nodeAfter)return;const i=t[Yi("0x10")][Yi("0x35")],x=s[Yi("0x24")];return i[Yi("0x14")](x)&&!i.isLimit(x)&&i[Yi("0x8")](x,Yi("0x5"))?{type:"insertion",content:Yo(e,Yi("0x12"),o[Yi("0x1b")](x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Yi("0x1a")][Yi("0x6")](Yi("0x22")),i=o[Yi("0x34")][Yi("0xe")],x=o.markerRange[Yi("0x2f")],a=t[Yi("0x10")].schema;if(!i[Yi("0x32")](x)||!i[Yi("0x24")])return;const c=i[Yi("0x24")];if(a[Yi("0x14")](c)&&!a.isLimit(c)&&a[Yi("0x8")](c,"$text")){if(!s[Yi("0x31")].consume(o[Yi("0x34")],n[Yi("0x1f")]))return;const t=s[Yi("0x19")][Yi("0x16")](Yi("0x26"),{class:Yi("0x3")}),i=s.mapper[Yi("0x1c")](x);e&&r[Yi("0x30")].includes(o.markerName)&&s.writer[Yi("0x0")](Yi("0x11"),t),s[Yi("0x19")].insert(i,t),s.mapper[Yi("0x28")](t,o[Yi("0xa")])}}}const nx=["markInlineFormat","from","registerDescriptionCallback","isFormatting","locale","afterInit","change","createRangeOn","editor","format","removeFormat","plugins","_descriptionFactory","TrackChangesEditing","schema","document","getAttributes","isCollapsed","has","model"];var ox,sx;ox=nx,sx=149,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[rx("0x10")](){const t=this[rx("0x13")];if(!t[rx("0x2")][rx("0x9")]("RemoveFormatEditing"))return;const e=t.plugins.get(rx("0x4"));e.enableCommand("removeFormat",(n=>{const o=t[rx("0xa")][rx("0x6")].selection;o[rx("0x8")]?n():t[rx("0xa")][rx("0x11")]((()=>{const n=Array[rx("0xc")](o.getRanges());for(const o of n)for(const n of o.getItems())xx(n,t.model[rx("0x5")])&&e[rx("0xb")](t[rx("0xa")][rx("0x12")](n),{commandName:rx("0x1"),commandParams:[]})}))})),e[rx("0x3")][rx("0xd")]((e=>{const{data:n}=e;if(n&&rx("0x1")==n.commandName)return{type:rx("0x0"),content:Yo(t[rx("0xf")],"*Remove all formatting*")}}))}}function xx(t,e){for(const[n]of t[rx("0x7")]()){const t=e.getAttributeProperties(n);if(t&&t[rx("0xe")])return!0}return!1}const ax=["discardSuggestion","discardSelectedSuggestions","goToNextRestrictedEditingException","RestrictedEditingModeEditing","enableCommand","has","trackChanges","goToPreviousRestrictedEditingException","plugins","get","editor","acceptAllSuggestions","discardAllSuggestions","acceptSuggestion","afterInit","TrackChangesEditing"];var cx,lx;cx=ax,lx=153,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{[ux("0x5")](){const t=this[ux("0x1")];if(!t.plugins[ux("0xc")]("RestrictedEditingModeEditing"))return;const e=t[ux("0xf")].get(ux("0x6"));e[ux("0xb")](ux("0xe")),e.enableCommand(ux("0x9"));const n=t[ux("0xf")][ux("0x0")](ux("0xa"));n.enableCommand(ux("0xd")),n[ux("0xb")](ux("0x4")),n[ux("0xb")](ux("0x7")),n[ux("0xb")](ux("0x2")),n[ux("0xb")](ux("0x3")),n[ux("0xb")]("acceptSelectedSuggestions"),n[ux("0xb")](ux("0x8"))}}const gx=["mapper","markerName","enableCommand","showSuggestionHighlights","addMarker:suggestion:deletion","model","ELEMENT_LINE_BREAK","span","downcastDispatcher","merge","test","deletion","get","options","markerRange","TrackChangesEditing","name","createPositionBefore","_descriptionFactory","plugins","softBreak","bindElementToMarker","writer","registerElementLabel","createUIElement","shiftEnter","data","high","consumable","addMarker:suggestion:insertion","editing","requires","toViewPosition","split","element","editor","activeMarkers"];var mx,fx;mx=gx,fx=481,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class bx extends t.Plugin{static get[hx("0x1f")](){return[nr.ShiftEnter]}init(){const t=this[hx("0x23")],e=t[hx("0x13")][hx("0xc")](hx("0xf"));e[hx("0x2")](hx("0x19")),t[hx("0x1e")][hx("0x8")].on(hx("0x1d"),px(t),{priority:hx("0x1b")}),t[hx("0x1e")].downcastDispatcher.on(hx("0x4"),px(t),{priority:"high"}),t[hx("0x1a")][hx("0x8")].on("addMarker:suggestion",((e,n,o)=>{o[hx("0xd")][hx("0x3")]&&px(t,{showActiveMarker:!1})(e,n,o)})),e[hx("0x12")][hx("0x17")](hx("0x14"),(e=>Yo(t.locale,hx("0x6"),e)))}}function px(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[hx("0x13")][hx("0xc")](hx("0xf"));if(!s[hx("0x1c")][hx("0xa")](o[hx("0xe")],n[hx("0x10")]))return;const i=t[hx("0x5")];for(const t of o[hx("0xe")].getItems()){if(!t.is(hx("0x22"),hx("0x14")))continue;const n=hx("0xb")==o[hx("0x1")][hx("0x21")](":")[1]?hx("0x9"):hx("0x21"),x=s[hx("0x16")][hx("0x18")](hx("0x7"),{class:"ck-suggestion-marker-"+n}),a=s[hx("0x0")][hx("0x20")](i[hx("0x11")](t));e&&r[hx("0x24")].includes(o[hx("0x1")])&&s[hx("0x16")].addClass("ck-suggestion-marker--active",x),s[hx("0x16")].insert(a,x),s[hx("0x0")][hx("0x15")](x,o[hx("0x1")])}}}const Ex=["commands","registerDescriptionCallback","locale","TrackChangesEditing","get","plugins","selection","document","_descriptionFactory","model","StandardEditingModeEditing","forceValue","getRanges","afterInit","restrictedEditingException","markInlineFormat","FORMAT_RESTRICTED_ENABLED","change","commandName","format","value"];var _x,Tx;_x=Ex,Tx=176,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.editor,e=t[Cx("0x1")],n=t[Cx("0xf")];if(!t.plugins.has(Cx("0x2")))return;const o=t[Cx("0x12")][Cx("0x11")](Cx("0x10")),s=Cx("0x6"),r=t[Cx("0xd")][Cx("0x11")](s);o.enableCommand(s,((t,n={})=>{const i=e[Cx("0x14")][Cx("0x13")];if(i.isCollapsed)return void t(n);const x=void 0!==n[Cx("0x3")]?n.forceValue:!r[Cx("0xc")];e[Cx("0x9")]((()=>{const t=Array.from(i[Cx("0x4")]());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o[Cx("0x7")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Cx("0x0")][Cx("0xe")]((t=>{const{data:e}=t;if(e&&e[Cx("0xa")]==s)return e.commandParams[0][Cx("0x3")]?{type:Cx("0xb"),content:Yo(n,Cx("0x8"))}:{type:Cx("0xb"),content:Yo(n,"FORMAT_RESTRICTED_DISABLED")}}))}}const kx=["name","find","enabledStyles","createRangeOn","styleName","afterInit","enableCommand","_getStyleDefinition","normalizeConfig","commands","change","getAttribute","DataSchema","StyleUtils","style.definitions","isCollapsed","markInlineFormat","commandParams","_descriptionFactory","style","has","modelElements","get","inline","format","getSelectedBlocks","locale","config","model","push","_getRangesWithClasses","plugins","*Format:* %0","getDefinitionsForView","selection","from","registerDescriptionCallback","document","*Remove format:* %0","every","markBlockFormat","getItems","commandName","Style","isBlock","forceValue","style:","block","includes","classes"];var Ax,vx;Ax=kx,vx=237,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{[Rx("0x12")](){const t=this.editor;if(!t.plugins[Rx("0x21")](Rx("0x6")))return;const e=t[Rx("0x16")].get(Rx("0x20")),n=t.plugins[Rx("0x23")]("TrackChangesEditing"),o=t[Rx("0x27")],s=t[Rx("0x2c")][Rx("0x23")](Rx("0x19")),r=t[Rx("0x2c")][Rx("0x23")](Rx("0x1a"))[Rx("0x15")](s,t[Rx("0x28")].get(Rx("0x1b")));n[Rx("0x13")]("style",((o,{styleName:i})=>{const x=t[Rx("0x29")][Rx("0x0")][Rx("0x2f")],a=this[Rx("0x14")](i,r);if(!a)return;if(!e[Rx("0xf")][Rx("0xb")](i))return;if(x[Rx("0x1c")]&&!a[Rx("0x7")])return void o({styleName:i});const c=!e.value[Rx("0xb")](a[Rx("0xd")]);if(a.isBlock){const e=function(t,e){const n=new Set;for(const o of t){const t=o.getAncestors({includeSelf:!0,parentFirst:!0});for(const o of t)if(e.includes(o.name)){n.add(o);break}}return n}(x[Rx("0x26")](),a[Rx("0x22")]);t[Rx("0x29")][Rx("0x17")]((()=>{for(const t of e)n[Rx("0x3")](t,{commandName:Rx("0x20"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:Rx("0x9")+i})}))}else{let e=Array.from(x.getRanges());if(!c){const n=Array[Rx("0x30")](s[Rx("0x2e")](a.element,!1))[0][Rx("0x29")],o=[];for(const s of e){const e=this[Rx("0x2b")](t[Rx("0x29")],s,a[Rx("0xc")],n);o[Rx("0x2a")](...e)}e=o}t[Rx("0x29")].change((()=>{for(const t of e)n[Rx("0x1d")](t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0x1f")][Rx("0x31")]((t=>{const{data:e}=t;if(e&&"style"===e[Rx("0x5")])return e.commandParams[0][Rx("0x8")]?{type:Rx("0x25"),content:Yo(o,Rx("0x2d"),e.commandParams[0][Rx("0x11")].toLowerCase())}:{type:Rx("0x25"),content:Yo(o,Rx("0x1"),e[Rx("0x1e")][0][Rx("0x11")].toLowerCase())}}))}[Rx("0x14")](t,e){let n=e[Rx("0xa")][Rx("0xe")]((e=>e[Rx("0xd")]===t));return n||(n=e[Rx("0x24")][Rx("0xe")]((e=>e[Rx("0xd")]===t))),n}_getRangesWithClasses(t,e,n,o){const s=[];for(const r of e[Rx("0x4")]()){const e=r[Rx("0x18")](o);e&&n[Rx("0x2")]((t=>e.classes[Rx("0xb")](t)))&&s[Rx("0x2a")](t[Rx("0x10")](r))}return s}}const Ix=["classes","createRangeIn","some","getColumnIndexes","min","enqueueChange","colspan","refresh","data","getItems","_splitMarkerName","registerDescriptionCallback","setSelection","registerPostFixer","markMultiRangeInsertion","order","rootName","plugins","differ","ELEMENT_TABLE_COLUMN","_setupColumnsRowsFixing","map","isIntersectingWithRange","$textProxy","removeTableRow","document","maxColumn","low","fromRange","registerElementLabel","subType","ELEMENT_TABLE_COLUMN_WITH_TEXT","selection","ELEMENT_TABLE_ROW","getAttribute","minColumn","removeClass","tablePaste","push","tableCell","_getCoordsForCells","suggestion","getSelectionAffectedTableCells","insertTable","findAncestor","enableCommand","downcastDispatcher","position","*Remove:* %0","nodeAfter","values","markMultiRangeDeletion","editor","insertTableColumnRight","discard","MIN_SAFE_INTEGER","MAX_SAFE_INTEGER","nodeBefore","writer","registerCustomCallback","item","from","_descriptionFactory","join","getRanges","ELEMENT_TABLE_ROW_WITH_TEXT","_getSuggestionCoords","_suggestionFactory","createTableWalker","minRow","insert","deletion","removeTableColumn","name","options","type","span","oldRange","getContainedElement","last","length","end","ELEMENT_TABLE","root","addRange","*Insert:* %0","TableUtils","detach","substr","getChildren","mapper","toLowerCase","accept","maxRow","get","getRowIndexes","insertion","change:data","commands","table","addClass","hasAttribute","insertTableRowAbove","selectTableRow","getChangedMarkers","startsWith","tableColumn","_tablePostFixingSubtypes","$graveyard","isEqual","TrackChangesEditing","rowspan","above","execute","selectTableColumn","change","first","filter","start","getSuggestion","tableRow","createRangeOn","getChanges","every","max","model","isInContent","has","ELEMENT_TABLE_WITH_TEXT"];var Lx,Nx;Lx=Ix,Nx=316,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const Mx=function(t,e){return Ix[t-=0]};class wx extends t.Plugin{constructor(t){super(t),this[Mx("0x31")]=[Mx("0x3e"),"tableColumn"],this._tableSuggestions=new Set}afterInit(){const t=this[Mx("0x7b")],e=t[Mx("0x43")][Mx("0x60")][Mx("0x67")];if(!t[Mx("0x58")][Mx("0x45")]("TableEditing"))return;const n=t.locale,o=t[Mx("0x58")].get("TrackChangesEditing"),s=t[Mx("0x58")][Mx("0x24")](Mx("0x1c"));o[Mx("0x4")][Mx("0x64")](Mx("0x29"),(t=>Yo(n,Mx("0x18"),t))),this[Mx("0x5b")](),o.enableCommand(Mx("0x72")),o.enableCommand(Mx("0x2d")),o[Mx("0x74")](Mx("0x38"));for(const n of[Mx("0x2c"),"insertTableRowBelow"]){const r=t[Mx("0x28")][Mx("0x24")](n);o[Mx("0x74")](n,(n=>{t[Mx("0x43")][Mx("0x39")]((t=>{n();const i=Mx("0x36")===r.order,x=s[Mx("0x71")](e),a=s.getRowIndexes(x),c=i?a[Mx("0x3a")]-1:a[Mx("0x15")]+1,l=x[0][Mx("0x73")](Mx("0x29")),u=s[Mx("0xa")](l,{startRow:c,endRow:c}),d=Array.from(u)[Mx("0x5c")]((e=>t.createRangeOn(e.cell)));o[Mx("0x55")](d,"tableRow")}))}))}for(const n of["insertTableColumnLeft",Mx("0x7c")]){const r=t[Mx("0x28")][Mx("0x24")](n);o[Mx("0x74")](n,(n=>{t[Mx("0x43")][Mx("0x39")]((t=>{n();const i="left"===r[Mx("0x56")],x=s.getSelectionAffectedTableCells(e),a=s[Mx("0x4a")](x),c=i?a[Mx("0x3a")]-1:a[Mx("0x15")]+1,l=x[0][Mx("0x73")](Mx("0x29")),u=s[Mx("0xa")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array.from(u).map((e=>t[Mx("0x3f")](e.cell)));o[Mx("0x55")](d,Mx("0x30"))}))}))}for(const n of[Mx("0x5f"),"removeTableColumn"]){const r=n.substr(11),i=r[Mx("0x21")](),x=i[Mx("0x1e")](0,3)+Mx("0x12"),a=Mx("0x29")+r,c=Mx("0x4b")+r,l=Mx("0x42")+r;o.enableCommand(n,(()=>{t[Mx("0x43")][Mx("0x39")]((t=>{const r=s.getSelectionAffectedTableCells(e),u=r[0][Mx("0x73")]("table");let d;if(Mx("0x5f")==n){const t=s[Mx("0x25")](r);d={startRow:t[Mx("0x3a")],endRow:t[Mx("0x15")],includeAllSlots:!0}}else{const t=s.getColumnIndexes(r);d={startColumn:t[Mx("0x3a")],endColumn:t[Mx("0x15")],includeAllSlots:!0}}const g=s[Mx("0xa")](u,d),m=Array[Mx("0x3")](g)[Mx("0x5c")]((({cell:t})=>t)),f=Ox(m[Mx("0x3b")]((t=>t.hasAttribute(x)))),h=Ox(m[Mx("0x3b")]((t=>!t.hasAttribute(x))))[Mx("0x5c")]((e=>t[Mx("0x3f")](e))),b=o[Mx("0x7a")](h,a);if(b&&(Mx("0x3e")==b[Mx("0x65")]||"tableColumn"==b.subType)){const e=this[Mx("0x8")](b);for(const n of f){const o=t[Mx("0x3f")](n),r=s.getCellLocation(n),a=n[Mx("0x69")](x)-1,u=e[c],d=e[l];u<=r[i]&&r[i]+a<=d&&b[Mx("0x1a")](o)}}}))}))}function r(n){const o=Array.from(e[Mx("0x6")]())[Mx("0x5c")]((t=>i.LiveRange[Mx("0x63")](t)));t.model.change((e=>{const s=e.batch;n=n[Mx("0x3b")]((t=>Mx("0x32")!=t.root[Mx("0x57")])),e[Mx("0x53")](n),t[Mx("0x28")].get(Mx("0x5f"))[Mx("0x4e")](),t.execute("removeTableRow",{forceDefaultExecution:!0}),t[Mx("0x43")][Mx("0x4c")]((()=>{t[Mx("0x43")][Mx("0x4c")](s,(t=>{const e=o[Mx("0x3b")]((t=>Mx("0x32")!=t[Mx("0x19")].rootName));e[Mx("0x16")]>0&&t.setSelection(e);for(const t of o)t[Mx("0x1d")]()}))}))}))}function a(n){t.model[Mx("0x39")]((o=>{const s=Array[Mx("0x3")](e.getRanges())[Mx("0x5c")]((t=>i.LiveRange[Mx("0x63")](t))),r=[];for(const t of n)for(const e of t[Mx("0x50")]({shallow:!0}))r[Mx("0x6d")](e);for(const e of r)Mx("0x32")!=e[Mx("0x19")][Mx("0x57")]&&(o[Mx("0x53")](o.createPositionAt(e,0)),t[Mx("0x28")][Mx("0x24")](Mx("0xe")).refresh(),t[Mx("0x37")]("removeTableColumn",{forceDefaultExecution:!0}));const x=s[Mx("0x3b")]((t=>Mx("0x32")!=t.root[Mx("0x57")]));x[Mx("0x16")]>0&&o[Mx("0x53")](x);for(const t of s)t.detach()}))}function c(t,e){return e[Mx("0x41")]((e=>t.some((t=>t[Mx("0x17")][Mx("0x33")](e.start)||e[Mx("0x17")][Mx("0x33")](t[Mx("0x3c")])))))}function l(t,e){return t[Mx("0x49")]((t=>e[Mx("0x49")]((e=>t[Mx("0x17")].isTouching(e[Mx("0x3c")])))))}t[Mx("0x4f")][Mx("0x75")].on("addMarker:suggestion",((t,e,n)=>{if(!n[Mx("0x10")].showSuggestionHighlights)return;const o=e[Mx("0x2")];if(!o)return;const s=n[Mx("0x20")].toViewElement(o);function r(t){return Array.isArray(t)?t:[t]}s&&"tableCell"===o[Mx("0xf")]&&(0,x.setHighlightHandling)(s,n[Mx("0x0")],((t,e,n)=>n[Mx("0x2a")](r(e[Mx("0x47")]),t)),((t,e,n)=>n[Mx("0x6b")](r(e[Mx("0x47")]),t)))}),{priority:"highest"}),o[Mx("0x4")][Mx("0x52")]((t=>{if("insertion"!=t[Mx("0x11")]&&Mx("0xd")!=t[Mx("0x11")])return;const e=t[Mx("0x14")]();if(null!=e&&e.is("element",Mx("0x29"))){if(Mx("0x26")==t[Mx("0x11")]){const e=t.getItems()[Mx("0x3b")]((t=>t.is(Mx("0x5e"))))[Mx("0x5c")]((t=>t.data));if(e[Mx("0x16")])return{type:Mx("0x26"),content:Yo(n,Mx("0x1b"),Yo(n,Mx("0x46"),'"'+e[Mx("0x5")](" ")+'"'))}}if("deletion"==t[Mx("0x11")]){const e=t[Mx("0x50")]()[Mx("0x3b")]((t=>t.is(Mx("0x5e")))).map((t=>t[Mx("0x4f")]));if(e[Mx("0x16")])return{type:Mx("0xd"),content:Yo(n,Mx("0x77"),Yo(n,Mx("0x46"),'"'+e[Mx("0x5")](" ")+'"'))}}}})),o._descriptionFactory[Mx("0x52")]((t=>{if(Mx("0x3e")==t.subType){const e=t.getItems().filter((t=>t.is("$textProxy")))[Mx("0x5c")]((t=>t[Mx("0x4f")])),o=this[Mx("0x8")](t),s=o[Mx("0x23")]-o[Mx("0xb")]+1;if(Mx("0x26")==t[Mx("0x11")])return e.length?{type:Mx("0x26"),content:Yo(n,"*Insert:* %0",Yo(n,Mx("0x7"),[s,'"'+e.join(" ")+'"']))}:{type:"insertion",content:Yo(n,Mx("0x1b"),Yo(n,Mx("0x68"),s))};if(Mx("0xd")==t[Mx("0x11")])return e[Mx("0x16")]?{type:"deletion",content:Yo(n,Mx("0x77"),Yo(n,Mx("0x7"),[s,'"'+e[Mx("0x5")](" ")+'"']))}:{type:Mx("0xd"),content:Yo(n,Mx("0x77"),Yo(n,"ELEMENT_TABLE_ROW",s))}}if(Mx("0x30")==t[Mx("0x65")]){const e=t[Mx("0x50")]().filter((t=>t.is("$textProxy")))[Mx("0x5c")]((t=>t[Mx("0x4f")])),o=this[Mx("0x8")](t),s=o[Mx("0x61")]-o[Mx("0x6a")]+1;if(Mx("0x26")==t.type)return e[Mx("0x16")]?{type:Mx("0x26"),content:Yo(n,"*Insert:* %0",Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e[Mx("0x5")](" ")+'"']))}:{type:Mx("0x26"),content:Yo(n,"*Insert:* %0",Yo(n,Mx("0x5a"),s))};if("deletion"==t[Mx("0x11")])return e[Mx("0x16")]?{type:"deletion",content:Yo(n,Mx("0x77"),Yo(n,Mx("0x66"),[s,'"'+e[Mx("0x5")](" ")+'"']))}:{type:Mx("0xd"),content:Yo(n,"*Remove:* %0",Yo(n,Mx("0x5a"),s))}}})),o[Mx("0x9")][Mx("0x1")](Mx("0x26"),Mx("0x3e"),"discard",r),o._suggestionFactory[Mx("0x1")](Mx("0xd"),Mx("0x3e"),Mx("0x22"),r),o[Mx("0x9")][Mx("0x1")](Mx("0x26"),Mx("0x30"),Mx("0x7d"),a),o[Mx("0x9")].registerCustomCallback(Mx("0xd"),Mx("0x30"),Mx("0x22"),a),o._suggestionFactory.registerCustomCallback("insertion",Mx("0x30"),"join",c),o._suggestionFactory[Mx("0x1")](Mx("0xd"),Mx("0x30"),"join",c),o[Mx("0x9")][Mx("0x1")](Mx("0x26"),Mx("0x3e"),"join",l),o[Mx("0x9")][Mx("0x1")]("deletion",Mx("0x3e"),Mx("0x5"),l)}_acceptFormatSuggestionCallbackFactory(){const t=this[Mx("0x7b")],e=t[Mx("0x43")][Mx("0x60")][Mx("0x67")];return(n,o)=>{t[Mx("0x43")][Mx("0x39")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][Mx("0x17")][Mx("0x80")];x&&x[0]&&!1===x[0].forceValue&&(a=n[0][Mx("0x3c")][Mx("0x78")]);const c=s[Mx("0x48")](a);if(Mx("0x32")==c[Mx("0x19")].rootName)return;const l=Array[Mx("0x3")](e[Mx("0x6")]())[Mx("0x5c")]((t=>i.LiveRange[Mx("0x63")](t)));s[Mx("0x53")](c),t[Mx("0x28")].get(r).refresh(),x[Mx("0x6d")]({forceDefaultExecution:!0}),t.execute(r,...x);const u=l[Mx("0x3b")]((t=>Mx("0x32")!=t.root[Mx("0x57")]));u[Mx("0x16")]>0&&s.setSelection(u);for(const t of l)t[Mx("0x1d")]()}))}}_getCoordsForCells(t){const e=this[Mx("0x7b")].plugins.get(Mx("0x1c"));let n=Number[Mx("0x7f")],o=Number[Mx("0x7e")],s=Number.MAX_SAFE_INTEGER,r=Number[Mx("0x7e")];for(const i of t){if(Mx("0x32")==i[Mx("0x19")][Mx("0x57")])continue;const{row:t,column:x}=e.getCellLocation(i),a=i[Mx("0x2b")]("rowspan")?i[Mx("0x69")](Mx("0x35"))-1:0,c=i[Mx("0x2b")](Mx("0x4d"))?i[Mx("0x69")]("colspan")-1:0;n=t<n?t:n,o=t+a>o?t+a:o,s=x<s?x:s,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:s,maxColumn:r}}[Mx("0x5b")](){const t=this.editor,e=t[Mx("0x58")][Mx("0x24")](Mx("0x34")),n=t[Mx("0x58")].get("TableUtils");t[Mx("0x43")][Mx("0x60")].on(Mx("0x27"),(()=>{const n=Array.from(t[Mx("0x43")].document[Mx("0x59")][Mx("0x2e")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Mx("0x51")](t);if(Mx("0x70")!=n)continue;if(null!=o[Mx("0x13")])continue;const i=e[Mx("0x3d")](s);this[Mx("0x31")].includes(r)&&this._tableSuggestions.add(i)}}),{priority:Mx("0x62")});const o=(t,e)=>{let o=!1;const s=e.createRangeOn(t),r=t[Mx("0x73")]("table"),i=n.getCellLocation(t);for(const e of this._tableSuggestions){const n=e[Mx("0x65")],x=n[Mx("0x2f")](Mx("0x6c")),a=n.substr(x?10:5),c=a.toLowerCase(),l=c.substr(0,3)+"span",u=Mx("0x4b")+a,d=Mx("0x42")+a;if(!e[Mx("0x44")])continue;if(r!=e.getFirstRange()[Mx("0x3c")][Mx("0x73")](Mx("0x29")))continue;if(e[Mx("0x5d")](s))continue;const g=t[Mx("0x2b")](l)?t[Mx("0x69")](l)-1:0,m=this[Mx("0x8")](e),f=m[u],h=m[d];f<=i[c]&&i[c]+g<=h&&(e[Mx("0x1a")](s),o=!0)}return o};t.model[Mx("0x60")][Mx("0x54")]((e=>{let n=!1;for(const s of t[Mx("0x43")][Mx("0x60")][Mx("0x59")][Mx("0x40")]())if(Mx("0xc")==s[Mx("0x11")])if(Mx("0x3e")==s[Mx("0xf")])for(const t of s[Mx("0x76")][Mx("0x78")][Mx("0x1f")]())n=n||o(t,e);else Mx("0x6e")==s[Mx("0xf")]&&(n=n||o(s[Mx("0x76")][Mx("0x78")],e));return n}))}[Mx("0x8")](t){return this[Mx("0x6f")](t.getRanges()[Mx("0x5c")]((t=>t[Mx("0x3c")].nodeAfter)))}}function Ox(t){return Array.from(new Set(t)[Mx("0x79")]())}const Fx=["getRanges","_suggestionFactory","forceDefaultExecution","cell","splitTableCellHorizontally","$graveyard","commandName","_isForcedDefaultExecutionBlock","afterInit","getCellLocation","getSelectionAffectedTableCells","createTableWalker","getAncestors","find","element","_areSelectedCellsMergable","getFirstPosition","commands","containsRange","accept","markMultiRangeBlockFormat","mergeTableCellDown","*Merge cells*","mergeTableCellLeft","value","filter","return","rootName","fromRange","table","from","selection","add","mergeTableCellRight","trackChanges","_tablePostFixingSubtypes","execute","push","createRangeOn","formatBlock","detach","get","TrackChangesEditing","refresh","requires","document","isInContent","getSuggestions","size","length","TableEditing","enableCommand","_descriptionFactory","plugins","mergeTableCellUp","type","isEnabled","format","mergeTableCells","markBlockFormat","locale","TableUtils","editor","registerDescriptionCallback","model","low","horizontally","author","_areMergableCells","subType","registerCustomCallback","highest","has","change","tableCell","map","splitTableCellVertically","stop","_acceptFormatSuggestionCallbackFactory"];var Px,Dx;Px=Fx,Dx=432,function(t){for(;--t;)Px.push(Px.shift())}(++Dx);const Bx=function(t,e){return Fx[t-=0]};class jx extends t.Plugin{static get[Bx("0x7")](){return[wx]}[Bx("0x32")](){const t=this.editor,e=t[Bx("0x1b")].document[Bx("0x49")],n=t[Bx("0x17")];if(!t[Bx("0x10")][Bx("0x23")](Bx("0xd")))return;const o=t[Bx("0x10")][Bx("0x4")](Bx("0x5")),s=t.plugins.get(Bx("0x18")),r=t[Bx("0x10")][Bx("0x4")](wx);r[Bx("0x4d")][Bx("0x0")](Bx("0x15")),o.enableCommand("mergeTableCells",(()=>{const e=s[Bx("0x34")](t[Bx("0x1b")][Bx("0x8")][Bx("0x49")]);t[Bx("0x1b")][Bx("0x24")]((()=>{o[Bx("0x3e")](e,{commandName:Bx("0x15"),commandParams:[]},[],Bx("0x15"))}))})),t[Bx("0x3b")].get(Bx("0x15")).on(Bx("0x4e"),((e,n)=>{t.commands[Bx("0x4")](Bx("0x4c"))[Bx("0x42")]&&(n.length>0&&n[n[Bx("0xc")]-1]&&n[n.length-1][Bx("0x2c")]||o[Bx("0x31")]||this[Bx("0x39")]()||e[Bx("0x28")]())}),{priority:Bx("0x22")});for(const e of[Bx("0x11"),Bx("0x4b"),Bx("0x3f"),Bx("0x41")]){const n=t[Bx("0x3b")][Bx("0x4")](e);o[Bx("0xe")](e,(()=>{const e=t.model[Bx("0x8")][Bx("0x49")][Bx("0x3a")]()[Bx("0x36")]().find((t=>t.is(Bx("0x38"),Bx("0x25")))),s=n[Bx("0x42")];t[Bx("0x1b")][Bx("0x24")]((()=>{o[Bx("0x3e")]([e,s],{commandName:Bx("0x15"),commandParams:[]},[],Bx("0x15"))}))}))}for(const e of[Bx("0x27"),"splitTableCellHorizontally"]){const n=t[Bx("0x3b")][Bx("0x4")](e);o.enableCommand(e,(()=>{const r=s.getSelectionAffectedTableCells(t[Bx("0x1b")][Bx("0x8")].selection)[0],i=r.findAncestor(Bx("0x47")),{column:x,row:a}=s[Bx("0x33")](r);let c=[];if(Bx("0x1d")==n.direction){const t=s[Bx("0x35")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0x48")](t).map((t=>t.cell))}else{const t=s[Bx("0x35")](i,{column:x,includeAllSlots:!0});c=Array[Bx("0x48")](t).map((t=>t[Bx("0x2d")]))}t[Bx("0x1b")][Bx("0x24")]((t=>{o[Bx("0x16")](t[Bx("0x1")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[Bx("0xf")][Bx("0x1a")]((t=>{const{data:e}=t;if(e)return"mergeTableCells"==e[Bx("0x30")]?{type:Bx("0x14"),content:Yo(n,Bx("0x40"))}:void 0})),o[Bx("0xf")][Bx("0x1a")]((t=>{const{data:e}=t;if(e)return Bx("0x27")==e[Bx("0x30")]?{type:Bx("0x14"),content:Yo(n,"*Split cell:* vertically")}:Bx("0x2e")==e[Bx("0x30")]?{type:Bx("0x14"),content:Yo(n,"*Split cell:* horizontally")}:void 0}));const x=r[Bx("0x29")]();for(const t of[Bx("0x11"),Bx("0x4b"),Bx("0x3f"),Bx("0x41")])o[Bx("0x2b")][Bx("0x21")](Bx("0x2"),t,"accept",x);for(const t of[Bx("0x27"),"splitTableCellHorizontally"])o._suggestionFactory.registerCustomCallback(Bx("0x2"),t,Bx("0x3d"),x);o[Bx("0x2b")].registerCustomCallback(Bx("0x2"),Bx("0x15"),Bx("0x3d"),(n=>{t[Bx("0x1b")].change((o=>{const s=Array[Bx("0x48")](e[Bx("0x2a")]())[Bx("0x26")]((t=>i.LiveRange[Bx("0x46")](t)));o.setSelection(n),t[Bx("0x3b")][Bx("0x4")]("mergeTableCells")[Bx("0x6")](),t.execute(Bx("0x15"),{forceDefaultExecution:!0});const r=s[Bx("0x43")]((t=>Bx("0x2f")!=t.root[Bx("0x45")]));r.length>0&&o.setSelection(r);for(const t of s)t[Bx("0x3")]()}))}));for(const e of[Bx("0x11"),"mergeTableCellDown","mergeTableCellLeft","mergeTableCellRight"]){const n=t[Bx("0x3b")][Bx("0x4")](e);n.on("set:isEnabled",((e,o,s)=>{if(s){const o=t[Bx("0x1b")][Bx("0x8")][Bx("0x49")][Bx("0x3a")]().getAncestors()[Bx("0x37")]((t=>t.is(Bx("0x38"),Bx("0x25"))));this[Bx("0x1f")](n[Bx("0x42")],o)||(e[Bx("0x44")]=!1,e[Bx("0x28")]())}}),{priority:Bx("0x1c")})}}[Bx("0x39")](){const t=this[Bx("0x19")][Bx("0x3b")][Bx("0x4")](Bx("0x15")),e=this.editor[Bx("0x10")][Bx("0x4")](Bx("0x18"));if(!t[Bx("0x13")])return!1;const n=e[Bx("0x34")](this[Bx("0x19")][Bx("0x1b")][Bx("0x8")][Bx("0x49")]);for(const t of n)for(const e of n)if(t!=e&&!this[Bx("0x1f")](t,e))return!1;return!0}_areMergableCells(t,e){const n=this[Bx("0x19")][Bx("0x10")].get(Bx("0x5")),o=this[Bx("0x19")].model.createRangeOn(t),s=this[Bx("0x19")][Bx("0x1b")][Bx("0x1")](e),r=new Set,i=new Set;for(const t of n[Bx("0xa")]())if(("insertion"==t.type||"deletion"==t.type||Bx("0x15")==t[Bx("0x20")])&&t[Bx("0x9")])for(const e of t[Bx("0x2a")]())e[Bx("0x3c")](o,!0)&&r[Bx("0x4a")](t[Bx("0x12")]+":"+t[Bx("0x1e")].id),e[Bx("0x3c")](s,!0)&&i.add(t.type+":"+t.author.id);if(r[Bx("0xb")]!=i.size)return!1;for(const t of r)if(!i[Bx("0x23")](t))return!1;return!0}}const Ux=["editing","removeAttribute","createPositionBefore","getColumnIndexes","markerRange","start","showSuggestionHighlights","setTableColumnHeader","data","TableEditing","getSuggestion","FORMAT_HEADER_ROW","index","consumable","name","findAncestor","change","getAttribute","addMarker:suggestion","ck-suggestion-marker-","model","getChild","commandName","formatBlock","getCellLocation","afterInit","getSelectionAffectedTableCells","_suggestionFactory","end","requires","locale","setTableRowHeader","commands","stop","item","removeClass","addClass","childCount","ck-suggestion-marker--active","data-suggestion","_splitMarkerName","headingRows","TableUtils","FORMAT_REGULAR_COLUMN","toViewElement","createPositionAfter","activeMarkers","TrackChangesEditing","document","get","bindElementToMarker","consume","unbindElementFromMarkerName","writer","selection","mapper","from","cell","_acceptFormatSuggestionCallbackFactory","markerName","downcastDispatcher","registerCustomCallback","highest","forceValue","value","last","format","FORMAT_HEADER_COLUMN","parent","commandParams","nodeBefore","first","editor","_descriptionFactory","enableCommand","includes","options","markBlockFormat","markerNameToElements","plugins","createRange","nodeAfter","createTableWalker","*Format:* %0","accept"];var Gx,Hx;Gx=Ux,Hx=471,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const zx=function(t,e){return Ux[t-=0]};class Vx extends t.Plugin{static get[zx("0x44")](){return[wx]}[zx("0x40")](){const t=this[zx("0x1a")];if(!t[zx("0x21")].has(zx("0x30")))return;const e=t[zx("0x45")],n=t.plugins.get(zx("0x1")),o=t.plugins[zx("0x3")](zx("0x51")),s=t[zx("0x21")][zx("0x3")](wx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n._splitMarkerName(r[zx("0xd")]),c=n[zx("0x31")](a);if(!c.data||zx("0x2e")!=c[zx("0x2f")].commandName)return;if(r[zx("0x49")])return void s[zx("0x48")]();if(!i[zx("0x34")][zx("0x5")](r[zx("0x2b")],s[zx("0x35")]))return;const l=r[zx("0x2b")][zx("0x2c")][zx("0x23")],u=r[zx("0x2b")][zx("0x43")][zx("0x18")],d=l[zx("0x16")][zx("0x16")],{column:g}=o[zx("0x3f")](l),{column:m}=o.getCellLocation(u);for(let s=g;s<=m;s++){const c=o[zx("0x24")](d,{column:s,includeAllSlots:!1});for(const o of c){const s=o[zx("0xb")],c=i[zx("0x9")][zx("0x53")](s);i[zx("0x7")][zx("0x4b")]("ck-suggestion-marker-"+x,c),e&&i[zx("0x7")].setAttribute(zx("0x4e"),a,c),i[zx("0x9")][zx("0x4")](c,r[zx("0xd")]),t&&(n[zx("0x0")][zx("0x1d")](r[zx("0xd")])?i[zx("0x7")][zx("0x4b")](zx("0x4d"),c):i[zx("0x7")].removeClass("ck-suggestion-marker--active",c))}}}}n[zx("0x1c")](zx("0x46"),((e,s)=>{const r=o[zx("0x41")](t[zx("0x3b")][zx("0x2")][zx("0x8")]),i=o.getRowIndexes(r),x=r[0][zx("0x36")]("table"),a=x[zx("0x38")](zx("0x50"))||0,c=s&&null!==s[zx("0x11")]?s[zx("0x11")]:!t[zx("0x47")][zx("0x3")](zx("0x46"))[zx("0x12")],l=c?i[zx("0x13")]:i[zx("0x19")],u=x[zx("0x3c")](l);let d;if(c){const e=x[zx("0x3c")](a);if(u[zx("0x33")]<e[zx("0x33")])return;d=t[zx("0x3b")][zx("0x22")](t[zx("0x3b")].createPositionBefore(e[zx("0x3c")](0)),t.model.createPositionAfter(u[zx("0x3c")](u[zx("0x4c")]-1)))}else{const e=x[zx("0x3c")](a-1);if(!e)return;d=t[zx("0x3b")].createRange(t[zx("0x3b")][zx("0x29")](u[zx("0x3c")](0)),t[zx("0x3b")].createPositionAfter(e[zx("0x3c")](e[zx("0x4c")]-1)))}t[zx("0x3b")][zx("0x37")]((()=>{n.markBlockFormat(d,{commandName:zx("0x46"),commandParams:[{forceValue:c}]},[],"setTableRowHeader")}))})),n[zx("0x1c")](zx("0x2e"),((e,o)=>{const s=t[zx("0x21")][zx("0x3")](zx("0x51")),r=s.getSelectionAffectedTableCells(t[zx("0x3b")][zx("0x2")][zx("0x8")]),i=s[zx("0x2a")](r),x=r[0][zx("0x36")]("table"),a=x.getAttribute("headingColumns")||0,c=o&&null!==o.forceValue?o[zx("0x11")]:!t.commands[zx("0x3")]("setTableColumnHeader").value;let l;const u=x[zx("0x3c")](0),d=c?i[zx("0x13")]:i.first,g=s[zx("0x24")](x,{startRow:0,column:d,includeAllSlots:!1}),m=Array[zx("0xa")](g)[0][zx("0xb")];if(c){const e=u.getChild(a);if(m.isBefore(e))return;l=t[zx("0x3b")].createRange(t[zx("0x3b")][zx("0x29")](e),t[zx("0x3b")].createPositionAfter(m))}else{const e=u[zx("0x3c")](a-1);if(!e)return;l=t[zx("0x3b")][zx("0x22")](t[zx("0x3b")][zx("0x29")](m),t[zx("0x3b")][zx("0x54")](e))}t[zx("0x3b")][zx("0x37")]((()=>{n[zx("0x1f")](l,{commandName:"setTableColumnHeader",commandParams:[{forceValue:c}]},[],zx("0x2e"))}))})),t.editing[zx("0xe")].on("addMarker:suggestion",r(),{priority:zx("0x10")}),t[zx("0x2f")][zx("0xe")].on(zx("0x39"),((t,e,n)=>{n[zx("0x1e")][zx("0x2d")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:zx("0x10")}),t[zx("0x27")][zx("0xe")].on("removeMarker:suggestion",((t,e,o)=>{const{type:s,id:r}=n[zx("0x4f")](e[zx("0xd")]),i=n.getSuggestion(r);if(!i[zx("0x2f")]||"setTableColumnHeader"!=i[zx("0x2f")].commandName)return;const x=o.mapper[zx("0x20")](e.markerName);if(x)for(const t of x)o[zx("0x7")][zx("0x4a")](zx("0x3a")+s,t),o[zx("0x7")][zx("0x4a")](zx("0x4d"),t),o[zx("0x7")][zx("0x28")](zx("0x4e"),t),o.mapper[zx("0x6")](t,e[zx("0xd")])}),{priority:zx("0x10")}),n[zx("0x1b")].registerDescriptionCallback((t=>{const{data:n}=t;if(n){if("setTableRowHeader"==n[zx("0x3d")]){const t=n[zx("0x17")][0][zx("0x11")];return o(Yo(e,t?zx("0x32"):"FORMAT_REGULAR_ROW"))}if(zx("0x2e")==n[zx("0x3d")]){const t=n[zx("0x17")][0].forceValue;return o(Yo(e,zx(t?"0x15":"0x52")))}}function o(t){return{type:zx("0x14"),content:Yo(e,zx("0x25"),t)}}}));const i=s[zx("0xc")]();n[zx("0x42")].registerCustomCallback("formatBlock",zx("0x46"),zx("0x26"),i),n._suggestionFactory[zx("0xf")](zx("0x3e"),zx("0x2e"),zx("0x26"),i)}}const Wx=["editingDowncast","schema","markers","insertion","rows","markerAttributes","editing","wrap","change","getRanges","position","registerCustomCallback","fill","tableCell","getAllAdjacentSuggestions","unwrap","markMultiRangeInsertion","element","getAttributes","getRowIndexes","markerToHighlight","getChildren","start","value","listenTo","getRows","endColumn","registerDescriptionCallback","redo","createTableWalker","paragraph","columnInsertionRanges","model","suggestion:formatBlock:tablePasteCell","last","TrackChangesEditing","nextSibling","insert","cells","Users","row","reduce","getMarkers","deletionRanges","getColumnIndexes","some","getChild","tablePasteCell","suggestionLoaded","getTableIfOnlyTableInContent","createRangeIn","ck-suggestion-marker-insertion","column","remove","tableCellSuggestion","selection","deletion","setAttributes","isEmpty","previous","clipboardOutput","options","createElement","attributes","findAncestor","getShiftedBy","length","cell","from","tablePasteRow","insertColumns","containsRange","set","elementToElement","getRange","rootName","tablePaste","suggestionUnloaded","discard","rowInsertionIndexes","trackChanges","tableCellBorderColor","ck-suggestion-marker--active","$graveyard","_replaceTableSlotCell","formatBlock","fromEntries","hasSuggestion","endRow","add","type","filter","forceDefaultExecution","get","getSuggestion","root","join","tableCellVerticalAlignment","afterInit","subType","stop","tablePasteColumn","table","tableCellBorderStyle","isInContent","createRangeOn","first","has","view","newRange","author","suggestion","removeMarker","return","getColumns","ck-suggestion-marker","columnInsertionIndexes","end","activeMarkers","getContainedElement","getItems","tableCellHorizontalAlignment","createRange","every","differ","getChangedMarkers","removeMarkers","commands","plugins","getSuggestionCallback","_createdBatches","_tablePostFixingSubtypes","tablePasteChainId","registerPostFixer","getChanges","getSuggestions","markMultiRangeDeletion","nodeAfter","low","accept","getSelectionAffectedTableCells","push","for","map","oldRange","_splitMarkerName","tableCellBackgroundColor","high","includes","TableClipboard","suggestion-td","startsWith","document","name","_getCoordsForCells","markerName","rowInsertionRanges","entries","find","showSuggestionHighlights","documentSelection","setAttribute","_suggestionFactory","_descriptionFactory"];var Kx,qx;Kx=Wx,qx=414,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Wx[t-=0]},$x=["tableCellBorderWidth",Xx("0x9f"),Xx("0x11"),Xx("0x23"),Xx("0xb"),Xx("0x3c"),"tableCellPadding"],Jx=Object[Xx("0x0")]($x[Xx("0x39")]((t=>[t,null])));class Qx extends t.Plugin{static get requires(){return[wx]}[Xx("0xc")](){const t=this.editor;if(!t.plugins[Xx("0x15")](Xx("0x3f")))return;const n=t.plugins[Xx("0x7")](Xx("0x71")),o=t[Xx("0x2a")][Xx("0x7")]("TableUtils"),s=t[Xx("0x2a")][Xx("0x7")](wx),r=t[Xx("0x2a")][Xx("0x7")]("TableClipboard");s[Xx("0x2d")][Xx("0x37")]("tablePasteRow","tablePasteColumn"),t[Xx("0x6e")][Xx("0x4f")].register("tableCellSuggestion",{allowIn:Xx("0x5b"),allowContentOf:Xx("0x5b"),isLimit:!0}),t.conversion[Xx("0x97")]({model:"tableCellSuggestion",view:Xx("0x40")});let i=null;t[Xx("0x6e")].on("insertContent",((s,x)=>{const[a,c]=x,l=x[x[Xx("0x90")]-1];l&&l[Xx("0x6")]||n._isForcedDefaultExecutionBlock||this.editor[Xx("0x29")][Xx("0x7")](Xx("0x9e"))[Xx("0x65")]&&function(t,e,n,o,s){if(e&&!e.is(Xx("0x4a")))return!1;const r=s[Xx("0x7f")](t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o[Xx("0x36")](n[Xx("0x42")][Xx("0x85")]);if(!i[Xx("0x90")])return!1;const x=i[0].findAncestor(Xx("0x10")),a=o[Xx("0x61")](i),c=o[Xx("0x7a")](i),l={startRow:a[Xx("0x14")],endRow:a[Xx("0x70")],startColumn:c[Xx("0x14")],endColumn:c[Xx("0x70")]};return 1==i[Xx("0x90")]&&(l[Xx("0x2")]+=o[Xx("0x67")](r)-1,l[Xx("0x68")]+=o[Xx("0x1c")](r)-1),Yx(x,l,o)}(a,c,t.model,o,r)&&(s[Xx("0xe")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Xx("0x6e")].change((()=>{t[Xx("0x6e")].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[Xx("0x90")]&&n[Xx("0x5e")](s,Xx("0x93"),{tablePasteChainId:o}),r[Xx("0x90")]&&n[Xx("0x5e")](r,Xx("0xf"),{tablePasteChainId:o}),a[Xx("0x90")]&&n[Xx("0x5e")](a,Xx("0x9a"),{tablePasteChainId:o,skipNestingCheck:!0}),c.length&&n[Xx("0x32")](c,Xx("0x9a"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n.markMultiRangeBlockFormat(l[Xx("0x39")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Xx("0x7d"),{tablePasteChainId:o});if(u){const e=u[Xx("0x78")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[Xx("0x6e")][Xx("0x13")](o),i=e[Xx("0x48")]((t=>t[Xx("0x98")]().isEqual(r)));i&&n[Xx("0x37")]([i.name,s])}n[Xx("0x90")]&&u[Xx("0x4b")]("markerAttributes",Object[Xx("0x0")](n))}i=null})))}),{priority:e.priorities[Xx("0x3d")]+10}),t[Xx("0x2a")].get(Xx("0x3f")).on(Xx("0xa2"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t.stop();const r=n[Xx("0x91")],x=o,a=Zx(r),c=Zx(x);t[Xx("0x1b")]=r;let l=null,u=null;if(c||a)if(a&&!c){s.remove(r[Xx("0x7c")](0));for(const t of Array[Xx("0x92")](x.getChildren()))s[Xx("0x73")](t,r,Xx("0x1f"));const t=i[Xx("0x9d")][Xx("0x3e")](n[Xx("0x76")]),e=i[Xx("0x1e")][Xx("0x3e")](n[Xx("0x82")]);t||e||(l=s[Xx("0x80")](r))}else c&&!a&&(u=s[Xx("0x80")](r));else{const t=s.createElement(Xx("0x84")),e=s[Xx("0x8c")](Xx("0x84"));s[Xx("0x55")](s.createRangeIn(r),e),s[Xx("0x73")](t,r,0);for(const e of Array[Xx("0x92")](x[Xx("0x63")]()))s[Xx("0x73")](e,t,Xx("0x1f"));l=s[Xx("0x13")](t),u=s.createRangeOn(e)}const d=Array[Xx("0x92")](x[Xx("0x60")]())[Xx("0x5")]((([t])=>$x[Xx("0x3e")](t)));i[Xx("0x74")][Xx("0x37")]({element:r,attributes:d[Xx("0x90")]?Object[Xx("0x0")](d):null}),l&&i.insertionRanges.push(l),u&&i[Xx("0x79")][Xx("0x37")](u)}),{priority:Xx("0x3d")}),o.on(Xx("0x94"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r.columns||1;i[Xx("0x1e")]=new Array(a)[Xx("0x5a")](x)[Xx("0x39")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x6b")](s,{startColumn:x,endColumn:x+a-1}))i[Xx("0x6d")].push(t[Xx("0x6e")][Xx("0x13")](e))}),{priority:Xx("0x34")}),o.on("insertRows",((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x52")]||1;i[Xx("0x9d")]=new Array(a)[Xx("0x5a")](x)[Xx("0x39")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x6b")](s,{startRow:x,endRow:x+a-1}))i[Xx("0x46")][Xx("0x37")](t.model[Xx("0x13")](e))}),{priority:Xx("0x34")}),n[Xx("0x4d")][Xx("0x69")]((e=>{if(e[Xx("0xd")]&&e[Xx("0xd")][Xx("0x41")]("tablePaste"))return e.previous?{}:{type:Xx("0x51"),content:Yo(t.locale,"*Replace table cells*")}}));const x=()=>{};for(const t of[Xx("0x9a"),Xx("0xf"),"tablePasteRow",Xx("0x7d")])n[Xx("0x4c")][Xx("0x59")](Xx("0x51"),t,Xx("0xa"),x),n[Xx("0x4c")].registerCustomCallback(Xx("0x86"),t,"join",x);n[Xx("0x4c")].registerCustomCallback(Xx("0xa3"),Xx("0x7d"),Xx("0x9c"),x),n[Xx("0x4c")][Xx("0x59")](Xx("0xa3"),Xx("0x7d"),Xx("0x35"),((e,n,o)=>{const s=e.map((t=>t.getContainedElement()))[Xx("0x5")]((t=>t)),r=new Map(s.map((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Xx("0x74")])e&&r[Xx("0x96")](t,e);else if(o&&o[Xx("0x53")])for(const[e,n]of Object[Xx("0x47")](o[Xx("0x53")])){const o=t[Xx("0x6e")][Xx("0x50")][Xx("0x7")](e),s=o?o[Xx("0x98")]()[Xx("0x21")]():null;s&&r.set(s,n)}t[Xx("0x6e")][Xx("0x56")]((t=>{for(const[e,n]of r)t[Xx("0x87")]({...Jx,...n},e)}))}));const a=(e,o)=>{n[Xx("0x4c")][Xx("0x59")](e,Xx("0x9a"),o,((s,r,i)=>{t[Xx("0x6e")][Xx("0x56")]((t=>{const x=[];for(const t of s){const e=t[Xx("0x64")][Xx("0x33")];e.is(Xx("0x5f"),Xx("0x84"))&&x.push(e)}n[Xx("0x4c")][Xx("0x2b")](e,null,o)(s,r,i);for(const e of x)Xx("0xa1")!=e[Xx("0x9")][Xx("0x99")]&&t[Xx("0x5d")](e)}))}))};a(Xx("0x51"),Xx("0x35")),a(Xx("0x51"),Xx("0x9c")),a(Xx("0x86"),Xx("0x35")),a(Xx("0x86"),Xx("0x9c")),n[Xx("0x4c")][Xx("0x59")](Xx("0x51"),"tablePasteRow",Xx("0x9c"),(t=>{const e=t[Xx("0x39")]((t=>t[Xx("0x21")]())),n=e[0][Xx("0x8e")]("table"),{minRow:r,maxRow:i}=s[Xx("0x44")](e);o.removeRows(n,{at:r,rows:i-r+1})})),n[Xx("0x4c")][Xx("0x59")](Xx("0x51"),Xx("0xf"),Xx("0x9c"),(t=>{const e=t[Xx("0x39")]((t=>t.getContainedElement())),n=e[0][Xx("0x8e")]("table"),{minColumn:r,maxColumn:i}=s[Xx("0x44")](e);o.removeColumns(n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Xx("0xd")]||!e.subType.startsWith(Xx("0x9a")))return;const o=e[Xx("0x8d")][Xx("0x2e")],s=n[Xx("0x31")]().filter((t=>t[Xx("0x12")]&&t[Xx("0x8d")]&&t[Xx("0x8d")][Xx("0x2e")]==o));s.length&&e[Xx("0x5c")]()[Xx("0x90")]!=s[Xx("0x90")]&&s[Xx("0x77")](((t,e)=>(t.next=e,e[Xx("0x89")]=t,e)))};function l(t,e=!0){const{id:o}=n[Xx("0x3b")](t.markerName),s=[Xx("0x1d"),Xx("0x81")],r=n[Xx("0x20")].includes(t[Xx("0x45")]);return r&&s[Xx("0x37")](Xx("0xa0")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Xx("0x7e"),c,{priority:Xx("0x3d")}),n.on(Xx("0x9b"),c,{priority:Xx("0x3d")}),t[Xx("0x6e")][Xx("0x42")][Xx("0x2f")]((()=>{let e=!1;const o=Array.from(t[Xx("0x6e")][Xx("0x42")][Xx("0x26")][Xx("0x27")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n._splitMarkerName(s);if(Xx("0x19")!=o||Xx("0x86")!=i||r[Xx("0x3a")])continue;if(!n[Xx("0x1")](x))continue;const a=n[Xx("0x8")](x)[Xx("0x57")](),c=t.plugins[Xx("0x7")](Xx("0x75")).me;for(const t of n[Xx("0x31")]())if(t.isInContent&&t[Xx("0x18")]==c&&"formatBlock"==t[Xx("0x4")]&&Xx("0x7d")==t[Xx("0xd")]&&t.getRanges()[Xx("0x25")]((t=>a[Xx("0x7b")]((e=>e[Xx("0x95")](t,!0))))))for(const n of t[Xx("0x5c")]())n[Xx("0x12")]&&(n[Xx("0x9c")](),e=!0)}return e})),t[Xx("0x6e")][Xx("0x42")][Xx("0x2f")]((e=>{const o=t.commands[Xx("0x7")](Xx("0x6a"));if(!o||!o[Xx("0x2c")].has(e.batch))return!1;let s=!1;const r=t.plugins[Xx("0x7")](Xx("0x75")).me,i=t[Xx("0x6e")][Xx("0x42")].differ[Xx("0x30")](),x=Array[Xx("0x92")](t[Xx("0x6e")].document[Xx("0x26")][Xx("0x27")]())[Xx("0x5")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n._splitMarkerName(t);return Xx("0x19")==o&&Xx("0x9a")==s&&i==r.id&&!e[Xx("0x3a")]}));for(const t of i){if(Xx("0x73")!=t[Xx("0x4")]||"tableCellSuggestion"!=t[Xx("0x43")]||1!=t[Xx("0x90")])continue;const n=e[Xx("0x24")](t.position,t[Xx("0x58")][Xx("0x8f")](1));if(!x[Xx("0x48")]((({data:t})=>t[Xx("0x17")].isEqual(n))))for(const{name:t,data:o}of x)if(n[Xx("0x95")](o[Xx("0x17")])){e.updateMarker(t,{range:n}),s=!0;break}}return s})),t.model[Xx("0x42")][Xx("0x2f")]((e=>{let o=!1;const s=t[Xx("0x2a")][Xx("0x7")](Xx("0x75")).me,r=n.getSuggestions()[Xx("0x5")]((t=>t[Xx("0x12")]&&t[Xx("0x18")]==s)),i=new Set,x=new Set;for(const t of r)if("tablePaste"==t[Xx("0xd")])for(const e of t[Xx("0x78")]()){const n=e.getRange()[Xx("0x21")]();if(n)if(n.is(Xx("0x5f"),"tableCellSuggestion")&&Zx(n)){t.removeMarker(e.name),i[Xx("0x3")](n),o=!0;const s=n[Xx("0x72")],r=n.previousSibling,a=s&&s.is("element","tableCellSuggestion"),c=r&&r.is(Xx("0x5f"),Xx("0x84"));a&&!i.has(s)&&x[Xx("0x3")](s),c&&!i[Xx("0x15")](r)&&x[Xx("0x3")](r)}else n.is(Xx("0x5f"),Xx("0x6c"))&&n[Xx("0x88")]&&(t[Xx("0x1a")](e[Xx("0x43")]),o=!0)}else if("tablePasteCell"==t[Xx("0xd")]){if(!t[Xx("0x8d")]||!t[Xx("0x8d")][Xx("0x2e")])continue;const e=t[Xx("0x8d")][Xx("0x53")];if(e&&Object.keys(e).length)continue;const n=t.attributes.tablePasteChainId;let s=!0,i=!0;for(const e of r)if(e.subType&&e[Xx("0xd")].startsWith(Xx("0x9a"))){if(!e[Xx("0x8d")][Xx("0x2e")]){i=!1;break}if(e.id!=t.id&&e[Xx("0x8d")][Xx("0x2e")]==n){s=!1;break}}i&&s&&(t[Xx("0x28")](),o=!0)}for(const t of i)e.remove(t);for(const t of x)e[Xx("0x5d")](t);return o})),t.conversion[Xx("0x38")](Xx("0x4e"))[Xx("0x62")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>l(t),converterPriority:Xx("0x3d")}),t.conversion[Xx("0x38")]("dataDowncast")[Xx("0x62")]({model:Xx("0x6f"),view:(t,e)=>e[Xx("0x8b")][Xx("0x49")]?l(t,!1):null,converterPriority:"high"});const u=t[Xx("0x54")][Xx("0x16")];this[Xx("0x66")](u[Xx("0x42")],Xx("0x8a"),((t,e)=>{const n=[];for(const t of u[Xx("0x80")](e.content)[Xx("0x22")]())t.is("element",Xx("0x40"))&&n[Xx("0x37")](t);u[Xx("0x56")]((t=>{for(const e of n)t.move(t[Xx("0x80")](e),t.createPositionBefore(e)),t[Xx("0x83")](e)}))}))}}function Zx(t){if(t.isEmpty)return!0;const e=t[Xx("0x7c")](0);return e.is(Xx("0x5f"),"paragraph")&&e.isEmpty}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Xx("0x6b")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["registerCustomCallback","resizeTable","selection","columnWidths","handleResizeTableWidthCommand","editor","registerDescriptionCallback","TrackChangesEditing","model","_suggestionFactory","plugins","getSuggestionCallback","*Format:* resize table","getAttribute","has","getTableColumnsWidths","change","handleSuggestionDescription","afterInit","commandParams","enableCommand","document","getSuggestions","get","getContainedElement","getSelectedElement","TableColumnResizeEditing","formatBlock","tableWidth","resizeColumnWidths","markBlockFormat","data","bind","subType","resizeTableWidth","discard","getColumnGroupElement"];var ea,na;ea=ta,na=370,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{[oa("0x12")](){if(!this.editor[oa("0xa")][oa("0xe")](oa("0x1a")))return;const t=this[oa("0x5")][oa("0xa")][oa("0x17")](oa("0x7"));t[oa("0x14")](oa("0x22"),this[oa("0x4")][oa("0x20")](this)),t[oa("0x14")](oa("0x1d"),this[oa("0x4")][oa("0x20")](this)),t[oa("0x9")][oa("0x0")](oa("0x1b"),oa("0x1"),"accept",t[oa("0x9")][oa("0xb")]("formatBlock",null,oa("0x23"))),t[oa("0x9")][oa("0x0")](oa("0x1b"),oa("0x1"),oa("0x23"),t._suggestionFactory[oa("0xb")](oa("0x1b"),null,"accept")),t._descriptionFactory[oa("0x6")](this.handleSuggestionDescription.bind(this))}[oa("0x4")](t,e){const n=this[oa("0x5")][oa("0xa")][oa("0x17")]("TrackChangesEditing"),o=this[oa("0x5")][oa("0xa")][oa("0x17")]("TableColumnResizeEditing"),s=e.table||this[oa("0x5")][oa("0x8")][oa("0x15")][oa("0x2")][oa("0x19")]();this[oa("0x5")][oa("0x8")][oa("0x10")]((()=>{const r=o[oa("0x24")](s);let i=r?o[oa("0xf")](r):null,x=s[oa("0xd")](oa("0x1c"))||null;const a=e[oa("0x1c")]||x,c=e[oa("0x3")]||i,l=this[oa("0x5")][oa("0xa")].get("Users").me;for(const t of n[oa("0x16")]()){const e=t[oa("0x18")]();if(oa("0x1")===t[oa("0x21")]&&e===s){t.author!==l&&t[oa("0x23")]();const e=t[oa("0x1f")][oa("0x13")];x=e[0][oa("0x1c")],i=e[0][oa("0x3")];break}}t({table:s,tableWidth:a,columnWidths:c}),n[oa("0x1e")](s,{commandName:oa("0x22"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:"resizeTable"},[],oa("0x1"))}))}[oa("0x11")](t){const{data:e}=t;if(e&&oa("0x1")===e.formatGroupId){const t=oa("0xc");return{type:"format",content:Yo(this[oa("0x5")].locale,t)}}}}const ra=["insertTemplate","get","Template","plugins","enableCommand","editor","has","afterInit"];var ia,xa;ia=ra,xa=412,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{[aa("0x3")](){const t=this[aa("0x1")];t.plugins[aa("0x2")](aa("0x6"))&&t[aa("0x7")][aa("0x5")]("TrackChangesEditing")[aa("0x0")](aa("0x4"))}}const la=["insertTableOfContents","afterInit","TrackChangesEditing","get","commands","ELEMENT_TABLE_OF_CONTENTS","registerElementLabel","locale","_descriptionFactory","plugins"];var ua,da;ua=la,da=236,function(t){for(;--t;)ua.push(ua.shift())}(++da);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x5")](){const t=this.editor;if(!t[ga("0x8")].get(ga("0x4")))return;t[ga("0x3")].get(ga("0x6")).enableCommand(ga("0x4"));const e=t[ga("0x3")][ga("0x7")](ga("0x6")),n=t[ga("0x1")];e[ga("0x2")][ga("0x0")]("tableOfContents",(t=>Yo(n,ga("0x9"),t)))}}const fa=["document","nodeBefore","createRange","end","isEqual","from","title-content","getNearestSelectionRange","model","ELEMENT_TITLE","element","Title","newRange","_descriptionFactory","get","getChangedMarkers","isTouching","_splitMarkerName","plugins","locale","editor","schema","start","TrackChangesEditing"];var ha,ba;ha=fa,ba=415,function(t){for(;--t;)ha.push(ha.shift())}(++ba);const pa=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{afterInit(){const t=this[pa("0xd")];if(!t.plugins.has(pa("0x4")))return;const e=t[pa("0xb")][pa("0x7")](pa("0x10"));e[pa("0x6")].registerElementLabel(pa("0x17"),(()=>Yo(t[pa("0xc")],pa("0x2")))),t[pa("0x1")][pa("0x11")].registerPostFixer((n=>{let o=!1;const s=Array[pa("0x16")](t[pa("0x1")][pa("0x11")].differ[pa("0x8")]());for(const{name:r,data:i}of s){const{group:s}=e[pa("0xa")](r);if("suggestion"!==s||!i[pa("0x5")])continue;const x=i[pa("0x5")],a=x[pa("0x14")][pa("0x12")];if(!a||!a.is(pa("0x3"),pa("0x17")))continue;if(!x[pa("0xf")][pa("0x9")](x.end))continue;const c=t[pa("0x1")][pa("0xe")][pa("0x0")](x[pa("0x14")],"forward");if(c&&c.isCollapsed){const t=n[pa("0x13")](x.start,c.start);t[pa("0x15")](x)||(n.updateMarker(r,{range:t}),o=!0)}o||(n.removeMarker(r),o=!0)}return o}))}}const _a=["undo","UndoEditing","editor","redo","has","enableCommand","TrackChangesEditing","plugins"];var Ta,Ca;Ta=_a,Ca=258,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{afterInit(){const t=this[ya("0x0")],e=t[ya("0x5")].get(ya("0x4"));t[ya("0x5")][ya("0x2")](ya("0x7"))&&(e.enableCommand(ya("0x6")),e[ya("0x3")](ya("0x1")))}}const Aa=["TableCaptionEditing","plugins","afterInit","enableCommand","requires","get","toggleTableCaption","editor","has","TrackChangesEditing"];var va,Ra;va=Aa,Ra=432,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("0x2")](){return[wx]}[Sa("0x0")](){const t=this[Sa("0x5")];t[Sa("0x9")][Sa("0x6")](Sa("0x8"))&&t[Sa("0x9")][Sa("0x3")](Sa("0x7"))[Sa("0x1")](Sa("0x4"))}}const La=["change","getSelectedBlocks","handleListStartCommand","reversed","handleDescriptions","document","replace","filter","*Format:* set order to regular","locale","listStart","listStyle","afterInit","DocumentListUtils","listReversed","expandListBlocksToCompleteList","isListItemBlock","commandParams","TrackChangesEditing","*Format:* set order to reversed","DocumentListPropertiesEditing","push","plugins","config","startIndex","getListTypeFromListStyleType","toUpperCase","get","model","commandName","getAttribute","markMultiRangeBlockFormat","type","has","registerDescriptionCallback","bind","ELEMENT_","numbered","enableCommand","_getSuggestionBlocksForListStyle","handleListStyleCommand","selection","styles","_getTranslationKeyForListStyle","_getSuggestionBlocks","_descriptionFactory","list.properties","format","from","handleListReversedCommand","editor","*Change to:* %0","*Format:* set start index to %0"];var Na,Ma;Na=La,Ma=448,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{[wa("0x29")](){if(!this[wa("0x1a")][wa("0x33")][wa("0x9")](wa("0x31")))return;const t=this[wa("0x1a")][wa("0x34")].get(wa("0x16")),e=this[wa("0x1a")][wa("0x33")][wa("0x3")](wa("0x2f"));t[wa("0x12")]&&e[wa("0xe")](wa("0x28"),this[wa("0x10")][wa("0xb")](this)),t.reversed&&e[wa("0xe")](wa("0x2b"),this[wa("0x19")][wa("0xb")](this)),t[wa("0x0")]&&e.enableCommand(wa("0x27"),this[wa("0x1f")][wa("0xb")](this)),e[wa("0x15")][wa("0xa")](this[wa("0x21")][wa("0xb")](this))}[wa("0x10")](t,e={}){const n=this[wa("0x1a")][wa("0x33")][wa("0x3")](wa("0x2f")),o=this[wa("0xf")]();this.editor[wa("0x4")][wa("0x1d")]((()=>{n[wa("0x7")](o,{commandName:wa("0x28"),commandParams:[{type:e[wa("0x8")]}],formatGroupId:wa("0x28")})}))}[wa("0x19")](t,e={}){const n=this[wa("0x1a")][wa("0x33")][wa("0x3")]("TrackChangesEditing"),o=this[wa("0x1a")].plugins[wa("0x3")](wa("0x2a")),s=this[wa("0x14")]((t=>o.isListItemBlock(t)&&wa("0xd")===t[wa("0x6")]("listType")));null!==s&&this.editor[wa("0x4")][wa("0x1d")]((()=>{n[wa("0x7")](s,{commandName:wa("0x2b"),commandParams:[{reversed:e[wa("0x20")]}],formatGroupId:wa("0x2b")})}))}[wa("0x1f")](t,e={}){const n=this[wa("0x1a")][wa("0x33")].get(wa("0x2f")),o=this[wa("0x1a")][wa("0x33")][wa("0x3")](wa("0x2a")),s=this._getSuggestionBlocks((t=>o[wa("0x2d")](t)&&wa("0xd")===t.getAttribute("listType")));null!==s&&this.editor.model[wa("0x1d")]((()=>{n[wa("0x7")](s,{commandName:wa("0x27"),commandParams:[{startIndex:e[wa("0x0")]}],formatGroupId:wa("0x27")})}))}[wa("0x21")](t){const e=this.editor[wa("0x26")],{data:n}=t;if(!n)return;let o,s;switch(n[wa("0x5")]){case wa("0x28"):o=wa("0x1b"),s={type:"format",content:Yo(e,o,Yo(e,this._getTranslationKeyForListStyle(n[wa("0x2e")][0][wa("0x8")])))};break;case wa("0x2b"):o=n[wa("0x2e")][0][wa("0x20")]?wa("0x30"):wa("0x25"),s={type:wa("0x17"),content:Yo(e,o)};break;case wa("0x27"):o=wa("0x1c"),s={type:wa("0x17"),content:Yo(e,o,n.commandParams[0].startIndex)}}return s}[wa("0xf")](){const t=this[wa("0x1a")][wa("0x33")][wa("0x3")]("DocumentListUtils");let e=Array[wa("0x18")](this[wa("0x1a")].model[wa("0x22")][wa("0x11")].getSelectedBlocks());return e.push(...t[wa("0x2c")](e)),e=[...new Set(e)],e}[wa("0x14")](t){const e=this[wa("0x1a")][wa("0x33")][wa("0x3")](wa("0x2a"));let n=Array[wa("0x18")](this[wa("0x1a")][wa("0x4")][wa("0x22")][wa("0x11")][wa("0x1e")]())[wa("0x24")](t);if(!n.length)return null;n=e.expandListBlocksToCompleteList(n);const o=[];for(const t of n)e.isFirstBlockOfListItem(t)&&o[wa("0x32")](t);return o}[wa("0x13")](t){return wa("0xc")+this[wa("0x1a")][wa("0x33")][wa("0x3")]("DocumentListPropertiesUtils")[wa("0x1")](t)[wa("0x2")]()+"_LIST_"+t[wa("0x2")]()[wa("0x23")](/-/g,"_")}}const Fa=["nodeAfter","getSuggestions","accept","afterInit","batch","has","tableCellBorderWidth","tableAlignment","*Format:* change table properties","handleDiscardAction","tableHeight","tableCellPadding","registerCustomCallback","_getSuggestion","subType","getSelectionAffectedTableCells","TrackChangesEditing","start","setAttribute","tableProperties","tableCellHeight","tableCellProperties","getSuggestionCallback","TablePropertiesEditing","findAncestor","tableCellBackgroundColor","tableWidth","getFirstPosition","join","data","*Format:* change table cell properties","format","tableBorderColor","tableBorderWidth","discard","handleSuggestionDescription","commandParams","get","table","TableCellPropertiesEditing","selection","enableCommand","TrackChangesTableProperties","plugins","document","_suggestionFactory","model","tableBackgroundColor","editor","formatBlock","_handlePropertyChange","tableBorderStyle","locale"];var Pa,Da;Pa=Fa,Da=247,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("0x25")]=[Ba("0x32"),Ba("0x10"),Ba("0x33"),Ba("0x19"),Ba("0x2c"),Ba("0x1c"),Ba("0xc")],this[Ba("0x27")]=["tableCellBorderColor","tableCellBorderStyle",Ba("0x18"),Ba("0x1d"),"tableCellWidth",Ba("0x26"),Ba("0x2b"),"tableCellHorizontalAlignment","tableCellVerticalAlignment"]}static get pluginName(){return Ba("0x7")}[Ba("0x15")](){const t=this.editor[Ba("0x8")][Ba("0x2")](Ba("0x22"));if(this[Ba("0xd")][Ba("0x8")][Ba("0x17")](Ba("0x29"))){for(const e of this.tableProperties)t[Ba("0x6")](e,((t,n)=>{const o=this[Ba("0xd")].model[Ba("0x9")][Ba("0x5")][Ba("0x2d")]()[Ba("0x2a")](Ba("0x3"));this._handlePropertyChange(e,[o],this[Ba("0x25")],Ba("0x25"),t,n)}));t[Ba("0xa")].registerCustomCallback(Ba("0xe"),Ba("0x25"),Ba("0x14"),t[Ba("0xa")].getSuggestionCallback("formatBlock",null,Ba("0x34"))),t._suggestionFactory[Ba("0x1e")]("formatBlock",Ba("0x25"),Ba("0x34"),((t,e)=>this[Ba("0x1b")](this.tableProperties,t,e))),t[Ba("0xa")].registerCustomCallback(Ba("0xe"),Ba("0x25"),Ba("0x2e"),(()=>!1))}if(this[Ba("0xd")][Ba("0x8")][Ba("0x17")](Ba("0x4"))){for(const e of this[Ba("0x27")])t[Ba("0x6")](e,((t,n)=>{const o=this.editor[Ba("0x8")][Ba("0x2")]("TableUtils")[Ba("0x21")](this[Ba("0xd")][Ba("0xb")][Ba("0x9")][Ba("0x5")]);this._handlePropertyChange(e,o,this[Ba("0x27")],Ba("0x27"),t,n)}));t[Ba("0xa")][Ba("0x1e")](Ba("0xe"),Ba("0x27"),"accept",t[Ba("0xa")][Ba("0x28")]("formatBlock",null,"discard")),t[Ba("0xa")][Ba("0x1e")](Ba("0xe"),Ba("0x27"),Ba("0x34"),((t,e)=>this[Ba("0x1b")](this[Ba("0x27")],t,e))),t[Ba("0xa")][Ba("0x1e")](Ba("0xe"),Ba("0x27"),Ba("0x2e"),(()=>!1))}t._descriptionFactory.registerDescriptionCallback((t=>this[Ba("0x0")](t)))}[Ba("0xf")](t,e,n,o,s,r){const i=this[Ba("0xd")][Ba("0x8")][Ba("0x2")](Ba("0x22"));this.editor[Ba("0xb")].enqueueChange(r[Ba("0x16")],(()=>{for(const t of e)if(this[Ba("0x1f")](t,o))s(r);else{const e={};for(const o of n){const n=t.getAttribute(o);void 0!==n&&(e[o]=n)}s(r),i.markBlockFormat(t,{commandParams:[e]},[],o)}}))}[Ba("0x1b")](t,e,n){const o=e[0][Ba("0x23")][Ba("0x12")],s=n[Ba("0x1")][0];this[Ba("0xd")][Ba("0xb")].change((e=>{for(const n of t)void 0!==s[n]?e[Ba("0x24")](n,s[n],o):e.removeAttribute(n,o)}))}[Ba("0x0")](t){if(t[Ba("0x2f")])switch(t[Ba("0x20")]){case"tableProperties":return{type:Ba("0x31"),content:Yo(this[Ba("0xd")][Ba("0x11")],Ba("0x1a"))};case Ba("0x27"):return{type:Ba("0x31"),content:Yo(this[Ba("0xd")][Ba("0x11")],Ba("0x30"))}}}[Ba("0x1f")](t,e){const n=this[Ba("0xd")][Ba("0x8")][Ba("0x2")]("TrackChangesEditing");for(const o of n[Ba("0x13")]({skipNotAttached:!0})){const n=o.getContainedElement();if(o[Ba("0x20")]===e&&n===t)return o}return null}}const Ua=["formatInline:chain","containsPosition","upcast","for","isObject","trackChangesCommand","markerToHighlight","getSuggestionCallback","isInsideObject","formatBlock:accept","removeComment","getRange","deletion","batch","containsRange","track-changes-user-not-found","nodeBefore","stop","type","markMultiRangeDeletion","some","_defaultCallbacks","ready","rethrowUnexpectedError","notReady","editing","delete","authoredAt","accepted","hasCommentThread","createPositionAt","clone","track-changes-command-not-found","_getAuthorFromId","has","getAllAdjacentSuggestions","getItems","options","_breakSuggestionMarker","discardAllSuggestions","pluginName","push","attributes","elementStart","default","_getSuggestionData","insertion","always","high","activeMarkers","listenTo","_splitMarkerName","parent","subType","enableCommand","_enabledCommands","every","newRange","formatInline","differ","plugins","createSelection","isMultiRange","Users","deletion:chain","addMarkerName","catch","enqueueChange","markDeletion","containsItem","_suggestions","formatBlock:chain","setSelection","getShiftedBy","removeMarker","deletion:","highest","isEqual","oldRange","addMarker","formatInline:discard","change:data","marker-count","acceptSuggestion","howMany","_createSuggestion","mapper","@external","split","authorName","accept","track-changes-suggestion-data-mismatch","define","_commentsRepository","CommentsRepository","fetchCommentThread","markerToData","rootName","open","track-changes-suggestion-not-found","containsRangeInObject","_onDiscard","getIntersection","group","commentThread","commands","config","suggestion-type","addClass","removeClass","previous","getNearestSelectionRange","resolve","get","unbind","getDifference","detach","getFirstMarker","suggestionLoaded","setAttribute","author","formatBlock:","ck-suggestion-marker--active","length","insertion:","update:suggestion","_adapter","suggestionChanged","join","values","elementEnd","elementToElement","_editor","init","consume","change","buildSuggestion","start","isAfter","isRemovable","locale","execute","multipleBlocks","suggestion:","removeMarker:suggestion:formatBlock","map","isNextTo","addSuggestion","moveTargetPosition","containerElement","getRanges","move","schema","fromRange","_refreshSuggestionsChain","_addThreadToSuggestion","bindElementToMarker","formatInline:","formatBlock:join","_checkSuggestionCorrectness","suggestionUnloaded","fire","hasSuggestion","addHighlight","_joinWithAdjacentSuggestions","deleteContent","registerPostFixer","isBlock","normal","markers","getMarkers","root","acceptSelectedSuggestions","stopListening","_getExternalAuthor","$graveyard","commandName","getSuggestion","enableReadOnlyMode","createdAt","acceptAllSuggestions","createPositionBefore","clear","sort","collaboration.channelId","insertion:join","change:_saved","unbindElementFromMarkerName","isDocumentOperation","formatBlock","editor","addUser","markMultiRangeBlockFormat","createRange","_removeSuggestion","nodeAfter","dataReady","isInContent","trackChanges","getLastMatchingPosition","forward","getCustomProperty","position","_rangeIsInLocalUserInsertion","targetPosition","track-changes-adapter-already-set","_handleNewSuggestionMarker","trackChanges.trackFormatChanges","ck-suggestion-marker-formatBlock","backward","includes","_setSuggestionRange","isSelectable","data","from","conversion","consumable","never","isTouching","addRange","_mergeNestedSuggestions","filter","insertion:accept","deletion:accept","item","markerName","isCollapsed","head","deletion:discard","creator","formatGroupId","_isForcedDefaultExecutionBlock","suggestion","_joinSuggestions","_saved","document","addCommentThread","model","_model","isUndo","$textProxy","applyOperation","widget","next","name","rejected","_findSuggestions","addSuggestionData","end","getAttribute","range","refresh","ck-suggestion-marker-","markBlockFormat","getAncestors","multi","set","getSuggestions","_updateSuggestionData","_setSuggestionData","selection","PendingActions","discardSelectedSuggestions","isAtStart","isLocal","originalSuggestionId","ck-suggestion-marker","discardSuggestion","getChangedMarkers","isBefore","_suggestionFactory","toJSON","removeAttribute","size","setTo","updateMarker","_cutOutSuggestionMarker","element","before","track-changes-adapter-missing-getsuggestion","writer","showSuggestionHighlights","updateSuggestion","getMultiRangeId","markMultiRangeInsertion","isOwn","low","skipNestingCheck","value","splice","hasComments","getUser","registerCustomCallback","splitPosition","forceDefaultExecution","PENDING_ACTION_SUGGESTION","_suggestionState","removed","after","change:activeMarkers","getFirstRange","add","data-suggestion","_registerDefaultCallbacks","requires","dataDowncast","addMarker:suggestion:formatBlock","markerReady","isAtEnd","_customCallbacks","_addSuggestionMarker","getChanges","discard","isIntersectingWithRange","trackChanges.mergeNestedSuggestions","markInsertion","isLimit","_trackFormatChanges","then","removeMarkers","remove","substr","$marker"];var Ga,Ha;Ga=Ua,Ha=201,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Va extends t.Plugin{static get[za("0x67")](){return[za("0xd8"),r.Users,t.PendingActions,cs,Cs,Rs,ws,Bs,Vs,Js,er,Oa,xr,dr,pr,yr,Lr,Pr,Gr,Kr,Qr,ni,xi,di,bi,Ci,Ri,Oi,ji,Vi,$i,tx,ix,dx,bx,yx,Sx,wx,jx,Vx,Ia,Qx,sa,ma,ja,ca,Ea,ka]}static get[za("0xa2")](){return"TrackChangesEditing"}constructor(t){function e(t){return t.map((t=>String.fromCharCode(t)))[za("0xfa")]("")}super(t),this[za("0x37")]("activeMarkers",[]),this.on(za("0x62"),((e,n,o,s)=>{this[za("0x25")][za("0x101")]((()=>{for(const e of[...s,...o])this[za("0x25")].markers[za("0x9c")](e)&&t[za("0x93")].reconvertMarker(e)}))})),this._descriptionFactory=new ss(this[za("0x138")][za("0x24")][za("0x112")],this[za("0x138")][za("0x106")]),this[za("0xf8")]=null,this[za("0x45")]=new Wa(this[za("0x138")]),this[za("0xc0")]=new Map,this[za("0xd7")]=t[za("0xb6")].get("CommentsRepository"),this._enabledCommands=new Set,this._model=this[za("0x138")][za("0x24")],this[za("0x5f")]=new WeakMap,this._isForcedDefaultExecutionBlock=!1,t.config[za("0xd6")]("trackChanges.trackFormatChanges",za("0xa6")),this[za("0x74")]=t[za("0xe4")][za("0xeb")](za("0x6")),t[za("0xe4")][za("0xd6")](za("0x71"),!0),this[za("0x13")]=t.config[za("0xeb")](za("0x71")),this[za("0x7f")]=new d(t,this[za("0xb1")]),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,54,50,50])}[za("0xff")](){const t=this[za("0x138")];t[za("0xe")][za("0x7d")]("editingDowncast")[za("0x80")]({model:za("0x1f"),view:t=>{const{id:e,type:n}=this[za("0xad")](t.markerName),o=[za("0x41"),za("0x33")+n];let s=3e3;return this[za("0xab")][za("0x9")](t[za("0x18")])&&(o[za("0xa3")](za("0xf4")),s=3010),"deletion"==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[za("0xe")][za("0x7d")](za("0x68")).add((e=>{e.on("addMarker:suggestion",((e,n,o)=>{if(!o[za("0x9f")][za("0x50")])return;const s=n[za("0x17")];if(!s)return;const r=o[za("0xd0")].toViewElement(s);t.model[za("0x112")][za("0x7e")](s)&&r&&!r[za("0x0")](za("0x29"))&&r.is(za("0x10f"))&&(0,x.toWidget)(r,o[za("0x4f")])}),{priority:za("0xaa")})})),t[za("0xe")][za("0x7d")](za("0x68"))[za("0x80")]({model:za("0x1f"),view:(t,e)=>{if(!e[za("0x9f")].showSuggestionHighlights)return null;const{type:n}=this[za("0xad")](t[za("0x18")]);return{classes:[za("0x41"),za("0x33")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o.item)return;if(o[za("0x17")].is(za("0x3b")))return void s[za("0xf")][za("0x100")](o[za("0x17")],n[za("0x2b")]);const r=s[za("0xd0")].toViewElement(o[za("0x17")]);if(!o[za("0x17")].is(za("0x4c"))||!t[za("0x24")].schema.isBlock(o[za("0x17")])||r.getCustomProperty(za("0x11d")))return;const{id:i}=this._splitMarkerName(o[za("0x18")]);s[za("0x4f")][za("0xe6")]([za("0x41"),za("0x7")],r),s.writer[za("0xf1")](za("0x65"),i,r),s[za("0xd0")][za("0x116")](r,o[za("0x18")]),e&&(this[za("0xab")][za("0x9")](o[za("0x18")])?s.writer[za("0xe6")](za("0xf4"),r):s[za("0x4f")][za("0xe7")](za("0xf4"),r));for(const e of t[za("0x24")].createRangeIn(o[za("0x17")])[za("0x9e")]())s[za("0xf")].consume(e,n[za("0x2b")]);s[za("0xf")][za("0x100")](o[za("0x17")],n[za("0x2b")])};t[za("0xe")].for(za("0x68"))[za("0x64")]((t=>{t.on(za("0x69"),((t,e,o)=>{o.options.showSuggestionHighlights&&n({showActiveMarkers:!1})(t,e,o)}),{priority:za("0xc6")})})),t[za("0xe")][za("0x7d")](za("0x68"))[za("0xda")]({model:"suggestion",view:(t,e)=>e[za("0x9f")][za("0x50")]?null:{group:za("0x1f"),name:t[za("0x78")](11)}}),t[za("0xe")][za("0x7d")](za("0x7c"))[za("0xfd")]({view:{name:za("0x1f"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=za("0x109")+t.getAttribute(za("0xe5"))+":"+t.getAttribute("id");return t[za("0x30")]("marker-count")&&(n+=":"+t[za("0x30")](za("0xcc"))),e.createElement(za("0x79"),{"data-name":n})}}),t[za("0xe")][za("0x7d")]("upcast").dataToMarker({view:"suggestion"}),t[za("0xe")].for("editingDowncast").add((t=>{t.on(za("0x69"),n(),{priority:za("0xaa")})})),t[za("0xe")][za("0x7d")]("editingDowncast")[za("0x64")]((t=>{t.on(za("0x10a"),((t,e,n)=>{const o=n[za("0xd0")].markerNameToElements(e[za("0x18")]);if(o)for(const t of o)t.getCustomProperty("addHighlight")||(n.writer[za("0xe7")]([za("0x41"),za("0x7"),za("0xf4")],t),n[za("0x4f")][za("0x47")](za("0x65"),t),n.mapper[za("0x135")](t,e[za("0x18")]))}),{priority:za("0xaa")})})),t[za("0x24")][za("0x22")][za("0x120")]((e=>{let n=!1;const o=Array[za("0xd")](t[za("0x24")][za("0x22")][za("0xb5")][za("0x43")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[za("0xad")](x);if("suggestion"!==o)continue;const u=this[za("0xc0")][za("0xeb")](l);if(null!=a[za("0xb3")])if(za("0xb4")==c&&(n=n||Xa(a[za("0xb3")],x,e,t[za("0x24")].schema)),a[za("0xb3")][za("0x19")]||za("0x129")==a[za("0xb3")][za("0x125")][za("0xdb")]||"formatBlock"==c&&!Ja(a[za("0xb3")])||za("0x86")==c&&(qa(i=a[za("0xb3")])||(r=i)[za("0x103")].parent==r[za("0x2f")][za("0x8a")]&&r[za("0x103")][za("0x6b")]))e[za("0xc4")](x),n=!0;else{if(!u||!u[za("0x13f")])continue;s[za("0x64")](u)}}var r,i;return s[za("0x48")]>0&&(n=!!this[za("0x11e")](s)||n),n})),t[za("0x24")][za("0x22")].registerPostFixer((e=>{let n=!1;for(const o of t[za("0x24")][za("0x22")][za("0xb5")][za("0x6e")]()){if("insert"!=o[za("0x8c")])continue;const s=o[za("0x1")][za("0xc3")](o[za("0xf5")]);if(s[za("0x6b")])for(const r of this[za("0xc0")][za("0xfb")]()){if(r[za("0xb8")]||!r[za("0x13f")])continue;if(za("0x137")!=r[za("0x8c")])continue;const i=r.getFirstRange();if(i[za("0x103")].parent!=i[za("0x2f")][za("0xae")]&&i[za("0x2f")][za("0xc7")](o[za("0x1")])){const o=t[za("0x24")][za("0x13b")](i.start,s);e[za("0x4a")](r.getFirstMarker(),{range:o}),n=!0}}}return n})),t[za("0x24")][za("0x123")].on(za("0xf7"),((t,e,n)=>{if(null==n){const{id:t}=this[za("0xad")](e[za("0x2b")]),n=this[za("0xc0")].get(t);n&&n[za("0xbb")](e[za("0x2b")])}})),t[za("0x24")][za("0x22")].on(za("0xcb"),(()=>{const e=Array.from(t.model.document[za("0xb5")].getChangedMarkers()).filter((t=>za("0x1f")===this[za("0xad")](t[za("0x2b")])[za("0xe1")]));if(0===e[za("0xf5")])return;e[za("0x131")](((t,e)=>{const n=t[za("0xc")].oldRange,o=e[za("0xc")][za("0xc8")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[za("0x103")][za("0x44")](o[za("0x103")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[za("0xad")](t);if(null===s[za("0xc8")]){const e=this[za("0x5")](t);o[za("0x64")](e)}else{const t=this[za("0xc0")][za("0xeb")](e);null!==s.newRange||t.isInContent?(n.add(t[za("0x1a")]),o.add(t)):this._removeSuggestion(t)}}o[za("0x48")]>0&&this[za("0x114")](o);for(const t of n)this[za("0x11b")](za("0xf9"),t)})),t[za("0x24")].on(za("0x28"),((e,n)=>{const o=n[0];if(!this[za("0xc0")].size)return;if(!o[za("0x136")])return;if(o[za("0x87")][za("0x26")]||!o.batch[za("0x3f")])return;let s,r;switch(o[za("0x8c")]){case"insert":s=t[za("0x24")][za("0x98")](o.position),r=s[za("0xc3")](o.howMany);break;case za("0xd2"):s=t[za("0x24")][za("0x98")](o[za("0x5c")]),r=t[za("0x24")][za("0x98")](o[za("0x10e")]);break;case za("0x111"):s=t[za("0x24")][za("0x98")](o[za("0x3")]),r=s.getShiftedBy(o[za("0xce")]);break;default:return}const i=t[za("0x24")].createRange(s,r);t[za("0x24")][za("0x101")]((()=>{for(const{suggestion:t,meta:e}of this[za("0x2d")](i)){if(t.isMultiRange)continue;if("formatInline"==t[za("0x8c")])continue;const n=t[za("0xc")]&&t[za("0xc")].multipleBlocks;("formatBlock"!=t.type||za("0xd2")==o[za("0x8c")]&&!n)&&(e[za("0xde")]||za("0xa8")==t[za("0x8c")]&&e[za("0x54")]||t[za("0x63")]().containsRange(i)&&this[za("0xa0")](t,s,r))}}))}),{priority:"lowest"}),t[za("0x24")].on("deleteContent",((e,n)=>{const o=n[0],s=n[1];if(s&&s.forceDefaultExecution)return;if(this[za("0x1e")])return;if(!this[za("0x7f")][za("0x57")])return;if(o[za("0x19")])return;const r=t[za("0x24")][za("0x112")],{start:i,end:x}=o[za("0x63")](),a=i[za("0x13d")]&&r.isLimit(i[za("0x13d")])?null:r.getNearestSelectionRange(i,za("0x142")),c=x[za("0x8a")]&&r[za("0x73")](x[za("0x8a")])?null:r[za("0xe9")](x,"backward"),l=t[za("0x24")][za("0x13b")](a?a[za("0x103")]:i,c?c[za("0x2f")]:x);t[za("0x24")][za("0x101")]((e=>{this[za("0xbe")](l);const n=t[za("0x24")][za("0x112")][za("0xe9")](l.start);o.is("documentSelection")?e[za("0xc2")](n):o[za("0x49")](n)})),e[za("0x8b")]()}),{priority:e.priorities[za("0x122")]+10}),t[za("0x24")].on("insertContent",((e,n)=>{const o=n[n[za("0xf5")]-1];o&&o[za("0x5d")]||this[za("0x1e")]||this[za("0x7f")].value&&(t.model[za("0x101")]((()=>{let o=t[za("0x24")].insertContent(n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e.return=o[za("0x99")]();const s=o[za("0x2f")][za("0x8a")],r=t[za("0x24")][za("0x112")];s&&r[za("0x121")](s)&&!r[za("0x7e")](s)&&(o=t[za("0x24")][za("0x13b")](o[za("0x103")],t[za("0x24")][za("0x98")](s,za("0x2f")))),this.markInsertion(o)})),e[za("0x8b")]())}),{priority:za("0xaa")}),this[za("0x138")][za("0xe3")][za("0x64")](za("0x140"),this[za("0x7f")]),this[za("0xb0")](za("0x140"));const o=new b(t,this[za("0xc0")]);t[za("0xe3")][za("0x64")](za("0xcd"),o),this[za("0xb0")](za("0xcd"));const s=new C(t,this[za("0xc0")]);t[za("0xe3")][za("0x64")](za("0x42"),s),this[za("0xb0")]("discardSuggestion"),t[za("0xe3")][za("0x64")](za("0x12e"),new F(t,o,this._suggestions)),this[za("0xb0")]("acceptAllSuggestions"),t[za("0xe3")][za("0x64")](za("0xa1"),new F(t,s,this[za("0xc0")])),this[za("0xb0")](za("0xa1")),t.commands[za("0x64")](za("0x126"),new U(t,o,this[za("0xc0")])),this[za("0xb0")]("acceptSelectedSuggestions"),t[za("0xe3")][za("0x64")](za("0x3d"),new U(t,s,this[za("0xc0")])),this[za("0xb0")](za("0x3d"));const r=t.plugins[za("0xeb")](za("0xd8"));this.listenTo(r,"addComment",((t,{threadId:e})=>{const n=this._suggestions.get(e);n&&n[za("0xe2")]&&1===n[za("0xe2")][za("0xf5")]&&this[za("0x39")](e,{hasComments:!0})}),{priority:za("0x55")}),this[za("0xac")](r,za("0x84"),((t,{threadId:e})=>{const n=this._suggestions[za("0xeb")](e);n&&n.commentThread&&!n[za("0xe2")][za("0xf5")]&&this._updateSuggestionData(e,{hasComments:!1})}),{priority:"low"})}set adapter(t){if(this[za("0xf8")])throw new e.CKEditorError(za("0x4"),this);this[za("0xf8")]=t}get adapter(){return this[za("0xf8")]}[za("0x38")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions.values())t&&!e[za("0x13f")]||n[za("0xa3")](e);return e?n[za("0x10b")]((t=>t[za("0x46")]())):n}[za("0x12b")](t){const n=this._suggestions[za("0xeb")](t);if(!n)throw new e.CKEditorError(za("0xdd"),this);return n}[za("0x11c")](t){return this._suggestions[za("0x9c")](t)}[za("0x2e")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[za("0x8c")][za("0xd2")](":"),i=this[za("0xc0")][za("0xeb")](n)||this[za("0xcf")](s,r,n,e,o);if(this[za("0x115")](i),this[za("0x119")](i,s,r||null,e),i[za("0x12d")]=t[za("0x12d")],o&&o["@external"]){const t=o[za("0xd1")],e=this[za("0x128")](t[za("0xd3")]);i[za("0x95")]=t.createdAt,i[za("0xf2")]=e,i.isExternal=!0}else i.authoredAt=t[za("0x12d")];switch(t[za("0xc")]&&(i[za("0xc")]=t[za("0xc")]),t[za("0xa4")]&&(i[za("0xa4")]=t.attributes),this[za("0xf8")]&&this[za("0xf8")][za("0x10d")]||(i._saved=!0),this[za("0x5f")].get(i)){case za("0x92"):this[za("0x5f")][za("0x37")](i,za("0x13e"));break;case za("0x6a"):i.isInContent?(this._suggestionState.set(i,za("0x90")),this[za("0x11b")](za("0xf0"),i)):this[za("0x5f")].set(i,za("0x60"))}return i}[za("0xcd")](t){this[za("0x5d")]((()=>{this[za("0x138")][za("0x24")][za("0x101")]((()=>{for(const e of t[za("0x9d")]())e[za("0xd4")]()}))}))}[za("0x42")](t){this[za("0x5d")]((()=>{this[za("0x138")][za("0x24")][za("0x101")]((()=>{for(const e of t[za("0x9d")]())e[za("0x6f")]()}))}))}[za("0xb0")](t,n){const o=this[za("0x138")][za("0xe3")][za("0xeb")](t);if(!o)throw new e.CKEditorError(za("0x9a"),this,{commandName:t});this[za("0xb1")][za("0x64")](o),n&&o.on("execute",((t,e)=>{this[za("0x7f")][za("0x57")]&&(this[za("0x1e")]||e[za("0xf5")]>0&&e[e[za("0xf5")]-1]&&e[e.length-1][za("0x5d")]||(n(((...t)=>o[za("0x107")](...t,{forceDefaultExecution:!0})),...e),t[za("0x8b")]()))}),{priority:"high"})}forceDefaultExecution(t){let n,o;const s=this[za("0x1e")];this[za("0x1e")]=!0;try{n=t()}catch(t){o=t}return s||(this._isForcedDefaultExecutionBlock=!1),o&&e.CKEditorError[za("0x91")](o,this),n}[za("0x72")](t,n=null,o={}){if(t[za("0x19")])return null;const s=this.editor[za("0xb6")][za("0xeb")]("Users").me;for(const{suggestion:e,meta:o}of this._findSuggestions(t,za("0xa8")))if(o[za("0x54")]){if(!o[za("0x10c")]){if(!this[za("0x13")]&&o[za("0xde")])continue;return e}if(n==e[za("0xaf")]){const n=e.getFirstRange();return n[za("0x103")].isEqual(t.end)?this[za("0xa")](e,this[za("0x25")].createRange(t[za("0x103")],n.end)):this._setSuggestionRange(e,this[za("0x25")][za("0x13b")](n.start,t[za("0x2f")])),e}}const r=(0,e.uid)(),i=s.id,x=n?za("0xf6")+n:za("0xa8"),a=this[za("0x3a")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this._addSuggestionMarker(x,r,i,t),a}[za("0x53")](t,n=za("0x36"),o={}){const s=this[za("0x138")][za("0xb6")][za("0xeb")]("Users").me,r=this[za("0x45")].getSuggestionCallback("insertion",n,za("0xfa"));for(const e of this[za("0x38")]())if(e[za("0xf2")].id==s.id&&"insertion"==e[za("0x8c")]&&e[za("0xaf")]==n&&(r(e.getRanges(),t)||r(t,e.getRanges()))){for(const n of t)e.addRange(n);return e}if(this[za("0x13")])for(const e of t)for(const{suggestion:n,meta:o}of this[za("0x2d")](e,za("0xa8"))){if(!o[za("0x54")])continue;let e=!0;for(const o of n[za("0x110")]())for(const n of t)if(!o[za("0x88")](n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=s.id,a=za("0xf6")+n,c=this._setSuggestionData({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[za("0x6d")](a,i,x,e,Zo.getMultiRangeId());return c}markInlineFormat(t,n,o=null,s={}){if(o=o||$a(n),t.isCollapsed)return null;if(za("0x10")===this[za("0x74")]){const e=this[za("0x45")][za("0x81")](za("0xb4"),o,za("0xd4"));return this[za("0x5d")]((()=>e([t],n,s))),null}const r=this[za("0x138")][za("0xb6")][za("0xeb")](za("0xb9")).me,i=[];if(za("0xa9")!==this[za("0x74")])for(const{suggestion:e,meta:n}of this[za("0x2d")](t,"insertion"))n[za("0x54")]&&!n[za("0x82")]&&i[za("0xa3")](...e[za("0x110")]());const x=function(t,e){const n=[];for(const o of e){const e=t[za("0xe0")](o);e&&n[za("0xa3")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[za("0xf5")];){const o=n[e][za("0xed")](t);n.splice(e,1,...o),e+=o.length}}return n}(t,i);x[za("0xf5")]&&this[za("0x25")][za("0x101")]((()=>{for(const t of x){const e=this._suggestionFactory[za("0x81")](za("0xb4"),o,za("0xd4"));this.forceDefaultExecution((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t.start,a=t.end;for(const{suggestion:e,meta:n}of this[za("0x2d")](t,za("0xb4"))){if(!n.isOwn)continue;if(e[za("0xaf")]!=o)continue;const s=e[za("0x63")]();if(s[za("0x88")](t,!0))return null;x=x[za("0x44")](s[za("0x103")])?x:s.start,a=a.isAfter(s[za("0x2f")])?a:s[za("0x2f")],i?s[za("0x103")][za("0x44")](i[za("0x63")]()[za("0x103")])?(i.removeMarkers(),i=e):e[za("0x76")]():i=e}const c=this[za("0x25")].createRange(x,a);if(i)this[za("0xa")](i,c);else{const t=(0,e.uid)(),i=r.id;this[za("0x3a")]({id:t,type:za("0x117")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this._addSuggestionMarker(za("0x117")+o,t,i,c)}}return null}[za("0x34")](t,n,o=[],s=null,r={}){n.formatGroupId||(n[za("0x1d")]=n[za("0x12a")]),n[za("0x108")]=t.is(za("0x31")),s=s||$a(n);const i=o.map((t=>Qa(t,this[za("0x25")]))),x=t.is(za("0x31"))?t:Qa(t,this[za("0x25")]);if("never"===this._trackFormatChanges){const t=this[za("0x45")].getSuggestionCallback(za("0x137"),s,za("0xd4"));return this[za("0x5d")]((()=>t([x],n,r))),null}i[za("0xa3")](x);let a=!0;for(const t of i)if(!this._rangeIsInLocalUserInsertion(t)){a=!1;break}if(a&&za("0xa9")!==this[za("0x74")]){const t=this._suggestionFactory.getSuggestionCallback(za("0x137"),s,"accept");return this[za("0x5d")]((()=>t([x],n,r))),null}let c=null,l=x[za("0x103")],u=x[za("0x2f")];for(const{suggestion:t,meta:e}of this[za("0x2d")](x,za("0x137"))){if(!e[za("0x54")]||e[za("0x10c")]||e[za("0xde")]||e.isInsideObject)continue;if(t[za("0xc")].formatGroupId!=n.formatGroupId)continue;const o=t[za("0x63")]();if(t.subType==s){if(o[za("0x88")](x,!0))return null;l=l[za("0x44")](o[za("0x103")])?l:o[za("0x103")],u=u[za("0x104")](o.end)?u:o.end,c?o[za("0x103")].isBefore(c.getFirstRange().start)?(c[za("0x76")](),c=t):t[za("0x76")]():c=t}else{const e=x[za("0xe0")](o);this._cutOutSuggestionMarker(t,e)}}const d=this.editor[za("0xb6")].get(za("0xb9")).me,g=(0,e.uid)(),m=d.id;if(c)return this[za("0xa")](c,this._model.createRange(l,u)),c;{const t=this[za("0x3a")]({id:g,type:za("0xf3")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this._addSuggestionMarker(za("0xf3")+s,g,m,this[za("0x25")][za("0x13b")](l,u)),t}}[za("0x13a")](t,n,o=[],s=null,r={}){n[za("0x1d")]||(n[za("0x1d")]=n[za("0x12a")]);const i=t[0];n[za("0x108")]=i.is(za("0x31")),s=s||$a(n);const x=o[za("0x10b")]((t=>Qa(t,this[za("0x25")]))),a=i.is(za("0x31"))?t:t[za("0x10b")]((t=>Qa(t,this[za("0x25")])));if(za("0x10")===this[za("0x74")]){const t=this[za("0x45")][za("0x81")](za("0x137"),s,za("0xd4"));return this[za("0x5d")]((()=>t(a,n,r))),null}x[za("0xa3")](...a);let c=!0;for(const t of x)if(!this[za("0x2")](t)){c=!1;break}if(c&&za("0xa9")!==this._trackFormatChanges){const t=this[za("0x45")].getSuggestionCallback(za("0x137"),s,za("0xd4"));return this.forceDefaultExecution((()=>t(a,n,r))),null}const l=this[za("0x138")][za("0xb6")][za("0xeb")](za("0xb9")).me;for(const t of this[za("0x38")]()){if(t[za("0xf2")].id!=l.id)continue;if("formatBlock"!=t[za("0x8c")]||t.data[za("0x1d")]!=n[za("0x1d")])continue;const e=t.subType==s;for(let n=0;n<a[za("0xf5")];n++){const o=a[n];for(const s of t[za("0x124")]()){const r=s[za("0x85")]();if(o[za("0xc7")](r)){e?(a[za("0x58")](n,1),n--):t[za("0xc4")](s[za("0x2b")]);break}}}}if(0==a[za("0xf5")])return null;const u=this[za("0x45")][za("0x81")]("formatBlock",s,"join");for(const t of this[za("0x38")]())if(t[za("0xf2")].id==l.id&&"formatBlock"==t[za("0x8c")]&&t[za("0xc")][za("0x1d")]==n.formatGroupId&&t.subType==s&&(u(t[za("0x110")](),a)||u(a,t[za("0x110")]()))){for(const e of a)t.addRange(e);return t}const d=(0,e.uid)(),g=l.id,m="formatBlock:"+s,f=this[za("0x3a")]({id:d,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[za("0x6d")](m,d,g,t,Zo[za("0x52")]());return f}[za("0xbe")](t,n=null,o={}){if(t[za("0x19")])return null;const s=this.editor[za("0xb6")][za("0xeb")](za("0xb9")).me,r=new i.LiveRange(t[za("0x103")],t[za("0x2f")]);for(const{suggestion:t,meta:e}of this[za("0x2d")](r,za("0xa8")))if(e[za("0x54")]&&!e.isNextTo)if(t[za("0xb8")]){const e=t[za("0x110")]()[za("0x14")]((t=>za("0x129")!=t[za("0x125")][za("0xdb")]));if(e[za("0xb2")]((t=>r[za("0x88")](t,!0)))&&t.discard(),e[za("0x8e")]((t=>t[za("0x88")](r,!0)))){const t=this[za("0x45")][za("0x81")](za("0x86"),n,za("0xd4"));return this[za("0x5d")]((()=>t([r],null,o))),null}}else{const e=r.getIntersection(t[za("0x63")]());null!==e&&t[za("0xdf")]([e],null,o)}if(r.detach(),r.isCollapsed||"$graveyard"==r[za("0x125")][za("0xdb")])return null;let x=null,a=r[za("0x103")],c=r[za("0x2f")];for(const{suggestion:t,meta:e}of this[za("0x2d")](r,za("0x86")))if(e[za("0x54")])if(t[za("0xb8")]&&this[za("0x13")]){let e=!0;for(const n of t[za("0x110")]()){if(n[za("0x88")](r,!0))return t;r[za("0x88")](n)||(e=!1)}e&&t.discard()}else{const n=t.getFirstRange();if(n[za("0x88")](r,!0)){if(!this._mergeNestedSuggestions&&e.containsRangeInObject)continue;return t}a=a[za("0x44")](n.start)?a:n[za("0x103")],c=c[za("0x104")](n[za("0x2f")])?c:n[za("0x2f")],x?n[za("0x103")][za("0x44")](x.getFirstRange()[za("0x103")])?(x[za("0x76")](),x=t):t.removeMarkers():x=t}if(x)return this._setSuggestionRange(x,this[za("0x25")][za("0x13b")](a,c)),x;{const t=(0,e.uid)(),r=this[za("0x25")][za("0x13b")](a,c),i=s.id,x=n?za("0xc5")+n:za("0x86"),l=this._setSuggestionData({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x6d")](x,t,i,r),l}}[za("0x8d")](t,n=za("0x36"),o={}){const s=this[za("0x138")][za("0xb6")][za("0xeb")](za("0xb9")).me,r=t[za("0x10b")]((t=>new i.LiveRange(t[za("0x103")],t[za("0x2f")]))),x=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this[za("0x2d")](t,"insertion"))n[za("0x54")]&&!n[za("0x10c")]&&x[za("0x64")](e);for(const e of x)if(e[za("0xb8")]){const s=e.getRanges();if((!e[za("0xa4")]||!e[za("0xa4")][za("0x56")])&&s[za("0xb2")]((t=>r[za("0x8e")]((e=>e.containsRange(t,!0)))))&&e[za("0x6f")](),r.every((t=>s[za("0x8e")]((e=>e[za("0x88")](t,!0)))))){const e=this[za("0x45")][za("0x81")](za("0x86"),n,za("0xd4"));return this.forceDefaultExecution((()=>e(t,null,o))),null}}else{const t=e[za("0x63")]();if(r.some((e=>e.containsRange(t,!0)))&&e[za("0x6f")](),r.every((e=>t[za("0x88")](e,!0)))){const t=this._suggestionFactory[za("0x81")](za("0x86"),n,"accept");return this.forceDefaultExecution((()=>t(r,null,o))),null}}const a=this._suggestionFactory[za("0x81")](za("0x86"),n,za("0xfa"));let c=null;for(const t of this[za("0x38")]())if(t.author.id==s.id&&t[za("0x13f")]&&za("0x86")==t[za("0x8c")]&&t[za("0xaf")]==n&&(a(t[za("0x110")](),r)||a(r,t[za("0x110")]())))if(c){if(t[za("0xe2")]&&t[za("0xe2")][za("0xf5")])continue;for(const e of t[za("0x110")]())c[za("0x70")](e)||c[za("0x12")](e);t[za("0x76")]()}else{c=t;for(const e of r)t[za("0x70")](e)||t[za("0x12")](e)}if(c)return c;x[za("0x130")]();for(const t of r)for(const{suggestion:e,meta:n}of this[za("0x2d")](t,za("0x86")))n[za("0x54")]&&x[za("0x64")](e);for(const t of x){const e=t.getRanges();if((!o||!o[za("0x56")])&&r.every((t=>e[za("0x8e")]((e=>e[za("0x88")](t,!0))))))return t;(!t[za("0xa4")]||!t[za("0xa4")].skipNestingCheck)&&e[za("0xb2")]((t=>r[za("0x8e")]((e=>e.containsRange(t,!0)))))&&t[za("0x6f")]()}const l=(0,e.uid)(),u=s.id,d="deletion:"+n,g=this[za("0x3a")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of r)t[za("0xee")](),t[za("0x19")]||za("0x129")==t.root[za("0xdb")]||this._addSuggestionMarker(d,l,u,t,Zo.getMultiRangeId());return g}[za("0xa")](t,e){const n=t[za("0xef")]();this[za("0x25")][za("0x101")]((t=>{t[za("0x4a")](n,{range:e})}))}[za("0x115")](t){const e=t.id,n=this.editor[za("0xe4")][za("0xeb")](za("0x132"));this._commentsRepository[za("0x97")](e)||this._commentsRepository[za("0x23")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[za("0xd7")].getCommentThread(e);o[za("0xec")](za("0x105")),o[za("0x105")]=!1,t[za("0xe2")]=o}[za("0x119")](t,n,o,s){if(t[za("0x8c")]!=n||t.subType!=o||t[za("0x1c")].id!=s)throw this[za("0x138")][za("0x12c")]("track-changes-suggestion-data-mismatch"),new e.CKEditorError(za("0xd5"),this)}[za("0x4b")](t,n){const o=t[za("0x63")]();if(n[za("0xc7")](o))t[za("0x76")]();else if(o[za("0x88")](n)){const s=this._model.createPositionAt(n[za("0x103")].nodeBefore,za("0x2f"));this[za("0xa")](t,this[za("0x25")][za("0x13b")](o.start,s));const r=(0,e.uid)(),i=t[za("0x1c")].id,x=t[za("0x8c")]+":"+t[za("0xaf")];this[za("0x3a")]({id:r,type:x,createdAt:new Date,authorId:i,data:t[za("0xc")],attributes:t[za("0xa4")]});const a=this[za("0x25")][za("0x98")](n[za("0x2f")].parent,za("0x61")),c=this[za("0x25")][za("0x13b")](a,o.end);this[za("0x6d")](x,r,i,c)}else if(o[za("0x7b")](n[za("0x103")])){const e=this[za("0x25")][za("0x98")](n.start.nodeBefore,za("0x2f"));this._setSuggestionRange(t,this[za("0x25")][za("0x13b")](o.start,e))}else{const e=this._model[za("0x98")](n[za("0x2f")].parent,"after");this._setSuggestionRange(t,this._model[za("0x13b")](e,o[za("0x2f")]))}}[za("0x2")](t){for(const{suggestion:e,meta:n}of this[za("0x2d")](t,za("0xa8"))){if(!n[za("0x54")])continue;const o=e[za("0x110")]();for(const e of o)if(!t.getDifference(e)[za("0xf5")])return!0}return!1}_getAuthorFromId(t){const n=this.editor[za("0xb6")].get(za("0xb9"))[za("0x5a")](t);if(!n)throw new e.CKEditorError(za("0x89"),this);return n}_getExternalAuthor(t){const e=this[za("0x138")].plugins[za("0xeb")](za("0xb9")),n=(0,r.hashObject)("external:"+t);return e[za("0x5a")](n)||e[za("0x139")]({id:n,name:t})}[za("0xcf")](t,e,n,o,s){const r=this[za("0x9b")](o),i=this[za("0x45")][za("0x102")](t,e,n,r,s,(t=>this._updateSuggestionData(n,{attributes:t})));return this.listenTo(i,za("0xd4"),(()=>{this[za("0x39")](n,{state:za("0x96")})}),{priority:za("0xaa")}),this[za("0xac")](i,za("0x6f"),(()=>{this[za("0x39")](n,{state:za("0x2c")})}),{priority:"high"}),this[za("0xc0")][za("0x37")](n,i),this[za("0x5f")][za("0x37")](i,za("0x92")),i}[za("0xad")](t){const e=t[za("0xd2")](":");return{group:e[0],type:e[1],subType:e[za("0xf5")]>=5?e[2]:null,id:e[za("0xf5")]<5?e[2]:e[3],authorId:e[za("0xf5")]<5?e[3]:e[4],markerCount:6==e.length?e[5]:null}}_breakSuggestionMarker(t,n,o){const s=t[za("0x63")](),r=s[za("0x103")],i=s[za("0x2f")];this[za("0xa")](t,this._model[za("0x13b")](r,n));const x=(0,e.uid)(),a=t[za("0x1c")].id,c=t.type+(t[za("0xaf")]?":"+t.subType:"");this[za("0x3a")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[za("0xa4")],data:t[za("0xc")]}),"formatBlock"==t.type&&(o=this[za("0x25")][za("0x12f")](o.parent)),this._addSuggestionMarker(c,x,a,this[za("0x25")][za("0x13b")](o,i))}[za("0x2d")](t,e=null){const n=[],o=this._model[za("0x112")],s=this[za("0x138")][za("0xb6")].get(za("0xb9")).me;for(const r of this[za("0x38")]())if(r[za("0x13f")]&&(!e||r[za("0x8c")]==e))for(const e of r[za("0x110")]()){const i=t[za("0x103")][za("0xc7")](e.end)||t.end[za("0xc7")](e[za("0x103")]);if(i||t.getIntersection(e)){const x=t[za("0x88")](e)&&Ka(o,e.start,t),a=e[za("0x88")](t)&&Ka(o,t[za("0x103")],e);n[za("0xa3")]({suggestion:r,meta:{isOwn:s==r[za("0xf2")],isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}[za("0x6d")](t,e,n,o,s){this[za("0x25")].change((r=>{let i=za("0x109")+t+":"+e+":"+n;s&&(i=i+":"+s),r[za("0xc9")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[za("0x13c")](t){const e=t[za("0xe8")],n=t[za("0x2a")];t[za("0xe8")]=null,null!=e&&(e[za("0x2a")]=null),t.next=null,null!=n&&(n[za("0xe8")]=null),za("0x90")==this[za("0x5f")].get(t)&&(this[za("0x5f")].set(t,za("0x60")),this[za("0x11b")](za("0x11a"),t,e,n))}[za("0x3a")](t){const n=t.id,o=this[za("0x2e")](t);if(this[za("0xf8")]&&this[za("0xf8")].addSuggestion){const s=this[za("0x138")][za("0xb6")].get(za("0x3c")),r=o[za("0x59")],i=o.subType?o.type+":"+o.subType:o[za("0x8c")],x=this[za("0x138")][za("0x106")],a=s[za("0x64")](Yo(x,za("0x5e"))),c={id:n,type:i,hasComments:r,data:t[za("0xc")]||null,originalSuggestionId:t[za("0x40")]||null,attributes:o[za("0xa4")]};this._adapter[za("0x10d")](c)[za("0x75")]((t=>{o[za("0x21")]=!0,s[za("0x77")](a),t&&t[za("0x12d")]&&(this._suggestions[za("0xeb")](n).createdAt=t.createdAt)}))[za("0xbc")]((t=>{throw(0,e.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this[za("0x138")][za("0x24")][za("0xbd")]({isUndoable:!1},(()=>{o.discard()})),o[za("0x127")](),this._suggestions[za("0x94")](o.id),this._suggestionState.delete(o),t}))}return o}[za("0x39")](t,e){const n=this[za("0x138")][za("0xb6")][za("0xeb")](za("0x3c")),o=this[za("0x12b")](t);if(this[za("0xf8")]&&this[za("0xf8")][za("0x51")])if(o._saved){const o=n.add(Yo(this[za("0x138")][za("0x106")],za("0x5e")));this._adapter.updateSuggestion(t,e)[za("0x75")]((()=>{n.remove(o)}))}else o.on(za("0x134"),(()=>{this[za("0x39")](t,e)}))}[za("0xa7")](t){if(!this[za("0xf8")]||!this[za("0xf8")][za("0x12b")])throw new e.CKEditorError(za("0x4e"),this);return this[za("0xf8")][za("0x12b")](t)}[za("0x5")](t){const{id:e,type:n,subType:o,authorId:s}=this[za("0xad")](t),r=this[za("0xc0")][za("0xeb")](e)||this[za("0xcf")](n,o,e,s,{});switch(this[za("0x119")](r,n,o,s),this._suggestionState[za("0xeb")](r)){case za("0x92"):this[za("0xa7")](e).then((t=>{let n=Promise[za("0xea")]();t.hasComments&&(n=this._commentsRepository[za("0xd9")]({channelId:this[za("0x138")][za("0xe4")][za("0xeb")]("collaboration.channelId"),threadId:e})),n.then((()=>{this[za("0x2e")](t)[za("0x21")]=!0}))})),this[za("0x5f")][za("0x37")](r,za("0x6a"));break;case za("0x60"):this[za("0x39")](e,{state:za("0xdc")});case za("0x13e"):this[za("0x5f")].set(r,za("0x90")),this[za("0x11b")](za("0xf0"),r);break;case"ready":this.fire("suggestionChanged",r)}return r[za("0xbb")](t),r}[za("0x114")](t){const e=Array.from(t).filter((t=>!t.isMultiRange)),n=this[za("0x38")]({skipNotAttached:!0})[za("0x14")]((t=>!t[za("0xb8")])),o=n[za("0x14")]((e=>!t[za("0x9c")](e))),s=new Map(n[za("0x10b")]((t=>[t,this[za("0x45")][za("0x81")](t[za("0x8c")],t[za("0xaf")],"chain")]))),r=new Map(n[za("0x10b")]((t=>[t,t[za("0x63")]()]))),i=new Set,x=new Set;for(let t=0;t<e[za("0xf5")];t++)a(e[t],e,t+1);for(let t=0;t<e[za("0xf5")];t++)a(e[t],o,0);for(let t=0;t<e[za("0xf5")];t++){const n=e[t];!x[za("0x9c")](n)&&n.previous&&(n[za("0xe8")][za("0x2a")]===n&&(n[za("0xe8")][za("0x2a")]=null),n[za("0xe8")]=null),!i.has(n)&&n[za("0x2a")]&&(n[za("0x2a")][za("0xe8")]===n&&(n[za("0x2a")].previous=null),n.next=null)}function a(t,e,n){for(let o=n;o<e[za("0xf5")];o++){const n=c(t,e[o]);n&&(n[0][za("0x2a")]=n[1],n[1][za("0xe8")]=n[0],i[za("0x64")](n[0]),x[za("0x64")](n[1]))}}function c(t,e){if(t[za("0xf2")].id!==e[za("0xf2")].id)return null;const n=s[za("0xeb")](t)(t,e,r[za("0xeb")](t),r[za("0xeb")](e));return n&&s[za("0xeb")](e)(t,e,r[za("0xeb")](t),r[za("0xeb")](e))?n[1][za("0xe2")]&&n[1][za("0xe2")][za("0xf5")]?null:n:null}}[za("0x11e")](t){const e=Array.from(t),n=this.getSuggestions({skipNotAttached:!0}),o=n[za("0x14")]((e=>!t[za("0x9c")](e))),s=new Map(e[za("0x10b")]((t=>[t,this[za("0x45")][za("0x81")](t[za("0x8c")],t.subType,"join")]))),r=new Map(n[za("0x10b")]((t=>[t,t[za("0x110")]()])));for(let t=0;t<e.length;t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e.length;t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n[za("0xf5")];i++){const o=n[i];if(o[za("0x8c")]!==e[za("0x8c")]||o.author.id!==e[za("0xf2")].id||o[za("0xaf")]!==e[za("0xaf")])continue;const x=s[za("0xeb")](e),a=r[za("0xeb")](e),c=r[za("0xeb")](o),l=e[za("0xe2")]&&e.commentThread[za("0xf5")],u=o.commentThread&&o.commentThread[za("0xf5")];if(!l&&x(c,a))return t[za("0x20")](o,e),r.delete(e),!0;if(!u&&x(a,c))return t[za("0x20")](e,o),r.delete(o),!0}return!1}}[za("0x20")](t,e){if(t.isMultiRange)for(const n of e[za("0x110")]())t[za("0x12")](n);else{const n=e[za("0x63")]().end;this._setSuggestionRange(t,this[za("0x25")][za("0x13b")](t[za("0x63")]()[za("0x103")],n))}e.removeMarkers()}}class Wa{constructor(t){this[za("0xfe")]=t,this[za("0x25")]=t[za("0x24")],this[za("0x6c")]=new Map,this[za("0x8f")]=new Map,this[za("0x66")]()}[za("0x102")](t,e,n,o,s,r){return new Zo(this[za("0x25")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[za("0x81")](t,e,"accept")(...n),onDiscard:(...n)=>this[za("0x81")](t,e,"discard")(...n)})}[za("0x5b")](t,e,n,o){const s=t+":"+e+":"+n;this[za("0x6c")][za("0x37")](s,o)}getSuggestionCallback(t,e,n){const o=t+":"+e+":"+n;return this[za("0x6c")][za("0xeb")](o)||this._defaultCallbacks[za("0xeb")](t+":"+n)}[za("0x66")](){const t=()=>{},e=t=>{t[za("0x131")](((t,e)=>t[za("0x103")][za("0x44")](e[za("0x103")])?1:-1)),this[za("0x25")].change((e=>{for(const n of t){let t;t=n[za("0x2f")][za("0x6b")]&&n[za("0x2f")][za("0xae")]==n[za("0x103")][za("0x13d")]?e.createSelection(n[za("0x103")][za("0x13d")],"on"):e[za("0xb7")](n),this[za("0x25")][za("0x11f")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[za("0x25")][za("0x101")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[za("0x10b")]((t=>(qa(t)&&(t=this[za("0x25")].createRange(t[za("0x2f")])),t)))[za("0x14")]((t=>"$graveyard"!==t[za("0x125")][za("0xdb")]));if(r[za("0xf5")]<1)return;const x=Array[za("0xd")](this._model[za("0x22")].selection[za("0x110")]())[za("0x10b")]((t=>i.LiveRange[za("0x113")](t)));n[za("0xc2")](r);for(const t of this[za("0xfe")][za("0xe3")].commands())t[za("0x32")]();s[za("0xa3")]({forceDefaultExecution:!0}),this[za("0xfe")][za("0x107")](o,...s);const a=x[za("0x14")]((t=>za("0x129")!=t[za("0x125")][za("0xdb")]));a[za("0xf5")]>0&&n[za("0xc2")](a);for(const t of x)t[za("0xee")]()}))},o=(t,e)=>1==t[za("0xf5")]&&1==e[za("0xf5")]&&t[0][za("0x2f")].isEqual(e[0].start),s=(t,e,n,o)=>Za(t,e,n,o,this[za("0x25")])?[t,e]:Za(e,t,o,n,this[za("0x25")])?[e,t]:null;this[za("0x8f")].set(za("0x15"),t),this[za("0x8f")][za("0x37")]("insertion:discard",e),this[za("0x8f")][za("0x37")](za("0x133"),o),this[za("0x8f")][za("0x37")]("insertion:chain",s),this[za("0x8f")][za("0x37")](za("0x16"),e),this[za("0x8f")][za("0x37")](za("0x1b"),t),this[za("0x8f")][za("0x37")]("deletion:join",o),this[za("0x8f")][za("0x37")](za("0xba"),s),this[za("0x8f")][za("0x37")]("formatInline:accept",n),this[za("0x8f")][za("0x37")](za("0xca"),t),this[za("0x8f")][za("0x37")]("formatInline:join",o),this[za("0x8f")][za("0x37")](za("0x7a"),t),this._defaultCallbacks[za("0x37")](za("0x83"),n),this[za("0x8f")][za("0x37")]("formatBlock:discard",t),this[za("0x8f")][za("0x37")](za("0x118"),o),this._defaultCallbacks[za("0x37")](za("0xc1"),t)}}function Ka(t,e,n){for(const o of e[za("0xae")][za("0x35")]({includeSelf:!0,parentFirst:!0})){if(o.root==o)return!1;if(!n[za("0xbf")](o))return!1;if(t.isObject(o)||t[za("0x73")](o))return!0}return!1}function qa(t){return t[za("0x2f")].parent==t[za("0x103")].nodeAfter&&t.end[za("0x3e")]}function Xa(t,e,n,o){const s=t=>!t[za("0x17")].is(za("0x27"))&&!o.isObject(t[za("0x17")]),r=t[za("0x103")][za("0x141")](s),i=t.end[za("0x141")](s,{direction:za("0x8")});return!(t[za("0x103")][za("0xc7")](r)&&t[za("0x2f")][za("0xc7")](i)||(r.isBefore(i)?n[za("0x4a")](e,{range:n[za("0x13b")](r,i)}):n[za("0xc4")](e),0))}function $a(t){return(0,r.hashObject)(t)}function Ja(t){const e=t[za("0x103")][za("0x13d")];return e&&e.is(za("0x4c"))}function Qa(t,e){const n=e.schema[za("0x7e")](t)||e[za("0x112")][za("0xb")](t);return e[za("0x13b")](e.createPositionAt(t,za("0x4d")),n?e.createPositionAfter(t):e.createPositionAt(t,za("0x2f")))}function Za(t,e,n,o,s){if(n[za("0x2f")][za("0xc7")](o[za("0x103")]))return!0;if(t[za("0x8c")]!=e[za("0x8c")])return!1;if(!n.end[za("0x11")](o[za("0x103")]))return!1;const r=s[za("0x13b")](n[za("0x2f")],o[za("0x103")]).getWalker();for(const t of r)if([za("0xa5"),za("0xfc")][za("0x9")](t[za("0x8c")])&&s[za("0x112")].isLimit(t.item))return!1;return!0}const Ya=["canEditAt","_pendingAction","PendingActions","add","_discardCommand","destroy","getRanges","listenTo","remove","plugins","isEnabled","model","_removePendingAction","_setPendingAction","canAccept","get","commentThreadController","unbind","bind","PENDING_ACTION_SUGGESTION","discardSuggestion","isDirty","locale","canDiscard","_editor","commands","execute","view","acceptSuggestion","_acceptCommand"];var tc,ec;tc=Ya,ec=338,function(t){for(;--t;)tc.push(tc.shift())}(++ec);const nc=function(t,e){return Ya[t-=0]};class oc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[nc("0x3")]=e,this[nc("0x13")]=n,this[nc("0x8")]=o,this[nc("0x10")]=t,this[nc("0x15")]=t[nc("0x11")][nc("0x7")](nc("0x14")),this[nc("0x1a")]=t[nc("0x11")][nc("0x7")](nc("0xc")),this[nc("0x13")][nc("0xa")](nc("0x2")).to(this[nc("0x15")],this._discardCommand,((t,e)=>t||e)),this[nc("0x13")][nc("0xa")](nc("0x6")).to(this._acceptCommand,nc("0x2"),(t=>t&&this[nc("0x10")][nc("0x3")][nc("0x16")](e.getRanges()))),this[nc("0x13")][nc("0xa")](nc("0xf")).to(this[nc("0x1a")],nc("0x2"),(t=>t&&this[nc("0x10")].model[nc("0x16")](e[nc("0x1c")]()))),this._pendingAction=null,n[nc("0xd")]&&this[nc("0x5")](),this[nc("0x1d")](n,"acceptSuggestion",(()=>this.acceptSuggestion())),this[nc("0x1d")](n,nc("0xc"),(()=>this[nc("0xc")]())),this[nc("0x1d")](n,"change:isDirty",(()=>{n[nc("0xd")]?this[nc("0x5")]():this[nc("0x4")]()}))}[nc("0x14")](){this[nc("0x15")][nc("0x12")](this[nc("0x3")].id)}[nc("0xc")](){this[nc("0x1a")][nc("0x12")](this[nc("0x3")].id)}destroy(){this[nc("0x13")].unbind(nc("0x2")),this[nc("0x13")][nc("0x9")](nc("0x6")),this.view.unbind(nc("0xf")),this.stopListening(),this.commentThreadController[nc("0x1b")](),this[nc("0x17")]&&this[nc("0x4")]()}_setPendingAction(){const t=Yo(this[nc("0x10")][nc("0xe")],nc("0xb"));this[nc("0x17")]=this[nc("0x10")][nc("0x1")][nc("0x7")](nc("0x18"))[nc("0x19")](t)}[nc("0x4")](){null!==this[nc("0x17")]&&this[nc("0x10")][nc("0x1")][nc("0x7")](nc("0x18"))[nc("0x0")](this[nc("0x17")]),this[nc("0x17")]=null}}const sc=["isActive","_config","commentsListView","length","submit","value","delegate","addComment","set","focus","editorConfig","removeComment","fire","CommentView","descriptionParts","authoredAt","canDiscard","_model","bind","canAccept","_createCommentViews","element","_createCommentThreadInputView","commentThread","locale","isDirty","assign","isEnabled","commentThreadInputView","isReadOnly","setData","cancel","destroy"];var rc,ic;rc=sc,ic=467,function(t){for(;--t;)rc.push(rc.shift())}(++ic);const xc=function(t,e){return sc[t-=0]};class ac extends s.View{constructor(t,e,n,o){super(t),this[xc("0x1e")]=null,this.commentThreadInputView=null,this[xc("0x3")](xc("0x1c"),!1),this.set(xc("0xa"),e[xc("0xa")]),this[xc("0xd")](xc("0xa")).to(e),this[xc("0x3")](xc("0x9"),[]),this[xc("0x3")](xc("0x14"),!1),this[xc("0x3")](xc("0x16"),!1),this[xc("0x3")](xc("0xe"),!1),this[xc("0x3")](xc("0xb"),!1),this[xc("0xc")]=e,this._localUser=n,this._config=o,o.disableComments?this[xc("0x3")](xc("0x1f"),1):this[xc("0xf")]()}[xc("0x4")](){this[xc("0x10")][xc("0x4")]()}[xc("0x1b")](){this[xc("0x1e")]&&this[xc("0x1e")][xc("0x1b")](),this[xc("0x17")]&&this.commentThreadInputView[xc("0x1b")](),super[xc("0x1b")]()}[xc("0xf")](){const{CommentsListView:t}=this._config;this.commentsListView=new t(this[xc("0x13")],this._model[xc("0x12")],Object[xc("0x15")]({CommentView:this[xc("0x1d")][xc("0x8")]},this[xc("0x1d")])),this[xc("0x1e")][xc("0x1")](xc("0x6")).to(this),this[xc("0x1e")][xc("0x1")]("updateComment").to(this),this[xc("0x1e")].bind(xc("0x1c")).to(this),this[xc("0x3")](xc("0x1f"),this[xc("0x1e")][xc("0x1f")]+1),this[xc("0xd")](xc("0x1f")).to(this[xc("0x1e")],xc("0x1f"),(t=>t+1)),this[xc("0x17")]=this[xc("0x11")](),this.on("removeComment",(()=>this[xc("0x4")]())),this.bind(xc("0x14")).to(this[xc("0x1e")],"hasDirtyComment",this[xc("0x17")].commentInputView,xc("0x0"),((t,e)=>t||!!e))}[xc("0x11")](){const{CommentThreadInputView:t}=this[xc("0x1d")],e=new t(this[xc("0x13")],this._localUser,this[xc("0x1d")][xc("0x5")]),n=e.commentInputView;return e[xc("0xd")]("showInput").to(this,"isActive",this[xc("0xc")][xc("0x12")],"isReadOnly",n,xc("0x0"),((t,e,n)=>!!n||t&&!e)),n.on(xc("0x20"),((t,e)=>{this[xc("0x7")](xc("0x2"),e),n.editor[xc("0x19")]("")})),n.on(xc("0x1a"),(()=>this[xc("0x4")]())),n[xc("0xd")]("disabledSubmit").to(this._model[xc("0x12")],xc("0x18")),e}}const cc=["change:description","canDiscard","map","span","ck-suggestion__info-name","isEnabled","time","_model","getExternalSuggestionNote","acceptButton","locale","ck-suggestion--accept","discardButton","ck-suggestion-wrapper--active","setTemplate","getUserViewNotificationText","color","EXTERNAL_SUGGESTION","extendTemplate","ck-suggestion","Accept suggestion",'" title="',"div","element","source","description","cancel","ck-suggestion--discard","ck-suggestion--disabled-comments","children","importWord","editorReady","ck-suggestion__actions","authoredAt","bind","author","ck-annotation__content-wrapper","getTemplate","push","ck-annotation__actions","ck-comment__info-time","type","ck-suggestion-wrapper","execute","commentsListView","_createButton","<p>","userView","content","innerText","join","Discard suggestion","attributes","creator","ck-annotation__info-time","ck-annotation__info-name","split",'"></span>',"ck-suggestion__info","commentThreadInputView","isActive","commentThread","title","createElement","EXTERNAL_AVATAR","</span>","ck-suggestion-","name",".ck-annotation__content-wrapper","fire","_descriptionElement","editorDestroyed","ck-annotation__info","isExternal","set",'<span class="ck-suggestion-color" style="background-color: ',"descriptionParts","render","ck-annotation__main","innerHTML","delegate","ck-annotation__user",'<span class="ck-suggestion-type">',"canAccept","@external","_config"];var lc,uc;lc=cc,uc=271,function(t){for(;--t;)lc.push(lc.shift())}(++uc);const dc=function(t,e){return cc[t-=0]};class gc extends ac{constructor(e,n,o,s){super(e,n,o,s),this[dc("0x3d")](dc("0x1c"),""),this[dc("0x15")](dc("0x1c")).to(this,dc("0x3f"),(t=>t&&t[0]?t[0][dc("0x1c")]:"")),this.bind(dc("0xc")).to(this,dc("0x3f"),this,dc("0x2f"),((t,e)=>{let n="";for(const e of t)n+=dc("0x21")+mc(e[dc("0x23")],e[dc("0x3")])+"</p>";return e?n:(0,r.trimHtml)(n,{limit:140})})),this[dc("0x39")]=null,this[dc("0x52")]=this[dc("0x20")](Yo(e,dc("0x7")),t.icons.check,dc("0x54"),"acceptSuggestion","sw"),this[dc("0x52")][dc("0x15")]("isEnabled").to(this,dc("0x46")),this[dc("0x55")]=this._createButton(Yo(e,dc("0x26")),t.icons[dc("0xd")],dc("0xe"),"discardSuggestion","sw"),this[dc("0x55")][dc("0x15")](dc("0x4e")).to(this,dc("0x4a")),this.userView=new r.UserView(e,this[dc("0x50")][dc("0x16")],this[dc("0x2")]()),this.userView[dc("0x5")]({attributes:{class:["ck-suggestion__user",dc("0x44")]}}),this[dc("0x1")](this[dc("0x18")]())}[dc("0x18")](){const t=this.bindTemplate,e=[{tag:"div",attributes:{class:[dc("0x2d"),dc("0x3b")]},children:[{tag:dc("0x4c"),children:[{text:this.userView[dc("0x36")]}],attributes:{class:[dc("0x4d"),dc("0x2a")]}},{tag:dc("0x4f"),attributes:{datetime:t.to(dc("0x14")),class:[dc("0x1b"),dc("0x29")]},children:[{text:t.to("authoredAt",(t=>this[dc("0x48")].formatDateTime(t)))}]}]},{tag:dc("0x9"),attributes:{class:[dc("0x13"),dc("0x1a")]},children:[this.acceptButton,this[dc("0x55")]]},{tag:dc("0x9"),attributes:{class:[dc("0x17")]}}];this._model[dc("0x3c")]&&e.push({tag:dc("0x9"),attributes:{class:["ck-comment__external"]},children:[{text:this[dc("0x51")]()}]});const n={tag:dc("0x9"),attributes:{class:[dc("0x1d"),t.if("isActive",dc("0x0")),t.to(dc("0x1c"),(t=>dc("0x35")+t)),this[dc("0x48")].disableComments&&dc("0xf")],"data-suggestion-id":this._model.id,"data-thread-id":this._model[dc("0x30")].id,"data-author-id":this[dc("0x50")][dc("0x16")].id,tabindex:-1},children:[{tag:"div",attributes:{class:[dc("0x6"),"ck-annotation"]},children:[this[dc("0x22")],{tag:dc("0x9"),attributes:{class:["ck-suggestion__main",dc("0x41")]},children:e}]}]};return this[dc("0x1f")]&&this.commentThreadInputView&&(n[dc("0x10")][dc("0x19")](this[dc("0x1f")],this.commentThreadInputView),this[dc("0x1f")][dc("0x43")](dc("0x12")).to(this),this[dc("0x1f")][dc("0x43")](dc("0x3a")).to(this),this[dc("0x2e")][dc("0x43")]("editorReady").to(this),this.commentThreadInputView[dc("0x43")]("editorDestroyed").to(this)),n}render(){super[dc("0x40")](),this[dc("0x39")]=this[dc("0xa")].querySelector(dc("0x37")),this[dc("0x39")].innerHTML=this.description,this.on(dc("0x49"),((t,e,n)=>{this[dc("0x39")][dc("0x42")]=n}))}[dc("0x20")](t,e,n,o,r){const i=new s.ButtonView(this[dc("0x53")]);return i[dc("0x3d")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i.extendTemplate({attributes:{class:n}}),i.on(dc("0x1e"),(()=>{this[dc("0x38")](o,this[dc("0x50")].id)})),i}getExternalSuggestionNote(){return dc("0x11")===this._model[dc("0x27")][dc("0x47")].source?Yo(this[dc("0x53")],"EXTERNAL_IMPORT_WORD_SUGGESTION"):Yo(this.locale,dc("0x4"))}[dc("0x2")](){return this[dc("0x50")][dc("0x3c")]?"importWord"===this[dc("0x50")][dc("0x27")][dc("0x47")][dc("0xb")]?Yo(this[dc("0x53")],"EXTERNAL_IMPORT_WORD_AVATAR",this[dc("0x50")].creator.name):Yo(this[dc("0x53")],dc("0x33"),this[dc("0x50")][dc("0x28")][dc("0x36")]):null}}function mc(t,e){let n="";return n+=t[dc("0x2b")]("*")[dc("0x4b")](((t,e)=>e%2!=0?dc("0x45")+fc(t)+dc("0x34"):fc(t)))[dc("0x25")](""),e&&(n+=dc("0x3e")+e.value+dc("0x8")+e[dc("0x31")]+dc("0x2c")),n}function fc(t){const e=document[dc("0x32")](dc("0x4c"));return e[dc("0x24")]=t,e[dc("0x42")]}const hc=["comments.maxThreadTotalWeight","value","isMultiRange","change:activeAnnotations","getSuggestion","createAnnotationView","trackChanges.disableComments","toMany","getFirstRange","getByInnerView","commandName","requires","model","head","_refreshActiveMarkers","listenTo","_descriptionFactory","getMarkers","commentThread","execute","_destroyController","descriptionParts","from","_handleSuggestionControllerDelayed","switchbutton","has","view","getJoined","get","comments.maxCommentsWhenCollapsed","TrackChangesEditing","comments.editorConfig","suggestionLoaded","createAnnotation","innerView","isOn","focus","stopListening","plugins","discardAllSuggestions","arrowView","addSourceCollector","editing","separator","size","define","comments.maxCommentCharsWhenCollapsed","EditorAnnotations","registerAnnotation","commands","acceptAllSuggestions","pluginName","_viewToController","reduce","hasSuggestion","destroy","getDescriptions","isInContent","trackChanges","source","acceptSelectedSuggestions","CommentsUI","suggestion-","keys","isDirty","delete","buttonView","CommentsRepository","filter","add","getMarkerNames","_annotationViews","_handleControllerBuffer","locale","actionView","_bindAnnotationToEditors","getRanges","isEnabled","_updateController","getAllAdjacentSuggestions","set","editor","lowest","TrackChangesUI","Discard all suggestions","discardSelectedSuggestions","mainView","unbind","addComment","change:previous","_suggestionToController","_disableComments","refreshSelectedViews","_createUIButton","activeMarkers","acceptButton","button","Annotations","type","bind","comments","suggestionUnloaded","push"];var bc,pc;bc=hc,pc=130,function(t){for(;--t;)bc.push(bc.shift())}(++pc);const Ec=function(t,e){return hc[t-=0]};class _c extends t.Plugin{static get[Ec("0x57")](){return[Va,r.Users,"CommentsRepository",Ec("0x46"),Ec("0x14")]}static get[Ec("0x18")](){return Ec("0x38")}constructor(t){super(t),this._suggestionToController=new Map,this[Ec("0x19")]=new Map,this[Ec("0x2c")]=new Map,this._handleControllerBuffer=new Map;const e=this[Ec("0x36")].config;e[Ec("0x12")]("trackChanges.SuggestionThreadView",gc),e[Ec("0x12")](Ec("0x52"),!1),this._disableComments=e[Ec("0x1")](Ec("0x52"))}_handleSuggestionControllerDelayed(t,e){0===this[Ec("0x2d")][Ec("0x11")]&&setTimeout((()=>{for(const[t,e]of this[Ec("0x2d")]){const n=this._suggestionToController[Ec("0x65")](t);n||e?n&&e&&this[Ec("0x60")](t):this._initializeController(t)}this.editor[Ec("0xb")][Ec("0x1")]("EditorAnnotations")[Ec("0x41")](),this[Ec("0x5a")](),this._handleControllerBuffer.clear()}),10),this._handleControllerBuffer[Ec("0x35")](t,e)}init(){const t=this.editor,e=t[Ec("0xb")].get(Ec("0x3")),n=t[Ec("0xb")][Ec("0x1")](Ec("0x46")),o=t[Ec("0xb")][Ec("0x1")]("EditorAnnotations"),s=t[Ec("0xb")][Ec("0x1")](Ec("0x28"));t.ui.componentFactory[Ec("0x2a")]("trackChanges",(t=>this[Ec("0x42")](t))),o[Ec("0xe")]((()=>{const t=[];for(const[e,n]of Array[Ec("0x62")](this._suggestionToController)){const o=e[Ec("0x34")](),s=[];for(const t of o){if(!t[Ec("0x1e")])continue;if(t[Ec("0x4e")]){s[Ec("0x4b")](...t[Ec("0x31")]());continue}const e=t[Ec("0x54")]();if(s.length>0){const t=s[0][Ec("0x0")](e);if(t){s[0]=t;continue}}s[Ec("0x4b")](e)}t[Ec("0x4b")]([n[Ec("0x66")],s])}return t})),this[Ec("0x5b")](e,Ec("0x5"),((t,e)=>{this[Ec("0x5b")](e,Ec("0x3e"),((t,n,o,s)=>{e[Ec("0x1e")]&&(null==o?(this[Ec("0x33")](s[Ec("0x59")]),this[Ec("0x63")](e,!1)):(this[Ec("0x33")](o[Ec("0x59")]),this[Ec("0x63")](e,!0)))})),null===e.previous?this[Ec("0x63")](e,!1):this[Ec("0x33")](e[Ec("0x59")])})),this.listenTo(e,Ec("0x4a"),((t,e,n)=>{this[Ec("0xa")](e,Ec("0x3e")),this[Ec("0x2d")].delete(e);const o=n?n[Ec("0x59")]:e,s=this[Ec("0x3f")][Ec("0x1")](o);null!==n&&this[Ec("0x33")](o),null===n&&s&&this[Ec("0x60")](e)})),this.listenTo(e,"suggestionChanged",((t,e)=>{this[Ec("0x33")](e)})),this[Ec("0x5b")](n,Ec("0x4f"),(()=>{this[Ec("0x5a")]()})),this[Ec("0x5b")](s,Ec("0x3d"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Ec("0x1b")](n))return;const s=e[Ec("0x50")](n);this[Ec("0x3f")][Ec("0x1")](s).view[Ec("0x9")]()}),{priority:Ec("0x37")})}[Ec("0x5a")](){const t=this.editor[Ec("0xb")][Ec("0x1")](Ec("0x46")),e=this[Ec("0x36")][Ec("0xb")].get(Ec("0x3")),n=Array[Ec("0x62")](t.activeAnnotations,(t=>t[Ec("0x7")]))[Ec("0x29")]((t=>this[Ec("0x19")][Ec("0x65")](t))),o=[];for(const t of n){const e=this[Ec("0x19")][Ec("0x1")](t)[Ec("0x58")][Ec("0x34")]();o[Ec("0x4b")](...e[Ec("0x1a")](((t,e)=>[...t,...e[Ec("0x2b")]()]),[]))}e[Ec("0x43")]=o}[Ec("0x42")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Ec("0x36")].commands[Ec("0x1")](Ec("0x1f")),r=Yo(t,"Track changes");n[Ec("0x27")][Ec("0x35")]({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[Ec("0x48")](Ec("0x8")).to(o,"value"),n[Ec("0x27")].on(Ec("0x5f"),(()=>{o[Ec("0x5f")](),this[Ec("0x36")][Ec("0xf")][Ec("0x66")][Ec("0x9")]()}));const i=new e.Collection,x=[{type:Ec("0x64"),model:{withText:!0,label:r,commandName:Ec("0x1f")}},{type:Ec("0x10")},{type:"button",model:{withText:!0,label:Yo(t,"Accept all suggestions"),commandName:Ec("0x17")}},{type:Ec("0x45"),model:{withText:!0,label:Yo(t,"Accept all selected suggestions"),commandName:Ec("0x21")}},{type:Ec("0x45"),model:{withText:!0,label:Yo(t,Ec("0x39")),commandName:Ec("0xc")}},{type:Ec("0x45"),model:{withText:!0,label:Yo(t,"Discard all selected suggestions"),commandName:Ec("0x3a")}}];for(const t of x){let e={type:Ec("0x10")};if(t[Ec("0x58")]){const n=new s.Model(t.model),o=this[Ec("0x36")][Ec("0x16")][Ec("0x1")](n.commandName);n[Ec("0x48")](Ec("0x8"),Ec("0x32")).to(o,Ec("0x4d"),"isEnabled"),e={type:t[Ec("0x47")],model:n}}i[Ec("0x2a")](e)}(0,s.addListToDropdown)(n,i);const a=x[Ec("0x29")]((t=>null!=t[Ec("0x58")])).map((t=>this[Ec("0x36")].commands[Ec("0x1")](t.model[Ec("0x56")]))),c=n.buttonView;return c.actionView[Ec("0x3c")](Ec("0x32")),c[Ec("0xd")].unbind(Ec("0x32")),c[Ec("0x2f")][Ec("0x48")](Ec("0x32")).to(o,Ec("0x32")),c.arrowView[Ec("0x48")](Ec("0x32"))[Ec("0x53")](a,"isEnabled",((...t)=>t.some((t=>t)))),n.on(Ec("0x5f"),(t=>{this[Ec("0x36")][Ec("0x5f")](t[Ec("0x20")][Ec("0x56")]),this[Ec("0x36")][Ec("0xf")][Ec("0x66")][Ec("0x9")]()})),n}_initializeController(t){const e=this[Ec("0x36")],n=e.config,o=e[Ec("0xb")].get(Ec("0x46")),s=e[Ec("0xb")][Ec("0x1")]("CommentsRepository"),i=e[Ec("0xb")].get(Ec("0x14")),x=e[Ec("0xb")][Ec("0x1")](r.Users).me,a=n.get(Ec("0x1f")).SuggestionThreadView,{CommentsListView:c,CommentThreadInputView:l}=e[Ec("0xb")][Ec("0x1")](Ec("0x22"));let u,d;this[Ec("0x2c")][Ec("0x65")](t.id)?(d=this._annotationViews[Ec("0x1")](t.id),u=d.mainView):(u=new a(e[Ec("0x2e")],t,x,{disableComments:this[Ec("0x40")],editorConfig:n[Ec("0x1")](Ec("0x4")),maxCommentsWhenCollapsed:n[Ec("0x1")](Ec("0x2")),maxThreadTotalWeight:n[Ec("0x1")](Ec("0x4c")),maxCommentCharsWhenCollapsed:n[Ec("0x1")](Ec("0x13")),formatDateTime:(0,r.getDateTimeFormatter)(n[Ec("0x1")](Ec("0x2e"))),CommentView:n[Ec("0x1")](Ec("0x49")).CommentView,CommentsListView:c,CommentThreadInputView:l}),u[Ec("0x44")].on(Ec("0x5f"),(()=>{e[Ec("0xf")][Ec("0x66")][Ec("0x9")]()})),u.discardButton.on(Ec("0x5f"),(()=>{e.editing[Ec("0x66")][Ec("0x9")]()})),d=o[Ec("0x51")](this[Ec("0x36")].locale,u),d[Ec("0x48")]("isDirty").to(u,Ec("0x25")),d.bind("length").to(u),d[Ec("0x48")](Ec("0x47")).to(u,Ec("0x47"),(t=>Ec("0x23")+t)),this[Ec("0x2c")][Ec("0x35")](t.id,d));const g=s.createCommentThreadController(t[Ec("0x5e")],u),m=new oc(e,t,u,g),f=t.getAllAdjacentSuggestions()[Ec("0x29")]((t=>t.isInContent));u[Ec("0x61")]=e[Ec("0xb")][Ec("0x1")](Ec("0x3"))[Ec("0x5c")][Ec("0x1d")](f),this[Ec("0x3f")].set(t,m),this[Ec("0x19")].set(u,m);const h=o[Ec("0x6")]({view:d,target:()=>{const n=[],o=t[Ec("0x34")]().filter((t=>t[Ec("0x1e")]));for(const t of o)n[Ec("0x4b")](...t[Ec("0x5d")]());return(0,r.getAllMarkersDomElementsSorted)(e[Ec("0xf")],n)},type:()=>Ec("0x23")+m[Ec("0x66")][Ec("0x47")]});s[Ec("0x30")](u,h),o[Ec("0x2a")](h),i[Ec("0x15")](h)}[Ec("0x60")](t){const e=this.editor[Ec("0xb")][Ec("0x1")](Ec("0x46")),n=this[Ec("0x3f")].get(t),o=n.view,s=e[Ec("0x55")](o);s&&e.remove(s),this[Ec("0x3f")][Ec("0x26")](t),this[Ec("0x19")][Ec("0x26")](o),n[Ec("0x1c")]()}_updateController(t){if(!t[Ec("0x1e")]||!this[Ec("0x3f")][Ec("0x65")](t))return;const e=this[Ec("0x36")][Ec("0xb")][Ec("0x1")](Ec("0x3")),n=this[Ec("0x3f")][Ec("0x1")](t),o=t.getAllAdjacentSuggestions();n[Ec("0x66")][Ec("0x61")]=e._descriptionFactory[Ec("0x1d")](o)}[Ec("0x1c")](){for(const t of this[Ec("0x3f")][Ec("0x24")]())this[Ec("0x60")](t);for(const t of this[Ec("0x2c")].values())t[Ec("0x3b")][Ec("0x1c")]();super[Ec("0x1c")]()}}var Tc,Cc,yc=["requires","Comments","plugins","getSuggestion","pluginName","adapter","addSuggestion","get","editor","getSuggestions","addSuggestionData"];Tc=yc,Cc=206,function(t){for(;--t;)Tc.push(Tc.shift())}(++Cc);var kc=function(t,e){return yc[t-=0]};class Ac extends t.Plugin{static get[kc("0x3")](){return[Va,_c,kc("0x4")]}static get[kc("0x7")](){return"TrackChanges"}set adapter(t){this[kc("0x0")][kc("0x5")][kc("0xa")](Va)[kc("0x8")]=t}get[kc("0x8")](){return this.editor.plugins[kc("0xa")](Va)[kc("0x8")]}[kc("0x9")](t){return this[kc("0x0")][kc("0x5")].get(Va)[kc("0x2")](t)}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[kc("0x0")].plugins[kc("0xa")](Va)[kc("0x1")]({skipNotAttached:t,toJSON:e})}[kc("0x6")](t){return this[kc("0x0")][kc("0x5")][kc("0xa")](Va).getSuggestion(t)}}const vc=["getUser","name","users","TrackChangesDataGetter","model","getDataWithAcceptedSuggestions","pluginName","map","useAnonymousUser","getRootNames","appendChild","execute","getSuggestions","init","editor","Users","trackChangesData","create","_adapter","TrackChangesEditing","discardAllSuggestions","plugins","acceptAllSuggestions","createDocumentFragment","editorCreator","config","destroy","addUser","constructor","getRootsAttributes","end","addSuggestionData","Pagination","get","getFullData","TrackChangesData","div","reduce","trackChangesData.editorCreator","function","document","data","push"];var Rc,Sc;Rc=vc,Sc=171,function(t){for(;--t;)Rc.push(Rc.shift())}(++Sc);const Ic=function(t,e){return vc[t-=0]},Lc=[Ic("0x21")];class Nc extends t.Plugin{static get requires(){return[Va]}static get[Ic("0x7")](){return Ic("0x24")}[Ic("0xe")](){const t=this.editor;if(t[Ic("0x1a")].define(Ic("0x27"),(e=>{const n=t[Ic("0x5")][Ic("0x29")][Ic("0xa")]()[Ic("0x26")](((t,e)=>(t[e]="",t)),{});return t[Ic("0x1d")][Ic("0x12")](n,e)})),Ic("0x28")!=typeof t.config.get("trackChangesData")[Ic("0x19")])throw new e.CKEditorError("track-changes-data-invalid-editor-creator")}[Ic("0x6")](t){return Oc(this[Ic("0xf")],!0,t)}getDataWithDiscardedSuggestions(t){return Oc(this[Ic("0xf")],!1,t)}}class Mc extends t.Plugin{static get[Ic("0x7")](){return Ic("0x4")}constructor(t){super(t),this.result=Ic("0x1f")}init(){this[Ic("0xf")][Ic("0x16")][Ic("0x22")]("CommentsRepository")._adapter={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this.editor[Ic("0x16")].get("TrackChangesEditing")[Ic("0x13")]=null}}function wc(t){return void 0!==t[Ic("0x1e")]}async function Oc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Lc);o.plugins[Ic("0x0")](Va,Mc),o.rootsAttributes=wc(t)?t[Ic("0x1e")]():void 0;const s=document[Ic("0x18")](),i=t[Ic("0x1a")][Ic("0x22")](Ic("0x11")).editorCreator,x=await i(o,(()=>function(t){const e=document.createElement(Ic("0x25"));return t[Ic("0xb")](e),e}(s)));!function(t,e){const n=t.model[Ic("0x29")][Ic("0xa")]()[Ic("0x26")](((e,n)=>(e[n]=t[Ic("0x2a")].get({rootName:n}),e)),{}),o=t[Ic("0x16")].get(Ic("0x10"))[Ic("0x3")][Ic("0x8")]((t=>({id:t.id,name:t[Ic("0x2")]}))),s=t[Ic("0x16")].get(Ic("0x14"))[Ic("0xd")]({skipNotAttached:!0,toJSON:!0}),r=e[Ic("0x16")][Ic("0x22")]("Users"),i=e[Ic("0x16")][Ic("0x22")](Ic("0x14"));for(const t of o)r[Ic("0x1")](t.id)||r[Ic("0x1c")](t);r.me||r[Ic("0x9")]();for(const t of s)i[Ic("0x20")](t);e[Ic("0x2a")].set(n)}(t,x),x[Ic("0xc")](Ic(e?"0x17":"0x15"));const a=wc(x)?x[Ic("0x23")](n):x[Ic("0x2a")][Ic("0x22")](n);return await x[Ic("0x1b")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|
|
5
|
+
*/(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var s=e[o];if(void 0!==s)return s.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>ac,TrackChanges:()=>Ac,TrackChangesData:()=>Nc,TrackChangesEditing:()=>Wa});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["_enableCommands","_isEnabledBasedOnSelection","TrackChangesCommand","has","refresh","value","affectsData","execute","clearForceDisabled","editor","commands","_disableUnsupportedCommands","forceDisabled","isEnabled"];var c,l;c=a,l=438,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this._enabledCommands=e,this[u("0x1")]=!1,this.refresh(),this[u("0xb")]=!1}[u("0x0")](){this[u("0x9")]=!0}[u("0x3")](){this[u("0x1")]=!this.value,this[u("0x1")]?this[u("0x7")]():this[u("0xa")]()}[u("0x7")](){for(const t of this[u("0x5")].commands[u("0x6")]())t[u("0x2")]&&!this._enabledCommands[u("0xd")](t)&&t[u("0x8")](u("0xc"))}[u("0xa")](){for(const t of this[u("0x5")][u("0x6")][u("0x6")]())t[u("0x2")]&&!this._enabledCommands[u("0xd")](t)&&t[u("0x4")](u("0xc"))}}const g=["getRanges","acceptSuggestion","TrackChangesEditing","editor","plugins","_suggestions","model","_isEnabledBasedOnSelection","canEditAt","isEnabled","execute","refresh"];var m,f;m=g,f=376,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("0x1")]=e,this[h("0x7")](),this[h("0x3")]=!1}[h("0x7")](){this[h("0x5")]=!0}[h("0x6")](t){const n=this[h("0x1")].get(t);if(!n)throw new e.CKEditorError("track-changes-accept-suggestion-not-found",this);const o=n[h("0x8")]();this[h("0xb")][h("0x2")][h("0x4")](o)&&this.editor[h("0x0")].get(h("0xa"))[h("0x9")](n)}}const b=["isEnabled","editor","TrackChangesEditing","execute","getRanges","get","_suggestions","model","track-changes-discard-suggestion-not-found","refresh","_isEnabledBasedOnSelection","canEditAt","discardSuggestion"];var E,_;E=b,_=465,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class C extends t.Command{constructor(t,e){super(t),this[T("0x9")]=e,this[T("0xc")](),this[T("0x0")]=!1}[T("0xc")](){this[T("0x3")]=!0}[T("0x6")](t){const n=this._suggestions[T("0x8")](t);if(!n)throw new e.CKEditorError(T("0xb"),this);const o=n[T("0x7")]();this[T("0x4")][T("0xa")][T("0x1")](o)&&this[T("0x4")].plugins[T("0x8")](T("0x5"))[T("0x2")](n)}}const y=["start","length","createPositionAfter","change","schema","isArray","map","replace","getRange","isTouching","value","createPositionAt","isInContent","end","createRange"," [color ","isMultiRange","push","type","createPositionBefore","isObject","splice","getMarkers","from","deletion","isIntersecting"];var k,A;k=y,A=171,function(t){for(;--t;)k.push(k.shift())}(++A);const R=function(t,e){return y[t-=0]};function v(t){return t.sort(((t,e)=>R("0x9")==t[R("0x3")]&&R("0x9")!=e[R("0x3")]?-1:R("0x9")!=t[R("0x3")]&&R("0x9")==e.type?1:0))}function I(t,e){let n,o=0;const s=[],r=e[R("0xf")];for(;o<t[R("0xc")];){const i=t[o],x=t[o+1];n||(n=e[R("0x4")](i)),S(e,i,x)||(s[R("0x2")](e[R("0x19")](n,r[R("0x5")](i)?e[R("0xd")](i):e[R("0x16")](i,R("0x18")))),n=null),o++}return s}function S(t,e,n){if(!n)return!1;const o=t[R("0xd")](e),s=t[R("0x4")](n);return o.isTouching(s)}function L(t,e,n){for(;n[R("0xc")];){const o=n[R("0x6")](0,100);t[R("0xe")]((()=>{for(const t of o)t.isInContent&&e.execute(t.id)}))}}const N=["canEditAt","values","_suggestions","_command","isEnabled","execute","_isEnabledBasedOnSelection","editor","model","refresh","isInContent","getRanges"];var M,w;M=N,w=404,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("0x7")]=e,this[O("0x6")]=n,this[O("0x1")](),this[O("0xa")]=!1}[O("0x1")](){const t=Array.from(this._suggestions[O("0x5")]()).some((t=>t[O("0x2")]));this[O("0x8")]=this[O("0x7")].isEnabled&&t}[O("0x9")](){const t=v(Array.from(this[O("0x6")][O("0x5")]()));for(const e of t){const t=e[O("0x3")]();if(!this[O("0xb")][O("0x0")][O("0x4")](t))return}L(this.editor[O("0x0")],this[O("0x7")],t)}}const P=["_command","from","document","execute","isEnabled","selection","refresh","editor","model","values","getRanges","_suggestions","_selectedSuggestions","size"];var D,B;D=P,B=345,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("0x5")]=e,this[j("0x2")]=n,this._selectedSuggestions=new Set,this[j("0xb")](),this._isEnabledBasedOnSelection=!1}[j("0xb")](){const t=this[j("0xc")][j("0xd")][j("0x7")][j("0xa")],e=Array.from(this._suggestions[j("0x0")]());this._selectedSuggestions=function(t,e){const n=Array[R("0x8")](t.getRanges()),o=new Set;for(const s of e)if(s[R("0x17")])for(const e of n)for(const n of s[R("0x7")]()){const r=n[R("0x13")]();(e[R("0xa")](r)||t.isCollapsed&&!s[R("0x1")]&&s.next&&r[R("0x18")][R("0x14")](e[R("0xb")]))&&o.add(s)}return o}(t,e),this.isEnabled=this._command[j("0x9")]&&!!this[j("0x3")][j("0x4")]}[j("0x8")](){const t=v(Array[j("0x6")](this[j("0x3")]));for(const e of t){const t=e[j("0x1")]();if(!this[j("0xc")][j("0xd")].canEditAt(t))return}L(this.editor[j("0xd")],this[j("0x5")],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 ut=function(t){return lt.call(t)};var dt=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,Rt=kt.hasOwnProperty,vt=RegExp("^"+At.call(Rt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const It=function(t){return!(!mt(t)||Et(t))&&(ft(t)?vt: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 x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var 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,Re=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,ve=Re&&Re.exports===Ae&&et.process;const Ie=function(){try{var t=Re&&Re.require&&Re.require("util").types;return t||ve&&ve.binding&&ve.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&&de(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var 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 un=function(t){return ln(t,Ue,on)};const dn=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),Rn=Tt(hn),vn=gt;(gn&&vn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&vn(new Nt)!=pn||mn&&vn(mn.resolve())!=bn||fn&&vn(new fn)!=En||hn&&vn(new hn)!=_n)&&(vn=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 Rn:return _n}return e});const In=vn;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(xn(t))};const Wn=function(t){return xe(t)&&"[object Map]"==In(t)};var Vn=Ie&&Ie.isMap;const Kn=Vn?ke(Vn):Wn;const qn=function(t){return xe(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 x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var u=ge(e);if(u){if(x=Ln(e),!a)return Ze(e,x)}else{var d=In(e),g=d==Qn||"[object GeneratorFunction]"==d;if(be(e))return Qe(e,a);if(d==Zn||d==Jn||g&&!r){if(x=c||g?{}:zn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[d])return r?e:{};x=Un(e,d,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),$n(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var f=u?void 0:(l?c?dn:un:c?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=po(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const 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 Ro=function(t,e){return t.has(e)};const vo=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++u<x;){var m=t[u],f=e[u];if(o)var h=i?o(f,m,u,e,t,r):o(m,f,u,t,e,r);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!Ao(e,(function(t,e){if(!Ro(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){d=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){d=!1;break}}return r.delete(t),r.delete(e),d};const 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 x=Io;case"[object Set]":var a=1&o;if(x||(x=So),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=vo(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:wo.call(e,l)))return!1}var u=r.get(t),d=r.get(e);if(u&&d)return u==e&&d==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===p?f===h||s(f,h,n,o,r):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po:In(t),c=x?Po:In(e),l=(a=a==Fo?Do:a)==Do,u=(c=c==Fo?Do:c)==Do,d=a==c;if(d&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(d&&!l)return r||(r=new Yt),i||Le(t)?vo(t,e,n,o,s,r):Mo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=u&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!d&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const 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=["push","getContainedElement","subType","start","removeAttribute","onAccept","getMarkerNames","getFirstRange","filter","add","commentThread","accept","_markerNames","decorate","onDiscard","nodeAfter","getMultiRangeId","onAttributesChange","getMarkers","attributes","from","_saved","getItems","author","delete","markers","size","_model","substr","getFirstMarker","isInContent","authoredAt","isIntersectingWithRange","next","@external","addMarkerName","getRanges","_onAttributesChange","head","previous","map","_onDiscard","addRange","removeMarker","createdAt","isExternal","get","hasComments","nodeBefore","getAllAdjacentSuggestions","change","getRange","type","removeMarkers","length","discard","creator","setAttribute","set","_onAccept"];var $o,Jo;$o=Xo,Jo=132,function(t){for(;--t;)$o.push($o.shift())}(++Jo);const Qo=function(t,e){return Xo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this.id=e.id,this[Qo("0x28")]=e.type,this[Qo("0x32")]=e.subType||null,this[Qo("0xb")]=e[Qo("0xb")],this[Qo("0x2c")]=e[Qo("0x2c")]||e.author,this[Qo("0x21")]=Boolean(e.attributes&&e[Qo("0x7")][Qo("0x16")]),this.data=null,this[Qo("0xf")]=t,this._onAccept=e[Qo("0x35")],this[Qo("0x1d")]=e[Qo("0x2")],this[Qo("0x19")]=e[Qo("0x5")],this._markerNames=new Set,this[Qo("0x20")]=null,this[Qo("0x2e")](Qo("0x13"),null),this.set("attributes",e.attributes||{}),this[Qo("0x2e")](Qo("0x1b"),null),this[Qo("0x2e")](Qo("0x15"),null),this[Qo("0x2e")]("commentThread",null),this.set(Qo("0x9"),!1),this[Qo("0x1")]("accept"),this[Qo("0x1")](Qo("0x2b"))}get[Qo("0x1a")](){let t=this;for(;t[Qo("0x1b")];)t=t[Qo("0x1b")];return t}get[Qo("0x23")](){return!!this[Qo("0x3a")]&&this[Qo("0x3a")][Qo("0x2a")]>0}get isMultiRange(){return 0!=this[Qo("0x0")][Qo("0xe")]&&6==Array[Qo("0x8")](this[Qo("0x0")])[0].split(":")[Qo("0x2a")]}get[Qo("0x12")](){return null!==this.getFirstMarker()}[Qo("0x17")](t){this[Qo("0x0")][Qo("0x39")](t)}[Qo("0x36")](){return Array[Qo("0x8")](this[Qo("0x0")])}[Qo("0x6")](){return this[Qo("0x36")]()[Qo("0x1c")]((t=>this[Qo("0xf")][Qo("0xd")][Qo("0x22")](t)))[Qo("0x38")]((t=>t))}[Qo("0x11")](){return this[Qo("0x6")]()[0]||null}[Qo("0x29")](){this[Qo("0xf")].change((t=>{for(const e of this[Qo("0x6")]())t[Qo("0x1f")](e)})),this[Qo("0x0")].clear()}[Qo("0x1f")](t){this._model[Qo("0x26")]((e=>{e.removeMarker(t)})),this[Qo("0x0")][Qo("0xc")](t)}[Qo("0x1e")](t){const e="suggestion:"+this[Qo("0x28")]+":"+this[Qo("0x32")]+":"+this.id+":"+this[Qo("0x2c")].id+":"+Zo[Qo("0x4")]();this.addMarkerName(e),this[Qo("0xf")][Qo("0x26")]((n=>{n.addMarker(e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x14")](t){for(const e of this[Qo("0x18")]())if(e.isIntersecting(t))return!0;return!1}[Qo("0x18")](){return this[Qo("0x6")]().map((t=>t[Qo("0x27")]()))}[Qo("0xa")](){return this[Qo("0x18")]().reduce(((t,e)=>[...t,...e.getItems()]),[])}[Qo("0x37")](){var t;return(null===(t=this.getFirstMarker())||void 0===t?void 0:t[Qo("0x27")]())||null}[Qo("0x31")](){const t=this.getRanges();if(1!=t[Qo("0x2a")])return null;const e=t[0],n=e[Qo("0x33")][Qo("0x3")],o=e.end[Qo("0x24")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0x3b")](){this[Qo("0x2f")](this[Qo("0x18")](),this.data,this.attributes),this[Qo("0x29")]()}[Qo("0x2b")](){this._onDiscard(this[Qo("0x18")](),this.data,this.attributes),this[Qo("0x29")]()}[Qo("0x25")](){const t=[];let e=this[Qo("0x1a")];for(;e;)t[Qo("0x30")](e),e=e[Qo("0x15")];return t}[Qo("0x2d")](t,e){const n=eo(this[Qo("0x7")]);_o(n,t,e),Go(n,this[Qo("0x7")])||(this.attributes=n,this[Qo("0x19")](n))}[Qo("0x34")](t){const e=eo(this[Qo("0x7")]);qo(e,t),Go(e,this[Qo("0x7")])||(this[Qo("0x7")]=e,this[Qo("0x19")](this.attributes))}toJSON(){return{id:this.id,type:this.subType?this[Qo("0x28")]+":"+this.subType:this[Qo("0x28")],authorId:this[Qo("0x2c")].id,createdAt:this.createdAt,hasComments:this[Qo("0x23")],data:this.data,attributes:this.attributes}}static[Qo("0x4")](){return(0,e.uid)()[Qo("0x10")](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=["getDescriptions","_customCallbacks","elementStart","Container","removeEmptyContainer","Object","_itemLabelsCallbacks","pop","end","removeObject","_itemLabels","addContainer","isEqual","$textProxy","remove","insertion","*Remove:* %0","registerElementLabel","get","getItemLabel","getFirstRange","softBreak","isEmpty","ELEMENT_SPACE","addObject","skip","_schema","quantity","replace","checkChild","type","text","$text","name","isObject","push","addEmptyContainer","indexOf","data","_addDescriptionItems","EmptyContainer","length","function","nextSibling","elementEnd","item","add","_locale","previousSibling","element","REPLACE_TEXT","_resolveDescriptionItems","*Merge:* %0","$1 $2","label","registerDescriptionCallback","set","*Insert:* %0","deletion"];var es,ns;es=ts,ns=434,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("0x27")]=[],this[os("0x30")]=new Map,this[os("0x2c")]=[],this[os("0x5")]=t,this[os("0x1a")]=e}[os("0x26")](t){const e=[];for(let n=0;n<t[os("0x14")];n++){const o=t[n];if(!o.isInContent)continue;let s=!1;for(const t of this[os("0x27")]){const n=t(o);if(n){"type"in n&&e.push(n),s=!0;break}}if(!s){this._addDescriptionItems(e,o);const s=t[n+1];if(s&&!o[os("0x3a")]()[os("0x2e")][os("0x32")](s.getFirstRange().start)){const t=e[e.length-1],n=os("0x35")==o[os("0x9")]?os("0x19"):os("0x34");t&&os("0xa")==t.type&&(t[n]+="\n")}}}return this._resolveDescriptionItems(e)}[os("0x22")](t){this._customCallbacks.push(t)}[os("0x37")](t,n,o=e.priorities.normal){os("0x15")==typeof t?(0,e.insertToPriorityArray)(this[os("0x2c")],{matchingCallback:t,label:n,priority:o}):this[os("0x30")][os("0x23")](t,n)}[os("0x39")](t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e.matchingCallback(t)){n=e[os("0x21")];break}return n||(n=this._itemLabels[os("0x38")](t[os("0xc")])),n?n(e):1!==e?e+" "+t[os("0xc")]+"s":""+t[os("0xc")]}[os("0x12")](t,e){const n=e[os("0x3a")]().getWalker(),o=os("0x35")==e.type?os("0x19"):os("0x34");for(const e of n){const s=e[os("0x18")],r=t[t[os("0x14")]-1];if(s.is(os("0x33")))r&&r[os("0x9")][os("0x10")](os("0x29"))>-1&&t[os("0x2d")](),r&&os("0xa")==r[os("0x9")]?r[o]+=s.data:t[os("0xe")]({type:"text",add:os("0x19")==o?s.data:"",remove:os("0x34")==o?s[os("0x11")]:""});else if(this[os("0x5")][os("0xd")](s)){const i=s;if(r&&r.type[os("0x10")](os("0x29"))>-1&&t[os("0x2d")](),os("0x17")==e[os("0x9")])continue;r&&r.type==o+os("0x2b")&&r[os("0x1c")].name==i.name?r[os("0x6")]++:t[os("0xe")]({type:o+"Object",element:i,quantity:1}),n[os("0x4")]((t=>!(os("0x17")==t[os("0x9")]&&t[os("0x18")]==s)))}else if(this._schema[os("0x8")](s,os("0xb"))||s.is(os("0x1c"),os("0x0"))){const n=s;if(os("0x19")==o&&os("0x28")==e[os("0x9")]||os("0x34")==o&&os("0x17")==e.type)continue;if(r&&-1==r[os("0x9")].indexOf("Container")){os("0xa")==r.type&&(r[o]+="\n");continue}let i;if(i=os("0x19")==o?n[os("0x16")]&&!this[os("0x5")][os("0xd")](n[os("0x16")])?n[os("0x16")]:null:n[os("0x1b")]&&!this[os("0x5")][os("0xd")](n[os("0x1b")])?n[os("0x1b")]:null,n[os("0x1")]||i&&i.isEmpty){const e=i&&i[os("0x1")]?i:n;r&&r[os("0x9")]==o+os("0x13")&&r[os("0x1c")][os("0xc")]==e.name?r[os("0x6")]++:t[os("0xe")]({type:o+os("0x13"),element:e,quantity:1})}else t.push({type:o+"Container",element:n})}}}[os("0x1e")](t){const e=this[os("0x1a")],n=[];for(const o of t){switch(o[os("0x9")]){case"text":if(o.add=o[os("0x19")][os("0x7")](/(\S)\u000A+(\S)/g,os("0x20"))[os("0x7")](/\u000A/g,""),o[os("0x34")]=o.remove.replace(/(\S)\u000A+(\S)/g,os("0x20"))[os("0x7")](/\u000A/g,""),""!=o[os("0x19")]&&""!=o[os("0x34")]){n[os("0xe")]({type:os("0x7"),content:Yo(e,os("0x1d"),['"'+o.remove+'"','"'+o[os("0x19")]+'"'])});continue}if(null!=o[os("0x19")].match(/^ +$/)){n.push({type:os("0x35"),content:Yo(e,os("0x24"),Yo(e,os("0x2"),o[os("0x19")][os("0x14")]))});continue}if(null!=o.remove.match(/^ +$/)){n.push({type:os("0x25"),content:Yo(e,os("0x36"),Yo(e,os("0x2"),o[os("0x34")][os("0x14")]))});continue}if(""!=o[os("0x19")]){n[os("0xe")]({type:os("0x35"),content:Yo(e,os("0x24"),'"'+o[os("0x19")]+'"')});continue}n[os("0xe")]({type:os("0x25"),content:Yo(e,os("0x36"),'"'+o[os("0x34")]+'"')});continue;case os("0xf"):case os("0x3"):n[os("0xe")]({type:os("0x35"),content:Yo(e,os("0x24"),this[os("0x39")](o[os("0x1c")],o[os("0x6")]))});continue;case os("0x2a"):case os("0x2f"):n[os("0xe")]({type:"deletion",content:Yo(e,os("0x36"),this.getItemLabel(o[os("0x1c")],o.quantity))});continue;case os("0x31"):n[os("0xe")]({type:os("0x35"),content:Yo(e,"*Split:* %0",this.getItemLabel(o[os("0x1c")],o[os("0x6")]))});continue;case"removeContainer":n[os("0xe")]({type:os("0x25"),content:Yo(e,os("0x1f"),this[os("0x39")](o[os("0x1c")],o[os("0x6")]))});continue}n[os("0xe")](o)}return n}}const rs=["justify","TrackChangesEditing","center","getSelectedBlocks","getAttribute","locale","ltr","left","value","FORMAT_ALIGN_TO_LEFT","FORMAT_ALIGN_TO_RIGHT","has","commandName","plugins","enableCommand","change","filter","alignment","*Format:* %0","editor","FORMAT_ALIGN_TO_CENTER","FORMAT_JUSTIFY_TEXT","from","_descriptionFactory","right","AlignmentEditing","markBlockFormat","model","selection","format"];var is,xs;is=rs,xs=457,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{afterInit(){const t=this.editor,e=t[as("0x1c")];if(!t[as("0x6")][as("0x4")](as("0x12")))return;const n=t[as("0x6")].get(as("0x18"));n[as("0x7")](as("0xa"),((e,o={})=>{let s=o[as("0x1")];o[as("0x1")]||(s=as("0x1d")===t[as("0x1c")].contentLanguageDirection?"left":as("0x11"));const r=Array[as("0xf")](this[as("0xc")][as("0x14")].document[as("0x15")][as("0x1a")]())[as("0x9")]((t=>function(t,e,n){const o=t[as("0x1b")](as("0xa"))||null;return e.checkAttribute(t,as("0xa"))&&n!=o}(t,this.editor[as("0x14")].schema,s)));t[as("0x14")][as("0x8")]((()=>{for(const t of r)n[as("0x13")](t,{commandName:as("0xa"),commandParams:[{value:s}]})}))})),n[as("0x10")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&"alignment"==n[as("0x5")]){const t=n.commandParams[0].value;return{type:as("0x16"),content:Yo(e,as("0xb"),function(t){switch(t){case as("0x0"):return Yo(e,as("0x2"));case as("0x11"):return Yo(e,as("0x3"));case as("0x19"):return Yo(e,as("0xd"));case as("0x17"):return Yo(e,as("0xe"))}}(t))}}}))}}const ls=["start","toViewElement","TrackChangesEditing","getCustomProperty","consumable","previousPosition","model","type","listItem","span","hasAttribute","plugins","markerRange","isLimit","toViewPosition","writer","getItems","push","createRangeOn","bindElementToMarker","get","elementEnd","mapper","isBlock","markerName","addHighlight","getWalker","item","listIndent","nextSibling","insert","addClass","element"];var us,ds;us=ls,ds=403,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e[gs("0x9")]())s[gs("0x3")](t)&&o[gs("0xa")](n[gs("0xb")](s));return o}function fs(t){const e=[];if(t.is(gs("0x19"),gs("0x1"))){let n=t[gs("0x16")];for(;n&&n.is(gs("0x19"),gs("0x1"))&&n.getAttribute(gs("0x15"))>0;)e[gs("0xa")](n),n=n[gs("0x16")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t[gs("0x4")][gs("0xd")](gs("0x1c"));return(s,r,i)=>{if(!i[gs("0x1e")].test(r.markerRange,s.name))return;const x=r.markerRange[gs("0x13")](),a=r[gs("0x5")][gs("0x1a")],c=t[gs("0x20")].schema;let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[gs("0x14")];d=d||c.isContent(e);const n=i[gs("0xf")][gs("0x1b")](e);if(n&&n[gs("0x1d")](gs("0x12")))return;gs("0xe")==t[gs("0x0")]&&c[gs("0x10")](e)&&!c[gs("0x6")](e)&&(e[gs("0x16")]||a.isAtEnd?l&&l.parent==e||(l=e,m(t[gs("0x1f")]),g=!0):u=u||t[gs("0x1f")])}function m(t){const s=i[gs("0x8")].createUIElement(gs("0x2"),{class:"ck-suggestion-marker-"+e}),x=i[gs("0xf")][gs("0x7")](t);n&&o.activeMarkers.includes(r.markerName)&&i[gs("0x8")][gs("0x18")]("ck-suggestion-marker--active",s),i[gs("0x8")][gs("0x17")](x,s),i[gs("0xf")][gs("0xc")](s,r[gs("0x11")])}d||g||!u||m(u)}}const ps=["getRanges","_descriptionFactory","locale","FORMAT_BOLD","UnderlineEditing","commandName","*Format:* %0","toLowerCase","FORMAT_UNDERLINE","selection","code","has","SubscriptEditing","subscript","forceValue","*Remove format:* %0","from","model","strikethrough","document","plugins","FORMAT_SUPERSCRIPT","afterInit","registerDescriptionCallback","format","TrackChangesEditing","FORMAT_STRIKETHROUGH","CodeEditing","BoldEditing","get","change","markInlineFormat","editor","SuperscriptEditing","StrikethroughEditing","value","enableCommand","italic","superscript"];var bs,Es;bs=ps,Es=358,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=[_s("0x15"),"ItalicEditing",_s("0x24"),_s("0x14"),_s("0x1b"),_s("0x5"),_s("0x1a")];class Cs extends t.Plugin{[_s("0xf")](){const t=this[_s("0x19")],e=t[_s("0xa")],n=t.plugins[_s("0x16")](_s("0x12")),o=t[_s("0x22")];for(const o of Ts){if(!t[_s("0xd")][_s("0x4")](o))continue;const s=o.slice(0,-7)[_s("0x0")](),r=t.commands[_s("0x16")](s);n[_s("0x1d")](s,((t,o={})=>{const i=e[_s("0xc")][_s("0x2")];if(i.isCollapsed)return void t(o);const x=void 0!==o[_s("0x7")]?o[_s("0x7")]:!r[_s("0x1c")];e[_s("0x17")]((()=>{const t=Array[_s("0x9")](i[_s("0x20")]());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n[_s("0x18")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[_s("0x21")][_s("0x10")]((n=>{const{data:s}=n;if(s&&s[_s("0x25")]===t)return s.commandParams[0][_s("0x7")]?{type:"format",content:Yo(o,_s("0x26"),e)}:{type:_s("0x11"),content:Yo(o,_s("0x8"),e)}}))}s("bold",Yo(o,_s("0x23"))),s(_s("0x1e"),Yo(o,"FORMAT_ITALIC")),s("underline",Yo(o,_s("0x1"))),s(_s("0x3"),Yo(o,"FORMAT_CODE")),s(_s("0xb"),Yo(o,_s("0x13"))),s(_s("0x6"),Yo(o,"FORMAT_SUBSCRIPT")),s(_s("0x1f"),Yo(o,_s("0xe")))}}const ys=["blockQuote","locale","document","schema","commands","registerDescriptionCallback","getSelectedBlocks","afterInit","editor","filter","plugins","model","selection","parent","forceValue","$root","_descriptionFactory","ELEMENT_BLOCK_QUOTE","from","TrackChangesEditing","checkChild","commandParams","markBlockFormat","BlockQuoteEditing","get","value","enableCommand","commandName","*Remove format:* %0"];var ks,As;ks=ys,As=290,function(t){for(;--t;)ks.push(ks.shift())}(++As);const Rs=function(t,e){return ys[t-=0]};class vs extends t.Plugin{[Rs("0x7")](){const t=this.editor,e=t[Rs("0x1")];if(!t[Rs("0xa")].has(Rs("0x17")))return;const n=t[Rs("0xa")][Rs("0x18")](Rs("0x13")),o=this[Rs("0x8")][Rs("0x4")][Rs("0x18")](Rs("0x0"));n[Rs("0x1a")]("blockQuote",((e,s={})=>{const r=this[Rs("0x8")][Rs("0xb")][Rs("0x2")][Rs("0xc")],i=s&&void 0!==s[Rs("0xe")]?s[Rs("0xe")]:!o[Rs("0x19")];let x=[];if(i){const e=Array[Rs("0x12")](r[Rs("0x6")]())[Rs("0x9")]((t=>Is(t)||function(t,e){const n=e.checkChild(t.parent,Rs("0x0")),o=e[Rs("0x14")]([Rs("0xf"),Rs("0x0")],t);return n&&o}(t,this[Rs("0x8")][Rs("0xb")][Rs("0x3")])));x=I(e,t[Rs("0xb")])}else{const e=Array.from(r[Rs("0x6")]())[Rs("0x9")]((t=>Is(t)));x=I(e,t[Rs("0xb")])}t.model.change((()=>{for(const t of x)n[Rs("0x16")](t,{commandName:Rs("0x0"),commandParams:[{forceValue:i}]})}))})),n[Rs("0x10")][Rs("0x5")]((t=>{const{data:n}=t;if(n&&Rs("0x0")==n[Rs("0x1b")]){const t=Yo(e,Rs("0x11"));return n[Rs("0x15")][0].forceValue?{type:"format",content:Yo(e,"*Format:* %0",t)}:{type:"format",content:Yo(e,Rs("0x1c"),t)}}}))}}function Is(t){return Rs("0x0")==t[Rs("0xd")].name}const Ss=["get","commands","enableCommand","ckbox"];var Ls,Ns;Ls=Ss,Ns=460,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const Ms=function(t,e){return Ss[t-=0]};class ws extends t.Plugin{afterInit(){const t=this.editor;t[Ms("0x1")][Ms("0x0")]("ckbox")&&t.plugins[Ms("0x0")]("TrackChangesEditing")[Ms("0x2")](Ms("0x3"))}}const Os=["formatBlock","value","parent","config","ELEMENT_CODE_BLOCK","editor","change","label","language","_descriptionFactory","isLimit","document","has","registerDescriptionCallback","CodeBlock","getSelectedBlocks","TrackChangesEditing","afterInit","get","indentCodeBlock","enableCommand","model","name","outdentCodeBlock","selection","codeBlock","format","find","commandName","commandParams","forceValue","*Remove format:* %0","from","filter","plugins","languages"];var Fs,Ps;Fs=Os,Ps=242,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x1b")](){const t=this[Ds("0xf")];if(!t[Ds("0x8")][Ds("0x16")](Ds("0x18")))return;const e=t[Ds("0x8")][Ds("0x1c")](Ds("0x1a")),n=t.locale,o=t[Ds("0xd")][Ds("0x1c")](Ds("0x23"))[Ds("0x9")],s=t.commands[Ds("0x1c")](Ds("0x23"));e[Ds("0x1e")](Ds("0x1d")),e[Ds("0x1e")](Ds("0x21")),e[Ds("0x1e")]("codeBlock",((n,r={})=>{const i=t[Ds("0x1f")],x=t[Ds("0x1f")][Ds("0x15")][Ds("0x22")],a=r&&void 0!==r.forceValue?r[Ds("0x4")]:!s[Ds("0xb")];let c;r.language||(r[Ds("0x12")]=o[0][Ds("0x12")]),c=a?Array[Ds("0x6")](x[Ds("0x19")]())[Ds("0x7")]((t=>{return js(t)||(e=t,n=i.schema,!e.is("rootElement")&&!n[Ds("0x14")](e)&&n.checkChild(e[Ds("0xc")],Ds("0x23")));var e,n})):Array[Ds("0x6")](x[Ds("0x19")]())[Ds("0x7")]((t=>js(t)));const l=I(c,i);i[Ds("0x10")]((()=>{for(const t of l)e.markBlockFormat(t,{commandName:Ds("0x23"),commandParams:[{...r,forceValue:a}],formatGroupId:"blockName"})}))})),e[Ds("0x13")].registerElementLabel(Ds("0x23"),(t=>Yo(n,Ds("0xe"),t))),e._descriptionFactory[Ds("0x17")]((t=>{const e=n.t,{type:s,data:r}=t;if(Ds("0xa")==s&&r&&Ds("0x23")==r[Ds("0x2")]){const t=r[Ds("0x3")][0][Ds("0x12")],s=e(o[Ds("0x1")]((e=>e[Ds("0x12")]===t))[Ds("0x11")]);return r[Ds("0x3")][0][Ds("0x4")]?{type:"format",content:Yo(n,"*Format:* %0",Yo(n,Ds("0xe"),1)+" ("+s+")")}:{type:Ds("0x0"),content:Yo(n,Ds("0x5"),Yo(n,Ds("0xe"),1))}}}))}}function js(t){return"codeBlock"==t[Ds("0x20")]}const Us=["has","get","plugins","addCommentThread","CommentsEditing","enableCommand","editor"];var Gs,Hs;Gs=Us,Hs=471,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("0x4")];t.plugins[zs("0x5")](zs("0x2"))&&t[zs("0x0")][zs("0x6")]("TrackChangesEditing")[zs("0x3")](zs("0x1"))}}var Vs=n(181);const Ks=["unit","init","document","enableCommand","$graveyard","data","writer","fromRange","root","modifySelection","remove","rootName","TrackChangesEditing","commands","start","deleteForward","markerNameToElements","markerName","mapper","addMarker:suggestion:deletion","isCollapsed","setSelection","buffer","forward","removeMarker:suggestion:deletion","bind","createRange","showSuggestionHighlights","model","end","editor","high","merge","requires","detach","downcastDispatcher","batch","selection"];var qs,Xs;qs=Ks,Xs=489,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("0x0")](){return[Vs.Delete]}[$s("0x6")](){const t=this[$s("0x23")],e=t.plugins.get($s("0x11"));e[$s("0x8")]("delete");const n=t[$s("0x12")].get($s("0x14"));e[$s("0x8")]("deleteForward",((e,o={})=>{const s=t[$s("0x21")].createSelection(t[$s("0x21")][$s("0x7")][$s("0x4")]);s[$s("0x19")]&&t[$s("0x21")][$s("0xe")](s,{direction:$s("0x1c"),unit:o[$s("0x5")]});const r=s.getFirstRange(),x=i.LiveRange[$s("0xc")](r);let a;e(o),a=$s("0x9")==x[$s("0xd")][$s("0x10")]?t[$s("0x21")].createRange(r[$s("0x13")]):t[$s("0x21")].createRange(x[$s("0x13")],x[$s("0x22")]),x[$s("0x1")](),t[$s("0x21")].enqueueChange(n[$s("0x1b")][$s("0x3")],(t=>{n.buffer.lock(),t[$s("0x1a")](t[$s("0x1f")](a[$s("0x22")])),n[$s("0x1b")].unlock()}))})),t.editing[$s("0x2")].on("addMarker:suggestion:deletion",hs(t,$s("0x25")),{priority:$s("0x24")}),t[$s("0xa")][$s("0x2")].on($s("0x18"),((e,n,o)=>{o.options[$s("0x20")]&&hs(t,$s("0x25"),{showActiveMarker:!1})[$s("0x1e")](this)(e,n,o)}),{priority:"high"}),t.editing[$s("0x2")].on($s("0x1d"),((t,e,n)=>{const o=n[$s("0x17")][$s("0x15")](e[$s("0x16")]);if(o)for(const t of o)t.is("uiElement")&&(n[$s("0x17")].unbindElementFromMarkerName(t,e[$s("0x16")]),n[$s("0xb")][$s("0xf")](t))}),{priority:"high"})}}const Qs=["execute","createPositionAt","isFirstBlockOfListItem","plugins","documentList","forceValue","outdentList","getAttribute","document","ELEMENT_BULLETED_LIST","ELEMENT_LIST_ITEM","*Change to:* %0","indentList","value","splitListItemBefore","has","commands","add","listItemId","deletion","listIndent","model","ELEMENT_NUMBERED_LIST","createRange","numberedList","getFirstRange","commandName","formatBlock","_LIST","*Merge:* %0","mergeListItemBackward","*Format:* insert into %0","setSelection","end","next","accept","registerDescriptionCallback","change","start","nodeAfter","multipleBlocks","DocumentListEditing","selection","from","listType","expandListBlocksToCompleteList","fromRange","markBlockFormat","_suggestionFactory","afterInit","schema","commandParams","toUpperCase","previousSibling","detach","get","splitListItemAfter","push","DocumentListUtils","*Format:* remove from %0","getSelectedBlocks","bulletedList","isObject","enableCommand","markMultiRangeBlockFormat","before","registerCustomCallback","containsItem","editor","after","format","*Outdent:* %0","mergeListItemForward","nextSibling","_descriptionFactory"];var Zs,Ys;Zs=Qs,Ys=471,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0x1c")](){const t=this[tr("0x2f")];if(!t.plugins[tr("0x45")](tr("0x14")))return;const e=t.locale,n=t.plugins[tr("0x22")]("TrackChangesEditing"),o=t[tr("0x39")][tr("0x22")](tr("0x25"));function s(e){return()=>{const s=t[tr("0x46")][tr("0x22")](e);let r=Array[tr("0x16")](t[tr("0x0")][tr("0x3e")][tr("0x15")][tr("0x27")]());if(a(e)){r=o[tr("0x18")](r);const t=[];for(const e of r)o[tr("0x38")](e)&&t.push(e);r=t}t[tr("0x0")][tr("0x10")]((()=>{n[tr("0x2b")](r,{commandName:e,commandParams:[{forceValue:!s[tr("0x43")]}],formatGroupId:"listType"},[],tr("0x3a"))}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0x16")](t);const n=e.findIndex((t=>!t.hasAttribute("listItemId")));return n>-1&&(e=e.slice(0,n)),e}(t[tr("0x0")][tr("0x3e")].selection[tr("0x27")]()),s=o[o.length-1],r=t[tr("0x0")][tr("0x1d")][tr("0x29")](s)?tr("0x30"):tr("0xc"),i=t.model.createRange(t[tr("0x0")][tr("0x37")](o[0],"before"),t[tr("0x0")][tr("0x37")](s,r));t[tr("0x0")].change((()=>{n.markBlockFormat(i,{commandName:e,commandParams:[],formatGroupId:tr("0x17")},function(t){const e=new Set;for(const n of t){let t=n[tr("0x34")];for(;t&&t.getAttribute("listIndent")>n[tr("0x3d")](tr("0x4a"));)e[tr("0x47")](t),t=t[tr("0x34")]}return Array.from(e)}(o))}))}}function x(e){return()=>{const o=t[tr("0x0")][tr("0x3e")][tr("0x15")][tr("0x27")]()[tr("0xd")]()[tr("0x43")],s=t[tr("0x0")][tr("0x37")](o,tr("0x2c")),r=t[tr("0x0")].createPositionAt(o,0),i=t.model[tr("0x2")](s,r);t[tr("0x0")][tr("0x10")]((()=>{n[tr("0x1a")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x17")})}))}}function a(e){const n=t[tr("0x46")][tr("0x22")](tr("0x28"))[tr("0x43")],o=t.commands[tr("0x22")]("numberedList")[tr("0x43")];return tr("0x3")===e?n:o}n.enableCommand(tr("0x3"),s(tr("0x3"))),n[tr("0x2a")](tr("0x28"),s(tr("0x28"))),n.enableCommand("indentList",r(tr("0x42"))),n[tr("0x2a")](tr("0x3c"),r(tr("0x3c"))),n[tr("0x2a")](tr("0x23"),x("splitListItemAfter")),n[tr("0x2a")](tr("0x44"),x("splitListItemBefore")),n[tr("0x35")].registerElementLabel((function(e){const n=!t[tr("0x0")].schema[tr("0x29")](e),o=e[tr("0x20")],s=e[tr("0x34")],r=e[tr("0x3d")]("listItemId"),i=!o||o[tr("0x3d")](tr("0x48"))!==r,x=!s||s.getAttribute("listItemId")!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,tr("0x40"),t))),n._descriptionFactory[tr("0xf")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x5")]){case tr("0x28"):r=n[tr("0x1e")][0].forceValue,i=a(n.commandName),o=r?"*Format:* insert into %0":tr("0x26"),i&&(o=tr("0x41")),s={type:"format",content:Yo(e,o,Yo(e,tr("0x3f")))};break;case tr("0x3"):r=n[tr("0x1e")][0][tr("0x3b")],i=a(n[tr("0x5")]),o=r?tr("0xa"):"*Format:* remove from %0",i&&(o=tr("0x41")),s={type:tr("0x31"),content:Yo(e,o,Yo(e,tr("0x1")))};break;case tr("0x42"):o="*Indent:* %0",s={type:tr("0x31"),content:Yo(e,o,Yo(e,tr("0x40")))};break;case tr("0x3c"):o=function(t){const e=t[tr("0x4")]();let n=e[tr("0x11")][tr("0x12")];for(;n&&e[tr("0x2e")](n);){if(n[tr("0x3d")]("listIndent")>0)return!1;n=n[tr("0x34")]}return!0}(t)?Yo(e,tr("0x26"),Yo(e,"ELEMENT_"+t.getFirstRange()[tr("0x11")][tr("0x12")][tr("0x3d")](tr("0x17"))[tr("0x1f")]()+tr("0x7"))):Yo(e,tr("0x32"),Yo(e,tr("0x40"))),s={type:tr("0x31"),content:o};break;case tr("0x9"):case tr("0x33"):!1===n[tr("0x13")]&&(o=tr("0x8"),s={type:tr("0x49"),content:Yo(e,o,Yo(e,"ELEMENT_LIST_ITEM"))})}return s})),n[tr("0x1b")][tr("0x2d")](tr("0x6"),tr("0x3a"),tr("0xe"),(function(e,n){const o=[];for(let n of e)n[tr("0x11")][tr("0x12")]===n[tr("0xc")].parent&&(n=t[tr("0x0")].createRange(t[tr("0x0")][tr("0x37")](n[tr("0x11")][tr("0x12")],0))),o[tr("0x24")](n);t[tr("0x0")][tr("0x10")]((e=>{const s=t.model[tr("0x3e")][tr("0x15")],r=Array[tr("0x16")](s.getRanges()).map((t=>i.LiveRange[tr("0x19")](t)));e[tr("0xb")](o),t[tr("0x46")][tr("0x22")](n[tr("0x5")]).refresh(),n[tr("0x1e")][tr("0x24")]({forceDefaultExecution:!0}),t[tr("0x36")](n[tr("0x5")],...n[tr("0x1e")]),e[tr("0xb")](r);for(const t of r)t[tr("0x21")]()}))}))}}var nr=n(331);const or=["enter","requires","markerName","removeMarker:suggestion:insertion","fire","showSuggestionHighlights","writer","remove","editing","markInsertion","detach","bind","options","split","end","editor","high","enableCommand","nextSibling","hasClass","fromRange","addMarker:suggestion:insertion","markerNameToElements","get","model","setSelection","afterExecute","ck-suggestion-marker-split","getFirstRange","init","createRange","data","createPositionAt","downcastDispatcher","mapper","unbindElementFromMarkerName","selection","parent"];var sr,rr;sr=or,rr=296,function(t){for(;--t;)sr.push(sr.shift())}(++rr);const ir=function(t,e){return or[t-=0]};class xr extends t.Plugin{static get[ir("0x9")](){return[nr.Enter]}[ir("0x25")](){const t=this[ir("0x17")],e=t.plugins[ir("0x1f")]("TrackChangesEditing"),n=t.commands[ir("0x1f")](ir("0x8"));e[ir("0x19")](ir("0x8"),(()=>{t[ir("0x20")].change((o=>{const s=t[ir("0x20")].document[ir("0x6")],r=s.getFirstPosition(),x=i.LiveRange[ir("0x1c")](s[ir("0x24")]());if(n.enterBlock(o)){const n=t[ir("0x20")][ir("0x2")](r[ir("0x7")][ir("0x1a")],0),s=o.createRange(r,n);e[ir("0x11")](s)}else o[ir("0x21")](o[ir("0x0")](x[ir("0x16")]));x[ir("0x12")](),n[ir("0xc")](ir("0x22"),{writer:o})}))})),t[ir("0x10")][ir("0x3")].on(ir("0x1d"),hs(t,ir("0x15")),{priority:ir("0x18")}),t[ir("0x10")][ir("0x3")].on(ir("0xb"),((t,e,n)=>{const o=n.mapper[ir("0x1e")](e.markerName);if(o)for(const t of o)t[ir("0x1b")](ir("0x23"))&&(n[ir("0x4")][ir("0x5")](t,e[ir("0xa")]),n[ir("0xe")][ir("0xf")](t))}),{priority:ir("0x18")}),t[ir("0x1")].downcastDispatcher.on("addMarker:suggestion:insertion",((e,n,o)=>{o[ir("0x14")][ir("0xd")]&&hs(t,ir("0x15"),{showActiveMarker:!1})[ir("0x13")](this)(e,n,o)}),{priority:ir("0x18")})}}const ar=["replace","findByTextCallback","bind","afterInit","plugins","replaceAll","string","model","getIntersection","editor","end","enableCommand","FindAndReplaceUtils","TrackChangesEditing","findNext","start","item","has","getMarkersGroup","createPositionAt","markers","handleFindCommand","_isInDeletionRange","findPrevious","getRange","get","find"];var cr,lr;cr=ar,lr=134,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const ur=function(t,e){return ar[t-=0]};class dr extends t.Plugin{[ur("0x4")](){if(!this[ur("0xa")][ur("0x5")][ur("0x12")]("FindAndReplaceEditing"))return;const t=this[ur("0xa")][ur("0x5")][ur("0x1a")](ur("0xe"));t[ur("0xc")](ur("0x0"),this[ur("0x16")][ur("0x3")](this)),t[ur("0xc")](ur("0xf")),t.enableCommand(ur("0x18")),t[ur("0xc")](ur("0x1")),t[ur("0xc")](ur("0x6"))}handleFindCommand(t,e,n={}){const o=this[ur("0xa")][ur("0x5")].get(ur("0xd"));void 0!==n&&t((t=>(ur("0x7")==typeof e?o[ur("0x2")](e,n):e)(t).filter((e=>!1===this[ur("0x17")](e,t[ur("0x11")])))),n)}[ur("0x17")](t,e){const n=this.editor[ur("0x8")].createRange(this[ur("0xa")][ur("0x8")][ur("0x14")](e,t[ur("0x10")]),this[ur("0xa")][ur("0x8")][ur("0x14")](e,t[ur("0xb")]));for(const t of this[ur("0xa")][ur("0x8")][ur("0x15")][ur("0x13")]("suggestion:deletion"))if(null!==n[ur("0x9")](t[ur("0x19")]()))return!0;return!1}}const gr=["document","*Reset font color*","*Set font background color:* %0","fontColor","locale","config","get","_enableCommand","fontFamily","FontSize","find","FontSizeEditing","*Set font family:* %0","value","*Reset font background color*","FontFamilyEditing","*Reset font family*","TrackChangesEditing","toLowerCase","fontSize.options","*Set font color:* %0","markInlineFormat","from","trim","fontSize","commandName","format","fontBackgroundColor.colors","normalizeSizeOptions","commandParams","_descriptionFactory","title","afterInit","model","registerDescriptionCallback","getRanges","enableCommand","plugins","editor","FontColorEditing","fontBackgroundColor","fontColor.colors","label"];var mr,fr;mr=gr,fr=418,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:hr("0x17"),commandName:hr("0x24")},{pluginName:hr("0x1b"),commandName:hr("0x14")},{pluginName:hr("0x8"),commandName:hr("0xf")},{pluginName:"FontBackgroundColorEditing",commandName:"fontBackgroundColor"}];class br extends t.Plugin{[hr("0x1")](){const t=this.editor[hr("0x10")];for(const{pluginName:t,commandName:e}of pr)this[hr("0x7")][hr("0x6")].has(t)&&this[hr("0x13")](e);this[hr("0x7")].plugins[hr("0x12")](hr("0x1d"))[hr("0x2a")][hr("0x3")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if("fontSize"==o[hr("0x25")]){const e=o[hr("0x29")][0][hr("0x19")];if(e){const o=n(this[hr("0x7")].plugins[hr("0x12")](hr("0x15"))[hr("0x28")](this[hr("0x7")][hr("0x11")].get(hr("0x1f")))[hr("0x16")]((t=>t[hr("0x2")]==e))[hr("0x0")]).toLowerCase();return{type:hr("0x26"),content:Yo(t,"*Set font size:* %0",o)}}return{type:"format",content:Yo(t,"*Reset font size*")}}if(hr("0x14")==o.commandName){const e=o[hr("0x29")][0].value;return e?{type:hr("0x26"),content:Yo(t,hr("0x18"),e)}:{type:hr("0x26"),content:Yo(t,hr("0x1c"))}}if("fontColor"==o.commandName){const e=o[hr("0x29")][0][hr("0x19")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x7")].config.get(hr("0xa")))[hr("0x16")]((t=>t[hr("0x2")]==e));let r=e,i="";return o&&(r=o[hr("0xb")],i=n(r)[hr("0x1e")]()),{type:hr("0x26"),content:Yo(t,hr("0x20"),i)[hr("0x23")](),color:{value:e,title:i||r}}}return{type:hr("0x26"),content:Yo(t,hr("0xd"))}}if(hr("0x9")==o[hr("0x25")]){const e=o[hr("0x29")][0][hr("0x19")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x7")][hr("0x11")].get(hr("0x27")))[hr("0x16")]((t=>t[hr("0x2")]==e));let r=e,i="";return o&&(r=o[hr("0xb")],i=n(r)[hr("0x1e")]()),{type:hr("0x26"),content:Yo(t,hr("0xe"),i)[hr("0x23")](),color:{value:e,title:i||r}}}return{type:"format",content:Yo(t,hr("0x1a"))}}}}))}_enableCommand(t){const e=this.editor;e[hr("0x6")][hr("0x12")](hr("0x1d"))[hr("0x5")](t,((n,o={})=>{const s=e[hr("0x2")][hr("0xc")].selection,r=o.value;s.isCollapsed?n(o):e.model.change((()=>{const n=Array[hr("0x22")](s[hr("0x4")]());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0x2")]);for(const o of n)e[hr("0x6")].get(hr("0x1d"))[hr("0x21")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["config","get","enableCommand","from","selection","length","join","modifySelection","_descriptionFactory","fontBackgroundColor","*Set format to:* %0","fontSize.options","find","normalizeSizeOptions","getSelectedBlocks","commandParams","copyFormat","slice","word","plugins","pasteFormat","charAt","title","format","toUpperCase","toLowerCase","getRanges","fontColor.colors","FontSize","label","registerDescriptionCallback","fontColor","change","afterInit","isBlock","schema","*Remove all formatting*","model","createSelection","keys","document","getAttributes","markInlineFormat","isCollapsed","fontSize","getAttributeProperties","boolean","TrackChangesEditing","getFirstPosition","forward","isFormatting","commands"];var _r,Tr;_r=Er,Tr=166,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0x17")](){const t=this.editor,n=t[Cr("0x1b")],o=n[Cr("0x1e")][Cr("0x2e")],s=t[Cr("0x9")][Cr("0x2b")](Cr("0x25")),r=t.locale,i=t.commands[Cr("0x2b")](Cr("0x6")),x=t[Cr("0x29")][Cr("0x2b")](Cr("0xa"));i&&x&&(s[Cr("0x2c")]("pasteFormat",((t,r={})=>{const i=r;n[Cr("0x16")]((()=>{const t=Array[Cr("0x2d")](o[Cr("0x10")]()),r=o[Cr("0x21")]?[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("0x1f")]()){const t=e[Cr("0x23")](n);t&&t[Cr("0x28")]&&(yield n)}}(t,n));for(const e of t[Cr("0x10")]())for(const t of e.getItems())!n[Cr("0x18")](t)&&o(t)&&(yield t);for(const e of t[Cr("0x4")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x19")]))||0!==Object[Cr("0x1d")](i)[Cr("0x2f")])for(const t of r)s[Cr("0x20")](t,{commandName:Cr("0xa"),commandParams:[i]})}))})),s[Cr("0x32")][Cr("0x14")]((e=>{const{data:n}=e;if(n&&"pasteFormat"===n.commandName){const e=[],o=n[Cr("0x5")][0];for(const[n,s]of Object.entries(o))e.push(Ar(t,n,s));return e[Cr("0x2f")]?{type:Cr("0xd"),content:Yo(r,Cr("0x0"),e[Cr("0x30")](", "))}:{type:Cr("0xd"),content:Yo(r,Cr("0x1a"))}}})),t[Cr("0x9")].get("TrackChangesEditing")[Cr("0x2c")](Cr("0x6")))}}function kr(t,e){const n=t[Cr("0x1c")](e);t.modifySelection(n,{unit:Cr("0x8"),direction:"backward"});const o=n[Cr("0x26")]();t[Cr("0x31")](n,{unit:Cr("0x8"),direction:Cr("0x27")});const s=n.getLastPosition();return t.createRange(o,s)}function Ar(t,e,n){const o=t.locale.t,r=e.split(/(?=[A-Z])/)[Cr("0x30")](" "),i=o(r[Cr("0xb")](0)[Cr("0xe")]()+r[Cr("0x7")](1))[Cr("0xf")]();if(Cr("0x24")==typeof n)return i;if(Cr("0x15")===e||Cr("0x33")===e){const e=(0,s.normalizeColorOptions)(t[Cr("0x2a")][Cr("0x2b")](Cr("0x11"))).find((t=>t[Cr("0x1b")]==n));return i+" ("+(e?o(e[Cr("0x13")])[Cr("0xf")]():n)+")"}if(Cr("0x22")===e&&isNaN(parseFloat(n))){const e=t.plugins[Cr("0x2b")](Cr("0x12"))[Cr("0x3")](t[Cr("0x2a")][Cr("0x2b")](Cr("0x1")))[Cr("0x2")]((t=>t.model==n));return i+" ("+(e?o(e[Cr("0xc")])[Cr("0xf")]():n)+")"}return i+" ("+n+")"}const Rr=["has","_descriptionFactory","from","locale","commandName","registerElementLabel","commandParams","value","blockName","config","editor","ELEMENT_HEADING","get","title","enableCommand","getSelectedBlocks","format","ELEMENT_HEADING_CUSTOM","selection","plugins","heading","*Change to:* %0","filter","markBlockFormat","model","registerDescriptionCallback","document","find","formatBlock"];var vr,Ir;vr=Rr,Ir=302,function(t){for(;--t;)vr.push(vr.shift())}(++Ir);const Sr=function(t,e){return Rr[t-=0]};class Lr extends t.Plugin{afterInit(){const t=this[Sr("0x1b")],e=t[Sr("0x14")],n=t[Sr("0x1a")][Sr("0x0")]("heading.options");if(!t.plugins[Sr("0x11")]("HeadingEditing"))return;const o=t[Sr("0x7")][Sr("0x0")]("TrackChangesEditing");o[Sr("0x2")](Sr("0x8"),((e,n)=>{const s=n[Sr("0x18")],r=Array[Sr("0x13")](this.editor.model[Sr("0xe")][Sr("0x6")][Sr("0x3")]())[Sr("0xa")]((t=>{return e=t,n=s,(o=this[Sr("0x1b")][Sr("0xc")].schema).checkChild(e.parent,n)&&!o.isObject(e)&&e.name!=n;var e,n,o}));t[Sr("0xc")].change((()=>{for(const t of r)o[Sr("0xb")](t,{commandName:"heading",commandParams:[n],formatGroupId:Sr("0x19")},fs(t))}))}));for(const t of n)"paragraph"!=t[Sr("0xc")]&&o[Sr("0x12")][Sr("0x16")](t[Sr("0xc")],(e=>{const n=Nr(t[Sr("0xc")]);return null!==n?s(e,n):r(e,t[Sr("0x1")])}));function s(t,n){return Yo(e,Sr("0x1c"),[t,n])}function r(t,n){return Yo(e,Sr("0x5"),[t,n])}o[Sr("0x12")][Sr("0xd")]((t=>{const{type:o,data:i}=t;if(Sr("0x10")==o&&i&&Sr("0x8")==i[Sr("0x15")]){const t=i[Sr("0x17")][0][Sr("0x18")],o=Nr(t);if(null!==o)return{type:Sr("0x4"),content:Yo(e,Sr("0x9"),s(1,o))};const x=n[Sr("0xf")]((e=>e[Sr("0xc")]===t))[Sr("0x1")];return{type:Sr("0x4"),content:Yo(e,"*Change to:* %0",r(1,x))}}}))}}function Nr(t){const e=t.match(/^heading(\d+)$/);return e?e[1]:null}const Mr=["highlight.options","config","getAttribute","editor","commandName","toLowerCase","*Set highlight:* %0","HighlightEditing","item","_descriptionFactory","highlight","model","*Remove highlight*","afterInit","registerDescriptionCallback","push","format","TrackChangesEditing","has","isCollapsed","get","value","locale","getLastMatchingPosition","backward","plugins","FORMAT_HIGHLIGHT","markInlineFormat","formatInline","change","color","title","document","getFirstPosition","getRanges","createRange","enableCommand"];var wr,Or;wr=Mr,Or=106,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Pr extends t.Plugin{[Fr("0x12")](){const t=this[Fr("0x8")];if(!t.plugins[Fr("0x17")](Fr("0xc")))return;const e=t[Fr("0x1e")][Fr("0x19")](Fr("0x16"));e[Fr("0x4")](Fr("0xf"),((n,o={})=>{const s=t[Fr("0x10")][Fr("0x0")].selection,r=s[Fr("0x7")]("highlight");let i=o[Fr("0x1a")],x=[];if(s[Fr("0x18")]){const e=s[Fr("0x1")]();if(!s.hasAttribute("highlight"))return void n(o);{const n=t=>t[Fr("0xd")][Fr("0x7")](Fr("0xf"))===r,o=e[Fr("0x1c")](n,{direction:Fr("0x1d")}),s=e.getLastMatchingPosition(n);x=[t[Fr("0x10")][Fr("0x3")](o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0x2")]())i?x[Fr("0x14")](e):x.push(...ms(Fr("0xf"),e,t.model));t[Fr("0x10")][Fr("0x22")]((()=>{for(const t of x)e[Fr("0x20")](t,{commandName:Fr("0xf"),commandParams:[{value:i}]})}))}));const n=t[Fr("0x1b")];e[Fr("0xe")][Fr("0x13")]((e=>{const{type:o,data:s}=e;if(Fr("0x21")==o&&s&&Fr("0xf")==s[Fr("0x9")]){const e=n.t,o=s.commandParams[0][Fr("0x1a")];if(o){const s=t[Fr("0x6")][Fr("0x19")](Fr("0x5")).find((t=>t[Fr("0x10")]==o)),r=e(s[Fr("0x24")])[Fr("0xa")]();return{type:Fr("0x15"),content:Yo(n,Fr("0xb"),r),color:{value:s[Fr("0x23")],title:s.title}}}return{type:Fr("0x15"),content:Yo(n,Fr("0x11"),Yo(n,Fr("0x1f")))}}}))}}const Dr=["for","ELEMENT_HORIZONTAL_LINE","get","editor","enableCommand","afterInit","elementToStructure","_descriptionFactory","createContainerElement","locale","TrackChangesEditing","horizontalLine","dataDowncast","plugins","registerElementLabel","createEmptyElement"];var Br,jr;Br=Dr,jr=233,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0xc")](){const t=this[Ur("0xa")];if(!t[Ur("0x4")].has("HorizontalLineEditing"))return;t[Ur("0x4")][Ur("0x9")](Ur("0x1"))[Ur("0xb")](Ur("0x2"));const e=t[Ur("0x4")][Ur("0x9")](Ur("0x1")),n=t[Ur("0x0")];e[Ur("0xe")][Ur("0x5")](Ur("0x2"),(t=>Yo(n,Ur("0x8"),t))),t.conversion[Ur("0x7")](Ur("0x3"))[Ur("0xd")]({model:"horizontalLine",view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return null;const o=e[Ur("0xf")]("div"),s=e[Ur("0x6")]("hr");return e.addClass("ck-horizontal-line",o),e.insert(e.createPositionAt(o,0),s),o},converterPriority:"high"})}}const Hr=["format","value","commandName","plugins","locale","enableCommand","selection","ELEMENT_HTML_EMBED","HtmlEmbed","getAttribute","registerDescriptionCallback","has","rawHtmlApi","editing","_descriptionFactory","getCustomProperty","view","change","htmlEmbed","get","afterInit","element","TrackChangesEditing","model","document","rawHtml","getSelectedElement","cancel","registerElementLabel"];var zr,Wr;zr=Hr,Wr=188,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0x6")](){const t=this.editor;if(!t[Vr("0x12")][Vr("0x1a")](Vr("0x17")))return;const e=t[Vr("0x12")][Vr("0x5")](Vr("0x8")),n=t[Vr("0x13")],o=t[Vr("0x1c")][Vr("0x2")][Vr("0xa")][Vr("0x15")];e._descriptionFactory[Vr("0xe")](Vr("0xb"),(t=>Yo(n,Vr("0x16"),t))),t[Vr("0x12")][Vr("0x5")](Vr("0x8"))[Vr("0x14")](Vr("0x4"),((n,s)=>{const r=t[Vr("0x9")],i=r.document[Vr("0x15")];r[Vr("0x3")]((()=>{const t=function(t){const e=t.getSelectedElement();return e&&e.is(Vr("0x7"),Vr("0xb"))?t[Vr("0xc")]():null}(i);if(!t)return void n(null);const r=t[Vr("0x18")](Vr("0x10"))||"";void 0!==s&&s!==r&&(e.markBlockFormat(t,{commandName:Vr("0x4"),commandParams:[s]}),o.getSelectedElement()[Vr("0x1")](Vr("0x1b"))[Vr("0xd")]())}))})),e[Vr("0x0")][Vr("0x19")]((t=>{const{data:e}=t;if(e&&"htmlEmbed"==e[Vr("0x11")]){const t=Yo(n,"ELEMENT_HTML_EMBED");return{type:Vr("0xf"),content:Yo(n,"*Change %0 content*",t)}}}))}}const qr=["convertBlockImageToInline","previous","ImageUtils","format","width","ImageEditing","filter","caption","backward","from","author","registerDescriptionCallback","detach","toPrevious","isEqual","getFirstRange","markBlockFormat","ImageUploadEditing","ImageInlineEditing","imageTypeInline","registerPostFixer","discardSuggestion","resizeImage","end","findIndex","deletion","*Remove image text alternative*","markInlineFormat","FORMAT_SIDE_IMAGE","isOwn","imageStylePostApply","head","formatInline","ELEMENT_IMAGE","insertImage","fromPosition","hasSuggestion","getAttribute","imageTypeBlock","refresh","getCaptionFromImageModelElement","newValue","isBefore","imageCaption","length","Block image to inline image","start","discard","editor","schema","selection","*Set image text alternative:* %0","Inline image to block image","type","getSuggestionCallback","has","side","getClosestSelectedImageElement","createRange","change","getSuggestion","_suggestionFactory","_descriptionFactory","commandName","join","commandParams","get","_splitMarkerName","markInsertion","Users","value","name","plugins","document","next","imageStylePreApply","ImageStyleEditing","commandReversedParams","imageBlock","imageStyle","ELEMENT_CAPTION","isBlockImage","ELEMENT_INLINE_IMAGE","newRange","element","getNearestSelectionRange","_findSuggestions","isIntersecting","getChangedMarkers","commands","convertInlineImageToBlock","toggleImageCaption","chain","suggestion","insertion","alt","getSuggestions","forceDefaultExecution","toLowerCase","isInContent","subType","markDeletion","imageTextAlternative","registerElementLabel","shouldConvertImageType","formatBlock","createRangeOn","getContainedElement","ImageResize","*Set image width:* %0","accept","isInlineImage","model","registerCustomCallback","enableCommand"];var Xr,$r;Xr=qr,$r=469,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{afterInit(){const t=this[Jr("0x27")];if(!t[Jr("0x3f")][Jr("0x2e")](Jr("0x6f")))return;const n=t[Jr("0x3f")].get("TrackChangesEditing"),o=t.plugins[Jr("0x39")](Jr("0x6c")),s={},r=t.locale;if(n.enableCommand(Jr("0x19")),n._descriptionFactory[Jr("0x5e")](Jr("0x45"),(t=>Yo(r,Jr("0x18"),t))),n[Jr("0x35")][Jr("0x5e")]("imageInline",(t=>Yo(r,Jr("0x49"),t))),n._descriptionFactory[Jr("0x5e")](Jr("0x71"),(()=>Yo(r,Jr("0x47")))),t[Jr("0x3f")].has(Jr("0x8"))&&n[Jr("0x69")]("uploadImage"),t[Jr("0x3f")][Jr("0x2e")]("ImageBlockEditing")&&t[Jr("0x3f")][Jr("0x2e")](Jr("0x9"))&&(n[Jr("0x69")]("imageTypeInline",((e,s)=>{const r=o[Jr("0x30")](t[Jr("0x67")].document[Jr("0x29")]);t.model[Jr("0x32")]((()=>{n.markBlockFormat(r,{commandName:Jr("0xa"),commandParams:[s]},[],Jr("0x6a"))}))})),n[Jr("0x69")](Jr("0x1d"),((e,s)=>{t.model[Jr("0x32")]((r=>{let x=o[Jr("0x30")](t[Jr("0x67")][Jr("0x40")].selection),a=r[Jr("0x61")](x);const c=i.LivePosition[Jr("0x1a")](a.start,Jr("0x4")),l=i.LivePosition[Jr("0x1a")](a.end,"toNext");n[Jr("0x58")]((()=>e(s))),x=o[Jr("0x30")](t.model.document[Jr("0x29")]),a=r[Jr("0x61")](x);const u=r[Jr("0x31")](c,l);c[Jr("0x3")](),l.detach(),n[Jr("0x7")](x,{commandName:Jr("0xa"),commandParams:[]},[],Jr("0x51")),u[Jr("0x25")][Jr("0x21")](a[Jr("0x25")])&&n[Jr("0x3b")](r.createRange(u[Jr("0x25")],a.start),Jr("0x51")),a[Jr("0xe")].isBefore(u.end)&&n.markInsertion(r[Jr("0x31")](a[Jr("0xe")],u[Jr("0xe")]),Jr("0x51"))}))})),n[Jr("0x34")][Jr("0x68")](Jr("0x60"),Jr("0x51"),Jr("0x37"),(()=>{})),n._suggestionFactory[Jr("0x68")](Jr("0x60"),"convertInlineImageToBlock","accept",(()=>{})),n[Jr("0x34")][Jr("0x68")](Jr("0x60"),Jr("0x51"),"discard",n._suggestionFactory[Jr("0x2d")](Jr("0x60"),"","accept")),n[Jr("0x34")].registerCustomCallback("insertion",Jr("0x51"),Jr("0x37"),(()=>{})),n[Jr("0x34")].registerCustomCallback(Jr("0x55"),"convertInlineImageToBlock","discard",(([e])=>{const o=n[Jr("0x34")][Jr("0x2d")]("insertion","",Jr("0x26"));let s=e.start,r=e[Jr("0xe")];const i=t[Jr("0x67")][Jr("0x28")][Jr("0x4c")](s,Jr("0x72")),x=t[Jr("0x67")][Jr("0x28")][Jr("0x4c")](r,"forward");i.isCollapsed&&(s=i.start),x.isCollapsed&&(r=x[Jr("0xe")]),o([t[Jr("0x67")].createRange(s,r)])})),n[Jr("0x34")][Jr("0x68")]("formatBlock",Jr("0x51"),Jr("0x53"),c),n._suggestionFactory[Jr("0x68")]("insertion","convertInlineImageToBlock",Jr("0x53"),c)),t[Jr("0x3f")].has("ImageCaptionEditing")&&(n.enableCommand(Jr("0x52"),((e,s)=>{const r=t[Jr("0x3f")][Jr("0x39")]("ImageCaptionUtils");let i=o[Jr("0x30")](t.model[Jr("0x40")][Jr("0x29")]),x=r[Jr("0x1f")](i);t[Jr("0x67")][Jr("0x32")]((()=>{if(x)return void n[Jr("0x5c")](t.model[Jr("0x61")](x));const a=o[Jr("0x48")](i);e(s),i=o[Jr("0x30")](t[Jr("0x67")][Jr("0x40")][Jr("0x29")]),x=r[Jr("0x1f")](i),n[Jr("0x3b")](t[Jr("0x67")][Jr("0x61")](x),a?null:Jr("0x22"))}))})),n._suggestionFactory[Jr("0x68")](Jr("0x55"),"imageCaption",Jr("0x53"),c)),t.plugins[Jr("0x2e")](Jr("0x43"))){n.enableCommand(Jr("0x46"),((s,r)=>{const i=t[Jr("0x3f")][Jr("0x39")](Jr("0x3c")).me,x=t[Jr("0x50")][Jr("0x39")](Jr("0x46"));let a=o[Jr("0x30")](t.model[Jr("0x40")].selection),c=t[Jr("0x67")][Jr("0x61")](a),l=x[Jr("0x3d")];if(l==r.value)return;const u={commandName:Jr("0x46"),commandParams:[r],formatGroupId:(0,e.uid)()};t[Jr("0x67")][Jr("0x32")]((()=>{if(n[Jr("0x57")]().filter((t=>t[Jr("0x5a")]&&i==t[Jr("0x1")]&&(Jr("0x60")==t[Jr("0x2c")]||Jr("0x17")==t[Jr("0x2c")])&&(Jr("0x42")==t[Jr("0x5b")]||Jr("0x15")==t[Jr("0x5b")])&&t[Jr("0x6")]().isEqual(c))).forEach((t=>n.discardSuggestion(t[Jr("0x16")]))),a=o[Jr("0x30")](t[Jr("0x67")][Jr("0x40")].selection),c=t[Jr("0x67")][Jr("0x61")](a),x[Jr("0x1e")](),t[Jr("0x50")][Jr("0x39")](Jr("0xa"))[Jr("0x1e")](),t[Jr("0x50")].get(Jr("0x1d"))[Jr("0x1e")](),l=x.value,l!=r.value)return o[Jr("0x66")](a)&&x[Jr("0x5f")](r[Jr("0x3d")],a)?(s(r),a=o.getClosestSelectedImageElement(t[Jr("0x67")][Jr("0x40")][Jr("0x29")]),void n[Jr("0x7")](a,{...u,commandReversedParams:[{value:l||null}]},[],Jr("0x42"))):void(o[Jr("0x48")](a)?n[Jr("0x7")](a,u,[],Jr("0x15")):n[Jr("0x12")](c,u,Jr("0x15")))}))}));for(const e of t.plugins.get(Jr("0x43")).normalizedStyles)s[e[Jr("0x3e")]]=e.title[Jr("0x59")]();n[Jr("0x34")][Jr("0x68")](Jr("0x60"),Jr("0x42"),"join",(()=>{})),n[Jr("0x34")][Jr("0x68")](Jr("0x60"),"imageStylePostApply","join",(()=>{})),n[Jr("0x34")].registerCustomCallback("formatInline","imageStylePostApply",Jr("0x37"),(()=>{})),n._suggestionFactory[Jr("0x68")](Jr("0x60"),Jr("0x42"),Jr("0x65"),(()=>{})),n[Jr("0x34")].registerCustomCallback(Jr("0x60"),"imageStylePreApply",Jr("0x26"),((t,e)=>{n._suggestionFactory[Jr("0x2d")](Jr("0x60"),"",Jr("0x65"))(t,{commandName:e[Jr("0x36")],commandParams:e[Jr("0x44")]})})),n._suggestionFactory[Jr("0x68")]("formatBlock",Jr("0x42"),Jr("0x53"),c)}const x=[{type:"formatBlock",subType:Jr("0x42")},{type:"insertion",subType:Jr("0x22")},{type:Jr("0x60"),subType:Jr("0x51")},{type:Jr("0x55"),subType:Jr("0x51")}];function a(t,e){const s=x[Jr("0xf")]((({type:e,subType:n})=>t[Jr("0x2c")]==e&&t.subType==n)),r=x[Jr("0xf")]((({type:t,subType:n})=>e[Jr("0x2c")]==t&&e[Jr("0x5b")]==n));if(s<0||r<0)return!1;const i=t.getFirstRange(),a=e[Jr("0x6")]();if((0==s||1==s)&&2==r&&i[Jr("0x4e")](a))return!0;if(2==s&&3==r){const t=n[Jr("0x4d")](i,"insertion")[Jr("0x70")]((({suggestion:t,meta:e})=>e[Jr("0x14")]&&Jr("0x51")==t[Jr("0x5b")]));if(t[Jr("0x23")]>1&&a[Jr("0xe")][Jr("0x5")](i[Jr("0x25")]))return!0;if(1==t[Jr("0x23")]&&(i[Jr("0x25")].isEqual(a[Jr("0xe")])||i[Jr("0xe")][Jr("0x5")](a[Jr("0x25")])))return!0}if(3==s&&3==r&&i[Jr("0x25")].isBefore(a[Jr("0x25")])){const t=i[Jr("0xe")].nodeAfter,e=a[Jr("0x25")].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("0x67")][Jr("0x40")][Jr("0xb")]((()=>{let e=!1;const s=Array[Jr("0x0")](t[Jr("0x67")].document.differ[Jr("0x4f")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Jr("0x3a")](t);if(Jr("0x54")==s&&n[Jr("0x1b")](a)){if("formatBlock"==i&&(Jr("0x42")==x||Jr("0x15")==x)){const t=n.getSuggestion(a);if(r.newRange){const s=t[Jr("0x6")]()[Jr("0x62")]();if(o.isBlockImage(s))continue;n[Jr("0xc")](t),e=!0}}if("insertion"==i&&Jr("0x22")==x&&!r[Jr("0x4a")]){const t=n[Jr("0x33")](a);t[Jr("0x41")]&&t[Jr("0x41")][Jr("0x5a")]&&(n[Jr("0xc")](t[Jr("0x41")]),e=!0)}}}return e})),t[Jr("0x3f")][Jr("0x2e")](Jr("0x63"))&&n[Jr("0x69")](Jr("0xd"),((e,s)=>{const r=o.getClosestSelectedImageElement(t.model.document.selection);r[Jr("0x1c")]("width")!=s[Jr("0x6e")]&&t[Jr("0x67")][Jr("0x32")]((()=>{n[Jr("0x7")](r,{commandName:Jr("0xd"),commandParams:[s]})}))})),t[Jr("0x3f")][Jr("0x2e")]("ImageTextAlternativeEditing")&&n[Jr("0x69")](Jr("0x5d"),((e,s)=>{const r=o[Jr("0x30")](t[Jr("0x67")].document.selection);(r.hasAttribute(Jr("0x56"))?r.getAttribute("alt"):"")!=s[Jr("0x20")]&&t[Jr("0x67")].change((()=>{n.markBlockFormat(r,{commandName:Jr("0x5d"),commandParams:[s]})}))})),n._descriptionFactory[Jr("0x2")]((t=>{if(x.find((({type:e,subType:n})=>t[Jr("0x2c")]==e&&t[Jr("0x5b")]==n)))return t[Jr("0x6b")]?{}:void 0})),n[Jr("0x35")][Jr("0x2")]((t=>{if(Jr("0x55")==t[Jr("0x2c")]||Jr("0x10")==t[Jr("0x2c")]){const e=t[Jr("0x62")]();if(e&&e.is(Jr("0x4b"),Jr("0x71")))return{type:"insertion"==t[Jr("0x2c")]?"addObject":"removeObject",element:e,quantity:1}}})),n._descriptionFactory[Jr("0x2")]((t=>Jr("0x60")==t[Jr("0x2c")]&&Jr("0x51")==t[Jr("0x5b")]?{type:Jr("0x6d"),content:Jr("0x2b")}:Jr("0x60")==t[Jr("0x2c")]&&Jr("0x6a")==t[Jr("0x5b")]?{type:Jr("0x6d"),content:Jr("0x24")}:void 0)),n[Jr("0x35")].registerDescriptionCallback((t=>{const{data:e}=t;if(e){if(Jr("0x46")==e[Jr("0x36")]){const t=e.commandParams[0][Jr("0x3d")];return n=Jr("0x2f")===t?Yo(r,Jr("0x13")):s[t]||t,{type:Jr("0x6d"),content:Yo(r,"*Format:* %0",n)}}if(Jr("0x5d")==e[Jr("0x36")]){const t=e[Jr("0x38")][0][Jr("0x20")];return t?{type:Jr("0x6d"),content:Yo(r,Jr("0x2a"),'"'+t+'"')}:{type:Jr("0x6d"),content:Yo(r,Jr("0x11"))}}if(Jr("0xd")==e[Jr("0x36")]){const t=e.commandParams[0].width;return t?{type:Jr("0x6d"),content:Yo(r,Jr("0x64"),t)}:{type:Jr("0x6d"),content:Yo(r,"*Reset image width*")}}}var n}))}}const Zr=["locale","TrackChangesEditing","handleSuggestionDescription","handleReplaceImageCommand","_descriptionFactory","source","model","data","editor","replaceImageSource","_suggestionFactory","enableCommand","get","format","change","discard","getSelectedElement","has","getSuggestionCallback","plugins","ImageEditing","getAttribute","document","registerDescriptionCallback","getSuggestions","accept","formatBlock","author","registerCustomCallback"];var Yr,ti;Yr=Zr,ti=108,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("0x10")].plugins[ei("0x19")](ei("0x1c")))return;const t=this[ei("0x10")][ei("0x1b")][ei("0x14")](ei("0x9"));t[ei("0x13")](ei("0x11"),((t,e)=>this.handleReplaceImageCommand(t,e))),t[ei("0x12")].registerCustomCallback(ei("0x5"),ei("0x11"),ei("0x4"),t[ei("0x12")][ei("0x1a")](ei("0x5"),null,ei("0x17"))),t[ei("0x12")][ei("0x7")](ei("0x5"),"replaceImageSource",ei("0x17"),t[ei("0x12")][ei("0x1a")]("formatBlock",null,ei("0x4"))),t[ei("0xc")][ei("0x2")]((t=>this[ei("0xa")](t)))}[ei("0xb")](t,e){const n=this[ei("0x10")].plugins[ei("0x14")](ei("0x9")),o=this[ei("0x10")][ei("0xe")][ei("0x1")].selection[ei("0x18")]();this[ei("0x10")][ei("0xe")][ei("0x16")]((()=>{let s=o[ei("0x0")]("src");const r=this[ei("0x10")][ei("0x1b")][ei("0x14")]("Users").me;for(const t of n[ei("0x3")]({skipNotAttached:!0})){const e=t.getContainedElement();if(ei("0x11")===t.subType&&e===o){t[ei("0x6")]!==r&&t[ei("0x17")](),s=t[ei("0xf")].commandParams[0][ei("0xd")];break}}t(e),n.markBlockFormat(o,{commandName:ei("0x11"),commandParams:[{source:s}]},[],ei("0x11"))}))}[ei("0xa")](t){const{data:e}=t;if(e&&ei("0x11")===e.commandName){const t="*Format:* replace image URL";return{type:ei("0x15"),content:Yo(this[ei("0x10")][ei("0x8")],t)}}}}const oi=["collaboration_features","TrackChangesEditing","dataInsert","track_changes","trackChanges","execute","high","Users","importWord","get","_trackChangesExecuted","lowest","value","_trackChangesValueDuringImport","enableCommand","editor","forEach","_handleImportedData","afterInit","plugins","commands"];var si,ri;si=oi,ri=412,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{constructor(t){super(t),this[ii("0x0")]=!1,this._trackChangesExecuted=!1}[ii("0x5")](){const t=this[ii("0x2")],e=t[ii("0x7")][ii("0x11")]("importWord"),n=t[ii("0x7")][ii("0x11")]("trackChanges");e&&(e.on(ii("0xd"),((t,[,e])=>{this[ii("0x0")]=n[ii("0x14")],e[ii("0x8")][ii("0xb")]=!this[ii("0x0")]}),{priority:ii("0xe")}),this.listenTo(e,ii("0xa"),this[ii("0x4")].bind(this)),this.listenTo(e,ii("0xa"),(()=>{this._trackChangesExecuted&&(n.execute(),this[ii("0x12")]=!1)}),{priority:ii("0x13")}),t[ii("0x6")].get(ii("0x9"))[ii("0x1")](ii("0x10")))}[ii("0x4")](t,e){const{suggestions:n}=e,o=this[ii("0x2")][ii("0x7")][ii("0x11")](ii("0xc")),s=o.value;this[ii("0x0")]!==s&&(o[ii("0xd")](),this[ii("0x12")]=!0),n&&n[ii("0x3")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0x2")][ii("0x6")].get(ii("0xf")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0x10")}}};this.editor[ii("0x6")][ii("0x11")](ii("0x9"))._setSuggestionData(s)}))}}const ai=["schema","model","outdentBlock","outdent","from","registerDescriptionCallback","filter","blockIndent","commandName","indent","locale","IndentBlock","getItemLabel","has","getSelectedBlocks","selection","plugins","change","format","editor","_descriptionFactory","*Indent:* %0","document","indentBlock","enableCommand","afterInit","*Outdent:* %0"];var ci,li;ci=ai,li=479,function(t){for(;--t;)ci.push(ci.shift())}(++li);const ui=function(t,e){return ai[t-=0]};class di extends t.Plugin{[ui("0x5")](){const t=this.editor,e=t[ui("0x17")].get("TrackChangesEditing");t[ui("0x17")][ui("0x14")]("IndentEditing")&&(e[ui("0x4")](ui("0x10")),e.enableCommand(ui("0xa")));const n=t[ui("0x11")];if(t[ui("0x17")][ui("0x14")](ui("0x12"))){for(const n of["indentBlock",ui("0x9")])e[ui("0x4")](n,(()=>{const o=Array[ui("0xb")](this[ui("0x1a")].model[ui("0x2")][ui("0x16")][ui("0x15")]())[ui("0xd")]((t=>this[ui("0x1a")][ui("0x8")][ui("0x7")].checkAttribute(t,ui("0xe"))));t[ui("0x8")][ui("0x18")]((()=>{for(const t of o)e.markBlockFormat(t,{commandName:n,commandParams:[{value:""}],formatGroupId:ui("0x3")})}))}));e._descriptionFactory[ui("0xc")]((t=>{const{data:o}=t;if(!o)return;if(ui("0x3")!=o[ui("0xf")]&&ui("0x9")!=o[ui("0xf")])return;const s=t.getItems()[0],r=e[ui("0x0")][ui("0x13")](s);return"indentBlock"==o[ui("0xf")]?{type:ui("0x19"),content:Yo(n,ui("0x1"),r)}:"outdentBlock"==o[ui("0xf")]?{type:"format",content:Yo(n,ui("0x6"),r)}:void 0}))}}}var gi,mi,fi=["editor","TrackChangesEditing","get","plugins","input","enableCommand"];gi=fi,mi=385,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 requires(){return[Vs.Input]}init(){this[hi("0x5")][hi("0x2")][hi("0x1")](hi("0x0"))[hi("0x4")](hi("0x3"))}}const bi=["afterInit","getAttribute","getFirstRange","_descriptionFactory","TrackChangesEditing","plugins","linkHref","enableCommand","isCollapsed","markInlineFormat","LinkEditing","getRanges","model","*Remove link*","unlink","editor","link","commandName","document","change","get","*Set link:* %0","commandParams","format","from"];var Ei,_i;Ei=bi,_i=310,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{[Ti("0xf")](){const t=this[Ti("0x5")];if(!t[Ti("0x14")].has(Ti("0x0")))return;const e=t[Ti("0x14")][Ti("0xa")](Ti("0x13"));e[Ti("0x16")](Ti("0x6"),((n,o)=>{const s=t[Ti("0x2")].document.selection;let r=[];if(s[Ti("0x17")]){if(!s.hasAttribute("linkHref"))return void n(o);{const e=(0,Vs.findAttributeRange)(s.getFirstPosition(),Ti("0x15"),s[Ti("0x10")]("linkHref"),t[Ti("0x2")]);r=[e]}}else r=Array[Ti("0xe")](s[Ti("0x1")]());t[Ti("0x2")][Ti("0x9")]((()=>{for(const t of r)e[Ti("0x18")](t,{commandName:Ti("0x6"),commandParams:[o]})}))})),e[Ti("0x16")]("unlink",(()=>{const n=this.editor[Ti("0x2")],o=n[Ti("0x8")].selection;n[Ti("0x9")]((()=>{let n=[];n=o[Ti("0x17")]?[(0,Vs.findAttributeRange)(o.getFirstPosition(),Ti("0x15"),o.getAttribute(Ti("0x15")),t.model)]:ms(Ti("0x15"),o[Ti("0x11")](),t[Ti("0x2")]);for(const t of n)e[Ti("0x18")](t,{commandName:Ti("0x4"),commandParams:[]})}))})),e[Ti("0x12")].registerDescriptionCallback((e=>{const{data:n}=e,o=t.locale;if(n){if(Ti("0x6")==n[Ti("0x7")]){const t=n[Ti("0xc")][0];return{type:"format",content:Yo(o,Ti("0xb"),'"'+t+'"')}}return Ti("0x4")==n[Ti("0x7")]?{type:Ti("0xd"),content:Yo(o,Ti("0x3"))}:void 0}}))}}const yi=["previousSibling","TodoListEditing","*Uncheck item*","markBlockFormat","*Indent:* %0","*Change to:* %0","*Outdent:* %0","numbered","value","numberedList","_selectedElements","length","commandParams","listType","getSelectedBlocks","blockName","editor","model","execute","outdentList","TrackChangesEditing","document","listItem","selection","slice","registerDescriptionCallback","from","ListEditing","registerElementLabel","ELEMENT_BULLETED_LIST","_descriptionFactory","listIndent","replace","checkTodoList","afterInit","schema","format","change","List","getAttribute","get","filter","element","createPositionAt","paragraph","ELEMENT_LIST_ITEM","commandName","before","indentList","todoList","bulleted","*Check item*","push","enableCommand","plugins","name","locale","forceValue","nextSibling","add","todoListChecked","has"];var ki,Ai;ki=yi,Ai=402,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const Ri=function(t,e){return yi[t-=0]};class vi extends t.Plugin{[Ri("0x4")](){const t=this[Ri("0x30")],e=t[Ri("0x1a")];if(!t.plugins[Ri("0x1f")](Ri("0x3b")))return;const n=t[Ri("0x18")][Ri("0xa")](Ri("0x34")),o=t.plugins[Ri("0x1f")](Ri("0x21"));function s(e){return()=>{const o=t[Ri("0x31")][Ri("0x35")][Ri("0x37")],s=t.commands.get(e);if(s[Ri("0x28")])return void t[Ri("0x32")](Ri("0xe"),{});const r=e[Ri("0x38")](0,-4),i=function(t,e,n){let o=Array.from(t).filter((t=>{return e=t,(o=n).checkChild(e.parent,Ri("0x36"))&&!o.isObject(e);var e,o}));o=o.filter((t=>!t.is(Ri("0xc"),Ri("0x36"))||t[Ri("0x9")](Ri("0x2d"))!=e));const s=new Set;for(const t of o)t.is(Ri("0xc"),Ri("0x36"))?s.add(Ii(t)):s.add(t);return Array[Ri("0x3a")](s)}(o[Ri("0x2e")](),r,t[Ri("0x31")][Ri("0x5")]);t[Ri("0x31")][Ri("0x7")]((()=>{for(const t of i)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!s[Ri("0x28")]}],formatGroupId:Ri("0x2f")},Si(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[Ri("0x3a")](t);const n=e.findIndex((t=>"listItem"!=t.name));return n>-1&&(e=e[Ri("0x38")](0,n)),e}(t[Ri("0x31")].document[Ri("0x37")][Ri("0x2e")]()),s=t.model.createRange(t[Ri("0x31")][Ri("0xd")](o[0],Ri("0x11")),t[Ri("0x31")][Ri("0xd")](o[o[Ri("0x2b")]-1],"end"));t[Ri("0x31")][Ri("0x7")]((()=>{n[Ri("0x23")](s,{commandName:e,commandParams:[],formatGroupId:Ri("0x1")},function(t){const e=new Set;for(const n of t){let t=n[Ri("0x1c")];for(;t&&t[Ri("0x9")]("listIndent")>n[Ri("0x9")](Ri("0x1"));)e[Ri("0x1d")](t),t=t[Ri("0x1c")]}return Array[Ri("0x3a")](e)}(o))}))}}n[Ri("0x17")]("numberedList",s("numberedList")),n.enableCommand("bulletedList",s("bulletedList")),o&&n[Ri("0x17")](Ri("0x13"),s("todoList")),n.enableCommand(Ri("0x12"),r(Ri("0x12"))),n[Ri("0x17")](Ri("0x33"),r(Ri("0x33"))),o&&n[Ri("0x17")](Ri("0x3"),(()=>{const e=t.commands[Ri("0xa")]("checkTodoList"),o=Array.from(e[Ri("0x2a")]);o[Ri("0xb")]((t=>t.getAttribute(Ri("0x1e"))!=e[Ri("0x28")])),t.model.change((()=>{for(const t of o)n[Ri("0x23")](t,{commandName:Ri("0x3"),commandParams:[{forceValue:!e[Ri("0x28")]}]})}))})),n[Ri("0x0")][Ri("0x3c")]("listItem",(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n[Ri("0x0")][Ri("0x39")]((t=>{const{data:n}=t;if(n){if(Ri("0x29")==n.commandName||"bulletedList"==n.commandName||Ri("0x13")==n[Ri("0x10")])switch(n.commandName[Ri("0x2")](Ri("0x8"),"")){case Ri("0x14"):return o(Yo(e,Ri("0x3d")));case Ri("0x27"):return o(Yo(e,"ELEMENT_NUMBERED_LIST"));case"todo":return o(Yo(e,"ELEMENT_TODO_LIST"))}if(Ri("0x12")==n[Ri("0x10")])return{type:Ri("0x6"),content:Yo(e,Ri("0x24"),Yo(e,Ri("0xf")))};if("outdentList"==n[Ri("0x10")])return{type:Ri("0x6"),content:Yo(e,Ri("0x26"),Yo(e,"ELEMENT_LIST_ITEM"))};if(Ri("0x3")==n[Ri("0x10")])return n[Ri("0x2c")][0][Ri("0x1b")]?{type:Ri("0x6"),content:Yo(e,Ri("0x15"))}:{type:Ri("0x6"),content:Yo(e,Ri("0x22"))}}function o(t){return{type:Ri("0x6"),content:Yo(e,Ri("0x25"),t)}}}))}}function Ii(t){const e=t[Ri("0x9")](Ri("0x1"));if(0==e)return t;let n=t;for(;t[Ri("0x20")]&&t[Ri("0x20")].is(Ri("0xc"),Ri("0x36"));){const o=t[Ri("0x20")].getAttribute(Ri("0x1"));if(o==e)n=t[Ri("0x20")];else if(o<e)break;t=t.previousSibling}return n}function Si(t){const e=[];if(t.is(Ri("0xc"),Ri("0x36"))&&t[Ri("0x9")]("listIndent")>0){let n=t.nextSibling;for(;n&&Ri("0x36")==n[Ri("0x19")]&&n.getAttribute(Ri("0x1"))==t[Ri("0x9")]("listIndent");)e[Ri("0x16")](n),n=n[Ri("0x1c")]}return e}const Li=["reversed","getListTypeFromListStyleType","*Format:* set order to reversed","handleDescriptions","editor","plugins","document","listStart","createPositionAt","flat","change","forward","get","_getSuggestionBlocksForListStyle","ListPropertiesEditing","unshift","startIndex","replace","createRange","ELEMENT_","listReversed","_getTranslationKeyForListStyle","bind","length","backward","listStyle","commandParams","listItem","model","*Format:* set order to regular","locale","markMultiRangeBlockFormat","selection","*Format:* set start index to %0","getAttribute","_getSuggestionBlocks","getSelectedBlocks","getFirstPosition","handleListStyleCommand","before","element","TrackChangesEditing","map","_descriptionFactory","handleListReversedCommand","getSiblingNodes","handleListStartCommand","from","getLastPosition","styles","_LIST_","numbered","toUpperCase","format","ListUtils","type","push","enableCommand"];var Ni,Mi;Ni=Li,Mi=195,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{afterInit(){if(!this[wi("0x29")].plugins.has(wi("0x33")))return;const t=this.editor.config.get("list.properties"),e=this[wi("0x29")][wi("0x2a")][wi("0x31")](wi("0x14"));t[wi("0x1c")]&&e.enableCommand(wi("0x4"),this[wi("0x11")].bind(this)),t[wi("0x25")]&&e[wi("0x24")]("listReversed",this[wi("0x17")][wi("0x1")](this)),t[wi("0x35")]&&e[wi("0x24")]("listStart",this[wi("0x19")].bind(this)),e[wi("0x16")].registerDescriptionCallback(this[wi("0x28")][wi("0x1")](this))}[wi("0x11")](t,e={}){const n=this.editor[wi("0x2a")][wi("0x31")](wi("0x14")),o=this[wi("0x32")]();this[wi("0x29")].model[wi("0x2f")]((()=>{n[wi("0xa")](o,{commandName:"listStyle",commandParams:[{type:e[wi("0x22")]}],formatGroupId:"listStyle"})}))}[wi("0x17")](t,e={}){const n=this.editor.plugins[wi("0x31")](wi("0x14")),o=this[wi("0xe")]((t=>t.is("element","listItem")&&wi("0x1e")===t[wi("0xd")]("listType")));if(o.length<1)return;const s=o[wi("0x15")]((t=>this[wi("0x29")][wi("0x7")][wi("0x37")](this[wi("0x29")][wi("0x7")][wi("0x2d")](t,wi("0x12")),this[wi("0x29")].model[wi("0x2d")](t,0))));this[wi("0x29")].model[wi("0x2f")]((()=>{n[wi("0xa")](s,{commandName:wi("0x39"),commandParams:[{reversed:e[wi("0x25")]}],formatGroupId:wi("0x39")})}))}handleListStartCommand(t,e={}){const n=this[wi("0x29")][wi("0x2a")][wi("0x31")]("TrackChangesEditing"),o=this[wi("0xe")]((t=>t.is(wi("0x13"),wi("0x6"))&&"numbered"===t[wi("0xd")]("listType")));if(o[wi("0x2")]<1)return;const s=o[wi("0x15")]((t=>this[wi("0x29")][wi("0x7")][wi("0x37")](this[wi("0x29")].model.createPositionAt(t,wi("0x12")),this[wi("0x29")][wi("0x7")][wi("0x2d")](t,0))));this[wi("0x29")][wi("0x7")].change((()=>{n.markMultiRangeBlockFormat(s,{commandName:"listStart",commandParams:[{startIndex:e.startIndex}],formatGroupId:wi("0x2c")})}))}[wi("0x28")](t){const e=this[wi("0x29")][wi("0x9")],{data:n}=t;if(!n)return;let o,s;switch(n.commandName){case"listStyle":o="*Change to:* %0",s={type:wi("0x20"),content:Yo(e,o,Yo(e,this[wi("0x0")](n[wi("0x5")][0].type)))};break;case wi("0x39"):o=n[wi("0x5")][0][wi("0x25")]?wi("0x27"):wi("0x8"),s={type:"format",content:Yo(e,o)};break;case"listStart":o=wi("0xc"),s={type:wi("0x20"),content:Yo(e,o,n[wi("0x5")][0][wi("0x35")])}}return s}_getSuggestionBlocksForListStyle(){var t,e,n,o;const s=this[wi("0x29")][wi("0x2a")][wi("0x31")](wi("0x21"));let r=Array.from(this[wi("0x29")][wi("0x7")].document.selection.getSelectedBlocks());return(null===(t=r[0])||void 0===t?void 0:t.is(wi("0x13"),wi("0x6")))&&r[wi("0x34")](...s[wi("0x18")](this[wi("0x29")][wi("0x7")].document[wi("0xb")][wi("0x10")](),wi("0x3"))),(null===(e=r[r.length-1])||void 0===e?void 0:e.is("element",wi("0x6")))&&r[wi("0x23")](...s[wi("0x18")](this.editor[wi("0x7")][wi("0x2b")][wi("0xb")][wi("0x1b")](),wi("0x30"))),r=[...new Set(r)],(null===(o=null===(n=this[wi("0x29")][wi("0x7")][wi("0x2b")].selection[wi("0x10")]())||void 0===n?void 0:n.parent)||void 0===o?void 0:o.is(wi("0x13"),wi("0x6")))&&(r=r.filter((t=>t.is(wi("0x13"),wi("0x6"))))),r}[wi("0xe")](t){const e=this[wi("0x29")].plugins.get(wi("0x21"));let n=Array[wi("0x1a")](this[wi("0x29")][wi("0x7")][wi("0x2b")].selection[wi("0xf")]()).filter(t).map((t=>{const n=this[wi("0x29")][wi("0x7")][wi("0x2d")](t,0);return[...e[wi("0x18")](n,wi("0x3")),...e[wi("0x18")](n,wi("0x30"))]}))[wi("0x2e")]();return n=[...new Set(n)],n}[wi("0x0")](t){return wi("0x38")+this[wi("0x29")][wi("0x2a")][wi("0x31")]("ListUtils")[wi("0x26")](t)[wi("0x1f")]()+wi("0x1d")+t.toUpperCase()[wi("0x36")](/-/g,"_")}}const Fi=["editor","media","get","dataDowncast","MediaEmbedEditing","elementToElement","has","data","high","plugins","mediaEmbed","stop","registerElementLabel","locale","options","downcastDispatcher","ELEMENT_MEDIA","showSuggestionHighlights","conversion","div"];var Pi,Di;Pi=Fi,Di=417,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{afterInit(){const t=this[Bi("0x3")];if(!t.plugins[Bi("0x9")](Bi("0x7")))return;const e=t[Bi("0xc")][Bi("0x5")]("TrackChangesEditing"),n=t[Bi("0x10")];e.enableCommand(Bi("0xd")),e._descriptionFactory[Bi("0xf")](Bi("0x4"),(t=>Yo(n,Bi("0x13"),t))),t[Bi("0x1")].for(Bi("0x6"))[Bi("0x8")]({model:Bi("0x4"),view:(t,{writer:e,options:n})=>{if(n[Bi("0x0")])return e.createEmptyElement(Bi("0x2"))},converterPriority:Bi("0xb")}),t[Bi("0xa")][Bi("0x12")].on("attribute:url:media",((t,e,n)=>{n[Bi("0x11")][Bi("0x0")]&&t[Bi("0xe")]()}),{priority:Bi("0xb")})}}const Ui=["get","afterInit","mention","MentionEditing","enableCommand","plugins"];var Gi,Hi;Gi=Ui,Hi=367,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[zi("0x4")].has(zi("0x2"))&&t.plugins[zi("0x5")]("TrackChangesEditing")[zi("0x3")](zi("0x1"))}}const Vi=["editor","ELEMENT_PAGE_BREAK","plugins","_descriptionFactory","PageBreakEditing","enableCommand","has","get","TrackChangesEditing"];var Ki,qi;Ki=Vi,qi=205,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{afterInit(){const t=this[Xi("0x2")];if(!t[Xi("0x4")][Xi("0x8")](Xi("0x6")))return;t[Xi("0x4")][Xi("0x0")](Xi("0x1"))[Xi("0x7")]("pageBreak");const e=t[Xi("0x4")][Xi("0x0")](Xi("0x1")),n=t.locale;e[Xi("0x5")].registerElementLabel("pageBreak",(t=>Yo(n,Xi("0x3"),t)))}}const Ji=["consume","isObject","nodeAfter","start","activeMarkers","blockName","has","writer","enableCommand","editing","format","afterInit","registerDescriptionCallback","getItemLabel","*Change to:* %0","getFirstRange","ck-suggestion-marker--active","editor","getSelectedBlocks","type","insertParagraph","checkChild","isLimit","filter","schema","data","parent","markerName","registerElementLabel","createUIElement","end","downcastDispatcher","span","selection","addClass","_descriptionFactory","name","showSuggestionHighlights","paragraph","markerRange","mapper","plugins","ck-suggestion-marker-split","$text","highest","isTouching","from","model","locale","insertion","get","TrackChangesEditing","consumable","isBlock","addMarker:suggestion:insertion"];var Qi,Zi;Qi=Ji,Zi=478,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0x1c")](){const t=this.editor;if(!t.plugins[Yi("0x17")]("Paragraph"))return;const e=t[Yi("0xa")],n=t[Yi("0x3")][Yi("0xc")]("TrackChangesEditing");n[Yi("0x34")][Yi("0x2d")](Yi("0x0"),(t=>Yo(e,"ELEMENT_PARAGRAPH",t))),n[Yi("0x19")](Yi("0x0"),((e,o={})=>{const s=t[Yi("0x9")].document,r=o.selection||s[Yi("0x32")],i=Array[Yi("0x8")](r[Yi("0x23")]())[Yi("0x28")]((t=>{return e=t,(n=this[Yi("0x22")][Yi("0x9")].schema)[Yi("0x26")](e[Yi("0x2b")],"paragraph")&&!n[Yi("0x12")](e)&&Yi("0x0")!=e[Yi("0x35")];var e,n}));t[Yi("0x9")].change((()=>{for(const t of i)n.markBlockFormat(t,{commandName:"paragraph",commandParams:[],formatGroupId:Yi("0x16")},fs(t))}))})),n[Yi("0x34")][Yi("0x1d")]((t=>{const{data:n}=t;if(n&&Yi("0x0")==n.commandName)return{type:Yi("0x1b"),content:Yo(e,Yi("0x1f"),Yo(e,"ELEMENT_PARAGRAPH"))}})),n.enableCommand(Yi("0x25")),t[Yi("0x1a")][Yi("0x30")].on(Yi("0x10"),ex(t),{priority:"highest"}),t[Yi("0x2a")].downcastDispatcher.on(Yi("0x10"),((e,n,o)=>{o.options[Yi("0x36")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0x6")});const o=n[Yi("0x34")];o.registerDescriptionCallback((n=>{if("insertion"!==n[Yi("0x24")])return;const{start:s,end:r}=n[Yi("0x20")]();if(!s.isTouching(r)||!s[Yi("0x13")])return;const i=t[Yi("0x9")].schema,x=s[Yi("0x13")];return i[Yi("0xf")](x)&&!i[Yi("0x27")](x)&&i.checkChild(x,Yi("0x5"))?{type:Yi("0xb"),content:Yo(e,"*Insert:* %0",o[Yi("0x1e")](x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t.plugins[Yi("0xc")](Yi("0xd")),i=o.markerRange[Yi("0x14")],x=o[Yi("0x1")][Yi("0x2f")],a=t[Yi("0x9")][Yi("0x29")];if(!i[Yi("0x7")](x)||!i[Yi("0x13")])return;const c=i[Yi("0x13")];if(a[Yi("0xf")](c)&&!a[Yi("0x27")](c)&&a[Yi("0x26")](c,Yi("0x5"))){if(!s[Yi("0xe")][Yi("0x11")](o.markerRange,n.name))return;const t=s[Yi("0x18")][Yi("0x2e")](Yi("0x31"),{class:Yi("0x4")}),i=s[Yi("0x2")].toViewPosition(x);e&&r[Yi("0x15")].includes(o[Yi("0x2c")])&&s[Yi("0x18")][Yi("0x33")](Yi("0x21"),t),s.writer.insert(i,t),s[Yi("0x2")].bindElementToMarker(t,o[Yi("0x2c")])}}}const nx=["selection","schema","model","get","isFormatting","getAttributeProperties","from","registerDescriptionCallback","isCollapsed","commandName","editor","*Remove all formatting*","document","getAttributes","has","removeFormat","TrackChangesEditing","locale","_descriptionFactory","getRanges","plugins","createRangeOn","afterInit"];var ox,sx;ox=nx,sx=472,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[rx("0xa")](){const t=this[rx("0x15")];if(!t[rx("0x8")][rx("0x2")]("RemoveFormatEditing"))return;const e=t[rx("0x8")][rx("0xe")](rx("0x4"));e.enableCommand(rx("0x3"),(n=>{const o=t.model[rx("0x0")][rx("0xb")];o[rx("0x13")]?n():t[rx("0xd")].change((()=>{const n=Array[rx("0x11")](o[rx("0x7")]());for(const o of n)for(const n of o.getItems())xx(n,t[rx("0xd")][rx("0xc")])&&e.markInlineFormat(t[rx("0xd")][rx("0x9")](n),{commandName:rx("0x3"),commandParams:[]})}))})),e[rx("0x6")][rx("0x12")]((e=>{const{data:n}=e;if(n&&rx("0x3")==n[rx("0x14")])return{type:"format",content:Yo(t[rx("0x5")],rx("0x16"))}}))}}function xx(t,e){for(const[n]of t[rx("0x1")]()){const t=e[rx("0x10")](n);if(t&&t[rx("0xf")])return!0}return!1}const ax=["trackChanges","plugins","RestrictedEditingModeEditing","discardAllSuggestions","has","enableCommand","acceptSuggestion","get","afterInit","acceptSelectedSuggestions","editor"];var cx,lx;cx=ax,lx=404,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{[ux("0x0")](){const t=this[ux("0x2")];if(!t[ux("0x4")][ux("0x7")](ux("0x5")))return;const e=t[ux("0x4")][ux("0xa")]("TrackChangesEditing");e[ux("0x8")]("goToPreviousRestrictedEditingException"),e[ux("0x8")]("goToNextRestrictedEditingException");const n=t[ux("0x4")].get(ux("0x5"));n.enableCommand(ux("0x3")),n[ux("0x8")](ux("0x9")),n.enableCommand("discardSuggestion"),n[ux("0x8")]("acceptAllSuggestions"),n[ux("0x8")](ux("0x6")),n[ux("0x8")](ux("0x1")),n[ux("0x8")]("discardSelectedSuggestions")}}const gx=["bindElementToMarker","markerName","_descriptionFactory","editing","TrackChangesEditing","showSuggestionHighlights","split","createUIElement","test","plugins","high","addMarker:suggestion:insertion","softBreak","data","shiftEnter","ck-suggestion-marker-","addMarker:suggestion","addClass","insert","writer","locale","createPositionBefore","registerElementLabel","editor","consumable","ELEMENT_LINE_BREAK","enableCommand","mapper","merge","downcastDispatcher","init","markerRange","get","includes","element","model","span","name","ck-suggestion-marker--active","getItems"];var mx,fx;mx=gx,fx=184,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{static get requires(){return[nr.ShiftEnter]}[hx("0x6")](){const t=this[hx("0x27")],e=t[hx("0x19")][hx("0x8")](hx("0x14"));e[hx("0x2")](hx("0x1e")),t[hx("0x13")][hx("0x5")].on(hx("0x1b"),bx(t),{priority:hx("0x1a")}),t.editing[hx("0x5")].on("addMarker:suggestion:deletion",bx(t),{priority:hx("0x1a")}),t[hx("0x1d")].downcastDispatcher.on(hx("0x20"),((e,n,o)=>{o.options[hx("0x15")]&&bx(t,{showActiveMarker:!1})(e,n,o)})),e[hx("0x12")][hx("0x26")](hx("0x1c"),(e=>Yo(t[hx("0x24")],hx("0x1"),e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[hx("0x19")][hx("0x8")](hx("0x14"));if(!s[hx("0x0")][hx("0x18")](o[hx("0x7")],n[hx("0xd")]))return;const i=t[hx("0xb")];for(const t of o.markerRange[hx("0xf")]()){if(!t.is(hx("0xa"),hx("0x1c")))continue;const n="deletion"==o[hx("0x11")].split(":")[1]?hx("0x4"):hx("0x16"),x=s[hx("0x23")][hx("0x17")](hx("0xc"),{class:hx("0x1f")+n}),a=s[hx("0x3")].toViewPosition(i[hx("0x25")](t));e&&r.activeMarkers[hx("0x9")](o[hx("0x11")])&&s[hx("0x23")][hx("0x21")](hx("0xe"),x),s.writer[hx("0x22")](a,x),s[hx("0x3")][hx("0x10")](x,o[hx("0x11")])}}}const Ex=["model","TrackChangesEditing","plugins","afterInit","registerDescriptionCallback","getRanges","get","change","has","commandParams","format","selection","_descriptionFactory","forceValue","locale","StandardEditingModeEditing","FORMAT_RESTRICTED_ENABLED","FORMAT_RESTRICTED_DISABLED","value","markInlineFormat","commandName","commands"];var _x,Tx;_x=Ex,Tx=459,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{[Cx("0x6")](){const t=this.editor,e=t[Cx("0x3")],n=t[Cx("0x11")];if(!t[Cx("0x5")][Cx("0xb")](Cx("0x12")))return;const o=t[Cx("0x5")][Cx("0x9")](Cx("0x4")),s="restrictedEditingException",r=t[Cx("0x2")][Cx("0x9")](s);o.enableCommand(s,((t,n={})=>{const i=e.document[Cx("0xe")];if(i.isCollapsed)return void t(n);const x=void 0!==n.forceValue?n[Cx("0x10")]:!r[Cx("0x15")];e[Cx("0xa")]((()=>{const t=Array.from(i[Cx("0x8")]());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o[Cx("0x0")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Cx("0xf")][Cx("0x7")]((t=>{const{data:e}=t;if(e&&e[Cx("0x1")]==s)return e[Cx("0xc")][0][Cx("0x10")]?{type:Cx("0xd"),content:Yo(n,Cx("0x13"))}:{type:Cx("0xd"),content:Yo(n,Cx("0x14"))}}))}}const kx=["plugins","DataSchema","style","_descriptionFactory","getItems","getSelectedBlocks","createRangeOn","getDefinitionsForView","value","config","push","styleName","*Format:* %0","from","toLowerCase","element","enabledStyles","inline","name","commandParams","style.definitions","_getRangesWithClasses","includes","format","commandName","afterInit","isBlock","getAttribute","get","model","style:","editor","classes","enableCommand","Style","forceValue","modelElements","document","_getStyleDefinition","change","markInlineFormat","commands","find","registerDescriptionCallback","TrackChangesEditing","StyleUtils"];var Ax,Rx;Ax=kx,Rx=111,function(t){for(;--t;)Ax.push(Ax.shift())}(++Rx);const vx=function(t,e){return kx[t-=0]};class Ix extends t.Plugin{[vx("0x6")](){const t=this[vx("0xc")];if(!t[vx("0x1b")].has(vx("0xf")))return;const e=t[vx("0x16")][vx("0x9")](vx("0x1d")),n=t[vx("0x1b")][vx("0x9")](vx("0x19")),o=t.locale,s=t[vx("0x1b")][vx("0x9")](vx("0x1c")),r=t.plugins.get(vx("0x1a")).normalizeConfig(s,t[vx("0x24")].get(vx("0x1")));n[vx("0xe")]("style",((o,{styleName:i})=>{const x=t[vx("0xa")][vx("0x12")].selection,a=this[vx("0x13")](i,r);if(!a)return;if(!e[vx("0x2b")][vx("0x3")](i))return;if(x.isCollapsed&&!a[vx("0x7")])return void o({styleName:i});const c=!e[vx("0x23")][vx("0x3")](a[vx("0x2d")]);if(a[vx("0x7")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o.getAncestors({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[vx("0x3")](o[vx("0x2d")])){n.add(o);break}}return n}(x[vx("0x20")](),a[vx("0x11")]);t[vx("0xa")][vx("0x14")]((()=>{for(const t of e)n.markBlockFormat(t,{commandName:vx("0x1d"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:vx("0xb")+i})}))}else{let e=Array.from(x.getRanges());if(!c){const n=Array[vx("0x28")](s[vx("0x22")](a[vx("0x2a")],!1))[0][vx("0xa")],o=[];for(const s of e){const e=this[vx("0x2")](t.model,s,a[vx("0xd")],n);o[vx("0x25")](...e)}e=o}t[vx("0xa")].change((()=>{for(const t of e)n[vx("0x15")](t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}]})}))}})),n[vx("0x1e")][vx("0x18")]((t=>{const{data:e}=t;if(e&&"style"===e[vx("0x5")])return e.commandParams[0][vx("0x10")]?{type:vx("0x4"),content:Yo(o,vx("0x27"),e[vx("0x0")][0][vx("0x26")][vx("0x29")]())}:{type:"format",content:Yo(o,"*Remove format:* %0",e[vx("0x0")][0][vx("0x26")][vx("0x29")]())}}))}[vx("0x13")](t,e){let n=e.block.find((e=>e[vx("0x2d")]===t));return n||(n=e[vx("0x2c")][vx("0x17")]((e=>e[vx("0x2d")]===t))),n}[vx("0x2")](t,e,n,o){const s=[];for(const r of e[vx("0x1f")]()){const e=r[vx("0x8")](o);e&&n.every((t=>e[vx("0xd")][vx("0x3")](t)))&&s[vx("0x25")](t[vx("0x21")](r))}return s}}const Sx=["forceValue","tableRow","getRanges","MAX_SAFE_INTEGER","cell","locale","markMultiRangeDeletion","first","ELEMENT_TABLE_ROW_WITH_TEXT","plugins","enqueueChange","_setupColumnsRowsFixing","filter","insertTableColumnRight","insertTable","*Insert:* %0","createRangeIn","from","ELEMENT_TABLE","classes","getChanges","has","enableCommand","join","writer","last","findAncestor","end","getChangedMarkers","removeTableRow","getAttribute","isInContent","tableCell","getSuggestion","getRowIndexes","isTouching","includes","minColumn","add","setSelection","getChildren","options","TrackChangesEditing","accept","batch","insertTableRowBelow","mapper","push","removeClass","minRow","execute","editor","getFirstRange","insertTableColumnLeft","insertion","table","rootName","hasAttribute","detach","rowspan","tableColumn","refresh","selectTableRow","registerDescriptionCallback","start","ELEMENT_TABLE_ROW","discard","colspan","addMarker:suggestion","maxRow","TableEditing","_tablePostFixingSubtypes","maxColumn","max","selectTableColumn","isIntersectingWithRange","commands","*Remove:* %0","change:data","map","isArray","span","min","registerCustomCallback","differ","tablePaste","addRange","substr","values","nodeBefore","document","nodeAfter","addClass","toLowerCase","change","TableUtils","selection","_suggestionFactory","_descriptionFactory","_getSuggestionCoords","get","root","$graveyard","ELEMENT_TABLE_WITH_TEXT","type","getItems","isEqual","deletion","afterInit","order","subType","oldRange","low","getColumnIndexes","item","position","_tableSuggestions","createRangeOn","model","removeTableColumn","getCellLocation","length","insert","getSelectionAffectedTableCells","left","fromRange","$textProxy","markMultiRangeInsertion","some","MIN_SAFE_INTEGER","data","createPositionAt","ELEMENT_TABLE_COLUMN_WITH_TEXT","createTableWalker","getContainedElement","name"];var Lx,Nx;Lx=Sx,Nx=460,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const Mx=function(t,e){return Sx[t-=0]};class wx extends t.Plugin{constructor(t){super(t),this[Mx("0x13")]=["tableRow",Mx("0x8")],this[Mx("0x40")]=new Set}[Mx("0x38")](){const t=this[Mx("0x87")],e=t[Mx("0x42")][Mx("0x26")].selection;if(!t.plugins[Mx("0x69")](Mx("0x12")))return;const n=t[Mx("0x59")],o=t.plugins[Mx("0x30")]("TrackChangesEditing"),s=t[Mx("0x5d")].get(Mx("0x2b"));o[Mx("0x2e")].registerElementLabel("table",(t=>Yo(n,Mx("0x66"),t))),this[Mx("0x5f")](),o[Mx("0x6a")](Mx("0x62")),o[Mx("0x6a")](Mx("0xa")),o[Mx("0x6a")](Mx("0x16"));for(const n of["insertTableRowAbove",Mx("0x81")]){const r=t.commands[Mx("0x30")](n);o.enableCommand(n,(n=>{t.model[Mx("0x2a")]((t=>{n();const i="above"===r[Mx("0x39")],x=s[Mx("0x47")](e),a=s.getRowIndexes(x),c=i?a[Mx("0x5b")]-1:a[Mx("0x6d")]+1,l=x[0][Mx("0x6e")]("table"),u=s.createTableWalker(l,{startRow:c,endRow:c}),d=Array.from(u)[Mx("0x1b")]((e=>t[Mx("0x41")](e[Mx("0x58")])));o[Mx("0x4b")](d,Mx("0x55"))}))}))}for(const n of[Mx("0x1"),Mx("0x61")]){const r=t[Mx("0x18")].get(n);o[Mx("0x6a")](n,(n=>{t[Mx("0x42")][Mx("0x2a")]((t=>{n();const i=Mx("0x48")===r[Mx("0x39")],x=s[Mx("0x47")](e),a=s[Mx("0x3d")](x),c=i?a[Mx("0x5b")]-1:a[Mx("0x6d")]+1,l=x[0][Mx("0x6e")]("table"),u=s.createTableWalker(l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Mx("0x65")](u)[Mx("0x1b")]((e=>t[Mx("0x41")](e[Mx("0x58")])));o.markMultiRangeInsertion(d,Mx("0x8"))}))}))}for(const n of[Mx("0x71"),Mx("0x43")]){const r=n.substr(11),i=r.toLowerCase(),x=i.substr(0,3)+Mx("0x1d"),a=Mx("0x3")+r,c="min"+r,l=Mx("0x15")+r;o[Mx("0x6a")](n,(()=>{t[Mx("0x42")].change((t=>{const r=s[Mx("0x47")](e),u=r[0][Mx("0x6e")](Mx("0x3"));let d;if("removeTableRow"==n){const t=s[Mx("0x76")](r);d={startRow:t[Mx("0x5b")],endRow:t[Mx("0x6d")],includeAllSlots:!0}}else{const t=s[Mx("0x3d")](r);d={startColumn:t.first,endColumn:t[Mx("0x6d")],includeAllSlots:!0}}const g=s[Mx("0x51")](u,d),m=Array[Mx("0x65")](g)[Mx("0x1b")]((({cell:t})=>t)),f=Ox(m[Mx("0x60")]((t=>t[Mx("0x5")](x)))),h=Ox(m[Mx("0x60")]((t=>!t[Mx("0x5")](x)))).map((e=>t[Mx("0x41")](e))),p=o[Mx("0x5a")](h,a);if(p&&(Mx("0x55")==p.subType||Mx("0x8")==p[Mx("0x3a")])){const e=this[Mx("0x2f")](p);for(const n of f){const o=t[Mx("0x41")](n),r=s.getCellLocation(n),a=n[Mx("0x72")](x)-1,u=e[c],d=e[l];u<=r[i]&&r[i]+a<=d&&p[Mx("0x22")](o)}}}))}))}function r(n){const o=Array[Mx("0x65")](e[Mx("0x56")]())[Mx("0x1b")]((t=>i.LiveRange[Mx("0x49")](t)));t[Mx("0x42")][Mx("0x2a")]((e=>{const s=e[Mx("0x80")];n=n.filter((t=>Mx("0x32")!=t[Mx("0x31")][Mx("0x4")])),e.setSelection(n),t[Mx("0x18")][Mx("0x30")](Mx("0x71")).refresh(),t.execute(Mx("0x71"),{forceDefaultExecution:!0}),t[Mx("0x42")][Mx("0x5e")]((()=>{t.model.enqueueChange(s,(t=>{const e=o.filter((t=>Mx("0x32")!=t[Mx("0x31")][Mx("0x4")]));e[Mx("0x45")]>0&&t[Mx("0x7b")](e);for(const t of o)t.detach()}))}))}))}function a(n){t.model.change((o=>{const s=Array[Mx("0x65")](e.getRanges())[Mx("0x1b")]((t=>i.LiveRange[Mx("0x49")](t))),r=[];for(const t of n)for(const e of t[Mx("0x35")]({shallow:!0}))r[Mx("0x83")](e);for(const e of r)"$graveyard"!=e.root.rootName&&(o[Mx("0x7b")](o[Mx("0x4f")](e,0)),t[Mx("0x18")].get(Mx("0x43"))[Mx("0x9")](),t[Mx("0x86")](Mx("0x43"),{forceDefaultExecution:!0}));const x=s[Mx("0x60")]((t=>Mx("0x32")!=t[Mx("0x31")][Mx("0x4")]));x[Mx("0x45")]>0&&o.setSelection(x);for(const t of s)t[Mx("0x6")]()}))}function c(t,e){return e.every((e=>t[Mx("0x4c")]((t=>t[Mx("0x6f")].isEqual(e[Mx("0xc")])||e[Mx("0x6f")][Mx("0x36")](t[Mx("0xc")])))))}function l(t,e){return t.some((t=>e.some((e=>t.end[Mx("0x77")](e[Mx("0xc")])))))}t[Mx("0x4e")].downcastDispatcher.on(Mx("0x10"),((t,e,n)=>{if(!n[Mx("0x7d")].showSuggestionHighlights)return;const o=e[Mx("0x3e")];if(!o)return;const s=n[Mx("0x82")].toViewElement(o);function r(t){return Array[Mx("0x1c")](t)?t:[t]}s&&Mx("0x74")===o[Mx("0x53")]&&(0,x.setHighlightHandling)(s,n[Mx("0x6c")],((t,e,n)=>n[Mx("0x28")](r(e[Mx("0x67")]),t)),((t,e,n)=>n[Mx("0x84")](r(e.classes),t)))}),{priority:"highest"}),o._descriptionFactory[Mx("0xb")]((t=>{if("insertion"!=t[Mx("0x34")]&&"deletion"!=t[Mx("0x34")])return;const e=t[Mx("0x52")]();if(null!=e&&e.is("element",Mx("0x3"))){if(Mx("0x2")==t[Mx("0x34")]){const e=t[Mx("0x35")]().filter((t=>t.is("$textProxy")))[Mx("0x1b")]((t=>t[Mx("0x4e")]));if(e[Mx("0x45")])return{type:"insertion",content:Yo(n,Mx("0x63"),Yo(n,Mx("0x33"),'"'+e[Mx("0x6b")](" ")+'"'))}}if(Mx("0x37")==t[Mx("0x34")]){const e=t[Mx("0x35")]().filter((t=>t.is(Mx("0x4a"))))[Mx("0x1b")]((t=>t[Mx("0x4e")]));if(e[Mx("0x45")])return{type:Mx("0x37"),content:Yo(n,Mx("0x19"),Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Mx("0x6b")](" ")+'"'))}}}})),o[Mx("0x2e")].registerDescriptionCallback((t=>{if("tableRow"==t.subType){const e=t.getItems()[Mx("0x60")]((t=>t.is(Mx("0x4a"))))[Mx("0x1b")]((t=>t[Mx("0x4e")])),o=this[Mx("0x2f")](t),s=o[Mx("0x11")]-o[Mx("0x85")]+1;if(Mx("0x2")==t[Mx("0x34")])return e[Mx("0x45")]?{type:Mx("0x2"),content:Yo(n,Mx("0x63"),Yo(n,Mx("0x5c"),[s,'"'+e[Mx("0x6b")](" ")+'"']))}:{type:Mx("0x2"),content:Yo(n,Mx("0x63"),Yo(n,Mx("0xd"),s))};if("deletion"==t[Mx("0x34")])return e[Mx("0x45")]?{type:Mx("0x37"),content:Yo(n,Mx("0x19"),Yo(n,Mx("0x5c"),[s,'"'+e[Mx("0x6b")](" ")+'"']))}:{type:Mx("0x37"),content:Yo(n,Mx("0x19"),Yo(n,Mx("0xd"),s))}}if(Mx("0x8")==t[Mx("0x3a")]){const e=t[Mx("0x35")]()[Mx("0x60")]((t=>t.is("$textProxy")))[Mx("0x1b")]((t=>t[Mx("0x4e")])),o=this._getSuggestionCoords(t),s=o[Mx("0x14")]-o[Mx("0x79")]+1;if(Mx("0x2")==t[Mx("0x34")])return e.length?{type:Mx("0x2"),content:Yo(n,Mx("0x63"),Yo(n,Mx("0x50"),[s,'"'+e[Mx("0x6b")](" ")+'"']))}:{type:Mx("0x2"),content:Yo(n,Mx("0x63"),Yo(n,"ELEMENT_TABLE_COLUMN",s))};if(Mx("0x37")==t[Mx("0x34")])return e[Mx("0x45")]?{type:Mx("0x37"),content:Yo(n,Mx("0x19"),Yo(n,Mx("0x50"),[s,'"'+e[Mx("0x6b")](" ")+'"']))}:{type:Mx("0x37"),content:Yo(n,Mx("0x19"),Yo(n,"ELEMENT_TABLE_COLUMN",s))}}})),o._suggestionFactory.registerCustomCallback("insertion",Mx("0x55"),Mx("0xe"),r),o[Mx("0x2d")][Mx("0x1f")](Mx("0x37"),Mx("0x55"),"accept",r),o[Mx("0x2d")][Mx("0x1f")](Mx("0x2"),"tableColumn",Mx("0xe"),a),o._suggestionFactory[Mx("0x1f")](Mx("0x37"),Mx("0x8"),Mx("0x7f"),a),o[Mx("0x2d")][Mx("0x1f")](Mx("0x2"),"tableColumn",Mx("0x6b"),c),o[Mx("0x2d")][Mx("0x1f")]("deletion","tableColumn",Mx("0x6b"),c),o[Mx("0x2d")][Mx("0x1f")](Mx("0x2"),Mx("0x55"),Mx("0x6b"),l),o[Mx("0x2d")][Mx("0x1f")](Mx("0x37"),"tableRow",Mx("0x6b"),l)}_acceptFormatSuggestionCallbackFactory(){const t=this[Mx("0x87")],e=t[Mx("0x42")][Mx("0x26")][Mx("0x2c")];return(n,o)=>{t[Mx("0x42")][Mx("0x2a")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][Mx("0x6f")][Mx("0x25")];x&&x[0]&&!1===x[0][Mx("0x54")]&&(a=n[0].start[Mx("0x27")]);const c=s[Mx("0x64")](a);if(Mx("0x32")==c[Mx("0x31")][Mx("0x4")])return;const l=Array[Mx("0x65")](e.getRanges())[Mx("0x1b")]((t=>i.LiveRange.fromRange(t)));s.setSelection(c),t[Mx("0x18")].get(r)[Mx("0x9")](),x[Mx("0x83")]({forceDefaultExecution:!0}),t[Mx("0x86")](r,...x);const u=l[Mx("0x60")]((t=>Mx("0x32")!=t.root[Mx("0x4")]));u[Mx("0x45")]>0&&s[Mx("0x7b")](u);for(const t of l)t[Mx("0x6")]()}))}}_getCoordsForCells(t){const e=this[Mx("0x87")][Mx("0x5d")][Mx("0x30")](Mx("0x2b"));let n=Number[Mx("0x57")],o=Number.MIN_SAFE_INTEGER,s=Number[Mx("0x57")],r=Number[Mx("0x4d")];for(const i of t){if("$graveyard"==i[Mx("0x31")][Mx("0x4")])continue;const{row:t,column:x}=e.getCellLocation(i),a=i[Mx("0x5")](Mx("0x7"))?i.getAttribute(Mx("0x7"))-1:0,c=i[Mx("0x5")](Mx("0xf"))?i[Mx("0x72")](Mx("0xf"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,s=x<s?x:s,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:s,maxColumn:r}}_setupColumnsRowsFixing(){const t=this[Mx("0x87")],e=t[Mx("0x5d")][Mx("0x30")](Mx("0x7e")),n=t.plugins[Mx("0x30")]("TableUtils");t[Mx("0x42")][Mx("0x26")].on(Mx("0x1a"),(()=>{const n=Array.from(t[Mx("0x42")].document[Mx("0x20")][Mx("0x70")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e._splitMarkerName(t);if("suggestion"!=n)continue;if(null!=o[Mx("0x3b")])continue;const i=e[Mx("0x75")](s);this[Mx("0x13")][Mx("0x78")](r)&&this[Mx("0x40")][Mx("0x7a")](i)}}),{priority:Mx("0x3c")});const o=(t,e)=>{let o=!1;const s=e.createRangeOn(t),r=t.findAncestor(Mx("0x3")),i=n[Mx("0x44")](t);for(const e of this[Mx("0x40")]){const n=e[Mx("0x3a")],x=n.startsWith(Mx("0x21")),a=n[Mx("0x23")](x?10:5),c=a[Mx("0x29")](),l=c[Mx("0x23")](0,3)+Mx("0x1d"),u=Mx("0x1e")+a,d=Mx("0x15")+a;if(!e[Mx("0x73")])continue;if(r!=e[Mx("0x0")]()[Mx("0xc")][Mx("0x6e")]("table"))continue;if(e[Mx("0x17")](s))continue;const g=t[Mx("0x5")](l)?t.getAttribute(l)-1:0,m=this._getSuggestionCoords(e),f=m[u],h=m[d];f<=i[c]&&i[c]+g<=h&&(e[Mx("0x22")](s),o=!0)}return o};t[Mx("0x42")][Mx("0x26")].registerPostFixer((e=>{let n=!1;for(const s of t[Mx("0x42")][Mx("0x26")][Mx("0x20")][Mx("0x68")]())if(Mx("0x46")==s.type)if("tableRow"==s[Mx("0x53")])for(const t of s[Mx("0x3f")][Mx("0x27")][Mx("0x7c")]())n=n||o(t,e);else Mx("0x74")==s[Mx("0x53")]&&(n=n||o(s[Mx("0x3f")].nodeAfter,e));return n}))}[Mx("0x2f")](t){return this._getCoordsForCells(t.getRanges()[Mx("0x1b")]((t=>t.start[Mx("0x27")])))}}function Ox(t){return Array[Mx("0x65")](new Set(t)[Mx("0x24")]())}const Fx=["getSuggestions","registerCustomCallback","enableCommand","requires","cell","map","_areMergableCells","document","set:isEnabled","getAncestors","$graveyard","splitTableCellHorizontally","insertion","mergeTableCells","_descriptionFactory","TrackChangesEditing","containsRange","getRanges","commandName","markBlockFormat","_acceptFormatSuggestionCallbackFactory","trackChanges","setSelection","selection","get","mergeTableCellLeft","low","value","has","author","getSelectionAffectedTableCells","mergeTableCellDown","_suggestionFactory","add","mergeTableCellRight","locale","from","splitTableCellVertically","markMultiRangeBlockFormat","filter","mergeTableCellUp","find","root","commands","isInContent","afterInit","registerDescriptionCallback","length","*Merge cells*","getFirstPosition","format","createTableWalker","TableEditing","getCellLocation","*Split cell:* vertically","change","push","tableCell","_areSelectedCellsMergable","rootName","editor","deletion","isEnabled","plugins","table","forceDefaultExecution","element","type","*Split cell:* horizontally","refresh","return","size","execute","_tablePostFixingSubtypes","model","direction","createRangeOn","highest","fromRange","formatBlock","subType"];var Px,Dx;Px=Fx,Dx=359,function(t){for(;--t;)Px.push(Px.shift())}(++Dx);const Bx=function(t,e){return Fx[t-=0]};class jx extends t.Plugin{static get[Bx("0x31")](){return[wx]}[Bx("0xa")](){const t=this[Bx("0x19")],e=t[Bx("0x27")][Bx("0x35")].selection,n=t[Bx("0x0")];if(!t.plugins[Bx("0x4a")](Bx("0x11")))return;const o=t[Bx("0x1c")][Bx("0x46")]("TrackChangesEditing"),s=t.plugins.get("TableUtils"),r=t.plugins[Bx("0x46")](wx);r[Bx("0x26")][Bx("0x15")]("mergeTableCells"),o[Bx("0x30")](Bx("0x3b"),(()=>{const e=s[Bx("0x4c")](t[Bx("0x27")][Bx("0x35")][Bx("0x45")]);t[Bx("0x27")][Bx("0x14")]((()=>{o[Bx("0x3")](e,{commandName:"mergeTableCells",commandParams:[]},[],"mergeTableCells")}))})),t[Bx("0x8")][Bx("0x46")](Bx("0x3b")).on(Bx("0x25"),((e,n)=>{t[Bx("0x8")].get(Bx("0x43")).value&&(n[Bx("0xc")]>0&&n[n[Bx("0xc")]-1]&&n[n.length-1][Bx("0x1e")]||o._isForcedDefaultExecutionBlock||this[Bx("0x17")]()||e.stop())}),{priority:Bx("0x2a")});for(const e of[Bx("0x5"),Bx("0x50"),Bx("0x4d"),Bx("0x47")]){const n=t[Bx("0x8")][Bx("0x46")](e);o[Bx("0x30")](e,(()=>{const e=t.model[Bx("0x35")][Bx("0x45")][Bx("0xe")]()[Bx("0x37")]()[Bx("0x6")]((t=>t.is(Bx("0x1f"),Bx("0x16")))),s=n[Bx("0x49")];t[Bx("0x27")][Bx("0x14")]((()=>{o.markMultiRangeBlockFormat([e,s],{commandName:Bx("0x3b"),commandParams:[]},[],Bx("0x3b"))}))}))}for(const e of[Bx("0x2"),Bx("0x39")]){const n=t[Bx("0x8")][Bx("0x46")](e);o[Bx("0x30")](e,(()=>{const r=s[Bx("0x4c")](t.model[Bx("0x35")][Bx("0x45")])[0],i=r.findAncestor(Bx("0x1d")),{column:x,row:a}=s[Bx("0x12")](r);let c=[];if("horizontally"==n[Bx("0x28")]){const t=s[Bx("0x10")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0x1")](t)[Bx("0x33")]((t=>t.cell))}else{const t=s[Bx("0x10")](i,{column:x,includeAllSlots:!0});c=Array[Bx("0x1")](t)[Bx("0x33")]((t=>t[Bx("0x32")]))}t[Bx("0x27")][Bx("0x14")]((t=>{o[Bx("0x41")](t[Bx("0x29")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[Bx("0x3c")][Bx("0xb")]((t=>{const{data:e}=t;if(e)return"mergeTableCells"==e[Bx("0x40")]?{type:Bx("0xf"),content:Yo(n,Bx("0xd"))}:void 0})),o[Bx("0x3c")][Bx("0xb")]((t=>{const{data:e}=t;if(e)return"splitTableCellVertically"==e[Bx("0x40")]?{type:"format",content:Yo(n,Bx("0x13"))}:"splitTableCellHorizontally"==e.commandName?{type:"format",content:Yo(n,Bx("0x21"))}:void 0}));const x=r[Bx("0x42")]();for(const t of["mergeTableCellUp",Bx("0x50"),Bx("0x4d"),Bx("0x47")])o[Bx("0x4e")][Bx("0x2f")](Bx("0x2c"),t,"accept",x);for(const t of[Bx("0x2"),Bx("0x39")])o[Bx("0x4e")].registerCustomCallback(Bx("0x2c"),t,"accept",x);o[Bx("0x4e")][Bx("0x2f")](Bx("0x2c"),Bx("0x3b"),"accept",(n=>{t[Bx("0x27")][Bx("0x14")]((o=>{const s=Array.from(e[Bx("0x3f")]()).map((t=>i.LiveRange[Bx("0x2b")](t)));o[Bx("0x44")](n),t[Bx("0x8")][Bx("0x46")](Bx("0x3b"))[Bx("0x22")](),t[Bx("0x25")]("mergeTableCells",{forceDefaultExecution:!0});const r=s[Bx("0x4")]((t=>Bx("0x38")!=t[Bx("0x7")][Bx("0x18")]));r[Bx("0xc")]>0&&o[Bx("0x44")](r);for(const t of s)t.detach()}))}));for(const e of[Bx("0x5"),Bx("0x4d"),Bx("0x47"),"mergeTableCellRight"]){const n=t[Bx("0x8")][Bx("0x46")](e);n.on(Bx("0x36"),((e,o,s)=>{if(s){const o=t[Bx("0x27")][Bx("0x35")][Bx("0x45")][Bx("0xe")]()[Bx("0x37")]()[Bx("0x6")]((t=>t.is(Bx("0x1f"),Bx("0x16"))));this[Bx("0x34")](n.value,o)||(e[Bx("0x23")]=!1,e.stop())}}),{priority:Bx("0x48")})}}[Bx("0x17")](){const t=this[Bx("0x19")].commands[Bx("0x46")](Bx("0x3b")),e=this[Bx("0x19")].plugins.get("TableUtils");if(!t[Bx("0x1b")])return!1;const n=e.getSelectionAffectedTableCells(this[Bx("0x19")][Bx("0x27")][Bx("0x35")].selection);for(const t of n)for(const e of n)if(t!=e&&!this._areMergableCells(t,e))return!1;return!0}[Bx("0x34")](t,e){const n=this[Bx("0x19")][Bx("0x1c")][Bx("0x46")](Bx("0x3d")),o=this[Bx("0x19")][Bx("0x27")][Bx("0x29")](t),s=this[Bx("0x19")].model[Bx("0x29")](e),r=new Set,i=new Set;for(const t of n[Bx("0x2e")]())if((Bx("0x3a")==t.type||Bx("0x1a")==t.type||Bx("0x3b")==t[Bx("0x2d")])&&t[Bx("0x9")])for(const e of t.getRanges())e.containsRange(o,!0)&&r[Bx("0x4f")](t[Bx("0x20")]+":"+t[Bx("0x4b")].id),e[Bx("0x3e")](s,!0)&&i.add(t[Bx("0x20")]+":"+t[Bx("0x4b")].id);if(r[Bx("0x24")]!=i[Bx("0x24")])return!1;for(const t of r)if(!i[Bx("0x4a")](t))return!1;return!0}}const Ux=["ck-suggestion-marker-","commandName","TableUtils","parent","setTableRowHeader","bindElementToMarker","markBlockFormat","addClass","createTableWalker","removeMarker:suggestion","mapper","getCellLocation","highest","data-suggestion","FORMAT_HEADER_COLUMN","nodeBefore","_suggestionFactory","model","first","setTableColumnHeader","item","forceValue","_acceptFormatSuggestionCallbackFactory","getChild","FORMAT_HEADER_ROW","requires","commandParams","value","getRowIndexes","selection","editing","createPositionAfter","from","isBefore","table","getSelectionAffectedTableCells","FORMAT_REGULAR_COLUMN","end","createRange","formatBlock","data","last","ck-suggestion-marker--active","consumable","afterInit","enableCommand","registerCustomCallback","plugins","showSuggestionHighlights","stop","removeAttribute","FORMAT_REGULAR_ROW","_splitMarkerName","document","consume","markerName","headingColumns","commands","writer","options","has","getColumnIndexes","getAttribute","*Format:* %0","removeClass","downcastDispatcher","cell","registerDescriptionCallback","childCount","createPositionBefore","markerRange","accept","name","addMarker:suggestion","start","index","setAttribute","nodeAfter","get","findAncestor"];var Gx,Hx;Gx=Ux,Hx=189,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("0x4c")](){return[wx]}[zx("0xf")](){const t=this.editor;if(!t[zx("0x12")][zx("0x1f")]("TableEditing"))return;const e=t.locale,n=t.plugins.get("TrackChangesEditing"),o=t[zx("0x12")][zx("0x31")]("TableUtils"),s=t[zx("0x12")][zx("0x31")](wx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[zx("0x17")](r[zx("0x1a")]),c=n.getSuggestion(a);if(!c[zx("0xb")]||zx("0x46")!=c[zx("0xb")][zx("0x34")])return;if(r[zx("0x47")])return void s[zx("0x14")]();if(!i[zx("0xe")][zx("0x19")](r[zx("0x29")],s[zx("0x2b")]))return;const l=r[zx("0x29")][zx("0x2d")][zx("0x30")],u=r.markerRange[zx("0x8")][zx("0x42")],d=l[zx("0x36")].parent,{column:g}=o[zx("0x3e")](l),{column:m}=o[zx("0x3e")](u);for(let s=g;s<=m;s++){const c=o[zx("0x3b")](d,{column:s,includeAllSlots:!1});for(const o of c){const s=o[zx("0x25")],c=i[zx("0x3d")].toViewElement(s);i[zx("0x1d")][zx("0x3a")](zx("0x33")+x,c),e&&i.writer[zx("0x2f")]("data-suggestion",a,c),i[zx("0x3d")][zx("0x38")](c,r[zx("0x1a")]),t&&(n.activeMarkers.includes(r.markerName)?i[zx("0x1d")][zx("0x3a")]("ck-suggestion-marker--active",c):i[zx("0x1d")][zx("0x23")](zx("0xd"),c))}}}}n.enableCommand(zx("0x37"),((e,s)=>{const r=o[zx("0x6")](t[zx("0x44")][zx("0x18")][zx("0x0")]),i=o[zx("0x4f")](r),x=r[0][zx("0x32")](zx("0x5")),a=x.getAttribute("headingRows")||0,c=s&&null!==s[zx("0x48")]?s[zx("0x48")]:!t[zx("0x1c")][zx("0x31")]("setTableRowHeader")[zx("0x4e")],l=c?i[zx("0xc")]:i.first,u=x.getChild(l);let d;if(c){const e=x.getChild(a);if(u[zx("0x2e")]<e[zx("0x2e")])return;d=t.model[zx("0x9")](t[zx("0x44")][zx("0x28")](e[zx("0x4a")](0)),t[zx("0x44")].createPositionAfter(u.getChild(u[zx("0x27")]-1)))}else{const e=x[zx("0x4a")](a-1);if(!e)return;d=t.model[zx("0x9")](t[zx("0x44")][zx("0x28")](u[zx("0x4a")](0)),t[zx("0x44")][zx("0x2")](e[zx("0x4a")](e[zx("0x27")]-1)))}t[zx("0x44")].change((()=>{n[zx("0x39")](d,{commandName:zx("0x37"),commandParams:[{forceValue:c}]},[],"setTableRowHeader")}))})),n[zx("0x10")](zx("0x46"),((e,o)=>{const s=t[zx("0x12")][zx("0x31")](zx("0x35")),r=s.getSelectionAffectedTableCells(t[zx("0x44")].document[zx("0x0")]),i=s[zx("0x20")](r),x=r[0][zx("0x32")](zx("0x5")),a=x[zx("0x21")](zx("0x1b"))||0,c=o&&null!==o.forceValue?o[zx("0x48")]:!t[zx("0x1c")][zx("0x31")](zx("0x46"))[zx("0x4e")];let l;const u=x.getChild(0),d=c?i[zx("0xc")]:i[zx("0x45")],g=s[zx("0x3b")](x,{startRow:0,column:d,includeAllSlots:!1}),m=Array[zx("0x3")](g)[0][zx("0x25")];if(c){const e=u.getChild(a);if(m[zx("0x4")](e))return;l=t[zx("0x44")][zx("0x9")](t[zx("0x44")][zx("0x28")](e),t.model.createPositionAfter(m))}else{const e=u[zx("0x4a")](a-1);if(!e)return;l=t[zx("0x44")][zx("0x9")](t.model[zx("0x28")](m),t[zx("0x44")][zx("0x2")](e))}t[zx("0x44")].change((()=>{n.markBlockFormat(l,{commandName:zx("0x46"),commandParams:[{forceValue:c}]},[],zx("0x46"))}))})),t[zx("0x1")][zx("0x24")].on(zx("0x2c"),r(),{priority:zx("0x3f")}),t.data[zx("0x24")].on(zx("0x2c"),((t,e,n)=>{n[zx("0x1e")][zx("0x13")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:zx("0x3f")}),t[zx("0x1")][zx("0x24")].on(zx("0x3c"),((t,e,o)=>{const{type:s,id:r}=n._splitMarkerName(e[zx("0x1a")]),i=n.getSuggestion(r);if(!i[zx("0xb")]||zx("0x46")!=i.data.commandName)return;const x=o[zx("0x3d")].markerNameToElements(e[zx("0x1a")]);if(x)for(const t of x)o.writer[zx("0x23")](zx("0x33")+s,t),o[zx("0x1d")][zx("0x23")]("ck-suggestion-marker--active",t),o.writer[zx("0x15")](zx("0x40"),t),o[zx("0x3d")].unbindElementFromMarkerName(t,e[zx("0x1a")])}),{priority:"highest"}),n._descriptionFactory[zx("0x26")]((t=>{const{data:n}=t;if(n){if(zx("0x37")==n[zx("0x34")]){const t=n.commandParams[0][zx("0x48")];return o(Yo(e,zx(t?"0x4b":"0x16")))}if(zx("0x46")==n[zx("0x34")]){const t=n[zx("0x4d")][0][zx("0x48")];return o(Yo(e,zx(t?"0x41":"0x7")))}}function o(t){return{type:"format",content:Yo(e,zx("0x22"),t)}}}));const i=s[zx("0x49")]();n[zx("0x43")][zx("0x11")]("formatBlock","setTableRowHeader",zx("0x2a"),i),n[zx("0x43")][zx("0x11")](zx("0xa"),zx("0x46"),zx("0x2a"),i)}}const Vx=["newRange","length","elementToElement","isEmpty","cells","endColumn","columnInsertionRanges","*Replace table cells*","markMultiRangeDeletion","updateMarker","insert","tablePasteColumn","remove","deletion","createRange","suggestion:formatBlock:tablePasteCell","activeMarkers","name","ck-suggestion-marker-insertion","suggestion-td","markerToHighlight","editingDowncast","getItems","push","reduce","previous","TableClipboard","tableCellBorderColor","register","tableCellSuggestion","commands","element","markerName","subType","suggestionUnloaded","insertion","view","first","tableCellHorizontalAlignment","some","rows","suggestion","removeMarkers","getSuggestion","removeMarker","tablePaste","tableCellVerticalAlignment","createElement","cell","removeColumns","high","map","getRowIndexes","model","removeRows","end","registerPostFixer","editor","getAllAdjacentSuggestions","next","get","find","_getCoordsForCells","getContainedElement","deletionRanges","tableCell","differ","requires","table","getChanges","_descriptionFactory","stop","batch","ck-suggestion-marker","createRangeOn","columns","add","getRange","root","start","nodeAfter","change","join","_suggestionFactory","isEqual","markMultiRangeInsertion","discard","getTableIfOnlyTableInContent","insertColumns","fill","getSuggestions","isInContent","Users","tablePasteRow","conversion","tableCellBorderWidth","type","low","getRows","containsRange","rowInsertionRanges","_tablePostFixingSubtypes","every","createRangeIn","position","from","rowInsertionIndexes","registerCustomCallback","startsWith","fromEntries","set","unwrap","setAttributes","afterInit","getColumnIndexes","markerAttributes","columnInsertionIndexes","getChangedMarkers","getSelectionAffectedTableCells","tablePasteChainId","document","forceDefaultExecution","_replaceTableSlotCell","includes","insertContent","getMarkers","_splitMarkerName","_isForcedDefaultExecutionBlock","$graveyard","getColumns","entries","plugins","_createdBatches","keys","tablePasteCell","tableCellBorderStyle","getRanges","for","getChild","findAncestor","getAttributes","accept","dataDowncast","filter","getChildren","has","wrap","formatBlock","tableCellBackgroundColor","paragraph","oldRange","createTableWalker","insertionRanges","attributes","locale","setAttribute"];var Kx,qx;Kx=Vx,qx=383,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]},$x=[Xx("0x18"),Xx("0x70"),Xx("0x40"),Xx("0x7b"),Xx("0x83"),Xx("0x4d"),"tableCellPadding"],Jx=Object.fromEntries($x[Xx("0x88")]((t=>[t,null])));class Qx extends t.Plugin{static get[Xx("0x98")](){return[wx]}[Xx("0x2a")](){const t=this[Xx("0x8e")];if(!t[Xx("0x3c")][Xx("0x4a")](Xx("0x6f")))return;const n=t[Xx("0x3c")][Xx("0x91")]("TrackChangesEditing"),o=t[Xx("0x3c")][Xx("0x91")]("TableUtils"),s=t[Xx("0x3c")][Xx("0x91")](wx),r=t[Xx("0x3c")].get(Xx("0x6f"));s[Xx("0x1e")].push(Xx("0x16"),Xx("0x60")),t.model.schema[Xx("0x71")](Xx("0x72"),{allowIn:Xx("0x96"),allowContentOf:"tableCell",isLimit:!0}),t[Xx("0x17")][Xx("0x57")]({model:Xx("0x72"),view:Xx("0x68")});let i=null;t[Xx("0x8a")].on(Xx("0x35"),((s,x)=>{const[a,c]=x,l=x[x[Xx("0x56")]-1];l&&l[Xx("0x32")]||n[Xx("0x38")]||this[Xx("0x8e")][Xx("0x73")].get("trackChanges").value&&function(t,e,n,o,s){if(e&&!e.is("documentSelection"))return!1;const r=s[Xx("0x10")](t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o[Xx("0x2f")](n[Xx("0x31")].selection);if(!i[Xx("0x56")])return!1;const x=i[0].findAncestor(Xx("0x99")),a=o[Xx("0x89")](i),c=o[Xx("0x2b")](i),l={startRow:a[Xx("0x7a")],endRow:a.last,startColumn:c[Xx("0x7a")],endColumn:c.last};return 1==i.length&&(l.endRow+=o[Xx("0x1b")](r)-1,l[Xx("0x5a")]+=o[Xx("0x3a")](r)-1),Yx(x,l,o)}(a,c,t[Xx("0x8a")],o,r)&&(s[Xx("0x0")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Xx("0x8a")].change((()=>{t[Xx("0x8a")].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("0xe")](s,"tablePasteRow",{tablePasteChainId:o}),r[Xx("0x56")]&&n[Xx("0xe")](r,Xx("0x60"),{tablePasteChainId:o}),a[Xx("0x56")]&&n[Xx("0xe")](a,Xx("0x82"),{tablePasteChainId:o,skipNestingCheck:!0}),c.length&&n[Xx("0x5d")](c,Xx("0x82"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n.markMultiRangeBlockFormat(l[Xx("0x88")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Xx("0x3f"),{tablePasteChainId:o});if(u){const e=u.getMarkers(),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[Xx("0x8a")][Xx("0x3")](o),i=e[Xx("0x92")]((t=>t.getRange().isEqual(r)));i&&n[Xx("0x6c")]([i[Xx("0x66")],s])}n[Xx("0x56")]&&u[Xx("0x54")](Xx("0x2c"),Object[Xx("0x26")](n))}i=null})))}),{priority:e.priorities[Xx("0x87")]+10}),t[Xx("0x3c")][Xx("0x91")](Xx("0x6f")).on(Xx("0x33"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t.stop();const r=n[Xx("0x85")],x=o,a=Zx(r),c=Zx(x);t.return=r;let l=null,u=null;if(c||a)if(a&&!c){s[Xx("0x61")](r[Xx("0x43")](0));for(const t of Array.from(x[Xx("0x49")]()))s[Xx("0x5f")](t,r,"end");const t=i.rowInsertionIndexes.includes(n.row),e=i[Xx("0x2d")][Xx("0x34")](n.column);t||e||(l=s.createRangeIn(r))}else c&&!a&&(u=s[Xx("0x20")](r));else{const t=s[Xx("0x84")](Xx("0x72")),e=s[Xx("0x84")](Xx("0x72"));s[Xx("0x4b")](s[Xx("0x20")](r),e),s[Xx("0x5f")](t,r,0);for(const e of Array.from(x.getChildren()))s[Xx("0x5f")](e,t,Xx("0x8c"));l=s[Xx("0x3")](t),u=s[Xx("0x3")](e)}const d=Array[Xx("0x22")](x[Xx("0x45")]())[Xx("0x48")]((([t])=>$x[Xx("0x34")](t)));i[Xx("0x59")][Xx("0x6c")]({element:r,attributes:d[Xx("0x56")]?Object.fromEntries(d):null}),l&&i[Xx("0x51")][Xx("0x6c")](l),u&&i[Xx("0x95")][Xx("0x6c")](u)}),{priority:Xx("0x87")}),o.on(Xx("0x11"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x4")]||1;i[Xx("0x2d")]=new Array(a).fill(x)[Xx("0x88")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(s,{startColumn:x,endColumn:x+a-1}))i[Xx("0x5b")].push(t[Xx("0x8a")][Xx("0x3")](e))}),{priority:Xx("0x1a")}),o.on("insertRows",((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x7d")]||1;i[Xx("0x23")]=new Array(a)[Xx("0x12")](x)[Xx("0x88")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x50")](s,{startRow:x,endRow:x+a-1}))i[Xx("0x1d")].push(t[Xx("0x8a")].createRangeOn(e))}),{priority:Xx("0x1a")}),n[Xx("0x9b")].registerDescriptionCallback((e=>{if(e[Xx("0x76")]&&e[Xx("0x76")][Xx("0x25")](Xx("0x82")))return e[Xx("0x6e")]?{}:{type:Xx("0x78"),content:Yo(t[Xx("0x53")],Xx("0x5c"))}}));const x=()=>{};for(const t of[Xx("0x82"),Xx("0x60"),Xx("0x16"),Xx("0x3f")])n[Xx("0xc")][Xx("0x24")](Xx("0x78"),t,Xx("0xb"),x),n[Xx("0xc")][Xx("0x24")](Xx("0x62"),t,Xx("0xb"),x);n[Xx("0xc")][Xx("0x24")](Xx("0x4c"),Xx("0x3f"),"discard",x),n[Xx("0xc")][Xx("0x24")](Xx("0x4c"),"tablePasteCell",Xx("0x46"),((e,n,o)=>{const s=e[Xx("0x88")]((t=>t[Xx("0x94")]()))[Xx("0x48")]((t=>t)),r=new Map(s.map((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Xx("0x59")])e&&r[Xx("0x27")](t,e);else if(o&&o[Xx("0x2c")])for(const[e,n]of Object[Xx("0x3b")](o.markerAttributes)){const o=t[Xx("0x8a")].markers[Xx("0x91")](e),s=o?o[Xx("0x6")]()[Xx("0x94")]():null;s&&r.set(s,n)}t[Xx("0x8a")].change((t=>{for(const[e,n]of r)t[Xx("0x29")]({...Jx,...n},e)}))}));const a=(e,o)=>{n[Xx("0xc")][Xx("0x24")](e,Xx("0x82"),o,((s,r,i)=>{t[Xx("0x8a")][Xx("0xa")]((t=>{const x=[];for(const t of s){const e=t[Xx("0x8")][Xx("0x9")];e.is("element",Xx("0x72"))&&x[Xx("0x6c")](e)}n[Xx("0xc")].getSuggestionCallback(e,null,o)(s,r,i);for(const e of x)Xx("0x39")!=e[Xx("0x7")].rootName&&t.unwrap(e)}))}))};a(Xx("0x78"),Xx("0x46")),a(Xx("0x78"),Xx("0xf")),a(Xx("0x62"),Xx("0x46")),a(Xx("0x62"),Xx("0xf")),n[Xx("0xc")][Xx("0x24")](Xx("0x78"),Xx("0x16"),Xx("0xf"),(t=>{const e=t[Xx("0x88")]((t=>t[Xx("0x94")]())),n=e[0].findAncestor("table"),{minRow:r,maxRow:i}=s._getCoordsForCells(e);o[Xx("0x8b")](n,{at:r,rows:i-r+1})})),n[Xx("0xc")][Xx("0x24")](Xx("0x78"),Xx("0x60"),Xx("0xf"),(t=>{const e=t[Xx("0x88")]((t=>t[Xx("0x94")]())),n=e[0][Xx("0x44")](Xx("0x99")),{minColumn:r,maxColumn:i}=s[Xx("0x93")](e);o[Xx("0x86")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Xx("0x76")]||!e[Xx("0x76")][Xx("0x25")](Xx("0x82")))return;const o=e[Xx("0x52")][Xx("0x30")],s=n[Xx("0x13")]().filter((t=>t[Xx("0x14")]&&t[Xx("0x52")]&&t[Xx("0x52")][Xx("0x30")]==o));s[Xx("0x56")]&&e.getAllAdjacentSuggestions()[Xx("0x56")]!=s.length&&s[Xx("0x6d")](((t,e)=>(t[Xx("0x90")]=e,e[Xx("0x6e")]=t,e)))};function l(t,e=!0){const{id:o}=n[Xx("0x37")](t[Xx("0x75")]),s=[Xx("0x2"),Xx("0x67")],r=n[Xx("0x65")].includes(t.markerName);return r&&s[Xx("0x6c")]("ck-suggestion-marker--active"),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:Xx("0x87")}),n.on(Xx("0x77"),c,{priority:Xx("0x87")}),t[Xx("0x8a")][Xx("0x31")].registerPostFixer((()=>{let e=!1;const o=Array[Xx("0x22")](t[Xx("0x8a")][Xx("0x31")][Xx("0x97")].getChangedMarkers());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Xx("0x37")](s);if("suggestion"!=o||"deletion"!=i||r[Xx("0x4f")])continue;if(!n.hasSuggestion(x))continue;const a=n[Xx("0x80")](x)[Xx("0x41")](),c=t[Xx("0x3c")][Xx("0x91")](Xx("0x15")).me;for(const t of n[Xx("0x13")]())if(t[Xx("0x14")]&&t.author==c&&"formatBlock"==t[Xx("0x19")]&&Xx("0x3f")==t[Xx("0x76")]&&t[Xx("0x41")]()[Xx("0x1f")]((t=>a[Xx("0x7c")]((e=>e[Xx("0x1c")](t,!0))))))for(const n of t[Xx("0x8f")]())n[Xx("0x14")]&&(n[Xx("0xf")](),e=!0)}return e})),t[Xx("0x8a")][Xx("0x31")].registerPostFixer((e=>{const o=t.commands[Xx("0x91")]("redo");if(!o||!o[Xx("0x3d")][Xx("0x4a")](e[Xx("0x1")]))return!1;let s=!1;const r=t[Xx("0x3c")][Xx("0x91")](Xx("0x15")).me,i=t[Xx("0x8a")].document.differ[Xx("0x9a")](),x=Array[Xx("0x22")](t[Xx("0x8a")].document.differ[Xx("0x2e")]())[Xx("0x48")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Xx("0x37")](t);return Xx("0x7e")==o&&Xx("0x82")==s&&i==r.id&&!e[Xx("0x4f")]}));for(const t of i){if(Xx("0x5f")!=t.type||Xx("0x72")!=t[Xx("0x66")]||1!=t[Xx("0x56")])continue;const n=e[Xx("0x63")](t[Xx("0x21")],t[Xx("0x21")].getShiftedBy(1));if(!x.find((({data:t})=>t[Xx("0x55")][Xx("0xd")](n))))for(const{name:t,data:o}of x)if(n.containsRange(o.newRange)){e[Xx("0x5e")](t,{range:n}),s=!0;break}}return s})),t.model[Xx("0x31")][Xx("0x8d")]((e=>{let o=!1;const s=t[Xx("0x3c")].get(Xx("0x15")).me,r=n[Xx("0x13")]()[Xx("0x48")]((t=>t[Xx("0x14")]&&t.author==s)),i=new Set,x=new Set;for(const t of r)if(Xx("0x82")==t[Xx("0x76")])for(const e of t[Xx("0x36")]()){const n=e[Xx("0x6")]()[Xx("0x94")]();if(n)if(n.is(Xx("0x74"),"tableCellSuggestion")&&Zx(n)){t.removeMarker(e[Xx("0x66")]),i.add(n),o=!0;const s=n.nextSibling,r=n.previousSibling,a=s&&s.is(Xx("0x74"),Xx("0x72")),c=r&&r.is(Xx("0x74"),Xx("0x72"));a&&!i[Xx("0x4a")](s)&&x[Xx("0x5")](s),c&&!i.has(r)&&x[Xx("0x5")](r)}else n.is(Xx("0x74"),Xx("0x4e"))&&n[Xx("0x58")]&&(t[Xx("0x81")](e.name),o=!0)}else if(Xx("0x3f")==t[Xx("0x76")]){if(!t[Xx("0x52")]||!t.attributes[Xx("0x30")])continue;const e=t.attributes[Xx("0x2c")];if(e&&Object[Xx("0x3e")](e)[Xx("0x56")])continue;const n=t.attributes[Xx("0x30")];let s=!0,i=!0;for(const e of r)if(e[Xx("0x76")]&&e[Xx("0x76")][Xx("0x25")]("tablePaste")){if(!e.attributes[Xx("0x30")]){i=!1;break}if(e.id!=t.id&&e[Xx("0x52")][Xx("0x30")]==n){s=!1;break}}i&&s&&(t[Xx("0x7f")](),o=!0)}for(const t of i)e.remove(t);for(const t of x)e[Xx("0x28")](t);return o})),t[Xx("0x17")][Xx("0x42")](Xx("0x6a"))[Xx("0x69")]({model:Xx("0x64"),view:(t,e)=>l(t),converterPriority:Xx("0x87")}),t[Xx("0x17")][Xx("0x42")](Xx("0x47"))[Xx("0x69")]({model:Xx("0x64"),view:(t,e)=>e.options.showSuggestionHighlights?l(t,!1):null,converterPriority:"high"});const u=t.editing[Xx("0x79")];this.listenTo(u[Xx("0x31")],"clipboardOutput",((t,e)=>{const n=[];for(const t of u[Xx("0x20")](e.content)[Xx("0x6b")]())t.is(Xx("0x74"),Xx("0x68"))&&n[Xx("0x6c")](t);u[Xx("0xa")]((t=>{for(const e of n)t.move(t[Xx("0x20")](e),t.createPositionBefore(e)),t[Xx("0x61")](e)}))}))}}function Zx(t){if(t.isEmpty)return!0;const e=t[Xx("0x43")](0);return e.is("element","paragraph")&&e[Xx("0x58")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Xx("0x50")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["TableColumnResizeEditing","_descriptionFactory","columnWidths","formatGroupId","locale","resizeTableWidth","Users","subType","registerCustomCallback","formatBlock","model","has","getContainedElement","plugins","enableCommand","_suggestionFactory","markBlockFormat","resizeColumnWidths","discard","handleSuggestionDescription","getAttribute","format","registerDescriptionCallback","tableWidth","getTableColumnsWidths","handleResizeTableWidthCommand","editor","bind","table","author","getColumnGroupElement","commandParams","accept","*Format:* resize table","resizeTable","get","getSelectedElement","data","selection","change"];var ea,na;ea=ta,na=356,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{afterInit(){if(!this[oa("0x1e")].plugins[oa("0xf")]("TableColumnResizeEditing"))return;const t=this[oa("0x1e")].plugins[oa("0x27")]("TrackChangesEditing");t[oa("0x12")](oa("0x9"),this.handleResizeTableWidthCommand.bind(this)),t.enableCommand(oa("0x15"),this[oa("0x1d")].bind(this)),t[oa("0x13")].registerCustomCallback("formatBlock",oa("0x26"),oa("0x24"),t[oa("0x13")].getSuggestionCallback(oa("0xd"),null,oa("0x16"))),t._suggestionFactory[oa("0xc")](oa("0xd"),oa("0x26"),oa("0x16"),t[oa("0x13")].getSuggestionCallback("formatBlock",null,oa("0x24"))),t[oa("0x5")][oa("0x1a")](this.handleSuggestionDescription[oa("0x1f")](this))}[oa("0x1d")](t,e){const n=this[oa("0x1e")][oa("0x11")].get("TrackChangesEditing"),o=this[oa("0x1e")].plugins[oa("0x27")](oa("0x4")),s=e[oa("0x20")]||this[oa("0x1e")][oa("0xe")].document[oa("0x2")][oa("0x0")]();this[oa("0x1e")][oa("0xe")][oa("0x3")]((()=>{const r=o[oa("0x22")](s);let i=r?o[oa("0x1c")](r):null,x=s[oa("0x18")](oa("0x1b"))||null;const a=e.tableWidth||x,c=e[oa("0x6")]||i,l=this[oa("0x1e")].plugins[oa("0x27")](oa("0xa")).me;for(const t of n.getSuggestions()){const e=t[oa("0x10")]();if(oa("0x26")===t[oa("0xb")]&&e===s){t[oa("0x21")]!==l&&t[oa("0x16")]();const e=t[oa("0x1")][oa("0x23")];x=e[0][oa("0x1b")],i=e[0][oa("0x6")];break}}t({table:s,tableWidth:a,columnWidths:c}),n[oa("0x14")](s,{commandName:oa("0x9"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0x26")},[],oa("0x26"))}))}[oa("0x17")](t){const{data:e}=t;if(e&&oa("0x26")===e[oa("0x7")]){const t=oa("0x25");return{type:oa("0x19"),content:Yo(this[oa("0x1e")][oa("0x8")],t)}}}}const ra=["get","plugins","editor","has","afterInit","enableCommand","insertTemplate"];var ia,xa;ia=ra,xa=139,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{[aa("0x5")](){const t=this[aa("0x3")];t[aa("0x2")][aa("0x4")]("Template")&&t[aa("0x2")][aa("0x1")]("TrackChangesEditing")[aa("0x6")](aa("0x0"))}}const la=["commands","afterInit","insertTableOfContents","plugins","registerElementLabel","get","_descriptionFactory","TrackChangesEditing"];var ua,da;ua=la,da=456,function(t){for(;--t;)ua.push(ua.shift())}(++da);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x1")](){const t=this.editor;if(!t[ga("0x0")][ga("0x5")](ga("0x2")))return;t[ga("0x3")][ga("0x5")](ga("0x7")).enableCommand(ga("0x2"));const e=t[ga("0x3")][ga("0x5")](ga("0x7")),n=t.locale;e[ga("0x6")][ga("0x4")]("tableOfContents",(t=>Yo(n,"ELEMENT_TABLE_OF_CONTENTS",t)))}}const fa=["registerPostFixer","start","element","end","from","get","title-content","registerElementLabel","suggestion","newRange","model","document","forward","Title","isEqual","differ","schema","locale","afterInit","nodeBefore","getNearestSelectionRange","TrackChangesEditing","plugins","getChangedMarkers","createRange"];var ha,pa;ha=fa,pa=251,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[ba("0x11")](){const t=this.editor;if(!t[ba("0x15")].has(ba("0xc")))return;const e=t[ba("0x15")][ba("0x4")](ba("0x14"));e._descriptionFactory[ba("0x6")]("title-content",(()=>Yo(t[ba("0x10")],"ELEMENT_TITLE"))),t[ba("0x9")][ba("0xa")][ba("0x18")]((n=>{let o=!1;const s=Array[ba("0x3")](t[ba("0x9")][ba("0xa")][ba("0xe")][ba("0x16")]());for(const{name:r,data:i}of s){const{group:s}=e._splitMarkerName(r);if(ba("0x7")!==s||!i.newRange)continue;const x=i[ba("0x8")],a=x[ba("0x2")][ba("0x12")];if(!a||!a.is(ba("0x1"),ba("0x5")))continue;if(!x[ba("0x0")].isTouching(x[ba("0x2")]))continue;const c=t[ba("0x9")][ba("0xf")][ba("0x13")](x[ba("0x2")],ba("0xb"));if(c&&c.isCollapsed){const t=n[ba("0x17")](x[ba("0x0")],c.start);t[ba("0xd")](x)||(n.updateMarker(r,{range:t}),o=!0)}o||(n.removeMarker(r),o=!0)}return o}))}}const _a=["plugins","editor","TrackChangesEditing","afterInit","redo","enableCommand","undo","has","UndoEditing"];var Ta,Ca;Ta=_a,Ca=250,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x5")](){const t=this[ya("0x3")],e=t[ya("0x2")].get(ya("0x4"));t[ya("0x2")][ya("0x0")](ya("0x1"))&&(e[ya("0x7")](ya("0x8")),e.enableCommand(ya("0x6")))}}const Aa=["has","afterInit","TrackChangesEditing","enableCommand","get","plugins","editor"];var Ra,va;Ra=Aa,va=188,function(t){for(;--t;)Ra.push(Ra.shift())}(++va);const Ia=function(t,e){return Aa[t-=0]};class Sa extends t.Plugin{static get requires(){return[wx]}[Ia("0x2")](){const t=this[Ia("0x0")];t[Ia("0x6")][Ia("0x1")]("TableCaptionEditing")&&t[Ia("0x6")][Ia("0x5")](Ia("0x3"))[Ia("0x4")]("toggleTableCaption")}}const La=["_getSuggestionBlocks","plugins","commandParams","type","model","handleListStyleCommand","selection","TrackChangesEditing","*Format:* set order to reversed","isFirstBlockOfListItem","afterInit","DocumentListUtils","handleListStartCommand","change","*Format:* set start index to %0","listStart","push","config","isListItemBlock","getSelectedBlocks","commandName","_getTranslationKeyForListStyle","reversed","*Change to:* %0","getAttribute","has","handleListReversedCommand","registerDescriptionCallback","format","editor","listStyle","enableCommand","_getSuggestionBlocksForListStyle","expandListBlocksToCompleteList","_descriptionFactory","document","markMultiRangeBlockFormat","listType","startIndex","styles","bind","get","listReversed","numbered","DocumentListPropertiesUtils","getListTypeFromListStyleType","from","length","toUpperCase","replace","_LIST_","handleDescriptions"];var Na,Ma;Na=La,Ma=498,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{[wa("0x20")](){if(!this[wa("0x33")][wa("0x17")][wa("0x2f")]("DocumentListPropertiesEditing"))return;const t=this.editor[wa("0x27")][wa("0xb")]("list.properties"),e=this.editor[wa("0x17")][wa("0xb")](wa("0x1d"));t[wa("0x9")]&&e[wa("0x1")](wa("0x0"),this.handleListStyleCommand[wa("0xa")](this)),t.reversed&&e[wa("0x1")](wa("0xc"),this.handleListReversedCommand[wa("0xa")](this)),t[wa("0x8")]&&e[wa("0x1")](wa("0x25"),this[wa("0x22")][wa("0xa")](this)),e[wa("0x4")][wa("0x31")](this.handleDescriptions[wa("0xa")](this))}[wa("0x1b")](t,e={}){const n=this[wa("0x33")][wa("0x17")][wa("0xb")](wa("0x1d")),o=this[wa("0x2")]();this[wa("0x33")][wa("0x1a")][wa("0x23")]((()=>{n[wa("0x6")](o,{commandName:wa("0x0"),commandParams:[{type:e[wa("0x19")]}],formatGroupId:wa("0x0")})}))}[wa("0x30")](t,e={}){const n=this.editor[wa("0x17")][wa("0xb")](wa("0x1d")),o=this[wa("0x33")][wa("0x17")][wa("0xb")](wa("0x21")),s=this[wa("0x16")]((t=>o[wa("0x28")](t)&&"numbered"===t[wa("0x2e")]("listType")));null!==s&&this[wa("0x33")][wa("0x1a")].change((()=>{n.markMultiRangeBlockFormat(s,{commandName:wa("0xc"),commandParams:[{reversed:e[wa("0x2c")]}],formatGroupId:wa("0xc")})}))}[wa("0x22")](t,e={}){const n=this.editor[wa("0x17")][wa("0xb")](wa("0x1d")),o=this[wa("0x33")][wa("0x17")][wa("0xb")](wa("0x21")),s=this[wa("0x16")]((t=>o.isListItemBlock(t)&&wa("0xd")===t.getAttribute(wa("0x7"))));null!==s&&this[wa("0x33")][wa("0x1a")][wa("0x23")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:wa("0x25"),commandParams:[{startIndex:e[wa("0x8")]}],formatGroupId:wa("0x25")})}))}[wa("0x15")](t){const e=this[wa("0x33")].locale,{data:n}=t;if(!n)return;let o,s;switch(n[wa("0x2a")]){case wa("0x0"):o=wa("0x2d"),s={type:wa("0x32"),content:Yo(e,o,Yo(e,this[wa("0x2b")](n[wa("0x18")][0].type)))};break;case"listReversed":o=n[wa("0x18")][0][wa("0x2c")]?wa("0x1e"):"*Format:* set order to regular",s={type:wa("0x32"),content:Yo(e,o)};break;case wa("0x25"):o=wa("0x24"),s={type:wa("0x32"),content:Yo(e,o,n[wa("0x18")][0].startIndex)}}return s}[wa("0x2")](){const t=this[wa("0x33")].plugins.get(wa("0x21"));let e=Array[wa("0x10")](this[wa("0x33")].model[wa("0x5")][wa("0x1c")][wa("0x29")]());return e[wa("0x26")](...t[wa("0x3")](e)),e=[...new Set(e)],e}_getSuggestionBlocks(t){const e=this.editor[wa("0x17")][wa("0xb")](wa("0x21"));let n=Array.from(this[wa("0x33")][wa("0x1a")][wa("0x5")][wa("0x1c")].getSelectedBlocks()).filter(t);if(!n[wa("0x11")])return null;n=e[wa("0x3")](n);const o=[];for(const t of n)e[wa("0x1f")](t)&&o[wa("0x26")](t);return o}_getTranslationKeyForListStyle(t){return"ELEMENT_"+this.editor[wa("0x17")][wa("0xb")](wa("0xe"))[wa("0xf")](t)[wa("0x12")]()+wa("0x14")+t[wa("0x12")]()[wa("0x13")](/-/g,"_")}}const Fa=["tableAlignment","accept","join","_handlePropertyChange","plugins","registerCustomCallback","tableCellVerticalAlignment","tableCellBorderStyle","subType","tableProperties","markBlockFormat","tableCellBackgroundColor","tableCellBorderWidth","tableBorderWidth","table","tableWidth","_getSuggestion","format","getContainedElement","tableCellHeight","getSelectionAffectedTableCells","tableHeight","start","findAncestor","discard","*Format:* change table cell properties","tableBorderColor","nodeAfter","document","enableCommand","batch","getSuggestions","tableCellProperties","editor","formatBlock","enqueueChange","tableCellBorderColor","get","selection","locale","_descriptionFactory","has","TrackChangesTableProperties","getSuggestionCallback","model","setAttribute","handleDiscardAction","commandParams","tableCellHorizontalAlignment","getAttribute","tableBackgroundColor","TableUtils","TrackChangesEditing","_suggestionFactory"];var Pa,Da;Pa=Fa,Da=264,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("0xf")]=[Ba("0x20"),"tableBorderStyle",Ba("0x13"),Ba("0x6"),Ba("0x15"),Ba("0x1b"),Ba("0x2")],this[Ba("0x26")]=[Ba("0x2a"),Ba("0xd"),Ba("0x12"),"tableCellPadding","tableCellWidth",Ba("0x19"),Ba("0x11"),Ba("0x0"),Ba("0xc")]}static get pluginName(){return Ba("0x30")}afterInit(){const t=this[Ba("0x27")][Ba("0xa")][Ba("0x2b")](Ba("0x4"));if(this[Ba("0x27")][Ba("0xa")][Ba("0x2f")]("TablePropertiesEditing")){for(const e of this[Ba("0xf")])t[Ba("0x23")](e,((t,n)=>{const o=this[Ba("0x27")][Ba("0x32")].document[Ba("0x2c")].getFirstPosition()[Ba("0x1d")](Ba("0x14"));this[Ba("0x9")](e,[o],this.tableProperties,"tableProperties",t,n)}));t[Ba("0x5")].registerCustomCallback(Ba("0x28"),Ba("0xf"),Ba("0x7"),t._suggestionFactory.getSuggestionCallback(Ba("0x28"),null,"discard")),t._suggestionFactory[Ba("0xb")](Ba("0x28"),Ba("0xf"),Ba("0x1e"),((t,e)=>this[Ba("0x34")](this[Ba("0xf")],t,e))),t[Ba("0x5")][Ba("0xb")]("formatBlock","tableProperties","join",(()=>!1))}if(this[Ba("0x27")].plugins[Ba("0x2f")]("TableCellPropertiesEditing")){for(const e of this[Ba("0x26")])t[Ba("0x23")](e,((t,n)=>{const o=this[Ba("0x27")][Ba("0xa")].get(Ba("0x3"))[Ba("0x1a")](this.editor[Ba("0x32")][Ba("0x22")][Ba("0x2c")]);this._handlePropertyChange(e,o,this[Ba("0x26")],Ba("0x26"),t,n)}));t[Ba("0x5")][Ba("0xb")](Ba("0x28"),"tableCellProperties","accept",t[Ba("0x5")][Ba("0x31")](Ba("0x28"),null,Ba("0x1e"))),t._suggestionFactory[Ba("0xb")](Ba("0x28"),Ba("0x26"),Ba("0x1e"),((t,e)=>this[Ba("0x34")](this.tableCellProperties,t,e))),t[Ba("0x5")][Ba("0xb")]("formatBlock","tableCellProperties",Ba("0x8"),(()=>!1))}t[Ba("0x2e")].registerDescriptionCallback((t=>this.handleSuggestionDescription(t)))}[Ba("0x9")](t,e,n,o,s,r){const i=this.editor.plugins[Ba("0x2b")](Ba("0x4"));this[Ba("0x27")][Ba("0x32")][Ba("0x29")](r[Ba("0x24")],(()=>{for(const t of e)if(this[Ba("0x16")](t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0x1")](o);void 0!==n&&(e[o]=n)}s(r),i[Ba("0x10")](t,{commandParams:[e]},[],o)}}))}[Ba("0x34")](t,e,n){const o=e[0][Ba("0x1c")][Ba("0x21")],s=n[Ba("0x35")][0];this[Ba("0x27")].model.change((e=>{for(const n of t)void 0!==s[n]?e[Ba("0x33")](n,s[n],o):e.removeAttribute(n,o)}))}handleSuggestionDescription(t){if(t.data)switch(t[Ba("0xe")]){case Ba("0xf"):return{type:Ba("0x17"),content:Yo(this[Ba("0x27")][Ba("0x2d")],"*Format:* change table properties")};case Ba("0x26"):return{type:Ba("0x17"),content:Yo(this[Ba("0x27")].locale,Ba("0x1f"))}}}[Ba("0x16")](t,e){const n=this[Ba("0x27")].plugins[Ba("0x2b")]("TrackChangesEditing");for(const o of n[Ba("0x25")]({skipNotAttached:!0})){const n=o[Ba("0x18")]();if(o[Ba("0xe")]===e&&n===t)return o}return null}}const Ua=["define","ck-suggestion-marker--active","mapper","change:activeMarkers","join","_handleNewSuggestionMarker","removeClass","_enabledCommands","range","_setSuggestionRange","values","trackChanges.trackFormatChanges","containsRangeInObject","isInContent","PENDING_ACTION_SUGGESTION","setAttribute","getSuggestionCallback","suggestion","set","getRanges","fromRange","oldRange","getItems","nodeBefore","_suggestions","authoredAt","$graveyard","createPositionAt","group","getDifference","_saved","suggestionLoaded","creator","forward","isDocumentOperation","track-changes-user-not-found","accept","addSuggestion","external:","formatBlock","unbind","deletion:accept","every","_getSuggestionData","end","_findSuggestions","formatInline","differ","isSelectable","isObject","documentSelection","parent","markerToData","execute","isBlock","removeMarkers","formatBlock:discard","updateMarker","_model","some","moveTargetPosition","author","addCommentThread","refresh","commentThread","selection","_suggestionFactory","element","getFirstRange","_breakSuggestionMarker","isOwn","schema","buildSuggestion","_joinSuggestions","splitPosition","insertion:accept","head","registerPostFixer","addClass","locale","return","_updateSuggestionData","stop","markerNameToElements","widget","config","change:_saved","_customCallbacks","removeMarker","always","open","consume","getAttribute","track-changes-adapter-already-set","_suggestionState","containerElement","clear","acceptSelectedSuggestions","getUser","enableReadOnlyMode","splice","enableCommand","markerName","writer","add","_getAuthorFromId","isBefore","trackChanges","Users","attributes","markers","includes","_mergeNestedSuggestions","removed","createRange","createdAt","getChangedMarkers","$marker","hasCommentThread","track-changes-adapter-missing-getsuggestion","_checkSuggestionCorrectness","discardAllSuggestions","error-saving-suggestion-data-suggestion-discarded","formatInline:join","createPositionAfter","@external","_splitMarkerName","commands","_editor","filter","acceptSuggestion","after","formatBlock:join","elementEnd","detach","_trackFormatChanges","_createSuggestion","editing","acceptAllSuggestions","fetchCommentThread","PendingActions","accepted","size","deletion:","suggestion-type","addMarker:suggestion","ck-suggestion-marker-formatBlock","push","CommentsRepository","start","hasComments","nodeAfter","get","_defaultCallbacks","backward","insertion","before","remove","TrackChangesEditing","insertContent","markerToHighlight","getIntersection","discardSelectedSuggestions","formatBlock:","pluginName","formatBlock:accept","reconvertMarker","getCustomProperty","notReady","markMultiRangeDeletion","data-suggestion","authorName","init","options","conversion","fire","unbindElementFromMarkerName","isNextTo","setSelection","_commentsRepository","markDeletion","listenTo","never","formatInline:discard","addUser","ck-suggestion-marker","insertion:join","formatInline:chain","isAtEnd","deletion","getShiftedBy","enqueueChange","ready","formatInline:","marker-count","upcast","subType","data","_isForcedDefaultExecutionBlock","addHighlight","ck-suggestion-marker-","rethrowUnexpectedError","resolve","getNearestSelectionRange","dataReady","from","markInlineFormat","setTo","previous","dataToMarker","_joinWithAdjacentSuggestions","length","updateSuggestion","isLocal","getSuggestion","forceDefaultExecution","batch","insert","applyOperation","_addThreadToSuggestion","markBlockFormat","editor","requires","suggestionChanged","markerReady","howMany","deleteContent","bindElementToMarker","hasSuggestion","_addSuggestionMarker","rootName","addSuggestionData","showSuggestionHighlights","removeComment","_removeSuggestion","track-changes-suggestion-data-mismatch","getLastMatchingPosition","trackChanges.mergeNestedSuggestions","getSuggestions","isAfter","isLimit","item","getFirstMarker","next","createRangeIn","multipleBlocks","formatGroupId","root","commandName","adapter","_cutOutSuggestionMarker","registerCustomCallback","type","markMultiRangeInsertion","model","targetPosition","position","formatBlock:chain","getMultiRangeId","split","document","sort","activeMarkers","newRange","discard","delete","elementToElement","deletion:discard","markInsertion","plugins","isTouching","formatInline:accept","clone","addMarker:suggestion:formatBlock","isRemovable","createElement","getCommentThread","insertion:","isAtStart","value","getAllAdjacentSuggestions","isExternal","containsItem","_adapter","addMarkerName","then","consumable","for","name","containsRange","has","_refreshSuggestionsChain","multi","_rangeIsInLocalUserInsertion","_getExternalAuthor","trackChangesCommand","addRange","move","skipNestingCheck","_setSuggestionData","collaboration.channelId","dataDowncast","change","isMultiRange","suggestion:","map","originalSuggestionId","discardSuggestion","catch","createSelection","high","containsPosition","insertion:chain","removeAttribute","isEqual","low","toJSON","isCollapsed","editingDowncast","toViewElement"];var Ga,Ha;Ga=Ua,Ha=364,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("0xb2")](){return[za("0x68"),r.Users,t.PendingActions,cs,Cs,vs,ws,Bs,Ws,Js,er,Oa,xr,dr,br,yr,Lr,Pr,Gr,Kr,Qr,ni,xi,di,pi,Ci,vi,Oi,ji,Wi,$i,tx,ix,dx,px,yx,Ix,wx,jx,Wx,Sa,Qx,sa,ma,ja,ca,Ea,ka]}static get[za("0x78")](){return za("0x72")}constructor(t){function e(t){return t[za("0x105")]((t=>String.fromCharCode(t)))[za("0x118")]("")}super(t),this.set(za("0xda"),[]),this.on(za("0x117"),((e,n,o,s)=>{this[za("0xe")][za("0x102")]((()=>{for(const e of[...s,...o])this._model[za("0x42")][za("0xf6")](e)&&t[za("0x5d")][za("0x7a")](e)}))})),this._descriptionFactory=new ss(this[za("0xb1")][za("0xd2")][za("0x1b")],this[za("0xb1")][za("0x23")]),this._adapter=null,this[za("0x16")]=new Va(this[za("0xb1")]),this._suggestions=new Map,this[za("0x87")]=t[za("0xe1")][za("0x6c")]("CommentsRepository"),this[za("0x11b")]=new Set,this[za("0xe")]=this[za("0xb1")][za("0xd2")],this[za("0x32")]=new WeakMap,this[za("0x9a")]=!1,t[za("0x29")][za("0x114")](za("0x11f"),"default"),this[za("0x5b")]=t.config[za("0x6c")](za("0x11f")),t.config[za("0x114")](za("0xc1"),!0),this._mergeNestedSuggestions=t[za("0x29")][za("0x6c")](za("0xc1")),this.trackChangesCommand=new d(t,this[za("0x11b")]),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,54,50,52])}[za("0x80")](){const t=this[za("0xb1")];t[za("0x82")].for(za("0x112"))[za("0x74")]({model:za("0x125"),view:t=>{const{id:e,type:n}=this[za("0x52")](t.markerName),o=[za("0x8d"),za("0x9c")+n];let s=3e3;return this.activeMarkers.includes(t[za("0x3a")])&&(o[za("0x67")](za("0x115")),s=3010),za("0x91")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t.conversion[za("0xf3")]("dataDowncast")[za("0x3c")]((e=>{e.on(za("0x65"),((e,n,o)=>{if(!o.options[za("0xbc")])return;const s=n[za("0xc5")];if(!s)return;const r=o[za("0x116")][za("0x113")](s);t[za("0xd2")].schema[za("0x5")](s)&&r&&!r.getCustomProperty(za("0x28"))&&r.is(za("0x33"))&&(0,x.toWidget)(r,o.writer)}),{priority:"high"})})),t.conversion[za("0xf3")](za("0x101"))[za("0x74")]({model:za("0x125"),view:(t,e)=>{if(!e[za("0x81")][za("0xbc")])return null;const{type:n}=this[za("0x52")](t[za("0x3a")]);return{classes:["ck-suggestion-marker",za("0x9c")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o.item)return;if(o[za("0xc5")].is(za("0x15")))return void s[za("0xf2")][za("0x2f")](o[za("0xc5")],n.name);const r=s.mapper[za("0x113")](o[za("0xc5")]);if(!o[za("0xc5")].is(za("0x17"))||!t.model[za("0x1b")][za("0xa")](o[za("0xc5")])||r[za("0x7b")]("addHighlight"))return;const{id:i}=this[za("0x52")](o[za("0x3a")]);s[za("0x3b")][za("0x22")]([za("0x8d"),za("0x66")],r),s[za("0x3b")][za("0x123")](za("0x7e"),i,r),s[za("0x116")][za("0xb7")](r,o.markerName),e&&(this[za("0xda")].includes(o[za("0x3a")])?s.writer[za("0x22")](za("0x115"),r):s[za("0x3b")].removeClass(za("0x115"),r));for(const e of t.model[za("0xc8")](o.item)[za("0x12a")]())s[za("0xf2")].consume(e,n[za("0xf4")]);s.consumable[za("0x2f")](o[za("0xc5")],n[za("0xf4")])};t.conversion[za("0xf3")]("dataDowncast")[za("0x3c")]((t=>{t.on("addMarker:suggestion:formatBlock",((t,e,o)=>{o[za("0x81")][za("0xbc")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:"highest"})})),t.conversion[za("0xf3")]("dataDowncast")[za("0x8")]({model:za("0x125"),view:(t,e)=>e[za("0x81")].showSuggestionHighlights?null:{group:za("0x125"),name:t.substr(11)}}),t[za("0x82")][za("0xf3")](za("0x97"))[za("0xde")]({view:{name:"suggestion",attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=za("0x104")+t[za("0x30")](za("0x64"))+":"+t[za("0x30")]("id");return t.getAttribute(za("0x96"))&&(n+=":"+t.getAttribute("marker-count")),e[za("0xe7")](za("0x49"),{"data-name":n})}}),t[za("0x82")].for(za("0x97"))[za("0xa5")]({view:za("0x125")}),t[za("0x82")].for(za("0x112"))[za("0x3c")]((t=>{t.on(za("0xe5"),n(),{priority:za("0x10a")})})),t.conversion[za("0xf3")](za("0x112"))[za("0x3c")]((t=>{t.on("removeMarker:suggestion:formatBlock",((t,e,n)=>{const o=n[za("0x116")][za("0x27")](e.markerName);if(o)for(const t of o)t[za("0x7b")](za("0x9b"))||(n[za("0x3b")][za("0x11a")](["ck-suggestion-marker",za("0x66"),za("0x115")],t),n[za("0x3b")][za("0x10d")](za("0x7e"),t),n[za("0x116")][za("0x84")](t,e[za("0x3a")]))}),{priority:"high"})})),t.model[za("0xd8")].registerPostFixer((e=>{let n=!1;const o=Array[za("0xa1")](t[za("0xd2")][za("0xd8")].differ[za("0x48")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[za("0x52")](x);if(za("0x125")!==o)continue;const u=this[za("0x12c")].get(l);if(null!=a[za("0xdb")])if(za("0x2")==c&&(n=n||Xa(a.newRange,x,e,t[za("0xd2")][za("0x1b")])),a[za("0xdb")][za("0x111")]||za("0x12e")==a.newRange.root[za("0xba")]||"formatBlock"==c&&!Ja(a[za("0xdb")])||"deletion"==c&&(qa(i=a[za("0xdb")])||(r=i)[za("0x69")].parent==r.end[za("0x12b")]&&r[za("0x69")][za("0x90")]))e[za("0x2c")](x),n=!0;else{if(!u||!u[za("0x121")])continue;s.add(u)}}var r,i;return s[za("0x62")]>0&&(n=!!this[za("0xa6")](s)||n),n})),t[za("0xd2")][za("0xd8")][za("0x21")]((e=>{let n=!1;for(const o of t[za("0xd2")][za("0xd8")].differ.getChanges()){if("insert"!=o.type)continue;const s=o[za("0xd4")][za("0x92")](o[za("0xa7")]);if(s[za("0x90")])for(const r of this[za("0x12c")][za("0x11e")]()){if(r[za("0x103")]||!r[za("0x121")])continue;if("formatBlock"!=r[za("0xd0")])continue;const i=r.getFirstRange();if(i[za("0x69")][za("0x7")]!=i.end[za("0x7")]&&i[za("0x0")][za("0x10e")](o[za("0xd4")])){const o=t[za("0xd2")].createRange(i[za("0x69")],s);e[za("0xd")](r[za("0xc6")](),{range:o}),n=!0}}}return n})),t.model.markers.on("update:suggestion",((t,e,n)=>{if(null==n){const{id:t}=this[za("0x52")](e[za("0xf4")]),n=this._suggestions[za("0x6c")](t);n&&n[za("0xf0")](e[za("0xf4")])}})),t[za("0xd2")][za("0xd8")].on("change:data",(()=>{const e=Array[za("0xa1")](t[za("0xd2")][za("0xd8")][za("0x3")][za("0x48")]())[za("0x55")]((t=>za("0x125")===this._splitMarkerName(t.name)[za("0x130")]));if(0===e[za("0xa7")])return;e[za("0xd9")](((t,e)=>{const n=t[za("0x99")][za("0x129")],o=e[za("0x99")][za("0x129")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[za("0x69")].isBefore(o.start)?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[za("0x52")](t);if(null===s[za("0x129")]){const e=this[za("0x119")](t);o[za("0x3c")](e)}else{const t=this[za("0x12c")][za("0x6c")](e);null!==s.newRange||t[za("0x121")]?(n[za("0x3c")](t[za("0x20")]),o.add(t)):this[za("0xbe")](t)}}o[za("0x62")]>0&&this[za("0xf7")](o);for(const t of n)this.fire(za("0xb3"),t)})),t[za("0xd2")].on(za("0xae"),((e,n)=>{const o=n[0];if(!this[za("0x12c")].size)return;if(!o[za("0x136")])return;if(o[za("0xac")].isUndo||!o[za("0xac")][za("0xa9")])return;let s,r;switch(o[za("0xd0")]){case za("0xad"):s=t.model.createPositionAt(o[za("0xd4")]),r=s.getShiftedBy(o[za("0xb5")]);break;case za("0xd7"):s=t[za("0xd2")][za("0x12f")](o[za("0x1e")]),r=t[za("0xd2")][za("0x12f")](o[za("0x10")]);break;case za("0xfd"):s=t.model[za("0x12f")](o[za("0xd3")]),r=s[za("0x92")](o.howMany);break;default:return}const i=t.model.createRange(s,r);t[za("0xd2")][za("0x102")]((()=>{for(const{suggestion:t,meta:e}of this[za("0x1")](i)){if(t[za("0x103")])continue;if("formatInline"==t[za("0xd0")])continue;const n=t[za("0x99")]&&t[za("0x99")][za("0xc9")];(za("0x13b")!=t[za("0xd0")]||za("0xd7")==o[za("0xd0")]&&!n)&&(e.containsRangeInObject||za("0x6f")==t[za("0xd0")]&&e[za("0x1a")]||t[za("0x18")]().containsRange(i)&&this[za("0x19")](t,s,r))}}))}),{priority:"lowest"}),t.model.on(za("0xb6"),((e,n)=>{const o=n[0],s=n[1];if(s&&s[za("0xab")])return;if(this[za("0x9a")])return;if(!this[za("0xfb")].value)return;if(o[za("0x111")])return;const r=t[za("0xd2")][za("0x1b")],{start:i,end:x}=o[za("0x18")](),a=i[za("0x6b")]&&r.isLimit(i[za("0x6b")])?null:r[za("0x9f")](i,za("0x135")),c=x[za("0x12b")]&&r.isLimit(x.nodeBefore)?null:r[za("0x9f")](x,za("0x6e")),l=t.model[za("0x46")](a?a[za("0x69")]:i,c?c[za("0x0")]:x);t[za("0xd2")][za("0x102")]((e=>{this[za("0x88")](l);const n=t[za("0xd2")].schema[za("0x9f")](l[za("0x69")]);o.is(za("0x6"))?e[za("0x86")](n):o[za("0xa3")](n)})),e[za("0x26")]()}),{priority:e.priorities.normal+10}),t[za("0xd2")].on(za("0x73"),((e,n)=>{const o=n[n[za("0xa7")]-1];o&&o[za("0xab")]||this[za("0x9a")]||this[za("0xfb")][za("0xeb")]&&(t[za("0xd2")][za("0x102")]((()=>{let o=t[za("0xd2")][za("0x73")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[za("0x24")]=o[za("0xe4")]();const s=o[za("0x0")][za("0x12b")],r=t.model[za("0x1b")];s&&r[za("0xa")](s)&&!r[za("0x5")](s)&&(o=t[za("0xd2")][za("0x46")](o.start,t[za("0xd2")][za("0x12f")](s,za("0x0")))),this[za("0xe0")](o)})),e[za("0x26")]())}),{priority:za("0x10a")}),this[za("0xb1")][za("0x53")].add(za("0x3f"),this[za("0xfb")]),this.enableCommand("trackChanges");const o=new p(t,this._suggestions);t[za("0x53")][za("0x3c")](za("0x56"),o),this[za("0x39")]("acceptSuggestion");const s=new C(t,this[za("0x12c")]);t[za("0x53")][za("0x3c")](za("0x107"),s),this[za("0x39")](za("0x107")),t.commands[za("0x3c")](za("0x5e"),new F(t,o,this._suggestions)),this[za("0x39")](za("0x5e")),t.commands[za("0x3c")](za("0x4d"),new F(t,s,this._suggestions)),this[za("0x39")](za("0x4d")),t[za("0x53")][za("0x3c")](za("0x35"),new U(t,o,this[za("0x12c")])),this.enableCommand(za("0x35")),t[za("0x53")][za("0x3c")](za("0x76"),new U(t,s,this[za("0x12c")])),this[za("0x39")](za("0x76"));const r=t[za("0xe1")][za("0x6c")](za("0x68"));this[za("0x89")](r,"addComment",((t,{threadId:e})=>{const n=this[za("0x12c")][za("0x6c")](e);n&&n[za("0x14")]&&1===n.commentThread[za("0xa7")]&&this[za("0x25")](e,{hasComments:!0})}),{priority:za("0x10f")}),this[za("0x89")](r,za("0xbd"),((t,{threadId:e})=>{const n=this._suggestions[za("0x6c")](e);n&&n[za("0x14")]&&!n[za("0x14")].length&&this[za("0x25")](e,{hasComments:!1})}),{priority:"low"})}set adapter(t){if(this[za("0xef")])throw new e.CKEditorError(za("0x31"),this);this[za("0xef")]=t}get[za("0xcd")](){return this[za("0xef")]}[za("0xc2")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions[za("0x11e")]())t&&!e[za("0x121")]||n[za("0x67")](e);return e?n[za("0x105")]((t=>t[za("0x110")]())):n}[za("0xaa")](t){const n=this[za("0x12c")].get(t);if(!n)throw new e.CKEditorError("track-changes-suggestion-not-found",this);return n}[za("0xb8")](t){return this[za("0x12c")][za("0xf6")](t)}[za("0xbb")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[za("0xd0")].split(":"),i=this[za("0x12c")][za("0x6c")](n)||this[za("0x5c")](s,r,n,e,o);if(this[za("0xaf")](i),this[za("0x4c")](i,s,r||null,e),i[za("0x47")]=t[za("0x47")],o&&o[za("0x51")]){const t=o[za("0x51")],e=this[za("0xfa")](t[za("0x7f")]);i[za("0x12d")]=t[za("0x47")],i[za("0x11")]=e,i[za("0xed")]=!0}else i.authoredAt=t[za("0x47")];switch(t[za("0x99")]&&(i[za("0x99")]=t[za("0x99")]),t.attributes&&(i[za("0x41")]=t[za("0x41")]),this[za("0xef")]&&this._adapter[za("0x139")]||(i[za("0x132")]=!0),this._suggestionState.get(i)){case"notReady":this[za("0x32")][za("0x126")](i,za("0xa0"));break;case za("0xb4"):i.isInContent?(this[za("0x32")][za("0x126")](i,"ready"),this[za("0x83")](za("0x133"),i)):this[za("0x32")][za("0x126")](i,za("0x45"))}return i}[za("0x56")](t){this.forceDefaultExecution((()=>{this[za("0xb1")].model.change((()=>{for(const e of t[za("0xec")]())e[za("0x138")]()}))}))}[za("0x107")](t){this[za("0xab")]((()=>{this.editor[za("0xd2")][za("0x102")]((()=>{for(const e of t[za("0xec")]())e[za("0xdc")]()}))}))}[za("0x39")](t,n){const o=this[za("0xb1")][za("0x53")][za("0x6c")](t);if(!o)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});this[za("0x11b")][za("0x3c")](o),n&&o.on(za("0x9"),((t,e)=>{this[za("0xfb")].value&&(this[za("0x9a")]||e[za("0xa7")]>0&&e[e[za("0xa7")]-1]&&e[e[za("0xa7")]-1][za("0xab")]||(n(((...t)=>o[za("0x9")](...t,{forceDefaultExecution:!0})),...e),t.stop()))}),{priority:za("0x10a")})}[za("0xab")](t){let n,o;const s=this[za("0x9a")];this[za("0x9a")]=!0;try{n=t()}catch(t){o=t}return s||(this._isForcedDefaultExecutionBlock=!1),o&&e.CKEditorError[za("0x9d")](o,this),n}[za("0xe0")](t,n=null,o={}){if(t[za("0x111")])return null;const s=this[za("0xb1")][za("0xe1")][za("0x6c")](za("0x40")).me;for(const{suggestion:e,meta:o}of this[za("0x1")](t,"insertion"))if(o.isOwn){if(!o.isNextTo){if(!this[za("0x44")]&&o[za("0x120")])continue;return e}if(n==e.subType){const n=e[za("0x18")]();return n[za("0x69")].isEqual(t[za("0x0")])?this[za("0x11d")](e,this[za("0xe")][za("0x46")](t[za("0x69")],n[za("0x0")])):this[za("0x11d")](e,this[za("0xe")][za("0x46")](n.start,t[za("0x0")])),e}}const r=(0,e.uid)(),i=s.id,x=n?za("0xe9")+n:za("0x6f"),a=this[za("0xff")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0xb9")](x,r,i,t),a}[za("0xd1")](t,n=za("0xf8"),o={}){const s=this[za("0xb1")][za("0xe1")][za("0x6c")](za("0x40")).me,r=this[za("0x16")][za("0x124")](za("0x6f"),n,"join");for(const e of this[za("0xc2")]())if(e.author.id==s.id&&za("0x6f")==e[za("0xd0")]&&e.subType==n&&(r(e[za("0x127")](),t)||r(t,e[za("0x127")]()))){for(const n of t)e[za("0xfc")](n);return e}if(this[za("0x44")])for(const e of t)for(const{suggestion:n,meta:o}of this._findSuggestions(e,za("0x6f"))){if(!o[za("0x1a")])continue;let e=!0;for(const o of n.getRanges())for(const n of t)if(!o[za("0xf5")](n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=s.id,a=za("0xe9")+n,c=this._setSuggestionData({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[za("0xb9")](a,i,x,e,Zo[za("0xd6")]());return c}[za("0xa2")](t,n,o=null,s={}){if(o=o||$a(n),t.isCollapsed)return null;if(za("0x8a")===this[za("0x5b")]){const e=this[za("0x16")].getSuggestionCallback(za("0x2"),o,za("0x138"));return this[za("0xab")]((()=>e([t],n,s))),null}const r=this[za("0xb1")][za("0xe1")][za("0x6c")](za("0x40")).me,i=[];if(za("0x2d")!==this[za("0x5b")])for(const{suggestion:e,meta:n}of this[za("0x1")](t,"insertion"))n.isOwn&&!n.isInsideObject&&i[za("0x67")](...e[za("0x127")]());const x=function(t,e){const n=[];for(const o of e){const e=t[za("0x75")](o);e&&n[za("0x67")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[za("0xa7")];){const o=n[e][za("0x131")](t);n[za("0x38")](e,1,...o),e+=o[za("0xa7")]}}return n}(t,i);x[za("0xa7")]&&this._model[za("0x102")]((()=>{for(const t of x){const e=this._suggestionFactory[za("0x124")]("formatInline",o,za("0x138"));this[za("0xab")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[za("0x69")],a=t.end;for(const{suggestion:e,meta:n}of this[za("0x1")](t,za("0x2"))){if(!n.isOwn)continue;if(e.subType!=o)continue;const s=e[za("0x18")]();if(s[za("0xf5")](t,!0))return null;x=x[za("0x3e")](s.start)?x:s[za("0x69")],a=a.isAfter(s[za("0x0")])?a:s[za("0x0")],i?s[za("0x69")][za("0x3e")](i[za("0x18")]()[za("0x69")])?(i[za("0xb")](),i=e):e[za("0xb")]():i=e}const c=this[za("0xe")][za("0x46")](x,a);if(i)this._setSuggestionRange(i,c);else{const t=(0,e.uid)(),i=r.id;this[za("0xff")]({id:t,type:za("0x95")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[za("0xb9")]("formatInline:"+o,t,i,c)}}return null}[za("0xb0")](t,n,o=[],s=null,r={}){n.formatGroupId||(n.formatGroupId=n[za("0xcc")]),n.multipleBlocks=t.is("range"),s=s||$a(n);const i=o[za("0x105")]((t=>Qa(t,this[za("0xe")]))),x=t.is(za("0x11c"))?t:Qa(t,this[za("0xe")]);if(za("0x8a")===this[za("0x5b")]){const t=this[za("0x16")][za("0x124")]("formatBlock",s,za("0x138"));return this[za("0xab")]((()=>t([x],n,r))),null}i[za("0x67")](x);let a=!0;for(const t of i)if(!this[za("0xf9")](t)){a=!1;break}if(a&&za("0x2d")!==this._trackFormatChanges){const t=this[za("0x16")][za("0x124")]("formatBlock",s,za("0x138"));return this.forceDefaultExecution((()=>t([x],n,r))),null}let c=null,l=x[za("0x69")],u=x[za("0x0")];for(const{suggestion:t,meta:e}of this[za("0x1")](x,za("0x13b"))){if(!e[za("0x1a")]||e[za("0x85")]||e[za("0x120")]||e.isInsideObject)continue;if(t[za("0x99")][za("0xca")]!=n.formatGroupId)continue;const o=t.getFirstRange();if(t[za("0x98")]==s){if(o[za("0xf5")](x,!0))return null;l=l[za("0x3e")](o[za("0x69")])?l:o.start,u=u[za("0xc3")](o[za("0x0")])?u:o[za("0x0")],c?o[za("0x69")].isBefore(c.getFirstRange().start)?(c.removeMarkers(),c=t):t[za("0xb")]():c=t}else{const e=x.getIntersection(o);this[za("0xce")](t,e)}}const d=this[za("0xb1")][za("0xe1")].get(za("0x40")).me,g=(0,e.uid)(),m=d.id;if(c)return this[za("0x11d")](c,this[za("0xe")].createRange(l,u)),c;{const t=this[za("0xff")]({id:g,type:"formatBlock:"+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this._addSuggestionMarker("formatBlock:"+s,g,m,this[za("0xe")][za("0x46")](l,u)),t}}markMultiRangeBlockFormat(t,n,o=[],s=null,r={}){n[za("0xca")]||(n[za("0xca")]=n[za("0xcc")]);const i=t[0];n[za("0xc9")]=i.is(za("0x11c")),s=s||$a(n);const x=o[za("0x105")]((t=>Qa(t,this._model))),a=i.is("range")?t:t.map((t=>Qa(t,this[za("0xe")])));if(za("0x8a")===this[za("0x5b")]){const t=this[za("0x16")][za("0x124")](za("0x13b"),s,"accept");return this[za("0xab")]((()=>t(a,n,r))),null}x[za("0x67")](...a);let c=!0;for(const t of x)if(!this[za("0xf9")](t)){c=!1;break}if(c&&"always"!==this[za("0x5b")]){const t=this._suggestionFactory[za("0x124")]("formatBlock",s,za("0x138"));return this[za("0xab")]((()=>t(a,n,r))),null}const l=this[za("0xb1")].plugins.get(za("0x40")).me;for(const t of this.getSuggestions()){if(t[za("0x11")].id!=l.id)continue;if("formatBlock"!=t[za("0xd0")]||t[za("0x99")].formatGroupId!=n[za("0xca")])continue;const e=t[za("0x98")]==s;for(let n=0;n<a.length;n++){const o=a[n];for(const s of t.getMarkers()){const r=s.getRange();if(o[za("0x10e")](r)){e?(a[za("0x38")](n,1),n--):t[za("0x2c")](s.name);break}}}}if(0==a[za("0xa7")])return null;const u=this[za("0x16")][za("0x124")](za("0x13b"),s,za("0x118"));for(const t of this[za("0xc2")]())if(t[za("0x11")].id==l.id&&za("0x13b")==t[za("0xd0")]&&t[za("0x99")][za("0xca")]==n[za("0xca")]&&t.subType==s&&(u(t[za("0x127")](),a)||u(a,t.getRanges()))){for(const e of a)t[za("0xfc")](e);return t}const d=(0,e.uid)(),g=l.id,m=za("0x77")+s,f=this._setSuggestionData({id:d,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[za("0xb9")](m,d,g,t,Zo.getMultiRangeId());return f}[za("0x88")](t,n=null,o={}){if(t[za("0x111")])return null;const s=this[za("0xb1")][za("0xe1")].get("Users").me,r=new i.LiveRange(t[za("0x69")],t.end);for(const{suggestion:t,meta:e}of this[za("0x1")](r,za("0x6f")))if(e[za("0x1a")]&&!e[za("0x85")])if(t.isMultiRange){const e=t.getRanges().filter((t=>"$graveyard"!=t[za("0xcb")][za("0xba")]));if(e[za("0x13e")]((t=>r.containsRange(t,!0)))&&t.discard(),e.some((t=>t[za("0xf5")](r,!0)))){const t=this[za("0x16")][za("0x124")](za("0x91"),n,za("0x138"));return this[za("0xab")]((()=>t([r],null,o))),null}}else{const e=r[za("0x75")](t.getFirstRange());null!==e&&t._onDiscard([e],null,o)}if(r[za("0x5a")](),r.isCollapsed||za("0x12e")==r[za("0xcb")].rootName)return null;let x=null,a=r[za("0x69")],c=r[za("0x0")];for(const{suggestion:t,meta:e}of this[za("0x1")](r,"deletion"))if(e[za("0x1a")])if(t.isMultiRange&&this[za("0x44")]){let e=!0;for(const n of t.getRanges()){if(n[za("0xf5")](r,!0))return t;r[za("0xf5")](n)||(e=!1)}e&&t[za("0xdc")]()}else{const n=t[za("0x18")]();if(n[za("0xf5")](r,!0)){if(!this[za("0x44")]&&e[za("0x120")])continue;return t}a=a.isBefore(n[za("0x69")])?a:n[za("0x69")],c=c[za("0xc3")](n[za("0x0")])?c:n[za("0x0")],x?n[za("0x69")][za("0x3e")](x[za("0x18")]()[za("0x69")])?(x.removeMarkers(),x=t):t.removeMarkers():x=t}if(x)return this._setSuggestionRange(x,this._model[za("0x46")](a,c)),x;{const t=(0,e.uid)(),r=this[za("0xe")][za("0x46")](a,c),i=s.id,x=n?za("0x63")+n:za("0x91"),l=this[za("0xff")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this._addSuggestionMarker(x,t,i,r),l}}[za("0x7d")](t,n="multi",o={}){const s=this[za("0xb1")][za("0xe1")][za("0x6c")](za("0x40")).me,r=t.map((t=>new i.LiveRange(t[za("0x69")],t[za("0x0")]))),x=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this[za("0x1")](t,za("0x6f")))n.isOwn&&!n[za("0x85")]&&x[za("0x3c")](e);for(const e of x)if(e[za("0x103")]){const s=e[za("0x127")]();if((!e[za("0x41")]||!e.attributes.skipNestingCheck)&&s[za("0x13e")]((t=>r[za("0xf")]((e=>e[za("0xf5")](t,!0)))))&&e[za("0xdc")](),r[za("0x13e")]((t=>s[za("0xf")]((e=>e[za("0xf5")](t,!0)))))){const e=this[za("0x16")][za("0x124")](za("0x91"),n,za("0x138"));return this[za("0xab")]((()=>e(t,null,o))),null}}else{const t=e[za("0x18")]();if(r[za("0xf")]((e=>e[za("0xf5")](t,!0)))&&e[za("0xdc")](),r[za("0x13e")]((e=>t[za("0xf5")](e,!0)))){const t=this[za("0x16")][za("0x124")]("deletion",n,"accept");return this[za("0xab")]((()=>t(r,null,o))),null}}const a=this[za("0x16")][za("0x124")](za("0x91"),n,"join");let c=null;for(const t of this.getSuggestions())if(t[za("0x11")].id==s.id&&t[za("0x121")]&&za("0x91")==t.type&&t[za("0x98")]==n&&(a(t[za("0x127")](),r)||a(r,t[za("0x127")]())))if(c){if(t.commentThread&&t[za("0x14")][za("0xa7")])continue;for(const e of t.getRanges())c.isIntersectingWithRange(e)||c.addRange(e);t[za("0xb")]()}else{c=t;for(const e of r)t.isIntersectingWithRange(e)||t[za("0xfc")](e)}if(c)return c;x[za("0x34")]();for(const t of r)for(const{suggestion:e,meta:n}of this[za("0x1")](t,za("0x91")))n[za("0x1a")]&&x[za("0x3c")](e);for(const t of x){const e=t[za("0x127")]();if((!o||!o[za("0xfe")])&&r[za("0x13e")]((t=>e[za("0xf")]((e=>e.containsRange(t,!0))))))return t;(!t[za("0x41")]||!t.attributes[za("0xfe")])&&e[za("0x13e")]((t=>r[za("0xf")]((e=>e[za("0xf5")](t,!0)))))&&t[za("0xdc")]()}const l=(0,e.uid)(),u=s.id,d=za("0x63")+n,g=this._setSuggestionData({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of r)t[za("0x5a")](),t[za("0x111")]||za("0x12e")==t[za("0xcb")][za("0xba")]||this[za("0xb9")](d,l,u,t,Zo[za("0xd6")]());return g}[za("0x11d")](t,e){const n=t[za("0xc6")]();this[za("0xe")][za("0x102")]((t=>{t[za("0xd")](n,{range:e})}))}[za("0xaf")](t){const e=t.id,n=this[za("0xb1")][za("0x29")].get(za("0x100"));this._commentsRepository[za("0x4a")](e)||this[za("0x87")][za("0x12")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this._commentsRepository[za("0xe8")](e);o[za("0x13c")](za("0xe6")),o.isRemovable=!1,t[za("0x14")]=o}[za("0x4c")](t,n,o,s){if(t[za("0xd0")]!=n||t.subType!=o||t[za("0x134")].id!=s)throw this[za("0xb1")][za("0x37")](za("0xbf")),new e.CKEditorError("track-changes-suggestion-data-mismatch",this)}[za("0xce")](t,n){const o=t[za("0x18")]();if(n[za("0x10e")](o))t.removeMarkers();else if(o[za("0xf5")](n)){const s=this[za("0xe")][za("0x12f")](n.start[za("0x12b")],"end");this[za("0x11d")](t,this[za("0xe")][za("0x46")](o[za("0x69")],s));const r=(0,e.uid)(),i=t[za("0x134")].id,x=t[za("0xd0")]+":"+t[za("0x98")];this[za("0xff")]({id:r,type:x,createdAt:new Date,authorId:i,data:t[za("0x99")],attributes:t[za("0x41")]});const a=this[za("0xe")][za("0x12f")](n.end[za("0x7")],za("0x57")),c=this[za("0xe")].createRange(a,o[za("0x0")]);this._addSuggestionMarker(x,r,i,c)}else if(o[za("0x10b")](n[za("0x69")])){const e=this[za("0xe")][za("0x12f")](n.start.nodeBefore,za("0x0"));this[za("0x11d")](t,this[za("0xe")][za("0x46")](o[za("0x69")],e))}else{const e=this[za("0xe")].createPositionAt(n[za("0x0")][za("0x7")],za("0x57"));this[za("0x11d")](t,this[za("0xe")][za("0x46")](e,o.end))}}[za("0xf9")](t){for(const{suggestion:e,meta:n}of this[za("0x1")](t,"insertion")){if(!n[za("0x1a")])continue;const o=e[za("0x127")]();for(const e of o)if(!t[za("0x131")](e)[za("0xa7")])return!0}return!1}_getAuthorFromId(t){const n=this[za("0xb1")][za("0xe1")][za("0x6c")]("Users")[za("0x36")](t);if(!n)throw new e.CKEditorError(za("0x137"),this);return n}[za("0xfa")](t){const e=this[za("0xb1")][za("0xe1")].get(za("0x40")),n=(0,r.hashObject)(za("0x13a")+t);return e[za("0x36")](n)||e[za("0x8c")]({id:n,name:t})}[za("0x5c")](t,e,n,o,s){const r=this[za("0x3d")](o),i=this[za("0x16")][za("0x1c")](t,e,n,r,s,(t=>this._updateSuggestionData(n,{attributes:t})));return this.listenTo(i,za("0x138"),(()=>{this[za("0x25")](n,{state:za("0x61")})}),{priority:"high"}),this[za("0x89")](i,"discard",(()=>{this._updateSuggestionData(n,{state:"rejected"})}),{priority:za("0x10a")}),this[za("0x12c")][za("0x126")](n,i),this[za("0x32")][za("0x126")](i,za("0x7c")),i}_splitMarkerName(t){const e=t[za("0xd7")](":");return{group:e[0],type:e[1],subType:e[za("0xa7")]>=5?e[2]:null,id:e[za("0xa7")]<5?e[2]:e[3],authorId:e[za("0xa7")]<5?e[3]:e[4],markerCount:6==e.length?e[5]:null}}[za("0x19")](t,n,o){const s=t[za("0x18")](),r=s[za("0x69")],i=s.end;this._setSuggestionRange(t,this._model[za("0x46")](r,n));const x=(0,e.uid)(),a=t[za("0x134")].id,c=t[za("0xd0")]+(t[za("0x98")]?":"+t.subType:"");this[za("0xff")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[za("0x41")],data:t.data}),za("0x13b")==t[za("0xd0")]&&(o=this[za("0xe")].createPositionBefore(o[za("0x7")])),this._addSuggestionMarker(c,x,a,this._model.createRange(o,i))}[za("0x1")](t,e=null){const n=[],o=this[za("0xe")][za("0x1b")],s=this.editor.plugins[za("0x6c")](za("0x40")).me;for(const r of this.getSuggestions())if(r.isInContent&&(!e||r[za("0xd0")]==e))for(const e of r[za("0x127")]()){const i=t[za("0x69")][za("0x10e")](e[za("0x0")])||t[za("0x0")].isEqual(e[za("0x69")]);if(i||t.getIntersection(e)){const x=t[za("0xf5")](e)&&Ka(o,e[za("0x69")],t),a=e[za("0xf5")](t)&&Ka(o,t[za("0x69")],e);n.push({suggestion:r,meta:{isOwn:s==r.author,isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}[za("0xb9")](t,e,n,o,s){this[za("0xe")][za("0x102")]((r=>{let i="suggestion:"+t+":"+e+":"+n;s&&(i=i+":"+s),r.addMarker(i,{range:o,usingOperation:!0,affectsData:!0})}))}[za("0xbe")](t){const e=t.previous,n=t.next;t[za("0xa4")]=null,null!=e&&(e[za("0xc7")]=null),t[za("0xc7")]=null,null!=n&&(n[za("0xa4")]=null),za("0x94")==this._suggestionState[za("0x6c")](t)&&(this[za("0x32")][za("0x126")](t,"removed"),this[za("0x83")]("suggestionUnloaded",t,e,n))}[za("0xff")](t){const n=t.id,o=this[za("0xbb")](t);if(this[za("0xef")]&&this._adapter[za("0x139")]){const s=this.editor[za("0xe1")].get(za("0x60")),r=o.hasComments,i=o.subType?o.type+":"+o.subType:o[za("0xd0")],x=this[za("0xb1")][za("0x23")],a=s.add(Yo(x,"PENDING_ACTION_SUGGESTION")),c={id:n,type:i,hasComments:r,data:t[za("0x99")]||null,originalSuggestionId:t[za("0x106")]||null,attributes:o[za("0x41")]};this[za("0xef")].addSuggestion(c).then((t=>{o[za("0x132")]=!0,s[za("0x71")](a),t&&t.createdAt&&(this[za("0x12c")][za("0x6c")](n)[za("0x47")]=t[za("0x47")])}))[za("0x108")]((t=>{throw(0,e.logWarning)(za("0x4e")),this[za("0xb1")].model[za("0x93")]({isUndoable:!1},(()=>{o[za("0xdc")]()})),o.stopListening(),this._suggestions[za("0xdd")](o.id),this[za("0x32")][za("0xdd")](o),t}))}return o}[za("0x25")](t,e){const n=this[za("0xb1")].plugins[za("0x6c")](za("0x60")),o=this.getSuggestion(t);if(this[za("0xef")]&&this[za("0xef")][za("0xa8")])if(o._saved){const o=n[za("0x3c")](Yo(this[za("0xb1")][za("0x23")],za("0x122")));this[za("0xef")][za("0xa8")](t,e).then((()=>{n[za("0x71")](o)}))}else o.on(za("0x2a"),(()=>{this[za("0x25")](t,e)}))}[za("0x13f")](t){if(!this[za("0xef")]||!this._adapter[za("0xaa")])throw new e.CKEditorError(za("0x4b"),this);return this[za("0xef")][za("0xaa")](t)}_handleNewSuggestionMarker(t){const{id:e,type:n,subType:o,authorId:s}=this._splitMarkerName(t),r=this._suggestions[za("0x6c")](e)||this._createSuggestion(n,o,e,s,{});switch(this[za("0x4c")](r,n,o,s),this._suggestionState.get(r)){case za("0x7c"):this[za("0x13f")](e)[za("0xf1")]((t=>{let n=Promise[za("0x9e")]();t[za("0x6a")]&&(n=this._commentsRepository[za("0x5f")]({channelId:this[za("0xb1")][za("0x29")][za("0x6c")]("collaboration.channelId"),threadId:e})),n.then((()=>{this[za("0xbb")](t)._saved=!0}))})),this[za("0x32")].set(r,za("0xb4"));break;case"removed":this._updateSuggestionData(e,{state:za("0x2e")});case za("0xa0"):this[za("0x32")].set(r,za("0x94")),this[za("0x83")](za("0x133"),r);break;case"ready":this.fire(za("0xb3"),r)}return r[za("0xf0")](t),r}[za("0xf7")](t){const e=Array[za("0xa1")](t).filter((t=>!t[za("0x103")])),n=this[za("0xc2")]({skipNotAttached:!0})[za("0x55")]((t=>!t[za("0x103")])),o=n[za("0x55")]((e=>!t[za("0xf6")](e))),s=new Map(n[za("0x105")]((t=>[t,this[za("0x16")][za("0x124")](t[za("0xd0")],t.subType,"chain")]))),r=new Map(n.map((t=>[t,t[za("0x18")]()]))),i=new Set,x=new Set;for(let t=0;t<e[za("0xa7")];t++)a(e[t],e,t+1);for(let t=0;t<e[za("0xa7")];t++)a(e[t],o,0);for(let t=0;t<e[za("0xa7")];t++){const n=e[t];!x[za("0xf6")](n)&&n[za("0xa4")]&&(n[za("0xa4")][za("0xc7")]===n&&(n.previous[za("0xc7")]=null),n.previous=null),!i.has(n)&&n.next&&(n[za("0xc7")].previous===n&&(n[za("0xc7")][za("0xa4")]=null),n[za("0xc7")]=null)}function a(t,e,n){for(let o=n;o<e[za("0xa7")];o++){const n=c(t,e[o]);n&&(n[0][za("0xc7")]=n[1],n[1][za("0xa4")]=n[0],i.add(n[0]),x[za("0x3c")](n[1]))}}function c(t,e){if(t[za("0x11")].id!==e[za("0x11")].id)return null;const n=s[za("0x6c")](t)(t,e,r[za("0x6c")](t),r[za("0x6c")](e));return n&&s[za("0x6c")](e)(t,e,r[za("0x6c")](t),r[za("0x6c")](e))?n[1][za("0x14")]&&n[1][za("0x14")].length?null:n:null}}[za("0xa6")](t){const e=Array[za("0xa1")](t),n=this[za("0xc2")]({skipNotAttached:!0}),o=n[za("0x55")]((e=>!t[za("0xf6")](e))),s=new Map(e[za("0x105")]((t=>[t,this[za("0x16")][za("0x124")](t[za("0xd0")],t[za("0x98")],za("0x118"))]))),r=new Map(n[za("0x105")]((t=>[t,t[za("0x127")]()])));for(let t=0;t<e[za("0xa7")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[za("0xa7")];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("0xa7")];i++){const o=n[i];if(o[za("0xd0")]!==e[za("0xd0")]||o[za("0x11")].id!==e[za("0x11")].id||o.subType!==e.subType)continue;const x=s.get(e),a=r.get(e),c=r[za("0x6c")](o),l=e[za("0x14")]&&e.commentThread[za("0xa7")],u=o[za("0x14")]&&o[za("0x14")][za("0xa7")];if(!l&&x(c,a))return t[za("0x1d")](o,e),r[za("0xdd")](e),!0;if(!u&&x(a,c))return t[za("0x1d")](e,o),r[za("0xdd")](o),!0}return!1}}[za("0x1d")](t,e){if(t[za("0x103")])for(const n of e[za("0x127")]())t[za("0xfc")](n);else{const n=e[za("0x18")]()[za("0x0")];this._setSuggestionRange(t,this[za("0xe")][za("0x46")](t[za("0x18")]()[za("0x69")],n))}e[za("0xb")]()}}class Va{constructor(t){this[za("0x54")]=t,this[za("0xe")]=t[za("0xd2")],this[za("0x2b")]=new Map,this[za("0x6d")]=new Map,this._registerDefaultCallbacks()}[za("0x1c")](t,e,n,o,s,r){return new Zo(this[za("0xe")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[za("0x124")](t,e,za("0x138"))(...n),onDiscard:(...n)=>this[za("0x124")](t,e,za("0xdc"))(...n)})}[za("0xcf")](t,e,n,o){const s=t+":"+e+":"+n;this[za("0x2b")][za("0x126")](s,o)}getSuggestionCallback(t,e,n){const o=t+":"+e+":"+n;return this[za("0x2b")][za("0x6c")](o)||this._defaultCallbacks[za("0x6c")](t+":"+n)}_registerDefaultCallbacks(){const t=()=>{},e=t=>{t[za("0xd9")](((t,e)=>t.start[za("0x3e")](e[za("0x69")])?1:-1)),this[za("0xe")][za("0x102")]((e=>{for(const n of t){let t;t=n[za("0x0")][za("0x90")]&&n[za("0x0")][za("0x7")]==n[za("0x69")][za("0x6b")]?e.createSelection(n[za("0x69")][za("0x6b")],"on"):e[za("0x109")](n),this[za("0xe")].deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[za("0xe")][za("0x102")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[za("0x105")]((t=>(qa(t)&&(t=this[za("0xe")][za("0x46")](t.end)),t)))[za("0x55")]((t=>"$graveyard"!==t[za("0xcb")].rootName));if(r[za("0xa7")]<1)return;const x=Array.from(this._model[za("0xd8")][za("0x15")][za("0x127")]())[za("0x105")]((t=>i.LiveRange[za("0x128")](t)));n[za("0x86")](r);for(const t of this[za("0x54")].commands[za("0x53")]())t[za("0x13")]();s[za("0x67")]({forceDefaultExecution:!0}),this[za("0x54")][za("0x9")](o,...s);const a=x[za("0x55")]((t=>za("0x12e")!=t[za("0xcb")].rootName));a[za("0xa7")]>0&&n[za("0x86")](a);for(const t of x)t[za("0x5a")]()}))},o=(t,e)=>1==t[za("0xa7")]&&1==e[za("0xa7")]&&t[0][za("0x0")][za("0x10e")](e[0].start),s=(t,e,n,o)=>Za(t,e,n,o,this._model)?[t,e]:Za(e,t,o,n,this[za("0xe")])?[e,t]:null;this[za("0x6d")][za("0x126")](za("0x1f"),t),this._defaultCallbacks[za("0x126")]("insertion:discard",e),this[za("0x6d")][za("0x126")](za("0x8e"),o),this._defaultCallbacks[za("0x126")](za("0x10c"),s),this[za("0x6d")][za("0x126")](za("0x13d"),e),this._defaultCallbacks[za("0x126")](za("0xdf"),t),this[za("0x6d")][za("0x126")]("deletion:join",o),this[za("0x6d")][za("0x126")]("deletion:chain",s),this[za("0x6d")].set(za("0xe3"),n),this[za("0x6d")][za("0x126")](za("0x8b"),t),this[za("0x6d")][za("0x126")](za("0x4f"),o),this[za("0x6d")][za("0x126")](za("0x8f"),t),this[za("0x6d")][za("0x126")](za("0x79"),n),this._defaultCallbacks[za("0x126")](za("0xc"),t),this[za("0x6d")][za("0x126")](za("0x58"),o),this[za("0x6d")][za("0x126")](za("0xd5"),t)}}function Ka(t,e,n){for(const o of e[za("0x7")].getAncestors({includeSelf:!0,parentFirst:!0})){if(o[za("0xcb")]==o)return!1;if(!n[za("0xee")](o))return!1;if(t[za("0x5")](o)||t.isLimit(o))return!0}return!1}function qa(t){return t[za("0x0")][za("0x7")]==t[za("0x69")][za("0x6b")]&&t[za("0x0")][za("0xea")]}function Xa(t,e,n,o){const s=t=>!t.item.is("$textProxy")&&!o[za("0x5")](t[za("0xc5")]),r=t[za("0x69")][za("0xc0")](s),i=t.end[za("0xc0")](s,{direction:za("0x6e")});return!(t.start[za("0x10e")](r)&&t.end[za("0x10e")](i)||(r[za("0x3e")](i)?n[za("0xd")](e,{range:n[za("0x46")](r,i)}):n[za("0x2c")](e),0))}function $a(t){return(0,r.hashObject)(t)}function Ja(t){const e=t[za("0x69")][za("0x6b")];return e&&e.is(za("0x17"))}function Qa(t,e){const n=e.schema[za("0x5")](t)||e[za("0x1b")][za("0x4")](t);return e.createRange(e[za("0x12f")](t,za("0x70")),n?e[za("0x50")](t):e[za("0x12f")](t,za("0x0")))}function Za(t,e,n,o,s){if(n[za("0x0")][za("0x10e")](o[za("0x69")]))return!0;if(t[za("0xd0")]!=e[za("0xd0")])return!1;if(!n[za("0x0")][za("0xe2")](o[za("0x69")]))return!1;const r=s[za("0x46")](n[za("0x0")],o[za("0x69")]).getWalker();for(const t of r)if(["elementStart",za("0x59")][za("0x43")](t[za("0xd0")])&&s.schema[za("0xc4")](t.item))return!1;return!0}const Ya=["stopListening","canDiscard","view","destroy","model","bind","_pendingAction","isEnabled","discardSuggestion","_removePendingAction","commands","plugins","unbind","canAccept","_discardCommand","execute","remove","isDirty","PendingActions","canEditAt","_acceptCommand","get","add","commentThreadController","acceptSuggestion","PENDING_ACTION_SUGGESTION","listenTo","_setPendingAction","_editor","getRanges"];var tc,ec;tc=Ya,ec=445,function(t){for(;--t;)tc.push(tc.shift())}(++ec);const nc=function(t,e){return Ya[t-=0]};class oc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[nc("0x9")]=e,this[nc("0x7")]=n,this[nc("0x1c")]=o,this[nc("0x3")]=t,this[nc("0x19")]=t.commands[nc("0x1a")](nc("0x1d")),this[nc("0x13")]=t[nc("0xf")][nc("0x1a")](nc("0xd")),this.view[nc("0xa")](nc("0xc")).to(this[nc("0x19")],this._discardCommand,((t,e)=>t||e)),this[nc("0x7")][nc("0xa")](nc("0x12")).to(this._acceptCommand,nc("0xc"),(t=>t&&this[nc("0x3")].model[nc("0x18")](e[nc("0x4")]()))),this[nc("0x7")][nc("0xa")](nc("0x6")).to(this[nc("0x13")],nc("0xc"),(t=>t&&this[nc("0x3")][nc("0x9")][nc("0x18")](e[nc("0x4")]()))),this[nc("0xb")]=null,n[nc("0x16")]&&this[nc("0x2")](),this[nc("0x1")](n,"acceptSuggestion",(()=>this[nc("0x1d")]())),this[nc("0x1")](n,"discardSuggestion",(()=>this[nc("0xd")]())),this[nc("0x1")](n,"change:isDirty",(()=>{n[nc("0x16")]?this._setPendingAction():this[nc("0xe")]()}))}[nc("0x1d")](){this[nc("0x19")].execute(this[nc("0x9")].id)}[nc("0xd")](){this[nc("0x13")][nc("0x14")](this[nc("0x9")].id)}[nc("0x8")](){this[nc("0x7")][nc("0x11")](nc("0xc")),this[nc("0x7")][nc("0x11")]("canAccept"),this.view[nc("0x11")](nc("0x6")),this[nc("0x5")](),this[nc("0x1c")].destroy(),this[nc("0xb")]&&this[nc("0xe")]()}[nc("0x2")](){const t=Yo(this[nc("0x3")].locale,nc("0x0"));this[nc("0xb")]=this[nc("0x3")].plugins[nc("0x1a")](nc("0x17"))[nc("0x1b")](t)}[nc("0xe")](){null!==this[nc("0xb")]&&this[nc("0x3")][nc("0x10")][nc("0x1a")](nc("0x17"))[nc("0x15")](this[nc("0xb")]),this[nc("0xb")]=null}}const sc=["updateComment","commentThreadInputView","canAccept","_localUser","removeComment","isReadOnly","value","editor","destroy","set","focus","delegate","_createCommentViews","element","descriptionParts","cancel","hasDirtyComment","commentThread","isDirty","fire","_model","bind","length","commentInputView","commentsListView","isEnabled","assign","canDiscard","editorConfig","_config","addComment","_createCommentThreadInputView","setData","submit","authoredAt","locale","isActive","showInput"];var rc,ic;rc=sc,ic=379,function(t){for(;--t;)rc.push(rc.shift())}(++ic);const xc=function(t,e){return sc[t-=0]};class ac extends s.View{constructor(t,e,n,o){super(t),this.commentsListView=null,this[xc("0x2")]=null,this[xc("0xa")](xc("0x25"),!1),this.set(xc("0x23"),e[xc("0x23")]),this[xc("0x16")](xc("0x23")).to(e),this.set(xc("0xf"),[]),this[xc("0xa")](xc("0x13"),!1),this[xc("0xa")](xc("0x1a"),!1),this.set(xc("0x3"),!1),this[xc("0xa")](xc("0x1c"),!1),this[xc("0x15")]=e,this[xc("0x4")]=n,this[xc("0x1e")]=o,o.disableComments?this.set(xc("0x17"),1):this._createCommentViews()}[xc("0xb")](){this[xc("0xe")][xc("0xb")]()}[xc("0x9")](){this[xc("0x19")]&&this[xc("0x19")].destroy(),this[xc("0x2")]&&this[xc("0x2")][xc("0x9")](),super.destroy()}[xc("0xd")](){const{CommentsListView:t}=this[xc("0x1e")];this.commentsListView=new t(this[xc("0x24")],this[xc("0x15")][xc("0x12")],Object[xc("0x1b")]({CommentView:this._config.CommentView},this[xc("0x1e")])),this[xc("0x19")][xc("0xc")](xc("0x5")).to(this),this[xc("0x19")].delegate(xc("0x1")).to(this),this[xc("0x19")][xc("0x16")](xc("0x25")).to(this),this[xc("0xa")]("length",this[xc("0x19")][xc("0x17")]+1),this[xc("0x16")]("length").to(this[xc("0x19")],xc("0x17"),(t=>t+1)),this[xc("0x2")]=this[xc("0x20")](),this.on(xc("0x5"),(()=>this[xc("0xb")]())),this[xc("0x16")](xc("0x13")).to(this.commentsListView,xc("0x11"),this[xc("0x2")][xc("0x18")],xc("0x7"),((t,e)=>t||!!e))}[xc("0x20")](){const{CommentThreadInputView:t}=this._config,e=new t(this.locale,this[xc("0x4")],this[xc("0x1e")][xc("0x1d")]),n=e[xc("0x18")];return e.bind(xc("0x0")).to(this,xc("0x25"),this[xc("0x15")][xc("0x12")],xc("0x6"),n,xc("0x7"),((t,e,n)=>!!n||t&&!e)),n.on(xc("0x22"),((t,e)=>{this[xc("0x14")](xc("0x1f"),e),n[xc("0x8")][xc("0x21")]("")})),n.on(xc("0x10"),(()=>this[xc("0xb")]())),n[xc("0x16")]("disabledSubmit").to(this._model[xc("0x12")],xc("0x6")),e}}const cc=["name","span","querySelector","discardButton","locale","getExternalSuggestionNote","EXTERNAL_IMPORT_WORD_AVATAR","<p>",'"></span>',"_model","children","color","discardSuggestion","isActive","check","acceptSuggestion","createElement","attributes","</p>","ck-suggestion--discard","description","bind","Discard suggestion","split","getTemplate","@external","setTemplate","_descriptionElement","ck-suggestion-wrapper","innerHTML","ck-annotation__actions","canAccept","ck-suggestion__info","importWord","disableComments","formatDateTime","EXTERNAL_SUGGESTION","push","userView","author","div","EXTERNAL_IMPORT_WORD_SUGGESTION","creator","isExternal","editorReady","ck-suggestion__info-name","ck-annotation",'<span class="ck-suggestion-type">',"extendTemplate","fire","authoredAt",'<span class="ck-suggestion-color" style="background-color: ',"ck-annotation__user","ck-suggestion","acceptButton",'" title="',"execute","commentThread","title","set","ck-suggestion--accept","_config","_createButton","element","content","type","delegate","ck-annotation__main","commentThreadInputView","commentsListView","</span>","ck-annotation__info-name","ck-suggestion__actions","innerText","source","editorDestroyed","getUserViewNotificationText","isEnabled"];var lc,uc;lc=cc,uc=158,function(t){for(;--t;)lc.push(lc.shift())}(++uc);const dc=function(t,e){return cc[t-=0]};class gc extends ac{constructor(e,n,o,s){super(e,n,o,s),this.set(dc("0x3f"),""),this.bind(dc("0x3f")).to(this,"descriptionParts",(t=>t&&t[0]?t[0][dc("0x3f")]:"")),this[dc("0x13")](dc("0x12")).to(this,"descriptionParts",this,dc("0xb"),((t,e)=>{let n="";for(const e of t)n+=dc("0x5")+mc(e[dc("0x3e")],e[dc("0x9")])+dc("0x10");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[dc("0x19")]=null,this[dc("0x34")]=this._createButton(Yo(e,"Accept suggestion"),t.icons[dc("0xc")],dc("0x3a"),dc("0xd"),"sw"),this[dc("0x34")][dc("0x13")](dc("0x4b")).to(this,dc("0x1d")),this[dc("0x1")]=this[dc("0x3c")](Yo(e,dc("0x14")),t.icons.cancel,dc("0x11"),dc("0xa"),"sw"),this[dc("0x1")][dc("0x13")](dc("0x4b")).to(this,"canDiscard"),this.userView=new r.UserView(e,this[dc("0x7")][dc("0x25")],this[dc("0x4a")]()),this[dc("0x24")][dc("0x2e")]({attributes:{class:["ck-suggestion__user",dc("0x32")]}}),this[dc("0x18")](this[dc("0x16")]())}[dc("0x16")](){const t=this.bindTemplate,e=[{tag:dc("0x26"),attributes:{class:[dc("0x1e"),"ck-annotation__info"]},children:[{tag:dc("0x4d"),children:[{text:this[dc("0x24")][dc("0x4c")]}],attributes:{class:[dc("0x2b"),dc("0x45")]}},{tag:"time",attributes:{datetime:t.to(dc("0x30")),class:["ck-comment__info-time","ck-annotation__info-time"]},children:[{text:t.to("authoredAt",(t=>this[dc("0x3b")][dc("0x21")](t)))}]}]},{tag:"div",attributes:{class:[dc("0x46"),dc("0x1c")]},children:[this[dc("0x34")],this.discardButton]},{tag:dc("0x26"),attributes:{class:["ck-annotation__content-wrapper"]}}];this[dc("0x7")].isExternal&&e[dc("0x23")]({tag:dc("0x26"),attributes:{class:["ck-comment__external"]},children:[{text:this[dc("0x3")]()}]});const n={tag:"div",attributes:{class:[dc("0x1a"),t.if(dc("0xb"),"ck-suggestion-wrapper--active"),t.to(dc("0x3f"),(t=>"ck-suggestion-"+t)),this._config[dc("0x20")]&&"ck-suggestion--disabled-comments"],"data-suggestion-id":this[dc("0x7")].id,"data-thread-id":this[dc("0x7")][dc("0x37")].id,"data-author-id":this[dc("0x7")][dc("0x25")].id,tabindex:-1},children:[{tag:dc("0x26"),attributes:{class:[dc("0x33"),dc("0x2c")]},children:[this[dc("0x24")],{tag:"div",attributes:{class:["ck-suggestion__main",dc("0x41")]},children:e}]}]};return this[dc("0x43")]&&this.commentThreadInputView&&(n[dc("0x8")].push(this[dc("0x43")],this[dc("0x42")]),this.commentsListView[dc("0x40")](dc("0x2a")).to(this),this[dc("0x43")][dc("0x40")](dc("0x49")).to(this),this.commentThreadInputView[dc("0x40")]("editorReady").to(this),this[dc("0x42")][dc("0x40")](dc("0x49")).to(this)),n}render(){super.render(),this._descriptionElement=this[dc("0x3d")][dc("0x0")](".ck-annotation__content-wrapper"),this._descriptionElement[dc("0x1b")]=this[dc("0x12")],this.on("change:description",((t,e,n)=>{this[dc("0x19")].innerHTML=n}))}_createButton(t,e,n,o,r){const i=new s.ButtonView(this[dc("0x2")]);return i[dc("0x39")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[dc("0x2e")]({attributes:{class:n}}),i.on(dc("0x36"),(()=>{this[dc("0x2f")](o,this[dc("0x7")].id)})),i}[dc("0x3")](){return"importWord"===this[dc("0x7")][dc("0xf")][dc("0x17")].source?Yo(this[dc("0x2")],dc("0x27")):Yo(this.locale,dc("0x22"))}[dc("0x4a")](){return this[dc("0x7")][dc("0x29")]?dc("0x1f")===this._model[dc("0xf")][dc("0x17")][dc("0x48")]?Yo(this[dc("0x2")],dc("0x4"),this[dc("0x7")][dc("0x28")].name):Yo(this.locale,"EXTERNAL_AVATAR",this[dc("0x7")][dc("0x28")].name):null}}function mc(t,e){let n="";return n+=t[dc("0x15")]("*").map(((t,e)=>e%2!=0?dc("0x2d")+fc(t)+dc("0x44"):fc(t))).join(""),e&&(n+=dc("0x31")+e.value+dc("0x35")+e[dc("0x38")]+dc("0x6")),n}function fc(t){const e=document[dc("0xe")](dc("0x4d"));return e[dc("0x47")]=t,e.innerHTML}const hc=["commentThread","comments.maxCommentCharsWhenCollapsed","type","getByInnerView","isOn","_handleSuggestionControllerDelayed","CommentView","getAllAdjacentSuggestions","head","_descriptionFactory","arrowView","acceptAllSuggestions","model","acceptSelectedSuggestions","getDescriptions","getMarkerNames","innerView","push","acceptButton","descriptionParts","_viewToController","discardSelectedSuggestions","buttonView","_disableComments","commands","createAnnotation","has","change:activeAnnotations","editing","_initializeController","Annotations","init","EditorAnnotations","actionView","_destroyController","destroy","Discard all selected suggestions","_bindAnnotationToEditors","from","mainView","refreshSelectedViews","hasSuggestion","Track changes","lowest","isDirty","get","Accept all selected suggestions","isMultiRange","discardButton","_createUIButton","delete","bind","clear","Accept all suggestions","some","requires","suggestion-","unbind","source","trackChanges.disableComments","getRanges","values","activeMarkers","change:previous","focus","suggestionUnloaded","_suggestionToController","size","registerAnnotation","getSuggestion","trackChanges","locale","config","define","filter","_handleControllerBuffer","TrackChangesUI","comments","createAnnotationView","view","execute","add","length","isEnabled","_updateController","addSourceCollector","CommentsUI","getMarkers","editor","button","_refreshActiveMarkers","plugins","isInContent","activeAnnotations","addComment","commandName","set","SuggestionThreadView","_annotationViews","separator","discardAllSuggestions","listenTo","trackChanges.SuggestionThreadView","map","CommentsRepository","toMany","getJoined","TrackChangesEditing"];var pc,bc;pc=hc,bc=448,function(t){for(;--t;)pc.push(pc.shift())}(++bc);const Ec=function(t,e){return hc[t-=0]};class _c extends t.Plugin{static get[Ec("0x27")](){return[Wa,r.Users,Ec("0x58"),Ec("0xe"),Ec("0x10")]}static get pluginName(){return Ec("0x3c")}constructor(t){super(t),this._suggestionToController=new Map,this[Ec("0x4")]=new Map,this[Ec("0x52")]=new Map,this[Ec("0x3b")]=new Map;const e=this[Ec("0x48")][Ec("0x38")];e[Ec("0x39")](Ec("0x56"),gc),e[Ec("0x39")](Ec("0x2b"),!1),this[Ec("0x7")]=e[Ec("0x1d")]("trackChanges.disableComments")}_handleSuggestionControllerDelayed(t,e){0===this[Ec("0x3b")][Ec("0x33")]&&setTimeout((()=>{for(const[t,e]of this[Ec("0x3b")]){const n=this._suggestionToController[Ec("0xa")](t);n||e?n&&e&&this[Ec("0x12")](t):this[Ec("0xd")](t)}this.editor[Ec("0x4b")][Ec("0x1d")](Ec("0x10"))[Ec("0x18")](),this[Ec("0x4a")](),this[Ec("0x3b")][Ec("0x24")]()}),10),this[Ec("0x3b")].set(t,e)}[Ec("0xf")](){const t=this.editor,e=t[Ec("0x4b")].get(Ec("0x5b")),n=t.plugins[Ec("0x1d")](Ec("0xe")),o=t[Ec("0x4b")].get(Ec("0x10")),s=t[Ec("0x4b")][Ec("0x1d")](Ec("0x58"));t.ui.componentFactory[Ec("0x41")](Ec("0x36"),(t=>this[Ec("0x21")](t))),o[Ec("0x45")]((()=>{const t=[];for(const[e,n]of Array[Ec("0x16")](this[Ec("0x32")])){const o=e[Ec("0x63")](),s=[];for(const t of o){if(!t.isInContent)continue;if(t[Ec("0x1f")]){s.push(...t[Ec("0x2c")]());continue}const e=t.getFirstRange();if(s[Ec("0x42")]>0){const t=s[0][Ec("0x5a")](e);if(t){s[0]=t;continue}}s[Ec("0x1")](e)}t[Ec("0x1")]([n.view,s])}return t})),this[Ec("0x55")](e,"suggestionLoaded",((t,e)=>{this[Ec("0x55")](e,Ec("0x2f"),((t,n,o,s)=>{e[Ec("0x4c")]&&(null==o?(this[Ec("0x44")](s[Ec("0x64")]),this[Ec("0x61")](e,!1)):(this[Ec("0x44")](o[Ec("0x64")]),this[Ec("0x61")](e,!0)))})),null===e.previous?this[Ec("0x61")](e,!1):this._updateController(e.head)})),this[Ec("0x55")](e,Ec("0x31"),((t,e,n)=>{this.stopListening(e,Ec("0x2f")),this[Ec("0x3b")][Ec("0x22")](e);const o=n?n[Ec("0x64")]:e,s=this[Ec("0x32")][Ec("0x1d")](o);null!==n&&this._updateController(o),null===n&&s&&this[Ec("0x12")](e)})),this[Ec("0x55")](e,"suggestionChanged",((t,e)=>{this[Ec("0x44")](e)})),this[Ec("0x55")](n,Ec("0xb"),(()=>{this[Ec("0x4a")]()})),this[Ec("0x55")](s,Ec("0x4e"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Ec("0x19")](n))return;const s=e[Ec("0x35")](n);this._suggestionToController[Ec("0x1d")](s)[Ec("0x3f")][Ec("0x30")]()}),{priority:Ec("0x1b")})}_refreshActiveMarkers(){const t=this[Ec("0x48")][Ec("0x4b")][Ec("0x1d")]("Annotations"),e=this[Ec("0x48")][Ec("0x4b")][Ec("0x1d")](Ec("0x5b")),n=Array[Ec("0x16")](t[Ec("0x4d")],(t=>t[Ec("0x0")]))[Ec("0x3a")]((t=>this[Ec("0x4")][Ec("0xa")](t))),o=[];for(const t of n){const e=this[Ec("0x4")][Ec("0x1d")](t)[Ec("0x68")].getAllAdjacentSuggestions();o[Ec("0x1")](...e.reduce(((t,e)=>[...t,...e[Ec("0x6b")]()]),[]))}e[Ec("0x2e")]=o}[Ec("0x21")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Ec("0x48")][Ec("0x8")][Ec("0x1d")]("trackChanges"),r=Yo(t,Ec("0x1a"));n[Ec("0x6")].set({tooltip:r,label:r,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Ec("0x6")][Ec("0x23")]("isOn").to(o,"value"),n[Ec("0x6")].on(Ec("0x40"),(()=>{o.execute(),this[Ec("0x48")][Ec("0xc")][Ec("0x3f")][Ec("0x30")]()}));const i=new e.Collection,x=[{type:"switchbutton",model:{withText:!0,label:r,commandName:Ec("0x36")}},{type:Ec("0x53")},{type:Ec("0x49"),model:{withText:!0,label:Yo(t,Ec("0x25")),commandName:Ec("0x67")}},{type:"button",model:{withText:!0,label:Yo(t,Ec("0x1e")),commandName:Ec("0x69")}},{type:"button",model:{withText:!0,label:Yo(t,"Discard all suggestions"),commandName:Ec("0x54")}},{type:Ec("0x49"),model:{withText:!0,label:Yo(t,Ec("0x14")),commandName:Ec("0x5")}}];for(const t of x){let e={type:Ec("0x53")};if(t.model){const n=new s.Model(t[Ec("0x68")]),o=this[Ec("0x48")][Ec("0x8")].get(n.commandName);n[Ec("0x23")](Ec("0x60"),Ec("0x43")).to(o,"value","isEnabled"),e={type:t[Ec("0x5e")],model:n}}i[Ec("0x41")](e)}(0,s.addListToDropdown)(n,i);const a=x.filter((t=>null!=t[Ec("0x68")]))[Ec("0x57")]((t=>this[Ec("0x48")][Ec("0x8")][Ec("0x1d")](t.model[Ec("0x4f")]))),c=n[Ec("0x6")];return c.actionView[Ec("0x29")](Ec("0x43")),c[Ec("0x66")][Ec("0x29")](Ec("0x43")),c[Ec("0x11")][Ec("0x23")](Ec("0x43")).to(o,Ec("0x43")),c[Ec("0x66")].bind("isEnabled")[Ec("0x59")](a,"isEnabled",((...t)=>t[Ec("0x26")]((t=>t)))),n.on("execute",(t=>{this.editor.execute(t[Ec("0x2a")].commandName),this[Ec("0x48")].editing[Ec("0x3f")][Ec("0x30")]()})),n}[Ec("0xd")](t){const e=this[Ec("0x48")],n=e[Ec("0x38")],o=e[Ec("0x4b")].get(Ec("0xe")),s=e[Ec("0x4b")][Ec("0x1d")](Ec("0x58")),i=e[Ec("0x4b")][Ec("0x1d")](Ec("0x10")),x=e[Ec("0x4b")].get(r.Users).me,a=n[Ec("0x1d")](Ec("0x36"))[Ec("0x51")],{CommentsListView:c,CommentThreadInputView:l}=e.plugins[Ec("0x1d")](Ec("0x46"));let u,d;this[Ec("0x52")][Ec("0xa")](t.id)?(d=this[Ec("0x52")].get(t.id),u=d.mainView):(u=new a(e[Ec("0x37")],t,x,{disableComments:this._disableComments,editorConfig:n[Ec("0x1d")]("comments.editorConfig"),maxCommentsWhenCollapsed:n[Ec("0x1d")]("comments.maxCommentsWhenCollapsed"),maxThreadTotalWeight:n[Ec("0x1d")]("comments.maxThreadTotalWeight"),maxCommentCharsWhenCollapsed:n[Ec("0x1d")](Ec("0x5d")),formatDateTime:(0,r.getDateTimeFormatter)(n[Ec("0x1d")]("locale")),CommentView:n.get(Ec("0x3d"))[Ec("0x62")],CommentsListView:c,CommentThreadInputView:l}),u[Ec("0x2")].on(Ec("0x40"),(()=>{e.editing[Ec("0x3f")][Ec("0x30")]()})),u[Ec("0x20")].on(Ec("0x40"),(()=>{e[Ec("0xc")][Ec("0x3f")].focus()})),d=o[Ec("0x3e")](this[Ec("0x48")][Ec("0x37")],u),d[Ec("0x23")]("isDirty").to(u,Ec("0x1c")),d[Ec("0x23")]("length").to(u),d[Ec("0x23")](Ec("0x5e")).to(u,"type",(t=>Ec("0x28")+t)),this[Ec("0x52")][Ec("0x50")](t.id,d));const g=s.createCommentThreadController(t[Ec("0x5c")],u),m=new oc(e,t,u,g),f=t.getAllAdjacentSuggestions()[Ec("0x3a")]((t=>t[Ec("0x4c")]));u[Ec("0x3")]=e[Ec("0x4b")][Ec("0x1d")](Ec("0x5b"))._descriptionFactory[Ec("0x6a")](f),this[Ec("0x32")][Ec("0x50")](t,m),this[Ec("0x4")][Ec("0x50")](u,m);const h=o[Ec("0x9")]({view:d,target:()=>{const n=[],o=t[Ec("0x63")]()[Ec("0x3a")]((t=>t[Ec("0x4c")]));for(const t of o)n.push(...t[Ec("0x47")]());return(0,r.getAllMarkersDomElementsSorted)(e[Ec("0xc")],n)},type:()=>Ec("0x28")+m[Ec("0x3f")][Ec("0x5e")]});s[Ec("0x15")](u,h),o[Ec("0x41")](h),i[Ec("0x34")](h)}[Ec("0x12")](t){const e=this[Ec("0x48")].plugins[Ec("0x1d")]("Annotations"),n=this._suggestionToController[Ec("0x1d")](t),o=n.view,s=e[Ec("0x5f")](o);s&&e.remove(s),this[Ec("0x32")][Ec("0x22")](t),this[Ec("0x4")][Ec("0x22")](o),n[Ec("0x13")]()}[Ec("0x44")](t){if(!t[Ec("0x4c")]||!this[Ec("0x32")][Ec("0xa")](t))return;const e=this[Ec("0x48")].plugins.get(Ec("0x5b")),n=this._suggestionToController.get(t),o=t[Ec("0x63")]();n.view[Ec("0x3")]=e[Ec("0x65")].getDescriptions(o)}[Ec("0x13")](){for(const t of this[Ec("0x32")].keys())this._destroyController(t);for(const t of this[Ec("0x52")][Ec("0x2d")]())t[Ec("0x17")][Ec("0x13")]();super.destroy()}}var Tc,Cc,yc=["getSuggestion","plugins","editor","adapter","get","addSuggestionData","requires","TrackChanges","addSuggestion","getSuggestions"];Tc=yc,Cc=474,function(t){for(;--t;)Tc.push(Tc.shift())}(++Cc);var kc=function(t,e){return yc[t-=0]};class Ac extends t.Plugin{static get[kc("0x2")](){return[Wa,_c,"Comments"]}static get pluginName(){return kc("0x3")}set[kc("0x9")](t){this.editor[kc("0x7")][kc("0x0")](Wa)[kc("0x9")]=t}get[kc("0x9")](){return this[kc("0x8")][kc("0x7")][kc("0x0")](Wa).adapter}[kc("0x4")](t){return this.editor.plugins[kc("0x0")](Wa)[kc("0x1")](t)}[kc("0x5")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[kc("0x8")][kc("0x7")][kc("0x0")](Wa)[kc("0x5")]({skipNotAttached:t,toJSON:e})}[kc("0x6")](t){return this.editor[kc("0x7")][kc("0x0")](Wa)[kc("0x6")](t)}}const Rc=["init","trackChangesData","createElement","set","reduce","editor","editorCreator","Pagination","getRootNames","end","createDocumentFragment","requires","document","data","_adapter","constructor","destroy","config","rootsAttributes","create","acceptAllSuggestions","plugins","getSuggestions","CommentsRepository","div","get","getUser","getDataWithDiscardedSuggestions","getFullData","getDataWithAcceptedSuggestions","getRootsAttributes","TrackChangesEditing","pluginName","model","function","result","map","discardAllSuggestions","Users","useAnonymousUser","users","define","addSuggestionData"];var vc,Ic;vc=Rc,Ic=217,function(t){for(;--t;)vc.push(vc.shift())}(++Ic);const Sc=function(t,e){return Rc[t-=0]},Lc=[Sc("0x5")];class Nc extends t.Plugin{static get[Sc("0x9")](){return[Wa]}static get[Sc("0x1e")](){return"TrackChangesData"}[Sc("0x29")](){const t=this[Sc("0x3")];if(t[Sc("0xf")][Sc("0x27")]("trackChangesData.editorCreator",(e=>{const n=t.model[Sc("0xa")][Sc("0x6")]()[Sc("0x2")](((t,e)=>(t[e]="",t)),{});return t[Sc("0xd")][Sc("0x11")](n,e)})),Sc("0x20")!=typeof t[Sc("0xf")][Sc("0x17")](Sc("0x2a"))[Sc("0x4")])throw new e.CKEditorError("track-changes-data-invalid-editor-creator")}[Sc("0x1b")](t){return Oc(this[Sc("0x3")],!0,t)}[Sc("0x19")](t){return Oc(this.editor,!1,t)}}class Mc extends t.Plugin{static get[Sc("0x1e")](){return"TrackChangesDataGetter"}constructor(t){super(t),this[Sc("0x21")]=Sc("0x7")}[Sc("0x29")](){this[Sc("0x3")][Sc("0x13")][Sc("0x17")](Sc("0x15"))._adapter={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this[Sc("0x3")][Sc("0x13")][Sc("0x17")](Sc("0x1d"))[Sc("0xc")]=null}}function wc(t){return void 0!==t.getRootsAttributes}async function Oc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Lc);o[Sc("0x13")].push(Wa,Mc),o[Sc("0x10")]=wc(t)?t[Sc("0x1c")]():void 0;const s=document[Sc("0x8")](),i=t[Sc("0xf")].get(Sc("0x2a"))[Sc("0x4")],x=await i(o,(()=>function(t){const e=document[Sc("0x0")](Sc("0x16"));return t.appendChild(e),e}(s)));!function(t,e){const n=t[Sc("0x1f")][Sc("0xa")][Sc("0x6")]().reduce(((e,n)=>(e[n]=t[Sc("0xb")][Sc("0x17")]({rootName:n}),e)),{}),o=t[Sc("0x13")][Sc("0x17")]("Users")[Sc("0x26")][Sc("0x22")]((t=>({id:t.id,name:t.name}))),s=t[Sc("0x13")].get(Sc("0x1d"))[Sc("0x14")]({skipNotAttached:!0,toJSON:!0}),r=e[Sc("0x13")][Sc("0x17")](Sc("0x24")),i=e[Sc("0x13")][Sc("0x17")](Sc("0x1d"));for(const t of o)r[Sc("0x18")](t.id)||r.addUser(t);r.me||r[Sc("0x25")]();for(const t of s)i[Sc("0x28")](t);e[Sc("0xb")][Sc("0x1")](n)}(t,x),x.execute(Sc(e?"0x12":"0x23"));const a=wc(x)?x[Sc("0x1a")](n):x.data[Sc("0x17")](n);return await x[Sc("0xe")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|