@ckeditor/ckeditor5-track-changes 36.0.0 → 36.0.1

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 (61) hide show
  1. package/build/track-changes.js +1 -1
  2. package/package.json +4 -4
  3. package/src/commands/acceptsuggestioncommand.js +1 -1
  4. package/src/commands/discardsuggestioncommand.js +1 -1
  5. package/src/commands/executeonallsuggestionscommand.js +1 -1
  6. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  7. package/src/commands/trackchangescommand.js +1 -1
  8. package/src/integrations/alignment.js +1 -1
  9. package/src/integrations/basicstyles.js +1 -1
  10. package/src/integrations/blockquote.js +1 -1
  11. package/src/integrations/ckbox.js +1 -1
  12. package/src/integrations/codeblock.js +1 -1
  13. package/src/integrations/comments.js +1 -1
  14. package/src/integrations/deletecommand.js +1 -1
  15. package/src/integrations/documentlist.js +1 -1
  16. package/src/integrations/documentlistproperties.js +1 -1
  17. package/src/integrations/entercommand.js +1 -1
  18. package/src/integrations/findandreplace.js +1 -1
  19. package/src/integrations/font.js +1 -1
  20. package/src/integrations/heading.js +1 -1
  21. package/src/integrations/highlight.js +1 -1
  22. package/src/integrations/horizontalline.js +1 -1
  23. package/src/integrations/htmlembed.js +1 -1
  24. package/src/integrations/image.js +1 -1
  25. package/src/integrations/imagereplace.js +1 -1
  26. package/src/integrations/importword.js +1 -1
  27. package/src/integrations/indent.js +1 -1
  28. package/src/integrations/inputcommand.js +1 -1
  29. package/src/integrations/link.js +1 -1
  30. package/src/integrations/list.js +1 -1
  31. package/src/integrations/listproperties.js +1 -1
  32. package/src/integrations/mediaembed.js +1 -1
  33. package/src/integrations/mention.js +1 -1
  34. package/src/integrations/pagebreak.js +1 -1
  35. package/src/integrations/paragraph.js +1 -1
  36. package/src/integrations/removeformat.js +1 -1
  37. package/src/integrations/restrictededitingmode.js +1 -1
  38. package/src/integrations/shiftentercommand.js +1 -1
  39. package/src/integrations/standardeditingmode.js +1 -1
  40. package/src/integrations/style.js +1 -1
  41. package/src/integrations/table.js +1 -1
  42. package/src/integrations/tablecaption.js +1 -1
  43. package/src/integrations/tableclipboard.js +1 -1
  44. package/src/integrations/tablecolumnresize.js +1 -1
  45. package/src/integrations/tableheadings.js +1 -1
  46. package/src/integrations/tablemergesplit.js +1 -1
  47. package/src/integrations/tableproperties.js +1 -1
  48. package/src/integrations/title.js +1 -1
  49. package/src/integrations/undo.js +1 -1
  50. package/src/integrations/utils.js +1 -1
  51. package/src/suggestion.js +1 -1
  52. package/src/suggestiondescriptionfactory.js +1 -1
  53. package/src/trackchanges.js +1 -1
  54. package/src/trackchangesdata.js +1 -1
  55. package/src/trackchangesediting.js +1 -1
  56. package/src/trackchangesui.js +1 -1
  57. package/src/ui/suggestioncontroller.js +1 -1
  58. package/src/ui/view/basesuggestionthreadview.js +1 -1
  59. package/src/ui/view/suggestionthreadview.js +1 -1
  60. package/src/utils/common-translations.js +1 -1
  61. package/src/utils/utils.js +1 -1
@@ -2,4 +2,4 @@
2
2
  /*!
3
3
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var s=e[o];if(void 0!==s)return s.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>za,TrackChanges:()=>ac,TrackChangesData:()=>mc});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["_disableUnsupportedCommands","_enableCommands","editor","TrackChangesCommand","execute","value","refresh","_enabledCommands","affectsData","commands","isEnabled","forceDisabled","clearForceDisabled"];var c,l;c=a,l=319,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("0x0")]=e,this[u("0xb")]=!1,this[u("0xc")]()}[u("0xc")](){this[u("0x3")]=!0}[u("0xa")](){this[u("0xb")]=!this.value,this[u("0xb")]?this[u("0x6")]():this[u("0x7")]()}[u("0x6")](){for(const t of this.editor[u("0x2")].commands())t.affectsData&&!this[u("0x0")].has(t)&&t[u("0x4")](u("0x9"))}_enableCommands(){for(const t of this[u("0x8")][u("0x2")][u("0x2")]())t[u("0x1")]&&!this[u("0x0")].has(t)&&t[u("0x5")](u("0x9"))}}const g=["_suggestions","acceptSuggestion","refresh","track-changes-accept-suggestion-not-found","execute","get","TrackChangesEditing","isEnabled"];var f,m;f=g,m=296,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[h("0x0")]=e,this[h("0x2")]()}[h("0x2")](){this[h("0x7")]=!0}[h("0x4")](t){const n=this[h("0x0")][h("0x5")](t);if(!n)throw new e.CKEditorError(h("0x3"),this);this.editor.plugins.get(h("0x6"))[h("0x1")](n)}}const b=["execute","get","isEnabled","TrackChangesEditing","refresh","discardSuggestion","_suggestions"];var E,_;E=b,_=125,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class y extends t.Command{constructor(t,e){super(t),this[T("0x0")]=e,this[T("0x5")]()}[T("0x5")](){this[T("0x3")]=!0}[T("0x1")](t){const n=this[T("0x0")][T("0x2")](t);if(!n)throw new e.CKEditorError("track-changes-discard-suggestion-not-found",this);this.editor.plugins.get(T("0x4"))[T("0x6")](n)}}const C=["value"," [color ","schema","createPositionAfter","change","isMultiRange","execute","start","isObject","join","content","createRange","sort","isTouching","getRanges","end","createPositionBefore","from","isIntersecting","color","push","add","type","map","getRange","isInContent","isCollapsed","deletion","replace"];var k,A;k=C,A=308,function(t){for(;--t;)k.push(k.shift())}(++A);const R=function(t,e){return C[t-=0]};function v(t){return t[R("0x17")](((t,e)=>R("0x9")==t[R("0x4")]&&R("0x9")!=e.type?-1:R("0x9")!=t.type&&R("0x9")==e.type?1:0))}function I(t,e){let n,o=0;const s=[],r=e[R("0xd")];for(;o<t.length;){const i=t[o],x=t[o+1];n||(n=e[R("0x1b")](i)),S(e,i,x)||(s[R("0x2")](e[R("0x16")](n,r[R("0x13")](i)?e[R("0xe")](i):e.createPositionAt(i,"end"))),n=null),o++}return s}function S(t,e,n){if(!n)return!1;const o=t[R("0xe")](e),s=t.createPositionBefore(n);return o.isTouching(s)}function L(t,e,n){for(;n.length;){const o=n.splice(0,100);t[R("0xf")]((()=>{for(const t of o)t[R("0x7")]&&e[R("0x11")](t.id)}))}}const M=["_suggestions","from","editor","_command","refresh","values","some","isInContent","isEnabled"];var N,w;N=M,w=320,function(t){for(;--t;)N.push(N.shift())}(++w);const O=function(t,e){return M[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this._command=e,this[O("0x4")]=n,this[O("0x8")]()}[O("0x8")](){const t=Array[O("0x5")](this[O("0x4")][O("0x0")]())[O("0x1")]((t=>t[O("0x2")]));this.isEnabled=this._command[O("0x3")]&&t}execute(){const t=v(Array[O("0x5")](this[O("0x4")][O("0x0")]()));L(this[O("0x6")].model,this[O("0x7")],t)}}const P=["selection","size","isEnabled","model","refresh","_command","editor","execute","from","_selectedSuggestions","_suggestions","values","document"];var D,B;D=P,B=306,function(t){for(;--t;)D.push(D.shift())}(++B);const j=function(t,e){return P[t-=0]};class U extends t.Command{constructor(t,e,n){super(t),this[j("0xb")]=e,this[j("0x3")]=n,this[j("0x2")]=new Set,this[j("0xa")]()}[j("0xa")](){const t=this[j("0xc")][j("0x9")][j("0x5")][j("0x6")],e=Array[j("0x1")](this[j("0x3")][j("0x4")]());this[j("0x2")]=function(t,e){const n=Array[R("0x1c")](t[R("0x19")]()),o=new Set;for(const s of e)if(s[R("0x7")])for(const e of n)for(const n of s.getMarkers()){const r=n[R("0x6")]();(e[R("0x0")](r)||t[R("0x8")]&&!s[R("0x10")]&&s.next&&r[R("0x1a")][R("0x18")](e[R("0x12")]))&&o[R("0x3")](s)}return o}(t,e),this[j("0x8")]=this[j("0xb")].isEnabled&&!!this[j("0x2")][j("0x7")]}[j("0x0")](){const t=v(Array.from(this[j("0x2")]));L(this.editor[j("0x9")],this[j("0xb")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const W=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var V=Array.prototype.splice;const z=function(t){var e=this.__data__,n=W(e,t);return!(n<0)&&(n==e.length-1?e.pop():V.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=W(e,t);return n<0?void 0:e[n][1]};const q=function(t){return W(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=W(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=z,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const Q=$;const J=function(){this.__data__=new Q,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const 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,kt=Object.prototype,At=Ct.toString,Rt=kt.hasOwnProperty,vt=RegExp("^"+At.call(Rt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const It=function(t){return!(!ft(t)||Et(t))&&(mt(t)?vt:yt).test(Tt(t))};const St=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=St(t,e);return It(n)?n:void 0};const Mt=Lt(ot,"Map");const Nt=Lt(Object,"create");const wt=function(){this.__data__=Nt?Nt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(Nt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Nt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Nt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=wt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Mt||Q),string:new Gt}};const Wt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Vt=function(t,e){var n=t.__data__;return Wt(e)?n["string"==typeof e?"string":"hash"]:n.map};const zt=function(t){var e=Vt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Vt(this,t).get(t)};const qt=function(t){return Vt(this,t).has(t)};const Xt=function(t,e){var n=Vt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=zt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Qt=$t;const Jt=function(t,e){var n=this.__data__;if(n instanceof Q){var o=n.__data__;if(!Mt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Qt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new Q(t);this.size=e.size}Zt.prototype.clear=J,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Jt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const 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 ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,Re=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,ve=Re&&Re.exports===Ae&&et.process;const Ie=function(){try{var t=Re&&Re.require&&Re.require("util").types;return t||ve&&ve.binding&&ve.binding("util")}catch(t){}}();var Se=Ie&&Ie.isTypedArray;const Le=Se?ke(Se):Ce;var Me=Object.prototype.hasOwnProperty;const Ne=function(t,e){var n=ge(t),o=!n&&de(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Me.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!mt(t)};const Ue=function(t){return je(t)?Ne(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var We=Object.prototype.hasOwnProperty;const Ve=function(t){if(!ft(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&We.call(t,o))&&n.push(o);return n};const ze=function(t){return je(t)?Ne(t,!0):Ve(t)};const Ke=function(t,e){return t&&re(e,ze(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Qe=$e?$e.allocUnsafe:void 0;const Je=function(t,e){if(e)return t.slice();var n=t.length,o=Qe?Qe(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const un=function(t){return ln(t,Ue,on)};const dn=function(t){return ln(t,ze,an)};const gn=Lt(ot,"DataView");const fn=Lt(ot,"Promise");const mn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",yn=Tt(gn),Cn=Tt(Mt),kn=Tt(fn),An=Tt(mn),Rn=Tt(hn),vn=gt;(gn&&vn(new gn(new ArrayBuffer(1)))!=Tn||Mt&&vn(new Mt)!=pn||fn&&vn(fn.resolve())!=bn||mn&&vn(new mn)!=En||hn&&vn(new hn)!=_n)&&(vn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case yn:return Tn;case Cn:return pn;case kn:return bn;case An:return En;case Rn:return _n}return e});const In=vn;var Sn=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Sn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Mn=ot.Uint8Array;const Nn=function(t){var e=new t.constructor(t.byteLength);return new Mn(e).set(new Mn(t)),e};const wn=function(t,e){var n=e?Nn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?Nn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Nn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!ft(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Wn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Vn=function(t){return xe(t)&&"[object Map]"==In(t)};var zn=Ie&&Ie.isMap;const Kn=zn?ke(zn):Vn;const qn=function(t){return xe(t)&&"[object Set]"==In(t)};var Xn=Ie&&Ie.isSet;const $n=Xn?ke(Xn):qn;var Qn="[object Arguments]",Jn="[object Function]",Zn="[object Object]",Yn={};Yn[Qn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Jn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!ft(e))return e;var u=ge(e);if(u){if(x=Ln(e),!a)return Ze(e,x)}else{var d=In(e),g=d==Jn||"[object GeneratorFunction]"==d;if(be(e))return Je(e,a);if(d==Zn||d==Qn||g&&!r){if(x=c||g?{}:Wn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[d])return r?e:{};x=Un(e,d,a)}}i||(i=new Yt);var f=i.get(e);if(f)return f;i.set(e,x),$n(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var m=u?void 0:(l?c?dn:un:c?ze:Ue)(e);return te(m||e,(function(s,r){m&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Qt),n}io.Cache=Qt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,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 s=-1,r=(e=po(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=ft(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const yo=function(t){return this.__data__.has(t)};function Co(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Qt;++e<n;)this.add(t[e])}Co.prototype.add=Co.prototype.push=To,Co.prototype.has=yo;const ko=Co;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const Ro=function(t,e){return t.has(e)};const vo=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++u<x;){var f=t[u],m=e[u];if(o)var h=i?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(!Ao(e,(function(t,e){if(!Ro(g,e)&&(f===t||s(f,t,n,o,r)))return g.push(e)}))){d=!1;break}}else if(f!==m&&!s(f,m,n,o,r)){d=!1;break}}return r.delete(t),r.delete(e),d};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,Mo=Lo?Lo.valueOf:void 0;const No=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Mn(t),new Mn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=Io;case"[object Set]":var a=1&o;if(x||(x=So),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=vo(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(Mo)return Mo.call(t)==Mo.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:wo.call(e,l)))return!1}var u=r.get(t),d=r.get(e);if(u&&d)return u==e&&d==t;var g=!0;r.set(t,e),r.set(e,t);for(var f=i;++c<a;){var m=t[l=x[c]],h=e[l];if(o)var p=i?o(h,m,l,e,t,r):o(m,h,l,t,e,r);if(!(void 0===p?m===h||s(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]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po:In(t),c=x?Po:In(e),l=(a=a==Fo?Do:a)==Do,u=(c=c==Fo?Do:c)==Do,d=a==c;if(d&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(d&&!l)return r||(r=new Yt),i||Le(t)?vo(t,e,n,o,s,r):No(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),f=u&&Bo.call(e,"__wrapped__");if(g||f){var m=g?t.value():t,h=f?e.value():e;return r||(r=new Yt),s(m,h,n,o,r)}}return!!d&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Wo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const Vo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const zo=function(t,e){return e.length<2?t:Wo(t,Vo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=zo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["start","addMarkerName","subType","addMarker","_model","data","next","hasComments","onAccept","getMarkers","attributes","_onDiscard","createdAt","getAllAdjacentSuggestions","getMarkerNames","filter","@external","_markerNames","addRange","accept","isIntersecting","nodeBefore","get","nodeAfter","getRanges","getContainedElement","markers","commentThread","end","getRange","clear","toJSON","isInContent","isIntersectingWithRange","decorate","_onAccept","removeMarkers","authoredAt","map","type","isMultiRange","getFirstMarker","head","isExternal","suggestion:","split","set","removeMarker","discard","creator","add","_onAttributesChange","author","onAttributesChange","push"];var $o,Qo;$o=Xo,Qo=287,function(t){for(;--t;)$o.push($o.shift())}(++Qo);const Jo=function(t,e){return Xo[t-=0]};class Zo{constructor(t,e){this.id=e.id,this[Jo("0x1b")]=e[Jo("0x1b")],this[Jo("0x2d")]=e[Jo("0x2d")]||null,this[Jo("0x28")]=e[Jo("0x28")],this.creator=e[Jo("0x25")]||e[Jo("0x28")],this[Jo("0x1f")]=Boolean(e[Jo("0x35")]&&e[Jo("0x35")][Jo("0x4")]),this[Jo("0x30")]=null,this[Jo("0x2f")]=t,this[Jo("0x17")]=e[Jo("0x33")],this[Jo("0x36")]=e.onDiscard,this[Jo("0x27")]=e[Jo("0x29")],this[Jo("0x5")]=new Set,this[Jo("0x0")]=null,this.set(Jo("0x19"),null),this[Jo("0x22")](Jo("0x35"),e[Jo("0x35")]||{}),this.set("previous",null),this.set("next",null),this[Jo("0x22")](Jo("0xf"),null),this[Jo("0x22")]("_saved",!1),this[Jo("0x16")](Jo("0x7")),this[Jo("0x16")](Jo("0x24"))}get[Jo("0x1e")](){let t=this;for(;t.previous;)t=t.previous;return t}get[Jo("0x32")](){return!!this.commentThread&&this.commentThread.length>0}get[Jo("0x1c")](){return 0!=this[Jo("0x5")].size&&6==Array.from(this[Jo("0x5")])[0][Jo("0x21")](":").length}get[Jo("0x14")](){return null!==this[Jo("0x1d")]()}[Jo("0x2c")](t){this._markerNames[Jo("0x26")](t)}[Jo("0x2")](){return Array.from(this[Jo("0x5")])}[Jo("0x34")](){return this[Jo("0x2")]()[Jo("0x1a")]((t=>this[Jo("0x2f")][Jo("0xe")][Jo("0xa")](t)))[Jo("0x3")]((t=>t))}[Jo("0x1d")](){return this[Jo("0x34")]()[0]||null}[Jo("0x18")](){this[Jo("0x2f")].change((t=>{for(const e of this[Jo("0x34")]())t[Jo("0x23")](e)})),this[Jo("0x5")][Jo("0x12")]()}removeMarker(t){this[Jo("0x2f")].change((e=>{e.removeMarker(t)})),this[Jo("0x5")].delete(t)}[Jo("0x6")](t){const e=Jo("0x20")+this.type+":"+this[Jo("0x2d")]+":"+this.id+":"+this[Jo("0x25")].id+":"+Zo.getMultiRangeId();this.addMarkerName(e),this[Jo("0x2f")].change((n=>{n[Jo("0x2e")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Jo("0x15")](t){for(const e of this[Jo("0xc")]())if(e[Jo("0x8")](t))return!0;return!1}[Jo("0xc")](){return this[Jo("0x34")]()[Jo("0x1a")]((t=>t.getRange()))}getItems(){return this[Jo("0xc")]().reduce(((t,e)=>[...t,...e.getItems()]),[])}getFirstRange(){return this[Jo("0x1d")]()[Jo("0x11")]()}[Jo("0xd")](){const t=this.getRanges();if(1!=t.length)return null;const e=t[0],n=e[Jo("0x2b")][Jo("0xb")],o=e[Jo("0x10")][Jo("0x9")];return n instanceof i.Element?n!=o?null:n:null}[Jo("0x7")](){this[Jo("0x17")](this.getRanges(),this[Jo("0x30")],this[Jo("0x35")]),this[Jo("0x18")]()}[Jo("0x24")](){this._onDiscard(this.getRanges(),this[Jo("0x30")],this[Jo("0x35")]),this[Jo("0x18")]()}[Jo("0x1")](){const t=[];let e=this[Jo("0x1e")];for(;e;)t[Jo("0x2a")](e),e=e[Jo("0x31")];return t}setAttribute(t,e){const n=eo(this[Jo("0x35")]);_o(n,t,e),Go(n,this.attributes)||(this.attributes=n,this[Jo("0x27")](n))}removeAttribute(t){const e=eo(this[Jo("0x35")]);qo(e,t),Go(e,this[Jo("0x35")])||(this[Jo("0x35")]=e,this._onAttributesChange(this[Jo("0x35")]))}[Jo("0x13")](){return{id:this.id,type:this.subType?this[Jo("0x1b")]+":"+this[Jo("0x2d")]:this[Jo("0x1b")],authorId:this[Jo("0x25")].id,createdAt:this[Jo("0x0")],hasComments:this.hasComments,data:this[Jo("0x30")],attributes:this[Jo("0x35")]}}static getMultiRangeId(){return(0,e.uid)().substr(1,5)}}function Yo(t,e,n){const o=t.t;switch(e){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* change table properties":return o("*Format:* change table properties");case"*Format:* change table cell properties":return o("*Format:* change table cell properties");case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Format:* replace image URL":return o("*Format:* replace image URL");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_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)}}(0,e.mix)(Zo,e.ObservableMixin);const ts=["deletion","remove","_customCallbacks","*Split:* %0","removeContainer","getFirstRange","normal","nextSibling","_addDescriptionItems","REPLACE_TEXT","isEmpty","*Remove:* %0","matchingCallback","removeObject","*Merge:* %0","softBreak","element","function","type","previousSibling","_schema","length","elementStart","add","text","label","removeEmptyContainer","getItemLabel","replace","isEqual","name","isObject","push","EmptyContainer","_itemLabelsCallbacks","addObject","_itemLabels","$1 $2","_resolveDescriptionItems","ELEMENT_SPACE","quantity","indexOf","skip","pop","Container","checkChild","elementEnd","match","*Insert:* %0","getDescriptions","Object","registerElementLabel","get","data","addContainer","start","_locale","addEmptyContainer","insertion"];var es,ns;es=ts,ns=197,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class ss{constructor(t,e){this[os("0x29")]=[],this._itemLabels=new Map,this[os("0xe")]=[],this[os("0x0")]=t,this[os("0x24")]=e}[os("0x1d")](t){const e=[];for(let n=0;n<t[os("0x1")];n++){const o=t[n];if(!o.isInContent)continue;let s=!1;for(const t of this[os("0x29")]){const n=t(o);if(n){n.type&&e[os("0xc")](n),s=!0;break}}if(!s){this[os("0x2f")](e,o);const s=t[n+1];if(s&&!o.getFirstRange().end[os("0x9")](s[os("0x2c")]()[os("0x23")])){const t=e[e[os("0x1")]-1],n=os("0x26")==o[os("0x39")]?os("0x3"):os("0x28");t&&"text"==t[os("0x39")]&&(t[n]+="\n")}}}return this[os("0x12")](e)}registerDescriptionCallback(t){this[os("0x29")][os("0xc")](t)}[os("0x1f")](t,n,o=e.priorities[os("0x2d")]){os("0x38")==typeof t?(0,e.insertToPriorityArray)(this[os("0xe")],{matchingCallback:t,label:n,priority:o}):this[os("0x10")].set(t,n)}[os("0x7")](t,e=1){let n;for(const e of this[os("0xe")])if(e[os("0x33")](t)){n=e[os("0x5")];break}return n||(n=this[os("0x10")][os("0x20")](t[os("0xa")])),n?n(e):1!==e?e+" "+t[os("0xa")]+"s":""+t.name}[os("0x2f")](t,e){const n=e[os("0x2c")]().getWalker(),o=os("0x26")==e[os("0x39")]?os("0x3"):os("0x28");for(const e of n){const s=e.item,r=t[t[os("0x1")]-1];if(s.is("textProxy"))r&&r[os("0x39")].indexOf(os("0x18"))>-1&&t[os("0x17")](),r&&"text"==r.type?r[o]+=s[os("0x21")]:t[os("0xc")]({type:os("0x4"),add:os("0x3")==o?s.data:"",remove:os("0x28")==o?s[os("0x21")]:""});else if(this[os("0x0")][os("0xb")](s)){if(r&&r[os("0x39")][os("0x15")]("Container")>-1&&t.pop(),os("0x1a")==e[os("0x39")])continue;r&&r[os("0x39")]==o+os("0x1e")&&r[os("0x37")][os("0xa")]==s[os("0xa")]?r.quantity++:t[os("0xc")]({type:o+os("0x1e"),element:s,quantity:1}),n[os("0x16")]((t=>!(os("0x1a")==t[os("0x39")]&&t.item==s)))}else if(this._schema[os("0x19")](s,"$text")||s.is(os("0x37"),os("0x36"))){if(os("0x3")==o&&os("0x2")==e[os("0x39")]||os("0x28")==o&&os("0x1a")==e[os("0x39")])continue;if(r&&-1==r.type[os("0x15")](os("0x18"))){os("0x4")==r[os("0x39")]&&(r[o]+="\n");continue}let n;if(n=os("0x3")==o?s[os("0x2e")]&&!this._schema[os("0xb")](s[os("0x2e")])?s[os("0x2e")]:null:s[os("0x3a")]&&!this[os("0x0")][os("0xb")](s[os("0x3a")])?s[os("0x3a")]:null,s[os("0x31")]||n&&n[os("0x31")]){const e=n&&n[os("0x31")]?n:s;r&&r[os("0x39")]==o+os("0xd")&&r[os("0x37")].name==e.name?r[os("0x14")]++:t[os("0xc")]({type:o+os("0xd"),element:e,quantity:1})}else t[os("0xc")]({type:o+os("0x18"),element:s})}}}[os("0x12")](t){const e=this._locale,n=[];for(const o of t){switch(o[os("0x39")]){case os("0x4"):if(o.add=o[os("0x3")][os("0x8")](/(\S)\u000A+(\S)/g,os("0x11"))[os("0x8")](/\u000A/g,""),o[os("0x28")]=o[os("0x28")].replace(/(\S)\u000A+(\S)/g,os("0x11"))[os("0x8")](/\u000A/g,""),""!=o[os("0x3")]&&""!=o[os("0x28")]){n.push({type:os("0x8"),content:Yo(e,os("0x30"),['"'+o.remove+'"','"'+o[os("0x3")]+'"'])});continue}if(null!=o[os("0x3")].match(/^ +$/)){n[os("0xc")]({type:os("0x26"),content:Yo(e,os("0x1c"),Yo(e,"ELEMENT_SPACE",o[os("0x3")][os("0x1")]))});continue}if(null!=o[os("0x28")][os("0x1b")](/^ +$/)){n.push({type:os("0x27"),content:Yo(e,os("0x32"),Yo(e,os("0x13"),o[os("0x28")][os("0x1")]))});continue}if(""!=o[os("0x3")]){n[os("0xc")]({type:os("0x26"),content:Yo(e,os("0x1c"),'"'+o[os("0x3")]+'"')});continue}n[os("0xc")]({type:os("0x27"),content:Yo(e,os("0x32"),'"'+o[os("0x28")]+'"')});continue;case os("0x25"):case os("0xf"):n[os("0xc")]({type:"insertion",content:Yo(e,os("0x1c"),this[os("0x7")](o[os("0x37")],o[os("0x14")]))});continue;case os("0x6"):case os("0x34"):n.push({type:"deletion",content:Yo(e,os("0x32"),this[os("0x7")](o[os("0x37")],o[os("0x14")]))});continue;case os("0x22"):n[os("0xc")]({type:os("0x26"),content:Yo(e,os("0x2a"),this.getItemLabel(o[os("0x37")],o.quantity))});continue;case os("0x2b"):n.push({type:os("0x27"),content:Yo(e,os("0x35"),this[os("0x7")](o[os("0x37")],o[os("0x14")]))});continue}n[os("0xc")](o)}return n}}const rs=["has","format","getAttribute","alignment","FORMAT_ALIGN_TO_RIGHT","enableCommand","TrackChangesEditing","get","plugins","right","selection","justify","FORMAT_ALIGN_TO_LEFT","editor","center","_descriptionFactory","markBlockFormat","model","getSelectedBlocks","change","value","commandName","registerDescriptionCallback","filter","left","from","afterInit","document","locale","checkAttribute","commandParams"];var is,xs;is=rs,xs=112,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x7")](){const t=this[as("0x19")],e=t[as("0x9")];if(!t[as("0x14")][as("0xc")]("AlignmentEditing"))return;const n=t[as("0x14")][as("0x13")](as("0x12"));n[as("0x11")](as("0xf"),((e,o={})=>{let s=o[as("0x1")];o.value||(s="ltr"===t[as("0x9")].contentLanguageDirection?as("0x5"):as("0x15"));const r=Array[as("0x6")](this[as("0x19")][as("0x1d")][as("0x8")][as("0x16")][as("0x1e")]())[as("0x4")]((t=>function(t,e,n){const o=t[as("0xe")]("alignment")||null;return e[as("0xa")](t,as("0xf"))&&n!=o}(t,this.editor.model.schema,s)));t[as("0x1d")][as("0x0")]((()=>{for(const t of r)n[as("0x1c")](t,{commandName:"alignment",commandParams:[{value:s}]})}))})),n[as("0x1b")][as("0x3")]((t=>{const{data:n}=t;if(n&&as("0xf")==n[as("0x2")]){const t=n[as("0xb")][0][as("0x1")];return{type:as("0xd"),content:Yo(e,"*Format:* %0",function(t){switch(t){case as("0x5"):return Yo(e,as("0x18"));case"right":return Yo(e,as("0x10"));case as("0x1a"):return Yo(e,"FORMAT_ALIGN_TO_CENTER");case as("0x17"):return Yo(e,"FORMAT_JUSTIFY_TEXT")}}(t))}}}))}}const ls=["createRangeOn","span","markerName","name","mapper","consumable","isContent","nextSibling","element","createUIElement","getItems","addClass","toViewPosition","get","push","TrackChangesEditing","toViewElement","isBlock","type","listItem","test","includes","start","getWalker","markerRange","addHighlight","previousPosition","elementEnd","writer","ck-suggestion-marker-","item","listIndent","activeMarkers","bindElementToMarker","getAttribute"];var us,ds;us=ls,ds=238,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};function fs(t,e,n){const o=[];for(const s of e[gs("0x11")]())s.hasAttribute(t)&&o[gs("0x15")](n[gs("0x7")](s));return o}function ms(t){const e=[];if(t.is(gs("0xf"),gs("0x1a"))){let n=t[gs("0xe")];for(;n&&n.is(gs("0xf"),gs("0x1a"))&&n[gs("0x6")](gs("0x3"))>0;)e[gs("0x15")](n),n=n[gs("0xe")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t.plugins[gs("0x14")](gs("0x16"));return(s,r,i)=>{if(!i[gs("0xc")][gs("0x1b")](r[gs("0x1f")],s[gs("0xa")]))return;const x=r[gs("0x1f")][gs("0x1e")](),a=r[gs("0x1f")][gs("0x1d")],c=t.model.schema;let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[gs("0x2")];d=d||c[gs("0xd")](e);const n=i[gs("0xb")][gs("0x17")](e);if(n&&n.getCustomProperty(gs("0x20")))return;gs("0x22")==t[gs("0x19")]&&c[gs("0x18")](e)&&!c.isLimit(e)&&(e[gs("0xe")]||a.isAtEnd?l&&l.parent==e||(l=e,f(t[gs("0x21")]),g=!0):u=u||t[gs("0x21")])}function f(t){const s=i[gs("0x0")][gs("0x10")](gs("0x8"),{class:gs("0x1")+e}),x=i[gs("0xb")][gs("0x13")](t);n&&o[gs("0x4")][gs("0x1c")](r[gs("0x9")])&&i[gs("0x0")][gs("0x12")]("ck-suggestion-marker--active",s),i[gs("0x0")].insert(x,s),i.mapper[gs("0x5")](s,r.markerName)}d||g||!u||f(u)}}const ps=["editor","TrackChangesEditing","slice","FORMAT_UNDERLINE","FORMAT_CODE","format","plugins","_descriptionFactory","FORMAT_SUPERSCRIPT","subscript","model","enableCommand","FORMAT_SUBSCRIPT","commands","CodeEditing","afterInit","strikethrough","FORMAT_STRIKETHROUGH","BoldEditing","superscript","*Remove format:* %0","locale","code","getRanges","forceValue","registerDescriptionCallback","SuperscriptEditing","value","commandParams","from","*Format:* %0","underline","FORMAT_ITALIC","toLowerCase","document","StrikethroughEditing","bold","SubscriptEditing","FORMAT_BOLD","has"];var bs,Es;bs=ps,Es=463,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=[_s("0x23"),"ItalicEditing","UnderlineEditing",_s("0x1f"),_s("0xc"),_s("0xe"),_s("0x3")];class ys extends t.Plugin{[_s("0x20")](){const t=this[_s("0x11")],e=t[_s("0x1b")],n=t[_s("0x17")].get(_s("0x12")),o=t[_s("0x26")];for(const o of Ts){if(!t.plugins[_s("0x10")](o))continue;const s=o[_s("0x13")](0,-7)[_s("0xa")](),r=t[_s("0x1e")].get(s);n[_s("0x1c")](s,((t,o={})=>{const i=e[_s("0xb")].selection;if(i.isCollapsed)return void t(o);const x=void 0!==o[_s("0x1")]?o.forceValue:!r[_s("0x4")];e.change((()=>{const t=Array[_s("0x6")](i[_s("0x0")]());for(const o of t){const t=x?[o]:fs(s,o,e);for(const e of t)n.markInlineFormat(e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[_s("0x18")][_s("0x2")]((n=>{const{data:s}=n;if(s&&s.commandName===t)return s[_s("0x5")][0][_s("0x1")]?{type:_s("0x16"),content:Yo(o,_s("0x7"),e)}:{type:"format",content:Yo(o,_s("0x25"),e)}}))}s(_s("0xd"),Yo(o,_s("0xf"))),s("italic",Yo(o,_s("0x9"))),s(_s("0x8"),Yo(o,_s("0x14"))),s(_s("0x27"),Yo(o,_s("0x15"))),s(_s("0x21"),Yo(o,_s("0x22"))),s(_s("0x1a"),Yo(o,_s("0x1d"))),s(_s("0x24"),Yo(o,_s("0x19")))}}const Cs=["ELEMENT_BLOCK_QUOTE","selection","markBlockFormat","has","checkChild","afterInit","plugins","schema","*Format:* %0","commandParams","commandName","commands","_descriptionFactory","BlockQuoteEditing","filter","format","from","model","locale","parent","$root","*Remove format:* %0","get","forceValue","TrackChangesEditing","getSelectedBlocks","name","registerDescriptionCallback","blockQuote","editor"];var ks,As;ks=Cs,As=187,function(t){for(;--t;)ks.push(ks.shift())}(++As);const Rs=function(t,e){return Cs[t-=0]};class vs extends t.Plugin{[Rs("0x1c")](){const t=this.editor,e=t[Rs("0xb")];if(!t[Rs("0x1d")][Rs("0x1a")](Rs("0x6")))return;const n=t[Rs("0x1d")][Rs("0xf")](Rs("0x11")),o=this[Rs("0x16")][Rs("0x4")].get(Rs("0x15"));n.enableCommand(Rs("0x15"),((e,s={})=>{const r=this.editor.model.document[Rs("0x18")],i=s&&void 0!==s.forceValue?s[Rs("0x10")]:!o.value;let x=[];if(i){const e=Array[Rs("0x9")](r[Rs("0x12")]())[Rs("0x7")]((t=>Is(t)||function(t,e){const n=e[Rs("0x1b")](t.parent,"blockQuote"),o=e.checkChild([Rs("0xd"),"blockQuote"],t);return n&&o}(t,this[Rs("0x16")].model[Rs("0x0")])));x=I(e,t[Rs("0xa")])}else{const e=Array[Rs("0x9")](r[Rs("0x12")]()).filter((t=>Is(t)));x=I(e,t[Rs("0xa")])}t.model.change((()=>{for(const t of x)n[Rs("0x19")](t,{commandName:Rs("0x15"),commandParams:[{forceValue:i}]})}))})),n[Rs("0x5")][Rs("0x14")]((t=>{const{data:n}=t;if(n&&Rs("0x15")==n[Rs("0x3")]){const t=Yo(e,Rs("0x17"));return n[Rs("0x2")][0].forceValue?{type:Rs("0x8"),content:Yo(e,Rs("0x1"),t)}:{type:"format",content:Yo(e,Rs("0xe"),t)}}}))}}function Is(t){return Rs("0x15")==t[Rs("0xc")][Rs("0x13")]}const Ss=["afterInit","commands","TrackChangesEditing","editor","get","plugins","enableCommand","ckbox"];var Ls,Ms;Ls=Ss,Ms=129,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ms);const Ns=function(t,e){return Ss[t-=0]};class ws extends t.Plugin{[Ns("0x7")](){const t=this[Ns("0x2")];t[Ns("0x0")][Ns("0x3")](Ns("0x6"))&&t[Ns("0x4")][Ns("0x3")](Ns("0x1"))[Ns("0x5")](Ns("0x6"))}}const Os=["registerElementLabel","ELEMENT_CODE_BLOCK","commandName","from","locale","_descriptionFactory","config","name","commandParams","isLimit","value","formatBlock","CodeBlock","outdentCodeBlock","parent","get","format","TrackChangesEditing","markBlockFormat","model","commands","registerDescriptionCallback","rootElement","indentCodeBlock","codeBlock","checkChild","language","document","plugins","label","has","enableCommand","filter","*Remove format:* %0","languages","find","getSelectedBlocks","afterInit","forceValue","schema"];var Fs,Ps;Fs=Os,Ps=417,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x14")](){const t=this.editor;if(!t[Ds("0xb")][Ds("0xd")](Ds("0x23")))return;const e=t[Ds("0xb")][Ds("0x26")](Ds("0x0")),n=t[Ds("0x1b")],o=t[Ds("0x1d")][Ds("0x26")]("codeBlock")[Ds("0x11")],s=t[Ds("0x3")][Ds("0x26")]("codeBlock");e[Ds("0xe")](Ds("0x6")),e[Ds("0xe")](Ds("0x24")),e[Ds("0xe")]("codeBlock",((n,r={})=>{const i=t[Ds("0x2")],x=t.model[Ds("0xa")].selection,a=r&&void 0!==r[Ds("0x15")]?r[Ds("0x15")]:!s[Ds("0x21")];let c;r[Ds("0x9")]||(r[Ds("0x9")]=o[0][Ds("0x9")]),c=a?Array[Ds("0x1a")](x[Ds("0x13")]())[Ds("0xf")]((t=>{return js(t)||(e=t,n=i[Ds("0x16")],!e.is(Ds("0x5"))&&!n[Ds("0x20")](e)&&n[Ds("0x8")](e[Ds("0x25")],Ds("0x7")));var e,n})):Array.from(x[Ds("0x13")]())[Ds("0xf")]((t=>js(t)));const l=I(c,i);i.change((()=>{for(const t of l)e[Ds("0x1")](t,{commandName:Ds("0x7"),commandParams:[{...r,forceValue:a}],formatGroupId:"blockName"})}))})),e[Ds("0x1c")][Ds("0x17")](Ds("0x7"),(t=>Yo(n,"ELEMENT_CODE_BLOCK",t))),e[Ds("0x1c")][Ds("0x4")]((t=>{const{type:e,data:s}=t;if(Ds("0x22")==e&&s&&Ds("0x7")==s[Ds("0x19")]){const t=s[Ds("0x1f")][0].language,e=o[Ds("0x12")]((e=>e[Ds("0x9")]===t))[Ds("0xc")],r=n._t(e);return s[Ds("0x1f")][0][Ds("0x15")]?{type:Ds("0x27"),content:Yo(n,"*Format:* %0",Yo(n,Ds("0x18"),1)+" ("+r+")")}:{type:Ds("0x27"),content:Yo(n,Ds("0x10"),Yo(n,Ds("0x18"),1))}}}))}}function js(t){return Ds("0x7")==t[Ds("0x1e")]}const Us=["enableCommand","afterInit","has","plugins","editor"];var Gs,Hs;Gs=Us,Hs=297,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const Ws=function(t,e){return Us[t-=0]};class Vs extends t.Plugin{[Ws("0x4")](){const t=this[Ws("0x2")];t.plugins[Ws("0x0")]("CommentsEditing")&&t[Ws("0x1")].get("TrackChangesEditing")[Ws("0x3")]("addCommentThread")}}var zs=n(181);const Ks=["data","model","root","options","editing","showSuggestionHighlights","mapper","deleteForward","selection","createSelection","requires","merge","editor","detach","fromRange","unit","start","writer","high","unlock","end","lock","modifySelection","document","buffer","downcastDispatcher","TrackChangesEditing","isCollapsed","getFirstRange","delete","markerName","init","createRange","$graveyard","forward","addMarker:suggestion:deletion","commands","markerNameToElements","enableCommand","uiElement","setSelection","batch","remove","get"];var qs,Xs;qs=Ks,Xs=204,function(t){for(;--t;)qs.push(qs.shift())}(++Xs);const $s=function(t,e){return Ks[t-=0]};class Qs extends t.Plugin{static get[$s("0x1a")](){return[zs.Delete]}[$s("0x3")](){const t=this[$s("0x1c")],e=t.plugins.get($s("0x2a"));e[$s("0xa")]($s("0x1"));const n=t[$s("0x8")][$s("0xf")]($s("0x17"));e.enableCommand($s("0x17"),((e,o={})=>{const s=t[$s("0x11")][$s("0x19")](t.model[$s("0x27")][$s("0x18")]);s[$s("0x2b")]&&t[$s("0x11")][$s("0x26")](s,{direction:$s("0x6"),unit:o[$s("0x1f")]});const r=s[$s("0x0")](),x=i.LiveRange[$s("0x1e")](r);let a;e(o),a=$s("0x5")==x[$s("0x12")].rootName?t[$s("0x11")][$s("0x4")](r.start):t[$s("0x11")].createRange(x[$s("0x20")],x[$s("0x24")]),x[$s("0x1d")](),t[$s("0x11")].enqueueChange(n[$s("0x28")][$s("0xd")],(t=>{n[$s("0x28")][$s("0x25")](),t[$s("0xc")](t[$s("0x4")](a[$s("0x24")])),n[$s("0x28")][$s("0x23")]()}))})),t[$s("0x14")].downcastDispatcher.on($s("0x7"),hs(t,$s("0x1b")),{priority:$s("0x22")}),t[$s("0x10")][$s("0x29")].on($s("0x7"),((e,n,o)=>{o[$s("0x13")][$s("0x15")]&&hs(t,$s("0x1b"),{showActiveMarker:!1})(e,n,o)}),{priority:"high"}),t.editing.downcastDispatcher.on("removeMarker:suggestion:deletion",((t,e,n)=>{const o=n[$s("0x16")][$s("0x9")](e[$s("0x2")]);if(o)for(const t of o)t.is($s("0xb"))&&(n[$s("0x16")].unbindElementFromMarkerName(t,e[$s("0x2")]),n[$s("0x21")][$s("0xe")](t))}),{priority:"high"})}}const Js=["end","commandParams","before","_descriptionFactory","format","expandListBlocksToCompleteList","listType","documentList","ELEMENT_BULLETED_LIST","isObject","bulletedList","containsItem","has","DocumentListEditing","commands","createPositionAt","parent","nextSibling","*Merge:* %0","isFirstBlockOfListItem","deletion","map","mergeListItemForward","getSelectedBlocks","setSelection","mergeListItemBackward","plugins","commandName","findIndex","enableCommand","indentList","TrackChangesEditing","change","length","toUpperCase","*Format:* insert into %0","value","listItemId","listIndent","*Indent:* %0","ELEMENT_LIST_ITEM","fromRange","previousSibling","selection","_suggestionFactory","markBlockFormat","*Outdent:* %0","push","*Format:* remove from %0","model","*Change to:* %0","after","schema","execute","getFirstRange","createRange","formatBlock","registerDescriptionCallback","accept","getRanges","DocumentListUtils","detach","_LIST","refresh","get","getAttribute","nodeAfter","numberedList","next","forceValue","from","multipleBlocks","start","hasAttribute","document","registerCustomCallback","add"];var Zs,Ys;Zs=Js,Ys=365,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Js[t-=0]};class er extends t.Plugin{afterInit(){const t=this.editor;if(!t[tr("0x2e")][tr("0x20")](tr("0x21")))return;const e=t.locale,n=t[tr("0x2e")].get(tr("0x33")),o=t.plugins[tr("0x7")](tr("0x3"));function s(e){return()=>{const s=t[tr("0x22")].get(e);let r=Array.from(t[tr("0x45")][tr("0x11")][tr("0x3f")][tr("0x2b")]());if(a(e)){r=o[tr("0x19")](r);const t=[];for(const e of r)o[tr("0x27")](e)&&t.push(e);r=t}t[tr("0x45")][tr("0x34")]((()=>{n.markMultiRangeBlockFormat(r,{commandName:e,commandParams:[{forceValue:!s[tr("0x38")]}],formatGroupId:tr("0x1a")},[],tr("0x1b"))}))}}function r(e){return()=>{const o=function(t){const e=(t=Array[tr("0xd")](t))[tr("0x30")]((t=>!t[tr("0x10")](tr("0x39"))));return e>-1&&(t=t.slice(0,e)),t}(t[tr("0x45")][tr("0x11")][tr("0x3f")][tr("0x2b")]()),s=o[o[tr("0x35")]-1],r=t[tr("0x45")][tr("0x48")][tr("0x1d")](s)?tr("0x47"):"end",i=t[tr("0x45")].createRange(t[tr("0x45")][tr("0x23")](o[0],tr("0x16")),t[tr("0x45")].createPositionAt(s,r));t.model[tr("0x34")]((()=>{n[tr("0x41")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x1a")},function(t){const e=new Set;for(const n of t){let t=n[tr("0x25")];for(;t&&t[tr("0x8")](tr("0x3a"))>n[tr("0x8")](tr("0x3a"));)e[tr("0x13")](t),t=t[tr("0x25")]}return Array[tr("0xd")](e)}(o))}))}}function x(e){return()=>{const o=t.model[tr("0x11")][tr("0x3f")].getSelectedBlocks()[tr("0xb")]().value,s=t[tr("0x45")].createPositionAt(o,tr("0x16")),r=t[tr("0x45")][tr("0x23")](o,0),i=t[tr("0x45")][tr("0x4b")](s,r);t.model[tr("0x34")]((()=>{n.markBlockFormat(i,{commandName:e,commandParams:[],formatGroupId:tr("0x1a")})}))}}function a(e){const n=t[tr("0x22")][tr("0x7")](tr("0x1e"))[tr("0x38")],o=t[tr("0x22")][tr("0x7")](tr("0xa"))[tr("0x38")];return tr("0xa")===e?n:o}n.enableCommand(tr("0xa"),s(tr("0xa"))),n[tr("0x31")](tr("0x1e"),s(tr("0x1e"))),n[tr("0x31")](tr("0x32"),r(tr("0x32"))),n.enableCommand("outdentList",r("outdentList")),n.enableCommand("splitListItemAfter",x("splitListItemAfter")),n[tr("0x31")]("splitListItemBefore",x("splitListItemBefore")),n[tr("0x17")].registerElementLabel((function(e){const n=!t[tr("0x45")].schema[tr("0x1d")](e),o=e[tr("0x3e")],s=e[tr("0x25")],r=e.getAttribute(tr("0x39")),i=!o||o[tr("0x8")](tr("0x39"))!==r,x=!s||s[tr("0x8")](tr("0x39"))!==r;return n&&r&&i&&x}),(t=>Yo(e,tr("0x3c"),t))),n[tr("0x17")][tr("0x0")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x2f")]){case tr("0x1e"):r=n[tr("0x15")][0][tr("0xc")],i=a(n[tr("0x2f")]),o=tr(r?"0x37":"0x44"),i&&(o=tr("0x46")),s={type:tr("0x18"),content:Yo(e,o,Yo(e,tr("0x1c")))};break;case tr("0xa"):r=n.commandParams[0][tr("0xc")],i=a(n[tr("0x2f")]),o=tr(r?"0x37":"0x44"),i&&(o=tr("0x46")),s={type:tr("0x18"),content:Yo(e,o,Yo(e,"ELEMENT_NUMBERED_LIST"))};break;case tr("0x32"):o=tr("0x3b"),s={type:tr("0x18"),content:Yo(e,o,Yo(e,"ELEMENT_LIST_ITEM"))};break;case"outdentList":o=function(t){const e=t.getFirstRange();let n=e[tr("0xf")][tr("0x9")];for(;n&&e[tr("0x1f")](n);){if(n.getAttribute(tr("0x3a"))>0)return!1;n=n[tr("0x25")]}return!0}(t)?Yo(e,tr("0x44"),Yo(e,"ELEMENT_"+t[tr("0x4a")]()[tr("0xf")][tr("0x9")][tr("0x8")](tr("0x1a"))[tr("0x36")]()+tr("0x5"))):Yo(e,tr("0x42"),Yo(e,"ELEMENT_LIST_ITEM")),s={type:tr("0x18"),content:o};break;case tr("0x2d"):case tr("0x2a"):!1===n[tr("0xe")]&&(o=tr("0x26"),s={type:tr("0x28"),content:Yo(e,o,Yo(e,"ELEMENT_LIST_ITEM"))})}return s})),n[tr("0x40")][tr("0x12")](tr("0x4c"),"documentList",tr("0x1"),(function(e,n){const o=[];for(let n of e)n[tr("0xf")][tr("0x9")]===n[tr("0x14")][tr("0x24")]&&(n=t[tr("0x45")][tr("0x4b")](t[tr("0x45")][tr("0x23")](n.start[tr("0x9")],0))),o[tr("0x43")](n);t[tr("0x45")].change((e=>{const s=t[tr("0x45")][tr("0x11")][tr("0x3f")],r=Array.from(s[tr("0x2")]())[tr("0x29")]((t=>i.LiveRange[tr("0x3d")](t)));e.setSelection(o),t.commands[tr("0x7")](n[tr("0x2f")])[tr("0x6")](),n[tr("0x15")][tr("0x43")]({forceDefaultExecution:!0}),t[tr("0x49")](n.commandName,...n[tr("0x15")]),e[tr("0x2c")](r);for(const t of r)t[tr("0x4")]()}))}))}}var nr=n(331);const or=["markerNameToElements","requires","showSuggestionHighlights","model","document","writer","addMarker:suggestion:insertion","createRange","markerName","createPositionAt","markInsertion","parent","high","hasClass","commands","enableCommand","ck-suggestion-marker-split","end","afterExecute","options","editing","selection","split","downcastDispatcher","editor","TrackChangesEditing","removeMarker:suggestion:insertion","init","nextSibling","setSelection","get","remove"];var sr,rr;sr=or,rr=163,function(t){for(;--t;)sr.push(sr.shift())}(++rr);const ir=function(t,e){return or[t-=0]};class xr extends t.Plugin{static get[ir("0x1e")](){return[nr.Enter]}[ir("0x18")](){const t=this[ir("0x15")],e=t.plugins[ir("0x1b")](ir("0x16")),n=t[ir("0xb")][ir("0x1b")]("enter");e[ir("0xc")]("enter",(()=>{t[ir("0x0")].change((o=>{const s=t[ir("0x0")][ir("0x1")][ir("0x12")],r=s.getFirstPosition(),x=i.LiveRange.fromRange(s.getFirstRange());if(n.enterBlock(o)){const n=t[ir("0x0")][ir("0x6")](r[ir("0x8")][ir("0x19")],0),s=o[ir("0x4")](r,n);e[ir("0x7")](s)}else o[ir("0x1a")](o.createRange(x[ir("0xe")]));x.detach(),n.fire(ir("0xf"),{writer:o})}))})),t[ir("0x11")][ir("0x14")].on(ir("0x3"),hs(t,ir("0x13")),{priority:ir("0x9")}),t.editing[ir("0x14")].on(ir("0x17"),((t,e,n)=>{const o=n.mapper[ir("0x1d")](e.markerName);if(o)for(const t of o)t[ir("0xa")](ir("0xd"))&&(n.mapper.unbindElementFromMarkerName(t,e[ir("0x5")]),n[ir("0x2")][ir("0x1c")](t))}),{priority:"high"}),t.data[ir("0x14")].on("addMarker:suggestion:insertion",((e,n,o)=>{o[ir("0x10")][ir("0x1f")]&&hs(t,ir("0x13"),{showActiveMarker:!1})(e,n,o)}),{priority:ir("0x9")})}}const ar=["FindAndReplaceUtils","replace","getIntersection","get","findPrevious","end","start","createRange","TrackChangesEditing","suggestion:deletion","findByTextCallback","enableCommand","model","getRange","item","_isInDeletionRange","string","afterInit","markers","has","FindAndReplaceEditing","bind","editor","filter","plugins","createPositionAt","handleFindCommand"];var cr,lr;cr=ar,lr=115,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const ur=function(t,e){return ar[t-=0]};class dr extends t.Plugin{[ur("0xa")](){if(!this[ur("0xf")][ur("0x11")][ur("0xc")](ur("0xd")))return;const t=this[ur("0xf")][ur("0x11")][ur("0x17")](ur("0x1"));t.enableCommand("find",this[ur("0x13")][ur("0xe")](this)),t[ur("0x4")]("findNext"),t[ur("0x4")](ur("0x18")),t[ur("0x4")](ur("0x15")),t[ur("0x4")]("replaceAll")}[ur("0x13")](t,e,n){const o=this[ur("0xf")][ur("0x11")][ur("0x17")](ur("0x14"));void 0!==n&&t((t=>(ur("0x9")==typeof e?o[ur("0x3")](e,n):e)(t)[ur("0x10")]((e=>!1===this[ur("0x8")](e,t[ur("0x7")])))),n)}_isInDeletionRange(t,e){const n=this[ur("0xf")][ur("0x5")][ur("0x0")](this[ur("0xf")][ur("0x5")][ur("0x12")](e,t[ur("0x1a")]),this[ur("0xf")][ur("0x5")].createPositionAt(e,t[ur("0x19")]));for(const t of this[ur("0xf")][ur("0x5")][ur("0xb")].getMarkersGroup(ur("0x2")))if(null!==n[ur("0x16")](t[ur("0x6")]()))return!0;return!1}}const gr=["fontSize","config","toLowerCase","FontSizeEditing","document","isCollapsed","FontBackgroundColorEditing","*Reset font background color*","fontBackgroundColor","*Set font size:* %0","selection","enableCommand","plugins","find","editor","format","label","*Reset font color*","title","*Set font family:* %0","fontFamily","get","value","model","FontSize","afterInit","TrackChangesEditing","commandName","change","fontColor.colors","_descriptionFactory","trim","getRanges","locale","commandParams","fontSize.options","fontColor","*Reset font size*","has","*Reset font family*"];var fr,mr;fr=gr,mr=243,function(t){for(;--t;)fr.push(fr.shift())}(++mr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:hr("0x0"),commandName:hr("0x25")},{pluginName:"FontFamilyEditing",commandName:hr("0x11")},{pluginName:"FontColorEditing",commandName:hr("0x21")},{pluginName:hr("0x3"),commandName:hr("0x5")}];class br extends t.Plugin{[hr("0x16")](){const t=this[hr("0xb")][hr("0x1e")];for(const{pluginName:t,commandName:e}of pr)this[hr("0xb")][hr("0x9")][hr("0x23")](t)&&this._enableCommand(e);this[hr("0xb")][hr("0x9")][hr("0x12")]("TrackChangesEditing")[hr("0x1b")].registerDescriptionCallback((e=>{const{data:n}=e;if(null!=n){if(hr("0x25")==n[hr("0x18")]){const e=n.commandParams[0][hr("0x13")];if(e){const n=this.editor.plugins[hr("0x12")](hr("0x15")).normalizeSizeOptions(this.editor.config[hr("0x12")](hr("0x20")))[hr("0xa")]((t=>t[hr("0x14")]==e))[hr("0xf")],o=this[hr("0xb")][hr("0x1e")]._t(n).toLowerCase();return{type:hr("0xc"),content:Yo(t,hr("0x6"),o)}}return{type:hr("0xc"),content:Yo(t,hr("0x22"))}}if("fontFamily"==n.commandName){const e=n[hr("0x1f")][0][hr("0x13")];return e?{type:hr("0xc"),content:Yo(t,hr("0x10"),e)}:{type:"format",content:Yo(t,hr("0x24"))}}if(hr("0x21")==n[hr("0x18")]){const e=n[hr("0x1f")][0].value;if(e){const n=(0,s.normalizeColorOptions)(this.editor[hr("0x26")][hr("0x12")](hr("0x1a")))[hr("0xa")]((t=>t[hr("0x14")]==e));let o=e,r="";return n&&(o=n[hr("0xd")],r=t._t(o).toLowerCase()),{type:"format",content:Yo(t,"*Set font color:* %0",r).trim(),color:{value:e,title:r||o}}}return{type:hr("0xc"),content:Yo(t,hr("0xe"))}}if(hr("0x5")==n[hr("0x18")]){const e=n[hr("0x1f")][0].value;if(e){const n=(0,s.normalizeColorOptions)(this[hr("0xb")][hr("0x26")][hr("0x12")]("fontBackgroundColor.colors"))[hr("0xa")]((t=>t[hr("0x14")]==e));let o=e,r="";return n&&(o=n[hr("0xd")],r=t._t(o)[hr("0x27")]()),{type:hr("0xc"),content:Yo(t,"*Set font background color:* %0",r)[hr("0x1c")](),color:{value:e,title:r||o}}}return{type:"format",content:Yo(t,hr("0x4"))}}}}))}_enableCommand(t){const e=this[hr("0xb")];e[hr("0x9")].get(hr("0x17"))[hr("0x8")](t,((n,o={})=>{const s=e[hr("0x14")][hr("0x1")][hr("0x7")],r=o[hr("0x13")];s[hr("0x2")]?n(o):e[hr("0x14")][hr("0x19")]((()=>{const n=Array.from(s[hr("0x1d")]());for(const o of n){const n=r?[o]:fs(t,o,e[hr("0x14")]);for(const o of n)e.plugins.get("TrackChangesEditing").markInlineFormat(o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["format","match","checkChild","registerElementLabel","schema","ELEMENT_HEADING_CUSTOM","locale","HeadingEditing","find","paragraph","document","ELEMENT_HEADING","registerDescriptionCallback","commandName","filter","model","get","afterInit","value","TrackChangesEditing","change","config","from","*Change to:* %0","heading","editor","plugins","title","parent","markBlockFormat","formatBlock","_descriptionFactory","name"];var _r,Tr;_r=Er,Tr=200,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const yr=function(t,e){return Er[t-=0]};class Cr extends t.Plugin{[yr("0xf")](){const t=this.editor,e=t[yr("0x4")],n=t[yr("0x13")].get("heading.options");if(!t[yr("0x18")].has(yr("0x5")))return;const o=t[yr("0x18")][yr("0xe")](yr("0x11"));o.enableCommand(yr("0x16"),((e,n)=>{const s=n.value,r=Array[yr("0x14")](this[yr("0x17")].model[yr("0x8")].selection.getSelectedBlocks())[yr("0xc")]((t=>{return e=t,n=s,(o=this[yr("0x17")].model[yr("0x2")])[yr("0x0")](e[yr("0x1a")],n)&&!o.isObject(e)&&e[yr("0x1e")]!=n;var e,n,o}));t[yr("0xd")][yr("0x12")]((()=>{for(const t of r)o[yr("0x1b")](t,{commandName:"heading",commandParams:[n],formatGroupId:"blockName"},ms(t))}))}));for(const t of n)yr("0x7")!=t[yr("0xd")]&&o[yr("0x1d")][yr("0x1")](t[yr("0xd")],(e=>{const n=kr(t.model);return null!==n?s(e,n):r(e,t[yr("0x19")])}));function s(t,n){return Yo(e,yr("0x9"),[t,n])}function r(t,n){return Yo(e,yr("0x3"),[t,n])}o[yr("0x1d")][yr("0xa")]((t=>{const{type:o,data:i}=t;if(yr("0x1c")==o&&i&&yr("0x16")==i[yr("0xb")]){const t=i.commandParams[0][yr("0x10")],o=kr(t);if(null!==o)return{type:yr("0x1f"),content:Yo(e,yr("0x15"),s(1,o))};const x=n[yr("0x6")]((e=>e[yr("0xd")]===t))[yr("0x19")];return{type:yr("0x1f"),content:Yo(e,yr("0x15"),r(1,x))}}}))}}function kr(t){const e=t[yr("0x20")](/^heading(\d+)$/);return e?e[1]:null}const Ar=["editor","FORMAT_HIGHLIGHT","push","plugins","color","config","selection","model","format","commandName","get","formatInline","item","backward","_descriptionFactory","toLowerCase","title","*Set highlight:* %0","markInlineFormat","getAttribute","TrackChangesEditing","has","afterInit","document","locale","hasAttribute","value","highlight"];var Rr,vr;Rr=Ar,vr=395,function(t){for(;--t;)Rr.push(Rr.shift())}(++vr);const Ir=function(t,e){return Ar[t-=0]};class Sr extends t.Plugin{[Ir("0x13")](){const t=this[Ir("0x19")];if(!t[Ir("0x0")][Ir("0x12")]("HighlightEditing"))return;const e=t.plugins[Ir("0x7")](Ir("0x11"));e.enableCommand(Ir("0x18"),((n,o={})=>{const s=t[Ir("0x4")][Ir("0x14")][Ir("0x3")],r=s[Ir("0x10")](Ir("0x18"));let i=o[Ir("0x17")],x=[];if(s.isCollapsed){const e=s.getFirstPosition();if(!s[Ir("0x16")]("highlight"))return void n(o);{const n=t=>t[Ir("0x9")][Ir("0x10")](Ir("0x18"))===r,o=e.getLastMatchingPosition(n,{direction:Ir("0xa")}),s=e.getLastMatchingPosition(n);x=[t[Ir("0x4")].createRange(o,s)],i==r&&(i=null)}}else for(const e of s.getRanges())i?x[Ir("0x1b")](e):x[Ir("0x1b")](...fs(Ir("0x18"),e,t[Ir("0x4")]));t.model.change((()=>{for(const t of x)e[Ir("0xf")](t,{commandName:Ir("0x18"),commandParams:[{value:i}]})}))}));const n=t[Ir("0x15")];e[Ir("0xb")].registerDescriptionCallback((e=>{const{type:o,data:s}=e;if(Ir("0x8")==o&&s&&Ir("0x18")==s[Ir("0x6")]){const e=s.commandParams[0][Ir("0x17")];if(e){const o=t[Ir("0x2")].get("highlight.options").find((t=>t[Ir("0x4")]==e)),s=n._t(o[Ir("0xd")])[Ir("0xc")]();return{type:Ir("0x5"),content:Yo(n,Ir("0xe"),s),color:{value:o[Ir("0x1")],title:o.title}}}return{type:"format",content:Yo(n,"*Remove highlight*",Yo(n,Ir("0x1a")))}}}))}}const Lr=["HorizontalLineEditing","createEmptyElement","dataDowncast","registerElementLabel","ELEMENT_HORIZONTAL_LINE","horizontalLine","div","ck-horizontal-line","TrackChangesEditing","editor","get","createContainerElement","enableCommand","plugins","has","conversion"];var Mr,Nr;Mr=Lr,Nr=439,function(t){for(;--t;)Mr.push(Mr.shift())}(++Nr);const wr=function(t,e){return Lr[t-=0]};class Or extends t.Plugin{afterInit(){const t=this[wr("0x2")];if(!t[wr("0x6")][wr("0x7")](wr("0x9")))return;t[wr("0x6")][wr("0x3")](wr("0x1"))[wr("0x5")](wr("0xe"));const e=t.plugins[wr("0x3")]("TrackChangesEditing"),n=t.locale;e._descriptionFactory[wr("0xc")](wr("0xe"),(t=>Yo(n,wr("0xd"),t))),t[wr("0x8")].for(wr("0xb")).elementToStructure({model:wr("0xe"),view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return;const o=e[wr("0x4")](wr("0xf")),s=e[wr("0xa")]("hr");return e.addClass(wr("0x0"),o),e.insert(e.createPositionAt(o,0),s),o},converterPriority:"high"})}}const Fr=["enableCommand","rawHtml","selection","getAttribute","*Change %0 content*","has","change","ELEMENT_HTML_EMBED","markBlockFormat","registerElementLabel","plugins","getSelectedElement","element","commandName","cancel","_descriptionFactory","model","document","afterInit","editor","get","htmlEmbed","HtmlEmbed","rawHtmlApi","getCustomProperty","value","TrackChangesEditing","format"];var Pr,Dr;Pr=Fr,Dr=398,function(t){for(;--t;)Pr.push(Pr.shift())}(++Dr);const Br=function(t,e){return Fr[t-=0]};class jr extends t.Plugin{[Br("0xc")](){const t=this[Br("0xd")];if(!t[Br("0x4")][Br("0x1b")](Br("0x10")))return;const e=t[Br("0x4")].get(Br("0x14")),n=t.locale,o=t.editing.view.document[Br("0x18")];e[Br("0x9")][Br("0x3")]("rawHtml",(t=>Yo(n,Br("0x1"),t))),t.plugins[Br("0xe")](Br("0x14"))[Br("0x16")](Br("0xf"),((n,s)=>{const r=t[Br("0xa")],i=r[Br("0xb")].selection;r[Br("0x0")]((()=>{const t=function(t){const e=t[Br("0x5")]();return e&&e.is(Br("0x6"),Br("0x17"))?t[Br("0x5")]():null}(i);if(!t)return void n(null);const r=t[Br("0x19")](Br("0x13"))||"";void 0!==s&&s!==r&&(e[Br("0x2")](t,{commandName:Br("0xf"),commandParams:[s]}),o[Br("0x5")]()[Br("0x12")](Br("0x11"))[Br("0x8")]())}))})),e[Br("0x9")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&Br("0xf")==e[Br("0x7")]){const t=Yo(n,Br("0x1"));return{type:Br("0x15"),content:Yo(n,Br("0x1a"),t)}}}))}}const Ur=["getSuggestion","previous","value","getContainedElement","newValue","Inline image to block image","convertInlineImageToBlock","imageStyle","*Set image width:* %0","createRange","forEach","schema","getNearestSelectionRange","newRange","isInlineImage","Block image to inline image","get","formatInline","getSuggestionCallback","has","end","element","isEqual","isInContent","addObject","isCollapsed","*Reset image width*","markInsertion","convertBlockImageToInline","subType","start","isBlockImage","isOwn","registerPostFixer","ELEMENT_CAPTION","discardSuggestion","insertion","ImageResize","chain","detach","normalizedStyles","imageTypeBlock","getFirstRange","ImageEditing","commandReversedParams","ImageInlineEditing","plugins","format","_descriptionFactory","next","toPrevious","getSuggestions","enableCommand","backward","imageCaption","TrackChangesEditing","commandParams","getCaptionFromImageModelElement","document","ELEMENT_IMAGE","nodeBefore","filter","markDeletion","ImageTextAlternativeEditing","editor","differ","name","toLowerCase","commandName","_suggestionFactory","accept","registerCustomCallback","type","model","getChangedMarkers","*Set image text alternative:* %0","FORMAT_SIDE_IMAGE","title","fromPosition","suggestion","ImageBlockEditing","imageBlock","ImageUploadEditing","commands","markBlockFormat","alt","hasSuggestion","registerElementLabel","resizeImage","*Format:* %0","imageStylePostApply","afterInit","registerDescriptionCallback","selection","length","removeObject","isBefore","shouldConvertImageType","Users","getClosestSelectedImageElement","ELEMENT_INLINE_IMAGE","discard","join","refresh","hasAttribute","formatBlock","imageTextAlternative","findIndex","_splitMarkerName","nodeAfter","side","width","ImageCaptionEditing","imageStylePreApply","_findSuggestions","imageTypeInline","from","change","caption","deletion","createRangeOn","head","uploadImage","ImageCaptionUtils","author","ImageStyleEditing","locale"];var Gr,Hr;Gr=Ur,Hr=228,function(t){for(;--t;)Gr.push(Gr.shift())}(++Hr);const Wr=function(t,e){return Ur[t-=0]};class Vr extends t.Plugin{[Wr("0x75")](){const t=this[Wr("0x5a")];if(!t[Wr("0x48")][Wr("0x2d")](Wr("0x45")))return;const n=t.plugins[Wr("0x2a")](Wr("0x51")),o=t[Wr("0x48")][Wr("0x2a")]("ImageUtils"),s={},r=t[Wr("0x19")];if(n[Wr("0x4e")]("insertImage"),n[Wr("0x4a")][Wr("0x71")](Wr("0x6b"),(t=>Yo(r,Wr("0x55"),t))),n[Wr("0x4a")][Wr("0x71")]("imageInline",(t=>Yo(r,Wr("0x7e"),t))),n[Wr("0x4a")].registerElementLabel("caption",(()=>Yo(r,Wr("0x3c")))),t[Wr("0x48")][Wr("0x2d")](Wr("0x6c"))&&n.enableCommand(Wr("0x15")),t.plugins[Wr("0x2d")](Wr("0x6a"))&&t[Wr("0x48")][Wr("0x2d")](Wr("0x47"))&&(n.enableCommand(Wr("0xe"),((e,s)=>{const r=o[Wr("0x7d")](t[Wr("0x63")][Wr("0x54")][Wr("0x77")]);t[Wr("0x63")][Wr("0x10")]((()=>{n[Wr("0x6e")](r,{commandName:"imageTypeInline",commandParams:[s]},[],"convertBlockImageToInline")}))})),n[Wr("0x4e")](Wr("0x43"),((e,s)=>{t.model[Wr("0x10")]((r=>{let x=o[Wr("0x7d")](t[Wr("0x63")][Wr("0x54")][Wr("0x77")]),a=r[Wr("0x13")](x);const c=i.LivePosition[Wr("0x68")](a[Wr("0x38")],Wr("0x4c")),l=i.LivePosition[Wr("0x68")](a.end,"toNext");n.forceDefaultExecution((()=>e(s))),x=o[Wr("0x7d")](t[Wr("0x63")][Wr("0x54")].selection),a=r[Wr("0x13")](x);const u=r[Wr("0x23")](c,l);c[Wr("0x41")](),l.detach(),n.markBlockFormat(x,{commandName:Wr("0xe")},[],Wr("0x20")),u.start[Wr("0x7a")](a[Wr("0x38")])&&n[Wr("0x35")](r[Wr("0x23")](u.start,a[Wr("0x38")]),Wr("0x20")),a.end[Wr("0x7a")](u[Wr("0x2e")])&&n[Wr("0x35")](r[Wr("0x23")](a[Wr("0x2e")],u.end),"convertInlineImageToBlock")}))})),n[Wr("0x5f")].registerCustomCallback(Wr("0x4"),Wr("0x20"),Wr("0x1"),(()=>{})),n._suggestionFactory[Wr("0x61")]("formatBlock",Wr("0x20"),"accept",(()=>{})),n._suggestionFactory[Wr("0x61")]("formatBlock",Wr("0x20"),Wr("0x0"),n[Wr("0x5f")][Wr("0x2c")](Wr("0x4"),"",Wr("0x60"))),n[Wr("0x5f")][Wr("0x61")]("insertion",Wr("0x20"),Wr("0x1"),(()=>{})),n[Wr("0x5f")].registerCustomCallback(Wr("0x3e"),Wr("0x20"),"discard",(([e])=>{const o=n._suggestionFactory[Wr("0x2c")](Wr("0x3e"),"",Wr("0x0"));let s=e[Wr("0x38")],r=e.end;const i=t[Wr("0x63")][Wr("0x25")][Wr("0x26")](s,Wr("0x4f")),x=t[Wr("0x63")][Wr("0x25")][Wr("0x26")](r,"forward");i.isCollapsed&&(s=i[Wr("0x38")]),x[Wr("0x33")]&&(r=x[Wr("0x2e")]),o([t[Wr("0x63")][Wr("0x23")](s,r)])})),n._suggestionFactory.registerCustomCallback(Wr("0x4"),Wr("0x20"),Wr("0x40"),c),n._suggestionFactory[Wr("0x61")](Wr("0x3e"),Wr("0x20"),"chain",c)),t[Wr("0x48")].has(Wr("0xb"))&&(n[Wr("0x4e")]("toggleImageCaption",((e,s)=>{const r=t.plugins[Wr("0x2a")](Wr("0x16"));let i=o[Wr("0x7d")](t[Wr("0x63")][Wr("0x54")].selection),x=r.getCaptionFromImageModelElement(i);t[Wr("0x63")].change((()=>{if(x)return void n[Wr("0x58")](t.model[Wr("0x13")](x));const a=o[Wr("0x39")](i);e(s),i=o[Wr("0x7d")](t[Wr("0x63")][Wr("0x54")][Wr("0x77")]),x=r[Wr("0x53")](i),n[Wr("0x35")](t[Wr("0x63")][Wr("0x13")](x),a?null:"imageCaption")}))})),n._suggestionFactory.registerCustomCallback(Wr("0x3e"),Wr("0x50"),"chain",c)),t[Wr("0x48")].has(Wr("0x18"))){n.enableCommand(Wr("0x21"),((s,r)=>{const i=t[Wr("0x48")][Wr("0x2a")](Wr("0x7c")).me,x=t[Wr("0x6d")].get(Wr("0x21"));let a=o[Wr("0x7d")](t[Wr("0x63")][Wr("0x54")][Wr("0x77")]),c=t[Wr("0x63")][Wr("0x13")](a),l=x[Wr("0x1c")];if(l==r[Wr("0x1c")])return;const u={commandName:Wr("0x21"),commandParams:[r],formatGroupId:(0,e.uid)()};t.model[Wr("0x10")]((()=>{if(n[Wr("0x4d")]()[Wr("0x57")]((t=>t.isInContent&&i==t[Wr("0x17")]&&(Wr("0x4")==t[Wr("0x62")]||Wr("0x2b")==t.type)&&("imageStylePreApply"==t[Wr("0x37")]||Wr("0x74")==t.subType)&&t[Wr("0x44")]().isEqual(c)))[Wr("0x24")]((t=>n.discardSuggestion(t[Wr("0x14")]))),a=o[Wr("0x7d")](t.model[Wr("0x54")][Wr("0x77")]),c=t[Wr("0x63")][Wr("0x13")](a),x[Wr("0x2")](),t.commands[Wr("0x2a")](Wr("0xe")).refresh(),t.commands.get(Wr("0x43"))[Wr("0x2")](),l=x[Wr("0x1c")],l!=r[Wr("0x1c")])return o[Wr("0x28")](a)&&x[Wr("0x7b")](r[Wr("0x1c")],a)?(s(r),a=o.getClosestSelectedImageElement(t[Wr("0x63")][Wr("0x54")][Wr("0x77")]),void n[Wr("0x6e")](a,{...u,commandReversedParams:[{value:l||null}]},[],Wr("0xc"))):void(o[Wr("0x39")](a)?n[Wr("0x6e")](a,u,[],Wr("0x74")):n.markInlineFormat(c,u,"imageStylePostApply"))}))}));for(const e of t.plugins.get(Wr("0x18"))[Wr("0x42")])s[e[Wr("0x5c")]]=e[Wr("0x67")][Wr("0x5d")]();n[Wr("0x5f")][Wr("0x61")](Wr("0x4"),Wr("0xc"),"join",(()=>{})),n[Wr("0x5f")].registerCustomCallback(Wr("0x4"),Wr("0x74"),"join",(()=>{})),n[Wr("0x5f")][Wr("0x61")](Wr("0x2b"),"imageStylePostApply",Wr("0x1"),(()=>{})),n[Wr("0x5f")].registerCustomCallback("formatBlock",Wr("0xc"),Wr("0x60"),(()=>{})),n[Wr("0x5f")][Wr("0x61")]("formatBlock","imageStylePreApply",Wr("0x0"),((t,e)=>{n[Wr("0x5f")][Wr("0x2c")](Wr("0x4"),"","accept")(t,{commandName:e[Wr("0x5e")],commandParams:e[Wr("0x46")]})})),n._suggestionFactory[Wr("0x61")](Wr("0x4"),Wr("0xc"),"chain",c)}const x=[{type:Wr("0x4"),subType:Wr("0xc")},{type:Wr("0x3e"),subType:Wr("0x50")},{type:Wr("0x4"),subType:Wr("0x20")},{type:Wr("0x3e"),subType:Wr("0x20")}];function a(t,e){const s=x[Wr("0x6")]((({type:e,subType:n})=>t[Wr("0x62")]==e&&t.subType==n)),r=x[Wr("0x6")]((({type:t,subType:n})=>e.type==t&&e.subType==n));if(s<0||r<0)return!1;const i=t.getFirstRange(),a=e[Wr("0x44")]();if((0==s||1==s)&&2==r&&i.isIntersecting(a))return!0;if(2==s&&3==r){const t=n[Wr("0xd")](i,Wr("0x3e")).filter((({suggestion:t,meta:e})=>e[Wr("0x3a")]&&Wr("0x20")==t[Wr("0x37")]));if(t.length>1&&a[Wr("0x2e")][Wr("0x30")](i[Wr("0x38")]))return!0;if(1==t[Wr("0x78")]&&(i.start[Wr("0x30")](a[Wr("0x2e")])||i[Wr("0x2e")][Wr("0x30")](a[Wr("0x38")])))return!0}if(3==s&&3==r&&i[Wr("0x38")][Wr("0x7a")](a.start)){const t=i[Wr("0x2e")][Wr("0x8")],e=a[Wr("0x38")][Wr("0x56")];return o[Wr("0x39")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t.model[Wr("0x54")][Wr("0x3b")]((()=>{let e=!1;const s=Array[Wr("0xf")](t[Wr("0x63")][Wr("0x54")][Wr("0x5b")][Wr("0x64")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Wr("0x7")](t);if(Wr("0x69")==s&&n[Wr("0x70")](a)){if("formatBlock"==i&&("imageStylePreApply"==x||Wr("0x74")==x)){const t=n[Wr("0x1a")](a);if(r[Wr("0x27")]){const s=t[Wr("0x44")]()[Wr("0x1d")]();if(o[Wr("0x39")](s))continue;n[Wr("0x3d")](t),e=!0}}if(Wr("0x3e")==i&&Wr("0x50")==x&&!r[Wr("0x27")]){const t=n[Wr("0x1a")](a);t[Wr("0x4b")]&&t[Wr("0x4b")][Wr("0x31")]&&(n[Wr("0x3d")](t[Wr("0x4b")]),e=!0)}}}return e})),t[Wr("0x48")][Wr("0x2d")](Wr("0x3f"))&&n[Wr("0x4e")]("resizeImage",((e,s)=>{const r=o[Wr("0x7d")](t[Wr("0x63")][Wr("0x54")].selection);r.getAttribute(Wr("0xa"))!=s.width&&t[Wr("0x63")].change((()=>{n.markBlockFormat(r,{commandName:Wr("0x72"),commandParams:[s]})}))})),t[Wr("0x48")].has(Wr("0x59"))&&n[Wr("0x4e")](Wr("0x5"),((e,s)=>{const r=o[Wr("0x7d")](t[Wr("0x63")][Wr("0x54")][Wr("0x77")]);(r[Wr("0x3")](Wr("0x6f"))?r.getAttribute(Wr("0x6f")):"")!=s[Wr("0x1e")]&&t[Wr("0x63")][Wr("0x10")]((()=>{n[Wr("0x6e")](r,{commandName:Wr("0x5"),commandParams:[s]})}))})),n._descriptionFactory.registerDescriptionCallback((t=>{if(x.find((({type:e,subType:n})=>t.type==e&&t[Wr("0x37")]==n)))return t[Wr("0x1b")]?{}:void 0})),n[Wr("0x4a")][Wr("0x76")]((t=>{if(Wr("0x3e")==t[Wr("0x62")]||Wr("0x12")==t[Wr("0x62")]){const e=t[Wr("0x1d")]();if(e&&e.is(Wr("0x2f"),Wr("0x11")))return{type:Wr("0x3e")==t[Wr("0x62")]?Wr("0x32"):Wr("0x79"),element:e,quantity:1}}})),n._descriptionFactory.registerDescriptionCallback((t=>Wr("0x4")==t.type&&Wr("0x20")==t.subType?{type:Wr("0x49"),content:Wr("0x1f")}:"formatBlock"==t[Wr("0x62")]&&Wr("0x36")==t[Wr("0x37")]?{type:Wr("0x49"),content:Wr("0x29")}:void 0)),n._descriptionFactory[Wr("0x76")]((t=>{const{data:e}=t;if(e){if(Wr("0x21")==e[Wr("0x5e")]){const t=e[Wr("0x52")][0].value;return n=Wr("0x9")===t?Yo(r,Wr("0x66")):s[t]||t,{type:Wr("0x49"),content:Yo(r,Wr("0x73"),n)}}if(Wr("0x5")==e.commandName){const t=e[Wr("0x52")][0][Wr("0x1e")];return t?{type:Wr("0x49"),content:Yo(r,Wr("0x65"),'"'+t+'"')}:{type:Wr("0x49"),content:Yo(r,"*Remove image text alternative*")}}if("resizeImage"==e[Wr("0x5e")]){const t=e[Wr("0x52")][0][Wr("0xa")];return t?{type:Wr("0x49"),content:Yo(r,Wr("0x22"),t)}:{type:Wr("0x49"),content:Yo(r,Wr("0x34"))}}}var n}))}}const zr=["subType","locale","format","*Format:* replace image URL","src","registerCustomCallback","handleReplaceImageCommand","has","handleSuggestionDescription","accept","TrackChangesEditing","formatBlock","discard","ImageEditing","commandParams","data","_descriptionFactory","getSuggestionCallback","getSuggestions","markBlockFormat","getContainedElement","_suggestionFactory","get","enableCommand","getSelectedElement","change","model","selection","editor","replaceImageSource","plugins","registerDescriptionCallback"];var Kr,qr;Kr=zr,qr=249,function(t){for(;--t;)Kr.push(Kr.shift())}(++qr);const Xr=function(t,e){return zr[t-=0]};class $r extends t.Plugin{afterInit(){if(!this.editor.plugins[Xr("0xe")](Xr("0x14")))return;const t=this[Xr("0x3")][Xr("0x5")][Xr("0x1d")](Xr("0x11"));t[Xr("0x1e")]("replaceImageSource",((t,e)=>this[Xr("0xd")](t,e))),t[Xr("0x1c")][Xr("0xc")](Xr("0x12"),"replaceImageSource",Xr("0x10"),t._suggestionFactory.getSuggestionCallback(Xr("0x12"),null,Xr("0x13"))),t[Xr("0x1c")][Xr("0xc")](Xr("0x12"),"replaceImageSource",Xr("0x13"),t[Xr("0x1c")][Xr("0x18")](Xr("0x12"),null,Xr("0x10"))),t[Xr("0x17")][Xr("0x6")]((t=>this[Xr("0xf")](t)))}[Xr("0xd")](t,e){const n=this[Xr("0x3")][Xr("0x5")][Xr("0x1d")](Xr("0x11")),o=this[Xr("0x3")].model.document[Xr("0x2")][Xr("0x1f")]();this[Xr("0x3")][Xr("0x1")][Xr("0x0")]((()=>{let s=o.getAttribute(Xr("0xb"));const r=this.editor[Xr("0x5")][Xr("0x1d")]("Users").me;for(const t of n[Xr("0x19")]({skipNotAttached:!0})){const e=t[Xr("0x1b")]();if(Xr("0x4")===t[Xr("0x7")]&&e===o){t.author!==r&&t[Xr("0x13")](),s=t[Xr("0x16")][Xr("0x15")][0].source;break}}t(e),n[Xr("0x1a")](o,{commandName:Xr("0x4"),commandParams:[{source:s}]},[],"replaceImageSource")}))}[Xr("0xf")](t){const{data:e}=t;if(e&&Xr("0x4")===e.commandName){const t=Xr("0xa");return{type:Xr("0x9"),content:Yo(this[Xr("0x3")][Xr("0x8")],t)}}}}const Qr=["listenTo","importWord","_handleImportedData","enableCommand","dataInsert","TrackChangesEditing","trackChanges","plugins","commands","forEach","track_changes","value","afterInit","bind","get","editor","execute","_trackChangesExecuted","high","collaboration_features","_trackChangesValueDuringImport","_setSuggestionData"];var Jr,Zr;Jr=Qr,Zr=462,function(t){for(;--t;)Jr.push(Jr.shift())}(++Zr);const Yr=function(t,e){return Qr[t-=0]};class ti extends t.Plugin{constructor(t){super(t),this[Yr("0x14")]=!1,this[Yr("0x11")]=!1}[Yr("0xc")](){const t=this[Yr("0xf")],e=t[Yr("0x8")].get(Yr("0x1")),n=t.commands[Yr("0xe")](Yr("0x6"));e&&(e.on(Yr("0x10"),((t,[,e])=>{this[Yr("0x14")]=n[Yr("0xb")],e[Yr("0x13")][Yr("0xa")]=!this._trackChangesValueDuringImport}),{priority:Yr("0x12")}),this.listenTo(e,Yr("0x4"),this[Yr("0x2")][Yr("0xd")](this)),this[Yr("0x0")](e,Yr("0x4"),(()=>{this[Yr("0x11")]&&(n[Yr("0x10")](),this[Yr("0x11")]=!1)}),{priority:"lowest"}),t[Yr("0x7")][Yr("0xe")](Yr("0x5"))[Yr("0x3")](Yr("0x1")))}[Yr("0x2")](t,e){const{suggestions:n}=e,o=this.editor[Yr("0x8")][Yr("0xe")](Yr("0x6")),s=o[Yr("0xb")];this[Yr("0x14")]!==s&&(o[Yr("0x10")](),this._trackChangesExecuted=!0),n&&n[Yr("0x9")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[Yr("0xf")][Yr("0x7")][Yr("0xe")]("Users").me.id,createdAt:new Date,data:{},hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:Yr("0x1")}}};this[Yr("0xf")][Yr("0x7")][Yr("0xe")](va)[Yr("0x15")](s)}))}}const ei=["plugins","format","checkAttribute","commandName","document","getItemLabel","locale","_descriptionFactory","afterInit","get","IndentEditing","IndentBlock","indentBlock","editor","registerDescriptionCallback","schema","outdent","change","TrackChangesEditing","getSelectedBlocks","enableCommand","*Indent:* %0","markBlockFormat","filter","model","outdentBlock","has"];var ni,oi;ni=ei,oi=204,function(t){for(;--t;)ni.push(ni.shift())}(++oi);const si=function(t,e){return ei[t-=0]};class ri extends t.Plugin{[si("0x14")](){const t=this.editor,e=t[si("0xc")][si("0x15")](si("0x3"));t.plugins.has(si("0x16"))&&(e.enableCommand("indent"),e[si("0x5")](si("0x1")));const n=t[si("0x12")];if(t.plugins[si("0xb")](si("0x17"))){for(const n of["indentBlock",si("0xa")])e[si("0x5")](n,(()=>{const o=Array.from(this[si("0x19")][si("0x9")][si("0x10")].selection[si("0x4")]())[si("0x8")]((t=>this[si("0x19")][si("0x9")][si("0x0")][si("0xe")](t,"blockIndent")));t.model[si("0x2")]((()=>{for(const t of o)e[si("0x7")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:si("0x18")})}))}));e[si("0x13")][si("0x1a")]((t=>{const{data:o}=t;if(!o)return;if(si("0x18")!=o[si("0xf")]&&"outdentBlock"!=o[si("0xf")])return;const s=t.getItems()[0],r=e._descriptionFactory[si("0x11")](s);return si("0x18")==o[si("0xf")]?{type:si("0xd"),content:Yo(n,si("0x6"),r)}:si("0xa")==o[si("0xf")]?{type:si("0xd"),content:Yo(n,"*Outdent:* %0",r)}:void 0}))}}}var ii,xi,ai=["editor","init","enableCommand","input","get"];ii=ai,xi=451,function(t){for(;--t;)ii.push(ii.shift())}(++xi);var ci=function(t,e){return ai[t-=0]};class li extends t.Plugin{static get requires(){return[zs.Input]}[ci("0x0")](){this[ci("0x4")].plugins[ci("0x3")]("TrackChangesEditing")[ci("0x1")](ci("0x2"))}}const ui=["link","isCollapsed","getAttribute","change","locale","model","document","hasAttribute","commandName","get","enableCommand","from","commandParams","getFirstPosition","linkHref","has","format","getRanges","afterInit","markInlineFormat","TrackChangesEditing","_descriptionFactory","selection","*Remove link*","unlink","plugins","*Set link:* %0","editor"];var di,gi;di=ui,gi=272,function(t){for(;--t;)di.push(di.shift())}(++gi);const fi=function(t,e){return ui[t-=0]};class mi extends t.Plugin{[fi("0x1a")](){const t=this[fi("0x7")];if(!t[fi("0x5")][fi("0x17")]("LinkEditing"))return;const e=t[fi("0x5")][fi("0x11")](fi("0x0"));e[fi("0x12")](fi("0x8"),((n,o)=>{const s=t[fi("0xd")][fi("0xe")][fi("0x2")];let r=[];if(s[fi("0x9")]){if(!s[fi("0xf")](fi("0x16")))return void n(o);{const e=(0,zs.findAttributeRange)(s[fi("0x15")](),fi("0x16"),s.getAttribute(fi("0x16")),t[fi("0xd")]);r=[e]}}else r=Array[fi("0x13")](s[fi("0x19")]());t[fi("0xd")].change((()=>{for(const t of r)e[fi("0x1b")](t,{commandName:fi("0x8"),commandParams:[o]})}))})),e[fi("0x12")](fi("0x4"),(()=>{const n=this[fi("0x7")].model,o=n[fi("0xe")][fi("0x2")];n[fi("0xb")]((()=>{let n=[];n=o[fi("0x9")]?[(0,zs.findAttributeRange)(o.getFirstPosition(),fi("0x16"),o[fi("0xa")](fi("0x16")),t.model)]:fs(fi("0x16"),o.getFirstRange(),t[fi("0xd")]);for(const t of n)e[fi("0x1b")](t,{commandName:fi("0x4"),commandParams:[]})}))})),e[fi("0x1")].registerDescriptionCallback((e=>{const{data:n}=e,o=t[fi("0xc")];if(n){if(fi("0x8")==n.commandName){const t=n[fi("0x14")][0];return{type:fi("0x18"),content:Yo(o,fi("0x6"),'"'+t+'"')}}return"unlink"==n[fi("0x10")]?{type:fi("0x18"),content:Yo(o,fi("0x3"))}:void 0}}))}}const hi=["outdentList","nextSibling","getAttribute","format","value","forceValue","indentList","*Outdent:* %0","selection","*Check item*","*Indent:* %0","blockName","enableCommand","registerElementLabel","todo","from","editor","push","commandName","bulleted","execute","length","todoList","numbered","todoListChecked","List","*Change to:* %0","model","plugins","ELEMENT_LIST_ITEM","ELEMENT_BULLETED_LIST","listType","replace","has","before","add","checkChild","filter","commands","afterInit","TrackChangesEditing","_selectedElements","element","slice","get","name","TodoListEditing","previousSibling","change","checkTodoList","markBlockFormat","getSelectedBlocks","numberedList","parent","findIndex","createPositionAt","document","ELEMENT_NUMBERED_LIST","listItem","_descriptionFactory","listIndent","commandParams"];var pi,bi;pi=hi,bi=359,function(t){for(;--t;)pi.push(pi.shift())}(++bi);const Ei=function(t,e){return hi[t-=0]};class _i extends t.Plugin{[Ei("0x34")](){const t=this[Ei("0x1d")],e=t.locale;if(!t[Ei("0x29")].has("ListEditing"))return;const n=t.plugins.get(Ei("0x35")),o=t[Ei("0x29")][Ei("0x2e")](Ei("0x3b"));function s(e){return()=>{const o=t[Ei("0x28")][Ei("0x7")][Ei("0x15")],s=t[Ei("0x33")][Ei("0x39")](e);if(s[Ei("0x11")])return void t[Ei("0x21")]("paragraph",{});const r=e[Ei("0x38")](0,-4),i=function(t,e,n){let o=Array.from(t).filter((t=>{return e=t,(o=n)[Ei("0x31")](e[Ei("0x4")],Ei("0x9"))&&!o.isObject(e);var e,o}));o=o[Ei("0x32")]((t=>!t.is(Ei("0x37"),Ei("0x9"))||t.getAttribute(Ei("0x2c"))!=e));const s=new Set;for(const t of o)t.is("element",Ei("0x9"))?s.add(Ti(t)):s[Ei("0x30")](t);return Array[Ei("0x1c")](s)}(o.getSelectedBlocks(),r,t[Ei("0x28")].schema);t.model[Ei("0x3d")]((()=>{for(const t of i)n[Ei("0x1")](t,{commandName:e,commandParams:[{forceValue:!s.value}],formatGroupId:Ei("0x18")},yi(t))}))}}function r(e){return()=>{const o=function(t){const e=(t=Array[Ei("0x1c")](t))[Ei("0x5")]((t=>"listItem"!=t[Ei("0x3a")]));return e>-1&&(t=t[Ei("0x38")](0,e)),t}(t[Ei("0x28")][Ei("0x7")][Ei("0x15")][Ei("0x2")]()),s=t.model.createRange(t.model[Ei("0x6")](o[0],Ei("0x2f")),t[Ei("0x28")][Ei("0x6")](o[o[Ei("0x22")]-1],"end"));t.model[Ei("0x3d")]((()=>{n[Ei("0x1")](s,{commandName:e,commandParams:[],formatGroupId:"listIndent"},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t.getAttribute(Ei("0xb"))>n[Ei("0xf")](Ei("0xb"));)e[Ei("0x30")](t),t=t[Ei("0xe")]}return Array[Ei("0x1c")](e)}(o))}))}}n[Ei("0x19")]("numberedList",s("numberedList")),n.enableCommand("bulletedList",s("bulletedList")),o&&n[Ei("0x19")]("todoList",s(Ei("0x23"))),n.enableCommand(Ei("0x13"),r(Ei("0x13"))),n[Ei("0x19")]("outdentList",r(Ei("0xd"))),o&&n[Ei("0x19")](Ei("0x0"),(()=>{const e=t[Ei("0x33")][Ei("0x39")](Ei("0x0")),o=Array.from(e[Ei("0x36")]);o[Ei("0x32")]((t=>t[Ei("0xf")](Ei("0x25"))!=e.value)),t[Ei("0x28")].change((()=>{for(const t of o)n[Ei("0x1")](t,{commandName:Ei("0x0"),commandParams:[{forceValue:!e.value}]})}))})),n[Ei("0xa")][Ei("0x1a")]("listItem",(t=>Yo(e,Ei("0x2a"),t))),n[Ei("0xa")].registerDescriptionCallback((t=>{const{data:n}=t;if(n){if(Ei("0x3")==n[Ei("0x1f")]||"bulletedList"==n.commandName||Ei("0x23")==n[Ei("0x1f")])switch(n[Ei("0x1f")][Ei("0x2d")](Ei("0x26"),"")){case Ei("0x20"):return o(Yo(e,Ei("0x2b")));case Ei("0x24"):return o(Yo(e,Ei("0x8")));case Ei("0x1b"):return o(Yo(e,"ELEMENT_TODO_LIST"))}if("indentList"==n[Ei("0x1f")])return{type:"format",content:Yo(e,Ei("0x17"),Yo(e,Ei("0x2a")))};if("outdentList"==n[Ei("0x1f")])return{type:Ei("0x10"),content:Yo(e,Ei("0x14"),Yo(e,Ei("0x2a")))};if(Ei("0x0")==n[Ei("0x1f")])return n[Ei("0xc")][0][Ei("0x12")]?{type:"format",content:Yo(e,Ei("0x16"))}:{type:Ei("0x10"),content:Yo(e,"*Uncheck item*")}}function o(t){return{type:"format",content:Yo(e,Ei("0x27"),t)}}}))}}function Ti(t){const e=t[Ei("0xf")](Ei("0xb"));if(0==e)return t;let n=t;for(;t[Ei("0x3c")]&&t[Ei("0x3c")].is(Ei("0x37"),Ei("0x9"));){const o=t[Ei("0x3c")][Ei("0xf")](Ei("0xb"));if(o==e)n=t[Ei("0x3c")];else if(o<e)break;t=t[Ei("0x3c")]}return n}function yi(t){const e=[];if(t.is(Ei("0x37"),"listItem")&&t[Ei("0xf")](Ei("0xb"))>0){let n=t.nextSibling;for(;n&&Ei("0x9")==n[Ei("0x3a")]&&n[Ei("0xf")](Ei("0xb"))==t[Ei("0xf")](Ei("0xb"));)e[Ei("0x1e")](n),n=n[Ei("0xe")]}return e}const Ci=["length","handleListStartCommand","handleListReversedCommand","backward","plugins","from","get","ListUtils","toUpperCase","forward","_getTranslationKeyForListStyle","change","afterInit","handleDescriptions","_getSuggestionBlocks","handleListStyleCommand","type","startIndex","has","bind","listItem","getSiblingNodes","config","listType","map","list.properties","TrackChangesEditing","_LIST_","format","editor","_descriptionFactory","enableCommand","listStart","getListTypeFromListStyleType","element","reversed","hasAttribute","createPositionAt","before","getSelectedBlocks","flat","listStyle","commandParams","markMultiRangeBlockFormat","*Change to:* %0","selection","*Format:* set order to regular","document","styles","listReversed","ELEMENT_","model","ListPropertiesEditing"];var ki,Ai;ki=Ci,Ai=286,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const Ri=function(t,e){return Ci[t-=0]};class vi extends t.Plugin{[Ri("0x2c")](){if(!this[Ri("0x8")].plugins[Ri("0x32")](Ri("0x1f")))return;const t=this.editor[Ri("0x1")][Ri("0x26")](Ri("0x4")),e=this[Ri("0x8")].plugins[Ri("0x26")](Ri("0x5"));t[Ri("0x1b")]&&e[Ri("0xa")](Ri("0x14"),this.handleListStyleCommand[Ri("0x33")](this)),t[Ri("0xe")]&&e[Ri("0xa")]("listReversed",this[Ri("0x22")][Ri("0x33")](this)),t.startIndex&&e[Ri("0xa")](Ri("0xb"),this[Ri("0x21")][Ri("0x33")](this)),e[Ri("0x9")].registerDescriptionCallback(this[Ri("0x2d")][Ri("0x33")](this))}[Ri("0x2f")](t,e){const n=this[Ri("0x8")][Ri("0x24")][Ri("0x26")](Ri("0x5")),o=this[Ri("0x2e")]((t=>t[Ri("0xf")](Ri("0x2"))));o.length<1||this[Ri("0x8")].model.change((()=>{n[Ri("0x16")](o,{commandName:Ri("0x14"),commandParams:[{type:e[Ri("0x30")]}],formatGroupId:"listStyle"})}))}handleListReversedCommand(t,e){const n=this[Ri("0x8")].plugins[Ri("0x26")]("TrackChangesEditing"),o=this[Ri("0x2e")]((t=>t.is(Ri("0xd"),Ri("0x34"))&&"numbered"===t.getAttribute(Ri("0x2"))));if(o[Ri("0x20")]<1)return;const s=o.map((t=>this.editor[Ri("0x1e")].createRange(this[Ri("0x8")][Ri("0x1e")][Ri("0x10")](t,"before"),this[Ri("0x8")][Ri("0x1e")][Ri("0x10")](t,0))));this[Ri("0x8")][Ri("0x1e")][Ri("0x2b")]((()=>{n[Ri("0x16")](s,{commandName:Ri("0x1c"),commandParams:[{reversed:e[Ri("0xe")]}],formatGroupId:Ri("0x1c")})}))}handleListStartCommand(t,e){const n=this[Ri("0x8")].plugins[Ri("0x26")](Ri("0x5")),o=this[Ri("0x2e")]((t=>t.is(Ri("0xd"),Ri("0x34"))&&"numbered"===t.getAttribute(Ri("0x2"))));if(o[Ri("0x20")]<1)return;const s=o[Ri("0x3")]((t=>this[Ri("0x8")].model.createRange(this[Ri("0x8")][Ri("0x1e")][Ri("0x10")](t,Ri("0x11")),this[Ri("0x8")][Ri("0x1e")][Ri("0x10")](t,0))));this[Ri("0x8")].model[Ri("0x2b")]((()=>{n[Ri("0x16")](s,{commandName:Ri("0xb"),commandParams:[{startIndex:e[Ri("0x31")]}],formatGroupId:Ri("0xb")})}))}[Ri("0x2d")](t){const e=this.editor.locale,{data:n}=t;if(!n)return;let o,s;switch(n.commandName){case Ri("0x14"):o=Ri("0x17"),s={type:Ri("0x7"),content:Yo(e,o,Yo(e,this[Ri("0x2a")](n[Ri("0x15")][0].type)))};break;case"listReversed":o=n[Ri("0x15")][0][Ri("0xe")]?"*Format:* set order to reversed":Ri("0x19"),s={type:Ri("0x7"),content:Yo(e,o)};break;case Ri("0xb"):o="*Format:* set start index to %0",s={type:Ri("0x7"),content:Yo(e,o,n.commandParams[0][Ri("0x31")])}}return s}[Ri("0x2e")](t){const e=this[Ri("0x8")][Ri("0x24")][Ri("0x26")]("ListUtils");let n=Array[Ri("0x25")](this[Ri("0x8")][Ri("0x1e")][Ri("0x1a")][Ri("0x18")][Ri("0x12")]()).filter(t)[Ri("0x3")]((t=>{const n=this[Ri("0x8")][Ri("0x1e")][Ri("0x10")](t,0);return[...e[Ri("0x0")](n,Ri("0x23")),...e[Ri("0x0")](n,Ri("0x29"))]}))[Ri("0x13")]();return n=[...new Set(n)],n}[Ri("0x2a")](t){return Ri("0x1d")+this.editor[Ri("0x24")].get(Ri("0x27"))[Ri("0xc")](t)[Ri("0x28")]()+Ri("0x6")+t[Ri("0x28")]().replaceAll("-","_")}}const Ii=["_descriptionFactory","plugins","downcastDispatcher","editor","has","registerElementLabel","options","locale","MediaEmbedEditing","showSuggestionHighlights","attribute:url:media","media","ELEMENT_MEDIA","afterInit","data","high","mediaEmbed","TrackChangesEditing","for","div","dataDowncast","stop"];var Si,Li;Si=Ii,Li=257,function(t){for(;--t;)Si.push(Si.shift())}(++Li);const Mi=function(t,e){return Ii[t-=0]};class Ni extends t.Plugin{[Mi("0x14")](){const t=this[Mi("0xa")];if(!t[Mi("0x8")][Mi("0xb")](Mi("0xf")))return;const e=t.plugins.get(Mi("0x2")),n=t[Mi("0xe")];e.enableCommand(Mi("0x1")),e[Mi("0x7")][Mi("0xc")](Mi("0x12"),(t=>Yo(n,Mi("0x13"),t))),t.conversion[Mi("0x3")](Mi("0x5")).elementToElement({model:Mi("0x12"),view:(t,{writer:e,options:n})=>{if(n[Mi("0x10")])return e.createEmptyElement(Mi("0x4"))},converterPriority:Mi("0x0")}),t[Mi("0x15")][Mi("0x9")].on(Mi("0x11"),((t,e,n)=>{n[Mi("0xd")][Mi("0x10")]&&t[Mi("0x6")]()}),{priority:Mi("0x0")})}}const wi=["plugins","MentionEditing","get","has","enableCommand","mention","afterInit","TrackChangesEditing"];var Oi,Fi;Oi=wi,Fi=441,function(t){for(;--t;)Oi.push(Oi.shift())}(++Fi);const Pi=function(t,e){return wi[t-=0]};class Di extends t.Plugin{[Pi("0x5")](){const t=this.editor;t.plugins[Pi("0x2")](Pi("0x0"))&&t[Pi("0x7")][Pi("0x1")](Pi("0x6"))[Pi("0x3")](Pi("0x4"))}}const Bi=["ELEMENT_PAGE_BREAK","afterInit","_descriptionFactory","TrackChangesEditing","pageBreak","registerElementLabel","has","get","PageBreakEditing","enableCommand","plugins"];var ji,Ui;ji=Bi,Ui=189,function(t){for(;--t;)ji.push(ji.shift())}(++Ui);const Gi=function(t,e){return Bi[t-=0]};class Hi extends t.Plugin{[Gi("0xa")](){const t=this.editor;if(!t[Gi("0x8")][Gi("0x4")](Gi("0x6")))return;t[Gi("0x8")][Gi("0x5")]("TrackChangesEditing")[Gi("0x7")](Gi("0x2"));const e=t[Gi("0x8")][Gi("0x5")](Gi("0x1")),n=t.locale;e[Gi("0x0")][Gi("0x3")]("pageBreak",(t=>Yo(n,Gi("0x9"),t)))}}const Wi=["from","blockName","filter","format","model","includes","addMarker:suggestion:insertion","enableCommand","schema","selection","ck-suggestion-marker-split","getFirstRange","insert","highest","Paragraph","plugins","locale","markBlockFormat","*Insert:* %0","has","downcastDispatcher","isLimit","isObject","registerElementLabel","editor","start","name","toViewPosition","options","writer","mapper","activeMarkers","nodeAfter","paragraph","get","registerDescriptionCallback","change","isBlock","isTouching","*Change to:* %0","checkChild","insertion","markerRange","end","createUIElement","TrackChangesEditing","$text","ck-suggestion-marker--active","afterInit","type","_descriptionFactory","commandName","bindElementToMarker","markerName","getItemLabel","data"];var Vi,zi;Vi=Wi,zi=322,function(t){for(;--t;)Vi.push(Vi.shift())}(++zi);const Ki=function(t,e){return Wi[t-=0]};class qi extends t.Plugin{[Ki("0x6")](){const t=this.editor;if(!t[Ki("0x1d")][Ki("0x21")](Ki("0x1c")))return;const e=t[Ki("0x1e")],n=t.plugins[Ki("0x30")]("TrackChangesEditing");n._descriptionFactory[Ki("0x25")]("paragraph",(t=>Yo(e,"ELEMENT_PARAGRAPH",t))),n[Ki("0x15")](Ki("0x2f"),((e,o={})=>{const s=t[Ki("0x12")].document,r=o[Ki("0x17")]||s[Ki("0x17")],i=Array[Ki("0xe")](r.getSelectedBlocks())[Ki("0x10")]((t=>{return e=t,(n=this[Ki("0x26")][Ki("0x12")][Ki("0x16")])[Ki("0x36")](e.parent,"paragraph")&&!n[Ki("0x24")](e)&&Ki("0x2f")!=e[Ki("0x28")];var e,n}));t[Ki("0x12")][Ki("0x32")]((()=>{for(const t of i)n[Ki("0x1f")](t,{commandName:Ki("0x2f"),commandParams:[],formatGroupId:Ki("0xf")},ms(t))}))})),n[Ki("0x8")][Ki("0x31")]((t=>{const{data:n}=t;if(n&&Ki("0x2f")==n[Ki("0x9")])return{type:Ki("0x11"),content:Yo(e,Ki("0x35"),Yo(e,"ELEMENT_PARAGRAPH"))}})),n[Ki("0x15")]("insertParagraph"),t.editing[Ki("0x22")].on(Ki("0x14"),Xi(t),{priority:Ki("0x1b")}),t[Ki("0xd")].downcastDispatcher.on(Ki("0x14"),((e,n,o)=>{o[Ki("0x2a")].showSuggestionHighlights&&Xi(t,{showActiveMarker:!1})(e,n,o)}),{priority:Ki("0x1b")});const o=n[Ki("0x8")];o[Ki("0x31")]((n=>{if(Ki("0x37")!==n[Ki("0x7")])return;const{start:s,end:r}=n[Ki("0x19")]();if(!s[Ki("0x34")](r)||!s[Ki("0x2e")])return;const i=t.model[Ki("0x16")],x=s.nodeAfter;return i[Ki("0x33")](x)&&!i[Ki("0x23")](x)&&i[Ki("0x36")](x,Ki("0x4"))?{type:Ki("0x37"),content:Yo(e,Ki("0x20"),o[Ki("0xc")](x,1))}:void 0}))}}function Xi(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Ki("0x1d")].get(Ki("0x3")),i=o[Ki("0x0")][Ki("0x27")],x=o[Ki("0x0")][Ki("0x1")],a=t[Ki("0x12")][Ki("0x16")];if(!i[Ki("0x34")](x)||!i[Ki("0x2e")])return;const c=i[Ki("0x2e")];if(a[Ki("0x33")](c)&&!a[Ki("0x23")](c)&&a[Ki("0x36")](c,Ki("0x4"))){if(!s.consumable.consume(o[Ki("0x0")],n[Ki("0x28")]))return;const t=s.writer[Ki("0x2")]("span",{class:Ki("0x18")}),i=s[Ki("0x2c")][Ki("0x29")](x);e&&r[Ki("0x2d")][Ki("0x13")](o[Ki("0xb")])&&s[Ki("0x2b")].addClass(Ki("0x5"),t),s.writer[Ki("0x1a")](i,t),s[Ki("0x2c")][Ki("0xa")](t,o.markerName)}}}const $i=["*Remove all formatting*","getAttributeProperties","RemoveFormatEditing","removeFormat","locale","commandName","document","schema","isFormatting","enableCommand","editor","TrackChangesEditing","has","markInlineFormat","isCollapsed","registerDescriptionCallback","createRangeOn","getItems","model","_descriptionFactory","plugins","afterInit"];var Qi,Ji;Qi=$i,Ji=229,function(t){for(;--t;)Qi.push(Qi.shift())}(++Ji);const Zi=function(t,e){return $i[t-=0]};class Yi extends t.Plugin{[Zi("0xc")](){const t=this[Zi("0x1")];if(!t[Zi("0xb")][Zi("0x3")](Zi("0xf")))return;const e=t[Zi("0xb")].get(Zi("0x2"));e[Zi("0x0")](Zi("0x10"),(n=>{const o=t.model[Zi("0x13")].selection;o[Zi("0x5")]?n():t[Zi("0x9")].change((()=>{const n=Array.from(o.getRanges());for(const o of n)for(const n of o[Zi("0x8")]())tx(n,t[Zi("0x9")][Zi("0x14")])&&e[Zi("0x4")](t.model[Zi("0x7")](n),{commandName:Zi("0x10"),commandParams:[]})}))})),e[Zi("0xa")][Zi("0x6")]((e=>{const{data:n}=e;if(n&&Zi("0x10")==n[Zi("0x12")])return{type:"format",content:Yo(t[Zi("0x11")],Zi("0xd"))}}))}}function tx(t,e){for(const[n]of t.getAttributes()){const t=e[Zi("0xe")](n);if(t&&t[Zi("0x15")])return!0}return!1}const ex=["enableCommand","get","goToNextRestrictedEditingException","RestrictedEditingModeEditing","editor","acceptSuggestion","acceptAllSuggestions","discardAllSuggestions","discardSelectedSuggestions","discardSuggestion","TrackChangesEditing","afterInit","plugins"];var nx,ox;nx=ex,ox=306,function(t){for(;--t;)nx.push(nx.shift())}(++ox);const sx=function(t,e){return ex[t-=0]};class rx extends t.Plugin{[sx("0x4")](){const t=this[sx("0xa")];if(!t[sx("0x5")].has(sx("0x9")))return;const e=t[sx("0x5")].get(sx("0x3"));e[sx("0x6")]("goToPreviousRestrictedEditingException"),e.enableCommand(sx("0x8"));const n=t[sx("0x5")][sx("0x7")](sx("0x9"));n[sx("0x6")]("trackChanges"),n[sx("0x6")](sx("0xb")),n.enableCommand(sx("0x2")),n[sx("0x6")](sx("0xc")),n[sx("0x6")](sx("0x0")),n[sx("0x6")]("acceptSelectedSuggestions"),n.enableCommand(sx("0x1"))}}const ix=["data","mapper","markerName","get","addClass","plugins","merge","high","name","markerRange","downcastDispatcher","softBreak","editing","toViewPosition","test","includes","span","locale","element","editor","model","_descriptionFactory","deletion","ck-suggestion-marker-","enableCommand","consumable","writer","activeMarkers","showSuggestionHighlights","TrackChangesEditing","ck-suggestion-marker--active","split","createUIElement","init","options","getItems"];var xx,ax;xx=ix,ax=457,function(t){for(;--t;)xx.push(xx.shift())}(++ax);const cx=function(t,e){return ix[t-=0]};class lx extends t.Plugin{static get requires(){return[nr.ShiftEnter]}[cx("0x8")](){const t=this[cx("0x1e")],e=t.plugins[cx("0xe")](cx("0x4"));e[cx("0x23")]("shiftEnter"),t.editing[cx("0x15")].on("addMarker:suggestion:insertion",ux(t),{priority:cx("0x12")}),t[cx("0x17")].downcastDispatcher.on("addMarker:suggestion:deletion",ux(t),{priority:"high"}),t[cx("0xb")][cx("0x15")].on("addMarker:suggestion",((e,n,o)=>{o[cx("0x9")][cx("0x3")]&&ux(t,{showActiveMarker:!1})(e,n,o)})),e[cx("0x20")].registerElementLabel(cx("0x16"),(e=>Yo(t[cx("0x1c")],"ELEMENT_LINE_BREAK",e)))}}function ux(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[cx("0x10")][cx("0xe")]("TrackChangesEditing");if(!s[cx("0x0")][cx("0x19")](o[cx("0x14")],n[cx("0x13")]))return;const i=t[cx("0x1f")];for(const t of o[cx("0x14")][cx("0xa")]()){if(!t.is(cx("0x1d"),cx("0x16")))continue;const n=cx("0x21")==o.markerName[cx("0x6")](":")[1]?cx("0x11"):cx("0x6"),x=s[cx("0x1")][cx("0x7")](cx("0x1b"),{class:cx("0x22")+n}),a=s[cx("0xc")][cx("0x18")](i.createPositionBefore(t));e&&r[cx("0x2")][cx("0x1a")](o.markerName)&&s[cx("0x1")][cx("0xf")](cx("0x5"),x),s[cx("0x1")].insert(a,x),s[cx("0xc")].bindElementToMarker(x,o[cx("0xd")])}}}const dx=["commandName","model","StandardEditingModeEditing","registerDescriptionCallback","_descriptionFactory","isCollapsed","getRanges","commandParams","get","document","format","locale","has","enableCommand","selection","FORMAT_RESTRICTED_DISABLED","markInlineFormat","plugins","commands","from","value","change","TrackChangesEditing","afterInit","forceValue"];var gx,fx;gx=dx,fx=233,function(t){for(;--t;)gx.push(gx.shift())}(++fx);const mx=function(t,e){return dx[t-=0]};class hx extends t.Plugin{[mx("0xf")](){const t=this.editor,e=t[mx("0x12")],n=t[mx("0x3")];if(!t[mx("0x9")][mx("0x4")](mx("0x13")))return;const o=t[mx("0x9")][mx("0x0")](mx("0xe")),s="restrictedEditingException",r=t[mx("0xa")][mx("0x0")](s);o[mx("0x5")](s,((t,n={})=>{const i=e[mx("0x1")][mx("0x6")];if(i[mx("0x16")])return void t(n);const x=void 0!==n[mx("0x10")]?n[mx("0x10")]:!r[mx("0xc")];e[mx("0xd")]((()=>{const t=Array[mx("0xb")](i[mx("0x17")]());for(const n of t){const t=x?[n]:fs(s,n,e);for(const e of t)o[mx("0x8")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[mx("0x15")][mx("0x14")]((t=>{const{data:e}=t;if(e&&e[mx("0x11")]==s)return e[mx("0x18")][0][mx("0x10")]?{type:mx("0x2"),content:Yo(n,"FORMAT_RESTRICTED_ENABLED")}:{type:mx("0x2"),content:Yo(n,mx("0x7"))}}))}}const px=["getStyleDefinition","block","enableCommand","*Remove format:* %0","toLowerCase","includes","commandParams","style:","markInlineFormat","getAncestors","createRangeOn","format","model","modelElements","push","plugins","getRanges","enabledStyles","getRangesWithClasses","find","getDefinitionsForView","style","classes","*Format:* %0","commands","inline","registerDescriptionCallback","TrackChangesEditing","afterInit","style.definitions","add","getItems","every","selection","change","get","getAttribute","markBlockFormat","styleName","name","from","DataSchema","commandName","getSelectedBlocks","isCollapsed"];var bx,Ex;bx=px,Ex=271,function(t){for(;--t;)bx.push(bx.shift())}(++Ex);const _x=function(t,e){return px[t-=0]};class Tx extends t.Plugin{[_x("0x1b")](){const t=this.editor;if(!t.plugins.has("Style"))return;const e=t[_x("0x17")].get(_x("0x14")),n=t[_x("0xe")][_x("0x22")](_x("0x1a")),o=t.locale,s=t.plugins[_x("0x22")](_x("0x28")),r=function(t,e=[]){const n={block:[],inline:[]};for(const o of e){const e=[],s=[];for(const n of t.getDefinitionsForView(o.element))n.isBlock?e.push(n.model):s.push(n.model);e.length?n.block.push({...o,modelElements:e,isBlock:!0}):n.inline.push({...o,ghsAttributes:s})}return n}(s,t.config[_x("0x22")](_x("0x1c")));n[_x("0x1")]("style",((o,{styleName:i})=>{const x=t.model.document[_x("0x20")],a=this[_x("0x2c")](i,r);if(!a)return;if(!e[_x("0x10")][_x("0x4")](i))return;if(x[_x("0x2b")]&&!a.isBlock)return void o({styleName:i});const c=!e.value[_x("0x4")](a.name);if(a.isBlock){const e=function(t,e){const n=new Set;for(const o of t){const t=o[_x("0x8")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[_x("0x4")](o[_x("0x26")])){n[_x("0x1d")](o);break}}return n}(x[_x("0x2a")](),a[_x("0xc")]);t[_x("0xb")][_x("0x21")]((()=>{for(const t of e)n[_x("0x24")](t,{commandName:_x("0x14"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:_x("0x6")+i})}))}else{let e=Array[_x("0x27")](x[_x("0xf")]());if(!c){const n=Array[_x("0x27")](s[_x("0x13")](a.element,!1))[0][_x("0xb")],o=[];for(const s of e){const e=this[_x("0x11")](t[_x("0xb")],s,a[_x("0x15")],n);o.push(...e)}e=o}t[_x("0xb")].change((()=>{for(const t of e)n[_x("0x7")](t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}]})}))}})),n._descriptionFactory[_x("0x19")]((t=>{const{data:e}=t;if(e&&_x("0x14")===e[_x("0x29")])return e[_x("0x5")][0].forceValue?{type:_x("0xa"),content:Yo(o,_x("0x16"),e[_x("0x5")][0].styleName[_x("0x3")]())}:{type:_x("0xa"),content:Yo(o,_x("0x2"),e[_x("0x5")][0][_x("0x25")][_x("0x3")]())}}))}[_x("0x2c")](t,e){let n=e[_x("0x0")][_x("0x12")]((e=>e[_x("0x26")]===t));return n||(n=e[_x("0x18")][_x("0x12")]((e=>e[_x("0x26")]===t))),n}getRangesWithClasses(t,e,n,o){const s=[];for(const r of e[_x("0x1e")]()){const e=r[_x("0x23")](o);e&&n[_x("0x1f")]((t=>e.classes.includes(t)))&&s[_x("0xd")](t[_x("0x9")](r))}return s}}const yx=["minRow","suggestion","plugins","length","get","accept","getRanges","nodeAfter","getSuggestion","getAttribute","registerElementLabel","getCellLocation","rootName","isTouching","getChildren","writer","root","options","start","insert","showSuggestionHighlights","toViewElement","cell","downcastDispatcher","from","rowspan","insertTableColumnRight","first","subType","tablePaste","getChanges","createRangeIn","TableEditing","MIN_SAFE_INTEGER","ELEMENT_TABLE_COLUMN","change:data","markMultiRangeDeletion","textProxy","findAncestor","createTableWalker","insertTableRowBelow","above","_tablePostFixingSubtypes","getSelectionAffectedTableCells","batch","TrackChangesEditing","colspan","_tableSuggestions","map","includes","document","refresh","*Insert:* %0","oldRange","substr","createRangeOn","insertTableColumnLeft","has","maxRow","isArray","_setupColumnsRowsFixing","end","_getCoordsForCells","model","_splitMarkerName","commands","ELEMENT_TABLE","join","position","removeTableColumn","registerCustomCallback","startsWith","hasAttribute","addRange","push","ELEMENT_TABLE_COLUMN_WITH_TEXT","add","getItems","_getSuggestionCoords","ELEMENT_TABLE_WITH_TEXT","execute","classes","editor","every","*Remove:* %0","table","isIntersectingWithRange","enqueueChange","nodeBefore","getContainedElement","registerPostFixer","type","toLowerCase","isInContent","_descriptionFactory","fromRange","removeTableRow","getColumnIndexes","max","createPositionAt","removeClass","insertTable","left","last","ELEMENT_TABLE_ROW_WITH_TEXT","some","insertion","min","tableRow","setSelection","isEqual","change","order","ELEMENT_TABLE_ROW","detach","selectTableColumn","enableCommand","addClass","tableCell","filter","data","selection","registerDescriptionCallback","differ","TableUtils","name","forceValue","maxColumn","_suggestionFactory","$graveyard","tableColumn","afterInit","mapper","span","getRowIndexes","getChangedMarkers","MAX_SAFE_INTEGER","deletion","markMultiRangeInsertion"];var Cx,kx;Cx=yx,kx=158,function(t){for(;--t;)Cx.push(Cx.shift())}(++kx);const Ax=function(t,e){return yx[t-=0]};class Rx extends t.Plugin{constructor(t){super(t),this._tablePostFixingSubtypes=[Ax("0x59"),Ax("0x6f")]}[Ax("0x70")](){const t=this[Ax("0x3f")],e=t[Ax("0x2c")][Ax("0x1f")].selection;if(!t[Ax("0x7a")][Ax("0x26")](Ax("0xd")))return;const n=t.locale,o=t[Ax("0x7a")].get(Ax("0x1a")),s=t[Ax("0x7a")].get(Ax("0x69"));o[Ax("0x4b")][Ax("0x82")](Ax("0x42"),(t=>Yo(n,Ax("0x2f"),t))),this[Ax("0x29")](),o[Ax("0x61")](Ax("0x52")),o[Ax("0x61")]("selectTableRow"),o[Ax("0x61")](Ax("0x60"));for(const n of["insertTableRowAbove",Ax("0x15")]){const r=t[Ax("0x2e")][Ax("0x7c")](n);o[Ax("0x61")](n,(n=>{t.model[Ax("0x5c")]((t=>{n();const i=Ax("0x16")===r[Ax("0x5d")],x=s[Ax("0x18")](e),a=s.getRowIndexes(x),c=i?a.first-1:a[Ax("0x54")]+1,l=x[0][Ax("0x13")](Ax("0x42")),u=s[Ax("0x14")](l,{startRow:c,endRow:c}),d=Array[Ax("0x5")](u).map((e=>t[Ax("0x24")](e[Ax("0x3")])));o[Ax("0x77")](d,"tableRow")}))}))}for(const n of[Ax("0x25"),Ax("0x7")]){const r=t[Ax("0x2e")].get(n);o[Ax("0x61")](n,(n=>{t[Ax("0x2c")].change((t=>{n();const i=Ax("0x53")===r[Ax("0x5d")],x=s[Ax("0x18")](e),a=s[Ax("0x4e")](x),c=i?a[Ax("0x8")]-1:a[Ax("0x54")]+1,l=x[0][Ax("0x13")](Ax("0x42")),u=s.createTableWalker(l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Ax("0x5")](u).map((e=>t[Ax("0x24")](e.cell)));o[Ax("0x77")](d,"tableColumn")}))}))}for(const n of[Ax("0x4d"),Ax("0x32")]){const r=n.substr(11),i=r[Ax("0x49")](),x=i[Ax("0x23")](0,3)+Ax("0x72"),a=Ax("0x42")+r,c=Ax("0x58")+r,l=Ax("0x4f")+r;o[Ax("0x61")](n,(()=>{t[Ax("0x2c")][Ax("0x5c")]((t=>{const r=s[Ax("0x18")](e),u=r[0].findAncestor(Ax("0x42"));let d;if(Ax("0x4d")==n){const t=s[Ax("0x73")](r);d={startRow:t[Ax("0x8")],endRow:t[Ax("0x54")],includeAllSlots:!0}}else{const t=s.getColumnIndexes(r);d={startColumn:t[Ax("0x8")],endColumn:t[Ax("0x54")],includeAllSlots:!0}}const g=s[Ax("0x14")](u,d),f=Array[Ax("0x5")](g)[Ax("0x1d")]((({cell:t})=>t)),m=vx(f.filter((t=>t[Ax("0x35")](x)))),h=vx(f[Ax("0x64")]((t=>!t.hasAttribute(x))))[Ax("0x1d")]((e=>t.createRangeOn(e))),p=o[Ax("0x11")](h,a);if(p&&(Ax("0x59")==p[Ax("0x9")]||Ax("0x6f")==p.subType)){const e=this[Ax("0x3b")](p);for(const n of m){const o=t[Ax("0x24")](n),r=s.getCellLocation(n),a=n[Ax("0x81")](x)-1,u=e[c],d=e[l];u<=r[i]&&r[i]+a<=d&&p.addRange(o)}}}))}))}function r(n){const o=Array[Ax("0x5")](e[Ax("0x7e")]())[Ax("0x1d")]((t=>i.LiveRange[Ax("0x4c")](t)));t[Ax("0x2c")][Ax("0x5c")]((e=>{const s=e[Ax("0x19")];n=n[Ax("0x64")]((t=>Ax("0x6e")!=t[Ax("0x88")][Ax("0x84")])),e.setSelection(n),t[Ax("0x2e")][Ax("0x7c")]("removeTableRow")[Ax("0x20")](),t[Ax("0x3d")](Ax("0x4d"),{forceDefaultExecution:!0}),t[Ax("0x2c")][Ax("0x44")]((()=>{t[Ax("0x2c")].enqueueChange(s,(t=>{const e=o[Ax("0x64")]((t=>Ax("0x6e")!=t[Ax("0x88")][Ax("0x84")]));e[Ax("0x7b")]>0&&t.setSelection(e);for(const t of o)t.detach()}))}))}))}function a(n){t[Ax("0x2c")][Ax("0x5c")]((o=>{const s=Array.from(e.getRanges())[Ax("0x1d")]((t=>i.LiveRange[Ax("0x4c")](t))),r=[];for(const t of n)for(const e of t[Ax("0x3a")]({shallow:!0}))r[Ax("0x37")](e);for(const e of r)Ax("0x6e")!=e[Ax("0x88")].rootName&&(o[Ax("0x5a")](o[Ax("0x50")](e,0)),t[Ax("0x2e")][Ax("0x7c")](Ax("0x32"))[Ax("0x20")](),t[Ax("0x3d")](Ax("0x32"),{forceDefaultExecution:!0}));const x=s[Ax("0x64")]((t=>Ax("0x6e")!=t[Ax("0x88")][Ax("0x84")]));x[Ax("0x7b")]>0&&o[Ax("0x5a")](x);for(const t of s)t[Ax("0x5f")]()}))}function c(t,e){return e[Ax("0x40")]((e=>t.some((t=>t[Ax("0x2a")][Ax("0x5b")](e[Ax("0x8a")])||e[Ax("0x2a")].isEqual(t[Ax("0x8a")])))))}function l(t,e){return t[Ax("0x56")]((t=>e[Ax("0x56")]((e=>t[Ax("0x2a")][Ax("0x85")](e[Ax("0x8a")])))))}t[Ax("0x65")][Ax("0x4")].on("addMarker:suggestion",((t,e,n)=>{if(!n[Ax("0x89")][Ax("0x1")])return;const o=e.item;if(!o)return;const s=n[Ax("0x71")][Ax("0x2")](o);function r(t){return Array[Ax("0x28")](t)?t:[t]}s&&Ax("0x63")===o[Ax("0x6a")]&&(0,x.setHighlightHandling)(s,n[Ax("0x87")],((t,e,n)=>n[Ax("0x62")](r(e.classes),t)),((t,e,n)=>n[Ax("0x51")](r(e[Ax("0x3e")]),t)))}),{priority:"highest"}),o[Ax("0x4b")][Ax("0x67")]((t=>{if("insertion"!=t.type&&Ax("0x76")!=t[Ax("0x48")])return;const e=t[Ax("0x46")]();if(null!=e&&e.is("element",Ax("0x42"))){if(Ax("0x57")==t.type){const e=t[Ax("0x3a")]()[Ax("0x64")]((t=>t.is("textProxy"))).map((t=>t[Ax("0x65")]));if(e[Ax("0x7b")])return{type:Ax("0x57"),content:Yo(n,"*Insert:* %0",Yo(n,Ax("0x3c"),'"'+e[Ax("0x30")](" ")+'"'))}}if("deletion"==t[Ax("0x48")]){const e=t.getItems()[Ax("0x64")]((t=>t.is(Ax("0x12"))))[Ax("0x1d")]((t=>t.data));if(e[Ax("0x7b")])return{type:Ax("0x76"),content:Yo(n,Ax("0x41"),Yo(n,Ax("0x3c"),'"'+e.join(" ")+'"'))}}}})),o[Ax("0x4b")][Ax("0x67")]((t=>{if(Ax("0x59")==t[Ax("0x9")]){const e=t[Ax("0x3a")]()[Ax("0x64")]((t=>t.is(Ax("0x12"))))[Ax("0x1d")]((t=>t[Ax("0x65")])),o=this[Ax("0x3b")](t),s=o[Ax("0x27")]-o[Ax("0x78")]+1;if(Ax("0x57")==t[Ax("0x48")])return e[Ax("0x7b")]?{type:"insertion",content:Yo(n,"*Insert:* %0",Yo(n,Ax("0x55"),[s,'"'+e[Ax("0x30")](" ")+'"']))}:{type:Ax("0x57"),content:Yo(n,"*Insert:* %0",Yo(n,Ax("0x5e"),s))};if(Ax("0x76")==t[Ax("0x48")])return e[Ax("0x7b")]?{type:Ax("0x76"),content:Yo(n,Ax("0x41"),Yo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[s,'"'+e[Ax("0x30")](" ")+'"']))}:{type:"deletion",content:Yo(n,Ax("0x41"),Yo(n,Ax("0x5e"),s))}}if(Ax("0x6f")==t[Ax("0x9")]){const e=t[Ax("0x3a")]()[Ax("0x64")]((t=>t.is(Ax("0x12"))))[Ax("0x1d")]((t=>t.data)),o=this[Ax("0x3b")](t),s=o[Ax("0x6c")]-o.minColumn+1;if(Ax("0x57")==t[Ax("0x48")])return e.length?{type:"insertion",content:Yo(n,Ax("0x21"),Yo(n,Ax("0x38"),[s,'"'+e[Ax("0x30")](" ")+'"']))}:{type:"insertion",content:Yo(n,Ax("0x21"),Yo(n,Ax("0xf"),s))};if(Ax("0x76")==t[Ax("0x48")])return e.length?{type:Ax("0x76"),content:Yo(n,"*Remove:* %0",Yo(n,Ax("0x38"),[s,'"'+e[Ax("0x30")](" ")+'"']))}:{type:Ax("0x76"),content:Yo(n,Ax("0x41"),Yo(n,Ax("0xf"),s))}}})),o[Ax("0x6d")].registerCustomCallback("insertion",Ax("0x59"),"discard",r),o._suggestionFactory[Ax("0x33")](Ax("0x76"),Ax("0x59"),Ax("0x7d"),r),o[Ax("0x6d")][Ax("0x33")](Ax("0x57"),Ax("0x6f"),"discard",a),o[Ax("0x6d")][Ax("0x33")]("deletion",Ax("0x6f"),"accept",a),o[Ax("0x6d")][Ax("0x33")](Ax("0x57"),Ax("0x6f"),Ax("0x30"),c),o[Ax("0x6d")][Ax("0x33")](Ax("0x76"),"tableColumn","join",c),o[Ax("0x6d")][Ax("0x33")](Ax("0x57"),Ax("0x59"),Ax("0x30"),l),o._suggestionFactory[Ax("0x33")](Ax("0x76"),"tableRow",Ax("0x30"),l)}_acceptFormatSuggestionCallbackFactory(){const t=this[Ax("0x3f")],e=t[Ax("0x2c")][Ax("0x1f")][Ax("0x66")];return(n,o)=>{t[Ax("0x2c")].change((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][Ax("0x2a")][Ax("0x45")];x&&x[0]&&!1===x[0][Ax("0x6b")]&&(a=n[0][Ax("0x8a")][Ax("0x7f")]);const c=s[Ax("0xc")](a);if(Ax("0x6e")==c[Ax("0x88")][Ax("0x84")])return;const l=Array[Ax("0x5")](e[Ax("0x7e")]())[Ax("0x1d")]((t=>i.LiveRange[Ax("0x4c")](t)));s[Ax("0x5a")](c),t[Ax("0x2e")][Ax("0x7c")](r).refresh(),x[Ax("0x37")]({forceDefaultExecution:!0}),t[Ax("0x3d")](r,...x);const u=l.filter((t=>Ax("0x6e")!=t[Ax("0x88")].rootName));u.length>0&&s.setSelection(u);for(const t of l)t[Ax("0x5f")]()}))}}[Ax("0x2b")](t){const e=this[Ax("0x3f")][Ax("0x7a")][Ax("0x7c")](Ax("0x69"));let n=Number[Ax("0x75")],o=Number[Ax("0xe")],s=Number.MAX_SAFE_INTEGER,r=Number[Ax("0xe")];for(const i of t){if(Ax("0x6e")==i[Ax("0x88")][Ax("0x84")])continue;const{row:t,column:x}=e.getCellLocation(i),a=i[Ax("0x35")](Ax("0x6"))?i.getAttribute(Ax("0x6"))-1:0,c=i.hasAttribute("colspan")?i[Ax("0x81")](Ax("0x1b"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,s=x<s?x:s,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:s,maxColumn:r}}_setupColumnsRowsFixing(){const t=this[Ax("0x3f")],e=t[Ax("0x7a")].get(Ax("0x1a")),n=t[Ax("0x7a")][Ax("0x7c")](Ax("0x69"));this[Ax("0x1c")]=new Set,t[Ax("0x2c")][Ax("0x1f")].on(Ax("0x10"),(()=>{const n=Array[Ax("0x5")](t[Ax("0x2c")].document[Ax("0x68")][Ax("0x74")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Ax("0x2d")](t);if(Ax("0x79")!=n)continue;if(null!=o[Ax("0x22")])continue;const i=e[Ax("0x80")](s);this[Ax("0x17")][Ax("0x1e")](r)&&this[Ax("0x1c")][Ax("0x39")](i)}}),{priority:"low"});const o=(t,e)=>{let o=!1;const s=e[Ax("0x24")](t),r=t[Ax("0x13")](Ax("0x42")),i=n[Ax("0x83")](t);for(const e of this[Ax("0x1c")]){const n=e[Ax("0x9")],x=n[Ax("0x34")](Ax("0xa")),a=n.substr(x?10:5),c=a[Ax("0x49")](),l=c[Ax("0x23")](0,3)+Ax("0x72"),u=Ax("0x58")+a,d=Ax("0x4f")+a;if(!e[Ax("0x4a")])continue;if(r!=e.getFirstRange()[Ax("0x8a")][Ax("0x13")]("table"))continue;if(e[Ax("0x43")](s))continue;const g=t[Ax("0x35")](l)?t[Ax("0x81")](l)-1:0,f=this[Ax("0x3b")](e),m=f[u],h=f[d];m<=i[c]&&i[c]+g<=h&&(e[Ax("0x36")](s),o=!0)}return o};t[Ax("0x2c")][Ax("0x1f")][Ax("0x47")]((e=>{let n=!1;for(const s of t[Ax("0x2c")][Ax("0x1f")][Ax("0x68")][Ax("0xb")]())if(Ax("0x0")==s[Ax("0x48")])if(Ax("0x59")==s[Ax("0x6a")])for(const t of s[Ax("0x31")][Ax("0x7f")][Ax("0x86")]())n=n||o(t,e);else"tableCell"==s.name&&(n=n||o(s[Ax("0x31")][Ax("0x7f")],e));return n}))}[Ax("0x3b")](t){return this[Ax("0x2b")](t[Ax("0x7e")]()[Ax("0x1d")]((t=>t[Ax("0x8a")][Ax("0x7f")])))}}function vx(t){return Array.from(new Set(t).values())}const Ix=["has","createTableWalker","$graveyard","document","_areSelectedCellsMergable","commands","find","_acceptFormatSuggestionCallbackFactory","format","_suggestionFactory","*Split cell:* vertically","_areMergableCells","rootName","_isForcedDefaultExecutionBlock","trackChanges","markMultiRangeBlockFormat","afterInit","filter","table","push","tableCell","enableCommand","detach","mergeTableCells","formatBlock","execute","setSelection","refresh","plugins","*Merge cells*","mergeTableCellLeft","getAncestors","getSuggestions","element","author","change","splitTableCellVertically","return","mergeTableCellDown","direction","size","map","getCellLocation","editor","TrackChangesEditing","splitTableCellHorizontally","registerDescriptionCallback","getFirstPosition","TableUtils","deletion","getRanges","length","model","containsRange","_tablePostFixingSubtypes","markBlockFormat","type","createRangeOn","commandName","_descriptionFactory","TableEditing","findAncestor","*Split cell:* horizontally","horizontally","highest","cell","set:isEnabled","mergeTableCellRight","mergeTableCellUp","isEnabled","stop","root","getSelectionAffectedTableCells","requires","subType","insertion","from","get","locale","accept","fromRange","selection","value","add"];var Sx,Lx;Sx=Ix,Lx=349,function(t){for(;--t;)Sx.push(Sx.shift())}(++Lx);const Mx=function(t,e){return Ix[t-=0]};class Nx extends t.Plugin{static get[Mx("0x3c")](){return[Rx]}[Mx("0x3")](){const t=this[Mx("0x1e")],e=t[Mx("0x27")][Mx("0x4a")][Mx("0x44")],n=t[Mx("0x41")];if(!t[Mx("0xf")].has(Mx("0x2f")))return;const o=t.plugins.get(Mx("0x1f")),s=t[Mx("0xf")].get(Mx("0x23")),r=t[Mx("0xf")].get(Rx);r[Mx("0x29")][Mx("0x6")](Mx("0xa")),o[Mx("0x8")](Mx("0xa"),(()=>{const e=s[Mx("0x3b")](t.model[Mx("0x4a")][Mx("0x44")]);t.model[Mx("0x16")]((()=>{o[Mx("0x2")](e,{commandName:Mx("0xa"),commandParams:[]},[],"mergeTableCells")}))})),t[Mx("0x4c")][Mx("0x40")](Mx("0xa")).on(Mx("0xc"),((e,n)=>{t.commands[Mx("0x40")](Mx("0x1"))[Mx("0x45")]&&(n.length>0&&n[n[Mx("0x26")]-1]&&n[n.length-1].forceDefaultExecution||o[Mx("0x0")]||this[Mx("0x4b")]()||e.stop())}),{priority:Mx("0x33")});for(const e of[Mx("0x37"),Mx("0x36"),Mx("0x19"),Mx("0x11")]){const n=t[Mx("0x4c")][Mx("0x40")](e);o.enableCommand(e,(()=>{const e=t[Mx("0x27")].document[Mx("0x44")][Mx("0x22")]()[Mx("0x12")]()[Mx("0x4d")]((t=>t.is(Mx("0x14"),Mx("0x7")))),s=n[Mx("0x45")];t.model.change((()=>{o[Mx("0x2")]([e,s],{commandName:"mergeTableCells",commandParams:[]},[],"mergeTableCells")}))}))}for(const e of["splitTableCellVertically",Mx("0x20")]){const n=t.commands[Mx("0x40")](e);o[Mx("0x8")](e,(()=>{const r=s[Mx("0x3b")](t[Mx("0x27")].document.selection)[0],i=r[Mx("0x30")](Mx("0x5")),{column:x,row:a}=s[Mx("0x1d")](r);let c=[];if(Mx("0x32")==n[Mx("0x1a")]){const t=s[Mx("0x48")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Mx("0x3f")](t)[Mx("0x1c")]((t=>t.cell))}else{const t=s.createTableWalker(i,{column:x,includeAllSlots:!0});c=Array[Mx("0x3f")](t)[Mx("0x1c")]((t=>t[Mx("0x34")]))}t[Mx("0x27")][Mx("0x16")]((t=>{o[Mx("0x2a")](t.createRangeOn(r),{commandName:e,commandParams:[]},c,e)}))}))}o[Mx("0x2e")].registerDescriptionCallback((t=>{const{data:e}=t;if(e)return Mx("0xa")==e.commandName?{type:"format",content:Yo(n,Mx("0x10"))}:void 0})),o[Mx("0x2e")][Mx("0x21")]((t=>{const{data:e}=t;if(e)return Mx("0x17")==e.commandName?{type:Mx("0x4f"),content:Yo(n,Mx("0x51"))}:Mx("0x20")==e[Mx("0x2d")]?{type:Mx("0x4f"),content:Yo(n,Mx("0x31"))}:void 0}));const x=r[Mx("0x4e")]();for(const t of[Mx("0x37"),Mx("0x36"),Mx("0x19"),Mx("0x11")])o[Mx("0x50")].registerCustomCallback(Mx("0xb"),t,Mx("0x42"),x);for(const t of[Mx("0x17"),Mx("0x20")])o[Mx("0x50")].registerCustomCallback(Mx("0xb"),t,"accept",x);o[Mx("0x50")].registerCustomCallback("formatBlock",Mx("0xa"),Mx("0x42"),(n=>{t[Mx("0x27")][Mx("0x16")]((o=>{const s=Array.from(e[Mx("0x25")]())[Mx("0x1c")]((t=>i.LiveRange[Mx("0x43")](t)));o.setSelection(n),t.commands[Mx("0x40")](Mx("0xa"))[Mx("0xe")](),t[Mx("0xc")](Mx("0xa"),{forceDefaultExecution:!0});const r=s[Mx("0x4")]((t=>Mx("0x49")!=t[Mx("0x3a")][Mx("0x53")]));r[Mx("0x26")]>0&&o[Mx("0xd")](r);for(const t of s)t[Mx("0x9")]()}))}));for(const e of[Mx("0x37"),Mx("0x19"),Mx("0x11"),Mx("0x36")]){const n=t[Mx("0x4c")][Mx("0x40")](e);n.on(Mx("0x35"),((e,o,s)=>{if(s){const o=t[Mx("0x27")].document[Mx("0x44")][Mx("0x22")]()[Mx("0x12")]()[Mx("0x4d")]((t=>t.is("element",Mx("0x7"))));this._areMergableCells(n[Mx("0x45")],o)||(e[Mx("0x18")]=!1,e[Mx("0x39")]())}}),{priority:"low"})}}[Mx("0x4b")](){const t=this[Mx("0x1e")].commands[Mx("0x40")]("mergeTableCells"),e=this[Mx("0x1e")][Mx("0xf")][Mx("0x40")]("TableUtils");if(!t[Mx("0x38")])return!1;const n=e[Mx("0x3b")](this[Mx("0x1e")][Mx("0x27")][Mx("0x4a")][Mx("0x44")]);for(const t of n)for(const e of n)if(t!=e&&!this[Mx("0x52")](t,e))return!1;return!0}[Mx("0x52")](t,e){const n=this[Mx("0x1e")][Mx("0xf")][Mx("0x40")](Mx("0x1f")),o=this.editor.model[Mx("0x2c")](t),s=this[Mx("0x1e")][Mx("0x27")].createRangeOn(e),r=new Set,i=new Set;for(const t of n[Mx("0x13")]())if((Mx("0x3e")==t[Mx("0x2b")]||Mx("0x24")==t.type||"mergeTableCells"==t[Mx("0x3d")])&&t.isInContent)for(const e of t[Mx("0x25")]())e[Mx("0x28")](o,!0)&&r[Mx("0x46")](t.type+":"+t[Mx("0x15")].id),e[Mx("0x28")](s,!0)&&i[Mx("0x46")](t[Mx("0x2b")]+":"+t[Mx("0x15")].id);if(r[Mx("0x1b")]!=i[Mx("0x1b")])return!1;for(const t of r)if(!i[Mx("0x47")](t))return!1;return!0}}const wx=["getChild","removeClass","mapper","headingColumns","markerNameToElements","change","commands","requires","data-suggestion","includes","markerRange","FORMAT_HEADER_COLUMN","model","consume","selection","_splitMarkerName","nodeAfter","commandName","commandParams","FORMAT_REGULAR_COLUMN","index","highest","last","activeMarkers","showSuggestionHighlights","table","headingRows","TrackChangesEditing","unbindElementFromMarkerName","editing","document","get","ck-suggestion-marker--active","createRange","getSuggestion","registerCustomCallback","accept","data","findAncestor","editor","addClass","consumable","afterInit","bindElementToMarker","getAttribute","*Format:* %0","name","getSelectionAffectedTableCells","first","TableUtils","formatBlock","createPositionAfter","downcastDispatcher","options","_suggestionFactory","getColumnIndexes","getRowIndexes","setTableRowHeader","FORMAT_HEADER_ROW","setAttribute","cell","createPositionBefore","parent","_acceptFormatSuggestionCallbackFactory","markerName","_descriptionFactory","forceValue","getCellLocation","item","locale","ck-suggestion-marker-","TableEditing","toViewElement","childCount","writer","has","plugins","removeAttribute","enableCommand","createTableWalker","value","nodeBefore","setTableColumnHeader","markBlockFormat"];var Ox,Fx;Ox=wx,Fx=121,function(t){for(;--t;)Ox.push(Ox.shift())}(++Fx);const Px=function(t,e){return wx[t-=0]};class Dx extends t.Plugin{static get[Px("0x36")](){return[Rx]}[Px("0x5")](){const t=this[Px("0x2")];if(!t.plugins[Px("0x26")](Px("0x22")))return;const e=t[Px("0x20")],n=t[Px("0x27")][Px("0x4e")](Px("0x4a")),o=t.plugins[Px("0x4e")](Px("0xc")),s=t[Px("0x27")][Px("0x4e")](Rx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n._splitMarkerName(r[Px("0x1b")]),c=n[Px("0x51")](a);if(!c[Px("0x0")]||Px("0x2d")!=c[Px("0x0")].commandName)return;if(r[Px("0x1f")])return void s.stop();if(!i[Px("0x4")][Px("0x3c")](r[Px("0x39")],s[Px("0x9")]))return;const l=r[Px("0x39")].start[Px("0x3f")],u=r.markerRange.end[Px("0x2c")],d=l[Px("0x19")][Px("0x19")],{column:g}=o[Px("0x1e")](l),{column:f}=o[Px("0x1e")](u);for(let s=g;s<=f;s++){const c=o[Px("0x2a")](d,{column:s,includeAllSlots:!1});for(const o of c){const s=o[Px("0x17")],c=i.mapper[Px("0x23")](s);i.writer.addClass(Px("0x21")+x,c),e&&i.writer[Px("0x16")](Px("0x37"),a,c),i.mapper[Px("0x6")](c,r[Px("0x1b")]),t&&(n[Px("0x46")][Px("0x38")](r.markerName)?i[Px("0x25")][Px("0x3")](Px("0x4f"),c):i[Px("0x25")][Px("0x30")](Px("0x4f"),c))}}}}n[Px("0x29")](Px("0x14"),((e,s)=>{const r=o.getSelectionAffectedTableCells(t[Px("0x3b")].document[Px("0x3d")]),i=o[Px("0x13")](r),x=r[0][Px("0x1")](Px("0x48")),a=x[Px("0x7")](Px("0x49"))||0,c=s&&null!==s.forceValue?s.forceValue:!t[Px("0x35")].get(Px("0x14"))[Px("0x2b")],l=c?i[Px("0x45")]:i[Px("0xb")],u=x[Px("0x2f")](l);let d;if(c){const e=x.getChild(a);if(u.index<e[Px("0x43")])return;d=t[Px("0x3b")][Px("0x50")](t[Px("0x3b")][Px("0x18")](e.getChild(0)),t[Px("0x3b")][Px("0xe")](u[Px("0x2f")](u[Px("0x24")]-1)))}else{const e=x[Px("0x2f")](a-1);if(!e)return;d=t[Px("0x3b")][Px("0x50")](t.model[Px("0x18")](u[Px("0x2f")](0)),t[Px("0x3b")][Px("0xe")](e[Px("0x2f")](e[Px("0x24")]-1)))}t[Px("0x3b")][Px("0x34")]((()=>{n.markBlockFormat(d,{commandName:"setTableRowHeader",commandParams:[{forceValue:c}]},[],Px("0x14"))}))})),n[Px("0x29")](Px("0x2d"),((e,o)=>{const s=t.plugins[Px("0x4e")](Px("0xc")),r=s[Px("0xa")](t[Px("0x3b")][Px("0x4d")][Px("0x3d")]),i=s[Px("0x12")](r),x=r[0].findAncestor(Px("0x48")),a=x[Px("0x7")](Px("0x32"))||0,c=o&&null!==o[Px("0x1d")]?o.forceValue:!t[Px("0x35")].get(Px("0x2d"))[Px("0x2b")];let l;const u=x.getChild(0),d=c?i[Px("0x45")]:i[Px("0xb")],g=s.createTableWalker(x,{startRow:0,column:d,includeAllSlots:!1}),f=Array.from(g)[0][Px("0x17")];if(c){const e=u[Px("0x2f")](a);if(f.isBefore(e))return;l=t[Px("0x3b")].createRange(t[Px("0x3b")][Px("0x18")](e),t.model[Px("0xe")](f))}else{const e=u.getChild(a-1);if(!e)return;l=t[Px("0x3b")][Px("0x50")](t[Px("0x3b")][Px("0x18")](f),t.model[Px("0xe")](e))}t[Px("0x3b")][Px("0x34")]((()=>{n[Px("0x2e")](l,{commandName:Px("0x2d"),commandParams:[{forceValue:c}]},[],"setTableColumnHeader")}))})),t[Px("0x4c")][Px("0xf")].on("addMarker:suggestion",r(),{priority:Px("0x44")}),t[Px("0x0")][Px("0xf")].on("addMarker:suggestion",((t,e,n)=>{n[Px("0x10")][Px("0x47")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:Px("0x44")}),t[Px("0x4c")][Px("0xf")].on("removeMarker:suggestion",((t,e,o)=>{const{type:s,id:r}=n[Px("0x3e")](e[Px("0x1b")]),i=n.getSuggestion(r);if(!i.data||Px("0x2d")!=i[Px("0x0")][Px("0x40")])return;const x=o[Px("0x31")][Px("0x33")](e.markerName);if(x)for(const t of x)o[Px("0x25")][Px("0x30")](Px("0x21")+s,t),o[Px("0x25")].removeClass("ck-suggestion-marker--active",t),o[Px("0x25")][Px("0x28")](Px("0x37"),t),o.mapper[Px("0x4b")](t,e[Px("0x1b")])}),{priority:"highest"}),n[Px("0x1c")].registerDescriptionCallback((t=>{const{data:n}=t;if(n){if("setTableRowHeader"==n[Px("0x40")]){const t=n[Px("0x41")][0][Px("0x1d")];return o(Yo(e,t?Px("0x15"):"FORMAT_REGULAR_ROW"))}if("setTableColumnHeader"==n[Px("0x40")]){const t=n[Px("0x41")][0][Px("0x1d")];return o(Yo(e,Px(t?"0x3a":"0x42")))}}function o(t){return{type:"format",content:Yo(e,Px("0x8"),t)}}}));const i=s[Px("0x1a")]();n[Px("0x11")].registerCustomCallback(Px("0xd"),"setTableRowHeader",Px("0x53"),i),n[Px("0x11")][Px("0x52")](Px("0xd"),Px("0x2d"),"accept",i)}}const Bx=["tableCellBackgroundColor","TableClipboard","getSelectionAffectedTableCells","position","createTableWalker","every","showSuggestionHighlights","activeMarkers","TableUtils","suggestion-td","updateMarker","getRows","registerCustomCallback","fromEntries","containsRange","removeMarkers","move","_isForcedDefaultExecutionBlock","columnInsertionRanges","name","locale","markerAttributes","getAllAdjacentSuggestions","unwrap","Users","endColumn","element","previousSibling","isEmpty","tableCellBorderWidth","some","tableCellBorderColor","elementToElement","suggestionUnloaded","tablePasteCell","suggestion","_tablePostFixingSubtypes","author","getSuggestion","createElement","getChangedMarkers","editing","tableCellVerticalAlignment","insertion","removeMarker","tablePaste","createRangeIn","filter","getChanges","createRange","model","newRange","has","setAttributes","next","tableCell","getContainedElement","nextSibling","root","includes","join","createRangeOn","tablePasteColumn","getRange","forceDefaultExecution","rowInsertionIndexes","dataDowncast","rows","isEqual","insertRows","_suggestionFactory","length","isInContent","getTableIfOnlyTableInContent","tableCellSuggestion","discard","getItems","tableCellHorizontalAlignment","accept","getColumns","getMarkers","clipboardOutput","getChild","return","high","tablePasteChainId","registerDescriptionCallback","createPositionBefore","requires","suggestion:formatBlock:tablePasteCell","editor","tableCellPadding","oldRange","get","tablePasteRow","ck-suggestion-marker","options","table","selection","suggestionLoaded","attributes","map","previous","_splitMarkerName","trackChanges","commands","nodeAfter","find","view","TrackChangesEditing","_replaceTableSlotCell","for","add","insertionRanges","registerPostFixer","type","getChildren","stop","remove","column","paragraph","markerName","removeColumns","change","ck-suggestion-marker--active","register","deletion","documentSelection","_getCoordsForCells","end","insertColumns","startsWith","listenTo","getSuggestions","removeRows","content","last","reduce","insertContent","getShiftedBy","subType","getAttributes","value","cells","set","getRowIndexes","conversion","findAncestor","rowInsertionRanges","markMultiRangeBlockFormat","wrap","tableCellBorderStyle","schema","markers","plugins","markMultiRangeDeletion","from","low","markerToHighlight","insert","getRanges","setAttribute","getSuggestionCallback","markMultiRangeInsertion","entries","push","fill","first","differ","keys","document","cell","endRow","batch","redo","formatBlock"];var jx,Ux;jx=Bx,Ux=397,function(t){for(;--t;)jx.push(jx.shift())}(++Ux);const Gx=function(t,e){return Bx[t-=0]},Hx=[Gx("0xa0"),Gx("0xa2"),Gx("0x6a"),Gx("0x20"),Gx("0xad"),Gx("0x83"),Gx("0x2e")],Wx=Object[Gx("0x90")](Hx[Gx("0x38")]((t=>[t,null])));class Vx extends t.Plugin{static get[Gx("0x2b")](){return[Rx]}afterInit(){const t=this.editor;if(!t[Gx("0x6d")][Gx("0x7")](Gx("0x84")))return;const n=t.plugins[Gx("0x30")](Gx("0x40")),o=t.plugins[Gx("0x30")](Gx("0x8b")),s=t[Gx("0x6d")].get(Rx),r=t.plugins.get(Gx("0x84"));s[Gx("0xa7")][Gx("0x78")](Gx("0x31"),"tablePasteColumn"),t[Gx("0x5")][Gx("0x6b")][Gx("0x50")](Gx("0x1d"),{allowIn:Gx("0xa"),allowContentOf:Gx("0xa"),isLimit:!0}),t[Gx("0x65")][Gx("0xa3")]({model:"tableCellSuggestion",view:Gx("0x8c")});let i=null;t[Gx("0x5")].on(Gx("0x5d"),((s,x)=>{const[a,c]=x,l=x[x[Gx("0x1a")]-1];l&&l[Gx("0x13")]||n[Gx("0x94")]||this[Gx("0x2d")][Gx("0x3c")].get(Gx("0x3b"))[Gx("0x61")]&&function(t,e,n,o,s){if(e&&!e.is(Gx("0x52")))return!1;const r=s[Gx("0x1c")](t,n);if(!r||!Kx(r,null,o))return!1;const i=o[Gx("0x85")](n[Gx("0x7d")][Gx("0x35")]);if(!i[Gx("0x1a")])return!1;const x=i[0][Gx("0x66")](Gx("0x34")),a=o[Gx("0x64")](i),c=o.getColumnIndexes(i),l={startRow:a[Gx("0x7a")],endRow:a[Gx("0x5b")],startColumn:c[Gx("0x7a")],endColumn:c[Gx("0x5b")]};return 1==i[Gx("0x1a")]&&(l[Gx("0x7f")]+=o[Gx("0x8e")](r)-1,l[Gx("0x9c")]+=o[Gx("0x22")](r)-1),Kx(x,l,o)}(a,c,t[Gx("0x5")],o,r)&&(s.stop(),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Gx("0x5")].change((()=>{t[Gx("0x5")][Gx("0x5d")](x[0],x[1],x[2],x[3],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=i;s[Gx("0x1a")]&&n[Gx("0x76")](s,"tablePasteRow",{tablePasteChainId:o}),r[Gx("0x1a")]&&n[Gx("0x76")](r,Gx("0x11"),{tablePasteChainId:o}),a[Gx("0x1a")]&&n.markMultiRangeInsertion(a,Gx("0x0"),{tablePasteChainId:o,skipNestingCheck:!0}),c.length&&n[Gx("0x6e")](c,Gx("0x0"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n[Gx("0x68")](l[Gx("0x38")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],"tablePasteCell",{tablePasteChainId:o});if(u){const e=u[Gx("0x23")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[Gx("0x5")][Gx("0x10")](o),i=e[Gx("0x3e")]((t=>t[Gx("0x12")]()[Gx("0x17")](r)));i&&n[Gx("0x78")]([i.name,s])}n.length&&u[Gx("0x74")](Gx("0x98"),Object[Gx("0x90")](n))}i=null})))}),{priority:e.priorities[Gx("0x27")]+10}),t[Gx("0x6d")][Gx("0x30")](Gx("0x84")).on(Gx("0x41"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t[Gx("0x48")]();const r=n[Gx("0x7e")],x=o,a=zx(r),c=zx(x);t[Gx("0x26")]=r;let l=null,u=null;if(c||a)if(a&&!c){s[Gx("0x49")](r[Gx("0x25")](0));for(const t of Array[Gx("0x6f")](x[Gx("0x47")]()))s.insert(t,r,"end");const t=i[Gx("0x14")][Gx("0xe")](n.row),e=i.columnInsertionIndexes[Gx("0xe")](n[Gx("0x4a")]);t||e||(l=s[Gx("0x1")](r))}else c&&!a&&(u=s[Gx("0x1")](r));else{const t=s[Gx("0xaa")](Gx("0x1d")),e=s[Gx("0xaa")](Gx("0x1d"));s[Gx("0x69")](s[Gx("0x1")](r),e),s[Gx("0x72")](t,r,0);for(const e of Array[Gx("0x6f")](x[Gx("0x47")]()))s.insert(e,t,Gx("0x54"));l=s[Gx("0x10")](t),u=s[Gx("0x10")](e)}const d=Array[Gx("0x6f")](x[Gx("0x60")]())[Gx("0x2")]((([t])=>Hx[Gx("0xe")](t)));i[Gx("0x62")][Gx("0x78")]({element:r,attributes:d[Gx("0x1a")]?Object[Gx("0x90")](d):null}),l&&i[Gx("0x44")].push(l),u&&i.deletionRanges[Gx("0x78")](u)}),{priority:"high"}),o.on(Gx("0x55"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r.columns||1;i.columnInsertionIndexes=new Array(a).fill(x)[Gx("0x38")](((t,e)=>t+e));for(const{cell:e}of o[Gx("0x87")](s,{startColumn:x,endColumn:x+a-1}))i[Gx("0x95")][Gx("0x78")](t[Gx("0x5")][Gx("0x10")](e))}),{priority:"low"}),o.on(Gx("0x18"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Gx("0x16")]||1;i[Gx("0x14")]=new Array(a)[Gx("0x79")](x)[Gx("0x38")](((t,e)=>t+e));for(const{cell:e}of o[Gx("0x87")](s,{startRow:x,endRow:x+a-1}))i[Gx("0x67")][Gx("0x78")](t.model.createRangeOn(e))}),{priority:Gx("0x70")}),n._descriptionFactory[Gx("0x29")]((e=>{if(e[Gx("0x5f")]&&e[Gx("0x5f")][Gx("0x56")](Gx("0x0")))return e[Gx("0x39")]?{}:{type:Gx("0xae"),content:Yo(t[Gx("0x97")],"*Replace table cells*")}}));const x=()=>{};for(const t of["tablePaste",Gx("0x11"),Gx("0x31"),Gx("0xa5")])n[Gx("0x19")].registerCustomCallback(Gx("0xae"),t,Gx("0xf"),x),n[Gx("0x19")][Gx("0x8f")](Gx("0x51"),t,Gx("0xf"),x);n[Gx("0x19")][Gx("0x8f")]("formatBlock",Gx("0xa5"),"discard",x),n[Gx("0x19")][Gx("0x8f")](Gx("0x82"),Gx("0xa5"),Gx("0x21"),((e,n,o)=>{const s=e[Gx("0x38")]((t=>t[Gx("0xb")]())).filter((t=>t)),r=new Map(s[Gx("0x38")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i.cells)e&&r[Gx("0x63")](t,e);else if(o&&o[Gx("0x98")])for(const[e,n]of Object[Gx("0x77")](o[Gx("0x98")])){const o=t.model[Gx("0x6c")][Gx("0x30")](e),s=o?o[Gx("0x12")]()[Gx("0xb")]():null;s&&r[Gx("0x63")](s,n)}t[Gx("0x5")].change((t=>{for(const[e,n]of r)t[Gx("0x8")]({...Wx,...n},e)}))}));const a=(e,o)=>{n[Gx("0x19")].registerCustomCallback(e,"tablePaste",o,((s,r,i)=>{t[Gx("0x5")][Gx("0x4e")]((t=>{const x=[];for(const t of s){const e=t.start[Gx("0x3d")];e.is("element",Gx("0x1d"))&&x.push(e)}n[Gx("0x19")][Gx("0x75")](e,null,o)(s,r,i);for(const e of x)"$graveyard"!=e[Gx("0xd")].rootName&&t[Gx("0x9a")](e)}))}))};a(Gx("0xae"),Gx("0x21")),a(Gx("0xae"),Gx("0x1e")),a("deletion","accept"),a("deletion","discard"),n._suggestionFactory[Gx("0x8f")](Gx("0xae"),Gx("0x31"),"discard",(t=>{const e=t[Gx("0x38")]((t=>t[Gx("0xb")]())),n=e[0][Gx("0x66")](Gx("0x34")),{minRow:r,maxRow:i}=s._getCoordsForCells(e);o[Gx("0x59")](n,{at:r,rows:i-r+1})})),n[Gx("0x19")][Gx("0x8f")](Gx("0xae"),"tablePasteColumn","discard",(t=>{const e=t.map((t=>t[Gx("0xb")]())),n=e[0][Gx("0x66")](Gx("0x34")),{minColumn:r,maxColumn:i}=s[Gx("0x53")](e);o[Gx("0x4d")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Gx("0x5f")]||!e[Gx("0x5f")][Gx("0x56")](Gx("0x0")))return;const o=e[Gx("0x37")].tablePasteChainId,s=n.getSuggestions()[Gx("0x2")]((t=>t[Gx("0x1b")]&&t[Gx("0x37")]&&t.attributes[Gx("0x28")]==o));s[Gx("0x1a")]&&e[Gx("0x99")]()[Gx("0x1a")]!=s[Gx("0x1a")]&&s[Gx("0x5c")](((t,e)=>(t[Gx("0x9")]=e,e.previous=t,e)))};function l(t,{showActiveMarker:e=!0}={}){const{id:o}=n[Gx("0x3a")](t[Gx("0x4c")]),s=[Gx("0x32"),"ck-suggestion-marker-insertion"],r=n[Gx("0x8a")][Gx("0xe")](t[Gx("0x4c")]);return r&&s[Gx("0x78")](Gx("0x4f")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Gx("0x36"),c,{priority:Gx("0x27")}),n.on(Gx("0xa4"),c,{priority:"high"}),t[Gx("0x5")][Gx("0x7d")][Gx("0x45")]((()=>{let e=!1;const o=Array.from(t[Gx("0x5")][Gx("0x7d")][Gx("0x7b")][Gx("0xab")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Gx("0x3a")](s);if("suggestion"!=o||"deletion"!=i||r[Gx("0x2f")])continue;if(!n.hasSuggestion(x))continue;const a=n[Gx("0xa9")](x)[Gx("0x73")](),c=t[Gx("0x6d")].get("Users").me;for(const t of n[Gx("0x58")]())if(t.isInContent&&t.author==c&&Gx("0x82")==t[Gx("0x46")]&&Gx("0xa5")==t[Gx("0x5f")]&&t[Gx("0x73")]()[Gx("0x88")]((t=>a[Gx("0xa1")]((e=>e[Gx("0x91")](t,!0))))))for(const n of t[Gx("0x99")]())n[Gx("0x1b")]&&(n[Gx("0x1e")](),e=!0)}return e})),t.model[Gx("0x7d")][Gx("0x45")]((e=>{const o=t.commands.get(Gx("0x81"));if(!o||!o._createdBatches[Gx("0x7")](e[Gx("0x80")]))return!1;let s=!1;const r=t[Gx("0x6d")][Gx("0x30")](Gx("0x9b")).me,i=t[Gx("0x5")][Gx("0x7d")][Gx("0x7b")][Gx("0x3")](),x=Array[Gx("0x6f")](t[Gx("0x5")][Gx("0x7d")].differ[Gx("0xab")]())[Gx("0x2")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Gx("0x3a")](t);return Gx("0xa6")==o&&"tablePaste"==s&&i==r.id&&!e[Gx("0x2f")]}));for(const t of i){if(Gx("0x72")!=t[Gx("0x46")]||Gx("0x1d")!=t[Gx("0x96")]||1!=t[Gx("0x1a")])continue;const n=e[Gx("0x4")](t[Gx("0x86")],t[Gx("0x86")][Gx("0x5e")](1));if(!x.find((({data:t})=>t.newRange[Gx("0x17")](n))))for(const{name:t,data:o}of x)if(n[Gx("0x91")](o[Gx("0x6")])){e[Gx("0x8d")](t,{range:n}),s=!0;break}}return s})),t[Gx("0x5")][Gx("0x7d")][Gx("0x45")]((e=>{let o=!1;const s=t[Gx("0x6d")][Gx("0x30")](Gx("0x9b")).me,r=n.getSuggestions()[Gx("0x2")]((t=>t.isInContent&&t[Gx("0xa8")]==s)),i=new Set,x=new Set;for(const t of r)if("tablePaste"==t.subType)for(const e of t.getMarkers()){const n=e[Gx("0x12")]()[Gx("0xb")]();if(n)if(n.is(Gx("0x9d"),Gx("0x1d"))&&zx(n)){t[Gx("0xaf")](e[Gx("0x96")]),i.add(n),o=!0;const s=n[Gx("0xc")],r=n[Gx("0x9e")],a=s&&s.is(Gx("0x9d"),Gx("0x1d")),c=r&&r.is(Gx("0x9d"),Gx("0x1d"));a&&!i.has(s)&&x[Gx("0x43")](s),c&&!i[Gx("0x7")](r)&&x[Gx("0x43")](r)}else n.is("element",Gx("0x4b"))&&n[Gx("0x9f")]&&(t[Gx("0xaf")](e[Gx("0x96")]),o=!0)}else if(Gx("0xa5")==t[Gx("0x5f")]){if(!t.attributes||!t[Gx("0x37")][Gx("0x28")])continue;const e=t[Gx("0x37")][Gx("0x98")];if(e&&Object[Gx("0x7c")](e)[Gx("0x1a")])continue;const n=t[Gx("0x37")].tablePasteChainId;let s=!0,i=!0;for(const e of r)if(e[Gx("0x5f")]&&e[Gx("0x5f")][Gx("0x56")](Gx("0x0"))){if(!e[Gx("0x37")].tablePasteChainId){i=!1;break}if(e.id!=t.id&&e[Gx("0x37")][Gx("0x28")]==n){s=!1;break}}i&&s&&(t[Gx("0x92")](),o=!0)}for(const t of i)e[Gx("0x49")](t);for(const t of x)e[Gx("0x9a")](t);return o})),t.conversion.for("editingDowncast").markerToHighlight({model:Gx("0x2c"),view:l,converterPriority:Gx("0x27")}),t[Gx("0x65")][Gx("0x42")](Gx("0x15"))[Gx("0x71")]({model:Gx("0x2c"),view:(t,e)=>{if(e[Gx("0x33")][Gx("0x89")])return l(t,{showActiveMarker:!1})},converterPriority:Gx("0x27")});const u=t[Gx("0xac")][Gx("0x3f")];this[Gx("0x57")](u[Gx("0x7d")],Gx("0x24"),((t,e)=>{const n=[];for(const t of u[Gx("0x1")](e[Gx("0x5a")])[Gx("0x1f")]())t.is("element",Gx("0x8c"))&&n[Gx("0x78")](t);u[Gx("0x4e")]((t=>{for(const e of n)t[Gx("0x93")](t[Gx("0x1")](e),t[Gx("0x2a")](e)),t[Gx("0x49")](e)}))}))}}function zx(t){if(t[Gx("0x9f")])return!0;const e=t[Gx("0x25")](0);return e.is(Gx("0x9d"),Gx("0x4b"))&&e.isEmpty}function Kx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Gx("0x87")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const qx=["columnWidths","commandParams","getContainedElement","formatGroupId","TrackChangesEditing","subType","change","data","Users","getAttribute","TableColumnResizeEditing","accept","registerCustomCallback","model","tableWidth","discard","formatBlock","locale","markBlockFormat","table","afterInit","handleSuggestionDescription","getSuggestions","getSelectedElement","editor","_descriptionFactory","getSuggestionCallback","get","enableCommand","format","*Format:* resize table","registerDescriptionCallback","resizeTable","setAttribute","handleResizeTableWidthCommand","plugins","_suggestionFactory","bind","selection","resizeTableWidth"];var Xx,$x;Xx=qx,$x=271,function(t){for(;--t;)Xx.push(Xx.shift())}(++$x);const Qx=function(t,e){return qx[t-=0]};class Jx extends t.Plugin{[Qx("0x1d")](){if(!this[Qx("0x21")][Qx("0x4")].has(Qx("0x13")))return;const t=this[Qx("0x21")].plugins[Qx("0x24")](Qx("0xd"));t[Qx("0x25")](Qx("0x8"),this[Qx("0x3")][Qx("0x6")](this)),t[Qx("0x25")]("resizeColumnWidths",this.handleResizeTableWidthCommand[Qx("0x6")](this)),t[Qx("0x5")][Qx("0x15")](Qx("0x19"),Qx("0x1"),Qx("0x14"),t._suggestionFactory.getSuggestionCallback("formatBlock",null,Qx("0x18"))),t._suggestionFactory.registerCustomCallback(Qx("0x19"),Qx("0x1"),Qx("0x18"),t[Qx("0x5")][Qx("0x23")](Qx("0x19"),null,Qx("0x14"))),t[Qx("0x22")][Qx("0x0")](this[Qx("0x1e")][Qx("0x6")](this))}[Qx("0x3")](t,e){const n=this[Qx("0x21")][Qx("0x4")][Qx("0x24")](Qx("0xd")),o=e[Qx("0x1c")]||this[Qx("0x21")][Qx("0x16")].document[Qx("0x7")][Qx("0x20")]();this[Qx("0x21")][Qx("0x16")][Qx("0xf")]((t=>{let s=o[Qx("0x12")](Qx("0x17"))||null,r=o[Qx("0x12")](Qx("0x9"))||null;const i=e[Qx("0x17")]||s,x=e[Qx("0x9")]||r,a=this[Qx("0x21")][Qx("0x4")].get(Qx("0x11")).me;for(const t of n[Qx("0x1f")]()){const e=t[Qx("0xb")]();if(Qx("0x1")===t[Qx("0xe")]&&e===o){t.author!==a&&t[Qx("0x18")](),s=t[Qx("0x10")][Qx("0xa")][0].tableWidth,r=t.data[Qx("0xa")][0][Qx("0x9")];break}}t[Qx("0x2")](Qx("0x17"),i,o),t[Qx("0x2")](Qx("0x9"),x,o),n[Qx("0x1b")](o,{commandName:"resizeTableWidth",commandParams:[{tableWidth:s,columnWidths:r}],formatGroupId:"resizeTable"},[],Qx("0x1"))}))}[Qx("0x1e")](t){const{data:e}=t;if(e&&"resizeTable"===e[Qx("0xc")]){const t=Qx("0x27");return{type:Qx("0x26"),content:Yo(this[Qx("0x21")][Qx("0x1a")],t)}}}}const Zx=["TrackChangesEditing","_descriptionFactory","createRange","updateMarker","Title","get","forward","registerPostFixer","getChangedMarkers","removeMarker","model","editor","end","plugins","from","locale","getNearestSelectionRange","title-content","has","start","isTouching","registerElementLabel","document","element","afterInit","schema","suggestion","differ","isCollapsed","newRange"];var Yx,ta;Yx=Zx,ta=323,function(t){for(;--t;)Yx.push(Yx.shift())}(++ta);const ea=function(t,e){return Zx[t-=0]};class na extends t.Plugin{[ea("0x1")](){const t=this[ea("0x12")];if(!t[ea("0x14")][ea("0x19")](ea("0xb")))return;const e=t[ea("0x14")][ea("0xc")](ea("0x7"));e[ea("0x8")][ea("0x1c")](ea("0x18"),(()=>Yo(t[ea("0x16")],"ELEMENT_TITLE"))),t[ea("0x11")][ea("0x1d")][ea("0xe")]((n=>{let o=!1;const s=Array[ea("0x15")](t[ea("0x11")][ea("0x1d")][ea("0x4")][ea("0xf")]());for(const{name:r,data:i}of s){const{group:s}=e._splitMarkerName(r);if(ea("0x3")!==s||!i[ea("0x6")])continue;const x=i[ea("0x6")],a=x[ea("0x13")].nodeBefore;if(!a||!a.is(ea("0x0"),ea("0x18")))continue;if(!x[ea("0x1a")][ea("0x1b")](x[ea("0x13")]))continue;const c=t[ea("0x11")][ea("0x2")][ea("0x17")](x[ea("0x13")],ea("0xd"));if(c&&c[ea("0x5")]){const t=n[ea("0x9")](x[ea("0x1a")],c[ea("0x1a")]);t.isEqual(x)||(n[ea("0xa")](r,{range:t}),o=!0)}o||(n[ea("0x10")](r),o=!0)}return o}))}}const oa=["afterInit","editor","enableCommand","plugins","UndoEditing","redo","get"];var sa,ra;sa=oa,ra=151,function(t){for(;--t;)sa.push(sa.shift())}(++ra);const ia=function(t,e){return oa[t-=0]};class xa extends t.Plugin{[ia("0x3")](){const t=this[ia("0x4")],e=t[ia("0x6")][ia("0x2")]("TrackChangesEditing");t.plugins.has(ia("0x0"))&&(e[ia("0x5")]("undo"),e[ia("0x5")](ia("0x1")))}}const aa=["toggleTableCaption","has","plugins","enableCommand","TableCaptionEditing","afterInit","TrackChangesEditing"];var ca,la;ca=aa,la=457,function(t){for(;--t;)ca.push(ca.shift())}(++la);const ua=function(t,e){return aa[t-=0]};class da extends t.Plugin{static get requires(){return[Rx]}[ua("0x3")](){const t=this.editor;t[ua("0x0")][ua("0x6")](ua("0x2"))&&t[ua("0x0")].get(ua("0x4"))[ua("0x1")](ua("0x5"))}}const ga=["listStart","handleListStyleCommand","handleListReversedCommand","DocumentListUtils","startIndex","get","config","getListTypeFromListStyleType","change","DocumentListPropertiesEditing","bind","commandParams","_getSuggestionBlocks","plugins","handleDescriptions","editor","_getTranslationKeyForListStyle","*Change to:* %0","locale","hasAttribute","registerDescriptionCallback","TrackChangesEditing","afterInit","listReversed","expandListBlocksToCompleteList","listStyle","has","ELEMENT_","_LIST_","enableCommand","handleListStartCommand","toUpperCase","numbered","*Format:* set order to regular","markMultiRangeBlockFormat","replaceAll","reversed","isListItemBlock","push","listType","filter","format","*Format:* set start index to %0","type","list.properties","from","commandName","getAttribute","model","isFirstBlockOfListItem"];var fa,ma;fa=ga,ma=378,function(t){for(;--t;)fa.push(fa.shift())}(++ma);const ha=function(t,e){return ga[t-=0]};class pa extends t.Plugin{[ha("0x2c")](){if(!this[ha("0x25")][ha("0x23")][ha("0x30")](ha("0x1f")))return;const t=this[ha("0x25")][ha("0x1c")][ha("0x1b")](ha("0x10")),e=this[ha("0x25")][ha("0x23")][ha("0x1b")](ha("0x2b"));t.styles&&e[ha("0x1")]("listStyle",this[ha("0x17")][ha("0x20")](this)),t[ha("0x8")]&&e[ha("0x1")](ha("0x2d"),this[ha("0x18")].bind(this)),t[ha("0x1a")]&&e[ha("0x1")](ha("0x16"),this[ha("0x2")][ha("0x20")](this)),e._descriptionFactory[ha("0x2a")](this.handleDescriptions.bind(this))}[ha("0x17")](t,e){const n=this[ha("0x25")][ha("0x23")][ha("0x1b")](ha("0x2b")),o=this[ha("0x22")]((t=>t[ha("0x29")](ha("0xb"))));null!==o&&this[ha("0x25")][ha("0x14")].change((()=>{n[ha("0x6")](o,{commandName:ha("0x2f"),commandParams:[{type:e[ha("0xf")]}],formatGroupId:ha("0x2f")})}))}[ha("0x18")](t,e){const n=this[ha("0x25")][ha("0x23")][ha("0x1b")](ha("0x2b")),o=this[ha("0x25")].plugins[ha("0x1b")](ha("0x19")),s=this[ha("0x22")]((t=>o[ha("0x9")](t)&&ha("0x4")===t.getAttribute(ha("0xb"))));null!==s&&this[ha("0x25")].model[ha("0x1e")]((()=>{n[ha("0x6")](s,{commandName:ha("0x2d"),commandParams:[{reversed:e[ha("0x8")]}],formatGroupId:ha("0x2d")})}))}handleListStartCommand(t,e){const n=this[ha("0x25")][ha("0x23")][ha("0x1b")]("TrackChangesEditing"),o=this[ha("0x25")][ha("0x23")][ha("0x1b")](ha("0x19")),s=this[ha("0x22")]((t=>o[ha("0x9")](t)&&ha("0x4")===t[ha("0x13")](ha("0xb"))));null!==s&&this.editor[ha("0x14")][ha("0x1e")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:ha("0x16"),commandParams:[{startIndex:e[ha("0x1a")]}],formatGroupId:ha("0x16")})}))}[ha("0x24")](t){const e=this[ha("0x25")][ha("0x28")],{data:n}=t;if(!n)return;let o,s;switch(n[ha("0x12")]){case ha("0x2f"):o=ha("0x27"),s={type:"format",content:Yo(e,o,Yo(e,this[ha("0x26")](n[ha("0x21")][0].type)))};break;case ha("0x2d"):o=n[ha("0x21")][0].reversed?"*Format:* set order to reversed":ha("0x5"),s={type:ha("0xd"),content:Yo(e,o)};break;case ha("0x16"):o=ha("0xe"),s={type:ha("0xd"),content:Yo(e,o,n.commandParams[0][ha("0x1a")])}}return s}_getSuggestionBlocks(t){const e=this[ha("0x25")][ha("0x23")].get("DocumentListUtils");let n=Array[ha("0x11")](this[ha("0x25")][ha("0x14")].document.selection.getSelectedBlocks())[ha("0xc")](t);if(!n.length)return null;n=e[ha("0x2e")](n);const o=[];for(const t of n)e[ha("0x15")](t)&&o[ha("0xa")](t);return o}[ha("0x26")](t){return ha("0x31")+this[ha("0x25")][ha("0x23")][ha("0x1b")]("DocumentListPropertiesUtils")[ha("0x1d")](t)[ha("0x3")]()+ha("0x0")+t[ha("0x3")]()[ha("0x7")]("-","_")}}const ba=["registerDescriptionCallback","TrackChangesTableProperties","enableCommand","tableCellBorderStyle","TableUtils","afterInit","handleDiscardAction","TrackChangesEditing","TableCellPropertiesEditing","document","markBlockFormat","_handlePropertyChange","setAttribute","selection","table","getSuggestions","_descriptionFactory","enqueueChange","tableCellBorderWidth","tableCellHorizontalAlignment","_getSuggestion","tableCellVerticalAlignment","get","tableProperties","tableWidth","getFirstPosition","formatBlock","tableBorderStyle","tableCellBackgroundColor","subType","tableBorderColor","tableCellBorderColor","start","discard","editor","getContainedElement","commandParams","tableCellProperties","tableCellPadding","tableCellWidth","accept","findAncestor","getAttribute","getSuggestionCallback","tableBorderWidth","plugins","_suggestionFactory","change","handleSuggestionDescription","format","*Format:* change table cell properties","registerCustomCallback","batch","pluginName","tableCellHeight","model","nodeAfter"];var Ea,_a;Ea=ba,_a=496,function(t){for(;--t;)Ea.push(Ea.shift())}(++_a);const Ta=function(t,e){return ba[t-=0]};class ya extends t.Plugin{static get[Ta("0xd")](){return Ta("0x12")}[Ta("0x16")](){const t=this[Ta("0x33")][Ta("0x5")].get("TrackChangesEditing");if(this[Ta("0x33")][Ta("0x5")].has("TablePropertiesEditing")){this[Ta("0x28")]=[Ta("0x2f"),Ta("0x2c"),Ta("0x4"),"tableAlignment",Ta("0x29"),"tableHeight","tableBackgroundColor"];for(const e of this[Ta("0x28")])t[Ta("0x13")](e,((t,n)=>{const o=this[Ta("0x33")].model[Ta("0x1a")][Ta("0x1e")][Ta("0x2a")]()[Ta("0x1")](Ta("0x1f"));this._handlePropertyChange(e,[o],this[Ta("0x28")],"tableProperties",t,n)}));t[Ta("0x6")][Ta("0xb")](Ta("0x2b"),Ta("0x28"),Ta("0x0"),t[Ta("0x6")].getSuggestionCallback(Ta("0x2b"),null,Ta("0x32"))),t[Ta("0x6")][Ta("0xb")](Ta("0x2b"),Ta("0x28"),Ta("0x32"),((t,e)=>this[Ta("0x17")](this[Ta("0x28")],t,e))),t._suggestionFactory[Ta("0xb")](Ta("0x2b"),Ta("0x28"),"join",(()=>!1))}if(this[Ta("0x33")].plugins.has(Ta("0x19"))){this[Ta("0x36")]=[Ta("0x30"),Ta("0x14"),Ta("0x23"),Ta("0x37"),Ta("0x38"),Ta("0xe"),Ta("0x2d"),Ta("0x24"),Ta("0x26")];for(const e of this.tableCellProperties)t[Ta("0x13")](e,((t,n)=>{const o=this[Ta("0x33")].plugins.get(Ta("0x15")).getSelectionAffectedTableCells(this[Ta("0x33")][Ta("0xf")][Ta("0x1a")][Ta("0x1e")]);this[Ta("0x1c")](e,o,this[Ta("0x36")],Ta("0x36"),t,n)}));t._suggestionFactory.registerCustomCallback(Ta("0x2b"),Ta("0x36"),"accept",t[Ta("0x6")][Ta("0x3")](Ta("0x2b"),null,"discard")),t._suggestionFactory[Ta("0xb")](Ta("0x2b"),Ta("0x36"),Ta("0x32"),((t,e)=>this[Ta("0x17")](this[Ta("0x36")],t,e))),t[Ta("0x6")][Ta("0xb")](Ta("0x2b"),Ta("0x36"),"join",(()=>!1))}t[Ta("0x21")][Ta("0x11")]((t=>this[Ta("0x8")](t)))}_handlePropertyChange(t,e,n,o,s,r){const i=this[Ta("0x33")][Ta("0x5")][Ta("0x27")](Ta("0x18"));this.editor[Ta("0xf")][Ta("0x22")](r[Ta("0xc")],(()=>{for(const t of e)if(this._getSuggestion(t,o))s(r);else{const e={};for(const o of n){const n=t[Ta("0x2")](o);void 0!==n&&(e[o]=n)}s(r),i[Ta("0x1b")](t,{commandParams:[e]},[],o)}}))}[Ta("0x17")](t,e,n){const o=e[0][Ta("0x31")][Ta("0x10")],s=n[Ta("0x35")][0];this[Ta("0x33")][Ta("0xf")][Ta("0x7")]((e=>{for(const n of t)void 0!==s[n]?e[Ta("0x1d")](n,s[n],o):e.removeAttribute(n,o)}))}[Ta("0x8")](t){if(t.data)switch(t[Ta("0x2e")]){case"tableProperties":return{type:Ta("0x9"),content:Yo(this.editor.locale,"*Format:* change table properties")};case Ta("0x36"):return{type:Ta("0x9"),content:Yo(this[Ta("0x33")].locale,Ta("0xa"))}}}[Ta("0x25")](t,e){const n=this.editor[Ta("0x5")].get(Ta("0x18"));for(const o of n[Ta("0x20")]({skipNotAttached:!0})){const n=o[Ta("0x34")]();if(o[Ta("0x2e")]===e&&n===t)return o}return null}}const Ca=["data","moveTargetPosition","type","_handleNewSuggestionMarker","dataToMarker","commandName","catch","trackChanges.trackFormatChanges","skipNestingCheck","parent","_getAuthorFromId","has","isOwn","markDeletion","markInsertion","highest","formatInline:","schema","createPositionBefore","execute","showSuggestionHighlights","addComment","discardAllSuggestions","newRange","_updateSuggestionData","external:","containsRangeInObject","_addSuggestionMarker","isCollapsed","removeMarkers","isRemovable","addMarkerName","_suggestions","name","split","addSuggestionData","previous","clear","isInContent","createPositionAt","set","_joinWithAdjacentSuggestions","acceptSelectedSuggestions","collaboration.channelId","refresh","_defaultCallbacks","getChangedMarkers","CommentsRepository","isEqual","addMarker:suggestion:formatBlock","getMultiRangeId","init","markerReady","open","position","commands","substr","isNextTo","addRange","subType","listenTo","_joinSuggestions","deletion:accept","creator","_rangeIsInLocalUserInsertion","deletion:chain","containsPosition","isBlock","author","activeMarkers","addSuggestion","formatInline:accept","values","formatBlock:chain","containsRange","formatBlock:discard","_trackFormatChanges","_commentsRepository","markerNameToElements","isSelectable","ck-suggestion-marker","toViewElement","removed","for","before","root","getCustomProperty","change:data","discardSelectedSuggestions","splitPosition","setTo","upcast","join","oldRange","insertion:chain","howMany","track-changes-adapter-already-set","requires","deleteContent","marker-count","trackChangesCommand","isInsideObject","isAtStart","textProxy","discard","change:activeMarkers","formatBlock","stop","elementToElement","delete","_descriptionFactory","splice","data-suggestion","sort","update:suggestion","markerToHighlight","detach","markers","nodeAfter","$graveyard","isUndo","addClass","then","rootName","_splitMarkerName","removeComment","registerCustomCallback","commentThread","getAttribute","getAllAdjacentSuggestions","markInlineFormat","insertion:","deletion","enableReadOnlyMode","get","unbind","_setSuggestionRange","_saved","getItems","differ","_customCallbacks","track-changes-suggestion-data-mismatch","getDifference","addUser","_createSuggestion","_findSuggestions","unbindElementFromMarkerName","isBefore","PendingActions","multi","editingDowncast","getIntersection","enableCommand","hasComments","length","document","insertion","nodeBefore","high","_addThreadToSuggestion","_cutOutSuggestionMarker","buildSuggestion","attributes","deletion:","ready","discardSuggestion","size","toJSON","_onDiscard","from","suggestion:","accept","insertion:accept","getSuggestions","updateSuggestion","end","getNearestSelectionRange","after","adapter","rethrowUnexpectedError","backward","_adapter","getFirstMarker","next","add","updateMarker","conversion","isAtEnd","notReady","push","start","_isForcedDefaultExecutionBlock","isTouching","_removeSuggestion","isObject","documentSelection","Users","change","ck-suggestion-marker--active","error-saving-suggestion-data-suggestion-discarded","isAfter","createRange","map","value","acceptSuggestion","low","originalSuggestionId","addHighlight","markMultiRangeDeletion","change:_saved","getShiftedBy","_getSuggestionData","containerElement","removeMarker","_checkSuggestionCorrectness","getSuggestionCallback","pluginName","item","lowest","_refreshSuggestionsChain","trackChanges","PENDING_ACTION_SUGGESTION","dataDowncast","model","createSelection","remove","accepted","formatGroupId","writer","selection","plugins","_registerDefaultCallbacks","fromCharCode","_suggestionFactory","insertion:join","track-changes-suggestion-not-found","createElement","suggestionChanged","consumable","insert","$marker","_setSuggestionData","mapper","formatBlock:accept","_model","getFirstRange","formatInline","createPositionAfter","getSuggestion","locale","getWalker","suggestionUnloaded","batch","acceptAllSuggestions","multipleBlocks","editing","fire","options","isIntersectingWithRange","config","getMarkers","editor","insertContent","isMultiRange","addMarker","authoredAt","@external","includes","formatBlock:","consume","markerName","applyOperation","TrackChangesEditing","createdAt","_enabledCommands","define","some","formatInline:join","setSelection","filter","markMultiRangeBlockFormat","getRanges","element","track-changes-user-not-found","isLimit","range","markMultiRangeInsertion","_editor","ck-suggestion-marker-formatBlock","formatBlock:join","markBlockFormat","dataReady","suggestion","createRangeIn","elementStart","_getExternalAuthor","forceDefaultExecution","every","_suggestionState","track-changes-command-not-found","getLastMatchingPosition","suggestionLoaded","ck-suggestion-marker-","removeClass","insertion:discard"];var ka,Aa;ka=Ca,Aa=279,function(t){for(;--t;)ka.push(ka.shift())}(++Aa);const Ra=function(t,e){return Ca[t-=0]};class va extends t.Plugin{static get[Ra("0x7b")](){return[Ra("0x49"),r.Users,t.PendingActions,cs,ys,vs,ws,Bs,Vs,Qs,er,pa,xr,dr,br,Cr,Sr,Or,jr,Vr,$r,ti,ri,li,mi,_i,vi,Ni,Di,Hi,qi,Yi,rx,lx,hx,Tx,Rx,Nx,Dx,da,Vx,Jx,ya,na,xa]}static get[Ra("0xf2")](){return Ra("0x12a")}constructor(t){function e(t){return t[Ra("0xe4")]((t=>String[Ra("0x102")](t)))[Ra("0x76")]("")}super(t),this[Ra("0x42")](Ra("0x5f"),[]),this.on(Ra("0x83"),((e,n,o,s)=>{this[Ra("0x10e")][Ra("0xdf")]((()=>{for(const e of[...s,...o])this[Ra("0x10e")][Ra("0x8f")][Ra("0x25")](e)&&t[Ra("0x119")].reconvertMarker(e)}))})),this[Ra("0x88")]=new ss(this[Ra("0x11f")][Ra("0xf9")][Ra("0x2b")],this[Ra("0x11f")].locale),this[Ra("0xcf")]=null,this[Ra("0x103")]=new Ia(this[Ra("0x11f")]),this[Ra("0x3a")]=new Map,this[Ra("0x67")]=t.plugins[Ra("0xa0")](Ra("0x49")),this[Ra("0x12c")]=new Set,this[Ra("0x10e")]=this[Ra("0x11f")].model,this[Ra("0x13")]=new WeakMap,this[Ra("0xd9")]=!1,t[Ra("0x11d")][Ra("0x12d")](Ra("0x21"),!0),this[Ra("0x66")]=t[Ra("0x11d")].get(Ra("0x21")),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,48,50,53,48])}[Ra("0x4d")](){const t=this[Ra("0x11f")];t.conversion[Ra("0x6d")]("editingDowncast")[Ra("0x8d")]({model:Ra("0xd"),view:t=>{const{id:e,type:n}=this[Ra("0x96")](t.markerName),o=[Ra("0x6a"),Ra("0x17")+n];let s=3e3;return this[Ra("0x5f")][Ra("0x125")](t[Ra("0x128")])&&(o[Ra("0xd7")]("ck-suggestion-marker--active"),s=3010),Ra("0x9e")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[Ra("0xd4")][Ra("0x6d")](Ra("0xf8")).add((e=>{e.on("addMarker:suggestion",((e,n,o)=>{if(!o[Ra("0x11b")][Ra("0x2e")])return;const s=n[Ra("0xf3")];if(!s)return;const r=o[Ra("0x10c")][Ra("0x6b")](s);t[Ra("0xf9")][Ra("0x2b")][Ra("0xdc")](s)&&r&&!r[Ra("0x70")]("widget")&&r.is(Ra("0xee"))&&(0,x.toWidget)(r,o[Ra("0xfe")])}),{priority:"high"})})),t[Ra("0xd4")][Ra("0x6d")]("dataDowncast")[Ra("0x8d")]({model:Ra("0xd"),view:(t,e)=>{if(!e.options[Ra("0x2e")])return null;const{type:n}=this[Ra("0x96")](t[Ra("0x128")]);return{classes:[Ra("0x6a"),"ck-suggestion-marker-"+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[Ra("0xf3")])return;if(o.item.is("selection"))return void s[Ra("0x108")].consume(o[Ra("0xf3")],n.name);const r=s[Ra("0x10c")][Ra("0x6b")](o[Ra("0xf3")]);if(!o[Ra("0xf3")].is(Ra("0x3"))||!t[Ra("0xf9")][Ra("0x2b")].isBlock(o.item)||r.getCustomProperty(Ra("0xe9")))return;const{id:i}=this[Ra("0x96")](o[Ra("0x128")]);s[Ra("0xfe")][Ra("0x93")]([Ra("0x6a"),Ra("0x9")],r),s[Ra("0xfe")].setAttribute(Ra("0x8a"),i,r),s[Ra("0x10c")].bindElementToMarker(r,o[Ra("0x128")]),e&&(this[Ra("0x5f")][Ra("0x125")](o[Ra("0x128")])?s[Ra("0xfe")].addClass(Ra("0xe0"),r):s[Ra("0xfe")][Ra("0x18")](Ra("0xe0"),r));for(const e of t[Ra("0xf9")][Ra("0xe")](o.item)[Ra("0xa4")]())s[Ra("0x108")][Ra("0x127")](e,n.name);s.consumable[Ra("0x127")](o[Ra("0xf3")],n[Ra("0x3b")])};t.conversion[Ra("0x6d")](Ra("0xf8"))[Ra("0xd2")]((t=>{t.on(Ra("0x4b"),((t,e,o)=>{o[Ra("0x11b")].showSuggestionHighlights&&n({showActiveMarkers:!1})(t,e,o)}),{priority:Ra("0x29")})})),t.conversion[Ra("0x6d")](Ra("0xf8")).markerToData({model:"suggestion",view:(t,e)=>e[Ra("0x11b")][Ra("0x2e")]?null:{group:"suggestion",name:t[Ra("0x52")](Ra("0xd").length+1)}}),t[Ra("0xd4")][Ra("0x6d")](Ra("0x75"))[Ra("0x86")]({view:{name:Ra("0xd"),attribute:{id:/^\w/,suggestionType:/^\w/}},model:(t,{writer:e})=>{let n=Ra("0xc4")+t[Ra("0x9a")]("suggestion-type")+":"+t[Ra("0x9a")]("id");return t[Ra("0x9a")]("marker-count")&&(n+=":"+t.getAttribute(Ra("0x7d"))),e[Ra("0x106")](Ra("0x10a"),{"data-name":n})}}),t[Ra("0xd4")][Ra("0x6d")](Ra("0x75"))[Ra("0x1e")]({view:Ra("0xd")}),t[Ra("0xd4")][Ra("0x6d")](Ra("0xb0"))[Ra("0xd2")]((t=>{t.on(Ra("0x4b"),n(),{priority:"high"})})),t[Ra("0xd4")][Ra("0x6d")]("editingDowncast")[Ra("0xd2")]((t=>{t.on("removeMarker:suggestion:formatBlock",((t,e,n)=>{const o=n.mapper[Ra("0x68")](e[Ra("0x128")]);if(o)for(const t of o)t[Ra("0x70")]("addHighlight")||(n[Ra("0xfe")][Ra("0x18")]([Ra("0x6a"),Ra("0x9"),"ck-suggestion-marker--active"],t),n[Ra("0xfe")].removeAttribute(Ra("0x8a"),t),n.mapper[Ra("0xac")](t,e[Ra("0x128")]))}),{priority:"high"})})),t[Ra("0xf9")][Ra("0xb5")].registerPostFixer((e=>{let n=!1;const o=Array[Ra("0xc3")](t[Ra("0xf9")].document.differ[Ra("0x48")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[Ra("0x96")](x);if(Ra("0xd")!==o)continue;const u=this[Ra("0x3a")][Ra("0xa0")](l);if(null!=a[Ra("0x31")])if(Ra("0x110")==c&&(n=n||Ma(a[Ra("0x31")],x,e,t[Ra("0xf9")][Ra("0x2b")])),a[Ra("0x31")][Ra("0x36")]||Ra("0x91")==a[Ra("0x31")][Ra("0x6f")][Ra("0x95")]||Ra("0x84")==c&&!wa(a[Ra("0x31")])||Ra("0x9e")==c&&(La(i=a[Ra("0x31")])||(r=i).start.parent==r[Ra("0xc9")][Ra("0xb7")]&&r[Ra("0xd8")][Ra("0xd5")]))e[Ra("0xef")](x),n=!0;else{if(!u||!u[Ra("0x40")])continue;s[Ra("0xd2")](u)}}var r,i;return s[Ra("0xc0")]>0&&(n=!!this[Ra("0x43")](s)||n),n})),t[Ra("0xf9")][Ra("0xb5")].registerPostFixer((e=>{let n=!1;for(const o of t[Ra("0xf9")][Ra("0xb5")][Ra("0xa5")].getChanges()){if(Ra("0x109")!=o[Ra("0x1c")])continue;const s=o[Ra("0x50")].getShiftedBy(o[Ra("0xb4")]);if(s[Ra("0xd5")])for(const r of this[Ra("0x3a")].values()){if(r[Ra("0x121")]||!r[Ra("0x40")])continue;if("formatBlock"!=r[Ra("0x1c")])continue;const i=r[Ra("0x10f")]();if(i[Ra("0xd8")][Ra("0x23")]!=i[Ra("0xc9")][Ra("0x23")]&&i[Ra("0xc9")].isEqual(o[Ra("0x50")])){const o=t[Ra("0xf9")].createRange(i.start,s);e[Ra("0xd3")](r.getFirstMarker(),{range:o}),n=!0}}}return n})),t[Ra("0xf9")][Ra("0x8f")].on(Ra("0x8c"),((t,e,n)=>{if(null==n){const{id:t}=this._splitMarkerName(e[Ra("0x3b")]),n=this[Ra("0x3a")][Ra("0xa0")](t);n&&n[Ra("0x39")](e[Ra("0x3b")])}})),t.model[Ra("0xb5")].on(Ra("0x71"),(()=>{const e=Array[Ra("0xc3")](t[Ra("0xf9")][Ra("0xb5")][Ra("0xa5")][Ra("0x48")]())[Ra("0x0")]((t=>Ra("0xd")===this[Ra("0x96")](t[Ra("0x3b")]).group));if(0===e.length)return;e[Ra("0x8b")](((t,e)=>{const n=t[Ra("0x1a")][Ra("0x77")],o=e[Ra("0x1a")].oldRange;return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[Ra("0xd8")].isBefore(o[Ra("0xd8")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[Ra("0x96")](t);if(null===s[Ra("0x77")]){const e=this._handleNewSuggestionMarker(t);o[Ra("0xd2")](e)}else{const t=this[Ra("0x3a")][Ra("0xa0")](e);null!==s.newRange||t[Ra("0x40")]?(n[Ra("0xd2")](t.head),o.add(t)):this[Ra("0xdb")](t)}}o[Ra("0xc0")]>0&&this[Ra("0xf5")](o);for(const t of n)this.fire(Ra("0x107"),t)})),t[Ra("0xf9")].on(Ra("0x129"),((e,n)=>{const o=n[0];if(!this._suggestions[Ra("0xc0")])return;if(!o.isDocumentOperation)return;if(o[Ra("0x116")][Ra("0x92")]||!o[Ra("0x116")].isLocal)return;let s,r;switch(o[Ra("0x1c")]){case Ra("0x109"):s=t[Ra("0xf9")][Ra("0x41")](o.position),r=s.getShiftedBy(o[Ra("0x79")]);break;case Ra("0x3c"):s=t[Ra("0xf9")][Ra("0x41")](o[Ra("0x73")]),r=t[Ra("0xf9")][Ra("0x41")](o[Ra("0x1b")]);break;case"move":s=t[Ra("0xf9")][Ra("0x41")](o.targetPosition),r=s[Ra("0xec")](o.howMany);break;default:return}const i=t.model[Ra("0xe3")](s,r);t.model[Ra("0xdf")]((()=>{for(const{suggestion:t,meta:e}of this[Ra("0xab")](i)){if(t[Ra("0x121")])continue;if("formatInline"==t.type)continue;const n=t.data&&t[Ra("0x1a")].multipleBlocks;(Ra("0x84")!=t.type||"split"==o[Ra("0x1c")]&&!n)&&(e[Ra("0x34")]||Ra("0xb6")==t[Ra("0x1c")]&&e[Ra("0x26")]||t[Ra("0x10f")]()[Ra("0x64")](i)&&this._breakSuggestionMarker(t,s,r))}}))}),{priority:Ra("0xf4")}),t[Ra("0xf9")].on(Ra("0x7c"),((e,n)=>{const o=n[0],s=n[1];if(s&&s[Ra("0x11")])return;if(this._isForcedDefaultExecutionBlock)return;if(!this[Ra("0x7e")][Ra("0xe5")])return;if(o.isCollapsed)return;const r=t[Ra("0xf9")][Ra("0x2b")],{start:i,end:x}=o[Ra("0x10f")](),a=i[Ra("0x90")]&&r[Ra("0x5")](i[Ra("0x90")])?null:r.getNearestSelectionRange(i,"forward"),c=x.nodeBefore&&r[Ra("0x5")](x[Ra("0xb7")])?null:r.getNearestSelectionRange(x,Ra("0xce")),l=t.model[Ra("0xe3")](a?a[Ra("0xd8")]:i,c?c[Ra("0xc9")]:x);t.model[Ra("0xdf")]((e=>{this[Ra("0x27")](l);const n=t[Ra("0xf9")][Ra("0x2b")][Ra("0xca")](l[Ra("0xd8")]);o.is(Ra("0xdd"))?e.setSelection(n):o[Ra("0x74")](n)})),e[Ra("0x85")]()}),{priority:e.priorities.normal+10}),t[Ra("0xf9")].on(Ra("0x120"),((e,n)=>{const o=n[n[Ra("0xb4")]-1];o&&o[Ra("0x11")]||this[Ra("0xd9")]||this[Ra("0x7e")][Ra("0xe5")]&&(t[Ra("0xf9")].change((()=>{let o=t[Ra("0xf9")][Ra("0x120")](n[0],n[1],n[2],n[3],{forceDefaultExecution:!0});if(!o)return;e.return=o.clone();const s=o[Ra("0xc9")].nodeBefore,r=t[Ra("0xf9")].schema;s&&r[Ra("0x5d")](s)&&!r[Ra("0xdc")](s)&&(o=t[Ra("0xf9")][Ra("0xe3")](o[Ra("0xd8")],t[Ra("0xf9")][Ra("0x41")](s,Ra("0xc9")))),this.markInsertion(o)})),e[Ra("0x85")]())}),{priority:"high"}),this[Ra("0x7e")]=new d(t,this[Ra("0x12c")]),this[Ra("0x11f")][Ra("0x51")][Ra("0xd2")](Ra("0xf6"),this[Ra("0x7e")]),this[Ra("0xb2")](Ra("0xf6"));const o=new p(t,this[Ra("0x3a")]);t.commands.add(Ra("0xe6"),o),this.enableCommand("acceptSuggestion");const s=new y(t,this._suggestions);t[Ra("0x51")][Ra("0xd2")](Ra("0xbf"),s),this[Ra("0xb2")](Ra("0xbf")),t[Ra("0x51")][Ra("0xd2")](Ra("0x117"),new F(t,o,this[Ra("0x3a")])),this[Ra("0xb2")](Ra("0x117")),t.commands[Ra("0xd2")](Ra("0x30"),new F(t,s,this._suggestions)),this.enableCommand(Ra("0x30")),t[Ra("0x51")][Ra("0xd2")](Ra("0x44"),new U(t,o,this[Ra("0x3a")])),this[Ra("0xb2")]("acceptSelectedSuggestions"),t[Ra("0x51")][Ra("0xd2")](Ra("0x72"),new U(t,s,this[Ra("0x3a")])),this[Ra("0xb2")](Ra("0x72"));const r=t[Ra("0x100")][Ra("0xa0")](Ra("0x49"));this.listenTo(r,Ra("0x2f"),((t,{threadId:e})=>{const n=this._suggestions[Ra("0xa0")](e);n&&n[Ra("0x99")]&&1===n[Ra("0x99")][Ra("0xb4")]&&this[Ra("0x32")](e,{hasComments:!0})}),{priority:Ra("0xe7")}),this.listenTo(r,Ra("0x97"),((t,{threadId:e})=>{const n=this[Ra("0x3a")][Ra("0xa0")](e);n&&n[Ra("0x99")]&&!n.commentThread[Ra("0xb4")]&&this[Ra("0x32")](e,{hasComments:!1})}),{priority:Ra("0xe7")})}set[Ra("0xcc")](t){if(this[Ra("0xcf")])throw new e.CKEditorError(Ra("0x7a"),this);this[Ra("0xcf")]=t}get adapter(){return this._adapter}[Ra("0xc7")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions[Ra("0x62")]())t&&!e[Ra("0x40")]||n[Ra("0xd7")](e);return e?n[Ra("0xe4")]((t=>t[Ra("0xc1")]())):n}getSuggestion(t){const n=this[Ra("0x3a")][Ra("0xa0")](t);if(!n)throw new e.CKEditorError(Ra("0x105"),this);return n}hasSuggestion(t){return this[Ra("0x3a")][Ra("0x25")](t)}addSuggestionData(t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[Ra("0x1c")][Ra("0x3c")](":"),i=this[Ra("0x3a")][Ra("0xa0")](n)||this[Ra("0xaa")](s,r,n,e,o);if(this[Ra("0xb9")](i),this[Ra("0xf0")](i,s,r||null,e),i.createdAt=t[Ra("0x12b")],o&&o[Ra("0x124")]){const{authorName:t,createdAt:e}=o[Ra("0x124")],n=this[Ra("0x10")](t);i.authoredAt=e,i.author=n,i.isExternal=!0}else i[Ra("0x123")]=t[Ra("0x12b")];switch(t[Ra("0x1a")]&&(i[Ra("0x1a")]=t[Ra("0x1a")]),t[Ra("0xbc")]&&(i[Ra("0xbc")]=t.attributes),this[Ra("0xcf")]&&this[Ra("0xcf")].addSuggestion||(i[Ra("0xa3")]=!0),this[Ra("0x13")][Ra("0xa0")](i)){case Ra("0xd6"):this[Ra("0x13")][Ra("0x42")](i,Ra("0xc"));break;case Ra("0x4e"):i[Ra("0x40")]?(this[Ra("0x13")][Ra("0x42")](i,Ra("0xbe")),this[Ra("0x11a")](Ra("0x16"),i)):this._suggestionState[Ra("0x42")](i,Ra("0x6c"))}return i}[Ra("0xe6")](t){this[Ra("0x11")]((()=>{this[Ra("0x11f")][Ra("0xf9")][Ra("0xdf")]((()=>{for(const e of t[Ra("0x9b")]())e[Ra("0xc5")]()}))}))}discardSuggestion(t){this[Ra("0x11")]((()=>{this[Ra("0x11f")][Ra("0xf9")].change((()=>{for(const e of t[Ra("0x9b")]())e[Ra("0x82")]()}))}))}[Ra("0xb2")](t,n){const o=this[Ra("0x11f")][Ra("0x51")][Ra("0xa0")](t);if(!o)throw new e.CKEditorError(Ra("0x14"),this,{commandName:t});this._enabledCommands.add(o),n&&o.on("execute",((t,e)=>{this[Ra("0x7e")][Ra("0xe5")]&&(this[Ra("0xd9")]||e[Ra("0xb4")]>0&&e[e[Ra("0xb4")]-1]&&e[e[Ra("0xb4")]-1][Ra("0x11")]||(n(((...t)=>o.execute(...t,{forceDefaultExecution:!0})),...e),t[Ra("0x85")]()))}),{priority:Ra("0xb8")})}[Ra("0x11")](t){let n,o;const s=this._isForcedDefaultExecutionBlock;this[Ra("0xd9")]=!0;try{n=t()}catch(t){o=t}return s||(this[Ra("0xd9")]=!1),o&&e.CKEditorError[Ra("0xcd")](o,this),n}[Ra("0x28")](t,n=null,o={}){if(t[Ra("0x36")])return null;const s=this[Ra("0x11f")].plugins.get(Ra("0xde")).me;for(const{suggestion:e,meta:o}of this[Ra("0xab")](t,Ra("0xb6")))if(o[Ra("0x26")]){if(!o[Ra("0x53")])return e;if(n==e[Ra("0x55")]){const n=e.getFirstRange();return n.start[Ra("0x4a")](t[Ra("0xc9")])?this[Ra("0xa2")](e,this[Ra("0x10e")][Ra("0xe3")](t[Ra("0xd8")],n.end)):this[Ra("0xa2")](e,this[Ra("0x10e")][Ra("0xe3")](n[Ra("0xd8")],t.end)),e}}const r=(0,e.uid)(),i=s.id,x=n?Ra("0x9d")+n:Ra("0xb6"),a=this[Ra("0x10b")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Ra("0x35")](x,r,i,t),a}[Ra("0x7")](t,n=Ra("0xaf"),o={}){const s=this[Ra("0x11f")][Ra("0x100")][Ra("0xa0")]("Users").me,r=this._suggestionFactory.getSuggestionCallback(Ra("0xb6"),n,Ra("0x76"));for(const e of this.getSuggestions())if(e[Ra("0x5e")].id==s.id&&"insertion"==e[Ra("0x1c")]&&e[Ra("0x55")]==n&&(r(e[Ra("0x2")](),t)||r(t,e[Ra("0x2")]()))){for(const n of t)e[Ra("0x54")](n);return e}for(const e of t)for(const{suggestion:n,meta:o}of this[Ra("0xab")](e,Ra("0xb6"))){if(!o[Ra("0x26")])continue;let e=!0;for(const o of n[Ra("0x2")]())for(const n of t)if(!o[Ra("0x64")](n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=s.id,a=Ra("0x9d")+n,c=this[Ra("0x10b")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this._addSuggestionMarker(a,i,x,e,Zo[Ra("0x4c")]());return c}[Ra("0x9c")](t,n,o=null,s={}){if(o=o||Na(n),t.isCollapsed)return;if(!1===this[Ra("0x66")]){const e=this[Ra("0x103")][Ra("0xf1")]("formatInline",o,Ra("0xc5"));return void this[Ra("0x11")]((()=>e([t],n,s)))}const r=this.editor[Ra("0x100")][Ra("0xa0")](Ra("0xde")).me,i=[];for(const{suggestion:e,meta:n}of this[Ra("0xab")](t,Ra("0xb6")))n[Ra("0x26")]&&!n.isInsideObject&&i[Ra("0xd7")](...e[Ra("0x2")]());const x=function(t,e){const n=[];for(const o of e){const e=t[Ra("0xb1")](o);e&&n.push(e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[Ra("0xb4")];){const o=n[e].getDifference(t);n[Ra("0x89")](e,1,...o),e+=o.length}}return n}(t,i);x.length&&this[Ra("0x10e")][Ra("0xdf")]((()=>{for(const t of x){const e=this[Ra("0x103")][Ra("0xf1")]("formatInline",o,Ra("0xc5"));this[Ra("0x11")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[Ra("0xd8")],a=t.end;for(const{suggestion:e,meta:n}of this[Ra("0xab")](t,Ra("0x110"))){if(!n[Ra("0x26")])continue;if(e[Ra("0x55")]!=o)continue;const s=e.getFirstRange();if(s[Ra("0x64")](t,!0))return;x=x[Ra("0xad")](s.start)?x:s[Ra("0xd8")],a=a[Ra("0xe2")](s[Ra("0xc9")])?a:s[Ra("0xc9")],i?s[Ra("0xd8")][Ra("0xad")](i[Ra("0x10f")]()[Ra("0xd8")])?(i[Ra("0x37")](),i=e):e[Ra("0x37")]():i=e}const c=this[Ra("0x10e")].createRange(x,a);if(i)this[Ra("0xa2")](i,c);else{const t=(0,e.uid)(),i=r.id;this[Ra("0x10b")]({id:t,type:Ra("0x2a")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[Ra("0x35")](Ra("0x2a")+o,t,i,c)}}}[Ra("0xb")](t,n,o=[],s=null,r={}){n[Ra("0xfd")]||(n.formatGroupId=n[Ra("0x1f")]),n[Ra("0x118")]=t.is(Ra("0x6")),s=s||Na(n);const i=o[Ra("0xe4")]((t=>Oa(t,this[Ra("0x10e")]))),x=t.is(Ra("0x6"))?t:Oa(t,this[Ra("0x10e")]);if(!1===this[Ra("0x66")]){const t=this[Ra("0x103")][Ra("0xf1")](Ra("0x84"),s,Ra("0xc5"));return void this.forceDefaultExecution((()=>t([x],n,r)))}i.push(x);let a=!0;for(const t of i)if(!this._rangeIsInLocalUserInsertion(t)){a=!1;break}if(a){const t=this[Ra("0x103")][Ra("0xf1")](Ra("0x84"),s,Ra("0xc5"));return void this.forceDefaultExecution((()=>t([x],n,r)))}let c=null,l=x[Ra("0xd8")],u=x[Ra("0xc9")];for(const{suggestion:t,meta:e}of this._findSuggestions(x,Ra("0x84"))){if(!e[Ra("0x26")]||e[Ra("0x53")]||e[Ra("0x34")]||e[Ra("0x7f")])continue;if(t[Ra("0x1a")][Ra("0xfd")]!=n[Ra("0xfd")])continue;const o=t[Ra("0x10f")]();if(t[Ra("0x55")]==s){if(o[Ra("0x64")](x,!0))return;l=l[Ra("0xad")](o[Ra("0xd8")])?l:o.start,u=u.isAfter(o.end)?u:o[Ra("0xc9")],c?o[Ra("0xd8")][Ra("0xad")](c.getFirstRange()[Ra("0xd8")])?(c[Ra("0x37")](),c=t):t[Ra("0x37")]():c=t}else{const e=x[Ra("0xb1")](o);this[Ra("0xba")](t,e)}}const d=this[Ra("0x11f")].plugins[Ra("0xa0")](Ra("0xde")).me,g=(0,e.uid)(),f=d.id;c?this[Ra("0xa2")](c,this[Ra("0x10e")].createRange(l,u)):(this[Ra("0x10b")]({id:g,type:Ra("0x126")+s,data:n,createdAt:new Date,authorId:f,attributes:r}),this[Ra("0x35")]("formatBlock:"+s,g,f,this[Ra("0x10e")][Ra("0xe3")](l,u)))}[Ra("0x1")](t,n,o=[],s=null,r={}){n[Ra("0xfd")]||(n[Ra("0xfd")]=n[Ra("0x1f")]);const i=t[0];n[Ra("0x118")]=i.is(Ra("0x6")),s=s||Na(n);const x=o[Ra("0xe4")]((t=>Oa(t,this[Ra("0x10e")]))),a=i.is(Ra("0x6"))?t:t[Ra("0xe4")]((t=>Oa(t,this._model)));if(!1===this[Ra("0x66")]){const t=this._suggestionFactory[Ra("0xf1")](Ra("0x84"),s,Ra("0xc5"));return void this[Ra("0x11")]((()=>t(a,n,r)))}x[Ra("0xd7")](...a);let c=!0;for(const t of x)if(!this[Ra("0x5a")](t)){c=!1;break}if(c){const t=this[Ra("0x103")][Ra("0xf1")](Ra("0x84"),s,Ra("0xc5"));return void this[Ra("0x11")]((()=>t(a,n,r)))}const l=this.editor[Ra("0x100")][Ra("0xa0")](Ra("0xde")).me;for(const t of this[Ra("0xc7")]()){if(t[Ra("0x5e")].id!=l.id)continue;if(Ra("0x84")!=t[Ra("0x1c")]||t[Ra("0x1a")][Ra("0xfd")]!=n[Ra("0xfd")])continue;const e=t[Ra("0x55")]==s;for(let n=0;n<a[Ra("0xb4")];n++){const o=a[n];for(const s of t[Ra("0x11e")]()){const r=s.getRange();if(o.isEqual(r)){e?(a.splice(n,1),n--):t.removeMarker(s[Ra("0x3b")]);break}}}}if(0==a[Ra("0xb4")])return;const u=this[Ra("0x103")][Ra("0xf1")](Ra("0x84"),s,"join");for(const t of this.getSuggestions())if(t[Ra("0x5e")].id==l.id&&Ra("0x84")==t.type&&t[Ra("0x1a")][Ra("0xfd")]==n[Ra("0xfd")]&&t[Ra("0x55")]==s&&(u(t.getRanges(),a)||u(a,t[Ra("0x2")]()))){for(const e of a)t.addRange(e);return t}const d=(0,e.uid)(),g=l.id,f=Ra("0x126")+s,m=this[Ra("0x10b")]({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[Ra("0x35")](f,d,g,t,Zo[Ra("0x4c")]());return m}[Ra("0x27")](t,n=null,o={}){if(t[Ra("0x36")])return null;const s=this[Ra("0x11f")].plugins[Ra("0xa0")](Ra("0xde")).me,r=new i.LiveRange(t.start,t[Ra("0xc9")]);for(const{suggestion:t,meta:e}of this[Ra("0xab")](r,Ra("0xb6")))if(e[Ra("0x26")]&&!e[Ra("0x53")])if(t[Ra("0x121")]){const e=t.getRanges().filter((t=>"$graveyard"!=t[Ra("0x6f")][Ra("0x95")]));if(e[Ra("0x12")]((t=>r.containsRange(t,!0)))&&t[Ra("0x82")](),e[Ra("0x12e")]((t=>t.containsRange(r,!0)))){const t=this._suggestionFactory[Ra("0xf1")](Ra("0x9e"),n,Ra("0xc5"));return this.forceDefaultExecution((()=>t([r],null,o))),null}}else{const e=r[Ra("0xb1")](t.getFirstRange());t[Ra("0xc2")]([e],null,o)}if(r[Ra("0x8e")](),r.isCollapsed||Ra("0x91")==r[Ra("0x6f")][Ra("0x95")])return null;let x=null,a=r.start,c=r[Ra("0xc9")];for(const{suggestion:t,meta:e}of this._findSuggestions(r,"deletion"))if(e[Ra("0x26")])if(t[Ra("0x121")]){let e=!0;for(const n of t[Ra("0x2")]()){if(n[Ra("0x64")](r,!0))return t;r[Ra("0x64")](n)||(e=!1)}e&&t[Ra("0x82")]()}else{const e=t[Ra("0x10f")]();if(e[Ra("0x64")](r,!0))return t;a=a[Ra("0xad")](e.start)?a:e[Ra("0xd8")],c=c[Ra("0xe2")](e.end)?c:e.end,x?e.start[Ra("0xad")](x.getFirstRange().start)?(x.removeMarkers(),x=t):t.removeMarkers():x=t}if(x)return this[Ra("0xa2")](x,this._model[Ra("0xe3")](a,c)),x;{const t=(0,e.uid)(),r=this[Ra("0x10e")][Ra("0xe3")](a,c),i=s.id,x=n?Ra("0xbd")+n:Ra("0x9e"),l=this[Ra("0x10b")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Ra("0x35")](x,t,i,r),l}}[Ra("0xea")](t,n=Ra("0xaf"),o={}){const s=this[Ra("0x11f")][Ra("0x100")][Ra("0xa0")](Ra("0xde")).me,r=t.map((t=>new i.LiveRange(t[Ra("0xd8")],t[Ra("0xc9")]))),x=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this._findSuggestions(t,Ra("0xb6")))n.isOwn&&!n[Ra("0x53")]&&x[Ra("0xd2")](e);for(const e of x)if(e[Ra("0x121")]){const s=e[Ra("0x2")]();if((!e[Ra("0xbc")]||!e.attributes[Ra("0x22")])&&s[Ra("0x12")]((t=>r[Ra("0x12e")]((e=>e.containsRange(t,!0)))))&&e[Ra("0x82")](),r[Ra("0x12")]((t=>s[Ra("0x12e")]((e=>e[Ra("0x64")](t,!0)))))){const e=this[Ra("0x103")][Ra("0xf1")](Ra("0x9e"),n,Ra("0xc5"));return this[Ra("0x11")]((()=>e(t,null,o))),null}}else{const t=e[Ra("0x10f")]();if(r.some((e=>e[Ra("0x64")](t,!0)))&&e[Ra("0x82")](),r[Ra("0x12")]((e=>t.containsRange(e,!0)))){const t=this[Ra("0x103")][Ra("0xf1")](Ra("0x9e"),n,Ra("0xc5"));return this[Ra("0x11")]((()=>t(r,null,o))),null}}const a=this._suggestionFactory[Ra("0xf1")](Ra("0x9e"),n,Ra("0x76"));let c=null;for(const t of this[Ra("0xc7")]())if(t.author.id==s.id&&t[Ra("0x40")]&&Ra("0x9e")==t[Ra("0x1c")]&&t[Ra("0x55")]==n&&(a(t[Ra("0x2")](),r)||a(r,t[Ra("0x2")]())))if(c){if(t[Ra("0x99")]&&t.commentThread.length)continue;for(const e of t[Ra("0x2")]())c.isIntersectingWithRange(e)||c[Ra("0x54")](e);t[Ra("0x37")]()}else{c=t;for(const e of r)t[Ra("0x11c")](e)||t[Ra("0x54")](e)}if(c)return c;x[Ra("0x3f")]();for(const t of r)for(const{suggestion:e,meta:n}of this[Ra("0xab")](t,Ra("0x9e")))n.isOwn&&x[Ra("0xd2")](e);for(const t of x){const e=t.getRanges();if((!o||!o[Ra("0x22")])&&r.every((t=>e[Ra("0x12e")]((e=>e[Ra("0x64")](t,!0))))))return t;(!t[Ra("0xbc")]||!t[Ra("0xbc")].skipNestingCheck)&&e.every((t=>r[Ra("0x12e")]((e=>e.containsRange(t,!0)))))&&t[Ra("0x82")]()}const l=(0,e.uid)(),u=s.id,d=Ra("0xbd")+n,g=this[Ra("0x10b")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of r)t[Ra("0x8e")](),t[Ra("0x36")]||Ra("0x91")==t[Ra("0x6f")].rootName||this[Ra("0x35")](d,l,u,t,Zo[Ra("0x4c")]());return g}_setSuggestionRange(t,e){const n=t[Ra("0xd0")]();this[Ra("0x10e")][Ra("0xdf")]((t=>{t.updateMarker(n,{range:e})}))}[Ra("0xb9")](t){const e=t.id,n=this[Ra("0x11f")][Ra("0x11d")][Ra("0xa0")](Ra("0x45"));this[Ra("0x67")].hasCommentThread(e)||this._commentsRepository.addCommentThread({channelId:n,threadId:e});const o=this[Ra("0x67")].getCommentThread(e);o[Ra("0xa1")](Ra("0x38")),o.isRemovable=!1,t.commentThread=o}[Ra("0xf0")](t,n,o,s){if(t[Ra("0x1c")]!=n||t.subType!=o||t[Ra("0x59")].id!=s)throw this[Ra("0x11f")][Ra("0x9f")](Ra("0xa7")),new e.CKEditorError(Ra("0xa7"),this)}[Ra("0xba")](t,n){const o=t.getFirstRange();if(n[Ra("0x4a")](o))t[Ra("0x37")]();else if(o[Ra("0x64")](n)){const s=this[Ra("0x10e")][Ra("0x41")](n[Ra("0xd8")][Ra("0xb7")],Ra("0xc9"));this[Ra("0xa2")](t,this[Ra("0x10e")][Ra("0xe3")](o[Ra("0xd8")],s));const r=(0,e.uid)(),i=t[Ra("0x59")].id,x=t[Ra("0x1c")]+":"+t[Ra("0x55")];this[Ra("0x10b")]({id:r,type:x,createdAt:new Date,authorId:i,data:t[Ra("0x1a")],attributes:t.attributes});const a=this[Ra("0x10e")].createPositionAt(n.end[Ra("0x23")],Ra("0xcb")),c=this[Ra("0x10e")][Ra("0xe3")](a,o[Ra("0xc9")]);this[Ra("0x35")](x,r,i,c)}else if(o[Ra("0x5c")](n.start)){const e=this[Ra("0x10e")][Ra("0x41")](n[Ra("0xd8")].nodeBefore,Ra("0xc9"));this[Ra("0xa2")](t,this[Ra("0x10e")][Ra("0xe3")](o.start,e))}else{const e=this[Ra("0x10e")][Ra("0x41")](n[Ra("0xc9")][Ra("0x23")],Ra("0xcb"));this[Ra("0xa2")](t,this[Ra("0x10e")].createRange(e,o[Ra("0xc9")]))}}_rangeIsInLocalUserInsertion(t){for(const{suggestion:e,meta:n}of this[Ra("0xab")](t,Ra("0xb6"))){if(!n[Ra("0x26")])continue;const o=e[Ra("0x2")]();for(const e of o)if(!t[Ra("0xa8")](e)[Ra("0xb4")])return!0}return!1}[Ra("0x24")](t){const n=this.editor[Ra("0x100")][Ra("0xa0")](Ra("0xde")).getUser(t);if(!n)throw new e.CKEditorError(Ra("0x4"),this);return n}[Ra("0x10")](t){const e=this[Ra("0x11f")][Ra("0x100")][Ra("0xa0")]("Users"),n=(0,r.hashObject)(Ra("0x33")+t);return e.getUser(n)||e[Ra("0xa9")]({id:n,name:t})}_createSuggestion(t,e,n,o,s){const r=this[Ra("0x24")](o),i=this._suggestionFactory[Ra("0xbb")](t,e,n,r,s,(t=>this[Ra("0x32")](n,{attributes:t})));return this.listenTo(i,Ra("0xc5"),(()=>{this._updateSuggestionData(n,{state:Ra("0xfc")})}),{priority:Ra("0xb8")}),this[Ra("0x56")](i,Ra("0x82"),(()=>{this[Ra("0x32")](n,{state:"rejected"})}),{priority:"high"}),this[Ra("0x3a")][Ra("0x42")](n,i),this[Ra("0x13")][Ra("0x42")](i,"notReady"),i}_splitMarkerName(t){const e=t.split(":");return{group:e[0],type:e[1],subType:e.length>=5?e[2]:null,id:e[Ra("0xb4")]<5?e[2]:e[3],authorId:e[Ra("0xb4")]<5?e[3]:e[4],markerCount:6==e[Ra("0xb4")]?e[5]:null}}_breakSuggestionMarker(t,n,o){const s=t.getFirstRange(),r=s[Ra("0xd8")],i=s.end;this[Ra("0xa2")](t,this[Ra("0x10e")][Ra("0xe3")](r,n));const x=(0,e.uid)(),a=t[Ra("0x59")].id,c=t[Ra("0x1c")]+(t[Ra("0x55")]?":"+t[Ra("0x55")]:"");this[Ra("0x10b")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[Ra("0xbc")],data:t.data}),Ra("0x84")==t.type&&(o=this[Ra("0x10e")][Ra("0x2c")](o[Ra("0x23")])),this[Ra("0x35")](c,x,a,this[Ra("0x10e")][Ra("0xe3")](o,i))}[Ra("0xab")](t,e=null){const n=[],o=this._model[Ra("0x2b")],s=this.editor[Ra("0x100")][Ra("0xa0")](Ra("0xde")).me;for(const r of this[Ra("0xc7")]())if(r.isInContent&&(!e||r.type==e))for(const e of r.getRanges()){const i=t[Ra("0xd8")][Ra("0x4a")](e.end)||t[Ra("0xc9")][Ra("0x4a")](e[Ra("0xd8")]);if(i||t[Ra("0xb1")](e)){const x=t[Ra("0x64")](e)&&Sa(o,e[Ra("0xd8")],t),a=e.containsRange(t)&&Sa(o,t[Ra("0xd8")],e);n[Ra("0xd7")]({suggestion:r,meta:{isOwn:s==r[Ra("0x5e")],isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}[Ra("0x35")](t,e,n,o,s=null){this[Ra("0x10e")].change((r=>{let i="suggestion:"+t+":"+e+":"+n;s&&(i=i+":"+s),r[Ra("0x122")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[Ra("0xdb")](t){const e=t[Ra("0x3e")],n=t[Ra("0xd1")];t[Ra("0x3e")]=null,null!=e&&(e[Ra("0xd1")]=null),t[Ra("0xd1")]=null,null!=n&&(n[Ra("0x3e")]=null),Ra("0xbe")==this[Ra("0x13")][Ra("0xa0")](t)&&(this[Ra("0x13")][Ra("0x42")](t,Ra("0x6c")),this.fire(Ra("0x115"),t,e,n))}[Ra("0x10b")](t){const n=t.id,o=this.addSuggestionData(t);if(this[Ra("0xcf")]&&this[Ra("0xcf")][Ra("0x60")]){const s=this.editor[Ra("0x100")].get(Ra("0xae")),r=o[Ra("0xb3")],i=o[Ra("0x55")]?o.type+":"+o.subType:o.type,x=this.editor[Ra("0x113")],a=s[Ra("0xd2")](Yo(x,Ra("0xf7"))),c={id:n,type:i,hasComments:r,data:t[Ra("0x1a")]||null,originalSuggestionId:t[Ra("0xe8")]||null,attributes:o.attributes};this[Ra("0xcf")][Ra("0x60")](c)[Ra("0x94")]((t=>{o[Ra("0xa3")]=!0,s[Ra("0xfb")](a),t&&t[Ra("0x12b")]&&(this._suggestions[Ra("0xa0")](n).createdAt=t[Ra("0x12b")])}))[Ra("0x20")]((t=>{throw(0,e.logWarning)(Ra("0xe1")),this[Ra("0x11f")][Ra("0xf9")].enqueueChange({isUndoable:!1},(()=>{o.discard()})),o.stopListening(),this[Ra("0x3a")][Ra("0x87")](o.id),this._suggestionState.delete(o),t}))}return o}[Ra("0x32")](t,e){const n=this[Ra("0x11f")][Ra("0x100")][Ra("0xa0")]("PendingActions"),o=this[Ra("0x3a")][Ra("0xa0")](t);if(this[Ra("0xcf")]&&this[Ra("0xcf")].updateSuggestion)if(o[Ra("0xa3")]){const o=n[Ra("0xd2")](Yo(this.editor.locale,Ra("0xf7")));this[Ra("0xcf")][Ra("0xc8")](t,e).then((()=>{n[Ra("0xfb")](o)}))}else o.on(Ra("0xeb"),(()=>{this[Ra("0x32")](t,e)}))}[Ra("0xed")](t){if(!this[Ra("0xcf")]||!this[Ra("0xcf")][Ra("0x112")])throw new e.CKEditorError("track-changes-adapter-missing-getsuggestion",this);return this[Ra("0xcf")][Ra("0x112")](t)}[Ra("0x1d")](t){const{id:e,type:n,subType:o,authorId:s}=this[Ra("0x96")](t),r=this[Ra("0x3a")][Ra("0xa0")](e)||this._createSuggestion(n,o,e,s);switch(this._checkSuggestionCorrectness(r,n,o,s),this[Ra("0x13")][Ra("0xa0")](r)){case Ra("0xd6"):this[Ra("0xed")](e)[Ra("0x94")]((t=>{let n=Promise.resolve();t[Ra("0xb3")]&&(n=this._commentsRepository.fetchCommentThread({channelId:this.editor[Ra("0x11d")][Ra("0xa0")](Ra("0x45")),threadId:e})),n[Ra("0x94")]((()=>{this[Ra("0x3d")](t)[Ra("0xa3")]=!0}))})),this._suggestionState[Ra("0x42")](r,Ra("0x4e"));break;case Ra("0x6c"):this[Ra("0x32")](e,{state:Ra("0x4f")});case Ra("0xc"):this[Ra("0x13")][Ra("0x42")](r,Ra("0xbe")),this.fire(Ra("0x16"),r);break;case Ra("0xbe"):this[Ra("0x11a")](Ra("0x107"),r)}return r.addMarkerName(t),r}[Ra("0xf5")](t){const e=Array[Ra("0xc3")](t)[Ra("0x0")]((t=>!t[Ra("0x121")])),n=this[Ra("0xc7")]({skipNotAttached:!0})[Ra("0x0")]((t=>!t.isMultiRange)),o=n.filter((e=>!t[Ra("0x25")](e))),s=new Map(n.map((t=>[t,this[Ra("0x103")][Ra("0xf1")](t.type,t.subType,"chain")]))),r=new Map(n.map((t=>[t,t[Ra("0x10f")]()]))),i=new Set,x=new Set;for(let t=0;t<e[Ra("0xb4")];t++)a(e[t],e,t+1);for(let t=0;t<e[Ra("0xb4")];t++)a(e[t],o,0);for(let t=0;t<e[Ra("0xb4")];t++){const n=e[t];!x[Ra("0x25")](n)&&n.previous&&(n.previous[Ra("0xd1")]===n&&(n[Ra("0x3e")][Ra("0xd1")]=null),n[Ra("0x3e")]=null),!i.has(n)&&n[Ra("0xd1")]&&(n[Ra("0xd1")][Ra("0x3e")]===n&&(n[Ra("0xd1")][Ra("0x3e")]=null),n[Ra("0xd1")]=null)}function a(t,e,n){for(let o=n;o<e[Ra("0xb4")];o++){const n=c(t,e[o]);n&&(n[0][Ra("0xd1")]=n[1],n[1][Ra("0x3e")]=n[0],i.add(n[0]),x[Ra("0xd2")](n[1]))}}function c(t,e){if(t[Ra("0x5e")].id!==e[Ra("0x5e")].id)return null;const n=s[Ra("0xa0")](t)(t,e,r[Ra("0xa0")](t),r.get(e));return n&&s[Ra("0xa0")](e)(t,e,r.get(t),r[Ra("0xa0")](e))?n[1][Ra("0x99")]&&n[1][Ra("0x99")][Ra("0xb4")]?null:n:null}}[Ra("0x43")](t){const e=Array[Ra("0xc3")](t),n=this[Ra("0xc7")]({skipNotAttached:!0}),o=n[Ra("0x0")]((e=>!t.has(e))),s=new Map(e[Ra("0xe4")]((t=>[t,this[Ra("0x103")][Ra("0xf1")](t[Ra("0x1c")],t[Ra("0x55")],Ra("0x76"))]))),r=new Map(n[Ra("0xe4")]((t=>[t,t[Ra("0x2")]()])));for(let t=0;t<e.length;t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[Ra("0xb4")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n[Ra("0xb4")];i++){const o=n[i];if(o[Ra("0x1c")]!==e.type||o[Ra("0x5e")].id!==e[Ra("0x5e")].id||o[Ra("0x55")]!==e[Ra("0x55")])continue;const x=s[Ra("0xa0")](e),a=r[Ra("0xa0")](e),c=r[Ra("0xa0")](o),l=e[Ra("0x99")]&&e[Ra("0x99")][Ra("0xb4")],u=o.commentThread&&o.commentThread[Ra("0xb4")];if(!l&&x(c,a))return t._joinSuggestions(o,e),r[Ra("0x87")](e),!0;if(!u&&x(a,c))return t[Ra("0x57")](e,o),r[Ra("0x87")](o),!0}return!1}}[Ra("0x57")](t,e){if(t[Ra("0x121")])for(const n of e[Ra("0x2")]())t[Ra("0x54")](n);else{const n=e[Ra("0x10f")]()[Ra("0xc9")];this[Ra("0xa2")](t,this[Ra("0x10e")][Ra("0xe3")](t.getFirstRange().start,n))}e.removeMarkers()}}(0,e.mix)(va,e.EmitterMixin);class Ia{constructor(t){this[Ra("0x8")]=t,this[Ra("0x10e")]=t[Ra("0xf9")],this[Ra("0xa6")]=new Map,this[Ra("0x47")]=new Map,this[Ra("0x101")]()}buildSuggestion(t,e,n,o,s,r){return new Zo(this[Ra("0x10e")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[Ra("0xf1")](t,e,Ra("0xc5"))(...n),onDiscard:(...n)=>this[Ra("0xf1")](t,e,Ra("0x82"))(...n)})}[Ra("0x98")](t,e,n,o){const s=t+":"+e+":"+n;this[Ra("0xa6")][Ra("0x42")](s,o)}getSuggestionCallback(t,e,n){const o=t+":"+e+":"+n;return this[Ra("0xa6")][Ra("0xa0")](o)||this._defaultCallbacks[Ra("0xa0")](t+":"+n)}[Ra("0x101")](){const t=()=>{},e=t=>{t[Ra("0x8b")](((t,e)=>t[Ra("0xd8")][Ra("0xad")](e[Ra("0xd8")])?1:-1)),this[Ra("0x10e")][Ra("0xdf")]((e=>{for(const n of t){let t;t=n.end[Ra("0xd5")]&&n[Ra("0xc9")][Ra("0x23")]==n.start[Ra("0x90")]?e[Ra("0xfa")](n.start.nodeAfter,"on"):e.createSelection(n),this._model.deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this._model.change((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[Ra("0xe4")]((t=>(La(t)&&(t=this[Ra("0x10e")].createRange(t.end)),t)))[Ra("0x0")]((t=>"$graveyard"!==t[Ra("0x6f")][Ra("0x95")]));if(r.length<1)return;const x=Array[Ra("0xc3")](this[Ra("0x10e")][Ra("0xb5")][Ra("0xff")][Ra("0x2")]())[Ra("0xe4")]((t=>i.LiveRange.fromRange(t)));n[Ra("0x130")](r);for(const t of this[Ra("0x8")][Ra("0x51")][Ra("0x51")]())t[Ra("0x46")]();s[Ra("0xd7")]({forceDefaultExecution:!0}),this[Ra("0x8")][Ra("0x2d")](o,...s);const a=x[Ra("0x0")]((t=>Ra("0x91")!=t[Ra("0x6f")][Ra("0x95")]));a[Ra("0xb4")]>0&&n[Ra("0x130")](a);for(const t of x)t[Ra("0x8e")]()}))},o=(t,e)=>1==t[Ra("0xb4")]&&1==e[Ra("0xb4")]&&t[0].end[Ra("0x4a")](e[0][Ra("0xd8")]),s=(t,e,n,o)=>Fa(t,e,n,o,this[Ra("0x10e")])?[t,e]:Fa(e,t,o,n,this[Ra("0x10e")])?[e,t]:null;this[Ra("0x47")][Ra("0x42")](Ra("0xc6"),t),this[Ra("0x47")][Ra("0x42")](Ra("0x19"),e),this[Ra("0x47")].set(Ra("0x104"),o),this[Ra("0x47")][Ra("0x42")](Ra("0x78"),s),this._defaultCallbacks[Ra("0x42")](Ra("0x58"),e),this._defaultCallbacks[Ra("0x42")]("deletion:discard",t),this._defaultCallbacks.set("deletion:join",o),this[Ra("0x47")][Ra("0x42")](Ra("0x5b"),s),this[Ra("0x47")][Ra("0x42")](Ra("0x61"),n),this[Ra("0x47")][Ra("0x42")]("formatInline:discard",t),this[Ra("0x47")].set(Ra("0x12f"),o),this[Ra("0x47")][Ra("0x42")]("formatInline:chain",t),this[Ra("0x47")][Ra("0x42")](Ra("0x10d"),n),this._defaultCallbacks[Ra("0x42")](Ra("0x65"),t),this[Ra("0x47")][Ra("0x42")](Ra("0xa"),o),this._defaultCallbacks.set(Ra("0x63"),t)}}function Sa(t,e,n){for(const o of e.parent.getAncestors({includeSelf:!0,parentFirst:!0})){if(o[Ra("0x6f")]==o)return!1;if(!n.containsItem(o))return!1;if(t[Ra("0xdc")](o)||t[Ra("0x5")](o))return!0}}function La(t){return t[Ra("0xc9")][Ra("0x23")]==t.start.nodeAfter&&t.end[Ra("0x80")]}function Ma(t,e,n,o){const s=t=>!t[Ra("0xf3")].is(Ra("0x81"))&&!o[Ra("0xdc")](t.item),r=t[Ra("0xd8")].getLastMatchingPosition(s),i=t[Ra("0xc9")][Ra("0x15")](s,{direction:Ra("0xce")});return!(t[Ra("0xd8")].isEqual(r)&&t[Ra("0xc9")][Ra("0x4a")](i)||(r.isBefore(i)?n[Ra("0xd3")](e,{range:n[Ra("0xe3")](r,i)}):n[Ra("0xef")](e),0))}function Na(t){return(0,r.hashObject)(t)}function wa(t){const e=t[Ra("0xd8")][Ra("0x90")];return e&&e.is(Ra("0x3"))}function Oa(t,e){const n=e[Ra("0x2b")][Ra("0xdc")](t)||e[Ra("0x2b")][Ra("0x69")](t);return e.createRange(e[Ra("0x41")](t,Ra("0x6e")),n?e[Ra("0x111")](t):e.createPositionAt(t,Ra("0xc9")))}function Fa(t,e,n,o,s){if(n[Ra("0xc9")][Ra("0x4a")](o.start))return!0;if(t[Ra("0x1c")]!=e.type)return!1;if(!n[Ra("0xc9")][Ra("0xda")](o.start))return!1;const r=s[Ra("0xe3")](n[Ra("0xc9")],o[Ra("0xd8")])[Ra("0x114")]();for(const t of r)if([Ra("0xf"),"elementEnd"][Ra("0x125")](t.type)&&s[Ra("0x2b")][Ra("0x5")](t[Ra("0xf3")]))return!1;return!0}const Pa=["change:isDirty","_removePendingAction","view","PendingActions","acceptSuggestion","_editor","commentThreadController","listenTo","bind","model","add","locale","get","stopListening","discardSuggestion","_pendingAction","_discardCommand","execute","_acceptCommand","destroy","isDirty","plugins","PENDING_ACTION_SUGGESTION","_setPendingAction","commands","isEnabled"];var Da,Ba;Da=Pa,Ba=227,function(t){for(;--t;)Da.push(Da.shift())}(++Ba);const ja=function(t,e){return Pa[t-=0]};class Ua{constructor(t,e,n,o){this[ja("0x10")]=e,this[ja("0x9")]=n,this.commentThreadController=o,this[ja("0xc")]=t,this[ja("0x19")]=t[ja("0x5")][ja("0x13")]("acceptSuggestion"),this[ja("0x17")]=t[ja("0x5")][ja("0x13")](ja("0x15")),this[ja("0x9")][ja("0xf")](ja("0x6")).to(this[ja("0x19")]),this._pendingAction=null,n[ja("0x1")]&&this[ja("0x4")](),this[ja("0xe")](n,"acceptSuggestion",(()=>this.acceptSuggestion())),this[ja("0xe")](n,ja("0x15"),(()=>this[ja("0x15")]())),this[ja("0xe")](n,ja("0x7"),(()=>{n[ja("0x1")]?this[ja("0x4")]():this[ja("0x8")]()}))}[ja("0xb")](){this._acceptCommand[ja("0x18")](this[ja("0x10")].id)}[ja("0x15")](){this[ja("0x17")][ja("0x18")](this.model.id)}[ja("0x0")](){this[ja("0x9")].unbind(ja("0x6")),this[ja("0x14")](),this[ja("0xd")][ja("0x0")](),this[ja("0x16")]&&this[ja("0x8")]()}[ja("0x4")](){const t=Yo(this[ja("0xc")][ja("0x12")],ja("0x3"));this[ja("0x16")]=this[ja("0xc")][ja("0x2")][ja("0x13")](ja("0xa"))[ja("0x11")](t)}_removePendingAction(){this[ja("0xc")][ja("0x2")][ja("0x13")]("PendingActions").remove(this._pendingAction),this[ja("0x16")]=null}}(0,e.mix)(Ua,e.ObservableMixin);const Ga=["locale","cancel","setData","disabledSubmit","authoredAt","set","removeComment","disableComments","bind","showInput","addComment","isReadOnly","_createCommentViews","delegate","isDirty","element","value","submit","destroy","_model","descriptionParts","length","commentsListView","focus","_config","assign","commentThread","isActive","commentThreadInputView","updateComment","commentInputView","_createCommentThreadInputView"];var Ha,Wa;Ha=Ga,Wa=195,function(t){for(;--t;)Ha.push(Ha.shift())}(++Wa);const Va=function(t,e){return Ga[t-=0]};class za extends s.View{constructor(t,e,n,o){super(t),this[Va("0x13")]=null,this[Va("0x19")]=null,this[Va("0x2")](Va("0x18"),!1),this[Va("0x2")](Va("0x1"),e[Va("0x1")]),this[Va("0x5")](Va("0x1")).to(e),this.set(Va("0x11"),[]),this[Va("0x2")]("isDirty",!1),this[Va("0x2")]("isEnabled",!1),this[Va("0x10")]=e,this._localUser=n,this[Va("0x15")]=o,o[Va("0x4")]?this[Va("0x2")](Va("0x12"),1):this._createCommentViews()}focus(){this[Va("0xc")][Va("0x14")]()}[Va("0xf")](){this[Va("0x13")]&&this[Va("0x13")][Va("0xf")](),this[Va("0x19")]&&this[Va("0x19")][Va("0xf")](),super.destroy()}[Va("0x9")](){const{CommentsListView:t}=this[Va("0x15")];this.commentsListView=new t(this[Va("0x1d")],this._model[Va("0x17")],Object[Va("0x16")]({CommentView:this._config.CommentView},this[Va("0x15")])),this[Va("0x13")][Va("0xa")](Va("0x3")).to(this),this[Va("0x13")][Va("0xa")](Va("0x1a")).to(this),this[Va("0x13")][Va("0x5")](Va("0x18")).to(this),this[Va("0x2")](Va("0x12"),this[Va("0x13")][Va("0x12")]+1),this[Va("0x5")](Va("0x12")).to(this[Va("0x13")],Va("0x12"),(t=>t+1)),this[Va("0x19")]=this._createCommentThreadInputView(),this.on(Va("0x3"),(()=>this[Va("0x14")]())),this.bind(Va("0xb")).to(this.commentsListView,"hasDirtyComment",this[Va("0x19")].commentInputView,Va("0xd"),((t,e)=>t||!!e))}[Va("0x1c")](){const{CommentThreadInputView:t}=this._config,e=new t(this[Va("0x1d")],this._localUser,this[Va("0x15")].editorConfig),n=e[Va("0x1b")];return e[Va("0x5")](Va("0x6")).to(this,Va("0x18"),this[Va("0x10")][Va("0x17")],Va("0x8"),n,Va("0xd"),((t,e,n)=>!!n||t&&!e)),n.on(Va("0xe"),((t,e)=>{this.fire(Va("0x7"),e),n.editor[Va("0x1f")]("")})),n.on(Va("0x1e"),(()=>this.focus())),n[Va("0x5")](Va("0x0")).to(this._model[Va("0x17")],"isReadOnly"),e}}const Ka=["commentThread","ck-suggestion--disabled-comments","type","getExternalSuggestionNote","authoredAt","change:description","innerText","isEnabled","ck-annotation__content-wrapper","Discard suggestion","bind","bindTemplate","ck-suggestion__main","check","element","</span>","</p>","description","ck-suggestion__info","setTemplate","_config","ck-suggestion","EXTERNAL_AVATAR","render","time","EXTERNAL_IMPORT_WORD_SUGGESTION","join","extendTemplate","creator","name","div","importWord","EXTERNAL_IMPORT_WORD_AVATAR","push","ck-annotation__info-name","formatDateTime",'<span class="ck-suggestion-color" style="background-color: ',"descriptionParts","acceptButton","ck-annotation__info","<p>","discardButton","_model","value","acceptSuggestion","Accept suggestion","content","EXTERNAL_SUGGESTION","_createButton","innerHTML","title","map","discardSuggestion","disableComments","ck-suggestion--accept","fire","ck-comment__info-time","ck-suggestion__user","isActive","children","_descriptionElement","userView","createElement","isExternal","ck-suggestion-","ck-annotation__user","ck-annotation__main","split","ck-annotation__actions","execute","commentsListView","attributes","locale","span","@external","source","getUserViewNotificationText","ck-suggestion-wrapper--active","ck-annotation","ck-annotation__info-time","ck-comment__external","set","getTemplate"];var qa,Xa;qa=Ka,Xa=132,function(t){for(;--t;)qa.push(qa.shift())}(++Xa);const $a=function(t,e){return Ka[t-=0]};class Qa extends za{constructor(e,n,o,s){super(e,n,o,s),this.set("type",""),this.bind("type").to(this,"descriptionParts",(t=>t&&t[0]?t[0][$a("0x24")]:"")),this[$a("0x2c")]("description").to(this,$a("0x47"),this,"isActive",((t,e)=>{let n="";for(const e of t)n+=$a("0x4a")+Ja(e[$a("0x50")],e.color)+$a("0x32");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[$a("0xb")]=null,this[$a("0x48")]=this[$a("0x52")](Yo(e,$a("0x4f")),t.icons[$a("0x2f")],$a("0x5"),$a("0x4e"),"sw"),this[$a("0x4b")]=this[$a("0x52")](Yo(e,$a("0x2b")),t.icons.cancel,"ck-suggestion--discard",$a("0x3"),"sw"),this[$a("0xc")]=new r.UserView(e,this[$a("0x4c")].author,this[$a("0x1b")]()),this.userView[$a("0x3d")]({attributes:{class:[$a("0x8"),$a("0x10")]}}),this[$a("0x35")](this[$a("0x21")]())}[$a("0x21")](){const t=this[$a("0x2d")],e=[{tag:$a("0x40"),attributes:{class:[$a("0x34"),$a("0x49")]},children:[{tag:$a("0x18"),children:[{text:this.userView[$a("0x3f")]}],attributes:{class:["ck-suggestion__info-name",$a("0x44")]}},{tag:$a("0x3a"),attributes:{datetime:t.to($a("0x26")),class:[$a("0x7"),$a("0x1e")]},children:[{text:t.to($a("0x26"),(t=>this._config[$a("0x45")](t)))}]}]},{tag:"div",attributes:{class:["ck-suggestion__actions",$a("0x13")]},children:[this[$a("0x48")],this[$a("0x4b")]]},{tag:$a("0x40"),attributes:{class:[$a("0x2a")]}}];this[$a("0x4c")][$a("0xe")]&&e[$a("0x43")]({tag:$a("0x40"),attributes:{class:[$a("0x1f")]},children:[{text:this[$a("0x25")]()}]});const n={tag:"div",attributes:{class:["ck-suggestion-wrapper",t.if($a("0x9"),$a("0x1c")),t.to($a("0x24"),(t=>$a("0xf")+t)),this[$a("0x36")][$a("0x4")]&&$a("0x23")],"data-suggestion-id":this[$a("0x4c")].id,"data-thread-id":this[$a("0x4c")][$a("0x22")].id,"data-author-id":this[$a("0x4c")].author.id,tabindex:-1},children:[{tag:$a("0x40"),attributes:{class:[$a("0x37"),$a("0x1d")]},children:[this.userView,{tag:$a("0x40"),attributes:{class:[$a("0x2e"),$a("0x11")]},children:e}]}]};return this[$a("0x15")]&&this.commentThreadInputView&&n[$a("0xa")].push(this[$a("0x15")],this.commentThreadInputView),n}[$a("0x39")](){super[$a("0x39")](),this[$a("0xb")]=this[$a("0x30")].querySelector(".ck-annotation__content-wrapper"),this[$a("0xb")][$a("0x0")]=this[$a("0x33")],this.on($a("0x27"),((t,e,n)=>{this._descriptionElement[$a("0x0")]=n}))}[$a("0x52")](t,e,n,o,r){const i=new s.ButtonView(this[$a("0x17")]);return i[$a("0x20")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[$a("0x3d")]({attributes:{class:n}}),i.on($a("0x14"),(()=>{this[$a("0x6")](o,this[$a("0x4c")].id)})),i[$a("0x2c")]($a("0x29")).to(this),i}getExternalSuggestionNote(){return $a("0x41")===this[$a("0x4c")][$a("0x16")][$a("0x19")][$a("0x1a")]?Yo(this[$a("0x17")],$a("0x3b")):Yo(this[$a("0x17")],$a("0x51"))}[$a("0x1b")](){return this[$a("0x4c")][$a("0xe")]?$a("0x41")===this[$a("0x4c")][$a("0x16")][$a("0x19")].source?Yo(this[$a("0x17")],$a("0x42"),this[$a("0x4c")][$a("0x3e")][$a("0x3f")]):Yo(this.locale,$a("0x38"),this[$a("0x4c")][$a("0x3e")].name):null}}function Ja(t,e){let n="";return n+=t[$a("0x12")]("*")[$a("0x2")](((t,e)=>e%2!=0?'<span class="ck-suggestion-type">'+Za(t)+$a("0x31"):Za(t)))[$a("0x3c")](""),e&&(n+=$a("0x46")+e[$a("0x4d")]+'" title="'+e[$a("0x1")]+'"></span>'),n}function Za(t){const e=document[$a("0xd")]("span");return e[$a("0x28")]=t,e[$a("0x0")]}const Ya=["componentFactory","pluginName","Track changes","delete","unbind","add","TrackChangesUI","get","type","lowest","arrowView","isOn","acceptButton","switchbutton","map","_createUIButton","source","destroy","refreshSelectedViews","discardAllSuggestions","CommentsRepository","change:activeAnnotations","Annotations","push","_handleControllerBuffer","stopListening","focus","commentThread","editor","createAnnotation","isEnabled","_updateController","commandName","hasSuggestion","Accept all suggestions","model","change:previous","isInContent","_handleSuggestionControllerDelayed","Discard all selected suggestions","_refreshActiveMarkers","clear","config","descriptionParts","suggestion-","_suggestionToController","TrackChangesEditing","editing","isDirty","reduce","_destroyController","addSourceCollector","suggestionChanged","bind","view","init","length","CommentsUI","_descriptionFactory","Accept all selected suggestions","innerView","comments","suggestionUnloaded","getMarkerNames","EditorAnnotations","createCommentThreadController","getDescriptions","trackChanges.disableComments","value","define","from","mainView","head","_viewToController","SuggestionThreadView","locale","isMultiRange","getSuggestion","_disableComments","registerAnnotation","acceptAllSuggestions","activeAnnotations","has","listenTo","size","button","addComment","set","keys","discardButton","actionView","_annotationViews","getRanges","createAnnotationView","commands","plugins","Discard all suggestions","getMarkers","toMany","acceptSelectedSuggestions","values","execute","trackChanges","buttonView","filter","getAllAdjacentSuggestions","previous","comments.maxCommentsWhenCollapsed","some"];var tc,ec;tc=Ya,ec=306,function(t){for(;--t;)tc.push(tc.shift())}(++ec);const nc=function(t,e){return Ya[t-=0]};class oc extends t.Plugin{static get requires(){return[va,r.Users,"CommentsRepository",nc("0x2b"),"EditorAnnotations"]}static get[nc("0x16")](){return nc("0x1b")}constructor(t){super(t),this[nc("0x42")]=new Map,this[nc("0x5e")]=new Map,this[nc("0x3")]=new Map,this._handleControllerBuffer=new Map;const e=this.editor[nc("0x3f")];e[nc("0x5a")]("trackChanges.SuggestionThreadView",Qa),e.define("trackChanges.disableComments",!1),this[nc("0x63")]=e[nc("0x1c")](nc("0x58"))}[nc("0x3b")](t,e){0===this._handleControllerBuffer[nc("0x69")]&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this[nc("0x42")].has(t);n||e?n&&e&&this[nc("0x47")](t):this._initializeController(t)}this[nc("0x31")][nc("0x7")].get("EditorAnnotations")[nc("0x27")](),this[nc("0x3d")](),this[nc("0x2d")][nc("0x3e")]()}),10),this[nc("0x2d")][nc("0x6c")](t,e)}[nc("0x4c")](){const t=this.editor,e=t[nc("0x7")].get(va),n=t.plugins[nc("0x1c")](nc("0x2b")),o=t[nc("0x7")][nc("0x1c")](nc("0x55")),s=t[nc("0x7")][nc("0x1c")](nc("0x29"));t.ui[nc("0x15")][nc("0x1a")](nc("0xe"),(t=>this[nc("0x24")](t))),o[nc("0x48")]((()=>{const t=[];for(const[e,n]of Array.from(this[nc("0x42")])){const o=e[nc("0x11")](),s=[];for(const t of o){if(!t[nc("0x3a")])continue;if(t[nc("0x61")]){s.push(...t[nc("0x4")]());continue}const e=t.getFirstRange();if(s[nc("0x4d")]>0){const t=s[0].getJoined(e);if(t){s[0]=t;continue}}s[nc("0x2c")](e)}t[nc("0x2c")]([n.view,s])}return t})),this[nc("0x68")](e,"suggestionLoaded",((t,e)=>{this[nc("0x68")](e,nc("0x39"),((t,n,o,s)=>{e[nc("0x3a")]&&(null==o?(this[nc("0x34")](s[nc("0x5d")]),this[nc("0x3b")](e,!1)):(this[nc("0x34")](o[nc("0x5d")]),this[nc("0x3b")](e,!0)))})),null===e[nc("0x12")]?this._handleSuggestionControllerDelayed(e,!1):this[nc("0x34")](e[nc("0x5d")])})),this[nc("0x68")](e,nc("0x53"),((t,e,n)=>{this[nc("0x2e")](e,nc("0x39")),this[nc("0x2d")][nc("0x18")](e);const o=n?n[nc("0x5d")]:e,s=this[nc("0x42")][nc("0x1c")](o);null!==n&&this[nc("0x34")](o),null===n&&s&&this._destroyController(e)})),this[nc("0x68")](e,nc("0x49"),((t,e)=>{this[nc("0x34")](e)})),this.listenTo(n,nc("0x2a"),(()=>{this[nc("0x3d")]()})),this[nc("0x68")](s,nc("0x6b"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[nc("0x36")](n))return;const s=e[nc("0x62")](n);this[nc("0x42")][nc("0x1c")](s)[nc("0x4b")].focus()}),{priority:nc("0x1e")})}[nc("0x3d")](){const t=this[nc("0x31")].plugins[nc("0x1c")](nc("0x2b")),e=this[nc("0x31")][nc("0x7")].get(va),n=Array[nc("0x5b")](t[nc("0x66")],(t=>t[nc("0x51")]))[nc("0x10")]((t=>this[nc("0x5e")].has(t))),o=[];for(const t of n){const e=this[nc("0x5e")].get(t)[nc("0x38")][nc("0x11")]();o.push(...e[nc("0x46")](((t,e)=>[...t,...e[nc("0x54")]()]),[]))}e.activeMarkers=o}[nc("0x24")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[nc("0x31")][nc("0x6")][nc("0x1c")](nc("0xe")),r=Yo(t,nc("0x17"));n[nc("0xf")][nc("0x6c")]({tooltip:r,label:r,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[nc("0xf")][nc("0x4a")](nc("0x20")).to(o,nc("0x59")),n[nc("0xf")].on(nc("0xd"),(()=>{o[nc("0xd")](),this.editor[nc("0x44")][nc("0x4b")][nc("0x2f")]()}));const i=new e.Collection,x=[{type:nc("0x22"),model:{withText:!0,label:r,commandName:nc("0xe")}},{type:"separator"},{type:nc("0x6a"),model:{withText:!0,label:Yo(t,nc("0x37")),commandName:nc("0x65")}},{type:nc("0x6a"),model:{withText:!0,label:Yo(t,nc("0x50")),commandName:nc("0xb")}},{type:"button",model:{withText:!0,label:Yo(t,nc("0x8")),commandName:nc("0x28")}},{type:nc("0x6a"),model:{withText:!0,label:Yo(t,nc("0x3c")),commandName:"discardSelectedSuggestions"}}];for(const t of x){const e={type:t.type};if(t[nc("0x38")]){const n=new s.Model(t[nc("0x38")]),o=this.editor.commands[nc("0x1c")](n.commandName);n[nc("0x4a")](nc("0x20"),nc("0x33")).to(o,nc("0x59"),nc("0x33")),e[nc("0x38")]=n}i[nc("0x1a")](e)}(0,s.addListToDropdown)(n,i);const a=x.filter((t=>null!=t.model))[nc("0x23")]((t=>this[nc("0x31")][nc("0x6")][nc("0x1c")](t[nc("0x38")][nc("0x35")])));return n[nc("0xf")][nc("0x2")][nc("0x19")](nc("0x33")),n[nc("0xf")][nc("0x1f")].unbind(nc("0x33")),n[nc("0xf")][nc("0x2")][nc("0x4a")](nc("0x33")).to(o,nc("0x33")),n[nc("0xf")][nc("0x1f")].bind("isEnabled")[nc("0xa")](a,"isEnabled",((...t)=>t[nc("0x14")]((t=>t)))),n.on("execute",(t=>{this[nc("0x31")].execute(t[nc("0x25")].commandName),this[nc("0x31")][nc("0x44")][nc("0x4b")][nc("0x2f")]()})),n}_initializeController(t){const e=this.editor,n=e[nc("0x3f")],o=e[nc("0x7")][nc("0x1c")](nc("0x2b")),s=e[nc("0x7")].get(nc("0x29")),i=e[nc("0x7")][nc("0x1c")](nc("0x55")),x=e[nc("0x7")].get(r.Users).me,a=n[nc("0x1c")](nc("0xe"))[nc("0x5f")],{CommentsListView:c,CommentThreadInputView:l}=e[nc("0x7")][nc("0x1c")](nc("0x4e"));let u,d;this[nc("0x3")].has(t.id)?(d=this[nc("0x3")][nc("0x1c")](t.id),u=d.mainView):(u=new a(e.locale,t,x,{disableComments:this[nc("0x63")],editorConfig:n[nc("0x1c")]("comments.editorConfig"),maxCommentsWhenCollapsed:n.get(nc("0x13")),maxThreadTotalWeight:n[nc("0x1c")]("comments.maxThreadTotalWeight"),maxCommentCharsWhenCollapsed:n.get("comments.maxCommentCharsWhenCollapsed"),formatDateTime:(0,r.getDateTimeFormatter)(n.get(nc("0x60"))),CommentView:n[nc("0x1c")](nc("0x52")).CommentView,CommentsListView:c,CommentThreadInputView:l}),u[nc("0x21")].on(nc("0xd"),(()=>{e[nc("0x44")][nc("0x4b")][nc("0x2f")]()})),u[nc("0x1")].on("execute",(()=>{e[nc("0x44")].view[nc("0x2f")]()})),d=o[nc("0x5")](this.editor.locale,u),d[nc("0x4a")](nc("0x45")).to(u,nc("0x45")),d.bind(nc("0x4d")).to(u),d[nc("0x4a")](nc("0x1d")).to(u,"type",(t=>nc("0x41")+t)),this[nc("0x3")][nc("0x6c")](t.id,d));const g=s[nc("0x56")](t[nc("0x30")],u),f=new Ua(e,t,u,g),m=t[nc("0x11")]()[nc("0x10")]((t=>t[nc("0x3a")]));u[nc("0x40")]=e[nc("0x7")][nc("0x1c")](nc("0x43"))[nc("0x4f")][nc("0x57")](m),this[nc("0x42")][nc("0x6c")](t,f),this._viewToController.set(u,f);const h=o[nc("0x32")]({view:d,target:()=>{const n=[],o=t[nc("0x11")]().filter((t=>t[nc("0x3a")]));for(const t of o)n[nc("0x2c")](...t[nc("0x9")]());return(0,r.getAllMarkersDomElementsSorted)(e[nc("0x44")],n)},type:()=>nc("0x41")+f[nc("0x4b")].type});o.add(h),i[nc("0x64")](h)}[nc("0x47")](t){const e=this[nc("0x31")][nc("0x7")][nc("0x1c")](nc("0x2b")),n=this[nc("0x42")][nc("0x1c")](t),o=n[nc("0x4b")],s=e.getByInnerView(o);s&&e.remove(s),this._suggestionToController[nc("0x18")](t),this[nc("0x5e")][nc("0x18")](o),n[nc("0x26")]()}_updateController(t){if(!t.isInContent||!this[nc("0x42")][nc("0x67")](t))return;const e=this.editor.plugins[nc("0x1c")](nc("0x43")),n=this[nc("0x42")][nc("0x1c")](t),o=t.getAllAdjacentSuggestions();n[nc("0x4b")].descriptionParts=e._descriptionFactory[nc("0x57")](o)}[nc("0x26")](){for(const t of this[nc("0x42")][nc("0x0")]())this[nc("0x47")](t);for(const t of this[nc("0x3")][nc("0xc")]())t[nc("0x5c")].destroy();super.destroy()}}var sc,rc,ic=["TrackChanges","getSuggestions","pluginName","requires","editor","adapter","plugins","Comments","addSuggestionData","get"];sc=ic,rc=496,function(t){for(;--t;)sc.push(sc.shift())}(++rc);var xc=function(t,e){return ic[t-=0]};class ac extends t.Plugin{static get[xc("0x7")](){return[va,oc,xc("0x1")]}static get[xc("0x6")](){return xc("0x4")}set[xc("0x9")](t){this[xc("0x8")][xc("0x0")].get(va)[xc("0x9")]=t}get[xc("0x9")](){return this[xc("0x8")][xc("0x0")][xc("0x3")](va)[xc("0x9")]}addSuggestion(t){return this[xc("0x8")][xc("0x0")].get(va)[xc("0x2")](t)}[xc("0x5")](t){return this.editor.plugins[xc("0x3")](va)[xc("0x5")](t)}getSuggestion(t){return this[xc("0x8")][xc("0x0")].get(va).getSuggestion(t)}}const cc=["data","_adapter","find","getUser","get","init","names","editorCreator","config","plugins","TrackChangesEditing","WordCount","execute","reduce","trackChangesData","discardAllSuggestions","push","initialData","RevisionTracker","concat","create","extraPlugins","map","CommentsRepository","acceptAllSuggestions","includes","trackChangesData.editorCreator","model","TrackChangesDataGetter","getDataWithDiscardedSuggestions","Users","every","addSuggestionData","result","users","set","document","string","WebSocketGateway","getSuggestions","editor","appendChild","Pagination","destroy","pluginName","builtinPlugins","context","useAnonymousUser","requires","TrackChangesData","define","toolbar","function","getDataWithAcceptedSuggestions"];var lc,uc;lc=cc,uc=354,function(t){for(;--t;)lc.push(lc.shift())}(++uc);const dc=function(t,e){return cc[t-=0]},gc=[dc("0x29"),dc("0x10"),dc("0x15")],fc=[dc("0x8"),dc("0x2a"),"Autosave",dc("0x23"),dc("0xc")];class mc extends t.Plugin{static get requires(){return[va]}static get pluginName(){return dc("0x13")}[dc("0x1d")](){const t=this[dc("0xa")];if(t[dc("0x20")][dc("0x14")](dc("0x32"),(e=>t.constructor[dc("0x2c")]("",e))),dc("0x16")!=typeof t[dc("0x20")][dc("0x1c")]("trackChangesData")[dc("0x1f")])throw new e.CKEditorError("track-changes-data-invalid-editor-creator")}[dc("0x17")](t){return pc(this.editor,!0,t)}[dc("0x35")](t){return pc(this[dc("0xa")],!1,t)}}class hc extends t.Plugin{static get pluginName(){return dc("0x34")}init(){this[dc("0x3")]="end",this.editor[dc("0x21")][dc("0x1c")](dc("0x2f"))[dc("0x19")]={getCommentThread:()=>new Promise((()=>{}))},this[dc("0xa")][dc("0x21")].get(dc("0x22"))[dc("0x19")]=null}}async function pc(t,e,n){const o=function(t){const e={};for(const n of t[dc("0x20")][dc("0x1e")]())gc[dc("0x31")](n)||(e[n]=t[dc("0x20")][dc("0x1c")](n));const n=t.constructor[dc("0xf")]||[],o=e[dc("0x2d")]||[];delete e.extraPlugins;const s=n[dc("0x2b")](e[dc("0x21")])[dc("0x2b")](o)[dc("0x2e")]((t=>dc("0x7")==typeof t?n[dc("0x1a")]((e=>e.pluginName==t)):t)),r=Array.from(new Set(s)),i=new Map;return e[dc("0x21")]=r.filter((t=>bc(t,i))),e[dc("0x21")][dc("0x28")](hc),e[dc("0x21")].push(va),e}(t),s=document.createDocumentFragment(),r=t[dc("0x20")][dc("0x1c")](dc("0x26"))[dc("0x1f")],i=await r(o,(()=>function(t){const e=document.createElement("div");return t[dc("0xb")](e),e}(s)));!function(t,e){const n=t[dc("0x33")][dc("0x6")].getRootNames()[dc("0x25")](((e,n)=>(e[n]=t.data.get({rootName:n}),e)),{}),o=t.plugins[dc("0x1c")](dc("0x0"))[dc("0x4")][dc("0x2e")]((t=>({id:t.id}))),s=t[dc("0x21")][dc("0x1c")](dc("0x22"))[dc("0x9")]({skipNotAttached:!0,toJSON:!0}),r=e.plugins[dc("0x1c")](dc("0x0")),i=e[dc("0x21")][dc("0x1c")](dc("0x22"));for(const t of o)r[dc("0x1b")](t.id)||r.addUser(t);r.me||r[dc("0x11")]();for(const t of s)i[dc("0x2")](t);e[dc("0x18")][dc("0x5")](n)}(t,i),i[dc("0x24")](dc(e?"0x30":"0x27"));const x=i[dc("0x18")].get(n);return await i[dc("0xd")](),x}function bc(t,e){const n="function"==typeof t?t[dc("0xe")]||t.name:t;if(e.has(n))return e.get(n);if(e.set(n,!0),n&&fc[dc("0x31")](n))return e[dc("0x5")](n,!1),!1;if(!t[dc("0x12")])return e[dc("0x5")](n,!0),!0;const o=t[dc("0x12")][dc("0x1")]((t=>bc(t,e)));return e[dc("0x5")](n,o),o}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
5
+ */(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var r=e[o];if(void 0!==r)return r.exports;var s=e[o]={exports:{}};return t[o](s,s.exports,n),s.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:()=>tl,TrackChanges:()=>pl,TrackChangesData:()=>kl});var t=n(704),e=n(209),r=n(273),s=n(417),i=n(492),x=n(995);const a=["_disableUnsupportedCommands","editor","TrackChangesCommand","execute","_enabledCommands","affectsData","has","clearForceDisabled","_enableCommands","value","commands","refresh","isEnabled"];var c,l;c=a,l=289,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("0x1")]=e,this[u("0x6")]=!1,this[u("0x8")]()}[u("0x8")](){this[u("0x9")]=!0}[u("0x0")](){this[u("0x6")]=!this[u("0x6")],this.value?this[u("0xa")]():this._enableCommands()}[u("0xa")](){for(const t of this[u("0xb")].commands[u("0x7")]())t[u("0x2")]&&!this[u("0x1")][u("0x3")](t)&&t.forceDisabled(u("0xc"))}[u("0x5")](){for(const t of this[u("0xb")].commands[u("0x7")]())t[u("0x2")]&&!this[u("0x1")].has(t)&&t[u("0x4")]("TrackChangesCommand")}}const g=["TrackChangesEditing","plugins","refresh","isEnabled","track-changes-accept-suggestion-not-found","_suggestions","get","acceptSuggestion"];var m,f;m=g,f=302,function(t){for(;--t;)m.push(m.shift())}(++f);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[h("0x7")]=e,this[h("0x4")]()}[h("0x4")](){this[h("0x5")]=!0}execute(t){const n=this[h("0x7")].get(t);if(!n)throw new e.CKEditorError(h("0x6"),this);this.editor[h("0x3")][h("0x0")](h("0x2"))[h("0x1")](n)}}const b=["plugins","TrackChangesEditing","_suggestions","editor","discardSuggestion","execute","isEnabled"];var E,_;E=b,_=191,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class C extends t.Command{constructor(t,e){super(t),this[T("0x0")]=e,this.refresh()}refresh(){this[T("0x4")]=!0}[T("0x3")](t){const n=this[T("0x0")].get(t);if(!n)throw new e.CKEditorError("track-changes-discard-suggestion-not-found",this);this[T("0x1")][T("0x5")].get(T("0x6"))[T("0x2")](n)}}const y=["createRange","add","deletion"," [color ","createPositionAfter","length","replace","isMultiRange","isTouching","isArray","createPositionBefore","join","value","end","content","from","isIntersecting","change","getRange","start","sort","type","color","getRanges","createPositionAt","next","splice","isCollapsed"];var k,A;k=y,A=468,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x0")](((t,e)=>v("0xa")==t[v("0x1")]&&"deletion"!=e[v("0x1")]?-1:v("0xa")!=t[v("0x1")]&&v("0xa")==e[v("0x1")]?1:0))}function I(t,e){let n,o=0;const r=[],s=e.schema;for(;o<t[v("0xd")];){const i=t[o],x=t[o+1];n||(n=e.createPositionBefore(i)),S(e,i,x)||(r.push(e[v("0x8")](n,s.isObject(i)?e[v("0xc")](i):e[v("0x4")](i,v("0x15")))),n=null),o++}return r}function S(t,e,n){if(!n)return!1;const o=t[v("0xc")](e),r=t[v("0x12")](n);return o[v("0x10")](r)}const L=100;function M(t,e,n){for(;n[v("0xd")];){const o=n[v("0x6")](0,L);t[v("0x19")]((()=>{for(const t of o)t.isInContent&&e.execute(t.id)}))}}const N=["isEnabled","some","from","refresh","editor","_command","_suggestions","values"];var w,O;w=N,O=357,function(t){for(;--t;)w.push(w.shift())}(++O);const F=function(t,e){return N[t-=0]};class P extends t.Command{constructor(t,e,n){super(t),this[F("0x0")]=e,this[F("0x1")]=n,this[F("0x6")]()}[F("0x6")](){const t=Array[F("0x5")](this[F("0x1")].values())[F("0x4")]((t=>t.isInContent));this[F("0x3")]=this[F("0x0")][F("0x3")]&&t}execute(){const t=R(Array[F("0x5")](this[F("0x1")][F("0x2")]()));M(this[F("0x7")].model,this[F("0x0")],t)}}const D=["document","_suggestions","selection","_command","isEnabled","refresh","_selectedSuggestions","editor","values","model","from","execute"];var B,j;B=D,j=190,function(t){for(;--t;)B.push(B.shift())}(++j);const U=function(t,e){return D[t-=0]};class G extends t.Command{constructor(t,e,n){super(t),this[U("0x5")]=e,this[U("0x3")]=n,this[U("0x8")]=new Set,this.refresh()}[U("0x7")](){const t=this.editor.model[U("0x2")][U("0x4")],e=Array[U("0x0")](this[U("0x3")][U("0xa")]());this[U("0x8")]=function(t,e){const n=Array[v("0x17")](t[v("0x3")]()),o=new Set;for(const r of e)if(r.isInContent)for(const e of n)for(const n of r.getMarkers()){const s=n[v("0x1a")]();(e[v("0x18")](s)||t[v("0x7")]&&!r[v("0xf")]&&r[v("0x5")]&&s[v("0x15")][v("0x10")](e[v("0x1b")]))&&o[v("0x9")](r)}return o}(t,e),this[U("0x6")]=this[U("0x5")][U("0x6")]&&!!this._selectedSuggestions.size}[U("0x1")](){const t=R(Array[U("0x0")](this[U("0x8")]));M(this[U("0x9")][U("0xb")],this._command,t)}}const H=function(){this.__data__=[],this.size=0};const W=function(t,e){return t===e||t!=t&&e!=e};const V=function(t,e){for(var n=t.length;n--;)if(W(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const K=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 q=function(t){var e=this.__data__,n=V(e,t);return n<0?void 0:e[n][1]};const X=function(t){return V(this.__data__,t)>-1};const $=function(t,e){var n=this.__data__,o=V(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function Q(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])}}Q.prototype.clear=H,Q.prototype.delete=K,Q.prototype.get=q,Q.prototype.has=X,Q.prototype.set=$;const J=Q;const Z=function(){this.__data__=new J,this.size=0};const Y=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const tt=function(t){return this.__data__.get(t)};const et=function(t){return this.__data__.has(t)};const nt="object"==typeof global&&global&&global.Object===Object&&global;var ot="object"==typeof self&&self&&self.Object===Object&&self;const rt=nt||ot||Function("return this")();const st=rt.Symbol;var it=Object.prototype,xt=it.hasOwnProperty,at=it.toString,ct=st?st.toStringTag:void 0;const lt=function(t){var e=xt.call(t,ct),n=t[ct];try{t[ct]=void 0;var o=!0}catch(t){}var r=at.call(t);return o&&(e?t[ct]=n:delete t[ct]),r};var ut=Object.prototype.toString;const dt=function(t){return ut.call(t)};var gt="[object Null]",mt="[object Undefined]",ft=st?st.toStringTag:void 0;const ht=function(t){return null==t?void 0===t?mt:gt:ft&&ft in Object(t)?lt(t):dt(t)};const pt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var bt="[object AsyncFunction]",Et="[object Function]",_t="[object GeneratorFunction]",Tt="[object Proxy]";const Ct=function(t){if(!pt(t))return!1;var e=ht(t);return e==Et||e==_t||e==bt||e==Tt};const yt=rt["__core-js_shared__"];var kt,At=(kt=/[^.]+$/.exec(yt&&yt.keys&&yt.keys.IE_PROTO||""))?"Symbol(src)_1."+kt:"";const vt=function(t){return!!At&&At in t};var Rt=Function.prototype.toString;const It=function(t){if(null!=t){try{return Rt.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var St=/^\[object .+?Constructor\]$/,Lt=Function.prototype,Mt=Object.prototype,Nt=Lt.toString,wt=Mt.hasOwnProperty,Ot=RegExp("^"+Nt.call(wt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Ft=function(t){return!(!pt(t)||vt(t))&&(Ct(t)?Ot:St).test(It(t))};const Pt=function(t,e){return null==t?void 0:t[e]};const Dt=function(t,e){var n=Pt(t,e);return Ft(n)?n:void 0};const Bt=Dt(rt,"Map");const jt=Dt(Object,"create");const Ut=function(){this.__data__=jt?jt(null):{},this.size=0};const Gt=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ht="__lodash_hash_undefined__",Wt=Object.prototype.hasOwnProperty;const Vt=function(t){var e=this.__data__;if(jt){var n=e[t];return n===Ht?void 0:n}return Wt.call(e,t)?e[t]:void 0};var zt=Object.prototype.hasOwnProperty;const Kt=function(t){var e=this.__data__;return jt?void 0!==e[t]:zt.call(e,t)};var qt="__lodash_hash_undefined__";const Xt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=jt&&void 0===e?qt:e,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=Ut,$t.prototype.delete=Gt,$t.prototype.get=Vt,$t.prototype.has=Kt,$t.prototype.set=Xt;const Qt=$t;const Jt=function(){this.size=0,this.__data__={hash:new Qt,map:new(Bt||J),string:new Qt}};const Zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Yt=function(t,e){var n=t.__data__;return Zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const te=function(t){var e=Yt(this,t).delete(t);return this.size-=e?1:0,e};const ee=function(t){return Yt(this,t).get(t)};const ne=function(t){return Yt(this,t).has(t)};const oe=function(t,e){var n=Yt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function re(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])}}re.prototype.clear=Jt,re.prototype.delete=te,re.prototype.get=ee,re.prototype.has=ne,re.prototype.set=oe;const se=re;var ie=200;const xe=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Bt||o.length<ie-1)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new se(o)}return n.set(t,e),this.size=n.size,this};function ae(t){var e=this.__data__=new J(t);this.size=e.size}ae.prototype.clear=Z,ae.prototype.delete=Y,ae.prototype.get=tt,ae.prototype.has=et,ae.prototype.set=xe;const ce=ae;const le=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ue=function(){try{var t=Dt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const de=function(t,e,n){"__proto__"==e&&ue?ue(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var ge=Object.prototype.hasOwnProperty;const me=function(t,e,n){var o=t[e];ge.call(t,e)&&W(o,n)&&(void 0!==n||e in t)||de(t,e,n)};const fe=function(t,e,n,o){var r=!n;n||(n={});for(var s=-1,i=e.length;++s<i;){var x=e[s],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),r?de(n,x,a):me(n,x,a)}return n};const he=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const pe=function(t){return null!=t&&"object"==typeof t};var be="[object Arguments]";const Ee=function(t){return pe(t)&&ht(t)==be};var _e=Object.prototype,Te=_e.hasOwnProperty,Ce=_e.propertyIsEnumerable;const ye=Ee(function(){return arguments}())?Ee:function(t){return pe(t)&&Te.call(t,"callee")&&!Ce.call(t,"callee")};const ke=Array.isArray;const Ae=function(){return!1};var ve="object"==typeof exports&&exports&&!exports.nodeType&&exports,Re=ve&&"object"==typeof module&&module&&!module.nodeType&&module,Ie=Re&&Re.exports===ve?rt.Buffer:void 0;const Se=(Ie?Ie.isBuffer:void 0)||Ae;var Le=9007199254740991,Me=/^(?:0|[1-9]\d*)$/;const Ne=function(t,e){var n=typeof t;return!!(e=null==e?Le:e)&&("number"==n||"symbol"!=n&&Me.test(t))&&t>-1&&t%1==0&&t<e};var we=9007199254740991;const Oe=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=we};var Fe={};Fe["[object Float32Array]"]=Fe["[object Float64Array]"]=Fe["[object Int8Array]"]=Fe["[object Int16Array]"]=Fe["[object Int32Array]"]=Fe["[object Uint8Array]"]=Fe["[object Uint8ClampedArray]"]=Fe["[object Uint16Array]"]=Fe["[object Uint32Array]"]=!0,Fe["[object Arguments]"]=Fe["[object Array]"]=Fe["[object ArrayBuffer]"]=Fe["[object Boolean]"]=Fe["[object DataView]"]=Fe["[object Date]"]=Fe["[object Error]"]=Fe["[object Function]"]=Fe["[object Map]"]=Fe["[object Number]"]=Fe["[object Object]"]=Fe["[object RegExp]"]=Fe["[object Set]"]=Fe["[object String]"]=Fe["[object WeakMap]"]=!1;const Pe=function(t){return pe(t)&&Oe(t.length)&&!!Fe[ht(t)]};const De=function(t){return function(e){return t(e)}};var Be="object"==typeof exports&&exports&&!exports.nodeType&&exports,je=Be&&"object"==typeof module&&module&&!module.nodeType&&module,Ue=je&&je.exports===Be&&nt.process;const Ge=function(){try{var t=je&&je.require&&je.require("util").types;return t||Ue&&Ue.binding&&Ue.binding("util")}catch(t){}}();var He=Ge&&Ge.isTypedArray;const We=He?De(He):Pe;var Ve=Object.prototype.hasOwnProperty;const ze=function(t,e){var n=ke(t),o=!n&&ye(t),r=!n&&!o&&Se(t),s=!n&&!o&&!r&&We(t),i=n||o||r||s,x=i?he(t.length,String):[],a=x.length;for(var c in t)!e&&!Ve.call(t,c)||i&&("length"==c||r&&("offset"==c||"parent"==c)||s&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Ne(c,a))||x.push(c);return x};var Ke=Object.prototype;const qe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Ke)};const Xe=function(t,e){return function(n){return t(e(n))}};const $e=Xe(Object.keys,Object);var Qe=Object.prototype.hasOwnProperty;const Je=function(t){if(!qe(t))return $e(t);var e=[];for(var n in Object(t))Qe.call(t,n)&&"constructor"!=n&&e.push(n);return e};const Ze=function(t){return null!=t&&Oe(t.length)&&!Ct(t)};const Ye=function(t){return Ze(t)?ze(t):Je(t)};const tn=function(t,e){return t&&fe(e,Ye(e),t)};const en=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var nn=Object.prototype.hasOwnProperty;const on=function(t){if(!pt(t))return en(t);var e=qe(t),n=[];for(var o in t)("constructor"!=o||!e&&nn.call(t,o))&&n.push(o);return n};const rn=function(t){return Ze(t)?ze(t,!0):on(t)};const sn=function(t,e){return t&&fe(e,rn(e),t)};var xn="object"==typeof exports&&exports&&!exports.nodeType&&exports,an=xn&&"object"==typeof module&&module&&!module.nodeType&&module,cn=an&&an.exports===xn?rt.Buffer:void 0,ln=cn?cn.allocUnsafe:void 0;const un=function(t,e){if(e)return t.slice();var n=t.length,o=ln?ln(n):new t.constructor(n);return t.copy(o),o};const dn=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const gn=function(t,e){for(var n=-1,o=null==t?0:t.length,r=0,s=[];++n<o;){var i=t[n];e(i,n,t)&&(s[r++]=i)}return s};const mn=function(){return[]};var fn=Object.prototype.propertyIsEnumerable,hn=Object.getOwnPropertySymbols;const pn=hn?function(t){return null==t?[]:(t=Object(t),gn(hn(t),(function(e){return fn.call(t,e)})))}:mn;const bn=function(t,e){return fe(t,pn(t),e)};const En=function(t,e){for(var n=-1,o=e.length,r=t.length;++n<o;)t[r+n]=e[n];return t};const _n=Xe(Object.getPrototypeOf,Object);const Tn=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)En(e,pn(t)),t=_n(t);return e}:mn;const Cn=function(t,e){return fe(t,Tn(t),e)};const yn=function(t,e,n){var o=e(t);return ke(t)?o:En(o,n(t))};const kn=function(t){return yn(t,Ye,pn)};const An=function(t){return yn(t,rn,Tn)};const vn=Dt(rt,"DataView");const Rn=Dt(rt,"Promise");const In=Dt(rt,"Set");const Sn=Dt(rt,"WeakMap");var Ln="[object Map]",Mn="[object Promise]",Nn="[object Set]",wn="[object WeakMap]",On="[object DataView]",Fn=It(vn),Pn=It(Bt),Dn=It(Rn),Bn=It(In),jn=It(Sn),Un=ht;(vn&&Un(new vn(new ArrayBuffer(1)))!=On||Bt&&Un(new Bt)!=Ln||Rn&&Un(Rn.resolve())!=Mn||In&&Un(new In)!=Nn||Sn&&Un(new Sn)!=wn)&&(Un=function(t){var e=ht(t),n="[object Object]"==e?t.constructor:void 0,o=n?It(n):"";if(o)switch(o){case Fn:return On;case Pn:return Ln;case Dn:return Mn;case Bn:return Nn;case jn:return wn}return e});const Gn=Un;var Hn=Object.prototype.hasOwnProperty;const Wn=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Hn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Vn=rt.Uint8Array;const zn=function(t){var e=new t.constructor(t.byteLength);return new Vn(e).set(new Vn(t)),e};const Kn=function(t,e){var n=e?zn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var qn=/\w*$/;const Xn=function(t){var e=new t.constructor(t.source,qn.exec(t));return e.lastIndex=t.lastIndex,e};var $n=st?st.prototype:void 0,Qn=$n?$n.valueOf:void 0;const Jn=function(t){return Qn?Object(Qn.call(t)):{}};const Zn=function(t,e){var n=e?zn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};var Yn="[object Boolean]",to="[object Date]",eo="[object Map]",no="[object Number]",oo="[object RegExp]",ro="[object Set]",so="[object String]",io="[object Symbol]",xo="[object ArrayBuffer]",ao="[object DataView]",co="[object Float32Array]",lo="[object Float64Array]",uo="[object Int8Array]",go="[object Int16Array]",mo="[object Int32Array]",fo="[object Uint8Array]",ho="[object Uint8ClampedArray]",po="[object Uint16Array]",bo="[object Uint32Array]";const Eo=function(t,e,n){var o=t.constructor;switch(e){case xo:return zn(t);case Yn:case to:return new o(+t);case ao:return Kn(t,n);case co:case lo:case uo:case go:case mo:case fo:case ho:case po:case bo:return Zn(t,n);case eo:return new o;case no:case so:return new o(t);case oo:return Xn(t);case ro:return new o;case io:return Jn(t)}};var _o=Object.create;const To=function(){function t(){}return function(e){if(!pt(e))return{};if(_o)return _o(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Co=function(t){return"function"!=typeof t.constructor||qe(t)?{}:To(_n(t))};var yo="[object Map]";const ko=function(t){return pe(t)&&Gn(t)==yo};var Ao=Ge&&Ge.isMap;const vo=Ao?De(Ao):ko;var Ro="[object Set]";const Io=function(t){return pe(t)&&Gn(t)==Ro};var So=Ge&&Ge.isSet;const Lo=So?De(So):Io;var Mo=1,No=2,wo=4,Oo="[object Arguments]",Fo="[object Function]",Po="[object GeneratorFunction]",Do="[object Object]",Bo={};Bo[Oo]=Bo["[object Array]"]=Bo["[object ArrayBuffer]"]=Bo["[object DataView]"]=Bo["[object Boolean]"]=Bo["[object Date]"]=Bo["[object Float32Array]"]=Bo["[object Float64Array]"]=Bo["[object Int8Array]"]=Bo["[object Int16Array]"]=Bo["[object Int32Array]"]=Bo["[object Map]"]=Bo["[object Number]"]=Bo[Do]=Bo["[object RegExp]"]=Bo["[object Set]"]=Bo["[object String]"]=Bo["[object Symbol]"]=Bo["[object Uint8Array]"]=Bo["[object Uint8ClampedArray]"]=Bo["[object Uint16Array]"]=Bo["[object Uint32Array]"]=!0,Bo["[object Error]"]=Bo[Fo]=Bo["[object WeakMap]"]=!1;const jo=function t(e,n,o,r,s,i){var x,a=n&Mo,c=n&No,l=n&wo;if(o&&(x=s?o(e,r,s,i):o(e)),void 0!==x)return x;if(!pt(e))return e;var u=ke(e);if(u){if(x=Wn(e),!a)return dn(e,x)}else{var d=Gn(e),g=d==Fo||d==Po;if(Se(e))return un(e,a);if(d==Do||d==Oo||g&&!s){if(x=c||g?{}:Co(e),!a)return c?Cn(e,sn(x,e)):bn(e,tn(x,e))}else{if(!Bo[d])return s?e:{};x=Eo(e,d,a)}}i||(i=new ce);var m=i.get(e);if(m)return m;i.set(e,x),Lo(e)?e.forEach((function(r){x.add(t(r,n,o,r,e,i))})):vo(e)&&e.forEach((function(r,s){x.set(s,t(r,n,o,s,e,i))}));var f=u?void 0:(l?c?An:kn:c?rn:Ye)(e);return le(f||e,(function(r,s){f&&(r=e[s=r]),me(x,s,t(r,n,o,s,e,i))})),x};var Uo=1,Go=4;const Ho=function(t){return jo(t,Uo|Go)};var Wo="[object Symbol]";const Vo=function(t){return"symbol"==typeof t||pe(t)&&ht(t)==Wo};var zo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ko=/^\w*$/;const qo=function(t,e){if(ke(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Vo(t))||(Ko.test(t)||!zo.test(t)||null!=e&&t in Object(e))};var Xo="Expected a function";function $o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(Xo);var n=function(){var o=arguments,r=e?e.apply(this,o):o[0],s=n.cache;if(s.has(r))return s.get(r);var i=t.apply(this,o);return n.cache=s.set(r,i)||s,i};return n.cache=new($o.Cache||se),n}$o.Cache=se;const Qo=$o;var Jo=500;var Zo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Yo=/\\(\\)?/g;const tr=function(t){var e=Qo(t,(function(t){return n.size===Jo&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Zo,(function(t,n,o,r){e.push(o?r.replace(Yo,"$1"):n||t)})),e}));const er=function(t,e){for(var n=-1,o=null==t?0:t.length,r=Array(o);++n<o;)r[n]=e(t[n],n,t);return r};var nr=1/0,or=st?st.prototype:void 0,rr=or?or.toString:void 0;const sr=function t(e){if("string"==typeof e)return e;if(ke(e))return er(e,t)+"";if(Vo(e))return rr?rr.call(e):"";var n=e+"";return"0"==n&&1/e==-nr?"-0":n};const ir=function(t){return null==t?"":sr(t)};const xr=function(t,e){return ke(t)?t:qo(t,e)?[t]:tr(ir(t))};var ar=1/0;const cr=function(t){if("string"==typeof t||Vo(t))return t;var e=t+"";return"0"==e&&1/t==-ar?"-0":e};const lr=function(t,e,n,o){if(!pt(t))return t;for(var r=-1,s=(e=xr(e,t)).length,i=s-1,x=t;null!=x&&++r<s;){var a=cr(e[r]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(r!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=pt(l)?l:Ne(e[r+1])?[]:{})}me(x,a,c),x=x[a]}return t};const ur=function(t,e,n){return null==t?t:lr(t,e,n)};var dr="__lodash_hash_undefined__";const gr=function(t){return this.__data__.set(t,dr),this};const mr=function(t){return this.__data__.has(t)};function fr(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new se;++e<n;)this.add(t[e])}fr.prototype.add=fr.prototype.push=gr,fr.prototype.has=mr;const hr=fr;const pr=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 br=function(t,e){return t.has(e)};var Er=1,_r=2;const Tr=function(t,e,n,o,r,s){var i=n&Er,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=s.get(t),l=s.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=n&_r?new hr:void 0;for(s.set(t,e),s.set(e,t);++u<x;){var m=t[u],f=e[u];if(o)var h=i?o(f,m,u,e,t,s):o(m,f,u,t,e,s);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!pr(e,(function(t,e){if(!br(g,e)&&(m===t||r(m,t,n,o,s)))return g.push(e)}))){d=!1;break}}else if(m!==f&&!r(m,f,n,o,s)){d=!1;break}}return s.delete(t),s.delete(e),d};const Cr=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const yr=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var kr=1,Ar=2,vr="[object Boolean]",Rr="[object Date]",Ir="[object Error]",Sr="[object Map]",Lr="[object Number]",Mr="[object RegExp]",Nr="[object Set]",wr="[object String]",Or="[object Symbol]",Fr="[object ArrayBuffer]",Pr="[object DataView]",Dr=st?st.prototype:void 0,Br=Dr?Dr.valueOf:void 0;const jr=function(t,e,n,o,r,s,i){switch(n){case Pr:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case Fr:return!(t.byteLength!=e.byteLength||!s(new Vn(t),new Vn(e)));case vr:case Rr:case Lr:return W(+t,+e);case Ir:return t.name==e.name&&t.message==e.message;case Mr:case wr:return t==e+"";case Sr:var x=Cr;case Nr:var a=o&kr;if(x||(x=yr),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=Ar,i.set(t,e);var l=Tr(x(t),x(e),o,r,s,i);return i.delete(t),l;case Or:if(Br)return Br.call(t)==Br.call(e)}return!1};var Ur=1,Gr=Object.prototype.hasOwnProperty;const Hr=function(t,e,n,o,r,s){var i=n&Ur,x=kn(t),a=x.length;if(a!=kn(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:Gr.call(e,l)))return!1}var u=s.get(t),d=s.get(e);if(u&&d)return u==e&&d==t;var g=!0;s.set(t,e),s.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,s):o(f,h,l,t,e,s);if(!(void 0===p?f===h||r(f,h,n,o,s):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return s.delete(t),s.delete(e),g};var Wr=1,Vr="[object Arguments]",zr="[object Array]",Kr="[object Object]",qr=Object.prototype.hasOwnProperty;const Xr=function(t,e,n,o,r,s){var i=ke(t),x=ke(e),a=i?zr:Gn(t),c=x?zr:Gn(e),l=(a=a==Vr?Kr:a)==Kr,u=(c=c==Vr?Kr:c)==Kr,d=a==c;if(d&&Se(t)){if(!Se(e))return!1;i=!0,l=!1}if(d&&!l)return s||(s=new ce),i||We(t)?Tr(t,e,n,o,r,s):jr(t,e,a,n,o,r,s);if(!(n&Wr)){var g=l&&qr.call(t,"__wrapped__"),m=u&&qr.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return s||(s=new ce),r(f,h,n,o,s)}}return!!d&&(s||(s=new ce),Hr(t,e,n,o,r,s))};const $r=function t(e,n,o,r,s){return e===n||(null==e||null==n||!pe(e)&&!pe(n)?e!=e&&n!=n:Xr(e,n,o,r,t,s))};const Qr=function(t,e){return $r(t,e)};const Jr=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Zr=function(t,e){for(var n=0,o=(e=xr(e,t)).length;null!=t&&n<o;)t=t[cr(e[n++])];return n&&n==o?t:void 0};const Yr=function(t,e,n){var o=-1,r=t.length;e<0&&(e=-e>r?0:r+e),(n=n>r?r:n)<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var s=Array(r);++o<r;)s[o]=t[o+e];return s};const ts=function(t,e){return e.length<2?t:Zr(t,Yr(e,0,-1))};const es=function(t,e){return e=xr(e,t),null==(t=ts(t,e))||delete t[cr(Jr(e))]};const ns=function(t,e){return null==t||es(t,e)},os=["isIntersecting","size","getMultiRangeId","head","end","decorate","map","getRanges","add","_onAccept","subType","removeMarker","getMarkers","nodeBefore","getItems","_saved","@external","getMarkerNames","author","isMultiRange","commentThread","from","removeAttribute","getAllAdjacentSuggestions","start","change","_model","getFirstMarker","data","setAttribute","next","delete","get","discard","isIntersectingWithRange","getRange","filter","attributes","removeMarkers","createdAt","set","split","previous","clear","_onAttributesChange","nodeAfter","creator","onAttributesChange","hasComments","isInContent","onAccept","_markerNames","push","_onDiscard","type","getFirstRange","substr","authoredAt","addMarkerName","accept"];var rs,ss;rs=os,ss=110,function(t){for(;--t;)rs.push(rs.shift())}(++ss);const is=function(t,e){return os[t-=0]};class xs{constructor(t,e){this.id=e.id,this[is("0x4")]=e[is("0x4")],this[is("0x14")]=e[is("0x14")]||null,this[is("0x1c")]=e[is("0x1c")],this[is("0x38")]=e[is("0x38")]||e.author,this.isExternal=Boolean(e[is("0x2f")]&&e[is("0x2f")][is("0x1a")]),this[is("0x26")]=null,this[is("0x24")]=t,this[is("0x13")]=e[is("0x0")],this[is("0x3")]=e.onDiscard,this[is("0x36")]=e[is("0x39")],this._markerNames=new Set,this[is("0x31")]=null,this[is("0x32")](is("0x7"),null),this[is("0x32")](is("0x2f"),e[is("0x2f")]||{}),this[is("0x32")](is("0x34"),null),this[is("0x32")](is("0x28"),null),this[is("0x32")](is("0x1e"),null),this.set(is("0x19"),!1),this[is("0xf")](is("0x9")),this[is("0xf")]("discard")}get[is("0xd")](){let t=this;for(;t[is("0x34")];)t=t[is("0x34")];return t}get[is("0x3a")](){return!!this.commentThread&&this[is("0x1e")].length>0}get[is("0x1d")](){return 0!=this[is("0x1")][is("0xb")]&&6==Array[is("0x1f")](this[is("0x1")])[0][is("0x33")](":").length}get[is("0x3b")](){return null!==this[is("0x25")]()}[is("0x8")](t){this[is("0x1")][is("0x12")](t)}[is("0x1b")](){return Array[is("0x1f")](this._markerNames)}[is("0x16")](){return this.getMarkerNames().map((t=>this[is("0x24")].markers[is("0x2a")](t)))[is("0x2e")]((t=>t))}getFirstMarker(){return this[is("0x16")]()[0]||null}[is("0x30")](){this[is("0x24")][is("0x23")]((t=>{for(const e of this.getMarkers())t.removeMarker(e)})),this[is("0x1")][is("0x35")]()}[is("0x15")](t){this[is("0x24")][is("0x23")]((e=>{e[is("0x15")](t)})),this._markerNames[is("0x29")](t)}addRange(t){const e="suggestion:"+this[is("0x4")]+":"+this.subType+":"+this.id+":"+this[is("0x38")].id+":"+xs[is("0xc")]();this[is("0x8")](e),this._model[is("0x23")]((n=>{n.addMarker(e,{range:t,usingOperation:!0,affectsData:!0})}))}[is("0x2c")](t){for(const e of this.getRanges())if(e[is("0xa")](t))return!0;return!1}[is("0x11")](){return this.getMarkers()[is("0x10")]((t=>t[is("0x2d")]()))}getItems(){return this[is("0x11")]().reduce(((t,e)=>[...t,...e[is("0x18")]()]),[])}[is("0x5")](){return this[is("0x25")]()[is("0x2d")]()}getContainedElement(){const t=this.getRanges();if(1!=t.length)return null;const e=t[0],n=e[is("0x22")][is("0x37")],o=e[is("0xe")][is("0x17")];return n instanceof i.Element?n!=o?null:n:null}[is("0x9")](){this[is("0x13")](this[is("0x11")](),this[is("0x26")],this[is("0x2f")]),this[is("0x30")]()}[is("0x2b")](){this[is("0x3")](this[is("0x11")](),this[is("0x26")],this[is("0x2f")]),this[is("0x30")]()}[is("0x21")](){const t=[];let e=this[is("0xd")];for(;e;)t[is("0x2")](e),e=e[is("0x28")];return t}[is("0x27")](t,e){const n=Ho(this[is("0x2f")]);ur(n,t,e),Qr(n,this[is("0x2f")])||(this[is("0x2f")]=n,this[is("0x36")](n))}[is("0x20")](t){const e=Ho(this.attributes);ns(e,t),Qr(e,this[is("0x2f")])||(this[is("0x2f")]=e,this[is("0x36")](this[is("0x2f")]))}toJSON(){return{id:this.id,type:this[is("0x14")]?this.type+":"+this[is("0x14")]:this[is("0x4")],authorId:this.creator.id,createdAt:this[is("0x31")],hasComments:this[is("0x3a")],data:this[is("0x26")],attributes:this[is("0x2f")]}}static getMultiRangeId(){return(0,e.uid)()[is("0x6")](1,5)}}function as(t,e,n){const o=t.t;switch(e){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* change table properties":return o("*Format:* change table properties");case"*Format:* change table cell properties":return o("*Format:* change table cell properties");case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Format:* replace image URL":return o("*Format:* replace image URL");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_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)}}(0,e.mix)(xs,e.ObservableMixin);const cs=["$1 $2","registerDescriptionCallback","push","*Split:* %0","textProxy","Container","isEmpty","start","addObject","_resolveDescriptionItems","elementEnd","get","_customCallbacks","checkChild","getFirstRange","getItemLabel","data","ELEMENT_SPACE","name","_schema","REPLACE_TEXT","match","insertion","function","*Remove:* %0","length","elementStart","removeContainer","Object","getDescriptions","element","text","isEqual","isObject","_itemLabels","end","item","remove","removeEmptyContainer","*Merge:* %0","EmptyContainer","*Insert:* %0","type","softBreak","indexOf","removeObject","quantity","registerElementLabel","_locale","nextSibling","add","_addDescriptionItems","addEmptyContainer","getWalker","matchingCallback","replace","previousSibling","_itemLabelsCallbacks","deletion","$text"];var ls,us;ls=cs,us=304,function(t){for(;--t;)ls.push(ls.shift())}(++us);const ds=function(t,e){return cs[t-=0]};class gs{constructor(t,e){this[ds("0x8")]=[],this[ds("0x1e")]=new Map,this._itemLabelsCallbacks=[],this[ds("0xf")]=t,this._locale=e}[ds("0x19")](t){const e=[];for(let n=0;n<t[ds("0x15")];n++){const o=t[n];if(!o.isInContent)continue;let r=!1;for(const t of this[ds("0x8")]){const n=t(o);if(n){n[ds("0x26")]&&e[ds("0x3a")](n),r=!0;break}}if(!r){this[ds("0x2f")](e,o);const r=t[n+1];if(r&&!o[ds("0xa")]()[ds("0x1f")][ds("0x1c")](r[ds("0xa")]()[ds("0x3")])){const t=e[e[ds("0x15")]-1],n=ds("0x12")==o[ds("0x26")]?ds("0x2e"):"remove";t&&"text"==t[ds("0x26")]&&(t[n]+="\n")}}}return this._resolveDescriptionItems(e)}[ds("0x39")](t){this[ds("0x8")][ds("0x3a")](t)}[ds("0x2b")](t,n,o=e.priorities.normal){ds("0x13")==typeof t?(0,e.insertToPriorityArray)(this[ds("0x35")],{matchingCallback:t,label:n,priority:o}):this[ds("0x1e")].set(t,n)}[ds("0xb")](t,e=1){let n;for(const e of this[ds("0x35")])if(e[ds("0x32")](t)){n=e.label;break}return n||(n=this[ds("0x1e")][ds("0x7")](t[ds("0xe")])),n?n(e):1!==e?e+" "+t[ds("0xe")]+"s":""+t[ds("0xe")]}_addDescriptionItems(t,e){const n=e[ds("0xa")]()[ds("0x31")](),o=ds("0x12")==e[ds("0x26")]?ds("0x2e"):"remove";for(const e of n){const r=e.item,s=t[t[ds("0x15")]-1];if(r.is(ds("0x0")))s&&s[ds("0x26")].indexOf("Container")>-1&&t.pop(),s&&ds("0x1b")==s[ds("0x26")]?s[o]+=r[ds("0xc")]:t[ds("0x3a")]({type:ds("0x1b"),add:ds("0x2e")==o?r[ds("0xc")]:"",remove:ds("0x21")==o?r.data:""});else if(this._schema.isObject(r)){if(s&&s.type[ds("0x28")](ds("0x1"))>-1&&t.pop(),ds("0x6")==e[ds("0x26")])continue;s&&s[ds("0x26")]==o+ds("0x18")&&s[ds("0x1a")].name==r[ds("0xe")]?s[ds("0x2a")]++:t[ds("0x3a")]({type:o+ds("0x18"),element:r,quantity:1}),n.skip((t=>!(ds("0x6")==t[ds("0x26")]&&t[ds("0x20")]==r)))}else if(this._schema[ds("0x9")](r,ds("0x37"))||r.is("element",ds("0x27"))){if(ds("0x2e")==o&&ds("0x16")==e[ds("0x26")]||ds("0x21")==o&&"elementEnd"==e[ds("0x26")])continue;if(s&&-1==s[ds("0x26")][ds("0x28")](ds("0x1"))){ds("0x1b")==s[ds("0x26")]&&(s[o]+="\n");continue}let n;if(n=ds("0x2e")==o?r[ds("0x2d")]&&!this._schema.isObject(r.nextSibling)?r.nextSibling:null:r[ds("0x34")]&&!this[ds("0xf")][ds("0x1d")](r[ds("0x34")])?r[ds("0x34")]:null,r[ds("0x2")]||n&&n.isEmpty){const e=n&&n.isEmpty?n:r;s&&s[ds("0x26")]==o+ds("0x24")&&s[ds("0x1a")][ds("0xe")]==e.name?s.quantity++:t[ds("0x3a")]({type:o+ds("0x24"),element:e,quantity:1})}else t[ds("0x3a")]({type:o+ds("0x1"),element:r})}}}[ds("0x5")](t){const e=this[ds("0x2c")],n=[];for(const o of t){switch(o[ds("0x26")]){case ds("0x1b"):if(o[ds("0x2e")]=o.add[ds("0x33")](/(\S)\u000A+(\S)/g,ds("0x38"))[ds("0x33")](/\u000A/g,""),o[ds("0x21")]=o[ds("0x21")][ds("0x33")](/(\S)\u000A+(\S)/g,ds("0x38")).replace(/\u000A/g,""),""!=o[ds("0x2e")]&&""!=o.remove){n[ds("0x3a")]({type:ds("0x33"),content:as(e,ds("0x10"),['"'+o[ds("0x21")]+'"','"'+o[ds("0x2e")]+'"'])});continue}if(null!=o[ds("0x2e")][ds("0x11")](/^ +$/)){n[ds("0x3a")]({type:ds("0x12"),content:as(e,ds("0x25"),as(e,ds("0xd"),o[ds("0x2e")][ds("0x15")]))});continue}if(null!=o.remove[ds("0x11")](/^ +$/)){n[ds("0x3a")]({type:ds("0x36"),content:as(e,"*Remove:* %0",as(e,"ELEMENT_SPACE",o[ds("0x21")][ds("0x15")]))});continue}if(""!=o.add){n.push({type:ds("0x12"),content:as(e,ds("0x25"),'"'+o[ds("0x2e")]+'"')});continue}n.push({type:"deletion",content:as(e,"*Remove:* %0",'"'+o[ds("0x21")]+'"')});continue;case ds("0x30"):case ds("0x4"):n[ds("0x3a")]({type:"insertion",content:as(e,ds("0x25"),this[ds("0xb")](o[ds("0x1a")],o.quantity))});continue;case ds("0x22"):case ds("0x29"):n[ds("0x3a")]({type:ds("0x36"),content:as(e,ds("0x14"),this[ds("0xb")](o[ds("0x1a")],o[ds("0x2a")]))});continue;case"addContainer":n[ds("0x3a")]({type:ds("0x12"),content:as(e,ds("0x3b"),this[ds("0xb")](o.element,o[ds("0x2a")]))});continue;case ds("0x17"):n[ds("0x3a")]({type:ds("0x36"),content:as(e,ds("0x23"),this[ds("0xb")](o.element,o[ds("0x2a")]))});continue}n.push(o)}return n}}const ms=["_descriptionFactory","schema","alignment","getSelectedBlocks","*Format:* %0","AlignmentEditing","center","plugins","filter","FORMAT_JUSTIFY_TEXT","afterInit","contentLanguageDirection","model","value","FORMAT_ALIGN_TO_CENTER","FORMAT_ALIGN_TO_LEFT","change","getAttribute","markBlockFormat","selection","document","enableCommand","commandParams","format","checkAttribute","justify","left","has","locale"];var fs,hs;fs=ms,hs=290,function(t){for(;--t;)fs.push(fs.shift())}(++hs);const ps=function(t,e){return ms[t-=0]};class bs extends t.Plugin{[ps("0xa")](){const t=this.editor,e=t[ps("0x1c")];if(!t[ps("0x7")][ps("0x1b")](ps("0x5")))return;const n=t[ps("0x7")].get("TrackChangesEditing");n[ps("0x15")]("alignment",((e,o={})=>{let r=o[ps("0xd")];o[ps("0xd")]||(r="ltr"===t[ps("0x1c")][ps("0xb")]?ps("0x1a"):"right");const s=Array.from(this.editor.model[ps("0x14")][ps("0x13")][ps("0x3")]())[ps("0x8")]((t=>function(t,e,n){const o=t[ps("0x11")](ps("0x2"))||null;return e[ps("0x18")](t,"alignment")&&n!=o}(t,this.editor[ps("0xc")][ps("0x1")],r)));t.model[ps("0x10")]((()=>{for(const t of s)n[ps("0x12")](t,{commandName:"alignment",commandParams:[{value:r}]})}))})),n[ps("0x0")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&ps("0x2")==n.commandName){const t=n[ps("0x16")][0][ps("0xd")];return{type:ps("0x17"),content:as(e,ps("0x4"),function(t){switch(t){case ps("0x1a"):return as(e,ps("0xf"));case"right":return as(e,"FORMAT_ALIGN_TO_RIGHT");case ps("0x6"):return as(e,ps("0xe"));case ps("0x19"):return as(e,ps("0x9"))}}(t))}}}))}}const Es=["isBlock","isLimit","getCustomProperty","schema","get","ck-suggestion-marker--active","markerName","isContent","getItems","hasAttribute","span","isAtEnd","toViewElement","consumable","addClass","push","elementEnd","parent","previousPosition","markerRange","writer","mapper","TrackChangesEditing","model","nextSibling","ck-suggestion-marker-","test","item","type","listIndent","name","element","addHighlight","getWalker","bindElementToMarker","toViewPosition","listItem","activeMarkers","plugins","getAttribute"];var _s,Ts;_s=Es,Ts=362,function(t){for(;--t;)_s.push(_s.shift())}(++Ts);const Cs=function(t,e){return Es[t-=0]};function ys(t,e,n){const o=[];for(const r of e[Cs("0x6")]())r[Cs("0x7")](t)&&o[Cs("0xd")](n.createRangeOn(r));return o}function ks(t){const e=[];if(t.is("element","listItem")){let n=t[Cs("0x16")];for(;n&&n.is(Cs("0x1d"),Cs("0x22"))&&n[Cs("0x25")](Cs("0x1b"))>0;)e[Cs("0xd")](n),n=n[Cs("0x16")]}return e}function As(t,e,{showActiveMarker:n=!0}={}){const o=t[Cs("0x24")][Cs("0x2")](Cs("0x14"));return(r,s,i)=>{if(!i[Cs("0xb")][Cs("0x18")](s.markerRange,r[Cs("0x1c")]))return;const x=s[Cs("0x11")][Cs("0x1f")](),a=s[Cs("0x11")].start,c=t[Cs("0x15")][Cs("0x1")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[Cs("0x19")];d=d||c[Cs("0x5")](e);const n=i.mapper[Cs("0xa")](e);if(n&&n[Cs("0x0")](Cs("0x1e")))return;Cs("0xe")==t[Cs("0x1a")]&&c[Cs("0x26")](e)&&!c[Cs("0x27")](e)&&(e[Cs("0x16")]||a[Cs("0x9")]?l&&l[Cs("0xf")]==e||(l=e,m(t[Cs("0x10")]),g=!0):u=u||t[Cs("0x10")])}function m(t){const r=i[Cs("0x12")].createUIElement(Cs("0x8"),{class:Cs("0x17")+e}),x=i[Cs("0x13")][Cs("0x21")](t);n&&o[Cs("0x23")].includes(s[Cs("0x4")])&&i[Cs("0x12")][Cs("0xc")](Cs("0x3"),r),i[Cs("0x12")].insert(x,r),i[Cs("0x13")][Cs("0x20")](r,s[Cs("0x4")])}d||g||!u||m(u)}}const vs=["FORMAT_CODE","isCollapsed","FORMAT_BOLD","FORMAT_SUPERSCRIPT","code","enableCommand","get","StrikethroughEditing","registerDescriptionCallback","UnderlineEditing","*Format:* %0","forceValue","underline","format","toLowerCase","commandName","_descriptionFactory","model","commandParams","getRanges","value","ItalicEditing","selection","italic","FORMAT_UNDERLINE","TrackChangesEditing","has","FORMAT_ITALIC","plugins","subscript","markInlineFormat","from","*Remove format:* %0"];var Rs,Is;Rs=vs,Is=284,function(t){for(;--t;)Rs.push(Rs.shift())}(++Is);const Ss=function(t,e){return vs[t-=0]},Ls=["BoldEditing",Ss("0x1"),Ss("0x16"),"CodeEditing",Ss("0x14"),"SubscriptEditing","SuperscriptEditing"];class Ms extends t.Plugin{afterInit(){const t=this.editor,e=t[Ss("0x1e")],n=t[Ss("0x8")][Ss("0x13")](Ss("0x5")),o=t.locale;for(const o of Ls){if(!t[Ss("0x8")][Ss("0x6")](o))continue;const r=o.slice(0,-7)[Ss("0x1b")](),s=t.commands.get(r);n[Ss("0x12")](r,((t,o={})=>{const i=e.document[Ss("0x2")];if(i[Ss("0xe")])return void t(o);const x=void 0!==o[Ss("0x18")]?o[Ss("0x18")]:!s[Ss("0x0")];e.change((()=>{const t=Array[Ss("0xb")](i[Ss("0x20")]());for(const o of t){const t=x?[o]:ys(r,o,e);for(const e of t)n[Ss("0xa")](e,{commandName:r,commandParams:[{forceValue:x}]})}}))}))}function r(t,e){n[Ss("0x1d")][Ss("0x15")]((n=>{const{data:r}=n;if(r&&r[Ss("0x1c")]===t)return r[Ss("0x1f")][0][Ss("0x18")]?{type:"format",content:as(o,Ss("0x17"),e)}:{type:Ss("0x1a"),content:as(o,Ss("0xc"),e)}}))}r("bold",as(o,Ss("0xf"))),r(Ss("0x3"),as(o,Ss("0x7"))),r(Ss("0x19"),as(o,Ss("0x4"))),r(Ss("0x11"),as(o,Ss("0xd"))),r("strikethrough",as(o,"FORMAT_STRIKETHROUGH")),r(Ss("0x9"),as(o,"FORMAT_SUBSCRIPT")),r("superscript",as(o,Ss("0x10")))}}const Ns=["checkChild","*Format:* %0","parent","has","*Remove format:* %0","schema","selection","commandName","blockQuote","editor","enableCommand","_descriptionFactory","forceValue","get","commandParams","TrackChangesEditing","format","from","ELEMENT_BLOCK_QUOTE","document","BlockQuoteEditing","filter","plugins","commands","getSelectedBlocks","model","locale"];var ws,Os;ws=Ns,Os=327,function(t){for(;--t;)ws.push(ws.shift())}(++Os);const Fs=function(t,e){return Ns[t-=0]};class Ps extends t.Plugin{afterInit(){const t=this.editor,e=t[Fs("0x17")];if(!t[Fs("0x13")][Fs("0x0")](Fs("0x11")))return;const n=t[Fs("0x13")][Fs("0xa")](Fs("0xc")),o=this[Fs("0x6")][Fs("0x14")].get(Fs("0x5"));n[Fs("0x7")]("blockQuote",((e,r={})=>{const s=this[Fs("0x6")][Fs("0x16")][Fs("0x10")][Fs("0x3")],i=r&&void 0!==r.forceValue?r[Fs("0x9")]:!o.value;let x=[];if(i){const e=Array[Fs("0xe")](s[Fs("0x15")]()).filter((t=>Ds(t)||function(t,e){const n=e[Fs("0x18")](t[Fs("0x1a")],Fs("0x5")),o=e[Fs("0x18")](["$root",Fs("0x5")],t);return n&&o}(t,this[Fs("0x6")][Fs("0x16")][Fs("0x2")])));x=I(e,t[Fs("0x16")])}else{const e=Array[Fs("0xe")](s[Fs("0x15")]())[Fs("0x12")]((t=>Ds(t)));x=I(e,t[Fs("0x16")])}t.model.change((()=>{for(const t of x)n.markBlockFormat(t,{commandName:"blockQuote",commandParams:[{forceValue:i}]})}))})),n[Fs("0x8")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&Fs("0x5")==n[Fs("0x4")]){const t=as(e,Fs("0xf"));return n[Fs("0xb")][0][Fs("0x9")]?{type:"format",content:as(e,Fs("0x19"),t)}:{type:Fs("0xd"),content:as(e,Fs("0x1"),t)}}}))}}function Ds(t){return Fs("0x5")==t[Fs("0x1a")].name}const Bs=["editor","enableCommand","commands","get","plugins","ckbox","afterInit"];var js,Us;js=Bs,Us=157,function(t){for(;--t;)js.push(js.shift())}(++Us);const Gs=function(t,e){return Bs[t-=0]};class Hs extends t.Plugin{[Gs("0x3")](){const t=this[Gs("0x4")];t[Gs("0x6")][Gs("0x0")](Gs("0x2"))&&t[Gs("0x1")].get("TrackChangesEditing")[Gs("0x5")]("ckbox")}}const Ws=["config","ELEMENT_CODE_BLOCK","registerElementLabel","value","from","*Format:* %0","formatBlock","codeBlock","filter","CodeBlock","registerDescriptionCallback","forceValue","model","outdentCodeBlock","languages","commandParams","rootElement","schema","format","find","blockName","get","_descriptionFactory","has","plugins","getSelectedBlocks","document","label","enableCommand","*Remove format:* %0","TrackChangesEditing","selection","language","indentCodeBlock"];var Vs,zs;Vs=Ws,zs=329,function(t){for(;--t;)Vs.push(Vs.shift())}(++zs);const Ks=function(t,e){return Ws[t-=0]};class qs extends t.Plugin{afterInit(){const t=this.editor;if(!t.plugins[Ks("0x0")](Ks("0x14")))return;const e=t[Ks("0x1")].get(Ks("0x7")),n=t.locale,o=t[Ks("0xb")][Ks("0x20")](Ks("0x12"))[Ks("0x19")],r=t.commands[Ks("0x20")](Ks("0x12"));e[Ks("0x5")](Ks("0xa")),e[Ks("0x5")](Ks("0x18")),e[Ks("0x5")](Ks("0x12"),((n,s={})=>{const i=t.model,x=t[Ks("0x17")][Ks("0x3")][Ks("0x8")],a=s&&void 0!==s[Ks("0x16")]?s.forceValue:!r[Ks("0xe")];let c;s[Ks("0x9")]||(s[Ks("0x9")]=o[0][Ks("0x9")]),c=a?Array.from(x[Ks("0x2")]())[Ks("0x13")]((t=>{return Xs(t)||(e=t,n=i[Ks("0x1c")],!e.is(Ks("0x1b"))&&!n.isLimit(e)&&n.checkChild(e.parent,Ks("0x12")));var e,n})):Array[Ks("0xf")](x.getSelectedBlocks())[Ks("0x13")]((t=>Xs(t)));const l=I(c,i);i.change((()=>{for(const t of l)e.markBlockFormat(t,{commandName:"codeBlock",commandParams:[{...s,forceValue:a}],formatGroupId:Ks("0x1f")})}))})),e[Ks("0x21")][Ks("0xd")](Ks("0x12"),(t=>as(n,Ks("0xc"),t))),e[Ks("0x21")][Ks("0x15")]((t=>{const{type:e,data:r}=t;if(Ks("0x11")==e&&r&&"codeBlock"==r.commandName){const t=r[Ks("0x1a")][0].language,e=o[Ks("0x1e")]((e=>e[Ks("0x9")]===t))[Ks("0x4")],s=n._t(e);return r[Ks("0x1a")][0].forceValue?{type:Ks("0x1d"),content:as(n,Ks("0x10"),as(n,Ks("0xc"),1)+" ("+s+")")}:{type:Ks("0x1d"),content:as(n,Ks("0x6"),as(n,Ks("0xc"),1))}}}))}}function Xs(t){return Ks("0x12")==t.name}const $s=["afterInit","has","enableCommand","CommentsEditing","addCommentThread"];var Qs,Js;Qs=$s,Js=208,function(t){for(;--t;)Qs.push(Qs.shift())}(++Js);const Zs=function(t,e){return $s[t-=0]};class Ys extends t.Plugin{[Zs("0x2")](){const t=this.editor;t.plugins[Zs("0x3")](Zs("0x0"))&&t.plugins.get("TrackChangesEditing")[Zs("0x4")](Zs("0x1"))}}var ti=n(181);const ei=["merge","deleteForward","delete","uiElement","downcastDispatcher","end","start","plugins","editing","markerName","modifySelection","isCollapsed","buffer","lock","fromRange","high","enqueueChange","TrackChangesEditing","root","commands","enableCommand","$graveyard","selection","addMarker:suggestion:deletion","unit","removeMarker:suggestion:deletion","createRange","mapper","createSelection","init","setSelection","data","get","remove","model"];var ni,oi;ni=ei,oi=217,function(t){for(;--t;)ni.push(ni.shift())}(++oi);const ri=function(t,e){return ei[t-=0]};class si extends t.Plugin{static get requires(){return[ti.Delete]}[ri("0x16")](){const t=this.editor,e=t[ri("0x0")][ri("0x19")](ri("0xa"));e.enableCommand(ri("0x1e"));const n=t[ri("0xc")][ri("0x19")](ri("0x1d"));e[ri("0xd")](ri("0x1d"),((e,o={})=>{const r=t.model[ri("0x15")](t[ri("0x1b")].document[ri("0xf")]);r[ri("0x4")]&&t[ri("0x1b")][ri("0x3")](r,{direction:"forward",unit:o[ri("0x11")]});const s=r.getFirstRange(),x=i.LiveRange[ri("0x7")](s);let a;e(o),a=ri("0xe")==x[ri("0xb")].rootName?t[ri("0x1b")][ri("0x13")](s[ri("0x22")]):t[ri("0x1b")][ri("0x13")](x[ri("0x22")],x[ri("0x21")]),x.detach(),t[ri("0x1b")][ri("0x9")](n.buffer.batch,(t=>{n[ri("0x5")][ri("0x6")](),t[ri("0x17")](t.createRange(a[ri("0x21")])),n[ri("0x5")].unlock()}))})),t[ri("0x1")][ri("0x20")].on(ri("0x10"),As(t,ri("0x1c")),{priority:ri("0x8")}),t[ri("0x18")][ri("0x20")].on("addMarker:suggestion:deletion",((e,n,o)=>{o.options.showSuggestionHighlights&&As(t,ri("0x1c"),{showActiveMarker:!1})(e,n,o)}),{priority:ri("0x8")}),t.editing[ri("0x20")].on(ri("0x12"),((t,e,n)=>{const o=n.mapper.markerNameToElements(e[ri("0x2")]);if(o)for(const t of o)t.is(ri("0x1f"))&&(n[ri("0x14")].unbindElementFromMarkerName(t,e[ri("0x2")]),n.writer[ri("0x1a")](t))}),{priority:ri("0x8")})}}const ii=["nextSibling","value","editor","toUpperCase","listType","start","registerDescriptionCallback","execute","getRanges","createRange","markMultiRangeBlockFormat","selection","createPositionAt","mergeListItemForward","*Outdent:* %0","format","commandParams","TrackChangesEditing","nodeAfter","map","commandName","_LIST","*Format:* remove from %0","registerCustomCallback","isObject","next","splitListItemBefore","getSelectedBlocks","document","parent","ELEMENT_LIST_ITEM","*Change to:* %0","from","accept","get","previousSibling","getFirstRange","documentList","numberedList","model","change","refresh","markBlockFormat","outdentList","indentList","length","setSelection","ELEMENT_","detach","registerElementLabel","plugins","end","findIndex","has","commands","deletion","forceValue","push","fromRange","before","locale","multipleBlocks","isFirstBlockOfListItem","*Format:* insert into %0","afterInit","_descriptionFactory","ELEMENT_BULLETED_LIST","enableCommand","slice","expandListBlocksToCompleteList","after","listItemId","getAttribute","splitListItemAfter","bulletedList","listIndent","*Indent:* %0"];var xi,ai;xi=ii,ai=208,function(t){for(;--t;)xi.push(xi.shift())}(++ai);const ci=function(t,e){return ii[t-=0]};class li extends t.Plugin{[ci("0xa")](){const t=this[ci("0x19")];if(!t[ci("0x49")][ci("0x4c")]("DocumentListEditing"))return;const e=t[ci("0x6")],n=t[ci("0x49")][ci("0x39")](ci("0x28")),o=t[ci("0x49")][ci("0x39")]("DocumentListUtils");function r(e){return()=>{const r=t[ci("0x0")].get(e);let s=Array[ci("0x37")](t[ci("0x3e")].document[ci("0x22")].getSelectedBlocks());if(a(e)){s=o[ci("0xf")](s);const t=[];for(const e of s)o[ci("0x8")](e)&&t[ci("0x3")](e);s=t}t[ci("0x3e")][ci("0x3f")]((()=>{n[ci("0x21")](s,{commandName:e,commandParams:[{forceValue:!r[ci("0x18")]}],formatGroupId:ci("0x1b")},[],"documentList")}))}}function s(e){return()=>{const o=function(t){const e=(t=Array[ci("0x37")](t))[ci("0x4b")]((t=>!t.hasAttribute("listItemId")));return e>-1&&(t=t[ci("0xe")](0,e)),t}(t[ci("0x3e")][ci("0x33")].selection[ci("0x32")]()),r=o[o[ci("0x44")]-1],s=t.model.schema.isObject(r)?ci("0x10"):ci("0x4a"),i=t[ci("0x3e")][ci("0x20")](t.model.createPositionAt(o[0],ci("0x5")),t[ci("0x3e")][ci("0x23")](r,s));t[ci("0x3e")][ci("0x3f")]((()=>{n[ci("0x41")](i,{commandName:e,commandParams:[],formatGroupId:ci("0x1b")},function(t){const e=new Set;for(const n of t){let t=n[ci("0x17")];for(;t&&t[ci("0x12")](ci("0x15"))>n[ci("0x12")](ci("0x15"));)e.add(t),t=t.nextSibling}return Array[ci("0x37")](e)}(o))}))}}function x(e){return()=>{const o=t[ci("0x3e")][ci("0x33")].selection.getSelectedBlocks()[ci("0x30")]()[ci("0x18")],r=t[ci("0x3e")][ci("0x23")](o,ci("0x5")),s=t[ci("0x3e")][ci("0x23")](o,0),i=t[ci("0x3e")].createRange(r,s);t[ci("0x3e")].change((()=>{n.markBlockFormat(i,{commandName:e,commandParams:[],formatGroupId:ci("0x1b")})}))}}function a(e){const n=t.commands[ci("0x39")](ci("0x14")).value,o=t[ci("0x0")][ci("0x39")]("numberedList")[ci("0x18")];return ci("0x3d")===e?n:o}n[ci("0xd")](ci("0x3d"),r(ci("0x3d"))),n[ci("0xd")]("bulletedList",r(ci("0x14"))),n[ci("0xd")]("indentList",s(ci("0x43"))),n[ci("0xd")](ci("0x42"),s(ci("0x42"))),n[ci("0xd")](ci("0x13"),x(ci("0x13"))),n.enableCommand(ci("0x31"),x(ci("0x31"))),n[ci("0xb")][ci("0x48")]((function(e){const n=!t[ci("0x3e")].schema[ci("0x2f")](e),o=e[ci("0x3a")],r=e[ci("0x17")],s=e[ci("0x12")](ci("0x11")),i=!o||o[ci("0x12")](ci("0x11"))!==s,x=!r||r[ci("0x12")](ci("0x11"))!==s;return n&&s&&i&&x}),(t=>as(e,ci("0x35"),t))),n._descriptionFactory[ci("0x1d")]((function(t){const{data:n}=t;if(!n)return;let o,r,s,i;switch(n[ci("0x2b")]){case ci("0x14"):s=n[ci("0x27")][0].forceValue,i=a(n[ci("0x2b")]),o=ci(s?"0x9":"0x2d"),i&&(o=ci("0x36")),r={type:"format",content:as(e,o,as(e,ci("0xc")))};break;case ci("0x3d"):s=n[ci("0x27")][0][ci("0x2")],i=a(n[ci("0x2b")]),o=ci(s?"0x9":"0x2d"),i&&(o=ci("0x36")),r={type:ci("0x26"),content:as(e,o,as(e,"ELEMENT_NUMBERED_LIST"))};break;case"indentList":o=ci("0x16"),r={type:ci("0x26"),content:as(e,o,as(e,ci("0x35")))};break;case ci("0x42"):o=function(t){const e=t[ci("0x3b")]();let n=e.start[ci("0x29")];for(;n&&e.containsItem(n);){if(n[ci("0x12")](ci("0x15"))>0)return!1;n=n[ci("0x17")]}return!0}(t)?as(e,ci("0x2d"),as(e,function(t){const e=t[ci("0x3b")]()[ci("0x1c")][ci("0x29")];return ci("0x46")+e.getAttribute(ci("0x1b"))[ci("0x1a")]()+ci("0x2c")}(t))):as(e,ci("0x25"),as(e,"ELEMENT_LIST_ITEM")),r={type:ci("0x26"),content:o};break;case"mergeListItemBackward":case ci("0x24"):!1===n[ci("0x7")]&&(o="*Merge:* %0",r={type:ci("0x1"),content:as(e,o,as(e,ci("0x35")))})}return r})),n._suggestionFactory[ci("0x2e")]("formatBlock",ci("0x3c"),ci("0x38"),(function(e,n){const o=[];for(let n of e)n[ci("0x1c")].nodeAfter===n[ci("0x4a")][ci("0x34")]&&(n=t[ci("0x3e")][ci("0x20")](t.model.createPositionAt(n.start.nodeAfter,0))),o[ci("0x3")](n);t[ci("0x3e")][ci("0x3f")]((e=>{const r=t[ci("0x3e")].document[ci("0x22")],s=Array[ci("0x37")](r[ci("0x1f")]())[ci("0x2a")]((t=>i.LiveRange[ci("0x4")](t)));e.setSelection(o),t[ci("0x0")][ci("0x39")](n[ci("0x2b")])[ci("0x40")](),n[ci("0x27")][ci("0x3")]({forceDefaultExecution:!0}),t[ci("0x1e")](n[ci("0x2b")],...n[ci("0x27")]),e[ci("0x45")](s);for(const t of s)t[ci("0x47")]()}))}))}}var ui=n(331);const di=["parent","init","end","editor","showSuggestionHighlights","split","editing","enter","downcastDispatcher","requires","markerNameToElements","get","plugins","markerName","addMarker:suggestion:insertion","detach","hasClass","model","document","data","afterExecute","remove","fromRange","mapper","getFirstPosition","enableCommand","getFirstRange","setSelection","high","createPositionAt","selection","createRange","ck-suggestion-marker-split","TrackChangesEditing","removeMarker:suggestion:insertion","change","commands"];var gi,mi;gi=di,mi=399,function(t){for(;--t;)gi.push(gi.shift())}(++mi);const fi=function(t,e){return di[t-=0]};class hi extends t.Plugin{static get[fi("0x11")](){return[ui.Enter]}[fi("0x9")](){const t=this[fi("0xb")],e=t[fi("0x14")][fi("0x13")](fi("0x4")),n=t[fi("0x7")].get(fi("0xf"));e[fi("0x21")](fi("0xf"),(()=>{t[fi("0x19")][fi("0x6")]((o=>{const r=t[fi("0x19")][fi("0x1a")][fi("0x1")],s=r[fi("0x20")](),x=i.LiveRange[fi("0x1e")](r[fi("0x22")]());if(n.enterBlock(o)){const n=t[fi("0x19")][fi("0x0")](s[fi("0x8")].nextSibling,0),r=o.createRange(s,n);e.markInsertion(r)}else o[fi("0x23")](o[fi("0x2")](x[fi("0xa")]));x[fi("0x17")](),n.fire(fi("0x1c"),{writer:o})}))})),t[fi("0xe")].downcastDispatcher.on(fi("0x16"),As(t,fi("0xd")),{priority:"high"}),t[fi("0xe")].downcastDispatcher.on(fi("0x5"),((t,e,n)=>{const o=n[fi("0x1f")][fi("0x12")](e.markerName);if(o)for(const t of o)t[fi("0x18")](fi("0x3"))&&(n[fi("0x1f")].unbindElementFromMarkerName(t,e[fi("0x15")]),n.writer[fi("0x1d")](t))}),{priority:fi("0x24")}),t[fi("0x1b")][fi("0x10")].on(fi("0x16"),((e,n,o)=>{o.options[fi("0xc")]&&As(t,fi("0xd"),{showActiveMarker:!1})(e,n,o)}),{priority:fi("0x24")})}}const pi=["editor","replace","createPositionAt","find","start","FindAndReplaceEditing","enableCommand","end","get","getRange","suggestion:deletion","has","plugins","item","handleFindCommand","getIntersection","string","model","findByTextCallback","_isInDeletionRange","findPrevious","replaceAll","filter","findNext","TrackChangesEditing"];var bi,Ei;bi=pi,Ei=408,function(t){for(;--t;)bi.push(bi.shift())}(++Ei);const _i=function(t,e){return pi[t-=0]};class Ti extends t.Plugin{afterInit(){if(!this[_i("0x11")][_i("0x4")][_i("0x3")](_i("0x16")))return;const t=this[_i("0x11")].plugins[_i("0x0")](_i("0x10"));t[_i("0x17")](_i("0x14"),this[_i("0x6")].bind(this)),t[_i("0x17")](_i("0xf")),t[_i("0x17")](_i("0xc")),t[_i("0x17")](_i("0x12")),t[_i("0x17")](_i("0xd"))}handleFindCommand(t,e,n){const o=this[_i("0x11")][_i("0x4")][_i("0x0")]("FindAndReplaceUtils");void 0!==n&&t((t=>(_i("0x8")==typeof e?o[_i("0xa")](e,n):e)(t)[_i("0xe")]((e=>!1===this[_i("0xb")](e,t[_i("0x5")])))),n)}[_i("0xb")](t,e){const n=this[_i("0x11")][_i("0x9")].createRange(this[_i("0x11")][_i("0x9")][_i("0x13")](e,t[_i("0x15")]),this[_i("0x11")][_i("0x9")][_i("0x13")](e,t[_i("0x18")]));for(const t of this.editor[_i("0x9")].markers.getMarkersGroup(_i("0x2")))if(null!==n[_i("0x7")](t[_i("0x1")]()))return!0;return!1}}const Ci=["*Set font family:* %0","markInlineFormat","toLowerCase","FontBackgroundColorEditing","commandParams","fontSize.options","model","fontBackgroundColor","get","*Reset font background color*","value","afterInit","FontSizeEditing","selection","normalizeSizeOptions","plugins","fontColor.colors","*Set font background color:* %0","_descriptionFactory","editor","trim","fontColor","TrackChangesEditing","from","FontFamilyEditing","config","title","label","format","document","fontFamily","locale","find","_enableCommand","fontSize","commandName","enableCommand","FontColorEditing","getRanges","fontBackgroundColor.colors","change","FontSize","*Set font color:* %0","has","*Set font size:* %0","*Reset font color*"];var yi,ki;yi=Ci,ki=398,function(t){for(;--t;)yi.push(yi.shift())}(++ki);const Ai=function(t,e){return Ci[t-=0]},vi=[{pluginName:Ai("0x1c"),commandName:Ai("0x4")},{pluginName:Ai("0x28"),commandName:Ai("0x0")},{pluginName:Ai("0x7"),commandName:Ai("0x25")},{pluginName:Ai("0x13"),commandName:Ai("0x17")}];class Ri extends t.Plugin{[Ai("0x1b")](){const t=this[Ai("0x23")][Ai("0x1")];for(const{pluginName:t,commandName:e}of vi)this[Ai("0x23")][Ai("0x1f")][Ai("0xd")](t)&&this[Ai("0x3")](e);this[Ai("0x23")][Ai("0x1f")][Ai("0x18")]("TrackChangesEditing")[Ai("0x22")].registerDescriptionCallback((e=>{const{data:n}=e;if(null!=n){if(Ai("0x4")==n.commandName){const e=n.commandParams[0][Ai("0x1a")];if(e){const n=this[Ai("0x23")][Ai("0x1f")][Ai("0x18")](Ai("0xb"))[Ai("0x1e")](this[Ai("0x23")][Ai("0x29")].get(Ai("0x15")))[Ai("0x2")]((t=>t.model==e))[Ai("0x2a")],o=this[Ai("0x23")][Ai("0x1")]._t(n)[Ai("0x12")]();return{type:Ai("0x2c"),content:as(t,Ai("0xe"),o)}}return{type:Ai("0x2c"),content:as(t,"*Reset font size*")}}if(Ai("0x0")==n[Ai("0x5")]){const e=n[Ai("0x14")][0][Ai("0x1a")];return e?{type:Ai("0x2c"),content:as(t,Ai("0x10"),e)}:{type:Ai("0x2c"),content:as(t,"*Reset font family*")}}if(Ai("0x25")==n.commandName){const e=n[Ai("0x14")][0][Ai("0x1a")];if(e){const n=(0,r.normalizeColorOptions)(this[Ai("0x23")][Ai("0x29")][Ai("0x18")](Ai("0x20")))[Ai("0x2")]((t=>t.model==e));let o=e,s="";return n&&(o=n[Ai("0x2b")],s=t._t(o).toLowerCase()),{type:Ai("0x2c"),content:as(t,Ai("0xc"),s).trim(),color:{value:e,title:s||o}}}return{type:"format",content:as(t,Ai("0xf"))}}if(Ai("0x17")==n[Ai("0x5")]){const e=n[Ai("0x14")][0].value;if(e){const n=(0,r.normalizeColorOptions)(this[Ai("0x23")][Ai("0x29")][Ai("0x18")](Ai("0x9")))[Ai("0x2")]((t=>t[Ai("0x16")]==e));let o=e,s="";return n&&(o=n.label,s=t._t(o)[Ai("0x12")]()),{type:"format",content:as(t,Ai("0x21"),s)[Ai("0x24")](),color:{value:e,title:s||o}}}return{type:Ai("0x2c"),content:as(t,Ai("0x19"))}}}}))}[Ai("0x3")](t){const e=this[Ai("0x23")];e[Ai("0x1f")][Ai("0x18")](Ai("0x26"))[Ai("0x6")](t,((n,o={})=>{const r=e.model[Ai("0x2d")][Ai("0x1d")],s=o.value;r.isCollapsed?n(o):e[Ai("0x16")][Ai("0xa")]((()=>{const n=Array[Ai("0x27")](r[Ai("0x8")]());for(const o of n){const n=s?[o]:ys(t,o,e[Ai("0x16")]);for(const o of n)e.plugins[Ai("0x18")](Ai("0x26"))[Ai("0x11")](o,{commandName:t,commandParams:[{value:s}]})}}))}))}}const Ii=["match","registerElementLabel","heading","_descriptionFactory","afterInit","commandParams","from","HeadingEditing","schema","heading.options","enableCommand","ELEMENT_HEADING","ELEMENT_HEADING_CUSTOM","paragraph","registerDescriptionCallback","*Change to:* %0","model","format","selection","config","parent","editor","markBlockFormat","change","document","get","find","name","title","value"];var Si,Li;Si=Ii,Li=493,function(t){for(;--t;)Si.push(Si.shift())}(++Li);const Mi=function(t,e){return Ii[t-=0]};class Ni extends t.Plugin{[Mi("0x15")](){const t=this.editor,e=t.locale,n=t[Mi("0x6")][Mi("0xc")](Mi("0x1a"));if(!t.plugins.has(Mi("0x18")))return;const o=t.plugins.get("TrackChangesEditing");o[Mi("0x1b")](Mi("0x13"),((e,n)=>{const r=n[Mi("0x10")],s=Array[Mi("0x17")](this[Mi("0x8")][Mi("0x3")][Mi("0xb")][Mi("0x5")].getSelectedBlocks()).filter((t=>{return e=t,n=r,(o=this[Mi("0x8")][Mi("0x3")][Mi("0x19")]).checkChild(e[Mi("0x7")],n)&&!o.isObject(e)&&e[Mi("0xe")]!=n;var e,n,o}));t.model[Mi("0xa")]((()=>{for(const t of s)o[Mi("0x9")](t,{commandName:"heading",commandParams:[n],formatGroupId:"blockName"},ks(t))}))}));for(const t of n)Mi("0x0")!=t[Mi("0x3")]&&o[Mi("0x14")][Mi("0x12")](t.model,(e=>{const n=wi(t[Mi("0x3")]);return null!==n?r(e,n):s(e,t.title)}));function r(t,n){return as(e,Mi("0x1c"),[t,n])}function s(t,n){return as(e,Mi("0x1d"),[t,n])}o[Mi("0x14")][Mi("0x1")]((t=>{const{type:o,data:i}=t;if("formatBlock"==o&&i&&Mi("0x13")==i.commandName){const t=i[Mi("0x16")][0][Mi("0x10")],o=wi(t);if(null!==o)return{type:Mi("0x4"),content:as(e,Mi("0x2"),r(1,o))};const x=n[Mi("0xd")]((e=>e[Mi("0x3")]===t))[Mi("0xf")];return{type:Mi("0x4"),content:as(e,"*Change to:* %0",s(1,x))}}}))}}function wi(t){const e=t[Mi("0x11")](/^heading(\d+)$/);return e?e[1]:null}const Oi=["document","getLastMatchingPosition","selection","formatInline","has","registerDescriptionCallback","*Remove highlight*","*Set highlight:* %0","change","model","_descriptionFactory","getAttribute","color","toLowerCase","locale","find","config","enableCommand","editor","afterInit","FORMAT_HIGHLIGHT","HighlightEditing","createRange","push","plugins","commandName","get","format","getRanges","TrackChangesEditing","highlight","highlight.options","title","value","isCollapsed"];var Fi,Pi;Fi=Oi,Pi=300,function(t){for(;--t;)Fi.push(Fi.shift())}(++Pi);const Di=function(t,e){return Oi[t-=0]};class Bi extends t.Plugin{[Di("0x22")](){const t=this[Di("0x21")];if(!t.plugins[Di("0x13")](Di("0x1")))return;const e=t[Di("0x4")][Di("0x6")](Di("0x9"));e[Di("0x20")](Di("0xa"),((n,o={})=>{const r=t[Di("0x18")][Di("0xf")][Di("0x11")],s=r.getAttribute(Di("0xa"));let i=o[Di("0xd")],x=[];if(r[Di("0xe")]){const e=r.getFirstPosition();if(!r.hasAttribute(Di("0xa")))return void n(o);{const n=t=>t.item[Di("0x1a")](Di("0xa"))===s,o=e[Di("0x10")](n,{direction:"backward"}),r=e[Di("0x10")](n);x=[t.model[Di("0x2")](o,r)],i==s&&(i=null)}}else for(const e of r[Di("0x8")]())i?x[Di("0x3")](e):x.push(...ys(Di("0xa"),e,t[Di("0x18")]));t[Di("0x18")][Di("0x17")]((()=>{for(const t of x)e.markInlineFormat(t,{commandName:Di("0xa"),commandParams:[{value:i}]})}))}));const n=t[Di("0x1d")];e[Di("0x19")][Di("0x14")]((e=>{const{type:o,data:r}=e;if(Di("0x12")==o&&r&&Di("0xa")==r[Di("0x5")]){const e=r.commandParams[0][Di("0xd")];if(e){const o=t[Di("0x1f")][Di("0x6")](Di("0xb"))[Di("0x1e")]((t=>t[Di("0x18")]==e)),r=n._t(o[Di("0xc")])[Di("0x1c")]();return{type:"format",content:as(n,Di("0x16"),r),color:{value:o[Di("0x1b")],title:o[Di("0xc")]}}}return{type:Di("0x7"),content:as(n,Di("0x15"),as(n,Di("0x0")))}}}))}}const ji=["dataDowncast","high","TrackChangesEditing","conversion","locale","insert","HorizontalLineEditing","horizontalLine","get","for","addClass","registerElementLabel","enableCommand","createContainerElement","plugins","ck-horizontal-line","editor","elementToStructure"];var Ui,Gi;Ui=ji,Gi=189,function(t){for(;--t;)Ui.push(Ui.shift())}(++Gi);const Hi=function(t,e){return ji[t-=0]};class Wi extends t.Plugin{afterInit(){const t=this[Hi("0x7")];if(!t[Hi("0x5")].has(Hi("0xf")))return;t.plugins[Hi("0x11")](Hi("0xb"))[Hi("0x3")]("horizontalLine");const e=t[Hi("0x5")][Hi("0x11")](Hi("0xb")),n=t[Hi("0xd")];e._descriptionFactory[Hi("0x2")](Hi("0x10"),(t=>as(n,"ELEMENT_HORIZONTAL_LINE",t))),t[Hi("0xc")][Hi("0x0")](Hi("0x9"))[Hi("0x8")]({model:"horizontalLine",view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return;const o=e[Hi("0x4")]("div"),r=e.createEmptyElement("hr");return e[Hi("0x1")](Hi("0x6"),o),e[Hi("0xe")](e.createPositionAt(o,0),r),o},converterPriority:Hi("0xa")})}}const Vi=["TrackChangesEditing","has","htmlEmbed","editing","commandName","element","registerDescriptionCallback","document","getSelectedElement","locale","HtmlEmbed","ELEMENT_HTML_EMBED","enableCommand","value","afterInit","plugins","model","_descriptionFactory","getCustomProperty","cancel","view","selection","registerElementLabel","rawHtml","get"];var zi,Ki;zi=Vi,Ki=245,function(t){for(;--t;)zi.push(zi.shift())}(++Ki);const qi=function(t,e){return Vi[t-=0]};class Xi extends t.Plugin{[qi("0x13")](){const t=this.editor;if(!t.plugins[qi("0x6")](qi("0xf")))return;const e=t[qi("0x14")][qi("0x4")](qi("0x5")),n=t[qi("0xe")],o=t[qi("0x8")][qi("0x0")][qi("0xc")][qi("0x1")];e._descriptionFactory[qi("0x2")](qi("0x3"),(t=>as(n,qi("0x10"),t))),t.plugins[qi("0x4")]("TrackChangesEditing")[qi("0x11")](qi("0x7"),((n,r)=>{const s=t[qi("0x15")],i=s[qi("0xc")][qi("0x1")];s.change((()=>{const t=function(t){const e=t[qi("0xd")]();return e&&e.is(qi("0xa"),"rawHtml")?t[qi("0xd")]():null}(i);if(!t)return void n(null);const s=t.getAttribute(qi("0x12"))||"";void 0!==r&&r!==s&&(e.markBlockFormat(t,{commandName:qi("0x7"),commandParams:[r]}),o.getSelectedElement()[qi("0x17")]("rawHtmlApi")[qi("0x18")]())}))})),e[qi("0x16")][qi("0xb")]((t=>{const{data:e}=t;if(e&&qi("0x7")==e[qi("0x9")]){const t=as(n,"ELEMENT_HTML_EMBED");return{type:"format",content:as(n,"*Change %0 content*",t)}}}))}}const $i=["plugins","filter","refresh","toPrevious","next","isOwn","title","subType","ImageBlockEditing","isInlineImage","afterInit","getClosestSelectedImageElement","suggestion","editor","markDeletion","TrackChangesEditing","*Remove image text alternative*","discard","isBefore","getFirstRange","newValue","newRange","registerCustomCallback","Inline image to block image","ImageStyleEditing","resizeImage","from","getSuggestions","head","registerDescriptionCallback","has","fromPosition","isEqual","imageStylePreApply","value","Users","alt","findIndex","forceDefaultExecution","getChangedMarkers","isBlockImage","ImageTextAlternativeEditing","element","ELEMENT_CAPTION","getContainedElement","imageTypeInline","toLowerCase","createRange","getAttribute","*Reset image width*","getSuggestionCallback","normalizedStyles","end","createRangeOn","isInContent","ImageUtils","imageStylePostApply","width","ImageCaptionEditing","FORMAT_SIDE_IMAGE","markInlineFormat","convertBlockImageToInline","commandName","isIntersecting","type","Block image to inline image","addObject","format","find","commandReversedParams","imageStyle","accept","imageTypeBlock","markInsertion","get","ELEMENT_IMAGE","ImageUploadEditing","markBlockFormat","imageCaption","chain","commandParams","*Format:* %0","schema","toNext","_suggestionFactory","isCollapsed","formatBlock","getSuggestion","start","join","discardSuggestion","previous","ImageCaptionUtils","_splitMarkerName","detach","author","formatInline","getNearestSelectionRange","registerElementLabel","registerPostFixer","backward","convertInlineImageToBlock","locale","ELEMENT_INLINE_IMAGE","enableCommand","document","insertImage","insertion","change","selection","*Set image text alternative:* %0","ImageEditing","imageTextAlternative","_descriptionFactory","length","_findSuggestions","imageBlock","model","getCaptionFromImageModelElement","imageInline","commands","forEach","caption"];var Qi,Ji;Qi=$i,Ji=452,function(t){for(;--t;)Qi.push(Qi.shift())}(++Ji);const Zi=function(t,e){return $i[t-=0]};class Yi extends t.Plugin{[Zi("0x32")](){const t=this[Zi("0x35")];if(!t.plugins[Zi("0x46")](Zi("0x1c")))return;const n=t.plugins[Zi("0x72")](Zi("0x37")),o=t.plugins[Zi("0x72")](Zi("0x5f")),r={},s=t[Zi("0x13")];if(n[Zi("0x15")](Zi("0x17")),n[Zi("0x1e")][Zi("0xf")](Zi("0x21"),(t=>as(s,Zi("0x73"),t))),n[Zi("0x1e")].registerElementLabel(Zi("0x24"),(t=>as(s,Zi("0x14"),t))),n[Zi("0x1e")][Zi("0xf")](Zi("0x27"),(()=>as(s,Zi("0x53")))),t[Zi("0x28")].has(Zi("0x74"))&&n.enableCommand("uploadImage"),t[Zi("0x28")][Zi("0x46")](Zi("0x30"))&&t[Zi("0x28")].has("ImageInlineEditing")&&(n[Zi("0x15")](Zi("0x55"),((e,r)=>{const s=o[Zi("0x33")](t[Zi("0x22")][Zi("0x16")][Zi("0x1a")]);t[Zi("0x22")][Zi("0x19")]((()=>{n[Zi("0x75")](s,{commandName:Zi("0x55"),commandParams:[r]},[],Zi("0x65"))}))})),n[Zi("0x15")](Zi("0x70"),((e,r)=>{t[Zi("0x22")].change((s=>{let x=o[Zi("0x33")](t[Zi("0x22")][Zi("0x16")][Zi("0x1a")]),a=s[Zi("0x5d")](x);const c=i.LivePosition[Zi("0x47")](a[Zi("0x5")],Zi("0x2b")),l=i.LivePosition[Zi("0x47")](a[Zi("0x5c")],Zi("0x0"));n[Zi("0x4e")]((()=>e(r))),x=o.getClosestSelectedImageElement(t[Zi("0x22")].document.selection),a=s[Zi("0x5d")](x);const u=s[Zi("0x57")](c,l);c[Zi("0xb")](),l[Zi("0xb")](),n[Zi("0x75")](x,{commandName:Zi("0x55")},[],"convertInlineImageToBlock"),u[Zi("0x5")].isBefore(a.start)&&n[Zi("0x71")](s[Zi("0x57")](u[Zi("0x5")],a[Zi("0x5")]),Zi("0x12")),a[Zi("0x5c")][Zi("0x3a")](u.end)&&n[Zi("0x71")](s[Zi("0x57")](a[Zi("0x5c")],u.end),Zi("0x12"))}))})),n[Zi("0x1")][Zi("0x3e")](Zi("0x3"),"convertInlineImageToBlock",Zi("0x6"),(()=>{})),n[Zi("0x1")][Zi("0x3e")](Zi("0x3"),Zi("0x12"),"accept",(()=>{})),n._suggestionFactory[Zi("0x3e")](Zi("0x3"),Zi("0x12"),"discard",n[Zi("0x1")][Zi("0x5a")](Zi("0x3"),"","accept")),n[Zi("0x1")].registerCustomCallback(Zi("0x18"),Zi("0x12"),"join",(()=>{})),n[Zi("0x1")][Zi("0x3e")](Zi("0x18"),Zi("0x12"),Zi("0x39"),(([e])=>{const o=n._suggestionFactory.getSuggestionCallback(Zi("0x18"),"",Zi("0x39"));let r=e[Zi("0x5")],s=e[Zi("0x5c")];const i=t[Zi("0x22")][Zi("0x7a")].getNearestSelectionRange(r,Zi("0x11")),x=t[Zi("0x22")][Zi("0x7a")][Zi("0xe")](s,"forward");i.isCollapsed&&(r=i[Zi("0x5")]),x[Zi("0x2")]&&(s=x[Zi("0x5c")]),o([t[Zi("0x22")][Zi("0x57")](r,s)])})),n[Zi("0x1")][Zi("0x3e")](Zi("0x3"),"convertInlineImageToBlock",Zi("0x77"),c),n[Zi("0x1")][Zi("0x3e")]("insertion",Zi("0x12"),Zi("0x77"),c)),t[Zi("0x28")][Zi("0x46")](Zi("0x62"))&&(n.enableCommand("toggleImageCaption",((e,r)=>{const s=t.plugins.get(Zi("0x9"));let i=o[Zi("0x33")](t[Zi("0x22")].document[Zi("0x1a")]),x=s.getCaptionFromImageModelElement(i);t.model[Zi("0x19")]((()=>{if(x)return void n[Zi("0x36")](t.model[Zi("0x5d")](x));const a=o.isBlockImage(i);e(r),i=o[Zi("0x33")](t[Zi("0x22")][Zi("0x16")][Zi("0x1a")]),x=s[Zi("0x23")](i),n.markInsertion(t[Zi("0x22")].createRangeOn(x),a?null:Zi("0x76"))}))})),n[Zi("0x1")][Zi("0x3e")](Zi("0x18"),"imageCaption",Zi("0x77"),c)),t[Zi("0x28")][Zi("0x46")](Zi("0x40"))){n[Zi("0x15")](Zi("0x6e"),((r,s)=>{const i=t[Zi("0x28")][Zi("0x72")](Zi("0x4b")).me,x=t[Zi("0x25")][Zi("0x72")](Zi("0x6e"));let a=o[Zi("0x33")](t[Zi("0x22")][Zi("0x16")].selection),c=t[Zi("0x22")][Zi("0x5d")](a),l=x.value;if(l==s.value)return;const u={commandName:Zi("0x6e"),commandParams:[s],formatGroupId:(0,e.uid)()};t[Zi("0x22")].change((()=>{if(n[Zi("0x43")]()[Zi("0x29")]((t=>t.isInContent&&i==t[Zi("0xc")]&&("formatBlock"==t[Zi("0x68")]||Zi("0xd")==t.type)&&(Zi("0x49")==t[Zi("0x2f")]||Zi("0x60")==t[Zi("0x2f")])&&t.getFirstRange().isEqual(c)))[Zi("0x26")]((t=>n[Zi("0x7")](t[Zi("0x44")]))),a=o[Zi("0x33")](t[Zi("0x22")][Zi("0x16")][Zi("0x1a")]),c=t[Zi("0x22")][Zi("0x5d")](a),x.refresh(),t[Zi("0x25")][Zi("0x72")](Zi("0x55"))[Zi("0x2a")](),t[Zi("0x25")][Zi("0x72")](Zi("0x70"))[Zi("0x2a")](),l=x[Zi("0x4a")],l!=s.value)return o[Zi("0x31")](a)&&x.shouldConvertImageType(s[Zi("0x4a")],a)?(r(s),a=o[Zi("0x33")](t[Zi("0x22")][Zi("0x16")][Zi("0x1a")]),void n[Zi("0x75")](a,{...u,commandReversedParams:[{value:l||null}]},[],"imageStylePreApply")):void(o[Zi("0x50")](a)?n[Zi("0x75")](a,u,[],Zi("0x60")):n[Zi("0x64")](c,u,Zi("0x60")))}))}));for(const e of t[Zi("0x28")].get("ImageStyleEditing")[Zi("0x5b")])r[e.name]=e[Zi("0x2e")][Zi("0x56")]();n[Zi("0x1")][Zi("0x3e")](Zi("0x3"),Zi("0x49"),Zi("0x6"),(()=>{})),n._suggestionFactory[Zi("0x3e")]("formatBlock","imageStylePostApply",Zi("0x6"),(()=>{})),n[Zi("0x1")][Zi("0x3e")]("formatInline",Zi("0x60"),Zi("0x6"),(()=>{})),n[Zi("0x1")][Zi("0x3e")](Zi("0x3"),"imageStylePreApply",Zi("0x6f"),(()=>{})),n[Zi("0x1")][Zi("0x3e")](Zi("0x3"),Zi("0x49"),"discard",((t,e)=>{n[Zi("0x1")][Zi("0x5a")](Zi("0x3"),"",Zi("0x6f"))(t,{commandName:e[Zi("0x66")],commandParams:e[Zi("0x6d")]})})),n[Zi("0x1")].registerCustomCallback(Zi("0x3"),Zi("0x49"),"chain",c)}const x=[{type:Zi("0x3"),subType:Zi("0x49")},{type:Zi("0x18"),subType:"imageCaption"},{type:Zi("0x3"),subType:Zi("0x12")},{type:Zi("0x18"),subType:Zi("0x12")}];function a(t,e){const r=x.findIndex((({type:e,subType:n})=>t[Zi("0x68")]==e&&t.subType==n)),s=x[Zi("0x4d")]((({type:t,subType:n})=>e.type==t&&e.subType==n));if(r<0||s<0)return!1;const i=t[Zi("0x3b")](),a=e[Zi("0x3b")]();if((0==r||1==r)&&2==s&&i[Zi("0x67")](a))return!0;if(2==r&&3==s){const t=n[Zi("0x20")](i,"insertion")[Zi("0x29")]((({suggestion:t,meta:e})=>e[Zi("0x2d")]&&Zi("0x12")==t[Zi("0x2f")]));if(t[Zi("0x1f")]>1&&a[Zi("0x5c")][Zi("0x48")](i.start))return!0;if(1==t[Zi("0x1f")]&&(i[Zi("0x5")][Zi("0x48")](a[Zi("0x5c")])||i[Zi("0x5c")][Zi("0x48")](a[Zi("0x5")])))return!0}if(3==r&&3==s&&i[Zi("0x5")][Zi("0x3a")](a[Zi("0x5")])){const t=i[Zi("0x5c")].nodeAfter,e=a[Zi("0x5")].nodeBefore;return o[Zi("0x50")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Zi("0x22")].document[Zi("0x10")]((()=>{let e=!1;const r=Array[Zi("0x42")](t.model[Zi("0x16")].differ[Zi("0x4f")]());for(const{name:t,data:s}of r){const{group:r,type:i,subType:x,id:a}=n[Zi("0xa")](t);if(Zi("0x34")==r&&n.hasSuggestion(a)){if(Zi("0x3")==i&&("imageStylePreApply"==x||"imageStylePostApply"==x)){const t=n[Zi("0x4")](a);if(s[Zi("0x3d")]){const r=t[Zi("0x3b")]()[Zi("0x54")]();if(o[Zi("0x50")](r))continue;n[Zi("0x7")](t),e=!0}}if(Zi("0x18")==i&&Zi("0x76")==x&&!s[Zi("0x3d")]){const t=n[Zi("0x4")](a);t.next&&t[Zi("0x2c")][Zi("0x5e")]&&(n.discardSuggestion(t[Zi("0x2c")]),e=!0)}}}return e})),t[Zi("0x28")].has("ImageResize")&&n[Zi("0x15")](Zi("0x41"),((e,r)=>{const s=o[Zi("0x33")](t[Zi("0x22")][Zi("0x16")][Zi("0x1a")]);s[Zi("0x58")](Zi("0x61"))!=r[Zi("0x61")]&&t[Zi("0x22")].change((()=>{n[Zi("0x75")](s,{commandName:"resizeImage",commandParams:[r]})}))})),t[Zi("0x28")][Zi("0x46")](Zi("0x51"))&&n[Zi("0x15")]("imageTextAlternative",((e,r)=>{const s=o[Zi("0x33")](t[Zi("0x22")][Zi("0x16")][Zi("0x1a")]);(s.hasAttribute("alt")?s[Zi("0x58")](Zi("0x4c")):"")!=r[Zi("0x3c")]&&t.model[Zi("0x19")]((()=>{n.markBlockFormat(s,{commandName:Zi("0x1d"),commandParams:[r]})}))})),n[Zi("0x1e")][Zi("0x45")]((t=>{if(x[Zi("0x6c")]((({type:e,subType:n})=>t.type==e&&t[Zi("0x2f")]==n)))return t[Zi("0x8")]?{}:void 0})),n[Zi("0x1e")][Zi("0x45")]((t=>{if(Zi("0x18")==t.type||"deletion"==t[Zi("0x68")]){const e=t.getContainedElement();if(e&&e.is(Zi("0x52"),Zi("0x27")))return{type:Zi("0x18")==t[Zi("0x68")]?Zi("0x6a"):"removeObject",element:e,quantity:1}}})),n._descriptionFactory[Zi("0x45")]((t=>Zi("0x3")==t.type&&Zi("0x12")==t.subType?{type:Zi("0x6b"),content:Zi("0x3f")}:Zi("0x3")==t.type&&Zi("0x65")==t.subType?{type:Zi("0x6b"),content:Zi("0x69")}:void 0)),n[Zi("0x1e")].registerDescriptionCallback((t=>{const{data:e}=t;if(e){if("imageStyle"==e[Zi("0x66")]){const t=e[Zi("0x78")][0][Zi("0x4a")];return n="side"===t?as(s,Zi("0x63")):r[t]||t,{type:Zi("0x6b"),content:as(s,Zi("0x79"),n)}}if("imageTextAlternative"==e[Zi("0x66")]){const t=e.commandParams[0][Zi("0x3c")];return t?{type:Zi("0x6b"),content:as(s,Zi("0x1b"),'"'+t+'"')}:{type:"format",content:as(s,Zi("0x38"))}}if(Zi("0x41")==e[Zi("0x66")]){const t=e[Zi("0x78")][0][Zi("0x61")];return t?{type:Zi("0x6b"),content:as(s,"*Set image width:* %0",t)}:{type:Zi("0x6b"),content:as(s,Zi("0x59"))}}}var n}))}}const tx=["discard","getSuggestionCallback","handleReplaceImageCommand","format","plugins","commandName","change","author","getSelectedElement","ImageEditing","getSuggestions","TrackChangesEditing","locale","*Format:* replace image URL","data","_descriptionFactory","markBlockFormat","handleSuggestionDescription","accept","_suggestionFactory","editor","document","model","selection","get","getAttribute","formatBlock","commandParams","source","replaceImageSource","enableCommand","getContainedElement","registerCustomCallback","has"];var ex,nx;ex=tx,nx=226,function(t){for(;--t;)ex.push(ex.shift())}(++nx);const ox=function(t,e){return tx[t-=0]};class rx extends t.Plugin{afterInit(){if(!this[ox("0x20")].plugins[ox("0xb")](ox("0x15")))return;const t=this[ox("0x20")][ox("0x10")][ox("0x2")]("TrackChangesEditing");t[ox("0x8")](ox("0x7"),((t,e)=>this[ox("0xe")](t,e))),t[ox("0x1f")][ox("0xa")](ox("0x4"),ox("0x7"),ox("0x1e"),t._suggestionFactory[ox("0xd")](ox("0x4"),null,ox("0xc"))),t[ox("0x1f")][ox("0xa")](ox("0x4"),ox("0x7"),ox("0xc"),t[ox("0x1f")][ox("0xd")](ox("0x4"),null,ox("0x1e"))),t[ox("0x1b")].registerDescriptionCallback((t=>this[ox("0x1d")](t)))}[ox("0xe")](t,e){const n=this.editor[ox("0x10")][ox("0x2")](ox("0x17")),o=this[ox("0x20")][ox("0x0")][ox("0x21")][ox("0x1")][ox("0x14")]();this[ox("0x20")][ox("0x0")][ox("0x12")]((()=>{let r=o[ox("0x3")]("src");const s=this[ox("0x20")].plugins[ox("0x2")]("Users").me;for(const t of n[ox("0x16")]({skipNotAttached:!0})){const e=t[ox("0x9")]();if(ox("0x7")===t.subType&&e===o){t[ox("0x13")]!==s&&t[ox("0xc")](),r=t[ox("0x1a")][ox("0x5")][0][ox("0x6")];break}}t(e),n[ox("0x1c")](o,{commandName:ox("0x7"),commandParams:[{source:r}]},[],ox("0x7"))}))}[ox("0x1d")](t){const{data:e}=t;if(e&&ox("0x7")===e[ox("0x11")]){const t=ox("0x19");return{type:ox("0xf"),content:as(this[ox("0x20")][ox("0x18")],t)}}}}const sx=["value","dataInsert","enableCommand","trackChanges","lowest","TrackChangesEditing","plugins","track_changes","_handleImportedData","_trackChangesExecuted","high","get","Users","listenTo","collaboration_features","_trackChangesValueDuringImport","importWord","execute","forEach","afterInit","editor","commands","_setSuggestionData","bind"];var ix,xx;ix=sx,xx=188,function(t){for(;--t;)ix.push(ix.shift())}(++xx);const ax=function(t,e){return sx[t-=0]};class cx extends t.Plugin{constructor(t){super(t),this[ax("0x13")]=!1,this[ax("0xd")]=!1}[ax("0x17")](){const t=this[ax("0x0")],e=t[ax("0x1")][ax("0xf")](ax("0x14")),n=t[ax("0x1")].get("trackChanges");e&&(e.on(ax("0x15"),((t,[,e])=>{this[ax("0x13")]=n[ax("0x4")],e[ax("0x12")][ax("0xb")]=!this[ax("0x13")]}),{priority:ax("0xe")}),this[ax("0x11")](e,ax("0x5"),this[ax("0xc")][ax("0x3")](this)),this[ax("0x11")](e,ax("0x5"),(()=>{this[ax("0xd")]&&(n.execute(),this._trackChangesExecuted=!1)}),{priority:ax("0x8")}),t[ax("0xa")][ax("0xf")](ax("0x9"))[ax("0x6")](ax("0x14")))}[ax("0xc")](t,e){const{suggestions:n}=e,o=this.editor[ax("0x1")][ax("0xf")](ax("0x7")),r=o[ax("0x4")];this[ax("0x13")]!==r&&(o.execute(),this._trackChangesExecuted=!0),n&&n[ax("0x16")]((({id:t,type:e,author:n,created_at:o})=>{const r={id:t,type:e,authorId:this[ax("0x0")].plugins.get(ax("0x10")).me.id,createdAt:new Date,data:{},hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:"importWord"}}};this.editor[ax("0xa")][ax("0xf")](Pc)[ax("0x2")](r)}))}}const lx=["model","*Outdent:* %0","editor","_descriptionFactory","getSelectedBlocks","has","schema","outdentBlock","markBlockFormat","*Indent:* %0","change","document","IndentBlock","get","enableCommand","filter","afterInit","getItems","registerDescriptionCallback","blockIndent","TrackChangesEditing","from","locale","indentBlock","checkAttribute","IndentEditing","getItemLabel","indent","plugins","commandName"];var ux,dx;ux=lx,dx=193,function(t){for(;--t;)ux.push(ux.shift())}(++dx);const gx=function(t,e){return lx[t-=0]};class mx extends t.Plugin{[gx("0x3")](){const t=this[gx("0x13")],e=t[gx("0xf")][gx("0x0")](gx("0x7"));t[gx("0xf")].has(gx("0xc"))&&(e[gx("0x1")](gx("0xe")),e[gx("0x1")]("outdent"));const n=t[gx("0x9")];if(t[gx("0xf")][gx("0x16")](gx("0x1d"))){for(const n of[gx("0xa"),gx("0x18")])e.enableCommand(n,(()=>{const o=Array[gx("0x8")](this[gx("0x13")][gx("0x11")][gx("0x1c")].selection[gx("0x15")]())[gx("0x2")]((t=>this.editor[gx("0x11")][gx("0x17")][gx("0xb")](t,gx("0x6"))));t[gx("0x11")][gx("0x1b")]((()=>{for(const t of o)e[gx("0x19")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:gx("0xa")})}))}));e[gx("0x14")][gx("0x5")]((t=>{const{data:o}=t;if(!o)return;if(gx("0xa")!=o.commandName&&gx("0x18")!=o[gx("0x10")])return;const r=t[gx("0x4")]()[0],s=e[gx("0x14")][gx("0xd")](r);return gx("0xa")==o[gx("0x10")]?{type:"format",content:as(n,gx("0x1a"),s)}:gx("0x18")==o[gx("0x10")]?{type:"format",content:as(n,gx("0x12"),s)}:void 0}))}}}var fx,hx,px=["editor","init","TrackChangesEditing","input","get","requires"];fx=px,hx=466,function(t){for(;--t;)fx.push(fx.shift())}(++hx);var bx=function(t,e){return px[t-=0]};class Ex extends t.Plugin{static get[bx("0x1")](){return[ti.Input]}[bx("0x3")](){this[bx("0x2")].plugins[bx("0x0")](bx("0x4")).enableCommand(bx("0x5"))}}const _x=["format","enableCommand","markInlineFormat","has","editor","*Set link:* %0","commandName","document","getFirstPosition","locale","linkHref","get","getFirstRange","plugins","model","link","getRanges","*Remove link*","commandParams","getAttribute","from","TrackChangesEditing","LinkEditing","change","hasAttribute"];var Tx,Cx;Tx=_x,Cx=361,function(t){for(;--t;)Tx.push(Tx.shift())}(++Cx);const yx=function(t,e){return _x[t-=0]};class kx extends t.Plugin{afterInit(){const t=this[yx("0x12")];if(!t[yx("0x2")][yx("0x11")](yx("0xb")))return;const e=t[yx("0x2")][yx("0x0")](yx("0xa"));e[yx("0xf")](yx("0x4"),((n,o)=>{const r=t.model.document.selection;let s=[];if(r.isCollapsed){if(!r[yx("0xd")](yx("0x18")))return void n(o);{const e=(0,ti.findAttributeRange)(r[yx("0x16")](),yx("0x18"),r[yx("0x8")](yx("0x18")),t[yx("0x3")]);s=[e]}}else s=Array[yx("0x9")](r[yx("0x5")]());t.model[yx("0xc")]((()=>{for(const t of s)e[yx("0x10")](t,{commandName:yx("0x4"),commandParams:[o]})}))})),e[yx("0xf")]("unlink",(()=>{const n=this[yx("0x12")][yx("0x3")],o=n[yx("0x15")].selection;n[yx("0xc")]((()=>{let n=[];n=o.isCollapsed?[(0,ti.findAttributeRange)(o[yx("0x16")](),yx("0x18"),o[yx("0x8")](yx("0x18")),t[yx("0x3")])]:ys(yx("0x18"),o[yx("0x1")](),t[yx("0x3")]);for(const t of n)e[yx("0x10")](t,{commandName:"unlink",commandParams:[]})}))})),e._descriptionFactory.registerDescriptionCallback((e=>{const{data:n}=e,o=t[yx("0x17")];if(n){if(yx("0x4")==n[yx("0x14")]){const t=n[yx("0x7")][0];return{type:yx("0xe"),content:as(o,yx("0x13"),'"'+t+'"')}}return"unlink"==n[yx("0x14")]?{type:yx("0xe"),content:as(o,yx("0x6"))}:void 0}}))}}const Ax=["format","editor","listType","add","name","commands","parent","todoListChecked","todo","nextSibling","before","isObject","numberedList","checkTodoList","slice","_descriptionFactory","outdentList","enableCommand","afterInit","_selectedElements","element","bulleted","getAttribute","bulletedList","value","model","registerElementLabel","createPositionAt","ListEditing","filter","listItem","numbered","commandName","listIndent","length","blockName","createRange","from","*Change to:* %0","execute","markBlockFormat","getSelectedBlocks","selection","todoList","forceValue","locale","ELEMENT_NUMBERED_LIST","document","paragraph","List","indentList","schema","TodoListEditing","end","ELEMENT_BULLETED_LIST","get","plugins","change","previousSibling","ELEMENT_LIST_ITEM"];var vx,Rx;vx=Ax,Rx=127,function(t){for(;--t;)vx.push(vx.shift())}(++Rx);const Ix=function(t,e){return Ax[t-=0]};class Sx extends t.Plugin{[Ix("0xb")](){const t=this[Ix("0x36")],e=t[Ix("0x26")];if(!t[Ix("0x31")].has(Ix("0x15")))return;const n=t.plugins[Ix("0x30")]("TrackChangesEditing"),o=t.plugins.has(Ix("0x2d"));function r(e){return()=>{const o=t.model[Ix("0x28")][Ix("0x23")],r=t[Ix("0x3a")][Ix("0x30")](e);if(r[Ix("0x11")])return void t[Ix("0x20")](Ix("0x29"),{});const s=e[Ix("0x7")](0,-4),i=function(t,e,n){let o=Array[Ix("0x1e")](t)[Ix("0x16")]((t=>{return e=t,(o=n).checkChild(e[Ix("0x3b")],Ix("0x17"))&&!o[Ix("0x4")](e);var e,o}));o=o[Ix("0x16")]((t=>!t.is(Ix("0xd"),Ix("0x17"))||t[Ix("0xf")](Ix("0x37"))!=e));const r=new Set;for(const t of o)t.is(Ix("0xd"),Ix("0x17"))?r[Ix("0x38")](Lx(t)):r.add(t);return Array[Ix("0x1e")](r)}(o.getSelectedBlocks(),s,t[Ix("0x12")][Ix("0x2c")]);t[Ix("0x12")][Ix("0x32")]((()=>{for(const t of i)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!r[Ix("0x11")]}],formatGroupId:Ix("0x1c")},Mx(t))}))}}function s(e){return()=>{const o=function(t){const e=(t=Array[Ix("0x1e")](t)).findIndex((t=>Ix("0x17")!=t[Ix("0x39")]));return e>-1&&(t=t[Ix("0x7")](0,e)),t}(t.model[Ix("0x28")].selection[Ix("0x22")]()),r=t.model[Ix("0x1d")](t.model[Ix("0x14")](o[0],Ix("0x3")),t.model[Ix("0x14")](o[o[Ix("0x1b")]-1],Ix("0x2e")));t[Ix("0x12")][Ix("0x32")]((()=>{n[Ix("0x21")](r,{commandName:e,commandParams:[],formatGroupId:Ix("0x1a")},function(t){const e=new Set;for(const n of t){let t=n[Ix("0x2")];for(;t&&t.getAttribute(Ix("0x1a"))>n[Ix("0xf")](Ix("0x1a"));)e[Ix("0x38")](t),t=t.nextSibling}return Array[Ix("0x1e")](e)}(o))}))}}n[Ix("0xa")]("numberedList",r(Ix("0x5"))),n.enableCommand(Ix("0x10"),r("bulletedList")),o&&n[Ix("0xa")](Ix("0x24"),r(Ix("0x24"))),n[Ix("0xa")]("indentList",s("indentList")),n[Ix("0xa")]("outdentList",s(Ix("0x9"))),o&&n[Ix("0xa")](Ix("0x6"),(()=>{const e=t[Ix("0x3a")][Ix("0x30")](Ix("0x6")),o=Array[Ix("0x1e")](e[Ix("0xc")]);o[Ix("0x16")]((t=>t.getAttribute(Ix("0x0"))!=e[Ix("0x11")])),t[Ix("0x12")].change((()=>{for(const t of o)n[Ix("0x21")](t,{commandName:Ix("0x6"),commandParams:[{forceValue:!e.value}]})}))})),n[Ix("0x8")][Ix("0x13")](Ix("0x17"),(t=>as(e,Ix("0x34"),t))),n[Ix("0x8")].registerDescriptionCallback((t=>{const{data:n}=t;if(n){if(Ix("0x5")==n[Ix("0x19")]||Ix("0x10")==n[Ix("0x19")]||Ix("0x24")==n[Ix("0x19")])switch(n[Ix("0x19")].replace(Ix("0x2a"),"")){case Ix("0xe"):return o(as(e,Ix("0x2f")));case Ix("0x18"):return o(as(e,Ix("0x27")));case Ix("0x1"):return o(as(e,"ELEMENT_TODO_LIST"))}if(Ix("0x2b")==n[Ix("0x19")])return{type:Ix("0x35"),content:as(e,"*Indent:* %0",as(e,Ix("0x34")))};if(Ix("0x9")==n[Ix("0x19")])return{type:Ix("0x35"),content:as(e,"*Outdent:* %0",as(e,Ix("0x34")))};if(Ix("0x6")==n[Ix("0x19")])return n.commandParams[0][Ix("0x25")]?{type:"format",content:as(e,"*Check item*")}:{type:Ix("0x35"),content:as(e,"*Uncheck item*")}}function o(t){return{type:Ix("0x35"),content:as(e,Ix("0x1f"),t)}}}))}}function Lx(t){const e=t[Ix("0xf")](Ix("0x1a"));if(0==e)return t;let n=t;for(;t[Ix("0x33")]&&t[Ix("0x33")].is("element",Ix("0x17"));){const o=t[Ix("0x33")][Ix("0xf")](Ix("0x1a"));if(o==e)n=t[Ix("0x33")];else if(o<e)break;t=t.previousSibling}return n}function Mx(t){const e=[];if(t.is(Ix("0xd"),Ix("0x17"))&&t[Ix("0xf")]("listIndent")>0){let n=t[Ix("0x2")];for(;n&&Ix("0x17")==n[Ix("0x39")]&&n[Ix("0xf")](Ix("0x1a"))==t[Ix("0xf")]("listIndent");)e.push(n),n=n[Ix("0x2")]}return e}const Nx=["*Format:* set order to reversed","length","afterInit","toUpperCase","_getSuggestionBlocks","*Format:* set start index to %0","styles","change","listType","_getTranslationKeyForListStyle","get","has","listReversed","handleDescriptions","listStyle","from","forward","map","element","editor","bind","listItem","plugins","listStart","createPositionAt","handleListStartCommand","getSiblingNodes","list.properties","model","document","filter","*Change to:* %0","commandParams","getListTypeFromListStyleType","ELEMENT_","type","config","*Format:* set order to regular","before","startIndex","handleListStyleCommand","registerDescriptionCallback","createRange","TrackChangesEditing","markMultiRangeBlockFormat","ListUtils","format","enableCommand","numbered","_LIST_","reversed","handleListReversedCommand","replaceAll","commandName"];var wx,Ox;wx=Nx,Ox=224,function(t){for(;--t;)wx.push(wx.shift())}(++Ox);const Fx=function(t,e){return Nx[t-=0]};class Px extends t.Plugin{[Fx("0x30")](){if(!this[Fx("0xb")][Fx("0xe")][Fx("0x3")]("ListPropertiesEditing"))return;const t=this[Fx("0xb")][Fx("0x1c")][Fx("0x2")](Fx("0x13")),e=this[Fx("0xb")][Fx("0xe")].get(Fx("0x23"));t[Fx("0x34")]&&e[Fx("0x27")](Fx("0x6"),this[Fx("0x20")].bind(this)),t[Fx("0x2a")]&&e[Fx("0x27")](Fx("0x4"),this[Fx("0x2b")][Fx("0xc")](this)),t[Fx("0x1f")]&&e[Fx("0x27")](Fx("0xf"),this[Fx("0x11")][Fx("0xc")](this)),e._descriptionFactory[Fx("0x21")](this[Fx("0x5")].bind(this))}[Fx("0x20")](t,e){const n=this[Fx("0xb")].plugins.get(Fx("0x23")),o=this[Fx("0x32")]((t=>t.hasAttribute(Fx("0x0"))));o.length<1||this[Fx("0xb")][Fx("0x14")].change((()=>{n.markMultiRangeBlockFormat(o,{commandName:Fx("0x6"),commandParams:[{type:e[Fx("0x1b")]}],formatGroupId:Fx("0x6")})}))}[Fx("0x2b")](t,e){const n=this[Fx("0xb")][Fx("0xe")][Fx("0x2")](Fx("0x23")),o=this[Fx("0x32")]((t=>t.is(Fx("0xa"),Fx("0xd"))&&Fx("0x28")===t.getAttribute(Fx("0x0"))));if(o.length<1)return;const r=o.map((t=>this.editor[Fx("0x14")][Fx("0x22")](this[Fx("0xb")][Fx("0x14")][Fx("0x10")](t,Fx("0x1e")),this[Fx("0xb")].model[Fx("0x10")](t,0))));this[Fx("0xb")][Fx("0x14")][Fx("0x35")]((()=>{n[Fx("0x24")](r,{commandName:Fx("0x4"),commandParams:[{reversed:e[Fx("0x2a")]}],formatGroupId:Fx("0x4")})}))}[Fx("0x11")](t,e){const n=this.editor[Fx("0xe")][Fx("0x2")](Fx("0x23")),o=this[Fx("0x32")]((t=>t.is(Fx("0xa"),Fx("0xd"))&&"numbered"===t.getAttribute("listType")));if(o[Fx("0x2f")]<1)return;const r=o[Fx("0x9")]((t=>this[Fx("0xb")][Fx("0x14")][Fx("0x22")](this[Fx("0xb")][Fx("0x14")].createPositionAt(t,"before"),this[Fx("0xb")][Fx("0x14")][Fx("0x10")](t,0))));this[Fx("0xb")][Fx("0x14")][Fx("0x35")]((()=>{n.markMultiRangeBlockFormat(r,{commandName:Fx("0xf"),commandParams:[{startIndex:e[Fx("0x1f")]}],formatGroupId:Fx("0xf")})}))}[Fx("0x5")](t){const e=this[Fx("0xb")].locale,{data:n}=t;if(!n)return;let o,r;switch(n[Fx("0x2d")]){case Fx("0x6"):o=Fx("0x17"),r={type:"format",content:as(e,o,as(e,this[Fx("0x1")](n.commandParams[0][Fx("0x1b")])))};break;case Fx("0x4"):o=n[Fx("0x18")][0][Fx("0x2a")]?Fx("0x2e"):Fx("0x1d"),r={type:Fx("0x26"),content:as(e,o)};break;case"listStart":o=Fx("0x33"),r={type:Fx("0x26"),content:as(e,o,n[Fx("0x18")][0][Fx("0x1f")])}}return r}[Fx("0x32")](t){const e=this[Fx("0xb")][Fx("0xe")].get(Fx("0x25"));let n=Array[Fx("0x7")](this[Fx("0xb")].model[Fx("0x15")].selection.getSelectedBlocks())[Fx("0x16")](t).map((t=>{const n=this[Fx("0xb")].model[Fx("0x10")](t,0);return[...e[Fx("0x12")](n,"backward"),...e.getSiblingNodes(n,Fx("0x8"))]})).flat();return n=[...new Set(n)],n}_getTranslationKeyForListStyle(t){return Fx("0x1a")+this[Fx("0xb")].plugins[Fx("0x2")](Fx("0x25"))[Fx("0x19")](t)[Fx("0x31")]()+Fx("0x29")+t[Fx("0x31")]()[Fx("0x2c")]("-","_")}}const Dx=["downcastDispatcher","stop","dataDowncast","high","showSuggestionHighlights","_descriptionFactory","registerElementLabel","MediaEmbedEditing","conversion","ELEMENT_MEDIA","locale","plugins","data","options","get","for","afterInit","enableCommand","attribute:url:media","media","editor"];var Bx,jx;Bx=Dx,jx=191,function(t){for(;--t;)Bx.push(Bx.shift())}(++jx);const Ux=function(t,e){return Dx[t-=0]};class Gx extends t.Plugin{[Ux("0xe")](){const t=this[Ux("0x12")];if(!t[Ux("0x9")].has(Ux("0x5")))return;const e=t[Ux("0x9")][Ux("0xc")]("TrackChangesEditing"),n=t[Ux("0x8")];e[Ux("0xf")]("mediaEmbed"),e[Ux("0x3")][Ux("0x4")]("media",(t=>as(n,Ux("0x7"),t))),t[Ux("0x6")][Ux("0xd")](Ux("0x0")).elementToElement({model:Ux("0x11"),view:(t,{writer:e,options:n})=>{if(n[Ux("0x2")])return e.createEmptyElement("div")},converterPriority:Ux("0x1")}),t[Ux("0xa")][Ux("0x13")].on(Ux("0x10"),((t,e,n)=>{n[Ux("0xb")][Ux("0x2")]&&t[Ux("0x14")]()}),{priority:Ux("0x1")})}}const Hx=["has","afterInit","plugins","get","MentionEditing","enableCommand","editor"];var Wx,Vx;Wx=Hx,Vx=328,function(t){for(;--t;)Wx.push(Wx.shift())}(++Vx);const zx=function(t,e){return Hx[t-=0]};class Kx extends t.Plugin{[zx("0x2")](){const t=this[zx("0x0")];t[zx("0x3")][zx("0x1")](zx("0x5"))&&t[zx("0x3")][zx("0x4")]("TrackChangesEditing")[zx("0x6")]("mention")}}const qx=["PageBreakEditing","pageBreak","get","editor","plugins","afterInit","has","locale","enableCommand","TrackChangesEditing"];var Xx,$x;Xx=qx,$x=337,function(t){for(;--t;)Xx.push(Xx.shift())}(++$x);const Qx=function(t,e){return qx[t-=0]};class Jx extends t.Plugin{[Qx("0x8")](){const t=this[Qx("0x6")];if(!t[Qx("0x7")][Qx("0x9")](Qx("0x3")))return;t.plugins.get(Qx("0x2"))[Qx("0x1")](Qx("0x4"));const e=t[Qx("0x7")][Qx("0x5")]("TrackChangesEditing"),n=t[Qx("0x0")];e._descriptionFactory.registerElementLabel("pageBreak",(t=>as(n,"ELEMENT_PAGE_BREAK",t)))}}const Zx=["start","activeMarkers","$text","markerName","paragraph","mapper","downcastDispatcher","insert","isTouching","consumable","from","type","has","enableCommand","*Change to:* %0","bindElementToMarker","toViewPosition","*Insert:* %0","writer","isObject","markBlockFormat","locale","commandName","TrackChangesEditing","markerRange","highest","nodeAfter","parent","editor","getSelectedBlocks","span","createUIElement","data","getFirstRange","schema","addMarker:suggestion:insertion","isLimit","plugins","insertion","filter","registerDescriptionCallback","showSuggestionHighlights","registerElementLabel","Paragraph","checkChild","end","selection","blockName","editing","get","isBlock","change","format","insertParagraph","document","_descriptionFactory","model","afterInit","ELEMENT_PARAGRAPH"];var Yx,ta;Yx=Zx,ta=389,function(t){for(;--t;)Yx.push(Yx.shift())}(++ta);const ea=function(t,e){return Zx[t-=0]};class na extends t.Plugin{[ea("0x16")](){const t=this[ea("0x34")];if(!t[ea("0x2")][ea("0x24")](ea("0x8")))return;const e=t[ea("0x2d")],n=t.plugins[ea("0xe")](ea("0x2f"));n[ea("0x14")][ea("0x7")](ea("0x1c"),(t=>as(e,ea("0x17"),t))),n[ea("0x25")](ea("0x1c"),((e,o={})=>{const r=t[ea("0x15")][ea("0x13")],s=o.selection||r[ea("0xb")],i=Array[ea("0x22")](s[ea("0x35")]())[ea("0x4")]((t=>{return e=t,(n=this.editor[ea("0x15")][ea("0x3a")])[ea("0x9")](e[ea("0x33")],ea("0x1c"))&&!n[ea("0x2b")](e)&&ea("0x1c")!=e.name;var e,n}));t[ea("0x15")][ea("0x10")]((()=>{for(const t of i)n[ea("0x2c")](t,{commandName:ea("0x1c"),commandParams:[],formatGroupId:ea("0xc")},ks(t))}))})),n[ea("0x14")][ea("0x5")]((t=>{const{data:n}=t;if(n&&ea("0x1c")==n[ea("0x2e")])return{type:ea("0x11"),content:as(e,ea("0x26"),as(e,ea("0x17")))}})),n[ea("0x25")](ea("0x12")),t[ea("0xd")][ea("0x1e")].on(ea("0x0"),oa(t),{priority:ea("0x31")}),t[ea("0x38")].downcastDispatcher.on(ea("0x0"),((e,n,o)=>{o.options[ea("0x6")]&&oa(t,{showActiveMarker:!1})(e,n,o)}),{priority:ea("0x31")});const o=n[ea("0x14")];o[ea("0x5")]((n=>{if(ea("0x3")!==n[ea("0x23")])return;const{start:r,end:s}=n[ea("0x39")]();if(!r[ea("0x20")](s)||!r.nodeAfter)return;const i=t[ea("0x15")][ea("0x3a")],x=r[ea("0x32")];return i[ea("0xf")](x)&&!i[ea("0x1")](x)&&i[ea("0x9")](x,ea("0x1a"))?{type:ea("0x3"),content:as(e,ea("0x29"),o.getItemLabel(x,1))}:void 0}))}}function oa(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const s=t[ea("0x2")][ea("0xe")]("TrackChangesEditing"),i=o[ea("0x30")][ea("0x18")],x=o.markerRange[ea("0xa")],a=t[ea("0x15")][ea("0x3a")];if(!i.isTouching(x)||!i[ea("0x32")])return;const c=i.nodeAfter;if(a.isBlock(c)&&!a[ea("0x1")](c)&&a[ea("0x9")](c,ea("0x1a"))){if(!r[ea("0x21")].consume(o[ea("0x30")],n.name))return;const t=r[ea("0x2a")][ea("0x37")](ea("0x36"),{class:"ck-suggestion-marker-split"}),i=r[ea("0x1d")][ea("0x28")](x);e&&s[ea("0x19")].includes(o.markerName)&&r[ea("0x2a")].addClass("ck-suggestion-marker--active",t),r.writer[ea("0x1f")](i,t),r[ea("0x1d")][ea("0x27")](t,o[ea("0x1b")])}}}const ra=["getAttributes","getAttributeProperties","isFormatting","RemoveFormatEditing","plugins","get","change","from","registerDescriptionCallback","document","_descriptionFactory","model","commandName","isCollapsed","enableCommand","format","removeFormat","*Remove all formatting*"];var sa,ia;sa=ra,ia=188,function(t){for(;--t;)sa.push(sa.shift())}(++ia);const xa=function(t,e){return ra[t-=0]};class aa extends t.Plugin{afterInit(){const t=this.editor;if(!t[xa("0xe")].has(xa("0xd")))return;const e=t[xa("0xe")][xa("0xf")]("TrackChangesEditing");e[xa("0x6")](xa("0x8"),(n=>{const o=t[xa("0x3")][xa("0x1")].selection;o[xa("0x5")]?n():t[xa("0x3")][xa("0x10")]((()=>{const n=Array[xa("0x11")](o.getRanges());for(const o of n)for(const n of o.getItems())ca(n,t[xa("0x3")].schema)&&e.markInlineFormat(t[xa("0x3")].createRangeOn(n),{commandName:xa("0x8"),commandParams:[]})}))})),e[xa("0x2")][xa("0x0")]((e=>{const{data:n}=e;if(n&&xa("0x8")==n[xa("0x4")])return{type:xa("0x7"),content:as(t.locale,xa("0x9"))}}))}}function ca(t,e){for(const[n]of t[xa("0xa")]()){const t=e[xa("0xb")](n);if(t&&t[xa("0xc")])return!0}return!1}const la=["discardSuggestion","trackChanges","has","acceptAllSuggestions","editor","afterInit","goToNextRestrictedEditingException","get","discardSelectedSuggestions","TrackChangesEditing","enableCommand","plugins","RestrictedEditingModeEditing","acceptSelectedSuggestions"];var ua,da;ua=la,da=167,function(t){for(;--t;)ua.push(ua.shift())}(++da);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x6")](){const t=this[ga("0x5")];if(!t[ga("0xc")][ga("0x3")](ga("0xd")))return;const e=t[ga("0xc")][ga("0x8")](ga("0xa"));e[ga("0xb")]("goToPreviousRestrictedEditingException"),e.enableCommand(ga("0x7"));const n=t[ga("0xc")][ga("0x8")](ga("0xd"));n[ga("0xb")](ga("0x2")),n[ga("0xb")]("acceptSuggestion"),n.enableCommand(ga("0x1")),n[ga("0xb")](ga("0x4")),n[ga("0xb")]("discardAllSuggestions"),n[ga("0xb")](ga("0x0")),n[ga("0xb")](ga("0x9"))}}const fa=["showSuggestionHighlights","merge","insert","activeMarkers","split","TrackChangesEditing","addMarker:suggestion","span","addMarker:suggestion:deletion","ck-suggestion-marker--active","mapper","enableCommand","high","markerRange","_descriptionFactory","options","init","element","get","requires","data","createUIElement","ELEMENT_LINE_BREAK","downcastDispatcher","deletion","writer","softBreak","registerElementLabel","ck-suggestion-marker-","plugins","locale","markerName","bindElementToMarker","editing"];var ha,pa;ha=fa,pa=160,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{static get[ba("0x1d")](){return[ui.ShiftEnter]}[ba("0x1a")](){const t=this.editor,e=t[ba("0x5")][ba("0x1c")](ba("0xf"));e[ba("0x15")]("shiftEnter"),t.editing[ba("0x21")].on("addMarker:suggestion:insertion",_a(t),{priority:ba("0x16")}),t[ba("0x9")][ba("0x21")].on(ba("0x12"),_a(t),{priority:ba("0x16")}),t[ba("0x1e")][ba("0x21")].on(ba("0x10"),((e,n,o)=>{o[ba("0x19")][ba("0xa")]&&_a(t,{showActiveMarker:!1})(e,n,o)})),e[ba("0x18")][ba("0x3")](ba("0x2"),(e=>as(t[ba("0x6")],ba("0x20"),e)))}}function _a(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const s=t[ba("0x5")][ba("0x1c")](ba("0xf"));if(!r.consumable.test(o.markerRange,n.name))return;const i=t.model;for(const t of o[ba("0x17")].getItems()){if(!t.is(ba("0x1b"),"softBreak"))continue;const n=ba("0x0")==o[ba("0x7")][ba("0xe")](":")[1]?ba("0xb"):ba("0xe"),x=r[ba("0x1")][ba("0x1f")](ba("0x11"),{class:ba("0x4")+n}),a=r[ba("0x14")].toViewPosition(i.createPositionBefore(t));e&&s[ba("0xd")].includes(o[ba("0x7")])&&r[ba("0x1")].addClass(ba("0x13"),x),r[ba("0x1")][ba("0xc")](a,x),r[ba("0x14")][ba("0x8")](x,o[ba("0x7")])}}}const Ta=["commandParams","has","_descriptionFactory","format","value","commandName","from","FORMAT_RESTRICTED_ENABLED","locale","getRanges","markInlineFormat","commands","forceValue","StandardEditingModeEditing","registerDescriptionCallback","isCollapsed","get","model","enableCommand","document","plugins","restrictedEditingException"];var Ca,ya;Ca=Ta,ya=437,function(t){for(;--t;)Ca.push(Ca.shift())}(++ya);const ka=function(t,e){return Ta[t-=0]};class Aa extends t.Plugin{afterInit(){const t=this.editor,e=t[ka("0x14")],n=t[ka("0xb")];if(!t[ka("0x1")][ka("0x4")](ka("0x10")))return;const o=t[ka("0x1")][ka("0x13")]("TrackChangesEditing"),r=ka("0x2"),s=t[ka("0xe")][ka("0x13")](r);o[ka("0x15")](r,((t,n={})=>{const i=e[ka("0x0")].selection;if(i[ka("0x12")])return void t(n);const x=void 0!==n[ka("0xf")]?n[ka("0xf")]:!s[ka("0x7")];e.change((()=>{const t=Array[ka("0x9")](i[ka("0xc")]());for(const n of t){const t=x?[n]:ys(r,n,e);for(const e of t)o[ka("0xd")](e,{commandName:r,commandParams:[{forceValue:x}]})}}))})),o[ka("0x5")][ka("0x11")]((t=>{const{data:e}=t;if(e&&e[ka("0x8")]==r)return e[ka("0x3")][0].forceValue?{type:ka("0x6"),content:as(n,ka("0xa"))}:{type:ka("0x6"),content:as(n,"FORMAT_RESTRICTED_DISABLED")}}))}}const va=["enabledStyles","plugins","push","isCollapsed","commandName","getAncestors","block","includes","selection","element","getStyleDefinition","style","styleName","modelElements","change","*Format:* %0","classes","TrackChangesEditing","value","every","add","createRangeOn","enableCommand","find","has","inline","name","markBlockFormat","get","locale","format","toLowerCase","getDefinitionsForView","getAttribute","commands","*Remove format:* %0","model","isBlock","document","getRangesWithClasses","afterInit","style.definitions","_descriptionFactory"];var Ra,Ia;Ra=va,Ia=362,function(t){for(;--t;)Ra.push(Ra.shift())}(++Ia);const Sa=function(t,e){return va[t-=0]};class La extends t.Plugin{[Sa("0x16")](){const t=this.editor;if(!t[Sa("0x1a")][Sa("0x6")]("Style"))return;const e=t[Sa("0x10")][Sa("0xa")](Sa("0x24")),n=t[Sa("0x1a")].get(Sa("0x2a")),o=t[Sa("0xb")],r=t.plugins[Sa("0xa")]("DataSchema"),s=function(t,e=[]){const n={block:[],inline:[]};for(const o of e){const e=[],r=[];for(const n of t.getDefinitionsForView(o.element))n.isBlock?e.push(n.model):r.push(n.model);e.length?n.block.push({...o,modelElements:e,isBlock:!0}):n.inline.push({...o,ghsAttributes:r})}return n}(r,t.config[Sa("0xa")](Sa("0x17")));n[Sa("0x4")](Sa("0x24"),((o,{styleName:i})=>{const x=t[Sa("0x12")][Sa("0x14")][Sa("0x21")],a=this[Sa("0x23")](i,s);if(!a)return;if(!e[Sa("0x19")][Sa("0x20")](i))return;if(x[Sa("0x1c")]&&!a[Sa("0x13")])return void o({styleName:i});const c=!e[Sa("0x0")][Sa("0x20")](a.name);if(a[Sa("0x13")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Sa("0x1e")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e.includes(o.name)){n[Sa("0x2")](o);break}}return n}(x.getSelectedBlocks(),a[Sa("0x26")]);t[Sa("0x12")][Sa("0x27")]((()=>{for(const t of e)n[Sa("0x9")](t,{commandName:Sa("0x24"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:"style:"+i})}))}else{let e=Array.from(x.getRanges());if(!c){const n=Array.from(r[Sa("0xe")](a[Sa("0x22")],!1))[0].model,o=[];for(const r of e){const e=this[Sa("0x15")](t.model,r,a[Sa("0x29")],n);o[Sa("0x1b")](...e)}e=o}t[Sa("0x12")][Sa("0x27")]((()=>{for(const t of e)n.markInlineFormat(t,{commandName:Sa("0x24"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Sa("0x18")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&Sa("0x24")===e[Sa("0x1d")])return e.commandParams[0].forceValue?{type:Sa("0xc"),content:as(o,Sa("0x28"),e.commandParams[0][Sa("0x25")].toLowerCase())}:{type:"format",content:as(o,Sa("0x11"),e.commandParams[0][Sa("0x25")][Sa("0xd")]())}}))}[Sa("0x23")](t,e){let n=e[Sa("0x1f")].find((e=>e[Sa("0x8")]===t));return n||(n=e[Sa("0x7")][Sa("0x5")]((e=>e[Sa("0x8")]===t))),n}getRangesWithClasses(t,e,n,o){const r=[];for(const s of e.getItems()){const e=s[Sa("0xf")](o);e&&n[Sa("0x1")]((t=>e[Sa("0x29")].includes(t)))&&r.push(t[Sa("0x3")](s))}return r}}const Ma=["end","colspan","afterInit","mapper","push","ELEMENT_TABLE_WITH_TEXT","insertTable","isEqual","_acceptFormatSuggestionCallbackFactory","editor","detach","markMultiRangeInsertion","highest","get","nodeBefore","markMultiRangeDeletion","refresh","plugins","createTableWalker","document","ELEMENT_TABLE_COLUMN","values","_setupColumnsRowsFixing","hasAttribute","position","above","options","first","length","TableUtils","some","model","$graveyard","getSelectionAffectedTableCells","fromRange","classes","*Insert:* %0","getContainedElement","getChanges","findAncestor","substr","ELEMENT_TABLE_ROW_WITH_TEXT","includes","getChangedMarkers","setSelection","_getSuggestionCoords","max","deletion","showSuggestionHighlights","root","selection","createPositionAt","_descriptionFactory","discard","differ","locale","minColumn","getChildren","removeClass","_tableSuggestions","filter","registerDescriptionCallback","map","insertTableRowBelow","order","enableCommand","execute","getColumnIndexes","createRangeIn","type","span","insertTableColumnLeft","tableColumn","accept","TrackChangesEditing","rootName","from","forceValue","nodeAfter","minRow","rowspan","oldRange","getFirstRange","insert","enqueueChange","addClass","tableCell","addRange","insertTableRowAbove","data","commands","_getCoordsForCells","name","ELEMENT_TABLE","registerCustomCallback","isInContent","change","last","textProxy","startsWith","maxColumn","getItems","add","removeTableRow","_suggestionFactory","element","tablePaste","tableRow","ELEMENT_TABLE_COLUMN_WITH_TEXT","getRowIndexes","getRanges","MIN_SAFE_INTEGER","table","TableEditing","has","registerElementLabel","registerPostFixer","min","getAttribute","cell","item","createRangeOn","_tablePostFixingSubtypes","MAX_SAFE_INTEGER","start","left","subType","*Remove:* %0","toLowerCase","isTouching","join","getCellLocation","insertion","selectTableColumn","removeTableColumn"];var Na,wa;Na=Ma,wa=298,function(t){for(;--t;)Na.push(Na.shift())}(++wa);const Oa=function(t,e){return Ma[t-=0]};class Fa extends t.Plugin{constructor(t){super(t),this[Oa("0x5e")]=[Oa("0x4f"),"tableColumn"]}[Oa("0x6d")](){const t=this[Oa("0x74")],e=t[Oa("0x3")][Oa("0x7e")][Oa("0x16")];if(!t[Oa("0x7c")][Oa("0x56")](Oa("0x55")))return;const n=t[Oa("0x1b")],o=t[Oa("0x7c")].get(Oa("0x2e")),r=t[Oa("0x7c")][Oa("0x78")](Oa("0x1"));o[Oa("0x18")][Oa("0x57")](Oa("0x54"),(t=>as(n,Oa("0x41"),t))),this[Oa("0x81")](),o[Oa("0x25")](Oa("0x71")),o[Oa("0x25")]("selectTableRow"),o[Oa("0x25")](Oa("0x69"));for(const n of[Oa("0x3c"),Oa("0x23")]){const s=t[Oa("0x3e")].get(n);o[Oa("0x25")](n,(n=>{t.model[Oa("0x44")]((t=>{n();const i=Oa("0x84")===s[Oa("0x24")],x=r[Oa("0x5")](e),a=r.getRowIndexes(x),c=i?a.first-1:a.last+1,l=x[0][Oa("0xb")](Oa("0x54")),u=r[Oa("0x7d")](l,{startRow:c,endRow:c}),d=Array[Oa("0x30")](u)[Oa("0x22")]((e=>t[Oa("0x5d")](e.cell)));o[Oa("0x76")](d,Oa("0x4f"))}))}))}for(const n of[Oa("0x2b"),"insertTableColumnRight"]){const s=t[Oa("0x3e")][Oa("0x78")](n);o[Oa("0x25")](n,(n=>{t[Oa("0x3")].change((t=>{n();const i=Oa("0x61")===s[Oa("0x24")],x=r[Oa("0x5")](e),a=r[Oa("0x27")](x),c=i?a[Oa("0x86")]-1:a[Oa("0x45")]+1,l=x[0].findAncestor("table"),u=r[Oa("0x7d")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array.from(u)[Oa("0x22")]((e=>t[Oa("0x5d")](e[Oa("0x5b")])));o[Oa("0x76")](d,"tableColumn")}))}))}for(const n of[Oa("0x4b"),Oa("0x6a")]){const s=n[Oa("0xc")](11),i=s[Oa("0x64")](),x=i[Oa("0xc")](0,3)+"span",a=Oa("0x54")+s,c=Oa("0x59")+s,l=Oa("0x12")+s;o[Oa("0x25")](n,(()=>{t[Oa("0x3")][Oa("0x44")]((t=>{const s=r[Oa("0x5")](e),u=s[0][Oa("0xb")](Oa("0x54"));let d;if(Oa("0x4b")==n){const t=r[Oa("0x51")](s);d={startRow:t[Oa("0x86")],endRow:t.last,includeAllSlots:!0}}else{const t=r[Oa("0x27")](s);d={startColumn:t[Oa("0x86")],endColumn:t[Oa("0x45")],includeAllSlots:!0}}const g=r[Oa("0x7d")](u,d),m=Array[Oa("0x30")](g).map((({cell:t})=>t)),f=Pa(m[Oa("0x20")]((t=>t[Oa("0x82")](x)))),h=Pa(m[Oa("0x20")]((t=>!t[Oa("0x82")](x)))).map((e=>t.createRangeOn(e))),p=o[Oa("0x7a")](h,a);if(p&&(Oa("0x4f")==p[Oa("0x62")]||Oa("0x2c")==p[Oa("0x62")])){const e=this[Oa("0x11")](p);for(const n of f){const o=t[Oa("0x5d")](n),s=r[Oa("0x67")](n),a=n.getAttribute(x)-1,u=e[c],d=e[l];u<=s[i]&&s[i]+a<=d&&p[Oa("0x3b")](o)}}}))}))}function s(n){const o=Array[Oa("0x30")](e[Oa("0x52")]())[Oa("0x22")]((t=>i.LiveRange[Oa("0x6")](t)));t[Oa("0x3")].change((e=>{const r=e.batch;n=n[Oa("0x20")]((t=>Oa("0x4")!=t[Oa("0x15")].rootName)),e[Oa("0x10")](n),t[Oa("0x3e")][Oa("0x78")](Oa("0x4b"))[Oa("0x7b")](),t.execute(Oa("0x4b"),{forceDefaultExecution:!0}),t[Oa("0x3")][Oa("0x38")]((()=>{t[Oa("0x3")][Oa("0x38")](r,(t=>{const e=o[Oa("0x20")]((t=>Oa("0x4")!=t[Oa("0x15")][Oa("0x2f")]));e[Oa("0x0")]>0&&t[Oa("0x10")](e);for(const t of o)t[Oa("0x75")]()}))}))}))}function a(n){t[Oa("0x3")][Oa("0x44")]((o=>{const r=Array[Oa("0x30")](e[Oa("0x52")]()).map((t=>i.LiveRange[Oa("0x6")](t))),s=[];for(const t of n)for(const e of t[Oa("0x49")]({shallow:!0}))s[Oa("0x6f")](e);for(const e of s)Oa("0x4")!=e[Oa("0x15")][Oa("0x2f")]&&(o.setSelection(o[Oa("0x17")](e,0)),t[Oa("0x3e")][Oa("0x78")]("removeTableColumn").refresh(),t[Oa("0x26")](Oa("0x6a"),{forceDefaultExecution:!0}));const x=r[Oa("0x20")]((t=>Oa("0x4")!=t[Oa("0x15")].rootName));x[Oa("0x0")]>0&&o[Oa("0x10")](x);for(const t of r)t[Oa("0x75")]()}))}function c(t,e){return e.every((e=>t[Oa("0x2")]((t=>t[Oa("0x6b")][Oa("0x72")](e.start)||e.end.isEqual(t.start)))))}function l(t,e){return t[Oa("0x2")]((t=>e.some((e=>t[Oa("0x6b")][Oa("0x65")](e[Oa("0x60")])))))}t[Oa("0x3d")].downcastDispatcher.on("addMarker:suggestion",((t,e,n)=>{if(!n[Oa("0x85")][Oa("0x14")])return;const o=e[Oa("0x5c")];if(!o)return;const r=n[Oa("0x6e")].toViewElement(o);function s(t){return Array.isArray(t)?t:[t]}r&&"tableCell"===o[Oa("0x40")]&&(0,x.setHighlightHandling)(r,n.writer,((t,e,n)=>n[Oa("0x39")](s(e[Oa("0x7")]),t)),((t,e,n)=>n[Oa("0x1e")](s(e[Oa("0x7")]),t)))}),{priority:Oa("0x77")}),o[Oa("0x18")][Oa("0x21")]((t=>{if(Oa("0x68")!=t.type&&Oa("0x13")!=t[Oa("0x29")])return;const e=t[Oa("0x9")]();if(null!=e&&e.is(Oa("0x4d"),Oa("0x54"))){if(Oa("0x68")==t[Oa("0x29")]){const e=t[Oa("0x49")]()[Oa("0x20")]((t=>t.is(Oa("0x46"))))[Oa("0x22")]((t=>t[Oa("0x3d")]));if(e[Oa("0x0")])return{type:"insertion",content:as(n,Oa("0x8"),as(n,Oa("0x70"),'"'+e[Oa("0x66")](" ")+'"'))}}if("deletion"==t.type){const e=t[Oa("0x49")]()[Oa("0x20")]((t=>t.is(Oa("0x46")))).map((t=>t.data));if(e[Oa("0x0")])return{type:"deletion",content:as(n,"*Remove:* %0",as(n,Oa("0x70"),'"'+e[Oa("0x66")](" ")+'"'))}}}})),o._descriptionFactory.registerDescriptionCallback((t=>{if("tableRow"==t.subType){const e=t[Oa("0x49")]()[Oa("0x20")]((t=>t.is("textProxy")))[Oa("0x22")]((t=>t.data)),o=this[Oa("0x11")](t),r=o.maxRow-o[Oa("0x33")]+1;if(Oa("0x68")==t.type)return e[Oa("0x0")]?{type:Oa("0x68"),content:as(n,Oa("0x8"),as(n,Oa("0xd"),[r,'"'+e[Oa("0x66")](" ")+'"']))}:{type:"insertion",content:as(n,Oa("0x8"),as(n,"ELEMENT_TABLE_ROW",r))};if(Oa("0x13")==t.type)return e.length?{type:Oa("0x13"),content:as(n,Oa("0x63"),as(n,Oa("0xd"),[r,'"'+e[Oa("0x66")](" ")+'"']))}:{type:Oa("0x13"),content:as(n,"*Remove:* %0",as(n,"ELEMENT_TABLE_ROW",r))}}if(Oa("0x2c")==t[Oa("0x62")]){const e=t.getItems()[Oa("0x20")]((t=>t.is("textProxy")))[Oa("0x22")]((t=>t[Oa("0x3d")])),o=this[Oa("0x11")](t),r=o[Oa("0x48")]-o[Oa("0x1c")]+1;if(Oa("0x68")==t[Oa("0x29")])return e[Oa("0x0")]?{type:Oa("0x68"),content:as(n,"*Insert:* %0",as(n,Oa("0x50"),[r,'"'+e[Oa("0x66")](" ")+'"']))}:{type:Oa("0x68"),content:as(n,Oa("0x8"),as(n,Oa("0x7f"),r))};if("deletion"==t.type)return e[Oa("0x0")]?{type:Oa("0x13"),content:as(n,Oa("0x63"),as(n,Oa("0x50"),[r,'"'+e[Oa("0x66")](" ")+'"']))}:{type:Oa("0x13"),content:as(n,Oa("0x63"),as(n,Oa("0x7f"),r))}}})),o._suggestionFactory.registerCustomCallback("insertion",Oa("0x4f"),Oa("0x19"),s),o[Oa("0x4c")][Oa("0x42")]("deletion","tableRow","accept",s),o[Oa("0x4c")][Oa("0x42")](Oa("0x68"),"tableColumn",Oa("0x19"),a),o[Oa("0x4c")].registerCustomCallback("deletion",Oa("0x2c"),Oa("0x2d"),a),o[Oa("0x4c")].registerCustomCallback("insertion",Oa("0x2c"),Oa("0x66"),c),o[Oa("0x4c")][Oa("0x42")](Oa("0x13"),Oa("0x2c"),"join",c),o._suggestionFactory[Oa("0x42")](Oa("0x68"),Oa("0x4f"),"join",l),o[Oa("0x4c")].registerCustomCallback("deletion",Oa("0x4f"),Oa("0x66"),l)}[Oa("0x73")](){const t=this[Oa("0x74")],e=t[Oa("0x3")][Oa("0x7e")][Oa("0x16")];return(n,o)=>{t[Oa("0x3")][Oa("0x44")]((r=>{const{commandName:s,commandParams:x}=o;let a=n[0][Oa("0x6b")][Oa("0x79")];x&&x[0]&&!1===x[0][Oa("0x31")]&&(a=n[0].start[Oa("0x32")]);const c=r[Oa("0x28")](a);if(Oa("0x4")==c[Oa("0x15")].rootName)return;const l=Array[Oa("0x30")](e.getRanges()).map((t=>i.LiveRange[Oa("0x6")](t)));r[Oa("0x10")](c),t[Oa("0x3e")].get(s)[Oa("0x7b")](),x[Oa("0x6f")]({forceDefaultExecution:!0}),t[Oa("0x26")](s,...x);const u=l[Oa("0x20")]((t=>Oa("0x4")!=t[Oa("0x15")][Oa("0x2f")]));u[Oa("0x0")]>0&&r[Oa("0x10")](u);for(const t of l)t[Oa("0x75")]()}))}}[Oa("0x3f")](t){const e=this[Oa("0x74")][Oa("0x7c")][Oa("0x78")](Oa("0x1"));let n=Number.MAX_SAFE_INTEGER,o=Number[Oa("0x53")],r=Number[Oa("0x5f")],s=Number[Oa("0x53")];for(const i of t){if(Oa("0x4")==i[Oa("0x15")][Oa("0x2f")])continue;const{row:t,column:x}=e.getCellLocation(i),a=i[Oa("0x82")]("rowspan")?i[Oa("0x5a")](Oa("0x34"))-1:0,c=i[Oa("0x82")](Oa("0x6c"))?i[Oa("0x5a")](Oa("0x6c"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,r=x<r?x:r,s=x+c>s?x+c:s}return{minRow:n,maxRow:o,minColumn:r,maxColumn:s}}[Oa("0x81")](){const t=this[Oa("0x74")],e=t[Oa("0x7c")][Oa("0x78")]("TrackChangesEditing"),n=t[Oa("0x7c")][Oa("0x78")](Oa("0x1"));this._tableSuggestions=new Set,t[Oa("0x3")][Oa("0x7e")].on("change:data",(()=>{const n=Array[Oa("0x30")](t[Oa("0x3")][Oa("0x7e")][Oa("0x1a")][Oa("0xf")]());for(const{name:t,data:o}of n){const{group:n,id:r,subType:s}=e._splitMarkerName(t);if("suggestion"!=n)continue;if(null!=o[Oa("0x35")])continue;const i=e.getSuggestion(r);this[Oa("0x5e")][Oa("0xe")](s)&&this[Oa("0x1f")][Oa("0x4a")](i)}}),{priority:"low"});const o=(t,e)=>{let o=!1;const r=e[Oa("0x5d")](t),s=t[Oa("0xb")]("table"),i=n[Oa("0x67")](t);for(const e of this._tableSuggestions){const n=e[Oa("0x62")],x=n[Oa("0x47")](Oa("0x4e")),a=n[Oa("0xc")](x?10:5),c=a[Oa("0x64")](),l=c.substr(0,3)+Oa("0x2a"),u="min"+a,d="max"+a;if(!e[Oa("0x43")])continue;if(s!=e[Oa("0x36")]()[Oa("0x60")][Oa("0xb")](Oa("0x54")))continue;if(e.isIntersectingWithRange(r))continue;const g=t[Oa("0x82")](l)?t[Oa("0x5a")](l)-1:0,m=this[Oa("0x11")](e),f=m[u],h=m[d];f<=i[c]&&i[c]+g<=h&&(e[Oa("0x3b")](r),o=!0)}return o};t.model[Oa("0x7e")][Oa("0x58")]((e=>{let n=!1;for(const r of t[Oa("0x3")][Oa("0x7e")].differ[Oa("0xa")]())if(Oa("0x37")==r[Oa("0x29")])if("tableRow"==r[Oa("0x40")])for(const t of r[Oa("0x83")].nodeAfter[Oa("0x1d")]())n=n||o(t,e);else Oa("0x3a")==r[Oa("0x40")]&&(n=n||o(r[Oa("0x83")].nodeAfter,e));return n}))}[Oa("0x11")](t){return this._getCoordsForCells(t[Oa("0x52")]()[Oa("0x22")]((t=>t[Oa("0x60")][Oa("0x32")])))}}function Pa(t){return Array.from(new Set(t)[Oa("0x80")]())}const Da=["_suggestionFactory","element","selection","splitTableCellVertically","mergeTableCells","*Split cell:* horizontally","model","getAncestors","length","filter","getFirstPosition","getRanges","isEnabled","mergeTableCellDown","detach","insertion","from","value","registerCustomCallback","commands","getSelectionAffectedTableCells","deletion","has","plugins","containsRange","stop","splitTableCellHorizontally","isInContent","return","subType","document","TableEditing","*Merge cells*","push","format","formatBlock","_acceptFormatSuggestionCallbackFactory","_areMergableCells","low","mergeTableCellUp","TableUtils","*Split cell:* vertically","author","getSuggestions","createRangeOn","_tablePostFixingSubtypes","execute","mergeTableCellRight","tableCell","markMultiRangeBlockFormat","findAncestor","commandName","change","requires","enableCommand","createTableWalker","setSelection","mergeTableCellLeft","registerDescriptionCallback","_areSelectedCellsMergable","size","type","editor","locale","highest","getCellLocation","find","trackChanges","_descriptionFactory","set:isEnabled","_isForcedDefaultExecutionBlock","add","accept","rootName","map","TrackChangesEditing","refresh","forceDefaultExecution","get"];var Ba,ja;Ba=Da,ja=254,function(t){for(;--t;)Ba.push(Ba.shift())}(++ja);const Ua=function(t,e){return Da[t-=0]};class Ga extends t.Plugin{static get[Ua("0x24")](){return[Fa]}afterInit(){const t=this.editor,e=t[Ua("0x44")][Ua("0xd")][Ua("0x40")],n=t[Ua("0x2e")];if(!t[Ua("0x6")].has(Ua("0xe")))return;const o=t.plugins[Ua("0x3d")](Ua("0x3a")),r=t[Ua("0x6")][Ua("0x3d")](Ua("0x17")),s=t[Ua("0x6")][Ua("0x3d")](Fa);s[Ua("0x1c")][Ua("0x10")](Ua("0x42")),o[Ua("0x25")]("mergeTableCells",(()=>{const e=r[Ua("0x3")](t[Ua("0x44")][Ua("0xd")][Ua("0x40")]);t[Ua("0x44")][Ua("0x23")]((()=>{o.markMultiRangeBlockFormat(e,{commandName:"mergeTableCells",commandParams:[]},[],Ua("0x42"))}))})),t.commands[Ua("0x3d")](Ua("0x42")).on(Ua("0x1d"),((e,n)=>{t[Ua("0x2")][Ua("0x3d")](Ua("0x32"))[Ua("0x0")]&&(n[Ua("0x46")]>0&&n[n.length-1]&&n[n[Ua("0x46")]-1][Ua("0x3c")]||o[Ua("0x35")]||this[Ua("0x2a")]()||e[Ua("0x8")]())}),{priority:Ua("0x2f")});for(const e of[Ua("0x16"),"mergeTableCellRight",Ua("0x4b"),"mergeTableCellLeft"]){const n=t[Ua("0x2")][Ua("0x3d")](e);o[Ua("0x25")](e,(()=>{const e=t[Ua("0x44")][Ua("0xd")].selection[Ua("0x48")]().getAncestors()[Ua("0x31")]((t=>t.is(Ua("0x3f"),Ua("0x1f")))),r=n[Ua("0x0")];t[Ua("0x44")].change((()=>{o[Ua("0x20")]([e,r],{commandName:"mergeTableCells",commandParams:[]},[],Ua("0x42"))}))}))}for(const e of[Ua("0x41"),"splitTableCellHorizontally"]){const n=t[Ua("0x2")][Ua("0x3d")](e);o.enableCommand(e,(()=>{const s=r[Ua("0x3")](t[Ua("0x44")][Ua("0xd")][Ua("0x40")])[0],i=s[Ua("0x21")]("table"),{column:x,row:a}=r[Ua("0x30")](s);let c=[];if("horizontally"==n.direction){const t=r[Ua("0x26")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Ua("0x4e")](t).map((t=>t.cell))}else{const t=r.createTableWalker(i,{column:x,includeAllSlots:!0});c=Array[Ua("0x4e")](t)[Ua("0x39")]((t=>t.cell))}t[Ua("0x44")][Ua("0x23")]((t=>{o.markBlockFormat(t[Ua("0x1b")](s),{commandName:e,commandParams:[]},c,e)}))}))}o._descriptionFactory[Ua("0x29")]((t=>{const{data:e}=t;if(e)return Ua("0x42")==e.commandName?{type:Ua("0x11"),content:as(n,Ua("0xf"))}:void 0})),o[Ua("0x33")][Ua("0x29")]((t=>{const{data:e}=t;if(e)return Ua("0x41")==e[Ua("0x22")]?{type:Ua("0x11"),content:as(n,Ua("0x18"))}:Ua("0x9")==e[Ua("0x22")]?{type:Ua("0x11"),content:as(n,Ua("0x43"))}:void 0}));const x=s[Ua("0x13")]();for(const t of[Ua("0x16"),Ua("0x1e"),Ua("0x4b"),Ua("0x28")])o[Ua("0x3e")].registerCustomCallback(Ua("0x12"),t,Ua("0x37"),x);for(const t of[Ua("0x41"),Ua("0x9")])o[Ua("0x3e")][Ua("0x1")]("formatBlock",t,"accept",x);o[Ua("0x3e")][Ua("0x1")]("formatBlock",Ua("0x42"),Ua("0x37"),(n=>{t.model[Ua("0x23")]((o=>{const r=Array[Ua("0x4e")](e.getRanges())[Ua("0x39")]((t=>i.LiveRange.fromRange(t)));o[Ua("0x27")](n),t.commands.get(Ua("0x42"))[Ua("0x3b")](),t[Ua("0x1d")](Ua("0x42"),{forceDefaultExecution:!0});const s=r[Ua("0x47")]((t=>"$graveyard"!=t.root[Ua("0x38")]));s[Ua("0x46")]>0&&o[Ua("0x27")](s);for(const t of r)t[Ua("0x4c")]()}))}));for(const e of[Ua("0x16"),Ua("0x4b"),Ua("0x28"),"mergeTableCellRight"]){const n=t[Ua("0x2")].get(e);n.on(Ua("0x34"),((e,o,r)=>{if(r){const o=t[Ua("0x44")].document.selection[Ua("0x48")]()[Ua("0x45")]()[Ua("0x31")]((t=>t.is(Ua("0x3f"),Ua("0x1f"))));this[Ua("0x14")](n[Ua("0x0")],o)||(e[Ua("0xb")]=!1,e.stop())}}),{priority:Ua("0x15")})}}[Ua("0x2a")](){const t=this[Ua("0x2d")][Ua("0x2")].get(Ua("0x42")),e=this[Ua("0x2d")][Ua("0x6")].get(Ua("0x17"));if(!t[Ua("0x4a")])return!1;const n=e[Ua("0x3")](this.editor[Ua("0x44")][Ua("0xd")][Ua("0x40")]);for(const t of n)for(const e of n)if(t!=e&&!this._areMergableCells(t,e))return!1;return!0}[Ua("0x14")](t,e){const n=this[Ua("0x2d")][Ua("0x6")].get(Ua("0x3a")),o=this[Ua("0x2d")].model[Ua("0x1b")](t),r=this[Ua("0x2d")][Ua("0x44")][Ua("0x1b")](e),s=new Set,i=new Set;for(const t of n[Ua("0x1a")]())if((Ua("0x4d")==t.type||Ua("0x4")==t.type||Ua("0x42")==t[Ua("0xc")])&&t[Ua("0xa")])for(const e of t[Ua("0x49")]())e.containsRange(o,!0)&&s[Ua("0x36")](t[Ua("0x2c")]+":"+t.author.id),e[Ua("0x7")](r,!0)&&i.add(t[Ua("0x2c")]+":"+t[Ua("0x19")].id);if(s[Ua("0x2b")]!=i[Ua("0x2b")])return!1;for(const t of s)if(!i[Ua("0x5")](t))return!1;return!0}}const Ha=["model","commands","writer","showSuggestionHighlights","locale","toViewElement","ck-suggestion-marker--active","FORMAT_REGULAR_ROW","getSelectionAffectedTableCells","TableEditing","getRowIndexes","childCount","commandParams","_descriptionFactory","commandName","removeMarker:suggestion","editing","getCellLocation","selection","TrackChangesEditing","data-suggestion","nodeBefore","parent","highest","table","_acceptFormatSuggestionCallbackFactory","afterInit","formatBlock","_suggestionFactory","has","setTableColumnHeader","document","consumable","index","first","createRange","last","createPositionBefore","markerName","removeAttribute","unbindElementFromMarkerName","item","getChild","cell","forceValue","getColumnIndexes","addClass","setTableRowHeader","nodeAfter","start","*Format:* %0","from","_splitMarkerName","markBlockFormat","findAncestor","TableUtils","options","mapper","change","headingRows","markerRange","ck-suggestion-marker-","data","addMarker:suggestion","downcastDispatcher","consume","removeClass","accept","requires","registerCustomCallback","FORMAT_HEADER_COLUMN","createTableWalker","plugins","get","format","getAttribute","end","enableCommand","createPositionAfter"];var Wa,Va;Wa=Ha,Va=493,function(t){for(;--t;)Wa.push(Wa.shift())}(++Va);const za=function(t,e){return Ha[t-=0]};class Ka extends t.Plugin{static get[za("0x31")](){return[Fa]}[za("0x7")](){const t=this.editor;if(!t[za("0x35")][za("0xa")](za("0x45")))return;const e=t[za("0x40")],n=t.plugins.get(za("0x0")),o=t[za("0x35")][za("0x36")](za("0x24")),r=t[za("0x35")][za("0x36")](Fa);function s({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(r,s,i)=>{const{type:x,id:a}=n[za("0x21")](s[za("0x13")]),c=n.getSuggestion(a);if(!c[za("0x2b")]||za("0xb")!=c[za("0x2b")][za("0x4a")])return;if(s[za("0x16")])return void r.stop();if(!i[za("0xd")][za("0x2e")](s.markerRange,r.name))return;const l=s[za("0x29")][za("0x1e")][za("0x1d")],u=s[za("0x29")][za("0x39")][za("0x2")],d=l[za("0x3")][za("0x3")],{column:g}=o[za("0x4d")](l),{column:m}=o[za("0x4d")](u);for(let r=g;r<=m;r++){const c=o[za("0x34")](d,{column:r,includeAllSlots:!1});for(const o of c){const r=o[za("0x18")],c=i[za("0x26")][za("0x41")](r);i[za("0x3e")].addClass(za("0x2a")+x,c),e&&i[za("0x3e")].setAttribute(za("0x1"),a,c),i.mapper.bindElementToMarker(c,s[za("0x13")]),t&&(n.activeMarkers.includes(s.markerName)?i[za("0x3e")][za("0x1b")](za("0x42"),c):i[za("0x3e")][za("0x2f")](za("0x42"),c))}}}}n.enableCommand("setTableRowHeader",((e,r)=>{const s=o[za("0x44")](t[za("0x3c")][za("0xc")][za("0x4e")]),i=o[za("0x46")](s),x=s[0].findAncestor("table"),a=x[za("0x38")](za("0x28"))||0,c=r&&null!==r.forceValue?r[za("0x19")]:!t[za("0x3d")].get(za("0x1c")).value,l=c?i[za("0x11")]:i[za("0xf")],u=x[za("0x17")](l);let d;if(c){const e=x[za("0x17")](a);if(u.index<e[za("0xe")])return;d=t[za("0x3c")].createRange(t.model[za("0x12")](e[za("0x17")](0)),t[za("0x3c")].createPositionAfter(u[za("0x17")](u[za("0x47")]-1)))}else{const e=x[za("0x17")](a-1);if(!e)return;d=t[za("0x3c")][za("0x10")](t[za("0x3c")][za("0x12")](u[za("0x17")](0)),t[za("0x3c")][za("0x3b")](e[za("0x17")](e[za("0x47")]-1)))}t[za("0x3c")].change((()=>{n[za("0x22")](d,{commandName:za("0x1c"),commandParams:[{forceValue:c}]},[],za("0x1c"))}))})),n[za("0x3a")]("setTableColumnHeader",((e,o)=>{const r=t.plugins[za("0x36")](za("0x24")),s=r.getSelectionAffectedTableCells(t.model.document[za("0x4e")]),i=r[za("0x1a")](s),x=s[0][za("0x23")](za("0x5")),a=x[za("0x38")]("headingColumns")||0,c=o&&null!==o.forceValue?o[za("0x19")]:!t[za("0x3d")][za("0x36")](za("0xb")).value;let l;const u=x[za("0x17")](0),d=c?i[za("0x11")]:i[za("0xf")],g=r[za("0x34")](x,{startRow:0,column:d,includeAllSlots:!1}),m=Array[za("0x20")](g)[0][za("0x18")];if(c){const e=u[za("0x17")](a);if(m.isBefore(e))return;l=t[za("0x3c")][za("0x10")](t.model[za("0x12")](e),t[za("0x3c")].createPositionAfter(m))}else{const e=u[za("0x17")](a-1);if(!e)return;l=t[za("0x3c")][za("0x10")](t.model.createPositionBefore(m),t.model[za("0x3b")](e))}t[za("0x3c")][za("0x27")]((()=>{n.markBlockFormat(l,{commandName:za("0xb"),commandParams:[{forceValue:c}]},[],"setTableColumnHeader")}))})),t[za("0x4c")][za("0x2d")].on("addMarker:suggestion",s(),{priority:za("0x4")}),t[za("0x2b")].downcastDispatcher.on(za("0x2c"),((t,e,n)=>{n[za("0x25")][za("0x3f")]&&s({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:za("0x4")}),t[za("0x4c")][za("0x2d")].on(za("0x4b"),((t,e,o)=>{const{type:r,id:s}=n._splitMarkerName(e.markerName),i=n.getSuggestion(s);if(!i[za("0x2b")]||za("0xb")!=i[za("0x2b")][za("0x4a")])return;const x=o[za("0x26")].markerNameToElements(e[za("0x13")]);if(x)for(const t of x)o[za("0x3e")][za("0x2f")](za("0x2a")+r,t),o[za("0x3e")][za("0x2f")](za("0x42"),t),o[za("0x3e")][za("0x14")](za("0x1"),t),o[za("0x26")][za("0x15")](t,e[za("0x13")])}),{priority:za("0x4")}),n[za("0x49")].registerDescriptionCallback((t=>{const{data:n}=t;if(n){if(za("0x1c")==n[za("0x4a")]){const t=n[za("0x48")][0].forceValue;return o(as(e,t?"FORMAT_HEADER_ROW":za("0x43")))}if(za("0xb")==n[za("0x4a")]){const t=n[za("0x48")][0][za("0x19")];return o(as(e,t?za("0x33"):"FORMAT_REGULAR_COLUMN"))}}function o(t){return{type:za("0x37"),content:as(e,za("0x1f"),t)}}}));const i=r[za("0x6")]();n._suggestionFactory.registerCustomCallback(za("0x8"),za("0x1c"),"accept",i),n[za("0x9")][za("0x32")](za("0x8"),za("0xb"),za("0x30"),i)}}const qa=["model","markMultiRangeBlockFormat","end","nodeAfter","fromEntries","getContainedElement","high","table","find","Users","getSelectionAffectedTableCells","_tablePostFixingSubtypes","tablePasteCell","getColumnIndexes","getSuggestion","suggestion","has","wrap","insertionRanges","add","subType","selection","setAttribute","previousSibling","element","name","forceDefaultExecution","tableCellBorderWidth","removeMarkers","tableCellPadding","rows","ck-suggestion-marker-insertion","change","for","getSuggestions","_isForcedDefaultExecutionBlock","findAncestor","suggestionLoaded","markMultiRangeInsertion","suggestion-td","createPositionBefore","trackChanges","createElement","markMultiRangeDeletion","markers","commands","markerAttributes","attributes","next","formatBlock","move","author","unwrap","keys","removeRows","rowInsertionIndexes","schema","_getCoordsForCells","tableCellBackgroundColor","differ","endRow","_splitMarkerName","activeMarkers","nextSibling","registerPostFixer","cell","push","previous","markerToHighlight","isInContent","column","removeMarker","afterInit","tableCellVerticalAlignment","endColumn","suggestion:formatBlock:tablePasteCell","root","rootName","remove","editor","TableClipboard","length","start","clipboardOutput","getTableIfOnlyTableInContent","getColumns","dataDowncast","from","startsWith","set","view","columns","createRange","markerName","updateMarker","registerDescriptionCallback","createRangeIn","createTableWalker","content","isEmpty","low","getRanges","getChildren","columnInsertionIndexes","tablePasteColumn","redo","$graveyard","batch","stop","insert","some","every","ck-suggestion-marker","tablePasteRow","document","_createdBatches","getRows","isEqual","insertRows","get","register","columnInsertionRanges","includes","removeColumns","accept","type","listenTo","last","editingDowncast","requires","filter","registerCustomCallback","showSuggestionHighlights","createRangeOn","getItems","cells","fill","_replaceTableSlotCell","suggestionUnloaded","join","tablePasteChainId","getAllAdjacentSuggestions","getSuggestionCallback","tablePaste","_suggestionFactory","tableCellSuggestion","deletion","map","oldRange","insertion","row","reduce","getRowIndexes","paragraph","elementToElement","plugins","setAttributes","options","discard","conversion","getRange","tableCellBorderStyle","newRange","getChild","getChanges","tableCell","getMarkers","containsRange","position","tableCellBorderColor","entries","getChangedMarkers","first"];var Xa,$a;Xa=qa,$a=409,function(t){for(;--t;)Xa.push(Xa.shift())}(++$a);const Qa=function(t,e){return qa[t-=0]},Ja=[Qa("0x89"),Qa("0x6a"),Qa("0x62"),"tableCellHorizontalAlignment",Qa("0xa"),Qa("0xa8"),Qa("0x8b")],Za=Object[Qa("0x72")](Ja[Qa("0x54")]((t=>[t,null])));class Ya extends t.Plugin{static get[Qa("0x42")](){return[Fa]}[Qa("0x9")](){const t=this[Qa("0x10")];if(!t[Qa("0x5c")].has(Qa("0x11")))return;const n=t[Qa("0x5c")].get("TrackChangesEditing"),o=t[Qa("0x5c")][Qa("0x38")]("TableUtils"),r=t[Qa("0x5c")][Qa("0x38")](Fa),s=t[Qa("0x5c")][Qa("0x38")]("TableClipboard");r[Qa("0x79")][Qa("0x3")](Qa("0x32"),Qa("0x29")),t[Qa("0x6e")][Qa("0xa6")][Qa("0x39")](Qa("0x52"),{allowIn:"tableCell",allowContentOf:Qa("0x66"),isLimit:!0}),t[Qa("0x60")][Qa("0x5b")]({model:Qa("0x52"),view:Qa("0x95")});let i=null;t[Qa("0x6e")].on("insertContent",((r,x)=>{const[a,c]=x,l=x[x[Qa("0x12")]-1];l&&l[Qa("0x88")]||n[Qa("0x91")]||this[Qa("0x10")][Qa("0x9b")][Qa("0x38")](Qa("0x97")).value&&function(t,e,n,o,r){if(e&&!e.is("documentSelection"))return!1;const s=r[Qa("0x15")](t,n);if(!s||!ec(s,null,o))return!1;const i=o[Qa("0x78")](n[Qa("0x33")][Qa("0x83")]);if(!i.length)return!1;const x=i[0].findAncestor("table"),a=o[Qa("0x59")](i),c=o[Qa("0x7b")](i),l={startRow:a[Qa("0x6d")],endRow:a[Qa("0x40")],startColumn:c[Qa("0x6d")],endColumn:c[Qa("0x40")]};return 1==i.length&&(l[Qa("0xaa")]+=o[Qa("0x35")](s)-1,l[Qa("0xb")]+=o[Qa("0x16")](s)-1),ec(x,l,o)}(a,c,t[Qa("0x6e")],o,s)&&(r[Qa("0x2d")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t.model[Qa("0x8e")]((()=>{t[Qa("0x6e")].insertContent(x[0],x[1],x[2],x[3],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:r,columnInsertionRanges:s,insertionRanges:a,deletionRanges:c,cells:l}=i;r[Qa("0x12")]&&n.markMultiRangeInsertion(r,Qa("0x32"),{tablePasteChainId:o}),s[Qa("0x12")]&&n.markMultiRangeInsertion(s,Qa("0x29"),{tablePasteChainId:o}),a[Qa("0x12")]&&n[Qa("0x94")](a,Qa("0x50"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Qa("0x12")]&&n[Qa("0x99")](c,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0});const u=n[Qa("0x6f")](l[Qa("0x54")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Qa("0x7a"),{tablePasteChainId:o});if(u){const e=u[Qa("0x67")](),n=[];for(const{element:o,attributes:r}of l){if(!r)continue;const s=t[Qa("0x6e")].createRangeOn(o),i=e.find((t=>t[Qa("0x61")]().isEqual(s)));i&&n[Qa("0x3")]([i.name,r])}n.length&&u[Qa("0x84")](Qa("0x9c"),Object[Qa("0x72")](n))}i=null})))}),{priority:e.priorities[Qa("0x74")]+10}),t[Qa("0x5c")][Qa("0x38")](Qa("0x11")).on(Qa("0x4a"),((t,e)=>{const[n,o,,r]=e;if(!i)return;t[Qa("0x2d")]();const s=n[Qa("0x2")],x=o,a=tc(s),c=tc(x);t.return=s;let l=null,u=null;if(c||a)if(a&&!c){r[Qa("0xf")](s[Qa("0x64")](0));for(const t of Array[Qa("0x18")](x[Qa("0x27")]()))r[Qa("0x2e")](t,s,Qa("0x70"));const t=i[Qa("0xa5")][Qa("0x3b")](n[Qa("0x57")]),e=i[Qa("0x28")].includes(n[Qa("0x7")]);t||e||(l=r[Qa("0x21")](s))}else c&&!a&&(u=r[Qa("0x21")](s));else{const t=r.createElement("tableCellSuggestion"),e=r[Qa("0x98")](Qa("0x52"));r[Qa("0x7f")](r[Qa("0x21")](s),e),r[Qa("0x2e")](t,s,0);for(const e of Array[Qa("0x18")](x[Qa("0x27")]()))r[Qa("0x2e")](e,t,"end");l=r[Qa("0x46")](t),u=r[Qa("0x46")](e)}const d=Array[Qa("0x18")](x.getAttributes())[Qa("0x43")]((([t])=>Ja[Qa("0x3b")](t)));i[Qa("0x48")][Qa("0x3")]({element:s,attributes:d[Qa("0x12")]?Object.fromEntries(d):null}),l&&i[Qa("0x80")][Qa("0x3")](l),u&&i.deletionRanges[Qa("0x3")](u)}),{priority:"high"}),o.on("insertColumns",((e,n)=>{const[r,s={}]=n;if(!i)return;const x=s.at||0,a=s[Qa("0x1c")]||1;i[Qa("0x28")]=new Array(a)[Qa("0x49")](x)[Qa("0x54")](((t,e)=>t+e));for(const{cell:e}of o[Qa("0x22")](r,{startColumn:x,endColumn:x+a-1}))i[Qa("0x3a")][Qa("0x3")](t[Qa("0x6e")][Qa("0x46")](e))}),{priority:Qa("0x25")}),o.on(Qa("0x37"),((e,n)=>{const[r,s={}]=n;if(!i)return;const x=s.at||0,a=s[Qa("0x8c")]||1;i.rowInsertionIndexes=new Array(a)[Qa("0x49")](x)[Qa("0x54")](((t,e)=>t+e));for(const{cell:e}of o[Qa("0x22")](r,{startRow:x,endRow:x+a-1}))i.rowInsertionRanges[Qa("0x3")](t[Qa("0x6e")].createRangeOn(e))}),{priority:Qa("0x25")}),n._descriptionFactory[Qa("0x20")]((e=>{if(e[Qa("0x82")]&&e[Qa("0x82")][Qa("0x19")]("tablePaste"))return e[Qa("0x4")]?{}:{type:Qa("0x56"),content:as(t.locale,"*Replace table cells*")}}));const x=()=>{};for(const t of[Qa("0x50"),Qa("0x29"),"tablePasteRow",Qa("0x7a")])n[Qa("0x51")][Qa("0x44")]("insertion",t,"join",x),n[Qa("0x51")][Qa("0x44")](Qa("0x53"),t,Qa("0x4c"),x);n._suggestionFactory[Qa("0x44")](Qa("0x9f"),Qa("0x7a"),Qa("0x5f"),x),n[Qa("0x51")][Qa("0x44")]("formatBlock",Qa("0x7a"),Qa("0x3d"),((e,n,o)=>{const r=e.map((t=>t.getContainedElement()))[Qa("0x43")]((t=>t)),s=new Map(r[Qa("0x54")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Qa("0x48")])e&&s[Qa("0x1a")](t,e);else if(o&&o[Qa("0x9c")])for(const[e,n]of Object[Qa("0x6b")](o[Qa("0x9c")])){const o=t.model[Qa("0x9a")][Qa("0x38")](e),r=o?o[Qa("0x61")]()[Qa("0x73")]():null;r&&s[Qa("0x1a")](r,n)}t[Qa("0x6e")][Qa("0x8e")]((t=>{for(const[e,n]of s)t[Qa("0x5d")]({...Za,...n},e)}))}));const a=(e,o)=>{n[Qa("0x51")].registerCustomCallback(e,Qa("0x50"),o,((r,s,i)=>{t.model.change((t=>{const x=[];for(const t of r){const e=t[Qa("0x13")][Qa("0x71")];e.is(Qa("0x86"),Qa("0x52"))&&x.push(e)}n[Qa("0x51")][Qa("0x4f")](e,null,o)(r,s,i);for(const e of x)Qa("0x2b")!=e[Qa("0xd")][Qa("0xe")]&&t.unwrap(e)}))}))};a(Qa("0x56"),Qa("0x3d")),a(Qa("0x56"),Qa("0x5f")),a(Qa("0x53"),Qa("0x3d")),a(Qa("0x53"),Qa("0x5f")),n[Qa("0x51")][Qa("0x44")](Qa("0x56"),Qa("0x32"),Qa("0x5f"),(t=>{const e=t[Qa("0x54")]((t=>t[Qa("0x73")]())),n=e[0][Qa("0x92")](Qa("0x75")),{minRow:s,maxRow:i}=r[Qa("0xa7")](e);o[Qa("0xa4")](n,{at:s,rows:i-s+1})})),n[Qa("0x51")][Qa("0x44")](Qa("0x56"),Qa("0x29"),Qa("0x5f"),(t=>{const e=t.map((t=>t.getContainedElement())),n=e[0][Qa("0x92")]("table"),{minColumn:s,maxColumn:i}=r[Qa("0xa7")](e);o[Qa("0x3c")](n,{at:s,columns:i-s+1})}));const c=(t,e)=>{if(!e[Qa("0x82")]||!e[Qa("0x82")][Qa("0x19")](Qa("0x50")))return;const o=e[Qa("0x9d")][Qa("0x4d")],r=n[Qa("0x90")]()[Qa("0x43")]((t=>t[Qa("0x6")]&&t[Qa("0x9d")]&&t[Qa("0x9d")][Qa("0x4d")]==o));r[Qa("0x12")]&&e[Qa("0x4e")]()[Qa("0x12")]!=r[Qa("0x12")]&&r[Qa("0x58")](((t,e)=>(t[Qa("0x9e")]=e,e[Qa("0x4")]=t,e)))};function l(t,{showActiveMarker:e=!0}={}){const{id:o}=n._splitMarkerName(t[Qa("0x1e")]),r=[Qa("0x31"),Qa("0x8d")],s=n[Qa("0xac")].includes(t[Qa("0x1e")]);return s&&r[Qa("0x3")]("ck-suggestion-marker--active"),{classes:r,attributes:{"data-suggestion":o},priority:s&&e?3010:3e3}}n.on(Qa("0x93"),c,{priority:Qa("0x74")}),n.on(Qa("0x4b"),c,{priority:"high"}),t[Qa("0x6e")][Qa("0x33")][Qa("0x1")]((()=>{let e=!1;const o=Array.from(t[Qa("0x6e")][Qa("0x33")][Qa("0xa9")][Qa("0x6c")]());for(const{name:r,data:s}of o){const{group:o,type:i,id:x}=n[Qa("0xab")](r);if(Qa("0x7d")!=o||Qa("0x53")!=i||s.oldRange)continue;if(!n.hasSuggestion(x))continue;const a=n[Qa("0x7c")](x)[Qa("0x26")](),c=t[Qa("0x5c")][Qa("0x38")](Qa("0x77")).me;for(const t of n[Qa("0x90")]())if(t[Qa("0x6")]&&t.author==c&&Qa("0x9f")==t[Qa("0x3e")]&&"tablePasteCell"==t[Qa("0x82")]&&t[Qa("0x26")]()[Qa("0x30")]((t=>a[Qa("0x2f")]((e=>e[Qa("0x68")](t,!0))))))for(const n of t.getAllAdjacentSuggestions())n[Qa("0x6")]&&(n.discard(),e=!0)}return e})),t[Qa("0x6e")][Qa("0x33")][Qa("0x1")]((e=>{const o=t[Qa("0x9b")][Qa("0x38")](Qa("0x2a"));if(!o||!o[Qa("0x34")][Qa("0x7e")](e[Qa("0x2c")]))return!1;let r=!1;const s=t[Qa("0x5c")][Qa("0x38")](Qa("0x77")).me,i=t[Qa("0x6e")][Qa("0x33")].differ[Qa("0x65")](),x=Array.from(t[Qa("0x6e")].document[Qa("0xa9")][Qa("0x6c")]())[Qa("0x43")]((({name:t,data:e})=>{const{group:o,subType:r,authorId:i}=n[Qa("0xab")](t);return Qa("0x7d")==o&&Qa("0x50")==r&&i==s.id&&!e[Qa("0x55")]}));for(const t of i){if(Qa("0x2e")!=t[Qa("0x3e")]||Qa("0x52")!=t[Qa("0x87")]||1!=t[Qa("0x12")])continue;const n=e[Qa("0x1d")](t.position,t[Qa("0x69")].getShiftedBy(1));if(!x[Qa("0x76")]((({data:t})=>t[Qa("0x63")][Qa("0x36")](n))))for(const{name:t,data:o}of x)if(n[Qa("0x68")](o.newRange)){e[Qa("0x1f")](t,{range:n}),r=!0;break}}return r})),t[Qa("0x6e")][Qa("0x33")].registerPostFixer((e=>{let o=!1;const r=t.plugins.get("Users").me,s=n.getSuggestions().filter((t=>t[Qa("0x6")]&&t[Qa("0xa1")]==r)),i=new Set,x=new Set;for(const t of s)if(Qa("0x50")==t[Qa("0x82")])for(const e of t[Qa("0x67")]()){const n=e[Qa("0x61")]()[Qa("0x73")]();if(n)if(n.is(Qa("0x86"),Qa("0x52"))&&tc(n)){t[Qa("0x8")](e[Qa("0x87")]),i[Qa("0x81")](n),o=!0;const r=n[Qa("0x0")],s=n[Qa("0x85")],a=r&&r.is(Qa("0x86"),Qa("0x52")),c=s&&s.is(Qa("0x86"),Qa("0x52"));a&&!i.has(r)&&x[Qa("0x81")](r),c&&!i[Qa("0x7e")](s)&&x.add(s)}else n.is(Qa("0x86"),Qa("0x5a"))&&n[Qa("0x24")]&&(t[Qa("0x8")](e[Qa("0x87")]),o=!0)}else if(Qa("0x7a")==t[Qa("0x82")]){if(!t[Qa("0x9d")]||!t[Qa("0x9d")].tablePasteChainId)continue;const e=t.attributes[Qa("0x9c")];if(e&&Object[Qa("0xa3")](e).length)continue;const n=t[Qa("0x9d")][Qa("0x4d")];let r=!0,i=!0;for(const e of s)if(e[Qa("0x82")]&&e[Qa("0x82")][Qa("0x19")](Qa("0x50"))){if(!e[Qa("0x9d")].tablePasteChainId){i=!1;break}if(e.id!=t.id&&e.attributes.tablePasteChainId==n){r=!1;break}}i&&r&&(t[Qa("0x8a")](),o=!0)}for(const t of i)e[Qa("0xf")](t);for(const t of x)e[Qa("0xa2")](t);return o})),t[Qa("0x60")].for(Qa("0x41"))[Qa("0x5")]({model:Qa("0xc"),view:l,converterPriority:Qa("0x74")}),t[Qa("0x60")][Qa("0x8f")](Qa("0x17"))[Qa("0x5")]({model:Qa("0xc"),view:(t,e)=>{if(e[Qa("0x5e")][Qa("0x45")])return l(t,{showActiveMarker:!1})},converterPriority:Qa("0x74")});const u=t.editing[Qa("0x1b")];this[Qa("0x3f")](u[Qa("0x33")],Qa("0x14"),((t,e)=>{const n=[];for(const t of u[Qa("0x21")](e[Qa("0x23")])[Qa("0x47")]())t.is(Qa("0x86"),Qa("0x95"))&&n[Qa("0x3")](t);u[Qa("0x8e")]((t=>{for(const e of n)t[Qa("0xa0")](t[Qa("0x21")](e),t[Qa("0x96")](e)),t[Qa("0xf")](e)}))}))}}function tc(t){if(t.isEmpty)return!0;const e=t.getChild(0);return e.is(Qa("0x86"),Qa("0x5a"))&&e[Qa("0x24")]}function ec(t,e={},n){for(const{isAnchor:o,cellHeight:r,cellWidth:s}of n[Qa("0x22")](t,{includeAllSlots:!0,...e}))if(!o||1!=r||1!=s)return!1;return!0}const nc=["model","selection","has","registerCustomCallback","editor","TableColumnResizeEditing","formatGroupId","locale","setAttribute","handleResizeTableWidthCommand","_suggestionFactory","getSuggestions","handleSuggestionDescription","columnWidths","tableWidth","bind","formatBlock","getAttribute","plugins","document","markBlockFormat","get","table","_descriptionFactory","Users","resizeTable","getContainedElement","TrackChangesEditing","enableCommand","accept","data","*Format:* resize table","discard","resizeTableWidth","getSuggestionCallback"];var oc,rc;oc=nc,rc=475,function(t){for(;--t;)oc.push(oc.shift())}(++rc);const sc=function(t,e){return nc[t-=0]};class ic extends t.Plugin{afterInit(){if(!this[sc("0x13")].plugins[sc("0x11")](sc("0x14")))return;const t=this.editor.plugins[sc("0x1")](sc("0x7"));t[sc("0x8")](sc("0xd"),this[sc("0x18")].bind(this)),t[sc("0x8")]("resizeColumnWidths",this.handleResizeTableWidthCommand[sc("0x1e")](this)),t[sc("0x19")][sc("0x12")](sc("0x1f"),sc("0x5"),sc("0x9"),t[sc("0x19")].getSuggestionCallback(sc("0x1f"),null,sc("0xc"))),t[sc("0x19")].registerCustomCallback(sc("0x1f"),sc("0x5"),"discard",t[sc("0x19")][sc("0xe")](sc("0x1f"),null,sc("0x9"))),t[sc("0x3")].registerDescriptionCallback(this[sc("0x1b")].bind(this))}[sc("0x18")](t,e){const n=this[sc("0x13")][sc("0x21")][sc("0x1")](sc("0x7")),o=e[sc("0x2")]||this[sc("0x13")].model[sc("0x22")][sc("0x10")].getSelectedElement();this[sc("0x13")][sc("0xf")].change((t=>{let r=o[sc("0x20")](sc("0x1d"))||null,s=o.getAttribute(sc("0x1c"))||null;const i=e[sc("0x1d")]||r,x=e[sc("0x1c")]||s,a=this[sc("0x13")][sc("0x21")][sc("0x1")](sc("0x4")).me;for(const t of n[sc("0x1a")]()){const e=t[sc("0x6")]();if(sc("0x5")===t.subType&&e===o){t.author!==a&&t.discard(),r=t[sc("0xa")].commandParams[0][sc("0x1d")],s=t[sc("0xa")].commandParams[0].columnWidths;break}}t[sc("0x17")](sc("0x1d"),i,o),t.setAttribute(sc("0x1c"),x,o),n[sc("0x0")](o,{commandName:"resizeTableWidth",commandParams:[{tableWidth:r,columnWidths:s}],formatGroupId:"resizeTable"},[],sc("0x5"))}))}handleSuggestionDescription(t){const{data:e}=t;if(e&&"resizeTable"===e[sc("0x15")]){const t=sc("0xb");return{type:"format",content:as(this.editor[sc("0x16")],t)}}}}const xc=["locale","removeMarker","title-content","registerElementLabel","_splitMarkerName","forward","ELEMENT_TITLE","getChangedMarkers","nodeBefore","isEqual","isTouching","plugins","differ","model","getNearestSelectionRange","end","document","isCollapsed","newRange","TrackChangesEditing","editor","_descriptionFactory","start","schema","from","updateMarker","Title","afterInit","element","suggestion"];var ac,cc;ac=xc,cc=222,function(t){for(;--t;)ac.push(ac.shift())}(++cc);const lc=function(t,e){return xc[t-=0]};class uc extends t.Plugin{[lc("0xf")](){const t=this[lc("0x8")];if(!t[lc("0x1d")].has(lc("0xe")))return;const e=t[lc("0x1d")].get(lc("0x7"));e[lc("0x9")][lc("0x15")](lc("0x14"),(()=>as(t[lc("0x12")],lc("0x18")))),t.model[lc("0x4")].registerPostFixer((n=>{let o=!1;const r=Array[lc("0xc")](t[lc("0x1")][lc("0x4")][lc("0x0")][lc("0x19")]());for(const{name:s,data:i}of r){const{group:r}=e[lc("0x16")](s);if(lc("0x11")!==r||!i[lc("0x6")])continue;const x=i[lc("0x6")],a=x[lc("0x3")][lc("0x1a")];if(!a||!a.is(lc("0x10"),lc("0x14")))continue;if(!x.start[lc("0x1c")](x[lc("0x3")]))continue;const c=t.model[lc("0xb")][lc("0x2")](x.end,lc("0x17"));if(c&&c[lc("0x5")]){const t=n.createRange(x[lc("0xa")],c[lc("0xa")]);t[lc("0x1b")](x)||(n[lc("0xd")](s,{range:t}),o=!0)}o||(n[lc("0x13")](s),o=!0)}return o}))}}const dc=["has","TrackChangesEditing","redo","undo","afterInit","plugins","editor"];var gc,mc;gc=dc,mc=418,function(t){for(;--t;)gc.push(gc.shift())}(++mc);const fc=function(t,e){return dc[t-=0]};class hc extends t.Plugin{[fc("0x6")](){const t=this[fc("0x1")],e=t[fc("0x0")].get(fc("0x3"));t[fc("0x0")][fc("0x2")]("UndoEditing")&&(e.enableCommand(fc("0x5")),e.enableCommand(fc("0x4")))}}const pc=["get","enableCommand","requires","has","plugins","TrackChangesEditing"];var bc,Ec;bc=pc,Ec=468,function(t){for(;--t;)bc.push(bc.shift())}(++Ec);const _c=function(t,e){return pc[t-=0]};class Tc extends t.Plugin{static get[_c("0x2")](){return[Fa]}afterInit(){const t=this.editor;t[_c("0x4")][_c("0x3")]("TableCaptionEditing")&&t.plugins[_c("0x0")](_c("0x5"))[_c("0x1")]("toggleTableCaption")}}const Cc=["config","toUpperCase","handleListReversedCommand","push","editor","isListItemBlock","replaceAll","listReversed","startIndex","DocumentListUtils","_descriptionFactory","isFirstBlockOfListItem","plugins","numbered","model","TrackChangesEditing","getAttribute","filter","DocumentListPropertiesUtils","styles","listStart","_getSuggestionBlocks","get","markMultiRangeBlockFormat","*Change to:* %0","handleDescriptions","handleListStyleCommand","enableCommand","*Format:* set order to regular","getSelectedBlocks","afterInit","list.properties","reversed","locale","change","ELEMENT_","length","_LIST_","listStyle","listType","registerDescriptionCallback","bind","commandName","from","hasAttribute","format","_getTranslationKeyForListStyle","DocumentListPropertiesEditing","*Format:* set start index to %0","expandListBlocksToCompleteList","handleListStartCommand","commandParams","selection"];var yc,kc;yc=Cc,kc=415,function(t){for(;--t;)yc.push(yc.shift())}(++kc);const Ac=function(t,e){return Cc[t-=0]};class vc extends t.Plugin{[Ac("0x27")](){if(!this[Ac("0xd")].plugins.has(Ac("0x3")))return;const t=this[Ac("0xd")][Ac("0x9")][Ac("0x1f")](Ac("0x28")),e=this[Ac("0xd")][Ac("0x15")][Ac("0x1f")](Ac("0x18"));t[Ac("0x1c")]&&e[Ac("0x24")](Ac("0x2f"),this.handleListStyleCommand.bind(this)),t[Ac("0x29")]&&e[Ac("0x24")](Ac("0x10"),this[Ac("0xb")][Ac("0x32")](this)),t[Ac("0x11")]&&e.enableCommand(Ac("0x1d"),this[Ac("0x6")].bind(this)),e[Ac("0x13")][Ac("0x31")](this[Ac("0x22")][Ac("0x32")](this))}[Ac("0x23")](t,e){const n=this.editor[Ac("0x15")][Ac("0x1f")](Ac("0x18")),o=this[Ac("0x1e")]((t=>t[Ac("0x0")]("listType")));null!==o&&this.editor[Ac("0x17")][Ac("0x2b")]((()=>{n[Ac("0x20")](o,{commandName:Ac("0x2f"),commandParams:[{type:e.type}],formatGroupId:Ac("0x2f")})}))}[Ac("0xb")](t,e){const n=this[Ac("0xd")].plugins.get(Ac("0x18")),o=this[Ac("0xd")][Ac("0x15")][Ac("0x1f")](Ac("0x12")),r=this[Ac("0x1e")]((t=>o[Ac("0xe")](t)&&Ac("0x16")===t[Ac("0x19")](Ac("0x30"))));null!==r&&this[Ac("0xd")].model[Ac("0x2b")]((()=>{n[Ac("0x20")](r,{commandName:"listReversed",commandParams:[{reversed:e[Ac("0x29")]}],formatGroupId:"listReversed"})}))}[Ac("0x6")](t,e){const n=this[Ac("0xd")][Ac("0x15")].get(Ac("0x18")),o=this[Ac("0xd")][Ac("0x15")][Ac("0x1f")]("DocumentListUtils"),r=this[Ac("0x1e")]((t=>o[Ac("0xe")](t)&&Ac("0x16")===t.getAttribute("listType")));null!==r&&this[Ac("0xd")][Ac("0x17")][Ac("0x2b")]((()=>{n[Ac("0x20")](r,{commandName:Ac("0x1d"),commandParams:[{startIndex:e[Ac("0x11")]}],formatGroupId:Ac("0x1d")})}))}[Ac("0x22")](t){const e=this[Ac("0xd")][Ac("0x2a")],{data:n}=t;if(!n)return;let o,r;switch(n[Ac("0x33")]){case Ac("0x2f"):o=Ac("0x21"),r={type:Ac("0x1"),content:as(e,o,as(e,this[Ac("0x2")](n[Ac("0x7")][0].type)))};break;case Ac("0x10"):o=n[Ac("0x7")][0].reversed?"*Format:* set order to reversed":Ac("0x25"),r={type:Ac("0x1"),content:as(e,o)};break;case"listStart":o=Ac("0x4"),r={type:Ac("0x1"),content:as(e,o,n[Ac("0x7")][0][Ac("0x11")])}}return r}[Ac("0x1e")](t){const e=this[Ac("0xd")].plugins[Ac("0x1f")](Ac("0x12"));let n=Array[Ac("0x34")](this[Ac("0xd")][Ac("0x17")].document[Ac("0x8")][Ac("0x26")]())[Ac("0x1a")](t);if(!n[Ac("0x2d")])return null;n=e[Ac("0x5")](n);const o=[];for(const t of n)e[Ac("0x14")](t)&&o[Ac("0xc")](t);return o}[Ac("0x2")](t){return Ac("0x2c")+this[Ac("0xd")].plugins[Ac("0x1f")](Ac("0x1b")).getListTypeFromListStyleType(t)[Ac("0xa")]()+Ac("0x2e")+t[Ac("0xa")]()[Ac("0xf")]("-","_")}}const Rc=["tableCellHeight","handleDiscardAction","_descriptionFactory","enableCommand","registerCustomCallback","has","tableProperties","_suggestionFactory","document","tableCellProperties","TrackChangesTableProperties","*Format:* change table properties","findAncestor","discard","tableCellPadding","data","subType","registerDescriptionCallback","table","tableWidth","get","*Format:* change table cell properties","getSelectionAffectedTableCells","TrackChangesEditing","TableUtils","tableBorderStyle","locale","editor","afterInit","tableBackgroundColor","tableCellBorderColor","formatBlock","_getSuggestion","plugins","getSuggestions","tableCellBorderStyle","getContainedElement","handleSuggestionDescription","tableCellHorizontalAlignment","change","getSuggestionCallback","accept","tableCellVerticalAlignment","enqueueChange","removeAttribute","batch","tableBorderWidth","selection","commandParams","tableCellBorderWidth","join","start","_handlePropertyChange","pluginName","format","model"];var Ic,Sc;Ic=Rc,Sc=144,function(t){for(;--t;)Ic.push(Ic.shift())}(++Sc);const Lc=function(t,e){return Rc[t-=0]};class Mc extends t.Plugin{static get[Lc("0x15")](){return Lc("0x22")}[Lc("0x34")](){const t=this[Lc("0x33")][Lc("0x1")][Lc("0x2c")]("TrackChangesEditing");if(this[Lc("0x33")].plugins[Lc("0x1d")]("TablePropertiesEditing")){this[Lc("0x1e")]=["tableBorderColor",Lc("0x31"),Lc("0xe"),"tableAlignment",Lc("0x2b"),"tableHeight",Lc("0x35")];for(const e of this[Lc("0x1e")])t[Lc("0x1b")](e,((t,n)=>{const o=this[Lc("0x33")].model[Lc("0x20")][Lc("0xf")].getFirstPosition()[Lc("0x24")](Lc("0x2a"));this[Lc("0x14")](e,[o],this[Lc("0x1e")],Lc("0x1e"),t,n)}));t[Lc("0x1f")][Lc("0x1c")]("formatBlock",Lc("0x1e"),Lc("0x9"),t[Lc("0x1f")][Lc("0x8")]("formatBlock",null,Lc("0x25"))),t[Lc("0x1f")][Lc("0x1c")](Lc("0x37"),Lc("0x1e"),Lc("0x25"),((t,e)=>this[Lc("0x19")](this.tableProperties,t,e))),t._suggestionFactory[Lc("0x1c")](Lc("0x37"),Lc("0x1e"),Lc("0x12"),(()=>!1))}if(this[Lc("0x33")][Lc("0x1")].has("TableCellPropertiesEditing")){this[Lc("0x21")]=[Lc("0x36"),Lc("0x3"),Lc("0x11"),Lc("0x26"),"tableCellWidth",Lc("0x18"),"tableCellBackgroundColor",Lc("0x6"),Lc("0xa")];for(const e of this.tableCellProperties)t.enableCommand(e,((t,n)=>{const o=this[Lc("0x33")].plugins[Lc("0x2c")](Lc("0x30"))[Lc("0x2e")](this[Lc("0x33")][Lc("0x17")].document.selection);this[Lc("0x14")](e,o,this[Lc("0x21")],Lc("0x21"),t,n)}));t[Lc("0x1f")].registerCustomCallback(Lc("0x37"),Lc("0x21"),Lc("0x9"),t[Lc("0x1f")][Lc("0x8")](Lc("0x37"),null,Lc("0x25"))),t._suggestionFactory.registerCustomCallback(Lc("0x37"),"tableCellProperties",Lc("0x25"),((t,e)=>this[Lc("0x19")](this[Lc("0x21")],t,e))),t[Lc("0x1f")][Lc("0x1c")](Lc("0x37"),"tableCellProperties",Lc("0x12"),(()=>!1))}t[Lc("0x1a")][Lc("0x29")]((t=>this[Lc("0x5")](t)))}[Lc("0x14")](t,e,n,o,r,s){const i=this[Lc("0x33")].plugins[Lc("0x2c")]("TrackChangesEditing");this[Lc("0x33")][Lc("0x17")][Lc("0xb")](s[Lc("0xd")],(()=>{for(const t of e)if(this[Lc("0x0")](t,o))r(s);else{const e={};for(const o of n){const n=t.getAttribute(o);void 0!==n&&(e[o]=n)}r(s),i.markBlockFormat(t,{commandParams:[e]},[],o)}}))}[Lc("0x19")](t,e,n){const o=e[0][Lc("0x13")].nodeAfter,r=n[Lc("0x10")][0];this[Lc("0x33")].model[Lc("0x7")]((e=>{for(const n of t)void 0!==r[n]?e.setAttribute(n,r[n],o):e[Lc("0xc")](n,o)}))}[Lc("0x5")](t){if(t[Lc("0x27")])switch(t[Lc("0x28")]){case Lc("0x1e"):return{type:Lc("0x16"),content:as(this[Lc("0x33")][Lc("0x32")],Lc("0x23"))};case Lc("0x21"):return{type:Lc("0x16"),content:as(this.editor[Lc("0x32")],Lc("0x2d"))}}}[Lc("0x0")](t,e){const n=this[Lc("0x33")][Lc("0x1")][Lc("0x2c")](Lc("0x2f"));for(const o of n[Lc("0x2")]({skipNotAttached:!0})){const n=o[Lc("0x4")]();if(o[Lc("0x28")]===e&&n===t)return o}return null}}const Nc=["_cutOutSuggestionMarker","change","_editor","deletion:discard","range","error-saving-suggestion-data-suggestion-discarded","_isForcedDefaultExecutionBlock","name","split","authoredAt","ck-suggestion-marker-","locale","discardSuggestion","formatInline","getAncestors","addMarker:suggestion:formatBlock","getRanges","dataReady","substr","after","requires","_adapter","insertion:","dataToMarker","newRange","suggestionChanged","accept","dataDowncast","track-changes-adapter-already-set","isAfter","execute","data","markers","formatGroupId","skipNestingCheck","commands","acceptSuggestion","_defaultCallbacks","_customCallbacks","getFirstRange","data-suggestion","next","some","addRange","addSuggestionData","containsRangeInObject","join","adapter","fetchCommentThread","_suggestionFactory","_enabledCommands","commentThread","isBefore","getSuggestion","documentSelection","createRangeIn","move","clone","isAtEnd","_onDiscard","deletion:","has","bindElementToMarker","addComment","subType","head","forceDefaultExecution","getUser","markerReady","_suggestions","markMultiRangeDeletion","showSuggestionHighlights","get","getDifference","writer","getMarkers","_commentsRepository","size","update:suggestion","markerName","getIntersection","position","author","CommentsRepository","_checkSuggestionCorrectness","formatBlock:join","$marker","trackChanges","every","_handleNewSuggestionMarker","removed","removeAttribute","formatBlock","targetPosition","insertion:join","enableCommand","getAllAdjacentSuggestions","conversion","PendingActions","hasComments","markMultiRangeBlockFormat","sort","multipleBlocks","unbind","suggestion","delete","trackChanges.trackFormatChanges","plugins","isLocal","suggestion:","activeMarkers","mapper","deleteContent","deletion:chain","change:activeMarkers","isIntersectingWithRange","track-changes-adapter-missing-getsuggestion","listenTo","element","end","_setSuggestionRange","deletion","getShiftedBy","insertContent","type","remove","deletion:accept","marker-count","insertion","removeMarker","value","filter","isLimit","formatBlock:discard","document","_removeSuggestion","_getExternalAuthor","removeMarkers","formatInline:discard","includes","toViewElement","track-changes-command-not-found","_saved","@external","accepted","_joinSuggestions","isCollapsed","getSuggestionCallback","Users","map","consume","addSuggestion","low","resolve","schema","consumable","_suggestionState","createSelection","getChangedMarkers","containsPosition","upcast","start","acceptSelectedSuggestions","_createSuggestion","formatBlock:accept","_model","getNearestSelectionRange","_rangeIsInLocalUserInsertion","_refreshSuggestionsChain","discard","detach","ck-suggestion-marker-formatBlock","previous","isObject","length","markMultiRangeInsertion","push","fromCharCode","collaboration.channelId","isDocumentOperation","group","enqueueChange","TrackChangesEditing","track-changes-suggestion-not-found","unbindElementFromMarkerName","getSuggestions","createPositionAt","define","open","discardAllSuggestions","_getAuthorFromId","editor","trackChangesCommand","isRemovable","addMarkerName","registerPostFixer","buildSuggestion","isSelectable","track-changes-suggestion-data-mismatch","for","formatInline:join","updateMarker","discardSelectedSuggestions","markInlineFormat","elementStart","lowest","normal","nodeBefore","insert","differ","markerToData","containsItem","root","ready","acceptAllSuggestions","then","getCustomProperty","createdAt","external:","batch","removeClass","_descriptionFactory","creator","from","highest","_updateSuggestionData","isInContent","model","high","markBlockFormat","markInsertion","_trackFormatChanges","ck-suggestion-marker--active","containerElement","clear","getMultiRangeId","add","catch","set","setAttribute","markerNameToElements","formatInline:","createPositionBefore","widget","isMultiRange","getRange","attributes","splice","ck-suggestion-marker","fire","getFirstMarker","registerCustomCallback","getAttribute","insertion:chain","item","rethrowUnexpectedError","rootName","removeMarker:suggestion:formatBlock","suggestionUnloaded","commandName","addHighlight","isEqual","editingDowncast","getLastMatchingPosition","parent","isAtStart","change:data","isNextTo","oldRange","elementEnd","fromRange","before","stop","_findSuggestions","selection","stopListening","isBlock","createElement","originalSuggestionId","_splitMarkerName","formatBlock:","addClass","isOwn","isInsideObject","insertion:accept","options","containsRange","refresh","_addSuggestionMarker","pluginName","init","_registerDefaultCallbacks","_setSuggestionData","backward","nodeAfter","deletion:join","markerToHighlight","setSelection","createRange","forward","notReady","config","addMarker","values","multi","_joinWithAdjacentSuggestions","editing","applyOperation","_addThreadToSuggestion","formatInline:accept","updateSuggestion","addMarker:suggestion","$graveyard"];var wc,Oc;wc=Nc,Oc=263,function(t){for(;--t;)wc.push(wc.shift())}(++Oc);const Fc=function(t,e){return Nc[t-=0]};class Pc extends t.Plugin{static get[Fc("0x46")](){return[Fc("0x85"),s.Users,t.PendingActions,bs,Ms,Ps,Hs,qs,Ys,si,li,vc,hi,Ti,Ri,Ni,Bi,Wi,Xi,Yi,rx,cx,mx,Ex,kx,Sx,Px,Gx,Kx,Jx,na,aa,ma,Ea,Aa,La,Fa,Ga,Ka,Tc,Ya,ic,Mc,uc,hc]}static get[Fc("0x1a")](){return Fc("0xe8")}constructor(t){function e(t){return t[Fc("0xc7")]((t=>String[Fc("0xe3")](t)))[Fc("0x60")]("")}super(t),this[Fc("0x120")](Fc("0xa0"),[]),this.on(Fc("0xa4"),((e,n,o,r)=>{this[Fc("0xd7")][Fc("0x33")]((()=>{for(const e of[...r,...o])this[Fc("0xd7")][Fc("0x52")][Fc("0x6f")](e)&&t[Fc("0x2b")].reconvertMarker(e)}))})),this[Fc("0x10f")]=new gs(this[Fc("0xf1")][Fc("0x115")][Fc("0xcc")],this[Fc("0xf1")][Fc("0x3d")]),this[Fc("0x47")]=null,this[Fc("0x63")]=new Dc(this[Fc("0xf1")]),this._suggestions=new Map,this[Fc("0x7e")]=t[Fc("0x9d")].get(Fc("0x85")),this[Fc("0x64")]=new Set,this[Fc("0xd7")]=this.editor[Fc("0x115")],this[Fc("0xce")]=new WeakMap,this[Fc("0x38")]=!1,t[Fc("0x26")][Fc("0xed")](Fc("0x9c"),!0),this[Fc("0x119")]=t.config.get(Fc("0x9c")),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,48,52,49,52])}[Fc("0x1b")](){const t=this[Fc("0xf1")];t.conversion[Fc("0xf9")](Fc("0x138"))[Fc("0x21")]({model:"suggestion",view:t=>{const{id:e,type:n}=this[Fc("0x10")](t[Fc("0x81")]),o=[Fc("0x12a"),Fc("0x3c")+n];let r=3e3;return this.activeMarkers[Fc("0xbd")](t[Fc("0x81")])&&(o.push(Fc("0x11a")),r=3010),"deletion"==n&&(r+=5),{classes:o,attributes:{"data-suggestion":e},priority:r}}}),t[Fc("0x93")][Fc("0xf9")](Fc("0x4d")).add((e=>{e.on(Fc("0x30"),((e,n,o)=>{if(!o[Fc("0x16")].showSuggestionHighlights)return;const r=n.item;if(!r)return;const s=o[Fc("0xa1")][Fc("0xbe")](r);t.model[Fc("0xcc")][Fc("0xdf")](r)&&s&&!s[Fc("0x10a")](Fc("0x125"))&&s.is(Fc("0x11b"))&&(0,x.toWidget)(s,o[Fc("0x7c")])}),{priority:Fc("0x116")})})),t.conversion[Fc("0xf9")]("dataDowncast")[Fc("0x21")]({model:Fc("0x9a"),view:(t,e)=>{if(!e.options[Fc("0x79")])return null;const{type:n}=this._splitMarkerName(t[Fc("0x81")]);return{classes:[Fc("0x12a"),Fc("0x3c")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,r)=>{if(!o[Fc("0x130")])return;if(o[Fc("0x130")].is("selection"))return void r[Fc("0xcd")][Fc("0xc8")](o[Fc("0x130")],n.name);const s=r[Fc("0xa1")][Fc("0xbe")](o[Fc("0x130")]);if(!o[Fc("0x130")].is(Fc("0xa8"))||!t[Fc("0x115")][Fc("0xcc")].isBlock(o.item)||s[Fc("0x10a")](Fc("0x136")))return;const{id:i}=this._splitMarkerName(o.markerName);r[Fc("0x7c")][Fc("0x12")](["ck-suggestion-marker","ck-suggestion-marker-formatBlock"],s),r[Fc("0x7c")][Fc("0x121")](Fc("0x5a"),i,s),r[Fc("0xa1")][Fc("0x70")](s,o.markerName),e&&(this[Fc("0xa0")][Fc("0xbd")](o[Fc("0x81")])?r.writer[Fc("0x12")](Fc("0x11a"),s):r[Fc("0x7c")][Fc("0x10e")]("ck-suggestion-marker--active",s));for(const e of t[Fc("0x115")][Fc("0x69")](o[Fc("0x130")]).getItems())r[Fc("0xcd")].consume(e,n[Fc("0x39")]);r.consumable.consume(o[Fc("0x130")],n[Fc("0x39")])};t.conversion[Fc("0xf9")](Fc("0x4d"))[Fc("0x11e")]((t=>{t.on(Fc("0x41"),((t,e,o)=>{o.options[Fc("0x79")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:Fc("0x112")})})),t[Fc("0x93")].for(Fc("0x4d"))[Fc("0x104")]({model:Fc("0x9a"),view:(t,e)=>e[Fc("0x16")][Fc("0x79")]?null:{group:"suggestion",name:t[Fc("0x44")](Fc("0x9a")[Fc("0xe0")]+1)}}),t[Fc("0x93")].for(Fc("0xd2")).elementToElement({view:{name:Fc("0x9a"),attribute:{id:/^\w/,suggestionType:/^\w/}},model:(t,{writer:e})=>{let n="suggestion:"+t[Fc("0x12e")]("suggestion-type")+":"+t[Fc("0x12e")]("id");return t[Fc("0x12e")](Fc("0xb1"))&&(n+=":"+t.getAttribute("marker-count")),e[Fc("0xe")](Fc("0x88"),{"data-name":n})}}),t[Fc("0x93")][Fc("0xf9")](Fc("0xd2"))[Fc("0x49")]({view:Fc("0x9a")}),t[Fc("0x93")][Fc("0xf9")](Fc("0x138"))[Fc("0x11e")]((t=>{t.on(Fc("0x41"),n(),{priority:"high"})})),t.conversion.for(Fc("0x138"))[Fc("0x11e")]((t=>{t.on(Fc("0x133"),((t,e,n)=>{const o=n[Fc("0xa1")][Fc("0x122")](e[Fc("0x81")]);if(o)for(const t of o)t[Fc("0x10a")](Fc("0x136"))||(n[Fc("0x7c")][Fc("0x10e")]([Fc("0x12a"),Fc("0xdd"),Fc("0x11a")],t),n.writer[Fc("0x8d")]("data-suggestion",t),n.mapper[Fc("0xea")](t,e[Fc("0x81")]))}),{priority:"high"})})),t.model.document[Fc("0xf5")]((e=>{let n=!1;const o=Array[Fc("0x111")](t[Fc("0x115")][Fc("0xb8")][Fc("0x103")][Fc("0xd0")]()),r=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[Fc("0x10")](x);if(Fc("0x9a")!==o)continue;const u=this[Fc("0x77")][Fc("0x7a")](l);if(null!=a[Fc("0x4a")])if(Fc("0x3f")==c&&(n=n||Uc(a.newRange,x,e,t[Fc("0x115")][Fc("0xcc")])),a[Fc("0x4a")][Fc("0xc4")]||Fc("0x31")==a.newRange[Fc("0x106")].rootName||Fc("0x8e")==c&&!Hc(a[Fc("0x4a")])||Fc("0xab")==c&&(jc(i=a[Fc("0x4a")])||(s=i)[Fc("0xd3")][Fc("0x1")]==s[Fc("0xa9")][Fc("0x101")]&&s.start[Fc("0x6c")]))e[Fc("0xb3")](x),n=!0;else{if(!u||!u[Fc("0x114")])continue;r[Fc("0x11e")](u)}}var s,i;return r[Fc("0x7f")]>0&&(n=!!this[Fc("0x2a")](r)||n),n})),t.model.document[Fc("0xf5")]((e=>{let n=!1;for(const o of t[Fc("0x115")].document[Fc("0x103")].getChanges()){if(Fc("0x102")!=o[Fc("0xae")])continue;const r=o[Fc("0x83")][Fc("0xac")](o[Fc("0xe0")]);if(r[Fc("0x6c")])for(const s of this[Fc("0x77")][Fc("0x28")]()){if(s[Fc("0x126")]||!s[Fc("0x114")])continue;if(Fc("0x8e")!=s[Fc("0xae")])continue;const i=s[Fc("0x59")]();if(i[Fc("0xd3")].parent!=i.end[Fc("0x1")]&&i[Fc("0xa9")][Fc("0x137")](o.position)){const o=t.model[Fc("0x23")](i[Fc("0xd3")],r);e[Fc("0xfb")](s[Fc("0x12c")](),{range:o}),n=!0}}}return n})),t.model[Fc("0x52")].on(Fc("0x80"),((t,e,n)=>{if(null==n){const{id:t}=this._splitMarkerName(e[Fc("0x39")]),n=this[Fc("0x77")].get(t);n&&n[Fc("0xf4")](e.name)}})),t[Fc("0x115")][Fc("0xb8")].on(Fc("0x3"),(()=>{const e=Array[Fc("0x111")](t[Fc("0x115")][Fc("0xb8")].differ[Fc("0xd0")]())[Fc("0xb5")]((t=>Fc("0x9a")===this[Fc("0x10")](t[Fc("0x39")])[Fc("0xe6")]));if(0===e[Fc("0xe0")])return;e.sort(((t,e)=>{const n=t[Fc("0x51")][Fc("0x5")],o=e[Fc("0x51")][Fc("0x5")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[Fc("0xd3")][Fc("0x66")](o[Fc("0xd3")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:r}of e){const{id:e}=this._splitMarkerName(t);if(null===r[Fc("0x5")]){const e=this[Fc("0x8b")](t);o[Fc("0x11e")](e)}else{const t=this._suggestions[Fc("0x7a")](e);null!==r.newRange||t[Fc("0x114")]?(n.add(t[Fc("0x73")]),o[Fc("0x11e")](t)):this[Fc("0xb9")](t)}}o[Fc("0x7f")]>0&&this[Fc("0xda")](o);for(const t of n)this[Fc("0x12b")](Fc("0x4b"),t)})),t[Fc("0x115")].on(Fc("0x2c"),((e,n)=>{const o=n[0];if(!this[Fc("0x77")][Fc("0x7f")])return;if(!o[Fc("0xe5")])return;if(o[Fc("0x10d")].isUndo||!o.batch[Fc("0x9e")])return;let r,s;switch(o[Fc("0xae")]){case"insert":r=t[Fc("0x115")].createPositionAt(o[Fc("0x83")]),s=r[Fc("0xac")](o.howMany);break;case Fc("0x3a"):r=t[Fc("0x115")][Fc("0xec")](o.splitPosition),s=t[Fc("0x115")][Fc("0xec")](o.moveTargetPosition);break;case Fc("0x6a"):r=t[Fc("0x115")][Fc("0xec")](o[Fc("0x8f")]),s=r.getShiftedBy(o.howMany);break;default:return}const i=t[Fc("0x115")][Fc("0x23")](r,s);t[Fc("0x115")][Fc("0x33")]((()=>{for(const{suggestion:t,meta:e}of this._findSuggestions(i)){if(t.isMultiRange)continue;if(Fc("0x3f")==t[Fc("0xae")])continue;const n=t.data&&t[Fc("0x51")][Fc("0x98")];("formatBlock"!=t.type||Fc("0x3a")==o[Fc("0xae")]&&!n)&&(e.containsRangeInObject||Fc("0xb2")==t[Fc("0xae")]&&e.isOwn||t[Fc("0x59")]()[Fc("0x17")](i)&&this._breakSuggestionMarker(t,r,s))}}))}),{priority:Fc("0xff")}),t[Fc("0x115")].on(Fc("0xa2"),((e,n)=>{const o=n[0],r=n[1];if(r&&r[Fc("0x74")])return;if(this._isForcedDefaultExecutionBlock)return;if(!this[Fc("0xf2")][Fc("0xb4")])return;if(o.isCollapsed)return;const s=t[Fc("0x115")][Fc("0xcc")],{start:i,end:x}=o[Fc("0x59")](),a=i[Fc("0x1f")]&&s.isLimit(i[Fc("0x1f")])?null:s.getNearestSelectionRange(i,Fc("0x24")),c=x[Fc("0x101")]&&s[Fc("0xb6")](x[Fc("0x101")])?null:s[Fc("0xd8")](x,Fc("0x1e")),l=t.model[Fc("0x23")](a?a[Fc("0xd3")]:i,c?c[Fc("0xa9")]:x);t[Fc("0x115")][Fc("0x33")]((e=>{this.markDeletion(l);const n=t[Fc("0x115")][Fc("0xcc")][Fc("0xd8")](l[Fc("0xd3")]);o.is(Fc("0x68"))?e[Fc("0x22")](n):o.setTo(n)})),e.stop()}),{priority:e.priorities[Fc("0x100")]+10}),t[Fc("0x115")].on(Fc("0xad"),((e,n)=>{const o=n[n.length-1];o&&o[Fc("0x74")]||this[Fc("0x38")]||this[Fc("0xf2")][Fc("0xb4")]&&(t[Fc("0x115")][Fc("0x33")]((()=>{let o=t[Fc("0x115")][Fc("0xad")](n[0],n[1],n[2],n[3],{forceDefaultExecution:!0});if(!o)return;e.return=o[Fc("0x6b")]();const r=o[Fc("0xa9")][Fc("0x101")],s=t[Fc("0x115")][Fc("0xcc")];r&&s[Fc("0xd")](r)&&!s.isObject(r)&&(o=t.model[Fc("0x23")](o[Fc("0xd3")],t[Fc("0x115")].createPositionAt(r,"end"))),this[Fc("0x118")](o)})),e[Fc("0x9")]())}),{priority:Fc("0x116")}),this[Fc("0xf2")]=new d(t,this[Fc("0x64")]),this[Fc("0xf1")].commands[Fc("0x11e")](Fc("0x89"),this[Fc("0xf2")]),this[Fc("0x91")](Fc("0x89"));const o=new p(t,this[Fc("0x77")]);t[Fc("0x55")][Fc("0x11e")](Fc("0x56"),o),this[Fc("0x91")]("acceptSuggestion");const r=new C(t,this[Fc("0x77")]);t[Fc("0x55")][Fc("0x11e")]("discardSuggestion",r),this[Fc("0x91")](Fc("0x3e")),t[Fc("0x55")][Fc("0x11e")]("acceptAllSuggestions",new P(t,o,this[Fc("0x77")])),this[Fc("0x91")](Fc("0x108")),t[Fc("0x55")][Fc("0x11e")](Fc("0xef"),new P(t,r,this[Fc("0x77")])),this[Fc("0x91")](Fc("0xef")),t[Fc("0x55")].add("acceptSelectedSuggestions",new G(t,o,this[Fc("0x77")])),this[Fc("0x91")](Fc("0xd4")),t.commands[Fc("0x11e")](Fc("0xfc"),new G(t,r,this[Fc("0x77")])),this[Fc("0x91")]("discardSelectedSuggestions");const s=t[Fc("0x9d")][Fc("0x7a")](Fc("0x85"));this[Fc("0xa7")](s,Fc("0x71"),((t,{threadId:e})=>{const n=this[Fc("0x77")][Fc("0x7a")](e);n&&n[Fc("0x65")]&&1===n[Fc("0x65")][Fc("0xe0")]&&this[Fc("0x113")](e,{hasComments:!0})}),{priority:Fc("0xca")}),this[Fc("0xa7")](s,"removeComment",((t,{threadId:e})=>{const n=this._suggestions[Fc("0x7a")](e);n&&n.commentThread&&!n.commentThread[Fc("0xe0")]&&this[Fc("0x113")](e,{hasComments:!1})}),{priority:Fc("0xca")})}set adapter(t){if(this[Fc("0x47")])throw new e.CKEditorError(Fc("0x4e"),this);this._adapter=t}get[Fc("0x61")](){return this[Fc("0x47")]}[Fc("0xeb")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions.values())t&&!e[Fc("0x114")]||n[Fc("0xe2")](e);return e?n[Fc("0xc7")]((t=>t.toJSON())):n}[Fc("0x67")](t){const n=this._suggestions[Fc("0x7a")](t);if(!n)throw new e.CKEditorError(Fc("0xe9"),this);return n}hasSuggestion(t){return this._suggestions[Fc("0x6f")](t)}[Fc("0x5e")](t){const{authorId:e,id:n,attributes:o}=t,[r,s]=t[Fc("0xae")][Fc("0x3a")](":"),i=this[Fc("0x77")][Fc("0x7a")](n)||this[Fc("0xd5")](r,s,n,e,o);if(this[Fc("0x2d")](i),this._checkSuggestionCorrectness(i,r,s||null,e),i.createdAt=t[Fc("0x10b")],o&&o[Fc("0xc1")]){const{authorName:t,createdAt:e}=o[Fc("0xc1")],n=this[Fc("0xba")](t);i[Fc("0x3b")]=e,i[Fc("0x84")]=n,i.isExternal=!0}else i[Fc("0x3b")]=t[Fc("0x10b")];switch(t[Fc("0x51")]&&(i[Fc("0x51")]=t.data),t[Fc("0x128")]&&(i[Fc("0x128")]=t[Fc("0x128")]),this[Fc("0x47")]&&this[Fc("0x47")][Fc("0xc9")]||(i._saved=!0),this._suggestionState[Fc("0x7a")](i)){case Fc("0x25"):this[Fc("0xce")][Fc("0x120")](i,Fc("0x43"));break;case Fc("0x76"):i[Fc("0x114")]?(this[Fc("0xce")][Fc("0x120")](i,Fc("0x107")),this.fire("suggestionLoaded",i)):this._suggestionState[Fc("0x120")](i,Fc("0x8c"))}return i}[Fc("0x56")](t){this.forceDefaultExecution((()=>{this.editor[Fc("0x115")][Fc("0x33")]((()=>{for(const e of t[Fc("0x92")]())e[Fc("0x4c")]()}))}))}[Fc("0x3e")](t){this[Fc("0x74")]((()=>{this[Fc("0xf1")][Fc("0x115")].change((()=>{for(const e of t[Fc("0x92")]())e[Fc("0xdb")]()}))}))}[Fc("0x91")](t,n){const o=this.editor[Fc("0x55")][Fc("0x7a")](t);if(!o)throw new e.CKEditorError(Fc("0xbf"),this,{commandName:t});this[Fc("0x64")][Fc("0x11e")](o),n&&o.on(Fc("0x50"),((t,e)=>{this[Fc("0xf2")][Fc("0xb4")]&&(this[Fc("0x38")]||e.length>0&&e[e[Fc("0xe0")]-1]&&e[e[Fc("0xe0")]-1][Fc("0x74")]||(n(((...t)=>o.execute(...t,{forceDefaultExecution:!0})),...e),t[Fc("0x9")]()))}),{priority:Fc("0x116")})}forceDefaultExecution(t){let n,o;const r=this[Fc("0x38")];this[Fc("0x38")]=!0;try{n=t()}catch(t){o=t}return r||(this._isForcedDefaultExecutionBlock=!1),o&&e.CKEditorError[Fc("0x131")](o,this),n}markInsertion(t,n=null,o={}){if(t[Fc("0xc4")])return null;const r=this.editor[Fc("0x9d")].get(Fc("0xc6")).me;for(const{suggestion:e,meta:o}of this[Fc("0xa")](t,Fc("0xb2")))if(o.isOwn){if(!o.isNextTo)return e;if(n==e[Fc("0x72")]){const n=e.getFirstRange();return n.start[Fc("0x137")](t[Fc("0xa9")])?this[Fc("0xaa")](e,this._model.createRange(t[Fc("0xd3")],n[Fc("0xa9")])):this[Fc("0xaa")](e,this._model[Fc("0x23")](n.start,t[Fc("0xa9")])),e}}const s=(0,e.uid)(),i=r.id,x=n?Fc("0x48")+n:Fc("0xb2"),a=this[Fc("0x1d")]({id:s,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Fc("0x19")](x,s,i,t),a}[Fc("0xe1")](t,n=Fc("0x29"),o={}){const r=this[Fc("0xf1")].plugins[Fc("0x7a")](Fc("0xc6")).me,s=this[Fc("0x63")].getSuggestionCallback(Fc("0xb2"),n,"join");for(const e of this[Fc("0xeb")]())if(e[Fc("0x84")].id==r.id&&Fc("0xb2")==e[Fc("0xae")]&&e.subType==n&&(s(e[Fc("0x42")](),t)||s(t,e.getRanges()))){for(const n of t)e[Fc("0x5d")](n);return e}for(const e of t)for(const{suggestion:n,meta:o}of this[Fc("0xa")](e,"insertion")){if(!o[Fc("0x13")])continue;let e=!0;for(const o of n[Fc("0x42")]())for(const n of t)if(!o[Fc("0x17")](n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=r.id,a=Fc("0x48")+n,c=this[Fc("0x1d")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[Fc("0x19")](a,i,x,e,xs[Fc("0x11d")]());return c}[Fc("0xfd")](t,n,o=null,r={}){if(o=o||Gc(n),t.isCollapsed)return;if(!1===this[Fc("0x119")]){const e=this[Fc("0x63")].getSuggestionCallback("formatInline",o,Fc("0x4c"));return void this[Fc("0x74")]((()=>e([t],n,r)))}const s=this[Fc("0xf1")].plugins[Fc("0x7a")](Fc("0xc6")).me,i=[];for(const{suggestion:e,meta:n}of this[Fc("0xa")](t,"insertion"))n[Fc("0x13")]&&!n[Fc("0x14")]&&i.push(...e[Fc("0x42")]());const x=function(t,e){const n=[];for(const o of e){const e=t[Fc("0x82")](o);e&&n.push(e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[Fc("0xe0")];){const o=n[e][Fc("0x7b")](t);n[Fc("0x129")](e,1,...o),e+=o.length}}return n}(t,i);x.length&&this[Fc("0xd7")][Fc("0x33")]((()=>{for(const t of x){const e=this[Fc("0x63")][Fc("0xc5")]("formatInline",o,Fc("0x4c"));this[Fc("0x74")]((()=>e([t],n,r)))}}));for(const t of a){let i=null,x=t[Fc("0xd3")],a=t[Fc("0xa9")];for(const{suggestion:e,meta:n}of this._findSuggestions(t,"formatInline")){if(!n.isOwn)continue;if(e[Fc("0x72")]!=o)continue;const r=e[Fc("0x59")]();if(r[Fc("0x17")](t,!0))return;x=x.isBefore(r.start)?x:r[Fc("0xd3")],a=a[Fc("0x4f")](r.end)?a:r[Fc("0xa9")],i?r[Fc("0xd3")][Fc("0x66")](i.getFirstRange()[Fc("0xd3")])?(i[Fc("0xbb")](),i=e):e[Fc("0xbb")]():i=e}const c=this[Fc("0xd7")][Fc("0x23")](x,a);if(i)this[Fc("0xaa")](i,c);else{const t=(0,e.uid)(),i=s.id;this[Fc("0x1d")]({id:t,type:Fc("0x123")+o,data:n,createdAt:new Date,authorId:i,attributes:r}),this[Fc("0x19")](Fc("0x123")+o,t,i,c)}}}[Fc("0x117")](t,n,o=[],r=null,s={}){n[Fc("0x53")]||(n.formatGroupId=n[Fc("0x135")]),n[Fc("0x98")]=t.is(Fc("0x36")),r=r||Gc(n);const i=o[Fc("0xc7")]((t=>Wc(t,this[Fc("0xd7")]))),x=t.is(Fc("0x36"))?t:Wc(t,this[Fc("0xd7")]);if(!1===this[Fc("0x119")]){const t=this._suggestionFactory[Fc("0xc5")]("formatBlock",r,Fc("0x4c"));return void this[Fc("0x74")]((()=>t([x],n,s)))}i[Fc("0xe2")](x);let a=!0;for(const t of i)if(!this[Fc("0xd9")](t)){a=!1;break}if(a){const t=this[Fc("0x63")][Fc("0xc5")](Fc("0x8e"),r,Fc("0x4c"));return void this.forceDefaultExecution((()=>t([x],n,s)))}let c=null,l=x[Fc("0xd3")],u=x[Fc("0xa9")];for(const{suggestion:t,meta:e}of this[Fc("0xa")](x,Fc("0x8e"))){if(!e[Fc("0x13")]||e[Fc("0x4")]||e[Fc("0x5f")]||e[Fc("0x14")])continue;if(t[Fc("0x51")][Fc("0x53")]!=n[Fc("0x53")])continue;const o=t[Fc("0x59")]();if(t[Fc("0x72")]==r){if(o.containsRange(x,!0))return;l=l[Fc("0x66")](o.start)?l:o[Fc("0xd3")],u=u[Fc("0x4f")](o[Fc("0xa9")])?u:o[Fc("0xa9")],c?o.start[Fc("0x66")](c[Fc("0x59")]()[Fc("0xd3")])?(c[Fc("0xbb")](),c=t):t[Fc("0xbb")]():c=t}else{const e=x[Fc("0x82")](o);this[Fc("0x32")](t,e)}}const d=this[Fc("0xf1")][Fc("0x9d")][Fc("0x7a")](Fc("0xc6")).me,g=(0,e.uid)(),m=d.id;c?this[Fc("0xaa")](c,this[Fc("0xd7")][Fc("0x23")](l,u)):(this[Fc("0x1d")]({id:g,type:Fc("0x11")+r,data:n,createdAt:new Date,authorId:m,attributes:s}),this._addSuggestionMarker(Fc("0x11")+r,g,m,this[Fc("0xd7")].createRange(l,u)))}[Fc("0x96")](t,n,o=[],r=null,s={}){n.formatGroupId||(n[Fc("0x53")]=n[Fc("0x135")]);const i=t[0];n[Fc("0x98")]=i.is(Fc("0x36")),r=r||Gc(n);const x=o[Fc("0xc7")]((t=>Wc(t,this._model))),a=i.is(Fc("0x36"))?t:t.map((t=>Wc(t,this[Fc("0xd7")])));if(!1===this._trackFormatChanges){const t=this[Fc("0x63")].getSuggestionCallback(Fc("0x8e"),r,Fc("0x4c"));return void this.forceDefaultExecution((()=>t(a,n,s)))}x.push(...a);let c=!0;for(const t of x)if(!this._rangeIsInLocalUserInsertion(t)){c=!1;break}if(c){const t=this._suggestionFactory.getSuggestionCallback(Fc("0x8e"),r,Fc("0x4c"));return void this[Fc("0x74")]((()=>t(a,n,s)))}const l=this[Fc("0xf1")][Fc("0x9d")][Fc("0x7a")](Fc("0xc6")).me;for(const t of this[Fc("0xeb")]()){if(t[Fc("0x84")].id!=l.id)continue;if("formatBlock"!=t[Fc("0xae")]||t[Fc("0x51")][Fc("0x53")]!=n[Fc("0x53")])continue;const e=t[Fc("0x72")]==r;for(let n=0;n<a.length;n++){const o=a[n];for(const r of t[Fc("0x7d")]()){const s=r[Fc("0x127")]();if(o[Fc("0x137")](s)){e?(a[Fc("0x129")](n,1),n--):t.removeMarker(r[Fc("0x39")]);break}}}}if(0==a[Fc("0xe0")])return;const u=this[Fc("0x63")][Fc("0xc5")](Fc("0x8e"),r,Fc("0x60"));for(const t of this[Fc("0xeb")]())if(t[Fc("0x84")].id==l.id&&Fc("0x8e")==t[Fc("0xae")]&&t.data[Fc("0x53")]==n[Fc("0x53")]&&t.subType==r&&(u(t.getRanges(),a)||u(a,t.getRanges()))){for(const e of a)t[Fc("0x5d")](e);return t}const d=(0,e.uid)(),g=l.id,m=Fc("0x11")+r,f=this[Fc("0x1d")]({id:d,type:m,data:n,createdAt:new Date,authorId:g,attributes:s});for(const t of a)this[Fc("0x19")](m,d,g,t,xs[Fc("0x11d")]());return f}markDeletion(t,n=null,o={}){if(t[Fc("0xc4")])return null;const r=this[Fc("0xf1")][Fc("0x9d")][Fc("0x7a")](Fc("0xc6")).me,s=new i.LiveRange(t[Fc("0xd3")],t[Fc("0xa9")]);for(const{suggestion:t,meta:e}of this[Fc("0xa")](s,Fc("0xb2")))if(e[Fc("0x13")]&&!e[Fc("0x4")])if(t.isMultiRange){const e=t[Fc("0x42")]().filter((t=>"$graveyard"!=t.root[Fc("0x132")]));if(e[Fc("0x8a")]((t=>s.containsRange(t,!0)))&&t.discard(),e[Fc("0x5c")]((t=>t.containsRange(s,!0)))){const t=this[Fc("0x63")][Fc("0xc5")](Fc("0xab"),n,Fc("0x4c"));return this[Fc("0x74")]((()=>t([s],null,o))),null}}else{const e=s[Fc("0x82")](t[Fc("0x59")]());t[Fc("0x6d")]([e],null,o)}if(s[Fc("0xdc")](),s[Fc("0xc4")]||Fc("0x31")==s[Fc("0x106")][Fc("0x132")])return null;let x=null,a=s[Fc("0xd3")],c=s[Fc("0xa9")];for(const{suggestion:t,meta:e}of this[Fc("0xa")](s,Fc("0xab")))if(e[Fc("0x13")])if(t[Fc("0x126")]){let e=!0;for(const n of t[Fc("0x42")]()){if(n[Fc("0x17")](s,!0))return t;s[Fc("0x17")](n)||(e=!1)}e&&t[Fc("0xdb")]()}else{const e=t.getFirstRange();if(e[Fc("0x17")](s,!0))return t;a=a.isBefore(e[Fc("0xd3")])?a:e[Fc("0xd3")],c=c[Fc("0x4f")](e.end)?c:e.end,x?e[Fc("0xd3")][Fc("0x66")](x[Fc("0x59")]()[Fc("0xd3")])?(x.removeMarkers(),x=t):t.removeMarkers():x=t}if(x)return this[Fc("0xaa")](x,this._model[Fc("0x23")](a,c)),x;{const t=(0,e.uid)(),s=this[Fc("0xd7")][Fc("0x23")](a,c),i=r.id,x=n?Fc("0x6e")+n:"deletion",l=this._setSuggestionData({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Fc("0x19")](x,t,i,s),l}}[Fc("0x78")](t,n=Fc("0x29"),o={}){const r=this.editor.plugins[Fc("0x7a")](Fc("0xc6")).me,s=t.map((t=>new i.LiveRange(t[Fc("0xd3")],t[Fc("0xa9")]))),x=new Set;for(const t of s)for(const{suggestion:e,meta:n}of this._findSuggestions(t,Fc("0xb2")))n.isOwn&&!n[Fc("0x4")]&&x.add(e);for(const e of x)if(e.isMultiRange){const r=e[Fc("0x42")]();if((!e.attributes||!e[Fc("0x128")][Fc("0x54")])&&r.every((t=>s[Fc("0x5c")]((e=>e[Fc("0x17")](t,!0)))))&&e[Fc("0xdb")](),s[Fc("0x8a")]((t=>r[Fc("0x5c")]((e=>e[Fc("0x17")](t,!0)))))){const e=this[Fc("0x63")][Fc("0xc5")]("deletion",n,Fc("0x4c"));return this[Fc("0x74")]((()=>e(t,null,o))),null}}else{const t=e[Fc("0x59")]();if(s.some((e=>e.containsRange(t,!0)))&&e.discard(),s.every((e=>t[Fc("0x17")](e,!0)))){const t=this._suggestionFactory[Fc("0xc5")](Fc("0xab"),n,"accept");return this[Fc("0x74")]((()=>t(s,null,o))),null}}const a=this[Fc("0x63")][Fc("0xc5")](Fc("0xab"),n,Fc("0x60"));let c=null;for(const t of this[Fc("0xeb")]())if(t[Fc("0x84")].id==r.id&&t.isInContent&&Fc("0xab")==t[Fc("0xae")]&&t[Fc("0x72")]==n&&(a(t.getRanges(),s)||a(s,t[Fc("0x42")]())))if(c){if(t[Fc("0x65")]&&t[Fc("0x65")].length)continue;for(const e of t[Fc("0x42")]())c[Fc("0xa5")](e)||c[Fc("0x5d")](e);t[Fc("0xbb")]()}else{c=t;for(const e of s)t.isIntersectingWithRange(e)||t[Fc("0x5d")](e)}if(c)return c;x[Fc("0x11c")]();for(const t of s)for(const{suggestion:e,meta:n}of this._findSuggestions(t,"deletion"))n.isOwn&&x[Fc("0x11e")](e);for(const t of x){const e=t[Fc("0x42")]();if((!o||!o[Fc("0x54")])&&s.every((t=>e[Fc("0x5c")]((e=>e.containsRange(t,!0))))))return t;(!t[Fc("0x128")]||!t[Fc("0x128")].skipNestingCheck)&&e[Fc("0x8a")]((t=>s[Fc("0x5c")]((e=>e.containsRange(t,!0)))))&&t.discard()}const l=(0,e.uid)(),u=r.id,d=Fc("0x6e")+n,g=this[Fc("0x1d")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of s)t[Fc("0xdc")](),t[Fc("0xc4")]||Fc("0x31")==t[Fc("0x106")][Fc("0x132")]||this._addSuggestionMarker(d,l,u,t,xs[Fc("0x11d")]());return g}_setSuggestionRange(t,e){const n=t[Fc("0x12c")]();this[Fc("0xd7")][Fc("0x33")]((t=>{t[Fc("0xfb")](n,{range:e})}))}[Fc("0x2d")](t){const e=t.id,n=this[Fc("0xf1")][Fc("0x26")].get(Fc("0xe4"));this._commentsRepository.hasCommentThread(e)||this[Fc("0x7e")].addCommentThread({channelId:n,threadId:e});const o=this[Fc("0x7e")].getCommentThread(e);o[Fc("0x99")](Fc("0xf3")),o[Fc("0xf3")]=!1,t[Fc("0x65")]=o}[Fc("0x86")](t,n,o,r){if(t[Fc("0xae")]!=n||t.subType!=o||t[Fc("0x110")].id!=r)throw this[Fc("0xf1")].enableReadOnlyMode(Fc("0xf8")),new e.CKEditorError(Fc("0xf8"),this)}[Fc("0x32")](t,n){const o=t[Fc("0x59")]();if(n[Fc("0x137")](o))t[Fc("0xbb")]();else if(o[Fc("0x17")](n)){const r=this._model.createPositionAt(n[Fc("0xd3")].nodeBefore,Fc("0xa9"));this[Fc("0xaa")](t,this[Fc("0xd7")].createRange(o[Fc("0xd3")],r));const s=(0,e.uid)(),i=t[Fc("0x110")].id,x=t[Fc("0xae")]+":"+t[Fc("0x72")];this[Fc("0x1d")]({id:s,type:x,createdAt:new Date,authorId:i,data:t[Fc("0x51")],attributes:t[Fc("0x128")]});const a=this[Fc("0xd7")][Fc("0xec")](n[Fc("0xa9")][Fc("0x1")],Fc("0x45")),c=this[Fc("0xd7")][Fc("0x23")](a,o[Fc("0xa9")]);this[Fc("0x19")](x,s,i,c)}else if(o[Fc("0xd1")](n[Fc("0xd3")])){const e=this[Fc("0xd7")][Fc("0xec")](n[Fc("0xd3")][Fc("0x101")],Fc("0xa9"));this[Fc("0xaa")](t,this[Fc("0xd7")][Fc("0x23")](o.start,e))}else{const e=this._model[Fc("0xec")](n[Fc("0xa9")].parent,"after");this[Fc("0xaa")](t,this[Fc("0xd7")][Fc("0x23")](e,o.end))}}[Fc("0xd9")](t){for(const{suggestion:e,meta:n}of this[Fc("0xa")](t,Fc("0xb2"))){if(!n[Fc("0x13")])continue;const o=e[Fc("0x42")]();for(const e of o)if(!t.getDifference(e)[Fc("0xe0")])return!0}return!1}_getAuthorFromId(t){const n=this[Fc("0xf1")].plugins[Fc("0x7a")](Fc("0xc6"))[Fc("0x75")](t);if(!n)throw new e.CKEditorError("track-changes-user-not-found",this);return n}[Fc("0xba")](t){const e=this[Fc("0xf1")][Fc("0x9d")][Fc("0x7a")](Fc("0xc6")),n=(0,s.hashObject)(Fc("0x10c")+t);return e[Fc("0x75")](n)||e.addUser({id:n,name:t})}_createSuggestion(t,e,n,o,r){const s=this[Fc("0xf0")](o),i=this[Fc("0x63")][Fc("0xf6")](t,e,n,s,r,(t=>this[Fc("0x113")](n,{attributes:t})));return this[Fc("0xa7")](i,Fc("0x4c"),(()=>{this[Fc("0x113")](n,{state:Fc("0xc2")})}),{priority:Fc("0x116")}),this[Fc("0xa7")](i,Fc("0xdb"),(()=>{this[Fc("0x113")](n,{state:"rejected"})}),{priority:Fc("0x116")}),this._suggestions[Fc("0x120")](n,i),this._suggestionState[Fc("0x120")](i,Fc("0x25")),i}_splitMarkerName(t){const e=t[Fc("0x3a")](":");return{group:e[0],type:e[1],subType:e[Fc("0xe0")]>=5?e[2]:null,id:e[Fc("0xe0")]<5?e[2]:e[3],authorId:e[Fc("0xe0")]<5?e[3]:e[4],markerCount:6==e[Fc("0xe0")]?e[5]:null}}_breakSuggestionMarker(t,n,o){const r=t.getFirstRange(),s=r[Fc("0xd3")],i=r[Fc("0xa9")];this[Fc("0xaa")](t,this[Fc("0xd7")].createRange(s,n));const x=(0,e.uid)(),a=t.creator.id,c=t[Fc("0xae")]+(t.subType?":"+t[Fc("0x72")]:"");this._setSuggestionData({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[Fc("0x128")],data:t[Fc("0x51")]}),Fc("0x8e")==t[Fc("0xae")]&&(o=this._model[Fc("0x124")](o.parent)),this[Fc("0x19")](c,x,a,this._model[Fc("0x23")](o,i))}[Fc("0xa")](t,e=null){const n=[],o=this._model[Fc("0xcc")],r=this[Fc("0xf1")][Fc("0x9d")].get("Users").me;for(const s of this.getSuggestions())if(s.isInContent&&(!e||s.type==e))for(const e of s[Fc("0x42")]()){const i=t.start[Fc("0x137")](e[Fc("0xa9")])||t[Fc("0xa9")][Fc("0x137")](e[Fc("0xd3")]);if(i||t[Fc("0x82")](e)){const x=t[Fc("0x17")](e)&&Bc(o,e.start,t),a=e[Fc("0x17")](t)&&Bc(o,t[Fc("0xd3")],e);n.push({suggestion:s,meta:{isOwn:r==s.author,isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}[Fc("0x19")](t,e,n,o,r=null){this[Fc("0xd7")][Fc("0x33")]((s=>{let i=Fc("0x9f")+t+":"+e+":"+n;r&&(i=i+":"+r),s[Fc("0x27")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[Fc("0xb9")](t){const e=t[Fc("0xde")],n=t[Fc("0x5b")];t[Fc("0xde")]=null,null!=e&&(e[Fc("0x5b")]=null),t.next=null,null!=n&&(n[Fc("0xde")]=null),Fc("0x107")==this[Fc("0xce")][Fc("0x7a")](t)&&(this[Fc("0xce")][Fc("0x120")](t,Fc("0x8c")),this.fire(Fc("0x134"),t,e,n))}[Fc("0x1d")](t){const n=t.id,o=this.addSuggestionData(t);if(this[Fc("0x47")]&&this._adapter.addSuggestion){const r=this[Fc("0xf1")].plugins.get(Fc("0x94")),s=o[Fc("0x95")],i=o[Fc("0x72")]?o.type+":"+o[Fc("0x72")]:o[Fc("0xae")],x=this[Fc("0xf1")][Fc("0x3d")],a=r[Fc("0x11e")](as(x,"PENDING_ACTION_SUGGESTION")),c={id:n,type:i,hasComments:s,data:t.data||null,originalSuggestionId:t[Fc("0xf")]||null,attributes:o.attributes};this._adapter[Fc("0xc9")](c)[Fc("0x109")]((t=>{o[Fc("0xc0")]=!0,r[Fc("0xaf")](a),t&&t.createdAt&&(this._suggestions[Fc("0x7a")](n)[Fc("0x10b")]=t[Fc("0x10b")])}))[Fc("0x11f")]((t=>{throw(0,e.logWarning)(Fc("0x37")),this[Fc("0xf1")][Fc("0x115")][Fc("0xe7")]({isUndoable:!1},(()=>{o[Fc("0xdb")]()})),o[Fc("0xc")](),this._suggestions[Fc("0x9b")](o.id),this[Fc("0xce")][Fc("0x9b")](o),t}))}return o}[Fc("0x113")](t,e){const n=this[Fc("0xf1")][Fc("0x9d")][Fc("0x7a")](Fc("0x94")),o=this._suggestions[Fc("0x7a")](t);if(this[Fc("0x47")]&&this[Fc("0x47")][Fc("0x2f")])if(o[Fc("0xc0")]){const o=n[Fc("0x11e")](as(this.editor[Fc("0x3d")],"PENDING_ACTION_SUGGESTION"));this[Fc("0x47")][Fc("0x2f")](t,e).then((()=>{n[Fc("0xaf")](o)}))}else o.on("change:_saved",(()=>{this._updateSuggestionData(t,e)}))}_getSuggestionData(t){if(!this[Fc("0x47")]||!this._adapter[Fc("0x67")])throw new e.CKEditorError(Fc("0xa6"),this);return this[Fc("0x47")].getSuggestion(t)}[Fc("0x8b")](t){const{id:e,type:n,subType:o,authorId:r}=this[Fc("0x10")](t),s=this[Fc("0x77")][Fc("0x7a")](e)||this._createSuggestion(n,o,e,r);switch(this._checkSuggestionCorrectness(s,n,o,r),this._suggestionState[Fc("0x7a")](s)){case Fc("0x25"):this._getSuggestionData(e)[Fc("0x109")]((t=>{let n=Promise[Fc("0xcb")]();t[Fc("0x95")]&&(n=this._commentsRepository[Fc("0x62")]({channelId:this.editor[Fc("0x26")][Fc("0x7a")](Fc("0xe4")),threadId:e})),n[Fc("0x109")]((()=>{this[Fc("0x5e")](t)[Fc("0xc0")]=!0}))})),this[Fc("0xce")][Fc("0x120")](s,"markerReady");break;case Fc("0x8c"):this[Fc("0x113")](e,{state:Fc("0xee")});case Fc("0x43"):this[Fc("0xce")][Fc("0x120")](s,"ready"),this.fire("suggestionLoaded",s);break;case"ready":this[Fc("0x12b")](Fc("0x4b"),s)}return s[Fc("0xf4")](t),s}[Fc("0xda")](t){const e=Array[Fc("0x111")](t)[Fc("0xb5")]((t=>!t[Fc("0x126")])),n=this[Fc("0xeb")]({skipNotAttached:!0})[Fc("0xb5")]((t=>!t.isMultiRange)),o=n.filter((e=>!t[Fc("0x6f")](e))),r=new Map(n[Fc("0xc7")]((t=>[t,this._suggestionFactory[Fc("0xc5")](t.type,t[Fc("0x72")],"chain")]))),s=new Map(n.map((t=>[t,t[Fc("0x59")]()]))),i=new Set,x=new Set;for(let t=0;t<e.length;t++)a(e[t],e,t+1);for(let t=0;t<e[Fc("0xe0")];t++)a(e[t],o,0);for(let t=0;t<e[Fc("0xe0")];t++){const n=e[t];!x[Fc("0x6f")](n)&&n[Fc("0xde")]&&(n.previous[Fc("0x5b")]===n&&(n[Fc("0xde")][Fc("0x5b")]=null),n[Fc("0xde")]=null),!i[Fc("0x6f")](n)&&n[Fc("0x5b")]&&(n[Fc("0x5b")].previous===n&&(n.next[Fc("0xde")]=null),n.next=null)}function a(t,e,n){for(let o=n;o<e[Fc("0xe0")];o++){const n=c(t,e[o]);n&&(n[0][Fc("0x5b")]=n[1],n[1][Fc("0xde")]=n[0],i[Fc("0x11e")](n[0]),x.add(n[1]))}}function c(t,e){if(t[Fc("0x84")].id!==e[Fc("0x84")].id)return null;const n=r[Fc("0x7a")](t)(t,e,s.get(t),s[Fc("0x7a")](e));return n&&r[Fc("0x7a")](e)(t,e,s[Fc("0x7a")](t),s[Fc("0x7a")](e))?n[1][Fc("0x65")]&&n[1][Fc("0x65")].length?null:n:null}}[Fc("0x2a")](t){const e=Array[Fc("0x111")](t),n=this[Fc("0xeb")]({skipNotAttached:!0}),o=n[Fc("0xb5")]((e=>!t.has(e))),r=new Map(e[Fc("0xc7")]((t=>[t,this[Fc("0x63")][Fc("0xc5")](t[Fc("0xae")],t[Fc("0x72")],Fc("0x60"))]))),s=new Map(n[Fc("0xc7")]((t=>[t,t[Fc("0x42")]()])));for(let t=0;t<e[Fc("0xe0")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[Fc("0xe0")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n.length;i++){const o=n[i];if(o[Fc("0xae")]!==e[Fc("0xae")]||o[Fc("0x84")].id!==e[Fc("0x84")].id||o[Fc("0x72")]!==e[Fc("0x72")])continue;const x=r[Fc("0x7a")](e),a=s.get(e),c=s.get(o),l=e[Fc("0x65")]&&e[Fc("0x65")][Fc("0xe0")],u=o[Fc("0x65")]&&o[Fc("0x65")][Fc("0xe0")];if(!l&&x(c,a))return t[Fc("0xc3")](o,e),s.delete(e),!0;if(!u&&x(a,c))return t[Fc("0xc3")](e,o),s[Fc("0x9b")](o),!0}return!1}}[Fc("0xc3")](t,e){if(t[Fc("0x126")])for(const n of e[Fc("0x42")]())t[Fc("0x5d")](n);else{const n=e[Fc("0x59")]()[Fc("0xa9")];this._setSuggestionRange(t,this[Fc("0xd7")][Fc("0x23")](t.getFirstRange().start,n))}e[Fc("0xbb")]()}}(0,e.mix)(Pc,e.EmitterMixin);class Dc{constructor(t){this[Fc("0x34")]=t,this[Fc("0xd7")]=t[Fc("0x115")],this[Fc("0x58")]=new Map,this._defaultCallbacks=new Map,this[Fc("0x1c")]()}[Fc("0xf6")](t,e,n,o,r,s){return new xs(this._model,{type:t,subType:e,id:n,author:o,creator:o,attributes:r,onAttributesChange:s,onAccept:(...n)=>this.getSuggestionCallback(t,e,Fc("0x4c"))(...n),onDiscard:(...n)=>this[Fc("0xc5")](t,e,Fc("0xdb"))(...n)})}[Fc("0x12d")](t,e,n,o){const r=t+":"+e+":"+n;this._customCallbacks[Fc("0x120")](r,o)}[Fc("0xc5")](t,e,n){const o=t+":"+e+":"+n;return this[Fc("0x58")][Fc("0x7a")](o)||this[Fc("0x57")][Fc("0x7a")](t+":"+n)}[Fc("0x1c")](){const t=()=>{},e=t=>{t[Fc("0x97")](((t,e)=>t[Fc("0xd3")][Fc("0x66")](e[Fc("0xd3")])?1:-1)),this[Fc("0xd7")].change((e=>{for(const n of t){let t;t=n.end.isAtEnd&&n.end[Fc("0x1")]==n[Fc("0xd3")][Fc("0x1f")]?e[Fc("0xcf")](n.start[Fc("0x1f")],"on"):e[Fc("0xcf")](n),this[Fc("0xd7")][Fc("0xa2")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[Fc("0xd7")][Fc("0x33")]((n=>{const{commandName:o,commandParams:r=[]}=e,s=t.map((t=>(jc(t)&&(t=this[Fc("0xd7")][Fc("0x23")](t[Fc("0xa9")])),t)))[Fc("0xb5")]((t=>Fc("0x31")!==t[Fc("0x106")].rootName));if(s[Fc("0xe0")]<1)return;const x=Array[Fc("0x111")](this._model[Fc("0xb8")][Fc("0xb")].getRanges()).map((t=>i.LiveRange[Fc("0x7")](t)));n[Fc("0x22")](s);for(const t of this[Fc("0x34")][Fc("0x55")][Fc("0x55")]())t[Fc("0x18")]();r.push({forceDefaultExecution:!0}),this[Fc("0x34")][Fc("0x50")](o,...r);const a=x[Fc("0xb5")]((t=>Fc("0x31")!=t[Fc("0x106")].rootName));a[Fc("0xe0")]>0&&n[Fc("0x22")](a);for(const t of x)t.detach()}))},o=(t,e)=>1==t[Fc("0xe0")]&&1==e.length&&t[0][Fc("0xa9")][Fc("0x137")](e[0].start),r=(t,e,n,o)=>Vc(t,e,n,o,this[Fc("0xd7")])?[t,e]:Vc(e,t,o,n,this[Fc("0xd7")])?[e,t]:null;this[Fc("0x57")][Fc("0x120")](Fc("0x15"),t),this[Fc("0x57")][Fc("0x120")]("insertion:discard",e),this[Fc("0x57")][Fc("0x120")](Fc("0x90"),o),this[Fc("0x57")].set(Fc("0x12f"),r),this[Fc("0x57")][Fc("0x120")](Fc("0xb0"),e),this._defaultCallbacks.set(Fc("0x35"),t),this[Fc("0x57")][Fc("0x120")](Fc("0x20"),o),this._defaultCallbacks[Fc("0x120")](Fc("0xa3"),r),this._defaultCallbacks[Fc("0x120")](Fc("0x2e"),n),this[Fc("0x57")][Fc("0x120")](Fc("0xbc"),t),this._defaultCallbacks[Fc("0x120")](Fc("0xfa"),o),this[Fc("0x57")].set("formatInline:chain",t),this[Fc("0x57")][Fc("0x120")](Fc("0xd6"),n),this._defaultCallbacks[Fc("0x120")](Fc("0xb7"),t),this._defaultCallbacks[Fc("0x120")](Fc("0x87"),o),this[Fc("0x57")][Fc("0x120")]("formatBlock:chain",t)}}function Bc(t,e,n){for(const o of e[Fc("0x1")][Fc("0x40")]({includeSelf:!0,parentFirst:!0})){if(o[Fc("0x106")]==o)return!1;if(!n[Fc("0x105")](o))return!1;if(t[Fc("0xdf")](o)||t[Fc("0xb6")](o))return!0}}function jc(t){return t[Fc("0xa9")][Fc("0x1")]==t[Fc("0xd3")][Fc("0x1f")]&&t.end[Fc("0x2")]}function Uc(t,e,n,o){const r=t=>!t[Fc("0x130")].is("textProxy")&&!o[Fc("0xdf")](t.item),s=t[Fc("0xd3")][Fc("0x0")](r),i=t[Fc("0xa9")][Fc("0x0")](r,{direction:Fc("0x1e")});return!(t[Fc("0xd3")][Fc("0x137")](s)&&t[Fc("0xa9")][Fc("0x137")](i)||(s[Fc("0x66")](i)?n[Fc("0xfb")](e,{range:n[Fc("0x23")](s,i)}):n[Fc("0xb3")](e),0))}function Gc(t){return(0,s.hashObject)(t)}function Hc(t){const e=t.start[Fc("0x1f")];return e&&e.is("element")}function Wc(t,e){const n=e[Fc("0xcc")][Fc("0xdf")](t)||e.schema[Fc("0xf7")](t);return e[Fc("0x23")](e.createPositionAt(t,Fc("0x8")),n?e.createPositionAfter(t):e.createPositionAt(t,Fc("0xa9")))}function Vc(t,e,n,o,r){if(n[Fc("0xa9")].isEqual(o.start))return!0;if(t.type!=e[Fc("0xae")])return!1;if(!n.end.isTouching(o[Fc("0xd3")]))return!1;const s=r[Fc("0x23")](n[Fc("0xa9")],o[Fc("0xd3")]).getWalker();for(const t of s)if([Fc("0xfe"),Fc("0x6")].includes(t.type)&&r[Fc("0xcc")].isLimit(t[Fc("0x130")]))return!1;return!0}const zc=["PendingActions","_editor","remove","PENDING_ACTION_SUGGESTION","add","locale","stopListening","_acceptCommand","unbind","_removePendingAction","_setPendingAction","get","_pendingAction","listenTo","destroy","commands","commentThreadController","bind","model","isDirty","discardSuggestion","isEnabled","execute","view","acceptSuggestion","plugins"];var Kc,qc;Kc=zc,qc=475,function(t){for(;--t;)Kc.push(Kc.shift())}(++qc);const Xc=function(t,e){return zc[t-=0]};class $c{constructor(t,e,n,o){this[Xc("0xb")]=e,this[Xc("0x10")]=n,this[Xc("0x9")]=o,this[Xc("0x14")]=t,this._acceptCommand=t[Xc("0x8")][Xc("0x4")]("acceptSuggestion"),this._discardCommand=t[Xc("0x8")][Xc("0x4")](Xc("0xd")),this[Xc("0x10")][Xc("0xa")](Xc("0xe")).to(this._acceptCommand),this[Xc("0x5")]=null,n[Xc("0xc")]&&this[Xc("0x3")](),this[Xc("0x6")](n,Xc("0x11"),(()=>this[Xc("0x11")]())),this[Xc("0x6")](n,Xc("0xd"),(()=>this.discardSuggestion())),this[Xc("0x6")](n,"change:isDirty",(()=>{n.isDirty?this[Xc("0x3")]():this[Xc("0x2")]()}))}[Xc("0x11")](){this[Xc("0x0")][Xc("0xf")](this.model.id)}discardSuggestion(){this._discardCommand.execute(this[Xc("0xb")].id)}[Xc("0x7")](){this[Xc("0x10")][Xc("0x1")](Xc("0xe")),this[Xc("0x19")](),this[Xc("0x9")].destroy(),this[Xc("0x5")]&&this[Xc("0x2")]()}_setPendingAction(){const t=as(this[Xc("0x14")][Xc("0x18")],Xc("0x16"));this[Xc("0x5")]=this[Xc("0x14")][Xc("0x12")].get(Xc("0x13"))[Xc("0x17")](t)}[Xc("0x2")](){this[Xc("0x14")][Xc("0x12")].get("PendingActions")[Xc("0x15")](this[Xc("0x5")]),this._pendingAction=null}}(0,e.mix)($c,e.ObservableMixin);const Qc=["editorConfig","cancel","disabledSubmit","commentsListView","CommentView","addComment","commentThreadInputView","isEnabled","descriptionParts","element","assign","destroy","isActive","value","isDirty","_createCommentThreadInputView","focus","fire","isReadOnly","length","updateComment","_config","disableComments","_createCommentViews","_localUser","hasDirtyComment","commentThread","removeComment","_model","commentInputView","bind","set","delegate","authoredAt","submit","editor","locale"];var Jc,Zc;Jc=Qc,Zc=318,function(t){for(;--t;)Jc.push(Jc.shift())}(++Zc);const Yc=function(t,e){return Qc[t-=0]};class tl extends r.View{constructor(t,e,n,o){super(t),this[Yc("0x12")]=null,this[Yc("0x15")]=null,this[Yc("0x9")](Yc("0x1b"),!1),this[Yc("0x9")](Yc("0xb"),e[Yc("0xb")]),this[Yc("0x8")]("authoredAt").to(e),this[Yc("0x9")](Yc("0x17"),[]),this[Yc("0x9")](Yc("0x1d"),!1),this[Yc("0x9")](Yc("0x16"),!1),this[Yc("0x6")]=e,this[Yc("0x2")]=n,this[Yc("0x24")]=o,o[Yc("0x0")]?this[Yc("0x9")](Yc("0x22"),1):this[Yc("0x1")]()}[Yc("0x1f")](){this[Yc("0x18")][Yc("0x1f")]()}[Yc("0x1a")](){this[Yc("0x12")]&&this[Yc("0x12")][Yc("0x1a")](),this[Yc("0x15")]&&this[Yc("0x15")][Yc("0x1a")](),super[Yc("0x1a")]()}[Yc("0x1")](){const{CommentsListView:t}=this[Yc("0x24")];this.commentsListView=new t(this[Yc("0xe")],this[Yc("0x6")][Yc("0x4")],Object[Yc("0x19")]({CommentView:this[Yc("0x24")][Yc("0x13")]},this[Yc("0x24")])),this.commentsListView[Yc("0xa")](Yc("0x5")).to(this),this[Yc("0x12")][Yc("0xa")](Yc("0x23")).to(this),this[Yc("0x12")][Yc("0x8")](Yc("0x1b")).to(this),this[Yc("0x9")]("length",this[Yc("0x12")][Yc("0x22")]+1),this[Yc("0x8")](Yc("0x22")).to(this[Yc("0x12")],Yc("0x22"),(t=>t+1)),this[Yc("0x15")]=this[Yc("0x1e")](),this.on(Yc("0x5"),(()=>this[Yc("0x1f")]())),this[Yc("0x8")]("isDirty").to(this[Yc("0x12")],Yc("0x3"),this[Yc("0x15")][Yc("0x7")],Yc("0x1c"),((t,e)=>t||!!e))}[Yc("0x1e")](){const{CommentThreadInputView:t}=this[Yc("0x24")],e=new t(this.locale,this[Yc("0x2")],this[Yc("0x24")][Yc("0xf")]),n=e[Yc("0x7")];return e[Yc("0x8")]("showInput").to(this,Yc("0x1b"),this[Yc("0x6")].commentThread,Yc("0x21"),n,Yc("0x1c"),((t,e,n)=>!!n||t&&!e)),n.on(Yc("0xc"),((t,e)=>{this[Yc("0x20")](Yc("0x14"),e),n[Yc("0xd")].setData("")})),n.on(Yc("0x10"),(()=>this[Yc("0x1f")]())),n[Yc("0x8")](Yc("0x11")).to(this._model[Yc("0x4")],Yc("0x21")),e}}const el=["extendTemplate","split","innerText","value","isEnabled","discardButton","getExternalSuggestionNote","importWord","color","setTemplate","ck-comment__external","ck-comment__info-time","source","ck-suggestion__main","isActive","ck-annotation","userView",'" title="',"span","commentThread","_descriptionElement","getUserViewNotificationText","change:description","cancel","type","ck-annotation__main","locale","name","acceptButton","acceptSuggestion","<p>","ck-suggestion--discard","ck-suggestion--disabled-comments","ck-annotation__user","disableComments","commentThreadInputView","element","push","Accept suggestion","ck-suggestion__user","EXTERNAL_IMPORT_WORD_AVATAR","isExternal","@external","fire","bind","ck-suggestion--accept","ck-annotation__info-time","children","author","</span>","createElement","_model","innerHTML","check",'<span class="ck-suggestion-type">',"attributes","Discard suggestion",".ck-annotation__content-wrapper","set","join","title","_config","commentsListView","</p>","descriptionParts","ck-suggestion__info-name","render","ck-annotation__info-name","ck-annotation__actions","getTemplate","div","content","_createButton","ck-suggestion-","authoredAt","EXTERNAL_IMPORT_WORD_SUGGESTION","creator"];var nl,ol;nl=el,ol=215,function(t){for(;--t;)nl.push(nl.shift())}(++ol);const rl=function(t,e){return el[t-=0]};class sl extends tl{constructor(e,n,o,r){super(e,n,o,r),this.set("type",""),this[rl("0x3c")]("type").to(this,rl("0x3"),(t=>t&&t[0]?t[0].type:"")),this[rl("0x3c")]("description").to(this,"descriptionParts",this,rl("0x1e"),((t,e)=>{let n="";for(const e of t)n+=rl("0x2e")+il(e[rl("0xa")],e[rl("0x18")])+rl("0x2");return e?n:(0,s.trimHtml)(n,{limit:140})})),this[rl("0x24")]=null,this[rl("0x2c")]=this._createButton(as(e,rl("0x36")),t.icons[rl("0x45")],rl("0x3d"),rl("0x2d"),"sw"),this[rl("0x15")]=this[rl("0xb")](as(e,rl("0x48")),t.icons[rl("0x27")],rl("0x2f"),"discardSuggestion","sw"),this[rl("0x20")]=new s.UserView(e,this[rl("0x43")][rl("0x40")],this[rl("0x25")]()),this.userView[rl("0x10")]({attributes:{class:[rl("0x37"),rl("0x31")]}}),this[rl("0x19")](this[rl("0x8")]())}[rl("0x8")](){const t=this.bindTemplate,e=[{tag:rl("0x9"),attributes:{class:["ck-suggestion__info","ck-annotation__info"]},children:[{tag:rl("0x22"),children:[{text:this[rl("0x20")].name}],attributes:{class:[rl("0x4"),rl("0x6")]}},{tag:"time",attributes:{datetime:t.to(rl("0xd")),class:[rl("0x1b"),rl("0x3e")]},children:[{text:t.to("authoredAt",(t=>this[rl("0x0")].formatDateTime(t)))}]}]},{tag:rl("0x9"),attributes:{class:["ck-suggestion__actions",rl("0x7")]},children:[this[rl("0x2c")],this[rl("0x15")]]},{tag:rl("0x9"),attributes:{class:["ck-annotation__content-wrapper"]}}];this[rl("0x43")][rl("0x39")]&&e[rl("0x35")]({tag:"div",attributes:{class:[rl("0x1a")]},children:[{text:this[rl("0x16")]()}]});const n={tag:rl("0x9"),attributes:{class:["ck-suggestion-wrapper",t.if(rl("0x1e"),"ck-suggestion-wrapper--active"),t.to(rl("0x28"),(t=>rl("0xc")+t)),this._config[rl("0x32")]&&rl("0x30")],"data-suggestion-id":this._model.id,"data-thread-id":this[rl("0x43")][rl("0x23")].id,"data-author-id":this._model[rl("0x40")].id,tabindex:-1},children:[{tag:rl("0x9"),attributes:{class:["ck-suggestion",rl("0x1f")]},children:[this[rl("0x20")],{tag:"div",attributes:{class:[rl("0x1d"),rl("0x29")]},children:e}]}]};return this[rl("0x1")]&&this[rl("0x33")]&&n[rl("0x3f")][rl("0x35")](this[rl("0x1")],this[rl("0x33")]),n}[rl("0x5")](){super[rl("0x5")](),this[rl("0x24")]=this[rl("0x34")].querySelector(rl("0x49")),this[rl("0x24")].innerHTML=this.description,this.on(rl("0x26"),((t,e,n)=>{this._descriptionElement[rl("0x44")]=n}))}[rl("0xb")](t,e,n,o,s){const i=new r.ButtonView(this.locale);return i[rl("0x4a")]({label:t,icon:e,tooltip:!0,tooltipPosition:s}),i[rl("0x10")]({attributes:{class:n}}),i.on("execute",(()=>{this[rl("0x3b")](o,this[rl("0x43")].id)})),i[rl("0x3c")](rl("0x14")).to(this),i}[rl("0x16")](){return rl("0x17")===this[rl("0x43")][rl("0x47")][rl("0x3a")].source?as(this[rl("0x2a")],rl("0xe")):as(this[rl("0x2a")],"EXTERNAL_SUGGESTION")}[rl("0x25")](){return this._model.isExternal?rl("0x17")===this[rl("0x43")][rl("0x47")][rl("0x3a")][rl("0x1c")]?as(this[rl("0x2a")],rl("0x38"),this._model.creator.name):as(this[rl("0x2a")],"EXTERNAL_AVATAR",this._model[rl("0xf")][rl("0x2b")]):null}}function il(t,e){let n="";return n+=t[rl("0x11")]("*").map(((t,e)=>e%2!=0?rl("0x46")+xl(t)+rl("0x41"):xl(t)))[rl("0x4b")](""),e&&(n+='<span class="ck-suggestion-color" style="background-color: '+e[rl("0x13")]+rl("0x21")+e[rl("0x4c")]+'"></span>'),n}function xl(t){const e=document[rl("0x42")]("span");return e[rl("0x12")]=t,e[rl("0x44")]}const al=["getJoined","mainView","change:activeAnnotations","isOn","createAnnotationView","suggestionChanged","trackChanges.disableComments","_createUIButton","Annotations","CommentView","suggestion-","hasSuggestion","editor","define","activeMarkers","trackChanges","_annotationViews","createCommentThreadController","map","view","isEnabled","locale","from","length","suggestionLoaded","destroy","_updateController","getRanges","_handleSuggestionControllerDelayed","addComment","comments.editorConfig","head","remove","CommentsRepository","filter","suggestionUnloaded","pluginName","_suggestionToController","Accept all selected suggestions","TrackChangesEditing","push","CommentsUI","value","refreshSelectedViews","init","TrackChangesUI","execute","addSourceCollector","getDescriptions","focus","componentFactory","bind","editing","Accept all suggestions","config","trackChanges.SuggestionThreadView","Track changes","isMultiRange","set","keys","discardButton","get","model","acceptAllSuggestions","comments.maxThreadTotalWeight","listenTo","_handleControllerBuffer","unbind","Discard all selected suggestions","getAllAdjacentSuggestions","commandName","acceptSelectedSuggestions","innerView","delete","_descriptionFactory","createAnnotation","discardSelectedSuggestions","_refreshActiveMarkers","actionView","some","commentThread","stopListening","_disableComments","comments.maxCommentsWhenCollapsed","registerAnnotation","buttonView","EditorAnnotations","separator","plugins","reduce","button","change:previous","add","isInContent","descriptionParts","comments.maxCommentCharsWhenCollapsed","type","_viewToController","_destroyController","commands","arrowView","getMarkerNames","getSuggestion","activeAnnotations"];var cl,ll;cl=al,ll=323,function(t){for(;--t;)cl.push(cl.shift())}(++ll);const ul=function(t,e){return al[t-=0]};class dl extends t.Plugin{static get requires(){return[Pc,s.Users,ul("0x16"),ul("0x65"),ul("0x4b")]}static get[ul("0x19")](){return ul("0x22")}constructor(t){super(t),this._suggestionToController=new Map,this._viewToController=new Map,this._annotationViews=new Map,this[ul("0x37")]=new Map;const e=this[ul("0x1")][ul("0x2b")];e[ul("0x2")](ul("0x2c"),sl),e[ul("0x2")](ul("0x63"),!1),this[ul("0x47")]=e[ul("0x32")](ul("0x63"))}[ul("0x11")](t,e){0===this[ul("0x37")].size&&setTimeout((()=>{for(const[t,e]of this[ul("0x37")]){const n=this[ul("0x1a")].has(t);n||e?n&&e&&this[ul("0x57")](t):this._initializeController(t)}this[ul("0x1")].plugins.get(ul("0x4b"))[ul("0x20")](),this[ul("0x42")](),this[ul("0x37")].clear()}),10),this._handleControllerBuffer[ul("0x2f")](t,e)}[ul("0x21")](){const t=this[ul("0x1")],e=t[ul("0x4d")][ul("0x32")](Pc),n=t.plugins[ul("0x32")]("Annotations"),o=t[ul("0x4d")][ul("0x32")](ul("0x4b")),r=t.plugins.get("CommentsRepository");t.ui[ul("0x27")][ul("0x51")]("trackChanges",(t=>this[ul("0x64")](t))),o[ul("0x24")]((()=>{const t=[];for(const[e,n]of Array[ul("0xb")](this[ul("0x1a")])){const o=e.getAllAdjacentSuggestions(),r=[];for(const t of o){if(!t[ul("0x52")])continue;if(t[ul("0x2e")]){r[ul("0x1d")](...t[ul("0x10")]());continue}const e=t.getFirstRange();if(r[ul("0xc")]>0){const t=r[0][ul("0x5d")](e);if(t){r[0]=t;continue}}r[ul("0x1d")](e)}t[ul("0x1d")]([n[ul("0x8")],r])}return t})),this[ul("0x36")](e,ul("0xd"),((t,e)=>{this[ul("0x36")](e,ul("0x50"),((t,n,o,r)=>{e.isInContent&&(null==o?(this._updateController(r[ul("0x14")]),this._handleSuggestionControllerDelayed(e,!1)):(this._updateController(o[ul("0x14")]),this[ul("0x11")](e,!0)))})),null===e.previous?this[ul("0x11")](e,!1):this._updateController(e[ul("0x14")])})),this.listenTo(e,ul("0x18"),((t,e,n)=>{this[ul("0x46")](e,"change:previous"),this[ul("0x37")].delete(e);const o=n?n[ul("0x14")]:e,r=this[ul("0x1a")][ul("0x32")](o);null!==n&&this[ul("0xf")](o),null===n&&r&&this[ul("0x57")](e)})),this[ul("0x36")](e,ul("0x62"),((t,e)=>{this[ul("0xf")](e)})),this[ul("0x36")](n,ul("0x5f"),(()=>{this[ul("0x42")]()})),this[ul("0x36")](r,ul("0x12"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[ul("0x0")](n))return;const r=e[ul("0x5b")](n);this[ul("0x1a")][ul("0x32")](r)[ul("0x8")][ul("0x26")]()}),{priority:"lowest"})}[ul("0x42")](){const t=this[ul("0x1")][ul("0x4d")].get("Annotations"),e=this.editor.plugins[ul("0x32")](Pc),n=Array[ul("0xb")](t[ul("0x5c")],(t=>t[ul("0x3d")]))[ul("0x17")]((t=>this[ul("0x56")].has(t))),o=[];for(const t of n){const e=this._viewToController[ul("0x32")](t)[ul("0x33")][ul("0x3a")]();o[ul("0x1d")](...e[ul("0x4e")](((t,e)=>[...t,...e[ul("0x5a")]()]),[]))}e[ul("0x3")]=o}[ul("0x64")](t){const n=(0,r.createDropdown)(t,r.SplitButtonView),o=this[ul("0x1")][ul("0x58")].get(ul("0x4")),s=as(t,ul("0x2d"));n[ul("0x4a")].set({tooltip:s,label:s,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[ul("0x4a")][ul("0x28")](ul("0x60")).to(o,ul("0x1f")),n.buttonView.on("execute",(()=>{o[ul("0x23")](),this[ul("0x1")][ul("0x29")][ul("0x8")][ul("0x26")]()}));const i=new e.Collection,x=[{type:"switchbutton",model:{withText:!0,label:s,commandName:"trackChanges"}},{type:ul("0x4c")},{type:ul("0x4f"),model:{withText:!0,label:as(t,ul("0x2a")),commandName:ul("0x34")}},{type:ul("0x4f"),model:{withText:!0,label:as(t,ul("0x1b")),commandName:ul("0x3c")}},{type:ul("0x4f"),model:{withText:!0,label:as(t,"Discard all suggestions"),commandName:"discardAllSuggestions"}},{type:ul("0x4f"),model:{withText:!0,label:as(t,ul("0x39")),commandName:ul("0x41")}}];for(const t of x){const e={type:t[ul("0x55")]};if(t[ul("0x33")]){const n=new r.Model(t.model),o=this[ul("0x1")].commands[ul("0x32")](n[ul("0x3b")]);n[ul("0x28")](ul("0x60"),"isEnabled").to(o,ul("0x1f"),ul("0x9")),e[ul("0x33")]=n}i[ul("0x51")](e)}(0,r.addListToDropdown)(n,i);const a=x[ul("0x17")]((t=>null!=t[ul("0x33")]))[ul("0x7")]((t=>this.editor[ul("0x58")][ul("0x32")](t[ul("0x33")][ul("0x3b")])));return n[ul("0x4a")][ul("0x43")].unbind(ul("0x9")),n[ul("0x4a")].arrowView[ul("0x38")](ul("0x9")),n[ul("0x4a")][ul("0x43")][ul("0x28")]("isEnabled").to(o,"isEnabled"),n[ul("0x4a")][ul("0x59")][ul("0x28")](ul("0x9")).toMany(a,"isEnabled",((...t)=>t[ul("0x44")]((t=>t)))),n.on(ul("0x23"),(t=>{this[ul("0x1")][ul("0x23")](t.source[ul("0x3b")]),this.editor[ul("0x29")][ul("0x8")][ul("0x26")]()})),n}_initializeController(t){const e=this[ul("0x1")],n=e.config,o=e[ul("0x4d")][ul("0x32")](ul("0x65")),r=e.plugins[ul("0x32")]("CommentsRepository"),i=e[ul("0x4d")].get(ul("0x4b")),x=e[ul("0x4d")].get(s.Users).me,a=n[ul("0x32")](ul("0x4")).SuggestionThreadView,{CommentsListView:c,CommentThreadInputView:l}=e.plugins[ul("0x32")](ul("0x1e"));let u,d;this._annotationViews.has(t.id)?(d=this._annotationViews[ul("0x32")](t.id),u=d.mainView):(u=new a(e.locale,t,x,{disableComments:this[ul("0x47")],editorConfig:n[ul("0x32")](ul("0x13")),maxCommentsWhenCollapsed:n[ul("0x32")](ul("0x48")),maxThreadTotalWeight:n[ul("0x32")](ul("0x35")),maxCommentCharsWhenCollapsed:n[ul("0x32")](ul("0x54")),formatDateTime:(0,s.getDateTimeFormatter)(n.get(ul("0xa"))),CommentView:n[ul("0x32")]("comments")[ul("0x66")],CommentsListView:c,CommentThreadInputView:l}),u.acceptButton.on(ul("0x23"),(()=>{e.editing.view.focus()})),u[ul("0x31")].on(ul("0x23"),(()=>{e[ul("0x29")][ul("0x8")][ul("0x26")]()})),d=o[ul("0x61")](this[ul("0x1")][ul("0xa")],u),d[ul("0x28")]("isDirty").to(u,"isDirty"),d.bind(ul("0xc")).to(u),d[ul("0x28")](ul("0x55")).to(u,ul("0x55"),(t=>ul("0x67")+t)),this[ul("0x5")].set(t.id,d));const g=r[ul("0x6")](t[ul("0x45")],u),m=new $c(e,t,u,g),f=t[ul("0x3a")]()[ul("0x17")]((t=>t.isInContent));u.descriptionParts=e[ul("0x4d")][ul("0x32")](ul("0x1c"))[ul("0x3f")].getDescriptions(f),this[ul("0x1a")][ul("0x2f")](t,m),this._viewToController[ul("0x2f")](u,m);const h=o[ul("0x40")]({view:d,target:()=>{const n=[],o=t[ul("0x3a")]()[ul("0x17")]((t=>t[ul("0x52")]));for(const t of o)n[ul("0x1d")](...t.getMarkers());return(0,s.getAllMarkersDomElementsSorted)(e[ul("0x29")],n)},type:()=>ul("0x67")+m[ul("0x8")][ul("0x55")]});o[ul("0x51")](h),i[ul("0x49")](h)}[ul("0x57")](t){const e=this.editor[ul("0x4d")][ul("0x32")](ul("0x65")),n=this[ul("0x1a")][ul("0x32")](t),o=n.view,r=e.getByInnerView(o);r&&e[ul("0x15")](r),this._suggestionToController[ul("0x3e")](t),this[ul("0x56")][ul("0x3e")](o),n[ul("0xe")]()}[ul("0xf")](t){if(!t[ul("0x52")]||!this[ul("0x1a")].has(t))return;const e=this.editor[ul("0x4d")].get(ul("0x1c")),n=this[ul("0x1a")][ul("0x32")](t),o=t[ul("0x3a")]();n.view[ul("0x53")]=e[ul("0x3f")][ul("0x25")](o)}[ul("0xe")](){for(const t of this[ul("0x1a")][ul("0x30")]())this[ul("0x57")](t);for(const t of this[ul("0x5")].values())t[ul("0x5e")][ul("0xe")]();super[ul("0xe")]()}}var gl,ml,fl=["getSuggestions","getSuggestion","Comments","get","pluginName","addSuggestionData","addSuggestion","adapter","plugins","editor"];gl=fl,ml=350,function(t){for(;--t;)gl.push(gl.shift())}(++ml);var hl=function(t,e){return fl[t-=0]};class pl extends t.Plugin{static get requires(){return[Pc,dl,hl("0x2")]}static get[hl("0x4")](){return"TrackChanges"}set[hl("0x7")](t){this[hl("0x9")].plugins[hl("0x3")](Pc)[hl("0x7")]=t}get[hl("0x7")](){return this[hl("0x9")].plugins.get(Pc)[hl("0x7")]}[hl("0x6")](t){return this[hl("0x9")][hl("0x8")][hl("0x3")](Pc)[hl("0x5")](t)}getSuggestions(t){return this[hl("0x9")][hl("0x8")][hl("0x3")](Pc)[hl("0x0")](t)}[hl("0x1")](t){return this[hl("0x9")][hl("0x8")][hl("0x3")](Pc)[hl("0x1")](t)}}const bl=["TrackChangesData","discardAllSuggestions","requires","acceptAllSuggestions","CommentsRepository","string","_adapter","config","appendChild","from","TrackChangesEditing","filter","WebSocketGateway","get","trackChangesData","plugins","addUser","every","getUser","WordCount","create","map","data","has","find","context","includes","reduce","result","pluginName","useAnonymousUser","editorCreator","addSuggestionData","Autosave","editor","Pagination","execute","track-changes-data-invalid-editor-creator","concat","constructor","function","users","name","extraPlugins","TrackChangesDataGetter","createDocumentFragment","model","set","Users","destroy"];var El,_l;El=bl,_l=137,function(t){for(;--t;)El.push(El.shift())}(++_l);const Tl=function(t,e){return bl[t-=0]},Cl=["initialData",Tl("0x26"),"toolbar"],yl=[Tl("0x19"),"RevisionTracker",Tl("0x2e"),Tl("0x20"),Tl("0x30")];class kl extends t.Plugin{static get[Tl("0xf")](){return[Pc]}static get[Tl("0x2a")](){return Tl("0xd")}init(){const t=this.editor;if(t[Tl("0x14")].define("trackChangesData.editorCreator",(e=>t[Tl("0x2")][Tl("0x21")]("",e))),Tl("0x3")!=typeof t[Tl("0x14")][Tl("0x1a")](Tl("0x1b"))[Tl("0x2c")])throw new e.CKEditorError(Tl("0x0"))}getDataWithAcceptedSuggestions(t){return vl(this[Tl("0x2f")],!0,t)}getDataWithDiscardedSuggestions(t){return vl(this[Tl("0x2f")],!1,t)}}class Al extends t.Plugin{static get[Tl("0x2a")](){return Tl("0x7")}init(){this[Tl("0x29")]="end",this.editor.plugins.get(Tl("0x11"))._adapter={getCommentThread:()=>new Promise((()=>{}))},this.editor[Tl("0x1c")][Tl("0x1a")](Tl("0x17"))[Tl("0x13")]=null}}async function vl(t,e,n){const o=function(t){const e={};for(const n of t[Tl("0x14")].names())Cl[Tl("0x27")](n)||(e[n]=t[Tl("0x14")].get(n));const n=t[Tl("0x2")].builtinPlugins||[],o=e[Tl("0x6")]||[];delete e[Tl("0x6")];const r=n.concat(e.plugins)[Tl("0x1")](o)[Tl("0x22")]((t=>Tl("0x12")==typeof t?n[Tl("0x25")]((e=>e[Tl("0x2a")]==t)):t)),s=Array[Tl("0x16")](new Set(r)),i=new Map;return e[Tl("0x1c")]=s[Tl("0x18")]((t=>Rl(t,i))),e[Tl("0x1c")].push(Al),e[Tl("0x1c")].push(Pc),e}(t),r=document[Tl("0x8")](),s=t[Tl("0x14")][Tl("0x1a")](Tl("0x1b")).editorCreator,i=await s(o,(()=>function(t){const e=document.createElement("div");return t[Tl("0x15")](e),e}(r)));!function(t,e){const n=t[Tl("0x9")].document.getRootNames()[Tl("0x28")](((e,n)=>(e[n]=t.data[Tl("0x1a")]({rootName:n}),e)),{}),o=t[Tl("0x1c")][Tl("0x1a")]("Users")[Tl("0x4")].map((t=>({id:t.id}))),r=t[Tl("0x1c")][Tl("0x1a")](Tl("0x17")).getSuggestions({skipNotAttached:!0,toJSON:!0}),s=e[Tl("0x1c")].get(Tl("0xb")),i=e[Tl("0x1c")][Tl("0x1a")]("TrackChangesEditing");for(const t of o)s[Tl("0x1f")](t.id)||s[Tl("0x1d")](t);s.me||s[Tl("0x2b")]();for(const t of r)i[Tl("0x2d")](t);e.data[Tl("0xa")](n)}(t,i),i[Tl("0x31")](Tl(e?"0x10":"0xe"));const x=i[Tl("0x23")][Tl("0x1a")](n);return await i[Tl("0xc")](),x}function Rl(t,e){const n=Tl("0x3")==typeof t?t[Tl("0x2a")]||t[Tl("0x5")]:t;if(e[Tl("0x24")](n))return e[Tl("0x1a")](n);if(e.set(n,!0),n&&yl[Tl("0x27")](n))return e[Tl("0xa")](n,!1),!1;if(!t[Tl("0xf")])return e[Tl("0xa")](n,!0),!0;const o=t[Tl("0xf")][Tl("0x1e")]((t=>Rl(t,e)));return e[Tl("0xa")](n,o),o}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();