@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230721.0 → 0.0.0-nightly-20230723.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/build/track-changes.js +1 -1
  2. package/package.json +3 -3
  3. package/src/commands/acceptsuggestioncommand.js +1 -1
  4. package/src/commands/discardsuggestioncommand.js +1 -1
  5. package/src/commands/executeonallsuggestionscommand.js +1 -1
  6. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  7. package/src/commands/trackchangescommand.js +1 -1
  8. package/src/integrations/alignment.js +1 -1
  9. package/src/integrations/basicstyles.js +1 -1
  10. package/src/integrations/blockquote.js +1 -1
  11. package/src/integrations/ckbox.js +1 -1
  12. package/src/integrations/codeblock.js +1 -1
  13. package/src/integrations/comments.js +1 -1
  14. package/src/integrations/deletecommand.js +1 -1
  15. package/src/integrations/documentlist.js +1 -1
  16. package/src/integrations/documentlistproperties.js +1 -1
  17. package/src/integrations/entercommand.js +1 -1
  18. package/src/integrations/findandreplace.js +1 -1
  19. package/src/integrations/font.js +1 -1
  20. package/src/integrations/formatpainter.js +1 -1
  21. package/src/integrations/heading.js +1 -1
  22. package/src/integrations/highlight.js +1 -1
  23. package/src/integrations/horizontalline.js +1 -1
  24. package/src/integrations/htmlembed.js +1 -1
  25. package/src/integrations/image.js +1 -1
  26. package/src/integrations/imagereplace.js +1 -1
  27. package/src/integrations/importword.js +1 -1
  28. package/src/integrations/indent.js +1 -1
  29. package/src/integrations/inputcommand.js +1 -1
  30. package/src/integrations/link.js +1 -1
  31. package/src/integrations/list.js +1 -1
  32. package/src/integrations/listproperties.js +1 -1
  33. package/src/integrations/mediaembed.js +1 -1
  34. package/src/integrations/mention.js +1 -1
  35. package/src/integrations/pagebreak.js +1 -1
  36. package/src/integrations/paragraph.js +1 -1
  37. package/src/integrations/removeformat.js +1 -1
  38. package/src/integrations/restrictededitingmode.js +1 -1
  39. package/src/integrations/shiftentercommand.js +1 -1
  40. package/src/integrations/standardeditingmode.js +1 -1
  41. package/src/integrations/style.js +1 -1
  42. package/src/integrations/table.js +1 -1
  43. package/src/integrations/tablecaption.js +1 -1
  44. package/src/integrations/tableclipboard.js +1 -1
  45. package/src/integrations/tablecolumnresize.js +1 -1
  46. package/src/integrations/tableheadings.js +1 -1
  47. package/src/integrations/tablemergesplit.js +1 -1
  48. package/src/integrations/tableofcontents.js +1 -1
  49. package/src/integrations/tableproperties.js +1 -1
  50. package/src/integrations/template.js +1 -1
  51. package/src/integrations/title.js +1 -1
  52. package/src/integrations/undo.js +1 -1
  53. package/src/integrations/utils.js +1 -1
  54. package/src/suggestion.js +1 -1
  55. package/src/suggestiondescriptionfactory.js +1 -1
  56. package/src/trackchanges.js +1 -1
  57. package/src/trackchangesdata.js +1 -1
  58. package/src/trackchangesediting.js +1 -1
  59. package/src/trackchangesui.js +1 -1
  60. package/src/ui/suggestioncontroller.js +1 -1
  61. package/src/ui/view/basesuggestionthreadview.js +1 -1
  62. package/src/ui/view/suggestionthreadview.js +1 -1
  63. package/src/utils/common-translations.js +1 -1
  64. package/src/utils/utils.js +1 -1
@@ -2,4 +2,4 @@
2
2
  /*!
3
3
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var s=e[o];if(void 0!==s)return s.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>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=["commands","_enabledCommands","isEnabled","editor","affectsData","refresh","_isEnabledBasedOnSelection","has","_disableUnsupportedCommands","_enableCommands","execute","TrackChangesCommand","forceDisabled"];var c,l;c=a,l=429,function(t){for(;--t;)c.push(c.shift())}(++l);const d=function(t,e){return a[t-=0]};class u extends t.Command{constructor(t,e){super(t),this[d("0x1")]=e,this.value=!1,this[d("0x5")](),this[d("0x6")]=!1}[d("0x5")](){this[d("0x2")]=!0}[d("0xa")](){this.value=!this.value,this.value?this._disableUnsupportedCommands():this[d("0x9")]()}[d("0x8")](){for(const t of this[d("0x3")][d("0x0")][d("0x0")]())t[d("0x4")]&&!this[d("0x1")][d("0x7")](t)&&t[d("0xc")]("TrackChangesCommand")}[d("0x9")](){for(const t of this[d("0x3")][d("0x0")][d("0x0")]())t[d("0x4")]&&!this[d("0x1")][d("0x7")](t)&&t.clearForceDisabled(d("0xb"))}}const g=["canEditAt","_isEnabledBasedOnSelection","TrackChangesEditing","editor","acceptSuggestion","_suggestions","getRanges","refresh","execute","track-changes-accept-suggestion-not-found","model","plugins"];var m,f;m=g,f=146,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("0x3")]=e,this[h("0x5")](),this[h("0xb")]=!1}[h("0x5")](){this.isEnabled=!0}[h("0x6")](t){const n=this[h("0x3")].get(t);if(!n)throw new e.CKEditorError(h("0x7"),this);const o=n[h("0x4")]();this[h("0x1")][h("0x8")][h("0xa")](o)&&this[h("0x1")][h("0x9")].get(h("0x0"))[h("0x2")](n)}}const b=["_isEnabledBasedOnSelection","TrackChangesEditing","track-changes-discard-suggestion-not-found","get","isEnabled","model","execute","refresh","discardSuggestion","_suggestions","editor"];var E,_;E=b,_=335,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class y extends t.Command{constructor(t,e){super(t),this[T("0x4")]=e,this[T("0x2")](),this[T("0x6")]=!1}refresh(){this[T("0xa")]=!0}[T("0x1")](t){const n=this[T("0x4")][T("0x9")](t);if(!n)throw new e.CKEditorError(T("0x8"),this);const o=n.getRanges();this[T("0x5")][T("0x0")].canEditAt(o)&&this.editor.plugins.get(T("0x7"))[T("0x3")](n)}}const C=["createRange","end","createPositionBefore","createPositionAfter","isArray","next","getRanges","createPositionAt","isInContent","change","isIntersecting","deletion","type","isObject","isMultiRange"," [color ","isTouching","content","execute","add","value","push","from","schema","getMarkers","color","start","length"];var k,A;k=C,A=308,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return C[t-=0]};function R(t){return t.sort(((t,e)=>"deletion"==t.type&&v("0xb")!=e.type?-1:v("0xb")!=t[v("0xc")]&&v("0xb")==e.type?1:0))}function I(t,e){let n,o=0;const s=[],r=e[v("0x17")];for(;o<t.length;){const i=t[o],x=t[o+1];n||(n=e[v("0x2")](i)),S(e,i,x)||(s[v("0x15")](e[v("0x0")](n,r[v("0xd")](i)?e[v("0x3")](i):e[v("0x7")](i,v("0x1")))),n=null),o++}return s}function S(t,e,n){if(!n)return!1;const o=t[v("0x3")](e),s=t[v("0x2")](n);return o[v("0x10")](s)}function L(t,e,n){for(;n[v("0x1b")];){const o=n.splice(0,100);t[v("0x9")]((()=>{for(const t of o)t.isInContent&&e[v("0x12")](t.id)}))}}const N=["_command","_suggestions","from","some","_isEnabledBasedOnSelection","editor","canEditAt","model","execute","refresh","isEnabled","values"];var M,w;M=N,w=193,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("0x0")]=n,this[O("0x8")](),this[O("0x3")]=!1}[O("0x8")](){const t=Array[O("0x1")](this._suggestions[O("0xa")]())[O("0x2")]((t=>t.isInContent));this[O("0x9")]=this[O("0xb")][O("0x9")]&&t}[O("0x7")](){const t=R(Array[O("0x1")](this[O("0x0")][O("0xa")]()));for(const e of t){const t=e.getRanges();if(!this[O("0x4")][O("0x6")][O("0x5")](t))return}L(this[O("0x4")][O("0x6")],this[O("0xb")],t)}}const P=["refresh","isEnabled","canEditAt","execute","document","selection","_command","_selectedSuggestions","_isEnabledBasedOnSelection","model","_suggestions","size","from","editor","getRanges","values"];var D,B;D=P,B=102,function(t){for(;--t;)D.push(D.shift())}(++B);const j=function(t,e){return P[t-=0]};class U extends t.Command{constructor(t,e,n){super(t),this._command=e,this[j("0x4")]=n,this._selectedSuggestions=new Set,this.refresh(),this[j("0x2")]=!1}[j("0xa")](){const t=this[j("0x7")].model[j("0xe")][j("0xf")],e=Array[j("0x6")](this[j("0x4")][j("0x9")]());this._selectedSuggestions=function(t,e){const n=Array[v("0x16")](t[v("0x6")]()),o=new Set;for(const s of e)if(s[v("0x8")])for(const e of n)for(const n of s[v("0x18")]()){const r=n.getRange();(e[v("0xa")](r)||t.isCollapsed&&!s[v("0xe")]&&s[v("0x5")]&&r[v("0x1")][v("0x10")](e[v("0x1a")]))&&o[v("0x13")](s)}return o}(t,e),this[j("0xb")]=this._command[j("0xb")]&&!!this[j("0x1")][j("0x5")]}[j("0xd")](){const t=R(Array[j("0x6")](this._selectedSuggestions));for(const e of t){const t=e[j("0x8")]();if(!this[j("0x7")].model[j("0xc")](t))return}L(this[j("0x7")][j("0x3")],this[j("0x0")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const z=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var W=Array.prototype.splice;const V=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():W.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=z(e,t);return n<0?void 0:e[n][1]};const q=function(t){return z(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=z(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const J=$;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const dt=function(t){return lt.call(t)};var ut=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ut&&ut in Object(t)?ct(t):dt(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var yt=/^\[object .+?Constructor\]$/,Ct=Function.prototype,kt=Object.prototype,At=Ct.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const It=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:yt).test(Tt(t))};const St=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=St(t,e);return It(n)?n:void 0};const 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 Wt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=Wt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Wt(this,t).get(t)};const qt=function(t){return Wt(this,t).has(t)};const Xt=function(t,e){var n=Wt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,de=ce.propertyIsEnumerable;const ue=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!de.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var ye={};ye["[object Float32Array]"]=ye["[object Float64Array]"]=ye["[object Int8Array]"]=ye["[object Int16Array]"]=ye["[object Int32Array]"]=ye["[object Uint8Array]"]=ye["[object Uint8ClampedArray]"]=ye["[object Uint16Array]"]=ye["[object Uint32Array]"]=!0,ye["[object Arguments]"]=ye["[object Array]"]=ye["[object ArrayBuffer]"]=ye["[object Boolean]"]=ye["[object DataView]"]=ye["[object Date]"]=ye["[object Error]"]=ye["[object Function]"]=ye["[object Map]"]=ye["[object Number]"]=ye["[object Object]"]=ye["[object RegExp]"]=ye["[object Set]"]=ye["[object String]"]=ye["[object WeakMap]"]=!1;const Ce=function(t){return xe(t)&&Te(t.length)&&!!ye[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Ie=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Se=Ie&&Ie.isTypedArray;const Le=Se?ke(Se):Ce;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 We=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?Me(t,!0):We(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Je=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const dn=function(t){return ln(t,Ue,on)};const un=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",yn=Tt(gn),Cn=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 yn:return Tn;case Cn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const In=Rn;var Sn=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Sn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Wn=function(t){return xe(t)&&"[object Map]"==In(t)};var Vn=Ie&&Ie.isMap;const Kn=Vn?ke(Vn):Wn;const qn=function(t){return xe(t)&&"[object Set]"==In(t)};var Xn=Ie&&Ie.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=In(e),g=u==Qn||"[object GeneratorFunction]"==u;if(be(e))return Qe(e,a);if(u==Zn||u==Jn||g&&!r){if(x=c||g?{}:zn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[u])return r?e:{};x=Un(e,u,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),$n(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var f=d?void 0:(l?c?un:dn:c?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=po(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const yo=function(t){return this.__data__.has(t)};function Co(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}Co.prototype.add=Co.prototype.push=To,Co.prototype.has=yo;const ko=Co;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const 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 Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const Mo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=Io;case"[object Set]":var a=1&o;if(x||(x=So),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=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:In(t),c=x?Po:In(e),l=(a=a==Fo?Do:a)==Do,d=(c=c==Fo?Do:c)==Do,u=a==c;if(u&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(u&&!l)return r||(r=new Yt),i||Le(t)?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 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=["_onAccept","length","creator","split","_model","commentThread","filter","addMarkerName","add","onAccept","push","author","getMarkers","head","_onDiscard","getRange","onAttributesChange","createdAt","getRanges","_onAttributesChange","authoredAt","setAttribute","decorate","delete","nodeAfter","from","getFirstRange","getMultiRangeId","suggestion:","subType","removeMarker","map","reduce","addMarker","isIntersecting","isIntersectingWithRange","get","data","hasComments","isInContent","@external","addRange","nodeBefore","set","attributes","isExternal","substr","getMarkerNames","previous","start","getAllAdjacentSuggestions","_markerNames","_saved","getFirstMarker","getItems","removeMarkers","getContainedElement","accept","next","removeAttribute","type","change","onDiscard"];var $o,Jo;$o=Xo,Jo=406,function(t){for(;--t;)$o.push($o.shift())}(++Jo);const Qo=function(t,e){return Xo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this.id=e.id,this[Qo("0x20")]=e[Qo("0x20")],this[Qo("0x1")]=e[Qo("0x1")]||null,this[Qo("0x2e")]=e[Qo("0x2e")],this[Qo("0x25")]=e[Qo("0x25")]||e[Qo("0x2e")],this[Qo("0x11")]=Boolean(e[Qo("0x10")]&&e[Qo("0x10")][Qo("0xc")]),this.data=null,this._model=t,this._onAccept=e[Qo("0x2c")],this[Qo("0x31")]=e[Qo("0x22")],this[Qo("0x36")]=e[Qo("0x33")],this[Qo("0x17")]=new Set,this[Qo("0x34")]=null,this[Qo("0xf")](Qo("0x37"),null),this.set(Qo("0x10"),e.attributes||{}),this[Qo("0xf")](Qo("0x14"),null),this[Qo("0xf")](Qo("0x1e"),null),this.set(Qo("0x28"),null),this.set(Qo("0x18"),!1),this[Qo("0x39")](Qo("0x1d")),this[Qo("0x39")]("discard")}get head(){let t=this;for(;t.previous;)t=t[Qo("0x14")];return t}get[Qo("0xa")](){return!!this[Qo("0x28")]&&this[Qo("0x28")][Qo("0x24")]>0}get isMultiRange(){return 0!=this[Qo("0x17")].size&&6==Array[Qo("0x3c")](this[Qo("0x17")])[0][Qo("0x26")](":")[Qo("0x24")]}get[Qo("0xb")](){return null!==this[Qo("0x19")]()}[Qo("0x2a")](t){this[Qo("0x17")][Qo("0x2b")](t)}[Qo("0x13")](){return Array.from(this[Qo("0x17")])}[Qo("0x2f")](){return this[Qo("0x13")]().map((t=>this[Qo("0x27")].markers[Qo("0x8")](t)))[Qo("0x29")]((t=>t))}[Qo("0x19")](){return this[Qo("0x2f")]()[0]||null}[Qo("0x1b")](){this[Qo("0x27")][Qo("0x21")]((t=>{for(const e of this[Qo("0x2f")]())t[Qo("0x2")](e)})),this[Qo("0x17")].clear()}[Qo("0x2")](t){this[Qo("0x27")][Qo("0x21")]((e=>{e[Qo("0x2")](t)})),this[Qo("0x17")][Qo("0x3a")](t)}[Qo("0xd")](t){const e=Qo("0x0")+this[Qo("0x20")]+":"+this.subType+":"+this.id+":"+this[Qo("0x25")].id+":"+Zo[Qo("0x3e")]();this[Qo("0x2a")](e),this._model[Qo("0x21")]((n=>{n[Qo("0x5")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x7")](t){for(const e of this[Qo("0x35")]())if(e[Qo("0x6")](t))return!0;return!1}[Qo("0x35")](){return this[Qo("0x2f")]()[Qo("0x3")]((t=>t[Qo("0x32")]()))}[Qo("0x1a")](){return this[Qo("0x35")]()[Qo("0x4")](((t,e)=>[...t,...e[Qo("0x1a")]()]),[])}[Qo("0x3d")](){var t;return(null===(t=this[Qo("0x19")]())||void 0===t?void 0:t.getRange())||null}[Qo("0x1c")](){const t=this[Qo("0x35")]();if(1!=t.length)return null;const e=t[0],n=e[Qo("0x15")][Qo("0x3b")],o=e.end[Qo("0xe")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0x1d")](){this[Qo("0x23")](this[Qo("0x35")](),this[Qo("0x9")],this[Qo("0x10")]),this[Qo("0x1b")]()}discard(){this._onDiscard(this[Qo("0x35")](),this.data,this[Qo("0x10")]),this[Qo("0x1b")]()}[Qo("0x16")](){const t=[];let e=this[Qo("0x30")];for(;e;)t[Qo("0x2d")](e),e=e[Qo("0x1e")];return t}[Qo("0x38")](t,e){const n=eo(this.attributes);_o(n,t,e),Go(n,this[Qo("0x10")])||(this[Qo("0x10")]=n,this._onAttributesChange(n))}[Qo("0x1f")](t){const e=eo(this[Qo("0x10")]);qo(e,t),Go(e,this[Qo("0x10")])||(this[Qo("0x10")]=e,this[Qo("0x36")](this[Qo("0x10")]))}toJSON(){return{id:this.id,type:this[Qo("0x1")]?this.type+":"+this[Qo("0x1")]:this[Qo("0x20")],authorId:this.creator.id,createdAt:this[Qo("0x34")],hasComments:this[Qo("0xa")],data:this[Qo("0x9")],attributes:this[Qo("0x10")]}}static[Qo("0x3e")](){return(0,e.uid)()[Qo("0x12")](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=["end","skip","match","previousSibling","deletion","type","normal","getItemLabel","isInContent","isEmpty","registerDescriptionCallback","push","checkChild","isObject","nextSibling","function","length","element","Object","isEqual","start","text","quantity","insertion","remove","data","replace","REPLACE_TEXT","item","*Insert:* %0","getWalker","_itemLabels","_itemLabelsCallbacks","*Split:* %0","_customCallbacks","elementEnd","add","removeObject","ELEMENT_SPACE","name","getDescriptions","get","_schema","_addDescriptionItems","Container","_resolveDescriptionItems","addObject","indexOf","getFirstRange","elementStart","removeEmptyContainer","_locale","*Remove:* %0","addContainer","registerElementLabel","$1 $2"];var es,ns;es=ts,ns=135,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("0xb")]=[],this[os("0x8")]=new Map,this[os("0x9")]=[],this._schema=t,this[os("0x1c")]=e}[os("0x11")](t){const e=[];for(let n=0;n<t[os("0x31")];n++){const o=t[n];if(!o[os("0x29")])continue;let s=!1;for(const t of this[os("0xb")]){const n=t(o);if(n){"type"in n&&e[os("0x2c")](n),s=!0;break}}if(!s){this[os("0x14")](e,o);const s=t[n+1];if(s&&!o[os("0x19")]()[os("0x21")][os("0x34")](s[os("0x19")]()[os("0x35")])){const t=e[e.length-1],n=os("0x0")==o.type?os("0xd"):"remove";t&&"text"==t.type&&(t[n]+="\n")}}}return this._resolveDescriptionItems(e)}[os("0x2b")](t){this[os("0xb")][os("0x2c")](t)}[os("0x1f")](t,n,o=e.priorities[os("0x27")]){os("0x30")==typeof t?(0,e.insertToPriorityArray)(this._itemLabelsCallbacks,{matchingCallback:t,label:n,priority:o}):this[os("0x8")].set(t,n)}[os("0x28")](t,e=1){let n;for(const e of this[os("0x9")])if(e.matchingCallback(t)){n=e.label;break}return n||(n=this[os("0x8")][os("0x12")](t.name)),n?n(e):1!==e?e+" "+t[os("0x10")]+"s":""+t.name}_addDescriptionItems(t,e){const n=e[os("0x19")]()[os("0x7")](),o=os("0x0")==e[os("0x26")]?os("0xd"):os("0x1");for(const e of n){const s=e[os("0x5")],r=t[t[os("0x31")]-1];if(s.is("$textProxy"))r&&r.type.indexOf(os("0x15"))>-1&&t.pop(),r&&os("0x36")==r.type?r[o]+=s[os("0x2")]:t[os("0x2c")]({type:os("0x36"),add:os("0xd")==o?s[os("0x2")]:"",remove:"remove"==o?s[os("0x2")]:""});else if(this[os("0x13")][os("0x2e")](s)){const i=s;if(r&&r.type[os("0x18")]("Container")>-1&&t.pop(),os("0xc")==e[os("0x26")])continue;r&&r.type==o+os("0x33")&&r[os("0x32")][os("0x10")]==i[os("0x10")]?r[os("0x37")]++:t[os("0x2c")]({type:o+os("0x33"),element:i,quantity:1}),n[os("0x22")]((t=>!(os("0xc")==t[os("0x26")]&&t.item==s)))}else if(this[os("0x13")][os("0x2d")](s,"$text")||s.is("element","softBreak")){const n=s;if(os("0xd")==o&&os("0x1a")==e[os("0x26")]||os("0x1")==o&&"elementEnd"==e[os("0x26")])continue;if(r&&-1==r[os("0x26")][os("0x18")](os("0x15"))){os("0x36")==r.type&&(r[o]+="\n");continue}let i;if(i=os("0xd")==o?n[os("0x2f")]&&!this[os("0x13")][os("0x2e")](n[os("0x2f")])?n.nextSibling:null:n[os("0x24")]&&!this[os("0x13")][os("0x2e")](n[os("0x24")])?n.previousSibling:null,n[os("0x2a")]||i&&i[os("0x2a")]){const e=i&&i.isEmpty?i:n;r&&r[os("0x26")]==o+"EmptyContainer"&&r[os("0x32")][os("0x10")]==e[os("0x10")]?r[os("0x37")]++:t.push({type:o+"EmptyContainer",element:e,quantity:1})}else t[os("0x2c")]({type:o+os("0x15"),element:n})}}}[os("0x16")](t){const e=this[os("0x1c")],n=[];for(const o of t){switch(o[os("0x26")]){case os("0x36"):if(o[os("0xd")]=o[os("0xd")][os("0x3")](/(\S)\u000A+(\S)/g,os("0x20"))[os("0x3")](/\u000A/g,""),o.remove=o[os("0x1")][os("0x3")](/(\S)\u000A+(\S)/g,os("0x20"))[os("0x3")](/\u000A/g,""),""!=o.add&&""!=o[os("0x1")]){n[os("0x2c")]({type:os("0x3"),content:Yo(e,os("0x4"),['"'+o.remove+'"','"'+o[os("0xd")]+'"'])});continue}if(null!=o[os("0xd")][os("0x23")](/^ +$/)){n[os("0x2c")]({type:"insertion",content:Yo(e,"*Insert:* %0",Yo(e,os("0xf"),o.add[os("0x31")]))});continue}if(null!=o.remove[os("0x23")](/^ +$/)){n[os("0x2c")]({type:os("0x25"),content:Yo(e,os("0x1d"),Yo(e,os("0xf"),o[os("0x1")].length))});continue}if(""!=o[os("0xd")]){n[os("0x2c")]({type:"insertion",content:Yo(e,os("0x6"),'"'+o[os("0xd")]+'"')});continue}n[os("0x2c")]({type:os("0x25"),content:Yo(e,os("0x1d"),'"'+o[os("0x1")]+'"')});continue;case"addEmptyContainer":case os("0x17"):n.push({type:os("0x0"),content:Yo(e,os("0x6"),this[os("0x28")](o[os("0x32")],o[os("0x37")]))});continue;case os("0x1b"):case os("0xe"):n.push({type:os("0x25"),content:Yo(e,os("0x1d"),this[os("0x28")](o[os("0x32")],o[os("0x37")]))});continue;case os("0x1e"):n[os("0x2c")]({type:os("0x0"),content:Yo(e,os("0xa"),this[os("0x28")](o[os("0x32")],o[os("0x37")]))});continue;case"removeContainer":n.push({type:os("0x25"),content:Yo(e,"*Merge:* %0",this[os("0x28")](o.element,o[os("0x37")]))});continue}n[os("0x2c")](o)}return n}}const rs=["alignment","locale","value","_descriptionFactory","afterInit","FORMAT_JUSTIFY_TEXT","get","from","document","center","change","commandParams","FORMAT_ALIGN_TO_CENTER","selection","enableCommand","markBlockFormat","model","getAttribute","right","filter","plugins","has","AlignmentEditing","left","editor","*Format:* %0","contentLanguageDirection"];var is,xs;is=rs,xs=220,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x0")](){const t=this.editor,e=t[as("0x18")];if(!t.plugins[as("0x11")](as("0x12")))return;const n=t[as("0x10")][as("0x2")]("TrackChangesEditing");n[as("0xa")](as("0x17"),((e,o={})=>{let s=o[as("0x19")];o[as("0x19")]||(s="ltr"===t[as("0x18")][as("0x16")]?as("0x13"):as("0xe"));const r=Array[as("0x3")](this.editor[as("0xc")][as("0x4")][as("0x9")].getSelectedBlocks())[as("0xf")]((t=>function(t,e,n){const o=t[as("0xd")](as("0x17"))||null;return e.checkAttribute(t,as("0x17"))&&n!=o}(t,this[as("0x14")][as("0xc")].schema,s)));t[as("0xc")][as("0x6")]((()=>{for(const t of r)n[as("0xb")](t,{commandName:"alignment",commandParams:[{value:s}]})}))})),n[as("0x1a")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&as("0x17")==n.commandName){const t=n[as("0x7")][0][as("0x19")];return{type:"format",content:Yo(e,as("0x15"),function(t){switch(t){case as("0x13"):return Yo(e,"FORMAT_ALIGN_TO_LEFT");case"right":return Yo(e,"FORMAT_ALIGN_TO_RIGHT");case as("0x5"):return Yo(e,as("0x8"));case"justify":return Yo(e,as("0x1"))}}(t))}}}))}}const ls=["elementEnd","mapper","isBlock","isContent","push","hasAttribute","start","writer","getItems","test","listItem","listIndent","nextSibling","getCustomProperty","previousPosition","element","markerRange","TrackChangesEditing","insert","toViewPosition","plugins","span","addClass","name","get","parent","getAttribute","isLimit","model","ck-suggestion-marker-","ck-suggestion-marker--active","type","consumable","toViewElement","markerName","createUIElement"];var ds,us;ds=ls,us=398,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("0x6")]())s[gs("0x3")](t)&&o[gs("0x2")](n.createRangeOn(s));return o}function fs(t){const e=[];if(t.is(gs("0xd"),gs("0x8"))){let n=t[gs("0xa")];for(;n&&n.is(gs("0xd"),"listItem")&&n[gs("0x18")](gs("0x9"))>0;)e[gs("0x2")](n),n=n[gs("0xa")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t[gs("0x12")][gs("0x16")](gs("0xf"));return(s,r,i)=>{if(!i[gs("0x1e")][gs("0x7")](r.markerRange,s[gs("0x15")]))return;const x=r[gs("0xe")].getWalker(),a=r.markerRange[gs("0x4")],c=t[gs("0x1a")].schema;let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t.item;u=u||c[gs("0x1")](e);const n=i.mapper[gs("0x1f")](e);if(n&&n[gs("0xb")]("addHighlight"))return;gs("0x22")==t[gs("0x1d")]&&c[gs("0x0")](e)&&!c[gs("0x19")](e)&&(e[gs("0xa")]||a.isAtEnd?l&&l[gs("0x17")]==e||(l=e,m(t.previousPosition),g=!0):d=d||t[gs("0xc")])}function m(t){const s=i[gs("0x5")][gs("0x21")](gs("0x13"),{class:gs("0x1b")+e}),x=i[gs("0x23")][gs("0x11")](t);n&&o.activeMarkers.includes(r[gs("0x20")])&&i[gs("0x5")][gs("0x14")](gs("0x1c"),s),i[gs("0x5")][gs("0x10")](x,s),i[gs("0x23")].bindElementToMarker(s,r[gs("0x20")])}u||g||!d||m(d)}}const ps=["document","isCollapsed","enableCommand","has","model","commandName","registerDescriptionCallback","locale","SuperscriptEditing","FORMAT_SUBSCRIPT","change","getRanges","strikethrough","FORMAT_ITALIC","get","format","bold","toLowerCase","slice","BoldEditing","afterInit","italic","commands","plugins","ItalicEditing","FORMAT_UNDERLINE","value","FORMAT_CODE","_descriptionFactory","StrikethroughEditing","CodeEditing","from","forceValue"];var bs,Es;bs=ps,Es=435,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=[_s("0xd"),_s("0x12"),"UnderlineEditing",_s("0x18"),_s("0x17"),"SubscriptEditing",_s("0x2")];class ys extends t.Plugin{[_s("0xe")](){const t=this.editor,e=t[_s("0x1f")],n=t[_s("0x11")][_s("0x8")]("TrackChangesEditing"),o=t[_s("0x1")];for(const o of Ts){if(!t[_s("0x11")][_s("0x1e")](o))continue;const s=o[_s("0xc")](0,-7)[_s("0xb")](),r=t[_s("0x10")][_s("0x8")](s);n[_s("0x1d")](s,((t,o={})=>{const i=e[_s("0x1b")].selection;if(i[_s("0x1c")])return void t(o);const x=void 0!==o[_s("0x1a")]?o.forceValue:!r[_s("0x14")];e[_s("0x4")]((()=>{const t=Array[_s("0x19")](i[_s("0x5")]());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("0x16")][_s("0x0")]((n=>{const{data:s}=n;if(s&&s[_s("0x20")]===t)return s.commandParams[0][_s("0x1a")]?{type:_s("0x9"),content:Yo(o,"*Format:* %0",e)}:{type:_s("0x9"),content:Yo(o,"*Remove format:* %0",e)}}))}s(_s("0xa"),Yo(o,"FORMAT_BOLD")),s(_s("0xf"),Yo(o,_s("0x7"))),s("underline",Yo(o,_s("0x13"))),s("code",Yo(o,_s("0x15"))),s(_s("0x6"),Yo(o,"FORMAT_STRIKETHROUGH")),s("subscript",Yo(o,_s("0x3"))),s("superscript",Yo(o,"FORMAT_SUPERSCRIPT"))}}const Cs=["enableCommand","change","markBlockFormat","from","has","filter","name","blockQuote","selection","model","editor","*Remove format:* %0","_descriptionFactory","parent","document","checkChild","BlockQuoteEditing","get","plugins","commandName","commands","commandParams","forceValue","format","getSelectedBlocks","locale"];var ks,As;ks=Cs,As=212,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return Cs[t-=0]};class Rs extends t.Plugin{afterInit(){const t=this[vs("0x6")],e=t[vs("0x15")];if(!t[vs("0xe")][vs("0x0")](vs("0xc")))return;const n=t[vs("0xe")][vs("0xd")]("TrackChangesEditing"),o=this[vs("0x6")][vs("0x10")][vs("0xd")](vs("0x3"));n[vs("0x16")](vs("0x3"),((e,s={})=>{const r=this.editor[vs("0x5")][vs("0xa")][vs("0x4")],i=s&&void 0!==s[vs("0x12")]?s[vs("0x12")]:!o.value;let x=[];if(i){const e=Array[vs("0x19")](r.getSelectedBlocks())[vs("0x1")]((t=>Is(t)||function(t,e){const n=e[vs("0xb")](t[vs("0x9")],vs("0x3")),o=e[vs("0xb")](["$root",vs("0x3")],t);return n&&o}(t,this[vs("0x6")].model.schema)));x=I(e,t.model)}else{const e=Array.from(r[vs("0x14")]()).filter((t=>Is(t)));x=I(e,t[vs("0x5")])}t[vs("0x5")][vs("0x17")]((()=>{for(const t of x)n[vs("0x18")](t,{commandName:vs("0x3"),commandParams:[{forceValue:i}]})}))})),n[vs("0x8")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&vs("0x3")==n[vs("0xf")]){const t=Yo(e,"ELEMENT_BLOCK_QUOTE");return n[vs("0x11")][0][vs("0x12")]?{type:vs("0x13"),content:Yo(e,"*Format:* %0",t)}:{type:vs("0x13"),content:Yo(e,vs("0x7"),t)}}}))}}function Is(t){return vs("0x3")==t.parent[vs("0x2")]}const Ss=["afterInit","enableCommand","ckbox","get","plugins"];var Ls,Ns;Ls=Ss,Ns=184,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const Ms=function(t,e){return Ss[t-=0]};class ws extends t.Plugin{[Ms("0x1")](){const t=this.editor;t.commands.get(Ms("0x3"))&&t[Ms("0x0")][Ms("0x4")]("TrackChangesEditing")[Ms("0x2")](Ms("0x3"))}}const Os=["commandParams","from","enableCommand","language","model","plugins","registerElementLabel","commandName","codeBlock","checkChild","value","label","CodeBlock","commands","registerDescriptionCallback","schema","config","rootElement","languages","document","markBlockFormat","*Remove format:* %0","ELEMENT_CODE_BLOCK","outdentCodeBlock","blockName","isLimit","find","change","*Format:* %0","formatBlock","locale","get","afterInit","filter","forceValue","editor","getSelectedBlocks","format"];var Fs,Ps;Fs=Os,Ps=145,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x1")](){const t=this[Ds("0x4")];if(!t[Ds("0xc")].has(Ds("0x13")))return;const e=t[Ds("0xc")][Ds("0x0")]("TrackChangesEditing"),n=t[Ds("0x25")],o=t[Ds("0x17")][Ds("0x0")](Ds("0xf"))[Ds("0x19")],s=t[Ds("0x14")][Ds("0x0")](Ds("0xf"));e[Ds("0x9")]("indentCodeBlock"),e[Ds("0x9")](Ds("0x1e")),e[Ds("0x9")](Ds("0xf"),((n,r={})=>{const i=t[Ds("0xb")],x=t[Ds("0xb")][Ds("0x1a")].selection,a=r&&void 0!==r[Ds("0x3")]?r[Ds("0x3")]:!s[Ds("0x11")];let c;r[Ds("0xa")]||(r[Ds("0xa")]=o[0].language),c=a?Array[Ds("0x8")](x.getSelectedBlocks())[Ds("0x2")]((t=>{return js(t)||(e=t,n=i[Ds("0x16")],!e.is(Ds("0x18"))&&!n[Ds("0x20")](e)&&n[Ds("0x10")](e.parent,Ds("0xf")));var e,n})):Array[Ds("0x8")](x[Ds("0x5")]())[Ds("0x2")]((t=>js(t)));const l=I(c,i);i[Ds("0x22")]((()=>{for(const t of l)e[Ds("0x1b")](t,{commandName:Ds("0xf"),commandParams:[{...r,forceValue:a}],formatGroupId:Ds("0x1f")})}))})),e._descriptionFactory[Ds("0xd")](Ds("0xf"),(t=>Yo(n,Ds("0x1d"),t))),e._descriptionFactory[Ds("0x15")]((t=>{const e=n.t,{type:s,data:r}=t;if(Ds("0x24")==s&&r&&"codeBlock"==r[Ds("0xe")]){const t=r.commandParams[0].language,s=e(o[Ds("0x21")]((e=>e.language===t))[Ds("0x12")]);return r[Ds("0x7")][0][Ds("0x3")]?{type:Ds("0x6"),content:Yo(n,Ds("0x23"),Yo(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:"format",content:Yo(n,Ds("0x1c"),Yo(n,Ds("0x1d"),1))}}}))}}function js(t){return Ds("0xf")==t.name}const Us=["addCommentThread","plugins","CommentsEditing","get","has","editor","afterInit","enableCommand"];var Gs,Hs;Gs=Us,Hs=397,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[zs("0x0")];t[zs("0x4")][zs("0x7")](zs("0x5"))&&t[zs("0x4")][zs("0x6")]("TrackChangesEditing")[zs("0x2")](zs("0x3"))}}var Vs=n(181);const Ks=["editing","high","$graveyard","root","editor","setSelection","unlock","unit","unbindElementFromMarkerName","delete","get","createRange","options","init","merge","addMarker:suggestion:deletion","downcastDispatcher","showSuggestionHighlights","document","enqueueChange","end","TrackChangesEditing","batch","deleteForward","forward","buffer","detach","mapper","createSelection","remove","plugins","enableCommand","getFirstRange","writer","rootName","uiElement","start","selection","removeMarker:suggestion:deletion","requires","model","markerName"];var qs,Xs;qs=Ks,Xs=368,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("0x7")](){return[Vs.Delete]}[$s("0x17")](){const t=this[$s("0xe")],e=t[$s("0x28")][$s("0x14")]($s("0x1f"));e[$s("0x29")]($s("0x13"));const n=t.commands.get("deleteForward");e[$s("0x29")]($s("0x21"),((e,o={})=>{const s=t.model[$s("0x26")](t[$s("0x8")][$s("0x1c")][$s("0x5")]);s.isCollapsed&&t.model.modifySelection(s,{direction:$s("0x22"),unit:o[$s("0x11")]});const r=s[$s("0x0")](),x=i.LiveRange.fromRange(r);let a;e(o),a=$s("0xc")==x[$s("0xd")][$s("0x2")]?t[$s("0x8")].createRange(r[$s("0x4")]):t[$s("0x8")][$s("0x15")](x[$s("0x4")],x[$s("0x1e")]),x[$s("0x24")](),t[$s("0x8")][$s("0x1d")](n[$s("0x23")][$s("0x20")],(t=>{n[$s("0x23")].lock(),t[$s("0xf")](t[$s("0x15")](a[$s("0x1e")])),n[$s("0x23")][$s("0x10")]()}))})),t[$s("0xa")][$s("0x1a")].on("addMarker:suggestion:deletion",hs(t,$s("0x18")),{priority:"high"}),t.data[$s("0x1a")].on($s("0x19"),((e,n,o)=>{o[$s("0x16")][$s("0x1b")]&&hs(t,"merge",{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:"high"}),t[$s("0xa")][$s("0x1a")].on($s("0x6"),((t,e,n)=>{const o=n[$s("0x25")].markerNameToElements(e[$s("0x9")]);if(o)for(const t of o)t.is($s("0x3"))&&(n[$s("0x25")][$s("0x12")](t,e.markerName),n[$s("0x1")][$s("0x27")](t))}),{priority:$s("0xb")})}}const Qs=["createPositionAt","ELEMENT_NUMBERED_LIST","listType","ELEMENT_","plugins","previousSibling","after","commandName","get","_LIST","selection","from","multipleBlocks","model","ELEMENT_LIST_ITEM","numberedList","push","locale","change","DocumentListUtils","*Merge:* %0","splitListItemAfter","TrackChangesEditing","getFirstRange","splitListItemBefore","hasAttribute","editor","map","accept","execute","*Change to:* %0","DocumentListEditing","slice","indentList","registerElementLabel","commands","getSelectedBlocks","mergeListItemBackward","deletion","*Format:* remove from %0","end","nodeAfter","createRange","listIndent","format","document","toUpperCase","forceValue","length","outdentList","before","ELEMENT_BULLETED_LIST","schema","afterInit","bulletedList","listItemId","value","formatBlock","markMultiRangeBlockFormat","expandListBlocksToCompleteList","markBlockFormat","registerDescriptionCallback","registerCustomCallback","isObject","nextSibling","setSelection","getAttribute","commandParams","_suggestionFactory","_descriptionFactory","documentList","findIndex","*Format:* insert into %0","mergeListItemForward","start","refresh","add","fromRange","enableCommand"];var Zs,Ys;Zs=Qs,Ys=244,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0x2e")](){const t=this[tr("0x13")];if(!t[tr("0x4c")].has(tr("0x18")))return;const e=t[tr("0xa")],n=t.plugins[tr("0x1")](tr("0xf")),o=t[tr("0x4c")].get(tr("0xc"));function s(e){return()=>{const s=t.commands[tr("0x1")](e);let r=Array.from(t[tr("0x6")][tr("0x26")][tr("0x3")][tr("0x1d")]());if(a(e)){r=o[tr("0x34")](r);const t=[];for(const e of r)o.isFirstBlockOfListItem(e)&&t.push(e);r=t}t[tr("0x6")].change((()=>{n[tr("0x33")](r,{commandName:e,commandParams:[{forceValue:!s[tr("0x31")]}],formatGroupId:tr("0x4a")},[],"documentList")}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0x4")](t);const n=e[tr("0x40")]((t=>!t[tr("0x12")](tr("0x30"))));return n>-1&&(e=e[tr("0x19")](0,n)),e}(t[tr("0x6")].document.selection[tr("0x1d")]()),s=o[o[tr("0x29")]-1],r=t[tr("0x6")][tr("0x2d")][tr("0x38")](s)?tr("0x4e"):tr("0x21"),i=t[tr("0x6")][tr("0x23")](t[tr("0x6")].createPositionAt(o[0],tr("0x2b")),t.model[tr("0x48")](s,r));t.model[tr("0xb")]((()=>{n[tr("0x35")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x4a")},function(t){const e=new Set;for(const n of t){let t=n[tr("0x39")];for(;t&&t.getAttribute(tr("0x24"))>n[tr("0x3b")](tr("0x24"));)e[tr("0x45")](t),t=t[tr("0x39")]}return Array.from(e)}(o))}))}}function x(e){return()=>{const o=t[tr("0x6")].document[tr("0x3")][tr("0x1d")]().next()[tr("0x31")],s=t.model[tr("0x48")](o,tr("0x2b")),r=t[tr("0x6")].createPositionAt(o,0),i=t[tr("0x6")][tr("0x23")](s,r);t.model.change((()=>{n[tr("0x35")](i,{commandName:e,commandParams:[],formatGroupId:"listType"})}))}}function a(e){const n=t.commands[tr("0x1")](tr("0x2f"))[tr("0x31")],o=t[tr("0x1c")][tr("0x1")](tr("0x8"))[tr("0x31")];return"numberedList"===e?n:o}n[tr("0x47")]("numberedList",s(tr("0x8"))),n[tr("0x47")](tr("0x2f"),s(tr("0x2f"))),n[tr("0x47")](tr("0x1a"),r("indentList")),n[tr("0x47")](tr("0x2a"),r(tr("0x2a"))),n[tr("0x47")](tr("0xe"),x(tr("0xe"))),n[tr("0x47")]("splitListItemBefore",x(tr("0x11"))),n._descriptionFactory[tr("0x1b")]((function(e){const n=!t[tr("0x6")][tr("0x2d")][tr("0x38")](e),o=e[tr("0x4d")],s=e[tr("0x39")],r=e[tr("0x3b")](tr("0x30")),i=!o||o[tr("0x3b")](tr("0x30"))!==r,x=!s||s[tr("0x3b")]("listItemId")!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,tr("0x7"),t))),n[tr("0x3e")][tr("0x36")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x0")]){case tr("0x2f"):r=n[tr("0x3c")][0][tr("0x28")],i=a(n[tr("0x0")]),o=tr(r?"0x41":"0x20"),i&&(o=tr("0x17")),s={type:"format",content:Yo(e,o,Yo(e,tr("0x2c")))};break;case tr("0x8"):r=n[tr("0x3c")][0][tr("0x28")],i=a(n.commandName),o=tr(r?"0x41":"0x20"),i&&(o=tr("0x17")),s={type:tr("0x25"),content:Yo(e,o,Yo(e,tr("0x49")))};break;case"indentList":o="*Indent:* %0",s={type:"format",content:Yo(e,o,Yo(e,tr("0x7")))};break;case tr("0x2a"):o=function(t){const e=t.getFirstRange();let n=e[tr("0x43")].nodeAfter;for(;n&&e.containsItem(n);){if(n.getAttribute(tr("0x24"))>0)return!1;n=n.nextSibling}return!0}(t)?Yo(e,"*Format:* remove from %0",Yo(e,function(t){const e=t[tr("0x10")]()[tr("0x43")][tr("0x22")];return tr("0x4b")+e[tr("0x3b")](tr("0x4a"))[tr("0x27")]()+tr("0x2")}(t))):Yo(e,"*Outdent:* %0",Yo(e,tr("0x7"))),s={type:tr("0x25"),content:o};break;case tr("0x1e"):case tr("0x42"):!1===n[tr("0x5")]&&(o=tr("0xd"),s={type:tr("0x1f"),content:Yo(e,o,Yo(e,"ELEMENT_LIST_ITEM"))})}return s})),n[tr("0x3d")][tr("0x37")](tr("0x32"),tr("0x3f"),tr("0x15"),(function(e,n){const o=[];for(let n of e)n.start[tr("0x22")]===n[tr("0x21")].parent&&(n=t[tr("0x6")][tr("0x23")](t.model[tr("0x48")](n[tr("0x43")].nodeAfter,0))),o.push(n);t[tr("0x6")][tr("0xb")]((e=>{const s=t[tr("0x6")].document[tr("0x3")],r=Array.from(s.getRanges())[tr("0x14")]((t=>i.LiveRange[tr("0x46")](t)));e[tr("0x3a")](o),t[tr("0x1c")][tr("0x1")](n[tr("0x0")])[tr("0x44")](),n.commandParams[tr("0x9")]({forceDefaultExecution:!0}),t[tr("0x16")](n.commandName,...n[tr("0x3c")]),e[tr("0x3a")](r);for(const t of r)t.detach()}))}))}}var nr=n(331);const or=["TrackChangesEditing","remove","parent","data","addMarker:suggestion:insertion","document","getFirstRange","options","createRange","ck-suggestion-marker-split","createPositionAt","fire","model","bind","plugins","enter","init","fromRange","markerNameToElements","editing","markInsertion","end","unbindElementFromMarkerName","split","setSelection","removeMarker:suggestion:insertion","markerName","change","downcastDispatcher","detach","getFirstPosition","writer","selection","mapper","get","nextSibling","requires"];var sr,rr;sr=or,rr=194,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("0x7")](){const t=this.editor,e=t[ir("0x5")][ir("0x19")](ir("0x1c")),n=t.commands[ir("0x19")]("enter");e.enableCommand(ir("0x6"),(()=>{t[ir("0x3")][ir("0x12")]((o=>{const s=t[ir("0x3")][ir("0x21")][ir("0x17")],r=s[ir("0x15")](),x=i.LiveRange[ir("0x8")](s[ir("0x22")]());if(n.enterBlock(o)){const n=t[ir("0x3")][ir("0x1")](r[ir("0x1e")][ir("0x1a")],0),s=o.createRange(r,n);e[ir("0xb")](s)}else o[ir("0xf")](o[ir("0x24")](x[ir("0xc")]));x[ir("0x14")](),n[ir("0x2")]("afterExecute",{writer:o})}))})),t[ir("0xa")][ir("0x13")].on(ir("0x20"),hs(t,ir("0xe")),{priority:"high"}),t[ir("0xa")][ir("0x13")].on(ir("0x10"),((t,e,n)=>{const o=n[ir("0x18")][ir("0x9")](e[ir("0x11")]);if(o)for(const t of o)t.hasClass(ir("0x0"))&&(n[ir("0x18")][ir("0xd")](t,e[ir("0x11")]),n[ir("0x16")][ir("0x1d")](t))}),{priority:"high"}),t[ir("0x1f")][ir("0x13")].on(ir("0x20"),((e,n,o)=>{o[ir("0x23")].showSuggestionHighlights&&hs(t,ir("0xe"),{showActiveMarker:!1})[ir("0x4")](this)(e,n,o)}),{priority:"high"})}}const ar=["createPositionAt","get","FindAndReplaceUtils","TrackChangesEditing","bind","getRange","createRange","_isInDeletionRange","replace","getIntersection","findPrevious","markers","model","find","enableCommand","FindAndReplaceEditing","replaceAll","findByTextCallback","string","editor","end","item","start","has","filter","handleFindCommand","getMarkersGroup","findNext","suggestion:deletion","plugins"];var cr,lr;cr=ar,lr=108,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.plugins[dr("0x5")](dr("0x1b")))return;const t=this[dr("0x1")][dr("0xb")][dr("0xd")](dr("0xf"));t[dr("0x1a")](dr("0x19"),this[dr("0x7")][dr("0x10")](this)),t[dr("0x1a")](dr("0x9")),t[dr("0x1a")](dr("0x16")),t[dr("0x1a")](dr("0x14")),t[dr("0x1a")](dr("0x1c"))}handleFindCommand(t,e,n={}){const o=this.editor[dr("0xb")][dr("0xd")](dr("0xe"));void 0!==n&&t((t=>(dr("0x0")==typeof e?o[dr("0x1d")](e,n):e)(t)[dr("0x6")]((e=>!1===this[dr("0x13")](e,t[dr("0x3")])))),n)}[dr("0x13")](t,e){const n=this[dr("0x1")][dr("0x18")][dr("0x12")](this[dr("0x1")][dr("0x18")][dr("0xc")](e,t[dr("0x4")]),this[dr("0x1")][dr("0x18")][dr("0xc")](e,t[dr("0x2")]));for(const t of this.editor.model[dr("0x17")][dr("0x8")](dr("0xa")))if(null!==n[dr("0x15")](t[dr("0x11")]()))return!0;return!1}}const gr=["label","change","commandName","fontBackgroundColor.colors","*Set font color:* %0","config","fontColor","enableCommand","_descriptionFactory","fontColor.colors","fontSize","format","_enableCommand","normalizeSizeOptions","TrackChangesEditing","markInlineFormat","plugins","*Set font background color:* %0","commandParams","editor","fontBackgroundColor","find","document","fontFamily","has","model","afterInit","FontBackgroundColorEditing","*Reset font family*","value","isCollapsed","FontFamilyEditing","*Reset font color*","FontColorEditing","selection","get","trim","toLowerCase","*Reset font background color*"];var mr,fr;mr=gr,fr=373,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:"FontSizeEditing",commandName:hr("0x1b")},{pluginName:hr("0x9"),commandName:hr("0x1")},{pluginName:hr("0xb"),commandName:hr("0x17")},{pluginName:hr("0x5"),commandName:hr("0x25")}];class br extends t.Plugin{[hr("0x4")](){const t=this[hr("0x24")].locale;for(const{pluginName:t,commandName:e}of pr)this[hr("0x24")][hr("0x21")][hr("0x2")](t)&&this[hr("0x1d")](e);this[hr("0x24")][hr("0x21")].get(hr("0x1f"))[hr("0x19")].registerDescriptionCallback((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0x1b")==o.commandName){const e=o[hr("0x23")][0][hr("0x7")];if(e){const o=n(this.editor[hr("0x21")].get("FontSize")[hr("0x1e")](this[hr("0x24")][hr("0x16")][hr("0xd")]("fontSize.options"))[hr("0x26")]((t=>t[hr("0x3")]==e)).title)[hr("0xf")]();return{type:"format",content:Yo(t,"*Set font size:* %0",o)}}return{type:"format",content:Yo(t,"*Reset font size*")}}if(hr("0x1")==o[hr("0x13")]){const e=o[hr("0x23")][0][hr("0x7")];return e?{type:hr("0x1c"),content:Yo(t,"*Set font family:* %0",e)}:{type:hr("0x1c"),content:Yo(t,hr("0x6"))}}if("fontColor"==o[hr("0x13")]){const e=o[hr("0x23")][0].value;if(e){const o=(0,s.normalizeColorOptions)(this.editor[hr("0x16")][hr("0xd")](hr("0x1a")))[hr("0x26")]((t=>t[hr("0x3")]==e));let r=e,i="";return o&&(r=o.label,i=n(r)[hr("0xf")]()),{type:hr("0x1c"),content:Yo(t,hr("0x15"),i)[hr("0xe")](),color:{value:e,title:i||r}}}return{type:"format",content:Yo(t,hr("0xa"))}}if("fontBackgroundColor"==o[hr("0x13")]){const e=o.commandParams[0].value;if(e){const o=(0,s.normalizeColorOptions)(this.editor[hr("0x16")][hr("0xd")](hr("0x14")))[hr("0x26")]((t=>t[hr("0x3")]==e));let r=e,i="";return o&&(r=o[hr("0x11")],i=n(r)[hr("0xf")]()),{type:"format",content:Yo(t,hr("0x22"),i)[hr("0xe")](),color:{value:e,title:i||r}}}return{type:hr("0x1c"),content:Yo(t,hr("0x10"))}}}}))}[hr("0x1d")](t){const e=this[hr("0x24")];e[hr("0x21")].get(hr("0x1f"))[hr("0x18")](t,((n,o={})=>{const s=e[hr("0x3")][hr("0x0")][hr("0xc")],r=o[hr("0x7")];s[hr("0x8")]?n(o):e[hr("0x3")][hr("0x12")]((()=>{const n=Array.from(s.getRanges());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0x3")]);for(const o of n)e[hr("0x21")].get(hr("0x1f"))[hr("0x20")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["get","*Remove all formatting*","backward","document","format","modifySelection","locale","getSelectedBlocks","isCollapsed","normalizeSizeOptions","getRanges","selection","createRange","length","commandName","join","fontColor","config","enableCommand","plugins","TrackChangesEditing","from","model","keys","afterInit","slice","commands","label","fontColor.colors","split","fontSize.options","toLowerCase","FontSize","createSelection","getAttributes","getFirstPosition","find","boolean","title","getAttributeProperties","commandParams","word","*Set format to:* %0","getItems","isFormatting","markInlineFormat","registerDescriptionCallback","fontBackgroundColor","pasteFormat","copyFormat"];var _r,Tr;_r=Er,Tr=111,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const yr=function(t,e){return Er[t-=0]};class Cr extends t.Plugin{[yr("0xd")](){const t=this.editor,n=t[yr("0xb")],o=n[yr("0x2a")][yr("0x0")],s=t.plugins.get("TrackChangesEditing"),r=t[yr("0x2d")],i=t[yr("0xf")][yr("0x27")](yr("0x26")),x=t[yr("0xf")][yr("0x27")](yr("0x25"));i&&x&&(s[yr("0x7")](yr("0x25"),((t,r={})=>{const i=r;n.change((()=>{const t=Array[yr("0xa")](o[yr("0x31")]()),r=o[yr("0x2f")]?[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[yr("0x17")]()){const t=e[yr("0x1c")](n);t&&t[yr("0x21")]&&(yield n)}}(t,n));for(const e of t.getRanges())for(const t of e[yr("0x20")]())!n.isBlock(t)&&o(t)&&(yield t);for(const e of t[yr("0x2e")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n.schema))||0!==Object[yr("0xc")](i)[yr("0x2")])for(const t of r)s[yr("0x22")](t,{commandName:yr("0x25"),commandParams:[i]})}))})),s._descriptionFactory[yr("0x23")]((e=>{const{data:n}=e;if(n&&yr("0x25")===n[yr("0x3")]){const e=[],o=n[yr("0x1d")][0];for(const[n,s]of Object.entries(o))e.push(Ar(t,n,s));return e.length?{type:yr("0x2b"),content:Yo(r,yr("0x1f"),e[yr("0x4")](", "))}:{type:yr("0x2b"),content:Yo(r,yr("0x28"))}}})),t[yr("0x8")][yr("0x27")](yr("0x9"))[yr("0x7")](yr("0x26")))}}function kr(t,e){const n=t[yr("0x16")](e);t[yr("0x2c")](n,{unit:yr("0x1e"),direction:yr("0x29")});const o=n[yr("0x18")]();t.modifySelection(n,{unit:yr("0x1e"),direction:"forward"});const s=n.getLastPosition();return t[yr("0x1")](o,s)}function Ar(t,e,n){const o=t.locale.t,r=e[yr("0x12")](/(?=[A-Z])/)[yr("0x4")](" "),i=o(r.charAt(0).toUpperCase()+r[yr("0xe")](1))[yr("0x14")]();if(yr("0x1a")==typeof n)return i;if(yr("0x5")===e||yr("0x24")===e){const e=(0,s.normalizeColorOptions)(t[yr("0x6")][yr("0x27")](yr("0x11")))[yr("0x19")]((t=>t[yr("0xb")]==n));return i+" ("+(e?o(e[yr("0x10")]).toLowerCase():n)+")"}if("fontSize"===e&&isNaN(parseFloat(n))){const e=t.plugins.get(yr("0x15"))[yr("0x30")](t[yr("0x6")][yr("0x27")](yr("0x13"))).find((t=>t[yr("0xb")]==n));return i+" ("+(e?o(e[yr("0x1b")])[yr("0x14")]():n)+")"}return i+" ("+n+")"}const vr=["TrackChangesEditing","_descriptionFactory","title","heading","match","model","get","registerElementLabel","parent","afterInit","*Change to:* %0","editor","document","selection","schema","ELEMENT_HEADING","HeadingEditing","config","formatBlock","commandParams","blockName","format","locale","markBlockFormat","name","paragraph","value","plugins","heading.options","checkChild"];var Rr,Ir;Rr=vr,Ir=480,function(t){for(;--t;)Rr.push(Rr.shift())}(++Ir);const Sr=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Sr("0x9")](){const t=this[Sr("0xb")],e=t[Sr("0x16")],n=t[Sr("0x11")][Sr("0x6")](Sr("0x1c"));if(!t[Sr("0x1b")].has(Sr("0x10")))return;const o=t.plugins.get(Sr("0x0"));o.enableCommand(Sr("0x3"),((e,n)=>{const s=n[Sr("0x1a")],r=Array.from(this[Sr("0xb")][Sr("0x5")][Sr("0xc")][Sr("0xd")].getSelectedBlocks()).filter((t=>{return e=t,n=s,(o=this[Sr("0xb")][Sr("0x5")][Sr("0xe")])[Sr("0x1d")](e[Sr("0x8")],n)&&!o.isObject(e)&&e[Sr("0x18")]!=n;var e,n,o}));t[Sr("0x5")].change((()=>{for(const t of r)o[Sr("0x17")](t,{commandName:Sr("0x3"),commandParams:[n],formatGroupId:Sr("0x14")},fs(t))}))}));for(const t of n)Sr("0x19")!=t[Sr("0x5")]&&o[Sr("0x1")][Sr("0x7")](t.model,(e=>{const n=Nr(t[Sr("0x5")]);return null!==n?s(e,n):r(e,t[Sr("0x2")])}));function s(t,n){return Yo(e,Sr("0xf"),[t,n])}function r(t,n){return Yo(e,"ELEMENT_HEADING_CUSTOM",[t,n])}o[Sr("0x1")].registerDescriptionCallback((t=>{const{type:o,data:i}=t;if(Sr("0x12")==o&&i&&Sr("0x3")==i.commandName){const t=i[Sr("0x13")][0][Sr("0x1a")],o=Nr(t);if(null!==o)return{type:Sr("0x15"),content:Yo(e,Sr("0xa"),s(1,o))};const x=n.find((e=>e[Sr("0x5")]===t))[Sr("0x2")];return{type:Sr("0x15"),content:Yo(e,"*Change to:* %0",r(1,x))}}}))}}function Nr(t){const e=t[Sr("0x4")](/^heading(\d+)$/);return e?e[1]:null}const Mr=["change","toLowerCase","locale","has","get","isCollapsed","commandParams","value","commandName","config","highlight.options","createRange","afterInit","markInlineFormat","editor","find","plugins","registerDescriptionCallback","title","highlight","push","*Set highlight:* %0","getLastMatchingPosition","getFirstPosition","format","getAttribute","*Remove highlight*","item","model","enableCommand","_descriptionFactory","hasAttribute","getRanges","HighlightEditing"];var wr,Or;wr=Mr,Or=281,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Pr extends t.Plugin{[Fr("0x3")](){const t=this[Fr("0x5")];if(!t.plugins[Fr("0x1c")](Fr("0x18")))return;const e=t[Fr("0x7")][Fr("0x1d")]("TrackChangesEditing");e[Fr("0x14")]("highlight",((n,o={})=>{const s=t.model.document.selection,r=s.getAttribute(Fr("0xa"));let i=o[Fr("0x20")],x=[];if(s[Fr("0x1e")]){const e=s[Fr("0xe")]();if(!s[Fr("0x16")](Fr("0xa")))return void n(o);{const n=t=>t[Fr("0x12")][Fr("0x10")]("highlight")===r,o=e[Fr("0xd")](n,{direction:"backward"}),s=e.getLastMatchingPosition(n);x=[t[Fr("0x13")][Fr("0x2")](o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0x17")]())i?x[Fr("0xb")](e):x[Fr("0xb")](...ms(Fr("0xa"),e,t.model));t[Fr("0x13")][Fr("0x19")]((()=>{for(const t of x)e[Fr("0x4")](t,{commandName:Fr("0xa"),commandParams:[{value:i}]})}))}));const n=t[Fr("0x1b")];e[Fr("0x15")][Fr("0x8")]((e=>{const{type:o,data:s}=e;if("formatInline"==o&&s&&"highlight"==s[Fr("0x21")]){const e=n.t,o=s[Fr("0x1f")][0].value;if(o){const s=t[Fr("0x0")].get(Fr("0x1"))[Fr("0x6")]((t=>t[Fr("0x13")]==o)),r=e(s.title)[Fr("0x1a")]();return{type:Fr("0xf"),content:Yo(n,Fr("0xc"),r),color:{value:s.color,title:s[Fr("0x9")]}}}return{type:Fr("0xf"),content:Yo(n,Fr("0x11"),Yo(n,"FORMAT_HIGHLIGHT"))}}}))}}const Dr=["locale","for","registerElementLabel","div","showSuggestionHighlights","insert","dataDowncast","ck-horizontal-line","get","createPositionAt","afterInit","HorizontalLineEditing","TrackChangesEditing","plugins","horizontalLine","conversion","enableCommand","has","createEmptyElement","addClass"];var Br,jr;Br=Dr,jr=106,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0x4")](){const t=this.editor;if(!t[Ur("0x7")][Ur("0xb")](Ur("0x5")))return;t[Ur("0x7")].get("TrackChangesEditing")[Ur("0xa")](Ur("0x8"));const e=t[Ur("0x7")][Ur("0x2")](Ur("0x6")),n=t[Ur("0xe")];e._descriptionFactory[Ur("0x10")](Ur("0x8"),(t=>Yo(n,"ELEMENT_HORIZONTAL_LINE",t))),t[Ur("0x9")][Ur("0xf")](Ur("0x0")).elementToStructure({model:Ur("0x8"),view:(t,{writer:e,options:n})=>{if(!n[Ur("0x12")])return null;const o=e.createContainerElement(Ur("0x11")),s=e[Ur("0xc")]("hr");return e[Ur("0xd")](Ur("0x1"),o),e[Ur("0x13")](e[Ur("0x3")](o,0),s),o},converterPriority:"high"})}}const Hr=["value","ELEMENT_HTML_EMBED","registerDescriptionCallback","has","view","locale","registerElementLabel","getSelectedElement","editing","document","editor","rawHtml","element","getAttribute","selection","afterInit","_descriptionFactory","cancel","plugins","change","commandName","htmlEmbed","rawHtmlApi","get","TrackChangesEditing","format","getCustomProperty"];var zr,Wr;zr=Hr,Wr=243,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0xf")](){const t=this[Vr("0xa")];if(!t[Vr("0x12")][Vr("0x3")]("HtmlEmbed"))return;const e=t[Vr("0x12")].get(Vr("0x18")),n=t[Vr("0x5")],o=t[Vr("0x8")][Vr("0x4")][Vr("0x9")][Vr("0xe")];e[Vr("0x10")][Vr("0x6")]("rawHtml",(t=>Yo(n,Vr("0x1"),t))),t.plugins[Vr("0x17")]("TrackChangesEditing").enableCommand("htmlEmbed",((n,s)=>{const r=t.model,i=r.document[Vr("0xe")];r[Vr("0x13")]((()=>{const t=function(t){const e=t[Vr("0x7")]();return e&&e.is(Vr("0xc"),Vr("0xb"))?t[Vr("0x7")]():null}(i);if(!t)return void n(null);const r=t[Vr("0xd")](Vr("0x0"))||"";void 0!==s&&s!==r&&(e.markBlockFormat(t,{commandName:"htmlEmbed",commandParams:[s]}),o.getSelectedElement()[Vr("0x1a")](Vr("0x16"))[Vr("0x11")]())}))})),e[Vr("0x10")][Vr("0x2")]((t=>{const{data:e}=t;if(e&&Vr("0x15")==e[Vr("0x14")]){const t=Yo(n,Vr("0x1"));return{type:Vr("0x19"),content:Yo(n,"*Change %0 content*",t)}}}))}}const qr=["getSuggestion","_suggestionFactory","markInsertion","alt","ImageTextAlternativeEditing","formatBlock","*Set image text alternative:* %0","ImageResize","end","width","has","findIndex","name","_descriptionFactory","getAttribute","registerDescriptionCallback","getSuggestionCallback","editor","chain","subType","backward","head","markBlockFormat","_findSuggestions","differ","ImageBlockEditing","caption","deletion","isBefore","plugins","schema","imageStylePostApply","fromPosition","commandName","ImageUtils","isInContent","ImageStyleEditing","forward","addObject","enableCommand","hasAttribute","format","*Reset image width*","join","insertImage","author","isEqual","side","insertion","locale","document","nodeBefore","getContainedElement","markInlineFormat","find","formatInline","getFirstRange","imageTextAlternative","normalizedStyles","getClosestSelectedImageElement","ImageCaptionUtils","value","imageTypeInline","getNearestSelectionRange","start","getSuggestions","afterInit","ELEMENT_IMAGE","_splitMarkerName","imageStyle","forceDefaultExecution","ImageInlineEditing","suggestion","getCaptionFromImageModelElement","accept","element","nodeAfter","next","commandParams","newValue","registerCustomCallback","discard","ELEMENT_CAPTION","hasSuggestion","*Set image width:* %0","detach","toNext","imageBlock","change","resizeImage","selection","createRangeOn","TrackChangesEditing","isCollapsed","*Format:* %0","registerElementLabel","title","commands","isInlineImage","convertBlockImageToInline","get","newRange","refresh","markDeletion","imageInline","model","toggleImageCaption","imageCaption","createRange","commandReversedParams","imageStylePreApply","previous","length","uploadImage","from","type","discardSuggestion","isBlockImage","convertInlineImageToBlock","imageTypeBlock"];var Xr,$r;Xr=qr,$r=440,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{[Jr("0x6a")](){const t=this[Jr("0x39")];if(!t[Jr("0x45")][Jr("0x32")]("ImageEditing"))return;const n=t[Jr("0x45")][Jr("0x14")](Jr("0xc")),o=t.plugins[Jr("0x14")](Jr("0x4a")),s={},r=t[Jr("0x59")];if(n[Jr("0x4f")](Jr("0x54")),n[Jr("0x35")][Jr("0xf")](Jr("0x7"),(t=>Yo(r,Jr("0x6b"),t))),n._descriptionFactory.registerElementLabel(Jr("0x18"),(t=>Yo(r,"ELEMENT_INLINE_IMAGE",t))),n[Jr("0x35")].registerElementLabel(Jr("0x42"),(()=>Yo(r,Jr("0x2")))),t[Jr("0x45")].has("ImageUploadEditing")&&n[Jr("0x4f")](Jr("0x21")),t.plugins[Jr("0x32")](Jr("0x41"))&&t[Jr("0x45")][Jr("0x32")](Jr("0x6f"))&&(n[Jr("0x4f")](Jr("0x66"),((e,s)=>{const r=o[Jr("0x63")](t[Jr("0x19")][Jr("0x5a")][Jr("0xa")]);t[Jr("0x19")][Jr("0x8")]((()=>{n[Jr("0x3e")](r,{commandName:Jr("0x66"),commandParams:[s]},[],"convertBlockImageToInline")}))})),n[Jr("0x4f")](Jr("0x27"),((e,s)=>{t[Jr("0x19")].change((r=>{let x=o.getClosestSelectedImageElement(t.model[Jr("0x5a")][Jr("0xa")]),a=r[Jr("0xb")](x);const c=i.LivePosition[Jr("0x48")](a[Jr("0x68")],"toPrevious"),l=i.LivePosition[Jr("0x48")](a[Jr("0x30")],Jr("0x6"));n[Jr("0x6e")]((()=>e(s))),x=o[Jr("0x63")](t[Jr("0x19")].document[Jr("0xa")]),a=r[Jr("0xb")](x);const d=r[Jr("0x1c")](c,l);c[Jr("0x5")](),l[Jr("0x5")](),n.markBlockFormat(x,{commandName:Jr("0x66"),commandParams:[]},[],"convertInlineImageToBlock"),d.start[Jr("0x44")](a[Jr("0x68")])&&n[Jr("0x2a")](r[Jr("0x1c")](d[Jr("0x68")],a[Jr("0x68")]),"convertInlineImageToBlock"),a[Jr("0x30")].isBefore(d[Jr("0x30")])&&n[Jr("0x2a")](r[Jr("0x1c")](a[Jr("0x30")],d[Jr("0x30")]),"convertInlineImageToBlock")}))})),n[Jr("0x29")][Jr("0x0")](Jr("0x2d"),Jr("0x26"),Jr("0x53"),(()=>{})),n[Jr("0x29")].registerCustomCallback("formatBlock",Jr("0x26"),Jr("0x72"),(()=>{})),n[Jr("0x29")][Jr("0x0")]("formatBlock",Jr("0x26"),Jr("0x1"),n._suggestionFactory.getSuggestionCallback(Jr("0x2d"),"",Jr("0x72"))),n[Jr("0x29")][Jr("0x0")](Jr("0x58"),"convertInlineImageToBlock",Jr("0x53"),(()=>{})),n[Jr("0x29")][Jr("0x0")](Jr("0x58"),Jr("0x26"),Jr("0x1"),(([e])=>{const o=n[Jr("0x29")][Jr("0x38")]("insertion","",Jr("0x1"));let s=e[Jr("0x68")],r=e[Jr("0x30")];const i=t.model[Jr("0x46")][Jr("0x67")](s,Jr("0x3c")),x=t[Jr("0x19")][Jr("0x46")].getNearestSelectionRange(r,Jr("0x4d"));i.isCollapsed&&(s=i.start),x[Jr("0xd")]&&(r=x[Jr("0x30")]),o([t[Jr("0x19")].createRange(s,r)])})),n[Jr("0x29")][Jr("0x0")](Jr("0x2d"),Jr("0x26"),Jr("0x3a"),c),n[Jr("0x29")][Jr("0x0")](Jr("0x58"),Jr("0x26"),"chain",c)),t[Jr("0x45")][Jr("0x32")]("ImageCaptionEditing")&&(n[Jr("0x4f")](Jr("0x1a"),((e,s)=>{const r=t[Jr("0x45")][Jr("0x14")](Jr("0x64"));let i=o[Jr("0x63")](t.model[Jr("0x5a")][Jr("0xa")]),x=r.getCaptionFromImageModelElement(i);t[Jr("0x19")][Jr("0x8")]((()=>{if(x)return void n[Jr("0x17")](t[Jr("0x19")][Jr("0xb")](x));const a=o.isBlockImage(i);e(s),i=o[Jr("0x63")](t.model.document[Jr("0xa")]),x=r[Jr("0x71")](i),n[Jr("0x2a")](t.model[Jr("0xb")](x),a?null:Jr("0x1b"))}))})),n._suggestionFactory[Jr("0x0")](Jr("0x58"),"imageCaption","chain",c)),t[Jr("0x45")][Jr("0x32")]("ImageStyleEditing")){n.enableCommand(Jr("0x6d"),((s,r)=>{const i=t[Jr("0x45")].get("Users").me,x=t[Jr("0x11")].get(Jr("0x6d"));let a=o[Jr("0x63")](t[Jr("0x19")][Jr("0x5a")].selection),c=t[Jr("0x19")][Jr("0xb")](a),l=x[Jr("0x65")];if(l==r[Jr("0x65")])return;const d={commandName:"imageStyle",commandParams:[r],formatGroupId:(0,e.uid)()};t.model[Jr("0x8")]((()=>{if(n[Jr("0x69")]().filter((t=>t[Jr("0x4b")]&&i==t[Jr("0x55")]&&(Jr("0x2d")==t.type||Jr("0x5f")==t[Jr("0x23")])&&(Jr("0x1e")==t[Jr("0x3b")]||"imageStylePostApply"==t.subType)&&t[Jr("0x60")]().isEqual(c))).forEach((t=>n[Jr("0x24")](t[Jr("0x3d")]))),a=o[Jr("0x63")](t[Jr("0x19")][Jr("0x5a")][Jr("0xa")]),c=t[Jr("0x19")].createRangeOn(a),x[Jr("0x16")](),t[Jr("0x11")][Jr("0x14")]("imageTypeInline")[Jr("0x16")](),t[Jr("0x11")].get(Jr("0x27")).refresh(),l=x.value,l!=r[Jr("0x65")])return o[Jr("0x12")](a)&&x.shouldConvertImageType(r[Jr("0x65")],a)?(s(r),a=o.getClosestSelectedImageElement(t[Jr("0x19")][Jr("0x5a")][Jr("0xa")]),void n[Jr("0x3e")](a,{...d,commandReversedParams:[{value:l||null}]},[],Jr("0x1e"))):void(o[Jr("0x25")](a)?n[Jr("0x3e")](a,d,[],"imageStylePostApply"):n[Jr("0x5d")](c,d,Jr("0x47")))}))}));for(const e of t[Jr("0x45")][Jr("0x14")](Jr("0x4c"))[Jr("0x62")])s[e[Jr("0x34")]]=e[Jr("0x10")].toLowerCase();n[Jr("0x29")][Jr("0x0")](Jr("0x2d"),"imageStylePreApply",Jr("0x53"),(()=>{})),n._suggestionFactory.registerCustomCallback(Jr("0x2d"),"imageStylePostApply","join",(()=>{})),n._suggestionFactory[Jr("0x0")](Jr("0x5f"),Jr("0x47"),Jr("0x53"),(()=>{})),n[Jr("0x29")].registerCustomCallback(Jr("0x2d"),Jr("0x1e"),Jr("0x72"),(()=>{})),n[Jr("0x29")][Jr("0x0")](Jr("0x2d"),Jr("0x1e"),Jr("0x1"),((t,e)=>{n[Jr("0x29")][Jr("0x38")]("formatBlock","",Jr("0x72"))(t,{commandName:e[Jr("0x49")],commandParams:e[Jr("0x1d")]})})),n[Jr("0x29")].registerCustomCallback("formatBlock",Jr("0x1e"),Jr("0x3a"),c)}const x=[{type:"formatBlock",subType:Jr("0x1e")},{type:"insertion",subType:Jr("0x1b")},{type:"formatBlock",subType:Jr("0x26")},{type:Jr("0x58"),subType:Jr("0x26")}];function a(t,e){const s=x[Jr("0x33")]((({type:e,subType:n})=>t.type==e&&t[Jr("0x3b")]==n)),r=x[Jr("0x33")]((({type:t,subType:n})=>e[Jr("0x23")]==t&&e[Jr("0x3b")]==n));if(s<0||r<0)return!1;const i=t.getFirstRange(),a=e[Jr("0x60")]();if((0==s||1==s)&&2==r&&i.isIntersecting(a))return!0;if(2==s&&3==r){const t=n[Jr("0x3f")](i,Jr("0x58")).filter((({suggestion:t,meta:e})=>e.isOwn&&"convertInlineImageToBlock"==t.subType));if(t[Jr("0x20")]>1&&a[Jr("0x30")].isEqual(i.start))return!0;if(1==t[Jr("0x20")]&&(i[Jr("0x68")].isEqual(a[Jr("0x30")])||i[Jr("0x30")][Jr("0x56")](a.start)))return!0}if(3==s&&3==r&&i.start[Jr("0x44")](a[Jr("0x68")])){const t=i.end[Jr("0x74")],e=a[Jr("0x68")][Jr("0x5b")];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("0x5a")].registerPostFixer((()=>{let e=!1;const s=Array[Jr("0x22")](t[Jr("0x19")][Jr("0x5a")][Jr("0x40")].getChangedMarkers());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Jr("0x6c")](t);if(Jr("0x70")==s&&n[Jr("0x3")](a)){if("formatBlock"==i&&(Jr("0x1e")==x||Jr("0x47")==x)){const t=n[Jr("0x28")](a);if(r[Jr("0x15")]){const s=t[Jr("0x60")]()[Jr("0x5c")]();if(o.isBlockImage(s))continue;n[Jr("0x24")](t),e=!0}}if(Jr("0x58")==i&&Jr("0x1b")==x&&!r[Jr("0x15")]){const t=n[Jr("0x28")](a);t[Jr("0x75")]&&t[Jr("0x75")][Jr("0x4b")]&&(n[Jr("0x24")](t[Jr("0x75")]),e=!0)}}}return e})),t[Jr("0x45")][Jr("0x32")](Jr("0x2f"))&&n[Jr("0x4f")]("resizeImage",((e,s)=>{const r=o.getClosestSelectedImageElement(t[Jr("0x19")][Jr("0x5a")][Jr("0xa")]);r[Jr("0x36")]("width")!=s.width&&t.model[Jr("0x8")]((()=>{n[Jr("0x3e")](r,{commandName:"resizeImage",commandParams:[s]})}))})),t.plugins.has(Jr("0x2c"))&&n.enableCommand(Jr("0x61"),((e,s)=>{const r=o[Jr("0x63")](t[Jr("0x19")][Jr("0x5a")][Jr("0xa")]);(r[Jr("0x50")]("alt")?r.getAttribute(Jr("0x2b")):"")!=s[Jr("0x77")]&&t[Jr("0x19")].change((()=>{n[Jr("0x3e")](r,{commandName:Jr("0x61"),commandParams:[s]})}))})),n._descriptionFactory[Jr("0x37")]((t=>{if(x[Jr("0x5e")]((({type:e,subType:n})=>t[Jr("0x23")]==e&&t[Jr("0x3b")]==n)))return t[Jr("0x1f")]?{}:void 0})),n[Jr("0x35")].registerDescriptionCallback((t=>{if(Jr("0x58")==t[Jr("0x23")]||Jr("0x43")==t.type){const e=t[Jr("0x5c")]();if(e&&e.is(Jr("0x73"),Jr("0x42")))return{type:"insertion"==t[Jr("0x23")]?Jr("0x4e"):"removeObject",element:e,quantity:1}}})),n._descriptionFactory[Jr("0x37")]((t=>Jr("0x2d")==t[Jr("0x23")]&&Jr("0x26")==t[Jr("0x3b")]?{type:"format",content:"Inline image to block image"}:Jr("0x2d")==t[Jr("0x23")]&&Jr("0x13")==t.subType?{type:Jr("0x51"),content:"Block image to inline image"}:void 0)),n._descriptionFactory.registerDescriptionCallback((t=>{const{data:e}=t;if(e){if(Jr("0x6d")==e.commandName){const t=e.commandParams[0].value;return n=Jr("0x57")===t?Yo(r,"FORMAT_SIDE_IMAGE"):s[t]||t,{type:"format",content:Yo(r,Jr("0xe"),n)}}if(Jr("0x61")==e.commandName){const t=e[Jr("0x76")][0][Jr("0x77")];return t?{type:"format",content:Yo(r,Jr("0x2e"),'"'+t+'"')}:{type:"format",content:Yo(r,"*Remove image text alternative*")}}if(Jr("0x9")==e.commandName){const t=e[Jr("0x76")][0][Jr("0x31")];return t?{type:"format",content:Yo(r,Jr("0x4"),t)}:{type:Jr("0x51"),content:Yo(r,Jr("0x52"))}}}var n}))}}const Zr=["author","getContainedElement","commandParams","discard","has","_descriptionFactory","src","getSuggestions","TrackChangesEditing","commandName","replaceImageSource","accept","Users","getSelectedElement","*Format:* replace image URL","_suggestionFactory","selection","getAttribute","markBlockFormat","format","document","editor","handleReplaceImageCommand","get","getSuggestionCallback","plugins","data","handleSuggestionDescription","formatBlock","registerCustomCallback","change","enableCommand","model"];var Yr,ti;Yr=Zr,ti=361,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("0x17")].plugins[ei("0x6")]("ImageEditing"))return;const t=this[ei("0x17")][ei("0x1b")][ei("0x19")](ei("0xa"));t[ei("0x0")](ei("0xc"),((t,e)=>this[ei("0x18")](t,e))),t[ei("0x11")][ei("0x1f")]("formatBlock",ei("0xc"),ei("0xd"),t[ei("0x11")][ei("0x1a")](ei("0x1e"),null,"discard")),t._suggestionFactory[ei("0x1f")]("formatBlock","replaceImageSource",ei("0x5"),t[ei("0x11")][ei("0x1a")]("formatBlock",null,ei("0xd"))),t[ei("0x7")].registerDescriptionCallback((t=>this[ei("0x1d")](t)))}[ei("0x18")](t,e){const n=this.editor[ei("0x1b")].get(ei("0xa")),o=this[ei("0x17")][ei("0x1")][ei("0x16")][ei("0x12")][ei("0xf")]();this[ei("0x17")][ei("0x1")][ei("0x20")]((()=>{let s=o[ei("0x13")](ei("0x8"));const r=this[ei("0x17")][ei("0x1b")][ei("0x19")](ei("0xe")).me;for(const t of n[ei("0x9")]({skipNotAttached:!0})){const e=t[ei("0x3")]();if(ei("0xc")===t.subType&&e===o){t[ei("0x2")]!==r&&t[ei("0x5")](),s=t[ei("0x1c")][ei("0x4")][0].source;break}}t(e),n[ei("0x14")](o,{commandName:ei("0xc"),commandParams:[{source:s}]},[],ei("0xc"))}))}handleSuggestionDescription(t){const{data:e}=t;if(e&&"replaceImageSource"===e[ei("0xb")]){const t=ei("0x10");return{type:ei("0x15"),content:Yo(this[ei("0x17")].locale,t)}}}}const oi=["trackChanges","_setSuggestionData","track_changes","commands","bind","afterInit","lowest","plugins","dataInsert","editor","high","get","collaboration_features","TrackChangesEditing","enableCommand","importWord","forEach","Users","value","_trackChangesExecuted","execute","_handleImportedData","_trackChangesValueDuringImport","listenTo"];var si,ri;si=oi,ri=445,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("0x9")]=!1,this._trackChangesExecuted=!1}[ii("0x10")](){const t=this[ii("0x14")],e=t[ii("0xe")][ii("0x16")](ii("0x2")),n=t.commands[ii("0x16")](ii("0xb"));e&&(e.on(ii("0x7"),((t,[,e])=>{this[ii("0x9")]=n[ii("0x5")],e[ii("0x17")][ii("0xd")]=!this[ii("0x9")]}),{priority:ii("0x15")}),this[ii("0xa")](e,ii("0x13"),this[ii("0x8")][ii("0xf")](this)),this.listenTo(e,ii("0x13"),(()=>{this[ii("0x6")]&&(n[ii("0x7")](),this._trackChangesExecuted=!1)}),{priority:ii("0x11")}),t.plugins[ii("0x16")](ii("0x0"))[ii("0x1")](ii("0x2")))}[ii("0x8")](t,e){const{suggestions:n}=e,o=this[ii("0x14")][ii("0xe")].get(ii("0xb")),s=o.value;this._trackChangesValueDuringImport!==s&&(o[ii("0x7")](),this._trackChangesExecuted=!0),n&&n[ii("0x3")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0x14")][ii("0x12")][ii("0x16")](ii("0x4")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0x2")}}};this[ii("0x14")][ii("0x12")].get(ii("0x0"))[ii("0xc")](s)}))}}const ai=["document","editor","markBlockFormat","_descriptionFactory","change","has","format","checkAttribute","locale","getItemLabel","filter","IndentEditing","getItems","commandName","indentBlock","outdentBlock","TrackChangesEditing","indent","selection","outdent","schema","plugins","enableCommand","from","get","registerDescriptionCallback","model"];var ci,li;ci=ai,li=233,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.editor,e=t[di("0x4")][di("0x7")](di("0x1a"));t[di("0x4")][di("0xf")](di("0x15"))&&(e.enableCommand(di("0x0")),e[di("0x5")](di("0x2")));const n=t[di("0x12")];if(t.plugins[di("0xf")]("IndentBlock")){for(const n of[di("0x18"),di("0x19")])e[di("0x5")](n,(()=>{const o=Array[di("0x6")](this[di("0xb")][di("0x9")][di("0xa")][di("0x1")].getSelectedBlocks())[di("0x14")]((t=>this[di("0xb")][di("0x9")][di("0x3")][di("0x11")](t,"blockIndent")));t[di("0x9")][di("0xe")]((()=>{for(const t of o)e[di("0xc")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:di("0x18")})}))}));e[di("0xd")][di("0x8")]((t=>{const{data:o}=t;if(!o)return;if(di("0x18")!=o.commandName&&di("0x19")!=o[di("0x17")])return;const s=t[di("0x16")]()[0],r=e[di("0xd")][di("0x13")](s);return di("0x18")==o[di("0x17")]?{type:"format",content:Yo(n,"*Indent:* %0",r)}:"outdentBlock"==o[di("0x17")]?{type:di("0x10"),content:Yo(n,"*Outdent:* %0",r)}:void 0}))}}}var gi,mi,fi=["init","get","enableCommand","requires","plugins","input"];gi=fi,mi=281,function(t){for(;--t;)gi.push(gi.shift())}(++mi);var hi=function(t,e){return fi[t-=0]};class pi extends t.Plugin{static get[hi("0x4")](){return[Vs.Input]}[hi("0x1")](){this.editor[hi("0x5")][hi("0x2")]("TrackChangesEditing")[hi("0x3")](hi("0x0"))}}const bi=["linkHref","enableCommand","plugins","getAttribute","*Set link:* %0","afterInit","getFirstPosition","format","LinkEditing","model","getFirstRange","locale","selection","change","unlink","getRanges","editor","link","has","_descriptionFactory","markInlineFormat","from","document","hasAttribute","isCollapsed","registerDescriptionCallback","commandParams","get"];var Ei,_i;Ei=bi,_i=161,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class yi extends t.Plugin{[Ti("0xc")](){const t=this[Ti("0x17")];if(!t[Ti("0x9")][Ti("0x19")](Ti("0xf")))return;const e=t[Ti("0x9")][Ti("0x6")]("TrackChangesEditing");e[Ti("0x8")]("link",((n,o)=>{const s=t[Ti("0x10")][Ti("0x1")][Ti("0x13")];let r=[];if(s[Ti("0x3")]){if(!s[Ti("0x2")](Ti("0x7")))return void n(o);{const e=(0,Vs.findAttributeRange)(s[Ti("0xd")](),"linkHref",s.getAttribute("linkHref"),t[Ti("0x10")]);r=[e]}}else r=Array[Ti("0x0")](s[Ti("0x16")]());t.model[Ti("0x14")]((()=>{for(const t of r)e.markInlineFormat(t,{commandName:Ti("0x18"),commandParams:[o]})}))})),e[Ti("0x8")]("unlink",(()=>{const n=this.editor.model,o=n[Ti("0x1")][Ti("0x13")];n[Ti("0x14")]((()=>{let n=[];n=o[Ti("0x3")]?[(0,Vs.findAttributeRange)(o[Ti("0xd")](),"linkHref",o[Ti("0xa")](Ti("0x7")),t[Ti("0x10")])]:ms(Ti("0x7"),o[Ti("0x11")](),t[Ti("0x10")]);for(const t of n)e[Ti("0x1b")](t,{commandName:Ti("0x15"),commandParams:[]})}))})),e[Ti("0x1a")][Ti("0x4")]((e=>{const{data:n}=e,o=t[Ti("0x12")];if(n){if(Ti("0x18")==n.commandName){const t=n[Ti("0x5")][0];return{type:Ti("0xe"),content:Yo(o,Ti("0xb"),'"'+t+'"')}}return"unlink"==n.commandName?{type:Ti("0xe"),content:Yo(o,"*Remove link*")}:void 0}}))}}const Ci=["TodoListEditing","bulleted","*Indent:* %0","listIndent","locale","value","enableCommand","TrackChangesEditing","getSelectedBlocks","previousSibling","document","blockName","_selectedElements","from","ELEMENT_LIST_ITEM","before","listItem","afterInit","plugins","numbered","name","commands","*Change to:* %0","get","todoList","checkTodoList","ListEditing","getAttribute","length","registerElementLabel","nextSibling","parent","commandName","_descriptionFactory","markBlockFormat","ELEMENT_NUMBERED_LIST","model","List","bulletedList","filter","format","createPositionAt","replace","todoListChecked","execute","todo","commandParams","element","*Uncheck item*","has","outdentList","*Check item*","isObject","editor","add","end","findIndex","numberedList","selection","schema","change"];var ki,Ai;ki=Ci,Ai=482,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return Ci[t-=0]};class Ri extends t.Plugin{[vi("0x17")](){const t=this[vi("0x3b")],e=t[vi("0xa")];if(!t[vi("0x18")].has(vi("0x20")))return;const n=t.plugins[vi("0x1d")](vi("0xd")),o=t[vi("0x18")][vi("0x37")](vi("0x6"));function s(e){return()=>{const o=t.model[vi("0x10")].selection,s=t[vi("0x1b")].get(e);if(s[vi("0xb")])return void t[vi("0x32")]("paragraph",{});const r=e.slice(0,-4),i=function(t,e,n){let o=Array[vi("0x13")](t).filter((t=>{return e=t,(o=n).checkChild(e[vi("0x25")],"listItem")&&!o[vi("0x3a")](e);var e,o}));o=o[vi("0x2d")]((t=>!t.is(vi("0x35"),vi("0x16"))||t[vi("0x21")]("listType")!=e));const s=new Set;for(const t of o)t.is("element",vi("0x16"))?s[vi("0x3c")](Ii(t)):s[vi("0x3c")](t);return Array[vi("0x13")](s)}(o[vi("0xe")](),r,t[vi("0x2a")][vi("0x4")]);t[vi("0x2a")].change((()=>{for(const t of i)n[vi("0x28")](t,{commandName:e,commandParams:[{forceValue:!s.value}],formatGroupId:vi("0x11")},Si(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[vi("0x13")](t);const n=e[vi("0x1")]((t=>"listItem"!=t.name));return n>-1&&(e=e.slice(0,n)),e}(t[vi("0x2a")][vi("0x10")][vi("0x3")][vi("0xe")]()),s=t.model.createRange(t[vi("0x2a")][vi("0x2f")](o[0],vi("0x15")),t.model.createPositionAt(o[o[vi("0x22")]-1],vi("0x0")));t[vi("0x2a")][vi("0x5")]((()=>{n[vi("0x28")](s,{commandName:e,commandParams:[],formatGroupId:"listIndent"},function(t){const e=new Set;for(const n of t){let t=n[vi("0x24")];for(;t&&t[vi("0x21")](vi("0x9"))>n[vi("0x21")]("listIndent");)e[vi("0x3c")](t),t=t[vi("0x24")]}return Array[vi("0x13")](e)}(o))}))}}n[vi("0xc")]("numberedList",s(vi("0x2"))),n[vi("0xc")](vi("0x2c"),s(vi("0x2c"))),o&&n[vi("0xc")]("todoList",s(vi("0x1e"))),n.enableCommand("indentList",r("indentList")),n[vi("0xc")](vi("0x38"),r("outdentList")),o&&n.enableCommand(vi("0x1f"),(()=>{const e=t[vi("0x1b")][vi("0x1d")](vi("0x1f")),o=Array[vi("0x13")](e[vi("0x12")]);o[vi("0x2d")]((t=>t[vi("0x21")](vi("0x31"))!=e.value)),t[vi("0x2a")][vi("0x5")]((()=>{for(const t of o)n.markBlockFormat(t,{commandName:vi("0x1f"),commandParams:[{forceValue:!e[vi("0xb")]}]})}))})),n[vi("0x27")][vi("0x23")](vi("0x16"),(t=>Yo(e,vi("0x14"),t))),n[vi("0x27")].registerDescriptionCallback((t=>{const{data:n}=t;if(n){if(vi("0x2")==n[vi("0x26")]||vi("0x2c")==n[vi("0x26")]||vi("0x1e")==n.commandName)switch(n[vi("0x26")][vi("0x30")](vi("0x2b"),"")){case vi("0x7"):return o(Yo(e,"ELEMENT_BULLETED_LIST"));case vi("0x19"):return o(Yo(e,vi("0x29")));case vi("0x33"):return o(Yo(e,"ELEMENT_TODO_LIST"))}if("indentList"==n[vi("0x26")])return{type:vi("0x2e"),content:Yo(e,vi("0x8"),Yo(e,vi("0x14")))};if(vi("0x38")==n[vi("0x26")])return{type:"format",content:Yo(e,"*Outdent:* %0",Yo(e,vi("0x14")))};if(vi("0x1f")==n[vi("0x26")])return n[vi("0x34")][0].forceValue?{type:vi("0x2e"),content:Yo(e,vi("0x39"))}:{type:vi("0x2e"),content:Yo(e,vi("0x36"))}}function o(t){return{type:vi("0x2e"),content:Yo(e,vi("0x1c"),t)}}}))}}function Ii(t){const e=t[vi("0x21")]("listIndent");if(0==e)return t;let n=t;for(;t.previousSibling&&t[vi("0xf")].is(vi("0x35"),vi("0x16"));){const o=t[vi("0xf")].getAttribute(vi("0x9"));if(o==e)n=t[vi("0xf")];else if(o<e)break;t=t[vi("0xf")]}return n}function Si(t){const e=[];if(t.is(vi("0x35"),vi("0x16"))&&t.getAttribute(vi("0x9"))>0){let n=t.nextSibling;for(;n&&vi("0x16")==n[vi("0x1a")]&&n.getAttribute(vi("0x9"))==t[vi("0x21")](vi("0x9"));)e.push(n),n=n[vi("0x24")]}return e}const Li=["ListPropertiesEditing","has","toUpperCase","registerDescriptionCallback","selection","_getSuggestionBlocksForListStyle","getAttribute","model","bind","listStyle","styles","push","_LIST_","type","ListUtils","_getTranslationKeyForListStyle","_descriptionFactory","editor","map","_getSuggestionBlocks","commandParams","handleDescriptions","createPositionAt","listType","*Change to:* %0","forward","change","backward","unshift","afterInit","flat","listReversed","getSiblingNodes","listStart","commandName","handleListStartCommand","plugins","getFirstPosition","listItem","locale","getSelectedBlocks","list.properties","createRange","length","filter","parent","element","getLastPosition","get","handleListReversedCommand","startIndex","before","reversed","markMultiRangeBlockFormat","TrackChangesEditing","handleListStyleCommand","replace","enableCommand","format","from"];var Ni,Mi;Ni=Li,Mi=418,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[wi("0x1f")](){if(!this[wi("0x13")].plugins[wi("0x3")](wi("0x2")))return;const t=this[wi("0x13")].config.get(wi("0x2b")),e=this[wi("0x13")].plugins[wi("0x32")](wi("0x38"));t[wi("0xc")]&&e[wi("0x3b")](wi("0xb"),this[wi("0x39")][wi("0xa")](this)),t.reversed&&e[wi("0x3b")](wi("0x21"),this[wi("0x33")][wi("0xa")](this)),t[wi("0x34")]&&e[wi("0x3b")]("listStart",this[wi("0x25")][wi("0xa")](this)),e[wi("0x12")][wi("0x5")](this[wi("0x17")][wi("0xa")](this))}[wi("0x39")](t,e={}){const n=this[wi("0x13")][wi("0x26")][wi("0x32")](wi("0x38")),o=this._getSuggestionBlocksForListStyle();this.editor[wi("0x9")][wi("0x1c")]((()=>{n[wi("0x37")](o,{commandName:wi("0xb"),commandParams:[{type:e[wi("0xf")]}],formatGroupId:wi("0xb")})}))}[wi("0x33")](t,e={}){const n=this[wi("0x13")][wi("0x26")][wi("0x32")](wi("0x38")),o=this[wi("0x15")]((t=>t.is(wi("0x30"),"listItem")&&"numbered"===t[wi("0x8")](wi("0x19"))));if(o[wi("0x2d")]<1)return;const s=o[wi("0x14")]((t=>this.editor[wi("0x9")][wi("0x2c")](this[wi("0x13")][wi("0x9")].createPositionAt(t,wi("0x35")),this.editor[wi("0x9")][wi("0x18")](t,0))));this[wi("0x13")][wi("0x9")].change((()=>{n[wi("0x37")](s,{commandName:"listReversed",commandParams:[{reversed:e[wi("0x36")]}],formatGroupId:wi("0x21")})}))}[wi("0x25")](t,e={}){const n=this[wi("0x13")].plugins[wi("0x32")](wi("0x38")),o=this._getSuggestionBlocks((t=>t.is("element",wi("0x28"))&&"numbered"===t.getAttribute(wi("0x19"))));if(o.length<1)return;const s=o[wi("0x14")]((t=>this[wi("0x13")][wi("0x9")][wi("0x2c")](this[wi("0x13")][wi("0x9")][wi("0x18")](t,wi("0x35")),this[wi("0x13")][wi("0x9")][wi("0x18")](t,0))));this[wi("0x13")][wi("0x9")][wi("0x1c")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:wi("0x23"),commandParams:[{startIndex:e.startIndex}],formatGroupId:"listStart"})}))}[wi("0x17")](t){const e=this.editor[wi("0x29")],{data:n}=t;if(!n)return;let o,s;switch(n[wi("0x24")]){case wi("0xb"):o=wi("0x1a"),s={type:wi("0x0"),content:Yo(e,o,Yo(e,this[wi("0x11")](n[wi("0x16")][0][wi("0xf")])))};break;case wi("0x21"):o=n[wi("0x16")][0][wi("0x36")]?"*Format:* set order to reversed":"*Format:* set order to regular",s={type:wi("0x0"),content:Yo(e,o)};break;case"listStart":o="*Format:* set start index to %0",s={type:wi("0x0"),content:Yo(e,o,n[wi("0x16")][0][wi("0x34")])}}return s}[wi("0x7")](){var t,e,n,o;const s=this.editor.plugins[wi("0x32")](wi("0x10"));let r=Array[wi("0x1")](this.editor[wi("0x9")].document[wi("0x6")][wi("0x2a")]());return(null===(t=r[0])||void 0===t?void 0:t.is(wi("0x30"),"listItem"))&&r[wi("0x1e")](...s[wi("0x22")](this[wi("0x13")][wi("0x9")].document[wi("0x6")][wi("0x27")](),wi("0x1d"))),(null===(e=r[r.length-1])||void 0===e?void 0:e.is(wi("0x30"),"listItem"))&&r[wi("0xd")](...s[wi("0x22")](this.editor.model.document.selection[wi("0x31")](),wi("0x1b"))),r=[...new Set(r)],(null===(o=null===(n=this[wi("0x13")][wi("0x9")].document[wi("0x6")][wi("0x27")]())||void 0===n?void 0:n[wi("0x2f")])||void 0===o?void 0:o.is(wi("0x30"),wi("0x28")))&&(r=r[wi("0x2e")]((t=>t.is(wi("0x30"),wi("0x28"))))),r}[wi("0x15")](t){const e=this.editor[wi("0x26")].get(wi("0x10"));let n=Array.from(this[wi("0x13")].model.document[wi("0x6")][wi("0x2a")]()).filter(t)[wi("0x14")]((t=>{const n=this[wi("0x13")][wi("0x9")][wi("0x18")](t,0);return[...e.getSiblingNodes(n,wi("0x1d")),...e[wi("0x22")](n,wi("0x1b"))]}))[wi("0x20")]();return n=[...new Set(n)],n}_getTranslationKeyForListStyle(t){return"ELEMENT_"+this[wi("0x13")].plugins[wi("0x32")](wi("0x10")).getListTypeFromListStyleType(t)[wi("0x4")]()+wi("0xe")+t[wi("0x4")]()[wi("0x3a")](/-/g,"_")}}const Fi=["plugins","options","attribute:url:media","elementToElement","get","locale","registerElementLabel","showSuggestionHighlights","conversion","dataDowncast","for","stop","data","mediaEmbed","MediaEmbedEditing","createEmptyElement","media","afterInit","div","high"];var Pi,Di;Pi=Fi,Di=288,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.editor;if(!t[Bi("0xc")].has(Bi("0x6")))return;const e=t[Bi("0xc")][Bi("0x10")]("TrackChangesEditing"),n=t[Bi("0x11")];e.enableCommand(Bi("0x5")),e._descriptionFactory[Bi("0x12")]("media",(t=>Yo(n,"ELEMENT_MEDIA",t))),t[Bi("0x0")][Bi("0x2")](Bi("0x1"))[Bi("0xf")]({model:Bi("0x8"),view:(t,{writer:e,options:n})=>{if(n[Bi("0x13")])return e[Bi("0x7")](Bi("0xa"))},converterPriority:Bi("0xb")}),t[Bi("0x4")].downcastDispatcher.on(Bi("0xe"),((t,e,n)=>{n[Bi("0xd")][Bi("0x13")]&&t[Bi("0x3")]()}),{priority:"high"})}}const Ui=["plugins","TrackChangesEditing","afterInit","MentionEditing","enableCommand"];var Gi,Hi;Gi=Ui,Hi=457,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{[zi("0x0")](){const t=this.editor;t[zi("0x3")].has(zi("0x1"))&&t.plugins.get(zi("0x4"))[zi("0x2")]("mention")}}const Vi=["afterInit","TrackChangesEditing","locale","PageBreakEditing","pageBreak","registerElementLabel","has","get","_descriptionFactory","plugins"];var Ki,qi;Ki=Vi,qi=172,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{[Xi("0x8")](){const t=this.editor;if(!t.plugins[Xi("0x4")](Xi("0x1")))return;t[Xi("0x7")][Xi("0x5")]("TrackChangesEditing").enableCommand(Xi("0x2"));const e=t.plugins.get(Xi("0x9")),n=t[Xi("0x0")];e[Xi("0x6")][Xi("0x3")](Xi("0x2"),(t=>Yo(n,"ELEMENT_PAGE_BREAK",t)))}}const Ji=["writer","isBlock","addMarker:suggestion:insertion","schema","paragraph","downcastDispatcher","selection","options","insert","_descriptionFactory","start","TrackChangesEditing","markerRange","getSelectedBlocks","isLimit","name","plugins","filter","span","ELEMENT_PARAGRAPH","editor","markBlockFormat","registerDescriptionCallback","consumable","blockName","get","registerElementLabel","type","markerName","model","has","enableCommand","*Insert:* %0","insertParagraph","getItemLabel","ck-suggestion-marker-split","activeMarkers","consume","isTouching","end","insertion","commandName","$text","createUIElement","showSuggestionHighlights","ck-suggestion-marker--active","locale","addClass","includes","editing","nodeAfter","mapper","highest","checkChild","isObject"];var Qi,Zi;Qi=Ji,Zi=150,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("0x23")];if(!t[Yi("0x1f")][Yi("0x2d")]("Paragraph"))return;const e=t[Yi("0x6")],n=t[Yi("0x1f")].get(Yi("0x1a"));n[Yi("0x18")][Yi("0x29")](Yi("0x13"),(t=>Yo(e,Yi("0x22"),t))),n.enableCommand(Yi("0x13"),((e,o={})=>{const s=t[Yi("0x2c")].document,r=o[Yi("0x15")]||s[Yi("0x15")],i=Array.from(r[Yi("0x1c")]())[Yi("0x20")]((t=>{return e=t,(n=this[Yi("0x23")][Yi("0x2c")][Yi("0x12")])[Yi("0xd")](e.parent,Yi("0x13"))&&!n[Yi("0xe")](e)&&Yi("0x13")!=e.name;var e,n}));t.model.change((()=>{for(const t of i)n[Yi("0x24")](t,{commandName:Yi("0x13"),commandParams:[],formatGroupId:Yi("0x27")},fs(t))}))})),n[Yi("0x18")][Yi("0x25")]((t=>{const{data:n}=t;if(n&&Yi("0x13")==n[Yi("0x1")])return{type:"format",content:Yo(e,"*Change to:* %0",Yo(e,"ELEMENT_PARAGRAPH"))}})),n[Yi("0x2e")](Yi("0x30")),t[Yi("0x9")].downcastDispatcher.on(Yi("0x11"),ex(t),{priority:"highest"}),t.data[Yi("0x14")].on(Yi("0x11"),((e,n,o)=>{o[Yi("0x16")][Yi("0x4")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0xc")});const o=n._descriptionFactory;o[Yi("0x25")]((n=>{if(Yi("0x0")!==n[Yi("0x2a")])return;const{start:s,end:r}=n.getFirstRange();if(!s[Yi("0x35")](r)||!s[Yi("0xa")])return;const i=t[Yi("0x2c")].schema,x=s[Yi("0xa")];return i[Yi("0x10")](x)&&!i[Yi("0x1d")](x)&&i[Yi("0xd")](x,Yi("0x2"))?{type:Yi("0x0"),content:Yo(e,Yi("0x2f"),o[Yi("0x31")](x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Yi("0x1f")][Yi("0x28")]("TrackChangesEditing"),i=o[Yi("0x1b")][Yi("0x19")],x=o.markerRange[Yi("0x36")],a=t[Yi("0x2c")][Yi("0x12")];if(!i[Yi("0x35")](x)||!i[Yi("0xa")])return;const c=i.nodeAfter;if(a[Yi("0x10")](c)&&!a[Yi("0x1d")](c)&&a.checkChild(c,Yi("0x2"))){if(!s[Yi("0x26")][Yi("0x34")](o[Yi("0x1b")],n[Yi("0x1e")]))return;const t=s[Yi("0xf")][Yi("0x3")](Yi("0x21"),{class:Yi("0x32")}),i=s.mapper.toViewPosition(x);e&&r[Yi("0x33")][Yi("0x8")](o[Yi("0x2b")])&&s.writer[Yi("0x7")](Yi("0x5"),t),s.writer[Yi("0x17")](i,t),s[Yi("0xb")].bindElementToMarker(t,o[Yi("0x2b")])}}}const nx=["plugins","format","markInlineFormat","has","getAttributeProperties","getRanges","change","from","model","removeFormat","TrackChangesEditing","document","afterInit","isFormatting","commandName","createRangeOn","enableCommand","editor","registerDescriptionCallback","locale","schema","isCollapsed","getItems","_descriptionFactory"];var ox,sx;ox=nx,sx=112,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[rx("0x14")](){const t=this[rx("0x1")];if(!t[rx("0x8")][rx("0xb")]("RemoveFormatEditing"))return;const e=t[rx("0x8")].get(rx("0x12"));e[rx("0x0")](rx("0x11"),(n=>{const o=t[rx("0x10")][rx("0x13")].selection;o[rx("0x5")]?n():t[rx("0x10")][rx("0xe")]((()=>{const n=Array[rx("0xf")](o[rx("0xd")]());for(const o of n)for(const n of o[rx("0x6")]())xx(n,t[rx("0x10")][rx("0x4")])&&e[rx("0xa")](t[rx("0x10")][rx("0x17")](n),{commandName:rx("0x11"),commandParams:[]})}))})),e[rx("0x7")][rx("0x2")]((e=>{const{data:n}=e;if(n&&"removeFormat"==n[rx("0x16")])return{type:rx("0x9"),content:Yo(t[rx("0x3")],"*Remove all formatting*")}}))}}function xx(t,e){for(const[n]of t.getAttributes()){const t=e[rx("0xc")](n);if(t&&t[rx("0x15")])return!0}return!1}const ax=["get","discardSuggestion","acceptSelectedSuggestions","discardAllSuggestions","plugins","acceptSuggestion","goToNextRestrictedEditingException","acceptAllSuggestions","has","enableCommand","goToPreviousRestrictedEditingException","RestrictedEditingModeEditing","TrackChangesEditing"];var cx,lx;cx=ax,lx=342,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const dx=function(t,e){return ax[t-=0]};class ux extends t.Plugin{afterInit(){const t=this.editor;if(!t[dx("0x0")][dx("0x4")](dx("0x7")))return;const e=t[dx("0x0")][dx("0x9")](dx("0x8"));e[dx("0x5")](dx("0x6")),e.enableCommand(dx("0x2"));const n=t[dx("0x0")][dx("0x9")](dx("0x7"));n[dx("0x5")]("trackChanges"),n.enableCommand(dx("0x1")),n[dx("0x5")](dx("0xa")),n[dx("0x5")](dx("0x3")),n[dx("0x5")](dx("0xc")),n[dx("0x5")](dx("0xb")),n[dx("0x5")]("discardSelectedSuggestions")}}const gx=["softBreak","markerName","addMarker:suggestion","ck-suggestion-marker--active","addMarker:suggestion:insertion","toViewPosition","init","showSuggestionHighlights","ck-suggestion-marker-","consumable","writer","activeMarkers","deletion","_descriptionFactory","get","options","downcastDispatcher","getItems","ELEMENT_LINE_BREAK","locale","includes","test","createUIElement","name","enableCommand","requires","mapper","editor","plugins","addClass","bindElementToMarker","markerRange","element","TrackChangesEditing","addMarker:suggestion:deletion","editing","split","model"];var mx,fx;mx=gx,fx=203,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("0xc")](){return[nr.ShiftEnter]}[hx("0x1f")](){const t=this[hx("0xe")],e=t[hx("0xf")][hx("0x1")](hx("0x14"));e[hx("0xb")]("shiftEnter"),t[hx("0x16")][hx("0x3")].on(hx("0x1d"),bx(t),{priority:"high"}),t.editing[hx("0x3")].on(hx("0x15"),bx(t),{priority:"high"}),t.data[hx("0x3")].on(hx("0x1b"),((e,n,o)=>{o[hx("0x2")][hx("0x20")]&&bx(t,{showActiveMarker:!1})(e,n,o)})),e[hx("0x0")].registerElementLabel(hx("0x19"),(e=>Yo(t[hx("0x6")],hx("0x5"),e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t.plugins.get(hx("0x14"));if(!s[hx("0x22")][hx("0x8")](o.markerRange,n[hx("0xa")]))return;const i=t[hx("0x18")];for(const t of o[hx("0x12")][hx("0x4")]()){if(!t.is(hx("0x13"),"softBreak"))continue;const n=hx("0x25")==o[hx("0x1a")][hx("0x17")](":")[1]?"merge":hx("0x17"),x=s[hx("0x23")][hx("0x9")]("span",{class:hx("0x21")+n}),a=s[hx("0xd")][hx("0x1e")](i.createPositionBefore(t));e&&r[hx("0x24")][hx("0x7")](o[hx("0x1a")])&&s[hx("0x23")][hx("0x10")](hx("0x1c"),x),s[hx("0x23")].insert(a,x),s[hx("0xd")][hx("0x11")](x,o[hx("0x1a")])}}}const Ex=["markInlineFormat","forceValue","TrackChangesEditing","commandParams","FORMAT_RESTRICTED_DISABLED","model","restrictedEditingException","selection","get","getRanges","change","has","commands","isCollapsed","format","FORMAT_RESTRICTED_ENABLED","document","locale","editor","plugins","value","_descriptionFactory"];var _x,Tx;_x=Ex,Tx=150,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const yx=function(t,e){return Ex[t-=0]};class Cx extends t.Plugin{afterInit(){const t=this[yx("0x0")],e=t[yx("0x9")],n=t[yx("0x15")];if(!t[yx("0x1")][yx("0xf")]("StandardEditingModeEditing"))return;const o=t[yx("0x1")][yx("0xc")](yx("0x6")),s=yx("0xa"),r=t[yx("0x10")][yx("0xc")](s);o.enableCommand(s,((t,n={})=>{const i=e[yx("0x14")][yx("0xb")];if(i[yx("0x11")])return void t(n);const x=void 0!==n[yx("0x5")]?n[yx("0x5")]:!r[yx("0x2")];e[yx("0xe")]((()=>{const t=Array.from(i[yx("0xd")]());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o[yx("0x4")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[yx("0x3")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&e.commandName==s)return e[yx("0x7")][0][yx("0x5")]?{type:"format",content:Yo(n,yx("0x13"))}:{type:yx("0x12"),content:Yo(n,yx("0x8"))}}))}}const kx=["_getStyleDefinition","every","config","_descriptionFactory","getAttribute","add","commandName","Style","modelElements","document","normalizeConfig","markBlockFormat","from","has","editor","plugins","TrackChangesEditing","block","markInlineFormat","style.definitions","*Remove format:* %0","name","forceValue","getSelectedBlocks","format","getItems","classes","enabledStyles","isBlock","styleName","style:","getAncestors","_getRangesWithClasses","style","model","change","getRanges","push","find","includes","toLowerCase","StyleUtils","element","value","commands","commandParams","afterInit","getDefinitionsForView","get","inline","*Format:* %0"];var Ax,vx;Ax=kx,vx=491,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Ix extends t.Plugin{[Rx("0xe")](){const t=this[Rx("0x21")];if(!t[Rx("0x22")][Rx("0x20")](Rx("0x1a")))return;const e=t[Rx("0xc")][Rx("0x10")](Rx("0x1")),n=t[Rx("0x22")][Rx("0x10")](Rx("0x23")),o=t.locale,s=t[Rx("0x22")][Rx("0x10")]("DataSchema"),r=t.plugins[Rx("0x10")](Rx("0x9"))[Rx("0x1d")](s,t[Rx("0x15")][Rx("0x10")](Rx("0x26")));n.enableCommand(Rx("0x1"),((o,{styleName:i})=>{const x=t[Rx("0x2")][Rx("0x1c")].selection,a=this[Rx("0x13")](i,r);if(!a)return;if(!e[Rx("0x2e")][Rx("0x7")](i))return;if(x.isCollapsed&&!a.isBlock)return void o({styleName:i});const c=!e[Rx("0xb")].includes(a[Rx("0x28")]);if(a[Rx("0x2f")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Rx("0x32")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[Rx("0x7")](o[Rx("0x28")])){n[Rx("0x18")](o);break}}return n}(x[Rx("0x2a")](),a[Rx("0x1b")]);t[Rx("0x2")].change((()=>{for(const t of e)n[Rx("0x1e")](t,{commandName:Rx("0x1"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:Rx("0x31")+i})}))}else{let e=Array[Rx("0x1f")](x[Rx("0x4")]());if(!c){const n=Array[Rx("0x1f")](s[Rx("0xf")](a[Rx("0xa")],!1))[0][Rx("0x2")],o=[];for(const s of e){const e=this[Rx("0x0")](t.model,s,a[Rx("0x2d")],n);o[Rx("0x5")](...e)}e=o}t[Rx("0x2")][Rx("0x3")]((()=>{for(const t of e)n[Rx("0x25")](t,{commandName:Rx("0x1"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0x16")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&"style"===e[Rx("0x19")])return e.commandParams[0][Rx("0x29")]?{type:"format",content:Yo(o,Rx("0x12"),e[Rx("0xd")][0][Rx("0x30")][Rx("0x8")]())}:{type:Rx("0x2b"),content:Yo(o,Rx("0x27"),e[Rx("0xd")][0].styleName[Rx("0x8")]())}}))}[Rx("0x13")](t,e){let n=e[Rx("0x24")][Rx("0x6")]((e=>e[Rx("0x28")]===t));return n||(n=e[Rx("0x11")][Rx("0x6")]((e=>e.name===t))),n}[Rx("0x0")](t,e,n,o){const s=[];for(const r of e[Rx("0x2c")]()){const e=r[Rx("0x17")](o);e&&n[Rx("0x14")]((t=>e.classes.includes(t)))&&s.push(t.createRangeOn(r))}return s}}const Sx=["getSelectionAffectedTableCells","first","last","filter","ELEMENT_TABLE_ROW_WITH_TEXT","markMultiRangeInsertion","start","every","join","*Insert:* %0","suggestion","getCellLocation","_getSuggestionCoords","toViewElement","item","TrackChangesEditing","ELEMENT_TABLE_COLUMN_WITH_TEXT","model","_getCoordsForCells","hasAttribute","selection","createTableWalker","writer","some","minColumn","addMarker:suggestion","registerElementLabel","insertTableRowAbove","selectTableRow","getColumnIndexes","left","_splitMarkerName","change","ELEMENT_TABLE_COLUMN","add","table","span","type","_tablePostFixingSubtypes","commands","markMultiRangeDeletion","colspan","ELEMENT_TABLE","name","order","push","ELEMENT_TABLE_WITH_TEXT","classes","removeTableColumn","nodeBefore","getAttribute","getRanges","_descriptionFactory","selectTableColumn","rootName","setSelection","substr","isIntersectingWithRange","MIN_SAFE_INTEGER","tableColumn","_acceptFormatSuggestionCallbackFactory","ELEMENT_TABLE_ROW","values","above","getChanges","root","addClass","execute","addRange","insertion","getItems","cell","fromRange","end","getContainedElement","_suggestionFactory","includes","getFirstRange","_tableSuggestions","TableUtils","registerCustomCallback","length","deletion","locale","removeTableRow","accept","$textProxy","minRow","insertTableRowBelow","maxRow","editor","startsWith","min","detach","toLowerCase","downcastDispatcher","discard","rowspan","has","findAncestor","insertTableColumnRight","batch","enableCommand","createRangeOn","isEqual","change:data","from","TableEditing","$graveyard","plugins","highest","*Remove:* %0","tableRow","subType","mapper","low","document","isTouching","get","enqueueChange","refresh","max","nodeAfter","registerPostFixer","position","tableCell","data","map","getChangedMarkers"];var Lx,Nx;Lx=Sx,Nx=318,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const Mx=function(t,e){return Sx[t-=0]};class wx extends t.Plugin{constructor(t){super(t),this[Mx("0x6b")]=[Mx("0x34"),Mx("0x80")],this[Mx("0x12")]=new Set}afterInit(){const t=this[Mx("0x1e")],e=t[Mx("0x56")][Mx("0x38")][Mx("0x59")];if(!t[Mx("0x31")][Mx("0x26")](Mx("0x2f")))return;const n=t[Mx("0x17")],o=t[Mx("0x31")][Mx("0x3a")](Mx("0x54")),s=t[Mx("0x31")][Mx("0x3a")]("TableUtils");o[Mx("0x79")][Mx("0x5f")](Mx("0x68"),(t=>Yo(n,Mx("0x6f"),t))),this._setupColumnsRowsFixing(),o[Mx("0x2a")]("insertTable"),o[Mx("0x2a")](Mx("0x61")),o[Mx("0x2a")](Mx("0x7a"));for(const n of[Mx("0x60"),Mx("0x1c")]){const r=t[Mx("0x6c")][Mx("0x3a")](n);o[Mx("0x2a")](n,(n=>{t[Mx("0x56")].change((t=>{n();const i=Mx("0x3")===r[Mx("0x71")],x=s[Mx("0x45")](e),a=s.getRowIndexes(x),c=i?a[Mx("0x46")]-1:a.last+1,l=x[0][Mx("0x27")](Mx("0x68")),d=s.createTableWalker(l,{startRow:c,endRow:c}),u=Array.from(d).map((e=>t[Mx("0x2b")](e.cell)));o[Mx("0x4a")](u,Mx("0x34"))}))}))}for(const n of["insertTableColumnLeft",Mx("0x28")]){const r=t[Mx("0x6c")][Mx("0x3a")](n);o[Mx("0x2a")](n,(n=>{t[Mx("0x56")][Mx("0x65")]((t=>{n();const i=Mx("0x63")===r.order,x=s[Mx("0x45")](e),a=s[Mx("0x62")](x),c=i?a[Mx("0x46")]-1:a.last+1,l=x[0][Mx("0x27")](Mx("0x68")),d=s[Mx("0x5a")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[Mx("0x2e")](d)[Mx("0x43")]((e=>t[Mx("0x2b")](e[Mx("0xb")])));o[Mx("0x4a")](u,Mx("0x80"))}))}))}for(const n of[Mx("0x18"),Mx("0x75")]){const r=n[Mx("0x7d")](11),i=r[Mx("0x22")](),x=i[Mx("0x7d")](0,3)+Mx("0x69"),a=Mx("0x68")+r,c=Mx("0x20")+r,l=Mx("0x3d")+r;o.enableCommand(n,(()=>{t[Mx("0x56")][Mx("0x65")]((t=>{const r=s[Mx("0x45")](e),d=r[0][Mx("0x27")](Mx("0x68"));let u;if(Mx("0x18")==n){const t=s.getRowIndexes(r);u={startRow:t[Mx("0x46")],endRow:t.last,includeAllSlots:!0}}else{const t=s[Mx("0x62")](r);u={startColumn:t[Mx("0x46")],endColumn:t[Mx("0x47")],includeAllSlots:!0}}const g=s[Mx("0x5a")](d,u),m=Array[Mx("0x2e")](g)[Mx("0x43")]((({cell:t})=>t)),f=Ox(m[Mx("0x48")]((t=>t[Mx("0x58")](x)))),h=Ox(m[Mx("0x48")]((t=>!t[Mx("0x58")](x))))[Mx("0x43")]((e=>t.createRangeOn(e))),p=o[Mx("0x6d")](h,a);if(p&&(Mx("0x34")==p[Mx("0x35")]||Mx("0x80")==p[Mx("0x35")])){const e=this._getSuggestionCoords(p);for(const n of f){const o=t.createRangeOn(n),r=s.getCellLocation(n),a=n.getAttribute(x)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+a<=u&&p[Mx("0x8")](o)}}}))}))}function r(n){const o=Array[Mx("0x2e")](e.getRanges())[Mx("0x43")]((t=>i.LiveRange[Mx("0xc")](t)));t.model[Mx("0x65")]((e=>{const s=e[Mx("0x29")];n=n[Mx("0x48")]((t=>Mx("0x30")!=t[Mx("0x5")][Mx("0x7b")])),e[Mx("0x7c")](n),t[Mx("0x6c")].get(Mx("0x18")).refresh(),t[Mx("0x7")](Mx("0x18"),{forceDefaultExecution:!0}),t[Mx("0x56")][Mx("0x3b")]((()=>{t[Mx("0x56")].enqueueChange(s,(t=>{const e=o[Mx("0x48")]((t=>Mx("0x30")!=t[Mx("0x5")].rootName));e.length>0&&t.setSelection(e);for(const t of o)t[Mx("0x21")]()}))}))}))}function a(n){t.model[Mx("0x65")]((o=>{const s=Array.from(e.getRanges()).map((t=>i.LiveRange[Mx("0xc")](t))),r=[];for(const t of n)for(const e of t[Mx("0xa")]({shallow:!0}))r[Mx("0x72")](e);for(const e of r)"$graveyard"!=e.root[Mx("0x7b")]&&(o[Mx("0x7c")](o.createPositionAt(e,0)),t[Mx("0x6c")][Mx("0x3a")](Mx("0x75"))[Mx("0x3c")](),t.execute(Mx("0x75"),{forceDefaultExecution:!0}));const x=s[Mx("0x48")]((t=>"$graveyard"!=t[Mx("0x5")][Mx("0x7b")]));x[Mx("0x15")]>0&&o[Mx("0x7c")](x);for(const t of s)t.detach()}))}function c(t,e){return e[Mx("0x4c")]((e=>t[Mx("0x5c")]((t=>t[Mx("0xd")].isEqual(e.start)||e.end[Mx("0x2c")](t[Mx("0x4b")])))))}function l(t,e){return t[Mx("0x5c")]((t=>e[Mx("0x5c")]((e=>t.end[Mx("0x39")](e[Mx("0x4b")])))))}t[Mx("0x42")][Mx("0x23")].on(Mx("0x5e"),((t,e,n)=>{if(!n.options.showSuggestionHighlights)return;const o=e[Mx("0x53")];if(!o)return;const s=n[Mx("0x36")][Mx("0x52")](o);function r(t){return Array.isArray(t)?t:[t]}s&&Mx("0x41")===o.name&&(0,x.setHighlightHandling)(s,n[Mx("0x5b")],((t,e,n)=>n[Mx("0x6")](r(e[Mx("0x74")]),t)),((t,e,n)=>n.removeClass(r(e[Mx("0x74")]),t)))}),{priority:Mx("0x32")}),o[Mx("0x79")].registerDescriptionCallback((t=>{if(Mx("0x9")!=t[Mx("0x6a")]&&Mx("0x16")!=t.type)return;const e=t[Mx("0xe")]();if(null!=e&&e.is("element",Mx("0x68"))){if(Mx("0x9")==t[Mx("0x6a")]){const e=t[Mx("0xa")]().filter((t=>t.is("$textProxy"))).map((t=>t[Mx("0x42")]));if(e[Mx("0x15")])return{type:"insertion",content:Yo(n,Mx("0x4e"),Yo(n,Mx("0x73"),'"'+e[Mx("0x4d")](" ")+'"'))}}if(Mx("0x16")==t.type){const e=t[Mx("0xa")]()[Mx("0x48")]((t=>t.is(Mx("0x1a"))))[Mx("0x43")]((t=>t.data));if(e[Mx("0x15")])return{type:Mx("0x16"),content:Yo(n,Mx("0x33"),Yo(n,Mx("0x73"),'"'+e[Mx("0x4d")](" ")+'"'))}}}})),o[Mx("0x79")].registerDescriptionCallback((t=>{if("tableRow"==t.subType){const e=t[Mx("0xa")]()[Mx("0x48")]((t=>t.is(Mx("0x1a"))))[Mx("0x43")]((t=>t[Mx("0x42")])),o=this[Mx("0x51")](t),s=o[Mx("0x1d")]-o[Mx("0x1b")]+1;if(Mx("0x9")==t[Mx("0x6a")])return e[Mx("0x15")]?{type:Mx("0x9"),content:Yo(n,"*Insert:* %0",Yo(n,Mx("0x49"),[s,'"'+e.join(" ")+'"']))}:{type:"insertion",content:Yo(n,"*Insert:* %0",Yo(n,"ELEMENT_TABLE_ROW",s))};if(Mx("0x16")==t[Mx("0x6a")])return e.length?{type:"deletion",content:Yo(n,Mx("0x33"),Yo(n,Mx("0x49"),[s,'"'+e[Mx("0x4d")](" ")+'"']))}:{type:Mx("0x16"),content:Yo(n,Mx("0x33"),Yo(n,Mx("0x1"),s))}}if(Mx("0x80")==t[Mx("0x35")]){const e=t.getItems()[Mx("0x48")]((t=>t.is(Mx("0x1a"))))[Mx("0x43")]((t=>t.data)),o=this[Mx("0x51")](t),s=o.maxColumn-o[Mx("0x5d")]+1;if(Mx("0x9")==t[Mx("0x6a")])return e[Mx("0x15")]?{type:Mx("0x9"),content:Yo(n,Mx("0x4e"),Yo(n,Mx("0x55"),[s,'"'+e[Mx("0x4d")](" ")+'"']))}:{type:"insertion",content:Yo(n,"*Insert:* %0",Yo(n,Mx("0x66"),s))};if(Mx("0x16")==t.type)return e[Mx("0x15")]?{type:Mx("0x16"),content:Yo(n,Mx("0x33"),Yo(n,Mx("0x55"),[s,'"'+e[Mx("0x4d")](" ")+'"']))}:{type:Mx("0x16"),content:Yo(n,Mx("0x33"),Yo(n,"ELEMENT_TABLE_COLUMN",s))}}})),o[Mx("0xf")][Mx("0x14")](Mx("0x9"),"tableRow",Mx("0x24"),r),o[Mx("0xf")][Mx("0x14")](Mx("0x16"),Mx("0x34"),Mx("0x19"),r),o[Mx("0xf")][Mx("0x14")](Mx("0x9"),"tableColumn",Mx("0x24"),a),o[Mx("0xf")].registerCustomCallback(Mx("0x16"),Mx("0x80"),Mx("0x19"),a),o[Mx("0xf")][Mx("0x14")](Mx("0x9"),Mx("0x80"),Mx("0x4d"),c),o._suggestionFactory[Mx("0x14")](Mx("0x16"),Mx("0x80"),"join",c),o[Mx("0xf")][Mx("0x14")]("insertion","tableRow",Mx("0x4d"),l),o[Mx("0xf")][Mx("0x14")](Mx("0x16"),Mx("0x34"),"join",l)}[Mx("0x0")](){const t=this[Mx("0x1e")],e=t.model[Mx("0x38")].selection;return(n,o)=>{t.model[Mx("0x65")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][Mx("0xd")][Mx("0x76")];x&&x[0]&&!1===x[0].forceValue&&(a=n[0][Mx("0x4b")].nodeAfter);const c=s.createRangeIn(a);if(Mx("0x30")==c[Mx("0x5")][Mx("0x7b")])return;const l=Array.from(e[Mx("0x78")]())[Mx("0x43")]((t=>i.LiveRange[Mx("0xc")](t)));s[Mx("0x7c")](c),t[Mx("0x6c")][Mx("0x3a")](r)[Mx("0x3c")](),x[Mx("0x72")]({forceDefaultExecution:!0}),t.execute(r,...x);const d=l.filter((t=>Mx("0x30")!=t[Mx("0x5")][Mx("0x7b")]));d[Mx("0x15")]>0&&s[Mx("0x7c")](d);for(const t of l)t[Mx("0x21")]()}))}}[Mx("0x57")](t){const e=this.editor.plugins[Mx("0x3a")](Mx("0x13"));let n=Number.MAX_SAFE_INTEGER,o=Number.MIN_SAFE_INTEGER,s=Number.MAX_SAFE_INTEGER,r=Number[Mx("0x7f")];for(const i of t){if(Mx("0x30")==i[Mx("0x5")][Mx("0x7b")])continue;const{row:t,column:x}=e.getCellLocation(i),a=i[Mx("0x58")](Mx("0x25"))?i[Mx("0x77")](Mx("0x25"))-1:0,c=i[Mx("0x58")](Mx("0x6e"))?i[Mx("0x77")](Mx("0x6e"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,s=x<s?x:s,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:s,maxColumn:r}}_setupColumnsRowsFixing(){const t=this[Mx("0x1e")],e=t[Mx("0x31")].get(Mx("0x54")),n=t[Mx("0x31")][Mx("0x3a")](Mx("0x13"));t.model[Mx("0x38")].on(Mx("0x2d"),(()=>{const n=Array[Mx("0x2e")](t[Mx("0x56")][Mx("0x38")].differ[Mx("0x44")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Mx("0x64")](t);if(Mx("0x4f")!=n)continue;if(null!=o.oldRange)continue;const i=e.getSuggestion(s);this[Mx("0x6b")][Mx("0x10")](r)&&this[Mx("0x12")][Mx("0x67")](i)}}),{priority:Mx("0x37")});const o=(t,e)=>{let o=!1;const s=e.createRangeOn(t),r=t.findAncestor(Mx("0x68")),i=n[Mx("0x50")](t);for(const e of this[Mx("0x12")]){const n=e.subType,x=n[Mx("0x1f")]("tablePaste"),a=n.substr(x?10:5),c=a[Mx("0x22")](),l=c[Mx("0x7d")](0,3)+"span",d=Mx("0x20")+a,u=Mx("0x3d")+a;if(!e.isInContent)continue;if(r!=e[Mx("0x11")]()[Mx("0x4b")].findAncestor(Mx("0x68")))continue;if(e[Mx("0x7e")](s))continue;const g=t[Mx("0x58")](l)?t.getAttribute(l)-1:0,m=this._getSuggestionCoords(e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e[Mx("0x8")](s),o=!0)}return o};t.model[Mx("0x38")][Mx("0x3f")]((e=>{let n=!1;for(const s of t[Mx("0x56")][Mx("0x38")].differ[Mx("0x4")]())if("insert"==s[Mx("0x6a")])if(Mx("0x34")==s[Mx("0x70")])for(const t of s[Mx("0x40")].nodeAfter.getChildren())n=n||o(t,e);else"tableCell"==s[Mx("0x70")]&&(n=n||o(s[Mx("0x40")].nodeAfter,e));return n}))}[Mx("0x51")](t){return this[Mx("0x57")](t[Mx("0x78")]()[Mx("0x43")]((t=>t[Mx("0x4b")][Mx("0x3e")])))}}function Ox(t){return Array[Mx("0x2e")](new Set(t)[Mx("0x2")]())}const Fx=["markMultiRangeBlockFormat","trackChanges","getCellLocation","mergeTableCellDown","getSelectionAffectedTableCells","low","setSelection","_tablePostFixingSubtypes","forceDefaultExecution","selection","commands","isInContent","registerCustomCallback","add","*Split cell:* horizontally","mergeTableCellUp","markBlockFormat","deletion","cell","value","TrackChangesEditing","direction","_suggestionFactory","createRangeOn","_descriptionFactory","getAncestors","formatBlock","isEnabled","enableCommand","length","rootName","accept","return","from","commandName","afterInit","model","_isForcedDefaultExecutionBlock","root","findAncestor","stop","find","document","createTableWalker","*Merge cells*","subType","splitTableCellVertically","locale","TableUtils","has","format","containsRange","table","type","map","mergeTableCellRight","splitTableCellHorizontally","registerDescriptionCallback","filter","get","highest","size","_acceptFormatSuggestionCallbackFactory","change","tableCell","editor","insertion","horizontally","TableEditing","requires","mergeTableCellLeft","getRanges","_areMergableCells","mergeTableCells","_areSelectedCellsMergable","detach","refresh","execute","getFirstPosition","author","plugins"];var Px,Dx;Px=Fx,Dx=287,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("0x19")](){return[wx]}[Bx("0x48")](){const t=this[Bx("0x15")],e=t.model[Bx("0x4f")][Bx("0x2e")],n=t[Bx("0x3")];if(!t[Bx("0x24")][Bx("0x5")](Bx("0x18")))return;const o=t[Bx("0x24")][Bx("0xf")]("TrackChangesEditing"),s=t[Bx("0x24")][Bx("0xf")](Bx("0x4")),r=t.plugins.get(wx);r[Bx("0x2c")].push(Bx("0x1d")),o[Bx("0x41")](Bx("0x1d"),(()=>{const e=s[Bx("0x29")](t.model[Bx("0x4f")][Bx("0x2e")]);t[Bx("0x49")][Bx("0x13")]((()=>{o[Bx("0x25")](e,{commandName:Bx("0x1d"),commandParams:[]},[],Bx("0x1d"))}))})),t.commands[Bx("0xf")](Bx("0x1d")).on("execute",((e,n)=>{t[Bx("0x2f")][Bx("0xf")](Bx("0x26"))[Bx("0x38")]&&(n[Bx("0x42")]>0&&n[n[Bx("0x42")]-1]&&n[n[Bx("0x42")]-1][Bx("0x2d")]||o[Bx("0x4a")]||this[Bx("0x1e")]()||e[Bx("0x4d")]())}),{priority:Bx("0x10")});for(const e of[Bx("0x34"),Bx("0xb"),Bx("0x28"),Bx("0x1a")]){const n=t[Bx("0x2f")][Bx("0xf")](e);o[Bx("0x41")](e,(()=>{const e=t[Bx("0x49")][Bx("0x4f")].selection.getFirstPosition()[Bx("0x3e")]()[Bx("0x4e")]((t=>t.is("element",Bx("0x14")))),s=n[Bx("0x38")];t.model[Bx("0x13")]((()=>{o[Bx("0x25")]([e,s],{commandName:Bx("0x1d"),commandParams:[]},[],Bx("0x1d"))}))}))}for(const e of[Bx("0x2"),"splitTableCellHorizontally"]){const n=t.commands[Bx("0xf")](e);o[Bx("0x41")](e,(()=>{const r=s[Bx("0x29")](t[Bx("0x49")][Bx("0x4f")].selection)[0],i=r[Bx("0x4c")](Bx("0x8")),{column:x,row:a}=s[Bx("0x27")](r);let c=[];if(Bx("0x17")==n[Bx("0x3a")]){const t=s[Bx("0x50")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0x46")](t)[Bx("0xa")]((t=>t[Bx("0x37")]))}else{const t=s[Bx("0x50")](i,{column:x,includeAllSlots:!0});c=Array[Bx("0x46")](t).map((t=>t[Bx("0x37")]))}t[Bx("0x49")][Bx("0x13")]((t=>{o[Bx("0x35")](t.createRangeOn(r),{commandName:e,commandParams:[]},c,e)}))}))}o[Bx("0x3d")][Bx("0xd")]((t=>{const{data:e}=t;if(e)return Bx("0x1d")==e[Bx("0x47")]?{type:Bx("0x6"),content:Yo(n,Bx("0x0"))}:void 0})),o[Bx("0x3d")].registerDescriptionCallback((t=>{const{data:e}=t;if(e)return"splitTableCellVertically"==e[Bx("0x47")]?{type:Bx("0x6"),content:Yo(n,"*Split cell:* vertically")}:Bx("0xc")==e.commandName?{type:Bx("0x6"),content:Yo(n,Bx("0x33"))}:void 0}));const x=r[Bx("0x12")]();for(const t of[Bx("0x34"),Bx("0xb"),Bx("0x28"),Bx("0x1a")])o._suggestionFactory[Bx("0x31")](Bx("0x3f"),t,Bx("0x44"),x);for(const t of[Bx("0x2"),Bx("0xc")])o[Bx("0x3b")].registerCustomCallback(Bx("0x3f"),t,Bx("0x44"),x);o[Bx("0x3b")].registerCustomCallback("formatBlock","mergeTableCells",Bx("0x44"),(n=>{t[Bx("0x49")][Bx("0x13")]((o=>{const s=Array.from(e[Bx("0x1b")]())[Bx("0xa")]((t=>i.LiveRange.fromRange(t)));o[Bx("0x2b")](n),t[Bx("0x2f")].get(Bx("0x1d"))[Bx("0x20")](),t[Bx("0x21")](Bx("0x1d"),{forceDefaultExecution:!0});const r=s[Bx("0xe")]((t=>"$graveyard"!=t[Bx("0x4b")][Bx("0x43")]));r.length>0&&o[Bx("0x2b")](r);for(const t of s)t[Bx("0x1f")]()}))}));for(const e of[Bx("0x34"),Bx("0x28"),Bx("0x1a"),"mergeTableCellRight"]){const n=t[Bx("0x2f")].get(e);n.on("set:isEnabled",((e,o,s)=>{if(s){const o=t[Bx("0x49")][Bx("0x4f")][Bx("0x2e")][Bx("0x22")]()[Bx("0x3e")]()[Bx("0x4e")]((t=>t.is("element",Bx("0x14"))));this[Bx("0x1c")](n[Bx("0x38")],o)||(e[Bx("0x45")]=!1,e[Bx("0x4d")]())}}),{priority:Bx("0x2a")})}}[Bx("0x1e")](){const t=this.editor[Bx("0x2f")].get(Bx("0x1d")),e=this.editor.plugins[Bx("0xf")](Bx("0x4"));if(!t[Bx("0x40")])return!1;const n=e[Bx("0x29")](this.editor[Bx("0x49")][Bx("0x4f")][Bx("0x2e")]);for(const t of n)for(const e of n)if(t!=e&&!this[Bx("0x1c")](t,e))return!1;return!0}[Bx("0x1c")](t,e){const n=this[Bx("0x15")].plugins[Bx("0xf")](Bx("0x39")),o=this.editor[Bx("0x49")].createRangeOn(t),s=this[Bx("0x15")][Bx("0x49")][Bx("0x3c")](e),r=new Set,i=new Set;for(const t of n.getSuggestions())if((Bx("0x16")==t.type||Bx("0x36")==t[Bx("0x9")]||Bx("0x1d")==t[Bx("0x1")])&&t[Bx("0x30")])for(const e of t[Bx("0x1b")]())e[Bx("0x7")](o,!0)&&r[Bx("0x32")](t.type+":"+t[Bx("0x23")].id),e[Bx("0x7")](s,!0)&&i[Bx("0x32")](t.type+":"+t[Bx("0x23")].id);if(r[Bx("0x11")]!=i[Bx("0x11")])return!1;for(const t of r)if(!i[Bx("0x5")](t))return!1;return!0}}const Ux=["markerName","setTableColumnHeader","registerCustomCallback","parent","_descriptionFactory","TableEditing","_splitMarkerName","value","createRange","removeMarker:suggestion","FORMAT_HEADER_COLUMN","createPositionBefore","mapper","document","removeClass","setTableRowHeader","headingColumns","showSuggestionHighlights","editing","isBefore","findAncestor","writer","table","change","createTableWalker","options","getSuggestion","commandName","cell","getAttribute","requires","*Format:* %0","unbindElementFromMarkerName","TableUtils","forceValue","index","last","createPositionAfter","markerRange","getColumnIndexes","commands","item","plugins","childCount","model","start","data","highest","markerNameToElements","accept","getChild","getSelectionAffectedTableCells","_suggestionFactory","includes","ck-suggestion-marker--active","getCellLocation","end","formatBlock","format","enableCommand","name","first","get","selection","registerDescriptionCallback","downcastDispatcher","TrackChangesEditing","FORMAT_REGULAR_COLUMN","removeAttribute","stop","toViewElement","FORMAT_REGULAR_ROW","getRowIndexes","addClass","data-suggestion","afterInit","addMarker:suggestion","editor"];var Gx,Hx;Gx=Ux,Hx=252,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("0xc")](){return[wx]}[zx("0x39")](){const t=this[zx("0x3b")];if(!t[zx("0x18")].has(zx("0x41")))return;const e=t.locale,n=t[zx("0x18")][zx("0x2c")](zx("0x30")),o=t[zx("0x18")].get(zx("0xf")),s=t[zx("0x18")].get(wx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n._splitMarkerName(r[zx("0x3c")]),c=n[zx("0x8")](a);if(!c.data||"setTableColumnHeader"!=c.data.commandName)return;if(r[zx("0x17")])return void s[zx("0x33")]();if(!i.consumable.consume(r.markerRange,s[zx("0x2a")]))return;const l=r[zx("0x14")][zx("0x1b")].nodeAfter,d=r[zx("0x14")][zx("0x26")].nodeBefore,u=l[zx("0x3f")][zx("0x3f")],{column:g}=o[zx("0x25")](l),{column:m}=o[zx("0x25")](d);for(let s=g;s<=m;s++){const c=o[zx("0x6")](u,{column:s,includeAllSlots:!1});for(const o of c){const s=o[zx("0xa")],c=i.mapper[zx("0x34")](s);i.writer[zx("0x37")]("ck-suggestion-marker-"+x,c),e&&i[zx("0x3")].setAttribute(zx("0x38"),a,c),i[zx("0x48")].bindElementToMarker(c,r.markerName),t&&(n.activeMarkers[zx("0x23")](r.markerName)?i[zx("0x3")].addClass(zx("0x24"),c):i[zx("0x3")].removeClass(zx("0x24"),c))}}}}n[zx("0x29")]("setTableRowHeader",((e,s)=>{const r=o[zx("0x21")](t[zx("0x1a")][zx("0x49")][zx("0x2d")]),i=o[zx("0x36")](r),x=r[0].findAncestor("table"),a=x[zx("0xb")]("headingRows")||0,c=s&&null!==s[zx("0x10")]?s.forceValue:!t.commands[zx("0x2c")](zx("0x4b"))[zx("0x43")],l=c?i[zx("0x12")]:i[zx("0x2b")],d=x[zx("0x20")](l);let u;if(c){const e=x[zx("0x20")](a);if(d[zx("0x11")]<e.index)return;u=t.model[zx("0x44")](t[zx("0x1a")][zx("0x47")](e.getChild(0)),t.model[zx("0x13")](d[zx("0x20")](d[zx("0x19")]-1)))}else{const e=x.getChild(a-1);if(!e)return;u=t[zx("0x1a")][zx("0x44")](t[zx("0x1a")][zx("0x47")](d[zx("0x20")](0)),t[zx("0x1a")][zx("0x13")](e[zx("0x20")](e[zx("0x19")]-1)))}t[zx("0x1a")][zx("0x5")]((()=>{n.markBlockFormat(u,{commandName:zx("0x4b"),commandParams:[{forceValue:c}]},[],zx("0x4b"))}))})),n[zx("0x29")](zx("0x3d"),((e,o)=>{const s=t[zx("0x18")].get(zx("0xf")),r=s[zx("0x21")](t[zx("0x1a")][zx("0x49")][zx("0x2d")]),i=s[zx("0x15")](r),x=r[0][zx("0x2")](zx("0x4")),a=x[zx("0xb")](zx("0x4c"))||0,c=o&&null!==o[zx("0x10")]?o.forceValue:!t[zx("0x16")].get(zx("0x3d"))[zx("0x43")];let l;const d=x[zx("0x20")](0),u=c?i.last:i[zx("0x2b")],g=s[zx("0x6")](x,{startRow:0,column:u,includeAllSlots:!1}),m=Array.from(g)[0][zx("0xa")];if(c){const e=d[zx("0x20")](a);if(m[zx("0x1")](e))return;l=t.model[zx("0x44")](t[zx("0x1a")][zx("0x47")](e),t.model[zx("0x13")](m))}else{const e=d[zx("0x20")](a-1);if(!e)return;l=t.model[zx("0x44")](t[zx("0x1a")][zx("0x47")](m),t[zx("0x1a")][zx("0x13")](e))}t[zx("0x1a")][zx("0x5")]((()=>{n.markBlockFormat(l,{commandName:zx("0x3d"),commandParams:[{forceValue:c}]},[],zx("0x3d"))}))})),t[zx("0x0")][zx("0x2f")].on(zx("0x3a"),r(),{priority:zx("0x1d")}),t.data[zx("0x2f")].on(zx("0x3a"),((t,e,n)=>{n[zx("0x7")][zx("0x4d")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:"highest"}),t.editing[zx("0x2f")].on(zx("0x45"),((t,e,o)=>{const{type:s,id:r}=n[zx("0x42")](e[zx("0x3c")]),i=n[zx("0x8")](r);if(!i[zx("0x1c")]||zx("0x3d")!=i[zx("0x1c")][zx("0x9")])return;const x=o[zx("0x48")][zx("0x1e")](e[zx("0x3c")]);if(x)for(const t of x)o[zx("0x3")][zx("0x4a")]("ck-suggestion-marker-"+s,t),o[zx("0x3")].removeClass("ck-suggestion-marker--active",t),o.writer[zx("0x32")](zx("0x38"),t),o[zx("0x48")][zx("0xe")](t,e[zx("0x3c")])}),{priority:"highest"}),n[zx("0x40")][zx("0x2e")]((t=>{const{data:n}=t;if(n){if("setTableRowHeader"==n.commandName){const t=n.commandParams[0][zx("0x10")];return o(Yo(e,t?"FORMAT_HEADER_ROW":zx("0x35")))}if(zx("0x3d")==n[zx("0x9")]){const t=n.commandParams[0][zx("0x10")];return o(Yo(e,zx(t?"0x46":"0x31")))}}function o(t){return{type:zx("0x28"),content:Yo(e,zx("0xd"),t)}}}));const i=s._acceptFormatSuggestionCallbackFactory();n._suggestionFactory[zx("0x3e")](zx("0x27"),zx("0x4b"),"accept",i),n[zx("0x22")][zx("0x3e")](zx("0x27"),zx("0x3d"),zx("0x1f"),i)}}const Vx=["getSuggestion","editingDowncast","removeColumns","documentSelection","stop","author","ck-suggestion-marker--active","add","requires","reduce","suggestion","getChildren","value","TrackChangesEditing","accept","getColumnIndexes","_createdBatches","tableCellHorizontalAlignment","_getCoordsForCells","commands","isInContent","from","position","table","root","previousSibling","markers","low","editor","setAttribute","tablePasteRow","markMultiRangeInsertion","conversion","oldRange","first","$graveyard","cells","nextSibling","document","Users","redo","getChangedMarkers","selection","getSuggestions","getChild","editing","removeRows","model","rootName","includes","createRange","discard","getRanges","tableCellBorderStyle","schema","registerDescriptionCallback","formatBlock","previous","registerCustomCallback","columns","suggestion-td","type","getContainedElement","last","markerToHighlight","paragraph","next","wrap","fill","tableCellBorderWidth","_descriptionFactory","deletion","ck-suggestion-marker","push","for","containsRange","tableCellSuggestion","setAttributes","insert","markerName","_splitMarkerName","remove","tablePaste","move","updateMarker","columnInsertionRanges","insertRows","every","name","rowInsertionIndexes","getMarkers","insertionRanges","batch","isEmpty","endColumn","tablePasteCell","newRange","unwrap","high","hasSuggestion","markerAttributes","listenTo","getRange","dataDowncast","clipboardOutput","find","createRangeIn","tableCellVerticalAlignment","tablePasteChainId","markMultiRangeDeletion","tableCellBorderColor","startsWith","set","return","createTableWalker","suggestion:formatBlock:tablePasteCell","ck-suggestion-marker-insertion","elementToElement","suggestionLoaded","column","register","suggestionUnloaded","getAllAdjacentSuggestions","plugins","registerPostFixer","findAncestor","_suggestionFactory","removeMarkers","change","TableClipboard","removeMarker","view","attributes","createRangeOn","subType","keys","cell","fromEntries","has","insertion","start","isEqual","showSuggestionHighlights","tablePasteColumn","insertColumns","differ","filter","length","insertContent","end","getChanges","get","options","element","join","map","createPositionBefore","markMultiRangeBlockFormat","getColumns","trackChanges","tableCell","_tablePostFixingSubtypes","some","createElement","deletionRanges"];var Kx,qx;Kx=Vx,qx=202,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]},$x=[Xx("0x20"),Xx("0x49"),Xx("0x10"),Xx("0x91"),Xx("0x46"),"tableCellBackgroundColor","tableCellPadding"],Jx=Object[Xx("0x64")]($x[Xx("0x76")]((t=>[t,null])));class Qx extends t.Plugin{static get[Xx("0x88")](){return[wx]}afterInit(){const t=this.editor;if(!t.plugins.has(Xx("0x5c")))return;const n=t[Xx("0x56")].get(Xx("0x8d")),o=t.plugins[Xx("0x72")]("TableUtils"),s=t[Xx("0x56")][Xx("0x72")](wx),r=t[Xx("0x56")].get(Xx("0x5c"));s[Xx("0x7c")][Xx("0x24")]("tablePasteRow","tablePasteColumn"),t.model[Xx("0x11")][Xx("0x53")]("tableCellSuggestion",{allowIn:"tableCell",allowContentOf:Xx("0x7b"),isLimit:!0}),t[Xx("0xa0")][Xx("0x50")]({model:Xx("0x27"),view:Xx("0x17")});let i=null;t[Xx("0xa")].on(Xx("0x6f"),((s,x)=>{const[a,c]=x,l=x[x[Xx("0x6e")]-1];l&&l.forceDefaultExecution||n._isForcedDefaultExecutionBlock||this[Xx("0x9c")].commands.get(Xx("0x7a"))[Xx("0x8c")]&&function(t,e,n,o,s){if(e&&!e.is(Xx("0x83")))return!1;const r=s.getTableIfOnlyTableInContent(t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o.getSelectionAffectedTableCells(n[Xx("0x1")][Xx("0x5")]);if(!i[Xx("0x6e")])return!1;const x=i[0].findAncestor("table"),a=o.getRowIndexes(i),c=o[Xx("0x8f")](i),l={startRow:a[Xx("0xa2")],endRow:a[Xx("0x1a")],startColumn:c[Xx("0xa2")],endColumn:c[Xx("0x1a")]};return 1==i[Xx("0x6e")]&&(l.endRow+=o.getRows(r)-1,l[Xx("0x39")]+=o[Xx("0x79")](r)-1),Yx(x,l,o)}(a,c,t[Xx("0xa")],o,r)&&(s[Xx("0x84")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Xx("0xa")][Xx("0x5b")]((()=>{t[Xx("0xa")].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("0x6e")]&&n[Xx("0x9f")](s,Xx("0x9e"),{tablePasteChainId:o}),r.length&&n[Xx("0x9f")](r,"tablePasteColumn",{tablePasteChainId:o}),a.length&&n[Xx("0x9f")](a,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0}),c[Xx("0x6e")]&&n[Xx("0x48")](c,Xx("0x2d"),{tablePasteChainId:o,skipNestingCheck:!0});const d=n[Xx("0x78")](l[Xx("0x76")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Xx("0x3a"),{tablePasteChainId:o});if(d){const e=d[Xx("0x35")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[Xx("0xa")][Xx("0x60")](o),i=e[Xx("0x44")]((t=>t[Xx("0x41")]()[Xx("0x68")](r)));i&&n[Xx("0x24")]([i.name,s])}n[Xx("0x6e")]&&d[Xx("0x9d")](Xx("0x3f"),Object.fromEntries(n))}i=null})))}),{priority:e.priorities[Xx("0x3d")]+10}),t[Xx("0x56")].get(Xx("0x5c")).on("_replaceTableSlotCell",((t,e)=>{const[n,o,,s]=e;if(!i)return;t[Xx("0x84")]();const r=n[Xx("0x63")],x=o,a=Zx(r),c=Zx(x);t[Xx("0x4c")]=r;let l=null,d=null;if(c||a)if(a&&!c){s[Xx("0x2c")](r[Xx("0x7")](0));for(const t of Array[Xx("0x95")](x[Xx("0x8b")]()))s.insert(t,r,Xx("0x70"));const t=i[Xx("0x34")][Xx("0xc")](n.row),e=i.columnInsertionIndexes.includes(n[Xx("0x52")]);t||e||(l=s[Xx("0x45")](r))}else c&&!a&&(d=s[Xx("0x45")](r));else{const t=s[Xx("0x7e")](Xx("0x27")),e=s[Xx("0x7e")]("tableCellSuggestion");s[Xx("0x1e")](s[Xx("0x45")](r),e),s[Xx("0x29")](t,r,0);for(const e of Array.from(x.getChildren()))s[Xx("0x29")](e,t,Xx("0x70"));l=s.createRangeOn(t),d=s[Xx("0x60")](e)}const u=Array[Xx("0x95")](x.getAttributes())[Xx("0x6d")]((([t])=>$x[Xx("0xc")](t)));i[Xx("0xa4")][Xx("0x24")]({element:r,attributes:u.length?Object.fromEntries(u):null}),l&&i[Xx("0x36")][Xx("0x24")](l),d&&i[Xx("0x7f")][Xx("0x24")](d)}),{priority:"high"}),o.on(Xx("0x6b"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x16")]||1;i.columnInsertionIndexes=new Array(a)[Xx("0x1f")](x).map(((t,e)=>t+e));for(const{cell:e}of o[Xx("0x4d")](s,{startColumn:x,endColumn:x+a-1}))i[Xx("0x30")][Xx("0x24")](t[Xx("0xa")].createRangeOn(e))}),{priority:Xx("0x9b")}),o.on(Xx("0x31"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r.rows||1;i.rowInsertionIndexes=new Array(a)[Xx("0x1f")](x).map(((t,e)=>t+e));for(const{cell:e}of o[Xx("0x4d")](s,{startRow:x,endRow:x+a-1}))i.rowInsertionRanges[Xx("0x24")](t[Xx("0xa")].createRangeOn(e))}),{priority:Xx("0x9b")}),n[Xx("0x21")][Xx("0x12")]((e=>{if(e[Xx("0x61")]&&e[Xx("0x61")][Xx("0x4a")]("tablePaste"))return e.previous?{}:{type:"insertion",content:Yo(t.locale,"*Replace table cells*")}}));const x=()=>{};for(const t of[Xx("0x2d"),Xx("0x6a"),Xx("0x9e"),Xx("0x3a")])n[Xx("0x59")][Xx("0x15")](Xx("0x66"),t,Xx("0x75"),x),n._suggestionFactory[Xx("0x15")](Xx("0x22"),t,Xx("0x75"),x);n._suggestionFactory[Xx("0x15")](Xx("0x13"),Xx("0x3a"),Xx("0xe"),x),n[Xx("0x59")].registerCustomCallback("formatBlock",Xx("0x3a"),Xx("0x8e"),((e,n,o)=>{const s=e.map((t=>t[Xx("0x19")]()))[Xx("0x6d")]((t=>t)),r=new Map(s.map((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i.cells)e&&r[Xx("0x4b")](t,e);else if(o&&o.markerAttributes)for(const[e,n]of Object.entries(o.markerAttributes)){const o=t[Xx("0xa")][Xx("0x9a")][Xx("0x72")](e),s=o?o.getRange()[Xx("0x19")]():null;s&&r[Xx("0x4b")](s,n)}t[Xx("0xa")][Xx("0x5b")]((t=>{for(const[e,n]of r)t[Xx("0x28")]({...Jx,...n},e)}))}));const a=(e,o)=>{n[Xx("0x59")].registerCustomCallback(e,Xx("0x2d"),o,((s,r,i)=>{t[Xx("0xa")][Xx("0x5b")]((t=>{const x=[];for(const t of s){const e=t[Xx("0x67")].nodeAfter;e.is("element",Xx("0x27"))&&x[Xx("0x24")](e)}n[Xx("0x59")].getSuggestionCallback(e,null,o)(s,r,i);for(const e of x)Xx("0xa3")!=e[Xx("0x98")][Xx("0xb")]&&t[Xx("0x3c")](e)}))}))};a(Xx("0x66"),Xx("0x8e")),a(Xx("0x66"),"discard"),a(Xx("0x22"),Xx("0x8e")),a(Xx("0x22"),"discard"),n._suggestionFactory[Xx("0x15")](Xx("0x66"),Xx("0x9e"),Xx("0xe"),(t=>{const e=t[Xx("0x76")]((t=>t.getContainedElement())),n=e[0][Xx("0x58")](Xx("0x97")),{minRow:r,maxRow:i}=s[Xx("0x92")](e);o[Xx("0x9")](n,{at:r,rows:i-r+1})})),n._suggestionFactory[Xx("0x15")]("insertion","tablePasteColumn","discard",(t=>{const e=t.map((t=>t[Xx("0x19")]())),n=e[0].findAncestor(Xx("0x97")),{minColumn:r,maxColumn:i}=s._getCoordsForCells(e);o[Xx("0x82")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Xx("0x61")]||!e.subType[Xx("0x4a")](Xx("0x2d")))return;const o=e[Xx("0x5f")][Xx("0x47")],s=n[Xx("0x6")]().filter((t=>t[Xx("0x94")]&&t[Xx("0x5f")]&&t[Xx("0x5f")].tablePasteChainId==o));s[Xx("0x6e")]&&e[Xx("0x55")]()[Xx("0x6e")]!=s[Xx("0x6e")]&&s[Xx("0x89")](((t,e)=>(t[Xx("0x1d")]=e,e[Xx("0x14")]=t,e)))};function l(t,e=!0){const{id:o}=n[Xx("0x2b")](t[Xx("0x2a")]),s=[Xx("0x23"),Xx("0x4f")],r=n.activeMarkers[Xx("0xc")](t[Xx("0x2a")]);return r&&s.push(Xx("0x86")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Xx("0x51"),c,{priority:Xx("0x3d")}),n.on(Xx("0x54"),c,{priority:Xx("0x3d")}),t[Xx("0xa")][Xx("0x1")][Xx("0x57")]((()=>{let e=!1;const o=Array[Xx("0x95")](t[Xx("0xa")][Xx("0x1")].differ[Xx("0x4")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Xx("0x2b")](s);if(Xx("0x8a")!=o||Xx("0x22")!=i||r.oldRange)continue;if(!n[Xx("0x3e")](x))continue;const a=n[Xx("0x80")](x)[Xx("0xf")](),c=t[Xx("0x56")][Xx("0x72")](Xx("0x2")).me;for(const t of n[Xx("0x6")]())if(t[Xx("0x94")]&&t[Xx("0x85")]==c&&Xx("0x13")==t[Xx("0x18")]&&Xx("0x3a")==t.subType&&t[Xx("0xf")]()[Xx("0x32")]((t=>a[Xx("0x7d")]((e=>e[Xx("0x26")](t,!0))))))for(const n of t[Xx("0x55")]())n[Xx("0x94")]&&(n[Xx("0xe")](),e=!0)}return e})),t.model[Xx("0x1")][Xx("0x57")]((e=>{const o=t[Xx("0x93")].get(Xx("0x3"));if(!o||!o[Xx("0x90")][Xx("0x65")](e[Xx("0x37")]))return!1;let s=!1;const r=t[Xx("0x56")][Xx("0x72")]("Users").me,i=t[Xx("0xa")][Xx("0x1")][Xx("0x6c")][Xx("0x71")](),x=Array[Xx("0x95")](t[Xx("0xa")].document[Xx("0x6c")][Xx("0x4")]())[Xx("0x6d")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n._splitMarkerName(t);return Xx("0x8a")==o&&"tablePaste"==s&&i==r.id&&!e[Xx("0xa1")]}));for(const t of i){if(Xx("0x29")!=t[Xx("0x18")]||Xx("0x27")!=t[Xx("0x33")]||1!=t[Xx("0x6e")])continue;const n=e[Xx("0xd")](t.position,t[Xx("0x96")].getShiftedBy(1));if(!x[Xx("0x44")]((({data:t})=>t[Xx("0x3b")][Xx("0x68")](n))))for(const{name:t,data:o}of x)if(n.containsRange(o.newRange)){e[Xx("0x2f")](t,{range:n}),s=!0;break}}return s})),t[Xx("0xa")][Xx("0x1")][Xx("0x57")]((e=>{let o=!1;const s=t[Xx("0x56")].get("Users").me,r=n[Xx("0x6")]()[Xx("0x6d")]((t=>t[Xx("0x94")]&&t[Xx("0x85")]==s)),i=new Set,x=new Set;for(const t of r)if("tablePaste"==t[Xx("0x61")])for(const e of t.getMarkers()){const n=e[Xx("0x41")]()[Xx("0x19")]();if(n)if(n.is(Xx("0x74"),"tableCellSuggestion")&&Zx(n)){t.removeMarker(e[Xx("0x33")]),i[Xx("0x87")](n),o=!0;const s=n[Xx("0x0")],r=n[Xx("0x99")],a=s&&s.is(Xx("0x74"),"tableCellSuggestion"),c=r&&r.is("element",Xx("0x27"));a&&!i[Xx("0x65")](s)&&x[Xx("0x87")](s),c&&!i[Xx("0x65")](r)&&x[Xx("0x87")](r)}else n.is(Xx("0x74"),Xx("0x1c"))&&n[Xx("0x38")]&&(t[Xx("0x5d")](e[Xx("0x33")]),o=!0)}else if(Xx("0x3a")==t.subType){if(!t[Xx("0x5f")]||!t[Xx("0x5f")].tablePasteChainId)continue;const e=t[Xx("0x5f")][Xx("0x3f")];if(e&&Object[Xx("0x62")](e).length)continue;const n=t[Xx("0x5f")].tablePasteChainId;let s=!0,i=!0;for(const e of r)if(e.subType&&e[Xx("0x61")][Xx("0x4a")]("tablePaste")){if(!e[Xx("0x5f")][Xx("0x47")]){i=!1;break}if(e.id!=t.id&&e[Xx("0x5f")].tablePasteChainId==n){s=!1;break}}i&&s&&(t[Xx("0x5a")](),o=!0)}for(const t of i)e.remove(t);for(const t of x)e[Xx("0x3c")](t);return o})),t.conversion[Xx("0x25")](Xx("0x81"))[Xx("0x1b")]({model:Xx("0x4e"),view:(t,e)=>l(t),converterPriority:"high"}),t[Xx("0xa0")][Xx("0x25")](Xx("0x42")).markerToHighlight({model:Xx("0x4e"),view:(t,e)=>e[Xx("0x73")][Xx("0x69")]?l(t,!1):null,converterPriority:Xx("0x3d")});const d=t[Xx("0x8")][Xx("0x5e")];this[Xx("0x40")](d[Xx("0x1")],Xx("0x43"),((t,e)=>{const n=[];for(const t of d.createRangeIn(e.content).getItems())t.is(Xx("0x74"),Xx("0x17"))&&n[Xx("0x24")](t);d.change((t=>{for(const e of n)t[Xx("0x2e")](t[Xx("0x45")](e),t[Xx("0x77")](e)),t.remove(e)}))}))}}function Zx(t){if(t.isEmpty)return!0;const e=t[Xx("0x7")](0);return e.is(Xx("0x74"),Xx("0x1c"))&&e.isEmpty}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Xx("0x4d")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["format","handleResizeTableWidthCommand","resizeTableWidth","tableWidth","_descriptionFactory","_suggestionFactory","getSuggestionCallback","accept","has","registerDescriptionCallback","enableCommand","discard","*Format:* resize table","editor","subType","getAttribute","plugins","bind","table","getSelectedElement","formatGroupId","get","TrackChangesEditing","getColumnGroupElement","markBlockFormat","TableColumnResizeEditing","registerCustomCallback","handleSuggestionDescription","resizeColumnWidths","afterInit","getSuggestions","Users","model","locale","formatBlock","resizeTable","author"];var ea,na;ea=ta,na=411,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{[oa("0x19")](){if(!this[oa("0x9")][oa("0xc")][oa("0x4")](oa("0x15")))return;const t=this.editor.plugins[oa("0x11")]("TrackChangesEditing");t[oa("0x6")](oa("0x23"),this[oa("0x22")][oa("0xd")](this)),t.enableCommand(oa("0x18"),this[oa("0x22")].bind(this)),t[oa("0x1")][oa("0x16")](oa("0x1e"),"resizeTable",oa("0x3"),t[oa("0x1")][oa("0x2")](oa("0x1e"),null,oa("0x7"))),t[oa("0x1")][oa("0x16")](oa("0x1e"),oa("0x1f"),oa("0x7"),t[oa("0x1")][oa("0x2")](oa("0x1e"),null,oa("0x3"))),t[oa("0x0")][oa("0x5")](this[oa("0x17")][oa("0xd")](this))}[oa("0x22")](t,e){const n=this.editor[oa("0xc")].get(oa("0x12")),o=this[oa("0x9")][oa("0xc")][oa("0x11")]("TableColumnResizeEditing"),s=e[oa("0xe")]||this[oa("0x9")].model.document.selection[oa("0xf")]();this[oa("0x9")][oa("0x1c")].change((()=>{const r=o[oa("0x13")](s);let i=r?o.getTableColumnsWidths(r):null,x=s[oa("0xb")](oa("0x24"))||null;const a=e.tableWidth||x,c=e.columnWidths||i,l=this[oa("0x9")][oa("0xc")].get(oa("0x1b")).me;for(const t of n[oa("0x1a")]()){const e=t.getContainedElement();if(oa("0x1f")===t[oa("0xa")]&&e===s){t[oa("0x20")]!==l&&t[oa("0x7")]();const e=t.data.commandParams;x=e[0][oa("0x24")],i=e[0].columnWidths;break}}t({table:s,tableWidth:a,columnWidths:c}),n[oa("0x14")](s,{commandName:oa("0x23"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0x1f")},[],oa("0x1f"))}))}[oa("0x17")](t){const{data:e}=t;if(e&&"resizeTable"===e[oa("0x10")]){const t=oa("0x8");return{type:oa("0x21"),content:Yo(this[oa("0x9")][oa("0x1d")],t)}}}}const ra=["enableCommand","Template","TrackChangesEditing","insertTemplate","editor","plugins","has"];var ia,xa;ia=ra,xa=241,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{afterInit(){const t=this[aa("0x1")];t[aa("0x2")][aa("0x3")](aa("0x5"))&&t[aa("0x2")].get(aa("0x6"))[aa("0x4")](aa("0x0"))}}const la=["registerElementLabel","enableCommand","commands","insertTableOfContents","plugins","tableOfContents","ELEMENT_TABLE_OF_CONTENTS","afterInit","get","TrackChangesEditing","_descriptionFactory"];var da,ua;da=la,ua=382,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0xa")](){const t=this.editor;if(!t[ga("0x5")][ga("0x0")](ga("0x6")))return;t[ga("0x7")][ga("0x0")](ga("0x1"))[ga("0x4")](ga("0x6"));const e=t.plugins.get(ga("0x1")),n=t.locale;e[ga("0x2")][ga("0x3")](ga("0x8"),(t=>Yo(n,ga("0x9"),t)))}}const fa=["from","end","removeMarker","registerPostFixer","title-content","model","has","element","getChangedMarkers","registerElementLabel","differ","ELEMENT_TITLE","TrackChangesEditing","plugins","_descriptionFactory","newRange","Title","isEqual","get","locale","start","isCollapsed","createRange","forward","updateMarker","afterInit","schema","suggestion"];var ha,pa;ha=fa,pa=299,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[ba("0x6")](){const t=this.editor;if(!t[ba("0x16")][ba("0xf")](ba("0x19")))return;const e=t[ba("0x16")][ba("0x1b")](ba("0x15"));e[ba("0x17")][ba("0x12")](ba("0xd"),(()=>Yo(t[ba("0x0")],ba("0x14")))),t[ba("0xe")].document[ba("0xc")]((n=>{let o=!1;const s=Array[ba("0x9")](t[ba("0xe")].document[ba("0x13")][ba("0x11")]());for(const{name:r,data:i}of s){const{group:s}=e._splitMarkerName(r);if(ba("0x8")!==s||!i[ba("0x18")])continue;const x=i.newRange,a=x[ba("0xa")].nodeBefore;if(!a||!a.is(ba("0x10"),ba("0xd")))continue;if(!x[ba("0x1")].isTouching(x[ba("0xa")]))continue;const c=t[ba("0xe")][ba("0x7")].getNearestSelectionRange(x[ba("0xa")],ba("0x4"));if(c&&c[ba("0x2")]){const t=n[ba("0x3")](x[ba("0x1")],c.start);t[ba("0x1a")](x)||(n[ba("0x5")](r,{range:t}),o=!0)}o||(n[ba("0xb")](r),o=!0)}return o}))}}const _a=["redo","TrackChangesEditing","afterInit","get","enableCommand","UndoEditing","undo","plugins","editor"];var Ta,ya;Ta=_a,ya=425,function(t){for(;--t;)Ta.push(Ta.shift())}(++ya);const Ca=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[Ca("0x0")](){const t=this[Ca("0x6")],e=t[Ca("0x5")][Ca("0x1")](Ca("0x8"));t[Ca("0x5")].has(Ca("0x3"))&&(e[Ca("0x2")](Ca("0x4")),e.enableCommand(Ca("0x7")))}}const Aa=["plugins","editor","afterInit","TableCaptionEditing","get","toggleTableCaption","requires"];var va,Ra;va=Aa,Ra=200,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Ia=function(t,e){return Aa[t-=0]};class Sa extends t.Plugin{static get[Ia("0x2")](){return[wx]}[Ia("0x5")](){const t=this[Ia("0x4")];t[Ia("0x3")].has(Ia("0x6"))&&t[Ia("0x3")][Ia("0x0")]("TrackChangesEditing").enableCommand(Ia("0x1"))}}const La=["expandListBlocksToCompleteList","isFirstBlockOfListItem","_descriptionFactory","isListItemBlock","listStart","config","change","model","handleListReversedCommand","TrackChangesEditing","selection","handleDescriptions","styles","type","DocumentListUtils","bind","editor","*Format:* set order to regular","list.properties","locale","*Format:* set order to reversed","length","getListTypeFromListStyleType","listReversed","ELEMENT_","document","format","from","listType","registerDescriptionCallback","DocumentListPropertiesEditing","push","get","replace","numbered","_getTranslationKeyForListStyle","_getSuggestionBlocksForListStyle","*Format:* set start index to %0","startIndex","enableCommand","*Change to:* %0","plugins","handleListStartCommand","commandName","listStyle","commandParams","getSelectedBlocks","handleListStyleCommand","markMultiRangeBlockFormat","_getSuggestionBlocks"];var Na,Ma;Na=La,Ma=192,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.editor[wa("0x31")].has(wa("0x26")))return;const t=this.editor[wa("0xd")][wa("0x28")](wa("0x1a")),e=this[wa("0x18")][wa("0x31")][wa("0x28")]("TrackChangesEditing");t[wa("0x14")]&&e[wa("0x2f")]("listStyle",this[wa("0x5")][wa("0x17")](this)),t.reversed&&e.enableCommand(wa("0x1f"),this.handleListReversedCommand[wa("0x17")](this)),t.startIndex&&e[wa("0x2f")]("listStart",this.handleListStartCommand.bind(this)),e[wa("0xa")][wa("0x25")](this[wa("0x13")].bind(this))}[wa("0x5")](t,e={}){const n=this.editor.plugins[wa("0x28")](wa("0x11")),o=this[wa("0x2c")]();this.editor.model[wa("0xe")]((()=>{n[wa("0x6")](o,{commandName:wa("0x2"),commandParams:[{type:e[wa("0x15")]}],formatGroupId:wa("0x2")})}))}[wa("0x10")](t,e={}){const n=this[wa("0x18")].plugins.get(wa("0x11")),o=this.editor.plugins.get("DocumentListUtils"),s=this[wa("0x7")]((t=>o[wa("0xb")](t)&&wa("0x2a")===t.getAttribute(wa("0x24"))));null!==s&&this[wa("0x18")].model[wa("0xe")]((()=>{n[wa("0x6")](s,{commandName:wa("0x1f"),commandParams:[{reversed:e.reversed}],formatGroupId:"listReversed"})}))}[wa("0x0")](t,e={}){const n=this[wa("0x18")][wa("0x31")][wa("0x28")](wa("0x11")),o=this[wa("0x18")][wa("0x31")].get(wa("0x16")),s=this[wa("0x7")]((t=>o.isListItemBlock(t)&&wa("0x2a")===t.getAttribute(wa("0x24"))));null!==s&&this[wa("0x18")][wa("0xf")][wa("0xe")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:wa("0xc"),commandParams:[{startIndex:e[wa("0x2e")]}],formatGroupId:wa("0xc")})}))}[wa("0x13")](t){const e=this.editor[wa("0x1b")],{data:n}=t;if(!n)return;let o,s;switch(n[wa("0x1")]){case"listStyle":o=wa("0x30"),s={type:"format",content:Yo(e,o,Yo(e,this[wa("0x2b")](n[wa("0x3")][0][wa("0x15")])))};break;case wa("0x1f"):o=n[wa("0x3")][0].reversed?wa("0x1c"):wa("0x19"),s={type:wa("0x22"),content:Yo(e,o)};break;case"listStart":o=wa("0x2d"),s={type:wa("0x22"),content:Yo(e,o,n[wa("0x3")][0].startIndex)}}return s}[wa("0x2c")](){const t=this[wa("0x18")][wa("0x31")][wa("0x28")](wa("0x16"));let e=Array[wa("0x23")](this.editor.model[wa("0x21")][wa("0x12")][wa("0x4")]());return e[wa("0x27")](...t[wa("0x8")](e)),e=[...new Set(e)],e}_getSuggestionBlocks(t){const e=this[wa("0x18")][wa("0x31")][wa("0x28")]("DocumentListUtils");let n=Array[wa("0x23")](this[wa("0x18")][wa("0xf")][wa("0x21")][wa("0x12")][wa("0x4")]()).filter(t);if(!n[wa("0x1d")])return null;n=e[wa("0x8")](n);const o=[];for(const t of n)e[wa("0x9")](t)&&o[wa("0x27")](t);return o}[wa("0x2b")](t){return wa("0x20")+this.editor[wa("0x31")][wa("0x28")]("DocumentListPropertiesUtils")[wa("0x1e")](t).toUpperCase()+"_LIST_"+t.toUpperCase()[wa("0x29")](/-/g,"_")}}const Fa=["TableUtils","tableCellHorizontalAlignment","discard","enableCommand","batch","tableWidth","tableCellVerticalAlignment","has","subType","tableHeight","TableCellPropertiesEditing","registerCustomCallback","_handlePropertyChange","tableCellHeight","tableBorderColor","getSuggestionCallback","document","tableCellProperties","tableBackgroundColor","handleSuggestionDescription","plugins","getSelectionAffectedTableCells","table","getContainedElement","tableCellBackgroundColor","TablePropertiesEditing","*Format:* change table cell properties","_suggestionFactory","locale","data","enqueueChange","removeAttribute","pluginName","change","nodeAfter","handleDiscardAction","tableProperties","getSuggestions","findAncestor","tableCellBorderColor","tableBorderWidth","_getSuggestion","afterInit","get","editor","selection","model","markBlockFormat","tableBorderStyle","commandParams","tableCellPadding","TrackChangesEditing","formatBlock","accept","getFirstPosition","format","tableCellBorderStyle","join","start","tableCellWidth"];var Pa,Da;Pa=Fa,Da=385,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=[Ba("0x31"),Ba("0x17"),Ba("0xf"),"tableAlignment",Ba("0x28"),Ba("0x2c"),Ba("0x35")],this.tableCellProperties=[Ba("0xe"),Ba("0x1f"),"tableCellBorderWidth",Ba("0x19"),Ba("0x22"),Ba("0x30"),Ba("0x3b"),Ba("0x24"),Ba("0x29")]}static get[Ba("0x7")](){return"TrackChangesTableProperties"}[Ba("0x11")](){const t=this[Ba("0x13")].plugins[Ba("0x12")]("TrackChangesEditing");if(this[Ba("0x13")][Ba("0x37")][Ba("0x2a")](Ba("0x0"))){for(const e of this.tableProperties)t.enableCommand(e,((t,n)=>{const o=this[Ba("0x13")].model[Ba("0x33")].selection[Ba("0x1d")]()[Ba("0xd")](Ba("0x39"));this._handlePropertyChange(e,[o],this[Ba("0xb")],Ba("0xb"),t,n)}));t._suggestionFactory.registerCustomCallback(Ba("0x1b"),"tableProperties","accept",t[Ba("0x2")][Ba("0x32")](Ba("0x1b"),null,"discard")),t[Ba("0x2")][Ba("0x2e")](Ba("0x1b"),Ba("0xb"),Ba("0x25"),((t,e)=>this[Ba("0xa")](this[Ba("0xb")],t,e))),t[Ba("0x2")].registerCustomCallback(Ba("0x1b"),"tableProperties",Ba("0x20"),(()=>!1))}if(this[Ba("0x13")][Ba("0x37")][Ba("0x2a")](Ba("0x2d"))){for(const e of this[Ba("0x34")])t[Ba("0x26")](e,((t,n)=>{const o=this.editor.plugins[Ba("0x12")](Ba("0x23"))[Ba("0x38")](this[Ba("0x13")][Ba("0x15")][Ba("0x33")][Ba("0x14")]);this[Ba("0x2f")](e,o,this.tableCellProperties,Ba("0x34"),t,n)}));t._suggestionFactory[Ba("0x2e")](Ba("0x1b"),Ba("0x34"),Ba("0x1c"),t[Ba("0x2")][Ba("0x32")](Ba("0x1b"),null,Ba("0x25"))),t[Ba("0x2")][Ba("0x2e")](Ba("0x1b"),Ba("0x34"),Ba("0x25"),((t,e)=>this[Ba("0xa")](this.tableCellProperties,t,e))),t[Ba("0x2")][Ba("0x2e")](Ba("0x1b"),Ba("0x34"),Ba("0x20"),(()=>!1))}t._descriptionFactory.registerDescriptionCallback((t=>this[Ba("0x36")](t)))}_handlePropertyChange(t,e,n,o,s,r){const i=this[Ba("0x13")].plugins[Ba("0x12")](Ba("0x1a"));this[Ba("0x13")][Ba("0x15")][Ba("0x5")](r[Ba("0x27")],(()=>{for(const t of e)if(this[Ba("0x10")](t,o))s(r);else{const e={};for(const o of n){const n=t.getAttribute(o);void 0!==n&&(e[o]=n)}s(r),i[Ba("0x16")](t,{commandParams:[e]},[],o)}}))}[Ba("0xa")](t,e,n){const o=e[0][Ba("0x21")][Ba("0x9")],s=n[Ba("0x18")][0];this.editor.model[Ba("0x8")]((e=>{for(const n of t)void 0!==s[n]?e.setAttribute(n,s[n],o):e[Ba("0x6")](n,o)}))}handleSuggestionDescription(t){if(t[Ba("0x4")])switch(t[Ba("0x2b")]){case Ba("0xb"):return{type:Ba("0x1e"),content:Yo(this[Ba("0x13")].locale,"*Format:* change table properties")};case"tableCellProperties":return{type:Ba("0x1e"),content:Yo(this.editor[Ba("0x3")],Ba("0x1"))}}}[Ba("0x10")](t,e){const n=this[Ba("0x13")].plugins[Ba("0x12")]("TrackChangesEditing");for(const o of n[Ba("0xc")]({skipNotAttached:!0})){const n=o[Ba("0x3a")]();if(o[Ba("0x2b")]===e&&n===t)return o}return null}}const Ua=["moveTargetPosition","consume","schema","targetPosition","dataReady","updateMarker","enableCommand","high","suggestionChanged","isBefore","createPositionAt","$textProxy","data-suggestion","createPositionBefore","markInlineFormat","formatInline:discard","getCustomProperty","head","_setSuggestionData","type","detach","getLastMatchingPosition","consumable","track-changes-suggestion-data-mismatch","isMultiRange","ck-suggestion-marker","creator","trackChangesCommand","root","containsItem","markerReady","_defaultCallbacks","oldRange","chain","isDocumentOperation","insertion:discard","setTo","_getSuggestionData","removeMarker:suggestion:formatBlock","upcast","editing","skipNestingCheck","Users","_refreshSuggestionsChain","addMarker","document","options","requires","isInsideObject","createElement","_getExternalAuthor","markBlockFormat","nodeBefore","rejected","hasComments","locale","isAfter","editor","previous","includes","ck-suggestion-marker--active","insertion:accept","default","external:","deletion:join","newRange","_mergeNestedSuggestions","remove","unbind","formatGroupId","applyOperation","activeMarkers","getRanges","deletion","error-saving-suggestion-data-suggestion-discarded","normal","_addSuggestionMarker","return","model","getSuggestions","isTouching","ready","differ","clear","data","isNextTo","change","resolve","addUser","dataDowncast","getCommentThread","catch","range","addMarkerName","getIntersection","marker-count","@external","formatBlock","deletion:","stop","init","refresh","authoredAt","isSelectable","_suggestionState","formatInline:","_onDiscard","insertion:","change:data","markDeletion","getNearestSelectionRange","createSelection","formatInline:accept","removeClass","hasCommentThread","subType","createdAt","markMultiRangeInsertion","batch","every","elementStart","suggestionLoaded","getSuggestionCallback","addCommentThread","acceptSelectedSuggestions","_handleNewSuggestionMarker","_suggestionFactory","discardAllSuggestions","toViewElement","containsRangeInObject","_addThreadToSuggestion","_removeSuggestion","howMany","discard","accepted","_registerDefaultCallbacks","commandName","start","fromCharCode","track-changes-adapter-missing-getsuggestion","define","author","config","pluginName","getChanges","authorName","addMarker:suggestion","size","formatBlock:","getAncestors","ck-suggestion-marker-formatBlock","removed","enableReadOnlyMode","formatBlock:discard","addHighlight","next","markMultiRangeDeletion","_saved","listenTo","_updateSuggestionData","then","group","_adapter","removeMarkers","addSuggestionData","highest","_breakSuggestionMarker","getRange","multi","attributes","getWalker","_joinWithAdjacentSuggestions","acceptSuggestion","_splitMarkerName","adapter","commands","$graveyard","insert","forward","toJSON","suggestion:","getChangedMarkers","deletion:discard","_enabledCommands","trackChanges.mergeNestedSuggestions","notReady","discardSuggestion","_rangeIsInLocalUserInsertion","CommentsRepository","getShiftedBy","split","mapper","removeMarker","position","splitPosition","accept","selection","isLimit","addRange","stopListening","never","_setSuggestionRange","updateSuggestion","reconvertMarker","_cutOutSuggestionMarker","getSuggestion","execute","map","elementEnd","_checkSuggestionCorrectness","containerElement","documentSelection","addMarker:suggestion:formatBlock","fromRange","isObject","isCollapsed","commentThread","some","addComment","editingDowncast","dataToMarker","_trackFormatChanges","nodeAfter","getUser","for","markInsertion","acceptAllSuggestions","isBlock","end","isAtEnd","isInContent","delete","insertion","lowest","_customCallbacks","isEqual","backward","setAttribute","markerToHighlight","filter","after","update:suggestion","$marker","multipleBlocks","removeComment","markers","insertContent","setSelection","parent","_model","createPositionAfter","trackChanges.trackFormatChanges","join","isOwn","PendingActions","PENDING_ACTION_SUGGESTION","addClass","conversion","rootName","deletion:chain","originalSuggestionId","get","value","_isForcedDefaultExecutionBlock","length","low","rethrowUnexpectedError","_getAuthorFromId","splice","suggestion","getAttribute","_joinSuggestions","plugins","TrackChangesEditing","push","ck-suggestion-marker-","elementToElement","containsRange","element","_findSuggestions","containsPosition","getFirstRange","forceDefaultExecution","buildSuggestion","fire","markMultiRangeBlockFormat","markerName","set","values","suggestionUnloaded","addSuggestion","isRemovable","createRange","_editor","track-changes-suggestion-not-found","name","deleteContent","writer","fetchCommentThread","createRangeIn","_suggestions","always","_commentsRepository","isExternal","sort","registerPostFixer","formatBlock:accept","move","insertion:chain","getFirstMarker","_descriptionFactory","removeAttribute","getMultiRangeId","formatInline","formatBlock:chain","substr","getAllAdjacentSuggestions","has","add","track-changes-user-not-found","item","from"];var Ga,Ha;Ga=Ua,Ha=485,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("0xce")](){return[za("0x19"),r.Users,t.PendingActions,cs,ys,Rs,ws,Bs,Ws,Js,er,Oa,xr,ur,br,Cr,Lr,Pr,Gr,Kr,Qr,ni,xi,ui,pi,yi,Ri,Oi,ji,Wi,$i,tx,ix,ux,px,Cx,Ix,wx,jx,Wx,Sa,Qx,sa,ma,ja,ca,Ea,ka]}static get[za("0x12e")](){return za("0x6e")}constructor(t){function e(t){return t.map((t=>String[za("0x129")](t)))[za("0x59")]("")}super(t),this[za("0x7c")](za("0xe6"),[]),this.on("change:activeMarkers",((e,n,o,s)=>{this[za("0x56")][za("0xf5")]((()=>{for(const e of[...s,...o])this[za("0x56")][za("0x52")][za("0x9a")](e)&&t[za("0xc7")][za("0x28")](e)}))})),this[za("0x93")]=new ss(this[za("0xd8")][za("0xed")][za("0xa1")],this.editor[za("0xd6")]),this[za("0x141")]=null,this._suggestionFactory=new Va(this[za("0xd8")]),this[za("0x89")]=new Map,this[za("0x8b")]=t[za("0x6d")].get(za("0x19")),this[za("0x14")]=new Set,this[za("0x56")]=this[za("0xd8")].model,this[za("0x107")]=new WeakMap,this[za("0x64")]=!1,t[za("0x12d")][za("0x12b")](za("0x58"),za("0xdd")),this._trackFormatChanges=t[za("0x12d")][za("0x62")](za("0x58")),t[za("0x12d")][za("0x12b")](za("0x15"),!0),this[za("0xe1")]=t[za("0x12d")][za("0x62")](za("0x15")),this[za("0xba")]=new u(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,52,52,50])}[za("0x103")](){const t=this[za("0xd8")];t.conversion[za("0x3d")](za("0x38"))[za("0x4b")]({model:"suggestion",view:t=>{const{id:e,type:n}=this[za("0xa")](t[za("0x7b")]),o=[za("0xb8"),"ck-suggestion-marker-"+n];let s=3e3;return this[za("0xe6")][za("0xda")](t[za("0x7b")])&&(o.push(za("0xdb")),s=3010),za("0xe8")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[za("0x5e")].for("dataDowncast")[za("0x9b")]((e=>{e.on(za("0x131"),((e,n,o)=>{if(!o[za("0xcd")].showSuggestionHighlights)return;const s=n[za("0x9d")];if(!s)return;const r=o.mapper[za("0x11f")](s);t[za("0xed")][za("0xa1")][za("0x33")](s)&&r&&!r[za("0xaf")]("widget")&&r.is(za("0x2f"))&&(0,x.toWidget)(r,o[za("0x86")])}),{priority:za("0xa6")})})),t[za("0x5e")][za("0x3d")](za("0xf8")).markerToHighlight({model:za("0x6a"),view:(t,e)=>{if(!e[za("0xcd")].showSuggestionHighlights)return null;const{type:n}=this._splitMarkerName(t[za("0x7b")]);return{classes:[za("0xb8"),za("0x70")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[za("0x9d")])return;if(o[za("0x9d")].is("selection"))return void s[za("0xb5")].consume(o[za("0x9d")],n[za("0x84")]);const r=s.mapper[za("0x11f")](o[za("0x9d")]);if(!o.item.is(za("0x73"))||!t[za("0xed")][za("0xa1")].isBlock(o[za("0x9d")])||r[za("0xaf")](za("0x139")))return;const{id:i}=this[za("0xa")](o[za("0x7b")]);s[za("0x86")][za("0x5d")]([za("0xb8"),za("0x135")],r),s[za("0x86")][za("0x4a")](za("0xab"),i,r),s[za("0x1c")].bindElementToMarker(r,o[za("0x7b")]),e&&(this.activeMarkers[za("0xda")](o[za("0x7b")])?s[za("0x86")].addClass(za("0xdb"),r):s.writer[za("0x110")](za("0xdb"),r));for(const e of t[za("0xed")][za("0x88")](o[za("0x9d")]).getItems())s[za("0xb5")][za("0xa0")](e,n[za("0x84")]);s[za("0xb5")].consume(o[za("0x9d")],n[za("0x84")])};t.conversion.for(za("0xf8")).add((t=>{t.on(za("0x31"),((t,e,o)=>{o[za("0xcd")].showSuggestionHighlights&&n({showActiveMarkers:!1})(t,e,o)}),{priority:za("0x2")})})),t.conversion[za("0x3d")](za("0xf8")).markerToData({model:za("0x6a"),view:(t,e)=>e[za("0xcd")].showSuggestionHighlights?null:{group:za("0x6a"),name:t[za("0x98")](11)}}),t.conversion[za("0x3d")]("upcast")[za("0x71")]({view:{name:za("0x6a"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=za("0x11")+t[za("0x6b")]("suggestion-type")+":"+t.getAttribute("id");return t.getAttribute(za("0xfe"))&&(n+=":"+t.getAttribute(za("0xfe"))),e[za("0xd0")](za("0x4f"),{"data-name":n})}}),t[za("0x5e")][za("0x3d")](za("0xc6"))[za("0x39")]({view:"suggestion"}),t[za("0x5e")][za("0x3d")](za("0x38"))[za("0x9b")]((t=>{t.on("addMarker:suggestion:formatBlock",n(),{priority:za("0xa6")})})),t.conversion[za("0x3d")](za("0x38"))[za("0x9b")]((t=>{t.on(za("0xc5"),((t,e,n)=>{const o=n[za("0x1c")].markerNameToElements(e[za("0x7b")]);if(o)for(const t of o)t[za("0xaf")](za("0x139"))||(n[za("0x86")][za("0x110")]([za("0xb8"),za("0x135"),za("0xdb")],t),n[za("0x86")][za("0x94")]("data-suggestion",t),n[za("0x1c")].unbindElementFromMarkerName(t,e[za("0x7b")]))}),{priority:za("0xa6")})})),t[za("0xed")][za("0xcc")][za("0x8e")]((e=>{let n=!1;const o=Array[za("0x9e")](t.model[za("0xcc")][za("0xf1")][za("0x12")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this._splitMarkerName(x);if(za("0x6a")!==o)continue;const d=this[za("0x89")][za("0x62")](l);if(null!=a[za("0xe0")])if("formatInline"==c&&(n=n||Xa(a[za("0xe0")],x,e,t[za("0xed")][za("0xa1")])),a[za("0xe0")][za("0x34")]||za("0xd")==a[za("0xe0")][za("0xbb")].rootName||za("0x100")==c&&!Ja(a.newRange)||za("0xe8")==c&&(qa(i=a[za("0xe0")])||(r=i)[za("0x128")][za("0x55")]==r[za("0x41")][za("0xd3")]&&r.start.isAtEnd))e[za("0x1d")](x),n=!0;else{if(!d||!d[za("0x43")])continue;s[za("0x9b")](d)}}var r,i;return s[za("0x132")]>0&&(n=!!this[za("0x8")](s)||n),n})),t.model[za("0xcc")].registerPostFixer((e=>{let n=!1;for(const o of t[za("0xed")][za("0xcc")][za("0xf1")][za("0x12f")]()){if(za("0xe")!=o.type)continue;const s=o[za("0x1e")].getShiftedBy(o[za("0x65")]);if(s[za("0x42")])for(const r of this[za("0x89")][za("0x7d")]()){if(r.isMultiRange||!r[za("0x43")])continue;if("formatBlock"!=r[za("0xb2")])continue;const i=r[za("0x76")]();if(i[za("0x128")][za("0x55")]!=i.end[za("0x55")]&&i[za("0x41")][za("0x48")](o[za("0x1e")])){const o=t.model[za("0x81")](i[za("0x128")],s);e[za("0xa4")](r[za("0x92")](),{range:o}),n=!0}}}return n})),t[za("0xed")][za("0x52")].on(za("0x4e"),((t,e,n)=>{if(null==n){const{id:t}=this._splitMarkerName(e[za("0x84")]),n=this._suggestions[za("0x62")](t);n&&n[za("0xfc")](e[za("0x84")])}})),t[za("0xed")][za("0xcc")].on(za("0x10b"),(()=>{const e=Array[za("0x9e")](t[za("0xed")][za("0xcc")][za("0xf1")][za("0x12")]())[za("0x4c")]((t=>za("0x6a")===this[za("0xa")](t[za("0x84")])[za("0x140")]));if(0===e[za("0x65")])return;e[za("0x8d")](((t,e)=>{const n=t.data.oldRange,o=e[za("0xf3")][za("0xbf")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[za("0x128")][za("0xa8")](o[za("0x128")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[za("0xa")](t);if(null===s[za("0xbf")]){const e=this._handleNewSuggestionMarker(t);o[za("0x9b")](e)}else{const t=this._suggestions[za("0x62")](e);null!==s[za("0xe0")]||t[za("0x43")]?(n[za("0x9b")](t[za("0xb0")]),o.add(t)):this[za("0x122")](t)}}o[za("0x132")]>0&&this._refreshSuggestionsChain(o);for(const t of n)this[za("0x79")](za("0xa7"),t)})),t[za("0xed")].on(za("0xe5"),((e,n)=>{const o=n[0];if(!this[za("0x89")][za("0x132")])return;if(!o[za("0xc1")])return;if(o[za("0x115")].isUndo||!o[za("0x115")].isLocal)return;let s,r;switch(o[za("0xb2")]){case za("0xe"):s=t[za("0xed")][za("0xa9")](o[za("0x1e")]),r=s[za("0x1a")](o[za("0x123")]);break;case za("0x1b"):s=t[za("0xed")][za("0xa9")](o[za("0x1f")]),r=t[za("0xed")].createPositionAt(o[za("0x9f")]);break;case za("0x90"):s=t[za("0xed")][za("0xa9")](o[za("0xa2")]),r=s[za("0x1a")](o[za("0x123")]);break;default:return}const i=t[za("0xed")][za("0x81")](s,r);t.model[za("0xf5")]((()=>{for(const{suggestion:t,meta:e}of this[za("0x74")](i)){if(t[za("0xb7")])continue;if("formatInline"==t[za("0xb2")])continue;const n=t[za("0xf3")]&&t[za("0xf3")][za("0x50")];("formatBlock"!=t[za("0xb2")]||za("0x1b")==o[za("0xb2")]&&!n)&&(e[za("0x120")]||"insertion"==t[za("0xb2")]&&e[za("0x5a")]||t[za("0x76")]().containsRange(i)&&this[za("0x3")](t,s,r))}}))}),{priority:za("0x46")}),t[za("0xed")].on(za("0x85"),((e,n)=>{const o=n[0],s=n[1];if(s&&s[za("0x77")])return;if(this[za("0x64")])return;if(!this.trackChangesCommand[za("0x63")])return;if(o[za("0x34")])return;const r=t[za("0xed")][za("0xa1")],{start:i,end:x}=o[za("0x76")](),a=i[za("0x3b")]&&r.isLimit(i[za("0x3b")])?null:r[za("0x10d")](i,za("0xf")),c=x.nodeBefore&&r[za("0x22")](x[za("0xd3")])?null:r[za("0x10d")](x,za("0x49")),l=t[za("0xed")][za("0x81")](a?a[za("0x128")]:i,c?c[za("0x41")]:x);t[za("0xed")][za("0xf5")]((e=>{this.markDeletion(l);const n=t[za("0xed")][za("0xa1")][za("0x10d")](l[za("0x128")]);o.is(za("0x30"))?e[za("0x54")](n):o[za("0xc3")](n)})),e[za("0x102")]()}),{priority:e.priorities[za("0xea")]+10}),t[za("0xed")].on(za("0x53"),((e,n)=>{const o=n[n[za("0x65")]-1];o&&o[za("0x77")]||this[za("0x64")]||this[za("0xba")][za("0x63")]&&(t.model[za("0xf5")]((()=>{let o=t[za("0xed")][za("0x53")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[za("0xec")]=o.clone();const s=o[za("0x41")][za("0xd3")],r=t.model.schema;s&&r[za("0x40")](s)&&!r[za("0x33")](s)&&(o=t[za("0xed")][za("0x81")](o.start,t[za("0xed")][za("0xa9")](s,za("0x41")))),this[za("0x3e")](o)})),e[za("0x102")]())}),{priority:za("0xa6")}),this[za("0xd8")][za("0xc")][za("0x9b")]("trackChanges",this[za("0xba")]),this[za("0xa5")]("trackChanges");const o=new p(t,this[za("0x89")]);t[za("0xc")].add("acceptSuggestion",o),this[za("0xa5")](za("0x9"));const s=new y(t,this[za("0x89")]);t[za("0xc")][za("0x9b")](za("0x17"),s),this[za("0xa5")](za("0x17")),t[za("0xc")][za("0x9b")](za("0x3f"),new F(t,o,this._suggestions)),this[za("0xa5")](za("0x3f")),t[za("0xc")][za("0x9b")]("discardAllSuggestions",new F(t,s,this[za("0x89")])),this[za("0xa5")](za("0x11e")),t.commands.add(za("0x11b"),new U(t,o,this._suggestions)),this[za("0xa5")](za("0x11b")),t[za("0xc")][za("0x9b")]("discardSelectedSuggestions",new U(t,s,this[za("0x89")])),this[za("0xa5")]("discardSelectedSuggestions");const r=t.plugins[za("0x62")](za("0x19"));this[za("0x13d")](r,za("0x37"),((t,{threadId:e})=>{const n=this[za("0x89")].get(e);n&&n[za("0x35")]&&1===n[za("0x35")][za("0x65")]&&this._updateSuggestionData(e,{hasComments:!0})}),{priority:za("0x66")}),this[za("0x13d")](r,za("0x51"),((t,{threadId:e})=>{const n=this[za("0x89")][za("0x62")](e);n&&n.commentThread&&!n[za("0x35")][za("0x65")]&&this[za("0x13e")](e,{hasComments:!1})}),{priority:za("0x66")})}set[za("0xb")](t){if(this[za("0x141")])throw new e.CKEditorError("track-changes-adapter-already-set",this);this._adapter=t}get adapter(){return this[za("0x141")]}[za("0xee")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions[za("0x7d")]())t&&!e[za("0x43")]||n[za("0x6f")](e);return e?n[za("0x2c")]((t=>t[za("0x10")]())):n}getSuggestion(t){const n=this[za("0x89")][za("0x62")](t);if(!n)throw new e.CKEditorError(za("0x83"),this);return n}hasSuggestion(t){return this._suggestions.has(t)}[za("0x1")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[za("0xb2")].split(":"),i=this[za("0x89")][za("0x62")](n)||this._createSuggestion(s,r,n,e,o);if(this[za("0x121")](i),this[za("0x2e")](i,s,r||null,e),i[za("0x113")]=t[za("0x113")],o&&o[za("0xff")]){const t=o["@external"],e=this[za("0xd1")](t[za("0x130")]);i[za("0x105")]=t[za("0x113")],i[za("0x12c")]=e,i[za("0x8c")]=!0}else i[za("0x105")]=t[za("0x113")];switch(t[za("0xf3")]&&(i.data=t[za("0xf3")]),t[za("0x6")]&&(i[za("0x6")]=t.attributes),this[za("0x141")]&&this[za("0x141")][za("0x7f")]||(i._saved=!0),this[za("0x107")][za("0x62")](i)){case za("0x16"):this._suggestionState[za("0x7c")](i,za("0xa3"));break;case"markerReady":i.isInContent?(this._suggestionState.set(i,za("0xf0")),this[za("0x79")](za("0x118"),i)):this._suggestionState[za("0x7c")](i,"removed")}return i}[za("0x9")](t){this[za("0x77")]((()=>{this[za("0xd8")][za("0xed")][za("0xf5")]((()=>{for(const e of t[za("0x99")]())e[za("0x20")]()}))}))}[za("0x17")](t){this[za("0x77")]((()=>{this.editor[za("0xed")][za("0xf5")]((()=>{for(const e of t[za("0x99")]())e[za("0x124")]()}))}))}[za("0xa5")](t,n){const o=this.editor[za("0xc")][za("0x62")](t);if(!o)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});this[za("0x14")].add(o),n&&o.on(za("0x2b"),((t,e)=>{this[za("0xba")][za("0x63")]&&(this._isForcedDefaultExecutionBlock||e[za("0x65")]>0&&e[e[za("0x65")]-1]&&e[e[za("0x65")]-1][za("0x77")]||(n(((...t)=>o[za("0x2b")](...t,{forceDefaultExecution:!0})),...e),t[za("0x102")]()))}),{priority:"high"})}[za("0x77")](t){let n,o;const s=this[za("0x64")];this[za("0x64")]=!0;try{n=t()}catch(t){o=t}return s||(this[za("0x64")]=!1),o&&e.CKEditorError[za("0x67")](o,this),n}[za("0x3e")](t,n=null,o={}){if(t.isCollapsed)return null;const s=this[za("0xd8")][za("0x6d")][za("0x62")](za("0xc9")).me;for(const{suggestion:e,meta:o}of this[za("0x74")](t,za("0x45")))if(o[za("0x5a")]){if(!o.isNextTo){if(!this._mergeNestedSuggestions&&o[za("0x120")])continue;return e}if(n==e[za("0x112")]){const n=e[za("0x76")]();return n[za("0x128")][za("0x48")](t.end)?this[za("0x26")](e,this[za("0x56")][za("0x81")](t[za("0x128")],n.end)):this[za("0x26")](e,this[za("0x56")][za("0x81")](n[za("0x128")],t[za("0x41")])),e}}const r=(0,e.uid)(),i=s.id,x=n?za("0x10a")+n:za("0x45"),a=this[za("0xb1")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this._addSuggestionMarker(x,r,i,t),a}[za("0x114")](t,n="multi",o={}){const s=this[za("0xd8")][za("0x6d")][za("0x62")](za("0xc9")).me,r=this[za("0x11d")].getSuggestionCallback(za("0x45"),n,za("0x59"));for(const e of this.getSuggestions())if(e[za("0x12c")].id==s.id&&za("0x45")==e[za("0xb2")]&&e[za("0x112")]==n&&(r(e[za("0xe7")](),t)||r(t,e[za("0xe7")]()))){for(const n of t)e.addRange(n);return e}if(this[za("0xe1")])for(const e of t)for(const{suggestion:n,meta:o}of this[za("0x74")](e,"insertion")){if(!o[za("0x5a")])continue;let e=!0;for(const o of n[za("0xe7")]())for(const n of t)if(!o[za("0x72")](n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=s.id,a=za("0x10a")+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("0x95")]());return c}[za("0xad")](t,n,o=null,s={}){if(o=o||$a(n),t[za("0x34")])return null;if("never"===this[za("0x3a")]){const e=this[za("0x11d")][za("0x119")](za("0x96"),o,za("0x20"));return this[za("0x77")]((()=>e([t],n,s))),null}const r=this[za("0xd8")][za("0x6d")].get("Users").me,i=[];if(za("0x8a")!==this._trackFormatChanges)for(const{suggestion:e,meta:n}of this[za("0x74")](t,za("0x45")))n[za("0x5a")]&&!n[za("0xcf")]&&i[za("0x6f")](...e[za("0xe7")]());const x=function(t,e){const n=[];for(const o of e){const e=t[za("0xfd")](o);e&&n[za("0x6f")](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].getDifference(t);n[za("0x69")](e,1,...o),e+=o.length}}return n}(t,i);x[za("0x65")]&&this[za("0x56")][za("0xf5")]((()=>{for(const t of x){const e=this[za("0x11d")][za("0x119")](za("0x96"),o,za("0x20"));this[za("0x77")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[za("0x128")],a=t[za("0x41")];for(const{suggestion:e,meta:n}of this[za("0x74")](t,za("0x96"))){if(!n[za("0x5a")])continue;if(e[za("0x112")]!=o)continue;const s=e[za("0x76")]();if(s[za("0x72")](t,!0))return null;x=x.isBefore(s[za("0x128")])?x:s.start,a=a[za("0xd7")](s[za("0x41")])?a:s[za("0x41")],i?s[za("0x128")][za("0xa8")](i[za("0x76")]()[za("0x128")])?(i[za("0x0")](),i=e):e[za("0x0")]():i=e}const c=this[za("0x56")][za("0x81")](x,a);if(i)this[za("0x26")](i,c);else{const t=(0,e.uid)(),i=r.id;this[za("0xb1")]({id:t,type:za("0x108")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[za("0xeb")]("formatInline:"+o,t,i,c)}}return null}[za("0xd2")](t,n,o=[],s=null,r={}){n[za("0xe4")]||(n[za("0xe4")]=n[za("0x127")]),n[za("0x50")]=t.is(za("0xfb")),s=s||$a(n);const i=o[za("0x2c")]((t=>Qa(t,this[za("0x56")]))),x=t.is(za("0xfb"))?t:Qa(t,this[za("0x56")]);if(za("0x25")===this._trackFormatChanges){const t=this[za("0x11d")][za("0x119")](za("0x100"),s,za("0x20"));return this.forceDefaultExecution((()=>t([x],n,r))),null}i.push(x);let a=!0;for(const t of i)if(!this[za("0x18")](t)){a=!1;break}if(a&&"always"!==this[za("0x3a")]){const t=this._suggestionFactory.getSuggestionCallback(za("0x100"),s,za("0x20"));return this[za("0x77")]((()=>t([x],n,r))),null}let c=null,l=x[za("0x128")],d=x[za("0x41")];for(const{suggestion:t,meta:e}of this[za("0x74")](x,za("0x100"))){if(!e[za("0x5a")]||e[za("0xf4")]||e[za("0x120")]||e.isInsideObject)continue;if(t.data[za("0xe4")]!=n[za("0xe4")])continue;const o=t[za("0x76")]();if(t[za("0x112")]==s){if(o[za("0x72")](x,!0))return null;l=l.isBefore(o[za("0x128")])?l:o[za("0x128")],d=d[za("0xd7")](o.end)?d:o[za("0x41")],c?o[za("0x128")][za("0xa8")](c.getFirstRange()[za("0x128")])?(c[za("0x0")](),c=t):t[za("0x0")]():c=t}else{const e=x[za("0xfd")](o);this[za("0x29")](t,e)}}const u=this.editor[za("0x6d")][za("0x62")](za("0xc9")).me,g=(0,e.uid)(),m=u.id;if(c)return this[za("0x26")](c,this[za("0x56")][za("0x81")](l,d)),c;{const t=this[za("0xb1")]({id:g,type:za("0x133")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[za("0xeb")](za("0x133")+s,g,m,this[za("0x56")][za("0x81")](l,d)),t}}[za("0x7a")](t,n,o=[],s=null,r={}){n[za("0xe4")]||(n.formatGroupId=n[za("0x127")]);const i=t[0];n[za("0x50")]=i.is(za("0xfb")),s=s||$a(n);const x=o[za("0x2c")]((t=>Qa(t,this[za("0x56")]))),a=i.is("range")?t:t[za("0x2c")]((t=>Qa(t,this._model)));if(za("0x25")===this[za("0x3a")]){const t=this[za("0x11d")][za("0x119")](za("0x100"),s,za("0x20"));return this.forceDefaultExecution((()=>t(a,n,r))),null}x.push(...a);let c=!0;for(const t of x)if(!this[za("0x18")](t)){c=!1;break}if(c&&za("0x8a")!==this[za("0x3a")]){const t=this[za("0x11d")][za("0x119")](za("0x100"),s,za("0x20"));return this[za("0x77")]((()=>t(a,n,r))),null}const l=this[za("0xd8")].plugins[za("0x62")](za("0xc9")).me;for(const t of this[za("0xee")]()){if(t[za("0x12c")].id!=l.id)continue;if(za("0x100")!=t[za("0xb2")]||t[za("0xf3")][za("0xe4")]!=n[za("0xe4")])continue;const e=t[za("0x112")]==s;for(let n=0;n<a[za("0x65")];n++){const o=a[n];for(const s of t.getMarkers()){const r=s[za("0x4")]();if(o[za("0x48")](r)){e?(a[za("0x69")](n,1),n--):t[za("0x1d")](s[za("0x84")]);break}}}}if(0==a.length)return null;const d=this._suggestionFactory[za("0x119")](za("0x100"),s,za("0x59"));for(const t of this.getSuggestions())if(t[za("0x12c")].id==l.id&&za("0x100")==t[za("0xb2")]&&t.data[za("0xe4")]==n[za("0xe4")]&&t.subType==s&&(d(t.getRanges(),a)||d(a,t.getRanges()))){for(const e of a)t[za("0x23")](e);return t}const u=(0,e.uid)(),g=l.id,m=za("0x133")+s,f=this._setSuggestionData({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[za("0xeb")](m,u,g,t,Zo.getMultiRangeId());return f}[za("0x10c")](t,n=null,o={}){if(t[za("0x34")])return null;const s=this.editor[za("0x6d")].get(za("0xc9")).me,r=new i.LiveRange(t.start,t[za("0x41")]);for(const{suggestion:t,meta:e}of this._findSuggestions(r,"insertion"))if(e.isOwn&&!e[za("0xf4")])if(t.isMultiRange){const e=t[za("0xe7")]()[za("0x4c")]((t=>za("0xd")!=t[za("0xbb")][za("0x5f")]));if(e[za("0x116")]((t=>r[za("0x72")](t,!0)))&&t.discard(),e[za("0x36")]((t=>t[za("0x72")](r,!0)))){const t=this[za("0x11d")][za("0x119")](za("0xe8"),n,"accept");return this[za("0x77")]((()=>t([r],null,o))),null}}else{const e=r[za("0xfd")](t.getFirstRange());null!==e&&t[za("0x109")]([e],null,o)}if(r[za("0xb3")](),r[za("0x34")]||"$graveyard"==r[za("0xbb")][za("0x5f")])return null;let x=null,a=r[za("0x128")],c=r[za("0x41")];for(const{suggestion:t,meta:e}of this[za("0x74")](r,za("0xe8")))if(e[za("0x5a")])if(t[za("0xb7")]&&this[za("0xe1")]){let e=!0;for(const n of t[za("0xe7")]()){if(n.containsRange(r,!0))return t;r.containsRange(n)||(e=!1)}e&&t[za("0x124")]()}else{const n=t[za("0x76")]();if(n.containsRange(r,!0)){if(!this[za("0xe1")]&&e.containsRangeInObject)continue;return t}a=a[za("0xa8")](n[za("0x128")])?a:n[za("0x128")],c=c[za("0xd7")](n[za("0x41")])?c:n[za("0x41")],x?n.start[za("0xa8")](x[za("0x76")]()[za("0x128")])?(x[za("0x0")](),x=t):t[za("0x0")]():x=t}if(x)return this[za("0x26")](x,this._model.createRange(a,c)),x;{const t=(0,e.uid)(),r=this[za("0x56")][za("0x81")](a,c),i=s.id,x=n?za("0x101")+n:"deletion",l=this[za("0xb1")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this._addSuggestionMarker(x,t,i,r),l}}[za("0x13b")](t,n=za("0x5"),o={}){const s=this[za("0xd8")][za("0x6d")][za("0x62")](za("0xc9")).me,r=t[za("0x2c")]((t=>new i.LiveRange(t[za("0x128")],t[za("0x41")]))),x=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this[za("0x74")](t,"insertion"))n.isOwn&&!n[za("0xf4")]&&x[za("0x9b")](e);for(const e of x)if(e[za("0xb7")]){const s=e.getRanges();if((!e[za("0x6")]||!e[za("0x6")][za("0xc8")])&&s.every((t=>r.some((e=>e[za("0x72")](t,!0)))))&&e.discard(),r.every((t=>s.some((e=>e.containsRange(t,!0)))))){const e=this._suggestionFactory[za("0x119")](za("0xe8"),n,"accept");return this.forceDefaultExecution((()=>e(t,null,o))),null}}else{const t=e[za("0x76")]();if(r[za("0x36")]((e=>e[za("0x72")](t,!0)))&&e[za("0x124")](),r.every((e=>t[za("0x72")](e,!0)))){const t=this[za("0x11d")][za("0x119")](za("0xe8"),n,za("0x20"));return this[za("0x77")]((()=>t(r,null,o))),null}}const a=this._suggestionFactory[za("0x119")](za("0xe8"),n,"join");let c=null;for(const t of this.getSuggestions())if(t.author.id==s.id&&t[za("0x43")]&&za("0xe8")==t[za("0xb2")]&&t.subType==n&&(a(t[za("0xe7")](),r)||a(r,t[za("0xe7")]())))if(c){if(t[za("0x35")]&&t[za("0x35")][za("0x65")])continue;for(const e of t[za("0xe7")]())c.isIntersectingWithRange(e)||c[za("0x23")](e);t[za("0x0")]()}else{c=t;for(const e of r)t.isIntersectingWithRange(e)||t[za("0x23")](e)}if(c)return c;x[za("0xf2")]();for(const t of r)for(const{suggestion:e,meta:n}of this[za("0x74")](t,za("0xe8")))n.isOwn&&x[za("0x9b")](e);for(const t of x){const e=t[za("0xe7")]();if((!o||!o[za("0xc8")])&&r[za("0x116")]((t=>e[za("0x36")]((e=>e[za("0x72")](t,!0))))))return t;(!t.attributes||!t.attributes[za("0xc8")])&&e.every((t=>r[za("0x36")]((e=>e[za("0x72")](t,!0)))))&&t.discard()}const l=(0,e.uid)(),d=s.id,u=za("0x101")+n,g=this._setSuggestionData({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t[za("0xb3")](),t[za("0x34")]||za("0xd")==t[za("0xbb")][za("0x5f")]||this[za("0xeb")](u,l,d,t,Zo[za("0x95")]());return g}_setSuggestionRange(t,e){const n=t[za("0x92")]();this._model[za("0xf5")]((t=>{t[za("0xa4")](n,{range:e})}))}[za("0x121")](t){const e=t.id,n=this.editor.config[za("0x62")]("collaboration.channelId");this[za("0x8b")][za("0x111")](e)||this[za("0x8b")][za("0x11a")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this._commentsRepository[za("0xf9")](e);o[za("0xe3")]("isRemovable"),o[za("0x80")]=!1,t[za("0x35")]=o}[za("0x2e")](t,n,o,s){if(t.type!=n||t[za("0x112")]!=o||t[za("0xb9")].id!=s)throw this.editor[za("0x137")](za("0xb6")),new e.CKEditorError(za("0xb6"),this)}[za("0x29")](t,n){const o=t.getFirstRange();if(n[za("0x48")](o))t[za("0x0")]();else if(o[za("0x72")](n)){const s=this[za("0x56")][za("0xa9")](n[za("0x128")][za("0xd3")],za("0x41"));this[za("0x26")](t,this[za("0x56")][za("0x81")](o[za("0x128")],s));const r=(0,e.uid)(),i=t[za("0xb9")].id,x=t.type+":"+t[za("0x112")];this[za("0xb1")]({id:r,type:x,createdAt:new Date,authorId:i,data:t.data,attributes:t[za("0x6")]});const a=this[za("0x56")].createPositionAt(n[za("0x41")][za("0x55")],za("0x4d")),c=this._model.createRange(a,o[za("0x41")]);this[za("0xeb")](x,r,i,c)}else if(o[za("0x75")](n[za("0x128")])){const e=this[za("0x56")].createPositionAt(n[za("0x128")][za("0xd3")],za("0x41"));this[za("0x26")](t,this[za("0x56")][za("0x81")](o[za("0x128")],e))}else{const e=this[za("0x56")].createPositionAt(n[za("0x41")][za("0x55")],"after");this[za("0x26")](t,this[za("0x56")][za("0x81")](e,o[za("0x41")]))}}[za("0x18")](t){for(const{suggestion:e,meta:n}of this[za("0x74")](t,za("0x45"))){if(!n[za("0x5a")])continue;const o=e[za("0xe7")]();for(const e of o)if(!t.getDifference(e).length)return!0}return!1}[za("0x68")](t){const n=this[za("0xd8")][za("0x6d")][za("0x62")](za("0xc9"))[za("0x3c")](t);if(!n)throw new e.CKEditorError(za("0x9c"),this);return n}[za("0xd1")](t){const e=this[za("0xd8")][za("0x6d")][za("0x62")](za("0xc9")),n=(0,r.hashObject)(za("0xde")+t);return e.getUser(n)||e[za("0xf7")]({id:n,name:t})}_createSuggestion(t,e,n,o,s){const r=this[za("0x68")](o),i=this._suggestionFactory[za("0x78")](t,e,n,r,s,(t=>this[za("0x13e")](n,{attributes:t})));return this[za("0x13d")](i,"accept",(()=>{this[za("0x13e")](n,{state:za("0x125")})}),{priority:za("0xa6")}),this[za("0x13d")](i,"discard",(()=>{this[za("0x13e")](n,{state:za("0xd4")})}),{priority:za("0xa6")}),this._suggestions.set(n,i),this[za("0x107")].set(i,za("0x16")),i}_splitMarkerName(t){const e=t[za("0x1b")](":");return{group:e[0],type:e[1],subType:e[za("0x65")]>=5?e[2]:null,id:e[za("0x65")]<5?e[2]:e[3],authorId:e[za("0x65")]<5?e[3]:e[4],markerCount:6==e[za("0x65")]?e[5]:null}}_breakSuggestionMarker(t,n,o){const s=t[za("0x76")](),r=s[za("0x128")],i=s[za("0x41")];this[za("0x26")](t,this[za("0x56")].createRange(r,n));const x=(0,e.uid)(),a=t[za("0xb9")].id,c=t[za("0xb2")]+(t.subType?":"+t.subType:"");this[za("0xb1")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[za("0x6")],data:t[za("0xf3")]}),"formatBlock"==t[za("0xb2")]&&(o=this[za("0x56")][za("0xac")](o[za("0x55")])),this[za("0xeb")](c,x,a,this[za("0x56")][za("0x81")](o,i))}_findSuggestions(t,e=null){const n=[],o=this._model[za("0xa1")],s=this[za("0xd8")][za("0x6d")][za("0x62")](za("0xc9")).me;for(const r of this[za("0xee")]())if(r[za("0x43")]&&(!e||r[za("0xb2")]==e))for(const e of r[za("0xe7")]()){const i=t[za("0x128")][za("0x48")](e[za("0x41")])||t[za("0x41")].isEqual(e[za("0x128")]);if(i||t[za("0xfd")](e)){const x=t.containsRange(e)&&Ka(o,e[za("0x128")],t),a=e[za("0x72")](t)&&Ka(o,t.start,e);n[za("0x6f")]({suggestion:r,meta:{isOwn:s==r[za("0x12c")],isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}[za("0xeb")](t,e,n,o,s){this._model.change((r=>{let i="suggestion:"+t+":"+e+":"+n;s&&(i=i+":"+s),r[za("0xcb")](i,{range:o,usingOperation:!0,affectsData:!0})}))}_removeSuggestion(t){const e=t[za("0xd9")],n=t[za("0x13a")];t[za("0xd9")]=null,null!=e&&(e[za("0x13a")]=null),t[za("0x13a")]=null,null!=n&&(n[za("0xd9")]=null),za("0xf0")==this[za("0x107")][za("0x62")](t)&&(this[za("0x107")][za("0x7c")](t,za("0x136")),this[za("0x79")](za("0x7e"),t,e,n))}[za("0xb1")](t){const n=t.id,o=this.addSuggestionData(t);if(this[za("0x141")]&&this[za("0x141")][za("0x7f")]){const s=this[za("0xd8")][za("0x6d")][za("0x62")](za("0x5b")),r=o[za("0xd5")],i=o[za("0x112")]?o.type+":"+o[za("0x112")]:o[za("0xb2")],x=this[za("0xd8")][za("0xd6")],a=s.add(Yo(x,za("0x5c"))),c={id:n,type:i,hasComments:r,data:t[za("0xf3")]||null,originalSuggestionId:t[za("0x61")]||null,attributes:o[za("0x6")]};this[za("0x141")][za("0x7f")](c)[za("0x13f")]((t=>{o[za("0x13c")]=!0,s[za("0xe2")](a),t&&t[za("0x113")]&&(this[za("0x89")][za("0x62")](n)[za("0x113")]=t[za("0x113")])}))[za("0xfa")]((t=>{throw(0,e.logWarning)(za("0xe9")),this[za("0xd8")][za("0xed")].enqueueChange({isUndoable:!1},(()=>{o[za("0x124")]()})),o[za("0x24")](),this[za("0x89")].delete(o.id),this._suggestionState.delete(o),t}))}return o}[za("0x13e")](t,e){const n=this.editor[za("0x6d")][za("0x62")]("PendingActions"),o=this[za("0x2a")](t);if(this[za("0x141")]&&this[za("0x141")][za("0x27")])if(o[za("0x13c")]){const o=n[za("0x9b")](Yo(this[za("0xd8")].locale,za("0x5c")));this._adapter[za("0x27")](t,e)[za("0x13f")]((()=>{n[za("0xe2")](o)}))}else o.on("change:_saved",(()=>{this[za("0x13e")](t,e)}))}[za("0xc4")](t){if(!this[za("0x141")]||!this[za("0x141")][za("0x2a")])throw new e.CKEditorError(za("0x12a"),this);return this[za("0x141")][za("0x2a")](t)}[za("0x11c")](t){const{id:e,type:n,subType:o,authorId:s}=this[za("0xa")](t),r=this[za("0x89")].get(e)||this._createSuggestion(n,o,e,s,{});switch(this[za("0x2e")](r,n,o,s),this[za("0x107")][za("0x62")](r)){case za("0x16"):this[za("0xc4")](e)[za("0x13f")]((t=>{let n=Promise[za("0xf6")]();t.hasComments&&(n=this._commentsRepository[za("0x87")]({channelId:this.editor.config[za("0x62")]("collaboration.channelId"),threadId:e})),n.then((()=>{this.addSuggestionData(t)[za("0x13c")]=!0}))})),this[za("0x107")].set(r,za("0xbd"));break;case za("0x136"):this[za("0x13e")](e,{state:"open"});case"dataReady":this[za("0x107")][za("0x7c")](r,za("0xf0")),this[za("0x79")]("suggestionLoaded",r);break;case za("0xf0"):this[za("0x79")]("suggestionChanged",r)}return r[za("0xfc")](t),r}[za("0xca")](t){const e=Array[za("0x9e")](t)[za("0x4c")]((t=>!t.isMultiRange)),n=this[za("0xee")]({skipNotAttached:!0})[za("0x4c")]((t=>!t[za("0xb7")])),o=n.filter((e=>!t[za("0x9a")](e))),s=new Map(n[za("0x2c")]((t=>[t,this._suggestionFactory[za("0x119")](t.type,t[za("0x112")],za("0xc0"))]))),r=new Map(n[za("0x2c")]((t=>[t,t[za("0x76")]()]))),i=new Set,x=new Set;for(let t=0;t<e[za("0x65")];t++)a(e[t],e,t+1);for(let t=0;t<e[za("0x65")];t++)a(e[t],o,0);for(let t=0;t<e[za("0x65")];t++){const n=e[t];!x[za("0x9a")](n)&&n[za("0xd9")]&&(n[za("0xd9")][za("0x13a")]===n&&(n[za("0xd9")][za("0x13a")]=null),n[za("0xd9")]=null),!i[za("0x9a")](n)&&n[za("0x13a")]&&(n[za("0x13a")][za("0xd9")]===n&&(n[za("0x13a")].previous=null),n[za("0x13a")]=null)}function a(t,e,n){for(let o=n;o<e[za("0x65")];o++){const n=c(t,e[o]);n&&(n[0][za("0x13a")]=n[1],n[1].previous=n[0],i[za("0x9b")](n[0]),x[za("0x9b")](n[1]))}}function c(t,e){if(t[za("0x12c")].id!==e[za("0x12c")].id)return null;const n=s[za("0x62")](t)(t,e,r[za("0x62")](t),r[za("0x62")](e));return n&&s[za("0x62")](e)(t,e,r[za("0x62")](t),r[za("0x62")](e))?n[1][za("0x35")]&&n[1][za("0x35")][za("0x65")]?null:n:null}}[za("0x8")](t){const e=Array[za("0x9e")](t),n=this.getSuggestions({skipNotAttached:!0}),o=n[za("0x4c")]((e=>!t[za("0x9a")](e))),s=new Map(e[za("0x2c")]((t=>[t,this._suggestionFactory[za("0x119")](t[za("0xb2")],t[za("0x112")],"join")]))),r=new Map(n.map((t=>[t,t[za("0xe7")]()])));for(let t=0;t<e[za("0x65")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[za("0x65")];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("0x65")];i++){const o=n[i];if(o[za("0xb2")]!==e.type||o[za("0x12c")].id!==e[za("0x12c")].id||o.subType!==e.subType)continue;const x=s[za("0x62")](e),a=r[za("0x62")](e),c=r[za("0x62")](o),l=e[za("0x35")]&&e.commentThread[za("0x65")],d=o[za("0x35")]&&o.commentThread[za("0x65")];if(!l&&x(c,a))return t._joinSuggestions(o,e),r[za("0x44")](e),!0;if(!d&&x(a,c))return t[za("0x6c")](e,o),r[za("0x44")](o),!0}return!1}}_joinSuggestions(t,e){if(t[za("0xb7")])for(const n of e[za("0xe7")]())t.addRange(n);else{const n=e[za("0x76")]().end;this[za("0x26")](t,this[za("0x56")][za("0x81")](t.getFirstRange()[za("0x128")],n))}e[za("0x0")]()}}class Va{constructor(t){this._editor=t,this._model=t[za("0xed")],this._customCallbacks=new Map,this._defaultCallbacks=new Map,this._registerDefaultCallbacks()}buildSuggestion(t,e,n,o,s,r){return new Zo(this[za("0x56")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[za("0x119")](t,e,za("0x20"))(...n),onDiscard:(...n)=>this[za("0x119")](t,e,za("0x124"))(...n)})}registerCustomCallback(t,e,n,o){const s=t+":"+e+":"+n;this._customCallbacks[za("0x7c")](s,o)}[za("0x119")](t,e,n){const o=t+":"+e+":"+n;return this[za("0x47")][za("0x62")](o)||this._defaultCallbacks.get(t+":"+n)}[za("0x126")](){const t=()=>{},e=t=>{t[za("0x8d")](((t,e)=>t[za("0x128")].isBefore(e.start)?1:-1)),this[za("0x56")][za("0xf5")]((e=>{for(const n of t){let t;t=n[za("0x41")][za("0x42")]&&n[za("0x41")].parent==n.start.nodeAfter?e[za("0x10e")](n.start.nodeAfter,"on"):e[za("0x10e")](n),this[za("0x56")].deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[za("0x56")][za("0xf5")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[za("0x2c")]((t=>(qa(t)&&(t=this[za("0x56")][za("0x81")](t[za("0x41")])),t)))[za("0x4c")]((t=>za("0xd")!==t[za("0xbb")].rootName));if(r[za("0x65")]<1)return;const x=Array.from(this._model[za("0xcc")][za("0x21")][za("0xe7")]()).map((t=>i.LiveRange[za("0x32")](t)));n[za("0x54")](r);for(const t of this[za("0x82")][za("0xc")][za("0xc")]())t[za("0x104")]();s[za("0x6f")]({forceDefaultExecution:!0}),this[za("0x82")][za("0x2b")](o,...s);const a=x[za("0x4c")]((t=>"$graveyard"!=t.root[za("0x5f")]));a.length>0&&n[za("0x54")](a);for(const t of x)t[za("0xb3")]()}))},o=(t,e)=>1==t[za("0x65")]&&1==e.length&&t[0][za("0x41")][za("0x48")](e[0].start),s=(t,e,n,o)=>Za(t,e,n,o,this[za("0x56")])?[t,e]:Za(e,t,o,n,this[za("0x56")])?[e,t]:null;this[za("0xbe")][za("0x7c")](za("0xdc"),t),this._defaultCallbacks.set(za("0xc2"),e),this[za("0xbe")][za("0x7c")]("insertion:join",o),this[za("0xbe")][za("0x7c")](za("0x91"),s),this[za("0xbe")].set("deletion:accept",e),this[za("0xbe")][za("0x7c")](za("0x13"),t),this[za("0xbe")][za("0x7c")](za("0xdf"),o),this._defaultCallbacks[za("0x7c")](za("0x60"),s),this[za("0xbe")][za("0x7c")](za("0x10f"),n),this[za("0xbe")][za("0x7c")](za("0xae"),t),this[za("0xbe")][za("0x7c")]("formatInline:join",o),this[za("0xbe")][za("0x7c")]("formatInline:chain",t),this._defaultCallbacks[za("0x7c")](za("0x8f"),n),this[za("0xbe")][za("0x7c")](za("0x138"),t),this[za("0xbe")][za("0x7c")]("formatBlock:join",o),this[za("0xbe")][za("0x7c")](za("0x97"),t)}}function Ka(t,e,n){for(const o of e[za("0x55")][za("0x134")]({includeSelf:!0,parentFirst:!0})){if(o[za("0xbb")]==o)return!1;if(!n[za("0xbc")](o))return!1;if(t.isObject(o)||t[za("0x22")](o))return!0}return!1}function qa(t){return t[za("0x41")][za("0x55")]==t.start[za("0x3b")]&&t.end.isAtStart}function Xa(t,e,n,o){const s=t=>!t.item.is(za("0xaa"))&&!o[za("0x33")](t.item),r=t[za("0x128")][za("0xb4")](s),i=t.end.getLastMatchingPosition(s,{direction:za("0x49")});return!(t.start[za("0x48")](r)&&t[za("0x41")][za("0x48")](i)||(r[za("0xa8")](i)?n.updateMarker(e,{range:n[za("0x81")](r,i)}):n.removeMarker(e),0))}function $a(t){return(0,r.hashObject)(t)}function Ja(t){const e=t[za("0x128")].nodeAfter;return e&&e.is(za("0x73"))}function Qa(t,e){const n=e[za("0xa1")][za("0x33")](t)||e[za("0xa1")][za("0x106")](t);return e[za("0x81")](e[za("0xa9")](t,"before"),n?e[za("0x57")](t):e.createPositionAt(t,za("0x41")))}function Za(t,e,n,o,s){if(n[za("0x41")].isEqual(o[za("0x128")]))return!0;if(t.type!=e[za("0xb2")])return!1;if(!n[za("0x41")][za("0xef")](o[za("0x128")]))return!1;const r=s[za("0x81")](n[za("0x41")],o[za("0x128")])[za("0x7")]();for(const t of r)if([za("0x117"),za("0x2d")].includes(t[za("0xb2")])&&s.schema[za("0x22")](t[za("0x9d")]))return!1;return!0}const Ya=["_discardCommand","discardSuggestion","commands","_editor","_acceptCommand","canAccept","commentThreadController","plugins","canDiscard","getRanges","isEnabled","unbind","change:isDirty","_pendingAction","_removePendingAction","canEditAt","locale","listenTo","bind","view","destroy","_setPendingAction","model","stopListening","PendingActions","get","execute","add","isDirty","acceptSuggestion"];var tc,ec;tc=Ya,ec=411,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("0x1")]=e,this[nc("0x1c")]=n,this[nc("0xf")]=o,this[nc("0xc")]=t,this[nc("0xd")]=t[nc("0xb")][nc("0x4")](nc("0x8")),this[nc("0x9")]=t[nc("0xb")][nc("0x4")](nc("0xa")),this[nc("0x1c")][nc("0x1b")](nc("0x13")).to(this._acceptCommand,this[nc("0x9")],((t,e)=>t||e)),this.view[nc("0x1b")]("canAccept").to(this[nc("0xd")],"isEnabled",(t=>t&&this._editor[nc("0x1")][nc("0x18")](e[nc("0x12")]()))),this[nc("0x1c")][nc("0x1b")](nc("0x11")).to(this[nc("0x9")],nc("0x13"),(t=>t&&this._editor[nc("0x1")][nc("0x18")](e.getRanges()))),this[nc("0x16")]=null,n.isDirty&&this[nc("0x0")](),this[nc("0x1a")](n,"acceptSuggestion",(()=>this[nc("0x8")]())),this.listenTo(n,"discardSuggestion",(()=>this.discardSuggestion())),this[nc("0x1a")](n,nc("0x15"),(()=>{n[nc("0x7")]?this[nc("0x0")]():this[nc("0x17")]()}))}acceptSuggestion(){this[nc("0xd")][nc("0x5")](this[nc("0x1")].id)}discardSuggestion(){this._discardCommand[nc("0x5")](this[nc("0x1")].id)}[nc("0x1d")](){this.view[nc("0x14")](nc("0x13")),this[nc("0x1c")].unbind(nc("0xe")),this[nc("0x1c")].unbind(nc("0x11")),this[nc("0x2")](),this[nc("0xf")][nc("0x1d")](),this._pendingAction&&this._removePendingAction()}[nc("0x0")](){const t=Yo(this[nc("0xc")][nc("0x19")],"PENDING_ACTION_SUGGESTION");this[nc("0x16")]=this[nc("0xc")][nc("0x10")][nc("0x4")](nc("0x3"))[nc("0x6")](t)}[nc("0x17")](){null!==this[nc("0x16")]&&this[nc("0xc")][nc("0x10")][nc("0x4")](nc("0x3")).remove(this[nc("0x16")]),this[nc("0x16")]=null}}const sc=["delegate","destroy","_model","_config","authoredAt","commentThread","_createCommentViews","commentThreadInputView","_localUser","addComment","locale","descriptionParts","CommentView","submit","isReadOnly","setData","editorConfig","_createCommentThreadInputView","canAccept","commentsListView","commentInputView","length","isActive","removeComment","showInput","element","focus","isDirty","bind","set","value","editor","disableComments","cancel","canDiscard"];var rc,ic;rc=sc,ic=352,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("0x11")]=null,this[xc("0x5")]=null,this.set(xc("0x14"),!1),this.set(xc("0x2"),e[xc("0x2")]),this[xc("0x1a")](xc("0x2")).to(e),this[xc("0x1b")](xc("0x9"),[]),this[xc("0x1b")](xc("0x19"),!1),this.set("isEnabled",!1),this[xc("0x1b")](xc("0x10"),!1),this[xc("0x1b")](xc("0x20"),!1),this[xc("0x0")]=e,this[xc("0x6")]=n,this._config=o,o[xc("0x1e")]?this.set(xc("0x13"),1):this[xc("0x4")]()}[xc("0x18")](){this[xc("0x17")][xc("0x18")]()}destroy(){this[xc("0x11")]&&this.commentsListView.destroy(),this[xc("0x5")]&&this[xc("0x5")][xc("0x22")](),super[xc("0x22")]()}[xc("0x4")](){const{CommentsListView:t}=this._config;this[xc("0x11")]=new t(this[xc("0x8")],this[xc("0x0")][xc("0x3")],Object.assign({CommentView:this[xc("0x1")][xc("0xa")]},this[xc("0x1")])),this[xc("0x11")][xc("0x21")](xc("0x15")).to(this),this[xc("0x11")][xc("0x21")]("updateComment").to(this),this[xc("0x11")][xc("0x1a")](xc("0x14")).to(this),this[xc("0x1b")]("length",this[xc("0x11")][xc("0x13")]+1),this[xc("0x1a")](xc("0x13")).to(this.commentsListView,"length",(t=>t+1)),this.commentThreadInputView=this[xc("0xf")](),this.on("removeComment",(()=>this[xc("0x18")]())),this[xc("0x1a")]("isDirty").to(this[xc("0x11")],"hasDirtyComment",this.commentThreadInputView.commentInputView,xc("0x1c"),((t,e)=>t||!!e))}_createCommentThreadInputView(){const{CommentThreadInputView:t}=this[xc("0x1")],e=new t(this[xc("0x8")],this[xc("0x6")],this[xc("0x1")][xc("0xe")]),n=e[xc("0x12")];return e[xc("0x1a")](xc("0x16")).to(this,xc("0x14"),this[xc("0x0")][xc("0x3")],xc("0xc"),n,xc("0x1c"),((t,e,n)=>!!n||t&&!e)),n.on(xc("0xb"),((t,e)=>{this.fire(xc("0x7"),e),n[xc("0x1d")][xc("0xd")]("")})),n.on(xc("0x1f"),(()=>this.focus())),n.bind("disabledSubmit").to(this[xc("0x0")][xc("0x3")],"isReadOnly"),e}}const cc=["value","_config","extendTemplate","source","commentThreadInputView","execute","EXTERNAL_IMPORT_WORD_SUGGESTION","ck-suggestion--discard","ck-annotation","Discard suggestion","split","</span>","getUserViewNotificationText","isEnabled","set","color","ck-suggestion","author","type","descriptionParts","commentsListView","render","join","discardSuggestion","ck-suggestion__info-name","formatDateTime","innerHTML","children",'<span class="ck-suggestion-color" style="background-color: ',"check","_descriptionElement","acceptButton","ck-suggestion-wrapper","ck-comment__external","bindTemplate","name","getTemplate","bind","attributes","change:description","isActive","title","content","ck-suggestion__main","ck-comment__info-time","importWord","createElement","ck-suggestion__user","description","ck-annotation__user","acceptSuggestion","@external","time","ck-annotation__info-time","ck-annotation__main","getExternalSuggestionNote","push","discardButton","commentThread","locale","userView","innerText","_createButton","ck-suggestion--disabled-comments","disableComments","fire","ck-annotation__actions",'"></span>',"ck-suggestion-wrapper--active","Accept suggestion","span","ck-annotation__content-wrapper","isExternal","cancel","ck-annotation__info","ck-suggestion__actions","setTemplate","div","canDiscard","creator","_model","ck-suggestion__info"];var lc,dc;lc=cc,dc=389,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("0x23")](uc("0x27"),""),this[uc("0x3a")](uc("0x27")).to(this,uc("0x28"),(t=>t&&t[0]?t[0].type:"")),this[uc("0x3a")](uc("0x45")).to(this,uc("0x28"),this,uc("0x3d"),((t,e)=>{let n="";for(const e of t)n+="<p>"+mc(e[uc("0x3f")],e[uc("0x24")])+"</p>";return e?n:(0,r.trimHtml)(n,{limit:140})})),this[uc("0x33")]=null,this[uc("0x34")]=this._createButton(Yo(e,uc("0x8")),t.icons[uc("0x32")],"ck-suggestion--accept",uc("0x47"),"sw"),this.acceptButton[uc("0x3a")](uc("0x22")).to(this,"canAccept"),this[uc("0x4e")]=this._createButton(Yo(e,uc("0x1e")),t.icons[uc("0xc")],uc("0x1c"),uc("0x2c"),"sw"),this[uc("0x4e")][uc("0x3a")](uc("0x22")).to(this,uc("0x11")),this.userView=new r.UserView(e,this._model[uc("0x26")],this.getUserViewNotificationText()),this[uc("0x51")][uc("0x17")]({attributes:{class:[uc("0x44"),uc("0x46")]}}),this[uc("0xf")](this[uc("0x39")]())}[uc("0x39")](){const t=this[uc("0x37")],e=[{tag:uc("0x10"),attributes:{class:[uc("0x14"),uc("0xd")]},children:[{tag:"span",children:[{text:this[uc("0x51")][uc("0x38")]}],attributes:{class:[uc("0x2d"),"ck-annotation__info-name"]}},{tag:uc("0x49"),attributes:{datetime:t.to("authoredAt"),class:[uc("0x41"),uc("0x4a")]},children:[{text:t.to("authoredAt",(t=>this[uc("0x16")][uc("0x2e")](t)))}]}]},{tag:uc("0x10"),attributes:{class:[uc("0xe"),uc("0x5")]},children:[this.acceptButton,this[uc("0x4e")]]},{tag:uc("0x10"),attributes:{class:[uc("0xa")]}}];this[uc("0x13")][uc("0xb")]&&e[uc("0x4d")]({tag:uc("0x10"),attributes:{class:[uc("0x36")]},children:[{text:this.getExternalSuggestionNote()}]});const n={tag:"div",attributes:{class:[uc("0x35"),t.if(uc("0x3d"),uc("0x7")),t.to(uc("0x27"),(t=>"ck-suggestion-"+t)),this._config[uc("0x3")]&&uc("0x2")],"data-suggestion-id":this[uc("0x13")].id,"data-thread-id":this[uc("0x13")][uc("0x4f")].id,"data-author-id":this[uc("0x13")][uc("0x26")].id,tabindex:-1},children:[{tag:uc("0x10"),attributes:{class:[uc("0x25"),uc("0x1d")]},children:[this[uc("0x51")],{tag:uc("0x10"),attributes:{class:[uc("0x40"),uc("0x4b")]},children:e}]}]};return this.commentsListView&&this[uc("0x19")]&&n[uc("0x30")][uc("0x4d")](this[uc("0x29")],this[uc("0x19")]),n}[uc("0x2a")](){super.render(),this[uc("0x33")]=this.element.querySelector(".ck-annotation__content-wrapper"),this._descriptionElement[uc("0x2f")]=this.description,this.on(uc("0x3c"),((t,e,n)=>{this._descriptionElement[uc("0x2f")]=n}))}[uc("0x1")](t,e,n,o,r){const i=new s.ButtonView(this[uc("0x50")]);return i[uc("0x23")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[uc("0x17")]({attributes:{class:n}}),i.on(uc("0x1a"),(()=>{this[uc("0x4")](o,this[uc("0x13")].id)})),i}[uc("0x4c")](){return uc("0x42")===this._model[uc("0x3b")][uc("0x48")][uc("0x18")]?Yo(this[uc("0x50")],uc("0x1b")):Yo(this[uc("0x50")],"EXTERNAL_SUGGESTION")}[uc("0x21")](){return this[uc("0x13")].isExternal?"importWord"===this[uc("0x13")].attributes["@external"][uc("0x18")]?Yo(this.locale,"EXTERNAL_IMPORT_WORD_AVATAR",this[uc("0x13")][uc("0x12")][uc("0x38")]):Yo(this[uc("0x50")],"EXTERNAL_AVATAR",this[uc("0x13")][uc("0x12")][uc("0x38")]):null}}function mc(t,e){let n="";return n+=t[uc("0x1f")]("*").map(((t,e)=>e%2!=0?'<span class="ck-suggestion-type">'+fc(t)+uc("0x20"):fc(t)))[uc("0x2b")](""),e&&(n+=uc("0x31")+e[uc("0x15")]+'" title="'+e[uc("0x3e")]+uc("0x6")),n}function fc(t){const e=document[uc("0x43")](uc("0x9"));return e[uc("0x0")]=t,e[uc("0x2f")]}const hc=["set","length","comments.maxCommentsWhenCollapsed","_disableComments","acceptButton","comments.maxCommentCharsWhenCollapsed","suggestionChanged","map","stopListening","trackChanges","buttonView","value","registerAnnotation","requires","getAllAdjacentSuggestions","_suggestionToController","acceptAllSuggestions","isDirty","toMany","change:previous","comments.editorConfig","addSourceCollector","_annotationViews","addComment","commands","getByInnerView","model","isMultiRange","Accept all selected suggestions","unbind","lowest","isOn","filter","type","_refreshActiveMarkers","getJoined","config","getRanges","_descriptionFactory","get","getFirstRange","getMarkers","isInContent","execute","suggestion-","delete","from","refreshSelectedViews","getSuggestion","destroy","_createUIButton","_viewToController","suggestionUnloaded","pluginName","focus","change:activeAnnotations","Discard all selected suggestions","bind","source","define","separator","switchbutton","innerView","_initializeController","CommentsRepository","componentFactory","size","discardSelectedSuggestions","arrowView","isEnabled","_updateController","editor","descriptionParts","init","Discard all suggestions","add","hasSuggestion","createAnnotation","mainView","commentThread","comments.maxThreadTotalWeight","plugins","_handleControllerBuffer","suggestionLoaded","keys","_destroyController","has","head","locale","editing","listenTo","EditorAnnotations","button","Accept all suggestions","clear","TrackChangesEditing","trackChanges.disableComments","acceptSelectedSuggestions","push","Annotations","getDescriptions","remove","comments","view","_handleSuggestionControllerDelayed"];var pc,bc;pc=hc,bc=277,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("0x33")](){return[Wa,r.Users,"CommentsRepository",Ec("0x20"),Ec("0x18")]}static get[Ec("0x5b")](){return"TrackChangesUI"}constructor(t){super(t),this[Ec("0x35")]=new Map,this[Ec("0x59")]=new Map,this[Ec("0x3c")]=new Map,this[Ec("0xf")]=new Map;const e=this[Ec("0x4")][Ec("0x4a")];e[Ec("0x61")]("trackChanges.SuggestionThreadView",gc),e.define("trackChanges.disableComments",!1),this[Ec("0x29")]=e[Ec("0x4d")](Ec("0x1d"))}_handleSuggestionControllerDelayed(t,e){0===this[Ec("0xf")][Ec("0x68")]&&setTimeout((()=>{for(const[t,e]of this[Ec("0xf")]){const n=this[Ec("0x35")][Ec("0x13")](t);n||e?n&&e&&this[Ec("0x12")](t):this[Ec("0x65")](t)}this[Ec("0x4")][Ec("0xe")][Ec("0x4d")](Ec("0x18"))[Ec("0x55")](),this._refreshActiveMarkers(),this._handleControllerBuffer[Ec("0x1b")]()}),10),this._handleControllerBuffer.set(t,e)}[Ec("0x6")](){const t=this[Ec("0x4")],e=t[Ec("0xe")][Ec("0x4d")](Ec("0x1c")),n=t.plugins[Ec("0x4d")](Ec("0x20")),o=t[Ec("0xe")][Ec("0x4d")]("EditorAnnotations"),s=t[Ec("0xe")].get("CommentsRepository");t.ui[Ec("0x67")][Ec("0x8")](Ec("0x2f"),(t=>this[Ec("0x58")](t))),o[Ec("0x3b")]((()=>{const t=[];for(const[e,n]of Array[Ec("0x54")](this[Ec("0x35")])){const o=e[Ec("0x34")](),s=[];for(const t of o){if(!t.isInContent)continue;if(t[Ec("0x41")]){s[Ec("0x1f")](...t[Ec("0x4b")]());continue}const e=t[Ec("0x4e")]();if(s[Ec("0x27")]>0){const t=s[0][Ec("0x49")](e);if(t){s[0]=t;continue}}s[Ec("0x1f")](e)}t[Ec("0x1f")]([n[Ec("0x24")],s])}return t})),this.listenTo(e,Ec("0x10"),((t,e)=>{this[Ec("0x17")](e,Ec("0x39"),((t,n,o,s)=>{e[Ec("0x50")]&&(null==o?(this._updateController(s.head),this[Ec("0x25")](e,!1)):(this[Ec("0x3")](o[Ec("0x14")]),this[Ec("0x25")](e,!0)))})),null===e.previous?this[Ec("0x25")](e,!1):this[Ec("0x3")](e[Ec("0x14")])})),this[Ec("0x17")](e,Ec("0x5a"),((t,e,n)=>{this[Ec("0x2e")](e,Ec("0x39")),this[Ec("0xf")][Ec("0x53")](e);const o=n?n[Ec("0x14")]:e,s=this[Ec("0x35")].get(o);null!==n&&this[Ec("0x3")](o),null===n&&s&&this[Ec("0x12")](e)})),this.listenTo(e,Ec("0x2c"),((t,e)=>{this._updateController(e)})),this[Ec("0x17")](n,Ec("0x5d"),(()=>{this[Ec("0x48")]()})),this[Ec("0x17")](s,Ec("0x3d"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Ec("0x9")](n))return;const s=e[Ec("0x56")](n);this[Ec("0x35")][Ec("0x4d")](s)[Ec("0x24")].focus()}),{priority:Ec("0x44")})}[Ec("0x48")](){const t=this[Ec("0x4")][Ec("0xe")].get("Annotations"),e=this[Ec("0x4")][Ec("0xe")].get(Ec("0x1c")),n=Array.from(t.activeAnnotations,(t=>t[Ec("0x64")]))[Ec("0x46")]((t=>this[Ec("0x59")][Ec("0x13")](t))),o=[];for(const t of n){const e=this[Ec("0x59")].get(t)[Ec("0x40")].getAllAdjacentSuggestions();o[Ec("0x1f")](...e.reduce(((t,e)=>[...t,...e.getMarkerNames()]),[]))}e.activeMarkers=o}[Ec("0x58")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Ec("0x4")][Ec("0x3e")][Ec("0x4d")](Ec("0x2f")),r=Yo(t,"Track changes");n[Ec("0x30")].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("0x30")][Ec("0x5f")](Ec("0x45")).to(o,Ec("0x31")),n[Ec("0x30")].on(Ec("0x51"),(()=>{o[Ec("0x51")](),this[Ec("0x4")][Ec("0x16")][Ec("0x24")][Ec("0x5c")]()}));const i=new e.Collection,x=[{type:Ec("0x63"),model:{withText:!0,label:r,commandName:Ec("0x2f")}},{type:Ec("0x62")},{type:Ec("0x19"),model:{withText:!0,label:Yo(t,Ec("0x1a")),commandName:Ec("0x36")}},{type:Ec("0x19"),model:{withText:!0,label:Yo(t,Ec("0x42")),commandName:Ec("0x1e")}},{type:Ec("0x19"),model:{withText:!0,label:Yo(t,Ec("0x7")),commandName:"discardAllSuggestions"}},{type:Ec("0x19"),model:{withText:!0,label:Yo(t,Ec("0x5e")),commandName:Ec("0x0")}}];for(const t of x){let e={type:Ec("0x62")};if(t[Ec("0x40")]){const n=new s.Model(t[Ec("0x40")]),o=this[Ec("0x4")][Ec("0x3e")][Ec("0x4d")](n.commandName);n.bind(Ec("0x45"),Ec("0x2")).to(o,Ec("0x31"),Ec("0x2")),e={type:t[Ec("0x47")],model:n}}i[Ec("0x8")](e)}(0,s.addListToDropdown)(n,i);const a=x[Ec("0x46")]((t=>null!=t[Ec("0x40")]))[Ec("0x2d")]((t=>this.editor[Ec("0x3e")][Ec("0x4d")](t[Ec("0x40")].commandName))),c=n[Ec("0x30")];return c.actionView[Ec("0x43")](Ec("0x2")),c[Ec("0x1")][Ec("0x43")](Ec("0x2")),c.actionView[Ec("0x5f")](Ec("0x2")).to(o,"isEnabled"),c[Ec("0x1")][Ec("0x5f")](Ec("0x2"))[Ec("0x38")](a,"isEnabled",((...t)=>t.some((t=>t)))),n.on(Ec("0x51"),(t=>{this[Ec("0x4")][Ec("0x51")](t[Ec("0x60")].commandName),this[Ec("0x4")][Ec("0x16")][Ec("0x24")][Ec("0x5c")]()})),n}[Ec("0x65")](t){const e=this[Ec("0x4")],n=e.config,o=e.plugins[Ec("0x4d")](Ec("0x20")),s=e[Ec("0xe")][Ec("0x4d")](Ec("0x66")),i=e.plugins[Ec("0x4d")](Ec("0x18")),x=e[Ec("0xe")][Ec("0x4d")](r.Users).me,a=n[Ec("0x4d")](Ec("0x2f")).SuggestionThreadView,{CommentsListView:c,CommentThreadInputView:l}=e[Ec("0xe")].get("CommentsUI");let d,u;this[Ec("0x3c")][Ec("0x13")](t.id)?(u=this[Ec("0x3c")][Ec("0x4d")](t.id),d=u[Ec("0xb")]):(d=new a(e[Ec("0x15")],t,x,{disableComments:this[Ec("0x29")],editorConfig:n[Ec("0x4d")](Ec("0x3a")),maxCommentsWhenCollapsed:n[Ec("0x4d")](Ec("0x28")),maxThreadTotalWeight:n[Ec("0x4d")](Ec("0xd")),maxCommentCharsWhenCollapsed:n[Ec("0x4d")](Ec("0x2b")),formatDateTime:(0,r.getDateTimeFormatter)(n[Ec("0x4d")](Ec("0x15"))),CommentView:n[Ec("0x4d")](Ec("0x23")).CommentView,CommentsListView:c,CommentThreadInputView:l}),d[Ec("0x2a")].on("execute",(()=>{e[Ec("0x16")].view[Ec("0x5c")]()})),d.discardButton.on("execute",(()=>{e[Ec("0x16")][Ec("0x24")][Ec("0x5c")]()})),u=o.createAnnotationView(this[Ec("0x4")].locale,d),u[Ec("0x5f")]("isDirty").to(d,Ec("0x37")),u.bind(Ec("0x27")).to(d),u[Ec("0x5f")]("type").to(d,Ec("0x47"),(t=>Ec("0x52")+t)),this[Ec("0x3c")][Ec("0x26")](t.id,u));const g=s.createCommentThreadController(t[Ec("0xc")],d),m=new oc(e,t,d,g),f=t[Ec("0x34")]()[Ec("0x46")]((t=>t[Ec("0x50")]));d[Ec("0x5")]=e[Ec("0xe")][Ec("0x4d")]("TrackChangesEditing")[Ec("0x4c")][Ec("0x21")](f),this[Ec("0x35")].set(t,m),this._viewToController.set(d,m);const h=o[Ec("0xa")]({view:u,target:()=>{const n=[],o=t[Ec("0x34")]()[Ec("0x46")]((t=>t[Ec("0x50")]));for(const t of o)n[Ec("0x1f")](...t[Ec("0x4f")]());return(0,r.getAllMarkersDomElementsSorted)(e[Ec("0x16")],n)},type:()=>Ec("0x52")+m[Ec("0x24")][Ec("0x47")]});o[Ec("0x8")](h),i[Ec("0x32")](h)}_destroyController(t){const e=this[Ec("0x4")].plugins[Ec("0x4d")]("Annotations"),n=this[Ec("0x35")].get(t),o=n[Ec("0x24")],s=e[Ec("0x3f")](o);s&&e[Ec("0x22")](s),this[Ec("0x35")][Ec("0x53")](t),this[Ec("0x59")][Ec("0x53")](o),n.destroy()}[Ec("0x3")](t){if(!t[Ec("0x50")]||!this._suggestionToController[Ec("0x13")](t))return;const e=this[Ec("0x4")][Ec("0xe")][Ec("0x4d")](Ec("0x1c")),n=this[Ec("0x35")][Ec("0x4d")](t),o=t[Ec("0x34")]();n[Ec("0x24")][Ec("0x5")]=e[Ec("0x4c")][Ec("0x21")](o)}[Ec("0x57")](){for(const t of this[Ec("0x35")][Ec("0x11")]())this[Ec("0x12")](t);for(const t of this[Ec("0x3c")].values())t[Ec("0xb")][Ec("0x57")]();super[Ec("0x57")]()}}var Tc,yc,Cc=["getSuggestions","adapter","Comments","TrackChanges","plugins","addSuggestion","requires","editor","get","addSuggestionData","getSuggestion"];Tc=Cc,yc=214,function(t){for(;--t;)Tc.push(Tc.shift())}(++yc);var kc=function(t,e){return Cc[t-=0]};class Ac extends t.Plugin{static get[kc("0x1")](){return[Wa,_c,kc("0x8")]}static get pluginName(){return kc("0x9")}set[kc("0x7")](t){this[kc("0x2")][kc("0xa")][kc("0x3")](Wa)[kc("0x7")]=t}get[kc("0x7")](){return this[kc("0x2")][kc("0xa")][kc("0x3")](Wa)[kc("0x7")]}[kc("0x0")](t){return this[kc("0x2")][kc("0xa")].get(Wa)[kc("0x4")](t)}[kc("0x6")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[kc("0x2")].plugins[kc("0x3")](Wa)[kc("0x6")]({skipNotAttached:t,toJSON:e})}[kc("0x5")](t){return this[kc("0x2")].plugins[kc("0x3")](Wa)[kc("0x5")](t)}}const vc=["trackChangesData.editorCreator","config","name","constructor","getRootNames","data","useAnonymousUser","_adapter","set","end","TrackChangesEditing","CommentsRepository","push","Users","get","getRootsAttributes","editor","getUser","rootsAttributes","create","requires","createDocumentFragment","getDataWithAcceptedSuggestions","createElement","TrackChangesData","addSuggestionData","result","editorCreator","pluginName","document","define","init","TrackChangesDataGetter","trackChangesData","reduce","plugins","model","getFullData","div","addUser","acceptAllSuggestions","track-changes-data-invalid-editor-creator","function"];var Rc,Ic;Rc=vc,Ic=461,function(t){for(;--t;)Rc.push(Rc.shift())}(++Ic);const Sc=function(t,e){return vc[t-=0]},Lc=["Pagination"];class Nc extends t.Plugin{static get[Sc("0x20")](){return[Wa]}static get[Sc("0x28")](){return Sc("0x24")}[Sc("0x0")](){const t=this[Sc("0x1c")];if(t.config[Sc("0x2a")](Sc("0xc"),(e=>{const n=t.model[Sc("0x29")][Sc("0x10")]().reduce(((t,e)=>(t[e]="",t)),{});return t[Sc("0xf")][Sc("0x1f")](n,e)})),Sc("0xb")!=typeof t.config[Sc("0x1a")]("trackChangesData")[Sc("0x27")])throw new e.CKEditorError(Sc("0xa"))}[Sc("0x22")](t){return Oc(this.editor,!0,t)}getDataWithDiscardedSuggestions(t){return Oc(this[Sc("0x1c")],!1,t)}}class Mc extends t.Plugin{static get pluginName(){return Sc("0x1")}constructor(t){super(t),this[Sc("0x26")]=Sc("0x15")}[Sc("0x0")](){this[Sc("0x1c")][Sc("0x4")][Sc("0x1a")](Sc("0x17"))._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.editor[Sc("0x4")][Sc("0x1a")](Sc("0x16"))[Sc("0x13")]=null}}function wc(t){return void 0!==t[Sc("0x1b")]}async function Oc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Lc);o.plugins[Sc("0x18")](Wa,Mc),o[Sc("0x1e")]=wc(t)?t[Sc("0x1b")]():void 0;const s=document[Sc("0x21")](),i=t[Sc("0xd")][Sc("0x1a")](Sc("0x2"))[Sc("0x27")],x=await i(o,(()=>function(t){const e=document[Sc("0x23")](Sc("0x7"));return t.appendChild(e),e}(s)));!function(t,e){const n=t[Sc("0x5")][Sc("0x29")][Sc("0x10")]()[Sc("0x3")](((e,n)=>(e[n]=t[Sc("0x11")][Sc("0x1a")]({rootName:n}),e)),{}),o=t.plugins[Sc("0x1a")](Sc("0x19")).users.map((t=>({id:t.id,name:t[Sc("0xe")]}))),s=t[Sc("0x4")].get(Sc("0x16")).getSuggestions({skipNotAttached:!0,toJSON:!0}),r=e[Sc("0x4")][Sc("0x1a")](Sc("0x19")),i=e[Sc("0x4")].get(Sc("0x16"));for(const t of o)r[Sc("0x1d")](t.id)||r[Sc("0x8")](t);r.me||r[Sc("0x12")]();for(const t of s)i[Sc("0x25")](t);e[Sc("0x11")][Sc("0x14")](n)}(t,x),x.execute(e?Sc("0x9"):"discardAllSuggestions");const a=wc(x)?x[Sc("0x6")](n):x.data[Sc("0x1a")](n);return await x.destroy(),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=["editor","TrackChangesCommand","commands","_enableCommands","affectsData","_enabledCommands","refresh","_disableUnsupportedCommands","has","value","isEnabled","forceDisabled"];var c,l;c=a,l=453,function(t){for(;--t;)c.push(c.shift())}(++l);const d=function(t,e){return a[t-=0]};class u extends t.Command{constructor(t,e){super(t),this[d("0x8")]=e,this.value=!1,this[d("0x9")](),this._isEnabledBasedOnSelection=!1}[d("0x9")](){this[d("0x1")]=!0}execute(){this[d("0x0")]=!this.value,this.value?this._disableUnsupportedCommands():this._enableCommands()}[d("0xa")](){for(const t of this[d("0x3")].commands[d("0x5")]())t[d("0x7")]&&!this[d("0x8")][d("0xb")](t)&&t[d("0x2")](d("0x4"))}[d("0x6")](){for(const t of this[d("0x3")][d("0x5")][d("0x5")]())t.affectsData&&!this._enabledCommands[d("0xb")](t)&&t.clearForceDisabled(d("0x4"))}}const g=["canEditAt","getRanges","editor","model","acceptSuggestion","_suggestions","get","_isEnabledBasedOnSelection","execute","refresh"];var m,f;m=g,f=154,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("0x1")]=e,this.refresh(),this[h("0x3")]=!1}[h("0x5")](){this.isEnabled=!0}[h("0x4")](t){const n=this[h("0x1")][h("0x2")](t);if(!n)throw new e.CKEditorError("track-changes-accept-suggestion-not-found",this);const o=n[h("0x7")]();this.editor[h("0x9")][h("0x6")](o)&&this[h("0x8")].plugins[h("0x2")]("TrackChangesEditing")[h("0x0")](n)}}const b=["editor","getRanges","refresh","get","model","_suggestions","isEnabled","canEditAt","TrackChangesEditing","execute","discardSuggestion"];var E,_;E=b,_=387,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("0x3")]=e,this[T("0x0")](),this._isEnabledBasedOnSelection=!1}[T("0x0")](){this[T("0x4")]=!0}[T("0x7")](t){const n=this[T("0x3")][T("0x1")](t);if(!n)throw new e.CKEditorError("track-changes-discard-suggestion-not-found",this);const o=n[T("0xa")]();this[T("0x9")][T("0x2")][T("0x5")](o)&&this[T("0x9")].plugins[T("0x1")](T("0x6"))[T("0x8")](n)}}const y=["createPositionAt","deletion","color","start","type","add"," [color ","isInContent","join","createPositionAfter","isCollapsed","replace","value","isMultiRange","execute","isArray","end","change","isTouching","createPositionBefore","content","next","isObject","getMarkers","length","schema","map","isIntersecting","createRange","getRange","sort"];var k,A;k=y,A=242,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x5")](((t,e)=>v("0x7")==t[v("0xa")]&&v("0x7")!=e.type?-1:v("0x7")!=t[v("0xa")]&&v("0x7")==e[v("0xa")]?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0x0")];for(;o<t[v("0x1e")];){const i=t[o],x=t[o+1];n||(n=e[v("0x19")](i)),I(e,i,x)||(s.push(e[v("0x3")](n,r[v("0x1c")](i)?e.createPositionAfter(i):e[v("0x6")](i,v("0x16")))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0xf")](e),s=t[v("0x19")](n);return o[v("0x18")](s)}function L(t,e,n){for(;n[v("0x1e")];){const o=n.splice(0,100);t[v("0x17")]((()=>{for(const t of o)t[v("0xd")]&&e[v("0x14")](t.id)}))}}const N=["isInContent","values","getRanges","canEditAt","refresh","_suggestions","isEnabled","_isEnabledBasedOnSelection","_command","model","from","editor","execute","some"];var w,M;w=N,M=419,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("0x9")]=e,this[O("0x6")]=n,this[O("0x5")](),this[O("0x8")]=!1}refresh(){const t=Array[O("0xb")](this[O("0x6")][O("0x2")]())[O("0x0")]((t=>t[O("0x1")]));this[O("0x7")]=this[O("0x9")][O("0x7")]&&t}[O("0xd")](){const t=R(Array[O("0xb")](this._suggestions[O("0x2")]()));for(const e of t){const t=e[O("0x3")]();if(!this[O("0xc")][O("0xa")][O("0x4")](t))return}L(this[O("0xc")][O("0xa")],this[O("0x9")],t)}}const P=["size","execute","values","refresh","from","editor","_command","_suggestions","_selectedSuggestions","_isEnabledBasedOnSelection","isEnabled","canEditAt","model","selection"];var D,B;D=P,B=482,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("0x0")]=e,this[j("0x1")]=n,this._selectedSuggestions=new Set,this[j("0xb")](),this[j("0x3")]=!1}refresh(){const t=this[j("0xd")][j("0x6")].document[j("0x7")],e=Array[j("0xc")](this[j("0x1")][j("0xa")]());this[j("0x2")]=function(t,e){const n=Array.from(t.getRanges()),o=new Set;for(const s of e)if(s[v("0xd")])for(const e of n)for(const n of s[v("0x1d")]()){const r=n[v("0x4")]();(e[v("0x2")](r)||t[v("0x10")]&&!s[v("0x13")]&&s[v("0x1b")]&&r[v("0x16")][v("0x18")](e[v("0x9")]))&&o[v("0xb")](s)}return o}(t,e),this[j("0x4")]=this._command[j("0x4")]&&!!this._selectedSuggestions[j("0x8")]}[j("0x9")](){const t=R(Array[j("0xc")](this[j("0x2")]));for(const e of t){const t=e.getRanges();if(!this[j("0xd")].model[j("0x5")](t))return}L(this.editor[j("0x6")],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 dt=function(t){return lt.call(t)};var ut=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ut&&ut in Object(t)?ct(t):dt(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const It=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=It(t,e);return St(n)?n:void 0};const Nt=Lt(ot,"Map");const wt=Lt(Object,"create");const Mt=function(){this.__data__=wt?wt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(wt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return wt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=wt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=Mt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Wt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=Wt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Wt(this,t).get(t)};const qt=function(t){return Wt(this,t).has(t)};const Xt=function(t,e){var n=Wt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,de=ce.propertyIsEnumerable;const ue=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!de.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Se=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Ie=Se&&Se.isTypedArray;const Le=Ie?ke(Ie):ye;var Ne=Object.prototype.hasOwnProperty;const we=function(t,e){var n=ge(t),o=!n&&ue(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var Me=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Me)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?we(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const We=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?we(t,!0):We(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Je=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const dn=function(t){return ln(t,Ue,on)};const un=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const Sn=Rn;var In=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&In.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const wn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const Mn=function(t,e){var n=e?wn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?wn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return wn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return Mn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Wn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Vn=Se&&Se.isMap;const Kn=Vn?ke(Vn):Wn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?ke(Xn):qn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var d=ge(e);if(d){if(x=Ln(e),!a)return Ze(e,x)}else{var u=Sn(e),g=u==Qn||"[object GeneratorFunction]"==u;if(be(e))return Qe(e,a);if(u==Zn||u==Jn||g&&!r){if(x=c||g?{}:zn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[u])return r?e:{};x=Un(e,u,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),$n(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var f=d?void 0:(l?c?un:dn:c?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=po(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var d=-1,u=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++d<x;){var m=t[d],f=e[d];if(o)var h=i?o(f,m,d,e,t,r):o(m,f,d,t,e,r);if(void 0!==h){if(h)continue;u=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){u=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){u=!1;break}}return r.delete(t),r.delete(e),u};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const wo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=So;case"[object Set]":var a=1&o;if(x||(x=Io),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var Mo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=dn(t),a=x.length;if(a!=dn(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:Mo.call(e,l)))return!1}var d=r.get(t),u=r.get(e);if(d&&u)return d==e&&u==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===p?f===h||s(f,h,n,o,r):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po:Sn(t),c=x?Po:Sn(e),l=(a=a==Fo?Do:a)==Do,d=(c=c==Fo?Do:c)==Do,u=a==c;if(u&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(u&&!l)return r||(r=new Yt),i||Le(t)?Ro(t,e,n,o,s,r):wo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=d&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!u&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const zo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const Wo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Vo=function(t,e){return e.length<2?t:zo(t,Wo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Vo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["isInContent","from","end","split","author","substr","clear","onAccept","set","start","size","suggestion:","_onAttributesChange","reduce","_onDiscard","commentThread","createdAt","accept","decorate","next","getMarkerNames","discard","getMarkers","creator","isExternal","@external","getRanges","_onAccept","delete","attributes","_saved","onAttributesChange","length","change","_markerNames","filter","type","push","onDiscard","toJSON","setAttribute","addRange","removeMarker","getMultiRangeId","removeMarkers","head","getFirstRange","data","getFirstMarker","addMarkerName","_model","previous","subType","addMarker","hasComments","getRange","map"];var $o,Jo;$o=Xo,Jo=320,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.type=e[Qo("0x1")],this[Qo("0x11")]=e[Qo("0x11")]||null,this.author=e[Qo("0x1a")],this[Qo("0x2d")]=e[Qo("0x2d")]||e[Qo("0x1a")],this[Qo("0x2e")]=Boolean(e[Qo("0x33")]&&e[Qo("0x33")][Qo("0x2f")]),this[Qo("0xc")]=null,this[Qo("0xf")]=t,this[Qo("0x31")]=e[Qo("0x1d")],this[Qo("0x24")]=e[Qo("0x3")],this[Qo("0x22")]=e[Qo("0x35")],this[Qo("0x38")]=new Set,this[Qo("0x26")]=null,this.set("authoredAt",null),this[Qo("0x1e")](Qo("0x33"),e[Qo("0x33")]||{}),this[Qo("0x1e")](Qo("0x10"),null),this[Qo("0x1e")](Qo("0x29"),null),this[Qo("0x1e")](Qo("0x25"),null),this[Qo("0x1e")](Qo("0x34"),!1),this.decorate(Qo("0x27")),this[Qo("0x28")](Qo("0x2b"))}get[Qo("0xa")](){let t=this;for(;t[Qo("0x10")];)t=t.previous;return t}get[Qo("0x13")](){return!!this[Qo("0x25")]&&this[Qo("0x25")].length>0}get isMultiRange(){return 0!=this._markerNames[Qo("0x20")]&&6==Array[Qo("0x17")](this[Qo("0x38")])[0][Qo("0x19")](":")[Qo("0x36")]}get[Qo("0x16")](){return null!==this.getFirstMarker()}[Qo("0xe")](t){this[Qo("0x38")].add(t)}[Qo("0x2a")](){return Array[Qo("0x17")](this[Qo("0x38")])}[Qo("0x2c")](){return this[Qo("0x2a")]()[Qo("0x15")]((t=>this[Qo("0xf")].markers.get(t)))[Qo("0x0")]((t=>t))}getFirstMarker(){return this[Qo("0x2c")]()[0]||null}removeMarkers(){this[Qo("0xf")].change((t=>{for(const e of this[Qo("0x2c")]())t[Qo("0x7")](e)})),this[Qo("0x38")][Qo("0x1c")]()}[Qo("0x7")](t){this[Qo("0xf")][Qo("0x37")]((e=>{e[Qo("0x7")](t)})),this[Qo("0x38")][Qo("0x32")](t)}[Qo("0x6")](t){const e=Qo("0x21")+this[Qo("0x1")]+":"+this[Qo("0x11")]+":"+this.id+":"+this.creator.id+":"+Zo.getMultiRangeId();this[Qo("0xe")](e),this[Qo("0xf")][Qo("0x37")]((n=>{n[Qo("0x12")](e,{range:t,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(t){for(const e of this.getRanges())if(e.isIntersecting(t))return!0;return!1}[Qo("0x30")](){return this[Qo("0x2c")]()[Qo("0x15")]((t=>t.getRange()))}getItems(){return this[Qo("0x30")]()[Qo("0x23")](((t,e)=>[...t,...e.getItems()]),[])}[Qo("0xb")](){var t;return(null===(t=this[Qo("0xd")]())||void 0===t?void 0:t[Qo("0x14")]())||null}getContainedElement(){const t=this[Qo("0x30")]();if(1!=t.length)return null;const e=t[0],n=e[Qo("0x1f")].nodeAfter,o=e[Qo("0x18")].nodeBefore;return n instanceof i.Element?n!=o?null:n:null}[Qo("0x27")](){this[Qo("0x31")](this[Qo("0x30")](),this[Qo("0xc")],this.attributes),this[Qo("0x9")]()}[Qo("0x2b")](){this._onDiscard(this[Qo("0x30")](),this[Qo("0xc")],this.attributes),this[Qo("0x9")]()}getAllAdjacentSuggestions(){const t=[];let e=this[Qo("0xa")];for(;e;)t[Qo("0x2")](e),e=e.next;return t}[Qo("0x5")](t,e){const n=eo(this[Qo("0x33")]);_o(n,t,e),Go(n,this.attributes)||(this[Qo("0x33")]=n,this._onAttributesChange(n))}removeAttribute(t){const e=eo(this[Qo("0x33")]);qo(e,t),Go(e,this.attributes)||(this[Qo("0x33")]=e,this[Qo("0x22")](this[Qo("0x33")]))}[Qo("0x4")](){return{id:this.id,type:this[Qo("0x11")]?this[Qo("0x1")]+":"+this[Qo("0x11")]:this[Qo("0x1")],authorId:this.creator.id,createdAt:this.createdAt,hasComments:this[Qo("0x13")],data:this.data,attributes:this[Qo("0x33")]}}static[Qo("0x8")](){return(0,e.uid)()[Qo("0x1b")](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=["previousSibling","pop","item","removeContainer","removeObject","getWalker","_customCallbacks","ELEMENT_SPACE","removeEmptyContainer","*Split:* %0","EmptyContainer","$textProxy","remove","_locale","addEmptyContainer","match","deletion","insertion","addObject","*Merge:* %0","text","elementEnd","$1 $2","getFirstRange","get","set","Object","getDescriptions","type","add","matchingCallback","name","function","*Remove:* %0","checkChild","quantity","_itemLabels","isObject","_addDescriptionItems","isEqual","Container","skip","data","_itemLabelsCallbacks","_resolveDescriptionItems","replace","$text","label","start","indexOf","nextSibling","push","REPLACE_TEXT","_schema","length","element","getItemLabel","elementStart","*Insert:* %0","isEmpty","addContainer"];var es,ns;es=ts,ns=418,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("0xf")]=[],this[os("0x2d")]=new Map,this[os("0x34")]=[],this[os("0x1")]=t,this[os("0x16")]=e}[os("0x24")](t){const e=[];for(let n=0;n<t[os("0x2")];n++){const o=t[n];if(!o.isInContent)continue;let s=!1;for(const t of this[os("0xf")]){const n=t(o);if(n){os("0x25")in n&&e.push(n),s=!0;break}}if(!s){this[os("0x2f")](e,o);const s=t[n+1];if(s&&!o[os("0x20")]().end[os("0x30")](s.getFirstRange()[os("0x39")])){const t=e[e[os("0x2")]-1],n=os("0x1a")==o[os("0x25")]?os("0x26"):os("0x15");t&&"text"==t[os("0x25")]&&(t[n]+="\n")}}}return this[os("0x35")](e)}registerDescriptionCallback(t){this[os("0xf")].push(t)}registerElementLabel(t,n,o=e.priorities.normal){os("0x29")==typeof t?(0,e.insertToPriorityArray)(this[os("0x34")],{matchingCallback:t,label:n,priority:o}):this[os("0x2d")][os("0x22")](t,n)}[os("0x4")](t,e=1){let n;for(const e of this[os("0x34")])if(e[os("0x27")](t)){n=e[os("0x38")];break}return n||(n=this._itemLabels[os("0x21")](t[os("0x28")])),n?n(e):1!==e?e+" "+t.name+"s":""+t[os("0x28")]}[os("0x2f")](t,e){const n=e[os("0x20")]()[os("0xe")](),o=os("0x1a")==e[os("0x25")]?"add":os("0x15");for(const e of n){const s=e[os("0xb")],r=t[t[os("0x2")]-1];if(s.is(os("0x14")))r&&r[os("0x25")].indexOf("Container")>-1&&t[os("0xa")](),r&&os("0x1d")==r.type?r[o]+=s[os("0x33")]:t[os("0x3c")]({type:"text",add:os("0x26")==o?s[os("0x33")]:"",remove:os("0x15")==o?s[os("0x33")]:""});else if(this[os("0x1")][os("0x2e")](s)){const i=s;if(r&&r[os("0x25")].indexOf(os("0x31"))>-1&&t[os("0xa")](),os("0x1e")==e[os("0x25")])continue;r&&r[os("0x25")]==o+os("0x23")&&r.element.name==i[os("0x28")]?r.quantity++:t[os("0x3c")]({type:o+os("0x23"),element:i,quantity:1}),n[os("0x32")]((t=>!(os("0x1e")==t.type&&t[os("0xb")]==s)))}else if(this[os("0x1")][os("0x2b")](s,os("0x37"))||s.is(os("0x3"),"softBreak")){const n=s;if(os("0x26")==o&&os("0x5")==e[os("0x25")]||os("0x15")==o&&os("0x1e")==e.type)continue;if(r&&-1==r.type[os("0x3a")](os("0x31"))){os("0x1d")==r.type&&(r[o]+="\n");continue}let i;if(i=os("0x26")==o?n[os("0x3b")]&&!this[os("0x1")][os("0x2e")](n.nextSibling)?n[os("0x3b")]:null:n[os("0x9")]&&!this[os("0x1")][os("0x2e")](n[os("0x9")])?n[os("0x9")]:null,n[os("0x7")]||i&&i[os("0x7")]){const e=i&&i.isEmpty?i:n;r&&r[os("0x25")]==o+os("0x13")&&r[os("0x3")][os("0x28")]==e[os("0x28")]?r[os("0x2c")]++:t[os("0x3c")]({type:o+os("0x13"),element:e,quantity:1})}else t.push({type:o+os("0x31"),element:n})}}}[os("0x35")](t){const e=this._locale,n=[];for(const o of t){switch(o[os("0x25")]){case os("0x1d"):if(o[os("0x26")]=o[os("0x26")][os("0x36")](/(\S)\u000A+(\S)/g,os("0x1f")).replace(/\u000A/g,""),o[os("0x15")]=o.remove[os("0x36")](/(\S)\u000A+(\S)/g,os("0x1f"))[os("0x36")](/\u000A/g,""),""!=o[os("0x26")]&&""!=o[os("0x15")]){n[os("0x3c")]({type:os("0x36"),content:Yo(e,os("0x0"),['"'+o.remove+'"','"'+o[os("0x26")]+'"'])});continue}if(null!=o[os("0x26")][os("0x18")](/^ +$/)){n[os("0x3c")]({type:"insertion",content:Yo(e,os("0x6"),Yo(e,os("0x10"),o[os("0x26")][os("0x2")]))});continue}if(null!=o[os("0x15")][os("0x18")](/^ +$/)){n[os("0x3c")]({type:os("0x19"),content:Yo(e,os("0x2a"),Yo(e,os("0x10"),o[os("0x15")].length))});continue}if(""!=o.add){n[os("0x3c")]({type:"insertion",content:Yo(e,os("0x6"),'"'+o[os("0x26")]+'"')});continue}n.push({type:os("0x19"),content:Yo(e,os("0x2a"),'"'+o[os("0x15")]+'"')});continue;case os("0x17"):case os("0x1b"):n[os("0x3c")]({type:os("0x1a"),content:Yo(e,os("0x6"),this[os("0x4")](o.element,o[os("0x2c")]))});continue;case os("0x11"):case os("0xd"):n.push({type:os("0x19"),content:Yo(e,os("0x2a"),this[os("0x4")](o.element,o[os("0x2c")]))});continue;case os("0x8"):n.push({type:os("0x1a"),content:Yo(e,os("0x12"),this.getItemLabel(o[os("0x3")],o[os("0x2c")]))});continue;case os("0xc"):n[os("0x3c")]({type:os("0x19"),content:Yo(e,os("0x1c"),this[os("0x4")](o.element,o[os("0x2c")]))});continue}n[os("0x3c")](o)}return n}}const rs=["AlignmentEditing","FORMAT_JUSTIFY_TEXT","afterInit","value","editor","model","TrackChangesEditing","right","checkAttribute","locale","schema","getSelectedBlocks","center","plugins","_descriptionFactory","contentLanguageDirection","commandParams","change","justify","FORMAT_ALIGN_TO_CENTER","format","commandName","enableCommand","FORMAT_ALIGN_TO_RIGHT","alignment","markBlockFormat","FORMAT_ALIGN_TO_LEFT","left","document","registerDescriptionCallback","has","ltr","from","selection"];var is,xs;is=rs,xs=373,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x3")](){const t=this[as("0x5")],e=t[as("0xa")];if(!t[as("0xe")][as("0x1f")](as("0x1")))return;const n=t[as("0xe")].get(as("0x7"));n[as("0x17")](as("0x19"),((e,o={})=>{let s=o.value;o[as("0x4")]||(s=as("0x20")===t[as("0xa")][as("0x10")]?as("0x1c"):as("0x8"));const r=Array[as("0x21")](this[as("0x5")][as("0x6")][as("0x1d")][as("0x0")][as("0xc")]()).filter((t=>function(t,e,n){const o=t.getAttribute(as("0x19"))||null;return e[as("0x9")](t,as("0x19"))&&n!=o}(t,this.editor[as("0x6")][as("0xb")],s)));t[as("0x6")][as("0x12")]((()=>{for(const t of r)n[as("0x1a")](t,{commandName:as("0x19"),commandParams:[{value:s}]})}))})),n[as("0xf")][as("0x1e")]((t=>{const{data:n}=t;if(n&&as("0x19")==n[as("0x16")]){const t=n[as("0x11")][0].value;return{type:as("0x15"),content:Yo(e,"*Format:* %0",function(t){switch(t){case as("0x1c"):return Yo(e,as("0x1b"));case as("0x8"):return Yo(e,as("0x18"));case as("0xd"):return Yo(e,as("0x14"));case as("0x13"):return Yo(e,as("0x2"))}}(t))}}}))}}const ls=["TrackChangesEditing","isContent","ck-suggestion-marker-","toViewElement","createRangeOn","type","ck-suggestion-marker--active","model","test","nextSibling","activeMarkers","writer","item","isBlock","getAttribute","isAtEnd","mapper","includes","consumable","element","start","markerRange","previousPosition","listItem","getItems","name","listIndent","span","parent","toViewPosition","getCustomProperty","bindElementToMarker","addClass","markerName","schema","insert","createUIElement"];var ds,us;ds=ls,us=279,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("0x4")]())s.hasAttribute(t)&&o.push(n[gs("0x15")](s));return o}function fs(t){const e=[];if(t.is("element",gs("0x3"))){let n=t[gs("0x1a")];for(;n&&n.is(gs("0x24"),gs("0x3"))&&n[gs("0x1f")](gs("0x6"))>0;)e.push(n),n=n[gs("0x1a")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t.plugins.get(gs("0x11"));return(s,r,i)=>{if(!i[gs("0x23")][gs("0x19")](r[gs("0x1")],s[gs("0x5")]))return;const x=r[gs("0x1")].getWalker(),a=r.markerRange[gs("0x0")],c=t[gs("0x18")][gs("0xe")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t[gs("0x1d")];u=u||c[gs("0x12")](e);const n=i[gs("0x21")][gs("0x14")](e);if(n&&n[gs("0xa")]("addHighlight"))return;"elementEnd"==t[gs("0x16")]&&c[gs("0x1e")](e)&&!c.isLimit(e)&&(e.nextSibling||a[gs("0x20")]?l&&l[gs("0x8")]==e||(l=e,m(t.previousPosition),g=!0):d=d||t[gs("0x2")])}function m(t){const s=i[gs("0x1c")][gs("0x10")](gs("0x7"),{class:gs("0x13")+e}),x=i.mapper[gs("0x9")](t);n&&o[gs("0x1b")][gs("0x22")](r[gs("0xd")])&&i[gs("0x1c")][gs("0xc")](gs("0x17"),s),i.writer[gs("0xf")](x,s),i[gs("0x21")][gs("0xb")](s,r[gs("0xd")])}u||g||!d||m(d)}}const ps=["afterInit","model","FORMAT_UNDERLINE","StrikethroughEditing","FORMAT_BOLD","get","code","FORMAT_SUPERSCRIPT","UnderlineEditing","FORMAT_CODE","SuperscriptEditing","format","markInlineFormat","subscript","editor","TrackChangesEditing","bold","slice","forceValue","isCollapsed","*Remove format:* %0","plugins","getRanges","value","FORMAT_ITALIC","FORMAT_SUBSCRIPT","strikethrough","from","change","toLowerCase","locale","underline","SubscriptEditing","commands","FORMAT_STRIKETHROUGH","superscript","_descriptionFactory","ItalicEditing","has","registerDescriptionCallback","document"];var bs,Es;bs=ps,Es=209,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=["BoldEditing",_s("0x21"),_s("0x4"),"CodeEditing",_s("0x28"),_s("0x1c"),_s("0x6")];class Cs extends t.Plugin{[_s("0x25")](){const t=this[_s("0xa")],e=t[_s("0x26")],n=t[_s("0x11")][_s("0x1")](_s("0xb")),o=t[_s("0x1a")];for(const o of Ts){if(!t[_s("0x11")][_s("0x22")](o))continue;const s=o[_s("0xd")](0,-7)[_s("0x19")](),r=t[_s("0x1d")][_s("0x1")](s);n.enableCommand(s,((t,o={})=>{const i=e[_s("0x24")].selection;if(i[_s("0xf")])return void t(o);const x=void 0!==o.forceValue?o[_s("0xe")]:!r[_s("0x13")];e[_s("0x18")]((()=>{const t=Array[_s("0x17")](i[_s("0x12")]());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n[_s("0x8")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[_s("0x20")][_s("0x23")]((n=>{const{data:s}=n;if(s&&s.commandName===t)return s.commandParams[0][_s("0xe")]?{type:_s("0x7"),content:Yo(o,"*Format:* %0",e)}:{type:_s("0x7"),content:Yo(o,_s("0x10"),e)}}))}s(_s("0xc"),Yo(o,_s("0x0"))),s("italic",Yo(o,_s("0x14"))),s(_s("0x1b"),Yo(o,_s("0x27"))),s(_s("0x2"),Yo(o,_s("0x5"))),s(_s("0x16"),Yo(o,_s("0x1e"))),s(_s("0x9"),Yo(o,_s("0x15"))),s(_s("0x1f"),Yo(o,_s("0x3")))}}const ys=["afterInit","*Format:* %0","blockQuote","plugins","_descriptionFactory","forceValue","from","name","has","parent","checkChild","enableCommand","document","schema","TrackChangesEditing","*Remove format:* %0","ELEMENT_BLOCK_QUOTE","locale","value","selection","getSelectedBlocks","model","commands","get","editor","markBlockFormat","filter","commandParams","format"];var ks,As;ks=ys,As=110,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0x6")](){const t=this[vs("0x1")],e=t[vs("0x17")];if(!t[vs("0x9")][vs("0xe")]("BlockQuoteEditing"))return;const n=t.plugins[vs("0x0")](vs("0x14")),o=this.editor[vs("0x1c")].get(vs("0x8"));n[vs("0x11")](vs("0x8"),((e,s={})=>{const r=this[vs("0x1")][vs("0x1b")][vs("0x12")][vs("0x19")],i=s&&void 0!==s[vs("0xb")]?s[vs("0xb")]:!o[vs("0x18")];let x=[];if(i){const e=Array[vs("0xc")](r[vs("0x1a")]())[vs("0x3")]((t=>Ss(t)||function(t,e){const n=e[vs("0x10")](t[vs("0xf")],vs("0x8")),o=e.checkChild(["$root",vs("0x8")],t);return n&&o}(t,this[vs("0x1")][vs("0x1b")][vs("0x13")])));x=S(e,t[vs("0x1b")])}else{const e=Array[vs("0xc")](r[vs("0x1a")]())[vs("0x3")]((t=>Ss(t)));x=S(e,t[vs("0x1b")])}t[vs("0x1b")].change((()=>{for(const t of x)n[vs("0x2")](t,{commandName:"blockQuote",commandParams:[{forceValue:i}]})}))})),n[vs("0xa")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&vs("0x8")==n.commandName){const t=Yo(e,vs("0x16"));return n[vs("0x4")][0][vs("0xb")]?{type:vs("0x5"),content:Yo(e,vs("0x7"),t)}:{type:vs("0x5"),content:Yo(e,vs("0x15"),t)}}}))}}function Ss(t){return"blockQuote"==t[vs("0xf")][vs("0xd")]}const Is=["get","afterInit","editor","ckbox","TrackChangesEditing","plugins","commands"];var Ls,Ns;Ls=Is,Ns=350,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const ws=function(t,e){return Is[t-=0]};class Ms extends t.Plugin{[ws("0x1")](){const t=this[ws("0x2")];t[ws("0x6")][ws("0x0")](ws("0x3"))&&t[ws("0x5")][ws("0x0")](ws("0x4")).enableCommand(ws("0x3"))}}const Os=["get","language","selection","blockName","config","editor","parent","CodeBlock","registerDescriptionCallback","filter","registerElementLabel","enableCommand","TrackChangesEditing","name","model","getSelectedBlocks","ELEMENT_CODE_BLOCK","checkChild","afterInit","from","change","outdentCodeBlock","indentCodeBlock","*Remove format:* %0","markBlockFormat","languages","commandParams","codeBlock","_descriptionFactory","forceValue","find","format","plugins"];var Fs,Ps;Fs=Os,Ps=131,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x13")](){const t=this[Ds("0x6")];if(!t[Ds("0x0")].has(Ds("0x8")))return;const e=t[Ds("0x0")].get(Ds("0xd")),n=t.locale,o=t[Ds("0x5")][Ds("0x1")]("codeBlock")[Ds("0x1a")],s=t.commands.get(Ds("0x1c"));e[Ds("0xc")](Ds("0x17")),e[Ds("0xc")](Ds("0x16")),e[Ds("0xc")]("codeBlock",((n,r={})=>{const i=t.model,x=t[Ds("0xf")].document[Ds("0x3")],a=r&&void 0!==r[Ds("0x1e")]?r.forceValue:!s.value;let c;r[Ds("0x2")]||(r.language=o[0][Ds("0x2")]),c=a?Array[Ds("0x14")](x[Ds("0x10")]()).filter((t=>{return js(t)||(e=t,n=i.schema,!e.is("rootElement")&&!n.isLimit(e)&&n[Ds("0x12")](e[Ds("0x7")],"codeBlock"));var e,n})):Array[Ds("0x14")](x[Ds("0x10")]())[Ds("0xa")]((t=>js(t)));const l=S(c,i);i[Ds("0x15")]((()=>{for(const t of l)e[Ds("0x19")](t,{commandName:Ds("0x1c"),commandParams:[{...r,forceValue:a}],formatGroupId:Ds("0x4")})}))})),e[Ds("0x1d")][Ds("0xb")]("codeBlock",(t=>Yo(n,Ds("0x11"),t))),e[Ds("0x1d")][Ds("0x9")]((t=>{const e=n.t,{type:s,data:r}=t;if("formatBlock"==s&&r&&"codeBlock"==r.commandName){const t=r[Ds("0x1b")][0][Ds("0x2")],s=e(o[Ds("0x1f")]((e=>e[Ds("0x2")]===t)).label);return r[Ds("0x1b")][0][Ds("0x1e")]?{type:Ds("0x20"),content:Yo(n,"*Format:* %0",Yo(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:Ds("0x20"),content:Yo(n,Ds("0x18"),Yo(n,Ds("0x11"),1))}}}))}}function js(t){return Ds("0x1c")==t[Ds("0xe")]}const Us=["afterInit","TrackChangesEditing","addCommentThread","has","CommentsEditing","enableCommand","plugins"];var Gs,Hs;Gs=Us,Hs=449,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const zs=function(t,e){return Us[t-=0]};class Ws extends t.Plugin{[zs("0x6")](){const t=this.editor;t[zs("0x5")][zs("0x2")](zs("0x3"))&&t.plugins.get(zs("0x0"))[zs("0x4")](zs("0x1"))}}var Vs=n(181);const Ks=["options","createSelection","writer","batch","setSelection","downcastDispatcher","bind","deleteForward","createRange","markerName","selection","model","addMarker:suggestion:deletion","remove","markerNameToElements","TrackChangesEditing","isCollapsed","merge","mapper","uiElement","unbindElementFromMarkerName","fromRange","showSuggestionHighlights","enableCommand","init","rootName","editing","buffer","modifySelection","lock","get","start","removeMarker:suggestion:deletion","unit","high","end","unlock","detach","plugins","getFirstRange","commands","$graveyard","forward"];var qs,Xs;qs=Ks,Xs=359,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[Vs.Delete]}[$s("0x9")](){const t=this.editor,e=t[$s("0x17")][$s("0xf")]($s("0x0"));e[$s("0x8")]("delete");const n=t[$s("0x19")].get("deleteForward");e.enableCommand($s("0x23"),((e,o={})=>{const s=t[$s("0x27")][$s("0x1d")](t[$s("0x27")].document[$s("0x26")]);s[$s("0x1")]&&t[$s("0x27")][$s("0xd")](s,{direction:$s("0x1b"),unit:o[$s("0x12")]});const r=s[$s("0x18")](),x=i.LiveRange[$s("0x6")](r);let a;e(o),a=$s("0x1a")==x.root[$s("0xa")]?t[$s("0x27")][$s("0x24")](r[$s("0x10")]):t[$s("0x27")][$s("0x24")](x[$s("0x10")],x[$s("0x14")]),x[$s("0x16")](),t[$s("0x27")].enqueueChange(n[$s("0xc")][$s("0x1f")],(t=>{n[$s("0xc")][$s("0xe")](),t[$s("0x20")](t[$s("0x24")](a[$s("0x14")])),n[$s("0xc")][$s("0x15")]()}))})),t[$s("0xb")][$s("0x21")].on($s("0x28"),hs(t,$s("0x2")),{priority:$s("0x13")}),t.data.downcastDispatcher.on($s("0x28"),((e,n,o)=>{o[$s("0x1c")][$s("0x7")]&&hs(t,$s("0x2"),{showActiveMarker:!1})[$s("0x22")](this)(e,n,o)}),{priority:$s("0x13")}),t[$s("0xb")][$s("0x21")].on($s("0x11"),((t,e,n)=>{const o=n[$s("0x3")][$s("0x2a")](e[$s("0x25")]);if(o)for(const t of o)t.is($s("0x4"))&&(n[$s("0x3")][$s("0x5")](t,e.markerName),n[$s("0x1e")][$s("0x29")](t))}),{priority:$s("0x13")})}}const Qs=["map","hasAttribute","containsItem","commandName","markMultiRangeBlockFormat","execute","schema","*Outdent:* %0","plugins","previousSibling","registerCustomCallback","*Merge:* %0","indentList","splitListItemBefore","end","isFirstBlockOfListItem","add","isObject","DocumentListUtils","registerElementLabel","getSelectedBlocks","createRange","enableCommand","ELEMENT_NUMBERED_LIST","document","numberedList","before","documentList","createPositionAt","nextSibling","*Format:* remove from %0","multipleBlocks","refresh","*Indent:* %0","value","registerDescriptionCallback","has","model","format","parent","expandListBlocksToCompleteList","slice","change","_suggestionFactory","listItemId","fromRange","toUpperCase","listType","from","nodeAfter","length","bulletedList","TrackChangesEditing","formatBlock","commands","_descriptionFactory","afterInit","setSelection","start","forceValue","_LIST","mergeListItemForward","push","commandParams","getAttribute","editor","get","ELEMENT_BULLETED_LIST","getFirstRange","ELEMENT_","markBlockFormat","listIndent","selection","outdentList","*Format:* insert into %0","ELEMENT_LIST_ITEM","splitListItemAfter","*Change to:* %0"];var Zs,Ys;Zs=Qs,Ys=397,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0x31")](){const t=this[tr("0x3a")];if(!t.plugins[tr("0x1d")]("DocumentListEditing"))return;const e=t.locale,n=t.plugins[tr("0x3b")](tr("0x2d")),o=t[tr("0x1")][tr("0x3b")](tr("0xb"));function s(e){return()=>{const s=t[tr("0x2f")][tr("0x3b")](e);let r=Array[tr("0x29")](t[tr("0x1e")][tr("0x11")][tr("0x41")].getSelectedBlocks());if(a(e)){r=o[tr("0x21")](r);const t=[];for(const e of r)o[tr("0x8")](e)&&t[tr("0x37")](e);r=t}t.model[tr("0x23")]((()=>{n[tr("0x4b")](r,{commandName:e,commandParams:[{forceValue:!s[tr("0x1b")]}],formatGroupId:tr("0x28")},[],tr("0x14"))}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0x29")](t);const n=e.findIndex((t=>!t[tr("0x48")](tr("0x25"))));return n>-1&&(e=e[tr("0x22")](0,n)),e}(t[tr("0x1e")].document[tr("0x41")][tr("0xd")]()),s=o[o[tr("0x2b")]-1],r=t[tr("0x1e")][tr("0x4d")][tr("0xa")](s)?"after":tr("0x7"),i=t[tr("0x1e")][tr("0xe")](t.model[tr("0x15")](o[0],tr("0x13")),t[tr("0x1e")][tr("0x15")](s,r));t.model[tr("0x23")]((()=>{n[tr("0x3f")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x28")},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t[tr("0x39")](tr("0x40"))>n.getAttribute(tr("0x40"));)e[tr("0x9")](t),t=t.nextSibling}return Array[tr("0x29")](e)}(o))}))}}function x(e){return()=>{const o=t[tr("0x1e")][tr("0x11")].selection[tr("0xd")]().next()[tr("0x1b")],s=t[tr("0x1e")][tr("0x15")](o,tr("0x13")),r=t[tr("0x1e")].createPositionAt(o,0),i=t[tr("0x1e")][tr("0xe")](s,r);t[tr("0x1e")][tr("0x23")]((()=>{n[tr("0x3f")](i,{commandName:e,commandParams:[],formatGroupId:"listType"})}))}}function a(e){const n=t[tr("0x2f")][tr("0x3b")](tr("0x2c"))[tr("0x1b")],o=t[tr("0x2f")].get(tr("0x12"))[tr("0x1b")];return"numberedList"===e?n:o}n[tr("0xf")](tr("0x12"),s(tr("0x12"))),n[tr("0xf")](tr("0x2c"),s(tr("0x2c"))),n[tr("0xf")]("indentList",r(tr("0x5"))),n[tr("0xf")](tr("0x42"),r(tr("0x42"))),n.enableCommand(tr("0x45"),x(tr("0x45"))),n[tr("0xf")](tr("0x6"),x(tr("0x6"))),n._descriptionFactory[tr("0xc")]((function(e){const n=!t.model[tr("0x4d")][tr("0xa")](e),o=e[tr("0x2")],s=e[tr("0x16")],r=e.getAttribute("listItemId"),i=!o||o[tr("0x39")](tr("0x25"))!==r,x=!s||s.getAttribute(tr("0x25"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,tr("0x44"),t))),n[tr("0x30")][tr("0x1c")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n.commandName){case"bulletedList":r=n.commandParams[0].forceValue,i=a(n[tr("0x4a")]),o=tr(r?"0x43":"0x17"),i&&(o=tr("0x46")),s={type:tr("0x1f"),content:Yo(e,o,Yo(e,tr("0x3c")))};break;case tr("0x12"):r=n[tr("0x38")][0][tr("0x34")],i=a(n[tr("0x4a")]),o=tr(r?"0x43":"0x17"),i&&(o=tr("0x46")),s={type:tr("0x1f"),content:Yo(e,o,Yo(e,tr("0x10")))};break;case tr("0x5"):o=tr("0x1a"),s={type:tr("0x1f"),content:Yo(e,o,Yo(e,tr("0x44")))};break;case tr("0x42"):o=function(t){const e=t.getFirstRange();let n=e.start.nodeAfter;for(;n&&e[tr("0x49")](n);){if(n.getAttribute("listIndent")>0)return!1;n=n.nextSibling}return!0}(t)?Yo(e,"*Format:* remove from %0",Yo(e,function(t){const e=t[tr("0x3d")]()[tr("0x33")][tr("0x2a")];return tr("0x3e")+e[tr("0x39")](tr("0x28"))[tr("0x27")]()+tr("0x35")}(t))):Yo(e,tr("0x0"),Yo(e,tr("0x44"))),s={type:tr("0x1f"),content:o};break;case"mergeListItemBackward":case tr("0x36"):!1===n[tr("0x18")]&&(o=tr("0x4"),s={type:"deletion",content:Yo(e,o,Yo(e,tr("0x44")))})}return s})),n[tr("0x24")][tr("0x3")](tr("0x2e"),tr("0x14"),"accept",(function(e,n){const o=[];for(let n of e)n.start.nodeAfter===n.end[tr("0x20")]&&(n=t[tr("0x1e")][tr("0xe")](t[tr("0x1e")][tr("0x15")](n[tr("0x33")].nodeAfter,0))),o[tr("0x37")](n);t[tr("0x1e")][tr("0x23")]((e=>{const s=t.model[tr("0x11")][tr("0x41")],r=Array[tr("0x29")](s.getRanges())[tr("0x47")]((t=>i.LiveRange[tr("0x26")](t)));e[tr("0x32")](o),t.commands[tr("0x3b")](n[tr("0x4a")])[tr("0x19")](),n[tr("0x38")][tr("0x37")]({forceDefaultExecution:!0}),t[tr("0x4c")](n[tr("0x4a")],...n[tr("0x38")]),e.setSelection(r);for(const t of r)t.detach()}))}))}}var nr=n(331);const or=["detach","createRange","selection","data","editing","change","nextSibling","enter","afterExecute","removeMarker:suggestion:insertion","options","hasClass","showSuggestionHighlights","model","mapper","setSelection","bind","markerNameToElements","addMarker:suggestion:insertion","downcastDispatcher","parent","TrackChangesEditing","fire","fromRange","editor","init","getFirstPosition","high","get","plugins","end","enterBlock","createPositionAt","markerName","commands","ck-suggestion-marker-split"];var sr,rr;sr=or,rr=456,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("0x1")](){const t=this[ir("0x0")],e=t[ir("0x5")][ir("0x4")](ir("0x21")),n=t[ir("0xa")][ir("0x4")]("enter");e.enableCommand(ir("0x13"),(()=>{t[ir("0x19")][ir("0x11")]((o=>{const s=t.model.document[ir("0xe")],r=s[ir("0x2")](),x=i.LiveRange[ir("0x23")](s.getFirstRange());if(n[ir("0x7")](o)){const n=t.model[ir("0x8")](r[ir("0x20")][ir("0x12")],0),s=o.createRange(r,n);e.markInsertion(s)}else o[ir("0x1b")](o[ir("0xd")](x[ir("0x6")]));x[ir("0xc")](),n[ir("0x22")](ir("0x14"),{writer:o})}))})),t[ir("0x10")][ir("0x1f")].on(ir("0x1e"),hs(t,"split"),{priority:"high"}),t[ir("0x10")][ir("0x1f")].on(ir("0x15"),((t,e,n)=>{const o=n[ir("0x1a")][ir("0x1d")](e[ir("0x9")]);if(o)for(const t of o)t[ir("0x17")](ir("0xb"))&&(n[ir("0x1a")].unbindElementFromMarkerName(t,e[ir("0x9")]),n.writer.remove(t))}),{priority:ir("0x3")}),t[ir("0xf")][ir("0x1f")].on(ir("0x1e"),((e,n,o)=>{o[ir("0x16")][ir("0x18")]&&hs(t,"split",{showActiveMarker:!1})[ir("0x1c")](this)(e,n,o)}),{priority:"high"})}}const ar=["find","editor","_isInDeletionRange","handleFindCommand","suggestion:deletion","findNext","TrackChangesEditing","string","end","afterInit","createPositionAt","enableCommand","getIntersection","plugins","replaceAll","findByTextCallback","has","get","getRange","getMarkersGroup","filter","model","start","replace","findPrevious","FindAndReplaceUtils"];var cr,lr;cr=ar,lr=310,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return ar[t-=0]};class ur extends t.Plugin{[dr("0xb")](){if(!this[dr("0x3")][dr("0xf")][dr("0x12")]("FindAndReplaceEditing"))return;const t=this[dr("0x3")][dr("0xf")][dr("0x13")](dr("0x8"));t.enableCommand(dr("0x2"),this.handleFindCommand.bind(this)),t.enableCommand(dr("0x7")),t[dr("0xd")](dr("0x0")),t.enableCommand(dr("0x19")),t[dr("0xd")](dr("0x10"))}[dr("0x5")](t,e,n={}){const o=this[dr("0x3")][dr("0xf")][dr("0x13")](dr("0x1"));void 0!==n&&t((t=>(dr("0x9")==typeof e?o[dr("0x11")](e,n):e)(t)[dr("0x16")]((e=>!1===this._isInDeletionRange(e,t.item)))),n)}[dr("0x4")](t,e){const n=this.editor[dr("0x17")].createRange(this[dr("0x3")][dr("0x17")][dr("0xc")](e,t[dr("0x18")]),this[dr("0x3")][dr("0x17")].createPositionAt(e,t[dr("0xa")]));for(const t of this.editor.model.markers[dr("0x15")](dr("0x6")))if(null!==n[dr("0xe")](t[dr("0x14")]()))return!0;return!1}}const gr=["isCollapsed","afterInit","fontColor","find","*Reset font size*","*Reset font color*","FontFamilyEditing","get","fontBackgroundColor","trim","getRanges","config","registerDescriptionCallback","commandName","editor","from","format","*Set font background color:* %0","locale","*Reset font background color*","fontFamily","*Set font color:* %0","model","document","label","fontBackgroundColor.colors","*Set font family:* %0","fontSize","fontColor.colors","selection","FontBackgroundColorEditing","value","plugins","fontSize.options","change","has","commandParams","normalizeSizeOptions","TrackChangesEditing","_enableCommand","toLowerCase","*Reset font family*"];var mr,fr;mr=gr,fr=260,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:"FontSizeEditing",commandName:"fontSize"},{pluginName:hr("0x28"),commandName:hr("0xc")},{pluginName:"FontColorEditing",commandName:hr("0x24")},{pluginName:hr("0x16"),commandName:hr("0x0")}];class br extends t.Plugin{[hr("0x23")](){const t=this[hr("0x6")][hr("0xa")];for(const{pluginName:t,commandName:e}of pr)this[hr("0x6")][hr("0x18")][hr("0x1b")](t)&&this[hr("0x1f")](e);this.editor[hr("0x18")][hr("0x29")](hr("0x1e"))._descriptionFactory[hr("0x4")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0x13")==o[hr("0x5")]){const e=o.commandParams[0][hr("0x17")];if(e){const o=n(this[hr("0x6")][hr("0x18")][hr("0x29")]("FontSize")[hr("0x1d")](this[hr("0x6")][hr("0x3")].get(hr("0x19")))[hr("0x25")]((t=>t[hr("0xe")]==e)).title)[hr("0x20")]();return{type:"format",content:Yo(t,"*Set font size:* %0",o)}}return{type:hr("0x8"),content:Yo(t,hr("0x26"))}}if("fontFamily"==o.commandName){const e=o[hr("0x1c")][0][hr("0x17")];return e?{type:hr("0x8"),content:Yo(t,hr("0x12"),e)}:{type:hr("0x8"),content:Yo(t,hr("0x21"))}}if(hr("0x24")==o.commandName){const e=o.commandParams[0][hr("0x17")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x6")][hr("0x3")].get(hr("0x14")))[hr("0x25")]((t=>t[hr("0xe")]==e));let r=e,i="";return o&&(r=o[hr("0x10")],i=n(r)[hr("0x20")]()),{type:"format",content:Yo(t,hr("0xd"),i)[hr("0x1")](),color:{value:e,title:i||r}}}return{type:hr("0x8"),content:Yo(t,hr("0x27"))}}if(hr("0x0")==o.commandName){const e=o[hr("0x1c")][0][hr("0x17")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x6")][hr("0x3")][hr("0x29")](hr("0x11")))[hr("0x25")]((t=>t[hr("0xe")]==e));let r=e,i="";return o&&(r=o.label,i=n(r)[hr("0x20")]()),{type:hr("0x8"),content:Yo(t,hr("0x9"),i)[hr("0x1")](),color:{value:e,title:i||r}}}return{type:hr("0x8"),content:Yo(t,hr("0xb"))}}}}))}[hr("0x1f")](t){const e=this[hr("0x6")];e[hr("0x18")].get(hr("0x1e")).enableCommand(t,((n,o={})=>{const s=e.model[hr("0xf")][hr("0x15")],r=o.value;s[hr("0x22")]?n(o):e[hr("0xe")][hr("0x1a")]((()=>{const n=Array[hr("0x7")](s[hr("0x2")]());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0xe")]);for(const o of n)e[hr("0x18")].get(hr("0x1e")).markInlineFormat(o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["join","fontBackgroundColor","label","modifySelection","commandName","fontColor.colors","getAttributes","title","boolean","commandParams","backward","createSelection","push","config","createRange","slice","fontSize.options","toLowerCase","getSelectedBlocks","*Set format to:* %0","locale","editor","length","document","isCollapsed","TrackChangesEditing","enableCommand","copyFormat","toUpperCase","markInlineFormat","forward","get","from","model","change","afterInit","registerDescriptionCallback","pasteFormat","*Remove all formatting*","plugins","getFirstPosition","_descriptionFactory","getRanges","commands","FontSize","format","schema","isBlock","entries","word","fontColor","getLastPosition","getAttributeProperties","charAt","isFormatting","getItems","split"];var _r,Tr;_r=Er,Tr=361,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0x10")](){const t=this[Cr("0x2")],n=t[Cr("0xe")],o=n[Cr("0x4")].selection,s=t[Cr("0x14")][Cr("0xc")](Cr("0x6")),r=t[Cr("0x1")],i=t[Cr("0x18")][Cr("0xc")]("copyFormat"),x=t[Cr("0x18")][Cr("0xc")](Cr("0x12"));i&&x&&(s[Cr("0x7")](Cr("0x12"),((t,r={})=>{const i=r;n[Cr("0xf")]((()=>{const t=Array[Cr("0xd")](o[Cr("0x17")]()),r=o[Cr("0x5")]?[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("0x2c")]()){const t=e[Cr("0x21")](n);t&&t[Cr("0x23")]&&(yield n)}}(t,n));for(const e of t.getRanges())for(const t of e[Cr("0x24")]())!n[Cr("0x1c")](t)&&o(t)&&(yield t);for(const e of t[Cr("0x38")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x1b")]))||0!==Object.keys(i).length)for(const t of r)s[Cr("0xa")](t,{commandName:"pasteFormat",commandParams:[i]})}))})),s[Cr("0x16")][Cr("0x11")]((e=>{const{data:n}=e;if(n&&Cr("0x12")===n[Cr("0x2a")]){const e=[],o=n[Cr("0x2f")][0];for(const[n,s]of Object[Cr("0x1d")](o))e[Cr("0x32")](Ar(t,n,s));return e[Cr("0x3")]?{type:Cr("0x1a"),content:Yo(r,Cr("0x0"),e.join(", "))}:{type:Cr("0x1a"),content:Yo(r,Cr("0x13"))}}})),t.plugins.get("TrackChangesEditing").enableCommand(Cr("0x8")))}}function kr(t,e){const n=t[Cr("0x31")](e);t[Cr("0x29")](n,{unit:Cr("0x1e"),direction:Cr("0x30")});const o=n[Cr("0x15")]();t[Cr("0x29")](n,{unit:Cr("0x1e"),direction:Cr("0xb")});const s=n[Cr("0x20")]();return t[Cr("0x34")](o,s)}function Ar(t,e,n){const o=t[Cr("0x1")].t,r=e[Cr("0x25")](/(?=[A-Z])/)[Cr("0x26")](" "),i=o(r[Cr("0x22")](0)[Cr("0x9")]()+r[Cr("0x35")](1))[Cr("0x37")]();if(Cr("0x2e")==typeof n)return i;if(Cr("0x1f")===e||Cr("0x27")===e){const e=(0,s.normalizeColorOptions)(t[Cr("0x33")][Cr("0xc")](Cr("0x2b"))).find((t=>t.model==n));return i+" ("+(e?o(e[Cr("0x28")])[Cr("0x37")]():n)+")"}if("fontSize"===e&&isNaN(parseFloat(n))){const e=t[Cr("0x14")][Cr("0xc")](Cr("0x19")).normalizeSizeOptions(t[Cr("0x33")].get(Cr("0x36"))).find((t=>t.model==n));return i+" ("+(e?o(e[Cr("0x2d")]).toLowerCase():n)+")"}return i+" ("+n+")"}const vr=["registerElementLabel","title","value","editor","markBlockFormat","formatBlock","heading","change","registerDescriptionCallback","locale","has","heading.options","schema","config","plugins","afterInit","*Change to:* %0","TrackChangesEditing","find","getSelectedBlocks","name","model","HeadingEditing","_descriptionFactory","ELEMENT_HEADING","format","filter","get","blockName","from","commandParams","paragraph","isObject","commandName"];var Rr,Sr;Rr=vr,Sr=135,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const Ir=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Ir("0x10")](){const t=this[Ir("0x4")],e=t[Ir("0xa")],n=t[Ir("0xe")][Ir("0x1c")](Ir("0xc"));if(!t[Ir("0xf")][Ir("0xb")](Ir("0x17")))return;const o=t.plugins[Ir("0x1c")](Ir("0x12"));o.enableCommand(Ir("0x7"),((e,n)=>{const s=n.value,r=Array[Ir("0x1e")](this.editor[Ir("0x16")].document.selection[Ir("0x14")]())[Ir("0x1b")]((t=>{return e=t,n=s,(o=this[Ir("0x4")].model[Ir("0xd")]).checkChild(e.parent,n)&&!o[Ir("0x21")](e)&&e[Ir("0x15")]!=n;var e,n,o}));t.model[Ir("0x8")]((()=>{for(const t of r)o[Ir("0x5")](t,{commandName:Ir("0x7"),commandParams:[n],formatGroupId:Ir("0x1d")},fs(t))}))}));for(const t of n)Ir("0x20")!=t[Ir("0x16")]&&o._descriptionFactory[Ir("0x1")](t[Ir("0x16")],(e=>{const n=Nr(t[Ir("0x16")]);return null!==n?s(e,n):r(e,t[Ir("0x2")])}));function s(t,n){return Yo(e,Ir("0x19"),[t,n])}function r(t,n){return Yo(e,"ELEMENT_HEADING_CUSTOM",[t,n])}o[Ir("0x18")][Ir("0x9")]((t=>{const{type:o,data:i}=t;if(Ir("0x6")==o&&i&&"heading"==i[Ir("0x0")]){const t=i[Ir("0x1f")][0][Ir("0x3")],o=Nr(t);if(null!==o)return{type:Ir("0x1a"),content:Yo(e,Ir("0x11"),s(1,o))};const x=n[Ir("0x13")]((e=>e[Ir("0x16")]===t))[Ir("0x2")];return{type:Ir("0x1a"),content:Yo(e,Ir("0x11"),r(1,x))}}}))}}function Nr(t){const e=t.match(/^heading(\d+)$/);return e?e[1]:null}const wr=["toLowerCase","item","highlight.options","has","config","commandName","afterInit","createRange","color","push","title","registerDescriptionCallback","value","_descriptionFactory","FORMAT_HIGHLIGHT","getRanges","change","highlight","formatInline","TrackChangesEditing","HighlightEditing","plugins","isCollapsed","getFirstPosition","markInlineFormat","enableCommand","commandParams","get","document","editor","model","format","getLastMatchingPosition","backward"];var Mr,Or;Mr=wr,Or=375,function(t){for(;--t;)Mr.push(Mr.shift())}(++Or);const Fr=function(t,e){return wr[t-=0]};class Pr extends t.Plugin{[Fr("0x5")](){const t=this[Fr("0x1c")];if(!t[Fr("0x14")][Fr("0x2")](Fr("0x13")))return;const e=t[Fr("0x14")][Fr("0x1a")](Fr("0x12"));e[Fr("0x18")](Fr("0x10"),((n,o={})=>{const s=t.model[Fr("0x1b")].selection,r=s.getAttribute("highlight");let i=o[Fr("0xb")],x=[];if(s[Fr("0x15")]){const e=s[Fr("0x16")]();if(!s.hasAttribute(Fr("0x10")))return void n(o);{const n=t=>t[Fr("0x0")].getAttribute(Fr("0x10"))===r,o=e[Fr("0x1f")](n,{direction:Fr("0x20")}),s=e[Fr("0x1f")](n);x=[t[Fr("0x1d")][Fr("0x6")](o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0xe")]())i?x[Fr("0x8")](e):x.push(...ms(Fr("0x10"),e,t[Fr("0x1d")]));t.model[Fr("0xf")]((()=>{for(const t of x)e[Fr("0x17")](t,{commandName:"highlight",commandParams:[{value:i}]})}))}));const n=t.locale;e[Fr("0xc")][Fr("0xa")]((e=>{const{type:o,data:s}=e;if(Fr("0x11")==o&&s&&Fr("0x10")==s[Fr("0x4")]){const e=n.t,o=s[Fr("0x19")][0].value;if(o){const s=t[Fr("0x3")][Fr("0x1a")](Fr("0x1")).find((t=>t[Fr("0x1d")]==o)),r=e(s.title)[Fr("0x21")]();return{type:Fr("0x1e"),content:Yo(n,"*Set highlight:* %0",r),color:{value:s[Fr("0x7")],title:s[Fr("0x9")]}}}return{type:Fr("0x1e"),content:Yo(n,"*Remove highlight*",Yo(n,Fr("0xd")))}}}))}}const Dr=["ck-horizontal-line","insert","afterInit","for","get","HorizontalLineEditing","editor","registerElementLabel","ELEMENT_HORIZONTAL_LINE","conversion","has","plugins","createContainerElement","createPositionAt","horizontalLine","locale","createEmptyElement","high","dataDowncast","elementToStructure","addClass"];var Br,jr;Br=Dr,jr=478,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0x7")](){const t=this[Ur("0xb")];if(!t[Ur("0x10")][Ur("0xf")](Ur("0xa")))return;t[Ur("0x10")][Ur("0x9")]("TrackChangesEditing").enableCommand("horizontalLine");const e=t[Ur("0x10")].get("TrackChangesEditing"),n=t[Ur("0x14")];e._descriptionFactory[Ur("0xc")]("horizontalLine",(t=>Yo(n,Ur("0xd"),t))),t[Ur("0xe")][Ur("0x8")](Ur("0x2"))[Ur("0x3")]({model:Ur("0x13"),view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return null;const o=e[Ur("0x11")]("div"),s=e[Ur("0x0")]("hr");return e[Ur("0x4")](Ur("0x5"),o),e[Ur("0x6")](e[Ur("0x12")](o,0),s),o},converterPriority:Ur("0x1")})}}const Hr=["rawHtml","afterInit","document","getCustomProperty","cancel","registerElementLabel","plugins","has","get","htmlEmbed","registerDescriptionCallback","TrackChangesEditing","locale","view","rawHtmlApi","getSelectedElement","enableCommand","editing","value","selection","model","ELEMENT_HTML_EMBED","HtmlEmbed","_descriptionFactory","change","*Change %0 content*"];var zr,Wr;zr=Hr,Wr=291,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0x16")](){const t=this.editor;if(!t[Vr("0x1")][Vr("0x2")](Vr("0x11")))return;const e=t.plugins[Vr("0x3")](Vr("0x6")),n=t[Vr("0x7")],o=t[Vr("0xc")][Vr("0x8")][Vr("0x17")][Vr("0xe")];e[Vr("0x12")][Vr("0x0")](Vr("0x15"),(t=>Yo(n,Vr("0x10"),t))),t[Vr("0x1")][Vr("0x3")](Vr("0x6"))[Vr("0xb")]("htmlEmbed",((n,s)=>{const r=t[Vr("0xf")],i=r[Vr("0x17")][Vr("0xe")];r[Vr("0x13")]((()=>{const t=function(t){const e=t[Vr("0xa")]();return e&&e.is("element",Vr("0x15"))?t[Vr("0xa")]():null}(i);if(!t)return void n(null);const r=t.getAttribute(Vr("0xd"))||"";void 0!==s&&s!==r&&(e.markBlockFormat(t,{commandName:Vr("0x4"),commandParams:[s]}),o[Vr("0xa")]()[Vr("0x18")](Vr("0x9"))[Vr("0x19")]())}))})),e[Vr("0x12")][Vr("0x5")]((t=>{const{data:e}=t;if(e&&Vr("0x4")==e.commandName){const t=Yo(n,Vr("0x10"));return{type:"format",content:Yo(n,Vr("0x14"),t)}}}))}}const qr=["Inline image to block image","afterInit","ImageResize","chain","imageStylePostApply","imageCaption","markInsertion","caption","_descriptionFactory","toggleImageCaption","uploadImage","getCaptionFromImageModelElement","isInlineImage","ImageUtils","toNext","nodeAfter","end","FORMAT_SIDE_IMAGE","change","schema","imageTypeInline","*Remove image text alternative*","registerPostFixer","subType","imageInline","getFirstRange","next","formatBlock","ELEMENT_INLINE_IMAGE","getNearestSelectionRange","ImageStyleEditing","backward","hasSuggestion","fromPosition","markBlockFormat","document","element","formatInline","getChangedMarkers","head","ImageCaptionEditing","commandParams","enableCommand","imageTypeBlock","forceDefaultExecution","registerElementLabel","refresh","join","format","getSuggestions","alt","insertion","value","ELEMENT_CAPTION","isBefore","toPrevious","type","getClosestSelectedImageElement","differ","imageStylePreApply","getSuggestion","findIndex","ImageTextAlternativeEditing","previous","*Set image width:* %0","isOwn","imageBlock","selection","getAttribute","getSuggestionCallback","hasAttribute","nodeBefore","normalizedStyles","isCollapsed","insertImage","accept","model","ELEMENT_IMAGE","*Set image text alternative:* %0","markDeletion","_suggestionFactory","author","Block image to inline image","name","suggestion","resizeImage","ImageEditing","isBlockImage","isInContent","createRange","locale","commandReversedParams","has","registerDescriptionCallback","side","plugins","commands","*Reset image width*","_findSuggestions","convertInlineImageToBlock","newValue","createRangeOn","removeObject","editor","get","registerCustomCallback","discard","forEach","getContainedElement","commandName","title","ImageCaptionUtils","newRange","width","discardSuggestion","imageTextAlternative","isEqual","markInlineFormat","find","addObject","ImageBlockEditing","start","from","imageStyle","toLowerCase"];var Xr,$r;Xr=qr,$r=476,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{[Jr("0x19")](){const t=this[Jr("0x2")];if(!t[Jr("0x77")][Jr("0x74")](Jr("0x6e")))return;const n=t[Jr("0x77")][Jr("0x3")]("TrackChangesEditing"),o=t.plugins.get(Jr("0x25")),s={},r=t[Jr("0x72")];if(n[Jr("0x42")](Jr("0x62")),n[Jr("0x20")][Jr("0x45")](Jr("0x5a"),(t=>Yo(r,Jr("0x65"),t))),n[Jr("0x20")][Jr("0x45")](Jr("0x30"),(t=>Yo(r,Jr("0x34"),t))),n[Jr("0x20")][Jr("0x45")](Jr("0x1f"),(()=>Yo(r,Jr("0x4d")))),t[Jr("0x77")][Jr("0x74")]("ImageUploadEditing")&&n[Jr("0x42")](Jr("0x22")),t[Jr("0x77")][Jr("0x74")](Jr("0x13"))&&t[Jr("0x77")].has("ImageInlineEditing")&&(n[Jr("0x42")](Jr("0x2c"),((e,s)=>{const r=o[Jr("0x51")](t[Jr("0x64")].document[Jr("0x5b")]);t[Jr("0x64")][Jr("0x2a")]((()=>{n[Jr("0x3a")](r,{commandName:Jr("0x2c"),commandParams:[s]},[],"convertBlockImageToInline")}))})),n[Jr("0x42")](Jr("0x43"),((e,s)=>{t[Jr("0x64")][Jr("0x2a")]((r=>{let x=o[Jr("0x51")](t[Jr("0x64")].document[Jr("0x5b")]),a=r[Jr("0x0")](x);const c=i.LivePosition[Jr("0x39")](a.start,Jr("0x4f")),l=i.LivePosition[Jr("0x39")](a[Jr("0x28")],Jr("0x26"));n[Jr("0x44")]((()=>e(s))),x=o[Jr("0x51")](t[Jr("0x64")][Jr("0x3b")][Jr("0x5b")]),a=r[Jr("0x0")](x);const d=r[Jr("0x71")](c,l);c.detach(),l.detach(),n[Jr("0x3a")](x,{commandName:Jr("0x2c"),commandParams:[]},[],Jr("0x7b")),d.start[Jr("0x4e")](a.start)&&n[Jr("0x1e")](r.createRange(d[Jr("0x14")],a[Jr("0x14")]),Jr("0x7b")),a[Jr("0x28")][Jr("0x4e")](d[Jr("0x28")])&&n[Jr("0x1e")](r[Jr("0x71")](a[Jr("0x28")],d[Jr("0x28")]),Jr("0x7b"))}))})),n[Jr("0x68")][Jr("0x4")]("formatBlock",Jr("0x7b"),Jr("0x47"),(()=>{})),n[Jr("0x68")][Jr("0x4")](Jr("0x33"),Jr("0x7b"),"accept",(()=>{})),n._suggestionFactory[Jr("0x4")](Jr("0x33"),Jr("0x7b"),Jr("0x5"),n[Jr("0x68")].getSuggestionCallback(Jr("0x33"),"",Jr("0x63"))),n._suggestionFactory[Jr("0x4")]("insertion","convertInlineImageToBlock",Jr("0x47"),(()=>{})),n[Jr("0x68")].registerCustomCallback(Jr("0x4b"),Jr("0x7b"),Jr("0x5"),(([e])=>{const o=n[Jr("0x68")][Jr("0x5d")](Jr("0x4b"),"",Jr("0x5"));let s=e[Jr("0x14")],r=e[Jr("0x28")];const i=t.model[Jr("0x2b")][Jr("0x35")](s,Jr("0x37")),x=t[Jr("0x64")][Jr("0x2b")][Jr("0x35")](r,"forward");i.isCollapsed&&(s=i[Jr("0x14")]),x[Jr("0x61")]&&(r=x.end),o([t.model.createRange(s,r)])})),n[Jr("0x68")][Jr("0x4")](Jr("0x33"),Jr("0x7b"),Jr("0x1b"),c),n._suggestionFactory[Jr("0x4")](Jr("0x4b"),Jr("0x7b"),Jr("0x1b"),c)),t.plugins[Jr("0x74")](Jr("0x40"))&&(n[Jr("0x42")](Jr("0x21"),((e,s)=>{const r=t[Jr("0x77")][Jr("0x3")](Jr("0xa"));let i=o[Jr("0x51")](t[Jr("0x64")][Jr("0x3b")][Jr("0x5b")]),x=r.getCaptionFromImageModelElement(i);t[Jr("0x64")][Jr("0x2a")]((()=>{if(x)return void n[Jr("0x67")](t[Jr("0x64")][Jr("0x0")](x));const a=o[Jr("0x6f")](i);e(s),i=o.getClosestSelectedImageElement(t[Jr("0x64")][Jr("0x3b")][Jr("0x5b")]),x=r[Jr("0x23")](i),n.markInsertion(t.model[Jr("0x0")](x),a?null:Jr("0x1d"))}))})),n[Jr("0x68")][Jr("0x4")]("insertion","imageCaption",Jr("0x1b"),c)),t[Jr("0x77")][Jr("0x74")]("ImageStyleEditing")){n.enableCommand("imageStyle",((s,r)=>{const i=t.plugins[Jr("0x3")]("Users").me,x=t[Jr("0x78")].get("imageStyle");let a=o[Jr("0x51")](t[Jr("0x64")].document[Jr("0x5b")]),c=t[Jr("0x64")][Jr("0x0")](a),l=x[Jr("0x4c")];if(l==r[Jr("0x4c")])return;const d={commandName:Jr("0x16"),commandParams:[r],formatGroupId:(0,e.uid)()};t[Jr("0x64")][Jr("0x2a")]((()=>{if(n[Jr("0x49")]().filter((t=>t[Jr("0x70")]&&i==t[Jr("0x69")]&&("formatBlock"==t[Jr("0x50")]||Jr("0x3d")==t[Jr("0x50")])&&(Jr("0x53")==t[Jr("0x2f")]||Jr("0x1c")==t.subType)&&t[Jr("0x31")]()[Jr("0xf")](c)))[Jr("0x6")]((t=>n[Jr("0xd")](t[Jr("0x3f")]))),a=o.getClosestSelectedImageElement(t[Jr("0x64")][Jr("0x3b")][Jr("0x5b")]),c=t[Jr("0x64")][Jr("0x0")](a),x[Jr("0x46")](),t[Jr("0x78")][Jr("0x3")](Jr("0x2c"))[Jr("0x46")](),t.commands.get(Jr("0x43"))[Jr("0x46")](),l=x.value,l!=r[Jr("0x4c")])return o[Jr("0x24")](a)&&x.shouldConvertImageType(r[Jr("0x4c")],a)?(s(r),a=o[Jr("0x51")](t[Jr("0x64")][Jr("0x3b")][Jr("0x5b")]),void n[Jr("0x3a")](a,{...d,commandReversedParams:[{value:l||null}]},[],Jr("0x53"))):void(o.isBlockImage(a)?n[Jr("0x3a")](a,d,[],Jr("0x1c")):n[Jr("0x10")](c,d,"imageStylePostApply"))}))}));for(const e of t[Jr("0x77")][Jr("0x3")](Jr("0x36"))[Jr("0x60")])s[e[Jr("0x6b")]]=e[Jr("0x9")][Jr("0x17")]();n._suggestionFactory[Jr("0x4")]("formatBlock",Jr("0x53"),"join",(()=>{})),n[Jr("0x68")][Jr("0x4")](Jr("0x33"),Jr("0x1c"),Jr("0x47"),(()=>{})),n[Jr("0x68")][Jr("0x4")](Jr("0x3d"),Jr("0x1c"),Jr("0x47"),(()=>{})),n[Jr("0x68")][Jr("0x4")](Jr("0x33"),"imageStylePreApply",Jr("0x63"),(()=>{})),n._suggestionFactory.registerCustomCallback("formatBlock",Jr("0x53"),Jr("0x5"),((t,e)=>{n[Jr("0x68")].getSuggestionCallback(Jr("0x33"),"",Jr("0x63"))(t,{commandName:e[Jr("0x8")],commandParams:e[Jr("0x73")]})})),n[Jr("0x68")].registerCustomCallback("formatBlock","imageStylePreApply",Jr("0x1b"),c)}const x=[{type:Jr("0x33"),subType:"imageStylePreApply"},{type:"insertion",subType:Jr("0x1d")},{type:"formatBlock",subType:"convertInlineImageToBlock"},{type:Jr("0x4b"),subType:Jr("0x7b")}];function a(t,e){const s=x[Jr("0x55")]((({type:e,subType:n})=>t[Jr("0x50")]==e&&t[Jr("0x2f")]==n)),r=x[Jr("0x55")]((({type:t,subType:n})=>e[Jr("0x50")]==t&&e[Jr("0x2f")]==n));if(s<0||r<0)return!1;const i=t[Jr("0x31")](),a=e[Jr("0x31")]();if((0==s||1==s)&&2==r&&i.isIntersecting(a))return!0;if(2==s&&3==r){const t=n[Jr("0x7a")](i,"insertion").filter((({suggestion:t,meta:e})=>e[Jr("0x59")]&&Jr("0x7b")==t[Jr("0x2f")]));if(t.length>1&&a[Jr("0x28")][Jr("0xf")](i[Jr("0x14")]))return!0;if(1==t.length&&(i[Jr("0x14")].isEqual(a[Jr("0x28")])||i[Jr("0x28")].isEqual(a[Jr("0x14")])))return!0}if(3==s&&3==r&&i[Jr("0x14")][Jr("0x4e")](a[Jr("0x14")])){const t=i[Jr("0x28")][Jr("0x27")],e=a[Jr("0x14")][Jr("0x5f")];return o[Jr("0x6f")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Jr("0x64")][Jr("0x3b")][Jr("0x2e")]((()=>{let e=!1;const s=Array[Jr("0x15")](t[Jr("0x64")][Jr("0x3b")][Jr("0x52")][Jr("0x3e")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n._splitMarkerName(t);if(Jr("0x6c")==s&&n[Jr("0x38")](a)){if(Jr("0x33")==i&&("imageStylePreApply"==x||"imageStylePostApply"==x)){const t=n[Jr("0x54")](a);if(r[Jr("0xb")]){const s=t[Jr("0x31")]()[Jr("0x7")]();if(o[Jr("0x6f")](s))continue;n[Jr("0xd")](t),e=!0}}if(Jr("0x4b")==i&&"imageCaption"==x&&!r[Jr("0xb")]){const t=n[Jr("0x54")](a);t.next&&t[Jr("0x32")][Jr("0x70")]&&(n.discardSuggestion(t[Jr("0x32")]),e=!0)}}}return e})),t[Jr("0x77")][Jr("0x74")](Jr("0x1a"))&&n.enableCommand(Jr("0x6d"),((e,s)=>{const r=o[Jr("0x51")](t.model[Jr("0x3b")][Jr("0x5b")]);r[Jr("0x5c")](Jr("0xc"))!=s[Jr("0xc")]&&t[Jr("0x64")][Jr("0x2a")]((()=>{n.markBlockFormat(r,{commandName:"resizeImage",commandParams:[s]})}))})),t.plugins.has(Jr("0x56"))&&n[Jr("0x42")](Jr("0xe"),((e,s)=>{const r=o[Jr("0x51")](t.model[Jr("0x3b")][Jr("0x5b")]);(r[Jr("0x5e")](Jr("0x4a"))?r[Jr("0x5c")](Jr("0x4a")):"")!=s[Jr("0x7c")]&&t[Jr("0x64")][Jr("0x2a")]((()=>{n.markBlockFormat(r,{commandName:Jr("0xe"),commandParams:[s]})}))})),n[Jr("0x20")][Jr("0x75")]((t=>{if(x[Jr("0x11")]((({type:e,subType:n})=>t[Jr("0x50")]==e&&t[Jr("0x2f")]==n)))return t[Jr("0x57")]?{}:void 0})),n[Jr("0x20")][Jr("0x75")]((t=>{if("insertion"==t.type||"deletion"==t[Jr("0x50")]){const e=t[Jr("0x7")]();if(e&&e.is(Jr("0x3c"),Jr("0x1f")))return{type:Jr("0x4b")==t[Jr("0x50")]?Jr("0x12"):Jr("0x1"),element:e,quantity:1}}})),n[Jr("0x20")].registerDescriptionCallback((t=>Jr("0x33")==t[Jr("0x50")]&&"convertInlineImageToBlock"==t[Jr("0x2f")]?{type:Jr("0x48"),content:Jr("0x18")}:Jr("0x33")==t.type&&"convertBlockImageToInline"==t[Jr("0x2f")]?{type:Jr("0x48"),content:Jr("0x6a")}:void 0)),n[Jr("0x20")][Jr("0x75")]((t=>{const{data:e}=t;if(e){if("imageStyle"==e[Jr("0x8")]){const t=e[Jr("0x41")][0][Jr("0x4c")];return n=Jr("0x76")===t?Yo(r,Jr("0x29")):s[t]||t,{type:"format",content:Yo(r,"*Format:* %0",n)}}if("imageTextAlternative"==e.commandName){const t=e[Jr("0x41")][0][Jr("0x7c")];return t?{type:"format",content:Yo(r,Jr("0x66"),'"'+t+'"')}:{type:Jr("0x48"),content:Yo(r,Jr("0x2d"))}}if("resizeImage"==e.commandName){const t=e[Jr("0x41")][0][Jr("0xc")];return t?{type:Jr("0x48"),content:Yo(r,Jr("0x58"),t)}:{type:Jr("0x48"),content:Yo(r,Jr("0x79"))}}}var n}))}}const Zr=["getSelectedElement","format","enableCommand","getSuggestions","replaceImageSource","discard","plugins","subType","handleSuggestionDescription","source","selection","markBlockFormat","commandParams","TrackChangesEditing","author","model","get","src","locale","data","getAttribute","registerDescriptionCallback","*Format:* replace image URL","afterInit","document","editor","ImageEditing","handleReplaceImageCommand","formatBlock","commandName","accept","registerCustomCallback","Users","_descriptionFactory","_suggestionFactory","has","getSuggestionCallback"];var Yr,ti;Yr=Zr,ti=216,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0x1d")](){if(!this[ei("0x1f")][ei("0xc")][ei("0x4")](ei("0x20")))return;const t=this[ei("0x1f")][ei("0xc")].get(ei("0x13"));t[ei("0x8")](ei("0xa"),((t,e)=>this[ei("0x21")](t,e))),t[ei("0x3")][ei("0x0")](ei("0x22"),ei("0xa"),ei("0x24"),t[ei("0x3")][ei("0x5")](ei("0x22"),null,ei("0xb"))),t[ei("0x3")][ei("0x0")](ei("0x22"),"replaceImageSource",ei("0xb"),t._suggestionFactory[ei("0x5")](ei("0x22"),null,ei("0x24"))),t[ei("0x2")][ei("0x1b")]((t=>this[ei("0xe")](t)))}[ei("0x21")](t,e){const n=this[ei("0x1f")][ei("0xc")][ei("0x16")](ei("0x13")),o=this[ei("0x1f")][ei("0x15")][ei("0x1e")][ei("0x10")][ei("0x6")]();this[ei("0x1f")].model.change((()=>{let s=o[ei("0x1a")](ei("0x17"));const r=this[ei("0x1f")][ei("0xc")][ei("0x16")](ei("0x1")).me;for(const t of n[ei("0x9")]({skipNotAttached:!0})){const e=t.getContainedElement();if(ei("0xa")===t[ei("0xd")]&&e===o){t[ei("0x14")]!==r&&t[ei("0xb")](),s=t[ei("0x19")][ei("0x12")][0][ei("0xf")];break}}t(e),n[ei("0x11")](o,{commandName:"replaceImageSource",commandParams:[{source:s}]},[],ei("0xa"))}))}[ei("0xe")](t){const{data:e}=t;if(e&&"replaceImageSource"===e[ei("0x23")]){const t=ei("0x1c");return{type:ei("0x7"),content:Yo(this.editor[ei("0x18")],t)}}}}const oi=["afterInit","editor","Users","_trackChangesExecuted","bind","trackChanges","collaboration_features","_trackChangesValueDuringImport","forEach","value","track_changes","importWord","commands","listenTo","high","plugins","_setSuggestionData","_handleImportedData","dataInsert","get","execute"];var si,ri;si=oi,ri=340,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("0x3")]=!1,this[ii("0x14")]=!1}[ii("0x11")](){const t=this[ii("0x12")],e=t[ii("0x8")][ii("0xf")]("importWord"),n=t[ii("0x8")].get("trackChanges");e&&(e.on("execute",((t,[,e])=>{this._trackChangesValueDuringImport=n[ii("0x5")],e[ii("0x2")][ii("0x6")]=!this[ii("0x3")]}),{priority:ii("0xa")}),this.listenTo(e,ii("0xe"),this[ii("0xd")][ii("0x0")](this)),this[ii("0x9")](e,ii("0xe"),(()=>{this._trackChangesExecuted&&(n[ii("0x10")](),this[ii("0x14")]=!1)}),{priority:"lowest"}),t[ii("0xb")][ii("0xf")]("TrackChangesEditing").enableCommand(ii("0x7")))}[ii("0xd")](t,e){const{suggestions:n}=e,o=this.editor[ii("0x8")][ii("0xf")](ii("0x1")),s=o.value;this[ii("0x3")]!==s&&(o.execute(),this[ii("0x14")]=!0),n&&n[ii("0x4")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0x12")][ii("0xb")][ii("0xf")](ii("0x13")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0x7")}}};this[ii("0x12")][ii("0xb")].get("TrackChangesEditing")[ii("0xc")](s)}))}}const ai=["*Indent:* %0","model","filter","selection","editor","document","has","commandName","indentBlock","plugins","enableCommand","from","get","change","getItems","*Outdent:* %0","outdent","markBlockFormat","getItemLabel","indent","format","getSelectedBlocks","blockIndent","afterInit","outdentBlock","locale","registerDescriptionCallback","TrackChangesEditing","IndentEditing"];var ci,li;ci=ai,li=272,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{[di("0xc")](){const t=this[di("0x16")],e=t[di("0x1b")][di("0x1")](di("0x10"));t.plugins[di("0x18")](di("0x11"))&&(e[di("0x1c")](di("0x8")),e.enableCommand(di("0x5")));const n=t[di("0xe")];if(t[di("0x1b")].has("IndentBlock")){for(const n of[di("0x1a"),di("0xd")])e[di("0x1c")](n,(()=>{const o=Array[di("0x0")](this[di("0x16")][di("0x13")][di("0x17")][di("0x15")][di("0xa")]())[di("0x14")]((t=>this.editor[di("0x13")].schema.checkAttribute(t,di("0xb"))));t[di("0x13")][di("0x2")]((()=>{for(const t of o)e[di("0x6")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:di("0x1a")})}))}));e._descriptionFactory[di("0xf")]((t=>{const{data:o}=t;if(!o)return;if(di("0x1a")!=o[di("0x19")]&&di("0xd")!=o.commandName)return;const s=t[di("0x3")]()[0],r=e._descriptionFactory[di("0x7")](s);return di("0x1a")==o[di("0x19")]?{type:di("0x9"),content:Yo(n,di("0x12"),r)}:di("0xd")==o[di("0x19")]?{type:di("0x9"),content:Yo(n,di("0x4"),r)}:void 0}))}}}var gi,mi,fi=["init","TrackChangesEditing","editor","enableCommand"];gi=fi,mi=395,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[Vs.Input]}[hi("0x1")](){this[hi("0x3")].plugins.get(hi("0x2"))[hi("0x0")]("input")}}const bi=["format","selection","_descriptionFactory","commandParams","editor","isCollapsed","getFirstRange","document","LinkEditing","enableCommand","getAttribute","linkHref","unlink","markInlineFormat","from","get","plugins","getRanges","TrackChangesEditing","getFirstPosition","link","commandName","afterInit","*Set link:* %0","model","change"];var Ei,_i;Ei=bi,_i=448,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{[Ti("0x10")](){const t=this[Ti("0x18")];if(!t[Ti("0xa")].has(Ti("0x2")))return;const e=t[Ti("0xa")][Ti("0x9")](Ti("0xc"));e[Ti("0x3")](Ti("0xe"),((n,o)=>{const s=t.model[Ti("0x1")][Ti("0x15")];let r=[];if(s[Ti("0x19")]){if(!s.hasAttribute(Ti("0x5")))return void n(o);{const e=(0,Vs.findAttributeRange)(s.getFirstPosition(),Ti("0x5"),s[Ti("0x4")](Ti("0x5")),t[Ti("0x12")]);r=[e]}}else r=Array[Ti("0x8")](s[Ti("0xb")]());t.model[Ti("0x13")]((()=>{for(const t of r)e[Ti("0x7")](t,{commandName:"link",commandParams:[o]})}))})),e[Ti("0x3")](Ti("0x6"),(()=>{const n=this[Ti("0x18")][Ti("0x12")],o=n[Ti("0x1")][Ti("0x15")];n[Ti("0x13")]((()=>{let n=[];n=o[Ti("0x19")]?[(0,Vs.findAttributeRange)(o[Ti("0xd")](),"linkHref",o[Ti("0x4")](Ti("0x5")),t[Ti("0x12")])]:ms(Ti("0x5"),o[Ti("0x0")](),t[Ti("0x12")]);for(const t of n)e[Ti("0x7")](t,{commandName:Ti("0x6"),commandParams:[]})}))})),e[Ti("0x16")].registerDescriptionCallback((e=>{const{data:n}=e,o=t.locale;if(n){if(Ti("0xe")==n.commandName){const t=n[Ti("0x17")][0];return{type:"format",content:Yo(o,Ti("0x11"),'"'+t+'"')}}return Ti("0x6")==n[Ti("0xf")]?{type:Ti("0x14"),content:Yo(o,"*Remove link*")}:void 0}}))}}const yi=["ELEMENT_LIST_ITEM","nextSibling","TrackChangesEditing","getSelectedBlocks","document","*Indent:* %0","commandParams","getAttribute","todoListChecked","change","format","TodoListEditing","ELEMENT_BULLETED_LIST","isObject","before","slice","value","ELEMENT_TODO_LIST","length","listType","commandName","name","listIndent","plugins","_descriptionFactory","selection","_selectedElements","checkTodoList","registerDescriptionCallback","findIndex","filter","locale","add","from","createRange","bulletedList","List","forceValue","has","numbered","get","ListEditing","previousSibling","commands","model","element","todo","indentList","execute","listItem","paragraph","enableCommand","schema","editor","outdentList","numberedList","markBlockFormat","todoList","registerElementLabel","afterInit"];var ki,Ai;ki=yi,Ai=179,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0x0")](){const t=this[vi("0x36")],e=t[vi("0x20")];if(!t[vi("0x18")][vi("0x27")](vi("0x2a")))return;const n=t[vi("0x18")].get(vi("0x3")),o=t[vi("0x18")][vi("0x27")](vi("0xc"));function s(e){return()=>{const o=t[vi("0x2d")][vi("0x5")][vi("0x1a")],s=t[vi("0x2c")].get(e);if(s[vi("0x11")])return void t[vi("0x31")](vi("0x33"),{});const r=e[vi("0x10")](0,-4),i=function(t,e,n){let o=Array[vi("0x22")](t)[vi("0x1f")]((t=>{return e=t,(o=n).checkChild(e.parent,vi("0x32"))&&!o[vi("0xe")](e);var e,o}));o=o[vi("0x1f")]((t=>!t.is(vi("0x2e"),vi("0x32"))||t[vi("0x8")](vi("0x14"))!=e));const s=new Set;for(const t of o)t.is(vi("0x2e"),vi("0x32"))?s.add(Si(t)):s[vi("0x21")](t);return Array[vi("0x22")](s)}(o[vi("0x4")](),r,t[vi("0x2d")][vi("0x35")]);t[vi("0x2d")][vi("0xa")]((()=>{for(const t of i)n[vi("0x39")](t,{commandName:e,commandParams:[{forceValue:!s[vi("0x11")]}],formatGroupId:"blockName"},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array.from(t);const n=e[vi("0x1e")]((t=>vi("0x32")!=t[vi("0x16")]));return n>-1&&(e=e[vi("0x10")](0,n)),e}(t[vi("0x2d")].document[vi("0x1a")][vi("0x4")]()),s=t[vi("0x2d")][vi("0x23")](t[vi("0x2d")].createPositionAt(o[0],vi("0xf")),t[vi("0x2d")].createPositionAt(o[o[vi("0x13")]-1],"end"));t.model[vi("0xa")]((()=>{n.markBlockFormat(s,{commandName:e,commandParams:[],formatGroupId:vi("0x17")},function(t){const e=new Set;for(const n of t){let t=n[vi("0x2")];for(;t&&t[vi("0x8")](vi("0x17"))>n[vi("0x8")](vi("0x17"));)e.add(t),t=t[vi("0x2")]}return Array[vi("0x22")](e)}(o))}))}}n[vi("0x34")](vi("0x38"),s("numberedList")),n[vi("0x34")](vi("0x24"),s(vi("0x24"))),o&&n[vi("0x34")](vi("0x3a"),s(vi("0x3a"))),n[vi("0x34")](vi("0x30"),r("indentList")),n[vi("0x34")](vi("0x37"),r(vi("0x37"))),o&&n[vi("0x34")]("checkTodoList",(()=>{const e=t[vi("0x2c")][vi("0x29")]("checkTodoList"),o=Array[vi("0x22")](e[vi("0x1b")]);o[vi("0x1f")]((t=>t[vi("0x8")](vi("0x9"))!=e[vi("0x11")])),t.model.change((()=>{for(const t of o)n[vi("0x39")](t,{commandName:"checkTodoList",commandParams:[{forceValue:!e[vi("0x11")]}]})}))})),n[vi("0x19")][vi("0x3b")](vi("0x32"),(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n[vi("0x19")][vi("0x1d")]((t=>{const{data:n}=t;if(n){if(vi("0x38")==n[vi("0x15")]||vi("0x24")==n[vi("0x15")]||vi("0x3a")==n[vi("0x15")])switch(n[vi("0x15")].replace(vi("0x25"),"")){case"bulleted":return o(Yo(e,vi("0xd")));case vi("0x28"):return o(Yo(e,"ELEMENT_NUMBERED_LIST"));case vi("0x2f"):return o(Yo(e,vi("0x12")))}if(vi("0x30")==n.commandName)return{type:vi("0xb"),content:Yo(e,vi("0x6"),Yo(e,vi("0x1")))};if(vi("0x37")==n[vi("0x15")])return{type:vi("0xb"),content:Yo(e,"*Outdent:* %0",Yo(e,vi("0x1")))};if(vi("0x1c")==n[vi("0x15")])return n[vi("0x7")][0][vi("0x26")]?{type:vi("0xb"),content:Yo(e,"*Check item*")}:{type:vi("0xb"),content:Yo(e,"*Uncheck item*")}}function o(t){return{type:"format",content:Yo(e,"*Change to:* %0",t)}}}))}}function Si(t){const e=t.getAttribute(vi("0x17"));if(0==e)return t;let n=t;for(;t.previousSibling&&t[vi("0x2b")].is("element",vi("0x32"));){const o=t[vi("0x2b")][vi("0x8")](vi("0x17"));if(o==e)n=t[vi("0x2b")];else if(o<e)break;t=t[vi("0x2b")]}return n}function Ii(t){const e=[];if(t.is(vi("0x2e"),vi("0x32"))&&t[vi("0x8")]("listIndent")>0){let n=t.nextSibling;for(;n&&vi("0x32")==n.name&&n[vi("0x8")](vi("0x17"))==t[vi("0x8")](vi("0x17"));)e.push(n),n=n[vi("0x2")]}return e}const Li=["ELEMENT_","listItem","markMultiRangeBlockFormat","startIndex","getAttribute","ListUtils","_LIST_","createRange","*Format:* set order to reversed","document","config","type","bind","TrackChangesEditing","listStyle","element","listReversed","_getTranslationKeyForListStyle","flat","listType","listStart","*Format:* set order to regular","plugins","commandParams","parent","handleListReversedCommand","locale","has","commandName","before","length","change","_descriptionFactory","handleDescriptions","createPositionAt","backward","model","_getSuggestionBlocksForListStyle","replace","*Change to:* %0","selection","reversed","handleListStyleCommand","getSelectedBlocks","editor","numbered","get","_getSuggestionBlocks","getListTypeFromListStyleType","forward","getSiblingNodes","format","afterInit","handleListStartCommand","getFirstPosition","filter","enableCommand"];var Ni,wi;Ni=Li,wi=222,function(t){for(;--t;)Ni.push(Ni.shift())}(++wi);const Mi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[Mi("0x1")](){if(!this[Mi("0x32")].plugins[Mi("0x21")]("ListPropertiesEditing"))return;const t=this[Mi("0x32")][Mi("0x10")][Mi("0x34")]("list.properties"),e=this.editor.plugins.get(Mi("0x13"));t.styles&&e.enableCommand(Mi("0x14"),this[Mi("0x30")][Mi("0x12")](this)),t[Mi("0x2f")]&&e[Mi("0x5")](Mi("0x16"),this[Mi("0x1f")][Mi("0x12")](this)),t.startIndex&&e[Mi("0x5")](Mi("0x1a"),this[Mi("0x2")][Mi("0x12")](this)),e[Mi("0x26")].registerDescriptionCallback(this[Mi("0x27")][Mi("0x12")](this))}[Mi("0x30")](t,e={}){const n=this.editor.plugins[Mi("0x34")](Mi("0x13")),o=this[Mi("0x2b")]();this[Mi("0x32")][Mi("0x2a")][Mi("0x25")]((()=>{n[Mi("0x8")](o,{commandName:Mi("0x14"),commandParams:[{type:e[Mi("0x11")]}],formatGroupId:Mi("0x14")})}))}[Mi("0x1f")](t,e={}){const n=this[Mi("0x32")].plugins[Mi("0x34")](Mi("0x13")),o=this._getSuggestionBlocks((t=>t.is(Mi("0x15"),Mi("0x7"))&&"numbered"===t.getAttribute(Mi("0x19"))));if(o.length<1)return;const s=o.map((t=>this.editor[Mi("0x2a")][Mi("0xd")](this[Mi("0x32")].model[Mi("0x28")](t,Mi("0x23")),this.editor[Mi("0x2a")].createPositionAt(t,0))));this[Mi("0x32")][Mi("0x2a")][Mi("0x25")]((()=>{n[Mi("0x8")](s,{commandName:Mi("0x16"),commandParams:[{reversed:e[Mi("0x2f")]}],formatGroupId:Mi("0x16")})}))}[Mi("0x2")](t,e={}){const n=this[Mi("0x32")][Mi("0x1c")][Mi("0x34")](Mi("0x13")),o=this._getSuggestionBlocks((t=>t.is(Mi("0x15"),Mi("0x7"))&&Mi("0x33")===t[Mi("0xa")](Mi("0x19"))));if(o.length<1)return;const s=o.map((t=>this[Mi("0x32")][Mi("0x2a")][Mi("0xd")](this[Mi("0x32")][Mi("0x2a")][Mi("0x28")](t,"before"),this[Mi("0x32")][Mi("0x2a")][Mi("0x28")](t,0))));this.editor[Mi("0x2a")][Mi("0x25")]((()=>{n[Mi("0x8")](s,{commandName:Mi("0x1a"),commandParams:[{startIndex:e[Mi("0x9")]}],formatGroupId:Mi("0x1a")})}))}[Mi("0x27")](t){const e=this[Mi("0x32")][Mi("0x20")],{data:n}=t;if(!n)return;let o,s;switch(n[Mi("0x22")]){case Mi("0x14"):o=Mi("0x2d"),s={type:"format",content:Yo(e,o,Yo(e,this[Mi("0x17")](n[Mi("0x1d")][0][Mi("0x11")])))};break;case Mi("0x16"):o=n[Mi("0x1d")][0].reversed?Mi("0xe"):Mi("0x1b"),s={type:Mi("0x0"),content:Yo(e,o)};break;case"listStart":o="*Format:* set start index to %0",s={type:Mi("0x0"),content:Yo(e,o,n[Mi("0x1d")][0][Mi("0x9")])}}return s}[Mi("0x2b")](){var t,e,n,o;const s=this[Mi("0x32")][Mi("0x1c")][Mi("0x34")](Mi("0xb"));let r=Array.from(this[Mi("0x32")].model.document.selection[Mi("0x31")]());return(null===(t=r[0])||void 0===t?void 0:t.is(Mi("0x15"),Mi("0x7")))&&r.unshift(...s[Mi("0x38")](this.editor.model[Mi("0xf")][Mi("0x2e")][Mi("0x3")](),"backward")),(null===(e=r[r[Mi("0x24")]-1])||void 0===e?void 0:e.is(Mi("0x15"),Mi("0x7")))&&r.push(...s[Mi("0x38")](this.editor[Mi("0x2a")][Mi("0xf")][Mi("0x2e")].getLastPosition(),Mi("0x37"))),r=[...new Set(r)],(null===(o=null===(n=this[Mi("0x32")][Mi("0x2a")][Mi("0xf")][Mi("0x2e")].getFirstPosition())||void 0===n?void 0:n[Mi("0x1e")])||void 0===o?void 0:o.is(Mi("0x15"),Mi("0x7")))&&(r=r[Mi("0x4")]((t=>t.is("element",Mi("0x7"))))),r}[Mi("0x35")](t){const e=this[Mi("0x32")][Mi("0x1c")][Mi("0x34")]("ListUtils");let n=Array.from(this.editor.model.document[Mi("0x2e")][Mi("0x31")]())[Mi("0x4")](t).map((t=>{const n=this[Mi("0x32")][Mi("0x2a")][Mi("0x28")](t,0);return[...e[Mi("0x38")](n,Mi("0x29")),...e.getSiblingNodes(n,Mi("0x37"))]}))[Mi("0x18")]();return n=[...new Set(n)],n}[Mi("0x17")](t){return Mi("0x6")+this.editor[Mi("0x1c")][Mi("0x34")](Mi("0xb"))[Mi("0x36")](t).toUpperCase()+Mi("0xc")+t.toUpperCase()[Mi("0x2c")](/-/g,"_")}}const Fi=["createEmptyElement","attribute:url:media","ELEMENT_MEDIA","enableCommand","plugins","data","TrackChangesEditing","media","options","for","conversion","high","afterInit","downcastDispatcher","editor","locale","dataDowncast","elementToElement","showSuggestionHighlights","stop","div","has","mediaEmbed","_descriptionFactory","get"];var Pi,Di;Pi=Fi,Di=288,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0x18")](){const t=this[Bi("0x1")];if(!t[Bi("0x10")][Bi("0x8")]("MediaEmbedEditing"))return;const e=t[Bi("0x10")][Bi("0xb")](Bi("0x12")),n=t[Bi("0x2")];e[Bi("0xf")](Bi("0x9")),e[Bi("0xa")].registerElementLabel(Bi("0x13"),(t=>Yo(n,Bi("0xe"),t))),t[Bi("0x16")][Bi("0x15")](Bi("0x3"))[Bi("0x4")]({model:Bi("0x13"),view:(t,{writer:e,options:n})=>{if(n[Bi("0x5")])return e[Bi("0xc")](Bi("0x7"))},converterPriority:"high"}),t[Bi("0x11")][Bi("0x0")].on(Bi("0xd"),((t,e,n)=>{n[Bi("0x14")][Bi("0x5")]&&t[Bi("0x6")]()}),{priority:Bi("0x17")})}}const Ui=["editor","MentionEditing","plugins","get","enableCommand","TrackChangesEditing","has"];var Gi,Hi;Gi=Ui,Hi=319,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{afterInit(){const t=this[zi("0x3")];t[zi("0x5")][zi("0x2")](zi("0x4"))&&t[zi("0x5")][zi("0x6")](zi("0x1"))[zi("0x0")]("mention")}}const Vi=["pageBreak","afterInit","get","enableCommand","editor","TrackChangesEditing","plugins","registerElementLabel","ELEMENT_PAGE_BREAK","locale"];var Ki,qi;Ki=Vi,qi=477,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{[Xi("0x4")](){const t=this[Xi("0x7")];if(!t.plugins.has("PageBreakEditing"))return;t[Xi("0x9")][Xi("0x5")]("TrackChangesEditing")[Xi("0x6")](Xi("0x3"));const e=t[Xi("0x9")][Xi("0x5")](Xi("0x8")),n=t[Xi("0x2")];e._descriptionFactory[Xi("0x0")]("pageBreak",(t=>Yo(n,Xi("0x1"),t)))}}const Ji=["end","has","isLimit","insertParagraph","includes","TrackChangesEditing","editor","enableCommand","addClass","activeMarkers","selection","blockName","consumable","markerName","mapper","options","highest","document","ELEMENT_PARAGRAPH","name","locale","registerDescriptionCallback","filter","paragraph","downcastDispatcher","Paragraph","$text","insert","markBlockFormat","writer","registerElementLabel","getSelectedBlocks","addMarker:suggestion:insertion","editing","markerRange","toViewPosition","insertion","get","bindElementToMarker","model","ck-suggestion-marker--active","nodeAfter","commandName","getFirstRange","isBlock","from","checkChild","isObject","span","isTouching","plugins","createUIElement","change","schema","parent","_descriptionFactory","data","showSuggestionHighlights"];var Qi,Zi;Qi=Ji,Zi=308,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("0x2e")];if(!t.plugins[Yi("0x29")](Yi("0x7")))return;const e=t[Yi("0x2")],n=t[Yi("0x20")][Yi("0x13")](Yi("0x2d"));n[Yi("0x25")][Yi("0xc")]("paragraph",(t=>Yo(e,Yi("0x0"),t))),n.enableCommand(Yi("0x5"),((e,o={})=>{const s=t[Yi("0x15")][Yi("0x39")],r=o[Yi("0x32")]||s[Yi("0x32")],i=Array[Yi("0x1b")](r[Yi("0xd")]())[Yi("0x4")]((t=>{return e=t,(n=this[Yi("0x2e")][Yi("0x15")][Yi("0x23")])[Yi("0x1c")](e[Yi("0x24")],Yi("0x5"))&&!n[Yi("0x1d")](e)&&Yi("0x5")!=e[Yi("0x1")];var e,n}));t[Yi("0x15")][Yi("0x22")]((()=>{for(const t of i)n[Yi("0xa")](t,{commandName:Yi("0x5"),commandParams:[],formatGroupId:Yi("0x33")},fs(t))}))})),n._descriptionFactory[Yi("0x3")]((t=>{const{data:n}=t;if(n&&"paragraph"==n[Yi("0x18")])return{type:"format",content:Yo(e,"*Change to:* %0",Yo(e,Yi("0x0")))}})),n[Yi("0x2f")](Yi("0x2b")),t[Yi("0xf")].downcastDispatcher.on(Yi("0xe"),ex(t),{priority:Yi("0x38")}),t[Yi("0x26")][Yi("0x6")].on(Yi("0xe"),((e,n,o)=>{o[Yi("0x37")][Yi("0x27")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:"highest"});const o=n._descriptionFactory;o[Yi("0x3")]((n=>{if(Yi("0x12")!==n.type)return;const{start:s,end:r}=n[Yi("0x19")]();if(!s[Yi("0x1f")](r)||!s[Yi("0x17")])return;const i=t[Yi("0x15")][Yi("0x23")],x=s.nodeAfter;return i[Yi("0x1a")](x)&&!i[Yi("0x2a")](x)&&i[Yi("0x1c")](x,Yi("0x8"))?{type:Yi("0x12"),content:Yo(e,"*Insert:* %0",o.getItemLabel(x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Yi("0x20")][Yi("0x13")](Yi("0x2d")),i=o[Yi("0x10")].start,x=o.markerRange[Yi("0x28")],a=t[Yi("0x15")].schema;if(!i[Yi("0x1f")](x)||!i[Yi("0x17")])return;const c=i[Yi("0x17")];if(a[Yi("0x1a")](c)&&!a[Yi("0x2a")](c)&&a.checkChild(c,"$text")){if(!s[Yi("0x34")].consume(o.markerRange,n.name))return;const t=s.writer[Yi("0x21")](Yi("0x1e"),{class:"ck-suggestion-marker-split"}),i=s[Yi("0x36")][Yi("0x11")](x);e&&r[Yi("0x31")][Yi("0x2c")](o[Yi("0x35")])&&s[Yi("0xb")][Yi("0x30")](Yi("0x16"),t),s[Yi("0xb")][Yi("0x9")](i,t),s[Yi("0x36")][Yi("0x14")](t,o[Yi("0x35")])}}}const nx=["from","commandName","getRanges","locale","isFormatting","enableCommand","_descriptionFactory","change","isCollapsed","get","TrackChangesEditing","getAttributes","getAttributeProperties","editor","plugins","registerDescriptionCallback","format","markInlineFormat","schema","model","getItems","RemoveFormatEditing","*Remove all formatting*","removeFormat","selection","has"];var ox,sx;ox=nx,sx=114,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("0x3")];if(!t[rx("0x4")][rx("0xf")](rx("0xb")))return;const e=t[rx("0x4")][rx("0x19")](rx("0x0"));e[rx("0x15")](rx("0xd"),(n=>{const o=t[rx("0x9")].document[rx("0xe")];o[rx("0x18")]?n():t[rx("0x9")][rx("0x17")]((()=>{const n=Array[rx("0x10")](o[rx("0x12")]());for(const o of n)for(const n of o[rx("0xa")]())xx(n,t.model[rx("0x8")])&&e[rx("0x7")](t[rx("0x9")].createRangeOn(n),{commandName:rx("0xd"),commandParams:[]})}))})),e[rx("0x16")][rx("0x5")]((e=>{const{data:n}=e;if(n&&rx("0xd")==n[rx("0x11")])return{type:rx("0x6"),content:Yo(t[rx("0x13")],rx("0xc"))}}))}}function xx(t,e){for(const[n]of t[rx("0x1")]()){const t=e[rx("0x2")](n);if(t&&t[rx("0x14")])return!0}return!1}const ax=["afterInit","enableCommand","plugins","discardAllSuggestions","discardSelectedSuggestions","get","TrackChangesEditing","has","RestrictedEditingModeEditing","acceptAllSuggestions","trackChanges"];var cx,lx;cx=ax,lx=114,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const dx=function(t,e){return ax[t-=0]};class ux extends t.Plugin{[dx("0x7")](){const t=this.editor;if(!t[dx("0x9")][dx("0x3")](dx("0x4")))return;const e=t[dx("0x9")][dx("0x1")](dx("0x2"));e[dx("0x8")]("goToPreviousRestrictedEditingException"),e[dx("0x8")]("goToNextRestrictedEditingException");const n=t.plugins[dx("0x1")](dx("0x4"));n[dx("0x8")](dx("0x6")),n.enableCommand("acceptSuggestion"),n[dx("0x8")]("discardSuggestion"),n.enableCommand(dx("0x5")),n.enableCommand(dx("0xa")),n[dx("0x8")]("acceptSelectedSuggestions"),n[dx("0x8")](dx("0x0"))}}const gx=["addMarker:suggestion:insertion","span","high","showSuggestionHighlights","editor","getItems","data","merge","mapper","enableCommand","_descriptionFactory","includes","createPositionBefore","model","locale","addClass","activeMarkers","options","toViewPosition","downcastDispatcher","split","TrackChangesEditing","deletion","addMarker:suggestion","consumable","writer","markerRange","markerName","element","softBreak","ck-suggestion-marker-","createUIElement","test","ck-suggestion-marker--active","insert","plugins","editing","get","requires","registerElementLabel","init","addMarker:suggestion:deletion","bindElementToMarker"];var mx,fx;mx=gx,fx=148,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("0x13")](){return[nr.ShiftEnter]}[hx("0x15")](){const t=this[hx("0x1c")],e=t[hx("0x10")][hx("0x12")](hx("0x2"));e[hx("0x21")]("shiftEnter"),t[hx("0x11")][hx("0x0")].on(hx("0x18"),bx(t),{priority:"high"}),t[hx("0x11")][hx("0x0")].on(hx("0x16"),bx(t),{priority:hx("0x1a")}),t[hx("0x1e")][hx("0x0")].on(hx("0x4"),((e,n,o)=>{o[hx("0x29")][hx("0x1b")]&&bx(t,{showActiveMarker:!1})(e,n,o)})),e[hx("0x22")][hx("0x14")](hx("0xa"),(e=>Yo(t[hx("0x26")],"ELEMENT_LINE_BREAK",e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t.plugins[hx("0x12")](hx("0x2"));if(!s[hx("0x5")][hx("0xd")](o[hx("0x7")],n.name))return;const i=t[hx("0x25")];for(const t of o.markerRange[hx("0x1d")]()){if(!t.is(hx("0x9"),"softBreak"))continue;const n=hx("0x3")==o[hx("0x8")][hx("0x1")](":")[1]?hx("0x1f"):hx("0x1"),x=s[hx("0x6")][hx("0xc")](hx("0x19"),{class:hx("0xb")+n}),a=s.mapper[hx("0x2a")](i[hx("0x24")](t));e&&r[hx("0x28")][hx("0x23")](o[hx("0x8")])&&s[hx("0x6")][hx("0x27")](hx("0xe"),x),s[hx("0x6")][hx("0xf")](a,x),s[hx("0x20")][hx("0x17")](x,o[hx("0x8")])}}}const Ex=["getRanges","markInlineFormat","FORMAT_RESTRICTED_DISABLED","registerDescriptionCallback","plugins","model","change","from","commandName","FORMAT_RESTRICTED_ENABLED","selection","format","forceValue","StandardEditingModeEditing","enableCommand","editor","commandParams","isCollapsed","has","locale","value","afterInit","get","document"];var _x,Tx;_x=Ex,Tx=360,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{[Cx("0x15")](){const t=this[Cx("0xf")],e=t[Cx("0x5")],n=t[Cx("0x13")];if(!t[Cx("0x4")][Cx("0x12")](Cx("0xd")))return;const o=t.plugins[Cx("0x16")]("TrackChangesEditing"),s="restrictedEditingException",r=t.commands[Cx("0x16")](s);o[Cx("0xe")](s,((t,n={})=>{const i=e[Cx("0x17")][Cx("0xa")];if(i[Cx("0x11")])return void t(n);const x=void 0!==n[Cx("0xc")]?n[Cx("0xc")]:!r[Cx("0x14")];e[Cx("0x6")]((()=>{const t=Array[Cx("0x7")](i[Cx("0x0")]());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o[Cx("0x1")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o._descriptionFactory[Cx("0x3")]((t=>{const{data:e}=t;if(e&&e[Cx("0x8")]==s)return e[Cx("0x10")][0][Cx("0xc")]?{type:"format",content:Yo(n,Cx("0x9"))}:{type:Cx("0xb"),content:Yo(n,Cx("0x2"))}}))}}const kx=["markInlineFormat","markBlockFormat","has","element","get","getItems","change","enabledStyles","_getRangesWithClasses","includes","from","format","*Format:* %0","classes","value","name","model","Style","block","commandName","_getStyleDefinition","toLowerCase","forceValue","plugins","document","registerDescriptionCallback","commandParams","enableCommand","getAncestors","normalizeConfig","styleName","editor","commands","style","isBlock","DataSchema","push","modelElements","isCollapsed","getDefinitionsForView","createRangeOn","every"];var Ax,vx;Ax=kx,vx=373,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{afterInit(){const t=this[Rx("0x24")];if(!t.plugins[Rx("0x7")](Rx("0x16")))return;const e=t[Rx("0x25")].get(Rx("0x26")),n=t[Rx("0x1c")][Rx("0x9")]("TrackChangesEditing"),o=t.locale,s=t[Rx("0x1c")][Rx("0x9")](Rx("0x28")),r=t[Rx("0x1c")].get("StyleUtils")[Rx("0x22")](s,t.config[Rx("0x9")]("style.definitions"));n[Rx("0x20")](Rx("0x26"),((o,{styleName:i})=>{const x=t[Rx("0x15")][Rx("0x1d")].selection,a=this[Rx("0x19")](i,r);if(!a)return;if(!e[Rx("0xc")][Rx("0xe")](i))return;if(x[Rx("0x1")]&&!a[Rx("0x27")])return void o({styleName:i});const c=!e[Rx("0x13")][Rx("0xe")](a[Rx("0x14")]);if(a[Rx("0x27")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Rx("0x21")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[Rx("0xe")](o.name)){n.add(o);break}}return n}(x.getSelectedBlocks(),a[Rx("0x0")]);t[Rx("0x15")].change((()=>{for(const t of e)n[Rx("0x6")](t,{commandName:Rx("0x26"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:"style:"+i})}))}else{let e=Array[Rx("0xf")](x.getRanges());if(!c){const n=Array[Rx("0xf")](s[Rx("0x2")](a[Rx("0x8")],!1))[0][Rx("0x15")],o=[];for(const s of e){const e=this[Rx("0xd")](t.model,s,a[Rx("0x12")],n);o[Rx("0x29")](...e)}e=o}t[Rx("0x15")][Rx("0xb")]((()=>{for(const t of e)n[Rx("0x5")](t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}]})}))}})),n._descriptionFactory[Rx("0x1e")]((t=>{const{data:e}=t;if(e&&Rx("0x26")===e[Rx("0x18")])return e[Rx("0x1f")][0][Rx("0x1b")]?{type:Rx("0x10"),content:Yo(o,Rx("0x11"),e[Rx("0x1f")][0][Rx("0x23")][Rx("0x1a")]())}:{type:Rx("0x10"),content:Yo(o,"*Remove format:* %0",e[Rx("0x1f")][0][Rx("0x23")].toLowerCase())}}))}[Rx("0x19")](t,e){let n=e[Rx("0x17")].find((e=>e[Rx("0x14")]===t));return n||(n=e.inline.find((e=>e[Rx("0x14")]===t))),n}_getRangesWithClasses(t,e,n,o){const s=[];for(const r of e[Rx("0xa")]()){const e=r.getAttribute(o);e&&n[Rx("0x4")]((t=>e[Rx("0x12")].includes(t)))&&s[Rx("0x29")](t[Rx("0x3")](r))}return s}}const Ix=["tableColumn","commands","refresh","registerDescriptionCallback","enqueueChange","options","substr","model","start","isEqual","isTouching","registerElementLabel","getChildren","maxColumn","cell","hasAttribute","above","detach","_getCoordsForCells","ELEMENT_TABLE_ROW_WITH_TEXT","change:data","getContainedElement","*Remove:* %0","ELEMENT_TABLE","span","element","createRangeOn","ELEMENT_TABLE_WITH_TEXT","mapper","getCellLocation","insertion","some","first","rowspan","selectTableColumn","forceValue","getRowIndexes","_suggestionFactory","data","oldRange","name","suggestion","fromRange","every","length","addMarker:suggestion","registerCustomCallback","root","_tableSuggestions","*Insert:* %0","insert","type","getItems","values","TableEditing","tablePaste","rootName","from","nodeAfter","writer","accept","getChangedMarkers","_tablePostFixingSubtypes","getRanges","order","insertTableRowBelow","removeTableColumn","tableCell","markMultiRangeInsertion","discard","setSelection","removeClass","ELEMENT_TABLE_ROW","max","ELEMENT_TABLE_COLUMN","push","item","differ","highest","subType","TableUtils","minRow","change","getAttribute","editor","execute","$graveyard","getSelectionAffectedTableCells","end","low","$textProxy","get","selection","ELEMENT_TABLE_COLUMN_WITH_TEXT","insertTableColumnRight","MAX_SAFE_INTEGER","join","removeTableRow","filter","getFirstRange","tableRow","createTableWalker","document","_getSuggestionCoords","TrackChangesEditing","_descriptionFactory","map","getColumnIndexes","locale","plugins","_acceptFormatSuggestionCallbackFactory","last","deletion","includes","registerPostFixer","enableCommand","position","toLowerCase","findAncestor","min","createRangeIn","maxRow","insertTableRowAbove","MIN_SAFE_INTEGER","colspan","table","nodeBefore","markMultiRangeDeletion","addRange","insertTableColumnLeft","isInContent","minColumn"];var Lx,Nx;Lx=Ix,Nx=478,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("0x70")]=[wx("0x12"),wx("0x32")],this[wx("0x62")]=new Set}afterInit(){const t=this[wx("0x2")],e=t.model[wx("0x14")][wx("0xa")];if(!t.plugins.has(wx("0x68")))return;const n=t[wx("0x1a")],o=t[wx("0x1b")][wx("0x9")](wx("0x16")),s=t[wx("0x1b")][wx("0x9")](wx("0x82"));o[wx("0x17")][wx("0x3d")](wx("0x2b"),(t=>Yo(n,wx("0x49"),t))),this._setupColumnsRowsFixing(),o[wx("0x21")]("insertTable"),o.enableCommand("selectTableRow"),o[wx("0x21")](wx("0x54"));for(const n of[wx("0x28"),wx("0x73")]){const r=t[wx("0x33")][wx("0x9")](n);o.enableCommand(n,(n=>{t.model[wx("0x0")]((t=>{n();const i=wx("0x42")===r[wx("0x72")],x=s[wx("0x5")](e),a=s[wx("0x56")](x),c=i?a.first-1:a.last+1,l=x[0][wx("0x24")](wx("0x2b")),d=s[wx("0x13")](l,{startRow:c,endRow:c}),u=Array[wx("0x6b")](d)[wx("0x18")]((e=>t[wx("0x4c")](e[wx("0x40")])));o[wx("0x76")](u,"tableRow")}))}))}for(const n of[wx("0x2f"),wx("0xc")]){const r=t.commands[wx("0x9")](n);o[wx("0x21")](n,(n=>{t[wx("0x39")].change((t=>{n();const i="left"===r.order,x=s[wx("0x5")](e),a=s[wx("0x19")](x),c=i?a[wx("0x52")]-1:a[wx("0x1d")]+1,l=x[0][wx("0x24")](wx("0x2b")),d=s.createTableWalker(l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[wx("0x6b")](d).map((e=>t[wx("0x4c")](e[wx("0x40")])));o[wx("0x76")](u,wx("0x32"))}))}))}for(const n of[wx("0xf"),wx("0x74")]){const r=n[wx("0x38")](11),i=r[wx("0x23")](),x=i[wx("0x38")](0,3)+wx("0x4a"),a="table"+r,c=wx("0x25")+r,l=wx("0x7b")+r;o[wx("0x21")](n,(()=>{t[wx("0x39")][wx("0x0")]((t=>{const r=s[wx("0x5")](e),d=r[0].findAncestor("table");let u;if(wx("0xf")==n){const t=s.getRowIndexes(r);u={startRow:t[wx("0x52")],endRow:t[wx("0x1d")],includeAllSlots:!0}}else{const t=s[wx("0x19")](r);u={startColumn:t.first,endColumn:t[wx("0x1d")],includeAllSlots:!0}}const g=s.createTableWalker(d,u),m=Array[wx("0x6b")](g)[wx("0x18")]((({cell:t})=>t)),f=Ox(m.filter((t=>t[wx("0x41")](x)))),h=Ox(m[wx("0x10")]((t=>!t[wx("0x41")](x))))[wx("0x18")]((e=>t.createRangeOn(e))),p=o[wx("0x2d")](h,a);if(p&&(wx("0x12")==p[wx("0x81")]||wx("0x32")==p[wx("0x81")])){const e=this._getSuggestionCoords(p);for(const n of f){const o=t.createRangeOn(n),r=s.getCellLocation(n),a=n[wx("0x1")](x)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+a<=u&&p.addRange(o)}}}))}))}function r(n){const o=Array.from(e[wx("0x71")]())[wx("0x18")]((t=>i.LiveRange[wx("0x5c")](t)));t.model[wx("0x0")]((e=>{const s=e.batch;n=n.filter((t=>wx("0x4")!=t[wx("0x61")][wx("0x6a")])),e[wx("0x78")](n),t[wx("0x33")][wx("0x9")]("removeTableRow")[wx("0x34")](),t[wx("0x3")](wx("0xf"),{forceDefaultExecution:!0}),t.model[wx("0x36")]((()=>{t[wx("0x39")][wx("0x36")](s,(t=>{const e=o[wx("0x10")]((t=>wx("0x4")!=t[wx("0x61")][wx("0x6a")]));e.length>0&&t.setSelection(e);for(const t of o)t.detach()}))}))}))}function a(n){t[wx("0x39")][wx("0x0")]((o=>{const s=Array[wx("0x6b")](e[wx("0x71")]()).map((t=>i.LiveRange[wx("0x5c")](t))),r=[];for(const t of n)for(const e of t.getItems({shallow:!0}))r[wx("0x7d")](e);for(const e of r)wx("0x4")!=e[wx("0x61")][wx("0x6a")]&&(o[wx("0x78")](o.createPositionAt(e,0)),t.commands[wx("0x9")](wx("0x74"))[wx("0x34")](),t[wx("0x3")](wx("0x74"),{forceDefaultExecution:!0}));const x=s[wx("0x10")]((t=>wx("0x4")!=t[wx("0x61")][wx("0x6a")]));x[wx("0x5e")]>0&&o[wx("0x78")](x);for(const t of s)t[wx("0x43")]()}))}function c(t,e){return e[wx("0x5d")]((e=>t[wx("0x51")]((t=>t[wx("0x6")].isEqual(e[wx("0x3a")])||e[wx("0x6")][wx("0x3b")](t[wx("0x3a")])))))}function l(t,e){return t[wx("0x51")]((t=>e.some((e=>t[wx("0x6")][wx("0x3c")](e[wx("0x3a")])))))}t[wx("0x58")].downcastDispatcher.on(wx("0x5f"),((t,e,n)=>{if(!n[wx("0x37")].showSuggestionHighlights)return;const o=e[wx("0x7e")];if(!o)return;const s=n[wx("0x4e")].toViewElement(o);function r(t){return Array.isArray(t)?t:[t]}s&&wx("0x75")===o[wx("0x5a")]&&(0,x.setHighlightHandling)(s,n[wx("0x6d")],((t,e,n)=>n.addClass(r(e.classes),t)),((t,e,n)=>n[wx("0x79")](r(e.classes),t)))}),{priority:wx("0x80")}),o._descriptionFactory.registerDescriptionCallback((t=>{if(wx("0x50")!=t.type&&"deletion"!=t[wx("0x65")])return;const e=t[wx("0x47")]();if(null!=e&&e.is(wx("0x4b"),wx("0x2b"))){if(wx("0x50")==t[wx("0x65")]){const e=t[wx("0x66")]()[wx("0x10")]((t=>t.is(wx("0x8")))).map((t=>t[wx("0x58")]));if(e[wx("0x5e")])return{type:wx("0x50"),content:Yo(n,"*Insert:* %0",Yo(n,wx("0x4d"),'"'+e.join(" ")+'"'))}}if(wx("0x1e")==t[wx("0x65")]){const e=t[wx("0x66")]()[wx("0x10")]((t=>t.is(wx("0x8")))).map((t=>t[wx("0x58")]));if(e.length)return{type:"deletion",content:Yo(n,wx("0x48"),Yo(n,wx("0x4d"),'"'+e.join(" ")+'"'))}}}})),o._descriptionFactory[wx("0x35")]((t=>{if(wx("0x12")==t[wx("0x81")]){const e=t.getItems()[wx("0x10")]((t=>t.is("$textProxy")))[wx("0x18")]((t=>t[wx("0x58")])),o=this[wx("0x15")](t),s=o[wx("0x27")]-o[wx("0x83")]+1;if(wx("0x50")==t.type)return e[wx("0x5e")]?{type:"insertion",content:Yo(n,wx("0x63"),Yo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[s,'"'+e.join(" ")+'"']))}:{type:wx("0x50"),content:Yo(n,wx("0x63"),Yo(n,wx("0x7a"),s))};if(wx("0x1e")==t[wx("0x65")])return e[wx("0x5e")]?{type:wx("0x1e"),content:Yo(n,"*Remove:* %0",Yo(n,wx("0x45"),[s,'"'+e.join(" ")+'"']))}:{type:"deletion",content:Yo(n,wx("0x48"),Yo(n,"ELEMENT_TABLE_ROW",s))}}if(wx("0x32")==t.subType){const e=t[wx("0x66")]()[wx("0x10")]((t=>t.is(wx("0x8"))))[wx("0x18")]((t=>t[wx("0x58")])),o=this[wx("0x15")](t),s=o[wx("0x3f")]-o[wx("0x31")]+1;if(wx("0x50")==t[wx("0x65")])return e[wx("0x5e")]?{type:wx("0x50"),content:Yo(n,wx("0x63"),Yo(n,wx("0xb"),[s,'"'+e[wx("0xe")](" ")+'"']))}:{type:wx("0x50"),content:Yo(n,wx("0x63"),Yo(n,wx("0x7c"),s))};if("deletion"==t[wx("0x65")])return e[wx("0x5e")]?{type:wx("0x1e"),content:Yo(n,wx("0x48"),Yo(n,wx("0xb"),[s,'"'+e[wx("0xe")](" ")+'"']))}:{type:"deletion",content:Yo(n,wx("0x48"),Yo(n,wx("0x7c"),s))}}})),o[wx("0x57")][wx("0x60")]("insertion",wx("0x12"),"discard",r),o[wx("0x57")].registerCustomCallback(wx("0x1e"),"tableRow","accept",r),o._suggestionFactory[wx("0x60")](wx("0x50"),wx("0x32"),wx("0x77"),a),o[wx("0x57")].registerCustomCallback(wx("0x1e"),wx("0x32"),wx("0x6e"),a),o[wx("0x57")][wx("0x60")](wx("0x50"),"tableColumn","join",c),o[wx("0x57")][wx("0x60")](wx("0x1e"),wx("0x32"),wx("0xe"),c),o[wx("0x57")].registerCustomCallback(wx("0x50"),wx("0x12"),wx("0xe"),l),o[wx("0x57")].registerCustomCallback(wx("0x1e"),wx("0x12"),wx("0xe"),l)}[wx("0x1c")](){const t=this.editor,e=t[wx("0x39")].document[wx("0xa")];return(n,o)=>{t[wx("0x39")].change((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][wx("0x6")][wx("0x2c")];x&&x[0]&&!1===x[0][wx("0x55")]&&(a=n[0][wx("0x3a")][wx("0x6c")]);const c=s[wx("0x26")](a);if("$graveyard"==c[wx("0x61")].rootName)return;const l=Array[wx("0x6b")](e[wx("0x71")]())[wx("0x18")]((t=>i.LiveRange[wx("0x5c")](t)));s[wx("0x78")](c),t[wx("0x33")][wx("0x9")](r).refresh(),x[wx("0x7d")]({forceDefaultExecution:!0}),t[wx("0x3")](r,...x);const d=l[wx("0x10")]((t=>wx("0x4")!=t.root[wx("0x6a")]));d[wx("0x5e")]>0&&s[wx("0x78")](d);for(const t of l)t[wx("0x43")]()}))}}[wx("0x44")](t){const e=this.editor[wx("0x1b")][wx("0x9")](wx("0x82"));let n=Number[wx("0xd")],o=Number.MIN_SAFE_INTEGER,s=Number[wx("0xd")],r=Number[wx("0x29")];for(const i of t){if("$graveyard"==i[wx("0x61")][wx("0x6a")])continue;const{row:t,column:x}=e[wx("0x4f")](i),a=i[wx("0x41")](wx("0x53"))?i[wx("0x1")]("rowspan")-1:0,c=i[wx("0x41")](wx("0x2a"))?i.getAttribute(wx("0x2a"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,s=x<s?x:s,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:s,maxColumn:r}}_setupColumnsRowsFixing(){const t=this[wx("0x2")],e=t[wx("0x1b")][wx("0x9")](wx("0x16")),n=t[wx("0x1b")][wx("0x9")](wx("0x82"));t[wx("0x39")].document.on(wx("0x46"),(()=>{const n=Array[wx("0x6b")](t[wx("0x39")][wx("0x14")][wx("0x7f")][wx("0x6f")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e._splitMarkerName(t);if(wx("0x5b")!=n)continue;if(null!=o[wx("0x59")])continue;const i=e.getSuggestion(s);this._tablePostFixingSubtypes[wx("0x1f")](r)&&this[wx("0x62")].add(i)}}),{priority:wx("0x7")});const o=(t,e)=>{let o=!1;const s=e.createRangeOn(t),r=t[wx("0x24")](wx("0x2b")),i=n[wx("0x4f")](t);for(const e of this[wx("0x62")]){const n=e[wx("0x81")],x=n.startsWith(wx("0x69")),a=n[wx("0x38")](x?10:5),c=a[wx("0x23")](),l=c.substr(0,3)+wx("0x4a"),d="min"+a,u=wx("0x7b")+a;if(!e[wx("0x30")])continue;if(r!=e[wx("0x11")]()[wx("0x3a")][wx("0x24")](wx("0x2b")))continue;if(e.isIntersectingWithRange(s))continue;const g=t[wx("0x41")](l)?t[wx("0x1")](l)-1:0,m=this._getSuggestionCoords(e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e[wx("0x2e")](s),o=!0)}return o};t[wx("0x39")].document[wx("0x20")]((e=>{let n=!1;for(const s of t[wx("0x39")].document.differ.getChanges())if(wx("0x64")==s[wx("0x65")])if("tableRow"==s[wx("0x5a")])for(const t of s[wx("0x22")].nodeAfter[wx("0x3e")]())n=n||o(t,e);else wx("0x75")==s[wx("0x5a")]&&(n=n||o(s.position[wx("0x6c")],e));return n}))}[wx("0x15")](t){return this._getCoordsForCells(t.getRanges()[wx("0x18")]((t=>t[wx("0x3a")].nodeAfter)))}}function Ox(t){return Array.from(new Set(t)[wx("0x67")]())}const Fx=["mergeTableCellRight","splitTableCellVertically","createTableWalker","has","_suggestionFactory","element","find","splitTableCellHorizontally","plugins","size","containsRange","tableCell","low","document","subType","execute","getRanges","value","_isForcedDefaultExecutionBlock","author","deletion","refresh","getFirstPosition","push","model","markMultiRangeBlockFormat","forceDefaultExecution","TableUtils","_areMergableCells","registerDescriptionCallback","setSelection","*Merge cells*","selection","from","locale","afterInit","set:isEnabled","*Split cell:* horizontally","*Split cell:* vertically","mergeTableCells","length","get","mergeTableCellUp","createRangeOn","add","mergeTableCellLeft","change","TrackChangesEditing","table","_descriptionFactory","accept","direction","_areSelectedCellsMergable","format","getCellLocation","markBlockFormat","mergeTableCellDown","getAncestors","commands","rootName","stop","map","type","trackChanges","highest","enableCommand","registerCustomCallback","TableEditing","editor","requires","$graveyard","commandName","getSelectionAffectedTableCells","_acceptFormatSuggestionCallbackFactory","formatBlock","cell","horizontally","detach"];var Px,Dx;Px=Fx,Dx=477,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("0x3c")](){return[Mx]}[Bx("0x1a")](){const t=this[Bx("0x3b")],e=t[Bx("0xf")][Bx("0x4")].selection,n=t[Bx("0x19")];if(!t.plugins[Bx("0x48")](Bx("0x3a")))return;const o=t[Bx("0x4d")][Bx("0x20")]("TrackChangesEditing"),s=t[Bx("0x4d")][Bx("0x20")](Bx("0x12")),r=t[Bx("0x4d")][Bx("0x20")](Mx);r._tablePostFixingSubtypes[Bx("0xe")](Bx("0x1e")),o[Bx("0x38")](Bx("0x1e"),(()=>{const e=s[Bx("0x3f")](t[Bx("0xf")][Bx("0x4")][Bx("0x17")]);t[Bx("0xf")][Bx("0x25")]((()=>{o.markMultiRangeBlockFormat(e,{commandName:Bx("0x1e"),commandParams:[]},[],Bx("0x1e"))}))})),t[Bx("0x31")].get(Bx("0x1e")).on("execute",((e,n)=>{t.commands[Bx("0x20")](Bx("0x36"))[Bx("0x8")]&&(n[Bx("0x1f")]>0&&n[n[Bx("0x1f")]-1]&&n[n[Bx("0x1f")]-1][Bx("0x11")]||o[Bx("0x9")]||this[Bx("0x2b")]()||e[Bx("0x33")]())}),{priority:Bx("0x37")});for(const e of["mergeTableCellUp","mergeTableCellRight",Bx("0x2f"),Bx("0x24")]){const n=t.commands[Bx("0x20")](e);o.enableCommand(e,(()=>{const e=t[Bx("0xf")][Bx("0x4")][Bx("0x17")][Bx("0xd")]()[Bx("0x30")]()[Bx("0x4b")]((t=>t.is("element",Bx("0x2")))),s=n.value;t.model[Bx("0x25")]((()=>{o[Bx("0x10")]([e,s],{commandName:Bx("0x1e"),commandParams:[]},[],Bx("0x1e"))}))}))}for(const e of[Bx("0x46"),Bx("0x4c")]){const n=t[Bx("0x31")][Bx("0x20")](e);o[Bx("0x38")](e,(()=>{const r=s[Bx("0x3f")](t[Bx("0xf")][Bx("0x4")].selection)[0],i=r.findAncestor(Bx("0x27")),{column:x,row:a}=s[Bx("0x2d")](r);let c=[];if(Bx("0x43")==n[Bx("0x2a")]){const t=s[Bx("0x47")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0x18")](t)[Bx("0x34")]((t=>t.cell))}else{const t=s[Bx("0x47")](i,{column:x,includeAllSlots:!0});c=Array[Bx("0x18")](t).map((t=>t[Bx("0x42")]))}t.model[Bx("0x25")]((t=>{o[Bx("0x2e")](t[Bx("0x22")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[Bx("0x28")][Bx("0x14")]((t=>{const{data:e}=t;if(e)return Bx("0x1e")==e[Bx("0x3e")]?{type:Bx("0x2c"),content:Yo(n,Bx("0x16"))}:void 0})),o[Bx("0x28")].registerDescriptionCallback((t=>{const{data:e}=t;if(e)return Bx("0x46")==e[Bx("0x3e")]?{type:Bx("0x2c"),content:Yo(n,Bx("0x1d"))}:"splitTableCellHorizontally"==e.commandName?{type:"format",content:Yo(n,Bx("0x1c"))}:void 0}));const x=r[Bx("0x40")]();for(const t of["mergeTableCellUp",Bx("0x45"),Bx("0x2f"),Bx("0x24")])o[Bx("0x49")][Bx("0x39")]("formatBlock",t,"accept",x);for(const t of["splitTableCellVertically",Bx("0x4c")])o[Bx("0x49")][Bx("0x39")](Bx("0x41"),t,"accept",x);o[Bx("0x49")][Bx("0x39")](Bx("0x41"),Bx("0x1e"),Bx("0x29"),(n=>{t[Bx("0xf")][Bx("0x25")]((o=>{const s=Array[Bx("0x18")](e[Bx("0x7")]())[Bx("0x34")]((t=>i.LiveRange.fromRange(t)));o[Bx("0x15")](n),t[Bx("0x31")][Bx("0x20")](Bx("0x1e"))[Bx("0xc")](),t[Bx("0x6")]("mergeTableCells",{forceDefaultExecution:!0});const r=s.filter((t=>Bx("0x3d")!=t.root[Bx("0x32")]));r.length>0&&o[Bx("0x15")](r);for(const t of s)t[Bx("0x44")]()}))}));for(const e of[Bx("0x21"),Bx("0x2f"),Bx("0x24"),Bx("0x45")]){const n=t[Bx("0x31")][Bx("0x20")](e);n.on(Bx("0x1b"),((e,o,s)=>{if(s){const o=t[Bx("0xf")][Bx("0x4")][Bx("0x17")][Bx("0xd")]()[Bx("0x30")]()[Bx("0x4b")]((t=>t.is(Bx("0x4a"),"tableCell")));this[Bx("0x13")](n.value,o)||(e.return=!1,e[Bx("0x33")]())}}),{priority:Bx("0x3")})}}[Bx("0x2b")](){const t=this[Bx("0x3b")][Bx("0x31")][Bx("0x20")]("mergeTableCells"),e=this[Bx("0x3b")][Bx("0x4d")].get(Bx("0x12"));if(!t.isEnabled)return!1;const n=e[Bx("0x3f")](this[Bx("0x3b")].model.document[Bx("0x17")]);for(const t of n)for(const e of n)if(t!=e&&!this._areMergableCells(t,e))return!1;return!0}[Bx("0x13")](t,e){const n=this[Bx("0x3b")][Bx("0x4d")].get(Bx("0x26")),o=this[Bx("0x3b")][Bx("0xf")][Bx("0x22")](t),s=this[Bx("0x3b")].model[Bx("0x22")](e),r=new Set,i=new Set;for(const t of n.getSuggestions())if(("insertion"==t[Bx("0x35")]||Bx("0xb")==t[Bx("0x35")]||Bx("0x1e")==t[Bx("0x5")])&&t.isInContent)for(const e of t[Bx("0x7")]())e[Bx("0x1")](o,!0)&&r[Bx("0x23")](t[Bx("0x35")]+":"+t[Bx("0xa")].id),e[Bx("0x1")](s,!0)&&i[Bx("0x23")](t[Bx("0x35")]+":"+t.author.id);if(r[Bx("0x0")]!=i[Bx("0x0")])return!1;for(const t of r)if(!i[Bx("0x48")](t))return!1;return!0}}const Ux=["toViewElement","format","isBefore","headingColumns","model","options","TableUtils","table","headingRows","createPositionAfter","showSuggestionHighlights","consume","change","index","setTableColumnHeader","getChild","activeMarkers","markBlockFormat","registerDescriptionCallback","accept","nodeAfter","removeClass","unbindElementFromMarkerName","getSuggestion","registerCustomCallback","document","selection","has","data-suggestion","commands","consumable","forceValue","stop","enableCommand","FORMAT_REGULAR_ROW","_descriptionFactory","childCount","ck-suggestion-marker-","commandParams","from","markerRange","parent","addMarker:suggestion","TrackChangesEditing","getRowIndexes","item","writer","FORMAT_HEADER_COLUMN","removeMarker:suggestion","ck-suggestion-marker--active","_splitMarkerName","_suggestionFactory","mapper","afterInit","commandName","setTableRowHeader","downcastDispatcher","value","highest","markerName","bindElementToMarker","*Format:* %0","nodeBefore","requires","getSelectionAffectedTableCells","locale","createPositionBefore","editor","createTableWalker","FORMAT_HEADER_ROW","getAttribute","data","findAncestor","name","addClass","plugins","first","_acceptFormatSuggestionCallbackFactory","cell","editing","createRange","formatBlock","getColumnIndexes","get","getCellLocation","last"];var Gx,Hx;Gx=Ux,Hx=173,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("0x3e")](){return[Mx]}[zx("0x34")](){const t=this[zx("0x42")];if(!t[zx("0x4a")][zx("0x1a")]("TableEditing"))return;const e=t[zx("0x40")],n=t.plugins[zx("0x52")](zx("0x2a")),o=t[zx("0x4a")].get(zx("0x5")),s=t[zx("0x4a")][zx("0x52")](Mx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[zx("0x31")](r[zx("0x3a")]),c=n[zx("0x16")](a);if(!c.data||zx("0xd")!=c[zx("0x46")][zx("0x35")])return;if(r[zx("0x2c")])return void s[zx("0x1f")]();if(!i[zx("0x1d")][zx("0xa")](r[zx("0x27")],s[zx("0x48")]))return;const l=r.markerRange.start[zx("0x13")],d=r[zx("0x27")].end[zx("0x3d")],u=l[zx("0x28")].parent,{column:g}=o.getCellLocation(l),{column:m}=o[zx("0x53")](d);for(let s=g;s<=m;s++){const c=o[zx("0x43")](u,{column:s,includeAllSlots:!1});for(const o of c){const s=o[zx("0x4d")],c=i.mapper[zx("0x55")](s);i[zx("0x2d")][zx("0x49")]("ck-suggestion-marker-"+x,c),e&&i[zx("0x2d")].setAttribute(zx("0x1b"),a,c),i[zx("0x33")][zx("0x3b")](c,r[zx("0x3a")]),t&&(n[zx("0xf")].includes(r[zx("0x3a")])?i.writer[zx("0x49")](zx("0x30"),c):i[zx("0x2d")].removeClass(zx("0x30"),c))}}}}n[zx("0x20")](zx("0x36"),((e,s)=>{const r=o[zx("0x3f")](t[zx("0x3")][zx("0x18")].selection),i=o[zx("0x2b")](r),x=r[0][zx("0x47")](zx("0x6")),a=x[zx("0x45")](zx("0x7"))||0,c=s&&null!==s[zx("0x1e")]?s[zx("0x1e")]:!t[zx("0x1c")].get(zx("0x36"))[zx("0x38")],l=c?i[zx("0x54")]:i[zx("0x4b")],d=x.getChild(l);let u;if(c){const e=x[zx("0xe")](a);if(d[zx("0xc")]<e.index)return;u=t[zx("0x3")][zx("0x4f")](t[zx("0x3")][zx("0x41")](e[zx("0xe")](0)),t[zx("0x3")][zx("0x8")](d.getChild(d[zx("0x23")]-1)))}else{const e=x[zx("0xe")](a-1);if(!e)return;u=t[zx("0x3")][zx("0x4f")](t.model[zx("0x41")](d[zx("0xe")](0)),t[zx("0x3")].createPositionAfter(e[zx("0xe")](e[zx("0x23")]-1)))}t[zx("0x3")][zx("0xb")]((()=>{n[zx("0x10")](u,{commandName:zx("0x36"),commandParams:[{forceValue:c}]},[],zx("0x36"))}))})),n[zx("0x20")](zx("0xd"),((e,o)=>{const s=t[zx("0x4a")].get(zx("0x5")),r=s[zx("0x3f")](t.model.document[zx("0x19")]),i=s[zx("0x51")](r),x=r[0][zx("0x47")]("table"),a=x[zx("0x45")](zx("0x2"))||0,c=o&&null!==o[zx("0x1e")]?o[zx("0x1e")]:!t[zx("0x1c")][zx("0x52")]("setTableColumnHeader")[zx("0x38")];let l;const d=x[zx("0xe")](0),u=c?i[zx("0x54")]:i[zx("0x4b")],g=s[zx("0x43")](x,{startRow:0,column:u,includeAllSlots:!1}),m=Array[zx("0x26")](g)[0][zx("0x4d")];if(c){const e=d.getChild(a);if(m[zx("0x1")](e))return;l=t[zx("0x3")][zx("0x4f")](t[zx("0x3")][zx("0x41")](e),t.model[zx("0x8")](m))}else{const e=d[zx("0xe")](a-1);if(!e)return;l=t[zx("0x3")].createRange(t[zx("0x3")][zx("0x41")](m),t[zx("0x3")][zx("0x8")](e))}t[zx("0x3")][zx("0xb")]((()=>{n.markBlockFormat(l,{commandName:zx("0xd"),commandParams:[{forceValue:c}]},[],zx("0xd"))}))})),t.editing[zx("0x37")].on(zx("0x29"),r(),{priority:"highest"}),t[zx("0x46")][zx("0x37")].on(zx("0x29"),((t,e,n)=>{n[zx("0x4")][zx("0x9")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:"highest"}),t[zx("0x4e")][zx("0x37")].on(zx("0x2f"),((t,e,o)=>{const{type:s,id:r}=n[zx("0x31")](e[zx("0x3a")]),i=n[zx("0x16")](r);if(!i[zx("0x46")]||zx("0xd")!=i[zx("0x46")][zx("0x35")])return;const x=o[zx("0x33")].markerNameToElements(e[zx("0x3a")]);if(x)for(const t of x)o[zx("0x2d")][zx("0x14")](zx("0x24")+s,t),o[zx("0x2d")].removeClass(zx("0x30"),t),o[zx("0x2d")].removeAttribute(zx("0x1b"),t),o[zx("0x33")][zx("0x15")](t,e.markerName)}),{priority:zx("0x39")}),n[zx("0x22")][zx("0x11")]((t=>{const{data:n}=t;if(n){if("setTableRowHeader"==n.commandName){const t=n[zx("0x25")][0][zx("0x1e")];return o(Yo(e,zx(t?"0x44":"0x21")))}if(zx("0xd")==n[zx("0x35")]){const t=n[zx("0x25")][0].forceValue;return o(Yo(e,t?zx("0x2e"):"FORMAT_REGULAR_COLUMN"))}}function o(t){return{type:zx("0x0"),content:Yo(e,zx("0x3c"),t)}}}));const i=s[zx("0x4c")]();n[zx("0x32")][zx("0x17")](zx("0x50"),zx("0x36"),"accept",i),n[zx("0x32")][zx("0x17")](zx("0x50"),zx("0xd"),zx("0x12"),i)}}const Vx=["columns","from","insertionRanges","createRangeIn","afterInit","getMarkers","removeMarker","element","column","getChangedMarkers","markerAttributes","locale","keys","markMultiRangeDeletion","model","suggestion-td","getItems","getAllAdjacentSuggestions","getRows","tableCellSuggestion","tablePasteRow","Users","dataDowncast","ck-suggestion-marker","conversion","markMultiRangeBlockFormat","tablePaste","removeMarkers","getSelectionAffectedTableCells","findAncestor","subType","forceDefaultExecution","options","register","find","cell","tableCellBorderWidth","getRange","markMultiRangeInsertion","paragraph","tableCellVerticalAlignment","nodeAfter","isEqual","markerName","for","last","getAttributes","isEmpty","createTableWalker","getShiftedBy","batch","elementToElement","map","createElement","cells","getChanges","insertColumns","markerToHighlight","author","$graveyard","differ","table","redo","_descriptionFactory","deletionRanges","trackChanges","stop","suggestion","editing","getSuggestions","oldRange","value","previousSibling","tablePasteColumn","TableClipboard","end","name","commands","includes","add","discard","join","remove","filter","rows","_tablePostFixingSubtypes","fill","root","plugins","low","getChild","showSuggestionHighlights","setAttribute","isInContent","markers","get","_suggestionFactory","move","rowInsertionRanges","_getCoordsForCells","length","push","removeRows","accept","view","TableUtils","getRowIndexes","insertion","start","wrap","document","newRange","startsWith","formatBlock","listenTo","ck-suggestion-marker-insertion","tableCellBackgroundColor","tableCell","fromEntries","tablePasteChainId","tableCellBorderStyle","rowInsertionIndexes","insertRows","unwrap","ck-suggestion-marker--active","containsRange","selection","attributes","registerPostFixer","change","type","deletion","createRange","suggestionUnloaded","insert","registerCustomCallback","getColumns","getSuggestion","tableCellPadding","suggestion:formatBlock:tablePasteCell","_splitMarkerName","columnInsertionRanges","getColumnIndexes","tablePasteCell","getTableIfOnlyTableInContent","first","endColumn","clipboardOutput","columnInsertionIndexes","set","getContainedElement","insertContent","rootName","*Replace table cells*","high","createRangeOn","has","getChildren"];var Kx,qx;Kx=Vx,qx=248,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]},$x=[Xx("0x68"),"tableCellBorderColor",Xx("0x1e"),"tableCellHorizontalAlignment",Xx("0x6c"),Xx("0x1a"),Xx("0x30")],Jx=Object[Xx("0x1c")]($x.map((t=>[t,null])));class Qx extends t.Plugin{static get requires(){return[Mx]}[Xx("0x48")](){const t=this.editor;if(!t[Xx("0x9c")][Xx("0x42")](Xx("0x8e")))return;const n=t[Xx("0x9c")].get("TrackChangesEditing"),o=t.plugins[Xx("0x5")](Xx("0xf")),s=t[Xx("0x9c")][Xx("0x5")](Mx),r=t[Xx("0x9c")][Xx("0x5")](Xx("0x8e"));s[Xx("0x99")].push("tablePasteRow",Xx("0x8d")),t[Xx("0x52")].schema[Xx("0x65")](Xx("0x57"),{allowIn:Xx("0x1b"),allowContentOf:Xx("0x1b"),isLimit:!0}),t.conversion[Xx("0x77")]({model:Xx("0x57"),view:Xx("0x53")});let i=null;t[Xx("0x52")].on(Xx("0x3d"),((s,x)=>{const[a,c]=x,l=x[x[Xx("0xa")]-1];l&&l[Xx("0x63")]||n._isForcedDefaultExecutionBlock||this.editor.commands[Xx("0x5")](Xx("0x85"))[Xx("0x8b")]&&function(t,e,n,o,s){if(e&&!e.is("documentSelection"))return!1;const r=s[Xx("0x36")](t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o[Xx("0x60")](n.document[Xx("0x24")]);if(!i.length)return!1;const x=i[0][Xx("0x61")]("table"),a=o[Xx("0x10")](i),c=o[Xx("0x34")](i),l={startRow:a[Xx("0x37")],endRow:a[Xx("0x71")],startColumn:c[Xx("0x37")],endColumn:c[Xx("0x71")]};return 1==i[Xx("0xa")]&&(l.endRow+=o[Xx("0x56")](r)-1,l[Xx("0x38")]+=o[Xx("0x2e")](r)-1),Yx(x,l,o)}(a,c,t[Xx("0x52")],o,r)&&(s[Xx("0x86")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Xx("0x52")][Xx("0x27")]((()=>{t[Xx("0x52")][Xx("0x3d")](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("0xa")]&&n[Xx("0x6a")](s,Xx("0x58"),{tablePasteChainId:o}),r[Xx("0xa")]&&n[Xx("0x6a")](r,Xx("0x8d"),{tablePasteChainId:o}),a[Xx("0xa")]&&n[Xx("0x6a")](a,Xx("0x5e"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Xx("0xa")]&&n[Xx("0x51")](c,Xx("0x5e"),{tablePasteChainId:o,skipNestingCheck:!0});const d=n[Xx("0x5d")](l[Xx("0x78")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Xx("0x35"),{tablePasteChainId:o});if(d){const e=d.getMarkers(),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[Xx("0x52")][Xx("0x41")](o),i=e[Xx("0x66")]((t=>t[Xx("0x69")]()[Xx("0x6e")](r)));i&&n[Xx("0xb")]([i[Xx("0x90")],s])}n[Xx("0xa")]&&d[Xx("0x2")]("markerAttributes",Object[Xx("0x1c")](n))}i=null})))}),{priority:e.priorities[Xx("0x40")]+10}),t[Xx("0x9c")][Xx("0x5")](Xx("0x8e")).on("_replaceTableSlotCell",((t,e)=>{const[n,o,,s]=e;if(!i)return;t[Xx("0x86")]();const r=n[Xx("0x67")],x=o,a=Zx(r),c=Zx(x);t.return=r;let l=null,d=null;if(c||a)if(a&&!c){s.remove(r[Xx("0x0")](0));for(const t of Array.from(x[Xx("0x43")]()))s[Xx("0x2c")](t,r,Xx("0x8f"));const t=i[Xx("0x1f")][Xx("0x92")](n.row),e=i.columnInsertionIndexes[Xx("0x92")](n[Xx("0x4c")]);t||e||(l=s.createRangeIn(r))}else c&&!a&&(d=s[Xx("0x47")](r));else{const t=s[Xx("0x79")]("tableCellSuggestion"),e=s.createElement(Xx("0x57"));s[Xx("0x13")](s[Xx("0x47")](r),e),s[Xx("0x2c")](t,r,0);for(const e of Array.from(x.getChildren()))s.insert(e,t,"end");l=s[Xx("0x41")](t),d=s[Xx("0x41")](e)}const u=Array[Xx("0x45")](x[Xx("0x72")]())[Xx("0x97")]((([t])=>$x[Xx("0x92")](t)));i[Xx("0x7a")][Xx("0xb")]({element:r,attributes:u[Xx("0xa")]?Object[Xx("0x1c")](u):null}),l&&i[Xx("0x46")][Xx("0xb")](l),d&&i[Xx("0x84")].push(d)}),{priority:Xx("0x40")}),o.on(Xx("0x7c"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x44")]||1;i[Xx("0x3a")]=new Array(a).fill(x)[Xx("0x78")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x74")](s,{startColumn:x,endColumn:x+a-1}))i[Xx("0x33")][Xx("0xb")](t[Xx("0x52")].createRangeOn(e))}),{priority:"low"}),o.on(Xx("0x20"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x98")]||1;i[Xx("0x1f")]=new Array(a)[Xx("0x9a")](x)[Xx("0x78")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x74")](s,{startRow:x,endRow:x+a-1}))i[Xx("0x8")][Xx("0xb")](t[Xx("0x52")][Xx("0x41")](e))}),{priority:Xx("0x9d")}),n[Xx("0x83")].registerDescriptionCallback((e=>{if(e.subType&&e[Xx("0x62")][Xx("0x16")](Xx("0x5e")))return e.previous?{}:{type:Xx("0x11"),content:Yo(t[Xx("0x4f")],Xx("0x3f"))}}));const x=()=>{};for(const t of[Xx("0x5e"),"tablePasteColumn",Xx("0x58"),Xx("0x35")])n._suggestionFactory.registerCustomCallback(Xx("0x11"),t,Xx("0x95"),x),n[Xx("0x6")][Xx("0x2d")](Xx("0x29"),t,Xx("0x95"),x);n[Xx("0x6")][Xx("0x2d")](Xx("0x17"),Xx("0x35"),"discard",x),n[Xx("0x6")][Xx("0x2d")](Xx("0x17"),Xx("0x35"),Xx("0xd"),((e,n,o)=>{const s=e[Xx("0x78")]((t=>t[Xx("0x3c")]()))[Xx("0x97")]((t=>t)),r=new Map(s[Xx("0x78")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Xx("0x7a")])e&&r[Xx("0x3b")](t,e);else if(o&&o[Xx("0x4e")])for(const[e,n]of Object.entries(o[Xx("0x4e")])){const o=t[Xx("0x52")][Xx("0x4")][Xx("0x5")](e),s=o?o[Xx("0x69")]()[Xx("0x3c")]():null;s&&r[Xx("0x3b")](s,n)}t[Xx("0x52")].change((t=>{for(const[e,n]of r)t.setAttributes({...Jx,...n},e)}))}));const a=(e,o)=>{n[Xx("0x6")].registerCustomCallback(e,Xx("0x5e"),o,((s,r,i)=>{t[Xx("0x52")][Xx("0x27")]((t=>{const x=[];for(const t of s){const e=t[Xx("0x12")][Xx("0x6d")];e.is(Xx("0x4b"),Xx("0x57"))&&x.push(e)}n[Xx("0x6")].getSuggestionCallback(e,null,o)(s,r,i);for(const e of x)Xx("0x7f")!=e[Xx("0x9b")][Xx("0x3e")]&&t[Xx("0x21")](e)}))}))};a(Xx("0x11"),Xx("0xd")),a(Xx("0x11"),Xx("0x94")),a(Xx("0x29"),Xx("0xd")),a(Xx("0x29"),Xx("0x94")),n[Xx("0x6")][Xx("0x2d")]("insertion",Xx("0x58"),Xx("0x94"),(t=>{const e=t[Xx("0x78")]((t=>t[Xx("0x3c")]())),n=e[0][Xx("0x61")](Xx("0x81")),{minRow:r,maxRow:i}=s._getCoordsForCells(e);o[Xx("0xc")](n,{at:r,rows:i-r+1})})),n[Xx("0x6")][Xx("0x2d")](Xx("0x11"),Xx("0x8d"),Xx("0x94"),(t=>{const e=t[Xx("0x78")]((t=>t[Xx("0x3c")]())),n=e[0][Xx("0x61")](Xx("0x81")),{minColumn:r,maxColumn:i}=s[Xx("0x9")](e);o.removeColumns(n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Xx("0x62")]||!e.subType.startsWith(Xx("0x5e")))return;const o=e[Xx("0x25")].tablePasteChainId,s=n[Xx("0x89")]()[Xx("0x97")]((t=>t.isInContent&&t[Xx("0x25")]&&t[Xx("0x25")][Xx("0x1d")]==o));s.length&&e[Xx("0x55")]()[Xx("0xa")]!=s.length&&s.reduce(((t,e)=>(t.next=e,e.previous=t,e)))};function l(t,e=!0){const{id:o}=n._splitMarkerName(t[Xx("0x6f")]),s=[Xx("0x5b"),Xx("0x19")],r=n.activeMarkers[Xx("0x92")](t.markerName);return r&&s.push(Xx("0x22")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:"high"}),n.on(Xx("0x2b"),c,{priority:"high"}),t.model[Xx("0x14")].registerPostFixer((()=>{let e=!1;const o=Array.from(t[Xx("0x52")][Xx("0x14")][Xx("0x80")][Xx("0x4d")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Xx("0x32")](s);if(Xx("0x87")!=o||"deletion"!=i||r[Xx("0x8a")])continue;if(!n.hasSuggestion(x))continue;const a=n[Xx("0x2f")](x).getRanges(),c=t[Xx("0x9c")][Xx("0x5")](Xx("0x59")).me;for(const t of n[Xx("0x89")]())if(t[Xx("0x3")]&&t[Xx("0x7e")]==c&&Xx("0x17")==t[Xx("0x28")]&&Xx("0x35")==t[Xx("0x62")]&&t.getRanges().every((t=>a.some((e=>e[Xx("0x23")](t,!0))))))for(const n of t[Xx("0x55")]())n[Xx("0x3")]&&(n.discard(),e=!0)}return e})),t[Xx("0x52")].document[Xx("0x26")]((e=>{const o=t[Xx("0x91")][Xx("0x5")](Xx("0x82"));if(!o||!o._createdBatches.has(e[Xx("0x76")]))return!1;let s=!1;const r=t[Xx("0x9c")].get("Users").me,i=t[Xx("0x52")][Xx("0x14")][Xx("0x80")][Xx("0x7b")](),x=Array[Xx("0x45")](t[Xx("0x52")][Xx("0x14")].differ[Xx("0x4d")]())[Xx("0x97")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Xx("0x32")](t);return Xx("0x87")==o&&Xx("0x5e")==s&&i==r.id&&!e.oldRange}));for(const t of i){if(Xx("0x2c")!=t[Xx("0x28")]||Xx("0x57")!=t[Xx("0x90")]||1!=t.length)continue;const n=e[Xx("0x2a")](t.position,t.position[Xx("0x75")](1));if(!x[Xx("0x66")]((({data:t})=>t[Xx("0x15")][Xx("0x6e")](n))))for(const{name:t,data:o}of x)if(n.containsRange(o.newRange)){e.updateMarker(t,{range:n}),s=!0;break}}return s})),t[Xx("0x52")].document[Xx("0x26")]((e=>{let o=!1;const s=t[Xx("0x9c")].get(Xx("0x59")).me,r=n[Xx("0x89")]()[Xx("0x97")]((t=>t[Xx("0x3")]&&t.author==s)),i=new Set,x=new Set;for(const t of r)if(Xx("0x5e")==t[Xx("0x62")])for(const e of t[Xx("0x49")]()){const n=e[Xx("0x69")]()[Xx("0x3c")]();if(n)if(n.is(Xx("0x4b"),Xx("0x57"))&&Zx(n)){t[Xx("0x4a")](e[Xx("0x90")]),i[Xx("0x93")](n),o=!0;const s=n.nextSibling,r=n[Xx("0x8c")],a=s&&s.is(Xx("0x4b"),Xx("0x57")),c=r&&r.is("element","tableCellSuggestion");a&&!i[Xx("0x42")](s)&&x.add(s),c&&!i[Xx("0x42")](r)&&x[Xx("0x93")](r)}else n.is(Xx("0x4b"),Xx("0x6b"))&&n[Xx("0x73")]&&(t.removeMarker(e[Xx("0x90")]),o=!0)}else if("tablePasteCell"==t[Xx("0x62")]){if(!t.attributes||!t[Xx("0x25")][Xx("0x1d")])continue;const e=t.attributes[Xx("0x4e")];if(e&&Object[Xx("0x50")](e)[Xx("0xa")])continue;const n=t[Xx("0x25")][Xx("0x1d")];let s=!0,i=!0;for(const e of r)if(e[Xx("0x62")]&&e.subType.startsWith(Xx("0x5e"))){if(!e[Xx("0x25")][Xx("0x1d")]){i=!1;break}if(e.id!=t.id&&e[Xx("0x25")][Xx("0x1d")]==n){s=!1;break}}i&&s&&(t[Xx("0x5f")](),o=!0)}for(const t of i)e.remove(t);for(const t of x)e[Xx("0x21")](t);return o})),t[Xx("0x5c")][Xx("0x70")]("editingDowncast")[Xx("0x7d")]({model:Xx("0x31"),view:(t,e)=>l(t),converterPriority:Xx("0x40")}),t[Xx("0x5c")].for(Xx("0x5a"))[Xx("0x7d")]({model:Xx("0x31"),view:(t,e)=>e[Xx("0x64")][Xx("0x1")]?l(t,!1):null,converterPriority:Xx("0x40")});const d=t[Xx("0x88")][Xx("0xe")];this[Xx("0x18")](d[Xx("0x14")],Xx("0x39"),((t,e)=>{const n=[];for(const t of d[Xx("0x47")](e.content)[Xx("0x54")]())t.is(Xx("0x4b"),Xx("0x53"))&&n[Xx("0xb")](t);d[Xx("0x27")]((t=>{for(const e of n)t[Xx("0x7")](t.createRangeIn(e),t.createPositionBefore(e)),t[Xx("0x96")](e)}))}))}}function Zx(t){if(t[Xx("0x73")])return!0;const e=t[Xx("0x0")](0);return e.is(Xx("0x4b"),"paragraph")&&e.isEmpty}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Xx("0x74")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["formatBlock","registerDescriptionCallback","has","handleSuggestionDescription","get","columnWidths","table","resizeColumnWidths","TrackChangesEditing","data","getSelectedElement","getTableColumnsWidths","_suggestionFactory","bind","accept","subType","commandParams","getColumnGroupElement","getAttribute","discard","locale","_descriptionFactory","plugins","document","enableCommand","resizeTable","editor","model","handleResizeTableWidthCommand","resizeTableWidth","tableWidth","selection","Users","TableColumnResizeEditing","getSuggestions","*Format:* resize table","registerCustomCallback"];var ea,na;ea=ta,na=156,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{afterInit(){if(!this[oa("0x12")][oa("0xe")][oa("0x1f")](oa("0x19")))return;const t=this[oa("0x12")].plugins[oa("0x21")](oa("0x0"));t[oa("0x10")](oa("0x15"),this[oa("0x14")][oa("0x5")](this)),t[oa("0x10")](oa("0x24"),this[oa("0x14")][oa("0x5")](this)),t._suggestionFactory[oa("0x1c")](oa("0x1d"),oa("0x11"),"accept",t[oa("0x4")].getSuggestionCallback(oa("0x1d"),null,"discard")),t[oa("0x4")][oa("0x1c")](oa("0x1d"),oa("0x11"),"discard",t[oa("0x4")].getSuggestionCallback(oa("0x1d"),null,oa("0x6"))),t[oa("0xd")][oa("0x1e")](this.handleSuggestionDescription[oa("0x5")](this))}[oa("0x14")](t,e){const n=this[oa("0x12")][oa("0xe")].get(oa("0x0")),o=this[oa("0x12")][oa("0xe")].get(oa("0x19")),s=e[oa("0x23")]||this.editor[oa("0x13")][oa("0xf")][oa("0x17")][oa("0x2")]();this.editor[oa("0x13")].change((()=>{const r=o[oa("0x9")](s);let i=r?o[oa("0x3")](r):null,x=s[oa("0xa")](oa("0x16"))||null;const a=e[oa("0x16")]||x,c=e[oa("0x22")]||i,l=this[oa("0x12")][oa("0xe")][oa("0x21")](oa("0x18")).me;for(const t of n[oa("0x1a")]()){const e=t.getContainedElement();if(oa("0x11")===t[oa("0x7")]&&e===s){t.author!==l&&t[oa("0xb")]();const e=t[oa("0x1")][oa("0x8")];x=e[0][oa("0x16")],i=e[0][oa("0x22")];break}}t({table:s,tableWidth:a,columnWidths:c}),n.markBlockFormat(s,{commandName:oa("0x15"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0x11")},[],oa("0x11"))}))}[oa("0x20")](t){const{data:e}=t;if(e&&"resizeTable"===e.formatGroupId){const t=oa("0x1b");return{type:"format",content:Yo(this.editor[oa("0xc")],t)}}}}const ra=["TrackChangesEditing","has","Template"];var ia,xa;ia=ra,xa=315,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{afterInit(){const t=this.editor;t.plugins[aa("0x1")](aa("0x2"))&&t.plugins.get(aa("0x0")).enableCommand("insertTemplate")}}const la=["plugins","get","insertTableOfContents","enableCommand","TrackChangesEditing","_descriptionFactory","tableOfContents","commands","afterInit","editor","registerElementLabel"];var da,ua;da=la,ua=185,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0xa")](){const t=this[ga("0x0")];if(!t[ga("0x9")].get(ga("0x4")))return;t[ga("0x2")][ga("0x3")]("TrackChangesEditing")[ga("0x5")](ga("0x4"));const e=t[ga("0x2")].get(ga("0x6")),n=t.locale;e[ga("0x7")][ga("0x1")](ga("0x8"),(t=>Yo(n,"ELEMENT_TABLE_OF_CONTENTS",t)))}}const fa=["schema","differ","element","end","from","TrackChangesEditing","removeMarker","model","_descriptionFactory","editor","ELEMENT_TITLE","suggestion","start","forward","afterInit","locale","get","Title","nodeBefore","isTouching","getChangedMarkers","newRange","getNearestSelectionRange","isEqual","plugins","document","updateMarker","title-content"];var ha,pa;ha=fa,pa=206,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[ba("0x4")](){const t=this[ba("0x1b")];if(!t.plugins.has(ba("0x7")))return;const e=t[ba("0xe")][ba("0x6")](ba("0x17"));e[ba("0x1a")].registerElementLabel(ba("0x11"),(()=>Yo(t[ba("0x5")],ba("0x0")))),t.model[ba("0xf")].registerPostFixer((n=>{let o=!1;const s=Array[ba("0x16")](t[ba("0x19")][ba("0xf")][ba("0x13")][ba("0xa")]());for(const{name:r,data:i}of s){const{group:s}=e._splitMarkerName(r);if(ba("0x1")!==s||!i[ba("0xb")])continue;const x=i[ba("0xb")],a=x.end[ba("0x8")];if(!a||!a.is(ba("0x14"),"title-content"))continue;if(!x[ba("0x2")][ba("0x9")](x[ba("0x15")]))continue;const c=t[ba("0x19")][ba("0x12")][ba("0xc")](x[ba("0x15")],ba("0x3"));if(c&&c.isCollapsed){const t=n.createRange(x[ba("0x2")],c[ba("0x2")]);t[ba("0xd")](x)||(n[ba("0x10")](r,{range:t}),o=!0)}o||(n[ba("0x18")](r),o=!0)}return o}))}}const _a=["redo","TrackChangesEditing","undo","get","enableCommand","plugins","editor","has","UndoEditing"];var Ta,Ca;Ta=_a,Ca=330,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{afterInit(){const t=this[ya("0x0")],e=t.plugins[ya("0x6")](ya("0x4"));t[ya("0x8")][ya("0x1")](ya("0x2"))&&(e[ya("0x7")](ya("0x5")),e[ya("0x7")](ya("0x3")))}}const Aa=["TableCaptionEditing","plugins","has","toggleTableCaption","enableCommand","afterInit","get","requires","editor"];var va,Ra;va=Aa,Ra=107,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Sa=function(t,e){return Aa[t-=0]};class Ia extends t.Plugin{static get[Sa("0x8")](){return[Mx]}[Sa("0x6")](){const t=this[Sa("0x0")];t[Sa("0x2")][Sa("0x3")](Sa("0x1"))&&t[Sa("0x2")][Sa("0x7")]("TrackChangesEditing")[Sa("0x5")](Sa("0x4"))}}const La=["isFirstBlockOfListItem","config","handleDescriptions","toUpperCase","*Change to:* %0","editor","styles","listStart","DocumentListUtils","DocumentListPropertiesEditing","model","list.properties","get","format","_LIST_","ELEMENT_","markMultiRangeBlockFormat","length","has","_getSuggestionBlocks","startIndex","DocumentListPropertiesUtils","bind","_getTranslationKeyForListStyle","push","plugins","_descriptionFactory","filter","TrackChangesEditing","getSelectedBlocks","replace","_getSuggestionBlocksForListStyle","listType","numbered","handleListReversedCommand","enableCommand","locale","from","afterInit","getAttribute","reversed","handleListStartCommand","registerDescriptionCallback","selection","isListItemBlock","getListTypeFromListStyleType","expandListBlocksToCompleteList","change","listReversed","*Format:* set order to reversed","*Format:* set start index to %0","listStyle","handleListStyleCommand","commandParams","type"];var Na,wa;Na=La,wa=339,function(t){for(;--t;)Na.push(Na.shift())}(++wa);const Ma=function(t,e){return La[t-=0]};class Oa extends t.Plugin{[Ma("0x1d")](){if(!this[Ma("0x33")][Ma("0x10")][Ma("0x9")](Ma("0x0")))return;const t=this.editor[Ma("0x2f")][Ma("0x3")](Ma("0x2")),e=this[Ma("0x33")][Ma("0x10")][Ma("0x3")](Ma("0x13"));t[Ma("0x34")]&&e.enableCommand(Ma("0x2a"),this[Ma("0x2b")].bind(this)),t[Ma("0x1f")]&&e[Ma("0x1a")](Ma("0x27"),this[Ma("0x19")].bind(this)),t[Ma("0xb")]&&e.enableCommand(Ma("0x35"),this[Ma("0x20")][Ma("0xd")](this)),e[Ma("0x11")][Ma("0x21")](this[Ma("0x30")][Ma("0xd")](this))}[Ma("0x2b")](t,e={}){const n=this[Ma("0x33")][Ma("0x10")][Ma("0x3")](Ma("0x13")),o=this[Ma("0x16")]();this.editor[Ma("0x1")][Ma("0x26")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:Ma("0x2a"),commandParams:[{type:e[Ma("0x2d")]}],formatGroupId:Ma("0x2a")})}))}[Ma("0x19")](t,e={}){const n=this[Ma("0x33")][Ma("0x10")][Ma("0x3")](Ma("0x13")),o=this.editor[Ma("0x10")][Ma("0x3")]("DocumentListUtils"),s=this._getSuggestionBlocks((t=>o[Ma("0x23")](t)&&Ma("0x18")===t[Ma("0x1e")](Ma("0x17"))));null!==s&&this.editor[Ma("0x1")][Ma("0x26")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:Ma("0x27"),commandParams:[{reversed:e[Ma("0x1f")]}],formatGroupId:Ma("0x27")})}))}[Ma("0x20")](t,e={}){const n=this[Ma("0x33")][Ma("0x10")][Ma("0x3")](Ma("0x13")),o=this[Ma("0x33")][Ma("0x10")][Ma("0x3")]("DocumentListUtils"),s=this[Ma("0xa")]((t=>o[Ma("0x23")](t)&&Ma("0x18")===t.getAttribute(Ma("0x17"))));null!==s&&this[Ma("0x33")][Ma("0x1")][Ma("0x26")]((()=>{n[Ma("0x7")](s,{commandName:"listStart",commandParams:[{startIndex:e[Ma("0xb")]}],formatGroupId:Ma("0x35")})}))}[Ma("0x30")](t){const e=this[Ma("0x33")][Ma("0x1b")],{data:n}=t;if(!n)return;let o,s;switch(n.commandName){case Ma("0x2a"):o=Ma("0x32"),s={type:Ma("0x4"),content:Yo(e,o,Yo(e,this[Ma("0xe")](n[Ma("0x2c")][0][Ma("0x2d")])))};break;case"listReversed":o=n[Ma("0x2c")][0][Ma("0x1f")]?Ma("0x28"):"*Format:* set order to regular",s={type:Ma("0x4"),content:Yo(e,o)};break;case Ma("0x35"):o=Ma("0x29"),s={type:Ma("0x4"),content:Yo(e,o,n[Ma("0x2c")][0][Ma("0xb")])}}return s}[Ma("0x16")](){const t=this[Ma("0x33")].plugins[Ma("0x3")](Ma("0x36"));let e=Array[Ma("0x1c")](this[Ma("0x33")][Ma("0x1")].document[Ma("0x22")][Ma("0x14")]());return e[Ma("0xf")](...t[Ma("0x25")](e)),e=[...new Set(e)],e}[Ma("0xa")](t){const e=this[Ma("0x33")][Ma("0x10")][Ma("0x3")](Ma("0x36"));let n=Array[Ma("0x1c")](this[Ma("0x33")].model.document.selection[Ma("0x14")]())[Ma("0x12")](t);if(!n[Ma("0x8")])return null;n=e[Ma("0x25")](n);const o=[];for(const t of n)e[Ma("0x2e")](t)&&o[Ma("0xf")](t);return o}[Ma("0xe")](t){return Ma("0x6")+this[Ma("0x33")].plugins[Ma("0x3")](Ma("0xc"))[Ma("0x24")](t)[Ma("0x31")]()+Ma("0x5")+t[Ma("0x31")]()[Ma("0x15")](/-/g,"_")}}const Fa=["TableCellPropertiesEditing","getAttribute","table","getSelectionAffectedTableCells","markBlockFormat","accept","has","tableBorderWidth","tableCellBorderWidth","afterInit","commandParams","getSuggestions","*Format:* change table cell properties","selection","*Format:* change table properties","enqueueChange","_descriptionFactory","model","_handlePropertyChange","pluginName","tableCellWidth","locale","_suggestionFactory","formatBlock","TableUtils","tableCellPadding","_getSuggestion","registerCustomCallback","format","tableProperties","document","removeAttribute","tableHeight","data","tableCellBorderColor","get","tableCellProperties","handleDiscardAction","nodeAfter","editor","registerDescriptionCallback","getFirstPosition","tableBorderColor","enableCommand","TrackChangesEditing","tableBorderStyle","handleSuggestionDescription","tableCellBorderStyle","plugins","batch","discard","change","tableBackgroundColor","join","setAttribute","getContainedElement"];var Pa,Da;Pa=Fa,Da=284,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("0x19")]=[Ba("0x26"),Ba("0x29"),Ba("0x3"),"tableAlignment","tableWidth",Ba("0x1c"),Ba("0x30")],this.tableCellProperties=[Ba("0x1e"),Ba("0x2b"),Ba("0x4"),Ba("0x15"),Ba("0x10"),"tableCellHeight","tableCellBackgroundColor","tableCellHorizontalAlignment","tableCellVerticalAlignment"]}static get[Ba("0xf")](){return"TrackChangesTableProperties"}[Ba("0x5")](){const t=this[Ba("0x23")][Ba("0x2c")][Ba("0x1f")](Ba("0x28"));if(this.editor[Ba("0x2c")][Ba("0x2")]("TablePropertiesEditing")){for(const e of this[Ba("0x19")])t[Ba("0x27")](e,((t,n)=>{const o=this[Ba("0x23")][Ba("0xd")][Ba("0x1a")][Ba("0x9")][Ba("0x25")]().findAncestor(Ba("0x36"));this[Ba("0xe")](e,[o],this[Ba("0x19")],Ba("0x19"),t,n)}));t[Ba("0x12")][Ba("0x17")](Ba("0x13"),Ba("0x19"),Ba("0x1"),t[Ba("0x12")].getSuggestionCallback(Ba("0x13"),null,Ba("0x2e"))),t[Ba("0x12")][Ba("0x17")]("formatBlock",Ba("0x19"),Ba("0x2e"),((t,e)=>this.handleDiscardAction(this[Ba("0x19")],t,e))),t[Ba("0x12")].registerCustomCallback(Ba("0x13"),Ba("0x19"),Ba("0x31"),(()=>!1))}if(this.editor[Ba("0x2c")].has(Ba("0x34"))){for(const e of this[Ba("0x20")])t[Ba("0x27")](e,((t,n)=>{const o=this.editor[Ba("0x2c")][Ba("0x1f")](Ba("0x14"))[Ba("0x37")](this[Ba("0x23")][Ba("0xd")][Ba("0x1a")][Ba("0x9")]);this[Ba("0xe")](e,o,this[Ba("0x20")],Ba("0x20"),t,n)}));t[Ba("0x12")].registerCustomCallback(Ba("0x13"),Ba("0x20"),"accept",t[Ba("0x12")].getSuggestionCallback(Ba("0x13"),null,Ba("0x2e"))),t[Ba("0x12")][Ba("0x17")](Ba("0x13"),"tableCellProperties",Ba("0x2e"),((t,e)=>this[Ba("0x21")](this.tableCellProperties,t,e))),t[Ba("0x12")].registerCustomCallback(Ba("0x13"),"tableCellProperties","join",(()=>!1))}t[Ba("0xc")][Ba("0x24")]((t=>this[Ba("0x2a")](t)))}_handlePropertyChange(t,e,n,o,s,r){const i=this.editor.plugins[Ba("0x1f")](Ba("0x28"));this[Ba("0x23")][Ba("0xd")][Ba("0xb")](r[Ba("0x2d")],(()=>{for(const t of e)if(this[Ba("0x16")](t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0x35")](o);void 0!==n&&(e[o]=n)}s(r),i[Ba("0x0")](t,{commandParams:[e]},[],o)}}))}[Ba("0x21")](t,e,n){const o=e[0].start[Ba("0x22")],s=n[Ba("0x6")][0];this[Ba("0x23")][Ba("0xd")][Ba("0x2f")]((e=>{for(const n of t)void 0!==s[n]?e[Ba("0x32")](n,s[n],o):e[Ba("0x1b")](n,o)}))}handleSuggestionDescription(t){if(t[Ba("0x1d")])switch(t.subType){case Ba("0x19"):return{type:Ba("0x18"),content:Yo(this[Ba("0x23")][Ba("0x11")],Ba("0xa"))};case Ba("0x20"):return{type:Ba("0x18"),content:Yo(this.editor[Ba("0x11")],Ba("0x8"))}}}_getSuggestion(t,e){const n=this[Ba("0x23")][Ba("0x2c")][Ba("0x1f")]("TrackChangesEditing");for(const o of n[Ba("0x7")]({skipNotAttached:!0})){const n=o[Ba("0x33")]();if(o.subType===e&&n===t)return o}return null}}const Ua=["formatGroupId","isInsideObject","@external","formatBlock","TrackChangesEditing","updateMarker","oldRange","ck-suggestion-marker--active","containsPosition","after","error-saving-suggestion-data-suggestion-discarded","formatInline","getRanges","showSuggestionHighlights","isBlock","some","data-suggestion","differ","mapper","howMany","addUser","PendingActions","nodeBefore","has","normal","getNearestSelectionRange","editor","lowest","_trackFormatChanges","createRange","_isForcedDefaultExecutionBlock","deleteContent","toViewElement","_handleNewSuggestionMarker","fromCharCode","_registerDefaultCallbacks","newRange","bindElementToMarker","insertion:join","isAtEnd","change:data","isOwn","discardAllSuggestions","deletion","isInContent","ck-suggestion-marker-","getChangedMarkers","getFirstRange","isRemovable","size","moveTargetPosition","removeAttribute","schema","set","markerName","includes","containsRangeInObject","trackChanges","_refreshSuggestionsChain","isEqual","split","config","setSelection","discardSuggestion","skipNestingCheck","formatBlock:chain","_customCallbacks","containsRange","splitPosition","addComment","consume","Users","createSelection","suggestion","stop","position","add","_addSuggestionMarker","map","buildSuggestion","get","formatBlock:accept","consumable","_suggestions","detach","enableCommand","discardSelectedSuggestions","removeComment","multipleBlocks","getIntersection","updateSuggestion","suggestionChanged","getShiftedBy","widget","value","formatInline:chain","markerToData","requires","sort","formatBlock:join","remove","define","_commentsRepository","markDeletion","isBefore","isCollapsed","createPositionAfter","getUser","editingDowncast","$textProxy","_updateSuggestionData","getAllAdjacentSuggestions","resolve","getSuggestions","getLastMatchingPosition","forward","values","then","formatInline:","dataReady","removeClass","commands","markerToHighlight","containerElement","_editor","catch","track-changes-adapter-missing-getsuggestion","activeMarkers","registerPostFixer","markerReady","isIntersectingWithRange","before","never","_cutOutSuggestionMarker","$graveyard","hasCommentThread","_breakSuggestionMarker","suggestion:","suggestion-type","_onDiscard","isDocumentOperation","markMultiRangeDeletion","commandName","clear","type","createRangeIn","_setSuggestionRange","low","stopListening","_suggestionState","enableReadOnlyMode","_checkSuggestionCorrectness","model","external:","getSuggestionCallback","createPositionAt","refresh","locale","insertion:accept","elementEnd","rootName","getMultiRangeId","addMarker:suggestion:formatBlock","marker-count","item","track-changes-suggestion-data-mismatch","accept","conversion","execute","isTouching","_getExternalAuthor","splice","upcast","data","isLimit","join","dataToMarker","filter","_rangeIsInLocalUserInsertion","rethrowUnexpectedError","_enabledCommands","track-changes-suggestion-not-found","ck-suggestion-marker","always","track-changes-user-not-found","change","isSelectable","removeMarkers","attributes","isAfter","_getAuthorFromId","every","end","getMarkers","return","change:activeMarkers","_defaultCallbacks","track-changes-command-not-found","deletion:","markInsertion","fromRange","init","addRange","open","setAttribute","createPositionBefore","_createSuggestion","getCommentThread","isUndo","addMarker","authoredAt","elementToElement","adapter","getChanges","clone","trackChanges.trackFormatChanges","pluginName","element","reconvertMarker","next","length","notReady","isLocal","forceDefaultExecution","getCustomProperty","acceptSelectedSuggestions","_joinWithAdjacentSuggestions","deletion:chain","getDifference","commentThread","trackChanges.mergeNestedSuggestions","acceptAllSuggestions","ck-suggestion-marker-formatBlock","registerCustomCallback","removeMarker","removed","formatInline:join","author","acceptSuggestion","ready","setTo","unbindElementFromMarkerName","_joinSuggestions","root","plugins","getSuggestion","subType","document","_findSuggestions","suggestionUnloaded","insertion","unbind","previous","isNextTo","_model","_saved","_addThreadToSuggestion","addHighlight","_splitMarkerName","addSuggestion","head","range","isObject","createElement","markMultiRangeBlockFormat","hasComments","toJSON","track-changes-adapter-already-set","insertion:","name","suggestionLoaded","isMultiRange","trackChangesCommand","discard","parent","selection","for","PENDING_ACTION_SUGGESTION","delete","insertContent","fire","_setSuggestionData","_suggestionFactory","addMarkerName","insert","createdAt","getFirstMarker","hasSuggestion","multi","from","push","getAttribute","high","markBlockFormat","highest","accepted","addClass","start","_removeSuggestion","deletion:discard","addCommentThread","getItems","CommentsRepository","nodeAfter","chain","formatBlock:","elementStart","addSuggestionData","markers","_mergeNestedSuggestions","options","writer","dataDowncast","_adapter","creator"];var Ga,Ha;Ga=Ua,Ha=390,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("0x16")](){return[za("0xe3"),r.Users,t.PendingActions,cs,Cs,Rs,Ms,Bs,Ws,Js,er,Oa,xr,ur,br,yr,Lr,Pr,Gr,Kr,Qr,ni,xi,ui,pi,Ci,Ri,Oi,ji,Wi,$i,tx,ix,ux,px,yx,Sx,Mx,jx,Wx,Ia,Qx,sa,ma,ja,ca,Ea,ka]}static get[za("0x8d")](){return za("0xf4")}constructor(t){function e(t){return t[za("0x3")]((t=>String[za("0x112")](t)))[za("0x64")]("")}super(t),this[za("0x125")](za("0x34"),[]),this.on(za("0x78"),((e,n,o,s)=>{this[za("0xb3")][za("0x6e")]((()=>{for(const e of[...s,...o])this[za("0xb3")].markers[za("0x107")](e)&&t.editing[za("0x8f")](e)}))})),this._descriptionFactory=new ss(this[za("0x10a")][za("0x4d")][za("0x124")],this[za("0x10a")][za("0x52")]),this[za("0xee")]=null,this[za("0xcf")]=new Va(this[za("0x10a")]),this[za("0x8")]=new Map,this._commentsRepository=t[za("0xa9")][za("0x5")](za("0xe3")),this._enabledCommands=new Set,this[za("0xb3")]=this[za("0x10a")][za("0x4d")],this._suggestionState=new WeakMap,this[za("0x10e")]=!1,t[za("0x12d")][za("0x1a")](za("0x8c"),"default"),this[za("0x10c")]=t[za("0x12d")][za("0x5")]("trackChanges.trackFormatChanges"),t.config[za("0x1a")]("trackChanges.mergeNestedSuggestions",!0),this._mergeNestedSuggestions=t.config[za("0x5")](za("0x9b")),this[za("0xc5")]=new u(t,this[za("0x69")]),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,52,52,54])}[za("0x7e")](){const t=this[za("0x10a")];t.conversion[za("0xc9")](za("0x21"))[za("0x2f")]({model:za("0x139"),view:t=>{const{id:e,type:n}=this[za("0xb7")](t[za("0x126")]),o=[za("0x6b"),za("0x11d")+n];let s=3e3;return this[za("0x34")][za("0x127")](t[za("0x126")])&&(o[za("0xd7")]("ck-suggestion-marker--active"),s=3010),za("0x11b")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[za("0x5c")][za("0xc9")](za("0xed"))[za("0x1")]((e=>{e.on("addMarker:suggestion",((e,n,o)=>{if(!o[za("0xeb")][za("0xfd")])return;const s=n[za("0x59")];if(!s)return;const r=o[za("0x102")][za("0x110")](s);t[za("0x4d")][za("0x124")][za("0xbb")](s)&&r&&!r[za("0x95")](za("0x12"))&&r.is(za("0x30"))&&(0,x.toWidget)(r,o[za("0xec")])}),{priority:za("0xd9")})})),t[za("0x5c")][za("0xc9")](za("0xed"))[za("0x2f")]({model:za("0x139"),view:(t,e)=>{if(!e[za("0xeb")].showSuggestionHighlights)return null;const{type:n}=this[za("0xb7")](t[za("0x126")]);return{classes:["ck-suggestion-marker",za("0x11d")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[za("0x59")])return;if(o[za("0x59")].is(za("0xc8")))return void s[za("0x7")][za("0x136")](o[za("0x59")],n[za("0xc2")]);const r=s[za("0x102")][za("0x110")](o.item);if(!o[za("0x59")].is(za("0x8e"))||!t[za("0x4d")].schema[za("0xfe")](o.item)||r[za("0x95")](za("0xb6")))return;const{id:i}=this[za("0xb7")](o.markerName);s[za("0xec")].addClass([za("0x6b"),za("0x9d")],r),s[za("0xec")][za("0x81")]("data-suggestion",i,r),s[za("0x102")][za("0x115")](r,o[za("0x126")]),e&&(this[za("0x34")].includes(o[za("0x126")])?s[za("0xec")][za("0xdd")](za("0xf7"),r):s.writer[za("0x2d")](za("0xf7"),r));for(const e of t[za("0x4d")][za("0x46")](o.item)[za("0xe2")]())s[za("0x7")][za("0x136")](e,n[za("0xc2")]);s[za("0x7")].consume(o.item,n[za("0xc2")])};t[za("0x5c")][za("0xc9")](za("0xed"))[za("0x1")]((t=>{t.on(za("0x57"),((t,e,o)=>{o[za("0xeb")].showSuggestionHighlights&&n({showActiveMarkers:!1})(t,e,o)}),{priority:za("0xdb")})})),t[za("0x5c")][za("0xc9")]("dataDowncast")[za("0x15")]({model:za("0x139"),view:(t,e)=>e.options[za("0xfd")]?null:{group:"suggestion",name:t.substr(11)}}),t[za("0x5c")][za("0xc9")](za("0x61"))[za("0x88")]({view:{name:za("0x139"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n="suggestion:"+t[za("0xd8")](za("0x3f"))+":"+t[za("0xd8")]("id");return t.getAttribute(za("0x58"))&&(n+=":"+t[za("0xd8")](za("0x58"))),e[za("0xbc")]("$marker",{"data-name":n})}}),t[za("0x5c")][za("0xc9")](za("0x61"))[za("0x65")]({view:"suggestion"}),t[za("0x5c")][za("0xc9")](za("0x21"))[za("0x1")]((t=>{t.on("addMarker:suggestion:formatBlock",n(),{priority:za("0xd9")})})),t[za("0x5c")][za("0xc9")](za("0x21"))[za("0x1")]((t=>{t.on("removeMarker:suggestion:formatBlock",((t,e,n)=>{const o=n[za("0x102")].markerNameToElements(e[za("0x126")]);if(o)for(const t of o)t.getCustomProperty(za("0xb6"))||(n[za("0xec")].removeClass([za("0x6b"),za("0x9d"),"ck-suggestion-marker--active"],t),n.writer[za("0x123")](za("0x100"),t),n[za("0x102")][za("0xa6")](t,e[za("0x126")]))}),{priority:za("0xd9")})})),t[za("0x4d")][za("0xac")][za("0x35")]((e=>{let n=!1;const o=Array.from(t[za("0x4d")].document.differ[za("0x11e")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[za("0xb7")](x);if(za("0x139")!==o)continue;const d=this[za("0x8")][za("0x5")](l);if(null!=a[za("0x114")])if(za("0xfb")==c&&(n=n||Xa(a.newRange,x,e,t[za("0x4d")][za("0x124")])),a.newRange.isCollapsed||za("0x3b")==a.newRange[za("0xa8")][za("0x55")]||za("0xf3")==c&&!Ja(a.newRange)||za("0x11b")==c&&(qa(i=a.newRange)||(r=i)[za("0xde")][za("0xc7")]==r[za("0x75")][za("0x106")]&&r[za("0xde")].isAtEnd))e[za("0x9f")](x),n=!0;else{if(!d||!d[za("0x11c")])continue;s.add(d)}}var r,i;return s[za("0x121")]>0&&(n=!!this[za("0x97")](s)||n),n})),t[za("0x4d")][za("0xac")][za("0x35")]((e=>{let n=!1;for(const o of t[za("0x4d")][za("0xac")][za("0x101")][za("0x8a")]()){if("insert"!=o[za("0x45")])continue;const s=o[za("0x0")][za("0x11")](o[za("0x91")]);if(s.isAtEnd)for(const r of this[za("0x8")][za("0x29")]()){if(r[za("0xc4")]||!r.isInContent)continue;if(za("0xf3")!=r[za("0x45")])continue;const i=r.getFirstRange();if(i[za("0xde")][za("0xc7")]!=i.end[za("0xc7")]&&i[za("0x75")][za("0x12b")](o[za("0x0")])){const o=t[za("0x4d")][za("0x10d")](i[za("0xde")],s);e[za("0xf5")](r[za("0xd3")](),{range:o}),n=!0}}}return n})),t[za("0x4d")][za("0xe9")].on("update:suggestion",((t,e,n)=>{if(null==n){const{id:t}=this[za("0xb7")](e.name),n=this[za("0x8")][za("0x5")](t);n&&n[za("0xd0")](e[za("0xc2")])}})),t[za("0x4d")][za("0xac")].on(za("0x118"),(()=>{const e=Array[za("0xd6")](t[za("0x4d")][za("0xac")][za("0x101")].getChangedMarkers())[za("0x66")]((t=>za("0x139")===this[za("0xb7")](t[za("0xc2")]).group));if(0===e[za("0x91")])return;e[za("0x17")](((t,e)=>{const n=t[za("0x62")][za("0xf6")],o=e[za("0x62")][za("0xf6")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[za("0xde")][za("0x1d")](o.start)?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[za("0xb7")](t);if(null===s[za("0xf6")]){const e=this[za("0x111")](t);o[za("0x1")](e)}else{const t=this[za("0x8")][za("0x5")](e);null!==s.newRange||t.isInContent?(n[za("0x1")](t[za("0xb9")]),o[za("0x1")](t)):this[za("0xdf")](t)}}o[za("0x121")]>0&&this[za("0x12a")](o);for(const t of n)this[za("0xcd")](za("0x10"),t)})),t[za("0x4d")].on("applyOperation",((e,n)=>{const o=n[0];if(!this[za("0x8")][za("0x121")])return;if(!o[za("0x41")])return;if(o.batch[za("0x85")]||!o.batch[za("0x93")])return;let s,r;switch(o[za("0x45")]){case za("0xd1"):s=t[za("0x4d")][za("0x50")](o[za("0x0")]),r=s[za("0x11")](o[za("0x103")]);break;case za("0x12c"):s=t.model.createPositionAt(o[za("0x134")]),r=t[za("0x4d")][za("0x50")](o[za("0x122")]);break;case"move":s=t[za("0x4d")][za("0x50")](o.targetPosition),r=s[za("0x11")](o[za("0x103")]);break;default:return}const i=t.model[za("0x10d")](s,r);t[za("0x4d")][za("0x6e")]((()=>{for(const{suggestion:t,meta:e}of this[za("0xad")](i)){if(t[za("0xc4")])continue;if(za("0xfb")==t[za("0x45")])continue;const n=t[za("0x62")]&&t[za("0x62")].multipleBlocks;("formatBlock"!=t[za("0x45")]||za("0x12c")==o[za("0x45")]&&!n)&&(e[za("0x128")]||za("0xaf")==t[za("0x45")]&&e[za("0x119")]||t[za("0x11f")]().containsRange(i)&&this[za("0x3d")](t,s,r))}}))}),{priority:za("0x10b")}),t[za("0x4d")].on(za("0x10f"),((e,n)=>{const o=n[0],s=n[1];if(s&&s[za("0x94")])return;if(this[za("0x10e")])return;if(!this[za("0xc5")][za("0x13")])return;if(o.isCollapsed)return;const r=t[za("0x4d")].schema,{start:i,end:x}=o[za("0x11f")](),a=i[za("0xe4")]&&r.isLimit(i.nodeAfter)?null:r[za("0x109")](i,za("0x28")),c=x[za("0x106")]&&r.isLimit(x.nodeBefore)?null:r[za("0x109")](x,"backward"),l=t.model[za("0x10d")](a?a.start:i,c?c[za("0x75")]:x);t[za("0x4d")][za("0x6e")]((e=>{this[za("0x1c")](l);const n=t.model.schema.getNearestSelectionRange(l[za("0xde")]);o.is("documentSelection")?e[za("0x12e")](n):o[za("0xa5")](n)})),e[za("0x13a")]()}),{priority:e.priorities[za("0x108")]+10}),t[za("0x4d")].on(za("0xcc"),((e,n)=>{const o=n[n[za("0x91")]-1];o&&o[za("0x94")]||this._isForcedDefaultExecutionBlock||this.trackChangesCommand[za("0x13")]&&(t[za("0x4d")][za("0x6e")]((()=>{let o=t.model.insertContent(n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[za("0x77")]=o[za("0x8b")]();const s=o[za("0x75")][za("0x106")],r=t[za("0x4d")].schema;s&&r[za("0xfe")](s)&&!r[za("0xbb")](s)&&(o=t[za("0x4d")][za("0x10d")](o[za("0xde")],t.model[za("0x50")](s,za("0x75")))),this[za("0x7c")](o)})),e[za("0x13a")]())}),{priority:za("0xd9")}),this[za("0x10a")][za("0x2e")][za("0x1")]("trackChanges",this.trackChangesCommand),this[za("0xa")](za("0x129"));const o=new p(t,this[za("0x8")]);t[za("0x2e")][za("0x1")](za("0xa3"),o),this[za("0xa")]("acceptSuggestion");const s=new C(t,this[za("0x8")]);t[za("0x2e")][za("0x1")](za("0x12f"),s),this[za("0xa")](za("0x12f")),t[za("0x2e")][za("0x1")](za("0x9c"),new F(t,o,this._suggestions)),this.enableCommand(za("0x9c")),t.commands[za("0x1")](za("0x11a"),new F(t,s,this[za("0x8")])),this.enableCommand(za("0x11a")),t[za("0x2e")][za("0x1")]("acceptSelectedSuggestions",new U(t,o,this[za("0x8")])),this[za("0xa")](za("0x96")),t[za("0x2e")][za("0x1")](za("0xb"),new U(t,s,this[za("0x8")])),this[za("0xa")](za("0xb"));const r=t[za("0xa9")].get(za("0xe3"));this.listenTo(r,za("0x135"),((t,{threadId:e})=>{const n=this[za("0x8")][za("0x5")](e);n&&n.commentThread&&1===n.commentThread.length&&this[za("0x23")](e,{hasComments:!0})}),{priority:za("0x48")}),this.listenTo(r,za("0xc"),((t,{threadId:e})=>{const n=this[za("0x8")][za("0x5")](e);n&&n[za("0x9a")]&&!n[za("0x9a")][za("0x91")]&&this[za("0x23")](e,{hasComments:!1})}),{priority:za("0x48")})}set adapter(t){if(this[za("0xee")])throw new e.CKEditorError(za("0xc0"),this);this[za("0xee")]=t}get[za("0x89")](){return this._adapter}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[za("0x8")][za("0x29")]())t&&!e.isInContent||n.push(e);return e?n[za("0x3")]((t=>t[za("0xbf")]())):n}getSuggestion(t){const n=this[za("0x8")].get(t);if(!n)throw new e.CKEditorError(za("0x6a"),this);return n}[za("0xd4")](t){return this[za("0x8")][za("0x107")](t)}addSuggestionData(t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[za("0x45")].split(":"),i=this[za("0x8")][za("0x5")](n)||this[za("0x83")](s,r,n,e,o);if(this._addThreadToSuggestion(i),this[za("0x4c")](i,s,r||null,e),i[za("0xd2")]=t[za("0xd2")],o&&o["@external"]){const t=o[za("0xf2")],e=this[za("0x5f")](t.authorName);i.authoredAt=t.createdAt,i[za("0xa2")]=e,i.isExternal=!0}else i[za("0x87")]=t[za("0xd2")];switch(t.data&&(i[za("0x62")]=t[za("0x62")]),t[za("0x71")]&&(i[za("0x71")]=t[za("0x71")]),this[za("0xee")]&&this[za("0xee")][za("0xb8")]||(i._saved=!0),this[za("0x4a")][za("0x5")](i)){case za("0x92"):this[za("0x4a")][za("0x125")](i,za("0x2c"));break;case za("0x36"):i[za("0x11c")]?(this[za("0x4a")][za("0x125")](i,za("0xa4")),this[za("0xcd")]("suggestionLoaded",i)):this._suggestionState[za("0x125")](i,za("0xa0"))}return i}[za("0xa3")](t){this[za("0x94")]((()=>{this[za("0x10a")].model[za("0x6e")]((()=>{for(const e of t[za("0x24")]())e.accept()}))}))}discardSuggestion(t){this[za("0x94")]((()=>{this[za("0x10a")][za("0x4d")][za("0x6e")]((()=>{for(const e of t[za("0x24")]())e.discard()}))}))}[za("0xa")](t,n){const o=this.editor.commands.get(t);if(!o)throw new e.CKEditorError(za("0x7a"),this,{commandName:t});this[za("0x69")][za("0x1")](o),n&&o.on("execute",((t,e)=>{this[za("0xc5")][za("0x13")]&&(this._isForcedDefaultExecutionBlock||e[za("0x91")]>0&&e[e[za("0x91")]-1]&&e[e[za("0x91")]-1][za("0x94")]||(n(((...t)=>o.execute(...t,{forceDefaultExecution:!0})),...e),t[za("0x13a")]()))}),{priority:"high"})}[za("0x94")](t){let n,o;const s=this[za("0x10e")];this[za("0x10e")]=!0;try{n=t()}catch(t){o=t}return s||(this[za("0x10e")]=!1),o&&e.CKEditorError[za("0x68")](o,this),n}markInsertion(t,n=null,o={}){if(t.isCollapsed)return null;const s=this[za("0x10a")][za("0xa9")].get(za("0x137")).me;for(const{suggestion:e,meta:o}of this[za("0xad")](t,"insertion"))if(o[za("0x119")]){if(!o.isNextTo){if(!this[za("0xea")]&&o[za("0x128")])continue;return e}if(n==e[za("0xab")]){const n=e[za("0x11f")]();return n[za("0xde")][za("0x12b")](t[za("0x75")])?this[za("0x47")](e,this._model[za("0x10d")](t[za("0xde")],n[za("0x75")])):this[za("0x47")](e,this[za("0xb3")][za("0x10d")](n[za("0xde")],t[za("0x75")])),e}}const r=(0,e.uid)(),i=s.id,x=n?za("0xc1")+n:"insertion",a=this[za("0xce")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this._addSuggestionMarker(x,r,i,t),a}markMultiRangeInsertion(t,n=za("0xd5"),o={}){const s=this.editor[za("0xa9")][za("0x5")]("Users").me,r=this._suggestionFactory.getSuggestionCallback(za("0xaf"),n,za("0x64"));for(const e of this[za("0x26")]())if(e[za("0xa2")].id==s.id&&za("0xaf")==e.type&&e[za("0xab")]==n&&(r(e[za("0xfc")](),t)||r(t,e.getRanges()))){for(const n of t)e[za("0x7f")](n);return e}if(this[za("0xea")])for(const e of t)for(const{suggestion:n,meta:o}of this[za("0xad")](e,"insertion")){if(!o.isOwn)continue;let e=!0;for(const o of n[za("0xfc")]())for(const n of t)if(!o[za("0x133")](n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=s.id,a=za("0xc1")+n,c=this[za("0xce")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[za("0x2")](a,i,x,e,Zo[za("0x56")]());return c}markInlineFormat(t,n,o=null,s={}){if(o=o||$a(n),t.isCollapsed)return null;if(za("0x39")===this[za("0x10c")]){const e=this._suggestionFactory.getSuggestionCallback(za("0xfb"),o,za("0x5b"));return this[za("0x94")]((()=>e([t],n,s))),null}const r=this.editor.plugins[za("0x5")](za("0x137")).me,i=[];if("always"!==this._trackFormatChanges)for(const{suggestion:e,meta:n}of this[za("0xad")](t,za("0xaf")))n[za("0x119")]&&!n[za("0xf1")]&&i[za("0xd7")](...e.getRanges());const x=function(t,e){const n=[];for(const o of e){const e=t[za("0xe")](o);e&&n[za("0xd7")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[za("0x91")];){const o=n[e][za("0x99")](t);n[za("0x60")](e,1,...o),e+=o[za("0x91")]}}return n}(t,i);x[za("0x91")]&&this[za("0xb3")][za("0x6e")]((()=>{for(const t of x){const e=this[za("0xcf")][za("0x4f")](za("0xfb"),o,za("0x5b"));this[za("0x94")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t.start,a=t[za("0x75")];for(const{suggestion:e,meta:n}of this[za("0xad")](t,"formatInline")){if(!n.isOwn)continue;if(e[za("0xab")]!=o)continue;const s=e[za("0x11f")]();if(s[za("0x133")](t,!0))return null;x=x.isBefore(s.start)?x:s[za("0xde")],a=a[za("0x72")](s[za("0x75")])?a:s[za("0x75")],i?s.start[za("0x1d")](i[za("0x11f")]().start)?(i[za("0x70")](),i=e):e[za("0x70")]():i=e}const c=this[za("0xb3")][za("0x10d")](x,a);if(i)this[za("0x47")](i,c);else{const t=(0,e.uid)(),i=r.id;this[za("0xce")]({id:t,type:za("0x2b")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[za("0x2")](za("0x2b")+o,t,i,c)}}return null}[za("0xda")](t,n,o=[],s=null,r={}){n[za("0xf0")]||(n[za("0xf0")]=n[za("0x43")]),n.multipleBlocks=t.is(za("0xba")),s=s||$a(n);const i=o[za("0x3")]((t=>Qa(t,this._model))),x=t.is(za("0xba"))?t:Qa(t,this[za("0xb3")]);if("never"===this[za("0x10c")]){const t=this[za("0xcf")][za("0x4f")]("formatBlock",s,za("0x5b"));return this[za("0x94")]((()=>t([x],n,r))),null}i[za("0xd7")](x);let a=!0;for(const t of i)if(!this._rangeIsInLocalUserInsertion(t)){a=!1;break}if(a&&za("0x6c")!==this._trackFormatChanges){const t=this[za("0xcf")][za("0x4f")](za("0xf3"),s,za("0x5b"));return this.forceDefaultExecution((()=>t([x],n,r))),null}let c=null,l=x[za("0xde")],d=x[za("0x75")];for(const{suggestion:t,meta:e}of this._findSuggestions(x,"formatBlock")){if(!e.isOwn||e[za("0xb2")]||e.containsRangeInObject||e[za("0xf1")])continue;if(t[za("0x62")].formatGroupId!=n.formatGroupId)continue;const o=t[za("0x11f")]();if(t.subType==s){if(o[za("0x133")](x,!0))return null;l=l[za("0x1d")](o[za("0xde")])?l:o[za("0xde")],d=d.isAfter(o.end)?d:o[za("0x75")],c?o.start.isBefore(c[za("0x11f")]().start)?(c.removeMarkers(),c=t):t.removeMarkers():c=t}else{const e=x.getIntersection(o);this._cutOutSuggestionMarker(t,e)}}const u=this[za("0x10a")][za("0xa9")][za("0x5")](za("0x137")).me,g=(0,e.uid)(),m=u.id;if(c)return this[za("0x47")](c,this[za("0xb3")].createRange(l,d)),c;{const t=this._setSuggestionData({id:g,type:za("0xe6")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[za("0x2")](za("0xe6")+s,g,m,this[za("0xb3")][za("0x10d")](l,d)),t}}[za("0xbd")](t,n,o=[],s=null,r={}){n[za("0xf0")]||(n[za("0xf0")]=n.commandName);const i=t[0];n[za("0xd")]=i.is("range"),s=s||$a(n);const x=o[za("0x3")]((t=>Qa(t,this[za("0xb3")]))),a=i.is("range")?t:t[za("0x3")]((t=>Qa(t,this[za("0xb3")])));if(za("0x39")===this._trackFormatChanges){const t=this[za("0xcf")].getSuggestionCallback("formatBlock",s,za("0x5b"));return this[za("0x94")]((()=>t(a,n,r))),null}x.push(...a);let c=!0;for(const t of x)if(!this._rangeIsInLocalUserInsertion(t)){c=!1;break}if(c&&za("0x6c")!==this._trackFormatChanges){const t=this[za("0xcf")][za("0x4f")](za("0xf3"),s,"accept");return this[za("0x94")]((()=>t(a,n,r))),null}const l=this[za("0x10a")][za("0xa9")].get(za("0x137")).me;for(const t of this.getSuggestions()){if(t[za("0xa2")].id!=l.id)continue;if("formatBlock"!=t[za("0x45")]||t.data.formatGroupId!=n[za("0xf0")])continue;const e=t.subType==s;for(let n=0;n<a[za("0x91")];n++){const o=a[n];for(const s of t[za("0x76")]()){const r=s.getRange();if(o.isEqual(r)){e?(a[za("0x60")](n,1),n--):t[za("0x9f")](s[za("0xc2")]);break}}}}if(0==a[za("0x91")])return null;const d=this[za("0xcf")].getSuggestionCallback(za("0xf3"),s,za("0x64"));for(const t of this.getSuggestions())if(t[za("0xa2")].id==l.id&&"formatBlock"==t[za("0x45")]&&t.data[za("0xf0")]==n[za("0xf0")]&&t.subType==s&&(d(t.getRanges(),a)||d(a,t[za("0xfc")]()))){for(const e of a)t[za("0x7f")](e);return t}const u=(0,e.uid)(),g=l.id,m="formatBlock:"+s,f=this[za("0xce")]({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[za("0x2")](m,u,g,t,Zo[za("0x56")]());return f}[za("0x1c")](t,n=null,o={}){if(t.isCollapsed)return null;const s=this[za("0x10a")][za("0xa9")][za("0x5")]("Users").me,r=new i.LiveRange(t[za("0xde")],t[za("0x75")]);for(const{suggestion:t,meta:e}of this._findSuggestions(r,za("0xaf")))if(e[za("0x119")]&&!e[za("0xb2")])if(t[za("0xc4")]){const e=t[za("0xfc")]()[za("0x66")]((t=>"$graveyard"!=t[za("0xa8")][za("0x55")]));if(e.every((t=>r[za("0x133")](t,!0)))&&t[za("0xc6")](),e[za("0xff")]((t=>t.containsRange(r,!0)))){const t=this[za("0xcf")][za("0x4f")]("deletion",n,za("0x5b"));return this[za("0x94")]((()=>t([r],null,o))),null}}else{const e=r[za("0xe")](t.getFirstRange());null!==e&&t[za("0x40")]([e],null,o)}if(r[za("0x9")](),r[za("0x1e")]||"$graveyard"==r[za("0xa8")].rootName)return null;let x=null,a=r[za("0xde")],c=r[za("0x75")];for(const{suggestion:t,meta:e}of this[za("0xad")](r,"deletion"))if(e[za("0x119")])if(t[za("0xc4")]&&this._mergeNestedSuggestions){let e=!0;for(const n of t[za("0xfc")]()){if(n.containsRange(r,!0))return t;r.containsRange(n)||(e=!1)}e&&t.discard()}else{const n=t[za("0x11f")]();if(n[za("0x133")](r,!0)){if(!this[za("0xea")]&&e[za("0x128")])continue;return t}a=a[za("0x1d")](n[za("0xde")])?a:n[za("0xde")],c=c.isAfter(n[za("0x75")])?c:n[za("0x75")],x?n[za("0xde")].isBefore(x[za("0x11f")]()[za("0xde")])?(x[za("0x70")](),x=t):t[za("0x70")]():x=t}if(x)return this[za("0x47")](x,this[za("0xb3")][za("0x10d")](a,c)),x;{const t=(0,e.uid)(),r=this[za("0xb3")].createRange(a,c),i=s.id,x=n?za("0x7b")+n:"deletion",l=this._setSuggestionData({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x2")](x,t,i,r),l}}[za("0x42")](t,n=za("0xd5"),o={}){const s=this.editor[za("0xa9")].get(za("0x137")).me,r=t[za("0x3")]((t=>new i.LiveRange(t.start,t[za("0x75")]))),x=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this[za("0xad")](t,"insertion"))n[za("0x119")]&&!n.isNextTo&&x[za("0x1")](e);for(const e of x)if(e[za("0xc4")]){const s=e.getRanges();if((!e[za("0x71")]||!e.attributes[za("0x130")])&&s.every((t=>r[za("0xff")]((e=>e[za("0x133")](t,!0)))))&&e[za("0xc6")](),r[za("0x74")]((t=>s[za("0xff")]((e=>e[za("0x133")](t,!0)))))){const e=this[za("0xcf")][za("0x4f")](za("0x11b"),n,za("0x5b"));return this[za("0x94")]((()=>e(t,null,o))),null}}else{const t=e[za("0x11f")]();if(r[za("0xff")]((e=>e[za("0x133")](t,!0)))&&e[za("0xc6")](),r[za("0x74")]((e=>t.containsRange(e,!0)))){const t=this._suggestionFactory[za("0x4f")](za("0x11b"),n,za("0x5b"));return this[za("0x94")]((()=>t(r,null,o))),null}}const a=this[za("0xcf")][za("0x4f")](za("0x11b"),n,za("0x64"));let c=null;for(const t of this[za("0x26")]())if(t.author.id==s.id&&t[za("0x11c")]&&za("0x11b")==t[za("0x45")]&&t.subType==n&&(a(t[za("0xfc")](),r)||a(r,t.getRanges())))if(c){if(t[za("0x9a")]&&t.commentThread[za("0x91")])continue;for(const e of t[za("0xfc")]())c[za("0x37")](e)||c[za("0x7f")](e);t[za("0x70")]()}else{c=t;for(const e of r)t[za("0x37")](e)||t[za("0x7f")](e)}if(c)return c;x[za("0x44")]();for(const t of r)for(const{suggestion:e,meta:n}of this[za("0xad")](t,za("0x11b")))n[za("0x119")]&&x[za("0x1")](e);for(const t of x){const e=t[za("0xfc")]();if((!o||!o[za("0x130")])&&r[za("0x74")]((t=>e.some((e=>e[za("0x133")](t,!0))))))return t;(!t[za("0x71")]||!t[za("0x71")][za("0x130")])&&e[za("0x74")]((t=>r[za("0xff")]((e=>e[za("0x133")](t,!0)))))&&t[za("0xc6")]()}const l=(0,e.uid)(),d=s.id,u="deletion:"+n,g=this[za("0xce")]({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t[za("0x9")](),t.isCollapsed||za("0x3b")==t.root.rootName||this[za("0x2")](u,l,d,t,Zo[za("0x56")]());return g}[za("0x47")](t,e){const n=t[za("0xd3")]();this._model.change((t=>{t[za("0xf5")](n,{range:e})}))}[za("0xb5")](t){const e=t.id,n=this[za("0x10a")][za("0x12d")][za("0x5")]("collaboration.channelId");this[za("0x1b")][za("0x3c")](e)||this[za("0x1b")][za("0xe1")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[za("0x1b")][za("0x84")](e);o[za("0xb0")](za("0x120")),o[za("0x120")]=!1,t[za("0x9a")]=o}_checkSuggestionCorrectness(t,n,o,s){if(t[za("0x45")]!=n||t[za("0xab")]!=o||t.creator.id!=s)throw this[za("0x10a")][za("0x4b")](za("0x5a")),new e.CKEditorError(za("0x5a"),this)}[za("0x3a")](t,n){const o=t.getFirstRange();if(n[za("0x12b")](o))t.removeMarkers();else if(o.containsRange(n)){const s=this[za("0xb3")][za("0x50")](n.start.nodeBefore,za("0x75"));this._setSuggestionRange(t,this[za("0xb3")].createRange(o[za("0xde")],s));const r=(0,e.uid)(),i=t[za("0xef")].id,x=t.type+":"+t[za("0xab")];this[za("0xce")]({id:r,type:x,createdAt:new Date,authorId:i,data:t[za("0x62")],attributes:t[za("0x71")]});const a=this[za("0xb3")].createPositionAt(n[za("0x75")][za("0xc7")],za("0xf9")),c=this[za("0xb3")].createRange(a,o.end);this[za("0x2")](x,r,i,c)}else if(o[za("0xf8")](n[za("0xde")])){const e=this[za("0xb3")][za("0x50")](n.start[za("0x106")],za("0x75"));this[za("0x47")](t,this[za("0xb3")][za("0x10d")](o[za("0xde")],e))}else{const e=this[za("0xb3")][za("0x50")](n.end[za("0xc7")],za("0xf9"));this[za("0x47")](t,this[za("0xb3")][za("0x10d")](e,o[za("0x75")]))}}[za("0x67")](t){for(const{suggestion:e,meta:n}of this[za("0xad")](t,za("0xaf"))){if(!n[za("0x119")])continue;const o=e[za("0xfc")]();for(const e of o)if(!t.getDifference(e)[za("0x91")])return!0}return!1}[za("0x73")](t){const n=this.editor.plugins.get(za("0x137"))[za("0x20")](t);if(!n)throw new e.CKEditorError(za("0x6d"),this);return n}_getExternalAuthor(t){const e=this[za("0x10a")][za("0xa9")][za("0x5")](za("0x137")),n=(0,r.hashObject)(za("0x4e")+t);return e.getUser(n)||e[za("0x104")]({id:n,name:t})}[za("0x83")](t,e,n,o,s){const r=this[za("0x73")](o),i=this[za("0xcf")].buildSuggestion(t,e,n,r,s,(t=>this._updateSuggestionData(n,{attributes:t})));return this.listenTo(i,"accept",(()=>{this[za("0x23")](n,{state:za("0xdc")})}),{priority:za("0xd9")}),this.listenTo(i,"discard",(()=>{this[za("0x23")](n,{state:"rejected"})}),{priority:"high"}),this[za("0x8")].set(n,i),this[za("0x4a")].set(i,"notReady"),i}[za("0xb7")](t){const e=t[za("0x12c")](":");return{group:e[0],type:e[1],subType:e[za("0x91")]>=5?e[2]:null,id:e.length<5?e[2]:e[3],authorId:e[za("0x91")]<5?e[3]:e[4],markerCount:6==e[za("0x91")]?e[5]:null}}[za("0x3d")](t,n,o){const s=t.getFirstRange(),r=s[za("0xde")],i=s[za("0x75")];this._setSuggestionRange(t,this._model[za("0x10d")](r,n));const x=(0,e.uid)(),a=t[za("0xef")].id,c=t[za("0x45")]+(t[za("0xab")]?":"+t[za("0xab")]:"");this[za("0xce")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[za("0x71")],data:t[za("0x62")]}),za("0xf3")==t[za("0x45")]&&(o=this[za("0xb3")][za("0x82")](o[za("0xc7")])),this[za("0x2")](c,x,a,this[za("0xb3")][za("0x10d")](o,i))}[za("0xad")](t,e=null){const n=[],o=this._model[za("0x124")],s=this.editor[za("0xa9")].get(za("0x137")).me;for(const r of this[za("0x26")]())if(r[za("0x11c")]&&(!e||r.type==e))for(const e of r[za("0xfc")]()){const i=t[za("0xde")][za("0x12b")](e.end)||t[za("0x75")][za("0x12b")](e[za("0xde")]);if(i||t.getIntersection(e)){const x=t[za("0x133")](e)&&Ka(o,e.start,t),a=e.containsRange(t)&&Ka(o,t.start,e);n[za("0xd7")]({suggestion:r,meta:{isOwn:s==r.author,isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}[za("0x2")](t,e,n,o,s){this[za("0xb3")].change((r=>{let i=za("0x3e")+t+":"+e+":"+n;s&&(i=i+":"+s),r[za("0x86")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[za("0xdf")](t){const e=t.previous,n=t[za("0x90")];t[za("0xb1")]=null,null!=e&&(e[za("0x90")]=null),t[za("0x90")]=null,null!=n&&(n[za("0xb1")]=null),za("0xa4")==this[za("0x4a")].get(t)&&(this._suggestionState[za("0x125")](t,za("0xa0")),this.fire(za("0xae"),t,e,n))}[za("0xce")](t){const n=t.id,o=this[za("0xe8")](t);if(this._adapter&&this[za("0xee")][za("0xb8")]){const s=this[za("0x10a")][za("0xa9")][za("0x5")](za("0x105")),r=o[za("0xbe")],i=o[za("0xab")]?o[za("0x45")]+":"+o[za("0xab")]:o[za("0x45")],x=this.editor.locale,a=s[za("0x1")](Yo(x,"PENDING_ACTION_SUGGESTION")),c={id:n,type:i,hasComments:r,data:t[za("0x62")]||null,originalSuggestionId:t.originalSuggestionId||null,attributes:o[za("0x71")]};this[za("0xee")].addSuggestion(c)[za("0x2a")]((t=>{o[za("0xb4")]=!0,s[za("0x19")](a),t&&t.createdAt&&(this[za("0x8")][za("0x5")](n)[za("0xd2")]=t[za("0xd2")])}))[za("0x32")]((t=>{throw(0,e.logWarning)(za("0xfa")),this[za("0x10a")][za("0x4d")].enqueueChange({isUndoable:!1},(()=>{o[za("0xc6")]()})),o[za("0x49")](),this._suggestions[za("0xcb")](o.id),this._suggestionState[za("0xcb")](o),t}))}return o}_updateSuggestionData(t,e){const n=this[za("0x10a")][za("0xa9")].get(za("0x105")),o=this[za("0xaa")](t);if(this[za("0xee")]&&this[za("0xee")][za("0xf")])if(o[za("0xb4")]){const o=n[za("0x1")](Yo(this[za("0x10a")].locale,za("0xca")));this._adapter[za("0xf")](t,e)[za("0x2a")]((()=>{n[za("0x19")](o)}))}else o.on("change:_saved",(()=>{this[za("0x23")](t,e)}))}_getSuggestionData(t){if(!this[za("0xee")]||!this._adapter[za("0xaa")])throw new e.CKEditorError(za("0x33"),this);return this[za("0xee")][za("0xaa")](t)}[za("0x111")](t){const{id:e,type:n,subType:o,authorId:s}=this._splitMarkerName(t),r=this[za("0x8")][za("0x5")](e)||this[za("0x83")](n,o,e,s,{});switch(this._checkSuggestionCorrectness(r,n,o,s),this[za("0x4a")].get(r)){case"notReady":this._getSuggestionData(e)[za("0x2a")]((t=>{let n=Promise[za("0x25")]();t[za("0xbe")]&&(n=this[za("0x1b")].fetchCommentThread({channelId:this[za("0x10a")].config[za("0x5")]("collaboration.channelId"),threadId:e})),n[za("0x2a")]((()=>{this[za("0xe8")](t)._saved=!0}))})),this[za("0x4a")][za("0x125")](r,za("0x36"));break;case za("0xa0"):this[za("0x23")](e,{state:za("0x80")});case za("0x2c"):this._suggestionState[za("0x125")](r,za("0xa4")),this[za("0xcd")](za("0xc3"),r);break;case"ready":this[za("0xcd")](za("0x10"),r)}return r.addMarkerName(t),r}_refreshSuggestionsChain(t){const e=Array[za("0xd6")](t).filter((t=>!t[za("0xc4")])),n=this.getSuggestions({skipNotAttached:!0})[za("0x66")]((t=>!t[za("0xc4")])),o=n.filter((e=>!t.has(e))),s=new Map(n[za("0x3")]((t=>[t,this._suggestionFactory.getSuggestionCallback(t[za("0x45")],t[za("0xab")],za("0xe5"))]))),r=new Map(n[za("0x3")]((t=>[t,t[za("0x11f")]()]))),i=new Set,x=new Set;for(let t=0;t<e[za("0x91")];t++)a(e[t],e,t+1);for(let t=0;t<e.length;t++)a(e[t],o,0);for(let t=0;t<e[za("0x91")];t++){const n=e[t];!x[za("0x107")](n)&&n.previous&&(n.previous[za("0x90")]===n&&(n[za("0xb1")][za("0x90")]=null),n[za("0xb1")]=null),!i[za("0x107")](n)&&n[za("0x90")]&&(n[za("0x90")][za("0xb1")]===n&&(n[za("0x90")].previous=null),n[za("0x90")]=null)}function a(t,e,n){for(let o=n;o<e[za("0x91")];o++){const n=c(t,e[o]);n&&(n[0][za("0x90")]=n[1],n[1][za("0xb1")]=n[0],i.add(n[0]),x[za("0x1")](n[1]))}}function c(t,e){if(t[za("0xa2")].id!==e[za("0xa2")].id)return null;const n=s.get(t)(t,e,r[za("0x5")](t),r[za("0x5")](e));return n&&s[za("0x5")](e)(t,e,r[za("0x5")](t),r[za("0x5")](e))?n[1][za("0x9a")]&&n[1][za("0x9a")][za("0x91")]?null:n:null}}_joinWithAdjacentSuggestions(t){const e=Array.from(t),n=this.getSuggestions({skipNotAttached:!0}),o=n[za("0x66")]((e=>!t.has(e))),s=new Map(e.map((t=>[t,this[za("0xcf")][za("0x4f")](t[za("0x45")],t[za("0xab")],za("0x64"))]))),r=new Map(n[za("0x3")]((t=>[t,t[za("0xfc")]()])));for(let t=0;t<e[za("0x91")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[za("0x91")];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("0x91")];i++){const o=n[i];if(o.type!==e[za("0x45")]||o[za("0xa2")].id!==e.author.id||o.subType!==e[za("0xab")])continue;const x=s[za("0x5")](e),a=r[za("0x5")](e),c=r[za("0x5")](o),l=e[za("0x9a")]&&e[za("0x9a")][za("0x91")],d=o[za("0x9a")]&&o[za("0x9a")][za("0x91")];if(!l&&x(c,a))return t[za("0xa7")](o,e),r[za("0xcb")](e),!0;if(!d&&x(a,c))return t[za("0xa7")](e,o),r[za("0xcb")](o),!0}return!1}}_joinSuggestions(t,e){if(t[za("0xc4")])for(const n of e[za("0xfc")]())t.addRange(n);else{const n=e[za("0x11f")]()[za("0x75")];this[za("0x47")](t,this[za("0xb3")][za("0x10d")](t[za("0x11f")]()[za("0xde")],n))}e[za("0x70")]()}}class Va{constructor(t){this._editor=t,this[za("0xb3")]=t[za("0x4d")],this[za("0x132")]=new Map,this[za("0x79")]=new Map,this[za("0x113")]()}[za("0x4")](t,e,n,o,s,r){return new Zo(this._model,{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[za("0x4f")](t,e,za("0x5b"))(...n),onDiscard:(...n)=>this.getSuggestionCallback(t,e,za("0xc6"))(...n)})}[za("0x9e")](t,e,n,o){const s=t+":"+e+":"+n;this[za("0x132")][za("0x125")](s,o)}getSuggestionCallback(t,e,n){const o=t+":"+e+":"+n;return this._customCallbacks[za("0x5")](o)||this[za("0x79")][za("0x5")](t+":"+n)}[za("0x113")](){const t=()=>{},e=t=>{t[za("0x17")](((t,e)=>t[za("0xde")][za("0x1d")](e[za("0xde")])?1:-1)),this[za("0xb3")][za("0x6e")]((e=>{for(const n of t){let t;t=n[za("0x75")][za("0x117")]&&n[za("0x75")][za("0xc7")]==n.start[za("0xe4")]?e.createSelection(n[za("0xde")][za("0xe4")],"on"):e[za("0x138")](n),this[za("0xb3")][za("0x10f")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this._model[za("0x6e")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[za("0x3")]((t=>(qa(t)&&(t=this[za("0xb3")][za("0x10d")](t[za("0x75")])),t)))[za("0x66")]((t=>za("0x3b")!==t[za("0xa8")][za("0x55")]));if(r[za("0x91")]<1)return;const x=Array[za("0xd6")](this._model.document.selection[za("0xfc")]())[za("0x3")]((t=>i.LiveRange[za("0x7d")](t)));n.setSelection(r);for(const t of this[za("0x31")][za("0x2e")].commands())t[za("0x51")]();s[za("0xd7")]({forceDefaultExecution:!0}),this[za("0x31")][za("0x5d")](o,...s);const a=x[za("0x66")]((t=>"$graveyard"!=t[za("0xa8")].rootName));a.length>0&&n[za("0x12e")](a);for(const t of x)t[za("0x9")]()}))},o=(t,e)=>1==t[za("0x91")]&&1==e[za("0x91")]&&t[0][za("0x75")].isEqual(e[0][za("0xde")]),s=(t,e,n,o)=>Za(t,e,n,o,this[za("0xb3")])?[t,e]:Za(e,t,o,n,this._model)?[e,t]:null;this[za("0x79")].set(za("0x53"),t),this[za("0x79")][za("0x125")]("insertion:discard",e),this[za("0x79")][za("0x125")](za("0x116"),o),this[za("0x79")].set("insertion:chain",s),this._defaultCallbacks[za("0x125")]("deletion:accept",e),this[za("0x79")].set(za("0xe0"),t),this._defaultCallbacks.set("deletion:join",o),this._defaultCallbacks[za("0x125")](za("0x98"),s),this[za("0x79")][za("0x125")]("formatInline:accept",n),this[za("0x79")].set("formatInline:discard",t),this._defaultCallbacks.set(za("0xa1"),o),this[za("0x79")].set(za("0x14"),t),this[za("0x79")].set(za("0x6"),n),this[za("0x79")].set("formatBlock:discard",t),this[za("0x79")][za("0x125")](za("0x18"),o),this[za("0x79")][za("0x125")](za("0x131"),t)}}function Ka(t,e,n){for(const o of e.parent.getAncestors({includeSelf:!0,parentFirst:!0})){if(o[za("0xa8")]==o)return!1;if(!n.containsItem(o))return!1;if(t[za("0xbb")](o)||t[za("0x63")](o))return!0}return!1}function qa(t){return t.end[za("0xc7")]==t.start.nodeAfter&&t[za("0x75")].isAtStart}function Xa(t,e,n,o){const s=t=>!t[za("0x59")].is(za("0x22"))&&!o[za("0xbb")](t[za("0x59")]),r=t[za("0xde")][za("0x27")](s),i=t[za("0x75")][za("0x27")](s,{direction:"backward"});return!(t[za("0xde")][za("0x12b")](r)&&t.end[za("0x12b")](i)||(r[za("0x1d")](i)?n[za("0xf5")](e,{range:n[za("0x10d")](r,i)}):n[za("0x9f")](e),0))}function $a(t){return(0,r.hashObject)(t)}function Ja(t){const e=t[za("0xde")].nodeAfter;return e&&e.is(za("0x8e"))}function Qa(t,e){const n=e[za("0x124")][za("0xbb")](t)||e[za("0x124")][za("0x6f")](t);return e[za("0x10d")](e[za("0x50")](t,za("0x38")),n?e[za("0x1f")](t):e[za("0x50")](t,za("0x75")))}function Za(t,e,n,o,s){if(n.end.isEqual(o[za("0xde")]))return!0;if(t[za("0x45")]!=e[za("0x45")])return!1;if(!n[za("0x75")][za("0x5e")](o[za("0xde")]))return!1;const r=s.createRange(n[za("0x75")],o.start).getWalker();for(const t of r)if([za("0xe7"),za("0x54")].includes(t[za("0x45")])&&s[za("0x124")][za("0x63")](t[za("0x59")]))return!1;return!0}const Ya=["get","commands","locale","_pendingAction","commentThreadController","_editor","change:isDirty","canEditAt","isDirty","destroy","model","plugins","_discardCommand","execute","_removePendingAction","stopListening","listenTo","canAccept","add","bind","discardSuggestion","getRanges","isEnabled","canDiscard","unbind","_setPendingAction","acceptSuggestion","_acceptCommand","PENDING_ACTION_SUGGESTION","PendingActions","view"];var tc,ec;tc=Ya,ec=197,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("0x1e")]=e,this[nc("0x13")]=n,this[nc("0x18")]=o,this[nc("0x19")]=t,this[nc("0x10")]=t.commands.get("acceptSuggestion"),this._discardCommand=t[nc("0x15")].get("discardSuggestion"),this[nc("0x13")][nc("0x8")](nc("0xb")).to(this[nc("0x10")],this[nc("0x1")],((t,e)=>t||e)),this[nc("0x13")][nc("0x8")]("canAccept").to(this[nc("0x10")],"isEnabled",(t=>t&&this[nc("0x19")][nc("0x1e")][nc("0x1b")](e.getRanges()))),this[nc("0x13")][nc("0x8")](nc("0xc")).to(this._discardCommand,nc("0xb"),(t=>t&&this[nc("0x19")][nc("0x1e")][nc("0x1b")](e[nc("0xa")]()))),this._pendingAction=null,n.isDirty&&this[nc("0xe")](),this[nc("0x5")](n,nc("0xf"),(()=>this[nc("0xf")]())),this[nc("0x5")](n,"discardSuggestion",(()=>this.discardSuggestion())),this.listenTo(n,nc("0x1a"),(()=>{n[nc("0x1c")]?this._setPendingAction():this[nc("0x3")]()}))}[nc("0xf")](){this[nc("0x10")][nc("0x2")](this[nc("0x1e")].id)}[nc("0x9")](){this[nc("0x1")][nc("0x2")](this[nc("0x1e")].id)}[nc("0x1d")](){this[nc("0x13")][nc("0xd")](nc("0xb")),this.view[nc("0xd")](nc("0x6")),this[nc("0x13")].unbind(nc("0xc")),this[nc("0x4")](),this[nc("0x18")][nc("0x1d")](),this[nc("0x17")]&&this._removePendingAction()}[nc("0xe")](){const t=Yo(this[nc("0x19")][nc("0x16")],nc("0x11"));this[nc("0x17")]=this[nc("0x19")][nc("0x0")].get(nc("0x12"))[nc("0x7")](t)}[nc("0x3")](){null!==this[nc("0x17")]&&this[nc("0x19")][nc("0x0")][nc("0x14")]("PendingActions").remove(this[nc("0x17")]),this[nc("0x17")]=null}}const sc=["commentThreadInputView","setData","submit","locale","editorConfig","canAccept","_createCommentThreadInputView","CommentView","isEnabled","bind","element","hasDirtyComment","_model","_createCommentViews","length","authoredAt","disableComments","commentInputView","updateComment","delegate","_config","commentsListView","_localUser","value","cancel","set","destroy","assign","isDirty","editor","commentThread","isReadOnly","focus","removeComment","isActive","descriptionParts","disabledSubmit"];var rc,ic;rc=sc,ic=297,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("0x14")]=null,this[xc("0x24")]=null,this[xc("0x18")](xc("0x21"),!1),this[xc("0x18")]("authoredAt",e.authoredAt),this[xc("0x8")](xc("0xe")).to(e),this[xc("0x18")](xc("0x22"),[]),this[xc("0x18")](xc("0x1b"),!1),this.set(xc("0x7"),!1),this[xc("0x18")](xc("0x4"),!1),this[xc("0x18")]("canDiscard",!1),this[xc("0xb")]=e,this[xc("0x15")]=n,this[xc("0x13")]=o,o[xc("0xf")]?this[xc("0x18")]("length",1):this[xc("0xc")]()}focus(){this[xc("0x9")].focus()}[xc("0x19")](){this[xc("0x14")]&&this.commentsListView[xc("0x19")](),this[xc("0x24")]&&this[xc("0x24")][xc("0x19")](),super[xc("0x19")]()}[xc("0xc")](){const{CommentsListView:t}=this[xc("0x13")];this[xc("0x14")]=new t(this[xc("0x2")],this[xc("0xb")].commentThread,Object[xc("0x1a")]({CommentView:this._config[xc("0x6")]},this[xc("0x13")])),this[xc("0x14")][xc("0x12")]("removeComment").to(this),this[xc("0x14")][xc("0x12")](xc("0x11")).to(this),this[xc("0x14")][xc("0x8")](xc("0x21")).to(this),this[xc("0x18")](xc("0xd"),this[xc("0x14")][xc("0xd")]+1),this.bind(xc("0xd")).to(this[xc("0x14")],xc("0xd"),(t=>t+1)),this[xc("0x24")]=this[xc("0x5")](),this.on(xc("0x20"),(()=>this[xc("0x1f")]())),this.bind(xc("0x1b")).to(this.commentsListView,xc("0xa"),this[xc("0x24")][xc("0x10")],xc("0x16"),((t,e)=>t||!!e))}[xc("0x5")](){const{CommentThreadInputView:t}=this[xc("0x13")],e=new t(this[xc("0x2")],this[xc("0x15")],this[xc("0x13")][xc("0x3")]),n=e[xc("0x10")];return e[xc("0x8")]("showInput").to(this,xc("0x21"),this[xc("0xb")][xc("0x1d")],"isReadOnly",n,xc("0x16"),((t,e,n)=>!!n||t&&!e)),n.on(xc("0x1"),((t,e)=>{this.fire("addComment",e),n[xc("0x1c")][xc("0x0")]("")})),n.on(xc("0x17"),(()=>this[xc("0x1f")]())),n[xc("0x8")](xc("0x23")).to(this._model.commentThread,xc("0x1e")),e}}const cc=["ck-suggestion-wrapper","ck-suggestion-","ck-comment__info-time","<p>","@external","ck-suggestion","commentsListView","discardSuggestion","ck-annotation__info","value","type","set","querySelector","canDiscard","author","isExternal","ck-annotation__main","map","authoredAt","push","children","join","source","</p>","commentThread","locale","ck-annotation__info-time","bindTemplate","EXTERNAL_IMPORT_WORD_SUGGESTION","ck-suggestion__user","getExternalSuggestionNote","innerHTML","discardButton","attributes","ck-suggestion--disabled-comments","disableComments","_descriptionElement","ck-annotation__user","createElement","_model","EXTERNAL_AVATAR","userView","ck-annotation__info-name","getUserViewNotificationText","importWord",".ck-annotation__content-wrapper",'<span class="ck-suggestion-type">',"_createButton","ck-suggestion__main","color",'" title="',"check","split","extendTemplate","formatDateTime","bind","title","getTemplate","EXTERNAL_IMPORT_WORD_AVATAR","ck-annotation__actions","EXTERNAL_SUGGESTION","Accept suggestion","render","fire","ck-suggestion-wrapper--active","ck-suggestion__info-name","commentThreadInputView","div",'<span class="ck-suggestion-color" style="background-color: ',"_config","description","descriptionParts","ck-suggestion__info","ck-suggestion__actions","acceptSuggestion","isEnabled","isActive","span","acceptButton","change:description"];var lc,dc;lc=cc,dc=343,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.set(uc("0x43"),""),this[uc("0x20")](uc("0x43")).to(this,uc("0x30"),(t=>t&&t[0]?t[0][uc("0x43")]:"")),this.bind("description").to(this,uc("0x30"),this,uc("0x35"),((t,e)=>{let n="";for(const e of t)n+=uc("0x3c")+mc(e.content,e[uc("0x1a")])+uc("0x0");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[uc("0xd")]=null,this[uc("0x37")]=this[uc("0x18")](Yo(e,uc("0x26")),t.icons[uc("0x1c")],"ck-suggestion--accept",uc("0x33"),"sw"),this[uc("0x37")][uc("0x20")](uc("0x34")).to(this,"canAccept"),this[uc("0x9")]=this[uc("0x18")](Yo(e,"Discard suggestion"),t.icons.cancel,"ck-suggestion--discard",uc("0x40"),"sw"),this[uc("0x9")][uc("0x20")]("isEnabled").to(this,uc("0x46")),this[uc("0x12")]=new r.UserView(e,this[uc("0x10")][uc("0x47")],this[uc("0x14")]()),this.userView[uc("0x1e")]({attributes:{class:[uc("0x6"),uc("0xe")]}}),this.setTemplate(this[uc("0x22")]())}[uc("0x22")](){const t=this[uc("0x4")],e=[{tag:"div",attributes:{class:[uc("0x31"),uc("0x41")]},children:[{tag:"span",children:[{text:this[uc("0x12")].name}],attributes:{class:[uc("0x2a"),uc("0x13")]}},{tag:"time",attributes:{datetime:t.to(uc("0x4b")),class:[uc("0x3b"),uc("0x3")]},children:[{text:t.to(uc("0x4b"),(t=>this[uc("0x2e")][uc("0x1f")](t)))}]}]},{tag:uc("0x2c"),attributes:{class:[uc("0x32"),uc("0x24")]},children:[this[uc("0x37")],this.discardButton]},{tag:uc("0x2c"),attributes:{class:["ck-annotation__content-wrapper"]}}];this[uc("0x10")][uc("0x48")]&&e[uc("0x4c")]({tag:uc("0x2c"),attributes:{class:["ck-comment__external"]},children:[{text:this[uc("0x7")]()}]});const n={tag:uc("0x2c"),attributes:{class:[uc("0x39"),t.if(uc("0x35"),uc("0x29")),t.to(uc("0x43"),(t=>uc("0x3a")+t)),this[uc("0x2e")][uc("0xc")]&&uc("0xb")],"data-suggestion-id":this[uc("0x10")].id,"data-thread-id":this._model[uc("0x1")].id,"data-author-id":this._model.author.id,tabindex:-1},children:[{tag:uc("0x2c"),attributes:{class:[uc("0x3e"),"ck-annotation"]},children:[this[uc("0x12")],{tag:uc("0x2c"),attributes:{class:[uc("0x19"),uc("0x49")]},children:e}]}]};return this.commentsListView&&this[uc("0x2b")]&&n[uc("0x4d")].push(this[uc("0x3f")],this[uc("0x2b")]),n}[uc("0x27")](){super.render(),this[uc("0xd")]=this.element[uc("0x45")](uc("0x16")),this[uc("0xd")][uc("0x8")]=this[uc("0x2f")],this.on(uc("0x38"),((t,e,n)=>{this[uc("0xd")][uc("0x8")]=n}))}_createButton(t,e,n,o,r){const i=new s.ButtonView(this[uc("0x2")]);return i[uc("0x44")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[uc("0x1e")]({attributes:{class:n}}),i.on("execute",(()=>{this[uc("0x28")](o,this[uc("0x10")].id)})),i}[uc("0x7")](){return uc("0x15")===this._model[uc("0xa")][uc("0x3d")][uc("0x4f")]?Yo(this[uc("0x2")],uc("0x5")):Yo(this[uc("0x2")],uc("0x25"))}[uc("0x14")](){return this[uc("0x10")][uc("0x48")]?uc("0x15")===this._model[uc("0xa")][uc("0x3d")][uc("0x4f")]?Yo(this[uc("0x2")],uc("0x23"),this[uc("0x10")].creator.name):Yo(this[uc("0x2")],uc("0x11"),this._model.creator.name):null}}function mc(t,e){let n="";return n+=t[uc("0x1d")]("*")[uc("0x4a")](((t,e)=>e%2!=0?uc("0x17")+fc(t)+"</span>":fc(t)))[uc("0x4e")](""),e&&(n+=uc("0x2d")+e[uc("0x42")]+uc("0x1b")+e[uc("0x21")]+'"></span>'),n}function fc(t){const e=document[uc("0xf")](uc("0x36"));return e.innerText=t,e.innerHTML}const hc=["_handleControllerBuffer","get","addComment","keys","CommentsRepository","TrackChangesEditing","acceptButton","Accept all suggestions","getMarkers","trackChanges.SuggestionThreadView","separator","_disableComments","requires","_destroyController","destroy","size","previous","createAnnotationView","getFirstRange","_suggestionToController","add","innerView","refreshSelectedViews","_initializeController","suggestionLoaded","init","descriptionParts","SuggestionThreadView","acceptAllSuggestions","filter","delete","focus","clear","_viewToController","_handleSuggestionControllerDelayed","push","editor","_descriptionFactory","lowest","commentThread","buttonView","addSourceCollector","discardButton","registerAnnotation","plugins","_createUIButton","execute","some","trackChanges","locale","view","change:activeAnnotations","isInContent","arrowView","isMultiRange","model","getDescriptions","Track changes","from","head","change:previous","getByInnerView","button","actionView","_refreshActiveMarkers","length","_annotationViews","createCommentThreadController","mainView","acceptSelectedSuggestions","comments.editorConfig","getAllAdjacentSuggestions","has","comments.maxCommentsWhenCollapsed","getSuggestion","Annotations","getMarkerNames","EditorAnnotations","Discard all selected suggestions","suggestionUnloaded","comments.maxCommentCharsWhenCollapsed","isOn","define","set","trackChanges.disableComments","remove","value","TrackChangesUI","values","listenTo","commands","isEnabled","suggestionChanged","activeMarkers","comments.maxThreadTotalWeight","config","editing","suggestion-","unbind","discardSelectedSuggestions","bind","getJoined","map","reduce","_updateController","commandName"];var pc,bc;pc=hc,bc=113,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("0x5")](){return[Wa,r.Users,Ec("0x67"),Ec("0x44"),"EditorAnnotations"]}static get pluginName(){return Ec("0x50")}constructor(t){super(t),this[Ec("0xc")]=new Map,this[Ec("0x1a")]=new Map,this._annotationViews=new Map,this[Ec("0x63")]=new Map;const e=this[Ec("0x1d")][Ec("0x58")];e[Ec("0x4b")](Ec("0x2"),gc),e[Ec("0x4b")](Ec("0x4d"),!1),this[Ec("0x4")]=e[Ec("0x64")]("trackChanges.disableComments")}[Ec("0x1b")](t,e){0===this._handleControllerBuffer[Ec("0x8")]&&setTimeout((()=>{for(const[t,e]of this[Ec("0x63")]){const n=this[Ec("0xc")].has(t);n||e?n&&e&&this[Ec("0x6")](t):this[Ec("0x10")](t)}this[Ec("0x1d")][Ec("0x25")][Ec("0x64")](Ec("0x46"))[Ec("0xf")](),this[Ec("0x39")](),this[Ec("0x63")][Ec("0x19")]()}),10),this[Ec("0x63")][Ec("0x4c")](t,e)}[Ec("0x12")](){const t=this[Ec("0x1d")],e=t[Ec("0x25")][Ec("0x64")](Ec("0x68")),n=t[Ec("0x25")][Ec("0x64")](Ec("0x44")),o=t[Ec("0x25")].get(Ec("0x46")),s=t[Ec("0x25")][Ec("0x64")](Ec("0x67"));t.ui.componentFactory.add("trackChanges",(t=>this[Ec("0x26")](t))),o[Ec("0x22")]((()=>{const t=[];for(const[e,n]of Array[Ec("0x33")](this[Ec("0xc")])){const o=e[Ec("0x40")](),s=[];for(const t of o){if(!t.isInContent)continue;if(t[Ec("0x2f")]){s[Ec("0x1c")](...t.getRanges());continue}const e=t[Ec("0xb")]();if(s[Ec("0x3a")]>0){const t=s[0][Ec("0x5e")](e);if(t){s[0]=t;continue}}s[Ec("0x1c")](e)}t.push([n.view,s])}return t})),this[Ec("0x52")](e,Ec("0x11"),((t,e)=>{this.listenTo(e,Ec("0x35"),((t,n,o,s)=>{e[Ec("0x2d")]&&(null==o?(this[Ec("0x61")](s.head),this[Ec("0x1b")](e,!1)):(this[Ec("0x61")](o[Ec("0x34")]),this[Ec("0x1b")](e,!0)))})),null===e[Ec("0x9")]?this[Ec("0x1b")](e,!1):this[Ec("0x61")](e[Ec("0x34")])})),this[Ec("0x52")](e,Ec("0x48"),((t,e,n)=>{this.stopListening(e,Ec("0x35")),this[Ec("0x63")][Ec("0x17")](e);const o=n?n[Ec("0x34")]:e,s=this[Ec("0xc")].get(o);null!==n&&this[Ec("0x61")](o),null===n&&s&&this[Ec("0x6")](e)})),this[Ec("0x52")](e,Ec("0x55"),((t,e)=>{this._updateController(e)})),this[Ec("0x52")](n,Ec("0x2c"),(()=>{this[Ec("0x39")]()})),this[Ec("0x52")](s,Ec("0x65"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e.hasSuggestion(n))return;const s=e[Ec("0x43")](n);this[Ec("0xc")][Ec("0x64")](s).view.focus()}),{priority:Ec("0x1f")})}[Ec("0x39")](){const t=this[Ec("0x1d")][Ec("0x25")].get(Ec("0x44")),e=this.editor[Ec("0x25")].get(Ec("0x68")),n=Array[Ec("0x33")](t.activeAnnotations,(t=>t[Ec("0xe")]))[Ec("0x16")]((t=>this._viewToController[Ec("0x41")](t))),o=[];for(const t of n){const e=this[Ec("0x1a")].get(t)[Ec("0x30")].getAllAdjacentSuggestions();o[Ec("0x1c")](...e[Ec("0x60")](((t,e)=>[...t,...e[Ec("0x45")]()]),[]))}e[Ec("0x56")]=o}[Ec("0x26")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Ec("0x1d")][Ec("0x53")][Ec("0x64")]("trackChanges"),r=Yo(t,Ec("0x32"));n[Ec("0x21")].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("0x21")][Ec("0x5d")](Ec("0x4a")).to(o,"value"),n[Ec("0x21")].on("execute",(()=>{o[Ec("0x27")](),this[Ec("0x1d")][Ec("0x59")].view[Ec("0x18")]()}));const i=new e.Collection,x=[{type:"switchbutton",model:{withText:!0,label:r,commandName:Ec("0x29")}},{type:Ec("0x3")},{type:Ec("0x37"),model:{withText:!0,label:Yo(t,Ec("0x0")),commandName:Ec("0x15")}},{type:"button",model:{withText:!0,label:Yo(t,"Accept all selected suggestions"),commandName:Ec("0x3e")}},{type:Ec("0x37"),model:{withText:!0,label:Yo(t,"Discard all suggestions"),commandName:"discardAllSuggestions"}},{type:Ec("0x37"),model:{withText:!0,label:Yo(t,Ec("0x47")),commandName:Ec("0x5c")}}];for(const t of x){let e={type:Ec("0x3")};if(t.model){const n=new s.Model(t[Ec("0x30")]),o=this[Ec("0x1d")].commands[Ec("0x64")](n[Ec("0x62")]);n.bind("isOn",Ec("0x54")).to(o,Ec("0x4f"),Ec("0x54")),e={type:t.type,model:n}}i.add(e)}(0,s.addListToDropdown)(n,i);const a=x[Ec("0x16")]((t=>null!=t[Ec("0x30")]))[Ec("0x5f")]((t=>this[Ec("0x1d")].commands[Ec("0x64")](t[Ec("0x30")][Ec("0x62")]))),c=n[Ec("0x21")];return c[Ec("0x38")][Ec("0x5b")]("isEnabled"),c[Ec("0x2e")][Ec("0x5b")](Ec("0x54")),c.actionView[Ec("0x5d")](Ec("0x54")).to(o,Ec("0x54")),c[Ec("0x2e")].bind("isEnabled").toMany(a,Ec("0x54"),((...t)=>t[Ec("0x28")]((t=>t)))),n.on(Ec("0x27"),(t=>{this[Ec("0x1d")][Ec("0x27")](t.source[Ec("0x62")]),this[Ec("0x1d")][Ec("0x59")][Ec("0x2b")][Ec("0x18")]()})),n}[Ec("0x10")](t){const e=this[Ec("0x1d")],n=e[Ec("0x58")],o=e[Ec("0x25")][Ec("0x64")](Ec("0x44")),s=e.plugins[Ec("0x64")](Ec("0x67")),i=e[Ec("0x25")][Ec("0x64")](Ec("0x46")),x=e[Ec("0x25")][Ec("0x64")](r.Users).me,a=n[Ec("0x64")](Ec("0x29"))[Ec("0x14")],{CommentsListView:c,CommentThreadInputView:l}=e[Ec("0x25")].get("CommentsUI");let d,u;this[Ec("0x3b")][Ec("0x41")](t.id)?(u=this._annotationViews[Ec("0x64")](t.id),d=u[Ec("0x3d")]):(d=new a(e[Ec("0x2a")],t,x,{disableComments:this[Ec("0x4")],editorConfig:n[Ec("0x64")](Ec("0x3f")),maxCommentsWhenCollapsed:n[Ec("0x64")](Ec("0x42")),maxThreadTotalWeight:n[Ec("0x64")](Ec("0x57")),maxCommentCharsWhenCollapsed:n[Ec("0x64")](Ec("0x49")),formatDateTime:(0,r.getDateTimeFormatter)(n[Ec("0x64")](Ec("0x2a"))),CommentView:n[Ec("0x64")]("comments").CommentView,CommentsListView:c,CommentThreadInputView:l}),d[Ec("0x69")].on(Ec("0x27"),(()=>{e.editing[Ec("0x2b")][Ec("0x18")]()})),d[Ec("0x23")].on(Ec("0x27"),(()=>{e.editing[Ec("0x2b")][Ec("0x18")]()})),u=o[Ec("0xa")](this.editor[Ec("0x2a")],d),u[Ec("0x5d")]("isDirty").to(d,"isDirty"),u[Ec("0x5d")](Ec("0x3a")).to(d),u[Ec("0x5d")]("type").to(d,"type",(t=>Ec("0x5a")+t)),this[Ec("0x3b")][Ec("0x4c")](t.id,u));const g=s[Ec("0x3c")](t[Ec("0x20")],d),m=new oc(e,t,d,g),f=t.getAllAdjacentSuggestions()[Ec("0x16")]((t=>t.isInContent));d[Ec("0x13")]=e[Ec("0x25")].get("TrackChangesEditing")[Ec("0x1e")][Ec("0x31")](f),this._suggestionToController[Ec("0x4c")](t,m),this._viewToController.set(d,m);const h=o.createAnnotation({view:u,target:()=>{const n=[],o=t[Ec("0x40")]()[Ec("0x16")]((t=>t.isInContent));for(const t of o)n[Ec("0x1c")](...t[Ec("0x1")]());return(0,r.getAllMarkersDomElementsSorted)(e.editing,n)},type:()=>"suggestion-"+m[Ec("0x2b")].type});o[Ec("0xd")](h),i[Ec("0x24")](h)}_destroyController(t){const e=this[Ec("0x1d")][Ec("0x25")].get(Ec("0x44")),n=this[Ec("0xc")][Ec("0x64")](t),o=n[Ec("0x2b")],s=e[Ec("0x36")](o);s&&e[Ec("0x4e")](s),this[Ec("0xc")][Ec("0x17")](t),this[Ec("0x1a")].delete(o),n.destroy()}[Ec("0x61")](t){if(!t[Ec("0x2d")]||!this[Ec("0xc")][Ec("0x41")](t))return;const e=this[Ec("0x1d")][Ec("0x25")][Ec("0x64")](Ec("0x68")),n=this[Ec("0xc")].get(t),o=t.getAllAdjacentSuggestions();n.view.descriptionParts=e[Ec("0x1e")][Ec("0x31")](o)}[Ec("0x7")](){for(const t of this[Ec("0xc")][Ec("0x66")]())this[Ec("0x6")](t);for(const t of this[Ec("0x3b")][Ec("0x51")]())t[Ec("0x3d")][Ec("0x7")]();super.destroy()}}var Tc,Cc,yc=["addSuggestion","editor","TrackChanges","get","addSuggestionData","getSuggestion","getSuggestions","adapter","pluginName","plugins"];Tc=yc,Cc=227,function(t){for(;--t;)Tc.push(Tc.shift())}(++Cc);var kc=function(t,e){return yc[t-=0]};class Ac extends t.Plugin{static get requires(){return[Wa,_c,"Comments"]}static get[kc("0x1")](){return kc("0x5")}set[kc("0x0")](t){this[kc("0x4")][kc("0x2")][kc("0x6")](Wa)[kc("0x0")]=t}get[kc("0x0")](){return this[kc("0x4")][kc("0x2")][kc("0x6")](Wa)[kc("0x0")]}[kc("0x3")](t){return this[kc("0x4")][kc("0x2")][kc("0x6")](Wa)[kc("0x7")](t)}[kc("0x9")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[kc("0x4")][kc("0x2")][kc("0x6")](Wa).getSuggestions({skipNotAttached:t,toJSON:e})}[kc("0x8")](t){return this[kc("0x4")][kc("0x2")][kc("0x6")](Wa).getSuggestion(t)}}const vc=["editorCreator","TrackChangesDataGetter","end","function","discardAllSuggestions","plugins","pluginName","TrackChangesEditing","trackChangesData.editorCreator","data","TrackChangesData","getDataWithDiscardedSuggestions","getRootsAttributes","push","config","document","editor","rootsAttributes","reduce","div","_adapter","addSuggestionData","trackChangesData","init","model","getUser","set","getFullData","map","constructor","define","result","createElement","track-changes-data-invalid-editor-creator","createDocumentFragment","get","getRootNames","requires","name","addUser","Users"];var Rc,Sc;Rc=vc,Sc=323,function(t){for(;--t;)Rc.push(Rc.shift())}(++Sc);const Ic=function(t,e){return vc[t-=0]},Lc=["Pagination"];class Nc extends t.Plugin{static get[Ic("0x1")](){return[Wa]}static get[Ic("0xb")](){return Ic("0xf")}[Ic("0x1c")](){const t=this.editor;if(t[Ic("0x13")][Ic("0x23")](Ic("0xd"),(e=>{const n=t[Ic("0x1d")][Ic("0x14")][Ic("0x0")]().reduce(((t,e)=>(t[e]="",t)),{});return t[Ic("0x22")].create(n,e)})),Ic("0x8")!=typeof t[Ic("0x13")][Ic("0x28")]("trackChangesData")[Ic("0x5")])throw new e.CKEditorError(Ic("0x26"))}getDataWithAcceptedSuggestions(t){return Oc(this[Ic("0x15")],!0,t)}[Ic("0x10")](t){return Oc(this[Ic("0x15")],!1,t)}}class wc extends t.Plugin{static get[Ic("0xb")](){return Ic("0x6")}constructor(t){super(t),this[Ic("0x24")]=Ic("0x7")}[Ic("0x1c")](){this[Ic("0x15")].plugins.get("CommentsRepository")._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.editor[Ic("0xa")][Ic("0x28")](Ic("0xc"))[Ic("0x19")]=null}}function Mc(t){return void 0!==t.getRootsAttributes}async function Oc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Lc);o[Ic("0xa")][Ic("0x12")](Wa,wc),o[Ic("0x16")]=Mc(t)?t[Ic("0x11")]():void 0;const s=document[Ic("0x27")](),i=t[Ic("0x13")][Ic("0x28")](Ic("0x1b"))[Ic("0x5")],x=await i(o,(()=>function(t){const e=document[Ic("0x25")](Ic("0x18"));return t.appendChild(e),e}(s)));!function(t,e){const n=t.model[Ic("0x14")].getRootNames()[Ic("0x17")](((e,n)=>(e[n]=t[Ic("0xe")][Ic("0x28")]({rootName:n}),e)),{}),o=t.plugins.get("Users").users[Ic("0x21")]((t=>({id:t.id,name:t[Ic("0x2")]}))),s=t[Ic("0xa")][Ic("0x28")](Ic("0xc")).getSuggestions({skipNotAttached:!0,toJSON:!0}),r=e[Ic("0xa")].get(Ic("0x4")),i=e[Ic("0xa")][Ic("0x28")](Ic("0xc"));for(const t of o)r[Ic("0x1e")](t.id)||r[Ic("0x3")](t);r.me||r.useAnonymousUser();for(const t of s)i[Ic("0x1a")](t);e[Ic("0xe")][Ic("0x1f")](n)}(t,x),x.execute(e?"acceptAllSuggestions":Ic("0x9"));const a=Mc(x)?x[Ic("0x20")](n):x.data.get(n);return await x.destroy(),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();