@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230806.0 → 0.0.0-nightly-20230808.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/LICENSE.md +5 -5
  3. package/README.md +13 -13
  4. package/build/track-changes.js +1 -1
  5. package/package.json +3 -3
  6. package/src/commands/acceptsuggestioncommand.js +1 -1
  7. package/src/commands/discardsuggestioncommand.js +1 -1
  8. package/src/commands/executeonallsuggestionscommand.js +1 -1
  9. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  10. package/src/commands/trackchangescommand.js +1 -1
  11. package/src/integrations/alignment.js +1 -1
  12. package/src/integrations/basicstyles.js +1 -1
  13. package/src/integrations/blockquote.js +1 -1
  14. package/src/integrations/ckbox.js +1 -1
  15. package/src/integrations/codeblock.js +1 -1
  16. package/src/integrations/comments.js +1 -1
  17. package/src/integrations/deletecommand.js +1 -1
  18. package/src/integrations/documentlist.js +1 -1
  19. package/src/integrations/documentlistproperties.js +1 -1
  20. package/src/integrations/entercommand.js +1 -1
  21. package/src/integrations/findandreplace.js +1 -1
  22. package/src/integrations/font.js +1 -1
  23. package/src/integrations/formatpainter.js +1 -1
  24. package/src/integrations/heading.js +1 -1
  25. package/src/integrations/highlight.js +1 -1
  26. package/src/integrations/horizontalline.js +1 -1
  27. package/src/integrations/htmlembed.js +1 -1
  28. package/src/integrations/image.js +1 -1
  29. package/src/integrations/imagereplace.js +1 -1
  30. package/src/integrations/importword.js +1 -1
  31. package/src/integrations/indent.js +1 -1
  32. package/src/integrations/inputcommand.js +1 -1
  33. package/src/integrations/link.js +1 -1
  34. package/src/integrations/list.js +1 -1
  35. package/src/integrations/listproperties.js +1 -1
  36. package/src/integrations/mediaembed.js +1 -1
  37. package/src/integrations/mention.js +1 -1
  38. package/src/integrations/pagebreak.js +1 -1
  39. package/src/integrations/paragraph.js +1 -1
  40. package/src/integrations/removeformat.js +1 -1
  41. package/src/integrations/restrictededitingmode.js +1 -1
  42. package/src/integrations/shiftentercommand.js +1 -1
  43. package/src/integrations/standardeditingmode.js +1 -1
  44. package/src/integrations/style.js +1 -1
  45. package/src/integrations/table.js +1 -1
  46. package/src/integrations/tablecaption.js +1 -1
  47. package/src/integrations/tableclipboard.js +1 -1
  48. package/src/integrations/tablecolumnresize.js +1 -1
  49. package/src/integrations/tableheadings.js +1 -1
  50. package/src/integrations/tablemergesplit.js +1 -1
  51. package/src/integrations/tableofcontents.js +1 -1
  52. package/src/integrations/tableproperties.js +1 -1
  53. package/src/integrations/template.js +1 -1
  54. package/src/integrations/title.js +1 -1
  55. package/src/integrations/undo.js +1 -1
  56. package/src/integrations/utils.js +1 -1
  57. package/src/suggestion.js +1 -1
  58. package/src/suggestiondescriptionfactory.js +1 -1
  59. package/src/trackchanges.js +1 -1
  60. package/src/trackchangesdata.js +1 -1
  61. package/src/trackchangesediting.js +1 -1
  62. package/src/trackchangesui.js +1 -1
  63. package/src/ui/suggestioncontroller.js +1 -1
  64. package/src/ui/view/basesuggestionthreadview.js +1 -1
  65. package/src/ui/view/suggestionthreadview.js +1 -1
  66. package/src/utils/common-translations.js +1 -1
  67. 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:()=>ac,TrackChanges:()=>Ac,TrackChangesData:()=>Nc,TrackChangesEditing:()=>Va});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["isEnabled","execute","_enableCommands","_isEnabledBasedOnSelection","value","commands","refresh","forceDisabled","_disableUnsupportedCommands","clearForceDisabled","has","TrackChangesCommand","affectsData","editor","_enabledCommands"];var c,l;c=a,l=364,function(t){for(;--t;)c.push(c.shift())}(++l);const d=function(t,e){return a[t-=0]};class u extends t.Command{constructor(t,e){super(t),this._enabledCommands=e,this.value=!1,this[d("0x2")](),this[d("0xe")]=!1}refresh(){this[d("0xb")]=!0}[d("0xc")](){this[d("0x0")]=!this[d("0x0")],this[d("0x0")]?this[d("0x4")]():this[d("0xd")]()}_disableUnsupportedCommands(){for(const t of this[d("0x9")][d("0x1")][d("0x1")]())t.affectsData&&!this[d("0xa")].has(t)&&t[d("0x3")](d("0x7"))}[d("0xd")](){for(const t of this[d("0x9")][d("0x1")][d("0x1")]())t[d("0x8")]&&!this._enabledCommands[d("0x6")](t)&&t[d("0x5")]("TrackChangesCommand")}}const g=["_suggestions","getRanges","plugins","execute","canEditAt","editor","get","refresh","TrackChangesEditing","isEnabled","acceptSuggestion","_isEnabledBasedOnSelection"];var m,f;m=g,f=397,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._suggestions=e,this[h("0x6")](),this[h("0xa")]=!1}[h("0x6")](){this[h("0x8")]=!0}[h("0x2")](t){const n=this[h("0xb")][h("0x5")](t);if(!n)throw new e.CKEditorError("track-changes-accept-suggestion-not-found",this);const o=n[h("0x0")]();this[h("0x4")].model[h("0x3")](o)&&this.editor[h("0x1")][h("0x5")](h("0x7"))[h("0x9")](n)}}const b=["getRanges","refresh","editor","execute","_isEnabledBasedOnSelection","model","get","canEditAt","TrackChangesEditing","isEnabled","track-changes-discard-suggestion-not-found","_suggestions","discardSuggestion"];var E,_;E=b,_=407,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class C extends t.Command{constructor(t,e){super(t),this._suggestions=e,this[T("0xa")](),this[T("0x0")]=!1}[T("0xa")](){this[T("0x5")]=!0}[T("0xc")](t){const n=this[T("0x7")][T("0x2")](t);if(!n)throw new e.CKEditorError(T("0x6"),this);const o=n[T("0x9")]();this[T("0xb")][T("0x1")][T("0x3")](o)&&this[T("0xb")].plugins[T("0x2")](T("0x4"))[T("0x8")](n)}}const y=["end","isArray","isMultiRange","start","createPositionBefore","join","getRange","from","value","change","deletion","createPositionAfter","isTouching","push","splice","execute","isIntersecting","type","schema","getMarkers","isCollapsed","sort","createPositionAt","createRange","getRanges","color","isInContent"];var k,A;k=y,A=195,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0xf")](((t,e)=>v("0x4")==t[v("0xb")]&&v("0x4")!=e[v("0xb")]?-1:v("0x4")!=t[v("0xb")]&&v("0x4")==e[v("0xb")]?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0xc")];for(;o<t.length;){const i=t[o],x=t[o+1];n||(n=e[v("0x19")](i)),I(e,i,x)||(s[v("0x7")](e[v("0x11")](n,r.isObject(i)?e.createPositionAfter(i):e[v("0x10")](i,"end"))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0x5")](e),s=t[v("0x19")](n);return o[v("0x6")](s)}function L(t,e,n){for(;n.length;){const o=n[v("0x8")](0,100);t[v("0x3")]((()=>{for(const t of o)t[v("0x14")]&&e[v("0x9")](t.id)}))}}const N=["refresh","execute","isEnabled","editor","values","model","isInContent","_suggestions","canEditAt","getRanges"];var M,w;M=N,w=348,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this._command=e,this[O("0x9")]=n,this[O("0x2")](),this._isEnabledBasedOnSelection=!1}[O("0x2")](){const t=Array.from(this[O("0x9")][O("0x6")]()).some((t=>t[O("0x8")]));this[O("0x4")]=this._command[O("0x4")]&&t}[O("0x3")](){const t=R(Array.from(this[O("0x9")][O("0x6")]()));for(const e of t){const t=e[O("0x1")]();if(!this[O("0x5")][O("0x7")][O("0x0")](t))return}L(this[O("0x5")][O("0x7")],this._command,t)}}const P=["getRanges","canEditAt","document","editor","from","_command","refresh","_selectedSuggestions","execute","selection","model","values","_suggestions","size","_isEnabledBasedOnSelection","isEnabled"];var D,B;D=P,B=385,function(t){for(;--t;)D.push(D.shift())}(++B);const j=function(t,e){return P[t-=0]};class U extends t.Command{constructor(t,e,n){super(t),this[j("0x4")]=e,this[j("0xb")]=n,this[j("0x6")]=new Set,this[j("0x5")](),this[j("0xd")]=!1}[j("0x5")](){const t=this.editor[j("0x9")][j("0x1")][j("0x8")],e=Array.from(this[j("0xb")][j("0xa")]());this[j("0x6")]=function(t,e){const n=Array[v("0x1")](t[v("0x12")]()),o=new Set;for(const s of e)if(s[v("0x14")])for(const e of n)for(const n of s[v("0xd")]()){const r=n[v("0x0")]();(e[v("0xa")](r)||t[v("0xe")]&&!s[v("0x17")]&&s.next&&r[v("0x15")][v("0x6")](e[v("0x18")]))&&o.add(s)}return o}(t,e),this[j("0xe")]=this._command[j("0xe")]&&!!this._selectedSuggestions[j("0xc")]}[j("0x7")](){const t=R(Array[j("0x3")](this[j("0x6")]));for(const e of t){const t=e[j("0xf")]();if(!this[j("0x2")][j("0x9")][j("0x0")](t))return}L(this[j("0x2")][j("0x9")],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 V=Array.prototype.splice;const W=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():V.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=z(e,t);return n<0?void 0:e[n][1]};const q=function(t){return z(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=z(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=W,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const J=$;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const 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 Mt=Lt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=wt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Vt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Wt=function(t){var e=Vt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Vt(this,t).get(t)};const qt=function(t){return Vt(this,t).has(t)};const Xt=function(t,e){var n=Vt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Wt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,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 Me=function(t,e){var n=ge(t),o=!n&&ue(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const Ve=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const We=function(t){return je(t)?Me(t,!0):Ve(t)};const Ke=function(t,e){return t&&re(e,We(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,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,We,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),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 Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Vn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Wn=Se&&Se.isMap;const Kn=Wn?ke(Wn):Vn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?ke(Xn):qn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var 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?We:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=po(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const 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 Mo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=So;case"[object Set]":var a=1&o;if(x||(x=Io),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=dn(t),a=x.length;if(a!=dn(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:wo.call(e,l)))return!1}var d=r.get(t),u=r.get(e);if(d&&u)return d==e&&u==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===p?f===h||s(f,h,n,o,r):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po: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):Mo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=d&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!u&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const zo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const Vo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Wo=function(t,e){return e.length<2?t:zo(t,Vo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Wo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["get","createdAt","getContainedElement","map","removeMarkers","onDiscard","accept","_saved","getMarkerNames","reduce","next","addMarker","filter","set","_onDiscard","length","commentThread","head","split","type","getMultiRangeId","removeMarker","discard","getItems","end","data","isIntersecting","isInContent","attributes","delete","@external","add","getMarkers","setAttribute","author","change","decorate","getFirstRange","push","addRange","suggestion:","nodeAfter","creator","getFirstMarker","getRanges","onAccept","nodeBefore","_markerNames","hasComments","subType","_onAttributesChange","clear","previous","toJSON","getRange","_model"];var $o,Jo;$o=Xo,Jo=211,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("0x6")]=e[Qo("0x6")]||null,this[Qo("0x2f")]=e[Qo("0x2f")],this.creator=e[Qo("0x37")]||e[Qo("0x2f")],this.isExternal=Boolean(e[Qo("0x29")]&&e.attributes[Qo("0x2b")]),this[Qo("0x26")]=null,this[Qo("0xc")]=t,this._onAccept=e[Qo("0x2")],this[Qo("0x1b")]=e[Qo("0x12")],this[Qo("0x7")]=e.onAttributesChange,this[Qo("0x4")]=new Set,this[Qo("0xe")]=null,this[Qo("0x1a")]("authoredAt",null),this[Qo("0x1a")]("attributes",e.attributes||{}),this[Qo("0x1a")]("previous",null),this[Qo("0x1a")](Qo("0x17"),null),this[Qo("0x1a")](Qo("0x1d"),null),this[Qo("0x1a")](Qo("0x14"),!1),this.decorate(Qo("0x13")),this[Qo("0x31")](Qo("0x23"))}get head(){let t=this;for(;t[Qo("0x9")];)t=t[Qo("0x9")];return t}get[Qo("0x5")](){return!!this[Qo("0x1d")]&&this[Qo("0x1d")][Qo("0x1c")]>0}get isMultiRange(){return 0!=this[Qo("0x4")].size&&6==Array.from(this[Qo("0x4")])[0][Qo("0x1f")](":").length}get[Qo("0x28")](){return null!==this[Qo("0x0")]()}addMarkerName(t){this[Qo("0x4")][Qo("0x2c")](t)}[Qo("0x15")](){return Array.from(this[Qo("0x4")])}getMarkers(){return this[Qo("0x15")]()[Qo("0x10")]((t=>this[Qo("0xc")].markers[Qo("0xd")](t)))[Qo("0x19")]((t=>t))}[Qo("0x0")](){return this.getMarkers()[0]||null}removeMarkers(){this[Qo("0xc")][Qo("0x30")]((t=>{for(const e of this.getMarkers())t[Qo("0x22")](e)})),this._markerNames[Qo("0x8")]()}removeMarker(t){this[Qo("0xc")][Qo("0x30")]((e=>{e[Qo("0x22")](t)})),this._markerNames[Qo("0x2a")](t)}[Qo("0x34")](t){const e=Qo("0x35")+this.type+":"+this[Qo("0x6")]+":"+this.id+":"+this[Qo("0x37")].id+":"+Zo[Qo("0x21")]();this.addMarkerName(e),this[Qo("0xc")][Qo("0x30")]((n=>{n[Qo("0x18")](e,{range:t,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(t){for(const e of this[Qo("0x1")]())if(e[Qo("0x27")](t))return!0;return!1}[Qo("0x1")](){return this[Qo("0x2d")]()[Qo("0x10")]((t=>t.getRange()))}[Qo("0x24")](){return this[Qo("0x1")]()[Qo("0x16")](((t,e)=>[...t,...e[Qo("0x24")]()]),[])}[Qo("0x32")](){var t;return(null===(t=this[Qo("0x0")]())||void 0===t?void 0:t[Qo("0xb")]())||null}[Qo("0xf")](){const t=this[Qo("0x1")]();if(1!=t[Qo("0x1c")])return null;const e=t[0],n=e.start[Qo("0x36")],o=e[Qo("0x25")][Qo("0x3")];return n instanceof i.Element?n!=o?null:n:null}accept(){this._onAccept(this.getRanges(),this[Qo("0x26")],this[Qo("0x29")]),this[Qo("0x11")]()}discard(){this[Qo("0x1b")](this[Qo("0x1")](),this[Qo("0x26")],this.attributes),this[Qo("0x11")]()}getAllAdjacentSuggestions(){const t=[];let e=this[Qo("0x1e")];for(;e;)t[Qo("0x33")](e),e=e[Qo("0x17")];return t}[Qo("0x2e")](t,e){const n=eo(this[Qo("0x29")]);_o(n,t,e),Go(n,this[Qo("0x29")])||(this[Qo("0x29")]=n,this._onAttributesChange(n))}removeAttribute(t){const e=eo(this.attributes);qo(e,t),Go(e,this.attributes)||(this.attributes=e,this._onAttributesChange(this[Qo("0x29")]))}[Qo("0xa")](){return{id:this.id,type:this.subType?this[Qo("0x20")]+":"+this[Qo("0x6")]:this.type,authorId:this[Qo("0x37")].id,createdAt:this[Qo("0xe")],hasComments:this[Qo("0x5")],data:this.data,attributes:this.attributes}}static[Qo("0x21")](){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=["element","softBreak","skip","elementEnd","addObject","*Remove:* %0","removeEmptyContainer","isEmpty","$1 $2","_locale","registerElementLabel","item","getWalker","type","set","indexOf","$textProxy","text","_customCallbacks","_itemLabels","nextSibling","removeContainer","normal","Object","push","_itemLabelsCallbacks","elementStart","_schema","start","data","insertion","pop","quantity","getFirstRange","getItemLabel","deletion","matchingCallback","REPLACE_TEXT","add","replace","registerDescriptionCallback","isObject","removeObject","isInContent","remove","$text","match","checkChild","name","_addDescriptionItems","getDescriptions","label","Container","EmptyContainer","*Merge:* %0","addContainer","length","get","previousSibling","*Insert:* %0"];var es,ns;es=ts,ns=254,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class ss{constructor(t,e){this._customCallbacks=[],this[os("0x5")]=new Map,this._itemLabelsCallbacks=[],this[os("0xd")]=t,this[os("0x37")]=e}[os("0x24")](t){const e=[];for(let n=0;n<t[os("0x2a")];n++){const o=t[n];if(!o[os("0x1d")])continue;let s=!1;for(const t of this[os("0x4")]){const n=t(o);if(n){os("0x3b")in n&&e[os("0xa")](n),s=!0;break}}if(!s){this[os("0x23")](e,o);const s=t[n+1];if(s&&!o.getFirstRange().end.isEqual(s[os("0x13")]()[os("0xe")])){const t=e[e.length-1],n=os("0x10")==o[os("0x3b")]?os("0x18"):os("0x1e");t&&os("0x3")==t[os("0x3b")]&&(t[n]+="\n")}}}return this._resolveDescriptionItems(e)}[os("0x1a")](t){this[os("0x4")][os("0xa")](t)}[os("0x38")](t,n,o=e.priorities[os("0x8")]){"function"==typeof t?(0,e.insertToPriorityArray)(this._itemLabelsCallbacks,{matchingCallback:t,label:n,priority:o}):this._itemLabels[os("0x0")](t,n)}getItemLabel(t,e=1){let n;for(const e of this[os("0xb")])if(e[os("0x16")](t)){n=e[os("0x25")];break}return n||(n=this._itemLabels[os("0x2b")](t.name)),n?n(e):1!==e?e+" "+t[os("0x22")]+"s":""+t[os("0x22")]}_addDescriptionItems(t,e){const n=e[os("0x13")]()[os("0x3a")](),o=os("0x10")==e[os("0x3b")]?os("0x18"):"remove";for(const e of n){const s=e[os("0x39")],r=t[t[os("0x2a")]-1];if(s.is(os("0x2")))r&&r.type[os("0x1")](os("0x26"))>-1&&t[os("0x11")](),r&&os("0x3")==r[os("0x3b")]?r[o]+=s[os("0xf")]:t[os("0xa")]({type:os("0x3"),add:os("0x18")==o?s[os("0xf")]:"",remove:os("0x1e")==o?s[os("0xf")]:""});else if(this[os("0xd")][os("0x1b")](s)){const i=s;if(r&&r[os("0x3b")][os("0x1")]("Container")>-1&&t[os("0x11")](),os("0x31")==e.type)continue;r&&r[os("0x3b")]==o+"Object"&&r[os("0x2e")].name==i.name?r[os("0x12")]++:t[os("0xa")]({type:o+os("0x9"),element:i,quantity:1}),n[os("0x30")]((t=>!("elementEnd"==t[os("0x3b")]&&t[os("0x39")]==s)))}else if(this[os("0xd")][os("0x21")](s,os("0x1f"))||s.is(os("0x2e"),os("0x2f"))){const n=s;if(os("0x18")==o&&os("0xc")==e[os("0x3b")]||os("0x1e")==o&&os("0x31")==e[os("0x3b")])continue;if(r&&-1==r[os("0x3b")][os("0x1")]("Container")){os("0x3")==r[os("0x3b")]&&(r[o]+="\n");continue}let i;if(i=os("0x18")==o?n[os("0x6")]&&!this._schema[os("0x1b")](n[os("0x6")])?n[os("0x6")]:null:n[os("0x2c")]&&!this[os("0xd")][os("0x1b")](n.previousSibling)?n[os("0x2c")]:null,n[os("0x35")]||i&&i.isEmpty){const e=i&&i.isEmpty?i:n;r&&r[os("0x3b")]==o+os("0x27")&&r[os("0x2e")].name==e[os("0x22")]?r.quantity++:t[os("0xa")]({type:o+os("0x27"),element:e,quantity:1})}else t[os("0xa")]({type:o+os("0x26"),element:n})}}}_resolveDescriptionItems(t){const e=this[os("0x37")],n=[];for(const o of t){switch(o[os("0x3b")]){case os("0x3"):if(o.add=o[os("0x18")].replace(/(\S)\u000A+(\S)/g,os("0x36"))[os("0x19")](/\u000A/g,""),o[os("0x1e")]=o[os("0x1e")][os("0x19")](/(\S)\u000A+(\S)/g,os("0x36"))[os("0x19")](/\u000A/g,""),""!=o.add&&""!=o[os("0x1e")]){n[os("0xa")]({type:"replace",content:Yo(e,os("0x17"),['"'+o[os("0x1e")]+'"','"'+o.add+'"'])});continue}if(null!=o[os("0x18")][os("0x20")](/^ +$/)){n[os("0xa")]({type:os("0x10"),content:Yo(e,os("0x2d"),Yo(e,"ELEMENT_SPACE",o[os("0x18")][os("0x2a")]))});continue}if(null!=o.remove[os("0x20")](/^ +$/)){n[os("0xa")]({type:os("0x15"),content:Yo(e,os("0x33"),Yo(e,"ELEMENT_SPACE",o[os("0x1e")].length))});continue}if(""!=o[os("0x18")]){n[os("0xa")]({type:os("0x10"),content:Yo(e,os("0x2d"),'"'+o[os("0x18")]+'"')});continue}n[os("0xa")]({type:"deletion",content:Yo(e,os("0x33"),'"'+o[os("0x1e")]+'"')});continue;case"addEmptyContainer":case os("0x32"):n.push({type:os("0x10"),content:Yo(e,os("0x2d"),this[os("0x14")](o.element,o[os("0x12")]))});continue;case os("0x34"):case os("0x1c"):n[os("0xa")]({type:os("0x15"),content:Yo(e,os("0x33"),this.getItemLabel(o[os("0x2e")],o.quantity))});continue;case os("0x29"):n[os("0xa")]({type:os("0x10"),content:Yo(e,"*Split:* %0",this[os("0x14")](o[os("0x2e")],o[os("0x12")]))});continue;case os("0x7"):n[os("0xa")]({type:os("0x15"),content:Yo(e,os("0x28"),this[os("0x14")](o[os("0x2e")],o[os("0x12")]))});continue}n[os("0xa")](o)}return n}}const rs=["left","TrackChangesEditing","enableCommand","right","schema","get","editor","_descriptionFactory","center","plugins","model","registerDescriptionCallback","value","FORMAT_ALIGN_TO_RIGHT","filter","ltr","checkAttribute","*Format:* %0","commandParams","afterInit","justify","document","AlignmentEditing","commandName","has","markBlockFormat","getSelectedBlocks","getAttribute","locale","format","alignment"];var is,xs;is=rs,xs=380,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0xb")](){const t=this.editor,e=t[as("0x14")];if(!t[as("0x1")][as("0x10")](as("0xe")))return;const n=t.plugins[as("0x1c")](as("0x18"));n[as("0x19")]("alignment",((e,o={})=>{let s=o[as("0x4")];o.value||(s=as("0x7")===t[as("0x14")].contentLanguageDirection?as("0x17"):"right");const r=Array.from(this[as("0x1d")].model[as("0xd")].selection[as("0x12")]())[as("0x6")]((t=>function(t,e,n){const o=t[as("0x13")](as("0x16"))||null;return e[as("0x8")](t,as("0x16"))&&n!=o}(t,this[as("0x1d")].model[as("0x1b")],s)));t[as("0x2")].change((()=>{for(const t of r)n[as("0x11")](t,{commandName:as("0x16"),commandParams:[{value:s}]})}))})),n[as("0x1e")][as("0x3")]((t=>{const{data:n}=t;if(n&&as("0x16")==n[as("0xf")]){const t=n[as("0xa")][0][as("0x4")];return{type:as("0x15"),content:Yo(e,as("0x9"),function(t){switch(t){case as("0x17"):return Yo(e,"FORMAT_ALIGN_TO_LEFT");case as("0x1a"):return Yo(e,as("0x5"));case as("0x0"):return Yo(e,"FORMAT_ALIGN_TO_CENTER");case as("0xc"):return Yo(e,"FORMAT_JUSTIFY_TEXT")}}(t))}}}))}}const ls=["toViewElement","createUIElement","markerRange","toViewPosition","get","markerName","includes","insert","getAttribute","getItems","model","name","activeMarkers","isBlock","listIndent","push","createRangeOn","isLimit","getCustomProperty","hasAttribute","TrackChangesEditing","writer","ck-suggestion-marker-","start","mapper","bindElementToMarker","span","previousPosition","plugins","elementEnd","schema","addClass","isAtEnd","type","listItem","nextSibling","ck-suggestion-marker--active","addHighlight","element","getWalker"];var ds,us;ds=ls,us=407,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("0x2")]())s[gs("0xc")](t)&&o[gs("0x8")](n[gs("0x9")](s));return o}function fs(t){const e=[];if(t.is(gs("0x1f"),gs("0x1b"))){let n=t.nextSibling;for(;n&&n.is(gs("0x1f"),gs("0x1b"))&&n[gs("0x1")](gs("0x7"))>0;)e.push(n),n=n[gs("0x1c")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t[gs("0x15")][gs("0x25")](gs("0xd"));return(s,r,i)=>{if(!i.consumable.test(r[gs("0x23")],s[gs("0x4")]))return;const x=r[gs("0x23")][gs("0x20")](),a=r[gs("0x23")][gs("0x10")],c=t[gs("0x3")][gs("0x17")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t.item;u=u||c.isContent(e);const n=i[gs("0x11")][gs("0x21")](e);if(n&&n[gs("0xb")](gs("0x1e")))return;gs("0x16")==t[gs("0x1a")]&&c[gs("0x6")](e)&&!c[gs("0xa")](e)&&(e[gs("0x1c")]||a[gs("0x19")]?l&&l.parent==e||(l=e,m(t[gs("0x14")]),g=!0):d=d||t[gs("0x14")])}function m(t){const s=i[gs("0xe")][gs("0x22")](gs("0x13"),{class:gs("0xf")+e}),x=i[gs("0x11")][gs("0x24")](t);n&&o[gs("0x5")][gs("0x27")](r[gs("0x26")])&&i.writer[gs("0x18")](gs("0x1d"),s),i[gs("0xe")][gs("0x0")](x,s),i[gs("0x11")][gs("0x12")](s,r[gs("0x26")])}u||g||!d||m(d)}}const ps=["registerDescriptionCallback","StrikethroughEditing","FORMAT_SUPERSCRIPT","SuperscriptEditing","_descriptionFactory","underline","subscript","selection","markInlineFormat","slice","getRanges","commandParams","enableCommand","FORMAT_SUBSCRIPT","strikethrough","plugins","italic","ItalicEditing","forceValue","commands","*Format:* %0","FORMAT_UNDERLINE","get","commandName","SubscriptEditing","FORMAT_ITALIC","change","format","from","FORMAT_BOLD","toLowerCase","superscript","isCollapsed","bold","CodeEditing","FORMAT_CODE","TrackChangesEditing","afterInit","BoldEditing"];var bs,Es;bs=ps,Es=114,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=[_s("0x2"),_s("0x14"),"UnderlineEditing",_s("0x25"),_s("0x4"),_s("0x1b"),_s("0x6")];class Cs extends t.Plugin{[_s("0x1")](){const t=this.editor,e=t.model,n=t[_s("0x12")].get(_s("0x0")),o=t.locale;for(const o of Ts){if(!t[_s("0x12")].has(o))continue;const s=o[_s("0xc")](0,-7)[_s("0x21")](),r=t[_s("0x16")][_s("0x19")](s);n[_s("0xf")](s,((t,o={})=>{const i=e.document[_s("0xa")];if(i[_s("0x23")])return void t(o);const x=void 0!==o.forceValue?o[_s("0x15")]:!r.value;e[_s("0x1d")]((()=>{const t=Array[_s("0x1f")](i[_s("0xd")]());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n[_s("0xb")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[_s("0x7")][_s("0x3")]((n=>{const{data:s}=n;if(s&&s[_s("0x1a")]===t)return s[_s("0xe")][0].forceValue?{type:"format",content:Yo(o,_s("0x17"),e)}:{type:_s("0x1e"),content:Yo(o,"*Remove format:* %0",e)}}))}s(_s("0x24"),Yo(o,_s("0x20"))),s(_s("0x13"),Yo(o,_s("0x1c"))),s(_s("0x8"),Yo(o,_s("0x18"))),s("code",Yo(o,_s("0x26"))),s(_s("0x11"),Yo(o,"FORMAT_STRIKETHROUGH")),s(_s("0x9"),Yo(o,_s("0x10"))),s(_s("0x22"),Yo(o,_s("0x5")))}}const ys=["afterInit","document","format","plugins","enableCommand","commandName","parent","TrackChangesEditing","value","from","registerDescriptionCallback","_descriptionFactory","model","filter","has","BlockQuoteEditing","editor","forceValue","blockQuote","schema","*Format:* %0","markBlockFormat","checkChild","commandParams","get","*Remove format:* %0","$root","locale"];var ks,As;ks=ys,As=124,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0x10")](){const t=this.editor,e=t[vs("0xf")];if(!t[vs("0x13")][vs("0x2")](vs("0x3")))return;const n=t[vs("0x13")].get(vs("0x17")),o=this[vs("0x4")].commands[vs("0xc")](vs("0x6"));n[vs("0x14")](vs("0x6"),((e,s={})=>{const r=this[vs("0x4")][vs("0x0")][vs("0x11")].selection,i=s&&void 0!==s[vs("0x5")]?s[vs("0x5")]:!o[vs("0x18")];let x=[];if(i){const e=Array[vs("0x19")](r.getSelectedBlocks())[vs("0x1")]((t=>Ss(t)||function(t,e){const n=e[vs("0xa")](t[vs("0x16")],vs("0x6")),o=e[vs("0xa")]([vs("0xe"),vs("0x6")],t);return n&&o}(t,this[vs("0x4")][vs("0x0")][vs("0x7")])));x=S(e,t.model)}else{const e=Array.from(r.getSelectedBlocks()).filter((t=>Ss(t)));x=S(e,t[vs("0x0")])}t[vs("0x0")].change((()=>{for(const t of x)n[vs("0x9")](t,{commandName:vs("0x6"),commandParams:[{forceValue:i}]})}))})),n[vs("0x1b")][vs("0x1a")]((t=>{const{data:n}=t;if(n&&vs("0x6")==n[vs("0x15")]){const t=Yo(e,"ELEMENT_BLOCK_QUOTE");return n[vs("0xb")][0][vs("0x5")]?{type:vs("0x12"),content:Yo(e,vs("0x8"),t)}:{type:vs("0x12"),content:Yo(e,vs("0xd"),t)}}}))}}function Ss(t){return vs("0x6")==t.parent.name}const Is=["commands","TrackChangesEditing","enableCommand","ckbox","afterInit","get","editor","plugins"];var Ls,Ns;Ls=Is,Ns=468,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const Ms=function(t,e){return Is[t-=0]};class ws extends t.Plugin{[Ms("0x0")](){const t=this[Ms("0x2")];t[Ms("0x4")].get(Ms("0x7"))&&t[Ms("0x3")][Ms("0x1")](Ms("0x5"))[Ms("0x6")](Ms("0x7"))}}const Os=["commandParams","codeBlock","plugins","get","registerElementLabel","has","TrackChangesEditing","parent","selection","value","schema","getSelectedBlocks","registerDescriptionCallback","document","blockName","CodeBlock","label","outdentCodeBlock","ELEMENT_CODE_BLOCK","name","formatBlock","change","checkChild","filter","language","markBlockFormat","_descriptionFactory","isLimit","locale","enableCommand","find","format","from","*Remove format:* %0","*Format:* %0"];var Fs,Ps;Fs=Os,Ps=425,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{afterInit(){const t=this.editor;if(!t[Ds("0x20")][Ds("0x0")](Ds("0xa")))return;const e=t[Ds("0x20")][Ds("0x21")](Ds("0x1")),n=t[Ds("0x17")],o=t.config[Ds("0x21")](Ds("0x1f")).languages,s=t.commands[Ds("0x21")]("codeBlock");e[Ds("0x18")]("indentCodeBlock"),e[Ds("0x18")](Ds("0xc")),e[Ds("0x18")](Ds("0x1f"),((n,r={})=>{const i=t.model,x=t.model[Ds("0x8")][Ds("0x3")],a=r&&void 0!==r.forceValue?r.forceValue:!s[Ds("0x4")];let c;r[Ds("0x13")]||(r[Ds("0x13")]=o[0][Ds("0x13")]),c=a?Array.from(x[Ds("0x6")]())[Ds("0x12")]((t=>{return js(t)||(e=t,n=i[Ds("0x5")],!e.is("rootElement")&&!n[Ds("0x16")](e)&&n[Ds("0x11")](e[Ds("0x2")],Ds("0x1f")));var e,n})):Array[Ds("0x1b")](x[Ds("0x6")]())[Ds("0x12")]((t=>js(t)));const l=S(c,i);i[Ds("0x10")]((()=>{for(const t of l)e[Ds("0x14")](t,{commandName:Ds("0x1f"),commandParams:[{...r,forceValue:a}],formatGroupId:Ds("0x9")})}))})),e[Ds("0x15")][Ds("0x22")](Ds("0x1f"),(t=>Yo(n,"ELEMENT_CODE_BLOCK",t))),e[Ds("0x15")][Ds("0x7")]((t=>{const e=n.t,{type:s,data:r}=t;if(Ds("0xf")==s&&r&&Ds("0x1f")==r.commandName){const t=r.commandParams[0][Ds("0x13")],s=e(o[Ds("0x19")]((e=>e[Ds("0x13")]===t))[Ds("0xb")]);return r[Ds("0x1e")][0].forceValue?{type:"format",content:Yo(n,Ds("0x1d"),Yo(n,Ds("0xd"),1)+" ("+s+")")}:{type:Ds("0x1a"),content:Yo(n,Ds("0x1c"),Yo(n,Ds("0xd"),1))}}}))}}function js(t){return Ds("0x1f")==t[Ds("0xe")]}const Us=["enableCommand","editor","TrackChangesEditing","afterInit","addCommentThread","get","plugins","CommentsEditing"];var Gs,Hs;Gs=Us,Hs=382,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const zs=function(t,e){return Us[t-=0]};class Vs extends t.Plugin{[zs("0x5")](){const t=this[zs("0x3")];t[zs("0x0")].has(zs("0x1"))&&t[zs("0x0")][zs("0x7")](zs("0x4"))[zs("0x2")](zs("0x6"))}}var Ws=n(181);const Ks=["createRange","downcastDispatcher","root","bind","isCollapsed","addMarker:suggestion:deletion","editing","unit","start","lock","batch","unlock","createSelection","showSuggestionHighlights","forward","getFirstRange","init","buffer","deleteForward","editor","commands","$graveyard","fromRange","setSelection","markerName","writer","removeMarker:suggestion:deletion","detach","merge","high","enqueueChange","model","TrackChangesEditing","end","document","mapper","remove"];var qs,Xs;qs=Ks,Xs=211,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 requires(){return[Ws.Delete]}[$s("0x1b")](){const t=this[$s("0x1e")],e=t.plugins.get($s("0x6"));e.enableCommand("delete");const n=t[$s("0x1f")].get($s("0x1d"));e.enableCommand($s("0x1d"),((e,o={})=>{const s=t[$s("0x5")][$s("0x17")](t[$s("0x5")][$s("0x8")].selection);s[$s("0xf")]&&t[$s("0x5")].modifySelection(s,{direction:$s("0x19"),unit:o[$s("0x12")]});const r=s[$s("0x1a")](),x=i.LiveRange[$s("0x21")](r);let a;e(o),a=$s("0x20")==x[$s("0xd")].rootName?t[$s("0x5")].createRange(r[$s("0x13")]):t[$s("0x5")][$s("0xb")](x[$s("0x13")],x[$s("0x7")]),x[$s("0x1")](),t[$s("0x5")][$s("0x4")](n[$s("0x1c")][$s("0x15")],(t=>{n.buffer[$s("0x14")](),t[$s("0x22")](t[$s("0xb")](a[$s("0x7")])),n[$s("0x1c")][$s("0x16")]()}))})),t[$s("0x11")][$s("0xc")].on($s("0x10"),hs(t,$s("0x2")),{priority:$s("0x3")}),t.data[$s("0xc")].on($s("0x10"),((e,n,o)=>{o.options[$s("0x18")]&&hs(t,$s("0x2"),{showActiveMarker:!1})[$s("0xe")](this)(e,n,o)}),{priority:$s("0x3")}),t[$s("0x11")][$s("0xc")].on($s("0x0"),((t,e,n)=>{const o=n[$s("0x9")].markerNameToElements(e.markerName);if(o)for(const t of o)t.is("uiElement")&&(n[$s("0x9")].unbindElementFromMarkerName(t,e[$s("0x23")]),n[$s("0x24")][$s("0xa")](t))}),{priority:$s("0x3")})}}const Qs=["fromRange","*Indent:* %0","markMultiRangeBlockFormat","indentList","editor","enableCommand","start","deletion","nodeAfter","toUpperCase","listItemId","format","outdentList","from","_suggestionFactory","getAttribute","findIndex","commandParams","*Change to:* %0","splitListItemBefore","markBlockFormat","commands","numberedList","selection","listIndent","refresh","DocumentListEditing","splitListItemAfter","map","afterInit","registerDescriptionCallback","document","ELEMENT_LIST_ITEM","ELEMENT_BULLETED_LIST","detach","locale","createRange","length","execute","listType","DocumentListUtils","change","containsItem","hasAttribute","_descriptionFactory","schema","add","has","documentList","get","slice","model","bulletedList","registerElementLabel","setSelection","nextSibling","*Format:* remove from %0","registerCustomCallback","isObject","end","previousSibling","push","forceValue","getSelectedBlocks","formatBlock","*Format:* insert into %0","commandName","createPositionAt","value","getFirstRange","isFirstBlockOfListItem","plugins","_LIST"];var Zs,Ys;Zs=Qs,Ys=165,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0xa")](){const t=this[tr("0x3a")];if(!t[tr("0x34")][tr("0x1c")](tr("0x7")))return;const e=t[tr("0x10")],n=t[tr("0x34")][tr("0x1e")]("TrackChangesEditing"),o=t[tr("0x34")][tr("0x1e")](tr("0x15"));function s(e){return()=>{const s=t[tr("0x2")][tr("0x1e")](e);let r=Array[tr("0x43")](t[tr("0x20")][tr("0xc")][tr("0x4")][tr("0x2c")]());if(a(e)){r=o.expandListBlocksToCompleteList(r);const t=[];for(const e of r)o[tr("0x33")](e)&&t[tr("0x2a")](e);r=t}t[tr("0x20")][tr("0x16")]((()=>{n[tr("0x38")](r,{commandName:e,commandParams:[{forceValue:!s.value}],formatGroupId:tr("0x14")},[],"documentList")}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0x43")](t);const n=e[tr("0x46")]((t=>!t[tr("0x18")]("listItemId")));return n>-1&&(e=e[tr("0x1f")](0,n)),e}(t[tr("0x20")][tr("0xc")][tr("0x4")][tr("0x2c")]()),s=o[o[tr("0x12")]-1],r=t[tr("0x20")][tr("0x1a")][tr("0x27")](s)?"after":tr("0x28"),i=t[tr("0x20")].createRange(t.model.createPositionAt(o[0],"before"),t[tr("0x20")][tr("0x30")](s,r));t[tr("0x20")][tr("0x16")]((()=>{n[tr("0x1")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x14")},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t[tr("0x45")](tr("0x5"))>n[tr("0x45")](tr("0x5"));)e[tr("0x1b")](t),t=t[tr("0x24")]}return Array[tr("0x43")](e)}(o))}))}}function x(e){return()=>{const o=t[tr("0x20")][tr("0xc")][tr("0x4")][tr("0x2c")]().next().value,s=t[tr("0x20")].createPositionAt(o,"before"),r=t[tr("0x20")].createPositionAt(o,0),i=t.model[tr("0x11")](s,r);t[tr("0x20")][tr("0x16")]((()=>{n[tr("0x1")](i,{commandName:e,commandParams:[],formatGroupId:"listType"})}))}}function a(e){const n=t[tr("0x2")][tr("0x1e")](tr("0x21"))[tr("0x31")],o=t[tr("0x2")][tr("0x1e")](tr("0x3")).value;return"numberedList"===e?n:o}n[tr("0x3b")](tr("0x3"),s(tr("0x3"))),n[tr("0x3b")]("bulletedList",s(tr("0x21"))),n.enableCommand(tr("0x39"),r(tr("0x39"))),n.enableCommand(tr("0x42"),r(tr("0x42"))),n.enableCommand("splitListItemAfter",x(tr("0x8"))),n[tr("0x3b")](tr("0x0"),x(tr("0x0"))),n[tr("0x19")][tr("0x22")]((function(e){const n=!t[tr("0x20")].schema[tr("0x27")](e),o=e[tr("0x29")],s=e[tr("0x24")],r=e[tr("0x45")](tr("0x40")),i=!o||o[tr("0x45")]("listItemId")!==r,x=!s||s[tr("0x45")](tr("0x40"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,tr("0xd"),t))),n[tr("0x19")][tr("0xb")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n.commandName){case tr("0x21"):r=n[tr("0x47")][0][tr("0x2b")],i=a(n.commandName),o=r?tr("0x2e"):"*Format:* remove from %0",i&&(o=tr("0x48")),s={type:"format",content:Yo(e,o,Yo(e,tr("0xe")))};break;case tr("0x3"):r=n.commandParams[0][tr("0x2b")],i=a(n[tr("0x2f")]),o=r?"*Format:* insert into %0":tr("0x25"),i&&(o="*Change to:* %0"),s={type:tr("0x41"),content:Yo(e,o,Yo(e,"ELEMENT_NUMBERED_LIST"))};break;case tr("0x39"):o=tr("0x37"),s={type:tr("0x41"),content:Yo(e,o,Yo(e,"ELEMENT_LIST_ITEM"))};break;case tr("0x42"):o=function(t){const e=t[tr("0x32")]();let n=e.start.nodeAfter;for(;n&&e[tr("0x17")](n);){if(n[tr("0x45")]("listIndent")>0)return!1;n=n.nextSibling}return!0}(t)?Yo(e,tr("0x25"),Yo(e,"ELEMENT_"+t[tr("0x32")]()[tr("0x3c")][tr("0x3e")][tr("0x45")](tr("0x14"))[tr("0x3f")]()+tr("0x35"))):Yo(e,"*Outdent:* %0",Yo(e,"ELEMENT_LIST_ITEM")),s={type:"format",content:o};break;case"mergeListItemBackward":case"mergeListItemForward":!1===n.multipleBlocks&&(o="*Merge:* %0",s={type:tr("0x3d"),content:Yo(e,o,Yo(e,tr("0xd")))})}return s})),n[tr("0x44")][tr("0x26")](tr("0x2d"),tr("0x1d"),"accept",(function(e,n){const o=[];for(let n of e)n[tr("0x3c")].nodeAfter===n[tr("0x28")].parent&&(n=t[tr("0x20")][tr("0x11")](t[tr("0x20")][tr("0x30")](n[tr("0x3c")][tr("0x3e")],0))),o[tr("0x2a")](n);t[tr("0x20")][tr("0x16")]((e=>{const s=t[tr("0x20")].document.selection,r=Array[tr("0x43")](s.getRanges())[tr("0x9")]((t=>i.LiveRange[tr("0x36")](t)));e[tr("0x23")](o),t[tr("0x2")][tr("0x1e")](n[tr("0x2f")])[tr("0x6")](),n.commandParams[tr("0x2a")]({forceDefaultExecution:!0}),t[tr("0x13")](n[tr("0x2f")],...n.commandParams),e[tr("0x23")](r);for(const t of r)t[tr("0xf")]()}))}))}}var nr=n(331);const or=["high","createPositionAt","markerName","requires","parent","setSelection","document","change","addMarker:suggestion:insertion","downcastDispatcher","unbindElementFromMarkerName","model","get","end","hasClass","split","ck-suggestion-marker-split","enter","fromRange","TrackChangesEditing","removeMarker:suggestion:insertion","init","editing","mapper","createRange","getFirstRange","selection","nextSibling","writer","plugins","enableCommand","options","commands","fire"];var sr,rr;sr=or,rr=452,function(t){for(;--t;)sr.push(sr.shift())}(++rr);const ir=function(t,e){return or[t-=0]};class xr extends t.Plugin{static get[ir("0x1b")](){return[nr.Enter]}[ir("0xb")](){const t=this.editor,e=t[ir("0x13")][ir("0x2")](ir("0x9")),n=t[ir("0x16")][ir("0x2")](ir("0x7"));e[ir("0x14")](ir("0x7"),(()=>{t.model[ir("0x1f")]((o=>{const s=t[ir("0x1")][ir("0x1e")][ir("0x10")],r=s.getFirstPosition(),x=i.LiveRange[ir("0x8")](s[ir("0xf")]());if(n.enterBlock(o)){const n=t.model[ir("0x19")](r[ir("0x1c")][ir("0x11")],0),s=o[ir("0xe")](r,n);e.markInsertion(s)}else o[ir("0x1d")](o[ir("0xe")](x[ir("0x3")]));x.detach(),n[ir("0x17")]("afterExecute",{writer:o})}))})),t[ir("0xc")][ir("0x21")].on(ir("0x20"),hs(t,ir("0x5")),{priority:ir("0x18")}),t[ir("0xc")][ir("0x21")].on(ir("0xa"),((t,e,n)=>{const o=n[ir("0xd")].markerNameToElements(e[ir("0x1a")]);if(o)for(const t of o)t[ir("0x4")](ir("0x6"))&&(n[ir("0xd")][ir("0x0")](t,e[ir("0x1a")]),n[ir("0x12")].remove(t))}),{priority:ir("0x18")}),t.data[ir("0x21")].on(ir("0x20"),((e,n,o)=>{o[ir("0x15")].showSuggestionHighlights&&hs(t,ir("0x5"),{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:ir("0x18")})}}const ar=["editor","bind","plugins","find","replaceAll","get","has","findNext","findPrevious","createRange","enableCommand","end","getIntersection","getRange","filter","suggestion:deletion","item","createPositionAt","model","handleFindCommand","FindAndReplaceUtils","start","_isInDeletionRange"];var cr,lr;cr=ar,lr=470,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return ar[t-=0]};class ur extends t.Plugin{afterInit(){if(!this.editor[dr("0xf")][dr("0x13")]("FindAndReplaceEditing"))return;const t=this[dr("0xd")][dr("0xf")][dr("0x12")]("TrackChangesEditing");t.enableCommand(dr("0x10"),this[dr("0x9")][dr("0xe")](this)),t.enableCommand(dr("0x14")),t[dr("0x0")](dr("0x15")),t[dr("0x0")]("replace"),t[dr("0x0")](dr("0x11"))}[dr("0x9")](t,e,n={}){const o=this[dr("0xd")][dr("0xf")][dr("0x12")](dr("0xa"));void 0!==n&&t((t=>("string"==typeof e?o.findByTextCallback(e,n):e)(t)[dr("0x4")]((e=>!1===this[dr("0xc")](e,t[dr("0x6")])))),n)}[dr("0xc")](t,e){const n=this.editor[dr("0x8")][dr("0x16")](this[dr("0xd")][dr("0x8")][dr("0x7")](e,t[dr("0xb")]),this[dr("0xd")][dr("0x8")].createPositionAt(e,t[dr("0x1")]));for(const t of this[dr("0xd")][dr("0x8")].markers.getMarkersGroup(dr("0x5")))if(null!==n[dr("0x2")](t[dr("0x3")]()))return!0;return!1}}const gr=["*Set font size:* %0","normalizeSizeOptions","enableCommand","fontColor","*Set font background color:* %0","get","isCollapsed","config","commandParams","commandName","find","change","plugins","fontSize","FontSize","label","model","format","fontBackgroundColor","fontBackgroundColor.colors","has","fontFamily","TrackChangesEditing","fontColor.colors","document","locale","*Reset font family*","FontSizeEditing","value","trim","_descriptionFactory","*Reset font background color*","afterInit","fontSize.options","FontColorEditing","selection","editor"];var mr,fr;mr=gr,fr=384,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:hr("0xd"),commandName:hr("0x24")},{pluginName:"FontFamilyEditing",commandName:hr("0x7")},{pluginName:hr("0x14"),commandName:hr("0x1a")},{pluginName:"FontBackgroundColorEditing",commandName:hr("0x4")}];class br extends t.Plugin{[hr("0x12")](){const t=this[hr("0x16")][hr("0xb")];for(const{pluginName:t,commandName:e}of pr)this[hr("0x16")][hr("0x23")][hr("0x6")](t)&&this._enableCommand(e);this[hr("0x16")][hr("0x23")][hr("0x1c")]("TrackChangesEditing")[hr("0x10")].registerDescriptionCallback((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0x24")==o.commandName){const e=o[hr("0x1f")][0][hr("0xe")];if(e){const o=n(this[hr("0x16")].plugins[hr("0x1c")](hr("0x0"))[hr("0x18")](this[hr("0x16")][hr("0x1e")][hr("0x1c")](hr("0x13"))).find((t=>t[hr("0x2")]==e)).title).toLowerCase();return{type:"format",content:Yo(t,hr("0x17"),o)}}return{type:"format",content:Yo(t,"*Reset font size*")}}if(hr("0x7")==o[hr("0x20")]){const e=o.commandParams[0][hr("0xe")];return e?{type:hr("0x3"),content:Yo(t,"*Set font family:* %0",e)}:{type:hr("0x3"),content:Yo(t,hr("0xc"))}}if(hr("0x1a")==o[hr("0x20")]){const e=o[hr("0x1f")][0][hr("0xe")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x16")][hr("0x1e")][hr("0x1c")](hr("0x9")))[hr("0x21")]((t=>t.model==e));let r=e,i="";return o&&(r=o.label,i=n(r).toLowerCase()),{type:"format",content:Yo(t,"*Set font color:* %0",i)[hr("0xf")](),color:{value:e,title:i||r}}}return{type:hr("0x3"),content:Yo(t,"*Reset font color*")}}if(hr("0x4")==o[hr("0x20")]){const e=o[hr("0x1f")][0][hr("0xe")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x16")][hr("0x1e")][hr("0x1c")](hr("0x5")))[hr("0x21")]((t=>t.model==e));let r=e,i="";return o&&(r=o[hr("0x1")],i=n(r).toLowerCase()),{type:"format",content:Yo(t,hr("0x1b"),i)[hr("0xf")](),color:{value:e,title:i||r}}}return{type:hr("0x3"),content:Yo(t,hr("0x11"))}}}}))}_enableCommand(t){const e=this[hr("0x16")];e[hr("0x23")].get(hr("0x8"))[hr("0x19")](t,((n,o={})=>{const s=e[hr("0x2")][hr("0xa")][hr("0x15")],r=o[hr("0xe")];s[hr("0x1d")]?n(o):e[hr("0x2")][hr("0x22")]((()=>{const n=Array.from(s.getRanges());for(const o of n){const n=r?[o]:ms(t,o,e.model);for(const o of n)e.plugins[hr("0x1c")](hr("0x8")).markInlineFormat(o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["word","TrackChangesEditing","editor","change","get","document","entries","copyFormat","locale","registerDescriptionCallback","fontBackgroundColor","model","pasteFormat","toUpperCase","title","split","getAttributes","markInlineFormat","label","fontColor.colors","commands","normalizeSizeOptions","getItems","toLowerCase","getSelectedBlocks","getRanges","schema","isFormatting","forward","*Remove all formatting*","enableCommand","createSelection","getFirstPosition","createRange","slice","getAttributeProperties","fontSize.options","boolean","fontColor","getLastPosition","selection","plugins","charAt","modifySelection","format","find","fontSize","join","config","_descriptionFactory","commandName","length"];var _r,Tr;_r=Er,Tr=420,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{afterInit(){const t=this[Cr("0x32")],n=t[Cr("0x7")],o=n[Cr("0x1")][Cr("0x24")],s=t[Cr("0x25")].get("TrackChangesEditing"),r=t[Cr("0x4")],i=t[Cr("0x10")].get(Cr("0x3")),x=t[Cr("0x10")][Cr("0x0")](Cr("0x8"));i&&x&&(s[Cr("0x1a")](Cr("0x8"),((t,r={})=>{const i=r;n[Cr("0x33")]((()=>{const t=Array.from(o.getRanges()),r=o.isCollapsed?[kr(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t[Cr("0xc")]()){const t=e[Cr("0x1f")](n);t&&t[Cr("0x17")]&&(yield n)}}(t,n));for(const e of t[Cr("0x15")]())for(const t of e[Cr("0x12")]())!n.isBlock(t)&&o(t)&&(yield t);for(const e of t[Cr("0x14")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x16")]))||0!==Object.keys(i)[Cr("0x2f")])for(const t of r)s[Cr("0xd")](t,{commandName:Cr("0x8"),commandParams:[i]})}))})),s[Cr("0x2d")][Cr("0x5")]((e=>{const{data:n}=e;if(n&&Cr("0x8")===n[Cr("0x2e")]){const e=[],o=n.commandParams[0];for(const[n,s]of Object[Cr("0x2")](o))e.push(Ar(t,n,s));return e[Cr("0x2f")]?{type:Cr("0x28"),content:Yo(r,"*Set format to:* %0",e.join(", "))}:{type:Cr("0x28"),content:Yo(r,Cr("0x19"))}}})),t[Cr("0x25")][Cr("0x0")](Cr("0x31")).enableCommand(Cr("0x3")))}}function kr(t,e){const n=t[Cr("0x1b")](e);t[Cr("0x27")](n,{unit:Cr("0x30"),direction:"backward"});const o=n[Cr("0x1c")]();t[Cr("0x27")](n,{unit:Cr("0x30"),direction:Cr("0x18")});const s=n[Cr("0x23")]();return t[Cr("0x1d")](o,s)}function Ar(t,e,n){const o=t.locale.t,r=e[Cr("0xb")](/(?=[A-Z])/)[Cr("0x2b")](" "),i=o(r[Cr("0x26")](0)[Cr("0x9")]()+r[Cr("0x1e")](1))[Cr("0x13")]();if(Cr("0x21")==typeof n)return i;if(Cr("0x22")===e||Cr("0x6")===e){const e=(0,s.normalizeColorOptions)(t[Cr("0x2c")][Cr("0x0")](Cr("0xf"))).find((t=>t[Cr("0x7")]==n));return i+" ("+(e?o(e[Cr("0xe")])[Cr("0x13")]():n)+")"}if(Cr("0x2a")===e&&isNaN(parseFloat(n))){const e=t.plugins[Cr("0x0")]("FontSize")[Cr("0x11")](t[Cr("0x2c")].get(Cr("0x20")))[Cr("0x29")]((t=>t[Cr("0x7")]==n));return i+" ("+(e?o(e[Cr("0xa")])[Cr("0x13")]():n)+")"}return i+" ("+n+")"}const vr=["format","checkChild","name","editor","paragraph","afterInit","find","isObject","value","get","TrackChangesEditing","locale","parent","config","*Change to:* %0","match","commandParams","heading","_descriptionFactory","getSelectedBlocks","formatBlock","model","filter","title","commandName","schema","selection","has","document","registerDescriptionCallback"];var Rr,Sr;Rr=vr,Sr=447,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const Ir=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Ir("0x8")](){const t=this[Ir("0x6")],e=t[Ir("0xe")],n=t[Ir("0x10")][Ir("0xc")]("heading.options");if(!t.plugins[Ir("0x0")]("HeadingEditing"))return;const o=t.plugins[Ir("0xc")](Ir("0xd"));o.enableCommand(Ir("0x14"),((e,n)=>{const s=n.value,r=Array.from(this[Ir("0x6")][Ir("0x18")][Ir("0x1")][Ir("0x1d")][Ir("0x16")]())[Ir("0x19")]((t=>{return e=t,n=s,(o=this[Ir("0x6")][Ir("0x18")][Ir("0x1c")])[Ir("0x4")](e[Ir("0xf")],n)&&!o[Ir("0xa")](e)&&e[Ir("0x5")]!=n;var e,n,o}));t[Ir("0x18")].change((()=>{for(const t of r)o.markBlockFormat(t,{commandName:Ir("0x14"),commandParams:[n],formatGroupId:"blockName"},fs(t))}))}));for(const t of n)Ir("0x7")!=t[Ir("0x18")]&&o[Ir("0x15")].registerElementLabel(t[Ir("0x18")],(e=>{const n=Nr(t[Ir("0x18")]);return null!==n?s(e,n):r(e,t[Ir("0x1a")])}));function s(t,n){return Yo(e,"ELEMENT_HEADING",[t,n])}function r(t,n){return Yo(e,"ELEMENT_HEADING_CUSTOM",[t,n])}o[Ir("0x15")][Ir("0x2")]((t=>{const{type:o,data:i}=t;if(Ir("0x17")==o&&i&&Ir("0x14")==i[Ir("0x1b")]){const t=i[Ir("0x13")][0][Ir("0xb")],o=Nr(t);if(null!==o)return{type:Ir("0x3"),content:Yo(e,Ir("0x11"),s(1,o))};const x=n[Ir("0x9")]((e=>e[Ir("0x18")]===t))[Ir("0x1a")];return{type:"format",content:Yo(e,"*Change to:* %0",r(1,x))}}}))}}function Nr(t){const e=t[Ir("0x12")](/^heading(\d+)$/);return e?e[1]:null}const Mr=["_descriptionFactory","get","model","getLastMatchingPosition","formatInline","value","createRange","enableCommand","registerDescriptionCallback","TrackChangesEditing","getAttribute","plugins","highlight","editor","getRanges","highlight.options","afterInit","item","toLowerCase","hasAttribute","color","markInlineFormat","commandName","config","format","backward","*Remove highlight*","isCollapsed","selection","commandParams","*Set highlight:* %0","title","HighlightEditing","push","locale"];var wr,Or;wr=Mr,Or=103,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Pr extends t.Plugin{[Fr("0x12")](){const t=this[Fr("0xf")];if(!t[Fr("0xd")].has(Fr("0x22")))return;const e=t.plugins[Fr("0x3")](Fr("0xb"));e[Fr("0x9")](Fr("0xe"),((n,o={})=>{const s=t[Fr("0x4")].document[Fr("0x1e")],r=s[Fr("0xc")]("highlight");let i=o[Fr("0x7")],x=[];if(s[Fr("0x1d")]){const e=s.getFirstPosition();if(!s[Fr("0x15")](Fr("0xe")))return void n(o);{const n=t=>t[Fr("0x13")][Fr("0xc")](Fr("0xe"))===r,o=e[Fr("0x5")](n,{direction:Fr("0x1b")}),s=e[Fr("0x5")](n);x=[t[Fr("0x4")][Fr("0x8")](o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0x10")]())i?x[Fr("0x0")](e):x.push(...ms("highlight",e,t[Fr("0x4")]));t[Fr("0x4")].change((()=>{for(const t of x)e[Fr("0x17")](t,{commandName:"highlight",commandParams:[{value:i}]})}))}));const n=t[Fr("0x1")];e[Fr("0x2")][Fr("0xa")]((e=>{const{type:o,data:s}=e;if(Fr("0x6")==o&&s&&"highlight"==s[Fr("0x18")]){const e=n.t,o=s[Fr("0x1f")][0][Fr("0x7")];if(o){const s=t[Fr("0x19")][Fr("0x3")](Fr("0x11")).find((t=>t[Fr("0x4")]==o)),r=e(s[Fr("0x21")])[Fr("0x14")]();return{type:Fr("0x1a"),content:Yo(n,Fr("0x20"),r),color:{value:s[Fr("0x16")],title:s[Fr("0x21")]}}}return{type:Fr("0x1a"),content:Yo(n,Fr("0x1c"),Yo(n,"FORMAT_HIGHLIGHT"))}}}))}}const Dr=["has","get","plugins","enableCommand","HorizontalLineEditing","div","createEmptyElement","dataDowncast","showSuggestionHighlights","registerElementLabel","afterInit","createContainerElement","insert","high","_descriptionFactory","TrackChangesEditing","conversion","for","editor","horizontalLine"];var Br,jr;Br=Dr,jr=131,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0x13")](){const t=this[Ur("0x7")];if(!t[Ur("0xb")][Ur("0x9")](Ur("0xd")))return;t[Ur("0xb")][Ur("0xa")](Ur("0x4"))[Ur("0xc")](Ur("0x8"));const e=t[Ur("0xb")].get(Ur("0x4")),n=t.locale;e[Ur("0x3")][Ur("0x12")](Ur("0x8"),(t=>Yo(n,"ELEMENT_HORIZONTAL_LINE",t))),t[Ur("0x5")][Ur("0x6")](Ur("0x10")).elementToStructure({model:"horizontalLine",view:(t,{writer:e,options:n})=>{if(!n[Ur("0x11")])return null;const o=e[Ur("0x0")](Ur("0xe")),s=e[Ur("0xf")]("hr");return e.addClass("ck-horizontal-line",o),e[Ur("0x1")](e.createPositionAt(o,0),s),o},converterPriority:Ur("0x2")})}}const Hr=["ELEMENT_HTML_EMBED","rawHtml","*Change %0 content*","getSelectedElement","get","view","TrackChangesEditing","enableCommand","cancel","plugins","registerDescriptionCallback","locale","element","htmlEmbed","markBlockFormat","has","registerElementLabel","HtmlEmbed","rawHtmlApi","getCustomProperty","selection","value","change"];var zr,Vr;zr=Hr,Vr=382,function(t){for(;--t;)zr.push(zr.shift())}(++Vr);const Wr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{afterInit(){const t=this.editor;if(!t[Wr("0x12")][Wr("0x1")](Wr("0x3")))return;const e=t[Wr("0x12")][Wr("0xd")](Wr("0xf")),n=t[Wr("0x14")],o=t.editing[Wr("0xe")].document[Wr("0x6")];e._descriptionFactory[Wr("0x2")]("rawHtml",(t=>Yo(n,Wr("0x9"),t))),t.plugins.get(Wr("0xf"))[Wr("0x10")]("htmlEmbed",((n,s)=>{const r=t.model,i=r.document[Wr("0x6")];r[Wr("0x8")]((()=>{const t=function(t){const e=t[Wr("0xc")]();return e&&e.is(Wr("0x15"),Wr("0xa"))?t[Wr("0xc")]():null}(i);if(!t)return void n(null);const r=t.getAttribute(Wr("0x7"))||"";void 0!==s&&s!==r&&(e[Wr("0x0")](t,{commandName:"htmlEmbed",commandParams:[s]}),o[Wr("0xc")]()[Wr("0x5")](Wr("0x4"))[Wr("0x11")]())}))})),e._descriptionFactory[Wr("0x13")]((t=>{const{data:e}=t;if(e&&Wr("0x16")==e.commandName){const t=Yo(n,Wr("0x9"));return{type:"format",content:Yo(n,Wr("0xb"),t)}}}))}}const qr=["uploadImage","forward","convertInlineImageToBlock","ImageResize","isOwn","convertBlockImageToInline","*Set image width:* %0","toggleImageCaption","findIndex","selection","_descriptionFactory","registerElementLabel","deletion","document","has","isEqual","ImageUtils","getNearestSelectionRange","plugins","newValue","length","isIntersecting","imageTypeInline","ELEMENT_CAPTION","hasSuggestion","ImageStyleEditing","nodeBefore","previous","FORMAT_SIDE_IMAGE","isCollapsed","alt","*Set image text alternative:* %0","ELEMENT_INLINE_IMAGE","enableCommand","commandReversedParams","getFirstRange","imageTextAlternative","ImageCaptionEditing","_findSuggestions","imageInline","registerDescriptionCallback","commandParams","next","toNext","isBefore","commands","markBlockFormat","createRange","registerCustomCallback","from","differ","join","format","ImageUploadEditing","shouldConvertImageType","filter","find","nodeAfter","detach","getClosestSelectedImageElement","formatInline","registerPostFixer","getSuggestions","refresh","getCaptionFromImageModelElement","insertion","accept","author","ImageBlockEditing","value","toPrevious","type","formatBlock","imageTypeBlock","ImageCaptionUtils","Inline image to block image","head","resizeImage","get","width","fromPosition","side","change","ImageTextAlternativeEditing","imageCaption","ImageEditing","Users","schema","imageStylePreApply","_suggestionFactory","model","end","hasAttribute","start","markDeletion","toLowerCase","getSuggestion","getContainedElement","subType","editor","TrackChangesEditing","commandName","isInlineImage","createRangeOn","markInsertion","isBlockImage","chain","markInlineFormat","getChangedMarkers","*Reset image width*","imageStylePostApply","imageStyle","discard","forEach","title","getSuggestionCallback","imageBlock","Block image to inline image","element"];var Xr,$r;Xr=qr,$r=446,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{afterInit(){const t=this[Jr("0xa")];if(!t[Jr("0x30")][Jr("0x2c")](Jr("0x73")))return;const n=t.plugins[Jr("0x6c")](Jr("0xb")),o=t[Jr("0x30")].get(Jr("0x2e")),s={},r=t.locale;if(n[Jr("0x3f")]("insertImage"),n._descriptionFactory.registerElementLabel(Jr("0x1b"),(t=>Yo(r,"ELEMENT_IMAGE",t))),n._descriptionFactory[Jr("0x29")](Jr("0x45"),(t=>Yo(r,Jr("0x3e"),t))),n[Jr("0x28")][Jr("0x29")]("caption",(()=>Yo(r,Jr("0x35")))),t.plugins.has(Jr("0x53"))&&n[Jr("0x3f")](Jr("0x1e")),t.plugins[Jr("0x2c")](Jr("0x62"))&&t.plugins[Jr("0x2c")]("ImageInlineEditing")&&(n[Jr("0x3f")](Jr("0x34"),((e,s)=>{const r=o.getClosestSelectedImageElement(t[Jr("0x1")][Jr("0x2b")][Jr("0x27")]);t.model[Jr("0x70")]((()=>{n.markBlockFormat(r,{commandName:Jr("0x34"),commandParams:[s]},[],Jr("0x23"))}))})),n.enableCommand(Jr("0x67"),((e,s)=>{t.model.change((r=>{let x=o.getClosestSelectedImageElement(t[Jr("0x1")][Jr("0x2b")][Jr("0x27")]),a=r.createRangeOn(x);const c=i.LivePosition[Jr("0x6e")](a[Jr("0x4")],Jr("0x64")),l=i.LivePosition.fromPosition(a[Jr("0x2")],Jr("0x49"));n.forceDefaultExecution((()=>e(s))),x=o.getClosestSelectedImageElement(t[Jr("0x1")][Jr("0x2b")][Jr("0x27")]),a=r[Jr("0xe")](x);const d=r[Jr("0x4d")](c,l);c[Jr("0x58")](),l[Jr("0x58")](),n[Jr("0x4c")](x,{commandName:Jr("0x34"),commandParams:[]},[],Jr("0x20")),d[Jr("0x4")].isBefore(a.start)&&n.markInsertion(r.createRange(d[Jr("0x4")],a[Jr("0x4")]),Jr("0x20")),a.end[Jr("0x4a")](d[Jr("0x2")])&&n[Jr("0xf")](r[Jr("0x4d")](a.end,d[Jr("0x2")]),Jr("0x20"))}))})),n[Jr("0x0")].registerCustomCallback(Jr("0x66"),"convertInlineImageToBlock","join",(()=>{})),n[Jr("0x0")][Jr("0x4e")](Jr("0x66"),Jr("0x20"),"accept",(()=>{})),n[Jr("0x0")].registerCustomCallback(Jr("0x66"),Jr("0x20"),Jr("0x17"),n[Jr("0x0")][Jr("0x1a")]("formatBlock","","accept")),n._suggestionFactory[Jr("0x4e")](Jr("0x5f"),Jr("0x20"),Jr("0x51"),(()=>{})),n[Jr("0x0")][Jr("0x4e")](Jr("0x5f"),Jr("0x20"),"discard",(([e])=>{const o=n[Jr("0x0")][Jr("0x1a")](Jr("0x5f"),"",Jr("0x17"));let s=e[Jr("0x4")],r=e.end;const i=t[Jr("0x1")][Jr("0x75")].getNearestSelectionRange(s,"backward"),x=t.model.schema[Jr("0x2f")](r,Jr("0x1f"));i[Jr("0x3b")]&&(s=i.start),x[Jr("0x3b")]&&(r=x.end),o([t.model[Jr("0x4d")](s,r)])})),n[Jr("0x0")][Jr("0x4e")](Jr("0x66"),"convertInlineImageToBlock",Jr("0x11"),c),n[Jr("0x0")][Jr("0x4e")]("insertion",Jr("0x20"),Jr("0x11"),c)),t[Jr("0x30")].has(Jr("0x43"))&&(n[Jr("0x3f")](Jr("0x25"),((e,s)=>{const r=t[Jr("0x30")][Jr("0x6c")](Jr("0x68"));let i=o[Jr("0x59")](t[Jr("0x1")].document[Jr("0x27")]),x=r.getCaptionFromImageModelElement(i);t.model.change((()=>{if(x)return void n[Jr("0x5")](t[Jr("0x1")][Jr("0xe")](x));const a=o[Jr("0x10")](i);e(s),i=o[Jr("0x59")](t[Jr("0x1")][Jr("0x2b")][Jr("0x27")]),x=r[Jr("0x5e")](i),n[Jr("0xf")](t[Jr("0x1")][Jr("0xe")](x),a?null:Jr("0x72"))}))})),n[Jr("0x0")][Jr("0x4e")](Jr("0x5f"),Jr("0x72"),Jr("0x11"),c)),t[Jr("0x30")][Jr("0x2c")]("ImageStyleEditing")){n[Jr("0x3f")]("imageStyle",((s,r)=>{const i=t[Jr("0x30")][Jr("0x6c")](Jr("0x74")).me,x=t[Jr("0x4b")][Jr("0x6c")](Jr("0x16"));let a=o[Jr("0x59")](t[Jr("0x1")][Jr("0x2b")][Jr("0x27")]),c=t[Jr("0x1")].createRangeOn(a),l=x.value;if(l==r[Jr("0x63")])return;const d={commandName:Jr("0x16"),commandParams:[r],formatGroupId:(0,e.uid)()};t.model[Jr("0x70")]((()=>{if(n[Jr("0x5c")]()[Jr("0x55")]((t=>t.isInContent&&i==t[Jr("0x61")]&&(Jr("0x66")==t[Jr("0x65")]||Jr("0x5a")==t[Jr("0x65")])&&(Jr("0x76")==t.subType||Jr("0x15")==t[Jr("0x9")])&&t[Jr("0x41")]()[Jr("0x2d")](c)))[Jr("0x18")]((t=>n.discardSuggestion(t[Jr("0x6a")]))),a=o[Jr("0x59")](t[Jr("0x1")][Jr("0x2b")][Jr("0x27")]),c=t[Jr("0x1")].createRangeOn(a),x[Jr("0x5d")](),t[Jr("0x4b")][Jr("0x6c")]("imageTypeInline").refresh(),t[Jr("0x4b")][Jr("0x6c")](Jr("0x67"))[Jr("0x5d")](),l=x.value,l!=r.value)return o[Jr("0xd")](a)&&x[Jr("0x54")](r.value,a)?(s(r),a=o[Jr("0x59")](t.model.document.selection),void n[Jr("0x4c")](a,{...d,commandReversedParams:[{value:l||null}]},[],"imageStylePreApply")):void(o[Jr("0x10")](a)?n[Jr("0x4c")](a,d,[],Jr("0x15")):n[Jr("0x12")](c,d,Jr("0x15")))}))}));for(const e of t[Jr("0x30")][Jr("0x6c")](Jr("0x37")).normalizedStyles)s[e.name]=e[Jr("0x19")][Jr("0x6")]();n[Jr("0x0")].registerCustomCallback(Jr("0x66"),"imageStylePreApply",Jr("0x51"),(()=>{})),n[Jr("0x0")][Jr("0x4e")](Jr("0x66"),Jr("0x15"),"join",(()=>{})),n[Jr("0x0")][Jr("0x4e")](Jr("0x5a"),Jr("0x15"),"join",(()=>{})),n._suggestionFactory.registerCustomCallback("formatBlock","imageStylePreApply",Jr("0x60"),(()=>{})),n[Jr("0x0")][Jr("0x4e")](Jr("0x66"),Jr("0x76"),"discard",((t,e)=>{n[Jr("0x0")][Jr("0x1a")](Jr("0x66"),"","accept")(t,{commandName:e[Jr("0xc")],commandParams:e[Jr("0x40")]})})),n._suggestionFactory.registerCustomCallback(Jr("0x66"),Jr("0x76"),Jr("0x11"),c)}const x=[{type:Jr("0x66"),subType:"imageStylePreApply"},{type:Jr("0x5f"),subType:Jr("0x72")},{type:Jr("0x66"),subType:Jr("0x20")},{type:Jr("0x5f"),subType:"convertInlineImageToBlock"}];function a(t,e){const s=x[Jr("0x26")]((({type:e,subType:n})=>t[Jr("0x65")]==e&&t[Jr("0x9")]==n)),r=x[Jr("0x26")]((({type:t,subType:n})=>e[Jr("0x65")]==t&&e[Jr("0x9")]==n));if(s<0||r<0)return!1;const i=t[Jr("0x41")](),a=e[Jr("0x41")]();if((0==s||1==s)&&2==r&&i[Jr("0x33")](a))return!0;if(2==s&&3==r){const t=n[Jr("0x44")](i,Jr("0x5f"))[Jr("0x55")]((({suggestion:t,meta:e})=>e[Jr("0x22")]&&Jr("0x20")==t[Jr("0x9")]));if(t[Jr("0x32")]>1&&a[Jr("0x2")].isEqual(i[Jr("0x4")]))return!0;if(1==t[Jr("0x32")]&&(i[Jr("0x4")][Jr("0x2d")](a[Jr("0x2")])||i[Jr("0x2")][Jr("0x2d")](a[Jr("0x4")])))return!0}if(3==s&&3==r&&i[Jr("0x4")][Jr("0x4a")](a[Jr("0x4")])){const t=i.end[Jr("0x57")],e=a.start[Jr("0x38")];return o.isBlockImage(t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t.model[Jr("0x2b")][Jr("0x5b")]((()=>{let e=!1;const s=Array[Jr("0x4f")](t[Jr("0x1")][Jr("0x2b")][Jr("0x50")][Jr("0x13")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n._splitMarkerName(t);if("suggestion"==s&&n[Jr("0x36")](a)){if(Jr("0x66")==i&&(Jr("0x76")==x||"imageStylePostApply"==x)){const t=n.getSuggestion(a);if(r.newRange){const s=t[Jr("0x41")]()[Jr("0x8")]();if(o[Jr("0x10")](s))continue;n.discardSuggestion(t),e=!0}}if(Jr("0x5f")==i&&"imageCaption"==x&&!r.newRange){const t=n[Jr("0x7")](a);t[Jr("0x48")]&&t[Jr("0x48")].isInContent&&(n.discardSuggestion(t.next),e=!0)}}}return e})),t[Jr("0x30")][Jr("0x2c")](Jr("0x21"))&&n[Jr("0x3f")](Jr("0x6b"),((e,s)=>{const r=o.getClosestSelectedImageElement(t[Jr("0x1")][Jr("0x2b")][Jr("0x27")]);r.getAttribute(Jr("0x6d"))!=s[Jr("0x6d")]&&t[Jr("0x1")][Jr("0x70")]((()=>{n[Jr("0x4c")](r,{commandName:"resizeImage",commandParams:[s]})}))})),t.plugins[Jr("0x2c")](Jr("0x71"))&&n[Jr("0x3f")]("imageTextAlternative",((e,s)=>{const r=o.getClosestSelectedImageElement(t[Jr("0x1")][Jr("0x2b")][Jr("0x27")]);(r[Jr("0x3")](Jr("0x3c"))?r.getAttribute("alt"):"")!=s.newValue&&t[Jr("0x1")][Jr("0x70")]((()=>{n[Jr("0x4c")](r,{commandName:Jr("0x42"),commandParams:[s]})}))})),n[Jr("0x28")].registerDescriptionCallback((t=>{if(x[Jr("0x56")]((({type:e,subType:n})=>t[Jr("0x65")]==e&&t[Jr("0x9")]==n)))return t[Jr("0x39")]?{}:void 0})),n[Jr("0x28")][Jr("0x46")]((t=>{if(Jr("0x5f")==t[Jr("0x65")]||Jr("0x2a")==t[Jr("0x65")]){const e=t[Jr("0x8")]();if(e&&e.is(Jr("0x1d"),"caption"))return{type:Jr("0x5f")==t[Jr("0x65")]?"addObject":"removeObject",element:e,quantity:1}}})),n[Jr("0x28")].registerDescriptionCallback((t=>"formatBlock"==t[Jr("0x65")]&&"convertInlineImageToBlock"==t[Jr("0x9")]?{type:Jr("0x52"),content:Jr("0x69")}:Jr("0x66")==t.type&&Jr("0x23")==t[Jr("0x9")]?{type:Jr("0x52"),content:Jr("0x1c")}:void 0)),n[Jr("0x28")][Jr("0x46")]((t=>{const{data:e}=t;if(e){if(Jr("0x16")==e.commandName){const t=e[Jr("0x47")][0][Jr("0x63")];return n=Jr("0x6f")===t?Yo(r,Jr("0x3a")):s[t]||t,{type:Jr("0x52"),content:Yo(r,"*Format:* %0",n)}}if("imageTextAlternative"==e.commandName){const t=e.commandParams[0][Jr("0x31")];return t?{type:"format",content:Yo(r,Jr("0x3d"),'"'+t+'"')}:{type:Jr("0x52"),content:Yo(r,"*Remove image text alternative*")}}if(Jr("0x6b")==e[Jr("0xc")]){const t=e[Jr("0x47")][0][Jr("0x6d")];return t?{type:Jr("0x52"),content:Yo(r,Jr("0x24"),t)}:{type:Jr("0x52"),content:Yo(r,Jr("0x14"))}}}var n}))}}const Zr=["getSelectedElement","getSuggestionCallback","replaceImageSource","src","afterInit","source","handleReplaceImageCommand","registerDescriptionCallback","model","registerCustomCallback","has","selection","formatBlock","ImageEditing","*Format:* replace image URL","_descriptionFactory","discard","data","getSuggestions","TrackChangesEditing","author","Users","plugins","markBlockFormat","get","handleSuggestionDescription","editor","getAttribute","format","_suggestionFactory","commandParams","enableCommand","accept","change"];var Yr,ti;Yr=Zr,ti=207,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0x1")](){if(!this[ei("0x17")][ei("0x13")][ei("0x7")](ei("0xa")))return;const t=this[ei("0x17")][ei("0x13")][ei("0x15")](ei("0x10"));t[ei("0x1c")](ei("0x21"),((t,e)=>this.handleReplaceImageCommand(t,e))),t[ei("0x1a")][ei("0x6")](ei("0x9"),ei("0x21"),ei("0x1d"),t[ei("0x1a")][ei("0x20")](ei("0x9"),null,ei("0xd"))),t[ei("0x1a")].registerCustomCallback(ei("0x9"),ei("0x21"),ei("0xd"),t._suggestionFactory[ei("0x20")](ei("0x9"),null,ei("0x1d"))),t[ei("0xc")][ei("0x4")]((t=>this[ei("0x16")](t)))}[ei("0x3")](t,e){const n=this.editor[ei("0x13")][ei("0x15")]("TrackChangesEditing"),o=this[ei("0x17")].model.document[ei("0x8")][ei("0x1f")]();this[ei("0x17")][ei("0x5")][ei("0x1e")]((()=>{let s=o[ei("0x18")](ei("0x0"));const r=this[ei("0x17")][ei("0x13")][ei("0x15")](ei("0x12")).me;for(const t of n[ei("0xf")]({skipNotAttached:!0})){const e=t.getContainedElement();if(ei("0x21")===t.subType&&e===o){t[ei("0x11")]!==r&&t[ei("0xd")](),s=t[ei("0xe")][ei("0x1b")][0][ei("0x2")];break}}t(e),n[ei("0x14")](o,{commandName:ei("0x21"),commandParams:[{source:s}]},[],"replaceImageSource")}))}handleSuggestionDescription(t){const{data:e}=t;if(e&&ei("0x21")===e.commandName){const t=ei("0xb");return{type:ei("0x19"),content:Yo(this[ei("0x17")].locale,t)}}}}const oi=["enableCommand","_setSuggestionData","_trackChangesValueDuringImport","editor","get","high","TrackChangesEditing","plugins","Users","forEach","listenTo","commands","_handleImportedData","trackChanges","_trackChangesExecuted","collaboration_features","bind","value","afterInit","importWord","dataInsert","execute","track_changes"];var si,ri;si=oi,ri=274,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("0x4")]=!1,this[ii("0x10")]=!1}[ii("0x14")](){const t=this[ii("0x5")],e=t[ii("0xd")].get(ii("0x15")),n=t.commands[ii("0x6")](ii("0xf"));e&&(e.on(ii("0x0"),((t,[,e])=>{this[ii("0x4")]=n[ii("0x13")],e[ii("0x11")][ii("0x1")]=!this[ii("0x4")]}),{priority:ii("0x7")}),this[ii("0xc")](e,"dataInsert",this[ii("0xe")][ii("0x12")](this)),this[ii("0xc")](e,ii("0x16"),(()=>{this._trackChangesExecuted&&(n[ii("0x0")](),this[ii("0x10")]=!1)}),{priority:"lowest"}),t[ii("0x9")].get(ii("0x8"))[ii("0x2")](ii("0x15")))}[ii("0xe")](t,e){const{suggestions:n}=e,o=this[ii("0x5")][ii("0xd")].get("trackChanges"),s=o[ii("0x13")];this[ii("0x4")]!==s&&(o[ii("0x0")](),this[ii("0x10")]=!0),n&&n[ii("0xb")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0x5")][ii("0x9")].get(ii("0xa")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0x15")}}};this[ii("0x5")].plugins[ii("0x6")](ii("0x8"))[ii("0x3")](s)}))}}const ai=["enableCommand","document","commandName","from","getItems","IndentBlock","editor","*Indent:* %0","filter","TrackChangesEditing","plugins","get","IndentEditing","outdentBlock","_descriptionFactory","model","blockIndent","indentBlock","selection","has","getSelectedBlocks","change","indent","markBlockFormat","outdent","getItemLabel"];var ci,li;ci=ai,li=409,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("0xd")],e=t[di("0x11")][di("0x12")](di("0x10"));t[di("0x11")][di("0x0")](di("0x13"))&&(e[di("0x7")](di("0x3")),e[di("0x7")](di("0x5")));const n=t.locale;if(t[di("0x11")][di("0x0")](di("0xc"))){for(const n of[di("0x18"),di("0x14")])e[di("0x7")](n,(()=>{const o=Array[di("0xa")](this[di("0xd")][di("0x16")][di("0x8")][di("0x19")][di("0x1")]())[di("0xf")]((t=>this.editor[di("0x16")].schema.checkAttribute(t,di("0x17"))));t[di("0x16")][di("0x2")]((()=>{for(const t of o)e[di("0x4")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:di("0x18")})}))}));e[di("0x15")].registerDescriptionCallback((t=>{const{data:o}=t;if(!o)return;if("indentBlock"!=o.commandName&&di("0x14")!=o[di("0x9")])return;const s=t[di("0xb")]()[0],r=e._descriptionFactory[di("0x6")](s);return di("0x18")==o[di("0x9")]?{type:"format",content:Yo(n,di("0xe"),r)}:di("0x14")==o.commandName?{type:"format",content:Yo(n,"*Outdent:* %0",r)}:void 0}))}}}var gi,mi,fi=["editor","enableCommand","plugins","get","init","input"];gi=fi,mi=402,function(t){for(;--t;)gi.push(gi.shift())}(++mi);var hi=function(t,e){return fi[t-=0]};class pi extends t.Plugin{static get requires(){return[Ws.Input]}[hi("0x4")](){this[hi("0x0")][hi("0x2")][hi("0x3")]("TrackChangesEditing")[hi("0x1")](hi("0x5"))}}const bi=["unlink","link","isCollapsed","change","format","hasAttribute","getFirstRange","enableCommand","plugins","document","commandName","get","LinkEditing","locale","getAttribute","from","afterInit","getFirstPosition","markInlineFormat","model","_descriptionFactory","selection","linkHref","editor"];var Ei,_i;Ei=bi,_i=257,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{[Ti("0x17")](){const t=this[Ti("0x6")];if(!t.plugins.has(Ti("0x13")))return;const e=t[Ti("0xf")][Ti("0x12")]("TrackChangesEditing");e[Ti("0xe")](Ti("0x8"),((n,o)=>{const s=t[Ti("0x2")][Ti("0x10")][Ti("0x4")];let r=[];if(s[Ti("0x9")]){if(!s[Ti("0xc")](Ti("0x5")))return void n(o);{const e=(0,Ws.findAttributeRange)(s[Ti("0x0")](),Ti("0x5"),s[Ti("0x15")](Ti("0x5")),t[Ti("0x2")]);r=[e]}}else r=Array[Ti("0x16")](s.getRanges());t.model[Ti("0xa")]((()=>{for(const t of r)e[Ti("0x1")](t,{commandName:"link",commandParams:[o]})}))})),e.enableCommand(Ti("0x7"),(()=>{const n=this[Ti("0x6")][Ti("0x2")],o=n.document.selection;n[Ti("0xa")]((()=>{let n=[];n=o.isCollapsed?[(0,Ws.findAttributeRange)(o[Ti("0x0")](),"linkHref",o[Ti("0x15")]("linkHref"),t[Ti("0x2")])]:ms(Ti("0x5"),o[Ti("0xd")](),t[Ti("0x2")]);for(const t of n)e[Ti("0x1")](t,{commandName:"unlink",commandParams:[]})}))})),e[Ti("0x3")].registerDescriptionCallback((e=>{const{data:n}=e,o=t[Ti("0x14")];if(n){if(Ti("0x8")==n[Ti("0x11")]){const t=n.commandParams[0];return{type:Ti("0xb"),content:Yo(o,"*Set link:* %0",'"'+t+'"')}}return Ti("0x7")==n[Ti("0x11")]?{type:"format",content:Yo(o,"*Remove link*")}:void 0}}))}}const yi=["commands","filter","registerElementLabel","plugins","element","bulletedList","registerDescriptionCallback","listItem","TrackChangesEditing","commandName","isObject","before","push","ListEditing","previousSibling","end","length","paragraph","enableCommand","slice","findIndex","markBlockFormat","replace","blockName","todoList","afterInit","forceValue","get","getSelectedBlocks","from","listType","selection","createPositionAt","commandParams","numberedList","model","value","add","_descriptionFactory","*Check item*","nextSibling","name","_selectedElements","indentList","outdentList","checkTodoList","editor","TodoListEditing","has","*Uncheck item*","getAttribute","listIndent","change","ELEMENT_LIST_ITEM","document","numbered","execute","todo","locale","createRange","ELEMENT_BULLETED_LIST","format"];var ki,Ai;ki=yi,Ai=145,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0x4")](){const t=this[vi("0x19")],e=t[vi("0x25")];if(!t[vi("0x2c")][vi("0x1b")](vi("0x36")))return;const n=t[vi("0x2c")][vi("0x6")](vi("0x31")),o=t[vi("0x2c")].has(vi("0x1a"));function s(e){return()=>{const o=t.model[vi("0x21")][vi("0xa")],s=t[vi("0x29")][vi("0x6")](e);if(s[vi("0xf")])return void t[vi("0x23")](vi("0x3a"),{});const r=e[vi("0x3c")](0,-4),i=function(t,e,n){let o=Array[vi("0x8")](t)[vi("0x2a")]((t=>{return e=t,(o=n).checkChild(e.parent,"listItem")&&!o[vi("0x33")](e);var e,o}));o=o[vi("0x2a")]((t=>!t.is("element","listItem")||t.getAttribute(vi("0x9"))!=e));const s=new Set;for(const t of o)t.is(vi("0x2d"),"listItem")?s[vi("0x10")](Si(t)):s.add(t);return Array[vi("0x8")](s)}(o.getSelectedBlocks(),r,t[vi("0xe")].schema);t[vi("0xe")][vi("0x1f")]((()=>{for(const t of i)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!s[vi("0xf")]}],formatGroupId:vi("0x2")},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[vi("0x8")](t);const n=e[vi("0x3d")]((t=>vi("0x30")!=t[vi("0x14")]));return n>-1&&(e=e.slice(0,n)),e}(t.model[vi("0x21")][vi("0xa")][vi("0x7")]()),s=t[vi("0xe")][vi("0x26")](t[vi("0xe")][vi("0xb")](o[0],vi("0x34")),t[vi("0xe")].createPositionAt(o[o[vi("0x39")]-1],vi("0x38")));t.model[vi("0x1f")]((()=>{n[vi("0x0")](s,{commandName:e,commandParams:[],formatGroupId:vi("0x1e")},function(t){const e=new Set;for(const n of t){let t=n[vi("0x13")];for(;t&&t[vi("0x1d")](vi("0x1e"))>n[vi("0x1d")](vi("0x1e"));)e[vi("0x10")](t),t=t[vi("0x13")]}return Array[vi("0x8")](e)}(o))}))}}n[vi("0x3b")](vi("0xd"),s(vi("0xd"))),n[vi("0x3b")](vi("0x2e"),s(vi("0x2e"))),o&&n.enableCommand(vi("0x3"),s("todoList")),n[vi("0x3b")](vi("0x16"),r(vi("0x16"))),n[vi("0x3b")](vi("0x17"),r(vi("0x17"))),o&&n[vi("0x3b")](vi("0x18"),(()=>{const e=t[vi("0x29")][vi("0x6")](vi("0x18")),o=Array[vi("0x8")](e[vi("0x15")]);o[vi("0x2a")]((t=>t[vi("0x1d")]("todoListChecked")!=e.value)),t[vi("0xe")][vi("0x1f")]((()=>{for(const t of o)n[vi("0x0")](t,{commandName:vi("0x18"),commandParams:[{forceValue:!e[vi("0xf")]}]})}))})),n[vi("0x11")][vi("0x2b")](vi("0x30"),(t=>Yo(e,vi("0x20"),t))),n[vi("0x11")][vi("0x2f")]((t=>{const{data:n}=t;if(n){if(vi("0xd")==n[vi("0x32")]||vi("0x2e")==n[vi("0x32")]||vi("0x3")==n[vi("0x32")])switch(n[vi("0x32")][vi("0x1")]("List","")){case"bulleted":return o(Yo(e,vi("0x27")));case vi("0x22"):return o(Yo(e,"ELEMENT_NUMBERED_LIST"));case vi("0x24"):return o(Yo(e,"ELEMENT_TODO_LIST"))}if(vi("0x16")==n.commandName)return{type:vi("0x28"),content:Yo(e,"*Indent:* %0",Yo(e,"ELEMENT_LIST_ITEM"))};if(vi("0x17")==n[vi("0x32")])return{type:vi("0x28"),content:Yo(e,"*Outdent:* %0",Yo(e,"ELEMENT_LIST_ITEM"))};if(vi("0x18")==n[vi("0x32")])return n[vi("0xc")][0][vi("0x5")]?{type:vi("0x28"),content:Yo(e,vi("0x12"))}:{type:vi("0x28"),content:Yo(e,vi("0x1c"))}}function o(t){return{type:"format",content:Yo(e,"*Change to:* %0",t)}}}))}}function Si(t){const e=t[vi("0x1d")](vi("0x1e"));if(0==e)return t;let n=t;for(;t[vi("0x37")]&&t[vi("0x37")].is("element",vi("0x30"));){const o=t.previousSibling.getAttribute(vi("0x1e"));if(o==e)n=t[vi("0x37")];else if(o<e)break;t=t[vi("0x37")]}return n}function Ii(t){const e=[];if(t.is(vi("0x2d"),vi("0x30"))&&t[vi("0x1d")](vi("0x1e"))>0){let n=t[vi("0x13")];for(;n&&"listItem"==n[vi("0x14")]&&n.getAttribute("listIndent")==t[vi("0x1d")]("listIndent");)e[vi("0x35")](n),n=n[vi("0x13")]}return e}const Li=["commandName","get","_getSuggestionBlocksForListStyle","styles","*Format:* set order to reversed","getLastPosition","commandParams","toUpperCase","enableCommand","handleListReversedCommand","list.properties","listItem","numbered","listType","before","listStyle","config","listReversed","handleDescriptions","locale","reversed","push","length","type","*Format:* set start index to %0","backward","model","ListUtils","handleListStyleCommand","format","element","handleListStartCommand","filter","registerDescriptionCallback","getAttribute","map","createRange","startIndex","_descriptionFactory","TrackChangesEditing","editor","*Format:* set order to regular","getSelectedBlocks","selection","getSiblingNodes","getFirstPosition","document","markMultiRangeBlockFormat","_getSuggestionBlocks","ELEMENT_","bind","change","ListPropertiesEditing","from","createPositionAt","listStart","plugins","_getTranslationKeyForListStyle"];var Ni,Mi;Ni=Li,Mi=475,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{afterInit(){if(!this[wi("0x1d")][wi("0x2d")].has(wi("0x29")))return;const t=this[wi("0x1d")][wi("0x5")].get(wi("0x39")),e=this.editor[wi("0x2d")][wi("0x30")](wi("0x1c"));t[wi("0x32")]&&e[wi("0x37")](wi("0x4"),this[wi("0x11")][wi("0x27")](this)),t[wi("0x9")]&&e[wi("0x37")]("listReversed",this[wi("0x38")][wi("0x27")](this)),t.startIndex&&e[wi("0x37")]("listStart",this[wi("0x14")][wi("0x27")](this)),e[wi("0x1b")][wi("0x16")](this[wi("0x7")][wi("0x27")](this))}handleListStyleCommand(t,e={}){const n=this[wi("0x1d")].plugins[wi("0x30")](wi("0x1c")),o=this[wi("0x31")]();this[wi("0x1d")][wi("0xf")][wi("0x28")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:"listStyle",commandParams:[{type:e[wi("0xc")]}],formatGroupId:wi("0x4")})}))}[wi("0x38")](t,e={}){const n=this[wi("0x1d")][wi("0x2d")][wi("0x30")](wi("0x1c")),o=this[wi("0x25")]((t=>t.is(wi("0x13"),wi("0x0"))&&wi("0x1")===t[wi("0x17")]("listType")));if(o[wi("0xb")]<1)return;const s=o[wi("0x18")]((t=>this.editor.model[wi("0x19")](this.editor[wi("0xf")].createPositionAt(t,wi("0x3")),this[wi("0x1d")].model[wi("0x2b")](t,0))));this[wi("0x1d")].model[wi("0x28")]((()=>{n[wi("0x24")](s,{commandName:wi("0x6"),commandParams:[{reversed:e.reversed}],formatGroupId:wi("0x6")})}))}handleListStartCommand(t,e={}){const n=this[wi("0x1d")][wi("0x2d")][wi("0x30")](wi("0x1c")),o=this._getSuggestionBlocks((t=>t.is(wi("0x13"),"listItem")&&"numbered"===t[wi("0x17")](wi("0x2"))));if(o[wi("0xb")]<1)return;const s=o[wi("0x18")]((t=>this[wi("0x1d")][wi("0xf")][wi("0x19")](this[wi("0x1d")][wi("0xf")][wi("0x2b")](t,wi("0x3")),this[wi("0x1d")][wi("0xf")][wi("0x2b")](t,0))));this[wi("0x1d")][wi("0xf")][wi("0x28")]((()=>{n[wi("0x24")](s,{commandName:wi("0x2c"),commandParams:[{startIndex:e.startIndex}],formatGroupId:wi("0x2c")})}))}handleDescriptions(t){const e=this[wi("0x1d")][wi("0x8")],{data:n}=t;if(!n)return;let o,s;switch(n[wi("0x2f")]){case wi("0x4"):o="*Change to:* %0",s={type:wi("0x12"),content:Yo(e,o,Yo(e,this._getTranslationKeyForListStyle(n[wi("0x35")][0][wi("0xc")])))};break;case wi("0x6"):o=n[wi("0x35")][0].reversed?wi("0x33"):wi("0x1e"),s={type:"format",content:Yo(e,o)};break;case"listStart":o=wi("0xd"),s={type:wi("0x12"),content:Yo(e,o,n[wi("0x35")][0][wi("0x1a")])}}return s}[wi("0x31")](){var t,e,n,o;const s=this[wi("0x1d")][wi("0x2d")][wi("0x30")](wi("0x10"));let r=Array[wi("0x2a")](this.editor[wi("0xf")][wi("0x23")][wi("0x20")][wi("0x1f")]());return(null===(t=r[0])||void 0===t?void 0:t.is(wi("0x13"),wi("0x0")))&&r.unshift(...s[wi("0x21")](this[wi("0x1d")][wi("0xf")][wi("0x23")].selection[wi("0x22")](),wi("0xe"))),(null===(e=r[r[wi("0xb")]-1])||void 0===e?void 0:e.is(wi("0x13"),"listItem"))&&r[wi("0xa")](...s[wi("0x21")](this.editor.model[wi("0x23")][wi("0x20")][wi("0x34")](),"forward")),r=[...new Set(r)],(null===(o=null===(n=this[wi("0x1d")].model[wi("0x23")].selection[wi("0x22")]())||void 0===n?void 0:n.parent)||void 0===o?void 0:o.is(wi("0x13"),"listItem"))&&(r=r.filter((t=>t.is("element",wi("0x0"))))),r}[wi("0x25")](t){const e=this[wi("0x1d")][wi("0x2d")][wi("0x30")](wi("0x10"));let n=Array[wi("0x2a")](this[wi("0x1d")].model.document[wi("0x20")][wi("0x1f")]())[wi("0x15")](t)[wi("0x18")]((t=>{const n=this[wi("0x1d")].model[wi("0x2b")](t,0);return[...e[wi("0x21")](n,wi("0xe")),...e[wi("0x21")](n,"forward")]})).flat();return n=[...new Set(n)],n}[wi("0x2e")](t){return wi("0x26")+this[wi("0x1d")][wi("0x2d")][wi("0x30")](wi("0x10")).getListTypeFromListStyleType(t)[wi("0x36")]()+"_LIST_"+t[wi("0x36")]().replace(/-/g,"_")}}const Fi=["elementToElement","_descriptionFactory","high","attribute:url:media","afterInit","enableCommand","has","mediaEmbed","stop","data","TrackChangesEditing","get","plugins","createEmptyElement","registerElementLabel","ELEMENT_MEDIA","showSuggestionHighlights","downcastDispatcher","dataDowncast","media","options","for"];var Pi,Di;Pi=Fi,Di=376,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0x2")](){const t=this.editor;if(!t[Bi("0xa")][Bi("0x4")]("MediaEmbedEditing"))return;const e=t[Bi("0xa")][Bi("0x9")](Bi("0x8")),n=t.locale;e[Bi("0x3")](Bi("0x5")),e[Bi("0x15")][Bi("0xc")](Bi("0x11"),(t=>Yo(n,Bi("0xd"),t))),t.conversion[Bi("0x13")](Bi("0x10"))[Bi("0x14")]({model:Bi("0x11"),view:(t,{writer:e,options:n})=>{if(n[Bi("0xe")])return e[Bi("0xb")]("div")},converterPriority:Bi("0x0")}),t[Bi("0x7")][Bi("0xf")].on(Bi("0x1"),((t,e,n)=>{n[Bi("0x12")].showSuggestionHighlights&&t[Bi("0x6")]()}),{priority:"high"})}}const Ui=["has","editor","TrackChangesEditing","plugins","enableCommand","MentionEditing"];var Gi,Hi;Gi=Ui,Hi=133,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Vi extends t.Plugin{afterInit(){const t=this[zi("0x0")];t[zi("0x2")][zi("0x5")](zi("0x4"))&&t[zi("0x2")].get(zi("0x1"))[zi("0x3")]("mention")}}const Wi=["enableCommand","ELEMENT_PAGE_BREAK","plugins","PageBreakEditing","registerElementLabel","TrackChangesEditing","locale","pageBreak","editor","afterInit","get"];var Ki,qi;Ki=Wi,qi=355,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Wi[t-=0]};class $i extends t.Plugin{[Xi("0x6")](){const t=this[Xi("0x5")];if(!t.plugins.has(Xi("0x0")))return;t[Xi("0xa")][Xi("0x7")](Xi("0x2"))[Xi("0x8")](Xi("0x4"));const e=t[Xi("0xa")].get(Xi("0x2")),n=t[Xi("0x3")];e._descriptionFactory[Xi("0x1")]("pageBreak",(t=>Yo(n,Xi("0x9"),t)))}}const Ji=["ck-suggestion-marker-split","includes","registerDescriptionCallback","enableCommand","insertParagraph","markerRange","nodeAfter","has","addMarker:suggestion:insertion","Paragraph","data","toViewPosition","get","$text","plugins","ck-suggestion-marker--active","checkChild","selection","*Change to:* %0","downcastDispatcher","start","TrackChangesEditing","span","schema","locale","writer","parent","model","commandName","paragraph","createUIElement","*Insert:* %0","highest","format","ELEMENT_PARAGRAPH","getFirstRange","insert","mapper","markerName","name","consumable","consume","isBlock","document","markBlockFormat","isObject","_descriptionFactory","options","isLimit","insertion","editor","editing","showSuggestionHighlights","bindElementToMarker","type","activeMarkers","end"];var Qi,Zi;Qi=Ji,Zi=425,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{afterInit(){const t=this[Yi("0x18")];if(!t.plugins[Yi("0x26")](Yi("0x28")))return;const e=t[Yi("0x37")],n=t[Yi("0x2d")][Yi("0x2b")](Yi("0x34"));n[Yi("0x14")].registerElementLabel(Yi("0x3"),(t=>Yo(e,Yi("0x8"),t))),n[Yi("0x22")](Yi("0x3"),((e,o={})=>{const s=t[Yi("0x1")][Yi("0x11")],r=o.selection||s[Yi("0x30")],i=Array.from(r.getSelectedBlocks()).filter((t=>{return e=t,(n=this[Yi("0x18")].model[Yi("0x36")])[Yi("0x2f")](e[Yi("0x0")],Yi("0x3"))&&!n[Yi("0x13")](e)&&"paragraph"!=e[Yi("0xd")];var e,n}));t[Yi("0x1")].change((()=>{for(const t of i)n[Yi("0x12")](t,{commandName:"paragraph",commandParams:[],formatGroupId:"blockName"},fs(t))}))})),n[Yi("0x14")][Yi("0x21")]((t=>{const{data:n}=t;if(n&&Yi("0x3")==n[Yi("0x2")])return{type:Yi("0x7"),content:Yo(e,Yi("0x31"),Yo(e,"ELEMENT_PARAGRAPH"))}})),n.enableCommand(Yi("0x23")),t[Yi("0x19")][Yi("0x32")].on(Yi("0x27"),ex(t),{priority:Yi("0x6")}),t[Yi("0x29")][Yi("0x32")].on("addMarker:suggestion:insertion",((e,n,o)=>{o[Yi("0x15")][Yi("0x1a")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0x6")});const o=n[Yi("0x14")];o[Yi("0x21")]((n=>{if(Yi("0x17")!==n[Yi("0x1c")])return;const{start:s,end:r}=n[Yi("0x9")]();if(!s.isTouching(r)||!s[Yi("0x25")])return;const i=t.model[Yi("0x36")],x=s[Yi("0x25")];return i[Yi("0x10")](x)&&!i[Yi("0x16")](x)&&i[Yi("0x2f")](x,Yi("0x2c"))?{type:Yi("0x17"),content:Yo(e,Yi("0x5"),o.getItemLabel(x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Yi("0x2d")][Yi("0x2b")](Yi("0x34")),i=o[Yi("0x24")][Yi("0x33")],x=o[Yi("0x24")][Yi("0x1e")],a=t[Yi("0x1")].schema;if(!i.isTouching(x)||!i[Yi("0x25")])return;const c=i[Yi("0x25")];if(a.isBlock(c)&&!a[Yi("0x16")](c)&&a.checkChild(c,Yi("0x2c"))){if(!s[Yi("0xe")][Yi("0xf")](o[Yi("0x24")],n[Yi("0xd")]))return;const t=s.writer[Yi("0x4")](Yi("0x35"),{class:Yi("0x1f")}),i=s[Yi("0xb")][Yi("0x2a")](x);e&&r[Yi("0x1d")][Yi("0x20")](o[Yi("0xc")])&&s.writer.addClass(Yi("0x2e"),t),s[Yi("0x38")][Yi("0xa")](i,t),s[Yi("0xb")][Yi("0x1b")](t,o.markerName)}}}const nx=["model","*Remove all formatting*","locale","schema","document","markInlineFormat","editor","_descriptionFactory","getRanges","removeFormat","TrackChangesEditing","getAttributeProperties","isCollapsed","enableCommand","createRangeOn","isFormatting","getItems","from","registerDescriptionCallback"];var ox,sx;ox=nx,sx=260,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{afterInit(){const t=this[rx("0xc")];if(!t.plugins.has("RemoveFormatEditing"))return;const e=t.plugins.get(rx("0x10"));e[rx("0x0")]("removeFormat",(n=>{const o=t[rx("0x6")][rx("0xa")].selection;o[rx("0x12")]?n():t.model.change((()=>{const n=Array[rx("0x4")](o[rx("0xe")]());for(const o of n)for(const n of o[rx("0x3")]())xx(n,t[rx("0x6")][rx("0x9")])&&e[rx("0xb")](t[rx("0x6")][rx("0x1")](n),{commandName:rx("0xf"),commandParams:[]})}))})),e[rx("0xd")][rx("0x5")]((e=>{const{data:n}=e;if(n&&"removeFormat"==n.commandName)return{type:"format",content:Yo(t[rx("0x8")],rx("0x7"))}}))}}function xx(t,e){for(const[n]of t.getAttributes()){const t=e[rx("0x11")](n);if(t&&t[rx("0x2")])return!0}return!1}const ax=["acceptSelectedSuggestions","discardSuggestion","RestrictedEditingModeEditing","trackChanges","goToNextRestrictedEditingException","discardAllSuggestions","editor","acceptSuggestion","afterInit","acceptAllSuggestions","plugins","has","TrackChangesEditing","enableCommand","get","discardSelectedSuggestions"];var cx,lx;cx=ax,lx=339,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const dx=function(t,e){return ax[t-=0]};class ux extends t.Plugin{[dx("0x5")](){const t=this[dx("0x3")];if(!t[dx("0x7")][dx("0x8")](dx("0xf")))return;const e=t[dx("0x7")][dx("0xb")](dx("0x9"));e[dx("0xa")]("goToPreviousRestrictedEditingException"),e.enableCommand(dx("0x1"));const n=t.plugins.get(dx("0xf"));n.enableCommand(dx("0x0")),n[dx("0xa")](dx("0x4")),n[dx("0xa")](dx("0xe")),n[dx("0xa")](dx("0x6")),n[dx("0xa")](dx("0x2")),n[dx("0xa")](dx("0xd")),n[dx("0xa")](dx("0xc"))}}const gx=["mapper","includes","activeMarkers","registerElementLabel","data","insert","split","requires","toViewPosition","writer","ck-suggestion-marker-","plugins","_descriptionFactory","merge","consumable","bindElementToMarker","createPositionBefore","locale","addMarker:suggestion:insertion","softBreak","TrackChangesEditing","options","element","editing","downcastDispatcher","high","span","init","test","markerName","getItems","markerRange","addMarker:suggestion:deletion","createUIElement","addMarker:suggestion","get","ck-suggestion-marker--active","ELEMENT_LINE_BREAK"];var mx,fx;mx=gx,fx=122,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("0x25")](){return[nr.ShiftEnter]}[hx("0x13")](){const t=this.editor,e=t.plugins.get(hx("0xc"));e.enableCommand("shiftEnter"),t[hx("0xf")].downcastDispatcher.on(hx("0xa"),bx(t),{priority:hx("0x11")}),t[hx("0xf")][hx("0x10")].on(hx("0x18"),bx(t),{priority:"high"}),t[hx("0x22")][hx("0x10")].on(hx("0x1a"),((e,n,o)=>{o[hx("0xd")].showSuggestionHighlights&&bx(t,{showActiveMarker:!1})(e,n,o)})),e[hx("0x4")][hx("0x21")](hx("0xb"),(e=>Yo(t[hx("0x9")],hx("0x1d"),e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[hx("0x3")][hx("0x1b")]("TrackChangesEditing");if(!s[hx("0x6")][hx("0x14")](o[hx("0x17")],n.name))return;const i=t.model;for(const t of o[hx("0x17")][hx("0x16")]()){if(!t.is(hx("0xe"),"softBreak"))continue;const n="deletion"==o[hx("0x15")].split(":")[1]?hx("0x5"):hx("0x24"),x=s[hx("0x1")][hx("0x19")](hx("0x12"),{class:hx("0x2")+n}),a=s[hx("0x1e")][hx("0x0")](i[hx("0x8")](t));e&&r[hx("0x20")][hx("0x1f")](o[hx("0x15")])&&s[hx("0x1")].addClass(hx("0x1c"),x),s.writer[hx("0x23")](a,x),s[hx("0x1e")][hx("0x7")](x,o[hx("0x15")])}}}const Ex=["plugins","from","document","isCollapsed","_descriptionFactory","get","forceValue","FORMAT_RESTRICTED_DISABLED","getRanges","format","value","StandardEditingModeEditing","afterInit","restrictedEditingException","TrackChangesEditing","editor","change","has","commands","registerDescriptionCallback","markInlineFormat","enableCommand","model"];var _x,Tx;_x=Ex,Tx=463,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{[Cx("0x9")](){const t=this[Cx("0xc")],e=t[Cx("0x13")],n=t.locale;if(!t[Cx("0x14")][Cx("0xe")](Cx("0x8")))return;const o=t[Cx("0x14")][Cx("0x2")](Cx("0xb")),s=Cx("0xa"),r=t[Cx("0xf")][Cx("0x2")](s);o[Cx("0x12")](s,((t,n={})=>{const i=e[Cx("0x16")].selection;if(i[Cx("0x0")])return void t(n);const x=void 0!==n[Cx("0x3")]?n[Cx("0x3")]:!r[Cx("0x7")];e[Cx("0xd")]((()=>{const t=Array[Cx("0x15")](i[Cx("0x5")]());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o[Cx("0x11")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Cx("0x1")][Cx("0x10")]((t=>{const{data:e}=t;if(e&&e.commandName==s)return e.commandParams[0][Cx("0x3")]?{type:Cx("0x6"),content:Yo(n,"FORMAT_RESTRICTED_ENABLED")}:{type:Cx("0x6"),content:Yo(n,Cx("0x4"))}}))}}const kx=["getAncestors","getDefinitionsForView","selection","find","editor","includes","commands","createRangeOn","push","StyleUtils","style:","change","registerDescriptionCallback","*Remove format:* %0","modelElements","plugins","TrackChangesEditing","*Format:* %0","isBlock","style","style.definitions","model","enableCommand","element","getAttribute","from","toLowerCase","config","classes","afterInit","styleName","enabledStyles","normalizeConfig","commandParams","DataSchema","getRanges","name","inline","commandName","markInlineFormat","get","add","format","_getRangesWithClasses","_getStyleDefinition","has"];var Ax,vx;Ax=kx,vx=426,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{[Rx("0x11")](){const t=this[Rx("0x26")];if(!t.plugins[Rx("0x21")]("Style"))return;const e=t[Rx("0x28")][Rx("0x1c")](Rx("0x7")),n=t[Rx("0x3")].get(Rx("0x4")),o=t.locale,s=t[Rx("0x3")][Rx("0x1c")](Rx("0x16")),r=t.plugins.get(Rx("0x2b"))[Rx("0x14")](s,t[Rx("0xf")][Rx("0x1c")](Rx("0x8")));n[Rx("0xa")]("style",((o,{styleName:i})=>{const x=t[Rx("0x9")].document[Rx("0x24")],a=this[Rx("0x20")](i,r);if(!a)return;if(!e[Rx("0x13")][Rx("0x27")](i))return;if(x.isCollapsed&&!a[Rx("0x6")])return void o({styleName:i});const c=!e.value[Rx("0x27")](a.name);if(a.isBlock){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Rx("0x22")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[Rx("0x27")](o[Rx("0x18")])){n[Rx("0x1d")](o);break}}return n}(x.getSelectedBlocks(),a[Rx("0x2")]);t[Rx("0x9")][Rx("0x2d")]((()=>{for(const t of e)n.markBlockFormat(t,{commandName:Rx("0x7"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:Rx("0x2c")+i})}))}else{let e=Array[Rx("0xd")](x[Rx("0x17")]());if(!c){const n=Array[Rx("0xd")](s[Rx("0x23")](a[Rx("0xb")],!1))[0][Rx("0x9")],o=[];for(const s of e){const e=this[Rx("0x1f")](t[Rx("0x9")],s,a[Rx("0x10")],n);o.push(...e)}e=o}t[Rx("0x9")][Rx("0x2d")]((()=>{for(const t of e)n[Rx("0x1b")](t,{commandName:Rx("0x7"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n._descriptionFactory[Rx("0x0")]((t=>{const{data:e}=t;if(e&&Rx("0x7")===e[Rx("0x1a")])return e[Rx("0x15")][0].forceValue?{type:Rx("0x1e"),content:Yo(o,Rx("0x5"),e[Rx("0x15")][0][Rx("0x12")].toLowerCase())}:{type:Rx("0x1e"),content:Yo(o,Rx("0x1"),e[Rx("0x15")][0][Rx("0x12")][Rx("0xe")]())}}))}_getStyleDefinition(t,e){let n=e.block[Rx("0x25")]((e=>e[Rx("0x18")]===t));return n||(n=e[Rx("0x19")][Rx("0x25")]((e=>e[Rx("0x18")]===t))),n}[Rx("0x1f")](t,e,n,o){const s=[];for(const r of e.getItems()){const e=r[Rx("0xc")](o);e&&n.every((t=>e[Rx("0x10")][Rx("0x27")](t)))&&s[Rx("0x2a")](t[Rx("0x29")](r))}return s}}const Ix=["_tablePostFixingSubtypes","has","TableEditing","plugins","isEqual","execute","name","oldRange","mapper","suggestion","change","findAncestor","markMultiRangeInsertion","registerPostFixer","showSuggestionHighlights","selectTableRow","_descriptionFactory","table","downcastDispatcher","selection","minColumn","insertion","enqueueChange","last","nodeBefore","hasAttribute","max","editor","cell","ELEMENT_TABLE_ROW","values","getSelectionAffectedTableCells","nodeAfter","insertTable","_setupColumnsRowsFixing","_suggestionFactory","differ","insert","addRange","MAX_SAFE_INTEGER","ELEMENT_TABLE","afterInit","fromRange","createPositionAt","document","$graveyard","join","rowspan","substr","registerCustomCallback","highest","toLowerCase","addClass","insertTableRowBelow","first","every","includes","root","min","tableRow","get","getChanges","some","_acceptFormatSuggestionCallbackFactory","rootName","ELEMENT_TABLE_WITH_TEXT","forceValue","subType","insertTableColumnRight","addMarker:suggestion","getSuggestion","_tableSuggestions","batch","length","registerDescriptionCallback","writer","getContainedElement","classes","_getCoordsForCells","isArray","startsWith","MIN_SAFE_INTEGER","isIntersectingWithRange","removeTableColumn","map","order","minRow","low","type","selectTableColumn","$textProxy","position","refresh","createTableWalker","getRowIndexes","enableCommand","locale","_getSuggestionCoords","removeTableRow","tablePaste","setSelection","isTouching","item","element","createRangeIn","model","getItems","getCellLocation","tableCell","tableColumn","getRanges","registerElementLabel","TableUtils","commands","createRangeOn","ELEMENT_TABLE_COLUMN_WITH_TEXT","discard","end","from","*Remove:* %0","TrackChangesEditing","filter","accept","insertTableColumnLeft","maxRow","data","deletion","start","toViewElement","colspan","*Insert:* %0","getAttribute","detach","ELEMENT_TABLE_COLUMN","push"];var Lx,Nx;Lx=Ix,Nx=153,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const Mx=function(t,e){return Ix[t-=0]};class wx extends t.Plugin{constructor(t){super(t),this[Mx("0x75")]=[Mx("0x29"),Mx("0x5b")],this[Mx("0x35")]=new Set}[Mx("0x17")](){const t=this[Mx("0x9")],e=t[Mx("0x57")][Mx("0x1a")].selection;if(!t[Mx("0x78")][Mx("0x76")](Mx("0x77")))return;const n=t[Mx("0x4e")],o=t[Mx("0x78")][Mx("0x2a")](Mx("0x66")),s=t[Mx("0x78")][Mx("0x2a")](Mx("0x5e"));o[Mx("0x85")][Mx("0x5d")](Mx("0x86"),(t=>Yo(n,Mx("0x16"),t))),this[Mx("0x10")](),o[Mx("0x4d")](Mx("0xf")),o[Mx("0x4d")](Mx("0x84")),o.enableCommand(Mx("0x47"));for(const n of["insertTableRowAbove",Mx("0x23")]){const r=t[Mx("0x5f")].get(n);o[Mx("0x4d")](n,(n=>{t.model[Mx("0x7f")]((t=>{n();const i="above"===r[Mx("0x43")],x=s[Mx("0xd")](e),a=s[Mx("0x4c")](x),c=i?a[Mx("0x24")]-1:a[Mx("0x5")]+1,l=x[0][Mx("0x80")](Mx("0x86")),d=s[Mx("0x4b")](l,{startRow:c,endRow:c}),u=Array.from(d)[Mx("0x42")]((e=>t.createRangeOn(e[Mx("0xa")])));o[Mx("0x81")](u,"tableRow")}))}))}for(const n of[Mx("0x69"),Mx("0x32")]){const r=t[Mx("0x5f")][Mx("0x2a")](n);o[Mx("0x4d")](n,(n=>{t[Mx("0x57")].change((t=>{n();const i="left"===r[Mx("0x43")],x=s[Mx("0xd")](e),a=s.getColumnIndexes(x),c=i?a[Mx("0x24")]-1:a[Mx("0x5")]+1,l=x[0].findAncestor(Mx("0x86")),d=s[Mx("0x4b")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[Mx("0x64")](d)[Mx("0x42")]((e=>t.createRangeOn(e[Mx("0xa")])));o[Mx("0x81")](u,"tableColumn")}))}))}for(const n of[Mx("0x50"),Mx("0x41")]){const r=n[Mx("0x1e")](11),i=r[Mx("0x21")](),x=i[Mx("0x1e")](0,3)+"span",a="table"+r,c=Mx("0x28")+r,l=Mx("0x8")+r;o.enableCommand(n,(()=>{t.model.change((t=>{const r=s[Mx("0xd")](e),d=r[0][Mx("0x80")]("table");let u;if("removeTableRow"==n){const t=s[Mx("0x4c")](r);u={startRow:t[Mx("0x24")],endRow:t[Mx("0x5")],includeAllSlots:!0}}else{const t=s.getColumnIndexes(r);u={startColumn:t[Mx("0x24")],endColumn:t[Mx("0x5")],includeAllSlots:!0}}const g=s.createTableWalker(d,u),m=Array[Mx("0x64")](g)[Mx("0x42")]((({cell:t})=>t)),f=Ox(m[Mx("0x67")]((t=>t.hasAttribute(x)))),h=Ox(m[Mx("0x67")]((t=>!t[Mx("0x7")](x))))[Mx("0x42")]((e=>t[Mx("0x60")](e))),p=o.markMultiRangeDeletion(h,a);if(p&&(Mx("0x29")==p[Mx("0x31")]||Mx("0x5b")==p[Mx("0x31")])){const e=this[Mx("0x4f")](p);for(const n of f){const o=t.createRangeOn(n),r=s[Mx("0x59")](n),a=n[Mx("0x71")](x)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+a<=u&&p[Mx("0x14")](o)}}}))}))}function r(n){const o=Array[Mx("0x64")](e[Mx("0x5c")]())[Mx("0x42")]((t=>i.LiveRange[Mx("0x18")](t)));t.model.change((e=>{const s=e[Mx("0x36")];n=n[Mx("0x67")]((t=>Mx("0x1b")!=t[Mx("0x27")][Mx("0x2e")])),e.setSelection(n),t[Mx("0x5f")][Mx("0x2a")](Mx("0x50"))[Mx("0x4a")](),t[Mx("0x7a")](Mx("0x50"),{forceDefaultExecution:!0}),t[Mx("0x57")][Mx("0x4")]((()=>{t[Mx("0x57")].enqueueChange(s,(t=>{const e=o[Mx("0x67")]((t=>"$graveyard"!=t[Mx("0x27")][Mx("0x2e")]));e[Mx("0x37")]>0&&t.setSelection(e);for(const t of o)t[Mx("0x72")]()}))}))}))}function a(n){t.model[Mx("0x7f")]((o=>{const s=Array[Mx("0x64")](e[Mx("0x5c")]())[Mx("0x42")]((t=>i.LiveRange[Mx("0x18")](t))),r=[];for(const t of n)for(const e of t[Mx("0x58")]({shallow:!0}))r.push(e);for(const e of r)Mx("0x1b")!=e[Mx("0x27")][Mx("0x2e")]&&(o[Mx("0x52")](o[Mx("0x19")](e,0)),t.commands[Mx("0x2a")](Mx("0x41"))[Mx("0x4a")](),t.execute(Mx("0x41"),{forceDefaultExecution:!0}));const x=s[Mx("0x67")]((t=>Mx("0x1b")!=t.root[Mx("0x2e")]));x[Mx("0x37")]>0&&o[Mx("0x52")](x);for(const t of s)t[Mx("0x72")]()}))}function c(t,e){return e[Mx("0x25")]((e=>t.some((t=>t[Mx("0x63")][Mx("0x79")](e.start)||e[Mx("0x63")][Mx("0x79")](t[Mx("0x6d")])))))}function l(t,e){return t[Mx("0x2c")]((t=>e[Mx("0x2c")]((e=>t[Mx("0x63")][Mx("0x53")](e[Mx("0x6d")])))))}t[Mx("0x6b")][Mx("0x0")].on(Mx("0x33"),((t,e,n)=>{if(!n.options[Mx("0x83")])return;const o=e[Mx("0x54")];if(!o)return;const s=n[Mx("0x7d")][Mx("0x6e")](o);function r(t){return Array[Mx("0x3d")](t)?t:[t]}s&&Mx("0x5a")===o[Mx("0x7b")]&&(0,x.setHighlightHandling)(s,n[Mx("0x39")],((t,e,n)=>n[Mx("0x22")](r(e[Mx("0x3b")]),t)),((t,e,n)=>n.removeClass(r(e.classes),t)))}),{priority:Mx("0x20")}),o._descriptionFactory[Mx("0x38")]((t=>{if("insertion"!=t[Mx("0x46")]&&"deletion"!=t[Mx("0x46")])return;const e=t[Mx("0x3a")]();if(null!=e&&e.is(Mx("0x55"),Mx("0x86"))){if(Mx("0x3")==t.type){const e=t[Mx("0x58")]()[Mx("0x67")]((t=>t.is(Mx("0x48"))))[Mx("0x42")]((t=>t[Mx("0x6b")]));if(e.length)return{type:Mx("0x3"),content:Yo(n,Mx("0x70"),Yo(n,Mx("0x2f"),'"'+e[Mx("0x1c")](" ")+'"'))}}if(Mx("0x6c")==t[Mx("0x46")]){const e=t.getItems()[Mx("0x67")]((t=>t.is(Mx("0x48")))).map((t=>t[Mx("0x6b")]));if(e[Mx("0x37")])return{type:"deletion",content:Yo(n,Mx("0x65"),Yo(n,Mx("0x2f"),'"'+e.join(" ")+'"'))}}}})),o[Mx("0x85")][Mx("0x38")]((t=>{if("tableRow"==t[Mx("0x31")]){const e=t[Mx("0x58")]()[Mx("0x67")]((t=>t.is(Mx("0x48"))))[Mx("0x42")]((t=>t.data)),o=this._getSuggestionCoords(t),s=o[Mx("0x6a")]-o[Mx("0x44")]+1;if(Mx("0x3")==t[Mx("0x46")])return e[Mx("0x37")]?{type:"insertion",content:Yo(n,Mx("0x70"),Yo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[s,'"'+e[Mx("0x1c")](" ")+'"']))}:{type:"insertion",content:Yo(n,Mx("0x70"),Yo(n,Mx("0xb"),s))};if(Mx("0x6c")==t[Mx("0x46")])return e[Mx("0x37")]?{type:Mx("0x6c"),content:Yo(n,Mx("0x65"),Yo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[s,'"'+e[Mx("0x1c")](" ")+'"']))}:{type:Mx("0x6c"),content:Yo(n,Mx("0x65"),Yo(n,Mx("0xb"),s))}}if(Mx("0x5b")==t.subType){const e=t[Mx("0x58")]().filter((t=>t.is(Mx("0x48"))))[Mx("0x42")]((t=>t[Mx("0x6b")])),o=this._getSuggestionCoords(t),s=o.maxColumn-o[Mx("0x2")]+1;if(Mx("0x3")==t.type)return e.length?{type:Mx("0x3"),content:Yo(n,Mx("0x70"),Yo(n,Mx("0x61"),[s,'"'+e[Mx("0x1c")](" ")+'"']))}:{type:Mx("0x3"),content:Yo(n,Mx("0x70"),Yo(n,"ELEMENT_TABLE_COLUMN",s))};if(Mx("0x6c")==t.type)return e[Mx("0x37")]?{type:"deletion",content:Yo(n,Mx("0x65"),Yo(n,Mx("0x61"),[s,'"'+e[Mx("0x1c")](" ")+'"']))}:{type:"deletion",content:Yo(n,Mx("0x65"),Yo(n,Mx("0x73"),s))}}})),o[Mx("0x11")][Mx("0x1f")]("insertion",Mx("0x29"),Mx("0x62"),r),o[Mx("0x11")][Mx("0x1f")](Mx("0x6c"),"tableRow",Mx("0x68"),r),o[Mx("0x11")][Mx("0x1f")](Mx("0x3"),Mx("0x5b"),"discard",a),o._suggestionFactory.registerCustomCallback(Mx("0x6c"),Mx("0x5b"),"accept",a),o._suggestionFactory[Mx("0x1f")](Mx("0x3"),Mx("0x5b"),Mx("0x1c"),c),o._suggestionFactory[Mx("0x1f")](Mx("0x6c"),"tableColumn",Mx("0x1c"),c),o[Mx("0x11")].registerCustomCallback(Mx("0x3"),Mx("0x29"),"join",l),o[Mx("0x11")][Mx("0x1f")](Mx("0x6c"),Mx("0x29"),"join",l)}[Mx("0x2d")](){const t=this.editor,e=t.model.document[Mx("0x1")];return(n,o)=>{t[Mx("0x57")][Mx("0x7f")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][Mx("0x63")][Mx("0x6")];x&&x[0]&&!1===x[0][Mx("0x30")]&&(a=n[0][Mx("0x6d")][Mx("0xe")]);const c=s[Mx("0x56")](a);if("$graveyard"==c[Mx("0x27")][Mx("0x2e")])return;const l=Array[Mx("0x64")](e.getRanges()).map((t=>i.LiveRange[Mx("0x18")](t)));s.setSelection(c),t[Mx("0x5f")].get(r)[Mx("0x4a")](),x[Mx("0x74")]({forceDefaultExecution:!0}),t[Mx("0x7a")](r,...x);const d=l[Mx("0x67")]((t=>Mx("0x1b")!=t[Mx("0x27")][Mx("0x2e")]));d[Mx("0x37")]>0&&s[Mx("0x52")](d);for(const t of l)t[Mx("0x72")]()}))}}[Mx("0x3c")](t){const e=this[Mx("0x9")].plugins[Mx("0x2a")]("TableUtils");let n=Number[Mx("0x15")],o=Number[Mx("0x3f")],s=Number[Mx("0x15")],r=Number[Mx("0x3f")];for(const i of t){if("$graveyard"==i[Mx("0x27")][Mx("0x2e")])continue;const{row:t,column:x}=e[Mx("0x59")](i),a=i[Mx("0x7")](Mx("0x1d"))?i[Mx("0x71")](Mx("0x1d"))-1:0,c=i.hasAttribute(Mx("0x6f"))?i[Mx("0x71")]("colspan")-1:0;n=t<n?t:n,o=t+a>o?t+a:o,s=x<s?x:s,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:s,maxColumn:r}}[Mx("0x10")](){const t=this[Mx("0x9")],e=t[Mx("0x78")][Mx("0x2a")](Mx("0x66")),n=t[Mx("0x78")][Mx("0x2a")](Mx("0x5e"));t[Mx("0x57")].document.on("change:data",(()=>{const n=Array.from(t[Mx("0x57")].document[Mx("0x12")].getChangedMarkers());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e._splitMarkerName(t);if(Mx("0x7e")!=n)continue;if(null!=o[Mx("0x7c")])continue;const i=e[Mx("0x34")](s);this[Mx("0x75")][Mx("0x26")](r)&&this[Mx("0x35")].add(i)}}),{priority:Mx("0x45")});const o=(t,e)=>{let o=!1;const s=e[Mx("0x60")](t),r=t.findAncestor(Mx("0x86")),i=n[Mx("0x59")](t);for(const e of this[Mx("0x35")]){const n=e[Mx("0x31")],x=n[Mx("0x3e")](Mx("0x51")),a=n[Mx("0x1e")](x?10:5),c=a[Mx("0x21")](),l=c.substr(0,3)+"span",d=Mx("0x28")+a,u="max"+a;if(!e.isInContent)continue;if(r!=e.getFirstRange()[Mx("0x6d")][Mx("0x80")](Mx("0x86")))continue;if(e[Mx("0x40")](s))continue;const g=t[Mx("0x7")](l)?t[Mx("0x71")](l)-1:0,m=this[Mx("0x4f")](e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e[Mx("0x14")](s),o=!0)}return o};t[Mx("0x57")].document[Mx("0x82")]((e=>{let n=!1;for(const s of t[Mx("0x57")][Mx("0x1a")][Mx("0x12")][Mx("0x2b")]())if(Mx("0x13")==s.type)if(Mx("0x29")==s[Mx("0x7b")])for(const t of s[Mx("0x49")][Mx("0xe")].getChildren())n=n||o(t,e);else Mx("0x5a")==s[Mx("0x7b")]&&(n=n||o(s.position[Mx("0xe")],e));return n}))}[Mx("0x4f")](t){return this[Mx("0x3c")](t[Mx("0x5c")]()[Mx("0x42")]((t=>t[Mx("0x6d")].nodeAfter)))}}function Ox(t){return Array[Mx("0x64")](new Set(t)[Mx("0xc")]())}const Fx=["type","root","length","enableCommand","getFirstPosition","getCellLocation","from","cell","size","getSelectionAffectedTableCells","filter","execute","mergeTableCellDown","_isForcedDefaultExecutionBlock","markBlockFormat","getSuggestions","mergeTableCellLeft","TrackChangesEditing","createRangeOn","deletion","document","_areMergableCells","low","_descriptionFactory","_areSelectedCellsMergable","*Split cell:* vertically","findAncestor","mergeTableCells","getRanges","element","set:isEnabled","stop","requires","isEnabled","_suggestionFactory","setSelection","mergeTableCellRight","subType","highest","splitTableCellHorizontally","mergeTableCellUp","tableCell","markMultiRangeBlockFormat","value","_acceptFormatSuggestionCallbackFactory","add","map","locale","author","plugins","isInContent","getAncestors","rootName","editor","format","find","commands","TableEditing","accept","registerCustomCallback","insertion","commandName","selection","containsRange","TableUtils","push","get","trackChanges","change","splitTableCellVertically","formatBlock","createTableWalker","horizontally","model"];var Px,Dx;Px=Fx,Dx=308,function(t){for(;--t;)Px.push(Px.shift())}(++Dx);const Bx=function(t,e){return Fx[t-=0]};class jx extends t.Plugin{static get[Bx("0x14")](){return[wx]}afterInit(){const t=this[Bx("0x29")],e=t[Bx("0x3d")].document[Bx("0x32")],n=t[Bx("0x23")];if(!t[Bx("0x25")].has(Bx("0x2d")))return;const o=t[Bx("0x25")].get("TrackChangesEditing"),s=t.plugins[Bx("0x36")](Bx("0x34")),r=t[Bx("0x25")][Bx("0x36")](wx);r._tablePostFixingSubtypes[Bx("0x35")]("mergeTableCells"),o[Bx("0x41")](Bx("0xf"),(()=>{const e=s[Bx("0x47")](t[Bx("0x3d")].document[Bx("0x32")]);t.model.change((()=>{o[Bx("0x1e")](e,{commandName:"mergeTableCells",commandParams:[]},[],Bx("0xf"))}))})),t[Bx("0x2c")][Bx("0x36")](Bx("0xf")).on(Bx("0x49"),((e,n)=>{t.commands[Bx("0x36")](Bx("0x37"))[Bx("0x1f")]&&(n[Bx("0x40")]>0&&n[n[Bx("0x40")]-1]&&n[n[Bx("0x40")]-1].forceDefaultExecution||o[Bx("0x1")]||this[Bx("0xc")]()||e[Bx("0x13")]())}),{priority:Bx("0x1a")});for(const e of["mergeTableCellUp",Bx("0x18"),"mergeTableCellDown",Bx("0x4")]){const n=t[Bx("0x2c")][Bx("0x36")](e);o.enableCommand(e,(()=>{const e=t[Bx("0x3d")][Bx("0x8")][Bx("0x32")][Bx("0x42")]()[Bx("0x27")]().find((t=>t.is(Bx("0x11"),Bx("0x1d")))),s=n.value;t.model[Bx("0x38")]((()=>{o[Bx("0x1e")]([e,s],{commandName:Bx("0xf"),commandParams:[]},[],Bx("0xf"))}))}))}for(const e of[Bx("0x39"),Bx("0x1b")]){const n=t[Bx("0x2c")].get(e);o.enableCommand(e,(()=>{const r=s[Bx("0x47")](t[Bx("0x3d")][Bx("0x8")].selection)[0],i=r[Bx("0xe")]("table"),{column:x,row:a}=s[Bx("0x43")](r);let c=[];if(Bx("0x3c")==n.direction){const t=s[Bx("0x3b")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0x44")](t)[Bx("0x22")]((t=>t[Bx("0x45")]))}else{const t=s[Bx("0x3b")](i,{column:x,includeAllSlots:!0});c=Array[Bx("0x44")](t)[Bx("0x22")]((t=>t[Bx("0x45")]))}t.model[Bx("0x38")]((t=>{o[Bx("0x2")](t.createRangeOn(r),{commandName:e,commandParams:[]},c,e)}))}))}o[Bx("0xb")].registerDescriptionCallback((t=>{const{data:e}=t;if(e)return Bx("0xf")==e[Bx("0x31")]?{type:Bx("0x2a"),content:Yo(n,"*Merge cells*")}:void 0})),o[Bx("0xb")].registerDescriptionCallback((t=>{const{data:e}=t;if(e)return"splitTableCellVertically"==e[Bx("0x31")]?{type:Bx("0x2a"),content:Yo(n,Bx("0xd"))}:Bx("0x1b")==e[Bx("0x31")]?{type:Bx("0x2a"),content:Yo(n,"*Split cell:* horizontally")}:void 0}));const x=r[Bx("0x20")]();for(const t of[Bx("0x1c"),Bx("0x18"),Bx("0x0"),Bx("0x4")])o._suggestionFactory[Bx("0x2f")](Bx("0x3a"),t,Bx("0x2e"),x);for(const t of[Bx("0x39"),"splitTableCellHorizontally"])o[Bx("0x16")][Bx("0x2f")](Bx("0x3a"),t,"accept",x);o[Bx("0x16")][Bx("0x2f")](Bx("0x3a"),Bx("0xf"),Bx("0x2e"),(n=>{t[Bx("0x3d")].change((o=>{const s=Array[Bx("0x44")](e[Bx("0x10")]()).map((t=>i.LiveRange.fromRange(t)));o.setSelection(n),t[Bx("0x2c")].get(Bx("0xf")).refresh(),t[Bx("0x49")](Bx("0xf"),{forceDefaultExecution:!0});const r=s[Bx("0x48")]((t=>"$graveyard"!=t[Bx("0x3f")][Bx("0x28")]));r.length>0&&o[Bx("0x17")](r);for(const t of s)t.detach()}))}));for(const e of[Bx("0x1c"),Bx("0x0"),Bx("0x4"),Bx("0x18")]){const n=t.commands[Bx("0x36")](e);n.on(Bx("0x12"),((e,o,s)=>{if(s){const o=t[Bx("0x3d")][Bx("0x8")][Bx("0x32")][Bx("0x42")]()[Bx("0x27")]()[Bx("0x2b")]((t=>t.is("element",Bx("0x1d"))));this[Bx("0x9")](n.value,o)||(e.return=!1,e.stop())}}),{priority:Bx("0xa")})}}_areSelectedCellsMergable(){const t=this.editor[Bx("0x2c")][Bx("0x36")](Bx("0xf")),e=this.editor[Bx("0x25")][Bx("0x36")](Bx("0x34"));if(!t[Bx("0x15")])return!1;const n=e[Bx("0x47")](this[Bx("0x29")].model.document[Bx("0x32")]);for(const t of n)for(const e of n)if(t!=e&&!this[Bx("0x9")](t,e))return!1;return!0}[Bx("0x9")](t,e){const n=this[Bx("0x29")].plugins[Bx("0x36")](Bx("0x5")),o=this[Bx("0x29")][Bx("0x3d")][Bx("0x6")](t),s=this[Bx("0x29")][Bx("0x3d")][Bx("0x6")](e),r=new Set,i=new Set;for(const t of n[Bx("0x3")]())if((Bx("0x30")==t[Bx("0x3e")]||Bx("0x7")==t[Bx("0x3e")]||Bx("0xf")==t[Bx("0x19")])&&t[Bx("0x26")])for(const e of t[Bx("0x10")]())e[Bx("0x33")](o,!0)&&r[Bx("0x21")](t[Bx("0x3e")]+":"+t[Bx("0x24")].id),e[Bx("0x33")](s,!0)&&i[Bx("0x21")](t.type+":"+t.author.id);if(r[Bx("0x46")]!=i[Bx("0x46")])return!1;for(const t of r)if(!i.has(t))return!1;return!0}}const Ux=["markerName","commands","accept","setTableRowHeader","removeAttribute","unbindElementFromMarkerName","setAttribute","TableUtils","addClass","cell","bindElementToMarker","end","plugins","data-suggestion","createRange","document","registerDescriptionCallback","first","markerRange","get","createTableWalker","stop","TableEditing","highest","has","data","removeClass","from","writer","_suggestionFactory","FORMAT_REGULAR_ROW","registerCustomCallback","childCount","consumable","commandParams","locale","parent","TrackChangesEditing","change","removeMarker:suggestion","getRowIndexes","selection","enableCommand","setTableColumnHeader","model","editor","editing","last","nodeAfter","downcastDispatcher","findAncestor","getSuggestion","_descriptionFactory","getCellLocation","getAttribute","commandName","headingColumns","forceValue","mapper","createPositionAfter","markBlockFormat","table","FORMAT_HEADER_ROW","ck-suggestion-marker-","_splitMarkerName","formatBlock","index","getChild","createPositionBefore","showSuggestionHighlights","ck-suggestion-marker--active","includes"];var Gx,Hx;Gx=Ux,Hx=135,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const zx=function(t,e){return Ux[t-=0]};class Vx extends t.Plugin{static get requires(){return[wx]}afterInit(){const t=this[zx("0x36")];if(!t[zx("0x15")][zx("0x21")](zx("0x1f")))return;const e=t[zx("0x2c")],n=t[zx("0x15")].get(zx("0x2e")),o=t[zx("0x15")][zx("0x1c")]("TableUtils"),s=t[zx("0x15")].get(wx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[zx("0x1")](r[zx("0x9")]),c=n.getSuggestion(a);if(!c[zx("0x22")]||zx("0x34")!=c[zx("0x22")][zx("0x40")])return;if(r.item)return void s[zx("0x1e")]();if(!i[zx("0x2a")].consume(r.markerRange,s.name))return;const l=r[zx("0x1b")].start[zx("0x39")],d=r.markerRange[zx("0x14")].nodeBefore,u=l.parent[zx("0x2d")],{column:g}=o.getCellLocation(l),{column:m}=o[zx("0x3e")](d);for(let s=g;s<=m;s++){const c=o[zx("0x1d")](u,{column:s,includeAllSlots:!1});for(const o of c){const s=o[zx("0x12")],c=i[zx("0x43")].toViewElement(s);i[zx("0x25")][zx("0x11")](zx("0x0")+x,c),e&&i[zx("0x25")][zx("0xf")](zx("0x16"),a,c),i[zx("0x43")][zx("0x13")](c,r[zx("0x9")]),t&&(n.activeMarkers[zx("0x8")](r[zx("0x9")])?i[zx("0x25")].addClass(zx("0x7"),c):i[zx("0x25")].removeClass(zx("0x7"),c))}}}}n.enableCommand(zx("0xc"),((e,s)=>{const r=o.getSelectionAffectedTableCells(t[zx("0x35")][zx("0x18")][zx("0x32")]),i=o[zx("0x31")](r),x=r[0].findAncestor("table"),a=x.getAttribute("headingRows")||0,c=s&&null!==s.forceValue?s[zx("0x42")]:!t[zx("0xa")].get(zx("0xc")).value,l=c?i.last:i[zx("0x1a")],d=x[zx("0x4")](l);let u;if(c){const e=x.getChild(a);if(d.index<e[zx("0x3")])return;u=t[zx("0x35")][zx("0x17")](t.model[zx("0x5")](e[zx("0x4")](0)),t.model.createPositionAfter(d.getChild(d[zx("0x29")]-1)))}else{const e=x[zx("0x4")](a-1);if(!e)return;u=t[zx("0x35")][zx("0x17")](t[zx("0x35")][zx("0x5")](d[zx("0x4")](0)),t[zx("0x35")].createPositionAfter(e.getChild(e.childCount-1)))}t[zx("0x35")][zx("0x2f")]((()=>{n[zx("0x45")](u,{commandName:zx("0xc"),commandParams:[{forceValue:c}]},[],zx("0xc"))}))})),n[zx("0x33")](zx("0x34"),((e,o)=>{const s=t.plugins.get(zx("0x10")),r=s.getSelectionAffectedTableCells(t[zx("0x35")][zx("0x18")].selection),i=s.getColumnIndexes(r),x=r[0][zx("0x3b")](zx("0x46")),a=x[zx("0x3f")](zx("0x41"))||0,c=o&&null!==o[zx("0x42")]?o.forceValue:!t.commands.get(zx("0x34")).value;let l;const d=x[zx("0x4")](0),u=c?i[zx("0x38")]:i[zx("0x1a")],g=s[zx("0x1d")](x,{startRow:0,column:u,includeAllSlots:!1}),m=Array[zx("0x24")](g)[0][zx("0x12")];if(c){const e=d[zx("0x4")](a);if(m.isBefore(e))return;l=t[zx("0x35")][zx("0x17")](t[zx("0x35")][zx("0x5")](e),t[zx("0x35")][zx("0x44")](m))}else{const e=d.getChild(a-1);if(!e)return;l=t[zx("0x35")][zx("0x17")](t[zx("0x35")].createPositionBefore(m),t[zx("0x35")][zx("0x44")](e))}t[zx("0x35")][zx("0x2f")]((()=>{n.markBlockFormat(l,{commandName:zx("0x34"),commandParams:[{forceValue:c}]},[],"setTableColumnHeader")}))})),t.editing.downcastDispatcher.on("addMarker:suggestion",r(),{priority:"highest"}),t[zx("0x22")][zx("0x3a")].on("addMarker:suggestion",((t,e,n)=>{n.options[zx("0x6")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:"highest"}),t[zx("0x37")].downcastDispatcher.on(zx("0x30"),((t,e,o)=>{const{type:s,id:r}=n[zx("0x1")](e[zx("0x9")]),i=n[zx("0x3c")](r);if(!i[zx("0x22")]||zx("0x34")!=i[zx("0x22")].commandName)return;const x=o[zx("0x43")].markerNameToElements(e[zx("0x9")]);if(x)for(const t of x)o[zx("0x25")].removeClass("ck-suggestion-marker-"+s,t),o[zx("0x25")][zx("0x23")](zx("0x7"),t),o[zx("0x25")][zx("0xd")](zx("0x16"),t),o[zx("0x43")][zx("0xe")](t,e[zx("0x9")])}),{priority:zx("0x20")}),n[zx("0x3d")][zx("0x19")]((t=>{const{data:n}=t;if(n){if(zx("0xc")==n[zx("0x40")]){const t=n[zx("0x2b")][0].forceValue;return o(Yo(e,zx(t?"0x47":"0x27")))}if(zx("0x34")==n.commandName){const t=n.commandParams[0][zx("0x42")];return o(Yo(e,t?"FORMAT_HEADER_COLUMN":"FORMAT_REGULAR_COLUMN"))}}function o(t){return{type:"format",content:Yo(e,"*Format:* %0",t)}}}));const i=s._acceptFormatSuggestionCallbackFactory();n[zx("0x26")][zx("0x28")](zx("0x2"),zx("0xc"),zx("0xb"),i),n[zx("0x26")][zx("0x28")](zx("0x2"),zx("0x34"),zx("0xb"),i)}}const Wx=["getSuggestionCallback","discard","add","_descriptionFactory","differ","getAllAdjacentSuggestions","map","nodeAfter","tablePasteRow","rootName","documentSelection","insertContent","tablePasteColumn","getTableIfOnlyTableInContent","document","plugins","getRows","registerPostFixer","subType","TableClipboard","model","table","getShiftedBy","_createdBatches","$graveyard","createRange","getRanges","_suggestionFactory","createRangeIn","getChanges","activeMarkers","startsWith","ck-suggestion-marker","join","conversion","move","getRowIndexes","newRange","insertion","getChildren","isInContent","tablePasteCell","getMarkers","registerCustomCallback","tablePaste","tableCellBackgroundColor","includes","getChild","suggestion","find","type","trackChanges","last","start","content","isEqual","listenTo","isEmpty","push","markerAttributes","_replaceTableSlotCell","insertionRanges","name","endColumn","updateMarker","clipboardOutput","redo","getColumns","column","entries","createRangeOn","locale","tableCellBorderColor","deletion","position","paragraph","tableCellVerticalAlignment","removeMarker","suggestion:formatBlock:tablePasteCell","value","findAncestor","tablePasteChainId","_splitMarkerName","editor","root","*Replace table cells*","accept","markerToHighlight","oldRange","tableCellBorderStyle","tableCellPadding","setAttribute","register","_getCoordsForCells","end","tableCellSuggestion","cells","insertColumns","formatBlock","stop","markMultiRangeDeletion","getSelectionAffectedTableCells","getSuggestions","change","every","createTableWalker","for","endRow","has","keys","row","reduce","tableCell","return","TableUtils","tableCellHorizontalAlignment","requires","columnInsertionRanges","high","schema","createElement","insertRows","some","getRange","batch","removeMarkers","deletionRanges","columns","hasSuggestion","remove","markMultiRangeBlockFormat","unwrap","tableCellBorderWidth","getColumnIndexes","attributes","element","TrackChangesEditing","filter","markers","rowInsertionIndexes","_tablePostFixingSubtypes","getAttributes","columnInsertionIndexes","ck-suggestion-marker-insertion","markerName","fill","getContainedElement","author","rowInsertionRanges","get","insert","cell","editing","Users","commands","markMultiRangeInsertion","first","set","next","length","suggestion-td","suggestionUnloaded","from"];var Kx,qx;Kx=Wx,qx=112,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Wx[t-=0]},$x=[Xx("0x14"),Xx("0x7b"),Xx("0x8c"),Xx("0x3"),Xx("0x7f"),Xx("0x60"),Xx("0x8d")],Jx=Object.fromEntries($x[Xx("0x39")]((t=>[t,null])));class Qx extends t.Plugin{static get[Xx("0x4")](){return[wx]}afterInit(){const t=this[Xx("0x86")];if(!t[Xx("0x42")].has(Xx("0x46")))return;const n=t.plugins[Xx("0x25")](Xx("0x18")),o=t[Xx("0x42")][Xx("0x25")](Xx("0x2")),s=t[Xx("0x42")][Xx("0x25")](wx),r=t.plugins[Xx("0x25")](Xx("0x46"));s[Xx("0x1c")][Xx("0x6d")](Xx("0x3b"),Xx("0x3f")),t[Xx("0x47")][Xx("0x7")][Xx("0x8f")]("tableCellSuggestion",{allowIn:Xx("0x0"),allowContentOf:Xx("0x0"),isLimit:!0}),t[Xx("0x55")].elementToElement({model:"tableCellSuggestion",view:Xx("0x30")});let i=null;t[Xx("0x47")].on(Xx("0x3e"),((s,x)=>{const[a,c]=x,l=x[x[Xx("0x2f")]-1];l&&l.forceDefaultExecution||n._isForcedDefaultExecutionBlock||this[Xx("0x86")][Xx("0x2a")][Xx("0x25")](Xx("0x66"))[Xx("0x82")]&&function(t,e,n,o,s){if(e&&!e.is(Xx("0x3d")))return!1;const r=s[Xx("0x40")](t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o[Xx("0x98")](n[Xx("0x41")].selection);if(!i[Xx("0x2f")])return!1;const x=i[0][Xx("0x83")](Xx("0x48")),a=o[Xx("0x57")](i),c=o[Xx("0x15")](i),l={startRow:a[Xx("0x2c")],endRow:a[Xx("0x67")],startColumn:c[Xx("0x2c")],endColumn:c[Xx("0x67")]};return 1==i[Xx("0x2f")]&&(l[Xx("0x9e")]+=o[Xx("0x43")](r)-1,l[Xx("0x72")]+=o[Xx("0x76")](r)-1),Yx(x,l,o)}(a,c,t[Xx("0x47")],o,r)&&(s[Xx("0x96")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Xx("0x47")].change((()=>{t.model.insertContent(x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=i;s.length&&n[Xx("0x2b")](s,Xx("0x3b"),{tablePasteChainId:o}),r.length&&n[Xx("0x2b")](r,"tablePasteColumn",{tablePasteChainId:o}),a[Xx("0x2f")]&&n.markMultiRangeInsertion(a,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0}),c[Xx("0x2f")]&&n[Xx("0x97")](c,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0});const d=n[Xx("0x12")](l[Xx("0x39")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Xx("0x5c"),{tablePasteChainId:o});if(d){const e=d.getMarkers(),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[Xx("0x47")][Xx("0x79")](o),i=e.find((t=>t[Xx("0xb")]()[Xx("0x6a")](r)));i&&n.push([i[Xx("0x71")],s])}n.length&&d[Xx("0x8e")](Xx("0x6e"),Object.fromEntries(n))}i=null})))}),{priority:e.priorities[Xx("0x6")]+10}),t[Xx("0x42")].get(Xx("0x46")).on(Xx("0x6f"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t[Xx("0x96")]();const r=n[Xx("0x27")],x=o,a=Zx(r),c=Zx(x);t[Xx("0x1")]=r;let l=null,d=null;if(c||a)if(a&&!c){s[Xx("0x11")](r[Xx("0x62")](0));for(const t of Array[Xx("0x32")](x[Xx("0x5a")]()))s[Xx("0x26")](t,r,Xx("0x91"));const t=i[Xx("0x1b")][Xx("0x61")](n[Xx("0xa1")]),e=i.columnInsertionIndexes.includes(n[Xx("0x77")]);t||e||(l=s[Xx("0x4f")](r))}else c&&!a&&(d=s[Xx("0x4f")](r));else{const t=s[Xx("0x8")]("tableCellSuggestion"),e=s[Xx("0x8")](Xx("0x92"));s.wrap(s[Xx("0x4f")](r),e),s.insert(t,r,0);for(const e of Array[Xx("0x32")](x[Xx("0x5a")]()))s[Xx("0x26")](e,t,"end");l=s[Xx("0x79")](t),d=s[Xx("0x79")](e)}const u=Array.from(x[Xx("0x1d")]()).filter((([t])=>$x.includes(t)));i[Xx("0x93")][Xx("0x6d")]({element:r,attributes:u[Xx("0x2f")]?Object.fromEntries(u):null}),l&&i[Xx("0x70")][Xx("0x6d")](l),d&&i[Xx("0xe")][Xx("0x6d")](d)}),{priority:Xx("0x6")}),o.on(Xx("0x94"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0xf")]||1;i[Xx("0x1e")]=new Array(a)[Xx("0x21")](x)[Xx("0x39")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x9c")](s,{startColumn:x,endColumn:x+a-1}))i[Xx("0x5")][Xx("0x6d")](t[Xx("0x47")][Xx("0x79")](e))}),{priority:"low"}),o.on(Xx("0x9"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r.rows||1;i[Xx("0x1b")]=new Array(a).fill(x)[Xx("0x39")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(s,{startRow:x,endRow:x+a-1}))i[Xx("0x24")][Xx("0x6d")](t[Xx("0x47")][Xx("0x79")](e))}),{priority:"low"}),n[Xx("0x36")].registerDescriptionCallback((e=>{if(e[Xx("0x45")]&&e[Xx("0x45")][Xx("0x52")](Xx("0x5f")))return e.previous?{}:{type:Xx("0x59"),content:Yo(t[Xx("0x7a")],Xx("0x88"))}}));const x=()=>{};for(const t of[Xx("0x5f"),"tablePasteColumn","tablePasteRow",Xx("0x5c")])n[Xx("0x4e")][Xx("0x5e")](Xx("0x59"),t,Xx("0x54"),x),n[Xx("0x4e")][Xx("0x5e")](Xx("0x7c"),t,Xx("0x54"),x);n._suggestionFactory[Xx("0x5e")](Xx("0x95"),"tablePasteCell",Xx("0x34"),x),n[Xx("0x4e")][Xx("0x5e")](Xx("0x95"),"tablePasteCell",Xx("0x89"),((e,n,o)=>{const s=e[Xx("0x39")]((t=>t.getContainedElement()))[Xx("0x19")]((t=>t)),r=new Map(s[Xx("0x39")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Xx("0x93")])e&&r[Xx("0x2d")](t,e);else if(o&&o.markerAttributes)for(const[e,n]of Object[Xx("0x78")](o.markerAttributes)){const o=t[Xx("0x47")][Xx("0x1a")][Xx("0x25")](e),s=o?o[Xx("0xb")]()[Xx("0x22")]():null;s&&r[Xx("0x2d")](s,n)}t[Xx("0x47")].change((t=>{for(const[e,n]of r)t.setAttributes({...Jx,...n},e)}))}));const a=(e,o)=>{n[Xx("0x4e")][Xx("0x5e")](e,Xx("0x5f"),o,((s,r,i)=>{t[Xx("0x47")][Xx("0x9a")]((t=>{const x=[];for(const t of s){const e=t[Xx("0x68")][Xx("0x3a")];e.is(Xx("0x17"),"tableCellSuggestion")&&x[Xx("0x6d")](e)}n[Xx("0x4e")][Xx("0x33")](e,null,o)(s,r,i);for(const e of x)Xx("0x4b")!=e[Xx("0x87")][Xx("0x3c")]&&t.unwrap(e)}))}))};a(Xx("0x59"),"accept"),a(Xx("0x59"),Xx("0x34")),a(Xx("0x7c"),Xx("0x89")),a(Xx("0x7c"),Xx("0x34")),n[Xx("0x4e")][Xx("0x5e")](Xx("0x59"),Xx("0x3b"),Xx("0x34"),(t=>{const e=t[Xx("0x39")]((t=>t[Xx("0x22")]())),n=e[0].findAncestor("table"),{minRow:r,maxRow:i}=s._getCoordsForCells(e);o.removeRows(n,{at:r,rows:i-r+1})})),n[Xx("0x4e")][Xx("0x5e")](Xx("0x59"),"tablePasteColumn","discard",(t=>{const e=t.map((t=>t[Xx("0x22")]())),n=e[0][Xx("0x83")]("table"),{minColumn:r,maxColumn:i}=s[Xx("0x90")](e);o.removeColumns(n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Xx("0x45")]||!e[Xx("0x45")][Xx("0x52")](Xx("0x5f")))return;const o=e[Xx("0x16")][Xx("0x84")],s=n[Xx("0x99")]()[Xx("0x19")]((t=>t[Xx("0x5b")]&&t[Xx("0x16")]&&t.attributes.tablePasteChainId==o));s[Xx("0x2f")]&&e[Xx("0x38")]().length!=s.length&&s[Xx("0xa2")](((t,e)=>(t[Xx("0x2e")]=e,e.previous=t,e)))};function l(t,e=!0){const{id:o}=n[Xx("0x85")](t[Xx("0x20")]),s=[Xx("0x53"),Xx("0x1f")],r=n[Xx("0x51")][Xx("0x61")](t[Xx("0x20")]);return r&&s[Xx("0x6d")]("ck-suggestion-marker--active"),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:Xx("0x6")}),n.on(Xx("0x31"),c,{priority:Xx("0x6")}),t.model[Xx("0x41")][Xx("0x44")]((()=>{let e=!1;const o=Array[Xx("0x32")](t[Xx("0x47")][Xx("0x41")][Xx("0x37")].getChangedMarkers());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Xx("0x85")](s);if(Xx("0x63")!=o||Xx("0x7c")!=i||r[Xx("0x8b")])continue;if(!n[Xx("0x10")](x))continue;const a=n.getSuggestion(x)[Xx("0x4d")](),c=t[Xx("0x42")].get(Xx("0x29")).me;for(const t of n.getSuggestions())if(t[Xx("0x5b")]&&t[Xx("0x23")]==c&&Xx("0x95")==t[Xx("0x65")]&&Xx("0x5c")==t[Xx("0x45")]&&t[Xx("0x4d")]()[Xx("0x9b")]((t=>a[Xx("0xa")]((e=>e.containsRange(t,!0))))))for(const n of t[Xx("0x38")]())n.isInContent&&(n[Xx("0x34")](),e=!0)}return e})),t[Xx("0x47")][Xx("0x41")][Xx("0x44")]((e=>{const o=t[Xx("0x2a")].get(Xx("0x75"));if(!o||!o[Xx("0x4a")][Xx("0x9f")](e[Xx("0xc")]))return!1;let s=!1;const r=t[Xx("0x42")][Xx("0x25")]("Users").me,i=t[Xx("0x47")][Xx("0x41")][Xx("0x37")][Xx("0x50")](),x=Array[Xx("0x32")](t.model.document[Xx("0x37")].getChangedMarkers())[Xx("0x19")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n._splitMarkerName(t);return Xx("0x63")==o&&Xx("0x5f")==s&&i==r.id&&!e.oldRange}));for(const t of i){if("insert"!=t[Xx("0x65")]||Xx("0x92")!=t[Xx("0x71")]||1!=t.length)continue;const n=e[Xx("0x4c")](t[Xx("0x7d")],t[Xx("0x7d")][Xx("0x49")](1));if(!x[Xx("0x64")]((({data:t})=>t[Xx("0x58")][Xx("0x6a")](n))))for(const{name:t,data:o}of x)if(n.containsRange(o.newRange)){e[Xx("0x73")](t,{range:n}),s=!0;break}}return s})),t[Xx("0x47")][Xx("0x41")].registerPostFixer((e=>{let o=!1;const s=t[Xx("0x42")][Xx("0x25")]("Users").me,r=n[Xx("0x99")]().filter((t=>t[Xx("0x5b")]&&t[Xx("0x23")]==s)),i=new Set,x=new Set;for(const t of r)if(Xx("0x5f")==t[Xx("0x45")])for(const e of t[Xx("0x5d")]()){const n=e[Xx("0xb")]()[Xx("0x22")]();if(n)if(n.is(Xx("0x17"),Xx("0x92"))&&Zx(n)){t[Xx("0x80")](e.name),i.add(n),o=!0;const s=n.nextSibling,r=n.previousSibling,a=s&&s.is(Xx("0x17"),"tableCellSuggestion"),c=r&&r.is("element",Xx("0x92"));a&&!i[Xx("0x9f")](s)&&x[Xx("0x35")](s),c&&!i[Xx("0x9f")](r)&&x.add(r)}else n.is(Xx("0x17"),Xx("0x7e"))&&n.isEmpty&&(t.removeMarker(e[Xx("0x71")]),o=!0)}else if(Xx("0x5c")==t.subType){if(!t[Xx("0x16")]||!t[Xx("0x16")][Xx("0x84")])continue;const e=t[Xx("0x16")][Xx("0x6e")];if(e&&Object[Xx("0xa0")](e).length)continue;const n=t[Xx("0x16")][Xx("0x84")];let s=!0,i=!0;for(const e of r)if(e[Xx("0x45")]&&e[Xx("0x45")].startsWith(Xx("0x5f"))){if(!e[Xx("0x16")][Xx("0x84")]){i=!1;break}if(e.id!=t.id&&e.attributes[Xx("0x84")]==n){s=!1;break}}i&&s&&(t[Xx("0xd")](),o=!0)}for(const t of i)e[Xx("0x11")](t);for(const t of x)e[Xx("0x13")](t);return o})),t[Xx("0x55")][Xx("0x9d")]("editingDowncast").markerToHighlight({model:Xx("0x81"),view:(t,e)=>l(t),converterPriority:Xx("0x6")}),t[Xx("0x55")][Xx("0x9d")]("dataDowncast")[Xx("0x8a")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>e.options.showSuggestionHighlights?l(t,!1):null,converterPriority:"high"});const d=t[Xx("0x28")].view;this[Xx("0x6b")](d[Xx("0x41")],Xx("0x74"),((t,e)=>{const n=[];for(const t of d[Xx("0x4f")](e[Xx("0x69")]).getItems())t.is(Xx("0x17"),"suggestion-td")&&n[Xx("0x6d")](t);d[Xx("0x9a")]((t=>{for(const e of n)t[Xx("0x56")](t[Xx("0x4f")](e),t.createPositionBefore(e)),t[Xx("0x11")](e)}))}))}}function Zx(t){if(t.isEmpty)return!0;const e=t[Xx("0x62")](0);return e.is(Xx("0x17"),Xx("0x7e"))&&e[Xx("0x6c")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Xx("0x9c")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["formatGroupId","formatBlock","format","locale","selection","enableCommand","author","plugins","resizeTable","discard","editor","registerCustomCallback","change","afterInit","getTableColumnsWidths","_suggestionFactory","accept","get","tableWidth","handleSuggestionDescription","resizeColumnWidths","bind","Users","getSelectedElement","getContainedElement","markBlockFormat","getAttribute","getSuggestionCallback","resizeTableWidth","data","columnWidths","getColumnGroupElement","handleResizeTableWidthCommand","document","model","commandParams","has","TrackChangesEditing","TableColumnResizeEditing"];var ea,na;ea=ta,na=211,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{[oa("0x24")](){if(!this[oa("0x21")].plugins[oa("0x14")](oa("0x16")))return;const t=this.editor[oa("0x1e")][oa("0x1")](oa("0x15"));t[oa("0x1c")](oa("0xc"),this.handleResizeTableWidthCommand[oa("0x5")](this)),t[oa("0x1c")](oa("0x4"),this[oa("0x10")].bind(this)),t[oa("0x26")][oa("0x22")]("formatBlock",oa("0x1f"),oa("0x0"),t._suggestionFactory.getSuggestionCallback("formatBlock",null,oa("0x20"))),t[oa("0x26")].registerCustomCallback("formatBlock",oa("0x1f"),oa("0x20"),t[oa("0x26")][oa("0xb")](oa("0x18"),null,oa("0x0"))),t._descriptionFactory.registerDescriptionCallback(this[oa("0x3")][oa("0x5")](this))}[oa("0x10")](t,e){const n=this[oa("0x21")].plugins.get(oa("0x15")),o=this.editor[oa("0x1e")].get("TableColumnResizeEditing"),s=e.table||this[oa("0x21")].model[oa("0x11")][oa("0x1b")][oa("0x7")]();this[oa("0x21")][oa("0x12")][oa("0x23")]((()=>{const r=o[oa("0xf")](s);let i=r?o[oa("0x25")](r):null,x=s[oa("0xa")](oa("0x2"))||null;const a=e[oa("0x2")]||x,c=e[oa("0xe")]||i,l=this[oa("0x21")].plugins[oa("0x1")](oa("0x6")).me;for(const t of n.getSuggestions()){const e=t[oa("0x8")]();if(oa("0x1f")===t.subType&&e===s){t[oa("0x1d")]!==l&&t.discard();const e=t[oa("0xd")][oa("0x13")];x=e[0][oa("0x2")],i=e[0][oa("0xe")];break}}t({table:s,tableWidth:a,columnWidths:c}),n[oa("0x9")](s,{commandName:oa("0xc"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0x1f")},[],"resizeTable")}))}handleSuggestionDescription(t){const{data:e}=t;if(e&&oa("0x1f")===e[oa("0x17")]){const t="*Format:* resize table";return{type:oa("0x19"),content:Yo(this[oa("0x21")][oa("0x1a")],t)}}}}const ra=["get","plugins","insertTemplate","has","TrackChangesEditing","afterInit","Template","enableCommand"];var ia,xa;ia=ra,xa=240,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{[aa("0x5")](){const t=this.editor;t[aa("0x1")][aa("0x3")](aa("0x6"))&&t.plugins[aa("0x0")](aa("0x4"))[aa("0x7")](aa("0x2"))}}const la=["enableCommand","tableOfContents","plugins","ELEMENT_TABLE_OF_CONTENTS","_descriptionFactory","insertTableOfContents","get","TrackChangesEditing","commands","locale"];var da,ua;da=la,ua=291,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.editor;if(!t[ga("0x7")][ga("0x5")](ga("0x4")))return;t[ga("0x1")][ga("0x5")](ga("0x6"))[ga("0x9")](ga("0x4"));const e=t[ga("0x1")].get(ga("0x6")),n=t[ga("0x8")];e[ga("0x3")].registerElementLabel(ga("0x0"),(t=>Yo(n,ga("0x2"),t)))}}const fa=["from","nodeBefore","has","isEqual","locale","updateMarker","document","end","plugins","ELEMENT_TITLE","TrackChangesEditing","removeMarker","model","registerElementLabel","get","suggestion","schema","differ","start","title-content","isTouching","getChangedMarkers","element","afterInit","forward"];var ha,pa;ha=fa,pa=304,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[ba("0x13")](){const t=this.editor;if(!t[ba("0x4")][ba("0x17")]("Title"))return;const e=t[ba("0x4")][ba("0xa")](ba("0x6"));e._descriptionFactory[ba("0x9")](ba("0xf"),(()=>Yo(t[ba("0x0")],ba("0x5")))),t[ba("0x8")][ba("0x2")].registerPostFixer((n=>{let o=!1;const s=Array[ba("0x15")](t.model[ba("0x2")][ba("0xd")][ba("0x11")]());for(const{name:r,data:i}of s){const{group:s}=e._splitMarkerName(r);if(ba("0xb")!==s||!i.newRange)continue;const x=i.newRange,a=x[ba("0x3")][ba("0x16")];if(!a||!a.is(ba("0x12"),ba("0xf")))continue;if(!x[ba("0xe")][ba("0x10")](x[ba("0x3")]))continue;const c=t.model[ba("0xc")].getNearestSelectionRange(x[ba("0x3")],ba("0x14"));if(c&&c.isCollapsed){const t=n.createRange(x[ba("0xe")],c[ba("0xe")]);t[ba("0x18")](x)||(n[ba("0x1")](r,{range:t}),o=!0)}o||(n[ba("0x7")](r),o=!0)}return o}))}}const _a=["redo","has","undo","TrackChangesEditing","get","afterInit","UndoEditing","plugins"];var Ta,Ca;Ta=_a,Ca=403,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x2")](){const t=this.editor,e=t[ya("0x4")][ya("0x1")](ya("0x0"));t[ya("0x4")][ya("0x6")](ya("0x3"))&&(e.enableCommand(ya("0x7")),e.enableCommand(ya("0x5")))}}const Aa=["has","afterInit","TrackChangesEditing","get","toggleTableCaption","editor","enableCommand"];var va,Ra;va=Aa,Ra=117,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 requires(){return[wx]}[Sa("0x3")](){const t=this[Sa("0x0")];t.plugins[Sa("0x2")]("TableCaptionEditing")&&t.plugins[Sa("0x5")](Sa("0x4"))[Sa("0x1")](Sa("0x6"))}}const La=["DocumentListUtils","_getSuggestionBlocksForListStyle","getListTypeFromListStyleType","bind","styles","format","*Format:* set start index to %0","getSelectedBlocks","editor","filter","get","from","numbered","list.properties","listStart","listType","listReversed","registerDescriptionCallback","length","startIndex","change","isListItemBlock","isFirstBlockOfListItem","config","plugins","_getSuggestionBlocks","reversed","DocumentListPropertiesEditing","listStyle","*Change to:* %0","push","replace","expandListBlocksToCompleteList","*Format:* set order to regular","DocumentListPropertiesUtils","getAttribute","TrackChangesEditing","_LIST_","model","_descriptionFactory","handleListStartCommand","enableCommand","toUpperCase","has","commandParams","type","selection","markMultiRangeBlockFormat","document","*Format:* set order to reversed","handleDescriptions"];var Na,Ma;Na=La,Ma=191,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{afterInit(){if(!this[wa("0x15")][wa("0x25")][wa("0x5")](wa("0x28")))return;const t=this[wa("0x15")][wa("0x24")].get(wa("0x1a")),e=this[wa("0x15")][wa("0x25")][wa("0x17")]("TrackChangesEditing");t[wa("0x11")]&&e[wa("0x3")]("listStyle",this.handleListStyleCommand[wa("0x10")](this)),t.reversed&&e[wa("0x3")]("listReversed",this.handleListReversedCommand[wa("0x10")](this)),t[wa("0x20")]&&e[wa("0x3")]("listStart",this[wa("0x2")].bind(this)),e[wa("0x1")][wa("0x1e")](this[wa("0xc")][wa("0x10")](this))}handleListStyleCommand(t,e={}){const n=this.editor[wa("0x25")][wa("0x17")](wa("0x31")),o=this._getSuggestionBlocksForListStyle();this[wa("0x15")].model[wa("0x21")]((()=>{n[wa("0x9")](o,{commandName:wa("0x29"),commandParams:[{type:e[wa("0x7")]}],formatGroupId:wa("0x29")})}))}handleListReversedCommand(t,e={}){const n=this.editor.plugins[wa("0x17")]("TrackChangesEditing"),o=this[wa("0x15")][wa("0x25")].get(wa("0xd")),s=this[wa("0x26")]((t=>o[wa("0x22")](t)&&wa("0x19")===t[wa("0x30")](wa("0x1c"))));null!==s&&this[wa("0x15")].model[wa("0x21")]((()=>{n[wa("0x9")](s,{commandName:wa("0x1d"),commandParams:[{reversed:e.reversed}],formatGroupId:wa("0x1d")})}))}[wa("0x2")](t,e={}){const n=this[wa("0x15")].plugins[wa("0x17")](wa("0x31")),o=this[wa("0x15")][wa("0x25")][wa("0x17")](wa("0xd")),s=this._getSuggestionBlocks((t=>o[wa("0x22")](t)&&wa("0x19")===t[wa("0x30")](wa("0x1c"))));null!==s&&this.editor[wa("0x0")][wa("0x21")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:wa("0x1b"),commandParams:[{startIndex:e[wa("0x20")]}],formatGroupId:wa("0x1b")})}))}handleDescriptions(t){const e=this[wa("0x15")].locale,{data:n}=t;if(!n)return;let o,s;switch(n.commandName){case wa("0x29"):o=wa("0x2a"),s={type:wa("0x12"),content:Yo(e,o,Yo(e,this._getTranslationKeyForListStyle(n[wa("0x6")][0].type)))};break;case wa("0x1d"):o=n[wa("0x6")][0][wa("0x27")]?wa("0xb"):wa("0x2e"),s={type:"format",content:Yo(e,o)};break;case"listStart":o=wa("0x13"),s={type:wa("0x12"),content:Yo(e,o,n[wa("0x6")][0][wa("0x20")])}}return s}[wa("0xe")](){const t=this[wa("0x15")][wa("0x25")][wa("0x17")](wa("0xd"));let e=Array[wa("0x18")](this[wa("0x15")].model[wa("0xa")][wa("0x8")][wa("0x14")]());return e[wa("0x2b")](...t[wa("0x2d")](e)),e=[...new Set(e)],e}[wa("0x26")](t){const e=this[wa("0x15")][wa("0x25")][wa("0x17")](wa("0xd"));let n=Array[wa("0x18")](this[wa("0x15")][wa("0x0")][wa("0xa")][wa("0x8")].getSelectedBlocks())[wa("0x16")](t);if(!n[wa("0x1f")])return null;n=e[wa("0x2d")](n);const o=[];for(const t of n)e[wa("0x23")](t)&&o[wa("0x2b")](t);return o}_getTranslationKeyForListStyle(t){return"ELEMENT_"+this[wa("0x15")][wa("0x25")][wa("0x17")](wa("0x2f"))[wa("0xf")](t)[wa("0x4")]()+wa("0x32")+t[wa("0x4")]()[wa("0x2c")](/-/g,"_")}}const Fa=["tableCellBackgroundColor","accept","_suggestionFactory","get","*Format:* change table cell properties","start","data","getAttribute","tableCellPadding","tableWidth","tableCellBorderWidth","registerCustomCallback","afterInit","formatBlock","tableProperties","editor","markBlockFormat","model","selection","getFirstPosition","removeAttribute","tableCellProperties","tableBorderColor","locale","registerDescriptionCallback","_descriptionFactory","getContainedElement","setAttribute","join","discard","getSuggestions","enableCommand","tableBorderWidth","nodeAfter","_handlePropertyChange","format","table","handleDiscardAction","tableCellBorderStyle","TrackChangesEditing","tableHeight","document","_getSuggestion","tableCellBorderColor","commandParams","TrackChangesTableProperties","has","subType","getSuggestionCallback","handleSuggestionDescription","TableUtils","TableCellPropertiesEditing","tableBackgroundColor","*Format:* change table properties","tableAlignment","batch","plugins"];var Pa,Da;Pa=Fa,Da=488,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("0x27")]=[Ba("0x2f"),"tableBorderStyle",Ba("0x0"),Ba("0x16"),Ba("0x22"),Ba("0x8"),Ba("0x14")],this[Ba("0x2e")]=[Ba("0xb"),Ba("0x6"),Ba("0x23"),Ba("0x21"),"tableCellWidth","tableCellHeight",Ba("0x19"),"tableCellHorizontalAlignment","tableCellVerticalAlignment"]}static get pluginName(){return Ba("0xd")}[Ba("0x25")](){const t=this[Ba("0x28")][Ba("0x18")][Ba("0x1c")](Ba("0x7"));if(this[Ba("0x28")][Ba("0x18")].has("TablePropertiesEditing")){for(const e of this.tableProperties)t[Ba("0x38")](e,((t,n)=>{const o=this[Ba("0x28")][Ba("0x2a")][Ba("0x9")].selection[Ba("0x2c")]().findAncestor(Ba("0x4"));this[Ba("0x2")](e,[o],this[Ba("0x27")],Ba("0x27"),t,n)}));t._suggestionFactory[Ba("0x24")](Ba("0x26"),Ba("0x27"),Ba("0x1a"),t[Ba("0x1b")][Ba("0x10")](Ba("0x26"),null,Ba("0x36"))),t[Ba("0x1b")][Ba("0x24")](Ba("0x26"),Ba("0x27"),"discard",((t,e)=>this[Ba("0x5")](this[Ba("0x27")],t,e))),t[Ba("0x1b")].registerCustomCallback(Ba("0x26"),Ba("0x27"),Ba("0x35"),(()=>!1))}if(this[Ba("0x28")][Ba("0x18")][Ba("0xe")](Ba("0x13"))){for(const e of this[Ba("0x2e")])t[Ba("0x38")](e,((t,n)=>{const o=this[Ba("0x28")].plugins.get(Ba("0x12")).getSelectionAffectedTableCells(this[Ba("0x28")][Ba("0x2a")][Ba("0x9")][Ba("0x2b")]);this[Ba("0x2")](e,o,this[Ba("0x2e")],Ba("0x2e"),t,n)}));t[Ba("0x1b")].registerCustomCallback(Ba("0x26"),Ba("0x2e"),Ba("0x1a"),t._suggestionFactory[Ba("0x10")](Ba("0x26"),null,Ba("0x36"))),t[Ba("0x1b")].registerCustomCallback(Ba("0x26"),Ba("0x2e"),Ba("0x36"),((t,e)=>this[Ba("0x5")](this[Ba("0x2e")],t,e))),t[Ba("0x1b")][Ba("0x24")](Ba("0x26"),Ba("0x2e"),"join",(()=>!1))}t[Ba("0x32")][Ba("0x31")]((t=>this[Ba("0x11")](t)))}[Ba("0x2")](t,e,n,o,s,r){const i=this[Ba("0x28")][Ba("0x18")].get(Ba("0x7"));this[Ba("0x28")][Ba("0x2a")].enqueueChange(r[Ba("0x17")],(()=>{for(const t of e)if(this[Ba("0xa")](t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0x20")](o);void 0!==n&&(e[o]=n)}s(r),i[Ba("0x29")](t,{commandParams:[e]},[],o)}}))}[Ba("0x5")](t,e,n){const o=e[0][Ba("0x1e")][Ba("0x1")],s=n[Ba("0xc")][0];this[Ba("0x28")][Ba("0x2a")].change((e=>{for(const n of t)void 0!==s[n]?e[Ba("0x34")](n,s[n],o):e[Ba("0x2d")](n,o)}))}[Ba("0x11")](t){if(t[Ba("0x1f")])switch(t[Ba("0xf")]){case Ba("0x27"):return{type:"format",content:Yo(this.editor[Ba("0x30")],Ba("0x15"))};case"tableCellProperties":return{type:Ba("0x3"),content:Yo(this[Ba("0x28")].locale,Ba("0x1d"))}}}[Ba("0xa")](t,e){const n=this[Ba("0x28")][Ba("0x18")][Ba("0x1c")](Ba("0x7"));for(const o of n[Ba("0x37")]({skipNotAttached:!0})){const n=o[Ba("0x33")]();if(o[Ba("0xf")]===e&&n===t)return o}return null}}const Ua=["track-changes-user-not-found","createPositionBefore","pluginName","isIntersectingWithRange","execute","acceptAllSuggestions","upcast","lowest","_saved","reconvertMarker","error-saving-suggestion-data-suggestion-discarded","isEqual","highest","change:activeMarkers","change","getSuggestion","document","suggestionLoaded","markMultiRangeInsertion","_enabledCommands","isTouching","addCommentThread","markerNameToElements","_breakSuggestionMarker","open","isNextTo","discardSuggestion","data","containsRange","insertion:discard","addMarker:suggestion","isBefore","stopListening","includes","conversion","discardSelectedSuggestions","removed","writer","track-changes-suggestion-not-found","author","deletion:","join","isObject","next","config","track-changes-suggestion-data-mismatch","attributes","return","oldRange","addMarker:suggestion:formatBlock","default","multi","_splitMarkerName","getNearestSelectionRange","registerPostFixer","_getAuthorFromId","removeMarker","get","_customCallbacks","length","nodeBefore","suggestionChanged","type","some","markerName","_suggestionFactory","_addSuggestionMarker","isLocal","consume","acceptSelectedSuggestions","editing","markDeletion","addClass","_handleNewSuggestionMarker","commandName","getShiftedBy","from","PendingActions","low","ck-suggestion-marker-formatBlock","hasCommentThread","CommentsRepository","createPositionAfter","data-suggestion","isAtEnd","_mergeNestedSuggestions","filter","adapter","locale","listenTo","after","containsRangeInObject","item","size","formatInline:accept","splitPosition","track-changes-adapter-missing-getsuggestion","insertContent","$graveyard","split","previous","formatInline:chain","markerToData","rejected","dataDowncast","substr","getFirstMarker","_onDiscard","getMarkers","getRange","parent","getDifference","howMany","name","addMarkerName","addHighlight","markerToHighlight","markMultiRangeDeletion","never","forceDefaultExecution","consumable","setSelection","set","accepted","insertion:chain","for","remove","map","_setSuggestionData","elementEnd","registerCustomCallback","TrackChangesEditing","requires","every","getWalker","insertion:","change:data","_findSuggestions","widget","addUser","unbindElementFromMarkerName","_model","update:suggestion","isAfter","containsItem","hasComments","showSuggestionHighlights","_refreshSuggestionsChain","isInsideObject","markInlineFormat","formatInline:","sort","formatGroupId","getLastMatchingPosition","isCollapsed","getRanges","getCommentThread","activeMarkers","ck-suggestion-marker--active","getMultiRangeId","formatInline:join","head","removeAttribute","getAttribute","isMultiRange","deletion:join","_suggestionState","ck-suggestion-marker","_trackFormatChanges","insert","createRangeIn","marker-count","_removeSuggestion","then","deleteContent","markMultiRangeBlockFormat","getChangedMarkers","getCustomProperty","end","removeClass","trackChanges.trackFormatChanges","mapper","root","toJSON","detach","_updateSuggestionData","fire","createRange","multipleBlocks","subType","_joinWithAdjacentSuggestions","collaboration.channelId","markerReady","options","acceptSuggestion","Users","selection","createSelection","getUser","rethrowUnexpectedError","accept","getSuggestionCallback","add","catch","removeMarkers","isBlock","fromCharCode","clone","ck-suggestion-marker-","resolve","hasSuggestion","differ","markInsertion","addMarker","addRange","_joinSuggestions","ready","_commentsRepository","isUndo","documentSelection","enqueueChange","suggestion","high","newRange","trackChanges.mergeNestedSuggestions","elementStart","fetchCommentThread","getSuggestions","editor","normal","isRemovable","buildSuggestion","batch","position","markers","isOwn","start","_createSuggestion","_checkSuggestionCorrectness","addSuggestion","commentThread","skipNestingCheck","authoredAt","_getSuggestionData","move","_adapter","suggestion-type","formatBlock:","suggestionUnloaded","editingDowncast","stop","before","isInContent","createdAt","deletion","notReady","commands","define","getIntersection","dataReady","updateSuggestion","nodeAfter","enableCommand","originalSuggestionId","_getExternalAuthor","createPositionAt","_rangeIsInLocalUserInsertion","always","authorName","discardAllSuggestions","isLimit","markBlockFormat","has","_addThreadToSuggestion","discard","creator","model","trackChangesCommand","plugins","suggestion:","push","insertion","getAllAdjacentSuggestions","element","formatInline","PENDING_ACTION_SUGGESTION","_editor","_cutOutSuggestionMarker","toViewElement","track-changes-adapter-already-set","deletion:discard","formatBlock","updateMarker","_isForcedDefaultExecutionBlock","$textProxy","containerElement","targetPosition","insertion:accept","init","_registerDefaultCallbacks","clear","_setSuggestionRange","dataToMarker","addSuggestionData","values","getFirstRange","trackChanges","_defaultCallbacks","setAttribute","backward","schema","delete","_suggestions","range","rootName","@external","value","forward"];var Ga,Ha;Ga=Ua,Ha=103,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Va extends t.Plugin{static get[za("0x1d")](){return["CommentsRepository",r.Users,t.PendingActions,cs,Cs,Rs,ws,Bs,Vs,Js,er,Oa,xr,ur,br,yr,Lr,Pr,Gr,Kr,Qr,ni,xi,ui,pi,Ci,Ri,Oi,ji,Vi,$i,tx,ix,ux,px,yx,Sx,wx,jx,Vx,Ia,Qx,sa,ma,ja,ca,Ea,ka]}static get[za("0xd9")](){return za("0x1c")}constructor(t){function e(t){return t[za("0x18")]((t=>String[za("0x67")](t)))[za("0x100")]("")}super(t),this.set(za("0x36"),[]),this.on(za("0xe4"),((e,n,o,s)=>{this[za("0x26")][za("0xe5")]((()=>{for(const e of[...s,...o])this._model[za("0x83")].has(e)&&t[za("0x11d")][za("0xe0")](e)}))})),this._descriptionFactory=new ss(this[za("0x7d")][za("0xad")][za("0xcf")],this[za("0x7d")][za("0x12f")]),this[za("0x8e")]=null,this[za("0x118")]=new Wa(this[za("0x7d")]),this[za("0xd1")]=new Map,this._commentsRepository=t[za("0xaf")][za("0x110")](za("0x128")),this[za("0xea")]=new Set,this[za("0x26")]=this[za("0x7d")][za("0xad")],this[za("0x3f")]=new WeakMap,this[za("0xbe")]=!1,t[za("0x103")][za("0x9a")]("trackChanges.trackFormatChanges",za("0x109")),this[za("0x41")]=t[za("0x103")].get(za("0x4d")),t.config[za("0x9a")](za("0x79"),!0),this[za("0x12c")]=t[za("0x103")].get(za("0x79")),this.trackChangesCommand=new u(t,this._enabledCommands),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,49,50])}[za("0xc3")](){const t=this.editor;t[za("0xf9")][za("0x16")]("editingDowncast")[za("0xd")]({model:za("0x76"),view:t=>{const{id:e,type:n}=this[za("0x10b")](t[za("0x117")]),o=[za("0x40"),za("0x69")+n];let s=3e3;return this.activeMarkers[za("0xf8")](t[za("0x117")])&&(o[za("0xb1")](za("0x37")),s=3010),za("0x97")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[za("0xf9")].for(za("0x1"))[za("0x63")]((e=>{e.on(za("0xf5"),((e,n,o)=>{if(!o.options[za("0x2b")])return;const s=n[za("0x133")];if(!s)return;const r=o.mapper[za("0xb9")](s);t[za("0xad")][za("0xcf")][za("0x101")](s)&&r&&!r[za("0x4a")](za("0x23"))&&r.is(za("0xc0"))&&(0,x.toWidget)(r,o[za("0xfc")])}),{priority:za("0x77")})})),t[za("0xf9")][za("0x16")](za("0x1"))[za("0xd")]({model:za("0x76"),view:(t,e)=>{if(!e[za("0x5a")][za("0x2b")])return null;const{type:n}=this[za("0x10b")](t[za("0x117")]);return{classes:[za("0x40"),za("0x69")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[za("0x133")])return;if(o[za("0x133")].is(za("0x5d")))return void s[za("0x11")].consume(o[za("0x133")],n[za("0xa")]);const r=s[za("0x4e")][za("0xb9")](o[za("0x133")]);if(!o[za("0x133")].is("element")||!t[za("0xad")].schema[za("0x66")](o.item)||r[za("0x4a")](za("0xc")))return;const{id:i}=this[za("0x10b")](o.markerName);s[za("0xfc")][za("0x11f")]([za("0x40"),za("0x126")],r),s[za("0xfc")][za("0xcd")](za("0x12a"),i,r),s[za("0x4e")].bindElementToMarker(r,o[za("0x117")]),e&&(this[za("0x36")][za("0xf8")](o[za("0x117")])?s[za("0xfc")][za("0x11f")](za("0x37"),r):s[za("0xfc")][za("0x4c")](za("0x37"),r));for(const e of t.model[za("0x43")](o[za("0x133")]).getItems())s[za("0x11")][za("0x11b")](e,n[za("0xa")]);s[za("0x11")][za("0x11b")](o[za("0x133")],n.name)};t[za("0xf9")].for(za("0x1"))[za("0x63")]((t=>{t.on(za("0x108"),((t,e,o)=>{o[za("0x5a")][za("0x2b")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:za("0xe3")})})),t[za("0xf9")].for("dataDowncast")[za("0x13d")]({model:za("0x76"),view:(t,e)=>e.options[za("0x2b")]?null:{group:za("0x76"),name:t[za("0x2")](11)}}),t[za("0xf9")][za("0x16")](za("0xdd")).elementToElement({view:{name:za("0x76"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=za("0xb0")+t.getAttribute(za("0x8f"))+":"+t[za("0x3c")]("id");return t[za("0x3c")](za("0x44"))&&(n+=":"+t[za("0x3c")](za("0x44"))),e.createElement("$marker",{"data-name":n})}}),t[za("0xf9")][za("0x16")](za("0xdd"))[za("0xc7")]({view:za("0x76")}),t[za("0xf9")].for(za("0x92"))[za("0x63")]((t=>{t.on(za("0x108"),n(),{priority:za("0x77")})})),t[za("0xf9")][za("0x16")](za("0x92")).add((t=>{t.on("removeMarker:suggestion:formatBlock",((t,e,n)=>{const o=n.mapper[za("0xed")](e[za("0x117")]);if(o)for(const t of o)t.getCustomProperty(za("0xc"))||(n.writer[za("0x4c")]([za("0x40"),za("0x126"),za("0x37")],t),n[za("0xfc")][za("0x3b")](za("0x12a"),t),n[za("0x4e")][za("0x25")](t,e.markerName))}),{priority:za("0x77")})})),t.model.document[za("0x10d")]((e=>{let n=!1;const o=Array[za("0x123")](t[za("0xad")][za("0xe7")][za("0x6c")][za("0x49")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this._splitMarkerName(x);if(za("0x76")!==o)continue;const d=this[za("0xd1")][za("0x110")](l);if(null!=a[za("0x78")])if(za("0xb5")==c&&(n=n||Xa(a.newRange,x,e,t.model.schema)),a.newRange[za("0x33")]||za("0x139")==a.newRange[za("0x4f")].rootName||za("0xbc")==c&&!Ja(a.newRange)||"deletion"==c&&(qa(i=a[za("0x78")])||(r=i)[za("0x85")][za("0x7")]==r[za("0x4b")][za("0x113")]&&r[za("0x85")][za("0x12b")]))e[za("0x10f")](x),n=!0;else{if(!d||!d.isInContent)continue;s[za("0x63")](d)}}var r,i;return s[za("0x134")]>0&&(n=!!this[za("0x57")](s)||n),n})),t.model[za("0xe7")][za("0x10d")]((e=>{let n=!1;for(const o of t.model[za("0xe7")][za("0x6c")].getChanges()){if(za("0x42")!=o[za("0x115")])continue;const s=o[za("0x82")][za("0x122")](o[za("0x112")]);if(s[za("0x12b")])for(const r of this._suggestions[za("0xc9")]()){if(r[za("0x3d")]||!r.isInContent)continue;if("formatBlock"!=r[za("0x115")])continue;const i=r[za("0xca")]();if(i[za("0x85")][za("0x7")]!=i.end[za("0x7")]&&i.end[za("0xe2")](o[za("0x82")])){const o=t.model[za("0x54")](i.start,s);e[za("0xbd")](r.getFirstMarker(),{range:o}),n=!0}}}return n})),t[za("0xad")][za("0x83")].on(za("0x27"),((t,e,n)=>{if(null==n){const{id:t}=this[za("0x10b")](e[za("0xa")]),n=this[za("0xd1")][za("0x110")](t);n&&n[za("0xb")](e.name)}})),t[za("0xad")].document.on(za("0x21"),(()=>{const e=Array[za("0x123")](t[za("0xad")][za("0xe7")][za("0x6c")][za("0x49")]())[za("0x12d")]((t=>"suggestion"===this._splitMarkerName(t[za("0xa")]).group));if(0===e[za("0x112")])return;e[za("0x30")](((t,e)=>{const n=t[za("0xf2")][za("0x107")],o=e[za("0xf2")].oldRange;return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[za("0x85")][za("0xf6")](o[za("0x85")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[za("0x10b")](t);if(null===s[za("0x107")]){const e=this[za("0x120")](t);o.add(e)}else{const t=this[za("0xd1")][za("0x110")](e);null!==s.newRange||t[za("0x95")]?(n.add(t[za("0x3a")]),o[za("0x63")](t)):this[za("0x45")](t)}}o[za("0x134")]>0&&this._refreshSuggestionsChain(o);for(const t of n)this[za("0x53")](za("0x114"),t)})),t[za("0xad")].on("applyOperation",((e,n)=>{const o=n[0];if(!this[za("0xd1")][za("0x134")])return;if(!o.isDocumentOperation)return;if(o[za("0x81")][za("0x73")]||!o[za("0x81")][za("0x11a")])return;let s,r;switch(o[za("0x115")]){case za("0x42"):s=t[za("0xad")].createPositionAt(o.position),r=s[za("0x122")](o[za("0x9")]);break;case"split":s=t[za("0xad")][za("0xa2")](o[za("0x136")]),r=t.model[za("0xa2")](o.moveTargetPosition);break;case za("0x8d"):s=t.model[za("0xa2")](o[za("0xc1")]),r=s.getShiftedBy(o[za("0x9")]);break;default:return}const i=t.model[za("0x54")](s,r);t[za("0xad")][za("0xe5")]((()=>{for(const{suggestion:t,meta:e}of this[za("0x22")](i)){if(t[za("0x3d")])continue;if(za("0xb5")==t[za("0x115")])continue;const n=t[za("0xf2")]&&t[za("0xf2")][za("0x55")];(za("0xbc")!=t.type||"split"==o.type&&!n)&&(e.containsRangeInObject||"insertion"==t[za("0x115")]&&e[za("0x84")]||t.getFirstRange()[za("0xf3")](i)&&this[za("0xee")](t,s,r))}}))}),{priority:za("0xde")}),t[za("0xad")].on(za("0x47"),((e,n)=>{const o=n[0],s=n[1];if(s&&s[za("0x10")])return;if(this._isForcedDefaultExecutionBlock)return;if(!this[za("0xae")][za("0xd5")])return;if(o[za("0x33")])return;const r=t[za("0xad")][za("0xcf")],{start:i,end:x}=o.getFirstRange(),a=i[za("0x9e")]&&r[za("0xa7")](i[za("0x9e")])?null:r[za("0x10c")](i,za("0xd6")),c=x.nodeBefore&&r[za("0xa7")](x[za("0x113")])?null:r.getNearestSelectionRange(x,za("0xce")),l=t[za("0xad")][za("0x54")](a?a[za("0x85")]:i,c?c[za("0x4b")]:x);t.model[za("0xe5")]((e=>{this.markDeletion(l);const n=t[za("0xad")][za("0xcf")][za("0x10c")](l.start);o.is(za("0x74"))?e[za("0x12")](n):o.setTo(n)})),e[za("0x93")]()}),{priority:e.priorities[za("0x7e")]+10}),t.model.on(za("0x138"),((e,n)=>{const o=n[n[za("0x112")]-1];o&&o[za("0x10")]||this._isForcedDefaultExecutionBlock||this[za("0xae")][za("0xd5")]&&(t.model[za("0xe5")]((()=>{let o=t[za("0xad")][za("0x138")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[za("0x106")]=o[za("0x68")]();const s=o[za("0x4b")][za("0x113")],r=t[za("0xad")].schema;s&&r[za("0x66")](s)&&!r[za("0x101")](s)&&(o=t[za("0xad")][za("0x54")](o.start,t.model[za("0xa2")](s,za("0x4b")))),this[za("0x6d")](o)})),e[za("0x93")]())}),{priority:za("0x77")}),this[za("0x7d")][za("0x99")][za("0x63")](za("0xcb"),this[za("0xae")]),this[za("0x9f")](za("0xcb"));const o=new p(t,this._suggestions);t[za("0x99")].add(za("0x5b"),o),this[za("0x9f")]("acceptSuggestion");const s=new C(t,this[za("0xd1")]);t[za("0x99")].add(za("0xf1"),s),this[za("0x9f")]("discardSuggestion"),t.commands[za("0x63")](za("0xdc"),new F(t,o,this[za("0xd1")])),this[za("0x9f")](za("0xdc")),t[za("0x99")][za("0x63")]("discardAllSuggestions",new F(t,s,this[za("0xd1")])),this[za("0x9f")](za("0xa6")),t.commands[za("0x63")]("acceptSelectedSuggestions",new U(t,o,this._suggestions)),this[za("0x9f")](za("0x11c")),t.commands[za("0x63")](za("0xfa"),new U(t,s,this[za("0xd1")])),this.enableCommand(za("0xfa"));const r=t.plugins.get(za("0x128"));this[za("0x130")](r,"addComment",((t,{threadId:e})=>{const n=this[za("0xd1")].get(e);n&&n[za("0x89")]&&1===n[za("0x89")][za("0x112")]&&this[za("0x52")](e,{hasComments:!0})}),{priority:za("0x125")}),this.listenTo(r,"removeComment",((t,{threadId:e})=>{const n=this[za("0xd1")][za("0x110")](e);n&&n[za("0x89")]&&!n[za("0x89")].length&&this[za("0x52")](e,{hasComments:!1})}),{priority:za("0x125")})}set[za("0x12e")](t){if(this[za("0x8e")])throw new e.CKEditorError(za("0xba"),this);this[za("0x8e")]=t}get adapter(){return this[za("0x8e")]}[za("0x7c")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[za("0xd1")][za("0xc9")]())t&&!e[za("0x95")]||n[za("0xb1")](e);return e?n[za("0x18")]((t=>t[za("0x50")]())):n}[za("0xe6")](t){const n=this[za("0xd1")][za("0x110")](t);if(!n)throw new e.CKEditorError(za("0xfd"),this);return n}[za("0x6b")](t){return this[za("0xd1")][za("0xa9")](t)}addSuggestionData(t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[za("0x115")][za("0x13a")](":"),i=this[za("0xd1")][za("0x110")](n)||this[za("0x86")](s,r,n,e,o);if(this[za("0xaa")](i),this._checkSuggestionCorrectness(i,s,r||null,e),i.createdAt=t[za("0x96")],o&&o[za("0xd4")]){const t=o[za("0xd4")],e=this[za("0xa1")](t[za("0xa5")]);i[za("0x8b")]=t.createdAt,i[za("0xfe")]=e,i.isExternal=!0}else i[za("0x8b")]=t[za("0x96")];switch(t[za("0xf2")]&&(i[za("0xf2")]=t[za("0xf2")]),t[za("0x105")]&&(i[za("0x105")]=t.attributes),this._adapter&&this._adapter.addSuggestion||(i[za("0xdf")]=!0),this._suggestionState.get(i)){case"notReady":this[za("0x3f")].set(i,za("0x9c"));break;case za("0x59"):i[za("0x95")]?(this[za("0x3f")][za("0x13")](i,za("0x71")),this[za("0x53")](za("0xe8"),i)):this[za("0x3f")][za("0x13")](i,za("0xfb"))}return i}[za("0x5b")](t){this[za("0x10")]((()=>{this[za("0x7d")].model.change((()=>{for(const e of t[za("0xb3")]())e[za("0x61")]()}))}))}[za("0xf1")](t){this.forceDefaultExecution((()=>{this[za("0x7d")][za("0xad")].change((()=>{for(const e of t[za("0xb3")]())e.discard()}))}))}[za("0x9f")](t,n){const o=this[za("0x7d")][za("0x99")].get(t);if(!o)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});this[za("0xea")][za("0x63")](o),n&&o.on(za("0xdb"),((t,e)=>{this[za("0xae")][za("0xd5")]&&(this[za("0xbe")]||e[za("0x112")]>0&&e[e.length-1]&&e[e[za("0x112")]-1].forceDefaultExecution||(n(((...t)=>o[za("0xdb")](...t,{forceDefaultExecution:!0})),...e),t.stop()))}),{priority:za("0x77")})}forceDefaultExecution(t){let n,o;const s=this[za("0xbe")];this[za("0xbe")]=!0;try{n=t()}catch(t){o=t}return s||(this[za("0xbe")]=!1),o&&e.CKEditorError[za("0x60")](o,this),n}markInsertion(t,n=null,o={}){if(t[za("0x33")])return null;const s=this.editor[za("0xaf")].get("Users").me;for(const{suggestion:e,meta:o}of this._findSuggestions(t,za("0xb2")))if(o[za("0x84")]){if(!o[za("0xf0")]){if(!this[za("0x12c")]&&o[za("0x132")])continue;return e}if(n==e[za("0x56")]){const n=e.getFirstRange();return n.start.isEqual(t[za("0x4b")])?this[za("0xc6")](e,this[za("0x26")][za("0x54")](t[za("0x85")],n[za("0x4b")])):this[za("0xc6")](e,this[za("0x26")][za("0x54")](n[za("0x85")],t[za("0x4b")])),e}}const r=(0,e.uid)(),i=s.id,x=n?"insertion:"+n:za("0xb2"),a=this[za("0x19")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this._addSuggestionMarker(x,r,i,t),a}[za("0xe9")](t,n=za("0x10a"),o={}){const s=this[za("0x7d")][za("0xaf")][za("0x110")]("Users").me,r=this._suggestionFactory[za("0x62")](za("0xb2"),n,"join");for(const e of this[za("0x7c")]())if(e[za("0xfe")].id==s.id&&"insertion"==e.type&&e.subType==n&&(r(e.getRanges(),t)||r(t,e.getRanges()))){for(const n of t)e[za("0x6f")](n);return e}if(this[za("0x12c")])for(const e of t)for(const{suggestion:n,meta:o}of this[za("0x22")](e,za("0xb2"))){if(!o[za("0x84")])continue;let e=!0;for(const o of n[za("0x34")]())for(const n of t)if(!o[za("0xf3")](n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=s.id,a=za("0x20")+n,c=this._setSuggestionData({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this._addSuggestionMarker(a,i,x,e,Zo[za("0x38")]());return c}[za("0x2e")](t,n,o=null,s={}){if(o=o||$a(n),t[za("0x33")])return null;if("never"===this._trackFormatChanges){const e=this._suggestionFactory[za("0x62")]("formatInline",o,"accept");return this.forceDefaultExecution((()=>e([t],n,s))),null}const r=this[za("0x7d")].plugins[za("0x110")](za("0x5c")).me,i=[];if(za("0xa4")!==this._trackFormatChanges)for(const{suggestion:e,meta:n}of this[za("0x22")](t,za("0xb2")))n[za("0x84")]&&!n[za("0x2d")]&&i[za("0xb1")](...e[za("0x34")]());const x=function(t,e){const n=[];for(const o of e){const e=t.getIntersection(o);e&&n[za("0xb1")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n.length;){const o=n[e][za("0x8")](t);n.splice(e,1,...o),e+=o.length}}return n}(t,i);x[za("0x112")]&&this[za("0x26")].change((()=>{for(const t of x){const e=this[za("0x118")][za("0x62")](za("0xb5"),o,za("0x61"));this[za("0x10")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[za("0x85")],a=t[za("0x4b")];for(const{suggestion:e,meta:n}of this[za("0x22")](t,"formatInline")){if(!n[za("0x84")])continue;if(e.subType!=o)continue;const s=e.getFirstRange();if(s.containsRange(t,!0))return null;x=x[za("0xf6")](s[za("0x85")])?x:s[za("0x85")],a=a[za("0x28")](s[za("0x4b")])?a:s[za("0x4b")],i?s[za("0x85")][za("0xf6")](i[za("0xca")]()[za("0x85")])?(i[za("0x65")](),i=e):e[za("0x65")]():i=e}const c=this._model[za("0x54")](x,a);if(i)this[za("0xc6")](i,c);else{const t=(0,e.uid)(),i=r.id;this[za("0x19")]({id:t,type:za("0x2f")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[za("0x119")](za("0x2f")+o,t,i,c)}}return null}[za("0xa8")](t,n,o=[],s=null,r={}){n.formatGroupId||(n[za("0x31")]=n[za("0x121")]),n[za("0x55")]=t.is("range"),s=s||$a(n);const i=o[za("0x18")]((t=>Qa(t,this._model))),x=t.is(za("0xd2"))?t:Qa(t,this[za("0x26")]);if(za("0xf")===this[za("0x41")]){const t=this._suggestionFactory[za("0x62")](za("0xbc"),s,"accept");return this[za("0x10")]((()=>t([x],n,r))),null}i.push(x);let a=!0;for(const t of i)if(!this[za("0xa3")](t)){a=!1;break}if(a&&za("0xa4")!==this._trackFormatChanges){const t=this[za("0x118")][za("0x62")]("formatBlock",s,za("0x61"));return this[za("0x10")]((()=>t([x],n,r))),null}let c=null,l=x[za("0x85")],d=x.end;for(const{suggestion:t,meta:e}of this[za("0x22")](x,"formatBlock")){if(!e.isOwn||e[za("0xf0")]||e[za("0x132")]||e[za("0x2d")])continue;if(t[za("0xf2")].formatGroupId!=n[za("0x31")])continue;const o=t.getFirstRange();if(t[za("0x56")]==s){if(o[za("0xf3")](x,!0))return null;l=l[za("0xf6")](o[za("0x85")])?l:o[za("0x85")],d=d[za("0x28")](o.end)?d:o[za("0x4b")],c?o[za("0x85")][za("0xf6")](c.getFirstRange()[za("0x85")])?(c[za("0x65")](),c=t):t.removeMarkers():c=t}else{const e=x[za("0x9b")](o);this._cutOutSuggestionMarker(t,e)}}const u=this.editor.plugins[za("0x110")](za("0x5c")).me,g=(0,e.uid)(),m=u.id;if(c)return this._setSuggestionRange(c,this[za("0x26")].createRange(l,d)),c;{const t=this[za("0x19")]({id:g,type:za("0x90")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this._addSuggestionMarker(za("0x90")+s,g,m,this[za("0x26")][za("0x54")](l,d)),t}}[za("0x48")](t,n,o=[],s=null,r={}){n.formatGroupId||(n[za("0x31")]=n[za("0x121")]);const i=t[0];n[za("0x55")]=i.is("range"),s=s||$a(n);const x=o.map((t=>Qa(t,this[za("0x26")]))),a=i.is(za("0xd2"))?t:t.map((t=>Qa(t,this[za("0x26")])));if(za("0xf")===this._trackFormatChanges){const t=this[za("0x118")][za("0x62")](za("0xbc"),s,za("0x61"));return this[za("0x10")]((()=>t(a,n,r))),null}x[za("0xb1")](...a);let c=!0;for(const t of x)if(!this[za("0xa3")](t)){c=!1;break}if(c&&za("0xa4")!==this[za("0x41")]){const t=this[za("0x118")][za("0x62")](za("0xbc"),s,za("0x61"));return this.forceDefaultExecution((()=>t(a,n,r))),null}const l=this[za("0x7d")][za("0xaf")][za("0x110")](za("0x5c")).me;for(const t of this[za("0x7c")]()){if(t[za("0xfe")].id!=l.id)continue;if(za("0xbc")!=t[za("0x115")]||t[za("0xf2")][za("0x31")]!=n[za("0x31")])continue;const e=t[za("0x56")]==s;for(let n=0;n<a[za("0x112")];n++){const o=a[n];for(const s of t[za("0x5")]()){const r=s[za("0x6")]();if(o[za("0xe2")](r)){e?(a.splice(n,1),n--):t.removeMarker(s[za("0xa")]);break}}}}if(0==a[za("0x112")])return null;const d=this[za("0x118")][za("0x62")](za("0xbc"),s,za("0x100"));for(const t of this.getSuggestions())if(t.author.id==l.id&&za("0xbc")==t.type&&t[za("0xf2")][za("0x31")]==n[za("0x31")]&&t[za("0x56")]==s&&(d(t[za("0x34")](),a)||d(a,t[za("0x34")]()))){for(const e of a)t[za("0x6f")](e);return t}const u=(0,e.uid)(),g=l.id,m=za("0x90")+s,f=this[za("0x19")]({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[za("0x119")](m,u,g,t,Zo.getMultiRangeId());return f}[za("0x11e")](t,n=null,o={}){if(t[za("0x33")])return null;const s=this[za("0x7d")][za("0xaf")][za("0x110")](za("0x5c")).me,r=new i.LiveRange(t[za("0x85")],t[za("0x4b")]);for(const{suggestion:t,meta:e}of this._findSuggestions(r,za("0xb2")))if(e[za("0x84")]&&!e[za("0xf0")])if(t.isMultiRange){const e=t[za("0x34")]()[za("0x12d")]((t=>za("0x139")!=t[za("0x4f")][za("0xd3")]));if(e[za("0x1e")]((t=>r.containsRange(t,!0)))&&t[za("0xab")](),e[za("0x116")]((t=>t[za("0xf3")](r,!0)))){const t=this[za("0x118")][za("0x62")](za("0x97"),n,za("0x61"));return this[za("0x10")]((()=>t([r],null,o))),null}}else{const e=r[za("0x9b")](t[za("0xca")]());null!==e&&t[za("0x4")]([e],null,o)}if(r[za("0x51")](),r[za("0x33")]||"$graveyard"==r.root.rootName)return null;let x=null,a=r.start,c=r[za("0x4b")];for(const{suggestion:t,meta:e}of this[za("0x22")](r,za("0x97")))if(e[za("0x84")])if(t[za("0x3d")]&&this[za("0x12c")]){let e=!0;for(const n of t[za("0x34")]()){if(n[za("0xf3")](r,!0))return t;r[za("0xf3")](n)||(e=!1)}e&&t[za("0xab")]()}else{const n=t[za("0xca")]();if(n[za("0xf3")](r,!0)){if(!this[za("0x12c")]&&e[za("0x132")])continue;return t}a=a[za("0xf6")](n[za("0x85")])?a:n[za("0x85")],c=c[za("0x28")](n[za("0x4b")])?c:n[za("0x4b")],x?n.start[za("0xf6")](x[za("0xca")]().start)?(x[za("0x65")](),x=t):t.removeMarkers():x=t}if(x)return this[za("0xc6")](x,this[za("0x26")][za("0x54")](a,c)),x;{const t=(0,e.uid)(),r=this[za("0x26")].createRange(a,c),i=s.id,x=n?za("0xff")+n:za("0x97"),l=this[za("0x19")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x119")](x,t,i,r),l}}[za("0xe")](t,n="multi",o={}){const s=this.editor[za("0xaf")][za("0x110")](za("0x5c")).me,r=t[za("0x18")]((t=>new i.LiveRange(t[za("0x85")],t.end))),x=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this[za("0x22")](t,"insertion"))n[za("0x84")]&&!n[za("0xf0")]&&x.add(e);for(const e of x)if(e.isMultiRange){const s=e[za("0x34")]();if((!e.attributes||!e[za("0x105")][za("0x8a")])&&s[za("0x1e")]((t=>r[za("0x116")]((e=>e[za("0xf3")](t,!0)))))&&e[za("0xab")](),r[za("0x1e")]((t=>s[za("0x116")]((e=>e[za("0xf3")](t,!0)))))){const e=this[za("0x118")][za("0x62")](za("0x97"),n,za("0x61"));return this[za("0x10")]((()=>e(t,null,o))),null}}else{const t=e.getFirstRange();if(r.some((e=>e[za("0xf3")](t,!0)))&&e[za("0xab")](),r[za("0x1e")]((e=>t.containsRange(e,!0)))){const t=this[za("0x118")][za("0x62")](za("0x97"),n,za("0x61"));return this[za("0x10")]((()=>t(r,null,o))),null}}const a=this[za("0x118")][za("0x62")]("deletion",n,za("0x100"));let c=null;for(const t of this[za("0x7c")]())if(t[za("0xfe")].id==s.id&&t.isInContent&&za("0x97")==t.type&&t[za("0x56")]==n&&(a(t.getRanges(),r)||a(r,t[za("0x34")]())))if(c){if(t[za("0x89")]&&t[za("0x89")].length)continue;for(const e of t.getRanges())c[za("0xda")](e)||c[za("0x6f")](e);t.removeMarkers()}else{c=t;for(const e of r)t[za("0xda")](e)||t[za("0x6f")](e)}if(c)return c;x[za("0xc5")]();for(const t of r)for(const{suggestion:e,meta:n}of this._findSuggestions(t,"deletion"))n[za("0x84")]&&x[za("0x63")](e);for(const t of x){const e=t.getRanges();if((!o||!o.skipNestingCheck)&&r[za("0x1e")]((t=>e[za("0x116")]((e=>e[za("0xf3")](t,!0))))))return t;(!t.attributes||!t.attributes[za("0x8a")])&&e[za("0x1e")]((t=>r[za("0x116")]((e=>e.containsRange(t,!0)))))&&t.discard()}const l=(0,e.uid)(),d=s.id,u=za("0xff")+n,g=this[za("0x19")]({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t[za("0x51")](),t[za("0x33")]||za("0x139")==t.root[za("0xd3")]||this[za("0x119")](u,l,d,t,Zo[za("0x38")]());return g}[za("0xc6")](t,e){const n=t[za("0x3")]();this[za("0x26")][za("0xe5")]((t=>{t.updateMarker(n,{range:e})}))}[za("0xaa")](t){const e=t.id,n=this[za("0x7d")].config.get(za("0x58"));this[za("0x72")][za("0x127")](e)||this[za("0x72")][za("0xec")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[za("0x72")][za("0x35")](e);o.unbind("isRemovable"),o[za("0x7f")]=!1,t[za("0x89")]=o}[za("0x87")](t,n,o,s){if(t[za("0x115")]!=n||t[za("0x56")]!=o||t[za("0xac")].id!=s)throw this[za("0x7d")].enableReadOnlyMode("track-changes-suggestion-data-mismatch"),new e.CKEditorError(za("0x104"),this)}[za("0xb8")](t,n){const o=t[za("0xca")]();if(n[za("0xe2")](o))t[za("0x65")]();else if(o[za("0xf3")](n)){const s=this[za("0x26")][za("0xa2")](n[za("0x85")][za("0x113")],za("0x4b"));this[za("0xc6")](t,this[za("0x26")].createRange(o[za("0x85")],s));const r=(0,e.uid)(),i=t[za("0xac")].id,x=t[za("0x115")]+":"+t[za("0x56")];this[za("0x19")]({id:r,type:x,createdAt:new Date,authorId:i,data:t.data,attributes:t[za("0x105")]});const a=this[za("0x26")][za("0xa2")](n.end[za("0x7")],za("0x131")),c=this[za("0x26")][za("0x54")](a,o[za("0x4b")]);this._addSuggestionMarker(x,r,i,c)}else if(o.containsPosition(n[za("0x85")])){const e=this[za("0x26")].createPositionAt(n[za("0x85")][za("0x113")],za("0x4b"));this._setSuggestionRange(t,this[za("0x26")][za("0x54")](o.start,e))}else{const e=this._model[za("0xa2")](n[za("0x4b")].parent,"after");this[za("0xc6")](t,this._model[za("0x54")](e,o[za("0x4b")]))}}[za("0xa3")](t){for(const{suggestion:e,meta:n}of this[za("0x22")](t,za("0xb2"))){if(!n.isOwn)continue;const o=e[za("0x34")]();for(const e of o)if(!t[za("0x8")](e)[za("0x112")])return!0}return!1}_getAuthorFromId(t){const n=this[za("0x7d")][za("0xaf")][za("0x110")](za("0x5c")).getUser(t);if(!n)throw new e.CKEditorError(za("0xd7"),this);return n}[za("0xa1")](t){const e=this[za("0x7d")].plugins.get(za("0x5c")),n=(0,r.hashObject)("external:"+t);return e[za("0x5f")](n)||e[za("0x24")]({id:n,name:t})}_createSuggestion(t,e,n,o,s){const r=this[za("0x10e")](o),i=this[za("0x118")][za("0x80")](t,e,n,r,s,(t=>this[za("0x52")](n,{attributes:t})));return this.listenTo(i,za("0x61"),(()=>{this[za("0x52")](n,{state:za("0x14")})}),{priority:za("0x77")}),this[za("0x130")](i,za("0xab"),(()=>{this[za("0x52")](n,{state:za("0x0")})}),{priority:za("0x77")}),this[za("0xd1")][za("0x13")](n,i),this[za("0x3f")][za("0x13")](i,za("0x98")),i}_splitMarkerName(t){const e=t[za("0x13a")](":");return{group:e[0],type:e[1],subType:e[za("0x112")]>=5?e[2]:null,id:e[za("0x112")]<5?e[2]:e[3],authorId:e[za("0x112")]<5?e[3]:e[4],markerCount:6==e[za("0x112")]?e[5]:null}}_breakSuggestionMarker(t,n,o){const s=t[za("0xca")](),r=s.start,i=s[za("0x4b")];this._setSuggestionRange(t,this._model[za("0x54")](r,n));const x=(0,e.uid)(),a=t[za("0xac")].id,c=t[za("0x115")]+(t[za("0x56")]?":"+t[za("0x56")]:"");this[za("0x19")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t.attributes,data:t[za("0xf2")]}),za("0xbc")==t[za("0x115")]&&(o=this[za("0x26")][za("0xd8")](o[za("0x7")])),this[za("0x119")](c,x,a,this._model[za("0x54")](o,i))}[za("0x22")](t,e=null){const n=[],o=this[za("0x26")].schema,s=this[za("0x7d")][za("0xaf")][za("0x110")](za("0x5c")).me;for(const r of this[za("0x7c")]())if(r.isInContent&&(!e||r[za("0x115")]==e))for(const e of r[za("0x34")]()){const i=t.start.isEqual(e.end)||t[za("0x4b")][za("0xe2")](e[za("0x85")]);if(i||t.getIntersection(e)){const x=t.containsRange(e)&&Ka(o,e[za("0x85")],t),a=e.containsRange(t)&&Ka(o,t.start,e);n[za("0xb1")]({suggestion:r,meta:{isOwn:s==r[za("0xfe")],isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}_addSuggestionMarker(t,e,n,o,s){this[za("0x26")][za("0xe5")]((r=>{let i=za("0xb0")+t+":"+e+":"+n;s&&(i=i+":"+s),r[za("0x6e")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[za("0x45")](t){const e=t[za("0x13b")],n=t.next;t[za("0x13b")]=null,null!=e&&(e[za("0x102")]=null),t.next=null,null!=n&&(n[za("0x13b")]=null),za("0x71")==this[za("0x3f")][za("0x110")](t)&&(this[za("0x3f")][za("0x13")](t,"removed"),this[za("0x53")](za("0x91"),t,e,n))}[za("0x19")](t){const n=t.id,o=this[za("0xc8")](t);if(this[za("0x8e")]&&this[za("0x8e")][za("0x88")]){const s=this[za("0x7d")][za("0xaf")][za("0x110")](za("0x124")),r=o.hasComments,i=o[za("0x56")]?o.type+":"+o[za("0x56")]:o.type,x=this[za("0x7d")].locale,a=s[za("0x63")](Yo(x,"PENDING_ACTION_SUGGESTION")),c={id:n,type:i,hasComments:r,data:t[za("0xf2")]||null,originalSuggestionId:t[za("0xa0")]||null,attributes:o.attributes};this[za("0x8e")].addSuggestion(c)[za("0x46")]((t=>{o[za("0xdf")]=!0,s[za("0x17")](a),t&&t[za("0x96")]&&(this[za("0xd1")].get(n)[za("0x96")]=t.createdAt)}))[za("0x64")]((t=>{throw(0,e.logWarning)(za("0xe1")),this[za("0x7d")][za("0xad")][za("0x75")]({isUndoable:!1},(()=>{o.discard()})),o[za("0xf7")](),this[za("0xd1")][za("0xd0")](o.id),this[za("0x3f")].delete(o),t}))}return o}_updateSuggestionData(t,e){const n=this[za("0x7d")][za("0xaf")][za("0x110")](za("0x124")),o=this.getSuggestion(t);if(this._adapter&&this[za("0x8e")][za("0x9d")])if(o[za("0xdf")]){const o=n.add(Yo(this[za("0x7d")].locale,za("0xb6")));this._adapter[za("0x9d")](t,e)[za("0x46")]((()=>{n[za("0x17")](o)}))}else o.on("change:_saved",(()=>{this[za("0x52")](t,e)}))}[za("0x8c")](t){if(!this[za("0x8e")]||!this[za("0x8e")][za("0xe6")])throw new e.CKEditorError(za("0x137"),this);return this[za("0x8e")][za("0xe6")](t)}[za("0x120")](t){const{id:e,type:n,subType:o,authorId:s}=this._splitMarkerName(t),r=this[za("0xd1")][za("0x110")](e)||this[za("0x86")](n,o,e,s,{});switch(this._checkSuggestionCorrectness(r,n,o,s),this[za("0x3f")][za("0x110")](r)){case za("0x98"):this[za("0x8c")](e)[za("0x46")]((t=>{let n=Promise[za("0x6a")]();t[za("0x2a")]&&(n=this[za("0x72")][za("0x7b")]({channelId:this[za("0x7d")][za("0x103")][za("0x110")]("collaboration.channelId"),threadId:e})),n.then((()=>{this[za("0xc8")](t)[za("0xdf")]=!0}))})),this[za("0x3f")][za("0x13")](r,za("0x59"));break;case za("0xfb"):this[za("0x52")](e,{state:za("0xef")});case za("0x9c"):this[za("0x3f")][za("0x13")](r,"ready"),this[za("0x53")]("suggestionLoaded",r);break;case za("0x71"):this[za("0x53")](za("0x114"),r)}return r[za("0xb")](t),r}[za("0x2c")](t){const e=Array.from(t)[za("0x12d")]((t=>!t[za("0x3d")])),n=this[za("0x7c")]({skipNotAttached:!0})[za("0x12d")]((t=>!t.isMultiRange)),o=n[za("0x12d")]((e=>!t.has(e))),s=new Map(n[za("0x18")]((t=>[t,this._suggestionFactory.getSuggestionCallback(t.type,t.subType,"chain")]))),r=new Map(n.map((t=>[t,t[za("0xca")]()]))),i=new Set,x=new Set;for(let t=0;t<e[za("0x112")];t++)a(e[t],e,t+1);for(let t=0;t<e[za("0x112")];t++)a(e[t],o,0);for(let t=0;t<e[za("0x112")];t++){const n=e[t];!x[za("0xa9")](n)&&n[za("0x13b")]&&(n[za("0x13b")].next===n&&(n.previous[za("0x102")]=null),n[za("0x13b")]=null),!i.has(n)&&n.next&&(n[za("0x102")].previous===n&&(n[za("0x102")].previous=null),n[za("0x102")]=null)}function a(t,e,n){for(let o=n;o<e[za("0x112")];o++){const n=c(t,e[o]);n&&(n[0][za("0x102")]=n[1],n[1][za("0x13b")]=n[0],i.add(n[0]),x[za("0x63")](n[1]))}}function c(t,e){if(t[za("0xfe")].id!==e[za("0xfe")].id)return null;const n=s[za("0x110")](t)(t,e,r[za("0x110")](t),r.get(e));return n&&s[za("0x110")](e)(t,e,r[za("0x110")](t),r[za("0x110")](e))?n[1].commentThread&&n[1].commentThread[za("0x112")]?null:n:null}}_joinWithAdjacentSuggestions(t){const e=Array.from(t),n=this[za("0x7c")]({skipNotAttached:!0}),o=n[za("0x12d")]((e=>!t[za("0xa9")](e))),s=new Map(e[za("0x18")]((t=>[t,this[za("0x118")][za("0x62")](t.type,t[za("0x56")],za("0x100"))]))),r=new Map(n[za("0x18")]((t=>[t,t[za("0x34")]()])));for(let t=0;t<e[za("0x112")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[za("0x112")];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[za("0x115")]!==e[za("0x115")]||o[za("0xfe")].id!==e[za("0xfe")].id||o[za("0x56")]!==e[za("0x56")])continue;const x=s[za("0x110")](e),a=r[za("0x110")](e),c=r[za("0x110")](o),l=e[za("0x89")]&&e[za("0x89")][za("0x112")],d=o[za("0x89")]&&o[za("0x89")][za("0x112")];if(!l&&x(c,a))return t[za("0x70")](o,e),r.delete(e),!0;if(!d&&x(a,c))return t[za("0x70")](e,o),r.delete(o),!0}return!1}}_joinSuggestions(t,e){if(t[za("0x3d")])for(const n of e[za("0x34")]())t[za("0x6f")](n);else{const n=e[za("0xca")]()[za("0x4b")];this[za("0xc6")](t,this[za("0x26")].createRange(t[za("0xca")]()[za("0x85")],n))}e[za("0x65")]()}}class Wa{constructor(t){this._editor=t,this._model=t[za("0xad")],this._customCallbacks=new Map,this[za("0xcc")]=new Map,this[za("0xc4")]()}[za("0x80")](t,e,n,o,s,r){return new Zo(this[za("0x26")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this.getSuggestionCallback(t,e,za("0x61"))(...n),onDiscard:(...n)=>this[za("0x62")](t,e,"discard")(...n)})}[za("0x1b")](t,e,n,o){const s=t+":"+e+":"+n;this._customCallbacks[za("0x13")](s,o)}[za("0x62")](t,e,n){const o=t+":"+e+":"+n;return this[za("0x111")].get(o)||this._defaultCallbacks[za("0x110")](t+":"+n)}_registerDefaultCallbacks(){const t=()=>{},e=t=>{t[za("0x30")](((t,e)=>t[za("0x85")][za("0xf6")](e[za("0x85")])?1:-1)),this[za("0x26")].change((e=>{for(const n of t){let t;t=n[za("0x4b")][za("0x12b")]&&n.end.parent==n[za("0x85")].nodeAfter?e[za("0x5e")](n.start[za("0x9e")],"on"):e[za("0x5e")](n),this._model[za("0x47")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[za("0x26")][za("0xe5")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[za("0x18")]((t=>(qa(t)&&(t=this[za("0x26")].createRange(t[za("0x4b")])),t)))[za("0x12d")]((t=>za("0x139")!==t.root[za("0xd3")]));if(r[za("0x112")]<1)return;const x=Array.from(this[za("0x26")][za("0xe7")][za("0x5d")][za("0x34")]())[za("0x18")]((t=>i.LiveRange.fromRange(t)));n[za("0x12")](r);for(const t of this[za("0xb7")][za("0x99")].commands())t.refresh();s[za("0xb1")]({forceDefaultExecution:!0}),this[za("0xb7")][za("0xdb")](o,...s);const a=x.filter((t=>za("0x139")!=t.root.rootName));a[za("0x112")]>0&&n.setSelection(a);for(const t of x)t[za("0x51")]()}))},o=(t,e)=>1==t.length&&1==e[za("0x112")]&&t[0][za("0x4b")][za("0xe2")](e[0][za("0x85")]),s=(t,e,n,o)=>Za(t,e,n,o,this[za("0x26")])?[t,e]:Za(e,t,o,n,this[za("0x26")])?[e,t]:null;this._defaultCallbacks.set(za("0xc2"),t),this[za("0xcc")][za("0x13")](za("0xf4"),e),this._defaultCallbacks.set("insertion:join",o),this[za("0xcc")][za("0x13")](za("0x15"),s),this[za("0xcc")][za("0x13")]("deletion:accept",e),this._defaultCallbacks.set(za("0xbb"),t),this[za("0xcc")][za("0x13")](za("0x3e"),o),this[za("0xcc")].set("deletion:chain",s),this[za("0xcc")][za("0x13")](za("0x135"),n),this._defaultCallbacks.set("formatInline:discard",t),this[za("0xcc")][za("0x13")](za("0x39"),o),this[za("0xcc")][za("0x13")](za("0x13c"),t),this[za("0xcc")].set("formatBlock:accept",n),this[za("0xcc")][za("0x13")]("formatBlock:discard",t),this._defaultCallbacks[za("0x13")]("formatBlock:join",o),this[za("0xcc")][za("0x13")]("formatBlock:chain",t)}}function Ka(t,e,n){for(const o of e.parent.getAncestors({includeSelf:!0,parentFirst:!0})){if(o.root==o)return!1;if(!n[za("0x29")](o))return!1;if(t.isObject(o)||t[za("0xa7")](o))return!0}return!1}function qa(t){return t[za("0x4b")][za("0x7")]==t[za("0x85")][za("0x9e")]&&t.end.isAtStart}function Xa(t,e,n,o){const s=t=>!t[za("0x133")].is(za("0xbf"))&&!o[za("0x101")](t[za("0x133")]),r=t[za("0x85")][za("0x32")](s),i=t[za("0x4b")][za("0x32")](s,{direction:"backward"});return!(t.start[za("0xe2")](r)&&t.end[za("0xe2")](i)||(r[za("0xf6")](i)?n[za("0xbd")](e,{range:n.createRange(r,i)}):n[za("0x10f")](e),0))}function $a(t){return(0,r.hashObject)(t)}function Ja(t){const e=t[za("0x85")][za("0x9e")];return e&&e.is(za("0xb4"))}function Qa(t,e){const n=e.schema[za("0x101")](t)||e.schema.isSelectable(t);return e[za("0x54")](e[za("0xa2")](t,za("0x94")),n?e[za("0x129")](t):e[za("0xa2")](t,za("0x4b")))}function Za(t,e,n,o,s){if(n[za("0x4b")].isEqual(o[za("0x85")]))return!0;if(t.type!=e[za("0x115")])return!1;if(!n[za("0x4b")][za("0xeb")](o[za("0x85")]))return!1;const r=s.createRange(n.end,o[za("0x85")])[za("0x1f")]();for(const t of r)if([za("0x7a"),za("0x1a")][za("0xf8")](t.type)&&s[za("0xcf")][za("0xa7")](t[za("0x133")]))return!1;return!0}const Ya=["_pendingAction","execute","plugins","view","getRanges","commands","canEditAt","unbind","listenTo","locale","add","destroy","isDirty","remove","discardSuggestion","canAccept","get","commentThreadController","bind","stopListening","_setPendingAction","_discardCommand","_acceptCommand","isEnabled","_editor","PendingActions","acceptSuggestion","change:isDirty","model","_removePendingAction"];var tc,ec;tc=Ya,ec=473,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.model=e,this[nc("0xa")]=n,this[nc("0x18")]=o,this[nc("0x1")]=t,this._acceptCommand=t[nc("0xc")][nc("0x17")](nc("0x3")),this._discardCommand=t.commands[nc("0x17")](nc("0x15")),this[nc("0xa")][nc("0x19")](nc("0x0")).to(this._acceptCommand,this[nc("0x1c")],((t,e)=>t||e)),this[nc("0xa")][nc("0x19")]("canAccept").to(this[nc("0x1d")],nc("0x0"),(t=>t&&this[nc("0x1")][nc("0x5")][nc("0xd")](e[nc("0xb")]()))),this[nc("0xa")][nc("0x19")]("canDiscard").to(this[nc("0x1c")],nc("0x0"),(t=>t&&this[nc("0x1")][nc("0x5")].canEditAt(e[nc("0xb")]()))),this[nc("0x7")]=null,n[nc("0x13")]&&this[nc("0x1b")](),this[nc("0xf")](n,"acceptSuggestion",(()=>this[nc("0x3")]())),this[nc("0xf")](n,nc("0x15"),(()=>this[nc("0x15")]())),this.listenTo(n,nc("0x4"),(()=>{n[nc("0x13")]?this[nc("0x1b")]():this._removePendingAction()}))}[nc("0x3")](){this._acceptCommand[nc("0x8")](this[nc("0x5")].id)}[nc("0x15")](){this[nc("0x1c")].execute(this[nc("0x5")].id)}[nc("0x12")](){this[nc("0xa")].unbind(nc("0x0")),this.view[nc("0xe")](nc("0x16")),this.view[nc("0xe")]("canDiscard"),this[nc("0x1a")](),this[nc("0x18")][nc("0x12")](),this[nc("0x7")]&&this[nc("0x6")]()}_setPendingAction(){const t=Yo(this[nc("0x1")][nc("0x10")],"PENDING_ACTION_SUGGESTION");this[nc("0x7")]=this[nc("0x1")][nc("0x9")][nc("0x17")](nc("0x2"))[nc("0x11")](t)}[nc("0x6")](){null!==this[nc("0x7")]&&this._editor[nc("0x9")][nc("0x17")](nc("0x2"))[nc("0x14")](this[nc("0x7")]),this[nc("0x7")]=null}}const sc=["locale","destroy","length","value","commentThreadInputView","element","editorConfig","commentThread","commentsListView","setData","commentInputView","isReadOnly","updateComment","isActive","removeComment","cancel","CommentView","_createCommentThreadInputView","authoredAt","showInput","_createCommentViews","_config","descriptionParts","fire","canDiscard","set","canAccept","disableComments","focus","_localUser","delegate","assign","isDirty","_model","addComment","hasDirtyComment","bind"];var rc,ic;rc=sc,ic=449,function(t){for(;--t;)rc.push(rc.shift())}(++ic);const xc=function(t,e){return sc[t-=0]};class ac extends s.View{constructor(t,e,n,o){super(t),this.commentsListView=null,this[xc("0x24")]=null,this[xc("0x14")](xc("0x8"),!1),this[xc("0x14")]("authoredAt",e[xc("0xd")]),this[xc("0x1f")](xc("0xd")).to(e),this.set(xc("0x11"),[]),this.set(xc("0x1b"),!1),this[xc("0x14")]("isEnabled",!1),this[xc("0x14")](xc("0x15"),!1),this.set(xc("0x13"),!1),this[xc("0x1c")]=e,this[xc("0x18")]=n,this._config=o,o[xc("0x16")]?this[xc("0x14")](xc("0x22"),1):this[xc("0xf")]()}focus(){this[xc("0x0")].focus()}[xc("0x21")](){this[xc("0x3")]&&this[xc("0x3")][xc("0x21")](),this[xc("0x24")]&&this[xc("0x24")][xc("0x21")](),super[xc("0x21")]()}_createCommentViews(){const{CommentsListView:t}=this[xc("0x10")];this[xc("0x3")]=new t(this[xc("0x20")],this[xc("0x1c")].commentThread,Object[xc("0x1a")]({CommentView:this[xc("0x10")][xc("0xb")]},this[xc("0x10")])),this[xc("0x3")][xc("0x19")](xc("0x9")).to(this),this[xc("0x3")][xc("0x19")](xc("0x7")).to(this),this[xc("0x3")][xc("0x1f")](xc("0x8")).to(this),this.set(xc("0x22"),this.commentsListView[xc("0x22")]+1),this.bind(xc("0x22")).to(this.commentsListView,"length",(t=>t+1)),this[xc("0x24")]=this._createCommentThreadInputView(),this.on(xc("0x9"),(()=>this[xc("0x17")]())),this[xc("0x1f")](xc("0x1b")).to(this[xc("0x3")],xc("0x1e"),this.commentThreadInputView[xc("0x5")],xc("0x23"),((t,e)=>t||!!e))}[xc("0xc")](){const{CommentThreadInputView:t}=this[xc("0x10")],e=new t(this[xc("0x20")],this[xc("0x18")],this._config[xc("0x1")]),n=e[xc("0x5")];return e[xc("0x1f")](xc("0xe")).to(this,"isActive",this[xc("0x1c")][xc("0x2")],xc("0x6"),n,xc("0x23"),((t,e,n)=>!!n||t&&!e)),n.on("submit",((t,e)=>{this[xc("0x12")](xc("0x1d"),e),n.editor[xc("0x4")]("")})),n.on(xc("0xa"),(()=>this[xc("0x17")]())),n[xc("0x1f")]("disabledSubmit").to(this._model[xc("0x2")],xc("0x6")),e}}const cc=["change:description","push",'" title="',"acceptButton","cancel","render","acceptSuggestion","authoredAt","setTemplate","disableComments","title","type","commentThreadInputView","EXTERNAL_IMPORT_WORD_SUGGESTION","attributes","span","userView","EXTERNAL_SUGGESTION","commentThread","editorDestroyed","content","importWord","name","ck-annotation__info-name","ck-annotation","editorReady","execute","ck-annotation__content-wrapper","createElement","author","descriptionParts","check","getUserViewNotificationText","locale","EXTERNAL_IMPORT_WORD_AVATAR","discardButton","isEnabled","split","delegate","</p>","isExternal",'"></span>',"bindTemplate","join","discardSuggestion","fire","bind","Accept suggestion","ck-suggestion__user","ck-annotation__main","@external","set","_createButton","_config","ck-annotation__actions","commentsListView","element","_model","innerHTML","formatDateTime","ck-suggestion__actions","ck-suggestion-wrapper","querySelector","ck-annotation__user","extendTemplate","</span>","children","canAccept","creator","color",'<span class="ck-suggestion-type">',"source","getTemplate","ck-comment__external","div","innerText","_descriptionElement","time",".ck-annotation__content-wrapper","ck-suggestion","description","getExternalSuggestionNote","ck-suggestion__main","ck-suggestion--accept"];var lc,dc;lc=cc,dc=232,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("0x47")](uc("0x1f"),""),this[uc("0x42")](uc("0x1f")).to(this,uc("0x32"),(t=>t&&t[0]?t[0][uc("0x1f")]:"")),this[uc("0x42")]("description").to(this,uc("0x32"),this,"isActive",((t,e)=>{let n="";for(const e of t)n+="<p>"+mc(e[uc("0x28")],e[uc("0x5")])+uc("0x3b");return e?n:(0,r.trimHtml)(n,{limit:140})})),this._descriptionElement=null,this.acceptButton=this[uc("0x48")](Yo(e,uc("0x43")),t.icons[uc("0x33")],uc("0x13"),uc("0x1a"),"sw"),this[uc("0x17")][uc("0x42")](uc("0x38")).to(this,uc("0x3")),this[uc("0x37")]=this[uc("0x48")](Yo(e,"Discard suggestion"),t.icons[uc("0x18")],"ck-suggestion--discard",uc("0x40"),"sw"),this[uc("0x37")].bind(uc("0x38")).to(this,"canDiscard"),this.userView=new r.UserView(e,this._model[uc("0x31")],this[uc("0x34")]()),this[uc("0x24")][uc("0x0")]({attributes:{class:[uc("0x44"),uc("0x53")]}}),this[uc("0x1c")](this[uc("0x8")]())}getTemplate(){const t=this[uc("0x3e")],e=[{tag:uc("0xa"),attributes:{class:["ck-suggestion__info","ck-annotation__info"]},children:[{tag:uc("0x23"),children:[{text:this[uc("0x24")].name}],attributes:{class:["ck-suggestion__info-name",uc("0x2b")]}},{tag:uc("0xd"),attributes:{datetime:t.to(uc("0x1b")),class:["ck-comment__info-time","ck-annotation__info-time"]},children:[{text:t.to("authoredAt",(t=>this[uc("0x49")][uc("0x4f")](t)))}]}]},{tag:uc("0xa"),attributes:{class:[uc("0x50"),uc("0x4a")]},children:[this[uc("0x17")],this[uc("0x37")]]},{tag:"div",attributes:{class:[uc("0x2f")]}}];this[uc("0x4d")][uc("0x3c")]&&e[uc("0x15")]({tag:"div",attributes:{class:[uc("0x9")]},children:[{text:this[uc("0x11")]()}]});const n={tag:uc("0xa"),attributes:{class:[uc("0x51"),t.if("isActive","ck-suggestion-wrapper--active"),t.to("type",(t=>"ck-suggestion-"+t)),this[uc("0x49")][uc("0x1d")]&&"ck-suggestion--disabled-comments"],"data-suggestion-id":this[uc("0x4d")].id,"data-thread-id":this[uc("0x4d")][uc("0x26")].id,"data-author-id":this[uc("0x4d")][uc("0x31")].id,tabindex:-1},children:[{tag:"div",attributes:{class:[uc("0xf"),uc("0x2c")]},children:[this[uc("0x24")],{tag:uc("0xa"),attributes:{class:[uc("0x12"),uc("0x45")]},children:e}]}]};return this.commentsListView&&this[uc("0x20")]&&(n[uc("0x2")].push(this.commentsListView,this[uc("0x20")]),this.commentsListView[uc("0x3a")](uc("0x2d")).to(this),this[uc("0x4b")][uc("0x3a")]("editorDestroyed").to(this),this[uc("0x20")][uc("0x3a")]("editorReady").to(this),this[uc("0x20")][uc("0x3a")](uc("0x27")).to(this)),n}[uc("0x19")](){super.render(),this[uc("0xc")]=this[uc("0x4c")][uc("0x52")](uc("0xe")),this._descriptionElement[uc("0x4e")]=this[uc("0x10")],this.on(uc("0x14"),((t,e,n)=>{this[uc("0xc")][uc("0x4e")]=n}))}[uc("0x48")](t,e,n,o,r){const i=new s.ButtonView(this[uc("0x35")]);return i.set({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[uc("0x0")]({attributes:{class:n}}),i.on(uc("0x2e"),(()=>{this[uc("0x41")](o,this._model.id)})),i}[uc("0x11")](){return uc("0x29")===this[uc("0x4d")][uc("0x22")][uc("0x46")][uc("0x7")]?Yo(this[uc("0x35")],uc("0x21")):Yo(this.locale,uc("0x25"))}[uc("0x34")](){return this[uc("0x4d")][uc("0x3c")]?uc("0x29")===this[uc("0x4d")][uc("0x22")][uc("0x46")][uc("0x7")]?Yo(this[uc("0x35")],uc("0x36"),this._model[uc("0x4")][uc("0x2a")]):Yo(this.locale,"EXTERNAL_AVATAR",this[uc("0x4d")].creator[uc("0x2a")]):null}}function mc(t,e){let n="";return n+=t[uc("0x39")]("*").map(((t,e)=>e%2!=0?uc("0x6")+fc(t)+uc("0x1"):fc(t)))[uc("0x3f")](""),e&&(n+='<span class="ck-suggestion-color" style="background-color: '+e.value+uc("0x16")+e[uc("0x1e")]+uc("0x3d")),n}function fc(t){const e=document[uc("0x30")]("span");return e[uc("0xb")]=t,e[uc("0x4e")]}const hc=["activeMarkers","filter","Annotations","locale","pluginName","switchbutton","TrackChangesUI","suggestion-","acceptSelectedSuggestions","reduce","_createUIButton","commands","comments","isEnabled","createAnnotation","isDirty","commandName","Discard all suggestions","refreshSelectedViews","remove","delete","lowest","value","arrowView","set","getDescriptions","_handleSuggestionControllerDelayed","editing","_disableComments","activeAnnotations","length","getAllAdjacentSuggestions","model","addComment","isMultiRange","_bindAnnotationToEditors","SuggestionThreadView","destroy","_initializeController","discardAllSuggestions","view","CommentsUI","_suggestionToController","define","add","Discard all selected suggestions","isInContent","descriptionParts","separator","acceptAllSuggestions","source","plugins","_destroyController","CommentView","suggestionChanged","actionView","comments.maxThreadTotalWeight","registerAnnotation","has","execute","unbind","_updateController","button","isOn","change:activeAnnotations","map","size","listenTo","get","_handleControllerBuffer","createCommentThreadController","comments.editorConfig","type","focus","editor","_viewToController","trackChanges.SuggestionThreadView","createAnnotationView","values","hasSuggestion","getFirstRange","push","config","change:previous","innerView","_annotationViews","Accept all suggestions","mainView","comments.maxCommentsWhenCollapsed","buttonView","trackChanges.disableComments","previous","Accept all selected suggestions","CommentsRepository","some","trackChanges","init","_refreshActiveMarkers","bind","clear","head","requires","EditorAnnotations","TrackChangesEditing"];var pc,bc;pc=hc,bc=392,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("0x15")](){return[Va,r.Users,Ec("0xd"),Ec("0x1a"),Ec("0x16")]}static get[Ec("0x1c")](){return Ec("0x1e")}constructor(t){super(t),this[Ec("0x42")]=new Map,this[Ec("0x63")]=new Map,this[Ec("0x5")]=new Map,this[Ec("0x5d")]=new Map;const e=this[Ec("0x62")][Ec("0x2")];e[Ec("0x43")](Ec("0x64"),gc),e.define(Ec("0xa"),!1),this._disableComments=e[Ec("0x5c")]("trackChanges.disableComments")}[Ec("0x32")](t,e){0===this[Ec("0x5d")][Ec("0x5a")]&&setTimeout((()=>{for(const[t,e]of this[Ec("0x5d")]){const n=this[Ec("0x42")][Ec("0x52")](t);n||e?n&&e&&this._destroyController(t):this[Ec("0x3e")](t)}this.editor[Ec("0x4b")][Ec("0x5c")](Ec("0x16"))[Ec("0x2a")](),this[Ec("0x11")](),this[Ec("0x5d")][Ec("0x13")]()}),10),this[Ec("0x5d")][Ec("0x30")](t,e)}[Ec("0x10")](){const t=this[Ec("0x62")],e=t.plugins[Ec("0x5c")](Ec("0x17")),n=t[Ec("0x4b")][Ec("0x5c")]("Annotations"),o=t.plugins[Ec("0x5c")]("EditorAnnotations"),s=t[Ec("0x4b")][Ec("0x5c")]("CommentsRepository");t.ui.componentFactory[Ec("0x44")](Ec("0xf"),(t=>this[Ec("0x22")](t))),o.addSourceCollector((()=>{const t=[];for(const[e,n]of Array.from(this[Ec("0x42")])){const o=e[Ec("0x37")](),s=[];for(const t of o){if(!t[Ec("0x46")])continue;if(t[Ec("0x3a")]){s.push(...t.getRanges());continue}const e=t[Ec("0x0")]();if(s[Ec("0x36")]>0){const t=s[0].getJoined(e);if(t){s[0]=t;continue}}s[Ec("0x1")](e)}t[Ec("0x1")]([n[Ec("0x40")],s])}return t})),this[Ec("0x5b")](e,"suggestionLoaded",((t,e)=>{this.listenTo(e,Ec("0x3"),((t,n,o,s)=>{e[Ec("0x46")]&&(null==o?(this[Ec("0x55")](s[Ec("0x14")]),this[Ec("0x32")](e,!1)):(this._updateController(o[Ec("0x14")]),this._handleSuggestionControllerDelayed(e,!0)))})),null===e[Ec("0xb")]?this[Ec("0x32")](e,!1):this[Ec("0x55")](e[Ec("0x14")])})),this.listenTo(e,"suggestionUnloaded",((t,e,n)=>{this.stopListening(e,"change:previous"),this._handleControllerBuffer.delete(e);const o=n?n[Ec("0x14")]:e,s=this._suggestionToController.get(o);null!==n&&this[Ec("0x55")](o),null===n&&s&&this._destroyController(e)})),this[Ec("0x5b")](e,Ec("0x4e"),((t,e)=>{this[Ec("0x55")](e)})),this.listenTo(n,Ec("0x58"),(()=>{this[Ec("0x11")]()})),this[Ec("0x5b")](s,Ec("0x39"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Ec("0x67")](n))return;const s=e.getSuggestion(n);this._suggestionToController[Ec("0x5c")](s).view[Ec("0x61")]()}),{priority:Ec("0x2d")})}[Ec("0x11")](){const t=this[Ec("0x62")].plugins[Ec("0x5c")](Ec("0x1a")),e=this[Ec("0x62")].plugins.get(Ec("0x17")),n=Array.from(t[Ec("0x35")],(t=>t[Ec("0x4")]))[Ec("0x19")]((t=>this[Ec("0x63")][Ec("0x52")](t))),o=[];for(const t of n){const e=this[Ec("0x63")].get(t)[Ec("0x38")][Ec("0x37")]();o[Ec("0x1")](...e[Ec("0x21")](((t,e)=>[...t,...e.getMarkerNames()]),[]))}e[Ec("0x18")]=o}[Ec("0x22")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Ec("0x62")][Ec("0x23")][Ec("0x5c")]("trackChanges"),r=Yo(t,"Track changes");n[Ec("0x9")].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("0x9")][Ec("0x12")](Ec("0x57")).to(o,"value"),n[Ec("0x9")].on(Ec("0x53"),(()=>{o[Ec("0x53")](),this.editor[Ec("0x33")][Ec("0x40")][Ec("0x61")]()}));const i=new e.Collection,x=[{type:Ec("0x1d"),model:{withText:!0,label:r,commandName:Ec("0xf")}},{type:Ec("0x48")},{type:Ec("0x56"),model:{withText:!0,label:Yo(t,Ec("0x6")),commandName:Ec("0x49")}},{type:Ec("0x56"),model:{withText:!0,label:Yo(t,Ec("0xc")),commandName:Ec("0x20")}},{type:Ec("0x56"),model:{withText:!0,label:Yo(t,Ec("0x29")),commandName:Ec("0x3f")}},{type:Ec("0x56"),model:{withText:!0,label:Yo(t,Ec("0x45")),commandName:"discardSelectedSuggestions"}}];for(const t of x){let e={type:Ec("0x48")};if(t[Ec("0x38")]){const n=new s.Model(t[Ec("0x38")]),o=this[Ec("0x62")][Ec("0x23")][Ec("0x5c")](n[Ec("0x28")]);n[Ec("0x12")](Ec("0x57"),"isEnabled").to(o,Ec("0x2e"),Ec("0x25")),e={type:t[Ec("0x60")],model:n}}i[Ec("0x44")](e)}(0,s.addListToDropdown)(n,i);const a=x.filter((t=>null!=t[Ec("0x38")]))[Ec("0x59")]((t=>this.editor.commands[Ec("0x5c")](t[Ec("0x38")].commandName))),c=n[Ec("0x9")];return c[Ec("0x4f")][Ec("0x54")]("isEnabled"),c[Ec("0x2f")].unbind(Ec("0x25")),c.actionView[Ec("0x12")]("isEnabled").to(o,Ec("0x25")),c[Ec("0x2f")][Ec("0x12")](Ec("0x25")).toMany(a,Ec("0x25"),((...t)=>t[Ec("0xe")]((t=>t)))),n.on(Ec("0x53"),(t=>{this[Ec("0x62")].execute(t[Ec("0x4a")][Ec("0x28")]),this.editor[Ec("0x33")][Ec("0x40")][Ec("0x61")]()})),n}[Ec("0x3e")](t){const e=this[Ec("0x62")],n=e[Ec("0x2")],o=e[Ec("0x4b")][Ec("0x5c")](Ec("0x1a")),s=e[Ec("0x4b")][Ec("0x5c")](Ec("0xd")),i=e.plugins[Ec("0x5c")]("EditorAnnotations"),x=e.plugins[Ec("0x5c")](r.Users).me,a=n[Ec("0x5c")]("trackChanges")[Ec("0x3c")],{CommentsListView:c,CommentThreadInputView:l}=e[Ec("0x4b")][Ec("0x5c")](Ec("0x41"));let d,u;this[Ec("0x5")][Ec("0x52")](t.id)?(u=this[Ec("0x5")][Ec("0x5c")](t.id),d=u.mainView):(d=new a(e[Ec("0x1b")],t,x,{disableComments:this[Ec("0x34")],editorConfig:n.get(Ec("0x5f")),maxCommentsWhenCollapsed:n[Ec("0x5c")](Ec("0x8")),maxThreadTotalWeight:n.get(Ec("0x50")),maxCommentCharsWhenCollapsed:n[Ec("0x5c")]("comments.maxCommentCharsWhenCollapsed"),formatDateTime:(0,r.getDateTimeFormatter)(n[Ec("0x5c")](Ec("0x1b"))),CommentView:n[Ec("0x5c")](Ec("0x24"))[Ec("0x4d")],CommentsListView:c,CommentThreadInputView:l}),d.acceptButton.on(Ec("0x53"),(()=>{e.editing[Ec("0x40")][Ec("0x61")]()})),d.discardButton.on(Ec("0x53"),(()=>{e[Ec("0x33")][Ec("0x40")][Ec("0x61")]()})),u=o[Ec("0x65")](this.editor[Ec("0x1b")],d),u.bind("isDirty").to(d,Ec("0x27")),u[Ec("0x12")]("length").to(d),u.bind(Ec("0x60")).to(d,Ec("0x60"),(t=>Ec("0x1f")+t)),this[Ec("0x5")].set(t.id,u));const g=s[Ec("0x5e")](t.commentThread,d),m=new oc(e,t,d,g),f=t.getAllAdjacentSuggestions().filter((t=>t.isInContent));d[Ec("0x47")]=e[Ec("0x4b")].get(Ec("0x17"))._descriptionFactory[Ec("0x31")](f),this[Ec("0x42")].set(t,m),this[Ec("0x63")].set(d,m);const h=o[Ec("0x26")]({view:u,target:()=>{const n=[],o=t[Ec("0x37")]()[Ec("0x19")]((t=>t[Ec("0x46")]));for(const t of o)n.push(...t.getMarkers());return(0,r.getAllMarkersDomElementsSorted)(e[Ec("0x33")],n)},type:()=>Ec("0x1f")+m.view[Ec("0x60")]});s[Ec("0x3b")](d,h),o[Ec("0x44")](h),i[Ec("0x51")](h)}[Ec("0x4c")](t){const e=this[Ec("0x62")].plugins[Ec("0x5c")]("Annotations"),n=this[Ec("0x42")].get(t),o=n[Ec("0x40")],s=e.getByInnerView(o);s&&e[Ec("0x2b")](s),this[Ec("0x42")][Ec("0x2c")](t),this[Ec("0x63")][Ec("0x2c")](o),n.destroy()}_updateController(t){if(!t[Ec("0x46")]||!this._suggestionToController[Ec("0x52")](t))return;const e=this.editor[Ec("0x4b")][Ec("0x5c")](Ec("0x17")),n=this[Ec("0x42")][Ec("0x5c")](t),o=t.getAllAdjacentSuggestions();n[Ec("0x40")].descriptionParts=e._descriptionFactory[Ec("0x31")](o)}[Ec("0x3d")](){for(const t of this[Ec("0x42")].keys())this[Ec("0x4c")](t);for(const t of this[Ec("0x5")][Ec("0x66")]())t[Ec("0x7")][Ec("0x3d")]();super.destroy()}}var Tc,Cc,yc=["plugins","requires","getSuggestion","getSuggestions","adapter","addSuggestion","get","TrackChanges","editor","pluginName"];Tc=yc,Cc=386,function(t){for(;--t;)Tc.push(Tc.shift())}(++Cc);var kc=function(t,e){return yc[t-=0]};class Ac extends t.Plugin{static get[kc("0x5")](){return[Va,_c,"Comments"]}static get[kc("0x3")](){return kc("0x1")}set[kc("0x8")](t){this[kc("0x2")][kc("0x4")].get(Va)[kc("0x8")]=t}get adapter(){return this.editor[kc("0x4")][kc("0x0")](Va)[kc("0x8")]}[kc("0x9")](t){return this.editor[kc("0x4")][kc("0x0")](Va).addSuggestionData(t)}[kc("0x7")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[kc("0x2")][kc("0x4")].get(Va)[kc("0x7")]({skipNotAttached:t,toJSON:e})}[kc("0x6")](t){return this[kc("0x2")][kc("0x4")][kc("0x0")](Va)[kc("0x6")](t)}}const vc=["document","editor","getFullData","reduce","destroy","addSuggestionData","getUser","Pagination","useAnonymousUser","map","get","trackChangesData","trackChangesData.editorCreator","div","discardAllSuggestions","appendChild","define","rootsAttributes","getRootNames","config","getDataWithDiscardedSuggestions","track-changes-data-invalid-editor-creator","users","createDocumentFragment","requires","editorCreator","pluginName","getSuggestions","CommentsRepository","getDataWithAcceptedSuggestions","name","acceptAllSuggestions","data","push","function","model","plugins","getRootsAttributes"];var Rc,Sc;Rc=vc,Sc=179,function(t){for(;--t;)Rc.push(Rc.shift())}(++Sc);const Ic=function(t,e){return vc[t-=0]},Lc=[Ic("0x12")];class Nc extends t.Plugin{static get[Ic("0x23")](){return[Va]}static get pluginName(){return"TrackChangesData"}init(){const t=this[Ic("0xc")];if(t.config[Ic("0x1b")](Ic("0x17"),(e=>{const n=t[Ic("0x8")][Ic("0xb")][Ic("0x1d")]().reduce(((t,e)=>(t[e]="",t)),{});return t.constructor.create(n,e)})),Ic("0x7")!=typeof t[Ic("0x1e")][Ic("0x15")](Ic("0x16")).editorCreator)throw new e.CKEditorError(Ic("0x20"))}[Ic("0x2")](t){return Oc(this[Ic("0xc")],!0,t)}[Ic("0x1f")](t){return Oc(this[Ic("0xc")],!1,t)}}class Mc extends t.Plugin{static get[Ic("0x25")](){return"TrackChangesDataGetter"}constructor(t){super(t),this.result="end"}init(){this[Ic("0xc")][Ic("0x9")][Ic("0x15")](Ic("0x1"))._adapter={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this[Ic("0xc")][Ic("0x9")][Ic("0x15")]("TrackChangesEditing")._adapter=null}}function wc(t){return void 0!==t[Ic("0xa")]}async function Oc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Lc);o.plugins[Ic("0x6")](Va,Mc),o[Ic("0x1c")]=wc(t)?t.getRootsAttributes():void 0;const s=document[Ic("0x22")](),i=t[Ic("0x1e")][Ic("0x15")]("trackChangesData")[Ic("0x24")],x=await i(o,(()=>function(t){const e=document.createElement(Ic("0x18"));return t[Ic("0x1a")](e),e}(s)));!function(t,e){const n=t[Ic("0x8")][Ic("0xb")].getRootNames()[Ic("0xe")](((e,n)=>(e[n]=t[Ic("0x5")][Ic("0x15")]({rootName:n}),e)),{}),o=t[Ic("0x9")].get("Users")[Ic("0x21")][Ic("0x14")]((t=>({id:t.id,name:t[Ic("0x3")]}))),s=t[Ic("0x9")].get("TrackChangesEditing")[Ic("0x0")]({skipNotAttached:!0,toJSON:!0}),r=e.plugins[Ic("0x15")]("Users"),i=e[Ic("0x9")][Ic("0x15")]("TrackChangesEditing");for(const t of o)r[Ic("0x11")](t.id)||r.addUser(t);r.me||r[Ic("0x13")]();for(const t of s)i[Ic("0x10")](t);e[Ic("0x5")].set(n)}(t,x),x.execute(Ic(e?"0x4":"0x19"));const a=wc(x)?x[Ic("0xd")](n):x[Ic("0x5")].get(n);return await x[Ic("0xf")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
5
+ */(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var s=e[o];if(void 0!==s)return s.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>ac,TrackChanges:()=>Ac,TrackChangesData:()=>Nc,TrackChangesEditing:()=>Wa});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["isEnabled","_enableCommands","commands","clearForceDisabled","forceDisabled","value","editor","has","refresh","_isEnabledBasedOnSelection","_disableUnsupportedCommands","_enabledCommands","affectsData","TrackChangesCommand"];var c,l;c=a,l=450,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this[u("0x9")]=e,this[u("0x3")]=!1,this[u("0x6")](),this[u("0x7")]=!1}[u("0x6")](){this[u("0xc")]=!0}execute(){this[u("0x3")]=!this[u("0x3")],this[u("0x3")]?this._disableUnsupportedCommands():this[u("0xd")]()}[u("0x8")](){for(const t of this[u("0x4")][u("0x0")][u("0x0")]())t.affectsData&&!this._enabledCommands[u("0x5")](t)&&t[u("0x2")](u("0xb"))}[u("0xd")](){for(const t of this[u("0x4")][u("0x0")][u("0x0")]())t[u("0xa")]&&!this[u("0x9")].has(t)&&t[u("0x1")](u("0xb"))}}const g=["plugins","refresh","get","execute","editor","track-changes-accept-suggestion-not-found","TrackChangesEditing","model","_suggestions","_isEnabledBasedOnSelection","canEditAt"];var m,f;m=g,f=182,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("0x2")]=e,this[h("0x6")](),this[h("0x3")]=!1}[h("0x6")](){this.isEnabled=!0}[h("0x8")](t){const n=this[h("0x2")][h("0x7")](t);if(!n)throw new e.CKEditorError(h("0xa"),this);const o=n.getRanges();this[h("0x9")][h("0x1")][h("0x4")](o)&&this[h("0x9")][h("0x5")].get(h("0x0")).acceptSuggestion(n)}}const b=["refresh","track-changes-discard-suggestion-not-found","TrackChangesEditing","get","getRanges","editor","canEditAt","_suggestions","_isEnabledBasedOnSelection","isEnabled","model"];var E,_;E=b,_=459,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("0xa")]=e,this.refresh(),this[T("0x0")]=!1}[T("0x3")](){this[T("0x1")]=!0}execute(t){const n=this._suggestions[T("0x6")](t);if(!n)throw new e.CKEditorError(T("0x4"),this);const o=n[T("0x7")]();this[T("0x8")][T("0x2")][T("0x9")](o)&&this.editor.plugins[T("0x6")](T("0x5")).discardSuggestion(n)}}const y=["push","type","map","content","isInContent","length","join","schema","splice","replace","from","isArray","isTouching","end","getRange","isObject","color"," [color ","isCollapsed","createPositionAt","getMarkers","deletion","createPositionAfter","sort","createPositionBefore","execute","getRanges","createRange","change","isMultiRange","add"];var k,A;k=y,A=325,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x8")](((t,e)=>v("0x6")==t[v("0x11")]&&v("0x6")!=e.type?-1:v("0x6")!=t[v("0x11")]&&v("0x6")==e.type?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0x17")];for(;o<t[v("0x15")];){const i=t[o],x=t[o+1];n||(n=e[v("0x9")](i)),I(e,i,x)||(s[v("0x10")](e[v("0xc")](n,r[v("0x0")](i)?e[v("0x7")](i):e[v("0x4")](i,v("0x1d")))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0x7")](e),s=t[v("0x9")](n);return o[v("0x1c")](s)}function L(t,e,n){for(;n.length;){const o=n[v("0x18")](0,100);t[v("0xd")]((()=>{for(const t of o)t[v("0x14")]&&e[v("0xa")](t.id)}))}}const N=["canEditAt","editor","_isEnabledBasedOnSelection","some","values","_suggestions","from","_command","isEnabled","refresh","getRanges","model","isInContent"];var w,M;w=N,M=331,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("0x1")]=e,this._suggestions=n,this[O("0x3")](),this[O("0x9")]=!1}[O("0x3")](){const t=Array[O("0x0")](this[O("0xc")][O("0xb")]())[O("0xa")]((t=>t[O("0x6")]));this.isEnabled=this[O("0x1")][O("0x2")]&&t}execute(){const t=R(Array[O("0x0")](this._suggestions[O("0xb")]()));for(const e of t){const t=e[O("0x4")]();if(!this[O("0x8")][O("0x5")][O("0x7")](t))return}L(this[O("0x8")][O("0x5")],this[O("0x1")],t)}}const P=["model","_selectedSuggestions","document","from","values","selection","refresh","_suggestions","execute","size","getRanges","_command","isEnabled","editor","canEditAt"];var D,B;D=P,B=464,function(t){for(;--t;)D.push(D.shift())}(++B);const j=function(t,e){return P[t-=0]};class U extends t.Command{constructor(t,e,n){super(t),this[j("0xc")]=e,this[j("0x8")]=n,this[j("0x2")]=new Set,this[j("0x7")](),this._isEnabledBasedOnSelection=!1}[j("0x7")](){const t=this[j("0xe")][j("0x1")][j("0x3")][j("0x6")],e=Array[j("0x4")](this[j("0x8")][j("0x5")]());this[j("0x2")]=function(t,e){const n=Array[v("0x1a")](t[v("0xb")]()),o=new Set;for(const s of e)if(s[v("0x14")])for(const e of n)for(const n of s[v("0x5")]()){const r=n[v("0x1e")]();(e.isIntersecting(r)||t[v("0x3")]&&!s[v("0xe")]&&s.next&&r[v("0x1d")][v("0x1c")](e.start))&&o[v("0xf")](s)}return o}(t,e),this[j("0xd")]=this[j("0xc")].isEnabled&&!!this[j("0x2")][j("0xa")]}[j("0x9")](){const t=R(Array[j("0x4")](this[j("0x2")]));for(const e of t){const t=e[j("0xb")]();if(!this[j("0xe")][j("0x1")][j("0x0")](t))return}L(this[j("0xe")][j("0x1")],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,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,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,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,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&&de(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var 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 un=function(t){return ln(t,Ue,on)};const dn=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),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 u=ge(e);if(u){if(x=Ln(e),!a)return Ze(e,x)}else{var d=Sn(e),g=d==Qn||"[object GeneratorFunction]"==d;if(be(e))return Qe(e,a);if(d==Zn||d==Jn||g&&!r){if(x=c||g?{}:zn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[d])return r?e:{};x=Un(e,d,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),$n(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var f=u?void 0:(l?c?dn:un:c?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=po(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++u<x;){var m=t[u],f=e[u];if(o)var h=i?o(f,m,u,e,t,r):o(m,f,u,t,e,r);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){d=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){d=!1;break}}return r.delete(t),r.delete(e),d};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const 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=un(t),a=x.length;if(a!=un(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:Mo.call(e,l)))return!1}var u=r.get(t),d=r.get(e);if(u&&d)return u==e&&d==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===p?f===h||s(f,h,n,o,r):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po:Sn(t),c=x?Po:Sn(e),l=(a=a==Fo?Do:a)==Do,u=(c=c==Fo?Do:c)==Do,d=a==c;if(d&&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):wo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=u&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!d&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const zo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const Wo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Vo=function(t,e){return e.length<2?t:zo(t,Wo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Vo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["addMarkerName","data","removeMarkers","clear","nodeAfter","change","authoredAt","toJSON","_onAttributesChange","push","filter","removeMarker","type","isInContent","onAttributesChange","getRanges","add","commentThread","getItems","next","start","map","_markerNames","getAllAdjacentSuggestions","getMarkerNames","attributes","hasComments","isIntersectingWithRange","delete","subType","onAccept","getContainedElement","isExternal","getMarkers","removeAttribute","nodeBefore","addRange","_saved","getRange","reduce","split","discard","addMarker","isIntersecting","head","set","_model","size","previous","getMultiRangeId","accept","_onAccept","substr","getFirstMarker","_onDiscard","length","createdAt","creator","decorate","author","get"];var $o,Jo;$o=Xo,Jo=341,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("0x25")]=e[Qo("0x25")],this[Qo("0x36")]=e.subType||null,this[Qo("0x17")]=e[Qo("0x17")],this.creator=e[Qo("0x15")]||e[Qo("0x17")],this[Qo("0x39")]=Boolean(e[Qo("0x32")]&&e[Qo("0x32")]["@external"]),this[Qo("0x1a")]=null,this._model=t,this[Qo("0xf")]=e[Qo("0x37")],this._onDiscard=e.onDiscard,this[Qo("0x21")]=e[Qo("0x27")],this[Qo("0x2f")]=new Set,this[Qo("0x14")]=null,this[Qo("0x9")](Qo("0x1f"),null),this[Qo("0x9")](Qo("0x32"),e.attributes||{}),this[Qo("0x9")](Qo("0xc"),null),this[Qo("0x9")](Qo("0x2c"),null),this[Qo("0x9")](Qo("0x2a"),null),this[Qo("0x9")](Qo("0x1"),!1),this[Qo("0x16")](Qo("0xe")),this[Qo("0x16")](Qo("0x5"))}get head(){let t=this;for(;t[Qo("0xc")];)t=t[Qo("0xc")];return t}get[Qo("0x33")](){return!!this[Qo("0x2a")]&&this[Qo("0x2a")].length>0}get isMultiRange(){return 0!=this[Qo("0x2f")][Qo("0xb")]&&6==Array.from(this[Qo("0x2f")])[0][Qo("0x4")](":")[Qo("0x13")]}get[Qo("0x26")](){return null!==this[Qo("0x11")]()}[Qo("0x19")](t){this[Qo("0x2f")][Qo("0x29")](t)}getMarkerNames(){return Array.from(this[Qo("0x2f")])}getMarkers(){return this[Qo("0x31")]()[Qo("0x2e")]((t=>this[Qo("0xa")].markers[Qo("0x18")](t)))[Qo("0x23")]((t=>t))}getFirstMarker(){return this.getMarkers()[0]||null}[Qo("0x1b")](){this[Qo("0xa")][Qo("0x1e")]((t=>{for(const e of this[Qo("0x3a")]())t[Qo("0x24")](e)})),this._markerNames[Qo("0x1c")]()}[Qo("0x24")](t){this[Qo("0xa")][Qo("0x1e")]((e=>{e[Qo("0x24")](t)})),this[Qo("0x2f")][Qo("0x35")](t)}[Qo("0x0")](t){const e="suggestion:"+this[Qo("0x25")]+":"+this.subType+":"+this.id+":"+this[Qo("0x15")].id+":"+Zo.getMultiRangeId();this[Qo("0x19")](e),this[Qo("0xa")][Qo("0x1e")]((n=>{n[Qo("0x6")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x34")](t){for(const e of this.getRanges())if(e[Qo("0x7")](t))return!0;return!1}[Qo("0x28")](){return this[Qo("0x3a")]()[Qo("0x2e")]((t=>t[Qo("0x2")]()))}[Qo("0x2b")](){return this[Qo("0x28")]()[Qo("0x3")](((t,e)=>[...t,...e[Qo("0x2b")]()]),[])}getFirstRange(){var t;return(null===(t=this[Qo("0x11")]())||void 0===t?void 0:t[Qo("0x2")]())||null}[Qo("0x38")](){const t=this.getRanges();if(1!=t[Qo("0x13")])return null;const e=t[0],n=e[Qo("0x2d")][Qo("0x1d")],o=e.end[Qo("0x3c")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0xe")](){this[Qo("0xf")](this[Qo("0x28")](),this[Qo("0x1a")],this[Qo("0x32")]),this[Qo("0x1b")]()}[Qo("0x5")](){this[Qo("0x12")](this[Qo("0x28")](),this[Qo("0x1a")],this[Qo("0x32")]),this[Qo("0x1b")]()}[Qo("0x30")](){const t=[];let e=this[Qo("0x8")];for(;e;)t[Qo("0x22")](e),e=e[Qo("0x2c")];return t}setAttribute(t,e){const n=eo(this.attributes);_o(n,t,e),Go(n,this[Qo("0x32")])||(this[Qo("0x32")]=n,this[Qo("0x21")](n))}[Qo("0x3b")](t){const e=eo(this[Qo("0x32")]);qo(e,t),Go(e,this[Qo("0x32")])||(this[Qo("0x32")]=e,this[Qo("0x21")](this[Qo("0x32")]))}[Qo("0x20")](){return{id:this.id,type:this[Qo("0x36")]?this.type+":"+this[Qo("0x36")]:this[Qo("0x25")],authorId:this[Qo("0x15")].id,createdAt:this[Qo("0x14")],hasComments:this[Qo("0x33")],data:this[Qo("0x1a")],attributes:this.attributes}}static[Qo("0xd")](){return(0,e.uid)()[Qo("0x10")](1,5)}}function Yo(t,e,n){const o=t.t;switch(e){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* change table properties":return o("*Format:* change table properties");case"*Format:* change table cell properties":return o("*Format:* change table cell properties");case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Format:* replace image URL":return o("*Format:* replace image URL");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set format to:* %0":return o("*Set format to:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return o({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return o({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return o({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);default:return e}}const ts=["pop","removeEmptyContainer","isObject","element","_locale","EmptyContainer","normal","softBreak","elementStart","elementEnd","push","checkChild","match","Container","_itemLabels","Object","_customCallbacks","addContainer","indexOf","previousSibling","registerElementLabel","*Split:* %0","name","isEmpty","get","*Insert:* %0","getItemLabel","matchingCallback","ELEMENT_SPACE","length","registerDescriptionCallback","item","remove","isInContent","set","deletion","removeContainer","_resolveDescriptionItems","REPLACE_TEXT","add","getWalker","$text","quantity","type","addObject","function","$1 $2","data","addEmptyContainer","text","start","insertion","_itemLabelsCallbacks","getFirstRange","label","_schema","*Remove:* %0","isEqual","replace","*Merge:* %0","nextSibling"];var es,ns;es=ts,ns=167,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("0x20")]=[],this[os("0x1e")]=new Map,this._itemLabelsCallbacks=[],this[os("0xa")]=t,this[os("0x14")]=e}getDescriptions(t){const e=[];for(let n=0;n<t[os("0x2d")];n++){const o=t[n];if(!o[os("0x31")])continue;let s=!1;for(const t of this[os("0x20")]){const n=t(o);if(n){"type"in n&&e[os("0x1a")](n),s=!0;break}}if(!s){this._addDescriptionItems(e,o);const s=t[n+1];if(s&&!o[os("0x8")]().end[os("0xc")](s[os("0x8")]()[os("0x5")])){const t=e[e.length-1],n="insertion"==o[os("0x3b")]?os("0x37"):"remove";t&&os("0x4")==t[os("0x3b")]&&(t[n]+="\n")}}}return this._resolveDescriptionItems(e)}[os("0x2e")](t){this[os("0x20")][os("0x1a")](t)}[os("0x24")](t,n,o=e.priorities[os("0x16")]){os("0x0")==typeof t?(0,e.insertToPriorityArray)(this[os("0x7")],{matchingCallback:t,label:n,priority:o}):this._itemLabels[os("0x32")](t,n)}[os("0x2a")](t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e[os("0x2b")](t)){n=e[os("0x9")];break}return n||(n=this[os("0x1e")][os("0x28")](t[os("0x26")])),n?n(e):1!==e?e+" "+t[os("0x26")]+"s":""+t[os("0x26")]}_addDescriptionItems(t,e){const n=e[os("0x8")]()[os("0x38")](),o="insertion"==e[os("0x3b")]?os("0x37"):os("0x30");for(const e of n){const s=e.item,r=t[t[os("0x2d")]-1];if(s.is("$textProxy"))r&&r.type[os("0x22")](os("0x1d"))>-1&&t[os("0x10")](),r&&"text"==r[os("0x3b")]?r[o]+=s[os("0x2")]:t[os("0x1a")]({type:os("0x4"),add:os("0x37")==o?s.data:"",remove:"remove"==o?s[os("0x2")]:""});else if(this[os("0xa")][os("0x12")](s)){const i=s;if(r&&r[os("0x3b")][os("0x22")](os("0x1d"))>-1&&t[os("0x10")](),os("0x19")==e.type)continue;r&&r[os("0x3b")]==o+os("0x1f")&&r[os("0x13")].name==i[os("0x26")]?r[os("0x3a")]++:t[os("0x1a")]({type:o+os("0x1f"),element:i,quantity:1}),n.skip((t=>!(os("0x19")==t[os("0x3b")]&&t[os("0x2f")]==s)))}else if(this[os("0xa")][os("0x1b")](s,os("0x39"))||s.is("element",os("0x17"))){const n=s;if(os("0x37")==o&&os("0x18")==e[os("0x3b")]||"remove"==o&&os("0x19")==e[os("0x3b")])continue;if(r&&-1==r.type[os("0x22")](os("0x1d"))){os("0x4")==r.type&&(r[o]+="\n");continue}let i;if(i=os("0x37")==o?n[os("0xf")]&&!this[os("0xa")][os("0x12")](n.nextSibling)?n[os("0xf")]:null:n[os("0x23")]&&!this[os("0xa")][os("0x12")](n[os("0x23")])?n[os("0x23")]:null,n.isEmpty||i&&i.isEmpty){const e=i&&i[os("0x27")]?i:n;r&&r[os("0x3b")]==o+os("0x15")&&r.element.name==e.name?r.quantity++:t.push({type:o+os("0x15"),element:e,quantity:1})}else t[os("0x1a")]({type:o+os("0x1d"),element:n})}}}[os("0x35")](t){const e=this[os("0x14")],n=[];for(const o of t){switch(o.type){case os("0x4"):if(o[os("0x37")]=o[os("0x37")].replace(/(\S)\u000A+(\S)/g,"$1 $2").replace(/\u000A/g,""),o.remove=o.remove[os("0xd")](/(\S)\u000A+(\S)/g,os("0x1")).replace(/\u000A/g,""),""!=o[os("0x37")]&&""!=o.remove){n.push({type:os("0xd"),content:Yo(e,os("0x36"),['"'+o.remove+'"','"'+o[os("0x37")]+'"'])});continue}if(null!=o[os("0x37")][os("0x1c")](/^ +$/)){n[os("0x1a")]({type:os("0x6"),content:Yo(e,os("0x29"),Yo(e,os("0x2c"),o[os("0x37")][os("0x2d")]))});continue}if(null!=o[os("0x30")][os("0x1c")](/^ +$/)){n[os("0x1a")]({type:os("0x33"),content:Yo(e,os("0xb"),Yo(e,os("0x2c"),o[os("0x30")].length))});continue}if(""!=o[os("0x37")]){n.push({type:"insertion",content:Yo(e,os("0x29"),'"'+o[os("0x37")]+'"')});continue}n[os("0x1a")]({type:"deletion",content:Yo(e,os("0xb"),'"'+o[os("0x30")]+'"')});continue;case os("0x3"):case os("0x3c"):n[os("0x1a")]({type:os("0x6"),content:Yo(e,"*Insert:* %0",this.getItemLabel(o[os("0x13")],o[os("0x3a")]))});continue;case os("0x11"):case"removeObject":n[os("0x1a")]({type:os("0x33"),content:Yo(e,os("0xb"),this.getItemLabel(o[os("0x13")],o[os("0x3a")]))});continue;case os("0x21"):n[os("0x1a")]({type:os("0x6"),content:Yo(e,os("0x25"),this[os("0x2a")](o[os("0x13")],o[os("0x3a")]))});continue;case os("0x34"):n[os("0x1a")]({type:"deletion",content:Yo(e,os("0xe"),this[os("0x2a")](o.element,o[os("0x3a")]))});continue}n[os("0x1a")](o)}return n}}const rs=["locale","getSelectedBlocks","FORMAT_ALIGN_TO_RIGHT","format","editor","afterInit","FORMAT_ALIGN_TO_CENTER","markBlockFormat","change","from","schema","right","model","TrackChangesEditing","center","checkAttribute","value","plugins","selection","getAttribute","registerDescriptionCallback","*Format:* %0","commandParams","ltr","_descriptionFactory","FORMAT_ALIGN_TO_LEFT","contentLanguageDirection","left","enableCommand","document","FORMAT_JUSTIFY_TEXT","has","alignment"];var is,xs;is=rs,xs=446,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x15")](){const t=this.editor,e=t[as("0x10")];if(!t[as("0x0")][as("0xe")]("AlignmentEditing"))return;const n=t[as("0x0")].get(as("0x1d"));n[as("0xb")](as("0xf"),((e,o={})=>{let s=o[as("0x20")];o.value||(s=as("0x6")===t[as("0x10")][as("0x9")]?"left":as("0x1b"));const r=Array[as("0x19")](this.editor.model[as("0xc")][as("0x1")][as("0x11")]()).filter((t=>function(t,e,n){const o=t[as("0x2")](as("0xf"))||null;return e[as("0x1f")](t,as("0xf"))&&n!=o}(t,this[as("0x14")][as("0x1c")][as("0x1a")],s)));t[as("0x1c")][as("0x18")]((()=>{for(const t of r)n[as("0x17")](t,{commandName:"alignment",commandParams:[{value:s}]})}))})),n[as("0x7")][as("0x3")]((t=>{const{data:n}=t;if(n&&as("0xf")==n.commandName){const t=n[as("0x5")][0][as("0x20")];return{type:as("0x13"),content:Yo(e,as("0x4"),function(t){switch(t){case as("0xa"):return Yo(e,as("0x8"));case as("0x1b"):return Yo(e,as("0x12"));case as("0x1e"):return Yo(e,as("0x16"));case"justify":return Yo(e,as("0xd"))}}(t))}}}))}}const ls=["mapper","createRangeOn","span","toViewPosition","isBlock","markerName","nextSibling","type","consumable","name","model","elementEnd","getAttribute","get","bindElementToMarker","test","isContent","isLimit","createUIElement","activeMarkers","parent","writer","ck-suggestion-marker-","start","listIndent","addHighlight","element","includes","push","listItem","previousPosition","markerRange","toViewElement","addClass","isAtEnd","getItems"];var us,ds;us=ls,ds=218,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("0x21")]())s.hasAttribute(t)&&o[gs("0x1a")](n[gs("0x23")](s));return o}function fs(t){const e=[];if(t.is(gs("0x18"),gs("0x1b"))){let n=t.nextSibling;for(;n&&n.is(gs("0x18"),"listItem")&&n[gs("0xa")](gs("0x16"))>0;)e.push(n),n=n[gs("0x4")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t.plugins[gs("0xb")]("TrackChangesEditing");return(s,r,i)=>{if(!i[gs("0x6")][gs("0xd")](r[gs("0x1d")],s[gs("0x7")]))return;const x=r[gs("0x1d")].getWalker(),a=r[gs("0x1d")][gs("0x15")],c=t[gs("0x8")].schema;let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t.item;d=d||c[gs("0xe")](e);const n=i.mapper[gs("0x1e")](e);if(n&&n.getCustomProperty(gs("0x17")))return;gs("0x9")==t[gs("0x5")]&&c[gs("0x2")](e)&&!c[gs("0xf")](e)&&(e.nextSibling||a[gs("0x20")]?l&&l[gs("0x12")]==e||(l=e,m(t[gs("0x1c")]),g=!0):u=u||t.previousPosition)}function m(t){const s=i.writer[gs("0x10")](gs("0x0"),{class:gs("0x14")+e}),x=i[gs("0x22")][gs("0x1")](t);n&&o[gs("0x11")][gs("0x19")](r[gs("0x3")])&&i[gs("0x13")][gs("0x1f")]("ck-suggestion-marker--active",s),i.writer.insert(x,s),i.mapper[gs("0xc")](s,r[gs("0x3")])}d||g||!u||m(u)}}const ps=["commands","afterInit","*Format:* %0","plugins","CodeEditing","italic","bold","_descriptionFactory","FORMAT_UNDERLINE","forceValue","BoldEditing","slice","getRanges","FORMAT_ITALIC","has","SuperscriptEditing","get","FORMAT_STRIKETHROUGH","change","editor","toLowerCase","code","*Remove format:* %0","commandName","SubscriptEditing","format","UnderlineEditing","selection","commandParams","subscript","enableCommand","underline"];var bs,Es;bs=ps,Es=382,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=[_s("0xc"),"ItalicEditing",_s("0x1c"),_s("0x6"),"StrikethroughEditing",_s("0x1a"),_s("0x11")];class Cs extends t.Plugin{[_s("0x3")](){const t=this[_s("0x15")],e=t.model,n=t[_s("0x5")][_s("0x12")]("TrackChangesEditing"),o=t.locale;for(const o of Ts){if(!t[_s("0x5")][_s("0x10")](o))continue;const s=o[_s("0xd")](0,-7)[_s("0x16")](),r=t[_s("0x2")][_s("0x12")](s);n[_s("0x0")](s,((t,o={})=>{const i=e.document[_s("0x1d")];if(i.isCollapsed)return void t(o);const x=void 0!==o[_s("0xb")]?o[_s("0xb")]:!r.value;e[_s("0x14")]((()=>{const t=Array.from(i[_s("0xe")]());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("0x9")].registerDescriptionCallback((n=>{const{data:s}=n;if(s&&s[_s("0x19")]===t)return s[_s("0x1e")][0][_s("0xb")]?{type:_s("0x1b"),content:Yo(o,_s("0x4"),e)}:{type:_s("0x1b"),content:Yo(o,_s("0x18"),e)}}))}s(_s("0x8"),Yo(o,"FORMAT_BOLD")),s(_s("0x7"),Yo(o,_s("0xf"))),s(_s("0x1"),Yo(o,_s("0xa"))),s(_s("0x17"),Yo(o,"FORMAT_CODE")),s("strikethrough",Yo(o,_s("0x13"))),s(_s("0x1f"),Yo(o,"FORMAT_SUBSCRIPT")),s("superscript",Yo(o,"FORMAT_SUPERSCRIPT"))}}const ys=["afterInit","format","*Remove format:* %0","enableCommand","plugins","markBlockFormat","TrackChangesEditing","BlockQuoteEditing","value","change","selection","name","ELEMENT_BLOCK_QUOTE","parent","*Format:* %0","commands","editor","filter","getSelectedBlocks","forceValue","model","from","registerDescriptionCallback","checkChild","commandParams","$root","blockQuote"];var ks,As;ks=ys,As=450,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0x9")](){const t=this[vs("0x19")],e=t.locale;if(!t[vs("0xd")].has(vs("0x10")))return;const n=t[vs("0xd")].get(vs("0xf")),o=this[vs("0x19")][vs("0x18")].get(vs("0x8"));n[vs("0xc")](vs("0x8"),((e,s={})=>{const r=this[vs("0x19")][vs("0x2")].document[vs("0x13")],i=s&&void 0!==s[vs("0x1")]?s[vs("0x1")]:!o[vs("0x11")];let x=[];if(i){const e=Array[vs("0x3")](r[vs("0x0")]())[vs("0x1a")]((t=>Ss(t)||function(t,e){const n=e.checkChild(t[vs("0x16")],vs("0x8")),o=e[vs("0x5")]([vs("0x7"),"blockQuote"],t);return n&&o}(t,this.editor[vs("0x2")].schema)));x=S(e,t[vs("0x2")])}else{const e=Array.from(r[vs("0x0")]()).filter((t=>Ss(t)));x=S(e,t[vs("0x2")])}t[vs("0x2")][vs("0x12")]((()=>{for(const t of x)n[vs("0xe")](t,{commandName:"blockQuote",commandParams:[{forceValue:i}]})}))})),n._descriptionFactory[vs("0x4")]((t=>{const{data:n}=t;if(n&&vs("0x8")==n.commandName){const t=Yo(e,vs("0x15"));return n[vs("0x6")][0][vs("0x1")]?{type:vs("0xa"),content:Yo(e,vs("0x17"),t)}:{type:vs("0xa"),content:Yo(e,vs("0xb"),t)}}}))}}function Ss(t){return vs("0x8")==t[vs("0x16")][vs("0x14")]}const Is=["get","ckbox","plugins","afterInit","enableCommand"];var Ls,Ns;Ls=Is,Ns=416,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const ws=function(t,e){return Is[t-=0]};class Ms extends t.Plugin{[ws("0x2")](){const t=this.editor;t.commands[ws("0x4")](ws("0x0"))&&t[ws("0x1")][ws("0x4")]("TrackChangesEditing")[ws("0x3")](ws("0x0"))}}const Os=["ELEMENT_CODE_BLOCK","enableCommand","languages","checkChild","commands","locale","plugins","format","name","editor","registerDescriptionCallback","commandName","formatBlock","selection","config","blockName","getSelectedBlocks","TrackChangesEditing","commandParams","*Format:* %0","model","from","language","filter","isLimit","outdentCodeBlock","markBlockFormat","change","schema","get","codeBlock","has","forceValue"];var Fs,Ps;Fs=Os,Ps=237,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{afterInit(){const t=this[Ds("0x3")];if(!t[Ds("0x0")][Ds("0x19")]("CodeBlock"))return;const e=t.plugins[Ds("0x17")](Ds("0xb")),n=t[Ds("0x20")],o=t[Ds("0x8")][Ds("0x17")](Ds("0x18"))[Ds("0x1d")],s=t[Ds("0x1f")].get(Ds("0x18"));e[Ds("0x1c")]("indentCodeBlock"),e[Ds("0x1c")](Ds("0x13")),e[Ds("0x1c")]("codeBlock",((n,r={})=>{const i=t[Ds("0xe")],x=t[Ds("0xe")].document[Ds("0x7")],a=r&&void 0!==r.forceValue?r[Ds("0x1a")]:!s.value;let c;r[Ds("0x10")]||(r[Ds("0x10")]=o[0][Ds("0x10")]),c=a?Array[Ds("0xf")](x[Ds("0xa")]())[Ds("0x11")]((t=>{return js(t)||(e=t,n=i[Ds("0x16")],!e.is("rootElement")&&!n[Ds("0x12")](e)&&n[Ds("0x1e")](e.parent,Ds("0x18")));var e,n})):Array[Ds("0xf")](x[Ds("0xa")]())[Ds("0x11")]((t=>js(t)));const l=S(c,i);i[Ds("0x15")]((()=>{for(const t of l)e[Ds("0x14")](t,{commandName:Ds("0x18"),commandParams:[{...r,forceValue:a}],formatGroupId:Ds("0x9")})}))})),e._descriptionFactory.registerElementLabel("codeBlock",(t=>Yo(n,"ELEMENT_CODE_BLOCK",t))),e._descriptionFactory[Ds("0x4")]((t=>{const e=n.t,{type:s,data:r}=t;if(Ds("0x6")==s&&r&&Ds("0x18")==r[Ds("0x5")]){const t=r[Ds("0xc")][0][Ds("0x10")],s=e(o.find((e=>e.language===t)).label);return r.commandParams[0][Ds("0x1a")]?{type:"format",content:Yo(n,Ds("0xd"),Yo(n,Ds("0x1b"),1)+" ("+s+")")}:{type:Ds("0x1"),content:Yo(n,"*Remove format:* %0",Yo(n,"ELEMENT_CODE_BLOCK",1))}}}))}}function js(t){return Ds("0x18")==t[Ds("0x2")]}const Us=["afterInit","get","TrackChangesEditing","enableCommand","plugins","has"];var Gs,Hs;Gs=Us,Hs=377,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const zs=function(t,e){return Us[t-=0]};class Ws extends t.Plugin{[zs("0x1")](){const t=this.editor;t[zs("0x5")][zs("0x0")]("CommentsEditing")&&t[zs("0x5")][zs("0x2")](zs("0x3"))[zs("0x4")]("addCommentThread")}}var Vs=n(181);const Ks=["detach","uiElement","downcastDispatcher","editor","root","deleteForward","addMarker:suggestion:deletion","unit","unlock","forward","createSelection","showSuggestionHighlights","high","createRange","setSelection","selection","unbindElementFromMarkerName","isCollapsed","enableCommand","removeMarker:suggestion:deletion","markerName","remove","get","merge","modifySelection","options","rootName","data","buffer","fromRange","model","start","end","bind","mapper","requires","editing"];var qs,Xs;qs=Ks,Xs=321,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("0xa")](){return[Vs.Delete]}init(){const t=this[$s("0xf")],e=t.plugins[$s("0x22")]("TrackChangesEditing");e[$s("0x1e")]("delete");const n=t.commands[$s("0x22")]($s("0x11"));e[$s("0x1e")]($s("0x11"),((e,o={})=>{const s=t[$s("0x5")][$s("0x16")](t[$s("0x5")].document[$s("0x1b")]);s[$s("0x1d")]&&t[$s("0x5")][$s("0x24")](s,{direction:$s("0x15"),unit:o[$s("0x13")]});const r=s.getFirstRange(),x=i.LiveRange[$s("0x4")](r);let a;e(o),a="$graveyard"==x[$s("0x10")][$s("0x1")]?t[$s("0x5")][$s("0x19")](r[$s("0x6")]):t[$s("0x5")][$s("0x19")](x[$s("0x6")],x[$s("0x7")]),x[$s("0xc")](),t.model.enqueueChange(n.buffer.batch,(t=>{n[$s("0x3")].lock(),t[$s("0x1a")](t[$s("0x19")](a.end)),n[$s("0x3")][$s("0x14")]()}))})),t[$s("0xb")].downcastDispatcher.on("addMarker:suggestion:deletion",hs(t,$s("0x23")),{priority:$s("0x18")}),t[$s("0x2")][$s("0xe")].on($s("0x12"),((e,n,o)=>{o[$s("0x0")][$s("0x17")]&&hs(t,$s("0x23"),{showActiveMarker:!1})[$s("0x8")](this)(e,n,o)}),{priority:$s("0x18")}),t[$s("0xb")][$s("0xe")].on($s("0x1f"),((t,e,n)=>{const o=n.mapper.markerNameToElements(e[$s("0x20")]);if(o)for(const t of o)t.is($s("0xd"))&&(n[$s("0x9")][$s("0x1c")](t,e[$s("0x20")]),n.writer[$s("0x21")](t))}),{priority:"high"})}}const Qs=["getFirstRange","change","splitListItemAfter","document","*Format:* remove from %0","*Format:* insert into %0","registerElementLabel","_descriptionFactory","createRange","_LIST","after","next","ELEMENT_","locale","listIndent","deletion","add","get","splitListItemBefore","slice","DocumentListEditing","numberedList","commands","hasAttribute","nodeAfter","accept","listItemId","enableCommand","getAttribute","documentList","findIndex","multipleBlocks","editor","value","createPositionAt","expandListBlocksToCompleteList","schema","start","getSelectedBlocks","commandParams","isFirstBlockOfListItem","registerDescriptionCallback","DocumentListUtils","isObject","selection","length","forceValue","previousSibling","has","indentList","map","toUpperCase","listType","containsItem","commandName","model","TrackChangesEditing","ELEMENT_NUMBERED_LIST","end","from","ELEMENT_LIST_ITEM","bulletedList","*Change to:* %0","push","nextSibling","execute","_suggestionFactory","format","fromRange","before","outdentList","formatBlock","plugins","markBlockFormat"];var Zs,Ys;Zs=Qs,Ys=222,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{afterInit(){const t=this[tr("0x20")];if(!t.plugins[tr("0x30")](tr("0x14")))return;const e=t[tr("0xd")],n=t[tr("0x48")][tr("0x11")](tr("0x38")),o=t[tr("0x48")][tr("0x11")](tr("0x2a"));function s(e){return()=>{const s=t[tr("0x16")][tr("0x11")](e);let r=Array[tr("0x3b")](t.model.document[tr("0x2c")][tr("0x26")]());if(a(e)){r=o[tr("0x23")](r);const t=[];for(const e of r)o[tr("0x28")](e)&&t[tr("0x3f")](e);r=t}t.model[tr("0x1")]((()=>{n.markMultiRangeBlockFormat(r,{commandName:e,commandParams:[{forceValue:!s[tr("0x21")]}],formatGroupId:tr("0x34")},[],tr("0x1d"))}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0x3b")](t);const n=e[tr("0x1e")]((t=>!t[tr("0x17")](tr("0x1a"))));return n>-1&&(e=e[tr("0x13")](0,n)),e}(t[tr("0x37")].document[tr("0x2c")][tr("0x26")]()),s=o[o[tr("0x2d")]-1],r=t[tr("0x37")].schema.isObject(s)?tr("0xa"):tr("0x3a"),i=t[tr("0x37")].createRange(t[tr("0x37")][tr("0x22")](o[0],"before"),t[tr("0x37")][tr("0x22")](s,r));t[tr("0x37")][tr("0x1")]((()=>{n[tr("0x49")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x34")},function(t){const e=new Set;for(const n of t){let t=n[tr("0x40")];for(;t&&t.getAttribute(tr("0xe"))>n[tr("0x1c")](tr("0xe"));)e[tr("0x10")](t),t=t[tr("0x40")]}return Array[tr("0x3b")](e)}(o))}))}}function x(e){return()=>{const o=t[tr("0x37")][tr("0x3")][tr("0x2c")][tr("0x26")]()[tr("0xb")]().value,s=t[tr("0x37")][tr("0x22")](o,tr("0x45")),r=t[tr("0x37")][tr("0x22")](o,0),i=t[tr("0x37")][tr("0x8")](s,r);t[tr("0x37")][tr("0x1")]((()=>{n[tr("0x49")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x34")})}))}}function a(e){const n=t[tr("0x16")][tr("0x11")](tr("0x3d"))[tr("0x21")],o=t[tr("0x16")][tr("0x11")](tr("0x15")).value;return"numberedList"===e?n:o}n.enableCommand(tr("0x15"),s("numberedList")),n.enableCommand(tr("0x3d"),s("bulletedList")),n[tr("0x1b")](tr("0x31"),r(tr("0x31"))),n[tr("0x1b")](tr("0x46"),r(tr("0x46"))),n[tr("0x1b")]("splitListItemAfter",x(tr("0x2"))),n[tr("0x1b")](tr("0x12"),x(tr("0x12"))),n[tr("0x7")][tr("0x6")]((function(e){const n=!t[tr("0x37")][tr("0x24")][tr("0x2b")](e),o=e[tr("0x2f")],s=e.nextSibling,r=e[tr("0x1c")](tr("0x1a")),i=!o||o.getAttribute(tr("0x1a"))!==r,x=!s||s.getAttribute(tr("0x1a"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,tr("0x3c"),t))),n[tr("0x7")][tr("0x29")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x36")]){case tr("0x3d"):r=n[tr("0x27")][0][tr("0x2e")],i=a(n.commandName),o=tr(r?"0x5":"0x4"),i&&(o=tr("0x3e")),s={type:tr("0x43"),content:Yo(e,o,Yo(e,"ELEMENT_BULLETED_LIST"))};break;case tr("0x15"):r=n[tr("0x27")][0][tr("0x2e")],i=a(n[tr("0x36")]),o=r?"*Format:* insert into %0":"*Format:* remove from %0",i&&(o=tr("0x3e")),s={type:tr("0x43"),content:Yo(e,o,Yo(e,tr("0x39")))};break;case tr("0x31"):o="*Indent:* %0",s={type:tr("0x43"),content:Yo(e,o,Yo(e,tr("0x3c")))};break;case tr("0x46"):o=function(t){const e=t.getFirstRange();let n=e[tr("0x25")][tr("0x18")];for(;n&&e[tr("0x35")](n);){if(n[tr("0x1c")](tr("0xe"))>0)return!1;n=n.nextSibling}return!0}(t)?Yo(e,"*Format:* remove from %0",Yo(e,function(t){const e=t[tr("0x0")]()[tr("0x25")].nodeAfter;return tr("0xc")+e[tr("0x1c")](tr("0x34"))[tr("0x33")]()+tr("0x9")}(t))):Yo(e,"*Outdent:* %0",Yo(e,tr("0x3c"))),s={type:tr("0x43"),content:o};break;case"mergeListItemBackward":case"mergeListItemForward":!1===n[tr("0x1f")]&&(o="*Merge:* %0",s={type:tr("0xf"),content:Yo(e,o,Yo(e,tr("0x3c")))})}return s})),n[tr("0x42")].registerCustomCallback(tr("0x47"),"documentList",tr("0x19"),(function(e,n){const o=[];for(let n of e)n[tr("0x25")][tr("0x18")]===n.end.parent&&(n=t[tr("0x37")].createRange(t[tr("0x37")][tr("0x22")](n[tr("0x25")][tr("0x18")],0))),o.push(n);t[tr("0x37")][tr("0x1")]((e=>{const s=t[tr("0x37")][tr("0x3")][tr("0x2c")],r=Array[tr("0x3b")](s.getRanges())[tr("0x32")]((t=>i.LiveRange[tr("0x44")](t)));e.setSelection(o),t[tr("0x16")][tr("0x11")](n[tr("0x36")]).refresh(),n[tr("0x27")][tr("0x3f")]({forceDefaultExecution:!0}),t[tr("0x41")](n[tr("0x36")],...n[tr("0x27")]),e.setSelection(r);for(const t of r)t.detach()}))}))}}var nr=n(331);const or=["downcastDispatcher","parent","hasClass","enterBlock","getFirstRange","writer","mapper","options","model","createRange","nextSibling","setSelection","get","addMarker:suggestion:insertion","remove","bind","commands","markerNameToElements","ck-suggestion-marker-split","TrackChangesEditing","getFirstPosition","showSuggestionHighlights","selection","detach","high","init","fromRange","enableCommand","split","data","afterExecute","markerName","enter"];var sr,rr;sr=or,rr=459,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("0x1c")](){const t=this.editor,e=t.plugins[ir("0xf")](ir("0x16")),n=t[ir("0x13")][ir("0xf")](ir("0x2"));e[ir("0x1e")]("enter",(()=>{t[ir("0xb")].change((o=>{const s=t.model.document[ir("0x19")],r=s[ir("0x17")](),x=i.LiveRange[ir("0x1d")](s[ir("0x7")]());if(n[ir("0x6")](o)){const n=t[ir("0xb")].createPositionAt(r[ir("0x4")][ir("0xd")],0),s=o[ir("0xc")](r,n);e.markInsertion(s)}else o[ir("0xe")](o[ir("0xc")](x.end));x[ir("0x1a")](),n.fire(ir("0x0"),{writer:o})}))})),t.editing[ir("0x3")].on(ir("0x10"),hs(t,ir("0x1f")),{priority:ir("0x1b")}),t.editing[ir("0x3")].on("removeMarker:suggestion:insertion",((t,e,n)=>{const o=n[ir("0x9")][ir("0x14")](e[ir("0x1")]);if(o)for(const t of o)t[ir("0x5")](ir("0x15"))&&(n[ir("0x9")].unbindElementFromMarkerName(t,e[ir("0x1")]),n[ir("0x8")][ir("0x11")](t))}),{priority:ir("0x1b")}),t[ir("0x20")].downcastDispatcher.on(ir("0x10"),((e,n,o)=>{o[ir("0xa")][ir("0x18")]&&hs(t,ir("0x1f"),{showActiveMarker:!1})[ir("0x12")](this)(e,n,o)}),{priority:"high"})}}const ar=["createRange","findPrevious","TrackChangesEditing","_isInDeletionRange","FindAndReplaceEditing","createPositionAt","getIntersection","FindAndReplaceUtils","handleFindCommand","end","enableCommand","filter","replace","get","afterInit","item","bind","markers","model","find","string","replaceAll","has","findByTextCallback","editor","plugins"];var cr,lr;cr=ar,lr=469,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const ur=function(t,e){return ar[t-=0]};class dr extends t.Plugin{[ur("0xd")](){if(!this[ur("0x17")][ur("0x18")][ur("0x15")](ur("0x3")))return;const t=this.editor[ur("0x18")][ur("0xc")](ur("0x1"));t[ur("0x9")](ur("0x12"),this[ur("0x7")][ur("0xf")](this)),t[ur("0x9")]("findNext"),t[ur("0x9")](ur("0x0")),t[ur("0x9")](ur("0xb")),t[ur("0x9")](ur("0x14"))}handleFindCommand(t,e,n={}){const o=this[ur("0x17")][ur("0x18")].get(ur("0x6"));void 0!==n&&t((t=>(ur("0x13")==typeof e?o[ur("0x16")](e,n):e)(t)[ur("0xa")]((e=>!1===this._isInDeletionRange(e,t[ur("0xe")])))),n)}[ur("0x2")](t,e){const n=this[ur("0x17")][ur("0x11")][ur("0x19")](this[ur("0x17")][ur("0x11")][ur("0x4")](e,t.start),this[ur("0x17")][ur("0x11")].createPositionAt(e,t[ur("0x8")]));for(const t of this[ur("0x17")][ur("0x11")][ur("0x10")].getMarkersGroup("suggestion:deletion"))if(null!==n[ur("0x5")](t.getRange()))return!0;return!1}}const gr=["trim","fontColor.colors","markInlineFormat","label","plugins","*Set font family:* %0","_enableCommand","fontBackgroundColor","fontFamily","*Set font size:* %0","document","model","afterInit","fontSize.options","TrackChangesEditing","format","*Set font background color:* %0","value","config","from","fontSize","fontColor","commandParams","FontSizeEditing","FontFamilyEditing","toLowerCase","editor","*Reset font family*","commandName","normalizeSizeOptions","registerDescriptionCallback","change","get","find","isCollapsed","selection","_descriptionFactory"];var mr,fr;mr=gr,fr=322,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:hr("0x22"),commandName:hr("0x1f")},{pluginName:hr("0x23"),commandName:hr("0x13")},{pluginName:"FontColorEditing",commandName:hr("0x20")},{pluginName:"FontBackgroundColorEditing",commandName:hr("0x12")}];class br extends t.Plugin{[hr("0x17")](){const t=this[hr("0x0")].locale;for(const{pluginName:t,commandName:e}of pr)this[hr("0x0")][hr("0xf")].has(t)&&this._enableCommand(e);this.editor[hr("0xf")].get(hr("0x19"))[hr("0xa")][hr("0x4")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0x1f")==o[hr("0x2")]){const e=o[hr("0x21")][0][hr("0x1c")];if(e){const o=n(this[hr("0x0")][hr("0xf")][hr("0x6")]("FontSize")[hr("0x3")](this.editor.config.get(hr("0x18")))[hr("0x7")]((t=>t[hr("0x16")]==e)).title)[hr("0x24")]();return{type:hr("0x1a"),content:Yo(t,hr("0x14"),o)}}return{type:hr("0x1a"),content:Yo(t,"*Reset font size*")}}if(hr("0x13")==o[hr("0x2")]){const e=o.commandParams[0].value;return e?{type:hr("0x1a"),content:Yo(t,hr("0x10"),e)}:{type:hr("0x1a"),content:Yo(t,hr("0x1"))}}if("fontColor"==o[hr("0x2")]){const e=o[hr("0x21")][0].value;if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x0")][hr("0x1d")].get(hr("0xc")))[hr("0x7")]((t=>t[hr("0x16")]==e));let r=e,i="";return o&&(r=o.label,i=n(r)[hr("0x24")]()),{type:hr("0x1a"),content:Yo(t,"*Set font color:* %0",i)[hr("0xb")](),color:{value:e,title:i||r}}}return{type:hr("0x1a"),content:Yo(t,"*Reset font color*")}}if(hr("0x12")==o[hr("0x2")]){const e=o[hr("0x21")][0].value;if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x0")].config[hr("0x6")]("fontBackgroundColor.colors"))[hr("0x7")]((t=>t[hr("0x16")]==e));let r=e,i="";return o&&(r=o[hr("0xe")],i=n(r)[hr("0x24")]()),{type:hr("0x1a"),content:Yo(t,hr("0x1b"),i)[hr("0xb")](),color:{value:e,title:i||r}}}return{type:hr("0x1a"),content:Yo(t,"*Reset font background color*")}}}}))}[hr("0x11")](t){const e=this.editor;e[hr("0xf")][hr("0x6")]("TrackChangesEditing").enableCommand(t,((n,o={})=>{const s=e.model[hr("0x15")][hr("0x9")],r=o[hr("0x1c")];s[hr("0x8")]?n(o):e.model[hr("0x5")]((()=>{const n=Array[hr("0x1e")](s.getRanges());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0x16")]);for(const o of n)e[hr("0xf")][hr("0x6")]("TrackChangesEditing")[hr("0xd")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["title","locale","FontSize","enableCommand","join","normalizeSizeOptions","format","*Set format to:* %0","isBlock","toUpperCase","markInlineFormat","afterInit","isCollapsed","backward","modifySelection","selection","from","config","word","document","change","boolean","model","length","getSelectedBlocks","copyFormat","commands","entries","fontColor.colors","createSelection","createRange","TrackChangesEditing","fontSize","_descriptionFactory","fontSize.options","editor","label","push","toLowerCase","get","registerDescriptionCallback","getFirstPosition","getItems","pasteFormat","split","commandParams","*Remove all formatting*","getRanges","find","plugins","keys"];var _r,Tr;_r=Er,Tr=384,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0x23")](){const t=this[Cr("0x8")],n=t[Cr("0x2e")],o=n[Cr("0x2b")][Cr("0x27")],s=t[Cr("0x16")][Cr("0xc")](Cr("0x4")),r=t[Cr("0x19")],i=t[Cr("0x32")][Cr("0xc")](Cr("0x31")),x=t[Cr("0x32")][Cr("0xc")](Cr("0x10"));i&&x&&(s.enableCommand(Cr("0x10"),((t,r={})=>{const i=r;n[Cr("0x2c")]((()=>{const t=Array[Cr("0x28")](o[Cr("0x14")]()),r=o[Cr("0x24")]?[kr(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t.getAttributes()){const t=e.getAttributeProperties(n);t&&t.isFormatting&&(yield n)}}(t,n));for(const e of t[Cr("0x14")]())for(const t of e[Cr("0xf")]())!n[Cr("0x20")](t)&&o(t)&&(yield t);for(const e of t[Cr("0x30")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n.schema))||0!==Object[Cr("0x17")](i)[Cr("0x2f")])for(const t of r)s[Cr("0x22")](t,{commandName:Cr("0x10"),commandParams:[i]})}))})),s[Cr("0x6")][Cr("0xd")]((e=>{const{data:n}=e;if(n&&Cr("0x10")===n.commandName){const e=[],o=n[Cr("0x12")][0];for(const[n,s]of Object[Cr("0x0")](o))e[Cr("0xa")](Ar(t,n,s));return e[Cr("0x2f")]?{type:Cr("0x1e"),content:Yo(r,Cr("0x1f"),e[Cr("0x1c")](", "))}:{type:Cr("0x1e"),content:Yo(r,Cr("0x13"))}}})),t.plugins[Cr("0xc")]("TrackChangesEditing")[Cr("0x1b")]("copyFormat"))}}function kr(t,e){const n=t[Cr("0x2")](e);t.modifySelection(n,{unit:Cr("0x2a"),direction:Cr("0x25")});const o=n[Cr("0xe")]();t[Cr("0x26")](n,{unit:Cr("0x2a"),direction:"forward"});const s=n.getLastPosition();return t[Cr("0x3")](o,s)}function Ar(t,e,n){const o=t[Cr("0x19")].t,r=e[Cr("0x11")](/(?=[A-Z])/).join(" "),i=o(r.charAt(0)[Cr("0x21")]()+r.slice(1)).toLowerCase();if(Cr("0x2d")==typeof n)return i;if("fontColor"===e||"fontBackgroundColor"===e){const e=(0,s.normalizeColorOptions)(t[Cr("0x29")][Cr("0xc")](Cr("0x1")))[Cr("0x15")]((t=>t[Cr("0x2e")]==n));return i+" ("+(e?o(e[Cr("0x9")])[Cr("0xb")]():n)+")"}if(Cr("0x5")===e&&isNaN(parseFloat(n))){const e=t[Cr("0x16")][Cr("0xc")](Cr("0x1a"))[Cr("0x1d")](t[Cr("0x29")].get(Cr("0x7"))).find((t=>t[Cr("0x2e")]==n));return i+" ("+(e?o(e[Cr("0x18")])[Cr("0xb")]():n)+")"}return i+" ("+n+")"}const vr=["schema","document","value","name","enableCommand","blockName","selection","match","_descriptionFactory","get","parent","checkChild","model","has","isObject","afterInit","from","registerDescriptionCallback","commandName","format","config","plugins","commandParams","locale","editor","find","change","heading","*Change to:* %0","title","HeadingEditing"];var Rr,Sr;Rr=vr,Sr=125,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const Ir=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Ir("0xe")](){const t=this[Ir("0x17")],e=t[Ir("0x16")],n=t[Ir("0x13")][Ir("0x8")]("heading.options");if(!t[Ir("0x14")][Ir("0xc")](Ir("0x1d")))return;const o=t.plugins.get("TrackChangesEditing");o[Ir("0x3")]("heading",((e,n)=>{const s=n.value,r=Array[Ir("0xf")](this.editor[Ir("0xb")][Ir("0x0")][Ir("0x5")].getSelectedBlocks()).filter((t=>{return e=t,n=s,(o=this.editor[Ir("0xb")][Ir("0x1e")])[Ir("0xa")](e[Ir("0x9")],n)&&!o[Ir("0xd")](e)&&e[Ir("0x2")]!=n;var e,n,o}));t[Ir("0xb")][Ir("0x19")]((()=>{for(const t of r)o.markBlockFormat(t,{commandName:Ir("0x1a"),commandParams:[n],formatGroupId:Ir("0x4")},fs(t))}))}));for(const t of n)"paragraph"!=t[Ir("0xb")]&&o._descriptionFactory.registerElementLabel(t[Ir("0xb")],(e=>{const n=Nr(t[Ir("0xb")]);return null!==n?s(e,n):r(e,t.title)}));function s(t,n){return Yo(e,"ELEMENT_HEADING",[t,n])}function r(t,n){return Yo(e,"ELEMENT_HEADING_CUSTOM",[t,n])}o[Ir("0x7")][Ir("0x10")]((t=>{const{type:o,data:i}=t;if("formatBlock"==o&&i&&"heading"==i[Ir("0x11")]){const t=i[Ir("0x15")][0][Ir("0x1")],o=Nr(t);if(null!==o)return{type:Ir("0x12"),content:Yo(e,Ir("0x1b"),s(1,o))};const x=n[Ir("0x18")]((e=>e[Ir("0xb")]===t))[Ir("0x1c")];return{type:Ir("0x12"),content:Yo(e,"*Change to:* %0",r(1,x))}}}))}}function Nr(t){const e=t[Ir("0x6")](/^heading(\d+)$/);return e?e[1]:null}const wr=["model","selection","item","highlight.options","editor","find","getFirstPosition","TrackChangesEditing","getLastMatchingPosition","backward","format","commandParams","push","hasAttribute","get","commandName","toLowerCase","HighlightEditing","document","change","afterInit","*Remove highlight*","getRanges","createRange","FORMAT_HIGHLIGHT","value","markInlineFormat","plugins","getAttribute","isCollapsed","highlight","title"];var Mr,Or;Mr=wr,Or=182,function(t){for(;--t;)Mr.push(Mr.shift())}(++Or);const Fr=function(t,e){return wr[t-=0]};class Pr extends t.Plugin{[Fr("0x1e")](){const t=this[Fr("0xe")];if(!t[Fr("0x5")].has(Fr("0x1b")))return;const e=t[Fr("0x5")][Fr("0x18")](Fr("0x11"));e.enableCommand(Fr("0x8"),((n,o={})=>{const s=t.model[Fr("0x1c")][Fr("0xb")],r=s[Fr("0x6")]("highlight");let i=o[Fr("0x3")],x=[];if(s[Fr("0x7")]){const e=s[Fr("0x10")]();if(!s[Fr("0x17")]("highlight"))return void n(o);{const n=t=>t[Fr("0xc")][Fr("0x6")](Fr("0x8"))===r,o=e[Fr("0x12")](n,{direction:Fr("0x13")}),s=e[Fr("0x12")](n);x=[t.model[Fr("0x1")](o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0x0")]())i?x[Fr("0x16")](e):x[Fr("0x16")](...ms(Fr("0x8"),e,t[Fr("0xa")]));t[Fr("0xa")][Fr("0x1d")]((()=>{for(const t of x)e[Fr("0x4")](t,{commandName:"highlight",commandParams:[{value:i}]})}))}));const n=t.locale;e._descriptionFactory.registerDescriptionCallback((e=>{const{type:o,data:s}=e;if("formatInline"==o&&s&&"highlight"==s[Fr("0x19")]){const e=n.t,o=s[Fr("0x15")][0].value;if(o){const s=t.config.get(Fr("0xd"))[Fr("0xf")]((t=>t[Fr("0xa")]==o)),r=e(s[Fr("0x9")])[Fr("0x1a")]();return{type:Fr("0x14"),content:Yo(n,"*Set highlight:* %0",r),color:{value:s.color,title:s[Fr("0x9")]}}}return{type:Fr("0x14"),content:Yo(n,Fr("0x1f"),Yo(n,Fr("0x2")))}}}))}}const Dr=["_descriptionFactory","createEmptyElement","insert","TrackChangesEditing","ck-horizontal-line","div","addClass","enableCommand","editor","has","plugins","createContainerElement","locale","createPositionAt","HorizontalLineEditing","dataDowncast","for","registerElementLabel","horizontalLine","afterInit","get"];var Br,jr;Br=Dr,jr=132,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0xd")](){const t=this[Ur("0x2")];if(!t[Ur("0x4")][Ur("0x3")](Ur("0x8")))return;t[Ur("0x4")].get(Ur("0x12"))[Ur("0x1")](Ur("0xc"));const e=t[Ur("0x4")][Ur("0xe")]("TrackChangesEditing"),n=t[Ur("0x6")];e[Ur("0xf")][Ur("0xb")]("horizontalLine",(t=>Yo(n,"ELEMENT_HORIZONTAL_LINE",t))),t.conversion[Ur("0xa")](Ur("0x9")).elementToStructure({model:Ur("0xc"),view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return null;const o=e[Ur("0x5")](Ur("0x14")),s=e[Ur("0x10")]("hr");return e[Ur("0x0")](Ur("0x13"),o),e[Ur("0x11")](e[Ur("0x7")](o,0),s),o},converterPriority:"high"})}}const Hr=["locale","HtmlEmbed","afterInit","getSelectedElement","editing","selection","commandName","registerElementLabel","ELEMENT_HTML_EMBED","enableCommand","rawHtml","TrackChangesEditing","cancel","rawHtmlApi","plugins","get","registerDescriptionCallback","htmlEmbed","model","document","view","markBlockFormat"];var zr,Wr;zr=Hr,Wr=159,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0x13")](){const t=this.editor;if(!t.plugins.has(Vr("0x12")))return;const e=t.plugins[Vr("0xa")](Vr("0x6")),n=t[Vr("0x11")],o=t[Vr("0x15")][Vr("0xf")][Vr("0xe")][Vr("0x0")];e._descriptionFactory[Vr("0x2")](Vr("0x5"),(t=>Yo(n,Vr("0x3"),t))),t[Vr("0x9")][Vr("0xa")](Vr("0x6"))[Vr("0x4")](Vr("0xc"),((n,s)=>{const r=t[Vr("0xd")],i=r.document[Vr("0x0")];r.change((()=>{const t=function(t){const e=t[Vr("0x14")]();return e&&e.is("element",Vr("0x5"))?t[Vr("0x14")]():null}(i);if(!t)return void n(null);const r=t.getAttribute("value")||"";void 0!==s&&s!==r&&(e[Vr("0x10")](t,{commandName:Vr("0xc"),commandParams:[s]}),o[Vr("0x14")]().getCustomProperty(Vr("0x8"))[Vr("0x7")]())}))})),e._descriptionFactory[Vr("0xb")]((t=>{const{data:e}=t;if(e&&Vr("0xc")==e[Vr("0x1")]){const t=Yo(n,Vr("0x3"));return{type:"format",content:Yo(n,"*Change %0 content*",t)}}}))}}const qr=["formatBlock","getContainedElement","format","FORMAT_SIDE_IMAGE","forward","addObject","Inline image to block image","ImageResize","getAttribute","has","detach","nodeAfter","discard","shouldConvertImageType","ImageUploadEditing","previous","ELEMENT_CAPTION","imageStylePostApply","ImageUtils","imageTextAlternative","markBlockFormat","document","imageInline","enableCommand","chain","ImageTextAlternativeEditing","toPrevious","commands","newRange","name","registerCustomCallback","normalizedStyles","uploadImage","ImageBlockEditing","commandReversedParams","side","*Reset image width*","title","ELEMENT_INLINE_IMAGE","isEqual","isBefore","toNext","editor","forEach","model","locale","Users","deletion","backward","suggestion","schema","imageCaption","ImageEditing","formatInline","imageStyle","start","ImageCaptionUtils","*Format:* %0","*Set image text alternative:* %0","width","refresh","ImageInlineEditing","_descriptionFactory","TrackChangesEditing","isCollapsed","imageStylePreApply","findIndex","commandParams","imageTypeInline","newValue","_suggestionFactory","from","type","_findSuggestions","markDeletion","isBlockImage","*Remove image text alternative*","next","ImageStyleEditing","insertion","removeObject","registerElementLabel","convertInlineImageToBlock","getSuggestionCallback","getCaptionFromImageModelElement","discardSuggestion","join","getSuggestions","get","isInlineImage","plugins","accept","convertBlockImageToInline","createRange","ImageCaptionEditing","end","filter","fromPosition","getSuggestion","selection","markInsertion","alt","registerDescriptionCallback","value","isInContent","insertImage","imageTypeBlock","subType","getFirstRange","registerPostFixer","markInlineFormat","createRangeOn","getChangedMarkers","resizeImage","nodeBefore","length","getClosestSelectedImageElement","change","getNearestSelectionRange","hasSuggestion","element","commandName","_splitMarkerName"];var Xr,$r;Xr=qr,$r=101,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{afterInit(){const t=this[Jr("0x40")];if(!t[Jr("0x70")][Jr("0x1f")](Jr("0x4a")))return;const n=t.plugins[Jr("0x6e")](Jr("0x55")),o=t[Jr("0x70")].get(Jr("0x28")),s={},r=t[Jr("0x43")];if(n[Jr("0x2d")](Jr("0x4")),n[Jr("0x54")].registerElementLabel("imageBlock",(t=>Yo(r,"ELEMENT_IMAGE",t))),n._descriptionFactory[Jr("0x67")](Jr("0x2c"),(t=>Yo(r,Jr("0x3c"),t))),n._descriptionFactory.registerElementLabel("caption",(()=>Yo(r,Jr("0x26")))),t.plugins.has(Jr("0x24"))&&n.enableCommand(Jr("0x36")),t[Jr("0x70")][Jr("0x1f")](Jr("0x37"))&&t[Jr("0x70")][Jr("0x1f")](Jr("0x53"))&&(n[Jr("0x2d")]("imageTypeInline",((e,s)=>{const r=o[Jr("0xf")](t[Jr("0x42")][Jr("0x2b")].selection);t[Jr("0x42")][Jr("0x10")]((()=>{n[Jr("0x2a")](r,{commandName:Jr("0x5a"),commandParams:[s]},[],Jr("0x72"))}))})),n[Jr("0x2d")](Jr("0x5"),((e,s)=>{t.model[Jr("0x10")]((r=>{let x=o.getClosestSelectedImageElement(t[Jr("0x42")][Jr("0x2b")][Jr("0x79")]),a=r.createRangeOn(x);const c=i.LivePosition[Jr("0x77")](a[Jr("0x4d")],Jr("0x30")),l=i.LivePosition[Jr("0x77")](a.end,Jr("0x3f"));n.forceDefaultExecution((()=>e(s))),x=o[Jr("0xf")](t[Jr("0x42")][Jr("0x2b")][Jr("0x79")]),a=r.createRangeOn(x);const u=r.createRange(c,l);c[Jr("0x20")](),l[Jr("0x20")](),n[Jr("0x2a")](x,{commandName:"imageTypeInline",commandParams:[]},[],Jr("0x68")),u.start[Jr("0x3e")](a[Jr("0x4d")])&&n.markInsertion(r.createRange(u[Jr("0x4d")],a[Jr("0x4d")]),"convertInlineImageToBlock"),a[Jr("0x75")].isBefore(u[Jr("0x75")])&&n[Jr("0x7a")](r.createRange(a[Jr("0x75")],u[Jr("0x75")]),Jr("0x68"))}))})),n[Jr("0x5c")].registerCustomCallback(Jr("0x16"),Jr("0x68"),"join",(()=>{})),n._suggestionFactory[Jr("0x34")](Jr("0x16"),Jr("0x68"),Jr("0x71"),(()=>{})),n._suggestionFactory.registerCustomCallback("formatBlock",Jr("0x68"),Jr("0x22"),n[Jr("0x5c")].getSuggestionCallback("formatBlock","","accept")),n[Jr("0x5c")][Jr("0x34")](Jr("0x65"),Jr("0x68"),"join",(()=>{})),n[Jr("0x5c")][Jr("0x34")](Jr("0x65"),Jr("0x68"),Jr("0x22"),(([e])=>{const o=n._suggestionFactory[Jr("0x69")](Jr("0x65"),"",Jr("0x22"));let s=e[Jr("0x4d")],r=e[Jr("0x75")];const i=t[Jr("0x42")][Jr("0x48")][Jr("0x11")](s,Jr("0x46")),x=t[Jr("0x42")][Jr("0x48")][Jr("0x11")](r,Jr("0x1a"));i[Jr("0x56")]&&(s=i[Jr("0x4d")]),x[Jr("0x56")]&&(r=x[Jr("0x75")]),o([t[Jr("0x42")][Jr("0x73")](s,r)])})),n[Jr("0x5c")][Jr("0x34")](Jr("0x16"),Jr("0x68"),"chain",c),n._suggestionFactory[Jr("0x34")](Jr("0x65"),Jr("0x68"),Jr("0x2e"),c)),t.plugins[Jr("0x1f")](Jr("0x74"))&&(n[Jr("0x2d")]("toggleImageCaption",((e,s)=>{const r=t[Jr("0x70")][Jr("0x6e")](Jr("0x4e"));let i=o[Jr("0xf")](t[Jr("0x42")][Jr("0x2b")][Jr("0x79")]),x=r[Jr("0x6a")](i);t[Jr("0x42")].change((()=>{if(x)return void n[Jr("0x60")](t[Jr("0x42")].createRangeOn(x));const a=o[Jr("0x61")](i);e(s),i=o[Jr("0xf")](t[Jr("0x42")][Jr("0x2b")][Jr("0x79")]),x=r[Jr("0x6a")](i),n[Jr("0x7a")](t[Jr("0x42")][Jr("0xa")](x),a?null:"imageCaption")}))})),n[Jr("0x5c")].registerCustomCallback("insertion",Jr("0x49"),Jr("0x2e"),c)),t[Jr("0x70")][Jr("0x1f")](Jr("0x64"))){n[Jr("0x2d")](Jr("0x4c"),((s,r)=>{const i=t.plugins[Jr("0x6e")](Jr("0x44")).me,x=t[Jr("0x31")][Jr("0x6e")](Jr("0x4c"));let a=o[Jr("0xf")](t[Jr("0x42")][Jr("0x2b")].selection),c=t.model[Jr("0xa")](a),l=x[Jr("0x2")];if(l==r[Jr("0x2")])return;const u={commandName:Jr("0x4c"),commandParams:[r],formatGroupId:(0,e.uid)()};t[Jr("0x42")][Jr("0x10")]((()=>{if(n[Jr("0x6d")]().filter((t=>t[Jr("0x3")]&&i==t.author&&(Jr("0x16")==t[Jr("0x5e")]||"formatInline"==t[Jr("0x5e")])&&(Jr("0x57")==t[Jr("0x6")]||Jr("0x27")==t[Jr("0x6")])&&t[Jr("0x7")]()[Jr("0x3d")](c)))[Jr("0x41")]((t=>n[Jr("0x6b")](t.head))),a=o[Jr("0xf")](t.model.document[Jr("0x79")]),c=t[Jr("0x42")].createRangeOn(a),x[Jr("0x52")](),t[Jr("0x31")][Jr("0x6e")](Jr("0x5a")).refresh(),t.commands.get(Jr("0x5"))[Jr("0x52")](),l=x[Jr("0x2")],l!=r[Jr("0x2")])return o[Jr("0x6f")](a)&&x[Jr("0x23")](r[Jr("0x2")],a)?(s(r),a=o[Jr("0xf")](t.model[Jr("0x2b")][Jr("0x79")]),void n.markBlockFormat(a,{...u,commandReversedParams:[{value:l||null}]},[],"imageStylePreApply")):void(o[Jr("0x61")](a)?n[Jr("0x2a")](a,u,[],"imageStylePostApply"):n[Jr("0x9")](c,u,Jr("0x27")))}))}));for(const e of t[Jr("0x70")][Jr("0x6e")](Jr("0x64"))[Jr("0x35")])s[e[Jr("0x33")]]=e[Jr("0x3b")].toLowerCase();n[Jr("0x5c")][Jr("0x34")]("formatBlock",Jr("0x57"),"join",(()=>{})),n._suggestionFactory.registerCustomCallback(Jr("0x16"),Jr("0x27"),"join",(()=>{})),n[Jr("0x5c")][Jr("0x34")](Jr("0x4b"),Jr("0x27"),Jr("0x6c"),(()=>{})),n[Jr("0x5c")].registerCustomCallback(Jr("0x16"),Jr("0x57"),Jr("0x71"),(()=>{})),n._suggestionFactory[Jr("0x34")](Jr("0x16"),Jr("0x57"),Jr("0x22"),((t,e)=>{n[Jr("0x5c")][Jr("0x69")](Jr("0x16"),"","accept")(t,{commandName:e[Jr("0x14")],commandParams:e[Jr("0x38")]})})),n[Jr("0x5c")][Jr("0x34")](Jr("0x16"),"imageStylePreApply","chain",c)}const x=[{type:Jr("0x16"),subType:"imageStylePreApply"},{type:"insertion",subType:Jr("0x49")},{type:Jr("0x16"),subType:"convertInlineImageToBlock"},{type:Jr("0x65"),subType:Jr("0x68")}];function a(t,e){const s=x[Jr("0x58")]((({type:e,subType:n})=>t[Jr("0x5e")]==e&&t[Jr("0x6")]==n)),r=x[Jr("0x58")]((({type:t,subType:n})=>e[Jr("0x5e")]==t&&e[Jr("0x6")]==n));if(s<0||r<0)return!1;const i=t[Jr("0x7")](),a=e[Jr("0x7")]();if((0==s||1==s)&&2==r&&i.isIntersecting(a))return!0;if(2==s&&3==r){const t=n[Jr("0x5f")](i,Jr("0x65"))[Jr("0x76")]((({suggestion:t,meta:e})=>e.isOwn&&Jr("0x68")==t.subType));if(t.length>1&&a[Jr("0x75")][Jr("0x3d")](i[Jr("0x4d")]))return!0;if(1==t[Jr("0xe")]&&(i.start[Jr("0x3d")](a[Jr("0x75")])||i[Jr("0x75")].isEqual(a[Jr("0x4d")])))return!0}if(3==s&&3==r&&i[Jr("0x4d")].isBefore(a[Jr("0x4d")])){const t=i[Jr("0x75")][Jr("0x21")],e=a[Jr("0x4d")][Jr("0xd")];return o.isBlockImage(t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Jr("0x42")][Jr("0x2b")][Jr("0x8")]((()=>{let e=!1;const s=Array[Jr("0x5d")](t[Jr("0x42")][Jr("0x2b")].differ[Jr("0xb")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Jr("0x15")](t);if(Jr("0x47")==s&&n[Jr("0x12")](a)){if(Jr("0x16")==i&&(Jr("0x57")==x||"imageStylePostApply"==x)){const t=n.getSuggestion(a);if(r[Jr("0x32")]){const s=t[Jr("0x7")]()[Jr("0x17")]();if(o[Jr("0x61")](s))continue;n[Jr("0x6b")](t),e=!0}}if(Jr("0x65")==i&&Jr("0x49")==x&&!r[Jr("0x32")]){const t=n[Jr("0x78")](a);t[Jr("0x63")]&&t[Jr("0x63")][Jr("0x3")]&&(n[Jr("0x6b")](t[Jr("0x63")]),e=!0)}}}return e})),t[Jr("0x70")][Jr("0x1f")](Jr("0x1d"))&&n[Jr("0x2d")](Jr("0xc"),((e,s)=>{const r=o[Jr("0xf")](t[Jr("0x42")].document[Jr("0x79")]);r[Jr("0x1e")]("width")!=s.width&&t[Jr("0x42")][Jr("0x10")]((()=>{n[Jr("0x2a")](r,{commandName:Jr("0xc"),commandParams:[s]})}))})),t[Jr("0x70")][Jr("0x1f")](Jr("0x2f"))&&n[Jr("0x2d")](Jr("0x29"),((e,s)=>{const r=o[Jr("0xf")](t[Jr("0x42")].document[Jr("0x79")]);(r.hasAttribute(Jr("0x0"))?r[Jr("0x1e")]("alt"):"")!=s[Jr("0x5b")]&&t.model[Jr("0x10")]((()=>{n[Jr("0x2a")](r,{commandName:Jr("0x29"),commandParams:[s]})}))})),n[Jr("0x54")][Jr("0x1")]((t=>{if(x.find((({type:e,subType:n})=>t[Jr("0x5e")]==e&&t[Jr("0x6")]==n)))return t[Jr("0x25")]?{}:void 0})),n[Jr("0x54")][Jr("0x1")]((t=>{if(Jr("0x65")==t[Jr("0x5e")]||Jr("0x45")==t[Jr("0x5e")]){const e=t[Jr("0x17")]();if(e&&e.is(Jr("0x13"),"caption"))return{type:Jr("0x65")==t[Jr("0x5e")]?Jr("0x1b"):Jr("0x66"),element:e,quantity:1}}})),n[Jr("0x54")][Jr("0x1")]((t=>Jr("0x16")==t[Jr("0x5e")]&&"convertInlineImageToBlock"==t[Jr("0x6")]?{type:Jr("0x18"),content:Jr("0x1c")}:"formatBlock"==t[Jr("0x5e")]&&Jr("0x72")==t[Jr("0x6")]?{type:Jr("0x18"),content:"Block image to inline image"}:void 0)),n[Jr("0x54")][Jr("0x1")]((t=>{const{data:e}=t;if(e){if(Jr("0x4c")==e.commandName){const t=e[Jr("0x59")][0][Jr("0x2")];return n=Jr("0x39")===t?Yo(r,Jr("0x19")):s[t]||t,{type:Jr("0x18"),content:Yo(r,Jr("0x4f"),n)}}if(Jr("0x29")==e[Jr("0x14")]){const t=e[Jr("0x59")][0][Jr("0x5b")];return t?{type:"format",content:Yo(r,Jr("0x50"),'"'+t+'"')}:{type:Jr("0x18"),content:Yo(r,Jr("0x62"))}}if(Jr("0xc")==e[Jr("0x14")]){const t=e[Jr("0x59")][0][Jr("0x51")];return t?{type:Jr("0x18"),content:Yo(r,"*Set image width:* %0",t)}:{type:Jr("0x18"),content:Yo(r,Jr("0x3a"))}}}var n}))}}const Zr=["registerCustomCallback","locale","formatBlock","discard","TrackChangesEditing","document","get","editor","replaceImageSource","author","plugins","selection","_descriptionFactory","accept","src","_suggestionFactory","markBlockFormat","change","getContainedElement","commandName","handleSuggestionDescription","Users","getSuggestionCallback","handleReplaceImageCommand","getAttribute","has","enableCommand","registerDescriptionCallback","model","subType","ImageEditing","getSuggestions","commandParams"];var Yr,ti;Yr=Zr,ti=270,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{afterInit(){if(!this[ei("0x1")][ei("0x4")][ei("0x13")](ei("0x18")))return;const t=this[ei("0x1")].plugins[ei("0x0")](ei("0x1f"));t[ei("0x14")](ei("0x2"),((t,e)=>this.handleReplaceImageCommand(t,e))),t[ei("0x9")][ei("0x1b")]("formatBlock",ei("0x2"),ei("0x7"),t[ei("0x9")][ei("0x10")](ei("0x1d"),null,ei("0x1e"))),t[ei("0x9")][ei("0x1b")](ei("0x1d"),ei("0x2"),ei("0x1e"),t._suggestionFactory[ei("0x10")](ei("0x1d"),null,ei("0x7"))),t[ei("0x6")][ei("0x15")]((t=>this[ei("0xe")](t)))}[ei("0x11")](t,e){const n=this[ei("0x1")][ei("0x4")][ei("0x0")]("TrackChangesEditing"),o=this[ei("0x1")][ei("0x16")][ei("0x20")][ei("0x5")].getSelectedElement();this.editor[ei("0x16")][ei("0xb")]((()=>{let s=o[ei("0x12")](ei("0x8"));const r=this[ei("0x1")].plugins[ei("0x0")](ei("0xf")).me;for(const t of n[ei("0x19")]({skipNotAttached:!0})){const e=t[ei("0xc")]();if(ei("0x2")===t[ei("0x17")]&&e===o){t[ei("0x3")]!==r&&t[ei("0x1e")](),s=t.data[ei("0x1a")][0].source;break}}t(e),n[ei("0xa")](o,{commandName:ei("0x2"),commandParams:[{source:s}]},[],"replaceImageSource")}))}[ei("0xe")](t){const{data:e}=t;if(e&&ei("0x2")===e[ei("0xd")]){const t="*Format:* replace image URL";return{type:"format",content:Yo(this[ei("0x1")][ei("0x1c")],t)}}}}const oi=["listenTo","_handleImportedData","forEach","value","plugins","bind","trackChanges","TrackChangesEditing","lowest","get","execute","_trackChangesValueDuringImport","afterInit","collaboration_features","commands","dataInsert","_trackChangesExecuted","track_changes","importWord","editor"];var si,ri;si=oi,ri=223,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("0x8")]=!1,this[ii("0xd")]=!1}[ii("0x9")](){const t=this[ii("0x10")],e=t.commands.get(ii("0xf")),n=t.commands[ii("0x6")](ii("0x3"));e&&(e.on(ii("0x7"),((t,[,e])=>{this[ii("0x8")]=n.value,e[ii("0xa")][ii("0xe")]=!this[ii("0x8")]}),{priority:"high"}),this[ii("0x11")](e,ii("0xc"),this[ii("0x12")][ii("0x2")](this)),this[ii("0x11")](e,ii("0xc"),(()=>{this[ii("0xd")]&&(n[ii("0x7")](),this[ii("0xd")]=!1)}),{priority:ii("0x5")}),t[ii("0x1")].get(ii("0x4")).enableCommand("importWord"))}[ii("0x12")](t,e){const{suggestions:n}=e,o=this.editor[ii("0xb")][ii("0x6")](ii("0x3")),s=o[ii("0x0")];this._trackChangesValueDuringImport!==s&&(o[ii("0x7")](),this[ii("0xd")]=!0),n&&n[ii("0x13")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0x10")][ii("0x1")][ii("0x6")]("Users").me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0xf")}}};this.editor[ii("0x1")].get(ii("0x4"))._setSuggestionData(s)}))}}const ai=["indent","editor","has","IndentBlock","getItems","plugins","commandName","blockIndent","outdent","*Outdent:* %0","selection","document","indentBlock","IndentEditing","getSelectedBlocks","enableCommand","from","outdentBlock","*Indent:* %0","locale","schema","get","afterInit","format","filter","model","_descriptionFactory","TrackChangesEditing"];var ci,li;ci=ai,li=221,function(t){for(;--t;)ci.push(ci.shift())}(++li);const ui=function(t,e){return ai[t-=0]};class di extends t.Plugin{[ui("0x19")](){const t=this[ui("0x4")],e=t[ui("0x8")][ui("0x18")](ui("0x2"));t[ui("0x8")][ui("0x5")](ui("0x10"))&&(e[ui("0x12")](ui("0x3")),e[ui("0x12")](ui("0xb")));const n=t[ui("0x16")];if(t[ui("0x8")].has(ui("0x6"))){for(const n of["indentBlock",ui("0x14")])e[ui("0x12")](n,(()=>{const o=Array[ui("0x13")](this[ui("0x4")][ui("0x0")][ui("0xe")][ui("0xd")][ui("0x11")]())[ui("0x1b")]((t=>this[ui("0x4")][ui("0x0")][ui("0x17")].checkAttribute(t,ui("0xa"))));t[ui("0x0")].change((()=>{for(const t of o)e.markBlockFormat(t,{commandName:n,commandParams:[{value:""}],formatGroupId:"indentBlock"})}))}));e[ui("0x1")].registerDescriptionCallback((t=>{const{data:o}=t;if(!o)return;if(ui("0xf")!=o[ui("0x9")]&&ui("0x14")!=o[ui("0x9")])return;const s=t[ui("0x7")]()[0],r=e._descriptionFactory.getItemLabel(s);return ui("0xf")==o[ui("0x9")]?{type:"format",content:Yo(n,ui("0x15"),r)}:ui("0x14")==o[ui("0x9")]?{type:ui("0x1a"),content:Yo(n,ui("0xc"),r)}:void 0}))}}}var gi,mi,fi=["input","init","editor","get","TrackChangesEditing","enableCommand","plugins","requires"];gi=fi,mi=197,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("0x2")](){return[Vs.Input]}[hi("0x4")](){this[hi("0x5")][hi("0x1")][hi("0x6")](hi("0x7"))[hi("0x0")](hi("0x3"))}}const bi=["plugins","editor","TrackChangesEditing","link","selection","registerDescriptionCallback","model","hasAttribute","enableCommand","markInlineFormat","commandParams","unlink","locale","has","change","get","document","getAttribute","getFirstRange","afterInit","commandName","from","linkHref","getRanges","isCollapsed","getFirstPosition","format"];var Ei,_i;Ei=bi,_i=203,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{[Ti("0x5")](){const t=this[Ti("0xe")];if(!t[Ti("0xd")][Ti("0x1a")]("LinkEditing"))return;const e=t[Ti("0xd")][Ti("0x1")](Ti("0xf"));e[Ti("0x15")](Ti("0x10"),((n,o)=>{const s=t[Ti("0x13")][Ti("0x2")][Ti("0x11")];let r=[];if(s[Ti("0xa")]){if(!s[Ti("0x14")](Ti("0x8")))return void n(o);{const e=(0,Vs.findAttributeRange)(s[Ti("0xb")](),Ti("0x8"),s[Ti("0x3")](Ti("0x8")),t[Ti("0x13")]);r=[e]}}else r=Array[Ti("0x7")](s[Ti("0x9")]());t.model[Ti("0x0")]((()=>{for(const t of r)e[Ti("0x16")](t,{commandName:Ti("0x10"),commandParams:[o]})}))})),e[Ti("0x15")](Ti("0x18"),(()=>{const n=this[Ti("0xe")][Ti("0x13")],o=n.document[Ti("0x11")];n[Ti("0x0")]((()=>{let n=[];n=o[Ti("0xa")]?[(0,Vs.findAttributeRange)(o[Ti("0xb")](),Ti("0x8"),o[Ti("0x3")](Ti("0x8")),t[Ti("0x13")])]:ms(Ti("0x8"),o[Ti("0x4")](),t.model);for(const t of n)e[Ti("0x16")](t,{commandName:"unlink",commandParams:[]})}))})),e._descriptionFactory[Ti("0x12")]((e=>{const{data:n}=e,o=t[Ti("0x19")];if(n){if(Ti("0x10")==n.commandName){const t=n[Ti("0x17")][0];return{type:Ti("0xc"),content:Yo(o,"*Set link:* %0",'"'+t+'"')}}return Ti("0x18")==n[Ti("0x6")]?{type:Ti("0xc"),content:Yo(o,"*Remove link*")}:void 0}}))}}const yi=["TrackChangesEditing","from","plugins","indentList","previousSibling","add","blockName","paragraph","getSelectedBlocks","listType","ELEMENT_BULLETED_LIST","createRange","get","locale","numberedList","_selectedElements","_descriptionFactory","bulletedList","execute","editor","commandName","end","todoList","enableCommand","registerDescriptionCallback","checkTodoList","name","slice","filter","commands","checkChild","isObject","model","replace","List","*Uncheck item*","*Check item*","listItem","format","element","ELEMENT_NUMBERED_LIST","value","parent","change","bulleted","length","document","push","before","ELEMENT_LIST_ITEM","has","markBlockFormat","listIndent","*Indent:* %0","createPositionAt","*Change to:* %0","ListEditing","numbered","nextSibling","outdentList","findIndex","getAttribute"];var ki,Ai;ki=yi,Ai=389,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{afterInit(){const t=this[vi("0x2")],e=t[vi("0x3a")];if(!t[vi("0x2f")][vi("0x21")](vi("0x27")))return;const n=t[vi("0x2f")][vi("0x39")](vi("0x2d")),o=t[vi("0x2f")][vi("0x21")]("TodoListEditing");function s(e){return()=>{const o=t[vi("0xf")][vi("0x1d")].selection,s=t[vi("0xc")][vi("0x39")](e);if(s[vi("0x18")])return void t[vi("0x1")](vi("0x34"),{});const r=e.slice(0,-4),i=function(t,e,n){let o=Array[vi("0x2e")](t)[vi("0xb")]((t=>{return e=t,(o=n)[vi("0xd")](e[vi("0x19")],vi("0x14"))&&!o[vi("0xe")](e);var e,o}));o=o[vi("0xb")]((t=>!t.is(vi("0x16"),vi("0x14"))||t[vi("0x2c")](vi("0x36"))!=e));const s=new Set;for(const t of o)t.is(vi("0x16"),vi("0x14"))?s[vi("0x32")](Si(t)):s.add(t);return Array.from(s)}(o[vi("0x35")](),r,t[vi("0xf")].schema);t[vi("0xf")].change((()=>{for(const t of i)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!s[vi("0x18")]}],formatGroupId:vi("0x33")},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[vi("0x2e")](t);const n=e[vi("0x2b")]((t=>vi("0x14")!=t[vi("0x9")]));return n>-1&&(e=e[vi("0xa")](0,n)),e}(t.model[vi("0x1d")].selection.getSelectedBlocks()),s=t.model[vi("0x38")](t[vi("0xf")][vi("0x25")](o[0],vi("0x1f")),t[vi("0xf")][vi("0x25")](o[o[vi("0x1c")]-1],vi("0x4")));t.model[vi("0x1a")]((()=>{n[vi("0x22")](s,{commandName:e,commandParams:[],formatGroupId:vi("0x23")},function(t){const e=new Set;for(const n of t){let t=n[vi("0x29")];for(;t&&t[vi("0x2c")](vi("0x23"))>n[vi("0x2c")](vi("0x23"));)e[vi("0x32")](t),t=t[vi("0x29")]}return Array[vi("0x2e")](e)}(o))}))}}n[vi("0x6")](vi("0x3b"),s(vi("0x3b"))),n[vi("0x6")](vi("0x0"),s(vi("0x0"))),o&&n.enableCommand(vi("0x5"),s(vi("0x5"))),n.enableCommand("indentList",r(vi("0x30"))),n[vi("0x6")](vi("0x2a"),r("outdentList")),o&&n[vi("0x6")](vi("0x8"),(()=>{const e=t.commands[vi("0x39")](vi("0x8")),o=Array[vi("0x2e")](e[vi("0x3c")]);o.filter((t=>t[vi("0x2c")]("todoListChecked")!=e.value)),t[vi("0xf")][vi("0x1a")]((()=>{for(const t of o)n.markBlockFormat(t,{commandName:vi("0x8"),commandParams:[{forceValue:!e.value}]})}))})),n[vi("0x3d")].registerElementLabel(vi("0x14"),(t=>Yo(e,vi("0x20"),t))),n[vi("0x3d")][vi("0x7")]((t=>{const{data:n}=t;if(n){if("numberedList"==n[vi("0x3")]||vi("0x0")==n[vi("0x3")]||vi("0x5")==n[vi("0x3")])switch(n[vi("0x3")][vi("0x10")](vi("0x11"),"")){case vi("0x1b"):return o(Yo(e,vi("0x37")));case vi("0x28"):return o(Yo(e,vi("0x17")));case"todo":return o(Yo(e,"ELEMENT_TODO_LIST"))}if(vi("0x30")==n.commandName)return{type:vi("0x15"),content:Yo(e,vi("0x24"),Yo(e,vi("0x20")))};if(vi("0x2a")==n[vi("0x3")])return{type:"format",content:Yo(e,"*Outdent:* %0",Yo(e,"ELEMENT_LIST_ITEM"))};if(vi("0x8")==n[vi("0x3")])return n.commandParams[0].forceValue?{type:"format",content:Yo(e,vi("0x13"))}:{type:vi("0x15"),content:Yo(e,vi("0x12"))}}function o(t){return{type:vi("0x15"),content:Yo(e,vi("0x26"),t)}}}))}}function Si(t){const e=t[vi("0x2c")](vi("0x23"));if(0==e)return t;let n=t;for(;t[vi("0x31")]&&t[vi("0x31")].is(vi("0x16"),"listItem");){const o=t[vi("0x31")][vi("0x2c")]("listIndent");if(o==e)n=t.previousSibling;else if(o<e)break;t=t[vi("0x31")]}return n}function Ii(t){const e=[];if(t.is(vi("0x16"),vi("0x14"))&&t[vi("0x2c")](vi("0x23"))>0){let n=t.nextSibling;for(;n&&vi("0x14")==n[vi("0x9")]&&n[vi("0x2c")]("listIndent")==t[vi("0x2c")](vi("0x23"));)e[vi("0x1e")](n),n=n[vi("0x29")]}return e}const Li=["listItem","getSelectedBlocks","from","styles","handleListStyleCommand","bind","handleDescriptions","getSiblingNodes","_LIST_","plugins","listStart","getLastPosition","push","*Format:* set start index to %0","locale","forward","listStyle","createRange","handleListStartCommand","element","get","document","commandParams","type","startIndex","replace","_getSuggestionBlocksForListStyle","listType","reversed","before","handleListReversedCommand","unshift","createPositionAt","change","model","*Format:* set order to reversed","TrackChangesEditing","registerDescriptionCallback","_descriptionFactory","toUpperCase","selection","getListTypeFromListStyleType","_getSuggestionBlocks","filter","format","editor","parent","getAttribute","length","_getTranslationKeyForListStyle","ListUtils","*Change to:* %0","ListPropertiesEditing","map","numbered","backward","enableCommand","listReversed","afterInit","has","config","ELEMENT_","markMultiRangeBlockFormat"];var Ni,wi;Ni=Li,wi=350,function(t){for(;--t;)Ni.push(Ni.shift())}(++wi);const Mi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[Mi("0x17")](){if(!this[Mi("0xa")][Mi("0x25")][Mi("0x18")](Mi("0x11")))return;const t=this.editor[Mi("0x19")][Mi("0x30")]("list.properties"),e=this[Mi("0xa")][Mi("0x25")][Mi("0x30")](Mi("0x1"));t[Mi("0x1f")]&&e.enableCommand("listStyle",this[Mi("0x20")][Mi("0x21")](this)),t.reversed&&e.enableCommand("listReversed",this[Mi("0x3a")][Mi("0x21")](this)),t.startIndex&&e[Mi("0x15")](Mi("0x26"),this.handleListStartCommand[Mi("0x21")](this)),e[Mi("0x3")][Mi("0x2")](this.handleDescriptions[Mi("0x21")](this))}[Mi("0x20")](t,e={}){const n=this[Mi("0xa")][Mi("0x25")].get(Mi("0x1")),o=this[Mi("0x36")]();this[Mi("0xa")].model[Mi("0x3d")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:Mi("0x2c"),commandParams:[{type:e[Mi("0x33")]}],formatGroupId:Mi("0x2c")})}))}[Mi("0x3a")](t,e={}){const n=this[Mi("0xa")].plugins.get(Mi("0x1")),o=this[Mi("0x7")]((t=>t.is(Mi("0x2f"),"listItem")&&Mi("0x13")===t[Mi("0xc")](Mi("0x37"))));if(o[Mi("0xd")]<1)return;const s=o[Mi("0x12")]((t=>this[Mi("0xa")][Mi("0x3e")][Mi("0x2d")](this[Mi("0xa")].model[Mi("0x3c")](t,Mi("0x39")),this[Mi("0xa")][Mi("0x3e")].createPositionAt(t,0))));this[Mi("0xa")].model[Mi("0x3d")]((()=>{n[Mi("0x1b")](s,{commandName:"listReversed",commandParams:[{reversed:e[Mi("0x38")]}],formatGroupId:"listReversed"})}))}[Mi("0x2e")](t,e={}){const n=this[Mi("0xa")][Mi("0x25")][Mi("0x30")](Mi("0x1")),o=this[Mi("0x7")]((t=>t.is(Mi("0x2f"),Mi("0x1c"))&&Mi("0x13")===t[Mi("0xc")](Mi("0x37"))));if(o[Mi("0xd")]<1)return;const s=o[Mi("0x12")]((t=>this.editor[Mi("0x3e")][Mi("0x2d")](this[Mi("0xa")][Mi("0x3e")][Mi("0x3c")](t,Mi("0x39")),this[Mi("0xa")][Mi("0x3e")][Mi("0x3c")](t,0))));this[Mi("0xa")][Mi("0x3e")].change((()=>{n[Mi("0x1b")](s,{commandName:Mi("0x26"),commandParams:[{startIndex:e[Mi("0x34")]}],formatGroupId:Mi("0x26")})}))}[Mi("0x22")](t){const e=this[Mi("0xa")][Mi("0x2a")],{data:n}=t;if(!n)return;let o,s;switch(n.commandName){case Mi("0x2c"):o=Mi("0x10"),s={type:Mi("0x9"),content:Yo(e,o,Yo(e,this._getTranslationKeyForListStyle(n[Mi("0x32")][0][Mi("0x33")])))};break;case Mi("0x16"):o=n[Mi("0x32")][0][Mi("0x38")]?Mi("0x0"):"*Format:* set order to regular",s={type:Mi("0x9"),content:Yo(e,o)};break;case"listStart":o=Mi("0x29"),s={type:Mi("0x9"),content:Yo(e,o,n[Mi("0x32")][0][Mi("0x34")])}}return s}[Mi("0x36")](){var t,e,n,o;const s=this[Mi("0xa")][Mi("0x25")][Mi("0x30")](Mi("0xf"));let r=Array.from(this[Mi("0xa")][Mi("0x3e")].document[Mi("0x5")][Mi("0x1d")]());return(null===(t=r[0])||void 0===t?void 0:t.is(Mi("0x2f"),Mi("0x1c")))&&r[Mi("0x3b")](...s[Mi("0x23")](this[Mi("0xa")][Mi("0x3e")][Mi("0x31")].selection.getFirstPosition(),Mi("0x14"))),(null===(e=r[r[Mi("0xd")]-1])||void 0===e?void 0:e.is(Mi("0x2f"),Mi("0x1c")))&&r[Mi("0x28")](...s[Mi("0x23")](this[Mi("0xa")][Mi("0x3e")].document.selection[Mi("0x27")](),Mi("0x2b"))),r=[...new Set(r)],(null===(o=null===(n=this[Mi("0xa")].model.document[Mi("0x5")].getFirstPosition())||void 0===n?void 0:n[Mi("0xb")])||void 0===o?void 0:o.is("element",Mi("0x1c")))&&(r=r[Mi("0x8")]((t=>t.is("element",Mi("0x1c"))))),r}[Mi("0x7")](t){const e=this[Mi("0xa")].plugins[Mi("0x30")]("ListUtils");let n=Array[Mi("0x1e")](this.editor[Mi("0x3e")][Mi("0x31")][Mi("0x5")][Mi("0x1d")]())[Mi("0x8")](t).map((t=>{const n=this.editor[Mi("0x3e")][Mi("0x3c")](t,0);return[...e[Mi("0x23")](n,Mi("0x14")),...e[Mi("0x23")](n,Mi("0x2b"))]})).flat();return n=[...new Set(n)],n}[Mi("0xe")](t){return Mi("0x1a")+this[Mi("0xa")].plugins[Mi("0x30")]("ListUtils")[Mi("0x6")](t)[Mi("0x4")]()+Mi("0x24")+t[Mi("0x4")]()[Mi("0x35")](/-/g,"_")}}const Fi=["media","editor","registerElementLabel","plugins","locale","MediaEmbedEditing","downcastDispatcher","createEmptyElement","ELEMENT_MEDIA","stop","afterInit","high","has","TrackChangesEditing","dataDowncast","conversion","get","enableCommand","elementToElement","showSuggestionHighlights"];var Pi,Di;Pi=Fi,Di=301,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0x9")](){const t=this[Bi("0x0")];if(!t[Bi("0x2")][Bi("0xb")](Bi("0x4")))return;const e=t[Bi("0x2")][Bi("0xf")](Bi("0xc")),n=t[Bi("0x3")];e[Bi("0x10")]("mediaEmbed"),e._descriptionFactory[Bi("0x1")](Bi("0x13"),(t=>Yo(n,Bi("0x7"),t))),t[Bi("0xe")].for(Bi("0xd"))[Bi("0x11")]({model:Bi("0x13"),view:(t,{writer:e,options:n})=>{if(n[Bi("0x12")])return e[Bi("0x6")]("div")},converterPriority:Bi("0xa")}),t.data[Bi("0x5")].on("attribute:url:media",((t,e,n)=>{n.options[Bi("0x12")]&&t[Bi("0x8")]()}),{priority:Bi("0xa")})}}const Ui=["get","enableCommand","plugins","afterInit","MentionEditing"];var Gi,Hi;Gi=Ui,Hi=126,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{[zi("0x2")](){const t=this.editor;t[zi("0x1")].has(zi("0x3"))&&t[zi("0x1")][zi("0x4")]("TrackChangesEditing")[zi("0x0")]("mention")}}const Vi=["enableCommand","_descriptionFactory","locale","registerElementLabel","ELEMENT_PAGE_BREAK","pageBreak","has","plugins","editor","TrackChangesEditing","get","afterInit"];var Ki,qi;Ki=Vi,qi=131,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{[Xi("0x0")](){const t=this[Xi("0x9")];if(!t.plugins[Xi("0x7")]("PageBreakEditing"))return;t[Xi("0x8")].get(Xi("0xa"))[Xi("0x1")](Xi("0x6"));const e=t.plugins[Xi("0xb")](Xi("0xa")),n=t[Xi("0x3")];e[Xi("0x2")][Xi("0x4")](Xi("0x6"),(t=>Yo(n,Xi("0x5"),t)))}}const Ji=["activeMarkers","editor","blockName","change","addMarker:suggestion:insertion","ck-suggestion-marker-split","ck-suggestion-marker--active","start","paragraph","editing","document","checkChild","nodeAfter","*Change to:* %0","format","isTouching","isBlock","schema","downcastDispatcher","consume","insertion","bindElementToMarker","plugins","_descriptionFactory","writer","markerName","TrackChangesEditing","showSuggestionHighlights","model","isObject","ELEMENT_PARAGRAPH","insert","addClass","locale","*Insert:* %0","markerRange","from","selection","data","consumable","highest","name","getSelectedBlocks","filter","options","parent","has","getItemLabel","Paragraph","end","registerDescriptionCallback","get","mapper","isLimit","type","enableCommand"];var Qi,Zi;Qi=Ji,Zi=166,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{afterInit(){const t=this[Yi("0x3")];if(!t.plugins[Yi("0x30")](Yi("0x32")))return;const e=t[Yi("0x23")],n=t.plugins[Yi("0x35")](Yi("0x1c"));n._descriptionFactory.registerElementLabel(Yi("0xa"),(t=>Yo(e,Yi("0x20"),t))),n[Yi("0x1")](Yi("0xa"),((e,o={})=>{const s=t[Yi("0x1e")][Yi("0xc")],r=o[Yi("0x27")]||s[Yi("0x27")],i=Array[Yi("0x26")](r[Yi("0x2c")]())[Yi("0x2d")]((t=>{return e=t,(n=this[Yi("0x3")][Yi("0x1e")][Yi("0x13")]).checkChild(e[Yi("0x2f")],"paragraph")&&!n[Yi("0x1f")](e)&&Yi("0xa")!=e[Yi("0x2b")];var e,n}));t[Yi("0x1e")][Yi("0x5")]((()=>{for(const t of i)n.markBlockFormat(t,{commandName:Yi("0xa"),commandParams:[],formatGroupId:Yi("0x4")},fs(t))}))})),n[Yi("0x19")][Yi("0x34")]((t=>{const{data:n}=t;if(n&&Yi("0xa")==n.commandName)return{type:Yi("0x10"),content:Yo(e,Yi("0xf"),Yo(e,"ELEMENT_PARAGRAPH"))}})),n[Yi("0x1")]("insertParagraph"),t[Yi("0xb")][Yi("0x14")].on(Yi("0x6"),ex(t),{priority:Yi("0x2a")}),t[Yi("0x28")][Yi("0x14")].on("addMarker:suggestion:insertion",((e,n,o)=>{o[Yi("0x2e")][Yi("0x1d")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:"highest"});const o=n[Yi("0x19")];o.registerDescriptionCallback((n=>{if(Yi("0x16")!==n[Yi("0x0")])return;const{start:s,end:r}=n.getFirstRange();if(!s[Yi("0x11")](r)||!s[Yi("0xe")])return;const i=t[Yi("0x1e")].schema,x=s[Yi("0xe")];return i[Yi("0x12")](x)&&!i[Yi("0x37")](x)&&i.checkChild(x,"$text")?{type:"insertion",content:Yo(e,Yi("0x24"),o[Yi("0x31")](x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Yi("0x18")].get(Yi("0x1c")),i=o[Yi("0x25")][Yi("0x9")],x=o.markerRange[Yi("0x33")],a=t[Yi("0x1e")][Yi("0x13")];if(!i[Yi("0x11")](x)||!i.nodeAfter)return;const c=i[Yi("0xe")];if(a.isBlock(c)&&!a.isLimit(c)&&a[Yi("0xd")](c,"$text")){if(!s[Yi("0x29")][Yi("0x15")](o.markerRange,n[Yi("0x2b")]))return;const t=s[Yi("0x1a")].createUIElement("span",{class:Yi("0x7")}),i=s[Yi("0x36")].toViewPosition(x);e&&r[Yi("0x2")].includes(o[Yi("0x1b")])&&s[Yi("0x1a")][Yi("0x22")](Yi("0x8"),t),s[Yi("0x1a")][Yi("0x21")](i,t),s[Yi("0x36")][Yi("0x17")](t,o[Yi("0x1b")])}}}const nx=["get","format","*Remove all formatting*","enableCommand","has","schema","editor","getAttributeProperties","_descriptionFactory","markInlineFormat","locale","removeFormat","RemoveFormatEditing","afterInit","commandName","isCollapsed","selection","change","registerDescriptionCallback","plugins","model","createRangeOn"];var ox,sx;ox=nx,sx=461,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[rx("0xe")](){const t=this[rx("0x7")];if(!t[rx("0x14")][rx("0x5")](rx("0xd")))return;const e=t[rx("0x14")][rx("0x1")]("TrackChangesEditing");e[rx("0x4")](rx("0xc"),(n=>{const o=t[rx("0x15")].document[rx("0x11")];o[rx("0x10")]?n():t.model[rx("0x12")]((()=>{const n=Array.from(o.getRanges());for(const o of n)for(const n of o.getItems())xx(n,t[rx("0x15")][rx("0x6")])&&e[rx("0xa")](t.model[rx("0x0")](n),{commandName:rx("0xc"),commandParams:[]})}))})),e[rx("0x9")][rx("0x13")]((e=>{const{data:n}=e;if(n&&rx("0xc")==n[rx("0xf")])return{type:rx("0x2"),content:Yo(t[rx("0xb")],rx("0x3"))}}))}}function xx(t,e){for(const[n]of t.getAttributes()){const t=e[rx("0x8")](n);if(t&&t.isFormatting)return!0}return!1}const ax=["enableCommand","discardSelectedSuggestions","has","plugins","acceptSelectedSuggestions","discardSuggestion","TrackChangesEditing","goToNextRestrictedEditingException","trackChanges","afterInit","editor","RestrictedEditingModeEditing","get","discardAllSuggestions","goToPreviousRestrictedEditingException"];var cx,lx;cx=ax,lx=375,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{[ux("0x9")](){const t=this[ux("0xa")];if(!t[ux("0x3")][ux("0x2")](ux("0xb")))return;const e=t[ux("0x3")][ux("0xc")](ux("0x6"));e[ux("0x0")](ux("0xe")),e.enableCommand(ux("0x7"));const n=t[ux("0x3")][ux("0xc")](ux("0xb"));n[ux("0x0")](ux("0x8")),n[ux("0x0")]("acceptSuggestion"),n[ux("0x0")](ux("0x5")),n[ux("0x0")]("acceptAllSuggestions"),n.enableCommand(ux("0xd")),n[ux("0x0")](ux("0x4")),n[ux("0x0")](ux("0x1"))}}const gx=["addMarker:suggestion:insertion","addClass","ck-suggestion-marker-","enableCommand","deletion","getItems","data","shiftEnter","plugins","TrackChangesEditing","toViewPosition","get","split","insert","writer","high","bindElementToMarker","editing","_descriptionFactory","registerElementLabel","consumable","softBreak","createPositionBefore","markerRange","merge","mapper","includes","name","editor","downcastDispatcher","activeMarkers","span","markerName","createUIElement","showSuggestionHighlights","element","options","init"];var mx,fx;mx=gx,fx=500,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{static get requires(){return[nr.ShiftEnter]}[hx("0x1f")](){const t=this[hx("0x16")],e=t[hx("0x2")][hx("0x5")](hx("0x3"));e[hx("0x23")](hx("0x1")),t.editing.downcastDispatcher.on(hx("0x20"),bx(t),{priority:"high"}),t[hx("0xb")].downcastDispatcher.on("addMarker:suggestion:deletion",bx(t),{priority:hx("0x9")}),t[hx("0x0")][hx("0x17")].on("addMarker:suggestion",((e,n,o)=>{o[hx("0x1e")][hx("0x1c")]&&bx(t,{showActiveMarker:!1})(e,n,o)})),e[hx("0xc")][hx("0xd")](hx("0xf"),(e=>Yo(t.locale,"ELEMENT_LINE_BREAK",e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[hx("0x2")][hx("0x5")](hx("0x3"));if(!s[hx("0xe")].test(o[hx("0x11")],n[hx("0x15")]))return;const i=t.model;for(const t of o[hx("0x11")][hx("0x25")]()){if(!t.is(hx("0x1d"),hx("0xf")))continue;const n=hx("0x24")==o[hx("0x1a")].split(":")[1]?hx("0x12"):hx("0x6"),x=s[hx("0x8")][hx("0x1b")](hx("0x19"),{class:hx("0x22")+n}),a=s.mapper[hx("0x4")](i[hx("0x10")](t));e&&r[hx("0x18")][hx("0x14")](o.markerName)&&s[hx("0x8")][hx("0x21")]("ck-suggestion-marker--active",x),s[hx("0x8")][hx("0x7")](a,x),s[hx("0x13")][hx("0xa")](x,o.markerName)}}}const Ex=["commands","isCollapsed","model","plugins","document","getRanges","get","afterInit","change","editor","from","has","value","enableCommand","selection","format","StandardEditingModeEditing","restrictedEditingException","FORMAT_RESTRICTED_ENABLED","FORMAT_RESTRICTED_DISABLED","forceValue"];var _x,Tx;_x=Ex,Tx=183,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{[Cx("0xd")](){const t=this[Cx("0xf")],e=t[Cx("0x8")],n=t.locale;if(!t[Cx("0x9")][Cx("0x11")](Cx("0x1")))return;const o=t[Cx("0x9")][Cx("0xc")]("TrackChangesEditing"),s=Cx("0x2"),r=t[Cx("0x6")][Cx("0xc")](s);o[Cx("0x13")](s,((t,n={})=>{const i=e[Cx("0xa")][Cx("0x14")];if(i[Cx("0x7")])return void t(n);const x=void 0!==n[Cx("0x5")]?n[Cx("0x5")]:!r[Cx("0x12")];e[Cx("0xe")]((()=>{const t=Array[Cx("0x10")](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._descriptionFactory.registerDescriptionCallback((t=>{const{data:e}=t;if(e&&e.commandName==s)return e.commandParams[0].forceValue?{type:Cx("0x0"),content:Yo(n,Cx("0x3"))}:{type:Cx("0x0"),content:Yo(n,Cx("0x4"))}}))}}const kx=["style.definitions","find","document","afterInit","normalizeConfig","style:","commands","value","plugins","config","element","style","getItems","registerDescriptionCallback","markInlineFormat","every","DataSchema","change","Style","name","_getStyleDefinition","locale","format","modelElements","getRanges","includes","isCollapsed","model","styleName","from","isBlock","_getRangesWithClasses","commandParams","getAttribute","enabledStyles","TrackChangesEditing","toLowerCase","_descriptionFactory","getDefinitionsForView","getSelectedBlocks","classes","selection","push","get","markBlockFormat","createRangeOn"];var Ax,vx;Ax=kx,vx=165,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{[Rx("0x16")](){const t=this.editor;if(!t[Rx("0x1b")].has(Rx("0x25")))return;const e=t[Rx("0x19")][Rx("0x10")](Rx("0x1e")),n=t.plugins[Rx("0x10")](Rx("0x8")),o=t[Rx("0x28")],s=t.plugins[Rx("0x10")](Rx("0x23")),r=t[Rx("0x1b")][Rx("0x10")]("StyleUtils")[Rx("0x17")](s,t[Rx("0x1c")][Rx("0x10")](Rx("0x13")));n.enableCommand(Rx("0x1e"),((o,{styleName:i})=>{const x=t.model[Rx("0x15")][Rx("0xe")],a=this[Rx("0x27")](i,r);if(!a)return;if(!e[Rx("0x7")].includes(i))return;if(x[Rx("0x2d")]&&!a[Rx("0x3")])return void o({styleName:i});const c=!e[Rx("0x1a")][Rx("0x2c")](a[Rx("0x26")]);if(a.isBlock){const e=function(t,e){const n=new Set;for(const o of t){const t=o.getAncestors({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[Rx("0x2c")](o.name)){n.add(o);break}}return n}(x[Rx("0xc")](),a[Rx("0x2a")]);t[Rx("0x0")][Rx("0x24")]((()=>{for(const t of e)n[Rx("0x11")](t,{commandName:Rx("0x1e"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:Rx("0x18")+i})}))}else{let e=Array[Rx("0x2")](x[Rx("0x2b")]());if(!c){const n=Array[Rx("0x2")](s[Rx("0xb")](a[Rx("0x1d")],!1))[0][Rx("0x0")],o=[];for(const s of e){const e=this[Rx("0x4")](t[Rx("0x0")],s,a.classes,n);o[Rx("0xf")](...e)}e=o}t[Rx("0x0")].change((()=>{for(const t of e)n[Rx("0x21")](t,{commandName:Rx("0x1e"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0xa")][Rx("0x20")]((t=>{const{data:e}=t;if(e&&"style"===e.commandName)return e[Rx("0x5")][0].forceValue?{type:Rx("0x29"),content:Yo(o,"*Format:* %0",e[Rx("0x5")][0].styleName.toLowerCase())}:{type:Rx("0x29"),content:Yo(o,"*Remove format:* %0",e[Rx("0x5")][0][Rx("0x1")][Rx("0x9")]())}}))}[Rx("0x27")](t,e){let n=e.block[Rx("0x14")]((e=>e[Rx("0x26")]===t));return n||(n=e.inline[Rx("0x14")]((e=>e[Rx("0x26")]===t))),n}[Rx("0x4")](t,e,n,o){const s=[];for(const r of e[Rx("0x1f")]()){const e=r[Rx("0x6")](o);e&&n[Rx("0x22")]((t=>e[Rx("0xd")][Rx("0x2c")](t)))&&s.push(t[Rx("0x12")](r))}return s}}const Ix=["TableUtils","registerDescriptionCallback","refresh","insertion","isInContent","createPositionAt","TrackChangesEditing","getSuggestion","has","addMarker:suggestion","getSelectionAffectedTableCells","MAX_SAFE_INTEGER","ELEMENT_TABLE_COLUMN","afterInit","$graveyard","above","substr","removeTableRow","getChanges","_splitMarkerName","_acceptFormatSuggestionCallbackFactory","selectTableColumn","registerElementLabel","tableRow","minRow","toViewElement","type","writer","item","from","start","commands","getRowIndexes","insert","every","discard","markMultiRangeInsertion","enableCommand","TableEditing","maxRow","getContainedElement","change:data","deletion","removeClass","plugins","nodeAfter","name","map","downcastDispatcher","data","last","setSelection","accept","suggestion","*Remove:* %0","ELEMENT_TABLE_WITH_TEXT","differ","registerCustomCallback","selection","low","includes","_tableSuggestions","isEqual","addClass","root","end","join","insertTableRowAbove","tablePaste","_suggestionFactory","filter","model","getCellLocation","max","nodeBefore","hasAttribute","toLowerCase","batch","MIN_SAFE_INTEGER","$textProxy","createTableWalker","change","push","_setupColumnsRowsFixing","ELEMENT_TABLE_ROW","min","maxColumn","tableColumn","_tablePostFixingSubtypes","createRangeOn","rootName","isTouching","minColumn","length","insertTableColumnLeft","findAncestor","isArray","ELEMENT_TABLE_COLUMN_WITH_TEXT","editor","colspan","get","mapper","tableCell","removeTableColumn","table","getRanges","getItems","subType","markMultiRangeDeletion","options","addRange","enqueueChange","ELEMENT_TABLE","add","forceValue","insertTable","cell","execute","_descriptionFactory","getChildren","span","createRangeIn","_getSuggestionCoords","_getCoordsForCells","getAttribute","ELEMENT_TABLE_ROW_WITH_TEXT","detach","getColumnIndexes","order","first","rowspan","document","highest","*Insert:* %0","selectTableRow","position"];var Lx,Nx;Lx=Ix,Nx=133,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[wx("0x5b")]=[wx("0x1a"),wx("0x5a")],this[wx("0x40")]=new Set}[wx("0x10")](){const t=this[wx("0x65")],e=t[wx("0x4a")].document[wx("0x3d")];if(!t[wx("0x2f")][wx("0xb")](wx("0x29")))return;const n=t.locale,o=t[wx("0x2f")][wx("0x67")](wx("0x9")),s=t[wx("0x2f")][wx("0x67")](wx("0x3"));o[wx("0x79")][wx("0x19")](wx("0x6b"),(t=>Yo(n,wx("0x73"),t))),this[wx("0x56")](),o[wx("0x28")](wx("0x76")),o[wx("0x28")](wx("0x1")),o[wx("0x28")](wx("0x18"));for(const n of[wx("0x46"),"insertTableRowBelow"]){const r=t.commands.get(n);o[wx("0x28")](n,(n=>{t.model.change((t=>{n();const i=wx("0x12")===r[wx("0x83")],x=s.getSelectionAffectedTableCells(e),a=s[wx("0x23")](x),c=i?a.first-1:a[wx("0x35")]+1,l=x[0][wx("0x62")]("table"),u=s.createTableWalker(l,{startRow:c,endRow:c}),d=Array.from(u).map((e=>t[wx("0x5c")](e[wx("0x77")])));o[wx("0x27")](d,wx("0x1a"))}))}))}for(const n of[wx("0x61"),"insertTableColumnRight"]){const r=t[wx("0x22")][wx("0x67")](n);o[wx("0x28")](n,(n=>{t.model.change((t=>{n();const i="left"===r[wx("0x83")],x=s[wx("0xd")](e),a=s[wx("0x82")](x),c=i?a[wx("0x84")]-1:a[wx("0x35")]+1,l=x[0][wx("0x62")](wx("0x6b")),u=s[wx("0x53")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array.from(u)[wx("0x32")]((e=>t.createRangeOn(e[wx("0x77")])));o[wx("0x27")](d,wx("0x5a"))}))}))}for(const n of[wx("0x14"),"removeTableColumn"]){const r=n[wx("0x13")](11),i=r.toLowerCase(),x=i.substr(0,3)+wx("0x7b"),a=wx("0x6b")+r,c=wx("0x58")+r,l=wx("0x4c")+r;o[wx("0x28")](n,(()=>{t[wx("0x4a")][wx("0x54")]((t=>{const r=s[wx("0xd")](e),u=r[0].findAncestor("table");let d;if("removeTableRow"==n){const t=s.getRowIndexes(r);d={startRow:t[wx("0x84")],endRow:t[wx("0x35")],includeAllSlots:!0}}else{const t=s.getColumnIndexes(r);d={startColumn:t[wx("0x84")],endColumn:t[wx("0x35")],includeAllSlots:!0}}const g=s[wx("0x53")](u,d),m=Array[wx("0x20")](g)[wx("0x32")]((({cell:t})=>t)),f=Ox(m.filter((t=>t.hasAttribute(x)))),h=Ox(m.filter((t=>!t.hasAttribute(x)))).map((e=>t[wx("0x5c")](e))),p=o[wx("0x6f")](h,a);if(p&&(wx("0x1a")==p[wx("0x6e")]||"tableColumn"==p.subType)){const e=this[wx("0x7d")](p);for(const n of f){const o=t[wx("0x5c")](n),r=s[wx("0x4b")](n),a=n[wx("0x7f")](x)-1,u=e[c],d=e[l];u<=r[i]&&r[i]+a<=d&&p[wx("0x71")](o)}}}))}))}function r(n){const o=Array[wx("0x20")](e.getRanges())[wx("0x32")]((t=>i.LiveRange.fromRange(t)));t.model[wx("0x54")]((e=>{const s=e[wx("0x50")];n=n[wx("0x49")]((t=>wx("0x11")!=t[wx("0x43")][wx("0x5d")])),e[wx("0x36")](n),t.commands[wx("0x67")](wx("0x14"))[wx("0x5")](),t.execute(wx("0x14"),{forceDefaultExecution:!0}),t[wx("0x4a")][wx("0x72")]((()=>{t.model[wx("0x72")](s,(t=>{const e=o[wx("0x49")]((t=>wx("0x11")!=t.root[wx("0x5d")]));e.length>0&&t[wx("0x36")](e);for(const t of o)t[wx("0x81")]()}))}))}))}function a(n){t[wx("0x4a")][wx("0x54")]((o=>{const s=Array[wx("0x20")](e[wx("0x6c")]())[wx("0x32")]((t=>i.LiveRange.fromRange(t))),r=[];for(const t of n)for(const e of t.getItems({shallow:!0}))r[wx("0x55")](e);for(const e of r)wx("0x11")!=e[wx("0x43")][wx("0x5d")]&&(o[wx("0x36")](o[wx("0x8")](e,0)),t.commands.get(wx("0x6a")).refresh(),t[wx("0x78")](wx("0x6a"),{forceDefaultExecution:!0}));const x=s[wx("0x49")]((t=>wx("0x11")!=t.root[wx("0x5d")]));x[wx("0x60")]>0&&o[wx("0x36")](x);for(const t of s)t[wx("0x81")]()}))}function c(t,e){return e[wx("0x25")]((e=>t.some((t=>t.end[wx("0x41")](e[wx("0x21")])||e[wx("0x44")][wx("0x41")](t[wx("0x21")])))))}function l(t,e){return t.some((t=>e.some((e=>t[wx("0x44")][wx("0x5e")](e[wx("0x21")])))))}t.data[wx("0x33")].on(wx("0xc"),((t,e,n)=>{if(!n[wx("0x70")].showSuggestionHighlights)return;const o=e[wx("0x1f")];if(!o)return;const s=n[wx("0x68")][wx("0x1c")](o);function r(t){return Array[wx("0x63")](t)?t:[t]}s&&wx("0x69")===o[wx("0x31")]&&(0,x.setHighlightHandling)(s,n[wx("0x1e")],((t,e,n)=>n[wx("0x42")](r(e.classes),t)),((t,e,n)=>n[wx("0x2e")](r(e.classes),t)))}),{priority:wx("0x87")}),o[wx("0x79")][wx("0x4")]((t=>{if(wx("0x6")!=t.type&&wx("0x2d")!=t[wx("0x1d")])return;const e=t[wx("0x2b")]();if(null!=e&&e.is("element","table")){if(wx("0x6")==t[wx("0x1d")]){const e=t[wx("0x6d")]()[wx("0x49")]((t=>t.is(wx("0x52"))))[wx("0x32")]((t=>t[wx("0x34")]));if(e[wx("0x60")])return{type:"insertion",content:Yo(n,"*Insert:* %0",Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e.join(" ")+'"'))}}if(wx("0x2d")==t[wx("0x1d")]){const e=t[wx("0x6d")]()[wx("0x49")]((t=>t.is(wx("0x52"))))[wx("0x32")]((t=>t.data));if(e[wx("0x60")])return{type:wx("0x2d"),content:Yo(n,wx("0x39"),Yo(n,wx("0x3a"),'"'+e[wx("0x45")](" ")+'"'))}}}})),o[wx("0x79")][wx("0x4")]((t=>{if(wx("0x1a")==t[wx("0x6e")]){const e=t[wx("0x6d")]().filter((t=>t.is("$textProxy"))).map((t=>t[wx("0x34")])),o=this[wx("0x7d")](t),s=o[wx("0x2a")]-o[wx("0x1b")]+1;if("insertion"==t[wx("0x1d")])return e[wx("0x60")]?{type:"insertion",content:Yo(n,wx("0x0"),Yo(n,wx("0x80"),[s,'"'+e.join(" ")+'"']))}:{type:wx("0x6"),content:Yo(n,wx("0x0"),Yo(n,"ELEMENT_TABLE_ROW",s))};if(wx("0x2d")==t[wx("0x1d")])return e[wx("0x60")]?{type:wx("0x2d"),content:Yo(n,"*Remove:* %0",Yo(n,wx("0x80"),[s,'"'+e[wx("0x45")](" ")+'"']))}:{type:wx("0x2d"),content:Yo(n,wx("0x39"),Yo(n,wx("0x57"),s))}}if(wx("0x5a")==t[wx("0x6e")]){const e=t.getItems()[wx("0x49")]((t=>t.is(wx("0x52")))).map((t=>t.data)),o=this[wx("0x7d")](t),s=o[wx("0x59")]-o[wx("0x5f")]+1;if(wx("0x6")==t[wx("0x1d")])return e[wx("0x60")]?{type:wx("0x6"),content:Yo(n,wx("0x0"),Yo(n,wx("0x64"),[s,'"'+e[wx("0x45")](" ")+'"']))}:{type:"insertion",content:Yo(n,wx("0x0"),Yo(n,wx("0xf"),s))};if("deletion"==t[wx("0x1d")])return e[wx("0x60")]?{type:wx("0x2d"),content:Yo(n,wx("0x39"),Yo(n,wx("0x64"),[s,'"'+e[wx("0x45")](" ")+'"']))}:{type:wx("0x2d"),content:Yo(n,wx("0x39"),Yo(n,wx("0xf"),s))}}})),o[wx("0x48")].registerCustomCallback(wx("0x6"),"tableRow",wx("0x26"),r),o[wx("0x48")][wx("0x3c")]("deletion","tableRow",wx("0x37"),r),o[wx("0x48")].registerCustomCallback(wx("0x6"),wx("0x5a"),wx("0x26"),a),o[wx("0x48")][wx("0x3c")](wx("0x2d"),wx("0x5a"),wx("0x37"),a),o._suggestionFactory[wx("0x3c")](wx("0x6"),wx("0x5a"),wx("0x45"),c),o[wx("0x48")].registerCustomCallback("deletion",wx("0x5a"),wx("0x45"),c),o[wx("0x48")][wx("0x3c")](wx("0x6"),"tableRow","join",l),o._suggestionFactory[wx("0x3c")]("deletion","tableRow",wx("0x45"),l)}[wx("0x17")](){const t=this[wx("0x65")],e=t[wx("0x4a")][wx("0x86")].selection;return(n,o)=>{t[wx("0x4a")][wx("0x54")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][wx("0x44")][wx("0x4d")];x&&x[0]&&!1===x[0][wx("0x75")]&&(a=n[0][wx("0x21")][wx("0x30")]);const c=s[wx("0x7c")](a);if(wx("0x11")==c[wx("0x43")].rootName)return;const l=Array.from(e[wx("0x6c")]()).map((t=>i.LiveRange.fromRange(t)));s.setSelection(c),t[wx("0x22")].get(r)[wx("0x5")](),x.push({forceDefaultExecution:!0}),t[wx("0x78")](r,...x);const u=l[wx("0x49")]((t=>wx("0x11")!=t.root.rootName));u[wx("0x60")]>0&&s[wx("0x36")](u);for(const t of l)t[wx("0x81")]()}))}}_getCoordsForCells(t){const e=this[wx("0x65")][wx("0x2f")].get(wx("0x3"));let n=Number[wx("0xe")],o=Number[wx("0x51")],s=Number[wx("0xe")],r=Number[wx("0x51")];for(const i of t){if(wx("0x11")==i.root.rootName)continue;const{row:t,column:x}=e[wx("0x4b")](i),a=i[wx("0x4e")](wx("0x85"))?i[wx("0x7f")](wx("0x85"))-1:0,c=i[wx("0x4e")](wx("0x66"))?i[wx("0x7f")](wx("0x66"))-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}}[wx("0x56")](){const t=this[wx("0x65")],e=t[wx("0x2f")][wx("0x67")](wx("0x9")),n=t[wx("0x2f")][wx("0x67")]("TableUtils");t[wx("0x4a")][wx("0x86")].on(wx("0x2c"),(()=>{const n=Array[wx("0x20")](t[wx("0x4a")][wx("0x86")][wx("0x3b")].getChangedMarkers());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[wx("0x16")](t);if(wx("0x38")!=n)continue;if(null!=o.oldRange)continue;const i=e[wx("0xa")](s);this[wx("0x5b")][wx("0x3f")](r)&&this[wx("0x40")][wx("0x74")](i)}}),{priority:wx("0x3e")});const o=(t,e)=>{let o=!1;const s=e[wx("0x5c")](t),r=t.findAncestor(wx("0x6b")),i=n[wx("0x4b")](t);for(const e of this._tableSuggestions){const n=e[wx("0x6e")],x=n.startsWith(wx("0x47")),a=n[wx("0x13")](x?10:5),c=a[wx("0x4f")](),l=c[wx("0x13")](0,3)+"span",u="min"+a,d="max"+a;if(!e[wx("0x7")])continue;if(r!=e.getFirstRange()[wx("0x21")][wx("0x62")]("table"))continue;if(e.isIntersectingWithRange(s))continue;const g=t[wx("0x4e")](l)?t[wx("0x7f")](l)-1:0,m=this[wx("0x7d")](e),f=m[u],h=m[d];f<=i[c]&&i[c]+g<=h&&(e[wx("0x71")](s),o=!0)}return o};t[wx("0x4a")][wx("0x86")].registerPostFixer((e=>{let n=!1;for(const s of t[wx("0x4a")][wx("0x86")].differ[wx("0x15")]())if(wx("0x24")==s[wx("0x1d")])if(wx("0x1a")==s[wx("0x31")])for(const t of s[wx("0x2")][wx("0x30")][wx("0x7a")]())n=n||o(t,e);else wx("0x69")==s[wx("0x31")]&&(n=n||o(s[wx("0x2")][wx("0x30")],e));return n}))}_getSuggestionCoords(t){return this[wx("0x7e")](t[wx("0x6c")]()[wx("0x32")]((t=>t[wx("0x21")][wx("0x30")])))}}function Ox(t){return Array[wx("0x20")](new Set(t).values())}const Fx=["size","from","horizontally","$graveyard","getAncestors","TableUtils","change","getFirstPosition","_areMergableCells","add","refresh","enableCommand","value","forceDefaultExecution","formatBlock","getSuggestions","registerDescriptionCallback","model","plugins","mergeTableCellDown","splitTableCellHorizontally","requires","stop","findAncestor","mergeTableCellUp","map","editor","push","highest","_suggestionFactory","_acceptFormatSuggestionCallbackFactory","isInContent","containsRange","find","rootName","element","cell","author","get","selection","execute","document","setSelection","detach","direction","return","markBlockFormat","afterInit","deletion","registerCustomCallback","_isForcedDefaultExecutionBlock","locale","format","filter","fromRange","_descriptionFactory","trackChanges","has","mergeTableCells","getSelectionAffectedTableCells","accept","splitTableCellVertically","commandName","mergeTableCellLeft","createRangeOn","_tablePostFixingSubtypes","_areSelectedCellsMergable","length","commands","markMultiRangeBlockFormat","TableEditing","mergeTableCellRight","tableCell","getCellLocation","type"];var Px,Dx;Px=Fx,Dx=346,function(t){for(;--t;)Px.push(Px.shift())}(++Dx);const Bx=function(t,e){return Fx[t-=0]};class jx extends t.Plugin{static get[Bx("0x32")](){return[Mx]}[Bx("0x1")](){const t=this.editor,e=t.model.document.selection,n=t[Bx("0x5")];if(!t[Bx("0x2f")].has(Bx("0x18")))return;const o=t.plugins[Bx("0x43")]("TrackChangesEditing"),s=t[Bx("0x2f")][Bx("0x43")](Bx("0x22")),r=t.plugins.get(Mx);r[Bx("0x13")][Bx("0x38")](Bx("0xc")),o.enableCommand(Bx("0xc"),(()=>{const e=s[Bx("0xd")](t[Bx("0x2e")][Bx("0x46")][Bx("0x44")]);t[Bx("0x2e")][Bx("0x23")]((()=>{o[Bx("0x17")](e,{commandName:"mergeTableCells",commandParams:[]},[],Bx("0xc"))}))})),t[Bx("0x16")].get("mergeTableCells").on(Bx("0x45"),((e,n)=>{t[Bx("0x16")][Bx("0x43")](Bx("0xa"))[Bx("0x29")]&&(n[Bx("0x15")]>0&&n[n[Bx("0x15")]-1]&&n[n.length-1][Bx("0x2a")]||o[Bx("0x4")]||this[Bx("0x14")]()||e[Bx("0x33")]())}),{priority:Bx("0x39")});for(const e of[Bx("0x35"),Bx("0x19"),"mergeTableCellDown",Bx("0x11")]){const n=t[Bx("0x16")].get(e);o[Bx("0x28")](e,(()=>{const e=t[Bx("0x2e")][Bx("0x46")].selection[Bx("0x24")]()[Bx("0x21")]()[Bx("0x3e")]((t=>t.is(Bx("0x40"),Bx("0x1a")))),s=n[Bx("0x29")];t[Bx("0x2e")][Bx("0x23")]((()=>{o[Bx("0x17")]([e,s],{commandName:Bx("0xc"),commandParams:[]},[],Bx("0xc"))}))}))}for(const e of[Bx("0xf"),Bx("0x31")]){const n=t[Bx("0x16")][Bx("0x43")](e);o.enableCommand(e,(()=>{const r=s[Bx("0xd")](t[Bx("0x2e")][Bx("0x46")][Bx("0x44")])[0],i=r[Bx("0x34")]("table"),{column:x,row:a}=s[Bx("0x1b")](r);let c=[];if(Bx("0x1f")==n[Bx("0x49")]){const t=s.createTableWalker(i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0x1e")](t)[Bx("0x36")]((t=>t[Bx("0x41")]))}else{const t=s.createTableWalker(i,{column:x,includeAllSlots:!0});c=Array[Bx("0x1e")](t)[Bx("0x36")]((t=>t[Bx("0x41")]))}t[Bx("0x2e")].change((t=>{o[Bx("0x0")](t.createRangeOn(r),{commandName:e,commandParams:[]},c,e)}))}))}o[Bx("0x9")][Bx("0x2d")]((t=>{const{data:e}=t;if(e)return"mergeTableCells"==e[Bx("0x10")]?{type:Bx("0x6"),content:Yo(n,"*Merge cells*")}:void 0})),o[Bx("0x9")][Bx("0x2d")]((t=>{const{data:e}=t;if(e)return"splitTableCellVertically"==e[Bx("0x10")]?{type:"format",content:Yo(n,"*Split cell:* vertically")}:Bx("0x31")==e.commandName?{type:Bx("0x6"),content:Yo(n,"*Split cell:* horizontally")}:void 0}));const x=r[Bx("0x3b")]();for(const t of[Bx("0x35"),Bx("0x19"),Bx("0x30"),Bx("0x11")])o[Bx("0x3a")].registerCustomCallback(Bx("0x2b"),t,Bx("0xe"),x);for(const t of["splitTableCellVertically",Bx("0x31")])o[Bx("0x3a")].registerCustomCallback(Bx("0x2b"),t,Bx("0xe"),x);o[Bx("0x3a")][Bx("0x3")](Bx("0x2b"),Bx("0xc"),"accept",(n=>{t[Bx("0x2e")].change((o=>{const s=Array[Bx("0x1e")](e.getRanges())[Bx("0x36")]((t=>i.LiveRange[Bx("0x8")](t)));o[Bx("0x47")](n),t[Bx("0x16")][Bx("0x43")](Bx("0xc"))[Bx("0x27")](),t.execute(Bx("0xc"),{forceDefaultExecution:!0});const r=s[Bx("0x7")]((t=>Bx("0x20")!=t.root[Bx("0x3f")]));r[Bx("0x15")]>0&&o[Bx("0x47")](r);for(const t of s)t[Bx("0x48")]()}))}));for(const e of[Bx("0x35"),Bx("0x30"),Bx("0x11"),Bx("0x19")]){const n=t[Bx("0x16")].get(e);n.on("set:isEnabled",((e,o,s)=>{if(s){const o=t[Bx("0x2e")][Bx("0x46")][Bx("0x44")][Bx("0x24")]().getAncestors()[Bx("0x3e")]((t=>t.is(Bx("0x40"),Bx("0x1a"))));this[Bx("0x25")](n[Bx("0x29")],o)||(e[Bx("0x4a")]=!1,e[Bx("0x33")]())}}),{priority:"low"})}}[Bx("0x14")](){const t=this[Bx("0x37")][Bx("0x16")].get("mergeTableCells"),e=this[Bx("0x37")].plugins[Bx("0x43")]("TableUtils");if(!t.isEnabled)return!1;const n=e[Bx("0xd")](this[Bx("0x37")][Bx("0x2e")][Bx("0x46")][Bx("0x44")]);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("0x37")][Bx("0x2f")][Bx("0x43")]("TrackChangesEditing"),o=this[Bx("0x37")][Bx("0x2e")][Bx("0x12")](t),s=this[Bx("0x37")][Bx("0x2e")][Bx("0x12")](e),r=new Set,i=new Set;for(const t of n[Bx("0x2c")]())if(("insertion"==t.type||Bx("0x2")==t.type||Bx("0xc")==t.subType)&&t[Bx("0x3c")])for(const e of t.getRanges())e[Bx("0x3d")](o,!0)&&r[Bx("0x26")](t[Bx("0x1c")]+":"+t[Bx("0x42")].id),e[Bx("0x3d")](s,!0)&&i[Bx("0x26")](t[Bx("0x1c")]+":"+t[Bx("0x42")].id);if(r[Bx("0x1d")]!=i[Bx("0x1d")])return!1;for(const t of r)if(!i[Bx("0xb")](t))return!1;return!0}}const Ux=["options","ck-suggestion-marker--active","document","has","mapper","forceValue","getColumnIndexes","_splitMarkerName","bindElementToMarker","registerCustomCallback","headingRows","selection","getAttribute","findAncestor","createRange","writer","change","createTableWalker","data","removeClass","item","enableCommand","FORMAT_HEADER_COLUMN","setTableColumnHeader","TableEditing","last","value","ck-suggestion-marker-","commandName","nodeBefore","consume","_suggestionFactory","model","_acceptFormatSuggestionCallbackFactory","FORMAT_REGULAR_COLUMN","FORMAT_REGULAR_ROW","addMarker:suggestion","get","parent","markerRange","editor","table","getChild","getSuggestion","data-suggestion","TableUtils","name","markerName","removeAttribute","from","getSelectionAffectedTableCells","index","downcastDispatcher","getRowIndexes","showSuggestionHighlights","first","childCount","formatBlock","format","commands","afterInit","cell","highest","editing","createPositionBefore","addClass","commandParams","requires","markBlockFormat","includes","*Format:* %0","_descriptionFactory","accept","createPositionAfter","end","FORMAT_HEADER_ROW","headingColumns","plugins","setTableRowHeader","stop","unbindElementFromMarkerName"];var Gx,Hx;Gx=Ux,Hx=241,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("0x45")](){return[Mx]}[zx("0x3e")](){const t=this[zx("0x2a")];if(!t[zx("0x4f")][zx("0x5")](zx("0x1a")))return;const e=t.locale,n=t[zx("0x4f")][zx("0x27")]("TrackChangesEditing"),o=t[zx("0x4f")].get(zx("0x2f")),s=t.plugins[zx("0x27")](Mx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[zx("0x9")](r[zx("0x31")]),c=n[zx("0x2d")](a);if(!c[zx("0x14")]||zx("0x19")!=c[zx("0x14")][zx("0x1e")])return;if(r[zx("0x16")])return void s[zx("0x0")]();if(!i.consumable[zx("0x20")](r[zx("0x29")],s[zx("0x30")]))return;const l=r[zx("0x29")].start.nodeAfter,u=r[zx("0x29")][zx("0x4c")][zx("0x1f")],d=l[zx("0x28")].parent,{column:g}=o.getCellLocation(l),{column:m}=o.getCellLocation(u);for(let s=g;s<=m;s++){const c=o[zx("0x13")](d,{column:s,includeAllSlots:!1});for(const o of c){const s=o[zx("0x3f")],c=i.mapper.toViewElement(s);i[zx("0x11")].addClass("ck-suggestion-marker-"+x,c),e&&i.writer.setAttribute(zx("0x2e"),a,c),i.mapper[zx("0xa")](c,r.markerName),t&&(n.activeMarkers[zx("0x47")](r[zx("0x31")])?i[zx("0x11")][zx("0x43")](zx("0x3"),c):i[zx("0x11")].removeClass("ck-suggestion-marker--active",c))}}}}n[zx("0x17")](zx("0x50"),((e,s)=>{const r=o[zx("0x34")](t.model[zx("0x4")][zx("0xd")]),i=o[zx("0x37")](r),x=r[0][zx("0xf")](zx("0x2b")),a=x[zx("0xe")](zx("0xc"))||0,c=s&&null!==s[zx("0x7")]?s[zx("0x7")]:!t[zx("0x3d")][zx("0x27")](zx("0x50")).value,l=c?i[zx("0x1b")]:i.first,u=x.getChild(l);let d;if(c){const e=x.getChild(a);if(u[zx("0x35")]<e[zx("0x35")])return;d=t[zx("0x22")][zx("0x10")](t.model[zx("0x42")](e.getChild(0)),t[zx("0x22")].createPositionAfter(u[zx("0x2c")](u[zx("0x3a")]-1)))}else{const e=x[zx("0x2c")](a-1);if(!e)return;d=t[zx("0x22")][zx("0x10")](t[zx("0x22")].createPositionBefore(u[zx("0x2c")](0)),t[zx("0x22")][zx("0x4b")](e[zx("0x2c")](e.childCount-1)))}t[zx("0x22")].change((()=>{n[zx("0x46")](d,{commandName:zx("0x50"),commandParams:[{forceValue:c}]},[],zx("0x50"))}))})),n[zx("0x17")](zx("0x19"),((e,o)=>{const s=t[zx("0x4f")].get(zx("0x2f")),r=s.getSelectionAffectedTableCells(t[zx("0x22")][zx("0x4")][zx("0xd")]),i=s[zx("0x8")](r),x=r[0][zx("0xf")]("table"),a=x[zx("0xe")](zx("0x4e"))||0,c=o&&null!==o.forceValue?o[zx("0x7")]:!t[zx("0x3d")].get(zx("0x19"))[zx("0x1c")];let l;const u=x[zx("0x2c")](0),d=c?i[zx("0x1b")]:i[zx("0x39")],g=s[zx("0x13")](x,{startRow:0,column:d,includeAllSlots:!1}),m=Array[zx("0x33")](g)[0][zx("0x3f")];if(c){const e=u[zx("0x2c")](a);if(m.isBefore(e))return;l=t[zx("0x22")][zx("0x10")](t[zx("0x22")][zx("0x42")](e),t[zx("0x22")][zx("0x4b")](m))}else{const e=u[zx("0x2c")](a-1);if(!e)return;l=t[zx("0x22")].createRange(t[zx("0x22")][zx("0x42")](m),t[zx("0x22")][zx("0x4b")](e))}t.model[zx("0x12")]((()=>{n[zx("0x46")](l,{commandName:"setTableColumnHeader",commandParams:[{forceValue:c}]},[],zx("0x19"))}))})),t[zx("0x41")][zx("0x36")].on(zx("0x26"),r(),{priority:"highest"}),t.data[zx("0x36")].on(zx("0x26"),((t,e,n)=>{n[zx("0x2")][zx("0x38")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:zx("0x40")}),t.editing[zx("0x36")].on("removeMarker:suggestion",((t,e,o)=>{const{type:s,id:r}=n._splitMarkerName(e.markerName),i=n.getSuggestion(r);if(!i.data||"setTableColumnHeader"!=i[zx("0x14")][zx("0x1e")])return;const x=o[zx("0x6")].markerNameToElements(e[zx("0x31")]);if(x)for(const t of x)o.writer[zx("0x15")](zx("0x1d")+s,t),o.writer[zx("0x15")](zx("0x3"),t),o[zx("0x11")][zx("0x32")](zx("0x2e"),t),o.mapper[zx("0x1")](t,e[zx("0x31")])}),{priority:zx("0x40")}),n[zx("0x49")].registerDescriptionCallback((t=>{const{data:n}=t;if(n){if(zx("0x50")==n[zx("0x1e")]){const t=n[zx("0x44")][0][zx("0x7")];return o(Yo(e,zx(t?"0x4d":"0x25")))}if(zx("0x19")==n[zx("0x1e")]){const t=n[zx("0x44")][0][zx("0x7")];return o(Yo(e,zx(t?"0x18":"0x24")))}}function o(t){return{type:zx("0x3c"),content:Yo(e,zx("0x48"),t)}}}));const i=s[zx("0x23")]();n[zx("0x21")].registerCustomCallback(zx("0x3b"),zx("0x50"),zx("0x4a"),i),n[zx("0x21")][zx("0xb")](zx("0x3b"),"setTableColumnHeader",zx("0x4a"),i)}}const Vx=["end","has","unwrap","fromEntries","columns","discard","filter","registerPostFixer","keys","markers","getChanges","markMultiRangeBlockFormat","return","$graveyard","removeMarker","createElement","row","getTableIfOnlyTableInContent","afterInit","createTableWalker","getSelectionAffectedTableCells","content","locale","tablePasteCell","newRange","nextSibling","tableCellBorderStyle","previous","insertRows","entries","_replaceTableSlotCell","options","wrap","rowInsertionRanges","getRowIndexes","length","setAttributes","tableCellBorderColor","deletion","TableClipboard","getChangedMarkers","stop","tablePasteColumn","plugins","cell","join","author","getMarkers","last","value","change","remove","name","model","markMultiRangeInsertion","_createdBatches","first","hasSuggestion","getAttributes","clipboardOutput","low","tableCellBackgroundColor","tablePasteChainId","every","activeMarkers","accept","includes","endRow","documentSelection","markMultiRangeDeletion","commands","isInContent","element","schema","registerCustomCallback","reduce","requires","table","move","fill","getAllAdjacentSuggestions","removeRows","registerDescriptionCallback","suggestion:formatBlock:tablePasteCell","setAttribute","suggestion","tableCell","ck-suggestion-marker","getSuggestionCallback","cells","createRangeOn","markerToHighlight","get","high","deletionRanges","tablePaste","isEqual","register","previousSibling","next","ck-suggestion-marker-insertion","getRanges","trackChanges","isEmpty","add","createRangeIn","some","for","from","tableCellPadding","columnInsertionRanges","_tablePostFixingSubtypes","removeMarkers","markerAttributes","position","tableCellHorizontalAlignment","subType","containsRange","formatBlock","push","insertion","_descriptionFactory","type","rowInsertionIndexes","_splitMarkerName","showSuggestionHighlights","find","editingDowncast","TrackChangesEditing","getRange","startsWith","ck-suggestion-marker--active","tableCellVerticalAlignment","suggestion-td","tablePasteRow","markerName","differ","root","tableCellBorderWidth","getChildren","editor","_isForcedDefaultExecutionBlock","insert","map","getContainedElement","insertColumns","batch","tableCellSuggestion","document","_getCoordsForCells","listenTo","getSuggestions","set","oldRange","findAncestor","Users","attributes","_suggestionFactory","TableUtils","getChild","paragraph"];var Kx,qx;Kx=Vx,qx=227,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]},$x=[Xx("0x48"),Xx("0x84"),Xx("0x79"),Xx("0x31"),Xx("0x42"),Xx("0x9c"),Xx("0x2b")],Jx=Object[Xx("0x62")]($x[Xx("0x4d")]((t=>[t,null])));class Qx extends t.Plugin{static get[Xx("0xa")](){return[Mx]}[Xx("0x71")](){const t=this.editor;if(!t[Xx("0x8a")][Xx("0x60")]("TableClipboard"))return;const n=t[Xx("0x8a")][Xx("0x1a")](Xx("0x3e")),o=t.plugins[Xx("0x1a")](Xx("0x5c")),s=t.plugins.get(Mx),r=t[Xx("0x8a")][Xx("0x1a")](Xx("0x86"));s[Xx("0x2d")][Xx("0x35")]("tablePasteRow","tablePasteColumn"),t[Xx("0x94")][Xx("0x7")][Xx("0x1f")](Xx("0x51"),{allowIn:Xx("0x14"),allowContentOf:Xx("0x14"),isLimit:!0}),t.conversion.elementToElement({model:Xx("0x51"),view:Xx("0x43")});let i=null;t.model.on("insertContent",((s,x)=>{const[a,c]=x,l=x[x[Xx("0x82")]-1];l&&l.forceDefaultExecution||n[Xx("0x4b")]||this[Xx("0x4a")].commands[Xx("0x1a")](Xx("0x24"))[Xx("0x90")]&&function(t,e,n,o,s){if(e&&!e.is(Xx("0x2")))return!1;const r=s[Xx("0x70")](t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o[Xx("0x73")](n[Xx("0x52")].selection);if(!i.length)return!1;const x=i[0][Xx("0x58")](Xx("0xb")),a=o[Xx("0x81")](i),c=o.getColumnIndexes(i),l={startRow:a[Xx("0x97")],endRow:a[Xx("0x8f")],startColumn:c[Xx("0x97")],endColumn:c.last};return 1==i[Xx("0x82")]&&(l[Xx("0x1")]+=o.getRows(r)-1,l.endColumn+=o.getColumns(r)-1),Yx(x,l,o)}(a,c,t[Xx("0x94")],o,r)&&(s[Xx("0x88")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Xx("0x94")].change((()=>{t.model.insertContent(x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=i;s[Xx("0x82")]&&n[Xx("0x95")](s,"tablePasteRow",{tablePasteChainId:o}),r.length&&n[Xx("0x95")](r,"tablePasteColumn",{tablePasteChainId:o}),a[Xx("0x82")]&&n[Xx("0x95")](a,Xx("0x1d"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Xx("0x82")]&&n[Xx("0x3")](c,Xx("0x1d"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n[Xx("0x6a")](l.map((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Xx("0x76"),{tablePasteChainId:o});if(u){const e=u[Xx("0x8e")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[Xx("0x94")][Xx("0x18")](o),i=e[Xx("0x3c")]((t=>t[Xx("0x3f")]()[Xx("0x1e")](r)));i&&n[Xx("0x35")]([i[Xx("0x93")],s])}n.length&&u[Xx("0x12")](Xx("0x2f"),Object.fromEntries(n))}i=null})))}),{priority:e.priorities[Xx("0x1b")]+10}),t[Xx("0x8a")][Xx("0x1a")]("TableClipboard").on(Xx("0x7d"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t[Xx("0x88")]();const r=n[Xx("0x8b")],x=o,a=Zx(r),c=Zx(x);t[Xx("0x6b")]=r;let l=null,u=null;if(c||a)if(a&&!c){s[Xx("0x92")](r[Xx("0x5d")](0));for(const t of Array[Xx("0x2a")](x[Xx("0x49")]()))s[Xx("0x4c")](t,r,Xx("0x5f"));const t=i[Xx("0x39")][Xx("0x0")](n[Xx("0x6f")]),e=i.columnInsertionIndexes.includes(n.column);t||e||(l=s[Xx("0x27")](r))}else c&&!a&&(u=s[Xx("0x27")](r));else{const t=s.createElement("tableCellSuggestion"),e=s[Xx("0x6e")]("tableCellSuggestion");s[Xx("0x7f")](s.createRangeIn(r),e),s.insert(t,r,0);for(const e of Array.from(x[Xx("0x49")]()))s[Xx("0x4c")](e,t,Xx("0x5f"));l=s.createRangeOn(t),u=s[Xx("0x18")](e)}const d=Array[Xx("0x2a")](x[Xx("0x99")]()).filter((([t])=>$x.includes(t)));i[Xx("0x17")][Xx("0x35")]({element:r,attributes:d[Xx("0x82")]?Object.fromEntries(d):null}),l&&i.insertionRanges.push(l),u&&i[Xx("0x1c")][Xx("0x35")](u)}),{priority:Xx("0x1b")}),o.on(Xx("0x4f"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x63")]||1;i.columnInsertionIndexes=new Array(a)[Xx("0xd")](x).map(((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(s,{startColumn:x,endColumn:x+a-1}))i[Xx("0x2c")][Xx("0x35")](t[Xx("0x94")][Xx("0x18")](e))}),{priority:Xx("0x9b")}),o.on(Xx("0x7b"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r.rows||1;i[Xx("0x39")]=new Array(a)[Xx("0xd")](x)[Xx("0x4d")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x72")](s,{startRow:x,endRow:x+a-1}))i[Xx("0x80")][Xx("0x35")](t[Xx("0x94")].createRangeOn(e))}),{priority:"low"}),n[Xx("0x37")][Xx("0x10")]((e=>{if(e.subType&&e.subType.startsWith("tablePaste"))return e[Xx("0x7a")]?{}:{type:Xx("0x36"),content:Yo(t[Xx("0x75")],"*Replace table cells*")}}));const x=()=>{};for(const t of["tablePaste",Xx("0x89"),Xx("0x44"),Xx("0x76")])n._suggestionFactory.registerCustomCallback(Xx("0x36"),t,Xx("0x8c"),x),n[Xx("0x5b")][Xx("0x8")](Xx("0x85"),t,"join",x);n._suggestionFactory[Xx("0x8")](Xx("0x34"),"tablePasteCell",Xx("0x64"),x),n._suggestionFactory[Xx("0x8")]("formatBlock","tablePasteCell","accept",((e,n,o)=>{const s=e[Xx("0x4d")]((t=>t.getContainedElement()))[Xx("0x65")]((t=>t)),r=new Map(s[Xx("0x4d")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i.cells)e&&r[Xx("0x56")](t,e);else if(o&&o[Xx("0x2f")])for(const[e,n]of Object[Xx("0x7c")](o[Xx("0x2f")])){const o=t.model[Xx("0x68")][Xx("0x1a")](e),s=o?o[Xx("0x3f")]()[Xx("0x4e")]():null;s&&r.set(s,n)}t[Xx("0x94")][Xx("0x91")]((t=>{for(const[e,n]of r)t[Xx("0x83")]({...Jx,...n},e)}))}));const a=(e,o)=>{n[Xx("0x5b")][Xx("0x8")](e,"tablePaste",o,((s,r,i)=>{t[Xx("0x94")][Xx("0x91")]((t=>{const x=[];for(const t of s){const e=t.start.nodeAfter;e.is(Xx("0x6"),Xx("0x51"))&&x.push(e)}n._suggestionFactory[Xx("0x16")](e,null,o)(s,r,i);for(const e of x)Xx("0x6c")!=e[Xx("0x47")].rootName&&t[Xx("0x61")](e)}))}))};a(Xx("0x36"),Xx("0xa0")),a(Xx("0x36"),Xx("0x64")),a(Xx("0x85"),Xx("0xa0")),a(Xx("0x85"),Xx("0x64")),n[Xx("0x5b")][Xx("0x8")](Xx("0x36"),Xx("0x44"),Xx("0x64"),(t=>{const e=t.map((t=>t[Xx("0x4e")]())),n=e[0][Xx("0x58")](Xx("0xb")),{minRow:r,maxRow:i}=s[Xx("0x53")](e);o[Xx("0xf")](n,{at:r,rows:i-r+1})})),n[Xx("0x5b")].registerCustomCallback(Xx("0x36"),Xx("0x89"),Xx("0x64"),(t=>{const e=t[Xx("0x4d")]((t=>t[Xx("0x4e")]())),n=e[0][Xx("0x58")](Xx("0xb")),{minColumn:r,maxColumn:i}=s[Xx("0x53")](e);o.removeColumns(n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Xx("0x32")]||!e[Xx("0x32")][Xx("0x40")](Xx("0x1d")))return;const o=e.attributes.tablePasteChainId,s=n.getSuggestions().filter((t=>t[Xx("0x5")]&&t[Xx("0x5a")]&&t[Xx("0x5a")][Xx("0x9d")]==o));s[Xx("0x82")]&&e[Xx("0xe")]()[Xx("0x82")]!=s[Xx("0x82")]&&s[Xx("0x9")](((t,e)=>(t[Xx("0x21")]=e,e.previous=t,e)))};function l(t,e=!0){const{id:o}=n[Xx("0x3a")](t.markerName),s=[Xx("0x15"),Xx("0x22")],r=n[Xx("0x9f")][Xx("0x0")](t[Xx("0x45")]);return r&&s[Xx("0x35")](Xx("0x41")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:Xx("0x1b")}),n.on("suggestionUnloaded",c,{priority:Xx("0x1b")}),t.model[Xx("0x52")][Xx("0x66")]((()=>{let e=!1;const o=Array.from(t.model[Xx("0x52")].differ[Xx("0x87")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Xx("0x3a")](s);if("suggestion"!=o||Xx("0x85")!=i||r[Xx("0x57")])continue;if(!n[Xx("0x98")](x))continue;const a=n.getSuggestion(x)[Xx("0x23")](),c=t[Xx("0x8a")][Xx("0x1a")](Xx("0x59")).me;for(const t of n[Xx("0x55")]())if(t[Xx("0x5")]&&t[Xx("0x8d")]==c&&Xx("0x34")==t.type&&Xx("0x76")==t.subType&&t[Xx("0x23")]()[Xx("0x9e")]((t=>a[Xx("0x28")]((e=>e.containsRange(t,!0))))))for(const n of t[Xx("0xe")]())n[Xx("0x5")]&&(n[Xx("0x64")](),e=!0)}return e})),t[Xx("0x94")][Xx("0x52")][Xx("0x66")]((e=>{const o=t[Xx("0x4")].get("redo");if(!o||!o[Xx("0x96")][Xx("0x60")](e[Xx("0x50")]))return!1;let s=!1;const r=t[Xx("0x8a")].get(Xx("0x59")).me,i=t[Xx("0x94")].document[Xx("0x46")][Xx("0x69")](),x=Array.from(t[Xx("0x94")].document[Xx("0x46")][Xx("0x87")]())[Xx("0x65")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Xx("0x3a")](t);return Xx("0x13")==o&&Xx("0x1d")==s&&i==r.id&&!e[Xx("0x57")]}));for(const t of i){if(Xx("0x4c")!=t[Xx("0x38")]||Xx("0x51")!=t[Xx("0x93")]||1!=t[Xx("0x82")])continue;const n=e.createRange(t[Xx("0x30")],t[Xx("0x30")].getShiftedBy(1));if(!x[Xx("0x3c")]((({data:t})=>t.newRange[Xx("0x1e")](n))))for(const{name:t,data:o}of x)if(n[Xx("0x33")](o[Xx("0x77")])){e.updateMarker(t,{range:n}),s=!0;break}}return s})),t[Xx("0x94")][Xx("0x52")][Xx("0x66")]((e=>{let o=!1;const s=t[Xx("0x8a")][Xx("0x1a")](Xx("0x59")).me,r=n[Xx("0x55")]().filter((t=>t[Xx("0x5")]&&t[Xx("0x8d")]==s)),i=new Set,x=new Set;for(const t of r)if(Xx("0x1d")==t[Xx("0x32")])for(const e of t[Xx("0x8e")]()){const n=e[Xx("0x3f")]()[Xx("0x4e")]();if(n)if(n.is(Xx("0x6"),Xx("0x51"))&&Zx(n)){t[Xx("0x6d")](e[Xx("0x93")]),i[Xx("0x26")](n),o=!0;const s=n[Xx("0x78")],r=n[Xx("0x20")],a=s&&s.is(Xx("0x6"),Xx("0x51")),c=r&&r.is(Xx("0x6"),Xx("0x51"));a&&!i.has(s)&&x[Xx("0x26")](s),c&&!i[Xx("0x60")](r)&&x[Xx("0x26")](r)}else n.is("element","paragraph")&&n[Xx("0x25")]&&(t[Xx("0x6d")](e[Xx("0x93")]),o=!0)}else if(Xx("0x76")==t[Xx("0x32")]){if(!t[Xx("0x5a")]||!t.attributes[Xx("0x9d")])continue;const e=t[Xx("0x5a")][Xx("0x2f")];if(e&&Object[Xx("0x67")](e)[Xx("0x82")])continue;const n=t[Xx("0x5a")][Xx("0x9d")];let s=!0,i=!0;for(const e of r)if(e.subType&&e.subType[Xx("0x40")](Xx("0x1d"))){if(!e[Xx("0x5a")][Xx("0x9d")]){i=!1;break}if(e.id!=t.id&&e[Xx("0x5a")][Xx("0x9d")]==n){s=!1;break}}i&&s&&(t[Xx("0x2e")](),o=!0)}for(const t of i)e[Xx("0x92")](t);for(const t of x)e.unwrap(t);return o})),t.conversion[Xx("0x29")](Xx("0x3d"))[Xx("0x19")]({model:Xx("0x11"),view:(t,e)=>l(t),converterPriority:Xx("0x1b")}),t.conversion[Xx("0x29")]("dataDowncast").markerToHighlight({model:Xx("0x11"),view:(t,e)=>e[Xx("0x7e")][Xx("0x3b")]?l(t,!1):null,converterPriority:Xx("0x1b")});const u=t.editing.view;this[Xx("0x54")](u[Xx("0x52")],Xx("0x9a"),((t,e)=>{const n=[];for(const t of u[Xx("0x27")](e[Xx("0x74")]).getItems())t.is("element",Xx("0x43"))&&n.push(t);u[Xx("0x91")]((t=>{for(const e of n)t[Xx("0xc")](t[Xx("0x27")](e),t.createPositionBefore(e)),t[Xx("0x92")](e)}))}))}}function Zx(t){if(t[Xx("0x25")])return!0;const e=t[Xx("0x5d")](0);return e.is("element",Xx("0x5e"))&&e[Xx("0x25")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Xx("0x72")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["get","resizeColumnWidths","enableCommand","editor","resizeTable","tableWidth","formatBlock","afterInit","getSuggestions","_descriptionFactory","model","commandParams","table","getContainedElement","*Format:* resize table","resizeTableWidth","TableColumnResizeEditing","format","data","subType","_suggestionFactory","bind","Users","registerCustomCallback","discard","locale","TrackChangesEditing","getAttribute","getSelectedElement","handleSuggestionDescription","handleResizeTableWidthCommand","columnWidths","plugins","has","registerDescriptionCallback","markBlockFormat"];var ea,na;ea=ta,na=203,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{[oa("0x14")](){if(!this[oa("0x10")].plugins[oa("0xa")]("TableColumnResizeEditing"))return;const t=this[oa("0x10")][oa("0x9")][oa("0xd")](oa("0x3"));t[oa("0xf")]("resizeTableWidth",this[oa("0x7")][oa("0x22")](this)),t[oa("0xf")](oa("0xe"),this.handleResizeTableWidthCommand[oa("0x22")](this)),t[oa("0x21")][oa("0x0")](oa("0x13"),oa("0x11"),"accept",t[oa("0x21")].getSuggestionCallback(oa("0x13"),null,"discard")),t._suggestionFactory[oa("0x0")]("formatBlock","resizeTable",oa("0x1"),t[oa("0x21")].getSuggestionCallback(oa("0x13"),null,"accept")),t[oa("0x16")][oa("0xb")](this[oa("0x6")].bind(this))}[oa("0x7")](t,e){const n=this.editor[oa("0x9")][oa("0xd")](oa("0x3")),o=this.editor[oa("0x9")][oa("0xd")](oa("0x1d")),s=e[oa("0x19")]||this[oa("0x10")][oa("0x17")].document.selection[oa("0x5")]();this[oa("0x10")][oa("0x17")].change((()=>{const r=o.getColumnGroupElement(s);let i=r?o.getTableColumnsWidths(r):null,x=s[oa("0x4")]("tableWidth")||null;const a=e[oa("0x12")]||x,c=e[oa("0x8")]||i,l=this.editor.plugins[oa("0xd")](oa("0x23")).me;for(const t of n[oa("0x15")]()){const e=t[oa("0x1a")]();if("resizeTable"===t[oa("0x20")]&&e===s){t.author!==l&&t[oa("0x1")]();const e=t[oa("0x1f")][oa("0x18")];x=e[0][oa("0x12")],i=e[0].columnWidths;break}}t({table:s,tableWidth:a,columnWidths:c}),n[oa("0xc")](s,{commandName:oa("0x1c"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:"resizeTable"},[],oa("0x11"))}))}[oa("0x6")](t){const{data:e}=t;if(e&&"resizeTable"===e.formatGroupId){const t=oa("0x1b");return{type:oa("0x1e"),content:Yo(this[oa("0x10")][oa("0x2")],t)}}}}const ra=["plugins","afterInit","Template","get","insertTemplate","has","TrackChangesEditing"];var ia,xa;ia=ra,xa=250,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{[aa("0x3")](){const t=this.editor;t.plugins[aa("0x0")](aa("0x4"))&&t[aa("0x2")][aa("0x5")](aa("0x1")).enableCommand(aa("0x6"))}}const la=["_descriptionFactory","registerElementLabel","insertTableOfContents","TrackChangesEditing","get","afterInit","locale","plugins"];var ua,da;ua=la,da=237,function(t){for(;--t;)ua.push(ua.shift())}(++da);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x0")](){const t=this.editor;if(!t.commands[ga("0x7")](ga("0x5")))return;t[ga("0x2")][ga("0x7")]("TrackChangesEditing").enableCommand("insertTableOfContents");const e=t[ga("0x2")][ga("0x7")](ga("0x6")),n=t[ga("0x1")];e[ga("0x3")][ga("0x4")]("tableOfContents",(t=>Yo(n,"ELEMENT_TABLE_OF_CONTENTS",t)))}}const fa=["Title","isTouching","has","registerElementLabel","title-content","registerPostFixer","get","schema","locale","getNearestSelectionRange","plugins","start","model","editor","TrackChangesEditing","differ","newRange","nodeBefore","end","document","from","createRange","element","getChangedMarkers","forward"];var ha,pa;ha=fa,pa=230,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.plugins[ba("0x16")](ba("0x14")))return;const e=t[ba("0x5")][ba("0x1")](ba("0x9"));e._descriptionFactory[ba("0x17")]("title-content",(()=>Yo(t[ba("0x3")],"ELEMENT_TITLE"))),t.model[ba("0xe")][ba("0x0")]((n=>{let o=!1;const s=Array[ba("0xf")](t[ba("0x7")].document[ba("0xa")][ba("0x12")]());for(const{name:r,data:i}of s){const{group:s}=e._splitMarkerName(r);if("suggestion"!==s||!i[ba("0xb")])continue;const x=i.newRange,a=x[ba("0xd")][ba("0xc")];if(!a||!a.is(ba("0x11"),ba("0x18")))continue;if(!x[ba("0x6")][ba("0x15")](x[ba("0xd")]))continue;const c=t[ba("0x7")][ba("0x2")][ba("0x4")](x[ba("0xd")],ba("0x13"));if(c&&c.isCollapsed){const t=n[ba("0x10")](x[ba("0x6")],c[ba("0x6")]);t.isEqual(x)||(n.updateMarker(r,{range:t}),o=!0)}o||(n.removeMarker(r),o=!0)}return o}))}}const _a=["UndoEditing","get","afterInit","editor","undo","TrackChangesEditing","redo","plugins"];var Ta,Ca;Ta=_a,Ca=218,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x0")](){const t=this[ya("0x1")],e=t.plugins[ya("0x7")](ya("0x3"));t[ya("0x5")].has(ya("0x6"))&&(e.enableCommand(ya("0x2")),e.enableCommand(ya("0x4")))}}const Aa=["enableCommand","TableCaptionEditing","plugins","TrackChangesEditing","afterInit"];var va,Ra;va=Aa,Ra=405,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Sa=function(t,e){return Aa[t-=0]};class Ia extends t.Plugin{static get requires(){return[Mx]}[Sa("0x4")](){const t=this.editor;t[Sa("0x2")].has(Sa("0x1"))&&t[Sa("0x2")].get(Sa("0x3"))[Sa("0x0")]("toggleTableCaption")}}const La=["editor","commandParams","_getTranslationKeyForListStyle","styles","getAttribute","reversed","from","change","plugins","startIndex","getSelectedBlocks","listReversed","type","*Format:* set start index to %0","listType","markMultiRangeBlockFormat","commandName","toUpperCase","ELEMENT_","_getSuggestionBlocks","format","handleListStyleCommand","_descriptionFactory","bind","enableCommand","_getSuggestionBlocksForListStyle","numbered","filter","expandListBlocksToCompleteList","*Change to:* %0","model","TrackChangesEditing","handleDescriptions","listStyle","listStart","push","get","isFirstBlockOfListItem","isListItemBlock","document","list.properties","length","_LIST_","replace","*Format:* set order to regular","handleListStartCommand","DocumentListPropertiesEditing","DocumentListPropertiesUtils","registerDescriptionCallback","afterInit","DocumentListUtils"];var Na,wa;Na=La,wa=432,function(t){for(;--t;)Na.push(Na.shift())}(++wa);const Ma=function(t,e){return La[t-=0]};class Oa extends t.Plugin{[Ma("0x19")](){if(!this[Ma("0x1b")][Ma("0x23")].has(Ma("0x16")))return;const t=this[Ma("0x1b")].config[Ma("0xc")](Ma("0x10")),e=this[Ma("0x1b")][Ma("0x23")][Ma("0xc")](Ma("0x7"));t[Ma("0x1e")]&&e.enableCommand("listStyle",this.handleListStyleCommand.bind(this)),t[Ma("0x20")]&&e[Ma("0x0")](Ma("0x26"),this.handleListReversedCommand[Ma("0x32")](this)),t.startIndex&&e.enableCommand(Ma("0xa"),this[Ma("0x15")].bind(this)),e[Ma("0x31")][Ma("0x18")](this[Ma("0x8")][Ma("0x32")](this))}[Ma("0x30")](t,e={}){const n=this[Ma("0x1b")][Ma("0x23")].get(Ma("0x7")),o=this._getSuggestionBlocksForListStyle();this.editor.model[Ma("0x22")]((()=>{n[Ma("0x2a")](o,{commandName:Ma("0x9"),commandParams:[{type:e[Ma("0x27")]}],formatGroupId:Ma("0x9")})}))}handleListReversedCommand(t,e={}){const n=this[Ma("0x1b")][Ma("0x23")].get("TrackChangesEditing"),o=this[Ma("0x1b")][Ma("0x23")][Ma("0xc")](Ma("0x1a")),s=this._getSuggestionBlocks((t=>o.isListItemBlock(t)&&Ma("0x2")===t[Ma("0x1f")](Ma("0x29"))));null!==s&&this[Ma("0x1b")][Ma("0x6")][Ma("0x22")]((()=>{n[Ma("0x2a")](s,{commandName:Ma("0x26"),commandParams:[{reversed:e.reversed}],formatGroupId:Ma("0x26")})}))}handleListStartCommand(t,e={}){const n=this[Ma("0x1b")][Ma("0x23")][Ma("0xc")](Ma("0x7")),o=this[Ma("0x1b")][Ma("0x23")].get("DocumentListUtils"),s=this[Ma("0x2e")]((t=>o[Ma("0xe")](t)&&"numbered"===t[Ma("0x1f")](Ma("0x29"))));null!==s&&this[Ma("0x1b")][Ma("0x6")][Ma("0x22")]((()=>{n[Ma("0x2a")](s,{commandName:"listStart",commandParams:[{startIndex:e[Ma("0x24")]}],formatGroupId:Ma("0xa")})}))}[Ma("0x8")](t){const e=this[Ma("0x1b")].locale,{data:n}=t;if(!n)return;let o,s;switch(n[Ma("0x2b")]){case Ma("0x9"):o=Ma("0x5"),s={type:Ma("0x2f"),content:Yo(e,o,Yo(e,this[Ma("0x1d")](n[Ma("0x1c")][0][Ma("0x27")])))};break;case Ma("0x26"):o=n[Ma("0x1c")][0][Ma("0x20")]?"*Format:* set order to reversed":Ma("0x14"),s={type:Ma("0x2f"),content:Yo(e,o)};break;case Ma("0xa"):o=Ma("0x28"),s={type:Ma("0x2f"),content:Yo(e,o,n[Ma("0x1c")][0][Ma("0x24")])}}return s}[Ma("0x1")](){const t=this.editor.plugins[Ma("0xc")](Ma("0x1a"));let e=Array[Ma("0x21")](this[Ma("0x1b")].model.document.selection[Ma("0x25")]());return e[Ma("0xb")](...t[Ma("0x4")](e)),e=[...new Set(e)],e}[Ma("0x2e")](t){const e=this[Ma("0x1b")][Ma("0x23")][Ma("0xc")](Ma("0x1a"));let n=Array[Ma("0x21")](this.editor.model[Ma("0xf")].selection[Ma("0x25")]())[Ma("0x3")](t);if(!n[Ma("0x11")])return null;n=e[Ma("0x4")](n);const o=[];for(const t of n)e[Ma("0xd")](t)&&o.push(t);return o}[Ma("0x1d")](t){return Ma("0x2d")+this[Ma("0x1b")].plugins.get(Ma("0x17")).getListTypeFromListStyleType(t)[Ma("0x2c")]()+Ma("0x12")+t.toUpperCase()[Ma("0x13")](/-/g,"_")}}const Fa=["tableProperties","join","tableCellBorderWidth","discard","getFirstPosition","handleSuggestionDescription","has","tableBorderWidth","tableCellPadding","tableCellProperties","data","tableCellBorderColor","table","TablePropertiesEditing","registerDescriptionCallback","*Format:* change table cell properties","locale","formatBlock","enableCommand","pluginName","selection","commandParams","tableCellVerticalAlignment","accept","findAncestor","_handlePropertyChange","get","TrackChangesEditing","handleDiscardAction","tableCellWidth","editor","enqueueChange","getSuggestionCallback","_getSuggestion","nodeAfter","getContainedElement","removeAttribute","tableWidth","tableBackgroundColor","batch","markBlockFormat","subType","plugins","getSuggestions","start","document","TableUtils","tableCellBorderStyle","registerCustomCallback","_descriptionFactory","_suggestionFactory","tableCellBackgroundColor","getAttribute","format","model"];var Pa,Da;Pa=Fa,Da=134,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.tableProperties=["tableBorderColor","tableBorderStyle",Ba("0x26"),"tableAlignment",Ba("0xd"),"tableHeight",Ba("0xe")],this[Ba("0x28")]=[Ba("0x2a"),Ba("0x17"),Ba("0x21"),Ba("0x27"),Ba("0x5"),"tableCellHeight",Ba("0x1b"),"tableCellHorizontalAlignment",Ba("0x35")]}static get[Ba("0x32")](){return"TrackChangesTableProperties"}afterInit(){const t=this[Ba("0x6")][Ba("0x12")].get("TrackChangesEditing");if(this[Ba("0x6")][Ba("0x12")][Ba("0x25")](Ba("0x2c"))){for(const e of this[Ba("0x1f")])t[Ba("0x31")](e,((t,n)=>{const o=this[Ba("0x6")][Ba("0x1e")][Ba("0x15")][Ba("0x33")][Ba("0x23")]()[Ba("0x0")](Ba("0x2b"));this[Ba("0x1")](e,[o],this[Ba("0x1f")],Ba("0x1f"),t,n)}));t[Ba("0x1a")][Ba("0x18")](Ba("0x30"),Ba("0x1f"),Ba("0x36"),t._suggestionFactory[Ba("0x8")](Ba("0x30"),null,Ba("0x22"))),t[Ba("0x1a")][Ba("0x18")]("formatBlock",Ba("0x1f"),Ba("0x22"),((t,e)=>this[Ba("0x4")](this[Ba("0x1f")],t,e))),t[Ba("0x1a")][Ba("0x18")]("formatBlock",Ba("0x1f"),Ba("0x20"),(()=>!1))}if(this[Ba("0x6")].plugins[Ba("0x25")]("TableCellPropertiesEditing")){for(const e of this[Ba("0x28")])t[Ba("0x31")](e,((t,n)=>{const o=this[Ba("0x6")][Ba("0x12")].get(Ba("0x16")).getSelectionAffectedTableCells(this.editor[Ba("0x1e")].document[Ba("0x33")]);this[Ba("0x1")](e,o,this[Ba("0x28")],"tableCellProperties",t,n)}));t[Ba("0x1a")].registerCustomCallback(Ba("0x30"),Ba("0x28"),Ba("0x36"),t[Ba("0x1a")].getSuggestionCallback("formatBlock",null,Ba("0x22"))),t[Ba("0x1a")][Ba("0x18")](Ba("0x30"),Ba("0x28"),Ba("0x22"),((t,e)=>this.handleDiscardAction(this[Ba("0x28")],t,e))),t[Ba("0x1a")][Ba("0x18")](Ba("0x30"),Ba("0x28"),Ba("0x20"),(()=>!1))}t[Ba("0x19")][Ba("0x2d")]((t=>this[Ba("0x24")](t)))}[Ba("0x1")](t,e,n,o,s,r){const i=this[Ba("0x6")][Ba("0x12")][Ba("0x2")](Ba("0x3"));this.editor[Ba("0x1e")][Ba("0x7")](r[Ba("0xf")],(()=>{for(const t of e)if(this._getSuggestion(t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0x1c")](o);void 0!==n&&(e[o]=n)}s(r),i[Ba("0x10")](t,{commandParams:[e]},[],o)}}))}[Ba("0x4")](t,e,n){const o=e[0][Ba("0x14")][Ba("0xa")],s=n[Ba("0x34")][0];this[Ba("0x6")][Ba("0x1e")].change((e=>{for(const n of t)void 0!==s[n]?e.setAttribute(n,s[n],o):e[Ba("0xc")](n,o)}))}[Ba("0x24")](t){if(t[Ba("0x29")])switch(t[Ba("0x11")]){case"tableProperties":return{type:Ba("0x1d"),content:Yo(this[Ba("0x6")][Ba("0x2f")],"*Format:* change table properties")};case Ba("0x28"):return{type:Ba("0x1d"),content:Yo(this[Ba("0x6")][Ba("0x2f")],Ba("0x2e"))}}}[Ba("0x9")](t,e){const n=this[Ba("0x6")][Ba("0x12")][Ba("0x2")](Ba("0x3"));for(const o of n[Ba("0x13")]({skipNotAttached:!0})){const n=o[Ba("0xb")]();if(o[Ba("0x11")]===e&&n===t)return o}return null}}const Ua=["insertContent","chain","getSuggestions","ck-suggestion-marker-formatBlock","_createSuggestion","accept","upcast","selection","return","normal","$textProxy","document","marker-count","getRanges","acceptSuggestion","markerNameToElements","push","formatInline:accept","setAttribute","addMarker:suggestion","isExternal","hasCommentThread","define","forceDefaultExecution","isIntersectingWithRange","start","registerPostFixer","suggestionLoaded","markBlockFormat","setSelection","removeAttribute","isAtStart","elementEnd","change:data","config","resolve","splice","bindElementToMarker","removeMarker","_updateSuggestionData","_handleNewSuggestionMarker","before","addSuggestionData","open","isInsideObject","createdAt","rootName","newRange","collaboration.channelId","trackChangesCommand","formatInline:chain","discard","suggestion-type","_isForcedDefaultExecutionBlock","getSuggestion","getAncestors","oldRange","_getAuthorFromId","some","formatInline:join","createRangeIn","createElement","consumable","track-changes-user-not-found","track-changes-adapter-missing-getsuggestion","includes","suggestion:","removeMarkers","buildSuggestion","insertion:chain","accepted","_trackFormatChanges","getCustomProperty","after","markInsertion","_customCallbacks","getMultiRangeId","formatInline:discard","model","PendingActions","next","@external","TrackChangesEditing","deleteContent","addMarkerName","isNextTo","removed","dataDowncast","always","addComment","detach","previous","registerCustomCallback","isAtEnd","getAttribute","removeClass","backward","join","isMultiRange","removeComment","isRemovable","change","deletion:join","lowest","stop","Users","isBlock","split","batch","hasSuggestion","authorName","editingDowncast","_mergeNestedSuggestions","getShiftedBy","trackChanges.mergeNestedSuggestions","locale","element","addMarker:suggestion:formatBlock","length","add","isCollapsed","getLastMatchingPosition","createPositionAt","has","track-changes-adapter-already-set","_saved","isObject","nodeAfter","_refreshSuggestionsChain","differ","adapter","low","_registerDefaultCallbacks","getRange","listenTo","parent","_defaultCallbacks","_removeSuggestion","root","enableCommand","map","_cutOutSuggestionMarker","_joinWithAdjacentSuggestions","refresh","widget","range","_getExternalAuthor","splitPosition","formatBlock:discard","markInlineFormat","addMarker","rethrowUnexpectedError","suggestion","_splitMarkerName","deletion:","ready","unbind","containsItem","clear","_getSuggestionData","_breakSuggestionMarker","getNearestSelectionRange","schema","nodeBefore","_suggestions","trackChanges","$graveyard","markerName","insertion:discard","isEqual","getIntersection","end","formatBlock","isAfter","ck-suggestion-marker","getDifference","howMany","track-changes-suggestion-data-mismatch","discardSelectedSuggestions","isLimit","error-saving-suggestion-data-suggestion-discarded","targetPosition","every","plugins","remove","writer","consume","hasComments","change:_saved","suggestionChanged","containsRangeInObject","markerReady","attributes","discardSuggestion","delete","position","fire","trackChanges.trackFormatChanges","fetchCommentThread","creator","createSelection","_editor","multipleBlocks","commandName","authoredAt","formatBlock:","_commentsRepository","_rangeIsInLocalUserInsertion","init","getUser","set","data","head","getAllAdjacentSuggestions","never","deletion:accept","suggestionUnloaded","fromCharCode","elementToElement","clone","update:suggestion","item","isTouching","values","activeMarkers","_enabledCommands","PENDING_ACTION_SUGGESTION","getCommentThread","_suggestionState","requires","value","dataReady","for","high","containsPosition","markMultiRangeDeletion","sort","from","notReady","insert","addRange","_checkSuggestionCorrectness","multi","addCommentThread","execute","applyOperation","acceptSelectedSuggestions","rejected","isBefore","options","commentThread","then","toViewElement","updateMarker","size","markerToHighlight","editor","deletion","createRange","insertion:","isOwn","createPositionAfter","external:","formatBlock:accept","_suggestionFactory","acceptAllSuggestions","formatInline","_findSuggestions","subType","addSuggestion","type","addClass","_adapter","getFirstRange","documentSelection","getFirstMarker","showSuggestionHighlights","originalSuggestionId","formatBlock:join","author","_setSuggestionRange","formatGroupId","addHighlight","getChanges","forward","isLocal","_setSuggestionData","fromRange","name","change:activeMarkers","deletion:chain","default","insertion","CommentsRepository","_joinSuggestions","containsRange","enqueueChange","group","getChangedMarkers","updateSuggestion","isSelectable","_model","removeMarker:suggestion:formatBlock","_addSuggestionMarker","skipNestingCheck","_onDiscard","ck-suggestion-marker--active","stopListening","ck-suggestion-marker-","commands","isDocumentOperation","getSuggestionCallback","conversion","_addThreadToSuggestion","isInContent","get","filter","mapper","data-suggestion","_descriptionFactory"];var Ga,Ha;Ga=Ua,Ha=205,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("0x18")](){return["CommentsRepository",r.Users,t.PendingActions,cs,Cs,Rs,Ms,Bs,Ws,Js,er,Oa,xr,dr,br,yr,Lr,Pr,Gr,Kr,Qr,ni,xi,di,pi,Ci,Ri,Oi,ji,Wi,$i,tx,ix,dx,px,yx,Sx,Mx,jx,Wx,Ia,Qx,sa,ma,ja,ca,Ea,ka]}static get pluginName(){return za("0xc5")}constructor(t){function e(t){return t.map((t=>String[za("0xc")](t)))[za("0xd4")]("")}super(t),this.set(za("0x13"),[]),this.on(za("0x54"),((e,n,o,s)=>{this[za("0x60")].change((()=>{for(const e of[...s,...o])this._model.markers[za("0xee")](e)&&t.editing.reconvertMarker(e)}))})),this[za("0x72")]=new ss(this[za("0x33")][za("0xc1")][za("0x115")],this[za("0x33")][za("0xe6")]),this[za("0x43")]=null,this[za("0x3b")]=new Va(this[za("0x33")]),this[za("0x117")]=new Map,this[za("0x1")]=t[za("0x12a")].get(za("0x58")),this._enabledCommands=new Set,this._model=this[za("0x33")][za("0xc1")],this._suggestionState=new WeakMap,this[za("0xa8")]=!1,t[za("0x95")][za("0x89")](za("0x138"),za("0x56")),this._trackFormatChanges=t[za("0x95")][za("0x6e")](za("0x138")),t.config.define("trackChanges.mergeNestedSuggestions",!0),this[za("0xe3")]=t[za("0x95")][za("0x6e")](za("0xe5")),this[za("0xa4")]=new d(t,this[za("0x14")]),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,49,54])}[za("0x3")](){const t=this.editor;t[za("0x6b")][za("0x1b")](za("0xe2"))[za("0x32")]({model:za("0x10b"),view:t=>{const{id:e,type:n}=this._splitMarkerName(t[za("0x11a")]),o=[za("0x121"),za("0x67")+n];let s=3e3;return this[za("0x13")][za("0xb4")](t[za("0x11a")])&&(o.push("ck-suggestion-marker--active"),s=3010),"deletion"==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[za("0x6b")][za("0x1b")](za("0xca"))[za("0xea")]((e=>{e.on(za("0x86"),((e,n,o)=>{if(!o[za("0x2c")][za("0x47")])return;const s=n[za("0x10")];if(!s)return;const r=o[za("0x70")].toViewElement(s);t[za("0xc1")][za("0x115")][za("0xf1")](s)&&r&&!r.getCustomProperty(za("0x103"))&&r.is("containerElement")&&(0,x.toWidget)(r,o.writer)}),{priority:za("0x1c")})})),t.conversion[za("0x1b")](za("0xca"))[za("0x32")]({model:za("0x10b"),view:(t,e)=>{if(!e[za("0x2c")].showSuggestionHighlights)return null;const{type:n}=this[za("0x10c")](t.markerName);return{classes:[za("0x121"),za("0x67")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[za("0x10")])return;if(o[za("0x10")].is(za("0x7a")))return void s[za("0xb1")][za("0x12d")](o[za("0x10")],n[za("0x53")]);const r=s[za("0x70")][za("0x2f")](o[za("0x10")]);if(!o[za("0x10")].is("element")||!t.model[za("0x115")][za("0xdd")](o[za("0x10")])||r[za("0xbb")](za("0x4d")))return;const{id:i}=this._splitMarkerName(o.markerName);s[za("0x12c")][za("0x42")](["ck-suggestion-marker",za("0x76")],r),s[za("0x12c")][za("0x85")]("data-suggestion",i,r),s[za("0x70")][za("0x98")](r,o.markerName),e&&(this.activeMarkers[za("0xb4")](o[za("0x11a")])?s[za("0x12c")][za("0x42")](za("0x65"),r):s[za("0x12c")][za("0xd2")](za("0x65"),r));for(const e of t[za("0xc1")][za("0xaf")](o[za("0x10")]).getItems())s.consumable.consume(e,n[za("0x53")]);s[za("0xb1")].consume(o[za("0x10")],n[za("0x53")])};t[za("0x6b")][za("0x1b")](za("0xca"))[za("0xea")]((t=>{t.on(za("0xe8"),((t,e,o)=>{o[za("0x2c")][za("0x47")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:"highest"})})),t[za("0x6b")][za("0x1b")](za("0xca")).markerToData({model:za("0x10b"),view:(t,e)=>e[za("0x2c")][za("0x47")]?null:{group:"suggestion",name:t.substr(11)}}),t[za("0x6b")][za("0x1b")](za("0x79"))[za("0xd")]({view:{name:"suggestion",attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=za("0xb5")+t[za("0xd1")](za("0xa7"))+":"+t[za("0xd1")]("id");return t[za("0xd1")]("marker-count")&&(n+=":"+t[za("0xd1")](za("0x7f"))),e[za("0xb0")]("$marker",{"data-name":n})}}),t[za("0x6b")][za("0x1b")](za("0x79")).dataToMarker({view:"suggestion"}),t.conversion.for(za("0xe2")).add((t=>{t.on(za("0xe8"),n(),{priority:za("0x1c")})})),t[za("0x6b")][za("0x1b")](za("0xe2"))[za("0xea")]((t=>{t.on(za("0x61"),((t,e,n)=>{const o=n.mapper[za("0x82")](e[za("0x11a")]);if(o)for(const t of o)t[za("0xbb")](za("0x4d"))||(n[za("0x12c")][za("0xd2")]([za("0x121"),za("0x76"),za("0x65")],t),n[za("0x12c")][za("0x91")](za("0x71"),t),n[za("0x70")].unbindElementFromMarkerName(t,e[za("0x11a")]))}),{priority:"high"})})),t[za("0xc1")][za("0x7e")][za("0x8d")]((e=>{let n=!1;const o=Array[za("0x20")](t[za("0xc1")][za("0x7e")][za("0xf4")].getChangedMarkers()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[za("0x10c")](x);if(za("0x10b")!==o)continue;const u=this._suggestions[za("0x6e")](l);if(null!=a.newRange)if(za("0x3d")==c&&(n=n||Xa(a[za("0xa2")],x,e,t[za("0xc1")][za("0x115")])),a[za("0xa2")][za("0xeb")]||za("0x119")==a.newRange[za("0xfd")][za("0xa1")]||za("0x11f")==c&&!Ja(a[za("0xa2")])||za("0x34")==c&&(qa(i=a[za("0xa2")])||(r=i)[za("0x8c")].parent==r[za("0x11e")].nodeBefore&&r[za("0x8c")][za("0xd0")]))e[za("0x99")](x),n=!0;else{if(!u||!u[za("0x6d")])continue;s[za("0xea")](u)}}var r,i;return s[za("0x31")]>0&&(n=!!this[za("0x101")](s)||n),n})),t[za("0xc1")][za("0x7e")][za("0x8d")]((e=>{let n=!1;for(const o of t[za("0xc1")][za("0x7e")][za("0xf4")][za("0x4e")]()){if("insert"!=o[za("0x41")])continue;const s=o.position[za("0xe4")](o[za("0xe9")]);if(s[za("0xd0")])for(const r of this._suggestions[za("0x12")]()){if(r[za("0xd5")]||!r[za("0x6d")])continue;if("formatBlock"!=r.type)continue;const i=r[za("0x44")]();if(i[za("0x8c")][za("0xfa")]!=i[za("0x11e")][za("0xfa")]&&i[za("0x11e")].isEqual(o[za("0x136")])){const o=t.model[za("0x35")](i[za("0x8c")],s);e[za("0x30")](r[za("0x46")](),{range:o}),n=!0}}}return n})),t.model.markers.on(za("0xf"),((t,e,n)=>{if(null==n){const{id:t}=this._splitMarkerName(e[za("0x53")]),n=this[za("0x117")][za("0x6e")](t);n&&n[za("0xc7")](e[za("0x53")])}})),t[za("0xc1")][za("0x7e")].on(za("0x94"),(()=>{const e=Array.from(t[za("0xc1")][za("0x7e")].differ[za("0x5d")]())[za("0x6f")]((t=>za("0x10b")===this[za("0x10c")](t[za("0x53")])[za("0x5c")]));if(0===e[za("0xe9")])return;e[za("0x1f")](((t,e)=>{const n=t[za("0x6")][za("0xab")],o=e[za("0x6")][za("0xab")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n.start[za("0x2b")](o[za("0x8c")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[za("0x10c")](t);if(null===s.oldRange){const e=this[za("0x9b")](t);o[za("0xea")](e)}else{const t=this._suggestions.get(e);null!==s[za("0xa2")]||t[za("0x6d")]?(n[za("0xea")](t[za("0x7")]),o[za("0xea")](t)):this._removeSuggestion(t)}}o.size>0&&this._refreshSuggestionsChain(o);for(const t of n)this[za("0x137")](za("0x130"),t)})),t[za("0xc1")].on(za("0x28"),((e,n)=>{const o=n[0];if(!this[za("0x117")][za("0x31")])return;if(!o[za("0x69")])return;if(o.batch.isUndo||!o[za("0xdf")][za("0x50")])return;let s,r;switch(o.type){case za("0x22"):s=t[za("0xc1")][za("0xed")](o[za("0x136")]),r=s[za("0xe4")](o[za("0x123")]);break;case za("0xde"):s=t[za("0xc1")][za("0xed")](o[za("0x106")]),r=t.model.createPositionAt(o.moveTargetPosition);break;case"move":s=t[za("0xc1")][za("0xed")](o[za("0x128")]),r=s[za("0xe4")](o.howMany);break;default:return}const i=t[za("0xc1")][za("0x35")](s,r);t[za("0xc1")][za("0xd8")]((()=>{for(const{suggestion:t,meta:e}of this[za("0x3e")](i)){if(t[za("0xd5")])continue;if(za("0x3d")==t[za("0x41")])continue;const n=t[za("0x6")]&&t[za("0x6")][za("0x13d")];(za("0x11f")!=t[za("0x41")]||za("0xde")==o[za("0x41")]&&!n)&&(e.containsRangeInObject||za("0x57")==t[za("0x41")]&&e[za("0x37")]||t[za("0x44")]()[za("0x5a")](i)&&this._breakSuggestionMarker(t,s,r))}}))}),{priority:za("0xda")}),t[za("0xc1")].on("deleteContent",((e,n)=>{const o=n[0],s=n[1];if(s&&s.forceDefaultExecution)return;if(this[za("0xa8")])return;if(!this[za("0xa4")][za("0x19")])return;if(o.isCollapsed)return;const r=t[za("0xc1")][za("0x115")],{start:i,end:x}=o[za("0x44")](),a=i.nodeAfter&&r[za("0x126")](i.nodeAfter)?null:r[za("0x114")](i,za("0x4f")),c=x[za("0x116")]&&r[za("0x126")](x[za("0x116")])?null:r[za("0x114")](x,za("0xd3")),l=t[za("0xc1")].createRange(a?a.start:i,c?c[za("0x11e")]:x);t[za("0xc1")].change((e=>{this.markDeletion(l);const n=t[za("0xc1")].schema[za("0x114")](l[za("0x8c")]);o.is(za("0x45"))?e.setSelection(n):o.setTo(n)})),e[za("0xdb")]()}),{priority:e.priorities[za("0x7c")]+10}),t[za("0xc1")].on(za("0x73"),((e,n)=>{const o=n[n[za("0xe9")]-1];o&&o[za("0x8a")]||this[za("0xa8")]||this.trackChangesCommand[za("0x19")]&&(t[za("0xc1")].change((()=>{let o=t[za("0xc1")][za("0x73")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[za("0x7b")]=o[za("0xe")]();const s=o[za("0x11e")][za("0x116")],r=t.model[za("0x115")];s&&r[za("0xdd")](s)&&!r.isObject(s)&&(o=t[za("0xc1")][za("0x35")](o[za("0x8c")],t.model.createPositionAt(s,za("0x11e")))),this[za("0xbd")](o)})),e[za("0xdb")]())}),{priority:za("0x1c")}),this[za("0x33")].commands[za("0xea")]("trackChanges",this.trackChangesCommand),this[za("0xfe")](za("0x118"));const o=new p(t,this[za("0x117")]);t[za("0x68")][za("0xea")](za("0x81"),o),this[za("0xfe")](za("0x81"));const s=new C(t,this[za("0x117")]);t.commands.add("discardSuggestion",s),this[za("0xfe")]("discardSuggestion"),t.commands.add(za("0x3c"),new F(t,o,this[za("0x117")])),this.enableCommand(za("0x3c")),t.commands[za("0xea")]("discardAllSuggestions",new F(t,s,this[za("0x117")])),this[za("0xfe")]("discardAllSuggestions"),t[za("0x68")].add(za("0x29"),new U(t,o,this[za("0x117")])),this.enableCommand(za("0x29")),t[za("0x68")][za("0xea")](za("0x125"),new U(t,s,this[za("0x117")])),this[za("0xfe")](za("0x125"));const r=t[za("0x12a")][za("0x6e")](za("0x58"));this[za("0xf9")](r,za("0xcc"),((t,{threadId:e})=>{const n=this[za("0x117")][za("0x6e")](e);n&&n.commentThread&&1===n[za("0x2d")][za("0xe9")]&&this[za("0x9a")](e,{hasComments:!0})}),{priority:"low"}),this.listenTo(r,za("0xd6"),((t,{threadId:e})=>{const n=this._suggestions[za("0x6e")](e);n&&n[za("0x2d")]&&!n.commentThread.length&&this[za("0x9a")](e,{hasComments:!1})}),{priority:za("0xf6")})}set[za("0xf5")](t){if(this[za("0x43")])throw new e.CKEditorError(za("0xef"),this);this[za("0x43")]=t}get[za("0xf5")](){return this[za("0x43")]}[za("0x75")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[za("0x117")].values())t&&!e[za("0x6d")]||n[za("0x83")](e);return e?n[za("0xff")]((t=>t.toJSON())):n}[za("0xa9")](t){const n=this._suggestions[za("0x6e")](t);if(!n)throw new e.CKEditorError("track-changes-suggestion-not-found",this);return n}[za("0xe0")](t){return this._suggestions[za("0xee")](t)}[za("0x9d")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[za("0x41")][za("0xde")](":"),i=this[za("0x117")][za("0x6e")](n)||this[za("0x77")](s,r,n,e,o);if(this[za("0x6c")](i),this[za("0x24")](i,s,r||null,e),i.createdAt=t.createdAt,o&&o[za("0xc4")]){const t=o[za("0xc4")],e=this[za("0x105")](t[za("0xe1")]);i[za("0x13f")]=t.createdAt,i[za("0x4a")]=e,i[za("0x87")]=!0}else i[za("0x13f")]=t[za("0xa0")];switch(t[za("0x6")]&&(i[za("0x6")]=t.data),t[za("0x133")]&&(i.attributes=t[za("0x133")]),this[za("0x43")]&&this[za("0x43")][za("0x40")]||(i[za("0xf0")]=!0),this[za("0x17")][za("0x6e")](i)){case za("0x21"):this[za("0x17")].set(i,za("0x1a"));break;case za("0x132"):i.isInContent?(this._suggestionState[za("0x5")](i,za("0x10e")),this.fire(za("0x8e"),i)):this[za("0x17")][za("0x5")](i,"removed")}return i}acceptSuggestion(t){this[za("0x8a")]((()=>{this[za("0x33")][za("0xc1")][za("0xd8")]((()=>{for(const e of t[za("0x8")]())e[za("0x78")]()}))}))}[za("0x134")](t){this.forceDefaultExecution((()=>{this[za("0x33")][za("0xc1")][za("0xd8")]((()=>{for(const e of t[za("0x8")]())e.discard()}))}))}[za("0xfe")](t,n){const o=this.editor[za("0x68")][za("0x6e")](t);if(!o)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});this[za("0x14")][za("0xea")](o),n&&o.on(za("0x27"),((t,e)=>{this.trackChangesCommand[za("0x19")]&&(this[za("0xa8")]||e[za("0xe9")]>0&&e[e[za("0xe9")]-1]&&e[e[za("0xe9")]-1][za("0x8a")]||(n(((...t)=>o.execute(...t,{forceDefaultExecution:!0})),...e),t[za("0xdb")]()))}),{priority:za("0x1c")})}[za("0x8a")](t){let n,o;const s=this[za("0xa8")];this._isForcedDefaultExecutionBlock=!0;try{n=t()}catch(t){o=t}return s||(this[za("0xa8")]=!1),o&&e.CKEditorError[za("0x10a")](o,this),n}[za("0xbd")](t,n=null,o={}){if(t.isCollapsed)return null;const s=this[za("0x33")][za("0x12a")][za("0x6e")]("Users").me;for(const{suggestion:e,meta:o}of this[za("0x3e")](t,za("0x57")))if(o[za("0x37")]){if(!o[za("0xc8")]){if(!this[za("0xe3")]&&o[za("0x131")])continue;return e}if(n==e.subType){const n=e[za("0x44")]();return n[za("0x8c")][za("0x11c")](t.end)?this[za("0x4b")](e,this[za("0x60")][za("0x35")](t.start,n[za("0x11e")])):this[za("0x4b")](e,this[za("0x60")][za("0x35")](n[za("0x8c")],t[za("0x11e")])),e}}const r=(0,e.uid)(),i=s.id,x=n?za("0x36")+n:za("0x57"),a=this[za("0x51")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this._addSuggestionMarker(x,r,i,t),a}markMultiRangeInsertion(t,n=za("0x25"),o={}){const s=this[za("0x33")].plugins[za("0x6e")](za("0xdc")).me,r=this[za("0x3b")][za("0x6a")](za("0x57"),n,"join");for(const e of this[za("0x75")]())if(e[za("0x4a")].id==s.id&&za("0x57")==e[za("0x41")]&&e[za("0x3f")]==n&&(r(e[za("0x80")](),t)||r(t,e.getRanges()))){for(const n of t)e[za("0x23")](n);return e}if(this[za("0xe3")])for(const e of t)for(const{suggestion:n,meta:o}of this[za("0x3e")](e,za("0x57"))){if(!o[za("0x37")])continue;let e=!0;for(const o of n.getRanges())for(const n of t)if(!o[za("0x5a")](n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=s.id,a=za("0x36")+n,c=this[za("0x51")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this._addSuggestionMarker(a,i,x,e,Zo[za("0xbf")]());return c}[za("0x108")](t,n,o=null,s={}){if(o=o||$a(n),t[za("0xeb")])return null;if(za("0x9")===this[za("0xba")]){const e=this[za("0x3b")].getSuggestionCallback(za("0x3d"),o,za("0x78"));return this.forceDefaultExecution((()=>e([t],n,s))),null}const r=this[za("0x33")][za("0x12a")][za("0x6e")](za("0xdc")).me,i=[];if("always"!==this[za("0xba")])for(const{suggestion:e,meta:n}of this[za("0x3e")](t,"insertion"))n[za("0x37")]&&!n[za("0x9f")]&&i[za("0x83")](...e[za("0x80")]());const x=function(t,e){const n=[];for(const o of e){const e=t[za("0x11d")](o);e&&n[za("0x83")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[za("0xe9")];){const o=n[e][za("0x122")](t);n[za("0x97")](e,1,...o),e+=o.length}}return n}(t,i);x[za("0xe9")]&&this._model[za("0xd8")]((()=>{for(const t of x){const e=this[za("0x3b")].getSuggestionCallback(za("0x3d"),o,za("0x78"));this[za("0x8a")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t.start,a=t[za("0x11e")];for(const{suggestion:e,meta:n}of this._findSuggestions(t,"formatInline")){if(!n[za("0x37")])continue;if(e.subType!=o)continue;const s=e.getFirstRange();if(s[za("0x5a")](t,!0))return null;x=x[za("0x2b")](s.start)?x:s[za("0x8c")],a=a[za("0x120")](s.end)?a:s[za("0x11e")],i?s[za("0x8c")][za("0x2b")](i.getFirstRange()[za("0x8c")])?(i[za("0xb6")](),i=e):e[za("0xb6")]():i=e}const c=this[za("0x60")].createRange(x,a);if(i)this[za("0x4b")](i,c);else{const t=(0,e.uid)(),i=r.id;this._setSuggestionData({id:t,type:"formatInline:"+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[za("0x62")]("formatInline:"+o,t,i,c)}}return null}[za("0x8f")](t,n,o=[],s=null,r={}){n[za("0x4c")]||(n[za("0x4c")]=n[za("0x13e")]),n[za("0x13d")]=t.is(za("0x104")),s=s||$a(n);const i=o[za("0xff")]((t=>Qa(t,this[za("0x60")]))),x=t.is("range")?t:Qa(t,this._model);if(za("0x9")===this._trackFormatChanges){const t=this[za("0x3b")][za("0x6a")](za("0x11f"),s,za("0x78"));return this.forceDefaultExecution((()=>t([x],n,r))),null}i[za("0x83")](x);let a=!0;for(const t of i)if(!this[za("0x2")](t)){a=!1;break}if(a&&"always"!==this[za("0xba")]){const t=this[za("0x3b")][za("0x6a")](za("0x11f"),s,za("0x78"));return this[za("0x8a")]((()=>t([x],n,r))),null}let c=null,l=x.start,u=x[za("0x11e")];for(const{suggestion:t,meta:e}of this[za("0x3e")](x,za("0x11f"))){if(!e.isOwn||e[za("0xc8")]||e[za("0x131")]||e[za("0x9f")])continue;if(t[za("0x6")].formatGroupId!=n[za("0x4c")])continue;const o=t[za("0x44")]();if(t[za("0x3f")]==s){if(o[za("0x5a")](x,!0))return null;l=l[za("0x2b")](o[za("0x8c")])?l:o.start,u=u[za("0x120")](o[za("0x11e")])?u:o.end,c?o[za("0x8c")][za("0x2b")](c[za("0x44")]()[za("0x8c")])?(c[za("0xb6")](),c=t):t.removeMarkers():c=t}else{const e=x[za("0x11d")](o);this[za("0x100")](t,e)}}const d=this.editor[za("0x12a")][za("0x6e")](za("0xdc")).me,g=(0,e.uid)(),m=d.id;if(c)return this[za("0x4b")](c,this._model[za("0x35")](l,u)),c;{const t=this._setSuggestionData({id:g,type:"formatBlock:"+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[za("0x62")](za("0x0")+s,g,m,this[za("0x60")][za("0x35")](l,u)),t}}markMultiRangeBlockFormat(t,n,o=[],s=null,r={}){n[za("0x4c")]||(n.formatGroupId=n[za("0x13e")]);const i=t[0];n.multipleBlocks=i.is(za("0x104")),s=s||$a(n);const x=o.map((t=>Qa(t,this[za("0x60")]))),a=i.is("range")?t:t.map((t=>Qa(t,this[za("0x60")])));if(za("0x9")===this[za("0xba")]){const t=this[za("0x3b")].getSuggestionCallback(za("0x11f"),s,za("0x78"));return this.forceDefaultExecution((()=>t(a,n,r))),null}x.push(...a);let c=!0;for(const t of x)if(!this[za("0x2")](t)){c=!1;break}if(c&&za("0xcb")!==this[za("0xba")]){const t=this[za("0x3b")][za("0x6a")](za("0x11f"),s,"accept");return this.forceDefaultExecution((()=>t(a,n,r))),null}const l=this[za("0x33")].plugins[za("0x6e")](za("0xdc")).me;for(const t of this.getSuggestions()){if(t[za("0x4a")].id!=l.id)continue;if(za("0x11f")!=t[za("0x41")]||t[za("0x6")][za("0x4c")]!=n[za("0x4c")])continue;const e=t[za("0x3f")]==s;for(let n=0;n<a[za("0xe9")];n++){const o=a[n];for(const s of t.getMarkers()){const r=s[za("0xf8")]();if(o[za("0x11c")](r)){e?(a[za("0x97")](n,1),n--):t[za("0x99")](s[za("0x53")]);break}}}}if(0==a.length)return null;const u=this[za("0x3b")][za("0x6a")](za("0x11f"),s,za("0xd4"));for(const t of this[za("0x75")]())if(t[za("0x4a")].id==l.id&&za("0x11f")==t[za("0x41")]&&t[za("0x6")][za("0x4c")]==n[za("0x4c")]&&t[za("0x3f")]==s&&(u(t[za("0x80")](),a)||u(a,t.getRanges()))){for(const e of a)t.addRange(e);return t}const d=(0,e.uid)(),g=l.id,m=za("0x0")+s,f=this[za("0x51")]({id:d,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[za("0x62")](m,d,g,t,Zo[za("0xbf")]());return f}markDeletion(t,n=null,o={}){if(t.isCollapsed)return null;const s=this[za("0x33")][za("0x12a")][za("0x6e")](za("0xdc")).me,r=new i.LiveRange(t[za("0x8c")],t[za("0x11e")]);for(const{suggestion:t,meta:e}of this[za("0x3e")](r,za("0x57")))if(e[za("0x37")]&&!e.isNextTo)if(t.isMultiRange){const e=t[za("0x80")]().filter((t=>za("0x119")!=t[za("0xfd")][za("0xa1")]));if(e.every((t=>r[za("0x5a")](t,!0)))&&t.discard(),e[za("0xad")]((t=>t[za("0x5a")](r,!0)))){const t=this[za("0x3b")][za("0x6a")](za("0x34"),n,za("0x78"));return this[za("0x8a")]((()=>t([r],null,o))),null}}else{const e=r.getIntersection(t[za("0x44")]());null!==e&&t[za("0x64")]([e],null,o)}if(r[za("0xcd")](),r[za("0xeb")]||"$graveyard"==r[za("0xfd")][za("0xa1")])return null;let x=null,a=r.start,c=r[za("0x11e")];for(const{suggestion:t,meta:e}of this._findSuggestions(r,"deletion"))if(e[za("0x37")])if(t.isMultiRange&&this[za("0xe3")]){let e=!0;for(const n of t[za("0x80")]()){if(n[za("0x5a")](r,!0))return t;r[za("0x5a")](n)||(e=!1)}e&&t[za("0xa6")]()}else{const n=t[za("0x44")]();if(n[za("0x5a")](r,!0)){if(!this._mergeNestedSuggestions&&e[za("0x131")])continue;return t}a=a.isBefore(n[za("0x8c")])?a:n[za("0x8c")],c=c[za("0x120")](n.end)?c:n.end,x?n[za("0x8c")][za("0x2b")](x[za("0x44")]()[za("0x8c")])?(x.removeMarkers(),x=t):t[za("0xb6")]():x=t}if(x)return this[za("0x4b")](x,this[za("0x60")][za("0x35")](a,c)),x;{const t=(0,e.uid)(),r=this[za("0x60")][za("0x35")](a,c),i=s.id,x=n?za("0x10d")+n:za("0x34"),l=this[za("0x51")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x62")](x,t,i,r),l}}[za("0x1e")](t,n=za("0x25"),o={}){const s=this[za("0x33")].plugins[za("0x6e")](za("0xdc")).me,r=t[za("0xff")]((t=>new i.LiveRange(t[za("0x8c")],t[za("0x11e")]))),x=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this[za("0x3e")](t,za("0x57")))n.isOwn&&!n.isNextTo&&x[za("0xea")](e);for(const e of x)if(e[za("0xd5")]){const s=e[za("0x80")]();if((!e[za("0x133")]||!e[za("0x133")][za("0x63")])&&s.every((t=>r.some((e=>e.containsRange(t,!0)))))&&e[za("0xa6")](),r.every((t=>s.some((e=>e[za("0x5a")](t,!0)))))){const e=this[za("0x3b")].getSuggestionCallback(za("0x34"),n,za("0x78"));return this[za("0x8a")]((()=>e(t,null,o))),null}}else{const t=e.getFirstRange();if(r[za("0xad")]((e=>e[za("0x5a")](t,!0)))&&e[za("0xa6")](),r[za("0x129")]((e=>t[za("0x5a")](e,!0)))){const t=this[za("0x3b")].getSuggestionCallback(za("0x34"),n,za("0x78"));return this[za("0x8a")]((()=>t(r,null,o))),null}}const a=this[za("0x3b")][za("0x6a")](za("0x34"),n,za("0xd4"));let c=null;for(const t of this[za("0x75")]())if(t[za("0x4a")].id==s.id&&t[za("0x6d")]&&za("0x34")==t[za("0x41")]&&t[za("0x3f")]==n&&(a(t[za("0x80")](),r)||a(r,t[za("0x80")]())))if(c){if(t[za("0x2d")]&&t[za("0x2d")][za("0xe9")])continue;for(const e of t[za("0x80")]())c[za("0x8b")](e)||c.addRange(e);t[za("0xb6")]()}else{c=t;for(const e of r)t.isIntersectingWithRange(e)||t[za("0x23")](e)}if(c)return c;x[za("0x111")]();for(const t of r)for(const{suggestion:e,meta:n}of this._findSuggestions(t,"deletion"))n[za("0x37")]&&x[za("0xea")](e);for(const t of x){const e=t[za("0x80")]();if((!o||!o[za("0x63")])&&r[za("0x129")]((t=>e[za("0xad")]((e=>e[za("0x5a")](t,!0))))))return t;(!t[za("0x133")]||!t[za("0x133")].skipNestingCheck)&&e[za("0x129")]((t=>r[za("0xad")]((e=>e[za("0x5a")](t,!0)))))&&t.discard()}const l=(0,e.uid)(),u=s.id,d=za("0x10d")+n,g=this[za("0x51")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of r)t.detach(),t[za("0xeb")]||"$graveyard"==t.root[za("0xa1")]||this[za("0x62")](d,l,u,t,Zo.getMultiRangeId());return g}_setSuggestionRange(t,e){const n=t[za("0x46")]();this._model[za("0xd8")]((t=>{t[za("0x30")](n,{range:e})}))}[za("0x6c")](t){const e=t.id,n=this[za("0x33")][za("0x95")][za("0x6e")](za("0xa3"));this[za("0x1")][za("0x88")](e)||this[za("0x1")][za("0x26")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[za("0x1")][za("0x16")](e);o[za("0x10f")](za("0xd7")),o[za("0xd7")]=!1,t[za("0x2d")]=o}[za("0x24")](t,n,o,s){if(t.type!=n||t[za("0x3f")]!=o||t[za("0x13a")].id!=s)throw this[za("0x33")].enableReadOnlyMode(za("0x124")),new e.CKEditorError(za("0x124"),this)}[za("0x100")](t,n){const o=t[za("0x44")]();if(n[za("0x11c")](o))t[za("0xb6")]();else if(o.containsRange(n)){const s=this[za("0x60")].createPositionAt(n[za("0x8c")][za("0x116")],za("0x11e"));this[za("0x4b")](t,this._model.createRange(o.start,s));const r=(0,e.uid)(),i=t[za("0x13a")].id,x=t[za("0x41")]+":"+t[za("0x3f")];this[za("0x51")]({id:r,type:x,createdAt:new Date,authorId:i,data:t[za("0x6")],attributes:t[za("0x133")]});const a=this[za("0x60")][za("0xed")](n[za("0x11e")][za("0xfa")],za("0xbc")),c=this[za("0x60")][za("0x35")](a,o[za("0x11e")]);this[za("0x62")](x,r,i,c)}else if(o[za("0x1d")](n.start)){const e=this[za("0x60")].createPositionAt(n[za("0x8c")][za("0x116")],za("0x11e"));this._setSuggestionRange(t,this[za("0x60")].createRange(o[za("0x8c")],e))}else{const e=this[za("0x60")][za("0xed")](n.end[za("0xfa")],za("0xbc"));this[za("0x4b")](t,this[za("0x60")][za("0x35")](e,o[za("0x11e")]))}}[za("0x2")](t){for(const{suggestion:e,meta:n}of this[za("0x3e")](t,"insertion")){if(!n[za("0x37")])continue;const o=e[za("0x80")]();for(const e of o)if(!t[za("0x122")](e).length)return!0}return!1}_getAuthorFromId(t){const n=this[za("0x33")][za("0x12a")][za("0x6e")](za("0xdc"))[za("0x4")](t);if(!n)throw new e.CKEditorError(za("0xb2"),this);return n}[za("0x105")](t){const e=this.editor[za("0x12a")].get(za("0xdc")),n=(0,r.hashObject)(za("0x39")+t);return e.getUser(n)||e.addUser({id:n,name:t})}[za("0x77")](t,e,n,o,s){const r=this[za("0xac")](o),i=this[za("0x3b")].buildSuggestion(t,e,n,r,s,(t=>this[za("0x9a")](n,{attributes:t})));return this.listenTo(i,za("0x78"),(()=>{this._updateSuggestionData(n,{state:za("0xb9")})}),{priority:za("0x1c")}),this[za("0xf9")](i,za("0xa6"),(()=>{this[za("0x9a")](n,{state:za("0x2a")})}),{priority:"high"}),this._suggestions[za("0x5")](n,i),this[za("0x17")][za("0x5")](i,za("0x21")),i}[za("0x10c")](t){const e=t.split(":");return{group:e[0],type:e[1],subType:e[za("0xe9")]>=5?e[2]:null,id:e.length<5?e[2]:e[3],authorId:e[za("0xe9")]<5?e[3]:e[4],markerCount:6==e[za("0xe9")]?e[5]:null}}[za("0x113")](t,n,o){const s=t.getFirstRange(),r=s.start,i=s.end;this._setSuggestionRange(t,this._model[za("0x35")](r,n));const x=(0,e.uid)(),a=t[za("0x13a")].id,c=t.type+(t[za("0x3f")]?":"+t[za("0x3f")]:"");this[za("0x51")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[za("0x133")],data:t.data}),za("0x11f")==t.type&&(o=this._model.createPositionBefore(o[za("0xfa")])),this[za("0x62")](c,x,a,this[za("0x60")].createRange(o,i))}_findSuggestions(t,e=null){const n=[],o=this[za("0x60")][za("0x115")],s=this[za("0x33")].plugins[za("0x6e")](za("0xdc")).me;for(const r of this[za("0x75")]())if(r[za("0x6d")]&&(!e||r[za("0x41")]==e))for(const e of r.getRanges()){const i=t[za("0x8c")][za("0x11c")](e[za("0x11e")])||t[za("0x11e")][za("0x11c")](e.start);if(i||t[za("0x11d")](e)){const x=t.containsRange(e)&&Ka(o,e[za("0x8c")],t),a=e[za("0x5a")](t)&&Ka(o,t[za("0x8c")],e);n[za("0x83")]({suggestion:r,meta:{isOwn:s==r[za("0x4a")],isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}[za("0x62")](t,e,n,o,s){this[za("0x60")][za("0xd8")]((r=>{let i=za("0xb5")+t+":"+e+":"+n;s&&(i=i+":"+s),r[za("0x109")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[za("0xfc")](t){const e=t[za("0xce")],n=t.next;t[za("0xce")]=null,null!=e&&(e[za("0xc3")]=null),t.next=null,null!=n&&(n[za("0xce")]=null),za("0x10e")==this._suggestionState[za("0x6e")](t)&&(this[za("0x17")][za("0x5")](t,za("0xc9")),this.fire(za("0xb"),t,e,n))}[za("0x51")](t){const n=t.id,o=this[za("0x9d")](t);if(this[za("0x43")]&&this[za("0x43")][za("0x40")]){const s=this[za("0x33")].plugins[za("0x6e")](za("0xc2")),r=o[za("0x12e")],i=o.subType?o[za("0x41")]+":"+o.subType:o[za("0x41")],x=this[za("0x33")][za("0xe6")],a=s.add(Yo(x,za("0x15"))),c={id:n,type:i,hasComments:r,data:t[za("0x6")]||null,originalSuggestionId:t[za("0x48")]||null,attributes:o.attributes};this._adapter.addSuggestion(c)[za("0x2e")]((t=>{o[za("0xf0")]=!0,s[za("0x12b")](a),t&&t[za("0xa0")]&&(this[za("0x117")].get(n)[za("0xa0")]=t.createdAt)})).catch((t=>{throw(0,e.logWarning)(za("0x127")),this[za("0x33")][za("0xc1")][za("0x5b")]({isUndoable:!1},(()=>{o[za("0xa6")]()})),o[za("0x66")](),this[za("0x117")].delete(o.id),this[za("0x17")][za("0x135")](o),t}))}return o}_updateSuggestionData(t,e){const n=this[za("0x33")][za("0x12a")][za("0x6e")](za("0xc2")),o=this[za("0xa9")](t);if(this[za("0x43")]&&this[za("0x43")][za("0x5e")])if(o[za("0xf0")]){const o=n[za("0xea")](Yo(this.editor.locale,za("0x15")));this[za("0x43")][za("0x5e")](t,e)[za("0x2e")]((()=>{n[za("0x12b")](o)}))}else o.on(za("0x12f"),(()=>{this[za("0x9a")](t,e)}))}[za("0x112")](t){if(!this._adapter||!this[za("0x43")][za("0xa9")])throw new e.CKEditorError(za("0xb3"),this);return this[za("0x43")][za("0xa9")](t)}[za("0x9b")](t){const{id:e,type:n,subType:o,authorId:s}=this[za("0x10c")](t),r=this[za("0x117")][za("0x6e")](e)||this[za("0x77")](n,o,e,s,{});switch(this[za("0x24")](r,n,o,s),this[za("0x17")].get(r)){case za("0x21"):this[za("0x112")](e)[za("0x2e")]((t=>{let n=Promise[za("0x96")]();t[za("0x12e")]&&(n=this[za("0x1")][za("0x139")]({channelId:this[za("0x33")].config.get(za("0xa3")),threadId:e})),n[za("0x2e")]((()=>{this[za("0x9d")](t)[za("0xf0")]=!0}))})),this[za("0x17")][za("0x5")](r,za("0x132"));break;case za("0xc9"):this[za("0x9a")](e,{state:za("0x9e")});case"dataReady":this._suggestionState.set(r,"ready"),this[za("0x137")](za("0x8e"),r);break;case za("0x10e"):this.fire("suggestionChanged",r)}return r[za("0xc7")](t),r}[za("0xf3")](t){const e=Array.from(t)[za("0x6f")]((t=>!t[za("0xd5")])),n=this[za("0x75")]({skipNotAttached:!0})[za("0x6f")]((t=>!t[za("0xd5")])),o=n[za("0x6f")]((e=>!t.has(e))),s=new Map(n[za("0xff")]((t=>[t,this[za("0x3b")][za("0x6a")](t.type,t.subType,za("0x74"))]))),r=new Map(n[za("0xff")]((t=>[t,t[za("0x44")]()]))),i=new Set,x=new Set;for(let t=0;t<e[za("0xe9")];t++)a(e[t],e,t+1);for(let t=0;t<e[za("0xe9")];t++)a(e[t],o,0);for(let t=0;t<e.length;t++){const n=e[t];!x.has(n)&&n.previous&&(n.previous[za("0xc3")]===n&&(n.previous[za("0xc3")]=null),n[za("0xce")]=null),!i[za("0xee")](n)&&n[za("0xc3")]&&(n[za("0xc3")][za("0xce")]===n&&(n[za("0xc3")][za("0xce")]=null),n[za("0xc3")]=null)}function a(t,e,n){for(let o=n;o<e[za("0xe9")];o++){const n=c(t,e[o]);n&&(n[0][za("0xc3")]=n[1],n[1].previous=n[0],i.add(n[0]),x[za("0xea")](n[1]))}}function c(t,e){if(t[za("0x4a")].id!==e[za("0x4a")].id)return null;const n=s[za("0x6e")](t)(t,e,r[za("0x6e")](t),r[za("0x6e")](e));return n&&s.get(e)(t,e,r[za("0x6e")](t),r[za("0x6e")](e))?n[1][za("0x2d")]&&n[1].commentThread[za("0xe9")]?null:n:null}}[za("0x101")](t){const e=Array[za("0x20")](t),n=this.getSuggestions({skipNotAttached:!0}),o=n[za("0x6f")]((e=>!t[za("0xee")](e))),s=new Map(e[za("0xff")]((t=>[t,this[za("0x3b")].getSuggestionCallback(t[za("0x41")],t[za("0x3f")],za("0xd4"))]))),r=new Map(n[za("0xff")]((t=>[t,t[za("0x80")]()])));for(let t=0;t<e[za("0xe9")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[za("0xe9")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n[za("0xe9")];i++){const o=n[i];if(o.type!==e[za("0x41")]||o[za("0x4a")].id!==e[za("0x4a")].id||o[za("0x3f")]!==e[za("0x3f")])continue;const x=s.get(e),a=r[za("0x6e")](e),c=r[za("0x6e")](o),l=e[za("0x2d")]&&e[za("0x2d")].length,u=o[za("0x2d")]&&o[za("0x2d")].length;if(!l&&x(c,a))return t[za("0x59")](o,e),r[za("0x135")](e),!0;if(!u&&x(a,c))return t[za("0x59")](e,o),r[za("0x135")](o),!0}return!1}}[za("0x59")](t,e){if(t[za("0xd5")])for(const n of e.getRanges())t[za("0x23")](n);else{const n=e[za("0x44")]()[za("0x11e")];this[za("0x4b")](t,this[za("0x60")].createRange(t[za("0x44")]().start,n))}e.removeMarkers()}}class Va{constructor(t){this._editor=t,this[za("0x60")]=t[za("0xc1")],this[za("0xbe")]=new Map,this._defaultCallbacks=new Map,this[za("0xf7")]()}[za("0xb7")](t,e,n,o,s,r){return new Zo(this[za("0x60")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[za("0x6a")](t,e,za("0x78"))(...n),onDiscard:(...n)=>this[za("0x6a")](t,e,za("0xa6"))(...n)})}[za("0xcf")](t,e,n,o){const s=t+":"+e+":"+n;this[za("0xbe")][za("0x5")](s,o)}getSuggestionCallback(t,e,n){const o=t+":"+e+":"+n;return this[za("0xbe")].get(o)||this[za("0xfb")][za("0x6e")](t+":"+n)}[za("0xf7")](){const t=()=>{},e=t=>{t.sort(((t,e)=>t[za("0x8c")].isBefore(e.start)?1:-1)),this[za("0x60")].change((e=>{for(const n of t){let t;t=n[za("0x11e")][za("0xd0")]&&n[za("0x11e")][za("0xfa")]==n[za("0x8c")].nodeAfter?e.createSelection(n[za("0x8c")][za("0xf2")],"on"):e[za("0x13b")](n),this[za("0x60")][za("0xc6")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this._model.change((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[za("0xff")]((t=>(qa(t)&&(t=this._model[za("0x35")](t[za("0x11e")])),t)))[za("0x6f")]((t=>"$graveyard"!==t[za("0xfd")][za("0xa1")]));if(r.length<1)return;const x=Array[za("0x20")](this._model.document[za("0x7a")].getRanges())[za("0xff")]((t=>i.LiveRange[za("0x52")](t)));n[za("0x90")](r);for(const t of this[za("0x13c")][za("0x68")][za("0x68")]())t[za("0x102")]();s[za("0x83")]({forceDefaultExecution:!0}),this[za("0x13c")].execute(o,...s);const a=x[za("0x6f")]((t=>za("0x119")!=t[za("0xfd")][za("0xa1")]));a[za("0xe9")]>0&&n[za("0x90")](a);for(const t of x)t[za("0xcd")]()}))},o=(t,e)=>1==t[za("0xe9")]&&1==e[za("0xe9")]&&t[0][za("0x11e")][za("0x11c")](e[0][za("0x8c")]),s=(t,e,n,o)=>Za(t,e,n,o,this[za("0x60")])?[t,e]:Za(e,t,o,n,this._model)?[e,t]:null;this._defaultCallbacks[za("0x5")]("insertion:accept",t),this[za("0xfb")][za("0x5")](za("0x11b"),e),this._defaultCallbacks[za("0x5")]("insertion:join",o),this[za("0xfb")][za("0x5")](za("0xb8"),s),this._defaultCallbacks.set(za("0xa"),e),this[za("0xfb")].set("deletion:discard",t),this[za("0xfb")][za("0x5")](za("0xd9"),o),this[za("0xfb")][za("0x5")](za("0x55"),s),this._defaultCallbacks[za("0x5")](za("0x84"),n),this[za("0xfb")][za("0x5")](za("0xc0"),t),this[za("0xfb")].set(za("0xae"),o),this[za("0xfb")].set(za("0xa5"),t),this[za("0xfb")][za("0x5")](za("0x3a"),n),this[za("0xfb")][za("0x5")](za("0x107"),t),this[za("0xfb")][za("0x5")](za("0x49"),o),this[za("0xfb")][za("0x5")]("formatBlock:chain",t)}}function Ka(t,e,n){for(const o of e[za("0xfa")][za("0xaa")]({includeSelf:!0,parentFirst:!0})){if(o[za("0xfd")]==o)return!1;if(!n[za("0x110")](o))return!1;if(t[za("0xf1")](o)||t[za("0x126")](o))return!0}return!1}function qa(t){return t[za("0x11e")][za("0xfa")]==t.start.nodeAfter&&t[za("0x11e")][za("0x92")]}function Xa(t,e,n,o){const s=t=>!t.item.is(za("0x7d"))&&!o[za("0xf1")](t.item),r=t.start[za("0xec")](s),i=t.end[za("0xec")](s,{direction:"backward"});return!(t[za("0x8c")][za("0x11c")](r)&&t[za("0x11e")][za("0x11c")](i)||(r[za("0x2b")](i)?n.updateMarker(e,{range:n.createRange(r,i)}):n[za("0x99")](e),0))}function $a(t){return(0,r.hashObject)(t)}function Ja(t){const e=t[za("0x8c")][za("0xf2")];return e&&e.is(za("0xe7"))}function Qa(t,e){const n=e[za("0x115")][za("0xf1")](t)||e[za("0x115")][za("0x5f")](t);return e.createRange(e[za("0xed")](t,za("0x9c")),n?e[za("0x38")](t):e[za("0xed")](t,"end"))}function Za(t,e,n,o,s){if(n[za("0x11e")][za("0x11c")](o[za("0x8c")]))return!0;if(t.type!=e.type)return!1;if(!n[za("0x11e")][za("0x11")](o[za("0x8c")]))return!1;const r=s[za("0x35")](n.end,o[za("0x8c")]).getWalker();for(const t of r)if(["elementStart",za("0x93")][za("0xb4")](t[za("0x41")])&&s[za("0x115")][za("0x126")](t[za("0x10")]))return!1;return!0}const Ya=["_acceptCommand","isDirty","listenTo","execute","view","PendingActions","acceptSuggestion","remove","_setPendingAction","add","_pendingAction","canAccept","plugins","canDiscard","destroy","commands","_editor","model","isEnabled","bind","unbind","discardSuggestion","getRanges","_removePendingAction","_discardCommand","stopListening","get","PENDING_ACTION_SUGGESTION","canEditAt","commentThreadController","change:isDirty"];var tc,ec;tc=Ya,ec=330,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("0x1c")]=e,this.view=n,this[nc("0x9")]=o,this[nc("0x1b")]=t,this._acceptCommand=t.commands[nc("0x6")]("acceptSuggestion"),this[nc("0x4")]=t[nc("0x1a")][nc("0x6")](nc("0x1")),this.view[nc("0x1e")](nc("0x1d")).to(this[nc("0xb")],this[nc("0x4")],((t,e)=>t||e)),this[nc("0xf")][nc("0x1e")](nc("0x16")).to(this[nc("0xb")],"isEnabled",(t=>t&&this[nc("0x1b")][nc("0x1c")][nc("0x8")](e[nc("0x2")]()))),this[nc("0xf")][nc("0x1e")](nc("0x18")).to(this[nc("0x4")],nc("0x1d"),(t=>t&&this._editor[nc("0x1c")][nc("0x8")](e[nc("0x2")]()))),this[nc("0x15")]=null,n[nc("0xc")]&&this[nc("0x13")](),this.listenTo(n,nc("0x11"),(()=>this[nc("0x11")]())),this[nc("0xd")](n,nc("0x1"),(()=>this[nc("0x1")]())),this[nc("0xd")](n,nc("0xa"),(()=>{n[nc("0xc")]?this[nc("0x13")]():this[nc("0x3")]()}))}[nc("0x11")](){this[nc("0xb")][nc("0xe")](this[nc("0x1c")].id)}[nc("0x1")](){this[nc("0x4")][nc("0xe")](this.model.id)}[nc("0x19")](){this[nc("0xf")][nc("0x0")]("isEnabled"),this[nc("0xf")][nc("0x0")](nc("0x16")),this[nc("0xf")][nc("0x0")]("canDiscard"),this[nc("0x5")](),this[nc("0x9")].destroy(),this[nc("0x15")]&&this[nc("0x3")]()}[nc("0x13")](){const t=Yo(this[nc("0x1b")].locale,nc("0x7"));this[nc("0x15")]=this[nc("0x1b")][nc("0x17")][nc("0x6")](nc("0x10"))[nc("0x14")](t)}[nc("0x3")](){null!==this._pendingAction&&this[nc("0x1b")][nc("0x17")][nc("0x6")](nc("0x10"))[nc("0x12")](this[nc("0x15")]),this[nc("0x15")]=null}}const sc=["updateComment","isDirty","bind","showInput","element","commentThreadInputView","commentsListView","commentThread","_localUser","_config","authoredAt","disabledSubmit","set","isReadOnly","delegate","value","fire","hasDirtyComment","focus","editorConfig","isActive","length","assign","submit","cancel","locale","destroy","_model","isEnabled","canDiscard","descriptionParts","commentInputView"];var rc,ic;rc=sc,ic=353,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("0x5")]=null,this[xc("0x4")]=null,this.set(xc("0x13"),!1),this[xc("0xb")](xc("0x9"),e[xc("0x9")]),this.bind(xc("0x9")).to(e),this[xc("0xb")](xc("0x1d"),[]),this[xc("0xb")]("isDirty",!1),this.set(xc("0x1b"),!1),this[xc("0xb")]("canAccept",!1),this[xc("0xb")](xc("0x1c"),!1),this._model=e,this[xc("0x7")]=n,this._config=o,o.disableComments?this[xc("0xb")](xc("0x14"),1):this._createCommentViews()}[xc("0x11")](){this[xc("0x3")].focus()}[xc("0x19")](){this.commentsListView&&this.commentsListView[xc("0x19")](),this[xc("0x4")]&&this[xc("0x4")][xc("0x19")](),super[xc("0x19")]()}_createCommentViews(){const{CommentsListView:t}=this._config;this.commentsListView=new t(this[xc("0x18")],this._model[xc("0x6")],Object[xc("0x15")]({CommentView:this[xc("0x8")].CommentView},this[xc("0x8")])),this.commentsListView[xc("0xd")]("removeComment").to(this),this[xc("0x5")][xc("0xd")](xc("0x1f")).to(this),this[xc("0x5")].bind(xc("0x13")).to(this),this[xc("0xb")](xc("0x14"),this[xc("0x5")][xc("0x14")]+1),this[xc("0x1")](xc("0x14")).to(this.commentsListView,xc("0x14"),(t=>t+1)),this[xc("0x4")]=this._createCommentThreadInputView(),this.on("removeComment",(()=>this[xc("0x11")]())),this.bind(xc("0x0")).to(this[xc("0x5")],xc("0x10"),this.commentThreadInputView[xc("0x1e")],"value",((t,e)=>t||!!e))}_createCommentThreadInputView(){const{CommentThreadInputView:t}=this[xc("0x8")],e=new t(this[xc("0x18")],this[xc("0x7")],this._config[xc("0x12")]),n=e.commentInputView;return e[xc("0x1")](xc("0x2")).to(this,"isActive",this[xc("0x1a")][xc("0x6")],xc("0xc"),n,xc("0xe"),((t,e,n)=>!!n||t&&!e)),n.on(xc("0x16"),((t,e)=>{this[xc("0xf")]("addComment",e),n.editor.setData("")})),n.on(xc("0x17"),(()=>this[xc("0x11")]())),n[xc("0x1")](xc("0xa")).to(this[xc("0x1a")][xc("0x6")],"isReadOnly"),e}}const cc=["attributes","element","@external","importWord","</span>","ck-suggestion-","change:description","ck-suggestion__user","Discard suggestion","description","ck-suggestion-wrapper--active","render","editorReady","ck-annotation__info-name","check","commentThread","ck-suggestion__info-name","ck-comment__info-time","ck-suggestion--accept","ck-annotation__user","ck-annotation__actions","execute","ck-annotation__main","ck-comment__external",'<span class="ck-suggestion-color" style="background-color: ',"EXTERNAL_AVATAR","fire","value","map","getUserViewNotificationText","type","acceptButton","push","EXTERNAL_SUGGESTION",'"></span>',"_model","editorDestroyed","acceptSuggestion","ck-annotation","discardButton","formatDateTime","_config",".ck-annotation__content-wrapper","isEnabled","author","commentsListView","color","userView","Accept suggestion","title","ck-suggestion__info","isActive","commentThreadInputView",'<span class="ck-suggestion-type">',"isExternal","div","_createButton","extendTemplate","bind","ck-suggestion","EXTERNAL_IMPORT_WORD_AVATAR","span","ck-annotation__info-time","set","_descriptionElement","ck-suggestion__main","canDiscard","ck-suggestion--disabled-comments","name","authoredAt","split","getTemplate","disableComments","ck-annotation__content-wrapper","setTemplate","descriptionParts","locale","innerHTML","content","source","EXTERNAL_IMPORT_WORD_SUGGESTION","delegate","innerText","getExternalSuggestionNote"];var lc,uc;lc=cc,uc=451,function(t){for(;--t;)lc.push(lc.shift())}(++uc);const dc=function(t,e){return cc[t-=0]};class gc extends ac{constructor(e,n,o,s){super(e,n,o,s),this.set(dc("0x53"),""),this.bind("type").to(this,"descriptionParts",(t=>t&&t[0]?t[0][dc("0x53")]:"")),this[dc("0x1b")](dc("0x3e")).to(this,dc("0x2c"),this,dc("0x14"),((t,e)=>{let n="";for(const e of t)n+="<p>"+mc(e[dc("0x2f")],e[dc("0xf")])+"</p>";return e?n:(0,r.trimHtml)(n,{limit:140})})),this[dc("0x21")]=null,this.acceptButton=this[dc("0x19")](Yo(e,dc("0x11")),t.icons[dc("0x43")],dc("0x47"),dc("0x6"),"sw"),this[dc("0x0")][dc("0x1b")]("isEnabled").to(this,"canAccept"),this[dc("0x8")]=this._createButton(Yo(e,dc("0x3d")),t.icons.cancel,"ck-suggestion--discard","discardSuggestion","sw"),this[dc("0x8")][dc("0x1b")](dc("0xc")).to(this,dc("0x23")),this[dc("0x10")]=new r.UserView(e,this[dc("0x4")].author,this[dc("0x52")]()),this[dc("0x10")].extendTemplate({attributes:{class:[dc("0x3c"),dc("0x48")]}}),this[dc("0x2b")](this[dc("0x28")]())}[dc("0x28")](){const t=this.bindTemplate,e=[{tag:dc("0x18"),attributes:{class:[dc("0x13"),"ck-annotation__info"]},children:[{tag:dc("0x1e"),children:[{text:this[dc("0x10")][dc("0x25")]}],attributes:{class:[dc("0x45"),dc("0x42")]}},{tag:"time",attributes:{datetime:t.to(dc("0x26")),class:[dc("0x46"),dc("0x1f")]},children:[{text:t.to(dc("0x26"),(t=>this._config[dc("0x9")](t)))}]}]},{tag:dc("0x18"),attributes:{class:["ck-suggestion__actions",dc("0x49")]},children:[this[dc("0x0")],this[dc("0x8")]]},{tag:dc("0x18"),attributes:{class:[dc("0x2a")]}}];this[dc("0x4")][dc("0x17")]&&e[dc("0x1")]({tag:dc("0x18"),attributes:{class:[dc("0x4c")]},children:[{text:this[dc("0x34")]()}]});const n={tag:dc("0x18"),attributes:{class:["ck-suggestion-wrapper",t.if(dc("0x14"),dc("0x3f")),t.to("type",(t=>dc("0x3a")+t)),this[dc("0xa")][dc("0x29")]&&dc("0x24")],"data-suggestion-id":this._model.id,"data-thread-id":this[dc("0x4")][dc("0x44")].id,"data-author-id":this._model[dc("0xd")].id,tabindex:-1},children:[{tag:dc("0x18"),attributes:{class:[dc("0x1c"),dc("0x7")]},children:[this.userView,{tag:dc("0x18"),attributes:{class:[dc("0x22"),dc("0x4b")]},children:e}]}]};return this[dc("0xe")]&&this[dc("0x15")]&&(n.children[dc("0x1")](this[dc("0xe")],this.commentThreadInputView),this[dc("0xe")][dc("0x32")](dc("0x41")).to(this),this.commentsListView[dc("0x32")](dc("0x5")).to(this),this[dc("0x15")][dc("0x32")](dc("0x41")).to(this),this[dc("0x15")][dc("0x32")](dc("0x5")).to(this)),n}[dc("0x40")](){super[dc("0x40")](),this[dc("0x21")]=this[dc("0x36")].querySelector(dc("0xb")),this[dc("0x21")][dc("0x2e")]=this[dc("0x3e")],this.on(dc("0x3b"),((t,e,n)=>{this[dc("0x21")][dc("0x2e")]=n}))}[dc("0x19")](t,e,n,o,r){const i=new s.ButtonView(this[dc("0x2d")]);return i[dc("0x20")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[dc("0x1a")]({attributes:{class:n}}),i.on(dc("0x4a"),(()=>{this[dc("0x4f")](o,this._model.id)})),i}getExternalSuggestionNote(){return dc("0x38")===this[dc("0x4")][dc("0x35")][dc("0x37")][dc("0x30")]?Yo(this[dc("0x2d")],dc("0x31")):Yo(this[dc("0x2d")],dc("0x2"))}[dc("0x52")](){return this[dc("0x4")][dc("0x17")]?dc("0x38")===this[dc("0x4")][dc("0x35")][dc("0x37")][dc("0x30")]?Yo(this[dc("0x2d")],dc("0x1d"),this[dc("0x4")].creator[dc("0x25")]):Yo(this.locale,dc("0x4e"),this[dc("0x4")].creator.name):null}}function mc(t,e){let n="";return n+=t[dc("0x27")]("*")[dc("0x51")](((t,e)=>e%2!=0?dc("0x16")+fc(t)+dc("0x39"):fc(t))).join(""),e&&(n+=dc("0x4d")+e[dc("0x50")]+'" title="'+e[dc("0x12")]+dc("0x3")),n}function fc(t){const e=document.createElement(dc("0x1e"));return e[dc("0x33")]=t,e[dc("0x2e")]}const hc=["value","getRanges","trackChanges.SuggestionThreadView","descriptionParts","execute","addComment","delete","comments.maxCommentCharsWhenCollapsed","actionView","listenTo","switchbutton","define","EditorAnnotations","length","requires","mainView","commands","source","view","_bindAnnotationToEditors","reduce","_descriptionFactory","CommentsRepository","model","map","set","_refreshActiveMarkers","getMarkers","addSourceCollector","add","head","Accept all suggestions","separator","_handleSuggestionControllerDelayed","_disableComments","acceptButton","TrackChangesUI","suggestion-","comments.editorConfig","commandName","CommentView","isDirty","getByInnerView","focus","editor","values","createCommentThreadController","comments.maxThreadTotalWeight","getFirstRange","discardButton","stopListening","change:previous","_updateController","Accept all selected suggestions","arrowView","remove","isOn","previous","Annotations","_destroyController","innerView","commentThread","Discard all selected suggestions","discardSelectedSuggestions","change:activeAnnotations","getJoined","registerAnnotation","_initializeController","size","push","_viewToController","trackChanges","_createUIButton","clear","plugins","get","button","getSuggestion","suggestionLoaded","buttonView","filter","config","type","activeAnnotations","some","TrackChangesEditing","unbind","createAnnotationView","init","toMany","getMarkerNames","_suggestionToController","suggestionChanged","getAllAdjacentSuggestions","trackChanges.disableComments","hasSuggestion","isInContent","destroy","locale","has","getDescriptions","pluginName","isEnabled","_handleControllerBuffer","editing","bind","_annotationViews"];var pc,bc;pc=hc,bc=198,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("0x1e")](){return[Wa,r.Users,Ec("0x26"),Ec("0x4a"),"EditorAnnotations"]}static get[Ec("0xa")](){return Ec("0x34")}constructor(t){super(t),this[Ec("0x0")]=new Map,this[Ec("0x56")]=new Map,this[Ec("0xf")]=new Map,this[Ec("0xc")]=new Map;const e=this[Ec("0x3c")].config;e[Ec("0x1b")](Ec("0x12"),gc),e.define(Ec("0x3"),!1),this[Ec("0x32")]=e[Ec("0x5b")](Ec("0x3"))}_handleSuggestionControllerDelayed(t,e){0===this[Ec("0xc")][Ec("0x54")]&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this[Ec("0x0")][Ec("0x8")](t);n||e?n&&e&&this[Ec("0x4b")](t):this[Ec("0x53")](t)}this[Ec("0x3c")].plugins[Ec("0x5b")](Ec("0x1c")).refreshSelectedViews(),this[Ec("0x2a")](),this._handleControllerBuffer[Ec("0x59")]()}),10),this[Ec("0xc")].set(t,e)}[Ec("0x68")](){const t=this.editor,e=t[Ec("0x5a")][Ec("0x5b")]("TrackChangesEditing"),n=t[Ec("0x5a")][Ec("0x5b")](Ec("0x4a")),o=t.plugins[Ec("0x5b")](Ec("0x1c")),s=t[Ec("0x5a")][Ec("0x5b")]("CommentsRepository");t.ui.componentFactory[Ec("0x2d")](Ec("0x57"),(t=>this[Ec("0x58")](t))),o[Ec("0x2c")]((()=>{const t=[];for(const[e,n]of Array.from(this[Ec("0x0")])){const o=e[Ec("0x2")](),s=[];for(const t of o){if(!t[Ec("0x5")])continue;if(t.isMultiRange){s.push(...t[Ec("0x11")]());continue}const e=t[Ec("0x40")]();if(s[Ec("0x1d")]>0){const t=s[0][Ec("0x51")](e);if(t){s[0]=t;continue}}s[Ec("0x55")](e)}t[Ec("0x55")]([n[Ec("0x22")],s])}return t})),this[Ec("0x19")](e,Ec("0x5e"),((t,e)=>{this[Ec("0x19")](e,Ec("0x43"),((t,n,o,s)=>{e[Ec("0x5")]&&(null==o?(this[Ec("0x44")](s[Ec("0x2e")]),this[Ec("0x31")](e,!1)):(this._updateController(o.head),this[Ec("0x31")](e,!0)))})),null===e[Ec("0x49")]?this._handleSuggestionControllerDelayed(e,!1):this[Ec("0x44")](e[Ec("0x2e")])})),this[Ec("0x19")](e,"suggestionUnloaded",((t,e,n)=>{this[Ec("0x42")](e,"change:previous"),this[Ec("0xc")].delete(e);const o=n?n[Ec("0x2e")]:e,s=this[Ec("0x0")][Ec("0x5b")](o);null!==n&&this[Ec("0x44")](o),null===n&&s&&this[Ec("0x4b")](e)})),this[Ec("0x19")](e,Ec("0x1"),((t,e)=>{this[Ec("0x44")](e)})),this[Ec("0x19")](n,Ec("0x50"),(()=>{this[Ec("0x2a")]()})),this[Ec("0x19")](s,Ec("0x15"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Ec("0x4")](n))return;const s=e[Ec("0x5d")](n);this[Ec("0x0")][Ec("0x5b")](s)[Ec("0x22")][Ec("0x3b")]()}),{priority:"lowest"})}[Ec("0x2a")](){const t=this[Ec("0x3c")][Ec("0x5a")][Ec("0x5b")]("Annotations"),e=this[Ec("0x3c")][Ec("0x5a")][Ec("0x5b")](Ec("0x65")),n=Array.from(t[Ec("0x63")],(t=>t[Ec("0x4c")]))[Ec("0x60")]((t=>this[Ec("0x56")][Ec("0x8")](t))),o=[];for(const t of n){const e=this[Ec("0x56")][Ec("0x5b")](t)[Ec("0x27")][Ec("0x2")]();o[Ec("0x55")](...e[Ec("0x24")](((t,e)=>[...t,...e[Ec("0x6a")]()]),[]))}e.activeMarkers=o}_createUIButton(t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this.editor[Ec("0x20")].get(Ec("0x57")),r=Yo(t,"Track changes");n[Ec("0x5f")][Ec("0x29")]({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("0x5f")][Ec("0xe")](Ec("0x48")).to(o,Ec("0x10")),n.buttonView.on(Ec("0x14"),(()=>{o[Ec("0x14")](),this.editor[Ec("0xd")][Ec("0x22")].focus()}));const i=new e.Collection,x=[{type:Ec("0x1a"),model:{withText:!0,label:r,commandName:Ec("0x57")}},{type:Ec("0x30")},{type:Ec("0x5c"),model:{withText:!0,label:Yo(t,Ec("0x2f")),commandName:"acceptAllSuggestions"}},{type:Ec("0x5c"),model:{withText:!0,label:Yo(t,Ec("0x45")),commandName:"acceptSelectedSuggestions"}},{type:Ec("0x5c"),model:{withText:!0,label:Yo(t,"Discard all suggestions"),commandName:"discardAllSuggestions"}},{type:Ec("0x5c"),model:{withText:!0,label:Yo(t,Ec("0x4e")),commandName:Ec("0x4f")}}];for(const t of x){let e={type:"separator"};if(t[Ec("0x27")]){const n=new s.Model(t[Ec("0x27")]),o=this[Ec("0x3c")].commands.get(n.commandName);n.bind(Ec("0x48"),Ec("0xb")).to(o,Ec("0x10"),"isEnabled"),e={type:t[Ec("0x62")],model:n}}i.add(e)}(0,s.addListToDropdown)(n,i);const a=x[Ec("0x60")]((t=>null!=t[Ec("0x27")]))[Ec("0x28")]((t=>this[Ec("0x3c")][Ec("0x20")].get(t[Ec("0x27")][Ec("0x37")]))),c=n[Ec("0x5f")];return c[Ec("0x18")].unbind(Ec("0xb")),c[Ec("0x46")][Ec("0x66")](Ec("0xb")),c[Ec("0x18")].bind(Ec("0xb")).to(o,Ec("0xb")),c[Ec("0x46")][Ec("0xe")](Ec("0xb"))[Ec("0x69")](a,Ec("0xb"),((...t)=>t[Ec("0x64")]((t=>t)))),n.on(Ec("0x14"),(t=>{this[Ec("0x3c")][Ec("0x14")](t[Ec("0x21")][Ec("0x37")]),this[Ec("0x3c")][Ec("0xd")][Ec("0x22")].focus()})),n}[Ec("0x53")](t){const e=this[Ec("0x3c")],n=e[Ec("0x61")],o=e.plugins[Ec("0x5b")](Ec("0x4a")),s=e.plugins[Ec("0x5b")](Ec("0x26")),i=e.plugins[Ec("0x5b")](Ec("0x1c")),x=e[Ec("0x5a")].get(r.Users).me,a=n[Ec("0x5b")](Ec("0x57")).SuggestionThreadView,{CommentsListView:c,CommentThreadInputView:l}=e[Ec("0x5a")].get("CommentsUI");let u,d;this[Ec("0xf")][Ec("0x8")](t.id)?(d=this._annotationViews[Ec("0x5b")](t.id),u=d[Ec("0x1f")]):(u=new a(e[Ec("0x7")],t,x,{disableComments:this._disableComments,editorConfig:n[Ec("0x5b")](Ec("0x36")),maxCommentsWhenCollapsed:n[Ec("0x5b")]("comments.maxCommentsWhenCollapsed"),maxThreadTotalWeight:n[Ec("0x5b")](Ec("0x3f")),maxCommentCharsWhenCollapsed:n[Ec("0x5b")](Ec("0x17")),formatDateTime:(0,r.getDateTimeFormatter)(n[Ec("0x5b")](Ec("0x7"))),CommentView:n[Ec("0x5b")]("comments")[Ec("0x38")],CommentsListView:c,CommentThreadInputView:l}),u[Ec("0x33")].on("execute",(()=>{e[Ec("0xd")][Ec("0x22")].focus()})),u[Ec("0x41")].on(Ec("0x14"),(()=>{e[Ec("0xd")].view[Ec("0x3b")]()})),d=o[Ec("0x67")](this[Ec("0x3c")][Ec("0x7")],u),d[Ec("0xe")](Ec("0x39")).to(u,Ec("0x39")),d[Ec("0xe")](Ec("0x1d")).to(u),d[Ec("0xe")](Ec("0x62")).to(u,Ec("0x62"),(t=>Ec("0x35")+t)),this[Ec("0xf")][Ec("0x29")](t.id,d));const g=s[Ec("0x3e")](t[Ec("0x4d")],u),m=new oc(e,t,u,g),f=t[Ec("0x2")]()[Ec("0x60")]((t=>t[Ec("0x5")]));u[Ec("0x13")]=e[Ec("0x5a")].get("TrackChangesEditing")[Ec("0x25")][Ec("0x9")](f),this[Ec("0x0")][Ec("0x29")](t,m),this[Ec("0x56")][Ec("0x29")](u,m);const h=o.createAnnotation({view:d,target:()=>{const n=[],o=t[Ec("0x2")]()[Ec("0x60")]((t=>t[Ec("0x5")]));for(const t of o)n[Ec("0x55")](...t[Ec("0x2b")]());return(0,r.getAllMarkersDomElementsSorted)(e[Ec("0xd")],n)},type:()=>Ec("0x35")+m[Ec("0x22")][Ec("0x62")]});s[Ec("0x23")](u,h),o[Ec("0x2d")](h),i[Ec("0x52")](h)}_destroyController(t){const e=this[Ec("0x3c")].plugins[Ec("0x5b")]("Annotations"),n=this[Ec("0x0")].get(t),o=n[Ec("0x22")],s=e[Ec("0x3a")](o);s&&e[Ec("0x47")](s),this[Ec("0x0")].delete(t),this[Ec("0x56")][Ec("0x16")](o),n[Ec("0x6")]()}[Ec("0x44")](t){if(!t[Ec("0x5")]||!this[Ec("0x0")][Ec("0x8")](t))return;const e=this[Ec("0x3c")][Ec("0x5a")][Ec("0x5b")](Ec("0x65")),n=this[Ec("0x0")].get(t),o=t.getAllAdjacentSuggestions();n[Ec("0x22")][Ec("0x13")]=e[Ec("0x25")][Ec("0x9")](o)}[Ec("0x6")](){for(const t of this._suggestionToController.keys())this[Ec("0x4b")](t);for(const t of this[Ec("0xf")][Ec("0x3d")]())t[Ec("0x1f")][Ec("0x6")]();super.destroy()}}var Tc,Cc,yc=["pluginName","getSuggestion","addSuggestion","editor","adapter","TrackChanges","get","plugins","Comments","addSuggestionData","requires"];Tc=yc,Cc=379,function(t){for(;--t;)Tc.push(Tc.shift())}(++Cc);var kc=function(t,e){return yc[t-=0]};class Ac extends t.Plugin{static get[kc("0x5")](){return[Wa,_c,kc("0x3")]}static get[kc("0x6")](){return kc("0x0")}set[kc("0xa")](t){this[kc("0x9")].plugins[kc("0x1")](Wa)[kc("0xa")]=t}get[kc("0xa")](){return this[kc("0x9")][kc("0x2")].get(Wa).adapter}[kc("0x8")](t){return this[kc("0x9")][kc("0x2")][kc("0x1")](Wa)[kc("0x4")](t)}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[kc("0x9")][kc("0x2")].get(Wa).getSuggestions({skipNotAttached:t,toJSON:e})}[kc("0x7")](t){return this[kc("0x9")][kc("0x2")][kc("0x1")](Wa).getSuggestion(t)}}const vc=["getRootsAttributes","config","map","TrackChangesDataGetter","Users","init","destroy","CommentsRepository","getRootNames","constructor","document","get","discardAllSuggestions","addUser","function","data","useAnonymousUser","requires","model","getDataWithDiscardedSuggestions","editor","reduce","div","acceptAllSuggestions","Pagination","trackChangesData","getUser","name","addSuggestionData","createDocumentFragment","_adapter","TrackChangesEditing","pluginName","getFullData","define","push","set","TrackChangesData","plugins","rootsAttributes","result","editorCreator","trackChangesData.editorCreator","track-changes-data-invalid-editor-creator","getSuggestions"];var Rc,Sc;Rc=vc,Sc=446,function(t){for(;--t;)Rc.push(Rc.shift())}(++Sc);const Ic=function(t,e){return vc[t-=0]},Lc=[Ic("0x1c")];class Nc extends t.Plugin{static get[Ic("0x15")](){return[Wa]}static get pluginName(){return Ic("0x29")}[Ic("0x9")](){const t=this[Ic("0x18")];if(t[Ic("0x5")][Ic("0x26")](Ic("0x1"),(e=>{const n=t.model[Ic("0xe")][Ic("0xc")]()[Ic("0x19")](((t,e)=>(t[e]="",t)),{});return t[Ic("0xd")].create(n,e)})),Ic("0x12")!=typeof t[Ic("0x5")][Ic("0xf")](Ic("0x1d")).editorCreator)throw new e.CKEditorError(Ic("0x2"))}getDataWithAcceptedSuggestions(t){return Oc(this[Ic("0x18")],!0,t)}[Ic("0x17")](t){return Oc(this[Ic("0x18")],!1,t)}}class wc extends t.Plugin{static get[Ic("0x24")](){return Ic("0x7")}constructor(t){super(t),this[Ic("0x2c")]="end"}[Ic("0x9")](){this[Ic("0x18")][Ic("0x2a")].get(Ic("0xb"))[Ic("0x22")]={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this.editor[Ic("0x2a")][Ic("0xf")](Ic("0x23"))[Ic("0x22")]=null}}function Mc(t){return void 0!==t[Ic("0x4")]}async function Oc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Lc);o[Ic("0x2a")][Ic("0x27")](Wa,wc),o[Ic("0x2b")]=Mc(t)?t[Ic("0x4")]():void 0;const s=document[Ic("0x21")](),i=t[Ic("0x5")][Ic("0xf")](Ic("0x1d"))[Ic("0x0")],x=await i(o,(()=>function(t){const e=document.createElement(Ic("0x1a"));return t.appendChild(e),e}(s)));!function(t,e){const n=t[Ic("0x16")][Ic("0xe")][Ic("0xc")]()[Ic("0x19")](((e,n)=>(e[n]=t.data[Ic("0xf")]({rootName:n}),e)),{}),o=t[Ic("0x2a")].get(Ic("0x8")).users[Ic("0x6")]((t=>({id:t.id,name:t[Ic("0x1f")]}))),s=t[Ic("0x2a")][Ic("0xf")](Ic("0x23"))[Ic("0x3")]({skipNotAttached:!0,toJSON:!0}),r=e[Ic("0x2a")][Ic("0xf")](Ic("0x8")),i=e[Ic("0x2a")].get("TrackChangesEditing");for(const t of o)r[Ic("0x1e")](t.id)||r[Ic("0x11")](t);r.me||r[Ic("0x14")]();for(const t of s)i[Ic("0x20")](t);e[Ic("0x13")][Ic("0x28")](n)}(t,x),x.execute(Ic(e?"0x1b":"0x10"));const a=Mc(x)?x[Ic("0x25")](n):x[Ic("0x13")][Ic("0xf")](n);return await x[Ic("0xa")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();