@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231219.0 → 0.0.0-nightly-20231220.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 (66) 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/aiassistant.js +1 -1
  9. package/src/integrations/alignment.js +1 -1
  10. package/src/integrations/basicstyles.js +1 -1
  11. package/src/integrations/blockquote.js +1 -1
  12. package/src/integrations/ckbox.js +1 -1
  13. package/src/integrations/codeblock.js +1 -1
  14. package/src/integrations/comments.js +1 -1
  15. package/src/integrations/deletecommand.js +1 -1
  16. package/src/integrations/documentlist.js +1 -1
  17. package/src/integrations/documentlistproperties.js +1 -1
  18. package/src/integrations/entercommand.js +1 -1
  19. package/src/integrations/findandreplace.js +1 -1
  20. package/src/integrations/font.js +1 -1
  21. package/src/integrations/formatpainter.js +1 -1
  22. package/src/integrations/heading.js +1 -1
  23. package/src/integrations/highlight.js +1 -1
  24. package/src/integrations/horizontalline.js +1 -1
  25. package/src/integrations/htmlembed.js +1 -1
  26. package/src/integrations/image.js +1 -1
  27. package/src/integrations/imagereplace.js +1 -1
  28. package/src/integrations/imagestyle.js +1 -1
  29. package/src/integrations/importword.js +1 -1
  30. package/src/integrations/indent.js +1 -1
  31. package/src/integrations/inputcommand.js +1 -1
  32. package/src/integrations/link.js +1 -1
  33. package/src/integrations/list.js +1 -1
  34. package/src/integrations/listproperties.js +1 -1
  35. package/src/integrations/mediaembed.js +1 -1
  36. package/src/integrations/mention.js +1 -1
  37. package/src/integrations/pagebreak.js +1 -1
  38. package/src/integrations/paragraph.js +1 -1
  39. package/src/integrations/removeformat.js +1 -1
  40. package/src/integrations/restrictededitingmode.js +1 -1
  41. package/src/integrations/shiftentercommand.js +1 -1
  42. package/src/integrations/standardeditingmode.js +1 -1
  43. package/src/integrations/style.js +1 -1
  44. package/src/integrations/table.js +1 -1
  45. package/src/integrations/tablecaption.js +1 -1
  46. package/src/integrations/tableclipboard.js +1 -1
  47. package/src/integrations/tablecolumnresize.js +1 -1
  48. package/src/integrations/tableheadings.js +1 -1
  49. package/src/integrations/tablemergesplit.js +1 -1
  50. package/src/integrations/tableofcontents.js +1 -1
  51. package/src/integrations/tableproperties.js +1 -1
  52. package/src/integrations/template.js +1 -1
  53. package/src/integrations/title.js +1 -1
  54. package/src/integrations/undo.js +1 -1
  55. package/src/integrations/utils.js +1 -1
  56. package/src/suggestion.js +1 -1
  57. package/src/suggestiondescriptionfactory.js +1 -1
  58. package/src/trackchanges.js +1 -1
  59. package/src/trackchangesdata.js +1 -1
  60. package/src/trackchangesediting.js +1 -1
  61. package/src/trackchangesui.js +1 -1
  62. package/src/ui/suggestioncontroller.js +1 -1
  63. package/src/ui/view/basesuggestionthreadview.js +1 -1
  64. package/src/ui/view/suggestionthreadview.js +1 -1
  65. package/src/utils/common-translations.js +1 -1
  66. 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 i=e[o];if(void 0!==i)return i.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:()=>Pc,TrackChanges:()=>el,TrackChangesData:()=>xl,TrackChangesEditing:()=>hc});var t=n(704),e=n(209),i=n(273),r=n(417),s=n(492),x=n(995);const a=["_disableUnsupportedCommands","commands","_enableCommands","forceDisabled","value","clearForceDisabled","affectsData","execute","editor","refresh","_enabledCommands","has","_isEnabledBasedOnSelection"];var c,l;c=a,l=240,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this[u("0x4")]=e,this.value=!1,this[u("0x3")](),this[u("0x6")]=!1}[u("0x3")](){this.isEnabled=!0}[u("0x1")](){this[u("0xb")]=!this[u("0xb")],this.value?this[u("0x7")]():this[u("0x9")]()}_disableUnsupportedCommands(){for(const t of this[u("0x2")][u("0x8")][u("0x8")]())t[u("0x0")]&&!this._enabledCommands[u("0x5")](t)&&t[u("0xa")]("TrackChangesCommand")}_enableCommands(){for(const t of this[u("0x2")][u("0x8")].commands())t.affectsData&&!this[u("0x4")].has(t)&&t[u("0xc")]("TrackChangesCommand")}}const g=["TrackChangesEditing","getRanges","canEditAt","get","editor","refresh","plugins","track-changes-accept-suggestion-not-found","_suggestions","acceptSuggestion","isEnabled"];var f,m;f=g,m=229,function(t){for(;--t;)f.push(f.shift())}(++m);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this._suggestions=e,this[h("0x7")](),this._isEnabledBasedOnSelection=!1}[h("0x7")](){this[h("0x1")]=!0}execute(t){const n=this[h("0xa")].get(t);if(!n)throw new e.CKEditorError(h("0x9"),this);const o=n[h("0x3")]();this[h("0x6")].model[h("0x4")](o)&&this[h("0x6")][h("0x8")][h("0x5")](h("0x2"))[h("0x0")](n)}}const b=["plugins","_isEnabledBasedOnSelection","_suggestions","model","TrackChangesEditing","getRanges","track-changes-discard-suggestion-not-found","isEnabled","get","editor","discardSuggestion","refresh","execute"];var E,_;E=b,_=298,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class y extends t.Command{constructor(t,e){super(t),this[T("0x3")]=e,this[T("0xc")](),this[T("0x2")]=!1}[T("0xc")](){this[T("0x8")]=!0}[T("0x0")](t){const n=this[T("0x3")][T("0x9")](t);if(!n)throw new e.CKEditorError(T("0x7"),this);const o=n[T("0x6")]();this[T("0xa")][T("0x4")].canEditAt(o)&&this.editor[T("0x1")].get(T("0x5"))[T("0xb")](n)}}const C=["isInContent","end","deletion","map","execute","length","isArray","type","isCollapsed","isTouching","join","isObject","createPositionAt"," [color ","replace","createPositionBefore","content","start","value","createPositionAfter","add","isMultiRange","change","push","splice","getRanges","color","from","schema"];var A,k;A=C,k=222,function(t){for(;--t;)A.push(A.shift())}(++k);const I=function(t,e){return C[t-=0]};function R(t){return t.sort(((t,e)=>I("0xc")==t[I("0x11")]&&I("0xc")!=e[I("0x11")]?-1:I("0xc")!=t[I("0x11")]&&I("0xc")==e.type?1:0))}function S(t,e){let n,o=0;const i=[],r=e[I("0x9")];for(;o<t.length;){const s=t[o],x=t[o+1];n||(n=e[I("0x19")](s)),v(e,s,x)||(i[I("0x4")](e.createRange(n,r[I("0x15")](s)?e[I("0x0")](s):e[I("0x16")](s,I("0xb")))),n=null),o++}return i}function v(t,e,n){if(!n)return!1;const o=t[I("0x0")](e),i=t[I("0x19")](n);return o[I("0x13")](i)}function N(t,e,n){for(;n[I("0xf")];){const o=n[I("0x5")](0,100);t[I("0x3")]((()=>{for(const t of o)t[I("0xa")]&&e[I("0xe")](t.id)}))}}const L=["isInContent","values","canEditAt","_isEnabledBasedOnSelection","isEnabled","_command","_suggestions","execute","some","refresh","editor","from","model"];var M,w;M=L,w=246,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return L[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this._command=e,this[O("0x7")]=n,this[O("0xa")](),this[O("0x4")]=!1}[O("0xa")](){const t=Array[O("0xc")](this[O("0x7")][O("0x2")]())[O("0x9")]((t=>t[O("0x1")]));this.isEnabled=this[O("0x6")][O("0x5")]&&t}[O("0x8")](){const t=R(Array[O("0xc")](this._suggestions[O("0x2")]()));for(const e of t){const t=e.getRanges();if(!this[O("0xb")][O("0x0")][O("0x3")](t))return}N(this[O("0xb")][O("0x0")],this[O("0x6")],t)}}const D=["isEnabled","getRanges","_selectedSuggestions","model","from","_suggestions","refresh","_isEnabledBasedOnSelection","canEditAt","execute","document","selection","editor","_command","size"];var B,P;B=D,P=271,function(t){for(;--t;)B.push(B.shift())}(++P);const U=function(t,e){return D[t-=0]};class j extends t.Command{constructor(t,e,n){super(t),this[U("0xc")]=e,this[U("0x4")]=n,this[U("0x1")]=new Set,this[U("0x5")](),this[U("0x6")]=!1}[U("0x5")](){const t=this[U("0xb")][U("0x2")][U("0x9")][U("0xa")],e=Array[U("0x3")](this[U("0x4")].values());this._selectedSuggestions=function(t,e){const n=Array[I("0x8")](t.getRanges()),o=new Set;for(const i of e)if(i[I("0xa")])for(const e of n)for(const n of i[I("0x6")]())(e.isIntersecting(n)||t[I("0x12")]&&!i[I("0x2")]&&i.next&&n[I("0xb")][I("0x13")](e[I("0x1b")]))&&o[I("0x1")](i);return o}(t,e),this[U("0xe")]=this[U("0xc")][U("0xe")]&&!!this[U("0x1")][U("0xd")]}[U("0x8")](){const t=R(Array[U("0x3")](this[U("0x1")]));for(const e of t){const t=e[U("0x0")]();if(!this[U("0xb")][U("0x2")][U("0x7")](t))return}N(this.editor[U("0x2")],this[U("0xc")],t)}}const G=function(){this.__data__=[],this.size=0};const V=function(t,e){return t===e||t!=t&&e!=e};const H=function(t,e){for(var n=t.length;n--;)if(V(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const W=function(t){var e=this.__data__,n=H(e,t);return!(n<0)&&(n==e.length-1?e.pop():z.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=H(e,t);return n<0?void 0:e[n][1]};const q=function(t){return H(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=H(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=W,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const Z=$;const Y=function(){this.__data__=new Z,this.size=0};const J=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Q=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const it=ot.Symbol;var rt=Object.prototype,st=rt.hasOwnProperty,xt=rt.toString,at=it?it.toStringTag:void 0;const ct=function(t){var e=st.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var i=xt.call(t);return o&&(e?t[at]=n:delete t[at]),i};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=it?it.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const ft=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const mt=function(t){if(!ft(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var yt=/^\[object .+?Constructor\]$/,Ct=Function.prototype,At=Object.prototype,kt=Ct.toString,It=At.hasOwnProperty,Rt=RegExp("^"+kt.call(It).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!ft(t)||Et(t))&&(mt(t)?Rt:yt).test(Tt(t))};const vt=function(t,e){return null==t?void 0:t[e]};const Nt=function(t,e){var n=vt(t,e);return St(n)?n:void 0};const Lt=Nt(ot,"Map");const Mt=Nt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Dt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Bt=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Bt.call(e,t)};const Ut=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function jt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}jt.prototype.clear=wt,jt.prototype.delete=Ot,jt.prototype.get=Dt,jt.prototype.has=Pt,jt.prototype.set=Ut;const Gt=jt;const Vt=function(){this.size=0,this.__data__={hash:new Gt,map:new(Lt||Z),string:new Gt}};const Ht=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const zt=function(t,e){var n=t.__data__;return Ht(e)?n["string"==typeof e?"string":"hash"]:n.map};const Wt=function(t){var e=zt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return zt(this,t).get(t)};const qt=function(t){return zt(this,t).has(t)};const Xt=function(t,e){var n=zt(this,t),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=Vt,$t.prototype.delete=Wt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Zt=$t;const Yt=function(t,e){var n=this.__data__;if(n instanceof Z){var o=n.__data__;if(!Lt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Zt(o)}return n.set(t,e),this.size=n.size,this};function Jt(t){var e=this.__data__=new Z(t);this.size=e.size}Jt.prototype.clear=Y,Jt.prototype.delete=J,Jt.prototype.get=Q,Jt.prototype.has=tt,Jt.prototype.set=Yt;const Qt=Jt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Nt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const ie=function(t,e,n){var o=t[e];oe.call(t,e)&&V(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var i=!n;n||(n={});for(var r=-1,s=e.length;++r<s;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),i?ne(n,x,a):ie(n,x,a)}return n};const se=function(t,e){for(var n=-1,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 fe=function(){return!1};var me="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=me&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===me?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||fe;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var ye={};ye["[object Float32Array]"]=ye["[object Float64Array]"]=ye["[object Int8Array]"]=ye["[object Int16Array]"]=ye["[object Int32Array]"]=ye["[object Uint8Array]"]=ye["[object Uint8ClampedArray]"]=ye["[object Uint16Array]"]=ye["[object Uint32Array]"]=!0,ye["[object Arguments]"]=ye["[object Array]"]=ye["[object ArrayBuffer]"]=ye["[object Boolean]"]=ye["[object DataView]"]=ye["[object Date]"]=ye["[object Error]"]=ye["[object Function]"]=ye["[object Map]"]=ye["[object Number]"]=ye["[object Object]"]=ye["[object RegExp]"]=ye["[object Set]"]=ye["[object String]"]=ye["[object WeakMap]"]=!1;const Ce=function(t){return xe(t)&&Te(t.length)&&!!ye[gt(t)]};const Ae=function(t){return function(e){return t(e)}};var ke="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ie=ke&&"object"==typeof module&&module&&!module.nodeType&&module,Re=Ie&&Ie.exports===ke&&et.process;const Se=function(){try{var t=Ie&&Ie.require&&Ie.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var ve=Se&&Se.isTypedArray;const Ne=ve?Ae(ve):Ce;var Le=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&de(t),i=!n&&!o&&be(t),r=!n&&!o&&!i&&Ne(t),s=n||o||i||r,x=s?se(t.length,String):[],a=x.length;for(var c in t)!e&&!Le.call(t,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||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 Be=Object.prototype.hasOwnProperty;const Pe=function(t){if(!Oe(t))return De(t);var e=[];for(var n in Object(t))Be.call(t,n)&&"constructor"!=n&&e.push(n);return e};const Ue=function(t){return null!=t&&Te(t.length)&&!mt(t)};const je=function(t){return Ue(t)?Me(t):Pe(t)};const Ge=function(t,e){return t&&re(e,je(e),t)};const Ve=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var He=Object.prototype.hasOwnProperty;const ze=function(t){if(!ft(t))return Ve(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&He.call(t,o))&&n.push(o);return n};const We=function(t){return Ue(t)?Me(t,!0):ze(t)};const Ke=function(t,e){return t&&re(e,We(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Ze=$e?$e.allocUnsafe:void 0;const Ye=function(t,e){if(e)return t.slice();var n=t.length,o=Ze?Ze(n):new t.constructor(n);return t.copy(o),o};const Je=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Qe=function(t,e){for(var n=-1,o=null==t?0:t.length,i=0,r=[];++n<o;){var s=t[n];e(s,n,t)&&(r[i++]=s)}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),Qe(nn(t),(function(e){return en.call(t,e)})))}:tn;const rn=function(t,e){return re(t,on(t),e)};const sn=function(t,e){for(var n=-1,o=e.length,i=t.length;++n<o;)t[i+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)sn(e,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:sn(o,n(t))};const un=function(t){return ln(t,je,on)};const dn=function(t){return ln(t,We,an)};const gn=Nt(ot,"DataView");const fn=Nt(ot,"Promise");const mn=Nt(ot,"Set");const hn=Nt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",yn=Tt(gn),Cn=Tt(Lt),An=Tt(fn),kn=Tt(mn),In=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Lt&&Rn(new Lt)!=pn||fn&&Rn(fn.resolve())!=bn||mn&&Rn(new mn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case yn:return Tn;case Cn:return pn;case An:return bn;case kn:return En;case In:return _n}return e});const Sn=Rn;var vn=Object.prototype.hasOwnProperty;const Nn=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&vn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Ln=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Ln(e).set(new Ln(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Dn=it?it.prototype:void 0,Bn=Dn?Dn.valueOf:void 0;const Pn=function(t){return Bn?Object(Bn.call(t)):{}};const Un=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const jn=function(t,e,n){var 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 Un(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 Pn(t)}};var Gn=Object.create;const Vn=function(){function t(){}return function(e){if(!ft(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Hn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Vn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Wn=Se&&Se.isMap;const Kn=Wn?Ae(Wn):zn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?Ae(Xn):qn;var Zn="[object Arguments]",Yn="[object Function]",Jn="[object Object]",Qn={};Qn[Zn]=Qn["[object Array]"]=Qn["[object ArrayBuffer]"]=Qn["[object DataView]"]=Qn["[object Boolean]"]=Qn["[object Date]"]=Qn["[object Float32Array]"]=Qn["[object Float64Array]"]=Qn["[object Int8Array]"]=Qn["[object Int16Array]"]=Qn["[object Int32Array]"]=Qn["[object Map]"]=Qn["[object Number]"]=Qn[Jn]=Qn["[object RegExp]"]=Qn["[object Set]"]=Qn["[object String]"]=Qn["[object Symbol]"]=Qn["[object Uint8Array]"]=Qn["[object Uint8ClampedArray]"]=Qn["[object Uint16Array]"]=Qn["[object Uint32Array]"]=!0,Qn["[object Error]"]=Qn[Yn]=Qn["[object WeakMap]"]=!1;const to=function t(e,n,o,i,r,s){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,i,r,s):o(e)),void 0!==x)return x;if(!ft(e))return e;var u=ge(e);if(u){if(x=Nn(e),!a)return Je(e,x)}else{var d=Sn(e),g=d==Yn||"[object GeneratorFunction]"==d;if(be(e))return Ye(e,a);if(d==Jn||d==Zn||g&&!r){if(x=c||g?{}:Hn(e),!a)return c?cn(e,Ke(x,e)):rn(e,Ge(x,e))}else{if(!Qn[d])return r?e:{};x=jn(e,d,a)}}s||(s=new Qt);var f=s.get(e);if(f)return f;s.set(e,x),$n(e)?e.forEach((function(i){x.add(t(i,n,o,i,e,s))})):Kn(e)&&e.forEach((function(i,r){x.set(r,t(i,n,o,r,e,s))}));var m=u?void 0:(l?c?dn:un:c?We:je)(e);return te(m||e,(function(i,r){m&&(i=e[r=i]),ie(x,r,t(i,n,o,r,e,s))})),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)\]/,io=/^\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))||(io.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function so(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,i=e?e.apply(this,o):o[0],r=n.cache;if(r.has(i))return r.get(i);var s=t.apply(this,o);return n.cache=r.set(i,s)||r,s};return n.cache=new(so.Cache||Zt),n}so.Cache=Zt;const xo=so;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,i){e.push(o?i.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,i=Array(o);++n<o;)i[n]=e(t[n],n,t);return i};var go=it?it.prototype:void 0,fo=go?go.toString:void 0;const mo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return fo?fo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":mo(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(!ft(t))return t;for(var i=-1,r=(e=po(e,t)).length,s=r-1,x=t;null!=x&&++i<r;){var a=bo(e[i]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(i!=s){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=ft(l)?l:_e(e[i+1])?[]:{})}ie(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const yo=function(t){return this.__data__.has(t)};function Co(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Zt;++e<n;)this.add(t[e])}Co.prototype.add=Co.prototype.push=To,Co.prototype.has=yo;const Ao=Co;const ko=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 Io=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,i,r){var s=1&n,x=t.length,a=e.length;if(x!=a&&!(s&&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 Ao:void 0;for(r.set(t,e),r.set(e,t);++u<x;){var f=t[u],m=e[u];if(o)var h=s?o(m,f,u,e,t,r):o(f,m,u,t,e,r);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!ko(e,(function(t,e){if(!Io(g,e)&&(f===t||i(f,t,n,o,r)))return g.push(e)}))){d=!1;break}}else if(f!==m&&!i(f,m,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 vo=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var No=it?it.prototype:void 0,Lo=No?No.valueOf:void 0;const Mo=function(t,e,n,o,i,r,s){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Ln(t),new Ln(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return V(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=So;case"[object Set]":var a=1&o;if(x||(x=vo),t.size!=e.size&&!a)return!1;var c=s.get(t);if(c)return c==e;o|=2,s.set(t,e);var l=Ro(x(t),x(e),o,i,r,s);return s.delete(t),l;case"[object Symbol]":if(Lo)return Lo.call(t)==Lo.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,i,r){var s=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!s)return!1;for(var c=a;c--;){var l=x[c];if(!(s?l in e: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 f=s;++c<a;){var m=t[l=x[c]],h=e[l];if(o)var p=s?o(h,m,l,e,t,r):o(m,h,l,t,e,r);if(!(void 0===p?m===h||i(m,h,n,o,r):p)){g=!1;break}f||(f="constructor"==l)}if(g&&!f){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Do="[object Array]",Bo="[object Object]",Po=Object.prototype.hasOwnProperty;const Uo=function(t,e,n,o,i,r){var s=ge(t),x=ge(e),a=s?Do:Sn(t),c=x?Do:Sn(e),l=(a=a==Fo?Bo:a)==Bo,u=(c=c==Fo?Bo:c)==Bo,d=a==c;if(d&&be(t)){if(!be(e))return!1;s=!0,l=!1}if(d&&!l)return r||(r=new Qt),s||Ne(t)?Ro(t,e,n,o,i,r):Mo(t,e,a,n,o,i,r);if(!(1&n)){var g=l&&Po.call(t,"__wrapped__"),f=u&&Po.call(e,"__wrapped__");if(g||f){var m=g?t.value():t,h=f?e.value():e;return r||(r=new Qt),i(m,h,n,o,r)}}return!!d&&(r||(r=new Qt),Oo(t,e,n,o,i,r))};const jo=function t(e,n,o,i,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:Uo(e,n,o,i,t,r))};const Go=function(t,e){return jo(t,e)};const Vo=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Ho=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const zo=function(t,e,n){var o=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(i);++o<i;)r[o]=t[o+e];return r};const Wo=function(t,e){return e.length<2?t:Ho(t,zo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Wo(t,e))||delete t[bo(Vo(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["_isDataLoaded","data","attributes","markers","next","getMarkers","map","hasComments","subType","_onAccept","removeAttribute","change","set","clear","removeMarkers","getFirstMarker","from","author","filter","split","createdAt","substr","_model","nodeAfter","nodeBefore","isIntersecting","length","addMarkerName","getRange","push","toJSON","end","removeMarker","addMarker","_onAttributesChange","commentThread","getMarkerNames","_markerNames","creator","isExternal","isIntersectingWithRange","accept","get","@external","getFirstRange","getRanges","isMultiRange","getItems","head","authoredAt","previous","_saved","getMultiRangeId","discard","suggestion:","size","addRange","type"];var $o,Zo;$o=Xo,Zo=300,function(t){for(;--t;)$o.push($o.shift())}(++Zo);const Yo=function(t,e){return Xo[t-=0]};class Jo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Yo("0x30")]=!1,this.id=e.id,this.type=e.type,this[Yo("0x38")]=e[Yo("0x38")]||null,this[Yo("0x7")]=e[Yo("0x7")],this[Yo("0x1c")]=e[Yo("0x1c")]||e[Yo("0x7")],this[Yo("0x1d")]=Boolean(e[Yo("0x32")]&&e[Yo("0x32")][Yo("0x21")]),this[Yo("0x31")]=null,this[Yo("0xc")]=t,this._onAccept=e.onAccept,this._onDiscard=e.onDiscard,this[Yo("0x18")]=e.onAttributesChange,this[Yo("0x1b")]=new Set,this[Yo("0xa")]=null,this.set(Yo("0x27"),null),this[Yo("0x2")](Yo("0x32"),e[Yo("0x32")]||{}),this.set("previous",null),this.set("next",null),this[Yo("0x2")](Yo("0x19"),null),this.set(Yo("0x29"),!1),this.decorate("accept"),this.decorate("discard")}get[Yo("0x26")](){let t=this;for(;t[Yo("0x28")];)t=t.previous;return t}get[Yo("0x37")](){return!!this[Yo("0x19")]&&this[Yo("0x19")][Yo("0x10")]>0}get[Yo("0x24")](){return 0!=this[Yo("0x1b")][Yo("0x2d")]&&6==Array[Yo("0x6")](this[Yo("0x1b")])[0][Yo("0x9")](":")[Yo("0x10")]}get isInContent(){return null!==this[Yo("0x5")]()}[Yo("0x11")](t){this._markerNames.add(t)}getMarkerNames(){return Array[Yo("0x6")](this[Yo("0x1b")])}[Yo("0x35")](){return this[Yo("0x1a")]()[Yo("0x36")]((t=>this._model[Yo("0x33")][Yo("0x20")](t)))[Yo("0x8")]((t=>t))}getFirstMarker(){return this[Yo("0x35")]()[0]||null}[Yo("0x4")](){this[Yo("0xc")][Yo("0x1")]((t=>{for(const e of this[Yo("0x35")]())t[Yo("0x16")](e)})),this[Yo("0x1b")][Yo("0x3")]()}removeMarker(t){this[Yo("0xc")].change((e=>{e[Yo("0x16")](t)})),this._markerNames.delete(t)}[Yo("0x2e")](t){const e=Yo("0x2c")+this.type+":"+this[Yo("0x38")]+":"+this.id+":"+this[Yo("0x1c")].id+":"+Jo[Yo("0x2a")]();this[Yo("0x11")](e),this[Yo("0xc")][Yo("0x1")]((n=>{n[Yo("0x17")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Yo("0x1e")](t){for(const e of this[Yo("0x23")]())if(e[Yo("0xf")](t))return!0;return!1}getRanges(){return this[Yo("0x35")]()[Yo("0x36")]((t=>t[Yo("0x12")]()))}[Yo("0x25")](){return this[Yo("0x23")]().reduce(((t,e)=>[...t,...e[Yo("0x25")]()]),[])}[Yo("0x22")](){var t;return(null===(t=this[Yo("0x5")]())||void 0===t?void 0:t[Yo("0x12")]())||null}getContainedElement(){const t=this[Yo("0x23")]();if(1!=t[Yo("0x10")])return null;const e=t[0],n=e.start[Yo("0xd")],o=e[Yo("0x15")][Yo("0xe")];return n instanceof s.Element?n!=o?null:n:null}[Yo("0x1f")](){this[Yo("0x39")](this.getRanges(),this[Yo("0x31")],this.attributes),this[Yo("0x4")]()}[Yo("0x2b")](){this._onDiscard(this[Yo("0x23")](),this[Yo("0x31")],this[Yo("0x32")]),this[Yo("0x4")]()}getAllAdjacentSuggestions(){const t=[];let e=this[Yo("0x26")];for(;e;)t[Yo("0x13")](e),e=e[Yo("0x34")];return t}setAttribute(t,e){const n=eo(this[Yo("0x32")]);_o(n,t,e),Go(n,this.attributes)||(this.attributes=n,this[Yo("0x18")](n))}[Yo("0x0")](t){const e=eo(this[Yo("0x32")]);qo(e,t),Go(e,this.attributes)||(this[Yo("0x32")]=e,this._onAttributesChange(this[Yo("0x32")]))}[Yo("0x14")](){return{id:this.id,type:this[Yo("0x38")]?this[Yo("0x2f")]+":"+this.subType:this[Yo("0x2f")],authorId:this[Yo("0x1c")].id,createdAt:this[Yo("0xa")],hasComments:this[Yo("0x37")],data:this.data,attributes:this[Yo("0x32")]}}static[Yo("0x2a")](){return(0,e.uid)()[Yo("0xb")](1,5)}}function Qo(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"*Replace image URL*":return o("*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 format:* %0":return o("*Set format:* %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_DEFAULT":return o({string:"bulleted list (default)",id:"ELEMENT_BULLETED_LIST_DEFAULT"});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_DEFAULT":return o({string:"numbered list (default)",id:"ELEMENT_NUMBERED_LIST_DEFAULT"});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_ALIGNMENT":return o({string:"alignment",id:"FORMAT_ALIGNMENT"});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"FORMAT_INDENT":return o({string:"indent",id:"FORMAT_INDENT"});case"FORMAT_LIST_REVERSED":return o({string:"list reversed",id:"FORMAT_LIST_REVERSED"});case"FORMAT_LIST_START":return o({string:"list start",id:"FORMAT_LIST_START"});case"FORMAT_FONT_SIZE":return o({string:"font size",id:"FORMAT_FONT_SIZE"});case"FORMAT_FONT_FAMILY":return o({string:"font family",id:"FORMAT_FONT_FAMILY"});case"FORMAT_FONT_COLOR":return o({string:"font color",id:"FORMAT_FONT_COLOR"});case"FORMAT_FONT_BACKGROUND":return o({string:"font background color",id:"FORMAT_FONT_BACKGROUND"});case"FORMAT_IMAGE_SIZE":return o({string:"image size",id:"FORMAT_IMAGE_SIZE"});case"FORMAT_STYLE":return o({string:"style",id:"FORMAT_STYLE"});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);case"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering insertion suggestion.",id:"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving insertion suggestion.",id:"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering deletion suggestion.",id:"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving deletion suggestion.",id:"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering formatting suggestion.",id:"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving formatting suggestion.",id:"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT"});default:return e}}const ti=["elementEnd","add","name","softBreak","*Merge:* %0","_handleAttributeSuggestionDescription","getItemLabel","isEqual","_handleRenameSuggestionDescription","matchingCallback","addFormat","*Split:* %0","deletion","_customCallbacks","has","type","nodeAfter","remove","_locale","*Set format:* %0","key","*Remove:* %0","getDescriptions","_attributeLabels","element","attribute","data","Object","_addDescriptionItems","*Remove format:* %0","format","label","ELEMENT_SPACE","text","pop","replace","*Insert:* %0","isObject","Container","insertion","checkChild","addContainer","isEmpty","_schema","map","previousSibling","getWalker","push","length","get","REPLACE_TEXT","isInContent","set","subType","EmptyContainer","_itemLabels","removeObject","_handleCustomCallbackDescription","removeEmptyContainer","quantity","registerDescriptionCallback","match","start","addObject","nextSibling","item","_itemLabelsCallbacks","$1 $2","removeFormat","registerAttributeLabel","join","getFirstRange","indexOf","skip","registerElementLabel"];var ei,ni;ei=ti,ni=115,function(t){for(;--t;)ei.push(ei.shift())}(++ni);const oi=function(t,e){return ti[t-=0]};class ii{constructor(t,e){this[oi("0x30")]=[],this._itemLabels=new Map,this._itemLabelsCallbacks=[],this._attributeLabels=new Map,this._schema=t,this[oi("0x35")]=e}[oi("0x39")](t){const e=[],n=new Set,o=new Set;for(let i=0;i<t.length;i++){const r=t[i];if(!r[oi("0xb")])continue;const s=this[oi("0x11")](r);if(s){if(null!=r[oi("0xd")]){if(n.has(r.subType))continue;n[oi("0x24")](r[oi("0xd")])}e[oi("0x7")](s)}else if(oi("0x3c")!=r[oi("0x32")])"insertion"!=r[oi("0x32")]&&oi("0x2f")!=r[oi("0x32")]||this._handleInsertRemoveSuggestionDescription(e,r,t[i+1]);else{const t=r.data[oi("0x37")];if(o.has(t))continue;o[oi("0x24")](r[oi("0x3d")][oi("0x37")]),t==mc?this[oi("0x2b")](e,r):this[oi("0x28")](e,r)}}return this._resolveDescriptionItems(e)}[oi("0x14")](t){this[oi("0x30")][oi("0x7")](t)}[oi("0x22")](t,n,o=e.priorities.normal){"function"==typeof t?(0,e.insertToPriorityArray)(this[oi("0x1a")],{matchingCallback:t,label:n,priority:o}):this[oi("0xf")].set(t,n)}[oi("0x1d")](t,e){this._attributeLabels[oi("0xc")](t,e)}[oi("0x29")](t,e=1){let n;for(const e of this[oi("0x1a")])if(e[oi("0x2c")](t)){n=e[oi("0x42")];break}return n||(n=this._itemLabels[oi("0x9")](t.name)),n?n(e):1!==e?e+" "+t[oi("0x25")]+"s":""+t[oi("0x25")]}_addDescriptionItems(t,e){const n=e[oi("0x1f")]()[oi("0x6")](),o=oi("0x4a")==e[oi("0x32")]?oi("0x24"):oi("0x34");for(const e of n){const i=e[oi("0x19")],r=t[t[oi("0x8")]-1];if(i.is("$textProxy"))r&&r[oi("0x32")][oi("0x20")](oi("0x49"))>-1&&t[oi("0x45")](),r&&oi("0x44")==r[oi("0x32")]?r[o]+=i[oi("0x3d")]:t.push({type:"text",add:oi("0x24")==o?i[oi("0x3d")]:"",remove:oi("0x34")==o?i[oi("0x3d")]:""});else if(this[oi("0x3")][oi("0x48")](i)){const s=i;if(r&&r.type[oi("0x20")](oi("0x49"))>-1&&t[oi("0x45")](),oi("0x23")==e[oi("0x32")])continue;r&&r[oi("0x32")]==o+oi("0x3e")&&r.element[oi("0x25")]==s[oi("0x25")]?r[oi("0x13")]++:t[oi("0x7")]({type:o+oi("0x3e"),element:s,quantity:1}),n[oi("0x21")]((t=>!("elementEnd"==t[oi("0x32")]&&t[oi("0x19")]==i)))}else if(this[oi("0x3")][oi("0x0")](i,"$text")||i.is(oi("0x3b"),oi("0x26"))){const n=i;if(oi("0x24")==o&&"elementStart"==e.type||oi("0x34")==o&&oi("0x23")==e[oi("0x32")])continue;if(r&&-1==r[oi("0x32")][oi("0x20")](oi("0x49"))){oi("0x44")==r[oi("0x32")]&&(r[o]+="\n");continue}let s;if(s=oi("0x24")==o?n[oi("0x18")]&&!this[oi("0x3")].isObject(n[oi("0x18")])?n[oi("0x18")]:null:n.previousSibling&&!this[oi("0x3")][oi("0x48")](n[oi("0x5")])?n.previousSibling:null,n[oi("0x2")]||s&&s[oi("0x2")]){const e=s&&s[oi("0x2")]?s:n;r&&r.type==o+oi("0xe")&&r[oi("0x3b")][oi("0x25")]==e.name?r.quantity++:t[oi("0x7")]({type:o+oi("0xe"),element:e,quantity:1})}else t[oi("0x7")]({type:o+oi("0x49"),element:n})}}}_resolveDescriptionItems(t){const e=this[oi("0x35")],n=[],o=[],i=[];for(const r of t)switch(r[oi("0x32")]){case oi("0x44"):if(r[oi("0x24")]=r[oi("0x24")][oi("0x46")](/(\S)\u000A+(\S)/g,oi("0x1b")).replace(/\u000A/g,""),r[oi("0x34")]=r[oi("0x34")][oi("0x46")](/(\S)\u000A+(\S)/g,"$1 $2")[oi("0x46")](/\u000A/g,""),""!=r[oi("0x24")]&&""!=r[oi("0x34")]){n.push({type:oi("0x46"),content:Qo(e,oi("0xa"),['"'+r[oi("0x34")]+'"','"'+r[oi("0x24")]+'"'])});continue}if(null!=r[oi("0x24")][oi("0x15")](/^ +$/)){n.push({type:"insertion",content:Qo(e,oi("0x47"),Qo(e,oi("0x43"),r[oi("0x24")][oi("0x8")]))});continue}if(null!=r[oi("0x34")][oi("0x15")](/^ +$/)){n.push({type:oi("0x2f"),content:Qo(e,"*Remove:* %0",Qo(e,oi("0x43"),r[oi("0x34")][oi("0x8")]))});continue}if(""!=r[oi("0x24")]){n[oi("0x7")]({type:oi("0x4a"),content:Qo(e,"*Insert:* %0",'"'+r[oi("0x24")]+'"')});continue}n.push({type:oi("0x2f"),content:Qo(e,oi("0x38"),'"'+r.remove+'"')});continue;case"addEmptyContainer":case oi("0x17"):n.push({type:oi("0x4a"),content:Qo(e,"*Insert:* %0",this.getItemLabel(r.element,r[oi("0x13")]))});continue;case oi("0x12"):case oi("0x10"):n.push({type:"deletion",content:Qo(e,"*Remove:* %0",this[oi("0x29")](r[oi("0x3b")],r.quantity))});continue;case oi("0x1"):n[oi("0x7")]({type:"insertion",content:Qo(e,oi("0x2e"),this[oi("0x29")](r.element,r[oi("0x13")]))});continue;case"removeContainer":n[oi("0x7")]({type:oi("0x2f"),content:Qo(e,oi("0x27"),this[oi("0x29")](r[oi("0x3b")],r.quantity))});continue;case oi("0x2d"):o[oi("0x7")](r[oi("0x37")]);continue;case"removeFormat":i[oi("0x7")](r[oi("0x37")]);continue;default:n[oi("0x7")](r)}if(o[oi("0x8")]){const t=o[oi("0x4")]((t=>this[oi("0x3a")][oi("0x31")](t)?this._attributeLabels[oi("0x9")](t):t)).join(", ");n.push({type:oi("0x41"),content:Qo(this[oi("0x35")],oi("0x36"),t)})}if(i[oi("0x8")]){const t=i[oi("0x4")]((t=>this._attributeLabels[oi("0x31")](t)?this[oi("0x3a")][oi("0x9")](t):t))[oi("0x1e")](", ");n[oi("0x7")]({type:oi("0x41"),content:Qo(this[oi("0x35")],oi("0x40"),t)})}return n}_handleCustomCallbackDescription(t){for(const e of this[oi("0x30")]){const n=e(t);if(n&&"type"in n)return n}}_handleAttributeSuggestionDescription(t,e){const n=e.data,o=void 0===n.newValue?oi("0x1c"):oi("0x2d");t[oi("0x7")]({type:o,key:n.key})}_handleRenameSuggestionDescription(t,e){t.push({type:"format",content:Qo(this[oi("0x35")],"*Change to:* %0",this[oi("0x29")](e[oi("0x1f")]()[oi("0x16")][oi("0x33")],1))})}_handleInsertRemoveSuggestionDescription(t,e,n){if(this[oi("0x3f")](t,e),n&&n.getFirstRange()&&!e[oi("0x1f")]().end[oi("0x2a")](n[oi("0x1f")]()[oi("0x16")])){const n=t[t[oi("0x8")]-1],o=oi("0x4a")==e[oi("0x32")]?oi("0x24"):oi("0x34");n&&oi("0x44")==n[oi("0x32")]&&(n[o]+="\n")}}}const ri=["editor","afterInit","showAIAssistant","commands","enableCommand","get","plugins"];var si,xi;si=ri,xi=239,function(t){for(;--t;)si.push(si.shift())}(++xi);const ai=function(t,e){return ri[t-=0]};class ci extends t.Plugin{[ai("0x0")](){const t=this[ai("0x6")],e=t[ai("0x5")][ai("0x4")]("TrackChangesEditing");t[ai("0x2")][ai("0x4")](ai("0x1"))&&e[ai("0x3")](ai("0x1"))}}const li=["_descriptionFactory","type","FORMAT_ALIGN_TO_RIGHT","commandParams","get","FORMAT_ALIGNMENT","justify","registerAttributeLabel","editor","locale","value","afterInit","TrackChangesEditing","FORMAT_ALIGN_TO_CENTER","right","registerDescriptionCallback","AlignmentEditing","_enableDefaultAttributesIntegration","has","alignment","formatBlock","center","FORMAT_ALIGN_TO_LEFT","_registerLegacyDescription","format","plugins"];var ui,di;ui=li,di=350,function(t){for(;--t;)ui.push(ui.shift())}(++di);const gi=function(t,e){return li[t-=0]};class fi extends t.Plugin{[gi("0x19")](){const t=this.editor,e=t[gi("0x17")];if(!t[gi("0xd")][gi("0x6")](gi("0x4")))return;const n=t[gi("0xd")][gi("0x12")](gi("0x0"));n[gi("0x5")](gi("0x7"),[],[gi("0x7")]),n[gi("0xe")][gi("0x15")](gi("0x7"),Qo(e,gi("0x13"))),this[gi("0xb")]()}[gi("0xb")](){const t=this[gi("0x16")],e=t.locale;t[gi("0xd")][gi("0x12")](gi("0x0"))[gi("0xe")][gi("0x3")]((t=>{if(gi("0x8")!=t[gi("0xf")])return;const{data:n}=t;if(n&&gi("0x7")==n.commandName){const t=n[gi("0x11")][0][gi("0x18")];return{type:gi("0xc"),content:Qo(e,"*Format:* %0",function(t){switch(t){case"left":return Qo(e,gi("0xa"));case gi("0x2"):return Qo(e,gi("0x10"));case gi("0x9"):return Qo(e,gi("0x1"));case gi("0x14"):return Qo(e,"FORMAT_JUSTIFY_TEXT")}}(t))}}}))}}const mi=["format","afterInit","*Format:* %0","toUpperCase","plugins","locale","_descriptionFactory","type","code","_registerLegacyDescription","strikethrough","slice","superscript","commandName","italic","registerDescriptionCallback","commandParams","has","FORMAT_","*Remove format:* %0","CodeEditing","SubscriptEditing","formatInline","get","SuperscriptEditing","FORMAT_SUBSCRIPT","registerAttributeLabel","editor","FORMAT_STRIKETHROUGH","_enableDefaultAttributesIntegration","TrackChangesEditing","UnderlineEditing","underline","ItalicEditing","FORMAT_BOLD","FORMAT_ITALIC"];var hi,pi;hi=mi,pi=366,function(t){for(;--t;)hi.push(hi.shift())}(++pi);const bi=function(t,e){return mi[t-=0]},Ei=["BoldEditing",bi("0x1b"),bi("0x19"),bi("0xe"),"StrikethroughEditing",bi("0xf"),bi("0x12")];class _i extends t.Plugin{[bi("0x1f")](){const t=this.editor,e=t[bi("0x22")].get(bi("0x18")),n=t.locale;for(const o of Ei){if(!t.plugins[bi("0xb")](o))continue;const i=o[bi("0x5")](0,-7).toLowerCase(),r=bi("0xc")+i[bi("0x21")]();e[bi("0x17")](i,[i]),e[bi("0x0")][bi("0x14")](i,Qo(n,r))}this._registerLegacyDescription()}[bi("0x3")](){const t=this[bi("0x15")],e=t[bi("0x23")],n=t[bi("0x22")][bi("0x11")](bi("0x18"));function o(t,o){n[bi("0x0")][bi("0x9")]((n=>{if(bi("0x10")!=n[bi("0x1")])return;const{data:i}=n;return i&&i[bi("0x7")]===t?i[bi("0xa")][0].forceValue?{type:bi("0x1e"),content:Qo(e,bi("0x20"),o)}:{type:bi("0x1e"),content:Qo(e,bi("0xd"),o)}:void 0}))}o("bold",Qo(e,bi("0x1c"))),o(bi("0x8"),Qo(e,bi("0x1d"))),o(bi("0x1a"),Qo(e,"FORMAT_UNDERLINE")),o(bi("0x2"),Qo(e,"FORMAT_CODE")),o(bi("0x4"),Qo(e,bi("0x16"))),o("subscript",Qo(e,bi("0x13"))),o(bi("0x6"),Qo(e,"FORMAT_SUPERSCRIPT"))}}const Ti=["forceValue","plugins","commandName","has","get","markBlockFormat","BlockQuoteEditing","document","blockQuote","ELEMENT_BLOCK_QUOTE","parent","checkChild","*Set format:* %0","afterInit","*Remove format:* %0","filter","commands","TrackChangesEditing","getSelectedBlocks","from","name","selection","$root","commandParams","value","model","editor","enableCommand"];var yi,Ci;yi=Ti,Ci=230,function(t){for(;--t;)yi.push(yi.shift())}(++Ci);const Ai=function(t,e){return Ti[t-=0]};class ki extends t.Plugin{[Ai("0x7")](){const t=this[Ai("0x14")],e=t.locale;if(!t[Ai("0x17")][Ai("0x19")](Ai("0x0")))return;const n=t.plugins[Ai("0x1a")](Ai("0xb")),o=this[Ai("0x14")][Ai("0xa")][Ai("0x1a")]("blockQuote");n[Ai("0x15")](Ai("0x2"),((e,i={})=>{const r=this[Ai("0x14")][Ai("0x13")][Ai("0x1")][Ai("0xf")],s=i&&void 0!==i[Ai("0x16")]?i.forceValue:!o[Ai("0x12")];let x=[];if(s){const e=Array[Ai("0xd")](r.getSelectedBlocks())[Ai("0x9")]((t=>Ii(t)||function(t,e){const n=e.checkChild(t[Ai("0x4")],Ai("0x2")),o=e[Ai("0x5")]([Ai("0x10"),Ai("0x2")],t);return n&&o}(t,this[Ai("0x14")][Ai("0x13")].schema)));x=S(e,t[Ai("0x13")])}else{const e=Array[Ai("0xd")](r[Ai("0xc")]())[Ai("0x9")]((t=>Ii(t)));x=S(e,t.model)}t[Ai("0x13")].change((()=>{for(const t of x)n[Ai("0x1b")](t,{commandName:Ai("0x2"),commandParams:[{forceValue:s}]})}))})),n._descriptionFactory.registerDescriptionCallback((t=>{const{data:n}=t;if(n&&"blockQuote"==n[Ai("0x18")]){const t=Qo(e,Ai("0x3"));return n[Ai("0x11")][0][Ai("0x16")]?{type:"format",content:Qo(e,Ai("0x6"),t)}:{type:"format",content:Qo(e,Ai("0x8"),t)}}}))}}function Ii(t){return Ai("0x2")==t.parent[Ai("0xe")]}const Ri=["get","commands","editor","afterInit","ckbox","plugins"];var Si,vi;Si=Ri,vi=469,function(t){for(;--t;)Si.push(Si.shift())}(++vi);const Ni=function(t,e){return Ri[t-=0]};class Li extends t.Plugin{[Ni("0x2")](){const t=this[Ni("0x1")];t[Ni("0x0")][Ni("0x5")](Ni("0x3"))&&t[Ni("0x4")][Ni("0x5")]("TrackChangesEditing").enableCommand(Ni("0x3"))}}const Mi=["find","commandName","indentCodeBlock","formatBlock","commands","has","languages","toLowerCase","codeBlock","outdentCodeBlock","commandParams","language","change","filter","ELEMENT_CODE_BLOCK","checkChild","config","model","locale","label","TrackChangesEditing","plugins","from","selection","getSelectedBlocks","schema","get","registerDescriptionCallback","afterInit","isLimit","enableCommand","format","registerElementLabel","*Set format:* %0","markBlockFormat","forceValue"];var wi,Oi;wi=Mi,Oi=241,function(t){for(;--t;)wi.push(wi.shift())}(++Oi);const Fi=function(t,e){return Mi[t-=0]};class Di extends t.Plugin{[Fi("0x3")](){const t=this.editor;if(!t[Fi("0x20")][Fi("0x10")]("CodeBlock"))return;const e=t[Fi("0x20")].get(Fi("0x1f")),n=t[Fi("0x1d")],o=t[Fi("0x1b")][Fi("0x1")](Fi("0x13"))[Fi("0x11")],i=t[Fi("0xf")][Fi("0x1")](Fi("0x13"));e[Fi("0x5")](Fi("0xd")),e[Fi("0x5")](Fi("0x14")),e[Fi("0x5")](Fi("0x13"),((n,r={})=>{const s=t[Fi("0x1c")],x=t[Fi("0x1c")].document[Fi("0x22")],a=r&&void 0!==r[Fi("0xa")]?r[Fi("0xa")]:!i.value;let c;r[Fi("0x16")]||(r[Fi("0x16")]=o[0][Fi("0x16")]),c=a?Array[Fi("0x21")](x[Fi("0x23")]())[Fi("0x18")]((t=>{return Bi(t)||(e=t,n=s[Fi("0x0")],!e.is("rootElement")&&!n[Fi("0x4")](e)&&n[Fi("0x1a")](e.parent,"codeBlock"));var e,n})):Array[Fi("0x21")](x[Fi("0x23")]())[Fi("0x18")]((t=>Bi(t)));const l=S(c,s);s[Fi("0x17")]((()=>{for(const t of l)e[Fi("0x9")](t,{commandName:"codeBlock",commandParams:[{...r,forceValue:a}],formatGroupId:"blockName"})}))})),e._descriptionFactory[Fi("0x7")]("codeBlock",(t=>Qo(n,Fi("0x19"),t))),e._descriptionFactory[Fi("0x2")]((t=>{if(Fi("0xe")!=t.type)return;const e=n.t,{data:i}=t;if(!i||Fi("0x13")!=i[Fi("0xc")])return;const r=i[Fi("0x15")][0][Fi("0x16")],s=e(o[Fi("0xb")]((t=>t[Fi("0x16")]===r))[Fi("0x1e")])[Fi("0x12")]();return i[Fi("0x15")][0][Fi("0xa")]?{type:Fi("0x6"),content:Qo(n,Fi("0x8"),Qo(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:Fi("0x6"),content:Qo(n,"*Remove format:* %0",Qo(n,Fi("0x19"),1))}}))}}function Bi(t){return Fi("0x13")==t.name}const Pi=["plugins","addCommentThread","get","editor"];var Ui,ji;Ui=Pi,ji=164,function(t){for(;--t;)Ui.push(Ui.shift())}(++ji);const Gi=function(t,e){return Pi[t-=0]};class Vi extends t.Plugin{afterInit(){const t=this[Gi("0x3")];t[Gi("0x0")].has("CommentsEditing")&&t.plugins[Gi("0x2")]("TrackChangesEditing").enableCommand(Gi("0x1"))}}var Hi=n(181);const zi=["TrackChangesEditing","ck-suggestion-marker-","isAtEnd","name","toViewElement","test","isContent","isBlock","writer","listItem","schema","elementEnd","createRangeOn","getWalker","span","get","consumable","markerName","element","mapper","push","previousPosition","model","activeMarkers","item","getCustomProperty","bindElementToMarker","ck-suggestion-marker--active","listIndent","start","isLimit","getAttribute","toViewPosition","markerRange","hasAttribute","plugins","type","createUIElement","nextSibling","addClass","insert"];var Wi,Ki;Wi=zi,Ki=358,function(t){for(;--t;)Wi.push(Wi.shift())}(++Ki);const qi=function(t,e){return zi[t-=0]};function Xi(t,e,n){const o=[];for(const i of e.getItems())i[qi("0x4")](t)&&o[qi("0x1f")](n[qi("0x17")](i));return o}function $i(t,e,{showActiveMarker:n=!0}={}){const o=t[qi("0x5")][qi("0x1a")](qi("0xb"));return(i,r,s)=>{if(!s[qi("0x1b")][qi("0x10")](r[qi("0x3")],i[qi("0xe")]))return;const x=r.markerRange[qi("0x18")](),a=r[qi("0x3")][qi("0x28")],c=t[qi("0x21")][qi("0x15")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[qi("0x23")];d=d||c[qi("0x11")](e);const n=s.mapper[qi("0xf")](e);if(n&&n[qi("0x24")]("addHighlight"))return;qi("0x16")==t[qi("0x6")]&&c[qi("0x12")](e)&&!c[qi("0x0")](e)&&(e[qi("0x8")]||a[qi("0xd")]?l&&l.parent==e||(l=e,f(t[qi("0x20")]),g=!0):u=u||t.previousPosition)}function f(t){const i=s.writer[qi("0x7")](qi("0x19"),{class:qi("0xc")+e}),x=s[qi("0x1e")][qi("0x2")](t);n&&o[qi("0x22")].includes(r[qi("0x1c")])&&s[qi("0x13")][qi("0x9")](qi("0x26"),i),s.writer[qi("0xa")](x,i),s[qi("0x1e")][qi("0x25")](i,r[qi("0x1c")])}d||g||!u||f(u)}}const Zi=["high","uiElement","start","mapper","requires","fromRange","document","downcastDispatcher","isCollapsed","createSelection","root","unlock","bind","markerNameToElements","TrackChangesEditing","get","delete","deleteForward","showSuggestionHighlights","addMarker:suggestion:deletion","unbindElementFromMarkerName","enableCommand","selection","buffer","removeMarker:suggestion:deletion","remove","createRange","init","merge","model","detach","end","setSelection","lock","markerName","commands","data","modifySelection","getFirstRange","editor","enqueueChange","options","editing"];var Yi,Ji;Yi=Zi,Ji=373,function(t){for(;--t;)Yi.push(Yi.shift())}(++Ji);const Qi=function(t,e){return Zi[t-=0]};class tr extends t.Plugin{static get[Qi("0x12")](){return[Hi.Delete]}[Qi("0x29")](){const t=this[Qi("0xa")],e=t.plugins[Qi("0x1d")](Qi("0x1c"));e[Qi("0x23")](Qi("0x1e"));const n=t[Qi("0x6")].get(Qi("0x1f"));e[Qi("0x23")](Qi("0x1f"),((e,o={})=>{const i=t[Qi("0x0")][Qi("0x17")](t.model[Qi("0x14")][Qi("0x24")]);i[Qi("0x16")]&&t[Qi("0x0")][Qi("0x8")](i,{direction:"forward",unit:o.unit});const r=i[Qi("0x9")](),x=s.LiveRange[Qi("0x13")](r);let a;e(o),a="$graveyard"==x[Qi("0x18")].rootName?t[Qi("0x0")][Qi("0x28")](r[Qi("0x10")]):t[Qi("0x0")].createRange(x[Qi("0x10")],x.end),x[Qi("0x1")](),t[Qi("0x0")][Qi("0xb")](n.buffer.batch,(t=>{n[Qi("0x25")][Qi("0x4")](),t[Qi("0x3")](t[Qi("0x28")](a[Qi("0x2")])),n.buffer[Qi("0x19")]()}))})),t[Qi("0xd")][Qi("0x15")].on(Qi("0x21"),$i(t,Qi("0x2a")),{priority:Qi("0xe")}),t[Qi("0x7")][Qi("0x15")].on(Qi("0x21"),((e,n,o)=>{o[Qi("0xc")][Qi("0x20")]&&$i(t,Qi("0x2a"),{showActiveMarker:!1})[Qi("0x1a")](this)(e,n,o)}),{priority:Qi("0xe")}),t[Qi("0xd")].downcastDispatcher.on(Qi("0x26"),((t,e,n)=>{const o=n[Qi("0x11")][Qi("0x1b")](e[Qi("0x5")]);if(o)for(const t of o)t.is(Qi("0xf"))&&(n[Qi("0x11")][Qi("0x22")](t,e[Qi("0x5")]),n.writer[Qi("0x27")](t))}),{priority:Qi("0xe")})}}const er=["detach","add","commands","getAttribute","registerCustomCallback","indentList","document","get","selection","*Merge:* %0","change","accept","getFirstRange","markMultiRangeBlockFormat","*Outdent:* %0","fromRange","formatInline","enableCommand","splitListItemBefore","hasAttribute","slice","nextSibling","*Format:* remove from %0","commandParams","nodeAfter","push","format","type","numberedList","from","*Indent:* %0","*Format:* insert into %0","next","bulletedList","model","end","documentList","registerDescriptionCallback","list.multiBlock","expandListBlocksToCompleteList","createRange","isObject","has","value","schema","ELEMENT_NUMBERED_LIST","splitListItemAfter","commandName","plugins","mergeListItemBackward","setSelection","findIndex","ELEMENT_LIST_ITEM","listIndent","listItemId","length","config","getRanges","createPositionAt","before","ELEMENT_BULLETED_LIST","getSelectedBlocks","isFirstBlockOfListItem","start","multipleBlocks","containsItem","parent","outdentList","afterInit","*Change to:* %0","map","formatBlock","forceValue","execute","mergeListItemForward","listType"];var nr,or;nr=er,or=201,function(t){for(;--t;)nr.push(nr.shift())}(++or);const ir=function(t,e){return er[t-=0]};class rr extends t.Plugin{[ir("0x13")](){const t=this.editor;if(!t[ir("0x4b")][ir("0x45")]("DocumentListEditing"))return;const e=t.locale,n=t[ir("0x4b")][ir("0x22")]("TrackChangesEditing"),o=t.plugins[ir("0x22")]("DocumentListUtils");function i(e){return()=>{const i=t[ir("0x1d")].get(e);if(i[ir("0x46")]&&!t.config[ir("0x22")](ir("0x41")))return void t[ir("0x18")]("paragraph",{});let r=Array[ir("0x38")](t[ir("0x3d")][ir("0x21")][ir("0x23")][ir("0xc")]());if(a(e)){r=o[ir("0x42")](r);const t=[];for(const e of r)o[ir("0xd")](e)&&t[ir("0x34")](e);r=t}t[ir("0x3d")][ir("0x25")]((()=>{n[ir("0x28")](r,{commandName:e,commandParams:[{forceValue:!i[ir("0x46")]}],formatGroupId:ir("0x1a")},[],ir("0x3f"))}))}}function r(e){return()=>{const o=function(t){let e=Array.from(t);const n=e[ir("0x2")]((t=>!t[ir("0x2e")](ir("0x5"))));return n>-1&&(e=e[ir("0x2f")](0,n)),e}(t[ir("0x3d")].document[ir("0x23")][ir("0xc")]()),i=o[o[ir("0x6")]-1],r=t[ir("0x3d")][ir("0x47")][ir("0x44")](i)?"after":ir("0x3e"),s=t[ir("0x3d")][ir("0x43")](t[ir("0x3d")][ir("0x9")](o[0],ir("0xa")),t.model[ir("0x9")](i,r));t[ir("0x3d")].change((()=>{n.markBlockFormat(s,{commandName:e,commandParams:[],formatGroupId:"listType"},function(t){const e=new Set;for(const n of t){let t=n[ir("0x30")];for(;t&&t.getAttribute(ir("0x4"))>n[ir("0x1e")]("listIndent");)e[ir("0x1c")](t),t=t.nextSibling}return Array[ir("0x38")](e)}(o))}))}}function x(e){return()=>{const o=t[ir("0x3d")][ir("0x21")][ir("0x23")][ir("0xc")]()[ir("0x3b")]().value,i=t.model[ir("0x9")](o,ir("0xa")),r=t[ir("0x3d")][ir("0x9")](o,0),s=t[ir("0x3d")][ir("0x43")](i,r);t[ir("0x3d")].change((()=>{n.markBlockFormat(s,{commandName:e,commandParams:[],formatGroupId:ir("0x1a")})}))}}function a(e){const n=t.commands[ir("0x22")]("bulletedList")[ir("0x46")],o=t.commands.get(ir("0x37"))[ir("0x46")];return"numberedList"===e?n:o}n.enableCommand("numberedList",i(ir("0x37"))),n.enableCommand(ir("0x3c"),i("bulletedList")),n[ir("0x2c")](ir("0x20"),r(ir("0x20"))),n[ir("0x2c")](ir("0x12"),r(ir("0x12"))),n[ir("0x2c")]("splitListItemAfter",x(ir("0x49"))),n[ir("0x2c")]("splitListItemBefore",x(ir("0x2d"))),n._descriptionFactory.registerElementLabel((function(e){const n=!t[ir("0x3d")][ir("0x47")].isObject(e),o=e.previousSibling,i=e.nextSibling,r=e[ir("0x1e")]("listItemId"),s=!o||o.getAttribute(ir("0x5"))!==r,x=!i||i[ir("0x1e")]("listItemId")!==r;return n&&Boolean(r)&&s&&x}),(t=>Qo(e,"ELEMENT_LIST_ITEM",t))),n._descriptionFactory[ir("0x40")]((function(n){if(ir("0x16")!=n[ir("0x36")]&&ir("0x2b")!=n[ir("0x36")])return;const{data:o}=n;if(!o)return;let i,r,s,x;switch(o[ir("0x4a")]){case ir("0x3c"):s=o[ir("0x32")][0][ir("0x17")],x=a(o[ir("0x4a")]),i=ir(s?"0x3a":"0x31"),!x&&t[ir("0x7")].get("list.multiBlock")||(i=ir("0x14")),r={type:ir("0x35"),content:Qo(e,i,Qo(e,ir("0xb")))};break;case ir("0x37"):s=o[ir("0x32")][0].forceValue,x=a(o[ir("0x4a")]),i=ir(s?"0x3a":"0x31"),!x&&t[ir("0x7")][ir("0x22")]("list.multiBlock")||(i="*Change to:* %0"),r={type:ir("0x35"),content:Qo(e,i,Qo(e,ir("0x48")))};break;case ir("0x20"):i=ir("0x39"),r={type:ir("0x35"),content:Qo(e,i,Qo(e,ir("0x3")))};break;case ir("0x12"):i=function(t){const e=t[ir("0x27")]();let n=e[ir("0xe")].nodeAfter;for(;n&&e[ir("0x10")](n);){if(n[ir("0x1e")]("listIndent")>0)return!1;n=n.nextSibling}return!0}(n)?Qo(e,ir("0x31"),Qo(e,"ELEMENT_"+n[ir("0x27")]()[ir("0xe")][ir("0x33")].getAttribute(ir("0x1a")).toUpperCase()+"_LIST")):Qo(e,ir("0x29"),Qo(e,ir("0x3"))),r={type:"format",content:i};break;case ir("0x0"):case ir("0x19"):!1===o[ir("0xf")]&&(i=ir("0x24"),r={type:"deletion",content:Qo(e,i,Qo(e,ir("0x3")))})}return r})),n._suggestionFactory[ir("0x1f")](ir("0x16"),"documentList",ir("0x26"),(function(e,n){const o=[];for(let n of e)n[ir("0xe")][ir("0x33")]===n[ir("0x3e")][ir("0x11")]&&(n=t[ir("0x3d")][ir("0x43")](t[ir("0x3d")][ir("0x9")](n[ir("0xe")].nodeAfter,0))),o[ir("0x34")](n);t[ir("0x3d")][ir("0x25")]((e=>{const i=t[ir("0x3d")].document[ir("0x23")],r=Array[ir("0x38")](i[ir("0x8")]())[ir("0x15")]((t=>s.LiveRange[ir("0x2a")](t)));e[ir("0x1")](o),t.commands[ir("0x22")](n[ir("0x4a")]).refresh(),n[ir("0x32")][ir("0x34")]({forceDefaultExecution:!0}),t[ir("0x18")](n[ir("0x4a")],...n[ir("0x32")]),e[ir("0x1")](r);for(const t of r)t[ir("0x1b")]()}))}))}}const sr=["commandParams","list.properties","listReversed","push","filter","DocumentListUtils","startIndex","ELEMENT_","handleDescriptions","reversed","from","_getSuggestionBlocks","getSelectedBlocks","plugins","listStyle","selection","length","listStart","document","_descriptionFactory","handleListStartCommand","DocumentListPropertiesUtils","*Format:* set start index to %0","handleListStyleCommand","*Format:* set order to regular","markMultiRangeBlockFormat","_getTranslationKeyForListStyle","get","has","TrackChangesEditing","config","format","enableCommand","_getSuggestionBlocksForListStyle","handleListReversedCommand","formatInline","bind","numbered","expandListBlocksToCompleteList","*Change to:* %0","afterInit","editor","type","commandName","formatBlock","listType","model","toUpperCase","change"];var xr,ar;xr=sr,ar=267,function(t){for(;--t;)xr.push(xr.shift())}(++ar);const cr=function(t,e){return sr[t-=0]};class lr extends t.Plugin{[cr("0x12")](){if(!this[cr("0x13")].plugins[cr("0x6")]("DocumentListPropertiesEditing"))return;const t=this[cr("0x13")][cr("0x8")][cr("0x5")](cr("0x1c")),e=this.editor[cr("0x28")][cr("0x5")](cr("0x7"));t.styles&&e[cr("0xa")](cr("0x29"),this.handleListStyleCommand.bind(this)),t.reversed&&e[cr("0xa")](cr("0x1d"),this[cr("0xc")][cr("0xe")](this)),t[cr("0x21")]&&e[cr("0xa")](cr("0x2c"),this[cr("0x2f")].bind(this)),e[cr("0x2e")].registerDescriptionCallback(this.handleDescriptions.bind(this))}[cr("0x1")](t,e={}){const n=this[cr("0x13")][cr("0x28")][cr("0x5")](cr("0x7")),o=this[cr("0xb")]();this[cr("0x13")][cr("0x18")][cr("0x1a")]((()=>{n[cr("0x3")](o,{commandName:cr("0x29"),commandParams:[{type:e[cr("0x14")]}],formatGroupId:cr("0x29")})}))}[cr("0xc")](t,e={}){const n=this.editor[cr("0x28")][cr("0x5")](cr("0x7")),o=this[cr("0x13")].plugins[cr("0x5")](cr("0x20")),i=this._getSuggestionBlocks((t=>o.isListItemBlock(t)&&"numbered"===t.getAttribute("listType")));null!==i&&this.editor.model[cr("0x1a")]((()=>{n[cr("0x3")](i,{commandName:cr("0x1d"),commandParams:[{reversed:e.reversed}],formatGroupId:cr("0x1d")})}))}[cr("0x2f")](t,e={}){const n=this.editor[cr("0x28")].get(cr("0x7")),o=this[cr("0x13")][cr("0x28")].get("DocumentListUtils"),i=this[cr("0x26")]((t=>o.isListItemBlock(t)&&cr("0xf")===t.getAttribute(cr("0x17"))));null!==i&&this.editor.model.change((()=>{n[cr("0x3")](i,{commandName:cr("0x2c"),commandParams:[{startIndex:e[cr("0x21")]}],formatGroupId:cr("0x2c")})}))}[cr("0x23")](t){if(cr("0x16")!=t[cr("0x14")]&&cr("0xd")!=t[cr("0x14")])return;const e=this.editor.locale,{data:n}=t;if(!n)return;let o,i;switch(n[cr("0x15")]){case cr("0x29"):o=cr("0x11"),i={type:cr("0x9"),content:Qo(e,o,Qo(e,this[cr("0x4")](n[cr("0x1b")][0].type)))};break;case cr("0x1d"):o=n[cr("0x1b")][0][cr("0x24")]?"*Format:* set order to reversed":cr("0x2"),i={type:"format",content:Qo(e,o)};break;case cr("0x2c"):o=cr("0x0"),i={type:"format",content:Qo(e,o,n[cr("0x1b")][0][cr("0x21")])}}return i}[cr("0xb")](){const t=this.editor[cr("0x28")].get(cr("0x20"));let e=Array[cr("0x25")](this[cr("0x13")][cr("0x18")][cr("0x2d")][cr("0x2a")][cr("0x27")]());return e[cr("0x1e")](...t.expandListBlocksToCompleteList(e)),e=[...new Set(e)],e}_getSuggestionBlocks(t){const e=this[cr("0x13")][cr("0x28")][cr("0x5")](cr("0x20"));let n=Array.from(this[cr("0x13")][cr("0x18")][cr("0x2d")][cr("0x2a")].getSelectedBlocks())[cr("0x1f")](t);if(!n[cr("0x2b")])return null;n=e[cr("0x10")](n);const o=[];for(const t of n)e.isFirstBlockOfListItem(t)&&o[cr("0x1e")](t);return o}[cr("0x4")](t){return cr("0x22")+this.editor[cr("0x28")][cr("0x5")](cr("0x30")).getListTypeFromListStyleType(t).toUpperCase()+"_LIST_"+t[cr("0x19")]().replace(/-/g,"_")}}var ur=n(331);const dr=["fire","afterExecute","high","split","get","enableCommand","addMarker:suggestion:insertion","selection","parent","enter","remove","editing","writer","requires","end","createRange","ck-suggestion-marker-split","downcastDispatcher","bind","editor","document","createPositionAt","unbindElementFromMarkerName","commands","TrackChangesEditing","model","removeMarker:suggestion:insertion","plugins","markInsertion","nextSibling","change","hasClass","showSuggestionHighlights","markerName","data","setSelection","getFirstPosition"];var gr,fr;gr=dr,fr=444,function(t){for(;--t;)gr.push(gr.shift())}(++fr);const mr=function(t,e){return dr[t-=0]};class hr extends t.Plugin{static get[mr("0xd")](){return[ur.Enter]}init(){const t=this[mr("0x13")],e=t[mr("0x1b")][mr("0x4")](mr("0x18")),n=t[mr("0x17")][mr("0x4")](mr("0x9"));e[mr("0x5")](mr("0x9"),(()=>{t[mr("0x19")][mr("0x1e")]((o=>{const i=t[mr("0x19")][mr("0x14")][mr("0x7")],r=i[mr("0x24")](),x=s.LiveRange.fromRange(i.getFirstRange());if(n.enterBlock(o)){const n=t[mr("0x19")][mr("0x15")](r[mr("0x8")][mr("0x1d")],0),i=o[mr("0xf")](r,n);e[mr("0x1c")](i)}else o[mr("0x23")](o[mr("0xf")](x[mr("0xe")]));x.detach(),n[mr("0x0")](mr("0x1"),{writer:o})}))})),t[mr("0xb")][mr("0x11")].on(mr("0x6"),$i(t,mr("0x3")),{priority:mr("0x2")}),t[mr("0xb")][mr("0x11")].on(mr("0x1a"),((t,e,n)=>{const o=n.mapper.markerNameToElements(e[mr("0x21")]);if(o)for(const t of o)t[mr("0x1f")](mr("0x10"))&&(n.mapper[mr("0x16")](t,e[mr("0x21")]),n[mr("0xc")][mr("0xa")](t))}),{priority:"high"}),t[mr("0x22")].downcastDispatcher.on("addMarker:suggestion:insertion",((e,n,o)=>{o.options[mr("0x20")]&&$i(t,"split",{showActiveMarker:!1})[mr("0x12")](this)(e,n,o)}),{priority:"high"})}}const pr=["filter","findByTextCallback","findNext","replace","bind","_isInDeletionRange","model","createPositionAt","createRange","start","find","string","afterInit","enableCommand","plugins","markers","end","get","TrackChangesEditing","FindAndReplaceUtils","getIntersection","editor","FindAndReplaceEditing","findPrevious"];var br,Er;br=pr,Er=380,function(t){for(;--t;)br.push(br.shift())}(++Er);const _r=function(t,e){return pr[t-=0]};class Tr extends t.Plugin{[_r("0x10")](){if(!this[_r("0x1")][_r("0x12")].has(_r("0x2")))return;const t=this[_r("0x1")].plugins[_r("0x15")](_r("0x16"));t[_r("0x11")](_r("0xe"),this.handleFindCommand[_r("0x8")](this)),t.enableCommand(_r("0x6")),t[_r("0x11")](_r("0x3")),t[_r("0x11")](_r("0x7")),t.enableCommand("replaceAll")}handleFindCommand(t,e,n={}){const o=this[_r("0x1")][_r("0x12")][_r("0x15")](_r("0x17"));return t((t=>(_r("0xf")==typeof e?o[_r("0x5")](e,n):e)(t)[_r("0x4")]((e=>!1===this[_r("0x9")](e,t.item)))),n)}_isInDeletionRange(t,e){const n=this.editor[_r("0xa")][_r("0xc")](this[_r("0x1")][_r("0xa")][_r("0xb")](e,t[_r("0xd")]),this[_r("0x1")][_r("0xa")][_r("0xb")](e,t[_r("0x14")]));for(const t of this[_r("0x1")][_r("0xa")][_r("0x13")].getMarkersGroup("suggestion:deletion"))if(null!==n[_r("0x0")](t.getRange()))return!0;return!1}}const yr=["title","fontSize.options","format","has","registerDescriptionCallback","label","editor","_enableDefaultAttributesIntegration","normalizeSizeOptions","*Reset font size*","find","*Set font size:* %0","plugins","_registerLegacyDescription","toLowerCase","get","model","type","*Reset font family*","commandParams","value","fontColor.colors","locale","registerAttributeLabel","_descriptionFactory","commandName","FontBackgroundColorEditing","FORMAT_FONT_FAMILY","trim","*Set font family:* %0","FontColorEditing","config","*Reset font color*","FontSizeEditing","afterInit","formatInline","FontFamilyEditing","fontBackgroundColor","fontSize","FORMAT_FONT_COLOR","fontColor","FontSize","FORMAT_FONT_BACKGROUND","fontFamily"];var Cr,Ar;Cr=yr,Ar=284,function(t){for(;--t;)Cr.push(Cr.shift())}(++Ar);const kr=function(t,e){return yr[t-=0]},Ir=[{pluginName:kr("0xd"),commandName:"fontSize"},{pluginName:kr("0x10"),commandName:kr("0x17")},{pluginName:kr("0xa"),commandName:kr("0x14")},{pluginName:kr("0x6"),commandName:kr("0x11")}];class Rr extends t.Plugin{[kr("0xe")](){const t=this[kr("0x1e")][kr("0x2")],e=this[kr("0x1e")][kr("0x24")][kr("0x27")]("TrackChangesEditing");for(const{pluginName:t,commandName:n}of Ir)this[kr("0x1e")].plugins[kr("0x1b")](t)&&e[kr("0x1f")](n,[n]);t.t,e[kr("0x4")][kr("0x3")](kr("0x12"),Qo(t,"FORMAT_FONT_SIZE")),e[kr("0x4")].registerAttributeLabel(kr("0x17"),Qo(t,kr("0x7"))),e._descriptionFactory[kr("0x3")](kr("0x14"),Qo(t,kr("0x13"))),e._descriptionFactory[kr("0x3")]("fontBackgroundColor",Qo(t,kr("0x16"))),this[kr("0x25")]()}_registerLegacyDescription(){const t=this[kr("0x1e")],e=t.locale;t[kr("0x24")][kr("0x27")]("TrackChangesEditing")[kr("0x4")][kr("0x1c")]((t=>{const n=e.t;if(kr("0xf")!=t[kr("0x29")])return;const{data:o}=t;if(null!=o){if(kr("0x12")==o[kr("0x5")]){const t=o[kr("0x2b")][0][kr("0x0")];if(t){const o=n(this[kr("0x1e")][kr("0x24")][kr("0x27")](kr("0x15"))[kr("0x20")](this[kr("0x1e")].config[kr("0x27")](kr("0x19")))[kr("0x22")]((e=>e[kr("0x28")]==t))[kr("0x18")])[kr("0x26")]();return{type:kr("0x1a"),content:Qo(e,kr("0x23"),o)}}return{type:kr("0x1a"),content:Qo(e,kr("0x21"))}}if(kr("0x17")==o[kr("0x5")]){const t=o.commandParams[0][kr("0x0")];return t?{type:kr("0x1a"),content:Qo(e,kr("0x9"),t)}:{type:kr("0x1a"),content:Qo(e,kr("0x2a"))}}if(kr("0x14")==o[kr("0x5")]){const t=o[kr("0x2b")][0].value;if(t){const o=(0,i.normalizeColorOptions)(this[kr("0x1e")][kr("0xb")][kr("0x27")](kr("0x1"))).find((e=>e.model==t));let r=t,s="";return o&&(r=o[kr("0x1d")],s=n(r)[kr("0x26")]()),{type:"format",content:Qo(e,"*Set font color:* %0",s)[kr("0x8")](),color:{value:t,title:s||r}}}return{type:"format",content:Qo(e,kr("0xc"))}}if(kr("0x11")==o[kr("0x5")]){const t=o[kr("0x2b")][0].value;if(t){const o=(0,i.normalizeColorOptions)(this[kr("0x1e")][kr("0xb")][kr("0x27")]("fontBackgroundColor.colors"))[kr("0x22")]((e=>e.model==t));let r=t,s="";return o&&(r=o[kr("0x1d")],s=n(r).toLowerCase()),{type:kr("0x1a"),content:Qo(e,"*Set font background color:* %0",s)[kr("0x8")](),color:{value:t,title:s||r}}}return{type:"format",content:Qo(e,"*Reset font background color*")}}}}))}}const Sr=["fontSize.options","_descriptionFactory","join","boolean","*Remove all formatting*","normalizeSizeOptions","formatInline","toLowerCase","formatBlock","TrackChangesEditing","fontColor","charAt","afterInit","commandParams","type","pasteFormat","_registerLegacyDescription","fontBackgroundColor","_enableDefaultAttributesIntegration","split","FontSize","slice","copyFormat","commands","registerDescriptionCallback","enableCommand","plugins","get","fontSize","fontColor.colors","commandName","model","config","push","locale","format","editor","title","find"];var vr,Nr;vr=Sr,Nr=293,function(t){for(;--t;)vr.push(vr.shift())}(++Nr);const Lr=function(t,e){return Sr[t-=0]};class Mr extends t.Plugin{[Lr("0x1f")](){const t=this[Lr("0x10")],e=t[Lr("0x6")][Lr("0x7")](Lr("0x1c")),n=t[Lr("0x3")].get(Lr("0x2")),o=t[Lr("0x3")][Lr("0x7")](Lr("0x22"));n&&o&&(e[Lr("0x25")](Lr("0x22")),e[Lr("0x5")](Lr("0x2")),this._registerLegacyDescription())}[Lr("0x23")](){const t=this.editor,e=t.locale;t[Lr("0x6")][Lr("0x7")](Lr("0x1c"))[Lr("0x14")][Lr("0x4")]((n=>{if(Lr("0x1b")!=n[Lr("0x21")]&&Lr("0x19")!=n[Lr("0x21")])return;const{data:o}=n;if(o&&"pasteFormat"===o[Lr("0xa")]){const n=[],i=o[Lr("0x20")][0];for(const[e,o]of Object.entries(i))n[Lr("0xd")](wr(t,e,o));return n.length?{type:Lr("0xf"),content:Qo(e,"*Set format to:* %0",n[Lr("0x15")](", "))}:{type:Lr("0xf"),content:Qo(e,Lr("0x17"))}}}))}}function wr(t,e,n){const o=t[Lr("0xe")].t,r=e[Lr("0x26")](/(?=[A-Z])/)[Lr("0x15")](" "),s=o(r[Lr("0x1e")](0).toUpperCase()+r[Lr("0x1")](1)).toLowerCase();if(Lr("0x16")==typeof n)return s;if(Lr("0x1d")===e||Lr("0x24")===e){const e=(0,i.normalizeColorOptions)(t[Lr("0xc")].get(Lr("0x9")))[Lr("0x12")]((t=>t[Lr("0xb")]==n));return s+" ("+(e?o(e.label)[Lr("0x1a")]():n)+")"}if(Lr("0x8")===e&&isNaN(parseFloat(n))){const e=t.plugins[Lr("0x7")](Lr("0x0"))[Lr("0x18")](t[Lr("0xc")][Lr("0x7")](Lr("0x13")))[Lr("0x12")]((t=>t[Lr("0xb")]==n));return s+" ("+(e?o(e[Lr("0x11")]).toLowerCase():n)+")"}return s+" ("+n+")"}const Or=["formatBlock","registerElementLabel","match","commandName","_registerLegacyDescription","heading.options","model","value","_getHeadingLevel","view","ELEMENT_HEADING_CUSTOM","HeadingEditing","locale","commandParams","_headingOptions","*Change to:* %0","title","type","_descriptionFactory","afterInit","TrackChangesEditing","editor","find","ELEMENT_HEADING","plugins","get"];var Fr,Dr;Fr=Or,Dr=385,function(t){for(;--t;)Fr.push(Fr.shift())}(++Dr);const Br=function(t,e){return Or[t-=0]};class Pr extends t.Plugin{[Br("0x18")](){const t=this[Br("0x0")];if(!t[Br("0x3")].has(Br("0x10")))return;this._headingOptions=t.config.get(Br("0xa"));const e=t[Br("0x11")],n=t[Br("0x3")].get("TrackChangesEditing");n._enableDefaultAttributesIntegration("heading");for(const t of this[Br("0x13")])"paragraph"!=t[Br("0xb")]&&n._descriptionFactory[Br("0x6")](t.model,(n=>{const o=this[Br("0xd")](t[Br("0xb")]);return null!==o?Qo(e,"ELEMENT_HEADING",[n,o]):(i=n,r=t[Br("0x15")],Qo(e,Br("0xf"),[i,r]));var i,r}));this[Br("0x9")]()}[Br("0x9")](){const t=this[Br("0x0")],e=t[Br("0x11")];t[Br("0x3")][Br("0x4")](Br("0x19"))[Br("0x17")].registerDescriptionCallback((t=>{if(Br("0x5")!=t[Br("0x16")])return;const{data:n}=t;if(n&&"heading"==n[Br("0x8")]){const t=n[Br("0x12")][0][Br("0xc")],s=this._getHeadingLevel(t);if(null!==s)return{type:"format",content:Qo(e,Br("0x14"),(1,r=s,Qo(e,Br("0x2"),[1,r])))};const x=this._headingOptions[Br("0x1")]((e=>e[Br("0xb")]===t)).title;return{type:"format",content:Qo(e,Br("0x14"),(o=1,i=x,Qo(e,"ELEMENT_HEADING_CUSTOM",[o,i])))}}var o,i,r}))}[Br("0xd")](t){var e,n;const o=t[Br("0x7")](/^heading(\d+)/);if(o)return o[1];const i=null===(e=this[Br("0x13")])||void 0===e?void 0:e[Br("0x1")]((e=>e[Br("0xb")]==t));if(i&&i[Br("0xe")]){const t=i.view,e=(null!==(n=t.name)&&void 0!==n?n:t)[Br("0x7")](/^h(\d+)/);if(e)return e[1]}return null}}const Ur=["registerDescriptionCallback","toLowerCase","*Set highlight:* %0","value","*Remove highlight*","_descriptionFactory","find","formatInline","has","highlight.options","_registerLegacyDescription","TrackChangesEditing","FORMAT_HIGHLIGHT","format","model","get","type","editor","registerAttributeLabel","color","locale","HighlightEditing","commandParams","title","config","plugins","highlight"];var jr,Gr;jr=Ur,Gr=357,function(t){for(;--t;)jr.push(jr.shift())}(++Gr);const Vr=function(t,e){return Ur[t-=0]};class Hr extends t.Plugin{afterInit(){const t=this[Vr("0xb")];if(!t[Vr("0x13")][Vr("0x2")](Vr("0xf")))return;const e=t[Vr("0x13")].get(Vr("0x5")),n=t.locale;e._enableDefaultAttributesIntegration("highlight",[Vr("0x14")]),e[Vr("0x1a")][Vr("0xc")](Vr("0x14"),Qo(n,Vr("0x6"))),this[Vr("0x4")]()}_registerLegacyDescription(){const t=this[Vr("0xb")],e=t[Vr("0xe")];t[Vr("0x13")][Vr("0x9")](Vr("0x5"))[Vr("0x1a")][Vr("0x15")]((n=>{if(Vr("0x1")!=n[Vr("0xa")])return;const{data:o}=n;if(o&&Vr("0x14")==o.commandName){const n=e.t,i=o[Vr("0x10")][0][Vr("0x18")];if(i){const o=t[Vr("0x12")][Vr("0x9")](Vr("0x3"))[Vr("0x0")]((t=>t[Vr("0x8")]==i)),r=n(o.title)[Vr("0x16")]();return{type:Vr("0x7"),content:Qo(e,Vr("0x17"),r),color:{value:o[Vr("0xd")],title:o[Vr("0x11")]}}}return{type:Vr("0x7"),content:Qo(e,Vr("0x19"),Qo(e,Vr("0x6")))}}}))}}const zr=["locale","insert","plugins","createContainerElement","high","TrackChangesEditing","HorizontalLineEditing","ck-horizontal-line","createEmptyElement","horizontalLine","registerElementLabel","editor","get","addClass","div","showSuggestionHighlights","conversion","dataDowncast","_descriptionFactory"];var Wr,Kr;Wr=zr,Kr=280,function(t){for(;--t;)Wr.push(Wr.shift())}(++Kr);const qr=function(t,e){return zr[t-=0]};class Xr extends t.Plugin{afterInit(){const t=this[qr("0x10")];if(!t[qr("0x7")].has(qr("0xb")))return;t[qr("0x7")][qr("0x11")](qr("0xa")).enableCommand("horizontalLine");const e=t[qr("0x7")].get("TrackChangesEditing"),n=t[qr("0x5")];e[qr("0x4")][qr("0xf")](qr("0xe"),(t=>Qo(n,"ELEMENT_HORIZONTAL_LINE",t))),t[qr("0x2")].for(qr("0x3")).elementToStructure({model:"horizontalLine",view:(t,{writer:e,options:n})=>{if(!n[qr("0x1")])return null;const o=e[qr("0x8")](qr("0x0")),i=e[qr("0xd")]("hr");return e[qr("0x12")](qr("0xc"),o),e[qr("0x6")](e.createPositionAt(o,0),i),o},converterPriority:qr("0x9")})}}const $r=["element","_registerLegacyDescription","HtmlEmbed","key","ELEMENT_HTML_EMBED","editor","get","*Change %0 content*","attribute","value","type","plugins","formatBlock","has","TrackChangesEditing","htmlEmbed","format","commandName","_descriptionFactory","locale","registerDescriptionCallback","start"];var Zr,Yr;Zr=$r,Yr=411,function(t){for(;--t;)Zr.push(Zr.shift())}(++Yr);const Jr=function(t,e){return $r[t-=0]};class Qr extends t.Plugin{afterInit(){const t=this[Jr("0xc")];if(!t.plugins[Jr("0x14")](Jr("0x9")))return;const e=t.plugins.get(Jr("0x15")),n=t.locale;e[Jr("0x3")].registerElementLabel("rawHtml",(t=>Qo(n,Jr("0xb"),t))),e._enableDefaultAttributesIntegration("htmlEmbed",[],[Jr("0x10")]),e._descriptionFactory[Jr("0x5")]((t=>{if(Jr("0xf")!=t.type)return;const{data:e}=t;if(e&&Jr("0x10")==e[Jr("0xa")]&&t.getFirstRange()[Jr("0x6")].nodeAfter.is(Jr("0x7"),"rawHtml")){const t=Qo(n,Jr("0xb"));return{type:"format",content:Qo(n,Jr("0xe"),t)}}})),this._registerLegacyDescription()}[Jr("0x8")](){const t=this[Jr("0xc")],e=t[Jr("0x4")];t[Jr("0x12")][Jr("0xd")](Jr("0x15"))._descriptionFactory.registerDescriptionCallback((t=>{if(Jr("0x13")!=t[Jr("0x11")])return;const{data:n}=t;if(n&&Jr("0x0")==n[Jr("0x2")]){const t=Qo(e,Jr("0xb"));return{type:Jr("0x1"),content:Qo(e,"*Change %0 content*",t)}}}))}}const ts=["filter","forward","getContainedElement","markDeletion","TrackChangesEditing","caption","getClosestSelectedImageElement","*Remove image text alternative*","ImageEditing","discard","markBlockFormat","_suggestionFactory","convertBlockImageToInline","plugins","getSuggestionCallback","_registerLegacyDescription","nodeAfter","editor","FORMAT_IMAGE_SIZE","get","imageStylePreApply","markInsertion","chain","alt","imageTextAlternative","*Set image width:* %0","change","accept","key","isBlockImage","ImageUploadEditing","Block image to inline image","imageInline","length","Inline image to block image","isEqual","*Set image text alternative:* %0","ELEMENT_CAPTION","ELEMENT_IMAGE","registerDescriptionCallback","convertInlineImageToBlock","toPrevious","backward","registerElementLabel","fromPosition","width","ImageUtils","join","*Reset image width*","schema","isBefore","previous","resizedWidth","has","toNext","attribute","imageTypeInline","imageCaption","end","_enableDefaultAttributesIntegration","registerAttributeLabel","ImageBlockEditing","getFirstRange","deletion","subType","resizeImage","newValue","registerCustomCallback","detach","commandParams","imageBlock","insertImage","type","selection","commandName","getNearestSelectionRange","formatBlock","find","toggleImageCaption","start","insertion","createRange","format","ELEMENT_INLINE_IMAGE","ImageResize","removeObject","_descriptionFactory","isCollapsed","locale","afterInit","isOwn","createRangeOn","document","getCaptionFromImageModelElement","enableCommand","model"];var es,ns;es=ts,ns=385,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class is extends t.Plugin{[os("0x58")](){const t=this.editor;if(!t[os("0xc")][os("0x34")](os("0x7")))return;const e=t[os("0xc")].get(os("0x3")),n=t[os("0xc")][os("0x12")](os("0x2d")),o=t[os("0x57")];e.enableCommand(os("0x46")),e[os("0x55")].registerElementLabel(os("0x45"),(t=>Qo(o,os("0x25"),t))),e[os("0x55")].registerElementLabel(os("0x1f"),(t=>Qo(o,os("0x52"),t))),e[os("0x55")][os("0x2a")](os("0x4"),(()=>Qo(o,os("0x24")))),t[os("0xc")].has(os("0x1d"))&&e[os("0x5d")]("uploadImage"),t.plugins[os("0x34")](os("0x3c"))&&t[os("0xc")].has("ImageInlineEditing")&&(e[os("0x5d")](os("0x37"),((o,i)=>{const r=n[os("0x5")](t[os("0x5e")][os("0x5b")][os("0x48")]);t[os("0x5e")][os("0x19")]((()=>{e[os("0x9")](r,{commandName:os("0x37"),commandParams:[i]},[],os("0xb"))}))})),e[os("0x5d")]("imageTypeBlock",((o,i)=>{t[os("0x5e")][os("0x19")]((r=>{let x=n.getClosestSelectedImageElement(t[os("0x5e")][os("0x5b")].selection),a=r[os("0x5a")](x);const c=s.LivePosition[os("0x2b")](a[os("0x4e")],os("0x28")),l=s.LivePosition[os("0x2b")](a[os("0x39")],os("0x35"));e.forceDefaultExecution((()=>o(i))),x=n[os("0x5")](t[os("0x5e")].document[os("0x48")]),a=r.createRangeOn(x);const u=r[os("0x50")](c,l);c[os("0x43")](),l[os("0x43")](),e[os("0x9")](x,{commandName:os("0x37"),commandParams:[i]},[],os("0x27")),u[os("0x4e")][os("0x31")](a[os("0x4e")])&&e.markInsertion(r.createRange(u[os("0x4e")],a[os("0x4e")]),os("0x27")),a[os("0x39")][os("0x31")](u.end)&&e[os("0x14")](r[os("0x50")](a.end,u.end),"convertInlineImageToBlock")}))})),e[os("0xa")][os("0x42")]("formatBlock",os("0x27"),"join",(()=>!1)),e._suggestionFactory[os("0x42")](os("0x4b"),os("0x27"),os("0x1a"),(()=>!1)),e[os("0xa")][os("0x42")](os("0x4b"),"convertInlineImageToBlock",os("0x8"),e[os("0xa")][os("0xd")](os("0x4b"),"",os("0x1a"))),e[os("0xa")].registerCustomCallback("insertion",os("0x27"),os("0x2e"),(()=>!1)),e[os("0xa")].registerCustomCallback("insertion",os("0x27"),os("0x8"),(([n])=>{const o=e[os("0xa")][os("0xd")](os("0x4f"),"",os("0x8"));let i=n[os("0x4e")],r=n.end;const s=t[os("0x5e")][os("0x30")][os("0x4a")](i,os("0x29")),x=t[os("0x5e")][os("0x30")].getNearestSelectionRange(r,os("0x0"));s[os("0x56")]&&(i=s[os("0x4e")]),x[os("0x56")]&&(r=x[os("0x39")]),o([t[os("0x5e")].createRange(i,r)])})),e[os("0xa")].registerCustomCallback(os("0x4b"),"convertInlineImageToBlock","chain",x),e._suggestionFactory[os("0x42")](os("0x4f"),os("0x27"),os("0x15"),x)),t[os("0xc")][os("0x34")]("ImageCaptionEditing")&&(e.enableCommand(os("0x4d"),((o,i)=>{const r=t[os("0xc")].get("ImageCaptionUtils");let s=n[os("0x5")](t[os("0x5e")][os("0x5b")][os("0x48")]),x=r[os("0x5c")](s);t[os("0x5e")][os("0x19")]((()=>{if(x)return void e[os("0x2")](t[os("0x5e")].createRangeOn(x));const a=n[os("0x1c")](s);o(i),s=n.getClosestSelectedImageElement(t[os("0x5e")][os("0x5b")][os("0x48")]),x=r.getCaptionFromImageModelElement(s),e.markInsertion(t[os("0x5e")][os("0x5a")](x),a?null:os("0x38"))}))})),e._suggestionFactory[os("0x42")](os("0x4f"),"imageCaption",os("0x15"),x));const i=[{type:os("0x4b"),subType:os("0x13")},{type:"insertion",subType:os("0x38")},{type:os("0x4b"),subType:os("0x27")},{type:os("0x4f"),subType:os("0x27")}];function r(t,o){const r=i.findIndex((({type:e,subType:n})=>t[os("0x47")]==e&&t[os("0x3f")]==n)),s=i.findIndex((({type:t,subType:e})=>o[os("0x47")]==t&&o[os("0x3f")]==e));if(r<0||s<0)return!1;const x=t[os("0x3d")](),a=o[os("0x3d")]();if((0==r||1==r)&&2==s&&x.isIntersecting(a))return!0;if(2==r&&3==s){const t=e._findSuggestions(x,"insertion")[os("0x5f")]((({suggestion:t,meta:e})=>e[os("0x59")]&&os("0x27")==t[os("0x3f")]));if(t[os("0x20")]>1&&a[os("0x39")][os("0x22")](x[os("0x4e")]))return!0;if(1==t.length&&(x[os("0x4e")].isEqual(a[os("0x39")])||x[os("0x39")][os("0x22")](a[os("0x4e")])))return!0}if(3==r&&3==s&&x.start.isBefore(a.start)){const t=x[os("0x39")][os("0xf")],e=a[os("0x4e")].nodeBefore;return n[os("0x1c")](t)&&t===e}return!1}function x(t,e){return r(t,e)?[t,e]:r(e,t)?[e,t]:null}t[os("0xc")].has(os("0x53"))&&(e[os("0x3a")](os("0x40"),[],[os("0x33")]),e[os("0x55")][os("0x3b")](os("0x33"),Qo(o,os("0x11")))),t[os("0xc")][os("0x34")]("ImageTextAlternativeEditing")&&e._enableDefaultAttributesIntegration(os("0x17"),[],[os("0x16")]),e[os("0x55")].registerDescriptionCallback((t=>{if(i[os("0x4c")]((({type:e,subType:n})=>t[os("0x47")]==e&&t[os("0x3f")]==n)))return t[os("0x32")]?{}:void 0})),e[os("0x55")][os("0x26")]((t=>{if(os("0x4f")==t[os("0x47")]||os("0x3e")==t[os("0x47")]){const e=t[os("0x1")]();if(e&&e.is("element","caption"))return{type:"insertion"==t[os("0x47")]?"addObject":os("0x54"),element:e,quantity:1}}})),e._descriptionFactory[os("0x26")]((t=>os("0x4b")==t[os("0x47")]&&os("0x27")==t.subType?{type:os("0x51"),content:os("0x21")}:os("0x4b")==t.type&&os("0xb")==t.subType?{type:"format",content:os("0x1e")}:void 0)),e._descriptionFactory[os("0x26")]((t=>{if(os("0x36")!=t[os("0x47")])return;const{data:e}=t;if(!e||os("0x16")!=e[os("0x1b")])return;const n=e[os("0x41")];return n?{type:os("0x51"),content:Qo(o,os("0x23"),'"'+n+'"')}:{type:"format",content:Qo(o,os("0x6"))}})),this._registerLegacyDescription()}[os("0xe")](){const t=this[os("0x10")],e=t[os("0x57")];t[os("0xc")][os("0x12")]("TrackChangesEditing")[os("0x55")][os("0x26")]((t=>{if("formatBlock"!=t[os("0x47")]&&"formatInline"!=t[os("0x47")])return;const{data:n}=t;if(n){if("imageTextAlternative"==n[os("0x49")]){const t=n[os("0x44")][0][os("0x41")];return t?{type:"format",content:Qo(e,os("0x23"),'"'+t+'"')}:{type:os("0x51"),content:Qo(e,os("0x6"))}}if("resizeImage"==n[os("0x49")]){const t=n[os("0x44")][0][os("0x2c")];return t?{type:os("0x51"),content:Qo(e,os("0x18"),t)}:{type:"format",content:Qo(e,os("0x2f"))}}}}))}}const rs=["locale","_enableDefaultAttributesIntegration","afterInit","type","has","format","editor","accept","TrackChangesEditing","_suggestionFactory","formatInline","key","formatBlock","registerDescriptionCallback","newValue","discard","src","plugins","_handleLegacySuggestions","*Format:* replace image URL","getSuggestionCallback","_descriptionFactory","get","_registerLegacyDescription","attribute","replaceImageSource","ImageEditing","oldValue","registerCustomCallback"];var ss,xs;ss=rs,xs=434,function(t){for(;--t;)ss.push(ss.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x3")](){if(!this.editor[as("0x12")][as("0x5")](as("0x1b")))return;const t=this[as("0x7")][as("0x1")],e=this.editor[as("0x12")][as("0x17")](as("0x9"));e[as("0x2")](as("0x1a"),[],[as("0x11")]),e[as("0x16")][as("0xe")]((e=>{if(as("0x19")!=e.type)return;const{data:n}=e;return n&&as("0x11")==n[as("0xc")]?n[as("0xf")]&&n[as("0x1c")]?{type:as("0x6"),content:Qo(t,"*Replace image URL*")}:{type:"format",content:""}:void 0})),this[as("0x13")]()}[as("0x13")](){const t=this[as("0x7")][as("0x12")].get(as("0x9"));t[as("0xa")][as("0x0")]("formatBlock","replaceImageSource",as("0x8"),t[as("0xa")][as("0x15")](as("0xd"),null,as("0x10"))),t[as("0xa")].registerCustomCallback(as("0xd"),as("0x1a"),as("0x10"),t._suggestionFactory[as("0x15")]("formatBlock",null,as("0x8"))),this[as("0x18")]()}[as("0x18")](){const t=this.editor,e=t.locale;t.plugins[as("0x17")](as("0x9"))._descriptionFactory[as("0xe")]((t=>{if(as("0xd")!=t[as("0x4")]&&as("0xb")!=t[as("0x4")])return;const{data:n}=t;return n&&as("0x1a")==n.commandName?{type:as("0x6"),content:Qo(e,as("0x14"))}:void 0}))}}const ls=["FORMAT_SIDE_IMAGE","editor","refresh","registerCustomCallback","has","registerDescriptionCallback","ImageUtils","subType","start","name","getFirstRange","imageStylePreApply","suggestion","setImageNaturalSizeAttributes","length","join","imageStyle","getChangedMarkers","commandReversedParams","commandParams","nodeBefore","locale","afterInit","next","title","isBlockImage","differ","formatBlock","registerPostFixer","isIntersecting","from","isEqual","plugins","getSuggestion","ImageStyleEditing","imageTypeBlock","side","model","end","_findSuggestions","document","findIndex","commandName","format","getClosestSelectedImageElement","convertInlineImageToBlock","normalizedStyles","enableCommand","get","toLowerCase","value","filter","author","commands","discardSuggestion","discard","shouldConvertImageType","accept","*Format:* %0","markBlockFormat","formatInline","getContainedElement","_splitMarkerName","Users","_suggestionFactory","_registerLegacyDescription","insertion","imageStylePostApply","newRange","getSuggestions","imageCaption","isInContent","isInlineImage","createRangeOn","type","_descriptionFactory","forEach","selection","getSuggestionCallback"];var us,ds;us=ls,ds=324,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};class fs extends t.Plugin{[gs("0xe")](){const t=this[gs("0x48")];if(!t[gs("0x18")][gs("0x4b")]("ImageStyleEditing"))return;const n=t[gs("0x18")][gs("0x28")]("TrackChangesEditing"),o=t.plugins[gs("0x28")](gs("0x4d")),i={};n[gs("0x27")](gs("0x8"),((i,r)=>{const s=t.plugins[gs("0x28")](gs("0x37")).me,x=t[gs("0x2d")][gs("0x28")](gs("0x8"));let a=o.getClosestSelectedImageElement(t.model[gs("0x20")][gs("0x45")]),c=t.model[gs("0x41")](a),l=x[gs("0x2a")];if(l==r[gs("0x2a")])return;const u={commandName:gs("0x8"),commandParams:[r],formatGroupId:(0,e.uid)()};t.model.change((()=>{if(n[gs("0x3d")]()[gs("0x2b")]((t=>t[gs("0x3f")]&&s==t[gs("0x2c")]&&(gs("0x13")==t[gs("0x42")]||gs("0x34")==t[gs("0x42")])&&(gs("0x3")==t[gs("0x4e")]||gs("0x3b")==t[gs("0x4e")])&&t[gs("0x2")]()[gs("0x17")](c)))[gs("0x44")]((t=>n[gs("0x2e")](t.head))),a=o[gs("0x24")](t[gs("0x1d")][gs("0x20")].selection),c=t.model[gs("0x41")](a),x[gs("0x49")](),t.commands[gs("0x28")]("imageTypeInline")[gs("0x49")](),t[gs("0x2d")].get(gs("0x1b"))[gs("0x49")](),l=x.value,l!=r[gs("0x2a")])return o[gs("0x40")](a)&&x[gs("0x30")](r[gs("0x2a")],a)?(i({...r,setImageSizes:!1}),a=o[gs("0x24")](t[gs("0x1d")].document.selection),void n[gs("0x33")](a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],"imageStylePreApply")):void(o[gs("0x11")](a)?n[gs("0x33")](a,u,[],gs("0x3b")):n.markInlineFormat(c,u,gs("0x3b")))}))}));for(const e of t[gs("0x18")][gs("0x28")](gs("0x1a"))[gs("0x26")])i[e[gs("0x1")]]=e[gs("0x10")][gs("0x29")]();n._suggestionFactory[gs("0x4a")](gs("0x13"),gs("0x3"),gs("0x7"),(()=>!1)),n._suggestionFactory.registerCustomCallback(gs("0x13"),gs("0x3b"),"join",(()=>!1)),n[gs("0x38")][gs("0x4a")](gs("0x34"),gs("0x3b"),"join",(()=>!1)),n._suggestionFactory[gs("0x4a")](gs("0x13"),"imageStylePreApply",gs("0x31"),(([t])=>{o[gs("0x5")](t.getContainedElement())})),n[gs("0x38")].registerCustomCallback(gs("0x13"),gs("0x3"),gs("0x2f"),((t,e)=>{n[gs("0x38")][gs("0x46")]("formatBlock","",gs("0x31"))(t,{commandName:e[gs("0x22")],commandParams:e[gs("0xa")]})})),n[gs("0x38")][gs("0x4a")](gs("0x13"),gs("0x3"),"chain",(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const r=[{type:gs("0x13"),subType:gs("0x3")},{type:"insertion",subType:gs("0x3e")},{type:"formatBlock",subType:"convertInlineImageToBlock"},{type:gs("0x3a"),subType:gs("0x25")}];function s(t,e){const i=r.findIndex((({type:e,subType:n})=>t[gs("0x42")]==e&&t[gs("0x4e")]==n)),s=r[gs("0x21")]((({type:t,subType:n})=>e[gs("0x42")]==t&&e[gs("0x4e")]==n));if(i<0||s<0)return!1;const x=t[gs("0x2")](),a=e[gs("0x2")]();if((0==i||1==i)&&2==s&&x[gs("0x15")](a))return!0;if(2==i&&3==s){const t=n[gs("0x1f")](x,gs("0x3a"))[gs("0x2b")]((({suggestion:t,meta:e})=>e.isOwn&&gs("0x25")==t[gs("0x4e")]));if(t.length>1&&a[gs("0x1e")][gs("0x17")](x[gs("0x0")]))return!0;if(1==t[gs("0x6")]&&(x[gs("0x0")][gs("0x17")](a[gs("0x1e")])||x[gs("0x1e")][gs("0x17")](a.start)))return!0}if(3==i&&3==s&&x[gs("0x0")].isBefore(a[gs("0x0")])){const t=x[gs("0x1e")].nodeAfter,e=a[gs("0x0")][gs("0xc")];return o.isBlockImage(t)&&t===e}return!1}t.model[gs("0x20")][gs("0x14")]((()=>{let e=!1;const i=Array[gs("0x16")](t[gs("0x1d")][gs("0x20")][gs("0x12")][gs("0x9")]());for(const{name:t,data:r}of i){const{group:i,type:s,subType:x,id:a}=n[gs("0x36")](t);if(gs("0x4")==i&&n.hasSuggestion(a)){if(gs("0x13")==s&&(gs("0x3")==x||"imageStylePostApply"==x)){const t=n[gs("0x19")](a);if(r[gs("0x3c")]){const i=t[gs("0x2")]()[gs("0x35")]();if(o[gs("0x11")](i))continue;n[gs("0x2e")](t),e=!0}}if("insertion"==s&&gs("0x3e")==x&&!r.newRange){const t=n[gs("0x19")](a);t[gs("0xf")]&&t[gs("0xf")][gs("0x3f")]&&(n[gs("0x2e")](t[gs("0xf")]),e=!0)}}}return e})),this[gs("0x39")](i)}[gs("0x39")](t){const e=this[gs("0x48")],n=e[gs("0xd")];e[gs("0x18")].get("TrackChangesEditing")[gs("0x43")][gs("0x4c")]((e=>{if("formatBlock"!=e[gs("0x42")]&&"formatInline"!=e[gs("0x42")])return;const{data:o}=e;if(!o||"imageStyle"!=o[gs("0x22")])return;const i=o[gs("0xb")][0][gs("0x2a")];return r=gs("0x1c")===i?Qo(n,gs("0x47")):t[i]||i,{type:gs("0x23"),content:Qo(n,gs("0x32"),r)};var r}))}}const ms=["editor","forEach","importWord","_trackChangesExecuted","dataInsert","get","_trackChangesValueDuringImport","commands","execute","_handleImportedData","listenTo","_setSuggestionData","trackChanges","TrackChangesEditing","value","plugins"];var hs,ps;hs=ms,ps=127,function(t){for(;--t;)hs.push(hs.shift())}(++ps);const bs=function(t,e){return ms[t-=0]};class Es extends t.Plugin{constructor(t){super(t),this[bs("0x7")]=!1,this._trackChangesExecuted=!1}afterInit(){const t=this[bs("0x1")],e=t.commands[bs("0x6")](bs("0x3")),n=t[bs("0x8")].get(bs("0xd"));e&&(e.on("execute",((t,[,e])=>{this._trackChangesValueDuringImport=n.value,e.collaboration_features.track_changes=!this[bs("0x7")]}),{priority:"high"}),this.listenTo(e,bs("0x5"),this[bs("0xa")].bind(this)),this[bs("0xb")](e,bs("0x5"),(()=>{this[bs("0x4")]&&(n[bs("0x9")](),this._trackChangesExecuted=!1)}),{priority:"lowest"}),t[bs("0x0")][bs("0x6")](bs("0xe")).enableCommand(bs("0x3")))}[bs("0xa")](t,e){const{suggestions:n}=e,o=this.editor[bs("0x8")].get("trackChanges"),i=o[bs("0xf")];this[bs("0x7")]!==i&&(o[bs("0x9")](),this[bs("0x4")]=!0),n&&n[bs("0x2")]((({id:t,type:e,author:n,created_at:o})=>{const i={id:t,type:e,authorId:this[bs("0x1")][bs("0x0")][bs("0x6")]("Users").me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:"importWord"}}};this[bs("0x1")][bs("0x0")][bs("0x6")](bs("0xe"))[bs("0xc")](i)}))}}const _s=["FORMAT_INDENT","enableCommand","_descriptionFactory","indent","IndentEditing","get","getItemLabel","_registerBlockAttribute","has","locale","plugins","outdent","IndentBlock","*Indent:* %0","afterInit","outdentBlock","commandName","formatBlock","editor","blockIndent","registerAttributeLabel","_registerLegacyDescription","indentBlock","format"];var Ts,ys;Ts=_s,ys=481,function(t){for(;--t;)Ts.push(Ts.shift())}(++ys);const Cs=function(t,e){return _s[t-=0]};class As extends t.Plugin{[Cs("0xd")](){const t=this[Cs("0x11")],e=t[Cs("0x9")][Cs("0x4")]("TrackChangesEditing");if(t[Cs("0x9")][Cs("0x7")](Cs("0x3"))&&(e[Cs("0x0")](Cs("0x2")),e[Cs("0x0")](Cs("0xa"))),t[Cs("0x9")][Cs("0x7")](Cs("0xb")))for(const t of[Cs("0x15"),Cs("0xe")])e._enableDefaultAttributesIntegration(t);const n=t[Cs("0x8")];e[Cs("0x6")]("blockIndent"),e[Cs("0x1")][Cs("0x13")](Cs("0x12"),Qo(n,Cs("0x17"))),this._registerLegacyDescription()}[Cs("0x14")](){const t=this.editor,e=t[Cs("0x8")],n=t.plugins[Cs("0x4")]("TrackChangesEditing");n[Cs("0x1")].registerDescriptionCallback((t=>{if(Cs("0x10")!=t.type)return;const{data:o}=t;if(!o)return;if(Cs("0x15")!=o[Cs("0xf")]&&Cs("0xe")!=o[Cs("0xf")])return;const i=t.getItems()[0],r=n[Cs("0x1")][Cs("0x5")](i);return Cs("0x15")==o[Cs("0xf")]?{type:Cs("0x16"),content:Qo(e,Cs("0xc"),r)}:"outdentBlock"==o[Cs("0xf")]?{type:Cs("0x16"),content:Qo(e,"*Outdent:* %0",r)}:void 0}))}}var ks,Is,Rs=["enableCommand","requires","TrackChangesEditing","init","editor","get","plugins"];ks=Rs,Is=122,function(t){for(;--t;)ks.push(ks.shift())}(++Is);var Ss=function(t,e){return Rs[t-=0]};class vs extends t.Plugin{static get[Ss("0x5")](){return[Hi.Input]}[Ss("0x0")](){this[Ss("0x1")][Ss("0x3")][Ss("0x2")](Ss("0x6"))[Ss("0x4")]("input")}}const Ns=["plugins","newValue","key","get","link (","label","format","formatInline","TrackChangesEditing","locale","commands","_descriptionFactory","*Remove link*","LinkEditing","*Set link:* %0","commandName","unlink","manualDecorators","afterInit","type","_enableDefaultAttributesIntegration","editor","registerDescriptionCallback","has","_registerLegacyDescription","link"];var Ls,Ms;Ls=Ns,Ms=359,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ms);const ws=function(t,e){return Ns[t-=0]};class Os extends t.Plugin{[ws("0x17")](){const t=this[ws("0x0")];if(!t.plugins[ws("0x2")](ws("0x12")))return;const e=t[ws("0x5")][ws("0x8")]("TrackChangesEditing"),n=t[ws("0xf")][ws("0x8")](ws("0x4"));e[ws("0x19")](ws("0x4"),["linkHref",...n[ws("0x16")].map((t=>t.id))]),e[ws("0x19")](ws("0x15"));for(const t of n[ws("0x16")])e[ws("0x10")].registerAttributeLabel(t.id,ws("0x9")+t[ws("0xa")].toLowerCase()+")");e[ws("0x10")][ws("0x1")]((e=>{if("attribute"!=e[ws("0x18")])return;const{data:n}=e;if(!n||"linkHref"!=n[ws("0x7")])return;const o=n[ws("0x6")],i=t[ws("0xe")];return{type:ws("0xb"),content:null==o?Qo(i,ws("0x11")):Qo(i,ws("0x13"),'"'+o+'"')}})),this[ws("0x3")]()}[ws("0x3")](){const t=this[ws("0x0")],e=t[ws("0xe")];t.plugins.get(ws("0xd"))[ws("0x10")].registerDescriptionCallback((t=>{if(ws("0xc")!=t[ws("0x18")])return;const{data:n}=t;if(n){if(ws("0x4")==n[ws("0x14")]){const t=n.commandParams[0];return{type:ws("0xb"),content:Qo(e,ws("0x13"),'"'+t+'"')}}return"unlink"==n.commandName?{type:ws("0xb"),content:Qo(e,ws("0x11"))}:void 0}}))}}const Fs=["plugins","type","listItem","afterInit","markBlockFormat","name","locale","forceValue","formatInline","add","indentList","end","createRange","has","ListEditing","commandParams","ELEMENT_BULLETED_LIST","*Uncheck item*","formatBlock","_descriptionFactory","before","createPositionAt","checkChild","editor","*Check item*","nextSibling","listType","format","commands","todoList","commandName","bulletedList","from","schema","get","previousSibling","blockName","slice","registerDescriptionCallback","checkTodoList","model","length","listIndent","element","getSelectedBlocks","ELEMENT_TODO_LIST","paragraph","ELEMENT_NUMBERED_LIST","parent","document","numberedList","value","selection","numbered","*Indent:* %0","*Change to:* %0","enableCommand","List","change","execute","ELEMENT_LIST_ITEM","registerElementLabel","outdentList","TodoListEditing","bulleted","todoListChecked","getAttribute","filter","todo"];var Ds,Bs;Ds=Fs,Bs=199,function(t){for(;--t;)Ds.push(Ds.shift())}(++Bs);const Ps=function(t,e){return Fs[t-=0]};class Us extends t.Plugin{[Ps("0xb")](){const t=this[Ps("0x1f")],e=t[Ps("0xe")];if(!t[Ps("0x8")][Ps("0x15")](Ps("0x16")))return;const n=t[Ps("0x8")].get("TrackChangesEditing"),o=t.plugins[Ps("0x15")](Ps("0x2"));function i(e){return()=>{const o=t[Ps("0x30")][Ps("0x39")][Ps("0x3c")],i=t[Ps("0x24")][Ps("0x2a")](e);if(i[Ps("0x3b")])return void t[Ps("0x43")](Ps("0x36"),{});const r=e[Ps("0x2d")](0,-4),s=function(t,e,n){let o=Array[Ps("0x28")](t)[Ps("0x6")]((t=>{return e=t,(o=n)[Ps("0x1e")](e[Ps("0x38")],Ps("0xa"))&&!o.isObject(e);var e,o}));o=o[Ps("0x6")]((t=>!t.is("element",Ps("0xa"))||t[Ps("0x5")](Ps("0x22"))!=e));const i=new Set;for(const t of o)t.is(Ps("0x33"),"listItem")?i[Ps("0x11")](js(t)):i.add(t);return Array[Ps("0x28")](i)}(o[Ps("0x34")](),r,t[Ps("0x30")][Ps("0x29")]);t[Ps("0x30")][Ps("0x42")]((()=>{for(const t of s)n[Ps("0xc")](t,{commandName:e,commandParams:[{forceValue:!i.value}],formatGroupId:Ps("0x2c")},Gs(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[Ps("0x28")](t);const n=e.findIndex((t=>Ps("0xa")!=t[Ps("0xd")]));return n>-1&&(e=e[Ps("0x2d")](0,n)),e}(t[Ps("0x30")].document[Ps("0x3c")][Ps("0x34")]()),i=t[Ps("0x30")][Ps("0x14")](t[Ps("0x30")].createPositionAt(o[0],Ps("0x1c")),t[Ps("0x30")][Ps("0x1d")](o[o[Ps("0x31")]-1],Ps("0x13")));t[Ps("0x30")][Ps("0x42")]((()=>{n.markBlockFormat(i,{commandName:e,commandParams:[],formatGroupId:Ps("0x32")},function(t){const e=new Set;for(const n of t){let t=n[Ps("0x21")];for(;t&&t.getAttribute(Ps("0x32"))>n[Ps("0x5")](Ps("0x32"));)e[Ps("0x11")](t),t=t[Ps("0x21")]}return Array[Ps("0x28")](e)}(o))}))}}n[Ps("0x40")](Ps("0x3a"),i(Ps("0x3a"))),n.enableCommand(Ps("0x27"),i("bulletedList")),o&&n.enableCommand(Ps("0x25"),i("todoList")),n[Ps("0x40")](Ps("0x12"),r(Ps("0x12"))),n[Ps("0x40")]("outdentList",r(Ps("0x1"))),o&&n[Ps("0x40")](Ps("0x2f"),(()=>{const e=t.commands[Ps("0x2a")](Ps("0x2f")),o=Array[Ps("0x28")](e._selectedElements);o[Ps("0x6")]((t=>t.getAttribute(Ps("0x4"))!=e[Ps("0x3b")])),t.model.change((()=>{for(const t of o)n[Ps("0xc")](t,{commandName:Ps("0x2f"),commandParams:[{forceValue:!e.value}]})}))})),n[Ps("0x1b")][Ps("0x0")](Ps("0xa"),(t=>Qo(e,"ELEMENT_LIST_ITEM",t))),n[Ps("0x1b")][Ps("0x2e")]((t=>{if(Ps("0x1a")!=t[Ps("0x9")]&&Ps("0x10")!=t[Ps("0x9")])return;const{data:n}=t;if(n){if(Ps("0x3a")==n[Ps("0x26")]||Ps("0x27")==n[Ps("0x26")]||Ps("0x25")==n[Ps("0x26")])switch(n[Ps("0x26")].replace(Ps("0x41"),"")){case Ps("0x3"):return o(Qo(e,Ps("0x18")));case Ps("0x3d"):return o(Qo(e,Ps("0x37")));case Ps("0x7"):return o(Qo(e,Ps("0x35")))}if(Ps("0x12")==n[Ps("0x26")])return{type:Ps("0x23"),content:Qo(e,Ps("0x3e"),Qo(e,Ps("0x44")))};if(Ps("0x1")==n[Ps("0x26")])return{type:Ps("0x23"),content:Qo(e,"*Outdent:* %0",Qo(e,Ps("0x44")))};if("checkTodoList"==n[Ps("0x26")])return n[Ps("0x17")][0][Ps("0xf")]?{type:"format",content:Qo(e,Ps("0x20"))}:{type:"format",content:Qo(e,Ps("0x19"))}}function o(t){return{type:Ps("0x23"),content:Qo(e,Ps("0x3f"),t)}}}))}}function js(t){const e=t[Ps("0x5")](Ps("0x32"));if(0==e)return t;let n=t;for(;t.previousSibling&&t.previousSibling.is(Ps("0x33"),"listItem");){const o=t[Ps("0x2b")].getAttribute(Ps("0x32"));if(o==e)n=t[Ps("0x2b")];else if(o<e)break;t=t[Ps("0x2b")]}return n}function Gs(t){const e=[];if(t.is("element",Ps("0xa"))&&t.getAttribute(Ps("0x32"))>0){let n=t[Ps("0x21")];for(;n&&"listItem"==n[Ps("0xd")]&&n[Ps("0x5")](Ps("0x32"))==t[Ps("0x5")](Ps("0x32"));)e.push(n),n=n[Ps("0x21")]}return e}const Vs=["has","type","replace","formatBlock","*Format:* set order to regular","createRange","getAttribute","selection","listType","document","toUpperCase","reversed","handleListStartCommand","styles","enableCommand","format","map","getFirstPosition","*Format:* set start index to %0","before","startIndex","markMultiRangeBlockFormat","handleListStyleCommand","getSiblingNodes","length","_getSuggestionBlocks","handleListReversedCommand","getListTypeFromListStyleType","from","locale","commandName","ListUtils","_getTranslationKeyForListStyle","change","getLastPosition","*Change to:* %0","commandParams","listReversed","filter","getSelectedBlocks","listStyle","numbered","listItem","editor","_descriptionFactory","list.properties","config","TrackChangesEditing","model","ListPropertiesEditing","forward","parent","get","registerDescriptionCallback","element","listStart","plugins","handleDescriptions","createPositionAt","push","bind","backward"];var Hs,zs;Hs=Vs,zs=214,function(t){for(;--t;)Hs.push(Hs.shift())}(++zs);const Ws=function(t,e){return Vs[t-=0]};class Ks extends t.Plugin{afterInit(){if(!this[Ws("0xf")][Ws("0x1c")][Ws("0x22")](Ws("0x15")))return;const t=this[Ws("0xf")][Ws("0x12")][Ws("0x18")](Ws("0x11")),e=this[Ws("0xf")][Ws("0x1c")][Ws("0x18")](Ws("0x13"));t[Ws("0x2f")]&&e[Ws("0x30")](Ws("0xc"),this[Ws("0x38")][Ws("0x20")](this)),t[Ws("0x2d")]&&e[Ws("0x30")](Ws("0x9"),this[Ws("0x3c")].bind(this)),t[Ws("0x36")]&&e.enableCommand(Ws("0x1b"),this[Ws("0x2e")].bind(this)),e[Ws("0x10")][Ws("0x19")](this[Ws("0x1d")][Ws("0x20")](this))}[Ws("0x38")](t,e={}){const n=this[Ws("0xf")][Ws("0x1c")][Ws("0x18")](Ws("0x13")),o=this._getSuggestionBlocksForListStyle();this[Ws("0xf")].model.change((()=>{n.markMultiRangeBlockFormat(o,{commandName:Ws("0xc"),commandParams:[{type:e[Ws("0x23")]}],formatGroupId:Ws("0xc")})}))}[Ws("0x3c")](t,e={}){const n=this[Ws("0xf")][Ws("0x1c")][Ws("0x18")](Ws("0x13")),o=this[Ws("0x3b")]((t=>t.is(Ws("0x1a"),Ws("0xe"))&&Ws("0xd")===t[Ws("0x28")](Ws("0x2a"))));if(o[Ws("0x3a")]<1)return;const i=o.map((t=>this[Ws("0xf")][Ws("0x14")][Ws("0x27")](this[Ws("0xf")][Ws("0x14")].createPositionAt(t,Ws("0x35")),this[Ws("0xf")][Ws("0x14")].createPositionAt(t,0))));this[Ws("0xf")].model[Ws("0x5")]((()=>{n[Ws("0x37")](i,{commandName:Ws("0x9"),commandParams:[{reversed:e.reversed}],formatGroupId:Ws("0x9")})}))}[Ws("0x2e")](t,e={}){const n=this[Ws("0xf")].plugins.get(Ws("0x13")),o=this[Ws("0x3b")]((t=>t.is(Ws("0x1a"),Ws("0xe"))&&"numbered"===t[Ws("0x28")](Ws("0x2a"))));if(o[Ws("0x3a")]<1)return;const i=o[Ws("0x32")]((t=>this.editor[Ws("0x14")].createRange(this[Ws("0xf")][Ws("0x14")][Ws("0x1e")](t,Ws("0x35")),this.editor[Ws("0x14")][Ws("0x1e")](t,0))));this[Ws("0xf")][Ws("0x14")][Ws("0x5")]((()=>{n.markMultiRangeBlockFormat(i,{commandName:Ws("0x1b"),commandParams:[{startIndex:e[Ws("0x36")]}],formatGroupId:Ws("0x1b")})}))}[Ws("0x1d")](t){if(Ws("0x25")!=t.type&&"formatInline"!=t[Ws("0x23")])return;const e=this[Ws("0xf")][Ws("0x1")],{data:n}=t;if(!n)return;let o,i;switch(n[Ws("0x2")]){case Ws("0xc"):o=Ws("0x7"),i={type:Ws("0x31"),content:Qo(e,o,Qo(e,this[Ws("0x4")](n[Ws("0x8")][0][Ws("0x23")])))};break;case Ws("0x9"):o=n.commandParams[0].reversed?"*Format:* set order to reversed":Ws("0x26"),i={type:Ws("0x31"),content:Qo(e,o)};break;case Ws("0x1b"):o=Ws("0x34"),i={type:Ws("0x31"),content:Qo(e,o,n.commandParams[0][Ws("0x36")])}}return i}_getSuggestionBlocksForListStyle(){var t,e,n,o;const i=this[Ws("0xf")].plugins[Ws("0x18")](Ws("0x3"));let r=Array[Ws("0x0")](this[Ws("0xf")][Ws("0x14")].document.selection[Ws("0xb")]());return(null===(t=r[0])||void 0===t?void 0:t.is(Ws("0x1a"),"listItem"))&&r.unshift(...i[Ws("0x39")](this[Ws("0xf")][Ws("0x14")][Ws("0x2b")][Ws("0x29")][Ws("0x33")](),Ws("0x21"))),(null===(e=r[r[Ws("0x3a")]-1])||void 0===e?void 0:e.is(Ws("0x1a"),"listItem"))&&r[Ws("0x1f")](...i[Ws("0x39")](this[Ws("0xf")][Ws("0x14")][Ws("0x2b")][Ws("0x29")][Ws("0x6")](),"forward")),r=[...new Set(r)],(null===(o=null===(n=this[Ws("0xf")].model[Ws("0x2b")][Ws("0x29")][Ws("0x33")]())||void 0===n?void 0:n[Ws("0x17")])||void 0===o?void 0:o.is(Ws("0x1a"),"listItem"))&&(r=r[Ws("0xa")]((t=>t.is("element","listItem")))),r}[Ws("0x3b")](t){const e=this[Ws("0xf")].plugins[Ws("0x18")](Ws("0x3"));let n=Array[Ws("0x0")](this[Ws("0xf")][Ws("0x14")].document[Ws("0x29")][Ws("0xb")]())[Ws("0xa")](t).map((t=>{const n=this[Ws("0xf")][Ws("0x14")][Ws("0x1e")](t,0);return[...e[Ws("0x39")](n,Ws("0x21")),...e[Ws("0x39")](n,Ws("0x16"))]})).flat();return n=[...new Set(n)],n}[Ws("0x4")](t){return"ELEMENT_"+this.editor.plugins[Ws("0x18")](Ws("0x3"))[Ws("0x3d")](t)[Ws("0x2c")]()+"_LIST_"+t.toUpperCase()[Ws("0x24")](/-/g,"_")}}const qs=["data","ELEMENT_MEDIA","showSuggestionHighlights","createEmptyElement","has","options","plugins","MediaEmbedEditing","locale","TrackChangesEditing","registerElementLabel","downcastDispatcher","div","stop","attribute:url:media","mediaEmbed","get","_descriptionFactory","high","conversion","elementToElement","dataDowncast","enableCommand","media","afterInit"];var Xs,$s;Xs=qs,$s=197,function(t){for(;--t;)Xs.push(Xs.shift())}(++$s);const Zs=function(t,e){return qs[t-=0]};class Ys extends t.Plugin{[Zs("0x2")](){const t=this.editor;if(!t[Zs("0x9")][Zs("0x7")](Zs("0xa")))return;const e=t[Zs("0x9")][Zs("0x13")](Zs("0xc")),n=t[Zs("0xb")];e[Zs("0x0")](Zs("0x12")),e[Zs("0x14")][Zs("0xd")](Zs("0x1"),(t=>Qo(n,Zs("0x4"),t))),t[Zs("0x16")].for(Zs("0x18"))[Zs("0x17")]({model:Zs("0x1"),view:(t,{writer:e,options:n})=>{if(n[Zs("0x5")])return e[Zs("0x6")](Zs("0xf"))},converterPriority:Zs("0x15")}),t[Zs("0x3")][Zs("0xe")].on(Zs("0x11"),((t,e,n)=>{n[Zs("0x8")][Zs("0x5")]&&t[Zs("0x10")]()}),{priority:"high"})}}const Js=["plugins","has","get","mention","editor","afterInit","MentionEditing","TrackChangesEditing","enableCommand"];var Qs,tx;Qs=Js,tx=410,function(t){for(;--t;)Qs.push(Qs.shift())}(++tx);const ex=function(t,e){return Js[t-=0]};class nx extends t.Plugin{[ex("0x0")](){const t=this[ex("0x8")];t[ex("0x4")][ex("0x5")](ex("0x1"))&&t[ex("0x4")][ex("0x6")](ex("0x2"))[ex("0x3")](ex("0x7"))}}const ox=["ELEMENT_PAGE_BREAK","registerElementLabel","TrackChangesEditing","afterInit","locale","has","PageBreakEditing","pageBreak","enableCommand","get","plugins"];var ix,rx;ix=ox,rx=280,function(t){for(;--t;)ix.push(ix.shift())}(++rx);const sx=function(t,e){return ox[t-=0]};class xx extends t.Plugin{[sx("0x9")](){const t=this.editor;if(!t[sx("0x5")][sx("0x0")](sx("0x1")))return;t[sx("0x5")][sx("0x4")](sx("0x8"))[sx("0x3")](sx("0x2"));const e=t[sx("0x5")][sx("0x4")](sx("0x8")),n=t[sx("0xa")];e._descriptionFactory[sx("0x7")](sx("0x2"),(t=>Qo(n,sx("0x6"),t)))}}const ax=["span","locale","plugins","registerDescriptionCallback","getFirstRange","consumable","format","isBlock","editor","createUIElement","bindElementToMarker","highest","isLimit","consume","schema","get","isTouching","ck-suggestion-marker--active","_registerLegacyDescription","type","editing","formatBlock","insertion","mapper","addMarker:suggestion:insertion","checkChild","*Change to:* %0","downcastDispatcher","$text","model","markerName","markerRange","start","_enableDefaultAttributesIntegration","data","Paragraph","options","writer","name","has","nodeAfter","end","commandName","insert","*Insert:* %0","_descriptionFactory","paragraph","getItemLabel","TrackChangesEditing","afterInit","showSuggestionHighlights"];var cx,lx;cx=ax,lx=470,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{[ux("0x26")](){const t=this[ux("0x30")];if(!t[ux("0x2a")][ux("0x1c")](ux("0x18")))return;const e=t.locale,n=t.plugins[ux("0x4")](ux("0x25"));n._descriptionFactory.registerElementLabel(ux("0x23"),(t=>Qo(e,"ELEMENT_PARAGRAPH",t))),n[ux("0x16")](ux("0x23")),n.enableCommand("insertParagraph"),t[ux("0x9")][ux("0x10")].on("addMarker:suggestion:insertion",gx(t),{priority:ux("0x0")}),t[ux("0x17")][ux("0x10")].on(ux("0xd"),((e,n,o)=>{o[ux("0x19")][ux("0x27")]&&gx(t,{showActiveMarker:!1})(e,n,o)}),{priority:"highest"});const o=n[ux("0x22")];o[ux("0x2b")]((n=>{if(ux("0xb")!==n[ux("0x8")])return;const{start:i,end:r}=n[ux("0x2c")]();if(!i[ux("0x5")](r)||!i[ux("0x1d")])return;const s=t[ux("0x12")].schema,x=i[ux("0x1d")];return s.isBlock(x)&&!s[ux("0x1")](x)&&s.checkChild(x,ux("0x11"))?{type:ux("0xb"),content:Qo(e,ux("0x21"),o[ux("0x24")](x,1))}:void 0})),this._registerLegacyDescription()}[ux("0x7")](){const t=this[ux("0x30")],e=t[ux("0x29")];t[ux("0x2a")][ux("0x4")](ux("0x25"))[ux("0x22")][ux("0x2b")]((t=>{if(ux("0xa")!=t[ux("0x8")])return;const{data:n}=t;return n&&"paragraph"==n[ux("0x1f")]?{type:ux("0x2e"),content:Qo(e,ux("0xf"),Qo(e,"ELEMENT_PARAGRAPH"))}:void 0}))}}function gx(t,{showActiveMarker:e=!0}={}){return(n,o,i)=>{const r=t[ux("0x2a")][ux("0x4")](ux("0x25")),s=o.markerRange[ux("0x15")],x=o[ux("0x14")][ux("0x1e")],a=t[ux("0x12")][ux("0x3")];if(!s[ux("0x5")](x)||!s[ux("0x1d")])return;const c=s[ux("0x1d")];if(a[ux("0x2f")](c)&&!a[ux("0x1")](c)&&a[ux("0xe")](c,ux("0x11"))){if(!i[ux("0x2d")][ux("0x2")](o.markerRange,n[ux("0x1b")]))return;const t=i.writer[ux("0x31")](ux("0x28"),{class:"ck-suggestion-marker-split"}),s=i[ux("0xc")].toViewPosition(x);e&&r.activeMarkers.includes(o.markerName)&&i.writer.addClass(ux("0x6"),t),i[ux("0x1a")][ux("0x20")](s,t),i[ux("0xc")][ux("0x32")](t,o[ux("0x13")])}}}const fx=["editor","registerDescriptionCallback","_enableDefaultAttributesIntegration","type","has","commandName","format","get","removeFormat","formatBlock","locale","plugins","*Remove all formatting*","_registerLegacyDescription","afterInit","RemoveFormatEditing","formatInline"];var mx,hx;mx=fx,hx=348,function(t){for(;--t;)mx.push(mx.shift())}(++hx);const px=function(t,e){return fx[t-=0]};class bx extends t.Plugin{[px("0x6")](){const t=this[px("0x9")];t[px("0x3")][px("0xd")](px("0x7"))&&(t[px("0x3")][px("0x10")]("TrackChangesEditing")[px("0xb")](px("0x0")),this[px("0x5")]())}[px("0x5")](){const t=this[px("0x9")];t.plugins[px("0x10")]("TrackChangesEditing")._descriptionFactory[px("0xa")]((e=>{if(px("0x1")!=e[px("0xc")]&&px("0x8")!=e[px("0xc")])return;const{data:n}=e;return n&&px("0x0")==n[px("0xe")]?{type:px("0xf"),content:Qo(t[px("0x2")],px("0x4"))}:void 0}))}}const Ex=["acceptSuggestion","RestrictedEditingModeEditing","get","editor","plugins","afterInit","discardSelectedSuggestions","discardSuggestion","goToPreviousRestrictedEditingException","TrackChangesEditing","acceptSelectedSuggestions","discardAllSuggestions","goToNextRestrictedEditingException","has","enableCommand"];var _x,Tx;_x=Ex,Tx=410,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const yx=function(t,e){return Ex[t-=0]};class Cx extends t.Plugin{[yx("0x0")](){const t=this[yx("0xd")];if(!t[yx("0xe")][yx("0x8")](yx("0xb")))return;const e=t.plugins[yx("0xc")](yx("0x4"));e[yx("0x9")](yx("0x3")),e.enableCommand(yx("0x7"));const n=t[yx("0xe")].get(yx("0xb"));n[yx("0x9")]("trackChanges"),n[yx("0x9")](yx("0xa")),n[yx("0x9")](yx("0x2")),n[yx("0x9")]("acceptAllSuggestions"),n[yx("0x9")](yx("0x6")),n[yx("0x9")](yx("0x5")),n[yx("0x9")](yx("0x1"))}}const Ax=["get","deletion","bindElementToMarker","requires","mapper","addMarker:suggestion","data","getItems","name","element","createPositionBefore","split","showSuggestionHighlights","downcastDispatcher","markerName","addClass","TrackChangesEditing","createUIElement","activeMarkers","span","enableCommand","high","writer","editor","ck-suggestion-marker-","merge","test","plugins","markerRange","toViewPosition","includes","editing","locale","init","ELEMENT_LINE_BREAK","consumable","shiftEnter","options","insert","softBreak"];var kx,Ix;kx=Ax,Ix=158,function(t){for(;--t;)kx.push(kx.shift())}(++Ix);const Rx=function(t,e){return Ax[t-=0]};class Sx extends t.Plugin{static get[Rx("0x5")](){return[ur.ShiftEnter]}[Rx("0x23")](){const t=this[Rx("0x19")],e=t[Rx("0x1d")][Rx("0x2")](Rx("0x12"));e[Rx("0x16")](Rx("0x26")),t[Rx("0x21")].downcastDispatcher.on("addMarker:suggestion:insertion",vx(t),{priority:Rx("0x17")}),t.editing[Rx("0xf")].on("addMarker:suggestion:deletion",vx(t),{priority:"high"}),t[Rx("0x8")].downcastDispatcher.on(Rx("0x7"),((e,n,o)=>{o[Rx("0x27")][Rx("0xe")]&&vx(t,{showActiveMarker:!1})(e,n,o)})),e._descriptionFactory.registerElementLabel("softBreak",(e=>Qo(t[Rx("0x22")],Rx("0x24"),e)))}}function vx(t,{showActiveMarker:e=!0}={}){return(n,o,i)=>{const r=t[Rx("0x1d")][Rx("0x2")](Rx("0x12"));if(!i[Rx("0x25")][Rx("0x1c")](o[Rx("0x1e")],n[Rx("0xa")]))return;const s=t.model;for(const t of o[Rx("0x1e")][Rx("0x9")]()){if(!t.is(Rx("0xb"),Rx("0x1")))continue;const n=Rx("0x3")==o[Rx("0x10")][Rx("0xd")](":")[1]?Rx("0x1b"):Rx("0xd"),x=i.writer[Rx("0x13")](Rx("0x15"),{class:Rx("0x1a")+n}),a=i.mapper[Rx("0x1f")](s[Rx("0xc")](t));e&&r[Rx("0x14")][Rx("0x20")](o.markerName)&&i[Rx("0x18")][Rx("0x11")]("ck-suggestion-marker--active",x),i[Rx("0x18")][Rx("0x0")](a,x),i[Rx("0x6")][Rx("0x4")](x,o[Rx("0x10")])}}}const Nx=["FORMAT_RESTRICTED_ENABLED","enableCommand","plugins","from","commands","editor","type","formatBlock","afterInit","forceValue","value","has","StandardEditingModeEditing","isCollapsed","locale","getRanges","selection","registerDescriptionCallback","format","restrictedEditingException","change","get","formatInline"];var Lx,Mx;Lx=Nx,Mx=208,function(t){for(;--t;)Lx.push(Lx.shift())}(++Mx);const wx=function(t,e){return Nx[t-=0]};class Ox extends t.Plugin{[wx("0x7")](){const t=this[wx("0x4")],e=t.model,n=t[wx("0xd")];if(!t[wx("0x1")][wx("0xa")](wx("0xb")))return;const o=t[wx("0x1")].get("TrackChangesEditing"),i=wx("0x12"),r=t[wx("0x3")][wx("0x14")](i);o[wx("0x0")](i,((t,n={})=>{const s=e.document[wx("0xf")];if(s[wx("0xc")])return void t(n);const x=void 0!==n[wx("0x8")]?n[wx("0x8")]:!r[wx("0x9")];e[wx("0x13")]((()=>{const t=Array[wx("0x2")](s[wx("0xe")]());for(const n of t){const t=x?[n]:Xi(i,n,e);for(const e of t)o.markInlineFormat(e,{commandName:i,commandParams:[{forceValue:x}]})}}))})),o._descriptionFactory[wx("0x10")]((t=>{if(wx("0x6")!=t.type&&wx("0x15")!=t[wx("0x5")])return;const{data:e}=t;return e&&e.commandName==i?e.commandParams[0].forceValue?{type:wx("0x11"),content:Qo(n,wx("0x16"))}:{type:wx("0x11"),content:Qo(n,"FORMAT_RESTRICTED_DISABLED")}:void 0}))}}const Fx=["ghsAttributes","type","_registerBlockAttribute","forceValue","DataSchema","inline","normalizeConfig","plugins","FORMAT_STYLE","add","*Remove format:* %0","element","registerAttributeLabel","formatBlock","locale","has","commandParams","TrackChangesEditing","StyleUtils","*Set format:* %0","config","registerDescriptionCallback","afterInit","style","styleName","_registerLegacyDescription","getGhsAttributeNameForElement","format","_enableDefaultAttributesIntegration","toLowerCase","GeneralHtmlSupport","get","_descriptionFactory","editor","formatInline","_registerInlineAttribute"];var Dx,Bx;Dx=Fx,Bx=459,function(t){for(;--t;)Dx.push(Dx.shift())}(++Bx);const Px=function(t,e){return Fx[t-=0]};class Ux extends t.Plugin{[Px("0x1f")](){const t=this.editor;if(!t[Px("0x10")][Px("0x18")]("Style")||!t[Px("0x10")][Px("0x18")](Px("0xd")))return;const e=t.plugins[Px("0x4")](Px("0x1a")),n=t.locale,o=t[Px("0x1d")][Px("0x4")](Px("0x20")),i=t.plugins[Px("0x4")](Px("0x3")),r=t.plugins[Px("0x4")](Px("0x1b"))[Px("0xf")](t[Px("0x10")][Px("0x4")]("DataSchema"),o.definitions);e[Px("0x1")](Px("0x20"));const s=new Set;for(const t of r.block){const e=i[Px("0x23")](t[Px("0x14")]);s[Px("0x12")](e)}const x=new Set;for(const t of r[Px("0xe")]){const e=i.getGhsAttributeNameForElement(t[Px("0x14")]);x.add(e);for(const e of t[Px("0x9")])x[Px("0x12")](e)}for(const t of s)e[Px("0xb")](t),e[Px("0x5")][Px("0x15")](t,Qo(n,"FORMAT_STYLE"));for(const t of x)e[Px("0x8")](t),e[Px("0x5")][Px("0x15")](t,Qo(n,Px("0x11")));this[Px("0x22")]()}[Px("0x22")](){const t=this[Px("0x6")],e=t[Px("0x17")];t[Px("0x10")][Px("0x4")](Px("0x1a"))[Px("0x5")][Px("0x1e")]((t=>{if(Px("0x16")!=t[Px("0xa")]&&Px("0x7")!=t[Px("0xa")])return;const{data:n}=t;return n&&"style"===n.commandName?n[Px("0x19")][0][Px("0xc")]?{type:Px("0x0"),content:Qo(e,Px("0x1c"),n[Px("0x19")][0][Px("0x21")][Px("0x2")]())}:{type:Px("0x0"),content:Qo(e,Px("0x13"),n[Px("0x19")][0][Px("0x21")][Px("0x2")]())}:void 0}))}}const jx=["commands","ELEMENT_TABLE_COLUMN_WITH_TEXT","execute","isInContent","setSelection","_splitMarkerName","start","plugins","detach","add","getAttribute","editor","ELEMENT_TABLE_WITH_TEXT","getRanges","TableUtils","document","tableColumn","_getCoordsForCells","deletion","registerElementLabel","addRange","_getSuggestionCoords","length","insertTableColumnRight","discard","TrackChangesEditing","ELEMENT_TABLE","push","hasAttribute","getRowIndexes","insertTable","registerPostFixer","tableRow","getChildren","max","substr","filter","change:data","_acceptFormatSuggestionCallbackFactory","_tableSuggestions","rowspan","toLowerCase","classes","*Remove:* %0","createRangeIn","registerDescriptionCallback","createTableWalker","getSuggestion","isEqual","name","selection","nodeAfter","values","getSelectionAffectedTableCells","root","_suggestionFactory","from","batch","insertion","tableCell","every","get","getColumnIndexes","type","locale","$graveyard","_descriptionFactory","low","insertTableRowBelow","end","has","change","highest","subType","getChangedMarkers","span","ELEMENT_TABLE_ROW","selectTableColumn","position","addClass","element","ELEMENT_TABLE_ROW_WITH_TEXT","some","removeTableRow","removeTableColumn","TableEditing","MAX_SAFE_INTEGER","model","options","isArray","enableCommand","accept","first","includes","getCellLocation","above","fromRange","differ","_tablePostFixingSubtypes","enqueueChange","min","createPositionAt","colspan","registerCustomCallback","$textProxy","downcastDispatcher","join","cell","data","_setupColumnsRowsFixing","createRangeOn","map","forceValue","isTouching","MIN_SAFE_INTEGER","*Insert:* %0","minRow","last","item","showSuggestionHighlights","ELEMENT_TABLE_COLUMN","getItems","rootName","refresh","table","order","maxRow","maxColumn","findAncestor"];var Gx,Vx;Gx=jx,Vx=369,function(t){for(;--t;)Gx.push(Gx.shift())}(++Vx);const Hx=function(t,e){return jx[t-=0]};class zx extends t.Plugin{constructor(t){super(t),this[Hx("0x74")]=[Hx("0x32"),Hx("0x22")],this[Hx("0x39")]=new Set}afterInit(){const t=this[Hx("0x1d")],e=t.model[Hx("0x21")][Hx("0x44")];if(!t[Hx("0x19")][Hx("0x58")](Hx("0x67")))return;const n=t[Hx("0x52")],o=t[Hx("0x19")][Hx("0x4f")](Hx("0x2b")),i=t.plugins.get(Hx("0x20"));o._descriptionFactory[Hx("0x25")]("table",(t=>Qo(n,Hx("0x2c"),t))),this._setupColumnsRowsFixing(),o[Hx("0x6c")](Hx("0x30")),o[Hx("0x6c")]("selectTableRow"),o[Hx("0x6c")](Hx("0x5f"));for(const n of["insertTableRowAbove",Hx("0x56")]){const r=t[Hx("0x12")][Hx("0x4f")](n);o[Hx("0x6c")](n,(n=>{t.model.change((t=>{n();const s=Hx("0x71")===r[Hx("0xe")],x=i.getSelectionAffectedTableCells(e),a=i[Hx("0x2f")](x),c=s?a[Hx("0x6e")]-1:a[Hx("0x6")]+1,l=x[0].findAncestor(Hx("0xd")),u=i[Hx("0x40")](l,{startRow:c,endRow:c}),d=Array[Hx("0x4a")](u).map((e=>t[Hx("0x80")](e[Hx("0x7d")])));o.markMultiRangeInsertion(d,Hx("0x32"))}))}))}for(const n of["insertTableColumnLeft",Hx("0x29")]){const r=t[Hx("0x12")][Hx("0x4f")](n);o.enableCommand(n,(n=>{t[Hx("0x69")].change((t=>{n();const s="left"===r.order,x=i.getSelectionAffectedTableCells(e),a=i[Hx("0x50")](x),c=s?a[Hx("0x6e")]-1:a[Hx("0x6")]+1,l=x[0][Hx("0x11")](Hx("0xd")),u=i[Hx("0x40")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Hx("0x4a")](u)[Hx("0x0")]((e=>t[Hx("0x80")](e[Hx("0x7d")])));o.markMultiRangeInsertion(d,"tableColumn")}))}))}for(const n of[Hx("0x65"),Hx("0x66")]){const r=n[Hx("0x35")](11),s=r[Hx("0x3b")](),x=s[Hx("0x35")](0,3)+Hx("0x5d"),a=Hx("0xd")+r,c=Hx("0x76")+r,l="max"+r;o.enableCommand(n,(()=>{t[Hx("0x69")].change((t=>{const r=i[Hx("0x47")](e),u=r[0][Hx("0x11")](Hx("0xd"));let d;if(Hx("0x65")==n){const t=i[Hx("0x2f")](r);d={startRow:t[Hx("0x6e")],endRow:t[Hx("0x6")],includeAllSlots:!0}}else{const t=i[Hx("0x50")](r);d={startColumn:t[Hx("0x6e")],endColumn:t.last,includeAllSlots:!0}}const g=i[Hx("0x40")](u,d),f=Array[Hx("0x4a")](g).map((({cell:t})=>t)),m=Wx(f.filter((t=>t[Hx("0x2e")](x)))),h=Wx(f.filter((t=>!t[Hx("0x2e")](x))))[Hx("0x0")]((e=>t[Hx("0x80")](e))),p=o.markMultiRangeDeletion(h,a);if(p&&(Hx("0x32")==p[Hx("0x5b")]||"tableColumn"==p[Hx("0x5b")])){const e=this._getSuggestionCoords(p);for(const n of m){const o=t.createRangeOn(n),r=i.getCellLocation(n),a=n.getAttribute(x)-1,u=e[c],d=e[l];u<=r[s]&&r[s]+a<=d&&p[Hx("0x26")](o)}}}))}))}function r(n){const o=Array.from(e.getRanges())[Hx("0x0")]((t=>s.LiveRange[Hx("0x72")](t)));t[Hx("0x69")].change((e=>{const i=e[Hx("0x4b")];n=n[Hx("0x36")]((t=>Hx("0x53")!=t[Hx("0x48")][Hx("0xb")])),e.setSelection(n),t[Hx("0x12")][Hx("0x4f")]("removeTableRow").refresh(),t[Hx("0x14")]("removeTableRow",{forceDefaultExecution:!0}),t.model[Hx("0x75")]((()=>{t.model[Hx("0x75")](i,(t=>{const e=o[Hx("0x36")]((t=>Hx("0x53")!=t[Hx("0x48")][Hx("0xb")]));e[Hx("0x28")]>0&&t[Hx("0x16")](e);for(const t of o)t.detach()}))}))}))}function a(n){t[Hx("0x69")][Hx("0x59")]((o=>{const i=Array[Hx("0x4a")](e[Hx("0x1f")]())[Hx("0x0")]((t=>s.LiveRange.fromRange(t))),r=[];for(const t of n)for(const e of t.getItems({shallow:!0}))r[Hx("0x2d")](e);for(const e of r)"$graveyard"!=e[Hx("0x48")][Hx("0xb")]&&(o[Hx("0x16")](o[Hx("0x77")](e,0)),t.commands.get(Hx("0x66"))[Hx("0xc")](),t.execute(Hx("0x66"),{forceDefaultExecution:!0}));const x=i[Hx("0x36")]((t=>"$graveyard"!=t.root[Hx("0xb")]));x[Hx("0x28")]>0&&o[Hx("0x16")](x);for(const t of i)t.detach()}))}function c(t,e){return e[Hx("0x4e")]((e=>t[Hx("0x64")]((t=>t.end.isEqual(e[Hx("0x18")])||e[Hx("0x57")][Hx("0x42")](t[Hx("0x18")])))))}function l(t,e){return t[Hx("0x64")]((t=>e[Hx("0x64")]((e=>t[Hx("0x57")][Hx("0x2")](e.start)))))}t[Hx("0x7e")][Hx("0x7b")].on("addMarker:suggestion",((t,e,n)=>{if(!n[Hx("0x6a")][Hx("0x8")])return;const o=e[Hx("0x7")];if(!o)return;const i=n.mapper.toViewElement(o);function r(t){return Array[Hx("0x6b")](t)?t:[t]}i&&"tableCell"===o.name&&(0,x.setHighlightHandling)(i,n.writer,((t,e,n)=>n[Hx("0x61")](r(e[Hx("0x3c")]),t)),((t,e,n)=>n.removeClass(r(e[Hx("0x3c")]),t)))}),{priority:Hx("0x5a")}),o[Hx("0x54")][Hx("0x3f")]((t=>{if(Hx("0x4c")!=t[Hx("0x51")]&&"deletion"!=t.type)return;const e=t.getContainedElement();if(null!=e&&e.is(Hx("0x62"),"table")){if(Hx("0x4c")==t[Hx("0x51")]){const e=t[Hx("0xa")]().filter((t=>t.is(Hx("0x7a"))))[Hx("0x0")]((t=>t[Hx("0x7e")]));if(e.length)return{type:Hx("0x4c"),content:Qo(n,"*Insert:* %0",Qo(n,Hx("0x1e"),'"'+e[Hx("0x7c")](" ")+'"'))}}if(Hx("0x24")==t[Hx("0x51")]){const e=t.getItems().filter((t=>t.is(Hx("0x7a"))))[Hx("0x0")]((t=>t[Hx("0x7e")]));if(e[Hx("0x28")])return{type:"deletion",content:Qo(n,"*Remove:* %0",Qo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Hx("0x7c")](" ")+'"'))}}}})),o[Hx("0x54")][Hx("0x3f")]((t=>{if(Hx("0x32")==t.subType){const e=t.getItems()[Hx("0x36")]((t=>t.is("$textProxy"))).map((t=>t[Hx("0x7e")])),o=this[Hx("0x27")](t),i=o[Hx("0xf")]-o[Hx("0x5")]+1;if(Hx("0x4c")==t[Hx("0x51")])return e[Hx("0x28")]?{type:Hx("0x4c"),content:Qo(n,Hx("0x4"),Qo(n,Hx("0x63"),[i,'"'+e[Hx("0x7c")](" ")+'"']))}:{type:Hx("0x4c"),content:Qo(n,Hx("0x4"),Qo(n,Hx("0x5e"),i))};if(Hx("0x24")==t[Hx("0x51")])return e.length?{type:"deletion",content:Qo(n,Hx("0x3d"),Qo(n,Hx("0x63"),[i,'"'+e.join(" ")+'"']))}:{type:"deletion",content:Qo(n,Hx("0x3d"),Qo(n,Hx("0x5e"),i))}}if(Hx("0x22")==t[Hx("0x5b")]){const e=t[Hx("0xa")]()[Hx("0x36")]((t=>t.is(Hx("0x7a"))))[Hx("0x0")]((t=>t[Hx("0x7e")])),o=this[Hx("0x27")](t),i=o[Hx("0x10")]-o.minColumn+1;if(Hx("0x4c")==t[Hx("0x51")])return e[Hx("0x28")]?{type:Hx("0x4c"),content:Qo(n,Hx("0x4"),Qo(n,Hx("0x13"),[i,'"'+e[Hx("0x7c")](" ")+'"']))}:{type:Hx("0x4c"),content:Qo(n,"*Insert:* %0",Qo(n,"ELEMENT_TABLE_COLUMN",i))};if(Hx("0x24")==t[Hx("0x51")])return e[Hx("0x28")]?{type:Hx("0x24"),content:Qo(n,"*Remove:* %0",Qo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[i,'"'+e.join(" ")+'"']))}:{type:Hx("0x24"),content:Qo(n,"*Remove:* %0",Qo(n,Hx("0x9"),i))}}})),o[Hx("0x49")].registerCustomCallback(Hx("0x4c"),Hx("0x32"),Hx("0x2a"),r),o[Hx("0x49")][Hx("0x79")]("deletion",Hx("0x32"),Hx("0x6d"),r),o[Hx("0x49")].registerCustomCallback(Hx("0x4c"),Hx("0x22"),Hx("0x2a"),a),o[Hx("0x49")][Hx("0x79")]("deletion",Hx("0x22"),Hx("0x6d"),a),o[Hx("0x49")].registerCustomCallback(Hx("0x4c"),Hx("0x22"),Hx("0x7c"),c),o[Hx("0x49")][Hx("0x79")]("deletion",Hx("0x22"),Hx("0x7c"),c),o[Hx("0x49")][Hx("0x79")](Hx("0x4c"),"tableRow",Hx("0x7c"),l),o._suggestionFactory[Hx("0x79")](Hx("0x24"),Hx("0x32"),Hx("0x7c"),l)}[Hx("0x38")](){const t=this[Hx("0x1d")],e=t[Hx("0x69")].document[Hx("0x44")];return(n,o)=>{t[Hx("0x69")][Hx("0x59")]((i=>{const{commandName:r,commandParams:x}=o;let a=n[0].end.nodeBefore;x&&x[0]&&!1===x[0][Hx("0x1")]&&(a=n[0][Hx("0x18")][Hx("0x45")]);const c=i[Hx("0x3e")](a);if(Hx("0x53")==c.root[Hx("0xb")])return;const l=Array[Hx("0x4a")](e[Hx("0x1f")]())[Hx("0x0")]((t=>s.LiveRange[Hx("0x72")](t)));i.setSelection(c),t.commands[Hx("0x4f")](r).refresh(),x[Hx("0x2d")]({forceDefaultExecution:!0}),t[Hx("0x14")](r,...x);const u=l[Hx("0x36")]((t=>"$graveyard"!=t.root.rootName));u.length>0&&i[Hx("0x16")](u);for(const t of l)t[Hx("0x1a")]()}))}}[Hx("0x23")](t){const e=this[Hx("0x1d")][Hx("0x19")].get(Hx("0x20"));let n=Number.MAX_SAFE_INTEGER,o=Number[Hx("0x3")],i=Number[Hx("0x68")],r=Number.MIN_SAFE_INTEGER;for(const s of t){if("$graveyard"==s[Hx("0x48")][Hx("0xb")])continue;const{row:t,column:x}=e[Hx("0x70")](s),a=s[Hx("0x2e")](Hx("0x3a"))?s[Hx("0x1c")](Hx("0x3a"))-1:0,c=s[Hx("0x2e")](Hx("0x78"))?s.getAttribute(Hx("0x78"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,i=x<i?x:i,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:i,maxColumn:r}}[Hx("0x7f")](){const t=this.editor,e=t[Hx("0x19")][Hx("0x4f")](Hx("0x2b")),n=t[Hx("0x19")][Hx("0x4f")](Hx("0x20"));t[Hx("0x69")][Hx("0x21")].on(Hx("0x37"),(()=>{const n=Array[Hx("0x4a")](t[Hx("0x69")][Hx("0x21")][Hx("0x73")][Hx("0x5c")]());for(const{name:t,data:o}of n){const{group:n,id:i,subType:r}=e[Hx("0x17")](t);if("suggestion"!=n)continue;if(null!=o.oldRange)continue;const s=e[Hx("0x41")](i);this[Hx("0x74")][Hx("0x6f")](r)&&this._tableSuggestions[Hx("0x1b")](s)}}),{priority:Hx("0x55")});const o=(t,e)=>{let o=!1;const i=e.createRangeOn(t),r=t.findAncestor("table"),s=n[Hx("0x70")](t);for(const e of this[Hx("0x39")]){const n=e[Hx("0x5b")],x=n.startsWith("tablePaste"),a=n[Hx("0x35")](x?10:5),c=a[Hx("0x3b")](),l=c[Hx("0x35")](0,3)+Hx("0x5d"),u=Hx("0x76")+a,d=Hx("0x34")+a;if(!e[Hx("0x15")])continue;if(r!=e.getFirstRange()[Hx("0x18")].findAncestor(Hx("0xd")))continue;if(e.isIntersectingWithRange(i))continue;const g=t.hasAttribute(l)?t[Hx("0x1c")](l)-1:0,f=this[Hx("0x27")](e),m=f[u],h=f[d];m<=s[c]&&s[c]+g<=h&&(e[Hx("0x26")](i),o=!0)}return o};t[Hx("0x69")][Hx("0x21")][Hx("0x31")]((e=>{let n=!1;for(const i of t[Hx("0x69")][Hx("0x21")][Hx("0x73")].getChanges())if("insert"==i[Hx("0x51")])if(Hx("0x32")==i[Hx("0x43")])for(const t of i[Hx("0x60")][Hx("0x45")][Hx("0x33")]())n=n||o(t,e);else Hx("0x4d")==i[Hx("0x43")]&&(n=n||o(i[Hx("0x60")].nodeAfter,e));return n}))}[Hx("0x27")](t){return this[Hx("0x23")](t[Hx("0x1f")]().map((t=>t.start.nodeAfter)))}}function Wx(t){return Array[Hx("0x4a")](new Set(t)[Hx("0x46")]())}const Kx=["get","detach","getAncestors","setSelection","add","mergeTableCellDown","map","markBlockFormat","mergeTableCellRight","length","formatBlock","execute","selection","element","registerCustomCallback","containsRange","$graveyard","plugins","*Split cell:* horizontally","model","insertion","createTableWalker","mergeTableCellLeft","direction","commandName","splitTableCellVertically","horizontally","value","markMultiRangeBlockFormat","size","commands","table","formatInline","find","_areSelectedCellsMergable","_isForcedDefaultExecutionBlock","findAncestor","splitTableCellHorizontally","createRangeOn","format","TrackChangesEditing","low","return","enableCommand","stop","afterInit","getSuggestions","forceDefaultExecution","has","rootName","_areMergableCells","*Split cell:* vertically","refresh","getSelectionAffectedTableCells","push","getRanges","author","mergeTableCells","getFirstPosition","_suggestionFactory","locale","highest","type","document","mergeTableCellUp","editor","deletion","_descriptionFactory","subType","set:isEnabled","change","registerDescriptionCallback","TableEditing","accept","TableUtils","from","fromRange"];var qx,Xx;qx=Kx,Xx=495,function(t){for(;--t;)qx.push(qx.shift())}(++Xx);const $x=function(t,e){return Kx[t-=0]};class Zx extends t.Plugin{static get requires(){return[zx]}[$x("0xc")](){const t=this[$x("0x20")],e=t[$x("0x3f")][$x("0x1e")][$x("0x38")],n=t[$x("0x1b")];if(!t[$x("0x3d")][$x("0xf")]($x("0x27")))return;const o=t[$x("0x3d")][$x("0x2c")]($x("0x7")),i=t[$x("0x3d")][$x("0x2c")]($x("0x29")),r=t[$x("0x3d")][$x("0x2c")](zx);r._tablePostFixingSubtypes[$x("0x15")]("mergeTableCells"),o[$x("0xa")]($x("0x18"),(()=>{const e=i[$x("0x14")](t[$x("0x3f")][$x("0x1e")][$x("0x38")]);t[$x("0x3f")][$x("0x25")]((()=>{o[$x("0x48")](e,{commandName:$x("0x18"),commandParams:[]},[],$x("0x18"))}))})),t[$x("0x4a")][$x("0x2c")]($x("0x18")).on($x("0x37"),((e,n)=>{t[$x("0x4a")][$x("0x2c")]("trackChanges")[$x("0x47")]&&(n[$x("0x35")]>0&&n[n[$x("0x35")]-1]&&n[n[$x("0x35")]-1][$x("0xe")]||o[$x("0x2")]||this[$x("0x1")]()||e[$x("0xb")]())}),{priority:$x("0x1c")});for(const e of[$x("0x1f"),"mergeTableCellRight","mergeTableCellDown",$x("0x42")]){const n=t[$x("0x4a")].get(e);o.enableCommand(e,(()=>{const e=t.model[$x("0x1e")].selection[$x("0x19")]()[$x("0x2e")]()[$x("0x0")]((t=>t.is("element","tableCell"))),i=n[$x("0x47")];t.model[$x("0x25")]((()=>{o[$x("0x48")]([e,i],{commandName:$x("0x18"),commandParams:[]},[],$x("0x18"))}))}))}for(const e of["splitTableCellVertically","splitTableCellHorizontally"]){const n=t[$x("0x4a")].get(e);o[$x("0xa")](e,(()=>{const r=i[$x("0x14")](t.model[$x("0x1e")][$x("0x38")])[0],s=r[$x("0x3")]($x("0x4b")),{column:x,row:a}=i.getCellLocation(r);let c=[];if($x("0x46")==n[$x("0x43")]){const t=i[$x("0x41")](s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[$x("0x2a")](t)[$x("0x32")]((t=>t.cell))}else{const t=i[$x("0x41")](s,{column:x,includeAllSlots:!0});c=Array[$x("0x2a")](t)[$x("0x32")]((t=>t.cell))}t.model[$x("0x25")]((t=>{o[$x("0x33")](t[$x("0x5")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[$x("0x22")][$x("0x26")]((t=>{if($x("0x36")!=t[$x("0x1d")]&&$x("0x4c")!=t.type)return;const{data:e}=t;return e&&$x("0x18")==e[$x("0x44")]?{type:$x("0x6"),content:Qo(n,"*Merge cells*")}:void 0})),o[$x("0x22")][$x("0x26")]((t=>{if($x("0x36")!=t[$x("0x1d")]&&$x("0x4c")!=t[$x("0x1d")])return;const{data:e}=t;return e?$x("0x45")==e[$x("0x44")]?{type:$x("0x6"),content:Qo(n,$x("0x12"))}:$x("0x4")==e[$x("0x44")]?{type:$x("0x6"),content:Qo(n,$x("0x3e"))}:void 0:void 0}));const x=r._acceptFormatSuggestionCallbackFactory();for(const t of[$x("0x1f"),"mergeTableCellRight",$x("0x31"),$x("0x42")])o._suggestionFactory[$x("0x3a")]($x("0x36"),t,$x("0x28"),x);for(const t of["splitTableCellVertically","splitTableCellHorizontally"])o[$x("0x1a")][$x("0x3a")]($x("0x36"),t,$x("0x28"),x);o._suggestionFactory[$x("0x3a")]($x("0x36"),$x("0x18"),"accept",(n=>{t[$x("0x3f")][$x("0x25")]((o=>{const i=Array[$x("0x2a")](e[$x("0x16")]()).map((t=>s.LiveRange[$x("0x2b")](t)));o[$x("0x2f")](n),t.commands.get("mergeTableCells")[$x("0x13")](),t[$x("0x37")]($x("0x18"),{forceDefaultExecution:!0});const r=i.filter((t=>$x("0x3c")!=t.root[$x("0x10")]));r[$x("0x35")]>0&&o[$x("0x2f")](r);for(const t of i)t[$x("0x2d")]()}))}));for(const e of["mergeTableCellUp",$x("0x31"),$x("0x42"),$x("0x34")]){const n=t[$x("0x4a")][$x("0x2c")](e);n.on($x("0x24"),((e,o,i)=>{if(i){const o=t.model[$x("0x1e")][$x("0x38")][$x("0x19")]()[$x("0x2e")]()[$x("0x0")]((t=>t.is($x("0x39"),"tableCell")));this._areMergableCells(n[$x("0x47")],o)||(e[$x("0x9")]=!1,e[$x("0xb")]())}}),{priority:$x("0x8")})}}[$x("0x1")](){const t=this[$x("0x20")].commands[$x("0x2c")]($x("0x18")),e=this[$x("0x20")][$x("0x3d")].get("TableUtils");if(!t.isEnabled)return!1;const n=e[$x("0x14")](this[$x("0x20")].model[$x("0x1e")][$x("0x38")]);for(const t of n)for(const e of n)if(t!=e&&!this[$x("0x11")](t,e))return!1;return!0}[$x("0x11")](t,e){const n=this.editor[$x("0x3d")][$x("0x2c")]("TrackChangesEditing"),o=this[$x("0x20")].model[$x("0x5")](t),i=this.editor[$x("0x3f")][$x("0x5")](e),r=new Set,s=new Set;for(const t of n[$x("0xd")]())if(($x("0x40")==t[$x("0x1d")]||$x("0x21")==t[$x("0x1d")]||$x("0x18")==t[$x("0x23")])&&t.isInContent)for(const e of t[$x("0x16")]())e[$x("0x3b")](o,!0)&&r.add(t[$x("0x1d")]+":"+t[$x("0x17")].id),e[$x("0x3b")](i,!0)&&s[$x("0x30")](t.type+":"+t.author.id);if(r[$x("0x49")]!=s.size)return!1;for(const t of r)if(!s[$x("0xf")](t))return!1;return!0}}const Yx=["createTableWalker","end","_splitMarkerName","accept","activeMarkers","commandName","mapper","commandParams","FORMAT_HEADER_COLUMN","FORMAT_HEADER_ROW","plugins","_suggestionFactory","get","addMarker:suggestion","consumable","name","downcastDispatcher","forceValue","requires","editing","markerName","TableEditing","unbindElementFromMarkerName","editor","getSuggestion","has","ck-suggestion-marker--active","ck-suggestion-marker-","format","_descriptionFactory","removeMarker:suggestion","_registerLegacyDescription","getCellLocation","showSuggestionHighlights","formatBlock","nodeAfter","_enableDefaultAttributesIntegration","cell","markerRange","includes","setTableColumnHeader","removeClass","headingColumns","removeAttribute","writer","TableUtils","setTableRowHeader","registerAttributeLabel","TrackChangesEditing","locale","bindElementToMarker","_handleLegacySuggestions","options","highest","parent","_acceptFormatSuggestionCallbackFactory","type","addClass","data","consume","setAttribute","start","registerCustomCallback","markerNameToElements","nodeBefore"];var Jx,Qx;Jx=Yx,Qx=215,function(t){for(;--t;)Jx.push(Jx.shift())}(++Qx);const ta=function(t,e){return Yx[t-=0]};class ea extends t.Plugin{static get[ta("0x3f")](){return[zx]}afterInit(){const t=this.editor;if(!t[ta("0x37")][ta("0x5")](ta("0x1")))return;const e=t[ta("0x1d")],n=t[ta("0x37")].get(ta("0x1c"));n[ta("0x10")]("setTableRowHeader",[],["headingRows"]),n[ta("0x10")](ta("0x14"),[],[ta("0x16")]),n[ta("0x9")][ta("0x1b")]("headingRows",Qo(e,ta("0x36"))),n[ta("0x9")][ta("0x1b")]("headingColumns",Qo(e,ta("0x35"))),this[ta("0x1f")]()}[ta("0x1f")](){const t=this[ta("0x3")][ta("0x37")][ta("0x39")](ta("0x1c")),e=this.editor.plugins[ta("0x39")](ta("0x19")),n=this.editor[ta("0x37")][ta("0x39")](zx)[ta("0x23")]();function o({showActiveMarker:n=!0,setDataAttribute:o=!0}={}){return(i,r,s)=>{const{type:x,id:a}=t._splitMarkerName(r[ta("0x0")]),c=t.getSuggestion(a),l=c.data;if(ta("0xe")!=c.type||!l||ta("0x14")!=l[ta("0x32")])return;if(r.item)return void i.stop();if(!s[ta("0x3b")][ta("0x27")](r[ta("0x12")],i[ta("0x3c")]))return;const u=r[ta("0x12")][ta("0x29")][ta("0xf")],d=r[ta("0x12")][ta("0x2e")][ta("0x2c")],g=u.parent[ta("0x22")],{column:f}=e[ta("0xc")](u),{column:m}=e[ta("0xc")](d);for(let i=f;i<=m;i++){const c=e[ta("0x2d")](g,{column:i,includeAllSlots:!1});for(const e of c){const i=e[ta("0x11")],c=s[ta("0x33")].toViewElement(i);s.writer[ta("0x25")](ta("0x7")+x,c),o&&s.writer[ta("0x28")]("data-suggestion",a,c),s.mapper[ta("0x1e")](c,r[ta("0x0")]),n&&(t[ta("0x31")][ta("0x13")](r[ta("0x0")])?s[ta("0x18")][ta("0x25")]("ck-suggestion-marker--active",c):s.writer.removeClass(ta("0x6"),c))}}}}t._suggestionFactory[ta("0x2a")](ta("0xe"),ta("0x1a"),ta("0x30"),n),t[ta("0x38")][ta("0x2a")](ta("0xe"),ta("0x14"),ta("0x30"),n),this[ta("0x3")][ta("0x40")][ta("0x3d")].on(ta("0x3a"),o(),{priority:ta("0x21")}),this.editor[ta("0x26")][ta("0x3d")].on(ta("0x3a"),((t,e,n)=>{n[ta("0x20")][ta("0xd")]&&o({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:ta("0x21")}),this[ta("0x3")].editing[ta("0x3d")].on(ta("0xa"),((e,n,o)=>{const{type:i,id:r}=t[ta("0x2f")](n[ta("0x0")]),s=t[ta("0x4")](r),x=s[ta("0x26")];if(ta("0xe")!=s[ta("0x24")]||!x||ta("0x14")!=x[ta("0x32")])return;const a=o.mapper[ta("0x2b")](n[ta("0x0")]);if(a)for(const t of a)o[ta("0x18")][ta("0x15")](ta("0x7")+i,t),o[ta("0x18")][ta("0x15")]("ck-suggestion-marker--active",t),o[ta("0x18")][ta("0x17")]("data-suggestion",t),o[ta("0x33")][ta("0x2")](t,n[ta("0x0")])}),{priority:"highest"}),this[ta("0xb")]()}[ta("0xb")](){const t=this.editor,e=t[ta("0x1d")];function n(t){return{type:ta("0x8"),content:Qo(e,"*Format:* %0",t)}}t.plugins.get(ta("0x1c"))._descriptionFactory.registerDescriptionCallback((t=>{if("formatBlock"!=t[ta("0x24")])return;const{data:o}=t;if(o){if(ta("0x1a")==o[ta("0x32")]){const t=o[ta("0x34")][0].forceValue;return n(Qo(e,t?ta("0x36"):"FORMAT_REGULAR_ROW"))}if("setTableColumnHeader"==o.commandName){const t=o[ta("0x34")][0][ta("0x3e")];return n(Qo(e,t?ta("0x35"):"FORMAT_REGULAR_COLUMN"))}}}))}}const na=["isEmpty","first","push","registerCustomCallback","wrap","change","tablePasteCell","_descriptionFactory","suggestionLoaded","createRangeIn","for","trackChanges","getSuggestions","schema","return","markMultiRangeInsertion","markerAttributes","low","getTableIfOnlyTableInContent","nodeAfter","get","_tablePostFixingSubtypes","remove","tableCellVerticalAlignment","_createdBatches","elementToElement","hasSuggestion","_getCoordsForCells","tableCellBorderColor","createTableWalker","add","tablePasteColumn","createRange","join","columnInsertionRanges","rowInsertionIndexes","Users","markerName","insertRows","tableCellBackgroundColor","tableCellBorderStyle","registerPostFixer","differ","TableClipboard","insertColumns","end","content","columns","tablePasteChainId","length","formatBlock","tableCellSuggestion","unwrap","editor","tablePasteRow","removeColumns","redo","nextSibling","getChanges","element","subType","fromEntries","previous","fill","getChangedMarkers","afterInit","getRowIndexes","getContainedElement","set","rowInsertionRanges","_suggestionFactory","startsWith","createRangeOn","conversion","rows","cells","deletion","insert","tableCell","from","_replaceTableSlotCell","insertContent","suggestion","markers","containsRange","setAttributes","tableCellPadding","findAncestor","paragraph","ck-suggestion-marker-insertion","insertion","getColumnIndexes","plugins","registerDescriptionCallback","getAttributes","suggestion-td","isEqual","batch","getShiftedBy","*Replace table cells*","TableUtils","move","getSuggestionCallback","name","rootName","locale","markerToHighlight","tablePaste","entries","$graveyard","getMarkers","author","suggestion:formatBlock:tablePasteCell","position","endColumn","createPositionBefore","showSuggestionHighlights","includes","getRange","removeMarker","isInContent","filter","has","TrackChangesEditing","removeRows","_splitMarkerName","documentSelection","model","forceDefaultExecution","markMultiRangeBlockFormat","getChildren","cell","editing","columnInsertionIndexes","document","discard","getAllAdjacentSuggestions","createElement","oldRange","commands","getColumns","type","editingDowncast","start","endRow","table","getRows","getSelectionAffectedTableCells","getSuggestion","newRange","map","high","column","attributes","next","getRanges","removeMarkers","row","ck-suggestion-marker--active","reduce","find","getChild","clipboardOutput"];var oa,ia;oa=na,ia=348,function(t){for(;--t;)oa.push(oa.shift())}(++ia);const ra=function(t,e){return na[t-=0]},sa=["tableCellBorderWidth",ra("0x6"),ra("0x12"),"tableCellHorizontalAlignment",ra("0x1"),ra("0x11"),ra("0x40")],xa=Object.fromEntries(sa[ra("0x80")]((t=>[t,null])));class aa extends t.Plugin{static get requires(){return[zx]}[ra("0x2b")](){const t=this[ra("0x1f")];if(!t[ra("0x46")].has(ra("0x15")))return;const n=t[ra("0x46")][ra("0xa1")](ra("0x65")),o=t[ra("0x46")][ra("0xa1")](ra("0x4e")),i=t[ra("0x46")].get(zx),r=t[ra("0x46")].get("TableClipboard");i[ra("0xa2")][ra("0x8f")]("tablePasteRow",ra("0x9")),t[ra("0x69")][ra("0x9a")].register("tableCellSuggestion",{allowIn:"tableCell",allowContentOf:ra("0x38"),isLimit:!0}),t.conversion[ra("0x3")]({model:"tableCellSuggestion",view:ra("0x49")});let s=null;t[ra("0x69")].on(ra("0x3b"),((i,x)=>{const[a,c]=x,l=x[x[ra("0x1b")]-1];l&&l[ra("0x6a")]||n._isForcedDefaultExecutionBlock||this.editor[ra("0x75")][ra("0xa1")](ra("0x98")).value&&function(t,e,n,o,i){if(e&&!e.is(ra("0x68")))return!1;const r=i[ra("0x9f")](t,n);if(!r||!la(r,void 0,o))return!1;const s=o[ra("0x7d")](n[ra("0x70")].selection);if(!s.length)return!1;const x=s[0][ra("0x41")](ra("0x7b")),a=o[ra("0x2c")](s),c=o[ra("0x45")](s),l={startRow:a[ra("0x8e")],endRow:a.last,startColumn:c[ra("0x8e")],endColumn:c.last};return 1==s[ra("0x1b")]&&(l[ra("0x7a")]+=o[ra("0x7c")](r)-1,l[ra("0x5c")]+=o[ra("0x76")](r)-1),la(x,l,o)}(a,c,t.model,o,r)&&(i.stop(),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t.model[ra("0x92")]((()=>{t[ra("0x69")][ra("0x3b")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:i,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=s;i.length&&n.markMultiRangeInsertion(i,ra("0x20"),{tablePasteChainId:o}),r.length&&n[ra("0x9c")](r,ra("0x9"),{tablePasteChainId:o}),a[ra("0x1b")]&&n[ra("0x9c")](a,ra("0x55"),{tablePasteChainId:o,skipNestingCheck:!0}),c[ra("0x1b")]&&n.markMultiRangeDeletion(c,ra("0x55"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n[ra("0x6b")](l[ra("0x80")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],ra("0x93"),{tablePasteChainId:o});if(u){const e=u[ra("0x58")](),n=[];for(const{element:o,attributes:i}of l){if(!i)continue;const r=t[ra("0x69")][ra("0x32")](o),s=e[ra("0x8a")]((t=>t[ra("0x60")]()[ra("0x4a")](r)));s&&n[ra("0x8f")]([s.name,i])}n[ra("0x1b")]&&u.setAttribute(ra("0x9d"),Object.fromEntries(n))}s=null})))}),{priority:e.priorities[ra("0x81")]+10}),t[ra("0x46")][ra("0xa1")](ra("0x15")).on(ra("0x3a"),((t,e)=>{const[n,o,,i]=e;if(!s)return;t.stop();const r=n[ra("0x6d")],x=o,a=ca(r),c=ca(x);t[ra("0x9b")]=r;let l=null,u=null;if(c||a)if(a&&!c){i[ra("0x0")](r[ra("0x8b")](0));for(const t of Array[ra("0x39")](x[ra("0x6c")]()))i[ra("0x37")](t,r,"end");const t=s[ra("0xd")][ra("0x5f")](n[ra("0x87")]),e=s[ra("0x6f")][ra("0x5f")](n[ra("0x82")]);t||e||(l=i[ra("0x96")](r))}else c&&!a&&(u=i[ra("0x96")](r));else{const t=i[ra("0x73")]("tableCellSuggestion"),e=i.createElement(ra("0x1d"));i[ra("0x91")](i.createRangeIn(r),e),i.insert(t,r,0);for(const e of Array[ra("0x39")](x[ra("0x6c")]()))i[ra("0x37")](e,t,ra("0x17"));l=i[ra("0x32")](t),u=i.createRangeOn(e)}const d=Array[ra("0x39")](x[ra("0x48")]()).filter((([t])=>sa[ra("0x5f")](t)));s[ra("0x35")][ra("0x8f")]({element:r,attributes:d[ra("0x1b")]?Object[ra("0x27")](d):null}),l&&s.insertionRanges[ra("0x8f")](l),u&&s.deletionRanges[ra("0x8f")](u)}),{priority:ra("0x81")}),o.on(ra("0x16"),((e,n)=>{const[i,r={}]=n;if(!s)return;const x=r.at||0,a=r[ra("0x19")]||1;s[ra("0x6f")]=new Array(a)[ra("0x29")](x)[ra("0x80")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(i,{startColumn:x,endColumn:x+a-1}))s[ra("0xc")].push(t.model[ra("0x32")](e))}),{priority:"low"}),o.on(ra("0x10"),((e,n)=>{const[i,r={}]=n;if(!s)return;const x=r.at||0,a=r[ra("0x34")]||1;s[ra("0xd")]=new Array(a)[ra("0x29")](x)[ra("0x80")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(i,{startRow:x,endRow:x+a-1}))s[ra("0x2f")][ra("0x8f")](t[ra("0x69")][ra("0x32")](e))}),{priority:ra("0x9e")}),n[ra("0x94")][ra("0x47")]((e=>{if(e.subType&&e[ra("0x26")][ra("0x31")](ra("0x55")))return e[ra("0x28")]?{}:{type:ra("0x44"),content:Qo(t[ra("0x53")],ra("0x4d"))}}));const x=()=>!1;for(const t of["tablePaste",ra("0x9"),ra("0x20"),ra("0x93")])n[ra("0x30")][ra("0x90")](ra("0x44"),t,ra("0xb"),x),n[ra("0x30")][ra("0x90")](ra("0x36"),t,ra("0xb"),x),n[ra("0x30")].registerCustomCallback("formatBlock",t,"join",x);n._suggestionFactory.registerCustomCallback("formatBlock",ra("0x93"),ra("0x71"),x),n[ra("0x30")].registerCustomCallback(ra("0x1c"),"tablePasteCell","accept",((e,n,o)=>{const i=e[ra("0x80")]((t=>t[ra("0x2d")]()))[ra("0x63")]((t=>t)),r=new Map(i[ra("0x80")]((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s[ra("0x35")])e&&r[ra("0x2e")](t,e);else if(o&&o[ra("0x9d")])for(const[e,n]of Object[ra("0x56")](o[ra("0x9d")])){const o=t[ra("0x69")][ra("0x3d")][ra("0xa1")](e),i=o?o[ra("0x60")]()[ra("0x2d")]():null;i&&r.set(i,n)}t[ra("0x69")][ra("0x92")]((t=>{for(const[e,n]of r)t[ra("0x3f")]({...xa,...n},e)}))}));const a=(e,o)=>{n[ra("0x30")][ra("0x90")](e,ra("0x55"),o,((i,r,s)=>{t[ra("0x69")][ra("0x92")]((t=>{const x=[];for(const t of i){const e=t[ra("0x79")][ra("0xa0")];e.is(ra("0x25"),ra("0x1d"))&&x[ra("0x8f")](e)}n[ra("0x30")][ra("0x50")](e,null,o)(i,r,s);for(const e of x)ra("0x57")!=e.root[ra("0x52")]&&t[ra("0x1e")](e)}))}))};a(ra("0x44"),"accept"),a(ra("0x44"),ra("0x71")),a(ra("0x36"),"accept"),a(ra("0x36"),"discard"),n[ra("0x30")][ra("0x90")](ra("0x44"),ra("0x20"),ra("0x71"),(t=>{const e=t[ra("0x80")]((t=>t[ra("0x2d")]())),n=e[0].findAncestor("table"),{minRow:r,maxRow:s}=i[ra("0x5")](e);o[ra("0x66")](n,{at:r,rows:s-r+1})})),n[ra("0x30")][ra("0x90")](ra("0x44"),ra("0x9"),ra("0x71"),(t=>{const e=t.map((t=>t[ra("0x2d")]())),n=e[0][ra("0x41")](ra("0x7b")),{minColumn:r,maxColumn:s}=i._getCoordsForCells(e);o[ra("0x21")](n,{at:r,columns:s-r+1})}));const c=(t,e)=>{if(!e[ra("0x26")]||!e[ra("0x26")][ra("0x31")](ra("0x55")))return;const o=e[ra("0x83")].tablePasteChainId,i=n[ra("0x99")]().filter((t=>t[ra("0x62")]&&t.attributes&&t[ra("0x83")][ra("0x1a")]==o));i[ra("0x1b")]&&e.getAllAdjacentSuggestions().length!=i[ra("0x1b")]&&i[ra("0x89")](((t,e)=>(t[ra("0x84")]=e,e[ra("0x28")]=t,e)))};function l(t,e=!0){const{id:o}=n[ra("0x67")](t[ra("0xf")]),i=["ck-suggestion-marker",ra("0x43")],r=n.activeMarkers[ra("0x5f")](t[ra("0xf")]);return r&&i[ra("0x8f")](ra("0x88")),{classes:i,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(ra("0x95"),c,{priority:"high"}),n.on("suggestionUnloaded",c,{priority:ra("0x81")}),t.model[ra("0x70")][ra("0x13")]((()=>{let e=!1;const o=Array.from(t[ra("0x69")][ra("0x70")].differ.getChangedMarkers());for(const{name:i,data:r}of o){const{group:o,type:s,id:x}=n._splitMarkerName(i);if("suggestion"!=o||"deletion"!=s||r[ra("0x74")])continue;if(!n[ra("0x4")](x))continue;const a=n[ra("0x7e")](x)[ra("0x85")](),c=t[ra("0x46")][ra("0xa1")](ra("0xe")).me;for(const t of n[ra("0x99")]())if(t.isInContent&&t[ra("0x59")]==c&&ra("0x1c")==t[ra("0x77")]&&ra("0x93")==t[ra("0x26")]&&t[ra("0x85")]().every((t=>a.some((e=>e[ra("0x3e")](t,!0))))))for(const n of t[ra("0x72")]())n[ra("0x62")]&&(n[ra("0x71")](),e=!0)}return e})),t.model.document[ra("0x13")]((e=>{const o=t[ra("0x75")][ra("0xa1")](ra("0x22"));if(!o||!o[ra("0x2")][ra("0x64")](e[ra("0x4b")]))return!1;let i=!1;const r=t[ra("0x46")][ra("0xa1")](ra("0xe")).me,s=t.model[ra("0x70")][ra("0x14")][ra("0x24")](),x=Array[ra("0x39")](t.model[ra("0x70")].differ[ra("0x2a")]())[ra("0x63")]((({name:t,data:e})=>{const{group:o,subType:i,authorId:s}=n[ra("0x67")](t);return ra("0x3c")==o&&ra("0x55")==i&&s==r.id&&!e[ra("0x74")]}));for(const t of s){if("insert"!=t[ra("0x77")]||"tableCellSuggestion"!=t[ra("0x51")]||1!=t[ra("0x1b")])continue;const n=e[ra("0xa")](t[ra("0x5b")],t[ra("0x5b")][ra("0x4c")](1));if(!x[ra("0x8a")]((({data:t})=>t.newRange[ra("0x4a")](n))))for(const{name:t,data:o}of x)if(n[ra("0x3e")](o[ra("0x7f")])){e.updateMarker(t,{range:n}),i=!0;break}}return i})),t.model[ra("0x70")][ra("0x13")]((e=>{let o=!1;const i=t.plugins[ra("0xa1")](ra("0xe")).me,r=n[ra("0x99")]()[ra("0x63")]((t=>t[ra("0x62")]&&t[ra("0x59")]==i)),s=new Set,x=new Set;for(const t of r)if(ra("0x55")==t.subType)for(const e of t[ra("0x58")]()){const n=e[ra("0x60")]()[ra("0x2d")]();if(n)if(n.is("element","tableCellSuggestion")&&ca(n)){t[ra("0x61")](e[ra("0x51")]),s[ra("0x8")](n),o=!0;const i=n[ra("0x23")],r=n.previousSibling,a=i&&i.is("element","tableCellSuggestion"),c=r&&r.is(ra("0x25"),ra("0x1d"));a&&!s[ra("0x64")](i)&&x[ra("0x8")](i),c&&!s[ra("0x64")](r)&&x.add(r)}else n.is("element","paragraph")&&n[ra("0x8d")]&&(t[ra("0x61")](e[ra("0x51")]),o=!0)}else if(ra("0x93")==t.subType){if(!t[ra("0x83")]||!t[ra("0x83")][ra("0x1a")])continue;const e=t.attributes.markerAttributes;if(e&&Object.keys(e)[ra("0x1b")])continue;const n=t[ra("0x83")][ra("0x1a")];let i=!0,s=!0;for(const e of r)if(e[ra("0x26")]&&e[ra("0x26")].startsWith(ra("0x55"))){if(!e[ra("0x83")][ra("0x1a")]){s=!1;break}if(e.id!=t.id&&e[ra("0x83")][ra("0x1a")]==n){i=!1;break}}s&&i&&(t[ra("0x86")](),o=!0)}for(const t of s)e[ra("0x0")](t);for(const t of x)e[ra("0x1e")](t);return o})),t[ra("0x33")][ra("0x97")](ra("0x78"))[ra("0x54")]({model:ra("0x5a"),view:(t,e)=>l(t),converterPriority:ra("0x81")}),t[ra("0x33")].for("dataDowncast")[ra("0x54")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>e.options[ra("0x5e")]?l(t,!1):null,converterPriority:ra("0x81")});const u=t[ra("0x6e")].view;this.listenTo(u[ra("0x70")],ra("0x8c"),((t,e)=>{const n=[];for(const t of u[ra("0x96")](e[ra("0x18")]).getItems())t.is(ra("0x25"),ra("0x49"))&&n[ra("0x8f")](t);u[ra("0x92")]((t=>{for(const e of n)t[ra("0x4f")](t[ra("0x96")](e),t[ra("0x5d")](e)),t.remove(e)}))}))}}function ca(t){if(t[ra("0x8d")])return!0;const e=t[ra("0x8b")](0);return e.is(ra("0x25"),ra("0x42"))&&e[ra("0x8d")]}function la(t,e={},n){for(const{isAnchor:o,cellHeight:i,cellWidth:r}of n[ra("0x7")](t,{includeAllSlots:!0,...e}))if(!o||1!=i||1!=r)return!1;return!0}const ua=["handleSuggestionDescription","change","document","editor","author","formatInline","get","getAttribute","table","TableColumnResizeEditing","enableCommand","markBlockFormat","has","data","plugins","getSelectedElement","Users","_descriptionFactory","registerDescriptionCallback","_suggestionFactory","TrackChangesEditing","afterInit","commandParams","columnWidths","registerCustomCallback","getSuggestions","resizeTableWidth","getSuggestionCallback","type","subType","discard","resizeTable","formatGroupId","format","formatBlock","*Format:* resize table","tableWidth","accept","handleResizeTableWidthCommand","getTableColumnsWidths","bind"];var da,ga;da=ua,ga=118,function(t){for(;--t;)da.push(da.shift())}(++ga);const fa=function(t,e){return ua[t-=0]};class ma extends t.Plugin{[fa("0x1a")](){if(!this[fa("0x8")][fa("0x13")][fa("0x11")](fa("0xe")))return;const t=this[fa("0x8")].plugins[fa("0xb")](fa("0x19"));t[fa("0xf")](fa("0x1f"),this.handleResizeTableWidthCommand[fa("0x4")](this)),t._suggestionFactory[fa("0x1d")](fa("0x27"),fa("0x24"),"accept",t[fa("0x18")][fa("0x20")](fa("0x27"),null,fa("0x23"))),t[fa("0x18")][fa("0x1d")](fa("0x27"),fa("0x24"),fa("0x23"),t[fa("0x18")][fa("0x20")](fa("0x27"),null,fa("0x1"))),t[fa("0x16")][fa("0x17")](this[fa("0x5")][fa("0x4")](this))}[fa("0x2")](t,e){const n=this[fa("0x8")].plugins[fa("0xb")](fa("0x19")),o=this.editor[fa("0x13")][fa("0xb")]("TableColumnResizeEditing"),i=e[fa("0xd")]||this[fa("0x8")].model[fa("0x7")].selection[fa("0x14")]();this.editor.model[fa("0x6")]((()=>{const r=o.getColumnGroupElement(i);let s=r?o[fa("0x3")](r):null,x=i[fa("0xc")](fa("0x0"))||null;const a=e[fa("0x0")]||x,c=e[fa("0x1c")]||s,l=this[fa("0x8")][fa("0x13")].get(fa("0x15")).me;for(const t of n[fa("0x1e")]()){const e=t.getContainedElement();if(fa("0x24")===t[fa("0x22")]&&e===i){t[fa("0x9")]!==l&&t[fa("0x23")]();const e=t[fa("0x12")][fa("0x1b")];x=e[0].tableWidth,s=e[0][fa("0x1c")];break}}t({table:i,tableWidth:a,columnWidths:c}),n[fa("0x10")](i,{commandName:fa("0x1f"),commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:fa("0x24")},[],fa("0x24"))}))}[fa("0x5")](t){if(fa("0x27")!=t[fa("0x21")]&&fa("0xa")!=t[fa("0x21")])return;const{data:e}=t;if(e&&fa("0x24")===e[fa("0x25")]){const t=fa("0x28");return{type:fa("0x26"),content:Qo(this[fa("0x8")].locale,t)}}}}const ha=["enableCommand","TrackChangesEditing","plugins","has"];var pa,ba;pa=ha,ba=294,function(t){for(;--t;)pa.push(pa.shift())}(++ba);const Ea=function(t,e){return ha[t-=0]};class _a extends t.Plugin{afterInit(){const t=this.editor;t[Ea("0x0")][Ea("0x1")]("Template")&&t[Ea("0x0")].get(Ea("0x3"))[Ea("0x2")]("insertTemplate")}}const Ta=["plugins","_descriptionFactory","registerElementLabel","insertTableOfContents","editor","ELEMENT_TABLE_OF_CONTENTS","enableCommand","TrackChangesEditing","tableOfContents","get","locale"];var ya,Ca;ya=Ta,Ca=308,function(t){for(;--t;)ya.push(ya.shift())}(++Ca);const Aa=function(t,e){return Ta[t-=0]};class ka extends t.Plugin{afterInit(){const t=this[Aa("0x4")];if(!t.commands[Aa("0x9")](Aa("0x3")))return;t[Aa("0x0")][Aa("0x9")](Aa("0x7"))[Aa("0x6")](Aa("0x3"));const e=t[Aa("0x0")][Aa("0x9")](Aa("0x7")),n=t[Aa("0xa")];e[Aa("0x1")][Aa("0x2")](Aa("0x8"),(t=>Qo(n,Aa("0x5"),t)))}}const Ia=["newRange","plugins","updateMarker","ELEMENT_TITLE","element","registerPostFixer","get","title-content","locale","TrackChangesEditing","nodeBefore","suggestion","isCollapsed","forward","from","_descriptionFactory","editor","getChangedMarkers","_splitMarkerName","schema","end","getNearestSelectionRange","differ","removeMarker","isTouching","start","isEqual","Title","model","afterInit","document"];var Ra,Sa;Ra=Ia,Sa=378,function(t){for(;--t;)Ra.push(Ra.shift())}(++Sa);const va=function(t,e){return Ia[t-=0]};class Na extends t.Plugin{[va("0x17")](){const t=this[va("0xa")];if(!t[va("0x1a")].has(va("0x15")))return;const e=t[va("0x1a")][va("0x0")](va("0x3"));e[va("0x9")].registerElementLabel(va("0x1"),(()=>Qo(t[va("0x2")],va("0x1c")))),t.model[va("0x18")][va("0x1e")]((n=>{let o=!1;const i=Array[va("0x8")](t[va("0x16")].document[va("0x10")][va("0xb")]());for(const{name:r,data:s}of i){const{group:i}=e[va("0xc")](r);if(va("0x5")!==i||!s[va("0x19")])continue;const x=s.newRange,a=x[va("0xe")][va("0x4")];if(!a||!a.is(va("0x1d"),va("0x1")))continue;if(!x[va("0x13")][va("0x12")](x[va("0xe")]))continue;const c=t[va("0x16")][va("0xd")][va("0xf")](x.end,va("0x7"));if(c&&c[va("0x6")]){const t=n.createRange(x.start,c[va("0x13")]);t[va("0x14")](x)||(n[va("0x1b")](r,{range:t}),o=!0)}o||(n[va("0x11")](r),o=!0)}return o}))}}const La=["TrackChangesEditing","redo","editor","plugins","get","UndoEditing","afterInit"];var Ma,wa;Ma=La,wa=499,function(t){for(;--t;)Ma.push(Ma.shift())}(++wa);const Oa=function(t,e){return La[t-=0]};class Fa extends t.Plugin{[Oa("0x4")](){const t=this[Oa("0x0")],e=t[Oa("0x1")][Oa("0x2")](Oa("0x5"));t[Oa("0x1")].has(Oa("0x3"))&&(e.enableCommand("undo"),e.enableCommand(Oa("0x6")))}}const Da=["get","enableCommand","requires","plugins","has","TrackChangesEditing"];var Ba,Pa;Ba=Da,Pa=105,function(t){for(;--t;)Ba.push(Ba.shift())}(++Pa);const Ua=function(t,e){return Da[t-=0]};class ja extends t.Plugin{static get[Ua("0x5")](){return[zx]}afterInit(){const t=this.editor;t[Ua("0x0")][Ua("0x1")]("TableCaptionEditing")&&t[Ua("0x0")][Ua("0x3")](Ua("0x2"))[Ua("0x4")]("toggleTableCaption")}}const Ga=["_handlePropertyChange","tableCellBackgroundColor","join","batch","tableHeight","enableCommand","tableCellHeight","getFirstPosition","TrackChangesTableProperties","formatBlock","document","tableCellBorderColor","handleDiscardAction","nodeAfter","tableProperties","discard","*Format:* change table cell properties","TrackChangesEditing","table","tableWidth","findAncestor","tableCellPadding","markBlockFormat","getSuggestionCallback","tableCellVerticalAlignment","subType","_getSuggestion","afterInit","get","registerCustomCallback","tableAlignment","getSelectionAffectedTableCells","editor","commandParams","_suggestionFactory","tableBorderWidth","tableBorderStyle","getContainedElement","format","locale","TablePropertiesEditing","change","handleSuggestionDescription","TableCellPropertiesEditing","tableCellProperties","enqueueChange","data","tableCellBorderStyle","plugins","*Format:* change table properties","registerDescriptionCallback","tableCellHorizontalAlignment","pluginName","selection","_descriptionFactory","has","model","setAttribute","accept"];var Va,Ha;Va=Ga,Ha=403,function(t){for(;--t;)Va.push(Va.shift())}(++Ha);const za=function(t,e){return Ga[t-=0]};class Wa extends t.Plugin{constructor(t){super(t),this.tableProperties=["tableBorderColor",za("0x2e"),za("0x2d"),za("0x28"),za("0x1d"),za("0xe"),"tableBackgroundColor"],this[za("0x36")]=[za("0x15"),za("0x39"),"tableCellBorderWidth",za("0x1f"),"tableCellWidth",za("0x10"),za("0xb"),za("0x2"),za("0x22")]}static get[za("0x3")](){return za("0x12")}[za("0x25")](){const t=this[za("0x2a")].plugins[za("0x26")](za("0x1b"));if(this[za("0x2a")][za("0x3a")].has(za("0x32"))){for(const e of this[za("0x18")])t.enableCommand(e,((t,n)=>{const o=this[za("0x2a")][za("0x7")][za("0x14")][za("0x4")][za("0x11")]()[za("0x1e")](za("0x1c"));this[za("0xa")](e,[o],this.tableProperties,za("0x18"),t,n)}));t._suggestionFactory[za("0x27")]("formatBlock",za("0x18"),"accept",t._suggestionFactory.getSuggestionCallback(za("0x13"),null,za("0x19"))),t[za("0x2c")].registerCustomCallback(za("0x13"),"tableProperties",za("0x19"),((t,e)=>this.handleDiscardAction(this[za("0x18")],t,e))),t._suggestionFactory[za("0x27")]("formatBlock",za("0x18"),za("0xc"),(()=>!1))}if(this[za("0x2a")].plugins[za("0x6")](za("0x35"))){for(const e of this[za("0x36")])t[za("0xf")](e,((t,n)=>{const o=this[za("0x2a")].plugins[za("0x26")]("TableUtils")[za("0x29")](this.editor[za("0x7")].document[za("0x4")]);this[za("0xa")](e,o,this.tableCellProperties,za("0x36"),t,n)}));t._suggestionFactory.registerCustomCallback(za("0x13"),za("0x36"),za("0x9"),t._suggestionFactory[za("0x21")](za("0x13"),null,za("0x19"))),t[za("0x2c")].registerCustomCallback(za("0x13"),za("0x36"),za("0x19"),((t,e)=>this[za("0x16")](this[za("0x36")],t,e))),t[za("0x2c")][za("0x27")](za("0x13"),"tableCellProperties","join",(()=>!1))}t[za("0x5")][za("0x1")]((t=>this[za("0x34")](t)))}[za("0xa")](t,e,n,o,i,r){const s=this.editor[za("0x3a")][za("0x26")](za("0x1b"));this.editor[za("0x7")][za("0x37")](r[za("0xd")],(()=>{for(const t of e)if(this._getSuggestion(t,o))i(r);else{const e={};for(const o of n){const n=t.getAttribute(o);void 0!==n&&(e[o]=n)}i(r),s[za("0x20")](t,{commandParams:[e]},[],o)}}))}handleDiscardAction(t,e,n){const o=e[0].start[za("0x17")],i=n[za("0x2b")][0];this[za("0x2a")][za("0x7")][za("0x33")]((e=>{for(const n of t)void 0!==i[n]?e[za("0x8")](n,i[n],o):e.removeAttribute(n,o)}))}handleSuggestionDescription(t){if(t[za("0x38")])switch(t.subType){case za("0x18"):return{type:"format",content:Qo(this[za("0x2a")][za("0x31")],za("0x0"))};case"tableCellProperties":return{type:za("0x30"),content:Qo(this[za("0x2a")][za("0x31")],za("0x1a"))}}}[za("0x24")](t,e){const n=this[za("0x2a")][za("0x3a")][za("0x26")](za("0x1b"));for(const o of n.getSuggestions({skipNotAttached:!0})){const n=o[za("0x2f")]();if(o[za("0x23")]===e&&n===t)return o}return null}}var Ka=Function.prototype,qa=Object.prototype,Xa=Ka.toString,$a=qa.hasOwnProperty,Za=Xa.call(Object);const Ya=function(t){if(!xe(t)||"[object Object]"!=gt(t))return!1;var e=xn(t);if(null===e)return!0;var n=$a.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Xa.call(n)==Za};const Ja=function(t){return Ya(t)?void 0:t};var Qa=it?it.isConcatSpreadable:void 0;const tc=function(t){return ge(t)||de(t)||!!(Qa&&t&&t[Qa])};const ec=function t(e,n,o,i,r){var s=-1,x=e.length;for(o||(o=tc),r||(r=[]);++s<x;){var a=e[s];n>0&&o(a)?n>1?t(a,n-1,o,i,r):sn(r,a):i||(r[r.length]=a)}return r};const nc=function(t){return(null==t?0:t.length)?ec(t,1):[]};const oc=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)};var ic=Math.max;const rc=function(t,e,n){return e=ic(void 0===e?t.length-1:e,0),function(){for(var o=arguments,i=-1,r=ic(o.length-e,0),s=Array(r);++i<r;)s[i]=o[e+i];i=-1;for(var x=Array(e+1);++i<e;)x[i]=o[i];return x[e]=n(s),oc(t,this,x)}};const sc=function(t){return function(){return t}};const xc=ee?function(t,e){return ee(t,"toString",{configurable:!0,enumerable:!1,value:sc(e),writable:!0})}:function(t){return t};var ac=Date.now;const cc=function(t){var e=0,n=0;return function(){var o=ac(),i=16-(o-n);if(n=o,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(xc);const lc=function(t){return cc(rc(t,void 0,nc),t+"")}((function(t,e){var n={};if(null==t)return n;var o=!1;e=uo(e,(function(e){return e=po(e,t),o||(o=e.length>1),e})),re(t,dn(t),n),o&&(n=to(n,7,Ja));for(var i=e.length;i--;)Ko(n,e[i]);return n})),uc=["stopListening","acceptAllSuggestions","_handleNewSuggestionMarker","$text","formatBlock:join","_getSuggestionData","addSuggestionData","add","nodeAfter","markerReady","track-changes-command-not-found","range","addSuggestion","getFirstRange","markers","stop","containsRange","addMarkerName","resolve","isArray","markInlineFormat","_addSuggestionMarker","marker-count","acceptSelectedSuggestions","toJSON","removeMarker:suggestion:formatBlock","formatBlock","suggestion-type","ck-suggestion-marker--active","splice","getItems","_breakSuggestionMarker","registerCustomCallback","formatInline:discard","formatInline","TrackChangesEditing","ready","_suggestions","deletion","_suggestionState","trackChanges","commandName","discard","getAllAdjacentSuggestions","upcast","oldRange","attribute","attributeKey","addMarker:suggestion","default","getLastMatchingPosition","originalSuggestionId","_processAttributeChanges","trackChangesCommand","_removeSuggestion","never","markerName","ENTER","_model","nodeBefore","options","isNextTo","isIntersecting","_descriptionFactory","getRanges","getSuggestions","creator","consume","fromCharCode","oldValue","insertion:accept","every","_rangeIsInLocalUserInsertion","_customCallbacks","getCommentThread","isAtEnd","FORMATTING","parent","getChangedMarkers","fromRange","data-suggestion","fire","acceptSuggestion","data","subType","type","value","highest","attributeOldValue","getCustomProperty","hasComments","PendingActions","getFirstMarker","newValue","reconvertMarker","createPositionAt","removeComment","find","documentSelection","position","locale","getMarkers","createPositionAfter","after","createElement","isInsideObject","addHighlight","group","getAttribute","getUser","getMultiRangeId","define","_registerInlineAttribute","isEqual","markMultiRangeBlockFormat","removeMarkers","conversion","formatBlock:accept","next","removed","set","getDifference","isMultiRange","push","formatGroupId","assign","detach","activeMarkers","_joinWithAdjacentSuggestions","meta","keys","_splitMarkerName","_inlineAttributeKeys","_isForcedDefaultExecutionBlock","skipNestingCheck","pop","_adapter","createdAt","forEach","getContainedElement","editingDowncast","getIntersection","newRange","buildSuggestion","isLimit","addRange","selection","setSelection","isBlock","suggestion:","$elementName","_findSuggestions","@external","track-changes-adapter-already-set","markerToHighlight","addAttribute","getNearestSelectionRange","isUndo","ck-suggestion-marker-","name","change","formatInline:chain","delete","getChanges","_isDataLoaded","startsWith","editing","toUpperCase","isOwn","normal","getSuggestion","enableReadOnlyMode","addComment","moveTargetPosition","rejected","dataDowncast","_editor","widget","suggestionLoaded","error-saving-suggestion-data-suggestion-discarded","document","_processAttributeSuggestions","attributeNewValue","track-changes-user-not-found","ck-suggestion-marker-formatBlock","getRange","containsItem","consumable","isLocal","_addThreadToSuggestion","size","authorName","schema","insertion:","trackChanges.trackFormatChanges","markAttributeChange","filter","removeAttribute","_SUGGESTION_ANNOUNCEMENT","accept","ariaLiveAnnouncer","removeMarker:suggestion:attribute","has","isAfter","targetPosition","unbindElementFromMarkerName","_checkSuggestionCorrectness","isIntersectingWithRange","forward","root","isObject","change:data","getWalker","markMultiRangeInsertion","dataToMarker","from","$graveyard","LEAVE","groupId","includes","refresh","isBefore","isCollapsed","writer","updateMarker","PENDING_ACTION_SUGGESTION","update:suggestion","remove","length","getSuggestionCallback","containsRangeInObject","authoredAt","join","addMarker:suggestion:attribute","applyOperation","warn","announce","addMarker:suggestion:formatBlock","_getMarkerAnnouncementText","rootName","suggestionChanged","showSuggestionHighlights","_registerDefaultCallbacks","ck-suggestion-marker-formatInline","addCommentThread","insert","setAttribute","substr","_defaultCallbacks","isDocumentOperation","_setSuggestionData","commands","updateSuggestion","_initAriaMarkerChangeAnnouncements","_updateSuggestionData","_reduceSuggestionAttributeRange","format","Creating a suggestion for attribute with too long attribute key. This may lead to errors. Change the attribute key to a value shorter than 37 characters.","registerPostFixer","deletion:","dataReady","deletion:join","deleteContent","_onDiscard","listenTo","removeMarker","some","discardSelectedSuggestions","_saved","previous","setTo","adapter","track-changes-suggestion-data-mismatch","suggestion","formatBlock:","isRemovable","change:activeMarkers","markDeletion","trackChanges.mergeNestedSuggestions","commentThread","insertion:join","mapper","values","_recordAttributeSuggestionsFromVersion","getShiftedBy","model","_refreshAttributeSuggestionsChain","_recordAttributeChanges","before","_joinSuggestions","_refreshSuggestionsChain","clear","attribute:accept","end","discardSuggestion","createSelection","ck-suggestion-marker","_cutOutSuggestionMarker","newName","containerElement","markInsertion","_createSuggestion","substring","_blockAttributeKeys","multipleBlocks","differ","formatBlock:chain","_trackFormatChanges","Users","comments","backward","catch","attribute:discard","containsPosition","key","attributes","isExternal","editor","batch","move","author","_setSuggestionRange","map","element","item","createRangeOn","rename","_commentsRepository","splitPosition","track-changes-adapter-missing-getsuggestion","collaboration.channelId","_reduceExistingSuggestions","formatBlock:discard","fetchCommentThread","multi","high","plugins","howMany","markerNameToElements","deletion:discard","then","markMultiRangeDeletion","concat","formatInline:","change:_saved","elementStart","for","_suggestionFactory","createRange","_isBlockAttribute","track-changes-suggestion-not-found","addClass","hasSuggestion","isInContent","_getAuthorFromId","start","enableCommand","always","history","pluginName","removeClass","config","getAncestors","rethrowUnexpectedError","_mergeNestedSuggestions","low","notReady","_enabledCommands","_enableDefaultAttributesIntegration","deletion:chain","insertion","forceDefaultExecution","get","split","sort","enqueueChange","execute","discardAllSuggestions","chain"];var dc,gc;dc=uc,gc=111,function(t){for(;--t;)dc.push(dc.shift())}(++gc);const fc=function(t,e){return uc[t-=0]},mc=fc("0x27");class hc extends t.Plugin{static get requires(){return["CommentsRepository",r.Users,t.PendingActions,ci,fi,_i,ki,Li,Di,Vi,tr,rr,lr,hr,Tr,Rr,Mr,Pr,Hr,Xr,Qr,is,fs,cs,Es,As,vs,Os,Us,Ks,Ys,nx,xx,dx,bx,Cx,Sx,Ox,Ux,zx,Zx,ea,ja,aa,ma,ka,Wa,_a,Na,Fa]}static get[fc("0xf8")](){return fc("0x12f")}constructor(t){function e(t){return t.map((t=>String[fc("0x150")](t)))[fc("0x79")]("")}super(t),this[fc("0xac")]=null,this.set(fc("0x10"),[]),this.on(fc("0xa5"),((e,n,o,i)=>{this[fc("0x146")][fc("0x31")]((()=>{for(const e of[...i,...o])this._model.markers[fc("0x5b")](e)&&t[fc("0x37")][fc("0x16a")](e)}))})),this[fc("0x14b")]=new ii(this[fc("0xce")][fc("0xae")][fc("0x51")],this[fc("0xce")][fc("0x170")]),this[fc("0x19")]=null,this[fc("0xec")]=new pc(this[fc("0xce")]),this[fc("0x131")]=new Map,this[fc("0xd8")]=t[fc("0xe1")][fc("0x105")]("CommentsRepository"),this._enabledCommands=new Set,this._model=this[fc("0xce")][fc("0xae")],this[fc("0x133")]=new WeakMap,this[fc("0x16")]=!1,this[fc("0xc0")]=new Set([fc("0x27")]),this._inlineAttributeKeys=new Set,t[fc("0xfa")][fc("0x0")](fc("0x53"),"default"),this[fc("0xc4")]=t[fc("0xfa")][fc("0x105")](fc("0x53")),t[fc("0xfa")][fc("0x0")](fc("0xa7"),!0),this[fc("0xfd")]=t[fc("0xfa")][fc("0x105")](fc("0xa7")),this[fc("0x141")]=new d(t,this[fc("0x100")]),this[fc("0x8e")](),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,50,52,51,56])}init(){const t=this[fc("0xce")],n=(t,e)=>{if(fc("0x13a")!=t)return fc("0x2f")+t;const n=e[fc("0x106")]("|")[0];return this[fc("0xee")](n)?fc("0x49"):fc("0x84")};t[fc("0x5")].for(fc("0x1d"))[fc("0x2b")]({model:fc("0xa2"),view:t=>{const{id:e,type:o,subType:i}=this[fc("0x14")](t[fc("0x144")]),r=[fc("0xb9"),n(o,i)];let s=3e3;return this[fc("0x10")][fc("0x6c")](t.markerName)&&(r.push(fc("0x128")),s=3010),fc("0x132")==o&&(s+=5),{classes:r,attributes:{"data-suggestion":e},priority:s}}}),t[fc("0x5")].for(fc("0x40"))[fc("0x113")]((e=>{e.on(fc("0x13c"),((e,n,o)=>{if(!o[fc("0x148")].showSuggestionHighlights)return;const i=n.item;if(!i)return;const r=o.mapper.toViewElement(i);t[fc("0xae")][fc("0x51")][fc("0x63")](i)&&r&&!r[fc("0x165")](fc("0x42"))&&r.is(fc("0xbc"))&&(0,x.toWidget)(r,o[fc("0x70")])}),{priority:fc("0xe0")})})),t[fc("0x5")][fc("0xeb")](fc("0x40"))[fc("0x2b")]({model:fc("0xa2"),view:(t,e)=>{if(!e[fc("0x148")][fc("0x82")])return null;const{type:o,subType:i}=this._splitMarkerName(t[fc("0x144")]);return{classes:[fc("0xb9"),n(o,i)],priority:3e3}}});const o=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(o,i,r)=>{if(!i[fc("0xd5")])return;const{id:s}=this._splitMarkerName(i.markerName);if(n){const t=Sc(this[fc("0x131")][fc("0x105")](s));if(!this._isBlockAttribute(t))return}if(i[fc("0xd5")].is(fc("0x23")))return void r[fc("0x4c")][fc("0x14f")](i[fc("0xd5")],o[fc("0x30")]);const x=r[fc("0xaa")].toViewElement(i[fc("0xd5")]);if(i[fc("0xd5")].is(fc("0xd4"))&&t[fc("0xae")].schema[fc("0x25")](i[fc("0xd5")])&&!x.getCustomProperty(fc("0x176"))){r[fc("0x70")][fc("0xf0")]([fc("0xb9"),fc("0x49")],x),r[fc("0x70")][fc("0x87")]("data-suggestion",s,x),r[fc("0xaa")].bindElementToMarker(x,i.markerName),e&&(this[fc("0x10")][fc("0x6c")](i[fc("0x144")])?r.writer[fc("0xf0")](fc("0x128"),x):r.writer[fc("0xf9")](fc("0x128"),x));for(const e of t[fc("0xae")].createRangeIn(i.item)[fc("0x12a")]())r.consumable.consume(e,o.name);r[fc("0x4c")].consume(i.item,o[fc("0x30")])}};t[fc("0x5")][fc("0xeb")]("dataDowncast")[fc("0x113")]((t=>{t.on(fc("0x7e"),((t,e,n)=>{n.options.showSuggestionHighlights&&o({showActiveMarkers:!1})(t,e,n)}),{priority:"highest"})})),t[fc("0x5")][fc("0xeb")](fc("0x40"))[fc("0x113")]((t=>{t.on("addMarker:suggestion:attribute",((t,e,n)=>{n.options[fc("0x82")]&&o({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:fc("0x163")})})),t[fc("0x5")].for(fc("0x40")).markerToData({model:"suggestion",view:(t,e)=>e[fc("0x148")][fc("0x82")]?null:{group:"suggestion",name:t[fc("0x88")](11)}}),t.conversion.for(fc("0x138")).elementToElement({view:{name:"suggestion",attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=fc("0x26")+t.getAttribute(fc("0x127"))+":"+t[fc("0x178")]("id");return t.getAttribute(fc("0x122"))&&(n+=":"+t[fc("0x178")](fc("0x122"))),e[fc("0x174")]("$marker",{"data-name":n})}}),t[fc("0x5")].for(fc("0x138"))[fc("0x67")]({view:fc("0xa2")}),t[fc("0x5")][fc("0xeb")]("editingDowncast").add((t=>{t.on(fc("0x7e"),o(),{priority:fc("0xe0")})})),t[fc("0x5")][fc("0xeb")](fc("0x1d")).add((t=>{t.on(fc("0x7a"),o({isAttributeSuggestion:!0}),{priority:fc("0xe0")})})),t[fc("0x5")][fc("0xeb")](fc("0x1d"))[fc("0x113")]((t=>{t.on(fc("0x125"),((t,e,n)=>{const o=n[fc("0xaa")][fc("0xe3")](e.markerName);if(o)for(const t of o)t.getCustomProperty(fc("0x176"))||(n[fc("0x70")][fc("0xf9")](["ck-suggestion-marker",fc("0x49"),fc("0x128")],t),n.writer[fc("0x56")]("data-suggestion",t),n[fc("0xaa")][fc("0x5e")](t,e.markerName))}),{priority:fc("0xe0")})})),t[fc("0x5")][fc("0xeb")](fc("0x1d"))[fc("0x113")]((t=>{t.on(fc("0x5a"),((t,e,n)=>{const o=n.mapper[fc("0xe3")](e[fc("0x144")]);if(!o)return;const{id:i}=this._splitMarkerName(e[fc("0x144")]),r=Sc(this[fc("0x131")].get(i));if(this[fc("0xee")](r))for(const t of o)t.getCustomProperty(fc("0x176"))||(n[fc("0x70")][fc("0xf9")](["ck-suggestion-marker","ck-suggestion-marker-formatBlock",fc("0x128")],t),n[fc("0x70")][fc("0x56")](fc("0x15c"),t),n[fc("0xaa")][fc("0x5e")](t,e[fc("0x144")]))}),{priority:fc("0xe0")})})),t[fc("0xae")][fc("0x45")][fc("0x93")]((e=>{let n=!1;const o=Array[fc("0x68")](t.model.document[fc("0xc2")].getChangedMarkers()),i=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,subType:l,id:u}=this[fc("0x14")](x);if(fc("0xa2")!==o)continue;const d=this[fc("0x131")][fc("0x105")](u);if(null!=a[fc("0x1f")]){"formatInline"==c&&(n=n||_c(a[fc("0x1f")],x,e,t[fc("0xae")][fc("0x51")]));const o="attribute"==c&&this[fc("0xee")](l[fc("0x106")]("|")[0]);if(a[fc("0x1f")].isCollapsed||"$graveyard"==a.newRange[fc("0x62")][fc("0x80")]||fc("0x126")==c&&!yc(a[fc("0x1f")])||o&&!yc(a[fc("0x1f")])||fc("0x132")==c&&(Ec(s=a.newRange)||(r=s).start[fc("0x159")]==r[fc("0xb6")][fc("0x147")]&&r[fc("0xf4")][fc("0x157")]))e[fc("0x9a")](x),n=!0;else{if(!d||!d[fc("0xf2")])continue;i.add(d)}}}var r,s;return i[fc("0x4f")]>0&&(n=!!this._joinWithAdjacentSuggestions(i)||n),n})),t[fc("0xae")][fc("0x45")].registerPostFixer((e=>{let n=!1;for(const o of t[fc("0xae")].document[fc("0xc2")][fc("0x34")]())if("insert"==o[fc("0x161")])for(const o of this[fc("0x131")][fc("0xab")]()){if(o[fc("0xb")]||!o.isInContent)continue;const i=fc("0x126")==o[fc("0x161")],r=Sc(o),s=r&&this[fc("0xee")](r);if(!i&&!s)continue;const x=o[fc("0x119")]();if(x[fc("0xf4")].parent!=x[fc("0xb6")][fc("0x159")]&&!x[fc("0xb6")][fc("0x157")]){const i=t[fc("0xae")][fc("0x16b")](x.start.nodeAfter,fc("0xb6")),r=t[fc("0xae")][fc("0xed")](x[fc("0xf4")],i);e[fc("0x71")](o[fc("0x168")](),{range:r}),n=!0}}return n})),t[fc("0xae")][fc("0x45")].registerPostFixer((t=>this[fc("0x140")](t))),t.model[fc("0x45")].registerPostFixer((t=>!t[fc("0xcf")][fc("0x4d")]&&this[fc("0x46")](t))),t[fc("0xae")][fc("0x11a")].on(fc("0x73"),((t,e,n)=>{if(null==n){const{id:t}=this[fc("0x14")](e[fc("0x30")]),n=this._suggestions.get(t);n&&n[fc("0x11d")](e[fc("0x30")])}})),t[fc("0xae")][fc("0x45")].on(fc("0x64"),(()=>{const e=Array[fc("0x68")](t[fc("0xae")][fc("0x45")][fc("0xc2")][fc("0x15a")]())[fc("0x55")]((t=>fc("0xa2")===this[fc("0x14")](t[fc("0x30")])[fc("0x177")]));if(0===e[fc("0x75")])return;e[fc("0x107")](((t,e)=>{const n=t[fc("0x15f")][fc("0x139")],o=e[fc("0x15f")].oldRange;return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[fc("0xf4")][fc("0x6e")](o[fc("0xf4")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:i}of e){const{id:e}=this._splitMarkerName(t);if(null===i[fc("0x139")]){const e=this[fc("0x10e")](t);o[fc("0x113")](e)}else{const t=this[fc("0x131")][fc("0x105")](e);null!==i[fc("0x1f")]||t[fc("0xf2")]?(n[fc("0x113")](t.head),o.add(t)):this[fc("0x142")](t)}}o.size>0&&this[fc("0xb3")](o);for(const t of n)this[fc("0x15d")]("suggestionChanged",t)})),t.model.on(fc("0x7b"),((e,n)=>{const o=n[0];if(!this[fc("0x131")].size)return;if(!o[fc("0x8a")])return;if(o[fc("0xcf")][fc("0x2e")]||!o[fc("0xcf")][fc("0x4d")])return;let i,r;switch(o[fc("0x161")]){case fc("0x86"):i=t.model.createPositionAt(o[fc("0x16f")]),r=i[fc("0xad")](o[fc("0xe2")]);break;case fc("0x106"):i=t[fc("0xae")][fc("0x16b")](o[fc("0xd9")]),r=t[fc("0xae")].createPositionAt(o[fc("0x3e")]);break;case fc("0xd0"):i=t[fc("0xae")][fc("0x16b")](o[fc("0x5d")]),r=i[fc("0xad")](o[fc("0xe2")]);break;default:return}const s=t[fc("0xae")][fc("0xed")](i,r);t[fc("0xae")][fc("0x31")]((()=>{for(const{suggestion:t,meta:e}of this[fc("0x28")](s)){if(t[fc("0xb")])continue;if(fc("0x12e")==t[fc("0x161")])continue;const n=Sc(t);if(n&&this._isBlockAttribute(n)&&fc("0x106")!=o[fc("0x161")])continue;const x=t[fc("0x15f")]&&t[fc("0x15f")][fc("0xc1")];(fc("0x126")!=t[fc("0x161")]||fc("0x106")==o.type&&!x)&&(e.containsRangeInObject||"insertion"==t[fc("0x161")]&&e[fc("0x39")]||t.getFirstRange()[fc("0x11c")](s)&&this._breakSuggestionMarker(t,i,r))}}))}),{priority:"lowest"}),t.model.on(fc("0x97"),((e,n)=>{const o=n[0],i=n[1];if(i&&i[fc("0x104")])return;if(this[fc("0x16")])return;if(!this[fc("0x141")][fc("0x162")])return;if(o[fc("0x6f")])return;const r=t.model[fc("0x51")],{start:s,end:x}=o[fc("0x119")](),a=s[fc("0x114")]&&r[fc("0x21")](s[fc("0x114")])?null:r.getNearestSelectionRange(s,fc("0x61")),c=x[fc("0x147")]&&r[fc("0x21")](x[fc("0x147")])?null:r[fc("0x2d")](x,fc("0xc7")),l=t[fc("0xae")].createRange(a?a[fc("0xf4")]:s,c?c[fc("0xb6")]:x);t[fc("0xae")][fc("0x31")]((e=>{this[fc("0xa6")](l);const n=t[fc("0xae")][fc("0x51")][fc("0x2d")](l[fc("0xf4")]);o.is(fc("0x16e"))?e.setSelection(n):o[fc("0x9f")](n)})),e[fc("0x11b")]()}),{priority:e.priorities[fc("0x3a")]+10}),t[fc("0xae")].on("insertContent",((e,n)=>{const o=n[n[fc("0x75")]-1];o&&o[fc("0x104")]||this[fc("0x16")]||this.trackChangesCommand[fc("0x162")]&&(t[fc("0xae")][fc("0x31")]((()=>{let o=t.model.insertContent(n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e.return=o.clone();const i=o[fc("0xb6")].nodeBefore,r=t.model.schema;i&&r.isBlock(i)&&!r[fc("0x63")](i)&&(o=t[fc("0xae")][fc("0xed")](o[fc("0xf4")],t[fc("0xae")][fc("0x16b")](i,fc("0xb6")))),this[fc("0xbd")](o)})),e[fc("0x11b")]())}),{priority:fc("0xe0")}),this[fc("0xce")][fc("0x8c")][fc("0x113")](fc("0x134"),this[fc("0x141")]),this[fc("0xf5")](fc("0x134"));const i=new p(t,this[fc("0x131")]);t[fc("0x8c")][fc("0x113")](fc("0x15e"),i),this[fc("0xf5")](fc("0x15e"));const r=new y(t,this[fc("0x131")]);t[fc("0x8c")][fc("0x113")](fc("0xb7"),r),this.enableCommand("discardSuggestion"),t[fc("0x8c")][fc("0x113")](fc("0x10d"),new F(t,i,this[fc("0x131")])),this[fc("0xf5")](fc("0x10d")),t[fc("0x8c")][fc("0x113")]("discardAllSuggestions",new F(t,r,this[fc("0x131")])),this[fc("0xf5")](fc("0x10a")),t.commands[fc("0x113")](fc("0x123"),new j(t,i,this[fc("0x131")])),this[fc("0xf5")](fc("0x123")),t[fc("0x8c")].add(fc("0x9c"),new j(t,r,this._suggestions)),this[fc("0xf5")](fc("0x9c"));const s=t.plugins[fc("0x105")]("CommentsRepository");this[fc("0x99")](s,fc("0x3d"),((t,{threadId:e})=>{const n=this[fc("0x131")][fc("0x105")](e);n&&n.commentThread&&1===n[fc("0xa8")][fc("0x75")]&&this[fc("0x8f")](e,{hasComments:!0})}),{priority:fc("0xfe")}),this[fc("0x99")](s,fc("0x16c"),((t,{threadId:e})=>{const n=this._suggestions.get(e);n&&n.commentThread&&!n[fc("0xa8")][fc("0x75")]&&this[fc("0x8f")](e,{hasComments:!1})}),{priority:fc("0xfe")})}set[fc("0xa0")](t){if(this[fc("0x19")])throw new e.CKEditorError(fc("0x2a"),this);this[fc("0x19")]=t}get[fc("0xa0")](){return this[fc("0x19")]}[fc("0x14d")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[fc("0x131")][fc("0xab")]())t&&!e[fc("0xf2")]||n[fc("0xc")](e);return e?n[fc("0xd3")]((t=>t[fc("0x124")]())):n}[fc("0x3b")](t){const n=this._suggestions[fc("0x105")](t);if(!n)throw new e.CKEditorError(fc("0xef"),this);return n}[fc("0xf1")](t){return this[fc("0x131")][fc("0x5b")](t)}addSuggestionData(t){const{authorId:e,id:n,attributes:o}=t,[i,r]=t[fc("0x161")][fc("0x106")](":"),s=this._suggestions.get(n)||this[fc("0xbe")](i,r,n,e,o);if(this._addThreadToSuggestion(s),this[fc("0x5f")](s,i,r||null,e),s.createdAt=t.createdAt,s[fc("0x35")]=!0,o&&o[fc("0x29")]){const t=o[fc("0x29")],e=this._getExternalAuthor(t[fc("0x50")]);s.authoredAt=t[fc("0x1a")],s[fc("0xd1")]=e,s[fc("0xcd")]=!0}else s[fc("0x78")]=t[fc("0x1a")];switch(t[fc("0x15f")]&&(s[fc("0x15f")]=t[fc("0x15f")]),t.attributes&&(s[fc("0xcc")]=t[fc("0xcc")]),this[fc("0x19")]&&this[fc("0x19")][fc("0x118")]||(s[fc("0x9d")]=!0),this[fc("0x133")].get(s)){case"notReady":this[fc("0x133")].set(s,fc("0x95"));break;case fc("0x115"):s[fc("0xf2")]?(this[fc("0xb3")](new Set([s])),this[fc("0x11")](new Set([s])),this[fc("0x133")][fc("0x9")](s,fc("0x130")),this[fc("0x15d")](fc("0x43"),s)):this[fc("0x133")][fc("0x9")](s,fc("0x8"))}return s}[fc("0x15e")](t){this[fc("0x104")]((()=>{this[fc("0xce")][fc("0xae")].change((()=>{for(const e of t[fc("0x137")]())e[fc("0x58")]()}))}))}[fc("0xb7")](t){this[fc("0x104")]((()=>{this.editor[fc("0xae")][fc("0x31")]((()=>{for(const e of t.getAllAdjacentSuggestions())e.discard()}))}))}enableCommand(t,n){const o=this[fc("0xce")][fc("0x8c")].get(t);if(!o)throw new e.CKEditorError(fc("0x116"),this,{commandName:t});if(this[fc("0x100")][fc("0x5b")](o))throw new e.CKEditorError("track-changes-enable-command-twice",this,{commandName:t});this._enabledCommands[fc("0x113")](o),n&&o.on("execute",((t,e)=>{this[fc("0x141")][fc("0x162")]&&(this._isForcedDefaultExecutionBlock||(e[fc("0x75")]>0&&e[e[fc("0x75")]-1]&&e[e[fc("0x75")]-1][fc("0x104")]?e[fc("0x18")]():(t.return=n(((...t)=>o[fc("0x109")](...t,{forceDefaultExecution:!0})),...e),t[fc("0x11b")]())))}),{priority:fc("0xe0")})}[fc("0x104")](t){let n,o;const i=this[fc("0x16")];this._isForcedDefaultExecutionBlock=!0;try{n=t()}catch(t){o=t}return i||(this[fc("0x16")]=!1),o&&e.CKEditorError[fc("0xfc")](o,this),n}[fc("0xbd")](t,n=null,o={}){if(t[fc("0x6f")])return null;const i=this[fc("0xce")][fc("0xe1")][fc("0x105")](fc("0xc5")).me;for(const{suggestion:e,meta:i}of this[fc("0x28")](t,"insertion"))if(i[fc("0x39")]){if(!i[fc("0x149")]){if(i[fc("0x77")]){if(!this._mergeNestedSuggestions||!Ic(e,o))continue;return e}if(Ic(e,o))return e;this[fc("0x12b")](e,t[fc("0xf4")],t[fc("0xb6")]);break}if(n==e[fc("0x160")]&&Ic(e,o)){const n=e[fc("0x119")]();return n[fc("0xf4")][fc("0x2")](t[fc("0xb6")])?this._setSuggestionRange(e,this[fc("0x146")][fc("0xed")](t[fc("0xf4")],n[fc("0xb6")])):this[fc("0xd2")](e,this._model[fc("0xed")](n.start,t.end)),e}}const r=(0,e.uid)(),s=i.id,x=n?fc("0x52")+n:"insertion",a=this[fc("0x8b")]({id:r,type:x,createdAt:new Date,authorId:s,attributes:o});return this[fc("0x121")](x,r,s,t),a}[fc("0x66")](t,n=fc("0xdf"),o={}){const i=this[fc("0xce")][fc("0xe1")][fc("0x105")](fc("0xc5")).me,r=this._suggestionFactory[fc("0x76")](fc("0x103"),n,fc("0x79"));for(const e of this[fc("0x14d")]())if(e.author.id==i.id&&"insertion"==e.type&&e.subType==n&&Ic(e,o)&&(r(e[fc("0x14c")](),t)||r(t,e[fc("0x14c")]()))){for(const n of t)e[fc("0x22")](n);return e}for(const{suggestion:e,meta:n}of this[fc("0x28")](t,fc("0x103"))){if(!n[fc("0x39")])continue;if(!this[fc("0xfd")]&&n[fc("0x77")])continue;if(!Ic(e,o))continue;let i=!0;for(const n of e[fc("0x14c")]())for(const e of t)if(!n[fc("0x11c")](e)){i=!1;break}if(i)return e}const s=(0,e.uid)(),x=i.id,a=fc("0x52")+n,c=this[fc("0x8b")]({id:s,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[fc("0x121")](a,s,x,e,Jo[fc("0x17a")]());return c}[fc("0x120")](t,n,o=null,i={}){if(o=o||Tc(n),t.isCollapsed)return null;if(fc("0x143")===this._trackFormatChanges){const e=this[fc("0xec")].getSuggestionCallback(fc("0x12e"),o,"accept");return this.forceDefaultExecution((()=>e([t],n,i))),null}const r=this[fc("0xce")][fc("0xe1")].get(fc("0xc5")).me,s=[];if(fc("0xf6")!==this[fc("0xc4")])for(const{suggestion:e,meta:n}of this[fc("0x28")](t,"insertion"))n.isOwn&&!n[fc("0x175")]&&s.push(...e[fc("0x14c")]());const x=function(t,e){const n=[];for(const o of e){const e=t[fc("0x1e")](o);e&&n[fc("0xc")](e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[fc("0x75")];){const o=n[e][fc("0xa")](t);n.splice(e,1,...o),e+=o.length}}return n}(t,s);x[fc("0x75")]&&this[fc("0x146")][fc("0x31")]((()=>{for(const t of x){const e=this[fc("0xec")][fc("0x76")](fc("0x12e"),o,fc("0x58"));this[fc("0x104")]((()=>e([t],n,i)))}}));for(const t of a){let s=null,x=t[fc("0xf4")],a=t.end;for(const{suggestion:e,meta:n}of this[fc("0x28")](t,"formatInline")){if(!n.isOwn)continue;if(e.subType!=o)continue;if(!Ic(e,i))continue;const r=e[fc("0x119")]();if(r[fc("0x11c")](t,!0))return null;x=x[fc("0x6e")](r[fc("0xf4")])?x:r[fc("0xf4")],a=a.isAfter(r[fc("0xb6")])?a:r.end,s?r[fc("0xf4")][fc("0x6e")](s[fc("0x119")]().start)?(s[fc("0x4")](),s=e):e[fc("0x4")]():s=e}const c=this[fc("0x146")][fc("0xed")](x,a);if(s)this[fc("0xd2")](s,c);else{const t=(0,e.uid)(),s=r.id;this[fc("0x8b")]({id:t,type:fc("0xe8")+o,data:n,createdAt:new Date,authorId:s,attributes:i}),this[fc("0x121")]("formatInline:"+o,t,s,c)}}return null}markBlockFormat(t,n,o=[],i=null,r={}){n[fc("0xd")]||(n.formatGroupId=n[fc("0x135")]),n[fc("0xc1")]=t.is(fc("0x117")),i=i||Tc(n);const s=o[fc("0xd3")]((t=>Cc(t,this[fc("0x146")]))),x=t.is(fc("0x117"))?t:Cc(t,this._model);if(fc("0x143")===this[fc("0xc4")]){const t=this._suggestionFactory[fc("0x76")](fc("0x126"),i,"accept");return this.forceDefaultExecution((()=>t([x],n,r))),null}s.push(x);let a=!0;for(const t of s)if(!this[fc("0x154")](t)){a=!1;break}if(a&&fc("0xf6")!==this[fc("0xc4")]){const t=this[fc("0xec")][fc("0x76")]("formatBlock",i,fc("0x58"));return this.forceDefaultExecution((()=>t([x],n,r))),null}let c=null,l=x[fc("0xf4")],u=x[fc("0xb6")];for(const{suggestion:t,meta:e}of this[fc("0x28")](x,fc("0x126"))){if(!e[fc("0x39")])continue;if(e[fc("0x149")]||e[fc("0x77")]||e[fc("0x175")])continue;if(t[fc("0x15f")][fc("0xd")]!=n.formatGroupId)continue;if(!Ic(t,r))continue;const o=t[fc("0x119")]();if(t[fc("0x160")]==i){if(o[fc("0x11c")](x,!0))return null;l=l[fc("0x6e")](o[fc("0xf4")])?l:o[fc("0xf4")],u=u[fc("0x5c")](o[fc("0xb6")])?u:o[fc("0xb6")],c?o[fc("0xf4")].isBefore(c[fc("0x119")]().start)?(c[fc("0x4")](),c=t):t[fc("0x4")]():c=t}else{const e=x[fc("0x1e")](o);this[fc("0xba")](t,e)}}const d=this.editor[fc("0xe1")].get(fc("0xc5")).me,g=(0,e.uid)(),f=d.id;if(c)return this[fc("0xd2")](c,this[fc("0x146")][fc("0xed")](l,u)),c;{const t=this[fc("0x8b")]({id:g,type:fc("0xa3")+i,data:n,createdAt:new Date,authorId:f,attributes:r});return this._addSuggestionMarker("formatBlock:"+i,g,f,this[fc("0x146")][fc("0xed")](l,u)),t}}[fc("0x3")](t,n,o=[],i=null,r={}){n[fc("0xd")]||(n[fc("0xd")]=n[fc("0x135")]);const s=t[0];n[fc("0xc1")]=s.is("range"),i=i||Tc(n);const x=o[fc("0xd3")]((t=>Cc(t,this._model))),a=s.is(fc("0x117"))?t:t[fc("0xd3")]((t=>Cc(t,this[fc("0x146")])));if("never"===this[fc("0xc4")]){const t=this[fc("0xec")].getSuggestionCallback("formatBlock",i,fc("0x58"));return this[fc("0x104")]((()=>t(a,n,r))),null}x[fc("0xc")](...a);let c=!0;for(const t of x)if(!this[fc("0x154")](t)){c=!1;break}if(c&&"always"!==this[fc("0xc4")]){const t=this[fc("0xec")][fc("0x76")](fc("0x126"),i,fc("0x58"));return this.forceDefaultExecution((()=>t(a,n,r))),null}const l=this.editor[fc("0xe1")][fc("0x105")]("Users").me;for(const t of this[fc("0x14d")]()){if(t[fc("0xd1")].id!=l.id)continue;if(fc("0x126")!=t[fc("0x161")]||t.data[fc("0xd")]!=n.formatGroupId)continue;if(!Ic(t,r))continue;const e=t.subType==i;for(let n=0;n<a[fc("0x75")];n++){const o=a[n];for(const i of t[fc("0x171")]()){const r=i[fc("0x4a")]();if(o[fc("0x2")](r)){e?(a[fc("0x129")](n,1),n--):t.removeMarker(i.name);break}}}}if(0==a[fc("0x75")])return null;const u=this[fc("0xec")].getSuggestionCallback(fc("0x126"),i,fc("0x79"));for(const t of this.getSuggestions())if(t[fc("0xd1")].id==l.id&&fc("0x126")==t[fc("0x161")]&&t[fc("0x15f")][fc("0xd")]==n[fc("0xd")]&&t[fc("0x160")]==i&&Ic(t,r)&&(u(t[fc("0x14c")](),a)||u(a,t.getRanges()))){for(const e of a)t[fc("0x22")](e);return t}const d=(0,e.uid)(),g=l.id,f=fc("0xa3")+i,m=this[fc("0x8b")]({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this._addSuggestionMarker(f,d,g,t,Jo.getMultiRangeId());return m}markDeletion(t,n=null,o={}){if(t.isCollapsed)return null;const i=this.editor.plugins[fc("0x105")](fc("0xc5")).me,r=new s.LiveRange(t[fc("0xf4")],t[fc("0xb6")]);for(const{suggestion:t,meta:e}of this._findSuggestions(r,fc("0x103")))if(e[fc("0x39")]&&!e[fc("0x149")])if(t[fc("0xb")]){const e=t[fc("0x14c")]()[fc("0x55")]((t=>"$graveyard"!=t[fc("0x62")].rootName));if(e[fc("0x153")]((t=>r[fc("0x11c")](t,!0)))&&t[fc("0x136")](),e[fc("0x9b")]((t=>t[fc("0x11c")](r,!0)))){const t=this[fc("0xec")].getSuggestionCallback("deletion",n,"accept");return this[fc("0x104")]((()=>t([r],null,o))),null}}else{const e=r[fc("0x1e")](t[fc("0x119")]());null!==e&&t[fc("0x98")]([e],null,o)}if(r[fc("0xf")](),r[fc("0x6f")]||fc("0x69")==r[fc("0x62")].rootName)return null;let x=null,a=r.start,c=r[fc("0xb6")];const l=this[fc("0x28")](r,"deletion");for(const{suggestion:t,meta:e}of l){const n=this._model[fc("0xed")](a,c);if(e[fc("0x39")]&&(this._mergeNestedSuggestions||!e.containsRangeInObject&&!e[fc("0x175")]))if(t[fc("0xb")]){if(!Ic(t,o))continue;let e=!0;for(const o of t.getRanges()){if(o[fc("0x11c")](n,!0))return t;n[fc("0x11c")](o)||(e=!1)}e&&t[fc("0x136")]()}else{const e=t[fc("0x119")]();if(e[fc("0x11c")](n,!0))return t;if(!Ic(t,o)){n.containsRange(e)?t.removeMarkers():e.containsPosition(a)?a=e[fc("0xb6")]:e.containsPosition(c)&&(c=e[fc("0xf4")]);continue}a=a[fc("0x6e")](e[fc("0xf4")])?a:e.start,c=c.isAfter(e.end)?c:e.end,o=Object.assign({},t.attributes),x?e[fc("0xf4")].isBefore(x.getFirstRange()[fc("0xf4")])?(x[fc("0x4")](),x=t):t[fc("0x4")]():x=t}}if(x)return this[fc("0xd2")](x,this[fc("0x146")].createRange(a,c)),x;{const t=(0,e.uid)(),r=this[fc("0x146")][fc("0xed")](a,c),s=i.id,x=n?fc("0x94")+n:fc("0x132"),l=this[fc("0x8b")]({id:t,type:x,createdAt:new Date,authorId:s,attributes:o});return this[fc("0x121")](x,t,s,r),l}}[fc("0xe6")](t,n="multi",o={}){const i=this[fc("0xce")][fc("0xe1")].get(fc("0xc5")).me,r=t[fc("0xd3")]((t=>new s.LiveRange(t[fc("0xf4")],t[fc("0xb6")]))),x=new Set;for(const{suggestion:t,meta:e}of this[fc("0x28")](r,"insertion"))e[fc("0x39")]&&!e.isNextTo&&x.add(t);for(const e of x)if(e[fc("0xb")]){const i=e.getRanges();if((!e[fc("0xcc")]||!e[fc("0xcc")][fc("0x17")])&&i[fc("0x153")]((t=>r[fc("0x9b")]((e=>e[fc("0x11c")](t,!0)))))&&e[fc("0x136")](),r[fc("0x153")]((t=>i[fc("0x9b")]((e=>e[fc("0x11c")](t,!0)))))){const e=this[fc("0xec")][fc("0x76")](fc("0x132"),n,fc("0x58"));return this[fc("0x104")]((()=>e(t,null,o))),null}}else{const t=e[fc("0x119")]();if(r[fc("0x9b")]((e=>e[fc("0x11c")](t,!0)))&&e[fc("0x136")](),r[fc("0x153")]((e=>t[fc("0x11c")](e,!0)))){const t=this[fc("0xec")][fc("0x76")](fc("0x132"),n,fc("0x58"));return this[fc("0x104")]((()=>t(r,null,o))),null}}const a=this._suggestionFactory[fc("0x76")](fc("0x132"),n,fc("0x79"));let c=null;for(const t of this.getSuggestions())if(t.author.id==i.id&&t.isInContent&&fc("0x132")==t[fc("0x161")]&&t[fc("0x160")]==n&&Ic(t,o)&&(a(t[fc("0x14c")](),r)||a(r,t.getRanges())))if(c){if(t[fc("0xa8")]&&t[fc("0xa8")].length)continue;for(const e of t[fc("0x14c")]())c[fc("0x60")](e)||c[fc("0x22")](e);t[fc("0x4")]()}else{c=t;for(const e of r)t[fc("0x60")](e)||t[fc("0x22")](e)}if(c)return c;x[fc("0xb4")]();for(const{suggestion:t,meta:e}of this._findSuggestions(r,fc("0x132")))e.isOwn&&(this[fc("0xfd")]||!e[fc("0x77")]&&!e[fc("0x175")])&&Ic(t,o)&&x[fc("0x113")](t);for(const t of x){const e=t.getRanges();if((!o||!o[fc("0x17")])&&r[fc("0x153")]((t=>e.some((e=>e[fc("0x11c")](t,!0))))))return t;(!t.attributes||!t[fc("0xcc")][fc("0x17")])&&e.every((t=>r.some((e=>e.containsRange(t,!0)))))&&t[fc("0x136")]()}const l=(0,e.uid)(),u=i.id,d=fc("0x94")+n,g=this._setSuggestionData({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of r)t[fc("0xf")](),t[fc("0x6f")]||fc("0x69")==t.root[fc("0x80")]||this[fc("0x121")](d,l,u,t,Jo[fc("0x17a")]());return g}[fc("0x54")](t,n,o,i,r){if(t[fc("0x6f")])return[];if(fc("0x143")===this._trackFormatChanges)return[];const s=this[fc("0xce")].plugins.get("Users").me.id,x=Array[fc("0x68")](this[fc("0x131")][fc("0xab")]())[fc("0x55")]((e=>fc("0x13a")==e[fc("0x161")]&&e[fc("0x15f")].key==n&&e[fc("0x60")](t)));if(fc("0x13d")===this._trackFormatChanges){const e=this._findSuggestions(t,"insertion")[fc("0x55")]((({meta:t})=>t[fc("0x39")]&&!t[fc("0x175")]&&!t[fc("0x149")]))[fc("0xd3")]((({suggestion:t})=>t));x.unshift(...e)}const a=new Map([[t,o]]);for(const t of x){const e=fc("0x13a")==t[fc("0x161")]?t[fc("0x15f")][fc("0x151")]:void 0,r=t[fc("0x119")](),s=Array.from(a[fc("0x13")]()).find((t=>t[fc("0x14a")](r)));if(!s)continue;const x=s[fc("0xa")](r);this[fc("0xee")](n)&&fc("0x103")==t[fc("0x161")]&&0!=x[fc("0x75")]||(a[fc("0x33")](s),x[fc("0x1b")]((t=>{a[fc("0x9")](t,o)})),fc("0x103")!=t[fc("0x161")]&&e!=i&&a.set(s[fc("0x1e")](r),e))}const c=[];for(const[t,o]of a){const x=(0,e.uid)(),a={key:n,oldValue:o,newValue:i};n[fc("0x75")]>37&&console[fc("0x7c")](fc("0x92"),{key:n});const l=("attribute:"+n+"|"+Tc({newValue:i}))[fc("0xbf")](0,60),u=this._setSuggestionData({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:r});c.push(u),this[fc("0x121")](l,x,s,t)}return c}_registerBlockAttribute(t){this[fc("0xc0")].add(t)}[fc("0x1")](t){this[fc("0x15")][fc("0x113")](t)}[fc("0x101")](t,e=[],n=[]){this[fc("0xf5")](t,((t,...e)=>{this[fc("0xb0")]((()=>{t(...e)}))}));for(const t of e)this[fc("0x1")](t);for(const t of n)this._registerBlockAttribute(t)}[fc("0xd2")](t,e){const n=t.getFirstMarker();this._model[fc("0x31")]((t=>{t[fc("0x71")](n,{range:e})}))}[fc("0x4e")](t){const e=t.id,n=this.editor[fc("0xfa")].get(fc("0xdb"));this._commentsRepository.hasCommentThread(e)||this[fc("0xd8")][fc("0x85")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this._commentsRepository[fc("0x156")](e);o.unbind(fc("0xa4")),o[fc("0xa4")]=!1,t[fc("0xa8")]=o}[fc("0x5f")](t,n,o,i){if(t[fc("0x161")]!=n||t[fc("0x160")]!=o||t[fc("0x14e")].id!=i)throw this[fc("0xce")][fc("0x3c")](fc("0xa1")),new e.CKEditorError(fc("0xa1"),this)}[fc("0xba")](t,n){const o=t[fc("0x119")]();if(n[fc("0x2")](o))t[fc("0x4")]();else if(o.containsRange(n)){const i=this[fc("0x146")][fc("0x16b")](n[fc("0xf4")][fc("0x147")],fc("0xb6"));this[fc("0xd2")](t,this[fc("0x146")][fc("0xed")](o.start,i));const r=(0,e.uid)(),s=t[fc("0x14e")].id,x=t[fc("0x161")]+":"+t[fc("0x160")];this[fc("0x8b")]({id:r,type:x,createdAt:new Date,authorId:s,data:t[fc("0x15f")],attributes:t.attributes});const a=this[fc("0x146")][fc("0x16b")](n.end[fc("0x159")],fc("0x173")),c=this._model.createRange(a,o[fc("0xb6")]);this[fc("0x121")](x,r,s,c)}else if(o[fc("0xca")](n[fc("0xf4")])){const e=this[fc("0x146")][fc("0x16b")](n.start[fc("0x147")],fc("0xb6"));this[fc("0xd2")](t,this[fc("0x146")][fc("0xed")](o[fc("0xf4")],e))}else{const e=this[fc("0x146")][fc("0x16b")](n.end.parent,fc("0x173"));this[fc("0xd2")](t,this[fc("0x146")][fc("0xed")](e,o[fc("0xb6")]))}}_rangeIsInLocalUserInsertion(t){for(const{suggestion:e,meta:n}of this[fc("0x28")](t,"insertion")){if(!n.isOwn)continue;const o=e[fc("0x14c")]();for(const e of o)if(!t[fc("0xa")](e).length)return!0}return!1}[fc("0xf3")](t){const n=this[fc("0xce")][fc("0xe1")].get(fc("0xc5")).getUser(t);if(!n)throw new e.CKEditorError(fc("0x48"),this);return n}_getExternalAuthor(t){const e=this.editor[fc("0xe1")].get("Users"),n=(0,r.hashObject)("external:"+t);return e[fc("0x179")](n)||e.addUser({id:n,name:t})}[fc("0xbe")](t,e,n,o,i){const r=this[fc("0xf3")](o),s=this[fc("0xec")][fc("0x20")](t,e,n,r,i,(t=>this._updateSuggestionData(n,{attributes:t})));return this.listenTo(s,fc("0x58"),(()=>{this[fc("0x8f")](n,{state:"accepted"})}),{priority:"high"}),this[fc("0x99")](s,fc("0x136"),(()=>{this[fc("0x8f")](n,{state:fc("0x3f")})}),{priority:fc("0xe0")}),this[fc("0x131")][fc("0x9")](n,s),this[fc("0x133")].set(s,fc("0xff")),s}[fc("0x14")](t){const e=t[fc("0x106")](":");return{group:e[0],type:e[1],subType:e.length>=5?e[2]:null,id:e[fc("0x75")]<5?e[2]:e[3],authorId:e[fc("0x75")]<5?e[3]:e[4],markerCount:6==e[fc("0x75")]?e[5]:null}}[fc("0x12b")](t,n,o){const i=t[fc("0x119")](),r=i.start,s=i[fc("0xb6")];this[fc("0xd2")](t,this[fc("0x146")].createRange(r,n));const x=(0,e.uid)(),a=t.creator.id,c=t.type+(t[fc("0x160")]?":"+t[fc("0x160")]:"");this[fc("0x8b")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[fc("0xcc")],data:t[fc("0x15f")]});const l=Sc(t);("formatBlock"==t[fc("0x161")]||l&&this[fc("0xee")](l))&&(o=this[fc("0x146")].createPositionBefore(o[fc("0x159")])),this[fc("0x121")](c,x,a,this[fc("0x146")].createRange(o,s))}[fc("0x28")](t,e=null){const n=[],o=this.editor[fc("0xe1")][fc("0x105")](fc("0xc5")).me;Array[fc("0x11f")](t)||(t=[t]);for(const i of this[fc("0x14d")]()){if(!i.isInContent)continue;if(e&&i[fc("0x161")]!=e)continue;let r=!1;for(const e of i[fc("0x14c")]()){for(const s of t){const t=s[fc("0xf4")].isEqual(e[fc("0xb6")])||s[fc("0xb6")][fc("0x2")](e[fc("0xf4")]);if(t||s[fc("0x1e")](e)){const x=s.containsRange(e)&&bc(this[fc("0x146")][fc("0x51")],e[fc("0xf4")],s),a=e[fc("0x11c")](s)&&bc(this[fc("0x146")][fc("0x51")],s.start,e);n[fc("0xc")]({suggestion:i,meta:{isOwn:o==i[fc("0xd1")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),r=!0;break}}if(r)break}}return n}[fc("0x121")](t,e,n,o,i){this[fc("0x146")][fc("0x31")]((r=>{let s="suggestion:"+t+":"+e+":"+n;i&&(s=s+":"+i),r.addMarker(s,{range:o,usingOperation:!0,affectsData:!0})}))}[fc("0x142")](t){const e=t.previous,n=t[fc("0x7")];t[fc("0x9e")]=null,t.next=null,null!=e&&(e[fc("0x7")]=n),null!=n&&(n.previous=e),fc("0x130")==this[fc("0x133")][fc("0x105")](t)&&(this[fc("0x133")][fc("0x9")](t,fc("0x8")),this.fire("suggestionUnloaded",t,e,n))}[fc("0x8b")](t){const n=t.id,o=this[fc("0x112")](t);if(this[fc("0x19")]&&this[fc("0x19")].addSuggestion){const i=this[fc("0xce")][fc("0xe1")][fc("0x105")](fc("0x167")),r=o[fc("0x166")],s=o[fc("0x160")]?o.type+":"+o.subType:o[fc("0x161")],x=this[fc("0xce")][fc("0x170")],a=i.add(Qo(x,fc("0x72"))),c={id:n,type:s,hasComments:r,data:t[fc("0x15f")]||null,originalSuggestionId:t[fc("0x13f")]||null,attributes:o[fc("0xcc")]};this._adapter.addSuggestion(c)[fc("0xe5")]((t=>{o[fc("0x9d")]=!0,i[fc("0x74")](a),t&&t.createdAt&&(this._suggestions[fc("0x105")](n)[fc("0x1a")]=t[fc("0x1a")])}))[fc("0xc8")]((t=>{throw(0,e.logWarning)(fc("0x44")),this[fc("0xce")][fc("0xae")][fc("0x108")]({isUndoable:!1},(()=>{o[fc("0x136")]()})),o[fc("0x10c")](),this[fc("0x131")][fc("0x33")](o.id),this._suggestionState[fc("0x33")](o),t}))}return o}_isBlockAttribute(t){return this[fc("0xc0")].has(t)}[fc("0x8f")](t,e){const n=this[fc("0xce")].plugins[fc("0x105")](fc("0x167")),o=this[fc("0x3b")](t);if(this[fc("0x19")]&&this[fc("0x19")][fc("0x8d")])if(o._saved){const o=n[fc("0x113")](Qo(this[fc("0xce")][fc("0x170")],"PENDING_ACTION_SUGGESTION"));this._adapter.updateSuggestion(t,e)[fc("0xe5")]((()=>{n.remove(o)}))}else o.on(fc("0xe9"),(()=>{this._updateSuggestionData(t,e)}))}[fc("0x111")](t){if(!this[fc("0x19")]||!this._adapter[fc("0x3b")])throw new e.CKEditorError(fc("0xda"),this);return this[fc("0x19")].getSuggestion(t)}[fc("0x10e")](t){const{id:e,type:n,subType:o,authorId:i}=this[fc("0x14")](t),r=this[fc("0x131")][fc("0x105")](e)||this._createSuggestion(n,o,e,i,{});switch(this[fc("0x5f")](r,n,o,i),this[fc("0x133")][fc("0x105")](r)){case fc("0xff"):this._getSuggestionData(e)[fc("0xe5")]((t=>{let n=Promise[fc("0x11e")]();t[fc("0x166")]&&(n=this[fc("0xd8")][fc("0xde")]({channelId:this[fc("0xce")].config[fc("0x105")](fc("0xdb")),threadId:e})),n[fc("0xe5")]((()=>{this[fc("0x112")](t)._saved=!0}))})),this._suggestionState[fc("0x9")](r,fc("0x115"));break;case fc("0x8"):this[fc("0x8f")](e,{state:"open"});case fc("0x95"):this._suggestionState.set(r,fc("0x130")),this[fc("0x15d")]("suggestionLoaded",r);break;case fc("0x130"):this[fc("0x15d")](fc("0x81"),r)}return r.addMarkerName(t),r}[fc("0xb3")](t){const e=Array[fc("0x68")](t),n=e.filter((t=>fc("0x13a")==t[fc("0x161")]));this[fc("0xaf")](n);const o=e[fc("0x55")]((t=>!t[fc("0xb")]&&"attribute"!=t.type)),i=this[fc("0x14d")]({skipNotAttached:!0})[fc("0x55")]((t=>!t[fc("0xb")]&&"attribute"!=t[fc("0x161")])),r=i[fc("0x55")]((e=>!t[fc("0x5b")](e))),s=new Map(i.map((t=>[t,this[fc("0xec")].getSuggestionCallback(t[fc("0x161")],t[fc("0x160")],fc("0x10b"))]))),x=new Map(i[fc("0xd3")]((t=>[t,t.getFirstRange()]))),a=new Set,c=new Set;for(let t=0;t<o[fc("0x75")];t++)u(o[t],o,t+1);for(let t=0;t<o[fc("0x75")];t++)u(o[t],r,0);const l=new Set;for(let t=0;t<o[fc("0x75")];t++){const e=o[t];!c[fc("0x5b")](e)&&e.previous&&(l[fc("0x113")](e[fc("0x9e")]),e[fc("0x9e")][fc("0x7")]===e&&(e[fc("0x9e")][fc("0x7")]=null),e[fc("0x9e")]=null),!a[fc("0x5b")](e)&&e.next&&(l[fc("0x113")](e.next),e[fc("0x7")][fc("0x9e")]===e&&(e[fc("0x7")].previous=null),e[fc("0x7")]=null)}function u(t,e,n){for(let o=n;o<e[fc("0x75")];o++){const n=d(t,e[o]);n&&(n[0][fc("0x7")]=n[1],n[1][fc("0x9e")]=n[0],a[fc("0x113")](n[0]),c[fc("0x113")](n[1]))}}function d(t,e){if(t[fc("0xd1")].id!==e[fc("0xd1")].id)return null;const n=s[fc("0x105")](t)(t,e,x[fc("0x105")](t),x.get(e));return n&&s[fc("0x105")](e)(t,e,x[fc("0x105")](t),x[fc("0x105")](e))?n[1].commentThread&&n[1][fc("0xa8")][fc("0x75")]?null:n:null}l.size&&this[fc("0xb3")](l)}_refreshAttributeSuggestionsChain(t){if(0==t[fc("0x75")])return;const e=this[fc("0x14d")]({skipNotAttached:!0})[fc("0x55")]((t=>"attribute"==t[fc("0x161")]&&t[fc("0x35")])),n=[],o=new Map;for(const t of e){const e=(0,r.hashObject)(t[fc("0xcc")]);o[fc("0x5b")](e)||(o[fc("0x9")](e,n.length),n.push([]));const i=o[fc("0x105")](e);n[i].push(t)}!function(){n[fc("0x107")](((t,e)=>{const n=t[0][fc("0x1a")],o=e[0][fc("0x1a")];return n==o?t[0][fc("0xcc")][fc("0x6b")]<e[0].attributes[fc("0x6b")]?-1:1:n<o?-1:1}));for(const t of n)t.sort(((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n[fc("0x75")];t++){if(0==n[t][fc("0x75")])continue;const e=[];for(let o=t+1;o<n[fc("0x75")];o++)0!=n[o][fc("0x75")]&&i(n[t],n[o])&&e.push(o);for(const o of e)n[t]=n[t][fc("0xe7")](n[o]),n[o]=[]}for(const t of n)for(let e=0;e<t[fc("0x75")];e++)t[e][fc("0x7")]=t[e+1]||null;for(const t of n)for(let e=0;e<t[fc("0x75")];e++)t[e][fc("0x9e")]=t[e-1]||null;function i(t,e){if(t[0][fc("0xd1")]!==e[0][fc("0xd1")])return!1;if(n=t[0],o=e[0],(n[fc("0x166")]||o[fc("0x166")])&&(n[fc("0x166")]&&o[fc("0x166")]||!(n[fc("0x166")]&&o[fc("0x1a")]<n[fc("0xa8")][fc("0xc6")][fc("0x105")](0).createdAt||o[fc("0x166")]&&n.createdAt<o[fc("0xa8")][fc("0xc6")][fc("0x105")](0).createdAt)))return!1;var n,o;const i=lc(t[0][fc("0xcc")],fc("0x6b")),r=lc(e[0][fc("0xcc")],fc("0x6b"));return!!Go(i,r)&&(!!t[fc("0x153")]((t=>e[fc("0x9b")]((e=>t[fc("0x119")]()[fc("0x2")](e[fc("0x119")]())))))&&e.every((e=>t[fc("0x9b")]((t=>e[fc("0x119")]()[fc("0x2")](t.getFirstRange()))))))}}[fc("0x11")](t){const e=Array[fc("0x68")](t),n=this[fc("0x14d")]({skipNotAttached:!0}),o=n.filter((e=>!t[fc("0x5b")](e))),i=new Map(e[fc("0xd3")]((t=>[t,this[fc("0xec")][fc("0x76")](t.type,t.subType,fc("0x79"))]))),r=new Map(n.map((t=>[t,t.getRanges()])));for(let t=0;t<e[fc("0x75")];t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e[fc("0x75")];t++)if(s(this,e[t],o,0))return!0;return!1;function s(t,e,n,o){for(let s=o;s<n[fc("0x75")];s++){const o=n[s];if(o[fc("0x161")]!==e[fc("0x161")]||o[fc("0xd1")].id!==e[fc("0xd1")].id||o[fc("0x160")]!==e.subType)continue;if(!kc(e,o))continue;if(fc("0x13a")==e[fc("0x161")]&&e[fc("0x15f")].oldValue!=o.data[fc("0x151")])continue;if("attribute"==e[fc("0x161")]&&t[fc("0xee")](e[fc("0x15f")][fc("0xcb")]))continue;if(fc("0x126")==e[fc("0x161")]){const n=t.editor[fc("0xae")],o=e[fc("0x1c")]();if(o&&(n[fc("0x51")][fc("0x63")](o)||n[fc("0x51")][fc("0x21")](o)))continue}const x=i[fc("0x105")](e),a=r[fc("0x105")](e),c=r[fc("0x105")](o),l=e[fc("0xa8")]&&e[fc("0xa8")][fc("0x75")],u=o[fc("0xa8")]&&o.commentThread[fc("0x75")];if(!l&&x(c,a))return t[fc("0xb2")](o,e),r[fc("0x33")](e),!0;if(!u&&x(a,c))return t._joinSuggestions(e,o),r[fc("0x33")](o),!0}return!1}}[fc("0xb2")](t,e){if(t[fc("0xb")])for(const n of e[fc("0x14c")]())t.addRange(n);else{const n=e[fc("0x119")]()[fc("0xb6")];this[fc("0xd2")](t,this[fc("0x146")].createRange(t[fc("0x119")]()[fc("0xf4")],n))}e[fc("0x4")]()}[fc("0x7f")](t,e){const n=t[fc("0x36")](fc("0x91"))||t[fc("0x36")](fc("0x13a"))?fc("0x158"):t[fc("0x38")]();return Qo(this[fc("0xce")][fc("0x170")],e+"_"+n+fc("0x57"))}[fc("0x8e")](){const t=this[fc("0xce")];(0,r.surroundingMarkersDetector)(this[fc("0x146")],(({left:e,entered:n})=>{const o=[];for(const t of e){const{group:e,type:n}=this[fc("0x14")](t.name);if(fc("0xa2")===e){o[fc("0xc")](this[fc("0x7f")](n,fc("0x6a")));break}}for(const t of n){const{group:e,type:n}=this[fc("0x14")](t.name);if(fc("0xa2")===e){o[fc("0xc")](this[fc("0x7f")](n,fc("0x145")));break}}o[fc("0x75")]&&t.ui[fc("0x59")][fc("0x7d")](fc("0x134"),o.join(" "))}))}_processAttributeChanges(t){if(null!==this[fc("0xac")])return!1;const e=this.editor,n=e[fc("0xae")][fc("0x45")][fc("0xc2")][fc("0x34")]();if(0==n.length)return!1;const o=[],i=n[fc("0x55")]((t=>fc("0x13a")==t.type)),r=n[fc("0x55")]((t=>fc("0x86")==t.type&&fc("0x10f")!=t[fc("0x30")])),s=n[fc("0x55")]((t=>"remove"==t[fc("0x161")]&&fc("0x10f")!=t[fc("0x30")]));for(const t of i)o[fc("0xc")]({key:t[fc("0x13b")],newValue:t[fc("0x47")],oldValue:t[fc("0x164")],range:(x=t.range,null==x.end[fc("0x147")]&&x[fc("0xb6")][fc("0x159")]==x[fc("0xf4")][fc("0x114")]?Cc(x.start[fc("0x114")],e[fc("0xae")]):x)});var x;for(const t of r){const n=s[fc("0x16d")]((e=>e.position.isEqual(t[fc("0x16f")])));n&&o[fc("0xc")]({key:fc("0x27"),newValue:t[fc("0x30")],oldValue:n[fc("0x30")],range:e.model[fc("0xd6")](t.position[fc("0x114")])})}return 0!=o.length&&this._reduceExistingSuggestions(t,o)}[fc("0x46")](t){let e=!1;const n=this[fc("0xce")].model[fc("0x45")].differ[fc("0x15a")]()[fc("0x55")]((t=>t[fc("0x15f")][fc("0x1f")]&&t[fc("0x30")][fc("0x36")]("suggestion:attribute:")));for(const o of n){const{subType:n,id:i}=this[fc("0x14")](o[fc("0x30")]),r=n[fc("0x106")]("|")[0];for(const n of this[fc("0x14d")]({skipNotAttached:!0}))n.id!=i&&fc("0x13a")==n[fc("0x161")]&&n.data&&n[fc("0x15f")][fc("0xcb")]==r&&n[fc("0x119")]().isIntersecting(o.data[fc("0x1f")])&&(this[fc("0x90")](n,o[fc("0x15f")].newRange,t),e=!0)}return e}[fc("0xb0")](t){if(null!==this[fc("0xac")])return void t();const n=this[fc("0xce")];this[fc("0xac")]=n[fc("0xae")].document.version,t();const o=new Map;for(const t of n[fc("0xae")].document[fc("0xf7")].getOperations(this._recordAttributeSuggestionsFromVersion))if(["rename",fc("0x2c"),"removeAttribute","changeAttribute"].includes(t.type)){const e=t[fc("0xcf")],n=o.get(e)||[];n[fc("0xc")](t),o[fc("0x9")](e,n)}this[fc("0xac")]=null;for(const[t,i]of o){const o=(0,e.uid)();n[fc("0xae")][fc("0x108")](t,(t=>{const e=[];for(const t of i){let i,r,s,x;if(fc("0xd7")==t.type){const e=t;i=Cc(e[fc("0x16f")][fc("0x114")],n.model),r=fc("0x27"),s=e[fc("0xbb")],x=e.oldName}else{const e=t,o=this[fc("0xee")](e.key),a=this._inlineAttributeKeys[fc("0x5b")](e[fc("0xcb")]);if(!o&&!a)continue;i=o?Cc(e[fc("0x117")][fc("0xf4")][fc("0x114")],n.model):e[fc("0x117")],r=e[fc("0xcb")],s=fc("0x56")==t.type?void 0:e[fc("0x169")],x=e[fc("0x151")]}this[fc("0x54")](i,r,x,s,{groupId:o}),e[fc("0xc")]({range:i,key:r,newValue:s,oldValue:x})}this[fc("0xdc")](t,e)}))}}[fc("0xdc")](t,e){if(0==e[fc("0x75")])return!1;let n=!1;for(const o of e){const e=this[fc("0x28")](o[fc("0x117")],fc("0x13a")).filter((t=>!t[fc("0x12")][fc("0x149")]))[fc("0xd3")]((t=>t[fc("0xa2")])),i=(0,r.hashObject)({newValue:o[fc("0x169")]});e.filter((t=>{const[e,n]=t[fc("0x160")][fc("0x106")]("|");return e==o[fc("0xcb")]&&n!=i})).forEach((e=>{this[fc("0x90")](e,o[fc("0x117")],t),n=!0}))}return n}[fc("0x90")](t,e,n){const o=t[fc("0x119")]()[fc("0xa")](e);0!==o.length?1!==o[fc("0x75")]?this[fc("0x12b")](t,e[fc("0xf4")],e[fc("0xb6")]):this[fc("0xd2")](t,o[0]):n[fc("0x9a")](t[fc("0x168")]())}}class pc{constructor(t){this[fc("0x41")]=t,this[fc("0x146")]=t[fc("0xae")],this._customCallbacks=new Map,this[fc("0x89")]=new Map,this[fc("0x83")]()}[fc("0x20")](t,e,n,o,i,r){return new Jo(this[fc("0x146")],{type:t,subType:e,id:n,author:o,creator:o,attributes:i,onAttributesChange:r,onAccept:(...n)=>this.getSuggestionCallback(t,e,fc("0x58"))(...n),onDiscard:(...n)=>this[fc("0x76")](t,e,fc("0x136"))(...n)})}[fc("0x12c")](t,e,n,o){const i=t+":"+e+":"+n;this[fc("0x155")][fc("0x9")](i,o)}[fc("0x76")](t,e,n){const o=t+":"+e+":"+n;return this[fc("0x155")][fc("0x105")](o)||this[fc("0x89")][fc("0x105")](t+":"+n)}[fc("0x83")](){const t=()=>!1,e=t=>{t[fc("0x107")](((t,e)=>t.start[fc("0x6e")](e[fc("0xf4")])?1:-1)),this[fc("0x146")][fc("0x31")]((e=>{for(const n of t){let t;t=n[fc("0xb6")][fc("0x157")]&&n.end[fc("0x159")]==n[fc("0xf4")][fc("0x114")]?e[fc("0xb8")](n[fc("0xf4")].nodeAfter,"on"):e.createSelection(n),this._model[fc("0x97")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this._model[fc("0x31")]((n=>{const{commandName:o,commandParams:i=[]}=e,r=t[fc("0xd3")]((t=>(Ec(t)&&(t=this[fc("0x146")][fc("0xed")](t[fc("0xb6")])),t)))[fc("0x55")]((t=>fc("0x69")!==t[fc("0x62")].rootName));if(r[fc("0x75")]<1)return;const x=Array.from(this[fc("0x146")][fc("0x45")].selection[fc("0x14c")]()).map((t=>s.LiveRange[fc("0x15b")](t)));n[fc("0x24")](r);for(const t of this[fc("0x41")].commands.commands())t[fc("0x6d")]();i[fc("0xc")]({forceDefaultExecution:!0}),this[fc("0x41")][fc("0x109")](o,...i);const a=x[fc("0x55")]((t=>fc("0x69")!=t[fc("0x62")].rootName));a.length>0&&n.setSelection(a);for(const t of x)t[fc("0xf")]()}))},o=(t,e)=>1==t.length&&1==e[fc("0x75")]&&t[0][fc("0xb6")][fc("0x2")](e[0][fc("0xf4")]),i=(t,e,n,o)=>Ac(t,e,n,o,this[fc("0x146")])?[t,e]:Ac(e,t,o,n,this[fc("0x146")])?[e,t]:null;this[fc("0x89")].set(fc("0x152"),t),this[fc("0x89")].set("insertion:discard",e),this[fc("0x89")][fc("0x9")](fc("0xa9"),o),this[fc("0x89")][fc("0x9")]("insertion:chain",i),this[fc("0x89")][fc("0x9")]("deletion:accept",e),this[fc("0x89")][fc("0x9")](fc("0xe4"),t),this[fc("0x89")][fc("0x9")](fc("0x96"),o),this[fc("0x89")].set(fc("0x102"),i),this[fc("0x89")].set("formatInline:accept",n),this[fc("0x89")][fc("0x9")](fc("0x12d"),t),this._defaultCallbacks.set("formatInline:join",o),this._defaultCallbacks[fc("0x9")](fc("0x32"),t),this[fc("0x89")][fc("0x9")](fc("0x6"),n),this._defaultCallbacks[fc("0x9")](fc("0xdd"),t),this[fc("0x89")][fc("0x9")](fc("0x110"),o),this[fc("0x89")][fc("0x9")](fc("0xc3"),t),this[fc("0x89")][fc("0x9")](fc("0xb5"),t),this[fc("0x89")].set(fc("0xc9"),((t,e)=>{if(!e)return;const n=this[fc("0x41")][fc("0xe1")][fc("0x105")](hc);this[fc("0x146")][fc("0x31")]((o=>{if(fc("0x27")==e[fc("0xcb")])for(const n of t){const t=n.start.nodeAfter,i=e[fc("0x151")];o.rename(t,i)}else if(n[fc("0xee")](e.key))for(const n of t)void 0!==e[fc("0x151")]?o[fc("0x87")](e.key,e.oldValue,n.start.nodeAfter):o.removeAttribute(e[fc("0xcb")],n[fc("0xf4")][fc("0x114")]);else for(const n of t)e[fc("0x151")]?o[fc("0x87")](e[fc("0xcb")],e.oldValue,n):o[fc("0x56")](e.key,n)}))})),this[fc("0x89")][fc("0x9")]("attribute:join",o)}}function bc(t,e,n){for(const o of e[fc("0x159")][fc("0xfb")]({includeSelf:!0,parentFirst:!0})){if(o.root==o)return!1;if(!n[fc("0x4b")](o))return!1;if(t[fc("0x63")](o)||t[fc("0x21")](o))return!0}return!1}function Ec(t){return t[fc("0xb6")][fc("0x159")]==t[fc("0xf4")][fc("0x114")]&&t[fc("0xb6")].isAtStart}function _c(t,e,n,o){const i=t=>!t[fc("0xd5")].is("$textProxy")&&!o[fc("0x63")](t[fc("0xd5")]),r=t.start.getLastMatchingPosition(i),s=t[fc("0xb6")][fc("0x13e")](i,{direction:"backward"});return!(t[fc("0xf4")].isEqual(r)&&t[fc("0xb6")][fc("0x2")](s)||(r.isBefore(s)?n[fc("0x71")](e,{range:n[fc("0xed")](r,s)}):n[fc("0x9a")](e),0))}function Tc(t){return(0,r.hashObject)(t)}function yc(t){const e=t.start[fc("0x114")];return e&&e.is(fc("0xd4"))}function Cc(t,e){const n=e[fc("0x51")][fc("0x63")](t)||e.schema.isSelectable(t);return e[fc("0xed")](e[fc("0x16b")](t,fc("0xb1")),n?e[fc("0x172")](t):e[fc("0x16b")](t,fc("0xb6")))}function Ac(t,e,n,o,i){if(!kc(t,e))return!1;if(n[fc("0xb6")][fc("0x2")](o[fc("0xf4")]))return!0;if(t[fc("0x161")]!=e.type)return!1;if(!n[fc("0xb6")].isTouching(o[fc("0xf4")]))return!1;const r=i[fc("0xed")](n.end,o.start)[fc("0x65")]();for(const t of r)if([fc("0xea"),"elementEnd"].includes(t[fc("0x161")])&&i[fc("0x51")].isLimit(t[fc("0xd5")]))return!1;return!0}function kc(t,e){return!(!t[fc("0x35")]||!e[fc("0x35")])&&Go(t[fc("0xcc")],e.attributes)}function Ic(t,e){const n=Rc(t[fc("0xcc")]),o=Rc(e);if(!t._isDataLoaded)return!1;for(const t of Object.keys(o))if(!Go(n[t],o[t]))return!1;return!0}function Rc(t){const e=Object[fc("0xe")]({},t);return delete e[fc("0x17")],delete e.tablePasteChainId,e}function Sc(t){return fc("0x13a")==t[fc("0x161")]?t[fc("0x160")][fc("0x106")]("|")[0]:null}const vc=["execute","_pendingAction","_acceptCommand","commentThreadController","canDiscard","remove","listenTo","PendingActions","unbind","isEnabled","commands","_setPendingAction","change:isDirty","get","canAccept","_discardCommand","getRanges","_editor","isDirty","model","destroy","_removePendingAction","discardSuggestion","view","acceptSuggestion","bind","add"];var Nc,Lc;Nc=vc,Lc=444,function(t){for(;--t;)Nc.push(Nc.shift())}(++Lc);const Mc=function(t,e){return vc[t-=0]};class wc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[Mc("0x7")]=e,this.view=n,this[Mc("0x12")]=o,this[Mc("0x5")]=t,this[Mc("0x11")]=t[Mc("0x19")][Mc("0x1")](Mc("0xc")),this[Mc("0x3")]=t[Mc("0x19")][Mc("0x1")]("discardSuggestion"),this[Mc("0xb")][Mc("0xd")]("isEnabled").to(this[Mc("0x11")],this[Mc("0x3")],((t,e)=>t||e)),this.view[Mc("0xd")](Mc("0x2")).to(this[Mc("0x11")],Mc("0x18"),(t=>t&&this[Mc("0x5")][Mc("0x7")].canEditAt(e[Mc("0x4")]()))),this[Mc("0xb")][Mc("0xd")](Mc("0x13")).to(this[Mc("0x3")],"isEnabled",(t=>t&&this[Mc("0x5")][Mc("0x7")].canEditAt(e.getRanges()))),this[Mc("0x10")]=null,n.isDirty&&this[Mc("0x1a")](),this.listenTo(n,Mc("0xc"),(()=>this.acceptSuggestion())),this[Mc("0x15")](n,Mc("0xa"),(()=>this.discardSuggestion())),this[Mc("0x15")](n,Mc("0x0"),(()=>{n[Mc("0x6")]?this._setPendingAction():this._removePendingAction()}))}[Mc("0xc")](){this[Mc("0x11")][Mc("0xf")](this[Mc("0x7")].id)}discardSuggestion(){this[Mc("0x3")][Mc("0xf")](this[Mc("0x7")].id)}[Mc("0x8")](){this[Mc("0xb")][Mc("0x17")](Mc("0x18")),this[Mc("0xb")][Mc("0x17")](Mc("0x2")),this[Mc("0xb")][Mc("0x17")](Mc("0x13")),this.stopListening(),this[Mc("0x12")][Mc("0x8")](),this[Mc("0x10")]&&this[Mc("0x9")]()}[Mc("0x1a")](){const t=Qo(this[Mc("0x5")].locale,"PENDING_ACTION_SUGGESTION");this[Mc("0x10")]=this[Mc("0x5")].plugins[Mc("0x1")](Mc("0x16"))[Mc("0xe")](t)}_removePendingAction(){null!==this[Mc("0x10")]&&this[Mc("0x5")].plugins[Mc("0x1")](Mc("0x16"))[Mc("0x14")](this._pendingAction),this[Mc("0x10")]=null}}const Oc=["isActive","disabledSubmit","length","isReadOnly","_localUser","isDirty","disableComments","showInput","bind","_createCommentThreadInputView","set","_model","assign","_config","descriptionParts","authoredAt","value","element","fire","locale","editor","canAccept","CommentView","commentThreadInputView","delegate","commentInputView","_createCommentViews","commentThread","canDiscard","focus","removeComment","hasDirtyComment","destroy","cancel","commentsListView","updateComment","editorConfig"];var Fc,Dc;Fc=Oc,Dc=355,function(t){for(;--t;)Fc.push(Fc.shift())}(++Dc);const Bc=function(t,e){return Oc[t-=0]};class Pc extends i.View{constructor(t,e,n,o){super(t),this[Bc("0xc")]=null,this[Bc("0x1")]=null,this.set(Bc("0xf"),!1),this.set(Bc("0x1e"),e.authoredAt),this.bind("authoredAt").to(e),this[Bc("0x19")](Bc("0x1d"),[]),this[Bc("0x19")](Bc("0x14"),!1),this[Bc("0x19")]("isEnabled",!1),this[Bc("0x19")](Bc("0x24"),!1),this[Bc("0x19")](Bc("0x6"),!1),this[Bc("0x1a")]=e,this[Bc("0x13")]=n,this[Bc("0x1c")]=o,o[Bc("0x15")]?this[Bc("0x19")](Bc("0x11"),1):this[Bc("0x4")]()}focus(){this[Bc("0x20")][Bc("0x7")]()}[Bc("0xa")](){this.commentsListView&&this[Bc("0xc")][Bc("0xa")](),this[Bc("0x1")]&&this[Bc("0x1")][Bc("0xa")](),super[Bc("0xa")]()}[Bc("0x4")](){const{CommentsListView:t}=this[Bc("0x1c")];this[Bc("0xc")]=new t(this[Bc("0x22")],this[Bc("0x1a")][Bc("0x5")],Object[Bc("0x1b")]({CommentView:this[Bc("0x1c")][Bc("0x0")]},this[Bc("0x1c")])),this[Bc("0xc")][Bc("0x2")](Bc("0x8")).to(this),this[Bc("0xc")][Bc("0x2")](Bc("0xd")).to(this),this[Bc("0xc")][Bc("0x17")]("isActive").to(this),this[Bc("0x19")](Bc("0x11"),this.commentsListView[Bc("0x11")]+1),this[Bc("0x17")](Bc("0x11")).to(this[Bc("0xc")],Bc("0x11"),(t=>t+1)),this[Bc("0x1")]=this._createCommentThreadInputView(),this.on(Bc("0x8"),(()=>this.focus())),this[Bc("0x17")](Bc("0x14")).to(this[Bc("0xc")],Bc("0x9"),this[Bc("0x1")][Bc("0x3")],Bc("0x1f"),((t,e)=>t||!!e))}[Bc("0x18")](){const{CommentThreadInputView:t}=this[Bc("0x1c")],e=new t(this[Bc("0x22")],this._localUser,this._config[Bc("0xe")]),n=e[Bc("0x3")];return e[Bc("0x17")](Bc("0x16")).to(this,Bc("0xf"),this[Bc("0x1a")].commentThread,Bc("0x12"),n,Bc("0x1f"),((t,e,n)=>!!n||t&&!e)),n.on("submit",((t,e)=>{this[Bc("0x21")]("addComment",e),n[Bc("0x23")].setData("")})),n.on(Bc("0xb"),(()=>this.focus())),n[Bc("0x17")](Bc("0x10")).to(this[Bc("0x1a")][Bc("0x5")],Bc("0x12")),e}}const Uc=["execute","ck-suggestion__info-name",'" title="',"source","extendTemplate","getUserViewNotificationText","editorReady","ck-suggestion-","ck-annotation","innerText","userView","ck-annotation__info-time","ck-suggestion__user","span","_descriptionElement","getExternalSuggestionNote","ck-suggestion-wrapper--active","importWord","cancel","EXTERNAL_IMPORT_WORD_AVATAR","acceptSuggestion","time","isEnabled","render",".ck-annotation__content-wrapper","ck-annotation__actions","author","ck-annotation__content-wrapper","ck-annotation__info-name","split","discardButton","commentThreadInputView","ck-annotation__info","acceptButton","delegate","ck-suggestion__info","editorDestroyed","value","@external","check","isActive","ck-comment__info-time","children","descriptionParts","discardSuggestion",'"></span>',"set","ck-comment__external","type","div","isExternal","disableComments","EXTERNAL_SUGGESTION","<p>","commentsListView","name","bind","createElement","ck-annotation__main","innerHTML","querySelector","ck-annotation__user","description","canAccept","_createButton","canDiscard","title","content","_config","ck-suggestion__actions","_model","formatDateTime",'<span class="ck-suggestion-type">',"join","EXTERNAL_AVATAR","locale","bindTemplate","authoredAt","change:description","color","push","creator"];var jc,Gc;jc=Uc,Gc=499,function(t){for(;--t;)jc.push(jc.shift())}(++Gc);const Vc=function(t,e){return Uc[t-=0]};class Hc extends Pc{constructor(e,n,o,i){super(e,n,o,i),this.set(Vc("0x29"),""),this[Vc("0x31")](Vc("0x29")).to(this,Vc("0x24"),(t=>t&&t[0]?t[0][Vc("0x29")]:"")),this[Vc("0x31")](Vc("0x37")).to(this,Vc("0x24"),this,Vc("0x21"),((t,e)=>{let n="";for(const e of t)n+=Vc("0x2e")+zc(e[Vc("0x3c")],e[Vc("0x48")])+"</p>";return e?n:(0,r.trimHtml)(n,{limit:140})})),this._descriptionElement=null,this.acceptButton=this._createButton(Qo(e,"Accept suggestion"),t.icons[Vc("0x20")],"ck-suggestion--accept",Vc("0xd"),"sw"),this.acceptButton[Vc("0x31")](Vc("0xf")).to(this,Vc("0x38")),this[Vc("0x17")]=this[Vc("0x39")](Qo(e,"Discard suggestion"),t.icons[Vc("0xb")],"ck-suggestion--discard",Vc("0x25"),"sw"),this[Vc("0x17")][Vc("0x31")](Vc("0xf")).to(this,Vc("0x3a")),this.userView=new r.UserView(e,this[Vc("0x3f")][Vc("0x13")],this[Vc("0x50")]()),this[Vc("0x3")][Vc("0x4f")]({attributes:{class:[Vc("0x5"),Vc("0x36")]}}),this.setTemplate(this.getTemplate())}getTemplate(){const t=this[Vc("0x45")],e=[{tag:Vc("0x2a"),attributes:{class:[Vc("0x1c"),Vc("0x19")]},children:[{tag:"span",children:[{text:this[Vc("0x3")][Vc("0x30")]}],attributes:{class:[Vc("0x4c"),Vc("0x15")]}},{tag:Vc("0xe"),attributes:{datetime:t.to(Vc("0x46")),class:[Vc("0x22"),Vc("0x4")]},children:[{text:t.to(Vc("0x46"),(t=>this._config[Vc("0x40")](t)))}]}]},{tag:Vc("0x2a"),attributes:{class:[Vc("0x3e"),Vc("0x12")]},children:[this[Vc("0x1a")],this.discardButton]},{tag:"div",attributes:{class:[Vc("0x14")]}}];this[Vc("0x3f")].isExternal&&e[Vc("0x49")]({tag:Vc("0x2a"),attributes:{class:[Vc("0x28")]},children:[{text:this[Vc("0x8")]()}]});const n={tag:Vc("0x2a"),attributes:{class:["ck-suggestion-wrapper",t.if(Vc("0x21"),Vc("0x9")),t.to(Vc("0x29"),(t=>Vc("0x0")+t)),this[Vc("0x3d")][Vc("0x2c")]&&"ck-suggestion--disabled-comments"],"data-suggestion-id":this[Vc("0x3f")].id,"data-thread-id":this._model.commentThread.id,"data-author-id":this[Vc("0x3f")][Vc("0x13")].id,tabindex:-1},children:[{tag:Vc("0x2a"),attributes:{class:["ck-suggestion",Vc("0x1")]},children:[this[Vc("0x3")],{tag:Vc("0x2a"),attributes:{class:["ck-suggestion__main",Vc("0x33")]},children:e}]}]};return this.commentsListView&&this.commentThreadInputView&&(n[Vc("0x23")][Vc("0x49")](this[Vc("0x2f")],this[Vc("0x18")]),this.commentsListView[Vc("0x1b")](Vc("0x51")).to(this),this[Vc("0x2f")].delegate(Vc("0x1d")).to(this),this[Vc("0x18")].delegate(Vc("0x51")).to(this),this.commentThreadInputView[Vc("0x1b")](Vc("0x1d")).to(this)),n}[Vc("0x10")](){super[Vc("0x10")](),this[Vc("0x7")]=this.element[Vc("0x35")](Vc("0x11")),this._descriptionElement[Vc("0x34")]=this.description,this.on(Vc("0x47"),((t,e,n)=>{this[Vc("0x7")][Vc("0x34")]=n}))}_createButton(t,e,n,o,r){const s=new i.ButtonView(this[Vc("0x44")]);return s[Vc("0x27")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),s[Vc("0x4f")]({attributes:{class:n}}),s.on(Vc("0x4b"),(()=>{this.fire(o,this[Vc("0x3f")].id)})),s}[Vc("0x8")](){return"importWord"===this[Vc("0x3f")].attributes["@external"][Vc("0x4e")]?Qo(this[Vc("0x44")],"EXTERNAL_IMPORT_WORD_SUGGESTION"):Qo(this[Vc("0x44")],Vc("0x2d"))}getUserViewNotificationText(){return this[Vc("0x3f")][Vc("0x2b")]?Vc("0xa")===this[Vc("0x3f")].attributes[Vc("0x1f")][Vc("0x4e")]?Qo(this[Vc("0x44")],Vc("0xc"),this[Vc("0x3f")][Vc("0x4a")].name):Qo(this.locale,Vc("0x43"),this._model[Vc("0x4a")].name):null}}function zc(t,e){let n="";return n+=t[Vc("0x16")]("*").map(((t,e)=>e%2!=0?Vc("0x41")+Wc(t)+"</span>":Wc(t)))[Vc("0x42")](""),e&&(n+='<span class="ck-suggestion-color" style="background-color: '+e[Vc("0x1e")]+Vc("0x4d")+e[Vc("0x3b")]+Vc("0x26")),n}function Wc(t){const e=document[Vc("0x32")](Vc("0x6"));return e[Vc("0x2")]=t,e[Vc("0x34")]}const Kc=["locale","_viewToController","get","descriptionParts","keys","getRanges","mainView","trackChanges.disableComments","isMultiRange","activeMarkers","getMarkerNames","init","editing","some","_disableComments","getAllAdjacentSuggestions","previous","suggestionUnloaded","discardAllSuggestions","discardButton","_createUIButton","discardSelectedSuggestions","Annotations","getJoined","from","length","_destroyController","getByInnerView","acceptSelectedSuggestions","comments.editorConfig","editor","comments.maxCommentsWhenCollapsed","pluginName","isInContent","plugins","TrackChangesEditing","lowest","size","_unbindEditors","Accept all selected suggestions","view","registerAnnotation","getMarkers","CommentsUI","source","bind","define","_updateController","Discard all suggestions","CommentsRepository","filter","type","commandName","separator","Discard all selected suggestions","componentFactory","_initializeController","listenTo","comments.maxThreadTotalWeight","unbind","config","addComment","_suggestionToController","comments","set","add","getDescriptions","refreshSelectedViews","clear","createCommentThreadController","model","change:previous","execute","isEnabled","stopListening","innerView","suggestionLoaded","push","value","_handleSuggestionControllerDelayed","destroy","head","acceptAllSuggestions","suggestion-","isDirty","has","commands","toMany","delete","CommentView","focus","getSuggestion","createAnnotation","_handleControllerBuffer","buttonView","arrowView","_bindAnnotationToEditors","reduce","acceptButton","_refreshActiveMarkers","values","Accept all suggestions","button","_annotationViews","trackChanges","commentThread","suggestionChanged","trackChanges.SuggestionThreadView","Track changes","EditorAnnotations","_descriptionFactory","createAnnotationView"];var qc,Xc;qc=Kc,Xc=198,function(t){for(;--t;)qc.push(qc.shift())}(++Xc);const $c=function(t,e){return Kc[t-=0]};class Zc extends t.Plugin{static get requires(){return[hc,r.Users,$c("0x4b"),$c("0x30"),$c("0x17")]}static get[$c("0x3a")](){return"TrackChangesUI"}constructor(t){super(t),this._suggestionToController=new Map,this[$c("0x1b")]=new Map,this._annotationViews=new Map,this._handleControllerBuffer=new Map;const e=this.editor[$c("0x56")];e.define($c("0x15"),Hc),e[$c("0x48")]($c("0x21"),!1),this[$c("0x28")]=e[$c("0x1c")]($c("0x21"))}[$c("0x69")](t,e){0===this[$c("0x7")][$c("0x3f")]&&setTimeout((()=>{for(const[t,e]of this[$c("0x7")]){const n=this._suggestionToController[$c("0x6f")](t);n||e?n&&e&&this._destroyController(t):this[$c("0x52")](t)}this[$c("0x38")].plugins.get($c("0x17"))[$c("0x5d")](),this[$c("0xd")](),this._handleControllerBuffer[$c("0x5e")]()}),10),this[$c("0x7")].set(t,e)}[$c("0x25")](){const t=this[$c("0x38")],e=t.plugins.get($c("0x3d")),n=t[$c("0x3c")].get("Annotations"),o=t.plugins.get($c("0x17")),i=t.plugins.get($c("0x4b"));t.ui[$c("0x51")][$c("0x5b")]("trackChanges",(t=>this[$c("0x2e")](t))),o.addSourceCollector((()=>{const t=[];for(const[e,n]of Array[$c("0x32")](this._suggestionToController)){const o=e[$c("0x29")](),i=[];for(const t of o){if(!t[$c("0x3b")])continue;if(t[$c("0x22")]){i[$c("0x67")](...t[$c("0x1f")]());continue}const e=t.getFirstRange();if(i[$c("0x33")]>0){const t=i[0][$c("0x31")](e);if(t){i[0]=t;continue}}i[$c("0x67")](e)}t[$c("0x67")]([n[$c("0x42")],i])}return t})),this[$c("0x53")](e,$c("0x66"),((t,e)=>{this[$c("0x53")](e,$c("0x61"),((t,n,o,i)=>{e[$c("0x3b")]&&(null==o?(this[$c("0x49")](i[$c("0x6b")]),this[$c("0x69")](e,!1)):(this._updateController(o[$c("0x6b")]),null==i&&this[$c("0x69")](e,!0)))})),null!==e[$c("0x2a")]?this[$c("0x49")](e[$c("0x6b")]):this[$c("0x69")](e,!1)})),this.listenTo(e,$c("0x2b"),((t,e,n)=>{this[$c("0x64")](e,$c("0x61")),this[$c("0x7")][$c("0x2")](e),this._suggestionToController[$c("0x6f")](e)&&this[$c("0x34")](e),n&&this[$c("0x49")](n[$c("0x6b")])})),this.listenTo(e,$c("0x14"),((t,e)=>{this[$c("0x49")](e)})),this[$c("0x53")](n,"change:activeAnnotations",(()=>{this[$c("0xd")]()})),this[$c("0x53")](i,$c("0x57"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e.hasSuggestion(n))return;const i=e[$c("0x5")](n);this[$c("0x58")][$c("0x1c")](i)[$c("0x42")][$c("0x4")]()}),{priority:$c("0x3e")})}_refreshActiveMarkers(){const t=this[$c("0x38")][$c("0x3c")][$c("0x1c")]($c("0x30")),e=this.editor.plugins[$c("0x1c")]($c("0x3d")),n=Array.from(t.activeAnnotations,(t=>t[$c("0x65")]))[$c("0x4c")]((t=>this[$c("0x1b")][$c("0x6f")](t))),o=[];for(const t of n){const e=this[$c("0x1b")].get(t)[$c("0x60")][$c("0x29")]();o[$c("0x67")](...e[$c("0xb")](((t,e)=>[...t,...e[$c("0x24")]()]),[]))}e[$c("0x23")]=o}[$c("0x2e")](t){const n=(0,i.createDropdown)(t,i.SplitButtonView),o=this.editor[$c("0x0")][$c("0x1c")]("trackChanges"),r=Qo(t,$c("0x16"));n[$c("0x8")][$c("0x5a")]({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-2023, 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[$c("0x8")][$c("0x47")]("isOn").to(o,$c("0x68")),n[$c("0x8")].on($c("0x62"),(()=>{o.execute(),this[$c("0x38")][$c("0x26")][$c("0x42")][$c("0x4")]()}));const s=new e.Collection,x=[{type:"switchbutton",model:{withText:!0,label:r,commandName:$c("0x12")}},{type:$c("0x4f")},{type:$c("0x10"),model:{withText:!0,label:Qo(t,$c("0xf")),commandName:$c("0x6c")}},{type:$c("0x10"),model:{withText:!0,label:Qo(t,$c("0x41")),commandName:$c("0x36")}},{type:$c("0x10"),model:{withText:!0,label:Qo(t,$c("0x4a")),commandName:$c("0x2c")}},{type:$c("0x10"),model:{withText:!0,label:Qo(t,$c("0x50")),commandName:$c("0x2f")}}];for(const t of x){let e={type:$c("0x4f")};if(t[$c("0x60")]){const n=new i.Model(t.model),o=this.editor[$c("0x0")][$c("0x1c")](n.commandName);n.bind("isOn",$c("0x63")).to(o,$c("0x68"),$c("0x63")),e={type:t[$c("0x4d")],model:n}}s[$c("0x5b")](e)}(0,i.addListToDropdown)(n,s);const a=x[$c("0x4c")]((t=>null!=t[$c("0x60")])).map((t=>this[$c("0x38")][$c("0x0")][$c("0x1c")](t[$c("0x60")][$c("0x4e")]))),c=n[$c("0x8")];return c.actionView[$c("0x55")]($c("0x63")),c[$c("0x9")][$c("0x55")]($c("0x63")),c.actionView.bind($c("0x63")).to(o,$c("0x63")),c[$c("0x9")][$c("0x47")]($c("0x63"))[$c("0x1")](a,$c("0x63"),((...t)=>t[$c("0x27")]((t=>t)))),n.on("execute",(t=>{this[$c("0x38")][$c("0x62")](t[$c("0x46")][$c("0x4e")]),this[$c("0x38")][$c("0x26")][$c("0x42")].focus()})),n}_initializeController(t){const e=this[$c("0x38")],n=e[$c("0x56")],o=e.plugins[$c("0x1c")]("Annotations"),i=e[$c("0x3c")][$c("0x1c")]("CommentsRepository"),s=e[$c("0x3c")][$c("0x1c")]($c("0x17")),x=e.plugins.get(r.Users).me,a=n[$c("0x1c")]($c("0x12")).SuggestionThreadView,{CommentsListView:c,CommentThreadInputView:l}=e[$c("0x3c")][$c("0x1c")]($c("0x45"));let u,d;this[$c("0x11")].has(t.id)?(d=this[$c("0x11")][$c("0x1c")](t.id),u=d[$c("0x20")]):(u=new a(e.locale,t,x,{disableComments:this[$c("0x28")],editorConfig:n[$c("0x1c")]($c("0x37")),maxCommentsWhenCollapsed:n[$c("0x1c")]($c("0x39")),maxThreadTotalWeight:n[$c("0x1c")]($c("0x54")),maxCommentCharsWhenCollapsed:n[$c("0x1c")]("comments.maxCommentCharsWhenCollapsed"),formatDateTime:(0,r.getDateTimeFormatter)(n[$c("0x1c")]($c("0x1a"))),CommentView:n.get($c("0x59"))[$c("0x3")],CommentsListView:c,CommentThreadInputView:l}),u[$c("0xc")].on($c("0x62"),(()=>{e.editing.view.focus()})),u[$c("0x2d")].on("execute",(()=>{e[$c("0x26")][$c("0x42")].focus()})),d=o[$c("0x19")](this[$c("0x38")].locale,u),d[$c("0x47")]($c("0x6e")).to(u,$c("0x6e")),d[$c("0x47")]($c("0x33")).to(u),d[$c("0x47")]($c("0x4d")).to(u,$c("0x4d"),(t=>$c("0x6d")+t)),this[$c("0x11")].set(t.id,d));const g=i[$c("0x5f")](t[$c("0x13")],u),f=new wc(e,t,u,g),m=t[$c("0x29")]()[$c("0x4c")]((t=>t[$c("0x3b")]));u[$c("0x1d")]=e[$c("0x3c")].get($c("0x3d"))[$c("0x18")][$c("0x5c")](m),this[$c("0x58")].set(t,f),this[$c("0x1b")][$c("0x5a")](u,f);const h=o[$c("0x6")]({view:d,target:()=>{const n=[],o=t[$c("0x29")]().filter((t=>t[$c("0x3b")]));for(const t of o)n.push(...t[$c("0x44")]());return(0,r.getAllMarkersDomElementsSorted)(e.editing,n)},type:()=>$c("0x6d")+f.view[$c("0x4d")]});i[$c("0xa")](u,h),o[$c("0x5b")](h),s[$c("0x43")](h)}[$c("0x34")](t){const e=this[$c("0x38")][$c("0x3c")].get($c("0x4b")),n=this[$c("0x38")][$c("0x3c")][$c("0x1c")]($c("0x30")),o=this[$c("0x58")][$c("0x1c")](t),i=o.view,r=n[$c("0x35")](i);e[$c("0x40")](i),r&&n.remove(r),this._suggestionToController[$c("0x2")](t),this[$c("0x1b")][$c("0x2")](i),o[$c("0x6a")]()}[$c("0x49")](t){if(!t[$c("0x3b")]||!this[$c("0x58")][$c("0x6f")](t))return;const e=this[$c("0x38")][$c("0x3c")][$c("0x1c")]($c("0x3d")),n=this[$c("0x58")][$c("0x1c")](t),o=t.getAllAdjacentSuggestions();n.view.descriptionParts=e[$c("0x18")].getDescriptions(o)}destroy(){for(const t of this._suggestionToController[$c("0x1e")]())this[$c("0x34")](t);for(const t of this._annotationViews[$c("0xe")]())t[$c("0x20")].destroy();super[$c("0x6a")]()}}var Yc,Jc,Qc=["get","getSuggestions","plugins","addSuggestionData","adapter","TrackChanges","requires","editor","pluginName","getSuggestion"];Yc=Qc,Jc=161,function(t){for(;--t;)Yc.push(Yc.shift())}(++Jc);var tl=function(t,e){return Qc[t-=0]};class el extends t.Plugin{static get[tl("0x5")](){return[hc,Zc,"Comments"]}static get[tl("0x7")](){return tl("0x4")}set[tl("0x3")](t){this[tl("0x6")][tl("0x1")][tl("0x9")](hc)[tl("0x3")]=t}get[tl("0x3")](){return this[tl("0x6")].plugins[tl("0x9")](hc).adapter}addSuggestion(t){return this[tl("0x6")][tl("0x1")][tl("0x9")](hc)[tl("0x2")](t)}[tl("0x0")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this.editor[tl("0x1")][tl("0x9")](hc)[tl("0x0")]({skipNotAttached:t,toJSON:e})}getSuggestion(t){return this[tl("0x6")].plugins[tl("0x9")](hc)[tl("0x8")](t)}}const nl=["document","getRootNames","appendChild","editor","TrackChangesEditing","getRootsAttributes","getFullData","trackChangesData","plugins","getDataWithDiscardedSuggestions","div","Pagination","getDataWithAcceptedSuggestions","set","users","createDocumentFragment","data","addUser","init","TrackChangesDataGetter","acceptAllSuggestions","_adapter","reduce","trackChangesData.editorCreator","destroy","getUser","pluginName","getSuggestions","end","editorCreator","get","map","name","requires","TrackChangesData","config","push","model"];var ol,il;ol=nl,il=413,function(t){for(;--t;)ol.push(ol.shift())}(++il);const rl=function(t,e){return nl[t-=0]},sl=[rl("0x10")];class xl extends t.Plugin{static get[rl("0x0")](){return[hc]}static get[rl("0x1f")](){return rl("0x1")}[rl("0x17")](){const t=this[rl("0x8")];if(t[rl("0x2")].define(rl("0x1c"),(e=>{const n=t[rl("0x4")][rl("0x5")][rl("0x6")]()[rl("0x1b")](((t,e)=>(t[e]="",t)),{});return t.constructor.create(n,e)})),"function"!=typeof t[rl("0x2")][rl("0x23")](rl("0xc"))[rl("0x22")])throw new e.CKEditorError("track-changes-data-invalid-editor-creator")}[rl("0x11")](t){return ll(this.editor,!0,t)}[rl("0xe")](t){return ll(this[rl("0x8")],!1,t)}}class al extends t.Plugin{static get pluginName(){return rl("0x18")}constructor(t){super(t),this.result=rl("0x21")}[rl("0x17")](){this[rl("0x8")].plugins.get("CommentsRepository")[rl("0x1a")]={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[rl("0x8")][rl("0xd")][rl("0x23")](rl("0x9"))[rl("0x1a")]=null}}function cl(t){return void 0!==t[rl("0xa")]}async function ll(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,sl);o[rl("0xd")][rl("0x3")](hc,al),o.rootsAttributes=cl(t)?t.getRootsAttributes():void 0;const i=document[rl("0x14")](),s=t.config[rl("0x23")]("trackChangesData")[rl("0x22")],x=await s(o,(()=>function(t){const e=document.createElement(rl("0xf"));return t[rl("0x7")](e),e}(i)));!function(t,e){const n=t[rl("0x4")].document[rl("0x6")]()[rl("0x1b")](((e,n)=>(e[n]=t[rl("0x15")][rl("0x23")]({rootName:n}),e)),{}),o=t[rl("0xd")][rl("0x23")]("Users")[rl("0x13")][rl("0x24")]((t=>({id:t.id,name:t[rl("0x25")]}))),i=t[rl("0xd")][rl("0x23")](rl("0x9"))[rl("0x20")]({skipNotAttached:!0,toJSON:!0}),r=e.plugins[rl("0x23")]("Users"),s=e.plugins[rl("0x23")](rl("0x9"));for(const t of o)r[rl("0x1e")](t.id)||r[rl("0x16")](t);r.me||r.useAnonymousUser();for(const t of i)s.addSuggestionData(t);e[rl("0x15")][rl("0x12")](n)}(t,x),x.execute(e?rl("0x19"):"discardAllSuggestions");const a=cl(x)?x[rl("0xb")](n):x.data.get(n);return await x[rl("0x1d")](),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(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};(()=>{"use strict";n.r(r),n.d(r,{BaseSuggestionThreadView:()=>Pc,TrackChanges:()=>el,TrackChangesData:()=>xl,TrackChangesEditing:()=>hc});var t=n(704),e=n(209),i=n(273),o=n(417),s=n(492),x=n(995);const a=["commands","_isEnabledBasedOnSelection","TrackChangesCommand","affectsData","value","refresh","_enableCommands","has","clearForceDisabled","_enabledCommands","execute","isEnabled"];var c,l;c=a,l=398,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("0x2")]=!1,this[u("0x3")](),this[u("0xb")]=!1}[u("0x3")](){this[u("0x9")]=!0}[u("0x8")](){this[u("0x2")]=!this[u("0x2")],this[u("0x2")]?this._disableUnsupportedCommands():this[u("0x4")]()}_disableUnsupportedCommands(){for(const t of this.editor[u("0xa")][u("0xa")]())t[u("0x1")]&&!this[u("0x7")].has(t)&&t.forceDisabled(u("0x0"))}[u("0x4")](){for(const t of this.editor[u("0xa")][u("0xa")]())t[u("0x1")]&&!this[u("0x7")][u("0x5")](t)&&t[u("0x6")]("TrackChangesCommand")}}const g=["_suggestions","plugins","get","TrackChangesEditing","model","isEnabled","execute","editor","getRanges","refresh","track-changes-accept-suggestion-not-found","canEditAt"];var f,m;f=g,m=297,function(t){for(;--t;)f.push(f.shift())}(++m);const h=function(t,e){return g[t-=0]};class b extends t.Command{constructor(t,e){super(t),this[h("0x3")]=e,this[h("0x0")](),this._isEnabledBasedOnSelection=!1}[h("0x0")](){this[h("0x8")]=!0}[h("0x9")](t){const n=this[h("0x3")][h("0x5")](t);if(!n)throw new e.CKEditorError(h("0x1"),this);const r=n[h("0xb")]();this[h("0xa")][h("0x7")][h("0x2")](r)&&this.editor[h("0x4")][h("0x5")](h("0x6")).acceptSuggestion(n)}}const p=["canEditAt","editor","track-changes-discard-suggestion-not-found","getRanges","refresh","get","_isEnabledBasedOnSelection","model","isEnabled","TrackChangesEditing"];var E,_;E=p,_=468,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return p[t-=0]};class y extends t.Command{constructor(t,e){super(t),this._suggestions=e,this[T("0x6")](),this[T("0x8")]=!1}[T("0x6")](){this[T("0x0")]=!0}execute(t){const n=this._suggestions[T("0x7")](t);if(!n)throw new e.CKEditorError(T("0x4"),this);const r=n[T("0x5")]();this[T("0x3")][T("0x9")][T("0x2")](r)&&this[T("0x3")].plugins.get(T("0x1")).discardSuggestion(n)}}const C=["value","add","isInContent","schema","length","from","isTouching","createPositionAfter","change","type","getRanges","isIntersecting","end","map","replace","next","push","createPositionBefore","createPositionAt","splice","color","content","sort","join","isMultiRange","deletion"];var A,k;A=C,k=324,function(t){for(;--t;)A.push(A.shift())}(++k);const I=function(t,e){return C[t-=0]};function R(t){return t[I("0xa")](((t,e)=>"deletion"==t[I("0x17")]&&"deletion"!=e[I("0x17")]?-1:I("0xd")!=t[I("0x17")]&&"deletion"==e[I("0x17")]?1:0))}function S(t,e){let n,r=0;const i=[],o=e[I("0x11")];for(;r<t[I("0x12")];){const s=t[r],x=t[r+1];n||(n=e[I("0x5")](s)),N(e,s,x)||(i[I("0x4")](e.createRange(n,o.isObject(s)?e[I("0x15")](s):e[I("0x6")](s,I("0x0")))),n=null),r++}return i}function N(t,e,n){if(!n)return!1;const r=t.createPositionAfter(e),i=t[I("0x5")](n);return r[I("0x14")](i)}function v(t,e,n){for(;n[I("0x12")];){const r=n[I("0x7")](0,100);t[I("0x16")]((()=>{for(const t of r)t[I("0x10")]&&e.execute(t.id)}))}}const L=["execute","values","refresh","from","model","_suggestions","_isEnabledBasedOnSelection","_command","editor","isEnabled","some","isInContent"];var M,w;M=L,w=402,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return L[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x1")]=e,this[O("0xb")]=n,this[O("0x8")](),this[O("0x0")]=!1}[O("0x8")](){const t=Array[O("0x9")](this[O("0xb")].values())[O("0x4")]((t=>t[O("0x5")]));this[O("0x3")]=this[O("0x1")][O("0x3")]&&t}[O("0x6")](){const t=R(Array[O("0x9")](this[O("0xb")][O("0x7")]()));for(const e of t){const t=e.getRanges();if(!this[O("0x2")][O("0xa")].canEditAt(t))return}v(this.editor.model,this[O("0x1")],t)}}const D=["selection","isEnabled","getRanges","_command","size","model","from","_selectedSuggestions","canEditAt","_suggestions","refresh","values","editor","_isEnabledBasedOnSelection"];var B,P;B=D,P=479,function(t){for(;--t;)B.push(B.shift())}(++P);const U=function(t,e){return D[t-=0]};class j extends t.Command{constructor(t,e,n){super(t),this[U("0x0")]=e,this._suggestions=n,this[U("0x4")]=new Set,this[U("0x7")](),this[U("0xa")]=!1}refresh(){const t=this[U("0x9")][U("0x2")].document[U("0xb")],e=Array.from(this[U("0x6")][U("0x8")]());this._selectedSuggestions=function(t,e){const n=Array[I("0x13")](t[I("0x18")]()),r=new Set;for(const i of e)if(i[I("0x10")])for(const e of n)for(const n of i[I("0x18")]())(e[I("0x19")](n)||t.isCollapsed&&!i[I("0xc")]&&i[I("0x3")]&&n[I("0x0")].isTouching(e.start))&&r[I("0xf")](i);return r}(t,e),this[U("0xc")]=this[U("0x0")][U("0xc")]&&!!this[U("0x4")][U("0x1")]}execute(){const t=R(Array[U("0x3")](this[U("0x4")]));for(const e of t){const t=e[U("0xd")]();if(!this[U("0x9")][U("0x2")][U("0x5")](t))return}v(this[U("0x9")][U("0x2")],this[U("0x0")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const V=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 W=function(t){var e=this.__data__,n=V(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=V(e,t);return n<0?void 0:e[n][1]};const q=function(t){return V(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,r=V(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}$.prototype.clear=G,$.prototype.delete=W,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const Z=$;const Y=function(){this.__data__=new Z,this.size=0};const J=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Q=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const rt=et||nt||Function("return this")();const it=rt.Symbol;var ot=Object.prototype,st=ot.hasOwnProperty,xt=ot.toString,at=it?it.toStringTag:void 0;const ct=function(t){var e=st.call(t,at),n=t[at];try{t[at]=void 0;var r=!0}catch(t){}var i=xt.call(t);return r&&(e?t[at]=n:delete t[at]),i};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=it?it.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const ft=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const mt=function(t){if(!ft(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=rt["__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 yt=/^\[object .+?Constructor\]$/,Ct=Function.prototype,At=Object.prototype,kt=Ct.toString,It=At.hasOwnProperty,Rt=RegExp("^"+kt.call(It).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!ft(t)||Et(t))&&(mt(t)?Rt:yt).test(Tt(t))};const Nt=function(t,e){return null==t?void 0:t[e]};const vt=function(t,e){var n=Nt(t,e);return St(n)?n:void 0};const Lt=vt(rt,"Map");const Mt=vt(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 Bt=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Bt.call(e,t)};const Ut=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function jt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}jt.prototype.clear=wt,jt.prototype.delete=Ot,jt.prototype.get=Dt,jt.prototype.has=Pt,jt.prototype.set=Ut;const Gt=jt;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Lt||Z),string:new Gt}};const Vt=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 Vt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Wt=function(t){var e=zt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return zt(this,t).get(t)};const qt=function(t){return zt(this,t).has(t)};const Xt=function(t,e){var n=zt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Wt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Zt=$t;const Yt=function(t,e){var n=this.__data__;if(n instanceof Z){var r=n.__data__;if(!Lt||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Zt(r)}return n.set(t,e),this.size=n.size,this};function Jt(t){var e=this.__data__=new Z(t);this.size=e.size}Jt.prototype.clear=Y,Jt.prototype.delete=J,Jt.prototype.get=Q,Jt.prototype.has=tt,Jt.prototype.set=Yt;const Qt=Jt;const te=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=vt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var re=Object.prototype.hasOwnProperty;const ie=function(t,e,n){var r=t[e];re.call(t,e)&&H(r,n)&&(void 0!==n||e in t)||ne(t,e,n)};const oe=function(t,e,n,r){var i=!n;n||(n={});for(var o=-1,s=e.length;++o<s;){var x=e[o],a=r?r(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),i?ne(n,x,a):ie(n,x,a)}return n};const se=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const fe=function(){return!1};var me="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=me&&"object"==typeof module&&module&&!module.nodeType&&module,be=he&&he.exports===me?rt.Buffer:void 0;const pe=(be?be.isBuffer:void 0)||fe;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var ye={};ye["[object Float32Array]"]=ye["[object Float64Array]"]=ye["[object Int8Array]"]=ye["[object Int16Array]"]=ye["[object Int32Array]"]=ye["[object Uint8Array]"]=ye["[object Uint8ClampedArray]"]=ye["[object Uint16Array]"]=ye["[object Uint32Array]"]=!0,ye["[object Arguments]"]=ye["[object Array]"]=ye["[object ArrayBuffer]"]=ye["[object Boolean]"]=ye["[object DataView]"]=ye["[object Date]"]=ye["[object Error]"]=ye["[object Function]"]=ye["[object Map]"]=ye["[object Number]"]=ye["[object Object]"]=ye["[object RegExp]"]=ye["[object Set]"]=ye["[object String]"]=ye["[object WeakMap]"]=!1;const Ce=function(t){return xe(t)&&Te(t.length)&&!!ye[gt(t)]};const Ae=function(t){return function(e){return t(e)}};var ke="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ie=ke&&"object"==typeof module&&module&&!module.nodeType&&module,Re=Ie&&Ie.exports===ke&&et.process;const Se=function(){try{var t=Ie&&Ie.require&&Ie.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Ne=Se&&Se.isTypedArray;const ve=Ne?Ae(Ne):Ce;var Le=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),r=!n&&de(t),i=!n&&!r&&pe(t),o=!n&&!r&&!i&&ve(t),s=n||r||i||o,x=s?se(t.length,String):[],a=x.length;for(var c in t)!e&&!Le.call(t,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const De=Fe(Object.keys,Object);var Be=Object.prototype.hasOwnProperty;const Pe=function(t){if(!Oe(t))return De(t);var e=[];for(var n in Object(t))Be.call(t,n)&&"constructor"!=n&&e.push(n);return e};const Ue=function(t){return null!=t&&Te(t.length)&&!mt(t)};const je=function(t){return Ue(t)?Me(t):Pe(t)};const Ge=function(t,e){return t&&oe(e,je(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var Ve=Object.prototype.hasOwnProperty;const ze=function(t){if(!ft(t))return He(t);var e=Oe(t),n=[];for(var r in t)("constructor"!=r||!e&&Ve.call(t,r))&&n.push(r);return n};const We=function(t){return Ue(t)?Me(t,!0):ze(t)};const Ke=function(t,e){return t&&oe(e,We(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?rt.Buffer:void 0,Ze=$e?$e.allocUnsafe:void 0;const Ye=function(t,e){if(e)return t.slice();var n=t.length,r=Ze?Ze(n):new t.constructor(n);return t.copy(r),r};const Je=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e};const Qe=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const rn=nn?function(t){return null==t?[]:(t=Object(t),Qe(nn(t),(function(e){return en.call(t,e)})))}:tn;const on=function(t,e){return oe(t,rn(t),e)};const sn=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)sn(e,rn(t)),t=xn(t);return e}:tn;const cn=function(t,e){return oe(t,an(t),e)};const ln=function(t,e,n){var r=e(t);return ge(t)?r:sn(r,n(t))};const un=function(t){return ln(t,je,rn)};const dn=function(t){return ln(t,We,an)};const gn=vt(rt,"DataView");const fn=vt(rt,"Promise");const mn=vt(rt,"Set");const hn=vt(rt,"WeakMap");var bn="[object Map]",pn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",yn=Tt(gn),Cn=Tt(Lt),An=Tt(fn),kn=Tt(mn),In=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Lt&&Rn(new Lt)!=bn||fn&&Rn(fn.resolve())!=pn||mn&&Rn(new mn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,r=n?Tt(n):"";if(r)switch(r){case yn:return Tn;case Cn:return bn;case An:return pn;case kn:return En;case In:return _n}return e});const Sn=Rn;var Nn=Object.prototype.hasOwnProperty;const vn=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Nn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Ln=rt.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Ln(e).set(new Ln(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Dn=it?it.prototype:void 0,Bn=Dn?Dn.valueOf:void 0;const Pn=function(t){return Bn?Object(Bn.call(t)):{}};const Un=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const jn=function(t,e,n){var r=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new r(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Un(t,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Pn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!ft(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Vn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Wn=Se&&Se.isMap;const Kn=Wn?Ae(Wn):zn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?Ae(Xn):qn;var Zn="[object Arguments]",Yn="[object Function]",Jn="[object Object]",Qn={};Qn[Zn]=Qn["[object Array]"]=Qn["[object ArrayBuffer]"]=Qn["[object DataView]"]=Qn["[object Boolean]"]=Qn["[object Date]"]=Qn["[object Float32Array]"]=Qn["[object Float64Array]"]=Qn["[object Int8Array]"]=Qn["[object Int16Array]"]=Qn["[object Int32Array]"]=Qn["[object Map]"]=Qn["[object Number]"]=Qn[Jn]=Qn["[object RegExp]"]=Qn["[object Set]"]=Qn["[object String]"]=Qn["[object Symbol]"]=Qn["[object Uint8Array]"]=Qn["[object Uint8ClampedArray]"]=Qn["[object Uint16Array]"]=Qn["[object Uint32Array]"]=!0,Qn["[object Error]"]=Qn[Yn]=Qn["[object WeakMap]"]=!1;const tr=function t(e,n,r,i,o,s){var x,a=1&n,c=2&n,l=4&n;if(r&&(x=o?r(e,i,o,s):r(e)),void 0!==x)return x;if(!ft(e))return e;var u=ge(e);if(u){if(x=vn(e),!a)return Je(e,x)}else{var d=Sn(e),g=d==Yn||"[object GeneratorFunction]"==d;if(pe(e))return Ye(e,a);if(d==Jn||d==Zn||g&&!o){if(x=c||g?{}:Vn(e),!a)return c?cn(e,Ke(x,e)):on(e,Ge(x,e))}else{if(!Qn[d])return o?e:{};x=jn(e,d,a)}}s||(s=new Qt);var f=s.get(e);if(f)return f;s.set(e,x),$n(e)?e.forEach((function(i){x.add(t(i,n,r,i,e,s))})):Kn(e)&&e.forEach((function(i,o){x.set(o,t(i,n,r,o,e,s))}));var m=u?void 0:(l?c?dn:un:c?We:je)(e);return te(m||e,(function(i,o){m&&(i=e[o=i]),ie(x,o,t(i,n,r,o,e,s))})),x};const er=function(t){return tr(t,5)};const nr=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var rr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ir=/^\w*$/;const or=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!nr(t))||(ir.test(t)||!rr.test(t)||null!=e&&t in Object(e))};function sr(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(sr.Cache||Zt),n}sr.Cache=Zt;const xr=sr;var ar=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cr=/\\(\\)?/g;const lr=function(t){var e=xr(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ar,(function(t,n,r,i){e.push(r?i.replace(cr,"$1"):n||t)})),e}));const ur=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i};var dr=it?it.prototype:void 0,gr=dr?dr.toString:void 0;const fr=function t(e){if("string"==typeof e)return e;if(ge(e))return ur(e,t)+"";if(nr(e))return gr?gr.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const mr=function(t){return null==t?"":fr(t)};const hr=function(t,e){return ge(t)?t:or(t,e)?[t]:lr(mr(t))};const br=function(t){if("string"==typeof t||nr(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const pr=function(t,e,n,r){if(!ft(t))return t;for(var i=-1,o=(e=hr(e,t)).length,s=o-1,x=t;null!=x&&++i<o;){var a=br(e[i]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(i!=s){var l=x[a];void 0===(c=r?r(l,a,x):void 0)&&(c=ft(l)?l:_e(e[i+1])?[]:{})}ie(x,a,c),x=x[a]}return t};const Er=function(t,e,n){return null==t?t:pr(t,e,n)};const _r=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Tr=function(t){return this.__data__.has(t)};function yr(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Zt;++e<n;)this.add(t[e])}yr.prototype.add=yr.prototype.push=_r,yr.prototype.has=Tr;const Cr=yr;const Ar=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1};const kr=function(t,e){return t.has(e)};const Ir=function(t,e,n,r,i,o){var s=1&n,x=t.length,a=e.length;if(x!=a&&!(s&&a>x))return!1;var c=o.get(t),l=o.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new Cr:void 0;for(o.set(t,e),o.set(e,t);++u<x;){var f=t[u],m=e[u];if(r)var h=s?r(m,f,u,e,t,o):r(f,m,u,t,e,o);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!Ar(e,(function(t,e){if(!kr(g,e)&&(f===t||i(f,t,n,r,o)))return g.push(e)}))){d=!1;break}}else if(f!==m&&!i(f,m,n,r,o)){d=!1;break}}return o.delete(t),o.delete(e),d};const Rr=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n};const Sr=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Nr=it?it.prototype:void 0,vr=Nr?Nr.valueOf:void 0;const Lr=function(t,e,n,r,i,o,s){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!o(new Ln(t),new Ln(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return 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=Rr;case"[object Set]":var a=1&r;if(x||(x=Sr),t.size!=e.size&&!a)return!1;var c=s.get(t);if(c)return c==e;r|=2,s.set(t,e);var l=Ir(x(t),x(e),r,i,o,s);return s.delete(t),l;case"[object Symbol]":if(vr)return vr.call(t)==vr.call(e)}return!1};var Mr=Object.prototype.hasOwnProperty;const wr=function(t,e,n,r,i,o){var s=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!s)return!1;for(var c=a;c--;){var l=x[c];if(!(s?l in e:Mr.call(e,l)))return!1}var u=o.get(t),d=o.get(e);if(u&&d)return u==e&&d==t;var g=!0;o.set(t,e),o.set(e,t);for(var f=s;++c<a;){var m=t[l=x[c]],h=e[l];if(r)var b=s?r(h,m,l,e,t,o):r(m,h,l,t,e,o);if(!(void 0===b?m===h||i(m,h,n,r,o):b)){g=!1;break}f||(f="constructor"==l)}if(g&&!f){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 o.delete(t),o.delete(e),g};var Or="[object Arguments]",Fr="[object Array]",Dr="[object Object]",Br=Object.prototype.hasOwnProperty;const Pr=function(t,e,n,r,i,o){var s=ge(t),x=ge(e),a=s?Fr:Sn(t),c=x?Fr:Sn(e),l=(a=a==Or?Dr:a)==Dr,u=(c=c==Or?Dr:c)==Dr,d=a==c;if(d&&pe(t)){if(!pe(e))return!1;s=!0,l=!1}if(d&&!l)return o||(o=new Qt),s||ve(t)?Ir(t,e,n,r,i,o):Lr(t,e,a,n,r,i,o);if(!(1&n)){var g=l&&Br.call(t,"__wrapped__"),f=u&&Br.call(e,"__wrapped__");if(g||f){var m=g?t.value():t,h=f?e.value():e;return o||(o=new Qt),i(m,h,n,r,o)}}return!!d&&(o||(o=new Qt),wr(t,e,n,r,i,o))};const Ur=function t(e,n,r,i,o){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:Pr(e,n,r,i,t,o))};const jr=function(t,e){return Ur(t,e)};const Gr=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Hr=function(t,e){for(var n=0,r=(e=hr(e,t)).length;null!=t&&n<r;)t=t[br(e[n++])];return n&&n==r?t:void 0};const Vr=function(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o};const zr=function(t,e){return e.length<2?t:Hr(t,Vr(e,0,-1))};const Wr=function(t,e){return e=hr(e,t),null==(t=zr(t,e))||delete t[br(Gr(e))]};const Kr=function(t,e){return null==t||Wr(t,e)},qr=["reduce","filter","start","decorate","isInContent","size","nodeAfter","accept","isIntersectingWithRange","creator","_model","getFirstMarker","nodeBefore","data","set","removeAttribute","add","getFirstRange","getMarkers","addRange","getMarkerNames","attributes","removeMarker","createdAt","suggestion:","authoredAt","push","author","_onAccept","_isDataLoaded","_markerNames","_saved","subType","_onDiscard","map","isExternal","getAllAdjacentSuggestions","change","_onAttributesChange","commentThread","removeMarkers","getRanges","getItems","getMultiRangeId","type","isMultiRange","length","delete","end","from","clear","@external","toJSON","onAccept","discard","previous","next"];var Xr,$r;Xr=qr,$r=187,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Zr=function(t,e){return qr[t-=0]};class Yr extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Zr("0xd")]=!1,this.id=e.id,this.type=e[Zr("0x1c")],this.subType=e[Zr("0x10")]||null,this[Zr("0xb")]=e[Zr("0xb")],this[Zr("0x32")]=e[Zr("0x32")]||e[Zr("0xb")],this[Zr("0x13")]=Boolean(e.attributes&&e[Zr("0x5")][Zr("0x23")]),this.data=null,this[Zr("0x33")]=t,this[Zr("0xc")]=e[Zr("0x25")],this._onDiscard=e.onDiscard,this[Zr("0x16")]=e.onAttributesChange,this[Zr("0xe")]=new Set,this[Zr("0x7")]=null,this.set(Zr("0x9"),null),this[Zr("0x37")](Zr("0x5"),e[Zr("0x5")]||{}),this[Zr("0x37")](Zr("0x27"),null),this[Zr("0x37")](Zr("0x28"),null),this[Zr("0x37")]("commentThread",null),this[Zr("0x37")](Zr("0xf"),!1),this[Zr("0x2c")](Zr("0x30")),this[Zr("0x2c")](Zr("0x26"))}get head(){let t=this;for(;t.previous;)t=t[Zr("0x27")];return t}get hasComments(){return!!this.commentThread&&this[Zr("0x17")][Zr("0x1e")]>0}get[Zr("0x1d")](){return 0!=this[Zr("0xe")][Zr("0x2e")]&&6==Array[Zr("0x21")](this[Zr("0xe")])[0].split(":")[Zr("0x1e")]}get[Zr("0x2d")](){return null!==this[Zr("0x34")]()}addMarkerName(t){this._markerNames[Zr("0x0")](t)}[Zr("0x4")](){return Array[Zr("0x21")](this[Zr("0xe")])}[Zr("0x2")](){return this[Zr("0x4")]()[Zr("0x12")]((t=>this[Zr("0x33")].markers.get(t)))[Zr("0x2a")]((t=>t))}[Zr("0x34")](){return this.getMarkers()[0]||null}[Zr("0x18")](){this[Zr("0x33")][Zr("0x15")]((t=>{for(const e of this[Zr("0x2")]())t[Zr("0x6")](e)})),this[Zr("0xe")][Zr("0x22")]()}[Zr("0x6")](t){this[Zr("0x33")][Zr("0x15")]((e=>{e[Zr("0x6")](t)})),this[Zr("0xe")][Zr("0x1f")](t)}[Zr("0x3")](t){const e=Zr("0x8")+this[Zr("0x1c")]+":"+this[Zr("0x10")]+":"+this.id+":"+this.creator.id+":"+Yr[Zr("0x1b")]();this.addMarkerName(e),this[Zr("0x33")][Zr("0x15")]((n=>{n.addMarker(e,{range:t,usingOperation:!0,affectsData:!0})}))}[Zr("0x31")](t){for(const e of this[Zr("0x19")]())if(e.isIntersecting(t))return!0;return!1}[Zr("0x19")](){return this[Zr("0x2")]()[Zr("0x12")]((t=>t.getRange()))}getItems(){return this[Zr("0x19")]()[Zr("0x29")](((t,e)=>[...t,...e[Zr("0x1a")]()]),[])}[Zr("0x1")](){var t;return(null===(t=this[Zr("0x34")]())||void 0===t?void 0:t.getRange())||null}getContainedElement(){const t=this[Zr("0x19")]();if(1!=t[Zr("0x1e")])return null;const e=t[0],n=e[Zr("0x2b")][Zr("0x2f")],r=e[Zr("0x20")][Zr("0x35")];return n instanceof s.Element?n!=r?null:n:null}accept(){this[Zr("0xc")](this[Zr("0x19")](),this[Zr("0x36")],this[Zr("0x5")]),this[Zr("0x18")]()}[Zr("0x26")](){this[Zr("0x11")](this[Zr("0x19")](),this[Zr("0x36")],this[Zr("0x5")]),this[Zr("0x18")]()}[Zr("0x14")](){const t=[];let e=this.head;for(;e;)t[Zr("0xa")](e),e=e[Zr("0x28")];return t}setAttribute(t,e){const n=er(this[Zr("0x5")]);Er(n,t,e),jr(n,this.attributes)||(this.attributes=n,this[Zr("0x16")](n))}[Zr("0x38")](t){const e=er(this[Zr("0x5")]);Kr(e,t),jr(e,this.attributes)||(this[Zr("0x5")]=e,this[Zr("0x16")](this[Zr("0x5")]))}[Zr("0x24")](){return{id:this.id,type:this[Zr("0x10")]?this[Zr("0x1c")]+":"+this[Zr("0x10")]:this[Zr("0x1c")],authorId:this[Zr("0x32")].id,createdAt:this.createdAt,hasComments:this.hasComments,data:this.data,attributes:this[Zr("0x5")]}}static[Zr("0x1b")](){return(0,e.uid)().substr(1,5)}}function Jr(t,e,n){const r=t.t;switch(e){case"Track changes":return r("Track changes");case"Accept suggestion":return r("Accept suggestion");case"Discard suggestion":return r("Discard suggestion");case"Accept all suggestions":return r("Accept all suggestions");case"Accept all selected suggestions":return r("Accept all selected suggestions");case"Discard all suggestions":return r("Discard all suggestions");case"Discard all selected suggestions":return r("Discard all selected suggestions");case"*Reset font size*":return r("*Reset font size*");case"*Reset font family*":return r("*Reset font family*");case"*Reset font color*":return r("*Reset font color*");case"*Reset font background color*":return r("*Reset font background color*");case"*Remove image text alternative*":return r("*Remove image text alternative*");case"*Reset image width*":return r("*Reset image width*");case"*Remove link*":return r("*Remove link*");case"*Check item*":return r("*Check item*");case"*Uncheck item*":return r("*Uncheck item*");case"*Remove all formatting*":return r("*Remove all formatting*");case"*Replace table cells*":return r("*Replace table cells*");case"*Merge cells*":return r("*Merge cells*");case"*Split cell:* vertically":return r("*Split cell:* vertically");case"*Split cell:* horizontally":return r("*Split cell:* horizontally");case"*Indent:* %0":return r("*Indent:* %0",n);case"*Outdent:* %0":return r("*Outdent:* %0",n);case"*Change to:* %0":return r("*Change to:* %0",n);case"*Insert:* %0":return r("*Insert:* %0",n);case"*Format:* %0":return r("*Format:* %0",n);case"*Format:* change table properties":return r("*Format:* change table properties");case"*Format:* change table cell properties":return r("*Format:* change table cell properties");case"*Format:* insert into %0":return r("*Format:* insert into %0",n);case"*Format:* remove from %0":return r("*Format:* remove from %0",n);case"*Replace image URL*":return r("*Replace image URL*");case"*Format:* resize table":return r("*Format:* resize table");case"*Format:* set order to reversed":return r("*Format:* set order to reversed");case"*Format:* set order to regular":return r("*Format:* set order to regular");case"*Format:* set start index to %0":return r("*Format:* set start index to %0",n);case"*Change %0 content*":return r("*Change %0 content*",n);case"*Remove:* %0":return r("*Remove:* %0",n);case"*Merge:* %0":return r("*Merge:* %0",n);case"*Split:* %0":return r("*Split:* %0",n);case"*Remove format:* %0":return r("*Remove format:* %0",n);case"*Set font size:* %0":return r("*Set font size:* %0",n);case"*Set font family:* %0":return r("*Set font family:* %0",n);case"*Set format to:* %0":return r("*Set format to:* %0",n);case"*Set font color:* %0":return r("*Set font color:* %0",n);case"*Set font background color:* %0":return r("*Set font background color:* %0",n);case"*Set format:* %0":return r("*Set format:* %0",n);case"*Set image text alternative:* %0":return r("*Set image text alternative:* %0",n);case"*Set image width:* %0":return r("*Set image width:* %0",n);case"*Set link:* %0":return r("*Set link:* %0",n);case"*Set highlight:* %0":return r("*Set highlight:* %0",n);case"*Remove highlight*":return r("*Remove highlight*");case"FORMAT_HIGHLIGHT":return r({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return r({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return r({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return r({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return r({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return r({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return r({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return r({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return r({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return r({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return r({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return r({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return r({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return r({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return r({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return r({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return r({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_DEFAULT":return r({string:"bulleted list (default)",id:"ELEMENT_BULLETED_LIST_DEFAULT"});case"ELEMENT_BULLETED_LIST_CIRCLE":return r({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return r({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return r({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST_DEFAULT":return r({string:"numbered list (default)",id:"ELEMENT_NUMBERED_LIST_DEFAULT"});case"ELEMENT_NUMBERED_LIST":return r({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return r({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return r({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return r({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return r({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return r({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return r({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return r({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return r({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return r({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGNMENT":return r({string:"alignment",id:"FORMAT_ALIGNMENT"});case"FORMAT_ALIGN_TO_LEFT":return r({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return r({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return r({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return r({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return r({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return r({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return r({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return r({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return r({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return r({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return r({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return r({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return r({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return r({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return r({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return r({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return r({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"FORMAT_INDENT":return r({string:"indent",id:"FORMAT_INDENT"});case"FORMAT_LIST_REVERSED":return r({string:"list reversed",id:"FORMAT_LIST_REVERSED"});case"FORMAT_LIST_START":return r({string:"list start",id:"FORMAT_LIST_START"});case"FORMAT_FONT_SIZE":return r({string:"font size",id:"FORMAT_FONT_SIZE"});case"FORMAT_FONT_FAMILY":return r({string:"font family",id:"FORMAT_FONT_FAMILY"});case"FORMAT_FONT_COLOR":return r({string:"font color",id:"FORMAT_FONT_COLOR"});case"FORMAT_FONT_BACKGROUND":return r({string:"font background color",id:"FORMAT_FONT_BACKGROUND"});case"FORMAT_IMAGE_SIZE":return r({string:"image size",id:"FORMAT_IMAGE_SIZE"});case"FORMAT_STYLE":return r({string:"style",id:"FORMAT_STYLE"});case"PENDING_ACTION_SUGGESTION":return r({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return r({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return r({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return r({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return r({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return r({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return r({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return r({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return r({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return r({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return r({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return r({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return r({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);case"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT":return r({string:"Entering insertion suggestion.",id:"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT":return r({string:"Leaving insertion suggestion.",id:"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT":return r({string:"Entering deletion suggestion.",id:"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT":return r({string:"Leaving deletion suggestion.",id:"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT":return r({string:"Entering formatting suggestion.",id:"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT":return r({string:"Leaving formatting suggestion.",id:"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT"});default:return e}}const Qr=["_resolveDescriptionItems","Object","_customCallbacks","_schema","registerElementLabel","getDescriptions","remove","normal","type","length","item","pop","*Merge:* %0","addContainer","addFormat","previousSibling","*Change to:* %0","*Split:* %0","ELEMENT_SPACE","newValue","checkChild","addObject","element","subType","_addDescriptionItems","nextSibling","get","_handleAttributeSuggestionDescription","_locale","push","quantity","replace","$text","isEqual","_itemLabels","function","addEmptyContainer","_attributeLabels","*Insert:* %0","*Remove:* %0","_handleRenameSuggestionDescription","end","$1 $2","_itemLabelsCallbacks","isInContent","isObject","has","nodeAfter","name","removeContainer","isEmpty","insertion","skip","match","registerAttributeLabel","add","text","map","elementEnd","format","removeFormat","deletion","key","_handleCustomCallbackDescription","join","*Set format:* %0","Container","data","start","getWalker","getItemLabel","matchingCallback","_handleInsertRemoveSuggestionDescription","attribute","set","indexOf","label","elementStart","*Remove format:* %0","getFirstRange","EmptyContainer"];var ti,ei;ti=Qr,ei=487,function(t){for(;--t;)ti.push(ti.shift())}(++ei);const ni=function(t,e){return Qr[t-=0]};class ri{constructor(t,e){this._customCallbacks=[],this[ni("0x21")]=new Map,this[ni("0x2a")]=[],this[ni("0x24")]=new Map,this[ni("0x2")]=t,this[ni("0x1b")]=e}[ni("0x4")](t){const e=[],n=new Set,r=new Set;for(let i=0;i<t[ni("0x8")];i++){const o=t[i];if(!o[ni("0x2b")])continue;const s=this[ni("0x3e")](o);if(s){if(null!=o[ni("0x16")]){if(n.has(o.subType))continue;n[ni("0x36")](o[ni("0x16")])}e[ni("0x1c")](s)}else if(ni("0x48")!=o[ni("0x7")])ni("0x32")!=o.type&&ni("0x3c")!=o[ni("0x7")]||this[ni("0x47")](e,o,t[i+1]);else{const t=o.data[ni("0x3d")];if(r.has(t))continue;r[ni("0x36")](o[ni("0x42")][ni("0x3d")]),t==mc?this[ni("0x27")](e,o):this[ni("0x1a")](e,o)}}return this[ni("0x50")](e)}registerDescriptionCallback(t){this[ni("0x1")][ni("0x1c")](t)}[ni("0x3")](t,n,r=e.priorities[ni("0x6")]){ni("0x22")==typeof t?(0,e.insertToPriorityArray)(this[ni("0x2a")],{matchingCallback:t,label:n,priority:r}):this._itemLabels[ni("0x49")](t,n)}[ni("0x35")](t,e){this[ni("0x24")][ni("0x49")](t,e)}[ni("0x45")](t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e[ni("0x46")](t)){n=e[ni("0x4b")];break}return n||(n=this[ni("0x21")][ni("0x19")](t.name)),n?n(e):1!==e?e+" "+t[ni("0x2f")]+"s":""+t[ni("0x2f")]}_addDescriptionItems(t,e){const n=e.getFirstRange()[ni("0x44")](),r=ni("0x32")==e.type?ni("0x36"):ni("0x5");for(const e of n){const i=e[ni("0x9")],o=t[t[ni("0x8")]-1];if(i.is("$textProxy"))o&&o[ni("0x7")][ni("0x4a")](ni("0x41"))>-1&&t[ni("0xa")](),o&&"text"==o[ni("0x7")]?o[r]+=i[ni("0x42")]:t[ni("0x1c")]({type:ni("0x37"),add:"add"==r?i[ni("0x42")]:"",remove:"remove"==r?i[ni("0x42")]:""});else if(this[ni("0x2")][ni("0x2c")](i)){const s=i;if(o&&o[ni("0x7")][ni("0x4a")](ni("0x41"))>-1&&t[ni("0xa")](),ni("0x39")==e[ni("0x7")])continue;o&&o[ni("0x7")]==r+ni("0x0")&&o.element.name==s.name?o[ni("0x1d")]++:t[ni("0x1c")]({type:r+ni("0x0"),element:s,quantity:1}),n[ni("0x33")]((t=>!(ni("0x39")==t[ni("0x7")]&&t.item==i)))}else if(this[ni("0x2")][ni("0x13")](i,ni("0x1f"))||i.is(ni("0x15"),"softBreak")){const n=i;if("add"==r&&ni("0x4c")==e.type||ni("0x5")==r&&ni("0x39")==e.type)continue;if(o&&-1==o[ni("0x7")][ni("0x4a")](ni("0x41"))){"text"==o[ni("0x7")]&&(o[r]+="\n");continue}let s;if(s=ni("0x36")==r?n.nextSibling&&!this[ni("0x2")][ni("0x2c")](n[ni("0x18")])?n.nextSibling:null:n.previousSibling&&!this[ni("0x2")][ni("0x2c")](n[ni("0xe")])?n[ni("0xe")]:null,n[ni("0x31")]||s&&s[ni("0x31")]){const e=s&&s.isEmpty?s:n;o&&o[ni("0x7")]==r+ni("0x4f")&&o[ni("0x15")].name==e[ni("0x2f")]?o[ni("0x1d")]++:t[ni("0x1c")]({type:r+ni("0x4f"),element:e,quantity:1})}else t.push({type:r+ni("0x41"),element:n})}}}[ni("0x50")](t){const e=this[ni("0x1b")],n=[],r=[],i=[];for(const o of t)switch(o[ni("0x7")]){case"text":if(o[ni("0x36")]=o[ni("0x36")][ni("0x1e")](/(\S)\u000A+(\S)/g,ni("0x29"))[ni("0x1e")](/\u000A/g,""),o[ni("0x5")]=o.remove[ni("0x1e")](/(\S)\u000A+(\S)/g,ni("0x29"))[ni("0x1e")](/\u000A/g,""),""!=o[ni("0x36")]&&""!=o[ni("0x5")]){n.push({type:ni("0x1e"),content:Jr(e,"REPLACE_TEXT",['"'+o.remove+'"','"'+o[ni("0x36")]+'"'])});continue}if(null!=o[ni("0x36")][ni("0x34")](/^ +$/)){n.push({type:ni("0x32"),content:Jr(e,"*Insert:* %0",Jr(e,ni("0x11"),o[ni("0x36")][ni("0x8")]))});continue}if(null!=o[ni("0x5")][ni("0x34")](/^ +$/)){n[ni("0x1c")]({type:"deletion",content:Jr(e,ni("0x26"),Jr(e,"ELEMENT_SPACE",o[ni("0x5")].length))});continue}if(""!=o[ni("0x36")]){n[ni("0x1c")]({type:ni("0x32"),content:Jr(e,ni("0x25"),'"'+o[ni("0x36")]+'"')});continue}n[ni("0x1c")]({type:"deletion",content:Jr(e,ni("0x26"),'"'+o[ni("0x5")]+'"')});continue;case ni("0x23"):case ni("0x14"):n[ni("0x1c")]({type:ni("0x32"),content:Jr(e,ni("0x25"),this[ni("0x45")](o[ni("0x15")],o[ni("0x1d")]))});continue;case"removeEmptyContainer":case"removeObject":n[ni("0x1c")]({type:ni("0x3c"),content:Jr(e,ni("0x26"),this.getItemLabel(o[ni("0x15")],o[ni("0x1d")]))});continue;case ni("0xc"):n[ni("0x1c")]({type:ni("0x32"),content:Jr(e,ni("0x10"),this[ni("0x45")](o[ni("0x15")],o[ni("0x1d")]))});continue;case ni("0x30"):n[ni("0x1c")]({type:ni("0x3c"),content:Jr(e,ni("0xb"),this.getItemLabel(o[ni("0x15")],o.quantity))});continue;case ni("0xd"):r[ni("0x1c")](o[ni("0x3d")]);continue;case ni("0x3b"):i[ni("0x1c")](o.key);continue;default:n[ni("0x1c")](o)}if(r.length){const t=r[ni("0x38")]((t=>this[ni("0x24")].has(t)?this[ni("0x24")][ni("0x19")](t):t))[ni("0x3f")](", ");n[ni("0x1c")]({type:ni("0x3a"),content:Jr(this[ni("0x1b")],ni("0x40"),t)})}if(i[ni("0x8")]){const t=i[ni("0x38")]((t=>this[ni("0x24")][ni("0x2d")](t)?this._attributeLabels[ni("0x19")](t):t))[ni("0x3f")](", ");n.push({type:ni("0x3a"),content:Jr(this[ni("0x1b")],ni("0x4d"),t)})}return n}[ni("0x3e")](t){for(const e of this[ni("0x1")]){const n=e(t);if(n&&ni("0x7")in n)return n}}_handleAttributeSuggestionDescription(t,e){const n=e[ni("0x42")],r=void 0===n[ni("0x12")]?ni("0x3b"):ni("0xd");t[ni("0x1c")]({type:r,key:n[ni("0x3d")]})}[ni("0x27")](t,e){t[ni("0x1c")]({type:ni("0x3a"),content:Jr(this[ni("0x1b")],ni("0xf"),this[ni("0x45")](e[ni("0x4e")]().start[ni("0x2e")],1))})}_handleInsertRemoveSuggestionDescription(t,e,n){if(this[ni("0x17")](t,e),n&&n[ni("0x4e")]()&&!e.getFirstRange()[ni("0x28")][ni("0x20")](n[ni("0x4e")]()[ni("0x43")])){const n=t[t[ni("0x8")]-1],r=ni("0x32")==e[ni("0x7")]?ni("0x36"):ni("0x5");n&&"text"==n[ni("0x7")]&&(n[r]+="\n")}}}const ii=["showAIAssistant","get","plugins","enableCommand","afterInit","editor"];var oi,si;oi=ii,si=370,function(t){for(;--t;)oi.push(oi.shift())}(++si);const xi=function(t,e){return ii[t-=0]};class ai extends t.Plugin{[xi("0x0")](){const t=this[xi("0x1")],e=t[xi("0x4")][xi("0x3")]("TrackChangesEditing");t.commands[xi("0x3")]("showAIAssistant")&&e[xi("0x5")](xi("0x2"))}}const ci=["commandName","format","justify","formatBlock","right","_enableDefaultAttributesIntegration","type","FORMAT_ALIGN_TO_LEFT","FORMAT_ALIGNMENT","locale","FORMAT_ALIGN_TO_RIGHT","commandParams","registerAttributeLabel","FORMAT_ALIGN_TO_CENTER","alignment","get","afterInit","center","plugins","AlignmentEditing","registerDescriptionCallback","left","FORMAT_JUSTIFY_TEXT","TrackChangesEditing","_descriptionFactory","value","editor"];var li,ui;li=ci,ui=307,function(t){for(;--t;)li.push(li.shift())}(++ui);const di=function(t,e){return ci[t-=0]};class gi extends t.Plugin{[di("0x6")](){const t=this[di("0x10")],e=t[di("0x1a")];if(!t[di("0x8")].has(di("0x9")))return;const n=t[di("0x8")][di("0x5")](di("0xd"));n[di("0x16")](di("0x4"),[],[di("0x4")]),n[di("0xe")][di("0x2")](di("0x4"),Jr(e,di("0x19"))),this._registerLegacyDescription()}_registerLegacyDescription(){const t=this.editor,e=t[di("0x1a")];t.plugins[di("0x5")](di("0xd"))[di("0xe")][di("0xa")]((t=>{if(di("0x14")!=t[di("0x17")])return;const{data:n}=t;if(n&&di("0x4")==n[di("0x11")]){const t=n[di("0x1")][0][di("0xf")];return{type:di("0x12"),content:Jr(e,"*Format:* %0",function(t){switch(t){case di("0xb"):return Jr(e,di("0x18"));case di("0x15"):return Jr(e,di("0x0"));case di("0x7"):return Jr(e,di("0x3"));case di("0x13"):return Jr(e,di("0xc"))}}(t))}}}))}}const fi=["FORMAT_ITALIC","UnderlineEditing","SubscriptEditing","code","commandName","FORMAT_SUPERSCRIPT","bold","FORMAT_UNDERLINE","afterInit","CodeEditing","_enableDefaultAttributesIntegration","FORMAT_BOLD","_descriptionFactory","*Format:* %0","type","_registerLegacyDescription","FORMAT_SUBSCRIPT","underline","FORMAT_","toUpperCase","italic","subscript","get","slice","SuperscriptEditing","FORMAT_CODE","FORMAT_STRIKETHROUGH","format","TrackChangesEditing","StrikethroughEditing","locale","forceValue","plugins","BoldEditing","*Remove format:* %0","editor"];var mi,hi;mi=fi,hi=308,function(t){for(;--t;)mi.push(mi.shift())}(++hi);const bi=function(t,e){return fi[t-=0]},pi=[bi("0xd"),"ItalicEditing",bi("0x11"),bi("0x19"),bi("0x9"),bi("0x12"),bi("0x4")];class Ei extends t.Plugin{[bi("0x18")](){const t=this.editor,e=t[bi("0xc")][bi("0x2")](bi("0x8")),n=t[bi("0xa")];for(const r of pi){if(!t[bi("0xc")].has(r))continue;const i=r[bi("0x3")](0,-7).toLowerCase(),o=bi("0x22")+i[bi("0x23")]();e[bi("0x1a")](i,[i]),e[bi("0x1c")].registerAttributeLabel(i,Jr(n,o))}this[bi("0x1f")]()}[bi("0x1f")](){const t=this[bi("0xf")],e=t[bi("0xa")],n=t.plugins[bi("0x2")](bi("0x8"));function r(t,r){n[bi("0x1c")].registerDescriptionCallback((n=>{if("formatInline"!=n[bi("0x1e")])return;const{data:i}=n;return i&&i[bi("0x14")]===t?i.commandParams[0][bi("0xb")]?{type:bi("0x7"),content:Jr(e,bi("0x1d"),r)}:{type:bi("0x7"),content:Jr(e,bi("0xe"),r)}:void 0}))}r(bi("0x16"),Jr(e,bi("0x1b"))),r(bi("0x0"),Jr(e,bi("0x10"))),r(bi("0x21"),Jr(e,bi("0x17"))),r(bi("0x13"),Jr(e,bi("0x5"))),r("strikethrough",Jr(e,bi("0x6"))),r(bi("0x1"),Jr(e,bi("0x20"))),r("superscript",Jr(e,bi("0x15")))}}const _i=["editor","forceValue","get","model","_descriptionFactory","plugins","registerDescriptionCallback","has","*Set format:* %0","parent","selection","$root","TrackChangesEditing","getSelectedBlocks","checkChild","enableCommand","format","schema","value","commandName","blockQuote","*Remove format:* %0","markBlockFormat","change","document"];var Ti,yi;Ti=_i,yi=243,function(t){for(;--t;)Ti.push(Ti.shift())}(++yi);const Ci=function(t,e){return _i[t-=0]};class Ai extends t.Plugin{afterInit(){const t=this[Ci("0x7")],e=t.locale;if(!t.plugins[Ci("0xe")]("BlockQuoteEditing"))return;const n=t[Ci("0xc")][Ci("0x9")](Ci("0x13")),r=this.editor.commands[Ci("0x9")](Ci("0x2"));n[Ci("0x16")](Ci("0x2"),((e,i={})=>{const o=this[Ci("0x7")][Ci("0xa")][Ci("0x6")][Ci("0x11")],s=i&&void 0!==i[Ci("0x8")]?i[Ci("0x8")]:!r[Ci("0x0")];let x=[];if(s){const e=Array.from(o[Ci("0x14")]()).filter((t=>ki(t)||function(t,e){const n=e[Ci("0x15")](t[Ci("0x10")],Ci("0x2")),r=e.checkChild([Ci("0x12"),Ci("0x2")],t);return n&&r}(t,this[Ci("0x7")].model[Ci("0x18")])));x=S(e,t.model)}else{const e=Array.from(o[Ci("0x14")]()).filter((t=>ki(t)));x=S(e,t[Ci("0xa")])}t[Ci("0xa")][Ci("0x5")]((()=>{for(const t of x)n[Ci("0x4")](t,{commandName:Ci("0x2"),commandParams:[{forceValue:s}]})}))})),n[Ci("0xb")][Ci("0xd")]((t=>{const{data:n}=t;if(n&&Ci("0x2")==n[Ci("0x1")]){const t=Jr(e,"ELEMENT_BLOCK_QUOTE");return n.commandParams[0][Ci("0x8")]?{type:Ci("0x17"),content:Jr(e,Ci("0xf"),t)}:{type:Ci("0x17"),content:Jr(e,Ci("0x3"),t)}}}))}}function ki(t){return Ci("0x2")==t.parent.name}const Ii=["commands","plugins","ckbox","afterInit","editor","get"];var Ri,Si;Ri=Ii,Si=302,function(t){for(;--t;)Ri.push(Ri.shift())}(++Si);const Ni=function(t,e){return Ii[t-=0]};class vi extends t.Plugin{[Ni("0x1")](){const t=this[Ni("0x2")];t[Ni("0x4")][Ni("0x3")](Ni("0x0"))&&t[Ni("0x5")][Ni("0x3")]("TrackChangesEditing").enableCommand(Ni("0x0"))}}const Li=["commands","_descriptionFactory","plugins","commandName","from","rootElement","value","change","find","isLimit","CodeBlock","enableCommand","ELEMENT_CODE_BLOCK","formatBlock","registerDescriptionCallback","afterInit","name","has","filter","document","registerElementLabel","codeBlock","editor","language","get","indentCodeBlock","label","outdentCodeBlock","markBlockFormat","toLowerCase","format","forceValue","getSelectedBlocks","*Remove format:* %0","model"];var Mi,wi;Mi=Li,wi=112,function(t){for(;--t;)Mi.push(Mi.shift())}(++wi);const Oi=function(t,e){return Li[t-=0]};class Fi extends t.Plugin{[Oi("0x8")](){const t=this[Oi("0xf")];if(!t[Oi("0x1e")][Oi("0xa")](Oi("0x3")))return;const e=t.plugins[Oi("0x11")]("TrackChangesEditing"),n=t.locale,r=t.config[Oi("0x11")]("codeBlock").languages,i=t[Oi("0x1c")][Oi("0x11")]("codeBlock");e[Oi("0x4")](Oi("0x12")),e.enableCommand(Oi("0x14")),e[Oi("0x4")](Oi("0xe"),((n,o={})=>{const s=t[Oi("0x1b")],x=t.model[Oi("0xc")].selection,a=o&&void 0!==o[Oi("0x18")]?o.forceValue:!i[Oi("0x22")];let c;o[Oi("0x10")]||(o[Oi("0x10")]=r[0].language),c=a?Array.from(x[Oi("0x19")]())[Oi("0xb")]((t=>{return Di(t)||(e=t,n=s.schema,!e.is(Oi("0x21"))&&!n[Oi("0x2")](e)&&n.checkChild(e.parent,"codeBlock"));var e,n})):Array[Oi("0x20")](x[Oi("0x19")]()).filter((t=>Di(t)));const l=S(c,s);s[Oi("0x0")]((()=>{for(const t of l)e[Oi("0x15")](t,{commandName:"codeBlock",commandParams:[{...o,forceValue:a}],formatGroupId:"blockName"})}))})),e[Oi("0x1d")][Oi("0xd")](Oi("0xe"),(t=>Jr(n,Oi("0x5"),t))),e[Oi("0x1d")][Oi("0x7")]((t=>{if(Oi("0x6")!=t.type)return;const e=n.t,{data:i}=t;if(!i||Oi("0xe")!=i[Oi("0x1f")])return;const o=i.commandParams[0][Oi("0x10")],s=e(r[Oi("0x1")]((t=>t.language===o))[Oi("0x13")])[Oi("0x16")]();return i.commandParams[0][Oi("0x18")]?{type:Oi("0x17"),content:Jr(n,"*Set format:* %0",Jr(n,Oi("0x5"),1)+" ("+s+")")}:{type:Oi("0x17"),content:Jr(n,Oi("0x1a"),Jr(n,Oi("0x5"),1))}}))}}function Di(t){return Oi("0xe")==t[Oi("0x9")]}const Bi=["CommentsEditing","plugins","enableCommand","editor","has","afterInit","addCommentThread","TrackChangesEditing","get"];var Pi,Ui;Pi=Bi,Ui=320,function(t){for(;--t;)Pi.push(Pi.shift())}(++Ui);const ji=function(t,e){return Bi[t-=0]};class Gi extends t.Plugin{[ji("0x0")](){const t=this[ji("0x7")];t[ji("0x5")][ji("0x8")](ji("0x4"))&&t[ji("0x5")][ji("0x3")](ji("0x2"))[ji("0x6")](ji("0x1"))}}var Hi=n(181);const Vi=["isBlock","toViewElement","plugins","activeMarkers","name","markerName","ck-suggestion-marker--active","schema","previousPosition","listIndent","getItems","push","nextSibling","element","createRangeOn","model","getWalker","createUIElement","insert","parent","bindElementToMarker","listItem","isLimit","test","markerRange","addClass","writer","elementEnd","type","mapper","span","get","hasAttribute","isAtEnd"];var zi,Wi;zi=Vi,Wi=400,function(t){for(;--t;)zi.push(zi.shift())}(++Wi);const Ki=function(t,e){return Vi[t-=0]};function qi(t,e,n){const r=[];for(const i of e[Ki("0x12")]())i[Ki("0x6")](t)&&r.push(n[Ki("0x16")](i));return r}function Xi(t,e,{showActiveMarker:n=!0}={}){const r=t[Ki("0xa")][Ki("0x5")]("TrackChangesEditing");return(i,o,s)=>{if(!s.consumable[Ki("0x1f")](o[Ki("0x20")],i[Ki("0xc")]))return;const x=o[Ki("0x20")][Ki("0x18")](),a=o.markerRange.start,c=t[Ki("0x17")][Ki("0xf")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t.item;d=d||c.isContent(e);const n=s[Ki("0x3")][Ki("0x9")](e);if(n&&n.getCustomProperty("addHighlight"))return;Ki("0x1")==t[Ki("0x2")]&&c[Ki("0x8")](e)&&!c[Ki("0x1e")](e)&&(e[Ki("0x14")]||a[Ki("0x7")]?l&&l[Ki("0x1b")]==e||(l=e,f(t[Ki("0x10")]),g=!0):u=u||t[Ki("0x10")])}function f(t){const i=s[Ki("0x0")][Ki("0x19")](Ki("0x4"),{class:"ck-suggestion-marker-"+e}),x=s[Ki("0x3")].toViewPosition(t);n&&r[Ki("0xb")].includes(o.markerName)&&s[Ki("0x0")][Ki("0x21")](Ki("0xe"),i),s[Ki("0x0")][Ki("0x1a")](x,i),s[Ki("0x3")][Ki("0x1c")](i,o[Ki("0xd")])}d||g||!u||f(u)}}const $i=["root","document","model","writer","mapper","detach","start","fromRange","options","isCollapsed","getFirstRange","batch","unbindElementFromMarkerName","uiElement","lock","removeMarker:suggestion:deletion","editing","end","unlock","downcastDispatcher","selection","merge","deleteForward","forward","bind","commands","setSelection","buffer","modifySelection","rootName","requires","data","markerNameToElements","markerName","enableCommand","showSuggestionHighlights","TrackChangesEditing","unit","high","createSelection","init","get","enqueueChange","addMarker:suggestion:deletion","createRange"];var Zi,Yi;Zi=$i,Yi=317,function(t){for(;--t;)Zi.push(Zi.shift())}(++Yi);const Ji=function(t,e){return $i[t-=0]};class Qi extends t.Plugin{static get[Ji("0x1c")](){return[Hi.Delete]}[Ji("0x26")](){const t=this.editor,e=t.plugins[Ji("0x27")](Ji("0x22"));e.enableCommand("delete");const n=t[Ji("0x17")][Ji("0x27")](Ji("0x14"));e[Ji("0x20")](Ji("0x14"),((e,r={})=>{const i=t[Ji("0x0")][Ji("0x25")](t[Ji("0x0")][Ji("0x2c")][Ji("0x12")]);i[Ji("0x7")]&&t[Ji("0x0")][Ji("0x1a")](i,{direction:Ji("0x15"),unit:r[Ji("0x23")]});const o=i[Ji("0x8")](),x=s.LiveRange[Ji("0x5")](o);let a;e(r),a="$graveyard"==x[Ji("0x2b")][Ji("0x1b")]?t.model[Ji("0x2a")](o[Ji("0x4")]):t.model[Ji("0x2a")](x[Ji("0x4")],x[Ji("0xf")]),x[Ji("0x3")](),t.model[Ji("0x28")](n[Ji("0x19")][Ji("0x9")],(t=>{n.buffer[Ji("0xc")](),t[Ji("0x18")](t.createRange(a.end)),n.buffer[Ji("0x10")]()}))})),t.editing[Ji("0x11")].on("addMarker:suggestion:deletion",Xi(t,Ji("0x13")),{priority:"high"}),t[Ji("0x1d")][Ji("0x11")].on(Ji("0x29"),((e,n,r)=>{r[Ji("0x6")][Ji("0x21")]&&Xi(t,Ji("0x13"),{showActiveMarker:!1})[Ji("0x16")](this)(e,n,r)}),{priority:"high"}),t[Ji("0xe")].downcastDispatcher.on(Ji("0xd"),((t,e,n)=>{const r=n[Ji("0x2")][Ji("0x1e")](e[Ji("0x1f")]);if(r)for(const t of r)t.is(Ji("0xb"))&&(n[Ji("0x2")][Ji("0xa")](t,e[Ji("0x1f")]),n[Ji("0x1")].remove(t))}),{priority:Ji("0x24")})}}const to=["commandParams","afterInit","push","formatInline","previousSibling","value","*Change to:* %0","_LIST","findIndex","getRanges","end","ELEMENT_","documentList","splitListItemBefore","schema","forceValue","next","accept","getFirstRange","refresh","listIndent","add","plugins","*Format:* insert into %0","paragraph","config","execute","get","getSelectedBlocks","detach","registerDescriptionCallback","model","isObject","*Format:* remove from %0","length","markBlockFormat","after","start","isFirstBlockOfListItem","*Indent:* %0","document","ELEMENT_NUMBERED_LIST","locale","fromRange","TrackChangesEditing","indentList","getAttribute","createPositionAt","*Outdent:* %0","setSelection","change","containsItem","splitListItemAfter","nodeAfter","numberedList","registerElementLabel","formatBlock","_descriptionFactory","commands","toUpperCase","has","bulletedList","type","from","nextSibling","slice","enableCommand","list.multiBlock","format","commandName","ELEMENT_LIST_ITEM","mergeListItemForward","selection","listType","outdentList","DocumentListEditing","before","parent","*Merge:* %0","listItemId","ELEMENT_BULLETED_LIST"];var eo,no;eo=to,no=116,function(t){for(;--t;)eo.push(eo.shift())}(++no);const ro=function(t,e){return to[t-=0]};class io extends t.Plugin{[ro("0x2f")](){const t=this.editor;if(!t[ro("0x44")][ro("0x19")](ro("0x28")))return;const e=t[ro("0x7")],n=t.plugins.get(ro("0x9")),r=t.plugins[ro("0x49")]("DocumentListUtils");function i(e){return()=>{const i=t[ro("0x17")].get(e);if(i[ro("0x33")]&&!t.config[ro("0x49")](ro("0x20")))return void t[ro("0x48")](ro("0x46"),{});let o=Array.from(t[ro("0x4d")].document[ro("0x25")][ro("0x4a")]());if(a(e)){o=r.expandListBlocksToCompleteList(o);const t=[];for(const e of o)r[ro("0x3")](e)&&t.push(e);o=t}t.model[ro("0xf")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:e,commandParams:[{forceValue:!i[ro("0x33")]}],formatGroupId:ro("0x26")},[],"documentList")}))}}function o(e){return()=>{const r=function(t){let e=Array[ro("0x1c")](t);const n=e[ro("0x36")]((t=>!t.hasAttribute("listItemId")));return n>-1&&(e=e[ro("0x1e")](0,n)),e}(t[ro("0x4d")][ro("0x5")][ro("0x25")][ro("0x4a")]()),i=r[r[ro("0x50")]-1],o=t[ro("0x4d")][ro("0x3c")][ro("0x4e")](i)?ro("0x1"):ro("0x38"),s=t[ro("0x4d")].createRange(t[ro("0x4d")][ro("0xc")](r[0],ro("0x29")),t[ro("0x4d")][ro("0xc")](i,o));t[ro("0x4d")].change((()=>{n[ro("0x0")](s,{commandName:e,commandParams:[],formatGroupId:ro("0x26")},function(t){const e=new Set;for(const n of t){let t=n[ro("0x1d")];for(;t&&t.getAttribute(ro("0x42"))>n[ro("0xb")]("listIndent");)e[ro("0x43")](t),t=t[ro("0x1d")]}return Array[ro("0x1c")](e)}(r))}))}}function x(e){return()=>{const r=t[ro("0x4d")][ro("0x5")][ro("0x25")][ro("0x4a")]()[ro("0x3e")]()[ro("0x33")],i=t[ro("0x4d")].createPositionAt(r,ro("0x29")),o=t[ro("0x4d")][ro("0xc")](r,0),s=t[ro("0x4d")].createRange(i,o);t[ro("0x4d")][ro("0xf")]((()=>{n.markBlockFormat(s,{commandName:e,commandParams:[],formatGroupId:ro("0x26")})}))}}function a(e){const n=t[ro("0x17")][ro("0x49")](ro("0x1a")).value,r=t.commands[ro("0x49")]("numberedList")[ro("0x33")];return ro("0x13")===e?n:r}n[ro("0x1f")](ro("0x13"),i(ro("0x13"))),n[ro("0x1f")](ro("0x1a"),i(ro("0x1a"))),n[ro("0x1f")](ro("0xa"),o(ro("0xa"))),n[ro("0x1f")](ro("0x27"),o(ro("0x27"))),n[ro("0x1f")]("splitListItemAfter",x(ro("0x11"))),n.enableCommand(ro("0x3b"),x(ro("0x3b"))),n._descriptionFactory[ro("0x14")]((function(e){const n=!t[ro("0x4d")][ro("0x3c")][ro("0x4e")](e),r=e[ro("0x32")],i=e[ro("0x1d")],o=e[ro("0xb")](ro("0x2c")),s=!r||r[ro("0xb")]("listItemId")!==o,x=!i||i[ro("0xb")]("listItemId")!==o;return n&&Boolean(o)&&s&&x}),(t=>Jr(e,"ELEMENT_LIST_ITEM",t))),n[ro("0x16")][ro("0x4c")]((function(n){if("formatBlock"!=n.type&&ro("0x31")!=n[ro("0x1b")])return;const{data:r}=n;if(!r)return;let i,o,s,x;switch(r[ro("0x22")]){case ro("0x1a"):s=r[ro("0x2e")][0][ro("0x3d")],x=a(r[ro("0x22")]),i=ro(s?"0x45":"0x4f"),!x&&t[ro("0x47")][ro("0x49")](ro("0x20"))||(i=ro("0x34")),o={type:ro("0x21"),content:Jr(e,i,Jr(e,ro("0x2d")))};break;case"numberedList":s=r[ro("0x2e")][0][ro("0x3d")],x=a(r[ro("0x22")]),i=ro(s?"0x45":"0x4f"),!x&&t[ro("0x47")][ro("0x49")](ro("0x20"))||(i="*Change to:* %0"),o={type:ro("0x21"),content:Jr(e,i,Jr(e,ro("0x6")))};break;case ro("0xa"):i=ro("0x4"),o={type:ro("0x21"),content:Jr(e,i,Jr(e,ro("0x23")))};break;case ro("0x27"):i=function(t){const e=t[ro("0x40")]();let n=e[ro("0x2")][ro("0x12")];for(;n&&e[ro("0x10")](n);){if(n[ro("0xb")]("listIndent")>0)return!1;n=n[ro("0x1d")]}return!0}(n)?Jr(e,ro("0x4f"),Jr(e,function(t){const e=t.getFirstRange()[ro("0x2")][ro("0x12")];return ro("0x39")+e.getAttribute(ro("0x26"))[ro("0x18")]()+ro("0x35")}(n))):Jr(e,ro("0xd"),Jr(e,ro("0x23"))),o={type:"format",content:i};break;case"mergeListItemBackward":case ro("0x24"):!1===r.multipleBlocks&&(i=ro("0x2b"),o={type:"deletion",content:Jr(e,i,Jr(e,ro("0x23")))})}return o})),n._suggestionFactory.registerCustomCallback(ro("0x15"),ro("0x3a"),ro("0x3f"),(function(e,n){const r=[];for(let n of e)n.start.nodeAfter===n[ro("0x38")][ro("0x2a")]&&(n=t.model.createRange(t[ro("0x4d")][ro("0xc")](n[ro("0x2")].nodeAfter,0))),r[ro("0x30")](n);t[ro("0x4d")][ro("0xf")]((e=>{const i=t[ro("0x4d")][ro("0x5")][ro("0x25")],o=Array[ro("0x1c")](i[ro("0x37")]()).map((t=>s.LiveRange[ro("0x8")](t)));e[ro("0xe")](r),t[ro("0x17")][ro("0x49")](n.commandName)[ro("0x41")](),n.commandParams[ro("0x30")]({forceDefaultExecution:!0}),t[ro("0x48")](n[ro("0x22")],...n[ro("0x2e")]),e[ro("0xe")](o);for(const t of o)t[ro("0x4b")]()}))}))}}const oo=["commandParams","bind","listStart","isFirstBlockOfListItem","listType","styles","_getSuggestionBlocksForListStyle","isListItemBlock","replace","listStyle","selection","handleListReversedCommand","getListTypeFromListStyleType","formatBlock","type","from","getAttribute","handleDescriptions","DocumentListPropertiesUtils","DocumentListUtils","handleListStyleCommand","config","filter","afterInit","listReversed","expandListBlocksToCompleteList","TrackChangesEditing","*Format:* set order to regular","commandName","editor","handleListStartCommand","model","get","push","*Format:* set start index to %0","numbered","getSelectedBlocks","reversed","_getTranslationKeyForListStyle","document","registerDescriptionCallback","plugins","*Format:* set order to reversed","_LIST_","*Change to:* %0","_descriptionFactory","markMultiRangeBlockFormat","list.properties","change","format","ELEMENT_","has","enableCommand","_getSuggestionBlocks","DocumentListPropertiesEditing"];var so,xo;so=oo,xo=229,function(t){for(;--t;)so.push(so.shift())}(++xo);const ao=function(t,e){return oo[t-=0]};class co extends t.Plugin{[ao("0xe")](){if(!this[ao("0x14")][ao("0x20")][ao("0x2a")](ao("0x2d")))return;const t=this[ao("0x14")][ao("0xc")][ao("0x17")](ao("0x26")),e=this[ao("0x14")][ao("0x20")][ao("0x17")]("TrackChangesEditing");t[ao("0x33")]&&e[ao("0x2b")]("listStyle",this[ao("0xb")][ao("0x2f")](this)),t[ao("0x1c")]&&e.enableCommand(ao("0xf"),this[ao("0x2")][ao("0x2f")](this)),t.startIndex&&e[ao("0x2b")](ao("0x30"),this[ao("0x15")][ao("0x2f")](this)),e[ao("0x24")][ao("0x1f")](this[ao("0x8")].bind(this))}[ao("0xb")](t,e={}){const n=this[ao("0x14")][ao("0x20")][ao("0x17")](ao("0x11")),r=this[ao("0x34")]();this[ao("0x14")][ao("0x16")][ao("0x27")]((()=>{n.markMultiRangeBlockFormat(r,{commandName:ao("0x0"),commandParams:[{type:e.type}],formatGroupId:"listStyle"})}))}[ao("0x2")](t,e={}){const n=this.editor[ao("0x20")][ao("0x17")](ao("0x11")),r=this[ao("0x14")].plugins.get(ao("0xa")),i=this[ao("0x2c")]((t=>r[ao("0x35")](t)&&ao("0x1a")===t[ao("0x7")](ao("0x32"))));null!==i&&this[ao("0x14")][ao("0x16")][ao("0x27")]((()=>{n[ao("0x25")](i,{commandName:ao("0xf"),commandParams:[{reversed:e[ao("0x1c")]}],formatGroupId:ao("0xf")})}))}[ao("0x15")](t,e={}){const n=this[ao("0x14")][ao("0x20")][ao("0x17")](ao("0x11")),r=this[ao("0x14")][ao("0x20")][ao("0x17")](ao("0xa")),i=this[ao("0x2c")]((t=>r[ao("0x35")](t)&&"numbered"===t[ao("0x7")](ao("0x32"))));null!==i&&this[ao("0x14")][ao("0x16")].change((()=>{n[ao("0x25")](i,{commandName:ao("0x30"),commandParams:[{startIndex:e.startIndex}],formatGroupId:"listStart"})}))}[ao("0x8")](t){if(ao("0x4")!=t.type&&"formatInline"!=t[ao("0x5")])return;const e=this[ao("0x14")].locale,{data:n}=t;if(!n)return;let r,i;switch(n[ao("0x13")]){case ao("0x0"):r=ao("0x23"),i={type:ao("0x28"),content:Jr(e,r,Jr(e,this[ao("0x1d")](n[ao("0x2e")][0][ao("0x5")])))};break;case ao("0xf"):r=n[ao("0x2e")][0][ao("0x1c")]?ao("0x21"):ao("0x12"),i={type:ao("0x28"),content:Jr(e,r)};break;case ao("0x30"):r=ao("0x19"),i={type:ao("0x28"),content:Jr(e,r,n[ao("0x2e")][0].startIndex)}}return i}[ao("0x34")](){const t=this[ao("0x14")].plugins[ao("0x17")](ao("0xa"));let e=Array[ao("0x6")](this[ao("0x14")][ao("0x16")][ao("0x1e")].selection[ao("0x1b")]());return e[ao("0x18")](...t.expandListBlocksToCompleteList(e)),e=[...new Set(e)],e}[ao("0x2c")](t){const e=this[ao("0x14")][ao("0x20")][ao("0x17")]("DocumentListUtils");let n=Array[ao("0x6")](this.editor[ao("0x16")][ao("0x1e")][ao("0x1")][ao("0x1b")]())[ao("0xd")](t);if(!n.length)return null;n=e[ao("0x10")](n);const r=[];for(const t of n)e[ao("0x31")](t)&&r[ao("0x18")](t);return r}[ao("0x1d")](t){return ao("0x29")+this.editor[ao("0x20")][ao("0x17")](ao("0x9"))[ao("0x3")](t).toUpperCase()+ao("0x22")+t.toUpperCase()[ao("0x36")](/-/g,"_")}}var lo=n(331);const uo=["change","addMarker:suggestion:insertion","ck-suggestion-marker-split","fromRange","model","unbindElementFromMarkerName","downcastDispatcher","enter","commands","createPositionAt","document","fire","editing","removeMarker:suggestion:insertion","hasClass","markInsertion","get","split","mapper","bind","getFirstPosition","getFirstRange","plugins","requires","showSuggestionHighlights","createRange","TrackChangesEditing","nextSibling","high","detach","afterExecute","markerName"];var go,fo;go=uo,fo=422,function(t){for(;--t;)go.push(go.shift())}(++fo);const mo=function(t,e){return uo[t-=0]};class ho extends t.Plugin{static get[mo("0x11")](){return[lo.Enter]}init(){const t=this.editor,e=t[mo("0x10")][mo("0xa")](mo("0x14")),n=t[mo("0x2")][mo("0xa")](mo("0x1"));e.enableCommand("enter",(()=>{t[mo("0x1e")][mo("0x1a")]((r=>{const i=t.model[mo("0x4")].selection,o=i[mo("0xe")](),x=s.LiveRange[mo("0x1d")](i[mo("0xf")]());if(n.enterBlock(r)){const n=t[mo("0x1e")][mo("0x3")](o.parent[mo("0x15")],0),i=r.createRange(o,n);e[mo("0x9")](i)}else r.setSelection(r[mo("0x13")](x.end));x[mo("0x17")](),n[mo("0x5")](mo("0x18"),{writer:r})}))})),t[mo("0x6")][mo("0x0")].on(mo("0x1b"),Xi(t,mo("0xb")),{priority:mo("0x16")}),t[mo("0x6")].downcastDispatcher.on(mo("0x7"),((t,e,n)=>{const r=n.mapper.markerNameToElements(e[mo("0x19")]);if(r)for(const t of r)t[mo("0x8")](mo("0x1c"))&&(n[mo("0xc")][mo("0x1f")](t,e.markerName),n.writer.remove(t))}),{priority:mo("0x16")}),t.data[mo("0x0")].on(mo("0x1b"),((e,n,r)=>{r.options[mo("0x12")]&&Xi(t,mo("0xb"),{showActiveMarker:!1})[mo("0xd")](this)(e,n,r)}),{priority:mo("0x16")})}}const bo=["bind","markers","replace","string","getIntersection","item","handleFindCommand","find","createPositionAt","findPrevious","suggestion:deletion","model","getRange","findByTextCallback","enableCommand","FindAndReplaceUtils","has","start","editor","createRange","findNext","plugins","get","end","_isInDeletionRange"];var po,Eo;po=bo,Eo=424,function(t){for(;--t;)po.push(po.shift())}(++Eo);const _o=function(t,e){return bo[t-=0]};class To extends t.Plugin{afterInit(){if(!this[_o("0x13")][_o("0x16")][_o("0x11")]("FindAndReplaceEditing"))return;const t=this.editor.plugins[_o("0x17")]("TrackChangesEditing");t[_o("0xf")](_o("0x8"),this[_o("0x7")][_o("0x1")](this)),t[_o("0xf")](_o("0x15")),t[_o("0xf")](_o("0xa")),t[_o("0xf")](_o("0x3")),t[_o("0xf")]("replaceAll")}[_o("0x7")](t,e,n={}){const r=this.editor.plugins[_o("0x17")](_o("0x10"));return t((t=>(_o("0x4")==typeof e?r[_o("0xe")](e,n):e)(t).filter((e=>!1===this[_o("0x0")](e,t[_o("0x6")])))),n)}_isInDeletionRange(t,e){const n=this.editor.model[_o("0x14")](this.editor[_o("0xc")][_o("0x9")](e,t[_o("0x12")]),this[_o("0x13")][_o("0xc")][_o("0x9")](e,t[_o("0x18")]));for(const t of this.editor[_o("0xc")][_o("0x2")].getMarkersGroup(_o("0xb")))if(null!==n[_o("0x5")](t[_o("0xd")]()))return!0;return!1}}const yo=["*Set font color:* %0","formatInline","plugins","label","fontColor.colors","has","_registerLegacyDescription","*Set font size:* %0","fontColor","FontFamilyEditing","commandName","TrackChangesEditing","format","trim","FontSizeEditing","find","FORMAT_FONT_BACKGROUND","fontSize.options","model","FORMAT_FONT_COLOR","FORMAT_FONT_SIZE","editor","fontBackgroundColor.colors","fontFamily","*Reset font family*","registerAttributeLabel","type","*Reset font color*","FontColorEditing","*Reset font background color*","commandParams","locale","toLowerCase","config","*Set font background color:* %0","registerDescriptionCallback","fontSize","FontBackgroundColorEditing","get","value","_descriptionFactory"];var Co,Ao;Co=yo,Ao=168,function(t){for(;--t;)Co.push(Co.shift())}(++Ao);const ko=function(t,e){return yo[t-=0]},Io=[{pluginName:ko("0xa"),commandName:ko("0x20")},{pluginName:ko("0x5"),commandName:"fontFamily"},{pluginName:ko("0x18"),commandName:ko("0x4")},{pluginName:ko("0x21"),commandName:"fontBackgroundColor"}];class Ro extends t.Plugin{afterInit(){const t=this[ko("0x11")][ko("0x1b")],e=this.editor[ko("0x27")][ko("0x22")](ko("0x7"));for(const{pluginName:t,commandName:n}of Io)this.editor[ko("0x27")][ko("0x1")](t)&&e._enableDefaultAttributesIntegration(n,[n]);t.t,e._descriptionFactory[ko("0x15")](ko("0x20"),Jr(t,ko("0x10"))),e[ko("0x24")].registerAttributeLabel("fontFamily",Jr(t,"FORMAT_FONT_FAMILY")),e[ko("0x24")].registerAttributeLabel(ko("0x4"),Jr(t,ko("0xf"))),e._descriptionFactory.registerAttributeLabel("fontBackgroundColor",Jr(t,ko("0xc"))),this._registerLegacyDescription()}[ko("0x2")](){const t=this[ko("0x11")],e=t.locale;t[ko("0x27")][ko("0x22")]("TrackChangesEditing")[ko("0x24")][ko("0x1f")]((t=>{const n=e.t;if(ko("0x26")!=t[ko("0x16")])return;const{data:r}=t;if(null!=r){if(ko("0x20")==r.commandName){const t=r[ko("0x1a")][0][ko("0x23")];if(t){const r=n(this[ko("0x11")][ko("0x27")].get("FontSize").normalizeSizeOptions(this[ko("0x11")][ko("0x1d")].get(ko("0xd")))[ko("0xb")]((e=>e[ko("0xe")]==t)).title)[ko("0x1c")]();return{type:ko("0x8"),content:Jr(e,ko("0x3"),r)}}return{type:ko("0x8"),content:Jr(e,"*Reset font size*")}}if(ko("0x13")==r[ko("0x6")]){const t=r[ko("0x1a")][0].value;return t?{type:ko("0x8"),content:Jr(e,"*Set font family:* %0",t)}:{type:ko("0x8"),content:Jr(e,ko("0x14"))}}if(ko("0x4")==r[ko("0x6")]){const t=r[ko("0x1a")][0][ko("0x23")];if(t){const r=(0,i.normalizeColorOptions)(this[ko("0x11")][ko("0x1d")][ko("0x22")](ko("0x0")))[ko("0xb")]((e=>e[ko("0xe")]==t));let o=t,s="";return r&&(o=r[ko("0x28")],s=n(o).toLowerCase()),{type:ko("0x8"),content:Jr(e,ko("0x25"),s)[ko("0x9")](),color:{value:t,title:s||o}}}return{type:ko("0x8"),content:Jr(e,ko("0x17"))}}if("fontBackgroundColor"==r.commandName){const t=r[ko("0x1a")][0][ko("0x23")];if(t){const r=(0,i.normalizeColorOptions)(this[ko("0x11")].config.get(ko("0x12"))).find((e=>e[ko("0xe")]==t));let o=t,s="";return r&&(o=r[ko("0x28")],s=n(o)[ko("0x1c")]()),{type:ko("0x8"),content:Jr(e,ko("0x1e"),s)[ko("0x9")](),color:{value:t,title:s||o}}}return{type:"format",content:Jr(e,ko("0x19"))}}}}))}}const So=["charAt","config","length","fontColor.colors","*Set format to:* %0","enableCommand","toLowerCase","join","format","normalizeSizeOptions","fontColor","toUpperCase","TrackChangesEditing","title","commands","pasteFormat","slice","find","fontSize.options","locale","fontBackgroundColor","split","commandParams","_enableDefaultAttributesIntegration","get","push","editor","boolean","_registerLegacyDescription","model","*Remove all formatting*","label","copyFormat","entries","plugins","commandName"];var No,vo;No=So,vo=107,function(t){for(;--t;)No.push(No.shift())}(++vo);const Lo=function(t,e){return So[t-=0]};class Mo extends t.Plugin{afterInit(){const t=this[Lo("0x1b")],e=t[Lo("0x23")][Lo("0x19")](Lo("0xd")),n=t[Lo("0xf")][Lo("0x19")](Lo("0x21")),r=t.commands[Lo("0x19")](Lo("0x10"));n&&r&&(e[Lo("0x18")](Lo("0x10")),e[Lo("0x6")](Lo("0x21")),this[Lo("0x1d")]())}_registerLegacyDescription(){const t=this.editor,e=t.locale;t.plugins.get(Lo("0xd"))._descriptionFactory.registerDescriptionCallback((n=>{if("formatBlock"!=n.type&&"formatInline"!=n.type)return;const{data:r}=n;if(r&&Lo("0x10")===r[Lo("0x0")]){const n=[],i=r[Lo("0x17")][0];for(const[e,r]of Object[Lo("0x22")](i))n[Lo("0x1a")](wo(t,e,r));return n[Lo("0x3")]?{type:Lo("0x9"),content:Jr(e,Lo("0x5"),n[Lo("0x8")](", "))}:{type:"format",content:Jr(e,Lo("0x1f"))}}}))}}function wo(t,e,n){const r=t[Lo("0x14")].t,o=e[Lo("0x16")](/(?=[A-Z])/)[Lo("0x8")](" "),s=r(o[Lo("0x1")](0)[Lo("0xc")]()+o[Lo("0x11")](1))[Lo("0x7")]();if(Lo("0x1c")==typeof n)return s;if(Lo("0xb")===e||Lo("0x15")===e){const e=(0,i.normalizeColorOptions)(t[Lo("0x2")].get(Lo("0x4")))[Lo("0x12")]((t=>t[Lo("0x1e")]==n));return s+" ("+(e?r(e[Lo("0x20")])[Lo("0x7")]():n)+")"}if("fontSize"===e&&isNaN(parseFloat(n))){const e=t.plugins[Lo("0x19")]("FontSize")[Lo("0xa")](t[Lo("0x2")].get(Lo("0x13")))[Lo("0x12")]((t=>t[Lo("0x1e")]==n));return s+" ("+(e?r(e[Lo("0xe")])[Lo("0x7")]():n)+")"}return s+" ("+n+")"}const Oo=["find","HeadingEditing","model","has","get","heading.options","heading","ELEMENT_HEADING","commandName","_descriptionFactory","title","type","view","config","name","paragraph","match","_registerLegacyDescription","editor","plugins","ELEMENT_HEADING_CUSTOM","_enableDefaultAttributesIntegration","_getHeadingLevel","registerElementLabel","_headingOptions","TrackChangesEditing","*Change to:* %0","registerDescriptionCallback","formatBlock","locale"];var Fo,Do;Fo=Oo,Do=442,function(t){for(;--t;)Fo.push(Fo.shift())}(++Do);const Bo=function(t,e){return Oo[t-=0]};class Po extends t.Plugin{afterInit(){const t=this[Bo("0x1a")];if(!t[Bo("0x1b")][Bo("0xb")](Bo("0x9")))return;this[Bo("0x2")]=t[Bo("0x15")][Bo("0xc")](Bo("0xd"));const e=t[Bo("0x7")],n=t.plugins[Bo("0xc")](Bo("0x3"));n[Bo("0x1d")]("heading");for(const t of this[Bo("0x2")])Bo("0x17")!=t.model&&n[Bo("0x11")][Bo("0x1")](t.model,(n=>{const r=this[Bo("0x0")](t[Bo("0xa")]);return null!==r?(s=n,x=r,Jr(e,Bo("0xf"),[s,x])):(i=n,o=t[Bo("0x12")],Jr(e,Bo("0x1c"),[i,o]));var i,o,s,x}));this[Bo("0x19")]()}_registerLegacyDescription(){const t=this[Bo("0x1a")],e=t[Bo("0x7")];t[Bo("0x1b")][Bo("0xc")]("TrackChangesEditing")._descriptionFactory[Bo("0x5")]((t=>{if(Bo("0x6")!=t[Bo("0x13")])return;const{data:n}=t;if(n&&Bo("0xe")==n[Bo("0x10")]){const t=n.commandParams[0].value,s=this[Bo("0x0")](t);if(null!==s)return{type:"format",content:Jr(e,Bo("0x4"),(1,o=s,Jr(e,Bo("0xf"),[1,o])))};const x=this._headingOptions[Bo("0x8")]((e=>e[Bo("0xa")]===t))[Bo("0x12")];return{type:"format",content:Jr(e,"*Change to:* %0",(r=1,i=x,Jr(e,Bo("0x1c"),[r,i])))}}var r,i,o}))}_getHeadingLevel(t){var e,n;const r=t[Bo("0x18")](/^heading(\d+)/);if(r)return r[1];const i=null===(e=this[Bo("0x2")])||void 0===e?void 0:e[Bo("0x8")]((e=>e[Bo("0xa")]==t));if(i&&i[Bo("0x14")]){const t=i[Bo("0x14")],e=(null!==(n=t[Bo("0x16")])&&void 0!==n?n:t).match(/^h(\d+)/);if(e)return e[1]}return null}}const Uo=["_descriptionFactory","color","formatInline","_registerLegacyDescription","FORMAT_HIGHLIGHT","editor","commandName","toLowerCase","highlight","registerAttributeLabel","model","commandParams","get","title","highlight.options","*Remove highlight*","HighlightEditing","afterInit","locale","config","plugins","type","TrackChangesEditing","format","_enableDefaultAttributesIntegration"];var jo,Go;jo=Uo,Go=344,function(t){for(;--t;)jo.push(jo.shift())}(++Go);const Ho=function(t,e){return Uo[t-=0]};class Vo extends t.Plugin{[Ho("0x17")](){const t=this[Ho("0xb")];if(!t[Ho("0x1")].has(Ho("0x16")))return;const e=t[Ho("0x1")][Ho("0x12")](Ho("0x3")),n=t[Ho("0x18")];e[Ho("0x5")](Ho("0xe"),[Ho("0xe")]),e._descriptionFactory[Ho("0xf")](Ho("0xe"),Jr(n,Ho("0xa"))),this[Ho("0x9")]()}[Ho("0x9")](){const t=this[Ho("0xb")],e=t[Ho("0x18")];t[Ho("0x1")][Ho("0x12")]("TrackChangesEditing")[Ho("0x6")].registerDescriptionCallback((n=>{if(Ho("0x8")!=n[Ho("0x2")])return;const{data:r}=n;if(r&&Ho("0xe")==r[Ho("0xc")]){const n=e.t,i=r[Ho("0x11")][0].value;if(i){const r=t[Ho("0x0")][Ho("0x12")](Ho("0x14")).find((t=>t[Ho("0x10")]==i)),o=n(r[Ho("0x13")])[Ho("0xd")]();return{type:Ho("0x4"),content:Jr(e,"*Set highlight:* %0",o),color:{value:r[Ho("0x7")],title:r[Ho("0x13")]}}}return{type:Ho("0x4"),content:Jr(e,Ho("0x15"),Jr(e,"FORMAT_HIGHLIGHT"))}}}))}}const zo=["showSuggestionHighlights","elementToStructure","TrackChangesEditing","registerElementLabel","div","get","plugins","high","dataDowncast","createEmptyElement","horizontalLine","ck-horizontal-line","editor","createPositionAt","enableCommand","addClass","afterInit","has","ELEMENT_HORIZONTAL_LINE","locale"];var Wo,Ko;Wo=zo,Ko=400,function(t){for(;--t;)Wo.push(Wo.shift())}(++Ko);const qo=function(t,e){return zo[t-=0]};class Xo extends t.Plugin{[qo("0x10")](){const t=this[qo("0xc")];if(!t[qo("0x6")][qo("0x11")]("HorizontalLineEditing"))return;t.plugins.get(qo("0x2"))[qo("0xe")](qo("0xa"));const e=t[qo("0x6")][qo("0x5")](qo("0x2")),n=t[qo("0x13")];e._descriptionFactory[qo("0x3")](qo("0xa"),(t=>Jr(n,qo("0x12"),t))),t.conversion.for(qo("0x8"))[qo("0x1")]({model:qo("0xa"),view:(t,{writer:e,options:n})=>{if(!n[qo("0x0")])return null;const r=e.createContainerElement(qo("0x4")),i=e[qo("0x9")]("hr");return e[qo("0xf")](qo("0xb"),r),e.insert(e[qo("0xd")](r,0),i),r},converterPriority:qo("0x7")})}}const $o=["start","HtmlEmbed","element","getFirstRange","editor","rawHtml","_descriptionFactory","htmlEmbed","_enableDefaultAttributesIntegration","registerElementLabel","*Change %0 content*","afterInit","commandName","format","formatBlock","value","ELEMENT_HTML_EMBED","has","plugins","registerDescriptionCallback","TrackChangesEditing","locale"];var Zo,Yo;Zo=$o,Yo=263,function(t){for(;--t;)Zo.push(Zo.shift())}(++Yo);const Jo=function(t,e){return $o[t-=0]};class Qo extends t.Plugin{[Jo("0xc")](){const t=this[Jo("0x5")];if(!t[Jo("0x13")][Jo("0x12")](Jo("0x2")))return;const e=t[Jo("0x13")].get(Jo("0x15")),n=t[Jo("0x0")];e[Jo("0x7")][Jo("0xa")](Jo("0x6"),(t=>Jr(n,"ELEMENT_HTML_EMBED",t))),e[Jo("0x9")](Jo("0x8"),[],[Jo("0x10")]),e[Jo("0x7")][Jo("0x14")]((t=>{if("attribute"!=t.type)return;const{data:e}=t;if(e&&Jo("0x10")==e.key&&t[Jo("0x4")]()[Jo("0x1")].nodeAfter.is(Jo("0x3"),Jo("0x6"))){const t=Jr(n,Jo("0x11"));return{type:Jo("0xe"),content:Jr(n,Jo("0xb"),t)}}})),this._registerLegacyDescription()}_registerLegacyDescription(){const t=this[Jo("0x5")],e=t.locale;t[Jo("0x13")].get("TrackChangesEditing")[Jo("0x7")][Jo("0x14")]((t=>{if(Jo("0xf")!=t.type)return;const{data:n}=t;if(n&&"htmlEmbed"==n[Jo("0xd")]){const t=Jr(e,"ELEMENT_HTML_EMBED");return{type:Jo("0xe"),content:Jr(e,Jo("0xb"),t)}}}))}}const ts=["ImageUploadEditing","isBlockImage","caption","plugins","TrackChangesEditing","ImageUtils","isOwn","_registerLegacyDescription","model","previous","attribute","commandName","imageBlock","getClosestSelectedImageElement","insertion","has","imageTypeInline","ImageCaptionUtils","isBefore","alt","_suggestionFactory","change","resizeImage","enableCommand","schema","deletion","getNearestSelectionRange","detach","*Reset image width*","locale","convertBlockImageToInline","getFirstRange","convertInlineImageToBlock","getCaptionFromImageModelElement","subType","imageStylePreApply","toPrevious","length","nodeBefore","ImageTextAlternativeEditing","document","resizedWidth","commandParams","ImageBlockEditing","end","FORMAT_IMAGE_SIZE","forward","findIndex","discard","ELEMENT_IMAGE","formatBlock","isEqual","*Set image width:* %0","nodeAfter","registerElementLabel","element","isCollapsed","format","afterInit","addObject","*Set image text alternative:* %0","width","Inline image to block image","markBlockFormat","_enableDefaultAttributesIntegration","selection","key","imageTextAlternative","filter","createRange","isIntersecting","newValue","editor","getSuggestionCallback","markInsertion","toNext","formatInline","registerDescriptionCallback","chain","accept","createRangeOn","getContainedElement","Block image to inline image","fromPosition","forceDefaultExecution","_descriptionFactory","imageCaption","*Remove image text alternative*","get","markDeletion","ELEMENT_CAPTION","imageInline","registerCustomCallback","join","start","type"];var es,ns;es=ts,ns=375,function(t){for(;--t;)es.push(es.shift())}(++ns);const rs=function(t,e){return ts[t-=0]};class is extends t.Plugin{[rs("0x43")](){const t=this[rs("0x51")];if(!t.plugins[rs("0x18")]("ImageEditing"))return;const e=t[rs("0xc")][rs("0x1")](rs("0xd")),n=t.plugins[rs("0x1")](rs("0xe")),r=t[rs("0x26")];e.enableCommand("insertImage"),e[rs("0x5e")][rs("0x3f")](rs("0x15"),(t=>Jr(r,rs("0x3a"),t))),e[rs("0x5e")][rs("0x3f")](rs("0x4"),(t=>Jr(r,"ELEMENT_INLINE_IMAGE",t))),e[rs("0x5e")][rs("0x3f")](rs("0xb"),(()=>Jr(r,rs("0x3")))),t[rs("0xc")][rs("0x18")](rs("0x9"))&&e[rs("0x20")]("uploadImage"),t.plugins.has(rs("0x34"))&&t[rs("0xc")][rs("0x18")]("ImageInlineEditing")&&(e[rs("0x20")]("imageTypeInline",((r,i)=>{const o=n.getClosestSelectedImageElement(t.model[rs("0x31")][rs("0x4a")]);t[rs("0x11")].change((()=>{e[rs("0x48")](o,{commandName:rs("0x19"),commandParams:[i]},[],rs("0x27"))}))})),e.enableCommand("imageTypeBlock",((r,i)=>{t[rs("0x11")][rs("0x1e")]((o=>{let x=n[rs("0x16")](t[rs("0x11")].document[rs("0x4a")]),a=o[rs("0x59")](x);const c=s.LivePosition[rs("0x5c")](a.start,rs("0x2d")),l=s.LivePosition[rs("0x5c")](a.end,rs("0x54"));e[rs("0x5d")]((()=>r(i))),x=n[rs("0x16")](t[rs("0x11")][rs("0x31")][rs("0x4a")]),a=o[rs("0x59")](x);const u=o.createRange(c,l);c[rs("0x24")](),l.detach(),e.markBlockFormat(x,{commandName:rs("0x19"),commandParams:[i]},[],"convertInlineImageToBlock"),u.start.isBefore(a[rs("0x7")])&&e.markInsertion(o[rs("0x4e")](u[rs("0x7")],a[rs("0x7")]),rs("0x29")),a[rs("0x35")].isBefore(u[rs("0x35")])&&e.markInsertion(o[rs("0x4e")](a[rs("0x35")],u.end),rs("0x29"))}))})),e[rs("0x1d")][rs("0x5")](rs("0x3b"),rs("0x29"),rs("0x6"),(()=>!1)),e._suggestionFactory.registerCustomCallback("formatBlock",rs("0x29"),rs("0x58"),(()=>!1)),e[rs("0x1d")].registerCustomCallback(rs("0x3b"),rs("0x29"),"discard",e[rs("0x1d")][rs("0x52")](rs("0x3b"),"",rs("0x58"))),e[rs("0x1d")].registerCustomCallback(rs("0x17"),rs("0x29"),rs("0x6"),(()=>!1)),e._suggestionFactory[rs("0x5")](rs("0x17"),rs("0x29"),rs("0x39"),(([n])=>{const r=e[rs("0x1d")].getSuggestionCallback(rs("0x17"),"",rs("0x39"));let i=n[rs("0x7")],o=n[rs("0x35")];const s=t[rs("0x11")][rs("0x21")][rs("0x23")](i,"backward"),x=t[rs("0x11")][rs("0x21")].getNearestSelectionRange(o,rs("0x37"));s[rs("0x41")]&&(i=s[rs("0x7")]),x[rs("0x41")]&&(o=x[rs("0x35")]),r([t[rs("0x11")][rs("0x4e")](i,o)])})),e._suggestionFactory[rs("0x5")](rs("0x3b"),"convertInlineImageToBlock",rs("0x57"),x),e[rs("0x1d")][rs("0x5")]("insertion",rs("0x29"),rs("0x57"),x)),t[rs("0xc")][rs("0x18")]("ImageCaptionEditing")&&(e[rs("0x20")]("toggleImageCaption",((r,i)=>{const o=t[rs("0xc")].get(rs("0x1a"));let s=n[rs("0x16")](t[rs("0x11")].document.selection),x=o[rs("0x2a")](s);t[rs("0x11")][rs("0x1e")]((()=>{if(x)return void e[rs("0x2")](t[rs("0x11")].createRangeOn(x));const a=n[rs("0xa")](s);r(i),s=n[rs("0x16")](t[rs("0x11")].document[rs("0x4a")]),x=o[rs("0x2a")](s),e[rs("0x53")](t[rs("0x11")][rs("0x59")](x),a?null:rs("0x5f"))}))})),e[rs("0x1d")][rs("0x5")](rs("0x17"),rs("0x5f"),"chain",x));const i=[{type:rs("0x3b"),subType:rs("0x2c")},{type:rs("0x17"),subType:rs("0x5f")},{type:rs("0x3b"),subType:rs("0x29")},{type:"insertion",subType:rs("0x29")}];function o(t,r){const o=i[rs("0x38")]((({type:e,subType:n})=>t[rs("0x8")]==e&&t[rs("0x2b")]==n)),s=i[rs("0x38")]((({type:t,subType:e})=>r[rs("0x8")]==t&&r[rs("0x2b")]==e));if(o<0||s<0)return!1;const x=t[rs("0x28")](),a=r[rs("0x28")]();if((0==o||1==o)&&2==s&&x[rs("0x4f")](a))return!0;if(2==o&&3==s){const t=e._findSuggestions(x,rs("0x17"))[rs("0x4d")]((({suggestion:t,meta:e})=>e[rs("0xf")]&&rs("0x29")==t[rs("0x2b")]));if(t[rs("0x2e")]>1&&a[rs("0x35")][rs("0x3c")](x[rs("0x7")]))return!0;if(1==t.length&&(x[rs("0x7")][rs("0x3c")](a[rs("0x35")])||x[rs("0x35")][rs("0x3c")](a.start)))return!0}if(3==o&&3==s&&x[rs("0x7")][rs("0x1b")](a[rs("0x7")])){const t=x[rs("0x35")][rs("0x3e")],e=a[rs("0x7")][rs("0x2f")];return n[rs("0xa")](t)&&t===e}return!1}function x(t,e){return o(t,e)?[t,e]:o(e,t)?[e,t]:null}t[rs("0xc")][rs("0x18")]("ImageResize")&&(e[rs("0x49")](rs("0x1f"),[],[rs("0x32")]),e[rs("0x5e")].registerAttributeLabel(rs("0x32"),Jr(r,rs("0x36")))),t.plugins[rs("0x18")](rs("0x30"))&&e[rs("0x49")](rs("0x4c"),[],[rs("0x1c")]),e[rs("0x5e")][rs("0x56")]((t=>{if(i.find((({type:e,subType:n})=>t[rs("0x8")]==e&&t[rs("0x2b")]==n)))return t[rs("0x12")]?{}:void 0})),e._descriptionFactory[rs("0x56")]((t=>{if(rs("0x17")==t.type||rs("0x22")==t[rs("0x8")]){const e=t[rs("0x5a")]();if(e&&e.is(rs("0x40"),rs("0xb")))return{type:rs("0x17")==t[rs("0x8")]?rs("0x44"):"removeObject",element:e,quantity:1}}})),e[rs("0x5e")][rs("0x56")]((t=>rs("0x3b")==t[rs("0x8")]&&rs("0x29")==t[rs("0x2b")]?{type:rs("0x42"),content:rs("0x47")}:rs("0x3b")==t[rs("0x8")]&&rs("0x27")==t[rs("0x2b")]?{type:rs("0x42"),content:rs("0x5b")}:void 0)),e[rs("0x5e")][rs("0x56")]((t=>{if(rs("0x13")!=t[rs("0x8")])return;const{data:e}=t;if(!e||"alt"!=e[rs("0x4b")])return;const n=e[rs("0x50")];return n?{type:rs("0x42"),content:Jr(r,rs("0x45"),'"'+n+'"')}:{type:rs("0x42"),content:Jr(r,rs("0x0"))}})),this[rs("0x10")]()}_registerLegacyDescription(){const t=this[rs("0x51")],e=t.locale;t[rs("0xc")][rs("0x1")](rs("0xd"))[rs("0x5e")][rs("0x56")]((t=>{if(rs("0x3b")!=t.type&&rs("0x55")!=t.type)return;const{data:n}=t;if(n){if(rs("0x4c")==n[rs("0x14")]){const t=n[rs("0x33")][0].newValue;return t?{type:rs("0x42"),content:Jr(e,rs("0x45"),'"'+t+'"')}:{type:rs("0x42"),content:Jr(e,"*Remove image text alternative*")}}if(rs("0x1f")==n.commandName){const t=n.commandParams[0][rs("0x46")];return t?{type:rs("0x42"),content:Jr(e,rs("0x3d"),t)}:{type:rs("0x42"),content:Jr(e,rs("0x25"))}}}}))}}const os=["formatBlock","editor","getSuggestionCallback","get","attribute","replaceImageSource","newValue","locale","*Format:* replace image URL","accept","_suggestionFactory","oldValue","commandName","type","registerCustomCallback","_enableDefaultAttributesIntegration","TrackChangesEditing","format","*Replace image URL*","formatInline","ImageEditing","discard","registerDescriptionCallback","_handleLegacySuggestions","_descriptionFactory","plugins","has","_registerLegacyDescription","src","afterInit"];var ss,xs;ss=os,xs=263,function(t){for(;--t;)ss.push(ss.shift())}(++xs);const as=function(t,e){return os[t-=0]};class cs extends t.Plugin{[as("0x6")](){if(!this.editor[as("0x2")][as("0x3")](as("0x1b")))return;const t=this.editor[as("0xe")],e=this.editor.plugins[as("0xa")](as("0x17"));e[as("0x16")]("replaceImageSource",[],[as("0x5")]),e[as("0x1")][as("0x1d")]((e=>{if(as("0xb")!=e[as("0x14")])return;const{data:n}=e;return n&&as("0x5")==n.key?n[as("0xd")]&&n[as("0x12")]?{type:as("0x18"),content:Jr(t,as("0x19"))}:{type:as("0x18"),content:""}:void 0})),this[as("0x0")]()}_handleLegacySuggestions(){const t=this[as("0x8")][as("0x2")][as("0xa")](as("0x17"));t[as("0x11")].registerCustomCallback(as("0x7"),as("0xc"),as("0x10"),t[as("0x11")][as("0x9")](as("0x7"),null,as("0x1c"))),t[as("0x11")][as("0x15")](as("0x7"),"replaceImageSource",as("0x1c"),t[as("0x11")].getSuggestionCallback("formatBlock",null,as("0x10"))),this[as("0x4")]()}[as("0x4")](){const t=this[as("0x8")],e=t[as("0xe")];t.plugins.get(as("0x17"))._descriptionFactory[as("0x1d")]((t=>{if("formatBlock"!=t[as("0x14")]&&as("0x1a")!=t.type)return;const{data:n}=t;return n&&as("0xc")==n[as("0x13")]?{type:"format",content:Jr(e,as("0xf"))}:void 0}))}}const ls=["_findSuggestions","getSuggestions","value","commands","TrackChangesEditing","getSuggestionCallback","_registerLegacyDescription","nodeAfter","plugins","imageTypeBlock","imageStylePreApply","setImageNaturalSizeAttributes","getContainedElement","toLowerCase","chain","next","isBlockImage","normalizedStyles","commandReversedParams","join","locale","insertion","length","end","registerCustomCallback","format","imageStyle","model","get","afterInit","author","selection","nodeBefore","FORMAT_SIDE_IMAGE","start","accept","refresh","discard","findIndex","isEqual","formatBlock","title","editor","formatInline","newRange","getFirstRange","getClosestSelectedImageElement","Users","name","head","isInContent","registerPostFixer","enableCommand","type","isOwn","convertInlineImageToBlock","forEach","ImageUtils","from","imageStylePostApply","isBefore","commandName","createRangeOn","ImageStyleEditing","filter","markBlockFormat","markInlineFormat","*Format:* %0","_suggestionFactory","subType","suggestion","getSuggestion","document","discardSuggestion"];var us,ds;us=ls,ds=256,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};class fs extends t.Plugin{[gs("0x45")](){const t=this[gs("0x8")];if(!t[gs("0x30")].has("ImageStyleEditing"))return;const n=t.plugins[gs("0x44")](gs("0x2c")),r=t.plugins[gs("0x44")](gs("0x17")),i={};n[gs("0x12")](gs("0x42"),((i,o)=>{const s=t[gs("0x30")][gs("0x44")](gs("0xd")).me,x=t[gs("0x2b")][gs("0x44")](gs("0x42"));let a=r[gs("0xc")](t[gs("0x43")][gs("0x26")][gs("0x47")]),c=t[gs("0x43")].createRangeOn(a),l=x.value;if(l==o[gs("0x2a")])return;const u={commandName:"imageStyle",commandParams:[o],formatGroupId:(0,e.uid)()};t.model.change((()=>{if(n[gs("0x29")]()[gs("0x1e")]((t=>t.isInContent&&s==t[gs("0x46")]&&("formatBlock"==t[gs("0x13")]||gs("0x9")==t[gs("0x13")])&&(gs("0x32")==t[gs("0x23")]||gs("0x19")==t[gs("0x23")])&&t.getFirstRange()[gs("0x5")](c)))[gs("0x16")]((t=>n.discardSuggestion(t[gs("0xf")]))),a=r[gs("0xc")](t.model[gs("0x26")][gs("0x47")]),c=t[gs("0x43")][gs("0x1c")](a),x[gs("0x2")](),t[gs("0x2b")][gs("0x44")]("imageTypeInline")[gs("0x2")](),t[gs("0x2b")][gs("0x44")](gs("0x31")).refresh(),l=x[gs("0x2a")],l!=o.value)return r.isInlineImage(a)&&x.shouldConvertImageType(o[gs("0x2a")],a)?(i({...o,setImageSizes:!1}),a=r[gs("0xc")](t[gs("0x43")].document[gs("0x47")]),void n[gs("0x1f")](a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],gs("0x32"))):void(r[gs("0x38")](a)?n.markBlockFormat(a,u,[],gs("0x19")):n[gs("0x20")](c,u,"imageStylePostApply"))}))}));for(const e of t[gs("0x30")][gs("0x44")](gs("0x1d"))[gs("0x39")])i[e[gs("0xe")]]=e[gs("0x7")][gs("0x35")]();n[gs("0x22")][gs("0x40")](gs("0x6"),gs("0x32"),gs("0x3b"),(()=>!1)),n[gs("0x22")][gs("0x40")](gs("0x6"),gs("0x19"),gs("0x3b"),(()=>!1)),n[gs("0x22")][gs("0x40")](gs("0x9"),"imageStylePostApply",gs("0x3b"),(()=>!1)),n[gs("0x22")].registerCustomCallback(gs("0x6"),gs("0x32"),gs("0x1"),(([t])=>{r[gs("0x33")](t[gs("0x34")]())})),n._suggestionFactory[gs("0x40")](gs("0x6"),"imageStylePreApply",gs("0x3"),((t,e)=>{n[gs("0x22")][gs("0x2d")](gs("0x6"),"",gs("0x1"))(t,{commandName:e[gs("0x1b")],commandParams:e[gs("0x3a")]})})),n[gs("0x22")][gs("0x40")](gs("0x6"),"imageStylePreApply",gs("0x36"),(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const o=[{type:"formatBlock",subType:gs("0x32")},{type:gs("0x3d"),subType:"imageCaption"},{type:gs("0x6"),subType:gs("0x15")},{type:gs("0x3d"),subType:gs("0x15")}];function s(t,e){const i=o[gs("0x4")]((({type:e,subType:n})=>t[gs("0x13")]==e&&t[gs("0x23")]==n)),s=o[gs("0x4")]((({type:t,subType:n})=>e[gs("0x13")]==t&&e[gs("0x23")]==n));if(i<0||s<0)return!1;const x=t[gs("0xb")](),a=e[gs("0xb")]();if((0==i||1==i)&&2==s&&x.isIntersecting(a))return!0;if(2==i&&3==s){const t=n[gs("0x28")](x,gs("0x3d"))[gs("0x1e")]((({suggestion:t,meta:e})=>e[gs("0x14")]&&gs("0x15")==t[gs("0x23")]));if(t[gs("0x3e")]>1&&a.end[gs("0x5")](x.start))return!0;if(1==t[gs("0x3e")]&&(x[gs("0x0")].isEqual(a[gs("0x3f")])||x.end[gs("0x5")](a[gs("0x0")])))return!0}if(3==i&&3==s&&x[gs("0x0")][gs("0x1a")](a[gs("0x0")])){const t=x[gs("0x3f")][gs("0x2f")],e=a[gs("0x0")][gs("0x48")];return r[gs("0x38")](t)&&t===e}return!1}t.model[gs("0x26")][gs("0x11")]((()=>{let e=!1;const i=Array[gs("0x18")](t[gs("0x43")][gs("0x26")].differ.getChangedMarkers());for(const{name:t,data:o}of i){const{group:i,type:s,subType:x,id:a}=n._splitMarkerName(t);if(gs("0x24")==i&&n.hasSuggestion(a)){if(gs("0x6")==s&&(gs("0x32")==x||gs("0x19")==x)){const t=n[gs("0x25")](a);if(o[gs("0xa")]){const i=t.getFirstRange()[gs("0x34")]();if(r[gs("0x38")](i))continue;n[gs("0x27")](t),e=!0}}if("insertion"==s&&"imageCaption"==x&&!o[gs("0xa")]){const t=n[gs("0x25")](a);t[gs("0x37")]&&t[gs("0x37")][gs("0x10")]&&(n[gs("0x27")](t[gs("0x37")]),e=!0)}}}return e})),this[gs("0x2e")](i)}[gs("0x2e")](t){const e=this[gs("0x8")],n=e[gs("0x3c")];e.plugins.get(gs("0x2c"))._descriptionFactory.registerDescriptionCallback((e=>{if(gs("0x6")!=e[gs("0x13")]&&"formatInline"!=e[gs("0x13")])return;const{data:r}=e;if(!r||gs("0x42")!=r[gs("0x1b")])return;const i=r.commandParams[0][gs("0x2a")];return o="side"===i?Jr(n,gs("0x49")):t[i]||i,{type:gs("0x41"),content:Jr(n,gs("0x21"),o)};var o}))}}const ms=["high","importWord","trackChanges","_trackChangesValueDuringImport","_setSuggestionData","TrackChangesEditing","_handleImportedData","dataInsert","plugins","afterInit","commands","_trackChangesExecuted","get","listenTo","bind","collaboration_features","editor","lowest","value","execute"];var hs,bs;hs=ms,bs=434,function(t){for(;--t;)hs.push(hs.shift())}(++bs);const ps=function(t,e){return ms[t-=0]};class Es extends t.Plugin{constructor(t){super(t),this[ps("0x9")]=!1,this[ps("0x11")]=!1}[ps("0xf")](){const t=this[ps("0x2")],e=t[ps("0x10")].get(ps("0x7")),n=t[ps("0x10")][ps("0x12")](ps("0x8"));e&&(e.on(ps("0x5"),((t,[,e])=>{this[ps("0x9")]=n.value,e[ps("0x1")].track_changes=!this[ps("0x9")]}),{priority:ps("0x6")}),this.listenTo(e,"dataInsert",this[ps("0xc")][ps("0x0")](this)),this[ps("0x13")](e,ps("0xd"),(()=>{this._trackChangesExecuted&&(n[ps("0x5")](),this[ps("0x11")]=!1)}),{priority:ps("0x3")}),t[ps("0xe")][ps("0x12")](ps("0xb")).enableCommand(ps("0x7")))}_handleImportedData(t,e){const{suggestions:n}=e,r=this[ps("0x2")][ps("0x10")].get(ps("0x8")),i=r[ps("0x4")];this._trackChangesValueDuringImport!==i&&(r.execute(),this[ps("0x11")]=!0),n&&n.forEach((({id:t,type:e,author:n,created_at:r})=>{const i={id:t,type:e,authorId:this.editor[ps("0xe")][ps("0x12")]("Users").me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:r?new Date(r):new Date,source:ps("0x7")}}};this[ps("0x2")][ps("0xe")][ps("0x12")]("TrackChangesEditing")[ps("0xa")](i)}))}}const _s=["plugins","commandName","_descriptionFactory","indent","FORMAT_INDENT","outdentBlock","_registerBlockAttribute","IndentEditing","registerAttributeLabel","enableCommand","IndentBlock","afterInit","type","getItems","outdent","get","indentBlock","editor","*Outdent:* %0","format","blockIndent","*Indent:* %0","locale","has","TrackChangesEditing","_registerLegacyDescription"];var Ts,ys;Ts=_s,ys=433,function(t){for(;--t;)Ts.push(Ts.shift())}(++ys);const Cs=function(t,e){return _s[t-=0]};class As extends t.Plugin{[Cs("0x14")](){const t=this[Cs("0x0")],e=t[Cs("0x9")][Cs("0x18")](Cs("0x7"));if(t[Cs("0x9")][Cs("0x6")](Cs("0x10"))&&(e[Cs("0x12")](Cs("0xc")),e[Cs("0x12")](Cs("0x17"))),t.plugins[Cs("0x6")](Cs("0x13")))for(const t of[Cs("0x19"),Cs("0xe")])e._enableDefaultAttributesIntegration(t);const n=t[Cs("0x5")];e[Cs("0xf")](Cs("0x3")),e._descriptionFactory[Cs("0x11")](Cs("0x3"),Jr(n,Cs("0xd"))),this[Cs("0x8")]()}[Cs("0x8")](){const t=this[Cs("0x0")],e=t[Cs("0x5")],n=t[Cs("0x9")][Cs("0x18")]("TrackChangesEditing");n[Cs("0xb")].registerDescriptionCallback((t=>{if("formatBlock"!=t[Cs("0x15")])return;const{data:r}=t;if(!r)return;if("indentBlock"!=r[Cs("0xa")]&&Cs("0xe")!=r.commandName)return;const i=t[Cs("0x16")]()[0],o=n[Cs("0xb")].getItemLabel(i);return Cs("0x19")==r[Cs("0xa")]?{type:"format",content:Jr(e,Cs("0x4"),o)}:Cs("0xe")==r[Cs("0xa")]?{type:Cs("0x2"),content:Jr(e,Cs("0x1"),o)}:void 0}))}}var ks,Is,Rs=["init","requires","input","get","enableCommand","TrackChangesEditing","plugins"];ks=Rs,Is=310,function(t){for(;--t;)ks.push(ks.shift())}(++Is);var Ss=function(t,e){return Rs[t-=0]};class Ns extends t.Plugin{static get[Ss("0x6")](){return[Hi.Input]}[Ss("0x5")](){this.editor[Ss("0x4")][Ss("0x1")](Ss("0x3"))[Ss("0x2")](Ss("0x0"))}}const vs=["toLowerCase","_enableDefaultAttributesIntegration","afterInit","format","_descriptionFactory","commands","has","link (","TrackChangesEditing","registerDescriptionCallback","unlink","linkHref","registerAttributeLabel","type","_registerLegacyDescription","commandName","map","plugins","link","editor","*Remove link*","attribute","locale","get","manualDecorators","commandParams","key","*Set link:* %0"];var Ls,Ms;Ls=vs,Ms=384,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ms);const ws=function(t,e){return vs[t-=0]};class Os extends t.Plugin{[ws("0xa")](){const t=this[ws("0x1b")];if(!t[ws("0x19")][ws("0xe")]("LinkEditing"))return;const e=t[ws("0x19")][ws("0x3")](ws("0x10")),n=t[ws("0xd")].get(ws("0x1a"));e[ws("0x9")]("link",[ws("0x13"),...n[ws("0x4")][ws("0x18")]((t=>t.id))]),e[ws("0x9")](ws("0x12"));for(const t of n[ws("0x4")])e[ws("0xc")][ws("0x14")](t.id,ws("0xf")+t.label[ws("0x8")]()+")");e._descriptionFactory[ws("0x11")]((e=>{if(ws("0x1")!=e[ws("0x15")])return;const{data:n}=e;if(!n||ws("0x13")!=n[ws("0x6")])return;const r=n.newValue,i=t[ws("0x2")];return{type:"format",content:null==r?Jr(i,ws("0x0")):Jr(i,ws("0x7"),'"'+r+'"')}})),this[ws("0x16")]()}_registerLegacyDescription(){const t=this[ws("0x1b")],e=t[ws("0x2")];t[ws("0x19")][ws("0x3")](ws("0x10"))[ws("0xc")][ws("0x11")]((t=>{if("formatInline"!=t[ws("0x15")])return;const{data:n}=t;if(n){if(ws("0x1a")==n[ws("0x17")]){const t=n[ws("0x5")][0];return{type:ws("0xb"),content:Jr(e,"*Set link:* %0",'"'+t+'"')}}return ws("0x12")==n.commandName?{type:ws("0xb"),content:Jr(e,ws("0x0"))}:void 0}}))}}const Fs=["outdentList","blockName","replace","listType","*Indent:* %0","add","findIndex","type","afterInit","model","commandParams","plugins","change","format","has","nextSibling","*Uncheck item*","checkChild","ELEMENT_LIST_ITEM","todo","ELEMENT_BULLETED_LIST","getAttribute","element","getSelectedBlocks","listItem","length","isObject","ELEMENT_NUMBERED_LIST","numbered","schema","slice","registerElementLabel","listIndent","bulletedList","enableCommand","createRange","commandName","createPositionAt","execute","name","forceValue","todoListChecked","from","document","paragraph","end","formatInline","previousSibling","todoList","get","bulleted","_selectedElements","formatBlock","ELEMENT_TODO_LIST","_descriptionFactory","*Outdent:* %0","indentList","selection","numberedList","commands","before","locale","checkTodoList","value","TrackChangesEditing","markBlockFormat"];var Ds,Bs;Ds=Fs,Bs=315,function(t){for(;--t;)Ds.push(Ds.shift())}(++Bs);const Ps=function(t,e){return Fs[t-=0]};class Us extends t.Plugin{[Ps("0x17")](){const t=this.editor,e=t[Ps("0xa")];if(!t[Ps("0x1a")][Ps("0x1d")]("ListEditing"))return;const n=t.plugins[Ps("0x40")](Ps("0xd")),r=t[Ps("0x1a")][Ps("0x1d")]("TodoListEditing");function i(e){return()=>{const r=t[Ps("0x18")][Ps("0x3a")][Ps("0x6")],i=t[Ps("0x8")][Ps("0x40")](e);if(i[Ps("0xc")])return void t[Ps("0x35")](Ps("0x3b"),{});const o=e[Ps("0x2d")](0,-4),s=function(t,e,n){let r=Array[Ps("0x39")](t).filter((t=>{return e=t,(r=n)[Ps("0x20")](e.parent,Ps("0x27"))&&!r[Ps("0x29")](e);var e,r}));r=r.filter((t=>!t.is(Ps("0x25"),Ps("0x27"))||t[Ps("0x24")](Ps("0x12"))!=e));const i=new Set;for(const t of r)t.is("element",Ps("0x27"))?i[Ps("0x14")](js(t)):i[Ps("0x14")](t);return Array[Ps("0x39")](i)}(r[Ps("0x26")](),o,t[Ps("0x18")][Ps("0x2c")]);t[Ps("0x18")].change((()=>{for(const t of s)n[Ps("0xe")](t,{commandName:e,commandParams:[{forceValue:!i[Ps("0xc")]}],formatGroupId:Ps("0x10")},Gs(t))}))}}function o(e){return()=>{const r=function(t){let e=Array.from(t);const n=e[Ps("0x15")]((t=>Ps("0x27")!=t[Ps("0x36")]));return n>-1&&(e=e.slice(0,n)),e}(t[Ps("0x18")][Ps("0x3a")][Ps("0x6")].getSelectedBlocks()),i=t[Ps("0x18")][Ps("0x32")](t.model[Ps("0x34")](r[0],Ps("0x9")),t.model.createPositionAt(r[r[Ps("0x28")]-1],Ps("0x3c")));t[Ps("0x18")][Ps("0x1b")]((()=>{n.markBlockFormat(i,{commandName:e,commandParams:[],formatGroupId:Ps("0x2f")},function(t){const e=new Set;for(const n of t){let t=n[Ps("0x1e")];for(;t&&t[Ps("0x24")](Ps("0x2f"))>n[Ps("0x24")](Ps("0x2f"));)e.add(t),t=t.nextSibling}return Array[Ps("0x39")](e)}(r))}))}}n[Ps("0x31")](Ps("0x7"),i(Ps("0x7"))),n[Ps("0x31")](Ps("0x30"),i(Ps("0x30"))),r&&n[Ps("0x31")](Ps("0x3f"),i(Ps("0x3f"))),n[Ps("0x31")](Ps("0x5"),o(Ps("0x5"))),n.enableCommand(Ps("0xf"),o("outdentList")),r&&n[Ps("0x31")](Ps("0xb"),(()=>{const e=t[Ps("0x8")][Ps("0x40")](Ps("0xb")),r=Array[Ps("0x39")](e[Ps("0x0")]);r.filter((t=>t[Ps("0x24")](Ps("0x38"))!=e[Ps("0xc")])),t[Ps("0x18")].change((()=>{for(const t of r)n[Ps("0xe")](t,{commandName:Ps("0xb"),commandParams:[{forceValue:!e[Ps("0xc")]}]})}))})),n[Ps("0x3")][Ps("0x2e")](Ps("0x27"),(t=>Jr(e,Ps("0x21"),t))),n[Ps("0x3")].registerDescriptionCallback((t=>{if(Ps("0x1")!=t[Ps("0x16")]&&Ps("0x3d")!=t[Ps("0x16")])return;const{data:n}=t;if(n){if(Ps("0x7")==n[Ps("0x33")]||"bulletedList"==n[Ps("0x33")]||Ps("0x3f")==n[Ps("0x33")])switch(n[Ps("0x33")][Ps("0x11")]("List","")){case Ps("0x41"):return r(Jr(e,Ps("0x23")));case Ps("0x2b"):return r(Jr(e,Ps("0x2a")));case Ps("0x22"):return r(Jr(e,Ps("0x2")))}if("indentList"==n[Ps("0x33")])return{type:Ps("0x1c"),content:Jr(e,Ps("0x13"),Jr(e,Ps("0x21")))};if("outdentList"==n.commandName)return{type:Ps("0x1c"),content:Jr(e,Ps("0x4"),Jr(e,Ps("0x21")))};if("checkTodoList"==n[Ps("0x33")])return n[Ps("0x19")][0][Ps("0x37")]?{type:"format",content:Jr(e,"*Check item*")}:{type:Ps("0x1c"),content:Jr(e,Ps("0x1f"))}}function r(t){return{type:Ps("0x1c"),content:Jr(e,"*Change to:* %0",t)}}}))}}function js(t){const e=t[Ps("0x24")](Ps("0x2f"));if(0==e)return t;let n=t;for(;t.previousSibling&&t[Ps("0x3e")].is("element","listItem");){const r=t[Ps("0x3e")].getAttribute(Ps("0x2f"));if(r==e)n=t[Ps("0x3e")];else if(r<e)break;t=t[Ps("0x3e")]}return n}function Gs(t){const e=[];if(t.is(Ps("0x25"),Ps("0x27"))&&t.getAttribute(Ps("0x2f"))>0){let n=t.nextSibling;for(;n&&Ps("0x27")==n[Ps("0x36")]&&n.getAttribute("listIndent")==t[Ps("0x24")]("listIndent");)e.push(n),n=n.nextSibling}return e}const Hs=["ListUtils","document","locale","from","forward","commandName","registerDescriptionCallback","getListTypeFromListStyleType","commandParams","_getSuggestionBlocks","backward","ListPropertiesEditing","_getSuggestionBlocksForListStyle","filter","ELEMENT_","getLastPosition","flat","*Change to:* %0","formatBlock","listType","listStart","styles","_LIST_","formatInline","getSelectedBlocks","reversed","bind","getSiblingNodes","listItem","TrackChangesEditing","list.properties","_getTranslationKeyForListStyle","markMultiRangeBlockFormat","*Format:* set order to reversed","getAttribute","listStyle","_descriptionFactory","createRange","map","type","numbered","handleDescriptions","afterInit","element","createPositionAt","get","selection","listReversed","parent","length","model","handleListStartCommand","startIndex","change","*Format:* set start index to %0","config","getFirstPosition","editor","handleListReversedCommand","plugins","toUpperCase","push","*Format:* set order to regular","format","handleListStyleCommand","enableCommand"];var Vs,zs;Vs=Hs,zs=364,function(t){for(;--t;)Vs.push(Vs.shift())}(++zs);const Ws=function(t,e){return Hs[t-=0]};class Ks extends t.Plugin{[Ws("0x8")](){if(!this.editor[Ws("0x19")].has(Ws("0x2b")))return;const t=this[Ws("0x17")][Ws("0x15")][Ws("0xb")](Ws("0x3e")),e=this.editor[Ws("0x19")][Ws("0xb")](Ws("0x3d"));t[Ws("0x35")]&&e.enableCommand(Ws("0x1"),this[Ws("0x1e")][Ws("0x3a")](this)),t.reversed&&e[Ws("0x1f")](Ws("0xd"),this[Ws("0x18")].bind(this)),t[Ws("0x12")]&&e.enableCommand(Ws("0x34"),this[Ws("0x11")][Ws("0x3a")](this)),e[Ws("0x2")][Ws("0x26")](this.handleDescriptions[Ws("0x3a")](this))}[Ws("0x1e")](t,e={}){const n=this[Ws("0x17")][Ws("0x19")][Ws("0xb")](Ws("0x3d")),r=this._getSuggestionBlocksForListStyle();this[Ws("0x17")][Ws("0x10")].change((()=>{n[Ws("0x40")](r,{commandName:Ws("0x1"),commandParams:[{type:e[Ws("0x5")]}],formatGroupId:Ws("0x1")})}))}handleListReversedCommand(t,e={}){const n=this.editor.plugins[Ws("0xb")]("TrackChangesEditing"),r=this[Ws("0x29")]((t=>t.is(Ws("0x9"),Ws("0x3c"))&&Ws("0x6")===t[Ws("0x0")](Ws("0x33"))));if(r[Ws("0xf")]<1)return;const i=r[Ws("0x4")]((t=>this[Ws("0x17")].model[Ws("0x3")](this[Ws("0x17")].model[Ws("0xa")](t,"before"),this[Ws("0x17")][Ws("0x10")].createPositionAt(t,0))));this[Ws("0x17")][Ws("0x10")][Ws("0x13")]((()=>{n.markMultiRangeBlockFormat(i,{commandName:Ws("0xd"),commandParams:[{reversed:e.reversed}],formatGroupId:Ws("0xd")})}))}[Ws("0x11")](t,e={}){const n=this[Ws("0x17")].plugins[Ws("0xb")](Ws("0x3d")),r=this[Ws("0x29")]((t=>t.is(Ws("0x9"),Ws("0x3c"))&&Ws("0x6")===t[Ws("0x0")](Ws("0x33"))));if(r.length<1)return;const i=r.map((t=>this[Ws("0x17")][Ws("0x10")][Ws("0x3")](this[Ws("0x17")].model[Ws("0xa")](t,"before"),this[Ws("0x17")][Ws("0x10")][Ws("0xa")](t,0))));this[Ws("0x17")][Ws("0x10")][Ws("0x13")]((()=>{n[Ws("0x40")](i,{commandName:Ws("0x34"),commandParams:[{startIndex:e.startIndex}],formatGroupId:Ws("0x34")})}))}[Ws("0x7")](t){if(Ws("0x32")!=t.type&&Ws("0x37")!=t[Ws("0x5")])return;const e=this[Ws("0x17")][Ws("0x22")],{data:n}=t;if(!n)return;let r,i;switch(n[Ws("0x25")]){case"listStyle":r=Ws("0x31"),i={type:Ws("0x1d"),content:Jr(e,r,Jr(e,this._getTranslationKeyForListStyle(n[Ws("0x28")][0].type)))};break;case Ws("0xd"):r=n[Ws("0x28")][0][Ws("0x39")]?Ws("0x41"):Ws("0x1c"),i={type:"format",content:Jr(e,r)};break;case Ws("0x34"):r=Ws("0x14"),i={type:Ws("0x1d"),content:Jr(e,r,n[Ws("0x28")][0][Ws("0x12")])}}return i}[Ws("0x2c")](){var t,e,n,r;const i=this[Ws("0x17")][Ws("0x19")][Ws("0xb")](Ws("0x20"));let o=Array[Ws("0x23")](this[Ws("0x17")][Ws("0x10")][Ws("0x21")][Ws("0xc")][Ws("0x38")]());return(null===(t=o[0])||void 0===t?void 0:t.is("element",Ws("0x3c")))&&o.unshift(...i[Ws("0x3b")](this[Ws("0x17")][Ws("0x10")][Ws("0x21")].selection[Ws("0x16")](),Ws("0x2a"))),(null===(e=o[o[Ws("0xf")]-1])||void 0===e?void 0:e.is(Ws("0x9"),Ws("0x3c")))&&o[Ws("0x1b")](...i.getSiblingNodes(this[Ws("0x17")].model[Ws("0x21")][Ws("0xc")][Ws("0x2f")](),Ws("0x24"))),o=[...new Set(o)],(null===(r=null===(n=this[Ws("0x17")][Ws("0x10")][Ws("0x21")].selection[Ws("0x16")]())||void 0===n?void 0:n[Ws("0xe")])||void 0===r?void 0:r.is("element","listItem"))&&(o=o[Ws("0x2d")]((t=>t.is("element",Ws("0x3c"))))),o}[Ws("0x29")](t){const e=this[Ws("0x17")][Ws("0x19")][Ws("0xb")](Ws("0x20"));let n=Array[Ws("0x23")](this[Ws("0x17")][Ws("0x10")][Ws("0x21")][Ws("0xc")].getSelectedBlocks())[Ws("0x2d")](t)[Ws("0x4")]((t=>{const n=this[Ws("0x17")][Ws("0x10")][Ws("0xa")](t,0);return[...e[Ws("0x3b")](n,"backward"),...e[Ws("0x3b")](n,Ws("0x24"))]}))[Ws("0x30")]();return n=[...new Set(n)],n}[Ws("0x3f")](t){return Ws("0x2e")+this[Ws("0x17")].plugins[Ws("0xb")](Ws("0x20"))[Ws("0x27")](t)[Ws("0x1a")]()+Ws("0x36")+t[Ws("0x1a")]().replace(/-/g,"_")}}const qs=["high","media","MediaEmbedEditing","attribute:url:media","for","afterInit","stop","downcastDispatcher","editor","showSuggestionHighlights","div","ELEMENT_MEDIA","options","dataDowncast","elementToElement","TrackChangesEditing","data","has","get","plugins","_descriptionFactory","registerElementLabel","createEmptyElement"];var Xs,$s;Xs=qs,$s=224,function(t){for(;--t;)Xs.push(Xs.shift())}(++$s);const Zs=function(t,e){return qs[t-=0]};class Ys extends t.Plugin{[Zs("0xb")](){const t=this[Zs("0xe")];if(!t[Zs("0x2")][Zs("0x0")](Zs("0x8")))return;const e=t[Zs("0x2")][Zs("0x1")](Zs("0x15")),n=t.locale;e.enableCommand("mediaEmbed"),e[Zs("0x3")][Zs("0x4")]("media",(t=>Jr(n,Zs("0x11"),t))),t.conversion[Zs("0xa")](Zs("0x13"))[Zs("0x14")]({model:Zs("0x7"),view:(t,{writer:e,options:n})=>{if(n.showSuggestionHighlights)return e[Zs("0x5")](Zs("0x10"))},converterPriority:"high"}),t[Zs("0x16")][Zs("0xd")].on(Zs("0x9"),((t,e,n)=>{n[Zs("0x12")][Zs("0xf")]&&t[Zs("0xc")]()}),{priority:Zs("0x6")})}}const Js=["plugins","mention","get","has","enableCommand","afterInit","MentionEditing"];var Qs,tx;Qs=Js,tx=128,function(t){for(;--t;)Qs.push(Qs.shift())}(++tx);const ex=function(t,e){return Js[t-=0]};class nx extends t.Plugin{[ex("0x3")](){const t=this.editor;t[ex("0x5")][ex("0x1")](ex("0x4"))&&t.plugins[ex("0x0")]("TrackChangesEditing")[ex("0x2")](ex("0x6"))}}const rx=["enableCommand","PageBreakEditing","get","ELEMENT_PAGE_BREAK","plugins","registerElementLabel","editor","locale","afterInit","_descriptionFactory","pageBreak"];var ix,ox;ix=rx,ox=210,function(t){for(;--t;)ix.push(ix.shift())}(++ox);const sx=function(t,e){return rx[t-=0]};class xx extends t.Plugin{[sx("0x7")](){const t=this[sx("0x5")];if(!t.plugins.has(sx("0x0")))return;t[sx("0x3")][sx("0x1")]("TrackChangesEditing")[sx("0xa")](sx("0x9"));const e=t[sx("0x3")][sx("0x1")]("TrackChangesEditing"),n=t[sx("0x6")];e[sx("0x8")][sx("0x4")](sx("0x9"),(t=>Jr(n,sx("0x2"),t)))}}const ax=["name","locale","markerName","showSuggestionHighlights","editor","ck-suggestion-marker-split","data","get","downcastDispatcher","nodeAfter","isBlock","editing","_registerLegacyDescription","commandName","getFirstRange","checkChild","paragraph","createUIElement","$text","insertParagraph","*Change to:* %0","addClass","enableCommand","model","schema","addMarker:suggestion:insertion","afterInit","_enableDefaultAttributesIntegration","plugins","type","_descriptionFactory","insert","getItemLabel","includes","isTouching","isLimit","markerRange","*Insert:* %0","bindElementToMarker","writer","registerElementLabel","ELEMENT_PARAGRAPH","highest","TrackChangesEditing","mapper","Paragraph","ck-suggestion-marker--active","insertion"];var cx,lx;cx=ax,lx=491,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{[ux("0xf")](){const t=this.editor;if(!t[ux("0x11")].has(ux("0x22")))return;const e=t[ux("0x26")],n=t.plugins[ux("0x2c")](ux("0x20"));n[ux("0x13")][ux("0x1d")](ux("0x5"),(t=>Jr(e,ux("0x1e"),t))),n[ux("0x10")](ux("0x5")),n[ux("0xb")](ux("0x8")),t[ux("0x0")][ux("0x2d")].on(ux("0xe"),gx(t),{priority:ux("0x1f")}),t[ux("0x2b")][ux("0x2d")].on("addMarker:suggestion:insertion",((e,n,r)=>{r.options[ux("0x28")]&&gx(t,{showActiveMarker:!1})(e,n,r)}),{priority:ux("0x1f")});const r=n[ux("0x13")];r.registerDescriptionCallback((n=>{if(ux("0x24")!==n.type)return;const{start:i,end:o}=n[ux("0x3")]();if(!i[ux("0x17")](o)||!i[ux("0x2e")])return;const s=t[ux("0xc")][ux("0xd")],x=i[ux("0x2e")];return s[ux("0x2f")](x)&&!s[ux("0x18")](x)&&s[ux("0x4")](x,ux("0x7"))?{type:"insertion",content:Jr(e,ux("0x1a"),r[ux("0x15")](x,1))}:void 0})),this._registerLegacyDescription()}[ux("0x1")](){const t=this[ux("0x29")],e=t[ux("0x26")];t.plugins[ux("0x2c")]("TrackChangesEditing")._descriptionFactory.registerDescriptionCallback((t=>{if("formatBlock"!=t[ux("0x12")])return;const{data:n}=t;return n&&"paragraph"==n[ux("0x2")]?{type:"format",content:Jr(e,ux("0x9"),Jr(e,ux("0x1e")))}:void 0}))}}function gx(t,{showActiveMarker:e=!0}={}){return(n,r,i)=>{const o=t[ux("0x11")][ux("0x2c")]("TrackChangesEditing"),s=r[ux("0x19")].start,x=r[ux("0x19")].end,a=t[ux("0xc")][ux("0xd")];if(!s[ux("0x17")](x)||!s[ux("0x2e")])return;const c=s[ux("0x2e")];if(a[ux("0x2f")](c)&&!a[ux("0x18")](c)&&a[ux("0x4")](c,ux("0x7"))){if(!i.consumable.consume(r.markerRange,n[ux("0x25")]))return;const t=i[ux("0x1c")][ux("0x6")]("span",{class:ux("0x2a")}),s=i[ux("0x21")].toViewPosition(x);e&&o.activeMarkers[ux("0x16")](r[ux("0x27")])&&i.writer[ux("0xa")](ux("0x23"),t),i[ux("0x1c")][ux("0x14")](s,t),i[ux("0x21")][ux("0x1b")](t,r.markerName)}}}const fx=["type","_descriptionFactory","TrackChangesEditing","_registerLegacyDescription","editor","*Remove all formatting*","has","afterInit","removeFormat","get","formatInline","format","commandName","RemoveFormatEditing","_enableDefaultAttributesIntegration","plugins"];var mx,hx;mx=fx,hx=381,function(t){for(;--t;)mx.push(mx.shift())}(++hx);const bx=function(t,e){return fx[t-=0]};class px extends t.Plugin{[bx("0xa")](){const t=this[bx("0x7")];t[bx("0x2")][bx("0x9")](bx("0x0"))&&(t[bx("0x2")][bx("0xc")](bx("0x5"))[bx("0x1")](bx("0xb")),this._registerLegacyDescription())}[bx("0x6")](){const t=this[bx("0x7")];t[bx("0x2")][bx("0xc")](bx("0x5"))[bx("0x4")].registerDescriptionCallback((e=>{if("formatBlock"!=e[bx("0x3")]&&bx("0xd")!=e.type)return;const{data:n}=e;return n&&bx("0xb")==n[bx("0xf")]?{type:bx("0xe"),content:Jr(t.locale,bx("0x8"))}:void 0}))}}const Ex=["discardSelectedSuggestions","acceptSelectedSuggestions","afterInit","enableCommand","acceptSuggestion","acceptAllSuggestions","plugins","goToNextRestrictedEditingException","has","discardAllSuggestions","get","RestrictedEditingModeEditing","goToPreviousRestrictedEditingException"];var _x,Tx;_x=Ex,Tx=303,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const yx=function(t,e){return Ex[t-=0]};class Cx extends t.Plugin{[yx("0xb")](){const t=this.editor;if(!t[yx("0x2")][yx("0x4")](yx("0x7")))return;const e=t[yx("0x2")][yx("0x6")]("TrackChangesEditing");e[yx("0xc")](yx("0x8")),e[yx("0xc")](yx("0x3"));const n=t[yx("0x2")].get(yx("0x7"));n[yx("0xc")]("trackChanges"),n[yx("0xc")](yx("0x0")),n[yx("0xc")]("discardSuggestion"),n[yx("0xc")](yx("0x1")),n[yx("0xc")](yx("0x5")),n[yx("0xc")](yx("0xa")),n[yx("0xc")](yx("0x9"))}}const Ax=["requires","markerName","activeMarkers","addClass","deletion","createPositionBefore","data","getItems","merge","registerElementLabel","editing","ck-suggestion-marker-","shiftEnter","showSuggestionHighlights","bindElementToMarker","writer","span","markerRange","ck-suggestion-marker--active","createUIElement","get","ELEMENT_LINE_BREAK","element","softBreak","locale","enableCommand","split","includes","plugins","mapper","TrackChangesEditing","consumable","downcastDispatcher","test","high","addMarker:suggestion:deletion","insert","editor"];var kx,Ix;kx=Ax,Ix=396,function(t){for(;--t;)kx.push(kx.shift())}(++Ix);const Rx=function(t,e){return Ax[t-=0]};class Sx extends t.Plugin{static get[Rx("0x16")](){return[lo.ShiftEnter]}init(){const t=this[Rx("0x15")],e=t[Rx("0xc")][Rx("0x4")](Rx("0xe"));e[Rx("0x9")](Rx("0x22")),t.editing[Rx("0x10")].on("addMarker:suggestion:insertion",Nx(t),{priority:Rx("0x12")}),t[Rx("0x20")].downcastDispatcher.on(Rx("0x13"),Nx(t),{priority:"high"}),t[Rx("0x1c")].downcastDispatcher.on("addMarker:suggestion",((e,n,r)=>{r.options[Rx("0x23")]&&Nx(t,{showActiveMarker:!1})(e,n,r)})),e._descriptionFactory[Rx("0x1f")]("softBreak",(e=>Jr(t[Rx("0x8")],Rx("0x5"),e)))}}function Nx(t,{showActiveMarker:e=!0}={}){return(n,r,i)=>{const o=t[Rx("0xc")][Rx("0x4")](Rx("0xe"));if(!i[Rx("0xf")][Rx("0x11")](r[Rx("0x1")],n.name))return;const s=t.model;for(const t of r.markerRange[Rx("0x1d")]()){if(!t.is(Rx("0x6"),Rx("0x7")))continue;const n=Rx("0x1a")==r[Rx("0x17")][Rx("0xa")](":")[1]?Rx("0x1e"):Rx("0xa"),x=i[Rx("0x25")][Rx("0x3")](Rx("0x0"),{class:Rx("0x21")+n}),a=i[Rx("0xd")].toViewPosition(s[Rx("0x1b")](t));e&&o[Rx("0x18")][Rx("0xb")](r[Rx("0x17")])&&i[Rx("0x25")][Rx("0x19")](Rx("0x2"),x),i[Rx("0x25")][Rx("0x14")](a,x),i[Rx("0xd")][Rx("0x24")](x,r[Rx("0x17")])}}}const vx=["value","format","editor","afterInit","FORMAT_RESTRICTED_DISABLED","formatInline","enableCommand","from","get","isCollapsed","getRanges","commandName","change","restrictedEditingException","has","forceValue","document","formatBlock","plugins","TrackChangesEditing","StandardEditingModeEditing","selection","FORMAT_RESTRICTED_ENABLED"];var Lx,Mx;Lx=vx,Mx=142,function(t){for(;--t;)Lx.push(Lx.shift())}(++Mx);const wx=function(t,e){return vx[t-=0]};class Ox extends t.Plugin{[wx("0x16")](){const t=this[wx("0x15")],e=t.model,n=t.locale;if(!t.plugins[wx("0xa")](wx("0x10")))return;const r=t[wx("0xe")][wx("0x4")](wx("0xf")),i=wx("0x9"),o=t.commands.get(i);r[wx("0x2")](i,((t,n={})=>{const s=e[wx("0xc")][wx("0x11")];if(s[wx("0x5")])return void t(n);const x=void 0!==n[wx("0xb")]?n[wx("0xb")]:!o[wx("0x13")];e[wx("0x8")]((()=>{const t=Array[wx("0x3")](s[wx("0x6")]());for(const n of t){const t=x?[n]:qi(i,n,e);for(const e of t)r.markInlineFormat(e,{commandName:i,commandParams:[{forceValue:x}]})}}))})),r._descriptionFactory.registerDescriptionCallback((t=>{if(wx("0xd")!=t.type&&wx("0x1")!=t.type)return;const{data:e}=t;return e&&e[wx("0x7")]==i?e.commandParams[0][wx("0xb")]?{type:wx("0x14"),content:Jr(n,wx("0x12"))}:{type:"format",content:Jr(n,wx("0x0"))}:void 0}))}}const Fx=["toLowerCase","add","StyleUtils","type","ghsAttributes","_descriptionFactory","editor","GeneralHtmlSupport","block","get","*Set format:* %0","_registerInlineAttribute","*Remove format:* %0","config","styleName","getGhsAttributeNameForElement","has","plugins","normalizeConfig","style","commandParams","definitions","TrackChangesEditing","element","DataSchema","_registerLegacyDescription","locale","registerAttributeLabel"];var Dx,Bx;Dx=Fx,Bx=156,function(t){for(;--t;)Dx.push(Dx.shift())}(++Bx);const Px=function(t,e){return Fx[t-=0]};class Ux extends t.Plugin{afterInit(){const t=this[Px("0x12")];if(!t[Px("0x1")][Px("0x0")]("Style")||!t[Px("0x1")][Px("0x0")](Px("0x8")))return;const e=t[Px("0x1")][Px("0x15")](Px("0x6")),n=t.locale,r=t[Px("0x19")][Px("0x15")](Px("0x3")),i=t[Px("0x1")][Px("0x15")](Px("0x13")),o=t[Px("0x1")][Px("0x15")](Px("0xe"))[Px("0x2")](t.plugins[Px("0x15")](Px("0x8")),r[Px("0x5")]);e._enableDefaultAttributesIntegration(Px("0x3"));const s=new Set;for(const t of o[Px("0x14")]){const e=i.getGhsAttributeNameForElement(t[Px("0x7")]);s[Px("0xd")](e)}const x=new Set;for(const t of o.inline){const e=i[Px("0x1b")](t[Px("0x7")]);x[Px("0xd")](e);for(const e of t[Px("0x10")])x.add(e)}for(const t of s)e._registerBlockAttribute(t),e._descriptionFactory[Px("0xb")](t,Jr(n,"FORMAT_STYLE"));for(const t of x)e[Px("0x17")](t),e[Px("0x11")].registerAttributeLabel(t,Jr(n,"FORMAT_STYLE"));this._registerLegacyDescription()}[Px("0x9")](){const t=this[Px("0x12")],e=t[Px("0xa")];t.plugins[Px("0x15")]("TrackChangesEditing")[Px("0x11")].registerDescriptionCallback((t=>{if("formatBlock"!=t[Px("0xf")]&&"formatInline"!=t.type)return;const{data:n}=t;return n&&Px("0x3")===n.commandName?n[Px("0x4")][0].forceValue?{type:"format",content:Jr(e,Px("0x16"),n[Px("0x4")][0][Px("0x1a")].toLowerCase())}:{type:"format",content:Jr(e,Px("0x18"),n.commandParams[0][Px("0x1a")][Px("0xc")]())}:void 0}))}}const jx=["findAncestor","getRowIndexes","registerCustomCallback","detach","fromRange","maxRow","max","nodeAfter","registerDescriptionCallback","ELEMENT_TABLE","ELEMENT_TABLE_ROW_WITH_TEXT","substr","element","removeTableColumn","classes","_getCoordsForCells","commands","differ","from","addRange","values","ELEMENT_TABLE_WITH_TEXT","data","min","root","item","maxColumn","last","includes","change:data","TableEditing","hasAttribute","every","span","accept","ELEMENT_TABLE_COLUMN","map","addMarker:suggestion","enqueueChange","editor","MIN_SAFE_INTEGER","MAX_SAFE_INTEGER","left","getSelectionAffectedTableCells","refresh","push","rowspan","insert","some","plugins","start","enableCommand","colspan","$graveyard","markMultiRangeDeletion","TrackChangesEditing","mapper","afterInit","join","minColumn","tableColumn","insertTableColumnLeft","cell","ELEMENT_TABLE_ROW","change","get","removeClass","position","tableRow","first","_getSuggestionCoords","downcastDispatcher","createRangeIn","subType","add","_setupColumnsRowsFixing","setSelection","end","suggestion","highest","*Remove:* %0","getRanges","addClass","execute","name","model","registerElementLabel","batch","getCellLocation","table","minRow","TableUtils","getItems","_tablePostFixingSubtypes","_acceptFormatSuggestionCallbackFactory","selection","_descriptionFactory","insertTableRowAbove","type","createRangeOn","selectTableColumn","getAttribute","isArray","getChanges","discard","insertTableColumnRight","locale","document","low","startsWith","_suggestionFactory","filter","deletion","oldRange","isInContent","createTableWalker","toLowerCase","_tableSuggestions","length","removeTableRow","insertTableRowBelow","tableCell","markMultiRangeInsertion","$textProxy","isEqual","getSuggestion","rootName","isTouching","*Insert:* %0","insertion"];var Gx,Hx;Gx=jx,Hx=427,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const Vx=function(t,e){return jx[t-=0]};class zx extends t.Plugin{constructor(t){super(t),this[Vx("0x38")]=[Vx("0x1f"),"tableColumn"],this[Vx("0x50")]=new Set}[Vx("0x14")](){const t=this[Vx("0x2")],e=t[Vx("0x30")][Vx("0x46")][Vx("0x3a")];if(!t[Vx("0xc")].has(Vx("0x7b")))return;const n=t[Vx("0x45")],r=t[Vx("0xc")][Vx("0x1c")]("TrackChangesEditing"),i=t[Vx("0xc")][Vx("0x1c")](Vx("0x36"));r[Vx("0x3b")][Vx("0x31")]("table",(t=>Jr(n,Vx("0x66"),t))),this[Vx("0x26")](),r[Vx("0xe")]("insertTable"),r[Vx("0xe")]("selectTableRow"),r[Vx("0xe")](Vx("0x3f"));for(const n of[Vx("0x3c"),Vx("0x53")]){const o=t[Vx("0x6d")].get(n);r[Vx("0xe")](n,(n=>{t.model[Vx("0x1b")]((t=>{n();const s="above"===o.order,x=i.getSelectionAffectedTableCells(e),a=i[Vx("0x5e")](x),c=s?a[Vx("0x20")]-1:a.last+1,l=x[0][Vx("0x5d")](Vx("0x34")),u=i[Vx("0x4e")](l,{startRow:c,endRow:c}),d=Array[Vx("0x6f")](u).map((e=>t[Vx("0x3e")](e[Vx("0x19")])));r[Vx("0x55")](d,Vx("0x1f"))}))}))}for(const n of[Vx("0x18"),Vx("0x44")]){const o=t[Vx("0x6d")][Vx("0x1c")](n);r[Vx("0xe")](n,(n=>{t[Vx("0x30")][Vx("0x1b")]((t=>{n();const s=Vx("0x5")===o.order,x=i[Vx("0x6")](e),a=i.getColumnIndexes(x),c=s?a[Vx("0x20")]-1:a.last+1,l=x[0].findAncestor(Vx("0x34")),u=i[Vx("0x4e")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array.from(u)[Vx("0x81")]((e=>t[Vx("0x3e")](e[Vx("0x19")])));r[Vx("0x55")](d,Vx("0x17"))}))}))}for(const n of[Vx("0x52"),"removeTableColumn"]){const o=n[Vx("0x68")](11),s=o[Vx("0x4f")](),x=s[Vx("0x68")](0,3)+Vx("0x7e"),a=Vx("0x34")+o,c=Vx("0x74")+o,l=Vx("0x63")+o;r[Vx("0xe")](n,(()=>{t[Vx("0x30")][Vx("0x1b")]((t=>{const o=i[Vx("0x6")](e),u=o[0][Vx("0x5d")](Vx("0x34"));let d;if(Vx("0x52")==n){const t=i[Vx("0x5e")](o);d={startRow:t.first,endRow:t[Vx("0x78")],includeAllSlots:!0}}else{const t=i.getColumnIndexes(o);d={startColumn:t[Vx("0x20")],endColumn:t[Vx("0x78")],includeAllSlots:!0}}const g=i[Vx("0x4e")](u,d),f=Array[Vx("0x6f")](g).map((({cell:t})=>t)),m=Wx(f[Vx("0x4a")]((t=>t[Vx("0x7c")](x)))),h=Wx(f.filter((t=>!t[Vx("0x7c")](x))))[Vx("0x81")]((e=>t[Vx("0x3e")](e))),b=r[Vx("0x11")](h,a);if(b&&("tableRow"==b[Vx("0x24")]||Vx("0x17")==b[Vx("0x24")])){const e=this[Vx("0x21")](b);for(const n of m){const r=t[Vx("0x3e")](n),o=i[Vx("0x33")](n),a=n[Vx("0x40")](x)-1,u=e[c],d=e[l];u<=o[s]&&o[s]+a<=d&&b.addRange(r)}}}))}))}function o(n){const r=Array[Vx("0x6f")](e[Vx("0x2c")]())[Vx("0x81")]((t=>s.LiveRange[Vx("0x61")](t)));t[Vx("0x30")][Vx("0x1b")]((e=>{const i=e[Vx("0x32")];n=n[Vx("0x4a")]((t=>Vx("0x10")!=t[Vx("0x75")].rootName)),e.setSelection(n),t.commands[Vx("0x1c")](Vx("0x52"))[Vx("0x7")](),t[Vx("0x2e")](Vx("0x52"),{forceDefaultExecution:!0}),t[Vx("0x30")][Vx("0x1")]((()=>{t[Vx("0x30")][Vx("0x1")](i,(t=>{const e=r.filter((t=>Vx("0x10")!=t[Vx("0x75")][Vx("0x59")]));e.length>0&&t.setSelection(e);for(const t of r)t[Vx("0x60")]()}))}))}))}function a(n){t[Vx("0x30")].change((r=>{const i=Array.from(e.getRanges())[Vx("0x81")]((t=>s.LiveRange[Vx("0x61")](t))),o=[];for(const t of n)for(const e of t[Vx("0x37")]({shallow:!0}))o[Vx("0x8")](e);for(const e of o)Vx("0x10")!=e.root[Vx("0x59")]&&(r[Vx("0x27")](r.createPositionAt(e,0)),t[Vx("0x6d")][Vx("0x1c")](Vx("0x6a"))[Vx("0x7")](),t[Vx("0x2e")](Vx("0x6a"),{forceDefaultExecution:!0}));const x=i[Vx("0x4a")]((t=>Vx("0x10")!=t.root[Vx("0x59")]));x[Vx("0x51")]>0&&r[Vx("0x27")](x);for(const t of i)t.detach()}))}function c(t,e){return e[Vx("0x7d")]((e=>t[Vx("0xb")]((t=>t.end[Vx("0x57")](e[Vx("0xd")])||e[Vx("0x28")][Vx("0x57")](t.start)))))}function l(t,e){return t[Vx("0xb")]((t=>e[Vx("0xb")]((e=>t.end[Vx("0x5a")](e[Vx("0xd")])))))}t[Vx("0x73")][Vx("0x22")].on(Vx("0x0"),((t,e,n)=>{if(!n.options.showSuggestionHighlights)return;const r=e[Vx("0x76")];if(!r)return;const i=n[Vx("0x13")].toViewElement(r);function o(t){return Array[Vx("0x41")](t)?t:[t]}i&&Vx("0x54")===r[Vx("0x2f")]&&(0,x.setHighlightHandling)(i,n.writer,((t,e,n)=>n[Vx("0x2d")](o(e[Vx("0x6b")]),t)),((t,e,n)=>n[Vx("0x1d")](o(e[Vx("0x6b")]),t)))}),{priority:Vx("0x2a")}),r[Vx("0x3b")][Vx("0x65")]((t=>{if("insertion"!=t[Vx("0x3d")]&&Vx("0x4b")!=t.type)return;const e=t.getContainedElement();if(null!=e&&e.is(Vx("0x69"),"table")){if(Vx("0x5c")==t[Vx("0x3d")]){const e=t[Vx("0x37")]()[Vx("0x4a")]((t=>t.is("$textProxy")))[Vx("0x81")]((t=>t[Vx("0x73")]));if(e.length)return{type:Vx("0x5c"),content:Jr(n,Vx("0x5b"),Jr(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Vx("0x15")](" ")+'"'))}}if(Vx("0x4b")==t[Vx("0x3d")]){const e=t.getItems()[Vx("0x4a")]((t=>t.is("$textProxy")))[Vx("0x81")]((t=>t.data));if(e.length)return{type:Vx("0x4b"),content:Jr(n,Vx("0x2b"),Jr(n,Vx("0x72"),'"'+e[Vx("0x15")](" ")+'"'))}}}})),r[Vx("0x3b")][Vx("0x65")]((t=>{if(Vx("0x1f")==t[Vx("0x24")]){const e=t[Vx("0x37")]()[Vx("0x4a")]((t=>t.is(Vx("0x56"))))[Vx("0x81")]((t=>t[Vx("0x73")])),r=this[Vx("0x21")](t),i=r[Vx("0x62")]-r[Vx("0x35")]+1;if(Vx("0x5c")==t[Vx("0x3d")])return e[Vx("0x51")]?{type:Vx("0x5c"),content:Jr(n,Vx("0x5b"),Jr(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[i,'"'+e.join(" ")+'"']))}:{type:Vx("0x5c"),content:Jr(n,Vx("0x5b"),Jr(n,"ELEMENT_TABLE_ROW",i))};if("deletion"==t[Vx("0x3d")])return e[Vx("0x51")]?{type:Vx("0x4b"),content:Jr(n,"*Remove:* %0",Jr(n,Vx("0x67"),[i,'"'+e[Vx("0x15")](" ")+'"']))}:{type:Vx("0x4b"),content:Jr(n,Vx("0x2b"),Jr(n,Vx("0x1a"),i))}}if(Vx("0x17")==t[Vx("0x24")]){const e=t[Vx("0x37")]()[Vx("0x4a")]((t=>t.is(Vx("0x56"))))[Vx("0x81")]((t=>t[Vx("0x73")])),r=this[Vx("0x21")](t),i=r[Vx("0x77")]-r[Vx("0x16")]+1;if("insertion"==t[Vx("0x3d")])return e[Vx("0x51")]?{type:"insertion",content:Jr(n,Vx("0x5b"),Jr(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[i,'"'+e[Vx("0x15")](" ")+'"']))}:{type:"insertion",content:Jr(n,Vx("0x5b"),Jr(n,Vx("0x80"),i))};if(Vx("0x4b")==t[Vx("0x3d")])return e[Vx("0x51")]?{type:Vx("0x4b"),content:Jr(n,Vx("0x2b"),Jr(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[i,'"'+e[Vx("0x15")](" ")+'"']))}:{type:Vx("0x4b"),content:Jr(n,"*Remove:* %0",Jr(n,Vx("0x80"),i))}}})),r[Vx("0x49")][Vx("0x5f")](Vx("0x5c"),"tableRow",Vx("0x43"),o),r[Vx("0x49")][Vx("0x5f")](Vx("0x4b"),Vx("0x1f"),Vx("0x7f"),o),r._suggestionFactory.registerCustomCallback(Vx("0x5c"),Vx("0x17"),"discard",a),r[Vx("0x49")][Vx("0x5f")](Vx("0x4b"),Vx("0x17"),Vx("0x7f"),a),r[Vx("0x49")][Vx("0x5f")](Vx("0x5c"),Vx("0x17"),Vx("0x15"),c),r[Vx("0x49")][Vx("0x5f")]("deletion",Vx("0x17"),Vx("0x15"),c),r[Vx("0x49")][Vx("0x5f")](Vx("0x5c"),Vx("0x1f"),Vx("0x15"),l),r._suggestionFactory.registerCustomCallback(Vx("0x4b"),Vx("0x1f"),Vx("0x15"),l)}[Vx("0x39")](){const t=this.editor,e=t[Vx("0x30")].document[Vx("0x3a")];return(n,r)=>{t[Vx("0x30")][Vx("0x1b")]((i=>{const{commandName:o,commandParams:x}=r;let a=n[0][Vx("0x28")].nodeBefore;x&&x[0]&&!1===x[0].forceValue&&(a=n[0][Vx("0xd")][Vx("0x64")]);const c=i[Vx("0x23")](a);if(Vx("0x10")==c[Vx("0x75")][Vx("0x59")])return;const l=Array.from(e[Vx("0x2c")]())[Vx("0x81")]((t=>s.LiveRange[Vx("0x61")](t)));i[Vx("0x27")](c),t[Vx("0x6d")][Vx("0x1c")](o).refresh(),x[Vx("0x8")]({forceDefaultExecution:!0}),t[Vx("0x2e")](o,...x);const u=l[Vx("0x4a")]((t=>Vx("0x10")!=t.root[Vx("0x59")]));u[Vx("0x51")]>0&&i[Vx("0x27")](u);for(const t of l)t.detach()}))}}_getCoordsForCells(t){const e=this.editor.plugins[Vx("0x1c")](Vx("0x36"));let n=Number[Vx("0x4")],r=Number[Vx("0x3")],i=Number[Vx("0x4")],o=Number[Vx("0x3")];for(const s of t){if(Vx("0x10")==s.root.rootName)continue;const{row:t,column:x}=e[Vx("0x33")](s),a=s[Vx("0x7c")](Vx("0x9"))?s[Vx("0x40")](Vx("0x9"))-1:0,c=s.hasAttribute("colspan")?s[Vx("0x40")](Vx("0xf"))-1:0;n=t<n?t:n,r=t+a>r?t+a:r,i=x<i?x:i,o=x+c>o?x+c:o}return{minRow:n,maxRow:r,minColumn:i,maxColumn:o}}[Vx("0x26")](){const t=this[Vx("0x2")],e=t[Vx("0xc")][Vx("0x1c")](Vx("0x12")),n=t[Vx("0xc")][Vx("0x1c")](Vx("0x36"));t[Vx("0x30")][Vx("0x46")].on(Vx("0x7a"),(()=>{const n=Array[Vx("0x6f")](t[Vx("0x30")].document[Vx("0x6e")].getChangedMarkers());for(const{name:t,data:r}of n){const{group:n,id:i,subType:o}=e._splitMarkerName(t);if(Vx("0x29")!=n)continue;if(null!=r[Vx("0x4c")])continue;const s=e[Vx("0x58")](i);this._tablePostFixingSubtypes[Vx("0x79")](o)&&this[Vx("0x50")][Vx("0x25")](s)}}),{priority:Vx("0x47")});const r=(t,e)=>{let r=!1;const i=e[Vx("0x3e")](t),o=t[Vx("0x5d")](Vx("0x34")),s=n[Vx("0x33")](t);for(const e of this[Vx("0x50")]){const n=e[Vx("0x24")],x=n[Vx("0x48")]("tablePaste"),a=n.substr(x?10:5),c=a.toLowerCase(),l=c[Vx("0x68")](0,3)+Vx("0x7e"),u=Vx("0x74")+a,d=Vx("0x63")+a;if(!e[Vx("0x4d")])continue;if(o!=e.getFirstRange()[Vx("0xd")].findAncestor(Vx("0x34")))continue;if(e.isIntersectingWithRange(i))continue;const g=t[Vx("0x7c")](l)?t[Vx("0x40")](l)-1:0,f=this[Vx("0x21")](e),m=f[u],h=f[d];m<=s[c]&&s[c]+g<=h&&(e[Vx("0x70")](i),r=!0)}return r};t[Vx("0x30")][Vx("0x46")].registerPostFixer((e=>{let n=!1;for(const i of t[Vx("0x30")][Vx("0x46")].differ[Vx("0x42")]())if(Vx("0xa")==i[Vx("0x3d")])if(Vx("0x1f")==i[Vx("0x2f")])for(const t of i[Vx("0x1e")][Vx("0x64")].getChildren())n=n||r(t,e);else Vx("0x54")==i.name&&(n=n||r(i[Vx("0x1e")][Vx("0x64")],e));return n}))}[Vx("0x21")](t){return this[Vx("0x6c")](t[Vx("0x2c")]()[Vx("0x81")]((t=>t.start[Vx("0x64")])))}}function Wx(t){return Array[Vx("0x6f")](new Set(t)[Vx("0x71")]())}const Kx=["*Split cell:* vertically","plugins","deletion","_areMergableCells","registerDescriptionCallback","getFirstPosition","splitTableCellVertically","mergeTableCellUp","document","enableCommand","mergeTableCells","type","_areSelectedCellsMergable","direction","mergeTableCellRight","change","mergeTableCellDown","*Merge cells*","splitTableCellHorizontally","table","requires","TableUtils","cell","tableCell","rootName","from","_descriptionFactory","getSuggestions","length","_acceptFormatSuggestionCallbackFactory","format","low","mergeTableCellLeft","editor","selection","commands","author","map","forceDefaultExecution","refresh","trackChanges","add","set:isEnabled","find","accept","createRangeOn","value","formatInline","getCellLocation","execute","_tablePostFixingSubtypes","commandName","getSelectionAffectedTableCells","setSelection","markMultiRangeBlockFormat","root","return","has","stop","_suggestionFactory","size","getAncestors","insertion","registerCustomCallback","*Split cell:* horizontally","get","element","getRanges","locale","formatBlock","markBlockFormat","TrackChangesEditing","afterInit","model","findAncestor","createTableWalker","push"];var qx,Xx;qx=Kx,Xx=105,function(t){for(;--t;)qx.push(qx.shift())}(++Xx);const $x=function(t,e){return Kx[t-=0]};class Zx extends t.Plugin{static get[$x("0x45")](){return[zx]}[$x("0x2c")](){const t=this[$x("0x5")],e=t[$x("0x2d")][$x("0x39")][$x("0x6")],n=t[$x("0x28")];if(!t[$x("0x32")].has("TableEditing"))return;const r=t[$x("0x32")][$x("0x25")]($x("0x2b")),i=t[$x("0x32")][$x("0x25")]($x("0x46")),o=t.plugins[$x("0x25")](zx);o[$x("0x16")][$x("0x30")]("mergeTableCells"),r.enableCommand($x("0x3b"),(()=>{const e=i[$x("0x18")](t.model[$x("0x39")].selection);t[$x("0x2d")].change((()=>{r[$x("0x1a")](e,{commandName:$x("0x3b"),commandParams:[]},[],$x("0x3b"))}))})),t[$x("0x7")][$x("0x25")]($x("0x3b")).on($x("0x15"),((e,n)=>{t.commands[$x("0x25")]($x("0xc"))[$x("0x12")]&&(n[$x("0x0")]>0&&n[n[$x("0x0")]-1]&&n[n[$x("0x0")]-1][$x("0xa")]||r._isForcedDefaultExecutionBlock||this[$x("0x3d")]()||e[$x("0x1e")]())}),{priority:"highest"});for(const e of["mergeTableCellUp","mergeTableCellRight",$x("0x41"),$x("0x4")]){const n=t[$x("0x7")][$x("0x25")](e);r.enableCommand(e,(()=>{const e=t.model[$x("0x39")].selection[$x("0x36")]().getAncestors()[$x("0xf")]((t=>t.is($x("0x26"),$x("0x48")))),i=n[$x("0x12")];t[$x("0x2d")][$x("0x40")]((()=>{r.markMultiRangeBlockFormat([e,i],{commandName:$x("0x3b"),commandParams:[]},[],"mergeTableCells")}))}))}for(const e of[$x("0x37"),$x("0x43")]){const n=t[$x("0x7")][$x("0x25")](e);r[$x("0x3a")](e,(()=>{const o=i[$x("0x18")](t[$x("0x2d")].document[$x("0x6")])[0],s=o[$x("0x2e")]($x("0x44")),{column:x,row:a}=i[$x("0x14")](o);let c=[];if("horizontally"==n[$x("0x3e")]){const t=i[$x("0x2f")](s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[$x("0x4a")](t)[$x("0x9")]((t=>t[$x("0x47")]))}else{const t=i[$x("0x2f")](s,{column:x,includeAllSlots:!0});c=Array[$x("0x4a")](t)[$x("0x9")]((t=>t.cell))}t.model[$x("0x40")]((t=>{r[$x("0x2a")](t[$x("0x11")](o),{commandName:e,commandParams:[]},c,e)}))}))}r[$x("0x4b")][$x("0x35")]((t=>{if($x("0x29")!=t[$x("0x3c")]&&"formatInline"!=t[$x("0x3c")])return;const{data:e}=t;return e&&"mergeTableCells"==e[$x("0x17")]?{type:$x("0x2"),content:Jr(n,$x("0x42"))}:void 0})),r[$x("0x4b")][$x("0x35")]((t=>{if($x("0x29")!=t.type&&$x("0x13")!=t[$x("0x3c")])return;const{data:e}=t;return e?$x("0x37")==e.commandName?{type:$x("0x2"),content:Jr(n,$x("0x31"))}:$x("0x43")==e[$x("0x17")]?{type:"format",content:Jr(n,$x("0x24"))}:void 0:void 0}));const x=o[$x("0x1")]();for(const t of[$x("0x38"),$x("0x3f"),"mergeTableCellDown",$x("0x4")])r._suggestionFactory[$x("0x23")]($x("0x29"),t,$x("0x10"),x);for(const t of["splitTableCellVertically",$x("0x43")])r._suggestionFactory.registerCustomCallback($x("0x29"),t,$x("0x10"),x);r[$x("0x1f")][$x("0x23")]($x("0x29"),$x("0x3b"),$x("0x10"),(n=>{t.model[$x("0x40")]((r=>{const i=Array[$x("0x4a")](e[$x("0x27")]()).map((t=>s.LiveRange.fromRange(t)));r[$x("0x19")](n),t.commands[$x("0x25")]("mergeTableCells")[$x("0xb")](),t[$x("0x15")]($x("0x3b"),{forceDefaultExecution:!0});const o=i.filter((t=>"$graveyard"!=t[$x("0x1b")][$x("0x49")]));o[$x("0x0")]>0&&r[$x("0x19")](o);for(const t of i)t.detach()}))}));for(const e of[$x("0x38"),"mergeTableCellDown","mergeTableCellLeft",$x("0x3f")]){const n=t[$x("0x7")][$x("0x25")](e);n.on($x("0xe"),((e,r,i)=>{if(i){const r=t.model[$x("0x39")][$x("0x6")][$x("0x36")]()[$x("0x21")]()[$x("0xf")]((t=>t.is($x("0x26"),$x("0x48"))));this[$x("0x34")](n.value,r)||(e[$x("0x1c")]=!1,e.stop())}}),{priority:$x("0x3")})}}[$x("0x3d")](){const t=this.editor.commands[$x("0x25")]($x("0x3b")),e=this[$x("0x5")][$x("0x32")][$x("0x25")]($x("0x46"));if(!t.isEnabled)return!1;const n=e[$x("0x18")](this[$x("0x5")][$x("0x2d")][$x("0x39")].selection);for(const t of n)for(const e of n)if(t!=e&&!this[$x("0x34")](t,e))return!1;return!0}_areMergableCells(t,e){const n=this[$x("0x5")][$x("0x32")][$x("0x25")]($x("0x2b")),r=this[$x("0x5")][$x("0x2d")][$x("0x11")](t),i=this[$x("0x5")][$x("0x2d")][$x("0x11")](e),o=new Set,s=new Set;for(const t of n[$x("0x4c")]())if(($x("0x22")==t[$x("0x3c")]||$x("0x33")==t[$x("0x3c")]||$x("0x3b")==t.subType)&&t.isInContent)for(const e of t[$x("0x27")]())e.containsRange(r,!0)&&o[$x("0xd")](t[$x("0x3c")]+":"+t[$x("0x8")].id),e.containsRange(i,!0)&&s[$x("0xd")](t[$x("0x3c")]+":"+t[$x("0x8")].id);if(o[$x("0x20")]!=s.size)return!1;for(const t of o)if(!s[$x("0x1d")](t))return!1;return!0}}const Yx=["registerCustomCallback","setTableRowHeader","FORMAT_REGULAR_COLUMN","type","removeClass","locale","commandName","commandParams","TableUtils","registerAttributeLabel","headingRows","cell","writer","_suggestionFactory","plugins","headingColumns","consume","TrackChangesEditing","TableEditing","forceValue","FORMAT_REGULAR_ROW","item","bindElementToMarker","formatBlock","FORMAT_HEADER_COLUMN","setTableColumnHeader","options","_acceptFormatSuggestionCallbackFactory","activeMarkers","createTableWalker","format","nodeBefore","_registerLegacyDescription","nodeAfter","FORMAT_HEADER_ROW","includes","data","registerDescriptionCallback","downcastDispatcher","get","data-suggestion","_splitMarkerName","_handleLegacySuggestions","showSuggestionHighlights","requires","markerRange","ck-suggestion-marker-","addClass","parent","stop","markerNameToElements","has","mapper","getCellLocation","editing","addMarker:suggestion","editor","end","*Format:* %0","ck-suggestion-marker--active","_enableDefaultAttributesIntegration","name","accept","_descriptionFactory","afterInit","highest","toViewElement","getSuggestion","markerName"];var Jx,Qx;Jx=Yx,Qx=260,function(t){for(;--t;)Jx.push(Jx.shift())}(++Qx);const ta=function(t,e){return Yx[t-=0]};class ea extends t.Plugin{static get[ta("0x3c")](){return[zx]}[ta("0xb")](){const t=this[ta("0x3")];if(!t.plugins[ta("0x43")](ta("0x22")))return;const e=t[ta("0x15")],n=t[ta("0x1e")][ta("0x37")](ta("0x21"));n[ta("0x7")]("setTableRowHeader",[],[ta("0x1a")]),n[ta("0x7")](ta("0x29"),[],[ta("0x1f")]),n[ta("0xa")].registerAttributeLabel(ta("0x1a"),Jr(e,"FORMAT_HEADER_ROW")),n[ta("0xa")][ta("0x19")]("headingColumns",Jr(e,ta("0x28"))),this[ta("0x3a")]()}[ta("0x3a")](){const t=this[ta("0x3")][ta("0x1e")][ta("0x37")](ta("0x21")),e=this[ta("0x3")].plugins[ta("0x37")](ta("0x18")),n=this[ta("0x3")][ta("0x1e")][ta("0x37")](zx)[ta("0x2b")]();function r({showActiveMarker:n=!0,setDataAttribute:r=!0}={}){return(i,o,s)=>{const{type:x,id:a}=t[ta("0x39")](o.markerName),c=t.getSuggestion(a),l=c.data;if("formatBlock"!=c.type||!l||ta("0x29")!=l[ta("0x16")])return;if(o[ta("0x25")])return void i[ta("0x41")]();if(!s.consumable[ta("0x20")](o[ta("0x3d")],i[ta("0x8")]))return;const u=o[ta("0x3d")].start[ta("0x31")],d=o[ta("0x3d")][ta("0x4")][ta("0x2f")],g=u[ta("0x40")][ta("0x40")],{column:f}=e[ta("0x0")](u),{column:m}=e[ta("0x0")](d);for(let i=f;i<=m;i++){const c=e[ta("0x2d")](g,{column:i,includeAllSlots:!1});for(const e of c){const i=e[ta("0x1b")],c=s[ta("0x44")][ta("0xd")](i);s[ta("0x1c")].addClass(ta("0x3e")+x,c),r&&s[ta("0x1c")].setAttribute(ta("0x38"),a,c),s[ta("0x44")][ta("0x26")](c,o[ta("0xf")]),n&&(t[ta("0x2c")][ta("0x33")](o[ta("0xf")])?s[ta("0x1c")][ta("0x3f")]("ck-suggestion-marker--active",c):s.writer[ta("0x14")](ta("0x6"),c))}}}}t[ta("0x1d")].registerCustomCallback(ta("0x27"),ta("0x11"),ta("0x9"),n),t[ta("0x1d")][ta("0x10")]("formatBlock",ta("0x29"),ta("0x9"),n),this[ta("0x3")][ta("0x1")].downcastDispatcher.on(ta("0x2"),r(),{priority:ta("0xc")}),this.editor[ta("0x34")][ta("0x36")].on(ta("0x2"),((t,e,n)=>{n[ta("0x2a")][ta("0x3b")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:ta("0xc")}),this[ta("0x3")].editing[ta("0x36")].on("removeMarker:suggestion",((e,n,r)=>{const{type:i,id:o}=t._splitMarkerName(n[ta("0xf")]),s=t[ta("0xe")](o),x=s.data;if(ta("0x27")!=s[ta("0x13")]||!x||ta("0x29")!=x[ta("0x16")])return;const a=r[ta("0x44")][ta("0x42")](n.markerName);if(a)for(const t of a)r[ta("0x1c")][ta("0x14")]("ck-suggestion-marker-"+i,t),r[ta("0x1c")][ta("0x14")]("ck-suggestion-marker--active",t),r[ta("0x1c")].removeAttribute(ta("0x38"),t),r[ta("0x44")].unbindElementFromMarkerName(t,n.markerName)}),{priority:ta("0xc")}),this[ta("0x30")]()}[ta("0x30")](){const t=this[ta("0x3")],e=t[ta("0x15")];function n(t){return{type:ta("0x2e"),content:Jr(e,ta("0x5"),t)}}t[ta("0x1e")][ta("0x37")](ta("0x21"))._descriptionFactory[ta("0x35")]((t=>{if("formatBlock"!=t[ta("0x13")])return;const{data:r}=t;if(r){if("setTableRowHeader"==r.commandName){const t=r.commandParams[0][ta("0x23")];return n(Jr(e,ta(t?"0x32":"0x24")))}if(ta("0x29")==r[ta("0x16")]){const t=r[ta("0x17")][0][ta("0x23")];return n(Jr(e,ta(t?"0x28":"0x12")))}}}))}}const na=["markers","getRanges","getAttributes","table","low","stop","markerAttributes","return","model","get","from","clipboardOutput","tablePasteCell","requires","find","_descriptionFactory","registerCustomCallback","paragraph","attributes","move","batch","showSuggestionHighlights","remove","markMultiRangeDeletion","getShiftedBy","root","removeRows","columnInsertionIndexes","previous","for","findAncestor","ck-suggestion-marker-insertion","registerPostFixer","createPositionBefore","_suggestionFactory","removeColumns","accept","discard","TableClipboard","insertContent","isInContent","getMarkers","getColumnIndexes","forceDefaultExecution","fill","some","type","setAttributes","document","map","unwrap","value","dataDowncast","rowInsertionRanges","fromEntries","getChangedMarkers","_splitMarkerName","plugins","TableUtils","editingDowncast","_replaceTableSlotCell","push","insertColumns","createRangeOn","differ","suggestion","markerName","tableCellPadding","listenTo","elementToElement","conversion","element","createRangeIn","markerToHighlight","oldRange","startsWith","join","row","options","length","endRow","Users","getRows","getSuggestion","tableCellVerticalAlignment","removeMarkers","getSelectionAffectedTableCells","tableCellBorderColor","name","isEmpty","position","subType","formatBlock","insertionRanges","insertRows","locale","change","createElement","registerDescriptionCallback","getContainedElement","getChildren","getTableIfOnlyTableInContent","tablePasteColumn","newRange","_getCoordsForCells","isEqual","schema","includes","rowInsertionIndexes","author","TrackChangesEditing","editor","endColumn","end","createTableWalker","filter","register","documentSelection","set","removeMarker","activeMarkers","tableCellBorderWidth","tableCellSuggestion","markMultiRangeInsertion","suggestion:formatBlock:tablePasteCell","tablePasteRow","updateMarker","tablePaste","insert","cells","getChanges","rows","containsRange","deletionRanges","selection","high","tablePasteChainId","getRange","suggestion-td","tableCellBackgroundColor","markMultiRangeBlockFormat","deletion","columnInsertionRanges","first","_tablePostFixingSubtypes","previousSibling","setAttribute","last","redo","getAllAdjacentSuggestions","getChild","tableCellBorderStyle","add","has","commands","nextSibling","every","suggestionLoaded","keys","getSuggestions","insertion","hasSuggestion","columns"];var ra,ia;ra=na,ia=405,function(t){for(;--t;)ra.push(ra.shift())}(++ia);const oa=function(t,e){return na[t-=0]},sa=[oa("0x2a"),oa("0x8"),oa("0x48"),"tableCellHorizontalAlignment",oa("0x5"),oa("0x3c"),oa("0x97")],xa=Object[oa("0x8a")](sa[oa("0x85")]((t=>[t,null])));class aa extends t.Plugin{static get[oa("0x61")](){return[zx]}afterInit(){const t=this[oa("0x20")];if(!t[oa("0x8d")].has(oa("0x7a")))return;const n=t[oa("0x8d")].get(oa("0x1f")),r=t[oa("0x8d")][oa("0x5d")](oa("0x8e")),i=t[oa("0x8d")][oa("0x5d")](zx),o=t.plugins[oa("0x5d")](oa("0x7a"));i[oa("0x41")][oa("0x91")]("tablePasteRow",oa("0x17")),t[oa("0x5c")][oa("0x1b")][oa("0x25")]("tableCellSuggestion",{allowIn:"tableCell",allowContentOf:"tableCell",isLimit:!0}),t[oa("0x9a")][oa("0x99")]({model:oa("0x2b"),view:"suggestion-td"});let s=null;t[oa("0x5c")].on(oa("0x7b"),((i,x)=>{const[a,c]=x,l=x[x[oa("0x0")]-1];l&&l[oa("0x7f")]||n._isForcedDefaultExecutionBlock||this[oa("0x20")][oa("0x4b")][oa("0x5d")]("trackChanges")[oa("0x87")]&&function(t,e,n,r,i){if(e&&!e.is(oa("0x26")))return!1;const o=i[oa("0x16")](t,n);if(!o||!la(o,void 0,r))return!1;const s=r[oa("0x7")](n[oa("0x84")][oa("0x37")]);if(!s.length)return!1;const x=s[0][oa("0x72")](oa("0x57")),a=r.getRowIndexes(s),c=r[oa("0x7e")](s),l={startRow:a[oa("0x40")],endRow:a[oa("0x44")],startColumn:c.first,endColumn:c[oa("0x44")]};return 1==s[oa("0x0")]&&(l[oa("0x1")]+=r[oa("0x3")](o)-1,l[oa("0x21")]+=r.getColumns(o)-1),la(x,l,r)}(a,c,t[oa("0x5c")],r,o)&&(i[oa("0x59")](),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[oa("0x5c")].change((()=>{t.model.insertContent(x[0],x[1],x[2],{forceDefaultExecution:!0});const r=(0,e.uid)(),{rowInsertionRanges:i,columnInsertionRanges:o,insertionRanges:a,deletionRanges:c,cells:l}=s;i[oa("0x0")]&&n[oa("0x2c")](i,oa("0x2e"),{tablePasteChainId:r}),o[oa("0x0")]&&n.markMultiRangeInsertion(o,"tablePasteColumn",{tablePasteChainId:r}),a[oa("0x0")]&&n[oa("0x2c")](a,oa("0x30"),{tablePasteChainId:r,skipNestingCheck:!0}),c[oa("0x0")]&&n[oa("0x6b")](c,"tablePaste",{tablePasteChainId:r,skipNestingCheck:!0});const u=n[oa("0x3d")](l[oa("0x85")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],"tablePasteCell",{tablePasteChainId:r});if(u){const e=u.getMarkers(),n=[];for(const{element:r,attributes:i}of l){if(!i)continue;const o=t[oa("0x5c")].createRangeOn(r),s=e[oa("0x62")]((t=>t[oa("0x3a")]().isEqual(o)));s&&n.push([s[oa("0x9")],i])}n[oa("0x0")]&&u[oa("0x43")]("markerAttributes",Object.fromEntries(n))}s=null})))}),{priority:e.priorities[oa("0x38")]+10}),t[oa("0x8d")][oa("0x5d")](oa("0x7a")).on(oa("0x90"),((t,e)=>{const[n,r,,i]=e;if(!s)return;t[oa("0x59")]();const o=n.cell,x=r,a=ca(o),c=ca(x);t[oa("0x5b")]=o;let l=null,u=null;if(c||a)if(a&&!c){i[oa("0x6a")](o[oa("0x47")](0));for(const t of Array[oa("0x5e")](x.getChildren()))i.insert(t,o,oa("0x22"));const t=s[oa("0x1d")][oa("0x1c")](n[oa("0xa1")]),e=s.columnInsertionIndexes[oa("0x1c")](n.column);t||e||(l=i[oa("0x9c")](o))}else c&&!a&&(u=i[oa("0x9c")](o));else{const t=i.createElement(oa("0x2b")),e=i[oa("0x12")]("tableCellSuggestion");i.wrap(i[oa("0x9c")](o),e),i[oa("0x31")](t,o,0);for(const e of Array[oa("0x5e")](x[oa("0x15")]()))i[oa("0x31")](e,t,"end");l=i[oa("0x93")](t),u=i[oa("0x93")](e)}const d=Array.from(x[oa("0x56")]()).filter((([t])=>sa[oa("0x1c")](t)));s.cells[oa("0x91")]({element:o,attributes:d[oa("0x0")]?Object[oa("0x8a")](d):null}),l&&s[oa("0xe")].push(l),u&&s[oa("0x36")][oa("0x91")](u)}),{priority:"high"}),r.on(oa("0x92"),((e,n)=>{const[i,o={}]=n;if(!s)return;const x=o.at||0,a=o[oa("0x53")]||1;s[oa("0x6f")]=new Array(a)[oa("0x80")](x).map(((t,e)=>t+e));for(const{cell:e}of r[oa("0x23")](i,{startColumn:x,endColumn:x+a-1}))s[oa("0x3f")][oa("0x91")](t[oa("0x5c")].createRangeOn(e))}),{priority:oa("0x58")}),r.on(oa("0xf"),((e,n)=>{const[i,o={}]=n;if(!s)return;const x=o.at||0,a=o[oa("0x34")]||1;s.rowInsertionIndexes=new Array(a)[oa("0x80")](x)[oa("0x85")](((t,e)=>t+e));for(const{cell:e}of r[oa("0x23")](i,{startRow:x,endRow:x+a-1}))s[oa("0x89")][oa("0x91")](t[oa("0x5c")][oa("0x93")](e))}),{priority:oa("0x58")}),n[oa("0x63")][oa("0x13")]((e=>{if(e[oa("0xc")]&&e[oa("0xc")][oa("0x9f")]("tablePaste"))return e[oa("0x70")]?{}:{type:oa("0x51"),content:Jr(t[oa("0x10")],"*Replace table cells*")}}));const x=()=>!1;for(const t of[oa("0x30"),oa("0x17"),oa("0x2e"),oa("0x60")])n[oa("0x76")][oa("0x64")](oa("0x51"),t,oa("0xa0"),x),n[oa("0x76")].registerCustomCallback(oa("0x3e"),t,oa("0xa0"),x),n._suggestionFactory[oa("0x64")](oa("0xd"),t,oa("0xa0"),x);n[oa("0x76")].registerCustomCallback("formatBlock",oa("0x60"),oa("0x79"),x),n._suggestionFactory[oa("0x64")](oa("0xd"),oa("0x60"),oa("0x78"),((e,n,r)=>{const i=e[oa("0x85")]((t=>t[oa("0x14")]()))[oa("0x24")]((t=>t)),o=new Map(i.map((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s[oa("0x32")])e&&o[oa("0x27")](t,e);else if(r&&r.markerAttributes)for(const[e,n]of Object.entries(r[oa("0x5a")])){const r=t[oa("0x5c")][oa("0x54")][oa("0x5d")](e),i=r?r[oa("0x3a")]()[oa("0x14")]():null;i&&o.set(i,n)}t[oa("0x5c")].change((t=>{for(const[e,n]of o)t[oa("0x83")]({...xa,...n},e)}))}));const a=(e,r)=>{n._suggestionFactory[oa("0x64")](e,oa("0x30"),r,((i,o,s)=>{t[oa("0x5c")][oa("0x11")]((t=>{const x=[];for(const t of i){const e=t.start.nodeAfter;e.is(oa("0x9b"),"tableCellSuggestion")&&x.push(e)}n._suggestionFactory.getSuggestionCallback(e,null,r)(i,o,s);for(const e of x)"$graveyard"!=e[oa("0x6d")].rootName&&t.unwrap(e)}))}))};a("insertion","accept"),a(oa("0x51"),oa("0x79")),a(oa("0x3e"),oa("0x78")),a(oa("0x3e"),oa("0x79")),n[oa("0x76")][oa("0x64")](oa("0x51"),"tablePasteRow",oa("0x79"),(t=>{const e=t[oa("0x85")]((t=>t.getContainedElement())),n=e[0][oa("0x72")](oa("0x57")),{minRow:o,maxRow:s}=i[oa("0x19")](e);r[oa("0x6e")](n,{at:o,rows:s-o+1})})),n[oa("0x76")][oa("0x64")](oa("0x51"),oa("0x17"),"discard",(t=>{const e=t.map((t=>t[oa("0x14")]())),n=e[0].findAncestor(oa("0x57")),{minColumn:o,maxColumn:s}=i[oa("0x19")](e);r[oa("0x77")](n,{at:o,columns:s-o+1})}));const c=(t,e)=>{if(!e[oa("0xc")]||!e[oa("0xc")][oa("0x9f")](oa("0x30")))return;const r=e[oa("0x66")].tablePasteChainId,i=n[oa("0x50")]()[oa("0x24")]((t=>t[oa("0x7c")]&&t[oa("0x66")]&&t[oa("0x66")][oa("0x39")]==r));i[oa("0x0")]&&e[oa("0x46")]()[oa("0x0")]!=i[oa("0x0")]&&i.reduce(((t,e)=>(t.next=e,e.previous=t,e)))};function l(t,e=!0){const{id:r}=n._splitMarkerName(t[oa("0x96")]),i=["ck-suggestion-marker",oa("0x73")],o=n[oa("0x29")][oa("0x1c")](t[oa("0x96")]);return o&&i.push("ck-suggestion-marker--active"),{classes:i,attributes:{"data-suggestion":r},priority:o&&e?3010:3e3}}n.on(oa("0x4e"),c,{priority:"high"}),n.on("suggestionUnloaded",c,{priority:"high"}),t.model[oa("0x84")][oa("0x74")]((()=>{let e=!1;const r=Array[oa("0x5e")](t[oa("0x5c")][oa("0x84")][oa("0x94")].getChangedMarkers());for(const{name:i,data:o}of r){const{group:r,type:s,id:x}=n[oa("0x8c")](i);if(oa("0x95")!=r||oa("0x3e")!=s||o[oa("0x9e")])continue;if(!n[oa("0x52")](x))continue;const a=n[oa("0x4")](x)[oa("0x55")](),c=t[oa("0x8d")].get(oa("0x2")).me;for(const t of n[oa("0x50")]())if(t[oa("0x7c")]&&t[oa("0x1e")]==c&&oa("0xd")==t[oa("0x82")]&&oa("0x60")==t.subType&&t[oa("0x55")]()[oa("0x4d")]((t=>a[oa("0x81")]((e=>e[oa("0x35")](t,!0))))))for(const n of t[oa("0x46")]())n[oa("0x7c")]&&(n[oa("0x79")](),e=!0)}return e})),t[oa("0x5c")][oa("0x84")].registerPostFixer((e=>{const r=t[oa("0x4b")][oa("0x5d")](oa("0x45"));if(!r||!r._createdBatches[oa("0x4a")](e[oa("0x68")]))return!1;let i=!1;const o=t[oa("0x8d")].get(oa("0x2")).me,s=t[oa("0x5c")][oa("0x84")][oa("0x94")][oa("0x33")](),x=Array[oa("0x5e")](t.model[oa("0x84")][oa("0x94")][oa("0x8b")]())[oa("0x24")]((({name:t,data:e})=>{const{group:r,subType:i,authorId:s}=n[oa("0x8c")](t);return"suggestion"==r&&oa("0x30")==i&&s==o.id&&!e[oa("0x9e")]}));for(const t of s){if(oa("0x31")!=t.type||oa("0x2b")!=t.name||1!=t[oa("0x0")])continue;const n=e.createRange(t[oa("0xb")],t[oa("0xb")][oa("0x6c")](1));if(!x.find((({data:t})=>t[oa("0x18")][oa("0x1a")](n))))for(const{name:t,data:r}of x)if(n[oa("0x35")](r[oa("0x18")])){e[oa("0x2f")](t,{range:n}),i=!0;break}}return i})),t[oa("0x5c")].document[oa("0x74")]((e=>{let r=!1;const i=t[oa("0x8d")][oa("0x5d")](oa("0x2")).me,o=n.getSuggestions()[oa("0x24")]((t=>t[oa("0x7c")]&&t[oa("0x1e")]==i)),s=new Set,x=new Set;for(const t of o)if("tablePaste"==t[oa("0xc")])for(const e of t[oa("0x7d")]()){const n=e.getRange()[oa("0x14")]();if(n)if(n.is(oa("0x9b"),"tableCellSuggestion")&&ca(n)){t.removeMarker(e[oa("0x9")]),s[oa("0x49")](n),r=!0;const i=n[oa("0x4c")],o=n[oa("0x42")],a=i&&i.is(oa("0x9b"),"tableCellSuggestion"),c=o&&o.is(oa("0x9b"),oa("0x2b"));a&&!s[oa("0x4a")](i)&&x[oa("0x49")](i),c&&!s[oa("0x4a")](o)&&x[oa("0x49")](o)}else n.is(oa("0x9b"),oa("0x65"))&&n.isEmpty&&(t[oa("0x28")](e[oa("0x9")]),r=!0)}else if(oa("0x60")==t.subType){if(!t[oa("0x66")]||!t[oa("0x66")][oa("0x39")])continue;const e=t.attributes[oa("0x5a")];if(e&&Object[oa("0x4f")](e)[oa("0x0")])continue;const n=t[oa("0x66")][oa("0x39")];let i=!0,s=!0;for(const e of o)if(e[oa("0xc")]&&e[oa("0xc")][oa("0x9f")](oa("0x30"))){if(!e[oa("0x66")][oa("0x39")]){s=!1;break}if(e.id!=t.id&&e.attributes[oa("0x39")]==n){i=!1;break}}s&&i&&(t[oa("0x6")](),r=!0)}for(const t of s)e[oa("0x6a")](t);for(const t of x)e[oa("0x86")](t);return r})),t[oa("0x9a")][oa("0x71")](oa("0x8f"))[oa("0x9d")]({model:oa("0x2d"),view:(t,e)=>l(t),converterPriority:oa("0x38")}),t[oa("0x9a")][oa("0x71")](oa("0x88"))[oa("0x9d")]({model:oa("0x2d"),view:(t,e)=>e[oa("0xa2")][oa("0x69")]?l(t,!1):null,converterPriority:oa("0x38")});const u=t.editing.view;this[oa("0x98")](u[oa("0x84")],oa("0x5f"),((t,e)=>{const n=[];for(const t of u[oa("0x9c")](e.content).getItems())t.is(oa("0x9b"),oa("0x3b"))&&n[oa("0x91")](t);u[oa("0x11")]((t=>{for(const e of n)t[oa("0x67")](t[oa("0x9c")](e),t[oa("0x75")](e)),t.remove(e)}))}))}}function ca(t){if(t[oa("0xa")])return!0;const e=t[oa("0x47")](0);return e.is(oa("0x9b"),"paragraph")&&e[oa("0xa")]}function la(t,e={},n){for(const{isAnchor:r,cellHeight:i,cellWidth:o}of n[oa("0x23")](t,{includeAllSlots:!0,...e}))if(!r||1!=i||1!=o)return!1;return!0}const ua=["getTableColumnsWidths","accept","handleSuggestionDescription","*Format:* resize table","tableWidth","getColumnGroupElement","_descriptionFactory","discard","getSelectedElement","bind","plugins","has","commandParams","registerDescriptionCallback","formatGroupId","_suggestionFactory","editor","author","subType","resizeTable","model","columnWidths","format","registerCustomCallback","formatBlock","getSuggestionCallback","resizeTableWidth","type","TrackChangesEditing","change","table","formatInline","Users","get","handleResizeTableWidthCommand","enableCommand"];var da,ga;da=ua,ga=243,function(t){for(;--t;)da.push(da.shift())}(++ga);const fa=function(t,e){return ua[t-=0]};class ma extends t.Plugin{afterInit(){if(!this[fa("0x19")][fa("0x13")][fa("0x14")]("TableColumnResizeEditing"))return;const t=this[fa("0x19")][fa("0x13")][fa("0x6")]("TrackChangesEditing");t[fa("0x8")](fa("0x23"),this[fa("0x7")][fa("0x12")](this)),t[fa("0x18")][fa("0x20")](fa("0x21"),"resizeTable",fa("0xa"),t[fa("0x18")][fa("0x22")](fa("0x21"),null,"discard")),t[fa("0x18")].registerCustomCallback(fa("0x21"),fa("0x1c"),"discard",t[fa("0x18")].getSuggestionCallback("formatBlock",null,fa("0xa"))),t[fa("0xf")][fa("0x16")](this[fa("0xb")][fa("0x12")](this))}handleResizeTableWidthCommand(t,e){const n=this[fa("0x19")][fa("0x13")][fa("0x6")](fa("0x1")),r=this[fa("0x19")][fa("0x13")][fa("0x6")]("TableColumnResizeEditing"),i=e[fa("0x3")]||this[fa("0x19")][fa("0x1d")].document.selection[fa("0x11")]();this[fa("0x19")][fa("0x1d")][fa("0x2")]((()=>{const o=r[fa("0xe")](i);let s=o?r[fa("0x9")](o):null,x=i.getAttribute("tableWidth")||null;const a=e[fa("0xd")]||x,c=e[fa("0x1e")]||s,l=this[fa("0x19")][fa("0x13")].get(fa("0x5")).me;for(const t of n.getSuggestions()){const e=t.getContainedElement();if(fa("0x1c")===t[fa("0x1b")]&&e===i){t[fa("0x1a")]!==l&&t[fa("0x10")]();const e=t.data[fa("0x15")];x=e[0].tableWidth,s=e[0][fa("0x1e")];break}}t({table:i,tableWidth:a,columnWidths:c}),n.markBlockFormat(i,{commandName:"resizeTableWidth",commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:fa("0x1c")},[],fa("0x1c"))}))}[fa("0xb")](t){if("formatBlock"!=t[fa("0x0")]&&fa("0x4")!=t[fa("0x0")])return;const{data:e}=t;if(e&&"resizeTable"===e[fa("0x17")]){const t=fa("0xc");return{type:fa("0x1f"),content:Jr(this[fa("0x19")].locale,t)}}}}const ha=["insertTemplate","has","plugins","get","TrackChangesEditing","Template","enableCommand"];var ba,pa;ba=ha,pa=342,function(t){for(;--t;)ba.push(ba.shift())}(++pa);const Ea=function(t,e){return ha[t-=0]};class _a extends t.Plugin{afterInit(){const t=this.editor;t.plugins[Ea("0x2")](Ea("0x6"))&&t[Ea("0x3")][Ea("0x4")](Ea("0x5"))[Ea("0x0")](Ea("0x1"))}}const Ta=["enableCommand","_descriptionFactory","editor","afterInit","registerElementLabel","insertTableOfContents","plugins","TrackChangesEditing","get","commands"];var ya,Ca;ya=Ta,Ca=270,function(t){for(;--t;)ya.push(ya.shift())}(++Ca);const Aa=function(t,e){return Ta[t-=0]};class ka extends t.Plugin{[Aa("0x3")](){const t=this[Aa("0x2")];if(!t[Aa("0x9")][Aa("0x8")](Aa("0x5")))return;t[Aa("0x6")][Aa("0x8")](Aa("0x7"))[Aa("0x0")](Aa("0x5"));const e=t.plugins[Aa("0x8")]("TrackChangesEditing"),n=t.locale;e[Aa("0x1")][Aa("0x4")]("tableOfContents",(t=>Jr(n,"ELEMENT_TABLE_OF_CONTENTS",t)))}}const Ia=["newRange","model","differ","isEqual","locale","nodeBefore","from","end","TrackChangesEditing","getNearestSelectionRange","isCollapsed","plugins","ELEMENT_TITLE","start","get","Title","removeMarker","title-content","element","forward","registerPostFixer","document","schema","suggestion","has","registerElementLabel","afterInit"];var Ra,Sa;Ra=Ia,Sa=352,function(t){for(;--t;)Ra.push(Ra.shift())}(++Sa);const Na=function(t,e){return Ia[t-=0]};class va extends t.Plugin{[Na("0x19")](){const t=this.editor;if(!t.plugins[Na("0x17")](Na("0xe")))return;const e=t[Na("0xa")][Na("0xd")](Na("0x7"));e._descriptionFactory[Na("0x18")](Na("0x10"),(()=>Jr(t[Na("0x3")],Na("0xb")))),t[Na("0x0")][Na("0x14")][Na("0x13")]((n=>{let r=!1;const i=Array[Na("0x5")](t[Na("0x0")][Na("0x14")][Na("0x1")].getChangedMarkers());for(const{name:o,data:s}of i){const{group:i}=e._splitMarkerName(o);if(Na("0x16")!==i||!s[Na("0x1a")])continue;const x=s.newRange,a=x.end[Na("0x4")];if(!a||!a.is(Na("0x11"),"title-content"))continue;if(!x[Na("0xc")].isTouching(x[Na("0x6")]))continue;const c=t[Na("0x0")][Na("0x15")][Na("0x8")](x[Na("0x6")],Na("0x12"));if(c&&c[Na("0x9")]){const t=n.createRange(x.start,c.start);t[Na("0x2")](x)||(n.updateMarker(o,{range:t}),r=!0)}r||(n[Na("0xf")](o),r=!0)}return r}))}}const La=["editor","get","undo","UndoEditing","enableCommand","plugins","TrackChangesEditing"];var Ma,wa;Ma=La,wa=345,function(t){for(;--t;)Ma.push(Ma.shift())}(++wa);const Oa=function(t,e){return La[t-=0]};class Fa extends t.Plugin{afterInit(){const t=this[Oa("0x5")],e=t.plugins[Oa("0x6")](Oa("0x4"));t[Oa("0x3")].has(Oa("0x1"))&&(e[Oa("0x2")](Oa("0x0")),e.enableCommand("redo"))}}const Da=["requires","TrackChangesEditing","toggleTableCaption","plugins","enableCommand","has","editor","get","afterInit"];var Ba,Pa;Ba=Da,Pa=169,function(t){for(;--t;)Ba.push(Ba.shift())}(++Pa);const Ua=function(t,e){return Da[t-=0]};class ja extends t.Plugin{static get[Ua("0x2")](){return[zx]}[Ua("0x1")](){const t=this[Ua("0x8")];t[Ua("0x5")][Ua("0x7")]("TableCaptionEditing")&&t[Ua("0x5")][Ua("0x0")](Ua("0x3"))[Ua("0x6")](Ua("0x4"))}}const Ga=["model","get","tableCellBorderWidth","getAttribute","getSuggestions","tableCellWidth","tableCellVerticalAlignment","subType","document","format","tableCellHeight","editor","_suggestionFactory","change","tableBackgroundColor","discard","enableCommand","join","*Format:* change table cell properties","batch","tableAlignment","tableHeight","TablePropertiesEditing","getSelectionAffectedTableCells","locale","commandParams","_getSuggestion","table","tableCellHorizontalAlignment","_handlePropertyChange","tableCellProperties","TrackChangesEditing","tableWidth","removeAttribute","registerCustomCallback","accept","registerDescriptionCallback","TrackChangesTableProperties","formatBlock","tableCellBorderStyle","tableProperties","handleSuggestionDescription","getFirstPosition","selection","getContainedElement","tableBorderColor","plugins","setAttribute","has","handleDiscardAction","tableCellPadding","getSuggestionCallback"];var Ha,Va;Ha=Ga,Va=283,function(t){for(;--t;)Ha.push(Ha.shift())}(++Va);const za=function(t,e){return Ga[t-=0]};class Wa extends t.Plugin{constructor(t){super(t),this[za("0x11")]=[za("0x16"),"tableBorderStyle","tableBorderWidth",za("0x31"),za("0x9"),za("0x32"),za("0x2b")],this[za("0x7")]=["tableCellBorderColor",za("0x10"),za("0x1f"),za("0x1b"),za("0x22"),za("0x27"),"tableCellBackgroundColor",za("0x5"),za("0x23")]}static get pluginName(){return za("0xe")}afterInit(){const t=this[za("0x28")][za("0x17")][za("0x1e")](za("0x8"));if(this[za("0x28")][za("0x17")][za("0x19")](za("0x33"))){for(const e of this[za("0x11")])t[za("0x2d")](e,((t,n)=>{const r=this[za("0x28")][za("0x1d")][za("0x25")][za("0x14")][za("0x13")]().findAncestor(za("0x4"));this[za("0x6")](e,[r],this[za("0x11")],za("0x11"),t,n)}));t._suggestionFactory[za("0xb")]("formatBlock",za("0x11"),za("0xc"),t._suggestionFactory[za("0x1c")](za("0xf"),null,"discard")),t[za("0x29")][za("0xb")](za("0xf"),za("0x11"),za("0x2c"),((t,e)=>this[za("0x1a")](this[za("0x11")],t,e))),t._suggestionFactory[za("0xb")](za("0xf"),za("0x11"),za("0x2e"),(()=>!1))}if(this[za("0x28")][za("0x17")][za("0x19")]("TableCellPropertiesEditing")){for(const e of this[za("0x7")])t[za("0x2d")](e,((t,n)=>{const r=this[za("0x28")][za("0x17")][za("0x1e")]("TableUtils")[za("0x0")](this.editor[za("0x1d")].document[za("0x14")]);this[za("0x6")](e,r,this[za("0x7")],"tableCellProperties",t,n)}));t[za("0x29")][za("0xb")](za("0xf"),za("0x7"),za("0xc"),t._suggestionFactory.getSuggestionCallback("formatBlock",null,"discard")),t._suggestionFactory[za("0xb")](za("0xf"),za("0x7"),za("0x2c"),((t,e)=>this[za("0x1a")](this[za("0x7")],t,e))),t[za("0x29")][za("0xb")](za("0xf"),za("0x7"),"join",(()=>!1))}t._descriptionFactory[za("0xd")]((t=>this.handleSuggestionDescription(t)))}_handlePropertyChange(t,e,n,r,i,o){const s=this[za("0x28")][za("0x17")].get(za("0x8"));this[za("0x28")][za("0x1d")].enqueueChange(o[za("0x30")],(()=>{for(const t of e)if(this[za("0x3")](t,r))i(o);else{const e={};for(const r of n){const n=t[za("0x20")](r);void 0!==n&&(e[r]=n)}i(o),s.markBlockFormat(t,{commandParams:[e]},[],r)}}))}[za("0x1a")](t,e,n){const r=e[0].start.nodeAfter,i=n[za("0x2")][0];this[za("0x28")][za("0x1d")][za("0x2a")]((e=>{for(const n of t)void 0!==i[n]?e[za("0x18")](n,i[n],r):e[za("0xa")](n,r)}))}[za("0x12")](t){if(t.data)switch(t[za("0x24")]){case za("0x11"):return{type:"format",content:Jr(this[za("0x28")][za("0x1")],"*Format:* change table properties")};case za("0x7"):return{type:za("0x26"),content:Jr(this.editor[za("0x1")],za("0x2f"))}}}_getSuggestion(t,e){const n=this.editor.plugins[za("0x1e")](za("0x8"));for(const r of n[za("0x21")]({skipNotAttached:!0})){const n=r[za("0x15")]();if(r.subType===e&&n===t)return r}return null}}var Ka=Function.prototype,qa=Object.prototype,Xa=Ka.toString,$a=qa.hasOwnProperty,Za=Xa.call(Object);const Ya=function(t){if(!xe(t)||"[object Object]"!=gt(t))return!1;var e=xn(t);if(null===e)return!0;var n=$a.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Xa.call(n)==Za};const Ja=function(t){return Ya(t)?void 0:t};var Qa=it?it.isConcatSpreadable:void 0;const tc=function(t){return ge(t)||de(t)||!!(Qa&&t&&t[Qa])};const ec=function t(e,n,r,i,o){var s=-1,x=e.length;for(r||(r=tc),o||(o=[]);++s<x;){var a=e[s];n>0&&r(a)?n>1?t(a,n-1,r,i,o):sn(o,a):i||(o[o.length]=a)}return o};const nc=function(t){return(null==t?0:t.length)?ec(t,1):[]};const rc=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)};var ic=Math.max;const oc=function(t,e,n){return e=ic(void 0===e?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=ic(r.length-e,0),s=Array(o);++i<o;)s[i]=r[e+i];i=-1;for(var x=Array(e+1);++i<e;)x[i]=r[i];return x[e]=n(s),rc(t,this,x)}};const sc=function(t){return function(){return t}};const xc=ee?function(t,e){return ee(t,"toString",{configurable:!0,enumerable:!1,value:sc(e),writable:!0})}:function(t){return t};var ac=Date.now;const cc=function(t){var e=0,n=0;return function(){var r=ac(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(xc);const lc=function(t){return cc(oc(t,void 0,nc),t+"")}((function(t,e){var n={};if(null==t)return n;var r=!1;e=ur(e,(function(e){return e=hr(e,t),r||(r=e.length>1),e})),oe(t,dn(t),n),r&&(n=tr(n,7,Ja));for(var i=e.length;i--;)Wr(n,e[i]);return n})),uc=["getLastMatchingPosition","oldValue","_cutOutSuggestionMarker","addMarker:suggestion","TrackChangesEditing","createPositionAt","_refreshAttributeSuggestionsChain","get","_rangeIsInLocalUserInsertion","author","markAttributeChange","authorName","buildSuggestion","howMany","_suggestionFactory","ck-suggestion-marker-","nodeAfter","add","fire","_breakSuggestionMarker","attributes","_commentsRepository","config","markMultiRangeBlockFormat","updateSuggestion","suggestion:","removeMarker:suggestion:formatBlock","markInsertion","from","getSuggestion","attributeOldValue","_isDataLoaded","formatBlock:join","_reduceExistingSuggestions","startsWith","getAncestors","trackChanges.trackFormatChanges","track-changes-command-not-found","ready","_getSuggestionData","pop","@external","_registerBlockAttribute","format","isCollapsed","filter","$elementName","return","newRange","keys","external:","always","ck-suggestion-marker--active","isAtStart","isBefore","getUser","_setSuggestionData","detach","attribute","then","isIntersecting","_handleNewSuggestionMarker","containsRange","_setSuggestionRange","insertion:accept","getAttribute","group","for","plugins","newValue","join","size","Users","formatInline:join","consumable","getItems","accept","getSuggestions","head","getFirstRange","change:data","track-changes-adapter-missing-getsuggestion","rejected","formatBlock","_registerDefaultCallbacks","track-changes-enable-command-twice","isMultiRange","registerPostFixer","formatBlock:discard","acceptSuggestion","suggestionChanged","_recordAttributeSuggestionsFromVersion","tablePasteChainId","isOwn","dataReady","key","isDocumentOperation","formatInline","isObject","_SUGGESTION_ANNOUNCEMENT","isAfter","_mergeNestedSuggestions","backward","hasCommentThread","rootName","getNearestSelectionRange","getShiftedBy","suggestionUnloaded","widget","deletion:join","addMarkerName","_adapter","markDeletion","originalSuggestionId","$text","isExternal","discardSelectedSuggestions","suggestion","enableCommand","substring","commentThread","split","marker-count","error-saving-suggestion-data-suggestion-discarded","attribute:accept","after","_refreshSuggestionsChain","deleteContent","skipNestingCheck","markerName","reconvertMarker","formatBlock:accept","document","map","multi","containsRangeInObject","root","applyOperation","isInsideObject","getRanges","rethrowUnexpectedError","includes","selection","addComment","multipleBlocks","_model","_defaultCallbacks","markerNameToElements","isAtEnd","discardAllSuggestions","addHighlight","_isForcedDefaultExecutionBlock","oldRange","isIntersectingWithRange","change","addMarker:suggestion:formatBlock","notReady","_trackFormatChanges","ck-suggestion-marker-formatBlock","markBlockFormat","ck-suggestion-marker","_suggestionState","insertContent","getFirstMarker","insertion","enableReadOnlyMode","LEAVE","removeClass","trackChangesCommand","item","editing","targetPosition","subType","isNextTo","formatBlock:","_enableDefaultAttributesIntegration","getOperations","hasComments","requires","_createSuggestion","getAllAdjacentSuggestions","fetchCommentThread","showSuggestionHighlights","length","forceDefaultExecution","_customCallbacks","formatInline:","substr","Creating a suggestion for attribute with too long attribute key. This may lead to errors. Change the attribute key to a value shorter than 37 characters.","track-changes-user-not-found","mapper","parent","find","delete","createRange","default","PendingActions","resolve","some","getChangedMarkers","stop","getChanges","_suggestions","has","addCommentThread","_editor","enqueueChange","_processAttributeSuggestions","getDifference","deletion:chain","createElement","setAttribute","removed","addMarker:suggestion:attribute","ck-suggestion-marker-formatInline","rename","fromRange","move","ENTER","isEqual","name","nodeBefore","removeMarkers","isBlock","PENDING_ACTION_SUGGESTION","ariaLiveAnnouncer","_descriptionFactory","_addSuggestionMarker","assign","data","suggestionLoaded","$textProxy","attributeNewValue","_recordAttributeChanges","schema","position","adapter","groupId","every","trackChanges.mergeNestedSuggestions","FORMATTING","upcast","markMultiRangeInsertion","comments","addSuggestionData","_splitMarkerName","discard","dataToMarker","formatInline:chain","unshift","locale","CommentsRepository","markerToData","stopListening","newName","isSelectable","previous","_getAuthorFromId","containsItem","addRange","_inlineAttributeKeys","isUndo","editor","unbind","discardSuggestion","data-suggestion","_isBlockAttribute","push","trackChanges","define","toViewElement","high","values","markInlineFormat","next","type","collaboration.channelId","_processAttributeChanges","oldName","insertion:chain","meta","insertion:join","clear","remove","_saved","_enabledCommands","_joinSuggestions","getMultiRangeId","getWalker","markerToHighlight","getRange","isInContent","getSuggestionCallback","pluginName","$graveyard","_removeSuggestion","deletion:discard","setTo","batch","_checkSuggestionCorrectness","deletion","hasSuggestion","_onDiscard","differ","getContainedElement","containerElement","start","version","commands","isLimit","_getMarkerAnnouncementText","execute","setSelection","removeAttribute","dataDowncast","element","creator","markerReady","highest","insertion:discard","changeAttribute","range","_getExternalAuthor","deletion:accept","attribute:","authoredAt","activeMarkers","suggestion:attribute:","change:_saved","containsPosition","unbindElementFromMarkerName","end","value","announce","addClass","_joinWithAdjacentSuggestions","getIntersection","refresh","splice","_registerInlineAttribute","formatBlock:chain","listenTo","markMultiRangeDeletion","getCustomProperty","model","consume","formatInline:discard","isRemovable","conversion","fromCharCode","_updateSuggestionData","set","documentSelection","forward","change:activeMarkers","writer","options","sort","updateMarker","addSuggestion","suggestion-type","removeMarker","track-changes-suggestion-data-mismatch","formatGroupId","deletion:","before","lowest","_reduceSuggestionAttributeRange","addUser","never","createdAt","_findSuggestions","_initAriaMarkerChangeAnnouncements","low","editingDowncast","acceptAllSuggestions","track-changes-suggestion-not-found","insert","_blockAttributeKeys","toUpperCase"];var dc,gc;dc=uc,gc=344,function(t){for(;--t;)dc.push(dc.shift())}(++gc);const fc=function(t,e){return uc[t-=0]},mc=fc("0x52");class hc extends t.Plugin{static get[fc("0xd6")](){return["CommentsRepository",o.Users,t.PendingActions,ai,gi,Ei,Ai,vi,Fi,Gi,Qi,io,co,ho,To,Ro,Mo,Po,Vo,Xo,Qo,is,fs,cs,Es,As,Ns,Os,Us,Ks,Ys,nx,xx,dx,px,Cx,Sx,Ox,Ux,zx,Zx,ea,ja,aa,ma,ka,Wa,_a,va,Fa]}static get[fc("0x149")](){return fc("0x28")}constructor(t){function e(t){return t[fc("0xa9")]((t=>String[fc("0x5")](t)))[fc("0x6a")]("")}super(t),this[fc("0x7f")]=null,this[fc("0x7")](fc("0x16a"),[]),this.on(fc("0xa"),((e,n,r,i)=>{this[fc("0xb5")][fc("0xbe")]((()=>{for(const e of[...i,...r])this._model.markers[fc("0xef")](e)&&t[fc("0xce")][fc("0xa6")](e)}))})),this[fc("0x106")]=new ri(this[fc("0x12a")][fc("0x0")][fc("0x10e")],this[fc("0x12a")][fc("0x11e")]),this[fc("0x93")]=null,this[fc("0x32")]=new bc(this[fc("0x12a")]),this[fc("0xee")]=new Map,this[fc("0x39")]=t[fc("0x68")][fc("0x2b")](fc("0x11f")),this[fc("0x141")]=new Set,this[fc("0xb5")]=this[fc("0x12a")][fc("0x0")],this[fc("0xc5")]=new WeakMap,this[fc("0xbb")]=!1,this[fc("0x22")]=new Set([fc("0x52")]),this._inlineAttributeKeys=new Set,t[fc("0x3a")][fc("0x131")]("trackChanges.trackFormatChanges",fc("0xe7")),this._trackFormatChanges=t[fc("0x3a")][fc("0x2b")](fc("0x48")),t.config.define(fc("0x113"),!0),this[fc("0x89")]=t[fc("0x3a")].get(fc("0x113")),this[fc("0xcc")]=new d(t,this._enabledCommands),this[fc("0x1c")](),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,50,52,52,48])}init(){const t=this.editor,n=(t,e)=>{if(fc("0x5e")!=t)return fc("0x33")+t;const n=e.split("|")[0];return this[fc("0x12e")](n)?fc("0xc2"):fc("0xfa")};t[fc("0x4")][fc("0x67")](fc("0x1e"))[fc("0x145")]({model:fc("0x99"),view:t=>{const{id:e,type:r,subType:i}=this._splitMarkerName(t[fc("0xa5")]),o=["ck-suggestion-marker",n(r,i)];let s=3e3;return this.activeMarkers[fc("0xb1")](t[fc("0xa5")])&&(o[fc("0x12f")]("ck-suggestion-marker--active"),s=3010),fc("0x150")==r&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[fc("0x4")][fc("0x67")](fc("0x15e"))[fc("0x35")]((e=>{e.on(fc("0x27"),((e,n,r)=>{if(!r[fc("0xc")][fc("0xda")])return;const i=n.item;if(!i)return;const o=r[fc("0xe2")][fc("0x132")](i);t[fc("0x0")][fc("0x10e")][fc("0x86")](i)&&o&&!o[fc("0x17b")](fc("0x90"))&&o.is(fc("0x155"))&&(0,x.toWidget)(o,r[fc("0xb")])}),{priority:fc("0x133")})})),t[fc("0x4")][fc("0x67")]("dataDowncast").markerToHighlight({model:fc("0x99"),view:(t,e)=>{if(!e[fc("0xc")][fc("0xda")])return null;const{type:r,subType:i}=this[fc("0x119")](t.markerName);return{classes:[fc("0xc4"),n(r,i)],priority:3e3}}});const r=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(r,i,o)=>{if(!i.item)return;const{id:s}=this[fc("0x119")](i[fc("0xa5")]);if(n){const t=Sc(this[fc("0xee")][fc("0x2b")](s));if(!this[fc("0x12e")](t))return}if(i[fc("0xcd")].is(fc("0xb2")))return void o[fc("0x6e")][fc("0x1")](i[fc("0xcd")],r[fc("0x100")]);const x=o[fc("0xe2")][fc("0x132")](i.item);if(i.item.is(fc("0x15f"))&&t[fc("0x0")][fc("0x10e")][fc("0x103")](i[fc("0xcd")])&&!x[fc("0x17b")]("addHighlight")){o[fc("0xb")][fc("0x172")](["ck-suggestion-marker","ck-suggestion-marker-formatBlock"],x),o[fc("0xb")][fc("0xf7")](fc("0x12d"),s,x),o.mapper.bindElementToMarker(x,i[fc("0xa5")]),e&&(this[fc("0x16a")][fc("0xb1")](i[fc("0xa5")])?o[fc("0xb")][fc("0x172")](fc("0x58"),x):o[fc("0xb")][fc("0xcb")](fc("0x58"),x));for(const e of t[fc("0x0")].createRangeIn(i.item)[fc("0x6f")]())o[fc("0x6e")].consume(e,r.name);o[fc("0x6e")].consume(i.item,r[fc("0x100")])}};t[fc("0x4")][fc("0x67")](fc("0x15e"))[fc("0x35")]((t=>{t.on(fc("0xbf"),((t,e,n)=>{n[fc("0xc")].showSuggestionHighlights&&r({showActiveMarkers:!1})(t,e,n)}),{priority:"highest"})})),t[fc("0x4")][fc("0x67")](fc("0x15e"))[fc("0x35")]((t=>{t.on("addMarker:suggestion:attribute",((t,e,n)=>{n.options.showSuggestionHighlights&&r({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:fc("0x162")})})),t[fc("0x4")][fc("0x67")]("dataDowncast")[fc("0x120")]({model:fc("0x99"),view:(t,e)=>e[fc("0xc")][fc("0xda")]?null:{group:fc("0x99"),name:t[fc("0xdf")](11)}}),t.conversion.for(fc("0x115")).elementToElement({view:{name:"suggestion",attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n="suggestion:"+t[fc("0x65")](fc("0x10"))+":"+t[fc("0x65")]("id");return t[fc("0x65")](fc("0x9e"))&&(n+=":"+t.getAttribute(fc("0x9e"))),e[fc("0xf6")]("$marker",{"data-name":n})}}),t[fc("0x4")][fc("0x67")](fc("0x115"))[fc("0x11b")]({view:fc("0x99")}),t.conversion[fc("0x67")](fc("0x1e")).add((t=>{t.on(fc("0xbf"),r(),{priority:"high"})})),t[fc("0x4")][fc("0x67")]("editingDowncast").add((t=>{t.on(fc("0xf9"),r({isAttributeSuggestion:!0}),{priority:fc("0x133")})})),t[fc("0x4")][fc("0x67")](fc("0x1e")).add((t=>{t.on(fc("0x3e"),((t,e,n)=>{const r=n[fc("0xe2")][fc("0xb7")](e[fc("0xa5")]);if(r)for(const t of r)t[fc("0x17b")](fc("0xba"))||(n.writer.removeClass(["ck-suggestion-marker",fc("0xc2"),fc("0x58")],t),n[fc("0xb")][fc("0x15d")](fc("0x12d"),t),n[fc("0xe2")][fc("0x16e")](t,e[fc("0xa5")]))}),{priority:"high"})})),t.conversion.for(fc("0x1e"))[fc("0x35")]((t=>{t.on("removeMarker:suggestion:attribute",((t,e,n)=>{const r=n[fc("0xe2")][fc("0xb7")](e[fc("0xa5")]);if(!r)return;const{id:i}=this._splitMarkerName(e.markerName),o=Sc(this[fc("0xee")].get(i));if(this[fc("0x12e")](o))for(const t of r)t[fc("0x17b")](fc("0xba"))||(n[fc("0xb")].removeClass([fc("0xc4"),"ck-suggestion-marker-formatBlock",fc("0x58")],t),n[fc("0xb")][fc("0x15d")](fc("0x12d"),t),n[fc("0xe2")][fc("0x16e")](t,e[fc("0xa5")]))}),{priority:fc("0x133")})})),t[fc("0x0")][fc("0xa8")][fc("0x7b")]((e=>{let n=!1;const r=Array[fc("0x40")](t[fc("0x0")][fc("0xa8")][fc("0x153")].getChangedMarkers()),i=new Set;for(const{name:x,data:a}of r){const{group:r,type:c,subType:l,id:u}=this._splitMarkerName(x);if(fc("0x99")!==r)continue;const d=this[fc("0xee")].get(u);if(null!=a[fc("0x54")]){fc("0x85")==c&&(n=n||_c(a[fc("0x54")],x,e,t[fc("0x0")][fc("0x10e")]));const r=fc("0x5e")==c&&this._isBlockAttribute(l[fc("0x9d")]("|")[0]);if(a[fc("0x54")].isCollapsed||fc("0x14a")==a[fc("0x54")][fc("0xac")][fc("0x8c")]||fc("0x77")==c&&!yc(a[fc("0x54")])||r&&!yc(a[fc("0x54")])||fc("0x150")==c&&(Ec(s=a[fc("0x54")])||(o=s).start[fc("0xe3")]==o[fc("0x16f")][fc("0x101")]&&o[fc("0x156")][fc("0xb8")]))e[fc("0x11")](x),n=!0;else{if(!d||!d[fc("0x147")])continue;i.add(d)}}}var o,s;return i[fc("0x6b")]>0&&(n=!!this._joinWithAdjacentSuggestions(i)||n),n})),t[fc("0x0")][fc("0xa8")][fc("0x7b")]((e=>{let n=!1;for(const r of t[fc("0x0")][fc("0xa8")][fc("0x153")][fc("0xed")]())if(fc("0x21")==r.type)for(const r of this[fc("0xee")][fc("0x134")]()){if(r.isMultiRange||!r.isInContent)continue;const i=fc("0x77")==r[fc("0x137")],o=Sc(r),s=o&&this._isBlockAttribute(o);if(!i&&!s)continue;const x=r[fc("0x73")]();if(x.start.parent!=x.end[fc("0xe3")]&&!x[fc("0x16f")][fc("0xb8")]){const i=t[fc("0x0")].createPositionAt(x[fc("0x156")][fc("0x34")],"end"),o=t[fc("0x0")][fc("0xe6")](x.start,i);e[fc("0xe")](r[fc("0xc7")](),{range:o}),n=!0}}return n})),t[fc("0x0")].document[fc("0x7b")]((t=>this[fc("0x139")](t))),t[fc("0x0")].document[fc("0x7b")]((t=>!t.batch.isLocal&&this[fc("0xf3")](t))),t[fc("0x0")].markers.on("update:suggestion",((t,e,n)=>{if(null==n){const{id:t}=this[fc("0x119")](e[fc("0x100")]),n=this[fc("0xee")][fc("0x2b")](t);n&&n.addMarkerName(e[fc("0x100")])}})),t[fc("0x0")][fc("0xa8")].on(fc("0x74"),(()=>{const e=Array[fc("0x40")](t.model[fc("0xa8")].differ.getChangedMarkers())[fc("0x51")]((t=>fc("0x99")===this._splitMarkerName(t[fc("0x100")])[fc("0x66")]));if(0===e[fc("0xdb")])return;e[fc("0xd")](((t,e)=>{const n=t[fc("0x109")][fc("0xbc")],r=e[fc("0x109")].oldRange;return null===n&&null===r?0:null===n&&null!==r?-1:null!==n&&null===r?1:n[fc("0x156")][fc("0x5a")](r[fc("0x156")])?-1:1}));const n=new Set,r=new Set;for(const{name:t,data:i}of e){const{id:e}=this._splitMarkerName(t);if(null===i[fc("0xbc")]){const e=this[fc("0x61")](t);r[fc("0x35")](e)}else{const t=this[fc("0xee")][fc("0x2b")](e);null!==i[fc("0x54")]||t.isInContent?(n.add(t[fc("0x72")]),r.add(t)):this[fc("0x14b")](t)}}r[fc("0x6b")]>0&&this._refreshSuggestionsChain(r);for(const t of n)this.fire(fc("0x7e"),t)})),t[fc("0x0")].on(fc("0xad"),((e,n)=>{const r=n[0];if(!this[fc("0xee")][fc("0x6b")])return;if(!r[fc("0x84")])return;if(r[fc("0x14e")][fc("0x129")]||!r.batch.isLocal)return;let i,o;switch(r[fc("0x137")]){case fc("0x21"):i=t[fc("0x0")].createPositionAt(r[fc("0x10f")]),o=i[fc("0x8e")](r[fc("0x31")]);break;case fc("0x9d"):i=t[fc("0x0")][fc("0x29")](r.splitPosition),o=t[fc("0x0")][fc("0x29")](r.moveTargetPosition);break;case fc("0xfd"):i=t.model[fc("0x29")](r[fc("0xcf")]),o=i[fc("0x8e")](r[fc("0x31")]);break;default:return}const s=t[fc("0x0")][fc("0xe6")](i,o);t[fc("0x0")][fc("0xbe")]((()=>{for(const{suggestion:t,meta:e}of this[fc("0x1b")](s)){if(t.isMultiRange)continue;if(fc("0x85")==t[fc("0x137")])continue;const n=Sc(t);if(n&&this[fc("0x12e")](n)&&fc("0x9d")!=r[fc("0x137")])continue;const x=t[fc("0x109")]&&t.data[fc("0xb4")];(fc("0x77")!=t[fc("0x137")]||fc("0x9d")==r[fc("0x137")]&&!x)&&(e[fc("0xab")]||fc("0xc8")==t.type&&e[fc("0x81")]||t[fc("0x73")]().containsRange(s)&&this[fc("0x37")](t,i,o))}}))}),{priority:fc("0x16")}),t[fc("0x0")].on(fc("0xa3"),((e,n)=>{const r=n[0],i=n[1];if(i&&i.forceDefaultExecution)return;if(this[fc("0xbb")])return;if(!this[fc("0xcc")].value)return;if(r[fc("0x50")])return;const o=t[fc("0x0")][fc("0x10e")],{start:s,end:x}=r[fc("0x73")](),a=s[fc("0x34")]&&o[fc("0x159")](s[fc("0x34")])?null:o[fc("0x8d")](s,fc("0x9")),c=x.nodeBefore&&o[fc("0x159")](x.nodeBefore)?null:o[fc("0x8d")](x,fc("0x8a")),l=t[fc("0x0")].createRange(a?a[fc("0x156")]:s,c?c.end:x);t[fc("0x0")][fc("0xbe")]((e=>{this[fc("0x94")](l);const n=t[fc("0x0")][fc("0x10e")][fc("0x8d")](l[fc("0x156")]);r.is(fc("0x8"))?e[fc("0x15c")](n):r[fc("0x14d")](n)})),e[fc("0xec")]()}),{priority:e.priorities.normal+10}),t[fc("0x0")].on(fc("0xc6"),((e,n)=>{const r=n[n[fc("0xdb")]-1];r&&r.forceDefaultExecution||this[fc("0xbb")]||this.trackChangesCommand[fc("0x170")]&&(t[fc("0x0")][fc("0xbe")]((()=>{let r=t[fc("0x0")][fc("0xc6")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!r)return;e.return=r.clone();const i=r[fc("0x16f")][fc("0x101")],o=t[fc("0x0")][fc("0x10e")];i&&o[fc("0x103")](i)&&!o[fc("0x86")](i)&&(r=t[fc("0x0")][fc("0xe6")](r.start,t[fc("0x0")].createPositionAt(i,fc("0x16f")))),this[fc("0x3f")](r)})),e[fc("0xec")]())}),{priority:fc("0x133")}),this[fc("0x12a")].commands[fc("0x35")](fc("0x130"),this.trackChangesCommand),this[fc("0x9a")](fc("0x130"));const i=new b(t,this[fc("0xee")]);t[fc("0x158")][fc("0x35")](fc("0x7d"),i),this[fc("0x9a")](fc("0x7d"));const o=new y(t,this._suggestions);t[fc("0x158")][fc("0x35")](fc("0x12c"),o),this[fc("0x9a")](fc("0x12c")),t[fc("0x158")][fc("0x35")](fc("0x1f"),new F(t,i,this._suggestions)),this.enableCommand(fc("0x1f")),t[fc("0x158")][fc("0x35")](fc("0xb9"),new F(t,o,this._suggestions)),this[fc("0x9a")]("discardAllSuggestions"),t[fc("0x158")][fc("0x35")]("acceptSelectedSuggestions",new j(t,i,this[fc("0xee")])),this.enableCommand("acceptSelectedSuggestions"),t[fc("0x158")][fc("0x35")](fc("0x98"),new j(t,o,this._suggestions)),this[fc("0x9a")](fc("0x98"));const s=t[fc("0x68")][fc("0x2b")](fc("0x11f"));this.listenTo(s,fc("0xb3"),((t,{threadId:e})=>{const n=this[fc("0xee")][fc("0x2b")](e);n&&n[fc("0x9c")]&&1===n.commentThread.length&&this[fc("0x6")](e,{hasComments:!0})}),{priority:"low"}),this[fc("0x179")](s,"removeComment",((t,{threadId:e})=>{const n=this[fc("0xee")][fc("0x2b")](e);n&&n.commentThread&&!n[fc("0x9c")][fc("0xdb")]&&this[fc("0x6")](e,{hasComments:!1})}),{priority:fc("0x1d")})}set[fc("0x110")](t){if(this[fc("0x93")])throw new e.CKEditorError("track-changes-adapter-already-set",this);this[fc("0x93")]=t}get[fc("0x110")](){return this[fc("0x93")]}[fc("0x71")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[fc("0xee")][fc("0x134")]())t&&!e[fc("0x147")]||n[fc("0x12f")](e);return e?n[fc("0xa9")]((t=>t.toJSON())):n}[fc("0x41")](t){const n=this[fc("0xee")][fc("0x2b")](t);if(!n)throw new e.CKEditorError(fc("0x20"),this);return n}[fc("0x151")](t){return this[fc("0xee")].has(t)}[fc("0x118")](t){const{authorId:e,id:n,attributes:r}=t,[i,o]=t[fc("0x137")][fc("0x9d")](":"),s=this._suggestions.get(n)||this[fc("0xd7")](i,o,n,e,r);if(this._addThreadToSuggestion(s),this[fc("0x14f")](s,i,o||null,e),s[fc("0x1a")]=t[fc("0x1a")],s[fc("0x43")]=!0,r&&r[fc("0x4d")]){const t=r[fc("0x4d")],e=this._getExternalAuthor(t[fc("0x2f")]);s[fc("0x169")]=t[fc("0x1a")],s[fc("0x2d")]=e,s[fc("0x97")]=!0}else s.authoredAt=t[fc("0x1a")];switch(t[fc("0x109")]&&(s[fc("0x109")]=t.data),t[fc("0x38")]&&(s[fc("0x38")]=t[fc("0x38")]),this._adapter&&this._adapter[fc("0xf")]||(s._saved=!0),this[fc("0xc5")][fc("0x2b")](s)){case fc("0xc0"):this[fc("0xc5")][fc("0x7")](s,fc("0x82"));break;case fc("0x161"):s.isInContent?(this[fc("0xa2")](new Set([s])),this[fc("0x173")](new Set([s])),this[fc("0xc5")][fc("0x7")](s,fc("0x4a")),this.fire(fc("0x10a"),s)):this[fc("0xc5")].set(s,fc("0xf8"))}return s}acceptSuggestion(t){this[fc("0xdc")]((()=>{this[fc("0x12a")][fc("0x0")][fc("0xbe")]((()=>{for(const e of t[fc("0xd8")]())e.accept()}))}))}[fc("0x12c")](t){this[fc("0xdc")]((()=>{this[fc("0x12a")][fc("0x0")].change((()=>{for(const e of t.getAllAdjacentSuggestions())e[fc("0x11a")]()}))}))}[fc("0x9a")](t,n){const r=this[fc("0x12a")][fc("0x158")][fc("0x2b")](t);if(!r)throw new e.CKEditorError(fc("0x49"),this,{commandName:t});if(this[fc("0x141")].has(r))throw new e.CKEditorError(fc("0x79"),this,{commandName:t});this[fc("0x141")].add(r),n&&r.on(fc("0x15b"),((t,e)=>{this[fc("0xcc")][fc("0x170")]&&(this._isForcedDefaultExecutionBlock||(e[fc("0xdb")]>0&&e[e[fc("0xdb")]-1]&&e[e[fc("0xdb")]-1][fc("0xdc")]?e[fc("0x4c")]():(t[fc("0x53")]=n(((...t)=>r.execute(...t,{forceDefaultExecution:!0})),...e),t.stop())))}),{priority:fc("0x133")})}[fc("0xdc")](t){let n,r;const i=this._isForcedDefaultExecutionBlock;this[fc("0xbb")]=!0;try{n=t()}catch(t){r=t}return i||(this[fc("0xbb")]=!1),r&&e.CKEditorError[fc("0xb0")](r,this),n}[fc("0x3f")](t,n=null,r={}){if(t.isCollapsed)return null;const i=this[fc("0x12a")][fc("0x68")][fc("0x2b")]("Users").me;for(const{suggestion:e,meta:i}of this[fc("0x1b")](t,fc("0xc8")))if(i.isOwn){if(!i.isNextTo){if(i[fc("0xab")]){if(!this._mergeNestedSuggestions||!Ic(e,r))continue;return e}if(Ic(e,r))return e;this[fc("0x37")](e,t[fc("0x156")],t[fc("0x16f")]);break}if(n==e[fc("0xd0")]&&Ic(e,r)){const n=e[fc("0x73")]();return n.start.isEqual(t[fc("0x16f")])?this[fc("0x63")](e,this[fc("0xb5")][fc("0xe6")](t[fc("0x156")],n[fc("0x16f")])):this[fc("0x63")](e,this[fc("0xb5")][fc("0xe6")](n[fc("0x156")],t.end)),e}}const o=(0,e.uid)(),s=i.id,x=n?"insertion:"+n:fc("0xc8"),a=this[fc("0x5c")]({id:o,type:x,createdAt:new Date,authorId:s,attributes:r});return this[fc("0x107")](x,o,s,t),a}[fc("0x116")](t,n=fc("0xaa"),r={}){const i=this.editor[fc("0x68")][fc("0x2b")]("Users").me,o=this[fc("0x32")][fc("0x148")](fc("0xc8"),n,fc("0x6a"));for(const e of this[fc("0x71")]())if(e[fc("0x2d")].id==i.id&&fc("0xc8")==e[fc("0x137")]&&e[fc("0xd0")]==n&&Ic(e,r)&&(o(e.getRanges(),t)||o(t,e.getRanges()))){for(const n of t)e[fc("0x127")](n);return e}for(const{suggestion:e,meta:n}of this[fc("0x1b")](t,"insertion")){if(!n[fc("0x81")])continue;if(!this[fc("0x89")]&&n[fc("0xab")])continue;if(!Ic(e,r))continue;let i=!0;for(const n of e[fc("0xaf")]())for(const e of t)if(!n.containsRange(e)){i=!1;break}if(i)return e}const s=(0,e.uid)(),x=i.id,a="insertion:"+n,c=this[fc("0x5c")]({id:s,type:a,createdAt:new Date,authorId:x,attributes:r});for(const e of t)this[fc("0x107")](a,s,x,e,Yr.getMultiRangeId());return c}[fc("0x135")](t,n,r=null,i={}){if(r=r||Tc(n),t[fc("0x50")])return null;if(fc("0x19")===this[fc("0xc1")]){const e=this[fc("0x32")][fc("0x148")]("formatInline",r,"accept");return this[fc("0xdc")]((()=>e([t],n,i))),null}const o=this.editor.plugins[fc("0x2b")](fc("0x6c")).me,s=[];if(fc("0x57")!==this[fc("0xc1")])for(const{suggestion:e,meta:n}of this[fc("0x1b")](t,fc("0xc8")))n.isOwn&&!n[fc("0xae")]&&s[fc("0x12f")](...e[fc("0xaf")]());const x=function(t,e){const n=[];for(const r of e){const e=t.getIntersection(r);e&&n[fc("0x12f")](e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[fc("0xdb")];){const r=n[e][fc("0xf4")](t);n[fc("0x176")](e,1,...r),e+=r[fc("0xdb")]}}return n}(t,s);x.length&&this[fc("0xb5")][fc("0xbe")]((()=>{for(const t of x){const e=this[fc("0x32")][fc("0x148")]("formatInline",r,"accept");this[fc("0xdc")]((()=>e([t],n,i)))}}));for(const t of a){let s=null,x=t[fc("0x156")],a=t.end;for(const{suggestion:e,meta:n}of this[fc("0x1b")](t,fc("0x85"))){if(!n[fc("0x81")])continue;if(e.subType!=r)continue;if(!Ic(e,i))continue;const o=e[fc("0x73")]();if(o[fc("0x62")](t,!0))return null;x=x.isBefore(o.start)?x:o[fc("0x156")],a=a[fc("0x88")](o[fc("0x16f")])?a:o.end,s?o[fc("0x156")].isBefore(s[fc("0x73")]()[fc("0x156")])?(s[fc("0x102")](),s=e):e[fc("0x102")]():s=e}const c=this[fc("0xb5")][fc("0xe6")](x,a);if(s)this[fc("0x63")](s,c);else{const t=(0,e.uid)(),s=o.id;this[fc("0x5c")]({id:t,type:fc("0xde")+r,data:n,createdAt:new Date,authorId:s,attributes:i}),this[fc("0x107")](fc("0xde")+r,t,s,c)}}return null}[fc("0xc3")](t,n,r=[],i=null,o={}){n[fc("0x13")]||(n[fc("0x13")]=n.commandName),n[fc("0xb4")]=t.is(fc("0x165")),i=i||Tc(n);const s=r[fc("0xa9")]((t=>Cc(t,this[fc("0xb5")]))),x=t.is(fc("0x165"))?t:Cc(t,this._model);if(fc("0x19")===this._trackFormatChanges){const t=this[fc("0x32")][fc("0x148")]("formatBlock",i,fc("0x70"));return this[fc("0xdc")]((()=>t([x],n,o))),null}s[fc("0x12f")](x);let a=!0;for(const t of s)if(!this[fc("0x2c")](t)){a=!1;break}if(a&&fc("0x57")!==this[fc("0xc1")]){const t=this[fc("0x32")][fc("0x148")](fc("0x77"),i,fc("0x70"));return this[fc("0xdc")]((()=>t([x],n,o))),null}let c=null,l=x.start,u=x[fc("0x16f")];for(const{suggestion:t,meta:e}of this._findSuggestions(x,fc("0x77"))){if(!e.isOwn)continue;if(e[fc("0xd1")]||e.containsRangeInObject||e[fc("0xae")])continue;if(t[fc("0x109")].formatGroupId!=n[fc("0x13")])continue;if(!Ic(t,o))continue;const r=t[fc("0x73")]();if(t[fc("0xd0")]==i){if(r[fc("0x62")](x,!0))return null;l=l[fc("0x5a")](r[fc("0x156")])?l:r.start,u=u.isAfter(r[fc("0x16f")])?u:r[fc("0x16f")],c?r[fc("0x156")][fc("0x5a")](c[fc("0x73")]().start)?(c[fc("0x102")](),c=t):t.removeMarkers():c=t}else{const e=x[fc("0x174")](r);this[fc("0x26")](t,e)}}const d=this[fc("0x12a")].plugins.get(fc("0x6c")).me,g=(0,e.uid)(),f=d.id;if(c)return this[fc("0x63")](c,this[fc("0xb5")].createRange(l,u)),c;{const t=this[fc("0x5c")]({id:g,type:fc("0xd2")+i,data:n,createdAt:new Date,authorId:f,attributes:o});return this[fc("0x107")](fc("0xd2")+i,g,f,this[fc("0xb5")][fc("0xe6")](l,u)),t}}[fc("0x3b")](t,n,r=[],i=null,o={}){n[fc("0x13")]||(n[fc("0x13")]=n.commandName);const s=t[0];n[fc("0xb4")]=s.is(fc("0x165")),i=i||Tc(n);const x=r.map((t=>Cc(t,this._model))),a=s.is("range")?t:t[fc("0xa9")]((t=>Cc(t,this[fc("0xb5")])));if(fc("0x19")===this._trackFormatChanges){const t=this._suggestionFactory[fc("0x148")](fc("0x77"),i,fc("0x70"));return this[fc("0xdc")]((()=>t(a,n,o))),null}x[fc("0x12f")](...a);let c=!0;for(const t of x)if(!this[fc("0x2c")](t)){c=!1;break}if(c&&fc("0x57")!==this._trackFormatChanges){const t=this._suggestionFactory[fc("0x148")](fc("0x77"),i,"accept");return this.forceDefaultExecution((()=>t(a,n,o))),null}const l=this[fc("0x12a")][fc("0x68")][fc("0x2b")]("Users").me;for(const t of this.getSuggestions()){if(t[fc("0x2d")].id!=l.id)continue;if(fc("0x77")!=t[fc("0x137")]||t[fc("0x109")][fc("0x13")]!=n[fc("0x13")])continue;if(!Ic(t,o))continue;const e=t[fc("0xd0")]==i;for(let n=0;n<a[fc("0xdb")];n++){const r=a[n];for(const i of t.getMarkers()){const o=i[fc("0x146")]();if(r[fc("0xff")](o)){e?(a[fc("0x176")](n,1),n--):t[fc("0x11")](i[fc("0x100")]);break}}}}if(0==a[fc("0xdb")])return null;const u=this._suggestionFactory.getSuggestionCallback(fc("0x77"),i,fc("0x6a"));for(const t of this[fc("0x71")]())if(t[fc("0x2d")].id==l.id&&fc("0x77")==t[fc("0x137")]&&t[fc("0x109")][fc("0x13")]==n[fc("0x13")]&&t[fc("0xd0")]==i&&Ic(t,o)&&(u(t[fc("0xaf")](),a)||u(a,t[fc("0xaf")]()))){for(const e of a)t.addRange(e);return t}const d=(0,e.uid)(),g=l.id,f=fc("0xd2")+i,m=this[fc("0x5c")]({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:o});for(const t of a)this[fc("0x107")](f,d,g,t,Yr[fc("0x143")]());return m}[fc("0x94")](t,n=null,r={}){if(t[fc("0x50")])return null;const i=this[fc("0x12a")][fc("0x68")][fc("0x2b")](fc("0x6c")).me,o=new s.LiveRange(t[fc("0x156")],t[fc("0x16f")]);for(const{suggestion:t,meta:e}of this[fc("0x1b")](o,fc("0xc8")))if(e[fc("0x81")]&&!e[fc("0xd1")])if(t.isMultiRange){const e=t[fc("0xaf")]().filter((t=>"$graveyard"!=t.root[fc("0x8c")]));if(e.every((t=>o[fc("0x62")](t,!0)))&&t[fc("0x11a")](),e[fc("0xea")]((t=>t.containsRange(o,!0)))){const t=this._suggestionFactory[fc("0x148")](fc("0x150"),n,"accept");return this.forceDefaultExecution((()=>t([o],null,r))),null}}else{const e=o[fc("0x174")](t[fc("0x73")]());null!==e&&t[fc("0x152")]([e],null,r)}if(o[fc("0x5d")](),o[fc("0x50")]||fc("0x14a")==o.root[fc("0x8c")])return null;let x=null,a=o[fc("0x156")],c=o[fc("0x16f")];const l=this[fc("0x1b")](o,fc("0x150"));for(const{suggestion:t,meta:e}of l){const n=this[fc("0xb5")][fc("0xe6")](a,c);if(e[fc("0x81")]&&(this[fc("0x89")]||!e[fc("0xab")]&&!e[fc("0xae")]))if(t.isMultiRange){if(!Ic(t,r))continue;let e=!0;for(const r of t[fc("0xaf")]()){if(r[fc("0x62")](n,!0))return t;n[fc("0x62")](r)||(e=!1)}e&&t[fc("0x11a")]()}else{const e=t.getFirstRange();if(e[fc("0x62")](n,!0))return t;if(!Ic(t,r)){n.containsRange(e)?t[fc("0x102")]():e[fc("0x16d")](a)?a=e[fc("0x16f")]:e[fc("0x16d")](c)&&(c=e.start);continue}a=a[fc("0x5a")](e[fc("0x156")])?a:e[fc("0x156")],c=c[fc("0x88")](e[fc("0x16f")])?c:e[fc("0x16f")],r=Object[fc("0x108")]({},t[fc("0x38")]),x?e.start[fc("0x5a")](x[fc("0x73")]()[fc("0x156")])?(x.removeMarkers(),x=t):t[fc("0x102")]():x=t}}if(x)return this[fc("0x63")](x,this._model[fc("0xe6")](a,c)),x;{const t=(0,e.uid)(),o=this[fc("0xb5")][fc("0xe6")](a,c),s=i.id,x=n?fc("0x14")+n:"deletion",l=this[fc("0x5c")]({id:t,type:x,createdAt:new Date,authorId:s,attributes:r});return this[fc("0x107")](x,t,s,o),l}}[fc("0x17a")](t,n="multi",r={}){const i=this[fc("0x12a")][fc("0x68")].get(fc("0x6c")).me,o=t[fc("0xa9")]((t=>new s.LiveRange(t[fc("0x156")],t[fc("0x16f")]))),x=new Set;for(const{suggestion:t,meta:e}of this[fc("0x1b")](o,fc("0xc8")))e.isOwn&&!e[fc("0xd1")]&&x.add(t);for(const e of x)if(e[fc("0x7a")]){const i=e.getRanges();if((!e[fc("0x38")]||!e.attributes[fc("0xa4")])&&i[fc("0x112")]((t=>o[fc("0xea")]((e=>e[fc("0x62")](t,!0)))))&&e[fc("0x11a")](),o[fc("0x112")]((t=>i[fc("0xea")]((e=>e.containsRange(t,!0)))))){const e=this[fc("0x32")][fc("0x148")](fc("0x150"),n,fc("0x70"));return this[fc("0xdc")]((()=>e(t,null,r))),null}}else{const t=e[fc("0x73")]();if(o[fc("0xea")]((e=>e[fc("0x62")](t,!0)))&&e[fc("0x11a")](),o.every((e=>t[fc("0x62")](e,!0)))){const t=this._suggestionFactory[fc("0x148")](fc("0x150"),n,fc("0x70"));return this[fc("0xdc")]((()=>t(o,null,r))),null}}const a=this[fc("0x32")][fc("0x148")](fc("0x150"),n,"join");let c=null;for(const t of this[fc("0x71")]())if(t[fc("0x2d")].id==i.id&&t.isInContent&&"deletion"==t[fc("0x137")]&&t[fc("0xd0")]==n&&Ic(t,r)&&(a(t[fc("0xaf")](),o)||a(o,t[fc("0xaf")]())))if(c){if(t[fc("0x9c")]&&t[fc("0x9c")][fc("0xdb")])continue;for(const e of t[fc("0xaf")]())c[fc("0xbd")](e)||c[fc("0x127")](e);t[fc("0x102")]()}else{c=t;for(const e of o)t[fc("0xbd")](e)||t.addRange(e)}if(c)return c;x[fc("0x13e")]();for(const{suggestion:t,meta:e}of this[fc("0x1b")](o,fc("0x150")))e[fc("0x81")]&&(this[fc("0x89")]||!e[fc("0xab")]&&!e.isInsideObject)&&Ic(t,r)&&x.add(t);for(const t of x){const e=t[fc("0xaf")]();if((!r||!r[fc("0xa4")])&&o[fc("0x112")]((t=>e[fc("0xea")]((e=>e[fc("0x62")](t,!0))))))return t;(!t[fc("0x38")]||!t[fc("0x38")][fc("0xa4")])&&e[fc("0x112")]((t=>o[fc("0xea")]((e=>e[fc("0x62")](t,!0)))))&&t.discard()}const l=(0,e.uid)(),u=i.id,d=fc("0x14")+n,g=this._setSuggestionData({id:l,type:d,createdAt:new Date,authorId:u,attributes:r});for(const t of o)t.detach(),t[fc("0x50")]||fc("0x14a")==t[fc("0xac")][fc("0x8c")]||this[fc("0x107")](d,l,u,t,Yr[fc("0x143")]());return g}[fc("0x2e")](t,n,r,i,o){if(t[fc("0x50")])return[];if(fc("0x19")===this[fc("0xc1")])return[];const s=this[fc("0x12a")][fc("0x68")][fc("0x2b")]("Users").me.id,x=Array.from(this[fc("0xee")].values())[fc("0x51")]((e=>fc("0x5e")==e[fc("0x137")]&&e[fc("0x109")].key==n&&e[fc("0xbd")](t)));if(fc("0xe7")===this[fc("0xc1")]){const e=this[fc("0x1b")](t,"insertion").filter((({meta:t})=>t.isOwn&&!t.isInsideObject&&!t.isNextTo))[fc("0xa9")]((({suggestion:t})=>t));x[fc("0x11d")](...e)}const a=new Map([[t,r]]);for(const t of x){const e=fc("0x5e")==t[fc("0x137")]?t.data[fc("0x25")]:void 0,o=t.getFirstRange(),s=Array[fc("0x40")](a[fc("0x55")]())[fc("0xe4")]((t=>t.isIntersecting(o)));if(!s)continue;const x=s[fc("0xf4")](o);this[fc("0x12e")](n)&&fc("0xc8")==t[fc("0x137")]&&0!=x[fc("0xdb")]||(a[fc("0xe5")](s),x.forEach((t=>{a[fc("0x7")](t,r)})),fc("0xc8")!=t.type&&e!=i&&a.set(s[fc("0x174")](o),e))}const c=[];for(const[t,r]of a){const x=(0,e.uid)(),a={key:n,oldValue:r,newValue:i};n[fc("0xdb")]>37&&console.warn(fc("0xe0"),{key:n});const l=(fc("0x168")+(n+"|")+Tc({newValue:i}))[fc("0x9b")](0,60),u=this[fc("0x5c")]({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:o});c[fc("0x12f")](u),this._addSuggestionMarker(l,x,s,t)}return c}_registerBlockAttribute(t){this[fc("0x22")][fc("0x35")](t)}_registerInlineAttribute(t){this[fc("0x128")][fc("0x35")](t)}[fc("0xd3")](t,e=[],n=[]){this[fc("0x9a")](t,((t,...e)=>{this[fc("0x10d")]((()=>{t(...e)}))}));for(const t of e)this[fc("0x177")](t);for(const t of n)this[fc("0x4e")](t)}[fc("0x63")](t,e){const n=t[fc("0xc7")]();this[fc("0xb5")].change((t=>{t[fc("0xe")](n,{range:e})}))}_addThreadToSuggestion(t){const e=t.id,n=this.editor[fc("0x3a")][fc("0x2b")]("collaboration.channelId");this[fc("0x39")][fc("0x8b")](e)||this[fc("0x39")][fc("0xf0")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const r=this._commentsRepository.getCommentThread(e);r[fc("0x12b")]("isRemovable"),r[fc("0x3")]=!1,t[fc("0x9c")]=r}_checkSuggestionCorrectness(t,n,r,i){if(t[fc("0x137")]!=n||t.subType!=r||t.creator.id!=i)throw this.editor[fc("0xc9")]("track-changes-suggestion-data-mismatch"),new e.CKEditorError(fc("0x12"),this)}[fc("0x26")](t,n){const r=t[fc("0x73")]();if(n[fc("0xff")](r))t[fc("0x102")]();else if(r.containsRange(n)){const i=this[fc("0xb5")][fc("0x29")](n.start[fc("0x101")],fc("0x16f"));this._setSuggestionRange(t,this._model[fc("0xe6")](r[fc("0x156")],i));const o=(0,e.uid)(),s=t[fc("0x160")].id,x=t[fc("0x137")]+":"+t[fc("0xd0")];this._setSuggestionData({id:o,type:x,createdAt:new Date,authorId:s,data:t[fc("0x109")],attributes:t[fc("0x38")]});const a=this._model.createPositionAt(n[fc("0x16f")][fc("0xe3")],"after"),c=this[fc("0xb5")][fc("0xe6")](a,r[fc("0x16f")]);this[fc("0x107")](x,o,s,c)}else if(r[fc("0x16d")](n[fc("0x156")])){const e=this[fc("0xb5")][fc("0x29")](n[fc("0x156")].nodeBefore,fc("0x16f"));this[fc("0x63")](t,this[fc("0xb5")].createRange(r[fc("0x156")],e))}else{const e=this[fc("0xb5")][fc("0x29")](n[fc("0x16f")][fc("0xe3")],fc("0xa1"));this[fc("0x63")](t,this[fc("0xb5")].createRange(e,r.end))}}_rangeIsInLocalUserInsertion(t){for(const{suggestion:e,meta:n}of this._findSuggestions(t,fc("0xc8"))){if(!n[fc("0x81")])continue;const r=e[fc("0xaf")]();for(const e of r)if(!t[fc("0xf4")](e)[fc("0xdb")])return!0}return!1}[fc("0x125")](t){const n=this[fc("0x12a")][fc("0x68")][fc("0x2b")]("Users")[fc("0x5b")](t);if(!n)throw new e.CKEditorError(fc("0xe1"),this);return n}[fc("0x166")](t){const e=this[fc("0x12a")][fc("0x68")][fc("0x2b")]("Users"),n=(0,o.hashObject)(fc("0x56")+t);return e.getUser(n)||e[fc("0x18")]({id:n,name:t})}_createSuggestion(t,e,n,r,i){const o=this[fc("0x125")](r),s=this[fc("0x32")][fc("0x30")](t,e,n,o,i,(t=>this[fc("0x6")](n,{attributes:t})));return this[fc("0x179")](s,"accept",(()=>{this._updateSuggestionData(n,{state:"accepted"})}),{priority:"high"}),this.listenTo(s,"discard",(()=>{this[fc("0x6")](n,{state:fc("0x76")})}),{priority:fc("0x133")}),this[fc("0xee")][fc("0x7")](n,s),this[fc("0xc5")][fc("0x7")](s,fc("0xc0")),s}[fc("0x119")](t){const e=t[fc("0x9d")](":");return{group:e[0],type:e[1],subType:e[fc("0xdb")]>=5?e[2]:null,id:e[fc("0xdb")]<5?e[2]:e[3],authorId:e.length<5?e[3]:e[4],markerCount:6==e[fc("0xdb")]?e[5]:null}}[fc("0x37")](t,n,r){const i=t[fc("0x73")](),o=i[fc("0x156")],s=i[fc("0x16f")];this[fc("0x63")](t,this[fc("0xb5")][fc("0xe6")](o,n));const x=(0,e.uid)(),a=t[fc("0x160")].id,c=t[fc("0x137")]+(t[fc("0xd0")]?":"+t[fc("0xd0")]:"");this[fc("0x5c")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[fc("0x38")],data:t[fc("0x109")]});const l=Sc(t);(fc("0x77")==t.type||l&&this._isBlockAttribute(l))&&(r=this[fc("0xb5")].createPositionBefore(r.parent)),this[fc("0x107")](c,x,a,this[fc("0xb5")][fc("0xe6")](r,s))}[fc("0x1b")](t,e=null){const n=[],r=this[fc("0x12a")].plugins[fc("0x2b")]("Users").me;Array.isArray(t)||(t=[t]);for(const i of this.getSuggestions()){if(!i[fc("0x147")])continue;if(e&&i[fc("0x137")]!=e)continue;let o=!1;for(const e of i[fc("0xaf")]()){for(const s of t){const t=s.start.isEqual(e.end)||s.end[fc("0xff")](e[fc("0x156")]);if(t||s[fc("0x174")](e)){const x=s[fc("0x62")](e)&&pc(this[fc("0xb5")][fc("0x10e")],e.start,s),a=e[fc("0x62")](s)&&pc(this._model[fc("0x10e")],s[fc("0x156")],e);n[fc("0x12f")]({suggestion:i,meta:{isOwn:r==i.author,isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),o=!0;break}}if(o)break}}return n}[fc("0x107")](t,e,n,r,i){this._model[fc("0xbe")]((o=>{let s=fc("0x3d")+t+":"+e+":"+n;i&&(s=s+":"+i),o.addMarker(s,{range:r,usingOperation:!0,affectsData:!0})}))}[fc("0x14b")](t){const e=t[fc("0x124")],n=t[fc("0x136")];t[fc("0x124")]=null,t[fc("0x136")]=null,null!=e&&(e.next=n),null!=n&&(n[fc("0x124")]=e),fc("0x4a")==this[fc("0xc5")].get(t)&&(this[fc("0xc5")].set(t,fc("0xf8")),this[fc("0x36")](fc("0x8f"),t,e,n))}[fc("0x5c")](t){const n=t.id,r=this[fc("0x118")](t);if(this[fc("0x93")]&&this[fc("0x93")][fc("0xf")]){const i=this[fc("0x12a")][fc("0x68")].get("PendingActions"),o=r.hasComments,s=r[fc("0xd0")]?r.type+":"+r[fc("0xd0")]:r[fc("0x137")],x=this.editor.locale,a=i[fc("0x35")](Jr(x,fc("0x104"))),c={id:n,type:s,hasComments:o,data:t.data||null,originalSuggestionId:t[fc("0x95")]||null,attributes:r[fc("0x38")]};this[fc("0x93")][fc("0xf")](c).then((t=>{r[fc("0x140")]=!0,i[fc("0x13f")](a),t&&t[fc("0x1a")]&&(this[fc("0xee")][fc("0x2b")](n).createdAt=t[fc("0x1a")])})).catch((t=>{throw(0,e.logWarning)(fc("0x9f")),this[fc("0x12a")][fc("0x0")][fc("0xf2")]({isUndoable:!1},(()=>{r[fc("0x11a")]()})),r[fc("0x121")](),this[fc("0xee")].delete(r.id),this[fc("0xc5")][fc("0xe5")](r),t}))}return r}[fc("0x12e")](t){return this[fc("0x22")][fc("0xef")](t)}[fc("0x6")](t,e){const n=this.editor[fc("0x68")].get(fc("0xe8")),r=this.getSuggestion(t);if(this[fc("0x93")]&&this[fc("0x93")][fc("0x3c")])if(r[fc("0x140")]){const r=n[fc("0x35")](Jr(this[fc("0x12a")].locale,fc("0x104")));this[fc("0x93")][fc("0x3c")](t,e)[fc("0x5f")]((()=>{n.remove(r)}))}else r.on(fc("0x16c"),(()=>{this[fc("0x6")](t,e)}))}[fc("0x4b")](t){if(!this._adapter||!this[fc("0x93")][fc("0x41")])throw new e.CKEditorError(fc("0x75"),this);return this._adapter[fc("0x41")](t)}[fc("0x61")](t){const{id:e,type:n,subType:r,authorId:i}=this[fc("0x119")](t),o=this[fc("0xee")].get(e)||this[fc("0xd7")](n,r,e,i,{});switch(this._checkSuggestionCorrectness(o,n,r,i),this._suggestionState[fc("0x2b")](o)){case"notReady":this[fc("0x4b")](e).then((t=>{let n=Promise[fc("0xe9")]();t.hasComments&&(n=this[fc("0x39")][fc("0xd9")]({channelId:this[fc("0x12a")][fc("0x3a")][fc("0x2b")](fc("0x138")),threadId:e})),n[fc("0x5f")]((()=>{this[fc("0x118")](t)[fc("0x140")]=!0}))})),this[fc("0xc5")][fc("0x7")](o,"markerReady");break;case fc("0xf8"):this[fc("0x6")](e,{state:"open"});case"dataReady":this[fc("0xc5")][fc("0x7")](o,fc("0x4a")),this.fire(fc("0x10a"),o);break;case fc("0x4a"):this[fc("0x36")](fc("0x7e"),o)}return o[fc("0x92")](t),o}[fc("0xa2")](t){const e=Array[fc("0x40")](t),n=e[fc("0x51")]((t=>fc("0x5e")==t[fc("0x137")]));this[fc("0x2a")](n);const r=e[fc("0x51")]((t=>!t[fc("0x7a")]&&fc("0x5e")!=t[fc("0x137")])),i=this.getSuggestions({skipNotAttached:!0})[fc("0x51")]((t=>!t.isMultiRange&&fc("0x5e")!=t[fc("0x137")])),o=i[fc("0x51")]((e=>!t.has(e))),s=new Map(i[fc("0xa9")]((t=>[t,this[fc("0x32")][fc("0x148")](t[fc("0x137")],t[fc("0xd0")],"chain")]))),x=new Map(i[fc("0xa9")]((t=>[t,t[fc("0x73")]()]))),a=new Set,c=new Set;for(let t=0;t<r.length;t++)u(r[t],r,t+1);for(let t=0;t<r.length;t++)u(r[t],o,0);const l=new Set;for(let t=0;t<r[fc("0xdb")];t++){const e=r[t];!c[fc("0xef")](e)&&e[fc("0x124")]&&(l[fc("0x35")](e[fc("0x124")]),e[fc("0x124")][fc("0x136")]===e&&(e[fc("0x124")][fc("0x136")]=null),e[fc("0x124")]=null),!a[fc("0xef")](e)&&e[fc("0x136")]&&(l[fc("0x35")](e[fc("0x136")]),e.next[fc("0x124")]===e&&(e[fc("0x136")][fc("0x124")]=null),e[fc("0x136")]=null)}function u(t,e,n){for(let r=n;r<e[fc("0xdb")];r++){const n=d(t,e[r]);n&&(n[0][fc("0x136")]=n[1],n[1][fc("0x124")]=n[0],a.add(n[0]),c.add(n[1]))}}function d(t,e){if(t.author.id!==e[fc("0x2d")].id)return null;const n=s[fc("0x2b")](t)(t,e,x[fc("0x2b")](t),x[fc("0x2b")](e));return n&&s.get(e)(t,e,x[fc("0x2b")](t),x[fc("0x2b")](e))?n[1].commentThread&&n[1].commentThread[fc("0xdb")]?null:n:null}l[fc("0x6b")]&&this._refreshSuggestionsChain(l)}[fc("0x2a")](t){if(0==t[fc("0xdb")])return;const e=this[fc("0x71")]({skipNotAttached:!0})[fc("0x51")]((t=>"attribute"==t.type&&t[fc("0x43")])),n=[],r=new Map;for(const t of e){const e=(0,o.hashObject)(t[fc("0x38")]);r[fc("0xef")](e)||(r[fc("0x7")](e,n[fc("0xdb")]),n[fc("0x12f")]([]));const i=r[fc("0x2b")](e);n[i][fc("0x12f")](t)}!function(){n[fc("0xd")](((t,e)=>{const n=t[0][fc("0x1a")],r=e[0][fc("0x1a")];return n==r?t[0][fc("0x38")][fc("0x111")]<e[0][fc("0x38")].groupId?-1:1:n<r?-1:1}));for(const t of n)t[fc("0xd")](((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n.length;t++){if(0==n[t][fc("0xdb")])continue;const e=[];for(let r=t+1;r<n[fc("0xdb")];r++)0!=n[r][fc("0xdb")]&&i(n[t],n[r])&&e[fc("0x12f")](r);for(const r of e)n[t]=n[t].concat(n[r]),n[r]=[]}for(const t of n)for(let e=0;e<t.length;e++)t[e][fc("0x136")]=t[e+1]||null;for(const t of n)for(let e=0;e<t.length;e++)t[e][fc("0x124")]=t[e-1]||null;function i(t,e){if(t[0][fc("0x2d")]!==e[0][fc("0x2d")])return!1;if(n=t[0],r=e[0],(n[fc("0xd5")]||r[fc("0xd5")])&&(n[fc("0xd5")]&&r.hasComments||!(n[fc("0xd5")]&&r[fc("0x1a")]<n[fc("0x9c")][fc("0x117")][fc("0x2b")](0)[fc("0x1a")]||r[fc("0xd5")]&&n[fc("0x1a")]<r.commentThread[fc("0x117")][fc("0x2b")](0)[fc("0x1a")])))return!1;var n,r;const i=lc(t[0][fc("0x38")],fc("0x111")),o=lc(e[0][fc("0x38")],fc("0x111"));return!!jr(i,o)&&(!!t[fc("0x112")]((t=>e[fc("0xea")]((e=>t.getFirstRange().isEqual(e[fc("0x73")]())))))&&e[fc("0x112")]((e=>t[fc("0xea")]((t=>e[fc("0x73")]().isEqual(t[fc("0x73")]()))))))}}_joinWithAdjacentSuggestions(t){const e=Array.from(t),n=this[fc("0x71")]({skipNotAttached:!0}),r=n[fc("0x51")]((e=>!t[fc("0xef")](e))),i=new Map(e[fc("0xa9")]((t=>[t,this[fc("0x32")][fc("0x148")](t[fc("0x137")],t[fc("0xd0")],"join")]))),o=new Map(n[fc("0xa9")]((t=>[t,t[fc("0xaf")]()])));for(let t=0;t<e[fc("0xdb")];t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e[fc("0xdb")];t++)if(s(this,e[t],r,0))return!0;return!1;function s(t,e,n,r){for(let s=r;s<n[fc("0xdb")];s++){const r=n[s];if(r[fc("0x137")]!==e[fc("0x137")]||r.author.id!==e[fc("0x2d")].id||r.subType!==e[fc("0xd0")])continue;if(!kc(e,r))continue;if(fc("0x5e")==e[fc("0x137")]&&e.data[fc("0x25")]!=r[fc("0x109")][fc("0x25")])continue;if(fc("0x5e")==e[fc("0x137")]&&t._isBlockAttribute(e[fc("0x109")][fc("0x83")]))continue;if("formatBlock"==e.type){const n=t[fc("0x12a")][fc("0x0")],r=e[fc("0x154")]();if(r&&(n[fc("0x10e")].isObject(r)||n.schema[fc("0x159")](r)))continue}const x=i[fc("0x2b")](e),a=o.get(e),c=o[fc("0x2b")](r),l=e[fc("0x9c")]&&e[fc("0x9c")][fc("0xdb")],u=r[fc("0x9c")]&&r[fc("0x9c")][fc("0xdb")];if(!l&&x(c,a))return t._joinSuggestions(r,e),o.delete(e),!0;if(!u&&x(a,c))return t[fc("0x142")](e,r),o.delete(r),!0}return!1}}[fc("0x142")](t,e){if(t[fc("0x7a")])for(const n of e[fc("0xaf")]())t[fc("0x127")](n);else{const n=e.getFirstRange().end;this[fc("0x63")](t,this[fc("0xb5")][fc("0xe6")](t[fc("0x73")]().start,n))}e.removeMarkers()}[fc("0x15a")](t,e){const n=t[fc("0x46")](fc("0x4f"))||t[fc("0x46")](fc("0x5e"))?fc("0x114"):t[fc("0x23")]();return Jr(this[fc("0x12a")][fc("0x11e")],e+"_"+n+fc("0x87"))}_initAriaMarkerChangeAnnouncements(){const t=this.editor;(0,o.surroundingMarkersDetector)(this[fc("0xb5")],(({left:e,entered:n})=>{const r=[];for(const t of e){const{group:e,type:n}=this._splitMarkerName(t[fc("0x100")]);if(fc("0x99")===e){r.push(this[fc("0x15a")](n,fc("0xca")));break}}for(const t of n){const{group:e,type:n}=this[fc("0x119")](t.name);if(fc("0x99")===e){r[fc("0x12f")](this._getMarkerAnnouncementText(n,fc("0xfe")));break}}r[fc("0xdb")]&&t.ui[fc("0x105")][fc("0x171")](fc("0x130"),r.join(" "))}))}[fc("0x139")](t){if(null!==this[fc("0x7f")])return!1;const e=this[fc("0x12a")],n=e.model[fc("0xa8")][fc("0x153")][fc("0xed")]();if(0==n[fc("0xdb")])return!1;const r=[],i=n[fc("0x51")]((t=>fc("0x5e")==t[fc("0x137")])),o=n[fc("0x51")]((t=>"insert"==t.type&&fc("0x96")!=t.name)),s=n[fc("0x51")]((t=>fc("0x13f")==t[fc("0x137")]&&"$text"!=t.name));for(const t of i)r[fc("0x12f")]({key:t.attributeKey,newValue:t[fc("0x10c")],oldValue:t[fc("0x42")],range:(x=t.range,null==x[fc("0x16f")][fc("0x101")]&&x[fc("0x16f")][fc("0xe3")]==x.start[fc("0x34")]?Cc(x[fc("0x156")][fc("0x34")],e.model):x)});var x;for(const t of o){const n=s[fc("0xe4")]((e=>e[fc("0x10f")].isEqual(t.position)));n&&r.push({key:fc("0x52"),newValue:t[fc("0x100")],oldValue:n.name,range:e.model.createRangeOn(t[fc("0x10f")][fc("0x34")])})}return 0!=r[fc("0xdb")]&&this._reduceExistingSuggestions(t,r)}[fc("0xf3")](t){let e=!1;const n=this[fc("0x12a")].model[fc("0xa8")][fc("0x153")][fc("0xeb")]()[fc("0x51")]((t=>t[fc("0x109")].newRange&&t.name[fc("0x46")](fc("0x16b"))));for(const r of n){const{subType:n,id:i}=this[fc("0x119")](r[fc("0x100")]),o=n[fc("0x9d")]("|")[0];for(const n of this[fc("0x71")]({skipNotAttached:!0}))n.id!=i&&fc("0x5e")==n.type&&n[fc("0x109")]&&n[fc("0x109")].key==o&&n[fc("0x73")]()[fc("0x60")](r[fc("0x109")][fc("0x54")])&&(this._reduceSuggestionAttributeRange(n,r[fc("0x109")].newRange,t),e=!0)}return e}[fc("0x10d")](t){if(null!==this[fc("0x7f")])return void t();const n=this.editor;this[fc("0x7f")]=n.model.document[fc("0x157")],t();const r=new Map;for(const t of n[fc("0x0")][fc("0xa8")].history[fc("0xd4")](this[fc("0x7f")]))if([fc("0xfb"),"addAttribute",fc("0x15d"),fc("0x164")].includes(t[fc("0x137")])){const e=t.batch,n=r.get(e)||[];n.push(t),r[fc("0x7")](e,n)}this[fc("0x7f")]=null;for(const[t,i]of r){const r=(0,e.uid)();n[fc("0x0")][fc("0xf2")](t,(t=>{const e=[];for(const t of i){let i,o,s,x;if("rename"==t[fc("0x137")]){const e=t;i=Cc(e[fc("0x10f")][fc("0x34")],n[fc("0x0")]),o=fc("0x52"),s=e[fc("0x122")],x=e[fc("0x13a")]}else{const e=t,r=this[fc("0x12e")](e[fc("0x83")]),a=this[fc("0x128")][fc("0xef")](e.key);if(!r&&!a)continue;i=r?Cc(e.range[fc("0x156")][fc("0x34")],n[fc("0x0")]):e[fc("0x165")],o=e[fc("0x83")],s="removeAttribute"==t[fc("0x137")]?void 0:e[fc("0x69")],x=e[fc("0x25")]}this.markAttributeChange(i,o,x,s,{groupId:r}),e[fc("0x12f")]({range:i,key:o,newValue:s,oldValue:x})}this[fc("0x45")](t,e)}))}}[fc("0x45")](t,e){if(0==e.length)return!1;let n=!1;for(const r of e){const e=this[fc("0x1b")](r[fc("0x165")],"attribute")[fc("0x51")]((t=>!t[fc("0x13c")].isNextTo))[fc("0xa9")]((t=>t[fc("0x99")])),i=(0,o.hashObject)({newValue:r[fc("0x69")]});e.filter((t=>{const[e,n]=t.subType[fc("0x9d")]("|");return e==r[fc("0x83")]&&n!=i})).forEach((e=>{this[fc("0x17")](e,r[fc("0x165")],t),n=!0}))}return n}_reduceSuggestionAttributeRange(t,e,n){const r=t[fc("0x73")]().getDifference(e);0!==r[fc("0xdb")]?1!==r[fc("0xdb")]?this[fc("0x37")](t,e[fc("0x156")],e.end):this[fc("0x63")](t,r[0]):n[fc("0x11")](t[fc("0xc7")]())}}class bc{constructor(t){this[fc("0xf1")]=t,this[fc("0xb5")]=t[fc("0x0")],this[fc("0xdd")]=new Map,this[fc("0xb6")]=new Map,this[fc("0x78")]()}[fc("0x30")](t,e,n,r,i,o){return new Yr(this[fc("0xb5")],{type:t,subType:e,id:n,author:r,creator:r,attributes:i,onAttributesChange:o,onAccept:(...n)=>this.getSuggestionCallback(t,e,fc("0x70"))(...n),onDiscard:(...n)=>this[fc("0x148")](t,e,fc("0x11a"))(...n)})}registerCustomCallback(t,e,n,r){const i=t+":"+e+":"+n;this[fc("0xdd")][fc("0x7")](i,r)}getSuggestionCallback(t,e,n){const r=t+":"+e+":"+n;return this[fc("0xdd")][fc("0x2b")](r)||this[fc("0xb6")][fc("0x2b")](t+":"+n)}[fc("0x78")](){const t=()=>!1,e=t=>{t[fc("0xd")](((t,e)=>t[fc("0x156")].isBefore(e[fc("0x156")])?1:-1)),this[fc("0xb5")][fc("0xbe")]((e=>{for(const n of t){let t;t=n[fc("0x16f")][fc("0xb8")]&&n[fc("0x16f")][fc("0xe3")]==n[fc("0x156")][fc("0x34")]?e.createSelection(n[fc("0x156")].nodeAfter,"on"):e.createSelection(n),this._model[fc("0xa3")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this[fc("0xb5")][fc("0xbe")]((n=>{const{commandName:r,commandParams:i=[]}=e,o=t[fc("0xa9")]((t=>(Ec(t)&&(t=this._model.createRange(t.end)),t))).filter((t=>fc("0x14a")!==t[fc("0xac")][fc("0x8c")]));if(o[fc("0xdb")]<1)return;const x=Array.from(this[fc("0xb5")].document[fc("0xb2")][fc("0xaf")]())[fc("0xa9")]((t=>s.LiveRange[fc("0xfc")](t)));n[fc("0x15c")](o);for(const t of this[fc("0xf1")][fc("0x158")][fc("0x158")]())t[fc("0x175")]();i[fc("0x12f")]({forceDefaultExecution:!0}),this[fc("0xf1")][fc("0x15b")](r,...i);const a=x.filter((t=>fc("0x14a")!=t[fc("0xac")][fc("0x8c")]));a[fc("0xdb")]>0&&n[fc("0x15c")](a);for(const t of x)t[fc("0x5d")]()}))},r=(t,e)=>1==t[fc("0xdb")]&&1==e.length&&t[0].end[fc("0xff")](e[0][fc("0x156")]),i=(t,e,n,r)=>Ac(t,e,n,r,this._model)?[t,e]:Ac(e,t,r,n,this[fc("0xb5")])?[e,t]:null;this[fc("0xb6")][fc("0x7")](fc("0x64"),t),this[fc("0xb6")][fc("0x7")](fc("0x163"),e),this[fc("0xb6")].set(fc("0x13d"),r),this[fc("0xb6")][fc("0x7")](fc("0x13b"),i),this[fc("0xb6")][fc("0x7")](fc("0x167"),e),this._defaultCallbacks[fc("0x7")](fc("0x14c"),t),this[fc("0xb6")][fc("0x7")](fc("0x91"),r),this[fc("0xb6")][fc("0x7")](fc("0xf5"),i),this[fc("0xb6")][fc("0x7")]("formatInline:accept",n),this[fc("0xb6")][fc("0x7")](fc("0x2"),t),this._defaultCallbacks.set(fc("0x6d"),r),this._defaultCallbacks.set(fc("0x11c"),t),this[fc("0xb6")][fc("0x7")](fc("0xa7"),n),this[fc("0xb6")][fc("0x7")](fc("0x7c"),t),this[fc("0xb6")][fc("0x7")](fc("0x44"),r),this[fc("0xb6")][fc("0x7")](fc("0x178"),t),this[fc("0xb6")].set(fc("0xa0"),t),this._defaultCallbacks[fc("0x7")]("attribute:discard",((t,e)=>{if(!e)return;const n=this[fc("0xf1")][fc("0x68")][fc("0x2b")](hc);this[fc("0xb5")].change((r=>{if("$elementName"==e[fc("0x83")])for(const n of t){const t=n[fc("0x156")][fc("0x34")],i=e.oldValue;r[fc("0xfb")](t,i)}else if(n._isBlockAttribute(e.key))for(const n of t)void 0!==e[fc("0x25")]?r.setAttribute(e[fc("0x83")],e[fc("0x25")],n.start[fc("0x34")]):r[fc("0x15d")](e.key,n.start.nodeAfter);else for(const n of t)e.oldValue?r[fc("0xf7")](e[fc("0x83")],e[fc("0x25")],n):r.removeAttribute(e[fc("0x83")],n)}))})),this._defaultCallbacks[fc("0x7")]("attribute:join",r)}}function pc(t,e,n){for(const r of e.parent[fc("0x47")]({includeSelf:!0,parentFirst:!0})){if(r[fc("0xac")]==r)return!1;if(!n[fc("0x126")](r))return!1;if(t[fc("0x86")](r)||t[fc("0x159")](r))return!0}return!1}function Ec(t){return t[fc("0x16f")][fc("0xe3")]==t[fc("0x156")][fc("0x34")]&&t.end[fc("0x59")]}function _c(t,e,n,r){const i=t=>!t[fc("0xcd")].is(fc("0x10b"))&&!r[fc("0x86")](t.item),o=t[fc("0x156")][fc("0x24")](i),s=t[fc("0x16f")][fc("0x24")](i,{direction:"backward"});return!(t[fc("0x156")].isEqual(o)&&t.end.isEqual(s)||(o[fc("0x5a")](s)?n[fc("0xe")](e,{range:n[fc("0xe6")](o,s)}):n[fc("0x11")](e),0))}function Tc(t){return(0,o.hashObject)(t)}function yc(t){const e=t[fc("0x156")].nodeAfter;return e&&e.is(fc("0x15f"))}function Cc(t,e){const n=e.schema[fc("0x86")](t)||e[fc("0x10e")][fc("0x123")](t);return e[fc("0xe6")](e[fc("0x29")](t,fc("0x15")),n?e.createPositionAfter(t):e.createPositionAt(t,"end"))}function Ac(t,e,n,r,i){if(!kc(t,e))return!1;if(n.end.isEqual(r[fc("0x156")]))return!0;if(t[fc("0x137")]!=e[fc("0x137")])return!1;if(!n[fc("0x16f")].isTouching(r.start))return!1;const o=i[fc("0xe6")](n[fc("0x16f")],r.start)[fc("0x144")]();for(const t of o)if(["elementStart","elementEnd"][fc("0xb1")](t[fc("0x137")])&&i.schema.isLimit(t[fc("0xcd")]))return!1;return!0}function kc(t,e){return!(!t[fc("0x43")]||!e[fc("0x43")])&&jr(t[fc("0x38")],e.attributes)}function Ic(t,e){const n=Rc(t.attributes),r=Rc(e);if(!t[fc("0x43")])return!1;for(const t of Object[fc("0x55")](r))if(!jr(n[t],r[t]))return!1;return!0}function Rc(t){const e=Object[fc("0x108")]({},t);return delete e[fc("0xa4")],delete e[fc("0x80")],e}function Sc(t){return fc("0x5e")==t[fc("0x137")]?t[fc("0xd0")][fc("0x9d")]("|")[0]:null}const Nc=["canDiscard","change:isDirty","locale","acceptSuggestion","view","_setPendingAction","destroy","canEditAt","isDirty","execute","commands","isEnabled","bind","model","plugins","canAccept","listenTo","_removePendingAction","_pendingAction","get","discardSuggestion","PendingActions","getRanges","unbind","_acceptCommand","_discardCommand","commentThreadController","_editor"];var vc,Lc;vc=Nc,Lc=338,function(t){for(;--t;)vc.push(vc.shift())}(++Lc);const Mc=function(t,e){return Nc[t-=0]};class wc extends((0,e.ObservableMixin)()){constructor(t,e,n,r){super(),this[Mc("0xb")]=e,this[Mc("0x2")]=n,this[Mc("0x18")]=r,this[Mc("0x19")]=t,this._acceptCommand=t[Mc("0x8")][Mc("0x11")](Mc("0x1")),this[Mc("0x17")]=t[Mc("0x8")][Mc("0x11")](Mc("0x12")),this[Mc("0x2")][Mc("0xa")](Mc("0x9")).to(this[Mc("0x16")],this._discardCommand,((t,e)=>t||e)),this.view[Mc("0xa")](Mc("0xd")).to(this[Mc("0x16")],"isEnabled",(t=>t&&this[Mc("0x19")][Mc("0xb")][Mc("0x5")](e[Mc("0x14")]()))),this[Mc("0x2")].bind(Mc("0x1a")).to(this[Mc("0x17")],Mc("0x9"),(t=>t&&this[Mc("0x19")].model[Mc("0x5")](e[Mc("0x14")]()))),this[Mc("0x10")]=null,n[Mc("0x6")]&&this._setPendingAction(),this[Mc("0xe")](n,"acceptSuggestion",(()=>this[Mc("0x1")]())),this[Mc("0xe")](n,Mc("0x12"),(()=>this[Mc("0x12")]())),this[Mc("0xe")](n,Mc("0x1b"),(()=>{n[Mc("0x6")]?this[Mc("0x3")]():this[Mc("0xf")]()}))}acceptSuggestion(){this._acceptCommand[Mc("0x7")](this[Mc("0xb")].id)}[Mc("0x12")](){this[Mc("0x17")][Mc("0x7")](this[Mc("0xb")].id)}destroy(){this[Mc("0x2")][Mc("0x15")](Mc("0x9")),this[Mc("0x2")].unbind(Mc("0xd")),this[Mc("0x2")].unbind(Mc("0x1a")),this.stopListening(),this[Mc("0x18")][Mc("0x4")](),this._pendingAction&&this[Mc("0xf")]()}[Mc("0x3")](){const t=Jr(this[Mc("0x19")][Mc("0x0")],"PENDING_ACTION_SUGGESTION");this[Mc("0x10")]=this[Mc("0x19")][Mc("0xc")].get("PendingActions").add(t)}[Mc("0xf")](){null!==this[Mc("0x10")]&&this[Mc("0x19")][Mc("0xc")][Mc("0x11")](Mc("0x13")).remove(this[Mc("0x10")]),this[Mc("0x10")]=null}}const Oc=["commentInputView","destroy","_createCommentViews","value","isEnabled","_config","_localUser","showInput","canAccept","_model","locale","CommentView","setData","_createCommentThreadInputView","assign","focus","commentsListView","commentThread","disabledSubmit","editor","isDirty","canDiscard","descriptionParts","addComment","bind","fire","isActive","editorConfig","cancel","length","delegate","isReadOnly","commentThreadInputView","disableComments","authoredAt","set","element"];var Fc,Dc;Fc=Oc,Dc=331,function(t){for(;--t;)Fc.push(Fc.shift())}(++Dc);const Bc=function(t,e){return Oc[t-=0]};class Pc extends i.View{constructor(t,e,n,r){super(t),this.commentsListView=null,this[Bc("0x22")]=null,this[Bc("0x0")](Bc("0x1c"),!1),this[Bc("0x0")](Bc("0x24"),e.authoredAt),this[Bc("0x1a")](Bc("0x24")).to(e),this.set(Bc("0x18"),[]),this.set(Bc("0x16"),!1),this.set(Bc("0x6"),!1),this.set(Bc("0xa"),!1),this.set(Bc("0x17"),!1),this[Bc("0xb")]=e,this._localUser=n,this[Bc("0x7")]=r,r[Bc("0x23")]?this[Bc("0x0")]("length",1):this[Bc("0x4")]()}[Bc("0x11")](){this[Bc("0x1")][Bc("0x11")]()}destroy(){this[Bc("0x12")]&&this[Bc("0x12")].destroy(),this[Bc("0x22")]&&this.commentThreadInputView[Bc("0x3")](),super[Bc("0x3")]()}[Bc("0x4")](){const{CommentsListView:t}=this[Bc("0x7")];this[Bc("0x12")]=new t(this.locale,this[Bc("0xb")][Bc("0x13")],Object[Bc("0x10")]({CommentView:this._config[Bc("0xd")]},this[Bc("0x7")])),this[Bc("0x12")][Bc("0x20")]("removeComment").to(this),this.commentsListView[Bc("0x20")]("updateComment").to(this),this[Bc("0x12")][Bc("0x1a")](Bc("0x1c")).to(this),this.set(Bc("0x1f"),this[Bc("0x12")][Bc("0x1f")]+1),this.bind(Bc("0x1f")).to(this[Bc("0x12")],Bc("0x1f"),(t=>t+1)),this[Bc("0x22")]=this[Bc("0xf")](),this.on("removeComment",(()=>this[Bc("0x11")]())),this[Bc("0x1a")](Bc("0x16")).to(this[Bc("0x12")],"hasDirtyComment",this.commentThreadInputView[Bc("0x2")],Bc("0x5"),((t,e)=>t||!!e))}[Bc("0xf")](){const{CommentThreadInputView:t}=this[Bc("0x7")],e=new t(this[Bc("0xc")],this[Bc("0x8")],this[Bc("0x7")][Bc("0x1d")]),n=e.commentInputView;return e[Bc("0x1a")](Bc("0x9")).to(this,Bc("0x1c"),this[Bc("0xb")][Bc("0x13")],Bc("0x21"),n,"value",((t,e,n)=>!!n||t&&!e)),n.on("submit",((t,e)=>{this[Bc("0x1b")](Bc("0x19"),e),n[Bc("0x15")][Bc("0xe")]("")})),n.on(Bc("0x1e"),(()=>this[Bc("0x11")]())),n.bind(Bc("0x14")).to(this[Bc("0xb")][Bc("0x13")],Bc("0x21")),e}}const Uc=["formatDateTime","_model","ck-suggestion__actions","author","ck-suggestion-wrapper--active","acceptSuggestion","name","authoredAt",'<span class="ck-suggestion-type">',"discardButton","getUserViewNotificationText","innerHTML","render","description","</span>","ck-annotation__info","time","ck-comment__external","isExternal","attributes","extendTemplate","_config","descriptionParts","userView","bind","split","acceptButton","getExternalSuggestionNote","canAccept","Discard suggestion","importWord","ck-suggestion__main","_descriptionElement","set","canDiscard","creator","ck-annotation__actions","ck-comment__info-time","execute","editorReady","getTemplate","value","_createButton","EXTERNAL_IMPORT_WORD_AVATAR","commentThread","ck-annotation","fire","querySelector","cancel","EXTERNAL_SUGGESTION","isEnabled","locale","ck-suggestion--accept","commentThreadInputView","div","EXTERNAL_AVATAR","ck-suggestion__info","setTemplate","commentsListView","ck-suggestion","isActive","ck-suggestion--discard","ck-annotation__main","delegate","push","ck-annotation__info-time","ck-suggestion__user","type","ck-suggestion--disabled-comments","check","@external","<p>","bindTemplate","EXTERNAL_IMPORT_WORD_SUGGESTION","</p>","span","element"];var jc,Gc;jc=Uc,Gc=435,function(t){for(;--t;)jc.push(jc.shift())}(++Gc);const Hc=function(t,e){return Uc[t-=0]};class Vc extends Pc{constructor(e,n,r,i){super(e,n,r,i),this[Hc("0x3c")](Hc("0x11"),""),this[Hc("0x33")](Hc("0x11")).to(this,Hc("0x31"),(t=>t&&t[0]?t[0][Hc("0x11")]:"")),this[Hc("0x33")](Hc("0x28")).to(this,"descriptionParts",this,Hc("0xa"),((t,e)=>{let n="";for(const e of t)n+=Hc("0x15")+zc(e.content,e.color)+Hc("0x18");return e?n:(0,o.trimHtml)(n,{limit:140})})),this[Hc("0x3b")]=null,this[Hc("0x35")]=this[Hc("0x45")](Jr(e,"Accept suggestion"),t.icons[Hc("0x13")],Hc("0x2"),Hc("0x20"),"sw"),this.acceptButton.bind(Hc("0x0")).to(this,Hc("0x37")),this.discardButton=this[Hc("0x45")](Jr(e,Hc("0x38")),t.icons[Hc("0x4b")],Hc("0xb"),"discardSuggestion","sw"),this[Hc("0x24")][Hc("0x33")]("isEnabled").to(this,Hc("0x3d")),this.userView=new o.UserView(e,this[Hc("0x1c")][Hc("0x1e")],this[Hc("0x25")]()),this[Hc("0x32")][Hc("0x2f")]({attributes:{class:[Hc("0x10"),"ck-annotation__user"]}}),this[Hc("0x7")](this[Hc("0x43")]())}[Hc("0x43")](){const t=this[Hc("0x16")],e=[{tag:Hc("0x4"),attributes:{class:[Hc("0x6"),Hc("0x2a")]},children:[{tag:Hc("0x19"),children:[{text:this[Hc("0x32")][Hc("0x21")]}],attributes:{class:["ck-suggestion__info-name","ck-annotation__info-name"]}},{tag:Hc("0x2b"),attributes:{datetime:t.to(Hc("0x22")),class:[Hc("0x40"),Hc("0xf")]},children:[{text:t.to(Hc("0x22"),(t=>this[Hc("0x30")][Hc("0x1b")](t)))}]}]},{tag:"div",attributes:{class:[Hc("0x1d"),Hc("0x3f")]},children:[this[Hc("0x35")],this[Hc("0x24")]]},{tag:Hc("0x4"),attributes:{class:["ck-annotation__content-wrapper"]}}];this[Hc("0x1c")][Hc("0x2d")]&&e.push({tag:Hc("0x4"),attributes:{class:[Hc("0x2c")]},children:[{text:this[Hc("0x36")]()}]});const n={tag:Hc("0x4"),attributes:{class:["ck-suggestion-wrapper",t.if("isActive",Hc("0x1f")),t.to("type",(t=>"ck-suggestion-"+t)),this[Hc("0x30")].disableComments&&Hc("0x12")],"data-suggestion-id":this[Hc("0x1c")].id,"data-thread-id":this._model[Hc("0x47")].id,"data-author-id":this[Hc("0x1c")].author.id,tabindex:-1},children:[{tag:Hc("0x4"),attributes:{class:[Hc("0x9"),Hc("0x48")]},children:[this.userView,{tag:Hc("0x4"),attributes:{class:[Hc("0x3a"),Hc("0xc")]},children:e}]}]};return this[Hc("0x8")]&&this[Hc("0x3")]&&(n.children[Hc("0xe")](this[Hc("0x8")],this[Hc("0x3")]),this[Hc("0x8")].delegate("editorReady").to(this),this.commentsListView[Hc("0xd")]("editorDestroyed").to(this),this[Hc("0x3")].delegate(Hc("0x42")).to(this),this[Hc("0x3")][Hc("0xd")]("editorDestroyed").to(this)),n}[Hc("0x27")](){super[Hc("0x27")](),this._descriptionElement=this[Hc("0x1a")][Hc("0x4a")](".ck-annotation__content-wrapper"),this._descriptionElement[Hc("0x26")]=this.description,this.on("change:description",((t,e,n)=>{this._descriptionElement[Hc("0x26")]=n}))}[Hc("0x45")](t,e,n,r,o){const s=new i.ButtonView(this[Hc("0x1")]);return s[Hc("0x3c")]({label:t,icon:e,tooltip:!0,tooltipPosition:o}),s[Hc("0x2f")]({attributes:{class:n}}),s.on(Hc("0x41"),(()=>{this[Hc("0x49")](r,this._model.id)})),s}[Hc("0x36")](){return Hc("0x39")===this[Hc("0x1c")][Hc("0x2e")][Hc("0x14")].source?Jr(this[Hc("0x1")],Hc("0x17")):Jr(this[Hc("0x1")],Hc("0x4c"))}[Hc("0x25")](){return this._model[Hc("0x2d")]?Hc("0x39")===this[Hc("0x1c")][Hc("0x2e")]["@external"].source?Jr(this[Hc("0x1")],Hc("0x46"),this._model[Hc("0x3e")][Hc("0x21")]):Jr(this[Hc("0x1")],Hc("0x5"),this[Hc("0x1c")][Hc("0x3e")][Hc("0x21")]):null}}function zc(t,e){let n="";return n+=t[Hc("0x34")]("*").map(((t,e)=>e%2!=0?Hc("0x23")+Wc(t)+Hc("0x29"):Wc(t))).join(""),e&&(n+='<span class="ck-suggestion-color" style="background-color: '+e[Hc("0x44")]+'" title="'+e.title+'"></span>'),n}function Wc(t){const e=document.createElement(Hc("0x19"));return e.innerText=t,e[Hc("0x26")]}const Kc=["trackChanges","execute","mainView","getSuggestion","filter","button","_suggestionToController","clear","value","pluginName","discardButton","length","_bindAnnotationToEditors","createCommentThreadController","isInContent","getMarkers","_handleSuggestionControllerDelayed","createAnnotation","isMultiRange","_annotationViews","getRanges","_handleControllerBuffer","addSourceCollector","get","view","head","change:previous","bind","activeAnnotations","values","define","set","suggestionUnloaded","from","acceptAllSuggestions","getDescriptions","separator","componentFactory","buttonView","EditorAnnotations","getAllAdjacentSuggestions","getMarkerNames","discardSelectedSuggestions","TrackChangesUI","_refreshActiveMarkers","descriptionParts","actionView","registerAnnotation","comments.maxCommentCharsWhenCollapsed","SuggestionThreadView","hasSuggestion","trackChanges.disableComments","comments","TrackChangesEditing","init","discardAllSuggestions","_descriptionFactory","trackChanges.SuggestionThreadView","_viewToController","acceptSelectedSuggestions","toMany","listenTo","previous","comments.maxCommentsWhenCollapsed","CommentView","has","isEnabled","commandName","createAnnotationView","delete","Accept all selected suggestions","stopListening","Track changes","type","requires","push","editing","destroy","acceptButton","config","Accept all suggestions","activeMarkers","CommentsUI","reduce","plugins","remove","unbind","arrowView","getFirstRange","comments.editorConfig","commands","_initializeController","_unbindEditors","Annotations","refreshSelectedViews","editor","_disableComments","Discard all suggestions","suggestionChanged","addComment","add","_updateController","suggestionLoaded","focus","change:activeAnnotations","_destroyController","model","isOn","CommentsRepository","locale"];var qc,Xc;qc=Kc,Xc=121,function(t){for(;--t;)qc.push(qc.shift())}(++Xc);const $c=function(t,e){return Kc[t-=0]};class Zc extends t.Plugin{static get[$c("0x3f")](){return[hc,o.Users,$c("0x61"),$c("0x52"),$c("0x1c")]}static get[$c("0x6c")](){return $c("0x20")}constructor(t){super(t),this[$c("0x69")]=new Map,this._viewToController=new Map,this[$c("0x8")]=new Map,this[$c("0xa")]=new Map;const e=this[$c("0x54")][$c("0x44")];e[$c("0x13")]($c("0x2e"),Vc),e[$c("0x13")]("trackChanges.disableComments",!1),this[$c("0x55")]=e[$c("0xc")]($c("0x28"))}[$c("0x5")](t,e){0===this[$c("0xa")].size&&setTimeout((()=>{for(const[t,e]of this[$c("0xa")]){const n=this[$c("0x69")][$c("0x36")](t);n||e?n&&e&&this[$c("0x5e")](t):this[$c("0x50")](t)}this[$c("0x54")][$c("0x49")][$c("0xc")]($c("0x1c"))[$c("0x53")](),this[$c("0x21")](),this[$c("0xa")][$c("0x6a")]()}),10),this[$c("0xa")][$c("0x14")](t,e)}[$c("0x2b")](){const t=this[$c("0x54")],e=t[$c("0x49")][$c("0xc")]($c("0x2a")),n=t[$c("0x49")][$c("0xc")]("Annotations"),r=t[$c("0x49")][$c("0xc")]($c("0x1c")),i=t[$c("0x49")][$c("0xc")]("CommentsRepository");t.ui[$c("0x1a")][$c("0x59")]($c("0x63"),(t=>this._createUIButton(t))),r[$c("0xb")]((()=>{const t=[];for(const[e,n]of Array[$c("0x16")](this._suggestionToController)){const r=e[$c("0x1d")](),i=[];for(const t of r){if(!t[$c("0x3")])continue;if(t[$c("0x7")]){i.push(...t[$c("0x9")]());continue}const e=t[$c("0x4d")]();if(i[$c("0x0")]>0){const t=i[0].getJoined(e);if(t){i[0]=t;continue}}i[$c("0x40")](e)}t[$c("0x40")]([n[$c("0xd")],i])}return t})),this[$c("0x32")](e,$c("0x5b"),((t,e)=>{this[$c("0x32")](e,"change:previous",((t,n,r,i)=>{e[$c("0x3")]&&(null==r?(this[$c("0x5a")](i[$c("0xe")]),this[$c("0x5")](e,!1)):(this[$c("0x5a")](r[$c("0xe")]),null==i&&this[$c("0x5")](e,!0)))})),null!==e[$c("0x33")]?this[$c("0x5a")](e[$c("0xe")]):this[$c("0x5")](e,!1)})),this[$c("0x32")](e,$c("0x15"),((t,e,n)=>{this[$c("0x3c")](e,$c("0xf")),this[$c("0xa")][$c("0x3a")](e),this[$c("0x69")][$c("0x36")](e)&&this._destroyController(e),n&&this._updateController(n.head)})),this[$c("0x32")](e,$c("0x57"),((t,e)=>{this[$c("0x5a")](e)})),this[$c("0x32")](n,$c("0x5d"),(()=>{this[$c("0x21")]()})),this[$c("0x32")](i,$c("0x58"),((t,{threadId:n,isFromAdapter:r})=>{if(r||!e[$c("0x27")](n))return;const i=e[$c("0x66")](n);this[$c("0x69")][$c("0xc")](i).view.focus()}),{priority:"lowest"})}[$c("0x21")](){const t=this[$c("0x54")][$c("0x49")][$c("0xc")]("Annotations"),e=this[$c("0x54")][$c("0x49")].get($c("0x2a")),n=Array.from(t[$c("0x11")],(t=>t.innerView)).filter((t=>this[$c("0x2f")][$c("0x36")](t))),r=[];for(const t of n){const e=this[$c("0x2f")][$c("0xc")](t)[$c("0x5f")][$c("0x1d")]();r[$c("0x40")](...e[$c("0x48")](((t,e)=>[...t,...e[$c("0x1e")]()]),[]))}e[$c("0x46")]=r}_createUIButton(t){const n=(0,i.createDropdown)(t,i.SplitButtonView),r=this.editor[$c("0x4f")].get($c("0x63")),o=Jr(t,$c("0x3d"));n[$c("0x1b")][$c("0x14")]({tooltip:o,label:o,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n.buttonView[$c("0x10")]($c("0x60")).to(r,$c("0x6b")),n.buttonView.on($c("0x64"),(()=>{r[$c("0x64")](),this[$c("0x54")][$c("0x41")][$c("0xd")][$c("0x5c")]()}));const s=new e.Collection,x=[{type:"switchbutton",model:{withText:!0,label:o,commandName:$c("0x63")}},{type:$c("0x19")},{type:$c("0x68"),model:{withText:!0,label:Jr(t,$c("0x45")),commandName:$c("0x17")}},{type:$c("0x68"),model:{withText:!0,label:Jr(t,$c("0x3b")),commandName:$c("0x30")}},{type:$c("0x68"),model:{withText:!0,label:Jr(t,$c("0x56")),commandName:$c("0x2c")}},{type:$c("0x68"),model:{withText:!0,label:Jr(t,"Discard all selected suggestions"),commandName:$c("0x1f")}}];for(const t of x){let e={type:$c("0x19")};if(t[$c("0x5f")]){const n=new i.Model(t[$c("0x5f")]),r=this[$c("0x54")].commands[$c("0xc")](n.commandName);n[$c("0x10")]("isOn",$c("0x37")).to(r,$c("0x6b"),$c("0x37")),e={type:t.type,model:n}}s[$c("0x59")](e)}(0,i.addListToDropdown)(n,s);const a=x[$c("0x67")]((t=>null!=t[$c("0x5f")])).map((t=>this[$c("0x54")].commands[$c("0xc")](t.model[$c("0x38")]))),c=n[$c("0x1b")];return c[$c("0x23")][$c("0x4b")]($c("0x37")),c[$c("0x4c")][$c("0x4b")]($c("0x37")),c[$c("0x23")].bind($c("0x37")).to(r,$c("0x37")),c.arrowView.bind($c("0x37"))[$c("0x31")](a,$c("0x37"),((...t)=>t.some((t=>t)))),n.on($c("0x64"),(t=>{this.editor[$c("0x64")](t.source.commandName),this[$c("0x54")][$c("0x41")][$c("0xd")][$c("0x5c")]()})),n}[$c("0x50")](t){const e=this[$c("0x54")],n=e.config,r=e[$c("0x49")][$c("0xc")]($c("0x52")),i=e[$c("0x49")][$c("0xc")]($c("0x61")),s=e[$c("0x49")].get("EditorAnnotations"),x=e[$c("0x49")][$c("0xc")](o.Users).me,a=n[$c("0xc")]($c("0x63"))[$c("0x26")],{CommentsListView:c,CommentThreadInputView:l}=e[$c("0x49")].get($c("0x47"));let u,d;this[$c("0x8")][$c("0x36")](t.id)?(d=this[$c("0x8")][$c("0xc")](t.id),u=d[$c("0x65")]):(u=new a(e[$c("0x62")],t,x,{disableComments:this._disableComments,editorConfig:n[$c("0xc")]($c("0x4e")),maxCommentsWhenCollapsed:n.get($c("0x34")),maxThreadTotalWeight:n[$c("0xc")]("comments.maxThreadTotalWeight"),maxCommentCharsWhenCollapsed:n[$c("0xc")]($c("0x25")),formatDateTime:(0,o.getDateTimeFormatter)(n[$c("0xc")]("locale")),CommentView:n[$c("0xc")]($c("0x29"))[$c("0x35")],CommentsListView:c,CommentThreadInputView:l}),u[$c("0x43")].on($c("0x64"),(()=>{e[$c("0x41")][$c("0xd")][$c("0x5c")]()})),u[$c("0x6d")].on("execute",(()=>{e.editing.view[$c("0x5c")]()})),d=r[$c("0x39")](this[$c("0x54")][$c("0x62")],u),d[$c("0x10")]("isDirty").to(u,"isDirty"),d.bind($c("0x0")).to(u),d.bind($c("0x3e")).to(u,$c("0x3e"),(t=>"suggestion-"+t)),this[$c("0x8")][$c("0x14")](t.id,d));const g=i[$c("0x2")](t.commentThread,u),f=new wc(e,t,u,g),m=t[$c("0x1d")]()[$c("0x67")]((t=>t[$c("0x3")]));u[$c("0x22")]=e.plugins[$c("0xc")]("TrackChangesEditing")[$c("0x2d")][$c("0x18")](m),this[$c("0x69")][$c("0x14")](t,f),this._viewToController.set(u,f);const h=r[$c("0x6")]({view:d,target:()=>{const n=[],r=t[$c("0x1d")]()[$c("0x67")]((t=>t[$c("0x3")]));for(const t of r)n.push(...t[$c("0x4")]());return(0,o.getAllMarkersDomElementsSorted)(e[$c("0x41")],n)},type:()=>"suggestion-"+f[$c("0xd")][$c("0x3e")]});i[$c("0x1")](u,h),r[$c("0x59")](h),s[$c("0x24")](h)}[$c("0x5e")](t){const e=this[$c("0x54")][$c("0x49")].get($c("0x61")),n=this[$c("0x54")][$c("0x49")][$c("0xc")]("Annotations"),r=this[$c("0x69")][$c("0xc")](t),i=r[$c("0xd")],o=n.getByInnerView(i);e[$c("0x51")](i),o&&n[$c("0x4a")](o),this._suggestionToController.delete(t),this[$c("0x2f")][$c("0x3a")](i),r[$c("0x42")]()}[$c("0x5a")](t){if(!t[$c("0x3")]||!this._suggestionToController[$c("0x36")](t))return;const e=this[$c("0x54")][$c("0x49")][$c("0xc")]($c("0x2a")),n=this._suggestionToController[$c("0xc")](t),r=t[$c("0x1d")]();n[$c("0xd")][$c("0x22")]=e[$c("0x2d")][$c("0x18")](r)}[$c("0x42")](){for(const t of this._suggestionToController.keys())this[$c("0x5e")](t);for(const t of this[$c("0x8")][$c("0x12")]())t.mainView[$c("0x42")]();super[$c("0x42")]()}}var Yc,Jc,Qc=["TrackChanges","editor","getSuggestions","requires","addSuggestionData","pluginName","adapter","get","getSuggestion","plugins"];Yc=Qc,Jc=372,function(t){for(;--t;)Yc.push(Yc.shift())}(++Jc);var tl=function(t,e){return Qc[t-=0]};class el extends t.Plugin{static get[tl("0x1")](){return[hc,Zc,"Comments"]}static get[tl("0x3")](){return tl("0x8")}set[tl("0x4")](t){this.editor[tl("0x7")][tl("0x5")](hc)[tl("0x4")]=t}get[tl("0x4")](){return this.editor[tl("0x7")][tl("0x5")](hc)[tl("0x4")]}addSuggestion(t){return this[tl("0x9")].plugins[tl("0x5")](hc)[tl("0x2")](t)}[tl("0x0")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this.editor[tl("0x7")][tl("0x5")](hc).getSuggestions({skipNotAttached:t,toJSON:e})}getSuggestion(t){return this[tl("0x9")][tl("0x7")].get(hc)[tl("0x6")](t)}}const nl=["users","result","editorCreator","rootsAttributes","destroy","getDataWithAcceptedSuggestions","create","pluginName","get","getUser","Pagination","name","set","useAnonymousUser","acceptAllSuggestions","reduce","track-changes-data-invalid-editor-creator","execute","getRootsAttributes","createDocumentFragment","data","CommentsRepository","getSuggestions","TrackChangesEditing","TrackChangesDataGetter","config","_adapter","constructor","editor","map","getFullData","define","document","end","plugins","model","trackChangesData","appendChild","div","init","push","TrackChangesData","getRootNames","getDataWithDiscardedSuggestions","trackChangesData.editorCreator"];var rl,il;rl=nl,il=421,function(t){for(;--t;)rl.push(rl.shift())}(++il);const ol=function(t,e){return nl[t-=0]},sl=[ol("0x27")];class xl extends t.Plugin{static get requires(){return[hc]}static get[ol("0x24")](){return ol("0x19")}[ol("0x17")](){const t=this[ol("0xc")];if(t.config[ol("0xf")](ol("0x1c"),(e=>{const n=t[ol("0x13")][ol("0x10")].getRootNames()[ol("0x2c")](((t,e)=>(t[e]="",t)),{});return t[ol("0xb")][ol("0x23")](n,e)})),"function"!=typeof t[ol("0x9")][ol("0x25")](ol("0x14"))[ol("0x1f")])throw new e.CKEditorError(ol("0x0"))}[ol("0x22")](t){return ll(this[ol("0xc")],!0,t)}[ol("0x1b")](t){return ll(this[ol("0xc")],!1,t)}}class al extends t.Plugin{static get[ol("0x24")](){return ol("0x8")}constructor(t){super(t),this[ol("0x1e")]=ol("0x11")}[ol("0x17")](){this.editor[ol("0x12")][ol("0x25")](ol("0x5"))[ol("0xa")]={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this.editor[ol("0x12")][ol("0x25")](ol("0x7"))[ol("0xa")]=null}}function cl(t){return void 0!==t[ol("0x2")]}async function ll(t,e,n){const r=(0,o.sanitizeEditorConfig)(t,sl);r[ol("0x12")][ol("0x18")](hc,al),r[ol("0x20")]=cl(t)?t[ol("0x2")]():void 0;const i=document[ol("0x3")](),s=t[ol("0x9")].get(ol("0x14"))[ol("0x1f")],x=await s(r,(()=>function(t){const e=document.createElement(ol("0x16"));return t[ol("0x15")](e),e}(i)));!function(t,e){const n=t[ol("0x13")][ol("0x10")][ol("0x1a")]()[ol("0x2c")](((e,n)=>(e[n]=t[ol("0x4")][ol("0x25")]({rootName:n}),e)),{}),r=t[ol("0x12")][ol("0x25")]("Users")[ol("0x1d")][ol("0xd")]((t=>({id:t.id,name:t[ol("0x28")]}))),i=t[ol("0x12")].get(ol("0x7"))[ol("0x6")]({skipNotAttached:!0,toJSON:!0}),o=e[ol("0x12")][ol("0x25")]("Users"),s=e[ol("0x12")][ol("0x25")](ol("0x7"));for(const t of r)o[ol("0x26")](t.id)||o.addUser(t);o.me||o[ol("0x2a")]();for(const t of i)s.addSuggestionData(t);e[ol("0x4")][ol("0x29")](n)}(t,x),x[ol("0x1")](e?ol("0x2b"):"discardAllSuggestions");const a=cl(x)?x[ol("0xe")](n):x[ol("0x4")][ol("0x25")](n);return await x[ol("0x21")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=r})();