@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230901.0 → 0.0.0-nightly-20230903.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.
Files changed (64) hide show
  1. package/build/track-changes.js +1 -1
  2. package/package.json +3 -3
  3. package/src/commands/acceptsuggestioncommand.js +1 -1
  4. package/src/commands/discardsuggestioncommand.js +1 -1
  5. package/src/commands/executeonallsuggestionscommand.js +1 -1
  6. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  7. package/src/commands/trackchangescommand.js +1 -1
  8. package/src/integrations/alignment.js +1 -1
  9. package/src/integrations/basicstyles.js +1 -1
  10. package/src/integrations/blockquote.js +1 -1
  11. package/src/integrations/ckbox.js +1 -1
  12. package/src/integrations/codeblock.js +1 -1
  13. package/src/integrations/comments.js +1 -1
  14. package/src/integrations/deletecommand.js +1 -1
  15. package/src/integrations/documentlist.js +1 -1
  16. package/src/integrations/documentlistproperties.js +1 -1
  17. package/src/integrations/entercommand.js +1 -1
  18. package/src/integrations/findandreplace.js +1 -1
  19. package/src/integrations/font.js +1 -1
  20. package/src/integrations/formatpainter.js +1 -1
  21. package/src/integrations/heading.js +1 -1
  22. package/src/integrations/highlight.js +1 -1
  23. package/src/integrations/horizontalline.js +1 -1
  24. package/src/integrations/htmlembed.js +1 -1
  25. package/src/integrations/image.js +1 -1
  26. package/src/integrations/imagereplace.js +1 -1
  27. package/src/integrations/importword.js +1 -1
  28. package/src/integrations/indent.js +1 -1
  29. package/src/integrations/inputcommand.js +1 -1
  30. package/src/integrations/link.js +1 -1
  31. package/src/integrations/list.js +1 -1
  32. package/src/integrations/listproperties.js +1 -1
  33. package/src/integrations/mediaembed.js +1 -1
  34. package/src/integrations/mention.js +1 -1
  35. package/src/integrations/pagebreak.js +1 -1
  36. package/src/integrations/paragraph.js +1 -1
  37. package/src/integrations/removeformat.js +1 -1
  38. package/src/integrations/restrictededitingmode.js +1 -1
  39. package/src/integrations/shiftentercommand.js +1 -1
  40. package/src/integrations/standardeditingmode.js +1 -1
  41. package/src/integrations/style.js +1 -1
  42. package/src/integrations/table.js +1 -1
  43. package/src/integrations/tablecaption.js +1 -1
  44. package/src/integrations/tableclipboard.js +1 -1
  45. package/src/integrations/tablecolumnresize.js +1 -1
  46. package/src/integrations/tableheadings.js +1 -1
  47. package/src/integrations/tablemergesplit.js +1 -1
  48. package/src/integrations/tableofcontents.js +1 -1
  49. package/src/integrations/tableproperties.js +1 -1
  50. package/src/integrations/template.js +1 -1
  51. package/src/integrations/title.js +1 -1
  52. package/src/integrations/undo.js +1 -1
  53. package/src/integrations/utils.js +1 -1
  54. package/src/suggestion.js +1 -1
  55. package/src/suggestiondescriptionfactory.js +1 -1
  56. package/src/trackchanges.js +1 -1
  57. package/src/trackchangesdata.js +1 -1
  58. package/src/trackchangesediting.js +1 -1
  59. package/src/trackchangesui.js +1 -1
  60. package/src/ui/suggestioncontroller.js +1 -1
  61. package/src/ui/view/basesuggestionthreadview.js +1 -1
  62. package/src/ui/view/suggestionthreadview.js +1 -1
  63. package/src/utils/common-translations.js +1 -1
  64. package/src/utils/utils.js +1 -1
@@ -2,4 +2,4 @@
2
2
  /*!
3
3
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var s=e[o];if(void 0!==s)return s.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>dc,TrackChanges:()=>Ic,TrackChangesData:()=>Oc,TrackChangesEditing:()=>Va});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["isEnabled","TrackChangesCommand","commands","affectsData","_enabledCommands","forceDisabled","_isEnabledBasedOnSelection","editor","value","has","execute","refresh","_enableCommands","clearForceDisabled"];var c,l;c=a,l=256,function(t){for(;--t;)c.push(c.shift())}(++l);const d=function(t,e){return a[t-=0]};class u extends t.Command{constructor(t,e){super(t),this._enabledCommands=e,this[d("0x4")]=!1,this[d("0x7")](),this[d("0x2")]=!1}refresh(){this[d("0xa")]=!0}[d("0x6")](){this[d("0x4")]=!this.value,this[d("0x4")]?this._disableUnsupportedCommands():this[d("0x8")]()}_disableUnsupportedCommands(){for(const t of this[d("0x3")][d("0xc")][d("0xc")]())t.affectsData&&!this[d("0x0")].has(t)&&t[d("0x1")](d("0xb"))}[d("0x8")](){for(const t of this[d("0x3")].commands[d("0xc")]())t[d("0xd")]&&!this[d("0x0")][d("0x5")](t)&&t[d("0x9")](d("0xb"))}}const g=["isEnabled","get","refresh","execute","canEditAt","model","editor","getRanges","plugins","acceptSuggestion","_isEnabledBasedOnSelection","_suggestions"];var m,f;m=g,f=314,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("0x9")]=e,this[h("0x0")](),this[h("0x8")]=!1}[h("0x0")](){this[h("0xa")]=!0}[h("0x1")](t){const n=this[h("0x9")].get(t);if(!n)throw new e.CKEditorError("track-changes-accept-suggestion-not-found",this);const o=n[h("0x5")]();this[h("0x4")][h("0x3")][h("0x2")](o)&&this[h("0x4")][h("0x6")][h("0xb")]("TrackChangesEditing")[h("0x7")](n)}}const b=["editor","get","isEnabled","getRanges","refresh","track-changes-discard-suggestion-not-found","canEditAt","model","TrackChangesEditing"];var E,_;E=b,_=383,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class C extends t.Command{constructor(t,e){super(t),this._suggestions=e,this[T("0x8")](),this._isEnabledBasedOnSelection=!1}[T("0x8")](){this[T("0x6")]=!0}execute(t){const n=this._suggestions[T("0x5")](t);if(!n)throw new e.CKEditorError(T("0x0"),this);const o=n[T("0x7")]();this.editor[T("0x2")][T("0x1")](o)&&this[T("0x4")].plugins.get(T("0x3")).discardSuggestion(n)}}const y=["deletion","schema","length","from","value","splice","createPositionAfter","color","createRange","getRanges","createPositionBefore","execute","isArray","map","content","createPositionAt","isInContent","end","isTouching","type","replace","start","isIntersecting"];var k,A;k=y,A=384,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("0x7")==t.type&&R("0x7")!=e[R("0x3")]?-1:R("0x7")!=t.type&&R("0x7")==e[R("0x3")]?1:0))}function I(t,e){let n,o=0;const s=[],r=e[R("0x8")];for(;o<t[R("0x9")];){const i=t[o],x=t[o+1];n||(n=e[R("0x11")](i)),S(e,i,x)||(s.push(e[R("0xf")](n,r.isObject(i)?e[R("0xd")](i):e[R("0x16")](i,R("0x1")))),n=null),o++}return s}function S(t,e,n){if(!n)return!1;const o=t[R("0xd")](e),s=t.createPositionBefore(n);return o[R("0x2")](s)}function L(t,e,n){for(;n[R("0x9")];){const o=n[R("0xc")](0,100);t.change((()=>{for(const t of o)t[R("0x0")]&&e[R("0x12")](t.id)}))}}const N=["values","some","isEnabled","refresh","getRanges","model","editor","_command","from","_suggestions"];var M,w;M=N,w=427,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("0x0")]=e,this[O("0x2")]=n,this[O("0x6")](),this._isEnabledBasedOnSelection=!1}[O("0x6")](){const t=Array[O("0x1")](this[O("0x2")][O("0x3")]())[O("0x4")]((t=>t.isInContent));this.isEnabled=this._command[O("0x5")]&&t}execute(){const t=v(Array[O("0x1")](this._suggestions[O("0x3")]()));for(const e of t){const t=e[O("0x7")]();if(!this[O("0x9")][O("0x8")].canEditAt(t))return}L(this[O("0x9")].model,this._command,t)}}const P=["_suggestions","refresh","values","model","_selectedSuggestions","canEditAt","getRanges","_command","from","editor","size","document"];var D,B;D=P,B=116,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("0xb")]=e,this[j("0x4")]=n,this._selectedSuggestions=new Set,this[j("0x5")](),this._isEnabledBasedOnSelection=!1}[j("0x5")](){const t=this[j("0x1")][j("0x7")][j("0x3")].selection,e=Array[j("0x0")](this[j("0x4")][j("0x6")]());this[j("0x8")]=function(t,e){const n=Array[R("0xa")](t[R("0x10")]()),o=new Set;for(const s of e)if(s.isInContent)for(const e of n)for(const n of s[R("0x10")]())(e[R("0x6")](n)||t.isCollapsed&&!s.isMultiRange&&s.next&&n.end.isTouching(e[R("0x5")]))&&o.add(s);return o}(t,e),this.isEnabled=this[j("0xb")].isEnabled&&!!this._selectedSuggestions[j("0x2")]}execute(){const t=v(Array[j("0x0")](this[j("0x8")]));for(const e of t){const t=e[j("0xa")]();if(!this[j("0x1")][j("0x7")][j("0x9")](t))return}L(this[j("0x1")][j("0x7")],this._command,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 $=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 X(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])}}X.prototype.clear=G,X.prototype.delete=W,X.prototype.get=K,X.prototype.has=q,X.prototype.set=$;const J=X;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const dt=function(t){return lt.call(t)};var ut=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ut&&ut in Object(t)?ct(t):dt(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,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 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 $t=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 Xt(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])}}Xt.prototype.clear=Ht,Xt.prototype.delete=Wt,Xt.prototype.get=Kt,Xt.prototype.has=qt,Xt.prototype.set=$t;const Jt=Xt;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,de=ce.propertyIsEnumerable;const ue=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!de.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,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&&ue(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const 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,$e=qe&&"object"==typeof module&&module&&!module.nodeType&&module,Xe=$e&&$e.exports===qe?ot.Buffer:void 0,Je=Xe?Xe.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const dn=function(t){return ln(t,Ue,on)};const un=function(t){return ln(t,We,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 Vn=function(t){return xe(t)&&"[object Map]"==In(t)};var Wn=Ie&&Ie.isMap;const Kn=Wn?ke(Wn):Vn;const qn=function(t){return xe(t)&&"[object Set]"==In(t)};var $n=Ie&&Ie.isSet;const Xn=$n?ke($n):qn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var d=ge(e);if(d){if(x=Ln(e),!a)return Ze(e,x)}else{var u=In(e),g=u==Qn||"[object GeneratorFunction]"==u;if(be(e))return Qe(e,a);if(u==Zn||u==Jn||g&&!r){if(x=c||g?{}:zn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[u])return r?e:{};x=Un(e,u,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),Xn(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var f=d?void 0:(l?c?un:dn:c?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 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 d=-1,u=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++d<x;){var m=t[d],f=e[d];if(o)var h=i?o(f,m,d,e,t,r):o(m,f,d,t,e,r);if(void 0!==h){if(h)continue;u=!1;break}if(g){if(!Ao(e,(function(t,e){if(!Ro(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){u=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){u=!1;break}}return r.delete(t),r.delete(e),u};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const Mo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var 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=dn(t),a=x.length;if(a!=dn(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:wo.call(e,l)))return!1}var d=r.get(t),u=r.get(e);if(d&&u)return d==e&&u==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===p?f===h||s(f,h,n,o,r):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po:In(t),c=x?Po:In(e),l=(a=a==Fo?Do:a)==Do,d=(c=c==Fo?Do:c)==Do,u=a==c;if(u&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(u&&!l)return r||(r=new Yt),i||Le(t)?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=d&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!u&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const zo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const 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=po(e,t),null==(t=Wo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},$o=["decorate","getFirstRange","nodeBefore","_model","add","authoredAt","getAllAdjacentSuggestions","discard","substr","change","creator","get","previous","length","_onAccept","data","clear","subType","toJSON","accept","head","getMarkerNames","isInContent","getItems","split","onDiscard","end","isIntersecting","getContainedElement","filter","getFirstMarker","_onAttributesChange","addMarker","@external","size","reduce","createdAt","hasComments","type","removeMarker","getMultiRangeId","commentThread","onAccept","set","_onDiscard","isIntersectingWithRange","attributes","addMarkerName","removeMarkers","getMarkers","getRanges","next","author","addRange","push","isExternal","delete","getRange","map","setAttribute","isMultiRange","_markerNames","markers","_saved"];var Xo,Jo;Xo=$o,Jo=130,function(t){for(;--t;)Xo.push(Xo.shift())}(++Jo);const Qo=function(t,e){return $o[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this._isDataLoaded=!1,this.id=e.id,this[Qo("0x24")]=e[Qo("0x24")],this[Qo("0xf")]=e[Qo("0xf")]||null,this[Qo("0x32")]=e[Qo("0x32")],this.creator=e[Qo("0x8")]||e[Qo("0x32")],this[Qo("0x35")]=Boolean(e[Qo("0x2c")]&&e[Qo("0x2c")][Qo("0x1f")]),this[Qo("0xd")]=null,this[Qo("0x1")]=t,this[Qo("0xc")]=e[Qo("0x28")],this[Qo("0x2a")]=e[Qo("0x17")],this._onAttributesChange=e.onAttributesChange,this._markerNames=new Set,this[Qo("0x22")]=null,this[Qo("0x29")](Qo("0x3"),null),this[Qo("0x29")]("attributes",e[Qo("0x2c")]||{}),this[Qo("0x29")](Qo("0xa"),null),this[Qo("0x29")](Qo("0x31"),null),this[Qo("0x29")](Qo("0x27"),null),this[Qo("0x29")](Qo("0x3d"),!1),this[Qo("0x3e")](Qo("0x11")),this[Qo("0x3e")](Qo("0x5"))}get[Qo("0x12")](){let t=this;for(;t[Qo("0xa")];)t=t.previous;return t}get[Qo("0x23")](){return!!this[Qo("0x27")]&&this[Qo("0x27")].length>0}get[Qo("0x3a")](){return 0!=this[Qo("0x3b")][Qo("0x20")]&&6==Array.from(this[Qo("0x3b")])[0][Qo("0x16")](":")[Qo("0xb")]}get[Qo("0x14")](){return null!==this[Qo("0x1c")]()}[Qo("0x2d")](t){this._markerNames[Qo("0x2")](t)}[Qo("0x13")](){return Array.from(this._markerNames)}getMarkers(){return this[Qo("0x13")]()[Qo("0x38")]((t=>this[Qo("0x1")][Qo("0x3c")][Qo("0x9")](t)))[Qo("0x1b")]((t=>t))}getFirstMarker(){return this[Qo("0x2f")]()[0]||null}[Qo("0x2e")](){this[Qo("0x1")][Qo("0x7")]((t=>{for(const e of this[Qo("0x2f")]())t[Qo("0x25")](e)})),this[Qo("0x3b")][Qo("0xe")]()}[Qo("0x25")](t){this[Qo("0x1")][Qo("0x7")]((e=>{e[Qo("0x25")](t)})),this._markerNames[Qo("0x36")](t)}[Qo("0x33")](t){const e="suggestion:"+this[Qo("0x24")]+":"+this[Qo("0xf")]+":"+this.id+":"+this[Qo("0x8")].id+":"+Zo[Qo("0x26")]();this[Qo("0x2d")](e),this[Qo("0x1")][Qo("0x7")]((n=>{n[Qo("0x1e")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x2b")](t){for(const e of this.getRanges())if(e[Qo("0x19")](t))return!0;return!1}getRanges(){return this.getMarkers()[Qo("0x38")]((t=>t[Qo("0x37")]()))}[Qo("0x15")](){return this[Qo("0x30")]()[Qo("0x21")](((t,e)=>[...t,...e.getItems()]),[])}[Qo("0x3f")](){var t;return(null===(t=this[Qo("0x1c")]())||void 0===t?void 0:t[Qo("0x37")]())||null}[Qo("0x1a")](){const t=this[Qo("0x30")]();if(1!=t[Qo("0xb")])return null;const e=t[0],n=e.start.nodeAfter,o=e[Qo("0x18")][Qo("0x0")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0x11")](){this._onAccept(this.getRanges(),this[Qo("0xd")],this[Qo("0x2c")]),this[Qo("0x2e")]()}[Qo("0x5")](){this[Qo("0x2a")](this.getRanges(),this[Qo("0xd")],this[Qo("0x2c")]),this[Qo("0x2e")]()}[Qo("0x4")](){const t=[];let e=this[Qo("0x12")];for(;e;)t[Qo("0x34")](e),e=e[Qo("0x31")];return t}[Qo("0x39")](t,e){const n=eo(this[Qo("0x2c")]);_o(n,t,e),Go(n,this[Qo("0x2c")])||(this[Qo("0x2c")]=n,this[Qo("0x1d")](n))}removeAttribute(t){const e=eo(this.attributes);qo(e,t),Go(e,this[Qo("0x2c")])||(this[Qo("0x2c")]=e,this[Qo("0x1d")](this[Qo("0x2c")]))}[Qo("0x10")](){return{id:this.id,type:this[Qo("0xf")]?this.type+":"+this[Qo("0xf")]:this[Qo("0x24")],authorId:this[Qo("0x8")].id,createdAt:this[Qo("0x22")],hasComments:this[Qo("0x23")],data:this[Qo("0xd")],attributes:this[Qo("0x2c")]}}static getMultiRangeId(){return(0,e.uid)()[Qo("0x6")](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=["push","_itemLabels","type","isInContent","quantity","deletion","_schema","previousSibling","addEmptyContainer","remove","element","$1 $2","insertion","_itemLabelsCallbacks","*Merge:* %0","nextSibling","$text","getFirstRange","REPLACE_TEXT","elementStart","start","ELEMENT_SPACE","*Insert:* %0","skip","end","text","indexOf","removeEmptyContainer","removeObject","softBreak","*Remove:* %0","elementEnd","data","set","_customCallbacks","registerElementLabel","add","getItemLabel","label","replace","$textProxy","Container","_addDescriptionItems","isObject","EmptyContainer","registerDescriptionCallback","getWalker","pop","addContainer","_locale","get","name","getDescriptions","length","_resolveDescriptionItems"];var es,ns;es=ts,ns=427,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("0x2f")]=[],this[os("0xe")]=new Map,this[os("0x1a")]=[],this[os("0x13")]=t,this[os("0x7")]=e}[os("0xa")](t){const e=[];for(let n=0;n<t[os("0xb")];n++){const o=t[n];if(!o[os("0x10")])continue;let s=!1;for(const t of this[os("0x2f")]){const n=t(o);if(n){os("0xf")in n&&e.push(n),s=!0;break}}if(!s){this[os("0x0")](e,o);const s=t[n+1];if(s&&!o.getFirstRange()[os("0x25")].isEqual(s.getFirstRange()[os("0x21")])){const t=e[e[os("0xb")]-1],n="insertion"==o.type?os("0x31"):os("0x16");t&&os("0x26")==t.type&&(t[n]+="\n")}}}return this[os("0xc")](e)}[os("0x3")](t){this[os("0x2f")][os("0xd")](t)}[os("0x30")](t,n,o=e.priorities.normal){"function"==typeof t?(0,e.insertToPriorityArray)(this._itemLabelsCallbacks,{matchingCallback:t,label:n,priority:o}):this[os("0xe")][os("0x2e")](t,n)}[os("0x32")](t,e=1){let n;for(const e of this[os("0x1a")])if(e.matchingCallback(t)){n=e[os("0x33")];break}return n||(n=this._itemLabels[os("0x8")](t[os("0x9")])),n?n(e):1!==e?e+" "+t.name+"s":""+t[os("0x9")]}_addDescriptionItems(t,e){const n=e[os("0x1e")]()[os("0x4")](),o=os("0x19")==e[os("0xf")]?os("0x31"):os("0x16");for(const e of n){const s=e.item,r=t[t[os("0xb")]-1];if(s.is(os("0x35")))r&&r[os("0xf")][os("0x27")](os("0x36"))>-1&&t[os("0x5")](),r&&os("0x26")==r.type?r[o]+=s.data:t[os("0xd")]({type:"text",add:os("0x31")==o?s[os("0x2d")]:"",remove:"remove"==o?s[os("0x2d")]:""});else if(this[os("0x13")].isObject(s)){const i=s;if(r&&r.type[os("0x27")](os("0x36"))>-1&&t.pop(),os("0x2c")==e[os("0xf")])continue;r&&r[os("0xf")]==o+"Object"&&r[os("0x17")][os("0x9")]==i[os("0x9")]?r[os("0x11")]++:t[os("0xd")]({type:o+"Object",element:i,quantity:1}),n[os("0x24")]((t=>!(os("0x2c")==t[os("0xf")]&&t.item==s)))}else if(this[os("0x13")].checkChild(s,os("0x1d"))||s.is(os("0x17"),os("0x2a"))){const n=s;if(os("0x31")==o&&os("0x20")==e[os("0xf")]||os("0x16")==o&&os("0x2c")==e[os("0xf")])continue;if(r&&-1==r.type[os("0x27")](os("0x36"))){"text"==r[os("0xf")]&&(r[o]+="\n");continue}let i;if(i=os("0x31")==o?n[os("0x1c")]&&!this[os("0x13")][os("0x1")](n[os("0x1c")])?n[os("0x1c")]:null:n[os("0x14")]&&!this[os("0x13")][os("0x1")](n[os("0x14")])?n[os("0x14")]:null,n.isEmpty||i&&i.isEmpty){const e=i&&i.isEmpty?i:n;r&&r[os("0xf")]==o+os("0x2")&&r[os("0x17")][os("0x9")]==e[os("0x9")]?r[os("0x11")]++:t[os("0xd")]({type:o+os("0x2"),element:e,quantity:1})}else t[os("0xd")]({type:o+os("0x36"),element:n})}}}[os("0xc")](t){const e=this._locale,n=[];for(const o of t){switch(o.type){case os("0x26"):if(o[os("0x31")]=o[os("0x31")].replace(/(\S)\u000A+(\S)/g,"$1 $2")[os("0x34")](/\u000A/g,""),o[os("0x16")]=o[os("0x16")][os("0x34")](/(\S)\u000A+(\S)/g,os("0x18"))[os("0x34")](/\u000A/g,""),""!=o[os("0x31")]&&""!=o[os("0x16")]){n.push({type:"replace",content:Yo(e,os("0x1f"),['"'+o.remove+'"','"'+o[os("0x31")]+'"'])});continue}if(null!=o.add.match(/^ +$/)){n[os("0xd")]({type:"insertion",content:Yo(e,os("0x23"),Yo(e,os("0x22"),o[os("0x31")][os("0xb")]))});continue}if(null!=o[os("0x16")].match(/^ +$/)){n[os("0xd")]({type:os("0x12"),content:Yo(e,os("0x2b"),Yo(e,os("0x22"),o.remove[os("0xb")]))});continue}if(""!=o.add){n[os("0xd")]({type:os("0x19"),content:Yo(e,"*Insert:* %0",'"'+o[os("0x31")]+'"')});continue}n.push({type:os("0x12"),content:Yo(e,"*Remove:* %0",'"'+o[os("0x16")]+'"')});continue;case os("0x15"):case"addObject":n[os("0xd")]({type:os("0x19"),content:Yo(e,os("0x23"),this.getItemLabel(o[os("0x17")],o[os("0x11")]))});continue;case os("0x28"):case os("0x29"):n[os("0xd")]({type:os("0x12"),content:Yo(e,os("0x2b"),this.getItemLabel(o[os("0x17")],o[os("0x11")]))});continue;case os("0x6"):n.push({type:os("0x19"),content:Yo(e,"*Split:* %0",this[os("0x32")](o[os("0x17")],o.quantity))});continue;case"removeContainer":n[os("0xd")]({type:os("0x12"),content:Yo(e,os("0x1b"),this[os("0x32")](o[os("0x17")],o[os("0x11")]))});continue}n[os("0xd")](o)}return n}}const rs=["AlignmentEditing","FORMAT_ALIGN_TO_RIGHT","get","center","*Format:* %0","format","plugins","commandName","right","FORMAT_ALIGN_TO_CENTER","change","left","enableCommand","filter","alignment","model","_descriptionFactory","afterInit","FORMAT_JUSTIFY_TEXT","document","ltr","getAttribute","TrackChangesEditing","value","registerDescriptionCallback","editor","locale","contentLanguageDirection"];var is,xs;is=rs,xs=325,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x0")](){const t=this.editor,e=t[as("0x9")];if(!t[as("0x11")].has(as("0xb")))return;const n=t[as("0x11")][as("0xd")](as("0x5"));n[as("0x17")](as("0x19"),((e,o={})=>{let s=o[as("0x6")];o.value||(s=as("0x3")===t[as("0x9")][as("0xa")]?as("0x16"):as("0x13"));const r=Array.from(this.editor[as("0x1a")][as("0x2")].selection.getSelectedBlocks())[as("0x18")]((t=>function(t,e,n){const o=t[as("0x4")](as("0x19"))||null;return e.checkAttribute(t,as("0x19"))&&n!=o}(t,this[as("0x8")].model.schema,s)));t[as("0x1a")][as("0x15")]((()=>{for(const t of r)n.markBlockFormat(t,{commandName:as("0x19"),commandParams:[{value:s}]})}))})),n[as("0x1b")][as("0x7")]((t=>{const{data:n}=t;if(n&&as("0x19")==n[as("0x12")]){const t=n.commandParams[0][as("0x6")];return{type:as("0x10"),content:Yo(e,as("0xf"),function(t){switch(t){case as("0x16"):return Yo(e,"FORMAT_ALIGN_TO_LEFT");case as("0x13"):return Yo(e,as("0xc"));case as("0xe"):return Yo(e,as("0x14"));case"justify":return Yo(e,as("0x1"))}}(t))}}}))}}const ls=["activeMarkers","elementEnd","ck-suggestion-marker-","isAtEnd","element","previousPosition","markerName","addHighlight","getItems","consumable","get","getAttribute","parent","push","hasAttribute","listIndent","writer","test","addClass","nextSibling","listItem","bindElementToMarker","includes","ck-suggestion-marker--active","plugins","markerRange","name","span","toViewElement","schema","mapper","item","model"];var ds,us;ds=ls,us=313,function(t){for(;--t;)ds.push(ds.shift())}(++us);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e[gs("0x19")]())s[gs("0x1f")](t)&&o[gs("0x1e")](n.createRangeOn(s));return o}function fs(t){const e=[];if(t.is(gs("0x15"),gs("0x4"))){let n=t[gs("0x3")];for(;n&&n.is("element",gs("0x4"))&&n[gs("0x1c")](gs("0x20"))>0;)e.push(n),n=n[gs("0x3")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t[gs("0x8")][gs("0x1b")]("TrackChangesEditing");return(s,r,i)=>{if(!i[gs("0x1a")][gs("0x1")](r[gs("0x9")],s[gs("0xa")]))return;const x=r.markerRange.getWalker(),a=r[gs("0x9")].start,c=t[gs("0x10")][gs("0xd")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t[gs("0xf")];u=u||c.isContent(e);const n=i[gs("0xe")][gs("0xc")](e);if(n&&n.getCustomProperty(gs("0x18")))return;gs("0x12")==t.type&&c.isBlock(e)&&!c.isLimit(e)&&(e[gs("0x3")]||a[gs("0x14")]?l&&l[gs("0x1d")]==e||(l=e,m(t.previousPosition),g=!0):d=d||t[gs("0x16")])}function m(t){const s=i[gs("0x0")].createUIElement(gs("0xb"),{class:gs("0x13")+e}),x=i[gs("0xe")].toViewPosition(t);n&&o[gs("0x11")][gs("0x6")](r[gs("0x17")])&&i[gs("0x0")][gs("0x2")](gs("0x7"),s),i[gs("0x0")].insert(x,s),i[gs("0xe")][gs("0x5")](s,r[gs("0x17")])}u||g||!d||m(d)}}const ps=["UnderlineEditing","afterInit","bold","StrikethroughEditing","get","commands","_descriptionFactory","value","forceValue","FORMAT_ITALIC","format","toLowerCase","from","strikethrough","locale","slice","FORMAT_UNDERLINE","CodeEditing","enableCommand","plugins","FORMAT_CODE","FORMAT_SUBSCRIPT","selection","model","*Format:* %0","FORMAT_STRIKETHROUGH","ItalicEditing","FORMAT_BOLD","BoldEditing","markInlineFormat","change","italic","superscript","registerDescriptionCallback","FORMAT_SUPERSCRIPT"];var bs,Es;bs=ps,Es=341,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=[_s("0x2"),_s("0x0"),_s("0x9"),_s("0x1a"),_s("0xc"),"SubscriptEditing","SuperscriptEditing"];class Cs extends t.Plugin{[_s("0xa")](){const t=this.editor,e=t[_s("0x20")],n=t[_s("0x1c")][_s("0xd")]("TrackChangesEditing"),o=t[_s("0x17")];for(const o of Ts){if(!t.plugins.has(o))continue;const s=o[_s("0x18")](0,-7)[_s("0x14")](),r=t[_s("0xe")][_s("0xd")](s);n[_s("0x1b")](s,((t,o={})=>{const i=e.document[_s("0x1f")];if(i.isCollapsed)return void t(o);const x=void 0!==o[_s("0x11")]?o[_s("0x11")]:!r[_s("0x10")];e[_s("0x4")]((()=>{const t=Array[_s("0x15")](i.getRanges());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n[_s("0x3")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[_s("0xf")][_s("0x7")]((n=>{const{data:s}=n;if(s&&s.commandName===t)return s.commandParams[0][_s("0x11")]?{type:_s("0x13"),content:Yo(o,_s("0x21"),e)}:{type:_s("0x13"),content:Yo(o,"*Remove format:* %0",e)}}))}s(_s("0xb"),Yo(o,_s("0x1"))),s(_s("0x5"),Yo(o,_s("0x12"))),s("underline",Yo(o,_s("0x19"))),s("code",Yo(o,_s("0x1d"))),s(_s("0x16"),Yo(o,_s("0x22"))),s("subscript",Yo(o,_s("0x1e"))),s(_s("0x6"),Yo(o,_s("0x8")))}}const ys=["checkChild","markBlockFormat","getSelectedBlocks","blockQuote","ELEMENT_BLOCK_QUOTE","BlockQuoteEditing","commandParams","commandName","plugins","registerDescriptionCallback","editor","TrackChangesEditing","name","forceValue","value","_descriptionFactory","afterInit","from","*Remove format:* %0","commands","format","model","schema","enableCommand","*Format:* %0"];var ks,As;ks=ys,As=218,function(t){for(;--t;)ks.push(ks.shift())}(++As);const Rs=function(t,e){return ys[t-=0]};class vs extends t.Plugin{[Rs("0x17")](){const t=this[Rs("0x11")],e=t.locale;if(!t.plugins.has(Rs("0xc")))return;const n=t[Rs("0xf")].get(Rs("0x12")),o=this.editor[Rs("0x1")].get(Rs("0xa"));n[Rs("0x5")](Rs("0xa"),((e,s={})=>{const r=this[Rs("0x11")][Rs("0x3")].document.selection,i=s&&void 0!==s[Rs("0x14")]?s.forceValue:!o[Rs("0x15")];let x=[];if(i){const e=Array[Rs("0x18")](r[Rs("0x9")]()).filter((t=>Is(t)||function(t,e){const n=e.checkChild(t.parent,Rs("0xa")),o=e[Rs("0x7")](["$root",Rs("0xa")],t);return n&&o}(t,this[Rs("0x11")][Rs("0x3")][Rs("0x4")])));x=I(e,t[Rs("0x3")])}else{const e=Array[Rs("0x18")](r[Rs("0x9")]()).filter((t=>Is(t)));x=I(e,t.model)}t[Rs("0x3")].change((()=>{for(const t of x)n[Rs("0x8")](t,{commandName:Rs("0xa"),commandParams:[{forceValue:i}]})}))})),n[Rs("0x16")][Rs("0x10")]((t=>{const{data:n}=t;if(n&&Rs("0xa")==n[Rs("0xe")]){const t=Yo(e,Rs("0xb"));return n[Rs("0xd")][0].forceValue?{type:Rs("0x2"),content:Yo(e,Rs("0x6"),t)}:{type:"format",content:Yo(e,Rs("0x0"),t)}}}))}}function Is(t){return Rs("0xa")==t.parent[Rs("0x13")]}const Ss=["editor","enableCommand","ckbox","plugins","afterInit","TrackChangesEditing","get","commands"];var Ls,Ns;Ls=Ss,Ns=316,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const Ms=function(t,e){return Ss[t-=0]};class ws extends t.Plugin{[Ms("0x0")](){const t=this[Ms("0x4")];t[Ms("0x3")][Ms("0x2")](Ms("0x6"))&&t[Ms("0x7")][Ms("0x2")](Ms("0x1"))[Ms("0x5")](Ms("0x6"))}}const Os=["from","registerElementLabel","*Format:* %0","commands","commandParams","find","change","CodeBlock","editor","codeBlock","get","outdentCodeBlock","has","indentCodeBlock","name","getSelectedBlocks","document","label","selection","value","*Remove format:* %0","checkChild","config","model","filter","language","enableCommand","registerDescriptionCallback","ELEMENT_CODE_BLOCK","locale","rootElement","formatBlock","languages","parent","format","forceValue","schema","commandName","afterInit","plugins"];var Fs,Ps;Fs=Os,Ps=119,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x27")](){const t=this[Ds("0x9")];if(!t.plugins[Ds("0xd")](Ds("0x8")))return;const e=t[Ds("0x0")][Ds("0xb")]("TrackChangesEditing"),n=t[Ds("0x1e")],o=t[Ds("0x17")][Ds("0xb")](Ds("0xa"))[Ds("0x21")],s=t[Ds("0x4")].get("codeBlock");e[Ds("0x1b")](Ds("0xe")),e[Ds("0x1b")](Ds("0xc")),e.enableCommand(Ds("0xa"),((n,r={})=>{const i=t[Ds("0x18")],x=t[Ds("0x18")][Ds("0x11")][Ds("0x13")],a=r&&void 0!==r[Ds("0x24")]?r.forceValue:!s[Ds("0x14")];let c;r[Ds("0x1a")]||(r[Ds("0x1a")]=o[0][Ds("0x1a")]),c=a?Array[Ds("0x1")](x[Ds("0x10")]()).filter((t=>{return js(t)||(e=t,n=i[Ds("0x25")],!e.is(Ds("0x1f"))&&!n.isLimit(e)&&n[Ds("0x16")](e[Ds("0x22")],"codeBlock"));var e,n})):Array.from(x[Ds("0x10")]())[Ds("0x19")]((t=>js(t)));const l=I(c,i);i[Ds("0x7")]((()=>{for(const t of l)e.markBlockFormat(t,{commandName:"codeBlock",commandParams:[{...r,forceValue:a}],formatGroupId:"blockName"})}))})),e._descriptionFactory[Ds("0x2")]("codeBlock",(t=>Yo(n,"ELEMENT_CODE_BLOCK",t))),e._descriptionFactory[Ds("0x1c")]((t=>{const e=n.t,{type:s,data:r}=t;if(Ds("0x20")==s&&r&&Ds("0xa")==r[Ds("0x26")]){const t=r.commandParams[0].language,s=e(o[Ds("0x6")]((e=>e.language===t))[Ds("0x12")]);return r[Ds("0x5")][0][Ds("0x24")]?{type:Ds("0x23"),content:Yo(n,Ds("0x3"),Yo(n,Ds("0x1d"),1)+" ("+s+")")}:{type:Ds("0x23"),content:Yo(n,Ds("0x15"),Yo(n,"ELEMENT_CODE_BLOCK",1))}}}))}}function js(t){return Ds("0xa")==t[Ds("0xf")]}const Us=["addCommentThread","enableCommand","TrackChangesEditing","get","CommentsEditing","afterInit","plugins","editor"];var Gs,Hs;Gs=Us,Hs=340,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const zs=function(t,e){return Us[t-=0]};class Vs extends t.Plugin{[zs("0x1")](){const t=this[zs("0x3")];t.plugins.has(zs("0x0"))&&t[zs("0x2")][zs("0x7")](zs("0x6"))[zs("0x5")](zs("0x4"))}}var Ws=n(181);const Ks=["$graveyard","unit","markerName","bind","options","TrackChangesEditing","downcastDispatcher","removeMarker:suggestion:deletion","deleteForward","plugins","markerNameToElements","delete","editing","buffer","selection","uiElement","model","enableCommand","rootName","createRange","get","root","getFirstRange","addMarker:suggestion:deletion","document","mapper","forward","end","merge","high","showSuggestionHighlights","fromRange","createSelection","modifySelection","setSelection","isCollapsed","init","commands"];var qs,$s;qs=Ks,$s=133,function(t){for(;--t;)qs.push(qs.shift())}(++$s);const Xs=function(t,e){return Ks[t-=0]};class Js extends t.Plugin{static get requires(){return[Ws.Delete]}[Xs("0x11")](){const t=this.editor,e=t[Xs("0x1c")][Xs("0x1")](Xs("0x18"));e[Xs("0x24")](Xs("0x1e"));const n=t[Xs("0x12")][Xs("0x1")](Xs("0x1b"));e[Xs("0x24")](Xs("0x1b"),((e,o={})=>{const s=t[Xs("0x23")][Xs("0xd")](t[Xs("0x23")][Xs("0x5")][Xs("0x21")]);s[Xs("0x10")]&&t[Xs("0x23")][Xs("0xe")](s,{direction:Xs("0x7"),unit:o[Xs("0x14")]});const r=s[Xs("0x3")](),x=i.LiveRange[Xs("0xc")](r);let a;e(o),a=Xs("0x13")==x[Xs("0x2")][Xs("0x25")]?t[Xs("0x23")][Xs("0x0")](r.start):t.model[Xs("0x0")](x.start,x[Xs("0x8")]),x.detach(),t[Xs("0x23")].enqueueChange(n[Xs("0x20")].batch,(t=>{n.buffer.lock(),t[Xs("0xf")](t.createRange(a[Xs("0x8")])),n[Xs("0x20")].unlock()}))})),t[Xs("0x1f")][Xs("0x19")].on(Xs("0x4"),hs(t,"merge"),{priority:Xs("0xa")}),t.data[Xs("0x19")].on(Xs("0x4"),((e,n,o)=>{o[Xs("0x17")][Xs("0xb")]&&hs(t,Xs("0x9"),{showActiveMarker:!1})[Xs("0x16")](this)(e,n,o)}),{priority:Xs("0xa")}),t[Xs("0x1f")].downcastDispatcher.on(Xs("0x1a"),((t,e,n)=>{const o=n.mapper[Xs("0x1d")](e[Xs("0x15")]);if(o)for(const t of o)t.is(Xs("0x22"))&&(n[Xs("0x6")].unbindElementFromMarkerName(t,e.markerName),n.writer.remove(t))}),{priority:Xs("0xa")})}}const Qs=["schema","listType","selection","listItemId","setSelection","slice","enableCommand","execute","model","nextSibling","documentList","editor","getSelectedBlocks","isFirstBlockOfListItem","DocumentListUtils","*Merge:* %0","has","length","getRanges","hasAttribute","getAttribute","expandListBlocksToCompleteList","value","format","*Indent:* %0","registerDescriptionCallback","splitListItemAfter","indentList","change","registerCustomCallback","splitListItemBefore","containsItem","forceValue","*Format:* remove from %0","commandParams","_LIST","detach","_descriptionFactory","*Change to:* %0","start","mergeListItemForward","map","push","*Outdent:* %0","refresh","createPositionAt","TrackChangesEditing","plugins","before","bulletedList","nodeAfter","markMultiRangeBlockFormat","getFirstRange","document","end","ELEMENT_NUMBERED_LIST","*Format:* insert into %0","outdentList","createRange","markBlockFormat","numberedList","commandName","from","ELEMENT_","_suggestionFactory","ELEMENT_LIST_ITEM","isObject","DocumentListEditing","get","locale","listIndent","afterInit","commands"];var Zs,Ys;Zs=Qs,Ys=264,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0x1a")](){const t=this[tr("0x27")];if(!t.plugins[tr("0x2c")](tr("0x16")))return;const e=t[tr("0x18")],n=t[tr("0x2")][tr("0x17")](tr("0x1")),o=t[tr("0x2")][tr("0x17")](tr("0x2a"));function s(e){return()=>{const s=t.commands[tr("0x17")](e);let r=Array.from(t[tr("0x24")].document.selection[tr("0x28")]());if(a(e)){r=o[tr("0x31")](r);const t=[];for(const e of r)o[tr("0x29")](e)&&t[tr("0x46")](e);r=t}t[tr("0x24")][tr("0x38")]((()=>{n[tr("0x6")](r,{commandName:e,commandParams:[{forceValue:!s[tr("0x32")]}],formatGroupId:tr("0x1d")},[],tr("0x26"))}))}}function r(e){return()=>{const o=function(t){let e=Array.from(t);const n=e.findIndex((t=>!t[tr("0x2f")](tr("0x1f"))));return n>-1&&(e=e[tr("0x21")](0,n)),e}(t[tr("0x24")].document[tr("0x1e")].getSelectedBlocks()),s=o[o[tr("0x2d")]-1],r=t[tr("0x24")][tr("0x1c")][tr("0x15")](s)?"after":tr("0x9"),i=t[tr("0x24")].createRange(t[tr("0x24")][tr("0x0")](o[0],tr("0x3")),t.model[tr("0x0")](s,r));t.model[tr("0x38")]((()=>{n[tr("0xe")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x1d")},function(t){const e=new Set;for(const n of t){let t=n[tr("0x25")];for(;t&&t[tr("0x30")](tr("0x19"))>n[tr("0x30")](tr("0x19"));)e.add(t),t=t.nextSibling}return Array[tr("0x11")](e)}(o))}))}}function x(e){return()=>{const o=t[tr("0x24")][tr("0x8")][tr("0x1e")][tr("0x28")]().next()[tr("0x32")],s=t[tr("0x24")][tr("0x0")](o,tr("0x3")),r=t[tr("0x24")][tr("0x0")](o,0),i=t[tr("0x24")].createRange(s,r);t.model[tr("0x38")]((()=>{n[tr("0xe")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x1d")})}))}}function a(e){const n=t[tr("0x1b")][tr("0x17")](tr("0x4"))[tr("0x32")],o=t[tr("0x1b")][tr("0x17")](tr("0xf"))[tr("0x32")];return"numberedList"===e?n:o}n.enableCommand("numberedList",s("numberedList")),n[tr("0x22")](tr("0x4"),s(tr("0x4"))),n[tr("0x22")]("indentList",r(tr("0x37"))),n[tr("0x22")](tr("0xc"),r(tr("0xc"))),n[tr("0x22")](tr("0x36"),x(tr("0x36"))),n[tr("0x22")]("splitListItemBefore",x(tr("0x3a"))),n[tr("0x41")].registerElementLabel((function(e){const n=!t.model[tr("0x1c")][tr("0x15")](e),o=e.previousSibling,s=e[tr("0x25")],r=e[tr("0x30")](tr("0x1f")),i=!o||o[tr("0x30")](tr("0x1f"))!==r,x=!s||s[tr("0x30")](tr("0x1f"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,tr("0x14"),t))),n[tr("0x41")][tr("0x35")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x10")]){case"bulletedList":r=n[tr("0x3e")][0][tr("0x3c")],i=a(n[tr("0x10")]),o=tr(r?"0xb":"0x3d"),i&&(o="*Change to:* %0"),s={type:tr("0x33"),content:Yo(e,o,Yo(e,"ELEMENT_BULLETED_LIST"))};break;case tr("0xf"):r=n[tr("0x3e")][0][tr("0x3c")],i=a(n[tr("0x10")]),o=r?"*Format:* insert into %0":tr("0x3d"),i&&(o=tr("0x42")),s={type:"format",content:Yo(e,o,Yo(e,tr("0xa")))};break;case"indentList":o=tr("0x34"),s={type:"format",content:Yo(e,o,Yo(e,tr("0x14")))};break;case tr("0xc"):o=function(t){const e=t[tr("0x7")]();let n=e[tr("0x43")].nodeAfter;for(;n&&e[tr("0x3b")](n);){if(n.getAttribute(tr("0x19"))>0)return!1;n=n.nextSibling}return!0}(t)?Yo(e,"*Format:* remove from %0",Yo(e,function(t){const e=t.getFirstRange().start[tr("0x5")];return tr("0x12")+e[tr("0x30")](tr("0x1d")).toUpperCase()+tr("0x3f")}(t))):Yo(e,tr("0x47"),Yo(e,tr("0x14"))),s={type:tr("0x33"),content:o};break;case"mergeListItemBackward":case tr("0x44"):!1===n.multipleBlocks&&(o=tr("0x2b"),s={type:"deletion",content:Yo(e,o,Yo(e,tr("0x14")))})}return s})),n[tr("0x13")][tr("0x39")]("formatBlock",tr("0x26"),"accept",(function(e,n){const o=[];for(let n of e)n[tr("0x43")][tr("0x5")]===n[tr("0x9")].parent&&(n=t.model[tr("0xd")](t[tr("0x24")][tr("0x0")](n.start[tr("0x5")],0))),o[tr("0x46")](n);t[tr("0x24")].change((e=>{const s=t[tr("0x24")].document[tr("0x1e")],r=Array.from(s[tr("0x2e")]())[tr("0x45")]((t=>i.LiveRange.fromRange(t)));e.setSelection(o),t[tr("0x1b")][tr("0x17")](n[tr("0x10")])[tr("0x48")](),n[tr("0x3e")][tr("0x46")]({forceDefaultExecution:!0}),t[tr("0x23")](n[tr("0x10")],...n[tr("0x3e")]),e[tr("0x20")](r);for(const t of r)t[tr("0x40")]()}))}))}}var nr=n(331);const or=["markerName","enterBlock","editing","mapper","editor","fire","enter","plugins","get","data","requires","nextSibling","fromRange","commands","hasClass","high","ck-suggestion-marker-split","markInsertion","split","end","enableCommand","document","unbindElementFromMarkerName","TrackChangesEditing","model","createRange","removeMarker:suggestion:insertion","detach","afterExecute","markerNameToElements","parent","downcastDispatcher"];var sr,rr;sr=or,rr=167,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("0x3")](){return[nr.Enter]}init(){const t=this[ir("0x1d")],e=t[ir("0x0")][ir("0x1")](ir("0x10")),n=t[ir("0x6")][ir("0x1")](ir("0x1f"));e[ir("0xd")](ir("0x1f"),(()=>{t[ir("0x11")].change((o=>{const s=t.model[ir("0xe")].selection,r=s.getFirstPosition(),x=i.LiveRange[ir("0x5")](s.getFirstRange());if(n[ir("0x1a")](o)){const n=t[ir("0x11")].createPositionAt(r[ir("0x17")][ir("0x4")],0),s=o.createRange(r,n);e[ir("0xa")](s)}else o.setSelection(o[ir("0x12")](x[ir("0xc")]));x[ir("0x14")](),n[ir("0x1e")](ir("0x15"),{writer:o})}))})),t[ir("0x1b")].downcastDispatcher.on("addMarker:suggestion:insertion",hs(t,ir("0xb")),{priority:ir("0x8")}),t.editing[ir("0x18")].on(ir("0x13"),((t,e,n)=>{const o=n[ir("0x1c")][ir("0x16")](e.markerName);if(o)for(const t of o)t[ir("0x7")](ir("0x9"))&&(n[ir("0x1c")][ir("0xf")](t,e[ir("0x19")]),n.writer.remove(t))}),{priority:"high"}),t[ir("0x2")][ir("0x18")].on("addMarker:suggestion:insertion",((e,n,o)=>{o.options.showSuggestionHighlights&&hs(t,ir("0xb"),{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:ir("0x8")})}}const ar=["markers","filter","model","replace","getRange","find","editor","enableCommand","findByTextCallback","end","get","_isInDeletionRange","FindAndReplaceEditing","plugins","getIntersection","item","afterInit","handleFindCommand","suggestion:deletion","findNext"];var cr,lr;cr=ar,lr=480,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return ar[t-=0]};class ur extends t.Plugin{[dr("0x10")](){if(!this[dr("0x6")][dr("0xd")].has(dr("0xc")))return;const t=this.editor.plugins[dr("0xa")]("TrackChangesEditing");t.enableCommand(dr("0x5"),this[dr("0x11")].bind(this)),t.enableCommand(dr("0x13")),t.enableCommand("findPrevious"),t[dr("0x7")](dr("0x3")),t[dr("0x7")]("replaceAll")}[dr("0x11")](t,e,n={}){const o=this[dr("0x6")][dr("0xd")].get("FindAndReplaceUtils");void 0!==n&&t((t=>("string"==typeof e?o[dr("0x8")](e,n):e)(t)[dr("0x1")]((e=>!1===this[dr("0xb")](e,t[dr("0xf")])))),n)}[dr("0xb")](t,e){const n=this.editor[dr("0x2")].createRange(this[dr("0x6")][dr("0x2")].createPositionAt(e,t.start),this[dr("0x6")][dr("0x2")].createPositionAt(e,t[dr("0x9")]));for(const t of this[dr("0x6")][dr("0x2")][dr("0x0")].getMarkersGroup(dr("0x12")))if(null!==n[dr("0xe")](t[dr("0x4")]()))return!0;return!1}}const gr=["normalizeSizeOptions","commandParams","*Set font background color:* %0","editor","afterInit","toLowerCase","fontSize","*Set font color:* %0","markInlineFormat","fontBackgroundColor","*Reset font color*","plugins","*Reset font background color*","has","FontColorEditing","FontSizeEditing","commandName","selection","locale","model","fontColor","*Set font family:* %0","registerDescriptionCallback","config","label","enableCommand","format","find","*Reset font family*","fontFamily","value","fontBackgroundColor.colors","fontColor.colors","FontSize","FontFamilyEditing","change","get","TrackChangesEditing","_enableCommand","*Set font size:* %0","fontSize.options","getRanges"];var mr,fr;mr=gr,fr=342,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:hr("0x9"),commandName:"fontSize"},{pluginName:hr("0x1c"),commandName:hr("0x17")},{pluginName:hr("0x8"),commandName:hr("0xe")},{pluginName:"FontBackgroundColorEditing",commandName:hr("0x3")}];class br extends t.Plugin{[hr("0x28")](){const t=this[hr("0x27")][hr("0xc")];for(const{pluginName:t,commandName:e}of pr)this[hr("0x27")].plugins[hr("0x7")](t)&&this[hr("0x20")](e);this[hr("0x27")][hr("0x5")][hr("0x1e")]("TrackChangesEditing")._descriptionFactory[hr("0x10")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0x0")==o[hr("0xa")]){const e=o.commandParams[0].value;if(e){const o=n(this[hr("0x27")].plugins.get(hr("0x1b"))[hr("0x24")](this[hr("0x27")][hr("0x11")][hr("0x1e")](hr("0x22")))[hr("0x15")]((t=>t[hr("0xd")]==e)).title)[hr("0x29")]();return{type:hr("0x14"),content:Yo(t,hr("0x21"),o)}}return{type:hr("0x14"),content:Yo(t,"*Reset font size*")}}if(hr("0x17")==o.commandName){const e=o[hr("0x25")][0].value;return e?{type:hr("0x14"),content:Yo(t,hr("0xf"),e)}:{type:"format",content:Yo(t,hr("0x16"))}}if(hr("0xe")==o[hr("0xa")]){const e=o[hr("0x25")][0][hr("0x18")];if(e){const o=(0,s.normalizeColorOptions)(this.editor[hr("0x11")][hr("0x1e")](hr("0x1a")))[hr("0x15")]((t=>t[hr("0xd")]==e));let r=e,i="";return o&&(r=o.label,i=n(r)[hr("0x29")]()),{type:hr("0x14"),content:Yo(t,hr("0x1"),i).trim(),color:{value:e,title:i||r}}}return{type:hr("0x14"),content:Yo(t,hr("0x4"))}}if(hr("0x3")==o[hr("0xa")]){const e=o[hr("0x25")][0][hr("0x18")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x27")][hr("0x11")][hr("0x1e")](hr("0x19")))[hr("0x15")]((t=>t.model==e));let r=e,i="";return o&&(r=o[hr("0x12")],i=n(r)[hr("0x29")]()),{type:hr("0x14"),content:Yo(t,hr("0x26"),i).trim(),color:{value:e,title:i||r}}}return{type:hr("0x14"),content:Yo(t,hr("0x6"))}}}}))}[hr("0x20")](t){const e=this[hr("0x27")];e.plugins.get(hr("0x1f"))[hr("0x13")](t,((n,o={})=>{const s=e[hr("0xd")].document[hr("0xb")],r=o[hr("0x18")];s.isCollapsed?n(o):e[hr("0xd")][hr("0x1d")]((()=>{const n=Array.from(s[hr("0x23")]());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0xd")]);for(const o of n)e[hr("0x5")][hr("0x1e")]("TrackChangesEditing")[hr("0x2")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["isBlock","locale","forward","charAt","fontColor","format","toLowerCase","config","document","createSelection","getAttributes","createRange","push","isFormatting","*Set format to:* %0","pasteFormat","getFirstPosition","enableCommand","join","title","commands","copyFormat","getAttributeProperties","getItems","normalizeSizeOptions","get","modifySelection","find","toUpperCase","length","TrackChangesEditing","getRanges","schema","label","commandParams","fontBackgroundColor","getSelectedBlocks","fontSize.options","slice","change","word","_descriptionFactory","backward","plugins","getLastPosition","*Remove all formatting*","model","editor","split"];var _r,Tr;_r=Er,Tr=251,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("0x29")],n=t[Cr("0x28")],o=n[Cr("0x2")].selection,s=t[Cr("0x25")].get(Cr("0x18")),r=t[Cr("0x2c")],i=t[Cr("0xe")][Cr("0x13")](Cr("0xf")),x=t[Cr("0xe")][Cr("0x13")](Cr("0x9"));i&&x&&(s[Cr("0xb")](Cr("0x9"),((t,r={})=>{const i=r;n[Cr("0x21")]((()=>{const t=Array.from(o.getRanges()),r=o.isCollapsed?[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("0x4")]()){const t=e[Cr("0x10")](n);t&&t[Cr("0x7")]&&(yield n)}}(t,n));for(const e of t[Cr("0x19")]())for(const t of e[Cr("0x11")]())!n[Cr("0x2b")](t)&&o(t)&&(yield t);for(const e of t[Cr("0x1e")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x1a")]))||0!==Object.keys(i)[Cr("0x17")])for(const t of r)s.markInlineFormat(t,{commandName:Cr("0x9"),commandParams:[i]})}))})),s[Cr("0x23")].registerDescriptionCallback((e=>{const{data:n}=e;if(n&&Cr("0x9")===n.commandName){const e=[],o=n[Cr("0x1c")][0];for(const[n,s]of Object.entries(o))e[Cr("0x6")](Ar(t,n,s));return e[Cr("0x17")]?{type:Cr("0x30"),content:Yo(r,Cr("0x8"),e[Cr("0xc")](", "))}:{type:"format",content:Yo(r,Cr("0x27"))}}})),t[Cr("0x25")].get("TrackChangesEditing")[Cr("0xb")](Cr("0xf")))}}function kr(t,e){const n=t[Cr("0x3")](e);t[Cr("0x14")](n,{unit:Cr("0x22"),direction:Cr("0x24")});const o=n[Cr("0xa")]();t.modifySelection(n,{unit:Cr("0x22"),direction:Cr("0x2d")});const s=n[Cr("0x26")]();return t[Cr("0x5")](o,s)}function Ar(t,e,n){const o=t[Cr("0x2c")].t,r=e[Cr("0x2a")](/(?=[A-Z])/)[Cr("0xc")](" "),i=o(r[Cr("0x2e")](0)[Cr("0x16")]()+r[Cr("0x20")](1)).toLowerCase();if("boolean"==typeof n)return i;if(Cr("0x2f")===e||Cr("0x1d")===e){const e=(0,s.normalizeColorOptions)(t[Cr("0x1")].get("fontColor.colors"))[Cr("0x15")]((t=>t[Cr("0x28")]==n));return i+" ("+(e?o(e[Cr("0x1b")])[Cr("0x0")]():n)+")"}if("fontSize"===e&&isNaN(parseFloat(n))){const e=t[Cr("0x25")][Cr("0x13")]("FontSize")[Cr("0x12")](t.config.get(Cr("0x1f"))).find((t=>t[Cr("0x28")]==n));return i+" ("+(e?o(e[Cr("0xd")])[Cr("0x0")]():n)+")"}return i+" ("+n+")"}const Rr=["config","from","registerDescriptionCallback","commandName","locale","formatBlock","plugins","ELEMENT_HEADING_CUSTOM","find","*Change to:* %0","get","has","title","model","enableCommand","_descriptionFactory","format","heading","commandParams","parent","paragraph","checkChild","editor","afterInit","HeadingEditing","registerElementLabel","filter","value"];var vr,Ir;vr=Rr,Ir=345,function(t){for(;--t;)vr.push(vr.shift())}(++Ir);const Sr=function(t,e){return Rr[t-=0]};class Lr extends t.Plugin{[Sr("0xe")](){const t=this[Sr("0xd")],e=t[Sr("0x17")],n=t[Sr("0x13")][Sr("0x1")]("heading.options");if(!t.plugins[Sr("0x2")](Sr("0xf")))return;const o=t[Sr("0x19")][Sr("0x1")]("TrackChangesEditing");o[Sr("0x5")](Sr("0x8"),((e,n)=>{const s=n.value,r=Array[Sr("0x14")](this[Sr("0xd")][Sr("0x4")].document.selection.getSelectedBlocks())[Sr("0x11")]((t=>{return e=t,n=s,(o=this[Sr("0xd")][Sr("0x4")].schema)[Sr("0xc")](e[Sr("0xa")],n)&&!o.isObject(e)&&e.name!=n;var e,n,o}));t.model.change((()=>{for(const t of r)o.markBlockFormat(t,{commandName:Sr("0x8"),commandParams:[n],formatGroupId:"blockName"},fs(t))}))}));for(const t of n)Sr("0xb")!=t[Sr("0x4")]&&o[Sr("0x6")][Sr("0x10")](t[Sr("0x4")],(e=>{const n=Nr(t[Sr("0x4")]);return null!==n?s(e,n):r(e,t[Sr("0x3")])}));function s(t,n){return Yo(e,"ELEMENT_HEADING",[t,n])}function r(t,n){return Yo(e,Sr("0x1a"),[t,n])}o[Sr("0x6")][Sr("0x15")]((t=>{const{type:o,data:i}=t;if(Sr("0x18")==o&&i&&Sr("0x8")==i[Sr("0x16")]){const t=i[Sr("0x9")][0][Sr("0x12")],o=Nr(t);if(null!==o)return{type:Sr("0x7"),content:Yo(e,Sr("0x0"),s(1,o))};const x=n[Sr("0x1b")]((e=>e.model===t))[Sr("0x3")];return{type:"format",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=["*Set highlight:* %0","model","find","afterInit","config","*Remove highlight*","item","toLowerCase","format","selection","markInlineFormat","title","formatInline","push","editor","registerDescriptionCallback","TrackChangesEditing","plugins","isCollapsed","getLastMatchingPosition","commandParams","highlight","hasAttribute","createRange","commandName","change","getRanges","getFirstPosition","get","locale","FORMAT_HIGHLIGHT","value","getAttribute"];var wr,Or;wr=Mr,Or=180,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Pr extends t.Plugin{[Fr("0x15")](){const t=this[Fr("0x20")];if(!t[Fr("0x2")].has("HighlightEditing"))return;const e=t[Fr("0x2")][Fr("0xd")](Fr("0x1"));e.enableCommand(Fr("0x6"),((n,o={})=>{const s=t.model.document[Fr("0x1b")],r=s.getAttribute(Fr("0x6"));let i=o[Fr("0x10")],x=[];if(s[Fr("0x3")]){const e=s[Fr("0xc")]();if(!s[Fr("0x7")]("highlight"))return void n(o);{const n=t=>t[Fr("0x18")][Fr("0x11")](Fr("0x6"))===r,o=e.getLastMatchingPosition(n,{direction:"backward"}),s=e[Fr("0x4")](n);x=[t[Fr("0x13")][Fr("0x8")](o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0xb")]())i?x.push(e):x[Fr("0x1f")](...ms("highlight",e,t[Fr("0x13")]));t[Fr("0x13")][Fr("0xa")]((()=>{for(const t of x)e[Fr("0x1c")](t,{commandName:Fr("0x6"),commandParams:[{value:i}]})}))}));const n=t[Fr("0xe")];e._descriptionFactory[Fr("0x0")]((e=>{const{type:o,data:s}=e;if(Fr("0x1e")==o&&s&&Fr("0x6")==s[Fr("0x9")]){const e=n.t,o=s[Fr("0x5")][0][Fr("0x10")];if(o){const s=t[Fr("0x16")][Fr("0xd")]("highlight.options")[Fr("0x14")]((t=>t.model==o)),r=e(s[Fr("0x1d")])[Fr("0x19")]();return{type:Fr("0x1a"),content:Yo(n,Fr("0x12"),r),color:{value:s.color,title:s[Fr("0x1d")]}}}return{type:Fr("0x1a"),content:Yo(n,Fr("0x17"),Yo(n,Fr("0xf")))}}}))}}const Dr=["insert","dataDowncast","afterInit","_descriptionFactory","high","get","addClass","createPositionAt","editor","horizontalLine","HorizontalLineEditing","plugins","createContainerElement","locale","ELEMENT_HORIZONTAL_LINE","createEmptyElement","registerElementLabel","conversion","for","div","enableCommand","showSuggestionHighlights","elementToStructure"];var Br,jr;Br=Dr,jr=281,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0x14")](){const t=this[Ur("0x3")];if(!t[Ur("0x6")].has(Ur("0x5")))return;t.plugins[Ur("0x0")]("TrackChangesEditing")[Ur("0xf")]("horizontalLine");const e=t[Ur("0x6")][Ur("0x0")]("TrackChangesEditing"),n=t[Ur("0x8")];e[Ur("0x15")][Ur("0xb")](Ur("0x4"),(t=>Yo(n,Ur("0x9"),t))),t[Ur("0xc")][Ur("0xd")](Ur("0x13"))[Ur("0x11")]({model:"horizontalLine",view:(t,{writer:e,options:n})=>{if(!n[Ur("0x10")])return null;const o=e[Ur("0x7")](Ur("0xe")),s=e[Ur("0xa")]("hr");return e[Ur("0x1")]("ck-horizontal-line",o),e[Ur("0x12")](e[Ur("0x2")](o,0),s),o},converterPriority:Ur("0x16")})}}const Hr=["view","markBlockFormat","format","htmlEmbed","selection","has","registerElementLabel","registerDescriptionCallback","TrackChangesEditing","getAttribute","enableCommand","HtmlEmbed","_descriptionFactory","get","ELEMENT_HTML_EMBED","getSelectedElement","model","rawHtml","document","change","*Change %0 content*","afterInit","editor"];var zr,Vr;zr=Hr,Vr=170,function(t){for(;--t;)zr.push(zr.shift())}(++Vr);const Wr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Wr("0xc")](){const t=this[Wr("0xd")];if(!t.plugins[Wr("0x13")](Wr("0x2")))return;const e=t.plugins[Wr("0x4")](Wr("0x16")),n=t.locale,o=t.editing[Wr("0xe")][Wr("0x9")][Wr("0x12")];e[Wr("0x3")][Wr("0x14")](Wr("0x8"),(t=>Yo(n,Wr("0x5"),t))),t.plugins[Wr("0x4")](Wr("0x16"))[Wr("0x1")](Wr("0x11"),((n,s)=>{const r=t[Wr("0x7")],i=r[Wr("0x9")][Wr("0x12")];r[Wr("0xa")]((()=>{const t=function(t){const e=t.getSelectedElement();return e&&e.is("element",Wr("0x8"))?t[Wr("0x6")]():null}(i);if(!t)return void n(null);const r=t[Wr("0x0")]("value")||"";void 0!==s&&s!==r&&(e[Wr("0xf")](t,{commandName:Wr("0x11"),commandParams:[s]}),o[Wr("0x6")]().getCustomProperty("rawHtmlApi").cancel())}))})),e._descriptionFactory[Wr("0x15")]((t=>{const{data:e}=t;if(e&&Wr("0x11")==e.commandName){const t=Yo(n,Wr("0x5"));return{type:Wr("0x10"),content:Yo(n,Wr("0xb"),t)}}}))}}const qr=["imageInline","has","commandName","*Set image text alternative:* %0","deletion","differ","detach","isBefore","normalizedStyles","previous","plugins","getClosestSelectedImageElement","commandReversedParams","hasSuggestion","_splitMarkerName","findIndex","Users","ImageResize","ImageUtils","isBlockImage","addObject","forEach","ImageCaptionEditing","ELEMENT_IMAGE","find","enableCommand","document","chain","suggestion","_descriptionFactory","registerCustomCallback","subType","isInContent","shouldConvertImageType","fromPosition","get","createRange","TrackChangesEditing","side","isInlineImage","start","end","element","formatInline","insertImage","change","getSuggestion","afterInit","join","alt","getContainedElement","next","convertInlineImageToBlock","ELEMENT_CAPTION","getNearestSelectionRange","ImageEditing","imageTextAlternative","author","Inline image to block image","caption","isIntersecting","imageBlock","nodeBefore","hasAttribute","createRangeOn","format","isCollapsed","backward","ImageUploadEditing","from","filter","imageStyle","commands","refresh","head","insertion","selection","discardSuggestion","resizeImage","toggleImageCaption","registerDescriptionCallback","imageStylePreApply","locale","length","schema","model","newRange","markInsertion","imageTypeBlock","imageCaption","getAttribute","imageTypeInline","registerPostFixer","commandParams","*Set image width:* %0","isEqual","title","ImageStyleEditing","discard","imageStylePostApply","convertBlockImageToInline","markDeletion","getSuggestionCallback","name","isOwn","value","uploadImage","newValue","ImageInlineEditing","registerElementLabel","getFirstRange","markInlineFormat","formatBlock","_suggestionFactory","width","accept","markBlockFormat","_findSuggestions","Block image to inline image","type"];var $r,Xr;$r=qr,Xr=437,function(t){for(;--t;)$r.push($r.shift())}(++Xr);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{[Jr("0x5a")](){const t=this.editor;if(!t[Jr("0x35")].has(Jr("0x62")))return;const n=t.plugins[Jr("0x4e")](Jr("0x50")),o=t[Jr("0x35")][Jr("0x4e")](Jr("0x3d")),s={},r=t[Jr("0x5")];if(n[Jr("0x44")](Jr("0x57")),n[Jr("0x48")][Jr("0x20")](Jr("0x68"),(t=>Yo(r,Jr("0x42"),t))),n[Jr("0x48")][Jr("0x20")](Jr("0x2b"),(t=>Yo(r,"ELEMENT_INLINE_IMAGE",t))),n[Jr("0x48")][Jr("0x20")](Jr("0x66"),(()=>Yo(r,Jr("0x60")))),t.plugins.has(Jr("0x6f"))&&n[Jr("0x44")](Jr("0x1d")),t.plugins.has("ImageBlockEditing")&&t.plugins[Jr("0x2c")](Jr("0x1f"))&&(n[Jr("0x44")](Jr("0xe"),((e,s)=>{const r=o[Jr("0x36")](t.model[Jr("0x45")][Jr("0x77")]);t[Jr("0x8")][Jr("0x58")]((()=>{n[Jr("0x27")](r,{commandName:Jr("0xe"),commandParams:[s]},[],Jr("0x17"))}))})),n[Jr("0x44")](Jr("0xb"),((e,s)=>{t.model[Jr("0x58")]((r=>{let x=o[Jr("0x36")](t[Jr("0x8")][Jr("0x45")][Jr("0x77")]),a=r[Jr("0x6b")](x);const c=i.LivePosition[Jr("0x4d")](a[Jr("0x53")],"toPrevious"),l=i.LivePosition[Jr("0x4d")](a[Jr("0x54")],"toNext");n.forceDefaultExecution((()=>e(s))),x=o[Jr("0x36")](t[Jr("0x8")][Jr("0x45")][Jr("0x77")]),a=r.createRangeOn(x);const d=r[Jr("0x4f")](c,l);c[Jr("0x31")](),l[Jr("0x31")](),n[Jr("0x27")](x,{commandName:Jr("0xe"),commandParams:[]},[],"convertInlineImageToBlock"),d[Jr("0x53")][Jr("0x32")](a.start)&&n[Jr("0xa")](r[Jr("0x4f")](d.start,a[Jr("0x53")]),Jr("0x5f")),a[Jr("0x54")][Jr("0x32")](d[Jr("0x54")])&&n[Jr("0xa")](r[Jr("0x4f")](a[Jr("0x54")],d.end),Jr("0x5f"))}))})),n[Jr("0x24")][Jr("0x49")]("formatBlock",Jr("0x5f"),Jr("0x5b"),(()=>!1)),n[Jr("0x24")][Jr("0x49")](Jr("0x23"),Jr("0x5f"),Jr("0x26"),(()=>!1)),n[Jr("0x24")][Jr("0x49")]("formatBlock",Jr("0x5f"),Jr("0x15"),n._suggestionFactory.getSuggestionCallback("formatBlock","",Jr("0x26"))),n[Jr("0x24")][Jr("0x49")]("insertion",Jr("0x5f"),Jr("0x5b"),(()=>!1)),n._suggestionFactory[Jr("0x49")]("insertion",Jr("0x5f"),"discard",(([e])=>{const o=n[Jr("0x24")][Jr("0x19")]("insertion","","discard");let s=e.start,r=e[Jr("0x54")];const i=t[Jr("0x8")].schema[Jr("0x61")](s,Jr("0x6e")),x=t[Jr("0x8")][Jr("0x7")][Jr("0x61")](r,"forward");i.isCollapsed&&(s=i.start),x[Jr("0x6d")]&&(r=x[Jr("0x54")]),o([t.model[Jr("0x4f")](s,r)])})),n._suggestionFactory.registerCustomCallback(Jr("0x23"),Jr("0x5f"),Jr("0x46"),c),n[Jr("0x24")][Jr("0x49")](Jr("0x76"),Jr("0x5f"),Jr("0x46"),c)),t[Jr("0x35")][Jr("0x2c")](Jr("0x41"))&&(n.enableCommand(Jr("0x2"),((e,s)=>{const r=t[Jr("0x35")][Jr("0x4e")]("ImageCaptionUtils");let i=o.getClosestSelectedImageElement(t[Jr("0x8")][Jr("0x45")][Jr("0x77")]),x=r.getCaptionFromImageModelElement(i);t[Jr("0x8")][Jr("0x58")]((()=>{if(x)return void n[Jr("0x18")](t[Jr("0x8")][Jr("0x6b")](x));const a=o[Jr("0x3e")](i);e(s),i=o[Jr("0x36")](t[Jr("0x8")][Jr("0x45")][Jr("0x77")]),x=r.getCaptionFromImageModelElement(i),n[Jr("0xa")](t[Jr("0x8")].createRangeOn(x),a?null:"imageCaption")}))})),n[Jr("0x24")][Jr("0x49")]("insertion","imageCaption",Jr("0x46"),c)),t[Jr("0x35")][Jr("0x2c")]("ImageStyleEditing")){n.enableCommand(Jr("0x72"),((s,r)=>{const i=t[Jr("0x35")].get(Jr("0x3b")).me,x=t[Jr("0x73")][Jr("0x4e")](Jr("0x72"));let a=o[Jr("0x36")](t[Jr("0x8")][Jr("0x45")][Jr("0x77")]),c=t.model[Jr("0x6b")](a),l=x[Jr("0x1c")];if(l==r.value)return;const d={commandName:Jr("0x72"),commandParams:[r],formatGroupId:(0,e.uid)()};t.model[Jr("0x58")]((()=>{if(n.getSuggestions()[Jr("0x71")]((t=>t[Jr("0x4b")]&&i==t[Jr("0x64")]&&("formatBlock"==t.type||Jr("0x56")==t[Jr("0x2a")])&&(Jr("0x4")==t[Jr("0x4a")]||Jr("0x16")==t.subType)&&t.getFirstRange()[Jr("0x12")](c)))[Jr("0x40")]((t=>n[Jr("0x0")](t[Jr("0x75")]))),a=o[Jr("0x36")](t[Jr("0x8")][Jr("0x45")].selection),c=t[Jr("0x8")][Jr("0x6b")](a),x[Jr("0x74")](),t.commands.get(Jr("0xe")).refresh(),t.commands.get(Jr("0xb"))[Jr("0x74")](),l=x[Jr("0x1c")],l!=r[Jr("0x1c")])return o[Jr("0x52")](a)&&x[Jr("0x4c")](r.value,a)?(s(r),a=o[Jr("0x36")](t[Jr("0x8")].document[Jr("0x77")]),void n[Jr("0x27")](a,{...d,commandReversedParams:[{value:l||null}]},[],"imageStylePreApply")):void(o[Jr("0x3e")](a)?n[Jr("0x27")](a,d,[],Jr("0x16")):n[Jr("0x22")](c,d,Jr("0x16")))}))}));for(const e of t[Jr("0x35")][Jr("0x4e")](Jr("0x14"))[Jr("0x33")])s[e[Jr("0x1a")]]=e[Jr("0x13")].toLowerCase();n[Jr("0x24")][Jr("0x49")]("formatBlock",Jr("0x4"),Jr("0x5b"),(()=>!1)),n[Jr("0x24")][Jr("0x49")](Jr("0x23"),Jr("0x16"),Jr("0x5b"),(()=>!1)),n[Jr("0x24")].registerCustomCallback(Jr("0x56"),Jr("0x16"),"join",(()=>!1)),n._suggestionFactory.registerCustomCallback(Jr("0x23"),"imageStylePreApply",Jr("0x26"),(()=>!1)),n[Jr("0x24")][Jr("0x49")]("formatBlock",Jr("0x4"),"discard",((t,e)=>{n[Jr("0x24")].getSuggestionCallback(Jr("0x23"),"",Jr("0x26"))(t,{commandName:e[Jr("0x2d")],commandParams:e[Jr("0x37")]})})),n[Jr("0x24")][Jr("0x49")]("formatBlock",Jr("0x4"),Jr("0x46"),c)}const x=[{type:Jr("0x23"),subType:Jr("0x4")},{type:Jr("0x76"),subType:"imageCaption"},{type:Jr("0x23"),subType:Jr("0x5f")},{type:Jr("0x76"),subType:Jr("0x5f")}];function a(t,e){const s=x[Jr("0x3a")]((({type:e,subType:n})=>t[Jr("0x2a")]==e&&t[Jr("0x4a")]==n)),r=x[Jr("0x3a")]((({type:t,subType:n})=>e[Jr("0x2a")]==t&&e[Jr("0x4a")]==n));if(s<0||r<0)return!1;const i=t[Jr("0x21")](),a=e.getFirstRange();if((0==s||1==s)&&2==r&&i[Jr("0x67")](a))return!0;if(2==s&&3==r){const t=n[Jr("0x28")](i,Jr("0x76")).filter((({suggestion:t,meta:e})=>e[Jr("0x1b")]&&Jr("0x5f")==t[Jr("0x4a")]));if(t[Jr("0x6")]>1&&a.end.isEqual(i[Jr("0x53")]))return!0;if(1==t[Jr("0x6")]&&(i.start.isEqual(a[Jr("0x54")])||i.end[Jr("0x12")](a.start)))return!0}if(3==s&&3==r&&i[Jr("0x53")][Jr("0x32")](a[Jr("0x53")])){const t=i[Jr("0x54")].nodeAfter,e=a.start[Jr("0x69")];return o[Jr("0x3e")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Jr("0x8")][Jr("0x45")][Jr("0xf")]((()=>{let e=!1;const s=Array[Jr("0x70")](t.model[Jr("0x45")][Jr("0x30")].getChangedMarkers());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Jr("0x39")](t);if(Jr("0x47")==s&&n[Jr("0x38")](a)){if(Jr("0x23")==i&&(Jr("0x4")==x||Jr("0x16")==x)){const t=n[Jr("0x59")](a);if(r[Jr("0x9")]){const s=t[Jr("0x21")]()[Jr("0x5d")]();if(o[Jr("0x3e")](s))continue;n.discardSuggestion(t),e=!0}}if(Jr("0x76")==i&&Jr("0xc")==x&&!r[Jr("0x9")]){const t=n[Jr("0x59")](a);t[Jr("0x5e")]&&t.next[Jr("0x4b")]&&(n[Jr("0x0")](t[Jr("0x5e")]),e=!0)}}}return e})),t[Jr("0x35")].has(Jr("0x3c"))&&n[Jr("0x44")](Jr("0x1"),((e,s)=>{const r=o[Jr("0x36")](t[Jr("0x8")][Jr("0x45")].selection);r[Jr("0xd")](Jr("0x25"))!=s[Jr("0x25")]&&t.model[Jr("0x58")]((()=>{n.markBlockFormat(r,{commandName:Jr("0x1"),commandParams:[s]})}))})),t[Jr("0x35")][Jr("0x2c")]("ImageTextAlternativeEditing")&&n[Jr("0x44")](Jr("0x63"),((e,s)=>{const r=o.getClosestSelectedImageElement(t[Jr("0x8")][Jr("0x45")].selection);(r[Jr("0x6a")](Jr("0x5c"))?r[Jr("0xd")](Jr("0x5c")):"")!=s[Jr("0x1e")]&&t[Jr("0x8")][Jr("0x58")]((()=>{n[Jr("0x27")](r,{commandName:"imageTextAlternative",commandParams:[s]})}))})),n[Jr("0x48")][Jr("0x3")]((t=>{if(x[Jr("0x43")]((({type:e,subType:n})=>t[Jr("0x2a")]==e&&t[Jr("0x4a")]==n)))return t[Jr("0x34")]?{}:void 0})),n[Jr("0x48")][Jr("0x3")]((t=>{if(Jr("0x76")==t[Jr("0x2a")]||Jr("0x2f")==t[Jr("0x2a")]){const e=t[Jr("0x5d")]();if(e&&e.is(Jr("0x55"),Jr("0x66")))return{type:"insertion"==t.type?Jr("0x3f"):"removeObject",element:e,quantity:1}}})),n[Jr("0x48")][Jr("0x3")]((t=>Jr("0x23")==t.type&&Jr("0x5f")==t[Jr("0x4a")]?{type:Jr("0x6c"),content:Jr("0x65")}:Jr("0x23")==t.type&&Jr("0x17")==t.subType?{type:Jr("0x6c"),content:Jr("0x29")}:void 0)),n._descriptionFactory[Jr("0x3")]((t=>{const{data:e}=t;if(e){if(Jr("0x72")==e[Jr("0x2d")]){const t=e[Jr("0x10")][0][Jr("0x1c")];return n=Jr("0x51")===t?Yo(r,"FORMAT_SIDE_IMAGE"):s[t]||t,{type:Jr("0x6c"),content:Yo(r,"*Format:* %0",n)}}if(Jr("0x63")==e[Jr("0x2d")]){const t=e[Jr("0x10")][0][Jr("0x1e")];return t?{type:Jr("0x6c"),content:Yo(r,Jr("0x2e"),'"'+t+'"')}:{type:Jr("0x6c"),content:Yo(r,"*Remove image text alternative*")}}if("resizeImage"==e[Jr("0x2d")]){const t=e[Jr("0x10")][0][Jr("0x25")];return t?{type:Jr("0x6c"),content:Yo(r,Jr("0x11"),t)}:{type:Jr("0x6c"),content:Yo(r,"*Reset image width*")}}}var n}))}}const Zr=["commandName","discard","commandParams","TrackChangesEditing","Users","locale","handleSuggestionDescription","format","getSuggestionCallback","replaceImageSource","getSelectedElement","_suggestionFactory","formatBlock","markBlockFormat","selection","subType","plugins","editor","handleReplaceImageCommand","enableCommand","afterInit","data","registerCustomCallback","author","has","_descriptionFactory","model","getAttribute","ImageEditing","accept","get","change"];var Yr,ti;Yr=Zr,ti=121,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0x1b")](){if(!this.editor.plugins[ei("0x1f")](ei("0x3")))return;const t=this[ei("0x18")][ei("0x17")][ei("0x5")]("TrackChangesEditing");t[ei("0x1a")](ei("0x10"),((t,e)=>this.handleReplaceImageCommand(t,e))),t[ei("0x12")][ei("0x1d")](ei("0x13"),ei("0x10"),ei("0x4"),t[ei("0x12")][ei("0xf")](ei("0x13"),null,ei("0x8"))),t._suggestionFactory[ei("0x1d")](ei("0x13"),ei("0x10"),"discard",t[ei("0x12")][ei("0xf")](ei("0x13"),null,ei("0x4"))),t[ei("0x0")].registerDescriptionCallback((t=>this[ei("0xd")](t)))}[ei("0x19")](t,e){const n=this.editor[ei("0x17")][ei("0x5")](ei("0xa")),o=this[ei("0x18")][ei("0x1")].document[ei("0x15")][ei("0x11")]();this[ei("0x18")].model[ei("0x6")]((()=>{let s=o[ei("0x2")]("src");const r=this[ei("0x18")][ei("0x17")].get(ei("0xb")).me;for(const t of n.getSuggestions({skipNotAttached:!0})){const e=t.getContainedElement();if(ei("0x10")===t[ei("0x16")]&&e===o){t[ei("0x1e")]!==r&&t.discard(),s=t[ei("0x1c")][ei("0x9")][0].source;break}}t(e),n[ei("0x14")](o,{commandName:ei("0x10"),commandParams:[{source:s}]},[],ei("0x10"))}))}[ei("0xd")](t){const{data:e}=t;if(e&&"replaceImageSource"===e[ei("0x7")]){const t="*Format:* replace image URL";return{type:ei("0xe"),content:Yo(this[ei("0x18")][ei("0xc")],t)}}}}const oi=["lowest","editor","commands","forEach","importWord","_trackChangesExecuted","listenTo","execute","_trackChangesValueDuringImport","TrackChangesEditing","collaboration_features","track_changes","bind","_handleImportedData","_setSuggestionData","value","trackChanges","high","enableCommand","Users","dataInsert","get","plugins"];var si,ri;si=oi,ri=175,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("0xe")]=!1}afterInit(){const t=this.editor,e=t.commands[ii("0x7")]("importWord"),n=t.commands.get("trackChanges");e&&(e.on(ii("0x10"),((t,[,e])=>{this._trackChangesValueDuringImport=n[ii("0x1")],e[ii("0x13")][ii("0x14")]=!this[ii("0x11")]}),{priority:ii("0x3")}),this.listenTo(e,ii("0x6"),this[ii("0x16")][ii("0x15")](this)),this[ii("0xf")](e,"dataInsert",(()=>{this[ii("0xe")]&&(n[ii("0x10")](),this[ii("0xe")]=!1)}),{priority:ii("0x9")}),t[ii("0x8")].get(ii("0x12"))[ii("0x4")](ii("0xd")))}_handleImportedData(t,e){const{suggestions:n}=e,o=this[ii("0xa")][ii("0xb")].get(ii("0x2")),s=o[ii("0x1")];this._trackChangesValueDuringImport!==s&&(o[ii("0x10")](),this._trackChangesExecuted=!0),n&&n[ii("0xc")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0xa")][ii("0x8")].get(ii("0x5")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0xd")}}};this[ii("0xa")][ii("0x8")][ii("0x7")](ii("0x12"))[ii("0x0")](s)}))}}const ai=["indentBlock","*Indent:* %0","locale","filter","document","has","afterInit","model","commandName","_descriptionFactory","*Outdent:* %0","outdentBlock","getItemLabel","editor","indent","IndentEditing","change","outdent","registerDescriptionCallback","getSelectedBlocks","format","enableCommand","plugins"];var ci,li;ci=ai,li=436,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{[di("0x7")](){const t=this[di("0xe")],e=t[di("0x0")].get("TrackChangesEditing");t[di("0x0")][di("0x6")](di("0x10"))&&(e[di("0x16")](di("0xf")),e[di("0x16")](di("0x12")));const n=t[di("0x3")];if(t.plugins[di("0x6")]("IndentBlock")){for(const n of[di("0x1"),"outdentBlock"])e[di("0x16")](n,(()=>{const o=Array.from(this.editor[di("0x8")][di("0x5")].selection[di("0x14")]())[di("0x4")]((t=>this[di("0xe")][di("0x8")].schema.checkAttribute(t,"blockIndent")));t[di("0x8")][di("0x11")]((()=>{for(const t of o)e.markBlockFormat(t,{commandName:n,commandParams:[{value:""}],formatGroupId:"indentBlock"})}))}));e[di("0xa")][di("0x13")]((t=>{const{data:o}=t;if(!o)return;if(di("0x1")!=o[di("0x9")]&&"outdentBlock"!=o[di("0x9")])return;const s=t.getItems()[0],r=e._descriptionFactory[di("0xd")](s);return di("0x1")==o[di("0x9")]?{type:di("0x15"),content:Yo(n,di("0x2"),r)}:di("0xc")==o.commandName?{type:di("0x15"),content:Yo(n,di("0xb"),r)}:void 0}))}}}var gi,mi,fi=["input","TrackChangesEditing","requires","get","editor","enableCommand","plugins"];gi=fi,mi=318,function(t){for(;--t;)gi.push(gi.shift())}(++mi);var hi=function(t,e){return fi[t-=0]};class pi extends t.Plugin{static get[hi("0x6")](){return[Ws.Input]}init(){this[hi("0x1")][hi("0x3")][hi("0x0")](hi("0x5"))[hi("0x2")](hi("0x4"))}}const bi=["hasAttribute","enableCommand","change","linkHref","getAttribute","isCollapsed","has","getRanges","LinkEditing","model","registerDescriptionCallback","markInlineFormat","link","plugins","*Set link:* %0","getFirstPosition","commandName","document","format","selection","afterInit","unlink","editor","TrackChangesEditing"];var Ei,_i;Ei=bi,_i=373,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{[Ti("0x7")](){const t=this[Ti("0x9")];if(!t[Ti("0x0")][Ti("0x11")](Ti("0x13")))return;const e=t[Ti("0x0")].get(Ti("0xa"));e[Ti("0xc")](Ti("0x17"),((n,o)=>{const s=t.model[Ti("0x4")].selection;let r=[];if(s[Ti("0x10")]){if(!s[Ti("0xb")]("linkHref"))return void n(o);{const e=(0,Ws.findAttributeRange)(s[Ti("0x2")](),Ti("0xe"),s.getAttribute(Ti("0xe")),t[Ti("0x14")]);r=[e]}}else r=Array.from(s[Ti("0x12")]());t[Ti("0x14")][Ti("0xd")]((()=>{for(const t of r)e.markInlineFormat(t,{commandName:Ti("0x17"),commandParams:[o]})}))})),e.enableCommand("unlink",(()=>{const n=this[Ti("0x9")][Ti("0x14")],o=n[Ti("0x4")][Ti("0x6")];n[Ti("0xd")]((()=>{let n=[];n=o[Ti("0x10")]?[(0,Ws.findAttributeRange)(o.getFirstPosition(),Ti("0xe"),o[Ti("0xf")](Ti("0xe")),t[Ti("0x14")])]:ms(Ti("0xe"),o.getFirstRange(),t[Ti("0x14")]);for(const t of n)e[Ti("0x16")](t,{commandName:Ti("0x8"),commandParams:[]})}))})),e._descriptionFactory[Ti("0x15")]((e=>{const{data:n}=e,o=t.locale;if(n){if(Ti("0x17")==n[Ti("0x3")]){const t=n.commandParams[0];return{type:Ti("0x5"),content:Yo(o,Ti("0x1"),'"'+t+'"')}}return Ti("0x8")==n[Ti("0x3")]?{type:Ti("0x5"),content:Yo(o,"*Remove link*")}:void 0}}))}}const yi=["from","forceValue","afterInit","checkChild","numberedList","TodoListEditing","commandName","ELEMENT_TODO_LIST","isObject","previousSibling","_descriptionFactory","outdentList","todoList","bulletedList","filter","slice","selection","format","enableCommand","*Check item*","replace","get","change","bulleted","todo","document","value","element","getAttribute","commands","add","model","before","createPositionAt","end","numbered","markBlockFormat","length","listIndent","has","ELEMENT_BULLETED_LIST","listItem","getSelectedBlocks","*Indent:* %0","editor","indentList","checkTodoList","plugins","nextSibling","ELEMENT_LIST_ITEM","todoListChecked","TrackChangesEditing","*Uncheck item*","name"];var ki,Ai;ki=yi,Ai=240,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const Ri=function(t,e){return yi[t-=0]};class vi extends t.Plugin{[Ri("0x20")](){const t=this[Ri("0x14")],e=t.locale;if(!t[Ri("0x17")].has("ListEditing"))return;const n=t[Ri("0x17")].get(Ri("0x1b")),o=t[Ri("0x17")][Ri("0xf")](Ri("0x23"));function s(e){return()=>{const o=t.model[Ri("0x1")].selection,s=t[Ri("0x5")][Ri("0x33")](e);if(s[Ri("0x2")])return void t.execute("paragraph",{});const r=e[Ri("0x2d")](0,-4),i=function(t,e,n){let o=Array[Ri("0x1e")](t)[Ri("0x2c")]((t=>{return e=t,(o=n)[Ri("0x21")](e.parent,"listItem")&&!o[Ri("0x26")](e);var e,o}));o=o[Ri("0x2c")]((t=>!t.is("element","listItem")||t[Ri("0x4")]("listType")!=e));const s=new Set;for(const t of o)t.is(Ri("0x3"),Ri("0x11"))?s[Ri("0x6")](Ii(t)):s[Ri("0x6")](t);return Array[Ri("0x1e")](s)}(o[Ri("0x12")](),r,t.model.schema);t.model[Ri("0x34")]((()=>{for(const t of i)n[Ri("0xc")](t,{commandName:e,commandParams:[{forceValue:!s[Ri("0x2")]}],formatGroupId:"blockName"},Si(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[Ri("0x1e")](t);const n=e.findIndex((t=>"listItem"!=t[Ri("0x1d")]));return n>-1&&(e=e[Ri("0x2d")](0,n)),e}(t[Ri("0x7")][Ri("0x1")][Ri("0x2e")][Ri("0x12")]()),s=t[Ri("0x7")].createRange(t[Ri("0x7")].createPositionAt(o[0],Ri("0x8")),t[Ri("0x7")][Ri("0x9")](o[o[Ri("0xd")]-1],Ri("0xa")));t.model[Ri("0x34")]((()=>{n[Ri("0xc")](s,{commandName:e,commandParams:[],formatGroupId:Ri("0xe")},function(t){const e=new Set;for(const n of t){let t=n[Ri("0x18")];for(;t&&t[Ri("0x4")](Ri("0xe"))>n[Ri("0x4")](Ri("0xe"));)e[Ri("0x6")](t),t=t[Ri("0x18")]}return Array[Ri("0x1e")](e)}(o))}))}}n[Ri("0x30")](Ri("0x22"),s(Ri("0x22"))),n[Ri("0x30")](Ri("0x2b"),s(Ri("0x2b"))),o&&n[Ri("0x30")](Ri("0x2a"),s(Ri("0x2a"))),n[Ri("0x30")](Ri("0x15"),r(Ri("0x15"))),n.enableCommand(Ri("0x29"),r(Ri("0x29"))),o&&n[Ri("0x30")](Ri("0x16"),(()=>{const e=t.commands[Ri("0x33")](Ri("0x16")),o=Array[Ri("0x1e")](e._selectedElements);o[Ri("0x2c")]((t=>t[Ri("0x4")](Ri("0x1a"))!=e.value)),t[Ri("0x7")][Ri("0x34")]((()=>{for(const t of o)n[Ri("0xc")](t,{commandName:Ri("0x16"),commandParams:[{forceValue:!e[Ri("0x2")]}]})}))})),n[Ri("0x28")].registerElementLabel(Ri("0x11"),(t=>Yo(e,Ri("0x19"),t))),n[Ri("0x28")].registerDescriptionCallback((t=>{const{data:n}=t;if(n){if("numberedList"==n[Ri("0x24")]||Ri("0x2b")==n.commandName||Ri("0x2a")==n.commandName)switch(n.commandName[Ri("0x32")]("List","")){case Ri("0x35"):return o(Yo(e,Ri("0x10")));case Ri("0xb"):return o(Yo(e,"ELEMENT_NUMBERED_LIST"));case Ri("0x0"):return o(Yo(e,Ri("0x25")))}if(Ri("0x15")==n[Ri("0x24")])return{type:"format",content:Yo(e,Ri("0x13"),Yo(e,"ELEMENT_LIST_ITEM"))};if(Ri("0x29")==n[Ri("0x24")])return{type:"format",content:Yo(e,"*Outdent:* %0",Yo(e,"ELEMENT_LIST_ITEM"))};if("checkTodoList"==n[Ri("0x24")])return n.commandParams[0][Ri("0x1f")]?{type:Ri("0x2f"),content:Yo(e,Ri("0x31"))}:{type:Ri("0x2f"),content:Yo(e,Ri("0x1c"))}}function o(t){return{type:Ri("0x2f"),content:Yo(e,"*Change to:* %0",t)}}}))}}function Ii(t){const e=t[Ri("0x4")](Ri("0xe"));if(0==e)return t;let n=t;for(;t[Ri("0x27")]&&t[Ri("0x27")].is(Ri("0x3"),Ri("0x11"));){const o=t.previousSibling[Ri("0x4")](Ri("0xe"));if(o==e)n=t[Ri("0x27")];else if(o<e)break;t=t[Ri("0x27")]}return n}function Si(t){const e=[];if(t.is(Ri("0x3"),Ri("0x11"))&&t[Ri("0x4")]("listIndent")>0){let n=t[Ri("0x18")];for(;n&&Ri("0x11")==n[Ri("0x1d")]&&n.getAttribute(Ri("0xe"))==t[Ri("0x4")]("listIndent");)e.push(n),n=n[Ri("0x18")]}return e}const Li=["_getTranslationKeyForListStyle","listItem","ListPropertiesEditing","commandName","forward","selection","toUpperCase","getListTypeFromListStyleType","length","startIndex","getSiblingNodes","backward","numbered","_LIST_","format","listReversed","editor","listStart","ListUtils","document","config","*Format:* set start index to %0","markMultiRangeBlockFormat","replace","map","_descriptionFactory","_getSuggestionBlocks","plugins","*Format:* set order to reversed","flat","bind","model","handleListReversedCommand","createRange","listStyle","listType","createPositionAt","handleListStartCommand","type","*Change to:* %0","unshift","before","TrackChangesEditing","_getSuggestionBlocksForListStyle","filter","locale","*Format:* set order to regular","getAttribute","getLastPosition","getSelectedBlocks","handleListStyleCommand","getFirstPosition","push","change","element","enableCommand","get","from","registerDescriptionCallback","ELEMENT_","commandParams","handleDescriptions","parent","afterInit","list.properties"];var Ni,Mi;Ni=Li,Mi=456,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[wi("0x3e")](){if(!this[wi("0xf")][wi("0x1a")].has(wi("0x1")))return;const t=this[wi("0xf")][wi("0x13")][wi("0x37")](wi("0x3f")),e=this[wi("0xf")].plugins[wi("0x37")](wi("0x29"));t.styles&&e[wi("0x36")](wi("0x21"),this[wi("0x31")][wi("0x1d")](this)),t.reversed&&e.enableCommand("listReversed",this.handleListReversedCommand.bind(this)),t.startIndex&&e[wi("0x36")](wi("0x10"),this[wi("0x24")][wi("0x1d")](this)),e[wi("0x18")][wi("0x39")](this[wi("0x3c")][wi("0x1d")](this))}[wi("0x31")](t,e={}){const n=this[wi("0xf")][wi("0x1a")][wi("0x37")]("TrackChangesEditing"),o=this._getSuggestionBlocksForListStyle();this[wi("0xf")][wi("0x1e")].change((()=>{n[wi("0x15")](o,{commandName:"listStyle",commandParams:[{type:e.type}],formatGroupId:wi("0x21")})}))}[wi("0x1f")](t,e={}){const n=this[wi("0xf")][wi("0x1a")][wi("0x37")](wi("0x29")),o=this._getSuggestionBlocks((t=>t.is("element","listItem")&&"numbered"===t[wi("0x2e")]("listType")));if(o[wi("0x7")]<1)return;const s=o[wi("0x17")]((t=>this.editor[wi("0x1e")][wi("0x20")](this[wi("0xf")].model[wi("0x23")](t,"before"),this[wi("0xf")][wi("0x1e")][wi("0x23")](t,0))));this.editor.model[wi("0x34")]((()=>{n[wi("0x15")](s,{commandName:"listReversed",commandParams:[{reversed:e.reversed}],formatGroupId:"listReversed"})}))}[wi("0x24")](t,e={}){const n=this[wi("0xf")].plugins[wi("0x37")](wi("0x29")),o=this[wi("0x19")]((t=>t.is(wi("0x35"),"listItem")&&wi("0xb")===t[wi("0x2e")](wi("0x22"))));if(o.length<1)return;const s=o.map((t=>this[wi("0xf")][wi("0x1e")][wi("0x20")](this[wi("0xf")][wi("0x1e")][wi("0x23")](t,wi("0x28")),this[wi("0xf")].model[wi("0x23")](t,0))));this[wi("0xf")][wi("0x1e")][wi("0x34")]((()=>{n[wi("0x15")](s,{commandName:wi("0x10"),commandParams:[{startIndex:e[wi("0x8")]}],formatGroupId:wi("0x10")})}))}handleDescriptions(t){const e=this[wi("0xf")][wi("0x2c")],{data:n}=t;if(!n)return;let o,s;switch(n[wi("0x2")]){case"listStyle":o=wi("0x26"),s={type:wi("0xd"),content:Yo(e,o,Yo(e,this[wi("0x40")](n[wi("0x3b")][0][wi("0x25")])))};break;case wi("0xe"):o=n[wi("0x3b")][0].reversed?wi("0x1b"):wi("0x2d"),s={type:wi("0xd"),content:Yo(e,o)};break;case wi("0x10"):o=wi("0x14"),s={type:wi("0xd"),content:Yo(e,o,n[wi("0x3b")][0][wi("0x8")])}}return s}[wi("0x2a")](){var t,e,n,o;const s=this[wi("0xf")][wi("0x1a")][wi("0x37")]("ListUtils");let r=Array[wi("0x38")](this.editor[wi("0x1e")][wi("0x12")][wi("0x4")][wi("0x30")]());return(null===(t=r[0])||void 0===t?void 0:t.is(wi("0x35"),wi("0x0")))&&r[wi("0x27")](...s[wi("0x9")](this[wi("0xf")][wi("0x1e")][wi("0x12")][wi("0x4")].getFirstPosition(),"backward")),(null===(e=r[r[wi("0x7")]-1])||void 0===e?void 0:e.is("element",wi("0x0")))&&r[wi("0x33")](...s[wi("0x9")](this[wi("0xf")].model[wi("0x12")][wi("0x4")][wi("0x2f")](),wi("0x3"))),r=[...new Set(r)],(null===(o=null===(n=this[wi("0xf")][wi("0x1e")][wi("0x12")][wi("0x4")][wi("0x32")]())||void 0===n?void 0:n[wi("0x3d")])||void 0===o?void 0:o.is(wi("0x35"),wi("0x0")))&&(r=r.filter((t=>t.is(wi("0x35"),wi("0x0"))))),r}_getSuggestionBlocks(t){const e=this.editor[wi("0x1a")][wi("0x37")]("ListUtils");let n=Array[wi("0x38")](this[wi("0xf")][wi("0x1e")].document.selection.getSelectedBlocks())[wi("0x2b")](t)[wi("0x17")]((t=>{const n=this[wi("0xf")][wi("0x1e")][wi("0x23")](t,0);return[...e[wi("0x9")](n,wi("0xa")),...e[wi("0x9")](n,wi("0x3"))]}))[wi("0x1c")]();return n=[...new Set(n)],n}[wi("0x40")](t){return wi("0x3a")+this[wi("0xf")][wi("0x1a")][wi("0x37")](wi("0x11"))[wi("0x6")](t)[wi("0x5")]()+wi("0xc")+t[wi("0x5")]()[wi("0x16")](/-/g,"_")}}const Fi=["MediaEmbedEditing","data","TrackChangesEditing","for","showSuggestionHighlights","enableCommand","downcastDispatcher","conversion","_descriptionFactory","media","mediaEmbed","locale","has","createEmptyElement","div","registerElementLabel","plugins","get","afterInit","high","editor","attribute:url:media","ELEMENT_MEDIA","stop","dataDowncast","options","elementToElement"];var Pi,Di;Pi=Fi,Di=434,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0x10")](){const t=this[Bi("0x12")];if(!t[Bi("0xe")][Bi("0xa")](Bi("0x19")))return;const e=t.plugins[Bi("0xf")](Bi("0x0")),n=t[Bi("0x9")];e[Bi("0x3")](Bi("0x8")),e[Bi("0x6")][Bi("0xd")](Bi("0x7"),(t=>Yo(n,Bi("0x14"),t))),t[Bi("0x5")][Bi("0x1")](Bi("0x16"))[Bi("0x18")]({model:Bi("0x7"),view:(t,{writer:e,options:n})=>{if(n[Bi("0x2")])return e[Bi("0xb")](Bi("0xc"))},converterPriority:Bi("0x11")}),t[Bi("0x1a")][Bi("0x4")].on(Bi("0x13"),((t,e,n)=>{n[Bi("0x17")][Bi("0x2")]&&t[Bi("0x15")]()}),{priority:Bi("0x11")})}}const Ui=["TrackChangesEditing","get","has","plugins","mention","MentionEditing","enableCommand"];var Gi,Hi;Gi=Ui,Hi=293,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.editor;t[zi("0x4")][zi("0x3")](zi("0x6"))&&t.plugins[zi("0x2")](zi("0x1"))[zi("0x0")](zi("0x5"))}}const Wi=["get","pageBreak","ELEMENT_PAGE_BREAK","PageBreakEditing","TrackChangesEditing","locale","has","registerElementLabel","editor","plugins","_descriptionFactory","afterInit"];var Ki,qi;Ki=Wi,qi=176,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const $i=function(t,e){return Wi[t-=0]};class Xi extends t.Plugin{[$i("0x3")](){const t=this[$i("0x0")];if(!t[$i("0x1")][$i("0xa")]($i("0x7")))return;t[$i("0x1")][$i("0x4")]("TrackChangesEditing").enableCommand($i("0x5"));const e=t[$i("0x1")].get($i("0x8")),n=t[$i("0x9")];e[$i("0x2")][$i("0xb")]($i("0x5"),(t=>Yo(n,$i("0x6"),t)))}}const Ji=["activeMarkers","span","selection","ELEMENT_PARAGRAPH","isObject","addClass","options","locale","getSelectedBlocks","createUIElement","schema","get","end","data","consumable","parent","*Insert:* %0","writer","filter","TrackChangesEditing","isLimit","highest","isTouching","consume","commandName","name","_descriptionFactory","enableCommand","includes","ck-suggestion-marker--active","blockName","markerRange","has","toViewPosition","registerDescriptionCallback","getItemLabel","*Change to:* %0","checkChild","registerElementLabel","downcastDispatcher","ck-suggestion-marker-split","markBlockFormat","type","plugins","insertParagraph","addMarker:suggestion:insertion","model","nodeAfter","paragraph","isBlock","markerName","insertion","afterInit","bindElementToMarker","mapper"];var Qi,Zi;Qi=Ji,Zi=241,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0x1f")](){const t=this.editor;if(!t[Yi("0x16")][Yi("0xb")]("Paragraph"))return;const e=t[Yi("0x29")],n=t[Yi("0x16")][Yi("0x2d")]("TrackChangesEditing");n[Yi("0x5")][Yi("0x11")](Yi("0x1b"),(t=>Yo(e,Yi("0x25"),t))),n[Yi("0x6")](Yi("0x1b"),((e,o={})=>{const s=t.model.document,r=o[Yi("0x24")]||s[Yi("0x24")],i=Array.from(r[Yi("0x2a")]())[Yi("0x34")]((t=>{return e=t,(n=this.editor.model.schema)[Yi("0x10")](e[Yi("0x31")],Yi("0x1b"))&&!n[Yi("0x26")](e)&&Yi("0x1b")!=e[Yi("0x4")];var e,n}));t[Yi("0x19")].change((()=>{for(const t of i)n[Yi("0x14")](t,{commandName:Yi("0x1b"),commandParams:[],formatGroupId:Yi("0x9")},fs(t))}))})),n[Yi("0x5")][Yi("0xd")]((t=>{const{data:n}=t;if(n&&Yi("0x1b")==n[Yi("0x3")])return{type:"format",content:Yo(e,Yi("0xf"),Yo(e,Yi("0x25")))}})),n[Yi("0x6")](Yi("0x17")),t.editing[Yi("0x12")].on(Yi("0x18"),ex(t),{priority:Yi("0x0")}),t[Yi("0x2f")].downcastDispatcher.on(Yi("0x18"),((e,n,o)=>{o[Yi("0x28")].showSuggestionHighlights&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0x0")});const o=n._descriptionFactory;o[Yi("0xd")]((n=>{if(Yi("0x1e")!==n[Yi("0x15")])return;const{start:s,end:r}=n.getFirstRange();if(!s[Yi("0x1")](r)||!s[Yi("0x1a")])return;const i=t[Yi("0x19")][Yi("0x2c")],x=s[Yi("0x1a")];return i[Yi("0x1c")](x)&&!i[Yi("0x36")](x)&&i[Yi("0x10")](x,"$text")?{type:Yi("0x1e"),content:Yo(e,Yi("0x32"),o[Yi("0xe")](x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Yi("0x16")][Yi("0x2d")](Yi("0x35")),i=o[Yi("0xa")].start,x=o[Yi("0xa")][Yi("0x2e")],a=t[Yi("0x19")][Yi("0x2c")];if(!i[Yi("0x1")](x)||!i.nodeAfter)return;const c=i[Yi("0x1a")];if(a[Yi("0x1c")](c)&&!a[Yi("0x36")](c)&&a.checkChild(c,"$text")){if(!s[Yi("0x30")][Yi("0x2")](o[Yi("0xa")],n[Yi("0x4")]))return;const t=s[Yi("0x33")][Yi("0x2b")](Yi("0x23"),{class:Yi("0x13")}),i=s.mapper[Yi("0xc")](x);e&&r[Yi("0x22")][Yi("0x7")](o[Yi("0x1d")])&&s[Yi("0x33")][Yi("0x27")](Yi("0x8"),t),s.writer.insert(i,t),s[Yi("0x21")][Yi("0x20")](t,o[Yi("0x1d")])}}}const nx=["locale","enableCommand","has","registerDescriptionCallback","RemoveFormatEditing","schema","afterInit","getAttributeProperties","commandName","document","*Remove all formatting*","model","get","_descriptionFactory","isFormatting","createRangeOn","TrackChangesEditing","selection","getRanges","removeFormat","markInlineFormat","isCollapsed","editor"];var ox,sx;ox=nx,sx=418,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[rx("0x2")](){const t=this[rx("0x12")];if(!t.plugins[rx("0x15")](rx("0x0")))return;const e=t.plugins[rx("0x8")](rx("0xc"));e[rx("0x14")]("removeFormat",(n=>{const o=t.model[rx("0x5")][rx("0xd")];o[rx("0x11")]?n():t[rx("0x7")].change((()=>{const n=Array.from(o[rx("0xe")]());for(const o of n)for(const n of o.getItems())xx(n,t[rx("0x7")][rx("0x1")])&&e[rx("0x10")](t[rx("0x7")][rx("0xb")](n),{commandName:rx("0xf"),commandParams:[]})}))})),e[rx("0x9")][rx("0x16")]((e=>{const{data:n}=e;if(n&&rx("0xf")==n[rx("0x4")])return{type:"format",content:Yo(t[rx("0x13")],rx("0x6"))}}))}}function xx(t,e){for(const[n]of t.getAttributes()){const t=e[rx("0x3")](n);if(t&&t[rx("0xa")])return!0}return!1}const ax=["plugins","enableCommand","goToPreviousRestrictedEditingException","discardSuggestion","acceptAllSuggestions","has","goToNextRestrictedEditingException","editor","TrackChangesEditing","acceptSuggestion","discardSelectedSuggestions","RestrictedEditingModeEditing","acceptSelectedSuggestions","afterInit"];var cx,lx;cx=ax,lx=418,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const dx=function(t,e){return ax[t-=0]};class ux extends t.Plugin{[dx("0x1")](){const t=this[dx("0x9")];if(!t.plugins[dx("0x7")](dx("0xd")))return;const e=t[dx("0x2")].get(dx("0xa"));e.enableCommand(dx("0x4")),e[dx("0x3")](dx("0x8"));const n=t.plugins.get(dx("0xd"));n[dx("0x3")]("trackChanges"),n.enableCommand(dx("0xb")),n[dx("0x3")](dx("0x5")),n.enableCommand(dx("0x6")),n[dx("0x3")]("discardAllSuggestions"),n[dx("0x3")](dx("0x0")),n[dx("0x3")](dx("0xc"))}}const gx=["includes","ELEMENT_LINE_BREAK","addMarker:suggestion","split","editor","requires","writer","get","deletion","span","enableCommand","markerName","bindElementToMarker","element","ck-suggestion-marker-","init","ck-suggestion-marker--active","getItems","plugins","showSuggestionHighlights","TrackChangesEditing","editing","toViewPosition","test","addClass","consumable","activeMarkers","markerRange","merge","shiftEnter","name","locale","addMarker:suggestion:deletion","options","_descriptionFactory","downcastDispatcher","mapper"];var mx,fx;mx=gx,fx=162,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{static get[hx("0x1c")](){return[nr.ShiftEnter]}[hx("0x1")](){const t=this[hx("0x1b")],e=t[hx("0x4")].get(hx("0x6"));e[hx("0x21")](hx("0xf")),t[hx("0x7")][hx("0x15")].on("addMarker:suggestion:insertion",bx(t),{priority:"high"}),t.editing.downcastDispatcher.on(hx("0x12"),bx(t),{priority:"high"}),t.data[hx("0x15")].on(hx("0x19"),((e,n,o)=>{o[hx("0x13")][hx("0x5")]&&bx(t,{showActiveMarker:!1})(e,n,o)})),e[hx("0x14")].registerElementLabel("softBreak",(e=>Yo(t[hx("0x11")],hx("0x18"),e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[hx("0x4")][hx("0x1e")](hx("0x6"));if(!s[hx("0xb")][hx("0x9")](o[hx("0xd")],n[hx("0x10")]))return;const i=t.model;for(const t of o[hx("0xd")][hx("0x3")]()){if(!t.is(hx("0x24"),"softBreak"))continue;const n=hx("0x1f")==o[hx("0x22")][hx("0x1a")](":")[1]?hx("0xe"):hx("0x1a"),x=s[hx("0x1d")].createUIElement(hx("0x20"),{class:hx("0x0")+n}),a=s[hx("0x16")][hx("0x8")](i.createPositionBefore(t));e&&r[hx("0xc")][hx("0x17")](o.markerName)&&s[hx("0x1d")][hx("0xa")](hx("0x2"),x),s[hx("0x1d")].insert(a,x),s[hx("0x16")][hx("0x23")](x,o[hx("0x22")])}}}const Ex=["format","value","selection","enableCommand","document","FORMAT_RESTRICTED_ENABLED","plugins","has","forceValue","change","editor","restrictedEditingException","locale","model","registerDescriptionCallback","FORMAT_RESTRICTED_DISABLED","TrackChangesEditing","from","_descriptionFactory"];var _x,Tx;_x=Ex,Tx=351,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{afterInit(){const t=this[Cx("0x1")],e=t[Cx("0x4")],n=t[Cx("0x3")];if(!t.plugins[Cx("0x11")]("StandardEditingModeEditing"))return;const o=t[Cx("0x10")].get(Cx("0x7")),s=Cx("0x2"),r=t.commands.get(s);o[Cx("0xd")](s,((t,n={})=>{const i=e[Cx("0xe")][Cx("0xc")];if(i.isCollapsed)return void t(n);const x=void 0!==n[Cx("0x12")]?n.forceValue:!r[Cx("0xb")];e[Cx("0x0")]((()=>{const t=Array[Cx("0x8")](i.getRanges());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o.markInlineFormat(e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Cx("0x9")][Cx("0x5")]((t=>{const{data:e}=t;if(e&&e.commandName==s)return e.commandParams[0].forceValue?{type:Cx("0xa"),content:Yo(n,Cx("0xf"))}:{type:"format",content:Yo(n,Cx("0x6"))}}))}}const kx=["includes","modelElements","format","classes","isBlock","push","DataSchema","editor","createRangeOn","getSelectedBlocks","toLowerCase","forceValue","element","normalizeConfig","plugins","config","change","_descriptionFactory","style","value","commandParams","StyleUtils","Style","_getStyleDefinition","*Format:* %0","style.definitions","style:","getRanges","has","TrackChangesEditing","from","enabledStyles","commands","markBlockFormat","selection","registerDescriptionCallback","add","name","find","every","get","getItems","locale","styleName","_getRangesWithClasses","commandName","isCollapsed","model"];var Ax,Rx;Ax=kx,Rx=391,function(t){for(;--t;)Ax.push(Ax.shift())}(++Rx);const vx=function(t,e){return kx[t-=0]};class Ix extends t.Plugin{afterInit(){const t=this[vx("0x0")];if(!t[vx("0x7")][vx("0x15")](vx("0xf")))return;const e=t[vx("0x19")][vx("0x21")](vx("0xb")),n=t.plugins.get(vx("0x16")),o=t[vx("0x23")],s=t[vx("0x7")][vx("0x21")](vx("0x2f")),r=t[vx("0x7")][vx("0x21")](vx("0xe"))[vx("0x6")](s,t[vx("0x8")][vx("0x21")](vx("0x12")));n.enableCommand(vx("0xb"),((o,{styleName:i})=>{const x=t[vx("0x28")].document[vx("0x1b")],a=this[vx("0x10")](i,r);if(!a)return;if(!e[vx("0x18")][vx("0x29")](i))return;if(x[vx("0x27")]&&!a[vx("0x2d")])return void o({styleName:i});const c=!e[vx("0xc")][vx("0x29")](a[vx("0x1e")]);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[vx("0x29")](o[vx("0x1e")])){n[vx("0x1d")](o);break}}return n}(x[vx("0x2")](),a[vx("0x2a")]);t[vx("0x28")][vx("0x9")]((()=>{for(const t of e)n[vx("0x1a")](t,{commandName:vx("0xb"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:vx("0x13")+i})}))}else{let e=Array[vx("0x17")](x[vx("0x14")]());if(!c){const n=Array[vx("0x17")](s.getDefinitionsForView(a[vx("0x5")],!1))[0][vx("0x28")],o=[];for(const s of e){const e=this[vx("0x25")](t.model,s,a[vx("0x2c")],n);o[vx("0x2e")](...e)}e=o}t[vx("0x28")][vx("0x9")]((()=>{for(const t of e)n.markInlineFormat(t,{commandName:vx("0xb"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[vx("0xa")][vx("0x1c")]((t=>{const{data:e}=t;if(e&&vx("0xb")===e[vx("0x26")])return e[vx("0xd")][0][vx("0x4")]?{type:"format",content:Yo(o,vx("0x11"),e[vx("0xd")][0].styleName.toLowerCase())}:{type:vx("0x2b"),content:Yo(o,"*Remove format:* %0",e[vx("0xd")][0][vx("0x24")][vx("0x3")]())}}))}[vx("0x10")](t,e){let n=e.block[vx("0x1f")]((e=>e.name===t));return n||(n=e.inline[vx("0x1f")]((e=>e[vx("0x1e")]===t))),n}[vx("0x25")](t,e,n,o){const s=[];for(const r of e[vx("0x22")]()){const e=r.getAttribute(o);e&&n[vx("0x20")]((t=>e[vx("0x2c")][vx("0x29")](t)))&&s[vx("0x2e")](t[vx("0x1")](r))}return s}}const Sx=["join","model","removeTableColumn","above","oldRange","_setupColumnsRowsFixing","getCellLocation","registerElementLabel","getChangedMarkers","getSelectionAffectedTableCells","maxRow","values","length","table","fromRange","from","_getSuggestionCoords","createTableWalker","toLowerCase","startsWith","getAttribute","$textProxy","ELEMENT_TABLE_ROW_WITH_TEXT","get","start","execute","ELEMENT_TABLE_COLUMN","end","item","refresh","isInContent","getContainedElement","colspan","getItems","forceValue","registerDescriptionCallback","accept","last","has","hasAttribute","ELEMENT_TABLE_COLUMN_WITH_TEXT","change:data","tableCell","_tableSuggestions","getFirstRange","element","ELEMENT_TABLE_WITH_TEXT","TrackChangesEditing","first","getChanges","data","_getCoordsForCells","createRangeOn","insertion","low","nodeAfter","name","order","includes","some","document","getRowIndexes","mapper","commands","minRow","enableCommand","MIN_SAFE_INTEGER","map","afterInit","getColumnIndexes","locale","isEqual","findAncestor","removeClass","registerCustomCallback","isTouching","$graveyard","tablePaste","batch","_splitMarkerName","getRanges","deletion","insertTableColumnLeft","createPositionAt","editor","isArray","addRange","TableEditing","max","getSuggestion","insertTableRowAbove","addMarker:suggestion","substr","markMultiRangeInsertion","setSelection","enqueueChange","registerPostFixer","subType","classes","_tablePostFixingSubtypes","plugins","_acceptFormatSuggestionCallbackFactory","type","push","position","span","markMultiRangeDeletion","*Insert:* %0","detach","left","selectTableColumn","selectTableRow","options","_descriptionFactory","getChildren","writer","rowspan","discard","_suggestionFactory","insert","tableColumn","every","change","TableUtils","addClass","root","filter","MAX_SAFE_INTEGER","insertTableColumnRight","tableRow","insertTable","highest","min","rootName","minColumn","removeTableRow","*Remove:* %0","add","cell","differ"];var Lx,Nx;Lx=Sx,Nx=141,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._tablePostFixingSubtypes=["tableRow",Mx("0x77")],this[Mx("0x2a")]=new Set}[Mx("0x43")](){const t=this[Mx("0x53")],e=t[Mx("0x0")][Mx("0x3b")].selection;if(!t.plugins[Mx("0x25")](Mx("0x56")))return;const n=t[Mx("0x45")],o=t.plugins[Mx("0x16")](Mx("0x2e")),s=t.plugins[Mx("0x16")](Mx("0x7a"));o._descriptionFactory[Mx("0x6")](Mx("0xc"),(t=>Yo(n,"ELEMENT_TABLE",t))),this[Mx("0x4")](),o.enableCommand(Mx("0x81")),o.enableCommand(Mx("0x6e")),o[Mx("0x40")](Mx("0x6d"));for(const n of[Mx("0x59"),"insertTableRowBelow"]){const r=t[Mx("0x3e")][Mx("0x16")](n);o[Mx("0x40")](n,(n=>{t.model.change((t=>{n();const i=Mx("0x2")===r[Mx("0x38")],x=s.getSelectionAffectedTableCells(e),a=s[Mx("0x3c")](x),c=i?a[Mx("0x2f")]-1:a[Mx("0x24")]+1,l=x[0][Mx("0x47")](Mx("0xc")),d=s[Mx("0x10")](l,{startRow:c,endRow:c}),u=Array[Mx("0xe")](d)[Mx("0x42")]((e=>t[Mx("0x33")](e[Mx("0x89")])));o[Mx("0x5c")](u,Mx("0x80"))}))}))}for(const n of[Mx("0x51"),Mx("0x7f")]){const r=t.commands[Mx("0x16")](n);o.enableCommand(n,(n=>{t[Mx("0x0")][Mx("0x79")]((t=>{n();const i=Mx("0x6c")===r[Mx("0x38")],x=s[Mx("0x8")](e),a=s[Mx("0x44")](x),c=i?a[Mx("0x2f")]-1:a[Mx("0x24")]+1,l=x[0][Mx("0x47")](Mx("0xc")),d=s[Mx("0x10")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[Mx("0xe")](d)[Mx("0x42")]((e=>t.createRangeOn(e[Mx("0x89")])));o[Mx("0x5c")](u,Mx("0x77"))}))}))}for(const n of[Mx("0x86"),Mx("0x1")]){const r=n[Mx("0x5b")](11),i=r[Mx("0x11")](),x=i[Mx("0x5b")](0,3)+Mx("0x68"),a="table"+r,c=Mx("0x83")+r,l=Mx("0x57")+r;o[Mx("0x40")](n,(()=>{t[Mx("0x0")].change((t=>{const r=s[Mx("0x8")](e),d=r[0][Mx("0x47")](Mx("0xc"));let u;if("removeTableRow"==n){const t=s[Mx("0x3c")](r);u={startRow:t[Mx("0x2f")],endRow:t[Mx("0x24")],includeAllSlots:!0}}else{const t=s.getColumnIndexes(r);u={startColumn:t[Mx("0x2f")],endColumn:t[Mx("0x24")],includeAllSlots:!0}}const g=s[Mx("0x10")](d,u),m=Array[Mx("0xe")](g).map((({cell:t})=>t)),f=Ox(m[Mx("0x7d")]((t=>t[Mx("0x26")](x)))),h=Ox(m[Mx("0x7d")]((t=>!t[Mx("0x26")](x))))[Mx("0x42")]((e=>t[Mx("0x33")](e))),p=o[Mx("0x69")](h,a);if(p&&("tableRow"==p[Mx("0x60")]||Mx("0x77")==p[Mx("0x60")])){const e=this._getSuggestionCoords(p);for(const n of f){const o=t[Mx("0x33")](n),r=s[Mx("0x5")](n),a=n.getAttribute(x)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+a<=u&&p[Mx("0x55")](o)}}}))}))}function r(n){const o=Array[Mx("0xe")](e[Mx("0x4f")]())[Mx("0x42")]((t=>i.LiveRange[Mx("0xd")](t)));t[Mx("0x0")][Mx("0x79")]((e=>{const s=e[Mx("0x4d")];n=n.filter((t=>Mx("0x4b")!=t[Mx("0x7c")][Mx("0x84")])),e[Mx("0x5d")](n),t[Mx("0x3e")][Mx("0x16")](Mx("0x86"))[Mx("0x1c")](),t.execute(Mx("0x86"),{forceDefaultExecution:!0}),t[Mx("0x0")].enqueueChange((()=>{t[Mx("0x0")][Mx("0x5e")](s,(t=>{const e=o[Mx("0x7d")]((t=>"$graveyard"!=t.root[Mx("0x84")]));e[Mx("0xb")]>0&&t[Mx("0x5d")](e);for(const t of o)t[Mx("0x6b")]()}))}))}))}function a(n){t[Mx("0x0")][Mx("0x79")]((o=>{const s=Array[Mx("0xe")](e.getRanges())[Mx("0x42")]((t=>i.LiveRange[Mx("0xd")](t))),r=[];for(const t of n)for(const e of t.getItems({shallow:!0}))r[Mx("0x66")](e);for(const e of r)"$graveyard"!=e.root[Mx("0x84")]&&(o[Mx("0x5d")](o[Mx("0x52")](e,0)),t[Mx("0x3e")].get(Mx("0x1"))[Mx("0x1c")](),t.execute(Mx("0x1"),{forceDefaultExecution:!0}));const x=s[Mx("0x7d")]((t=>Mx("0x4b")!=t[Mx("0x7c")][Mx("0x84")]));x[Mx("0xb")]>0&&o[Mx("0x5d")](x);for(const t of s)t[Mx("0x6b")]()}))}function c(t,e){return e[Mx("0x78")]((e=>t.some((t=>t.end[Mx("0x46")](e[Mx("0x17")])||e.end[Mx("0x46")](t[Mx("0x17")])))))}function l(t,e){return t.some((t=>e[Mx("0x3a")]((e=>t[Mx("0x1a")][Mx("0x4a")](e.start)))))}t[Mx("0x31")].downcastDispatcher.on(Mx("0x5a"),((t,e,n)=>{if(!n[Mx("0x6f")].showSuggestionHighlights)return;const o=e[Mx("0x1b")];if(!o)return;const s=n[Mx("0x3d")].toViewElement(o);function r(t){return Array[Mx("0x54")](t)?t:[t]}s&&Mx("0x29")===o[Mx("0x37")]&&(0,x.setHighlightHandling)(s,n[Mx("0x72")],((t,e,n)=>n[Mx("0x7b")](r(e[Mx("0x61")]),t)),((t,e,n)=>n[Mx("0x48")](r(e.classes),t)))}),{priority:Mx("0x82")}),o[Mx("0x70")][Mx("0x22")]((t=>{if(Mx("0x34")!=t[Mx("0x65")]&&"deletion"!=t[Mx("0x65")])return;const e=t[Mx("0x1e")]();if(null!=e&&e.is(Mx("0x2c"),Mx("0xc"))){if(Mx("0x34")==t[Mx("0x65")]){const e=t.getItems()[Mx("0x7d")]((t=>t.is(Mx("0x14")))).map((t=>t[Mx("0x31")]));if(e.length)return{type:"insertion",content:Yo(n,Mx("0x6a"),Yo(n,Mx("0x2d"),'"'+e[Mx("0x8b")](" ")+'"'))}}if(Mx("0x50")==t[Mx("0x65")]){const e=t[Mx("0x20")]()[Mx("0x7d")]((t=>t.is("$textProxy")))[Mx("0x42")]((t=>t[Mx("0x31")]));if(e[Mx("0xb")])return{type:Mx("0x50"),content:Yo(n,Mx("0x87"),Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Mx("0x8b")](" ")+'"'))}}}})),o[Mx("0x70")][Mx("0x22")]((t=>{if(Mx("0x80")==t[Mx("0x60")]){const e=t[Mx("0x20")]()[Mx("0x7d")]((t=>t.is(Mx("0x14")))).map((t=>t.data)),o=this[Mx("0xf")](t),s=o[Mx("0x9")]-o[Mx("0x3f")]+1;if(Mx("0x34")==t.type)return e[Mx("0xb")]?{type:Mx("0x34"),content:Yo(n,Mx("0x6a"),Yo(n,Mx("0x15"),[s,'"'+e.join(" ")+'"']))}:{type:Mx("0x34"),content:Yo(n,"*Insert:* %0",Yo(n,"ELEMENT_TABLE_ROW",s))};if(Mx("0x50")==t[Mx("0x65")])return e[Mx("0xb")]?{type:Mx("0x50"),content:Yo(n,Mx("0x87"),Yo(n,Mx("0x15"),[s,'"'+e[Mx("0x8b")](" ")+'"']))}:{type:Mx("0x50"),content:Yo(n,Mx("0x87"),Yo(n,"ELEMENT_TABLE_ROW",s))}}if(Mx("0x77")==t[Mx("0x60")]){const e=t[Mx("0x20")]()[Mx("0x7d")]((t=>t.is("$textProxy")))[Mx("0x42")]((t=>t[Mx("0x31")])),o=this[Mx("0xf")](t),s=o.maxColumn-o[Mx("0x85")]+1;if("insertion"==t[Mx("0x65")])return e[Mx("0xb")]?{type:Mx("0x34"),content:Yo(n,"*Insert:* %0",Yo(n,Mx("0x27"),[s,'"'+e.join(" ")+'"']))}:{type:Mx("0x34"),content:Yo(n,Mx("0x6a"),Yo(n,"ELEMENT_TABLE_COLUMN",s))};if(Mx("0x50")==t[Mx("0x65")])return e[Mx("0xb")]?{type:Mx("0x50"),content:Yo(n,"*Remove:* %0",Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e[Mx("0x8b")](" ")+'"']))}:{type:"deletion",content:Yo(n,Mx("0x87"),Yo(n,Mx("0x19"),s))}}})),o._suggestionFactory[Mx("0x49")]("insertion",Mx("0x80"),Mx("0x74"),r),o[Mx("0x75")].registerCustomCallback("deletion",Mx("0x80"),Mx("0x23"),r),o[Mx("0x75")][Mx("0x49")](Mx("0x34"),Mx("0x77"),Mx("0x74"),a),o[Mx("0x75")].registerCustomCallback(Mx("0x50"),Mx("0x77"),Mx("0x23"),a),o[Mx("0x75")][Mx("0x49")](Mx("0x34"),Mx("0x77"),Mx("0x8b"),c),o[Mx("0x75")][Mx("0x49")]("deletion",Mx("0x77"),"join",c),o[Mx("0x75")][Mx("0x49")](Mx("0x34"),Mx("0x80"),"join",l),o[Mx("0x75")][Mx("0x49")](Mx("0x50"),Mx("0x80"),Mx("0x8b"),l)}[Mx("0x64")](){const t=this.editor,e=t[Mx("0x0")].document.selection;return(n,o)=>{t[Mx("0x0")][Mx("0x79")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0].end.nodeBefore;x&&x[0]&&!1===x[0][Mx("0x21")]&&(a=n[0].start[Mx("0x36")]);const c=s.createRangeIn(a);if(Mx("0x4b")==c[Mx("0x7c")].rootName)return;const l=Array[Mx("0xe")](e[Mx("0x4f")]())[Mx("0x42")]((t=>i.LiveRange.fromRange(t)));s[Mx("0x5d")](c),t[Mx("0x3e")][Mx("0x16")](r)[Mx("0x1c")](),x[Mx("0x66")]({forceDefaultExecution:!0}),t[Mx("0x18")](r,...x);const d=l[Mx("0x7d")]((t=>Mx("0x4b")!=t[Mx("0x7c")][Mx("0x84")]));d[Mx("0xb")]>0&&s[Mx("0x5d")](d);for(const t of l)t[Mx("0x6b")]()}))}}[Mx("0x32")](t){const e=this[Mx("0x53")][Mx("0x63")][Mx("0x16")](Mx("0x7a"));let n=Number[Mx("0x7e")],o=Number[Mx("0x41")],s=Number[Mx("0x7e")],r=Number.MIN_SAFE_INTEGER;for(const i of t){if("$graveyard"==i.root.rootName)continue;const{row:t,column:x}=e[Mx("0x5")](i),a=i[Mx("0x26")](Mx("0x73"))?i[Mx("0x13")](Mx("0x73"))-1:0,c=i[Mx("0x26")](Mx("0x1f"))?i.getAttribute(Mx("0x1f"))-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.editor,e=t.plugins[Mx("0x16")]("TrackChangesEditing"),n=t[Mx("0x63")].get(Mx("0x7a"));t[Mx("0x0")][Mx("0x3b")].on(Mx("0x28"),(()=>{const n=Array[Mx("0xe")](t[Mx("0x0")][Mx("0x3b")][Mx("0x8a")][Mx("0x7")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Mx("0x4e")](t);if("suggestion"!=n)continue;if(null!=o[Mx("0x3")])continue;const i=e[Mx("0x58")](s);this[Mx("0x62")][Mx("0x39")](r)&&this[Mx("0x2a")][Mx("0x88")](i)}}),{priority:Mx("0x35")});const o=(t,e)=>{let o=!1;const s=e[Mx("0x33")](t),r=t[Mx("0x47")](Mx("0xc")),i=n[Mx("0x5")](t);for(const e of this[Mx("0x2a")]){const n=e[Mx("0x60")],x=n[Mx("0x12")](Mx("0x4c")),a=n[Mx("0x5b")](x?10:5),c=a[Mx("0x11")](),l=c[Mx("0x5b")](0,3)+Mx("0x68"),d="min"+a,u=Mx("0x57")+a;if(!e[Mx("0x1d")])continue;if(r!=e[Mx("0x2b")]()[Mx("0x17")][Mx("0x47")](Mx("0xc")))continue;if(e.isIntersectingWithRange(s))continue;const g=t.hasAttribute(l)?t[Mx("0x13")](l)-1:0,m=this[Mx("0xf")](e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e[Mx("0x55")](s),o=!0)}return o};t[Mx("0x0")].document[Mx("0x5f")]((e=>{let n=!1;for(const s of t.model[Mx("0x3b")].differ[Mx("0x30")]())if(Mx("0x76")==s[Mx("0x65")])if(Mx("0x80")==s.name)for(const t of s.position.nodeAfter[Mx("0x71")]())n=n||o(t,e);else Mx("0x29")==s[Mx("0x37")]&&(n=n||o(s[Mx("0x67")].nodeAfter,e));return n}))}_getSuggestionCoords(t){return this[Mx("0x32")](t.getRanges()[Mx("0x42")]((t=>t[Mx("0x17")][Mx("0x36")])))}}function Ox(t){return Array[Mx("0xe")](new Set(t)[Mx("0xa")]())}const Fx=["createTableWalker","getSuggestions","accept","refresh","table","return","deletion","isInContent","getRanges","_areSelectedCellsMergable","fromRange","containsRange","size","createRangeOn","root","insertion","mergeTableCells","stop","format","model","mergeTableCellRight","editor","change","getSelectionAffectedTableCells","document","getCellLocation","TableUtils","selection","highest","markBlockFormat","type","getAncestors","rootName","subType","_suggestionFactory","mergeTableCellUp","value","cell","locale","forceDefaultExecution","has","horizontally","afterInit","mergeTableCellDown","registerDescriptionCallback","_areMergableCells","tableCell","_acceptFormatSuggestionCallbackFactory","element","splitTableCellVertically","enableCommand","setSelection","map","length","TableEditing","execute","from","getFirstPosition","filter","plugins","commandName","formatBlock","trackChanges","_descriptionFactory","registerCustomCallback","mergeTableCellLeft","$graveyard","splitTableCellHorizontally","push","author","TrackChangesEditing","get","commands","findAncestor"];var Px,Dx;Px=Fx,Dx=131,function(t){for(;--t;)Px.push(Px.shift())}(++Dx);const Bx=function(t,e){return Fx[t-=0]};class jx extends t.Plugin{static get requires(){return[wx]}[Bx("0x3b")](){const t=this[Bx("0x26")],e=t.model.document[Bx("0x2c")],n=t[Bx("0x37")];if(!t[Bx("0x2")][Bx("0x39")](Bx("0x47")))return;const o=t[Bx("0x2")].get(Bx("0xd")),s=t[Bx("0x2")].get(Bx("0x2b")),r=t[Bx("0x2")][Bx("0xe")](wx);r._tablePostFixingSubtypes[Bx("0xb")]("mergeTableCells"),o[Bx("0x43")](Bx("0x21"),(()=>{const e=s[Bx("0x28")](t[Bx("0x24")].document[Bx("0x2c")]);t[Bx("0x24")].change((()=>{o.markMultiRangeBlockFormat(e,{commandName:Bx("0x21"),commandParams:[]},[],Bx("0x21"))}))})),t.commands[Bx("0xe")](Bx("0x21")).on(Bx("0x48"),((e,n)=>{t[Bx("0xf")][Bx("0xe")](Bx("0x5"))[Bx("0x35")]&&(n[Bx("0x46")]>0&&n[n[Bx("0x46")]-1]&&n[n[Bx("0x46")]-1][Bx("0x38")]||o._isForcedDefaultExecutionBlock||this[Bx("0x1a")]()||e[Bx("0x22")]())}),{priority:Bx("0x2d")});for(const e of[Bx("0x34"),Bx("0x25"),Bx("0x3c"),Bx("0x8")]){const n=t.commands.get(e);o[Bx("0x43")](e,(()=>{const e=t[Bx("0x24")].document[Bx("0x2c")][Bx("0x0")]()[Bx("0x30")]().find((t=>t.is(Bx("0x41"),"tableCell"))),s=n.value;t.model[Bx("0x27")]((()=>{o.markMultiRangeBlockFormat([e,s],{commandName:Bx("0x21"),commandParams:[]},[],Bx("0x21"))}))}))}for(const e of[Bx("0x42"),Bx("0xa")]){const n=t.commands[Bx("0xe")](e);o[Bx("0x43")](e,(()=>{const r=s[Bx("0x28")](t[Bx("0x24")][Bx("0x29")][Bx("0x2c")])[0],i=r[Bx("0x10")](Bx("0x15")),{column:x,row:a}=s[Bx("0x2a")](r);let c=[];if(Bx("0x3a")==n.direction){const t=s[Bx("0x11")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0x49")](t)[Bx("0x45")]((t=>t[Bx("0x36")]))}else{const t=s[Bx("0x11")](i,{column:x,includeAllSlots:!0});c=Array.from(t)[Bx("0x45")]((t=>t[Bx("0x36")]))}t[Bx("0x24")][Bx("0x27")]((t=>{o[Bx("0x2e")](t[Bx("0x1e")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[Bx("0x6")][Bx("0x3d")]((t=>{const{data:e}=t;if(e)return Bx("0x21")==e.commandName?{type:Bx("0x23"),content:Yo(n,"*Merge cells*")}:void 0})),o[Bx("0x6")][Bx("0x3d")]((t=>{const{data:e}=t;if(e)return"splitTableCellVertically"==e[Bx("0x3")]?{type:"format",content:Yo(n,"*Split cell:* vertically")}:Bx("0xa")==e[Bx("0x3")]?{type:Bx("0x23"),content:Yo(n,"*Split cell:* horizontally")}:void 0}));const x=r[Bx("0x40")]();for(const t of["mergeTableCellUp",Bx("0x25"),"mergeTableCellDown","mergeTableCellLeft"])o[Bx("0x33")][Bx("0x7")]("formatBlock",t,Bx("0x13"),x);for(const t of[Bx("0x42"),"splitTableCellHorizontally"])o[Bx("0x33")][Bx("0x7")](Bx("0x4"),t,Bx("0x13"),x);o[Bx("0x33")].registerCustomCallback(Bx("0x4"),Bx("0x21"),Bx("0x13"),(n=>{t.model.change((o=>{const s=Array[Bx("0x49")](e[Bx("0x19")]())[Bx("0x45")]((t=>i.LiveRange[Bx("0x1b")](t)));o[Bx("0x44")](n),t[Bx("0xf")][Bx("0xe")](Bx("0x21"))[Bx("0x14")](),t.execute(Bx("0x21"),{forceDefaultExecution:!0});const r=s[Bx("0x1")]((t=>Bx("0x9")!=t[Bx("0x1f")][Bx("0x31")]));r[Bx("0x46")]>0&&o[Bx("0x44")](r);for(const t of s)t.detach()}))}));for(const e of[Bx("0x34"),Bx("0x3c"),Bx("0x8"),Bx("0x25")]){const n=t.commands[Bx("0xe")](e);n.on("set:isEnabled",((e,o,s)=>{if(s){const o=t[Bx("0x24")][Bx("0x29")].selection.getFirstPosition()[Bx("0x30")]().find((t=>t.is(Bx("0x41"),Bx("0x3f"))));this[Bx("0x3e")](n.value,o)||(e[Bx("0x16")]=!1,e.stop())}}),{priority:"low"})}}_areSelectedCellsMergable(){const t=this[Bx("0x26")][Bx("0xf")][Bx("0xe")](Bx("0x21")),e=this.editor.plugins[Bx("0xe")](Bx("0x2b"));if(!t.isEnabled)return!1;const n=e[Bx("0x28")](this[Bx("0x26")][Bx("0x24")].document[Bx("0x2c")]);for(const t of n)for(const e of n)if(t!=e&&!this[Bx("0x3e")](t,e))return!1;return!0}[Bx("0x3e")](t,e){const n=this[Bx("0x26")].plugins[Bx("0xe")](Bx("0xd")),o=this[Bx("0x26")][Bx("0x24")][Bx("0x1e")](t),s=this[Bx("0x26")][Bx("0x24")][Bx("0x1e")](e),r=new Set,i=new Set;for(const t of n[Bx("0x12")]())if((Bx("0x20")==t[Bx("0x2f")]||Bx("0x17")==t[Bx("0x2f")]||Bx("0x21")==t[Bx("0x32")])&&t[Bx("0x18")])for(const e of t[Bx("0x19")]())e.containsRange(o,!0)&&r.add(t[Bx("0x2f")]+":"+t[Bx("0xc")].id),e[Bx("0x1c")](s,!0)&&i.add(t[Bx("0x2f")]+":"+t.author.id);if(r[Bx("0x1d")]!=i[Bx("0x1d")])return!1;for(const t of r)if(!i.has(t))return!1;return!0}}const Ux=["accept","getAttribute","markerNameToElements","highest","setTableColumnHeader","setTableRowHeader","editor","TrackChangesEditing","FORMAT_REGULAR_COLUMN","requires","locale","ck-suggestion-marker--active","_acceptFormatSuggestionCallbackFactory","TableEditing","data","options","formatBlock","end","unbindElementFromMarkerName","index","_splitMarkerName","name","getSuggestion","createTableWalker","registerCustomCallback","headingRows","format","headingColumns","getRowIndexes","removeClass","model","table","consumable","downcastDispatcher","createPositionAfter","stop","parent","addClass","first","cell","addMarker:suggestion","commandName","mapper","markerRange","removeAttribute","findAncestor","document","markerName","createPositionBefore","FORMAT_HEADER_COLUMN","change","*Format:* %0","last","editing","from","writer","plugins","TableUtils","toViewElement","getSelectionAffectedTableCells","FORMAT_HEADER_ROW","getCellLocation","selection","createRange","get","commandParams","FORMAT_REGULAR_ROW","bindElementToMarker","enableCommand","_descriptionFactory","getChild","forceValue","markBlockFormat","data-suggestion","ck-suggestion-marker-","_suggestionFactory","nodeAfter","start","value","showSuggestionHighlights","removeMarker:suggestion","childCount"];var Gx,Hx;Gx=Ux,Hx=142,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("0x1f")](){return[wx]}afterInit(){const t=this[zx("0x1c")];if(!t[zx("0x4e")].has(zx("0x23")))return;const e=t[zx("0x20")],n=t[zx("0x4e")][zx("0x4")](zx("0x1d")),o=t[zx("0x4e")].get(zx("0x4f")),s=t[zx("0x4e")][zx("0x4")](wx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n._splitMarkerName(r[zx("0x45")]),c=n[zx("0x2c")](a);if(!c[zx("0x24")]||zx("0x1a")!=c[zx("0x24")][zx("0x3f")])return;if(r.item)return void s[zx("0x39")]();if(!i[zx("0x36")].consume(r[zx("0x41")],s[zx("0x2b")]))return;const l=r[zx("0x41")][zx("0x11")][zx("0x10")],d=r[zx("0x41")][zx("0x27")].nodeBefore,u=l[zx("0x3a")].parent,{column:g}=o[zx("0x1")](l),{column:m}=o[zx("0x1")](d);for(let s=g;s<=m;s++){const c=o[zx("0x2d")](u,{column:s,includeAllSlots:!1});for(const o of c){const s=o[zx("0x3d")],c=i[zx("0x40")][zx("0x50")](s);i[zx("0x4d")][zx("0x3b")](zx("0xe")+x,c),e&&i.writer.setAttribute(zx("0xd"),a,c),i[zx("0x40")][zx("0x7")](c,r[zx("0x45")]),t&&(n.activeMarkers.includes(r[zx("0x45")])?i.writer[zx("0x3b")]("ck-suggestion-marker--active",c):i[zx("0x4d")][zx("0x33")](zx("0x21"),c))}}}}n[zx("0x8")](zx("0x1b"),((e,s)=>{const r=o[zx("0x51")](t[zx("0x34")][zx("0x44")][zx("0x2")]),i=o[zx("0x32")](r),x=r[0][zx("0x43")](zx("0x35")),a=x[zx("0x17")](zx("0x2f"))||0,c=s&&null!==s[zx("0xb")]?s[zx("0xb")]:!t.commands.get("setTableRowHeader").value,l=c?i[zx("0x4a")]:i[zx("0x3c")],d=x.getChild(l);let u;if(c){const e=x[zx("0xa")](a);if(d[zx("0x29")]<e.index)return;u=t[zx("0x34")][zx("0x3")](t[zx("0x34")].createPositionBefore(e[zx("0xa")](0)),t[zx("0x34")].createPositionAfter(d[zx("0xa")](d[zx("0x15")]-1)))}else{const e=x[zx("0xa")](a-1);if(!e)return;u=t[zx("0x34")].createRange(t[zx("0x34")][zx("0x46")](d[zx("0xa")](0)),t[zx("0x34")][zx("0x38")](e[zx("0xa")](e[zx("0x15")]-1)))}t[zx("0x34")].change((()=>{n[zx("0xc")](u,{commandName:"setTableRowHeader",commandParams:[{forceValue:c}]},[],zx("0x1b"))}))})),n.enableCommand(zx("0x1a"),((e,o)=>{const s=t[zx("0x4e")][zx("0x4")](zx("0x4f")),r=s[zx("0x51")](t[zx("0x34")][zx("0x44")][zx("0x2")]),i=s.getColumnIndexes(r),x=r[0][zx("0x43")](zx("0x35")),a=x[zx("0x17")](zx("0x31"))||0,c=o&&null!==o[zx("0xb")]?o[zx("0xb")]:!t.commands[zx("0x4")](zx("0x1a"))[zx("0x12")];let l;const d=x[zx("0xa")](0),u=c?i.last:i.first,g=s[zx("0x2d")](x,{startRow:0,column:u,includeAllSlots:!1}),m=Array[zx("0x4c")](g)[0][zx("0x3d")];if(c){const e=d.getChild(a);if(m.isBefore(e))return;l=t[zx("0x34")][zx("0x3")](t.model[zx("0x46")](e),t.model.createPositionAfter(m))}else{const e=d.getChild(a-1);if(!e)return;l=t[zx("0x34")][zx("0x3")](t[zx("0x34")][zx("0x46")](m),t[zx("0x34")][zx("0x38")](e))}t[zx("0x34")][zx("0x48")]((()=>{n[zx("0xc")](l,{commandName:zx("0x1a"),commandParams:[{forceValue:c}]},[],zx("0x1a"))}))})),t[zx("0x4b")][zx("0x37")].on(zx("0x3e"),r(),{priority:"highest"}),t[zx("0x24")][zx("0x37")].on(zx("0x3e"),((t,e,n)=>{n[zx("0x25")][zx("0x13")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:zx("0x19")}),t[zx("0x4b")].downcastDispatcher.on(zx("0x14"),((t,e,o)=>{const{type:s,id:r}=n[zx("0x2a")](e[zx("0x45")]),i=n[zx("0x2c")](r);if(!i[zx("0x24")]||zx("0x1a")!=i[zx("0x24")].commandName)return;const x=o.mapper[zx("0x18")](e.markerName);if(x)for(const t of x)o[zx("0x4d")][zx("0x33")](zx("0xe")+s,t),o[zx("0x4d")][zx("0x33")]("ck-suggestion-marker--active",t),o[zx("0x4d")][zx("0x42")](zx("0xd"),t),o[zx("0x40")][zx("0x28")](t,e[zx("0x45")])}),{priority:zx("0x19")}),n[zx("0x9")].registerDescriptionCallback((t=>{const{data:n}=t;if(n){if("setTableRowHeader"==n.commandName){const t=n[zx("0x5")][0][zx("0xb")];return o(Yo(e,zx(t?"0x0":"0x6")))}if(zx("0x1a")==n[zx("0x3f")]){const t=n[zx("0x5")][0].forceValue;return o(Yo(e,zx(t?"0x47":"0x1e")))}}function o(t){return{type:zx("0x30"),content:Yo(e,zx("0x49"),t)}}}));const i=s[zx("0x22")]();n[zx("0xf")].registerCustomCallback(zx("0x26"),zx("0x1b"),zx("0x16"),i),n[zx("0xf")][zx("0x2e")]("formatBlock",zx("0x1a"),zx("0x16"),i)}}const Wx=["createRange","showSuggestionHighlights","table","getChild","row","dataDowncast","root","insertContent","unwrap","_tablePostFixingSubtypes","forceDefaultExecution","commands","nodeAfter","first","differ","filter","getChangedMarkers","length","_descriptionFactory","getAttributes","getRanges","TableClipboard","last","getColumnIndexes","fromEntries","previous","editingDowncast","getTableIfOnlyTableInContent","author","tableCell","registerCustomCallback","getSuggestion","tablePasteRow","tablePasteColumn","$graveyard","trackChanges","value","Users","map","rootName","endColumn","getAllAdjacentSuggestions","tablePasteChainId","next","_createdBatches","markMultiRangeInsertion","plugins","registerPostFixer","cells","ck-suggestion-marker--active","tableCellHorizontalAlignment","type","editor","suggestion:formatBlock:tablePasteCell","name","getMarkers","deletion","insertion","end","keys","getContainedElement","getRows","batch","find","paragraph","_suggestionFactory","view","isInContent","redo","markMultiRangeDeletion","createRangeIn","content","_getCoordsForCells","getRowIndexes","insert","removeMarkers","_isForcedDefaultExecutionBlock","editing","move","startsWith","stop","set","createPositionBefore","getChildren","ck-suggestion-marker","rows","updateMarker","oldRange","return","low","*Replace table cells*","tablePasteCell","get","createElement","isEmpty","_replaceTableSlotCell","has","markerAttributes","options","for","tableCellSuggestion","suggestion","setAttribute","attributes","registerDescriptionCallback","columnInsertionIndexes","element","cell","subType","markerName","documentSelection","change","remove","join","rowInsertionIndexes","getColumns","position","model","high","insertRows","createTableWalker","TableUtils","suggestionLoaded","selection","findAncestor","tableCellBorderStyle","document","getRange","includes","getChanges","tableCellBorderWidth","tableCellBackgroundColor","push","removeMarker","accept","insertionRanges","endRow","TrackChangesEditing","elementToElement","getSuggestions","rowInsertionRanges","_splitMarkerName","discard","getSelectionAffectedTableCells","formatBlock","add","reduce","from","createRangeOn","tablePaste","markerToHighlight","some","tableCellPadding","every","newRange","previousSibling","fill","conversion","columns","entries","afterInit","isEqual"];var Kx,qx;Kx=Wx,qx=461,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const $x=function(t,e){return Wx[t-=0]},Xx=[$x("0x9b"),"tableCellBorderColor",$x("0x96"),$x("0x4b"),"tableCellVerticalAlignment",$x("0x9c"),$x("0xf")],Jx=Object[$x("0x31")](Xx[$x("0x3f")]((t=>[t,null])));class Qx extends t.Plugin{static get requires(){return[wx]}[$x("0x17")](){const t=this.editor;if(!t[$x("0x47")].has($x("0x2e")))return;const n=t[$x("0x47")].get($x("0x0")),o=t[$x("0x47")][$x("0x75")]($x("0x92")),s=t[$x("0x47")].get(wx),r=t[$x("0x47")][$x("0x75")]("TableClipboard");s[$x("0x22")][$x("0x9d")]($x("0x39"),$x("0x3a")),t[$x("0x8e")].schema.register($x("0x7d"),{allowIn:$x("0x36"),allowContentOf:$x("0x36"),isLimit:!0}),t.conversion[$x("0x1")]({model:"tableCellSuggestion",view:"suggestion-td"});let i=null;t[$x("0x8e")].on($x("0x20"),((s,x)=>{const[a,c]=x,l=x[x.length-1];l&&l[$x("0x23")]||n[$x("0x65")]||this[$x("0x4d")][$x("0x24")][$x("0x75")]($x("0x3c"))[$x("0x3d")]&&function(t,e,n,o,s){if(e&&!e.is($x("0x87")))return!1;const r=s[$x("0x34")](t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o[$x("0x6")](n[$x("0x97")][$x("0x94")]);if(!i.length)return!1;const x=i[0][$x("0x95")]($x("0x1b")),a=o[$x("0x62")](i),c=o[$x("0x30")](i),l={startRow:a[$x("0x26")],endRow:a.last,startColumn:c.first,endColumn:c[$x("0x2f")]};return 1==i[$x("0x2a")]&&(l[$x("0xa1")]+=o[$x("0x56")](r)-1,l[$x("0x41")]+=o[$x("0x8c")](r)-1),Yx(x,l,o)}(a,c,t.model,o,r)&&(s[$x("0x69")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[$x("0x8e")].change((()=>{t[$x("0x8e")][$x("0x20")](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[$x("0x46")](s,"tablePasteRow",{tablePasteChainId:o}),r[$x("0x2a")]&&n[$x("0x46")](r,$x("0x3a"),{tablePasteChainId:o}),a[$x("0x2a")]&&n[$x("0x46")](a,$x("0xc"),{tablePasteChainId:o,skipNestingCheck:!0}),c[$x("0x2a")]&&n[$x("0x5e")](c,$x("0xc"),{tablePasteChainId:o,skipNestingCheck:!0});const d=n.markMultiRangeBlockFormat(l[$x("0x3f")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],$x("0x74"),{tablePasteChainId:o});if(d){const e=d[$x("0x50")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t.model.createRangeOn(o),i=e[$x("0x58")]((t=>t[$x("0x98")]().isEqual(r)));i&&n[$x("0x9d")]([i[$x("0x4f")],s])}n[$x("0x2a")]&&d[$x("0x7f")]("markerAttributes",Object[$x("0x31")](n))}i=null})))}),{priority:e.priorities.high+10}),t.plugins[$x("0x75")]("TableClipboard").on($x("0x78"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t.stop();const r=n[$x("0x84")],x=o,a=Zx(r),c=Zx(x);t[$x("0x71")]=r;let l=null,d=null;if(c||a)if(a&&!c){s[$x("0x89")](r[$x("0x1c")](0));for(const t of Array[$x("0xa")](x[$x("0x6c")]()))s.insert(t,r,$x("0x53"));const t=i[$x("0x8b")][$x("0x99")](n[$x("0x1d")]),e=i.columnInsertionIndexes[$x("0x99")](n.column);t||e||(l=s[$x("0x5f")](r))}else c&&!a&&(d=s[$x("0x5f")](r));else{const t=s[$x("0x76")]($x("0x7d")),e=s[$x("0x76")]($x("0x7d"));s.wrap(s[$x("0x5f")](r),e),s.insert(t,r,0);for(const e of Array[$x("0xa")](x[$x("0x6c")]()))s[$x("0x63")](e,t,"end");l=s[$x("0xb")](t),d=s[$x("0xb")](e)}const u=Array[$x("0xa")](x[$x("0x2c")]())[$x("0x28")]((([t])=>Xx.includes(t)));i.cells[$x("0x9d")]({element:r,attributes:u[$x("0x2a")]?Object[$x("0x31")](u):null}),l&&i[$x("0xa0")][$x("0x9d")](l),d&&i.deletionRanges[$x("0x9d")](d)}),{priority:$x("0x8f")}),o.on("insertColumns",((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[$x("0x15")]||1;i[$x("0x82")]=new Array(a)[$x("0x13")](x).map(((t,e)=>t+e));for(const{cell:e}of o[$x("0x91")](s,{startColumn:x,endColumn:x+a-1}))i.columnInsertionRanges[$x("0x9d")](t.model[$x("0xb")](e))}),{priority:$x("0x72")}),o.on($x("0x90"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[$x("0x6e")]||1;i[$x("0x8b")]=new Array(a).fill(x)[$x("0x3f")](((t,e)=>t+e));for(const{cell:e}of o[$x("0x91")](s,{startRow:x,endRow:x+a-1}))i[$x("0x3")][$x("0x9d")](t[$x("0x8e")].createRangeOn(e))}),{priority:$x("0x72")}),n[$x("0x2b")][$x("0x81")]((e=>{if(e[$x("0x85")]&&e[$x("0x85")][$x("0x68")]($x("0xc")))return e[$x("0x32")]?{}:{type:$x("0x52"),content:Yo(t.locale,$x("0x73"))}}));const x=()=>!1;for(const t of[$x("0xc"),$x("0x3a"),"tablePasteRow","tablePasteCell"])n[$x("0x5a")][$x("0x37")]($x("0x52"),t,$x("0x8a"),x),n._suggestionFactory[$x("0x37")]($x("0x51"),t,$x("0x8a"),x),n[$x("0x5a")][$x("0x37")]($x("0x7"),t,$x("0x8a"),x);n._suggestionFactory.registerCustomCallback($x("0x7"),$x("0x74"),$x("0x5"),x),n[$x("0x5a")][$x("0x37")]("formatBlock",$x("0x74"),$x("0x9f"),((e,n,o)=>{const s=e[$x("0x3f")]((t=>t[$x("0x55")]()))[$x("0x28")]((t=>t)),r=new Map(s[$x("0x3f")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[$x("0x49")])e&&r.set(t,e);else if(o&&o[$x("0x7a")])for(const[e,n]of Object[$x("0x16")](o.markerAttributes)){const o=t[$x("0x8e")].markers[$x("0x75")](e),s=o?o[$x("0x98")]().getContainedElement():null;s&&r[$x("0x6a")](s,n)}t[$x("0x8e")][$x("0x88")]((t=>{for(const[e,n]of r)t.setAttributes({...Jx,...n},e)}))}));const a=(e,o)=>{n[$x("0x5a")].registerCustomCallback(e,$x("0xc"),o,((s,r,i)=>{t[$x("0x8e")][$x("0x88")]((t=>{const x=[];for(const t of s){const e=t.start[$x("0x25")];e.is($x("0x83"),$x("0x7d"))&&x.push(e)}n[$x("0x5a")].getSuggestionCallback(e,null,o)(s,r,i);for(const e of x)$x("0x3b")!=e[$x("0x1f")][$x("0x40")]&&t[$x("0x21")](e)}))}))};a($x("0x52"),$x("0x9f")),a("insertion",$x("0x5")),a($x("0x51"),$x("0x9f")),a($x("0x51"),$x("0x5")),n[$x("0x5a")][$x("0x37")]($x("0x52"),$x("0x39"),$x("0x5"),(t=>{const e=t[$x("0x3f")]((t=>t[$x("0x55")]())),n=e[0][$x("0x95")]("table"),{minRow:r,maxRow:i}=s[$x("0x61")](e);o.removeRows(n,{at:r,rows:i-r+1})})),n[$x("0x5a")].registerCustomCallback($x("0x52"),$x("0x3a"),$x("0x5"),(t=>{const e=t.map((t=>t.getContainedElement())),n=e[0][$x("0x95")]("table"),{minColumn:r,maxColumn:i}=s[$x("0x61")](e);o.removeColumns(n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e.subType||!e.subType[$x("0x68")]($x("0xc")))return;const o=e[$x("0x80")][$x("0x43")],s=n[$x("0x2")]()[$x("0x28")]((t=>t[$x("0x5c")]&&t.attributes&&t[$x("0x80")][$x("0x43")]==o));s[$x("0x2a")]&&e[$x("0x42")]()[$x("0x2a")]!=s[$x("0x2a")]&&s[$x("0x9")](((t,e)=>(t[$x("0x44")]=e,e[$x("0x32")]=t,e)))};function l(t,e=!0){const{id:o}=n[$x("0x4")](t[$x("0x86")]),s=[$x("0x6d"),"ck-suggestion-marker-insertion"],r=n.activeMarkers[$x("0x99")](t[$x("0x86")]);return r&&s.push($x("0x4a")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on($x("0x93"),c,{priority:$x("0x8f")}),n.on("suggestionUnloaded",c,{priority:$x("0x8f")}),t[$x("0x8e")].document[$x("0x48")]((()=>{let e=!1;const o=Array.from(t[$x("0x8e")].document[$x("0x27")][$x("0x29")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[$x("0x4")](s);if($x("0x7e")!=o||"deletion"!=i||r[$x("0x70")])continue;if(!n.hasSuggestion(x))continue;const a=n[$x("0x38")](x)[$x("0x2d")](),c=t.plugins[$x("0x75")]($x("0x3e")).me;for(const t of n[$x("0x2")]())if(t[$x("0x5c")]&&t[$x("0x35")]==c&&"formatBlock"==t[$x("0x4c")]&&$x("0x74")==t.subType&&t.getRanges()[$x("0x10")]((t=>a[$x("0xe")]((e=>e.containsRange(t,!0))))))for(const n of t[$x("0x42")]())n[$x("0x5c")]&&(n[$x("0x5")](),e=!0)}return e})),t[$x("0x8e")][$x("0x97")].registerPostFixer((e=>{const o=t[$x("0x24")][$x("0x75")]($x("0x5d"));if(!o||!o[$x("0x45")][$x("0x79")](e[$x("0x57")]))return!1;let s=!1;const r=t[$x("0x47")][$x("0x75")]($x("0x3e")).me,i=t[$x("0x8e")][$x("0x97")][$x("0x27")][$x("0x9a")](),x=Array.from(t[$x("0x8e")][$x("0x97")][$x("0x27")][$x("0x29")]())[$x("0x28")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[$x("0x4")](t);return $x("0x7e")==o&&$x("0xc")==s&&i==r.id&&!e[$x("0x70")]}));for(const t of i){if("insert"!=t[$x("0x4c")]||$x("0x7d")!=t[$x("0x4f")]||1!=t.length)continue;const n=e[$x("0x19")](t[$x("0x8d")],t[$x("0x8d")].getShiftedBy(1));if(!x[$x("0x58")]((({data:t})=>t.newRange[$x("0x18")](n))))for(const{name:t,data:o}of x)if(n.containsRange(o[$x("0x11")])){e[$x("0x6f")](t,{range:n}),s=!0;break}}return s})),t.model[$x("0x97")][$x("0x48")]((e=>{let o=!1;const s=t[$x("0x47")][$x("0x75")]($x("0x3e")).me,r=n[$x("0x2")]()[$x("0x28")]((t=>t[$x("0x5c")]&&t.author==s)),i=new Set,x=new Set;for(const t of r)if($x("0xc")==t[$x("0x85")])for(const e of t[$x("0x50")]()){const n=e[$x("0x98")]().getContainedElement();if(n)if(n.is($x("0x83"),$x("0x7d"))&&Zx(n)){t[$x("0x9e")](e.name),i[$x("0x8")](n),o=!0;const s=n.nextSibling,r=n[$x("0x12")],a=s&&s.is($x("0x83"),"tableCellSuggestion"),c=r&&r.is($x("0x83"),$x("0x7d"));a&&!i[$x("0x79")](s)&&x[$x("0x8")](s),c&&!i[$x("0x79")](r)&&x[$x("0x8")](r)}else n.is("element",$x("0x59"))&&n[$x("0x77")]&&(t[$x("0x9e")](e.name),o=!0)}else if($x("0x74")==t[$x("0x85")]){if(!t[$x("0x80")]||!t[$x("0x80")].tablePasteChainId)continue;const e=t.attributes[$x("0x7a")];if(e&&Object[$x("0x54")](e)[$x("0x2a")])continue;const n=t.attributes[$x("0x43")];let s=!0,i=!0;for(const e of r)if(e[$x("0x85")]&&e[$x("0x85")][$x("0x68")]($x("0xc"))){if(!e[$x("0x80")].tablePasteChainId){i=!1;break}if(e.id!=t.id&&e[$x("0x80")][$x("0x43")]==n){s=!1;break}}i&&s&&(t[$x("0x64")](),o=!0)}for(const t of i)e[$x("0x89")](t);for(const t of x)e[$x("0x21")](t);return o})),t[$x("0x14")][$x("0x7c")]($x("0x33"))[$x("0xd")]({model:$x("0x4e"),view:(t,e)=>l(t),converterPriority:$x("0x8f")}),t[$x("0x14")][$x("0x7c")]($x("0x1e"))[$x("0xd")]({model:$x("0x4e"),view:(t,e)=>e[$x("0x7b")][$x("0x1a")]?l(t,!1):null,converterPriority:$x("0x8f")});const d=t[$x("0x66")][$x("0x5b")];this.listenTo(d[$x("0x97")],"clipboardOutput",((t,e)=>{const n=[];for(const t of d[$x("0x5f")](e[$x("0x60")]).getItems())t.is("element","suggestion-td")&&n.push(t);d.change((t=>{for(const e of n)t[$x("0x67")](t[$x("0x5f")](e),t[$x("0x6b")](e)),t.remove(e)}))}))}}function Zx(t){if(t[$x("0x77")])return!0;const e=t[$x("0x1c")](0);return e.is("element",$x("0x59"))&&e[$x("0x77")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[$x("0x91")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["accept","enableCommand","*Format:* resize table","_suggestionFactory","getColumnGroupElement","markBlockFormat","getAttribute","format","discard","TableColumnResizeEditing","getTableColumnsWidths","resizeTable","editor","handleSuggestionDescription","has","commandParams","columnWidths","_descriptionFactory","Users","selection","registerCustomCallback","afterInit","table","document","getSuggestionCallback","get","resizeColumnWidths","registerDescriptionCallback","getContainedElement","bind","tableWidth","resizeTableWidth","change","plugins","formatBlock","locale","handleResizeTableWidthCommand","data"];var ea,na;ea=ta,na=207,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{[oa("0x4")](){if(!this[oa("0x21")][oa("0x10")][oa("0x23")]("TableColumnResizeEditing"))return;const t=this.editor.plugins.get("TrackChangesEditing");t[oa("0x16")](oa("0xe"),this[oa("0x13")][oa("0xc")](this)),t[oa("0x16")](oa("0x9"),this.handleResizeTableWidthCommand.bind(this)),t[oa("0x18")][oa("0x3")]("formatBlock",oa("0x20"),oa("0x15"),t[oa("0x18")][oa("0x7")](oa("0x11"),null,oa("0x1d"))),t._suggestionFactory.registerCustomCallback(oa("0x11"),oa("0x20"),oa("0x1d"),t[oa("0x18")][oa("0x7")](oa("0x11"),null,oa("0x15"))),t[oa("0x0")][oa("0xa")](this[oa("0x22")][oa("0xc")](this))}[oa("0x13")](t,e){const n=this.editor.plugins.get("TrackChangesEditing"),o=this.editor[oa("0x10")][oa("0x8")](oa("0x1e")),s=e[oa("0x5")]||this[oa("0x21")].model[oa("0x6")][oa("0x2")].getSelectedElement();this[oa("0x21")].model[oa("0xf")]((()=>{const r=o[oa("0x19")](s);let i=r?o[oa("0x1f")](r):null,x=s[oa("0x1b")](oa("0xd"))||null;const a=e.tableWidth||x,c=e[oa("0x25")]||i,l=this[oa("0x21")][oa("0x10")][oa("0x8")](oa("0x1")).me;for(const t of n.getSuggestions()){const e=t[oa("0xb")]();if("resizeTable"===t.subType&&e===s){t.author!==l&&t[oa("0x1d")]();const e=t[oa("0x14")][oa("0x24")];x=e[0][oa("0xd")],i=e[0][oa("0x25")];break}}t({table:s,tableWidth:a,columnWidths:c}),n[oa("0x1a")](s,{commandName:"resizeTableWidth",commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0x20")},[],"resizeTable")}))}[oa("0x22")](t){const{data:e}=t;if(e&&oa("0x20")===e.formatGroupId){const t=oa("0x17");return{type:oa("0x1c"),content:Yo(this.editor[oa("0x12")],t)}}}}const ra=["enableCommand","plugins","get","Template","insertTemplate","TrackChangesEditing","has"];var ia,xa;ia=ra,xa=391,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{afterInit(){const t=this.editor;t[aa("0x2")][aa("0x0")](aa("0x4"))&&t[aa("0x2")][aa("0x3")](aa("0x6"))[aa("0x1")](aa("0x5"))}}const la=["enableCommand","insertTableOfContents","commands","get","locale","TrackChangesEditing","registerElementLabel","tableOfContents","plugins","afterInit","_descriptionFactory"];var da,ua;da=la,ua=486,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x7")](){const t=this.editor;if(!t[ga("0x0")][ga("0x1")]("insertTableOfContents"))return;t[ga("0x6")][ga("0x1")](ga("0x3"))[ga("0x9")](ga("0xa"));const e=t[ga("0x6")][ga("0x1")](ga("0x3")),n=t[ga("0x2")];e[ga("0x8")][ga("0x4")](ga("0x5"),(t=>Yo(n,"ELEMENT_TABLE_OF_CONTENTS",t)))}}const fa=["_descriptionFactory","nodeBefore","isCollapsed","getNearestSelectionRange","ELEMENT_TITLE","registerElementLabel","element","Title","suggestion","isEqual","plugins","TrackChangesEditing","_splitMarkerName","isTouching","newRange","registerPostFixer","updateMarker","editor","model","removeMarker","document","start","title-content","schema","differ","from"];var ha,pa;ha=fa,pa=187,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{afterInit(){const t=this[ba("0xc")];if(!t[ba("0x5")].has(ba("0x2")))return;const e=t[ba("0x5")].get(ba("0x6"));e[ba("0x15")][ba("0x0")](ba("0x11"),(()=>Yo(t.locale,ba("0x19")))),t[ba("0xd")][ba("0xf")][ba("0xa")]((n=>{let o=!1;const s=Array[ba("0x14")](t.model.document[ba("0x13")].getChangedMarkers());for(const{name:r,data:i}of s){const{group:s}=e[ba("0x7")](r);if(ba("0x3")!==s||!i[ba("0x9")])continue;const x=i.newRange,a=x.end[ba("0x16")];if(!a||!a.is(ba("0x1"),ba("0x11")))continue;if(!x.start[ba("0x8")](x.end))continue;const c=t[ba("0xd")][ba("0x12")][ba("0x18")](x.end,"forward");if(c&&c[ba("0x17")]){const t=n.createRange(x[ba("0x10")],c[ba("0x10")]);t[ba("0x4")](x)||(n[ba("0xb")](r,{range:t}),o=!0)}o||(n[ba("0xe")](r),o=!0)}return o}))}}const _a=["enableCommand","plugins","TrackChangesEditing","get","afterInit","UndoEditing"];var Ta,Ca;Ta=_a,Ca=149,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.editor,e=t[ya("0x2")][ya("0x4")](ya("0x3"));t[ya("0x2")].has(ya("0x0"))&&(e.enableCommand("undo"),e[ya("0x1")]("redo"))}}const Aa=["TrackChangesEditing","has","editor","requires","afterInit","toggleTableCaption","get"];var Ra,va;Ra=Aa,va=285,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[Ia("0x5")](){return[wx]}[Ia("0x6")](){const t=this[Ia("0x4")];t.plugins[Ia("0x3")]("TableCaptionEditing")&&t.plugins[Ia("0x1")](Ia("0x2")).enableCommand(Ia("0x0"))}}const La=["handleListReversedCommand","DocumentListUtils","from","getAttribute","document","replace","format","type","editor","bind","commandParams","DocumentListPropertiesUtils","listStart","_getTranslationKeyForListStyle","plugins","locale","markMultiRangeBlockFormat","isListItemBlock","get","listStyle","selection","_getSuggestionBlocksForListStyle","list.properties","model","*Change to:* %0","push","expandListBlocksToCompleteList","commandName","TrackChangesEditing","toUpperCase","DocumentListPropertiesEditing","change","_LIST_","enableCommand","handleListStartCommand","afterInit","has","getSelectedBlocks","numbered","getListTypeFromListStyleType","startIndex","_getSuggestionBlocks","handleListStyleCommand","reversed","listReversed","isFirstBlockOfListItem","*Format:* set order to reversed","handleDescriptions","filter","ELEMENT_","listType"];var Na,Ma;Na=La,Ma=476,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{[wa("0x12")](){if(!this.editor.plugins[wa("0x13")](wa("0xd")))return;const t=this.editor.config[wa("0x1")](wa("0x5")),e=this.editor[wa("0x30")].get(wa("0xb"));t.styles&&e[wa("0x10")](wa("0x2"),this[wa("0x19")][wa("0x2b")](this)),t.reversed&&e[wa("0x10")](wa("0x1b"),this[wa("0x22")][wa("0x2b")](this)),t[wa("0x17")]&&e.enableCommand(wa("0x2e"),this[wa("0x11")][wa("0x2b")](this)),e._descriptionFactory.registerDescriptionCallback(this[wa("0x1e")][wa("0x2b")](this))}handleListStyleCommand(t,e={}){const n=this.editor[wa("0x30")][wa("0x1")](wa("0xb")),o=this._getSuggestionBlocksForListStyle();this.editor[wa("0x6")][wa("0xe")]((()=>{n[wa("0x32")](o,{commandName:wa("0x2"),commandParams:[{type:e[wa("0x29")]}],formatGroupId:wa("0x2")})}))}[wa("0x22")](t,e={}){const n=this.editor[wa("0x30")][wa("0x1")](wa("0xb")),o=this[wa("0x2a")][wa("0x30")].get(wa("0x23")),s=this[wa("0x18")]((t=>o[wa("0x0")](t)&&"numbered"===t[wa("0x25")](wa("0x21"))));null!==s&&this.editor[wa("0x6")][wa("0xe")]((()=>{n[wa("0x32")](s,{commandName:wa("0x1b"),commandParams:[{reversed:e[wa("0x1a")]}],formatGroupId:"listReversed"})}))}[wa("0x11")](t,e={}){const n=this[wa("0x2a")][wa("0x30")][wa("0x1")]("TrackChangesEditing"),o=this[wa("0x2a")][wa("0x30")][wa("0x1")]("DocumentListUtils"),s=this[wa("0x18")]((t=>o[wa("0x0")](t)&&wa("0x15")===t.getAttribute(wa("0x21"))));null!==s&&this[wa("0x2a")].model[wa("0xe")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:wa("0x2e"),commandParams:[{startIndex:e.startIndex}],formatGroupId:"listStart"})}))}[wa("0x1e")](t){const e=this[wa("0x2a")][wa("0x31")],{data:n}=t;if(!n)return;let o,s;switch(n[wa("0xa")]){case wa("0x2"):o=wa("0x7"),s={type:wa("0x28"),content:Yo(e,o,Yo(e,this[wa("0x2f")](n[wa("0x2c")][0].type)))};break;case wa("0x1b"):o=n[wa("0x2c")][0][wa("0x1a")]?wa("0x1d"):"*Format:* set order to regular",s={type:"format",content:Yo(e,o)};break;case wa("0x2e"):o="*Format:* set start index to %0",s={type:"format",content:Yo(e,o,n[wa("0x2c")][0].startIndex)}}return s}[wa("0x4")](){const t=this[wa("0x2a")][wa("0x30")][wa("0x1")](wa("0x23"));let e=Array[wa("0x24")](this[wa("0x2a")][wa("0x6")].document[wa("0x3")][wa("0x14")]());return e.push(...t[wa("0x9")](e)),e=[...new Set(e)],e}[wa("0x18")](t){const e=this[wa("0x2a")][wa("0x30")][wa("0x1")](wa("0x23"));let n=Array.from(this.editor.model[wa("0x26")][wa("0x3")][wa("0x14")]())[wa("0x1f")](t);if(!n.length)return null;n=e[wa("0x9")](n);const o=[];for(const t of n)e[wa("0x1c")](t)&&o[wa("0x8")](t);return o}[wa("0x2f")](t){return wa("0x20")+this[wa("0x2a")][wa("0x30")][wa("0x1")](wa("0x2d"))[wa("0x16")](t).toUpperCase()+wa("0xf")+t[wa("0xc")]()[wa("0x27")](/-/g,"_")}}const Fa=["*Format:* change table cell properties","nodeAfter","_suggestionFactory","batch","has","tableCellProperties","enqueueChange","tableHeight","plugins","tableBorderStyle","afterInit","handleSuggestionDescription","tableCellVerticalAlignment","getSuggestionCallback","tableCellWidth","selection","change","handleDiscardAction","tableWidth","setAttribute","get","findAncestor","tableCellHeight","getSelectionAffectedTableCells","TrackChangesEditing","tableBackgroundColor","locale","registerCustomCallback","discard","TrackChangesTableProperties","tableProperties","TableCellPropertiesEditing","tableCellHorizontalAlignment","_descriptionFactory","getFirstPosition","join","accept","getAttribute","tableCellBorderColor","_handlePropertyChange","markBlockFormat","enableCommand","tableBorderColor","formatBlock","pluginName","tableCellBackgroundColor","editor","subType","model","TableUtils","registerDescriptionCallback","document","tableBorderWidth","commandParams","*Format:* change table properties","tableAlignment","_getSuggestion"];var Pa,Da;Pa=Fa,Da=394,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("0x23")]=[Ba("0x2f"),Ba("0xe"),Ba("0x0"),Ba("0x3"),Ba("0x17"),Ba("0xc"),Ba("0x1e")],this.tableCellProperties=[Ba("0x2b"),"tableCellBorderStyle","tableCellBorderWidth","tableCellPadding",Ba("0x13"),Ba("0x1b"),Ba("0x32"),Ba("0x25"),Ba("0x11")]}static get[Ba("0x31")](){return Ba("0x22")}[Ba("0xf")](){const t=this[Ba("0x33")].plugins[Ba("0x19")]("TrackChangesEditing");if(this[Ba("0x33")][Ba("0xd")][Ba("0x9")]("TablePropertiesEditing")){for(const e of this[Ba("0x23")])t.enableCommand(e,((t,n)=>{const o=this[Ba("0x33")][Ba("0x35")].document[Ba("0x14")][Ba("0x27")]()[Ba("0x1a")]("table");this[Ba("0x2c")](e,[o],this[Ba("0x23")],"tableProperties",t,n)}));t[Ba("0x7")][Ba("0x20")](Ba("0x30"),"tableProperties",Ba("0x29"),t._suggestionFactory[Ba("0x12")](Ba("0x30"),null,Ba("0x21"))),t[Ba("0x7")][Ba("0x20")](Ba("0x30"),Ba("0x23"),"discard",((t,e)=>this[Ba("0x16")](this[Ba("0x23")],t,e))),t._suggestionFactory[Ba("0x20")](Ba("0x30"),Ba("0x23"),Ba("0x28"),(()=>!1))}if(this.editor[Ba("0xd")][Ba("0x9")](Ba("0x24"))){for(const e of this[Ba("0xa")])t[Ba("0x2e")](e,((t,n)=>{const o=this[Ba("0x33")][Ba("0xd")][Ba("0x19")](Ba("0x36"))[Ba("0x1c")](this[Ba("0x33")][Ba("0x35")][Ba("0x38")].selection);this[Ba("0x2c")](e,o,this[Ba("0xa")],"tableCellProperties",t,n)}));t[Ba("0x7")][Ba("0x20")](Ba("0x30"),Ba("0xa"),Ba("0x29"),t[Ba("0x7")].getSuggestionCallback(Ba("0x30"),null,Ba("0x21"))),t[Ba("0x7")][Ba("0x20")](Ba("0x30"),Ba("0xa"),Ba("0x21"),((t,e)=>this[Ba("0x16")](this[Ba("0xa")],t,e))),t[Ba("0x7")][Ba("0x20")]("formatBlock",Ba("0xa"),Ba("0x28"),(()=>!1))}t[Ba("0x26")][Ba("0x37")]((t=>this[Ba("0x10")](t)))}[Ba("0x2c")](t,e,n,o,s,r){const i=this[Ba("0x33")][Ba("0xd")][Ba("0x19")](Ba("0x1d"));this[Ba("0x33")].model[Ba("0xb")](r[Ba("0x8")],(()=>{for(const t of e)if(this[Ba("0x4")](t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0x2a")](o);void 0!==n&&(e[o]=n)}s(r),i[Ba("0x2d")](t,{commandParams:[e]},[],o)}}))}[Ba("0x16")](t,e,n){const o=e[0].start[Ba("0x6")],s=n[Ba("0x1")][0];this.editor[Ba("0x35")][Ba("0x15")]((e=>{for(const n of t)void 0!==s[n]?e[Ba("0x18")](n,s[n],o):e.removeAttribute(n,o)}))}[Ba("0x10")](t){if(t.data)switch(t[Ba("0x34")]){case Ba("0x23"):return{type:"format",content:Yo(this.editor[Ba("0x1f")],Ba("0x2"))};case Ba("0xa"):return{type:"format",content:Yo(this[Ba("0x33")][Ba("0x1f")],Ba("0x5"))}}}[Ba("0x4")](t,e){const n=this[Ba("0x33")][Ba("0xd")].get(Ba("0x1d"));for(const o of n.getSuggestions({skipNotAttached:!0})){const n=o.getContainedElement();if(o[Ba("0x34")]===e&&n===t)return o}return null}}const Ua=["_handleNewSuggestionMarker","getAttribute","markerReady","getAllAdjacentSuggestions","deletion:join","change:activeMarkers","for","listenTo","discard","dataDowncast","insertion","detach","trackChanges.trackFormatChanges","registerCustomCallback","includes","mapper","value","element","low","isRemovable","track-changes-adapter-already-set","locale","markBlockFormat","_addThreadToSuggestion","trackChanges.mergeNestedSuggestions","createdAt","multipleBlocks","isCollapsed","deletion","deletion:discard","move","addClass","size","_isForcedDefaultExecutionBlock","map","item","set","next","_getSuggestionData","_model","markMultiRangeBlockFormat","howMany","addHighlight","refresh","get","assign","isAtEnd","dataToMarker","start","_addSuggestionMarker","formatInline:join","formatBlock:","$marker","isLimit","deletion:chain","never","getChangedMarkers","addSuggestionData","external:","_getExternalAuthor","markMultiRangeInsertion","schema","_breakSuggestionMarker","_onDiscard","isLocal","addMarkerName","_updateSuggestionData","_trackFormatChanges","writer","getSuggestions","backward","suggestion-type","default","getFirstRange","newRange","fire","formatInline","hasComments","deletion:accept","getItems","every","getCustomProperty","toViewElement","formatBlock","formatInline:discard","activeMarkers","removeComment","execute","from","define","_findSuggestions","isExternal","fromRange","after","suggestionChanged","splice","_suggestionFactory","$graveyard","always","before","_enabledCommands","markerToHighlight","name","isAfter","_cutOutSuggestionMarker","_getAuthorFromId","filter","widget","commands","getSuggestionCallback","document","highest","isDocumentOperation","suggestion:","forceDefaultExecution","resolve","PendingActions","formatGroupId","targetPosition","formatInline:chain","_commentsRepository","stop","discardSuggestion","acceptAllSuggestions","adapter","rootName","_registerDefaultCallbacks","_rangeIsInLocalUserInsertion","rejected","discardSelectedSuggestions","lowest","removeMarker","unbind","root","isTouching","then","insertContent","getUser","originalSuggestionId","track-changes-suggestion-not-found","catch","end","removed","change:_saved","getDifference","isEqual","enableReadOnlyMode","isMultiRange","formatBlock:accept","pluginName","track-changes-command-not-found","parent","getIntersection","markerName","containsPosition","has","upcast","remove","containsRangeInObject","suggestion","values","getShiftedBy","splitPosition","clear","unbindElementFromMarkerName","plugins","notReady","setTo","elementStart","removeMarker:suggestion:formatBlock","insertion:","formatInline:","getCommentThread","suggestionLoaded","_createSuggestion","_joinSuggestions","trackChanges","updateSuggestion","formatBlock:join","data-suggestion","isInContent","insertion:join","consume","keys","getRanges","trackChangesCommand","stopListening","sort","createPositionAt","setAttribute","_refreshSuggestionsChain","isIntersectingWithRange","removeMarkers","editor","forward","some","showSuggestionHighlights","markMultiRangeDeletion","addSuggestion","registerPostFixer","chain","createElement","model","isAtStart","ck-suggestion-marker","_defaultCallbacks","commandName","differ","position","selection","containsRange","rethrowUnexpectedError","createRange","oldRange","accept","acceptSuggestion","reconvertMarker","creator","isBefore","moveTargetPosition","push","isObject","getNearestSelectionRange","addMarker:suggestion:formatBlock","@external","author","containerElement","markerNameToElements","change:data","_editor","_isDataLoaded","_checkSuggestionCorrectness","return","split","data","suggestionUnloaded","_setSuggestionData","high","markDeletion","_joinWithAdjacentSuggestions","ck-suggestion-marker--active","getAncestors","deletion:","_saved","_splitMarkerName","PENDING_ACTION_SUGGESTION","buildSuggestion","consumable","isOwn","getLastMatchingPosition","createRangeIn","authorName","markers","skipNestingCheck","isNextTo","hasSuggestion","discardAllSuggestions","_suggestions","type","getSuggestion","ck-suggestion-marker-","attributes","nodeAfter","deleteContent","clone","delete","markInlineFormat","_adapter","createSelection","previous","removeClass","editingDowncast","head","getWalker","nodeBefore","dataReady","ready","setSelection","addRange","addMarker:suggestion","_suggestionState","normal","updateMarker","_customCallbacks","$textProxy","elementEnd","CommentsRepository","length","config","insertion:discard","update:suggestion","isInsideObject","isBlock","getMultiRangeId","containsItem","insertion:chain","_setSuggestionRange","change","ck-suggestion-marker-formatBlock","applyOperation","_mergeNestedSuggestions","track-changes-suggestion-data-mismatch","_removeSuggestion","join","commentThread","batch","createPositionBefore","markerToData","subType","options","range","Users","marker-count","enableCommand","toJSON","insert","isArray","collaboration.channelId","isSelectable","add","conversion","init"];var Ga,Ha;Ga=Ua,Ha=175,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 requires(){return[za("0x6f"),r.Users,t.PendingActions,cs,Cs,vs,ws,Bs,Vs,Js,er,Oa,xr,ur,br,yr,Lr,Pr,Gr,Kr,Qr,ni,xi,ui,pi,Ci,vi,Oi,ji,Vi,Xi,tx,ix,ux,px,yx,Ix,wx,jx,Vx,Sa,Qx,sa,ma,ja,ca,Ea,ka]}static get[za("0x128")](){return"TrackChangesEditing"}constructor(t){function e(t){return t[za("0xb5")]((t=>String.fromCharCode(t)))[za("0x80")]("")}super(t),this[za("0xb7")]("activeMarkers",[]),this.on(za("0x98"),((e,n,o,s)=>{this[za("0xba")][za("0x7a")]((()=>{for(const e of[...s,...o])this[za("0xba")].markers.has(e)&&t.editing[za("0x29")](e)}))})),this._descriptionFactory=new ss(this[za("0x12")][za("0x1b")][za("0xd0")],this[za("0x12")].locale),this[za("0x5c")]=null,this._suggestionFactory=new Wa(this[za("0x12")]),this[za("0x52")]=new Map,this[za("0x10b")]=t.plugins[za("0xbf")]("CommentsRepository"),this[za("0xf7")]=new Set,this[za("0xba")]=this[za("0x12")][za("0x1b")],this[za("0x69")]=new WeakMap,this._isForcedDefaultExecutionBlock=!1,t[za("0x71")][za("0xec")](za("0x9f"),za("0xdb")),this[za("0xd6")]=t[za("0x71")].get(za("0x9f")),t[za("0x71")][za("0xec")](za("0xab"),!0),this[za("0x7d")]=t[za("0x71")][za("0xbf")](za("0xab")),this.trackChangesCommand=new u(t,this[za("0xf7")]),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,49,56,48,50])}[za("0x92")](){const t=this[za("0x12")];t[za("0x91")][za("0x99")]("editingDowncast")[za("0xf8")]({model:za("0x132"),view:t=>{const{id:e,type:n}=this[za("0x45")](t[za("0x12c")]),o=[za("0x1d"),za("0x55")+n];let s=3e3;return this[za("0xe8")][za("0xa1")](t.markerName)&&(o.push(za("0x41")),s=3010),za("0xaf")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[za("0x91")].for(za("0x9c"))[za("0x90")]((e=>{e.on(za("0x68"),((e,n,o)=>{if(!o[za("0x86")][za("0x15")])return;const s=n.item;if(!s)return;const r=o[za("0xa2")][za("0xe5")](s);t[za("0x1b")][za("0xd0")][za("0x2e")](s)&&r&&!r[za("0xe4")](za("0xfe"))&&r.is(za("0x33"))&&(0,x.toWidget)(r,o[za("0xd7")])}),{priority:za("0x3e")})})),t.conversion[za("0x99")]("dataDowncast")[za("0xf8")]({model:za("0x132"),view:(t,e)=>{if(!e[za("0x86")][za("0x15")])return null;const{type:n}=this._splitMarkerName(t[za("0x12c")]);return{classes:[za("0x1d"),"ck-suggestion-marker-"+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[za("0xb6")])return;if(o.item.is(za("0x22")))return void s[za("0x48")][za("0x7")](o.item,n[za("0xf9")]);const r=s[za("0xa2")][za("0xe5")](o.item);if(!o[za("0xb6")].is(za("0xa4"))||!t[za("0x1b")].schema[za("0x75")](o[za("0xb6")])||r[za("0xe4")](za("0xbd")))return;const{id:i}=this[za("0x45")](o.markerName);s[za("0xd7")][za("0xb2")](["ck-suggestion-marker",za("0x7b")],r),s[za("0xd7")][za("0xe")](za("0x4"),i,r),s[za("0xa2")].bindElementToMarker(r,o.markerName),e&&(this[za("0xe8")][za("0xa1")](o[za("0x12c")])?s[za("0xd7")][za("0xb2")](za("0x41"),r):s[za("0xd7")][za("0x5f")]("ck-suggestion-marker--active",r));for(const e of t.model[za("0x4b")](o[za("0xb6")])[za("0xe2")]())s.consumable[za("0x7")](e,n[za("0xf9")]);s[za("0x48")].consume(o.item,n[za("0xf9")])};t[za("0x91")][za("0x99")](za("0x9c")).add((t=>{t.on("addMarker:suggestion:formatBlock",((t,e,o)=>{o.options.showSuggestionHighlights&&n({showActiveMarkers:!1})(t,e,o)}),{priority:za("0x102")})})),t[za("0x91")][za("0x99")](za("0x9c"))[za("0x84")]({model:"suggestion",view:(t,e)=>e[za("0x86")].showSuggestionHighlights?null:{group:za("0x132"),name:t.substr(11)}}),t[za("0x91")].for(za("0x12f")).elementToElement({view:{name:za("0x132"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=za("0x104")+t[za("0x94")](za("0xda"))+":"+t[za("0x94")]("id");return t[za("0x94")](za("0x89"))&&(n+=":"+t.getAttribute("marker-count")),e[za("0x1a")](za("0xc7"),{"data-name":n})}}),t[za("0x91")][za("0x99")](za("0x12f"))[za("0xc2")]({view:za("0x132")}),t.conversion[za("0x99")]("editingDowncast")[za("0x90")]((t=>{t.on(za("0x30"),n(),{priority:za("0x3e")})})),t.conversion.for(za("0x60"))[za("0x90")]((t=>{t.on(za("0x13c"),((t,e,n)=>{const o=n[za("0xa2")][za("0x34")](e[za("0x12c")]);if(o)for(const t of o)t.getCustomProperty(za("0xbd"))||(n.writer[za("0x5f")]([za("0x1d"),za("0x7b"),za("0x41")],t),n[za("0xd7")].removeAttribute("data-suggestion",t),n.mapper[za("0x137")](t,e[za("0x12c")]))}),{priority:za("0x3e")})})),t[za("0x1b")][za("0x101")][za("0x18")]((e=>{let n=!1;const o=Array[za("0xeb")](t[za("0x1b")][za("0x101")][za("0x20")][za("0xcb")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[za("0x45")](x);if(za("0x132")!==o)continue;const d=this[za("0x52")].get(l);if(null!=a[za("0xdd")])if("formatInline"==c&&(n=n||$a(a.newRange,x,e,t[za("0x1b")][za("0xd0")])),a[za("0xdd")][za("0xae")]||za("0xf4")==a[za("0xdd")][za("0x118")][za("0x110")]||"formatBlock"==c&&!Ja(a[za("0xdd")])||za("0xaf")==c&&(qa(i=a[za("0xdd")])||(r=i)[za("0xc3")].parent==r.end.nodeBefore&&r.start[za("0xc1")]))e[za("0x116")](x),n=!0;else{if(!d||!d[za("0x5")])continue;s[za("0x90")](d)}}var r,i;return s[za("0xb3")]>0&&(n=!!this[za("0x40")](s)||n),n})),t.model[za("0x101")][za("0x18")]((e=>{let n=!1;for(const o of t[za("0x1b")][za("0x101")].differ.getChanges()){if(za("0x8c")!=o[za("0x53")])continue;const s=o[za("0x21")][za("0x134")](o[za("0x70")]);if(s[za("0xc1")])for(const r of this[za("0x52")][za("0x133")]()){if(r[za("0x126")]||!r[za("0x5")])continue;if("formatBlock"!=r.type)continue;const i=r[za("0xdc")]();if(i[za("0xc3")].parent!=i[za("0x120")][za("0x12a")]&&i[za("0x120")][za("0x124")](o[za("0x21")])){const o=t.model[za("0x25")](i[za("0xc3")],s);e[za("0x6b")](r.getFirstMarker(),{range:o}),n=!0}}}return n})),t[za("0x1b")][za("0x4d")].on(za("0x73"),((t,e,n)=>{if(null==n){const{id:t}=this._splitMarkerName(e.name),n=this[za("0x52")].get(t);n&&n[za("0xd4")](e[za("0xf9")])}})),t[za("0x1b")].document.on(za("0x35"),(()=>{const e=Array[za("0xeb")](t[za("0x1b")].document.differ[za("0xcb")]())[za("0xfd")]((t=>za("0x132")===this[za("0x45")](t[za("0xf9")]).group));if(0===e[za("0x70")])return;e[za("0xc")](((t,e)=>{const n=t[za("0x3b")].oldRange,o=e[za("0x3b")][za("0x26")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[za("0xc3")][za("0x2b")](o.start)?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[za("0x45")](t);if(null===s[za("0x26")]){const e=this[za("0x93")](t);o[za("0x90")](e)}else{const t=this[za("0x52")][za("0xbf")](e);null!==s[za("0xdd")]||t.isInContent?(n[za("0x90")](t[za("0x61")]),o.add(t)):this._removeSuggestion(t)}}o[za("0xb3")]>0&&this[za("0xf")](o);for(const t of n)this[za("0xde")]("suggestionChanged",t)})),t[za("0x1b")].on(za("0x7c"),((e,n)=>{const o=n[0];if(!this[za("0x52")].size)return;if(!o[za("0x103")])return;if(o[za("0x82")].isUndo||!o.batch[za("0xd3")])return;let s,r;switch(o[za("0x53")]){case za("0x8c"):s=t[za("0x1b")][za("0xd")](o.position),r=s.getShiftedBy(o[za("0xbc")]);break;case za("0x3a"):s=t[za("0x1b")][za("0xd")](o[za("0x135")]),r=t[za("0x1b")][za("0xd")](o[za("0x2c")]);break;case za("0xb1"):s=t[za("0x1b")][za("0xd")](o[za("0x109")]),r=s.getShiftedBy(o[za("0xbc")]);break;default:return}const i=t[za("0x1b")][za("0x25")](s,r);t[za("0x1b")][za("0x7a")]((()=>{for(const{suggestion:t,meta:e}of this[za("0xed")](i)){if(t[za("0x126")])continue;if(za("0xdf")==t[za("0x53")])continue;const n=t[za("0x3b")]&&t[za("0x3b")][za("0xad")];(za("0xe6")!=t[za("0x53")]||za("0x3a")==o[za("0x53")]&&!n)&&(e[za("0x131")]||za("0x9d")==t[za("0x53")]&&e[za("0x49")]||t.getFirstRange()[za("0x23")](i)&&this._breakSuggestionMarker(t,s,r))}}))}),{priority:za("0x115")}),t[za("0x1b")].on(za("0x58"),((e,n)=>{const o=n[0],s=n[1];if(s&&s.forceDefaultExecution)return;if(this._isForcedDefaultExecutionBlock)return;if(!this.trackChangesCommand[za("0xa3")])return;if(o[za("0xae")])return;const r=t[za("0x1b")][za("0xd0")],{start:i,end:x}=o.getFirstRange(),a=i[za("0x57")]&&r[za("0xc8")](i[za("0x57")])?null:r[za("0x2f")](i,za("0x13")),c=x.nodeBefore&&r[za("0xc8")](x[za("0x63")])?null:r[za("0x2f")](x,za("0xd9")),l=t[za("0x1b")][za("0x25")](a?a[za("0xc3")]:i,c?c[za("0x120")]:x);t.model[za("0x7a")]((e=>{this[za("0x3f")](l);const n=t[za("0x1b")][za("0xd0")].getNearestSelectionRange(l[za("0xc3")]);o.is("documentSelection")?e[za("0x66")](n):o[za("0x13a")](n)})),e[za("0x10c")]()}),{priority:e.priorities[za("0x6a")]+10}),t.model.on("insertContent",((e,n)=>{const o=n[n.length-1];o&&o[za("0x105")]||this._isForcedDefaultExecutionBlock||this[za("0xa")][za("0xa3")]&&(t[za("0x1b")][za("0x7a")]((()=>{let o=t[za("0x1b")][za("0x11b")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[za("0x39")]=o[za("0x59")]();const s=o[za("0x120")][za("0x63")],r=t[za("0x1b")].schema;s&&r[za("0x75")](s)&&!r[za("0x2e")](s)&&(o=t[za("0x1b")][za("0x25")](o[za("0xc3")],t[za("0x1b")][za("0xd")](s,za("0x120")))),this.markInsertion(o)})),e[za("0x10c")]())}),{priority:za("0x3e")}),this[za("0x12")][za("0xff")][za("0x90")](za("0x1"),this.trackChangesCommand),this[za("0x8a")](za("0x1"));const o=new p(t,this._suggestions);t.commands.add("acceptSuggestion",o),this[za("0x8a")]("acceptSuggestion");const s=new C(t,this._suggestions);t[za("0xff")][za("0x90")](za("0x10d"),s),this.enableCommand(za("0x10d")),t[za("0xff")][za("0x90")](za("0x10e"),new F(t,o,this._suggestions)),this[za("0x8a")](za("0x10e")),t[za("0xff")][za("0x90")](za("0x51"),new F(t,s,this[za("0x52")])),this[za("0x8a")](za("0x51")),t[za("0xff")][za("0x90")]("acceptSelectedSuggestions",new U(t,o,this[za("0x52")])),this[za("0x8a")]("acceptSelectedSuggestions"),t[za("0xff")][za("0x90")](za("0x114"),new U(t,s,this[za("0x52")])),this[za("0x8a")](za("0x114"));const r=t[za("0x138")][za("0xbf")](za("0x6f"));this[za("0x9a")](r,"addComment",((t,{threadId:e})=>{const n=this._suggestions[za("0xbf")](e);n&&n[za("0x81")]&&1===n[za("0x81")][za("0x70")]&&this[za("0xd5")](e,{hasComments:!0})}),{priority:"low"}),this[za("0x9a")](r,za("0xe9"),((t,{threadId:e})=>{const n=this[za("0x52")][za("0xbf")](e);n&&n[za("0x81")]&&!n[za("0x81")][za("0x70")]&&this[za("0xd5")](e,{hasComments:!1})}),{priority:za("0xa5")})}set[za("0x10f")](t){if(this._adapter)throw new e.CKEditorError(za("0xa7"),this);this[za("0x5c")]=t}get[za("0x10f")](){return this[za("0x5c")]}[za("0xd8")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[za("0x52")][za("0x133")]())t&&!e[za("0x5")]||n[za("0x2d")](e);return e?n[za("0xb5")]((t=>t[za("0x8b")]())):n}getSuggestion(t){const n=this[za("0x52")].get(t);if(!n)throw new e.CKEditorError(za("0x11e"),this);return n}[za("0x50")](t){return this[za("0x52")][za("0x12e")](t)}[za("0xcc")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[za("0x53")][za("0x3a")](":"),i=this[za("0x52")].get(n)||this[za("0x141")](s,r,n,e,o);if(this._addThreadToSuggestion(i),this[za("0x38")](i,s,r||null,e),i[za("0xac")]=t.createdAt,i._isDataLoaded=!0,o&&o["@external"]){const t=o[za("0x31")],e=this[za("0xce")](t[za("0x4c")]);i.authoredAt=t.createdAt,i[za("0x32")]=e,i[za("0xee")]=!0}else i.authoredAt=t[za("0xac")];switch(t[za("0x3b")]&&(i.data=t[za("0x3b")]),t[za("0x56")]&&(i[za("0x56")]=t.attributes),this[za("0x5c")]&&this[za("0x5c")][za("0x17")]||(i[za("0x44")]=!0),this[za("0x69")][za("0xbf")](i)){case za("0x139"):this[za("0x69")][za("0xb7")](i,za("0x64"));break;case za("0x95"):i[za("0x5")]?(this[za("0xf")](new Set([i])),this[za("0x40")](new Set([i])),this._suggestionState[za("0xb7")](i,za("0x65")),this[za("0xde")](za("0x140"),i)):this[za("0x69")][za("0xb7")](i,"removed")}return i}[za("0x28")](t){this[za("0x105")]((()=>{this[za("0x12")][za("0x1b")][za("0x7a")]((()=>{for(const e of t.getAllAdjacentSuggestions())e.accept()}))}))}[za("0x10d")](t){this[za("0x105")]((()=>{this[za("0x12")][za("0x1b")][za("0x7a")]((()=>{for(const e of t[za("0x96")]())e[za("0x9b")]()}))}))}enableCommand(t,n){const o=this[za("0x12")][za("0xff")].get(t);if(!o)throw new e.CKEditorError(za("0x129"),this,{commandName:t});this[za("0xf7")][za("0x90")](o),n&&o.on("execute",((t,e)=>{this[za("0xa")][za("0xa3")]&&(this[za("0xb4")]||e[za("0x70")]>0&&e[e[za("0x70")]-1]&&e[e[za("0x70")]-1][za("0x105")]||(n(((...t)=>o[za("0xea")](...t,{forceDefaultExecution:!0})),...e),t[za("0x10c")]()))}),{priority:"high"})}[za("0x105")](t){let n,o;const s=this[za("0xb4")];this._isForcedDefaultExecutionBlock=!0;try{n=t()}catch(t){o=t}return s||(this[za("0xb4")]=!1),o&&e.CKEditorError[za("0x24")](o,this),n}markInsertion(t,n=null,o={}){if(t.isCollapsed)return null;const s=this[za("0x12")][za("0x138")][za("0xbf")](za("0x88")).me;for(const{suggestion:e,meta:s}of this._findSuggestions(t,za("0x9d")))if(s[za("0x49")]){if(!s.isNextTo){if(s[za("0x131")]){if(!this._mergeNestedSuggestions||!tc(e,o))continue;return e}if(tc(e,o))return e;this._breakSuggestionMarker(e,t[za("0xc3")],t[za("0x120")]);break}if(n==e[za("0x85")]&&tc(e,o)){const n=e[za("0xdc")]();return n.start.isEqual(t[za("0x120")])?this[za("0x79")](e,this[za("0xba")].createRange(t[za("0xc3")],n[za("0x120")])):this[za("0x79")](e,this[za("0xba")][za("0x25")](n[za("0xc3")],t[za("0x120")])),e}}const r=(0,e.uid)(),i=s.id,x=n?za("0x13d")+n:"insertion",a=this[za("0x3d")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0xc4")](x,r,i,t),a}[za("0xcf")](t,n="multi",o={}){const s=this[za("0x12")][za("0x138")][za("0xbf")](za("0x88")).me,r=this[za("0xf3")][za("0x100")](za("0x9d"),n,za("0x80"));for(const e of this[za("0xd8")]())if(e.author.id==s.id&&za("0x9d")==e.type&&e[za("0x85")]==n&&tc(e,o)&&(r(e[za("0x9")](),t)||r(t,e[za("0x9")]()))){for(const n of t)e.addRange(n);return e}for(const{suggestion:e,meta:n}of this._findSuggestions(t,za("0x9d"))){if(!n[za("0x49")])continue;if(!this[za("0x7d")]&&n.containsRangeInObject)continue;if(!tc(e,o))continue;let s=!0;for(const n of e[za("0x9")]())for(const e of t)if(!n[za("0x23")](e)){s=!1;break}if(s)return e}const i=(0,e.uid)(),x=s.id,a="insertion:"+n,c=this[za("0x3d")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[za("0xc4")](a,i,x,e,Zo[za("0x76")]());return c}[za("0x5b")](t,n,o=null,s={}){if(o=o||Xa(n),t[za("0xae")])return null;if(za("0xca")===this[za("0xd6")]){const e=this[za("0xf3")][za("0x100")](za("0xdf"),o,za("0x27"));return this[za("0x105")]((()=>e([t],n,s))),null}const r=this[za("0x12")][za("0x138")][za("0xbf")]("Users").me,i=[];if("always"!==this[za("0xd6")])for(const{suggestion:e,meta:n}of this[za("0xed")](t,za("0x9d")))n[za("0x49")]&&!n.isInsideObject&&i[za("0x2d")](...e[za("0x9")]());const x=function(t,e){const n=[];for(const o of e){const e=t[za("0x12b")](o);e&&n[za("0x2d")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[za("0x70")];){const o=n[e][za("0x123")](t);n[za("0xf2")](e,1,...o),e+=o.length}}return n}(t,i);x[za("0x70")]&&this._model[za("0x7a")]((()=>{for(const t of x){const e=this[za("0xf3")][za("0x100")](za("0xdf"),o,za("0x27"));this[za("0x105")]((()=>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("0xed")](t,za("0xdf"))){if(!n.isOwn)continue;if(e[za("0x85")]!=o)continue;if(!tc(e,s))continue;const r=e.getFirstRange();if(r[za("0x23")](t,!0))return null;x=x[za("0x2b")](r[za("0xc3")])?x:r.start,a=a.isAfter(r.end)?a:r[za("0x120")],i?r[za("0xc3")][za("0x2b")](i.getFirstRange().start)?(i[za("0x11")](),i=e):e[za("0x11")]():i=e}const c=this[za("0xba")][za("0x25")](x,a);if(i)this._setSuggestionRange(i,c);else{const t=(0,e.uid)(),i=r.id;this[za("0x3d")]({id:t,type:"formatInline:"+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[za("0xc4")](za("0x13e")+o,t,i,c)}}return null}[za("0xa9")](t,n,o=[],s=null,r={}){n[za("0x108")]||(n[za("0x108")]=n[za("0x1f")]),n[za("0xad")]=t.is("range"),s=s||Xa(n);const i=o[za("0xb5")]((t=>Qa(t,this._model))),x=t.is(za("0x87"))?t:Qa(t,this[za("0xba")]);if(za("0xca")===this[za("0xd6")]){const t=this[za("0xf3")][za("0x100")](za("0xe6"),s,"accept");return this[za("0x105")]((()=>t([x],n,r))),null}i.push(x);let a=!0;for(const t of i)if(!this[za("0x112")](t)){a=!1;break}if(a&&za("0xf5")!==this[za("0xd6")]){const t=this._suggestionFactory[za("0x100")](za("0xe6"),s,za("0x27"));return this[za("0x105")]((()=>t([x],n,r))),null}let c=null,l=x[za("0xc3")],d=x[za("0x120")];for(const{suggestion:t,meta:e}of this[za("0xed")](x,za("0xe6"))){if(!e[za("0x49")])continue;if(e[za("0x4f")]||e[za("0x131")]||e.isInsideObject)continue;if(t[za("0x3b")][za("0x108")]!=n[za("0x108")])continue;if(!tc(t,r))continue;const o=t[za("0xdc")]();if(t[za("0x85")]==s){if(o[za("0x23")](x,!0))return null;l=l.isBefore(o[za("0xc3")])?l:o.start,d=d[za("0xfa")](o[za("0x120")])?d:o.end,c?o[za("0xc3")][za("0x2b")](c[za("0xdc")]().start)?(c[za("0x11")](),c=t):t[za("0x11")]():c=t}else{const e=x.getIntersection(o);this[za("0xfb")](t,e)}}const u=this.editor[za("0x138")][za("0xbf")](za("0x88")).me,g=(0,e.uid)(),m=u.id;if(c)return this[za("0x79")](c,this._model[za("0x25")](l,d)),c;{const t=this[za("0x3d")]({id:g,type:za("0xc6")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[za("0xc4")](za("0xc6")+s,g,m,this[za("0xba")][za("0x25")](l,d)),t}}[za("0xbb")](t,n,o=[],s=null,r={}){n[za("0x108")]||(n.formatGroupId=n.commandName);const i=t[0];n[za("0xad")]=i.is("range"),s=s||Xa(n);const x=o.map((t=>Qa(t,this[za("0xba")]))),a=i.is(za("0x87"))?t:t.map((t=>Qa(t,this[za("0xba")])));if(za("0xca")===this._trackFormatChanges){const t=this[za("0xf3")][za("0x100")](za("0xe6"),s,za("0x27"));return this.forceDefaultExecution((()=>t(a,n,r))),null}x[za("0x2d")](...a);let c=!0;for(const t of x)if(!this[za("0x112")](t)){c=!1;break}if(c&&"always"!==this[za("0xd6")]){const t=this[za("0xf3")][za("0x100")](za("0xe6"),s,za("0x27"));return this[za("0x105")]((()=>t(a,n,r))),null}const l=this[za("0x12")][za("0x138")][za("0xbf")](za("0x88")).me;for(const t of this[za("0xd8")]()){if(t[za("0x32")].id!=l.id)continue;if(za("0xe6")!=t[za("0x53")]||t[za("0x3b")][za("0x108")]!=n[za("0x108")])continue;if(!tc(t,r))continue;const e=t[za("0x85")]==s;for(let n=0;n<a[za("0x70")];n++){const o=a[n];for(const s of t.getMarkers()){const r=s.getRange();if(o[za("0x124")](r)){e?(a[za("0xf2")](n,1),n--):t[za("0x116")](s[za("0xf9")]);break}}}}if(0==a[za("0x70")])return null;const d=this[za("0xf3")].getSuggestionCallback(za("0xe6"),s,za("0x80"));for(const t of this[za("0xd8")]())if(t[za("0x32")].id==l.id&&"formatBlock"==t[za("0x53")]&&t[za("0x3b")].formatGroupId==n.formatGroupId&&t.subType==s&&tc(t,r)&&(d(t[za("0x9")](),a)||d(a,t.getRanges()))){for(const e of a)t[za("0x67")](e);return t}const u=(0,e.uid)(),g=l.id,m=za("0xc6")+s,f=this[za("0x3d")]({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this._addSuggestionMarker(m,u,g,t,Zo[za("0x76")]());return f}markDeletion(t,n=null,o={}){if(t[za("0xae")])return null;const s=this[za("0x12")][za("0x138")][za("0xbf")](za("0x88")).me,r=new i.LiveRange(t.start,t[za("0x120")]);for(const{suggestion:t,meta:e}of this[za("0xed")](r,za("0x9d")))if(e[za("0x49")]&&!e[za("0x4f")])if(t.isMultiRange){const e=t[za("0x9")]()[za("0xfd")]((t=>"$graveyard"!=t[za("0x118")].rootName));if(e[za("0xe3")]((t=>r[za("0x23")](t,!0)))&&t.discard(),e[za("0x14")]((t=>t[za("0x23")](r,!0)))){const t=this[za("0xf3")].getSuggestionCallback("deletion",n,"accept");return this[za("0x105")]((()=>t([r],null,o))),null}}else{const e=r[za("0x12b")](t[za("0xdc")]());null!==e&&t[za("0xd2")]([e],null,o)}if(r.detach(),r[za("0xae")]||"$graveyard"==r[za("0x118")].rootName)return null;let x=null,a=r[za("0xc3")],c=r[za("0x120")];const l=this[za("0xed")](r,za("0xaf"));for(const{suggestion:t,meta:e}of l){const n=this[za("0xba")][za("0x25")](a,c);if(e[za("0x49")]&&(this[za("0x7d")]||!e[za("0x131")]&&!e[za("0x74")]))if(t[za("0x126")]){if(!tc(t,o))continue;let e=!0;for(const o of t[za("0x9")]()){if(o[za("0x23")](n,!0))return t;n[za("0x23")](o)||(e=!1)}e&&t.discard()}else{const e=t[za("0xdc")]();if(e[za("0x23")](n,!0))return t;if(!tc(t,o)){n[za("0x23")](e)?t[za("0x11")]():e[za("0x12d")](a)?a=e[za("0x120")]:e[za("0x12d")](c)&&(c=e[za("0xc3")]);continue}a=a[za("0x2b")](e[za("0xc3")])?a:e[za("0xc3")],c=c[za("0xfa")](e[za("0x120")])?c:e[za("0x120")],o=Object[za("0xc0")]({},t.attributes),x?e[za("0xc3")][za("0x2b")](x.getFirstRange().start)?(x.removeMarkers(),x=t):t[za("0x11")]():x=t}}if(x)return this[za("0x79")](x,this[za("0xba")][za("0x25")](a,c)),x;{const t=(0,e.uid)(),r=this[za("0xba")][za("0x25")](a,c),i=s.id,x=n?za("0x43")+n:"deletion",l=this[za("0x3d")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0xc4")](x,t,i,r),l}}[za("0x16")](t,n="multi",o={}){const s=this[za("0x12")][za("0x138")][za("0xbf")]("Users").me,r=t[za("0xb5")]((t=>new i.LiveRange(t.start,t[za("0x120")]))),x=new Set;for(const{suggestion:t,meta:e}of this[za("0xed")](r,za("0x9d")))e[za("0x49")]&&!e[za("0x4f")]&&x[za("0x90")](t);for(const e of x)if(e.isMultiRange){const s=e[za("0x9")]();if((!e.attributes||!e[za("0x56")][za("0x4e")])&&s[za("0xe3")]((t=>r[za("0x14")]((e=>e.containsRange(t,!0)))))&&e.discard(),r.every((t=>s[za("0x14")]((e=>e.containsRange(t,!0)))))){const e=this._suggestionFactory[za("0x100")]("deletion",n,za("0x27"));return this[za("0x105")]((()=>e(t,null,o))),null}}else{const t=e[za("0xdc")]();if(r[za("0x14")]((e=>e.containsRange(t,!0)))&&e.discard(),r[za("0xe3")]((e=>t[za("0x23")](e,!0)))){const t=this[za("0xf3")][za("0x100")](za("0xaf"),n,"accept");return this.forceDefaultExecution((()=>t(r,null,o))),null}}const a=this[za("0xf3")].getSuggestionCallback(za("0xaf"),n,"join");let c=null;for(const t of this[za("0xd8")]())if(t[za("0x32")].id==s.id&&t[za("0x5")]&&za("0xaf")==t[za("0x53")]&&t.subType==n&&tc(t,o)&&(a(t.getRanges(),r)||a(r,t.getRanges())))if(c){if(t[za("0x81")]&&t.commentThread[za("0x70")])continue;for(const e of t.getRanges())c[za("0x10")](e)||c[za("0x67")](e);t[za("0x11")]()}else{c=t;for(const e of r)t[za("0x10")](e)||t[za("0x67")](e)}if(c)return c;x[za("0x136")]();for(const{suggestion:t,meta:e}of this[za("0xed")](r,za("0xaf")))e[za("0x49")]&&(this[za("0x7d")]||!e[za("0x131")]&&!e[za("0x74")])&&tc(t,o)&&x.add(t);for(const t of x){const e=t[za("0x9")]();if((!o||!o[za("0x4e")])&&r[za("0xe3")]((t=>e[za("0x14")]((e=>e.containsRange(t,!0))))))return t;(!t[za("0x56")]||!t[za("0x56")][za("0x4e")])&&e[za("0xe3")]((t=>r[za("0x14")]((e=>e[za("0x23")](t,!0)))))&&t.discard()}const l=(0,e.uid)(),d=s.id,u="deletion:"+n,g=this._setSuggestionData({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t.detach(),t.isCollapsed||"$graveyard"==t.root.rootName||this._addSuggestionMarker(u,l,d,t,Zo.getMultiRangeId());return g}_setSuggestionRange(t,e){const n=t.getFirstMarker();this[za("0xba")][za("0x7a")]((t=>{t[za("0x6b")](n,{range:e})}))}[za("0xaa")](t){const e=t.id,n=this[za("0x12")][za("0x71")][za("0xbf")](za("0x8e"));this[za("0x10b")].hasCommentThread(e)||this._commentsRepository.addCommentThread({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[za("0x10b")][za("0x13f")](e);o[za("0x117")](za("0xa6")),o[za("0xa6")]=!1,t.commentThread=o}[za("0x38")](t,n,o,s){if(t[za("0x53")]!=n||t[za("0x85")]!=o||t[za("0x2a")].id!=s)throw this[za("0x12")][za("0x125")](za("0x7e")),new e.CKEditorError(za("0x7e"),this)}_cutOutSuggestionMarker(t,n){const o=t[za("0xdc")]();if(n[za("0x124")](o))t[za("0x11")]();else if(o[za("0x23")](n)){const s=this._model[za("0xd")](n[za("0xc3")][za("0x63")],za("0x120"));this._setSuggestionRange(t,this[za("0xba")][za("0x25")](o[za("0xc3")],s));const r=(0,e.uid)(),i=t[za("0x2a")].id,x=t[za("0x53")]+":"+t[za("0x85")];this[za("0x3d")]({id:r,type:x,createdAt:new Date,authorId:i,data:t[za("0x3b")],attributes:t.attributes});const a=this[za("0xba")][za("0xd")](n.end[za("0x12a")],za("0xf0")),c=this[za("0xba")][za("0x25")](a,o[za("0x120")]);this[za("0xc4")](x,r,i,c)}else if(o.containsPosition(n[za("0xc3")])){const e=this[za("0xba")].createPositionAt(n[za("0xc3")][za("0x63")],za("0x120"));this._setSuggestionRange(t,this[za("0xba")].createRange(o.start,e))}else{const e=this[za("0xba")].createPositionAt(n[za("0x120")].parent,"after");this[za("0x79")](t,this[za("0xba")][za("0x25")](e,o[za("0x120")]))}}[za("0x112")](t){for(const{suggestion:e,meta:n}of this[za("0xed")](t,za("0x9d"))){if(!n[za("0x49")])continue;const o=e[za("0x9")]();for(const e of o)if(!t.getDifference(e)[za("0x70")])return!0}return!1}[za("0xfc")](t){const n=this[za("0x12")].plugins[za("0xbf")](za("0x88"))[za("0x11c")](t);if(!n)throw new e.CKEditorError("track-changes-user-not-found",this);return n}[za("0xce")](t){const e=this.editor[za("0x138")][za("0xbf")](za("0x88")),n=(0,r.hashObject)(za("0xcd")+t);return e[za("0x11c")](n)||e.addUser({id:n,name:t})}[za("0x141")](t,e,n,o,s){const r=this[za("0xfc")](o),i=this[za("0xf3")].buildSuggestion(t,e,n,r,s,(t=>this[za("0xd5")](n,{attributes:t})));return this.listenTo(i,za("0x27"),(()=>{this[za("0xd5")](n,{state:"accepted"})}),{priority:za("0x3e")}),this[za("0x9a")](i,za("0x9b"),(()=>{this._updateSuggestionData(n,{state:za("0x113")})}),{priority:"high"}),this._suggestions.set(n,i),this[za("0x69")][za("0xb7")](i,za("0x139")),i}_splitMarkerName(t){const e=t[za("0x3a")](":");return{group:e[0],type:e[1],subType:e[za("0x70")]>=5?e[2]:null,id:e[za("0x70")]<5?e[2]:e[3],authorId:e[za("0x70")]<5?e[3]:e[4],markerCount:6==e[za("0x70")]?e[5]:null}}[za("0xd1")](t,n,o){const s=t[za("0xdc")](),r=s[za("0xc3")],i=s[za("0x120")];this[za("0x79")](t,this._model[za("0x25")](r,n));const x=(0,e.uid)(),a=t.creator.id,c=t[za("0x53")]+(t.subType?":"+t[za("0x85")]:"");this[za("0x3d")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[za("0x56")],data:t[za("0x3b")]}),za("0xe6")==t[za("0x53")]&&(o=this[za("0xba")][za("0x83")](o[za("0x12a")])),this[za("0xc4")](c,x,a,this[za("0xba")][za("0x25")](o,i))}_findSuggestions(t,e=null){const n=[],o=this.editor[za("0x138")][za("0xbf")]("Users").me;Array[za("0x8d")](t)||(t=[t]);for(const s of this[za("0xd8")]()){if(!s[za("0x5")])continue;if(e&&s.type!=e)continue;let r=!1;for(const e of s.getRanges()){for(const i of t){const t=i[za("0xc3")][za("0x124")](e[za("0x120")])||i[za("0x120")][za("0x124")](e[za("0xc3")]);if(t||i[za("0x12b")](e)){const x=i[za("0x23")](e)&&Ka(this[za("0xba")][za("0xd0")],e.start,i),a=e.containsRange(i)&&Ka(this[za("0xba")][za("0xd0")],i[za("0xc3")],e);n[za("0x2d")]({suggestion:s,meta:{isOwn:o==s[za("0x32")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),r=!0;break}}if(r)break}}return n}_addSuggestionMarker(t,e,n,o,s){this._model[za("0x7a")]((r=>{let i=za("0x104")+t+":"+e+":"+n;s&&(i=i+":"+s),r.addMarker(i,{range:o,usingOperation:!0,affectsData:!0})}))}[za("0x7f")](t){const e=t[za("0x5e")],n=t[za("0xb8")];t[za("0x5e")]=null,null!=e&&(e[za("0xb8")]=null),t[za("0xb8")]=null,null!=n&&(n[za("0x5e")]=null),za("0x65")==this[za("0x69")][za("0xbf")](t)&&(this[za("0x69")][za("0xb7")](t,za("0x121")),this.fire(za("0x3c"),t,e,n))}[za("0x3d")](t){const n=t.id,o=this[za("0xcc")](t);if(this[za("0x5c")]&&this[za("0x5c")].addSuggestion){const s=this[za("0x12")].plugins[za("0xbf")](za("0x107")),r=o[za("0xe0")],i=o[za("0x85")]?o[za("0x53")]+":"+o[za("0x85")]:o.type,x=this.editor.locale,a=s[za("0x90")](Yo(x,za("0x46"))),c={id:n,type:i,hasComments:r,data:t[za("0x3b")]||null,originalSuggestionId:t[za("0x11d")]||null,attributes:o.attributes};this[za("0x5c")][za("0x17")](c)[za("0x11a")]((t=>{o._saved=!0,s[za("0x130")](a),t&&t[za("0xac")]&&(this[za("0x52")].get(n).createdAt=t[za("0xac")])}))[za("0x11f")]((t=>{throw(0,e.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this[za("0x12")][za("0x1b")].enqueueChange({isUndoable:!1},(()=>{o.discard()})),o[za("0xb")](),this._suggestions[za("0x5a")](o.id),this[za("0x69")][za("0x5a")](o),t}))}return o}_updateSuggestionData(t,e){const n=this[za("0x12")][za("0x138")][za("0xbf")](za("0x107")),o=this[za("0x54")](t);if(this[za("0x5c")]&&this[za("0x5c")].updateSuggestion)if(o[za("0x44")]){const o=n[za("0x90")](Yo(this.editor[za("0xa8")],"PENDING_ACTION_SUGGESTION"));this._adapter[za("0x2")](t,e).then((()=>{n[za("0x130")](o)}))}else o.on(za("0x122"),(()=>{this[za("0xd5")](t,e)}))}_getSuggestionData(t){if(!this._adapter||!this[za("0x5c")][za("0x54")])throw new e.CKEditorError("track-changes-adapter-missing-getsuggestion",this);return this._adapter.getSuggestion(t)}[za("0x93")](t){const{id:e,type:n,subType:o,authorId:s}=this[za("0x45")](t),r=this[za("0x52")][za("0xbf")](e)||this[za("0x141")](n,o,e,s,{});switch(this[za("0x38")](r,n,o,s),this[za("0x69")][za("0xbf")](r)){case za("0x139"):this[za("0xb9")](e).then((t=>{let n=Promise[za("0x106")]();t[za("0xe0")]&&(n=this._commentsRepository.fetchCommentThread({channelId:this.editor[za("0x71")].get(za("0x8e")),threadId:e})),n.then((()=>{this[za("0xcc")](t)[za("0x44")]=!0}))})),this._suggestionState.set(r,za("0x95"));break;case za("0x121"):this[za("0xd5")](e,{state:"open"});case"dataReady":this[za("0x69")][za("0xb7")](r,za("0x65")),this.fire(za("0x140"),r);break;case za("0x65"):this[za("0xde")](za("0xf1"),r)}return r[za("0xd4")](t),r}_refreshSuggestionsChain(t){const e=Array[za("0xeb")](t)[za("0xfd")]((t=>!t.isMultiRange)),n=this[za("0xd8")]({skipNotAttached:!0}).filter((t=>!t[za("0x126")])),o=n[za("0xfd")]((e=>!t[za("0x12e")](e))),s=new Map(n[za("0xb5")]((t=>[t,this[za("0xf3")][za("0x100")](t[za("0x53")],t.subType,za("0x19"))]))),r=new Map(n.map((t=>[t,t.getFirstRange()]))),i=new Set,x=new Set;for(let t=0;t<e.length;t++)a(e[t],e,t+1);for(let t=0;t<e.length;t++)a(e[t],o,0);for(let t=0;t<e[za("0x70")];t++){const n=e[t];!x[za("0x12e")](n)&&n[za("0x5e")]&&(n[za("0x5e")][za("0xb8")]===n&&(n[za("0x5e")][za("0xb8")]=null),n[za("0x5e")]=null),!i.has(n)&&n[za("0xb8")]&&(n[za("0xb8")][za("0x5e")]===n&&(n[za("0xb8")][za("0x5e")]=null),n[za("0xb8")]=null)}function a(t,e,n){for(let o=n;o<e[za("0x70")];o++){const n=c(t,e[o]);n&&(n[0][za("0xb8")]=n[1],n[1].previous=n[0],i[za("0x90")](n[0]),x[za("0x90")](n[1]))}}function c(t,e){if(t[za("0x32")].id!==e[za("0x32")].id)return null;const n=s.get(t)(t,e,r[za("0xbf")](t),r.get(e));return n&&s[za("0xbf")](e)(t,e,r[za("0xbf")](t),r[za("0xbf")](e))?n[1][za("0x81")]&&n[1][za("0x81")][za("0x70")]?null:n:null}}[za("0x40")](t){const e=Array[za("0xeb")](t),n=this[za("0xd8")]({skipNotAttached:!0}),o=n[za("0xfd")]((e=>!t[za("0x12e")](e))),s=new Map(e[za("0xb5")]((t=>[t,this._suggestionFactory[za("0x100")](t[za("0x53")],t[za("0x85")],"join")]))),r=new Map(n[za("0xb5")]((t=>[t,t.getRanges()])));for(let t=0;t<e.length;t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[za("0x70")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n.length;i++){const o=n[i];if(o.type!==e[za("0x53")]||o[za("0x32")].id!==e[za("0x32")].id||o.subType!==e[za("0x85")])continue;if(!Ya(e,o))continue;const x=s.get(e),a=r[za("0xbf")](e),c=r.get(o),l=e[za("0x81")]&&e[za("0x81")].length,d=o[za("0x81")]&&o[za("0x81")][za("0x70")];if(!l&&x(c,a))return t[za("0x0")](o,e),r[za("0x5a")](e),!0;if(!d&&x(a,c))return t[za("0x0")](e,o),r[za("0x5a")](o),!0}return!1}}[za("0x0")](t,e){if(t[za("0x126")])for(const n of e.getRanges())t.addRange(n);else{const n=e.getFirstRange()[za("0x120")];this[za("0x79")](t,this[za("0xba")][za("0x25")](t.getFirstRange().start,n))}e[za("0x11")]()}}class Wa{constructor(t){this[za("0x36")]=t,this[za("0xba")]=t[za("0x1b")],this[za("0x6c")]=new Map,this[za("0x1e")]=new Map,this[za("0x111")]()}[za("0x47")](t,e,n,o,s,r){return new Zo(this[za("0xba")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[za("0x100")](t,e,"accept")(...n),onDiscard:(...n)=>this[za("0x100")](t,e,za("0x9b"))(...n)})}[za("0xa0")](t,e,n,o){const s=t+":"+e+":"+n;this[za("0x6c")].set(s,o)}[za("0x100")](t,e,n){const o=t+":"+e+":"+n;return this._customCallbacks[za("0xbf")](o)||this[za("0x1e")][za("0xbf")](t+":"+n)}[za("0x111")](){const t=()=>!1,e=t=>{t[za("0xc")](((t,e)=>t[za("0xc3")][za("0x2b")](e[za("0xc3")])?1:-1)),this[za("0xba")][za("0x7a")]((e=>{for(const n of t){let t;t=n.end[za("0xc1")]&&n[za("0x120")].parent==n[za("0xc3")][za("0x57")]?e[za("0x5d")](n[za("0xc3")][za("0x57")],"on"):e[za("0x5d")](n),this._model.deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this._model[za("0x7a")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[za("0xb5")]((t=>(qa(t)&&(t=this._model[za("0x25")](t[za("0x120")])),t)))[za("0xfd")]((t=>za("0xf4")!==t[za("0x118")][za("0x110")]));if(r[za("0x70")]<1)return;const x=Array[za("0xeb")](this[za("0xba")][za("0x101")][za("0x22")].getRanges())[za("0xb5")]((t=>i.LiveRange[za("0xef")](t)));n[za("0x66")](r);for(const t of this[za("0x36")][za("0xff")][za("0xff")]())t[za("0xbe")]();s[za("0x2d")]({forceDefaultExecution:!0}),this[za("0x36")][za("0xea")](o,...s);const a=x[za("0xfd")]((t=>za("0xf4")!=t[za("0x118")][za("0x110")]));a[za("0x70")]>0&&n[za("0x66")](a);for(const t of x)t[za("0x9e")]()}))},o=(t,e)=>1==t[za("0x70")]&&1==e[za("0x70")]&&t[0][za("0x120")][za("0x124")](e[0][za("0xc3")]),s=(t,e,n,o)=>Za(t,e,n,o,this[za("0xba")])?[t,e]:Za(e,t,o,n,this[za("0xba")])?[e,t]:null;this._defaultCallbacks[za("0xb7")]("insertion:accept",t),this[za("0x1e")][za("0xb7")](za("0x72"),e),this[za("0x1e")].set(za("0x6"),o),this[za("0x1e")].set(za("0x78"),s),this[za("0x1e")][za("0xb7")](za("0xe1"),e),this[za("0x1e")][za("0xb7")](za("0xb0"),t),this._defaultCallbacks[za("0xb7")](za("0x97"),o),this[za("0x1e")][za("0xb7")](za("0xc9"),s),this._defaultCallbacks.set("formatInline:accept",n),this[za("0x1e")][za("0xb7")](za("0xe7"),t),this[za("0x1e")][za("0xb7")](za("0xc5"),o),this[za("0x1e")][za("0xb7")](za("0x10a"),t),this[za("0x1e")][za("0xb7")](za("0x127"),n),this[za("0x1e")][za("0xb7")]("formatBlock:discard",t),this[za("0x1e")].set(za("0x3"),o),this[za("0x1e")][za("0xb7")]("formatBlock:chain",t)}}function Ka(t,e,n){for(const o of e.parent[za("0x42")]({includeSelf:!0,parentFirst:!0})){if(o.root==o)return!1;if(!n[za("0x77")](o))return!1;if(t[za("0x2e")](o)||t[za("0xc8")](o))return!0}return!1}function qa(t){return t[za("0x120")][za("0x12a")]==t[za("0xc3")][za("0x57")]&&t.end[za("0x1c")]}function $a(t,e,n,o){const s=t=>!t[za("0xb6")].is(za("0x6d"))&&!o[za("0x2e")](t.item),r=t.start[za("0x4a")](s),i=t[za("0x120")][za("0x4a")](s,{direction:za("0xd9")});return!(t[za("0xc3")].isEqual(r)&&t[za("0x120")][za("0x124")](i)||(r.isBefore(i)?n.updateMarker(e,{range:n.createRange(r,i)}):n[za("0x116")](e),0))}function Xa(t){return(0,r.hashObject)(t)}function Ja(t){const e=t[za("0xc3")].nodeAfter;return e&&e.is("element")}function Qa(t,e){const n=e[za("0xd0")].isObject(t)||e[za("0xd0")][za("0x8f")](t);return e.createRange(e[za("0xd")](t,za("0xf6")),n?e.createPositionAfter(t):e[za("0xd")](t,za("0x120")))}function Za(t,e,n,o,s){if(!Ya(t,e))return!1;if(n[za("0x120")][za("0x124")](o[za("0xc3")]))return!0;if(t[za("0x53")]!=e[za("0x53")])return!1;if(!n[za("0x120")][za("0x119")](o[za("0xc3")]))return!1;const r=s.createRange(n[za("0x120")],o.start)[za("0x62")]();for(const t of r)if([za("0x13b"),za("0x6e")][za("0xa1")](t.type)&&s.schema[za("0xc8")](t[za("0xb6")]))return!1;return!0}function Ya(t,e){return!(!t._isDataLoaded||!e[za("0x37")])&&Go(t[za("0x56")],e[za("0x56")])}function tc(t,e){const n=ec(t[za("0x56")]),o=ec(e);if(!t[za("0x37")])return!1;for(const t of Object[za("0x8")](o))if(!Go(n[t],o[t]))return!1;return!0}function ec(t){const e=Object[za("0xc0")]({},t);return delete e[za("0x4e")],delete e.tablePasteChainId,e}const nc=["commands","_setPendingAction","stopListening","listenTo","acceptSuggestion","unbind","isDirty","bind","getRanges","view","get","discardSuggestion","model","_discardCommand","_removePendingAction","canAccept","execute","_pendingAction","_acceptCommand","canDiscard","isEnabled","locale","plugins","PendingActions","canEditAt","_editor","destroy","commentThreadController"];var oc,sc;oc=nc,sc=174,function(t){for(;--t;)oc.push(oc.shift())}(++sc);const rc=function(t,e){return nc[t-=0]};class ic extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[rc("0x6")]=e,this[rc("0x3")]=n,this[rc("0x15")]=o,this[rc("0x13")]=t,this[rc("0xc")]=t[rc("0x16")][rc("0x4")]("acceptSuggestion"),this[rc("0x7")]=t.commands[rc("0x4")](rc("0x5")),this[rc("0x3")].bind(rc("0xe")).to(this[rc("0xc")],this[rc("0x7")],((t,e)=>t||e)),this[rc("0x3")][rc("0x1")](rc("0x9")).to(this[rc("0xc")],rc("0xe"),(t=>t&&this[rc("0x13")][rc("0x6")][rc("0x12")](e[rc("0x2")]()))),this[rc("0x3")].bind(rc("0xd")).to(this._discardCommand,rc("0xe"),(t=>t&&this[rc("0x13")].model[rc("0x12")](e[rc("0x2")]()))),this[rc("0xb")]=null,n.isDirty&&this[rc("0x17")](),this[rc("0x19")](n,"acceptSuggestion",(()=>this[rc("0x1a")]())),this[rc("0x19")](n,rc("0x5"),(()=>this[rc("0x5")]())),this[rc("0x19")](n,"change:isDirty",(()=>{n[rc("0x0")]?this[rc("0x17")]():this._removePendingAction()}))}[rc("0x1a")](){this[rc("0xc")][rc("0xa")](this.model.id)}discardSuggestion(){this[rc("0x7")][rc("0xa")](this[rc("0x6")].id)}destroy(){this[rc("0x3")][rc("0x1b")](rc("0xe")),this[rc("0x3")].unbind("canAccept"),this[rc("0x3")][rc("0x1b")](rc("0xd")),this[rc("0x18")](),this[rc("0x15")][rc("0x14")](),this[rc("0xb")]&&this[rc("0x8")]()}[rc("0x17")](){const t=Yo(this._editor[rc("0xf")],"PENDING_ACTION_SUGGESTION");this[rc("0xb")]=this[rc("0x13")][rc("0x10")][rc("0x4")](rc("0x11")).add(t)}[rc("0x8")](){null!==this[rc("0xb")]&&this[rc("0x13")][rc("0x10")][rc("0x4")]("PendingActions").remove(this._pendingAction),this[rc("0xb")]=null}}const xc=["editorConfig","isEnabled","canDiscard","_config","addComment","_model","canAccept","isActive","submit","element","descriptionParts","isReadOnly","destroy","value","hasDirtyComment","focus","cancel","_createCommentViews","commentInputView","bind","_createCommentThreadInputView","editor","updateComment","setData","length","commentThreadInputView","commentThread","disabledSubmit","authoredAt","CommentView","fire","locale","isDirty","_localUser","set","commentsListView"];var ac,cc;ac=xc,cc=169,function(t){for(;--t;)ac.push(ac.shift())}(++cc);const lc=function(t,e){return xc[t-=0]};class dc extends s.View{constructor(t,e,n,o){super(t),this[lc("0xa")]=null,this[lc("0x0")]=null,this[lc("0x9")](lc("0x12"),!1),this.set(lc("0x3"),e[lc("0x3")]),this.bind(lc("0x3")).to(e),this.set(lc("0x15"),[]),this.set(lc("0x7"),!1),this[lc("0x9")](lc("0xc"),!1),this[lc("0x9")](lc("0x11"),!1),this.set(lc("0xd"),!1),this[lc("0x10")]=e,this[lc("0x8")]=n,this._config=o,o.disableComments?this[lc("0x9")]("length",1):this[lc("0x1c")]()}focus(){this[lc("0x14")].focus()}destroy(){this[lc("0xa")]&&this.commentsListView.destroy(),this[lc("0x0")]&&this[lc("0x0")][lc("0x17")](),super.destroy()}[lc("0x1c")](){const{CommentsListView:t}=this[lc("0xe")];this[lc("0xa")]=new t(this[lc("0x6")],this[lc("0x10")][lc("0x1")],Object.assign({CommentView:this._config[lc("0x4")]},this[lc("0xe")])),this[lc("0xa")].delegate("removeComment").to(this),this[lc("0xa")].delegate(lc("0x21")).to(this),this[lc("0xa")][lc("0x1e")](lc("0x12")).to(this),this[lc("0x9")](lc("0x23"),this[lc("0xa")][lc("0x23")]+1),this[lc("0x1e")](lc("0x23")).to(this[lc("0xa")],lc("0x23"),(t=>t+1)),this.commentThreadInputView=this[lc("0x1f")](),this.on("removeComment",(()=>this[lc("0x1a")]())),this[lc("0x1e")](lc("0x7")).to(this.commentsListView,lc("0x19"),this.commentThreadInputView[lc("0x1d")],lc("0x18"),((t,e)=>t||!!e))}[lc("0x1f")](){const{CommentThreadInputView:t}=this[lc("0xe")],e=new t(this[lc("0x6")],this._localUser,this[lc("0xe")][lc("0xb")]),n=e[lc("0x1d")];return e[lc("0x1e")]("showInput").to(this,lc("0x12"),this[lc("0x10")].commentThread,lc("0x16"),n,"value",((t,e,n)=>!!n||t&&!e)),n.on(lc("0x13"),((t,e)=>{this[lc("0x5")](lc("0xf"),e),n[lc("0x20")][lc("0x22")]("")})),n.on(lc("0x1b"),(()=>this[lc("0x1a")]())),n[lc("0x1e")](lc("0x2")).to(this[lc("0x10")][lc("0x1")],"isReadOnly"),e}}const uc=["isExternal","commentThread","ck-suggestion-","</p>","commentsListView","_config","source","ck-annotation__info-name","canAccept","_descriptionElement","ck-suggestion__user","editorDestroyed","importWord","EXTERNAL_AVATAR","children","_model","ck-suggestion__info-name","ck-suggestion-wrapper","ck-suggestion-wrapper--active","setTemplate","bind","change:description","check","descriptionParts","type","delegate","ck-annotation__info","ck-suggestion--disabled-comments","description",".ck-annotation__content-wrapper","value","author","color","EXTERNAL_IMPORT_WORD_SUGGESTION",'<span class="ck-suggestion-color" style="background-color: ',"acceptSuggestion","push","creator","name","ck-annotation","_createButton","authoredAt","innerHTML","ck-annotation__user","getExternalSuggestionNote","getUserViewNotificationText","ck-suggestion__actions","ck-annotation__main","ck-comment__external",'<span class="ck-suggestion-type">',"commentThreadInputView","Discard suggestion","set","getTemplate",'" title="',"extendTemplate","userView",'"></span>',"ck-suggestion--accept","ck-annotation__content-wrapper","ck-suggestion","ck-annotation__info-time","render","bindTemplate","formatDateTime","attributes","cancel","ck-suggestion--discard","isEnabled","join","disableComments","editorReady","Accept suggestion","execute","span","@external","locale","div","EXTERNAL_SUGGESTION","ck-comment__info-time","</span>","EXTERNAL_IMPORT_WORD_AVATAR","<p>","time","acceptButton"];var gc,mc;gc=uc,mc=496,function(t){for(;--t;)gc.push(gc.shift())}(++mc);const fc=function(t,e){return uc[t-=0]};class hc extends dc{constructor(e,n,o,s){super(e,n,o,s),this[fc("0x42")]("type",""),this[fc("0x22")](fc("0x26")).to(this,fc("0x25"),(t=>t&&t[0]?t[0][fc("0x26")]:"")),this[fc("0x22")](fc("0x2a")).to(this,"descriptionParts",this,"isActive",((t,e)=>{let n="";for(const e of t)n+=fc("0xb")+pc(e.content,e[fc("0x2e")])+fc("0x11");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[fc("0x17")]=null,this[fc("0xd")]=this[fc("0x36")](Yo(e,fc("0x1")),t.icons[fc("0x24")],fc("0x48"),fc("0x31"),"sw"),this.acceptButton[fc("0x22")](fc("0x52")).to(this,fc("0x16")),this.discardButton=this._createButton(Yo(e,fc("0x41")),t.icons[fc("0x50")],fc("0x51"),"discardSuggestion","sw"),this.discardButton[fc("0x22")](fc("0x52")).to(this,"canDiscard"),this[fc("0x46")]=new r.UserView(e,this[fc("0x1d")][fc("0x2d")],this[fc("0x3b")]()),this[fc("0x46")][fc("0x45")]({attributes:{class:[fc("0x18"),fc("0x39")]}}),this[fc("0x21")](this[fc("0x43")]())}[fc("0x43")](){const t=this[fc("0x4d")],e=[{tag:fc("0x6"),attributes:{class:["ck-suggestion__info",fc("0x28")]},children:[{tag:fc("0x3"),children:[{text:this[fc("0x46")][fc("0x34")]}],attributes:{class:[fc("0x1e"),fc("0x15")]}},{tag:fc("0xc"),attributes:{datetime:t.to("authoredAt"),class:[fc("0x8"),fc("0x4b")]},children:[{text:t.to(fc("0x37"),(t=>this[fc("0x13")][fc("0x4e")](t)))}]}]},{tag:fc("0x6"),attributes:{class:[fc("0x3c"),"ck-annotation__actions"]},children:[this[fc("0xd")],this.discardButton]},{tag:fc("0x6"),attributes:{class:[fc("0x49")]}}];this._model[fc("0xe")]&&e[fc("0x32")]({tag:fc("0x6"),attributes:{class:[fc("0x3e")]},children:[{text:this[fc("0x3a")]()}]});const n={tag:fc("0x6"),attributes:{class:[fc("0x1f"),t.if("isActive",fc("0x20")),t.to(fc("0x26"),(t=>fc("0x10")+t)),this._config[fc("0x54")]&&fc("0x29")],"data-suggestion-id":this[fc("0x1d")].id,"data-thread-id":this._model[fc("0xf")].id,"data-author-id":this._model.author.id,tabindex:-1},children:[{tag:"div",attributes:{class:[fc("0x4a"),fc("0x35")]},children:[this.userView,{tag:"div",attributes:{class:["ck-suggestion__main",fc("0x3d")]},children:e}]}]};return this[fc("0x12")]&&this[fc("0x40")]&&(n[fc("0x1c")][fc("0x32")](this[fc("0x12")],this[fc("0x40")]),this.commentsListView[fc("0x27")](fc("0x0")).to(this),this.commentsListView.delegate(fc("0x19")).to(this),this[fc("0x40")][fc("0x27")](fc("0x0")).to(this),this[fc("0x40")][fc("0x27")](fc("0x19")).to(this)),n}[fc("0x4c")](){super[fc("0x4c")](),this[fc("0x17")]=this.element.querySelector(fc("0x2b")),this[fc("0x17")][fc("0x38")]=this.description,this.on(fc("0x23"),((t,e,n)=>{this._descriptionElement[fc("0x38")]=n}))}_createButton(t,e,n,o,r){const i=new s.ButtonView(this[fc("0x5")]);return i[fc("0x42")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i.extendTemplate({attributes:{class:n}}),i.on(fc("0x2"),(()=>{this.fire(o,this._model.id)})),i}[fc("0x3a")](){return fc("0x1a")===this[fc("0x1d")][fc("0x4f")][fc("0x4")][fc("0x14")]?Yo(this.locale,fc("0x2f")):Yo(this[fc("0x5")],fc("0x7"))}[fc("0x3b")](){return this[fc("0x1d")][fc("0xe")]?fc("0x1a")===this[fc("0x1d")][fc("0x4f")][fc("0x4")][fc("0x14")]?Yo(this[fc("0x5")],fc("0xa"),this[fc("0x1d")].creator.name):Yo(this[fc("0x5")],fc("0x1b"),this[fc("0x1d")][fc("0x33")][fc("0x34")]):null}}function pc(t,e){let n="";return n+=t.split("*").map(((t,e)=>e%2!=0?fc("0x3f")+bc(t)+fc("0x9"):bc(t)))[fc("0x53")](""),e&&(n+=fc("0x30")+e[fc("0x2c")]+fc("0x44")+e.title+fc("0x47")),n}function bc(t){const e=document.createElement(fc("0x3"));return e.innerText=t,e[fc("0x38")]}const Ec=["CommentsUI","innerView","length","set","execute","Annotations","isDirty","locale","actionView","from","addSourceCollector","_bindAnnotationToEditors","previous","isInContent","model","change:previous","commands","acceptSelectedSuggestions","add","_annotationViews","comments","CommentView","Accept all selected suggestions","head","suggestionLoaded","_suggestionToController","_descriptionFactory","type","bind","activeAnnotations","_updateController","toMany","createAnnotation","Accept all suggestions","remove","createCommentThreadController","arrowView","pluginName","acceptAllSuggestions","separator","switchbutton","view","init","suggestionChanged","define","getAllAdjacentSuggestions","Track changes","_handleControllerBuffer","plugins","CommentsRepository","trackChanges.disableComments","isMultiRange","activeMarkers","comments.maxThreadTotalWeight","getByInnerView","_viewToController","commandName","editor","buttonView","keys","Discard all suggestions","discardSelectedSuggestions","stopListening","destroy","editing","suggestion-","trackChanges","unbind","get","getSuggestion","getDescriptions","delete","_disableComments","focus","button","getMarkers","mainView","EditorAnnotations","Discard all selected suggestions","reduce","isOn","lowest","refreshSelectedViews","comments.editorConfig","listenTo","_destroyController","push","isEnabled","source","_refreshActiveMarkers","filter","trackChanges.SuggestionThreadView","value","TrackChangesEditing","_createUIButton","comments.maxCommentsWhenCollapsed","acceptButton","has","getFirstRange","change:activeAnnotations","requires","hasSuggestion","_handleSuggestionControllerDelayed","componentFactory","descriptionParts","size"];var _c,Tc;_c=Ec,Tc=488,function(t){for(;--t;)_c.push(_c.shift())}(++Tc);const Cc=function(t,e){return Ec[t-=0]};class yc extends t.Plugin{static get[Cc("0x24")](){return[Va,r.Users,Cc("0x5b"),Cc("0x2f"),Cc("0xd")]}static get[Cc("0x4f")](){return"TrackChangesUI"}constructor(t){super(t),this[Cc("0x43")]=new Map,this[Cc("0x61")]=new Map,this[Cc("0x3d")]=new Map,this._handleControllerBuffer=new Map;const e=this[Cc("0x63")].config;e.define(Cc("0x1b"),hc),e[Cc("0x56")](Cc("0x5c"),!1),this[Cc("0x8")]=e[Cc("0x4")]("trackChanges.disableComments")}[Cc("0x26")](t,e){0===this[Cc("0x59")][Cc("0x29")]&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this[Cc("0x43")][Cc("0x21")](t);n||e?n&&e&&this[Cc("0x15")](t):this._initializeController(t)}this[Cc("0x63")].plugins[Cc("0x4")](Cc("0xd"))[Cc("0x12")](),this[Cc("0x19")](),this[Cc("0x59")].clear()}),10),this[Cc("0x59")].set(t,e)}[Cc("0x54")](){const t=this[Cc("0x63")],e=t[Cc("0x5a")][Cc("0x4")](Cc("0x1d")),n=t.plugins.get(Cc("0x2f")),o=t[Cc("0x5a")][Cc("0x4")](Cc("0xd")),s=t[Cc("0x5a")][Cc("0x4")](Cc("0x5b"));t.ui[Cc("0x27")].add(Cc("0x2"),(t=>this[Cc("0x1e")](t))),o[Cc("0x34")]((()=>{const t=[];for(const[e,n]of Array[Cc("0x33")](this._suggestionToController)){const o=e[Cc("0x57")](),s=[];for(const t of o){if(!t.isInContent)continue;if(t[Cc("0x5d")]){s[Cc("0x16")](...t.getRanges());continue}const e=t[Cc("0x22")]();if(s[Cc("0x2c")]>0){const t=s[0].getJoined(e);if(t){s[0]=t;continue}}s.push(e)}t[Cc("0x16")]([n.view,s])}return t})),this[Cc("0x14")](e,Cc("0x42"),((t,e)=>{this[Cc("0x14")](e,Cc("0x39"),((t,n,o,s)=>{e.isInContent&&(null==o?(this[Cc("0x48")](s.head),this[Cc("0x26")](e,!1)):(this[Cc("0x48")](o[Cc("0x41")]),this[Cc("0x26")](e,!0)))})),null===e[Cc("0x36")]?this._handleSuggestionControllerDelayed(e,!1):this._updateController(e[Cc("0x41")])})),this[Cc("0x14")](e,"suggestionUnloaded",((t,e,n)=>{this[Cc("0x68")](e,Cc("0x39")),this[Cc("0x59")][Cc("0x7")](e);const o=n?n[Cc("0x41")]:e,s=this[Cc("0x43")][Cc("0x4")](o);null!==n&&this._updateController(o),null===n&&s&&this[Cc("0x15")](e)})),this.listenTo(e,Cc("0x55"),((t,e)=>{this[Cc("0x48")](e)})),this[Cc("0x14")](n,Cc("0x23"),(()=>{this._refreshActiveMarkers()})),this[Cc("0x14")](s,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Cc("0x25")](n))return;const s=e[Cc("0x5")](n);this[Cc("0x43")][Cc("0x4")](s).view.focus()}),{priority:Cc("0x11")})}[Cc("0x19")](){const t=this.editor[Cc("0x5a")][Cc("0x4")](Cc("0x2f")),e=this[Cc("0x63")][Cc("0x5a")][Cc("0x4")]("TrackChangesEditing"),n=Array[Cc("0x33")](t[Cc("0x47")],(t=>t[Cc("0x2b")]))[Cc("0x1a")]((t=>this[Cc("0x61")][Cc("0x21")](t))),o=[];for(const t of n){const e=this[Cc("0x61")][Cc("0x4")](t)[Cc("0x38")][Cc("0x57")]();o[Cc("0x16")](...e[Cc("0xf")](((t,e)=>[...t,...e.getMarkerNames()]),[]))}e[Cc("0x5e")]=o}[Cc("0x1e")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this.editor[Cc("0x3a")][Cc("0x4")]("trackChanges"),r=Yo(t,Cc("0x58"));n[Cc("0x64")][Cc("0x2d")]({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[Cc("0x64")].bind(Cc("0x10")).to(o,Cc("0x1c")),n.buttonView.on(Cc("0x2e"),(()=>{o.execute(),this.editor[Cc("0x0")][Cc("0x53")][Cc("0x9")]()}));const i=new e.Collection,x=[{type:Cc("0x52"),model:{withText:!0,label:r,commandName:Cc("0x2")}},{type:Cc("0x51")},{type:Cc("0xa"),model:{withText:!0,label:Yo(t,Cc("0x4b")),commandName:Cc("0x50")}},{type:Cc("0xa"),model:{withText:!0,label:Yo(t,Cc("0x40")),commandName:Cc("0x3b")}},{type:Cc("0xa"),model:{withText:!0,label:Yo(t,Cc("0x66")),commandName:"discardAllSuggestions"}},{type:Cc("0xa"),model:{withText:!0,label:Yo(t,Cc("0xe")),commandName:Cc("0x67")}}];for(const t of x){let e={type:"separator"};if(t[Cc("0x38")]){const n=new s.Model(t.model),o=this[Cc("0x63")][Cc("0x3a")].get(n[Cc("0x62")]);n.bind(Cc("0x10"),Cc("0x17")).to(o,Cc("0x1c"),"isEnabled"),e={type:t[Cc("0x45")],model:n}}i.add(e)}(0,s.addListToDropdown)(n,i);const a=x.filter((t=>null!=t[Cc("0x38")])).map((t=>this[Cc("0x63")][Cc("0x3a")].get(t[Cc("0x38")][Cc("0x62")]))),c=n[Cc("0x64")];return c[Cc("0x32")][Cc("0x3")](Cc("0x17")),c[Cc("0x4e")][Cc("0x3")](Cc("0x17")),c[Cc("0x32")].bind("isEnabled").to(o,Cc("0x17")),c[Cc("0x4e")][Cc("0x46")](Cc("0x17"))[Cc("0x49")](a,Cc("0x17"),((...t)=>t.some((t=>t)))),n.on(Cc("0x2e"),(t=>{this[Cc("0x63")][Cc("0x2e")](t[Cc("0x18")].commandName),this[Cc("0x63")][Cc("0x0")][Cc("0x53")].focus()})),n}_initializeController(t){const e=this[Cc("0x63")],n=e.config,o=e.plugins[Cc("0x4")](Cc("0x2f")),s=e.plugins[Cc("0x4")](Cc("0x5b")),i=e[Cc("0x5a")][Cc("0x4")]("EditorAnnotations"),x=e[Cc("0x5a")][Cc("0x4")](r.Users).me,a=n.get(Cc("0x2")).SuggestionThreadView,{CommentsListView:c,CommentThreadInputView:l}=e[Cc("0x5a")].get(Cc("0x2a"));let d,u;this[Cc("0x3d")][Cc("0x21")](t.id)?(u=this._annotationViews.get(t.id),d=u[Cc("0xc")]):(d=new a(e[Cc("0x31")],t,x,{disableComments:this[Cc("0x8")],editorConfig:n.get(Cc("0x13")),maxCommentsWhenCollapsed:n[Cc("0x4")](Cc("0x1f")),maxThreadTotalWeight:n[Cc("0x4")](Cc("0x5f")),maxCommentCharsWhenCollapsed:n[Cc("0x4")]("comments.maxCommentCharsWhenCollapsed"),formatDateTime:(0,r.getDateTimeFormatter)(n[Cc("0x4")](Cc("0x31"))),CommentView:n[Cc("0x4")](Cc("0x3e"))[Cc("0x3f")],CommentsListView:c,CommentThreadInputView:l}),d[Cc("0x20")].on(Cc("0x2e"),(()=>{e[Cc("0x0")].view[Cc("0x9")]()})),d.discardButton.on(Cc("0x2e"),(()=>{e.editing[Cc("0x53")].focus()})),u=o.createAnnotationView(this[Cc("0x63")].locale,d),u.bind(Cc("0x30")).to(d,Cc("0x30")),u.bind(Cc("0x2c")).to(d),u[Cc("0x46")](Cc("0x45")).to(d,Cc("0x45"),(t=>Cc("0x1")+t)),this._annotationViews[Cc("0x2d")](t.id,u));const g=s[Cc("0x4d")](t.commentThread,d),m=new ic(e,t,d,g),f=t[Cc("0x57")]()[Cc("0x1a")]((t=>t[Cc("0x37")]));d[Cc("0x28")]=e.plugins[Cc("0x4")](Cc("0x1d"))[Cc("0x44")].getDescriptions(f),this[Cc("0x43")][Cc("0x2d")](t,m),this[Cc("0x61")][Cc("0x2d")](d,m);const h=o[Cc("0x4a")]({view:u,target:()=>{const n=[],o=t[Cc("0x57")]()[Cc("0x1a")]((t=>t.isInContent));for(const t of o)n.push(...t[Cc("0xb")]());return(0,r.getAllMarkersDomElementsSorted)(e.editing,n)},type:()=>Cc("0x1")+m[Cc("0x53")][Cc("0x45")]});s[Cc("0x35")](d,h),o[Cc("0x3c")](h),i.registerAnnotation(h)}_destroyController(t){const e=this[Cc("0x63")][Cc("0x5a")].get(Cc("0x2f")),n=this._suggestionToController[Cc("0x4")](t),o=n[Cc("0x53")],s=e[Cc("0x60")](o);s&&e[Cc("0x4c")](s),this[Cc("0x43")][Cc("0x7")](t),this[Cc("0x61")].delete(o),n[Cc("0x69")]()}[Cc("0x48")](t){if(!t.isInContent||!this[Cc("0x43")][Cc("0x21")](t))return;const e=this[Cc("0x63")].plugins.get(Cc("0x1d")),n=this[Cc("0x43")].get(t),o=t.getAllAdjacentSuggestions();n[Cc("0x53")].descriptionParts=e[Cc("0x44")][Cc("0x6")](o)}[Cc("0x69")](){for(const t of this[Cc("0x43")][Cc("0x65")]())this[Cc("0x15")](t);for(const t of this[Cc("0x3d")].values())t[Cc("0xc")].destroy();super[Cc("0x69")]()}}var kc,Ac,Rc=["addSuggestionData","TrackChanges","getSuggestion","plugins","editor","getSuggestions","get","pluginName","adapter"];kc=Rc,Ac=417,function(t){for(;--t;)kc.push(kc.shift())}(++Ac);var vc=function(t,e){return Rc[t-=0]};class Ic extends t.Plugin{static get requires(){return[Va,yc,"Comments"]}static get[vc("0x4")](){return vc("0x7")}set[vc("0x5")](t){this.editor[vc("0x0")].get(Va)[vc("0x5")]=t}get[vc("0x5")](){return this.editor.plugins.get(Va)[vc("0x5")]}addSuggestion(t){return this[vc("0x1")].plugins[vc("0x3")](Va)[vc("0x6")](t)}[vc("0x2")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[vc("0x1")][vc("0x0")][vc("0x3")](Va)[vc("0x2")]({skipNotAttached:t,toJSON:e})}getSuggestion(t){return this.editor[vc("0x0")][vc("0x3")](Va)[vc("0x8")](t)}}const Sc=["addSuggestionData","getDataWithDiscardedSuggestions","discardAllSuggestions","TrackChangesData","plugins","config","getRootNames","useAnonymousUser","create","Pagination","getUser","result","CommentsRepository","init","trackChangesData.editorCreator","getFullData","createElement","TrackChangesDataGetter","rootsAttributes","Users","reduce","document","data","users","function","createDocumentFragment","acceptAllSuggestions","trackChangesData","getSuggestions","destroy","end","TrackChangesEditing","requires","editor","model","push","editorCreator","getRootsAttributes","get","div","execute","name","appendChild"];var Lc,Nc;Lc=Sc,Nc=398,function(t){for(;--t;)Lc.push(Lc.shift())}(++Nc);const Mc=function(t,e){return Sc[t-=0]},wc=[Mc("0x29")];class Oc extends t.Plugin{static get[Mc("0x15")](){return[Va]}static get pluginName(){return Mc("0x23")}[Mc("0x2")](){const t=this.editor;if(t[Mc("0x25")].define(Mc("0x3"),(e=>{const n=t[Mc("0x17")][Mc("0xa")][Mc("0x26")]()[Mc("0x9")](((t,e)=>(t[e]="",t)),{});return t.constructor[Mc("0x28")](n,e)})),Mc("0xd")!=typeof t[Mc("0x25")][Mc("0x1b")]("trackChangesData")[Mc("0x19")])throw new e.CKEditorError("track-changes-data-invalid-editor-creator")}getDataWithAcceptedSuggestions(t){return Dc(this[Mc("0x16")],!0,t)}[Mc("0x21")](t){return Dc(this[Mc("0x16")],!1,t)}}class Fc extends t.Plugin{static get pluginName(){return Mc("0x6")}constructor(t){super(t),this[Mc("0x0")]=Mc("0x13")}init(){this[Mc("0x16")][Mc("0x24")][Mc("0x1b")](Mc("0x1"))._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[Mc("0x16")][Mc("0x24")][Mc("0x1b")]("TrackChangesEditing")._adapter=null}}function Pc(t){return void 0!==t[Mc("0x1a")]}async function Dc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,wc);o.plugins[Mc("0x18")](Va,Fc),o[Mc("0x7")]=Pc(t)?t.getRootsAttributes():void 0;const s=document[Mc("0xe")](),i=t[Mc("0x25")][Mc("0x1b")](Mc("0x10"))[Mc("0x19")],x=await i(o,(()=>function(t){const e=document[Mc("0x5")](Mc("0x1c"));return t[Mc("0x1f")](e),e}(s)));!function(t,e){const n=t[Mc("0x17")].document[Mc("0x26")]().reduce(((e,n)=>(e[n]=t[Mc("0xb")][Mc("0x1b")]({rootName:n}),e)),{}),o=t[Mc("0x24")][Mc("0x1b")]("Users")[Mc("0xc")].map((t=>({id:t.id,name:t[Mc("0x1e")]}))),s=t[Mc("0x24")][Mc("0x1b")](Mc("0x14"))[Mc("0x11")]({skipNotAttached:!0,toJSON:!0}),r=e.plugins[Mc("0x1b")](Mc("0x8")),i=e[Mc("0x24")][Mc("0x1b")]("TrackChangesEditing");for(const t of o)r[Mc("0x2a")](t.id)||r.addUser(t);r.me||r[Mc("0x27")]();for(const t of s)i[Mc("0x20")](t);e[Mc("0xb")].set(n)}(t,x),x[Mc("0x1d")](Mc(e?"0xf":"0x22"));const a=Pc(x)?x[Mc("0x4")](n):x.data[Mc("0x1b")](n);return await x[Mc("0x12")](),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:()=>uc,TrackChanges:()=>Sc,TrackChangesData:()=>Oc,TrackChangesEditing:()=>za});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["affectsData","_enabledCommands","isEnabled","TrackChangesCommand","editor","value","refresh","_disableUnsupportedCommands","commands","clearForceDisabled","_isEnabledBasedOnSelection","_enableCommands","has","forceDisabled"];var c,l;c=a,l=120,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("0x7")]=e,this[u("0xb")]=!1,this[u("0xc")](),this[u("0x2")]=!1}refresh(){this[u("0x8")]=!0}execute(){this.value=!this[u("0xb")],this[u("0xb")]?this[u("0xd")]():this._enableCommands()}[u("0xd")](){for(const t of this[u("0xa")][u("0x0")][u("0x0")]())t[u("0x6")]&&!this._enabledCommands[u("0x4")](t)&&t[u("0x5")](u("0x9"))}[u("0x3")](){for(const t of this[u("0xa")].commands[u("0x0")]())t.affectsData&&!this[u("0x7")][u("0x4")](t)&&t[u("0x1")]("TrackChangesCommand")}}const g=["get","acceptSuggestion","_suggestions","track-changes-accept-suggestion-not-found","plugins","isEnabled","editor","canEditAt","refresh","getRanges","execute","TrackChangesEditing"];var m,f;m=g,f=378,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("0x8")]=e,this[h("0x2")](),this._isEnabledBasedOnSelection=!1}[h("0x2")](){this[h("0xb")]=!0}[h("0x4")](t){const n=this._suggestions[h("0x6")](t);if(!n)throw new e.CKEditorError(h("0x9"),this);const o=n[h("0x3")]();this[h("0x0")].model[h("0x1")](o)&&this.editor[h("0xa")][h("0x6")](h("0x5"))[h("0x7")](n)}}const p=["get","editor","plugins","discardSuggestion","execute","track-changes-discard-suggestion-not-found","_isEnabledBasedOnSelection","canEditAt","TrackChangesEditing","getRanges","refresh","model","_suggestions"];var E,_;E=p,_=293,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("0x3")](),this[T("0xc")]=!1}[T("0x3")](){this.isEnabled=!0}[T("0xa")](t){const n=this[T("0x5")][T("0x6")](t);if(!n)throw new e.CKEditorError(T("0xb"),this);const o=n[T("0x2")]();this.editor[T("0x4")][T("0x0")](o)&&this[T("0x7")][T("0x8")][T("0x6")](T("0x1"))[T("0x9")](n)}}const y=["isCollapsed","createPositionAt","isTouching","join","add","replace","end","length","push","isMultiRange","createPositionAfter","createPositionBefore","from","content","isInContent"," [color ","deletion","color","map","change","isIntersecting","type","execute","schema","splice","next","getRanges","isObject","sort","isArray","value"];var k,A;k=y,A=140,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0xc")](((t,e)=>v("0x0")==t[v("0x5")]&&v("0x0")!=e[v("0x5")]?-1:v("0x0")!=t[v("0x5")]&&v("0x0")==e[v("0x5")]?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0x7")];for(;o<t[v("0x16")];){const i=t[o],x=t[o+1];n||(n=e[v("0x1a")](i)),I(e,i,x)||(s[v("0x17")](e.createRange(n,r[v("0xb")](i)?e[v("0x19")](i):e[v("0x10")](i,v("0x15")))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0x19")](e),s=t[v("0x1a")](n);return o.isTouching(s)}function L(t,e,n){for(;n[v("0x16")];){const o=n[v("0x8")](0,100);t[v("0x3")]((()=>{for(const t of o)t[v("0x1d")]&&e[v("0x6")](t.id)}))}}const N=["canEditAt","_isEnabledBasedOnSelection","_suggestions","editor","from","model","execute","isInContent","getRanges","refresh","isEnabled","values"];var M,w;M=N,w=412,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this._command=e,this[O("0xa")]=n,this[O("0x5")](),this[O("0x9")]=!1}refresh(){const t=Array.from(this[O("0xa")][O("0x7")]()).some((t=>t[O("0x3")]));this[O("0x6")]=this._command[O("0x6")]&&t}[O("0x2")](){const t=R(Array[O("0x0")](this[O("0xa")][O("0x7")]()));for(const e of t){const t=e[O("0x4")]();if(!this.editor[O("0x1")][O("0x8")](t))return}L(this[O("0xb")].model,this._command,t)}}const D=["editor","from","document","_command","selection","_selectedSuggestions","execute","model","isEnabled","canEditAt","refresh","values","_isEnabledBasedOnSelection","size","_suggestions"];var P,B;P=D,B=498,function(t){for(;--t;)P.push(P.shift())}(++B);const j=function(t,e){return D[t-=0]};class U extends t.Command{constructor(t,e,n){super(t),this[j("0x0")]=e,this[j("0xb")]=n,this[j("0x2")]=new Set,this.refresh(),this[j("0x9")]=!1}[j("0x7")](){const t=this[j("0xc")][j("0x4")][j("0xe")][j("0x1")],e=Array[j("0xd")](this[j("0xb")][j("0x8")]());this[j("0x2")]=function(t,e){const n=Array[v("0x1b")](t[v("0xa")]()),o=new Set;for(const s of e)if(s.isInContent)for(const e of n)for(const n of s.getRanges())(e[v("0x4")](n)||t[v("0xf")]&&!s[v("0x18")]&&s[v("0x9")]&&n[v("0x15")][v("0x11")](e.start))&&o[v("0x13")](s);return o}(t,e),this[j("0x5")]=this[j("0x0")][j("0x5")]&&!!this[j("0x2")][j("0xa")]}[j("0x3")](){const t=R(Array.from(this[j("0x2")]));for(const e of t){const t=e.getRanges();if(!this[j("0xc")].model[j("0x6")](t))return}L(this[j("0xc")][j("0x4")],this._command,t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const W=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const V=function(t){var e=this.__data__,n=W(e,t);return!(n<0)&&(n==e.length-1?e.pop():z.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=W(e,t);return n<0?void 0:e[n][1]};const q=function(t){return W(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=W(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const Q=$;const J=function(){this.__data__=new Q,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 Dt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Pt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Pt.call(e,t)};const 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=Dt,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||Q),string:new Gt}};const Wt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const zt=function(t,e){var n=t.__data__;return Wt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=zt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return zt(this,t).get(t)};const qt=function(t){return zt(this,t).has(t)};const Xt=function(t,e){var n=zt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Qt=$t;const Jt=function(t,e){var n=this.__data__;if(n instanceof Q){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Qt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new Q(t);this.size=e.size}Zt.prototype.clear=J,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Jt;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 De=Fe(Object.keys,Object);var Pe=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return De(t);var e=[];for(var n in Object(t))Pe.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var We=Object.prototype.hasOwnProperty;const ze=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&We.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?Me(t,!0):ze(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Qe=$e?$e.allocUnsafe:void 0;const Je=function(t,e){if(e)return t.slice();var n=t.length,o=Qe?Qe(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 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 Dn=st?st.prototype:void 0,Pn=Dn?Dn.valueOf:void 0;const Bn=function(t){return Pn?Object(Pn.call(t)):{}};const jn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Wn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Vn=Se&&Se.isMap;const Kn=Vn?ke(Vn):zn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?ke(Xn):qn;var Qn="[object Arguments]",Jn="[object Function]",Zn="[object Object]",Yn={};Yn[Qn]=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[Jn]=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==Jn||"[object GeneratorFunction]"==d;if(pe(e))return Je(e,a);if(d==Zn||d==Qn||g&&!r){if(x=c||g?{}:Wn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[d])return r?e:{};x=Un(e,d,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),$n(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var f=u?void 0:(l?c?dn:un:c?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Qt),n}io.Cache=Qt;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 Qt;++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]",Do="[object Array]",Po="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Do:Sn(t),c=x?Do:Sn(e),l=(a=a==Fo?Po:a)==Po,u=(c=c==Fo?Po:c)==Po,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 Wo=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 zo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Vo=function(t,e){return e.length<2?t:Wo(t,zo(e,0,-1))};const Ko=function(t,e){return e=bo(e,t),null==(t=Vo(t,e))||delete t[po(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["_saved","suggestion:","_markerNames","@external","subType","getFirstMarker","head","_onDiscard","addRange","attributes","previous","removeMarker","substr","size","removeAttribute","_isDataLoaded","getMultiRangeId","accept","type","toJSON","removeMarkers","getRange","decorate","getMarkers","length","addMarkerName","commentThread","getMarkerNames","split","start","isIntersectingWithRange","change","_model","getItems","createdAt","getRanges","from","nodeAfter","hasComments","data","author","next","addMarker","authoredAt","_onAttributesChange","_onAccept","getContainedElement","set","discard","creator","getFirstRange","setAttribute","end","push","markers","nodeBefore","isIntersecting","getAllAdjacentSuggestions","delete","onAttributesChange"];var $o,Qo;$o=Xo,Qo=409,function(t){for(;--t;)$o.push($o.shift())}(++Qo);const Jo=function(t,e){return Xo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Jo("0x1a")]=!1,this.id=e.id,this[Jo("0x1d")]=e[Jo("0x1d")],this[Jo("0xf")]=e[Jo("0xf")]||null,this[Jo("0x33")]=e[Jo("0x33")],this[Jo("0x0")]=e[Jo("0x0")]||e[Jo("0x33")],this.isExternal=Boolean(e.attributes&&e[Jo("0x14")][Jo("0xe")]),this[Jo("0x32")]=null,this._model=t,this[Jo("0x38")]=e.onAccept,this[Jo("0x12")]=e.onDiscard,this[Jo("0x37")]=e[Jo("0xa")],this[Jo("0xd")]=new Set,this[Jo("0x2d")]=null,this[Jo("0x3a")](Jo("0x36"),null),this.set(Jo("0x14"),e.attributes||{}),this.set("previous",null),this[Jo("0x3a")]("next",null),this.set("commentThread",null),this[Jo("0x3a")](Jo("0xb"),!1),this[Jo("0x21")](Jo("0x1c")),this[Jo("0x21")](Jo("0x3b"))}get[Jo("0x11")](){let t=this;for(;t[Jo("0x15")];)t=t.previous;return t}get[Jo("0x31")](){return!!this.commentThread&&this[Jo("0x25")][Jo("0x23")]>0}get isMultiRange(){return 0!=this[Jo("0xd")][Jo("0x18")]&&6==Array[Jo("0x2f")](this[Jo("0xd")])[0][Jo("0x27")](":")[Jo("0x23")]}get isInContent(){return null!==this.getFirstMarker()}addMarkerName(t){this[Jo("0xd")].add(t)}[Jo("0x26")](){return Array.from(this._markerNames)}[Jo("0x22")](){return this[Jo("0x26")]().map((t=>this._model[Jo("0x5")].get(t))).filter((t=>t))}[Jo("0x10")](){return this[Jo("0x22")]()[0]||null}removeMarkers(){this[Jo("0x2b")][Jo("0x2a")]((t=>{for(const e of this[Jo("0x22")]())t[Jo("0x16")](e)})),this._markerNames.clear()}[Jo("0x16")](t){this[Jo("0x2b")][Jo("0x2a")]((e=>{e[Jo("0x16")](t)})),this[Jo("0xd")][Jo("0x9")](t)}[Jo("0x13")](t){const e=Jo("0xc")+this[Jo("0x1d")]+":"+this[Jo("0xf")]+":"+this.id+":"+this.creator.id+":"+Zo[Jo("0x1b")]();this[Jo("0x24")](e),this._model[Jo("0x2a")]((n=>{n[Jo("0x35")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Jo("0x29")](t){for(const e of this[Jo("0x2e")]())if(e[Jo("0x7")](t))return!0;return!1}[Jo("0x2e")](){return this[Jo("0x22")]().map((t=>t[Jo("0x20")]()))}getItems(){return this.getRanges().reduce(((t,e)=>[...t,...e[Jo("0x2c")]()]),[])}[Jo("0x1")](){var t;return(null===(t=this.getFirstMarker())||void 0===t?void 0:t.getRange())||null}[Jo("0x39")](){const t=this[Jo("0x2e")]();if(1!=t.length)return null;const e=t[0],n=e[Jo("0x28")][Jo("0x30")],o=e[Jo("0x3")][Jo("0x6")];return n instanceof i.Element?n!=o?null:n:null}[Jo("0x1c")](){this._onAccept(this[Jo("0x2e")](),this[Jo("0x32")],this[Jo("0x14")]),this[Jo("0x1f")]()}[Jo("0x3b")](){this._onDiscard(this.getRanges(),this[Jo("0x32")],this.attributes),this[Jo("0x1f")]()}[Jo("0x8")](){const t=[];let e=this[Jo("0x11")];for(;e;)t[Jo("0x4")](e),e=e[Jo("0x34")];return t}[Jo("0x2")](t,e){const n=eo(this[Jo("0x14")]);_o(n,t,e),Go(n,this.attributes)||(this[Jo("0x14")]=n,this[Jo("0x37")](n))}[Jo("0x19")](t){const e=eo(this[Jo("0x14")]);qo(e,t),Go(e,this[Jo("0x14")])||(this[Jo("0x14")]=e,this[Jo("0x37")](this[Jo("0x14")]))}[Jo("0x1e")](){return{id:this.id,type:this.subType?this[Jo("0x1d")]+":"+this[Jo("0xf")]:this[Jo("0x1d")],authorId:this[Jo("0x0")].id,createdAt:this[Jo("0x2d")],hasComments:this.hasComments,data:this[Jo("0x32")],attributes:this[Jo("0x14")]}}static[Jo("0x1b")](){return(0,e.uid)()[Jo("0x17")](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=["_schema","add","getWalker","softBreak","deletion","quantity","isEmpty","item","pop","REPLACE_TEXT","registerDescriptionCallback","type","function","push","get","_customCallbacks","matchingCallback","removeContainer","_resolveDescriptionItems","getItemLabel","insertion","_itemLabels","name","end","nextSibling","checkChild","addContainer","start","removeObject","element","replace","ELEMENT_SPACE","*Remove:* %0","elementEnd","*Split:* %0","indexOf","addEmptyContainer","*Merge:* %0","isInContent","previousSibling","data","*Insert:* %0","text","isObject","EmptyContainer","$text","elementStart","match","Object","addObject","Container","label","getFirstRange","$1 $2","getDescriptions","_itemLabelsCallbacks","_locale","length","remove","removeEmptyContainer","normal"];var es,ns;es=ts,ns=309,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class ss{constructor(t,e){this._customCallbacks=[],this[os("0x11")]=new Map,this[os("0x33")]=[],this[os("0x39")]=t,this[os("0x34")]=e}[os("0x32")](t){const e=[];for(let n=0;n<t[os("0x35")];n++){const o=t[n];if(!o[os("0x22")])continue;let s=!1;for(const t of this[os("0xb")]){const n=t(o);if(n){os("0x7")in n&&e.push(n),s=!0;break}}if(!s){this._addDescriptionItems(e,o);const s=t[n+1];if(s&&!o[os("0x30")]()[os("0x13")].isEqual(s.getFirstRange()[os("0x17")])){const t=e[e[os("0x35")]-1],n=os("0x10")==o[os("0x7")]?os("0x3a"):os("0x36");t&&os("0x26")==t.type&&(t[n]+="\n")}}}return this[os("0xe")](e)}[os("0x6")](t){this[os("0xb")][os("0x9")](t)}registerElementLabel(t,n,o=e.priorities[os("0x38")]){os("0x8")==typeof t?(0,e.insertToPriorityArray)(this[os("0x33")],{matchingCallback:t,label:n,priority:o}):this[os("0x11")].set(t,n)}[os("0xf")](t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e[os("0xc")](t)){n=e[os("0x2f")];break}return n||(n=this._itemLabels[os("0xa")](t[os("0x12")])),n?n(e):1!==e?e+" "+t.name+"s":""+t.name}_addDescriptionItems(t,e){const n=e[os("0x30")]()[os("0x3b")](),o=os("0x10")==e.type?"add":os("0x36");for(const e of n){const s=e.item,r=t[t[os("0x35")]-1];if(s.is("$textProxy"))r&&r[os("0x7")][os("0x1f")]("Container")>-1&&t[os("0x4")](),r&&os("0x26")==r.type?r[o]+=s.data:t[os("0x9")]({type:os("0x26"),add:os("0x3a")==o?s.data:"",remove:"remove"==o?s[os("0x24")]:""});else if(this[os("0x39")][os("0x27")](s)){const i=s;if(r&&r[os("0x7")][os("0x1f")]("Container")>-1&&t.pop(),os("0x1d")==e.type)continue;r&&r[os("0x7")]==o+os("0x2c")&&r.element[os("0x12")]==i[os("0x12")]?r.quantity++:t[os("0x9")]({type:o+os("0x2c"),element:i,quantity:1}),n.skip((t=>!("elementEnd"==t[os("0x7")]&&t[os("0x3")]==s)))}else if(this[os("0x39")][os("0x15")](s,os("0x29"))||s.is(os("0x19"),os("0x3c"))){const n=s;if("add"==o&&os("0x2a")==e[os("0x7")]||"remove"==o&&os("0x1d")==e.type)continue;if(r&&-1==r[os("0x7")][os("0x1f")](os("0x2e"))){"text"==r[os("0x7")]&&(r[o]+="\n");continue}let i;if(i=os("0x3a")==o?n[os("0x14")]&&!this[os("0x39")][os("0x27")](n[os("0x14")])?n[os("0x14")]:null:n.previousSibling&&!this._schema[os("0x27")](n.previousSibling)?n[os("0x23")]:null,n.isEmpty||i&&i[os("0x2")]){const e=i&&i[os("0x2")]?i:n;r&&r[os("0x7")]==o+os("0x28")&&r[os("0x19")].name==e[os("0x12")]?r[os("0x1")]++:t[os("0x9")]({type:o+"EmptyContainer",element:e,quantity:1})}else t[os("0x9")]({type:o+"Container",element:n})}}}[os("0xe")](t){const e=this._locale,n=[];for(const o of t){switch(o[os("0x7")]){case os("0x26"):if(o[os("0x3a")]=o.add[os("0x1a")](/(\S)\u000A+(\S)/g,os("0x31"))[os("0x1a")](/\u000A/g,""),o.remove=o[os("0x36")][os("0x1a")](/(\S)\u000A+(\S)/g,"$1 $2")[os("0x1a")](/\u000A/g,""),""!=o[os("0x3a")]&&""!=o.remove){n.push({type:os("0x1a"),content:Yo(e,os("0x5"),['"'+o.remove+'"','"'+o[os("0x3a")]+'"'])});continue}if(null!=o[os("0x3a")][os("0x2b")](/^ +$/)){n[os("0x9")]({type:os("0x10"),content:Yo(e,os("0x25"),Yo(e,os("0x1b"),o.add.length))});continue}if(null!=o[os("0x36")][os("0x2b")](/^ +$/)){n[os("0x9")]({type:"deletion",content:Yo(e,os("0x1c"),Yo(e,os("0x1b"),o[os("0x36")][os("0x35")]))});continue}if(""!=o[os("0x3a")]){n[os("0x9")]({type:os("0x10"),content:Yo(e,"*Insert:* %0",'"'+o[os("0x3a")]+'"')});continue}n[os("0x9")]({type:os("0x0"),content:Yo(e,os("0x1c"),'"'+o[os("0x36")]+'"')});continue;case os("0x20"):case os("0x2d"):n.push({type:os("0x10"),content:Yo(e,os("0x25"),this[os("0xf")](o.element,o[os("0x1")]))});continue;case os("0x37"):case os("0x18"):n[os("0x9")]({type:"deletion",content:Yo(e,os("0x1c"),this.getItemLabel(o[os("0x19")],o[os("0x1")]))});continue;case os("0x16"):n.push({type:"insertion",content:Yo(e,os("0x1e"),this[os("0xf")](o[os("0x19")],o[os("0x1")]))});continue;case os("0xd"):n[os("0x9")]({type:"deletion",content:Yo(e,os("0x21"),this[os("0xf")](o[os("0x19")],o[os("0x1")]))});continue}n.push(o)}return n}}const rs=["*Format:* %0","value","AlignmentEditing","justify","from","afterInit","right","getSelectedBlocks","locale","alignment","TrackChangesEditing","editor","enableCommand","schema","change","contentLanguageDirection","left","format","plugins","markBlockFormat","get","getAttribute","model","FORMAT_ALIGN_TO_LEFT"];var is,xs;is=rs,xs=373,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x10")](){const t=this[as("0x16")],e=t[as("0x13")];if(!t[as("0x5")].has(as("0xd")))return;const n=t[as("0x5")][as("0x7")](as("0x15"));n[as("0x17")](as("0x14"),((e,o={})=>{let s=o[as("0xc")];o[as("0xc")]||(s="ltr"===t[as("0x13")][as("0x2")]?"left":as("0x11"));const r=Array[as("0xf")](this[as("0x16")][as("0x9")].document.selection[as("0x12")]()).filter((t=>function(t,e,n){const o=t[as("0x8")](as("0x14"))||null;return e.checkAttribute(t,as("0x14"))&&n!=o}(t,this[as("0x16")].model[as("0x0")],s)));t[as("0x9")][as("0x1")]((()=>{for(const t of r)n[as("0x6")](t,{commandName:as("0x14"),commandParams:[{value:s}]})}))})),n._descriptionFactory.registerDescriptionCallback((t=>{const{data:n}=t;if(n&&as("0x14")==n.commandName){const t=n.commandParams[0][as("0xc")];return{type:as("0x4"),content:Yo(e,as("0xb"),function(t){switch(t){case as("0x3"):return Yo(e,as("0xa"));case as("0x11"):return Yo(e,"FORMAT_ALIGN_TO_RIGHT");case"center":return Yo(e,"FORMAT_ALIGN_TO_CENTER");case as("0xe"):return Yo(e,"FORMAT_JUSTIFY_TEXT")}}(t))}}}))}}const ls=["createRangeOn","hasAttribute","mapper","getCustomProperty","markerName","isAtEnd","item","span","name","writer","getItems","insert","toViewElement","start","ck-suggestion-marker-","includes","push","isBlock","consumable","element","previousPosition","listIndent","addHighlight","markerRange","toViewPosition","nextSibling","createUIElement","ck-suggestion-marker--active","bindElementToMarker","isContent","listItem","test","model","type","parent","elementEnd"];var us,ds;us=ls,ds=374,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e[gs("0x20")]())s[gs("0x17")](t)&&o[gs("0x2")](n[gs("0x16")](s));return o}function fs(t){const e=[];if(t.is("element",gs("0x10"))){let n=t[gs("0xb")];for(;n&&n.is(gs("0x5"),gs("0x10"))&&n.getAttribute(gs("0x7"))>0;)e.push(n),n=n[gs("0xb")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t.plugins.get("TrackChangesEditing");return(s,r,i)=>{if(!i[gs("0x4")][gs("0x11")](r.markerRange,s[gs("0x1e")]))return;const x=r[gs("0x9")].getWalker(),a=r[gs("0x9")][gs("0x23")],c=t[gs("0x12")].schema;let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[gs("0x1c")];d=d||c[gs("0xf")](e);const n=i[gs("0x18")][gs("0x22")](e);if(n&&n[gs("0x19")](gs("0x8")))return;gs("0x15")==t[gs("0x13")]&&c[gs("0x3")](e)&&!c.isLimit(e)&&(e.nextSibling||a[gs("0x1b")]?l&&l[gs("0x14")]==e||(l=e,m(t[gs("0x6")]),g=!0):u=u||t.previousPosition)}function m(t){const s=i[gs("0x1f")][gs("0xc")](gs("0x1d"),{class:gs("0x0")+e}),x=i.mapper[gs("0xa")](t);n&&o.activeMarkers[gs("0x1")](r[gs("0x1a")])&&i.writer.addClass(gs("0xd"),s),i[gs("0x1f")][gs("0x21")](x,s),i.mapper[gs("0xe")](s,r.markerName)}d||g||!u||m(u)}}const bs=["FORMAT_UNDERLINE","*Format:* %0","superscript","slice","bold","format","toLowerCase","commands","_descriptionFactory","*Remove format:* %0","locale","value","underline","get","CodeEditing","document","BoldEditing","forceValue","has","getRanges","isCollapsed","commandName","FORMAT_SUPERSCRIPT","afterInit","plugins","enableCommand","strikethrough","FORMAT_SUBSCRIPT","from","code","FORMAT_CODE","subscript","UnderlineEditing","markInlineFormat","FORMAT_STRIKETHROUGH","FORMAT_BOLD"];var ps,Es;ps=bs,Es=492,function(t){for(;--t;)ps.push(ps.shift())}(++Es);const _s=function(t,e){return bs[t-=0]},Ts=[_s("0x1c"),"ItalicEditing",_s("0x8"),_s("0x1a"),"StrikethroughEditing","SubscriptEditing","SuperscriptEditing"];class Cs extends t.Plugin{[_s("0x23")](){const t=this.editor,e=t.model,n=t[_s("0x0")].get("TrackChangesEditing"),o=t[_s("0x16")];for(const o of Ts){if(!t[_s("0x0")][_s("0x1e")](o))continue;const s=o[_s("0xf")](0,-7)[_s("0x12")](),r=t[_s("0x13")][_s("0x19")](s);n[_s("0x1")](s,((t,o={})=>{const i=e[_s("0x1b")].selection;if(i[_s("0x20")])return void t(o);const x=void 0!==o[_s("0x1d")]?o.forceValue:!r[_s("0x17")];e.change((()=>{const t=Array[_s("0x4")](i[_s("0x1f")]());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n[_s("0x9")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[_s("0x14")].registerDescriptionCallback((n=>{const{data:s}=n;if(s&&s[_s("0x21")]===t)return s.commandParams[0][_s("0x1d")]?{type:_s("0x11"),content:Yo(o,_s("0xd"),e)}:{type:_s("0x11"),content:Yo(o,_s("0x15"),e)}}))}s(_s("0x10"),Yo(o,_s("0xb"))),s("italic",Yo(o,"FORMAT_ITALIC")),s(_s("0x18"),Yo(o,_s("0xc"))),s(_s("0x5"),Yo(o,_s("0x6"))),s(_s("0x2"),Yo(o,_s("0xa"))),s(_s("0x7"),Yo(o,_s("0x3"))),s(_s("0xe"),Yo(o,_s("0x22")))}}const ys=["name","filter","model","enableCommand","TrackChangesEditing","commandName","format","editor","*Format:* %0","from","parent","schema","value","plugins","forceValue","$root","getSelectedBlocks","ELEMENT_BLOCK_QUOTE","BlockQuoteEditing","locale","commandParams","checkChild","change","registerDescriptionCallback","get","blockQuote","afterInit","selection","*Remove format:* %0"];var ks,As;ks=ys,As=239,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0x13")](){const t=this.editor,e=t[vs("0xc")];if(!t[vs("0x6")].has(vs("0xb")))return;const n=t[vs("0x6")][vs("0x11")](vs("0x1a")),o=this[vs("0x0")].commands[vs("0x11")](vs("0x12"));n[vs("0x19")](vs("0x12"),((e,s={})=>{const r=this[vs("0x0")][vs("0x18")].document[vs("0x14")],i=s&&void 0!==s.forceValue?s[vs("0x7")]:!o[vs("0x5")];let x=[];if(i){const e=Array.from(r[vs("0x9")]())[vs("0x17")]((t=>Ss(t)||function(t,e){const n=e.checkChild(t[vs("0x3")],"blockQuote"),o=e[vs("0xe")]([vs("0x8"),vs("0x12")],t);return n&&o}(t,this.editor[vs("0x18")][vs("0x4")])));x=S(e,t[vs("0x18")])}else{const e=Array[vs("0x2")](r.getSelectedBlocks())[vs("0x17")]((t=>Ss(t)));x=S(e,t[vs("0x18")])}t.model[vs("0xf")]((()=>{for(const t of x)n.markBlockFormat(t,{commandName:vs("0x12"),commandParams:[{forceValue:i}]})}))})),n._descriptionFactory[vs("0x10")]((t=>{const{data:n}=t;if(n&&"blockQuote"==n[vs("0x1b")]){const t=Yo(e,vs("0xa"));return n[vs("0xd")][0][vs("0x7")]?{type:vs("0x1c"),content:Yo(e,vs("0x1"),t)}:{type:"format",content:Yo(e,vs("0x15"),t)}}}))}}function Ss(t){return"blockQuote"==t.parent[vs("0x16")]}const Is=["editor","afterInit","enableCommand","get","ckbox","TrackChangesEditing","plugins"];var Ls,Ns;Ls=Is,Ns=324,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("0x5")];t.commands.get(Ms("0x2"))&&t[Ms("0x4")][Ms("0x1")](Ms("0x3"))[Ms("0x0")](Ms("0x2"))}}const Os=["document","outdentCodeBlock","selection","rootElement","afterInit","markBlockFormat","commandName","indentCodeBlock","filter","parent","plugins","model","_descriptionFactory","forceValue","enableCommand","formatBlock","blockName","registerDescriptionCallback","getSelectedBlocks","format","codeBlock","editor","name","*Format:* %0","value","language","label","schema","config","commands","checkChild","TrackChangesEditing","locale","from","CodeBlock","*Remove format:* %0","isLimit","find","commandParams","ELEMENT_CODE_BLOCK"];var Fs,Ds;Fs=Os,Ds=167,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ds);const Ps=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ps("0x25")](){const t=this[Ps("0xe")];if(!t[Ps("0x3")].has(Ps("0x1b")))return;const e=t.plugins.get(Ps("0x18")),n=t[Ps("0x19")],o=t[Ps("0x15")].get("codeBlock").languages,s=t[Ps("0x16")].get(Ps("0xd"));e[Ps("0x7")](Ps("0x0")),e[Ps("0x7")](Ps("0x22")),e[Ps("0x7")](Ps("0xd"),((n,r={})=>{const i=t.model,x=t[Ps("0x4")][Ps("0x21")][Ps("0x23")],a=r&&void 0!==r[Ps("0x6")]?r[Ps("0x6")]:!s[Ps("0x11")];let c;r[Ps("0x12")]||(r[Ps("0x12")]=o[0].language),c=a?Array.from(x[Ps("0xb")]())[Ps("0x1")]((t=>{return js(t)||(e=t,n=i[Ps("0x14")],!e.is(Ps("0x24"))&&!n[Ps("0x1d")](e)&&n[Ps("0x17")](e[Ps("0x2")],Ps("0xd")));var e,n})):Array[Ps("0x1a")](x[Ps("0xb")]()).filter((t=>js(t)));const l=S(c,i);i.change((()=>{for(const t of l)e[Ps("0x26")](t,{commandName:Ps("0xd"),commandParams:[{...r,forceValue:a}],formatGroupId:Ps("0x9")})}))})),e._descriptionFactory.registerElementLabel(Ps("0xd"),(t=>Yo(n,Ps("0x20"),t))),e[Ps("0x5")][Ps("0xa")]((t=>{const e=n.t,{type:s,data:r}=t;if(Ps("0x8")==s&&r&&Ps("0xd")==r[Ps("0x27")]){const t=r[Ps("0x1f")][0].language,s=e(o[Ps("0x1e")]((e=>e.language===t))[Ps("0x13")]);return r.commandParams[0][Ps("0x6")]?{type:"format",content:Yo(n,Ps("0x10"),Yo(n,Ps("0x20"),1)+" ("+s+")")}:{type:Ps("0xc"),content:Yo(n,Ps("0x1c"),Yo(n,Ps("0x20"),1))}}}))}}function js(t){return Ps("0xd")==t[Ps("0xf")]}const Us=["plugins","addCommentThread","enableCommand","CommentsEditing","has","editor","get"];var Gs,Hs;Gs=Us,Hs=175,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const Ws=function(t,e){return Us[t-=0]};class zs extends t.Plugin{afterInit(){const t=this[Ws("0x5")];t[Ws("0x0")][Ws("0x4")](Ws("0x3"))&&t[Ws("0x0")][Ws("0x6")]("TrackChangesEditing")[Ws("0x2")](Ws("0x1"))}}var Vs=n(181);const Ks=["bind","end","setSelection","data","lock","requires","createRange","mapper","removeMarker:suggestion:deletion","high","rootName","enqueueChange","showSuggestionHighlights","isCollapsed","options","writer","root","modifySelection","$graveyard","merge","model","downcastDispatcher","fromRange","batch","document","createSelection","plugins","uiElement","editing","buffer","enableCommand","markerName","getFirstRange","commands","deleteForward","start","forward","detach","addMarker:suggestion:deletion","get","remove","init"];var qs,Xs;qs=Ks,Xs=329,function(t){for(;--t;)qs.push(qs.shift())}(++Xs);const $s=function(t,e){return Ks[t-=0]};class Qs extends t.Plugin{static get[$s("0xc")](){return[Vs.Delete]}[$s("0x6")](){const t=this.editor,e=t[$s("0x21")].get("TrackChangesEditing");e[$s("0x25")]("delete");const n=t[$s("0x28")][$s("0x4")]("deleteForward");e[$s("0x25")]($s("0x29"),((e,o={})=>{const s=t[$s("0x1b")][$s("0x20")](t[$s("0x1b")][$s("0x1f")].selection);s[$s("0x14")]&&t[$s("0x1b")][$s("0x18")](s,{direction:$s("0x1"),unit:o.unit});const r=s[$s("0x27")](),x=i.LiveRange[$s("0x1d")](r);let a;e(o),a=$s("0x19")==x[$s("0x17")][$s("0x11")]?t.model[$s("0xd")](r[$s("0x0")]):t[$s("0x1b")][$s("0xd")](x.start,x.end),x[$s("0x2")](),t[$s("0x1b")][$s("0x12")](n.buffer[$s("0x1e")],(t=>{n[$s("0x24")][$s("0xb")](),t[$s("0x9")](t[$s("0xd")](a[$s("0x8")])),n[$s("0x24")].unlock()}))})),t[$s("0x23")][$s("0x1c")].on($s("0x3"),hs(t,"merge"),{priority:$s("0x10")}),t[$s("0xa")].downcastDispatcher.on($s("0x3"),((e,n,o)=>{o[$s("0x15")][$s("0x13")]&&hs(t,$s("0x1a"),{showActiveMarker:!1})[$s("0x7")](this)(e,n,o)}),{priority:$s("0x10")}),t.editing[$s("0x1c")].on($s("0xf"),((t,e,n)=>{const o=n[$s("0xe")].markerNameToElements(e.markerName);if(o)for(const t of o)t.is($s("0x22"))&&(n.mapper.unbindElementFromMarkerName(t,e[$s("0x26")]),n[$s("0x16")][$s("0x5")](t))}),{priority:"high"})}}const Js=["from","plugins","end","slice","ELEMENT_LIST_ITEM","model","ELEMENT_BULLETED_LIST","detach","documentList","getAttribute","createPositionAt","commandName","*Change to:* %0","listIndent","value","accept","createRange","listItemId","getRanges","execute","formatBlock","afterInit","listType","registerElementLabel","map","refresh","DocumentListEditing","forceValue","before","isObject","DocumentListUtils","fromRange","TrackChangesEditing","has","push","expandListBlocksToCompleteList","getSelectedBlocks","deletion","*Merge:* %0","ELEMENT_NUMBERED_LIST","ELEMENT_","mergeListItemBackward","*Outdent:* %0","indentList","commands","schema","previousSibling","_descriptionFactory","isFirstBlockOfListItem","bulletedList","after","start","splitListItemAfter","numberedList","setSelection","next","markMultiRangeBlockFormat","multipleBlocks","*Indent:* %0","change","nextSibling","*Format:* insert into %0","parent","getFirstRange","outdentList","_suggestionFactory","document","length","nodeAfter","markBlockFormat","commandParams","splitListItemBefore","enableCommand","format","selection","mergeListItemForward","get"];var Zs,Ys;Zs=Js,Ys=374,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Js[t-=0]};class er extends t.Plugin{[tr("0x20")](){const t=this.editor;if(!t.plugins[tr("0x2c")](tr("0x25")))return;const e=t.locale,n=t[tr("0xc")][tr("0xa")](tr("0x2b")),o=t[tr("0xc")][tr("0xa")](tr("0x29"));function s(e){return()=>{const s=t.commands[tr("0xa")](e);let r=Array.from(t.model[tr("0x0")].selection[tr("0x2f")]());if(a(e)){r=o[tr("0x2e")](r);const t=[];for(const e of r)o[tr("0x3b")](e)&&t[tr("0x2d")](e);r=t}t[tr("0x10")][tr("0x46")]((()=>{n[tr("0x43")](r,{commandName:e,commandParams:[{forceValue:!s[tr("0x19")]}],formatGroupId:tr("0x21")},[],tr("0x13"))}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0xb")](t);const n=e.findIndex((t=>!t.hasAttribute(tr("0x1c"))));return n>-1&&(e=e[tr("0xe")](0,n)),e}(t[tr("0x10")].document[tr("0x8")][tr("0x2f")]()),s=o[o[tr("0x1")]-1],r=t[tr("0x10")][tr("0x38")][tr("0x28")](s)?tr("0x3d"):tr("0xd"),i=t.model[tr("0x1b")](t[tr("0x10")][tr("0x15")](o[0],tr("0x27")),t[tr("0x10")][tr("0x15")](s,r));t[tr("0x10")][tr("0x46")]((()=>{n[tr("0x3")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x21")},function(t){const e=new Set;for(const n of t){let t=n[tr("0x47")];for(;t&&t[tr("0x14")](tr("0x18"))>n[tr("0x14")](tr("0x18"));)e.add(t),t=t[tr("0x47")]}return Array[tr("0xb")](e)}(o))}))}}function x(e){return()=>{const o=t[tr("0x10")][tr("0x0")][tr("0x8")][tr("0x2f")]()[tr("0x42")]()[tr("0x19")],s=t[tr("0x10")].createPositionAt(o,"before"),r=t.model[tr("0x15")](o,0),i=t[tr("0x10")].createRange(s,r);t[tr("0x10")][tr("0x46")]((()=>{n[tr("0x3")](i,{commandName:e,commandParams:[],formatGroupId:"listType"})}))}}function a(e){const n=t.commands.get("bulletedList")[tr("0x19")],o=t[tr("0x37")].get(tr("0x40")).value;return tr("0x40")===e?n:o}n.enableCommand(tr("0x40"),s(tr("0x40"))),n.enableCommand(tr("0x3c"),s(tr("0x3c"))),n[tr("0x6")](tr("0x36"),r(tr("0x36"))),n.enableCommand(tr("0x4b"),r(tr("0x4b"))),n[tr("0x6")](tr("0x3f"),x(tr("0x3f"))),n[tr("0x6")](tr("0x5"),x(tr("0x5"))),n[tr("0x3a")][tr("0x22")]((function(e){const n=!t[tr("0x10")][tr("0x38")][tr("0x28")](e),o=e[tr("0x39")],s=e[tr("0x47")],r=e.getAttribute(tr("0x1c")),i=!o||o[tr("0x14")](tr("0x1c"))!==r,x=!s||s[tr("0x14")](tr("0x1c"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,tr("0xf"),t))),n[tr("0x3a")].registerDescriptionCallback((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x16")]){case tr("0x3c"):r=n.commandParams[0][tr("0x26")],i=a(n[tr("0x16")]),o=r?tr("0x48"):"*Format:* remove from %0",i&&(o="*Change to:* %0"),s={type:tr("0x7"),content:Yo(e,o,Yo(e,tr("0x11")))};break;case tr("0x40"):r=n[tr("0x4")][0].forceValue,i=a(n[tr("0x16")]),o=r?"*Format:* insert into %0":"*Format:* remove from %0",i&&(o=tr("0x17")),s={type:tr("0x7"),content:Yo(e,o,Yo(e,tr("0x32")))};break;case"indentList":o=tr("0x45"),s={type:"format",content:Yo(e,o,Yo(e,tr("0xf")))};break;case tr("0x4b"):o=function(t){const e=t[tr("0x4a")]();let n=e[tr("0x3e")].nodeAfter;for(;n&&e.containsItem(n);){if(n.getAttribute("listIndent")>0)return!1;n=n[tr("0x47")]}return!0}(t)?Yo(e,"*Format:* remove from %0",Yo(e,function(t){const e=t.getFirstRange().start[tr("0x2")];return tr("0x33")+e[tr("0x14")](tr("0x21")).toUpperCase()+"_LIST"}(t))):Yo(e,tr("0x35"),Yo(e,tr("0xf"))),s={type:tr("0x7"),content:o};break;case tr("0x34"):case tr("0x9"):!1===n[tr("0x44")]&&(o=tr("0x31"),s={type:tr("0x30"),content:Yo(e,o,Yo(e,tr("0xf")))})}return s})),n[tr("0x4c")].registerCustomCallback(tr("0x1f"),"documentList",tr("0x1a"),(function(e,n){const o=[];for(let n of e)n[tr("0x3e")][tr("0x2")]===n[tr("0xd")][tr("0x49")]&&(n=t[tr("0x10")][tr("0x1b")](t[tr("0x10")][tr("0x15")](n[tr("0x3e")][tr("0x2")],0))),o[tr("0x2d")](n);t[tr("0x10")][tr("0x46")]((e=>{const s=t[tr("0x10")][tr("0x0")][tr("0x8")],r=Array.from(s[tr("0x1d")]())[tr("0x23")]((t=>i.LiveRange[tr("0x2a")](t)));e.setSelection(o),t[tr("0x37")][tr("0xa")](n[tr("0x16")])[tr("0x24")](),n[tr("0x4")].push({forceDefaultExecution:!0}),t[tr("0x1e")](n[tr("0x16")],...n.commandParams),e[tr("0x41")](r);for(const t of r)t[tr("0x12")]()}))}))}}var nr=n(331);const or=["remove","split","addMarker:suggestion:insertion","writer","requires","removeMarker:suggestion:insertion","nextSibling","unbindElementFromMarkerName","model","data","mapper","bind","fire","ck-suggestion-marker-split","setSelection","hasClass","fromRange","options","commands","end","get","selection","markerNameToElements","document","downcastDispatcher","high","afterExecute","showSuggestionHighlights","getFirstPosition","createRange","enableCommand","editing","editor","enter","plugins","createPositionAt","parent"];var sr,rr;sr=or,rr=408,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("0x3")](){return[nr.Enter]}init(){const t=this[ir("0x1f")],e=t[ir("0x21")][ir("0x13")]("TrackChangesEditing"),n=t[ir("0x11")][ir("0x13")](ir("0x20"));e[ir("0x1d")](ir("0x20"),(()=>{t.model.change((o=>{const s=t.model[ir("0x16")][ir("0x14")],r=s[ir("0x1b")](),x=i.LiveRange[ir("0xf")](s.getFirstRange());if(n.enterBlock(o)){const n=t[ir("0x7")][ir("0x22")](r[ir("0x23")][ir("0x5")],0),s=o[ir("0x1c")](r,n);e.markInsertion(s)}else o[ir("0xd")](o[ir("0x1c")](x[ir("0x12")]));x.detach(),n[ir("0xb")](ir("0x19"),{writer:o})}))})),t.editing[ir("0x17")].on(ir("0x1"),hs(t,"split"),{priority:ir("0x18")}),t[ir("0x1e")][ir("0x17")].on(ir("0x4"),((t,e,n)=>{const o=n[ir("0x9")][ir("0x15")](e.markerName);if(o)for(const t of o)t[ir("0xe")](ir("0xc"))&&(n[ir("0x9")][ir("0x6")](t,e.markerName),n[ir("0x2")][ir("0x24")](t))}),{priority:ir("0x18")}),t[ir("0x8")].downcastDispatcher.on(ir("0x1"),((e,n,o)=>{o[ir("0x10")][ir("0x1a")]&&hs(t,ir("0x0"),{showActiveMarker:!1})[ir("0xa")](this)(e,n,o)}),{priority:ir("0x18")})}}const ar=["filter","enableCommand","FindAndReplaceUtils","findPrevious","handleFindCommand","model","editor","start","TrackChangesEditing","has","end","getMarkersGroup","createRange","replace","replaceAll","suggestion:deletion","_isInDeletionRange","createPositionAt","findNext","getRange","afterInit","FindAndReplaceEditing","find","get","bind","plugins"];var cr,lr;cr=ar,lr=194,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const ur=function(t,e){return ar[t-=0]};class dr extends t.Plugin{[ur("0x8")](){if(!this.editor[ur("0xd")][ur("0x17")](ur("0x9")))return;const t=this[ur("0x14")][ur("0xd")][ur("0xb")](ur("0x16"));t[ur("0xf")](ur("0xa"),this[ur("0x12")][ur("0xc")](this)),t[ur("0xf")](ur("0x6")),t[ur("0xf")](ur("0x11")),t[ur("0xf")](ur("0x1")),t[ur("0xf")](ur("0x2"))}handleFindCommand(t,e,n={}){const o=this.editor[ur("0xd")][ur("0xb")](ur("0x10"));void 0!==n&&t((t=>("string"==typeof e?o.findByTextCallback(e,n):e)(t)[ur("0xe")]((e=>!1===this._isInDeletionRange(e,t.item)))),n)}[ur("0x4")](t,e){const n=this[ur("0x14")].model[ur("0x0")](this[ur("0x14")][ur("0x13")][ur("0x5")](e,t[ur("0x15")]),this[ur("0x14")][ur("0x13")][ur("0x5")](e,t[ur("0x18")]));for(const t of this.editor[ur("0x13")].markers[ur("0x19")](ur("0x3")))if(null!==n.getIntersection(t[ur("0x7")]()))return!0;return!1}}const gr=["editor","value","model","fontFamily","title","config","get","trim","_descriptionFactory","selection","fontSize.options","fontBackgroundColor","getRanges","FontSizeEditing","*Reset font color*","markInlineFormat","TrackChangesEditing","find","*Set font color:* %0","has","_enableCommand","isCollapsed","*Reset font background color*","plugins","fontBackgroundColor.colors","afterInit","fontColor","*Reset font size*","locale","label","format","fontColor.colors","document","*Set font background color:* %0","toLowerCase","commandName","commandParams","registerDescriptionCallback","normalizeSizeOptions","FontFamilyEditing","from","fontSize","*Reset font family*","FontColorEditing"];var mr,fr;mr=gr,fr=250,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},br=[{pluginName:hr("0x1b"),commandName:hr("0xb")},{pluginName:hr("0x9"),commandName:"fontFamily"},{pluginName:hr("0xd"),commandName:hr("0x28")},{pluginName:"FontBackgroundColorEditing",commandName:hr("0x19")}];class pr extends t.Plugin{[hr("0x27")](){const t=this[hr("0xe")][hr("0x2a")];for(const{pluginName:t,commandName:e}of br)this[hr("0xe")][hr("0x25")][hr("0x21")](t)&&this._enableCommand(e);this[hr("0xe")][hr("0x25")][hr("0x14")](hr("0x1e"))[hr("0x16")][hr("0x7")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if("fontSize"==o[hr("0x5")]){const e=o[hr("0x6")][0].value;if(e){const o=n(this[hr("0xe")][hr("0x25")][hr("0x14")]("FontSize")[hr("0x8")](this[hr("0xe")].config.get(hr("0x18"))).find((t=>t[hr("0x10")]==e))[hr("0x12")])[hr("0x4")]();return{type:hr("0x0"),content:Yo(t,"*Set font size:* %0",o)}}return{type:hr("0x0"),content:Yo(t,hr("0x29"))}}if(hr("0x11")==o.commandName){const e=o[hr("0x6")][0][hr("0xf")];return e?{type:"format",content:Yo(t,"*Set font family:* %0",e)}:{type:hr("0x0"),content:Yo(t,hr("0xc"))}}if(hr("0x28")==o.commandName){const e=o[hr("0x6")][0][hr("0xf")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0xe")][hr("0x13")][hr("0x14")](hr("0x1")))[hr("0x1f")]((t=>t.model==e));let r=e,i="";return o&&(r=o[hr("0x2b")],i=n(r)[hr("0x4")]()),{type:hr("0x0"),content:Yo(t,hr("0x20"),i).trim(),color:{value:e,title:i||r}}}return{type:"format",content:Yo(t,hr("0x1c"))}}if(hr("0x19")==o[hr("0x5")]){const e=o[hr("0x6")][0][hr("0xf")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0xe")].config[hr("0x14")](hr("0x26"))).find((t=>t[hr("0x10")]==e));let r=e,i="";return o&&(r=o[hr("0x2b")],i=n(r)[hr("0x4")]()),{type:hr("0x0"),content:Yo(t,hr("0x3"),i)[hr("0x15")](),color:{value:e,title:i||r}}}return{type:hr("0x0"),content:Yo(t,hr("0x24"))}}}}))}[hr("0x22")](t){const e=this[hr("0xe")];e[hr("0x25")][hr("0x14")](hr("0x1e")).enableCommand(t,((n,o={})=>{const s=e[hr("0x10")][hr("0x2")][hr("0x17")],r=o[hr("0xf")];s[hr("0x23")]?n(o):e[hr("0x10")].change((()=>{const n=Array[hr("0xa")](s[hr("0x1a")]());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0x10")]);for(const o of n)e[hr("0x25")][hr("0x14")](hr("0x1e"))[hr("0x1d")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["forward","getSelectedBlocks","label","schema","fontBackgroundColor","isBlock","isFormatting","*Remove all formatting*","fontSize","FontSize","commands","markInlineFormat","change","split","TrackChangesEditing","fontSize.options","selection","getFirstPosition","join","model","get","entries","length","locale","fontColor.colors","title","commandName","getItems","boolean","getAttributes","registerDescriptionCallback","toLowerCase","pasteFormat","from","enableCommand","find","charAt","word","*Set format to:* %0","backward","getRanges","getLastPosition","format","_descriptionFactory","config","plugins","modifySelection","commandParams"];var _r,Tr;_r=Er,Tr=381,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.editor,n=t[Cr("0x16")],o=n.document[Cr("0x13")],s=t[Cr("0x0")].get(Cr("0x11")),r=t.locale,i=t[Cr("0xd")].get("copyFormat"),x=t[Cr("0xd")][Cr("0x17")](Cr("0x23"));i&&x&&(s[Cr("0x25")](Cr("0x23"),((t,r={})=>{const i=r;n[Cr("0xf")]((()=>{const t=Array[Cr("0x24")](o[Cr("0x2b")]()),r=o.isCollapsed?[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("0x20")]()){const t=e.getAttributeProperties(n);t&&t[Cr("0x9")]&&(yield n)}}(t,n));for(const e of t[Cr("0x2b")]())for(const t of e[Cr("0x1e")]())!n[Cr("0x8")](t)&&o(t)&&(yield t);for(const e of t[Cr("0x4")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x6")]))||0!==Object.keys(i)[Cr("0x19")])for(const t of r)s[Cr("0xe")](t,{commandName:Cr("0x23"),commandParams:[i]})}))})),s[Cr("0x2e")][Cr("0x21")]((e=>{const{data:n}=e;if(n&&Cr("0x23")===n[Cr("0x1d")]){const e=[],o=n[Cr("0x2")][0];for(const[n,s]of Object[Cr("0x18")](o))e.push(Ar(t,n,s));return e[Cr("0x19")]?{type:Cr("0x2d"),content:Yo(r,Cr("0x29"),e[Cr("0x15")](", "))}:{type:Cr("0x2d"),content:Yo(r,Cr("0xa"))}}})),t[Cr("0x0")][Cr("0x17")](Cr("0x11"))[Cr("0x25")]("copyFormat"))}}function kr(t,e){const n=t.createSelection(e);t.modifySelection(n,{unit:"word",direction:Cr("0x2a")});const o=n[Cr("0x14")]();t[Cr("0x1")](n,{unit:Cr("0x28"),direction:Cr("0x3")});const s=n[Cr("0x2c")]();return t.createRange(o,s)}function Ar(t,e,n){const o=t[Cr("0x1a")].t,r=e[Cr("0x10")](/(?=[A-Z])/).join(" "),i=o(r[Cr("0x27")](0).toUpperCase()+r.slice(1))[Cr("0x22")]();if(Cr("0x1f")==typeof n)return i;if("fontColor"===e||Cr("0x7")===e){const e=(0,s.normalizeColorOptions)(t[Cr("0x2f")][Cr("0x17")](Cr("0x1b")))[Cr("0x26")]((t=>t[Cr("0x16")]==n));return i+" ("+(e?o(e[Cr("0x5")])[Cr("0x22")]():n)+")"}if(Cr("0xb")===e&&isNaN(parseFloat(n))){const e=t.plugins[Cr("0x17")](Cr("0xc")).normalizeSizeOptions(t.config[Cr("0x17")](Cr("0x12")))[Cr("0x26")]((t=>t.model==n));return i+" ("+(e?o(e[Cr("0x1c")])[Cr("0x22")]():n)+")"}return i+" ("+n+")"}const vr=["markBlockFormat","config","value","*Change to:* %0","ELEMENT_HEADING_CUSTOM","has","blockName","TrackChangesEditing","isObject","document","match","registerElementLabel","model","selection","from","schema","_descriptionFactory","HeadingEditing","name","format","plugins","title","find","heading","enableCommand","parent","commandName","locale","ELEMENT_HEADING","editor","get","getSelectedBlocks","formatBlock","paragraph"];var Rr,Sr;Rr=vr,Sr=158,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const Ir=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{afterInit(){const t=this[Ir("0x7")],e=t[Ir("0x5")],n=t[Ir("0xd")][Ir("0x8")]("heading.options");if(!t[Ir("0x20")][Ir("0x11")](Ir("0x1d")))return;const o=t[Ir("0x20")][Ir("0x8")](Ir("0x13"));o[Ir("0x2")](Ir("0x1"),((e,n)=>{const s=n[Ir("0xe")],r=Array[Ir("0x1a")](this[Ir("0x7")].model[Ir("0x15")][Ir("0x19")][Ir("0x9")]()).filter((t=>{return e=t,n=s,(o=this[Ir("0x7")][Ir("0x18")][Ir("0x1b")]).checkChild(e[Ir("0x3")],n)&&!o[Ir("0x14")](e)&&e[Ir("0x1e")]!=n;var e,n,o}));t.model.change((()=>{for(const t of r)o[Ir("0xc")](t,{commandName:Ir("0x1"),commandParams:[n],formatGroupId:Ir("0x12")},fs(t))}))}));for(const t of n)Ir("0xb")!=t[Ir("0x18")]&&o[Ir("0x1c")][Ir("0x17")](t[Ir("0x18")],(e=>{const n=Nr(t[Ir("0x18")]);return null!==n?s(e,n):r(e,t[Ir("0x21")])}));function s(t,n){return Yo(e,Ir("0x6"),[t,n])}function r(t,n){return Yo(e,Ir("0x10"),[t,n])}o[Ir("0x1c")].registerDescriptionCallback((t=>{const{type:o,data:i}=t;if(Ir("0xa")==o&&i&&Ir("0x1")==i[Ir("0x4")]){const t=i.commandParams[0][Ir("0xe")],o=Nr(t);if(null!==o)return{type:Ir("0x1f"),content:Yo(e,Ir("0xf"),s(1,o))};const x=n[Ir("0x0")]((e=>e[Ir("0x18")]===t)).title;return{type:"format",content:Yo(e,Ir("0xf"),r(1,x))}}}))}}function Nr(t){const e=t[Ir("0x16")](/^heading(\d+)$/);return e?e[1]:null}const Mr=["get","getLastMatchingPosition","push","HighlightEditing","value","title","formatInline","hasAttribute","model","config","getRanges","createRange","afterInit","plugins","item","_descriptionFactory","FORMAT_HIGHLIGHT","format","markInlineFormat","getAttribute","change","editor","document","getFirstPosition","highlight.options","*Set highlight:* %0","color","find","*Remove highlight*","highlight","backward","TrackChangesEditing","enableCommand","toLowerCase"];var wr,Or;wr=Mr,Or=343,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Dr extends t.Plugin{[Fr("0x9")](){const t=this[Fr("0x12")];if(!t[Fr("0xa")].has(Fr("0x0")))return;const e=t[Fr("0xa")][Fr("0x1f")](Fr("0x1c"));e[Fr("0x1d")]("highlight",((n,o={})=>{const s=t[Fr("0x5")][Fr("0x13")].selection,r=s[Fr("0x10")](Fr("0x1a"));let i=o[Fr("0x1")],x=[];if(s.isCollapsed){const e=s[Fr("0x14")]();if(!s[Fr("0x4")]("highlight"))return void n(o);{const n=t=>t[Fr("0xb")][Fr("0x10")]("highlight")===r,o=e.getLastMatchingPosition(n,{direction:Fr("0x1b")}),s=e[Fr("0x20")](n);x=[t[Fr("0x5")][Fr("0x8")](o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0x7")]())i?x[Fr("0x21")](e):x[Fr("0x21")](...ms(Fr("0x1a"),e,t[Fr("0x5")]));t[Fr("0x5")][Fr("0x11")]((()=>{for(const t of x)e[Fr("0xf")](t,{commandName:Fr("0x1a"),commandParams:[{value:i}]})}))}));const n=t.locale;e[Fr("0xc")].registerDescriptionCallback((e=>{const{type:o,data:s}=e;if(Fr("0x3")==o&&s&&Fr("0x1a")==s.commandName){const e=n.t,o=s.commandParams[0][Fr("0x1")];if(o){const s=t[Fr("0x6")][Fr("0x1f")](Fr("0x15"))[Fr("0x18")]((t=>t[Fr("0x5")]==o)),r=e(s[Fr("0x2")])[Fr("0x1e")]();return{type:Fr("0xe"),content:Yo(n,Fr("0x16"),r),color:{value:s[Fr("0x17")],title:s[Fr("0x2")]}}}return{type:Fr("0xe"),content:Yo(n,Fr("0x19"),Yo(n,Fr("0xd")))}}}))}}const Pr=["createContainerElement","editor","createPositionAt","has","HorizontalLineEditing","dataDowncast","addClass","insert","plugins","afterInit","ELEMENT_HORIZONTAL_LINE","TrackChangesEditing","showSuggestionHighlights","horizontalLine","enableCommand","registerElementLabel","elementToStructure","get","high"];var Br,jr;Br=Pr,jr=101,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Pr[t-=0]};class Gr extends t.Plugin{[Ur("0x3")](){const t=this[Ur("0xe")];if(!t[Ur("0x2")][Ur("0x10")](Ur("0x11")))return;t.plugins[Ur("0xb")](Ur("0x5"))[Ur("0x8")](Ur("0x7"));const e=t[Ur("0x2")][Ur("0xb")](Ur("0x5")),n=t.locale;e._descriptionFactory[Ur("0x9")](Ur("0x7"),(t=>Yo(n,Ur("0x4"),t))),t.conversion.for(Ur("0x12"))[Ur("0xa")]({model:"horizontalLine",view:(t,{writer:e,options:n})=>{if(!n[Ur("0x6")])return null;const o=e[Ur("0xd")]("div"),s=e.createEmptyElement("hr");return e[Ur("0x0")]("ck-horizontal-line",o),e[Ur("0x1")](e[Ur("0xf")](o,0),s),o},converterPriority:Ur("0xc")})}}const Hr=["ELEMENT_HTML_EMBED","_descriptionFactory","TrackChangesEditing","commandName","view","markBlockFormat","selection","getCustomProperty","get","rawHtmlApi","model","element","HtmlEmbed","getSelectedElement","editing","htmlEmbed","document","editor","*Change %0 content*","locale","registerElementLabel","change","format","plugins","value","rawHtml"];var Wr,zr;Wr=Hr,zr=203,function(t){for(;--t;)Wr.push(Wr.shift())}(++zr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{afterInit(){const t=this[Vr("0x16")];if(!t[Vr("0x2")].has(Vr("0x11")))return;const e=t[Vr("0x2")][Vr("0xd")](Vr("0x7")),n=t[Vr("0x18")],o=t[Vr("0x13")][Vr("0x9")].document[Vr("0xb")];e[Vr("0x6")][Vr("0x19")](Vr("0x4"),(t=>Yo(n,Vr("0x5"),t))),t[Vr("0x2")][Vr("0xd")](Vr("0x7")).enableCommand("htmlEmbed",((n,s)=>{const r=t[Vr("0xf")],i=r[Vr("0x15")][Vr("0xb")];r[Vr("0x0")]((()=>{const t=function(t){const e=t[Vr("0x12")]();return e&&e.is(Vr("0x10"),Vr("0x4"))?t[Vr("0x12")]():null}(i);if(!t)return void n(null);const r=t.getAttribute(Vr("0x3"))||"";void 0!==s&&s!==r&&(e[Vr("0xa")](t,{commandName:Vr("0x14"),commandParams:[s]}),o[Vr("0x12")]()[Vr("0xc")](Vr("0xe")).cancel())}))})),e[Vr("0x6")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&Vr("0x14")==e[Vr("0x8")]){const t=Yo(n,Vr("0x5"));return{type:Vr("0x1"),content:Yo(n,Vr("0x17"),t)}}}))}}const qr=["imageStyle","imageBlock","refresh","end","width","ImageEditing","locale","from","addObject","commandReversedParams","ImageInlineEditing","imageTextAlternative","formatBlock","chain","registerCustomCallback","type","alt","getClosestSelectedImageElement","createRangeOn","toLowerCase","Block image to inline image","commands","Inline image to block image","previous","isEqual","find","registerElementLabel","schema","plugins","author","imageTypeBlock","ELEMENT_CAPTION","has","getCaptionFromImageModelElement","fromPosition","insertImage","ImageUploadEditing","isInContent","uploadImage","isCollapsed","enableCommand","*Reset image width*","get","hasAttribute","convertInlineImageToBlock","deletion","toPrevious","accept","ImageBlockEditing","subType","discard","createRange","isBlockImage","ImageUtils","forceDefaultExecution","imageCaption","document","forward","_suggestionFactory","_descriptionFactory","getFirstRange","ImageCaptionUtils","getChangedMarkers","getContainedElement","*Set image width:* %0","name","ImageCaptionEditing","commandName","registerDescriptionCallback","backward","registerPostFixer","model","afterInit","getSuggestions","newRange","suggestion","ImageStyleEditing","getNearestSelectionRange","value","resizeImage","_splitMarkerName","change","markInlineFormat","head","start","isOwn","getAttribute","*Format:* %0","newValue","toNext","isBefore","Users","formatInline","imageStylePostApply","format","join","discardSuggestion","selection","isIntersecting","commandParams","*Set image text alternative:* %0","insertion","imageStylePreApply","findIndex","imageTypeInline","ELEMENT_INLINE_IMAGE","markInsertion","markBlockFormat","markDeletion","convertBlockImageToInline","getSuggestion","TrackChangesEditing","differ","FORMAT_SIDE_IMAGE","length","detach"];var Xr,$r;Xr=qr,$r=444,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Qr=function(t,e){return qr[t-=0]};class Jr extends t.Plugin{[Qr("0x5c")](){const t=this.editor;if(!t.plugins.has(Qr("0x19")))return;const n=t[Qr("0x30")][Qr("0x3e")](Qr("0xf")),o=t.plugins[Qr("0x3e")](Qr("0x49")),s={},r=t[Qr("0x1a")];if(n[Qr("0x3c")](Qr("0x37")),n[Qr("0x4f")].registerElementLabel(Qr("0x15"),(t=>Yo(r,"ELEMENT_IMAGE",t))),n[Qr("0x4f")][Qr("0x2e")]("imageInline",(t=>Yo(r,Qr("0x9"),t))),n[Qr("0x4f")][Qr("0x2e")]("caption",(()=>Yo(r,Qr("0x33")))),t[Qr("0x30")][Qr("0x34")](Qr("0x38"))&&n[Qr("0x3c")](Qr("0x3a")),t[Qr("0x30")][Qr("0x34")](Qr("0x44"))&&t[Qr("0x30")][Qr("0x34")](Qr("0x1e"))&&(n[Qr("0x3c")](Qr("0x8"),((e,s)=>{const r=o[Qr("0x25")](t[Qr("0x5b")][Qr("0x4c")].selection);t.model[Qr("0x65")]((()=>{n[Qr("0xb")](r,{commandName:Qr("0x8"),commandParams:[s]},[],"convertBlockImageToInline")}))})),n[Qr("0x3c")](Qr("0x32"),((e,s)=>{t[Qr("0x5b")].change((r=>{let x=o.getClosestSelectedImageElement(t[Qr("0x5b")][Qr("0x4c")].selection),a=r[Qr("0x26")](x);const c=i.LivePosition[Qr("0x36")](a[Qr("0x68")],Qr("0x42")),l=i.LivePosition[Qr("0x36")](a[Qr("0x17")],Qr("0x6d"));n[Qr("0x4a")]((()=>e(s))),x=o.getClosestSelectedImageElement(t[Qr("0x5b")][Qr("0x4c")][Qr("0x1")]),a=r.createRangeOn(x);const u=r[Qr("0x47")](c,l);c[Qr("0x13")](),l[Qr("0x13")](),n[Qr("0xb")](x,{commandName:Qr("0x8"),commandParams:[]},[],Qr("0x40")),u[Qr("0x68")][Qr("0x6e")](a[Qr("0x68")])&&n[Qr("0xa")](r[Qr("0x47")](u.start,a[Qr("0x68")]),"convertInlineImageToBlock"),a[Qr("0x17")][Qr("0x6e")](u.end)&&n[Qr("0xa")](r[Qr("0x47")](a[Qr("0x17")],u[Qr("0x17")]),Qr("0x40"))}))})),n[Qr("0x4e")][Qr("0x22")](Qr("0x20"),"convertInlineImageToBlock",Qr("0x73"),(()=>!1)),n[Qr("0x4e")][Qr("0x22")]("formatBlock","convertInlineImageToBlock",Qr("0x43"),(()=>!1)),n[Qr("0x4e")][Qr("0x22")]("formatBlock",Qr("0x40"),Qr("0x46"),n[Qr("0x4e")].getSuggestionCallback("formatBlock","",Qr("0x43"))),n[Qr("0x4e")][Qr("0x22")](Qr("0x5"),"convertInlineImageToBlock",Qr("0x73"),(()=>!1)),n[Qr("0x4e")][Qr("0x22")]("insertion",Qr("0x40"),Qr("0x46"),(([e])=>{const o=n[Qr("0x4e")].getSuggestionCallback(Qr("0x5"),"",Qr("0x46"));let s=e[Qr("0x68")],r=e[Qr("0x17")];const i=t[Qr("0x5b")].schema[Qr("0x61")](s,Qr("0x59")),x=t[Qr("0x5b")][Qr("0x2f")].getNearestSelectionRange(r,Qr("0x4d"));i[Qr("0x3b")]&&(s=i[Qr("0x68")]),x.isCollapsed&&(r=x.end),o([t.model.createRange(s,r)])})),n[Qr("0x4e")][Qr("0x22")](Qr("0x20"),Qr("0x40"),"chain",c),n[Qr("0x4e")][Qr("0x22")](Qr("0x5"),Qr("0x40"),Qr("0x21"),c)),t[Qr("0x30")][Qr("0x34")](Qr("0x56"))&&(n[Qr("0x3c")]("toggleImageCaption",((e,s)=>{const r=t.plugins[Qr("0x3e")](Qr("0x51"));let i=o[Qr("0x25")](t.model[Qr("0x4c")][Qr("0x1")]),x=r[Qr("0x35")](i);t[Qr("0x5b")][Qr("0x65")]((()=>{if(x)return void n[Qr("0xc")](t[Qr("0x5b")][Qr("0x26")](x));const a=o[Qr("0x48")](i);e(s),i=o[Qr("0x25")](t[Qr("0x5b")][Qr("0x4c")][Qr("0x1")]),x=r[Qr("0x35")](i),n[Qr("0xa")](t[Qr("0x5b")][Qr("0x26")](x),a?null:Qr("0x4b"))}))})),n[Qr("0x4e")].registerCustomCallback("insertion",Qr("0x4b"),Qr("0x21"),c)),t[Qr("0x30")][Qr("0x34")](Qr("0x60"))){n.enableCommand(Qr("0x14"),((s,r)=>{const i=t[Qr("0x30")][Qr("0x3e")](Qr("0x6f")).me,x=t[Qr("0x29")][Qr("0x3e")](Qr("0x14"));let a=o[Qr("0x25")](t[Qr("0x5b")][Qr("0x4c")][Qr("0x1")]),c=t[Qr("0x5b")][Qr("0x26")](a),l=x[Qr("0x62")];if(l==r[Qr("0x62")])return;const u={commandName:Qr("0x14"),commandParams:[r],formatGroupId:(0,e.uid)()};t[Qr("0x5b")][Qr("0x65")]((()=>{if(n[Qr("0x5d")]().filter((t=>t[Qr("0x39")]&&i==t[Qr("0x31")]&&("formatBlock"==t[Qr("0x23")]||"formatInline"==t[Qr("0x23")])&&(Qr("0x6")==t[Qr("0x45")]||"imageStylePostApply"==t[Qr("0x45")])&&t[Qr("0x50")]()[Qr("0x2c")](c))).forEach((t=>n.discardSuggestion(t[Qr("0x67")]))),a=o[Qr("0x25")](t[Qr("0x5b")][Qr("0x4c")][Qr("0x1")]),c=t[Qr("0x5b")][Qr("0x26")](a),x[Qr("0x16")](),t[Qr("0x29")].get(Qr("0x8")).refresh(),t[Qr("0x29")][Qr("0x3e")]("imageTypeBlock")[Qr("0x16")](),l=x[Qr("0x62")],l!=r.value)return o.isInlineImage(a)&&x.shouldConvertImageType(r[Qr("0x62")],a)?(s(r),a=o.getClosestSelectedImageElement(t[Qr("0x5b")][Qr("0x4c")][Qr("0x1")]),void n.markBlockFormat(a,{...u,commandReversedParams:[{value:l||null}]},[],Qr("0x6"))):void(o[Qr("0x48")](a)?n[Qr("0xb")](a,u,[],Qr("0x71")):n[Qr("0x66")](c,u,Qr("0x71")))}))}));for(const e of t[Qr("0x30")][Qr("0x3e")](Qr("0x60")).normalizedStyles)s[e[Qr("0x55")]]=e.title[Qr("0x27")]();n[Qr("0x4e")].registerCustomCallback(Qr("0x20"),"imageStylePreApply",Qr("0x73"),(()=>!1)),n[Qr("0x4e")][Qr("0x22")]("formatBlock",Qr("0x71"),Qr("0x73"),(()=>!1)),n[Qr("0x4e")][Qr("0x22")](Qr("0x70"),"imageStylePostApply",Qr("0x73"),(()=>!1)),n._suggestionFactory[Qr("0x22")]("formatBlock",Qr("0x6"),Qr("0x43"),(()=>!1)),n[Qr("0x4e")][Qr("0x22")](Qr("0x20"),Qr("0x6"),Qr("0x46"),((t,e)=>{n[Qr("0x4e")].getSuggestionCallback(Qr("0x20"),"",Qr("0x43"))(t,{commandName:e[Qr("0x57")],commandParams:e[Qr("0x1d")]})})),n[Qr("0x4e")][Qr("0x22")]("formatBlock",Qr("0x6"),Qr("0x21"),c)}const x=[{type:"formatBlock",subType:Qr("0x6")},{type:Qr("0x5"),subType:Qr("0x4b")},{type:Qr("0x20"),subType:Qr("0x40")},{type:"insertion",subType:Qr("0x40")}];function a(t,e){const s=x[Qr("0x7")]((({type:e,subType:n})=>t[Qr("0x23")]==e&&t.subType==n)),r=x[Qr("0x7")]((({type:t,subType:n})=>e[Qr("0x23")]==t&&e[Qr("0x45")]==n));if(s<0||r<0)return!1;const i=t.getFirstRange(),a=e.getFirstRange();if((0==s||1==s)&&2==r&&i[Qr("0x2")](a))return!0;if(2==s&&3==r){const t=n._findSuggestions(i,Qr("0x5")).filter((({suggestion:t,meta:e})=>e[Qr("0x69")]&&Qr("0x40")==t.subType));if(t[Qr("0x12")]>1&&a[Qr("0x17")][Qr("0x2c")](i[Qr("0x68")]))return!0;if(1==t[Qr("0x12")]&&(i[Qr("0x68")][Qr("0x2c")](a.end)||i[Qr("0x17")][Qr("0x2c")](a[Qr("0x68")])))return!0}if(3==s&&3==r&&i[Qr("0x68")][Qr("0x6e")](a[Qr("0x68")])){const t=i[Qr("0x17")].nodeAfter,e=a[Qr("0x68")].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[Qr("0x5b")][Qr("0x4c")][Qr("0x5a")]((()=>{let e=!1;const s=Array[Qr("0x1b")](t[Qr("0x5b")][Qr("0x4c")][Qr("0x10")][Qr("0x52")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Qr("0x64")](t);if(Qr("0x5f")==s&&n.hasSuggestion(a)){if("formatBlock"==i&&("imageStylePreApply"==x||Qr("0x71")==x)){const t=n.getSuggestion(a);if(r[Qr("0x5e")]){const s=t[Qr("0x50")]()[Qr("0x53")]();if(o[Qr("0x48")](s))continue;n[Qr("0x0")](t),e=!0}}if("insertion"==i&&"imageCaption"==x&&!r[Qr("0x5e")]){const t=n[Qr("0xe")](a);t.next&&t.next.isInContent&&(n.discardSuggestion(t.next),e=!0)}}}return e})),t[Qr("0x30")].has("ImageResize")&&n[Qr("0x3c")](Qr("0x63"),((e,s)=>{const r=o[Qr("0x25")](t[Qr("0x5b")].document[Qr("0x1")]);r[Qr("0x6a")](Qr("0x18"))!=s[Qr("0x18")]&&t[Qr("0x5b")].change((()=>{n[Qr("0xb")](r,{commandName:Qr("0x63"),commandParams:[s]})}))})),t.plugins[Qr("0x34")]("ImageTextAlternativeEditing")&&n[Qr("0x3c")](Qr("0x1f"),((e,s)=>{const r=o.getClosestSelectedImageElement(t[Qr("0x5b")][Qr("0x4c")][Qr("0x1")]);(r[Qr("0x3f")](Qr("0x24"))?r[Qr("0x6a")](Qr("0x24")):"")!=s[Qr("0x6c")]&&t[Qr("0x5b")][Qr("0x65")]((()=>{n[Qr("0xb")](r,{commandName:Qr("0x1f"),commandParams:[s]})}))})),n._descriptionFactory[Qr("0x58")]((t=>{if(x[Qr("0x2d")]((({type:e,subType:n})=>t[Qr("0x23")]==e&&t[Qr("0x45")]==n)))return t[Qr("0x2b")]?{}:void 0})),n[Qr("0x4f")][Qr("0x58")]((t=>{if(Qr("0x5")==t.type||Qr("0x41")==t[Qr("0x23")]){const e=t[Qr("0x53")]();if(e&&e.is("element","caption"))return{type:Qr("0x5")==t[Qr("0x23")]?Qr("0x1c"):"removeObject",element:e,quantity:1}}})),n[Qr("0x4f")].registerDescriptionCallback((t=>Qr("0x20")==t[Qr("0x23")]&&Qr("0x40")==t.subType?{type:"format",content:Qr("0x2a")}:Qr("0x20")==t.type&&Qr("0xd")==t.subType?{type:Qr("0x72"),content:Qr("0x28")}:void 0)),n[Qr("0x4f")].registerDescriptionCallback((t=>{const{data:e}=t;if(e){if(Qr("0x14")==e[Qr("0x57")]){const t=e[Qr("0x3")][0][Qr("0x62")];return n="side"===t?Yo(r,Qr("0x11")):s[t]||t,{type:Qr("0x72"),content:Yo(r,Qr("0x6b"),n)}}if(Qr("0x1f")==e[Qr("0x57")]){const t=e[Qr("0x3")][0][Qr("0x6c")];return t?{type:"format",content:Yo(r,Qr("0x4"),'"'+t+'"')}:{type:Qr("0x72"),content:Yo(r,"*Remove image text alternative*")}}if(Qr("0x63")==e[Qr("0x57")]){const t=e.commandParams[0][Qr("0x18")];return t?{type:Qr("0x72"),content:Yo(r,Qr("0x54"),t)}:{type:"format",content:Yo(r,Qr("0x3d"))}}}var n}))}}const Zr=["discard","enableCommand","*Format:* replace image URL","_descriptionFactory","author","getContainedElement","formatBlock","afterInit","plugins","_suggestionFactory","commandName","getSuggestionCallback","ImageEditing","change","getAttribute","handleSuggestionDescription","handleReplaceImageCommand","locale","src","format","data","registerCustomCallback","replaceImageSource","model","editor","get","getSuggestions","has","registerDescriptionCallback","markBlockFormat","selection"];var Yr,ti;Yr=Zr,ti=114,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0x11")](){if(!this.editor[ei("0x12")][ei("0x6")](ei("0x16")))return;const t=this[ei("0x3")][ei("0x12")][ei("0x4")]("TrackChangesEditing");t[ei("0xb")](ei("0x1"),((t,e)=>this[ei("0x1a")](t,e))),t[ei("0x13")][ei("0x0")](ei("0x10"),ei("0x1"),"accept",t._suggestionFactory[ei("0x15")]("formatBlock",null,ei("0xa"))),t[ei("0x13")].registerCustomCallback("formatBlock",ei("0x1"),ei("0xa"),t[ei("0x13")].getSuggestionCallback(ei("0x10"),null,"accept")),t[ei("0xd")][ei("0x7")]((t=>this[ei("0x19")](t)))}[ei("0x1a")](t,e){const n=this[ei("0x3")][ei("0x12")][ei("0x4")]("TrackChangesEditing"),o=this[ei("0x3")][ei("0x2")].document[ei("0x9")].getSelectedElement();this[ei("0x3")][ei("0x2")][ei("0x17")]((()=>{let s=o[ei("0x18")](ei("0x1c"));const r=this.editor.plugins[ei("0x4")]("Users").me;for(const t of n[ei("0x5")]({skipNotAttached:!0})){const e=t[ei("0xf")]();if(ei("0x1")===t.subType&&e===o){t[ei("0xe")]!==r&&t[ei("0xa")](),s=t[ei("0x1e")].commandParams[0].source;break}}t(e),n[ei("0x8")](o,{commandName:"replaceImageSource",commandParams:[{source:s}]},[],"replaceImageSource")}))}[ei("0x19")](t){const{data:e}=t;if(e&&"replaceImageSource"===e[ei("0x14")]){const t=ei("0xc");return{type:ei("0x1d"),content:Yo(this.editor[ei("0x1b")],t)}}}}const oi=["collaboration_features","importWord","afterInit","get","track_changes","commands","listenTo","TrackChangesEditing","_trackChangesValueDuringImport","dataInsert","high","value","Users","bind","forEach","trackChanges","_handleImportedData","enableCommand","execute","_trackChangesExecuted","editor","plugins"];var si,ri;si=oi,ri=415,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("0x0")]=!1}[ii("0x5")](){const t=this[ii("0x1")],e=t.commands[ii("0x6")](ii("0x4")),n=t[ii("0x8")][ii("0x6")](ii("0x12"));e&&(e.on(ii("0x15"),((t,[,e])=>{this._trackChangesValueDuringImport=n[ii("0xe")],e[ii("0x3")][ii("0x7")]=!this[ii("0xb")]}),{priority:ii("0xd")}),this[ii("0x9")](e,ii("0xc"),this[ii("0x13")][ii("0x10")](this)),this.listenTo(e,ii("0xc"),(()=>{this[ii("0x0")]&&(n[ii("0x15")](),this[ii("0x0")]=!1)}),{priority:"lowest"}),t[ii("0x2")][ii("0x6")](ii("0xa"))[ii("0x14")](ii("0x4")))}[ii("0x13")](t,e){const{suggestions:n}=e,o=this[ii("0x1")].commands[ii("0x6")]("trackChanges"),s=o[ii("0xe")];this[ii("0xb")]!==s&&(o[ii("0x15")](),this[ii("0x0")]=!0),n&&n[ii("0x11")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0x1")].plugins[ii("0x6")](ii("0xf")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0x4")}}};this.editor[ii("0x2")][ii("0x6")]("TrackChangesEditing")._setSuggestionData(s)}))}}const ai=["afterInit","_descriptionFactory","format","commandName","get","outdentBlock","markBlockFormat","enableCommand","indent","change","schema","plugins","IndentBlock","*Outdent:* %0","has","filter","document","indentBlock","locale","getSelectedBlocks","from","*Indent:* %0","getItems","model","registerDescriptionCallback","checkAttribute"];var ci,li;ci=ai,li=170,function(t){for(;--t;)ci.push(ci.shift())}(++li);const ui=function(t,e){return ai[t-=0]};class di extends t.Plugin{[ui("0xc")](){const t=this.editor,e=t[ui("0x17")][ui("0x10")]("TrackChangesEditing");t[ui("0x17")].has("IndentEditing")&&(e.enableCommand(ui("0x14")),e.enableCommand("outdent"));const n=t[ui("0x4")];if(t.plugins[ui("0x0")](ui("0x18"))){for(const n of[ui("0x3"),"outdentBlock"])e[ui("0x13")](n,(()=>{const o=Array[ui("0x6")](this.editor[ui("0x9")][ui("0x2")].selection[ui("0x5")]())[ui("0x1")]((t=>this.editor.model[ui("0x16")][ui("0xb")](t,"blockIndent")));t[ui("0x9")][ui("0x15")]((()=>{for(const t of o)e[ui("0x12")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:"indentBlock"})}))}));e[ui("0xd")][ui("0xa")]((t=>{const{data:o}=t;if(!o)return;if(ui("0x3")!=o[ui("0xf")]&&ui("0x11")!=o[ui("0xf")])return;const s=t[ui("0x8")]()[0],r=e[ui("0xd")].getItemLabel(s);return ui("0x3")==o.commandName?{type:ui("0xe"),content:Yo(n,ui("0x7"),r)}:"outdentBlock"==o.commandName?{type:"format",content:Yo(n,ui("0x19"),r)}:void 0}))}}}var gi,mi,fi=["editor","plugins","init","enableCommand","input","get"];gi=fi,mi=226,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 requires(){return[Vs.Input]}[hi("0x4")](){this[hi("0x2")][hi("0x3")][hi("0x1")]("TrackChangesEditing")[hi("0x5")](hi("0x0"))}}const pi=["afterInit","unlink","getRanges","LinkEditing","format","TrackChangesEditing","link","change","plugins","markInlineFormat","*Set link:* %0","getFirstRange","enableCommand","*Remove link*","from","selection","hasAttribute","linkHref","locale","editor","model","isCollapsed","getAttribute","document","registerDescriptionCallback"];var Ei,_i;Ei=pi,_i=408,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return pi[t-=0]};class Ci extends t.Plugin{[Ti("0x11")](){const t=this[Ti("0xb")];if(!t[Ti("0x0")].has(Ti("0x14")))return;const e=t[Ti("0x0")].get(Ti("0x16"));e[Ti("0x4")](Ti("0x17"),((n,o)=>{const s=t[Ti("0xc")][Ti("0xf")][Ti("0x7")];let r=[];if(s[Ti("0xd")]){if(!s[Ti("0x8")](Ti("0x9")))return void n(o);{const e=(0,Vs.findAttributeRange)(s.getFirstPosition(),Ti("0x9"),s.getAttribute(Ti("0x9")),t[Ti("0xc")]);r=[e]}}else r=Array[Ti("0x6")](s[Ti("0x13")]());t[Ti("0xc")][Ti("0x18")]((()=>{for(const t of r)e[Ti("0x1")](t,{commandName:Ti("0x17"),commandParams:[o]})}))})),e[Ti("0x4")](Ti("0x12"),(()=>{const n=this[Ti("0xb")][Ti("0xc")],o=n[Ti("0xf")][Ti("0x7")];n[Ti("0x18")]((()=>{let n=[];n=o[Ti("0xd")]?[(0,Vs.findAttributeRange)(o.getFirstPosition(),"linkHref",o[Ti("0xe")]("linkHref"),t.model)]:ms("linkHref",o[Ti("0x3")](),t.model);for(const t of n)e.markInlineFormat(t,{commandName:Ti("0x12"),commandParams:[]})}))})),e._descriptionFactory[Ti("0x10")]((e=>{const{data:n}=e,o=t[Ti("0xa")];if(n){if(Ti("0x17")==n.commandName){const t=n.commandParams[0];return{type:Ti("0x15"),content:Yo(o,Ti("0x2"),'"'+t+'"')}}return Ti("0x12")==n.commandName?{type:Ti("0x15"),content:Yo(o,Ti("0x5"))}:void 0}}))}}const yi=["ListEditing","enableCommand","ELEMENT_LIST_ITEM","blockName","getAttribute","model","todoList","*Outdent:* %0","element","ELEMENT_BULLETED_LIST","*Indent:* %0","numbered","filter","editor","push","end","locale","add","commandName","getSelectedBlocks","nextSibling","createPositionAt","execute","registerDescriptionCallback","*Change to:* %0","todoListChecked","bulleted","name","listItem","value","TrackChangesEditing","get","from","*Check item*","_descriptionFactory","plugins","format","numberedList","replace","listIndent","commands","ELEMENT_NUMBERED_LIST","todo","findIndex","previousSibling","commandParams","document","paragraph","checkChild","checkTodoList","listType","has","forceValue","markBlockFormat","TodoListEditing","schema","change","parent","bulletedList","List","indentList","selection","afterInit","length","outdentList","ELEMENT_TODO_LIST","createRange"];var ki,Ai;ki=yi,Ai=290,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0x28")](){const t=this[vi("0x3a")],e=t[vi("0x3d")];if(!t[vi("0xd")][vi("0x1d")](vi("0x2d")))return;const n=t[vi("0xd")][vi("0x9")](vi("0x8")),o=t[vi("0xd")][vi("0x1d")](vi("0x20"));function s(e){return()=>{const o=t[vi("0x32")][vi("0x18")][vi("0x27")],s=t[vi("0x12")][vi("0x9")](e);if(s[vi("0x7")])return void t[vi("0x0")](vi("0x19"),{});const r=e.slice(0,-4),i=function(t,e,n){let o=Array.from(t).filter((t=>{return e=t,(o=n)[vi("0x1a")](e[vi("0x23")],"listItem")&&!o.isObject(e);var e,o}));o=o[vi("0x39")]((t=>!t.is("element",vi("0x6"))||t[vi("0x31")](vi("0x1c"))!=e));const s=new Set;for(const t of o)t.is(vi("0x35"),vi("0x6"))?s[vi("0x3e")](Si(t)):s.add(t);return Array.from(s)}(o[vi("0x40")](),r,t[vi("0x32")][vi("0x21")]);t[vi("0x32")][vi("0x22")]((()=>{for(const t of i)n[vi("0x1f")](t,{commandName:e,commandParams:[{forceValue:!s[vi("0x7")]}],formatGroupId:vi("0x30")},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[vi("0xa")](t);const n=e[vi("0x15")]((t=>vi("0x6")!=t.name));return n>-1&&(e=e.slice(0,n)),e}(t[vi("0x32")][vi("0x18")][vi("0x27")][vi("0x40")]()),s=t.model[vi("0x2c")](t.model[vi("0x42")](o[0],"before"),t[vi("0x32")][vi("0x42")](o[o[vi("0x29")]-1],vi("0x3c")));t[vi("0x32")][vi("0x22")]((()=>{n[vi("0x1f")](s,{commandName:e,commandParams:[],formatGroupId:"listIndent"},function(t){const e=new Set;for(const n of t){let t=n[vi("0x41")];for(;t&&t[vi("0x31")]("listIndent")>n[vi("0x31")](vi("0x11"));)e[vi("0x3e")](t),t=t.nextSibling}return Array.from(e)}(o))}))}}n[vi("0x2e")](vi("0xf"),s(vi("0xf"))),n[vi("0x2e")](vi("0x24"),s(vi("0x24"))),o&&n[vi("0x2e")](vi("0x33"),s("todoList")),n[vi("0x2e")](vi("0x26"),r(vi("0x26"))),n[vi("0x2e")](vi("0x2a"),r(vi("0x2a"))),o&&n.enableCommand("checkTodoList",(()=>{const e=t.commands.get(vi("0x1b")),o=Array[vi("0xa")](e._selectedElements);o[vi("0x39")]((t=>t[vi("0x31")](vi("0x3"))!=e.value)),t[vi("0x32")][vi("0x22")]((()=>{for(const t of o)n[vi("0x1f")](t,{commandName:vi("0x1b"),commandParams:[{forceValue:!e.value}]})}))})),n[vi("0xc")].registerElementLabel(vi("0x6"),(t=>Yo(e,vi("0x2f"),t))),n[vi("0xc")][vi("0x1")]((t=>{const{data:n}=t;if(n){if(vi("0xf")==n[vi("0x3f")]||vi("0x24")==n.commandName||"todoList"==n.commandName)switch(n[vi("0x3f")][vi("0x10")](vi("0x25"),"")){case vi("0x4"):return o(Yo(e,vi("0x36")));case vi("0x38"):return o(Yo(e,vi("0x13")));case vi("0x14"):return o(Yo(e,vi("0x2b")))}if(vi("0x26")==n[vi("0x3f")])return{type:vi("0xe"),content:Yo(e,vi("0x37"),Yo(e,vi("0x2f")))};if(vi("0x2a")==n[vi("0x3f")])return{type:vi("0xe"),content:Yo(e,vi("0x34"),Yo(e,vi("0x2f")))};if(vi("0x1b")==n[vi("0x3f")])return n[vi("0x17")][0][vi("0x1e")]?{type:vi("0xe"),content:Yo(e,vi("0xb"))}:{type:"format",content:Yo(e,"*Uncheck item*")}}function o(t){return{type:"format",content:Yo(e,vi("0x2"),t)}}}))}}function Si(t){const e=t.getAttribute(vi("0x11"));if(0==e)return t;let n=t;for(;t[vi("0x16")]&&t[vi("0x16")].is(vi("0x35"),"listItem");){const o=t.previousSibling[vi("0x31")](vi("0x11"));if(o==e)n=t[vi("0x16")];else if(o<e)break;t=t.previousSibling}return n}function Ii(t){const e=[];if(t.is(vi("0x35"),vi("0x6"))&&t.getAttribute("listIndent")>0){let n=t[vi("0x41")];for(;n&&"listItem"==n[vi("0x5")]&&n[vi("0x31")](vi("0x11"))==t[vi("0x31")](vi("0x11"));)e[vi("0x3b")](n),n=n[vi("0x41")]}return e}const Li=["locale","getFirstPosition","handleListStyleCommand","forward","has","get","*Format:* set order to regular","ListPropertiesEditing","type","plugins","length","TrackChangesEditing","listType","_getSuggestionBlocksForListStyle","change","*Format:* set start index to %0","parent","*Format:* set order to reversed","filter","listStyle","enableCommand","styles","listStart","registerDescriptionCallback","handleDescriptions","backward","handleListReversedCommand","_LIST_","flat","markMultiRangeBlockFormat","bind","startIndex","selection","map","_getSuggestionBlocks","createRange","getSelectedBlocks","_getTranslationKeyForListStyle","listItem","commandName","getSiblingNodes","handleListStartCommand","model","commandParams","_descriptionFactory","*Change to:* %0","toUpperCase","listReversed","getAttribute","numbered","list.properties","format","before","afterInit","reversed","editor","createPositionAt","element","document","ListUtils","push","from"];var Ni,Mi;Ni=Li,Mi=296,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[wi("0x5")](){if(!this[wi("0x7")][wi("0x17")][wi("0x12")](wi("0x15")))return;const t=this[wi("0x7")].config[wi("0x13")](wi("0x2")),e=this[wi("0x7")][wi("0x17")][wi("0x13")](wi("0x19"));t[wi("0x23")]&&e[wi("0x22")](wi("0x21"),this[wi("0x10")][wi("0x2c")](this)),t[wi("0x6")]&&e.enableCommand(wi("0x3d"),this[wi("0x28")][wi("0x2c")](this)),t[wi("0x2d")]&&e[wi("0x22")](wi("0x24"),this[wi("0x37")][wi("0x2c")](this)),e[wi("0x3a")][wi("0x25")](this[wi("0x26")].bind(this))}[wi("0x10")](t,e={}){const n=this.editor[wi("0x17")][wi("0x13")](wi("0x19")),o=this[wi("0x1b")]();this.editor[wi("0x38")][wi("0x1c")]((()=>{n[wi("0x2b")](o,{commandName:"listStyle",commandParams:[{type:e.type}],formatGroupId:wi("0x21")})}))}[wi("0x28")](t,e={}){const n=this[wi("0x7")][wi("0x17")].get(wi("0x19")),o=this._getSuggestionBlocks((t=>t.is("element",wi("0x34"))&&wi("0x1")===t[wi("0x0")](wi("0x1a"))));if(o[wi("0x18")]<1)return;const s=o[wi("0x2f")]((t=>this[wi("0x7")][wi("0x38")].createRange(this[wi("0x7")][wi("0x38")][wi("0x8")](t,"before"),this[wi("0x7")].model[wi("0x8")](t,0))));this[wi("0x7")][wi("0x38")].change((()=>{n.markMultiRangeBlockFormat(s,{commandName:wi("0x3d"),commandParams:[{reversed:e[wi("0x6")]}],formatGroupId:"listReversed"})}))}[wi("0x37")](t,e={}){const n=this[wi("0x7")][wi("0x17")][wi("0x13")]("TrackChangesEditing"),o=this[wi("0x30")]((t=>t.is(wi("0x9"),wi("0x34"))&&"numbered"===t[wi("0x0")]("listType")));if(o[wi("0x18")]<1)return;const s=o[wi("0x2f")]((t=>this[wi("0x7")][wi("0x38")][wi("0x31")](this[wi("0x7")].model[wi("0x8")](t,wi("0x4")),this[wi("0x7")][wi("0x38")].createPositionAt(t,0))));this[wi("0x7")].model[wi("0x1c")]((()=>{n[wi("0x2b")](s,{commandName:wi("0x24"),commandParams:[{startIndex:e[wi("0x2d")]}],formatGroupId:wi("0x24")})}))}[wi("0x26")](t){const e=this[wi("0x7")][wi("0xe")],{data:n}=t;if(!n)return;let o,s;switch(n[wi("0x35")]){case wi("0x21"):o=wi("0x3b"),s={type:wi("0x3"),content:Yo(e,o,Yo(e,this[wi("0x33")](n.commandParams[0][wi("0x16")])))};break;case"listReversed":o=n[wi("0x39")][0].reversed?wi("0x1f"):wi("0x14"),s={type:wi("0x3"),content:Yo(e,o)};break;case wi("0x24"):o=wi("0x1d"),s={type:wi("0x3"),content:Yo(e,o,n[wi("0x39")][0][wi("0x2d")])}}return s}[wi("0x1b")](){var t,e,n,o;const s=this[wi("0x7")][wi("0x17")][wi("0x13")](wi("0xb"));let r=Array[wi("0xd")](this[wi("0x7")][wi("0x38")][wi("0xa")][wi("0x2e")][wi("0x32")]());return(null===(t=r[0])||void 0===t?void 0:t.is(wi("0x9"),wi("0x34")))&&r.unshift(...s.getSiblingNodes(this[wi("0x7")][wi("0x38")][wi("0xa")][wi("0x2e")][wi("0xf")](),wi("0x27"))),(null===(e=r[r.length-1])||void 0===e?void 0:e.is(wi("0x9"),wi("0x34")))&&r[wi("0xc")](...s[wi("0x36")](this[wi("0x7")][wi("0x38")].document.selection.getLastPosition(),"forward")),r=[...new Set(r)],(null===(o=null===(n=this.editor[wi("0x38")].document[wi("0x2e")].getFirstPosition())||void 0===n?void 0:n[wi("0x1e")])||void 0===o?void 0:o.is(wi("0x9"),wi("0x34")))&&(r=r[wi("0x20")]((t=>t.is(wi("0x9"),wi("0x34"))))),r}_getSuggestionBlocks(t){const e=this[wi("0x7")][wi("0x17")][wi("0x13")](wi("0xb"));let n=Array[wi("0xd")](this[wi("0x7")].model[wi("0xa")].selection.getSelectedBlocks())[wi("0x20")](t)[wi("0x2f")]((t=>{const n=this[wi("0x7")].model[wi("0x8")](t,0);return[...e[wi("0x36")](n,wi("0x27")),...e.getSiblingNodes(n,wi("0x11"))]}))[wi("0x2a")]();return n=[...new Set(n)],n}[wi("0x33")](t){return"ELEMENT_"+this[wi("0x7")][wi("0x17")][wi("0x13")]("ListUtils").getListTypeFromListStyleType(t)[wi("0x3c")]()+wi("0x29")+t.toUpperCase().replace(/-/g,"_")}}const Fi=["div","data","showSuggestionHighlights","get","enableCommand","conversion","ELEMENT_MEDIA","high","downcastDispatcher","MediaEmbedEditing","has","_descriptionFactory","dataDowncast","for","locale","TrackChangesEditing","plugins","media","attribute:url:media","createEmptyElement","stop"];var Di,Pi;Di=Fi,Pi=439,function(t){for(;--t;)Di.push(Di.shift())}(++Pi);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{afterInit(){const t=this.editor;if(!t[Bi("0x12")][Bi("0xc")](Bi("0xb")))return;const e=t[Bi("0x12")][Bi("0x5")](Bi("0x11")),n=t[Bi("0x10")];e[Bi("0x6")]("mediaEmbed"),e[Bi("0xd")].registerElementLabel(Bi("0x13"),(t=>Yo(n,Bi("0x8"),t))),t[Bi("0x7")][Bi("0xf")](Bi("0xe")).elementToElement({model:Bi("0x13"),view:(t,{writer:e,options:n})=>{if(n[Bi("0x4")])return e[Bi("0x0")](Bi("0x2"))},converterPriority:"high"}),t[Bi("0x3")][Bi("0xa")].on(Bi("0x14"),((t,e,n)=>{n.options[Bi("0x4")]&&t[Bi("0x1")]()}),{priority:Bi("0x9")})}}const Ui=["editor","plugins","mention","enableCommand","get","has","afterInit"];var Gi,Hi;Gi=Ui,Hi=198,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const Wi=function(t,e){return Ui[t-=0]};class zi extends t.Plugin{[Wi("0x4")](){const t=this[Wi("0x5")];t[Wi("0x6")][Wi("0x3")]("MentionEditing")&&t[Wi("0x6")][Wi("0x2")]("TrackChangesEditing")[Wi("0x1")](Wi("0x0"))}}const Vi=["plugins","locale","has","PageBreakEditing","pageBreak","ELEMENT_PAGE_BREAK","TrackChangesEditing","enableCommand","get","registerElementLabel","afterInit"];var Ki,qi;Ki=Vi,qi=171,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{[Xi("0x4")](){const t=this.editor;if(!t[Xi("0x5")][Xi("0x7")](Xi("0x8")))return;t[Xi("0x5")][Xi("0x2")](Xi("0x0"))[Xi("0x1")](Xi("0x9"));const e=t[Xi("0x5")][Xi("0x2")](Xi("0x0")),n=t[Xi("0x6")];e._descriptionFactory[Xi("0x3")]("pageBreak",(t=>Yo(n,Xi("0xa"),t)))}}const Qi=["isBlock","editing","includes","TrackChangesEditing","registerDescriptionCallback","insertion","change","Paragraph","options","nodeAfter","filter","blockName","span","addClass","afterInit","mapper","getSelectedBlocks","end","highest","format","insert","markerName","has","checkChild","start","bindElementToMarker","commandName","model","locale","_descriptionFactory","ck-suggestion-marker--active","$text","isLimit","markerRange","type","editor","isObject","activeMarkers","schema","getItemLabel","plugins","get","writer","document","parent","createUIElement","selection","toViewPosition","paragraph","*Insert:* %0","addMarker:suggestion:insertion","downcastDispatcher","name","registerElementLabel","ck-suggestion-marker-split","isTouching","ELEMENT_PARAGRAPH"];var Ji,Zi;Ji=Qi,Zi=114,function(t){for(;--t;)Ji.push(Ji.shift())}(++Zi);const Yi=function(t,e){return Qi[t-=0]};class tx extends t.Plugin{[Yi("0xe")](){const t=this[Yi("0x23")];if(!t[Yi("0x28")][Yi("0x16")](Yi("0x7")))return;const e=t[Yi("0x1c")],n=t[Yi("0x28")][Yi("0x29")](Yi("0x3"));n[Yi("0x1d")][Yi("0x35")](Yi("0x30"),(t=>Yo(e,Yi("0x38"),t))),n.enableCommand("paragraph",((e,o={})=>{const s=t[Yi("0x1b")][Yi("0x2b")],r=o[Yi("0x2e")]||s.selection,i=Array.from(r[Yi("0x10")]())[Yi("0xa")]((t=>{return e=t,(n=this[Yi("0x23")][Yi("0x1b")][Yi("0x26")])[Yi("0x17")](e[Yi("0x2c")],"paragraph")&&!n[Yi("0x24")](e)&&"paragraph"!=e[Yi("0x34")];var e,n}));t[Yi("0x1b")][Yi("0x6")]((()=>{for(const t of i)n.markBlockFormat(t,{commandName:Yi("0x30"),commandParams:[],formatGroupId:Yi("0xb")},fs(t))}))})),n[Yi("0x1d")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&Yi("0x30")==n[Yi("0x1a")])return{type:Yi("0x13"),content:Yo(e,"*Change to:* %0",Yo(e,Yi("0x38")))}})),n.enableCommand("insertParagraph"),t[Yi("0x1")][Yi("0x33")].on(Yi("0x32"),ex(t),{priority:"highest"}),t.data[Yi("0x33")].on(Yi("0x32"),((e,n,o)=>{o[Yi("0x8")].showSuggestionHighlights&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0x12")});const o=n._descriptionFactory;o[Yi("0x4")]((n=>{if(Yi("0x5")!==n[Yi("0x22")])return;const{start:s,end:r}=n.getFirstRange();if(!s[Yi("0x37")](r)||!s[Yi("0x9")])return;const i=t[Yi("0x1b")][Yi("0x26")],x=s.nodeAfter;return i[Yi("0x0")](x)&&!i[Yi("0x20")](x)&&i[Yi("0x17")](x,Yi("0x1f"))?{type:"insertion",content:Yo(e,Yi("0x31"),o[Yi("0x27")](x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t.plugins.get("TrackChangesEditing"),i=o[Yi("0x21")][Yi("0x18")],x=o[Yi("0x21")][Yi("0x11")],a=t[Yi("0x1b")].schema;if(!i[Yi("0x37")](x)||!i.nodeAfter)return;const c=i.nodeAfter;if(a[Yi("0x0")](c)&&!a[Yi("0x20")](c)&&a[Yi("0x17")](c,Yi("0x1f"))){if(!s.consumable.consume(o[Yi("0x21")],n[Yi("0x34")]))return;const t=s[Yi("0x2a")][Yi("0x2d")](Yi("0xc"),{class:Yi("0x36")}),i=s[Yi("0xf")][Yi("0x2f")](x);e&&r[Yi("0x25")][Yi("0x2")](o.markerName)&&s[Yi("0x2a")][Yi("0xd")](Yi("0x1e"),t),s[Yi("0x2a")][Yi("0x14")](i,t),s[Yi("0xf")][Yi("0x19")](t,o[Yi("0x15")])}}}const nx=["model","RemoveFormatEditing","has","createRangeOn","from","TrackChangesEditing","getAttributeProperties","getAttributes","plugins","isFormatting","afterInit","markInlineFormat","removeFormat","isCollapsed","_descriptionFactory","commandName","getRanges","selection","document","enableCommand","change","schema"];var ox,sx;ox=nx,sx=103,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[rx("0x11")](){const t=this.editor;if(!t[rx("0xf")][rx("0x9")](rx("0x8")))return;const e=t[rx("0xf")].get(rx("0xc"));e[rx("0x4")]("removeFormat",(n=>{const o=t[rx("0x7")][rx("0x3")][rx("0x2")];o[rx("0x14")]?n():t[rx("0x7")][rx("0x5")]((()=>{const n=Array[rx("0xb")](o[rx("0x1")]());for(const o of n)for(const n of o.getItems())xx(n,t[rx("0x7")][rx("0x6")])&&e[rx("0x12")](t.model[rx("0xa")](n),{commandName:"removeFormat",commandParams:[]})}))})),e[rx("0x15")].registerDescriptionCallback((e=>{const{data:n}=e;if(n&&rx("0x13")==n[rx("0x0")])return{type:"format",content:Yo(t.locale,"*Remove all formatting*")}}))}}function xx(t,e){for(const[n]of t[rx("0xe")]()){const t=e[rx("0xd")](n);if(t&&t[rx("0x10")])return!0}return!1}const ax=["get","discardAllSuggestions","acceptSuggestion","TrackChangesEditing","discardSuggestion","enableCommand","editor","plugins","afterInit","RestrictedEditingModeEditing","discardSelectedSuggestions","goToPreviousRestrictedEditingException","has"];var cx,lx;cx=ax,lx=376,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{[ux("0x9")](){const t=this[ux("0x7")];if(!t.plugins[ux("0x0")](ux("0xa")))return;const e=t.plugins[ux("0x1")](ux("0x4"));e.enableCommand(ux("0xc")),e[ux("0x6")]("goToNextRestrictedEditingException");const n=t[ux("0x8")][ux("0x1")](ux("0xa"));n[ux("0x6")]("trackChanges"),n[ux("0x6")](ux("0x3")),n.enableCommand(ux("0x5")),n[ux("0x6")]("acceptAllSuggestions"),n[ux("0x6")](ux("0x2")),n[ux("0x6")]("acceptSelectedSuggestions"),n[ux("0x6")](ux("0xb"))}}const gx=["test","createPositionBefore","consumable","downcastDispatcher","softBreak","enableCommand","bindElementToMarker","plugins","options","editor","locale","getItems","writer","ck-suggestion-marker--active","editing","split","data","toViewPosition","high","showSuggestionHighlights","addMarker:suggestion:deletion","insert","markerName","span","model","element","name","addMarker:suggestion","_descriptionFactory","markerRange","shiftEnter","TrackChangesEditing","ck-suggestion-marker-","requires","ELEMENT_LINE_BREAK","addMarker:suggestion:insertion"];var mx,fx;mx=gx,fx=273,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("0xc")](){return[nr.ShiftEnter]}init(){const t=this[hx("0x18")],e=t[hx("0x16")].get(hx("0xa"));e[hx("0x14")](hx("0x9")),t[hx("0x1d")][hx("0x12")].on(hx("0xe"),px(t),{priority:hx("0x21")}),t.editing[hx("0x12")].on(hx("0x23"),px(t),{priority:hx("0x21")}),t[hx("0x1f")][hx("0x12")].on(hx("0x6"),((e,n,o)=>{o[hx("0x17")][hx("0x22")]&&px(t,{showActiveMarker:!1})(e,n,o)})),e[hx("0x7")].registerElementLabel(hx("0x13"),(e=>Yo(t[hx("0x19")],hx("0xd"),e)))}}function px(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[hx("0x16")].get(hx("0xa"));if(!s[hx("0x11")][hx("0xf")](o.markerRange,n[hx("0x5")]))return;const i=t[hx("0x3")];for(const t of o[hx("0x8")][hx("0x1a")]()){if(!t.is(hx("0x4"),hx("0x13")))continue;const n="deletion"==o[hx("0x1")][hx("0x1e")](":")[1]?"merge":hx("0x1e"),x=s[hx("0x1b")].createUIElement(hx("0x2"),{class:hx("0xb")+n}),a=s.mapper[hx("0x20")](i[hx("0x10")](t));e&&r.activeMarkers.includes(o.markerName)&&s.writer.addClass(hx("0x1c"),x),s.writer[hx("0x0")](a,x),s.mapper[hx("0x15")](x,o[hx("0x1")])}}}const Ex=["editor","FORMAT_RESTRICTED_ENABLED","document","format","commandParams","StandardEditingModeEditing","markInlineFormat","commands","plugins","TrackChangesEditing","restrictedEditingException","from","enableCommand","selection","change","get","afterInit","commandName","forceValue","isCollapsed","model"];var _x,Tx;_x=Ex,Tx=265,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{[Cx("0x3")](){const t=this[Cx("0x8")],e=t[Cx("0x7")],n=t.locale;if(!t.plugins.has(Cx("0xd")))return;const o=t[Cx("0x10")][Cx("0x2")](Cx("0x11")),s=Cx("0x12"),r=t[Cx("0xf")][Cx("0x2")](s);o[Cx("0x14")](s,((t,n={})=>{const i=e[Cx("0xa")][Cx("0x0")];if(i[Cx("0x6")])return void t(n);const x=void 0!==n[Cx("0x5")]?n.forceValue:!r.value;e[Cx("0x1")]((()=>{const t=Array[Cx("0x13")](i.getRanges());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o[Cx("0xe")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o._descriptionFactory.registerDescriptionCallback((t=>{const{data:e}=t;if(e&&e[Cx("0x4")]==s)return e[Cx("0xc")][0].forceValue?{type:Cx("0xb"),content:Yo(n,Cx("0x9"))}:{type:Cx("0xb"),content:Yo(n,"FORMAT_RESTRICTED_DISABLED")}}))}}const kx=["locale","includes","has","*Format:* %0","commandName","registerDescriptionCallback","getSelectedBlocks","document","_getRangesWithClasses","StyleUtils","inline","find","value","commands","DataSchema","plugins","add","name","getAncestors","TrackChangesEditing","_descriptionFactory","_getStyleDefinition","config","enableCommand","classes","markInlineFormat","push","toLowerCase","getItems","style","from","getDefinitionsForView","get","isBlock","element","getRanges","editor","styleName","forceValue","style.definitions","format","isCollapsed","markBlockFormat","commandParams","model","change","every","createRangeOn"];var Ax,vx;Ax=kx,vx=457,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{afterInit(){const t=this[Rx("0xb")];if(!t[Rx("0x26")][Rx("0x19")]("Style"))return;const e=t[Rx("0x24")].get("style"),n=t.plugins.get(Rx("0x2a")),o=t[Rx("0x17")],s=t[Rx("0x26")][Rx("0x7")](Rx("0x25")),r=t[Rx("0x26")][Rx("0x7")](Rx("0x20")).normalizeConfig(s,t[Rx("0x2d")][Rx("0x7")](Rx("0xe")));n[Rx("0x2e")](Rx("0x4"),((o,{styleName:i})=>{const x=t[Rx("0x13")][Rx("0x1e")].selection,a=this[Rx("0x2c")](i,r);if(!a)return;if(!e.enabledStyles.includes(i))return;if(x[Rx("0x10")]&&!a[Rx("0x8")])return void o({styleName:i});const c=!e[Rx("0x23")][Rx("0x18")](a[Rx("0x28")]);if(a.isBlock){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Rx("0x29")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[Rx("0x18")](o[Rx("0x28")])){n[Rx("0x27")](o);break}}return n}(x[Rx("0x1d")](),a.modelElements);t[Rx("0x13")][Rx("0x14")]((()=>{for(const t of e)n[Rx("0x11")](t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}],formatGroupId:"style:"+i})}))}else{let e=Array[Rx("0x5")](x[Rx("0xa")]());if(!c){const n=Array[Rx("0x5")](s[Rx("0x6")](a[Rx("0x9")],!1))[0].model,o=[];for(const s of e){const e=this[Rx("0x1f")](t[Rx("0x13")],s,a[Rx("0x2f")],n);o[Rx("0x1")](...e)}e=o}t.model[Rx("0x14")]((()=>{for(const t of e)n[Rx("0x0")](t,{commandName:Rx("0x4"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0x2b")][Rx("0x1c")]((t=>{const{data:e}=t;if(e&&"style"===e[Rx("0x1b")])return e[Rx("0x12")][0][Rx("0xd")]?{type:Rx("0xf"),content:Yo(o,Rx("0x1a"),e.commandParams[0][Rx("0xc")][Rx("0x2")]())}:{type:Rx("0xf"),content:Yo(o,"*Remove format:* %0",e[Rx("0x12")][0][Rx("0xc")][Rx("0x2")]())}}))}[Rx("0x2c")](t,e){let n=e.block[Rx("0x22")]((e=>e.name===t));return n||(n=e[Rx("0x21")][Rx("0x22")]((e=>e[Rx("0x28")]===t))),n}[Rx("0x1f")](t,e,n,o){const s=[];for(const r of e[Rx("0x3")]()){const e=r.getAttribute(o);e&&n[Rx("0x15")]((t=>e.classes[Rx("0x18")](t)))&&s[Rx("0x1")](t[Rx("0x16")](r))}return s}}const Ix=["_getCoordsForCells","ELEMENT_TABLE_WITH_TEXT","isInContent","hasAttribute","createTableWalker","options","ELEMENT_TABLE","item","values","ELEMENT_TABLE_ROW_WITH_TEXT","discard","end","_getSuggestionCoords","setSelection","*Insert:* %0","_suggestionFactory","element","_descriptionFactory","map","minRow","root","oldRange","removeClass","createRangeIn","registerElementLabel","MAX_SAFE_INTEGER","ELEMENT_TABLE_ROW","some","afterInit","maxRow","cell","ELEMENT_TABLE_COLUMN","toLowerCase","enqueueChange","_splitMarkerName","markMultiRangeInsertion","isArray","isEqual","selectTableColumn","colspan","getCellLocation","nodeAfter","addRange","subType","MIN_SAFE_INTEGER","left","tablePaste","span","selection","addClass","document","getSuggestion","insertTableColumnLeft","_acceptFormatSuggestionCallbackFactory","getAttribute","$graveyard","removeTableRow","change","push","type","accept","registerPostFixer","getSelectionAffectedTableCells","findAncestor","first","insertion","includes","length","rowspan","last","*Remove:* %0","substr","registerCustomCallback","rootName","join","editor","commands","enableCommand","classes","fromRange","getChildren","above","has","$textProxy","getRowIndexes","createPositionAt","startsWith","get","min","getContainedElement","addMarker:suggestion","every","execute","from","tableCell","_tablePostFixingSubtypes","insertTableRowBelow","table","getItems","tableColumn","refresh","ELEMENT_TABLE_COLUMN_WITH_TEXT","suggestion","removeTableColumn","tableRow","_tableSuggestions","plugins","selectTableRow","insertTableRowAbove","markMultiRangeDeletion","deletion","order","differ","TableUtils","name","isIntersectingWithRange","detach","nodeBefore","model","getRanges","insertTableColumnRight","data","filter","writer","_setupColumnsRowsFixing","isTouching","showSuggestionHighlights","registerDescriptionCallback","getChangedMarkers","getColumnIndexes","createRangeOn","start","max","change:data"];var Lx,Nx;Lx=Ix,Nx=119,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("0x6e")]=[Mx("0x77"),Mx("0x72")],this[Mx("0x78")]=new Set}[Mx("0x2b")](){const t=this[Mx("0x5a")],e=t[Mx("0x85")][Mx("0x41")].selection;if(!t[Mx("0x79")][Mx("0x61")]("TableEditing"))return;const n=t.locale,o=t[Mx("0x79")].get("TrackChangesEditing"),s=t[Mx("0x79")].get(Mx("0x80"));o._descriptionFactory[Mx("0x27")]("table",(t=>Yo(n,Mx("0x15"),t))),this._setupColumnsRowsFixing(),o.enableCommand("insertTable"),o[Mx("0x5c")](Mx("0x7a")),o[Mx("0x5c")](Mx("0x35"));for(const n of[Mx("0x7b"),Mx("0x6f")]){const r=t[Mx("0x5b")].get(n);o[Mx("0x5c")](n,(n=>{t.model.change((t=>{n();const i=Mx("0x60")===r[Mx("0x7e")],x=s[Mx("0x4d")](e),a=s[Mx("0x63")](x),c=i?a[Mx("0x4f")]-1:a.last+1,l=x[0][Mx("0x4e")](Mx("0x70")),u=s[Mx("0x13")](l,{startRow:c,endRow:c}),d=Array[Mx("0x6c")](u)[Mx("0x21")]((e=>t[Mx("0xb")](e[Mx("0x2d")])));o.markMultiRangeInsertion(d,"tableRow")}))}))}for(const n of[Mx("0x43"),Mx("0x1")]){const r=t[Mx("0x5b")][Mx("0x66")](n);o[Mx("0x5c")](n,(n=>{t.model[Mx("0x48")]((t=>{n();const i=Mx("0x3c")===r[Mx("0x7e")],x=s[Mx("0x4d")](e),a=s[Mx("0xa")](x),c=i?a[Mx("0x4f")]-1:a.last+1,l=x[0][Mx("0x4e")](Mx("0x70")),u=s.createTableWalker(l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Mx("0x6c")](u)[Mx("0x21")]((e=>t[Mx("0xb")](e.cell)));o[Mx("0x32")](d,Mx("0x72"))}))}))}for(const n of[Mx("0x47"),"removeTableColumn"]){const r=n.substr(11),i=r[Mx("0x2f")](),x=i[Mx("0x56")](0,3)+Mx("0x3e"),a=Mx("0x70")+r,c="min"+r,l=Mx("0xd")+r;o[Mx("0x5c")](n,(()=>{t.model[Mx("0x48")]((t=>{const r=s[Mx("0x4d")](e),u=r[0][Mx("0x4e")](Mx("0x70"));let d;if("removeTableRow"==n){const t=s[Mx("0x63")](r);d={startRow:t[Mx("0x4f")],endRow:t[Mx("0x54")],includeAllSlots:!0}}else{const t=s[Mx("0xa")](r);d={startColumn:t[Mx("0x4f")],endColumn:t[Mx("0x54")],includeAllSlots:!0}}const g=s.createTableWalker(u,d),m=Array[Mx("0x6c")](g)[Mx("0x21")]((({cell:t})=>t)),f=Ox(m.filter((t=>t.hasAttribute(x)))),h=Ox(m.filter((t=>!t[Mx("0x12")](x))))[Mx("0x21")]((e=>t[Mx("0xb")](e))),b=o[Mx("0x7c")](h,a);if(b&&(Mx("0x77")==b[Mx("0x3a")]||Mx("0x72")==b[Mx("0x3a")])){const e=this[Mx("0x1b")](b);for(const n of f){const o=t[Mx("0xb")](n),r=s[Mx("0x37")](n),a=n[Mx("0x45")](x)-1,u=e[c],d=e[l];u<=r[i]&&r[i]+a<=d&&b[Mx("0x39")](o)}}}))}))}function r(n){const o=Array[Mx("0x6c")](e[Mx("0x0")]()).map((t=>i.LiveRange.fromRange(t)));t[Mx("0x85")].change((e=>{const s=e.batch;n=n[Mx("0x3")]((t=>Mx("0x46")!=t[Mx("0x23")][Mx("0x58")])),e[Mx("0x1c")](n),t[Mx("0x5b")][Mx("0x66")](Mx("0x47"))[Mx("0x73")](),t.execute("removeTableRow",{forceDefaultExecution:!0}),t[Mx("0x85")][Mx("0x30")]((()=>{t.model.enqueueChange(s,(t=>{const e=o.filter((t=>Mx("0x46")!=t[Mx("0x23")][Mx("0x58")]));e.length>0&&t[Mx("0x1c")](e);for(const t of o)t[Mx("0x83")]()}))}))}))}function a(n){t[Mx("0x85")][Mx("0x48")]((o=>{const s=Array[Mx("0x6c")](e[Mx("0x0")]())[Mx("0x21")]((t=>i.LiveRange[Mx("0x5e")](t))),r=[];for(const t of n)for(const e of t.getItems({shallow:!0}))r[Mx("0x49")](e);for(const e of r)Mx("0x46")!=e[Mx("0x23")][Mx("0x58")]&&(o[Mx("0x1c")](o[Mx("0x64")](e,0)),t[Mx("0x5b")].get("removeTableColumn")[Mx("0x73")](),t.execute(Mx("0x76"),{forceDefaultExecution:!0}));const x=s[Mx("0x3")]((t=>"$graveyard"!=t[Mx("0x23")][Mx("0x58")]));x[Mx("0x52")]>0&&o[Mx("0x1c")](x);for(const t of s)t[Mx("0x83")]()}))}function c(t,e){return e[Mx("0x6a")]((e=>t[Mx("0x2a")]((t=>t[Mx("0x1a")][Mx("0x34")](e[Mx("0xc")])||e[Mx("0x1a")][Mx("0x34")](t[Mx("0xc")])))))}function l(t,e){return t.some((t=>e[Mx("0x2a")]((e=>t[Mx("0x1a")][Mx("0x6")](e[Mx("0xc")])))))}t.data.downcastDispatcher.on(Mx("0x69"),((t,e,n)=>{if(!n[Mx("0x14")][Mx("0x7")])return;const o=e[Mx("0x16")];if(!o)return;const s=n.mapper.toViewElement(o);function r(t){return Array[Mx("0x33")](t)?t:[t]}s&&Mx("0x6d")===o.name&&(0,x.setHighlightHandling)(s,n[Mx("0x4")],((t,e,n)=>n[Mx("0x40")](r(e[Mx("0x5d")]),t)),((t,e,n)=>n[Mx("0x25")](r(e[Mx("0x5d")]),t)))}),{priority:"highest"}),o[Mx("0x20")][Mx("0x8")]((t=>{if(Mx("0x50")!=t.type&&"deletion"!=t.type)return;const e=t[Mx("0x68")]();if(null!=e&&e.is(Mx("0x1f"),Mx("0x70"))){if(Mx("0x50")==t[Mx("0x4a")]){const e=t.getItems()[Mx("0x3")]((t=>t.is(Mx("0x62"))))[Mx("0x21")]((t=>t.data));if(e[Mx("0x52")])return{type:"insertion",content:Yo(n,Mx("0x1d"),Yo(n,Mx("0x10"),'"'+e[Mx("0x59")](" ")+'"'))}}if("deletion"==t[Mx("0x4a")]){const e=t[Mx("0x71")]()[Mx("0x3")]((t=>t.is(Mx("0x62"))))[Mx("0x21")]((t=>t[Mx("0x2")]));if(e.length)return{type:"deletion",content:Yo(n,"*Remove:* %0",Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Mx("0x59")](" ")+'"'))}}}})),o[Mx("0x20")][Mx("0x8")]((t=>{if("tableRow"==t.subType){const e=t[Mx("0x71")]()[Mx("0x3")]((t=>t.is(Mx("0x62"))))[Mx("0x21")]((t=>t[Mx("0x2")])),o=this[Mx("0x1b")](t),s=o[Mx("0x2c")]-o[Mx("0x22")]+1;if("insertion"==t[Mx("0x4a")])return e.length?{type:"insertion",content:Yo(n,Mx("0x1d"),Yo(n,Mx("0x18"),[s,'"'+e[Mx("0x59")](" ")+'"']))}:{type:Mx("0x50"),content:Yo(n,Mx("0x1d"),Yo(n,Mx("0x29"),s))};if(Mx("0x7d")==t[Mx("0x4a")])return e[Mx("0x52")]?{type:"deletion",content:Yo(n,Mx("0x55"),Yo(n,Mx("0x18"),[s,'"'+e[Mx("0x59")](" ")+'"']))}:{type:"deletion",content:Yo(n,Mx("0x55"),Yo(n,"ELEMENT_TABLE_ROW",s))}}if(Mx("0x72")==t.subType){const e=t[Mx("0x71")]()[Mx("0x3")]((t=>t.is(Mx("0x62"))))[Mx("0x21")]((t=>t[Mx("0x2")])),o=this[Mx("0x1b")](t),s=o.maxColumn-o.minColumn+1;if(Mx("0x50")==t.type)return e[Mx("0x52")]?{type:Mx("0x50"),content:Yo(n,Mx("0x1d"),Yo(n,Mx("0x74"),[s,'"'+e[Mx("0x59")](" ")+'"']))}:{type:Mx("0x50"),content:Yo(n,Mx("0x1d"),Yo(n,Mx("0x2e"),s))};if(Mx("0x7d")==t.type)return e[Mx("0x52")]?{type:Mx("0x7d"),content:Yo(n,Mx("0x55"),Yo(n,Mx("0x74"),[s,'"'+e[Mx("0x59")](" ")+'"']))}:{type:Mx("0x7d"),content:Yo(n,Mx("0x55"),Yo(n,Mx("0x2e"),s))}}})),o[Mx("0x1e")][Mx("0x57")](Mx("0x50"),Mx("0x77"),Mx("0x19"),r),o[Mx("0x1e")][Mx("0x57")](Mx("0x7d"),Mx("0x77"),Mx("0x4b"),r),o[Mx("0x1e")][Mx("0x57")](Mx("0x50"),Mx("0x72"),Mx("0x19"),a),o[Mx("0x1e")][Mx("0x57")](Mx("0x7d"),Mx("0x72"),Mx("0x4b"),a),o[Mx("0x1e")][Mx("0x57")](Mx("0x50"),Mx("0x72"),Mx("0x59"),c),o[Mx("0x1e")][Mx("0x57")](Mx("0x7d"),"tableColumn","join",c),o[Mx("0x1e")].registerCustomCallback(Mx("0x50"),Mx("0x77"),Mx("0x59"),l),o[Mx("0x1e")][Mx("0x57")](Mx("0x7d"),"tableRow",Mx("0x59"),l)}[Mx("0x44")](){const t=this.editor,e=t[Mx("0x85")][Mx("0x41")][Mx("0x3f")];return(n,o)=>{t.model[Mx("0x48")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][Mx("0x1a")][Mx("0x84")];x&&x[0]&&!1===x[0].forceValue&&(a=n[0].start.nodeAfter);const c=s[Mx("0x26")](a);if(Mx("0x46")==c[Mx("0x23")][Mx("0x58")])return;const l=Array.from(e[Mx("0x0")]())[Mx("0x21")]((t=>i.LiveRange[Mx("0x5e")](t)));s.setSelection(c),t[Mx("0x5b")][Mx("0x66")](r)[Mx("0x73")](),x[Mx("0x49")]({forceDefaultExecution:!0}),t[Mx("0x6b")](r,...x);const u=l[Mx("0x3")]((t=>"$graveyard"!=t[Mx("0x23")][Mx("0x58")]));u[Mx("0x52")]>0&&s.setSelection(u);for(const t of l)t.detach()}))}}[Mx("0xf")](t){const e=this[Mx("0x5a")][Mx("0x79")].get(Mx("0x80"));let n=Number[Mx("0x28")],o=Number[Mx("0x3b")],s=Number[Mx("0x28")],r=Number[Mx("0x3b")];for(const i of t){if(Mx("0x46")==i[Mx("0x23")].rootName)continue;const{row:t,column:x}=e[Mx("0x37")](i),a=i[Mx("0x12")](Mx("0x53"))?i[Mx("0x45")]("rowspan")-1:0,c=i[Mx("0x12")](Mx("0x36"))?i[Mx("0x45")](Mx("0x36"))-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("0x5")](){const t=this[Mx("0x5a")],e=t[Mx("0x79")][Mx("0x66")]("TrackChangesEditing"),n=t[Mx("0x79")][Mx("0x66")]("TableUtils");t.model[Mx("0x41")].on(Mx("0xe"),(()=>{const n=Array.from(t[Mx("0x85")].document[Mx("0x7f")][Mx("0x9")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Mx("0x31")](t);if(Mx("0x75")!=n)continue;if(null!=o[Mx("0x24")])continue;const i=e[Mx("0x42")](s);this[Mx("0x6e")][Mx("0x51")](r)&&this[Mx("0x78")].add(i)}}),{priority:"low"});const o=(t,e)=>{let o=!1;const s=e.createRangeOn(t),r=t[Mx("0x4e")]("table"),i=n[Mx("0x37")](t);for(const e of this[Mx("0x78")]){const n=e[Mx("0x3a")],x=n[Mx("0x65")](Mx("0x3d")),a=n.substr(x?10:5),c=a[Mx("0x2f")](),l=c[Mx("0x56")](0,3)+Mx("0x3e"),u=Mx("0x67")+a,d="max"+a;if(!e[Mx("0x11")])continue;if(r!=e.getFirstRange()[Mx("0xc")][Mx("0x4e")](Mx("0x70")))continue;if(e[Mx("0x82")](s))continue;const g=t[Mx("0x12")](l)?t[Mx("0x45")](l)-1:0,m=this[Mx("0x1b")](e),f=m[u],h=m[d];f<=i[c]&&i[c]+g<=h&&(e[Mx("0x39")](s),o=!0)}return o};t[Mx("0x85")][Mx("0x41")][Mx("0x4c")]((e=>{let n=!1;for(const s of t.model[Mx("0x41")][Mx("0x7f")].getChanges())if("insert"==s[Mx("0x4a")])if(Mx("0x77")==s[Mx("0x81")])for(const t of s.position[Mx("0x38")][Mx("0x5f")]())n=n||o(t,e);else Mx("0x6d")==s[Mx("0x81")]&&(n=n||o(s.position.nodeAfter,e));return n}))}_getSuggestionCoords(t){return this[Mx("0xf")](t[Mx("0x0")]()[Mx("0x21")]((t=>t[Mx("0xc")].nodeAfter)))}}function Ox(t){return Array[Mx("0x6c")](new Set(t)[Mx("0x17")]())}const Fx=["element","createTableWalker","stop","table","$graveyard","format","requires","_descriptionFactory","accept","mergeTableCellUp","selection","mergeTableCellLeft","mergeTableCellRight","get","formatBlock","fromRange","getSelectionAffectedTableCells","execute","return","author","push","commandName","_tablePostFixingSubtypes","*Split cell:* vertically","length","find","set:isEnabled","refresh","containsRange","commands","locale","markBlockFormat","afterInit","has","insertion","from","enableCommand","createRangeOn","change","getCellLocation","_areMergableCells","TableUtils","forceDefaultExecution","tableCell","low","add","direction","_areSelectedCellsMergable","_suggestionFactory","highest","rootName","registerCustomCallback","document","mergeTableCellDown","getAncestors","deletion","model","plugins","*Merge cells*","detach","mergeTableCells","findAncestor","markMultiRangeBlockFormat","isEnabled","editor","splitTableCellVertically","cell","splitTableCellHorizontally","getRanges","TrackChangesEditing","getFirstPosition","map","value","_acceptFormatSuggestionCallbackFactory","setSelection","root","type"];var Dx,Px;Dx=Fx,Px=100,function(t){for(;--t;)Dx.push(Dx.shift())}(++Px);const Bx=function(t,e){return Fx[t-=0]};class jx extends t.Plugin{static get[Bx("0x3c")](){return[wx]}[Bx("0x9")](){const t=this.editor,e=t.model[Bx("0x1d")][Bx("0x40")],n=t[Bx("0x7")];if(!t[Bx("0x22")][Bx("0xa")]("TableEditing"))return;const o=t[Bx("0x22")][Bx("0x43")](Bx("0x2e")),s=t[Bx("0x22")].get(Bx("0x12")),r=t[Bx("0x22")][Bx("0x43")](wx);r[Bx("0x4c")][Bx("0x4a")](Bx("0x25")),o[Bx("0xd")](Bx("0x25"),(()=>{const e=s[Bx("0x46")](t[Bx("0x21")][Bx("0x1d")][Bx("0x40")]);t[Bx("0x21")][Bx("0xf")]((()=>{o[Bx("0x27")](e,{commandName:Bx("0x25"),commandParams:[]},[],Bx("0x25"))}))})),t[Bx("0x6")].get("mergeTableCells").on(Bx("0x47"),((e,n)=>{t[Bx("0x6")][Bx("0x43")]("trackChanges").value&&(n[Bx("0x1")]>0&&n[n[Bx("0x1")]-1]&&n[n[Bx("0x1")]-1][Bx("0x13")]||o._isForcedDefaultExecutionBlock||this[Bx("0x18")]()||e[Bx("0x38")]())}),{priority:Bx("0x1a")});for(const e of[Bx("0x3f"),Bx("0x42"),"mergeTableCellDown",Bx("0x41")]){const n=t[Bx("0x6")].get(e);o.enableCommand(e,(()=>{const e=t.model.document.selection[Bx("0x2f")]().getAncestors()[Bx("0x2")]((t=>t.is("element","tableCell"))),s=n[Bx("0x31")];t[Bx("0x21")][Bx("0xf")]((()=>{o[Bx("0x27")]([e,s],{commandName:Bx("0x25"),commandParams:[]},[],Bx("0x25"))}))}))}for(const e of[Bx("0x2a"),Bx("0x2c")]){const n=t.commands.get(e);o[Bx("0xd")](e,(()=>{const r=s.getSelectionAffectedTableCells(t[Bx("0x21")][Bx("0x1d")].selection)[0],i=r[Bx("0x26")](Bx("0x39")),{column:x,row:a}=s[Bx("0x10")](r);let c=[];if("horizontally"==n[Bx("0x17")]){const t=s[Bx("0x37")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0xc")](t)[Bx("0x30")]((t=>t[Bx("0x2b")]))}else{const t=s.createTableWalker(i,{column:x,includeAllSlots:!0});c=Array[Bx("0xc")](t)[Bx("0x30")]((t=>t[Bx("0x2b")]))}t.model[Bx("0xf")]((t=>{o[Bx("0x8")](t[Bx("0xe")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[Bx("0x3d")].registerDescriptionCallback((t=>{const{data:e}=t;if(e)return Bx("0x25")==e.commandName?{type:Bx("0x3b"),content:Yo(n,Bx("0x23"))}:void 0})),o[Bx("0x3d")].registerDescriptionCallback((t=>{const{data:e}=t;if(e)return Bx("0x2a")==e[Bx("0x4b")]?{type:"format",content:Yo(n,Bx("0x0"))}:Bx("0x2c")==e[Bx("0x4b")]?{type:"format",content:Yo(n,"*Split cell:* horizontally")}:void 0}));const x=r[Bx("0x32")]();for(const t of["mergeTableCellUp","mergeTableCellRight",Bx("0x1e"),"mergeTableCellLeft"])o[Bx("0x19")][Bx("0x1c")](Bx("0x44"),t,Bx("0x3e"),x);for(const t of[Bx("0x2a"),"splitTableCellHorizontally"])o[Bx("0x19")][Bx("0x1c")](Bx("0x44"),t,"accept",x);o[Bx("0x19")][Bx("0x1c")](Bx("0x44"),"mergeTableCells",Bx("0x3e"),(n=>{t.model.change((o=>{const s=Array[Bx("0xc")](e[Bx("0x2d")]()).map((t=>i.LiveRange[Bx("0x45")](t)));o[Bx("0x33")](n),t[Bx("0x6")].get(Bx("0x25"))[Bx("0x4")](),t[Bx("0x47")]("mergeTableCells",{forceDefaultExecution:!0});const r=s.filter((t=>Bx("0x3a")!=t[Bx("0x34")][Bx("0x1b")]));r[Bx("0x1")]>0&&o[Bx("0x33")](r);for(const t of s)t[Bx("0x24")]()}))}));for(const e of[Bx("0x3f"),Bx("0x1e"),Bx("0x41"),"mergeTableCellRight"]){const n=t[Bx("0x6")][Bx("0x43")](e);n.on(Bx("0x3"),((e,o,s)=>{if(s){const o=t[Bx("0x21")].document[Bx("0x40")][Bx("0x2f")]()[Bx("0x1f")]()[Bx("0x2")]((t=>t.is(Bx("0x36"),Bx("0x14"))));this._areMergableCells(n[Bx("0x31")],o)||(e[Bx("0x48")]=!1,e[Bx("0x38")]())}}),{priority:Bx("0x15")})}}_areSelectedCellsMergable(){const t=this[Bx("0x29")][Bx("0x6")].get(Bx("0x25")),e=this.editor[Bx("0x22")][Bx("0x43")](Bx("0x12"));if(!t[Bx("0x28")])return!1;const n=e[Bx("0x46")](this.editor[Bx("0x21")][Bx("0x1d")].selection);for(const t of n)for(const e of n)if(t!=e&&!this[Bx("0x11")](t,e))return!1;return!0}[Bx("0x11")](t,e){const n=this[Bx("0x29")].plugins[Bx("0x43")](Bx("0x2e")),o=this[Bx("0x29")][Bx("0x21")][Bx("0xe")](t),s=this[Bx("0x29")][Bx("0x21")].createRangeOn(e),r=new Set,i=new Set;for(const t of n.getSuggestions())if((Bx("0xb")==t[Bx("0x35")]||Bx("0x20")==t[Bx("0x35")]||Bx("0x25")==t.subType)&&t.isInContent)for(const e of t[Bx("0x2d")]())e[Bx("0x5")](o,!0)&&r[Bx("0x16")](t[Bx("0x35")]+":"+t.author.id),e.containsRange(s,!0)&&i[Bx("0x16")](t[Bx("0x35")]+":"+t[Bx("0x49")].id);if(r.size!=i.size)return!1;for(const t of r)if(!i[Bx("0xa")](t))return!1;return!0}}const Ux=["editing","document","createPositionAfter","_suggestionFactory","FORMAT_HEADER_ROW","from","mapper","getRowIndexes","table","_descriptionFactory","getChild","format","first","formatBlock","index","name","unbindElementFromMarkerName","removeAttribute","parent","*Format:* %0","writer","editor","headingRows","createRange","consumable","forceValue","FORMAT_REGULAR_COLUMN","commands","ck-suggestion-marker-","getSelectionAffectedTableCells","item","ck-suggestion-marker--active","registerCustomCallback","_acceptFormatSuggestionCallbackFactory","findAncestor","removeClass","last","addMarker:suggestion","_splitMarkerName","createPositionBefore","options","start","markerRange","selection","nodeAfter","addClass","change","getAttribute","locale","removeMarker:suggestion","model","headingColumns","childCount","markerName","registerDescriptionCallback","plugins","createTableWalker","setTableRowHeader","commandName","isBefore","includes","enableCommand","get","markBlockFormat","accept","consume","commandParams","showSuggestionHighlights","setTableColumnHeader","data","TableUtils","value","requires","end","cell","downcastDispatcher","FORMAT_HEADER_COLUMN","getColumnIndexes","getCellLocation","highest","toViewElement"];var Gx,Hx;Gx=Ux,Hx=460,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const Wx=function(t,e){return Ux[t-=0]};class zx extends t.Plugin{static get[Wx("0x11")](){return[wx]}afterInit(){const t=this[Wx("0x2f")];if(!t[Wx("0x0")].has("TableEditing"))return;const e=t[Wx("0x4a")],n=t[Wx("0x0")][Wx("0x7")]("TrackChangesEditing"),o=t[Wx("0x0")][Wx("0x7")](Wx("0xf")),s=t.plugins[Wx("0x7")](wx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[Wx("0x40")](r[Wx("0x4f")]),c=n.getSuggestion(a);if(!c[Wx("0xe")]||Wx("0xd")!=c[Wx("0xe")].commandName)return;if(r[Wx("0x38")])return void s.stop();if(!i[Wx("0x32")][Wx("0xa")](r[Wx("0x44")],s[Wx("0x29")]))return;const l=r.markerRange[Wx("0x43")][Wx("0x46")],u=r[Wx("0x44")][Wx("0x12")].nodeBefore,d=l[Wx("0x2c")][Wx("0x2c")],{column:g}=o[Wx("0x17")](l),{column:m}=o.getCellLocation(u);for(let s=g;s<=m;s++){const c=o[Wx("0x1")](d,{column:s,includeAllSlots:!1});for(const o of c){const s=o[Wx("0x13")],c=i[Wx("0x20")][Wx("0x19")](s);i[Wx("0x2e")][Wx("0x47")](Wx("0x36")+x,c),e&&i[Wx("0x2e")].setAttribute("data-suggestion",a,c),i[Wx("0x20")].bindElementToMarker(c,r[Wx("0x4f")]),t&&(n.activeMarkers[Wx("0x5")](r[Wx("0x4f")])?i[Wx("0x2e")][Wx("0x47")](Wx("0x39"),c):i.writer[Wx("0x3d")](Wx("0x39"),c))}}}}n[Wx("0x6")](Wx("0x2"),((e,s)=>{const r=o[Wx("0x37")](t[Wx("0x4c")][Wx("0x1b")][Wx("0x45")]),i=o[Wx("0x21")](r),x=r[0].findAncestor(Wx("0x22")),a=x[Wx("0x49")](Wx("0x30"))||0,c=s&&null!==s[Wx("0x33")]?s[Wx("0x33")]:!t[Wx("0x35")][Wx("0x7")](Wx("0x2"))[Wx("0x10")],l=c?i[Wx("0x3e")]:i[Wx("0x26")],u=x[Wx("0x24")](l);let d;if(c){const e=x.getChild(a);if(u[Wx("0x28")]<e.index)return;d=t[Wx("0x4c")][Wx("0x31")](t.model[Wx("0x41")](e[Wx("0x24")](0)),t[Wx("0x4c")][Wx("0x1c")](u.getChild(u[Wx("0x4e")]-1)))}else{const e=x[Wx("0x24")](a-1);if(!e)return;d=t.model.createRange(t[Wx("0x4c")][Wx("0x41")](u[Wx("0x24")](0)),t[Wx("0x4c")].createPositionAfter(e[Wx("0x24")](e[Wx("0x4e")]-1)))}t[Wx("0x4c")].change((()=>{n[Wx("0x8")](d,{commandName:Wx("0x2"),commandParams:[{forceValue:c}]},[],"setTableRowHeader")}))})),n.enableCommand("setTableColumnHeader",((e,o)=>{const s=t[Wx("0x0")].get(Wx("0xf")),r=s[Wx("0x37")](t[Wx("0x4c")][Wx("0x1b")][Wx("0x45")]),i=s[Wx("0x16")](r),x=r[0][Wx("0x3c")]("table"),a=x[Wx("0x49")](Wx("0x4d"))||0,c=o&&null!==o[Wx("0x33")]?o[Wx("0x33")]:!t[Wx("0x35")].get(Wx("0xd"))[Wx("0x10")];let l;const u=x[Wx("0x24")](0),d=c?i.last:i[Wx("0x26")],g=s[Wx("0x1")](x,{startRow:0,column:d,includeAllSlots:!1}),m=Array[Wx("0x1f")](g)[0][Wx("0x13")];if(c){const e=u[Wx("0x24")](a);if(m[Wx("0x4")](e))return;l=t.model[Wx("0x31")](t.model.createPositionBefore(e),t.model[Wx("0x1c")](m))}else{const e=u[Wx("0x24")](a-1);if(!e)return;l=t[Wx("0x4c")][Wx("0x31")](t[Wx("0x4c")][Wx("0x41")](m),t[Wx("0x4c")].createPositionAfter(e))}t[Wx("0x4c")][Wx("0x48")]((()=>{n[Wx("0x8")](l,{commandName:Wx("0xd"),commandParams:[{forceValue:c}]},[],Wx("0xd"))}))})),t[Wx("0x1a")][Wx("0x14")].on(Wx("0x3f"),r(),{priority:Wx("0x18")}),t[Wx("0xe")][Wx("0x14")].on("addMarker:suggestion",((t,e,n)=>{n[Wx("0x42")][Wx("0xc")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:Wx("0x18")}),t[Wx("0x1a")][Wx("0x14")].on(Wx("0x4b"),((t,e,o)=>{const{type:s,id:r}=n._splitMarkerName(e[Wx("0x4f")]),i=n.getSuggestion(r);if(!i[Wx("0xe")]||Wx("0xd")!=i[Wx("0xe")][Wx("0x3")])return;const x=o[Wx("0x20")].markerNameToElements(e[Wx("0x4f")]);if(x)for(const t of x)o.writer.removeClass(Wx("0x36")+s,t),o[Wx("0x2e")][Wx("0x3d")](Wx("0x39"),t),o.writer[Wx("0x2b")]("data-suggestion",t),o[Wx("0x20")][Wx("0x2a")](t,e[Wx("0x4f")])}),{priority:Wx("0x18")}),n[Wx("0x23")][Wx("0x50")]((t=>{const{data:n}=t;if(n){if(Wx("0x2")==n.commandName){const t=n.commandParams[0][Wx("0x33")];return o(Yo(e,t?Wx("0x1e"):"FORMAT_REGULAR_ROW"))}if(Wx("0xd")==n.commandName){const t=n[Wx("0xb")][0][Wx("0x33")];return o(Yo(e,Wx(t?"0x15":"0x34")))}}function o(t){return{type:Wx("0x25"),content:Yo(e,Wx("0x2d"),t)}}}));const i=s[Wx("0x3b")]();n._suggestionFactory.registerCustomCallback(Wx("0x27"),"setTableRowHeader",Wx("0x9"),i),n[Wx("0x1d")][Wx("0x3a")](Wx("0x27"),Wx("0xd"),Wx("0x9"),i)}}const Vx=["getChanges","markerToHighlight","insert","TableClipboard","updateMarker","newRange","tablePasteRow","view","document","column","move","oldRange","entries","wrap","join","getMarkers","paragraph","includes","tableCellBackgroundColor","unwrap","activeMarkers","stop","$graveyard","name","content","getChild","push","documentSelection","registerDescriptionCallback","removeRows","markMultiRangeBlockFormat","showSuggestionHighlights","position","previousSibling","plugins","containsRange","low","cell","map","endColumn","fill","row","tableCellVerticalAlignment","endRow","discard","_descriptionFactory","table","accept","registerPostFixer","suggestionLoaded","tableCellHorizontalAlignment","editingDowncast","markMultiRangeInsertion","editor","forceDefaultExecution","listenTo","_splitMarkerName","_createdBatches","nextSibling","_getCoordsForCells","reduce","attributes","tablePasteColumn","formatBlock","markerName","tableCell","schema","tablePasteChainId","some","getShiftedBy","isInContent","getSuggestionCallback","ck-suggestion-marker-insertion","last","from","tablePasteCell","removeColumns","has","options","rows","elementToElement","subType","tableCellBorderWidth","change","insertion","createRangeIn","columns","add","startsWith","Users","insertColumns","trackChanges","conversion","createRangeOn","isEmpty","markMultiRangeDeletion","insertionRanges","dataDowncast","high","createElement","nodeAfter","columnInsertionIndexes","find","get","markerAttributes","suggestion:formatBlock:tablePasteCell","getChangedMarkers","deletion","set","filter","findAncestor","batch","getAllAdjacentSuggestions","markers","first","TableUtils","getSuggestion","getRanges","element","tableCellSuggestion","model","createPositionBefore","end","tablePaste","author","setAttributes","_isForcedDefaultExecutionBlock","afterInit","commands","register","getAttributes","value","createTableWalker","type","getColumns","getSuggestions","ck-suggestion-marker--active","registerCustomCallback","suggestionUnloaded","_suggestionFactory","getItems","getRange","hasSuggestion","getContainedElement","suggestion","getChildren","length","rootName","for","fromEntries","remove","requires","removeMarker","cells","insertContent","differ","createRange","redo","suggestion-td","isEqual"];var Kx,qx;Kx=Vx,qx=468,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]},$x=[Xx("0x5e"),"tableCellBorderColor","tableCellBorderStyle",Xx("0x3e"),Xx("0x36"),Xx("0x1e"),"tableCellPadding"],Qx=Object[Xx("0x1")]($x[Xx("0x32")]((t=>[t,null])));class Jx extends t.Plugin{static get[Xx("0x3")](){return[wx]}[Xx("0x8b")](){const t=this[Xx("0x41")];if(!t[Xx("0x2e")][Xx("0x59")]("TableClipboard"))return;const n=t[Xx("0x2e")][Xx("0x73")]("TrackChangesEditing"),o=t.plugins[Xx("0x73")](Xx("0x7f")),s=t.plugins.get(wx),r=t[Xx("0x2e")][Xx("0x73")](Xx("0xf"));s._tablePostFixingSubtypes.push(Xx("0x12"),Xx("0x4a")),t.model[Xx("0x4e")][Xx("0x8d")](Xx("0x83"),{allowIn:Xx("0x4d"),allowContentOf:"tableCell",isLimit:!0}),t[Xx("0x68")][Xx("0x5c")]({model:"tableCellSuggestion",view:Xx("0xa")});let i=null;t[Xx("0x84")].on(Xx("0x6"),((s,x)=>{const[a,c]=x,l=x[x[Xx("0x9e")]-1];l&&l[Xx("0x42")]||n[Xx("0x8a")]||this[Xx("0x41")][Xx("0x8c")][Xx("0x73")](Xx("0x67"))[Xx("0x8f")]&&function(t,e,n,o,s){if(e&&!e.is(Xx("0x27")))return!1;const r=s.getTableIfOnlyTableInContent(t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o.getSelectionAffectedTableCells(n[Xx("0x14")].selection);if(!i[Xx("0x9e")])return!1;const x=i[0][Xx("0x7a")](Xx("0x3a")),a=o.getRowIndexes(i),c=o.getColumnIndexes(i),l={startRow:a.first,endRow:a.last,startColumn:c[Xx("0x7e")],endColumn:c[Xx("0x55")]};return 1==i.length&&(l[Xx("0x37")]+=o.getRows(r)-1,l[Xx("0x33")]+=o[Xx("0x92")](r)-1),Yx(x,l,o)}(a,c,t[Xx("0x84")],o,r)&&(s[Xx("0x21")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t.model.change((()=>{t[Xx("0x84")][Xx("0x6")](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("0x9e")]&&n.markMultiRangeInsertion(s,Xx("0x12"),{tablePasteChainId:o}),r[Xx("0x9e")]&&n[Xx("0x40")](r,Xx("0x4a"),{tablePasteChainId:o}),a[Xx("0x9e")]&&n[Xx("0x40")](a,Xx("0x87"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Xx("0x9e")]&&n[Xx("0x6b")](c,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0});const u=n[Xx("0x2a")](l[Xx("0x32")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Xx("0x57"),{tablePasteChainId:o});if(u){const e=u[Xx("0x1b")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[Xx("0x84")][Xx("0x69")](o),i=e[Xx("0x72")]((t=>t[Xx("0x99")]()[Xx("0xb")](r)));i&&n[Xx("0x26")]([i[Xx("0x23")],s])}n[Xx("0x9e")]&&u.setAttribute(Xx("0x74"),Object[Xx("0x1")](n))}i=null})))}),{priority:e.priorities[Xx("0x6e")]+10}),t[Xx("0x2e")][Xx("0x73")](Xx("0xf")).on("_replaceTableSlotCell",((t,e)=>{const[n,o,,s]=e;if(!i)return;t.stop();const r=n[Xx("0x31")],x=o,a=Zx(r),c=Zx(x);t.return=r;let l=null,u=null;if(c||a)if(a&&!c){s[Xx("0x2")](r[Xx("0x25")](0));for(const t of Array[Xx("0x56")](x.getChildren()))s[Xx("0xe")](t,r,"end");const t=i.rowInsertionIndexes[Xx("0x1d")](n[Xx("0x35")]),e=i[Xx("0x71")][Xx("0x1d")](n[Xx("0x15")]);t||e||(l=s[Xx("0x61")](r))}else c&&!a&&(u=s.createRangeIn(r));else{const t=s[Xx("0x6f")](Xx("0x83")),e=s[Xx("0x6f")]("tableCellSuggestion");s[Xx("0x19")](s[Xx("0x61")](r),e),s.insert(t,r,0);for(const e of Array[Xx("0x56")](x[Xx("0x9d")]()))s[Xx("0xe")](e,t,Xx("0x86"));l=s[Xx("0x69")](t),u=s[Xx("0x69")](e)}const d=Array[Xx("0x56")](x[Xx("0x8e")]()).filter((([t])=>$x.includes(t)));i[Xx("0x5")].push({element:r,attributes:d[Xx("0x9e")]?Object[Xx("0x1")](d):null}),l&&i[Xx("0x6c")].push(l),u&&i.deletionRanges[Xx("0x26")](u)}),{priority:Xx("0x6e")}),o.on(Xx("0x66"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x62")]||1;i[Xx("0x71")]=new Array(a).fill(x)[Xx("0x32")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x90")](s,{startColumn:x,endColumn:x+a-1}))i.columnInsertionRanges.push(t[Xx("0x84")][Xx("0x69")](e))}),{priority:Xx("0x30")}),o.on("insertRows",((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x5b")]||1;i.rowInsertionIndexes=new Array(a)[Xx("0x34")](x)[Xx("0x32")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(s,{startRow:x,endRow:x+a-1}))i.rowInsertionRanges[Xx("0x26")](t[Xx("0x84")][Xx("0x69")](e))}),{priority:"low"}),n[Xx("0x39")][Xx("0x28")]((e=>{if(e[Xx("0x5d")]&&e[Xx("0x5d")][Xx("0x64")](Xx("0x87")))return e.previous?{}:{type:Xx("0x60"),content:Yo(t.locale,"*Replace table cells*")}}));const x=()=>!1;for(const t of[Xx("0x87"),Xx("0x4a"),Xx("0x12"),Xx("0x57")])n[Xx("0x97")][Xx("0x95")](Xx("0x60"),t,Xx("0x1a"),x),n._suggestionFactory.registerCustomCallback(Xx("0x77"),t,Xx("0x1a"),x),n[Xx("0x97")][Xx("0x95")](Xx("0x4b"),t,Xx("0x1a"),x);n[Xx("0x97")][Xx("0x95")]("formatBlock",Xx("0x57"),Xx("0x38"),x),n._suggestionFactory[Xx("0x95")](Xx("0x4b"),"tablePasteCell",Xx("0x3b"),((e,n,o)=>{const s=e.map((t=>t.getContainedElement()))[Xx("0x79")]((t=>t)),r=new Map(s[Xx("0x32")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Xx("0x5")])e&&r.set(t,e);else if(o&&o[Xx("0x74")])for(const[e,n]of Object[Xx("0x18")](o[Xx("0x74")])){const o=t[Xx("0x84")][Xx("0x7d")].get(e),s=o?o[Xx("0x99")]().getContainedElement():null;s&&r[Xx("0x78")](s,n)}t.model[Xx("0x5f")]((t=>{for(const[e,n]of r)t[Xx("0x89")]({...Qx,...n},e)}))}));const a=(e,o)=>{n[Xx("0x97")][Xx("0x95")](e,Xx("0x87"),o,((s,r,i)=>{t.model[Xx("0x5f")]((t=>{const x=[];for(const t of s){const e=t.start[Xx("0x70")];e.is("element",Xx("0x83"))&&x[Xx("0x26")](e)}n[Xx("0x97")][Xx("0x53")](e,null,o)(s,r,i);for(const e of x)Xx("0x22")!=e.root[Xx("0x9f")]&&t[Xx("0x1f")](e)}))}))};a("insertion",Xx("0x3b")),a(Xx("0x60"),Xx("0x38")),a(Xx("0x77"),Xx("0x3b")),a(Xx("0x77"),Xx("0x38")),n[Xx("0x97")].registerCustomCallback(Xx("0x60"),Xx("0x12"),Xx("0x38"),(t=>{const e=t[Xx("0x32")]((t=>t.getContainedElement())),n=e[0][Xx("0x7a")](Xx("0x3a")),{minRow:r,maxRow:i}=s[Xx("0x47")](e);o[Xx("0x29")](n,{at:r,rows:i-r+1})})),n._suggestionFactory[Xx("0x95")](Xx("0x60"),"tablePasteColumn",Xx("0x38"),(t=>{const e=t[Xx("0x32")]((t=>t[Xx("0x9b")]())),n=e[0][Xx("0x7a")](Xx("0x3a")),{minColumn:r,maxColumn:i}=s._getCoordsForCells(e);o[Xx("0x58")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e.subType||!e.subType[Xx("0x64")](Xx("0x87")))return;const o=e[Xx("0x49")][Xx("0x4f")],s=n.getSuggestions()[Xx("0x79")]((t=>t.isInContent&&t[Xx("0x49")]&&t[Xx("0x49")].tablePasteChainId==o));s[Xx("0x9e")]&&e[Xx("0x7c")]()[Xx("0x9e")]!=s.length&&s[Xx("0x48")](((t,e)=>(t.next=e,e.previous=t,e)))};function l(t,e=!0){const{id:o}=n._splitMarkerName(t[Xx("0x4c")]),s=["ck-suggestion-marker",Xx("0x54")],r=n[Xx("0x20")][Xx("0x1d")](t.markerName);return r&&s[Xx("0x26")](Xx("0x94")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Xx("0x3d"),c,{priority:Xx("0x6e")}),n.on(Xx("0x96"),c,{priority:Xx("0x6e")}),t.model.document[Xx("0x3c")]((()=>{let e=!1;const o=Array.from(t[Xx("0x84")][Xx("0x14")].differ[Xx("0x76")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n._splitMarkerName(s);if("suggestion"!=o||Xx("0x77")!=i||r[Xx("0x17")])continue;if(!n[Xx("0x9a")](x))continue;const a=n[Xx("0x80")](x)[Xx("0x81")](),c=t[Xx("0x2e")][Xx("0x73")](Xx("0x65")).me;for(const t of n[Xx("0x93")]())if(t[Xx("0x52")]&&t[Xx("0x88")]==c&&Xx("0x4b")==t.type&&"tablePasteCell"==t.subType&&t[Xx("0x81")]().every((t=>a[Xx("0x50")]((e=>e[Xx("0x2f")](t,!0))))))for(const n of t[Xx("0x7c")]())n[Xx("0x52")]&&(n[Xx("0x38")](),e=!0)}return e})),t[Xx("0x84")][Xx("0x14")][Xx("0x3c")]((e=>{const o=t[Xx("0x8c")][Xx("0x73")](Xx("0x9"));if(!o||!o[Xx("0x45")][Xx("0x59")](e[Xx("0x7b")]))return!1;let s=!1;const r=t[Xx("0x2e")].get("Users").me,i=t[Xx("0x84")].document.differ[Xx("0xc")](),x=Array[Xx("0x56")](t[Xx("0x84")][Xx("0x14")][Xx("0x7")][Xx("0x76")]())[Xx("0x79")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Xx("0x44")](t);return Xx("0x9c")==o&&Xx("0x87")==s&&i==r.id&&!e.oldRange}));for(const t of i){if(Xx("0xe")!=t[Xx("0x91")]||Xx("0x83")!=t[Xx("0x23")]||1!=t[Xx("0x9e")])continue;const n=e[Xx("0x8")](t[Xx("0x2c")],t.position[Xx("0x51")](1));if(!x.find((({data:t})=>t[Xx("0x11")].isEqual(n))))for(const{name:t,data:o}of x)if(n[Xx("0x2f")](o[Xx("0x11")])){e[Xx("0x10")](t,{range:n}),s=!0;break}}return s})),t.model[Xx("0x14")][Xx("0x3c")]((e=>{let o=!1;const s=t[Xx("0x2e")].get(Xx("0x65")).me,r=n.getSuggestions().filter((t=>t[Xx("0x52")]&&t[Xx("0x88")]==s)),i=new Set,x=new Set;for(const t of r)if(Xx("0x87")==t.subType)for(const e of t[Xx("0x1b")]()){const n=e.getRange()[Xx("0x9b")]();if(n)if(n.is("element","tableCellSuggestion")&&Zx(n)){t[Xx("0x4")](e.name),i[Xx("0x63")](n),o=!0;const s=n[Xx("0x46")],r=n[Xx("0x2d")],a=s&&s.is("element",Xx("0x83")),c=r&&r.is(Xx("0x82"),Xx("0x83"));a&&!i[Xx("0x59")](s)&&x[Xx("0x63")](s),c&&!i[Xx("0x59")](r)&&x[Xx("0x63")](r)}else n.is(Xx("0x82"),Xx("0x1c"))&&n[Xx("0x6a")]&&(t[Xx("0x4")](e[Xx("0x23")]),o=!0)}else if(Xx("0x57")==t[Xx("0x5d")]){if(!t.attributes||!t[Xx("0x49")].tablePasteChainId)continue;const e=t[Xx("0x49")][Xx("0x74")];if(e&&Object.keys(e)[Xx("0x9e")])continue;const n=t[Xx("0x49")][Xx("0x4f")];let s=!0,i=!0;for(const e of r)if(e[Xx("0x5d")]&&e[Xx("0x5d")].startsWith("tablePaste")){if(!e.attributes[Xx("0x4f")]){i=!1;break}if(e.id!=t.id&&e[Xx("0x49")][Xx("0x4f")]==n){s=!1;break}}i&&s&&(t.removeMarkers(),o=!0)}for(const t of i)e[Xx("0x2")](t);for(const t of x)e.unwrap(t);return o})),t.conversion.for(Xx("0x3f"))[Xx("0xd")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>l(t),converterPriority:Xx("0x6e")}),t.conversion[Xx("0x0")](Xx("0x6d"))[Xx("0xd")]({model:Xx("0x75"),view:(t,e)=>e[Xx("0x5a")][Xx("0x2b")]?l(t,!1):null,converterPriority:Xx("0x6e")});const u=t.editing[Xx("0x13")];this[Xx("0x43")](u[Xx("0x14")],"clipboardOutput",((t,e)=>{const n=[];for(const t of u[Xx("0x61")](e[Xx("0x24")])[Xx("0x98")]())t.is(Xx("0x82"),Xx("0xa"))&&n[Xx("0x26")](t);u[Xx("0x5f")]((t=>{for(const e of n)t[Xx("0x16")](t[Xx("0x61")](e),t[Xx("0x85")](e)),t[Xx("0x2")](e)}))}))}}function Zx(t){if(t[Xx("0x6a")])return!0;const e=t[Xx("0x25")](0);return e.is(Xx("0x82"),Xx("0x1c"))&&e[Xx("0x6a")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n.createTableWalker(t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["columnWidths","commandParams","model","resizeColumnWidths","registerCustomCallback","*Format:* resize table","_suggestionFactory","get","editor","change","getAttribute","locale","registerDescriptionCallback","TrackChangesEditing","afterInit","formatGroupId","handleSuggestionDescription","formatBlock","Users","data","_descriptionFactory","tableWidth","resizeTable","TableColumnResizeEditing","handleResizeTableWidthCommand","accept","discard","markBlockFormat","bind","getSuggestionCallback","getSelectedElement","enableCommand","document","resizeTableWidth","plugins","selection"];var ea,na;ea=ta,na=289,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{[oa("0xd")](){if(!this[oa("0x7")][oa("0x21")].has(oa("0x16")))return;const t=this[oa("0x7")].plugins.get("TrackChangesEditing");t[oa("0x1e")](oa("0x20"),this[oa("0x17")][oa("0x1b")](this)),t[oa("0x1e")](oa("0x2"),this.handleResizeTableWidthCommand[oa("0x1b")](this)),t[oa("0x5")][oa("0x3")]("formatBlock",oa("0x15"),oa("0x18"),t._suggestionFactory[oa("0x1c")](oa("0x10"),null,"discard")),t[oa("0x5")][oa("0x3")](oa("0x10"),oa("0x15"),oa("0x19"),t[oa("0x5")][oa("0x1c")](oa("0x10"),null,oa("0x18"))),t[oa("0x13")][oa("0xb")](this[oa("0xf")].bind(this))}handleResizeTableWidthCommand(t,e){const n=this[oa("0x7")][oa("0x21")].get(oa("0xc")),o=this.editor[oa("0x21")][oa("0x6")](oa("0x16")),s=e.table||this[oa("0x7")].model[oa("0x1f")][oa("0x22")][oa("0x1d")]();this[oa("0x7")][oa("0x1")][oa("0x8")]((()=>{const r=o.getColumnGroupElement(s);let i=r?o.getTableColumnsWidths(r):null,x=s[oa("0x9")]("tableWidth")||null;const a=e[oa("0x14")]||x,c=e[oa("0x23")]||i,l=this[oa("0x7")].plugins[oa("0x6")](oa("0x11")).me;for(const t of n.getSuggestions()){const e=t.getContainedElement();if(oa("0x15")===t.subType&&e===s){t.author!==l&&t[oa("0x19")]();const e=t[oa("0x12")][oa("0x0")];x=e[0].tableWidth,i=e[0][oa("0x23")];break}}t({table:s,tableWidth:a,columnWidths:c}),n[oa("0x1a")](s,{commandName:oa("0x20"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:"resizeTable"},[],oa("0x15"))}))}handleSuggestionDescription(t){const{data:e}=t;if(e&&"resizeTable"===e[oa("0xe")]){const t=oa("0x4");return{type:"format",content:Yo(this.editor[oa("0xa")],t)}}}}const ra=["Template","afterInit","insertTemplate","plugins","has","editor","enableCommand"];var ia,xa;ia=ra,xa=148,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{[aa("0x0")](){const t=this[aa("0x4")];t.plugins[aa("0x3")](aa("0x6"))&&t[aa("0x2")].get("TrackChangesEditing")[aa("0x5")](aa("0x1"))}}const la=["get","insertTableOfContents","enableCommand","locale","TrackChangesEditing","commands","_descriptionFactory","afterInit","plugins","registerElementLabel","ELEMENT_TABLE_OF_CONTENTS"];var ua,da;ua=la,da=385,function(t){for(;--t;)ua.push(ua.shift())}(++da);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x7")](){const t=this.editor;if(!t[ga("0x5")][ga("0x0")](ga("0x1")))return;t[ga("0x8")][ga("0x0")](ga("0x4"))[ga("0x2")](ga("0x1"));const e=t[ga("0x8")][ga("0x0")]("TrackChangesEditing"),n=t[ga("0x3")];e[ga("0x6")][ga("0x9")]("tableOfContents",(t=>Yo(n,ga("0xa"),t)))}}const fa=["isTouching","has","updateMarker","afterInit","from","forward","document","differ","TrackChangesEditing","isEqual","registerPostFixer","plugins","suggestion","createRange","start","title-content","schema","newRange","model","editor","end","nodeBefore","removeMarker","registerElementLabel","_descriptionFactory","ELEMENT_TITLE","element","get"];var ha,ba;ha=fa,ba=320,function(t){for(;--t;)ha.push(ha.shift())}(++ba);const pa=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[pa("0x13")](){const t=this[pa("0x7")];if(!t[pa("0x1b")][pa("0x11")]("Title"))return;const e=t[pa("0x1b")][pa("0xf")](pa("0x18"));e[pa("0xc")][pa("0xb")](pa("0x3"),(()=>Yo(t.locale,pa("0xd")))),t[pa("0x6")][pa("0x16")][pa("0x1a")]((n=>{let o=!1;const s=Array[pa("0x14")](t[pa("0x6")][pa("0x16")][pa("0x17")].getChangedMarkers());for(const{name:r,data:i}of s){const{group:s}=e._splitMarkerName(r);if(pa("0x0")!==s||!i[pa("0x5")])continue;const x=i[pa("0x5")],a=x[pa("0x8")][pa("0x9")];if(!a||!a.is(pa("0xe"),pa("0x3")))continue;if(!x.start[pa("0x10")](x[pa("0x8")]))continue;const c=t[pa("0x6")][pa("0x4")].getNearestSelectionRange(x[pa("0x8")],pa("0x15"));if(c&&c.isCollapsed){const t=n[pa("0x1")](x.start,c[pa("0x2")]);t[pa("0x19")](x)||(n[pa("0x12")](r,{range:t}),o=!0)}o||(n[pa("0xa")](r),o=!0)}return o}))}}const _a=["editor","enableCommand","afterInit","undo","has","plugins","TrackChangesEditing","UndoEditing"];var Ta,Ca;Ta=_a,Ca=430,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x4")](){const t=this[ya("0x2")],e=t[ya("0x7")].get(ya("0x0"));t[ya("0x7")][ya("0x6")](ya("0x1"))&&(e[ya("0x3")](ya("0x5")),e.enableCommand("redo"))}}const Aa=["TableCaptionEditing","get","requires","plugins","TrackChangesEditing","has","toggleTableCaption","enableCommand","afterInit"];var va,Ra;va=Aa,Ra=405,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("0x8")](){const t=this.editor;t.plugins[Sa("0x5")](Sa("0x0"))&&t[Sa("0x3")][Sa("0x1")](Sa("0x4"))[Sa("0x7")](Sa("0x6"))}}const La=["isFirstBlockOfListItem","_getTranslationKeyForListStyle","*Format:* set order to reversed","listType","TrackChangesEditing","handleListStyleCommand","editor","replace","has","_getSuggestionBlocksForListStyle","plugins","commandName","get","startIndex","getSelectedBlocks","DocumentListPropertiesUtils","listReversed","getAttribute","toUpperCase","_getSuggestionBlocks","afterInit","*Format:* set start index to %0","isListItemBlock","_LIST_","styles","change","document","from","handleDescriptions","bind","type","config","commandParams","listStart","DocumentListPropertiesEditing","markMultiRangeBlockFormat","enableCommand","push","locale","_descriptionFactory","handleListReversedCommand","format","reversed","*Change to:* %0","numbered","length","model","listStyle","list.properties","selection","filter","DocumentListUtils","registerDescriptionCallback","expandListBlocksToCompleteList"];var Na,Ma;Na=La,Ma=206,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{[wa("0x1e")](){if(!this[wa("0x10")][wa("0x14")][wa("0x12")](wa("0x2c")))return;const t=this[wa("0x10")][wa("0x29")][wa("0x16")](wa("0x4")),e=this[wa("0x10")][wa("0x14")][wa("0x16")]("TrackChangesEditing");t[wa("0x22")]&&e[wa("0x2e")](wa("0x3"),this[wa("0xf")][wa("0x27")](this)),t[wa("0x34")]&&e[wa("0x2e")](wa("0x1a"),this[wa("0x32")][wa("0x27")](this)),t.startIndex&&e[wa("0x2e")](wa("0x2b"),this.handleListStartCommand[wa("0x27")](this)),e[wa("0x31")][wa("0x8")](this[wa("0x26")][wa("0x27")](this))}handleListStyleCommand(t,e={}){const n=this[wa("0x10")][wa("0x14")][wa("0x16")](wa("0xe")),o=this[wa("0x13")]();this[wa("0x10")][wa("0x2")].change((()=>{n[wa("0x2d")](o,{commandName:wa("0x3"),commandParams:[{type:e[wa("0x28")]}],formatGroupId:wa("0x3")})}))}handleListReversedCommand(t,e={}){const n=this.editor[wa("0x14")][wa("0x16")](wa("0xe")),o=this[wa("0x10")][wa("0x14")][wa("0x16")]("DocumentListUtils"),s=this[wa("0x1d")]((t=>o[wa("0x20")](t)&&wa("0x0")===t[wa("0x1b")](wa("0xd"))));null!==s&&this[wa("0x10")][wa("0x2")][wa("0x23")]((()=>{n[wa("0x2d")](s,{commandName:wa("0x1a"),commandParams:[{reversed:e[wa("0x34")]}],formatGroupId:"listReversed"})}))}handleListStartCommand(t,e={}){const n=this.editor[wa("0x14")].get(wa("0xe")),o=this[wa("0x10")][wa("0x14")][wa("0x16")](wa("0x7")),s=this[wa("0x1d")]((t=>o[wa("0x20")](t)&&wa("0x0")===t[wa("0x1b")](wa("0xd"))));null!==s&&this[wa("0x10")][wa("0x2")][wa("0x23")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:wa("0x2b"),commandParams:[{startIndex:e[wa("0x17")]}],formatGroupId:"listStart"})}))}[wa("0x26")](t){const e=this[wa("0x10")][wa("0x30")],{data:n}=t;if(!n)return;let o,s;switch(n[wa("0x15")]){case wa("0x3"):o=wa("0x35"),s={type:"format",content:Yo(e,o,Yo(e,this[wa("0xb")](n[wa("0x2a")][0][wa("0x28")])))};break;case wa("0x1a"):o=n[wa("0x2a")][0][wa("0x34")]?wa("0xc"):"*Format:* set order to regular",s={type:"format",content:Yo(e,o)};break;case"listStart":o=wa("0x1f"),s={type:wa("0x33"),content:Yo(e,o,n[wa("0x2a")][0][wa("0x17")])}}return s}[wa("0x13")](){const t=this[wa("0x10")][wa("0x14")][wa("0x16")](wa("0x7"));let e=Array.from(this[wa("0x10")][wa("0x2")][wa("0x24")][wa("0x5")][wa("0x18")]());return e.push(...t.expandListBlocksToCompleteList(e)),e=[...new Set(e)],e}_getSuggestionBlocks(t){const e=this[wa("0x10")][wa("0x14")][wa("0x16")](wa("0x7"));let n=Array[wa("0x25")](this[wa("0x10")].model.document[wa("0x5")].getSelectedBlocks())[wa("0x6")](t);if(!n[wa("0x1")])return null;n=e[wa("0x9")](n);const o=[];for(const t of n)e[wa("0xa")](t)&&o[wa("0x2f")](t);return o}[wa("0xb")](t){return"ELEMENT_"+this[wa("0x10")][wa("0x14")][wa("0x16")](wa("0x19")).getListTypeFromListStyleType(t)[wa("0x1c")]()+wa("0x21")+t[wa("0x1c")]()[wa("0x11")](/-/g,"_")}}const Fa=["_suggestionFactory","getSuggestions","discard","document","data","tableCellWidth","getAttribute","getFirstPosition","selection","tableAlignment","registerCustomCallback","tableCellPadding","tableCellVerticalAlignment","formatBlock","handleSuggestionDescription","join","removeAttribute","tableCellHorizontalAlignment","tableProperties","markBlockFormat","tableCellHeight","model","locale","TableCellPropertiesEditing","*Format:* change table properties","get","tableCellBorderColor","getSuggestionCallback","has","tableBorderStyle","*Format:* change table cell properties","findAncestor","_handlePropertyChange","start","subType","_getSuggestion","tableBorderWidth","TrackChangesEditing","getSelectionAffectedTableCells","enqueueChange","accept","tableCellProperties","plugins","TableUtils","format","TrackChangesTableProperties","editor","enableCommand","registerDescriptionCallback","_descriptionFactory","tableCellBorderWidth","tableCellBorderStyle","handleDiscardAction","tableBackgroundColor"];var Da,Pa;Da=Fa,Pa=376,function(t){for(;--t;)Da.push(Da.shift())}(++Pa);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{constructor(t){super(t),this[Ba("0x14")]=["tableBorderColor",Ba("0x1f"),Ba("0x26"),Ba("0xb"),"tableWidth","tableHeight",Ba("0x1")],this[Ba("0x2b")]=[Ba("0x1c"),Ba("0x35"),Ba("0x34"),Ba("0xd"),Ba("0x7"),Ba("0x16"),"tableCellBackgroundColor",Ba("0x13"),Ba("0xe")]}static get pluginName(){return Ba("0x2f")}afterInit(){const t=this[Ba("0x30")][Ba("0x2c")][Ba("0x1b")]("TrackChangesEditing");if(this[Ba("0x30")][Ba("0x2c")].has("TablePropertiesEditing")){for(const e of this.tableProperties)t.enableCommand(e,((t,n)=>{const o=this[Ba("0x30")][Ba("0x17")][Ba("0x5")].selection[Ba("0x9")]()[Ba("0x21")]("table");this[Ba("0x22")](e,[o],this[Ba("0x14")],Ba("0x14"),t,n)}));t._suggestionFactory[Ba("0xc")](Ba("0xf"),Ba("0x14"),"accept",t[Ba("0x2")][Ba("0x1d")](Ba("0xf"),null,Ba("0x4"))),t[Ba("0x2")][Ba("0xc")](Ba("0xf"),"tableProperties","discard",((t,e)=>this.handleDiscardAction(this[Ba("0x14")],t,e))),t[Ba("0x2")].registerCustomCallback("formatBlock",Ba("0x14"),Ba("0x11"),(()=>!1))}if(this[Ba("0x30")][Ba("0x2c")][Ba("0x1e")](Ba("0x19"))){for(const e of this[Ba("0x2b")])t[Ba("0x31")](e,((t,n)=>{const o=this[Ba("0x30")].plugins.get(Ba("0x2d"))[Ba("0x28")](this[Ba("0x30")][Ba("0x17")][Ba("0x5")][Ba("0xa")]);this[Ba("0x22")](e,o,this[Ba("0x2b")],"tableCellProperties",t,n)}));t[Ba("0x2")].registerCustomCallback("formatBlock",Ba("0x2b"),Ba("0x2a"),t._suggestionFactory.getSuggestionCallback(Ba("0xf"),null,Ba("0x4"))),t._suggestionFactory.registerCustomCallback(Ba("0xf"),Ba("0x2b"),Ba("0x4"),((t,e)=>this[Ba("0x0")](this[Ba("0x2b")],t,e))),t[Ba("0x2")][Ba("0xc")](Ba("0xf"),Ba("0x2b"),"join",(()=>!1))}t[Ba("0x33")][Ba("0x32")]((t=>this[Ba("0x10")](t)))}[Ba("0x22")](t,e,n,o,s,r){const i=this[Ba("0x30")][Ba("0x2c")][Ba("0x1b")](Ba("0x27"));this[Ba("0x30")][Ba("0x17")][Ba("0x29")](r.batch,(()=>{for(const t of e)if(this[Ba("0x25")](t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0x8")](o);void 0!==n&&(e[o]=n)}s(r),i[Ba("0x15")](t,{commandParams:[e]},[],o)}}))}handleDiscardAction(t,e,n){const o=e[0][Ba("0x23")].nodeAfter,s=n.commandParams[0];this[Ba("0x30")][Ba("0x17")].change((e=>{for(const n of t)void 0!==s[n]?e.setAttribute(n,s[n],o):e[Ba("0x12")](n,o)}))}[Ba("0x10")](t){if(t[Ba("0x6")])switch(t[Ba("0x24")]){case Ba("0x14"):return{type:Ba("0x2e"),content:Yo(this[Ba("0x30")][Ba("0x18")],Ba("0x1a"))};case Ba("0x2b"):return{type:Ba("0x2e"),content:Yo(this[Ba("0x30")].locale,Ba("0x20"))}}}[Ba("0x25")](t,e){const n=this[Ba("0x30")][Ba("0x2c")][Ba("0x1b")](Ba("0x27"));for(const o of n[Ba("0x3")]({skipNotAttached:!0})){const n=o.getContainedElement();if(o.subType===e&&n===t)return o}return null}}const Ua=["catch","consumable","conversion","getRanges","_addSuggestionMarker","skipNestingCheck","containsPosition","_descriptionFactory","chain","markers","track-changes-command-not-found","commentThread","_joinSuggestions","isTouching","length","_onDiscard","removeMarker","commandName","change:data","PENDING_ACTION_SUGGESTION","isIntersectingWithRange","ck-suggestion-marker--active","formatBlock","isAtEnd","deletion","getUser","updateMarker","fromRange","registerCustomCallback","before","elementStart","after","split","resolve","getShiftedBy","return","removeAttribute","init","addHighlight","formatBlock:discard","suggestionUnloaded","getIntersection","authorName","some","howMany","_setSuggestionRange","forward","getSuggestions","marker-count","isEqual","model","insertion","containerElement","removeMarkers","end","data","createElement","schema","TrackChangesEditing","rethrowUnexpectedError","containsRange","_trackFormatChanges","_rangeIsInLocalUserInsertion","markerReady","_saved","isInsideObject","enableCommand","createRange","for","oldRange","keys","type","isObject","open","parent","push","getSuggestionCallback","getItems","_refreshSuggestionsChain","_removeSuggestion","addSuggestionData","_handleNewSuggestionMarker","isCollapsed","updateSuggestion","fire","_setSuggestionData","author","targetPosition","requires","attributes","editing","config","low","formatInline:accept","isAfter","removed","getRange","enqueueChange","addComment","size","discardAllSuggestions","dataToMarker","removeMarker:suggestion:formatBlock","getCustomProperty","ready","ck-suggestion-marker-","deletion:","createSelection","createdAt","accepted","formatBlock:chain","addCommentThread","showSuggestionHighlights","set","PendingActions","suggestion-type","from","element","map","acceptSuggestion","addClass","isDocumentOperation","_suggestions","delete","options","deleteContent","$marker","normal","setTo","change","editingDowncast","forceDefaultExecution","data-suggestion","suggestion","markMultiRangeInsertion","getAncestors","tablePasteChainId","@external","then","_getAuthorFromId","newRange","root","track-changes-adapter-already-set","getCommentThread","markDeletion","batch","trackChangesCommand","track-changes-user-not-found","getChangedMarkers","mapper","accept","Users","authoredAt","remove","discardSelectedSuggestions","bindElementToMarker","_commentsRepository","_joinWithAdjacentSuggestions","assign","start","getSuggestion","suggestionLoaded","_splitMarkerName","stopListening","addSuggestion","isRemovable","values","range","acceptSelectedSuggestions","createPositionBefore","addUser","getMultiRangeId","subType","isNextTo","selection","formatBlock:join","addRange","isInContent","getAttribute","createPositionAt","position","toViewElement","markMultiRangeBlockFormat","rejected","isBlock","fromCharCode","trackChanges.mergeNestedSuggestions","sort","markBlockFormat","get","unbindElementFromMarkerName","isUndo","formatBlock:accept","plugins","ck-suggestion-marker","dataReady","reconvertMarker","consume","$graveyard","editor","formatInline","_addThreadToSuggestion","update:suggestion","dataDowncast","pluginName","widget","deletion:accept","_customCallbacks","refresh","insertContent","substr","markerToData","$textProxy","never","_getExternalAuthor","includes","_createSuggestion","clone","backward","_suggestionState","elementEnd","discardSuggestion","collaboration.channelId","formatInline:discard","ck-suggestion-marker-formatBlock","item","high","getDifference","markerName","_isForcedDefaultExecutionBlock","track-changes-adapter-missing-getsuggestion","setSelection","rootName","getNearestSelectionRange","getFirstRange","isLocal","_suggestionFactory","addMarker:suggestion:formatBlock","suggestion:","setAttribute","lowest","_defaultCallbacks","insertion:discard","multipleBlocks","always","markInlineFormat","createRangeIn","move","filter","insertion:","detach","getAllAdjacentSuggestions","unbind","acceptAllSuggestions","markMultiRangeDeletion","addMarkerName","_enabledCommands","getMarkers","activeMarkers","name","default","writer","creator","add","value","discard","isAtStart","getFirstMarker","_mergeNestedSuggestions","trackChanges.trackFormatChanges","next","isMultiRange","adapter","_findSuggestions","originalSuggestionId","nodeAfter","formatBlock:","error-saving-suggestion-data-suggestion-discarded","isOwn","_registerDefaultCallbacks","_updateSuggestionData","_breakSuggestionMarker","addMarker","isLimit","notReady","multi","elementToElement","buildSuggestion","group","hasComments","differ","clear","removeClass","containsRangeInObject","_adapter","formatInline:","formatGroupId","change:_saved","execute","track-changes-suggestion-data-mismatch","deletion:chain","isArray","_checkSuggestionCorrectness","commands","listenTo","_cutOutSuggestionMarker","_model","define","formatInline:join","document","previous","CommentsRepository","nodeBefore","every","external:","getLastMatchingPosition","join","highest","_editor","has","isBefore","stop","_isDataLoaded","head","locale"];var Ga,Ha;Ga=Ua,Ha=332,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const Wa=function(t,e){return Ua[t-=0]};class za extends t.Plugin{static get[Wa("0x51")](){return["CommentsRepository",r.Users,t.PendingActions,cs,Cs,Rs,ws,Bs,zs,Qs,er,Oa,xr,dr,pr,yr,Lr,Dr,Gr,Kr,Jr,ni,xi,di,bi,Ci,Ri,Oi,ji,zi,$i,tx,ix,dx,bx,yx,Sx,wx,jx,zx,Ia,Jx,sa,ma,ja,ca,Ea,ka]}static get[Wa("0xc5")](){return Wa("0x33")}constructor(t){function e(t){return t[Wa("0x6f")]((t=>String[Wa("0xb2")](t))).join("")}super(t),this.set(Wa("0xfb"),[]),this.on("change:activeMarkers",((e,n,o,s)=>{this[Wa("0x12b")][Wa("0x7a")]((()=>{for(const e of[...s,...o])this[Wa("0x12b")][Wa("0x2")][Wa("0x138")](e)&&t[Wa("0x53")][Wa("0xbd")](e)}))})),this[Wa("0x0")]=new ss(this[Wa("0xc0")][Wa("0x2b")][Wa("0x32")],this[Wa("0xc0")][Wa("0x13d")]),this._adapter=null,this._suggestionFactory=new Va(this[Wa("0xc0")]),this[Wa("0x73")]=new Map,this[Wa("0x95")]=t[Wa("0xba")][Wa("0xb6")]("CommentsRepository"),this._enabledCommands=new Set,this[Wa("0x12b")]=this.editor[Wa("0x2b")],this[Wa("0xd4")]=new WeakMap,this[Wa("0xde")]=!1,t[Wa("0x54")][Wa("0x12c")](Wa("0x106"),Wa("0xfd")),this[Wa("0x36")]=t[Wa("0x54")][Wa("0xb6")](Wa("0x106")),t[Wa("0x54")].define(Wa("0xb3"),!0),this[Wa("0x105")]=t[Wa("0x54")][Wa("0xb6")](Wa("0xb3")),this[Wa("0x8b")]=new d(t,this[Wa("0xf9")]),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,49,56,48,54])}[Wa("0x1e")](){const t=this[Wa("0xc0")];t.conversion.for(Wa("0x7b")).markerToHighlight({model:Wa("0x7e"),view:t=>{const{id:e,type:n}=this._splitMarkerName(t.markerName),o=["ck-suggestion-marker",Wa("0x62")+n];let s=3e3;return this[Wa("0xfb")][Wa("0xd0")](t[Wa("0xdd")])&&(o[Wa("0x44")](Wa("0xe")),s=3010),Wa("0x11")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[Wa("0x140")][Wa("0x3d")](Wa("0xc4"))[Wa("0x100")]((e=>{e.on("addMarker:suggestion",((e,n,o)=>{if(!o.options[Wa("0x69")])return;const s=n[Wa("0xda")];if(!s)return;const r=o[Wa("0x8e")][Wa("0xae")](s);t[Wa("0x2b")][Wa("0x32")].isObject(s)&&r&&!r[Wa("0x60")](Wa("0xc6"))&&r.is(Wa("0x2d"))&&(0,x.toWidget)(r,o.writer)}),{priority:Wa("0xdb")})})),t.conversion.for("dataDowncast").markerToHighlight({model:Wa("0x7e"),view:(t,e)=>{if(!e[Wa("0x75")][Wa("0x69")])return null;const{type:n}=this[Wa("0x9b")](t[Wa("0xdd")]);return{classes:[Wa("0xbb"),Wa("0x62")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[Wa("0xda")])return;if(o[Wa("0xda")].is(Wa("0xa7")))return void s[Wa("0x13f")][Wa("0xbe")](o[Wa("0xda")],n[Wa("0xfc")]);const r=s.mapper.toViewElement(o[Wa("0xda")]);if(!o[Wa("0xda")].is("element")||!t[Wa("0x2b")][Wa("0x32")][Wa("0xb1")](o[Wa("0xda")])||r.getCustomProperty(Wa("0x1f")))return;const{id:i}=this[Wa("0x9b")](o[Wa("0xdd")]);s[Wa("0xfe")][Wa("0x71")]([Wa("0xbb"),Wa("0xd9")],r),s[Wa("0xfe")][Wa("0xe8")](Wa("0x7d"),i,r),s[Wa("0x8e")][Wa("0x94")](r,o.markerName),e&&(this[Wa("0xfb")][Wa("0xd0")](o.markerName)?s[Wa("0xfe")][Wa("0x71")]("ck-suggestion-marker--active",r):s[Wa("0xfe")][Wa("0x11d")]("ck-suggestion-marker--active",r));for(const e of t[Wa("0x2b")][Wa("0xef")](o[Wa("0xda")])[Wa("0x46")]())s[Wa("0x13f")][Wa("0xbe")](e,n.name);s[Wa("0x13f")][Wa("0xbe")](o[Wa("0xda")],n[Wa("0xfc")])};t[Wa("0x140")][Wa("0x3d")](Wa("0xc4"))[Wa("0x100")]((t=>{t.on(Wa("0xe6"),((t,e,o)=>{o[Wa("0x75")][Wa("0x69")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:Wa("0x136")})})),t[Wa("0x140")][Wa("0x3d")](Wa("0xc4"))[Wa("0xcc")]({model:Wa("0x7e"),view:(t,e)=>e[Wa("0x75")].showSuggestionHighlights?null:{group:Wa("0x7e"),name:t[Wa("0xcb")](11)}}),t.conversion.for("upcast")[Wa("0x117")]({view:{name:Wa("0x7e"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=Wa("0xe7")+t.getAttribute(Wa("0x6c"))+":"+t.getAttribute("id");return t[Wa("0xab")](Wa("0x29"))&&(n+=":"+t.getAttribute(Wa("0x29"))),e[Wa("0x31")](Wa("0x77"),{"data-name":n})}}),t[Wa("0x140")][Wa("0x3d")]("upcast")[Wa("0x5e")]({view:"suggestion"}),t[Wa("0x140")].for(Wa("0x7b"))[Wa("0x100")]((t=>{t.on(Wa("0xe6"),n(),{priority:Wa("0xdb")})})),t[Wa("0x140")][Wa("0x3d")](Wa("0x7b"))[Wa("0x100")]((t=>{t.on(Wa("0x5f"),((t,e,n)=>{const o=n[Wa("0x8e")].markerNameToElements(e[Wa("0xdd")]);if(o)for(const t of o)t.getCustomProperty(Wa("0x1f"))||(n.writer[Wa("0x11d")]([Wa("0xbb"),Wa("0xd9"),Wa("0xe")],t),n[Wa("0xfe")][Wa("0x1d")]("data-suggestion",t),n[Wa("0x8e")][Wa("0xb7")](t,e[Wa("0xdd")]))}),{priority:Wa("0xdb")})})),t[Wa("0x2b")][Wa("0x12e")].registerPostFixer((e=>{let n=!1;const o=Array[Wa("0x6d")](t[Wa("0x2b")][Wa("0x12e")][Wa("0x11b")][Wa("0x8d")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[Wa("0x9b")](x);if(Wa("0x7e")!==o)continue;const u=this[Wa("0x73")].get(l);if(null!=a[Wa("0x85")])if(Wa("0xc1")==c&&(n=n||Xa(a[Wa("0x85")],x,e,t[Wa("0x2b")][Wa("0x32")])),a.newRange[Wa("0x4b")]||Wa("0xbf")==a[Wa("0x85")][Wa("0x86")][Wa("0xe1")]||Wa("0xf")==c&&!Qa(a[Wa("0x85")])||Wa("0x11")==c&&(qa(i=a.newRange)||(r=i)[Wa("0x98")][Wa("0x43")]==r[Wa("0x2f")][Wa("0x131")]&&r[Wa("0x98")].isAtEnd))e[Wa("0x9")](x),n=!0;else{if(!u||!u[Wa("0xaa")])continue;s.add(u)}}var r,i;return s[Wa("0x5c")]>0&&(n=!!this[Wa("0x96")](s)||n),n})),t[Wa("0x2b")].document.registerPostFixer((e=>{let n=!1;for(const o of t[Wa("0x2b")][Wa("0x12e")][Wa("0x11b")].getChanges()){if("insert"!=o[Wa("0x40")])continue;const s=o[Wa("0xad")][Wa("0x1b")](o.length);if(s[Wa("0x10")])for(const r of this[Wa("0x73")].values()){if(r.isMultiRange||!r.isInContent)continue;if(Wa("0xf")!=r[Wa("0x40")])continue;const i=r[Wa("0xe3")]();if(i.start[Wa("0x43")]!=i[Wa("0x2f")][Wa("0x43")]&&i[Wa("0x2f")].isEqual(o.position)){const o=t[Wa("0x2b")][Wa("0x3c")](i.start,s);e[Wa("0x13")](r[Wa("0x104")](),{range:o}),n=!0}}}return n})),t.model[Wa("0x2")].on(Wa("0xc3"),((t,e,n)=>{if(null==n){const{id:t}=this[Wa("0x9b")](e[Wa("0xfc")]),n=this[Wa("0x73")].get(t);n&&n[Wa("0xf8")](e.name)}})),t.model[Wa("0x12e")].on(Wa("0xb"),(()=>{const e=Array[Wa("0x6d")](t[Wa("0x2b")].document[Wa("0x11b")][Wa("0x8d")]())[Wa("0xf1")]((t=>Wa("0x7e")===this._splitMarkerName(t[Wa("0xfc")])[Wa("0x119")]));if(0===e[Wa("0x7")])return;e[Wa("0xb4")](((t,e)=>{const n=t[Wa("0x30")].oldRange,o=e[Wa("0x30")][Wa("0x3e")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n.start[Wa("0x139")](o[Wa("0x98")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[Wa("0x9b")](t);if(null===s[Wa("0x3e")]){const e=this[Wa("0x4a")](t);o[Wa("0x100")](e)}else{const t=this[Wa("0x73")][Wa("0xb6")](e);null!==s[Wa("0x85")]||t.isInContent?(n.add(t[Wa("0x13c")]),o[Wa("0x100")](t)):this._removeSuggestion(t)}}o[Wa("0x5c")]>0&&this[Wa("0x47")](o);for(const t of n)this[Wa("0x4d")]("suggestionChanged",t)})),t.model.on("applyOperation",((e,n)=>{const o=n[0];if(!this[Wa("0x73")].size)return;if(!o[Wa("0x72")])return;if(o[Wa("0x8a")][Wa("0xb8")]||!o[Wa("0x8a")][Wa("0xe4")])return;let s,r;switch(o.type){case"insert":s=t[Wa("0x2b")][Wa("0xac")](o[Wa("0xad")]),r=s.getShiftedBy(o[Wa("0x25")]);break;case Wa("0x19"):s=t[Wa("0x2b")][Wa("0xac")](o.splitPosition),r=t[Wa("0x2b")][Wa("0xac")](o.moveTargetPosition);break;case Wa("0xf0"):s=t[Wa("0x2b")][Wa("0xac")](o[Wa("0x50")]),r=s[Wa("0x1b")](o.howMany);break;default:return}const i=t[Wa("0x2b")][Wa("0x3c")](s,r);t[Wa("0x2b")][Wa("0x7a")]((()=>{for(const{suggestion:t,meta:e}of this[Wa("0x10a")](i)){if(t[Wa("0x108")])continue;if(Wa("0xc1")==t[Wa("0x40")])continue;const n=t[Wa("0x30")]&&t[Wa("0x30")].multipleBlocks;("formatBlock"!=t.type||Wa("0x19")==o[Wa("0x40")]&&!n)&&(e.containsRangeInObject||Wa("0x2c")==t[Wa("0x40")]&&e[Wa("0x10f")]||t[Wa("0xe3")]()[Wa("0x35")](i)&&this[Wa("0x112")](t,s,r))}}))}),{priority:Wa("0xe9")}),t[Wa("0x2b")].on("deleteContent",((e,n)=>{const o=n[0],s=n[1];if(s&&s[Wa("0x7c")])return;if(this._isForcedDefaultExecutionBlock)return;if(!this[Wa("0x8b")][Wa("0x101")])return;if(o[Wa("0x4b")])return;const r=t.model.schema,{start:i,end:x}=o[Wa("0xe3")](),a=i[Wa("0x10c")]&&r[Wa("0x114")](i[Wa("0x10c")])?null:r.getNearestSelectionRange(i,Wa("0x27")),c=x[Wa("0x131")]&&r.isLimit(x.nodeBefore)?null:r[Wa("0xe2")](x,Wa("0xd3")),l=t[Wa("0x2b")][Wa("0x3c")](a?a[Wa("0x98")]:i,c?c[Wa("0x2f")]:x);t[Wa("0x2b")][Wa("0x7a")]((e=>{this.markDeletion(l);const n=t[Wa("0x2b")][Wa("0x32")].getNearestSelectionRange(l[Wa("0x98")]);o.is("documentSelection")?e[Wa("0xe0")](n):o[Wa("0x79")](n)})),e[Wa("0x13a")]()}),{priority:e.priorities[Wa("0x78")]+10}),t[Wa("0x2b")].on("insertContent",((e,n)=>{const o=n[n[Wa("0x7")]-1];o&&o.forceDefaultExecution||this[Wa("0xde")]||this[Wa("0x8b")][Wa("0x101")]&&(t[Wa("0x2b")][Wa("0x7a")]((()=>{let o=t[Wa("0x2b")][Wa("0xca")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[Wa("0x1c")]=o[Wa("0xd2")]();const s=o.end.nodeBefore,r=t.model[Wa("0x32")];s&&r[Wa("0xb1")](s)&&!r.isObject(s)&&(o=t[Wa("0x2b")][Wa("0x3c")](o[Wa("0x98")],t[Wa("0x2b")].createPositionAt(s,Wa("0x2f")))),this.markInsertion(o)})),e[Wa("0x13a")]())}),{priority:Wa("0xdb")}),this.editor[Wa("0x128")].add("trackChanges",this.trackChangesCommand),this.enableCommand("trackChanges");const o=new b(t,this._suggestions);t.commands[Wa("0x100")]("acceptSuggestion",o),this[Wa("0x3b")](Wa("0x70"));const s=new C(t,this._suggestions);t[Wa("0x128")][Wa("0x100")](Wa("0xd6"),s),this.enableCommand(Wa("0xd6")),t[Wa("0x128")][Wa("0x100")](Wa("0xf6"),new F(t,o,this[Wa("0x73")])),this[Wa("0x3b")](Wa("0xf6")),t[Wa("0x128")][Wa("0x100")](Wa("0x5d"),new F(t,s,this[Wa("0x73")])),this[Wa("0x3b")](Wa("0x5d")),t[Wa("0x128")][Wa("0x100")](Wa("0xa1"),new U(t,o,this[Wa("0x73")])),this[Wa("0x3b")](Wa("0xa1")),t.commands.add(Wa("0x93"),new U(t,s,this[Wa("0x73")])),this[Wa("0x3b")](Wa("0x93"));const r=t.plugins[Wa("0xb6")](Wa("0x130"));this[Wa("0x129")](r,Wa("0x5b"),((t,{threadId:e})=>{const n=this[Wa("0x73")][Wa("0xb6")](e);n&&n[Wa("0x4")]&&1===n.commentThread[Wa("0x7")]&&this[Wa("0x111")](e,{hasComments:!0})}),{priority:Wa("0x55")}),this[Wa("0x129")](r,"removeComment",((t,{threadId:e})=>{const n=this[Wa("0x73")][Wa("0xb6")](e);n&&n.commentThread&&!n[Wa("0x4")][Wa("0x7")]&&this._updateSuggestionData(e,{hasComments:!1})}),{priority:"low"})}set[Wa("0x109")](t){if(this._adapter)throw new e.CKEditorError(Wa("0x87"),this);this[Wa("0x11f")]=t}get[Wa("0x109")](){return this[Wa("0x11f")]}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions[Wa("0x9f")]())t&&!e[Wa("0xaa")]||n[Wa("0x44")](e);return e?n[Wa("0x6f")]((t=>t.toJSON())):n}[Wa("0x99")](t){const n=this[Wa("0x73")].get(t);if(!n)throw new e.CKEditorError("track-changes-suggestion-not-found",this);return n}hasSuggestion(t){return this._suggestions[Wa("0x138")](t)}addSuggestionData(t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[Wa("0x40")][Wa("0x19")](":"),i=this[Wa("0x73")][Wa("0xb6")](n)||this[Wa("0xd1")](s,r,n,e,o);if(this[Wa("0xc2")](i),this[Wa("0x127")](i,s,r||null,e),i[Wa("0x65")]=t[Wa("0x65")],i._isDataLoaded=!0,o&&o[Wa("0x82")]){const t=o[Wa("0x82")],e=this[Wa("0xcf")](t[Wa("0x23")]);i[Wa("0x91")]=t[Wa("0x65")],i[Wa("0x4f")]=e,i.isExternal=!0}else i[Wa("0x91")]=t[Wa("0x65")];switch(t[Wa("0x30")]&&(i.data=t[Wa("0x30")]),t[Wa("0x52")]&&(i[Wa("0x52")]=t[Wa("0x52")]),this[Wa("0x11f")]&&this[Wa("0x11f")][Wa("0x9d")]||(i._saved=!0),this[Wa("0xd4")].get(i)){case"notReady":this._suggestionState[Wa("0x6a")](i,Wa("0xbc"));break;case Wa("0x38"):i[Wa("0xaa")]?(this[Wa("0x47")](new Set([i])),this._joinWithAdjacentSuggestions(new Set([i])),this[Wa("0xd4")][Wa("0x6a")](i,Wa("0x61")),this[Wa("0x4d")](Wa("0x9a"),i)):this._suggestionState[Wa("0x6a")](i,Wa("0x58"))}return i}acceptSuggestion(t){this.forceDefaultExecution((()=>{this.editor[Wa("0x2b")][Wa("0x7a")]((()=>{for(const e of t[Wa("0xf4")]())e[Wa("0x8f")]()}))}))}[Wa("0xd6")](t){this[Wa("0x7c")]((()=>{this[Wa("0xc0")][Wa("0x2b")].change((()=>{for(const e of t[Wa("0xf4")]())e[Wa("0x102")]()}))}))}[Wa("0x3b")](t,n){const o=this.editor.commands[Wa("0xb6")](t);if(!o)throw new e.CKEditorError(Wa("0x3"),this,{commandName:t});this._enabledCommands[Wa("0x100")](o),n&&o.on(Wa("0x123"),((t,e)=>{this[Wa("0x8b")][Wa("0x101")]&&(this[Wa("0xde")]||e.length>0&&e[e[Wa("0x7")]-1]&&e[e[Wa("0x7")]-1][Wa("0x7c")]||(n(((...t)=>o[Wa("0x123")](...t,{forceDefaultExecution:!0})),...e),t[Wa("0x13a")]()))}),{priority:Wa("0xdb")})}forceDefaultExecution(t){let n,o;const s=this[Wa("0xde")];this[Wa("0xde")]=!0;try{n=t()}catch(t){o=t}return s||(this._isForcedDefaultExecutionBlock=!1),o&&e.CKEditorError[Wa("0x34")](o,this),n}markInsertion(t,n=null,o={}){if(t[Wa("0x4b")])return null;const s=this.editor[Wa("0xba")][Wa("0xb6")](Wa("0x90")).me;for(const{suggestion:e,meta:s}of this._findSuggestions(t,"insertion"))if(s[Wa("0x10f")]){if(!s[Wa("0xa6")]){if(s[Wa("0x11e")]){if(!this[Wa("0x105")]||!tc(e,o))continue;return e}if(tc(e,o))return e;this[Wa("0x112")](e,t[Wa("0x98")],t.end);break}if(n==e.subType&&tc(e,o)){const n=e[Wa("0xe3")]();return n.start[Wa("0x2a")](t.end)?this[Wa("0x26")](e,this[Wa("0x12b")].createRange(t.start,n[Wa("0x2f")])):this[Wa("0x26")](e,this[Wa("0x12b")].createRange(n[Wa("0x98")],t[Wa("0x2f")])),e}}const r=(0,e.uid)(),i=s.id,x=n?Wa("0xf2")+n:Wa("0x2c"),a=this[Wa("0x4e")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this._addSuggestionMarker(x,r,i,t),a}[Wa("0x7f")](t,n=Wa("0x116"),o={}){const s=this.editor[Wa("0xba")].get(Wa("0x90")).me,r=this[Wa("0xe5")][Wa("0x45")](Wa("0x2c"),n,Wa("0x135"));for(const e of this[Wa("0x28")]())if(e[Wa("0x4f")].id==s.id&&Wa("0x2c")==e[Wa("0x40")]&&e[Wa("0xa5")]==n&&tc(e,o)&&(r(e[Wa("0x141")](),t)||r(t,e[Wa("0x141")]()))){for(const n of t)e[Wa("0xa9")](n);return e}for(const{suggestion:e,meta:n}of this[Wa("0x10a")](t,"insertion")){if(!n[Wa("0x10f")])continue;if(!this[Wa("0x105")]&&n[Wa("0x11e")])continue;if(!tc(e,o))continue;let s=!0;for(const n of e[Wa("0x141")]())for(const e of t)if(!n[Wa("0x35")](e)){s=!1;break}if(s)return e}const i=(0,e.uid)(),x=s.id,a=Wa("0xf2")+n,c=this._setSuggestionData({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[Wa("0x142")](a,i,x,e,Zo.getMultiRangeId());return c}[Wa("0xee")](t,n,o=null,s={}){if(o=o||$a(n),t[Wa("0x4b")])return null;if(Wa("0xce")===this[Wa("0x36")]){const e=this[Wa("0xe5")][Wa("0x45")](Wa("0xc1"),o,Wa("0x8f"));return this[Wa("0x7c")]((()=>e([t],n,s))),null}const r=this[Wa("0xc0")].plugins.get("Users").me,i=[];if(Wa("0xed")!==this[Wa("0x36")])for(const{suggestion:e,meta:n}of this[Wa("0x10a")](t,Wa("0x2c")))n[Wa("0x10f")]&&!n[Wa("0x3a")]&&i[Wa("0x44")](...e.getRanges());const x=function(t,e){const n=[];for(const o of e){const e=t[Wa("0x22")](o);e&&n.push(e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[Wa("0x7")];){const o=n[e].getDifference(t);n.splice(e,1,...o),e+=o[Wa("0x7")]}}return n}(t,i);x[Wa("0x7")]&&this[Wa("0x12b")][Wa("0x7a")]((()=>{for(const t of x){const e=this._suggestionFactory.getSuggestionCallback(Wa("0xc1"),o,Wa("0x8f"));this[Wa("0x7c")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[Wa("0x98")],a=t[Wa("0x2f")];for(const{suggestion:e,meta:n}of this[Wa("0x10a")](t,Wa("0xc1"))){if(!n[Wa("0x10f")])continue;if(e[Wa("0xa5")]!=o)continue;if(!tc(e,s))continue;const r=e[Wa("0xe3")]();if(r.containsRange(t,!0))return null;x=x[Wa("0x139")](r[Wa("0x98")])?x:r[Wa("0x98")],a=a[Wa("0x57")](r.end)?a:r[Wa("0x2f")],i?r[Wa("0x98")].isBefore(i[Wa("0xe3")]().start)?(i[Wa("0x2e")](),i=e):e[Wa("0x2e")]():i=e}const c=this[Wa("0x12b")][Wa("0x3c")](x,a);if(i)this[Wa("0x26")](i,c);else{const t=(0,e.uid)(),i=r.id;this[Wa("0x4e")]({id:t,type:Wa("0x120")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this._addSuggestionMarker(Wa("0x120")+o,t,i,c)}}return null}[Wa("0xb5")](t,n,o=[],s=null,r={}){n.formatGroupId||(n.formatGroupId=n[Wa("0xa")]),n[Wa("0xec")]=t.is(Wa("0xa0")),s=s||$a(n);const i=o[Wa("0x6f")]((t=>Ja(t,this[Wa("0x12b")]))),x=t.is(Wa("0xa0"))?t:Ja(t,this._model);if(Wa("0xce")===this[Wa("0x36")]){const t=this[Wa("0xe5")][Wa("0x45")](Wa("0xf"),s,Wa("0x8f"));return this[Wa("0x7c")]((()=>t([x],n,r))),null}i[Wa("0x44")](x);let a=!0;for(const t of i)if(!this[Wa("0x37")](t)){a=!1;break}if(a&&Wa("0xed")!==this[Wa("0x36")]){const t=this._suggestionFactory[Wa("0x45")](Wa("0xf"),s,"accept");return this[Wa("0x7c")]((()=>t([x],n,r))),null}let c=null,l=x[Wa("0x98")],u=x[Wa("0x2f")];for(const{suggestion:t,meta:e}of this[Wa("0x10a")](x,Wa("0xf"))){if(!e[Wa("0x10f")])continue;if(e.isNextTo||e[Wa("0x11e")]||e.isInsideObject)continue;if(t[Wa("0x30")][Wa("0x121")]!=n[Wa("0x121")])continue;if(!tc(t,r))continue;const o=t[Wa("0xe3")]();if(t[Wa("0xa5")]==s){if(o[Wa("0x35")](x,!0))return null;l=l[Wa("0x139")](o.start)?l:o[Wa("0x98")],u=u[Wa("0x57")](o.end)?u:o.end,c?o.start[Wa("0x139")](c[Wa("0xe3")]()[Wa("0x98")])?(c[Wa("0x2e")](),c=t):t[Wa("0x2e")]():c=t}else{const e=x[Wa("0x22")](o);this._cutOutSuggestionMarker(t,e)}}const d=this[Wa("0xc0")][Wa("0xba")].get(Wa("0x90")).me,g=(0,e.uid)(),m=d.id;if(c)return this[Wa("0x26")](c,this[Wa("0x12b")][Wa("0x3c")](l,u)),c;{const t=this[Wa("0x4e")]({id:g,type:Wa("0x10d")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[Wa("0x142")](Wa("0x10d")+s,g,m,this[Wa("0x12b")][Wa("0x3c")](l,u)),t}}[Wa("0xaf")](t,n,o=[],s=null,r={}){n[Wa("0x121")]||(n[Wa("0x121")]=n[Wa("0xa")]);const i=t[0];n[Wa("0xec")]=i.is(Wa("0xa0")),s=s||$a(n);const x=o.map((t=>Ja(t,this[Wa("0x12b")]))),a=i.is("range")?t:t.map((t=>Ja(t,this[Wa("0x12b")])));if(Wa("0xce")===this[Wa("0x36")]){const t=this[Wa("0xe5")][Wa("0x45")]("formatBlock",s,Wa("0x8f"));return this[Wa("0x7c")]((()=>t(a,n,r))),null}x.push(...a);let c=!0;for(const t of x)if(!this[Wa("0x37")](t)){c=!1;break}if(c&&Wa("0xed")!==this[Wa("0x36")]){const t=this[Wa("0xe5")].getSuggestionCallback(Wa("0xf"),s,Wa("0x8f"));return this[Wa("0x7c")]((()=>t(a,n,r))),null}const l=this[Wa("0xc0")][Wa("0xba")][Wa("0xb6")](Wa("0x90")).me;for(const t of this[Wa("0x28")]()){if(t[Wa("0x4f")].id!=l.id)continue;if(Wa("0xf")!=t[Wa("0x40")]||t[Wa("0x30")][Wa("0x121")]!=n[Wa("0x121")])continue;if(!tc(t,r))continue;const e=t[Wa("0xa5")]==s;for(let n=0;n<a[Wa("0x7")];n++){const o=a[n];for(const s of t[Wa("0xfa")]()){const r=s[Wa("0x59")]();if(o[Wa("0x2a")](r)){e?(a.splice(n,1),n--):t[Wa("0x9")](s[Wa("0xfc")]);break}}}}if(0==a[Wa("0x7")])return null;const u=this[Wa("0xe5")][Wa("0x45")](Wa("0xf"),s,"join");for(const t of this[Wa("0x28")]())if(t[Wa("0x4f")].id==l.id&&Wa("0xf")==t[Wa("0x40")]&&t[Wa("0x30")].formatGroupId==n[Wa("0x121")]&&t[Wa("0xa5")]==s&&tc(t,r)&&(u(t[Wa("0x141")](),a)||u(a,t[Wa("0x141")]()))){for(const e of a)t.addRange(e);return t}const d=(0,e.uid)(),g=l.id,m=Wa("0x10d")+s,f=this[Wa("0x4e")]({id:d,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[Wa("0x142")](m,d,g,t,Zo.getMultiRangeId());return f}[Wa("0x89")](t,n=null,o={}){if(t[Wa("0x4b")])return null;const s=this.editor.plugins[Wa("0xb6")](Wa("0x90")).me,r=new i.LiveRange(t[Wa("0x98")],t[Wa("0x2f")]);for(const{suggestion:t,meta:e}of this[Wa("0x10a")](r,Wa("0x2c")))if(e.isOwn&&!e[Wa("0xa6")])if(t.isMultiRange){const e=t[Wa("0x141")]()[Wa("0xf1")]((t=>Wa("0xbf")!=t[Wa("0x86")][Wa("0xe1")]));if(e[Wa("0x132")]((t=>r.containsRange(t,!0)))&&t[Wa("0x102")](),e.some((t=>t[Wa("0x35")](r,!0)))){const t=this[Wa("0xe5")][Wa("0x45")](Wa("0x11"),n,Wa("0x8f"));return this[Wa("0x7c")]((()=>t([r],null,o))),null}}else{const e=r[Wa("0x22")](t[Wa("0xe3")]());null!==e&&t[Wa("0x8")]([e],null,o)}if(r.detach(),r[Wa("0x4b")]||Wa("0xbf")==r[Wa("0x86")][Wa("0xe1")])return null;let x=null,a=r.start,c=r[Wa("0x2f")];const l=this[Wa("0x10a")](r,Wa("0x11"));for(const{suggestion:t,meta:e}of l){const n=this[Wa("0x12b")][Wa("0x3c")](a,c);if(e[Wa("0x10f")]&&(this[Wa("0x105")]||!e[Wa("0x11e")]&&!e.isInsideObject))if(t[Wa("0x108")]){if(!tc(t,o))continue;let e=!0;for(const o of t[Wa("0x141")]()){if(o.containsRange(n,!0))return t;n[Wa("0x35")](o)||(e=!1)}e&&t[Wa("0x102")]()}else{const e=t.getFirstRange();if(e[Wa("0x35")](n,!0))return t;if(!tc(t,o)){n.containsRange(e)?t[Wa("0x2e")]():e[Wa("0x144")](a)?a=e.end:e[Wa("0x144")](c)&&(c=e[Wa("0x98")]);continue}a=a[Wa("0x139")](e[Wa("0x98")])?a:e.start,c=c[Wa("0x57")](e[Wa("0x2f")])?c:e[Wa("0x2f")],o=Object.assign({},t[Wa("0x52")]),x?e[Wa("0x98")][Wa("0x139")](x[Wa("0xe3")]()[Wa("0x98")])?(x[Wa("0x2e")](),x=t):t[Wa("0x2e")]():x=t}}if(x)return this[Wa("0x26")](x,this._model[Wa("0x3c")](a,c)),x;{const t=(0,e.uid)(),r=this[Wa("0x12b")][Wa("0x3c")](a,c),i=s.id,x=n?Wa("0x63")+n:Wa("0x11"),l=this._setSuggestionData({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Wa("0x142")](x,t,i,r),l}}[Wa("0xf7")](t,n="multi",o={}){const s=this[Wa("0xc0")][Wa("0xba")][Wa("0xb6")](Wa("0x90")).me,r=t.map((t=>new i.LiveRange(t[Wa("0x98")],t[Wa("0x2f")]))),x=new Set;for(const{suggestion:t,meta:e}of this[Wa("0x10a")](r,Wa("0x2c")))e[Wa("0x10f")]&&!e[Wa("0xa6")]&&x[Wa("0x100")](t);for(const e of x)if(e.isMultiRange){const s=e[Wa("0x141")]();if((!e[Wa("0x52")]||!e[Wa("0x52")][Wa("0x143")])&&s[Wa("0x132")]((t=>r[Wa("0x24")]((e=>e[Wa("0x35")](t,!0)))))&&e[Wa("0x102")](),r[Wa("0x132")]((t=>s.some((e=>e.containsRange(t,!0)))))){const e=this[Wa("0xe5")][Wa("0x45")](Wa("0x11"),n,Wa("0x8f"));return this.forceDefaultExecution((()=>e(t,null,o))),null}}else{const t=e[Wa("0xe3")]();if(r[Wa("0x24")]((e=>e[Wa("0x35")](t,!0)))&&e[Wa("0x102")](),r.every((e=>t[Wa("0x35")](e,!0)))){const t=this[Wa("0xe5")].getSuggestionCallback("deletion",n,Wa("0x8f"));return this.forceDefaultExecution((()=>t(r,null,o))),null}}const a=this[Wa("0xe5")][Wa("0x45")](Wa("0x11"),n,Wa("0x135"));let c=null;for(const t of this[Wa("0x28")]())if(t[Wa("0x4f")].id==s.id&&t.isInContent&&"deletion"==t[Wa("0x40")]&&t[Wa("0xa5")]==n&&tc(t,o)&&(a(t[Wa("0x141")](),r)||a(r,t[Wa("0x141")]())))if(c){if(t[Wa("0x4")]&&t.commentThread[Wa("0x7")])continue;for(const e of t.getRanges())c.isIntersectingWithRange(e)||c.addRange(e);t[Wa("0x2e")]()}else{c=t;for(const e of r)t[Wa("0xd")](e)||t[Wa("0xa9")](e)}if(c)return c;x[Wa("0x11c")]();for(const{suggestion:t,meta:e}of this[Wa("0x10a")](r,Wa("0x11")))e.isOwn&&(this._mergeNestedSuggestions||!e.containsRangeInObject&&!e[Wa("0x3a")])&&tc(t,o)&&x[Wa("0x100")](t);for(const t of x){const e=t[Wa("0x141")]();if((!o||!o.skipNestingCheck)&&r.every((t=>e[Wa("0x24")]((e=>e[Wa("0x35")](t,!0))))))return t;(!t[Wa("0x52")]||!t[Wa("0x52")][Wa("0x143")])&&e[Wa("0x132")]((t=>r.some((e=>e[Wa("0x35")](t,!0)))))&&t.discard()}const l=(0,e.uid)(),u=s.id,d=Wa("0x63")+n,g=this[Wa("0x4e")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of r)t[Wa("0xf3")](),t[Wa("0x4b")]||Wa("0xbf")==t[Wa("0x86")][Wa("0xe1")]||this[Wa("0x142")](d,l,u,t,Zo[Wa("0xa4")]());return g}[Wa("0x26")](t,e){const n=t[Wa("0x104")]();this[Wa("0x12b")][Wa("0x7a")]((t=>{t[Wa("0x13")](n,{range:e})}))}[Wa("0xc2")](t){const e=t.id,n=this.editor[Wa("0x54")][Wa("0xb6")](Wa("0xd7"));this[Wa("0x95")].hasCommentThread(e)||this[Wa("0x95")][Wa("0x68")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[Wa("0x95")][Wa("0x88")](e);o[Wa("0xf5")](Wa("0x9e")),o[Wa("0x9e")]=!1,t[Wa("0x4")]=o}[Wa("0x127")](t,n,o,s){if(t.type!=n||t[Wa("0xa5")]!=o||t[Wa("0xff")].id!=s)throw this[Wa("0xc0")].enableReadOnlyMode(Wa("0x124")),new e.CKEditorError(Wa("0x124"),this)}[Wa("0x12a")](t,n){const o=t[Wa("0xe3")]();if(n[Wa("0x2a")](o))t[Wa("0x2e")]();else if(o[Wa("0x35")](n)){const s=this[Wa("0x12b")].createPositionAt(n[Wa("0x98")][Wa("0x131")],Wa("0x2f"));this[Wa("0x26")](t,this._model[Wa("0x3c")](o[Wa("0x98")],s));const r=(0,e.uid)(),i=t.creator.id,x=t.type+":"+t[Wa("0xa5")];this[Wa("0x4e")]({id:r,type:x,createdAt:new Date,authorId:i,data:t.data,attributes:t[Wa("0x52")]});const a=this[Wa("0x12b")][Wa("0xac")](n[Wa("0x2f")].parent,Wa("0x18")),c=this._model[Wa("0x3c")](a,o.end);this[Wa("0x142")](x,r,i,c)}else if(o[Wa("0x144")](n[Wa("0x98")])){const e=this[Wa("0x12b")][Wa("0xac")](n[Wa("0x98")][Wa("0x131")],Wa("0x2f"));this[Wa("0x26")](t,this[Wa("0x12b")][Wa("0x3c")](o[Wa("0x98")],e))}else{const e=this._model[Wa("0xac")](n[Wa("0x2f")][Wa("0x43")],Wa("0x18"));this._setSuggestionRange(t,this._model[Wa("0x3c")](e,o[Wa("0x2f")]))}}[Wa("0x37")](t){for(const{suggestion:e,meta:n}of this[Wa("0x10a")](t,Wa("0x2c"))){if(!n[Wa("0x10f")])continue;const o=e[Wa("0x141")]();for(const e of o)if(!t[Wa("0xdc")](e)[Wa("0x7")])return!0}return!1}[Wa("0x84")](t){const n=this[Wa("0xc0")][Wa("0xba")][Wa("0xb6")]("Users")[Wa("0x12")](t);if(!n)throw new e.CKEditorError(Wa("0x8c"),this);return n}[Wa("0xcf")](t){const e=this[Wa("0xc0")].plugins.get(Wa("0x90")),n=(0,r.hashObject)(Wa("0x133")+t);return e[Wa("0x12")](n)||e[Wa("0xa3")]({id:n,name:t})}[Wa("0xd1")](t,e,n,o,s){const r=this[Wa("0x84")](o),i=this[Wa("0xe5")][Wa("0x118")](t,e,n,r,s,(t=>this[Wa("0x111")](n,{attributes:t})));return this.listenTo(i,Wa("0x8f"),(()=>{this[Wa("0x111")](n,{state:Wa("0x66")})}),{priority:Wa("0xdb")}),this[Wa("0x129")](i,"discard",(()=>{this._updateSuggestionData(n,{state:Wa("0xb0")})}),{priority:Wa("0xdb")}),this._suggestions.set(n,i),this[Wa("0xd4")][Wa("0x6a")](i,Wa("0x115")),i}_splitMarkerName(t){const e=t[Wa("0x19")](":");return{group:e[0],type:e[1],subType:e[Wa("0x7")]>=5?e[2]:null,id:e[Wa("0x7")]<5?e[2]:e[3],authorId:e[Wa("0x7")]<5?e[3]:e[4],markerCount:6==e[Wa("0x7")]?e[5]:null}}[Wa("0x112")](t,n,o){const s=t[Wa("0xe3")](),r=s[Wa("0x98")],i=s[Wa("0x2f")];this[Wa("0x26")](t,this[Wa("0x12b")][Wa("0x3c")](r,n));const x=(0,e.uid)(),a=t.creator.id,c=t[Wa("0x40")]+(t.subType?":"+t[Wa("0xa5")]:"");this[Wa("0x4e")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[Wa("0x52")],data:t.data}),"formatBlock"==t.type&&(o=this[Wa("0x12b")][Wa("0xa2")](o[Wa("0x43")])),this._addSuggestionMarker(c,x,a,this[Wa("0x12b")][Wa("0x3c")](o,i))}[Wa("0x10a")](t,e=null){const n=[],o=this.editor[Wa("0xba")][Wa("0xb6")]("Users").me;Array[Wa("0x126")](t)||(t=[t]);for(const s of this[Wa("0x28")]()){if(!s.isInContent)continue;if(e&&s[Wa("0x40")]!=e)continue;let r=!1;for(const e of s[Wa("0x141")]()){for(const i of t){const t=i[Wa("0x98")].isEqual(e[Wa("0x2f")])||i[Wa("0x2f")][Wa("0x2a")](e[Wa("0x98")]);if(t||i[Wa("0x22")](e)){const x=i[Wa("0x35")](e)&&Ka(this[Wa("0x12b")][Wa("0x32")],e[Wa("0x98")],i),a=e[Wa("0x35")](i)&&Ka(this._model.schema,i.start,e);n[Wa("0x44")]({suggestion:s,meta:{isOwn:o==s[Wa("0x4f")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),r=!0;break}}if(r)break}}return n}[Wa("0x142")](t,e,n,o,s){this[Wa("0x12b")][Wa("0x7a")]((r=>{let i=Wa("0xe7")+t+":"+e+":"+n;s&&(i=i+":"+s),r[Wa("0x113")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[Wa("0x48")](t){const e=t[Wa("0x12f")],n=t[Wa("0x107")];t[Wa("0x12f")]=null,null!=e&&(e[Wa("0x107")]=null),t[Wa("0x107")]=null,null!=n&&(n.previous=null),Wa("0x61")==this[Wa("0xd4")][Wa("0xb6")](t)&&(this[Wa("0xd4")][Wa("0x6a")](t,Wa("0x58")),this[Wa("0x4d")](Wa("0x21"),t,e,n))}[Wa("0x4e")](t){const n=t.id,o=this[Wa("0x49")](t);if(this[Wa("0x11f")]&&this[Wa("0x11f")].addSuggestion){const s=this[Wa("0xc0")][Wa("0xba")].get(Wa("0x6b")),r=o[Wa("0x11a")],i=o[Wa("0xa5")]?o[Wa("0x40")]+":"+o[Wa("0xa5")]:o[Wa("0x40")],x=this[Wa("0xc0")][Wa("0x13d")],a=s.add(Yo(x,Wa("0xc"))),c={id:n,type:i,hasComments:r,data:t[Wa("0x30")]||null,originalSuggestionId:t[Wa("0x10b")]||null,attributes:o[Wa("0x52")]};this[Wa("0x11f")][Wa("0x9d")](c).then((t=>{o._saved=!0,s.remove(a),t&&t[Wa("0x65")]&&(this[Wa("0x73")][Wa("0xb6")](n)[Wa("0x65")]=t[Wa("0x65")])}))[Wa("0x13e")]((t=>{throw(0,e.logWarning)(Wa("0x10e")),this.editor[Wa("0x2b")][Wa("0x5a")]({isUndoable:!1},(()=>{o.discard()})),o[Wa("0x9c")](),this[Wa("0x73")][Wa("0x74")](o.id),this[Wa("0xd4")].delete(o),t}))}return o}_updateSuggestionData(t,e){const n=this[Wa("0xc0")][Wa("0xba")].get(Wa("0x6b")),o=this.getSuggestion(t);if(this[Wa("0x11f")]&&this[Wa("0x11f")][Wa("0x4c")])if(o[Wa("0x39")]){const o=n[Wa("0x100")](Yo(this[Wa("0xc0")][Wa("0x13d")],"PENDING_ACTION_SUGGESTION"));this[Wa("0x11f")][Wa("0x4c")](t,e).then((()=>{n[Wa("0x92")](o)}))}else o.on(Wa("0x122"),(()=>{this[Wa("0x111")](t,e)}))}_getSuggestionData(t){if(!this[Wa("0x11f")]||!this[Wa("0x11f")][Wa("0x99")])throw new e.CKEditorError(Wa("0xdf"),this);return this[Wa("0x11f")][Wa("0x99")](t)}[Wa("0x4a")](t){const{id:e,type:n,subType:o,authorId:s}=this[Wa("0x9b")](t),r=this[Wa("0x73")][Wa("0xb6")](e)||this._createSuggestion(n,o,e,s,{});switch(this._checkSuggestionCorrectness(r,n,o,s),this._suggestionState[Wa("0xb6")](r)){case Wa("0x115"):this._getSuggestionData(e)[Wa("0x83")]((t=>{let n=Promise[Wa("0x1a")]();t[Wa("0x11a")]&&(n=this[Wa("0x95")].fetchCommentThread({channelId:this[Wa("0xc0")][Wa("0x54")][Wa("0xb6")](Wa("0xd7")),threadId:e})),n[Wa("0x83")]((()=>{this[Wa("0x49")](t)[Wa("0x39")]=!0}))})),this[Wa("0xd4")][Wa("0x6a")](r,"markerReady");break;case Wa("0x58"):this[Wa("0x111")](e,{state:Wa("0x42")});case Wa("0xbc"):this[Wa("0xd4")][Wa("0x6a")](r,Wa("0x61")),this[Wa("0x4d")](Wa("0x9a"),r);break;case Wa("0x61"):this[Wa("0x4d")]("suggestionChanged",r)}return r[Wa("0xf8")](t),r}[Wa("0x47")](t){const e=Array[Wa("0x6d")](t)[Wa("0xf1")]((t=>!t[Wa("0x108")])),n=this.getSuggestions({skipNotAttached:!0})[Wa("0xf1")]((t=>!t[Wa("0x108")])),o=n.filter((e=>!t[Wa("0x138")](e))),s=new Map(n[Wa("0x6f")]((t=>[t,this[Wa("0xe5")].getSuggestionCallback(t[Wa("0x40")],t[Wa("0xa5")],Wa("0x1"))]))),r=new Map(n[Wa("0x6f")]((t=>[t,t[Wa("0xe3")]()]))),i=new Set,x=new Set;for(let t=0;t<e[Wa("0x7")];t++)a(e[t],e,t+1);for(let t=0;t<e[Wa("0x7")];t++)a(e[t],o,0);for(let t=0;t<e.length;t++){const n=e[t];!x[Wa("0x138")](n)&&n[Wa("0x12f")]&&(n[Wa("0x12f")].next===n&&(n[Wa("0x12f")][Wa("0x107")]=null),n[Wa("0x12f")]=null),!i[Wa("0x138")](n)&&n[Wa("0x107")]&&(n[Wa("0x107")][Wa("0x12f")]===n&&(n.next[Wa("0x12f")]=null),n[Wa("0x107")]=null)}function a(t,e,n){for(let o=n;o<e[Wa("0x7")];o++){const n=c(t,e[o]);n&&(n[0][Wa("0x107")]=n[1],n[1][Wa("0x12f")]=n[0],i[Wa("0x100")](n[0]),x[Wa("0x100")](n[1]))}}function c(t,e){if(t.author.id!==e[Wa("0x4f")].id)return null;const n=s[Wa("0xb6")](t)(t,e,r[Wa("0xb6")](t),r[Wa("0xb6")](e));return n&&s[Wa("0xb6")](e)(t,e,r[Wa("0xb6")](t),r.get(e))?n[1][Wa("0x4")]&&n[1][Wa("0x4")][Wa("0x7")]?null:n:null}}[Wa("0x96")](t){const e=Array.from(t),n=this.getSuggestions({skipNotAttached:!0}),o=n[Wa("0xf1")]((e=>!t[Wa("0x138")](e))),s=new Map(e[Wa("0x6f")]((t=>[t,this._suggestionFactory[Wa("0x45")](t[Wa("0x40")],t.subType,Wa("0x135"))]))),r=new Map(n.map((t=>[t,t[Wa("0x141")]()])));for(let t=0;t<e[Wa("0x7")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[Wa("0x7")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n[Wa("0x7")];i++){const o=n[i];if(o.type!==e[Wa("0x40")]||o[Wa("0x4f")].id!==e[Wa("0x4f")].id||o[Wa("0xa5")]!==e.subType)continue;if(!Ya(e,o))continue;const x=s.get(e),a=r[Wa("0xb6")](e),c=r.get(o),l=e.commentThread&&e.commentThread[Wa("0x7")],u=o[Wa("0x4")]&&o[Wa("0x4")].length;if(!l&&x(c,a))return t._joinSuggestions(o,e),r[Wa("0x74")](e),!0;if(!u&&x(a,c))return t[Wa("0x5")](e,o),r[Wa("0x74")](o),!0}return!1}}[Wa("0x5")](t,e){if(t.isMultiRange)for(const n of e.getRanges())t.addRange(n);else{const n=e.getFirstRange()[Wa("0x2f")];this._setSuggestionRange(t,this[Wa("0x12b")][Wa("0x3c")](t[Wa("0xe3")]()[Wa("0x98")],n))}e[Wa("0x2e")]()}}class Va{constructor(t){this[Wa("0x137")]=t,this[Wa("0x12b")]=t[Wa("0x2b")],this[Wa("0xc8")]=new Map,this[Wa("0xea")]=new Map,this[Wa("0x110")]()}[Wa("0x118")](t,e,n,o,s,r){return new Zo(this[Wa("0x12b")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[Wa("0x45")](t,e,Wa("0x8f"))(...n),onDiscard:(...n)=>this.getSuggestionCallback(t,e,Wa("0x102"))(...n)})}[Wa("0x15")](t,e,n,o){const s=t+":"+e+":"+n;this[Wa("0xc8")][Wa("0x6a")](s,o)}[Wa("0x45")](t,e,n){const o=t+":"+e+":"+n;return this[Wa("0xc8")][Wa("0xb6")](o)||this[Wa("0xea")][Wa("0xb6")](t+":"+n)}[Wa("0x110")](){const t=()=>!1,e=t=>{t[Wa("0xb4")](((t,e)=>t[Wa("0x98")][Wa("0x139")](e[Wa("0x98")])?1:-1)),this._model[Wa("0x7a")]((e=>{for(const n of t){let t;t=n.end[Wa("0x10")]&&n[Wa("0x2f")][Wa("0x43")]==n[Wa("0x98")][Wa("0x10c")]?e[Wa("0x64")](n[Wa("0x98")][Wa("0x10c")],"on"):e[Wa("0x64")](n),this[Wa("0x12b")][Wa("0x76")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this._model[Wa("0x7a")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[Wa("0x6f")]((t=>(qa(t)&&(t=this[Wa("0x12b")][Wa("0x3c")](t[Wa("0x2f")])),t)))[Wa("0xf1")]((t=>Wa("0xbf")!==t[Wa("0x86")][Wa("0xe1")]));if(r[Wa("0x7")]<1)return;const x=Array[Wa("0x6d")](this[Wa("0x12b")].document[Wa("0xa7")].getRanges())[Wa("0x6f")]((t=>i.LiveRange[Wa("0x14")](t)));n.setSelection(r);for(const t of this[Wa("0x137")][Wa("0x128")].commands())t[Wa("0xc9")]();s[Wa("0x44")]({forceDefaultExecution:!0}),this[Wa("0x137")].execute(o,...s);const a=x[Wa("0xf1")]((t=>Wa("0xbf")!=t[Wa("0x86")].rootName));a[Wa("0x7")]>0&&n.setSelection(a);for(const t of x)t[Wa("0xf3")]()}))},o=(t,e)=>1==t.length&&1==e.length&&t[0].end[Wa("0x2a")](e[0][Wa("0x98")]),s=(t,e,n,o)=>Za(t,e,n,o,this[Wa("0x12b")])?[t,e]:Za(e,t,o,n,this[Wa("0x12b")])?[e,t]:null;this[Wa("0xea")][Wa("0x6a")]("insertion:accept",t),this[Wa("0xea")][Wa("0x6a")](Wa("0xeb"),e),this._defaultCallbacks[Wa("0x6a")]("insertion:join",o),this[Wa("0xea")][Wa("0x6a")]("insertion:chain",s),this[Wa("0xea")][Wa("0x6a")](Wa("0xc7"),e),this[Wa("0xea")][Wa("0x6a")]("deletion:discard",t),this._defaultCallbacks.set("deletion:join",o),this[Wa("0xea")][Wa("0x6a")](Wa("0x125"),s),this[Wa("0xea")][Wa("0x6a")](Wa("0x56"),n),this[Wa("0xea")][Wa("0x6a")](Wa("0xd8"),t),this[Wa("0xea")][Wa("0x6a")](Wa("0x12d"),o),this[Wa("0xea")][Wa("0x6a")]("formatInline:chain",t),this[Wa("0xea")][Wa("0x6a")](Wa("0xb9"),n),this[Wa("0xea")][Wa("0x6a")](Wa("0x20"),t),this._defaultCallbacks[Wa("0x6a")](Wa("0xa8"),o),this[Wa("0xea")][Wa("0x6a")](Wa("0x67"),t)}}function Ka(t,e,n){for(const o of e[Wa("0x43")][Wa("0x80")]({includeSelf:!0,parentFirst:!0})){if(o[Wa("0x86")]==o)return!1;if(!n.containsItem(o))return!1;if(t[Wa("0x41")](o)||t[Wa("0x114")](o))return!0}return!1}function qa(t){return t[Wa("0x2f")][Wa("0x43")]==t[Wa("0x98")][Wa("0x10c")]&&t.end[Wa("0x103")]}function Xa(t,e,n,o){const s=t=>!t[Wa("0xda")].is(Wa("0xcd"))&&!o[Wa("0x41")](t[Wa("0xda")]),r=t[Wa("0x98")][Wa("0x134")](s),i=t[Wa("0x2f")][Wa("0x134")](s,{direction:"backward"});return!(t[Wa("0x98")][Wa("0x2a")](r)&&t.end[Wa("0x2a")](i)||(r.isBefore(i)?n.updateMarker(e,{range:n[Wa("0x3c")](r,i)}):n.removeMarker(e),0))}function $a(t){return(0,r.hashObject)(t)}function Qa(t){const e=t[Wa("0x98")][Wa("0x10c")];return e&&e.is(Wa("0x6e"))}function Ja(t,e){const n=e[Wa("0x32")][Wa("0x41")](t)||e[Wa("0x32")].isSelectable(t);return e[Wa("0x3c")](e[Wa("0xac")](t,Wa("0x16")),n?e.createPositionAfter(t):e.createPositionAt(t,Wa("0x2f")))}function Za(t,e,n,o,s){if(!Ya(t,e))return!1;if(n[Wa("0x2f")][Wa("0x2a")](o[Wa("0x98")]))return!0;if(t[Wa("0x40")]!=e[Wa("0x40")])return!1;if(!n[Wa("0x2f")][Wa("0x6")](o[Wa("0x98")]))return!1;const r=s[Wa("0x3c")](n[Wa("0x2f")],o[Wa("0x98")]).getWalker();for(const t of r)if([Wa("0x17"),Wa("0xd5")][Wa("0xd0")](t[Wa("0x40")])&&s[Wa("0x32")].isLimit(t[Wa("0xda")]))return!1;return!0}function Ya(t,e){return!(!t[Wa("0x13b")]||!e._isDataLoaded)&&Go(t.attributes,e[Wa("0x52")])}function tc(t,e){const n=ec(t[Wa("0x52")]),o=ec(e);if(!t._isDataLoaded)return!1;for(const t of Object[Wa("0x3f")](o))if(!Go(n[t],o[t]))return!1;return!0}function ec(t){const e=Object[Wa("0x97")]({},t);return delete e[Wa("0x143")],delete e[Wa("0x81")],e}const nc=["_setPendingAction","add","locale","canDiscard","bind","_acceptCommand","isEnabled","canAccept","listenTo","model","acceptSuggestion","_removePendingAction","commentThreadController","_pendingAction","execute","get","remove","view","commands","_editor","getRanges","destroy","plugins","discardSuggestion","change:isDirty","PendingActions","unbind","_discardCommand","stopListening","canEditAt"];var oc,sc;oc=nc,sc=353,function(t){for(;--t;)oc.push(oc.shift())}(++sc);const rc=function(t,e){return nc[t-=0]};class ic extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[rc("0x10")]=e,this[rc("0x18")]=n,this.commentThreadController=o,this[rc("0x1a")]=t,this[rc("0xc")]=t[rc("0x19")].get(rc("0x11")),this[rc("0x4")]=t[rc("0x19")][rc("0x16")](rc("0x0")),this[rc("0x18")].bind("isEnabled").to(this[rc("0xc")],this[rc("0x4")],((t,e)=>t||e)),this[rc("0x18")].bind(rc("0xe")).to(this[rc("0xc")],rc("0xd"),(t=>t&&this[rc("0x1a")].model[rc("0x6")](e[rc("0x1b")]()))),this[rc("0x18")][rc("0xb")](rc("0xa")).to(this[rc("0x4")],rc("0xd"),(t=>t&&this[rc("0x1a")][rc("0x10")][rc("0x6")](e[rc("0x1b")]()))),this[rc("0x14")]=null,n.isDirty&&this[rc("0x7")](),this[rc("0xf")](n,"acceptSuggestion",(()=>this[rc("0x11")]())),this[rc("0xf")](n,rc("0x0"),(()=>this[rc("0x0")]())),this[rc("0xf")](n,rc("0x1"),(()=>{n.isDirty?this[rc("0x7")]():this._removePendingAction()}))}[rc("0x11")](){this[rc("0xc")][rc("0x15")](this[rc("0x10")].id)}[rc("0x0")](){this[rc("0x4")][rc("0x15")](this[rc("0x10")].id)}[rc("0x1c")](){this[rc("0x18")][rc("0x3")](rc("0xd")),this[rc("0x18")][rc("0x3")](rc("0xe")),this[rc("0x18")][rc("0x3")](rc("0xa")),this[rc("0x5")](),this[rc("0x13")][rc("0x1c")](),this[rc("0x14")]&&this[rc("0x12")]()}[rc("0x7")](){const t=Yo(this._editor[rc("0x9")],"PENDING_ACTION_SUGGESTION");this[rc("0x14")]=this[rc("0x1a")][rc("0x1d")][rc("0x16")](rc("0x2"))[rc("0x8")](t)}[rc("0x12")](){null!==this[rc("0x14")]&&this[rc("0x1a")][rc("0x1d")][rc("0x16")]("PendingActions")[rc("0x17")](this[rc("0x14")]),this[rc("0x14")]=null}}const xc=["showInput","_createCommentThreadInputView","bind","disabledSubmit","set","destroy","editorConfig","disableComments","submit","value","hasDirtyComment","canAccept","setData","commentsListView","_model","addComment","authoredAt","updateComment","isDirty","isActive","locale","assign","_config","length","commentThreadInputView","commentThread","commentInputView","_localUser","isReadOnly","delegate","focus","_createCommentViews","removeComment"];var ac,cc;ac=xc,cc=165,function(t){for(;--t;)ac.push(ac.shift())}(++cc);const lc=function(t,e){return xc[t-=0]};class uc extends s.View{constructor(t,e,n,o){super(t),this[lc("0xd")]=null,this[lc("0x18")]=null,this[lc("0x4")](lc("0x13"),!1),this[lc("0x4")]("authoredAt",e[lc("0x10")]),this[lc("0x2")]("authoredAt").to(e),this[lc("0x4")]("descriptionParts",[]),this[lc("0x4")]("isDirty",!1),this[lc("0x4")]("isEnabled",!1),this[lc("0x4")](lc("0xb"),!1),this[lc("0x4")]("canDiscard",!1),this[lc("0xe")]=e,this[lc("0x1b")]=n,this[lc("0x16")]=o,o[lc("0x7")]?this.set(lc("0x17"),1):this[lc("0x1f")]()}[lc("0x1e")](){this.element[lc("0x1e")]()}destroy(){this[lc("0xd")]&&this[lc("0xd")][lc("0x5")](),this[lc("0x18")]&&this[lc("0x18")][lc("0x5")](),super[lc("0x5")]()}[lc("0x1f")](){const{CommentsListView:t}=this[lc("0x16")];this[lc("0xd")]=new t(this[lc("0x14")],this._model[lc("0x19")],Object[lc("0x15")]({CommentView:this[lc("0x16")].CommentView},this._config)),this[lc("0xd")].delegate(lc("0x20")).to(this),this[lc("0xd")][lc("0x1d")](lc("0x11")).to(this),this[lc("0xd")][lc("0x2")](lc("0x13")).to(this),this[lc("0x4")]("length",this[lc("0xd")].length+1),this[lc("0x2")](lc("0x17")).to(this[lc("0xd")],lc("0x17"),(t=>t+1)),this[lc("0x18")]=this[lc("0x1")](),this.on("removeComment",(()=>this[lc("0x1e")]())),this.bind(lc("0x12")).to(this[lc("0xd")],lc("0xa"),this[lc("0x18")][lc("0x1a")],lc("0x9"),((t,e)=>t||!!e))}[lc("0x1")](){const{CommentThreadInputView:t}=this._config,e=new t(this[lc("0x14")],this[lc("0x1b")],this[lc("0x16")][lc("0x6")]),n=e[lc("0x1a")];return e[lc("0x2")](lc("0x0")).to(this,"isActive",this[lc("0xe")].commentThread,lc("0x1c"),n,"value",((t,e,n)=>!!n||t&&!e)),n.on(lc("0x8"),((t,e)=>{this.fire(lc("0xf"),e),n.editor[lc("0xc")]("")})),n.on("cancel",(()=>this.focus())),n.bind(lc("0x3")).to(this[lc("0xe")][lc("0x19")],lc("0x1c")),e}}const dc=["ck-suggestion-wrapper","ck-comment__external","value","div","_model","cancel","discardSuggestion","ck-suggestion__info",'"></span>',"ck-suggestion--disabled-comments","<p>",".ck-annotation__content-wrapper","_createButton","delegate","content","isExternal","descriptionParts","author","ck-annotation__actions","description","authoredAt","getTemplate","importWord","isActive","querySelector","getExternalSuggestionNote","render","discardButton","canAccept","editorReady","split","Discard suggestion","ck-annotation__info","getUserViewNotificationText","EXTERNAL_IMPORT_WORD_AVATAR","title","map","innerHTML","ck-suggestion","extendTemplate","set","</p>","EXTERNAL_AVATAR","ck-suggestion-","userView","ck-annotation","@external","formatDateTime","ck-suggestion__user","execute",'<span class="ck-suggestion-type">','<span class="ck-suggestion-color" style="background-color: ',"commentThread","ck-annotation__main","bindTemplate","isEnabled","bind","name","EXTERNAL_IMPORT_WORD_SUGGESTION","_descriptionElement","EXTERNAL_SUGGESTION","canDiscard","creator","ck-annotation__info-time","commentThreadInputView","ck-suggestion--accept","span",'" title="',"disableComments","ck-suggestion-wrapper--active","ck-comment__info-time","color","commentsListView","locale","setTemplate","change:description","acceptButton","_config","children","type","innerText","ck-annotation__content-wrapper","acceptSuggestion","push","source","attributes"];var gc,mc;gc=dc,mc=132,function(t){for(;--t;)gc.push(gc.shift())}(++mc);const fc=function(t,e){return dc[t-=0]};class hc extends uc{constructor(e,n,o,s){super(e,n,o,s),this[fc("0x50")](fc("0x21"),""),this[fc("0xa")](fc("0x21")).to(this,fc("0x38"),(t=>t&&t[0]?t[0][fc("0x21")]:"")),this[fc("0xa")](fc("0x3b")).to(this,fc("0x38"),this,fc("0x3f"),((t,e)=>{let n="";for(const e of t)n+=fc("0x32")+bc(e[fc("0x36")],e[fc("0x19")])+fc("0x51");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[fc("0xd")]=null,this[fc("0x1e")]=this._createButton(Yo(e,"Accept suggestion"),t.icons.check,fc("0x13"),fc("0x24"),"sw"),this[fc("0x1e")].bind(fc("0x9")).to(this,fc("0x44")),this[fc("0x43")]=this[fc("0x34")](Yo(e,fc("0x47")),t.icons[fc("0x2d")],"ck-suggestion--discard",fc("0x2e"),"sw"),this[fc("0x43")][fc("0xa")](fc("0x9")).to(this,fc("0xf")),this[fc("0x54")]=new r.UserView(e,this[fc("0x2c")][fc("0x39")],this[fc("0x49")]()),this[fc("0x54")][fc("0x4f")]({attributes:{class:[fc("0x2"),"ck-annotation__user"]}}),this[fc("0x1c")](this[fc("0x3d")]())}[fc("0x3d")](){const t=this[fc("0x8")],e=[{tag:fc("0x2b"),attributes:{class:[fc("0x2f"),fc("0x48")]},children:[{tag:fc("0x14"),children:[{text:this[fc("0x54")].name}],attributes:{class:["ck-suggestion__info-name","ck-annotation__info-name"]}},{tag:"time",attributes:{datetime:t.to(fc("0x3c")),class:[fc("0x18"),fc("0x11")]},children:[{text:t.to("authoredAt",(t=>this[fc("0x1f")][fc("0x1")](t)))}]}]},{tag:"div",attributes:{class:["ck-suggestion__actions",fc("0x3a")]},children:[this[fc("0x1e")],this.discardButton]},{tag:fc("0x2b"),attributes:{class:[fc("0x23")]}}];this._model[fc("0x37")]&&e.push({tag:fc("0x2b"),attributes:{class:[fc("0x29")]},children:[{text:this[fc("0x41")]()}]});const n={tag:fc("0x2b"),attributes:{class:[fc("0x28"),t.if("isActive",fc("0x17")),t.to(fc("0x21"),(t=>fc("0x53")+t)),this._config[fc("0x16")]&&fc("0x31")],"data-suggestion-id":this[fc("0x2c")].id,"data-thread-id":this[fc("0x2c")][fc("0x6")].id,"data-author-id":this[fc("0x2c")][fc("0x39")].id,tabindex:-1},children:[{tag:fc("0x2b"),attributes:{class:[fc("0x4e"),fc("0x55")]},children:[this.userView,{tag:fc("0x2b"),attributes:{class:["ck-suggestion__main",fc("0x7")]},children:e}]}]};return this.commentsListView&&this[fc("0x12")]&&(n[fc("0x20")][fc("0x25")](this[fc("0x1a")],this[fc("0x12")]),this[fc("0x1a")][fc("0x35")](fc("0x45")).to(this),this[fc("0x1a")][fc("0x35")]("editorDestroyed").to(this),this[fc("0x12")][fc("0x35")]("editorReady").to(this),this[fc("0x12")][fc("0x35")]("editorDestroyed").to(this)),n}[fc("0x42")](){super[fc("0x42")](),this[fc("0xd")]=this.element[fc("0x40")](fc("0x33")),this[fc("0xd")].innerHTML=this[fc("0x3b")],this.on(fc("0x1d"),((t,e,n)=>{this[fc("0xd")][fc("0x4d")]=n}))}[fc("0x34")](t,e,n,o,r){const i=new s.ButtonView(this[fc("0x1b")]);return i.set({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[fc("0x4f")]({attributes:{class:n}}),i.on(fc("0x3"),(()=>{this.fire(o,this._model.id)})),i}[fc("0x41")](){return fc("0x3e")===this._model[fc("0x27")][fc("0x0")].source?Yo(this[fc("0x1b")],fc("0xc")):Yo(this[fc("0x1b")],fc("0xe"))}getUserViewNotificationText(){return this[fc("0x2c")].isExternal?fc("0x3e")===this[fc("0x2c")][fc("0x27")][fc("0x0")][fc("0x26")]?Yo(this[fc("0x1b")],fc("0x4a"),this._model.creator[fc("0xb")]):Yo(this[fc("0x1b")],fc("0x52"),this._model[fc("0x10")][fc("0xb")]):null}}function bc(t,e){let n="";return n+=t[fc("0x46")]("*")[fc("0x4c")](((t,e)=>e%2!=0?fc("0x4")+pc(t)+"</span>":pc(t))).join(""),e&&(n+=fc("0x5")+e[fc("0x2a")]+fc("0x15")+e[fc("0x4b")]+fc("0x30")),n}function pc(t){const e=document.createElement("span");return e[fc("0x22")]=t,e[fc("0x4d")]}const Ec=["getFirstRange","get","arrowView","comments.maxCommentCharsWhenCollapsed","createAnnotationView","getDescriptions","unbind","switchbutton","EditorAnnotations","locale","change:activeAnnotations","reduce","view","_annotationViews","suggestionLoaded","_updateController","change:previous","CommentsRepository","init","refreshSelectedViews","lowest","innerView","comments.editorConfig","delete","focus","_createUIButton","size","commentThread","type","TrackChangesUI","previous","from","getSuggestion","values","_descriptionFactory","actionView","suggestion-","config","getMarkerNames","button","trackChanges.disableComments","isEnabled","add","SuggestionThreadView","listenTo","_initializeController","keys","trackChanges","acceptAllSuggestions","trackChanges.SuggestionThreadView","discardButton","TrackChangesEditing","getMarkers","commands","filter","some","isOn","isMultiRange","getRanges","Annotations","commandName","push","_viewToController","getByInnerView","CommentView","requires","has","destroy","_handleSuggestionControllerDelayed","value","suggestionChanged","isInContent","_disableComments","_bindAnnotationToEditors","_destroyController","head","define","_suggestionToController","_refreshActiveMarkers","getJoined","clear","editor","CommentsUI","getAllAdjacentSuggestions","addComment","Track changes","buttonView","componentFactory","plugins","acceptButton","Discard all suggestions","model","descriptionParts","_handleControllerBuffer","createAnnotation","addSourceCollector","isDirty","set","length","bind","separator","execute","pluginName","editing","acceptSelectedSuggestions","source","mainView"];var _c,Tc;_c=Ec,Tc=364,function(t){for(;--t;)_c.push(_c.shift())}(++Tc);const Cc=function(t,e){return Ec[t-=0]};class yc extends t.Plugin{static get[Cc("0x16")](){return[za,r.Users,Cc("0x51"),Cc("0x10"),Cc("0x48")]}static get[Cc("0x3b")](){return Cc("0x5d")}constructor(t){super(t),this._suggestionToController=new Map,this[Cc("0x13")]=new Map,this[Cc("0x4d")]=new Map,this[Cc("0x32")]=new Map;const e=this.editor[Cc("0x65")];e.define(Cc("0x6"),hc),e[Cc("0x21")](Cc("0x68"),!1),this[Cc("0x1d")]=e[Cc("0x41")]("trackChanges.disableComments")}[Cc("0x19")](t,e){0===this._handleControllerBuffer[Cc("0x5a")]&&setTimeout((()=>{for(const[t,e]of this[Cc("0x32")]){const n=this[Cc("0x22")].has(t);n||e?n&&e&&this[Cc("0x1f")](t):this[Cc("0x2")](t)}this.editor[Cc("0x2d")][Cc("0x41")]("EditorAnnotations")[Cc("0x53")](),this._refreshActiveMarkers(),this._handleControllerBuffer[Cc("0x25")]()}),10),this[Cc("0x32")][Cc("0x36")](t,e)}[Cc("0x52")](){const t=this.editor,e=t[Cc("0x2d")].get(Cc("0x8")),n=t[Cc("0x2d")].get("Annotations"),o=t.plugins[Cc("0x41")](Cc("0x48")),s=t[Cc("0x2d")][Cc("0x41")](Cc("0x51"));t.ui[Cc("0x2c")].add(Cc("0x4"),(t=>this[Cc("0x59")](t))),o[Cc("0x34")]((()=>{const t=[];for(const[e,n]of Array.from(this._suggestionToController)){const o=e[Cc("0x28")](),s=[];for(const t of o){if(!t[Cc("0x1c")])continue;if(t[Cc("0xe")]){s[Cc("0x12")](...t[Cc("0xf")]());continue}const e=t[Cc("0x40")]();if(s.length>0){const t=s[0][Cc("0x24")](e);if(t){s[0]=t;continue}}s[Cc("0x12")](e)}t[Cc("0x12")]([n[Cc("0x4c")],s])}return t})),this[Cc("0x1")](e,Cc("0x4e"),((t,e)=>{this[Cc("0x1")](e,Cc("0x50"),((t,n,o,s)=>{e.isInContent&&(null==o?(this[Cc("0x4f")](s.head),this._handleSuggestionControllerDelayed(e,!1)):(this[Cc("0x4f")](o[Cc("0x20")]),this[Cc("0x19")](e,!0)))})),null===e[Cc("0x5e")]?this._handleSuggestionControllerDelayed(e,!1):this[Cc("0x4f")](e[Cc("0x20")])})),this[Cc("0x1")](e,"suggestionUnloaded",((t,e,n)=>{this.stopListening(e,Cc("0x50")),this[Cc("0x32")][Cc("0x57")](e);const o=n?n[Cc("0x20")]:e,s=this[Cc("0x22")].get(o);null!==n&&this[Cc("0x4f")](o),null===n&&s&&this._destroyController(e)})),this[Cc("0x1")](e,Cc("0x1b"),((t,e)=>{this[Cc("0x4f")](e)})),this.listenTo(n,Cc("0x4a"),(()=>{this[Cc("0x23")]()})),this[Cc("0x1")](s,Cc("0x29"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e.hasSuggestion(n))return;const s=e[Cc("0x60")](n);this[Cc("0x22")][Cc("0x41")](s).view[Cc("0x58")]()}),{priority:Cc("0x54")})}_refreshActiveMarkers(){const t=this[Cc("0x26")].plugins[Cc("0x41")](Cc("0x10")),e=this.editor[Cc("0x2d")][Cc("0x41")](Cc("0x8")),n=Array[Cc("0x5f")](t.activeAnnotations,(t=>t[Cc("0x55")]))[Cc("0xb")]((t=>this._viewToController[Cc("0x17")](t))),o=[];for(const t of n){const e=this._viewToController.get(t)[Cc("0x30")][Cc("0x28")]();o[Cc("0x12")](...e[Cc("0x4b")](((t,e)=>[...t,...e[Cc("0x66")]()]),[]))}e.activeMarkers=o}[Cc("0x59")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this.editor[Cc("0xa")][Cc("0x41")]("trackChanges"),r=Yo(t,Cc("0x2a"));n[Cc("0x2b")].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[Cc("0x2b")][Cc("0x38")](Cc("0xd")).to(o,Cc("0x1a")),n[Cc("0x2b")].on(Cc("0x3a"),(()=>{o[Cc("0x3a")](),this[Cc("0x26")][Cc("0x3c")][Cc("0x4c")].focus()}));const i=new e.Collection,x=[{type:Cc("0x47"),model:{withText:!0,label:r,commandName:"trackChanges"}},{type:"separator"},{type:"button",model:{withText:!0,label:Yo(t,"Accept all suggestions"),commandName:Cc("0x5")}},{type:Cc("0x67"),model:{withText:!0,label:Yo(t,"Accept all selected suggestions"),commandName:Cc("0x3d")}},{type:"button",model:{withText:!0,label:Yo(t,Cc("0x2f")),commandName:"discardAllSuggestions"}},{type:Cc("0x67"),model:{withText:!0,label:Yo(t,"Discard all selected suggestions"),commandName:"discardSelectedSuggestions"}}];for(const t of x){let e={type:Cc("0x39")};if(t.model){const n=new s.Model(t.model),o=this.editor[Cc("0xa")].get(n[Cc("0x11")]);n[Cc("0x38")](Cc("0xd"),Cc("0x69")).to(o,Cc("0x1a"),"isEnabled"),e={type:t[Cc("0x5c")],model:n}}i[Cc("0x6a")](e)}(0,s.addListToDropdown)(n,i);const a=x[Cc("0xb")]((t=>null!=t[Cc("0x30")])).map((t=>this[Cc("0x26")][Cc("0xa")].get(t[Cc("0x30")][Cc("0x11")]))),c=n[Cc("0x2b")];return c[Cc("0x63")][Cc("0x46")](Cc("0x69")),c[Cc("0x42")][Cc("0x46")](Cc("0x69")),c[Cc("0x63")].bind(Cc("0x69")).to(o,Cc("0x69")),c[Cc("0x42")][Cc("0x38")](Cc("0x69")).toMany(a,Cc("0x69"),((...t)=>t[Cc("0xc")]((t=>t)))),n.on(Cc("0x3a"),(t=>{this[Cc("0x26")][Cc("0x3a")](t[Cc("0x3e")][Cc("0x11")]),this[Cc("0x26")][Cc("0x3c")][Cc("0x4c")][Cc("0x58")]()})),n}[Cc("0x2")](t){const e=this.editor,n=e.config,o=e[Cc("0x2d")][Cc("0x41")](Cc("0x10")),s=e[Cc("0x2d")][Cc("0x41")](Cc("0x51")),i=e[Cc("0x2d")].get(Cc("0x48")),x=e.plugins[Cc("0x41")](r.Users).me,a=n[Cc("0x41")]("trackChanges")[Cc("0x0")],{CommentsListView:c,CommentThreadInputView:l}=e.plugins.get(Cc("0x27"));let u,d;this[Cc("0x4d")][Cc("0x17")](t.id)?(d=this[Cc("0x4d")].get(t.id),u=d[Cc("0x3f")]):(u=new a(e[Cc("0x49")],t,x,{disableComments:this._disableComments,editorConfig:n[Cc("0x41")](Cc("0x56")),maxCommentsWhenCollapsed:n[Cc("0x41")]("comments.maxCommentsWhenCollapsed"),maxThreadTotalWeight:n.get("comments.maxThreadTotalWeight"),maxCommentCharsWhenCollapsed:n[Cc("0x41")](Cc("0x43")),formatDateTime:(0,r.getDateTimeFormatter)(n[Cc("0x41")](Cc("0x49"))),CommentView:n[Cc("0x41")]("comments")[Cc("0x15")],CommentsListView:c,CommentThreadInputView:l}),u[Cc("0x2e")].on(Cc("0x3a"),(()=>{e[Cc("0x3c")][Cc("0x4c")][Cc("0x58")]()})),u[Cc("0x7")].on(Cc("0x3a"),(()=>{e.editing[Cc("0x4c")][Cc("0x58")]()})),d=o[Cc("0x44")](this.editor[Cc("0x49")],u),d[Cc("0x38")](Cc("0x35")).to(u,Cc("0x35")),d[Cc("0x38")](Cc("0x37")).to(u),d[Cc("0x38")](Cc("0x5c")).to(u,Cc("0x5c"),(t=>Cc("0x64")+t)),this[Cc("0x4d")][Cc("0x36")](t.id,d));const g=s.createCommentThreadController(t[Cc("0x5b")],u),m=new ic(e,t,u,g),f=t[Cc("0x28")]().filter((t=>t.isInContent));u.descriptionParts=e[Cc("0x2d")][Cc("0x41")](Cc("0x8"))._descriptionFactory[Cc("0x45")](f),this[Cc("0x22")][Cc("0x36")](t,m),this[Cc("0x13")].set(u,m);const h=o[Cc("0x33")]({view:d,target:()=>{const n=[],o=t[Cc("0x28")]()[Cc("0xb")]((t=>t.isInContent));for(const t of o)n[Cc("0x12")](...t[Cc("0x9")]());return(0,r.getAllMarkersDomElementsSorted)(e[Cc("0x3c")],n)},type:()=>Cc("0x64")+m.view[Cc("0x5c")]});s[Cc("0x1e")](u,h),o[Cc("0x6a")](h),i.registerAnnotation(h)}[Cc("0x1f")](t){const e=this[Cc("0x26")].plugins[Cc("0x41")]("Annotations"),n=this._suggestionToController[Cc("0x41")](t),o=n[Cc("0x4c")],s=e[Cc("0x14")](o);s&&e.remove(s),this._suggestionToController[Cc("0x57")](t),this[Cc("0x13")][Cc("0x57")](o),n[Cc("0x18")]()}[Cc("0x4f")](t){if(!t[Cc("0x1c")]||!this._suggestionToController.has(t))return;const e=this[Cc("0x26")].plugins.get("TrackChangesEditing"),n=this._suggestionToController[Cc("0x41")](t),o=t[Cc("0x28")]();n.view[Cc("0x31")]=e[Cc("0x62")].getDescriptions(o)}[Cc("0x18")](){for(const t of this[Cc("0x22")][Cc("0x3")]())this[Cc("0x1f")](t);for(const t of this[Cc("0x4d")][Cc("0x61")]())t[Cc("0x3f")][Cc("0x18")]();super[Cc("0x18")]()}}var kc,Ac,vc=["getSuggestions","getSuggestion","editor","Comments","addSuggestionData","adapter","addSuggestion","pluginName","plugins","get"];kc=vc,Ac=213,function(t){for(;--t;)kc.push(kc.shift())}(++Ac);var Rc=function(t,e){return vc[t-=0]};class Sc extends t.Plugin{static get requires(){return[za,yc,Rc("0x0")]}static get[Rc("0x4")](){return"TrackChanges"}set[Rc("0x2")](t){this[Rc("0x9")][Rc("0x5")][Rc("0x6")](za)[Rc("0x2")]=t}get[Rc("0x2")](){return this[Rc("0x9")][Rc("0x5")][Rc("0x6")](za)[Rc("0x2")]}[Rc("0x3")](t){return this[Rc("0x9")].plugins[Rc("0x6")](za)[Rc("0x1")](t)}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){return this.editor[Rc("0x5")][Rc("0x6")](za)[Rc("0x7")]({skipNotAttached:t,toJSON:e})}[Rc("0x8")](t){return this[Rc("0x9")][Rc("0x5")][Rc("0x6")](za)[Rc("0x8")](t)}}const Ic=["getFullData","track-changes-data-invalid-editor-creator","useAnonymousUser","trackChangesData","map","end","init","Users","editorCreator","define","addUser","model","Pagination","requires","getDataWithAcceptedSuggestions","reduce","_adapter","addSuggestionData","destroy","TrackChangesDataGetter","getRootsAttributes","CommentsRepository","plugins","create","div","document","createElement","result","config","function","rootsAttributes","get","getSuggestions","TrackChangesData","TrackChangesEditing","pluginName","appendChild","getRootNames","trackChangesData.editorCreator","editor","data","set"];var Lc,Nc;Lc=Ic,Nc=419,function(t){for(;--t;)Lc.push(Lc.shift())}(++Nc);const Mc=function(t,e){return Ic[t-=0]},wc=[Mc("0xd")];class Oc extends t.Plugin{static get[Mc("0xe")](){return[za]}static get[Mc("0x24")](){return Mc("0x22")}[Mc("0x7")](){const t=this.editor;if(t[Mc("0x1d")][Mc("0xa")](Mc("0x27"),(e=>{const n=t.model[Mc("0x1a")][Mc("0x26")]()[Mc("0x10")](((t,e)=>(t[e]="",t)),{});return t.constructor[Mc("0x18")](n,e)})),Mc("0x1e")!=typeof t.config[Mc("0x20")](Mc("0x4"))[Mc("0x9")])throw new e.CKEditorError(Mc("0x2"))}[Mc("0xf")](t){return Pc(this.editor,!0,t)}getDataWithDiscardedSuggestions(t){return Pc(this[Mc("0x28")],!1,t)}}class Fc extends t.Plugin{static get[Mc("0x24")](){return Mc("0x14")}constructor(t){super(t),this[Mc("0x1c")]=Mc("0x6")}init(){this[Mc("0x28")][Mc("0x17")][Mc("0x20")](Mc("0x16"))[Mc("0x11")]={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this[Mc("0x28")].plugins[Mc("0x20")](Mc("0x23"))[Mc("0x11")]=null}}function Dc(t){return void 0!==t[Mc("0x15")]}async function Pc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,wc);o[Mc("0x17")].push(za,Fc),o[Mc("0x1f")]=Dc(t)?t.getRootsAttributes():void 0;const s=document.createDocumentFragment(),i=t[Mc("0x1d")][Mc("0x20")](Mc("0x4"))[Mc("0x9")],x=await i(o,(()=>function(t){const e=document[Mc("0x1b")](Mc("0x19"));return t[Mc("0x25")](e),e}(s)));!function(t,e){const n=t[Mc("0xc")][Mc("0x1a")].getRootNames().reduce(((e,n)=>(e[n]=t.data[Mc("0x20")]({rootName:n}),e)),{}),o=t.plugins.get(Mc("0x8")).users[Mc("0x5")]((t=>({id:t.id,name:t.name}))),s=t[Mc("0x17")][Mc("0x20")]("TrackChangesEditing")[Mc("0x21")]({skipNotAttached:!0,toJSON:!0}),r=e[Mc("0x17")][Mc("0x20")](Mc("0x8")),i=e.plugins[Mc("0x20")](Mc("0x23"));for(const t of o)r.getUser(t.id)||r[Mc("0xb")](t);r.me||r[Mc("0x3")]();for(const t of s)i[Mc("0x12")](t);e.data[Mc("0x0")](n)}(t,x),x.execute(e?"acceptAllSuggestions":"discardAllSuggestions");const a=Dc(x)?x[Mc("0x1")](n):x[Mc("0x29")].get(n);return await x[Mc("0x13")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();