@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230817.0 → 0.0.0-nightly-20230818.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 (64) hide show
  1. package/build/track-changes.js +1 -1
  2. package/package.json +3 -3
  3. package/src/commands/acceptsuggestioncommand.js +1 -1
  4. package/src/commands/discardsuggestioncommand.js +1 -1
  5. package/src/commands/executeonallsuggestionscommand.js +1 -1
  6. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  7. package/src/commands/trackchangescommand.js +1 -1
  8. package/src/integrations/alignment.js +1 -1
  9. package/src/integrations/basicstyles.js +1 -1
  10. package/src/integrations/blockquote.js +1 -1
  11. package/src/integrations/ckbox.js +1 -1
  12. package/src/integrations/codeblock.js +1 -1
  13. package/src/integrations/comments.js +1 -1
  14. package/src/integrations/deletecommand.js +1 -1
  15. package/src/integrations/documentlist.js +1 -1
  16. package/src/integrations/documentlistproperties.js +1 -1
  17. package/src/integrations/entercommand.js +1 -1
  18. package/src/integrations/findandreplace.js +1 -1
  19. package/src/integrations/font.js +1 -1
  20. package/src/integrations/formatpainter.js +1 -1
  21. package/src/integrations/heading.js +1 -1
  22. package/src/integrations/highlight.js +1 -1
  23. package/src/integrations/horizontalline.js +1 -1
  24. package/src/integrations/htmlembed.js +1 -1
  25. package/src/integrations/image.js +1 -1
  26. package/src/integrations/imagereplace.js +1 -1
  27. package/src/integrations/importword.js +1 -1
  28. package/src/integrations/indent.js +1 -1
  29. package/src/integrations/inputcommand.js +1 -1
  30. package/src/integrations/link.js +1 -1
  31. package/src/integrations/list.js +1 -1
  32. package/src/integrations/listproperties.js +1 -1
  33. package/src/integrations/mediaembed.js +1 -1
  34. package/src/integrations/mention.js +1 -1
  35. package/src/integrations/pagebreak.js +1 -1
  36. package/src/integrations/paragraph.js +1 -1
  37. package/src/integrations/removeformat.js +1 -1
  38. package/src/integrations/restrictededitingmode.js +1 -1
  39. package/src/integrations/shiftentercommand.js +1 -1
  40. package/src/integrations/standardeditingmode.js +1 -1
  41. package/src/integrations/style.js +1 -1
  42. package/src/integrations/table.js +1 -1
  43. package/src/integrations/tablecaption.js +1 -1
  44. package/src/integrations/tableclipboard.js +1 -1
  45. package/src/integrations/tablecolumnresize.js +1 -1
  46. package/src/integrations/tableheadings.js +1 -1
  47. package/src/integrations/tablemergesplit.js +1 -1
  48. package/src/integrations/tableofcontents.js +1 -1
  49. package/src/integrations/tableproperties.js +1 -1
  50. package/src/integrations/template.js +1 -1
  51. package/src/integrations/title.js +1 -1
  52. package/src/integrations/undo.js +1 -1
  53. package/src/integrations/utils.js +1 -1
  54. package/src/suggestion.js +1 -1
  55. package/src/suggestiondescriptionfactory.js +1 -1
  56. package/src/trackchanges.js +1 -1
  57. package/src/trackchangesdata.js +1 -1
  58. package/src/trackchangesediting.js +1 -1
  59. package/src/trackchangesui.js +1 -1
  60. package/src/ui/suggestioncontroller.js +1 -1
  61. package/src/ui/view/basesuggestionthreadview.js +1 -1
  62. package/src/ui/view/suggestionthreadview.js +1 -1
  63. package/src/utils/common-translations.js +1 -1
  64. package/src/utils/utils.js +1 -1
@@ -2,4 +2,4 @@
2
2
  /*!
3
3
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var s=e[o];if(void 0!==s)return s.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>xc,TrackChanges:()=>Ac,TrackChangesData:()=>Nc,TrackChangesEditing:()=>Wx});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),a=n(995);const x=["has","editor","execute","value","commands","isEnabled","clearForceDisabled","_enableCommands","affectsData","_disableUnsupportedCommands","forceDisabled","TrackChangesCommand","_isEnabledBasedOnSelection","_enabledCommands"];var c,l;c=x,l=223,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return x[t-=0]};class d extends t.Command{constructor(t,e){super(t),this._enabledCommands=e,this[u("0x4")]=!1,this.refresh(),this[u("0xd")]=!1}refresh(){this[u("0x6")]=!0}[u("0x3")](){this[u("0x4")]=!this[u("0x4")],this[u("0x4")]?this[u("0xa")]():this[u("0x8")]()}[u("0xa")](){for(const t of this[u("0x2")][u("0x5")][u("0x5")]())t.affectsData&&!this._enabledCommands[u("0x1")](t)&&t[u("0xb")]("TrackChangesCommand")}_enableCommands(){for(const t of this[u("0x2")][u("0x5")][u("0x5")]())t[u("0x9")]&&!this[u("0x0")][u("0x1")](t)&&t[u("0x7")](u("0xc"))}}const g=["refresh","canEditAt","acceptSuggestion","track-changes-accept-suggestion-not-found","plugins","_suggestions","TrackChangesEditing","model","getRanges","get","isEnabled","editor","_isEnabledBasedOnSelection"];var m,f;m=g,f=157,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("0x4")]=e,this[h("0xc")](),this[h("0xb")]=!1}[h("0xc")](){this[h("0x9")]=!0}execute(t){const n=this._suggestions.get(t);if(!n)throw new e.CKEditorError(h("0x2"),this);const o=n[h("0x7")]();this[h("0xa")][h("0x6")][h("0x0")](o)&&this[h("0xa")][h("0x3")][h("0x8")](h("0x5"))[h("0x1")](n)}}const b=["get","getRanges","model","isEnabled","_suggestions","_isEnabledBasedOnSelection","track-changes-discard-suggestion-not-found","canEditAt","editor","plugins","refresh","discardSuggestion"];var E,_;E=b,_=312,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("0x4")]=e,this[T("0xa")](),this[T("0x5")]=!1}[T("0xa")](){this[T("0x3")]=!0}execute(t){const n=this._suggestions[T("0x0")](t);if(!n)throw new e.CKEditorError(T("0x6"),this);const o=n[T("0x1")]();this[T("0x8")][T("0x2")][T("0x7")](o)&&this.editor[T("0x9")][T("0x0")]("TrackChangesEditing")[T("0xb")](n)}}const y=["change","push","map","from","start","value","isArray","color","length","splice","isIntersecting","isInContent","isMultiRange","schema","deletion","join","getMarkers","getRanges","end","isCollapsed","execute","add","isTouching","next"," [color ","isObject","createRange","type","createPositionAfter"];var k,A;k=y,A=328,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t.sort(((t,e)=>v("0x5")==t.type&&"deletion"!=e[v("0x12")]?-1:"deletion"!=t.type&&v("0x5")==e[v("0x12")]?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0x4")];for(;o<t.length;){const i=t[o],a=t[o+1];n||(n=e.createPositionBefore(i)),I(e,i,a)||(s[v("0x15")](e[v("0x11")](n,r[v("0x10")](i)?e[v("0x13")](i):e.createPositionAt(i,v("0x9")))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0x13")](e),s=t.createPositionBefore(n);return o[v("0xd")](s)}function L(t,e,n){for(;n[v("0x1c")];){const o=n[v("0x0")](0,100);t[v("0x14")]((()=>{for(const t of o)t[v("0x2")]&&e[v("0xb")](t.id)}))}}const N=["execute","model","isEnabled","_suggestions","from","values","_isEnabledBasedOnSelection","refresh","_command","editor","some","getRanges"];var M,w;M=N,w=462,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this._command=e,this._suggestions=n,this[O("0x1")](),this[O("0x0")]=!1}[O("0x1")](){const t=Array[O("0xa")](this[O("0x9")][O("0xb")]())[O("0x4")]((t=>t.isInContent));this.isEnabled=this._command[O("0x8")]&&t}[O("0x6")](){const t=R(Array[O("0xa")](this[O("0x9")][O("0xb")]()));for(const e of t){const t=e[O("0x5")]();if(!this[O("0x3")][O("0x7")].canEditAt(t))return}L(this[O("0x3")].model,this[O("0x2")],t)}}const D=["model","_selectedSuggestions","document","_suggestions","size","_command","values","canEditAt","from","editor","refresh","selection","isEnabled","_isEnabledBasedOnSelection"];var P,B;P=D,B=109,function(t){for(;--t;)P.push(P.shift())}(++B);const j=function(t,e){return D[t-=0]};class U extends t.Command{constructor(t,e,n){super(t),this[j("0x8")]=e,this[j("0x6")]=n,this._selectedSuggestions=new Set,this[j("0xd")](),this[j("0x2")]=!1}[j("0xd")](){const t=this[j("0xc")][j("0x3")][j("0x5")][j("0x0")],e=Array[j("0xb")](this[j("0x6")][j("0x9")]());this[j("0x4")]=function(t,e){const n=Array[v("0x17")](t[v("0x8")]()),o=new Set;for(const s of e)if(s[v("0x2")])for(const e of n)for(const n of s[v("0x7")]()){const r=n.getRange();(e[v("0x1")](r)||t[v("0xa")]&&!s[v("0x3")]&&s[v("0xe")]&&r.end[v("0xd")](e[v("0x18")]))&&o[v("0xc")](s)}return o}(t,e),this[j("0x1")]=this[j("0x8")].isEnabled&&!!this[j("0x4")][j("0x7")]}execute(){const t=R(Array[j("0xb")](this[j("0x4")]));for(const e of t){const t=e.getRanges();if(!this[j("0xc")].model[j("0xa")](t))return}L(this.editor[j("0x3")],this._command,t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const z=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var W=Array.prototype.splice;const V=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():W.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=z(e,t);return n<0?void 0:e[n][1]};const q=function(t){return z(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=z(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const J=$;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,at=rt.toString,xt=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,xt),n=t[xt];try{t[xt]=void 0;var o=!0}catch(t){}var s=at.call(t);return o&&(e?t[xt]=n:delete t[xt]),s};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const It=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=It(t,e);return St(n)?n:void 0};const Nt=Lt(ot,"Map");const Mt=Lt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Dt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Pt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Pt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=wt,Ut.prototype.delete=Ot,Ut.prototype.get=Dt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Wt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=Wt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Wt(this,t).get(t)};const qt=function(t){return Wt(this,t).has(t)};const Xt=function(t,e){var n=Wt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var a=e[r],x=o?o(n[a],t[a],a,n,t):void 0;void 0===x&&(x=t[a]),s?ne(n,a,x):se(n,a,x)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const ae=function(t){return null!=t&&"object"==typeof t};const xe=function(t){return ae(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,ue=ce.propertyIsEnumerable;const de=xe(function(){return arguments}())?xe:function(t){return ae(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return ae(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Se=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Ie=Se&&Se.isTypedArray;const Le=Ie?ke(Ie):ye;var Ne=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&de(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,a=i?ie(t.length,String):[],x=a.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,x))||a.push(c);return a};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const De=Fe(Object.keys,Object);var Pe=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return De(t);var e=[];for(var n in Object(t))Pe.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const We=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?Me(t,!0):We(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Je=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const an=Fe(Object.getPrototypeOf,Object);const xn=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=an(t);return e}:tn;const cn=function(t,e){return re(t,xn(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const un=function(t){return ln(t,Ue,on)};const dn=function(t){return ln(t,Ve,xn)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const Sn=Rn;var In=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&In.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Dn=st?st.prototype:void 0,Pn=Dn?Dn.valueOf:void 0;const Bn=function(t){return Pn?Object(Pn.call(t)):{}};const jn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(an(t))};const Wn=function(t){return ae(t)&&"[object Map]"==Sn(t)};var Vn=Se&&Se.isMap;const Kn=Vn?ke(Vn):Wn;const qn=function(t){return ae(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?ke(Xn):qn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var a,x=1&n,c=2&n,l=4&n;if(o&&(a=r?o(e,s,r,i):o(e)),void 0!==a)return a;if(!mt(e))return e;var u=ge(e);if(u){if(a=Ln(e),!x)return Ze(e,a)}else{var d=Sn(e),g=d==Qn||"[object GeneratorFunction]"==d;if(be(e))return Qe(e,x);if(d==Zn||d==Jn||g&&!r){if(a=c||g?{}:zn(e),!x)return c?cn(e,Ke(a,e)):sn(e,Ge(a,e))}else{if(!Yn[d])return r?e:{};a=Un(e,d,x)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,a),$n(e)?e.forEach((function(s){a.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){a.set(r,t(s,n,o,r,e,i))}));var f=u?void 0:(l?c?dn:un:c?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(a,r,t(s,n,o,r,e,i))})),a};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||ae(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const ao=io;var xo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=ao(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(xo,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=po(e,t)).length,i=r-1,a=t;null!=a&&++s<r;){var x=bo(e[s]),c=n;if("__proto__"===x||"constructor"===x||"prototype"===x)return t;if(s!=i){var l=a[x];void 0===(c=o?o(l,x,a):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(a,x,c),a=a[x]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,a=t.length,x=e.length;if(a!=x&&!(i&&x>a))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++u<a;){var m=t[u],f=e[u];if(o)var h=i?o(f,m,u,e,t,r):o(m,f,u,t,e,r);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){d=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){d=!1;break}}return r.delete(t),r.delete(e),d};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const Mo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var a=So;case"[object Set]":var x=1&o;if(a||(a=Io),t.size!=e.size&&!x)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(a(t),a(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,a=un(t),x=a.length;if(x!=un(e).length&&!i)return!1;for(var c=x;c--;){var l=a[c];if(!(i?l in e:wo.call(e,l)))return!1}var u=r.get(t),d=r.get(e);if(u&&d)return u==e&&d==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<x;){var f=t[l=a[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===p?f===h||s(f,h,n,o,r):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Do="[object Array]",Po="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),a=ge(e),x=i?Do:Sn(t),c=a?Do:Sn(e),l=(x=x==Fo?Po:x)==Po,u=(c=c==Fo?Po:c)==Po,d=x==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)?Ro(t,e,n,o,s,r):Mo(t,e,x,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=u&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!d&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!ae(e)&&!ae(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const zo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const Wo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Vo=function(t,e){return e.length<2?t:zo(t,Wo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Vo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["hasComments","isIntersectingWithRange","size","getItems","getFirstRange","createdAt","getMarkers","author","commentThread","start","isIntersecting","getMultiRangeId","add","getContainedElement","isMultiRange","next","_model","head","removeAttribute","_saved","split","onAttributesChange","addMarkerName","data","push","from","_onAttributesChange","removeMarkers","decorate","map","suggestion:","creator","isInContent","change","length","getRange","attributes","get","addMarker","_onDiscard","getMarkerNames","end","removeMarker","@external","getRanges","_onAccept","accept","getAllAdjacentSuggestions","getFirstMarker","toJSON","discard","previous","_markerNames","onDiscard","subType","type","set","delete","clear","nodeBefore","reduce"];var $o,Jo;$o=Xo,Jo=406,function(t){for(;--t;)$o.push($o.shift())}(++Jo);const Qo=function(t,e){return Xo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this.id=e.id,this[Qo("0xf")]=e[Qo("0xf")],this[Qo("0xe")]=e.subType||null,this[Qo("0x1c")]=e[Qo("0x1c")],this[Qo("0x34")]=e[Qo("0x34")]||e.author,this.isExternal=Boolean(e[Qo("0x39")]&&e[Qo("0x39")][Qo("0x3")]),this[Qo("0x2c")]=null,this[Qo("0x25")]=t,this._onAccept=e.onAccept,this[Qo("0x3c")]=e[Qo("0xd")],this[Qo("0x2f")]=e[Qo("0x2a")],this._markerNames=new Set,this.createdAt=null,this[Qo("0x10")]("authoredAt",null),this[Qo("0x10")](Qo("0x39"),e.attributes||{}),this[Qo("0x10")](Qo("0xb"),null),this[Qo("0x10")](Qo("0x24"),null),this[Qo("0x10")](Qo("0x1d"),null),this[Qo("0x10")](Qo("0x28"),!1),this[Qo("0x31")]("accept"),this[Qo("0x31")]("discard")}get[Qo("0x26")](){let t=this;for(;t.previous;)t=t[Qo("0xb")];return t}get hasComments(){return!!this[Qo("0x1d")]&&this.commentThread.length>0}get[Qo("0x23")](){return 0!=this[Qo("0xc")][Qo("0x17")]&&6==Array.from(this._markerNames)[0][Qo("0x29")](":")[Qo("0x37")]}get[Qo("0x35")](){return null!==this[Qo("0x8")]()}addMarkerName(t){this._markerNames[Qo("0x21")](t)}[Qo("0x0")](){return Array[Qo("0x2e")](this[Qo("0xc")])}[Qo("0x1b")](){return this[Qo("0x0")]().map((t=>this[Qo("0x25")].markers[Qo("0x3a")](t))).filter((t=>t))}getFirstMarker(){return this[Qo("0x1b")]()[0]||null}[Qo("0x30")](){this[Qo("0x25")].change((t=>{for(const e of this[Qo("0x1b")]())t[Qo("0x2")](e)})),this[Qo("0xc")][Qo("0x12")]()}[Qo("0x2")](t){this[Qo("0x25")][Qo("0x36")]((e=>{e.removeMarker(t)})),this._markerNames[Qo("0x11")](t)}addRange(t){const e=Qo("0x33")+this.type+":"+this[Qo("0xe")]+":"+this.id+":"+this[Qo("0x34")].id+":"+Zo[Qo("0x20")]();this[Qo("0x2b")](e),this[Qo("0x25")].change((n=>{n[Qo("0x3b")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x16")](t){for(const e of this[Qo("0x4")]())if(e[Qo("0x1f")](t))return!0;return!1}[Qo("0x4")](){return this[Qo("0x1b")]()[Qo("0x32")]((t=>t[Qo("0x38")]()))}getItems(){return this[Qo("0x4")]()[Qo("0x14")](((t,e)=>[...t,...e[Qo("0x18")]()]),[])}[Qo("0x19")](){var t;return(null===(t=this[Qo("0x8")]())||void 0===t?void 0:t[Qo("0x38")]())||null}[Qo("0x22")](){const t=this.getRanges();if(1!=t[Qo("0x37")])return null;const e=t[0],n=e[Qo("0x1e")].nodeAfter,o=e[Qo("0x1")][Qo("0x13")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0x6")](){this[Qo("0x5")](this[Qo("0x4")](),this.data,this[Qo("0x39")]),this[Qo("0x30")]()}[Qo("0xa")](){this._onDiscard(this.getRanges(),this[Qo("0x2c")],this[Qo("0x39")]),this[Qo("0x30")]()}[Qo("0x7")](){const t=[];let e=this[Qo("0x26")];for(;e;)t[Qo("0x2d")](e),e=e[Qo("0x24")];return t}setAttribute(t,e){const n=eo(this[Qo("0x39")]);_o(n,t,e),Go(n,this[Qo("0x39")])||(this[Qo("0x39")]=n,this[Qo("0x2f")](n))}[Qo("0x27")](t){const e=eo(this[Qo("0x39")]);qo(e,t),Go(e,this[Qo("0x39")])||(this[Qo("0x39")]=e,this[Qo("0x2f")](this[Qo("0x39")]))}[Qo("0x9")](){return{id:this.id,type:this[Qo("0xe")]?this[Qo("0xf")]+":"+this[Qo("0xe")]:this[Qo("0xf")],authorId:this[Qo("0x34")].id,createdAt:this[Qo("0x1a")],hasComments:this[Qo("0x15")],data:this.data,attributes:this[Qo("0x39")]}}static[Qo("0x20")](){return(0,e.uid)().substr(1,5)}}function Yo(t,e,n){const o=t.t;switch(e){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* change table properties":return o("*Format:* change table properties");case"*Format:* change table cell properties":return o("*Format:* change table cell properties");case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Format:* replace image URL":return o("*Format:* replace image URL");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set format to:* %0":return o("*Set format to:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return o({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return o({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return o({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);default:return e}}const ts=["$text","skip","REPLACE_TEXT","end","*Merge:* %0","name","checkChild","match","_itemLabelsCallbacks","nextSibling","softBreak","$1 $2","_addDescriptionItems","*Split:* %0","_schema","*Insert:* %0","addEmptyContainer","isObject","_locale","insertion","removeEmptyContainer","registerElementLabel","elementEnd","text","isEqual","_itemLabels","getDescriptions","Container","remove","matchingCallback","previousSibling","_resolveDescriptionItems","deletion","quantity","getWalker","getFirstRange","pop","push","removeObject","registerDescriptionCallback","_customCallbacks","*Remove:* %0","indexOf","addObject","ELEMENT_SPACE","elementStart","normal","length","type","addContainer","getItemLabel","data","get","EmptyContainer","$textProxy","add","item","element","replace","Object","isEmpty"];var es,ns;es=ts,ns=353,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("0x35")]=[],this[os("0x26")]=new Map,this[os("0x15")]=[],this[os("0x1b")]=t,this[os("0x1f")]=e}[os("0x27")](t){const e=[];for(let n=0;n<t.length;n++){const o=t[n];if(!o.isInContent)continue;let s=!1;for(const t of this._customCallbacks){const n=t(o);if(n){os("0x0")in n&&e[os("0x32")](n),s=!0;break}}if(!s){this[os("0x19")](e,o);const s=t[n+1];if(s&&!o[os("0x30")]()[os("0x10")][os("0x25")](s[os("0x30")]().start)){const t=e[e.length-1],n="insertion"==o[os("0x0")]?os("0x7"):os("0x29");t&&os("0x24")==t[os("0x0")]&&(t[n]+="\n")}}}return this[os("0x2c")](e)}[os("0x34")](t){this._customCallbacks[os("0x32")](t)}[os("0x22")](t,n,o=e.priorities[os("0x3b")]){"function"==typeof t?(0,e.insertToPriorityArray)(this[os("0x15")],{matchingCallback:t,label:n,priority:o}):this._itemLabels.set(t,n)}[os("0x2")](t,e=1){let n;for(const e of this[os("0x15")])if(e[os("0x2a")](t)){n=e.label;break}return n||(n=this[os("0x26")][os("0x4")](t.name)),n?n(e):1!==e?e+" "+t[os("0x12")]+"s":""+t[os("0x12")]}[os("0x19")](t,e){const n=e[os("0x30")]()[os("0x2f")](),o="insertion"==e.type?os("0x7"):os("0x29");for(const e of n){const s=e[os("0x8")],r=t[t[os("0x3c")]-1];if(s.is(os("0x6")))r&&r[os("0x0")][os("0x37")](os("0x28"))>-1&&t[os("0x31")](),r&&os("0x24")==r.type?r[o]+=s[os("0x3")]:t[os("0x32")]({type:os("0x24"),add:os("0x7")==o?s[os("0x3")]:"",remove:"remove"==o?s[os("0x3")]:""});else if(this[os("0x1b")][os("0x1e")](s)){const i=s;if(r&&r[os("0x0")][os("0x37")]("Container")>-1&&t.pop(),"elementEnd"==e.type)continue;r&&r[os("0x0")]==o+os("0xb")&&r[os("0x9")][os("0x12")]==i[os("0x12")]?r[os("0x2e")]++:t.push({type:o+os("0xb"),element:i,quantity:1}),n[os("0xe")]((t=>!(os("0x23")==t[os("0x0")]&&t.item==s)))}else if(this[os("0x1b")][os("0x13")](s,os("0xd"))||s.is("element",os("0x17"))){const n=s;if("add"==o&&os("0x3a")==e[os("0x0")]||os("0x29")==o&&os("0x23")==e[os("0x0")])continue;if(r&&-1==r[os("0x0")][os("0x37")](os("0x28"))){os("0x24")==r[os("0x0")]&&(r[o]+="\n");continue}let i;if(i=os("0x7")==o?n.nextSibling&&!this[os("0x1b")][os("0x1e")](n[os("0x16")])?n[os("0x16")]:null:n[os("0x2b")]&&!this._schema[os("0x1e")](n[os("0x2b")])?n[os("0x2b")]:null,n[os("0xc")]||i&&i[os("0xc")]){const e=i&&i[os("0xc")]?i:n;r&&r.type==o+os("0x5")&&r[os("0x9")][os("0x12")]==e.name?r.quantity++:t.push({type:o+os("0x5"),element:e,quantity:1})}else t.push({type:o+os("0x28"),element:n})}}}[os("0x2c")](t){const e=this[os("0x1f")],n=[];for(const o of t){switch(o.type){case os("0x24"):if(o[os("0x7")]=o.add.replace(/(\S)\u000A+(\S)/g,os("0x18")).replace(/\u000A/g,""),o.remove=o[os("0x29")][os("0xa")](/(\S)\u000A+(\S)/g,os("0x18"))[os("0xa")](/\u000A/g,""),""!=o.add&&""!=o.remove){n[os("0x32")]({type:os("0xa"),content:Yo(e,os("0xf"),['"'+o[os("0x29")]+'"','"'+o.add+'"'])});continue}if(null!=o[os("0x7")][os("0x14")](/^ +$/)){n[os("0x32")]({type:os("0x20"),content:Yo(e,os("0x1c"),Yo(e,os("0x39"),o.add.length))});continue}if(null!=o.remove[os("0x14")](/^ +$/)){n[os("0x32")]({type:os("0x2d"),content:Yo(e,os("0x36"),Yo(e,os("0x39"),o[os("0x29")].length))});continue}if(""!=o.add){n[os("0x32")]({type:os("0x20"),content:Yo(e,os("0x1c"),'"'+o.add+'"')});continue}n[os("0x32")]({type:os("0x2d"),content:Yo(e,os("0x36"),'"'+o[os("0x29")]+'"')});continue;case os("0x1d"):case os("0x38"):n[os("0x32")]({type:os("0x20"),content:Yo(e,os("0x1c"),this[os("0x2")](o[os("0x9")],o[os("0x2e")]))});continue;case os("0x21"):case os("0x33"):n[os("0x32")]({type:os("0x2d"),content:Yo(e,os("0x36"),this[os("0x2")](o[os("0x9")],o[os("0x2e")]))});continue;case os("0x1"):n[os("0x32")]({type:"insertion",content:Yo(e,os("0x1a"),this[os("0x2")](o[os("0x9")],o[os("0x2e")]))});continue;case"removeContainer":n.push({type:"deletion",content:Yo(e,os("0x11"),this[os("0x2")](o.element,o[os("0x2e")]))});continue}n[os("0x32")](o)}return n}}const rs=["contentLanguageDirection","checkAttribute","_descriptionFactory","schema","change","FORMAT_ALIGN_TO_LEFT","left","alignment","center","markBlockFormat","getSelectedBlocks","value","from","selection","locale","document","enableCommand","FORMAT_ALIGN_TO_CENTER","right","plugins","FORMAT_ALIGN_TO_RIGHT","filter","registerDescriptionCallback","editor","AlignmentEditing","format","commandName","get","commandParams","model","TrackChangesEditing","*Format:* %0","FORMAT_JUSTIFY_TEXT"];var is,as;is=rs,as=142,function(t){for(;--t;)is.push(is.shift())}(++as);const xs=function(t,e){return rs[t-=0]};class cs extends t.Plugin{afterInit(){const t=this[xs("0xd")],e=t[xs("0x4")];if(!t[xs("0x9")].has(xs("0xe")))return;const n=t[xs("0x9")][xs("0x11")](xs("0x14"));n[xs("0x6")](xs("0x1e"),((e,o={})=>{let s=o.value;o[xs("0x1")]||(s="ltr"===t[xs("0x4")][xs("0x17")]?"left":xs("0x8"));const r=Array[xs("0x2")](this[xs("0xd")][xs("0x13")][xs("0x5")][xs("0x3")][xs("0x0")]())[xs("0xb")]((t=>function(t,e,n){const o=t.getAttribute(xs("0x1e"))||null;return e[xs("0x18")](t,xs("0x1e"))&&n!=o}(t,this.editor[xs("0x13")][xs("0x1a")],s)));t[xs("0x13")][xs("0x1b")]((()=>{for(const t of r)n[xs("0x20")](t,{commandName:"alignment",commandParams:[{value:s}]})}))})),n[xs("0x19")][xs("0xc")]((t=>{const{data:n}=t;if(n&&xs("0x1e")==n[xs("0x10")]){const t=n[xs("0x12")][0][xs("0x1")];return{type:xs("0xf"),content:Yo(e,xs("0x15"),function(t){switch(t){case xs("0x1d"):return Yo(e,xs("0x1c"));case xs("0x8"):return Yo(e,xs("0xa"));case xs("0x1f"):return Yo(e,xs("0x7"));case"justify":return Yo(e,xs("0x16"))}}(t))}}}))}}const ls=["bindElementToMarker","markerRange","name","ck-suggestion-marker-","listItem","test","isAtEnd","item","getItems","nextSibling","ck-suggestion-marker--active","get","addClass","hasAttribute","consumable","previousPosition","push","type","getCustomProperty","mapper","element","insert","toViewPosition","createRangeOn","isContent","elementEnd","start","isLimit","getAttribute","span","markerName","writer","getWalker","addHighlight","createUIElement","activeMarkers","includes","isBlock"];var us,ds;us=ls,ds=243,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e[gs("0x1f")]())s[gs("0x24")](t)&&o[gs("0x1")](n[gs("0x8")](s));return o}function fs(t){const e=[];if(t.is(gs("0x5"),gs("0x1b"))){let n=t.nextSibling;for(;n&&n.is(gs("0x5"),gs("0x1b"))&&n[gs("0xd")]("listIndent")>0;)e.push(n),n=n[gs("0x20")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t.plugins[gs("0x22")]("TrackChangesEditing");return(s,r,i)=>{if(!i[gs("0x25")][gs("0x1c")](r[gs("0x18")],s[gs("0x19")]))return;const a=r.markerRange[gs("0x11")](),x=r[gs("0x18")][gs("0xb")],c=t.model.schema;let l=null,u=null,d=!1,g=!1;for(const t of a){const e=t[gs("0x1e")];d=d||c[gs("0x9")](e);const n=i.mapper.toViewElement(e);if(n&&n[gs("0x3")](gs("0x12")))return;gs("0xa")==t[gs("0x2")]&&c[gs("0x16")](e)&&!c[gs("0xc")](e)&&(e[gs("0x20")]||x[gs("0x1d")]?l&&l.parent==e||(l=e,m(t.previousPosition),g=!0):u=u||t[gs("0x0")])}function m(t){const s=i[gs("0x10")][gs("0x13")](gs("0xe"),{class:gs("0x1a")+e}),a=i[gs("0x4")][gs("0x7")](t);n&&o[gs("0x14")][gs("0x15")](r.markerName)&&i[gs("0x10")][gs("0x23")](gs("0x21"),s),i[gs("0x10")][gs("0x6")](a,s),i[gs("0x4")][gs("0x17")](s,r[gs("0xf")])}d||g||!u||m(u)}}const ps=["commands","FORMAT_ITALIC","get","subscript","italic","StrikethroughEditing","forceValue","strikethrough","plugins","FORMAT_SUPERSCRIPT","getRanges","enableCommand","SuperscriptEditing","_descriptionFactory","UnderlineEditing","toLowerCase","from","has","model","FORMAT_BOLD","commandName","isCollapsed","slice","format","markInlineFormat","superscript","*Remove format:* %0","registerDescriptionCallback","CodeEditing","SubscriptEditing","TrackChangesEditing","code","locale","BoldEditing","underline","afterInit","document","value","*Format:* %0"];var bs,Es;bs=ps,Es=111,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=[_s("0x0"),"ItalicEditing",_s("0x14"),_s("0x22"),_s("0xb"),_s("0x23"),_s("0x12")];class Cs extends t.Plugin{[_s("0x2")](){const t=this.editor,e=t[_s("0x18")],n=t[_s("0xe")].get(_s("0x24")),o=t[_s("0x26")];for(const o of Ts){if(!t.plugins[_s("0x17")](o))continue;const s=o[_s("0x1c")](0,-7)[_s("0x15")](),r=t[_s("0x6")][_s("0x8")](s);n[_s("0x11")](s,((t,o={})=>{const i=e[_s("0x3")].selection;if(i[_s("0x1b")])return void t(o);const a=void 0!==o[_s("0xc")]?o[_s("0xc")]:!r[_s("0x4")];e.change((()=>{const t=Array[_s("0x16")](i[_s("0x10")]());for(const o of t){const t=a?[o]:ms(s,o,e);for(const e of t)n[_s("0x1e")](e,{commandName:s,commandParams:[{forceValue:a}]})}}))}))}function s(t,e){n[_s("0x13")][_s("0x21")]((n=>{const{data:s}=n;if(s&&s[_s("0x1a")]===t)return s.commandParams[0][_s("0xc")]?{type:_s("0x1d"),content:Yo(o,_s("0x5"),e)}:{type:_s("0x1d"),content:Yo(o,_s("0x20"),e)}}))}s("bold",Yo(o,_s("0x19"))),s(_s("0xa"),Yo(o,_s("0x7"))),s(_s("0x1"),Yo(o,"FORMAT_UNDERLINE")),s(_s("0x25"),Yo(o,"FORMAT_CODE")),s(_s("0xd"),Yo(o,"FORMAT_STRIKETHROUGH")),s(_s("0x9"),Yo(o,"FORMAT_SUBSCRIPT")),s(_s("0x1f"),Yo(o,_s("0xf")))}}const ys=["checkChild","format","getSelectedBlocks","filter","selection","document","forceValue","*Format:* %0","plugins","afterInit","change","markBlockFormat","ELEMENT_BLOCK_QUOTE","get","has","model","commands","BlockQuoteEditing","*Remove format:* %0","editor","$root","commandName","commandParams","from","parent","name","blockQuote","_descriptionFactory"];var ks,As;ks=ys,As=208,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0x19")](){const t=this.editor,e=t.locale;if(!t.plugins[vs("0x2")](vs("0x5")))return;const n=t[vs("0x18")][vs("0x1")]("TrackChangesEditing"),o=this[vs("0x7")][vs("0x4")][vs("0x1")](vs("0xe"));n.enableCommand(vs("0xe"),((e,s={})=>{const r=this[vs("0x7")][vs("0x3")][vs("0x15")][vs("0x14")],i=s&&void 0!==s[vs("0x16")]?s[vs("0x16")]:!o.value;let a=[];if(i){const e=Array[vs("0xb")](r[vs("0x12")]())[vs("0x13")]((t=>Ss(t)||function(t,e){const n=e[vs("0x10")](t.parent,vs("0xe")),o=e[vs("0x10")]([vs("0x8"),vs("0xe")],t);return n&&o}(t,this[vs("0x7")][vs("0x3")].schema)));a=S(e,t.model)}else{const e=Array.from(r[vs("0x12")]()).filter((t=>Ss(t)));a=S(e,t[vs("0x3")])}t[vs("0x3")][vs("0x1a")]((()=>{for(const t of a)n[vs("0x1b")](t,{commandName:"blockQuote",commandParams:[{forceValue:i}]})}))})),n[vs("0xf")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&vs("0xe")==n[vs("0x9")]){const t=Yo(e,vs("0x0"));return n[vs("0xa")][0].forceValue?{type:vs("0x11"),content:Yo(e,vs("0x17"),t)}:{type:vs("0x11"),content:Yo(e,vs("0x6"),t)}}}))}}function Ss(t){return vs("0xe")==t[vs("0xc")][vs("0xd")]}const Is=["enableCommand","plugins","ckbox","TrackChangesEditing","get"];var Ls,Ns;Ls=Is,Ns=181,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const Ms=function(t,e){return Is[t-=0]};class ws extends t.Plugin{afterInit(){const t=this.editor;t.commands[Ms("0x3")](Ms("0x1"))&&t[Ms("0x0")][Ms("0x3")](Ms("0x2"))[Ms("0x4")](Ms("0x1"))}}const Os=["enableCommand","*Format:* %0","afterInit","plugins","rootElement","name","TrackChangesEditing","codeBlock","commandName","ELEMENT_CODE_BLOCK","_descriptionFactory","formatBlock","language","commandParams","blockName","isLimit","checkChild","get","getSelectedBlocks","parent","locale","registerElementLabel","from","indentCodeBlock","markBlockFormat","model","config","filter","change","forceValue","schema","selection","find","label","*Remove format:* %0","editor","outdentCodeBlock","registerDescriptionCallback"];var Fs,Ds;Fs=Os,Ds=331,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ds);const Ps=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ps("0xd")](){const t=this[Ps("0x8")];if(!t[Ps("0xe")].has("CodeBlock"))return;const e=t[Ps("0xe")].get(Ps("0x11")),n=t[Ps("0x1f")],o=t[Ps("0x25")][Ps("0x1c")](Ps("0x12")).languages,s=t.commands[Ps("0x1c")]("codeBlock");e[Ps("0xb")](Ps("0x22")),e.enableCommand(Ps("0x9")),e[Ps("0xb")]("codeBlock",((n,r={})=>{const i=t[Ps("0x24")],a=t[Ps("0x24")].document[Ps("0x4")],x=r&&void 0!==r[Ps("0x2")]?r[Ps("0x2")]:!s.value;let c;r[Ps("0x17")]||(r[Ps("0x17")]=o[0][Ps("0x17")]),c=x?Array[Ps("0x21")](a[Ps("0x1d")]())[Ps("0x0")]((t=>{return js(t)||(e=t,n=i[Ps("0x3")],!e.is(Ps("0xf"))&&!n[Ps("0x1a")](e)&&n[Ps("0x1b")](e[Ps("0x1e")],Ps("0x12")));var e,n})):Array[Ps("0x21")](a.getSelectedBlocks())[Ps("0x0")]((t=>js(t)));const l=S(c,i);i[Ps("0x1")]((()=>{for(const t of l)e[Ps("0x23")](t,{commandName:Ps("0x12"),commandParams:[{...r,forceValue:x}],formatGroupId:Ps("0x19")})}))})),e[Ps("0x15")][Ps("0x20")](Ps("0x12"),(t=>Yo(n,Ps("0x14"),t))),e[Ps("0x15")][Ps("0xa")]((t=>{const e=n.t,{type:s,data:r}=t;if(Ps("0x16")==s&&r&&Ps("0x12")==r[Ps("0x13")]){const t=r[Ps("0x18")][0].language,s=e(o[Ps("0x5")]((e=>e[Ps("0x17")]===t))[Ps("0x6")]);return r.commandParams[0].forceValue?{type:"format",content:Yo(n,Ps("0xc"),Yo(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:"format",content:Yo(n,Ps("0x7"),Yo(n,Ps("0x14"),1))}}}))}}function js(t){return Ps("0x12")==t[Ps("0x10")]}const Us=["afterInit","get","TrackChangesEditing","CommentsEditing","has","enableCommand","addCommentThread"];var Gs,Hs;Gs=Us,Hs=210,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const zs=function(t,e){return Us[t-=0]};class Ws extends t.Plugin{[zs("0x0")](){const t=this.editor;t.plugins[zs("0x4")](zs("0x3"))&&t.plugins[zs("0x1")](zs("0x2"))[zs("0x5")](zs("0x6"))}}var Vs=n(181);const Ks=["model","plugins","getFirstRange","createSelection","init","editing","merge","isCollapsed","addMarker:suggestion:deletion","batch","data","delete","unit","buffer","rootName","setSelection","deleteForward","high","mapper","commands","TrackChangesEditing","end","selection","start","downcastDispatcher","showSuggestionHighlights","fromRange","enqueueChange","writer","markerName","forward","remove","modifySelection","get","markerNameToElements","enableCommand","requires","document","uiElement","createRange","unbindElementFromMarkerName","bind"];var qs,Xs;qs=Ks,Xs=439,function(t){for(;--t;)qs.push(qs.shift())}(++Xs);const $s=function(t,e){return Ks[t-=0]};class Js extends t.Plugin{static get[$s("0x11")](){return[Vs.Delete]}[$s("0x1b")](){const t=this.editor,e=t[$s("0x18")][$s("0xe")]($s("0x1"));e[$s("0x10")]($s("0x22"));const n=t[$s("0x0")].get($s("0x27"));e.enableCommand("deleteForward",((e,o={})=>{const s=t.model[$s("0x1a")](t[$s("0x17")][$s("0x12")][$s("0x3")]);s[$s("0x1e")]&&t[$s("0x17")][$s("0xd")](s,{direction:$s("0xb"),unit:o[$s("0x23")]});const r=s[$s("0x19")](),a=i.LiveRange[$s("0x7")](r);let x;e(o),x="$graveyard"==a.root[$s("0x25")]?t[$s("0x17")][$s("0x14")](r.start):t[$s("0x17")][$s("0x14")](a[$s("0x4")],a[$s("0x2")]),a.detach(),t[$s("0x17")][$s("0x8")](n.buffer[$s("0x20")],(t=>{n[$s("0x24")].lock(),t[$s("0x26")](t[$s("0x14")](x[$s("0x2")])),n.buffer.unlock()}))})),t[$s("0x1c")][$s("0x5")].on($s("0x1f"),hs(t,$s("0x1d")),{priority:$s("0x28")}),t[$s("0x21")][$s("0x5")].on($s("0x1f"),((e,n,o)=>{o.options[$s("0x6")]&&hs(t,"merge",{showActiveMarker:!1})[$s("0x16")](this)(e,n,o)}),{priority:$s("0x28")}),t.editing[$s("0x5")].on("removeMarker:suggestion:deletion",((t,e,n)=>{const o=n[$s("0x29")][$s("0xf")](e[$s("0xa")]);if(o)for(const t of o)t.is($s("0x13"))&&(n[$s("0x29")][$s("0x15")](t,e[$s("0xa")]),n[$s("0x9")][$s("0xc")](t))}),{priority:$s("0x28")})}}const Qs=["formatBlock","*Indent:* %0","afterInit","multipleBlocks","outdentList","execute","TrackChangesEditing","has","listIndent","isObject","commandParams","bulletedList","_descriptionFactory","from","before","splitListItemBefore","registerCustomCallback","getFirstRange","ELEMENT_BULLETED_LIST","listType","forceValue","commands","start","_LIST","*Format:* remove from %0","containsItem","schema","nextSibling","ELEMENT_NUMBERED_LIST","mergeListItemBackward","model","enableCommand","get","ELEMENT_LIST_ITEM","deletion","refresh","DocumentListEditing","document","map","plugins","getRanges","getAttribute","setSelection","markMultiRangeBlockFormat","documentList","next","createPositionAt","end","getSelectedBlocks","after","locale","_suggestionFactory","length","detach","commandName","fromRange","createRange","accept","toUpperCase","findIndex","*Change to:* %0","*Format:* insert into %0","markBlockFormat","splitListItemAfter","indentList","value","selection","ELEMENT_","change","expandListBlocksToCompleteList","*Merge:* %0","hasAttribute","registerDescriptionCallback","nodeAfter","push","registerElementLabel","listItemId","add","numberedList","slice","format"];var Zs,Ys;Zs=Qs,Ys=391,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0x10")](){const t=this.editor;if(!t[tr("0x35")][tr("0x15")](tr("0x32")))return;const e=t[tr("0x40")],n=t[tr("0x35")][tr("0x2e")](tr("0x14")),o=t[tr("0x35")].get("DocumentListUtils");function s(e){return()=>{const s=t[tr("0x23")][tr("0x2e")](e);let r=Array[tr("0x1b")](t.model.document.selection[tr("0x3e")]());if(x(e)){r=o[tr("0x2")](r);const t=[];for(const e of r)o.isFirstBlockOfListItem(e)&&t[tr("0x7")](e);r=t}t[tr("0x2c")][tr("0x1")]((()=>{n[tr("0x39")](r,{commandName:e,commandParams:[{forceValue:!s[tr("0x4f")]}],formatGroupId:"listType"},[],tr("0x3a"))}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0x1b")](t);const n=e[tr("0x49")]((t=>!t[tr("0x4")](tr("0x9"))));return n>-1&&(e=e[tr("0xc")](0,n)),e}(t.model.document[tr("0x50")].getSelectedBlocks()),s=o[o[tr("0x42")]-1],r=t.model[tr("0x28")][tr("0x17")](s)?tr("0x3f"):tr("0x3d"),i=t[tr("0x2c")][tr("0x46")](t[tr("0x2c")].createPositionAt(o[0],tr("0x1c")),t[tr("0x2c")][tr("0x3c")](s,r));t[tr("0x2c")][tr("0x1")]((()=>{n.markBlockFormat(i,{commandName:e,commandParams:[],formatGroupId:"listType"},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t[tr("0x37")](tr("0x16"))>n.getAttribute(tr("0x16"));)e[tr("0xa")](t),t=t[tr("0x29")]}return Array[tr("0x1b")](e)}(o))}))}}function a(e){return()=>{const o=t[tr("0x2c")].document[tr("0x50")].getSelectedBlocks()[tr("0x3b")]()[tr("0x4f")],s=t.model[tr("0x3c")](o,"before"),r=t[tr("0x2c")][tr("0x3c")](o,0),i=t[tr("0x2c")].createRange(s,r);t[tr("0x2c")][tr("0x1")]((()=>{n[tr("0x4c")](i,{commandName:e,commandParams:[],formatGroupId:"listType"})}))}}function x(e){const n=t[tr("0x23")][tr("0x2e")]("bulletedList")[tr("0x4f")],o=t[tr("0x23")][tr("0x2e")](tr("0xb"))[tr("0x4f")];return tr("0xb")===e?n:o}n[tr("0x2d")](tr("0xb"),s(tr("0xb"))),n.enableCommand("bulletedList",s(tr("0x19"))),n[tr("0x2d")](tr("0x4e"),r(tr("0x4e"))),n[tr("0x2d")](tr("0x12"),r(tr("0x12"))),n[tr("0x2d")](tr("0x4d"),a("splitListItemAfter")),n[tr("0x2d")](tr("0x1d"),a("splitListItemBefore")),n[tr("0x1a")][tr("0x8")]((function(e){const n=!t[tr("0x2c")].schema[tr("0x17")](e),o=e.previousSibling,s=e.nextSibling,r=e[tr("0x37")](tr("0x9")),i=!o||o[tr("0x37")](tr("0x9"))!==r,a=!s||s[tr("0x37")](tr("0x9"))!==r;return n&&Boolean(r)&&i&&a}),(t=>Yo(e,tr("0x2f"),t))),n[tr("0x1a")][tr("0x5")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x44")]){case tr("0x19"):r=n[tr("0x18")][0][tr("0x22")],i=x(n.commandName),o=tr(r?"0x4b":"0x26"),i&&(o=tr("0x4a")),s={type:tr("0xd"),content:Yo(e,o,Yo(e,tr("0x20")))};break;case tr("0xb"):r=n.commandParams[0][tr("0x22")],i=x(n[tr("0x44")]),o=tr(r?"0x4b":"0x26"),i&&(o=tr("0x4a")),s={type:"format",content:Yo(e,o,Yo(e,tr("0x2a")))};break;case tr("0x4e"):o=tr("0xf"),s={type:"format",content:Yo(e,o,Yo(e,"ELEMENT_LIST_ITEM"))};break;case"outdentList":o=function(t){const e=t.getFirstRange();let n=e[tr("0x24")][tr("0x6")];for(;n&&e[tr("0x27")](n);){if(n.getAttribute(tr("0x16"))>0)return!1;n=n[tr("0x29")]}return!0}(t)?Yo(e,tr("0x26"),Yo(e,function(t){const e=t[tr("0x1f")]()[tr("0x24")][tr("0x6")];return tr("0x0")+e[tr("0x37")](tr("0x21"))[tr("0x48")]()+tr("0x25")}(t))):Yo(e,"*Outdent:* %0",Yo(e,tr("0x2f"))),s={type:tr("0xd"),content:o};break;case tr("0x2b"):case"mergeListItemForward":!1===n[tr("0x11")]&&(o=tr("0x3"),s={type:tr("0x30"),content:Yo(e,o,Yo(e,"ELEMENT_LIST_ITEM"))})}return s})),n[tr("0x41")][tr("0x1e")](tr("0xe"),tr("0x3a"),tr("0x47"),(function(e,n){const o=[];for(let n of e)n[tr("0x24")][tr("0x6")]===n[tr("0x3d")].parent&&(n=t[tr("0x2c")][tr("0x46")](t[tr("0x2c")].createPositionAt(n[tr("0x24")][tr("0x6")],0))),o[tr("0x7")](n);t[tr("0x2c")].change((e=>{const s=t.model[tr("0x33")][tr("0x50")],r=Array[tr("0x1b")](s[tr("0x36")]())[tr("0x34")]((t=>i.LiveRange[tr("0x45")](t)));e[tr("0x38")](o),t[tr("0x23")][tr("0x2e")](n.commandName)[tr("0x31")](),n[tr("0x18")].push({forceDefaultExecution:!0}),t[tr("0x13")](n.commandName,...n[tr("0x18")]),e[tr("0x38")](r);for(const t of r)t[tr("0x43")]()}))}))}}var nr=n(331);const or=["parent","split","model","get","removeMarker:suggestion:insertion","enableCommand","init","plugins","createPositionAt","markInsertion","requires","downcastDispatcher","markerNameToElements","nextSibling","setSelection","markerName","mapper","detach","data","ck-suggestion-marker-split","high","unbindElementFromMarkerName","end","fire","editor","afterExecute","remove","document","selection","addMarker:suggestion:insertion","TrackChangesEditing","getFirstPosition","showSuggestionHighlights"];var sr,rr;sr=or,rr=434,function(t){for(;--t;)sr.push(sr.shift())}(++rr);const ir=function(t,e){return or[t-=0]};class ar extends t.Plugin{static get[ir("0x5")](){return[nr.Enter]}[ir("0x1")](){const t=this[ir("0x13")],e=t[ir("0x2")].get(ir("0x19")),n=t.commands[ir("0x1f")]("enter");e[ir("0x0")]("enter",(()=>{t.model.change((o=>{const s=t[ir("0x1e")][ir("0x16")][ir("0x17")],r=s[ir("0x1a")](),a=i.LiveRange.fromRange(s.getFirstRange());if(n.enterBlock(o)){const n=t[ir("0x1e")][ir("0x3")](r[ir("0x1c")][ir("0x8")],0),s=o.createRange(r,n);e[ir("0x4")](s)}else o[ir("0x9")](o.createRange(a[ir("0x11")]));a[ir("0xc")](),n[ir("0x12")](ir("0x14"),{writer:o})}))})),t.editing[ir("0x6")].on(ir("0x18"),hs(t,ir("0x1d")),{priority:"high"}),t.editing[ir("0x6")].on(ir("0x20"),((t,e,n)=>{const o=n[ir("0xb")][ir("0x7")](e.markerName);if(o)for(const t of o)t.hasClass(ir("0xe"))&&(n[ir("0xb")][ir("0x10")](t,e[ir("0xa")]),n.writer[ir("0x15")](t))}),{priority:ir("0xf")}),t[ir("0xd")].downcastDispatcher.on(ir("0x18"),((e,n,o)=>{o.options[ir("0x1b")]&&hs(t,ir("0x1d"),{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:"high"})}}const xr=["findPrevious","editor","start","end","find","findByTextCallback","findNext","markers","replaceAll","getMarkersGroup","get","createRange","model","suggestion:deletion","filter","createPositionAt","string","handleFindCommand","afterInit","_isInDeletionRange","FindAndReplaceUtils","enableCommand","getIntersection","plugins","has"];var cr,lr;cr=xr,lr=375,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const ur=function(t,e){return xr[t-=0]};class dr extends t.Plugin{[ur("0x12")](){if(!this[ur("0x1")].plugins[ur("0x18")]("FindAndReplaceEditing"))return;const t=this[ur("0x1")][ur("0x17")][ur("0xa")]("TrackChangesEditing");t[ur("0x15")](ur("0x4"),this[ur("0x11")].bind(this)),t[ur("0x15")](ur("0x6")),t[ur("0x15")](ur("0x0")),t[ur("0x15")]("replace"),t[ur("0x15")](ur("0x8"))}handleFindCommand(t,e,n={}){const o=this[ur("0x1")][ur("0x17")][ur("0xa")](ur("0x14"));void 0!==n&&t((t=>(ur("0x10")==typeof e?o[ur("0x5")](e,n):e)(t)[ur("0xe")]((e=>!1===this[ur("0x13")](e,t.item)))),n)}[ur("0x13")](t,e){const n=this[ur("0x1")][ur("0xc")][ur("0xb")](this[ur("0x1")][ur("0xc")][ur("0xf")](e,t[ur("0x2")]),this[ur("0x1")][ur("0xc")][ur("0xf")](e,t[ur("0x3")]));for(const t of this[ur("0x1")][ur("0xc")][ur("0x7")][ur("0x9")](ur("0xd")))if(null!==n[ur("0x16")](t.getRange()))return!0;return!1}}const gr=["selection","isCollapsed","*Reset font size*","_descriptionFactory","toLowerCase","config","find","commandName","fontSize","model","fontBackgroundColor.colors","value","fontColor.colors","plugins","afterInit","fontBackgroundColor","getRanges","fontColor","normalizeSizeOptions","*Reset font color*","editor","get","title","*Set font background color:* %0","has","label","TrackChangesEditing","*Set font family:* %0","FontColorEditing","change","fontFamily","fontSize.options","from","FontSize","commandParams","_enableCommand","FontSizeEditing","format","enableCommand","*Set font color:* %0","locale","trim"];var mr,fr;mr=gr,fr=407,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:hr("0x7"),commandName:hr("0x15")},{pluginName:"FontFamilyEditing",commandName:hr("0x1")},{pluginName:hr("0x29"),commandName:hr("0x1e")},{pluginName:"FontBackgroundColorEditing",commandName:hr("0x1c")}];class br extends t.Plugin{[hr("0x1b")](){const t=this[hr("0x21")][hr("0xb")];for(const{pluginName:t,commandName:e}of pr)this[hr("0x21")].plugins[hr("0x25")](t)&&this[hr("0x6")](e);this[hr("0x21")].plugins[hr("0x22")](hr("0x27"))[hr("0x10")].registerDescriptionCallback((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0x15")==o.commandName){const e=o[hr("0x5")][0][hr("0x18")];if(e){const o=n(this[hr("0x21")][hr("0x1a")].get(hr("0x4"))[hr("0x1f")](this[hr("0x21")][hr("0x12")][hr("0x22")](hr("0x2")))[hr("0x13")]((t=>t[hr("0x16")]==e))[hr("0x23")])[hr("0x11")]();return{type:"format",content:Yo(t,"*Set font size:* %0",o)}}return{type:"format",content:Yo(t,hr("0xf"))}}if(hr("0x1")==o[hr("0x14")]){const e=o[hr("0x5")][0].value;return e?{type:hr("0x8"),content:Yo(t,hr("0x28"),e)}:{type:hr("0x8"),content:Yo(t,"*Reset font family*")}}if(hr("0x1e")==o.commandName){const e=o[hr("0x5")][0][hr("0x18")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x21")][hr("0x12")].get(hr("0x19")))[hr("0x13")]((t=>t[hr("0x16")]==e));let r=e,i="";return o&&(r=o.label,i=n(r)[hr("0x11")]()),{type:hr("0x8"),content:Yo(t,hr("0xa"),i)[hr("0xc")](),color:{value:e,title:i||r}}}return{type:hr("0x8"),content:Yo(t,hr("0x20"))}}if(hr("0x1c")==o.commandName){const e=o[hr("0x5")][0][hr("0x18")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x21")].config.get(hr("0x17")))[hr("0x13")]((t=>t[hr("0x16")]==e));let r=e,i="";return o&&(r=o[hr("0x26")],i=n(r)[hr("0x11")]()),{type:hr("0x8"),content:Yo(t,hr("0x24"),i)[hr("0xc")](),color:{value:e,title:i||r}}}return{type:hr("0x8"),content:Yo(t,"*Reset font background color*")}}}}))}_enableCommand(t){const e=this[hr("0x21")];e.plugins[hr("0x22")](hr("0x27"))[hr("0x9")](t,((n,o={})=>{const s=e.model.document[hr("0xd")],r=o.value;s[hr("0xe")]?n(o):e[hr("0x16")][hr("0x0")]((()=>{const n=Array[hr("0x3")](s[hr("0x1d")]());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0x16")]);for(const o of n)e[hr("0x1a")].get("TrackChangesEditing").markInlineFormat(o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["backward","find","join","commandParams","word","entries","toLowerCase","isCollapsed","*Remove all formatting*","charAt","afterInit","boolean","locale","format","plugins","*Set format to:* %0","forward","getAttributes","createRange","length","enableCommand","change","FontSize","pasteFormat","_descriptionFactory","getFirstPosition","model","copyFormat","markInlineFormat","get","config","fontColor","push","fontSize","fontBackgroundColor","TrackChangesEditing","keys","getAttributeProperties","modifySelection","commands","isBlock","slice","selection","getSelectedBlocks","fontColor.colors"];var _r,Tr;_r=Er,Tr=215,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0x14")](){const t=this.editor,n=t.model,o=n.document[Cr("0x7")],s=t.plugins[Cr("0x27")](Cr("0x0")),r=t[Cr("0x16")],i=t[Cr("0x4")].get(Cr("0x25")),a=t[Cr("0x4")][Cr("0x27")](Cr("0x21"));i&&a&&(s[Cr("0x1e")]("pasteFormat",((t,r={})=>{const i=r;n[Cr("0x1f")]((()=>{const t=Array.from(o.getRanges()),r=o[Cr("0x11")]?[kr(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t[Cr("0x1b")]()){const t=e[Cr("0x2")](n);t&&t.isFormatting&&(yield n)}}(t,n));for(const e of t.getRanges())for(const t of e.getItems())!n[Cr("0x5")](t)&&o(t)&&(yield t);for(const e of t[Cr("0x8")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n.schema))||0!==Object[Cr("0x1")](i)[Cr("0x1d")])for(const t of r)s[Cr("0x26")](t,{commandName:Cr("0x21"),commandParams:[i]})}))})),s[Cr("0x22")].registerDescriptionCallback((e=>{const{data:n}=e;if(n&&Cr("0x21")===n.commandName){const e=[],o=n[Cr("0xd")][0];for(const[n,s]of Object[Cr("0xf")](o))e[Cr("0x2a")](Ar(t,n,s));return e[Cr("0x1d")]?{type:Cr("0x17"),content:Yo(r,Cr("0x19"),e[Cr("0xc")](", "))}:{type:"format",content:Yo(r,Cr("0x12"))}}})),t[Cr("0x18")][Cr("0x27")](Cr("0x0"))[Cr("0x1e")](Cr("0x25")))}}function kr(t,e){const n=t.createSelection(e);t[Cr("0x3")](n,{unit:Cr("0xe"),direction:Cr("0xa")});const o=n[Cr("0x23")]();t[Cr("0x3")](n,{unit:Cr("0xe"),direction:Cr("0x1a")});const s=n.getLastPosition();return t[Cr("0x1c")](o,s)}function Ar(t,e,n){const o=t.locale.t,r=e.split(/(?=[A-Z])/).join(" "),i=o(r[Cr("0x13")](0).toUpperCase()+r[Cr("0x6")](1)).toLowerCase();if(Cr("0x15")==typeof n)return i;if(Cr("0x29")===e||Cr("0x2c")===e){const e=(0,s.normalizeColorOptions)(t[Cr("0x28")][Cr("0x27")](Cr("0x9")))[Cr("0xb")]((t=>t[Cr("0x24")]==n));return i+" ("+(e?o(e.label)[Cr("0x10")]():n)+")"}if(Cr("0x2b")===e&&isNaN(parseFloat(n))){const e=t[Cr("0x18")][Cr("0x27")](Cr("0x20")).normalizeSizeOptions(t[Cr("0x28")][Cr("0x27")]("fontSize.options"))[Cr("0xb")]((t=>t[Cr("0x24")]==n));return i+" ("+(e?o(e.title).toLowerCase():n)+")"}return i+" ("+n+")"}const vr=["get","markBlockFormat","has","TrackChangesEditing","isObject","commandParams","plugins","commandName","editor","formatBlock","title","*Change to:* %0","enableCommand","registerElementLabel","paragraph","registerDescriptionCallback","heading.options","HeadingEditing","heading","document","checkChild","format","selection","config","value","from","change","_descriptionFactory","ELEMENT_HEADING_CUSTOM","ELEMENT_HEADING","model","name","find"];var Rr,Sr;Rr=vr,Sr=128,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const Ir=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{afterInit(){const t=this.editor,e=t.locale,n=t[Ir("0x1b")].get(Ir("0x14"));if(!t[Ir("0xa")][Ir("0x6")](Ir("0x15")))return;const o=t[Ir("0xa")][Ir("0x4")](Ir("0x7"));o[Ir("0x10")](Ir("0x16"),((e,n)=>{const s=n[Ir("0x1c")],r=Array[Ir("0x1d")](this[Ir("0xc")][Ir("0x1")][Ir("0x17")][Ir("0x1a")].getSelectedBlocks()).filter((t=>{return e=t,n=s,(o=this.editor[Ir("0x1")].schema)[Ir("0x18")](e.parent,n)&&!o[Ir("0x8")](e)&&e[Ir("0x2")]!=n;var e,n,o}));t[Ir("0x1")][Ir("0x1e")]((()=>{for(const t of r)o[Ir("0x5")](t,{commandName:Ir("0x16"),commandParams:[n],formatGroupId:"blockName"},fs(t))}))}));for(const t of n)Ir("0x12")!=t[Ir("0x1")]&&o._descriptionFactory[Ir("0x11")](t.model,(e=>{const n=Nr(t.model);return null!==n?s(e,n):r(e,t[Ir("0xe")])}));function s(t,n){return Yo(e,Ir("0x0"),[t,n])}function r(t,n){return Yo(e,Ir("0x20"),[t,n])}o[Ir("0x1f")][Ir("0x13")]((t=>{const{type:o,data:i}=t;if(Ir("0xd")==o&&i&&Ir("0x16")==i[Ir("0xb")]){const t=i[Ir("0x9")][0].value,o=Nr(t);if(null!==o)return{type:Ir("0x19"),content:Yo(e,Ir("0xf"),s(1,o))};const a=n[Ir("0x3")]((e=>e.model===t)).title;return{type:"format",content:Yo(e,Ir("0xf"),r(1,a))}}}))}}function Nr(t){const e=t.match(/^heading(\d+)$/);return e?e[1]:null}const Mr=["formatInline","selection","FORMAT_HIGHLIGHT","getLastMatchingPosition","TrackChangesEditing","format","enableCommand","highlight","highlight.options","*Remove highlight*","getFirstPosition","commandParams","hasAttribute","has","markInlineFormat","title","getAttribute","change","toLowerCase","item","find","isCollapsed","afterInit","push","document","locale","model","createRange","plugins","color","backward","*Set highlight:* %0","commandName","config"];var wr,Or;wr=Mr,Or=237,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Dr extends t.Plugin{[Fr("0x17")](){const t=this.editor;if(!t[Fr("0x1d")][Fr("0xe")]("HighlightEditing"))return;const e=t[Fr("0x1d")].get(Fr("0x5"));e[Fr("0x7")](Fr("0x8"),((n,o={})=>{const s=t[Fr("0x1b")][Fr("0x19")][Fr("0x2")],r=s[Fr("0x11")](Fr("0x8"));let i=o.value,a=[];if(s[Fr("0x16")]){const e=s[Fr("0xb")]();if(!s[Fr("0xd")](Fr("0x8")))return void n(o);{const n=t=>t[Fr("0x14")][Fr("0x11")](Fr("0x8"))===r,o=e[Fr("0x4")](n,{direction:Fr("0x1f")}),s=e[Fr("0x4")](n);a=[t[Fr("0x1b")][Fr("0x1c")](o,s)],i==r&&(i=null)}}else for(const e of s.getRanges())i?a[Fr("0x18")](e):a[Fr("0x18")](...ms(Fr("0x8"),e,t[Fr("0x1b")]));t[Fr("0x1b")][Fr("0x12")]((()=>{for(const t of a)e[Fr("0xf")](t,{commandName:"highlight",commandParams:[{value:i}]})}))}));const n=t[Fr("0x1a")];e._descriptionFactory.registerDescriptionCallback((e=>{const{type:o,data:s}=e;if(Fr("0x1")==o&&s&&Fr("0x8")==s[Fr("0x21")]){const e=n.t,o=s[Fr("0xc")][0].value;if(o){const s=t[Fr("0x0")].get(Fr("0x9"))[Fr("0x15")]((t=>t.model==o)),r=e(s[Fr("0x10")])[Fr("0x13")]();return{type:Fr("0x6"),content:Yo(n,Fr("0x20"),r),color:{value:s[Fr("0x1e")],title:s[Fr("0x10")]}}}return{type:Fr("0x6"),content:Yo(n,Fr("0xa"),Yo(n,Fr("0x3")))}}}))}}const Pr=["locale","HorizontalLineEditing","afterInit","createContainerElement","high","ELEMENT_HORIZONTAL_LINE","ck-horizontal-line","registerElementLabel","get","horizontalLine","div","enableCommand","plugins","createEmptyElement","_descriptionFactory","conversion","addClass","createPositionAt","showSuggestionHighlights","TrackChangesEditing"];var Br,jr;Br=Pr,jr=176,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Pr[t-=0]};class Gr extends t.Plugin{[Ur("0x6")](){const t=this.editor;if(!t[Ur("0x10")].has(Ur("0x5")))return;t[Ur("0x10")][Ur("0xc")](Ur("0x3"))[Ur("0xf")](Ur("0xd"));const e=t[Ur("0x10")].get(Ur("0x3")),n=t[Ur("0x4")];e[Ur("0x12")][Ur("0xb")](Ur("0xd"),(t=>Yo(n,Ur("0x9"),t))),t[Ur("0x13")].for("dataDowncast").elementToStructure({model:Ur("0xd"),view:(t,{writer:e,options:n})=>{if(!n[Ur("0x2")])return null;const o=e[Ur("0x7")](Ur("0xe")),s=e[Ur("0x11")]("hr");return e[Ur("0x0")](Ur("0xa"),o),e.insert(e[Ur("0x1")](o,0),s),o},converterPriority:Ur("0x8")})}}const Hr=["*Change %0 content*","htmlEmbed","format","ELEMENT_HTML_EMBED","rawHtmlApi","has","registerElementLabel","selection","markBlockFormat","getSelectedElement","get","enableCommand","plugins","getCustomProperty","document","afterInit","HtmlEmbed","editing","value","commandName","TrackChangesEditing","registerDescriptionCallback","cancel","rawHtml","_descriptionFactory","view","getAttribute"];var zr,Wr;zr=Hr,Wr=495,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0x6")](){const t=this.editor;if(!t[Vr("0x3")][Vr("0x17")](Vr("0x7")))return;const e=t[Vr("0x3")][Vr("0x1")](Vr("0xb")),n=t.locale,o=t[Vr("0x8")][Vr("0x10")][Vr("0x5")].selection;e[Vr("0xf")][Vr("0x18")]("rawHtml",(t=>Yo(n,Vr("0x15"),t))),t[Vr("0x3")].get(Vr("0xb"))[Vr("0x2")]("htmlEmbed",((n,s)=>{const r=t.model,i=r[Vr("0x5")][Vr("0x19")];r.change((()=>{const t=function(t){const e=t.getSelectedElement();return e&&e.is("element",Vr("0xe"))?t[Vr("0x0")]():null}(i);if(!t)return void n(null);const r=t[Vr("0x11")](Vr("0x9"))||"";void 0!==s&&s!==r&&(e[Vr("0x1a")](t,{commandName:Vr("0x13"),commandParams:[s]}),o[Vr("0x0")]()[Vr("0x4")](Vr("0x16"))[Vr("0xd")]())}))})),e[Vr("0xf")][Vr("0xc")]((t=>{const{data:e}=t;if(e&&Vr("0x13")==e[Vr("0xa")]){const t=Yo(n,Vr("0x15"));return{type:Vr("0x14"),content:Yo(n,Vr("0x12"),t)}}}))}}const qr=["addObject","getFirstRange","imageStylePostApply","Users","isCollapsed","change","start","get","type","ImageTextAlternativeEditing","end","side","ELEMENT_IMAGE","imageBlock","ImageCaptionUtils","imageStyle","resizeImage","*Format:* %0","registerElementLabel","refresh","model","createRangeOn","isBlockImage","convertBlockImageToInline","plugins","toggleImageCaption","document","alt","registerPostFixer","getClosestSelectedImageElement","enableCommand","forceDefaultExecution","ImageCaptionEditing","imageTextAlternative","*Set image text alternative:* %0","isBefore","removeObject","convertInlineImageToBlock","isInlineImage","registerCustomCallback","title","Inline image to block image","imageInline","getSuggestion","previous","markInsertion","ImageBlockEditing","getSuggestionCallback","formatInline","element","selection","_splitMarkerName","markBlockFormat","getAttribute","_descriptionFactory","hasSuggestion","length","join","ImageStyleEditing","getCaptionFromImageModelElement","discardSuggestion","ImageEditing","isOwn","accept","uploadImage","isInContent","find","commandName","markInlineFormat","deletion","insertImage","newRange","formatBlock","subType","nodeAfter","createRange","schema","next","registerDescriptionCallback","getChangedMarkers","filter","_suggestionFactory","ELEMENT_INLINE_IMAGE","commandReversedParams","has","chain","editor","hasAttribute","_findSuggestions","imageCaption","findIndex","getNearestSelectionRange","detach","ImageResize","getContainedElement","toNext","afterInit","forEach","imageTypeInline","caption","isEqual","imageStylePreApply","forward","locale","TrackChangesEditing","format","value","*Remove image text alternative*","discard","isIntersecting","ELEMENT_CAPTION","ImageUploadEditing","suggestion","fromPosition","insertion","commandParams","commands","newValue","width","ImageUtils","markDeletion","imageTypeBlock"];var Xr,$r;Xr=qr,$r=277,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{[Jr("0x3f")](){const t=this[Jr("0x35")];if(!t[Jr("0x71")].has(Jr("0x1c")))return;const n=t[Jr("0x71")].get(Jr("0x47")),o=t[Jr("0x71")].get(Jr("0x56")),s={},r=t[Jr("0x46")];if(n[Jr("0x77")](Jr("0x25")),n[Jr("0x15")][Jr("0x6b")](Jr("0x66"),(t=>Yo(r,Jr("0x65"),t))),n[Jr("0x15")][Jr("0x6b")](Jr("0x9"),(t=>Yo(r,Jr("0x31"),t))),n[Jr("0x15")][Jr("0x6b")](Jr("0x42"),(()=>Yo(r,Jr("0x4d")))),t[Jr("0x71")][Jr("0x33")](Jr("0x4e"))&&n[Jr("0x77")](Jr("0x1f")),t[Jr("0x71")][Jr("0x33")](Jr("0xd"))&&t[Jr("0x71")][Jr("0x33")]("ImageInlineEditing")&&(n[Jr("0x77")](Jr("0x41"),((e,s)=>{const r=o[Jr("0x76")](t[Jr("0x6d")].document[Jr("0x11")]);t[Jr("0x6d")][Jr("0x5e")]((()=>{n[Jr("0x13")](r,{commandName:"imageTypeInline",commandParams:[s]},[],Jr("0x70"))}))})),n.enableCommand(Jr("0x58"),((e,s)=>{t[Jr("0x6d")][Jr("0x5e")]((r=>{let a=o.getClosestSelectedImageElement(t[Jr("0x6d")][Jr("0x73")][Jr("0x11")]),x=r[Jr("0x6e")](a);const c=i.LivePosition[Jr("0x50")](x[Jr("0x5f")],"toPrevious"),l=i.LivePosition.fromPosition(x[Jr("0x63")],Jr("0x3e"));n[Jr("0x78")]((()=>e(s))),a=o[Jr("0x76")](t[Jr("0x6d")].document[Jr("0x11")]),x=r[Jr("0x6e")](a);const u=r[Jr("0x2a")](c,l);c[Jr("0x3b")](),l[Jr("0x3b")](),n[Jr("0x13")](a,{commandName:Jr("0x41"),commandParams:[]},[],Jr("0x4")),u[Jr("0x5f")][Jr("0x2")](x.start)&&n[Jr("0xc")](r[Jr("0x2a")](u.start,x.start),"convertInlineImageToBlock"),x.end[Jr("0x2")](u.end)&&n.markInsertion(r.createRange(x.end,u[Jr("0x63")]),Jr("0x4"))}))})),n[Jr("0x30")][Jr("0x6")]("formatBlock",Jr("0x4"),Jr("0x18"),(()=>{})),n[Jr("0x30")].registerCustomCallback(Jr("0x27"),"convertInlineImageToBlock","accept",(()=>{})),n[Jr("0x30")][Jr("0x6")]("formatBlock",Jr("0x4"),"discard",n[Jr("0x30")][Jr("0xe")]("formatBlock","",Jr("0x1e"))),n[Jr("0x30")].registerCustomCallback(Jr("0x51"),"convertInlineImageToBlock",Jr("0x18"),(()=>{})),n[Jr("0x30")][Jr("0x6")](Jr("0x51"),"convertInlineImageToBlock",Jr("0x4b"),(([e])=>{const o=n._suggestionFactory.getSuggestionCallback(Jr("0x51"),"",Jr("0x4b"));let s=e[Jr("0x5f")],r=e.end;const i=t.model[Jr("0x2b")].getNearestSelectionRange(s,"backward"),a=t[Jr("0x6d")][Jr("0x2b")][Jr("0x3a")](r,Jr("0x45"));i[Jr("0x5d")]&&(s=i.start),a[Jr("0x5d")]&&(r=a[Jr("0x63")]),o([t[Jr("0x6d")][Jr("0x2a")](s,r)])})),n[Jr("0x30")][Jr("0x6")](Jr("0x27"),Jr("0x4"),"chain",c),n[Jr("0x30")].registerCustomCallback(Jr("0x51"),Jr("0x4"),Jr("0x34"),c)),t.plugins[Jr("0x33")](Jr("0x79"))&&(n.enableCommand(Jr("0x72"),((e,s)=>{const r=t[Jr("0x71")].get(Jr("0x67"));let i=o[Jr("0x76")](t[Jr("0x6d")][Jr("0x73")].selection),a=r[Jr("0x1a")](i);t[Jr("0x6d")].change((()=>{if(a)return void n[Jr("0x57")](t[Jr("0x6d")][Jr("0x6e")](a));const x=o[Jr("0x6f")](i);e(s),i=o[Jr("0x76")](t[Jr("0x6d")][Jr("0x73")][Jr("0x11")]),a=r[Jr("0x1a")](i),n.markInsertion(t[Jr("0x6d")].createRangeOn(a),x?null:Jr("0x38"))}))})),n._suggestionFactory.registerCustomCallback(Jr("0x51"),Jr("0x38"),Jr("0x34"),c)),t.plugins[Jr("0x33")](Jr("0x19"))){n[Jr("0x77")](Jr("0x68"),((s,r)=>{const i=t[Jr("0x71")][Jr("0x60")](Jr("0x5c")).me,a=t[Jr("0x53")][Jr("0x60")](Jr("0x68"));let x=o[Jr("0x76")](t[Jr("0x6d")].document.selection),c=t.model[Jr("0x6e")](x),l=a[Jr("0x49")];if(l==r[Jr("0x49")])return;const u={commandName:"imageStyle",commandParams:[r],formatGroupId:(0,e.uid)()};t[Jr("0x6d")][Jr("0x5e")]((()=>{if(n.getSuggestions().filter((t=>t[Jr("0x20")]&&i==t.author&&(Jr("0x27")==t.type||Jr("0xf")==t[Jr("0x61")])&&(Jr("0x44")==t[Jr("0x28")]||Jr("0x5b")==t[Jr("0x28")])&&t[Jr("0x5a")]()[Jr("0x43")](c)))[Jr("0x40")]((t=>n[Jr("0x1b")](t.head))),x=o[Jr("0x76")](t[Jr("0x6d")].document[Jr("0x11")]),c=t[Jr("0x6d")][Jr("0x6e")](x),a[Jr("0x6c")](),t[Jr("0x53")][Jr("0x60")]("imageTypeInline")[Jr("0x6c")](),t[Jr("0x53")].get(Jr("0x58"))[Jr("0x6c")](),l=a.value,l!=r[Jr("0x49")])return o[Jr("0x5")](x)&&a.shouldConvertImageType(r[Jr("0x49")],x)?(s(r),x=o.getClosestSelectedImageElement(t[Jr("0x6d")].document[Jr("0x11")]),void n[Jr("0x13")](x,{...u,commandReversedParams:[{value:l||null}]},[],"imageStylePreApply")):void(o.isBlockImage(x)?n[Jr("0x13")](x,u,[],Jr("0x5b")):n[Jr("0x23")](c,u,Jr("0x5b")))}))}));for(const e of t[Jr("0x71")].get(Jr("0x19")).normalizedStyles)s[e.name]=e[Jr("0x7")].toLowerCase();n._suggestionFactory[Jr("0x6")](Jr("0x27"),"imageStylePreApply",Jr("0x18"),(()=>{})),n[Jr("0x30")][Jr("0x6")]("formatBlock",Jr("0x5b"),Jr("0x18"),(()=>{})),n[Jr("0x30")].registerCustomCallback(Jr("0xf"),Jr("0x5b"),Jr("0x18"),(()=>{})),n[Jr("0x30")][Jr("0x6")](Jr("0x27"),Jr("0x44"),Jr("0x1e"),(()=>{})),n._suggestionFactory[Jr("0x6")](Jr("0x27"),Jr("0x44"),Jr("0x4b"),((t,e)=>{n[Jr("0x30")].getSuggestionCallback("formatBlock","",Jr("0x1e"))(t,{commandName:e.commandName,commandParams:e[Jr("0x32")]})})),n[Jr("0x30")].registerCustomCallback(Jr("0x27"),"imageStylePreApply",Jr("0x34"),c)}const a=[{type:Jr("0x27"),subType:Jr("0x44")},{type:Jr("0x51"),subType:"imageCaption"},{type:"formatBlock",subType:Jr("0x4")},{type:Jr("0x51"),subType:Jr("0x4")}];function x(t,e){const s=a.findIndex((({type:e,subType:n})=>t[Jr("0x61")]==e&&t.subType==n)),r=a[Jr("0x39")]((({type:t,subType:n})=>e[Jr("0x61")]==t&&e[Jr("0x28")]==n));if(s<0||r<0)return!1;const i=t.getFirstRange(),x=e[Jr("0x5a")]();if((0==s||1==s)&&2==r&&i[Jr("0x4c")](x))return!0;if(2==s&&3==r){const t=n[Jr("0x37")](i,Jr("0x51"))[Jr("0x2f")]((({suggestion:t,meta:e})=>e[Jr("0x1d")]&&Jr("0x4")==t[Jr("0x28")]));if(t[Jr("0x17")]>1&&x[Jr("0x63")].isEqual(i[Jr("0x5f")]))return!0;if(1==t[Jr("0x17")]&&(i[Jr("0x5f")][Jr("0x43")](x.end)||i[Jr("0x63")][Jr("0x43")](x[Jr("0x5f")])))return!0}if(3==s&&3==r&&i[Jr("0x5f")][Jr("0x2")](x.start)){const t=i[Jr("0x63")][Jr("0x29")],e=x[Jr("0x5f")].nodeBefore;return o.isBlockImage(t)&&t===e}return!1}function c(t,e){return x(t,e)?[t,e]:x(e,t)?[e,t]:null}t[Jr("0x6d")].document[Jr("0x75")]((()=>{let e=!1;const s=Array.from(t[Jr("0x6d")][Jr("0x73")].differ[Jr("0x2e")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:a,id:x}=n[Jr("0x12")](t);if(Jr("0x4f")==s&&n[Jr("0x16")](x)){if(Jr("0x27")==i&&(Jr("0x44")==a||Jr("0x5b")==a)){const t=n.getSuggestion(x);if(r[Jr("0x26")]){const s=t[Jr("0x5a")]()[Jr("0x3d")]();if(o[Jr("0x6f")](s))continue;n[Jr("0x1b")](t),e=!0}}if(Jr("0x51")==i&&"imageCaption"==a&&!r.newRange){const t=n[Jr("0xa")](x);t.next&&t[Jr("0x2c")][Jr("0x20")]&&(n[Jr("0x1b")](t[Jr("0x2c")]),e=!0)}}}return e})),t[Jr("0x71")][Jr("0x33")](Jr("0x3c"))&&n[Jr("0x77")](Jr("0x69"),((e,s)=>{const r=o[Jr("0x76")](t[Jr("0x6d")].document[Jr("0x11")]);r[Jr("0x14")](Jr("0x55"))!=s[Jr("0x55")]&&t[Jr("0x6d")].change((()=>{n[Jr("0x13")](r,{commandName:Jr("0x69"),commandParams:[s]})}))})),t[Jr("0x71")].has(Jr("0x62"))&&n[Jr("0x77")](Jr("0x0"),((e,s)=>{const r=o.getClosestSelectedImageElement(t[Jr("0x6d")][Jr("0x73")][Jr("0x11")]);(r[Jr("0x36")](Jr("0x74"))?r[Jr("0x14")]("alt"):"")!=s.newValue&&t.model[Jr("0x5e")]((()=>{n[Jr("0x13")](r,{commandName:Jr("0x0"),commandParams:[s]})}))})),n[Jr("0x15")].registerDescriptionCallback((t=>{if(a[Jr("0x21")]((({type:e,subType:n})=>t[Jr("0x61")]==e&&t[Jr("0x28")]==n)))return t[Jr("0xb")]?{}:void 0})),n[Jr("0x15")].registerDescriptionCallback((t=>{if(Jr("0x51")==t[Jr("0x61")]||Jr("0x24")==t[Jr("0x61")]){const e=t[Jr("0x3d")]();if(e&&e.is(Jr("0x10"),"caption"))return{type:"insertion"==t[Jr("0x61")]?Jr("0x59"):Jr("0x3"),element:e,quantity:1}}})),n[Jr("0x15")][Jr("0x2d")]((t=>Jr("0x27")==t.type&&Jr("0x4")==t[Jr("0x28")]?{type:"format",content:Jr("0x8")}:Jr("0x27")==t.type&&Jr("0x70")==t[Jr("0x28")]?{type:Jr("0x48"),content:"Block image to inline image"}:void 0)),n._descriptionFactory[Jr("0x2d")]((t=>{const{data:e}=t;if(e){if(Jr("0x68")==e[Jr("0x22")]){const t=e[Jr("0x52")][0][Jr("0x49")];return n=Jr("0x64")===t?Yo(r,"FORMAT_SIDE_IMAGE"):s[t]||t,{type:Jr("0x48"),content:Yo(r,Jr("0x6a"),n)}}if(Jr("0x0")==e[Jr("0x22")]){const t=e[Jr("0x52")][0][Jr("0x54")];return t?{type:"format",content:Yo(r,Jr("0x1"),'"'+t+'"')}:{type:"format",content:Yo(r,Jr("0x4a"))}}if(Jr("0x69")==e[Jr("0x22")]){const t=e[Jr("0x52")][0][Jr("0x55")];return t?{type:Jr("0x48"),content:Yo(r,"*Set image width:* %0",t)}:{type:Jr("0x48"),content:Yo(r,"*Reset image width*")}}}var n}))}}const Zr=["enableCommand","editor","has","getAttribute","commandParams","get","markBlockFormat","formatBlock","author","TrackChangesEditing","accept","document","_descriptionFactory","handleReplaceImageCommand","discard","ImageEditing","*Format:* replace image URL","subType","model","data","locale","registerCustomCallback","handleSuggestionDescription","getSuggestionCallback","plugins","getSelectedElement","afterInit","selection","registerDescriptionCallback","getContainedElement","_suggestionFactory","commandName","replaceImageSource","getSuggestions"];var Yr,ti;Yr=Zr,ti=276,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0x16")](){if(!this.editor[ei("0x14")][ei("0x20")](ei("0xb")))return;const t=this[ei("0x1f")][ei("0x14")][ei("0x1")](ei("0x5"));t[ei("0x1e")](ei("0x1c"),((t,e)=>this[ei("0x9")](t,e))),t[ei("0x1a")][ei("0x11")](ei("0x3"),"replaceImageSource",ei("0x6"),t[ei("0x1a")][ei("0x13")]("formatBlock",null,ei("0xa"))),t[ei("0x1a")][ei("0x11")](ei("0x3"),ei("0x1c"),ei("0xa"),t._suggestionFactory[ei("0x13")]("formatBlock",null,"accept")),t[ei("0x8")][ei("0x18")]((t=>this[ei("0x12")](t)))}[ei("0x9")](t,e){const n=this[ei("0x1f")][ei("0x14")].get(ei("0x5")),o=this[ei("0x1f")][ei("0xe")][ei("0x7")][ei("0x17")][ei("0x15")]();this[ei("0x1f")][ei("0xe")].change((()=>{let s=o[ei("0x21")]("src");const r=this[ei("0x1f")][ei("0x14")][ei("0x1")]("Users").me;for(const t of n[ei("0x1d")]({skipNotAttached:!0})){const e=t[ei("0x19")]();if(ei("0x1c")===t[ei("0xd")]&&e===o){t[ei("0x4")]!==r&&t.discard(),s=t[ei("0xf")][ei("0x0")][0].source;break}}t(e),n[ei("0x2")](o,{commandName:"replaceImageSource",commandParams:[{source:s}]},[],ei("0x1c"))}))}handleSuggestionDescription(t){const{data:e}=t;if(e&&ei("0x1c")===e[ei("0x1b")]){const t=ei("0xc");return{type:"format",content:Yo(this[ei("0x1f")][ei("0x10")],t)}}}}const oi=["plugins","TrackChangesEditing","importWord","high","_handleImportedData","commands","lowest","_setSuggestionData","afterInit","track_changes","collaboration_features","value","get","editor","_trackChangesValueDuringImport","Users","forEach","trackChanges","listenTo","dataInsert","_trackChangesExecuted","execute"];var si,ri;si=oi,ri=193,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class ai extends t.Plugin{constructor(t){super(t),this[ii("0x13")]=!1,this[ii("0x3")]=!1}[ii("0xd")](){const t=this.editor,e=t[ii("0xa")][ii("0x11")](ii("0x7")),n=t.commands[ii("0x11")](ii("0x0"));e&&(e.on(ii("0x4"),((t,[,e])=>{this._trackChangesValueDuringImport=n[ii("0x10")],e[ii("0xf")][ii("0xe")]=!this[ii("0x13")]}),{priority:ii("0x8")}),this[ii("0x1")](e,"dataInsert",this[ii("0x9")].bind(this)),this[ii("0x1")](e,ii("0x2"),(()=>{this[ii("0x3")]&&(n[ii("0x4")](),this[ii("0x3")]=!1)}),{priority:ii("0xb")}),t.plugins[ii("0x11")](ii("0x6")).enableCommand(ii("0x7")))}[ii("0x9")](t,e){const{suggestions:n}=e,o=this.editor.commands[ii("0x11")](ii("0x0")),s=o[ii("0x10")];this._trackChangesValueDuringImport!==s&&(o[ii("0x4")](),this[ii("0x3")]=!0),n&&n[ii("0x15")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this.editor[ii("0x5")][ii("0x11")](ii("0x14")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0x7")}}};this[ii("0x12")][ii("0x5")][ii("0x11")](ii("0x6"))[ii("0xc")](s)}))}}const xi=["editor","registerDescriptionCallback","has","indentBlock","indent","selection","blockIndent","afterInit","outdent","*Outdent:* %0","markBlockFormat","filter","getItemLabel","document","outdentBlock","checkAttribute","*Indent:* %0","format","_descriptionFactory","getItems","IndentEditing","change","commandName","plugins","model","enableCommand","from","get","IndentBlock"];var ci,li;ci=xi,li=132,function(t){for(;--t;)ci.push(ci.shift())}(++li);const ui=function(t,e){return xi[t-=0]};class di extends t.Plugin{[ui("0x14")](){const t=this.editor,e=t[ui("0x7")][ui("0xb")]("TrackChangesEditing");t[ui("0x7")].has(ui("0x4"))&&(e[ui("0x9")](ui("0x11")),e[ui("0x9")](ui("0x15")));const n=t.locale;if(t[ui("0x7")][ui("0xf")](ui("0xc"))){for(const n of[ui("0x10"),ui("0x1b")])e[ui("0x9")](n,(()=>{const o=Array[ui("0xa")](this[ui("0xd")][ui("0x8")][ui("0x1a")][ui("0x12")].getSelectedBlocks())[ui("0x18")]((t=>this[ui("0xd")].model.schema[ui("0x1c")](t,ui("0x13"))));t[ui("0x8")][ui("0x5")]((()=>{for(const t of o)e[ui("0x17")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:ui("0x10")})}))}));e[ui("0x2")][ui("0xe")]((t=>{const{data:o}=t;if(!o)return;if(ui("0x10")!=o[ui("0x6")]&&ui("0x1b")!=o[ui("0x6")])return;const s=t[ui("0x3")]()[0],r=e[ui("0x2")][ui("0x19")](s);return ui("0x10")==o[ui("0x6")]?{type:ui("0x1"),content:Yo(n,ui("0x0"),r)}:"outdentBlock"==o[ui("0x6")]?{type:ui("0x1"),content:Yo(n,ui("0x16"),r)}:void 0}))}}}var gi,mi,fi=["enableCommand","editor","init","requires","plugins"];gi=fi,mi=474,function(t){for(;--t;)gi.push(gi.shift())}(++mi);var hi=function(t,e){return fi[t-=0]};class pi extends t.Plugin{static get[hi("0x4")](){return[Vs.Input]}[hi("0x3")](){this[hi("0x2")][hi("0x0")].get("TrackChangesEditing")[hi("0x1")]("input")}}const bi=["afterInit","getAttribute","locale","commandName","linkHref","link","editor","from","registerDescriptionCallback","change","LinkEditing","get","document","has","plugins","isCollapsed","hasAttribute","model","TrackChangesEditing","getFirstPosition","getRanges","selection","enableCommand","markInlineFormat","unlink"];var Ei,_i;Ei=bi,_i=263,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{[Ti("0xc")](){const t=this[Ti("0x12")];if(!t[Ti("0x1")][Ti("0x0")](Ti("0x16")))return;const e=t[Ti("0x1")][Ti("0x17")](Ti("0x5"));e.enableCommand(Ti("0x11"),((n,o)=>{const s=t.model[Ti("0x18")][Ti("0x8")];let r=[];if(s.isCollapsed){if(!s[Ti("0x3")](Ti("0x10")))return void n(o);{const e=(0,Vs.findAttributeRange)(s[Ti("0x6")](),Ti("0x10"),s[Ti("0xd")]("linkHref"),t.model);r=[e]}}else r=Array[Ti("0x13")](s[Ti("0x7")]());t[Ti("0x4")].change((()=>{for(const t of r)e[Ti("0xa")](t,{commandName:Ti("0x11"),commandParams:[o]})}))})),e[Ti("0x9")]("unlink",(()=>{const n=this[Ti("0x12")][Ti("0x4")],o=n[Ti("0x18")][Ti("0x8")];n[Ti("0x15")]((()=>{let n=[];n=o[Ti("0x2")]?[(0,Vs.findAttributeRange)(o[Ti("0x6")](),Ti("0x10"),o[Ti("0xd")](Ti("0x10")),t[Ti("0x4")])]:ms(Ti("0x10"),o.getFirstRange(),t[Ti("0x4")]);for(const t of n)e[Ti("0xa")](t,{commandName:Ti("0xb"),commandParams:[]})}))})),e._descriptionFactory[Ti("0x14")]((e=>{const{data:n}=e,o=t[Ti("0xe")];if(n){if(Ti("0x11")==n[Ti("0xf")]){return{type:"format",content:Yo(o,"*Set link:* %0",'"'+n.commandParams[0]+'"')}}return"unlink"==n[Ti("0xf")]?{type:"format",content:Yo(o,"*Remove link*")}:void 0}}))}}const yi=["slice","registerDescriptionCallback","parent","ListEditing","get","filter","nextSibling","TodoListEditing","ELEMENT_TODO_LIST","*Indent:* %0","numberedList","execute","ELEMENT_BULLETED_LIST","*Change to:* %0","forceValue","_descriptionFactory","from","value","format","selection","commandParams","previousSibling","enableCommand","registerElementLabel","createPositionAt","length","paragraph","ELEMENT_LIST_ITEM","schema","change","listItem","has","indentList","markBlockFormat","*Uncheck item*","getSelectedBlocks","model","before","numbered","listType","ELEMENT_NUMBERED_LIST","listIndent","getAttribute","todoListChecked","afterInit","editor","checkTodoList","commandName","commands","bulletedList","*Outdent:* %0","end","push","isObject","name","plugins","blockName","createRange","add","checkChild","element","List","todoList"];var ki,Ai;ki=yi,Ai=270,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0x1a")](){const t=this[vi("0x1b")],e=t.locale;if(!t[vi("0x25")][vi("0xd")](vi("0x30")))return;const n=t[vi("0x25")][vi("0x31")]("TrackChangesEditing"),o=t.plugins[vi("0xd")](vi("0x34"));function s(e){return()=>{const o=t[vi("0x12")].document.selection,s=t.commands[vi("0x31")](e);if(s[vi("0x3e")])return void t[vi("0x38")](vi("0x8"),{});const r=e[vi("0x2d")](0,-4),i=function(t,e,n){let o=Array.from(t).filter((t=>{return e=t,(o=n)[vi("0x29")](e[vi("0x2f")],"listItem")&&!o[vi("0x23")](e);var e,o}));o=o[vi("0x32")]((t=>!t.is(vi("0x2a"),vi("0xc"))||t[vi("0x18")](vi("0x15"))!=e));const s=new Set;for(const t of o)t.is("element","listItem")?s[vi("0x28")](Si(t)):s[vi("0x28")](t);return Array[vi("0x3d")](s)}(o[vi("0x11")](),r,t[vi("0x12")][vi("0xa")]);t.model[vi("0xb")]((()=>{for(const t of i)n[vi("0xf")](t,{commandName:e,commandParams:[{forceValue:!s.value}],formatGroupId:vi("0x26")},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[vi("0x3d")](t);const n=e.findIndex((t=>vi("0xc")!=t[vi("0x24")]));return n>-1&&(e=e[vi("0x2d")](0,n)),e}(t[vi("0x12")].document[vi("0x1")][vi("0x11")]()),s=t[vi("0x12")][vi("0x27")](t.model[vi("0x6")](o[0],vi("0x13")),t[vi("0x12")][vi("0x6")](o[o[vi("0x7")]-1],vi("0x21")));t.model.change((()=>{n[vi("0xf")](s,{commandName:e,commandParams:[],formatGroupId:vi("0x17")},function(t){const e=new Set;for(const n of t){let t=n[vi("0x33")];for(;t&&t[vi("0x18")](vi("0x17"))>n[vi("0x18")](vi("0x17"));)e[vi("0x28")](t),t=t.nextSibling}return Array[vi("0x3d")](e)}(o))}))}}n[vi("0x4")](vi("0x37"),s(vi("0x37"))),n[vi("0x4")](vi("0x1f"),s(vi("0x1f"))),o&&n[vi("0x4")](vi("0x2c"),s(vi("0x2c"))),n[vi("0x4")](vi("0xe"),r(vi("0xe"))),n[vi("0x4")]("outdentList",r("outdentList")),o&&n[vi("0x4")]("checkTodoList",(()=>{const e=t[vi("0x1e")][vi("0x31")](vi("0x1c")),o=Array[vi("0x3d")](e._selectedElements);o[vi("0x32")]((t=>t.getAttribute(vi("0x19"))!=e.value)),t.model.change((()=>{for(const t of o)n.markBlockFormat(t,{commandName:vi("0x1c"),commandParams:[{forceValue:!e[vi("0x3e")]}]})}))})),n[vi("0x3c")][vi("0x5")]("listItem",(t=>Yo(e,vi("0x9"),t))),n[vi("0x3c")][vi("0x2e")]((t=>{const{data:n}=t;if(n){if(vi("0x37")==n[vi("0x1d")]||vi("0x1f")==n[vi("0x1d")]||vi("0x2c")==n[vi("0x1d")])switch(n[vi("0x1d")].replace(vi("0x2b"),"")){case"bulleted":return o(Yo(e,vi("0x39")));case vi("0x14"):return o(Yo(e,vi("0x16")));case"todo":return o(Yo(e,vi("0x35")))}if(vi("0xe")==n.commandName)return{type:vi("0x0"),content:Yo(e,vi("0x36"),Yo(e,"ELEMENT_LIST_ITEM"))};if("outdentList"==n.commandName)return{type:"format",content:Yo(e,vi("0x20"),Yo(e,"ELEMENT_LIST_ITEM"))};if(vi("0x1c")==n[vi("0x1d")])return n[vi("0x2")][0][vi("0x3b")]?{type:vi("0x0"),content:Yo(e,"*Check item*")}:{type:"format",content:Yo(e,vi("0x10"))}}function o(t){return{type:vi("0x0"),content:Yo(e,vi("0x3a"),t)}}}))}}function Si(t){const e=t[vi("0x18")](vi("0x17"));if(0==e)return t;let n=t;for(;t[vi("0x3")]&&t[vi("0x3")].is(vi("0x2a"),vi("0xc"));){const o=t.previousSibling[vi("0x18")]("listIndent");if(o==e)n=t.previousSibling;else if(o<e)break;t=t[vi("0x3")]}return n}function Ii(t){const e=[];if(t.is(vi("0x2a"),vi("0xc"))&&t[vi("0x18")](vi("0x17"))>0){let n=t[vi("0x33")];for(;n&&vi("0xc")==n[vi("0x24")]&&n[vi("0x18")](vi("0x17"))==t[vi("0x18")](vi("0x17"));)e[vi("0x22")](n),n=n[vi("0x33")]}return e}const Li=["getAttribute","unshift","bind","listStyle","document","reversed","registerDescriptionCallback","listStart","backward","markMultiRangeBlockFormat","editor","before","map","commandName","enableCommand","config","toUpperCase","has","flat","element","filter","locale","getSiblingNodes","listType","type","getFirstPosition","commandParams","handleListReversedCommand","change","push","format","afterInit","_getTranslationKeyForListStyle","createPositionAt","handleListStyleCommand","startIndex","ListUtils","styles","model","selection","get","listItem","ELEMENT_","getListTypeFromListStyleType","createRange","getSelectedBlocks","numbered","TrackChangesEditing","parent","listReversed","*Format:* set start index to %0","_descriptionFactory","forward","*Change to:* %0","_getSuggestionBlocks","_LIST_","length","handleListStartCommand","plugins","handleDescriptions","from"];var Ni,Mi;Ni=Li,Mi=188,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[wi("0x1a")](){if(!this.editor[wi("0x35")][wi("0xc")]("ListPropertiesEditing"))return;const t=this[wi("0x5")][wi("0xa")][wi("0x23")]("list.properties"),e=this[wi("0x5")].plugins[wi("0x23")](wi("0x2a"));t[wi("0x20")]&&e[wi("0x9")]("listStyle",this[wi("0x1d")][wi("0x3a")](this)),t[wi("0x0")]&&e[wi("0x9")](wi("0x2c"),this[wi("0x16")][wi("0x3a")](this)),t[wi("0x1e")]&&e[wi("0x9")](wi("0x2"),this[wi("0x34")][wi("0x3a")](this)),e[wi("0x2e")][wi("0x1")](this.handleDescriptions.bind(this))}[wi("0x1d")](t,e={}){const n=this[wi("0x5")][wi("0x35")][wi("0x23")](wi("0x2a")),o=this._getSuggestionBlocksForListStyle();this[wi("0x5")][wi("0x21")].change((()=>{n[wi("0x4")](o,{commandName:wi("0x3b"),commandParams:[{type:e[wi("0x13")]}],formatGroupId:wi("0x3b")})}))}[wi("0x16")](t,e={}){const n=this[wi("0x5")][wi("0x35")][wi("0x23")]("TrackChangesEditing"),o=this[wi("0x31")]((t=>t.is(wi("0xe"),wi("0x24"))&&wi("0x29")===t[wi("0x38")]("listType")));if(o.length<1)return;const s=o[wi("0x7")]((t=>this[wi("0x5")].model[wi("0x27")](this[wi("0x5")][wi("0x21")][wi("0x1c")](t,wi("0x6")),this.editor[wi("0x21")][wi("0x1c")](t,0))));this[wi("0x5")].model[wi("0x17")]((()=>{n[wi("0x4")](s,{commandName:wi("0x2c"),commandParams:[{reversed:e[wi("0x0")]}],formatGroupId:wi("0x2c")})}))}[wi("0x34")](t,e={}){const n=this[wi("0x5")].plugins.get(wi("0x2a")),o=this._getSuggestionBlocks((t=>t.is(wi("0xe"),wi("0x24"))&&wi("0x29")===t.getAttribute(wi("0x12"))));if(o[wi("0x33")]<1)return;const s=o[wi("0x7")]((t=>this[wi("0x5")][wi("0x21")][wi("0x27")](this[wi("0x5")][wi("0x21")][wi("0x1c")](t,wi("0x6")),this[wi("0x5")][wi("0x21")].createPositionAt(t,0))));this[wi("0x5")].model[wi("0x17")]((()=>{n[wi("0x4")](s,{commandName:wi("0x2"),commandParams:[{startIndex:e[wi("0x1e")]}],formatGroupId:wi("0x2")})}))}[wi("0x36")](t){const e=this[wi("0x5")][wi("0x10")],{data:n}=t;if(!n)return;let o,s;switch(n[wi("0x8")]){case wi("0x3b"):o=wi("0x30"),s={type:wi("0x19"),content:Yo(e,o,Yo(e,this[wi("0x1b")](n.commandParams[0][wi("0x13")])))};break;case wi("0x2c"):o=n[wi("0x15")][0].reversed?"*Format:* set order to reversed":"*Format:* set order to regular",s={type:"format",content:Yo(e,o)};break;case"listStart":o=wi("0x2d"),s={type:wi("0x19"),content:Yo(e,o,n[wi("0x15")][0].startIndex)}}return s}_getSuggestionBlocksForListStyle(){var t,e,n,o;const s=this.editor[wi("0x35")][wi("0x23")](wi("0x1f"));let r=Array[wi("0x37")](this.editor[wi("0x21")][wi("0x3c")][wi("0x22")][wi("0x28")]());return(null===(t=r[0])||void 0===t?void 0:t.is(wi("0xe"),wi("0x24")))&&r[wi("0x39")](...s.getSiblingNodes(this[wi("0x5")].model[wi("0x3c")][wi("0x22")][wi("0x14")](),wi("0x3"))),(null===(e=r[r[wi("0x33")]-1])||void 0===e?void 0:e.is(wi("0xe"),wi("0x24")))&&r[wi("0x18")](...s[wi("0x11")](this[wi("0x5")][wi("0x21")][wi("0x3c")][wi("0x22")].getLastPosition(),"forward")),r=[...new Set(r)],(null===(o=null===(n=this[wi("0x5")][wi("0x21")][wi("0x3c")][wi("0x22")][wi("0x14")]())||void 0===n?void 0:n[wi("0x2b")])||void 0===o?void 0:o.is(wi("0xe"),wi("0x24")))&&(r=r.filter((t=>t.is("element",wi("0x24"))))),r}[wi("0x31")](t){const e=this[wi("0x5")].plugins[wi("0x23")](wi("0x1f"));let n=Array[wi("0x37")](this[wi("0x5")][wi("0x21")][wi("0x3c")][wi("0x22")][wi("0x28")]())[wi("0xf")](t)[wi("0x7")]((t=>{const n=this[wi("0x5")][wi("0x21")][wi("0x1c")](t,0);return[...e[wi("0x11")](n,"backward"),...e[wi("0x11")](n,wi("0x2f"))]}))[wi("0xd")]();return n=[...new Set(n)],n}[wi("0x1b")](t){return wi("0x25")+this.editor.plugins[wi("0x23")](wi("0x1f"))[wi("0x26")](t)[wi("0xb")]()+wi("0x32")+t[wi("0xb")]().replace(/-/g,"_")}}const Fi=["editor","afterInit","data","enableCommand","downcastDispatcher","MediaEmbedEditing","plugins","for","high","get","options","stop","dataDowncast","createEmptyElement","media","attribute:url:media","_descriptionFactory","TrackChangesEditing","registerElementLabel","showSuggestionHighlights","elementToElement"];var Di,Pi;Di=Fi,Pi=438,function(t){for(;--t;)Di.push(Di.shift())}(++Pi);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0x4")](){const t=this[Bi("0x3")];if(!t.plugins.has(Bi("0x8")))return;const e=t[Bi("0x9")][Bi("0xc")](Bi("0x14")),n=t.locale;e[Bi("0x6")]("mediaEmbed"),e[Bi("0x13")][Bi("0x0")](Bi("0x11"),(t=>Yo(n,"ELEMENT_MEDIA",t))),t.conversion[Bi("0xa")](Bi("0xf"))[Bi("0x2")]({model:Bi("0x11"),view:(t,{writer:e,options:n})=>{if(n[Bi("0x1")])return e[Bi("0x10")]("div")},converterPriority:Bi("0xb")}),t[Bi("0x5")][Bi("0x7")].on(Bi("0x12"),((t,e,n)=>{n[Bi("0xd")][Bi("0x1")]&&t[Bi("0xe")]()}),{priority:Bi("0xb")})}}const Ui=["get","afterInit","plugins","editor","has","TrackChangesEditing","enableCommand"];var Gi,Hi;Gi=Ui,Hi=479,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{[zi("0x5")](){const t=this[zi("0x0")];t[zi("0x6")][zi("0x1")]("MentionEditing")&&t[zi("0x6")][zi("0x4")](zi("0x2"))[zi("0x3")]("mention")}}const Vi=["locale","TrackChangesEditing","PageBreakEditing","afterInit","_descriptionFactory","plugins","has","get","pageBreak","ELEMENT_PAGE_BREAK","registerElementLabel","enableCommand"];var Ki,qi;Ki=Vi,qi=193,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{[Xi("0x2")](){const t=this.editor;if(!t[Xi("0x4")][Xi("0x5")](Xi("0x1")))return;t[Xi("0x4")][Xi("0x6")](Xi("0x0"))[Xi("0xa")](Xi("0x7"));const e=t.plugins[Xi("0x6")]("TrackChangesEditing"),n=t[Xi("0xb")];e[Xi("0x3")][Xi("0x9")](Xi("0x7"),(t=>Yo(n,Xi("0x8"),t)))}}const Ji=["getSelectedBlocks","schema","ELEMENT_PARAGRAPH","get","writer","registerDescriptionCallback","model","ck-suggestion-marker--active","markerRange","registerElementLabel","selection","_descriptionFactory","afterInit","showSuggestionHighlights","options","start","isLimit","change","commandName","format","checkChild","markBlockFormat","addClass","editor","locale","isTouching","TrackChangesEditing","createUIElement","type","mapper","bindElementToMarker","*Change to:* %0","consume","includes","span","highest","activeMarkers","toViewPosition","$text","editing","paragraph","markerName","nodeAfter","ck-suggestion-marker-split","has","blockName","isBlock","document","consumable","data","name","Paragraph","enableCommand","getItemLabel","plugins","insertion"];var Qi,Zi;Qi=Ji,Zi=358,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class ta extends t.Plugin{[Yi("0x2e")](){const t=this[Yi("0x1")];if(!t[Yi("0x20")][Yi("0x16")](Yi("0x1d")))return;const e=t[Yi("0x2")],n=t[Yi("0x20")].get("TrackChangesEditing");n._descriptionFactory[Yi("0x2b")]("paragraph",(t=>Yo(e,Yi("0x24"),t))),n[Yi("0x1e")](Yi("0x12"),((e,o={})=>{const s=t.model[Yi("0x19")],r=o[Yi("0x2c")]||s[Yi("0x2c")],i=Array.from(r[Yi("0x22")]()).filter((t=>{return e=t,(n=this[Yi("0x1")].model[Yi("0x23")])[Yi("0x36")](e.parent,Yi("0x12"))&&!n.isObject(e)&&Yi("0x12")!=e[Yi("0x1c")];var e,n}));t.model[Yi("0x33")]((()=>{for(const t of i)n[Yi("0x37")](t,{commandName:"paragraph",commandParams:[],formatGroupId:Yi("0x17")},fs(t))}))})),n._descriptionFactory[Yi("0x27")]((t=>{const{data:n}=t;if(n&&"paragraph"==n[Yi("0x34")])return{type:Yi("0x35"),content:Yo(e,Yi("0x9"),Yo(e,Yi("0x24")))}})),n[Yi("0x1e")]("insertParagraph"),t[Yi("0x11")].downcastDispatcher.on("addMarker:suggestion:insertion",ea(t),{priority:Yi("0xd")}),t[Yi("0x1b")].downcastDispatcher.on("addMarker:suggestion:insertion",((e,n,o)=>{o[Yi("0x30")][Yi("0x2f")]&&ea(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0xd")});const o=n[Yi("0x2d")];o[Yi("0x27")]((n=>{if("insertion"!==n[Yi("0x6")])return;const{start:s,end:r}=n.getFirstRange();if(!s[Yi("0x3")](r)||!s[Yi("0x14")])return;const i=t[Yi("0x28")].schema,a=s[Yi("0x14")];return i[Yi("0x18")](a)&&!i[Yi("0x32")](a)&&i.checkChild(a,Yi("0x10"))?{type:Yi("0x21"),content:Yo(e,"*Insert:* %0",o[Yi("0x1f")](a,1))}:void 0}))}}function ea(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Yi("0x20")][Yi("0x25")](Yi("0x4")),i=o[Yi("0x2a")][Yi("0x31")],a=o[Yi("0x2a")].end,x=t[Yi("0x28")][Yi("0x23")];if(!i[Yi("0x3")](a)||!i[Yi("0x14")])return;const c=i.nodeAfter;if(x[Yi("0x18")](c)&&!x[Yi("0x32")](c)&&x.checkChild(c,Yi("0x10"))){if(!s[Yi("0x1a")][Yi("0xa")](o.markerRange,n[Yi("0x1c")]))return;const t=s.writer[Yi("0x5")](Yi("0xc"),{class:Yi("0x15")}),i=s[Yi("0x7")][Yi("0xf")](a);e&&r[Yi("0xe")][Yi("0xb")](o.markerName)&&s.writer[Yi("0x0")](Yi("0x29"),t),s[Yi("0x26")].insert(i,t),s.mapper[Yi("0x8")](t,o[Yi("0x13")])}}}const na=["model","editor","removeFormat","get","_descriptionFactory","has","isCollapsed","registerDescriptionCallback","plugins","format","document","enableCommand","change","afterInit","getAttributes","createRangeOn","locale"];var oa,sa;oa=na,sa=316,function(t){for(;--t;)oa.push(oa.shift())}(++sa);const ra=function(t,e){return na[t-=0]};class ia extends t.Plugin{[ra("0x3")](){const t=this[ra("0x8")];if(!t[ra("0xf")][ra("0xc")]("RemoveFormatEditing"))return;const e=t[ra("0xf")][ra("0xa")]("TrackChangesEditing");e[ra("0x1")](ra("0x9"),(n=>{const o=t[ra("0x7")][ra("0x0")].selection;o[ra("0xd")]?n():t[ra("0x7")][ra("0x2")]((()=>{const n=Array.from(o.getRanges());for(const o of n)for(const n of o.getItems())aa(n,t[ra("0x7")].schema)&&e.markInlineFormat(t[ra("0x7")][ra("0x5")](n),{commandName:ra("0x9"),commandParams:[]})}))})),e[ra("0xb")][ra("0xe")]((e=>{const{data:n}=e;if(n&&ra("0x9")==n.commandName)return{type:ra("0x10"),content:Yo(t[ra("0x6")],"*Remove all formatting*")}}))}}function aa(t,e){for(const[n]of t[ra("0x4")]()){const t=e.getAttributeProperties(n);if(t&&t.isFormatting)return!0}return!1}const xa=["trackChanges","acceptSelectedSuggestions","goToPreviousRestrictedEditingException","TrackChangesEditing","enableCommand","RestrictedEditingModeEditing","plugins","goToNextRestrictedEditingException","acceptAllSuggestions","has","discardAllSuggestions","get","editor"];var ca,la;ca=xa,la=299,function(t){for(;--t;)ca.push(ca.shift())}(++la);const ua=function(t,e){return xa[t-=0]};class da extends t.Plugin{afterInit(){const t=this[ua("0xc")];if(!t.plugins[ua("0x9")]("RestrictedEditingModeEditing"))return;const e=t[ua("0x6")][ua("0xb")](ua("0x3"));e.enableCommand(ua("0x2")),e[ua("0x4")](ua("0x7"));const n=t[ua("0x6")][ua("0xb")](ua("0x5"));n[ua("0x4")](ua("0x0")),n[ua("0x4")]("acceptSuggestion"),n[ua("0x4")]("discardSuggestion"),n[ua("0x4")](ua("0x8")),n[ua("0x4")](ua("0xa")),n[ua("0x4")](ua("0x1")),n[ua("0x4")]("discardSelectedSuggestions")}}const ga=["mapper","addMarker:suggestion:deletion","markerRange","element","plugins","high","editing","ck-suggestion-marker--active","locale","shiftEnter","addMarker:suggestion","ELEMENT_LINE_BREAK","addMarker:suggestion:insertion","test","consumable","createUIElement","merge","split","includes","bindElementToMarker","createPositionBefore","registerElementLabel","toViewPosition","deletion","TrackChangesEditing","options","showSuggestionHighlights","writer","addClass","markerName","activeMarkers","data","insert","name","editor","downcastDispatcher","enableCommand","get"];var ma,fa;ma=ga,fa=313,function(t){for(;--t;)ma.push(ma.shift())}(++fa);const ha=function(t,e){return ga[t-=0]};class pa extends t.Plugin{static get requires(){return[nr.ShiftEnter]}init(){const t=this[ha("0x19")],e=t[ha("0x21")].get("TrackChangesEditing");e[ha("0x1b")](ha("0x0")),t[ha("0x23")][ha("0x1a")].on(ha("0x3"),ba(t),{priority:ha("0x22")}),t[ha("0x23")][ha("0x1a")].on(ha("0x1e"),ba(t),{priority:ha("0x22")}),t[ha("0x16")][ha("0x1a")].on(ha("0x1"),((e,n,o)=>{o[ha("0x10")][ha("0x11")]&&ba(t,{showActiveMarker:!1})(e,n,o)})),e._descriptionFactory[ha("0xc")]("softBreak",(e=>Yo(t[ha("0x25")],ha("0x2"),e)))}}function ba(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[ha("0x21")][ha("0x1c")](ha("0xf"));if(!s[ha("0x5")][ha("0x4")](o[ha("0x1f")],n[ha("0x18")]))return;const i=t.model;for(const t of o[ha("0x1f")].getItems()){if(!t.is(ha("0x20"),"softBreak"))continue;const n=ha("0xe")==o[ha("0x14")][ha("0x8")](":")[1]?ha("0x7"):ha("0x8"),a=s.writer[ha("0x6")]("span",{class:"ck-suggestion-marker-"+n}),x=s[ha("0x1d")][ha("0xd")](i[ha("0xb")](t));e&&r[ha("0x15")][ha("0x9")](o[ha("0x14")])&&s[ha("0x12")][ha("0x13")](ha("0x24"),a),s[ha("0x12")][ha("0x17")](x,a),s[ha("0x1d")][ha("0xa")](a,o[ha("0x14")])}}}const Ea=["markInlineFormat","from","commands","StandardEditingModeEditing","restrictedEditingException","isCollapsed","get","commandParams","forceValue","model","_descriptionFactory","locale","registerDescriptionCallback","FORMAT_RESTRICTED_ENABLED","FORMAT_RESTRICTED_DISABLED","selection","plugins","editor","afterInit","format","commandName","TrackChangesEditing","enableCommand","change"];var _a,Ta;_a=Ea,Ta=230,function(t){for(;--t;)_a.push(_a.shift())}(++Ta);const Ca=function(t,e){return Ea[t-=0]};class ya extends t.Plugin{[Ca("0x4")](){const t=this[Ca("0x3")],e=t[Ca("0x13")],n=t[Ca("0x15")];if(!t[Ca("0x2")].has(Ca("0xd")))return;const o=t.plugins[Ca("0x10")](Ca("0x7")),s=Ca("0xe"),r=t[Ca("0xc")][Ca("0x10")](s);o[Ca("0x8")](s,((t,n={})=>{const i=e.document[Ca("0x1")];if(i[Ca("0xf")])return void t(n);const a=void 0!==n[Ca("0x12")]?n[Ca("0x12")]:!r.value;e[Ca("0x9")]((()=>{const t=Array[Ca("0xb")](i.getRanges());for(const n of t){const t=a?[n]:ms(s,n,e);for(const e of t)o[Ca("0xa")](e,{commandName:s,commandParams:[{forceValue:a}]})}}))})),o[Ca("0x14")][Ca("0x16")]((t=>{const{data:e}=t;if(e&&e[Ca("0x6")]==s)return e[Ca("0x11")][0][Ca("0x12")]?{type:"format",content:Yo(n,Ca("0x17"))}:{type:Ca("0x5"),content:Yo(n,Ca("0x0"))}}))}}const ka=["markBlockFormat","includes","commandName","push","getDefinitionsForView","find","toLowerCase","_descriptionFactory","model","isBlock","DataSchema","Style","inline","normalizeConfig","getSelectedBlocks","commandParams","*Remove format:* %0","has","getItems","style.definitions","_getStyleDefinition","add","forceValue","locale","block","get","modelElements","style","selection","registerDescriptionCallback","commands","classes","createRangeOn","styleName","afterInit","name","plugins","_getRangesWithClasses","isCollapsed","enableCommand"];var Aa,va;Aa=ka,va=254,function(t){for(;--t;)Aa.push(Aa.shift())}(++va);const Ra=function(t,e){return ka[t-=0]};class Sa extends t.Plugin{[Ra("0x14")](){const t=this.editor;if(!t[Ra("0x16")][Ra("0x3")](Ra("0x25")))return;const e=t[Ra("0x10")].get(Ra("0xd")),n=t[Ra("0x16")].get("TrackChangesEditing"),o=t[Ra("0x9")],s=t[Ra("0x16")][Ra("0xb")](Ra("0x24")),r=t[Ra("0x16")][Ra("0xb")]("StyleUtils")[Ra("0x27")](s,t.config.get(Ra("0x5")));n[Ra("0x19")]("style",((o,{styleName:i})=>{const a=t[Ra("0x22")].document[Ra("0xe")],x=this[Ra("0x6")](i,r);if(!x)return;if(!e.enabledStyles[Ra("0x1b")](i))return;if(a[Ra("0x18")]&&!x.isBlock)return void o({styleName:i});const c=!e.value[Ra("0x1b")](x[Ra("0x15")]);if(x[Ra("0x23")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o.getAncestors({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[Ra("0x1b")](o.name)){n[Ra("0x7")](o);break}}return n}(a[Ra("0x0")](),x[Ra("0xc")]);t[Ra("0x22")].change((()=>{for(const t of e)n[Ra("0x1a")](t,{commandName:Ra("0xd"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:"style:"+i})}))}else{let e=Array.from(a.getRanges());if(!c){const n=Array.from(s[Ra("0x1e")](x.element,!1))[0][Ra("0x22")],o=[];for(const s of e){const e=this._getRangesWithClasses(t[Ra("0x22")],s,x[Ra("0x11")],n);o[Ra("0x1d")](...e)}e=o}t.model.change((()=>{for(const t of e)n.markInlineFormat(t,{commandName:Ra("0xd"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Ra("0x21")][Ra("0xf")]((t=>{const{data:e}=t;if(e&&Ra("0xd")===e[Ra("0x1c")])return e[Ra("0x1")][0][Ra("0x8")]?{type:"format",content:Yo(o,"*Format:* %0",e[Ra("0x1")][0][Ra("0x13")].toLowerCase())}:{type:"format",content:Yo(o,Ra("0x2"),e[Ra("0x1")][0][Ra("0x13")][Ra("0x20")]())}}))}[Ra("0x6")](t,e){let n=e[Ra("0xa")][Ra("0x1f")]((e=>e.name===t));return n||(n=e[Ra("0x26")][Ra("0x1f")]((e=>e.name===t))),n}[Ra("0x17")](t,e,n,o){const s=[];for(const r of e[Ra("0x4")]()){const e=r.getAttribute(o);e&&n.every((t=>e[Ra("0x11")][Ra("0x1b")](t)))&&s[Ra("0x1d")](t[Ra("0x12")](r))}return s}}const Ia=["_suggestionFactory","refresh","discard","nodeBefore","getSuggestion","model","getFirstRange","forceValue","insertTableRowAbove","item","execute","from","_setupColumnsRowsFixing","getRowIndexes","last","detach","every","suggestion","isInContent","removeTableColumn","setSelection","isEqual","MAX_SAFE_INTEGER","cell","nodeAfter","getContainedElement","*Insert:* %0","push","subType","values","accept","toViewElement","get","$textProxy","min","_getSuggestionCoords","left","minRow","editor","removeClass","max","selectTableColumn","batch","map","writer","insertTableRowBelow","getItems","end","has","type","getCellLocation","registerElementLabel","TableUtils","start","addMarker:suggestion","join","_acceptFormatSuggestionCallbackFactory","insert","insertTableColumnLeft","createTableWalker","tableCell","change","name","add","above","showSuggestionHighlights","differ","table","startsWith","element","hasAttribute","data","span","first","highest","root","getColumnIndexes","TableEditing","filter","markMultiRangeInsertion","getChildren","createRangeOn","_splitMarkerName","classes","ELEMENT_TABLE","oldRange","plugins","_tablePostFixingSubtypes","tableRow","maxColumn","getRanges","minColumn","maxRow","markMultiRangeDeletion","tableColumn","mapper","position","_tableSuggestions","isTouching","ELEMENT_TABLE_COLUMN","enableCommand","removeTableRow","ELEMENT_TABLE_WITH_TEXT","MIN_SAFE_INTEGER","ELEMENT_TABLE_COLUMN_WITH_TEXT","ELEMENT_TABLE_ROW","options","isArray","order","findAncestor","$graveyard","afterInit","deletion","toLowerCase","substr","includes","isIntersectingWithRange","*Remove:* %0","low","rootName","some","TrackChangesEditing","addRange","insertTable","insertion","enqueueChange","ELEMENT_TABLE_ROW_WITH_TEXT","length","commands","getAttribute","fromRange","document","rowspan","_descriptionFactory","colspan","change:data","getChangedMarkers","selection","tablePaste","registerCustomCallback","getSelectionAffectedTableCells"];var La,Na;La=Ia,Na=352,function(t){for(;--t;)La.push(La.shift())}(++Na);const Ma=function(t,e){return Ia[t-=0]};class wa extends t.Plugin{constructor(t){super(t),this[Ma("0x11")]=[Ma("0x12"),Ma("0x18")],this._tableSuggestions=new Set}[Ma("0x29")](){const t=this[Ma("0x6d")],e=t[Ma("0x4c")][Ma("0x3d")][Ma("0x43")];if(!t.plugins[Ma("0x77")](Ma("0x7")))return;const n=t.locale,o=t[Ma("0x10")][Ma("0x67")]("TrackChangesEditing"),s=t[Ma("0x10")].get(Ma("0x7b"));o[Ma("0x3f")][Ma("0x7a")](Ma("0x8a"),(t=>Yo(n,Ma("0xe"),t))),this[Ma("0x53")](),o[Ma("0x1e")](Ma("0x35")),o.enableCommand("selectTableRow"),o.enableCommand(Ma("0x70"));for(const n of[Ma("0x4f"),Ma("0x74")]){const r=t[Ma("0x3a")][Ma("0x67")](n);o[Ma("0x1e")](n,(n=>{t[Ma("0x4c")][Ma("0x84")]((t=>{n();const i=Ma("0x87")===r[Ma("0x26")],a=s[Ma("0x46")](e),x=s[Ma("0x54")](a),c=i?x.first-1:x.last+1,l=a[0][Ma("0x27")]("table"),u=s.createTableWalker(l,{startRow:c,endRow:c}),d=Array[Ma("0x52")](u).map((e=>t[Ma("0xb")](e[Ma("0x5e")])));o[Ma("0x9")](d,Ma("0x12"))}))}))}for(const n of[Ma("0x81"),"insertTableColumnRight"]){const r=t[Ma("0x3a")][Ma("0x67")](n);o.enableCommand(n,(n=>{t[Ma("0x4c")][Ma("0x84")]((t=>{n();const i=Ma("0x6b")===r[Ma("0x26")],a=s.getSelectionAffectedTableCells(e),x=s[Ma("0x6")](a),c=i?x.first-1:x[Ma("0x55")]+1,l=a[0][Ma("0x27")]("table"),u=s.createTableWalker(l,{startRow:0,column:c,includeAllSlots:!1}),d=Array.from(u)[Ma("0x72")]((e=>t[Ma("0xb")](e[Ma("0x5e")])));o[Ma("0x9")](d,Ma("0x18"))}))}))}for(const n of["removeTableRow",Ma("0x5a")]){const r=n.substr(11),i=r[Ma("0x2b")](),a=i.substr(0,3)+"span",x=Ma("0x8a")+r,c=Ma("0x69")+r,l=Ma("0x6f")+r;o[Ma("0x1e")](n,(()=>{t.model[Ma("0x84")]((t=>{const r=s[Ma("0x46")](e),u=r[0][Ma("0x27")]("table");let d;if(Ma("0x1f")==n){const t=s[Ma("0x54")](r);d={startRow:t[Ma("0x3")],endRow:t[Ma("0x55")],includeAllSlots:!0}}else{const t=s[Ma("0x6")](r);d={startColumn:t.first,endColumn:t.last,includeAllSlots:!0}}const g=s[Ma("0x82")](u,d),m=Array[Ma("0x52")](g).map((({cell:t})=>t)),f=Oa(m[Ma("0x8")]((t=>t[Ma("0x0")](a)))),h=Oa(m.filter((t=>!t[Ma("0x0")](a)))).map((e=>t[Ma("0xb")](e))),p=o[Ma("0x17")](h,x);if(p&&(Ma("0x12")==p[Ma("0x63")]||Ma("0x18")==p[Ma("0x63")])){const e=this[Ma("0x6a")](p);for(const n of f){const o=t.createRangeOn(n),r=s[Ma("0x79")](n),x=n.getAttribute(a)-1,u=e[c],d=e[l];u<=r[i]&&r[i]+x<=d&&p[Ma("0x34")](o)}}}))}))}function r(n){const o=Array[Ma("0x52")](e.getRanges())[Ma("0x72")]((t=>i.LiveRange[Ma("0x3c")](t)));t[Ma("0x4c")][Ma("0x84")]((e=>{const s=e[Ma("0x71")];n=n.filter((t=>Ma("0x28")!=t[Ma("0x5")][Ma("0x31")])),e.setSelection(n),t[Ma("0x3a")][Ma("0x67")]("removeTableRow")[Ma("0x48")](),t.execute(Ma("0x1f"),{forceDefaultExecution:!0}),t[Ma("0x4c")][Ma("0x37")]((()=>{t[Ma("0x4c")][Ma("0x37")](s,(t=>{const e=o[Ma("0x8")]((t=>Ma("0x28")!=t[Ma("0x5")].rootName));e[Ma("0x39")]>0&&t[Ma("0x5b")](e);for(const t of o)t.detach()}))}))}))}function x(n){t[Ma("0x4c")][Ma("0x84")]((o=>{const s=Array[Ma("0x52")](e[Ma("0x14")]())[Ma("0x72")]((t=>i.LiveRange.fromRange(t))),r=[];for(const t of n)for(const e of t.getItems({shallow:!0}))r[Ma("0x62")](e);for(const e of r)"$graveyard"!=e.root.rootName&&(o[Ma("0x5b")](o.createPositionAt(e,0)),t[Ma("0x3a")].get("removeTableColumn").refresh(),t[Ma("0x51")](Ma("0x5a"),{forceDefaultExecution:!0}));const a=s[Ma("0x8")]((t=>"$graveyard"!=t[Ma("0x5")][Ma("0x31")]));a[Ma("0x39")]>0&&o[Ma("0x5b")](a);for(const t of s)t[Ma("0x56")]()}))}function c(t,e){return e[Ma("0x57")]((e=>t.some((t=>t[Ma("0x76")][Ma("0x5c")](e[Ma("0x7c")])||e[Ma("0x76")][Ma("0x5c")](t.start)))))}function l(t,e){return t.some((t=>e[Ma("0x32")]((e=>t[Ma("0x76")][Ma("0x1c")](e[Ma("0x7c")])))))}t[Ma("0x1")].downcastDispatcher.on(Ma("0x7d"),((t,e,n)=>{if(!n[Ma("0x24")][Ma("0x88")])return;const o=e[Ma("0x50")];if(!o)return;const s=n[Ma("0x19")][Ma("0x66")](o);function r(t){return Array[Ma("0x25")](t)?t:[t]}s&&Ma("0x83")===o[Ma("0x85")]&&(0,a.setHighlightHandling)(s,n[Ma("0x73")],((t,e,n)=>n.addClass(r(e[Ma("0xd")]),t)),((t,e,n)=>n[Ma("0x6e")](r(e[Ma("0xd")]),t)))}),{priority:Ma("0x4")}),o[Ma("0x3f")].registerDescriptionCallback((t=>{if(Ma("0x36")!=t[Ma("0x78")]&&"deletion"!=t[Ma("0x78")])return;const e=t[Ma("0x60")]();if(null!=e&&e.is(Ma("0x8c"),Ma("0x8a"))){if(Ma("0x36")==t[Ma("0x78")]){const e=t[Ma("0x75")]()[Ma("0x8")]((t=>t.is(Ma("0x68")))).map((t=>t.data));if(e.length)return{type:Ma("0x36"),content:Yo(n,Ma("0x61"),Yo(n,Ma("0x20"),'"'+e[Ma("0x7e")](" ")+'"'))}}if(Ma("0x2a")==t[Ma("0x78")]){const e=t[Ma("0x75")]()[Ma("0x8")]((t=>t.is(Ma("0x68")))).map((t=>t[Ma("0x1")]));if(e[Ma("0x39")])return{type:"deletion",content:Yo(n,Ma("0x2f"),Yo(n,Ma("0x20"),'"'+e.join(" ")+'"'))}}}})),o[Ma("0x3f")].registerDescriptionCallback((t=>{if("tableRow"==t[Ma("0x63")]){const e=t[Ma("0x75")]().filter((t=>t.is(Ma("0x68"))))[Ma("0x72")]((t=>t[Ma("0x1")])),o=this._getSuggestionCoords(t),s=o[Ma("0x16")]-o[Ma("0x6c")]+1;if(Ma("0x36")==t[Ma("0x78")])return e[Ma("0x39")]?{type:Ma("0x36"),content:Yo(n,Ma("0x61"),Yo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[s,'"'+e[Ma("0x7e")](" ")+'"']))}:{type:Ma("0x36"),content:Yo(n,Ma("0x61"),Yo(n,Ma("0x23"),s))};if(Ma("0x2a")==t[Ma("0x78")])return e[Ma("0x39")]?{type:"deletion",content:Yo(n,Ma("0x2f"),Yo(n,Ma("0x38"),[s,'"'+e[Ma("0x7e")](" ")+'"']))}:{type:Ma("0x2a"),content:Yo(n,Ma("0x2f"),Yo(n,Ma("0x23"),s))}}if(Ma("0x18")==t[Ma("0x63")]){const e=t[Ma("0x75")]().filter((t=>t.is("$textProxy")))[Ma("0x72")]((t=>t[Ma("0x1")])),o=this._getSuggestionCoords(t),s=o[Ma("0x13")]-o[Ma("0x15")]+1;if(Ma("0x36")==t[Ma("0x78")])return e[Ma("0x39")]?{type:"insertion",content:Yo(n,Ma("0x61"),Yo(n,Ma("0x22"),[s,'"'+e.join(" ")+'"']))}:{type:Ma("0x36"),content:Yo(n,Ma("0x61"),Yo(n,Ma("0x1d"),s))};if(Ma("0x2a")==t[Ma("0x78")])return e[Ma("0x39")]?{type:"deletion",content:Yo(n,"*Remove:* %0",Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e.join(" ")+'"']))}:{type:Ma("0x2a"),content:Yo(n,Ma("0x2f"),Yo(n,Ma("0x1d"),s))}}})),o[Ma("0x47")].registerCustomCallback(Ma("0x36"),Ma("0x12"),"discard",r),o[Ma("0x47")].registerCustomCallback(Ma("0x2a"),Ma("0x12"),Ma("0x65"),r),o[Ma("0x47")][Ma("0x45")](Ma("0x36"),Ma("0x18"),Ma("0x49"),x),o._suggestionFactory[Ma("0x45")](Ma("0x2a"),"tableColumn",Ma("0x65"),x),o._suggestionFactory[Ma("0x45")](Ma("0x36"),Ma("0x18"),Ma("0x7e"),c),o[Ma("0x47")][Ma("0x45")](Ma("0x2a"),"tableColumn",Ma("0x7e"),c),o[Ma("0x47")][Ma("0x45")](Ma("0x36"),Ma("0x12"),Ma("0x7e"),l),o[Ma("0x47")][Ma("0x45")](Ma("0x2a"),Ma("0x12"),Ma("0x7e"),l)}[Ma("0x7f")](){const t=this[Ma("0x6d")],e=t[Ma("0x4c")].document[Ma("0x43")];return(n,o)=>{t[Ma("0x4c")][Ma("0x84")]((s=>{const{commandName:r,commandParams:a}=o;let x=n[0][Ma("0x76")][Ma("0x4a")];a&&a[0]&&!1===a[0][Ma("0x4e")]&&(x=n[0][Ma("0x7c")][Ma("0x5f")]);const c=s.createRangeIn(x);if(Ma("0x28")==c.root[Ma("0x31")])return;const l=Array[Ma("0x52")](e.getRanges())[Ma("0x72")]((t=>i.LiveRange.fromRange(t)));s[Ma("0x5b")](c),t[Ma("0x3a")][Ma("0x67")](r).refresh(),a.push({forceDefaultExecution:!0}),t.execute(r,...a);const u=l.filter((t=>Ma("0x28")!=t[Ma("0x5")].rootName));u[Ma("0x39")]>0&&s.setSelection(u);for(const t of l)t[Ma("0x56")]()}))}}_getCoordsForCells(t){const e=this[Ma("0x6d")][Ma("0x10")][Ma("0x67")]("TableUtils");let n=Number[Ma("0x5d")],o=Number.MIN_SAFE_INTEGER,s=Number[Ma("0x5d")],r=Number[Ma("0x21")];for(const i of t){if(Ma("0x28")==i[Ma("0x5")][Ma("0x31")])continue;const{row:t,column:a}=e[Ma("0x79")](i),x=i[Ma("0x0")]("rowspan")?i[Ma("0x3b")](Ma("0x3e"))-1:0,c=i.hasAttribute(Ma("0x40"))?i[Ma("0x3b")]("colspan")-1:0;n=t<n?t:n,o=t+x>o?t+x:o,s=a<s?a:s,r=a+c>r?a+c:r}return{minRow:n,maxRow:o,minColumn:s,maxColumn:r}}[Ma("0x53")](){const t=this[Ma("0x6d")],e=t[Ma("0x10")][Ma("0x67")](Ma("0x33")),n=t[Ma("0x10")][Ma("0x67")](Ma("0x7b"));t.model[Ma("0x3d")].on(Ma("0x41"),(()=>{const n=Array.from(t[Ma("0x4c")][Ma("0x3d")][Ma("0x89")][Ma("0x42")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Ma("0xc")](t);if(Ma("0x58")!=n)continue;if(null!=o[Ma("0xf")])continue;const i=e[Ma("0x4b")](s);this[Ma("0x11")][Ma("0x2d")](r)&&this._tableSuggestions[Ma("0x86")](i)}}),{priority:Ma("0x30")});const o=(t,e)=>{let o=!1;const s=e[Ma("0xb")](t),r=t[Ma("0x27")]("table"),i=n[Ma("0x79")](t);for(const e of this[Ma("0x1b")]){const n=e[Ma("0x63")],a=n[Ma("0x8b")](Ma("0x44")),x=n[Ma("0x2c")](a?10:5),c=x.toLowerCase(),l=c[Ma("0x2c")](0,3)+Ma("0x2"),u=Ma("0x69")+x,d=Ma("0x6f")+x;if(!e[Ma("0x59")])continue;if(r!=e[Ma("0x4d")]()[Ma("0x7c")][Ma("0x27")](Ma("0x8a")))continue;if(e[Ma("0x2e")](s))continue;const g=t[Ma("0x0")](l)?t.getAttribute(l)-1:0,m=this[Ma("0x6a")](e),f=m[u],h=m[d];f<=i[c]&&i[c]+g<=h&&(e[Ma("0x34")](s),o=!0)}return o};t[Ma("0x4c")][Ma("0x3d")].registerPostFixer((e=>{let n=!1;for(const s of t.model[Ma("0x3d")][Ma("0x89")].getChanges())if(Ma("0x80")==s[Ma("0x78")])if(Ma("0x12")==s[Ma("0x85")])for(const t of s[Ma("0x1a")].nodeAfter[Ma("0xa")]())n=n||o(t,e);else Ma("0x83")==s.name&&(n=n||o(s[Ma("0x1a")].nodeAfter,e));return n}))}[Ma("0x6a")](t){return this._getCoordsForCells(t[Ma("0x14")]()[Ma("0x72")]((t=>t[Ma("0x7c")][Ma("0x5f")])))}}function Oa(t){return Array.from(new Set(t)[Ma("0x64")]())}const Fa=["*Split cell:* vertically","mergeTableCellDown","size","push","_tablePostFixingSubtypes","stop","requires","getSuggestions","has","mergeTableCells","insertion","add","isInContent","horizontally","getCellLocation","format","root","map","_suggestionFactory","detach","from","_acceptFormatSuggestionCallbackFactory","TableUtils","registerCustomCallback","change","_isForcedDefaultExecutionBlock","*Split cell:* horizontally","_areSelectedCellsMergable","containsRange","highest","return","getSelectionAffectedTableCells","enableCommand","mergeTableCellUp","formatBlock","commandName","plugins","author","low","createTableWalker","value","forceDefaultExecution","fromRange","setSelection","execute","registerDescriptionCallback","markBlockFormat","direction","accept","getRanges","cell","_areMergableCells","find","tableCell","commands","type","afterInit","get","getAncestors","selection","table","mergeTableCellRight","refresh","findAncestor","_descriptionFactory","getFirstPosition","TrackChangesEditing","createRangeOn","length","editor","document","model","rootName","splitTableCellVertically","markMultiRangeBlockFormat","mergeTableCellLeft","subType","splitTableCellHorizontally"];var Da,Pa;Da=Fa,Pa=319,function(t){for(;--t;)Da.push(Da.shift())}(++Pa);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{static get[Ba("0x4d")](){return[wa]}[Ba("0x31")](){const t=this[Ba("0x3e")],e=t[Ba("0x40")][Ba("0x3f")][Ba("0x34")],n=t.locale;if(!t[Ba("0x1d")][Ba("0x1")]("TableEditing"))return;const o=t[Ba("0x1d")].get("TrackChangesEditing"),s=t[Ba("0x1d")][Ba("0x32")]("TableUtils"),r=t.plugins[Ba("0x32")](wa);r[Ba("0x4b")][Ba("0x4a")]("mergeTableCells"),o[Ba("0x19")](Ba("0x2"),(()=>{const e=s[Ba("0x18")](t[Ba("0x40")].document.selection);t[Ba("0x40")][Ba("0x11")]((()=>{o.markMultiRangeBlockFormat(e,{commandName:Ba("0x2"),commandParams:[]},[],Ba("0x2"))}))})),t[Ba("0x2f")].get(Ba("0x2")).on(Ba("0x25"),((e,n)=>{t[Ba("0x2f")].get("trackChanges")[Ba("0x21")]&&(n[Ba("0x3d")]>0&&n[n[Ba("0x3d")]-1]&&n[n.length-1][Ba("0x22")]||o[Ba("0x12")]||this._areSelectedCellsMergable()||e[Ba("0x4c")]())}),{priority:Ba("0x16")});for(const e of[Ba("0x1a"),"mergeTableCellRight",Ba("0x48"),Ba("0x44")]){const n=t[Ba("0x2f")].get(e);o[Ba("0x19")](e,(()=>{const e=t[Ba("0x40")][Ba("0x3f")][Ba("0x34")][Ba("0x3a")]()[Ba("0x33")]()[Ba("0x2d")]((t=>t.is("element",Ba("0x2e")))),s=n[Ba("0x21")];t[Ba("0x40")][Ba("0x11")]((()=>{o[Ba("0x43")]([e,s],{commandName:"mergeTableCells",commandParams:[]},[],Ba("0x2"))}))}))}for(const e of[Ba("0x42"),Ba("0x46")]){const n=t.commands[Ba("0x32")](e);o.enableCommand(e,(()=>{const r=s[Ba("0x18")](t[Ba("0x40")].document[Ba("0x34")])[0],i=r[Ba("0x38")](Ba("0x35")),{column:a,row:x}=s[Ba("0x7")](r);let c=[];if(Ba("0x6")==n[Ba("0x28")]){const t=s[Ba("0x20")](i,{startRow:x,endRow:x,includeAllSlots:!0});c=Array.from(t).map((t=>t[Ba("0x2b")]))}else{const t=s[Ba("0x20")](i,{column:a,includeAllSlots:!0});c=Array[Ba("0xd")](t)[Ba("0xa")]((t=>t[Ba("0x2b")]))}t[Ba("0x40")][Ba("0x11")]((t=>{o[Ba("0x27")](t[Ba("0x3c")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[Ba("0x39")][Ba("0x26")]((t=>{const{data:e}=t;if(e)return Ba("0x2")==e[Ba("0x1c")]?{type:Ba("0x8"),content:Yo(n,"*Merge cells*")}:void 0})),o[Ba("0x39")][Ba("0x26")]((t=>{const{data:e}=t;if(e)return Ba("0x42")==e.commandName?{type:"format",content:Yo(n,Ba("0x47"))}:Ba("0x46")==e[Ba("0x1c")]?{type:"format",content:Yo(n,Ba("0x13"))}:void 0}));const a=r[Ba("0xe")]();for(const t of[Ba("0x1a"),Ba("0x36"),Ba("0x48"),Ba("0x44")])o[Ba("0xb")][Ba("0x10")](Ba("0x1b"),t,Ba("0x29"),a);for(const t of[Ba("0x42"),"splitTableCellHorizontally"])o[Ba("0xb")].registerCustomCallback(Ba("0x1b"),t,Ba("0x29"),a);o[Ba("0xb")][Ba("0x10")]("formatBlock",Ba("0x2"),"accept",(n=>{t[Ba("0x40")][Ba("0x11")]((o=>{const s=Array[Ba("0xd")](e.getRanges())[Ba("0xa")]((t=>i.LiveRange[Ba("0x23")](t)));o.setSelection(n),t[Ba("0x2f")][Ba("0x32")](Ba("0x2"))[Ba("0x37")](),t[Ba("0x25")](Ba("0x2"),{forceDefaultExecution:!0});const r=s.filter((t=>"$graveyard"!=t[Ba("0x9")][Ba("0x41")]));r[Ba("0x3d")]>0&&o[Ba("0x24")](r);for(const t of s)t[Ba("0xc")]()}))}));for(const e of[Ba("0x1a"),"mergeTableCellDown",Ba("0x44"),Ba("0x36")]){const n=t.commands[Ba("0x32")](e);n.on("set:isEnabled",((e,o,s)=>{if(s){const o=t.model[Ba("0x3f")][Ba("0x34")].getFirstPosition()[Ba("0x33")]().find((t=>t.is("element","tableCell")));this[Ba("0x2c")](n[Ba("0x21")],o)||(e[Ba("0x17")]=!1,e.stop())}}),{priority:Ba("0x1f")})}}[Ba("0x14")](){const t=this.editor[Ba("0x2f")][Ba("0x32")](Ba("0x2")),e=this.editor[Ba("0x1d")].get(Ba("0xf"));if(!t.isEnabled)return!1;const n=e[Ba("0x18")](this[Ba("0x3e")][Ba("0x40")].document[Ba("0x34")]);for(const t of n)for(const e of n)if(t!=e&&!this._areMergableCells(t,e))return!1;return!0}_areMergableCells(t,e){const n=this[Ba("0x3e")][Ba("0x1d")][Ba("0x32")](Ba("0x3b")),o=this[Ba("0x3e")][Ba("0x40")][Ba("0x3c")](t),s=this[Ba("0x3e")][Ba("0x40")][Ba("0x3c")](e),r=new Set,i=new Set;for(const t of n[Ba("0x0")]())if((Ba("0x3")==t[Ba("0x30")]||"deletion"==t[Ba("0x30")]||Ba("0x2")==t[Ba("0x45")])&&t[Ba("0x5")])for(const e of t[Ba("0x2a")]())e[Ba("0x15")](o,!0)&&r[Ba("0x4")](t[Ba("0x30")]+":"+t[Ba("0x1e")].id),e[Ba("0x15")](s,!0)&&i[Ba("0x4")](t[Ba("0x30")]+":"+t[Ba("0x1e")].id);if(r.size!=i[Ba("0x49")])return!1;for(const t of r)if(!i[Ba("0x1")](t))return!1;return!0}}const Ua=["getSuggestion","mapper","getAttribute","selection","setTableRowHeader","formatBlock","afterInit","nodeBefore","activeMarkers","includes","writer","commandParams","headingColumns","plugins","createPositionAfter","get","cell","document","_splitMarkerName","from","registerCustomCallback","getColumnIndexes","showSuggestionHighlights","_suggestionFactory","_acceptFormatSuggestionCallbackFactory","markBlockFormat","setTableColumnHeader","getChild","editing","data-suggestion","start","parent","isBefore","_descriptionFactory","getCellLocation","*Format:* %0","headingRows","model","change","format","FORMAT_REGULAR_COLUMN","registerDescriptionCallback","addClass","markerRange","childCount","createPositionBefore","item","removeMarker:suggestion","commands","value","enableCommand","first","removeAttribute","forceValue","FORMAT_HEADER_ROW","highest","setAttribute","commandName","ck-suggestion-marker-","FORMAT_HEADER_COLUMN","removeClass","table","createTableWalker","addMarker:suggestion","unbindElementFromMarkerName","createRange","TableUtils","downcastDispatcher","findAncestor","getSelectionAffectedTableCells","accept","data","ck-suggestion-marker--active","last","markerName","consumable","consume","options","index"];var Ga,Ha;Ga=Ua,Ha=113,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Wa extends t.Plugin{static get requires(){return[wa]}[za("0x33")](){const t=this.editor;if(!t[za("0x3a")].has("TableEditing"))return;const e=t.locale,n=t[za("0x3a")][za("0x3c")]("TrackChangesEditing"),o=t[za("0x3a")].get(za("0x20")),s=t[za("0x3a")][za("0x3c")](wa);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:a,id:x}=n._splitMarkerName(r[za("0x28")]),c=n[za("0x2d")](x);if(!c[za("0x25")]||"setTableColumnHeader"!=c.data[za("0x17")])return;if(r[za("0xc")])return void s.stop();if(!i[za("0x29")][za("0x2a")](r[za("0x9")],s.name))return;const l=r[za("0x9")][za("0x4b")].nodeAfter,u=r[za("0x9")].end[za("0x34")],d=l[za("0x4c")][za("0x4c")],{column:g}=o[za("0x0")](l),{column:m}=o[za("0x0")](u);for(let s=g;s<=m;s++){const c=o[za("0x1c")](d,{column:s,includeAllSlots:!1});for(const o of c){const s=o.cell,c=i[za("0x2e")].toViewElement(s);i[za("0x37")][za("0x8")]("ck-suggestion-marker-"+a,c),e&&i[za("0x37")][za("0x16")](za("0x4a"),x,c),i.mapper.bindElementToMarker(c,r[za("0x28")]),t&&(n[za("0x35")][za("0x36")](r.markerName)?i[za("0x37")][za("0x8")](za("0x26"),c):i[za("0x37")][za("0x1a")](za("0x26"),c))}}}}n[za("0x10")](za("0x31"),((e,s)=>{const r=o[za("0x23")](t[za("0x3")][za("0x3e")][za("0x30")]),i=o.getRowIndexes(r),a=r[0][za("0x22")](za("0x1b")),x=a.getAttribute(za("0x2"))||0,c=s&&null!==s[za("0x13")]?s[za("0x13")]:!t[za("0xe")][za("0x3c")](za("0x31"))[za("0xf")],l=c?i.last:i[za("0x11")],u=a[za("0x48")](l);let d;if(c){const e=a[za("0x48")](x);if(u[za("0x2c")]<e[za("0x2c")])return;d=t[za("0x3")][za("0x1f")](t.model[za("0xb")](e.getChild(0)),t[za("0x3")].createPositionAfter(u[za("0x48")](u.childCount-1)))}else{const e=a.getChild(x-1);if(!e)return;d=t.model.createRange(t[za("0x3")][za("0xb")](u[za("0x48")](0)),t[za("0x3")][za("0x3b")](e[za("0x48")](e[za("0xa")]-1)))}t[za("0x3")][za("0x4")]((()=>{n[za("0x46")](d,{commandName:za("0x31"),commandParams:[{forceValue:c}]},[],za("0x31"))}))})),n[za("0x10")](za("0x47"),((e,o)=>{const s=t[za("0x3a")][za("0x3c")](za("0x20")),r=s.getSelectionAffectedTableCells(t[za("0x3")].document[za("0x30")]),i=s[za("0x42")](r),a=r[0].findAncestor("table"),x=a[za("0x2f")](za("0x39"))||0,c=o&&null!==o[za("0x13")]?o[za("0x13")]:!t[za("0xe")][za("0x3c")](za("0x47"))[za("0xf")];let l;const u=a[za("0x48")](0),d=c?i[za("0x27")]:i.first,g=s[za("0x1c")](a,{startRow:0,column:d,includeAllSlots:!1}),m=Array[za("0x40")](g)[0][za("0x3d")];if(c){const e=u[za("0x48")](x);if(m[za("0x4d")](e))return;l=t[za("0x3")].createRange(t[za("0x3")][za("0xb")](e),t[za("0x3")].createPositionAfter(m))}else{const e=u[za("0x48")](x-1);if(!e)return;l=t[za("0x3")].createRange(t[za("0x3")].createPositionBefore(m),t.model[za("0x3b")](e))}t[za("0x3")][za("0x4")]((()=>{n.markBlockFormat(l,{commandName:za("0x47"),commandParams:[{forceValue:c}]},[],za("0x47"))}))})),t[za("0x49")][za("0x21")].on("addMarker:suggestion",r(),{priority:za("0x15")}),t[za("0x25")][za("0x21")].on(za("0x1d"),((t,e,n)=>{n[za("0x2b")][za("0x43")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:za("0x15")}),t.editing.downcastDispatcher.on(za("0xd"),((t,e,o)=>{const{type:s,id:r}=n[za("0x3f")](e[za("0x28")]),i=n[za("0x2d")](r);if(!i[za("0x25")]||za("0x47")!=i[za("0x25")][za("0x17")])return;const a=o[za("0x2e")].markerNameToElements(e[za("0x28")]);if(a)for(const t of a)o[za("0x37")][za("0x1a")](za("0x18")+s,t),o[za("0x37")][za("0x1a")](za("0x26"),t),o.writer[za("0x12")]("data-suggestion",t),o[za("0x2e")][za("0x1e")](t,e[za("0x28")])}),{priority:za("0x15")}),n[za("0x4e")][za("0x7")]((t=>{const{data:n}=t;if(n){if(za("0x31")==n[za("0x17")]){const t=n[za("0x38")][0][za("0x13")];return o(Yo(e,t?za("0x14"):"FORMAT_REGULAR_ROW"))}if(za("0x47")==n.commandName){const t=n[za("0x38")][0][za("0x13")];return o(Yo(e,za(t?"0x19":"0x6")))}}function o(t){return{type:za("0x5"),content:Yo(e,za("0x1"),t)}}}));const i=s[za("0x45")]();n[za("0x44")][za("0x41")]("formatBlock",za("0x31"),"accept",i),n[za("0x44")].registerCustomCallback(za("0x32"),za("0x47"),za("0x24"),i)}}const Va=["batch","getAttributes","_descriptionFactory","get","redo","tableCellBorderStyle","has","isInContent","includes","tablePasteCell","createElement","unwrap","clipboardOutput","_isForcedDefaultExecutionBlock","suggestion:formatBlock:tablePasteCell","markerAttributes","insertRows","name","insertColumns","insertion","row","filter","tableCell","trackChanges","removeRows","cells","getColumnIndexes","attributes","plugins","conversion","move","set","model","document","tablePasteColumn","getItems","nextSibling","dataDowncast","_replaceTableSlotCell","suggestion-td","stop","newRange","markerName","paragraph","find","startsWith","markMultiRangeBlockFormat","containsRange","type","some","keys","createRangeOn","getSuggestion","getTableIfOnlyTableInContent","insert","register","_splitMarkerName","setAttributes","TableUtils","_suggestionFactory","*Replace table cells*","fromEntries","reduce","deletion","removeColumns","ck-suggestion-marker--active","markMultiRangeInsertion","first","map","column","rows","locale","getContainedElement","subType","options","position","registerPostFixer","documentSelection","tableCellBackgroundColor","accept","return","removeMarker","Users","element","rowInsertionRanges","createRange","markers","oldRange","join","createRangeIn","hasSuggestion","showSuggestionHighlights","markerToHighlight","fill","from","findAncestor","rootName","getChangedMarkers","columnInsertionRanges","tablePasteRow","start","suggestionLoaded","updateMarker","createTableWalker","suggestion","commands","formatBlock","registerCustomCallback","getChanges","view","ck-suggestion-marker-insertion","getColumns","editing","getAllAdjacentSuggestions","insertContent","root","activeMarkers","isEmpty","length","_getCoordsForCells","columnInsertionIndexes","wrap","previousSibling","getChildren","change","getSuggestions","rowInsertionIndexes","getChild","tableCellBorderColor","requires","end","differ","forceDefaultExecution","low","_createdBatches","previous","add","getRange","discard","tablePaste","columns","removeMarkers","tablePasteChainId","value","insertionRanges","selection","push","_tablePostFixingSubtypes","getRanges","editor","afterInit","getSuggestionCallback","listenTo","entries","getMarkers","high","tableCellVerticalAlignment","TableClipboard","tableCellSuggestion","endColumn","markMultiRangeDeletion","last","editingDowncast","remove","table","for"];var Ka,qa;Ka=Va,qa=332,function(t){for(;--t;)Ka.push(Ka.shift())}(++qa);const Xa=function(t,e){return Va[t-=0]},$a=["tableCellBorderWidth",Xa("0x80"),Xa("0x5"),"tableCellHorizontalAlignment",Xa("0x9c"),Xa("0x4e"),"tableCellPadding"],Ja=Object.fromEntries($a[Xa("0x44")]((t=>[t,null])));class Qa extends t.Plugin{static get[Xa("0x81")](){return[wa]}[Xa("0x96")](){const t=this[Xa("0x95")];if(!t[Xa("0x1c")][Xa("0x6")](Xa("0x9d")))return;const n=t[Xa("0x1c")][Xa("0x3")]("TrackChangesEditing"),o=t.plugins[Xa("0x3")](Xa("0x3a")),s=t[Xa("0x1c")].get(wa),r=t.plugins[Xa("0x3")]("TableClipboard");s[Xa("0x93")][Xa("0x92")](Xa("0x63"),"tablePasteColumn"),t.model.schema[Xa("0x37")](Xa("0x9e"),{allowIn:"tableCell",allowContentOf:Xa("0x16"),isLimit:!0}),t[Xa("0x1d")].elementToElement({model:"tableCellSuggestion",view:"suggestion-td"});let i=null;t.model.on(Xa("0x72"),((s,a)=>{const[x,c]=a,l=a[a[Xa("0x76")]-1];l&&l[Xa("0x84")]||n[Xa("0xd")]||this[Xa("0x95")].commands.get(Xa("0x17"))[Xa("0x8f")]&&function(t,e,n,o,s){if(e&&!e.is(Xa("0x4d")))return!1;const r=s[Xa("0x35")](t,n);if(!r||!Ya(r,void 0,o))return!1;const i=o.getSelectionAffectedTableCells(n[Xa("0x21")][Xa("0x91")]);if(!i.length)return!1;const a=i[0][Xa("0x5f")](Xa("0xa4")),x=o.getRowIndexes(i),c=o[Xa("0x1a")](i),l={startRow:x[Xa("0x43")],endRow:x[Xa("0xa1")],startColumn:c[Xa("0x43")],endColumn:c[Xa("0xa1")]};return 1==i[Xa("0x76")]&&(l.endRow+=o.getRows(r)-1,l[Xa("0x9f")]+=o[Xa("0x6f")](r)-1),Ya(a,l,o)}(x,c,t[Xa("0x20")],o,r)&&(s[Xa("0x28")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t.model[Xa("0x7c")]((()=>{t[Xa("0x20")][Xa("0x72")](a[0],a[1],a[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:x,deletionRanges:c,cells:l}=i;s.length&&n[Xa("0x42")](s,Xa("0x63"),{tablePasteChainId:o}),r.length&&n.markMultiRangeInsertion(r,"tablePasteColumn",{tablePasteChainId:o}),x[Xa("0x76")]&&n.markMultiRangeInsertion(x,Xa("0x8b"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Xa("0x76")]&&n[Xa("0xa0")](c,Xa("0x8b"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n[Xa("0x2e")](l[Xa("0x44")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],"tablePasteCell",{tablePasteChainId:o});if(u){const e=u[Xa("0x9a")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[Xa("0x20")][Xa("0x33")](o),i=e[Xa("0x2c")]((t=>t[Xa("0x89")]().isEqual(r)));i&&n[Xa("0x92")]([i[Xa("0x11")],s])}n[Xa("0x76")]&&u.setAttribute(Xa("0xf"),Object[Xa("0x3d")](n))}i=null})))}),{priority:e.priorities.high+10}),t[Xa("0x1c")].get(Xa("0x9d")).on(Xa("0x26"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t.stop();const r=n.cell,a=o,x=Za(r),c=Za(a);t[Xa("0x50")]=r;let l=null,u=null;if(c||x)if(x&&!c){s[Xa("0xa3")](r[Xa("0x7f")](0));for(const t of Array.from(a[Xa("0x7b")]()))s[Xa("0x36")](t,r,Xa("0x82"));const t=i.rowInsertionIndexes.includes(n[Xa("0x14")]),e=i[Xa("0x78")].includes(n[Xa("0x45")]);t||e||(l=s[Xa("0x59")](r))}else c&&!x&&(u=s.createRangeIn(r));else{const t=s[Xa("0xa")]("tableCellSuggestion"),e=s[Xa("0xa")](Xa("0x9e"));s[Xa("0x79")](s[Xa("0x59")](r),e),s.insert(t,r,0);for(const e of Array[Xa("0x5e")](a[Xa("0x7b")]()))s.insert(e,t,"end");l=s[Xa("0x33")](t),u=s[Xa("0x33")](e)}const d=Array[Xa("0x5e")](a[Xa("0x1")]()).filter((([t])=>$a[Xa("0x8")](t)));i[Xa("0x19")].push({element:r,attributes:d.length?Object.fromEntries(d):null}),l&&i[Xa("0x90")][Xa("0x92")](l),u&&i.deletionRanges.push(u)}),{priority:Xa("0x9b")}),o.on(Xa("0x12"),((e,n)=>{const[s,r={}]=n;if(!i)return;const a=r.at||0,x=r[Xa("0x8c")]||1;i[Xa("0x78")]=new Array(x).fill(a)[Xa("0x44")](((t,e)=>t+e));for(const{cell:e}of o[Xa("0x67")](s,{startColumn:a,endColumn:a+x-1}))i[Xa("0x62")][Xa("0x92")](t[Xa("0x20")][Xa("0x33")](e))}),{priority:Xa("0x85")}),o.on(Xa("0x10"),((e,n)=>{const[s,r={}]=n;if(!i)return;const a=r.at||0,x=r[Xa("0x46")]||1;i[Xa("0x7e")]=new Array(x)[Xa("0x5d")](a).map(((t,e)=>t+e));for(const{cell:e}of o[Xa("0x67")](s,{startRow:a,endRow:a+x-1}))i[Xa("0x54")][Xa("0x92")](t.model[Xa("0x33")](e))}),{priority:Xa("0x85")}),n[Xa("0x2")].registerDescriptionCallback((e=>{if(e[Xa("0x49")]&&e[Xa("0x49")][Xa("0x2d")](Xa("0x8b")))return e[Xa("0x87")]?{}:{type:"insertion",content:Yo(t[Xa("0x47")],Xa("0x3c"))}}));const a=()=>{};for(const t of[Xa("0x8b"),"tablePasteColumn",Xa("0x63"),"tablePasteCell"])n[Xa("0x3b")][Xa("0x6b")](Xa("0x13"),t,"join",a),n._suggestionFactory.registerCustomCallback(Xa("0x3f"),t,Xa("0x58"),a);n[Xa("0x3b")].registerCustomCallback(Xa("0x6a"),Xa("0x9"),Xa("0x8a"),a),n[Xa("0x3b")].registerCustomCallback(Xa("0x6a"),Xa("0x9"),"accept",((e,n,o)=>{const s=e[Xa("0x44")]((t=>t.getContainedElement()))[Xa("0x15")]((t=>t)),r=new Map(s.map((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Xa("0x19")])e&&r.set(t,e);else if(o&&o[Xa("0xf")])for(const[e,n]of Object[Xa("0x99")](o[Xa("0xf")])){const o=t[Xa("0x20")][Xa("0x56")][Xa("0x3")](e),s=o?o.getRange()[Xa("0x48")]():null;s&&r[Xa("0x1f")](s,n)}t[Xa("0x20")].change((t=>{for(const[e,n]of r)t[Xa("0x39")]({...Ja,...n},e)}))}));const x=(e,o)=>{n[Xa("0x3b")].registerCustomCallback(e,Xa("0x8b"),o,((s,r,i)=>{t[Xa("0x20")][Xa("0x7c")]((t=>{const a=[];for(const t of s){const e=t[Xa("0x64")].nodeAfter;e.is(Xa("0x53"),Xa("0x9e"))&&a.push(e)}n._suggestionFactory[Xa("0x97")](e,null,o)(s,r,i);for(const e of a)"$graveyard"!=e[Xa("0x73")][Xa("0x60")]&&t[Xa("0xb")](e)}))}))};x(Xa("0x13"),Xa("0x4f")),x("insertion",Xa("0x8a")),x(Xa("0x3f"),Xa("0x4f")),x(Xa("0x3f"),Xa("0x8a")),n[Xa("0x3b")][Xa("0x6b")](Xa("0x13"),Xa("0x63"),Xa("0x8a"),(t=>{const e=t[Xa("0x44")]((t=>t.getContainedElement())),n=e[0].findAncestor(Xa("0xa4")),{minRow:r,maxRow:i}=s[Xa("0x77")](e);o[Xa("0x18")](n,{at:r,rows:i-r+1})})),n._suggestionFactory.registerCustomCallback(Xa("0x13"),Xa("0x22"),Xa("0x8a"),(t=>{const e=t[Xa("0x44")]((t=>t[Xa("0x48")]())),n=e[0][Xa("0x5f")](Xa("0xa4")),{minColumn:r,maxColumn:i}=s[Xa("0x77")](e);o[Xa("0x40")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Xa("0x49")]||!e[Xa("0x49")][Xa("0x2d")](Xa("0x8b")))return;const o=e.attributes[Xa("0x8e")],s=n[Xa("0x7d")]().filter((t=>t[Xa("0x7")]&&t.attributes&&t[Xa("0x1b")][Xa("0x8e")]==o));s[Xa("0x76")]&&e[Xa("0x71")]().length!=s.length&&s[Xa("0x3e")](((t,e)=>(t.next=e,e[Xa("0x87")]=t,e)))};function l(t,e=!0){const{id:o}=n._splitMarkerName(t[Xa("0x2a")]),s=["ck-suggestion-marker",Xa("0x6e")],r=n[Xa("0x74")][Xa("0x8")](t[Xa("0x2a")]);return r&&s[Xa("0x92")](Xa("0x41")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Xa("0x65"),c,{priority:Xa("0x9b")}),n.on("suggestionUnloaded",c,{priority:Xa("0x9b")}),t[Xa("0x20")].document[Xa("0x4c")]((()=>{let e=!1;const o=Array[Xa("0x5e")](t.model[Xa("0x21")].differ[Xa("0x61")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:a}=n[Xa("0x38")](s);if(Xa("0x68")!=o||Xa("0x3f")!=i||r[Xa("0x57")])continue;if(!n[Xa("0x5a")](a))continue;const x=n[Xa("0x34")](a)[Xa("0x94")](),c=t[Xa("0x1c")][Xa("0x3")](Xa("0x52")).me;for(const t of n[Xa("0x7d")]())if(t[Xa("0x7")]&&t.author==c&&Xa("0x6a")==t[Xa("0x30")]&&Xa("0x9")==t[Xa("0x49")]&&t[Xa("0x94")]().every((t=>x[Xa("0x31")]((e=>e[Xa("0x2f")](t,!0))))))for(const n of t.getAllAdjacentSuggestions())n.isInContent&&(n.discard(),e=!0)}return e})),t[Xa("0x20")][Xa("0x21")].registerPostFixer((e=>{const o=t[Xa("0x69")][Xa("0x3")](Xa("0x4"));if(!o||!o[Xa("0x86")][Xa("0x6")](e[Xa("0x0")]))return!1;let s=!1;const r=t[Xa("0x1c")][Xa("0x3")](Xa("0x52")).me,i=t.model[Xa("0x21")][Xa("0x83")][Xa("0x6c")](),a=Array[Xa("0x5e")](t[Xa("0x20")][Xa("0x21")][Xa("0x83")][Xa("0x61")]())[Xa("0x15")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n._splitMarkerName(t);return"suggestion"==o&&"tablePaste"==s&&i==r.id&&!e[Xa("0x57")]}));for(const t of i){if(Xa("0x36")!=t.type||Xa("0x9e")!=t[Xa("0x11")]||1!=t[Xa("0x76")])continue;const n=e[Xa("0x55")](t[Xa("0x4b")],t.position.getShiftedBy(1));if(!a.find((({data:t})=>t[Xa("0x29")].isEqual(n))))for(const{name:t,data:o}of a)if(n[Xa("0x2f")](o.newRange)){e[Xa("0x66")](t,{range:n}),s=!0;break}}return s})),t.model[Xa("0x21")].registerPostFixer((e=>{let o=!1;const s=t.plugins[Xa("0x3")](Xa("0x52")).me,r=n[Xa("0x7d")]()[Xa("0x15")]((t=>t[Xa("0x7")]&&t.author==s)),i=new Set,a=new Set;for(const t of r)if(Xa("0x8b")==t[Xa("0x49")])for(const e of t[Xa("0x9a")]()){const n=e[Xa("0x89")]()[Xa("0x48")]();if(n)if(n.is("element",Xa("0x9e"))&&Za(n)){t.removeMarker(e[Xa("0x11")]),i.add(n),o=!0;const s=n[Xa("0x24")],r=n[Xa("0x7a")],x=s&&s.is(Xa("0x53"),Xa("0x9e")),c=r&&r.is(Xa("0x53"),"tableCellSuggestion");x&&!i.has(s)&&a[Xa("0x88")](s),c&&!i[Xa("0x6")](r)&&a[Xa("0x88")](r)}else n.is(Xa("0x53"),Xa("0x2b"))&&n[Xa("0x75")]&&(t[Xa("0x51")](e[Xa("0x11")]),o=!0)}else if("tablePasteCell"==t[Xa("0x49")]){if(!t[Xa("0x1b")]||!t[Xa("0x1b")][Xa("0x8e")])continue;const e=t[Xa("0x1b")].markerAttributes;if(e&&Object[Xa("0x32")](e).length)continue;const n=t[Xa("0x1b")][Xa("0x8e")];let s=!0,i=!0;for(const e of r)if(e[Xa("0x49")]&&e.subType[Xa("0x2d")](Xa("0x8b"))){if(!e[Xa("0x1b")][Xa("0x8e")]){i=!1;break}if(e.id!=t.id&&e[Xa("0x1b")][Xa("0x8e")]==n){s=!1;break}}i&&s&&(t[Xa("0x8d")](),o=!0)}for(const t of i)e[Xa("0xa3")](t);for(const t of a)e[Xa("0xb")](t);return o})),t[Xa("0x1d")][Xa("0xa5")](Xa("0xa2"))[Xa("0x5c")]({model:Xa("0xe"),view:(t,e)=>l(t),converterPriority:Xa("0x9b")}),t.conversion[Xa("0xa5")](Xa("0x25")).markerToHighlight({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>e[Xa("0x4a")][Xa("0x5b")]?l(t,!1):null,converterPriority:Xa("0x9b")});const u=t[Xa("0x70")][Xa("0x6d")];this[Xa("0x98")](u[Xa("0x21")],Xa("0xc"),((t,e)=>{const n=[];for(const t of u[Xa("0x59")](e.content)[Xa("0x23")]())t.is(Xa("0x53"),Xa("0x27"))&&n[Xa("0x92")](t);u.change((t=>{for(const e of n)t[Xa("0x1e")](t[Xa("0x59")](e),t.createPositionBefore(e)),t[Xa("0xa3")](e)}))}))}}function Za(t){if(t.isEmpty)return!0;const e=t[Xa("0x7f")](0);return e.is(Xa("0x53"),Xa("0x2b"))&&e[Xa("0x75")]}function Ya(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Xa("0x67")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const tx=["table","getColumnGroupElement","subType","model","tableWidth","plugins","columnWidths","handleResizeTableWidthCommand","_suggestionFactory","editor","_descriptionFactory","*Format:* resize table","resizeTable","getAttribute","selection","data","bind","registerDescriptionCallback","handleSuggestionDescription","registerCustomCallback","discard","getContainedElement","resizeTableWidth","format","formatBlock","has","getSuggestions","TableColumnResizeEditing","document","getSelectedElement","get","Users","resizeColumnWidths","enableCommand","TrackChangesEditing","markBlockFormat"];var ex,nx;ex=tx,nx=267,function(t){for(;--t;)ex.push(ex.shift())}(++nx);const ox=function(t,e){return tx[t-=0]};class sx extends t.Plugin{afterInit(){if(!this[ox("0x1e")][ox("0x1a")][ox("0xa")](ox("0xc")))return;const t=this[ox("0x1e")][ox("0x1a")][ox("0xf")](ox("0x13"));t[ox("0x12")](ox("0x7"),this[ox("0x1c")].bind(this)),t[ox("0x12")](ox("0x11"),this[ox("0x1c")].bind(this)),t[ox("0x1d")][ox("0x4")](ox("0x9"),"resizeTable","accept",t[ox("0x1d")].getSuggestionCallback("formatBlock",null,ox("0x5"))),t[ox("0x1d")][ox("0x4")](ox("0x9"),ox("0x21"),ox("0x5"),t._suggestionFactory.getSuggestionCallback(ox("0x9"),null,"accept")),t[ox("0x1f")][ox("0x2")](this[ox("0x3")][ox("0x1")](this))}[ox("0x1c")](t,e){const n=this[ox("0x1e")][ox("0x1a")].get(ox("0x13")),o=this[ox("0x1e")].plugins.get("TableColumnResizeEditing"),s=e[ox("0x15")]||this[ox("0x1e")][ox("0x18")][ox("0xd")][ox("0x23")][ox("0xe")]();this.editor[ox("0x18")].change((()=>{const r=o[ox("0x16")](s);let i=r?o.getTableColumnsWidths(r):null,a=s[ox("0x22")]("tableWidth")||null;const x=e[ox("0x19")]||a,c=e[ox("0x1b")]||i,l=this.editor[ox("0x1a")][ox("0xf")](ox("0x10")).me;for(const t of n[ox("0xb")]()){const e=t[ox("0x6")]();if("resizeTable"===t[ox("0x17")]&&e===s){t.author!==l&&t[ox("0x5")]();const e=t[ox("0x0")].commandParams;a=e[0].tableWidth,i=e[0][ox("0x1b")];break}}t({table:s,tableWidth:x,columnWidths:c}),n[ox("0x14")](s,{commandName:"resizeTableWidth",commandParams:[{tableWidth:a,columnWidths:i}],formatGroupId:ox("0x21")},[],ox("0x21"))}))}[ox("0x3")](t){const{data:e}=t;if(e&&ox("0x21")===e.formatGroupId){const t=ox("0x20");return{type:ox("0x8"),content:Yo(this[ox("0x1e")].locale,t)}}}}const rx=["TrackChangesEditing","editor","afterInit","plugins","get","has","Template","insertTemplate","enableCommand"];var ix,ax;ix=rx,ax=125,function(t){for(;--t;)ix.push(ix.shift())}(++ax);const xx=function(t,e){return rx[t-=0]};class cx extends t.Plugin{[xx("0x3")](){const t=this[xx("0x2")];t[xx("0x4")][xx("0x6")](xx("0x7"))&&t[xx("0x4")][xx("0x5")](xx("0x1"))[xx("0x0")](xx("0x8"))}}const lx=["editor","insertTableOfContents","locale","commands","tableOfContents","ELEMENT_TABLE_OF_CONTENTS","plugins","enableCommand","get","TrackChangesEditing","registerElementLabel"];var ux,dx;ux=lx,dx=163,function(t){for(;--t;)ux.push(ux.shift())}(++dx);const gx=function(t,e){return lx[t-=0]};class mx extends t.Plugin{afterInit(){const t=this[gx("0x2")];if(!t[gx("0x5")][gx("0xa")](gx("0x3")))return;t[gx("0x8")].get(gx("0x0"))[gx("0x9")](gx("0x3"));const e=t[gx("0x8")][gx("0xa")](gx("0x0")),n=t[gx("0x4")];e._descriptionFactory[gx("0x1")](gx("0x6"),(t=>Yo(n,gx("0x7"),t)))}}const fx=["editor","schema","updateMarker","registerElementLabel","isCollapsed","has","element","createRange","document","newRange","forward","ELEMENT_TITLE","get","_splitMarkerName","end","suggestion","afterInit","removeMarker","TrackChangesEditing","plugins","model","isTouching","isEqual","Title","getNearestSelectionRange","title-content","start"];var hx,px;hx=fx,px=263,function(t){for(;--t;)hx.push(hx.shift())}(++px);const bx=function(t,e){return fx[t-=0]};class Ex extends t.Plugin{[bx("0x17")](){const t=this[bx("0x7")];if(!t.plugins[bx("0xc")](bx("0x3")))return;const e=t[bx("0x1a")][bx("0x13")](bx("0x19"));e._descriptionFactory[bx("0xa")](bx("0x5"),(()=>Yo(t.locale,bx("0x12")))),t.model[bx("0xf")].registerPostFixer((n=>{let o=!1;const s=Array.from(t[bx("0x0")].document.differ.getChangedMarkers());for(const{name:r,data:i}of s){const{group:s}=e[bx("0x14")](r);if(bx("0x16")!==s||!i[bx("0x10")])continue;const a=i[bx("0x10")],x=a[bx("0x15")].nodeBefore;if(!x||!x.is(bx("0xd"),bx("0x5")))continue;if(!a[bx("0x6")][bx("0x1")](a[bx("0x15")]))continue;const c=t.model[bx("0x8")][bx("0x4")](a[bx("0x15")],bx("0x11"));if(c&&c[bx("0xb")]){const t=n[bx("0xe")](a.start,c.start);t[bx("0x2")](a)||(n[bx("0x9")](r,{range:t}),o=!0)}o||(n[bx("0x18")](r),o=!0)}return o}))}}const _x=["enableCommand","UndoEditing","undo","afterInit","redo","has","plugins","editor","TrackChangesEditing"];var Tx,Cx;Tx=_x,Cx=352,function(t){for(;--t;)Tx.push(Tx.shift())}(++Cx);const yx=function(t,e){return _x[t-=0]};class kx extends t.Plugin{[yx("0x2")](){const t=this[yx("0x6")],e=t[yx("0x5")].get(yx("0x7"));t[yx("0x5")][yx("0x4")](yx("0x0"))&&(e[yx("0x8")](yx("0x1")),e[yx("0x8")](yx("0x3")))}}const Ax=["plugins","enableCommand","TrackChangesEditing","has","afterInit","requires","toggleTableCaption","get","editor"];var vx,Rx;vx=Ax,Rx=338,function(t){for(;--t;)vx.push(vx.shift())}(++Rx);const Sx=function(t,e){return Ax[t-=0]};class Ix extends t.Plugin{static get[Sx("0x0")](){return[wa]}[Sx("0x8")](){const t=this[Sx("0x3")];t.plugins[Sx("0x7")]("TableCaptionEditing")&&t[Sx("0x4")][Sx("0x2")](Sx("0x6"))[Sx("0x5")](Sx("0x1"))}}const Lx=["change","editor","from","DocumentListPropertiesUtils","listReversed","selection","*Format:* set order to reversed","listType","model","replace","_LIST_","handleDescriptions","commandParams","get","numbered","*Format:* set order to regular","*Format:* set start index to %0","markMultiRangeBlockFormat","getAttribute","DocumentListUtils","getSelectedBlocks","plugins","_getSuggestionBlocksForListStyle","ELEMENT_","type","handleListStyleCommand","_descriptionFactory","reversed","commandName","bind","listStart","toUpperCase","list.properties","TrackChangesEditing","listStyle","_getSuggestionBlocks","expandListBlocksToCompleteList","*Change to:* %0","handleListReversedCommand","document","isListItemBlock","isFirstBlockOfListItem","enableCommand","startIndex","locale","config","push","format","length","afterInit","styles","registerDescriptionCallback"];var Nx,Mx;Nx=Lx,Mx=192,function(t){for(;--t;)Nx.push(Nx.shift())}(++Mx);const wx=function(t,e){return Lx[t-=0]};class Ox extends t.Plugin{[wx("0xd")](){if(!this[wx("0x11")][wx("0x25")].has("DocumentListPropertiesEditing"))return;const t=this.editor[wx("0x9")][wx("0x1d")](wx("0x30")),e=this[wx("0x11")].plugins[wx("0x1d")](wx("0x31"));t[wx("0xe")]&&e.enableCommand("listStyle",this.handleListStyleCommand[wx("0x2d")](this)),t.reversed&&e[wx("0x6")](wx("0x14"),this[wx("0x2")][wx("0x2d")](this)),t[wx("0x7")]&&e.enableCommand("listStart",this.handleListStartCommand[wx("0x2d")](this)),e[wx("0x2a")][wx("0xf")](this[wx("0x1b")][wx("0x2d")](this))}[wx("0x29")](t,e={}){const n=this.editor.plugins[wx("0x1d")]("TrackChangesEditing"),o=this[wx("0x26")]();this[wx("0x11")][wx("0x18")][wx("0x10")]((()=>{n[wx("0x21")](o,{commandName:"listStyle",commandParams:[{type:e[wx("0x28")]}],formatGroupId:wx("0x32")})}))}handleListReversedCommand(t,e={}){const n=this[wx("0x11")].plugins.get("TrackChangesEditing"),o=this[wx("0x11")].plugins[wx("0x1d")]("DocumentListUtils"),s=this[wx("0x33")]((t=>o[wx("0x4")](t)&&wx("0x1e")===t[wx("0x22")]("listType")));null!==s&&this.editor[wx("0x18")][wx("0x10")]((()=>{n[wx("0x21")](s,{commandName:wx("0x14"),commandParams:[{reversed:e.reversed}],formatGroupId:"listReversed"})}))}handleListStartCommand(t,e={}){const n=this.editor[wx("0x25")][wx("0x1d")](wx("0x31")),o=this[wx("0x11")].plugins[wx("0x1d")](wx("0x23")),s=this[wx("0x33")]((t=>o.isListItemBlock(t)&&wx("0x1e")===t[wx("0x22")](wx("0x17"))));null!==s&&this[wx("0x11")][wx("0x18")].change((()=>{n[wx("0x21")](s,{commandName:wx("0x2e"),commandParams:[{startIndex:e[wx("0x7")]}],formatGroupId:wx("0x2e")})}))}[wx("0x1b")](t){const e=this[wx("0x11")][wx("0x8")],{data:n}=t;if(!n)return;let o,s;switch(n[wx("0x2c")]){case wx("0x32"):o=wx("0x1"),s={type:wx("0xb"),content:Yo(e,o,Yo(e,this._getTranslationKeyForListStyle(n[wx("0x1c")][0].type)))};break;case wx("0x14"):o=n.commandParams[0][wx("0x2b")]?wx("0x16"):wx("0x1f"),s={type:"format",content:Yo(e,o)};break;case wx("0x2e"):o=wx("0x20"),s={type:"format",content:Yo(e,o,n[wx("0x1c")][0][wx("0x7")])}}return s}_getSuggestionBlocksForListStyle(){const t=this[wx("0x11")][wx("0x25")].get(wx("0x23"));let e=Array[wx("0x12")](this[wx("0x11")].model[wx("0x3")][wx("0x15")][wx("0x24")]());return e[wx("0xa")](...t[wx("0x0")](e)),e=[...new Set(e)],e}[wx("0x33")](t){const e=this[wx("0x11")][wx("0x25")][wx("0x1d")](wx("0x23"));let n=Array[wx("0x12")](this[wx("0x11")].model.document[wx("0x15")][wx("0x24")]()).filter(t);if(!n[wx("0xc")])return null;n=e.expandListBlocksToCompleteList(n);const o=[];for(const t of n)e[wx("0x5")](t)&&o.push(t);return o}_getTranslationKeyForListStyle(t){return wx("0x27")+this.editor[wx("0x25")][wx("0x1d")](wx("0x13")).getListTypeFromListStyleType(t)[wx("0x2f")]()+wx("0x1a")+t[wx("0x2f")]()[wx("0x19")](/-/g,"_")}}const Fx=["enableCommand","*Format:* change table properties","tableCellVerticalAlignment","tableWidth","TrackChangesTableProperties","get","_descriptionFactory","handleSuggestionDescription","nodeAfter","TablePropertiesEditing","handleDiscardAction","format","getFirstPosition","tableAlignment","locale","afterInit","commandParams","start","tableCellHeight","*Format:* change table cell properties","tableCellProperties","removeAttribute","tableCellWidth","change","_suggestionFactory","enqueueChange","subType","discard","tableBorderWidth","tableProperties","tableCellBorderColor","TableUtils","plugins","registerDescriptionCallback","_handlePropertyChange","getSuggestionCallback","tableBackgroundColor","join","registerCustomCallback","tableHeight","TableCellPropertiesEditing","getSuggestions","accept","tableCellBorderStyle","TrackChangesEditing","model","has","data","editor","formatBlock","_getSuggestion","document","tableCellBorderWidth","selection","tableCellPadding","tableBorderColor","getSelectionAffectedTableCells","markBlockFormat"];var Dx,Px;Dx=Fx,Px=155,function(t){for(;--t;)Dx.push(Dx.shift())}(++Px);const Bx=function(t,e){return Fx[t-=0]};class jx extends t.Plugin{constructor(t){super(t),this.tableProperties=[Bx("0x10"),"tableBorderStyle",Bx("0x2f"),Bx("0x20"),Bx("0x16"),Bx("0x0"),Bx("0x37")],this[Bx("0x27")]=[Bx("0x31"),Bx("0x4"),Bx("0xd"),Bx("0xf"),Bx("0x29"),Bx("0x25"),"tableCellBackgroundColor","tableCellHorizontalAlignment",Bx("0x15")]}static get pluginName(){return Bx("0x17")}[Bx("0x22")](){const t=this[Bx("0x9")][Bx("0x33")].get("TrackChangesEditing");if(this.editor[Bx("0x33")][Bx("0x7")](Bx("0x1c"))){for(const e of this[Bx("0x30")])t[Bx("0x13")](e,((t,n)=>{const o=this[Bx("0x9")][Bx("0x6")][Bx("0xc")][Bx("0xe")][Bx("0x1f")]().findAncestor("table");this[Bx("0x35")](e,[o],this[Bx("0x30")],Bx("0x30"),t,n)}));t._suggestionFactory.registerCustomCallback("formatBlock","tableProperties","accept",t[Bx("0x2b")].getSuggestionCallback("formatBlock",null,Bx("0x2e"))),t._suggestionFactory[Bx("0x39")](Bx("0xa"),Bx("0x30"),Bx("0x2e"),((t,e)=>this[Bx("0x1d")](this.tableProperties,t,e))),t._suggestionFactory[Bx("0x39")]("formatBlock",Bx("0x30"),Bx("0x38"),(()=>!1))}if(this[Bx("0x9")][Bx("0x33")][Bx("0x7")](Bx("0x1"))){for(const e of this[Bx("0x27")])t[Bx("0x13")](e,((t,n)=>{const o=this[Bx("0x9")].plugins.get(Bx("0x32"))[Bx("0x11")](this[Bx("0x9")].model[Bx("0xc")].selection);this[Bx("0x35")](e,o,this[Bx("0x27")],Bx("0x27"),t,n)}));t[Bx("0x2b")][Bx("0x39")](Bx("0xa"),Bx("0x27"),Bx("0x3"),t[Bx("0x2b")][Bx("0x36")](Bx("0xa"),null,Bx("0x2e"))),t._suggestionFactory[Bx("0x39")](Bx("0xa"),"tableCellProperties",Bx("0x2e"),((t,e)=>this[Bx("0x1d")](this[Bx("0x27")],t,e))),t[Bx("0x2b")][Bx("0x39")](Bx("0xa"),Bx("0x27"),"join",(()=>!1))}t[Bx("0x19")][Bx("0x34")]((t=>this.handleSuggestionDescription(t)))}[Bx("0x35")](t,e,n,o,s,r){const i=this.editor[Bx("0x33")][Bx("0x18")](Bx("0x5"));this.editor[Bx("0x6")][Bx("0x2c")](r.batch,(()=>{for(const t of e)if(this[Bx("0xb")](t,o))s(r);else{const e={};for(const o of n){const n=t.getAttribute(o);void 0!==n&&(e[o]=n)}s(r),i[Bx("0x12")](t,{commandParams:[e]},[],o)}}))}handleDiscardAction(t,e,n){const o=e[0][Bx("0x24")][Bx("0x1b")],s=n[Bx("0x23")][0];this[Bx("0x9")][Bx("0x6")][Bx("0x2a")]((e=>{for(const n of t)void 0!==s[n]?e.setAttribute(n,s[n],o):e[Bx("0x28")](n,o)}))}[Bx("0x1a")](t){if(t[Bx("0x8")])switch(t[Bx("0x2d")]){case"tableProperties":return{type:"format",content:Yo(this[Bx("0x9")][Bx("0x21")],Bx("0x14"))};case Bx("0x27"):return{type:Bx("0x1e"),content:Yo(this.editor.locale,Bx("0x26"))}}}[Bx("0xb")](t,e){const n=this.editor[Bx("0x33")].get(Bx("0x5"));for(const o of n[Bx("0x2")]({skipNotAttached:!0})){const n=o.getContainedElement();if(o.subType===e&&n===t)return o}return null}}const Ux=["commands","has","@external","low","deletion:chain","isExternal","addMarker:suggestion:formatBlock","_suggestionFactory","_rangeIsInLocalUserInsertion","isLocal","isEqual","markMultiRangeInsertion","includes","_defaultCallbacks","getChangedMarkers","change:data","mapper","high","_checkSuggestionCorrectness","filter","_joinWithAdjacentSuggestions","_adapter","ck-suggestion-marker--active","listenTo","sort","for","nodeAfter","execute","reconvertMarker","removeMarker","locale","range","editor","isRemovable","_suggestions","detach","_commentsRepository","push","bindElementToMarker","addComment","attributes","removeAttribute","deleteContent","_handleNewSuggestionMarker","conversion","_descriptionFactory","acceptAllSuggestions","splitPosition","toJSON","isMultiRange","subType","values","isCollapsed","_editor","join","elementEnd","trackChanges.trackFormatChanges","collaboration.channelId","track-changes-adapter-already-set","isObject","change","delete","accept","markers","nodeBefore","forceDefaultExecution","removeClass","getAllAdjacentSuggestions","start","rootName","insertion","config","chain","_cutOutSuggestionMarker","getSuggestion","_registerDefaultCallbacks","getCommentThread","get","deletion:","CommentsRepository","_getAuthorFromId","refresh","createSelection","add","multi","update:suggestion","insertion:","isAtStart","getRange","head","getAttribute","data","_updateSuggestionData","isUndo","_setSuggestionData","getCustomProperty","originalSuggestionId","previous","track-changes-suggestion-not-found","fromCharCode","lowest","containsRangeInObject","set","map","showSuggestionHighlights","getIntersection","_suggestionState","fire","change:_saved","selection","hasCommentThread","requires","_mergeNestedSuggestions","writer","_addSuggestionMarker","deletion","root","acceptSuggestion","clone","getLastMatchingPosition","external:","consume","formatBlock:discard","getMultiRangeId","never","markerName","formatBlock:join","discardSelectedSuggestions","$graveyard","_joinSuggestions","insertion:accept","addCommentThread","suggestionLoaded","_saved","from","howMany","error-saving-suggestion-data-suggestion-discarded","getDifference","schema","discardAllSuggestions","_findSuggestions","isBlock","track-changes-user-not-found","isInsideObject","formatInline:accept","document","suggestion:","suggestion","createPositionBefore","createPositionAfter","trackChanges","addSuggestionData","commandName","containerElement","data-suggestion","forward","Users","highest","_enabledCommands","containsRange","then","move","isAtEnd","insertion:join","markInsertion","change:activeMarkers","elementStart","parent","createdAt","addMarkerName","isTouching","marker-count","newRange","formatGroupId","track-changes-adapter-missing-getsuggestion","getRanges","length","skipNestingCheck","formatInline:discard","formatInline:","remove","next","discard","toViewElement","end","markInlineFormat","activeMarkers","_getSuggestionData","size","insertion:discard","getItems","containsItem","isSelectable","removeMarkers","discardSuggestion","isOwn","markerReady","elementToElement","unbind","isInContent","getFirstMarker","createRange","markDeletion","formatBlock:accept","deletion:accept","insertion:chain","markerToData","isDocumentOperation","markerNameToElements","value","removed","resolve","_setSuggestionRange","hasComments","_splitMarkerName","addSuggestion","fetchCommentThread","ck-suggestion-marker-formatBlock","return","oldRange","markBlockFormat","catch","element","multipleBlocks","$textProxy","always","applyOperation","PendingActions","_getExternalAuthor","addRange","buildSuggestion","enableCommand","addHighlight","dataToMarker","rejected","containsPosition","formatInline","isBefore","updateMarker","model","dataReady","markMultiRangeDeletion","getUser","isAfter","createPositionAt","getChanges","acceptSelectedSuggestions","moveTargetPosition","setAttribute","upcast","registerPostFixer","position","_breakSuggestionMarker","isIntersectingWithRange","commentThread","createElement","before","registerCustomCallback","isNextTo","addClass","some","options","markMultiRangeBlockFormat","getWalker","formatInline:chain","getFirstRange","trackChangesCommand","_isForcedDefaultExecutionBlock","_customCallbacks","authoredAt","hasSuggestion","ready","trackChanges.mergeNestedSuggestions","getSuggestions","_addThreadToSuggestion","ck-suggestion-marker","insertContent","adapter","batch","formatBlock:","define","getShiftedBy","plugins","consumable","unbindElementFromMarkerName","isLimit","creator","formatBlock","after","setSelection","getSuggestionCallback","deletion:discard","updateSuggestion","name","getNearestSelectionRange","_trackFormatChanges","fromRange","differ","group","open","_createSuggestion","item","type","split","dataDowncast","_refreshSuggestionsChain","addMarker","editingDowncast","_model","author","stop","_removeSuggestion","every","splice","formatInline:join","suggestionChanged","PENDING_ACTION_SUGGESTION","backward","pluginName","ck-suggestion-marker-","notReady"];var Gx,Hx;Gx=Ux,Hx=319,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const zx=function(t,e){return Ux[t-=0]};class Wx extends t.Plugin{static get[zx("0x71")](){return["CommentsRepository",r.Users,t.PendingActions,cs,Cs,Rs,ws,Bs,Ws,Js,er,Ox,ar,dr,br,yr,Lr,Dr,Gr,Kr,Qr,ni,ai,di,pi,Ci,Ri,Oi,ji,Wi,$i,ta,ia,da,pa,ya,Sa,wa,ja,Wa,Ix,Qa,sx,mx,jx,cx,Ex,kx]}static get[zx("0x140")](){return"TrackChangesEditing"}constructor(t){function e(t){return t.map((t=>String[zx("0x65")](t)))[zx("0x38")]("")}super(t),this[zx("0x68")]("activeMarkers",[]),this.on(zx("0xa7"),((e,n,o,s)=>{this[zx("0x136")].change((()=>{for(const e of[...s,...o])this[zx("0x136")].markers[zx("0x3")](e)&&t.editing[zx("0x1e")](e)}))})),this[zx("0x2f")]=new ss(this[zx("0x22")][zx("0xf1")].schema,this.editor.locale),this[zx("0x17")]=null,this[zx("0x9")]=new Vx(this[zx("0x22")]),this[zx("0x24")]=new Map,this[zx("0x26")]=t[zx("0x11c")].get(zx("0x51")),this[zx("0xa0")]=new Set,this[zx("0x136")]=this[zx("0x22")].model,this._suggestionState=new WeakMap,this[zx("0x10d")]=!1,t[zx("0x49")][zx("0x11a")](zx("0x3a"),"default"),this[zx("0x129")]=t[zx("0x49")][zx("0x4f")]("trackChanges.trackFormatChanges"),t[zx("0x49")].define(zx("0x112"),!0),this[zx("0x72")]=t.config.get(zx("0x112")),this.trackChangesCommand=new d(t,this[zx("0xa0")]),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,49,54,51,52])}init(){const t=this[zx("0x22")];t[zx("0x2e")][zx("0x1b")]("editingDowncast").markerToHighlight({model:zx("0x95"),view:t=>{const{id:e,type:n}=this._splitMarkerName(t[zx("0x7f")]),o=[zx("0x115"),zx("0x0")+n];let s=3e3;return this[zx("0xbc")][zx("0xe")](t[zx("0x7f")])&&(o[zx("0x27")](zx("0x18")),s=3010),zx("0x75")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[zx("0x2e")][zx("0x1b")](zx("0x132"))[zx("0x55")]((e=>{e.on("addMarker:suggestion",((e,n,o)=>{if(!o[zx("0x107")][zx("0x6a")])return;const s=n[zx("0x12f")];if(!s)return;const r=o[zx("0x12")][zx("0xb9")](s);t[zx("0xf1")][zx("0x8c")][zx("0x3d")](s)&&r&&!r[zx("0x61")]("widget")&&r.is(zx("0x9b"))&&(0,a.toWidget)(r,o[zx("0x73")])}),{priority:zx("0x13")})})),t[zx("0x2e")][zx("0x1b")]("dataDowncast").markerToHighlight({model:zx("0x95"),view:(t,e)=>{if(!e[zx("0x107")][zx("0x6a")])return null;const{type:n}=this[zx("0xd8")](t[zx("0x7f")]);return{classes:[zx("0x115"),"ck-suggestion-marker-"+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[zx("0x12f")])return;if(o[zx("0x12f")].is(zx("0x6f")))return void s.consumable.consume(o.item,n[zx("0x127")]);const r=s[zx("0x12")][zx("0xb9")](o.item);if(!o[zx("0x12f")].is(zx("0xe0"))||!t[zx("0xf1")][zx("0x8c")][zx("0x8f")](o[zx("0x12f")])||r[zx("0x61")](zx("0xea")))return;const{id:i}=this[zx("0xd8")](o[zx("0x7f")]);s[zx("0x73")][zx("0x105")]([zx("0x115"),"ck-suggestion-marker-formatBlock"],r),s[zx("0x73")][zx("0xfa")]("data-suggestion",i,r),s[zx("0x12")][zx("0x28")](r,o[zx("0x7f")]),e&&(this[zx("0xbc")][zx("0xe")](o[zx("0x7f")])?s[zx("0x73")][zx("0x105")]("ck-suggestion-marker--active",r):s[zx("0x73")][zx("0x44")]("ck-suggestion-marker--active",r));for(const e of t[zx("0xf1")].createRangeIn(o.item)[zx("0xc0")]())s[zx("0x11d")][zx("0x7b")](e,n[zx("0x127")]);s.consumable[zx("0x7b")](o[zx("0x12f")],n[zx("0x127")])};t.conversion[zx("0x1b")](zx("0x132"))[zx("0x55")]((t=>{t.on("addMarker:suggestion:formatBlock",((t,e,o)=>{o[zx("0x107")][zx("0x6a")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:zx("0x9f")})})),t.conversion[zx("0x1b")](zx("0x132"))[zx("0xd0")]({model:zx("0x95"),view:(t,e)=>e[zx("0x107")][zx("0x6a")]?null:{group:zx("0x95"),name:t.substr(11)}}),t[zx("0x2e")][zx("0x1b")](zx("0xfb"))[zx("0xc7")]({view:{name:zx("0x95"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=zx("0x94")+t[zx("0x5c")]("suggestion-type")+":"+t[zx("0x5c")]("id");return t[zx("0x5c")]("marker-count")&&(n+=":"+t.getAttribute(zx("0xad"))),e[zx("0x101")]("$marker",{"data-name":n})}}),t[zx("0x2e")].for(zx("0xfb"))[zx("0xeb")]({view:"suggestion"}),t[zx("0x2e")].for(zx("0x135"))[zx("0x55")]((t=>{t.on(zx("0x8"),n(),{priority:zx("0x13")})})),t.conversion[zx("0x1b")](zx("0x135"))[zx("0x55")]((t=>{t.on("removeMarker:suggestion:formatBlock",((t,e,n)=>{const o=n[zx("0x12")][zx("0xd2")](e[zx("0x7f")]);if(o)for(const t of o)t[zx("0x61")](zx("0xea"))||(n[zx("0x73")][zx("0x44")](["ck-suggestion-marker",zx("0xdb"),zx("0x18")],t),n[zx("0x73")][zx("0x2b")](zx("0x9c"),t),n[zx("0x12")][zx("0x11e")](t,e[zx("0x7f")]))}),{priority:"high"})})),t[zx("0xf1")][zx("0x93")][zx("0xfc")]((e=>{let n=!1;const o=Array[zx("0x88")](t[zx("0xf1")][zx("0x93")][zx("0x12b")][zx("0x10")]()),s=new Set;for(const{name:a,data:x}of o){const{group:o,type:c,id:l}=this[zx("0xd8")](a);if("suggestion"!==o)continue;const u=this[zx("0x24")][zx("0x4f")](l);if(null!=x.newRange)if(zx("0xee")==c&&(n=n||Xx(x[zx("0xae")],a,e,t.model[zx("0x8c")])),x.newRange[zx("0x36")]||zx("0x82")==x[zx("0xae")][zx("0x76")][zx("0x47")]||"formatBlock"==c&&!Jx(x[zx("0xae")])||"deletion"==c&&(qx(i=x[zx("0xae")])||(r=i)[zx("0x46")][zx("0xa9")]==r[zx("0xba")][zx("0x42")]&&r.start.isAtEnd))e[zx("0x1f")](a),n=!0;else{if(!u||!u[zx("0xc9")])continue;s[zx("0x55")](u)}}var r,i;return s[zx("0xbe")]>0&&(n=!!this[zx("0x16")](s)||n),n})),t[zx("0xf1")][zx("0x93")].registerPostFixer((e=>{let n=!1;for(const o of t.model[zx("0x93")][zx("0x12b")][zx("0xf7")]()){if("insert"!=o.type)continue;const s=o.position[zx("0x11b")](o[zx("0xb2")]);if(s[zx("0xa4")])for(const r of this._suggestions[zx("0x35")]()){if(r.isMultiRange||!r[zx("0xc9")])continue;if(zx("0x121")!=r.type)continue;const i=r.getFirstRange();if(i[zx("0x46")][zx("0xa9")]!=i[zx("0xba")].parent&&i[zx("0xba")].isEqual(o.position)){const o=t[zx("0xf1")][zx("0xcb")](i[zx("0x46")],s);e[zx("0xf0")](r[zx("0xca")](),{range:o}),n=!0}}}return n})),t[zx("0xf1")][zx("0x41")].on(zx("0x57"),((t,e,n)=>{if(null==n){const{id:t}=this[zx("0xd8")](e[zx("0x127")]),n=this._suggestions[zx("0x4f")](t);n&&n[zx("0xab")](e[zx("0x127")])}})),t[zx("0xf1")][zx("0x93")].on(zx("0x11"),(()=>{const e=Array[zx("0x88")](t[zx("0xf1")][zx("0x93")].differ.getChangedMarkers()).filter((t=>zx("0x95")===this[zx("0xd8")](t.name)[zx("0x12c")]));if(0===e[zx("0xb2")])return;e[zx("0x1a")](((t,e)=>{const n=t.data[zx("0xdd")],o=e[zx("0x5d")][zx("0xdd")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n.start.isBefore(o.start)?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[zx("0xd8")](t);if(null===s[zx("0xdd")]){const e=this[zx("0x2d")](t);o[zx("0x55")](e)}else{const t=this[zx("0x24")][zx("0x4f")](e);null!==s[zx("0xae")]||t[zx("0xc9")]?(n[zx("0x55")](t[zx("0x5b")]),o[zx("0x55")](t)):this[zx("0x139")](t)}}o.size>0&&this[zx("0x133")](o);for(const t of n)this[zx("0x6d")](zx("0x13d"),t)})),t[zx("0xf1")].on(zx("0xe4"),((e,n)=>{const o=n[0];if(!this[zx("0x24")].size)return;if(!o[zx("0xd1")])return;if(o[zx("0x118")][zx("0x5f")]||!o[zx("0x118")][zx("0xb")])return;let s,r;switch(o.type){case"insert":s=t[zx("0xf1")][zx("0xf6")](o[zx("0xfd")]),r=s.getShiftedBy(o[zx("0x89")]);break;case zx("0x131"):s=t.model[zx("0xf6")](o[zx("0x31")]),r=t[zx("0xf1")][zx("0xf6")](o[zx("0xf9")]);break;case zx("0xa3"):s=t[zx("0xf1")][zx("0xf6")](o.targetPosition),r=s[zx("0x11b")](o.howMany);break;default:return}const i=t[zx("0xf1")][zx("0xcb")](s,r);t[zx("0xf1")][zx("0x3e")]((()=>{for(const{suggestion:t,meta:e}of this[zx("0x8e")](i)){if(t[zx("0x33")])continue;if("formatInline"==t[zx("0x130")])continue;const n=t[zx("0x5d")]&&t.data[zx("0xe1")];(zx("0x121")!=t[zx("0x130")]||zx("0x131")==o.type&&!n)&&(e.containsRangeInObject||"insertion"==t[zx("0x130")]&&e.isOwn||t.getFirstRange()[zx("0xa1")](i)&&this[zx("0xfe")](t,s,r))}}))}),{priority:zx("0x66")}),t[zx("0xf1")].on(zx("0x2c"),((e,n)=>{const o=n[0],s=n[1];if(s&&s.forceDefaultExecution)return;if(this._isForcedDefaultExecutionBlock)return;if(!this[zx("0x10c")][zx("0xd3")])return;if(o.isCollapsed)return;const r=t[zx("0xf1")][zx("0x8c")],{start:i,end:a}=o.getFirstRange(),x=i[zx("0x1c")]&&r[zx("0x11f")](i[zx("0x1c")])?null:r[zx("0x128")](i,zx("0x9d")),c=a[zx("0x42")]&&r[zx("0x11f")](a.nodeBefore)?null:r[zx("0x128")](a,"backward"),l=t[zx("0xf1")][zx("0xcb")](x?x.start:i,c?c[zx("0xba")]:a);t[zx("0xf1")].change((e=>{this[zx("0xcc")](l);const n=t.model[zx("0x8c")][zx("0x128")](l[zx("0x46")]);o.is("documentSelection")?e[zx("0x123")](n):o.setTo(n)})),e[zx("0x138")]()}),{priority:e.priorities.normal+10}),t[zx("0xf1")].on(zx("0x116"),((e,n)=>{const o=n[n.length-1];o&&o[zx("0x43")]||this._isForcedDefaultExecutionBlock||this.trackChangesCommand.value&&(t[zx("0xf1")][zx("0x3e")]((()=>{let o=t[zx("0xf1")][zx("0x116")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[zx("0xdc")]=o[zx("0x78")]();const s=o[zx("0xba")][zx("0x42")],r=t[zx("0xf1")][zx("0x8c")];s&&r[zx("0x8f")](s)&&!r.isObject(s)&&(o=t[zx("0xf1")][zx("0xcb")](o.start,t[zx("0xf1")][zx("0xf6")](s,zx("0xba")))),this[zx("0xa6")](o)})),e.stop())}),{priority:zx("0x13")}),this[zx("0x22")][zx("0x2")][zx("0x55")](zx("0x98"),this.trackChangesCommand),this[zx("0xe9")](zx("0x98"));const o=new p(t,this[zx("0x24")]);t[zx("0x2")][zx("0x55")]("acceptSuggestion",o),this[zx("0xe9")](zx("0x77"));const s=new C(t,this[zx("0x24")]);t[zx("0x2")][zx("0x55")](zx("0xc4"),s),this[zx("0xe9")]("discardSuggestion"),t.commands[zx("0x55")](zx("0x30"),new F(t,o,this._suggestions)),this.enableCommand(zx("0x30")),t[zx("0x2")][zx("0x55")](zx("0x8d"),new F(t,s,this._suggestions)),this[zx("0xe9")](zx("0x8d")),t.commands.add(zx("0xf8"),new U(t,o,this._suggestions)),this[zx("0xe9")]("acceptSelectedSuggestions"),t[zx("0x2")][zx("0x55")]("discardSelectedSuggestions",new U(t,s,this._suggestions)),this[zx("0xe9")](zx("0x81"));const r=t[zx("0x11c")][zx("0x4f")](zx("0x51"));this[zx("0x19")](r,zx("0x29"),((t,{threadId:e})=>{const n=this[zx("0x24")][zx("0x4f")](e);n&&n.commentThread&&1===n[zx("0x100")][zx("0xb2")]&&this[zx("0x5e")](e,{hasComments:!0})}),{priority:zx("0x5")}),this.listenTo(r,"removeComment",((t,{threadId:e})=>{const n=this[zx("0x24")][zx("0x4f")](e);n&&n[zx("0x100")]&&!n[zx("0x100")].length&&this[zx("0x5e")](e,{hasComments:!1})}),{priority:zx("0x5")})}set[zx("0x117")](t){if(this[zx("0x17")])throw new e.CKEditorError(zx("0x3c"),this);this[zx("0x17")]=t}get adapter(){return this[zx("0x17")]}[zx("0x113")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[zx("0x24")][zx("0x35")]())t&&!e.isInContent||n[zx("0x27")](e);return e?n[zx("0x69")]((t=>t[zx("0x32")]())):n}getSuggestion(t){const n=this[zx("0x24")].get(t);if(!n)throw new e.CKEditorError(zx("0x64"),this);return n}[zx("0x110")](t){return this[zx("0x24")][zx("0x3")](t)}[zx("0x99")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[zx("0x130")].split(":"),i=this[zx("0x24")][zx("0x4f")](n)||this._createSuggestion(s,r,n,e,o);if(this._addThreadToSuggestion(i),this[zx("0x14")](i,s,r||null,e),i[zx("0xaa")]=t[zx("0xaa")],o&&o[zx("0x4")]){const t=o[zx("0x4")],e=this._getExternalAuthor(t.authorName);i.authoredAt=t[zx("0xaa")],i[zx("0x137")]=e,i[zx("0x7")]=!0}else i[zx("0x10f")]=t.createdAt;switch(t.data&&(i[zx("0x5d")]=t[zx("0x5d")]),t.attributes&&(i.attributes=t[zx("0x2a")]),this[zx("0x17")]&&this[zx("0x17")][zx("0xd9")]||(i[zx("0x87")]=!0),this[zx("0x6c")][zx("0x4f")](i)){case zx("0x1"):this[zx("0x6c")].set(i,zx("0xf2"));break;case zx("0xc6"):i[zx("0xc9")]?(this[zx("0x6c")][zx("0x68")](i,zx("0x111")),this[zx("0x6d")](zx("0x86"),i)):this[zx("0x6c")][zx("0x68")](i,"removed")}return i}[zx("0x77")](t){this[zx("0x43")]((()=>{this.editor[zx("0xf1")][zx("0x3e")]((()=>{for(const e of t[zx("0x45")]())e.accept()}))}))}[zx("0xc4")](t){this.forceDefaultExecution((()=>{this[zx("0x22")][zx("0xf1")][zx("0x3e")]((()=>{for(const e of t.getAllAdjacentSuggestions())e.discard()}))}))}[zx("0xe9")](t,n){const o=this[zx("0x22")][zx("0x2")].get(t);if(!o)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});this[zx("0xa0")][zx("0x55")](o),n&&o.on(zx("0x1d"),((t,e)=>{this.trackChangesCommand[zx("0xd3")]&&(this._isForcedDefaultExecutionBlock||e[zx("0xb2")]>0&&e[e[zx("0xb2")]-1]&&e[e.length-1][zx("0x43")]||(n(((...t)=>o[zx("0x1d")](...t,{forceDefaultExecution:!0})),...e),t.stop()))}),{priority:zx("0x13")})}forceDefaultExecution(t){let n,o;const s=this[zx("0x10d")];this._isForcedDefaultExecutionBlock=!0;try{n=t()}catch(t){o=t}return s||(this[zx("0x10d")]=!1),o&&e.CKEditorError.rethrowUnexpectedError(o,this),n}[zx("0xa6")](t,n=null,o={}){if(t[zx("0x36")])return null;const s=this[zx("0x22")][zx("0x11c")].get(zx("0x9e")).me;for(const{suggestion:e,meta:o}of this[zx("0x8e")](t,zx("0x48")))if(o[zx("0xc5")]){if(!o[zx("0x104")]){if(!this[zx("0x72")]&&o[zx("0x67")])continue;return e}if(n==e.subType){const n=e[zx("0x10b")]();return n.start[zx("0xc")](t[zx("0xba")])?this[zx("0xd6")](e,this[zx("0x136")][zx("0xcb")](t[zx("0x46")],n[zx("0xba")])):this._setSuggestionRange(e,this[zx("0x136")].createRange(n[zx("0x46")],t.end)),e}}const r=(0,e.uid)(),i=s.id,a=n?zx("0x58")+n:zx("0x48"),x=this._setSuggestionData({id:r,type:a,createdAt:new Date,authorId:i,attributes:o});return this[zx("0x74")](a,r,i,t),x}[zx("0xd")](t,n=zx("0x56"),o={}){const s=this[zx("0x22")].plugins[zx("0x4f")]("Users").me,r=this[zx("0x9")].getSuggestionCallback(zx("0x48"),n,zx("0x38"));for(const e of this[zx("0x113")]())if(e[zx("0x137")].id==s.id&&zx("0x48")==e[zx("0x130")]&&e[zx("0x34")]==n&&(r(e[zx("0xb1")](),t)||r(t,e[zx("0xb1")]()))){for(const n of t)e[zx("0xe7")](n);return e}if(this[zx("0x72")])for(const e of t)for(const{suggestion:n,meta:o}of this[zx("0x8e")](e,zx("0x48"))){if(!o.isOwn)continue;let e=!0;for(const o of n.getRanges())for(const n of t)if(!o[zx("0xa1")](n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),a=s.id,x="insertion:"+n,c=this._setSuggestionData({id:i,type:x,createdAt:new Date,authorId:a,attributes:o});for(const e of t)this[zx("0x74")](x,i,a,e,Zo[zx("0x7d")]());return c}[zx("0xbb")](t,n,o=null,s={}){if(o=o||$x(n),t[zx("0x36")])return null;if(zx("0x7e")===this[zx("0x129")]){const e=this._suggestionFactory[zx("0x124")](zx("0xee"),o,zx("0x40"));return this.forceDefaultExecution((()=>e([t],n,s))),null}const r=this.editor[zx("0x11c")][zx("0x4f")]("Users").me,i=[];if("always"!==this[zx("0x129")])for(const{suggestion:e,meta:n}of this[zx("0x8e")](t,zx("0x48")))n[zx("0xc5")]&&!n[zx("0x91")]&&i[zx("0x27")](...e[zx("0xb1")]());const a=function(t,e){const n=[];for(const o of e){const e=t.getIntersection(o);e&&n[zx("0x27")](e)}return n}(t,i),x=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[zx("0xb2")];){const o=n[e][zx("0x8b")](t);n[zx("0x13b")](e,1,...o),e+=o[zx("0xb2")]}}return n}(t,i);a[zx("0xb2")]&&this[zx("0x136")][zx("0x3e")]((()=>{for(const t of a){const e=this[zx("0x9")][zx("0x124")](zx("0xee"),o,"accept");this[zx("0x43")]((()=>e([t],n,s)))}}));for(const t of x){let i=null,a=t[zx("0x46")],x=t[zx("0xba")];for(const{suggestion:e,meta:n}of this[zx("0x8e")](t,zx("0xee"))){if(!n[zx("0xc5")])continue;if(e.subType!=o)continue;const s=e.getFirstRange();if(s[zx("0xa1")](t,!0))return null;a=a.isBefore(s[zx("0x46")])?a:s.start,x=x[zx("0xf5")](s[zx("0xba")])?x:s[zx("0xba")],i?s[zx("0x46")][zx("0xef")](i[zx("0x10b")]()[zx("0x46")])?(i.removeMarkers(),i=e):e[zx("0xc3")]():i=e}const c=this[zx("0x136")].createRange(a,x);if(i)this._setSuggestionRange(i,c);else{const t=(0,e.uid)(),i=r.id;this[zx("0x60")]({id:t,type:"formatInline:"+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[zx("0x74")](zx("0xb5")+o,t,i,c)}}return null}[zx("0xde")](t,n,o=[],s=null,r={}){n.formatGroupId||(n[zx("0xaf")]=n.commandName),n[zx("0xe1")]=t.is("range"),s=s||$x(n);const i=o[zx("0x69")]((t=>Qx(t,this[zx("0x136")]))),a=t.is(zx("0x21"))?t:Qx(t,this[zx("0x136")]);if(zx("0x7e")===this[zx("0x129")]){const t=this[zx("0x9")].getSuggestionCallback(zx("0x121"),s,zx("0x40"));return this[zx("0x43")]((()=>t([a],n,r))),null}i[zx("0x27")](a);let x=!0;for(const t of i)if(!this[zx("0xa")](t)){x=!1;break}if(x&&zx("0xe3")!==this._trackFormatChanges){const t=this[zx("0x9")].getSuggestionCallback(zx("0x121"),s,zx("0x40"));return this.forceDefaultExecution((()=>t([a],n,r))),null}let c=null,l=a[zx("0x46")],u=a[zx("0xba")];for(const{suggestion:t,meta:e}of this[zx("0x8e")](a,"formatBlock")){if(!e.isOwn||e.isNextTo||e.containsRangeInObject||e.isInsideObject)continue;if(t[zx("0x5d")][zx("0xaf")]!=n[zx("0xaf")])continue;const o=t[zx("0x10b")]();if(t[zx("0x34")]==s){if(o.containsRange(a,!0))return null;l=l.isBefore(o[zx("0x46")])?l:o[zx("0x46")],u=u[zx("0xf5")](o[zx("0xba")])?u:o[zx("0xba")],c?o.start[zx("0xef")](c[zx("0x10b")]()[zx("0x46")])?(c[zx("0xc3")](),c=t):t[zx("0xc3")]():c=t}else{const e=a[zx("0x6b")](o);this[zx("0x4b")](t,e)}}const d=this[zx("0x22")][zx("0x11c")].get("Users").me,g=(0,e.uid)(),m=d.id;if(c)return this[zx("0xd6")](c,this[zx("0x136")][zx("0xcb")](l,u)),c;{const t=this[zx("0x60")]({id:g,type:zx("0x119")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[zx("0x74")]("formatBlock:"+s,g,m,this[zx("0x136")][zx("0xcb")](l,u)),t}}[zx("0x108")](t,n,o=[],s=null,r={}){n.formatGroupId||(n[zx("0xaf")]=n[zx("0x9a")]);const i=t[0];n[zx("0xe1")]=i.is(zx("0x21")),s=s||$x(n);const a=o.map((t=>Qx(t,this[zx("0x136")]))),x=i.is(zx("0x21"))?t:t[zx("0x69")]((t=>Qx(t,this[zx("0x136")])));if("never"===this[zx("0x129")]){const t=this._suggestionFactory[zx("0x124")](zx("0x121"),s,zx("0x40"));return this.forceDefaultExecution((()=>t(x,n,r))),null}a[zx("0x27")](...x);let c=!0;for(const t of a)if(!this[zx("0xa")](t)){c=!1;break}if(c&&zx("0xe3")!==this[zx("0x129")]){const t=this[zx("0x9")][zx("0x124")](zx("0x121"),s,zx("0x40"));return this[zx("0x43")]((()=>t(x,n,r))),null}const l=this[zx("0x22")][zx("0x11c")][zx("0x4f")](zx("0x9e")).me;for(const t of this[zx("0x113")]()){if(t[zx("0x137")].id!=l.id)continue;if(zx("0x121")!=t.type||t[zx("0x5d")].formatGroupId!=n[zx("0xaf")])continue;const e=t[zx("0x34")]==s;for(let n=0;n<x[zx("0xb2")];n++){const o=x[n];for(const s of t.getMarkers()){const r=s[zx("0x5a")]();if(o.isEqual(r)){e?(x[zx("0x13b")](n,1),n--):t[zx("0x1f")](s.name);break}}}}if(0==x[zx("0xb2")])return null;const u=this[zx("0x9")][zx("0x124")](zx("0x121"),s,zx("0x38"));for(const t of this[zx("0x113")]())if(t[zx("0x137")].id==l.id&&"formatBlock"==t[zx("0x130")]&&t.data[zx("0xaf")]==n[zx("0xaf")]&&t[zx("0x34")]==s&&(u(t[zx("0xb1")](),x)||u(x,t.getRanges()))){for(const e of x)t.addRange(e);return t}const d=(0,e.uid)(),g=l.id,m=zx("0x119")+s,f=this[zx("0x60")]({id:d,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of x)this[zx("0x74")](m,d,g,t,Zo[zx("0x7d")]());return f}[zx("0xcc")](t,n=null,o={}){if(t[zx("0x36")])return null;const s=this[zx("0x22")][zx("0x11c")][zx("0x4f")](zx("0x9e")).me,r=new i.LiveRange(t[zx("0x46")],t[zx("0xba")]);for(const{suggestion:t,meta:e}of this[zx("0x8e")](r,zx("0x48")))if(e[zx("0xc5")]&&!e.isNextTo)if(t.isMultiRange){const e=t[zx("0xb1")]()[zx("0x15")]((t=>zx("0x82")!=t[zx("0x76")].rootName));if(e[zx("0x13a")]((t=>r[zx("0xa1")](t,!0)))&&t[zx("0xb8")](),e[zx("0x106")]((t=>t[zx("0xa1")](r,!0)))){const t=this[zx("0x9")].getSuggestionCallback("deletion",n,zx("0x40"));return this.forceDefaultExecution((()=>t([r],null,o))),null}}else{const e=r.getIntersection(t.getFirstRange());null!==e&&t._onDiscard([e],null,o)}if(r.detach(),r[zx("0x36")]||zx("0x82")==r[zx("0x76")].rootName)return null;let a=null,x=r[zx("0x46")],c=r[zx("0xba")];for(const{suggestion:t,meta:e}of this[zx("0x8e")](r,zx("0x75")))if(e[zx("0xc5")])if(t.isMultiRange&&this[zx("0x72")]){let e=!0;for(const n of t[zx("0xb1")]()){if(n[zx("0xa1")](r,!0))return t;r.containsRange(n)||(e=!1)}e&&t.discard()}else{const n=t[zx("0x10b")]();if(n[zx("0xa1")](r,!0)){if(!this[zx("0x72")]&&e[zx("0x67")])continue;return t}x=x[zx("0xef")](n[zx("0x46")])?x:n[zx("0x46")],c=c.isAfter(n[zx("0xba")])?c:n[zx("0xba")],a?n.start[zx("0xef")](a.getFirstRange()[zx("0x46")])?(a.removeMarkers(),a=t):t[zx("0xc3")]():a=t}if(a)return this._setSuggestionRange(a,this[zx("0x136")].createRange(x,c)),a;{const t=(0,e.uid)(),r=this._model[zx("0xcb")](x,c),i=s.id,a=n?"deletion:"+n:zx("0x75"),l=this[zx("0x60")]({id:t,type:a,createdAt:new Date,authorId:i,attributes:o});return this[zx("0x74")](a,t,i,r),l}}[zx("0xf3")](t,n="multi",o={}){const s=this[zx("0x22")].plugins[zx("0x4f")]("Users").me,r=t[zx("0x69")]((t=>new i.LiveRange(t[zx("0x46")],t.end))),a=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this[zx("0x8e")](t,"insertion"))n[zx("0xc5")]&&!n[zx("0x104")]&&a[zx("0x55")](e);for(const e of a)if(e.isMultiRange){const s=e.getRanges();if((!e[zx("0x2a")]||!e[zx("0x2a")][zx("0xb3")])&&s[zx("0x13a")]((t=>r[zx("0x106")]((e=>e[zx("0xa1")](t,!0)))))&&e[zx("0xb8")](),r.every((t=>s[zx("0x106")]((e=>e.containsRange(t,!0)))))){const e=this[zx("0x9")].getSuggestionCallback("deletion",n,zx("0x40"));return this.forceDefaultExecution((()=>e(t,null,o))),null}}else{const t=e.getFirstRange();if(r[zx("0x106")]((e=>e[zx("0xa1")](t,!0)))&&e.discard(),r[zx("0x13a")]((e=>t[zx("0xa1")](e,!0)))){const t=this._suggestionFactory.getSuggestionCallback(zx("0x75"),n,zx("0x40"));return this[zx("0x43")]((()=>t(r,null,o))),null}}const x=this[zx("0x9")][zx("0x124")](zx("0x75"),n,zx("0x38"));let c=null;for(const t of this[zx("0x113")]())if(t[zx("0x137")].id==s.id&&t[zx("0xc9")]&&"deletion"==t[zx("0x130")]&&t[zx("0x34")]==n&&(x(t.getRanges(),r)||x(r,t[zx("0xb1")]())))if(c){if(t[zx("0x100")]&&t[zx("0x100")][zx("0xb2")])continue;for(const e of t.getRanges())c[zx("0xff")](e)||c.addRange(e);t[zx("0xc3")]()}else{c=t;for(const e of r)t[zx("0xff")](e)||t.addRange(e)}if(c)return c;a.clear();for(const t of r)for(const{suggestion:e,meta:n}of this[zx("0x8e")](t,"deletion"))n[zx("0xc5")]&&a[zx("0x55")](e);for(const t of a){const e=t[zx("0xb1")]();if((!o||!o[zx("0xb3")])&&r[zx("0x13a")]((t=>e[zx("0x106")]((e=>e[zx("0xa1")](t,!0))))))return t;(!t.attributes||!t[zx("0x2a")][zx("0xb3")])&&e[zx("0x13a")]((t=>r.some((e=>e.containsRange(t,!0)))))&&t[zx("0xb8")]()}const l=(0,e.uid)(),u=s.id,d=zx("0x50")+n,g=this[zx("0x60")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of r)t[zx("0x25")](),t.isCollapsed||"$graveyard"==t[zx("0x76")][zx("0x47")]||this[zx("0x74")](d,l,u,t,Zo[zx("0x7d")]());return g}[zx("0xd6")](t,e){const n=t[zx("0xca")]();this._model[zx("0x3e")]((t=>{t[zx("0xf0")](n,{range:e})}))}[zx("0x114")](t){const e=t.id,n=this[zx("0x22")][zx("0x49")].get(zx("0x3b"));this[zx("0x26")][zx("0x70")](e)||this._commentsRepository[zx("0x85")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[zx("0x26")][zx("0x4e")](e);o[zx("0xc8")](zx("0x23")),o[zx("0x23")]=!1,t[zx("0x100")]=o}[zx("0x14")](t,n,o,s){if(t.type!=n||t[zx("0x34")]!=o||t.creator.id!=s)throw this[zx("0x22")].enableReadOnlyMode("track-changes-suggestion-data-mismatch"),new e.CKEditorError("track-changes-suggestion-data-mismatch",this)}[zx("0x4b")](t,n){const o=t.getFirstRange();if(n[zx("0xc")](o))t[zx("0xc3")]();else if(o[zx("0xa1")](n)){const s=this[zx("0x136")][zx("0xf6")](n[zx("0x46")].nodeBefore,zx("0xba"));this[zx("0xd6")](t,this[zx("0x136")].createRange(o[zx("0x46")],s));const r=(0,e.uid)(),i=t[zx("0x120")].id,a=t[zx("0x130")]+":"+t.subType;this[zx("0x60")]({id:r,type:a,createdAt:new Date,authorId:i,data:t[zx("0x5d")],attributes:t[zx("0x2a")]});const x=this[zx("0x136")][zx("0xf6")](n[zx("0xba")][zx("0xa9")],zx("0x122")),c=this[zx("0x136")].createRange(x,o.end);this[zx("0x74")](a,r,i,c)}else if(o[zx("0xed")](n[zx("0x46")])){const e=this[zx("0x136")][zx("0xf6")](n[zx("0x46")][zx("0x42")],zx("0xba"));this[zx("0xd6")](t,this[zx("0x136")][zx("0xcb")](o[zx("0x46")],e))}else{const e=this[zx("0x136")].createPositionAt(n.end[zx("0xa9")],"after");this[zx("0xd6")](t,this[zx("0x136")][zx("0xcb")](e,o[zx("0xba")]))}}[zx("0xa")](t){for(const{suggestion:e,meta:n}of this._findSuggestions(t,zx("0x48"))){if(!n[zx("0xc5")])continue;const o=e[zx("0xb1")]();for(const e of o)if(!t[zx("0x8b")](e).length)return!0}return!1}[zx("0x52")](t){const n=this[zx("0x22")][zx("0x11c")][zx("0x4f")]("Users")[zx("0xf4")](t);if(!n)throw new e.CKEditorError(zx("0x90"),this);return n}[zx("0xe6")](t){const e=this[zx("0x22")].plugins.get(zx("0x9e")),n=(0,r.hashObject)(zx("0x7a")+t);return e[zx("0xf4")](n)||e.addUser({id:n,name:t})}[zx("0x12e")](t,e,n,o,s){const r=this[zx("0x52")](o),i=this[zx("0x9")][zx("0xe8")](t,e,n,r,s,(t=>this[zx("0x5e")](n,{attributes:t})));return this[zx("0x19")](i,zx("0x40"),(()=>{this._updateSuggestionData(n,{state:"accepted"})}),{priority:zx("0x13")}),this[zx("0x19")](i,zx("0xb8"),(()=>{this[zx("0x5e")](n,{state:zx("0xec")})}),{priority:zx("0x13")}),this[zx("0x24")][zx("0x68")](n,i),this[zx("0x6c")].set(i,zx("0x1")),i}[zx("0xd8")](t){const e=t.split(":");return{group:e[0],type:e[1],subType:e[zx("0xb2")]>=5?e[2]:null,id:e[zx("0xb2")]<5?e[2]:e[3],authorId:e[zx("0xb2")]<5?e[3]:e[4],markerCount:6==e.length?e[5]:null}}[zx("0xfe")](t,n,o){const s=t.getFirstRange(),r=s[zx("0x46")],i=s.end;this[zx("0xd6")](t,this[zx("0x136")][zx("0xcb")](r,n));const a=(0,e.uid)(),x=t[zx("0x120")].id,c=t[zx("0x130")]+(t[zx("0x34")]?":"+t[zx("0x34")]:"");this[zx("0x60")]({id:a,type:c,createdAt:new Date,authorId:x,originalSuggestionId:t.id,attributes:t[zx("0x2a")],data:t[zx("0x5d")]}),zx("0x121")==t[zx("0x130")]&&(o=this._model[zx("0x96")](o[zx("0xa9")])),this[zx("0x74")](c,a,x,this._model.createRange(o,i))}[zx("0x8e")](t,e=null){const n=[],o=this[zx("0x136")][zx("0x8c")],s=this[zx("0x22")].plugins[zx("0x4f")](zx("0x9e")).me;for(const r of this[zx("0x113")]())if(r[zx("0xc9")]&&(!e||r[zx("0x130")]==e))for(const e of r[zx("0xb1")]()){const i=t.start[zx("0xc")](e.end)||t.end[zx("0xc")](e.start);if(i||t[zx("0x6b")](e)){const a=t[zx("0xa1")](e)&&Kx(o,e[zx("0x46")],t),x=e[zx("0xa1")](t)&&Kx(o,t.start,e);n[zx("0x27")]({suggestion:r,meta:{isOwn:s==r.author,isNextTo:i,isInsideObject:a,containsRangeInObject:x}});break}}return n}[zx("0x74")](t,e,n,o,s){this._model[zx("0x3e")]((r=>{let i=zx("0x94")+t+":"+e+":"+n;s&&(i=i+":"+s),r[zx("0x134")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[zx("0x139")](t){const e=t[zx("0x63")],n=t[zx("0xb7")];t[zx("0x63")]=null,null!=e&&(e[zx("0xb7")]=null),t.next=null,null!=n&&(n[zx("0x63")]=null),zx("0x111")==this._suggestionState[zx("0x4f")](t)&&(this._suggestionState[zx("0x68")](t,zx("0xd4")),this[zx("0x6d")]("suggestionUnloaded",t,e,n))}[zx("0x60")](t){const n=t.id,o=this.addSuggestionData(t);if(this[zx("0x17")]&&this[zx("0x17")].addSuggestion){const s=this[zx("0x22")][zx("0x11c")][zx("0x4f")](zx("0xe5")),r=o[zx("0xd7")],i=o[zx("0x34")]?o[zx("0x130")]+":"+o[zx("0x34")]:o[zx("0x130")],a=this[zx("0x22")][zx("0x20")],x=s[zx("0x55")](Yo(a,zx("0x13e"))),c={id:n,type:i,hasComments:r,data:t.data||null,originalSuggestionId:t[zx("0x62")]||null,attributes:o[zx("0x2a")]};this[zx("0x17")][zx("0xd9")](c)[zx("0xa2")]((t=>{o._saved=!0,s[zx("0xb6")](x),t&&t.createdAt&&(this[zx("0x24")].get(n)[zx("0xaa")]=t[zx("0xaa")])}))[zx("0xdf")]((t=>{throw(0,e.logWarning)(zx("0x8a")),this[zx("0x22")][zx("0xf1")].enqueueChange({isUndoable:!1},(()=>{o[zx("0xb8")]()})),o.stopListening(),this[zx("0x24")][zx("0x3f")](o.id),this._suggestionState[zx("0x3f")](o),t}))}return o}[zx("0x5e")](t,e){const n=this[zx("0x22")][zx("0x11c")][zx("0x4f")](zx("0xe5")),o=this[zx("0x4c")](t);if(this._adapter&&this._adapter[zx("0x126")])if(o._saved){const o=n.add(Yo(this.editor[zx("0x20")],zx("0x13e")));this._adapter[zx("0x126")](t,e)[zx("0xa2")]((()=>{n[zx("0xb6")](o)}))}else o.on(zx("0x6e"),(()=>{this[zx("0x5e")](t,e)}))}[zx("0xbd")](t){if(!this[zx("0x17")]||!this[zx("0x17")].getSuggestion)throw new e.CKEditorError(zx("0xb0"),this);return this[zx("0x17")].getSuggestion(t)}[zx("0x2d")](t){const{id:e,type:n,subType:o,authorId:s}=this._splitMarkerName(t),r=this._suggestions[zx("0x4f")](e)||this._createSuggestion(n,o,e,s,{});switch(this[zx("0x14")](r,n,o,s),this[zx("0x6c")][zx("0x4f")](r)){case"notReady":this._getSuggestionData(e)[zx("0xa2")]((t=>{let n=Promise[zx("0xd5")]();t[zx("0xd7")]&&(n=this._commentsRepository[zx("0xda")]({channelId:this[zx("0x22")][zx("0x49")].get(zx("0x3b")),threadId:e})),n.then((()=>{this.addSuggestionData(t)[zx("0x87")]=!0}))})),this._suggestionState[zx("0x68")](r,zx("0xc6"));break;case zx("0xd4"):this[zx("0x5e")](e,{state:zx("0x12d")});case zx("0xf2"):this._suggestionState.set(r,"ready"),this[zx("0x6d")](zx("0x86"),r);break;case zx("0x111"):this[zx("0x6d")](zx("0x13d"),r)}return r[zx("0xab")](t),r}[zx("0x133")](t){const e=Array[zx("0x88")](t)[zx("0x15")]((t=>!t[zx("0x33")])),n=this[zx("0x113")]({skipNotAttached:!0})[zx("0x15")]((t=>!t[zx("0x33")])),o=n.filter((e=>!t[zx("0x3")](e))),s=new Map(n[zx("0x69")]((t=>[t,this[zx("0x9")][zx("0x124")](t[zx("0x130")],t[zx("0x34")],zx("0x4a"))]))),r=new Map(n[zx("0x69")]((t=>[t,t[zx("0x10b")]()]))),i=new Set,a=new Set;for(let t=0;t<e.length;t++)x(e[t],e,t+1);for(let t=0;t<e.length;t++)x(e[t],o,0);for(let t=0;t<e[zx("0xb2")];t++){const n=e[t];!a[zx("0x3")](n)&&n.previous&&(n[zx("0x63")].next===n&&(n.previous[zx("0xb7")]=null),n[zx("0x63")]=null),!i[zx("0x3")](n)&&n[zx("0xb7")]&&(n[zx("0xb7")].previous===n&&(n[zx("0xb7")][zx("0x63")]=null),n.next=null)}function x(t,e,n){for(let o=n;o<e[zx("0xb2")];o++){const n=c(t,e[o]);n&&(n[0][zx("0xb7")]=n[1],n[1].previous=n[0],i.add(n[0]),a[zx("0x55")](n[1]))}}function c(t,e){if(t[zx("0x137")].id!==e.author.id)return null;const n=s[zx("0x4f")](t)(t,e,r[zx("0x4f")](t),r[zx("0x4f")](e));return n&&s.get(e)(t,e,r[zx("0x4f")](t),r.get(e))?n[1][zx("0x100")]&&n[1].commentThread[zx("0xb2")]?null:n:null}}[zx("0x16")](t){const e=Array[zx("0x88")](t),n=this[zx("0x113")]({skipNotAttached:!0}),o=n[zx("0x15")]((e=>!t.has(e))),s=new Map(e[zx("0x69")]((t=>[t,this[zx("0x9")].getSuggestionCallback(t[zx("0x130")],t[zx("0x34")],zx("0x38"))]))),r=new Map(n.map((t=>[t,t[zx("0xb1")]()])));for(let t=0;t<e[zx("0xb2")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[zx("0xb2")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n[zx("0xb2")];i++){const o=n[i];if(o[zx("0x130")]!==e[zx("0x130")]||o[zx("0x137")].id!==e[zx("0x137")].id||o[zx("0x34")]!==e[zx("0x34")])continue;const a=s[zx("0x4f")](e),x=r[zx("0x4f")](e),c=r[zx("0x4f")](o),l=e[zx("0x100")]&&e.commentThread[zx("0xb2")],u=o[zx("0x100")]&&o.commentThread.length;if(!l&&a(c,x))return t[zx("0x83")](o,e),r[zx("0x3f")](e),!0;if(!u&&a(x,c))return t[zx("0x83")](e,o),r[zx("0x3f")](o),!0}return!1}}[zx("0x83")](t,e){if(t[zx("0x33")])for(const n of e[zx("0xb1")]())t[zx("0xe7")](n);else{const n=e.getFirstRange()[zx("0xba")];this[zx("0xd6")](t,this[zx("0x136")][zx("0xcb")](t[zx("0x10b")]()[zx("0x46")],n))}e[zx("0xc3")]()}}class Vx{constructor(t){this[zx("0x37")]=t,this[zx("0x136")]=t.model,this[zx("0x10e")]=new Map,this[zx("0xf")]=new Map,this[zx("0x4d")]()}[zx("0xe8")](t,e,n,o,s,r){return new Zo(this._model,{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[zx("0x124")](t,e,zx("0x40"))(...n),onDiscard:(...n)=>this[zx("0x124")](t,e,zx("0xb8"))(...n)})}[zx("0x103")](t,e,n,o){const s=t+":"+e+":"+n;this._customCallbacks[zx("0x68")](s,o)}[zx("0x124")](t,e,n){const o=t+":"+e+":"+n;return this[zx("0x10e")].get(o)||this._defaultCallbacks.get(t+":"+n)}[zx("0x4d")](){const t=()=>{},e=t=>{t[zx("0x1a")](((t,e)=>t.start[zx("0xef")](e[zx("0x46")])?1:-1)),this[zx("0x136")][zx("0x3e")]((e=>{for(const n of t){let t;t=n[zx("0xba")].isAtEnd&&n[zx("0xba")].parent==n.start[zx("0x1c")]?e[zx("0x54")](n[zx("0x46")].nodeAfter,"on"):e[zx("0x54")](n),this[zx("0x136")].deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[zx("0x136")][zx("0x3e")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[zx("0x69")]((t=>(qx(t)&&(t=this._model.createRange(t[zx("0xba")])),t)))[zx("0x15")]((t=>"$graveyard"!==t[zx("0x76")][zx("0x47")]));if(r[zx("0xb2")]<1)return;const a=Array[zx("0x88")](this._model.document.selection[zx("0xb1")]()).map((t=>i.LiveRange[zx("0x12a")](t)));n.setSelection(r);for(const t of this._editor[zx("0x2")][zx("0x2")]())t[zx("0x53")]();s[zx("0x27")]({forceDefaultExecution:!0}),this._editor[zx("0x1d")](o,...s);const x=a[zx("0x15")]((t=>"$graveyard"!=t[zx("0x76")][zx("0x47")]));x[zx("0xb2")]>0&&n[zx("0x123")](x);for(const t of a)t.detach()}))},o=(t,e)=>1==t[zx("0xb2")]&&1==e.length&&t[0][zx("0xba")].isEqual(e[0].start),s=(t,e,n,o)=>Zx(t,e,n,o,this[zx("0x136")])?[t,e]:Zx(e,t,o,n,this[zx("0x136")])?[e,t]:null;this[zx("0xf")].set(zx("0x84"),t),this._defaultCallbacks[zx("0x68")](zx("0xbf"),e),this[zx("0xf")][zx("0x68")](zx("0xa5"),o),this._defaultCallbacks.set(zx("0xcf"),s),this[zx("0xf")].set(zx("0xce"),e),this[zx("0xf")][zx("0x68")](zx("0x125"),t),this[zx("0xf")][zx("0x68")]("deletion:join",o),this[zx("0xf")][zx("0x68")](zx("0x6"),s),this[zx("0xf")][zx("0x68")](zx("0x92"),n),this[zx("0xf")][zx("0x68")](zx("0xb4"),t),this[zx("0xf")][zx("0x68")](zx("0x13c"),o),this[zx("0xf")][zx("0x68")](zx("0x10a"),t),this[zx("0xf")][zx("0x68")](zx("0xcd"),n),this._defaultCallbacks.set(zx("0x7c"),t),this[zx("0xf")][zx("0x68")](zx("0x80"),o),this[zx("0xf")][zx("0x68")]("formatBlock:chain",t)}}function Kx(t,e,n){for(const o of e.parent.getAncestors({includeSelf:!0,parentFirst:!0})){if(o[zx("0x76")]==o)return!1;if(!n[zx("0xc1")](o))return!1;if(t[zx("0x3d")](o)||t[zx("0x11f")](o))return!0}return!1}function qx(t){return t[zx("0xba")][zx("0xa9")]==t[zx("0x46")][zx("0x1c")]&&t[zx("0xba")][zx("0x59")]}function Xx(t,e,n,o){const s=t=>!t.item.is(zx("0xe2"))&&!o.isObject(t[zx("0x12f")]),r=t.start[zx("0x79")](s),i=t[zx("0xba")].getLastMatchingPosition(s,{direction:zx("0x13f")});return!(t[zx("0x46")][zx("0xc")](r)&&t[zx("0xba")][zx("0xc")](i)||(r.isBefore(i)?n[zx("0xf0")](e,{range:n[zx("0xcb")](r,i)}):n.removeMarker(e),0))}function $x(t){return(0,r.hashObject)(t)}function Jx(t){const e=t.start[zx("0x1c")];return e&&e.is(zx("0xe0"))}function Qx(t,e){const n=e.schema[zx("0x3d")](t)||e[zx("0x8c")][zx("0xc2")](t);return e[zx("0xcb")](e[zx("0xf6")](t,zx("0x102")),n?e[zx("0x97")](t):e.createPositionAt(t,"end"))}function Zx(t,e,n,o,s){if(n[zx("0xba")][zx("0xc")](o.start))return!0;if(t[zx("0x130")]!=e[zx("0x130")])return!1;if(!n[zx("0xba")][zx("0xac")](o[zx("0x46")]))return!1;const r=s.createRange(n[zx("0xba")],o[zx("0x46")])[zx("0x109")]();for(const t of r)if([zx("0xa8"),zx("0x39")].includes(t[zx("0x130")])&&s[zx("0x8c")][zx("0x11f")](t[zx("0x12f")]))return!1;return!0}const Yx=["_editor","isDirty","destroy","canAccept","isEnabled","discardSuggestion","get","model","add","listenTo","locale","_pendingAction","_acceptCommand","remove","PendingActions","change:isDirty","bind","execute","plugins","_discardCommand","view","commentThreadController","_setPendingAction","_removePendingAction","unbind","canEditAt","canDiscard","stopListening","getRanges","PENDING_ACTION_SUGGESTION","commands"];var tc,ec;tc=Yx,ec=284,function(t){for(;--t;)tc.push(tc.shift())}(++ec);const nc=function(t,e){return Yx[t-=0]};class oc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[nc("0x2")]=e,this.view=n,this[nc("0x10")]=o,this[nc("0x1a")]=t,this._acceptCommand=t[nc("0x19")].get("acceptSuggestion"),this[nc("0xe")]=t[nc("0x19")][nc("0x1")](nc("0x0")),this[nc("0xf")][nc("0xb")](nc("0x1e")).to(this[nc("0x7")],this._discardCommand,((t,e)=>t||e)),this.view[nc("0xb")](nc("0x1d")).to(this[nc("0x7")],"isEnabled",(t=>t&&this[nc("0x1a")][nc("0x2")][nc("0x14")](e[nc("0x17")]()))),this.view.bind(nc("0x15")).to(this[nc("0xe")],"isEnabled",(t=>t&&this[nc("0x1a")].model[nc("0x14")](e[nc("0x17")]()))),this._pendingAction=null,n[nc("0x1b")]&&this._setPendingAction(),this[nc("0x4")](n,"acceptSuggestion",(()=>this.acceptSuggestion())),this[nc("0x4")](n,nc("0x0"),(()=>this.discardSuggestion())),this[nc("0x4")](n,nc("0xa"),(()=>{n[nc("0x1b")]?this[nc("0x11")]():this[nc("0x12")]()}))}acceptSuggestion(){this._acceptCommand[nc("0xc")](this[nc("0x2")].id)}[nc("0x0")](){this[nc("0xe")][nc("0xc")](this[nc("0x2")].id)}[nc("0x1c")](){this[nc("0xf")][nc("0x13")](nc("0x1e")),this[nc("0xf")][nc("0x13")](nc("0x1d")),this[nc("0xf")][nc("0x13")]("canDiscard"),this[nc("0x16")](),this[nc("0x10")][nc("0x1c")](),this._pendingAction&&this[nc("0x12")]()}[nc("0x11")](){const t=Yo(this[nc("0x1a")][nc("0x5")],nc("0x18"));this[nc("0x6")]=this[nc("0x1a")].plugins.get(nc("0x9"))[nc("0x3")](t)}[nc("0x12")](){null!==this[nc("0x6")]&&this[nc("0x1a")][nc("0xd")].get(nc("0x9"))[nc("0x8")](this._pendingAction),this[nc("0x6")]=null}}const sc=["isDirty","disabledSubmit","setData","commentThread","isActive","canAccept","submit","isEnabled","_model","CommentView","_createCommentViews","locale","length","delegate","disableComments","cancel","commentsListView","_config","bind","fire","focus","commentThreadInputView","destroy","authoredAt","value","isReadOnly","addComment","removeComment","set","element","editorConfig","assign"];var rc,ic;rc=sc,ic=354,function(t){for(;--t;)rc.push(rc.shift())}(++ic);const ac=function(t,e){return sc[t-=0]};class xc extends s.View{constructor(t,e,n,o){super(t),this.commentsListView=null,this.commentThreadInputView=null,this[ac("0x1a")](ac("0x2"),!1),this[ac("0x1a")](ac("0x15"),e[ac("0x15")]),this[ac("0x10")](ac("0x15")).to(e),this.set("descriptionParts",[]),this[ac("0x1a")]("isDirty",!1),this[ac("0x1a")](ac("0x5"),!1),this[ac("0x1a")](ac("0x3"),!1),this.set("canDiscard",!1),this[ac("0x6")]=e,this._localUser=n,this[ac("0xf")]=o,o[ac("0xc")]?this[ac("0x1a")](ac("0xa"),1):this[ac("0x8")]()}[ac("0x12")](){this[ac("0x1b")][ac("0x12")]()}[ac("0x14")](){this[ac("0xe")]&&this[ac("0xe")][ac("0x14")](),this.commentThreadInputView&&this[ac("0x13")][ac("0x14")](),super[ac("0x14")]()}[ac("0x8")](){const{CommentsListView:t}=this[ac("0xf")];this[ac("0xe")]=new t(this.locale,this[ac("0x6")][ac("0x1")],Object[ac("0x1d")]({CommentView:this._config[ac("0x7")]},this[ac("0xf")])),this[ac("0xe")][ac("0xb")](ac("0x19")).to(this),this[ac("0xe")][ac("0xb")]("updateComment").to(this),this[ac("0xe")].bind(ac("0x2")).to(this),this.set(ac("0xa"),this.commentsListView[ac("0xa")]+1),this[ac("0x10")](ac("0xa")).to(this[ac("0xe")],ac("0xa"),(t=>t+1)),this[ac("0x13")]=this._createCommentThreadInputView(),this.on(ac("0x19"),(()=>this[ac("0x12")]())),this[ac("0x10")](ac("0x1e")).to(this.commentsListView,"hasDirtyComment",this[ac("0x13")].commentInputView,ac("0x16"),((t,e)=>t||!!e))}_createCommentThreadInputView(){const{CommentThreadInputView:t}=this[ac("0xf")],e=new t(this[ac("0x9")],this._localUser,this._config[ac("0x1c")]),n=e.commentInputView;return e[ac("0x10")]("showInput").to(this,"isActive",this._model.commentThread,ac("0x17"),n,ac("0x16"),((t,e,n)=>!!n||t&&!e)),n.on(ac("0x4"),((t,e)=>{this[ac("0x11")](ac("0x18"),e),n.editor[ac("0x0")]("")})),n.on(ac("0xd"),(()=>this[ac("0x12")]())),n[ac("0x10")](ac("0x1f")).to(this[ac("0x6")].commentThread,ac("0x17")),e}}const cc=["source","ck-suggestion-wrapper--active","check","isActive",".ck-annotation__content-wrapper","value","ck-suggestion__user","EXTERNAL_IMPORT_WORD_SUGGESTION","ck-annotation__main",'<span class="ck-suggestion-color" style="background-color: ',"</span>","commentThread","<p>","element","acceptSuggestion","cancel","set","title","ck-suggestion--accept","getUserViewNotificationText","ck-annotation__user","Discard suggestion","content","ck-comment__info-time","discardSuggestion","isEnabled","ck-comment__external","isExternal","split","_model","importWord","acceptButton","ck-annotation__info","change:description",'"></span>',"createElement","bind","_descriptionElement","discardButton","fire","type","ck-suggestion__main","description","EXTERNAL_IMPORT_WORD_AVATAR","ck-suggestion__actions","ck-annotation__info-name","delegate","name","userView","ck-suggestion__info","ck-suggestion","getTemplate","ck-annotation__info-time","editorReady","span","ck-suggestion-","extendTemplate","execute","commentsListView","bindTemplate","attributes","children","div","ck-suggestion--disabled-comments","editorDestroyed","ck-annotation","_createButton","authoredAt","color","locale","push","querySelector","_config","disableComments","descriptionParts","canDiscard","render","ck-suggestion__info-name","innerHTML","author","commentThreadInputView","creator","join","ck-annotation__actions",'" title="','<span class="ck-suggestion-type">',"setTemplate","@external"];var lc,uc;lc=cc,uc=378,function(t){for(;--t;)lc.push(lc.shift())}(++uc);const dc=function(t,e){return cc[t-=0]};class gc extends xc{constructor(e,n,o,s){super(e,n,o,s),this[dc("0x4e")]("type",""),this[dc("0xa")](dc("0xe")).to(this,dc("0x30"),(t=>t&&t[0]?t[0].type:"")),this[dc("0xa")]("description").to(this,dc("0x30"),this,dc("0x41"),((t,e)=>{let n="";for(const e of t)n+=dc("0x4a")+mc(e[dc("0x54")],e[dc("0x2a")])+"</p>";return e?n:(0,r.trimHtml)(n,{limit:140})})),this[dc("0xb")]=null,this[dc("0x5")]=this[dc("0x28")](Yo(e,"Accept suggestion"),t.icons[dc("0x40")],dc("0x50"),dc("0x4c"),"sw"),this.acceptButton.bind("isEnabled").to(this,"canAccept"),this[dc("0xc")]=this[dc("0x28")](Yo(e,dc("0x53")),t.icons[dc("0x4d")],"ck-suggestion--discard",dc("0x56"),"sw"),this[dc("0xc")].bind(dc("0x57")).to(this,dc("0x31")),this[dc("0x16")]=new r.UserView(e,this[dc("0x3")].author,this[dc("0x51")]()),this[dc("0x16")][dc("0x1e")]({attributes:{class:[dc("0x44"),dc("0x52")]}}),this[dc("0x3c")](this.getTemplate())}[dc("0x19")](){const t=this[dc("0x21")],e=[{tag:dc("0x24"),attributes:{class:[dc("0x17"),dc("0x6")]},children:[{tag:"span",children:[{text:this[dc("0x16")][dc("0x15")]}],attributes:{class:[dc("0x33"),dc("0x13")]}},{tag:"time",attributes:{datetime:t.to("authoredAt"),class:[dc("0x55"),dc("0x1a")]},children:[{text:t.to(dc("0x29"),(t=>this[dc("0x2e")].formatDateTime(t)))}]}]},{tag:dc("0x24"),attributes:{class:[dc("0x12"),dc("0x39")]},children:[this.acceptButton,this[dc("0xc")]]},{tag:"div",attributes:{class:["ck-annotation__content-wrapper"]}}];this[dc("0x3")][dc("0x1")]&&e[dc("0x2c")]({tag:dc("0x24"),attributes:{class:[dc("0x0")]},children:[{text:this.getExternalSuggestionNote()}]});const n={tag:dc("0x24"),attributes:{class:["ck-suggestion-wrapper",t.if("isActive",dc("0x3f")),t.to(dc("0xe"),(t=>dc("0x1d")+t)),this[dc("0x2e")][dc("0x2f")]&&dc("0x25")],"data-suggestion-id":this[dc("0x3")].id,"data-thread-id":this[dc("0x3")][dc("0x49")].id,"data-author-id":this[dc("0x3")][dc("0x35")].id,tabindex:-1},children:[{tag:dc("0x24"),attributes:{class:[dc("0x18"),dc("0x27")]},children:[this[dc("0x16")],{tag:"div",attributes:{class:[dc("0xf"),dc("0x46")]},children:e}]}]};return this[dc("0x20")]&&this[dc("0x36")]&&(n[dc("0x23")][dc("0x2c")](this[dc("0x20")],this[dc("0x36")]),this[dc("0x20")][dc("0x14")](dc("0x1b")).to(this),this.commentsListView.delegate("editorDestroyed").to(this),this[dc("0x36")][dc("0x14")](dc("0x1b")).to(this),this[dc("0x36")][dc("0x14")](dc("0x26")).to(this)),n}[dc("0x32")](){super.render(),this[dc("0xb")]=this[dc("0x4b")][dc("0x2d")](dc("0x42")),this[dc("0xb")][dc("0x34")]=this[dc("0x10")],this.on(dc("0x7"),((t,e,n)=>{this._descriptionElement.innerHTML=n}))}[dc("0x28")](t,e,n,o,r){const i=new s.ButtonView(this[dc("0x2b")]);return i.set({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[dc("0x1e")]({attributes:{class:n}}),i.on(dc("0x1f"),(()=>{this[dc("0xd")](o,this._model.id)})),i}getExternalSuggestionNote(){return dc("0x4")===this[dc("0x3")][dc("0x22")][dc("0x3d")][dc("0x3e")]?Yo(this[dc("0x2b")],dc("0x45")):Yo(this[dc("0x2b")],"EXTERNAL_SUGGESTION")}[dc("0x51")](){return this[dc("0x3")][dc("0x1")]?dc("0x4")===this[dc("0x3")][dc("0x22")][dc("0x3d")].source?Yo(this[dc("0x2b")],dc("0x11"),this._model.creator[dc("0x15")]):Yo(this[dc("0x2b")],"EXTERNAL_AVATAR",this[dc("0x3")][dc("0x37")][dc("0x15")]):null}}function mc(t,e){let n="";return n+=t[dc("0x2")]("*").map(((t,e)=>e%2!=0?dc("0x3b")+fc(t)+dc("0x48"):fc(t)))[dc("0x38")](""),e&&(n+=dc("0x47")+e[dc("0x43")]+dc("0x3a")+e[dc("0x4f")]+dc("0x8")),n}function fc(t){const e=document[dc("0x9")](dc("0x1c"));return e.innerText=t,e.innerHTML}const hc=["length","createAnnotationView","CommentView","commands","comments.maxCommentCharsWhenCollapsed","createAnnotation","componentFactory","execute","comments.editorConfig","model","requires","addSourceCollector","add","comments","getMarkerNames","destroy","_descriptionFactory","commentThread","keys","TrackChangesUI","from","clear","CommentsUI","Discard all selected suggestions","value","init","locale","suggestionLoaded","getDescriptions","_initializeController","innerView","Annotations","suggestion-","acceptSelectedSuggestions","Accept all suggestions","_refreshActiveMarkers","some","actionView","isOn","_disableComments","activeAnnotations","isEnabled","_suggestionToController","filter","button","commandName","Accept all selected suggestions","pluginName","comments.maxThreadTotalWeight","trackChanges","isDirty","config","getAllAdjacentSuggestions","comments.maxCommentsWhenCollapsed","_createUIButton","get","change:previous","_handleSuggestionControllerDelayed","Discard all suggestions","CommentsRepository","_destroyController","editor","_annotationViews","toMany","EditorAnnotations","activeMarkers","bind","_updateController","map","listenTo","suggestionChanged","acceptButton","focus","descriptionParts","_handleControllerBuffer","previous","trackChanges.disableComments","values","mainView","type","isMultiRange","hasSuggestion","define","unbind","registerAnnotation","delete","suggestionUnloaded","acceptAllSuggestions","arrowView","editing","discardButton","plugins","buttonView","getRanges","TrackChangesEditing","_bindAnnotationToEditors","set","getMarkers","Track changes","remove","head","view","isInContent","getSuggestion","push","has","SuggestionThreadView","_viewToController","separator","size"];var pc,bc;pc=hc,bc=147,function(t){for(;--t;)pc.push(pc.shift())}(++bc);const Ec=function(t,e){return hc[t-=0]};class _c extends t.Plugin{static get[Ec("0x53")](){return[Wx,r.Users,Ec("0x16"),Ec("0x68"),Ec("0x1b")]}static get[Ec("0xa")](){return Ec("0x5c")}constructor(t){super(t),this[Ec("0x5")]=new Map,this[Ec("0x46")]=new Map,this[Ec("0x19")]=new Map,this._handleControllerBuffer=new Map;const e=this[Ec("0x18")][Ec("0xe")];e.define("trackChanges.SuggestionThreadView",gc),e[Ec("0x2d")](Ec("0x27"),!1),this[Ec("0x2")]=e[Ec("0x12")](Ec("0x27"))}_handleSuggestionControllerDelayed(t,e){0===this[Ec("0x25")][Ec("0x48")]&&setTimeout((()=>{for(const[t,e]of this[Ec("0x25")]){const n=this[Ec("0x5")][Ec("0x44")](t);n||e?n&&e&&this[Ec("0x17")](t):this[Ec("0x66")](t)}this[Ec("0x18")][Ec("0x36")][Ec("0x12")](Ec("0x1b")).refreshSelectedViews(),this._refreshActiveMarkers(),this[Ec("0x25")][Ec("0x5e")]()}),10),this._handleControllerBuffer[Ec("0x3b")](t,e)}[Ec("0x62")](){const t=this.editor,e=t[Ec("0x36")][Ec("0x12")]("TrackChangesEditing"),n=t[Ec("0x36")][Ec("0x12")]("Annotations"),o=t[Ec("0x36")].get("EditorAnnotations"),s=t[Ec("0x36")][Ec("0x12")](Ec("0x16"));t.ui[Ec("0x4f")][Ec("0x55")](Ec("0xc"),(t=>this[Ec("0x11")](t))),o[Ec("0x54")]((()=>{const t=[];for(const[e,n]of Array[Ec("0x5d")](this._suggestionToController)){const o=e.getAllAdjacentSuggestions(),s=[];for(const t of o){if(!t[Ec("0x41")])continue;if(t[Ec("0x2b")]){s.push(...t[Ec("0x38")]());continue}const e=t.getFirstRange();if(s[Ec("0x49")]>0){const t=s[0].getJoined(e);if(t){s[0]=t;continue}}s.push(e)}t[Ec("0x43")]([n[Ec("0x40")],s])}return t})),this[Ec("0x20")](e,Ec("0x64"),((t,e)=>{this.listenTo(e,Ec("0x13"),((t,n,o,s)=>{e[Ec("0x41")]&&(null==o?(this[Ec("0x1e")](s[Ec("0x3f")]),this[Ec("0x14")](e,!1)):(this[Ec("0x1e")](o.head),this[Ec("0x14")](e,!0)))})),null===e[Ec("0x26")]?this[Ec("0x14")](e,!1):this[Ec("0x1e")](e.head)})),this[Ec("0x20")](e,Ec("0x31"),((t,e,n)=>{this.stopListening(e,Ec("0x13")),this[Ec("0x25")][Ec("0x30")](e);const o=n?n[Ec("0x3f")]:e,s=this[Ec("0x5")][Ec("0x12")](o);null!==n&&this[Ec("0x1e")](o),null===n&&s&&this[Ec("0x17")](e)})),this[Ec("0x20")](e,Ec("0x21"),((t,e)=>{this[Ec("0x1e")](e)})),this[Ec("0x20")](n,"change:activeAnnotations",(()=>{this[Ec("0x6c")]()})),this[Ec("0x20")](s,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Ec("0x2c")](n))return;const s=e[Ec("0x42")](n);this[Ec("0x5")].get(s).view[Ec("0x23")]()}),{priority:"lowest"})}[Ec("0x6c")](){const t=this[Ec("0x18")].plugins[Ec("0x12")](Ec("0x68")),e=this[Ec("0x18")][Ec("0x36")][Ec("0x12")](Ec("0x39")),n=Array[Ec("0x5d")](t[Ec("0x3")],(t=>t[Ec("0x67")]))[Ec("0x6")]((t=>this[Ec("0x46")].has(t))),o=[];for(const t of n){const e=this[Ec("0x46")][Ec("0x12")](t)[Ec("0x52")][Ec("0xf")]();o[Ec("0x43")](...e.reduce(((t,e)=>[...t,...e[Ec("0x57")]()]),[]))}e[Ec("0x1c")]=o}_createUIButton(t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this.editor[Ec("0x4c")][Ec("0x12")](Ec("0xc")),r=Yo(t,Ec("0x3d"));n[Ec("0x37")].set({tooltip:r,label:r,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Ec("0x37")][Ec("0x1d")](Ec("0x1")).to(o,Ec("0x61")),n[Ec("0x37")].on(Ec("0x50"),(()=>{o[Ec("0x50")](),this[Ec("0x18")][Ec("0x34")][Ec("0x40")][Ec("0x23")]()}));const i=new e.Collection,a=[{type:"switchbutton",model:{withText:!0,label:r,commandName:"trackChanges"}},{type:Ec("0x47")},{type:"button",model:{withText:!0,label:Yo(t,Ec("0x6b")),commandName:Ec("0x32")}},{type:Ec("0x7"),model:{withText:!0,label:Yo(t,Ec("0x9")),commandName:Ec("0x6a")}},{type:Ec("0x7"),model:{withText:!0,label:Yo(t,Ec("0x15")),commandName:"discardAllSuggestions"}},{type:"button",model:{withText:!0,label:Yo(t,Ec("0x60")),commandName:"discardSelectedSuggestions"}}];for(const t of a){let e={type:Ec("0x47")};if(t[Ec("0x52")]){const n=new s.Model(t.model),o=this[Ec("0x18")].commands[Ec("0x12")](n[Ec("0x8")]);n[Ec("0x1d")](Ec("0x1"),Ec("0x4")).to(o,Ec("0x61"),"isEnabled"),e={type:t[Ec("0x2a")],model:n}}i[Ec("0x55")](e)}(0,s.addListToDropdown)(n,i);const x=a[Ec("0x6")]((t=>null!=t.model))[Ec("0x1f")]((t=>this[Ec("0x18")][Ec("0x4c")][Ec("0x12")](t[Ec("0x52")][Ec("0x8")]))),c=n.buttonView;return c[Ec("0x0")][Ec("0x2e")](Ec("0x4")),c[Ec("0x33")].unbind("isEnabled"),c[Ec("0x0")][Ec("0x1d")](Ec("0x4")).to(o,Ec("0x4")),c[Ec("0x33")][Ec("0x1d")](Ec("0x4"))[Ec("0x1a")](x,Ec("0x4"),((...t)=>t[Ec("0x6d")]((t=>t)))),n.on("execute",(t=>{this[Ec("0x18")][Ec("0x50")](t.source[Ec("0x8")]),this.editor[Ec("0x34")][Ec("0x40")].focus()})),n}[Ec("0x66")](t){const e=this.editor,n=e[Ec("0xe")],o=e[Ec("0x36")][Ec("0x12")]("Annotations"),s=e.plugins[Ec("0x12")](Ec("0x16")),i=e.plugins[Ec("0x12")](Ec("0x1b")),a=e.plugins[Ec("0x12")](r.Users).me,x=n.get("trackChanges")[Ec("0x45")],{CommentsListView:c,CommentThreadInputView:l}=e[Ec("0x36")][Ec("0x12")](Ec("0x5f"));let u,d;this[Ec("0x19")][Ec("0x44")](t.id)?(d=this[Ec("0x19")][Ec("0x12")](t.id),u=d[Ec("0x29")]):(u=new x(e[Ec("0x63")],t,a,{disableComments:this._disableComments,editorConfig:n[Ec("0x12")](Ec("0x51")),maxCommentsWhenCollapsed:n[Ec("0x12")](Ec("0x10")),maxThreadTotalWeight:n[Ec("0x12")](Ec("0xb")),maxCommentCharsWhenCollapsed:n.get(Ec("0x4d")),formatDateTime:(0,r.getDateTimeFormatter)(n[Ec("0x12")]("locale")),CommentView:n[Ec("0x12")](Ec("0x56"))[Ec("0x4b")],CommentsListView:c,CommentThreadInputView:l}),u[Ec("0x22")].on("execute",(()=>{e[Ec("0x34")][Ec("0x40")][Ec("0x23")]()})),u[Ec("0x35")].on(Ec("0x50"),(()=>{e[Ec("0x34")][Ec("0x40")][Ec("0x23")]()})),d=o[Ec("0x4a")](this[Ec("0x18")][Ec("0x63")],u),d[Ec("0x1d")](Ec("0xd")).to(u,Ec("0xd")),d[Ec("0x1d")](Ec("0x49")).to(u),d[Ec("0x1d")](Ec("0x2a")).to(u,Ec("0x2a"),(t=>Ec("0x69")+t)),this[Ec("0x19")][Ec("0x3b")](t.id,d));const g=s.createCommentThreadController(t[Ec("0x5a")],u),m=new oc(e,t,u,g),f=t.getAllAdjacentSuggestions()[Ec("0x6")]((t=>t.isInContent));u[Ec("0x24")]=e[Ec("0x36")].get("TrackChangesEditing")[Ec("0x59")].getDescriptions(f),this[Ec("0x5")][Ec("0x3b")](t,m),this[Ec("0x46")][Ec("0x3b")](u,m);const h=o[Ec("0x4e")]({view:d,target:()=>{const n=[],o=t[Ec("0xf")]()[Ec("0x6")]((t=>t.isInContent));for(const t of o)n[Ec("0x43")](...t[Ec("0x3c")]());return(0,r.getAllMarkersDomElementsSorted)(e.editing,n)},type:()=>Ec("0x69")+m.view[Ec("0x2a")]});s[Ec("0x3a")](u,h),o[Ec("0x55")](h),i[Ec("0x2f")](h)}[Ec("0x17")](t){const e=this[Ec("0x18")][Ec("0x36")][Ec("0x12")](Ec("0x68")),n=this[Ec("0x5")][Ec("0x12")](t),o=n.view,s=e.getByInnerView(o);s&&e[Ec("0x3e")](s),this._suggestionToController[Ec("0x30")](t),this[Ec("0x46")][Ec("0x30")](o),n[Ec("0x58")]()}[Ec("0x1e")](t){if(!t[Ec("0x41")]||!this[Ec("0x5")][Ec("0x44")](t))return;const e=this[Ec("0x18")].plugins[Ec("0x12")](Ec("0x39")),n=this[Ec("0x5")][Ec("0x12")](t),o=t[Ec("0xf")]();n[Ec("0x40")][Ec("0x24")]=e._descriptionFactory[Ec("0x65")](o)}destroy(){for(const t of this[Ec("0x5")][Ec("0x5b")]())this[Ec("0x17")](t);for(const t of this[Ec("0x19")][Ec("0x28")]())t[Ec("0x29")][Ec("0x58")]();super[Ec("0x58")]()}}var Tc,Cc,yc=["plugins","pluginName","Comments","getSuggestion","editor","getSuggestions","TrackChanges","get","adapter"];Tc=yc,Cc=147,function(t){for(;--t;)Tc.push(Tc.shift())}(++Cc);var kc=function(t,e){return yc[t-=0]};class Ac extends t.Plugin{static get requires(){return[Wx,_c,kc("0x8")]}static get[kc("0x7")](){return kc("0x3")}set[kc("0x5")](t){this[kc("0x1")].plugins[kc("0x4")](Wx)[kc("0x5")]=t}get[kc("0x5")](){return this.editor[kc("0x6")][kc("0x4")](Wx).adapter}addSuggestion(t){return this[kc("0x1")][kc("0x6")].get(Wx).addSuggestionData(t)}[kc("0x2")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[kc("0x1")][kc("0x6")][kc("0x4")](Wx).getSuggestions({skipNotAttached:t,toJSON:e})}[kc("0x0")](t){return this[kc("0x1")][kc("0x6")][kc("0x4")](Wx)[kc("0x0")](t)}}const vc=["getDataWithAcceptedSuggestions","getRootNames","end","constructor","getSuggestions","set","users","TrackChangesDataGetter","config","getRootsAttributes","CommentsRepository","data","editorCreator","TrackChangesData","editor","init","result","get","useAnonymousUser","create","Users","document","function","_adapter","appendChild","name","acceptAllSuggestions","pluginName","getUser","trackChangesData.editorCreator","requires","reduce","TrackChangesEditing","destroy","execute","plugins","trackChangesData","div","map"];var Rc,Sc;Rc=vc,Sc=445,function(t){for(;--t;)Rc.push(Rc.shift())}(++Sc);const Ic=function(t,e){return vc[t-=0]},Lc=["Pagination"];class Nc extends t.Plugin{static get[Ic("0xe")](){return[Wx]}static get[Ic("0xb")](){return Ic("0x24")}[Ic("0x26")](){const t=this.editor;if(t[Ic("0x1f")].define(Ic("0xd"),(e=>{const n=t.model[Ic("0x5")][Ic("0x18")]()[Ic("0xf")](((t,e)=>(t[e]="",t)),{});return t[Ic("0x1a")][Ic("0x3")](n,e)})),Ic("0x6")!=typeof t[Ic("0x1f")][Ic("0x1")]("trackChangesData").editorCreator)throw new e.CKEditorError("track-changes-data-invalid-editor-creator")}[Ic("0x17")](t){return Oc(this.editor,!0,t)}getDataWithDiscardedSuggestions(t){return Oc(this[Ic("0x25")],!1,t)}}class Mc extends t.Plugin{static get[Ic("0xb")](){return Ic("0x1e")}constructor(t){super(t),this[Ic("0x0")]=Ic("0x19")}init(){this.editor[Ic("0x13")][Ic("0x1")](Ic("0x21"))._adapter={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this[Ic("0x25")][Ic("0x13")][Ic("0x1")](Ic("0x10"))[Ic("0x7")]=null}}function wc(t){return void 0!==t[Ic("0x20")]}async function Oc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Lc);o[Ic("0x13")].push(Wx,Mc),o.rootsAttributes=wc(t)?t[Ic("0x20")]():void 0;const s=document.createDocumentFragment(),i=t[Ic("0x1f")][Ic("0x1")](Ic("0x14"))[Ic("0x23")],a=await i(o,(()=>function(t){const e=document.createElement(Ic("0x15"));return t[Ic("0x8")](e),e}(s)));!function(t,e){const n=t.model[Ic("0x5")][Ic("0x18")]()[Ic("0xf")](((e,n)=>(e[n]=t[Ic("0x22")].get({rootName:n}),e)),{}),o=t.plugins[Ic("0x1")](Ic("0x4"))[Ic("0x1d")][Ic("0x16")]((t=>({id:t.id,name:t[Ic("0x9")]}))),s=t[Ic("0x13")][Ic("0x1")](Ic("0x10"))[Ic("0x1b")]({skipNotAttached:!0,toJSON:!0}),r=e[Ic("0x13")].get(Ic("0x4")),i=e[Ic("0x13")][Ic("0x1")]("TrackChangesEditing");for(const t of o)r[Ic("0xc")](t.id)||r.addUser(t);r.me||r[Ic("0x2")]();for(const t of s)i.addSuggestionData(t);e[Ic("0x22")][Ic("0x1c")](n)}(t,a),a[Ic("0x12")](e?Ic("0xa"):"discardAllSuggestions");const x=wc(a)?a.getFullData(n):a.data[Ic("0x1")](n);return await a[Ic("0x11")](),x}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
5
+ */(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var s=e[o];if(void 0!==s)return s.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>ac,TrackChanges:()=>Ac,TrackChangesData:()=>Nc,TrackChangesEditing:()=>Wa});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["value","isEnabled","forceDisabled","_enableCommands","_disableUnsupportedCommands","editor","commands","_isEnabledBasedOnSelection","_enabledCommands","clearForceDisabled","refresh","TrackChangesCommand","affectsData","has"];var c,l;c=a,l=481,function(t){for(;--t;)c.push(c.shift())}(++l);const d=function(t,e){return a[t-=0]};class u extends t.Command{constructor(t,e){super(t),this[d("0x3")]=e,this[d("0x9")]=!1,this[d("0x5")](),this[d("0x2")]=!1}refresh(){this[d("0xa")]=!0}execute(){this[d("0x9")]=!this[d("0x9")],this[d("0x9")]?this[d("0xd")]():this[d("0xc")]()}[d("0xd")](){for(const t of this[d("0x0")].commands[d("0x1")]())t[d("0x7")]&&!this[d("0x3")].has(t)&&t[d("0xb")](d("0x6"))}_enableCommands(){for(const t of this[d("0x0")][d("0x1")].commands())t[d("0x7")]&&!this._enabledCommands[d("0x8")](t)&&t[d("0x4")](d("0x6"))}}const g=["canEditAt","track-changes-accept-suggestion-not-found","TrackChangesEditing","get","refresh","_suggestions","execute","_isEnabledBasedOnSelection","isEnabled","getRanges","editor","acceptSuggestion"];var m,f;m=g,f=479,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("0x6")]=e,this[h("0x5")](),this[h("0x8")]=!1}[h("0x5")](){this[h("0x9")]=!0}[h("0x7")](t){const n=this[h("0x6")][h("0x4")](t);if(!n)throw new e.CKEditorError(h("0x2"),this);const o=n[h("0xa")]();this[h("0xb")].model[h("0x1")](o)&&this[h("0xb")].plugins.get(h("0x3"))[h("0x0")](n)}}const b=["plugins","execute","_isEnabledBasedOnSelection","getRanges","refresh","_suggestions","isEnabled","canEditAt","get","TrackChangesEditing","editor"];var E,_;E=b,_=206,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("0x8")]=e,this[T("0x7")](),this[T("0x5")]=!1}[T("0x7")](){this[T("0x9")]=!0}[T("0x4")](t){const n=this[T("0x8")][T("0x0")](t);if(!n)throw new e.CKEditorError("track-changes-discard-suggestion-not-found",this);const o=n[T("0x6")]();this[T("0x2")].model[T("0xa")](o)&&this.editor[T("0x3")].get(T("0x1")).discardSuggestion(n)}}const y=["map","end","execute","add","isTouching","getRange","change","content","replace","isInContent","createPositionAt","color","createPositionBefore","splice","isObject","schema","createPositionAfter","isMultiRange","getMarkers","start","isCollapsed","isArray","getRanges","from","push","type","value","sort","deletion","length","isIntersecting"," [color ","createRange"];var k,A;k=y,A=188,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x4")](((t,e)=>v("0x5")==t.type&&v("0x5")!=e[v("0x2")]?-1:"deletion"!=t[v("0x2")]&&v("0x5")==e[v("0x2")]?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0x19")];for(;o<t.length;){const i=t[o],x=t[o+1];n||(n=e[v("0x16")](i)),I(e,i,x)||(s[v("0x1")](e[v("0x9")](n,r[v("0x18")](i)?e[v("0x1a")](i):e[v("0x14")](i,v("0xb")))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0x1a")](e),s=t[v("0x16")](n);return o[v("0xe")](s)}function L(t,e,n){for(;n[v("0x6")];){const o=n[v("0x17")](0,100);t[v("0x10")]((()=>{for(const t of o)t[v("0x13")]&&e[v("0xc")](t.id)}))}}const N=["model","isEnabled","editor","from","isInContent","_isEnabledBasedOnSelection","execute","_suggestions","canEditAt","getRanges","_command","refresh","some","values"];var w,M;w=N,M=444,function(t){for(;--t;)w.push(w.shift())}(++M);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x0")]=e,this[O("0xb")]=n,this[O("0x1")](),this[O("0x9")]=!1}[O("0x1")](){const t=Array[O("0x7")](this[O("0xb")][O("0x3")]())[O("0x2")]((t=>t[O("0x8")]));this[O("0x5")]=this[O("0x0")][O("0x5")]&&t}[O("0xa")](){const t=R(Array[O("0x7")](this[O("0xb")].values()));for(const e of t){const t=e[O("0xd")]();if(!this[O("0x6")][O("0x4")][O("0xc")](t))return}L(this[O("0x6")].model,this._command,t)}}const P=["_selectedSuggestions","_command","document","selection","size","execute","getRanges","editor","isEnabled","refresh","_suggestions","_isEnabledBasedOnSelection","model"];var D,B;D=P,B=478,function(t){for(;--t;)D.push(D.shift())}(++B);const j=function(t,e){return P[t-=0]};class U extends t.Command{constructor(t,e,n){super(t),this._command=e,this[j("0x0")]=n,this[j("0x3")]=new Set,this.refresh(),this[j("0x1")]=!1}[j("0xc")](){const t=this[j("0xa")][j("0x2")][j("0x5")][j("0x6")],e=Array.from(this._suggestions.values());this[j("0x3")]=function(t,e){const n=Array[v("0x0")](t[v("0x20")]()),o=new Set;for(const s of e)if(s.isInContent)for(const e of n)for(const n of s[v("0x1c")]()){const r=n[v("0xf")]();(e[v("0x7")](r)||t[v("0x1e")]&&!s[v("0x1b")]&&s.next&&r.end[v("0xe")](e[v("0x1d")]))&&o[v("0xd")](s)}return o}(t,e),this[j("0xb")]=this._command[j("0xb")]&&!!this[j("0x3")][j("0x7")]}[j("0x8")](){const t=R(Array.from(this[j("0x3")]));for(const e of t){const t=e[j("0x9")]();if(!this[j("0xa")][j("0x2")].canEditAt(t))return}L(this[j("0xa")].model,this[j("0x4")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const z=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var W=Array.prototype.splice;const V=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():W.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=z(e,t);return n<0?void 0:e[n][1]};const q=function(t){return z(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=z(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const J=$;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const dt=function(t){return lt.call(t)};var ut=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ut&&ut in Object(t)?ct(t):dt(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const It=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=It(t,e);return St(n)?n:void 0};const Nt=Lt(ot,"Map");const wt=Lt(Object,"create");const Mt=function(){this.__data__=wt?wt(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(wt){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 wt?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]=wt&&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=Mt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Wt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=Wt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Wt(this,t).get(t)};const qt=function(t){return Wt(this,t).has(t)};const Xt=function(t,e){var n=Wt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,de=ce.propertyIsEnumerable;const ue=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!de.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Se=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Ie=Se&&Se.isTypedArray;const Le=Ie?ke(Ie):ye;var Ne=Object.prototype.hasOwnProperty;const we=function(t,e){var n=ge(t),o=!n&&ue(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var Me=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Me)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?we(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const We=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?we(t,!0):We(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Je=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const dn=function(t){return ln(t,Ue,on)};const un=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const Sn=Rn;var In=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&In.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const wn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const Mn=function(t,e){var n=e?wn(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?wn(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 wn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return Mn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Wn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Vn=Se&&Se.isMap;const Kn=Vn?ke(Vn):Wn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?ke(Xn):qn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var d=ge(e);if(d){if(x=Ln(e),!a)return Ze(e,x)}else{var u=Sn(e),g=u==Qn||"[object GeneratorFunction]"==u;if(be(e))return Qe(e,a);if(u==Zn||u==Jn||g&&!r){if(x=c||g?{}:zn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[u])return r?e:{};x=Un(e,u,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),$n(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var f=d?void 0:(l?c?un:dn:c?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=po(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var d=-1,u=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++d<x;){var m=t[d],f=e[d];if(o)var h=i?o(f,m,d,e,t,r):o(m,f,d,t,e,r);if(void 0!==h){if(h)continue;u=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){u=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){u=!1;break}}return r.delete(t),r.delete(e),u};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const wo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=So;case"[object Set]":var a=1&o;if(x||(x=Io),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var Mo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=dn(t),a=x.length;if(a!=dn(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:Mo.call(e,l)))return!1}var d=r.get(t),u=r.get(e);if(d&&u)return d==e&&u==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===p?f===h||s(f,h,n,o,r):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po:Sn(t),c=x?Po:Sn(e),l=(a=a==Fo?Do:a)==Do,d=(c=c==Fo?Do:c)==Do,u=a==c;if(u&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(u&&!l)return r||(r=new Yt),i||Le(t)?Ro(t,e,n,o,s,r):wo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=d&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!u&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const zo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const Wo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Vo=function(t,e){return e.length<2?t:zo(t,Wo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Vo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["_onAttributesChange","addMarkerName","_onDiscard","hasComments","createdAt","getMarkerNames","type","accept","_saved","add","toJSON","data","authoredAt","_markerNames","discard","length","from","attributes","removeMarker","reduce","change","addMarker","getAllAdjacentSuggestions","removeAttribute","_onAccept","_model","next","isIntersecting","author","nodeBefore","getItems","commentThread","map","getRanges","getRange","isMultiRange","isInContent","onDiscard","removeMarkers","getContainedElement","size","getFirstRange","get","subType","getFirstMarker","start","set","head","markers","getMarkers","substr","previous","delete","creator","isIntersectingWithRange","getMultiRangeId","onAttributesChange"];var $o,Jo;$o=Xo,Jo=430,function(t){for(;--t;)$o.push($o.shift())}(++Jo);const Qo=function(t,e){return Xo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this.id=e.id,this[Qo("0x20")]=e[Qo("0x20")],this[Qo("0xc")]=e[Qo("0xc")]||null,this.author=e[Qo("0x36")],this[Qo("0x16")]=e[Qo("0x16")]||e[Qo("0x36")],this.isExternal=Boolean(e[Qo("0x2b")]&&e[Qo("0x2b")]["@external"]),this[Qo("0x25")]=null,this[Qo("0x33")]=t,this[Qo("0x32")]=e.onAccept,this[Qo("0x1c")]=e[Qo("0x6")],this[Qo("0x1a")]=e[Qo("0x19")],this[Qo("0x27")]=new Set,this[Qo("0x1e")]=null,this[Qo("0xf")](Qo("0x26"),null),this[Qo("0xf")](Qo("0x2b"),e[Qo("0x2b")]||{}),this.set(Qo("0x14"),null),this.set(Qo("0x34"),null),this[Qo("0xf")](Qo("0x0"),null),this[Qo("0xf")](Qo("0x22"),!1),this.decorate(Qo("0x21")),this.decorate(Qo("0x28"))}get[Qo("0x10")](){let t=this;for(;t[Qo("0x14")];)t=t[Qo("0x14")];return t}get[Qo("0x1d")](){return!!this[Qo("0x0")]&&this[Qo("0x0")][Qo("0x29")]>0}get[Qo("0x4")](){return 0!=this._markerNames[Qo("0x9")]&&6==Array[Qo("0x2a")](this._markerNames)[0].split(":")[Qo("0x29")]}get[Qo("0x5")](){return null!==this[Qo("0xd")]()}[Qo("0x1b")](t){this._markerNames[Qo("0x23")](t)}getMarkerNames(){return Array[Qo("0x2a")](this[Qo("0x27")])}[Qo("0x12")](){return this[Qo("0x1f")]().map((t=>this[Qo("0x33")][Qo("0x11")][Qo("0xb")](t))).filter((t=>t))}[Qo("0xd")](){return this[Qo("0x12")]()[0]||null}[Qo("0x7")](){this[Qo("0x33")].change((t=>{for(const e of this[Qo("0x12")]())t[Qo("0x2c")](e)})),this[Qo("0x27")].clear()}[Qo("0x2c")](t){this._model[Qo("0x2e")]((e=>{e[Qo("0x2c")](t)})),this._markerNames[Qo("0x15")](t)}addRange(t){const e="suggestion:"+this[Qo("0x20")]+":"+this[Qo("0xc")]+":"+this.id+":"+this[Qo("0x16")].id+":"+Zo[Qo("0x18")]();this.addMarkerName(e),this._model[Qo("0x2e")]((n=>{n[Qo("0x2f")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x17")](t){for(const e of this[Qo("0x2")]())if(e[Qo("0x35")](t))return!0;return!1}[Qo("0x2")](){return this.getMarkers()[Qo("0x1")]((t=>t[Qo("0x3")]()))}[Qo("0x38")](){return this[Qo("0x2")]()[Qo("0x2d")](((t,e)=>[...t,...e[Qo("0x38")]()]),[])}[Qo("0xa")](){var t;return(null===(t=this.getFirstMarker())||void 0===t?void 0:t[Qo("0x3")]())||null}[Qo("0x8")](){const t=this[Qo("0x2")]();if(1!=t.length)return null;const e=t[0],n=e[Qo("0xe")].nodeAfter,o=e.end[Qo("0x37")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0x21")](){this[Qo("0x32")](this.getRanges(),this[Qo("0x25")],this.attributes),this[Qo("0x7")]()}discard(){this._onDiscard(this[Qo("0x2")](),this[Qo("0x25")],this[Qo("0x2b")]),this[Qo("0x7")]()}[Qo("0x30")](){const t=[];let e=this[Qo("0x10")];for(;e;)t.push(e),e=e.next;return t}setAttribute(t,e){const n=eo(this[Qo("0x2b")]);_o(n,t,e),Go(n,this.attributes)||(this[Qo("0x2b")]=n,this._onAttributesChange(n))}[Qo("0x31")](t){const e=eo(this[Qo("0x2b")]);qo(e,t),Go(e,this[Qo("0x2b")])||(this[Qo("0x2b")]=e,this[Qo("0x1a")](this.attributes))}[Qo("0x24")](){return{id:this.id,type:this[Qo("0xc")]?this[Qo("0x20")]+":"+this[Qo("0xc")]:this[Qo("0x20")],authorId:this[Qo("0x16")].id,createdAt:this[Qo("0x1e")],hasComments:this[Qo("0x1d")],data:this[Qo("0x25")],attributes:this.attributes}}static getMultiRangeId(){return(0,e.uid)()[Qo("0x13")](1,5)}}function Yo(t,e,n){const o=t.t;switch(e){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* change table properties":return o("*Format:* change table properties");case"*Format:* change table cell properties":return o("*Format:* change table cell properties");case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Format:* replace image URL":return o("*Format:* replace image URL");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set format to:* %0":return o("*Set format to:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return o({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return o({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return o({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);default:return e}}const ts=["REPLACE_TEXT","ELEMENT_SPACE","quantity","getFirstRange","pop","replace","addObject","getWalker","elementStart","deletion","$text","isInContent","indexOf","*Insert:* %0","end","checkChild","removeObject","previousSibling","_customCallbacks","EmptyContainer","insertion","nextSibling","_addDescriptionItems","element","_itemLabelsCallbacks","push","item","getItemLabel","_resolveDescriptionItems","text","add","normal","removeEmptyContainer","*Remove:* %0","$1 $2","isEmpty","set","addContainer","_locale","skip","elementEnd","_itemLabels","removeContainer","label","*Merge:* %0","*Split:* %0","isEqual","get","isObject","matchingCallback","Object","Container","type","start","registerDescriptionCallback","name","length","_schema","match","data","remove"];var es,ns;es=ts,ns=419,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("0x1a")]=[],this._itemLabels=new Map,this[os("0x20")]=[],this[os("0x4")]=t,this[os("0x2e")]=e}getDescriptions(t){const e=[];for(let n=0;n<t[os("0x3")];n++){const o=t[n];if(!o[os("0x13")])continue;let s=!1;for(const t of this[os("0x1a")]){const n=t(o);if(n){os("0x3c")in n&&e[os("0x21")](n),s=!0;break}}if(!s){this[os("0x1e")](e,o);const s=t[n+1];if(s&&!o[os("0xb")]()[os("0x16")][os("0x36")](s[os("0xb")]()[os("0x0")])){const t=e[e[os("0x3")]-1],n=os("0x1c")==o[os("0x3c")]?os("0x26"):"remove";t&&"text"==t[os("0x3c")]&&(t[n]+="\n")}}}return this[os("0x24")](e)}[os("0x1")](t){this._customCallbacks.push(t)}registerElementLabel(t,n,o=e.priorities[os("0x27")]){"function"==typeof t?(0,e.insertToPriorityArray)(this._itemLabelsCallbacks,{matchingCallback:t,label:n,priority:o}):this[os("0x31")][os("0x2c")](t,n)}[os("0x23")](t,e=1){let n;for(const e of this[os("0x20")])if(e[os("0x39")](t)){n=e[os("0x33")];break}return n||(n=this[os("0x31")][os("0x37")](t[os("0x2")])),n?n(e):1!==e?e+" "+t[os("0x2")]+"s":""+t.name}[os("0x1e")](t,e){const n=e.getFirstRange()[os("0xf")](),o=os("0x1c")==e[os("0x3c")]?os("0x26"):os("0x7");for(const e of n){const s=e[os("0x22")],r=t[t[os("0x3")]-1];if(s.is("$textProxy"))r&&r[os("0x3c")][os("0x14")]("Container")>-1&&t[os("0xc")](),r&&os("0x25")==r.type?r[o]+=s[os("0x6")]:t.push({type:os("0x25"),add:os("0x26")==o?s.data:"",remove:os("0x7")==o?s[os("0x6")]:""});else if(this[os("0x4")][os("0x38")](s)){const i=s;if(r&&r[os("0x3c")][os("0x14")]("Container")>-1&&t[os("0xc")](),os("0x30")==e[os("0x3c")])continue;r&&r[os("0x3c")]==o+os("0x3a")&&r[os("0x1f")][os("0x2")]==i[os("0x2")]?r[os("0xa")]++:t[os("0x21")]({type:o+os("0x3a"),element:i,quantity:1}),n[os("0x2f")]((t=>!("elementEnd"==t[os("0x3c")]&&t[os("0x22")]==s)))}else if(this[os("0x4")][os("0x17")](s,os("0x12"))||s.is(os("0x1f"),"softBreak")){const n=s;if(os("0x26")==o&&os("0x10")==e[os("0x3c")]||os("0x7")==o&&os("0x30")==e[os("0x3c")])continue;if(r&&-1==r[os("0x3c")][os("0x14")](os("0x3b"))){os("0x25")==r[os("0x3c")]&&(r[o]+="\n");continue}let i;if(i="add"==o?n[os("0x1d")]&&!this[os("0x4")][os("0x38")](n[os("0x1d")])?n.nextSibling:null:n[os("0x19")]&&!this[os("0x4")][os("0x38")](n[os("0x19")])?n[os("0x19")]:null,n.isEmpty||i&&i.isEmpty){const e=i&&i[os("0x2b")]?i:n;r&&r[os("0x3c")]==o+os("0x1b")&&r[os("0x1f")][os("0x2")]==e[os("0x2")]?r.quantity++:t[os("0x21")]({type:o+"EmptyContainer",element:e,quantity:1})}else t[os("0x21")]({type:o+os("0x3b"),element:n})}}}[os("0x24")](t){const e=this._locale,n=[];for(const o of t){switch(o[os("0x3c")]){case"text":if(o[os("0x26")]=o.add.replace(/(\S)\u000A+(\S)/g,"$1 $2")[os("0xd")](/\u000A/g,""),o.remove=o[os("0x7")][os("0xd")](/(\S)\u000A+(\S)/g,os("0x2a")).replace(/\u000A/g,""),""!=o[os("0x26")]&&""!=o[os("0x7")]){n[os("0x21")]({type:os("0xd"),content:Yo(e,os("0x8"),['"'+o[os("0x7")]+'"','"'+o[os("0x26")]+'"'])});continue}if(null!=o.add[os("0x5")](/^ +$/)){n[os("0x21")]({type:"insertion",content:Yo(e,os("0x15"),Yo(e,os("0x9"),o[os("0x26")].length))});continue}if(null!=o[os("0x7")][os("0x5")](/^ +$/)){n[os("0x21")]({type:os("0x11"),content:Yo(e,os("0x29"),Yo(e,"ELEMENT_SPACE",o.remove.length))});continue}if(""!=o[os("0x26")]){n[os("0x21")]({type:os("0x1c"),content:Yo(e,os("0x15"),'"'+o[os("0x26")]+'"')});continue}n[os("0x21")]({type:os("0x11"),content:Yo(e,os("0x29"),'"'+o[os("0x7")]+'"')});continue;case"addEmptyContainer":case os("0xe"):n.push({type:os("0x1c"),content:Yo(e,os("0x15"),this.getItemLabel(o.element,o[os("0xa")]))});continue;case os("0x28"):case os("0x18"):n[os("0x21")]({type:"deletion",content:Yo(e,os("0x29"),this[os("0x23")](o[os("0x1f")],o[os("0xa")]))});continue;case os("0x2d"):n.push({type:os("0x1c"),content:Yo(e,os("0x35"),this[os("0x23")](o[os("0x1f")],o[os("0xa")]))});continue;case os("0x32"):n.push({type:os("0x11"),content:Yo(e,os("0x34"),this[os("0x23")](o[os("0x1f")],o[os("0xa")]))});continue}n[os("0x21")](o)}return n}}const rs=["afterInit","contentLanguageDirection","commandParams","right","registerDescriptionCallback","editor","change","justify","model","TrackChangesEditing","getAttribute","value","*Format:* %0","from","FORMAT_JUSTIFY_TEXT","center","plugins","markBlockFormat","has","get","commandName","alignment","FORMAT_ALIGN_TO_LEFT","left","AlignmentEditing","checkAttribute","filter"];var is,xs;is=rs,xs=142,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x14")](){const t=this.editor,e=t.locale;if(!t[as("0x9")][as("0xb")](as("0x11")))return;const n=t[as("0x9")][as("0xc")](as("0x2"));n.enableCommand(as("0xe"),((e,o={})=>{let s=o[as("0x4")];o.value||(s="ltr"===t.locale[as("0x15")]?as("0x10"):as("0x17"));const r=Array[as("0x6")](this[as("0x19")][as("0x1")].document.selection.getSelectedBlocks())[as("0x13")]((t=>function(t,e,n){const o=t[as("0x3")](as("0xe"))||null;return e[as("0x12")](t,as("0xe"))&&n!=o}(t,this[as("0x19")][as("0x1")].schema,s)));t[as("0x1")][as("0x1a")]((()=>{for(const t of r)n[as("0xa")](t,{commandName:as("0xe"),commandParams:[{value:s}]})}))})),n._descriptionFactory[as("0x18")]((t=>{const{data:n}=t;if(n&&as("0xe")==n[as("0xd")]){const t=n[as("0x16")][0][as("0x4")];return{type:"format",content:Yo(e,as("0x5"),function(t){switch(t){case as("0x10"):return Yo(e,as("0xf"));case as("0x17"):return Yo(e,"FORMAT_ALIGN_TO_RIGHT");case as("0x8"):return Yo(e,"FORMAT_ALIGN_TO_CENTER");case as("0x0"):return Yo(e,as("0x7"))}}(t))}}}))}}const ls=["getCustomProperty","isLimit","getItems","hasAttribute","addClass","markerName","span","getAttribute","getWalker","listIndent","consumable","includes","schema","markerRange","element","isContent","createUIElement","ck-suggestion-marker--active","addHighlight","plugins","toViewElement","elementEnd","activeMarkers","mapper","insert","get","listItem","start","ck-suggestion-marker-","createRangeOn","type","name","nextSibling","previousPosition","model","push","writer","isBlock","toViewPosition"];var ds,us;ds=ls,us=393,function(t){for(;--t;)ds.push(ds.shift())}(++us);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e[gs("0x26")]())s[gs("0x0")](t)&&o[gs("0x20")](n[gs("0x1a")](s));return o}function fs(t){const e=[];if(t.is("element",gs("0x17"))){let n=t.nextSibling;for(;n&&n.is(gs("0xb"),gs("0x17"))&&n[gs("0x4")](gs("0x6"))>0;)e[gs("0x20")](n),n=n[gs("0x1d")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t[gs("0x10")][gs("0x16")]("TrackChangesEditing");return(s,r,i)=>{if(!i[gs("0x7")].test(r[gs("0xa")],s[gs("0x1c")]))return;const x=r[gs("0xa")][gs("0x5")](),a=r[gs("0xa")][gs("0x18")],c=t[gs("0x1f")][gs("0x9")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t.item;u=u||c[gs("0xc")](e);const n=i.mapper[gs("0x11")](e);if(n&&n[gs("0x24")](gs("0xf")))return;gs("0x12")==t[gs("0x1b")]&&c[gs("0x22")](e)&&!c[gs("0x25")](e)&&(e[gs("0x1d")]||a.isAtEnd?l&&l.parent==e||(l=e,m(t.previousPosition),g=!0):d=d||t[gs("0x1e")])}function m(t){const s=i[gs("0x21")][gs("0xd")](gs("0x3"),{class:gs("0x19")+e}),x=i[gs("0x14")][gs("0x23")](t);n&&o[gs("0x13")][gs("0x8")](r[gs("0x2")])&&i[gs("0x21")][gs("0x1")](gs("0xe"),s),i.writer[gs("0x15")](x,s),i[gs("0x14")].bindElementToMarker(s,r[gs("0x2")])}u||g||!d||m(d)}}const ps=["get","commandName","underline","*Format:* %0","FORMAT_BOLD","superscript","editor","TrackChangesEditing","subscript","selection","plugins","StrikethroughEditing","registerDescriptionCallback","FORMAT_CODE","bold","CodeEditing","FORMAT_SUPERSCRIPT","strikethrough","commands","SuperscriptEditing","ItalicEditing","FORMAT_ITALIC","code","forceValue","_descriptionFactory","getRanges","FORMAT_SUBSCRIPT","model","has","value","*Remove format:* %0","format"];var bs,Es;bs=ps,Es=100,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=["BoldEditing",_s("0x10"),"UnderlineEditing",_s("0xb"),_s("0x7"),"SubscriptEditing",_s("0xf")];class Cs extends t.Plugin{afterInit(){const t=this[_s("0x2")],e=t[_s("0x17")],n=t[_s("0x6")][_s("0x1c")](_s("0x3")),o=t.locale;for(const o of Ts){if(!t.plugins[_s("0x18")](o))continue;const s=o.slice(0,-7).toLowerCase(),r=t[_s("0xe")][_s("0x1c")](s);n.enableCommand(s,((t,o={})=>{const i=e.document[_s("0x5")];if(i.isCollapsed)return void t(o);const x=void 0!==o[_s("0x13")]?o[_s("0x13")]:!r[_s("0x19")];e.change((()=>{const t=Array.from(i[_s("0x15")]());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n.markInlineFormat(e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[_s("0x14")][_s("0x8")]((n=>{const{data:s}=n;if(s&&s[_s("0x1d")]===t)return s.commandParams[0][_s("0x13")]?{type:"format",content:Yo(o,_s("0x1f"),e)}:{type:_s("0x1b"),content:Yo(o,_s("0x1a"),e)}}))}s(_s("0xa"),Yo(o,_s("0x0"))),s("italic",Yo(o,_s("0x11"))),s(_s("0x1e"),Yo(o,"FORMAT_UNDERLINE")),s(_s("0x12"),Yo(o,_s("0x9"))),s(_s("0xd"),Yo(o,"FORMAT_STRIKETHROUGH")),s(_s("0x4"),Yo(o,_s("0x16"))),s(_s("0x1"),Yo(o,_s("0xc")))}}const ys=["blockQuote","document","locale","model","*Format:* %0","commands","_descriptionFactory","$root","checkChild","format","forceValue","markBlockFormat","name","get","editor","plugins","value","TrackChangesEditing","commandParams","has","parent","BlockQuoteEditing","filter","change","ELEMENT_BLOCK_QUOTE"];var ks,As;ks=ys,As=260,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{afterInit(){const t=this[vs("0x4")],e=t[vs("0x11")];if(!t[vs("0x5")][vs("0x9")](vs("0xb")))return;const n=t[vs("0x5")][vs("0x3")](vs("0x7")),o=this[vs("0x4")][vs("0x14")][vs("0x3")](vs("0xf"));n.enableCommand(vs("0xf"),((e,s={})=>{const r=this.editor.model[vs("0x10")].selection,i=s&&void 0!==s[vs("0x0")]?s[vs("0x0")]:!o[vs("0x6")];let x=[];if(i){const e=Array.from(r.getSelectedBlocks())[vs("0xc")]((t=>Ss(t)||function(t,e){const n=e.checkChild(t[vs("0xa")],vs("0xf")),o=e[vs("0x17")]([vs("0x16"),"blockQuote"],t);return n&&o}(t,this[vs("0x4")][vs("0x12")].schema)));x=S(e,t.model)}else{const e=Array.from(r.getSelectedBlocks())[vs("0xc")]((t=>Ss(t)));x=S(e,t[vs("0x12")])}t[vs("0x12")][vs("0xd")]((()=>{for(const t of x)n[vs("0x1")](t,{commandName:vs("0xf"),commandParams:[{forceValue:i}]})}))})),n[vs("0x15")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&vs("0xf")==n.commandName){const t=Yo(e,vs("0xe"));return n[vs("0x8")][0][vs("0x0")]?{type:vs("0x18"),content:Yo(e,vs("0x13"),t)}:{type:vs("0x18"),content:Yo(e,"*Remove format:* %0",t)}}}))}}function Ss(t){return vs("0xf")==t[vs("0xa")][vs("0x2")]}const Is=["get","ckbox","afterInit","plugins","TrackChangesEditing","enableCommand","commands"];var Ls,Ns;Ls=Is,Ns=130,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const ws=function(t,e){return Is[t-=0]};class Ms extends t.Plugin{[ws("0x5")](){const t=this.editor;t[ws("0x2")][ws("0x3")](ws("0x4"))&&t[ws("0x6")][ws("0x3")](ws("0x0"))[ws("0x1")](ws("0x4"))}}const Os=["locale","ELEMENT_CODE_BLOCK","parent","_descriptionFactory","filter","*Format:* %0","rootElement","format","codeBlock","TrackChangesEditing","get","find","checkChild","value","name","language","selection","has","languages","editor","getSelectedBlocks","registerDescriptionCallback","forceValue","indentCodeBlock","label","commandName","commandParams","outdentCodeBlock","change","afterInit","from","markBlockFormat","plugins","model","document","enableCommand","registerElementLabel"];var Fs,Ps;Fs=Os,Ps=155,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x16")](){const t=this[Ds("0xc")];if(!t[Ds("0x19")][Ds("0xa")]("CodeBlock"))return;const e=t[Ds("0x19")][Ds("0x3")](Ds("0x2")),n=t[Ds("0x1e")],o=t.config[Ds("0x3")](Ds("0x1"))[Ds("0xb")],s=t.commands[Ds("0x3")](Ds("0x1"));e[Ds("0x1c")](Ds("0x10")),e.enableCommand(Ds("0x14")),e[Ds("0x1c")](Ds("0x1"),((n,r={})=>{const i=t[Ds("0x1a")],x=t.model[Ds("0x1b")][Ds("0x9")],a=r&&void 0!==r[Ds("0xf")]?r[Ds("0xf")]:!s[Ds("0x6")];let c;r[Ds("0x8")]||(r.language=o[0][Ds("0x8")]),c=a?Array[Ds("0x17")](x[Ds("0xd")]())[Ds("0x22")]((t=>{return js(t)||(e=t,n=i.schema,!e.is(Ds("0x24"))&&!n.isLimit(e)&&n[Ds("0x5")](e[Ds("0x20")],Ds("0x1")));var e,n})):Array[Ds("0x17")](x[Ds("0xd")]())[Ds("0x22")]((t=>js(t)));const l=S(c,i);i[Ds("0x15")]((()=>{for(const t of l)e[Ds("0x18")](t,{commandName:Ds("0x1"),commandParams:[{...r,forceValue:a}],formatGroupId:"blockName"})}))})),e[Ds("0x21")][Ds("0x1d")]("codeBlock",(t=>Yo(n,Ds("0x1f"),t))),e[Ds("0x21")][Ds("0xe")]((t=>{const e=n.t,{type:s,data:r}=t;if("formatBlock"==s&&r&&Ds("0x1")==r[Ds("0x12")]){const t=r[Ds("0x13")][0].language,s=e(o[Ds("0x4")]((e=>e.language===t))[Ds("0x11")]);return r[Ds("0x13")][0].forceValue?{type:"format",content:Yo(n,Ds("0x23"),Yo(n,Ds("0x1f"),1)+" ("+s+")")}:{type:Ds("0x0"),content:Yo(n,"*Remove format:* %0",Yo(n,Ds("0x1f"),1))}}}))}}function js(t){return Ds("0x1")==t[Ds("0x7")]}const Us=["afterInit","addCommentThread","get","editor","CommentsEditing","TrackChangesEditing","has","enableCommand","plugins"];var Gs,Hs;Gs=Us,Hs=468,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const zs=function(t,e){return Us[t-=0]};class Ws extends t.Plugin{[zs("0x0")](){const t=this[zs("0x3")];t[zs("0x8")][zs("0x6")](zs("0x4"))&&t.plugins[zs("0x2")](zs("0x5"))[zs("0x7")](zs("0x1"))}}var Vs=n(181);const Ks=["deleteForward","unit","init","TrackChangesEditing","editor","uiElement","isCollapsed","markerName","requires","createRange","get","editing","selection","addMarker:suggestion:deletion","modifySelection","$graveyard","showSuggestionHighlights","enableCommand","batch","detach","mapper","downcastDispatcher","root","model","buffer","merge","createSelection","high","getFirstRange","remove","markerNameToElements","options","commands","end","lock","enqueueChange","unbindElementFromMarkerName","setSelection","start","bind","delete","plugins"];var qs,Xs;qs=Ks,Xs=212,function(t){for(;--t;)qs.push(qs.shift())}(++Xs);const $s=function(t,e){return Ks[t-=0]};class Js extends t.Plugin{static get[$s("0x6")](){return[Vs.Delete]}[$s("0x0")](){const t=this[$s("0x2")],e=t[$s("0x27")].get($s("0x1"));e[$s("0xf")]($s("0x26"));const n=t[$s("0x1e")][$s("0x8")]($s("0x28"));e[$s("0xf")]($s("0x28"),((e,o={})=>{const s=t[$s("0x15")][$s("0x18")](t[$s("0x15")].document[$s("0xa")]);s[$s("0x4")]&&t[$s("0x15")][$s("0xc")](s,{direction:"forward",unit:o[$s("0x29")]});const r=s[$s("0x1a")](),x=i.LiveRange.fromRange(r);let a;e(o),a=$s("0xd")==x[$s("0x14")].rootName?t.model[$s("0x7")](r[$s("0x24")]):t[$s("0x15")][$s("0x7")](x[$s("0x24")],x[$s("0x1f")]),x[$s("0x11")](),t[$s("0x15")][$s("0x21")](n[$s("0x16")][$s("0x10")],(t=>{n.buffer[$s("0x20")](),t[$s("0x23")](t[$s("0x7")](a[$s("0x1f")])),n[$s("0x16")].unlock()}))})),t[$s("0x9")].downcastDispatcher.on($s("0xb"),hs(t,$s("0x17")),{priority:$s("0x19")}),t.data[$s("0x13")].on($s("0xb"),((e,n,o)=>{o[$s("0x1d")][$s("0xe")]&&hs(t,"merge",{showActiveMarker:!1})[$s("0x25")](this)(e,n,o)}),{priority:$s("0x19")}),t.editing.downcastDispatcher.on("removeMarker:suggestion:deletion",((t,e,n)=>{const o=n[$s("0x12")][$s("0x1c")](e[$s("0x5")]);if(o)for(const t of o)t.is($s("0x3"))&&(n[$s("0x12")][$s("0x22")](t,e[$s("0x5")]),n.writer[$s("0x1b")](t))}),{priority:$s("0x19")})}}const Qs=["isObject","execute","push","from","nodeAfter","splitListItemBefore","ELEMENT_NUMBERED_LIST","getSelectedBlocks","formatBlock","locale","*Change to:* %0","forceValue","outdentList","_suggestionFactory","getAttribute","slice","bulletedList","numberedList","selection","ELEMENT_LIST_ITEM","model","accept","*Format:* insert into %0","mergeListItemBackward","commandParams","listType","enableCommand","change","expandListBlocksToCompleteList","splitListItemAfter","*Outdent:* %0","_descriptionFactory","after","markBlockFormat","plugins","next","end","previousSibling","deletion","add","DocumentListEditing","createPositionAt","createRange","markMultiRangeBlockFormat","has","listItemId","map","document","containsItem","afterInit","multipleBlocks","value","length","getFirstRange","editor","nextSibling","format","indentList","start","get","*Format:* remove from %0","listIndent","findIndex","TrackChangesEditing","before","commandName","registerDescriptionCallback","*Indent:* %0","setSelection","documentList","commands","fromRange","refresh","getRanges","detach"];var Zs,Ys;Zs=Qs,Ys=182,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0x11")](){const t=this[tr("0x16")];if(!t[tr("0x2")][tr("0xc")](tr("0x8")))return;const e=t[tr("0x34")],n=t[tr("0x2")][tr("0x1b")](tr("0x1f")),o=t[tr("0x2")][tr("0x1b")]("DocumentListUtils");function s(e){return()=>{const s=t.commands.get(e);let r=Array.from(t[tr("0x3f")][tr("0xf")][tr("0x3d")][tr("0x32")]());if(a(e)){r=o[tr("0x47")](r);const t=[];for(const e of r)o.isFirstBlockOfListItem(e)&&t.push(e);r=t}t[tr("0x3f")][tr("0x46")]((()=>{n[tr("0xb")](r,{commandName:e,commandParams:[{forceValue:!s[tr("0x13")]}],formatGroupId:tr("0x44")},[],tr("0x25"))}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0x2e")](t);const n=e[tr("0x1e")]((t=>!t.hasAttribute(tr("0xd"))));return n>-1&&(e=e[tr("0x3a")](0,n)),e}(t[tr("0x3f")][tr("0xf")][tr("0x3d")][tr("0x32")]()),s=o[o[tr("0x14")]-1],r=t[tr("0x3f")].schema[tr("0x2b")](s)?tr("0x0"):tr("0x4"),i=t[tr("0x3f")].createRange(t.model[tr("0x9")](o[0],tr("0x20")),t.model[tr("0x9")](s,r));t.model[tr("0x46")]((()=>{n[tr("0x1")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x44")},function(t){const e=new Set;for(const n of t){let t=n[tr("0x17")];for(;t&&t[tr("0x39")](tr("0x1d"))>n.getAttribute(tr("0x1d"));)e[tr("0x7")](t),t=t[tr("0x17")]}return Array[tr("0x2e")](e)}(o))}))}}function x(e){return()=>{const o=t.model[tr("0xf")].selection[tr("0x32")]()[tr("0x3")]()[tr("0x13")],s=t[tr("0x3f")].createPositionAt(o,"before"),r=t[tr("0x3f")].createPositionAt(o,0),i=t[tr("0x3f")][tr("0xa")](s,r);t.model[tr("0x46")]((()=>{n[tr("0x1")](i,{commandName:e,commandParams:[],formatGroupId:"listType"})}))}}function a(e){const n=t[tr("0x26")].get(tr("0x3b"))[tr("0x13")],o=t[tr("0x26")][tr("0x1b")](tr("0x3c")).value;return tr("0x3c")===e?n:o}n[tr("0x45")](tr("0x3c"),s(tr("0x3c"))),n[tr("0x45")](tr("0x3b"),s(tr("0x3b"))),n[tr("0x45")](tr("0x19"),r(tr("0x19"))),n[tr("0x45")]("outdentList",r(tr("0x37"))),n.enableCommand(tr("0x48"),x(tr("0x48"))),n[tr("0x45")](tr("0x30"),x(tr("0x30"))),n[tr("0x4a")].registerElementLabel((function(e){const n=!t[tr("0x3f")].schema.isObject(e),o=e[tr("0x5")],s=e.nextSibling,r=e[tr("0x39")](tr("0xd")),i=!o||o[tr("0x39")](tr("0xd"))!==r,x=!s||s[tr("0x39")](tr("0xd"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,tr("0x3e"),t))),n[tr("0x4a")][tr("0x22")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x21")]){case"bulletedList":r=n[tr("0x43")][0][tr("0x36")],i=a(n[tr("0x21")]),o=r?tr("0x41"):"*Format:* remove from %0",i&&(o=tr("0x35")),s={type:tr("0x18"),content:Yo(e,o,Yo(e,"ELEMENT_BULLETED_LIST"))};break;case tr("0x3c"):r=n[tr("0x43")][0][tr("0x36")],i=a(n[tr("0x21")]),o=tr(r?"0x41":"0x1c"),i&&(o=tr("0x35")),s={type:tr("0x18"),content:Yo(e,o,Yo(e,tr("0x31")))};break;case"indentList":o=tr("0x23"),s={type:tr("0x18"),content:Yo(e,o,Yo(e,tr("0x3e")))};break;case"outdentList":o=function(t){const e=t[tr("0x15")]();let n=e[tr("0x1a")][tr("0x2f")];for(;n&&e[tr("0x10")](n);){if(n[tr("0x39")](tr("0x1d"))>0)return!1;n=n[tr("0x17")]}return!0}(t)?Yo(e,tr("0x1c"),Yo(e,"ELEMENT_"+t[tr("0x15")]()[tr("0x1a")].nodeAfter[tr("0x39")](tr("0x44")).toUpperCase()+"_LIST")):Yo(e,tr("0x49"),Yo(e,tr("0x3e"))),s={type:tr("0x18"),content:o};break;case tr("0x42"):case"mergeListItemForward":!1===n[tr("0x12")]&&(o="*Merge:* %0",s={type:tr("0x6"),content:Yo(e,o,Yo(e,tr("0x3e")))})}return s})),n[tr("0x38")].registerCustomCallback(tr("0x33"),tr("0x25"),tr("0x40"),(function(e,n){const o=[];for(let n of e)n[tr("0x1a")][tr("0x2f")]===n[tr("0x4")].parent&&(n=t[tr("0x3f")][tr("0xa")](t[tr("0x3f")][tr("0x9")](n[tr("0x1a")].nodeAfter,0))),o[tr("0x2d")](n);t[tr("0x3f")].change((e=>{const s=t.model.document[tr("0x3d")],r=Array[tr("0x2e")](s[tr("0x29")]())[tr("0xe")]((t=>i.LiveRange[tr("0x27")](t)));e[tr("0x24")](o),t.commands[tr("0x1b")](n[tr("0x21")])[tr("0x28")](),n.commandParams[tr("0x2d")]({forceDefaultExecution:!0}),t[tr("0x2c")](n.commandName,...n[tr("0x43")]),e[tr("0x24")](r);for(const t of r)t[tr("0x2a")]()}))}))}}var nr=n(331);const or=["selection","hasClass","writer","getFirstRange","addMarker:suggestion:insertion","split","high","enter","TrackChangesEditing","end","remove","model","ck-suggestion-marker-split","createRange","data","mapper","get","editor","downcastDispatcher","bind","afterExecute","enterBlock","setSelection","createPositionAt","fromRange","markerNameToElements","parent","document","init","editing","unbindElementFromMarkerName","getFirstPosition","enableCommand","markerName"];var sr,rr;sr=or,rr=457,function(t){for(;--t;)sr.push(sr.shift())}(++rr);const ir=function(t,e){return or[t-=0]};class xr extends t.Plugin{static get requires(){return[nr.Enter]}[ir("0xd")](){const t=this[ir("0x2")],e=t.plugins.get(ir("0x1b")),n=t.commands[ir("0x1")]("enter");e[ir("0x11")](ir("0x1a"),(()=>{t[ir("0x1e")].change((o=>{const s=t.model[ir("0xc")][ir("0x13")],r=s[ir("0x10")](),x=i.LiveRange[ir("0x9")](s[ir("0x16")]());if(n[ir("0x6")](o)){const n=t.model[ir("0x8")](r[ir("0xb")].nextSibling,0),s=o[ir("0x20")](r,n);e.markInsertion(s)}else o[ir("0x7")](o[ir("0x20")](x[ir("0x1c")]));x.detach(),n.fire(ir("0x5"),{writer:o})}))})),t[ir("0xe")][ir("0x3")].on("addMarker:suggestion:insertion",hs(t,ir("0x18")),{priority:ir("0x19")}),t.editing.downcastDispatcher.on("removeMarker:suggestion:insertion",((t,e,n)=>{const o=n[ir("0x0")][ir("0xa")](e[ir("0x12")]);if(o)for(const t of o)t[ir("0x14")](ir("0x1f"))&&(n[ir("0x0")][ir("0xf")](t,e[ir("0x12")]),n[ir("0x15")][ir("0x1d")](t))}),{priority:ir("0x19")}),t[ir("0x21")].downcastDispatcher.on(ir("0x17"),((e,n,o)=>{o.options.showSuggestionHighlights&&hs(t,ir("0x18"),{showActiveMarker:!1})[ir("0x4")](this)(e,n,o)}),{priority:"high"})}}const ar=["markers","handleFindCommand","replaceAll","has","getIntersection","plugins","createPositionAt","suggestion:deletion","_isInDeletionRange","TrackChangesEditing","model","FindAndReplaceUtils","getMarkersGroup","editor","end","start","bind","enableCommand","filter","createRange","replace","FindAndReplaceEditing","afterInit","findNext","findByTextCallback","findPrevious"];var cr,lr;cr=ar,lr=472,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return ar[t-=0]};class ur extends t.Plugin{[dr("0x12")](){if(!this[dr("0x9")][dr("0x1")][dr("0x19")](dr("0x11")))return;const t=this[dr("0x9")][dr("0x1")].get(dr("0x5"));t[dr("0xd")]("find",this[dr("0x17")][dr("0xc")](this)),t[dr("0xd")](dr("0x13")),t.enableCommand(dr("0x15")),t.enableCommand(dr("0x10")),t[dr("0xd")](dr("0x18"))}[dr("0x17")](t,e,n={}){const o=this[dr("0x9")][dr("0x1")].get(dr("0x7"));void 0!==n&&t((t=>("string"==typeof e?o[dr("0x14")](e,n):e)(t)[dr("0xe")]((e=>!1===this._isInDeletionRange(e,t.item)))),n)}[dr("0x4")](t,e){const n=this.editor[dr("0x6")][dr("0xf")](this[dr("0x9")][dr("0x6")].createPositionAt(e,t[dr("0xb")]),this.editor[dr("0x6")][dr("0x2")](e,t[dr("0xa")]));for(const t of this[dr("0x9")][dr("0x6")][dr("0x16")][dr("0x8")](dr("0x3")))if(null!==n[dr("0x0")](t.getRange()))return!0;return!1}}const gr=["toLowerCase","fontFamily","format","label","plugins","selection","*Set font family:* %0","fontColor","fontColor.colors","TrackChangesEditing","document","get","fontBackgroundColor","*Set font size:* %0","FontSize","fontSize","*Reset font background color*","_descriptionFactory","markInlineFormat","_enableCommand","fontBackgroundColor.colors","from","value","enableCommand","change","find","commandParams","editor","isCollapsed","fontSize.options","model","trim","commandName","config","title","getRanges","*Set font background color:* %0","FontSizeEditing"];var mr,fr;mr=gr,fr=288,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:hr("0xf"),commandName:hr("0x1f")},{pluginName:"FontFamilyEditing",commandName:"fontFamily"},{pluginName:"FontColorEditing",commandName:hr("0x17")},{pluginName:"FontBackgroundColorEditing",commandName:hr("0x1c")}];class br extends t.Plugin{afterInit(){const t=this.editor.locale;for(const{pluginName:t,commandName:e}of pr)this[hr("0x5")][hr("0x14")].has(t)&&this._enableCommand(e);this[hr("0x5")][hr("0x14")].get(hr("0x19"))[hr("0x21")].registerDescriptionCallback((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0x1f")==o[hr("0xa")]){const e=o[hr("0x4")][0][hr("0x0")];if(e){const o=n(this[hr("0x5")][hr("0x14")][hr("0x1b")](hr("0x1e")).normalizeSizeOptions(this[hr("0x5")][hr("0xb")][hr("0x1b")](hr("0x7")))[hr("0x3")]((t=>t[hr("0x8")]==e))[hr("0xc")]).toLowerCase();return{type:hr("0x12"),content:Yo(t,hr("0x1d"),o)}}return{type:"format",content:Yo(t,"*Reset font size*")}}if(hr("0x11")==o.commandName){const e=o.commandParams[0][hr("0x0")];return e?{type:hr("0x12"),content:Yo(t,hr("0x16"),e)}:{type:hr("0x12"),content:Yo(t,"*Reset font family*")}}if(hr("0x17")==o[hr("0xa")]){const e=o.commandParams[0].value;if(e){const o=(0,s.normalizeColorOptions)(this.editor[hr("0xb")][hr("0x1b")](hr("0x18")))[hr("0x3")]((t=>t[hr("0x8")]==e));let r=e,i="";return o&&(r=o[hr("0x13")],i=n(r)[hr("0x10")]()),{type:hr("0x12"),content:Yo(t,"*Set font color:* %0",i)[hr("0x9")](),color:{value:e,title:i||r}}}return{type:hr("0x12"),content:Yo(t,"*Reset font color*")}}if(hr("0x1c")==o[hr("0xa")]){const e=o[hr("0x4")][0][hr("0x0")];if(e){const o=(0,s.normalizeColorOptions)(this.editor[hr("0xb")][hr("0x1b")](hr("0x24")))[hr("0x3")]((t=>t[hr("0x8")]==e));let r=e,i="";return o&&(r=o.label,i=n(r)[hr("0x10")]()),{type:"format",content:Yo(t,hr("0xe"),i)[hr("0x9")](),color:{value:e,title:i||r}}}return{type:"format",content:Yo(t,hr("0x20"))}}}}))}[hr("0x23")](t){const e=this.editor;e.plugins.get(hr("0x19"))[hr("0x1")](t,((n,o={})=>{const s=e[hr("0x8")][hr("0x1a")][hr("0x15")],r=o[hr("0x0")];s[hr("0x6")]?n(o):e.model[hr("0x2")]((()=>{const n=Array[hr("0x25")](s[hr("0xd")]());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0x8")]);for(const o of n)e[hr("0x14")].get(hr("0x19"))[hr("0x22")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["keys","fontColor","slice","fontSize","commands","afterInit","title","fontSize.options","forward","createRange","copyFormat","commandParams","format","markInlineFormat","label","getAttributes","join","isFormatting","fontBackgroundColor","config","fontColor.colors","backward","commandName","enableCommand","isCollapsed","isBlock","normalizeSizeOptions","toLowerCase","getRanges","registerDescriptionCallback","getAttributeProperties","push","length","plugins","editor","get","word","pasteFormat","createSelection","from","split","model","TrackChangesEditing","find","entries","schema","locale"];var _r,Tr;_r=Er,Tr=118,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0x1c")](){const t=this[Cr("0xa")],n=t[Cr("0x11")],o=n.document.selection,s=t[Cr("0x9")][Cr("0xb")](Cr("0x12")),r=t[Cr("0x16")],i=t[Cr("0x1b")][Cr("0xb")](Cr("0x21")),x=t[Cr("0x1b")][Cr("0xb")]("pasteFormat");i&&x&&(s.enableCommand(Cr("0xd"),((t,r={})=>{const i=r;n.change((()=>{const t=Array[Cr("0xf")](o[Cr("0x4")]()),r=o[Cr("0x0")]?[kr(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t[Cr("0x26")]()){const t=e[Cr("0x6")](n);t&&t[Cr("0x28")]&&(yield n)}}(t,n));for(const e of t[Cr("0x4")]())for(const t of e.getItems())!n[Cr("0x1")](t)&&o(t)&&(yield t);for(const e of t.getSelectedBlocks())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x15")]))||0!==Object[Cr("0x17")](i)[Cr("0x8")])for(const t of r)s[Cr("0x24")](t,{commandName:Cr("0xd"),commandParams:[i]})}))})),s._descriptionFactory[Cr("0x5")]((e=>{const{data:n}=e;if(n&&Cr("0xd")===n[Cr("0x2d")]){const e=[],o=n[Cr("0x22")][0];for(const[n,s]of Object[Cr("0x14")](o))e[Cr("0x7")](Ar(t,n,s));return e[Cr("0x8")]?{type:Cr("0x23"),content:Yo(r,"*Set format to:* %0",e[Cr("0x27")](", "))}:{type:Cr("0x23"),content:Yo(r,"*Remove all formatting*")}}})),t[Cr("0x9")].get("TrackChangesEditing")[Cr("0x2e")](Cr("0x21")))}}function kr(t,e){const n=t[Cr("0xe")](e);t.modifySelection(n,{unit:Cr("0xc"),direction:Cr("0x2c")});const o=n.getFirstPosition();t.modifySelection(n,{unit:"word",direction:Cr("0x1f")});const s=n.getLastPosition();return t[Cr("0x20")](o,s)}function Ar(t,e,n){const o=t[Cr("0x16")].t,r=e[Cr("0x10")](/(?=[A-Z])/).join(" "),i=o(r.charAt(0).toUpperCase()+r[Cr("0x19")](1))[Cr("0x3")]();if("boolean"==typeof n)return i;if(Cr("0x18")===e||Cr("0x29")===e){const e=(0,s.normalizeColorOptions)(t.config[Cr("0xb")](Cr("0x2b"))).find((t=>t[Cr("0x11")]==n));return i+" ("+(e?o(e[Cr("0x25")])[Cr("0x3")]():n)+")"}if(Cr("0x1a")===e&&isNaN(parseFloat(n))){const e=t.plugins[Cr("0xb")]("FontSize")[Cr("0x2")](t[Cr("0x2a")][Cr("0xb")](Cr("0x1e")))[Cr("0x13")]((t=>t[Cr("0x11")]==n));return i+" ("+(e?o(e[Cr("0x1d")])[Cr("0x3")]():n)+")"}return i+" ("+n+")"}const vr=["schema","afterInit","name","change","document","*Change to:* %0","formatBlock","_descriptionFactory","parent","format","plugins","title","match","get","registerDescriptionCallback","find","checkChild","heading","registerElementLabel","editor","value","model","heading.options","getSelectedBlocks","isObject","ELEMENT_HEADING","filter","from","ELEMENT_HEADING_CUSTOM"];var Rr,Sr;Rr=vr,Sr=360,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const Ir=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Ir("0x12")](){const t=this.editor,e=t.locale,n=t.config[Ir("0x1")](Ir("0xa"));if(!t.plugins.has("HeadingEditing"))return;const o=t[Ir("0x1b")][Ir("0x1")]("TrackChangesEditing");o.enableCommand(Ir("0x5"),((e,n)=>{const s=n[Ir("0x8")],r=Array[Ir("0xf")](this[Ir("0x7")][Ir("0x9")][Ir("0x15")].selection[Ir("0xb")]())[Ir("0xe")]((t=>{return e=t,n=s,(o=this[Ir("0x7")][Ir("0x9")][Ir("0x11")])[Ir("0x4")](e[Ir("0x19")],n)&&!o[Ir("0xc")](e)&&e[Ir("0x13")]!=n;var e,n,o}));t[Ir("0x9")][Ir("0x14")]((()=>{for(const t of r)o.markBlockFormat(t,{commandName:Ir("0x5"),commandParams:[n],formatGroupId:"blockName"},fs(t))}))}));for(const t of n)"paragraph"!=t[Ir("0x9")]&&o[Ir("0x18")][Ir("0x6")](t[Ir("0x9")],(e=>{const n=Nr(t[Ir("0x9")]);return null!==n?s(e,n):r(e,t.title)}));function s(t,n){return Yo(e,Ir("0xd"),[t,n])}function r(t,n){return Yo(e,Ir("0x10"),[t,n])}o._descriptionFactory[Ir("0x2")]((t=>{const{type:o,data:i}=t;if(Ir("0x17")==o&&i&&"heading"==i.commandName){const t=i.commandParams[0][Ir("0x8")],o=Nr(t);if(null!==o)return{type:Ir("0x1a"),content:Yo(e,Ir("0x16"),s(1,o))};const x=n[Ir("0x3")]((e=>e[Ir("0x9")]===t))[Ir("0x1c")];return{type:Ir("0x1a"),content:Yo(e,Ir("0x16"),r(1,x))}}}))}}function Nr(t){const e=t[Ir("0x0")](/^heading(\d+)$/);return e?e[1]:null}const wr=["change","title","find","getRanges","plugins","formatInline","push","afterInit","commandParams","createRange","getFirstPosition","backward","_descriptionFactory","value","highlight","format","get","FORMAT_HIGHLIGHT","toLowerCase","item","hasAttribute","isCollapsed","highlight.options","markInlineFormat","getAttribute","*Remove highlight*","model","locale","selection","editor","enableCommand","commandName"];var Mr,Or;Mr=wr,Or=274,function(t){for(;--t;)Mr.push(Mr.shift())}(++Or);const Fr=function(t,e){return wr[t-=0]};class Pr extends t.Plugin{[Fr("0x15")](){const t=this[Fr("0xb")];if(!t[Fr("0x12")].has("HighlightEditing"))return;const e=t.plugins[Fr("0x1e")]("TrackChangesEditing");e[Fr("0xc")]("highlight",((n,o={})=>{const s=t.model.document[Fr("0xa")],r=s[Fr("0x6")](Fr("0x1c"));let i=o[Fr("0x1b")],x=[];if(s[Fr("0x3")]){const e=s[Fr("0x18")]();if(!s[Fr("0x2")](Fr("0x1c")))return void n(o);{const n=t=>t[Fr("0x1")][Fr("0x6")](Fr("0x1c"))===r,o=e.getLastMatchingPosition(n,{direction:Fr("0x19")}),s=e.getLastMatchingPosition(n);x=[t[Fr("0x8")][Fr("0x17")](o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0x11")]())i?x[Fr("0x14")](e):x.push(...ms(Fr("0x1c"),e,t.model));t[Fr("0x8")][Fr("0xe")]((()=>{for(const t of x)e[Fr("0x5")](t,{commandName:Fr("0x1c"),commandParams:[{value:i}]})}))}));const n=t[Fr("0x9")];e[Fr("0x1a")].registerDescriptionCallback((e=>{const{type:o,data:s}=e;if(Fr("0x13")==o&&s&&"highlight"==s[Fr("0xd")]){const e=n.t,o=s[Fr("0x16")][0][Fr("0x1b")];if(o){const s=t.config[Fr("0x1e")](Fr("0x4"))[Fr("0x10")]((t=>t[Fr("0x8")]==o)),r=e(s[Fr("0xf")])[Fr("0x0")]();return{type:Fr("0x1d"),content:Yo(n,"*Set highlight:* %0",r),color:{value:s.color,title:s.title}}}return{type:Fr("0x1d"),content:Yo(n,Fr("0x7"),Yo(n,Fr("0x1f")))}}}))}}const Dr=["createEmptyElement","plugins","addClass","ck-horizontal-line","has","afterInit","locale","editor","elementToStructure","enableCommand","HorizontalLineEditing","ELEMENT_HORIZONTAL_LINE","createContainerElement","horizontalLine","TrackChangesEditing","div","insert","registerElementLabel","createPositionAt","conversion","high","for","_descriptionFactory"];var Br,jr;Br=Dr,jr=491,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0x14")](){const t=this[Ur("0x16")];if(!t.plugins[Ur("0x13")](Ur("0x2")))return;t[Ur("0x10")].get(Ur("0x6"))[Ur("0x1")](Ur("0x5"));const e=t.plugins.get("TrackChangesEditing"),n=t[Ur("0x15")];e[Ur("0xe")][Ur("0x9")](Ur("0x5"),(t=>Yo(n,Ur("0x3"),t))),t[Ur("0xb")][Ur("0xd")]("dataDowncast")[Ur("0x0")]({model:Ur("0x5"),view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return null;const o=e[Ur("0x4")](Ur("0x7")),s=e[Ur("0xf")]("hr");return e[Ur("0x11")](Ur("0x12"),o),e[Ur("0x8")](e[Ur("0xa")](o,0),s),o},converterPriority:Ur("0xc")})}}const Hr=["has","element","editing","view","afterInit","rawHtml","ELEMENT_HTML_EMBED","HtmlEmbed","registerElementLabel","get","plugins","selection","locale","htmlEmbed","getSelectedElement","_descriptionFactory","editor","cancel","getCustomProperty","value","*Change %0 content*","rawHtmlApi","model","format","TrackChangesEditing","change","document"];var zr,Wr;zr=Hr,Wr=262,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0xc")](){const t=this[Vr("0x18")];if(!t[Vr("0x12")][Vr("0x8")](Vr("0xf")))return;const e=t[Vr("0x12")][Vr("0x11")](Vr("0x5")),n=t[Vr("0x14")],o=t[Vr("0xa")][Vr("0xb")].document[Vr("0x13")];e[Vr("0x17")][Vr("0x10")](Vr("0xd"),(t=>Yo(n,Vr("0xe"),t))),t[Vr("0x12")][Vr("0x11")](Vr("0x5")).enableCommand(Vr("0x15"),((n,s)=>{const r=t[Vr("0x3")],i=r[Vr("0x7")][Vr("0x13")];r[Vr("0x6")]((()=>{const t=function(t){const e=t.getSelectedElement();return e&&e.is(Vr("0x9"),"rawHtml")?t[Vr("0x16")]():null}(i);if(!t)return void n(null);const r=t.getAttribute(Vr("0x0"))||"";void 0!==s&&s!==r&&(e.markBlockFormat(t,{commandName:Vr("0x15"),commandParams:[s]}),o.getSelectedElement()[Vr("0x1a")](Vr("0x2"))[Vr("0x19")]())}))})),e[Vr("0x17")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&Vr("0x15")==e.commandName){const t=Yo(n,Vr("0xe"));return{type:Vr("0x4"),content:Yo(n,Vr("0x1"),t)}}}))}}const qr=["getCaptionFromImageModelElement","ImageTextAlternativeEditing","registerCustomCallback","selection","*Format:* %0","ImageResize","getSuggestions","ImageStyleEditing","toNext","removeObject","hasAttribute","imageBlock","nodeAfter","name","next","createRangeOn","model","isBlockImage","fromPosition","registerElementLabel","suggestion","shouldConvertImageType","_splitMarkerName","markBlockFormat","markInsertion","commandParams","from","filter","imageStylePostApply","document","ELEMENT_IMAGE","side","toLowerCase","start","previous","title","_descriptionFactory","accept","TrackChangesEditing","Users","forceDefaultExecution","getClosestSelectedImageElement","imageStylePreApply","*Set image text alternative:* %0","toPrevious","getSuggestionCallback","getSuggestion","commands","plugins","_suggestionFactory","getAttribute","schema","imageCaption","isInContent","type","end","addObject","backward","length","formatBlock","author","refresh","uploadImage","newValue","differ","alt","registerDescriptionCallback","registerPostFixer","insertion","join","locale","find","imageInline","has","resizeImage","width","ImageUtils","get","change","getNearestSelectionRange","commandReversedParams","discard","getFirstRange","isBefore","ImageCaptionEditing","value","commandName","markInlineFormat","forEach","detach","format","isInlineImage","isCollapsed","imageTypeInline","isOwn","caption","markDeletion","ImageUploadEditing","chain","imageTextAlternative","subType","ImageEditing","element","discardSuggestion","imageStyle","insertImage","_findSuggestions","isEqual","enableCommand","formatInline","getContainedElement","createRange","*Set image width:* %0","findIndex","convertInlineImageToBlock","convertBlockImageToInline","getChangedMarkers"];var Xr,$r;Xr=qr,$r=213,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{afterInit(){const t=this.editor;if(!t[Jr("0x45")][Jr("0x5e")](Jr("0x5")))return;const n=t[Jr("0x45")][Jr("0x62")](Jr("0x3b")),o=t[Jr("0x45")].get(Jr("0x61")),s={},r=t[Jr("0x5b")];if(n[Jr("0xc")](Jr("0x9")),n._descriptionFactory[Jr("0x28")](Jr("0x20"),(t=>Yo(r,Jr("0x33"),t))),n._descriptionFactory[Jr("0x28")](Jr("0x5d"),(t=>Yo(r,"ELEMENT_INLINE_IMAGE",t))),n._descriptionFactory[Jr("0x28")](Jr("0x74"),(()=>Yo(r,"ELEMENT_CAPTION"))),t[Jr("0x45")][Jr("0x5e")](Jr("0x1"))&&n[Jr("0xc")](Jr("0x53")),t[Jr("0x45")][Jr("0x5e")]("ImageBlockEditing")&&t[Jr("0x45")].has("ImageInlineEditing")&&(n.enableCommand(Jr("0x72"),((e,s)=>{const r=o.getClosestSelectedImageElement(t[Jr("0x25")].document.selection);t.model[Jr("0x63")]((()=>{n[Jr("0x2c")](r,{commandName:Jr("0x72"),commandParams:[s]},[],Jr("0x13"))}))})),n[Jr("0xc")]("imageTypeBlock",((e,s)=>{t[Jr("0x25")].change((r=>{let x=o[Jr("0x3e")](t[Jr("0x25")][Jr("0x32")][Jr("0x18")]),a=r.createRangeOn(x);const c=i.LivePosition[Jr("0x27")](a[Jr("0x36")],Jr("0x41")),l=i.LivePosition[Jr("0x27")](a[Jr("0x4c")],Jr("0x1d"));n[Jr("0x3d")]((()=>e(s))),x=o[Jr("0x3e")](t[Jr("0x25")][Jr("0x32")].selection),a=r.createRangeOn(x);const d=r[Jr("0xf")](c,l);c.detach(),l[Jr("0x6e")](),n[Jr("0x2c")](x,{commandName:Jr("0x72"),commandParams:[]},[],Jr("0x12")),d[Jr("0x36")][Jr("0x68")](a[Jr("0x36")])&&n[Jr("0x2d")](r[Jr("0xf")](d[Jr("0x36")],a[Jr("0x36")]),"convertInlineImageToBlock"),a[Jr("0x4c")][Jr("0x68")](d[Jr("0x4c")])&&n[Jr("0x2d")](r[Jr("0xf")](a[Jr("0x4c")],d[Jr("0x4c")]),Jr("0x12"))}))})),n[Jr("0x46")][Jr("0x17")]("formatBlock",Jr("0x12"),Jr("0x5a"),(()=>{})),n._suggestionFactory[Jr("0x17")](Jr("0x50"),Jr("0x12"),"accept",(()=>{})),n._suggestionFactory.registerCustomCallback(Jr("0x50"),"convertInlineImageToBlock",Jr("0x66"),n._suggestionFactory[Jr("0x42")](Jr("0x50"),"",Jr("0x3a"))),n[Jr("0x46")][Jr("0x17")](Jr("0x59"),Jr("0x12"),Jr("0x5a"),(()=>{})),n[Jr("0x46")][Jr("0x17")](Jr("0x59"),Jr("0x12"),Jr("0x66"),(([e])=>{const o=n[Jr("0x46")].getSuggestionCallback(Jr("0x59"),"",Jr("0x66"));let s=e[Jr("0x36")],r=e.end;const i=t.model.schema[Jr("0x64")](s,Jr("0x4e")),x=t[Jr("0x25")][Jr("0x48")][Jr("0x64")](r,"forward");i[Jr("0x71")]&&(s=i[Jr("0x36")]),x[Jr("0x71")]&&(r=x[Jr("0x4c")]),o([t[Jr("0x25")][Jr("0xf")](s,r)])})),n._suggestionFactory[Jr("0x17")](Jr("0x50"),Jr("0x12"),"chain",c),n._suggestionFactory[Jr("0x17")]("insertion",Jr("0x12"),"chain",c)),t[Jr("0x45")][Jr("0x5e")](Jr("0x69"))&&(n[Jr("0xc")]("toggleImageCaption",((e,s)=>{const r=t[Jr("0x45")][Jr("0x62")]("ImageCaptionUtils");let i=o[Jr("0x3e")](t[Jr("0x25")].document.selection),x=r[Jr("0x15")](i);t[Jr("0x25")][Jr("0x63")]((()=>{if(x)return void n[Jr("0x0")](t[Jr("0x25")][Jr("0x24")](x));const a=o[Jr("0x26")](i);e(s),i=o[Jr("0x3e")](t[Jr("0x25")][Jr("0x32")][Jr("0x18")]),x=r.getCaptionFromImageModelElement(i),n[Jr("0x2d")](t[Jr("0x25")][Jr("0x24")](x),a?null:"imageCaption")}))})),n[Jr("0x46")].registerCustomCallback("insertion",Jr("0x49"),"chain",c)),t.plugins[Jr("0x5e")](Jr("0x1c"))){n[Jr("0xc")](Jr("0x8"),((s,r)=>{const i=t.plugins.get(Jr("0x3c")).me,x=t[Jr("0x44")][Jr("0x62")](Jr("0x8"));let a=o.getClosestSelectedImageElement(t.model[Jr("0x32")][Jr("0x18")]),c=t[Jr("0x25")].createRangeOn(a),l=x[Jr("0x6a")];if(l==r.value)return;const d={commandName:Jr("0x8"),commandParams:[r],formatGroupId:(0,e.uid)()};t[Jr("0x25")][Jr("0x63")]((()=>{if(n[Jr("0x1b")]()[Jr("0x30")]((t=>t[Jr("0x4a")]&&i==t[Jr("0x51")]&&("formatBlock"==t.type||"formatInline"==t[Jr("0x4b")])&&(Jr("0x3f")==t[Jr("0x4")]||Jr("0x31")==t[Jr("0x4")])&&t[Jr("0x67")]()[Jr("0xb")](c)))[Jr("0x6d")]((t=>n.discardSuggestion(t.head))),a=o[Jr("0x3e")](t[Jr("0x25")].document[Jr("0x18")]),c=t.model[Jr("0x24")](a),x.refresh(),t.commands[Jr("0x62")](Jr("0x72")).refresh(),t[Jr("0x44")][Jr("0x62")]("imageTypeBlock")[Jr("0x52")](),l=x[Jr("0x6a")],l!=r[Jr("0x6a")])return o[Jr("0x70")](a)&&x[Jr("0x2a")](r[Jr("0x6a")],a)?(s(r),a=o[Jr("0x3e")](t[Jr("0x25")][Jr("0x32")][Jr("0x18")]),void n[Jr("0x2c")](a,{...d,commandReversedParams:[{value:l||null}]},[],Jr("0x3f"))):void(o.isBlockImage(a)?n[Jr("0x2c")](a,d,[],Jr("0x31")):n[Jr("0x6c")](c,d,Jr("0x31")))}))}));for(const e of t.plugins[Jr("0x62")](Jr("0x1c")).normalizedStyles)s[e[Jr("0x22")]]=e[Jr("0x38")][Jr("0x35")]();n._suggestionFactory[Jr("0x17")](Jr("0x50"),Jr("0x3f"),Jr("0x5a"),(()=>{})),n[Jr("0x46")][Jr("0x17")](Jr("0x50"),Jr("0x31"),Jr("0x5a"),(()=>{})),n[Jr("0x46")][Jr("0x17")](Jr("0xd"),Jr("0x31"),Jr("0x5a"),(()=>{})),n[Jr("0x46")][Jr("0x17")]("formatBlock",Jr("0x3f"),Jr("0x3a"),(()=>{})),n[Jr("0x46")][Jr("0x17")](Jr("0x50"),Jr("0x3f"),Jr("0x66"),((t,e)=>{n[Jr("0x46")][Jr("0x42")](Jr("0x50"),"","accept")(t,{commandName:e[Jr("0x6b")],commandParams:e[Jr("0x65")]})})),n[Jr("0x46")].registerCustomCallback(Jr("0x50"),Jr("0x3f"),Jr("0x2"),c)}const x=[{type:"formatBlock",subType:Jr("0x3f")},{type:Jr("0x59"),subType:Jr("0x49")},{type:Jr("0x50"),subType:"convertInlineImageToBlock"},{type:Jr("0x59"),subType:Jr("0x12")}];function a(t,e){const s=x[Jr("0x11")]((({type:e,subType:n})=>t[Jr("0x4b")]==e&&t[Jr("0x4")]==n)),r=x[Jr("0x11")]((({type:t,subType:n})=>e[Jr("0x4b")]==t&&e[Jr("0x4")]==n));if(s<0||r<0)return!1;const i=t[Jr("0x67")](),a=e.getFirstRange();if((0==s||1==s)&&2==r&&i.isIntersecting(a))return!0;if(2==s&&3==r){const t=n[Jr("0xa")](i,Jr("0x59")).filter((({suggestion:t,meta:e})=>e[Jr("0x73")]&&Jr("0x12")==t[Jr("0x4")]));if(t.length>1&&a[Jr("0x4c")][Jr("0xb")](i[Jr("0x36")]))return!0;if(1==t[Jr("0x4f")]&&(i[Jr("0x36")][Jr("0xb")](a[Jr("0x4c")])||i[Jr("0x4c")].isEqual(a.start)))return!0}if(3==s&&3==r&&i.start.isBefore(a[Jr("0x36")])){const t=i[Jr("0x4c")][Jr("0x21")],e=a[Jr("0x36")].nodeBefore;return o[Jr("0x26")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Jr("0x25")].document[Jr("0x58")]((()=>{let e=!1;const s=Array[Jr("0x2f")](t[Jr("0x25")][Jr("0x32")][Jr("0x55")][Jr("0x14")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Jr("0x2b")](t);if(Jr("0x29")==s&&n.hasSuggestion(a)){if(Jr("0x50")==i&&(Jr("0x3f")==x||Jr("0x31")==x)){const t=n.getSuggestion(a);if(r.newRange){const s=t.getFirstRange()[Jr("0xe")]();if(o[Jr("0x26")](s))continue;n[Jr("0x7")](t),e=!0}}if(Jr("0x59")==i&&"imageCaption"==x&&!r.newRange){const t=n[Jr("0x43")](a);t[Jr("0x23")]&&t[Jr("0x23")].isInContent&&(n[Jr("0x7")](t[Jr("0x23")]),e=!0)}}}return e})),t.plugins[Jr("0x5e")](Jr("0x1a"))&&n.enableCommand(Jr("0x5f"),((e,s)=>{const r=o[Jr("0x3e")](t[Jr("0x25")][Jr("0x32")][Jr("0x18")]);r[Jr("0x47")](Jr("0x60"))!=s[Jr("0x60")]&&t.model[Jr("0x63")]((()=>{n[Jr("0x2c")](r,{commandName:Jr("0x5f"),commandParams:[s]})}))})),t[Jr("0x45")].has(Jr("0x16"))&&n.enableCommand(Jr("0x3"),((e,s)=>{const r=o[Jr("0x3e")](t[Jr("0x25")][Jr("0x32")][Jr("0x18")]);(r[Jr("0x1f")](Jr("0x56"))?r.getAttribute(Jr("0x56")):"")!=s[Jr("0x54")]&&t[Jr("0x25")][Jr("0x63")]((()=>{n[Jr("0x2c")](r,{commandName:Jr("0x3"),commandParams:[s]})}))})),n._descriptionFactory[Jr("0x57")]((t=>{if(x[Jr("0x5c")]((({type:e,subType:n})=>t[Jr("0x4b")]==e&&t[Jr("0x4")]==n)))return t[Jr("0x37")]?{}:void 0})),n[Jr("0x39")][Jr("0x57")]((t=>{if(Jr("0x59")==t[Jr("0x4b")]||"deletion"==t[Jr("0x4b")]){const e=t.getContainedElement();if(e&&e.is(Jr("0x6"),Jr("0x74")))return{type:Jr("0x59")==t[Jr("0x4b")]?Jr("0x4d"):Jr("0x1e"),element:e,quantity:1}}})),n[Jr("0x39")][Jr("0x57")]((t=>Jr("0x50")==t[Jr("0x4b")]&&"convertInlineImageToBlock"==t.subType?{type:Jr("0x6f"),content:"Inline image to block image"}:Jr("0x50")==t[Jr("0x4b")]&&Jr("0x13")==t[Jr("0x4")]?{type:Jr("0x6f"),content:"Block image to inline image"}:void 0)),n[Jr("0x39")].registerDescriptionCallback((t=>{const{data:e}=t;if(e){if(Jr("0x8")==e.commandName){const t=e.commandParams[0][Jr("0x6a")];return n=Jr("0x34")===t?Yo(r,"FORMAT_SIDE_IMAGE"):s[t]||t,{type:Jr("0x6f"),content:Yo(r,Jr("0x19"),n)}}if(Jr("0x3")==e.commandName){const t=e.commandParams[0][Jr("0x54")];return t?{type:Jr("0x6f"),content:Yo(r,Jr("0x40"),'"'+t+'"')}:{type:Jr("0x6f"),content:Yo(r,"*Remove image text alternative*")}}if(Jr("0x5f")==e[Jr("0x6b")]){const t=e[Jr("0x2e")][0][Jr("0x60")];return t?{type:Jr("0x6f"),content:Yo(r,Jr("0x10"),t)}:{type:"format",content:Yo(r,"*Reset image width*")}}}var n}))}}const Zr=["model","handleSuggestionDescription","subType","commandName","getSelectedElement","accept","formatBlock","locale","getContainedElement","handleReplaceImageCommand","getSuggestions","getSuggestionCallback","registerCustomCallback","document","_descriptionFactory","markBlockFormat","replaceImageSource","discard","TrackChangesEditing","Users","_suggestionFactory","getAttribute","editor","plugins","source","has","registerDescriptionCallback","ImageEditing","format","data","get"];var Yr,ti;Yr=Zr,ti=154,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{afterInit(){if(!this.editor[ei("0x18")][ei("0x1a")](ei("0x1c")))return;const t=this.editor[ei("0x18")][ei("0x0")]("TrackChangesEditing");t.enableCommand("replaceImageSource",((t,e)=>this.handleReplaceImageCommand(t,e))),t._suggestionFactory[ei("0xd")](ei("0x7"),ei("0x11"),"accept",t[ei("0x15")].getSuggestionCallback(ei("0x7"),null,"discard")),t[ei("0x15")].registerCustomCallback(ei("0x7"),ei("0x11"),ei("0x12"),t._suggestionFactory[ei("0xc")]("formatBlock",null,ei("0x6"))),t[ei("0xf")][ei("0x1b")]((t=>this.handleSuggestionDescription(t)))}[ei("0xa")](t,e){const n=this[ei("0x17")][ei("0x18")][ei("0x0")](ei("0x13")),o=this[ei("0x17")][ei("0x1")][ei("0xe")].selection[ei("0x5")]();this[ei("0x17")][ei("0x1")].change((()=>{let s=o[ei("0x16")]("src");const r=this.editor.plugins.get(ei("0x14")).me;for(const t of n[ei("0xb")]({skipNotAttached:!0})){const e=t[ei("0x9")]();if(ei("0x11")===t[ei("0x3")]&&e===o){t.author!==r&&t[ei("0x12")](),s=t[ei("0x1e")].commandParams[0][ei("0x19")];break}}t(e),n[ei("0x10")](o,{commandName:ei("0x11"),commandParams:[{source:s}]},[],"replaceImageSource")}))}[ei("0x2")](t){const{data:e}=t;if(e&&ei("0x11")===e[ei("0x4")]){const t="*Format:* replace image URL";return{type:ei("0x1d"),content:Yo(this.editor[ei("0x8")],t)}}}}const oi=["_trackChangesValueDuringImport","dataInsert","collaboration_features","lowest","importWord","get","commands","plugins","forEach","enableCommand","listenTo","value","editor","execute","track_changes","_handleImportedData","afterInit","TrackChangesEditing","_trackChangesExecuted"];var si,ri;si=oi,ri=306,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{constructor(t){super(t),this[ii("0x11")]=!1,this[ii("0x10")]=!1}[ii("0xe")](){const t=this.editor,e=t[ii("0x4")][ii("0x3")](ii("0x2")),n=t[ii("0x4")][ii("0x3")]("trackChanges");e&&(e.on(ii("0xb"),((t,[,e])=>{this[ii("0x11")]=n[ii("0x9")],e[ii("0x0")][ii("0xc")]=!this[ii("0x11")]}),{priority:"high"}),this[ii("0x8")](e,ii("0x12"),this[ii("0xd")].bind(this)),this[ii("0x8")](e,"dataInsert",(()=>{this[ii("0x10")]&&(n.execute(),this._trackChangesExecuted=!1)}),{priority:ii("0x1")}),t[ii("0x5")].get(ii("0xf"))[ii("0x7")](ii("0x2")))}_handleImportedData(t,e){const{suggestions:n}=e,o=this[ii("0xa")][ii("0x4")].get("trackChanges"),s=o[ii("0x9")];this[ii("0x11")]!==s&&(o.execute(),this[ii("0x10")]=!0),n&&n[ii("0x6")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this.editor.plugins[ii("0x3")]("Users").me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0x2")}}};this.editor[ii("0x5")][ii("0x3")]("TrackChangesEditing")._setSuggestionData(s)}))}}const ai=["_descriptionFactory","IndentEditing","filter","getItems","change","registerDescriptionCallback","locale","editor","markBlockFormat","enableCommand","commandName","*Indent:* %0","plugins","from","selection","blockIndent","format","model","outdentBlock","getItemLabel","*Outdent:* %0","indentBlock","document","outdent","checkAttribute","schema"];var ci,li;ci=ai,li=265,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{afterInit(){const t=this[di("0x2")],e=t[di("0x7")].get("TrackChangesEditing");t.plugins.has(di("0x16"))&&(e[di("0x4")]("indent"),e.enableCommand(di("0x12")));const n=t[di("0x1")];if(t[di("0x7")].has("IndentBlock")){for(const n of[di("0x10"),di("0xd")])e.enableCommand(n,(()=>{const o=Array[di("0x8")](this.editor[di("0xc")][di("0x11")][di("0x9")].getSelectedBlocks())[di("0x17")]((t=>this.editor.model[di("0x14")][di("0x13")](t,di("0xa"))));t.model[di("0x19")]((()=>{for(const t of o)e[di("0x3")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:di("0x10")})}))}));e[di("0x15")][di("0x0")]((t=>{const{data:o}=t;if(!o)return;if(di("0x10")!=o[di("0x5")]&&"outdentBlock"!=o[di("0x5")])return;const s=t[di("0x18")]()[0],r=e[di("0x15")][di("0xe")](s);return"indentBlock"==o[di("0x5")]?{type:di("0xb"),content:Yo(n,di("0x6"),r)}:di("0xd")==o[di("0x5")]?{type:di("0xb"),content:Yo(n,di("0xf"),r)}:void 0}))}}}var gi,mi,fi=["requires","init","TrackChangesEditing","input"];gi=fi,mi=203,function(t){for(;--t;)gi.push(gi.shift())}(++mi);var hi=function(t,e){return fi[t-=0]};class pi extends t.Plugin{static get[hi("0x1")](){return[Vs.Input]}[hi("0x2")](){this.editor.plugins.get(hi("0x3")).enableCommand(hi("0x0"))}}const bi=["getAttribute","commandName","hasAttribute","unlink","TrackChangesEditing","model","document","getRanges","afterInit","format","getFirstRange","plugins","change","isCollapsed","markInlineFormat","registerDescriptionCallback","editor","get","_descriptionFactory","*Set link:* %0","LinkEditing","commandParams","link","enableCommand","selection","linkHref","*Remove link*"];var Ei,_i;Ei=bi,_i=461,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{[Ti("0x6")](){const t=this[Ti("0xe")];if(!t[Ti("0x9")].has(Ti("0x12")))return;const e=t[Ti("0x9")][Ti("0xf")](Ti("0x2"));e[Ti("0x15")]("link",((n,o)=>{const s=t[Ti("0x3")][Ti("0x4")][Ti("0x16")];let r=[];if(s[Ti("0xb")]){if(!s[Ti("0x0")](Ti("0x17")))return void n(o);{const e=(0,Vs.findAttributeRange)(s.getFirstPosition(),Ti("0x17"),s[Ti("0x19")](Ti("0x17")),t[Ti("0x3")]);r=[e]}}else r=Array.from(s[Ti("0x5")]());t[Ti("0x3")].change((()=>{for(const t of r)e[Ti("0xc")](t,{commandName:Ti("0x14"),commandParams:[o]})}))})),e.enableCommand(Ti("0x1"),(()=>{const n=this.editor.model,o=n[Ti("0x4")].selection;n[Ti("0xa")]((()=>{let n=[];n=o[Ti("0xb")]?[(0,Vs.findAttributeRange)(o.getFirstPosition(),Ti("0x17"),o.getAttribute(Ti("0x17")),t[Ti("0x3")])]:ms(Ti("0x17"),o[Ti("0x8")](),t[Ti("0x3")]);for(const t of n)e.markInlineFormat(t,{commandName:Ti("0x1"),commandParams:[]})}))})),e[Ti("0x10")][Ti("0xd")]((e=>{const{data:n}=e,o=t.locale;if(n){if(Ti("0x14")==n[Ti("0x1a")]){const t=n[Ti("0x13")][0];return{type:"format",content:Yo(o,Ti("0x11"),'"'+t+'"')}}return Ti("0x1")==n[Ti("0x1a")]?{type:Ti("0x7"),content:Yo(o,Ti("0x18"))}:void 0}}))}}const yi=["plugins","document","listType","outdentList","replace","end","*Check item*","indentList","format","previousSibling","*Indent:* %0","isObject","ELEMENT_LIST_ITEM","todoListChecked","findIndex","before","has","todoList","selection","slice","from","_descriptionFactory","markBlockFormat","schema","value","model","filter","checkTodoList","getAttribute","*Uncheck item*","TrackChangesEditing","nextSibling","createRange","numberedList","name","afterInit","listIndent","commandName","length","commandParams","add","commands","ELEMENT_NUMBERED_LIST","checkChild","ListEditing","element","numbered","enableCommand","ELEMENT_TODO_LIST","push","paragraph","createPositionAt","bulletedList","locale","*Change to:* %0","getSelectedBlocks","ELEMENT_BULLETED_LIST","registerDescriptionCallback","listItem","*Outdent:* %0","parent","_selectedElements"];var ki,Ai;ki=yi,Ai=185,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0x24")](){const t=this.editor,e=t[vi("0x36")];if(!t[vi("0x1")][vi("0x11")](vi("0x2d")))return;const n=t[vi("0x1")].get(vi("0x1f")),o=t[vi("0x1")][vi("0x11")]("TodoListEditing");function s(e){return()=>{const o=t[vi("0x1a")][vi("0x2")][vi("0x13")],s=t[vi("0x2a")].get(e);if(s.value)return void t.execute(vi("0x33"),{});const r=e[vi("0x14")](0,-4),i=function(t,e,n){let o=Array[vi("0x15")](t)[vi("0x1b")]((t=>{return e=t,(o=n)[vi("0x2c")](e[vi("0x3d")],"listItem")&&!o[vi("0xc")](e);var e,o}));o=o[vi("0x1b")]((t=>!t.is(vi("0x2e"),vi("0x3b"))||t[vi("0x1d")](vi("0x3"))!=e));const s=new Set;for(const t of o)t.is(vi("0x2e"),vi("0x3b"))?s[vi("0x29")](Si(t)):s[vi("0x29")](t);return Array.from(s)}(o[vi("0x38")](),r,t[vi("0x1a")][vi("0x18")]);t[vi("0x1a")].change((()=>{for(const t of i)n[vi("0x17")](t,{commandName:e,commandParams:[{forceValue:!s[vi("0x19")]}],formatGroupId:"blockName"},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[vi("0x15")](t);const n=e[vi("0xf")]((t=>"listItem"!=t[vi("0x23")]));return n>-1&&(e=e[vi("0x14")](0,n)),e}(t.model.document[vi("0x13")][vi("0x38")]()),s=t[vi("0x1a")][vi("0x21")](t[vi("0x1a")][vi("0x34")](o[0],vi("0x10")),t[vi("0x1a")][vi("0x34")](o[o[vi("0x27")]-1],vi("0x6")));t[vi("0x1a")].change((()=>{n[vi("0x17")](s,{commandName:e,commandParams:[],formatGroupId:"listIndent"},function(t){const e=new Set;for(const n of t){let t=n[vi("0x20")];for(;t&&t[vi("0x1d")](vi("0x25"))>n[vi("0x1d")](vi("0x25"));)e[vi("0x29")](t),t=t[vi("0x20")]}return Array.from(e)}(o))}))}}n.enableCommand("numberedList",s(vi("0x22"))),n[vi("0x30")](vi("0x35"),s(vi("0x35"))),o&&n[vi("0x30")]("todoList",s(vi("0x12"))),n[vi("0x30")]("indentList",r(vi("0x8"))),n[vi("0x30")](vi("0x4"),r(vi("0x4"))),o&&n[vi("0x30")](vi("0x1c"),(()=>{const e=t.commands.get(vi("0x1c")),o=Array[vi("0x15")](e[vi("0x0")]);o[vi("0x1b")]((t=>t[vi("0x1d")](vi("0xe"))!=e[vi("0x19")])),t[vi("0x1a")].change((()=>{for(const t of o)n.markBlockFormat(t,{commandName:vi("0x1c"),commandParams:[{forceValue:!e[vi("0x19")]}]})}))})),n[vi("0x16")].registerElementLabel(vi("0x3b"),(t=>Yo(e,vi("0xd"),t))),n._descriptionFactory[vi("0x3a")]((t=>{const{data:n}=t;if(n){if(vi("0x22")==n[vi("0x26")]||vi("0x35")==n[vi("0x26")]||vi("0x12")==n[vi("0x26")])switch(n[vi("0x26")][vi("0x5")]("List","")){case"bulleted":return o(Yo(e,vi("0x39")));case vi("0x2f"):return o(Yo(e,vi("0x2b")));case"todo":return o(Yo(e,vi("0x31")))}if("indentList"==n.commandName)return{type:"format",content:Yo(e,vi("0xb"),Yo(e,"ELEMENT_LIST_ITEM"))};if(vi("0x4")==n[vi("0x26")])return{type:vi("0x9"),content:Yo(e,vi("0x3c"),Yo(e,vi("0xd")))};if(vi("0x1c")==n.commandName)return n[vi("0x28")][0].forceValue?{type:vi("0x9"),content:Yo(e,vi("0x7"))}:{type:"format",content:Yo(e,vi("0x1e"))}}function o(t){return{type:vi("0x9"),content:Yo(e,vi("0x37"),t)}}}))}}function Si(t){const e=t[vi("0x1d")](vi("0x25"));if(0==e)return t;let n=t;for(;t[vi("0xa")]&&t[vi("0xa")].is(vi("0x2e"),vi("0x3b"));){const o=t.previousSibling[vi("0x1d")](vi("0x25"));if(o==e)n=t[vi("0xa")];else if(o<e)break;t=t[vi("0xa")]}return n}function Ii(t){const e=[];if(t.is(vi("0x2e"),vi("0x3b"))&&t[vi("0x1d")](vi("0x25"))>0){let n=t.nextSibling;for(;n&&vi("0x3b")==n[vi("0x23")]&&n.getAttribute("listIndent")==t.getAttribute(vi("0x25"));)e[vi("0x32")](n),n=n[vi("0x20")]}return e}const Li=["styles","_getSuggestionBlocksForListStyle","markMultiRangeBlockFormat","handleListStartCommand","getSelectedBlocks","getAttribute","has","createRange","getSiblingNodes","toUpperCase","getFirstPosition","startIndex","format","config","unshift","commandName","plugins","model","bind","listStart","handleDescriptions","backward","replace","reversed","TrackChangesEditing","length","forward","locale","_getTranslationKeyForListStyle","handleListReversedCommand","_getSuggestionBlocks","filter","handleListStyleCommand","flat","parent","afterInit","get","push","*Format:* set start index to %0","createPositionAt","*Format:* set order to regular","*Change to:* %0","change","ELEMENT_","numbered","listType","commandParams","_LIST_","document","element","selection","editor","map","ListUtils","listStyle","getListTypeFromListStyleType","getLastPosition","from","before","listItem","listReversed","enableCommand"];var Ni,wi;Ni=Li,wi=420,function(t){for(;--t;)Ni.push(Ni.shift())}(++wi);const Mi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[Mi("0x31")](){if(!this[Mi("0x3")].plugins[Mi("0x14")]("ListPropertiesEditing"))return;const t=this[Mi("0x3")][Mi("0x1b")][Mi("0x32")]("list.properties"),e=this[Mi("0x3")][Mi("0x1e")].get(Mi("0x26"));t[Mi("0xe")]&&e[Mi("0xd")](Mi("0x6"),this.handleListStyleCommand[Mi("0x20")](this)),t.reversed&&e.enableCommand(Mi("0xc"),this.handleListReversedCommand.bind(this)),t.startIndex&&e[Mi("0xd")](Mi("0x21"),this[Mi("0x11")][Mi("0x20")](this)),e._descriptionFactory.registerDescriptionCallback(this[Mi("0x22")].bind(this))}[Mi("0x2e")](t,e={}){const n=this.editor[Mi("0x1e")][Mi("0x32")]("TrackChangesEditing"),o=this[Mi("0xf")]();this[Mi("0x3")].model[Mi("0x38")]((()=>{n[Mi("0x10")](o,{commandName:Mi("0x6"),commandParams:[{type:e.type}],formatGroupId:Mi("0x6")})}))}[Mi("0x2b")](t,e={}){const n=this[Mi("0x3")][Mi("0x1e")][Mi("0x32")](Mi("0x26")),o=this._getSuggestionBlocks((t=>t.is(Mi("0x1"),"listItem")&&Mi("0x3a")===t[Mi("0x13")]("listType")));if(o.length<1)return;const s=o[Mi("0x4")]((t=>this[Mi("0x3")][Mi("0x1f")].createRange(this.editor[Mi("0x1f")][Mi("0x35")](t,Mi("0xa")),this[Mi("0x3")][Mi("0x1f")].createPositionAt(t,0))));this[Mi("0x3")].model[Mi("0x38")]((()=>{n[Mi("0x10")](s,{commandName:Mi("0xc"),commandParams:[{reversed:e[Mi("0x25")]}],formatGroupId:Mi("0xc")})}))}handleListStartCommand(t,e={}){const n=this.editor[Mi("0x1e")][Mi("0x32")](Mi("0x26")),o=this[Mi("0x2c")]((t=>t.is(Mi("0x1"),Mi("0xb"))&&Mi("0x3a")===t[Mi("0x13")](Mi("0x3b"))));if(o[Mi("0x27")]<1)return;const s=o[Mi("0x4")]((t=>this[Mi("0x3")][Mi("0x1f")][Mi("0x15")](this[Mi("0x3")].model[Mi("0x35")](t,"before"),this[Mi("0x3")][Mi("0x1f")][Mi("0x35")](t,0))));this.editor.model[Mi("0x38")]((()=>{n[Mi("0x10")](s,{commandName:Mi("0x21"),commandParams:[{startIndex:e[Mi("0x19")]}],formatGroupId:Mi("0x21")})}))}[Mi("0x22")](t){const e=this[Mi("0x3")][Mi("0x29")],{data:n}=t;if(!n)return;let o,s;switch(n[Mi("0x1d")]){case Mi("0x6"):o=Mi("0x37"),s={type:Mi("0x1a"),content:Yo(e,o,Yo(e,this[Mi("0x2a")](n.commandParams[0].type)))};break;case"listReversed":o=n[Mi("0x3c")][0][Mi("0x25")]?"*Format:* set order to reversed":Mi("0x36"),s={type:Mi("0x1a"),content:Yo(e,o)};break;case Mi("0x21"):o=Mi("0x34"),s={type:Mi("0x1a"),content:Yo(e,o,n[Mi("0x3c")][0].startIndex)}}return s}[Mi("0xf")](){var t,e,n,o;const s=this[Mi("0x3")][Mi("0x1e")][Mi("0x32")](Mi("0x5"));let r=Array[Mi("0x9")](this.editor[Mi("0x1f")][Mi("0x0")][Mi("0x2")].getSelectedBlocks());return(null===(t=r[0])||void 0===t?void 0:t.is(Mi("0x1"),"listItem"))&&r[Mi("0x1c")](...s[Mi("0x16")](this[Mi("0x3")].model.document[Mi("0x2")][Mi("0x18")](),Mi("0x23"))),(null===(e=r[r[Mi("0x27")]-1])||void 0===e?void 0:e.is(Mi("0x1"),"listItem"))&&r[Mi("0x33")](...s[Mi("0x16")](this[Mi("0x3")][Mi("0x1f")][Mi("0x0")][Mi("0x2")][Mi("0x8")](),Mi("0x28"))),r=[...new Set(r)],(null===(o=null===(n=this[Mi("0x3")][Mi("0x1f")].document[Mi("0x2")][Mi("0x18")]())||void 0===n?void 0:n[Mi("0x30")])||void 0===o?void 0:o.is("element",Mi("0xb")))&&(r=r.filter((t=>t.is(Mi("0x1"),Mi("0xb"))))),r}[Mi("0x2c")](t){const e=this[Mi("0x3")].plugins[Mi("0x32")](Mi("0x5"));let n=Array.from(this[Mi("0x3")][Mi("0x1f")][Mi("0x0")][Mi("0x2")][Mi("0x12")]())[Mi("0x2d")](t)[Mi("0x4")]((t=>{const n=this.editor.model[Mi("0x35")](t,0);return[...e[Mi("0x16")](n,Mi("0x23")),...e.getSiblingNodes(n,Mi("0x28"))]}))[Mi("0x2f")]();return n=[...new Set(n)],n}[Mi("0x2a")](t){return Mi("0x39")+this.editor[Mi("0x1e")].get("ListUtils")[Mi("0x7")](t)[Mi("0x17")]()+Mi("0x3d")+t[Mi("0x17")]()[Mi("0x24")](/-/g,"_")}}const Fi=["get","dataDowncast","afterInit","locale","showSuggestionHighlights","downcastDispatcher","elementToElement","div","_descriptionFactory","plugins","has","data","media","mediaEmbed","for","editor","conversion","attribute:url:media","createEmptyElement"];var Pi,Di;Pi=Fi,Di=210,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0x1")](){const t=this[Bi("0xe")];if(!t[Bi("0x8")][Bi("0x9")]("MediaEmbedEditing"))return;const e=t.plugins[Bi("0x12")]("TrackChangesEditing"),n=t[Bi("0x2")];e.enableCommand(Bi("0xc")),e[Bi("0x7")].registerElementLabel(Bi("0xb"),(t=>Yo(n,"ELEMENT_MEDIA",t))),t[Bi("0xf")][Bi("0xd")](Bi("0x0"))[Bi("0x5")]({model:Bi("0xb"),view:(t,{writer:e,options:n})=>{if(n[Bi("0x3")])return e[Bi("0x11")](Bi("0x6"))},converterPriority:"high"}),t[Bi("0xa")][Bi("0x4")].on(Bi("0x10"),((t,e,n)=>{n.options[Bi("0x3")]&&t.stop()}),{priority:"high"})}}const Ui=["afterInit","mention","has","plugins","MentionEditing"];var Gi,Hi;Gi=Ui,Hi=462,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{[zi("0x3")](){const t=this.editor;t[zi("0x1")][zi("0x0")](zi("0x2"))&&t[zi("0x1")].get("TrackChangesEditing").enableCommand(zi("0x4"))}}const Vi=["editor","TrackChangesEditing","has","locale","plugins","ELEMENT_PAGE_BREAK","PageBreakEditing","registerElementLabel","enableCommand","_descriptionFactory","pageBreak","get"];var Ki,qi;Ki=Vi,qi=239,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{afterInit(){const t=this[Xi("0x1")];if(!t.plugins[Xi("0x3")](Xi("0x7")))return;t[Xi("0x5")][Xi("0x0")](Xi("0x2"))[Xi("0x9")](Xi("0xb"));const e=t[Xi("0x5")][Xi("0x0")](Xi("0x2")),n=t[Xi("0x4")];e[Xi("0xa")][Xi("0x8")](Xi("0xb"),(t=>Yo(n,Xi("0x6"),t)))}}const Ji=["markerName","schema","selection","insertParagraph","addMarker:suggestion:insertion","consume","filter","isObject","isTouching","model","isBlock","format","downcastDispatcher","data","type","*Change to:* %0","options","name","plugins","writer","span","end","Paragraph","bindElementToMarker","ck-suggestion-marker--active","includes","document","insert","editing","showSuggestionHighlights","get","TrackChangesEditing","blockName","isLimit","_descriptionFactory","change","from","toViewPosition","registerDescriptionCallback","$text","highest","consumable","mapper","markBlockFormat","paragraph","registerElementLabel","*Insert:* %0","commandName","enableCommand","getItemLabel","editor","nodeAfter","markerRange","getFirstRange","ELEMENT_PARAGRAPH","insertion","afterInit","checkChild"];var Qi,Zi;Qi=Ji,Zi=443,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0x13")](){const t=this[Yi("0xd")];if(!t[Yi("0x27")].has(Yi("0x2b")))return;const e=t.locale,n=t[Yi("0x27")][Yi("0x33")](Yi("0x34"));n[Yi("0x37")][Yi("0x8")]("paragraph",(t=>Yo(e,Yi("0x11"),t))),n[Yi("0xb")](Yi("0x7"),((e,o={})=>{const s=t.model[Yi("0x2f")],r=o[Yi("0x17")]||s[Yi("0x17")],i=Array[Yi("0x39")](r.getSelectedBlocks())[Yi("0x1b")]((t=>{return e=t,(n=this.editor[Yi("0x1e")][Yi("0x16")])[Yi("0x14")](e.parent,Yi("0x7"))&&!n[Yi("0x1c")](e)&&Yi("0x7")!=e[Yi("0x26")];var e,n}));t[Yi("0x1e")][Yi("0x38")]((()=>{for(const t of i)n[Yi("0x6")](t,{commandName:Yi("0x7"),commandParams:[],formatGroupId:Yi("0x35")},fs(t))}))})),n[Yi("0x37")][Yi("0x1")]((t=>{const{data:n}=t;if(n&&Yi("0x7")==n[Yi("0xa")])return{type:Yi("0x20"),content:Yo(e,Yi("0x24"),Yo(e,Yi("0x11")))}})),n[Yi("0xb")](Yi("0x18")),t[Yi("0x31")][Yi("0x21")].on(Yi("0x19"),ex(t),{priority:Yi("0x3")}),t[Yi("0x22")][Yi("0x21")].on(Yi("0x19"),((e,n,o)=>{o[Yi("0x25")][Yi("0x32")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:"highest"});const o=n[Yi("0x37")];o.registerDescriptionCallback((n=>{if(Yi("0x12")!==n[Yi("0x23")])return;const{start:s,end:r}=n[Yi("0x10")]();if(!s[Yi("0x1d")](r)||!s.nodeAfter)return;const i=t[Yi("0x1e")][Yi("0x16")],x=s[Yi("0xe")];return i[Yi("0x1f")](x)&&!i[Yi("0x36")](x)&&i[Yi("0x14")](x,Yi("0x2"))?{type:Yi("0x12"),content:Yo(e,Yi("0x9"),o[Yi("0xc")](x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t.plugins[Yi("0x33")](Yi("0x34")),i=o[Yi("0xf")].start,x=o.markerRange[Yi("0x2a")],a=t[Yi("0x1e")][Yi("0x16")];if(!i.isTouching(x)||!i[Yi("0xe")])return;const c=i.nodeAfter;if(a[Yi("0x1f")](c)&&!a[Yi("0x36")](c)&&a[Yi("0x14")](c,Yi("0x2"))){if(!s[Yi("0x4")][Yi("0x1a")](o[Yi("0xf")],n.name))return;const t=s.writer.createUIElement(Yi("0x29"),{class:"ck-suggestion-marker-split"}),i=s[Yi("0x5")][Yi("0x0")](x);e&&r.activeMarkers[Yi("0x2e")](o[Yi("0x15")])&&s[Yi("0x28")].addClass(Yi("0x2d"),t),s[Yi("0x28")][Yi("0x30")](i,t),s[Yi("0x5")][Yi("0x2c")](t,o[Yi("0x15")])}}}const nx=["model","getItems","createRangeOn","TrackChangesEditing","change","editor","markInlineFormat","isFormatting","removeFormat","schema","document","*Remove all formatting*","plugins","has","enableCommand","RemoveFormatEditing","_descriptionFactory","afterInit","from","getAttributeProperties","isCollapsed","getRanges"];var ox,sx;ox=nx,sx=288,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[rx("0xf")](){const t=this[rx("0x3")];if(!t[rx("0xa")][rx("0xb")](rx("0xd")))return;const e=t[rx("0xa")].get(rx("0x1"));e[rx("0xc")](rx("0x6"),(n=>{const o=t[rx("0x14")][rx("0x8")].selection;o[rx("0x12")]?n():t.model[rx("0x2")]((()=>{const n=Array[rx("0x10")](o[rx("0x13")]());for(const o of n)for(const n of o[rx("0x15")]())xx(n,t[rx("0x14")][rx("0x7")])&&e[rx("0x4")](t.model[rx("0x0")](n),{commandName:rx("0x6"),commandParams:[]})}))})),e[rx("0xe")].registerDescriptionCallback((e=>{const{data:n}=e;if(n&&rx("0x6")==n.commandName)return{type:"format",content:Yo(t.locale,rx("0x9"))}}))}}function xx(t,e){for(const[n]of t.getAttributes()){const t=e[rx("0x11")](n);if(t&&t[rx("0x5")])return!0}return!1}const ax=["trackChanges","acceptAllSuggestions","has","RestrictedEditingModeEditing","goToPreviousRestrictedEditingException","acceptSuggestion","afterInit","plugins","enableCommand","TrackChangesEditing","get","discardSelectedSuggestions","discardSuggestion","acceptSelectedSuggestions"];var cx,lx;cx=ax,lx=277,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const dx=function(t,e){return ax[t-=0]};class ux extends t.Plugin{[dx("0x9")](){const t=this.editor;if(!t[dx("0xa")][dx("0x5")](dx("0x6")))return;const e=t.plugins[dx("0xd")](dx("0xc"));e.enableCommand(dx("0x7")),e[dx("0xb")]("goToNextRestrictedEditingException");const n=t[dx("0xa")][dx("0xd")](dx("0x6"));n[dx("0xb")](dx("0x3")),n[dx("0xb")](dx("0x8")),n[dx("0xb")](dx("0x1")),n[dx("0xb")](dx("0x4")),n[dx("0xb")]("discardAllSuggestions"),n[dx("0xb")](dx("0x2")),n[dx("0xb")](dx("0x0"))}}const gx=["writer","shiftEnter","ELEMENT_LINE_BREAK","addMarker:suggestion:deletion","deletion","data","get","init","_descriptionFactory","merge","high","split","markerName","name","mapper","plugins","addMarker:suggestion","span","activeMarkers","locale","addClass","model","requires","getItems","downcastDispatcher","toViewPosition","registerElementLabel","TrackChangesEditing","element","ck-suggestion-marker--active","markerRange","editing","createPositionBefore","test","softBreak"];var mx,fx;mx=gx,fx=314,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{static get[hx("0x17")](){return[nr.ShiftEnter]}[hx("0x8")](){const t=this.editor,e=t[hx("0x10")].get(hx("0x1c"));e.enableCommand(hx("0x2")),t.editing[hx("0x19")].on("addMarker:suggestion:insertion",bx(t),{priority:hx("0xb")}),t[hx("0x20")].downcastDispatcher.on(hx("0x4"),bx(t),{priority:hx("0xb")}),t[hx("0x6")][hx("0x19")].on(hx("0x11"),((e,n,o)=>{o.options.showSuggestionHighlights&&bx(t,{showActiveMarker:!1})(e,n,o)})),e[hx("0x9")][hx("0x1b")](hx("0x0"),(e=>Yo(t[hx("0x14")],hx("0x3"),e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[hx("0x10")][hx("0x7")](hx("0x1c"));if(!s.consumable[hx("0x22")](o[hx("0x1f")],n[hx("0xe")]))return;const i=t[hx("0x16")];for(const t of o.markerRange[hx("0x18")]()){if(!t.is(hx("0x1d"),hx("0x0")))continue;const n=hx("0x5")==o.markerName[hx("0xc")](":")[1]?hx("0xa"):"split",x=s[hx("0x1")].createUIElement(hx("0x12"),{class:"ck-suggestion-marker-"+n}),a=s.mapper[hx("0x1a")](i[hx("0x21")](t));e&&r[hx("0x13")].includes(o.markerName)&&s[hx("0x1")][hx("0x15")](hx("0x1e"),x),s.writer.insert(a,x),s[hx("0xf")].bindElementToMarker(x,o[hx("0xd")])}}}const Ex=["getRanges","_descriptionFactory","editor","locale","has","change","get","model","forceValue","format","FORMAT_RESTRICTED_DISABLED","restrictedEditingException","selection","commandParams","value","commands","registerDescriptionCallback","afterInit","commandName","StandardEditingModeEditing","from","plugins"];var _x,Tx;_x=Ex,Tx=429,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{[Cx("0x6")](){const t=this[Cx("0xd")],e=t[Cx("0x12")],n=t[Cx("0xe")];if(!t[Cx("0xa")][Cx("0xf")](Cx("0x8")))return;const o=t.plugins[Cx("0x11")]("TrackChangesEditing"),s=Cx("0x0"),r=t[Cx("0x4")][Cx("0x11")](s);o.enableCommand(s,((t,n={})=>{const i=e.document[Cx("0x1")];if(i.isCollapsed)return void t(n);const x=void 0!==n[Cx("0x13")]?n[Cx("0x13")]:!r[Cx("0x3")];e[Cx("0x10")]((()=>{const t=Array[Cx("0x9")](i[Cx("0xb")]());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o.markInlineFormat(e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Cx("0xc")][Cx("0x5")]((t=>{const{data:e}=t;if(e&&e[Cx("0x7")]==s)return e[Cx("0x2")][0].forceValue?{type:Cx("0x14"),content:Yo(n,"FORMAT_RESTRICTED_ENABLED")}:{type:Cx("0x14"),content:Yo(n,Cx("0x15"))}}))}}const kx=["get","commandName","TrackChangesEditing","forceValue","name","classes","find","_descriptionFactory","markInlineFormat","createRangeOn","style:","getAncestors","value","format","config","plugins","inline","*Remove format:* %0","markBlockFormat","Style","normalizeConfig","add","includes","every","_getRangesWithClasses","style","style.definitions","*Format:* %0","getDefinitionsForView","isCollapsed","afterInit","modelElements","commandParams","getAttribute","enableCommand","model","has","isBlock","getItems","enabledStyles","registerDescriptionCallback","toLowerCase","push"];var Ax,vx;Ax=kx,vx=273,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{[Rx("0xf")](){const t=this.editor;if(!t[Rx("0x0")][Rx("0x15")](Rx("0x4")))return;const e=t.commands.get("style"),n=t.plugins[Rx("0x1c")](Rx("0x1e")),o=t.locale,s=t[Rx("0x0")][Rx("0x1c")]("DataSchema"),r=t[Rx("0x0")][Rx("0x1c")]("StyleUtils")[Rx("0x5")](s,t[Rx("0x2a")][Rx("0x1c")](Rx("0xb")));n[Rx("0x13")](Rx("0xa"),((o,{styleName:i})=>{const x=t[Rx("0x14")].document.selection,a=this._getStyleDefinition(i,r);if(!a)return;if(!e[Rx("0x18")][Rx("0x7")](i))return;if(x[Rx("0xe")]&&!a[Rx("0x16")])return void o({styleName:i});const c=!e[Rx("0x28")][Rx("0x7")](a[Rx("0x20")]);if(a[Rx("0x16")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Rx("0x27")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[Rx("0x7")](o[Rx("0x20")])){n[Rx("0x6")](o);break}}return n}(x.getSelectedBlocks(),a[Rx("0x10")]);t[Rx("0x14")].change((()=>{for(const t of e)n[Rx("0x3")](t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}],formatGroupId:Rx("0x26")+i})}))}else{let e=Array.from(x.getRanges());if(!c){const n=Array.from(s[Rx("0xd")](a.element,!1))[0][Rx("0x14")],o=[];for(const s of e){const e=this[Rx("0x9")](t[Rx("0x14")],s,a[Rx("0x21")],n);o[Rx("0x1b")](...e)}e=o}t[Rx("0x14")].change((()=>{for(const t of e)n[Rx("0x24")](t,{commandName:Rx("0xa"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0x23")][Rx("0x19")]((t=>{const{data:e}=t;if(e&&Rx("0xa")===e[Rx("0x1d")])return e.commandParams[0][Rx("0x1f")]?{type:Rx("0x29"),content:Yo(o,Rx("0xc"),e[Rx("0x11")][0].styleName.toLowerCase())}:{type:Rx("0x29"),content:Yo(o,Rx("0x2"),e[Rx("0x11")][0].styleName[Rx("0x1a")]())}}))}_getStyleDefinition(t,e){let n=e.block[Rx("0x22")]((e=>e.name===t));return n||(n=e[Rx("0x1")].find((e=>e[Rx("0x20")]===t))),n}[Rx("0x9")](t,e,n,o){const s=[];for(const r of e[Rx("0x17")]()){const e=r[Rx("0x12")](o);e&&n[Rx("0x8")]((t=>e[Rx("0x21")][Rx("0x7")](t)))&&s[Rx("0x1b")](t[Rx("0x25")](r))}return s}}const Ix=["selectTableRow","add","ELEMENT_TABLE_COLUMN","insertTableRowAbove","item","setSelection","locale","_getSuggestionCoords","enableCommand","markMultiRangeInsertion","from","removeTableColumn","plugins","$graveyard","ELEMENT_TABLE_WITH_TEXT","length","includes","createRangeOn","data","oldRange","hasAttribute","ELEMENT_TABLE_COLUMN_WITH_TEXT","subType","registerCustomCallback","_splitMarkerName","editor","join","push","getFirstRange","_setupColumnsRowsFixing","nodeBefore","getItems","MIN_SAFE_INTEGER","$textProxy","tableColumn","table","createTableWalker","registerDescriptionCallback","findAncestor","removeTableRow","highest","root","some","addRange","nodeAfter","last","showSuggestionHighlights","options","map","rootName","deletion","_tableSuggestions","values","TableEditing","markMultiRangeDeletion","TableUtils","document","getRanges","_suggestionFactory","maxColumn","filter","getAttribute","getRowIndexes","getColumnIndexes","classes","ELEMENT_TABLE_ROW","start","discard","getChanges","isArray","getSuggestion","TrackChangesEditing","getSelectionAffectedTableCells","*Insert:* %0","toLowerCase","removeClass","maxRow","first","suggestion","differ","model","commands","max","change:data","above","accept","low","tableCell","_descriptionFactory","enqueueChange","createPositionAt","ELEMENT_TABLE_ROW_WITH_TEXT","getContainedElement","forceValue","ELEMENT_TABLE","selectTableColumn","position","batch","insertTableRowBelow","getChangedMarkers","element","MAX_SAFE_INTEGER","minColumn","refresh","isInContent","downcastDispatcher","substr","order","get","colspan","isEqual","min","name","type","_acceptFormatSuggestionCallbackFactory","cell","_getCoordsForCells","has","detach","startsWith","createRangeIn","tableRow","getCellLocation","insertion","span","end","selection","minRow","toViewElement","*Remove:* %0","execute","_tablePostFixingSubtypes","insertTable","change","writer"];var Lx,Nx;Lx=Ix,Nx=461,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const wx=function(t,e){return Ix[t-=0]};class Mx extends t.Plugin{constructor(t){super(t),this._tablePostFixingSubtypes=[wx("0x41"),wx("0x71")],this[wx("0x82")]=new Set}afterInit(){const t=this[wx("0x68")],e=t[wx("0x18")][wx("0x0")][wx("0x46")];if(!t[wx("0x5b")][wx("0x3d")](wx("0x84")))return;const n=t[wx("0x55")],o=t.plugins[wx("0x34")]("TrackChangesEditing"),s=t[wx("0x5b")].get(wx("0x86"));o[wx("0x20")].registerElementLabel(wx("0x72"),(t=>Yo(n,wx("0x26"),t))),this[wx("0x6c")](),o[wx("0x57")](wx("0x4c")),o[wx("0x57")](wx("0x4f")),o[wx("0x57")](wx("0x27"));for(const n of[wx("0x52"),wx("0x2a")]){const r=t[wx("0x19")][wx("0x34")](n);o[wx("0x57")](n,(n=>{t[wx("0x18")][wx("0x4d")]((t=>{n();const i=wx("0x1c")===r.order,x=s[wx("0x10")](e),a=s[wx("0x6")](x),c=i?a[wx("0x15")]-1:a[wx("0x7c")]+1,l=x[0][wx("0x75")](wx("0x72")),d=s[wx("0x73")](l,{startRow:c,endRow:c}),u=Array[wx("0x59")](d)[wx("0x7f")]((e=>t.createRangeOn(e[wx("0x3b")])));o[wx("0x58")](u,wx("0x41"))}))}))}for(const n of["insertTableColumnLeft","insertTableColumnRight"]){const r=t[wx("0x19")][wx("0x34")](n);o[wx("0x57")](n,(n=>{t[wx("0x18")][wx("0x4d")]((t=>{n();const i="left"===r[wx("0x33")],x=s[wx("0x10")](e),a=s[wx("0x7")](x),c=i?a[wx("0x15")]-1:a[wx("0x7c")]+1,l=x[0].findAncestor(wx("0x72")),d=s[wx("0x73")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[wx("0x59")](d)[wx("0x7f")]((e=>t[wx("0x60")](e.cell)));o[wx("0x58")](u,wx("0x71"))}))}))}for(const n of[wx("0x76"),wx("0x5a")]){const r=n[wx("0x32")](11),i=r[wx("0x12")](),x=i[wx("0x32")](0,3)+wx("0x44"),a=wx("0x72")+r,c=wx("0x37")+r,l=wx("0x1a")+r;o.enableCommand(n,(()=>{t[wx("0x18")][wx("0x4d")]((t=>{const r=s[wx("0x10")](e),d=r[0][wx("0x75")]("table");let u;if(wx("0x76")==n){const t=s[wx("0x6")](r);u={startRow:t.first,endRow:t[wx("0x7c")],includeAllSlots:!0}}else{const t=s.getColumnIndexes(r);u={startColumn:t[wx("0x15")],endColumn:t[wx("0x7c")],includeAllSlots:!0}}const g=s[wx("0x73")](d,u),m=Array[wx("0x59")](g)[wx("0x7f")]((({cell:t})=>t)),f=Ox(m[wx("0x4")]((t=>t[wx("0x63")](x)))),h=Ox(m[wx("0x4")]((t=>!t[wx("0x63")](x)))).map((e=>t[wx("0x60")](e))),p=o[wx("0x85")](h,a);if(p&&("tableRow"==p.subType||"tableColumn"==p.subType)){const e=this._getSuggestionCoords(p);for(const n of f){const o=t.createRangeOn(n),r=s.getCellLocation(n),a=n[wx("0x5")](x)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+a<=u&&p.addRange(o)}}}))}))}function r(n){const o=Array.from(e.getRanges())[wx("0x7f")]((t=>i.LiveRange.fromRange(t)));t[wx("0x18")][wx("0x4d")]((e=>{const s=e[wx("0x29")];n=n.filter((t=>"$graveyard"!=t[wx("0x78")][wx("0x80")])),e.setSelection(n),t[wx("0x19")][wx("0x34")](wx("0x76"))[wx("0x2f")](),t[wx("0x4a")](wx("0x76"),{forceDefaultExecution:!0}),t[wx("0x18")][wx("0x21")]((()=>{t[wx("0x18")][wx("0x21")](s,(t=>{const e=o.filter((t=>wx("0x5c")!=t[wx("0x78")][wx("0x80")]));e[wx("0x5e")]>0&&t[wx("0x54")](e);for(const t of o)t.detach()}))}))}))}function a(n){t[wx("0x18")][wx("0x4d")]((o=>{const s=Array[wx("0x59")](e[wx("0x1")]()).map((t=>i.LiveRange.fromRange(t))),r=[];for(const t of n)for(const e of t[wx("0x6e")]({shallow:!0}))r[wx("0x6a")](e);for(const e of r)wx("0x5c")!=e.root[wx("0x80")]&&(o[wx("0x54")](o[wx("0x22")](e,0)),t.commands[wx("0x34")]("removeTableColumn")[wx("0x2f")](),t[wx("0x4a")](wx("0x5a"),{forceDefaultExecution:!0}));const x=s[wx("0x4")]((t=>wx("0x5c")!=t.root.rootName));x[wx("0x5e")]>0&&o.setSelection(x);for(const t of s)t.detach()}))}function c(t,e){return e.every((e=>t.some((t=>t[wx("0x45")][wx("0x36")](e.start)||e[wx("0x45")][wx("0x36")](t[wx("0xa")])))))}function l(t,e){return t[wx("0x79")]((t=>e[wx("0x79")]((e=>t[wx("0x45")].isTouching(e[wx("0xa")])))))}t[wx("0x61")][wx("0x31")].on("addMarker:suggestion",((t,e,n)=>{if(!n[wx("0x7e")][wx("0x7d")])return;const o=e[wx("0x53")];if(!o)return;const s=n.mapper[wx("0x48")](o);function r(t){return Array[wx("0xd")](t)?t:[t]}s&&wx("0x1f")===o[wx("0x38")]&&(0,x.setHighlightHandling)(s,n[wx("0x4e")],((t,e,n)=>n.addClass(r(e[wx("0x8")]),t)),((t,e,n)=>n[wx("0x13")](r(e[wx("0x8")]),t)))}),{priority:wx("0x77")}),o[wx("0x20")][wx("0x74")]((t=>{if(wx("0x43")!=t[wx("0x39")]&&wx("0x81")!=t[wx("0x39")])return;const e=t[wx("0x24")]();if(null!=e&&e.is(wx("0x2c"),"table")){if(wx("0x43")==t.type){const e=t[wx("0x6e")]()[wx("0x4")]((t=>t.is(wx("0x70"))))[wx("0x7f")]((t=>t[wx("0x61")]));if(e[wx("0x5e")])return{type:wx("0x43"),content:Yo(n,wx("0x11"),Yo(n,wx("0x5d"),'"'+e[wx("0x69")](" ")+'"'))}}if("deletion"==t[wx("0x39")]){const e=t.getItems()[wx("0x4")]((t=>t.is(wx("0x70"))))[wx("0x7f")]((t=>t[wx("0x61")]));if(e[wx("0x5e")])return{type:wx("0x81"),content:Yo(n,wx("0x49"),Yo(n,wx("0x5d"),'"'+e[wx("0x69")](" ")+'"'))}}}})),o[wx("0x20")][wx("0x74")]((t=>{if(wx("0x41")==t[wx("0x65")]){const e=t[wx("0x6e")]()[wx("0x4")]((t=>t.is(wx("0x70")))).map((t=>t[wx("0x61")])),o=this[wx("0x56")](t),s=o[wx("0x14")]-o[wx("0x47")]+1;if("insertion"==t[wx("0x39")])return e.length?{type:wx("0x43"),content:Yo(n,wx("0x11"),Yo(n,wx("0x23"),[s,'"'+e[wx("0x69")](" ")+'"']))}:{type:wx("0x43"),content:Yo(n,wx("0x11"),Yo(n,wx("0x9"),s))};if(wx("0x81")==t[wx("0x39")])return e[wx("0x5e")]?{type:wx("0x81"),content:Yo(n,"*Remove:* %0",Yo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[s,'"'+e[wx("0x69")](" ")+'"']))}:{type:wx("0x81"),content:Yo(n,wx("0x49"),Yo(n,wx("0x9"),s))}}if(wx("0x71")==t.subType){const e=t.getItems().filter((t=>t.is(wx("0x70"))))[wx("0x7f")]((t=>t.data)),o=this[wx("0x56")](t),s=o[wx("0x3")]-o[wx("0x2e")]+1;if(wx("0x43")==t[wx("0x39")])return e[wx("0x5e")]?{type:wx("0x43"),content:Yo(n,wx("0x11"),Yo(n,wx("0x64"),[s,'"'+e[wx("0x69")](" ")+'"']))}:{type:wx("0x43"),content:Yo(n,"*Insert:* %0",Yo(n,wx("0x51"),s))};if("deletion"==t[wx("0x39")])return e[wx("0x5e")]?{type:"deletion",content:Yo(n,"*Remove:* %0",Yo(n,wx("0x64"),[s,'"'+e[wx("0x69")](" ")+'"']))}:{type:wx("0x81"),content:Yo(n,wx("0x49"),Yo(n,wx("0x51"),s))}}})),o[wx("0x2")][wx("0x66")](wx("0x43"),wx("0x41"),wx("0xb"),r),o._suggestionFactory[wx("0x66")](wx("0x81"),wx("0x41"),wx("0x1d"),r),o[wx("0x2")].registerCustomCallback(wx("0x43"),"tableColumn","discard",a),o[wx("0x2")].registerCustomCallback(wx("0x81"),wx("0x71"),"accept",a),o[wx("0x2")][wx("0x66")]("insertion",wx("0x71"),wx("0x69"),c),o._suggestionFactory.registerCustomCallback(wx("0x81"),wx("0x71"),wx("0x69"),c),o[wx("0x2")].registerCustomCallback("insertion",wx("0x41"),wx("0x69"),l),o[wx("0x2")][wx("0x66")](wx("0x81"),"tableRow",wx("0x69"),l)}[wx("0x3a")](){const t=this[wx("0x68")],e=t[wx("0x18")][wx("0x0")][wx("0x46")];return(n,o)=>{t[wx("0x18")][wx("0x4d")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][wx("0x45")][wx("0x6d")];x&&x[0]&&!1===x[0][wx("0x25")]&&(a=n[0].start[wx("0x7b")]);const c=s[wx("0x40")](a);if(wx("0x5c")==c.root[wx("0x80")])return;const l=Array.from(e.getRanges())[wx("0x7f")]((t=>i.LiveRange.fromRange(t)));s[wx("0x54")](c),t[wx("0x19")][wx("0x34")](r)[wx("0x2f")](),x[wx("0x6a")]({forceDefaultExecution:!0}),t[wx("0x4a")](r,...x);const d=l[wx("0x4")]((t=>wx("0x5c")!=t.root[wx("0x80")]));d[wx("0x5e")]>0&&s[wx("0x54")](d);for(const t of l)t[wx("0x3e")]()}))}}[wx("0x3c")](t){const e=this[wx("0x68")].plugins[wx("0x34")](wx("0x86"));let n=Number[wx("0x2d")],o=Number[wx("0x6f")],s=Number.MAX_SAFE_INTEGER,r=Number[wx("0x6f")];for(const i of t){if(wx("0x5c")==i[wx("0x78")][wx("0x80")])continue;const{row:t,column:x}=e[wx("0x42")](i),a=i[wx("0x63")]("rowspan")?i[wx("0x5")]("rowspan")-1:0,c=i[wx("0x63")](wx("0x35"))?i.getAttribute(wx("0x35"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,s=x<s?x:s,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:s,maxColumn:r}}_setupColumnsRowsFixing(){const t=this.editor,e=t[wx("0x5b")][wx("0x34")](wx("0xf")),n=t[wx("0x5b")][wx("0x34")](wx("0x86"));t[wx("0x18")][wx("0x0")].on(wx("0x1b"),(()=>{const n=Array[wx("0x59")](t[wx("0x18")][wx("0x0")][wx("0x17")][wx("0x2b")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[wx("0x67")](t);if(wx("0x16")!=n)continue;if(null!=o[wx("0x62")])continue;const i=e[wx("0xe")](s);this[wx("0x4b")][wx("0x5f")](r)&&this[wx("0x82")][wx("0x50")](i)}}),{priority:wx("0x1e")});const o=(t,e)=>{let o=!1;const s=e[wx("0x60")](t),r=t[wx("0x75")]("table"),i=n.getCellLocation(t);for(const e of this._tableSuggestions){const n=e[wx("0x65")],x=n[wx("0x3f")]("tablePaste"),a=n.substr(x?10:5),c=a[wx("0x12")](),l=c[wx("0x32")](0,3)+"span",d=wx("0x37")+a,u=wx("0x1a")+a;if(!e[wx("0x30")])continue;if(r!=e[wx("0x6b")]()[wx("0xa")][wx("0x75")](wx("0x72")))continue;if(e.isIntersectingWithRange(s))continue;const g=t.hasAttribute(l)?t.getAttribute(l)-1:0,m=this[wx("0x56")](e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e[wx("0x7a")](s),o=!0)}return o};t[wx("0x18")][wx("0x0")].registerPostFixer((e=>{let n=!1;for(const s of t[wx("0x18")].document[wx("0x17")][wx("0xc")]())if("insert"==s[wx("0x39")])if("tableRow"==s[wx("0x38")])for(const t of s[wx("0x28")][wx("0x7b")].getChildren())n=n||o(t,e);else wx("0x1f")==s.name&&(n=n||o(s[wx("0x28")][wx("0x7b")],e));return n}))}[wx("0x56")](t){return this._getCoordsForCells(t[wx("0x1")]()[wx("0x7f")]((t=>t[wx("0xa")][wx("0x7b")])))}}function Ox(t){return Array[wx("0x59")](new Set(t)[wx("0x83")]())}const Fx=["$graveyard","size","*Merge cells*","return","TrackChangesEditing","splitTableCellVertically","mergeTableCells","set:isEnabled","stop","tableCell","markBlockFormat","commandName","filter","createRangeOn","_acceptFormatSuggestionCallbackFactory","change","format","type","get","push","createTableWalker","setSelection","getAncestors","detach","root","_areMergableCells","enableCommand","locale","has","editor","_isForcedDefaultExecutionBlock","containsRange","cell","low","*Split cell:* vertically","TableUtils","execute","element","isEnabled","accept","TableEditing","mergeTableCellRight","getCellLocation","getFirstPosition","from","direction","table","mergeTableCellDown","value","length","getSelectionAffectedTableCells","mergeTableCellLeft","highest","commands","getSuggestions","fromRange","insertion","formatBlock","markMultiRangeBlockFormat","registerCustomCallback","selection","plugins","getRanges","model","deletion","_descriptionFactory","mergeTableCellUp","*Split cell:* horizontally","subType","registerDescriptionCallback","add","_areSelectedCellsMergable","map","splitTableCellHorizontally","document"];var Px,Dx;Px=Fx,Dx=341,function(t){for(;--t;)Px.push(Px.shift())}(++Dx);const Bx=function(t,e){return Fx[t-=0]};class jx extends t.Plugin{static get requires(){return[Mx]}afterInit(){const t=this[Bx("0x3f")],e=t[Bx("0x16")][Bx("0x21")][Bx("0x13")],n=t[Bx("0x3d")];if(!t[Bx("0x14")].has(Bx("0x4a")))return;const o=t[Bx("0x14")][Bx("0x34")](Bx("0x26")),s=t[Bx("0x14")][Bx("0x34")](Bx("0x45")),r=t.plugins[Bx("0x34")](Mx);r._tablePostFixingSubtypes[Bx("0x35")](Bx("0x28")),o[Bx("0x3c")](Bx("0x28"),(()=>{const e=s[Bx("0x9")](t[Bx("0x16")][Bx("0x21")][Bx("0x13")]);t[Bx("0x16")][Bx("0x31")]((()=>{o[Bx("0x11")](e,{commandName:Bx("0x28"),commandParams:[]},[],Bx("0x28"))}))})),t[Bx("0xc")][Bx("0x34")](Bx("0x28")).on(Bx("0x46"),((e,n)=>{t[Bx("0xc")][Bx("0x34")]("trackChanges")[Bx("0x7")]&&(n[Bx("0x8")]>0&&n[n[Bx("0x8")]-1]&&n[n[Bx("0x8")]-1].forceDefaultExecution||o[Bx("0x40")]||this[Bx("0x1e")]()||e[Bx("0x2a")]())}),{priority:Bx("0xb")});for(const e of[Bx("0x19"),Bx("0x0"),Bx("0x6"),"mergeTableCellLeft"]){const n=t.commands[Bx("0x34")](e);o[Bx("0x3c")](e,(()=>{const e=t[Bx("0x16")].document.selection[Bx("0x2")]()[Bx("0x38")]().find((t=>t.is(Bx("0x47"),Bx("0x2b")))),s=n[Bx("0x7")];t[Bx("0x16")][Bx("0x31")]((()=>{o[Bx("0x11")]([e,s],{commandName:Bx("0x28"),commandParams:[]},[],"mergeTableCells")}))}))}for(const e of["splitTableCellVertically",Bx("0x20")]){const n=t.commands[Bx("0x34")](e);o[Bx("0x3c")](e,(()=>{const r=s[Bx("0x9")](t.model.document[Bx("0x13")])[0],i=r.findAncestor(Bx("0x5")),{column:x,row:a}=s[Bx("0x1")](r);let c=[];if("horizontally"==n[Bx("0x4")]){const t=s[Bx("0x36")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0x3")](t)[Bx("0x1f")]((t=>t[Bx("0x42")]))}else{const t=s[Bx("0x36")](i,{column:x,includeAllSlots:!0});c=Array[Bx("0x3")](t)[Bx("0x1f")]((t=>t[Bx("0x42")]))}t[Bx("0x16")].change((t=>{o[Bx("0x2c")](t.createRangeOn(r),{commandName:e,commandParams:[]},c,e)}))}))}o._descriptionFactory[Bx("0x1c")]((t=>{const{data:e}=t;if(e)return Bx("0x28")==e[Bx("0x2d")]?{type:Bx("0x32"),content:Yo(n,Bx("0x24"))}:void 0})),o[Bx("0x18")][Bx("0x1c")]((t=>{const{data:e}=t;if(e)return"splitTableCellVertically"==e[Bx("0x2d")]?{type:"format",content:Yo(n,Bx("0x44"))}:Bx("0x20")==e[Bx("0x2d")]?{type:Bx("0x32"),content:Yo(n,Bx("0x1a"))}:void 0}));const x=r[Bx("0x30")]();for(const t of[Bx("0x19"),Bx("0x0"),"mergeTableCellDown",Bx("0xa")])o._suggestionFactory[Bx("0x12")](Bx("0x10"),t,"accept",x);for(const t of[Bx("0x27"),Bx("0x20")])o._suggestionFactory[Bx("0x12")]("formatBlock",t,Bx("0x49"),x);o._suggestionFactory[Bx("0x12")](Bx("0x10"),"mergeTableCells","accept",(n=>{t.model[Bx("0x31")]((o=>{const s=Array[Bx("0x3")](e[Bx("0x15")]())[Bx("0x1f")]((t=>i.LiveRange[Bx("0xe")](t)));o[Bx("0x37")](n),t[Bx("0xc")][Bx("0x34")](Bx("0x28")).refresh(),t[Bx("0x46")](Bx("0x28"),{forceDefaultExecution:!0});const r=s[Bx("0x2e")]((t=>Bx("0x22")!=t[Bx("0x3a")].rootName));r.length>0&&o[Bx("0x37")](r);for(const t of s)t[Bx("0x39")]()}))}));for(const e of["mergeTableCellUp",Bx("0x6"),Bx("0xa"),Bx("0x0")]){const n=t[Bx("0xc")][Bx("0x34")](e);n.on(Bx("0x29"),((e,o,s)=>{if(s){const o=t[Bx("0x16")].document[Bx("0x13")].getFirstPosition()[Bx("0x38")]().find((t=>t.is(Bx("0x47"),Bx("0x2b"))));this[Bx("0x3b")](n[Bx("0x7")],o)||(e[Bx("0x25")]=!1,e.stop())}}),{priority:Bx("0x43")})}}[Bx("0x1e")](){const t=this[Bx("0x3f")][Bx("0xc")][Bx("0x34")](Bx("0x28")),e=this[Bx("0x3f")][Bx("0x14")][Bx("0x34")](Bx("0x45"));if(!t[Bx("0x48")])return!1;const n=e[Bx("0x9")](this[Bx("0x3f")][Bx("0x16")][Bx("0x21")][Bx("0x13")]);for(const t of n)for(const e of n)if(t!=e&&!this._areMergableCells(t,e))return!1;return!0}_areMergableCells(t,e){const n=this[Bx("0x3f")][Bx("0x14")].get(Bx("0x26")),o=this[Bx("0x3f")][Bx("0x16")][Bx("0x2f")](t),s=this[Bx("0x3f")][Bx("0x16")][Bx("0x2f")](e),r=new Set,i=new Set;for(const t of n[Bx("0xd")]())if((Bx("0xf")==t.type||Bx("0x17")==t.type||Bx("0x28")==t[Bx("0x1b")])&&t.isInContent)for(const e of t[Bx("0x15")]())e[Bx("0x41")](o,!0)&&r[Bx("0x1d")](t[Bx("0x33")]+":"+t.author.id),e.containsRange(s,!0)&&i[Bx("0x1d")](t.type+":"+t.author.id);if(r[Bx("0x23")]!=i[Bx("0x23")])return!1;for(const t of r)if(!i[Bx("0x3e")](t))return!1;return!0}}const Ux=["downcastDispatcher","activeMarkers","setTableColumnHeader","createPositionBefore","options","removeClass","unbindElementFromMarkerName","locale","TrackChangesEditing","document","index","commands","change","editing","removeMarker:suggestion","format","registerCustomCallback","end","table","enableCommand","value","createRange","has","from","accept","selection","writer","addClass","nodeAfter","FORMAT_REGULAR_ROW","TableEditing","headingRows","getCellLocation","editor","addMarker:suggestion","nodeBefore","parent","showSuggestionHighlights","name","data","getChild","markerName","mapper","markerNameToElements","requires","commandParams","isBefore","getSuggestion","get","first","setTableRowHeader","plugins","FORMAT_HEADER_ROW","ck-suggestion-marker-","model","last","createPositionAfter","markerRange","_suggestionFactory","forceValue","getRowIndexes","ck-suggestion-marker--active","formatBlock","FORMAT_HEADER_COLUMN","createTableWalker","data-suggestion","_splitMarkerName","markBlockFormat","findAncestor","commandName","*Format:* %0","FORMAT_REGULAR_COLUMN","includes","getAttribute","TableUtils","cell","bindElementToMarker","getSelectionAffectedTableCells","highest"];var Gx,Hx;Gx=Ux,Hx=435,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const zx=function(t,e){return Ux[t-=0]};class Wx extends t.Plugin{static get[zx("0x4")](){return[Mx]}afterInit(){const t=this[zx("0x48")];if(!t[zx("0xb")][zx("0x3d")](zx("0x45")))return;const e=t[zx("0x2e")],n=t.plugins[zx("0x8")](zx("0x2f")),o=t[zx("0xb")].get("TableUtils"),s=t[zx("0xb")].get(Mx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n._splitMarkerName(r[zx("0x1")]),c=n[zx("0x7")](a);if(!c[zx("0x4e")]||zx("0x29")!=c[zx("0x4e")][zx("0x1d")])return;if(r.item)return void s.stop();if(!i.consumable.consume(r.markerRange,s[zx("0x4d")]))return;const l=r[zx("0x11")].start[zx("0x43")],d=r[zx("0x11")][zx("0x38")][zx("0x4a")],u=l[zx("0x4b")][zx("0x4b")],{column:g}=o[zx("0x47")](l),{column:m}=o.getCellLocation(d);for(let s=g;s<=m;s++){const c=o[zx("0x18")](u,{column:s,includeAllSlots:!1});for(const o of c){const s=o[zx("0x23")],c=i.mapper.toViewElement(s);i[zx("0x41")][zx("0x42")](zx("0xd")+x,c),e&&i[zx("0x41")].setAttribute(zx("0x19"),a,c),i[zx("0x2")][zx("0x24")](c,r[zx("0x1")]),t&&(n[zx("0x28")][zx("0x20")](r[zx("0x1")])?i[zx("0x41")][zx("0x42")](zx("0x15"),c):i[zx("0x41")][zx("0x2c")](zx("0x15"),c))}}}}n[zx("0x3a")]("setTableRowHeader",((e,s)=>{const r=o[zx("0x25")](t.model[zx("0x30")][zx("0x40")]),i=o[zx("0x14")](r),x=r[0].findAncestor(zx("0x39")),a=x.getAttribute(zx("0x46"))||0,c=s&&null!==s.forceValue?s[zx("0x13")]:!t.commands[zx("0x8")]("setTableRowHeader")[zx("0x3b")],l=c?i.last:i[zx("0x9")],d=x[zx("0x0")](l);let u;if(c){const e=x.getChild(a);if(d.index<e[zx("0x31")])return;u=t[zx("0xe")][zx("0x3c")](t[zx("0xe")][zx("0x2a")](e[zx("0x0")](0)),t.model[zx("0x10")](d[zx("0x0")](d.childCount-1)))}else{const e=x[zx("0x0")](a-1);if(!e)return;u=t.model[zx("0x3c")](t[zx("0xe")][zx("0x2a")](d.getChild(0)),t.model[zx("0x10")](e[zx("0x0")](e.childCount-1)))}t[zx("0xe")][zx("0x33")]((()=>{n[zx("0x1b")](u,{commandName:"setTableRowHeader",commandParams:[{forceValue:c}]},[],zx("0xa"))}))})),n[zx("0x3a")](zx("0x29"),((e,o)=>{const s=t.plugins.get(zx("0x22")),r=s[zx("0x25")](t[zx("0xe")][zx("0x30")][zx("0x40")]),i=s.getColumnIndexes(r),x=r[0][zx("0x1c")](zx("0x39")),a=x[zx("0x21")]("headingColumns")||0,c=o&&null!==o.forceValue?o[zx("0x13")]:!t[zx("0x32")][zx("0x8")](zx("0x29"))[zx("0x3b")];let l;const d=x[zx("0x0")](0),u=c?i[zx("0xf")]:i[zx("0x9")],g=s.createTableWalker(x,{startRow:0,column:u,includeAllSlots:!1}),m=Array[zx("0x3e")](g)[0][zx("0x23")];if(c){const e=d[zx("0x0")](a);if(m[zx("0x6")](e))return;l=t[zx("0xe")].createRange(t[zx("0xe")][zx("0x2a")](e),t[zx("0xe")][zx("0x10")](m))}else{const e=d[zx("0x0")](a-1);if(!e)return;l=t.model[zx("0x3c")](t[zx("0xe")].createPositionBefore(m),t[zx("0xe")][zx("0x10")](e))}t[zx("0xe")].change((()=>{n.markBlockFormat(l,{commandName:"setTableColumnHeader",commandParams:[{forceValue:c}]},[],zx("0x29"))}))})),t[zx("0x34")][zx("0x27")].on(zx("0x49"),r(),{priority:zx("0x26")}),t[zx("0x4e")][zx("0x27")].on(zx("0x49"),((t,e,n)=>{n[zx("0x2b")][zx("0x4c")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:"highest"}),t[zx("0x34")].downcastDispatcher.on(zx("0x35"),((t,e,o)=>{const{type:s,id:r}=n[zx("0x1a")](e[zx("0x1")]),i=n[zx("0x7")](r);if(!i[zx("0x4e")]||"setTableColumnHeader"!=i.data[zx("0x1d")])return;const x=o[zx("0x2")][zx("0x3")](e[zx("0x1")]);if(x)for(const t of x)o[zx("0x41")][zx("0x2c")]("ck-suggestion-marker-"+s,t),o[zx("0x41")][zx("0x2c")](zx("0x15"),t),o[zx("0x41")].removeAttribute(zx("0x19"),t),o[zx("0x2")][zx("0x2d")](t,e.markerName)}),{priority:zx("0x26")}),n._descriptionFactory.registerDescriptionCallback((t=>{const{data:n}=t;if(n){if(zx("0xa")==n[zx("0x1d")]){const t=n[zx("0x5")][0][zx("0x13")];return o(Yo(e,zx(t?"0xc":"0x44")))}if(zx("0x29")==n[zx("0x1d")]){const t=n[zx("0x5")][0][zx("0x13")];return o(Yo(e,zx(t?"0x17":"0x1f")))}}function o(t){return{type:zx("0x36"),content:Yo(e,zx("0x1e"),t)}}}));const i=s._acceptFormatSuggestionCallbackFactory();n[zx("0x12")][zx("0x37")](zx("0x16"),zx("0xa"),zx("0x3f"),i),n[zx("0x12")][zx("0x37")]("formatBlock",zx("0x29"),"accept",i)}}const Vx=["isEqual","getAllAdjacentSuggestions","forceDefaultExecution","showSuggestionHighlights","cells","getChildren","getContainedElement","next","remove","find","options","columns","getChangedMarkers","reduce","subType","for","includes","columnInsertionRanges","push","filter","tableCellPadding","rootName","rowInsertionRanges","createRange","stop","getColumns","previous","deletion","updateMarker","tablePasteCell","_getCoordsForCells","getColumnIndexes","tableCellVerticalAlignment","last","commands","type","getMarkers","createRangeOn","createElement","name","conversion","view","requires","dataDowncast","columnInsertionIndexes","model","afterInit","document","suggestionUnloaded","from","getRows","change","getTableIfOnlyTableInContent","paragraph","markerName","length","editing","markerToHighlight","tableCellBorderWidth","getSuggestionCallback","editor","register","markMultiRangeDeletion","author","table","markMultiRangeBlockFormat","discard","removeMarker","add","setAttribute","insert","element","startsWith","start","TableClipboard","documentSelection","wrap","root","activeMarkers","accept","getSuggestion","getShiftedBy","_splitMarkerName","ck-suggestion-marker","insertRows","has","column","high","suggestion-td","get","registerCustomCallback","some","position","tableCell","_replaceTableSlotCell","findAncestor","fill","containsRange","ck-suggestion-marker-insertion","tablePasteColumn","removeColumns","tableCellHorizontalAlignment","set","getAttributes","_suggestionFactory","isEmpty","map","join","formatBlock","selection","tablePasteChainId","isInContent","markerAttributes","removeRows","rowInsertionIndexes","getRowIndexes","plugins","_descriptionFactory","every","unwrap","insertionRanges","getSuggestions","clipboardOutput","suggestion","suggestion:formatBlock:tablePasteCell","attributes","getSelectionAffectedTableCells","listenTo","endColumn","getRange","keys","endRow","insertion","tableCellBackgroundColor","newRange","createRangeIn","end","getChanges","registerDescriptionCallback","editingDowncast","Users","createTableWalker","tableCellSuggestion","entries","registerPostFixer","first","redo","differ","oldRange","fromEntries","insertContent","deletionRanges","getChild","markMultiRangeInsertion","nodeAfter","row","schema","_isForcedDefaultExecutionBlock","hasSuggestion","setAttributes","TrackChangesEditing","removeMarkers","*Replace table cells*","getRanges","move","tablePasteRow","tablePaste"];var Kx,qx;Kx=Vx,qx=267,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]},$x=[Xx("0x7d"),"tableCellBorderColor","tableCellBorderStyle",Xx("0x1"),Xx("0x63"),Xx("0x21"),Xx("0x57")],Jx=Object[Xx("0x31")]($x.map((t=>[t,null])));class Qx extends t.Plugin{static get[Xx("0x6d")](){return[Mx]}[Xx("0x71")](){const t=this.editor;if(!t[Xx("0x10")].has(Xx("0x8d")))return;const n=t[Xx("0x10")][Xx("0x9c")](Xx("0x3c")),o=t[Xx("0x10")][Xx("0x9c")]("TableUtils"),s=t[Xx("0x10")][Xx("0x9c")](Mx),r=t[Xx("0x10")][Xx("0x9c")](Xx("0x8d"));s._tablePostFixingSubtypes[Xx("0x55")]("tablePasteRow","tablePasteColumn"),t[Xx("0x70")][Xx("0x38")][Xx("0x80")](Xx("0x2a"),{allowIn:Xx("0xa0"),allowContentOf:Xx("0xa0"),isLimit:!0}),t.conversion.elementToElement({model:Xx("0x2a"),view:Xx("0x9b")});let i=null;t[Xx("0x70")].on(Xx("0x32"),((s,x)=>{const[a,c]=x,l=x[x.length-1];l&&l[Xx("0x45")]||n[Xx("0x39")]||this[Xx("0x7f")][Xx("0x65")][Xx("0x9c")]("trackChanges").value&&function(t,e,n,o,s){if(e&&!e.is(Xx("0x8e")))return!1;const r=s[Xx("0x77")](t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o[Xx("0x1a")](n.document[Xx("0x9")]);if(!i[Xx("0x7a")])return!1;const x=i[0][Xx("0xa2")](Xx("0x83")),a=o[Xx("0xf")](i),c=o[Xx("0x62")](i),l={startRow:a[Xx("0x2d")],endRow:a[Xx("0x64")],startColumn:c.first,endColumn:c[Xx("0x64")]};return 1==i[Xx("0x7a")]&&(l[Xx("0x1f")]+=o[Xx("0x75")](r)-1,l[Xx("0x1c")]+=o[Xx("0x5c")](r)-1),Yx(x,l,o)}(a,c,t[Xx("0x70")],o,r)&&(s.stop(),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t.model.change((()=>{t[Xx("0x70")][Xx("0x32")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=i;s.length&&n[Xx("0x35")](s,"tablePasteRow",{tablePasteChainId:o}),r.length&&n[Xx("0x35")](r,"tablePasteColumn",{tablePasteChainId:o}),a[Xx("0x7a")]&&n[Xx("0x35")](a,Xx("0x42"),{tablePasteChainId:o,skipNestingCheck:!0}),c.length&&n[Xx("0x81")](c,Xx("0x42"),{tablePasteChainId:o,skipNestingCheck:!0});const d=n[Xx("0x84")](l[Xx("0x6")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Xx("0x60"),{tablePasteChainId:o});if(d){const e=d[Xx("0x67")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t.model.createRangeOn(o),i=e[Xx("0x4c")]((t=>t.getRange()[Xx("0x43")](r)));i&&n[Xx("0x55")]([i[Xx("0x6a")],s])}n[Xx("0x7a")]&&d[Xx("0x88")]("markerAttributes",Object[Xx("0x31")](n))}i=null})))}),{priority:e.priorities.high+10}),t[Xx("0x10")][Xx("0x9c")](Xx("0x8d")).on(Xx("0xa1"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t[Xx("0x5b")]();const r=n.cell,x=o,a=Zx(r),c=Zx(x);t.return=r;let l=null,d=null;if(c||a)if(a&&!c){s.remove(r[Xx("0x34")](0));for(const t of Array[Xx("0x74")](x[Xx("0x48")]()))s[Xx("0x89")](t,r,Xx("0x24"));const t=i[Xx("0xe")][Xx("0x53")](n[Xx("0x37")]),e=i[Xx("0x6f")][Xx("0x53")](n[Xx("0x99")]);t||e||(l=s[Xx("0x23")](r))}else c&&!a&&(d=s[Xx("0x23")](r));else{const t=s[Xx("0x69")]("tableCellSuggestion"),e=s[Xx("0x69")]("tableCellSuggestion");s[Xx("0x8f")](s.createRangeIn(r),e),s[Xx("0x89")](t,r,0);for(const e of Array[Xx("0x74")](x[Xx("0x48")]()))s[Xx("0x89")](e,t,Xx("0x24"));l=s[Xx("0x68")](t),d=s.createRangeOn(e)}const u=Array.from(x[Xx("0x3")]())[Xx("0x56")]((([t])=>$x[Xx("0x53")](t)));i.cells[Xx("0x55")]({element:r,attributes:u[Xx("0x7a")]?Object.fromEntries(u):null}),l&&i[Xx("0x14")][Xx("0x55")](l),d&&i[Xx("0x33")].push(d)}),{priority:Xx("0x9a")}),o.on("insertColumns",((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x4e")]||1;i[Xx("0x6f")]=new Array(a)[Xx("0xa3")](x)[Xx("0x6")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x29")](s,{startColumn:x,endColumn:x+a-1}))i[Xx("0x54")][Xx("0x55")](t[Xx("0x70")].createRangeOn(e))}),{priority:"low"}),o.on(Xx("0x97"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r.rows||1;i[Xx("0xe")]=new Array(a)[Xx("0xa3")](x)[Xx("0x6")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x29")](s,{startRow:x,endRow:x+a-1}))i[Xx("0x59")][Xx("0x55")](t[Xx("0x70")].createRangeOn(e))}),{priority:"low"}),n[Xx("0x11")][Xx("0x26")]((e=>{if(e[Xx("0x51")]&&e[Xx("0x51")][Xx("0x8b")]("tablePaste"))return e[Xx("0x5d")]?{}:{type:Xx("0x20"),content:Yo(t.locale,Xx("0x3e"))}}));const x=()=>{};for(const t of[Xx("0x42"),Xx("0xa6"),Xx("0x41"),"tablePasteCell"])n._suggestionFactory[Xx("0x9d")]("insertion",t,Xx("0x7"),x),n[Xx("0x4")][Xx("0x9d")](Xx("0x5e"),t,"join",x);n[Xx("0x4")][Xx("0x9d")](Xx("0x8"),Xx("0x60"),Xx("0x85"),x),n[Xx("0x4")][Xx("0x9d")](Xx("0x8"),"tablePasteCell",Xx("0x92"),((e,n,o)=>{const s=e.map((t=>t[Xx("0x49")]()))[Xx("0x56")]((t=>t)),r=new Map(s[Xx("0x6")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Xx("0x47")])e&&r[Xx("0x2")](t,e);else if(o&&o[Xx("0xc")])for(const[e,n]of Object[Xx("0x2b")](o[Xx("0xc")])){const o=t[Xx("0x70")].markers.get(e),s=o?o[Xx("0x1d")]()[Xx("0x49")]():null;s&&r[Xx("0x2")](s,n)}t[Xx("0x70")][Xx("0x76")]((t=>{for(const[e,n]of r)t[Xx("0x3b")]({...Jx,...n},e)}))}));const a=(e,o)=>{n[Xx("0x4")][Xx("0x9d")](e,Xx("0x42"),o,((s,r,i)=>{t.model[Xx("0x76")]((t=>{const x=[];for(const t of s){const e=t[Xx("0x8c")][Xx("0x36")];e.is(Xx("0x8a"),"tableCellSuggestion")&&x[Xx("0x55")](e)}n[Xx("0x4")][Xx("0x7e")](e,null,o)(s,r,i);for(const e of x)"$graveyard"!=e[Xx("0x90")][Xx("0x58")]&&t.unwrap(e)}))}))};a(Xx("0x20"),Xx("0x92")),a(Xx("0x20"),"discard"),a(Xx("0x5e"),"accept"),a(Xx("0x5e"),Xx("0x85")),n[Xx("0x4")][Xx("0x9d")](Xx("0x20"),"tablePasteRow",Xx("0x85"),(t=>{const e=t.map((t=>t[Xx("0x49")]())),n=e[0].findAncestor("table"),{minRow:r,maxRow:i}=s[Xx("0x61")](e);o[Xx("0xd")](n,{at:r,rows:i-r+1})})),n[Xx("0x4")][Xx("0x9d")](Xx("0x20"),Xx("0xa6"),"discard",(t=>{const e=t[Xx("0x6")]((t=>t.getContainedElement())),n=e[0].findAncestor(Xx("0x83")),{minColumn:r,maxColumn:i}=s[Xx("0x61")](e);o[Xx("0x0")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Xx("0x51")]||!e.subType.startsWith(Xx("0x42")))return;const o=e.attributes[Xx("0xa")],s=n[Xx("0x15")]()[Xx("0x56")]((t=>t[Xx("0xb")]&&t[Xx("0x19")]&&t[Xx("0x19")].tablePasteChainId==o));s[Xx("0x7a")]&&e.getAllAdjacentSuggestions()[Xx("0x7a")]!=s[Xx("0x7a")]&&s[Xx("0x50")](((t,e)=>(t[Xx("0x4a")]=e,e[Xx("0x5d")]=t,e)))};function l(t,e=!0){const{id:o}=n[Xx("0x95")](t[Xx("0x79")]),s=[Xx("0x96"),Xx("0xa5")],r=n[Xx("0x91")][Xx("0x53")](t[Xx("0x79")]);return r&&s[Xx("0x55")]("ck-suggestion-marker--active"),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:Xx("0x9a")}),n.on(Xx("0x73"),c,{priority:Xx("0x9a")}),t[Xx("0x70")][Xx("0x72")][Xx("0x2c")]((()=>{let e=!1;const o=Array.from(t.model[Xx("0x72")][Xx("0x2f")][Xx("0x4f")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Xx("0x95")](s);if(Xx("0x17")!=o||Xx("0x5e")!=i||r[Xx("0x30")])continue;if(!n[Xx("0x3a")](x))continue;const a=n[Xx("0x93")](x)[Xx("0x3f")](),c=t[Xx("0x10")].get(Xx("0x28")).me;for(const t of n[Xx("0x15")]())if(t[Xx("0xb")]&&t[Xx("0x82")]==c&&Xx("0x8")==t[Xx("0x66")]&&Xx("0x60")==t.subType&&t[Xx("0x3f")]()[Xx("0x12")]((t=>a[Xx("0x9e")]((e=>e[Xx("0xa4")](t,!0))))))for(const n of t[Xx("0x44")]())n[Xx("0xb")]&&(n[Xx("0x85")](),e=!0)}return e})),t.model[Xx("0x72")][Xx("0x2c")]((e=>{const o=t.commands.get(Xx("0x2e"));if(!o||!o._createdBatches[Xx("0x98")](e.batch))return!1;let s=!1;const r=t[Xx("0x10")][Xx("0x9c")](Xx("0x28")).me,i=t[Xx("0x70")][Xx("0x72")][Xx("0x2f")][Xx("0x25")](),x=Array[Xx("0x74")](t.model.document.differ[Xx("0x4f")]())[Xx("0x56")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Xx("0x95")](t);return Xx("0x17")==o&&Xx("0x42")==s&&i==r.id&&!e[Xx("0x30")]}));for(const t of i){if(Xx("0x89")!=t[Xx("0x66")]||Xx("0x2a")!=t[Xx("0x6a")]||1!=t[Xx("0x7a")])continue;const n=e[Xx("0x5a")](t[Xx("0x9f")],t.position[Xx("0x94")](1));if(!x[Xx("0x4c")]((({data:t})=>t.newRange[Xx("0x43")](n))))for(const{name:t,data:o}of x)if(n.containsRange(o[Xx("0x22")])){e[Xx("0x5f")](t,{range:n}),s=!0;break}}return s})),t[Xx("0x70")][Xx("0x72")].registerPostFixer((e=>{let o=!1;const s=t[Xx("0x10")][Xx("0x9c")](Xx("0x28")).me,r=n[Xx("0x15")]()[Xx("0x56")]((t=>t[Xx("0xb")]&&t[Xx("0x82")]==s)),i=new Set,x=new Set;for(const t of r)if(Xx("0x42")==t[Xx("0x51")])for(const e of t[Xx("0x67")]()){const n=e.getRange()[Xx("0x49")]();if(n)if(n.is(Xx("0x8a"),Xx("0x2a"))&&Zx(n)){t[Xx("0x86")](e[Xx("0x6a")]),i.add(n),o=!0;const s=n.nextSibling,r=n.previousSibling,a=s&&s.is(Xx("0x8a"),"tableCellSuggestion"),c=r&&r.is(Xx("0x8a"),Xx("0x2a"));a&&!i[Xx("0x98")](s)&&x[Xx("0x87")](s),c&&!i.has(r)&&x[Xx("0x87")](r)}else n.is(Xx("0x8a"),Xx("0x78"))&&n[Xx("0x5")]&&(t.removeMarker(e.name),o=!0)}else if(Xx("0x60")==t[Xx("0x51")]){if(!t[Xx("0x19")]||!t[Xx("0x19")].tablePasteChainId)continue;const e=t.attributes[Xx("0xc")];if(e&&Object[Xx("0x1e")](e)[Xx("0x7a")])continue;const n=t[Xx("0x19")][Xx("0xa")];let s=!0,i=!0;for(const e of r)if(e[Xx("0x51")]&&e[Xx("0x51")].startsWith(Xx("0x42"))){if(!e[Xx("0x19")].tablePasteChainId){i=!1;break}if(e.id!=t.id&&e[Xx("0x19")].tablePasteChainId==n){s=!1;break}}i&&s&&(t[Xx("0x3d")](),o=!0)}for(const t of i)e[Xx("0x4b")](t);for(const t of x)e[Xx("0x13")](t);return o})),t[Xx("0x6b")][Xx("0x52")](Xx("0x27"))[Xx("0x7c")]({model:Xx("0x18"),view:(t,e)=>l(t),converterPriority:"high"}),t[Xx("0x6b")][Xx("0x52")](Xx("0x6e"))[Xx("0x7c")]({model:Xx("0x18"),view:(t,e)=>e[Xx("0x4d")][Xx("0x46")]?l(t,!1):null,converterPriority:Xx("0x9a")});const d=t[Xx("0x7b")][Xx("0x6c")];this[Xx("0x1b")](d[Xx("0x72")],Xx("0x16"),((t,e)=>{const n=[];for(const t of d[Xx("0x23")](e.content).getItems())t.is(Xx("0x8a"),"suggestion-td")&&n[Xx("0x55")](t);d[Xx("0x76")]((t=>{for(const e of n)t[Xx("0x40")](t[Xx("0x23")](e),t.createPositionBefore(e)),t.remove(e)}))}))}}function Zx(t){if(t[Xx("0x5")])return!0;const e=t[Xx("0x34")](0);return e.is("element","paragraph")&&e.isEmpty}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Xx("0x29")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["formatBlock","getContainedElement","getSelectedElement","bind","plugins","afterInit","Users","formatGroupId","change","handleSuggestionDescription","getColumnGroupElement","getSuggestions","has","subType","editor","*Format:* resize table","model","resizeTable","_suggestionFactory","data","accept","table","getAttribute","document","resizeColumnWidths","discard","enableCommand","format","commandParams","get","handleResizeTableWidthCommand","registerDescriptionCallback","registerCustomCallback","TableColumnResizeEditing","getSuggestionCallback","getTableColumnsWidths","resizeTableWidth","tableWidth","TrackChangesEditing","columnWidths"];var ea,na;ea=ta,na=436,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{[oa("0x9")](){if(!this[oa("0x12")].plugins[oa("0x10")]("TableColumnResizeEditing"))return;const t=this[oa("0x12")][oa("0x8")][oa("0x21")](oa("0x2"));t[oa("0x1e")](oa("0x0"),this[oa("0x22")][oa("0x7")](this)),t[oa("0x1e")](oa("0x1c"),this[oa("0x22")].bind(this)),t[oa("0x16")][oa("0x24")](oa("0x4"),oa("0x15"),oa("0x18"),t._suggestionFactory[oa("0x26")](oa("0x4"),null,oa("0x1d"))),t._suggestionFactory[oa("0x24")](oa("0x4"),"resizeTable",oa("0x1d"),t._suggestionFactory[oa("0x26")](oa("0x4"),null,"accept")),t._descriptionFactory[oa("0x23")](this[oa("0xd")][oa("0x7")](this))}[oa("0x22")](t,e){const n=this[oa("0x12")][oa("0x8")][oa("0x21")]("TrackChangesEditing"),o=this.editor[oa("0x8")].get(oa("0x25")),s=e[oa("0x19")]||this[oa("0x12")][oa("0x14")][oa("0x1b")].selection[oa("0x6")]();this[oa("0x12")].model[oa("0xc")]((()=>{const r=o[oa("0xe")](s);let i=r?o[oa("0x27")](r):null,x=s[oa("0x1a")](oa("0x1"))||null;const a=e[oa("0x1")]||x,c=e[oa("0x3")]||i,l=this[oa("0x12")][oa("0x8")][oa("0x21")](oa("0xa")).me;for(const t of n[oa("0xf")]()){const e=t[oa("0x5")]();if("resizeTable"===t[oa("0x11")]&&e===s){t.author!==l&&t[oa("0x1d")]();const e=t[oa("0x17")][oa("0x20")];x=e[0].tableWidth,i=e[0][oa("0x3")];break}}t({table:s,tableWidth:a,columnWidths:c}),n.markBlockFormat(s,{commandName:"resizeTableWidth",commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0x15")},[],"resizeTable")}))}handleSuggestionDescription(t){const{data:e}=t;if(e&&oa("0x15")===e[oa("0xb")]){const t=oa("0x13");return{type:oa("0x1f"),content:Yo(this.editor.locale,t)}}}}const ra=["plugins","TrackChangesEditing","afterInit","enableCommand","get","editor","Template"];var ia,xa;ia=ra,xa=409,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{[aa("0x6")](){const t=this[aa("0x2")];t[aa("0x4")].has(aa("0x3"))&&t.plugins[aa("0x1")](aa("0x5"))[aa("0x0")]("insertTemplate")}}const la=["plugins","insertTableOfContents","_descriptionFactory","registerElementLabel","TrackChangesEditing","ELEMENT_TABLE_OF_CONTENTS","get","editor","locale","tableOfContents"];var da,ua;da=la,ua=344,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{afterInit(){const t=this[ga("0x3")];if(!t.commands.get(ga("0x7")))return;t[ga("0x6")][ga("0x2")](ga("0x0")).enableCommand("insertTableOfContents");const e=t[ga("0x6")][ga("0x2")]("TrackChangesEditing"),n=t[ga("0x4")];e[ga("0x8")][ga("0x9")](ga("0x5"),(t=>Yo(n,ga("0x1"),t)))}}const fa=["Title","_splitMarkerName","from","ELEMENT_TITLE","removeMarker","has","plugins","createRange","schema","element","editor","document","get","newRange","start","nodeBefore","isCollapsed","end","forward","differ","TrackChangesEditing","isEqual","title-content","model","_descriptionFactory","updateMarker"];var ha,pa;ha=fa,pa=314,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{afterInit(){const t=this[ba("0x8")];if(!t[ba("0x4")][ba("0x3")](ba("0x18")))return;const e=t[ba("0x4")][ba("0xa")](ba("0x12"));e[ba("0x16")].registerElementLabel(ba("0x14"),(()=>Yo(t.locale,ba("0x1")))),t.model.document.registerPostFixer((n=>{let o=!1;const s=Array[ba("0x0")](t[ba("0x15")][ba("0x9")][ba("0x11")].getChangedMarkers());for(const{name:r,data:i}of s){const{group:s}=e[ba("0x19")](r);if("suggestion"!==s||!i[ba("0xb")])continue;const x=i[ba("0xb")],a=x[ba("0xf")][ba("0xd")];if(!a||!a.is(ba("0x7"),"title-content"))continue;if(!x[ba("0xc")].isTouching(x[ba("0xf")]))continue;const c=t[ba("0x15")][ba("0x6")].getNearestSelectionRange(x.end,ba("0x10"));if(c&&c[ba("0xe")]){const t=n[ba("0x5")](x[ba("0xc")],c[ba("0xc")]);t[ba("0x13")](x)||(n[ba("0x17")](r,{range:t}),o=!0)}o||(n[ba("0x2")](r),o=!0)}return o}))}}const _a=["get","UndoEditing","undo","plugins","redo","TrackChangesEditing","afterInit","enableCommand","has"];var Ta,Ca;Ta=_a,Ca=345,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x3")](){const t=this.editor,e=t[ya("0x0")][ya("0x6")](ya("0x2"));t[ya("0x0")][ya("0x5")](ya("0x7"))&&(e[ya("0x4")](ya("0x8")),e.enableCommand(ya("0x1")))}}const Aa=["TableCaptionEditing","enableCommand","requires","editor","TrackChangesEditing","toggleTableCaption","afterInit","plugins"];var va,Ra;va=Aa,Ra=205,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Sa=function(t,e){return Aa[t-=0]};class Ia extends t.Plugin{static get[Sa("0x5")](){return[Mx]}[Sa("0x1")](){const t=this[Sa("0x6")];t[Sa("0x2")].has(Sa("0x3"))&&t[Sa("0x2")].get(Sa("0x7"))[Sa("0x4")](Sa("0x0"))}}const La=["handleDescriptions","listStyle","length","*Format:* set order to reversed","isFirstBlockOfListItem","config","getSelectedBlocks","has","styles","handleListStartCommand","isListItemBlock","listReversed","filter","selection","plugins","numbered","*Format:* set start index to %0","commandParams","document","get","handleListReversedCommand","model","reversed","markMultiRangeBlockFormat","expandListBlocksToCompleteList","listType","format","editor","enableCommand","_getSuggestionBlocksForListStyle","toUpperCase","*Format:* set order to regular","DocumentListUtils","DocumentListPropertiesUtils","listStart","handleListStyleCommand","list.properties","from","change","replace","getAttribute","push","TrackChangesEditing","_getSuggestionBlocks","bind","startIndex","_descriptionFactory","getListTypeFromListStyleType","commandName","type","DocumentListPropertiesEditing"];var Na,wa;Na=La,wa=392,function(t){for(;--t;)Na.push(Na.shift())}(++wa);const Ma=function(t,e){return La[t-=0]};class Oa extends t.Plugin{afterInit(){if(!this[Ma("0x2b")][Ma("0x1e")][Ma("0x17")](Ma("0xf")))return;const t=this[Ma("0x2b")][Ma("0x15")][Ma("0x23")](Ma("0x1")),e=this[Ma("0x2b")][Ma("0x1e")][Ma("0x23")]("TrackChangesEditing");t[Ma("0x18")]&&e[Ma("0x2c")](Ma("0x11"),this[Ma("0x0")][Ma("0x9")](this)),t[Ma("0x26")]&&e[Ma("0x2c")](Ma("0x1b"),this[Ma("0x24")][Ma("0x9")](this)),t[Ma("0xa")]&&e.enableCommand(Ma("0x32"),this[Ma("0x19")][Ma("0x9")](this)),e[Ma("0xb")].registerDescriptionCallback(this[Ma("0x10")].bind(this))}[Ma("0x0")](t,e={}){const n=this.editor[Ma("0x1e")][Ma("0x23")](Ma("0x7")),o=this[Ma("0x2d")]();this[Ma("0x2b")][Ma("0x25")][Ma("0x3")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:Ma("0x11"),commandParams:[{type:e[Ma("0xe")]}],formatGroupId:Ma("0x11")})}))}[Ma("0x24")](t,e={}){const n=this[Ma("0x2b")][Ma("0x1e")][Ma("0x23")](Ma("0x7")),o=this[Ma("0x2b")].plugins[Ma("0x23")]("DocumentListUtils"),s=this._getSuggestionBlocks((t=>o[Ma("0x1a")](t)&&Ma("0x1f")===t[Ma("0x5")]("listType")));null!==s&&this[Ma("0x2b")][Ma("0x25")][Ma("0x3")]((()=>{n[Ma("0x27")](s,{commandName:Ma("0x1b"),commandParams:[{reversed:e[Ma("0x26")]}],formatGroupId:Ma("0x1b")})}))}[Ma("0x19")](t,e={}){const n=this.editor.plugins[Ma("0x23")](Ma("0x7")),o=this[Ma("0x2b")][Ma("0x1e")][Ma("0x23")](Ma("0x30")),s=this[Ma("0x8")]((t=>o.isListItemBlock(t)&&"numbered"===t[Ma("0x5")](Ma("0x29"))));null!==s&&this.editor[Ma("0x25")][Ma("0x3")]((()=>{n[Ma("0x27")](s,{commandName:Ma("0x32"),commandParams:[{startIndex:e[Ma("0xa")]}],formatGroupId:"listStart"})}))}[Ma("0x10")](t){const e=this[Ma("0x2b")].locale,{data:n}=t;if(!n)return;let o,s;switch(n[Ma("0xd")]){case Ma("0x11"):o="*Change to:* %0",s={type:Ma("0x2a"),content:Yo(e,o,Yo(e,this._getTranslationKeyForListStyle(n[Ma("0x21")][0].type)))};break;case"listReversed":o=n[Ma("0x21")][0].reversed?Ma("0x13"):Ma("0x2f"),s={type:"format",content:Yo(e,o)};break;case Ma("0x32"):o=Ma("0x20"),s={type:Ma("0x2a"),content:Yo(e,o,n[Ma("0x21")][0].startIndex)}}return s}[Ma("0x2d")](){const t=this.editor[Ma("0x1e")][Ma("0x23")](Ma("0x30"));let e=Array[Ma("0x2")](this[Ma("0x2b")][Ma("0x25")][Ma("0x22")][Ma("0x1d")][Ma("0x16")]());return e[Ma("0x6")](...t[Ma("0x28")](e)),e=[...new Set(e)],e}_getSuggestionBlocks(t){const e=this[Ma("0x2b")][Ma("0x1e")][Ma("0x23")](Ma("0x30"));let n=Array.from(this[Ma("0x2b")].model[Ma("0x22")][Ma("0x1d")][Ma("0x16")]())[Ma("0x1c")](t);if(!n[Ma("0x12")])return null;n=e[Ma("0x28")](n);const o=[];for(const t of n)e[Ma("0x14")](t)&&o.push(t);return o}_getTranslationKeyForListStyle(t){return"ELEMENT_"+this[Ma("0x2b")].plugins.get(Ma("0x31"))[Ma("0xc")](t)[Ma("0x2e")]()+"_LIST_"+t[Ma("0x2e")]()[Ma("0x4")](/-/g,"_")}}const Fa=["registerCustomCallback","tableBackgroundColor","*Format:* change table properties","getSuggestionCallback","findAncestor","getFirstPosition","_suggestionFactory","TrackChangesEditing","_getSuggestion","markBlockFormat","formatBlock","tableCellHeight","getContainedElement","format","tableWidth","join","tableCellHorizontalAlignment","commandParams","tableCellProperties","pluginName","TablePropertiesEditing","getAttribute","removeAttribute","model","accept","tableCellBorderColor","getSelectionAffectedTableCells","selection","TableCellPropertiesEditing","get","_handlePropertyChange","subType","getSuggestions","tableBorderWidth","editor","handleSuggestionDescription","has","tableCellVerticalAlignment","batch","tableCellPadding","tableBorderColor","tableCellBorderWidth","tableBorderStyle","locale","tableCellBackgroundColor","plugins","start","_descriptionFactory","tableProperties","document","TrackChangesTableProperties","enqueueChange","discard","handleDiscardAction"];var Pa,Da;Pa=Fa,Da=241,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{constructor(t){super(t),this[Ba("0x17")]=[Ba("0xf"),Ba("0x11"),Ba("0x8"),"tableAlignment",Ba("0x2b"),"tableHeight",Ba("0x1e")],this[Ba("0x2f")]=[Ba("0x0"),"tableCellBorderStyle",Ba("0x10"),Ba("0xe"),"tableCellWidth",Ba("0x28"),Ba("0x13"),Ba("0x2d"),Ba("0xc")]}static get[Ba("0x30")](){return Ba("0x19")}afterInit(){const t=this[Ba("0x9")][Ba("0x14")][Ba("0x4")](Ba("0x24"));if(this[Ba("0x9")].plugins[Ba("0xb")](Ba("0x31"))){for(const e of this[Ba("0x17")])t.enableCommand(e,((t,n)=>{const o=this.editor[Ba("0x34")][Ba("0x18")].selection[Ba("0x22")]()[Ba("0x21")]("table");this[Ba("0x5")](e,[o],this.tableProperties,Ba("0x17"),t,n)}));t[Ba("0x23")][Ba("0x1d")](Ba("0x27"),"tableProperties","accept",t[Ba("0x23")][Ba("0x20")](Ba("0x27"),null,Ba("0x1b"))),t[Ba("0x23")][Ba("0x1d")](Ba("0x27"),Ba("0x17"),Ba("0x1b"),((t,e)=>this[Ba("0x1c")](this.tableProperties,t,e))),t[Ba("0x23")][Ba("0x1d")](Ba("0x27"),Ba("0x17"),Ba("0x2c"),(()=>!1))}if(this[Ba("0x9")][Ba("0x14")][Ba("0xb")](Ba("0x3"))){for(const e of this.tableCellProperties)t.enableCommand(e,((t,n)=>{const o=this[Ba("0x9")][Ba("0x14")][Ba("0x4")]("TableUtils")[Ba("0x1")](this.editor[Ba("0x34")].document[Ba("0x2")]);this[Ba("0x5")](e,o,this[Ba("0x2f")],"tableCellProperties",t,n)}));t[Ba("0x23")][Ba("0x1d")](Ba("0x27"),Ba("0x2f"),Ba("0x35"),t[Ba("0x23")][Ba("0x20")](Ba("0x27"),null,"discard")),t._suggestionFactory[Ba("0x1d")](Ba("0x27"),Ba("0x2f"),Ba("0x1b"),((t,e)=>this[Ba("0x1c")](this[Ba("0x2f")],t,e))),t[Ba("0x23")][Ba("0x1d")](Ba("0x27"),Ba("0x2f"),Ba("0x2c"),(()=>!1))}t[Ba("0x16")].registerDescriptionCallback((t=>this[Ba("0xa")](t)))}_handlePropertyChange(t,e,n,o,s,r){const i=this[Ba("0x9")][Ba("0x14")][Ba("0x4")](Ba("0x24"));this[Ba("0x9")][Ba("0x34")][Ba("0x1a")](r[Ba("0xd")],(()=>{for(const t of e)if(this[Ba("0x25")](t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0x32")](o);void 0!==n&&(e[o]=n)}s(r),i[Ba("0x26")](t,{commandParams:[e]},[],o)}}))}handleDiscardAction(t,e,n){const o=e[0][Ba("0x15")].nodeAfter,s=n[Ba("0x2e")][0];this[Ba("0x9")][Ba("0x34")].change((e=>{for(const n of t)void 0!==s[n]?e.setAttribute(n,s[n],o):e[Ba("0x33")](n,o)}))}handleSuggestionDescription(t){if(t.data)switch(t[Ba("0x6")]){case Ba("0x17"):return{type:Ba("0x2a"),content:Yo(this[Ba("0x9")][Ba("0x12")],Ba("0x1f"))};case Ba("0x2f"):return{type:Ba("0x2a"),content:Yo(this[Ba("0x9")][Ba("0x12")],"*Format:* change table cell properties")}}}[Ba("0x25")](t,e){const n=this[Ba("0x9")].plugins.get("TrackChangesEditing");for(const o of n[Ba("0x7")]({skipNotAttached:!0})){const n=o[Ba("0x29")]();if(o[Ba("0x6")]===e&&n===t)return o}return null}}const Ua=["removeClass","isLocal","containerElement","formatInline:join","getAllAdjacentSuggestions","enableCommand","bindElementToMarker","suggestionUnloaded","insertion:join","_commentsRepository","getChangedMarkers","trackChanges","locale","open","getCustomProperty","push","writer","dataDowncast","editing","getIntersection","getItems","isSelectable","isObject","nodeAfter","markMultiRangeBlockFormat","pluginName","discardAllSuggestions","commands","before","updateSuggestion","markerToHighlight","start","addSuggestionData","_breakSuggestionMarker","addSuggestion","document","formatInline","execute","formatBlock:discard","containsRangeInObject","removeMarker:suggestion:formatBlock","containsRange","insertion:accept","ready","markerName","insertion","getSuggestionCallback","isIntersectingWithRange","removeMarker","fromCharCode","filter","creator","_customCallbacks","isNextTo","rejected","PendingActions","addUser","split","commentThread","change","formatBlock:","authoredAt","markMultiRangeInsertion","createSelection","showSuggestionHighlights","value","clone","getUser","parent","length","_adapter","some","addMarkerName","stopListening","setAttribute","howMany","always","getSuggestion","accepted","$textProxy","createPositionAt","end","removeComment","ck-suggestion-marker--active","never","CommentsRepository","stop","deletion:chain","backward","requires","join","includes","skipNestingCheck","range","accept","documentSelection","isExternal","subType","attributes","getFirstRange","isBefore","fetchCommentThread","options","_updateSuggestionData","differ","rootName","change:_saved","deletion","_joinWithAdjacentSuggestions","acceptSelectedSuggestions","data","hasComments","collaboration.channelId","authorName","low","originalSuggestionId","widget","_rangeIsInLocalUserInsertion","ck-suggestion-marker-formatBlock","_handleNewSuggestionMarker","ck-suggestion-marker-","track-changes-suggestion-data-mismatch","from","toViewElement","head","toJSON","_findSuggestions","getAncestors","track-changes-adapter-already-set","_checkSuggestionCorrectness","_addSuggestionMarker","move","has","addClass","createPositionAfter","fromRange","removeAttribute","author","position","_suggestionFactory","getShiftedBy","isMultiRange","previous","delete","_isForcedDefaultExecutionBlock","map","addMarker:suggestion:formatBlock","_createSuggestion","getLastMatchingPosition","detach","track-changes-adapter-missing-getsuggestion","update:suggestion","name","$graveyard","containsItem","discardSelectedSuggestions","formatBlock:accept","enqueueChange","discard","suggestion","insertContent","dataToMarker","insertion:","sort","containsPosition","registerPostFixer","get","addComment","clear","_splitMarkerName","isEqual","activeMarkers","_joinSuggestions","values","group","fire","_onDiscard","schema","_model","markInsertion","_removeSuggestion","addRange","after","_suggestions","resolve","_suggestionState","isTouching","dataReady","createdAt","next","marker-count","formatInline:","markBlockFormat","for","_trackFormatChanges","markMultiRangeDeletion","catch","then","notReady","selection","trackChangesCommand","_cutOutSuggestionMarker","upcast","addHighlight","editor","formatBlock","registerCustomCallback","removeMarkers","_setSuggestionData","applyOperation","getAttribute","_enabledCommands","getNearestSelectionRange","setTo","isCollapsed","deleteContent","isDocumentOperation","isOwn","buildSuggestion","_editor","listenTo","createPositionBefore","consumable","element","external:","isBlock","removed","adapter","TrackChangesEditing","lowest","createElement","multipleBlocks","splice","getMultiRangeId","isRemovable","isInsideObject","init","data-suggestion","model","suggestion-type","_setSuggestionRange","markerReady","trackChanges.mergeNestedSuggestions","createRange","config","root","error-saving-suggestion-data-suggestion-discarded","forceDefaultExecution","return","targetPosition","getDifference","_addThreadToSuggestion","markerToData","size","forward","commandName","_refreshSuggestionsChain","change:activeMarkers","_defaultCallbacks","formatInline:accept","addMarker:suggestion","suggestion:","track-changes-command-not-found","getFirstMarker","updateMarker","add","isUndo","set","isInContent","formatGroupId","rethrowUnexpectedError","item","_registerDefaultCallbacks","conversion","getWalker","consume","enableReadOnlyMode","isAtEnd","isLimit","_getAuthorFromId","getRanges","formatInline:discard","discardSuggestion","elementEnd","unbindElementFromMarkerName","mapper","oldRange","batch","type","_mergeNestedSuggestions","markInlineFormat","suggestionLoaded","getSuggestions","chain","@external","multi","Users","every","define","track-changes-suggestion-not-found","acceptAllSuggestions","setSelection","elementStart","nodeBefore","getChanges","deletion:","high","isAfter","createRangeIn","ck-suggestion-marker","acceptSuggestion","highest","_saved","plugins","addMarker","editingDowncast","_getSuggestionData","markerNameToElements","formatBlock:join","newRange","normal"];var Ga,Ha;Ga=Ua,Ha=261,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Wa extends t.Plugin{static get[za("0x95")](){return[za("0x91"),r.Users,t.PendingActions,cs,Cs,Rs,Ms,Bs,Ws,Js,er,Oa,xr,ur,br,yr,Lr,Pr,Gr,Kr,Qr,ni,xi,ui,pi,Ci,Ri,Oi,ji,Wi,$i,tx,ix,ux,px,yx,Sx,Mx,jx,Wx,Ia,Qx,sa,ma,ja,ca,Ea,ka]}static get[za("0x55")](){return za("0x120")}constructor(t){function e(t){return t[za("0xcd")]((t=>String[za("0x6d")](t)))[za("0x96")]("")}super(t),this.set(za("0xe7"),[]),this.on(za("0x13d"),((e,n,o,s)=>{this._model[za("0x77")]((()=>{for(const e of[...s,...o])this[za("0xee")].markers.has(e)&&t[za("0x4e")].reconvertMarker(e)}))})),this._descriptionFactory=new ss(this[za("0x108")][za("0x12a")][za("0xed")],this[za("0x108")][za("0x48")]),this[za("0x82")]=null,this[za("0xc7")]=new Va(this.editor),this[za("0xf3")]=new Map,this[za("0x45")]=t[za("0x34")][za("0xe2")](za("0x91")),this[za("0x10f")]=new Set,this[za("0xee")]=this[za("0x108")][za("0x12a")],this._suggestionState=new WeakMap,this[za("0xcc")]=!1,t[za("0x130")][za("0x25")]("trackChanges.trackFormatChanges","default"),this._trackFormatChanges=t[za("0x130")][za("0xe2")]("trackChanges.trackFormatChanges"),t[za("0x130")][za("0x25")](za("0x12e"),!0),this[za("0x1c")]=t.config[za("0xe2")](za("0x12e")),this[za("0x104")]=new u(t,this[za("0x10f")]),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,49,54,51,54])}[za("0x128")](){const t=this[za("0x108")];t[za("0xc")].for("editingDowncast")[za("0x5a")]({model:za("0xdb"),view:t=>{const{id:e,type:n}=this[za("0xe5")](t[za("0x68")]),o=["ck-suggestion-marker",za("0xb4")+n];let s=3e3;return this.activeMarkers.includes(t[za("0x68")])&&(o[za("0x4b")](za("0x8f")),s=3010),za("0xa7")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[za("0xc")][za("0xfd")](za("0x4d"))[za("0x4")]((e=>{e.on(za("0x140"),((e,n,o)=>{if(!o[za("0xa2")][za("0x7c")])return;const s=n[za("0xa")];if(!s)return;const r=o[za("0x18")][za("0xb7")](s);t[za("0x12a")][za("0xed")][za("0x52")](s)&&r&&!r[za("0x4a")](za("0xb0"))&&r.is(za("0x3e"))&&(0,x.toWidget)(r,o[za("0x4c")])}),{priority:"high"})})),t.conversion[za("0xfd")](za("0x4d")).markerToHighlight({model:za("0xdb"),view:(t,e)=>{if(!e[za("0xa2")][za("0x7c")])return null;const{type:n}=this._splitMarkerName(t[za("0x68")]);return{classes:[za("0x30"),za("0xb4")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o.item)return;if(o[za("0xa")].is(za("0x103")))return void s[za("0x11a")][za("0xe")](o[za("0xa")],n[za("0xd4")]);const r=s[za("0x18")][za("0xb7")](o[za("0xa")]);if(!o[za("0xa")].is("element")||!t[za("0x12a")][za("0xed")].isBlock(o[za("0xa")])||r[za("0x4a")]("addHighlight"))return;const{id:i}=this._splitMarkerName(o[za("0x68")]);s[za("0x4c")][za("0xc1")]([za("0x30"),"ck-suggestion-marker-formatBlock"],r),s[za("0x4c")][za("0x86")](za("0x129"),i,r),s[za("0x18")][za("0x42")](r,o.markerName),e&&(this[za("0xe7")][za("0x97")](o[za("0x68")])?s[za("0x4c")][za("0xc1")](za("0x8f"),r):s[za("0x4c")][za("0x3c")]("ck-suggestion-marker--active",r));for(const e of t[za("0x12a")][za("0x2f")](o[za("0xa")])[za("0x50")]())s[za("0x11a")][za("0xe")](e,n.name);s[za("0x11a")].consume(o.item,n.name)};t.conversion[za("0xfd")](za("0x4d")).add((t=>{t.on(za("0xce"),((t,e,o)=>{o[za("0xa2")][za("0x7c")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:za("0x32")})})),t[za("0xc")][za("0xfd")](za("0x4d"))[za("0x138")]({model:"suggestion",view:(t,e)=>e[za("0xa2")][za("0x7c")]?null:{group:"suggestion",name:t.substr(11)}}),t[za("0xc")][za("0xfd")](za("0x106")).elementToElement({view:{name:za("0xdb"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=za("0x0")+t[za("0x10e")](za("0x12b"))+":"+t[za("0x10e")]("id");return t[za("0x10e")](za("0xfa"))&&(n+=":"+t.getAttribute("marker-count")),e[za("0x122")]("$marker",{"data-name":n})}}),t.conversion[za("0xfd")](za("0x106"))[za("0xdd")]({view:za("0xdb")}),t.conversion[za("0xfd")]("editingDowncast")[za("0x4")]((t=>{t.on(za("0xce"),n(),{priority:za("0x2d")})})),t[za("0xc")][za("0xfd")](za("0x36")).add((t=>{t.on(za("0x64"),((t,e,n)=>{const o=n[za("0x18")][za("0x38")](e.markerName);if(o)for(const t of o)t[za("0x4a")](za("0x107"))||(n[za("0x4c")].removeClass(["ck-suggestion-marker",za("0xb2"),"ck-suggestion-marker--active"],t),n[za("0x4c")][za("0xc4")](za("0x129"),t),n[za("0x18")][za("0x17")](t,e[za("0x68")]))}),{priority:za("0x2d")})})),t[za("0x12a")][za("0x5f")][za("0xe1")]((e=>{let n=!1;const o=Array[za("0xb6")](t[za("0x12a")].document[za("0xa4")][za("0x46")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this._splitMarkerName(x);if(za("0xdb")!==o)continue;const d=this[za("0xf3")][za("0xe2")](l);if(null!=a[za("0x3a")])if("formatInline"==c&&(n=n||Xa(a[za("0x3a")],x,e,t[za("0x12a")].schema)),a[za("0x3a")][za("0x112")]||za("0xd5")==a[za("0x3a")][za("0x131")][za("0xa5")]||za("0x109")==c&&!Ja(a[za("0x3a")])||za("0xa7")==c&&(qa(i=a[za("0x3a")])||(r=i)[za("0x5b")].parent==r[za("0x8d")].nodeBefore&&r[za("0x5b")].isAtEnd))e.removeMarker(x),n=!0;else{if(!d||!d[za("0x7")])continue;s[za("0x4")](d)}}var r,i;return s[za("0x139")]>0&&(n=!!this[za("0xa8")](s)||n),n})),t[za("0x12a")][za("0x5f")][za("0xe1")]((e=>{let n=!1;for(const o of t[za("0x12a")].document[za("0xa4")][za("0x2b")]()){if("insert"!=o[za("0x1b")])continue;const s=o[za("0xc6")][za("0xc8")](o[za("0x81")]);if(s[za("0x10")])for(const r of this[za("0xf3")][za("0xe9")]()){if(r[za("0xc9")]||!r[za("0x7")])continue;if("formatBlock"!=r.type)continue;const i=r[za("0x9f")]();if(i.start[za("0x80")]!=i[za("0x8d")][za("0x80")]&&i[za("0x8d")][za("0xe6")](o[za("0xc6")])){const o=t[za("0x12a")].createRange(i[za("0x5b")],s);e[za("0x3")](r[za("0x2")](),{range:o}),n=!0}}}return n})),t[za("0x12a")].markers.on(za("0xd3"),((t,e,n)=>{if(null==n){const{id:t}=this[za("0xe5")](e[za("0xd4")]),n=this[za("0xf3")][za("0xe2")](t);n&&n.addMarkerName(e[za("0xd4")])}})),t[za("0x12a")].document.on("change:data",(()=>{const e=Array[za("0xb6")](t[za("0x12a")][za("0x5f")].differ[za("0x46")]()).filter((t=>za("0xdb")===this[za("0xe5")](t[za("0xd4")])[za("0xea")]));if(0===e[za("0x81")])return;e[za("0xdf")](((t,e)=>{const n=t[za("0xaa")][za("0x19")],o=e[za("0xaa")].oldRange;return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[za("0x5b")][za("0xa0")](o.start)?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[za("0xe5")](t);if(null===s[za("0x19")]){const e=this[za("0xb3")](t);o.add(e)}else{const t=this[za("0xf3")][za("0xe2")](e);null!==s[za("0x3a")]||t.isInContent?(n.add(t[za("0xb8")]),o[za("0x4")](t)):this[za("0xf0")](t)}}o[za("0x139")]>0&&this[za("0x13c")](o);for(const t of n)this[za("0xeb")]("suggestionChanged",t)})),t[za("0x12a")].on(za("0x10d"),((e,n)=>{const o=n[0];if(!this[za("0xf3")].size)return;if(!o[za("0x114")])return;if(o[za("0x1a")][za("0x5")]||!o.batch[za("0x3d")])return;let s,r;switch(o[za("0x1b")]){case"insert":s=t.model[za("0x8c")](o[za("0xc6")]),r=s[za("0xc8")](o[za("0x87")]);break;case za("0x75"):s=t[za("0x12a")][za("0x8c")](o.splitPosition),r=t.model.createPositionAt(o.moveTargetPosition);break;case za("0xbf"):s=t[za("0x12a")].createPositionAt(o[za("0x135")]),r=s[za("0xc8")](o[za("0x87")]);break;default:return}const i=t.model[za("0x12f")](s,r);t[za("0x12a")].change((()=>{for(const{suggestion:t,meta:e}of this[za("0xba")](i)){if(t[za("0xc9")])continue;if(za("0x60")==t[za("0x1b")])continue;const n=t.data&&t.data[za("0x123")];(za("0x109")!=t.type||"split"==o[za("0x1b")]&&!n)&&(e[za("0x63")]||"insertion"==t[za("0x1b")]&&e[za("0x115")]||t[za("0x9f")]()[za("0x65")](i)&&this[za("0x5d")](t,s,r))}}))}),{priority:za("0x121")}),t.model.on(za("0x113"),((e,n)=>{const o=n[0],s=n[1];if(s&&s[za("0x133")])return;if(this._isForcedDefaultExecutionBlock)return;if(!this[za("0x104")][za("0x7d")])return;if(o.isCollapsed)return;const r=t[za("0x12a")][za("0xed")],{start:i,end:x}=o[za("0x9f")](),a=i[za("0x53")]&&r[za("0x11")](i[za("0x53")])?null:r[za("0x110")](i,za("0x13a")),c=x.nodeBefore&&r[za("0x11")](x[za("0x2a")])?null:r[za("0x110")](x,za("0x94")),l=t[za("0x12a")][za("0x12f")](a?a[za("0x5b")]:i,c?c[za("0x8d")]:x);t[za("0x12a")][za("0x77")]((e=>{this.markDeletion(l);const n=t[za("0x12a")][za("0xed")][za("0x110")](l[za("0x5b")]);o.is(za("0x9b"))?e.setSelection(n):o[za("0x111")](n)})),e.stop()}),{priority:e.priorities[za("0x3b")]+10}),t[za("0x12a")].on(za("0xdc"),((e,n)=>{const o=n[n[za("0x81")]-1];o&&o[za("0x133")]||this[za("0xcc")]||this[za("0x104")].value&&(t[za("0x12a")][za("0x77")]((()=>{let o=t[za("0x12a")][za("0xdc")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[za("0x134")]=o[za("0x7e")]();const s=o[za("0x8d")][za("0x2a")],r=t[za("0x12a")][za("0xed")];s&&r[za("0x11d")](s)&&!r[za("0x52")](s)&&(o=t[za("0x12a")][za("0x12f")](o[za("0x5b")],t[za("0x12a")][za("0x8c")](s,za("0x8d")))),this[za("0xef")](o)})),e[za("0x92")]())}),{priority:"high"}),this[za("0x108")][za("0x57")][za("0x4")](za("0x47"),this[za("0x104")]),this[za("0x41")]("trackChanges");const o=new p(t,this[za("0xf3")]);t[za("0x57")][za("0x4")]("acceptSuggestion",o),this[za("0x41")](za("0x31"));const s=new C(t,this[za("0xf3")]);t[za("0x57")].add(za("0x15"),s),this[za("0x41")](za("0x15")),t[za("0x57")][za("0x4")](za("0x27"),new F(t,o,this[za("0xf3")])),this[za("0x41")](za("0x27")),t[za("0x57")][za("0x4")](za("0x56"),new F(t,s,this[za("0xf3")])),this[za("0x41")](za("0x56")),t.commands[za("0x4")](za("0xa9"),new U(t,o,this[za("0xf3")])),this[za("0x41")](za("0xa9")),t.commands[za("0x4")](za("0xd7"),new U(t,s,this[za("0xf3")])),this[za("0x41")](za("0xd7"));const r=t[za("0x34")].get(za("0x91"));this[za("0x118")](r,za("0xe3"),((t,{threadId:e})=>{const n=this._suggestions[za("0xe2")](e);n&&n[za("0x76")]&&1===n[za("0x76")][za("0x81")]&&this[za("0xa3")](e,{hasComments:!0})}),{priority:za("0xae")}),this[za("0x118")](r,za("0x8e"),((t,{threadId:e})=>{const n=this._suggestions.get(e);n&&n.commentThread&&!n[za("0x76")][za("0x81")]&&this[za("0xa3")](e,{hasComments:!1})}),{priority:za("0xae")})}set[za("0x11f")](t){if(this._adapter)throw new e.CKEditorError(za("0xbc"),this);this[za("0x82")]=t}get[za("0x11f")](){return this[za("0x82")]}[za("0x1f")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions[za("0xe9")]())t&&!e[za("0x7")]||n[za("0x4b")](e);return e?n[za("0xcd")]((t=>t[za("0xb9")]())):n}[za("0x89")](t){const n=this[za("0xf3")][za("0xe2")](t);if(!n)throw new e.CKEditorError(za("0x26"),this);return n}hasSuggestion(t){return this[za("0xf3")][za("0xc0")](t)}[za("0x5c")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[za("0x1b")][za("0x75")](":"),i=this[za("0xf3")].get(n)||this[za("0xcf")](s,r,n,e,o);if(this[za("0x137")](i),this[za("0xbd")](i,s,r||null,e),i.createdAt=t[za("0xf8")],o&&o["@external"]){const t=o[za("0x21")],e=this._getExternalAuthor(t[za("0xad")]);i[za("0x79")]=t[za("0xf8")],i.author=e,i[za("0x9c")]=!0}else i[za("0x79")]=t[za("0xf8")];switch(t.data&&(i[za("0xaa")]=t[za("0xaa")]),t[za("0x9e")]&&(i[za("0x9e")]=t[za("0x9e")]),this[za("0x82")]&&this._adapter[za("0x5e")]||(i[za("0x33")]=!0),this[za("0xf5")].get(i)){case"notReady":this._suggestionState.set(i,za("0xf7"));break;case"markerReady":i[za("0x7")]?(this[za("0xf5")][za("0x6")](i,"ready"),this.fire("suggestionLoaded",i)):this[za("0xf5")].set(i,za("0x11e"))}return i}[za("0x31")](t){this[za("0x133")]((()=>{this[za("0x108")].model[za("0x77")]((()=>{for(const e of t[za("0x40")]())e[za("0x9a")]()}))}))}discardSuggestion(t){this.forceDefaultExecution((()=>{this[za("0x108")][za("0x12a")][za("0x77")]((()=>{for(const e of t[za("0x40")]())e[za("0xda")]()}))}))}[za("0x41")](t,n){const o=this[za("0x108")][za("0x57")][za("0xe2")](t);if(!o)throw new e.CKEditorError(za("0x1"),this,{commandName:t});this[za("0x10f")][za("0x4")](o),n&&o.on(za("0x61"),((t,e)=>{this[za("0x104")][za("0x7d")]&&(this._isForcedDefaultExecutionBlock||e[za("0x81")]>0&&e[e[za("0x81")]-1]&&e[e[za("0x81")]-1][za("0x133")]||(n(((...t)=>o[za("0x61")](...t,{forceDefaultExecution:!0})),...e),t[za("0x92")]()))}),{priority:za("0x2d")})}[za("0x133")](t){let n,o;const s=this[za("0xcc")];this[za("0xcc")]=!0;try{n=t()}catch(t){o=t}return s||(this[za("0xcc")]=!1),o&&e.CKEditorError[za("0x9")](o,this),n}[za("0xef")](t,n=null,o={}){if(t[za("0x112")])return null;const s=this[za("0x108")][za("0x34")][za("0xe2")]("Users").me;for(const{suggestion:e,meta:o}of this._findSuggestions(t,za("0x69")))if(o.isOwn){if(!o.isNextTo){if(!this[za("0x1c")]&&o[za("0x63")])continue;return e}if(n==e.subType){const n=e[za("0x9f")]();return n.start.isEqual(t[za("0x8d")])?this[za("0x12c")](e,this[za("0xee")].createRange(t.start,n[za("0x8d")])):this._setSuggestionRange(e,this[za("0xee")][za("0x12f")](n[za("0x5b")],t.end)),e}}const r=(0,e.uid)(),i=s.id,x=n?za("0xde")+n:za("0x69"),a=this._setSuggestionData({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0xbe")](x,r,i,t),a}[za("0x7a")](t,n=za("0x22"),o={}){const s=this.editor.plugins[za("0xe2")](za("0x23")).me,r=this._suggestionFactory[za("0x6a")](za("0x69"),n,za("0x96"));for(const e of this[za("0x1f")]())if(e[za("0xc5")].id==s.id&&za("0x69")==e[za("0x1b")]&&e[za("0x9d")]==n&&(r(e[za("0x13")](),t)||r(t,e[za("0x13")]()))){for(const n of t)e.addRange(n);return e}if(this._mergeNestedSuggestions)for(const e of t)for(const{suggestion:n,meta:o}of this._findSuggestions(e,"insertion")){if(!o.isOwn)continue;let e=!0;for(const o of n.getRanges())for(const n of t)if(!o[za("0x65")](n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=s.id,a=za("0xde")+n,c=this[za("0x10c")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[za("0xbe")](a,i,x,e,Zo[za("0x125")]());return c}[za("0x1d")](t,n,o=null,s={}){if(o=o||$a(n),t[za("0x112")])return null;if("never"===this[za("0xfe")]){const e=this[za("0xc7")][za("0x6a")]("formatInline",o,za("0x9a"));return this.forceDefaultExecution((()=>e([t],n,s))),null}const r=this[za("0x108")][za("0x34")].get(za("0x23")).me,i=[];if(za("0x88")!==this[za("0xfe")])for(const{suggestion:e,meta:n}of this[za("0xba")](t,za("0x69")))n.isOwn&&!n.isInsideObject&&i.push(...e[za("0x13")]());const x=function(t,e){const n=[];for(const o of e){const e=t[za("0x4f")](o);e&&n[za("0x4b")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[za("0x81")];){const o=n[e][za("0x136")](t);n[za("0x124")](e,1,...o),e+=o[za("0x81")]}}return n}(t,i);x[za("0x81")]&&this[za("0xee")][za("0x77")]((()=>{for(const t of x){const e=this._suggestionFactory[za("0x6a")](za("0x60"),o,za("0x9a"));this[za("0x133")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t.start,a=t[za("0x8d")];for(const{suggestion:e,meta:n}of this[za("0xba")](t,za("0x60"))){if(!n[za("0x115")])continue;if(e.subType!=o)continue;const s=e[za("0x9f")]();if(s[za("0x65")](t,!0))return null;x=x[za("0xa0")](s.start)?x:s[za("0x5b")],a=a[za("0x2e")](s.end)?a:s.end,i?s[za("0x5b")][za("0xa0")](i[za("0x9f")]()[za("0x5b")])?(i.removeMarkers(),i=e):e[za("0x10b")]():i=e}const c=this._model[za("0x12f")](x,a);if(i)this[za("0x12c")](i,c);else{const t=(0,e.uid)(),i=r.id;this._setSuggestionData({id:t,type:za("0xfb")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[za("0xbe")](za("0xfb")+o,t,i,c)}}return null}[za("0xfc")](t,n,o=[],s=null,r={}){n[za("0x8")]||(n[za("0x8")]=n[za("0x13b")]),n[za("0x123")]=t.is("range"),s=s||$a(n);const i=o.map((t=>Qa(t,this[za("0xee")]))),x=t.is(za("0x99"))?t:Qa(t,this._model);if(za("0x90")===this[za("0xfe")]){const t=this[za("0xc7")].getSuggestionCallback(za("0x109"),s,za("0x9a"));return this[za("0x133")]((()=>t([x],n,r))),null}i[za("0x4b")](x);let a=!0;for(const t of i)if(!this[za("0xb1")](t)){a=!1;break}if(a&&za("0x88")!==this[za("0xfe")]){const t=this[za("0xc7")].getSuggestionCallback(za("0x109"),s,za("0x9a"));return this[za("0x133")]((()=>t([x],n,r))),null}let c=null,l=x.start,d=x.end;for(const{suggestion:t,meta:e}of this[za("0xba")](x,"formatBlock")){if(!e.isOwn||e[za("0x71")]||e[za("0x63")]||e[za("0x127")])continue;if(t[za("0xaa")].formatGroupId!=n[za("0x8")])continue;const o=t[za("0x9f")]();if(t[za("0x9d")]==s){if(o[za("0x65")](x,!0))return null;l=l.isBefore(o[za("0x5b")])?l:o.start,d=d.isAfter(o[za("0x8d")])?d:o[za("0x8d")],c?o.start[za("0xa0")](c[za("0x9f")]()[za("0x5b")])?(c.removeMarkers(),c=t):t[za("0x10b")]():c=t}else{const e=x[za("0x4f")](o);this[za("0x105")](t,e)}}const u=this[za("0x108")].plugins.get(za("0x23")).me,g=(0,e.uid)(),m=u.id;if(c)return this[za("0x12c")](c,this[za("0xee")][za("0x12f")](l,d)),c;{const t=this[za("0x10c")]({id:g,type:za("0x78")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[za("0xbe")](za("0x78")+s,g,m,this[za("0xee")].createRange(l,d)),t}}[za("0x54")](t,n,o=[],s=null,r={}){n[za("0x8")]||(n[za("0x8")]=n.commandName);const i=t[0];n.multipleBlocks=i.is(za("0x99")),s=s||$a(n);const x=o[za("0xcd")]((t=>Qa(t,this._model))),a=i.is("range")?t:t[za("0xcd")]((t=>Qa(t,this[za("0xee")])));if(za("0x90")===this[za("0xfe")]){const t=this._suggestionFactory[za("0x6a")](za("0x109"),s,za("0x9a"));return this[za("0x133")]((()=>t(a,n,r))),null}x[za("0x4b")](...a);let c=!0;for(const t of x)if(!this[za("0xb1")](t)){c=!1;break}if(c&&za("0x88")!==this[za("0xfe")]){const t=this[za("0xc7")][za("0x6a")]("formatBlock",s,"accept");return this[za("0x133")]((()=>t(a,n,r))),null}const l=this[za("0x108")].plugins[za("0xe2")](za("0x23")).me;for(const t of this.getSuggestions()){if(t[za("0xc5")].id!=l.id)continue;if(za("0x109")!=t.type||t[za("0xaa")][za("0x8")]!=n[za("0x8")])continue;const e=t.subType==s;for(let n=0;n<a[za("0x81")];n++){const o=a[n];for(const s of t.getMarkers()){const r=s.getRange();if(o[za("0xe6")](r)){e?(a[za("0x124")](n,1),n--):t[za("0x6c")](s.name);break}}}}if(0==a.length)return null;const d=this._suggestionFactory[za("0x6a")]("formatBlock",s,za("0x96"));for(const t of this[za("0x1f")]())if(t[za("0xc5")].id==l.id&&"formatBlock"==t[za("0x1b")]&&t[za("0xaa")][za("0x8")]==n[za("0x8")]&&t[za("0x9d")]==s&&(d(t[za("0x13")](),a)||d(a,t[za("0x13")]()))){for(const e of a)t[za("0xf1")](e);return t}const u=(0,e.uid)(),g=l.id,m=za("0x78")+s,f=this._setSuggestionData({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[za("0xbe")](m,u,g,t,Zo[za("0x125")]());return f}markDeletion(t,n=null,o={}){if(t[za("0x112")])return null;const s=this.editor[za("0x34")][za("0xe2")](za("0x23")).me,r=new i.LiveRange(t[za("0x5b")],t[za("0x8d")]);for(const{suggestion:t,meta:e}of this._findSuggestions(r,za("0x69")))if(e[za("0x115")]&&!e[za("0x71")])if(t[za("0xc9")]){const e=t[za("0x13")]()[za("0x6e")]((t=>za("0xd5")!=t[za("0x131")][za("0xa5")]));if(e[za("0x24")]((t=>r[za("0x65")](t,!0)))&&t.discard(),e[za("0x83")]((t=>t.containsRange(r,!0)))){const t=this[za("0xc7")][za("0x6a")]("deletion",n,za("0x9a"));return this[za("0x133")]((()=>t([r],null,o))),null}}else{const e=r[za("0x4f")](t.getFirstRange());null!==e&&t[za("0xec")]([e],null,o)}if(r[za("0xd1")](),r[za("0x112")]||"$graveyard"==r[za("0x131")][za("0xa5")])return null;let x=null,a=r[za("0x5b")],c=r[za("0x8d")];for(const{suggestion:t,meta:e}of this[za("0xba")](r,"deletion"))if(e[za("0x115")])if(t[za("0xc9")]&&this._mergeNestedSuggestions){let e=!0;for(const n of t[za("0x13")]()){if(n.containsRange(r,!0))return t;r[za("0x65")](n)||(e=!1)}e&&t[za("0xda")]()}else{const n=t.getFirstRange();if(n[za("0x65")](r,!0)){if(!this[za("0x1c")]&&e[za("0x63")])continue;return t}a=a.isBefore(n[za("0x5b")])?a:n[za("0x5b")],c=c[za("0x2e")](n.end)?c:n[za("0x8d")],x?n[za("0x5b")][za("0xa0")](x[za("0x9f")]().start)?(x.removeMarkers(),x=t):t[za("0x10b")]():x=t}if(x)return this[za("0x12c")](x,this[za("0xee")][za("0x12f")](a,c)),x;{const t=(0,e.uid)(),r=this[za("0xee")][za("0x12f")](a,c),i=s.id,x=n?za("0x2c")+n:za("0xa7"),l=this._setSuggestionData({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0xbe")](x,t,i,r),l}}[za("0xff")](t,n=za("0x22"),o={}){const s=this[za("0x108")][za("0x34")].get("Users").me,r=t[za("0xcd")]((t=>new i.LiveRange(t[za("0x5b")],t[za("0x8d")]))),x=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this[za("0xba")](t,za("0x69")))n[za("0x115")]&&!n[za("0x71")]&&x[za("0x4")](e);for(const e of x)if(e[za("0xc9")]){const s=e[za("0x13")]();if((!e.attributes||!e[za("0x9e")].skipNestingCheck)&&s[za("0x24")]((t=>r.some((e=>e.containsRange(t,!0)))))&&e[za("0xda")](),r[za("0x24")]((t=>s[za("0x83")]((e=>e.containsRange(t,!0)))))){const e=this[za("0xc7")][za("0x6a")](za("0xa7"),n,"accept");return this.forceDefaultExecution((()=>e(t,null,o))),null}}else{const t=e[za("0x9f")]();if(r.some((e=>e[za("0x65")](t,!0)))&&e.discard(),r[za("0x24")]((e=>t[za("0x65")](e,!0)))){const t=this[za("0xc7")][za("0x6a")](za("0xa7"),n,za("0x9a"));return this[za("0x133")]((()=>t(r,null,o))),null}}const a=this[za("0xc7")][za("0x6a")](za("0xa7"),n,"join");let c=null;for(const t of this.getSuggestions())if(t[za("0xc5")].id==s.id&&t[za("0x7")]&&za("0xa7")==t[za("0x1b")]&&t[za("0x9d")]==n&&(a(t[za("0x13")](),r)||a(r,t[za("0x13")]())))if(c){if(t.commentThread&&t[za("0x76")][za("0x81")])continue;for(const e of t.getRanges())c[za("0x6b")](e)||c[za("0xf1")](e);t[za("0x10b")]()}else{c=t;for(const e of r)t[za("0x6b")](e)||t[za("0xf1")](e)}if(c)return c;x[za("0xe4")]();for(const t of r)for(const{suggestion:e,meta:n}of this[za("0xba")](t,za("0xa7")))n.isOwn&&x[za("0x4")](e);for(const t of x){const e=t[za("0x13")]();if((!o||!o.skipNestingCheck)&&r[za("0x24")]((t=>e[za("0x83")]((e=>e[za("0x65")](t,!0))))))return t;(!t[za("0x9e")]||!t.attributes[za("0x98")])&&e[za("0x24")]((t=>r[za("0x83")]((e=>e[za("0x65")](t,!0)))))&&t.discard()}const l=(0,e.uid)(),d=s.id,u=za("0x2c")+n,g=this[za("0x10c")]({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t[za("0xd1")](),t[za("0x112")]||"$graveyard"==t[za("0x131")].rootName||this[za("0xbe")](u,l,d,t,Zo[za("0x125")]());return g}[za("0x12c")](t,e){const n=t[za("0x2")]();this[za("0xee")][za("0x77")]((t=>{t[za("0x3")](n,{range:e})}))}[za("0x137")](t){const e=t.id,n=this[za("0x108")].config[za("0xe2")](za("0xac"));this[za("0x45")].hasCommentThread(e)||this._commentsRepository.addCommentThread({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this._commentsRepository.getCommentThread(e);o.unbind(za("0x126")),o[za("0x126")]=!1,t[za("0x76")]=o}[za("0xbd")](t,n,o,s){if(t[za("0x1b")]!=n||t[za("0x9d")]!=o||t[za("0x6f")].id!=s)throw this[za("0x108")][za("0xf")](za("0xb5")),new e.CKEditorError("track-changes-suggestion-data-mismatch",this)}[za("0x105")](t,n){const o=t[za("0x9f")]();if(n[za("0xe6")](o))t[za("0x10b")]();else if(o.containsRange(n)){const s=this[za("0xee")][za("0x8c")](n[za("0x5b")].nodeBefore,"end");this._setSuggestionRange(t,this[za("0xee")][za("0x12f")](o.start,s));const r=(0,e.uid)(),i=t[za("0x6f")].id,x=t[za("0x1b")]+":"+t[za("0x9d")];this[za("0x10c")]({id:r,type:x,createdAt:new Date,authorId:i,data:t[za("0xaa")],attributes:t[za("0x9e")]});const a=this._model[za("0x8c")](n[za("0x8d")].parent,za("0xf2")),c=this[za("0xee")][za("0x12f")](a,o[za("0x8d")]);this[za("0xbe")](x,r,i,c)}else if(o[za("0xe0")](n[za("0x5b")])){const e=this[za("0xee")].createPositionAt(n[za("0x5b")][za("0x2a")],za("0x8d"));this[za("0x12c")](t,this[za("0xee")][za("0x12f")](o[za("0x5b")],e))}else{const e=this[za("0xee")][za("0x8c")](n[za("0x8d")][za("0x80")],"after");this[za("0x12c")](t,this[za("0xee")].createRange(e,o[za("0x8d")]))}}[za("0xb1")](t){for(const{suggestion:e,meta:n}of this[za("0xba")](t,za("0x69"))){if(!n.isOwn)continue;const o=e[za("0x13")]();for(const e of o)if(!t[za("0x136")](e)[za("0x81")])return!0}return!1}[za("0x12")](t){const n=this[za("0x108")].plugins[za("0xe2")]("Users")[za("0x7f")](t);if(!n)throw new e.CKEditorError("track-changes-user-not-found",this);return n}_getExternalAuthor(t){const e=this.editor[za("0x34")][za("0xe2")](za("0x23")),n=(0,r.hashObject)(za("0x11c")+t);return e.getUser(n)||e[za("0x74")]({id:n,name:t})}[za("0xcf")](t,e,n,o,s){const r=this[za("0x12")](o),i=this[za("0xc7")][za("0x116")](t,e,n,r,s,(t=>this._updateSuggestionData(n,{attributes:t})));return this.listenTo(i,za("0x9a"),(()=>{this._updateSuggestionData(n,{state:za("0x8a")})}),{priority:za("0x2d")}),this.listenTo(i,za("0xda"),(()=>{this[za("0xa3")](n,{state:za("0x72")})}),{priority:za("0x2d")}),this[za("0xf3")].set(n,i),this._suggestionState[za("0x6")](i,za("0x102")),i}[za("0xe5")](t){const e=t[za("0x75")](":");return{group:e[0],type:e[1],subType:e[za("0x81")]>=5?e[2]:null,id:e.length<5?e[2]:e[3],authorId:e[za("0x81")]<5?e[3]:e[4],markerCount:6==e[za("0x81")]?e[5]:null}}_breakSuggestionMarker(t,n,o){const s=t[za("0x9f")](),r=s[za("0x5b")],i=s[za("0x8d")];this._setSuggestionRange(t,this[za("0xee")][za("0x12f")](r,n));const x=(0,e.uid)(),a=t.creator.id,c=t.type+(t.subType?":"+t.subType:"");this._setSuggestionData({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[za("0x9e")],data:t[za("0xaa")]}),za("0x109")==t[za("0x1b")]&&(o=this[za("0xee")][za("0x119")](o[za("0x80")])),this[za("0xbe")](c,x,a,this._model[za("0x12f")](o,i))}[za("0xba")](t,e=null){const n=[],o=this[za("0xee")].schema,s=this[za("0x108")][za("0x34")][za("0xe2")](za("0x23")).me;for(const r of this[za("0x1f")]())if(r[za("0x7")]&&(!e||r[za("0x1b")]==e))for(const e of r.getRanges()){const i=t[za("0x5b")][za("0xe6")](e[za("0x8d")])||t[za("0x8d")][za("0xe6")](e.start);if(i||t[za("0x4f")](e)){const x=t[za("0x65")](e)&&Ka(o,e[za("0x5b")],t),a=e[za("0x65")](t)&&Ka(o,t[za("0x5b")],e);n.push({suggestion:r,meta:{isOwn:s==r.author,isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}[za("0xbe")](t,e,n,o,s){this._model[za("0x77")]((r=>{let i=za("0x0")+t+":"+e+":"+n;s&&(i=i+":"+s),r[za("0x35")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[za("0xf0")](t){const e=t.previous,n=t[za("0xf9")];t[za("0xca")]=null,null!=e&&(e.next=null),t.next=null,null!=n&&(n[za("0xca")]=null),za("0x67")==this._suggestionState[za("0xe2")](t)&&(this._suggestionState.set(t,"removed"),this.fire(za("0x43"),t,e,n))}[za("0x10c")](t){const n=t.id,o=this[za("0x5c")](t);if(this[za("0x82")]&&this[za("0x82")].addSuggestion){const s=this.editor.plugins[za("0xe2")]("PendingActions"),r=o[za("0xab")],i=o.subType?o[za("0x1b")]+":"+o[za("0x9d")]:o.type,x=this[za("0x108")][za("0x48")],a=s[za("0x4")](Yo(x,"PENDING_ACTION_SUGGESTION")),c={id:n,type:i,hasComments:r,data:t.data||null,originalSuggestionId:t[za("0xaf")]||null,attributes:o[za("0x9e")]};this._adapter[za("0x5e")](c)[za("0x101")]((t=>{o._saved=!0,s.remove(a),t&&t[za("0xf8")]&&(this._suggestions[za("0xe2")](n).createdAt=t[za("0xf8")])}))[za("0x100")]((t=>{throw(0,e.logWarning)(za("0x132")),this[za("0x108")][za("0x12a")][za("0xd9")]({isUndoable:!1},(()=>{o[za("0xda")]()})),o[za("0x85")](),this._suggestions[za("0xcb")](o.id),this._suggestionState[za("0xcb")](o),t}))}return o}_updateSuggestionData(t,e){const n=this[za("0x108")].plugins[za("0xe2")](za("0x73")),o=this[za("0x89")](t);if(this[za("0x82")]&&this[za("0x82")].updateSuggestion)if(o[za("0x33")]){const o=n.add(Yo(this.editor[za("0x48")],"PENDING_ACTION_SUGGESTION"));this[za("0x82")][za("0x59")](t,e)[za("0x101")]((()=>{n.remove(o)}))}else o.on(za("0xa6"),(()=>{this._updateSuggestionData(t,e)}))}[za("0x37")](t){if(!this[za("0x82")]||!this._adapter[za("0x89")])throw new e.CKEditorError(za("0xd2"),this);return this[za("0x82")][za("0x89")](t)}[za("0xb3")](t){const{id:e,type:n,subType:o,authorId:s}=this[za("0xe5")](t),r=this[za("0xf3")].get(e)||this._createSuggestion(n,o,e,s,{});switch(this[za("0xbd")](r,n,o,s),this[za("0xf5")].get(r)){case za("0x102"):this[za("0x37")](e)[za("0x101")]((t=>{let n=Promise[za("0xf4")]();t[za("0xab")]&&(n=this[za("0x45")][za("0xa1")]({channelId:this[za("0x108")][za("0x130")][za("0xe2")](za("0xac")),threadId:e})),n[za("0x101")]((()=>{this[za("0x5c")](t)._saved=!0}))})),this[za("0xf5")][za("0x6")](r,za("0x12d"));break;case za("0x11e"):this._updateSuggestionData(e,{state:za("0x49")});case za("0xf7"):this[za("0xf5")][za("0x6")](r,za("0x67")),this.fire(za("0x1e"),r);break;case"ready":this[za("0xeb")]("suggestionChanged",r)}return r[za("0x84")](t),r}[za("0x13c")](t){const e=Array.from(t)[za("0x6e")]((t=>!t[za("0xc9")])),n=this[za("0x1f")]({skipNotAttached:!0})[za("0x6e")]((t=>!t[za("0xc9")])),o=n.filter((e=>!t[za("0xc0")](e))),s=new Map(n[za("0xcd")]((t=>[t,this[za("0xc7")][za("0x6a")](t[za("0x1b")],t[za("0x9d")],za("0x20"))]))),r=new Map(n.map((t=>[t,t[za("0x9f")]()]))),i=new Set,x=new Set;for(let t=0;t<e[za("0x81")];t++)a(e[t],e,t+1);for(let t=0;t<e[za("0x81")];t++)a(e[t],o,0);for(let t=0;t<e[za("0x81")];t++){const n=e[t];!x[za("0xc0")](n)&&n[za("0xca")]&&(n.previous.next===n&&(n[za("0xca")][za("0xf9")]=null),n[za("0xca")]=null),!i[za("0xc0")](n)&&n.next&&(n.next[za("0xca")]===n&&(n[za("0xf9")][za("0xca")]=null),n[za("0xf9")]=null)}function a(t,e,n){for(let o=n;o<e[za("0x81")];o++){const n=c(t,e[o]);n&&(n[0][za("0xf9")]=n[1],n[1][za("0xca")]=n[0],i[za("0x4")](n[0]),x[za("0x4")](n[1]))}}function c(t,e){if(t[za("0xc5")].id!==e[za("0xc5")].id)return null;const n=s[za("0xe2")](t)(t,e,r[za("0xe2")](t),r[za("0xe2")](e));return n&&s.get(e)(t,e,r[za("0xe2")](t),r[za("0xe2")](e))?n[1].commentThread&&n[1][za("0x76")][za("0x81")]?null:n:null}}_joinWithAdjacentSuggestions(t){const e=Array.from(t),n=this[za("0x1f")]({skipNotAttached:!0}),o=n[za("0x6e")]((e=>!t[za("0xc0")](e))),s=new Map(e[za("0xcd")]((t=>[t,this[za("0xc7")][za("0x6a")](t[za("0x1b")],t.subType,za("0x96"))]))),r=new Map(n[za("0xcd")]((t=>[t,t.getRanges()])));for(let t=0;t<e.length;t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[za("0x81")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n.length;i++){const o=n[i];if(o.type!==e[za("0x1b")]||o[za("0xc5")].id!==e[za("0xc5")].id||o.subType!==e[za("0x9d")])continue;const x=s[za("0xe2")](e),a=r[za("0xe2")](e),c=r[za("0xe2")](o),l=e[za("0x76")]&&e[za("0x76")][za("0x81")],d=o[za("0x76")]&&o[za("0x76")][za("0x81")];if(!l&&x(c,a))return t[za("0xe8")](o,e),r[za("0xcb")](e),!0;if(!d&&x(a,c))return t[za("0xe8")](e,o),r[za("0xcb")](o),!0}return!1}}[za("0xe8")](t,e){if(t[za("0xc9")])for(const n of e[za("0x13")]())t[za("0xf1")](n);else{const n=e[za("0x9f")]().end;this[za("0x12c")](t,this[za("0xee")][za("0x12f")](t[za("0x9f")]()[za("0x5b")],n))}e[za("0x10b")]()}}class Va{constructor(t){this[za("0x117")]=t,this._model=t.model,this._customCallbacks=new Map,this[za("0x13e")]=new Map,this._registerDefaultCallbacks()}[za("0x116")](t,e,n,o,s,r){return new Zo(this[za("0xee")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this.getSuggestionCallback(t,e,za("0x9a"))(...n),onDiscard:(...n)=>this[za("0x6a")](t,e,za("0xda"))(...n)})}[za("0x10a")](t,e,n,o){const s=t+":"+e+":"+n;this[za("0x70")].set(s,o)}[za("0x6a")](t,e,n){const o=t+":"+e+":"+n;return this[za("0x70")].get(o)||this[za("0x13e")][za("0xe2")](t+":"+n)}[za("0xb")](){const t=()=>{},e=t=>{t[za("0xdf")](((t,e)=>t[za("0x5b")][za("0xa0")](e.start)?1:-1)),this._model[za("0x77")]((e=>{for(const n of t){let t;t=n[za("0x8d")].isAtEnd&&n[za("0x8d")].parent==n.start[za("0x53")]?e[za("0x7b")](n[za("0x5b")][za("0x53")],"on"):e.createSelection(n),this._model[za("0x113")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[za("0xee")][za("0x77")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[za("0xcd")]((t=>(qa(t)&&(t=this._model[za("0x12f")](t[za("0x8d")])),t))).filter((t=>"$graveyard"!==t[za("0x131")][za("0xa5")]));if(r[za("0x81")]<1)return;const x=Array[za("0xb6")](this[za("0xee")][za("0x5f")].selection[za("0x13")]())[za("0xcd")]((t=>i.LiveRange[za("0xc3")](t)));n[za("0x28")](r);for(const t of this._editor[za("0x57")][za("0x57")]())t.refresh();s[za("0x4b")]({forceDefaultExecution:!0}),this[za("0x117")].execute(o,...s);const a=x[za("0x6e")]((t=>"$graveyard"!=t.root[za("0xa5")]));a[za("0x81")]>0&&n[za("0x28")](a);for(const t of x)t[za("0xd1")]()}))},o=(t,e)=>1==t[za("0x81")]&&1==e[za("0x81")]&&t[0][za("0x8d")].isEqual(e[0][za("0x5b")]),s=(t,e,n,o)=>Za(t,e,n,o,this[za("0xee")])?[t,e]:Za(e,t,o,n,this._model)?[e,t]:null;this[za("0x13e")].set(za("0x66"),t),this[za("0x13e")][za("0x6")]("insertion:discard",e),this[za("0x13e")][za("0x6")](za("0x44"),o),this[za("0x13e")][za("0x6")]("insertion:chain",s),this[za("0x13e")][za("0x6")]("deletion:accept",e),this[za("0x13e")][za("0x6")]("deletion:discard",t),this[za("0x13e")][za("0x6")]("deletion:join",o),this[za("0x13e")][za("0x6")](za("0x93"),s),this._defaultCallbacks[za("0x6")](za("0x13f"),n),this._defaultCallbacks.set(za("0x14"),t),this[za("0x13e")][za("0x6")](za("0x3f"),o),this[za("0x13e")][za("0x6")]("formatInline:chain",t),this[za("0x13e")][za("0x6")](za("0xd8"),n),this._defaultCallbacks.set(za("0x62"),t),this[za("0x13e")][za("0x6")](za("0x39"),o),this._defaultCallbacks[za("0x6")]("formatBlock:chain",t)}}function Ka(t,e,n){for(const o of e.parent[za("0xbb")]({includeSelf:!0,parentFirst:!0})){if(o[za("0x131")]==o)return!1;if(!n[za("0xd6")](o))return!1;if(t[za("0x52")](o)||t[za("0x11")](o))return!0}return!1}function qa(t){return t.end.parent==t[za("0x5b")][za("0x53")]&&t[za("0x8d")].isAtStart}function Xa(t,e,n,o){const s=t=>!t.item.is(za("0x8b"))&&!o[za("0x52")](t[za("0xa")]),r=t.start[za("0xd0")](s),i=t.end[za("0xd0")](s,{direction:za("0x94")});return!(t.start[za("0xe6")](r)&&t.end[za("0xe6")](i)||(r[za("0xa0")](i)?n[za("0x3")](e,{range:n[za("0x12f")](r,i)}):n[za("0x6c")](e),0))}function $a(t){return(0,r.hashObject)(t)}function Ja(t){const e=t[za("0x5b")][za("0x53")];return e&&e.is(za("0x11b"))}function Qa(t,e){const n=e[za("0xed")][za("0x52")](t)||e[za("0xed")][za("0x51")](t);return e[za("0x12f")](e[za("0x8c")](t,za("0x58")),n?e[za("0xc2")](t):e[za("0x8c")](t,"end"))}function Za(t,e,n,o,s){if(n[za("0x8d")][za("0xe6")](o.start))return!0;if(t[za("0x1b")]!=e[za("0x1b")])return!1;if(!n[za("0x8d")][za("0xf6")](o[za("0x5b")]))return!1;const r=s[za("0x12f")](n[za("0x8d")],o[za("0x5b")])[za("0xd")]();for(const t of r)if([za("0x29"),za("0x16")][za("0x97")](t[za("0x1b")])&&s[za("0xed")].isLimit(t[za("0xa")]))return!1;return!0}const Ya=["stopListening","isDirty","getRanges","add","canEditAt","isEnabled","listenTo","PendingActions","_acceptCommand","remove","discardSuggestion","commands","get","unbind","_editor","_discardCommand","_pendingAction","canAccept","model","commentThreadController","change:isDirty","execute","canDiscard","view","destroy","plugins","_removePendingAction","bind","_setPendingAction","acceptSuggestion"];var tc,ec;tc=Ya,ec=299,function(t){for(;--t;)tc.push(tc.shift())}(++ec);const nc=function(t,e){return Ya[t-=0]};class oc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[nc("0x13")]=e,this.view=n,this[nc("0x14")]=o,this[nc("0xf")]=t,this[nc("0x9")]=t[nc("0xc")][nc("0xd")](nc("0x0")),this[nc("0x10")]=t[nc("0xc")][nc("0xd")](nc("0xb")),this.view[nc("0x1c")]("isEnabled").to(this[nc("0x9")],this._discardCommand,((t,e)=>t||e)),this[nc("0x18")][nc("0x1c")]("canAccept").to(this[nc("0x9")],nc("0x6"),(t=>t&&this[nc("0xf")][nc("0x13")][nc("0x5")](e[nc("0x3")]()))),this[nc("0x18")][nc("0x1c")]("canDiscard").to(this._discardCommand,nc("0x6"),(t=>t&&this._editor[nc("0x13")][nc("0x5")](e.getRanges()))),this[nc("0x11")]=null,n[nc("0x2")]&&this[nc("0x1d")](),this.listenTo(n,"acceptSuggestion",(()=>this[nc("0x0")]())),this[nc("0x7")](n,nc("0xb"),(()=>this[nc("0xb")]())),this.listenTo(n,nc("0x15"),(()=>{n[nc("0x2")]?this[nc("0x1d")]():this[nc("0x1b")]()}))}acceptSuggestion(){this[nc("0x9")].execute(this[nc("0x13")].id)}[nc("0xb")](){this[nc("0x10")][nc("0x16")](this[nc("0x13")].id)}[nc("0x19")](){this[nc("0x18")][nc("0xe")](nc("0x6")),this[nc("0x18")][nc("0xe")](nc("0x12")),this[nc("0x18")][nc("0xe")](nc("0x17")),this[nc("0x1")](),this.commentThreadController[nc("0x19")](),this[nc("0x11")]&&this[nc("0x1b")]()}[nc("0x1d")](){const t=Yo(this[nc("0xf")].locale,"PENDING_ACTION_SUGGESTION");this._pendingAction=this[nc("0xf")][nc("0x1a")][nc("0xd")](nc("0x8"))[nc("0x4")](t)}[nc("0x1b")](){null!==this._pendingAction&&this[nc("0xf")][nc("0x1a")][nc("0xd")](nc("0x8"))[nc("0xa")](this._pendingAction),this[nc("0x11")]=null}}const sc=["value","commentThread","disabledSubmit","commentsListView","_model","authoredAt","disableComments","showInput","updateComment","isDirty","set","locale","setData","_config","isEnabled","descriptionParts","length","isReadOnly","_createCommentViews","_createCommentThreadInputView","removeComment","destroy","hasDirtyComment","focus","canAccept","_localUser","commentInputView","isActive","bind","fire","editorConfig","delegate","commentThreadInputView"];var rc,ic;rc=sc,ic=132,function(t){for(;--t;)rc.push(rc.shift())}(++ic);const xc=function(t,e){return sc[t-=0]};class ac extends s.View{constructor(t,e,n,o){super(t),this[xc("0x3")]=null,this[xc("0x20")]=null,this[xc("0xa")](xc("0x1b"),!1),this[xc("0xa")](xc("0x5"),e[xc("0x5")]),this[xc("0x1c")](xc("0x5")).to(e),this[xc("0xa")](xc("0xf"),[]),this[xc("0xa")](xc("0x9"),!1),this[xc("0xa")](xc("0xe"),!1),this[xc("0xa")](xc("0x18"),!1),this.set("canDiscard",!1),this[xc("0x4")]=e,this[xc("0x19")]=n,this._config=o,o[xc("0x6")]?this[xc("0xa")]("length",1):this[xc("0x12")]()}[xc("0x17")](){this.element[xc("0x17")]()}[xc("0x15")](){this[xc("0x3")]&&this[xc("0x3")][xc("0x15")](),this.commentThreadInputView&&this[xc("0x20")].destroy(),super[xc("0x15")]()}[xc("0x12")](){const{CommentsListView:t}=this._config;this[xc("0x3")]=new t(this[xc("0xb")],this[xc("0x4")][xc("0x1")],Object.assign({CommentView:this[xc("0xd")].CommentView},this[xc("0xd")])),this[xc("0x3")][xc("0x1f")]("removeComment").to(this),this[xc("0x3")][xc("0x1f")](xc("0x8")).to(this),this.commentsListView[xc("0x1c")](xc("0x1b")).to(this),this.set(xc("0x10"),this.commentsListView.length+1),this[xc("0x1c")](xc("0x10")).to(this.commentsListView,xc("0x10"),(t=>t+1)),this[xc("0x20")]=this._createCommentThreadInputView(),this.on(xc("0x14"),(()=>this[xc("0x17")]())),this.bind(xc("0x9")).to(this[xc("0x3")],xc("0x16"),this[xc("0x20")][xc("0x1a")],xc("0x0"),((t,e)=>t||!!e))}[xc("0x13")](){const{CommentThreadInputView:t}=this[xc("0xd")],e=new t(this.locale,this[xc("0x19")],this[xc("0xd")][xc("0x1e")]),n=e[xc("0x1a")];return e[xc("0x1c")](xc("0x7")).to(this,xc("0x1b"),this[xc("0x4")][xc("0x1")],xc("0x11"),n,xc("0x0"),((t,e,n)=>!!n||t&&!e)),n.on("submit",((t,e)=>{this[xc("0x1d")]("addComment",e),n.editor[xc("0xc")]("")})),n.on("cancel",(()=>this.focus())),n[xc("0x1c")](xc("0x2")).to(this[xc("0x4")][xc("0x1")],xc("0x11")),e}}const cc=["ck-suggestion__info-name","acceptSuggestion","canAccept","ck-annotation__main","bindTemplate",".ck-annotation__content-wrapper","attributes","EXTERNAL_IMPORT_WORD_AVATAR","ck-annotation__info","getExternalSuggestionNote","cancel","ck-suggestion-","bind","querySelector","editorDestroyed","locale","execute","check","ck-suggestion--accept","time","color","ck-suggestion-wrapper","render","ck-suggestion-wrapper--active","isEnabled","acceptButton","element","content","authoredAt","ck-annotation__content-wrapper","_createButton","author","editorReady","descriptionParts","commentThreadInputView",'<span class="ck-suggestion-type">',"set","discardButton","getUserViewNotificationText","type","innerHTML","ck-suggestion__actions","extendTemplate","formatDateTime","isExternal","EXTERNAL_SUGGESTION","isActive","ck-suggestion__main","innerText","creator","fire","delegate",'<span class="ck-suggestion-color" style="background-color: ',"importWord","discardSuggestion","ck-annotation","createElement","_descriptionElement","</span>","ck-suggestion__info","name","source","</p>","push","_model","_config","Discard suggestion","ck-comment__info-time","title","div","EXTERNAL_AVATAR","commentsListView","ck-suggestion--discard","userView","ck-suggestion__user","getTemplate","span","<p>","setTemplate","description"];var lc,dc;lc=cc,dc=324,function(t){for(;--t;)lc.push(lc.shift())}(++dc);const uc=function(t,e){return cc[t-=0]};class gc extends ac{constructor(e,n,o,s){super(e,n,o,s),this[uc("0x20")](uc("0x23"),""),this.bind(uc("0x23")).to(this,"descriptionParts",(t=>t&&t[0]?t[0][uc("0x23")]:"")),this[uc("0x8")](uc("0x4b")).to(this,uc("0x1d"),this,uc("0x2a"),((t,e)=>{let n="";for(const e of t)n+=uc("0x49")+mc(e[uc("0x17")],e[uc("0x10")])+uc("0x3a");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[uc("0x35")]=null,this.acceptButton=this[uc("0x1a")](Yo(e,"Accept suggestion"),t.icons[uc("0xd")],uc("0xe"),uc("0x4d"),"sw"),this[uc("0x15")][uc("0x8")](uc("0x14")).to(this,uc("0x4e")),this.discardButton=this[uc("0x1a")](Yo(e,uc("0x3e")),t.icons[uc("0x6")],uc("0x44"),uc("0x32"),"sw"),this[uc("0x21")][uc("0x8")]("isEnabled").to(this,"canDiscard"),this.userView=new r.UserView(e,this[uc("0x3c")].author,this[uc("0x22")]()),this[uc("0x45")].extendTemplate({attributes:{class:[uc("0x46"),"ck-annotation__user"]}}),this[uc("0x4a")](this[uc("0x47")]())}[uc("0x47")](){const t=this[uc("0x0")],e=[{tag:uc("0x41"),attributes:{class:[uc("0x37"),uc("0x4")]},children:[{tag:"span",children:[{text:this.userView.name}],attributes:{class:[uc("0x4c"),"ck-annotation__info-name"]}},{tag:uc("0xf"),attributes:{datetime:t.to(uc("0x18")),class:[uc("0x3f"),"ck-annotation__info-time"]},children:[{text:t.to(uc("0x18"),(t=>this._config[uc("0x27")](t)))}]}]},{tag:uc("0x41"),attributes:{class:[uc("0x25"),"ck-annotation__actions"]},children:[this[uc("0x15")],this[uc("0x21")]]},{tag:"div",attributes:{class:[uc("0x19")]}}];this[uc("0x3c")][uc("0x28")]&&e.push({tag:uc("0x41"),attributes:{class:["ck-comment__external"]},children:[{text:this.getExternalSuggestionNote()}]});const n={tag:uc("0x41"),attributes:{class:[uc("0x11"),t.if(uc("0x2a"),uc("0x13")),t.to(uc("0x23"),(t=>uc("0x7")+t)),this[uc("0x3d")].disableComments&&"ck-suggestion--disabled-comments"],"data-suggestion-id":this._model.id,"data-thread-id":this[uc("0x3c")].commentThread.id,"data-author-id":this[uc("0x3c")][uc("0x1b")].id,tabindex:-1},children:[{tag:uc("0x41"),attributes:{class:["ck-suggestion",uc("0x33")]},children:[this[uc("0x45")],{tag:uc("0x41"),attributes:{class:[uc("0x2b"),uc("0x4f")]},children:e}]}]};return this[uc("0x43")]&&this[uc("0x1e")]&&(n.children[uc("0x3b")](this.commentsListView,this[uc("0x1e")]),this[uc("0x43")][uc("0x2f")](uc("0x1c")).to(this),this[uc("0x43")].delegate(uc("0xa")).to(this),this[uc("0x1e")].delegate("editorReady").to(this),this[uc("0x1e")][uc("0x2f")](uc("0xa")).to(this)),n}render(){super[uc("0x12")](),this[uc("0x35")]=this[uc("0x16")][uc("0x9")](uc("0x1")),this[uc("0x35")][uc("0x24")]=this[uc("0x4b")],this.on("change:description",((t,e,n)=>{this[uc("0x35")][uc("0x24")]=n}))}_createButton(t,e,n,o,r){const i=new s.ButtonView(this[uc("0xb")]);return i[uc("0x20")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[uc("0x26")]({attributes:{class:n}}),i.on(uc("0xc"),(()=>{this[uc("0x2e")](o,this[uc("0x3c")].id)})),i}[uc("0x5")](){return"importWord"===this[uc("0x3c")].attributes["@external"][uc("0x39")]?Yo(this[uc("0xb")],"EXTERNAL_IMPORT_WORD_SUGGESTION"):Yo(this[uc("0xb")],uc("0x29"))}[uc("0x22")](){return this[uc("0x3c")][uc("0x28")]?uc("0x31")===this[uc("0x3c")][uc("0x2")]["@external"][uc("0x39")]?Yo(this[uc("0xb")],uc("0x3"),this[uc("0x3c")][uc("0x2d")][uc("0x38")]):Yo(this[uc("0xb")],uc("0x42"),this[uc("0x3c")].creator[uc("0x38")]):null}}function mc(t,e){let n="";return n+=t.split("*").map(((t,e)=>e%2!=0?uc("0x1f")+fc(t)+uc("0x36"):fc(t))).join(""),e&&(n+=uc("0x30")+e.value+'" title="'+e[uc("0x40")]+'"></span>'),n}function fc(t){const e=document[uc("0x34")](uc("0x48"));return e[uc("0x2c")]=t,e[uc("0x24")]}const hc=["CommentsRepository","plugins","_updateController","values","view","delete","createAnnotationView","_disableComments","lowest","remove","_descriptionFactory","some","_initializeController","_handleSuggestionControllerDelayed","push","commandName","TrackChangesEditing","createCommentThreadController","from","suggestionLoaded","stopListening","keys","descriptionParts","pluginName","listenTo","value","_refreshActiveMarkers","comments.maxCommentCharsWhenCollapsed","model","comments.maxCommentsWhenCollapsed","size","commentThread","SuggestionThreadView","discardButton","head","getFirstRange","button","has","requires","focus","Accept all selected suggestions","discardSelectedSuggestions","Discard all selected suggestions","commands","arrowView","activeAnnotations","unbind","_destroyController","_annotationViews","Discard all suggestions","suggestion-","define","filter","get","getDescriptions","locale","change:previous","trackChanges","buttonView","type","execute","registerAnnotation","_createUIButton","init","_bindAnnotationToEditors","suggestionUnloaded","isDirty","activeMarkers","componentFactory","trackChanges.disableComments","comments.maxThreadTotalWeight","config","isInContent","trackChanges.SuggestionThreadView","editing","_viewToController","refreshSelectedViews","separator","isEnabled","acceptSelectedSuggestions","bind","EditorAnnotations","getAllAdjacentSuggestions","comments.editorConfig","discardAllSuggestions","_handleControllerBuffer","editor","TrackChangesUI","Annotations","addComment","CommentView","destroy","set","acceptAllSuggestions","add","innerView","getRanges","acceptButton","length","_suggestionToController","comments","actionView","mainView","source","isOn"];var pc,bc;pc=hc,bc=476,function(t){for(;--t;)pc.push(pc.shift())}(++bc);const Ec=function(t,e){return hc[t-=0]};class _c extends t.Plugin{static get[Ec("0x57")](){return[Wa,r.Users,Ec("0x31"),Ec("0x20"),Ec("0x19")]}static get[Ec("0x48")](){return Ec("0x1f")}constructor(t){super(t),this._suggestionToController=new Map,this[Ec("0x13")]=new Map,this[Ec("0x61")]=new Map,this._handleControllerBuffer=new Map;const e=this[Ec("0x1e")][Ec("0xf")];e[Ec("0x64")](Ec("0x11"),gc),e[Ec("0x64")](Ec("0xd"),!1),this._disableComments=e[Ec("0x66")](Ec("0xd"))}[Ec("0x3e")](t,e){0===this[Ec("0x1d")][Ec("0x4f")]&&setTimeout((()=>{for(const[t,e]of this[Ec("0x1d")]){const n=this[Ec("0x2b")][Ec("0x56")](t);n||e?n&&e&&this[Ec("0x60")](t):this[Ec("0x3d")](t)}this[Ec("0x1e")][Ec("0x32")][Ec("0x66")]("EditorAnnotations")[Ec("0x14")](),this[Ec("0x4b")](),this[Ec("0x1d")].clear()}),10),this[Ec("0x1d")].set(t,e)}[Ec("0x7")](){const t=this[Ec("0x1e")],e=t[Ec("0x32")].get(Ec("0x41")),n=t[Ec("0x32")][Ec("0x66")](Ec("0x20")),o=t[Ec("0x32")][Ec("0x66")](Ec("0x19")),s=t[Ec("0x32")][Ec("0x66")](Ec("0x31"));t.ui[Ec("0xc")][Ec("0x26")]("trackChanges",(t=>this[Ec("0x6")](t))),o.addSourceCollector((()=>{const t=[];for(const[e,n]of Array[Ec("0x43")](this[Ec("0x2b")])){const o=e[Ec("0x1a")](),s=[];for(const t of o){if(!t[Ec("0x10")])continue;if(t.isMultiRange){s[Ec("0x3f")](...t[Ec("0x28")]());continue}const e=t[Ec("0x54")]();if(s.length>0){const t=s[0].getJoined(e);if(t){s[0]=t;continue}}s.push(e)}t[Ec("0x3f")]([n.view,s])}return t})),this.listenTo(e,Ec("0x44"),((t,e)=>{this[Ec("0x49")](e,Ec("0x0"),((t,n,o,s)=>{e.isInContent&&(null==o?(this._updateController(s[Ec("0x53")]),this[Ec("0x3e")](e,!1)):(this[Ec("0x33")](o[Ec("0x53")]),this._handleSuggestionControllerDelayed(e,!0)))})),null===e.previous?this[Ec("0x3e")](e,!1):this[Ec("0x33")](e[Ec("0x53")])})),this[Ec("0x49")](e,Ec("0x9"),((t,e,n)=>{this[Ec("0x45")](e,Ec("0x0")),this._handleControllerBuffer[Ec("0x36")](e);const o=n?n.head:e,s=this._suggestionToController[Ec("0x66")](o);null!==n&&this[Ec("0x33")](o),null===n&&s&&this[Ec("0x60")](e)})),this.listenTo(e,"suggestionChanged",((t,e)=>{this[Ec("0x33")](e)})),this[Ec("0x49")](n,"change:activeAnnotations",(()=>{this[Ec("0x4b")]()})),this[Ec("0x49")](s,Ec("0x21"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e.hasSuggestion(n))return;const s=e.getSuggestion(n);this[Ec("0x2b")][Ec("0x66")](s)[Ec("0x35")][Ec("0x58")]()}),{priority:Ec("0x39")})}[Ec("0x4b")](){const t=this.editor[Ec("0x32")][Ec("0x66")]("Annotations"),e=this.editor[Ec("0x32")][Ec("0x66")](Ec("0x41")),n=Array[Ec("0x43")](t[Ec("0x5e")],(t=>t[Ec("0x27")])).filter((t=>this[Ec("0x13")][Ec("0x56")](t))),o=[];for(const t of n){const e=this[Ec("0x13")][Ec("0x66")](t)[Ec("0x4d")].getAllAdjacentSuggestions();o[Ec("0x3f")](...e.reduce(((t,e)=>[...t,...e.getMarkerNames()]),[]))}e[Ec("0xb")]=o}[Ec("0x6")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Ec("0x1e")][Ec("0x5c")].get(Ec("0x1")),r=Yo(t,"Track changes");n[Ec("0x2")][Ec("0x24")]({tooltip:r,label:r,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Ec("0x2")].bind("isOn").to(o,"value"),n[Ec("0x2")].on(Ec("0x4"),(()=>{o[Ec("0x4")](),this[Ec("0x1e")][Ec("0x12")][Ec("0x35")][Ec("0x58")]()}));const i=new e.Collection,x=[{type:"switchbutton",model:{withText:!0,label:r,commandName:"trackChanges"}},{type:Ec("0x15")},{type:"button",model:{withText:!0,label:Yo(t,"Accept all suggestions"),commandName:Ec("0x25")}},{type:Ec("0x55"),model:{withText:!0,label:Yo(t,Ec("0x59")),commandName:Ec("0x17")}},{type:"button",model:{withText:!0,label:Yo(t,Ec("0x62")),commandName:Ec("0x1c")}},{type:"button",model:{withText:!0,label:Yo(t,Ec("0x5b")),commandName:Ec("0x5a")}}];for(const t of x){let e={type:Ec("0x15")};if(t[Ec("0x4d")]){const n=new s.Model(t[Ec("0x4d")]),o=this.editor[Ec("0x5c")][Ec("0x66")](n.commandName);n[Ec("0x18")](Ec("0x30"),Ec("0x16")).to(o,Ec("0x4a"),Ec("0x16")),e={type:t[Ec("0x3")],model:n}}i[Ec("0x26")](e)}(0,s.addListToDropdown)(n,i);const a=x.filter((t=>null!=t[Ec("0x4d")])).map((t=>this[Ec("0x1e")].commands[Ec("0x66")](t.model[Ec("0x40")]))),c=n[Ec("0x2")];return c[Ec("0x2d")][Ec("0x5f")](Ec("0x16")),c.arrowView[Ec("0x5f")](Ec("0x16")),c[Ec("0x2d")].bind(Ec("0x16")).to(o,Ec("0x16")),c[Ec("0x5d")][Ec("0x18")]("isEnabled").toMany(a,Ec("0x16"),((...t)=>t[Ec("0x3c")]((t=>t)))),n.on(Ec("0x4"),(t=>{this.editor[Ec("0x4")](t[Ec("0x2f")][Ec("0x40")]),this.editor.editing[Ec("0x35")][Ec("0x58")]()})),n}_initializeController(t){const e=this.editor,n=e[Ec("0xf")],o=e[Ec("0x32")][Ec("0x66")](Ec("0x20")),s=e.plugins[Ec("0x66")](Ec("0x31")),i=e.plugins[Ec("0x66")]("EditorAnnotations"),x=e[Ec("0x32")][Ec("0x66")](r.Users).me,a=n[Ec("0x66")]("trackChanges")[Ec("0x51")],{CommentsListView:c,CommentThreadInputView:l}=e[Ec("0x32")][Ec("0x66")]("CommentsUI");let d,u;this[Ec("0x61")].has(t.id)?(u=this._annotationViews[Ec("0x66")](t.id),d=u[Ec("0x2e")]):(d=new a(e[Ec("0x68")],t,x,{disableComments:this[Ec("0x38")],editorConfig:n.get(Ec("0x1b")),maxCommentsWhenCollapsed:n.get(Ec("0x4e")),maxThreadTotalWeight:n.get(Ec("0xe")),maxCommentCharsWhenCollapsed:n[Ec("0x66")](Ec("0x4c")),formatDateTime:(0,r.getDateTimeFormatter)(n[Ec("0x66")](Ec("0x68"))),CommentView:n[Ec("0x66")](Ec("0x2c"))[Ec("0x22")],CommentsListView:c,CommentThreadInputView:l}),d[Ec("0x29")].on("execute",(()=>{e[Ec("0x12")].view[Ec("0x58")]()})),d[Ec("0x52")].on("execute",(()=>{e[Ec("0x12")][Ec("0x35")][Ec("0x58")]()})),u=o[Ec("0x37")](this.editor[Ec("0x68")],d),u[Ec("0x18")](Ec("0xa")).to(d,"isDirty"),u.bind(Ec("0x2a")).to(d),u[Ec("0x18")](Ec("0x3")).to(d,Ec("0x3"),(t=>Ec("0x63")+t)),this[Ec("0x61")][Ec("0x24")](t.id,u));const g=s[Ec("0x42")](t[Ec("0x50")],d),m=new oc(e,t,d,g),f=t[Ec("0x1a")]().filter((t=>t[Ec("0x10")]));d[Ec("0x47")]=e.plugins[Ec("0x66")]("TrackChangesEditing")[Ec("0x3b")][Ec("0x67")](f),this._suggestionToController[Ec("0x24")](t,m),this[Ec("0x13")][Ec("0x24")](d,m);const h=o.createAnnotation({view:u,target:()=>{const n=[],o=t[Ec("0x1a")]()[Ec("0x65")]((t=>t[Ec("0x10")]));for(const t of o)n[Ec("0x3f")](...t.getMarkers());return(0,r.getAllMarkersDomElementsSorted)(e[Ec("0x12")],n)},type:()=>Ec("0x63")+m[Ec("0x35")][Ec("0x3")]});s[Ec("0x8")](d,h),o[Ec("0x26")](h),i[Ec("0x5")](h)}[Ec("0x60")](t){const e=this[Ec("0x1e")].plugins[Ec("0x66")](Ec("0x20")),n=this[Ec("0x2b")][Ec("0x66")](t),o=n[Ec("0x35")],s=e.getByInnerView(o);s&&e[Ec("0x3a")](s),this[Ec("0x2b")][Ec("0x36")](t),this[Ec("0x13")][Ec("0x36")](o),n[Ec("0x23")]()}[Ec("0x33")](t){if(!t[Ec("0x10")]||!this._suggestionToController[Ec("0x56")](t))return;const e=this.editor[Ec("0x32")].get(Ec("0x41")),n=this[Ec("0x2b")][Ec("0x66")](t),o=t[Ec("0x1a")]();n.view.descriptionParts=e[Ec("0x3b")].getDescriptions(o)}[Ec("0x23")](){for(const t of this[Ec("0x2b")][Ec("0x46")]())this[Ec("0x60")](t);for(const t of this[Ec("0x61")][Ec("0x34")]())t[Ec("0x2e")][Ec("0x23")]();super.destroy()}}var Tc,Cc,yc=["get","getSuggestion","addSuggestion","pluginName","addSuggestionData","adapter","editor","plugins","Comments","getSuggestions","TrackChanges"];Tc=yc,Cc=298,function(t){for(;--t;)Tc.push(Tc.shift())}(++Cc);var kc=function(t,e){return yc[t-=0]};class Ac extends t.Plugin{static get requires(){return[Wa,_c,kc("0x7")]}static get[kc("0x2")](){return kc("0x9")}set[kc("0x4")](t){this[kc("0x5")][kc("0x6")][kc("0xa")](Wa)[kc("0x4")]=t}get[kc("0x4")](){return this[kc("0x5")][kc("0x6")][kc("0xa")](Wa)[kc("0x4")]}[kc("0x1")](t){return this[kc("0x5")][kc("0x6")][kc("0xa")](Wa)[kc("0x3")](t)}[kc("0x8")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[kc("0x5")].plugins[kc("0xa")](Wa)[kc("0x8")]({skipNotAttached:t,toJSON:e})}[kc("0x0")](t){return this[kc("0x5")][kc("0x6")][kc("0xa")](Wa)[kc("0x0")](t)}}const vc=["Pagination","trackChangesData","name","destroy","constructor","document","addSuggestionData","init","config","getFullData","CommentsRepository","data","set","map","push","createDocumentFragment","pluginName","editor","plugins","reduce","editorCreator","useAnonymousUser","track-changes-data-invalid-editor-creator","TrackChangesDataGetter","discardAllSuggestions","get","getSuggestions","_adapter","users","define","acceptAllSuggestions","getDataWithDiscardedSuggestions","getRootsAttributes","TrackChangesData","function","model","trackChangesData.editorCreator","div","getRootNames","TrackChangesEditing","result","appendChild","getUser","Users"];var Rc,Sc;Rc=vc,Sc=273,function(t){for(;--t;)Rc.push(Rc.shift())}(++Sc);const Ic=function(t,e){return vc[t-=0]},Lc=[Ic("0x23")];class Nc extends t.Plugin{static get requires(){return[Wa]}static get[Ic("0x7")](){return Ic("0x18")}[Ic("0x2a")](){const t=this.editor;if(t[Ic("0x2b")][Ic("0x14")](Ic("0x1b"),(e=>{const n=t[Ic("0x1a")][Ic("0x28")].getRootNames().reduce(((t,e)=>(t[e]="",t)),{});return t[Ic("0x27")].create(n,e)})),Ic("0x19")!=typeof t[Ic("0x2b")].get(Ic("0x24"))[Ic("0xb")])throw new e.CKEditorError(Ic("0xd"))}getDataWithAcceptedSuggestions(t){return Oc(this[Ic("0x8")],!0,t)}[Ic("0x16")](t){return Oc(this[Ic("0x8")],!1,t)}}class wc extends t.Plugin{static get[Ic("0x7")](){return Ic("0xe")}constructor(t){super(t),this[Ic("0x1f")]="end"}init(){this[Ic("0x8")][Ic("0x9")][Ic("0x10")](Ic("0x1"))[Ic("0x12")]={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this.editor.plugins[Ic("0x10")](Ic("0x1e"))[Ic("0x12")]=null}}function Mc(t){return void 0!==t[Ic("0x17")]}async function Oc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Lc);o.plugins[Ic("0x5")](Wa,wc),o.rootsAttributes=Mc(t)?t[Ic("0x17")]():void 0;const s=document[Ic("0x6")](),i=t[Ic("0x2b")].get(Ic("0x24"))[Ic("0xb")],x=await i(o,(()=>function(t){const e=document.createElement(Ic("0x1c"));return t[Ic("0x20")](e),e}(s)));!function(t,e){const n=t[Ic("0x1a")].document[Ic("0x1d")]()[Ic("0xa")](((e,n)=>(e[n]=t[Ic("0x2")][Ic("0x10")]({rootName:n}),e)),{}),o=t[Ic("0x9")].get(Ic("0x22"))[Ic("0x13")][Ic("0x4")]((t=>({id:t.id,name:t[Ic("0x25")]}))),s=t[Ic("0x9")][Ic("0x10")]("TrackChangesEditing")[Ic("0x11")]({skipNotAttached:!0,toJSON:!0}),r=e[Ic("0x9")][Ic("0x10")]("Users"),i=e.plugins[Ic("0x10")]("TrackChangesEditing");for(const t of o)r[Ic("0x21")](t.id)||r.addUser(t);r.me||r[Ic("0xc")]();for(const t of s)i[Ic("0x29")](t);e[Ic("0x2")][Ic("0x3")](n)}(t,x),x.execute(Ic(e?"0x15":"0xf"));const a=Mc(x)?x[Ic("0x0")](n):x.data[Ic("0x10")](n);return await x[Ic("0x26")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();