@ckeditor/ckeditor5-track-changes 34.2.0 → 35.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/build/translations/ar.js +1 -0
- package/build/translations/bg.js +1 -0
- package/build/translations/bn.js +1 -0
- package/build/translations/ca.js +1 -0
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -0
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -0
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -0
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -0
- package/build/translations/ko.js +1 -0
- package/build/translations/lt.js +1 -0
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -0
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -0
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -0
- package/build/translations/ro.js +1 -0
- package/build/translations/ru.js +1 -0
- package/build/translations/sk.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -0
- package/build/translations/th.js +1 -0
- package/build/translations/tr.js +1 -1
- package/build/translations/uk.js +1 -0
- package/build/translations/vi.js +1 -0
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/translations/ar.po +469 -0
- package/lang/translations/bg.po +397 -0
- package/lang/translations/bn.po +423 -0
- package/lang/translations/ca.po +397 -0
- package/lang/translations/cs.po +32 -32
- package/lang/translations/da.po +34 -34
- package/lang/translations/de.po +5 -5
- package/lang/translations/el.po +3 -3
- package/lang/translations/en-au.po +3 -3
- package/lang/translations/es.po +50 -50
- package/lang/translations/et.po +100 -100
- package/lang/translations/fi.po +397 -0
- package/lang/translations/fr.po +10 -10
- package/lang/translations/gl.po +3 -3
- package/lang/translations/he.po +433 -0
- package/lang/translations/hi.po +14 -14
- package/lang/translations/hr.po +4 -4
- package/lang/translations/hu.po +397 -0
- package/lang/translations/id.po +77 -77
- package/lang/translations/it.po +4 -4
- package/lang/translations/ja.po +379 -0
- package/lang/translations/ko.po +379 -0
- package/lang/translations/lt.po +433 -0
- package/lang/translations/lv.po +77 -77
- package/lang/translations/ms.po +379 -0
- package/lang/translations/nl.po +32 -32
- package/lang/translations/no.po +397 -0
- package/lang/translations/pl.po +18 -18
- package/lang/translations/pt-br.po +4 -4
- package/lang/translations/pt.po +415 -0
- package/lang/translations/ro.po +415 -0
- package/lang/translations/ru.po +435 -0
- package/lang/translations/sk.po +5 -5
- package/lang/translations/sr-latn.po +1 -1
- package/lang/translations/sr.po +55 -55
- package/lang/translations/sv.po +397 -0
- package/lang/translations/th.po +379 -0
- package/lang/translations/tr.po +14 -14
- package/lang/translations/uk.po +433 -0
- package/lang/translations/vi.po +379 -0
- package/lang/translations/zh-cn.po +2 -2
- package/lang/translations/zh.po +66 -66
- package/package.json +5 -4
- package/src/commands/acceptallsuggestionscommand.js +1 -1
- package/src/commands/acceptselectedsuggestionscommand.js +1 -1
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardallsuggestionscommand.js +1 -1
- package/src/commands/discardselectedsuggestionscommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +23 -0
- package/src/integrations/table.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/getrangesofblockgroups.js +1 -1
- package/src/utils/getselectedsuggestions.js +1 -1
- package/src/utils/hashobject.js +1 -1
- package/src/utils/normalizedescription.js +1 -1
- package/src/utils/sortsuggestions.js +1 -1
package/build/track-changes.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
/*!
|
|
3
3
|
* @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
4
4
|
* For licensing, see LICENSE.md.
|
|
5
|
-
*/(()=>{var t={596:t=>{t.exports='\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'},417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var r=e[o];if(void 0!==r)return r.exports;var s=e[o]={exports:{}};return t[o](s,s.exports,n),s.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},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:()=>Fx,TrackChanges:()=>tc,TrackChangesData:()=>ac});var t=n(704),e=n(209),r=n(273),s=n(417);const i=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const a="object"==typeof global&&global&&global.Object===Object&&global;var x="object"==typeof self&&self&&self.Object===Object&&self;const c=a||x||Function("return this")();const l=function(){return c.Date.now()};var u=/\s/;const d=function(t){for(var e=t.length;e--&&u.test(t.charAt(e)););return e};var g=/^\s+/;const f=function(t){return t?t.slice(0,d(t)+1).replace(g,""):t};const m=c.Symbol;var h=Object.prototype,p=h.hasOwnProperty,b=h.toString,E=m?m.toStringTag:void 0;const _=function(t){var e=p.call(t,E),n=t[E];try{t[E]=void 0;var o=!0}catch(t){}var r=b.call(t);return o&&(e?t[E]=n:delete t[E]),r};var y=Object.prototype.toString;const T=function(t){return y.call(t)};var C=m?m.toStringTag:void 0;const k=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":C&&C in Object(t)?_(t):T(t)};const v=function(t){return null!=t&&"object"==typeof t};const A=function(t){return"symbol"==typeof t||v(t)&&"[object Symbol]"==k(t)};var R=/^[-+]0x[0-9a-f]+$/i,S=/^0b[01]+$/i,I=/^0o[0-7]+$/i,w=parseInt;const M=function(t){if("number"==typeof t)return t;if(A(t))return NaN;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=f(t);var n=S.test(t);return n||I.test(t)?w(t.slice(2),n?2:8):R.test(t)?NaN:+t};var N=Math.max,L=Math.min;const O=function(t,e,n){var o,r,s,a,x,c,u=0,d=!1,g=!1,f=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function m(e){var n=o,s=r;return o=r=void 0,u=e,a=t.apply(s,n)}function h(t){return u=t,x=setTimeout(b,e),d?m(t):a}function p(t){var n=t-c;return void 0===c||n>=e||n<0||g&&t-u>=s}function b(){var t=l();if(p(t))return E(t);x=setTimeout(b,function(t){var n=e-(t-c);return g?L(n,s-(t-u)):n}(t))}function E(t){return x=void 0,f&&o?m(t):(o=r=void 0,a)}function _(){var t=l(),n=p(t);if(o=arguments,r=this,c=t,n){if(void 0===x)return h(c);if(g)return clearTimeout(x),x=setTimeout(b,e),m(c)}return void 0===x&&(x=setTimeout(b,e)),a}return e=M(e)||0,i(n)&&(d=!!n.leading,s=(g="maxWait"in n)?N(M(n.maxWait)||0,e):s,f="trailing"in n?!!n.trailing:f),_.cancel=function(){void 0!==x&&clearTimeout(x),u=0,o=c=r=x=void 0},_.flush=function(){return void 0===x?a:E(l())},_};var F=n(492),P=n(995);const D=["has","_disableUnsupportedCommands","_enabledCommands","refresh","_enableCommands","commands","clearForceDisabled","editor","forceDisabled","isEnabled"];var j,B;j=D,B=197,function(t){for(;--t;)j.push(j.shift())}(++B);const U=function(t,e){return D[t-=0]};class H extends t.Command{constructor(t,e){super(t),this._enabledCommands=e,this.value=!1,this[U("0x6")]()}refresh(){this[U("0x2")]=!0}execute(){this.value=!this.value,this.value?this[U("0x4")]():this[U("0x7")]()}_disableUnsupportedCommands(){for(const t of this[U("0x0")][U("0x8")].commands())t.affectsData&&!this[U("0x5")][U("0x3")](t)&&t[U("0x1")]("TrackChangesCommand")}[U("0x7")](){for(const t of this[U("0x0")][U("0x8")][U("0x8")]())t.affectsData&&!this[U("0x5")].has(t)&&t[U("0x9")]("TrackChangesCommand")}}const G=["_suggestions","plugins","track-changes-accept-suggestion-not-found","refresh","editor","get"];var V,z;V=G,z=359,function(t){for(;--t;)V.push(V.shift())}(++z);const W=function(t,e){return G[t-=0]};class K extends t.Command{constructor(t,e){super(t),this[W("0x1")]=e,this[W("0x4")]()}[W("0x4")](){this.isEnabled=!0}execute(t){const n=this._suggestions[W("0x0")](t);if(!n)throw new e.CKEditorError(W("0x3"),this);this[W("0x5")][W("0x2")][W("0x0")]("TrackChangesEditing").acceptSuggestion(n)}}const $=["editor","track-changes-discard-suggestion-not-found","execute","get","discardSuggestion","TrackChangesEditing","isEnabled","refresh","_suggestions","plugins"];var q,X;q=$,X=267,function(t){for(;--t;)q.push(q.shift())}(++X);const J=function(t,e){return $[t-=0]};class Q extends t.Command{constructor(t,e){super(t),this._suggestions=e,this[J("0x0")]()}[J("0x0")](){this[J("0x9")]=!0}[J("0x5")](t){const n=this[J("0x1")][J("0x6")](t);if(!n)throw new e.CKEditorError(J("0x4"),this);this[J("0x3")][J("0x2")][J("0x6")](J("0x8"))[J("0x7")](n)}}var Y,Z,tt=["type","deletion"];Y=tt,Z=364,function(t){for(;--t;)Y.push(Y.shift())}(++Z);var et=function(t,e){return tt[t-=0]};function nt(t){return t.sort(((t,e)=>"deletion"==t[et("0x0")]&&et("0x1")!=e.type?-1:et("0x1")!=t.type&&"deletion"==e[et("0x0")]?1:0))}const ot=["model","isInContent","editor","change","values","from","refresh","_suggestions","isEnabled","execute","_acceptSuggestionCommand","some"];var rt,st;rt=ot,st=158,function(t){for(;--t;)rt.push(rt.shift())}(++st);const it=function(t,e){return ot[t-=0]};class at extends t.Command{constructor(t,e,n){super(t),this[it("0x8")]=e,this[it("0x5")]=n,this[it("0x4")]()}[it("0x4")](){const t=this[it("0x8")];this.isEnabled=t[it("0x6")]&&Array[it("0x3")](this[it("0x5")].values())[it("0x9")]((t=>t[it("0xb")]))}[it("0x7")](){this[it("0x0")][it("0xa")][it("0x1")]((()=>{const t=nt(Array.from(this[it("0x5")][it("0x2")]()));for(const e of t)e[it("0xb")]&&this[it("0x8")][it("0x7")](e.id)}))}}const xt=["getMarkers","start","getRange","isMultiRange","isTouching","isIntersecting","end","isCollapsed","add","from"];var ct,lt;ct=xt,lt=381,function(t){for(;--t;)ct.push(ct.shift())}(++lt);const ut=function(t,e){return xt[t-=0]};function dt(t,e){const n=Array[ut("0x8")](t.getRanges()),o=new Set;for(const r of e)if(r.isInContent)for(const e of n)for(const n of r[ut("0x9")]()){const s=n[ut("0x1")]();(e[ut("0x4")](s)||t[ut("0x6")]&&!r[ut("0x2")]&&r.next&&s[ut("0x5")][ut("0x3")](e[ut("0x0")]))&&o[ut("0x7")](r)}return o}const gt=["editor","from","refresh","size","selection","execute","_suggestions","_selectedSuggestions","isEnabled","model","_acceptSuggestionCommand"];var ft,mt;ft=gt,mt=441,function(t){for(;--t;)ft.push(ft.shift())}(++mt);const ht=function(t,e){return gt[t-=0]};class pt extends t.Command{constructor(t,e,n){super(t),this[ht("0x9")]=e,this[ht("0x5")]=n,this[ht("0x6")]=new Set,this[ht("0x1")]()}[ht("0x1")](){const t=this._acceptSuggestionCommand,e=this[ht("0xa")][ht("0x8")].document[ht("0x3")],n=Array[ht("0x0")](this[ht("0x5")].values());this[ht("0x6")]=dt(e,n),this[ht("0x7")]=t[ht("0x7")]&&!!this[ht("0x6")][ht("0x2")]}[ht("0x4")](){this[ht("0xa")][ht("0x8")].change((()=>{const t=nt(Array[ht("0x0")](this[ht("0x6")]));for(const e of t)this[ht("0x9")][ht("0x4")](e.id)}))}}const bt=["editor","execute","model","isInContent","_suggestions","change","from","_discardSuggestionCommand","values","isEnabled","refresh","some"];var Et,_t;Et=bt,_t=163,function(t){for(;--t;)Et.push(Et.shift())}(++_t);const yt=function(t,e){return bt[t-=0]};class Tt extends t.Command{constructor(t,e,n){super(t),this[yt("0x0")]=e,this._suggestions=n,this[yt("0x3")]()}[yt("0x3")](){const t=this[yt("0x0")];this.isEnabled=t[yt("0x2")]&&Array[yt("0xb")](this[yt("0x9")][yt("0x1")]())[yt("0x4")]((t=>t[yt("0x8")]))}[yt("0x6")](){this[yt("0x5")][yt("0x7")][yt("0xa")]((()=>{for(const t of this[yt("0x9")][yt("0x1")]())t[yt("0x8")]&&this._discardSuggestionCommand[yt("0x6")](t.id)}))}}const Ct=["isEnabled","_suggestions","execute","change","editor","model","size","_discardSuggestionCommand","refresh","selection","values","_selectedSuggestions"];var kt,vt;kt=Ct,vt=447,function(t){for(;--t;)kt.push(kt.shift())}(++vt);const At=function(t,e){return Ct[t-=0]};class Rt extends t.Command{constructor(t,e,n){super(t),this[At("0x4")]=e,this._suggestions=n,this[At("0x8")]=new Set,this[At("0x5")]()}[At("0x5")](){const t=this._discardSuggestionCommand,e=this[At("0x1")].model.document[At("0x6")],n=Array.from(this[At("0xa")][At("0x7")]());this[At("0x8")]=dt(e,n),this[At("0x9")]=t.isEnabled&&!!this._selectedSuggestions[At("0x3")]}[At("0xb")](){this[At("0x1")][At("0x2")][At("0x0")]((()=>{for(const t of this[At("0x8")])this._discardSuggestionCommand[At("0xb")](t.id)}))}}const St=function(){this.__data__=[],this.size=0};const It=function(t,e){return t===e||t!=t&&e!=e};const wt=function(t,e){for(var n=t.length;n--;)if(It(t[n][0],e))return n;return-1};var Mt=Array.prototype.splice;const Nt=function(t){var e=this.__data__,n=wt(e,t);return!(n<0)&&(n==e.length-1?e.pop():Mt.call(e,n,1),--this.size,!0)};const Lt=function(t){var e=this.__data__,n=wt(e,t);return n<0?void 0:e[n][1]};const Ot=function(t){return wt(this.__data__,t)>-1};const Ft=function(t,e){var n=this.__data__,o=wt(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function Pt(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])}}Pt.prototype.clear=St,Pt.prototype.delete=Nt,Pt.prototype.get=Lt,Pt.prototype.has=Ot,Pt.prototype.set=Ft;const Dt=Pt;const jt=function(){this.__data__=new Dt,this.size=0};const Bt=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Ut=function(t){return this.__data__.get(t)};const Ht=function(t){return this.__data__.has(t)};const Gt=function(t){if(!i(t))return!1;var e=k(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const Vt=c["__core-js_shared__"];var zt,Wt=(zt=/[^.]+$/.exec(Vt&&Vt.keys&&Vt.keys.IE_PROTO||""))?"Symbol(src)_1."+zt:"";const Kt=function(t){return!!Wt&&Wt in t};var $t=Function.prototype.toString;const qt=function(t){if(null!=t){try{return $t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Xt=/^\[object .+?Constructor\]$/,Jt=Function.prototype,Qt=Object.prototype,Yt=Jt.toString,Zt=Qt.hasOwnProperty,te=RegExp("^"+Yt.call(Zt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const ee=function(t){return!(!i(t)||Kt(t))&&(Gt(t)?te:Xt).test(qt(t))};const ne=function(t,e){return null==t?void 0:t[e]};const oe=function(t,e){var n=ne(t,e);return ee(n)?n:void 0};const re=oe(c,"Map");const se=oe(Object,"create");const ie=function(){this.__data__=se?se(null):{},this.size=0};const ae=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var xe=Object.prototype.hasOwnProperty;const ce=function(t){var e=this.__data__;if(se){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return xe.call(e,t)?e[t]:void 0};var le=Object.prototype.hasOwnProperty;const ue=function(t){var e=this.__data__;return se?void 0!==e[t]:le.call(e,t)};const de=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=se&&void 0===e?"__lodash_hash_undefined__":e,this};function ge(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])}}ge.prototype.clear=ie,ge.prototype.delete=ae,ge.prototype.get=ce,ge.prototype.has=ue,ge.prototype.set=de;const fe=ge;const me=function(){this.size=0,this.__data__={hash:new fe,map:new(re||Dt),string:new fe}};const he=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const pe=function(t,e){var n=t.__data__;return he(e)?n["string"==typeof e?"string":"hash"]:n.map};const be=function(t){var e=pe(this,t).delete(t);return this.size-=e?1:0,e};const Ee=function(t){return pe(this,t).get(t)};const _e=function(t){return pe(this,t).has(t)};const ye=function(t,e){var n=pe(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function Te(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])}}Te.prototype.clear=me,Te.prototype.delete=be,Te.prototype.get=Ee,Te.prototype.has=_e,Te.prototype.set=ye;const Ce=Te;const ke=function(t,e){var n=this.__data__;if(n instanceof Dt){var o=n.__data__;if(!re||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Ce(o)}return n.set(t,e),this.size=n.size,this};function ve(t){var e=this.__data__=new Dt(t);this.size=e.size}ve.prototype.clear=jt,ve.prototype.delete=Bt,ve.prototype.get=Ut,ve.prototype.has=Ht,ve.prototype.set=ke;const Ae=ve;const Re=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const Se=function(){try{var t=oe(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const Ie=function(t,e,n){"__proto__"==e&&Se?Se(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var we=Object.prototype.hasOwnProperty;const Me=function(t,e,n){var o=t[e];we.call(t,e)&&It(o,n)&&(void 0!==n||e in t)||Ie(t,e,n)};const Ne=function(t,e,n,o){var r=!n;n||(n={});for(var s=-1,i=e.length;++s<i;){var a=e[s],x=o?o(n[a],t[a],a,n,t):void 0;void 0===x&&(x=t[a]),r?Ie(n,a,x):Me(n,a,x)}return n};const Le=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const Oe=function(t){return v(t)&&"[object Arguments]"==k(t)};var Fe=Object.prototype,Pe=Fe.hasOwnProperty,De=Fe.propertyIsEnumerable;const je=Oe(function(){return arguments}())?Oe:function(t){return v(t)&&Pe.call(t,"callee")&&!De.call(t,"callee")};const Be=Array.isArray;const Ue=function(){return!1};var He="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ge=He&&"object"==typeof module&&module&&!module.nodeType&&module,Ve=Ge&&Ge.exports===He?c.Buffer:void 0;const ze=(Ve?Ve.isBuffer:void 0)||Ue;var We=/^(?:0|[1-9]\d*)$/;const Ke=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&We.test(t))&&t>-1&&t%1==0&&t<e};const $e=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var qe={};qe["[object Float32Array]"]=qe["[object Float64Array]"]=qe["[object Int8Array]"]=qe["[object Int16Array]"]=qe["[object Int32Array]"]=qe["[object Uint8Array]"]=qe["[object Uint8ClampedArray]"]=qe["[object Uint16Array]"]=qe["[object Uint32Array]"]=!0,qe["[object Arguments]"]=qe["[object Array]"]=qe["[object ArrayBuffer]"]=qe["[object Boolean]"]=qe["[object DataView]"]=qe["[object Date]"]=qe["[object Error]"]=qe["[object Function]"]=qe["[object Map]"]=qe["[object Number]"]=qe["[object Object]"]=qe["[object RegExp]"]=qe["[object Set]"]=qe["[object String]"]=qe["[object WeakMap]"]=!1;const Xe=function(t){return v(t)&&$e(t.length)&&!!qe[k(t)]};const Je=function(t){return function(e){return t(e)}};var Qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ye=Qe&&"object"==typeof module&&module&&!module.nodeType&&module,Ze=Ye&&Ye.exports===Qe&&a.process;const tn=function(){try{var t=Ye&&Ye.require&&Ye.require("util").types;return t||Ze&&Ze.binding&&Ze.binding("util")}catch(t){}}();var en=tn&&tn.isTypedArray;const nn=en?Je(en):Xe;var on=Object.prototype.hasOwnProperty;const rn=function(t,e){var n=Be(t),o=!n&&je(t),r=!n&&!o&&ze(t),s=!n&&!o&&!r&&nn(t),i=n||o||r||s,a=i?Le(t.length,String):[],x=a.length;for(var c in t)!e&&!on.call(t,c)||i&&("length"==c||r&&("offset"==c||"parent"==c)||s&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Ke(c,x))||a.push(c);return a};var sn=Object.prototype;const an=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||sn)};const xn=function(t,e){return function(n){return t(e(n))}};const cn=xn(Object.keys,Object);var ln=Object.prototype.hasOwnProperty;const un=function(t){if(!an(t))return cn(t);var e=[];for(var n in Object(t))ln.call(t,n)&&"constructor"!=n&&e.push(n);return e};const dn=function(t){return null!=t&&$e(t.length)&&!Gt(t)};const gn=function(t){return dn(t)?rn(t):un(t)};const fn=function(t,e){return t&&Ne(e,gn(e),t)};const mn=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var hn=Object.prototype.hasOwnProperty;const pn=function(t){if(!i(t))return mn(t);var e=an(t),n=[];for(var o in t)("constructor"!=o||!e&&hn.call(t,o))&&n.push(o);return n};const bn=function(t){return dn(t)?rn(t,!0):pn(t)};const En=function(t,e){return t&&Ne(e,bn(e),t)};var _n="object"==typeof exports&&exports&&!exports.nodeType&&exports,yn=_n&&"object"==typeof module&&module&&!module.nodeType&&module,Tn=yn&&yn.exports===_n?c.Buffer:void 0,Cn=Tn?Tn.allocUnsafe:void 0;const kn=function(t,e){if(e)return t.slice();var n=t.length,o=Cn?Cn(n):new t.constructor(n);return t.copy(o),o};const vn=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const An=function(t,e){for(var n=-1,o=null==t?0:t.length,r=0,s=[];++n<o;){var i=t[n];e(i,n,t)&&(s[r++]=i)}return s};const Rn=function(){return[]};var Sn=Object.prototype.propertyIsEnumerable,In=Object.getOwnPropertySymbols;const wn=In?function(t){return null==t?[]:(t=Object(t),An(In(t),(function(e){return Sn.call(t,e)})))}:Rn;const Mn=function(t,e){return Ne(t,wn(t),e)};const Nn=function(t,e){for(var n=-1,o=e.length,r=t.length;++n<o;)t[r+n]=e[n];return t};const Ln=xn(Object.getPrototypeOf,Object);const On=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)Nn(e,wn(t)),t=Ln(t);return e}:Rn;const Fn=function(t,e){return Ne(t,On(t),e)};const Pn=function(t,e,n){var o=e(t);return Be(t)?o:Nn(o,n(t))};const Dn=function(t){return Pn(t,gn,wn)};const jn=function(t){return Pn(t,bn,On)};const Bn=oe(c,"DataView");const Un=oe(c,"Promise");const Hn=oe(c,"Set");const Gn=oe(c,"WeakMap");var Vn="[object Map]",zn="[object Promise]",Wn="[object Set]",Kn="[object WeakMap]",$n="[object DataView]",qn=qt(Bn),Xn=qt(re),Jn=qt(Un),Qn=qt(Hn),Yn=qt(Gn),Zn=k;(Bn&&Zn(new Bn(new ArrayBuffer(1)))!=$n||re&&Zn(new re)!=Vn||Un&&Zn(Un.resolve())!=zn||Hn&&Zn(new Hn)!=Wn||Gn&&Zn(new Gn)!=Kn)&&(Zn=function(t){var e=k(t),n="[object Object]"==e?t.constructor:void 0,o=n?qt(n):"";if(o)switch(o){case qn:return $n;case Xn:return Vn;case Jn:return zn;case Qn:return Wn;case Yn:return Kn}return e});const to=Zn;var eo=Object.prototype.hasOwnProperty;const no=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&eo.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const oo=c.Uint8Array;const ro=function(t){var e=new t.constructor(t.byteLength);return new oo(e).set(new oo(t)),e};const so=function(t,e){var n=e?ro(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var io=/\w*$/;const ao=function(t){var e=new t.constructor(t.source,io.exec(t));return e.lastIndex=t.lastIndex,e};var xo=m?m.prototype:void 0,co=xo?xo.valueOf:void 0;const lo=function(t){return co?Object(co.call(t)):{}};const uo=function(t,e){var n=e?ro(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const go=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return ro(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return so(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 uo(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 ao(t);case"[object Symbol]":return lo(t)}};var fo=Object.create;const mo=function(){function t(){}return function(e){if(!i(e))return{};if(fo)return fo(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const ho=function(t){return"function"!=typeof t.constructor||an(t)?{}:mo(Ln(t))};const po=function(t){return v(t)&&"[object Map]"==to(t)};var bo=tn&&tn.isMap;const Eo=bo?Je(bo):po;const _o=function(t){return v(t)&&"[object Set]"==to(t)};var yo=tn&&tn.isSet;const To=yo?Je(yo):_o;var Co="[object Arguments]",ko="[object Function]",vo="[object Object]",Ao={};Ao[Co]=Ao["[object Array]"]=Ao["[object ArrayBuffer]"]=Ao["[object DataView]"]=Ao["[object Boolean]"]=Ao["[object Date]"]=Ao["[object Float32Array]"]=Ao["[object Float64Array]"]=Ao["[object Int8Array]"]=Ao["[object Int16Array]"]=Ao["[object Int32Array]"]=Ao["[object Map]"]=Ao["[object Number]"]=Ao["[object Object]"]=Ao["[object RegExp]"]=Ao["[object Set]"]=Ao["[object String]"]=Ao["[object Symbol]"]=Ao["[object Uint8Array]"]=Ao["[object Uint8ClampedArray]"]=Ao["[object Uint16Array]"]=Ao["[object Uint32Array]"]=!0,Ao["[object Error]"]=Ao[ko]=Ao["[object WeakMap]"]=!1;const Ro=function t(e,n,o,r,s,a){var x,c=1&n,l=2&n,u=4&n;if(o&&(x=s?o(e,r,s,a):o(e)),void 0!==x)return x;if(!i(e))return e;var d=Be(e);if(d){if(x=no(e),!c)return vn(e,x)}else{var g=to(e),f=g==ko||"[object GeneratorFunction]"==g;if(ze(e))return kn(e,c);if(g==vo||g==Co||f&&!s){if(x=l||f?{}:ho(e),!c)return l?Fn(e,En(x,e)):Mn(e,fn(x,e))}else{if(!Ao[g])return s?e:{};x=go(e,g,c)}}a||(a=new Ae);var m=a.get(e);if(m)return m;a.set(e,x),To(e)?e.forEach((function(r){x.add(t(r,n,o,r,e,a))})):Eo(e)&&e.forEach((function(r,s){x.set(s,t(r,n,o,s,e,a))}));var h=d?void 0:(u?l?jn:Dn:l?bn:gn)(e);return Re(h||e,(function(r,s){h&&(r=e[s=r]),Me(x,s,t(r,n,o,s,e,a))})),x};const So=function(t){return Ro(t,5)};var Io=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wo=/^\w*$/;const Mo=function(t,e){if(Be(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!A(t))||(wo.test(t)||!Io.test(t)||null!=e&&t in Object(e))};function No(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,r=e?e.apply(this,o):o[0],s=n.cache;if(s.has(r))return s.get(r);var i=t.apply(this,o);return n.cache=s.set(r,i)||s,i};return n.cache=new(No.Cache||Ce),n}No.Cache=Ce;const Lo=No;var Oo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fo=/\\(\\)?/g;const Po=function(t){var e=Lo(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(Oo,(function(t,n,o,r){e.push(o?r.replace(Fo,"$1"):n||t)})),e}));const Do=function(t,e){for(var n=-1,o=null==t?0:t.length,r=Array(o);++n<o;)r[n]=e(t[n],n,t);return r};var jo=m?m.prototype:void 0,Bo=jo?jo.toString:void 0;const Uo=function t(e){if("string"==typeof e)return e;if(Be(e))return Do(e,t)+"";if(A(e))return Bo?Bo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const Ho=function(t){return null==t?"":Uo(t)};const Go=function(t,e){return Be(t)?t:Mo(t,e)?[t]:Po(Ho(t))};const Vo=function(t){if("string"==typeof t||A(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const zo=function(t,e,n,o){if(!i(t))return t;for(var r=-1,s=(e=Go(e,t)).length,a=s-1,x=t;null!=x&&++r<s;){var c=Vo(e[r]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(r!=a){var u=x[c];void 0===(l=o?o(u,c,x):void 0)&&(l=i(u)?u:Ke(e[r+1])?[]:{})}Me(x,c,l),x=x[c]}return t};const Wo=function(t,e,n){return null==t?t:zo(t,e,n)};const Ko=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const $o=function(t){return this.__data__.has(t)};function qo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Ce;++e<n;)this.add(t[e])}qo.prototype.add=qo.prototype.push=Ko,qo.prototype.has=$o;const Xo=qo;const Jo=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 Qo=function(t,e){return t.has(e)};const Yo=function(t,e,n,o,r,s){var i=1&n,a=t.length,x=e.length;if(a!=x&&!(i&&x>a))return!1;var c=s.get(t),l=s.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new Xo:void 0;for(s.set(t,e),s.set(e,t);++u<a;){var f=t[u],m=e[u];if(o)var h=i?o(m,f,u,e,t,s):o(f,m,u,t,e,s);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!Jo(e,(function(t,e){if(!Qo(g,e)&&(f===t||r(f,t,n,o,s)))return g.push(e)}))){d=!1;break}}else if(f!==m&&!r(f,m,n,o,s)){d=!1;break}}return s.delete(t),s.delete(e),d};const Zo=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const tr=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var er=m?m.prototype:void 0,nr=er?er.valueOf:void 0;const or=function(t,e,n,o,r,s,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||!s(new oo(t),new oo(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return It(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var a=Zo;case"[object Set]":var x=1&o;if(a||(a=tr),t.size!=e.size&&!x)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Yo(a(t),a(e),o,r,s,i);return i.delete(t),l;case"[object Symbol]":if(nr)return nr.call(t)==nr.call(e)}return!1};var rr=Object.prototype.hasOwnProperty;const sr=function(t,e,n,o,r,s){var i=1&n,a=Dn(t),x=a.length;if(x!=Dn(e).length&&!i)return!1;for(var c=x;c--;){var l=a[c];if(!(i?l in e:rr.call(e,l)))return!1}var u=s.get(t),d=s.get(e);if(u&&d)return u==e&&d==t;var g=!0;s.set(t,e),s.set(e,t);for(var f=i;++c<x;){var m=t[l=a[c]],h=e[l];if(o)var p=i?o(h,m,l,e,t,s):o(m,h,l,t,e,s);if(!(void 0===p?m===h||r(m,h,n,o,s):p)){g=!1;break}f||(f="constructor"==l)}if(g&&!f){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return s.delete(t),s.delete(e),g};var ir="[object Arguments]",ar="[object Array]",xr="[object Object]",cr=Object.prototype.hasOwnProperty;const lr=function(t,e,n,o,r,s){var i=Be(t),a=Be(e),x=i?ar:to(t),c=a?ar:to(e),l=(x=x==ir?xr:x)==xr,u=(c=c==ir?xr:c)==xr,d=x==c;if(d&&ze(t)){if(!ze(e))return!1;i=!0,l=!1}if(d&&!l)return s||(s=new Ae),i||nn(t)?Yo(t,e,n,o,r,s):or(t,e,x,n,o,r,s);if(!(1&n)){var g=l&&cr.call(t,"__wrapped__"),f=u&&cr.call(e,"__wrapped__");if(g||f){var m=g?t.value():t,h=f?e.value():e;return s||(s=new Ae),r(m,h,n,o,s)}}return!!d&&(s||(s=new Ae),sr(t,e,n,o,r,s))};const ur=function t(e,n,o,r,s){return e===n||(null==e||null==n||!v(e)&&!v(n)?e!=e&&n!=n:lr(e,n,o,r,t,s))};const dr=function(t,e){return ur(t,e)};const gr=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const fr=function(t,e){for(var n=0,o=(e=Go(e,t)).length;null!=t&&n<o;)t=t[Vo(e[n++])];return n&&n==o?t:void 0};const mr=function(t,e,n){var o=-1,r=t.length;e<0&&(e=-e>r?0:r+e),(n=n>r?r:n)<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var s=Array(r);++o<r;)s[o]=t[o+e];return s};const hr=function(t,e){return e.length<2?t:fr(t,mr(e,0,-1))};const pr=function(t,e){return e=Go(e,t),null==(t=hr(t,e))||delete t[Vo(gr(e))]};const br=function(t,e){return null==t||pr(t,e)},Er=["nodeAfter","onDiscard","removeMarkers","suggestion:","removeMarker","get","substr","push","removeAttribute","map","_onDiscard","getRange","hasComments","from","commentThread","next","getMarkerNames","getMarkers","head","type","addRange","addMarker","length","createdAt","clear","discard","author","isIntersecting","getAllAdjacentSuggestions","change","decorate","end","_onAccept","isInContent","onAttributesChange","getFirstRange","_onAttributesChange","addMarkerName","setAttribute","_markerNames","previous","getFirstMarker","filter","accept","getMultiRangeId","getItems","delete","subType","getRanges","start","set","data","split","isMultiRange","attributes","_saved","_model","toJSON"];var _r,yr;_r=Er,yr=138,function(t){for(;--t;)_r.push(_r.shift())}(++yr);const Tr=function(t,e){return Er[t-=0]};class Cr{constructor(t,e){this.id=e.id,this[Tr("0x37")]=e[Tr("0x37")],this.subType=e.subType||null,this[Tr("0x4")]=e[Tr("0x4")],this[Tr("0x1d")]=null,this[Tr("0x22")]=t,this._onAccept=e.onAccept,this[Tr("0x2e")]=e[Tr("0x25")],this[Tr("0xe")]=e[Tr("0xc")],this._markerNames=new Set,this.set(Tr("0x1"),null),this[Tr("0x1c")]("attributes",e.attributes||{}),this.set(Tr("0x12"),null),this[Tr("0x1c")](Tr("0x33"),null),this[Tr("0x1c")](Tr("0x32"),null),this[Tr("0x1c")](Tr("0x21"),!1),this[Tr("0x8")](Tr("0x15")),this.decorate("discard")}get head(){let t=this;for(;t.previous;)t=t.previous;return t}get[Tr("0x30")](){return!!this[Tr("0x32")]&&this[Tr("0x32")][Tr("0x0")]>0}get[Tr("0x1f")](){return 0!=this._markerNames.size&&6==Array[Tr("0x31")](this[Tr("0x11")])[0][Tr("0x1e")](":").length}get[Tr("0xb")](){return null!==this[Tr("0x13")]()}[Tr("0xf")](t){this._markerNames.add(t)}[Tr("0x34")](){return Array.from(this[Tr("0x11")])}[Tr("0x35")](){return this[Tr("0x34")]().map((t=>this[Tr("0x22")].markers[Tr("0x29")](t)))[Tr("0x14")]((t=>t))}[Tr("0x13")](){return this[Tr("0x35")]()[0]||null}[Tr("0x26")](){this[Tr("0x22")][Tr("0x7")]((t=>{for(const e of this[Tr("0x35")]())t[Tr("0x28")](e)})),this._markerNames[Tr("0x2")]()}[Tr("0x28")](t){this._model[Tr("0x7")]((e=>{e.removeMarker(t)})),this._markerNames[Tr("0x18")](t)}[Tr("0x38")](t){const e=Tr("0x27")+this[Tr("0x37")]+":"+this[Tr("0x19")]+":"+this.id+":"+this.author.id+":"+Cr[Tr("0x16")]();this[Tr("0xf")](e),this[Tr("0x22")].change((n=>{n[Tr("0x39")](e,{range:t,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(t){for(const e of this[Tr("0x1a")]())if(e[Tr("0x5")](t))return!0;return!1}[Tr("0x1a")](){return this[Tr("0x35")]()[Tr("0x2d")]((t=>t[Tr("0x2f")]()))}[Tr("0x17")](){return this[Tr("0x1a")]().reduce(((t,e)=>[...t,...e[Tr("0x17")]()]),[])}[Tr("0xd")](){return this.getFirstMarker().getRange()}getContainedElement(){const t=this[Tr("0x1a")]();if(1!=t[Tr("0x0")])return null;const e=t[0],n=e[Tr("0x1b")][Tr("0x24")],o=e[Tr("0x9")].nodeBefore;return n instanceof F.Element?n!=o?null:n:null}[Tr("0x15")](){this[Tr("0xa")](this[Tr("0x1a")](),this[Tr("0x1d")],this[Tr("0x20")]),this.removeMarkers()}[Tr("0x3")](){this[Tr("0x2e")](this[Tr("0x1a")](),this.data,this[Tr("0x20")]),this.removeMarkers()}[Tr("0x6")](){const t=[];let e=this[Tr("0x36")];for(;e;)t[Tr("0x2b")](e),e=e[Tr("0x33")];return t}[Tr("0x10")](t,e){const n=So(this[Tr("0x20")]);Wo(n,t,e),dr(n,this[Tr("0x20")])||(this[Tr("0x20")]=n,this[Tr("0xe")](n))}[Tr("0x2c")](t){const e=So(this[Tr("0x20")]);br(e,t),dr(e,this[Tr("0x20")])||(this[Tr("0x20")]=e,this[Tr("0xe")](this.attributes))}[Tr("0x23")](){return{id:this.id,type:this[Tr("0x19")]?this.type+":"+this[Tr("0x19")]:this.type,authorId:this[Tr("0x4")].id,createdAt:this.createdAt,hasComments:this.hasComments,data:this[Tr("0x1d")],attributes:this[Tr("0x20")]}}static[Tr("0x16")](){return(0,e.uid)()[Tr("0x2a")](1,5)}}function kr(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"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"})}}(0,e.mix)(Cr,e.ObservableMixin);const vr=["item","*Merge:* %0","addEmptyContainer","EmptyContainer","nextSibling","deletion","removeContainer","removeEmptyContainer","*Insert:* %0","*Remove:* %0","getWalker","quantity","isObject","element","type","data","registerDescriptionCallback","_locale","replace","$1 $2","textProxy","match","removeObject","ELEMENT_SPACE","previousSibling","end","isEmpty","_resolveDescriptionItems","pop","length","addObject","_addDescriptionItems","checkChild","softBreak","addContainer","REPLACE_TEXT","_schema","registerElementLabel","indexOf","name","elementEnd","start","Container","set","getItemLabel","add","function","push","Object","insertion","text","remove","isInContent","$text","_itemLabels","getFirstRange"];var Ar,Rr;Ar=vr,Rr=345,function(t){for(;--t;)Ar.push(Ar.shift())}(++Rr);const Sr=function(t,e){return vr[t-=0]};class Ir{constructor(t,e){this._customCallbacks=[],this._itemLabels=new Map,this._schema=t,this._locale=e}getDescriptions(t){const e=[];for(let n=0;n<t[Sr("0x14")];n++){const o=t[n];if(!o[Sr("0x2b")])continue;let r=!1;for(const t of this._customCallbacks){const n=t(o);if(n){n[Sr("0x5")]&&e[Sr("0x26")](n),r=!0;break}}if(!r){this[Sr("0x16")](e,o);const r=t[n+1];if(r&&!o[Sr("0x2e")]()[Sr("0x10")].isEqual(r[Sr("0x2e")]()[Sr("0x20")])){const t=e[e[Sr("0x14")]-1],n=Sr("0x28")==o.type?Sr("0x24"):Sr("0x2a");t&&Sr("0x29")==t.type&&(t[n]+="\n")}}}return this._resolveDescriptionItems(e)}[Sr("0x7")](t){this._customCallbacks[Sr("0x26")](t)}[Sr("0x1c")](t,e){this[Sr("0x2d")][Sr("0x22")](t,e)}[Sr("0x23")](t,e=1){const n=this[Sr("0x2d")].get(t)||t;return Sr("0x25")==typeof n?n(e):1!==e?e+" "+n+"s":""+n}[Sr("0x16")](t,e){const n=e[Sr("0x2e")]()[Sr("0x1")](),o=Sr("0x28")==e.type?Sr("0x24"):Sr("0x2a");for(const e of n){const r=e[Sr("0x2f")],s=t[t.length-1];if(r.is(Sr("0xb")))s&&s[Sr("0x5")].indexOf(Sr("0x21"))>-1&&t[Sr("0x13")](),s&&Sr("0x29")==s[Sr("0x5")]?s[o]+=r[Sr("0x6")]:t[Sr("0x26")]({type:"text",add:"add"==o?r.data:"",remove:Sr("0x2a")==o?r[Sr("0x6")]:""});else if(this[Sr("0x1b")].isObject(r)){if(s&&s[Sr("0x5")][Sr("0x1d")](Sr("0x21"))>-1&&t[Sr("0x13")](),Sr("0x1f")==e[Sr("0x5")])continue;s&&s[Sr("0x5")]==o+Sr("0x27")&&s[Sr("0x1e")]==r.name?s[Sr("0x2")]++:t[Sr("0x26")]({type:o+Sr("0x27"),name:r[Sr("0x1e")],quantity:1}),n.skip((t=>!("elementEnd"==t[Sr("0x5")]&&t[Sr("0x2f")]==r)))}else if(this[Sr("0x1b")][Sr("0x17")](r,Sr("0x2c"))||r.is(Sr("0x4"),Sr("0x18"))){if("add"==o&&"elementStart"==e[Sr("0x5")]||Sr("0x2a")==o&&Sr("0x1f")==e[Sr("0x5")])continue;if(s&&-1==s[Sr("0x5")][Sr("0x1d")](Sr("0x21"))){"text"==s[Sr("0x5")]&&(s[o]+="\n");continue}let n;if(n=Sr("0x24")==o?r[Sr("0x33")]&&!this[Sr("0x1b")][Sr("0x3")](r.nextSibling)?r[Sr("0x33")]:null:r[Sr("0xf")]&&!this[Sr("0x1b")].isObject(r[Sr("0xf")])?r.previousSibling:null,r[Sr("0x11")]||n&&n.isEmpty){const e=n&&n[Sr("0x11")]?n.name:r[Sr("0x1e")];s&&s[Sr("0x5")]==o+Sr("0x32")&&s.name==e?s.quantity++:t[Sr("0x26")]({type:o+Sr("0x32"),name:e,quantity:1})}else t[Sr("0x26")]({type:o+Sr("0x21"),name:r.name})}}}[Sr("0x12")](t){const e=this[Sr("0x8")],n=[];for(const o of t){switch(o[Sr("0x5")]){case Sr("0x29"):if(o.add=o[Sr("0x24")].replace(/(\S)\u000A+(\S)/g,Sr("0xa"))[Sr("0x9")](/\u000A/g,""),o[Sr("0x2a")]=o[Sr("0x2a")][Sr("0x9")](/(\S)\u000A+(\S)/g,Sr("0xa"))[Sr("0x9")](/\u000A/g,""),""!=o[Sr("0x24")]&&""!=o[Sr("0x2a")]){n[Sr("0x26")]({type:Sr("0x9"),content:kr(e,Sr("0x1a"),['"'+o[Sr("0x2a")]+'"','"'+o.add+'"'])});continue}if(null!=o.add[Sr("0xc")](/^ +$/)){n[Sr("0x26")]({type:Sr("0x28"),content:kr(e,Sr("0x37"),kr(e,"ELEMENT_SPACE",o[Sr("0x24")][Sr("0x14")]))});continue}if(null!=o.remove[Sr("0xc")](/^ +$/)){n[Sr("0x26")]({type:Sr("0x34"),content:kr(e,Sr("0x0"),kr(e,Sr("0xe"),o[Sr("0x2a")][Sr("0x14")]))});continue}if(""!=o.add){n.push({type:Sr("0x28"),content:kr(e,Sr("0x37"),'"'+o[Sr("0x24")]+'"')});continue}n.push({type:Sr("0x34"),content:kr(e,Sr("0x0"),'"'+o.remove+'"')});continue;case Sr("0x31"):case Sr("0x15"):n.push({type:Sr("0x28"),content:kr(e,Sr("0x37"),this[Sr("0x23")](o[Sr("0x1e")],o[Sr("0x2")]))});continue;case Sr("0x36"):case Sr("0xd"):n.push({type:Sr("0x34"),content:kr(e,"*Remove:* %0",this.getItemLabel(o.name,o[Sr("0x2")]))});continue;case Sr("0x19"):n[Sr("0x26")]({type:Sr("0x28"),content:kr(e,"*Split:* %0",this.getItemLabel(o[Sr("0x1e")],o.quantity))});continue;case Sr("0x35"):n[Sr("0x26")]({type:Sr("0x34"),content:kr(e,Sr("0x30"),this[Sr("0x23")](o[Sr("0x1e")],o[Sr("0x2")]))});continue}n[Sr("0x26")](o)}return n}}const wr=["right","getSelectedBlocks","registerDescriptionCallback","center","FORMAT_ALIGN_TO_LEFT","from","TrackChangesEditing","format","commandName","_descriptionFactory","commandParams","enableCommand","locale","checkAttribute","alignment","editor","justify","FORMAT_ALIGN_TO_RIGHT","value","document","get","schema","has","plugins","ltr","afterInit","AlignmentEditing","model","contentLanguageDirection"];var Mr,Nr;Mr=wr,Nr=479,function(t){for(;--t;)Mr.push(Mr.shift())}(++Nr);const Lr=function(t,e){return wr[t-=0]};class Or extends t.Plugin{[Lr("0xa")](){const t=this[Lr("0x0")],e=t[Lr("0x1a")];if(!t[Lr("0x8")][Lr("0x7")](Lr("0xb")))return;const n=t[Lr("0x8")][Lr("0x5")](Lr("0x14"));n[Lr("0x19")]("alignment",((e,o={})=>{let r=o.value;o.value||(r=Lr("0x9")===t.locale[Lr("0xd")]?"left":Lr("0xe"));const s=Array[Lr("0x13")](this[Lr("0x0")][Lr("0xc")][Lr("0x4")].selection[Lr("0xf")]()).filter((t=>function(t,e,n){const o=t.getAttribute(Lr("0x1c"))||null;return e[Lr("0x1b")](t,"alignment")&&n!=o}(t,this[Lr("0x0")].model[Lr("0x6")],r)));t[Lr("0xc")].change((()=>{for(const t of s)n.markBlockFormat(t,{commandName:Lr("0x1c"),commandParams:[{value:r}]})}))})),n[Lr("0x17")][Lr("0x10")]((t=>{const{data:n}=t;if(n&&Lr("0x1c")==n[Lr("0x16")]){const t=n[Lr("0x18")][0][Lr("0x3")];return{type:Lr("0x15"),content:kr(e,"*Format:* %0",function(t){switch(t){case"left":return kr(e,Lr("0x12"));case Lr("0xe"):return kr(e,Lr("0x2"));case Lr("0x11"):return kr(e,"FORMAT_ALIGN_TO_CENTER");case Lr("0x1"):return kr(e,"FORMAT_JUSTIFY_TEXT")}}(t))}}}))}}const Fr=["getItems","parent","bindElementToMarker","getCustomProperty","push","model","item","type","mapper","isLimit","addHighlight","schema","previousPosition","activeMarkers","element","isContent","markerRange","ck-suggestion-marker--active","hasAttribute","elementEnd","insert","name","includes","ck-suggestion-marker-","listItem","start","nextSibling","span","isAtEnd","toViewPosition","createRangeOn","toViewElement","listIndent","writer"];var Pr,Dr;Pr=Fr,Dr=212,function(t){for(;--t;)Pr.push(Pr.shift())}(++Dr);const jr=function(t,e){return Fr[t-=0]};function Br(t,e,n){const o=[];for(const r of e[jr("0x1a")]())r[jr("0xa")](t)&&o.push(n[jr("0x16")](r));return o}function Ur(t){const e=[];if(t.is(jr("0x6"),jr("0x10"))){let n=t[jr("0x12")];for(;n&&n.is(jr("0x6"),jr("0x10"))&&n.getAttribute(jr("0x18"))>0;)e[jr("0x1e")](n),n=n[jr("0x12")]}return e}function Hr(t,e,{showActiveMarker:n=!0}={}){const o=t.plugins.get("TrackChangesEditing");return(r,s,i)=>{if(!i.consumable.test(s.markerRange,r[jr("0xd")]))return;const a=s[jr("0x8")].getWalker(),x=s.markerRange[jr("0x11")],c=t[jr("0x1f")][jr("0x3")];let l=null,u=null,d=!1,g=!1;for(const t of a){const e=t[jr("0x20")];d=d||c[jr("0x7")](e);const n=i[jr("0x0")][jr("0x17")](e);if(n&&n[jr("0x1d")](jr("0x2")))return;jr("0xb")==t[jr("0x21")]&&c.isBlock(e)&&!c[jr("0x1")](e)&&(e[jr("0x12")]||x[jr("0x14")]?l&&l[jr("0x1b")]==e||(l=e,f(t[jr("0x4")]),g=!0):u=u||t.previousPosition)}function f(t){const r=i[jr("0x19")].createUIElement(jr("0x13"),{class:jr("0xf")+e}),a=i[jr("0x0")][jr("0x15")](t);n&&o[jr("0x5")][jr("0xe")](s.markerName)&&i.writer.addClass(jr("0x9"),r),i[jr("0x19")][jr("0xc")](a,r),i[jr("0x0")][jr("0x1c")](r,s.markerName)}d||g||!u||f(u)}}const Gr=["format","editor","commandParams","commandName","toLowerCase","model","plugins","FORMAT_SUBSCRIPT","bold","_descriptionFactory","StrikethroughEditing","*Format:* %0","ItalicEditing","SubscriptEditing","strikethrough","enableCommand","FORMAT_ITALIC","BoldEditing","FORMAT_SUPERSCRIPT","get","has","FORMAT_STRIKETHROUGH","underline","isCollapsed","UnderlineEditing","*Remove format:* %0","FORMAT_UNDERLINE","getRanges","FORMAT_BOLD","document","italic","code","from","forceValue","value"];var Vr,zr;Vr=Gr,zr=150,function(t){for(;--t;)Vr.push(Vr.shift())}(++zr);const Wr=function(t,e){return Gr[t-=0]},Kr=[Wr("0x7"),Wr("0x2"),Wr("0xe"),"CodeEditing",Wr("0x0"),Wr("0x3"),"SuperscriptEditing"];class $r extends t.Plugin{afterInit(){const t=this[Wr("0x1a")],e=t[Wr("0x1e")],n=t[Wr("0x1f")][Wr("0x9")]("TrackChangesEditing"),o=t.locale;for(const o of Kr){if(!t[Wr("0x1f")][Wr("0xa")](o))continue;const r=o.slice(0,-7)[Wr("0x1d")](),s=t.commands.get(r);n[Wr("0x5")](r,((t,o={})=>{const i=e[Wr("0x13")].selection;if(i[Wr("0xd")])return void t(o);const a=void 0!==o.forceValue?o[Wr("0x17")]:!s[Wr("0x18")];e.change((()=>{const t=Array[Wr("0x16")](i[Wr("0x11")]());for(const o of t){const t=a?[o]:Br(r,o,e);for(const e of t)n.markInlineFormat(e,{commandName:r,commandParams:[{forceValue:a}]})}}))}))}function r(t,e){n[Wr("0x22")].registerDescriptionCallback((n=>{const{data:r}=n;if(r&&r[Wr("0x1c")]===t)return r[Wr("0x1b")][0].forceValue?{type:Wr("0x19"),content:kr(o,Wr("0x1"),e)}:{type:Wr("0x19"),content:kr(o,Wr("0xf"),e)}}))}r(Wr("0x21"),kr(o,Wr("0x12"))),r(Wr("0x14"),kr(o,Wr("0x6"))),r(Wr("0xc"),kr(o,Wr("0x10"))),r(Wr("0x15"),kr(o,"FORMAT_CODE")),r(Wr("0x4"),kr(o,Wr("0xb"))),r("subscript",kr(o,Wr("0x20"))),r("superscript",kr(o,Wr("0x8")))}}const qr=["createPositionAfter","createPositionBefore","isObject","end","isTouching","push","createPositionAt","createRange"];var Xr,Jr;Xr=qr,Jr=314,function(t){for(;--t;)Xr.push(Xr.shift())}(++Jr);const Qr=function(t,e){return qr[t-=0]};function Yr(t,e){let n,o=0;const r=[],s=e.schema;for(;o<t.length;){const i=t[o],a=t[o+1];n||(n=e[Qr("0x7")](i)),Zr(e,i,a)||(r[Qr("0x3")](e[Qr("0x5")](n,s[Qr("0x0")](i)?e[Qr("0x6")](i):e[Qr("0x4")](i,Qr("0x1")))),n=null),o++}return r}function Zr(t,e,n){if(!n)return!1;const o=t[Qr("0x6")](e),r=t[Qr("0x7")](n);return o[Qr("0x2")](r)}const ts=["has","_descriptionFactory","registerDescriptionCallback","commandParams","*Format:* %0","from","model","editor","format","change","blockQuote","filter","checkChild","TrackChangesEditing","schema","$root","BlockQuoteEditing","getSelectedBlocks","name","afterInit","plugins","commands","get","forceValue","selection","value","parent"];var es,ns;es=ts,ns=469,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class rs extends t.Plugin{[os("0x9")](){const t=this[os("0x18")],e=t.locale;if(!t[os("0xa")][os("0x11")](os("0x6")))return;const n=t[os("0xa")][os("0xc")](os("0x3")),o=this[os("0x18")][os("0xb")].get(os("0x0"));n.enableCommand(os("0x0"),((e,r={})=>{const s=this[os("0x18")][os("0x17")].document[os("0xe")],i=r&&void 0!==r[os("0xd")]?r[os("0xd")]:!o[os("0xf")];let a=[];if(i){const e=Array[os("0x16")](s.getSelectedBlocks()).filter((t=>ss(t)||function(t,e){const n=e[os("0x2")](t[os("0x10")],os("0x0")),o=e[os("0x2")]([os("0x5"),os("0x0")],t);return n&&o}(t,this[os("0x18")][os("0x17")][os("0x4")])));a=Yr(e,t[os("0x17")])}else{const e=Array[os("0x16")](s[os("0x7")]())[os("0x1")]((t=>ss(t)));a=Yr(e,t[os("0x17")])}t.model[os("0x1a")]((()=>{for(const t of a)n.markBlockFormat(t,{commandName:os("0x0"),commandParams:[{forceValue:i}]})}))})),n[os("0x12")][os("0x13")]((t=>{const{data:n}=t;if(n&&os("0x0")==n.commandName){const t=kr(e,"ELEMENT_BLOCK_QUOTE");return n[os("0x14")][0][os("0xd")]?{type:os("0x19"),content:kr(e,os("0x15"),t)}:{type:os("0x19"),content:kr(e,"*Remove format:* %0",t)}}}))}}function ss(t){return os("0x0")==t.parent[os("0x8")]}const is=["enableCommand","editor","ckbox","get","commands","afterInit"];var as,xs;as=is,xs=461,function(t){for(;--t;)as.push(as.shift())}(++xs);const cs=function(t,e){return is[t-=0]};class ls extends t.Plugin{[cs("0x0")](){const t=this[cs("0x2")];t[cs("0x5")][cs("0x4")](cs("0x3"))&&t.plugins[cs("0x4")]("TrackChangesEditing")[cs("0x1")](cs("0x3"))}}const us=["has","checkChild","label","codeBlock","from","outdentCodeBlock","markBlockFormat","locale","language","plugins","getSelectedBlocks","registerDescriptionCallback","blockName","*Format:* %0","formatBlock","name","get","model","schema","config","commands","ELEMENT_CODE_BLOCK","rootElement","TrackChangesEditing","*Remove format:* %0","_descriptionFactory","parent","commandName","CodeBlock","document","selection","forceValue","change","languages","commandParams","enableCommand","filter","format","isLimit","afterInit"];var ds,gs;ds=us,gs=195,function(t){for(;--t;)ds.push(ds.shift())}(++gs);const fs=function(t,e){return us[t-=0]};class ms extends t.Plugin{[fs("0x4")](){const t=this.editor;if(!t[fs("0xe")][fs("0x5")](fs("0x21")))return;const e=t[fs("0xe")][fs("0x15")](fs("0x1c")),n=t[fs("0xc")],o=t[fs("0x18")][fs("0x15")]("codeBlock")[fs("0x26")],r=t[fs("0x19")].get(fs("0x8"));e[fs("0x0")]("indentCodeBlock"),e[fs("0x0")](fs("0xa")),e[fs("0x0")](fs("0x8"),((n,s={})=>{const i=t[fs("0x16")],a=t[fs("0x16")][fs("0x22")][fs("0x23")],x=s&&void 0!==s.forceValue?s[fs("0x24")]:!r.value;let c;s[fs("0xd")]||(s[fs("0xd")]=o[0].language),c=x?Array[fs("0x9")](a[fs("0xf")]())[fs("0x1")]((t=>{return hs(t)||(e=t,n=i[fs("0x17")],!e.is(fs("0x1b"))&&!n[fs("0x3")](e)&&n[fs("0x6")](e[fs("0x1f")],fs("0x8")));var e,n})):Array[fs("0x9")](a[fs("0xf")]())[fs("0x1")]((t=>hs(t)));const l=Yr(c,i);i[fs("0x25")]((()=>{for(const t of l)e[fs("0xb")](t,{commandName:fs("0x8"),commandParams:[{...s,forceValue:x}],formatGroupId:fs("0x11")})}))})),e[fs("0x1e")].registerElementLabel("codeBlock",(t=>kr(n,fs("0x1a"),t))),e._descriptionFactory[fs("0x10")]((t=>{const{type:e,data:r}=t;if(fs("0x13")==e&&r&&fs("0x8")==r[fs("0x20")]){const t=r.commandParams[0][fs("0xd")],e=o.find((e=>e.language===t))[fs("0x7")],s=n._t(e);return r[fs("0x27")][0].forceValue?{type:fs("0x2"),content:kr(n,fs("0x12"),kr(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:fs("0x2"),content:kr(n,fs("0x1d"),kr(n,fs("0x1a"),1))}}}))}}function hs(t){return fs("0x8")==t[fs("0x14")]}var ps,bs,Es=["get","plugins","addCommentThread","editor","TrackChangesEditing","init","requires","enableCommand"];ps=Es,bs=254,function(t){for(;--t;)ps.push(ps.shift())}(++bs);var _s=function(t,e){return Es[t-=0]};class ys extends t.Plugin{static get[_s("0x0")](){return["CommentsEditing"]}[_s("0x7")](){this[_s("0x5")][_s("0x3")][_s("0x2")](_s("0x6"))[_s("0x1")](_s("0x4"))}}var Ts=n(181);const Cs=["detach","markerName","createRange","markerNameToElements","selection","root","rootName","requires","document","model","downcastDispatcher","$graveyard","lock","batch","enqueueChange","getFirstRange","delete","start","end","modifySelection","high","options","removeMarker:suggestion:deletion","editor","buffer","unlock","addMarker:suggestion:deletion","createSelection","forward","fromRange","editing","unbindElementFromMarkerName","writer","deleteForward","init","uiElement","remove"];var ks,vs;ks=Cs,vs=349,function(t){for(;--t;)ks.push(ks.shift())}(++vs);const As=function(t,e){return Cs[t-=0]};class Rs extends t.Plugin{static get[As("0x1c")](){return[Ts.Delete]}[As("0x12")](){const t=this[As("0x7")],e=t.plugins.get("TrackChangesEditing");e.enableCommand(As("0x0"));const n=t.commands.get("deleteForward");e.enableCommand(As("0x11"),((e,o={})=>{const r=t[As("0x1e")][As("0xb")](t[As("0x1e")][As("0x1d")][As("0x19")]);r.isCollapsed&&t.model[As("0x3")](r,{direction:As("0xc"),unit:o.unit});const s=r[As("0x24")](),i=F.LiveRange[As("0xd")](s);let a;e(o),a=As("0x20")==i[As("0x1a")][As("0x1b")]?t[As("0x1e")][As("0x17")](s[As("0x1")]):t[As("0x1e")][As("0x17")](i[As("0x1")],i[As("0x2")]),i[As("0x15")](),t.model[As("0x23")](n[As("0x8")][As("0x22")],(t=>{n.buffer[As("0x21")](),t.setSelection(t[As("0x17")](a.end)),n[As("0x8")][As("0x9")]()}))})),t[As("0xe")][As("0x1f")].on(As("0xa"),Hr(t,"merge"),{priority:As("0x4")}),t.data[As("0x1f")].on(As("0xa"),((e,n,o)=>{o[As("0x5")].showSuggestionHighlights&&Hr(t,"merge",{showActiveMarker:!1})(e,n,o)}),{priority:As("0x4")}),t[As("0xe")][As("0x1f")].on(As("0x6"),((t,e,n)=>{const o=n.mapper[As("0x18")](e[As("0x16")]);if(o)for(const t of o)t.is(As("0x13"))&&(n.mapper[As("0xf")](t,e[As("0x16")]),n[As("0x10")][As("0x14")](t))}),{priority:"high"})}}var Ss=n(331);const Is=["ck-suggestion-marker-split","high","TrackChangesEditing","plugins","start","hasClass","detach","init","createRange","change","model","enter","selection","end","nextSibling","split","downcastDispatcher","writer","parent","setSelection","mapper","fromRange","get","schema","showSuggestionHighlights","document","getFirstPosition","markInsertion","editing","removeMarker:suggestion:insertion","editor","createPositionAt","remove","addMarker:suggestion:insertion","data"];var ws,Ms;ws=Is,Ms=154,function(t){for(;--t;)ws.push(ws.shift())}(++Ms);const Ns=function(t,e){return Is[t-=0]};class Ls extends t.Plugin{static get requires(){return[Ss.Enter]}[Ns("0x1c")](){const t=this[Ns("0x10")],e=t[Ns("0x18")][Ns("0x8")](Ns("0x17"));e.enableCommand(Ns("0x20"),(n=>{t[Ns("0x1f")][Ns("0x1e")]((o=>{const r=t[Ns("0x1f")][Ns("0xb")][Ns("0x21")],s=r[Ns("0xc")](),i=r.isCollapsed,a=F.LiveRange[Ns("0x7")](r.getFirstRange()),x=a[Ns("0x19")][Ns("0x4")],c=a.end[Ns("0x4")],l=!(a[Ns("0x19")].isAtStart&&a[Ns("0x22")].isAtEnd),u=x==c,d=!(t.model.schema.isLimit(x)||t[Ns("0x1f")][Ns("0x9")].isLimit(c))&&(i||l&&u);if(n(),d){const n=t[Ns("0x1f")][Ns("0x11")](s[Ns("0x4")][Ns("0x0")],0),r=o[Ns("0x1d")](s,n);e[Ns("0xd")](r)}else o[Ns("0x5")](o[Ns("0x1d")](a[Ns("0x22")]));a[Ns("0x1b")]()}))})),t[Ns("0xe")].downcastDispatcher.on(Ns("0x13"),Hr(t,Ns("0x1")),{priority:"high"}),t[Ns("0xe")][Ns("0x2")].on(Ns("0xf"),((t,e,n)=>{const o=n[Ns("0x6")].markerNameToElements(e.markerName);if(o)for(const t of o)t[Ns("0x1a")](Ns("0x15"))&&(n.mapper.unbindElementFromMarkerName(t,e.markerName),n[Ns("0x3")][Ns("0x12")](t))}),{priority:Ns("0x16")}),t[Ns("0x14")][Ns("0x2")].on("addMarker:suggestion:insertion",((e,n,o)=>{o.options[Ns("0xa")]&&Hr(t,Ns("0x1"),{showActiveMarker:!1})(e,n,o)}),{priority:Ns("0x16")})}}const Os=["title","FontBackgroundColorEditing","editor","afterInit","plugins","FontFamilyEditing","*Reset font color*","fontSize","label","format","get","model","fontColor","registerDescriptionCallback","*Reset font family*","find","config","fontBackgroundColor.colors","document","toLowerCase","*Reset font size*","_enableCommand","TrackChangesEditing","fontFamily","value","markInlineFormat","fontBackgroundColor","selection","FontColorEditing","commandName","FontSizeEditing","commandParams","fontSize.options","*Reset font background color*","*Set font background color:* %0","trim","change","*Set font size:* %0","enableCommand","*Set font color:* %0","has","normalizeSizeOptions","locale","getRanges"];var Fs,Ps;Fs=Os,Ps=199,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]},js=[{pluginName:Ds("0x7"),commandName:Ds("0x1c")},{pluginName:Ds("0x1a"),commandName:Ds("0x0")},{pluginName:Ds("0x5"),commandName:Ds("0x21")},{pluginName:Ds("0x16"),commandName:Ds("0x3")}];class Bs extends t.Plugin{[Ds("0x18")](){const t=this[Ds("0x17")].locale;for(const{pluginName:t,commandName:e}of js)this[Ds("0x17")][Ds("0x19")][Ds("0x11")](t)&&this[Ds("0x2a")](e);this[Ds("0x17")][Ds("0x19")][Ds("0x1f")](Ds("0x2b"))._descriptionFactory[Ds("0x22")]((e=>{const{data:n}=e;if(null!=n){if("fontSize"==n[Ds("0x6")]){const e=n[Ds("0x8")][0][Ds("0x1")];if(e){const n=this[Ds("0x17")].plugins[Ds("0x1f")]("FontSize")[Ds("0x12")](this.editor.config[Ds("0x1f")](Ds("0x9")))[Ds("0x24")]((t=>t[Ds("0x20")]==e))[Ds("0x15")],o=this[Ds("0x17")][Ds("0x13")]._t(n)[Ds("0x28")]();return{type:Ds("0x1e"),content:kr(t,Ds("0xe"),o)}}return{type:Ds("0x1e"),content:kr(t,Ds("0x29"))}}if(Ds("0x0")==n[Ds("0x6")]){const e=n[Ds("0x8")][0][Ds("0x1")];return e?{type:"format",content:kr(t,"*Set font family:* %0",e)}:{type:"format",content:kr(t,Ds("0x23"))}}if("fontColor"==n[Ds("0x6")]){const e=n[Ds("0x8")][0].value;if(e){const n=(0,r.normalizeColorOptions)(this[Ds("0x17")][Ds("0x25")][Ds("0x1f")]("fontColor.colors"))[Ds("0x24")]((t=>t.model==e));let o=e,s="";return n&&(o=n[Ds("0x1d")],s=t._t(o).toLowerCase()),{type:Ds("0x1e"),content:kr(t,Ds("0x10"),s)[Ds("0xc")](),color:{value:e,title:s||o}}}return{type:Ds("0x1e"),content:kr(t,Ds("0x1b"))}}if("fontBackgroundColor"==n[Ds("0x6")]){const e=n.commandParams[0][Ds("0x1")];if(e){const n=(0,r.normalizeColorOptions)(this[Ds("0x17")][Ds("0x25")][Ds("0x1f")](Ds("0x26"))).find((t=>t[Ds("0x20")]==e));let o=e,s="";return n&&(o=n[Ds("0x1d")],s=t._t(o)[Ds("0x28")]()),{type:Ds("0x1e"),content:kr(t,Ds("0xb"),s)[Ds("0xc")](),color:{value:e,title:s||o}}}return{type:Ds("0x1e"),content:kr(t,Ds("0xa"))}}}}))}_enableCommand(t){const e=this[Ds("0x17")];e.plugins.get(Ds("0x2b"))[Ds("0xf")](t,((n,o={})=>{const r=e[Ds("0x20")][Ds("0x27")][Ds("0x4")],s=o[Ds("0x1")];r.isCollapsed?n(o):e[Ds("0x20")][Ds("0xd")]((()=>{const n=Array.from(r[Ds("0x14")]());for(const o of n){const n=s?[o]:Br(t,o,e.model);for(const o of n)e[Ds("0x19")][Ds("0x1f")](Ds("0x2b"))[Ds("0x2")](o,{commandName:t,commandParams:[{value:s}]})}}))}))}}const Us=["selection","isObject","heading.options","filter","enableCommand","format","heading","document","markBlockFormat","*Change to:* %0","title","schema","from","TrackChangesEditing","formatBlock","blockName","locale","match","value","paragraph","_descriptionFactory","config","registerElementLabel","model","editor","change","parent","registerDescriptionCallback","get","commandName","ELEMENT_HEADING_CUSTOM","plugins","name"];var Hs,Gs;Hs=Us,Gs=300,function(t){for(;--t;)Hs.push(Hs.shift())}(++Gs);const Vs=function(t,e){return Us[t-=0]};class zs extends t.Plugin{afterInit(){const t=this[Vs("0x15")],e=t[Vs("0xd")],n=t[Vs("0x12")][Vs("0x19")](Vs("0x20"));if(!t[Vs("0x1c")].has("HeadingEditing"))return;const o=t[Vs("0x1c")].get(Vs("0xa"));o[Vs("0x1")](Vs("0x3"),((e,n)=>{const r=n[Vs("0xf")],s=Array[Vs("0x9")](this[Vs("0x15")][Vs("0x14")][Vs("0x4")][Vs("0x1e")].getSelectedBlocks())[Vs("0x0")]((t=>{return e=t,n=r,(o=this.editor.model[Vs("0x8")]).checkChild(e[Vs("0x17")],n)&&!o[Vs("0x1f")](e)&&e[Vs("0x1d")]!=n;var e,n,o}));t.model[Vs("0x16")]((()=>{for(const t of s)o[Vs("0x5")](t,{commandName:Vs("0x3"),commandParams:[n],formatGroupId:Vs("0xc")},Ur(t))}))}));for(const t of n)Vs("0x10")!=t[Vs("0x14")]&&o[Vs("0x11")][Vs("0x13")](t.model,(e=>{const n=Ws(t.model);return null!==n?r(e,n):s(e,t[Vs("0x7")])}));function r(t,n){return kr(e,"ELEMENT_HEADING",[t,n])}function s(t,n){return kr(e,Vs("0x1b"),[t,n])}o[Vs("0x11")][Vs("0x18")]((t=>{const{type:o,data:i}=t;if(Vs("0xb")==o&&i&&Vs("0x3")==i[Vs("0x1a")]){const t=i.commandParams[0][Vs("0xf")],o=Ws(t);if(null!==o)return{type:Vs("0x2"),content:kr(e,"*Change to:* %0",r(1,o))};const a=n.find((e=>e.model===t)).title;return{type:Vs("0x2"),content:kr(e,Vs("0x6"),s(1,a))}}}))}}function Ws(t){const e=t[Vs("0xe")](/^heading(\d+)$/);return e?e[1]:null}const Ks=["item","*Set highlight:* %0","toLowerCase","commandName","find","FORMAT_HIGHLIGHT","getRanges","color","_descriptionFactory","document","title","TrackChangesEditing","value","backward","getLastMatchingPosition","has","config","HighlightEditing","change","formatInline","locale","getFirstPosition","model","isCollapsed","plugins","highlight","editor","*Remove highlight*","createRange","selection","getAttribute","format"];var $s,qs;$s=Ks,qs=311,function(t){for(;--t;)$s.push($s.shift())}(++qs);const Xs=function(t,e){return Ks[t-=0]};class Js extends t.Plugin{afterInit(){const t=this[Xs("0x3")];if(!t.plugins[Xs("0x18")](Xs("0x1a")))return;const e=t[Xs("0x1")].get(Xs("0x14"));e.enableCommand("highlight",((n,o={})=>{const r=t[Xs("0x1f")][Xs("0x12")][Xs("0x6")],s=r[Xs("0x7")](Xs("0x2"));let i=o[Xs("0x15")],a=[];if(r[Xs("0x0")]){const e=r[Xs("0x1e")]();if(!r.hasAttribute("highlight"))return void n(o);{const n=t=>t[Xs("0x9")].getAttribute("highlight")===s,o=e.getLastMatchingPosition(n,{direction:Xs("0x16")}),r=e[Xs("0x17")](n);a=[t[Xs("0x1f")][Xs("0x5")](o,r)],i==s&&(i=null)}}else for(const e of r[Xs("0xf")]())i?a.push(e):a.push(...Br(Xs("0x2"),e,t[Xs("0x1f")]));t.model[Xs("0x1b")]((()=>{for(const t of a)e.markInlineFormat(t,{commandName:Xs("0x2"),commandParams:[{value:i}]})}))}));const n=t[Xs("0x1d")];e[Xs("0x11")].registerDescriptionCallback((e=>{const{type:o,data:r}=e;if(Xs("0x1c")==o&&r&&Xs("0x2")==r[Xs("0xc")]){const e=r.commandParams[0][Xs("0x15")];if(e){const o=t[Xs("0x19")].get("highlight.options")[Xs("0xd")]((t=>t[Xs("0x1f")]==e)),r=n._t(o[Xs("0x13")])[Xs("0xb")]();return{type:Xs("0x8"),content:kr(n,Xs("0xa"),r),color:{value:o[Xs("0x10")],title:o[Xs("0x13")]}}}return{type:Xs("0x8"),content:kr(n,Xs("0x4"),kr(n,Xs("0xe")))}}}))}}const Qs=["div","get","createPositionAt","plugins","ELEMENT_HORIZONTAL_LINE","locale","insert","horizontalLine","for","elementToStructure","addClass","has","registerElementLabel","createContainerElement","enableCommand","editor","dataDowncast","TrackChangesEditing","ck-horizontal-line","HorizontalLineEditing"];var Ys,Zs;Ys=Qs,Zs=169,function(t){for(;--t;)Ys.push(Ys.shift())}(++Zs);const ti=function(t,e){return Qs[t-=0]};class ei extends t.Plugin{afterInit(){const t=this[ti("0x6")];if(!t[ti("0xe")][ti("0x2")](ti("0xa")))return;t.plugins[ti("0xc")]("TrackChangesEditing")[ti("0x5")](ti("0x12"));const e=t[ti("0xe")][ti("0xc")](ti("0x8")),n=t[ti("0x10")];e._descriptionFactory[ti("0x3")](ti("0x12"),(t=>kr(n,ti("0xf"),t))),t.conversion[ti("0x13")](ti("0x7"))[ti("0x0")]({model:ti("0x12"),view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return;const o=e[ti("0x4")](ti("0xb")),r=e.createEmptyElement("hr");return e[ti("0x1")](ti("0x9"),o),e[ti("0x11")](e[ti("0xd")](o,0),r),o},converterPriority:"high"})}}const ni=["commandName","HtmlEmbed","*Change %0 content*","registerDescriptionCallback","markBlockFormat","format","rawHtml","cancel","document","ELEMENT_HTML_EMBED","value","htmlEmbed","enableCommand","getCustomProperty","element","rawHtmlApi","getSelectedElement","get","locale","has","model","_descriptionFactory","editor","TrackChangesEditing","selection","plugins","view","registerElementLabel"];var oi,ri;oi=ni,ri=397,function(t){for(;--t;)oi.push(oi.shift())}(++ri);const si=function(t,e){return ni[t-=0]};class ii extends t.Plugin{afterInit(){const t=this[si("0x11")];if(!t[si("0x14")][si("0xe")](si("0x18")))return;const e=t.plugins.get(si("0x12")),n=t[si("0xd")],o=t.editing[si("0x15")].document.selection;e[si("0x10")][si("0x16")](si("0x1"),(t=>kr(n,si("0x4"),t))),t[si("0x14")][si("0xc")](si("0x12"))[si("0x7")]("htmlEmbed",((n,r)=>{const s=t[si("0xf")],i=s[si("0x3")][si("0x13")];s.change((()=>{const t=function(t){const e=t[si("0xb")]();return e&&e.is(si("0x9"),si("0x1"))?t[si("0xb")]():null}(i);if(!t)return void n(null);const s=t.getAttribute(si("0x5"))||"";void 0!==r&&r!==s&&(e[si("0x1b")](t,{commandName:si("0x6"),commandParams:[r]}),o[si("0xb")]()[si("0x8")](si("0xa"))[si("0x2")]())}))})),e[si("0x10")][si("0x1a")]((t=>{const{data:e}=t;if(e&&si("0x6")==e[si("0x17")]){const t=kr(n,"ELEMENT_HTML_EMBED");return{type:si("0x0"),content:kr(n,si("0x19"),t)}}}))}}const ai=["registerCustomCallback","getNearestSelectionRange","getContainedElement","width","plugins","hasAttribute","resizeImage","join","toPrevious","ImageCaptionUtils","imageTypeInline","formatBlock","enableCommand","getAttribute","subType","discardSuggestion","newRange","locale","removeObject","shouldConvertImageType","getFirstRange","start","getChangedMarkers","imageBlock","end","imageTextAlternative","accept","change","ImageStyleEditing","previous","getCaptionFromImageModelElement","schema","filter","*Set image text alternative:* %0","registerDescriptionCallback","nodeAfter","createRangeOn","imageStyle","formatInline","registerElementLabel","imageCaption","author","getSuggestions","isCollapsed","ELEMENT_IMAGE","toLowerCase","Block image to inline image","caption","*Set image width:* %0","fromPosition","*Remove image text alternative*","ImageTextAlternativeEditing","normalizedStyles","getSuggestion","format","refresh","name","forEach","toggleImageCaption","imageStylePostApply","imageStylePreApply","_descriptionFactory","forward","commandReversedParams","*Format:* %0","commands","isBlockImage","title","imageTypeBlock","chain","insertion","side","value","markBlockFormat","find","_splitMarkerName","ELEMENT_INLINE_IMAGE","isIntersecting","getClosestSelectedImageElement","detach","Inline image to block image","uploadImage","getSuggestionCallback","discard","get","findIndex","isInlineImage","length","isBefore","next","afterInit","selection","FORMAT_SIDE_IMAGE","newValue","hasSuggestion","document","isInContent","has","ImageUtils","nodeBefore","head","isEqual","toNext","markInlineFormat","from","deletion","editor","ImageBlockEditing","ImageInlineEditing","type","_findSuggestions","model","element","commandParams","createRange","commandName","convertBlockImageToInline","_suggestionFactory","convertInlineImageToBlock"];var xi,ci;xi=ai,ci=445,function(t){for(;--t;)xi.push(xi.shift())}(++ci);const li=function(t,e){return ai[t-=0]};class ui extends t.Plugin{[li("0x2")](){const t=this[li("0x12")];if(!t[li("0x23")][li("0x9")]("ImageEditing"))return;const n=t[li("0x23")].get("TrackChangesEditing"),o=t[li("0x23")][li("0x73")](li("0xa")),r={},s=t[li("0x30")];if(n[li("0x2b")]("insertImage"),n[li("0x5c")][li("0x46")](li("0x36"),(t=>kr(s,li("0x4b"),t))),n[li("0x5c")][li("0x46")]("imageInline",(t=>kr(s,li("0x6b"),t))),n[li("0x5c")].registerElementLabel("caption",kr(s,"ELEMENT_CAPTION")),t[li("0x23")].has("ImageUploadEditing")&&n[li("0x2b")](li("0x70")),t[li("0x23")][li("0x9")](li("0x13"))&&t[li("0x23")][li("0x9")](li("0x14"))&&(n[li("0x2b")](li("0x29"),((e,r)=>{const s=o[li("0x6d")](t[li("0x17")][li("0x7")][li("0x3")]);t.model[li("0x3a")]((()=>{n[li("0x68")](s,{commandName:li("0x29"),commandParams:[r]},[],li("0x1c"))}))})),n[li("0x2b")]("imageTypeBlock",((e,r)=>{t[li("0x17")][li("0x3a")]((s=>{let i=o.getClosestSelectedImageElement(t[li("0x17")].document[li("0x3")]),a=s[li("0x43")](i);const x=F.LivePosition[li("0x50")](a.start,li("0x27")),c=F.LivePosition[li("0x50")](a[li("0x37")],li("0xe"));n.forceDefaultExecution((()=>e(r))),i=o[li("0x6d")](t.model[li("0x7")][li("0x3")]),a=s[li("0x43")](i);const l=s.createRange(x,c);x.detach(),c[li("0x6e")](),n[li("0x68")](i,{commandName:li("0x29")},[],li("0x1e")),l.start[li("0x0")](a[li("0x34")])&&n.markInsertion(s[li("0x1a")](l.start,a.start),"convertInlineImageToBlock"),a[li("0x37")][li("0x0")](l[li("0x37")])&&n.markInsertion(s[li("0x1a")](a.end,l[li("0x37")]),li("0x1e"))}))})),n._suggestionFactory[li("0x1f")](li("0x2a"),li("0x1e"),li("0x26"),(()=>{})),n[li("0x1d")][li("0x1f")](li("0x2a"),li("0x1e"),li("0x39"),(()=>{})),n[li("0x1d")][li("0x1f")](li("0x2a"),li("0x1e"),li("0x72"),n._suggestionFactory.getSuggestionCallback(li("0x2a"),"",li("0x39"))),n._suggestionFactory[li("0x1f")]("insertion",li("0x1e"),li("0x26"),(()=>{})),n[li("0x1d")].registerCustomCallback(li("0x65"),"convertInlineImageToBlock",li("0x72"),(([e])=>{const o=n[li("0x1d")][li("0x71")](li("0x65"),"",li("0x72"));let r=e[li("0x34")],s=e[li("0x37")];const i=t[li("0x17")][li("0x3e")][li("0x20")](r,"backward"),a=t[li("0x17")][li("0x3e")][li("0x20")](s,li("0x5d"));i[li("0x4a")]&&(r=i[li("0x34")]),a[li("0x4a")]&&(s=a[li("0x37")]),o([t[li("0x17")].createRange(r,s)])})),n[li("0x1d")].registerCustomCallback(li("0x2a"),li("0x1e"),li("0x64"),x),n._suggestionFactory.registerCustomCallback(li("0x65"),li("0x1e"),li("0x64"),x)),t.plugins.has("ImageCaptionEditing")&&(n[li("0x2b")](li("0x59"),((e,r)=>{const s=t[li("0x23")].get(li("0x28"));let i=o[li("0x6d")](t.model[li("0x7")][li("0x3")]),a=s[li("0x3d")](i);t.model[li("0x3a")]((()=>{if(a)return void n.markDeletion(t[li("0x17")][li("0x43")](a));const x=o[li("0x61")](i);e(r),i=o[li("0x6d")](t[li("0x17")].document.selection),a=s.getCaptionFromImageModelElement(i),n.markInsertion(t[li("0x17")].createRangeOn(a),x?null:li("0x47"))}))})),n[li("0x1d")][li("0x1f")]("insertion",li("0x47"),"chain",x)),t.plugins[li("0x9")]("ImageStyleEditing")){n.enableCommand(li("0x44"),((r,s)=>{const i=t[li("0x23")][li("0x73")]("Users").me,a=t[li("0x60")][li("0x73")](li("0x44"));let x=o.getClosestSelectedImageElement(t[li("0x17")].document.selection),c=t.model[li("0x43")](x),l=a.value;if(l==s.value)return;const u={commandName:"imageStyle",commandParams:[s],formatGroupId:(0,e.uid)()};t[li("0x17")][li("0x3a")]((()=>{if(n[li("0x49")]()[li("0x3f")]((t=>t[li("0x8")]&&i==t[li("0x48")]&&("formatBlock"==t[li("0x15")]||li("0x45")==t[li("0x15")])&&("imageStylePreApply"==t[li("0x2d")]||"imageStylePostApply"==t[li("0x2d")])&&t[li("0x33")]()[li("0xd")](c)))[li("0x58")]((t=>n[li("0x2e")](t[li("0xc")]))),x=o[li("0x6d")](t[li("0x17")][li("0x7")][li("0x3")]),c=t[li("0x17")].createRangeOn(x),a[li("0x56")](),t[li("0x60")][li("0x73")](li("0x29"))[li("0x56")](),t.commands[li("0x73")](li("0x63"))[li("0x56")](),l=a[li("0x67")],l!=s[li("0x67")])return o[li("0x75")](x)&&a[li("0x32")](s[li("0x67")],x)?(r(s),x=o[li("0x6d")](t[li("0x17")][li("0x7")][li("0x3")]),void n[li("0x68")](x,{...u,commandReversedParams:[{value:l||null}]},[],li("0x5b"))):void(o[li("0x61")](x)?n[li("0x68")](x,u,[],li("0x5a")):n[li("0xf")](c,u,"imageStylePostApply"))}))}));for(const e of t[li("0x23")].get(li("0x3b"))[li("0x53")])r[e[li("0x57")]]=e[li("0x62")][li("0x4c")]();n[li("0x1d")].registerCustomCallback(li("0x2a"),"imageStylePreApply",li("0x26"),(()=>{})),n._suggestionFactory[li("0x1f")]("formatBlock","imageStylePostApply",li("0x26"),(()=>{})),n[li("0x1d")][li("0x1f")](li("0x45"),li("0x5a"),li("0x26"),(()=>{})),n[li("0x1d")][li("0x1f")]("formatBlock",li("0x5b"),li("0x39"),(()=>{})),n[li("0x1d")].registerCustomCallback(li("0x2a"),li("0x5b"),li("0x72"),((t,e)=>{n[li("0x1d")][li("0x71")](li("0x2a"),"",li("0x39"))(t,{commandName:e.commandName,commandParams:e[li("0x5e")]})})),n[li("0x1d")][li("0x1f")](li("0x2a"),li("0x5b"),li("0x64"),x)}const i=[{type:li("0x2a"),subType:"imageStylePreApply"},{type:li("0x65"),subType:"imageCaption"},{type:li("0x2a"),subType:li("0x1e")},{type:"insertion",subType:li("0x1e")}];function a(t,e){const r=i.findIndex((({type:e,subType:n})=>t[li("0x15")]==e&&t[li("0x2d")]==n)),s=i[li("0x74")]((({type:t,subType:n})=>e.type==t&&e[li("0x2d")]==n));if(r<0||s<0)return!1;const a=t[li("0x33")](),x=e[li("0x33")]();if((0==r||1==r)&&2==s&&a[li("0x6c")](x))return!0;if(2==r&&3==s){const t=n[li("0x16")](a,li("0x65"))[li("0x3f")]((({suggestion:t,meta:e})=>e.isOwn&&"convertInlineImageToBlock"==t[li("0x2d")]));if(t[li("0x76")]>1&&x.end[li("0xd")](a.start))return!0;if(1==t[li("0x76")]&&(a[li("0x34")][li("0xd")](x[li("0x37")])||a[li("0x37")][li("0xd")](x[li("0x34")])))return!0}if(3==r&&3==s&&a[li("0x34")][li("0x0")](x.start)){const t=a[li("0x37")][li("0x42")],e=x.start[li("0xb")];return o[li("0x61")](t)&&t===e}return!1}function x(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[li("0x17")][li("0x7")].registerPostFixer((()=>{let e=!1;const r=Array[li("0x10")](t[li("0x17")][li("0x7")].differ[li("0x35")]());for(const{name:t,data:s}of r){const{group:r,type:i,subType:a,id:x}=n[li("0x6a")](t);if("suggestion"==r&&n[li("0x6")](x)){if(li("0x2a")==i&&(li("0x5b")==a||li("0x5a")==a)){const t=n[li("0x54")](x);if(s[li("0x2f")]){const r=t.getFirstRange()[li("0x21")]();if(o[li("0x61")](r))continue;n[li("0x2e")](t),e=!0}}if(li("0x65")==i&&li("0x47")==a&&!s[li("0x2f")]){const t=n[li("0x54")](x);t[li("0x1")]&&t[li("0x1")][li("0x8")]&&(n[li("0x2e")](t[li("0x1")]),e=!0)}}}return e})),t[li("0x23")][li("0x9")]("ImageResize")&&n.enableCommand(li("0x25"),((e,r)=>{const s=o.getClosestSelectedImageElement(t[li("0x17")].document[li("0x3")]);s[li("0x2c")](li("0x22"))!=r.width&&t.model.change((()=>{n[li("0x68")](s,{commandName:li("0x25"),commandParams:[r]})}))})),t[li("0x23")][li("0x9")](li("0x52"))&&n[li("0x2b")](li("0x38"),((e,r)=>{const s=o.getClosestSelectedImageElement(t.model[li("0x7")].selection);(s[li("0x24")]("alt")?s[li("0x2c")]("alt"):"")!=r[li("0x5")]&&t[li("0x17")][li("0x3a")]((()=>{n[li("0x68")](s,{commandName:li("0x38"),commandParams:[r]})}))})),n[li("0x5c")][li("0x41")]((t=>{if(i[li("0x69")]((({type:e,subType:n})=>t[li("0x15")]==e&&t.subType==n)))return t[li("0x3c")]?{}:void 0})),n._descriptionFactory[li("0x41")]((t=>{if(li("0x65")==t.type||li("0x11")==t.type){const e=t.getContainedElement();if(e&&e.is(li("0x18"),li("0x4e")))return{type:li("0x65")==t.type?"addObject":li("0x31"),name:e.name,quantity:1}}})),n[li("0x5c")][li("0x41")]((t=>li("0x2a")==t[li("0x15")]&&li("0x1e")==t[li("0x2d")]?{type:li("0x55"),content:li("0x6f")}:li("0x2a")==t[li("0x15")]&&li("0x1c")==t[li("0x2d")]?{type:li("0x55"),content:li("0x4d")}:void 0)),n[li("0x5c")][li("0x41")]((t=>{const{data:e}=t;if(e){if(li("0x44")==e[li("0x1b")]){const t=e[li("0x19")][0][li("0x67")];return n=li("0x66")===t?kr(s,li("0x4")):r[t]||t,{type:"format",content:kr(s,li("0x5f"),n)}}if(li("0x38")==e.commandName){const t=e[li("0x19")][0][li("0x5")];return t?{type:"format",content:kr(s,li("0x40"),'"'+t+'"')}:{type:li("0x55"),content:kr(s,li("0x51"))}}if(li("0x25")==e.commandName){const t=e[li("0x19")][0].width;return t?{type:li("0x55"),content:kr(s,li("0x4f"),t)}:{type:"format",content:kr(s,"*Reset image width*")}}}var n}))}}const di=["getSelectedBlocks","outdent","IndentBlock","getItems","model","has","filter","name","format","checkAttribute","getItemLabel","indentBlock","from","editor","enableCommand","change","locale","commandName","plugins","document","_descriptionFactory","registerDescriptionCallback","indent","blockIndent","afterInit","outdentBlock"];var gi,fi;gi=di,fi=142,function(t){for(;--t;)gi.push(gi.shift())}(++fi);const mi=function(t,e){return di[t-=0]};class hi extends t.Plugin{[mi("0xc")](){const t=this[mi("0x1")],e=t[mi("0x6")].get("TrackChangesEditing");t[mi("0x6")].has("IndentEditing")&&(e[mi("0x2")](mi("0xa")),e[mi("0x2")](mi("0xf")));const n=t[mi("0x4")];if(t[mi("0x6")][mi("0x13")](mi("0x10"))){for(const n of[mi("0x19"),mi("0xd")])e[mi("0x2")](n,(()=>{const o=Array[mi("0x0")](this[mi("0x1")][mi("0x12")][mi("0x7")].selection[mi("0xe")]())[mi("0x14")]((t=>this[mi("0x1")][mi("0x12")].schema[mi("0x17")](t,mi("0xb"))));t[mi("0x12")][mi("0x3")]((()=>{for(const t of o)e.markBlockFormat(t,{commandName:n,commandParams:[{value:""}],formatGroupId:mi("0x19")})}))}));e[mi("0x8")][mi("0x9")]((t=>{const{data:o}=t;if(!o)return;if(mi("0x19")!=o[mi("0x5")]&&mi("0xd")!=o[mi("0x5")])return;const r=t[mi("0x11")]()[0],s=e._descriptionFactory[mi("0x18")](r[mi("0x15")]);return mi("0x19")==o.commandName?{type:mi("0x16"),content:kr(n,"*Indent:* %0",s)}:mi("0xd")==o[mi("0x5")]?{type:"format",content:kr(n,"*Outdent:* %0",s)}:void 0}))}}}var pi,bi,Ei=["get","input","editor","init","enableCommand","requires"];pi=Ei,bi=371,function(t){for(;--t;)pi.push(pi.shift())}(++bi);var _i=function(t,e){return Ei[t-=0]};class yi extends t.Plugin{static get[_i("0x0")](){return[Ts.Input]}[_i("0x4")](){this[_i("0x3")].plugins[_i("0x1")]("TrackChangesEditing")[_i("0x5")](_i("0x2"))}}const Ti=["from","get","markInlineFormat","change","format","afterInit","getFirstRange","unlink","enableCommand","selection","hasAttribute","commandParams","getRanges","*Set link:* %0","registerDescriptionCallback","TrackChangesEditing","commandName","_descriptionFactory","isCollapsed","model","link","editor","locale","getAttribute","getFirstPosition","linkHref","has","document"];var Ci,ki;Ci=Ti,ki=311,function(t){for(;--t;)Ci.push(Ci.shift())}(++ki);const vi=function(t,e){return Ti[t-=0]};class Ai extends t.Plugin{[vi("0x2")](){const t=this[vi("0x12")];if(!t.plugins[vi("0x17")]("LinkEditing"))return;const e=t.plugins[vi("0x1a")](vi("0xc"));e.enableCommand("link",((n,o)=>{const r=t[vi("0x10")][vi("0x18")][vi("0x6")];let s=[];if(r[vi("0xf")]){if(!r[vi("0x7")]("linkHref"))return void n(o);{const e=(0,Ts.findAttributeRange)(r[vi("0x15")](),vi("0x16"),r[vi("0x14")]("linkHref"),t.model);s=[e]}}else s=Array[vi("0x19")](r[vi("0x9")]());t.model[vi("0x0")]((()=>{for(const t of s)e[vi("0x1b")](t,{commandName:vi("0x11"),commandParams:[o]})}))})),e[vi("0x5")](vi("0x4"),(()=>{const n=this[vi("0x12")][vi("0x10")],o=n[vi("0x18")][vi("0x6")];n[vi("0x0")]((()=>{let n=[];n=o[vi("0xf")]?[(0,Ts.findAttributeRange)(o[vi("0x15")](),vi("0x16"),o.getAttribute("linkHref"),t[vi("0x10")])]:Br(vi("0x16"),o[vi("0x3")](),t[vi("0x10")]);for(const t of n)e[vi("0x1b")](t,{commandName:vi("0x4"),commandParams:[]})}))})),e[vi("0xe")][vi("0xb")]((e=>{const{data:n}=e,o=t[vi("0x13")];if(n){if("link"==n[vi("0xd")]){const t=n[vi("0x8")][0];return{type:vi("0x1"),content:kr(o,vi("0xa"),'"'+t+'"')}}return vi("0x4")==n[vi("0xd")]?{type:vi("0x1"),content:kr(o,"*Remove link*")}:void 0}}))}}const Ri=["editor","model","previousSibling","bulletedList","has","afterInit","getAttribute","markBlockFormat","forceValue","nextSibling","filter","numbered","checkTodoList","commands","document","add","blockName","numberedList","*Uncheck item*","List","createRange","todoList","plugins","change","registerDescriptionCallback","isObject","get","value","length","createPositionAt","bulleted","end","TrackChangesEditing","paragraph","ELEMENT_NUMBERED_LIST","checkChild","listItem","before","_selectedElements","slice","enableCommand","getSelectedBlocks","name","*Change to:* %0","_descriptionFactory","from","schema","indentList","TodoListEditing","commandParams","*Check item*","element","todoListChecked","ELEMENT_LIST_ITEM","*Indent:* %0","listIndent","push","format","commandName","*Outdent:* %0","ListEditing","outdentList"];var Si,Ii;Si=Ri,Ii=464,function(t){for(;--t;)Si.push(Si.shift())}(++Ii);const wi=function(t,e){return Ri[t-=0]};class Mi extends t.Plugin{[wi("0x25")](){const t=this[wi("0x20")],e=t.locale;if(!t.plugins[wi("0x24")](wi("0x1e")))return;const n=t.plugins.get(wi("0x2")),o=t[wi("0x36")][wi("0x24")](wi("0x12"));function r(e){return()=>{const o=t[wi("0x21")].document.selection,r=t[wi("0x2d")][wi("0x3a")](e);if(r[wi("0x3b")])return void t.execute(wi("0x3"),{});const s=e.slice(0,-4),i=function(t,e,n){let o=Array[wi("0xf")](t).filter((t=>{return e=t,(o=n)[wi("0x5")](e.parent,"listItem")&&!o[wi("0x39")](e);var e,o}));o=o[wi("0x2a")]((t=>!t.is(wi("0x15"),wi("0x6"))||t[wi("0x26")]("listType")!=e));const r=new Set;for(const t of o)t.is("element",wi("0x6"))?r.add(Ni(t)):r[wi("0x2f")](t);return Array[wi("0xf")](r)}(o[wi("0xb")](),s,t.model[wi("0x10")]);t[wi("0x21")][wi("0x37")]((()=>{for(const t of i)n[wi("0x27")](t,{commandName:e,commandParams:[{forceValue:!r[wi("0x3b")]}],formatGroupId:wi("0x30")},Li(t))}))}}function s(e){return()=>{const o=function(t){const e=(t=Array.from(t)).findIndex((t=>wi("0x6")!=t.name));return e>-1&&(t=t[wi("0x9")](0,e)),t}(t[wi("0x21")][wi("0x2e")].selection[wi("0xb")]()),r=t[wi("0x21")][wi("0x34")](t[wi("0x21")][wi("0x3d")](o[0],wi("0x7")),t.model[wi("0x3d")](o[o[wi("0x3c")]-1],wi("0x1")));t[wi("0x21")].change((()=>{n[wi("0x27")](r,{commandName:e,commandParams:[],formatGroupId:wi("0x19")},function(t){const e=new Set;for(const n of t){let t=n[wi("0x29")];for(;t&&t[wi("0x26")](wi("0x19"))>n[wi("0x26")](wi("0x19"));)e[wi("0x2f")](t),t=t[wi("0x29")]}return Array.from(e)}(o))}))}}n[wi("0xa")](wi("0x31"),r(wi("0x31"))),n[wi("0xa")](wi("0x23"),r(wi("0x23"))),o&&n[wi("0xa")](wi("0x35"),r("todoList")),n.enableCommand(wi("0x11"),s(wi("0x11"))),n[wi("0xa")](wi("0x1f"),s(wi("0x1f"))),o&&n.enableCommand("checkTodoList",(()=>{const e=t.commands[wi("0x3a")]("checkTodoList"),o=Array[wi("0xf")](e[wi("0x8")]);o.filter((t=>t[wi("0x26")](wi("0x16"))!=e[wi("0x3b")])),t.model.change((()=>{for(const t of o)n[wi("0x27")](t,{commandName:wi("0x2c"),commandParams:[{forceValue:!e[wi("0x3b")]}]})}))})),n[wi("0xe")].registerElementLabel("listItem",(t=>kr(e,wi("0x17"),t))),n[wi("0xe")][wi("0x38")]((t=>{const{data:n}=t;if(n){if(wi("0x31")==n[wi("0x1c")]||"bulletedList"==n[wi("0x1c")]||wi("0x35")==n[wi("0x1c")])switch(n[wi("0x1c")].replace(wi("0x33"),"")){case wi("0x0"):return o(kr(e,"ELEMENT_BULLETED_LIST"));case wi("0x2b"):return o(kr(e,wi("0x4")));case"todo":return o(kr(e,"ELEMENT_TODO_LIST"))}if("indentList"==n[wi("0x1c")])return{type:wi("0x1b"),content:kr(e,wi("0x18"),kr(e,"ELEMENT_LIST_ITEM"))};if(wi("0x1f")==n[wi("0x1c")])return{type:wi("0x1b"),content:kr(e,wi("0x1d"),kr(e,"ELEMENT_LIST_ITEM"))};if("checkTodoList"==n[wi("0x1c")])return n[wi("0x13")][0][wi("0x28")]?{type:wi("0x1b"),content:kr(e,wi("0x14"))}:{type:"format",content:kr(e,wi("0x32"))}}function o(t){return{type:wi("0x1b"),content:kr(e,wi("0xd"),t)}}}))}}function Ni(t){const e=t[wi("0x26")](wi("0x19"));if(0==e)return t;let n=t;for(;t[wi("0x22")]&&t[wi("0x22")].is(wi("0x15"),wi("0x6"));){const o=t.previousSibling[wi("0x26")](wi("0x19"));if(o==e)n=t.previousSibling;else if(o<e)break;t=t[wi("0x22")]}return n}function Li(t){const e=[];if(t.is(wi("0x15"),wi("0x6"))&&t[wi("0x26")](wi("0x19"))>0){let n=t[wi("0x29")];for(;n&&wi("0x6")==n[wi("0xc")]&&n[wi("0x26")](wi("0x19"))==t[wi("0x26")](wi("0x19"));)e[wi("0x1a")](n),n=n[wi("0x29")]}return e}const Oi=["attribute:url:media","get","elementToElement","high","afterInit","enableCommand","conversion","dataDowncast","MediaEmbedEditing","locale","div","data","plugins","options","stop","createEmptyElement","has","editor","for","showSuggestionHighlights","media","_descriptionFactory","downcastDispatcher","TrackChangesEditing"];var Fi,Pi;Fi=Oi,Pi=470,function(t){for(;--t;)Fi.push(Fi.shift())}(++Pi);const Di=function(t,e){return Oi[t-=0]};class ji extends t.Plugin{[Di("0xe")](){const t=this[Di("0x3")];if(!t[Di("0x16")][Di("0x2")](Di("0x12")))return;const e=t.plugins[Di("0xb")](Di("0x9")),n=t[Di("0x13")];e[Di("0xf")]("mediaEmbed"),e[Di("0x7")].registerElementLabel(Di("0x6"),(t=>kr(n,"ELEMENT_MEDIA",t))),t[Di("0x10")][Di("0x4")](Di("0x11"))[Di("0xc")]({model:Di("0x6"),view:(t,{writer:e,options:n})=>{if(n[Di("0x5")])return e[Di("0x1")](Di("0x14"))},converterPriority:Di("0xd")}),t[Di("0x15")][Di("0x8")].on(Di("0xa"),((t,e,n)=>{n[Di("0x17")][Di("0x5")]&&t[Di("0x0")]()}),{priority:"high"})}}const Bi=["mention","plugins","enableCommand","TrackChangesEditing","editor","afterInit"];var Ui,Hi;Ui=Bi,Hi=375,function(t){for(;--t;)Ui.push(Ui.shift())}(++Hi);const Gi=function(t,e){return Bi[t-=0]};class Vi extends t.Plugin{[Gi("0x2")](){const t=this[Gi("0x1")];t[Gi("0x4")].has("MentionEditing")&&t[Gi("0x4")].get(Gi("0x0"))[Gi("0x5")](Gi("0x3"))}}const zi=["locale","PageBreakEditing","get","enableCommand","editor","has","pageBreak","_descriptionFactory","TrackChangesEditing","registerElementLabel","ELEMENT_PAGE_BREAK","plugins"];var Wi,Ki;Wi=zi,Ki=453,function(t){for(;--t;)Wi.push(Wi.shift())}(++Ki);const $i=function(t,e){return zi[t-=0]};class qi extends t.Plugin{afterInit(){const t=this[$i("0x7")];if(!t.plugins[$i("0x8")]($i("0x4")))return;t[$i("0x2")][$i("0x5")]("TrackChangesEditing")[$i("0x6")]($i("0x9"));const e=t[$i("0x2")][$i("0x5")]($i("0xb")),n=t[$i("0x3")];e[$i("0xa")][$i("0x0")]("pageBreak",(t=>kr(n,$i("0x1"),t)))}}const Xi=["toViewPosition","showSuggestionHighlights","ELEMENT_PARAGRAPH","afterInit","document","options","model","writer","registerElementLabel","TrackChangesEditing","isObject","end","locale","editing","editor","isBlock","nodeAfter","getItemLabel","mapper","parent","filter","span","registerDescriptionCallback","_descriptionFactory","has","paragraph","from","data","*Change to:* %0","ck-suggestion-marker--active","*Insert:* %0","addMarker:suggestion:insertion","blockName","selection","name","consumable","commandName","bindElementToMarker","change","markerRange","consume","$text","markerName","type","includes","markBlockFormat","checkChild","plugins","insertion","schema","isLimit","get"];var Ji,Qi;Ji=Xi,Qi=408,function(t){for(;--t;)Ji.push(Ji.shift())}(++Qi);const Yi=function(t,e){return Xi[t-=0]};class Zi extends t.Plugin{[Yi("0xb")](){const t=this[Yi("0x16")];if(!t[Yi("0x3")][Yi("0x20")]("Paragraph"))return;const e=t[Yi("0x14")],n=t[Yi("0x3")][Yi("0x7")](Yi("0x11"));n[Yi("0x1f")][Yi("0x10")](Yi("0x21"),(t=>kr(e,"ELEMENT_PARAGRAPH",t))),n.enableCommand(Yi("0x21"),((e,o={})=>{const r=t[Yi("0xe")][Yi("0xc")],s=o[Yi("0x29")]||r[Yi("0x29")],i=Array[Yi("0x22")](s.getSelectedBlocks())[Yi("0x1c")]((t=>{return e=t,(n=this[Yi("0x16")].model[Yi("0x5")])[Yi("0x2")](e[Yi("0x1b")],"paragraph")&&!n[Yi("0x12")](e)&&Yi("0x21")!=e[Yi("0x2a")];var e,n}));t[Yi("0xe")][Yi("0x2e")]((()=>{for(const t of i)n[Yi("0x1")](t,{commandName:Yi("0x21"),commandParams:[],formatGroupId:Yi("0x28")},Ur(t))}))})),n._descriptionFactory[Yi("0x1e")]((t=>{const{data:n}=t;if(n&&Yi("0x21")==n[Yi("0x2c")])return{type:"format",content:kr(e,Yi("0x24"),kr(e,Yi("0xa")))}})),n.enableCommand("insertParagraph"),t[Yi("0x15")].downcastDispatcher.on(Yi("0x27"),ta(t),{priority:"highest"}),t[Yi("0x23")].downcastDispatcher.on(Yi("0x27"),((e,n,o)=>{o[Yi("0xd")][Yi("0x9")]&&ta(t,{showActiveMarker:!1})(e,n,o)}),{priority:"highest"});const o=n[Yi("0x1f")];o.registerDescriptionCallback((n=>{if(Yi("0x4")!==n[Yi("0x33")])return;const{start:r,end:s}=n.getFirstRange();if(!r.isTouching(s)||!r[Yi("0x18")])return;const i=t[Yi("0xe")].schema,a=r[Yi("0x18")];return i[Yi("0x17")](a)&&!i.isLimit(a)&&i[Yi("0x2")](a,Yi("0x31"))?{type:"insertion",content:kr(e,Yi("0x26"),o[Yi("0x19")](a[Yi("0x2a")],1))}:void 0}))}}function ta(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const s=t[Yi("0x3")].get(Yi("0x11")),i=o[Yi("0x2f")].start,a=o[Yi("0x2f")][Yi("0x13")],x=t.model[Yi("0x5")];if(!i.isTouching(a)||!i[Yi("0x18")])return;const c=i[Yi("0x18")];if(x[Yi("0x17")](c)&&!x[Yi("0x6")](c)&&x[Yi("0x2")](c,Yi("0x31"))){if(!r[Yi("0x2b")][Yi("0x30")](o[Yi("0x2f")],n[Yi("0x2a")]))return;const t=r[Yi("0xf")].createUIElement(Yi("0x1d"),{class:"ck-suggestion-marker-split"}),i=r[Yi("0x1a")][Yi("0x8")](a);e&&s.activeMarkers[Yi("0x0")](o[Yi("0x32")])&&r.writer.addClass(Yi("0x25"),t),r[Yi("0xf")].insert(i,t),r.mapper[Yi("0x2d")](t,o[Yi("0x32")])}}}const ea=["locale","change","model","plugins","isCollapsed","commandName","*Remove all formatting*","_descriptionFactory","createRangeOn","from","TrackChangesEditing","registerDescriptionCallback","document","getRanges","getAttributes","removeFormat","isFormatting","getItems","get","markInlineFormat","schema","getAttributeProperties","afterInit"];var na,oa;na=ea,oa=275,function(t){for(;--t;)na.push(na.shift())}(++oa);const ra=function(t,e){return ea[t-=0]};class sa extends t.Plugin{[ra("0x0")](){const t=this.editor;if(!t[ra("0x4")].has("RemoveFormatEditing"))return;const e=t[ra("0x4")][ra("0x13")](ra("0xb"));e.enableCommand(ra("0x10"),(n=>{const o=t[ra("0x3")][ra("0xd")].selection;o[ra("0x5")]?n():t[ra("0x3")][ra("0x2")]((()=>{const n=Array[ra("0xa")](o[ra("0xe")]());for(const o of n)for(const n of o[ra("0x12")]())ia(n,t[ra("0x3")][ra("0x15")])&&e[ra("0x14")](t[ra("0x3")][ra("0x9")](n),{commandName:ra("0x10"),commandParams:[]})}))})),e[ra("0x8")][ra("0xc")]((e=>{const{data:n}=e;if(n&&"removeFormat"==n[ra("0x6")])return{type:"format",content:kr(t[ra("0x1")],ra("0x7"))}}))}}function ia(t,e){for(const[n]of t[ra("0xf")]()){const t=e[ra("0x16")](n);if(t&&t[ra("0x11")])return!0}return!1}const aa=["acceptSelectedSuggestions","RestrictedEditingModeEditing","trackChanges","editor","TrackChangesEditing","plugins","discardSuggestion","discardSelectedSuggestions","discardAllSuggestions","enableCommand","goToPreviousRestrictedEditingException","afterInit","acceptAllSuggestions","has","goToNextRestrictedEditingException"];var xa,ca;xa=aa,ca=141,function(t){for(;--t;)xa.push(xa.shift())}(++ca);const la=function(t,e){return aa[t-=0]};class ua extends t.Plugin{[la("0x5")](){const t=this[la("0xc")];if(!t[la("0xe")][la("0x7")](la("0xa")))return;const e=t[la("0xe")].get(la("0xd"));e.enableCommand(la("0x4")),e[la("0x3")](la("0x8"));const n=t[la("0xe")].get(la("0xa"));n[la("0x3")](la("0xb")),n[la("0x3")]("acceptSuggestion"),n[la("0x3")](la("0x0")),n[la("0x3")](la("0x6")),n[la("0x3")](la("0x2")),n[la("0x3")](la("0x9")),n[la("0x3")](la("0x1"))}}const da=["element","markerName","addMarker:suggestion:deletion","softBreak","getItems","showSuggestionHighlights","editing","insert","split","addMarker:suggestion:insertion","editor","addClass","test","options","ck-suggestion-marker--active","consumable","init","_descriptionFactory","mapper","name","addMarker:suggestion","locale","ELEMENT_LINE_BREAK","model","get","markerRange","TrackChangesEditing","plugins","registerElementLabel","activeMarkers","deletion","createPositionBefore","writer","merge","downcastDispatcher","bindElementToMarker","high","span"];var ga,fa;ga=da,fa=338,function(t){for(;--t;)ga.push(ga.shift())}(++fa);const ma=function(t,e){return da[t-=0]};class ha extends t.Plugin{static get requires(){return[Ss.ShiftEnter]}[ma("0x14")](){const t=this[ma("0xe")],e=t[ma("0x1f")][ma("0x1c")](ma("0x1e"));e.enableCommand("shiftEnter"),t.editing[ma("0x0")].on(ma("0xd"),pa(t),{priority:ma("0x2")}),t[ma("0xa")][ma("0x0")].on(ma("0x6"),pa(t),{priority:ma("0x2")}),t.data[ma("0x0")].on(ma("0x18"),((e,n,o)=>{o[ma("0x11")][ma("0x9")]&&pa(t,{showActiveMarker:!1})(e,n,o)})),e[ma("0x15")][ma("0x20")](ma("0x7"),(e=>kr(t[ma("0x19")],ma("0x1a"),e)))}}function pa(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const s=t.plugins[ma("0x1c")](ma("0x1e"));if(!r[ma("0x13")][ma("0x10")](o[ma("0x1d")],n[ma("0x17")]))return;const i=t[ma("0x1b")];for(const t of o.markerRange[ma("0x8")]()){if(!t.is(ma("0x4"),ma("0x7")))continue;const n=ma("0x22")==o[ma("0x5")][ma("0xc")](":")[1]?ma("0x25"):ma("0xc"),a=r[ma("0x24")].createUIElement(ma("0x3"),{class:"ck-suggestion-marker-"+n}),x=r[ma("0x16")].toViewPosition(i[ma("0x23")](t));e&&s[ma("0x21")].includes(o.markerName)&&r[ma("0x24")][ma("0xf")](ma("0x12"),a),r.writer[ma("0xb")](x,a),r[ma("0x16")][ma("0x1")](a,o[ma("0x5")])}}}const ba=["value","has","document","restrictedEditingException","FORMAT_RESTRICTED_ENABLED","getRanges","editor","FORMAT_RESTRICTED_DISABLED","locale","forceValue","selection","format","plugins","model","registerDescriptionCallback","enableCommand","_descriptionFactory","markInlineFormat","get","afterInit"];var Ea,_a;Ea=ba,_a=492,function(t){for(;--t;)Ea.push(Ea.shift())}(++_a);const ya=function(t,e){return ba[t-=0]};class Ta extends t.Plugin{[ya("0x7")](){const t=this[ya("0xe")],e=t[ya("0x1")],n=t[ya("0x10")];if(!t[ya("0x0")][ya("0x9")]("StandardEditingModeEditing"))return;const o=t[ya("0x0")][ya("0x6")]("TrackChangesEditing"),r=ya("0xb"),s=t.commands.get(r);o[ya("0x3")](r,((t,n={})=>{const i=e[ya("0xa")][ya("0x12")];if(i.isCollapsed)return void t(n);const a=void 0!==n[ya("0x11")]?n[ya("0x11")]:!s[ya("0x8")];e.change((()=>{const t=Array.from(i[ya("0xd")]());for(const n of t){const t=a?[n]:Br(r,n,e);for(const e of t)o[ya("0x5")](e,{commandName:r,commandParams:[{forceValue:a}]})}}))})),o[ya("0x4")][ya("0x2")]((t=>{const{data:e}=t;if(e&&e.commandName==r)return e.commandParams[0][ya("0x11")]?{type:"format",content:kr(n,ya("0xc"))}:{type:ya("0x13"),content:kr(n,ya("0xf"))}}))}}const Ca=["showSuggestionHighlights","table","left","getRanges","getSuggestion","insertTableColumnLeft","accept","textProxy","createTableWalker","has","enqueueChange","colspan","getChanges","_getCoordsForCells","TrackChangesEditing","isArray","plugins","minColumn","rootName","filter","position","_setupColumnsRowsFixing","join","refresh","length","_getSuggestionCoords","getAttribute","toLowerCase","tableCell","writer","getColumnIndexes","maxRow","item","low","start","isTouching","tablePaste","TableUtils","element","markMultiRangeInsertion","_descriptionFactory","batch","selectTableColumn","map","getChangedMarkers","createRangeOn","insert","_suggestionFactory","addRange","values","execute","getItems","createRangeIn","name","tableColumn","removeTableColumn","end","tableRow","discard","findAncestor","deletion","MAX_SAFE_INTEGER","ELEMENT_TABLE","change","ELEMENT_TABLE_COLUMN","insertion","_tableSuggestions","detach","ELEMENT_TABLE_WITH_TEXT","getRowIndexes","hasAttribute","min","isEqual","MIN_SAFE_INTEGER","removeTableRow","commands","isIntersectingWithRange","$graveyard","locale","data","cell","rowspan","getFirstRange","max","afterInit","*Insert:* %0","suggestion","from","*Remove:* %0","ELEMENT_TABLE_ROW_WITH_TEXT","highest","setSelection","above","model","_tablePostFixingSubtypes","fromRange","root","nodeBefore","getCellLocation","get","getSelectionAffectedTableCells","enableCommand","mapper","registerPostFixer","registerDescriptionCallback","markMultiRangeDeletion","removeClass","nodeAfter","insertTableColumnRight","last","downcastDispatcher","substr","forceValue","ELEMENT_TABLE_ROW","getChildren","differ","subType","span","options","editor","includes","registerCustomCallback","order","document","createPositionAt","type","toViewElement","first","addClass","selectTableRow"];var ka,va;ka=Ca,va=309,function(t){for(;--t;)ka.push(ka.shift())}(++va);const Aa=function(t,e){return Ca[t-=0]};class Ra extends t.Plugin{constructor(t){super(t),this._tablePostFixingSubtypes=[Aa("0x8"),Aa("0x5")]}[Aa("0x23")](){const t=this[Aa("0x46")],e=t[Aa("0x2c")][Aa("0x4a")].selection;if(!t.plugins[Aa("0x5a")]("TableEditing"))return;const n=t[Aa("0x1d")],o=t.plugins[Aa("0x32")](Aa("0x5f")),r=t[Aa("0x61")][Aa("0x32")](Aa("0x76"));o[Aa("0x79")].registerElementLabel(Aa("0x52"),(t=>kr(n,Aa("0xd"),t))),this[Aa("0x66")](),o[Aa("0x34")]("insertTable"),o[Aa("0x34")](Aa("0x50")),o[Aa("0x34")](Aa("0x7b"));for(const n of["insertTableRowAbove","insertTableRowBelow"]){const s=t[Aa("0x1a")][Aa("0x32")](n);o[Aa("0x34")](n,(n=>{t[Aa("0x2c")][Aa("0xe")]((t=>{n();const i=Aa("0x2b")===s[Aa("0x49")],a=r[Aa("0x33")](e),x=r[Aa("0x14")](a),c=i?x[Aa("0x4e")]-1:x[Aa("0x3c")]+1,l=a[0][Aa("0xa")](Aa("0x52")),u=r[Aa("0x59")](l,{startRow:c,endRow:c}),d=Array[Aa("0x26")](u).map((e=>t[Aa("0x7e")](e.cell)));o[Aa("0x78")](d,Aa("0x8"))}))}))}for(const n of[Aa("0x56"),Aa("0x3b")]){const s=t[Aa("0x1a")][Aa("0x32")](n);o[Aa("0x34")](n,(n=>{t.model[Aa("0xe")]((t=>{n();const i=Aa("0x53")===s.order,a=r.getSelectionAffectedTableCells(e),x=r[Aa("0x6f")](a),c=i?x.first-1:x[Aa("0x3c")]+1,l=a[0].findAncestor("table"),u=r.createTableWalker(l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Aa("0x26")](u)[Aa("0x7c")]((e=>t[Aa("0x7e")](e[Aa("0x1f")])));o[Aa("0x78")](d,"tableColumn")}))}))}for(const n of["removeTableRow",Aa("0x6")]){const s=n[Aa("0x3e")](11),i=s[Aa("0x6c")](),a=i[Aa("0x3e")](0,3)+"span",x="table"+s,c="min"+s,l=Aa("0x22")+s;o[Aa("0x34")](n,(()=>{t[Aa("0x2c")][Aa("0xe")]((t=>{const s=r.getSelectionAffectedTableCells(e),u=s[0][Aa("0xa")](Aa("0x52"));let d;if(Aa("0x19")==n){const t=r[Aa("0x14")](s);d={startRow:t.first,endRow:t[Aa("0x3c")],includeAllSlots:!0}}else{const t=r[Aa("0x6f")](s);d={startColumn:t[Aa("0x4e")],endColumn:t[Aa("0x3c")],includeAllSlots:!0}}const g=r.createTableWalker(u,d),f=Array[Aa("0x26")](g)[Aa("0x7c")]((({cell:t})=>t)),m=Sa(f[Aa("0x64")]((t=>t.hasAttribute(a)))),h=Sa(f[Aa("0x64")]((t=>!t[Aa("0x15")](a))))[Aa("0x7c")]((e=>t[Aa("0x7e")](e))),p=o[Aa("0x38")](h,x);if(p&&(Aa("0x8")==p.subType||"tableColumn"==p[Aa("0x43")])){const e=this[Aa("0x6a")](p);for(const n of m){const o=t[Aa("0x7e")](n),s=r[Aa("0x31")](n),x=n[Aa("0x6b")](a)-1,u=e[c],d=e[l];u<=s[i]&&s[i]+x<=d&&p[Aa("0x81")](o)}}}))}))}function s(n){const o=Array.from(e[Aa("0x54")]())[Aa("0x7c")]((t=>F.LiveRange[Aa("0x2e")](t)));t.model[Aa("0xe")]((e=>{const r=e[Aa("0x7a")];n=n[Aa("0x64")]((t=>"$graveyard"!=t[Aa("0x2f")][Aa("0x63")])),e[Aa("0x2a")](n),t.commands[Aa("0x32")](Aa("0x19"))[Aa("0x68")](),t[Aa("0x1")]("removeTableRow",{forceDefaultExecution:!0}),t[Aa("0x2c")][Aa("0x5b")]((()=>{t[Aa("0x2c")][Aa("0x5b")](r,(t=>{const e=o.filter((t=>Aa("0x1c")!=t[Aa("0x2f")][Aa("0x63")]));e[Aa("0x69")]>0&&t[Aa("0x2a")](e);for(const t of o)t[Aa("0x12")]()}))}))}))}function i(n){t[Aa("0x2c")][Aa("0xe")]((o=>{const r=Array[Aa("0x26")](e[Aa("0x54")]())[Aa("0x7c")]((t=>F.LiveRange.fromRange(t))),s=[];for(const t of n)for(const e of t[Aa("0x2")]({shallow:!0}))s.push(e);for(const e of s)Aa("0x1c")!=e[Aa("0x2f")][Aa("0x63")]&&(o[Aa("0x2a")](o[Aa("0x4b")](e,0)),t[Aa("0x1a")][Aa("0x32")](Aa("0x6"))[Aa("0x68")](),t.execute(Aa("0x6"),{forceDefaultExecution:!0}));const i=r.filter((t=>Aa("0x1c")!=t[Aa("0x2f")].rootName));i[Aa("0x69")]>0&&o[Aa("0x2a")](i);for(const t of r)t[Aa("0x12")]()}))}function a(t,e){return e.every((e=>t.some((t=>t[Aa("0x7")][Aa("0x17")](e[Aa("0x73")])||e[Aa("0x7")].isEqual(t.start)))))}function x(t,e){return t.some((t=>e.some((e=>t.end[Aa("0x74")](e[Aa("0x73")])))))}t.data[Aa("0x3d")].on("addMarker:suggestion",((t,e,n)=>{if(!n[Aa("0x45")][Aa("0x51")])return;const o=e[Aa("0x71")];if(!o)return;const r=n[Aa("0x35")][Aa("0x4d")](o);function s(t){return Array[Aa("0x60")](t)?t:[t]}r&&Aa("0x6d")===o.name&&(0,P.setHighlightHandling)(r,n[Aa("0x6e")],((t,e,n)=>n[Aa("0x4f")](s(e.classes),t)),((t,e,n)=>n[Aa("0x39")](s(e.classes),t)))}),{priority:Aa("0x29")}),o._descriptionFactory[Aa("0x37")]((t=>{if(Aa("0x10")!=t[Aa("0x4c")]&&Aa("0xb")!=t[Aa("0x4c")])return;const e=t.getContainedElement();if(null!=e&&e.is(Aa("0x77"),Aa("0x52"))){if("insertion"==t[Aa("0x4c")]){const e=t[Aa("0x2")]()[Aa("0x64")]((t=>t.is(Aa("0x58")))).map((t=>t[Aa("0x1e")]));if(e[Aa("0x69")])return{type:Aa("0x10"),content:kr(n,"*Insert:* %0",kr(n,Aa("0x13"),'"'+e.join(" ")+'"'))}}if(Aa("0xb")==t[Aa("0x4c")]){const e=t[Aa("0x2")]().filter((t=>t.is(Aa("0x58"))))[Aa("0x7c")]((t=>t[Aa("0x1e")]));if(e.length)return{type:"deletion",content:kr(n,Aa("0x27"),kr(n,Aa("0x13"),'"'+e[Aa("0x67")](" ")+'"'))}}}})),o[Aa("0x79")].registerDescriptionCallback((t=>{if(Aa("0x8")==t.subType){const e=t[Aa("0x2")]().filter((t=>t.is("textProxy")))[Aa("0x7c")]((t=>t[Aa("0x1e")])),o=this._getSuggestionCoords(t),r=o[Aa("0x70")]-o.minRow+1;if("insertion"==t[Aa("0x4c")])return e[Aa("0x69")]?{type:"insertion",content:kr(n,"*Insert:* %0",kr(n,Aa("0x28"),[r,'"'+e[Aa("0x67")](" ")+'"']))}:{type:Aa("0x10"),content:kr(n,Aa("0x24"),kr(n,Aa("0x40"),r))};if(Aa("0xb")==t[Aa("0x4c")])return e.length?{type:"deletion",content:kr(n,Aa("0x27"),kr(n,Aa("0x28"),[r,'"'+e[Aa("0x67")](" ")+'"']))}:{type:Aa("0xb"),content:kr(n,Aa("0x27"),kr(n,Aa("0x40"),r))}}if(Aa("0x5")==t[Aa("0x43")]){const e=t[Aa("0x2")]()[Aa("0x64")]((t=>t.is(Aa("0x58"))))[Aa("0x7c")]((t=>t[Aa("0x1e")])),o=this[Aa("0x6a")](t),r=o.maxColumn-o[Aa("0x62")]+1;if(Aa("0x10")==t[Aa("0x4c")])return e[Aa("0x69")]?{type:"insertion",content:kr(n,"*Insert:* %0",kr(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[r,'"'+e.join(" ")+'"']))}:{type:Aa("0x10"),content:kr(n,Aa("0x24"),kr(n,Aa("0xf"),r))};if("deletion"==t.type)return e[Aa("0x69")]?{type:Aa("0xb"),content:kr(n,Aa("0x27"),kr(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[r,'"'+e.join(" ")+'"']))}:{type:"deletion",content:kr(n,Aa("0x27"),kr(n,Aa("0xf"),r))}}})),o[Aa("0x80")][Aa("0x48")](Aa("0x10"),Aa("0x8"),Aa("0x9"),s),o[Aa("0x80")].registerCustomCallback(Aa("0xb"),"tableRow",Aa("0x57"),s),o[Aa("0x80")][Aa("0x48")](Aa("0x10"),"tableColumn",Aa("0x9"),i),o[Aa("0x80")][Aa("0x48")]("deletion",Aa("0x5"),Aa("0x57"),i),o[Aa("0x80")][Aa("0x48")](Aa("0x10"),Aa("0x5"),Aa("0x67"),a),o[Aa("0x80")][Aa("0x48")]("deletion",Aa("0x5"),"join",a),o[Aa("0x80")][Aa("0x48")](Aa("0x10"),Aa("0x8"),"join",x),o[Aa("0x80")].registerCustomCallback(Aa("0xb"),Aa("0x8"),Aa("0x67"),x)}_acceptFormatSuggestionCallbackFactory(){const t=this[Aa("0x46")],e=t.model.document.selection;return(n,o)=>{t[Aa("0x2c")][Aa("0xe")]((r=>{const{commandName:s,commandParams:i}=o;let a=n[0][Aa("0x7")][Aa("0x30")];i&&i[0]&&!1===i[0][Aa("0x3f")]&&(a=n[0].start[Aa("0x3a")]);const x=r[Aa("0x3")](a);if("$graveyard"==x[Aa("0x2f")][Aa("0x63")])return;const c=Array.from(e.getRanges())[Aa("0x7c")]((t=>F.LiveRange[Aa("0x2e")](t)));r.setSelection(x),t.commands[Aa("0x32")](s)[Aa("0x68")](),i.push({forceDefaultExecution:!0}),t[Aa("0x1")](s,...i);const l=c[Aa("0x64")]((t=>"$graveyard"!=t[Aa("0x2f")][Aa("0x63")]));l.length>0&&r.setSelection(l);for(const t of c)t.detach()}))}}[Aa("0x5e")](t){const e=this.editor.plugins[Aa("0x32")]("TableUtils");let n=Number[Aa("0xc")],o=Number[Aa("0x18")],r=Number[Aa("0xc")],s=Number[Aa("0x18")];for(const i of t){if("$graveyard"==i[Aa("0x2f")][Aa("0x63")])continue;const{row:t,column:a}=e[Aa("0x31")](i),x=i.hasAttribute(Aa("0x20"))?i[Aa("0x6b")](Aa("0x20"))-1:0,c=i[Aa("0x15")](Aa("0x5c"))?i[Aa("0x6b")](Aa("0x5c"))-1:0;n=t<n?t:n,o=t+x>o?t+x:o,r=a<r?a:r,s=a+c>s?a+c:s}return{minRow:n,maxRow:o,minColumn:r,maxColumn:s}}[Aa("0x66")](){const t=this[Aa("0x46")],e=t[Aa("0x61")][Aa("0x32")](Aa("0x5f")),n=t[Aa("0x61")][Aa("0x32")](Aa("0x76"));this[Aa("0x11")]=new Set,t[Aa("0x2c")][Aa("0x4a")].on("change:data",(()=>{const n=Array[Aa("0x26")](t[Aa("0x2c")][Aa("0x4a")][Aa("0x42")][Aa("0x7d")]());for(const{name:t,data:o}of n){const{group:n,id:r,subType:s}=e._splitMarkerName(t);if(Aa("0x25")!=n)continue;if(null!=o.oldRange)continue;const i=e[Aa("0x55")](r);this[Aa("0x2d")][Aa("0x47")](s)&&this[Aa("0x11")].add(i)}}),{priority:Aa("0x72")});const o=(t,e)=>{let o=!1;const r=e[Aa("0x7e")](t),s=t[Aa("0xa")](Aa("0x52")),i=n[Aa("0x31")](t);for(const e of this[Aa("0x11")]){const n=e[Aa("0x43")],a=n.startsWith(Aa("0x75")),x=n.substr(a?10:5),c=x[Aa("0x6c")](),l=c.substr(0,3)+Aa("0x44"),u=Aa("0x16")+x,d=Aa("0x22")+x;if(!e.isInContent)continue;if(s!=e[Aa("0x21")]()[Aa("0x73")].findAncestor(Aa("0x52")))continue;if(e[Aa("0x1b")](r))continue;const g=t.hasAttribute(l)?t[Aa("0x6b")](l)-1:0,f=this[Aa("0x6a")](e),m=f[u],h=f[d];m<=i[c]&&i[c]+g<=h&&(e[Aa("0x81")](r),o=!0)}return o};t[Aa("0x2c")][Aa("0x4a")][Aa("0x36")]((e=>{let n=!1;for(const r of t[Aa("0x2c")].document.differ[Aa("0x5d")]())if(Aa("0x7f")==r.type)if(Aa("0x8")==r[Aa("0x4")])for(const t of r[Aa("0x65")][Aa("0x3a")][Aa("0x41")]())n=n||o(t,e);else Aa("0x6d")==r[Aa("0x4")]&&(n=n||o(r.position[Aa("0x3a")],e));return n}))}[Aa("0x6a")](t){return this[Aa("0x5e")](t.getRanges()[Aa("0x7c")]((t=>t[Aa("0x73")][Aa("0x3a")])))}}function Sa(t){return Array[Aa("0x26")](new Set(t)[Aa("0x0")]())}const Ia=["registerDescriptionCallback","markMultiRangeBlockFormat","subType","mergeTableCellDown","$graveyard","change","markBlockFormat","from","accept","TableEditing","*Split cell:* vertically","isInContent","enableCommand","length","commands","value","document","createRangeOn","map","_suggestionFactory","trackChanges","size","containsRange","_areMergableCells","getAncestors","execute","splitTableCellVertically","*Merge cells*","selection","push","fromRange","return","element","findAncestor","forceDefaultExecution","splitTableCellHorizontally","createTableWalker","_tablePostFixingSubtypes","stop","mergeTableCellLeft","model","refresh","plugins","isEnabled","mergeTableCellUp","rootName","mergeTableCells","registerCustomCallback","editor","tableCell","insertion","format","highest","TableUtils","mergeTableCellRight","cell","has","_areSelectedCellsMergable","type","low","commandName","getFirstPosition","author","get","add","_descriptionFactory","locale","TrackChangesEditing","setSelection","getSelectionAffectedTableCells","detach","formatBlock","find","getRanges"];var wa,Ma;wa=Ia,Ma=239,function(t){for(;--t;)wa.push(wa.shift())}(++Ma);const Na=function(t,e){return Ia[t-=0]};class La extends t.Plugin{static get requires(){return[Ra]}afterInit(){const t=this[Na("0x1f")],e=t[Na("0x17")].document[Na("0xb")],n=t[Na("0x31")];if(!t.plugins[Na("0x27")](Na("0x42")))return;const o=t[Na("0x19")].get(Na("0x32")),r=t[Na("0x19")][Na("0x2e")](Na("0x24")),s=t[Na("0x19")].get(Ra);s[Na("0x14")][Na("0xc")](Na("0x1d")),o[Na("0x45")](Na("0x1d"),(()=>{const e=r[Na("0x34")](t[Na("0x17")][Na("0x49")].selection);t.model.change((()=>{o[Na("0x3a")](e,{commandName:"mergeTableCells",commandParams:[]},[],Na("0x1d"))}))})),t.commands[Na("0x2e")]("mergeTableCells").on(Na("0x8"),((e,n)=>{t[Na("0x47")].get(Na("0x3")).value&&(n[Na("0x46")]>0&&n[n.length-1]&&n[n[Na("0x46")]-1][Na("0x11")]||o._isForcedDefaultExecutionBlock||this[Na("0x28")]()||e[Na("0x15")]())}),{priority:Na("0x23")});for(const e of[Na("0x1b"),Na("0x25"),Na("0x3c"),Na("0x16")]){const n=t.commands.get(e);o[Na("0x45")](e,(()=>{const e=t[Na("0x17")][Na("0x49")][Na("0xb")][Na("0x2c")]().getAncestors()[Na("0x37")]((t=>t.is(Na("0xf"),Na("0x20")))),r=n.value;t.model[Na("0x3e")]((()=>{o[Na("0x3a")]([e,r],{commandName:Na("0x1d"),commandParams:[]},[],"mergeTableCells")}))}))}for(const e of[Na("0x9"),Na("0x12")]){const n=t[Na("0x47")][Na("0x2e")](e);o[Na("0x45")](e,(()=>{const s=r[Na("0x34")](t[Na("0x17")][Na("0x49")][Na("0xb")])[0],i=s[Na("0x10")]("table"),{column:a,row:x}=r.getCellLocation(s);let c=[];if("horizontally"==n.direction){const t=r.createTableWalker(i,{startRow:x,endRow:x,includeAllSlots:!0});c=Array[Na("0x40")](t)[Na("0x1")]((t=>t[Na("0x26")]))}else{const t=r[Na("0x13")](i,{column:a,includeAllSlots:!0});c=Array[Na("0x40")](t).map((t=>t[Na("0x26")]))}t[Na("0x17")][Na("0x3e")]((t=>{o[Na("0x3f")](t[Na("0x0")](s),{commandName:e,commandParams:[]},c,e)}))}))}o[Na("0x30")][Na("0x39")]((t=>{const{data:e}=t;if(e)return Na("0x1d")==e[Na("0x2b")]?{type:Na("0x22"),content:kr(n,Na("0xa"))}:void 0})),o[Na("0x30")][Na("0x39")]((t=>{const{data:e}=t;if(e)return"splitTableCellVertically"==e[Na("0x2b")]?{type:Na("0x22"),content:kr(n,Na("0x43"))}:Na("0x12")==e[Na("0x2b")]?{type:"format",content:kr(n,"*Split cell:* horizontally")}:void 0}));const i=s._acceptFormatSuggestionCallbackFactory();for(const t of[Na("0x1b"),Na("0x25"),Na("0x3c"),"mergeTableCellLeft"])o._suggestionFactory[Na("0x1e")](Na("0x36"),t,"accept",i);for(const t of[Na("0x9"),"splitTableCellHorizontally"])o[Na("0x2")][Na("0x1e")](Na("0x36"),t,Na("0x41"),i);o[Na("0x2")][Na("0x1e")](Na("0x36"),Na("0x1d"),Na("0x41"),(n=>{t.model[Na("0x3e")]((o=>{const r=Array[Na("0x40")](e[Na("0x38")]())[Na("0x1")]((t=>F.LiveRange[Na("0xd")](t)));o[Na("0x33")](n),t[Na("0x47")][Na("0x2e")](Na("0x1d"))[Na("0x18")](),t[Na("0x8")](Na("0x1d"),{forceDefaultExecution:!0});const s=r.filter((t=>Na("0x3d")!=t.root[Na("0x1c")]));s[Na("0x46")]>0&&o.setSelection(s);for(const t of r)t[Na("0x35")]()}))}));for(const e of[Na("0x1b"),"mergeTableCellDown",Na("0x16"),Na("0x25")]){const n=t[Na("0x47")][Na("0x2e")](e);n.on("set:isEnabled",((e,o,r)=>{if(r){const o=t[Na("0x17")][Na("0x49")][Na("0xb")][Na("0x2c")]()[Na("0x7")]().find((t=>t.is(Na("0xf"),Na("0x20"))));this._areMergableCells(n[Na("0x48")],o)||(e[Na("0xe")]=!1,e[Na("0x15")]())}}),{priority:Na("0x2a")})}}[Na("0x28")](){const t=this[Na("0x1f")][Na("0x47")][Na("0x2e")]("mergeTableCells"),e=this[Na("0x1f")].plugins[Na("0x2e")]("TableUtils");if(!t[Na("0x1a")])return!1;const n=e[Na("0x34")](this.editor[Na("0x17")][Na("0x49")][Na("0xb")]);for(const t of n)for(const e of n)if(t!=e&&!this[Na("0x6")](t,e))return!1;return!0}[Na("0x6")](t,e){const n=this[Na("0x1f")].plugins[Na("0x2e")](Na("0x32")),o=this[Na("0x1f")][Na("0x17")][Na("0x0")](t),r=this.editor[Na("0x17")][Na("0x0")](e),s=new Set,i=new Set;for(const t of n.getSuggestions())if((Na("0x21")==t[Na("0x29")]||"deletion"==t[Na("0x29")]||Na("0x1d")==t[Na("0x3b")])&&t[Na("0x44")])for(const e of t[Na("0x38")]())e[Na("0x5")](o,!0)&&s[Na("0x2f")](t[Na("0x29")]+":"+t[Na("0x2d")].id),e[Na("0x5")](r,!0)&&i[Na("0x2f")](t[Na("0x29")]+":"+t[Na("0x2d")].id);if(s[Na("0x4")]!=i[Na("0x4")])return!1;for(const t of s)if(!i[Na("0x27")](t))return!1;return!0}}const Oa=["start","forceValue","requires","commandParams","markerRange","change","addClass","value","data","highest","FORMAT_HEADER_COLUMN","item","selection","isBefore","document","stop","_splitMarkerName","options","name","registerDescriptionCallback","headingRows","formatBlock","FORMAT_HEADER_ROW","TableUtils","createRange","getChild","end","markerNameToElements","showSuggestionHighlights","last","locale","setTableRowHeader","unbindElementFromMarkerName","nodeAfter","toViewElement","first","downcastDispatcher","ck-suggestion-marker-","editing","createPositionBefore","commandName","_acceptFormatSuggestionCallbackFactory","_suggestionFactory","enableCommand","createTableWalker","markBlockFormat","mapper","FORMAT_REGULAR_ROW","*Format:* %0","TrackChangesEditing","setAttribute","cell","commands","has","markerName","createPositionAfter","writer","accept","findAncestor","headingColumns","parent","childCount","getSuggestion","ck-suggestion-marker--active","get","getCellLocation","setTableColumnHeader","model","registerCustomCallback","removeClass","getSelectionAffectedTableCells","consumable","bindElementToMarker","plugins","format"];var Fa,Pa;Fa=Oa,Pa=260,function(t){for(;--t;)Fa.push(Fa.shift())}(++Pa);const Da=function(t,e){return Oa[t-=0]};class ja extends t.Plugin{static get[Da("0x2a")](){return[Ra]}afterInit(){const t=this.editor;if(!t.plugins[Da("0x12")]("TableEditing"))return;const e=t[Da("0x46")],n=t[Da("0x26")][Da("0x1d")](Da("0xe")),o=t.plugins.get(Da("0x3f")),r=t.plugins.get(Ra);function s({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(r,s,i)=>{const{type:a,id:x}=n[Da("0x38")](s[Da("0x13")]),c=n.getSuggestion(x);if(!c[Da("0x30")]||Da("0x1f")!=c[Da("0x30")][Da("0x5")])return;if(s[Da("0x33")])return void r[Da("0x37")]();if(!i[Da("0x24")].consume(s[Da("0x2c")],r[Da("0x3a")]))return;const l=s[Da("0x2c")][Da("0x28")][Da("0x49")],u=s[Da("0x2c")][Da("0x42")].nodeBefore,d=l[Da("0x19")].parent,{column:g}=o[Da("0x1e")](l),{column:f}=o[Da("0x1e")](u);for(let r=g;r<=f;r++){const c=o.createTableWalker(d,{column:r,includeAllSlots:!1});for(const o of c){const r=o[Da("0x10")],c=i.mapper[Da("0x4a")](r);i[Da("0x15")][Da("0x2e")](Da("0x2")+a,c),e&&i[Da("0x15")][Da("0xf")]("data-suggestion",x,c),i[Da("0xb")][Da("0x25")](c,s[Da("0x13")]),t&&(n.activeMarkers.includes(s.markerName)?i.writer[Da("0x2e")](Da("0x1c"),c):i[Da("0x15")][Da("0x22")]("ck-suggestion-marker--active",c))}}}}n[Da("0x8")]("setTableRowHeader",((e,r)=>{const s=o[Da("0x23")](t[Da("0x20")][Da("0x36")][Da("0x34")]),i=o.getRowIndexes(s),a=s[0][Da("0x17")]("table"),x=a.getAttribute(Da("0x3c"))||0,c=r&&null!==r.forceValue?r.forceValue:!t[Da("0x11")][Da("0x1d")](Da("0x47"))[Da("0x2f")],l=c?i[Da("0x45")]:i[Da("0x0")],u=a[Da("0x41")](l);let d;if(c){const e=a[Da("0x41")](x);if(u.index<e.index)return;d=t[Da("0x20")][Da("0x40")](t.model[Da("0x4")](e[Da("0x41")](0)),t[Da("0x20")][Da("0x14")](u[Da("0x41")](u[Da("0x1a")]-1)))}else{const e=a[Da("0x41")](x-1);if(!e)return;d=t.model[Da("0x40")](t[Da("0x20")][Da("0x4")](u.getChild(0)),t[Da("0x20")][Da("0x14")](e[Da("0x41")](e.childCount-1)))}t[Da("0x20")][Da("0x2d")]((()=>{n[Da("0xa")](d,{commandName:Da("0x47"),commandParams:[{forceValue:c}]},[],Da("0x47"))}))})),n[Da("0x8")](Da("0x1f"),((e,o)=>{const r=t[Da("0x26")][Da("0x1d")](Da("0x3f")),s=r.getSelectionAffectedTableCells(t[Da("0x20")][Da("0x36")][Da("0x34")]),i=r.getColumnIndexes(s),a=s[0].findAncestor("table"),x=a.getAttribute(Da("0x18"))||0,c=o&&null!==o.forceValue?o[Da("0x29")]:!t[Da("0x11")][Da("0x1d")]("setTableColumnHeader")[Da("0x2f")];let l;const u=a.getChild(0),d=c?i[Da("0x45")]:i[Da("0x0")],g=r[Da("0x9")](a,{startRow:0,column:d,includeAllSlots:!1}),f=Array.from(g)[0].cell;if(c){const e=u[Da("0x41")](x);if(f[Da("0x35")](e))return;l=t[Da("0x20")][Da("0x40")](t[Da("0x20")].createPositionBefore(e),t[Da("0x20")][Da("0x14")](f))}else{const e=u[Da("0x41")](x-1);if(!e)return;l=t[Da("0x20")][Da("0x40")](t.model.createPositionBefore(f),t[Da("0x20")].createPositionAfter(e))}t.model[Da("0x2d")]((()=>{n.markBlockFormat(l,{commandName:Da("0x1f"),commandParams:[{forceValue:c}]},[],"setTableColumnHeader")}))})),t[Da("0x3")][Da("0x1")].on("addMarker:suggestion",s(),{priority:Da("0x31")}),t.data[Da("0x1")].on("addMarker:suggestion",((t,e,n)=>{n[Da("0x39")][Da("0x44")]&&s({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:Da("0x31")}),t[Da("0x3")][Da("0x1")].on("removeMarker:suggestion",((t,e,o)=>{const{type:r,id:s}=n[Da("0x38")](e[Da("0x13")]),i=n[Da("0x1b")](s);if(!i.data||"setTableColumnHeader"!=i[Da("0x30")][Da("0x5")])return;const a=o.mapper[Da("0x43")](e.markerName);if(a)for(const t of a)o[Da("0x15")][Da("0x22")]("ck-suggestion-marker-"+r,t),o[Da("0x15")][Da("0x22")](Da("0x1c"),t),o.writer.removeAttribute("data-suggestion",t),o[Da("0xb")][Da("0x48")](t,e[Da("0x13")])}),{priority:Da("0x31")}),n._descriptionFactory[Da("0x3b")]((t=>{const{data:n}=t;if(n){if(Da("0x47")==n[Da("0x5")]){const t=n.commandParams[0][Da("0x29")];return o(kr(e,Da(t?"0x3e":"0xc")))}if(Da("0x1f")==n[Da("0x5")]){const t=n[Da("0x2b")][0].forceValue;return o(kr(e,t?Da("0x32"):"FORMAT_REGULAR_COLUMN"))}}function o(t){return{type:Da("0x27"),content:kr(e,Da("0xd"),t)}}}));const i=r[Da("0x6")]();n[Da("0x7")][Da("0x21")](Da("0x3d"),Da("0x47"),"accept",i),n._suggestionFactory.registerCustomCallback("formatBlock",Da("0x1f"),Da("0x16"),i)}}const Ba=["tablePasteCell","containsRange","oldRange","table","remove","columnInsertionIndexes","showSuggestionHighlights","requires","editor","TableUtils","tableCellBorderStyle","batch","first","findAncestor","change","stop","tablePasteRow","tableCellPadding","differ","last","from","wrap","suggestionUnloaded","Users","createRange","root","editingDowncast","get","ck-suggestion-marker-insertion","plugins","add","has","tablePaste","setAttribute","createRangeIn","formatBlock","getMarkers","activeMarkers","insertionRanges","set","markers","_suggestionFactory","includes","column","rowInsertionIndexes","registerDescriptionCallback","cell","afterInit","listenTo","move","tableCellHorizontalAlignment","find","ck-suggestion-marker","content","_descriptionFactory","fromEntries","insertContent","fill","registerCustomCallback","tableCell","updateMarker","endRow","getChildren","getContainedElement","tableCellSuggestion","commands","TableClipboard","previous","newRange","cells","markMultiRangeDeletion","isInContent","elementToElement","_isForcedDefaultExecutionBlock","row","_splitMarkerName","getRanges","setAttributes","getSuggestions","getAllAdjacentSuggestions","options","insertRows","removeMarker","tableCellBorderWidth","rootName","removeMarkers","join","removeRows","accept","dataDowncast","tablePasteChainId","suggestion","element","map","createPositionBefore","startsWith","attributes","markerToHighlight","locale","deletion","*Replace table cells*","markerAttributes","isEqual","markMultiRangeInsertion","filter","insert","TrackChangesEditing","getRows","_getCoordsForCells","discard","length","tableCellBorderColor","selection","type","getRange","getChangedMarkers","createTableWalker","unwrap","low","deletionRanges","registerPostFixer","insertion","_createdBatches","conversion","markerName","nextSibling","subType","model","suggestion-td","columnInsertionRanges","createElement","hasSuggestion","push","end","tablePasteColumn","rows","getTableIfOnlyTableInContent","insertColumns","_replaceTableSlotCell","getColumns","paragraph","getChild","isEmpty","register","high","getShiftedBy","document","redo","getItems","view","markMultiRangeBlockFormat","next","$graveyard","getAttributes","position","createRangeOn","nodeAfter","name","getColumnIndexes"];var Ua,Ha;Ua=Ba,Ha=355,function(t){for(;--t;)Ua.push(Ua.shift())}(++Ha);const Ga=function(t,e){return Ba[t-=0]},Va=[Ga("0x2e"),Ga("0x4a"),Ga("0x84"),Ga("0xd"),"tableCellVerticalAlignment","tableCellBackgroundColor",Ga("0x8b")],za=Object[Ga("0x12")](Va[Ga("0x38")]((t=>[t,null])));class Wa extends t.Plugin{static get[Ga("0x81")](){return[Ra]}[Ga("0xa")](){const t=this[Ga("0x82")];if(!t[Ga("0x97")][Ga("0x99")](Ga("0x1d")))return;const n=t[Ga("0x97")][Ga("0x95")](Ga("0x45")),o=t[Ga("0x97")][Ga("0x95")](Ga("0x83")),r=t.plugins[Ga("0x95")](Ra),s=t.plugins[Ga("0x95")](Ga("0x1d"));r._tablePostFixingSubtypes[Ga("0x5f")](Ga("0x8a"),"tablePasteColumn"),t[Ga("0x5a")].schema[Ga("0x6a")](Ga("0x1b"),{allowIn:"tableCell",allowContentOf:Ga("0x16"),isLimit:!0}),t[Ga("0x56")][Ga("0x23")]({model:Ga("0x1b"),view:Ga("0x5b")});let i=null;t[Ga("0x5a")].on(Ga("0x13"),((r,a)=>{const[x,c]=a,l=a[a[Ga("0x49")]-1];l&&l.forceDefaultExecution||n[Ga("0x24")]||this[Ga("0x82")][Ga("0x1c")][Ga("0x95")]("trackChanges").value&&function(t,e,n,o,r){if(e&&!e.is("documentSelection"))return!1;const s=r[Ga("0x63")](t,n);if(!s||!$a(s,null,o))return!1;const i=o.getSelectionAffectedTableCells(n[Ga("0x6d")][Ga("0x4b")]);if(!i.length)return!1;const a=i[0][Ga("0x87")]("table"),x=o.getRowIndexes(i),c=o[Ga("0x79")](i),l={startRow:x[Ga("0x86")],endRow:x.last,startColumn:c[Ga("0x86")],endColumn:c[Ga("0x8d")]};return 1==i.length&&(l[Ga("0x18")]+=o[Ga("0x46")](s)-1,l.endColumn+=o[Ga("0x66")](s)-1),$a(a,l,o)}(x,c,t[Ga("0x5a")],o,s)&&(r[Ga("0x89")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Ga("0x5a")].change((()=>{t[Ga("0x5a")].insertContent(a[0],a[1],a[2],a[3],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:r,columnInsertionRanges:s,insertionRanges:x,deletionRanges:c,cells:l}=i;r[Ga("0x49")]&&n.markMultiRangeInsertion(r,Ga("0x8a"),{tablePasteChainId:o}),s.length&&n[Ga("0x42")](s,"tablePasteColumn",{tablePasteChainId:o}),x[Ga("0x49")]&&n[Ga("0x42")](x,Ga("0x9a"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Ga("0x49")]&&n[Ga("0x21")](c,Ga("0x9a"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n[Ga("0x71")](l.map((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Ga("0x7a"),{tablePasteChainId:o});if(u){const e=u[Ga("0x9e")](),n=[];for(const{element:o,attributes:r}of l){if(!r)continue;const s=t.model.createRangeOn(o),i=e[Ga("0xe")]((t=>t[Ga("0x4d")]()[Ga("0x41")](s)));i&&n[Ga("0x5f")]([i.name,r])}n[Ga("0x49")]&&u[Ga("0x9b")](Ga("0x40"),Object[Ga("0x12")](n))}i=null})))}),{priority:e.priorities[Ga("0x6b")]+10}),t[Ga("0x97")].get(Ga("0x1d")).on(Ga("0x65"),((t,e)=>{const[n,o,,r]=e;if(!i)return;t[Ga("0x89")]();const s=n[Ga("0x9")],a=o,x=Ka(s),c=Ka(a);t.return=s;let l=null,u=null;if(c||x)if(x&&!c){r.remove(s[Ga("0x68")](0));for(const t of Array[Ga("0x8e")](a[Ga("0x19")]()))r[Ga("0x44")](t,s,"end");const t=i[Ga("0x7")][Ga("0x5")](n[Ga("0x25")]),e=i[Ga("0x7f")][Ga("0x5")](n[Ga("0x6")]);t||e||(l=r[Ga("0x9c")](s))}else c&&!x&&(u=r[Ga("0x9c")](s));else{const t=r[Ga("0x5d")](Ga("0x1b")),e=r[Ga("0x5d")]("tableCellSuggestion");r[Ga("0x8f")](r.createRangeIn(s),e),r[Ga("0x44")](t,s,0);for(const e of Array[Ga("0x8e")](a[Ga("0x19")]()))r[Ga("0x44")](e,t,Ga("0x60"));l=r[Ga("0x76")](t),u=r[Ga("0x76")](e)}const d=Array[Ga("0x8e")](a[Ga("0x74")]()).filter((([t])=>Va[Ga("0x5")](t)));i[Ga("0x20")][Ga("0x5f")]({element:s,attributes:d.length?Object.fromEntries(d):null}),l&&i[Ga("0x1")][Ga("0x5f")](l),u&&i[Ga("0x52")].push(u)}),{priority:Ga("0x6b")}),o.on(Ga("0x64"),((e,n)=>{const[r,s={}]=n;if(!i)return;const a=s.at||0,x=s.columns||1;i[Ga("0x7f")]=new Array(x)[Ga("0x14")](a)[Ga("0x38")](((t,e)=>t+e));for(const{cell:e}of o[Ga("0x4f")](r,{startColumn:a,endColumn:a+x-1}))i[Ga("0x5c")][Ga("0x5f")](t[Ga("0x5a")].createRangeOn(e))}),{priority:Ga("0x51")}),o.on(Ga("0x2c"),((e,n)=>{const[r,s={}]=n;if(!i)return;const a=s.at||0,x=s[Ga("0x62")]||1;i[Ga("0x7")]=new Array(x)[Ga("0x14")](a)[Ga("0x38")](((t,e)=>t+e));for(const{cell:e}of o[Ga("0x4f")](r,{startRow:a,endRow:a+x-1}))i.rowInsertionRanges[Ga("0x5f")](t[Ga("0x5a")].createRangeOn(e))}),{priority:Ga("0x51")}),n[Ga("0x11")][Ga("0x8")]((e=>{if(e[Ga("0x59")]&&e[Ga("0x59")].startsWith(Ga("0x9a")))return e[Ga("0x1e")]?{}:{type:"insertion",content:kr(t[Ga("0x3d")],Ga("0x3f"))}}));const a=()=>{};for(const t of["tablePaste",Ga("0x61"),Ga("0x8a"),"tablePasteCell"])n._suggestionFactory[Ga("0x15")](Ga("0x54"),t,Ga("0x31"),a),n[Ga("0x4")][Ga("0x15")](Ga("0x3e"),t,Ga("0x31"),a);n[Ga("0x4")][Ga("0x15")](Ga("0x9d"),Ga("0x7a"),Ga("0x48"),a),n._suggestionFactory[Ga("0x15")](Ga("0x9d"),Ga("0x7a"),Ga("0x33"),((e,n,o)=>{const r=e[Ga("0x38")]((t=>t[Ga("0x1a")]())).filter((t=>t)),s=new Map(r.map((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Ga("0x20")])e&&s[Ga("0x2")](t,e);else if(o&&o[Ga("0x40")])for(const[e,n]of Object.entries(o.markerAttributes)){const o=t[Ga("0x5a")][Ga("0x3")][Ga("0x95")](e),r=o?o[Ga("0x4d")]()[Ga("0x1a")]():null;r&&s[Ga("0x2")](r,n)}t[Ga("0x5a")][Ga("0x88")]((t=>{for(const[e,n]of s)t[Ga("0x28")]({...za,...n},e)}))}));const x=(e,o)=>{n[Ga("0x4")][Ga("0x15")](e,Ga("0x9a"),o,((r,s,i)=>{t.model[Ga("0x88")]((t=>{const a=[];for(const t of r){const e=t.start[Ga("0x77")];e.is("element",Ga("0x1b"))&&a.push(e)}n[Ga("0x4")].getSuggestionCallback(e,null,o)(r,s,i);for(const e of a)Ga("0x73")!=e[Ga("0x93")][Ga("0x2f")]&&t[Ga("0x50")](e)}))}))};x("insertion",Ga("0x33")),x(Ga("0x54"),"discard"),x("deletion",Ga("0x33")),x(Ga("0x3e"),Ga("0x48")),n._suggestionFactory[Ga("0x15")](Ga("0x54"),Ga("0x8a"),Ga("0x48"),(t=>{const e=t.map((t=>t.getContainedElement())),n=e[0].findAncestor(Ga("0x7d")),{minRow:s,maxRow:i}=r[Ga("0x47")](e);o[Ga("0x32")](n,{at:s,rows:i-s+1})})),n._suggestionFactory[Ga("0x15")](Ga("0x54"),"tablePasteColumn",Ga("0x48"),(t=>{const e=t[Ga("0x38")]((t=>t[Ga("0x1a")]())),n=e[0][Ga("0x87")](Ga("0x7d")),{minColumn:s,maxColumn:i}=r._getCoordsForCells(e);o.removeColumns(n,{at:s,columns:i-s+1})}));const c=(t,e)=>{if(!e[Ga("0x59")]||!e[Ga("0x59")][Ga("0x3a")](Ga("0x9a")))return;const o=e.attributes.tablePasteChainId,r=n.getSuggestions()[Ga("0x43")]((t=>t[Ga("0x22")]&&t[Ga("0x3b")]&&t.attributes.tablePasteChainId==o));r.length&&e[Ga("0x2a")]()[Ga("0x49")]!=r[Ga("0x49")]&&r.reduce(((t,e)=>(t[Ga("0x72")]=e,e[Ga("0x1e")]=t,e)))};function l(t,{showActiveMarker:e=!0}={}){const{id:o}=n[Ga("0x26")](t[Ga("0x57")]),r=[Ga("0xf"),Ga("0x96")],s=n[Ga("0x0")][Ga("0x5")](t[Ga("0x57")]);return s&&r.push("ck-suggestion-marker--active"),{classes:r,attributes:{"data-suggestion":o},priority:s&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:Ga("0x6b")}),n.on(Ga("0x90"),c,{priority:Ga("0x6b")}),t.model[Ga("0x6d")][Ga("0x53")]((()=>{let e=!1;const o=Array[Ga("0x8e")](t.model[Ga("0x6d")][Ga("0x8c")][Ga("0x4e")]());for(const{name:r,data:s}of o){const{group:o,type:i,id:a}=n[Ga("0x26")](r);if(Ga("0x36")!=o||"deletion"!=i||s[Ga("0x7c")])continue;if(!n[Ga("0x5e")](a))continue;const x=n.getSuggestion(a)[Ga("0x27")](),c=t[Ga("0x97")][Ga("0x95")](Ga("0x91")).me;for(const t of n.getSuggestions())if(t[Ga("0x22")]&&t.author==c&&Ga("0x9d")==t[Ga("0x4c")]&&Ga("0x7a")==t[Ga("0x59")]&&t[Ga("0x27")]().every((t=>x.some((e=>e[Ga("0x7b")](t,!0))))))for(const n of t.getAllAdjacentSuggestions())n[Ga("0x22")]&&(n[Ga("0x48")](),e=!0)}return e})),t[Ga("0x5a")][Ga("0x6d")].registerPostFixer((e=>{const o=t[Ga("0x1c")].get(Ga("0x6e"));if(!o||!o[Ga("0x55")][Ga("0x99")](e[Ga("0x85")]))return!1;let r=!1;const s=t[Ga("0x97")].get("Users").me,i=t[Ga("0x5a")].document[Ga("0x8c")].getChanges(),a=Array[Ga("0x8e")](t[Ga("0x5a")][Ga("0x6d")][Ga("0x8c")][Ga("0x4e")]())[Ga("0x43")]((({name:t,data:e})=>{const{group:o,subType:r,authorId:i}=n._splitMarkerName(t);return Ga("0x36")==o&&Ga("0x9a")==r&&i==s.id&&!e[Ga("0x7c")]}));for(const t of i){if(Ga("0x44")!=t[Ga("0x4c")]||Ga("0x1b")!=t[Ga("0x78")]||1!=t[Ga("0x49")])continue;const n=e[Ga("0x92")](t[Ga("0x75")],t.position[Ga("0x6c")](1));if(!a[Ga("0xe")]((({data:t})=>t[Ga("0x1f")][Ga("0x41")](n))))for(const{name:t,data:o}of a)if(n[Ga("0x7b")](o[Ga("0x1f")])){e[Ga("0x17")](t,{range:n}),r=!0;break}}return r})),t[Ga("0x5a")][Ga("0x6d")][Ga("0x53")]((e=>{let o=!1;const r=t[Ga("0x97")][Ga("0x95")]("Users").me,s=n[Ga("0x29")]()[Ga("0x43")]((t=>t.isInContent&&t.author==r)),i=new Set,a=new Set;for(const t of s)if(Ga("0x9a")==t[Ga("0x59")])for(const e of t[Ga("0x9e")]()){const n=e.getRange()[Ga("0x1a")]();if(n)if(n.is(Ga("0x37"),Ga("0x1b"))&&Ka(n)){t[Ga("0x2d")](e[Ga("0x78")]),i[Ga("0x98")](n),o=!0;const r=n[Ga("0x58")],s=n.previousSibling,x=r&&r.is("element",Ga("0x1b")),c=s&&s.is(Ga("0x37"),Ga("0x1b"));x&&!i[Ga("0x99")](r)&&a[Ga("0x98")](r),c&&!i[Ga("0x99")](s)&&a.add(s)}else n.is(Ga("0x37"),Ga("0x67"))&&n[Ga("0x69")]&&(t[Ga("0x2d")](e[Ga("0x78")]),o=!0)}else if(Ga("0x7a")==t.subType){if(!t[Ga("0x3b")]||!t.attributes[Ga("0x35")])continue;const e=t.attributes[Ga("0x40")];if(e&&Object.keys(e)[Ga("0x49")])continue;const n=t.attributes[Ga("0x35")];let r=!0,i=!0;for(const e of s)if(e[Ga("0x59")]&&e[Ga("0x59")][Ga("0x3a")](Ga("0x9a"))){if(!e[Ga("0x3b")][Ga("0x35")]){i=!1;break}if(e.id!=t.id&&e.attributes[Ga("0x35")]==n){r=!1;break}}i&&r&&(t[Ga("0x30")](),o=!0)}for(const t of i)e[Ga("0x7e")](t);for(const t of a)e[Ga("0x50")](t);return o})),t.conversion.for(Ga("0x94")).markerToHighlight({model:"suggestion:formatBlock:tablePasteCell",view:l,converterPriority:Ga("0x6b")}),t.conversion.for(Ga("0x34"))[Ga("0x3c")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>{if(e[Ga("0x2b")][Ga("0x80")])return l(t,{showActiveMarker:!1})},converterPriority:Ga("0x6b")});const u=t.editing[Ga("0x70")];this[Ga("0xb")](u[Ga("0x6d")],"clipboardOutput",((t,e)=>{const n=[];for(const t of u[Ga("0x9c")](e[Ga("0x10")])[Ga("0x6f")]())t.is(Ga("0x37"),"suggestion-td")&&n.push(t);u[Ga("0x88")]((t=>{for(const e of n)t[Ga("0xc")](t[Ga("0x9c")](e),t[Ga("0x39")](e)),t[Ga("0x7e")](e)}))}))}}function Ka(t){if(t[Ga("0x69")])return!0;const e=t[Ga("0x68")](0);return e.is(Ga("0x37"),Ga("0x67"))&&e[Ga("0x69")]}function $a(t,e={},n){for(const{isAnchor:o,cellHeight:r,cellWidth:s}of n[Ga("0x4f")](t,{includeAllSlots:!0,...e}))if(!o||1!=r||1!=s)return!1;return!0}const qa=["createRange","ELEMENT_TITLE","editor","schema","nodeBefore","start","isCollapsed","TrackChangesEditing","title-content","model","plugins","Title","_descriptionFactory","registerPostFixer","getChangedMarkers","_splitMarkerName","updateMarker","forward","suggestion","document","element","from","end","newRange","has","afterInit","getNearestSelectionRange","isTouching"];var Xa,Ja;Xa=qa,Ja=219,function(t){for(;--t;)Xa.push(Xa.shift())}(++Ja);const Qa=function(t,e){return qa[t-=0]};class Ya extends t.Plugin{[Qa("0x2")](){const t=this[Qa("0x7")];if(!t[Qa("0xf")][Qa("0x1")](Qa("0x10")))return;const e=t[Qa("0xf")].get(Qa("0xc"));e[Qa("0x11")].registerElementLabel(Qa("0xd"),(()=>kr(t.locale,Qa("0x6")))),t[Qa("0xe")][Qa("0x18")][Qa("0x12")]((n=>{let o=!1;const r=Array[Qa("0x1a")](t[Qa("0xe")][Qa("0x18")].differ[Qa("0x13")]());for(const{name:s,data:i}of r){const{group:r}=e[Qa("0x14")](s);if(Qa("0x17")!==r||!i[Qa("0x0")])continue;const a=i[Qa("0x0")],x=a.end[Qa("0x9")];if(!x||!x.is(Qa("0x19"),Qa("0xd")))continue;if(!a[Qa("0xa")][Qa("0x4")](a[Qa("0x1b")]))continue;const c=t[Qa("0xe")][Qa("0x8")][Qa("0x3")](a[Qa("0x1b")],Qa("0x16"));if(c&&c[Qa("0xb")]){const t=n[Qa("0x5")](a[Qa("0xa")],c[Qa("0xa")]);t.isEqual(a)||(n[Qa("0x15")](s,{range:t}),o=!0)}o||(n.removeMarker(s),o=!0)}return o}))}}const Za=["editor","enableCommand","UndoEditing","afterInit","get","redo","plugins","has"];var tx,ex;tx=Za,ex=266,function(t){for(;--t;)tx.push(tx.shift())}(++ex);const nx=function(t,e){return Za[t-=0]};class ox extends t.Plugin{[nx("0x1")](){const t=this[nx("0x6")],e=t[nx("0x4")][nx("0x2")]("TrackChangesEditing");t[nx("0x4")][nx("0x5")](nx("0x0"))&&(e[nx("0x7")]("undo"),e[nx("0x7")](nx("0x3")))}}const rx=["keys","sign","string","charCodeAt","isArray","boolean"];var sx,ix;sx=rx,ix=350,function(t){for(;--t;)sx.push(sx.shift())}(++ix);const ax=function(t,e){return rx[t-=0]};function*xx(t){t?ax("0x3")==typeof t?yield 1:Array[ax("0x2")](t)?yield*function*(t){for(const e of t)yield*xx(e)}(t):"object"==typeof t?yield*cx(t):ax("0x0")==typeof t?yield*lx(t):"number"==typeof t&&(yield t):yield 0}function*cx(t){if(yield ux("{"),t){const e=Object[ax("0x4")](t).sort();for(const n of e){yield*lx(n),yield ux(":");const e=t[n];yield*xx(e)}}yield ux("}")}function*lx(t){yield ux('"');for(const e of t)yield ux(e);yield ux('"')}function ux(t){return t[ax("0x1")](0)}function dx(t){return(t*=Math[ax("0x5")](t)).toString(36)}const gx=["_setSuggestionData","length","refresh","plugins","markerReady","_getSuggestionData","buildSuggestion","track-changes-user-not-found","commandName","isOwn","createPositionAt","includes","PENDING_ACTION_SUGGESTION","marker-count","isBefore","_editor","markBlockFormat","isIntersectingWithRange","formatBlock:accept","_rangeIsInLocalUserInsertion","dataReady","low","skipNestingCheck","addSuggestionData","suggestion","selection","addHighlight","formatInline","deletion:","root","return","trackChanges","getMarkers","subType","type","updateMarker","insertion:","createPositionAfter","unbind","containsRangeInObject","element","values","mapper","_getAuthorFromId","getCustomProperty","deletion","markMultiRangeInsertion","_suggestions","registerCustomCallback","change","then","editing","showSuggestionHighlights","isNextTo","notReady","fromCharCode","init","conversion","markInsertion","setTo","head","createSelection","isObject","markMultiRangeBlockFormat","ready","discardAllSuggestions","splice","_handleNewSuggestionMarker","stop","containsRange","name","_findSuggestions","ck-suggestion-marker--active","clear","removed","howMany","markerToData","adapter","formatBlock","position","suggestionChanged","_refreshSuggestionsChain","isTouching","insert","removeClass","join","push","addSuggestion","range","editingDowncast","PendingActions","fromRange","data","getCommentThread","editor","isAtStart","getItems","formatGroupId","clone","rejected","getChangedMarkers","getIntersection","_descriptionFactory","getSuggestions","markInlineFormat","createRange","isLocal","hasComments","isAfter","_customCallbacks","_createSuggestion","deletion:join","config","suggestion:","getAttribute","originalSuggestionId","collaboration.channelId","parent","discard","_joinWithAdjacentSuggestions","getFirstRange","markDeletion","suggestionUnloaded","isRemovable","open","getNearestSelectionRange","enableCommand","addMarker:suggestion:formatBlock","createRangeIn","track-changes-adapter-missing-getsuggestion","discardSelectedSuggestions","removeMarker:suggestion:formatBlock","accept","model","after","batch","ck-suggestion-marker","map","track-changes-adapter-already-set","createdAt","elementToElement","TrackChangesEditing","formatInline:","split","track-changes-suggestion-data-mismatch","activeMarkers","end","markerToHighlight","_setSuggestionRange","_suggestionState","document","acceptSuggestion","getAncestors","for","before","_commentsRepository","containsItem","add","_checkSuggestionCorrectness","fetchCommentThread","containsPosition","elementStart","markers","Users","forceDefaultExecution","applyOperation","createPositionBefore","isInContent","track-changes-command-not-found","commentThread","_onDiscard","_addSuggestionMarker","acceptSelectedSuggestions","insertion:discard","fire","suggestion-type","CommentsRepository","execute","pluginName","nodeBefore","_updateSuggestionData","isCollapsed","addClass","_cutOutSuggestionMarker","getSuggestion","markMultiRangeDeletion","removeAttribute","updateSuggestion","getRanges","oldRange","formatBlock:chain","value","next","previous","_enabledCommands","addComment","some","targetPosition","formatBlock:","schema","writer","hasCommentThread","multi","_saved","isEqual","_removeSuggestion","removeMarker","data-suggestion","isDocumentOperation","_adapter","dataToMarker","options","change:data","track-changes-suggestion-not-found","nodeAfter","createElement","commands","consume","addMarkerName","isLimit","detach","listenTo","from","filter","markerNameToElements","enableReadOnlyMode","get","high","addMarker","start","differ","getShiftedBy","getFirstMarker","setSelection","_isForcedDefaultExecutionBlock","requires","discardSuggestion","getAllAdjacentSuggestions","getMultiRangeId","isInsideObject","insertContent","isUndo","consumable","_defaultCallbacks","getDifference","insertion:chain","attributes","getWalker","_suggestionFactory","change:activeMarkers","acceptAllSuggestions","newRange","every","_registerDefaultCallbacks","toJSON","removeComment","registerPostFixer","multipleBlocks","remove","addRange","item","author","suggestionLoaded","deletion:accept","textProxy","getSuggestionCallback","markerName","dataDowncast","rootName","sort","trackChangesCommand","_joinSuggestions","formatBlock:discard","removeMarkers","bindElementToMarker","upcast","hasSuggestion","$graveyard","isMultiRange","move","isSelectable","rethrowUnexpectedError","change:_saved","_model","insertion","ck-suggestion-marker-formatBlock","size","documentSelection","has","formatInline:join","deleteContent","locale","toViewElement","_breakSuggestionMarker","isAtEnd","_splitMarkerName","getChanges","moveTargetPosition","highest","set","forward","formatInline:accept"];var fx,mx;fx=gx,mx=368,function(t){for(;--t;)fx.push(fx.shift())}(++mx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{static get[hx("0xa9")](){return[hx("0x6e"),s.Users,t.PendingActions,Or,$r,rs,ls,ms,ys,Rs,Ls,Bs,zs,Js,ei,ii,ui,hi,yi,Ai,Mi,ji,Vi,qi,Zi,sa,ua,ha,Ta,Ra,La,ja,Wa,Ya,ox]}static get[hx("0x70")](){return hx("0x4b")}constructor(t){function e(t){return t[hx("0x47")]((t=>String[hx("0x123")](t)))[hx("0x13")]("")}super(t),this[hx("0xe9")]("activeMarkers",[]),this.on(hx("0xb7"),((e,n,o,r)=>{this._model[hx("0x11d")]((()=>{for(const e of[...r,...o])this[hx("0xd9")][hx("0x60")].has(e)&&t[hx("0x11f")].reconvertMarker(e)}))})),this[hx("0x24")]=new Ir(this[hx("0x1c")].model[hx("0x85")],this[hx("0x1c")][hx("0xe1")]),this[hx("0x8f")]=null,this._suggestionFactory=new bx(this[hx("0x1c")]),this[hx("0x11b")]=new Map,this[hx("0x59")]=t.plugins[hx("0xa0")]("CommentsRepository"),this[hx("0x80")]=new Set,this[hx("0xd9")]=this[hx("0x1c")][hx("0x43")],this[hx("0x53")]=new WeakMap,this[hx("0xa8")]=!1,this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,52,49,50,53,56])}[hx("0x124")](){const t=this.editor;t[hx("0x125")][hx("0x57")](hx("0x17"))[hx("0x51")]({model:hx("0x104"),view:t=>{const{id:e,type:n}=this[hx("0xe5")](t[hx("0xc8")]),o=[hx("0x46"),"ck-suggestion-marker-"+n];let r=3e3;return this[hx("0x4f")][hx("0xf7")](t[hx("0xc8")])&&(o[hx("0x14")](hx("0x6")),r=3010),hx("0x119")==n&&(r+=5),{classes:o,attributes:{"data-suggestion":e},priority:r}}}),t[hx("0x125")][hx("0x57")](hx("0xc9"))[hx("0x5b")]((e=>{e.on("addMarker:suggestion",((e,n,o)=>{if(!o.options[hx("0x120")])return;const r=n[hx("0xc2")];if(!r)return;const s=o[hx("0x116")][hx("0xe2")](r);t[hx("0x43")][hx("0x85")].isObject(r)&&s&&!s[hx("0x118")]("widget")&&s.is("containerElement")&&(0,P.toWidget)(s,o.writer)}),{priority:hx("0xa1")})})),t.conversion.for(hx("0xc9"))[hx("0x51")]({model:hx("0x104"),view:(t,e)=>{if(!e.options[hx("0x120")])return null;const{type:n}=this[hx("0xe5")](t.markerName);return{classes:[hx("0x46"),"ck-suggestion-marker-"+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,r)=>{if(!o.item)return;if(o.item.is(hx("0x105")))return void r[hx("0xb0")][hx("0x97")](o[hx("0xc2")],n[hx("0x4")]);const s=r[hx("0x116")][hx("0xe2")](o[hx("0xc2")]);if(!o.item.is(hx("0x114"))||!t.model.schema.isBlock(o[hx("0xc2")])||s.getCustomProperty(hx("0x106")))return;const{id:i}=this._splitMarkerName(o[hx("0xc8")]);r[hx("0x86")][hx("0x74")](["ck-suggestion-marker","ck-suggestion-marker-formatBlock"],s),r[hx("0x86")].setAttribute(hx("0x8d"),i,s),r[hx("0x116")][hx("0xd0")](s,o[hx("0xc8")]),e&&(this.activeMarkers[hx("0xf7")](o[hx("0xc8")])?r[hx("0x86")].addClass("ck-suggestion-marker--active",s):r[hx("0x86")][hx("0x12")](hx("0x6"),s));for(const e of t[hx("0x43")][hx("0x3e")](o[hx("0xc2")])[hx("0x1e")]())r[hx("0xb0")][hx("0x97")](e,n.name);r[hx("0xb0")][hx("0x97")](o[hx("0xc2")],n[hx("0x4")])};t[hx("0x125")][hx("0x57")](hx("0xc9"))[hx("0x5b")]((t=>{t.on(hx("0x3d"),((t,e,o)=>{o[hx("0x91")][hx("0x120")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:hx("0xe8")})})),t[hx("0x125")][hx("0x57")]("dataDowncast")[hx("0xa")]({model:hx("0x104"),view:(t,e)=>e[hx("0x91")][hx("0x120")]?null:{group:hx("0x104"),name:t.substr(hx("0x104")[hx("0xed")]+1)}}),t[hx("0x125")][hx("0x57")](hx("0xd1"))[hx("0x4a")]({view:{name:hx("0x104"),attribute:{id:/^\w/,suggestionType:/^\w/}},model:(t,{writer:e})=>{let n="suggestion:"+t.getAttribute(hx("0x6d"))+":"+t[hx("0x30")]("id");return t[hx("0x30")](hx("0xf9"))&&(n+=":"+t[hx("0x30")](hx("0xf9"))),e[hx("0x95")]("$marker",{"data-name":n})}}),t[hx("0x125")].for(hx("0xd1"))[hx("0x90")]({view:hx("0x104")}),t.conversion[hx("0x57")](hx("0x17")).add((t=>{t.on(hx("0x3d"),n(),{priority:hx("0xa1")})})),t.conversion.for(hx("0x17")).add((t=>{t.on(hx("0x41"),((t,e,n)=>{const o=n[hx("0x116")][hx("0x9e")](e[hx("0xc8")]);if(o)for(const t of o)t.getCustomProperty(hx("0x106"))||(n[hx("0x86")][hx("0x12")](["ck-suggestion-marker",hx("0xdb"),hx("0x6")],t),n[hx("0x86")][hx("0x78")](hx("0x8d"),t),n.mapper.unbindElementFromMarkerName(t,e.markerName))}),{priority:"high"})})),t.model[hx("0x54")][hx("0xbe")]((e=>{let n=!1;const o=Array.from(t[hx("0x43")].document.differ.getChangedMarkers());for(const{name:i,data:a}of o){const{group:o,type:x,id:c}=this[hx("0xe5")](i);if(hx("0x104")!==o)continue;const l=this._suggestions.get(c);if(null!=a[hx("0xb9")])if(hx("0x107")==x&&(n=n||yx(a.newRange,i,e,t[hx("0x43")][hx("0x85")])),a.newRange[hx("0x73")]||hx("0xd3")==a[hx("0xb9")][hx("0x109")][hx("0xca")]||"formatBlock"==x&&!Cx(a[hx("0xb9")])||hx("0x119")==x&&(_x(s=a[hx("0xb9")])||(r=s)[hx("0xa3")][hx("0x33")]==r[hx("0x50")][hx("0x71")]&&r.start[hx("0xe4")]))e[hx("0x8c")](i),n=!0;else{if(!l||!l[hx("0x65")])continue;n=!!this[hx("0x35")](l)||n}}var r,s;return n})),t.model.document[hx("0xbe")]((e=>{let n=!1;for(const o of t[hx("0x43")][hx("0x54")][hx("0xa4")][hx("0xe6")]()){if(hx("0x11")!=o[hx("0x10e")])continue;const r=o[hx("0xd")][hx("0xa5")](o.length);if(r[hx("0xe4")])for(const s of this[hx("0x11b")].values()){if(s[hx("0xd4")]||!s.isInContent)continue;if(hx("0xc")!=s[hx("0x10e")])continue;const i=s[hx("0x36")]();if(i[hx("0xa3")].parent!=i[hx("0x50")][hx("0x33")]&&i[hx("0x50")][hx("0x8a")](o[hx("0xd")])){const o=t[hx("0x43")][hx("0x27")](i[hx("0xa3")],r);e[hx("0x10f")](s.getFirstMarker(),{range:o}),n=!0}}}return n})),t[hx("0x43")].markers.on("update:suggestion",((t,e,n)=>{if(null==n){const{id:t}=this[hx("0xe5")](e[hx("0x4")]),n=this._suggestions[hx("0xa0")](t);n&&n[hx("0x98")](e.name)}})),t.model.document.on(hx("0x92"),(()=>{const e=Array[hx("0x9c")](t.model.document[hx("0xa4")][hx("0x22")]());e[hx("0xcb")](((t,e)=>{const n=t.data.oldRange,o=e.data.oldRange;return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[hx("0xa3")][hx("0xfa")](o[hx("0xa3")])?-1:1}));const n=new Set;for(const{name:t,data:o}of e){const{group:e,id:r}=this._splitMarkerName(t);if(hx("0x104")===e&&(null===o[hx("0x7b")]&&this[hx("0x1")](t),null===o[hx("0xb9")])){const t=this._suggestions[hx("0xa0")](r);t[hx("0x65")]?n[hx("0x5b")](t):this[hx("0x8b")](t)}}for(const{name:t,data:o}of e){const{group:e,id:r}=this[hx("0xe5")](t);if(hx("0x104")!==e)continue;const s=this[hx("0x11b")][hx("0xa0")](r);null!=o[hx("0xb9")]&&null!=o[hx("0x7b")]&&(this[hx("0xf")](s),n[hx("0x5b")](s[hx("0x128")]))}for(const t of n)this[hx("0x6c")](hx("0xe"),t);n.clear()})),t[hx("0x43")].on(hx("0x63"),((e,n)=>{const o=n[0];if(!this[hx("0x11b")][hx("0xdc")])return;if(!o[hx("0x8e")])return;if(o.batch[hx("0xaf")]||!o[hx("0x45")][hx("0x28")])return;let r,s;switch(o[hx("0x10e")]){case hx("0x11"):r=t[hx("0x43")].createPositionAt(o[hx("0xd")]),s=r[hx("0xa5")](o[hx("0x9")]);break;case hx("0x4d"):r=t[hx("0x43")][hx("0xf6")](o.splitPosition),s=t[hx("0x43")][hx("0xf6")](o[hx("0xe7")]);break;case hx("0xd5"):r=t.model.createPositionAt(o[hx("0x83")]),s=r[hx("0xa5")](o[hx("0x9")]);break;default:return}const i=t[hx("0x43")][hx("0x27")](r,s);t[hx("0x43")][hx("0x11d")]((()=>{for(const{suggestion:t,meta:e}of this[hx("0x5")](i)){if(t[hx("0xd4")])continue;if(hx("0x107")==t[hx("0x10e")])continue;const n=t[hx("0x1a")]&&t[hx("0x1a")][hx("0xbf")];(hx("0xc")!=t[hx("0x10e")]||hx("0x4d")==o.type&&!n)&&(e[hx("0x113")]||"insertion"==t.type&&e[hx("0xf5")]||t.getFirstRange()[hx("0x3")](i)&&this[hx("0xe3")](t,r,s))}}))}),{priority:"lowest"}),t.model.on(hx("0xe0"),((e,n)=>{const o=n[0],r=n[1];if(r&&r.forceDefaultExecution)return;if(this._isForcedDefaultExecutionBlock)return;if(!this[hx("0xcc")][hx("0x7d")])return;if(o[hx("0x73")])return;const s=t[hx("0x43")][hx("0x85")],{start:i,end:a}=o[hx("0x36")](),x=i[hx("0x94")]&&s[hx("0x12a")](i[hx("0x94")])?null:s[hx("0x3b")](i,hx("0xea")),c=a[hx("0x71")]&&s[hx("0x12a")](a[hx("0x71")])?null:s[hx("0x3b")](a,"backward"),l=t[hx("0x43")][hx("0x27")](x?x[hx("0xa3")]:i,c?c[hx("0x50")]:a);t[hx("0x43")][hx("0x11d")]((e=>{this[hx("0x37")](l);const n=t.model.schema[hx("0x3b")](l[hx("0xa3")]);o.is(hx("0xdd"))?e.setSelection(n):o[hx("0x127")](n)})),e[hx("0x2")]()}),{priority:e.priorities.normal+10}),t[hx("0x43")].on(hx("0xae"),((e,n)=>{const o=n[n.length-1];o&&o[hx("0x62")]||this._isForcedDefaultExecutionBlock||this.trackChangesCommand[hx("0x7d")]&&(t[hx("0x43")][hx("0x11d")]((()=>{let o=t[hx("0x43")].insertContent(n[0],n[1],n[2],n[3],{forceDefaultExecution:!0});if(!o)return;e[hx("0x10a")]=o[hx("0x20")]();const r=o[hx("0x50")].nodeBefore,s=t.model.schema;r&&s.isBlock(r)&&!s[hx("0x12a")](r)&&(o=t[hx("0x43")][hx("0x27")](o[hx("0xa3")],t[hx("0x43")][hx("0xf6")](r,hx("0x50")))),this.markInsertion(o)})),e[hx("0x2")]())}),{priority:hx("0xa1")}),this[hx("0xcc")]=new H(t,this[hx("0x80")]),this[hx("0x1c")][hx("0x96")][hx("0x5b")]("trackChanges",this.trackChangesCommand),this[hx("0x3c")](hx("0x10b"));const o=new K(t,this[hx("0x11b")]);t[hx("0x96")][hx("0x5b")](hx("0x55"),o),this[hx("0x3c")]("acceptSuggestion");const r=new Q(t,this._suggestions);t[hx("0x96")][hx("0x5b")]("discardSuggestion",r),this.enableCommand("discardSuggestion"),t[hx("0x96")][hx("0x5b")](hx("0xb8"),new at(t,o,this[hx("0x11b")])),this[hx("0x3c")](hx("0xb8")),t[hx("0x96")].add(hx("0x12d"),new Tt(t,r,this[hx("0x11b")])),this.enableCommand(hx("0x12d")),t.commands[hx("0x5b")]("acceptSelectedSuggestions",new pt(t,o,this[hx("0x11b")])),this[hx("0x3c")](hx("0x6a")),t.commands[hx("0x5b")](hx("0x40"),new Rt(t,r,this[hx("0x11b")])),this.enableCommand(hx("0x40"));const s=t.plugins[hx("0xa0")](hx("0x6e"));this[hx("0x9b")](s,hx("0x81"),((t,{threadId:e})=>{const n=this[hx("0x11b")][hx("0xa0")](e);n&&n[hx("0x67")]&&1===n[hx("0x67")].length&&this._updateSuggestionData(e,{hasComments:!0})}),{priority:"low"}),this[hx("0x9b")](s,hx("0xbd"),((t,{threadId:e})=>{const n=this[hx("0x11b")][hx("0xa0")](e);n&&n[hx("0x67")]&&!n[hx("0x67")].length&&this[hx("0x72")](e,{hasComments:!1})}),{priority:hx("0x101")})}set[hx("0xb")](t){if(this[hx("0x8f")])throw new e.CKEditorError(hx("0x48"),this);this._adapter=t}get[hx("0xb")](){return this[hx("0x8f")]}[hx("0x25")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[hx("0x11b")][hx("0x115")]())t&&!e.isInContent||n[hx("0x14")](e);return e?n.map((t=>t[hx("0xbc")]())):n}[hx("0x76")](t){const n=this[hx("0x11b")].get(t);if(!n)throw new e.CKEditorError(hx("0x93"),this);return n}[hx("0xd2")](t){return this[hx("0x11b")][hx("0xde")](t)}[hx("0x103")](t){const{id:e,authorId:n}=t,[o,r]=t.type.split(":"),s=this[hx("0x11b")][hx("0xa0")](e)||this[hx("0x2c")](o,r,e,n);switch(this._addThreadToSuggestion(s),this[hx("0x5c")](s,o,r||null,n),s[hx("0x49")]=t[hx("0x49")],t[hx("0x1a")]&&(s[hx("0x1a")]=t.data),t[hx("0xb4")]&&(s[hx("0xb4")]=t[hx("0xb4")]),this[hx("0x8f")]&&this[hx("0x8f")][hx("0x15")]||(s[hx("0x89")]=!0),this._suggestionState[hx("0xa0")](s)){case hx("0x122"):this[hx("0x53")][hx("0xe9")](s,hx("0x100"));break;case hx("0xf0"):s[hx("0x65")]?(this[hx("0x53")].set(s,hx("0x12c")),this[hx("0x6c")]("suggestionLoaded",s)):this._suggestionState.set(s,hx("0x8"))}return s}[hx("0x55")](t){this[hx("0x62")]((()=>{this[hx("0x1c")][hx("0x43")][hx("0x11d")]((()=>{for(const e of t[hx("0xab")]())e[hx("0x42")]()}))}))}[hx("0xaa")](t){this[hx("0x62")]((()=>{this[hx("0x1c")][hx("0x43")][hx("0x11d")]((()=>{for(const e of t[hx("0xab")]())e[hx("0x34")]()}))}))}[hx("0x3c")](t,n){const o=this[hx("0x1c")][hx("0x96")][hx("0xa0")](t);if(!o)throw new e.CKEditorError(hx("0x66"),this,{commandName:t});this[hx("0x80")][hx("0x5b")](o),n&&o.on(hx("0x6f"),((t,e)=>{this.trackChangesCommand[hx("0x7d")]&&(this[hx("0xa8")]||e.length>0&&e[e.length-1]&&e[e[hx("0xed")]-1].forceDefaultExecution||(n(((...t)=>o.execute(...t,{forceDefaultExecution:!0})),...e),t[hx("0x2")]()))}),{priority:"high"})}[hx("0x62")](t){let n,o;const r=this[hx("0xa8")];this[hx("0xa8")]=!0;try{n=t()}catch(t){o=t}return r||(this._isForcedDefaultExecutionBlock=!1),o&&e.CKEditorError[hx("0xd7")](o,this),n}[hx("0x126")](t,n=null,o={}){if(t[hx("0x73")])return null;const r=this[hx("0x1c")][hx("0xef")].get(hx("0x61")).me;for(const{suggestion:e,meta:o}of this._findSuggestions(t,hx("0xda")))if(o.isOwn){if(!o[hx("0x121")])return e;if(n==e[hx("0x10d")]){const n=e[hx("0x36")]();return n[hx("0xa3")][hx("0x8a")](t.end)?this[hx("0x52")](e,this[hx("0xd9")][hx("0x27")](t[hx("0xa3")],n[hx("0x50")])):this._setSuggestionRange(e,this[hx("0xd9")].createRange(n.start,t[hx("0x50")])),e}}const s=(0,e.uid)(),i=r.id,a=n?hx("0x110")+n:"insertion",x=this[hx("0xec")]({id:s,type:a,createdAt:new Date,authorId:i,attributes:o});return this[hx("0x69")](a,s,i,t),x}[hx("0x11a")](t,n="multi",o={}){const r=this[hx("0x1c")][hx("0xef")][hx("0xa0")](hx("0x61")).me,s=this[hx("0xb6")].getSuggestionCallback("insertion",n,hx("0x13"));for(const e of this[hx("0x25")]())if(e[hx("0xc3")].id==r.id&&hx("0xda")==e.type&&e.subType==n&&(s(e[hx("0x7a")](),t)||s(t,e[hx("0x7a")]()))){for(const n of t)e[hx("0xc1")](n);return e}for(const e of t)for(const{suggestion:n,meta:o}of this._findSuggestions(e,hx("0xda"))){if(!o[hx("0xf5")])continue;let e=!0;for(const o of n[hx("0x7a")]())for(const n of t)if(!o.containsRange(n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),a=r.id,x=hx("0x110")+n,c=this[hx("0xec")]({id:i,type:x,createdAt:new Date,authorId:a,attributes:o});for(const e of t)this[hx("0x69")](x,i,a,e,Cr[hx("0xac")]());return c}[hx("0x26")](t,n,o=null,r={}){if(o=o||Tx(n),t[hx("0x73")])return;const s=this[hx("0x1c")][hx("0xef")].get(hx("0x61")).me,i=[];for(const{suggestion:e,meta:n}of this[hx("0x5")](t,hx("0xda")))n[hx("0xf5")]&&!n.isInsideObject&&i[hx("0x14")](...e[hx("0x7a")]());const a=function(t,e){const n=[];for(const o of e){const e=t.getIntersection(o);e&&n.push(e)}return n}(t,i),x=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[hx("0xed")];){const o=n[e][hx("0xb2")](t);n[hx("0x0")](e,1,...o),e+=o[hx("0xed")]}}return n}(t,i);a[hx("0xed")]&&this[hx("0xd9")][hx("0x11d")]((()=>{for(const t of a){const e=this._suggestionFactory.getSuggestionCallback(hx("0x107"),o,hx("0x42"));this[hx("0x62")]((()=>e([t],n,r)))}}));for(const t of x){let i=null,a=t[hx("0xa3")],x=t.end;for(const{suggestion:e,meta:n}of this[hx("0x5")](t,hx("0x107"))){if(!n[hx("0xf5")])continue;if(e.subType!=o)continue;const r=e[hx("0x36")]();if(r[hx("0x3")](t,!0))return;a=a[hx("0xfa")](r.start)?a:r[hx("0xa3")],x=x[hx("0x2a")](r[hx("0x50")])?x:r[hx("0x50")],i?r[hx("0xa3")].isBefore(i.getFirstRange()[hx("0xa3")])?(i[hx("0xcf")](),i=e):e[hx("0xcf")]():i=e}const c=this[hx("0xd9")][hx("0x27")](a,x);if(i)this[hx("0x52")](i,c);else{const t=(0,e.uid)(),i=s.id;this[hx("0xec")]({id:t,type:hx("0x4c")+o,data:n,createdAt:new Date,authorId:i,attributes:r}),this[hx("0x69")](hx("0x4c")+o,t,i,c)}}}[hx("0xfc")](t,n,o=[],r=null,s={}){n[hx("0x1f")]||(n[hx("0x1f")]=n[hx("0xf4")]),n[hx("0xbf")]=t.is(hx("0x16")),r=r||Tx(n);const i=o[hx("0x47")]((t=>kx(t,this[hx("0xd9")]))),a=t.is("range")?t:kx(t,this[hx("0xd9")]);i[hx("0x14")](a);let x=!0;for(const t of i)if(!this[hx("0xff")](t)){x=!1;break}if(x){const t=this[hx("0xb6")].getSuggestionCallback(hx("0xc"),r,hx("0x42"));return void this.forceDefaultExecution((()=>t([a],n,s)))}let c=null,l=a[hx("0xa3")],u=a[hx("0x50")];for(const{suggestion:t,meta:e}of this[hx("0x5")](a,hx("0xc"))){if(!e[hx("0xf5")]||e.isNextTo||e.containsRangeInObject||e[hx("0xad")])continue;if(t.data[hx("0x1f")]!=n[hx("0x1f")])continue;const o=t[hx("0x36")]();if(t[hx("0x10d")]==r){if(o[hx("0x3")](a,!0))return;l=l.isBefore(o[hx("0xa3")])?l:o.start,u=u[hx("0x2a")](o[hx("0x50")])?u:o[hx("0x50")],c?o[hx("0xa3")][hx("0xfa")](c[hx("0x36")]().start)?(c[hx("0xcf")](),c=t):t[hx("0xcf")]():c=t}else{const e=a[hx("0x23")](o);this[hx("0x75")](t,e)}}const d=this[hx("0x1c")][hx("0xef")][hx("0xa0")](hx("0x61")).me,g=(0,e.uid)(),f=d.id;c?this[hx("0x52")](c,this[hx("0xd9")].createRange(l,u)):(this[hx("0xec")]({id:g,type:hx("0x84")+r,data:n,createdAt:new Date,authorId:f,attributes:s}),this[hx("0x69")]("formatBlock:"+r,g,f,this[hx("0xd9")][hx("0x27")](l,u)))}[hx("0x12b")](t,n,o=[],r=null,s={}){n.formatGroupId||(n[hx("0x1f")]=n[hx("0xf4")]),n[hx("0xbf")]=!1,r=r||Tx(n);const i=o[hx("0x47")]((t=>kx(t,this[hx("0xd9")]))),a=t[hx("0x47")]((t=>kx(t,this[hx("0xd9")])));i[hx("0x14")](...a);let x=!0;for(const t of i)if(!this[hx("0xff")](t)){x=!1;break}if(x){const t=this[hx("0xb6")].getSuggestionCallback("formatBlock",r,hx("0x42"));return void this.forceDefaultExecution((()=>t(a,n,s)))}const c=this.editor[hx("0xef")][hx("0xa0")](hx("0x61")).me;for(const t of this[hx("0x25")]()){if(t[hx("0xc3")].id!=c.id)continue;if(hx("0xc")!=t[hx("0x10e")]||t.data[hx("0x1f")]!=n.formatGroupId)continue;const e=t.subType==r;for(let n=0;n<a[hx("0xed")];n++){const o=a[n];for(const r of t[hx("0x10c")]()){const s=r.getRange();if(o[hx("0x8a")](s)){e?(a[hx("0x0")](n,1),n--):t[hx("0x8c")](r.name);break}}}}if(0==a[hx("0xed")])return;const l=this._suggestionFactory[hx("0xc7")](hx("0xc"),r,"join");for(const t of this.getSuggestions())if(t[hx("0xc3")].id==c.id&&hx("0xc")==t[hx("0x10e")]&&t[hx("0x1a")][hx("0x1f")]==n[hx("0x1f")]&&t[hx("0x10d")]==r&&(l(t[hx("0x7a")](),a)||l(a,t[hx("0x7a")]()))){for(const e of a)t[hx("0xc1")](e);return t}const u=(0,e.uid)(),d=c.id,g=hx("0x84")+r,f=this[hx("0xec")]({id:u,type:g,data:n,createdAt:new Date,authorId:d,attributes:s});for(const t of a)this[hx("0x69")](g,u,d,t,Cr[hx("0xac")]());return f}[hx("0x37")](t,n=null,o={}){if(t[hx("0x73")])return null;const r=this.editor.plugins[hx("0xa0")](hx("0x61")).me,s=new F.LiveRange(t[hx("0xa3")],t[hx("0x50")]);for(const{suggestion:t,meta:e}of this[hx("0x5")](s,hx("0xda")))if(e[hx("0xf5")]&&!e[hx("0x121")])if(t[hx("0xd4")]){const e=t[hx("0x7a")]()[hx("0x9d")]((t=>"$graveyard"!=t[hx("0x109")][hx("0xca")]));if(e[hx("0xba")]((t=>s[hx("0x3")](t,!0)))&&t[hx("0x34")](),e[hx("0x82")]((t=>t.containsRange(s,!0)))){const t=this[hx("0xb6")].getSuggestionCallback(hx("0x119"),n,hx("0x42"));return this[hx("0x62")]((()=>t([s],null,o))),null}}else{const e=s[hx("0x23")](t.getFirstRange());t[hx("0x68")]([e],null,o)}if(s[hx("0x9a")](),s.isCollapsed||hx("0xd3")==s.root[hx("0xca")])return null;let i=null,a=s[hx("0xa3")],x=s[hx("0x50")];for(const{suggestion:t,meta:e}of this[hx("0x5")](s,hx("0x119")))if(e[hx("0xf5")])if(t[hx("0xd4")]){let e=!0;for(const n of t[hx("0x7a")]()){if(n[hx("0x3")](s,!0))return t;s[hx("0x3")](n)||(e=!1)}e&&t[hx("0x34")]()}else{const e=t[hx("0x36")]();if(e[hx("0x3")](s,!0))return t;a=a.isBefore(e.start)?a:e[hx("0xa3")],x=x[hx("0x2a")](e[hx("0x50")])?x:e[hx("0x50")],i?e.start.isBefore(i.getFirstRange()[hx("0xa3")])?(i[hx("0xcf")](),i=t):t[hx("0xcf")]():i=t}if(i)return this[hx("0x52")](i,this[hx("0xd9")][hx("0x27")](a,x)),i;{const t=(0,e.uid)(),s=this[hx("0xd9")][hx("0x27")](a,x),i=r.id,c=n?hx("0x108")+n:hx("0x119"),l=this[hx("0xec")]({id:t,type:c,createdAt:new Date,authorId:i,attributes:o});return this[hx("0x69")](c,t,i,s),l}}[hx("0x77")](t,n=hx("0x88"),o={}){const r=this[hx("0x1c")][hx("0xef")][hx("0xa0")](hx("0x61")).me,s=t[hx("0x47")]((t=>new F.LiveRange(t.start,t[hx("0x50")]))),i=new Set;for(const t of s)for(const{suggestion:e,meta:n}of this._findSuggestions(t,hx("0xda")))n.isOwn&&!n[hx("0x121")]&&i[hx("0x5b")](e);for(const e of i)if(e.isMultiRange){const r=e[hx("0x7a")]();if((!e[hx("0xb4")]||!e.attributes.skipNestingCheck)&&r[hx("0xba")]((t=>s.some((e=>e.containsRange(t,!0)))))&&e.discard(),s[hx("0xba")]((t=>r[hx("0x82")]((e=>e[hx("0x3")](t,!0)))))){const e=this[hx("0xb6")].getSuggestionCallback(hx("0x119"),n,"accept");return this[hx("0x62")]((()=>e(t,null,o))),null}}else{const t=e[hx("0x36")]();if(s[hx("0x82")]((e=>e.containsRange(t,!0)))&&e[hx("0x34")](),s.every((e=>t[hx("0x3")](e,!0)))){const t=this[hx("0xb6")].getSuggestionCallback(hx("0x119"),n,"accept");return this[hx("0x62")]((()=>t(s,null,o))),null}}const a=this._suggestionFactory[hx("0xc7")](hx("0x119"),n,hx("0x13"));let x=null;for(const t of this.getSuggestions())if(t[hx("0xc3")].id==r.id&&t.isInContent&&"deletion"==t[hx("0x10e")]&&t.subType==n&&(a(t[hx("0x7a")](),s)||a(s,t[hx("0x7a")]())))if(x){if(t.commentThread&&t[hx("0x67")].length)continue;for(const e of t[hx("0x7a")]())x[hx("0xfd")](e)||x[hx("0xc1")](e);t[hx("0xcf")]()}else{x=t;for(const e of s)t[hx("0xfd")](e)||t[hx("0xc1")](e)}if(x)return x;i[hx("0x7")]();for(const t of s)for(const{suggestion:e,meta:n}of this[hx("0x5")](t,hx("0x119")))n[hx("0xf5")]&&i[hx("0x5b")](e);for(const t of i){const e=t[hx("0x7a")]();if((!o||!o[hx("0x102")])&&s[hx("0xba")]((t=>e[hx("0x82")]((e=>e.containsRange(t,!0))))))return t;(!t[hx("0xb4")]||!t[hx("0xb4")][hx("0x102")])&&e.every((t=>s[hx("0x82")]((e=>e[hx("0x3")](t,!0)))))&&t[hx("0x34")]()}const c=(0,e.uid)(),l=r.id,u="deletion:"+n,d=this[hx("0xec")]({id:c,type:u,createdAt:new Date,authorId:l,attributes:o});for(const t of s)t.detach(),t.isCollapsed||hx("0xd3")==t[hx("0x109")][hx("0xca")]||this[hx("0x69")](u,c,l,t,Cr.getMultiRangeId());return d}[hx("0x52")](t,e){const n=t[hx("0xa6")]();this[hx("0xd9")][hx("0x11d")]((t=>{t[hx("0x10f")](n,{range:e})}))}_addThreadToSuggestion(t){const e=t.id,n=this[hx("0x1c")][hx("0x2e")][hx("0xa0")](hx("0x32"));this._commentsRepository[hx("0x87")](e)||this[hx("0x59")].addCommentThread({channelId:n,threadId:e});const o=this[hx("0x59")][hx("0x1b")](e);o[hx("0x112")](hx("0x39")),o[hx("0x39")]=!1,t[hx("0x67")]=o}[hx("0x5c")](t,n,o,r){if(t[hx("0x10e")]!=n||t[hx("0x10d")]!=o||t[hx("0xc3")].id!=r)throw this[hx("0x1c")][hx("0x9f")](hx("0x4e")),new e.CKEditorError("track-changes-suggestion-data-mismatch",this)}[hx("0x75")](t,n){const o=t[hx("0x36")]();if(n[hx("0x8a")](o))t.removeMarkers();else if(o[hx("0x3")](n)){const r=this[hx("0xd9")].createPositionAt(n.start[hx("0x71")],hx("0x50"));this[hx("0x52")](t,this[hx("0xd9")][hx("0x27")](o[hx("0xa3")],r));const s=(0,e.uid)(),i=t[hx("0xc3")].id,a=t[hx("0x10e")]+":"+t.subType;this._setSuggestionData({id:s,type:a,createdAt:new Date,authorId:i,data:t[hx("0x1a")],attributes:t[hx("0xb4")]});const x=this[hx("0xd9")][hx("0xf6")](n[hx("0x50")].parent,hx("0x44")),c=this[hx("0xd9")].createRange(x,o[hx("0x50")]);this._addSuggestionMarker(a,s,i,c)}else if(o[hx("0x5e")](n.start)){const e=this[hx("0xd9")][hx("0xf6")](n.start[hx("0x71")],hx("0x50"));this[hx("0x52")](t,this[hx("0xd9")][hx("0x27")](o[hx("0xa3")],e))}else{const e=this[hx("0xd9")].createPositionAt(n[hx("0x50")][hx("0x33")],hx("0x44"));this[hx("0x52")](t,this[hx("0xd9")][hx("0x27")](e,o[hx("0x50")]))}}[hx("0xff")](t){for(const{suggestion:e,meta:n}of this[hx("0x5")](t,hx("0xda"))){if(!n.isOwn)continue;const o=e[hx("0x7a")]();for(const e of o)if(!t.getDifference(e).length)return!0}return!1}[hx("0x117")](t){const n=this[hx("0x1c")][hx("0xef")].get(hx("0x61")).getUser(t);if(!n)throw new e.CKEditorError(hx("0xf3"),this);return n}[hx("0x2c")](t,e,n,o){const r=this[hx("0x117")](o),s=this._suggestionFactory.buildSuggestion(t,e,n,r,(t=>this[hx("0x72")](n,{attributes:t})));return this[hx("0x9b")](s,"accept",(()=>{this[hx("0x72")](n,{state:"accepted"})}),{priority:hx("0xa1")}),this.listenTo(s,"discard",(()=>{this._updateSuggestionData(n,{state:hx("0x21")})}),{priority:hx("0xa1")}),this[hx("0x11b")][hx("0xe9")](n,s),this._suggestionState[hx("0xe9")](s,hx("0x122")),s}_splitMarkerName(t){const e=t[hx("0x4d")](":");return{group:e[0],type:e[1],subType:e[hx("0xed")]>=5?e[2]:null,id:e.length<5?e[2]:e[3],authorId:e[hx("0xed")]<5?e[3]:e[4],markerCount:6==e[hx("0xed")]?e[5]:null}}[hx("0xe3")](t,n,o){const r=t.getFirstRange(),s=r[hx("0xa3")],i=r.end;this[hx("0x52")](t,this[hx("0xd9")][hx("0x27")](s,n));const a=(0,e.uid)(),x=t[hx("0xc3")].id,c=t[hx("0x10e")]+(t[hx("0x10d")]?":"+t[hx("0x10d")]:"");this[hx("0xec")]({id:a,type:c,createdAt:new Date,authorId:x,originalSuggestionId:t.id,data:t[hx("0x1a")]}),hx("0xc")==t.type&&(o=this[hx("0xd9")][hx("0x64")](o.parent)),this._addSuggestionMarker(c,a,x,this._model.createRange(o,i))}_findSuggestions(t,e=null){const n=[],o=this[hx("0xd9")][hx("0x85")],r=this[hx("0x1c")][hx("0xef")].get(hx("0x61")).me;for(const s of this[hx("0x25")]())if(s.isInContent&&(!e||s.type==e))for(const e of s[hx("0x7a")]()){const i=t[hx("0xa3")][hx("0x8a")](e[hx("0x50")])||t[hx("0x50")][hx("0x8a")](e[hx("0xa3")]);if(i||t[hx("0x23")](e)){const a=t[hx("0x3")](e)&&Ex(o,e[hx("0xa3")],t),x=e[hx("0x3")](t)&&Ex(o,t[hx("0xa3")],e);n[hx("0x14")]({suggestion:s,meta:{isOwn:r==s.author,isNextTo:i,isInsideObject:a,containsRangeInObject:x}});break}}return n}[hx("0x69")](t,e,n,o,r=null){this[hx("0xd9")][hx("0x11d")]((s=>{let i=hx("0x2f")+t+":"+e+":"+n;r&&(i=i+":"+r),s[hx("0xa2")](i,{range:o,usingOperation:!0,affectsData:!0})}))}_removeSuggestion(t){const e=t[hx("0x7f")],n=t[hx("0x7e")];t.previous=null,null!=e&&(e[hx("0x7e")]=null),t[hx("0x7e")]=null,null!=n&&(n[hx("0x7f")]=null),hx("0x12c")==this[hx("0x53")][hx("0xa0")](t)&&(this[hx("0x53")].set(t,"removed"),this[hx("0x6c")](hx("0x38"),t,e,n))}[hx("0xec")](t){const e=t.id,n=this.addSuggestionData(t);if(this[hx("0x8f")]&&this._adapter.addSuggestion){const o=this[hx("0x1c")][hx("0xef")][hx("0xa0")](hx("0x18")),r=n[hx("0x29")],s=n[hx("0x10d")]?n[hx("0x10e")]+":"+n[hx("0x10d")]:n[hx("0x10e")],i=this.editor[hx("0xe1")],a=o.add(kr(i,"PENDING_ACTION_SUGGESTION")),x={id:e,type:s,hasComments:r,data:t.data||null,originalSuggestionId:t[hx("0x31")]||null,attributes:n[hx("0xb4")]};this[hx("0x8f")].addSuggestion(x)[hx("0x11e")]((t=>{n[hx("0x89")]=!0,o[hx("0xc0")](a),t&&t[hx("0x49")]&&(this[hx("0x11b")][hx("0xa0")](e)[hx("0x49")]=t[hx("0x49")])}))}return n}[hx("0x72")](t,e){const n=this[hx("0x1c")][hx("0xef")][hx("0xa0")]("PendingActions"),o=this[hx("0x11b")][hx("0xa0")](t);if(this[hx("0x8f")]&&this[hx("0x8f")].updateSuggestion)if(o._saved){const o=n[hx("0x5b")](kr(this[hx("0x1c")][hx("0xe1")],hx("0xf8")));this[hx("0x8f")][hx("0x79")](t,e).then((()=>{n[hx("0xc0")](o)}))}else o.on(hx("0xd8"),(()=>{this[hx("0x72")](t,e)}))}[hx("0xf1")](t){if(!this[hx("0x8f")]||!this._adapter.getSuggestion)throw new e.CKEditorError(hx("0x3f"),this);return this[hx("0x8f")].getSuggestion(t)}[hx("0x1")](t){const{id:e,type:n,subType:o,authorId:r}=this._splitMarkerName(t),s=this[hx("0x11b")][hx("0xa0")](e)||this[hx("0x2c")](n,o,e,r);switch(this[hx("0x5c")](s,n,o,r),this[hx("0x53")].get(s)){case hx("0x122"):this[hx("0xf1")](e)[hx("0x11e")]((t=>{let n=Promise.resolve();t[hx("0x29")]&&(n=this[hx("0x59")][hx("0x5d")]({channelId:this[hx("0x1c")][hx("0x2e")][hx("0xa0")]("collaboration.channelId"),threadId:e})),n[hx("0x11e")]((()=>{this[hx("0x103")](t)[hx("0x89")]=!0}))})),this[hx("0x53")][hx("0xe9")](s,hx("0xf0"));break;case"removed":this[hx("0x72")](e,{state:hx("0x3a")});case hx("0x100"):this[hx("0x53")][hx("0xe9")](s,hx("0x12c")),this[hx("0x6c")](hx("0xc4"),s);break;case hx("0x12c"):this[hx("0x6c")]("suggestionChanged",s)}s.addMarkerName(t),this[hx("0xf")](s)}_refreshSuggestionsChain(t){if(t[hx("0xd4")])return;let e=!0,n=!0;for(const o of this[hx("0x25")]()){if(o.isMultiRange)continue;if(o==t||!o[hx("0x65")])continue;if(o[hx("0xc3")].id!=t[hx("0xc3")].id)continue;const r=this._suggestionFactory[hx("0xc7")](t[hx("0x10e")],t[hx("0x10d")],"chain"),s=this._suggestionFactory.getSuggestionCallback(o[hx("0x10e")],o[hx("0x10d")],"chain"),i=r(t,o),a=s(t,o);i&&a&&(i[1].commentThread&&i[1][hx("0x67")][hx("0xed")]||(i[0][hx("0x7e")]=i[1],i[1].previous=i[0],i[0]==t?n=!1:e=!1))}t[hx("0x7f")]&&e&&(t[hx("0x7f")][hx("0x7e")]=null,t[hx("0x7f")]=null),t[hx("0x7e")]&&n&&(t[hx("0x7e")][hx("0x7f")]=null,t[hx("0x7e")]=null)}[hx("0x35")](t){for(const e of this[hx("0x11b")][hx("0x115")]()){if(e==t||!e.isInContent)continue;if(e[hx("0x10e")]!=t[hx("0x10e")]||e[hx("0xc3")].id!=t[hx("0xc3")].id||e[hx("0x10d")]!=t[hx("0x10d")])continue;const n=this[hx("0xb6")][hx("0xc7")](t[hx("0x10e")],t[hx("0x10d")],"join");if(n(e[hx("0x7a")](),t[hx("0x7a")]())){if(t[hx("0x67")]&&t[hx("0x67")][hx("0xed")])continue;return this[hx("0xcd")](e,t),!0}if(n(t[hx("0x7a")](),e[hx("0x7a")]())){if(e[hx("0x67")]&&e[hx("0x67")][hx("0xed")])continue;return this[hx("0xcd")](t,e),!0}}return!1}[hx("0xcd")](t,e){if(t[hx("0xd4")])for(const n of e[hx("0x7a")]())t.addRange(n);else{const n=e[hx("0x36")]()[hx("0x50")];this[hx("0x52")](t,this[hx("0xd9")][hx("0x27")](t[hx("0x36")]()[hx("0xa3")],n))}e[hx("0xcf")]()}}(0,e.mix)(px,e.EmitterMixin);class bx{constructor(t){this[hx("0xfb")]=t,this._model=t[hx("0x43")],this[hx("0x2b")]=new Map,this._defaultCallbacks=new Map,this._registerDefaultCallbacks()}[hx("0xf2")](t,e,n,o,r){return new Cr(this._model,{type:t,subType:e,id:n,author:o,onAttributesChange:r,onAccept:(...n)=>this[hx("0xc7")](t,e,hx("0x42"))(...n),onDiscard:(...n)=>this[hx("0xc7")](t,e,hx("0x34"))(...n)})}[hx("0x11c")](t,e,n,o){const r=t+":"+e+":"+n;this._customCallbacks[hx("0xe9")](r,o)}[hx("0xc7")](t,e,n){const o=t+":"+e+":"+n;return this[hx("0x2b")].get(o)||this[hx("0xb1")].get(t+":"+n)}[hx("0xbb")](){const t=()=>{},e=t=>{t[hx("0xcb")](((t,e)=>t[hx("0xa3")][hx("0xfa")](e[hx("0xa3")])?1:-1)),this._model[hx("0x11d")]((e=>{for(const n of t){let t;t=n[hx("0x50")][hx("0xe4")]&&n[hx("0x50")][hx("0x33")]==n[hx("0xa3")][hx("0x94")]?e[hx("0x129")](n[hx("0xa3")].nodeAfter,"on"):e.createSelection(n),this[hx("0xd9")][hx("0xe0")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[hx("0xd9")][hx("0x11d")]((n=>{const{commandName:o,commandParams:r=[]}=e,s=t[0];if(hx("0xd3")==s.root[hx("0xca")])return;const i=Array[hx("0x9c")](this[hx("0xd9")][hx("0x54")].selection[hx("0x7a")]()).map((t=>F.LiveRange[hx("0x19")](t)));_x(s)?n.setSelection(this[hx("0xd9")][hx("0x27")](s[hx("0x50")])):n[hx("0xa7")](s);for(const t of this[hx("0xfb")][hx("0x96")][hx("0x96")]())t[hx("0xee")]();r.push({forceDefaultExecution:!0}),this[hx("0xfb")][hx("0x6f")](o,...r);const a=i.filter((t=>"$graveyard"!=t[hx("0x109")][hx("0xca")]));a.length>0&&n[hx("0xa7")](a);for(const t of i)t[hx("0x9a")]()}))},o=(t,e)=>1==t.length&&1==e[hx("0xed")]&&t[0][hx("0x50")][hx("0x8a")](e[0][hx("0xa3")]),r=(t,e)=>vx(t,e,this[hx("0xd9")])?[t,e]:vx(e,t,this[hx("0xd9")])?[e,t]:null;this._defaultCallbacks.set("insertion:accept",t),this[hx("0xb1")][hx("0xe9")](hx("0x6b"),e),this[hx("0xb1")][hx("0xe9")]("insertion:join",o),this._defaultCallbacks[hx("0xe9")](hx("0xb3"),r),this[hx("0xb1")][hx("0xe9")](hx("0xc5"),e),this._defaultCallbacks[hx("0xe9")]("deletion:discard",t),this._defaultCallbacks[hx("0xe9")](hx("0x2d"),o),this[hx("0xb1")][hx("0xe9")]("deletion:chain",r),this[hx("0xb1")][hx("0xe9")](hx("0xeb"),n),this[hx("0xb1")][hx("0xe9")]("formatInline:discard",t),this[hx("0xb1")].set(hx("0xdf"),o),this[hx("0xb1")][hx("0xe9")]("formatInline:chain",t),this[hx("0xb1")][hx("0xe9")](hx("0xfe"),n),this[hx("0xb1")][hx("0xe9")](hx("0xce"),t),this[hx("0xb1")][hx("0xe9")]("formatBlock:join",o),this[hx("0xb1")][hx("0xe9")](hx("0x7c"),t)}}function Ex(t,e,n){for(const o of e[hx("0x33")][hx("0x56")]({includeSelf:!0,parentFirst:!0})){if(o[hx("0x109")]==o)return!1;if(!n[hx("0x5a")](o))return!1;if(t.isObject(o)||t[hx("0x99")](o))return!0}}function _x(t){return t[hx("0x50")][hx("0x33")]==t[hx("0xa3")].nodeAfter&&t.end[hx("0x1d")]}function yx(t,e,n,o){const r=t=>!t[hx("0xc2")].is(hx("0xc6"))&&!o[hx("0x12a")](t[hx("0xc2")]),s=t[hx("0xa3")].getLastMatchingPosition(r),i=t[hx("0x50")].getLastMatchingPosition(r,{direction:"backward"});return!(t.start[hx("0x8a")](s)&&t[hx("0x50")][hx("0x8a")](i)||(s[hx("0xfa")](i)?n[hx("0x10f")](e,{range:n[hx("0x27")](s,i)}):n.removeMarker(e),0))}function Tx(t){return function(t){let e=0,n=0;for(const o of cx(t))e=(e<<5)-e+o,e&=e,[e,n]=[n,e];return dx(e)+dx(n)}(t)}function Cx(t){const e=t[hx("0xa3")][hx("0x94")];return e&&e.is(hx("0x114"))}function kx(t,e){const n=e[hx("0x85")].isObject(t)||e[hx("0x85")][hx("0xd6")](t);return e[hx("0x27")](e[hx("0xf6")](t,hx("0x58")),n?e[hx("0x111")](t):e[hx("0xf6")](t,"end"))}function vx(t,e,n){const o=t[hx("0x36")](),r=e[hx("0x36")]();if(o[hx("0x50")][hx("0x8a")](r[hx("0xa3")]))return!0;if(t[hx("0x10e")]!=e[hx("0x10e")])return!1;if(!o[hx("0x50")][hx("0x10")](r[hx("0xa3")]))return!1;const s=n[hx("0x27")](o[hx("0x50")],r[hx("0xa3")])[hx("0xb5")]();for(const t of s)if([hx("0x5f"),"elementEnd"][hx("0xf7")](t.type)&&n[hx("0x85")].isLimit(t.item))return!1;return!0}var Ax,Rx,Sx=["unbind","destroy","bind","model","discardSuggestion","listenTo","acceptSuggestion","_discardCommand","isEnabled","execute","_acceptCommand","view","commentThreadController"];Ax=Sx,Rx=194,function(t){for(;--t;)Ax.push(Ax.shift())}(++Rx);var Ix=function(t,e){return Sx[t-=0]};class wx{constructor(t,e,n,o,r){this[Ix("0x4")]=t,this[Ix("0xc")]=e,this[Ix("0x0")]=r,this[Ix("0xb")]=n,this[Ix("0x8")]=o,this[Ix("0xc")][Ix("0x3")](Ix("0x9")).to(this[Ix("0xb")]),this[Ix("0x6")](e,"acceptSuggestion",(()=>this[Ix("0x7")]())),this.listenTo(e,Ix("0x5"),(()=>this[Ix("0x5")]()))}[Ix("0x7")](){this[Ix("0xb")][Ix("0xa")](this[Ix("0x4")].id)}discardSuggestion(){this[Ix("0x8")][Ix("0xa")](this[Ix("0x4")].id)}[Ix("0x2")](){this.view[Ix("0x1")](Ix("0x9")),this.stopListening(),this[Ix("0x0")][Ix("0x2")]()}}(0,e.mix)(wx,e.ObservableMixin);const Mx=["_createCommentThreadInputView","commentInputView","_config","descriptionParts","updateComment","_model","length","isActive","hasDirtyComment","set","fire","editor","addComment","commentThread","element","commentsListView","bind","destroy","value","showInput","isDirty","focus","delegate","submit","locale","_localUser","isReadOnly","_createCommentViews","setData","createdAt","commentThreadInputView","disabledSubmit","assign"];var Nx,Lx;Nx=Mx,Lx=409,function(t){for(;--t;)Nx.push(Nx.shift())}(++Lx);const Ox=function(t,e){return Mx[t-=0]};class Fx extends r.View{constructor(t,e,n,o){super(t),this[Ox("0x2")]=null,this[Ox("0x11")]=null,this[Ox("0x1d")](Ox("0x1b"),!1),this[Ox("0x1d")](Ox("0x10"),e.createdAt),this.bind(Ox("0x10")).to(e),this[Ox("0x1d")](Ox("0x17"),[]),this[Ox("0x1d")](Ox("0x7"),!1),this.set("isEnabled",!1),this._model=e,this[Ox("0xc")]=n,this[Ox("0x16")]=o,o.disableComments?this.set(Ox("0x1a"),1):this[Ox("0xe")]()}[Ox("0x8")](){this[Ox("0x1")].focus()}[Ox("0x4")](){this[Ox("0x7")]=!1,this[Ox("0x2")]&&this[Ox("0x2")][Ox("0x4")](),this[Ox("0x11")]&&this.commentThreadInputView.destroy(),super.destroy()}[Ox("0xe")](){const{CommentsListView:t}=this[Ox("0x16")];this[Ox("0x2")]=new t(this.locale,this._model[Ox("0x0")],Object[Ox("0x13")]({CommentView:this[Ox("0x16")].CommentView},this._config)),this.commentsListView.delegate("removeComment").to(this),this.commentsListView[Ox("0x9")](Ox("0x18")).to(this),this[Ox("0x2")].bind(Ox("0x1b")).to(this),this[Ox("0x1d")](Ox("0x1a"),this[Ox("0x2")][Ox("0x1a")]+1),this.bind(Ox("0x1a")).to(this[Ox("0x2")],"length",(t=>t+1)),this.commentThreadInputView=this._createCommentThreadInputView(),this.on("removeComment",(()=>this[Ox("0x8")]())),this[Ox("0x3")](Ox("0x7")).to(this[Ox("0x2")],Ox("0x1c"),this[Ox("0x11")].commentInputView,"value",((t,e)=>t||!!e))}[Ox("0x14")](){const{CommentThreadInputView:t}=this[Ox("0x16")],e=new t(this[Ox("0xb")],this[Ox("0xc")],this[Ox("0x16")].editorConfig),n=e[Ox("0x15")];return e[Ox("0x3")](Ox("0x6")).to(this,Ox("0x1b"),this[Ox("0x19")].commentThread,"isReadOnly",n,Ox("0x5"),((t,e,n)=>!!n||t&&!e)),n.on(Ox("0xa"),((t,e)=>{this[Ox("0x1e")](Ox("0x20"),e),n[Ox("0x1f")][Ox("0xf")]("")})),n.on("cancel",(()=>this[Ox("0x8")]())),n[Ox("0x3")](Ox("0x12")).to(this[Ox("0x19")][Ox("0x0")],Ox("0xd")),e}}const Px=["acceptButton","element","ck-suggestion__info-name","isEnabled","ck-suggestion-","discardButton","set","_createButton",'<span class="ck-suggestion-color" style="background-color: ',"Accept suggestion","description","join","ck-annotation__info-time","type","innerText",'<span class="ck-suggestion-type">',"time","ck-suggestion--accept","getTemplate","isActive","innerHTML","title","ck-annotation__info-name","ck-suggestion__main","Discard suggestion","ck-annotation__info","push","commentsListView","extendTemplate","bind","</span>","value","span","commentThreadInputView","fire","ck-suggestion__actions","ck-annotation__actions","_descriptionElement","ck-suggestion--disabled-comments","check","userView","createElement","cancel","disableComments","author","color","setTemplate","ck-suggestion-wrapper--active",'"></span>',"ck-suggestion__info","formatDateTime","execute","ck-suggestion--discard","change:description","querySelector","div","map","render","content","</p>","commentThread","_model","ck-annotation","<p>","ck-suggestion-wrapper","ck-comment__info-time","children","ck-annotation__user","ck-annotation__content-wrapper","split","ck-suggestion__user","descriptionParts"];var Dx,jx;Dx=Px,jx=195,function(t){for(;--t;)Dx.push(Dx.shift())}(++jx);const Bx=function(t,e){return Px[t-=0]};class Ux extends Fx{constructor(e,n,o,r){super(e,n,o,r),this[Bx("0x1b")](Bx("0x22"),""),this[Bx("0x32")]("type").to(this,Bx("0x14"),(t=>t&&t[0]?t[0][Bx("0x22")]:"")),this[Bx("0x32")](Bx("0x1f")).to(this,"descriptionParts",this,Bx("0x28"),((t,e)=>{let n="";for(const e of t)n+=Bx("0xc")+Hx(e[Bx("0x7")],e[Bx("0x42")])+Bx("0x8");return e?n:(0,s.trimHtml)(n,{limit:140})})),this[Bx("0x3a")]=null,this.acceptButton=this[Bx("0x1c")](kr(e,Bx("0x1e")),t.icons[Bx("0x3c")],Bx("0x26"),"acceptSuggestion"),this[Bx("0x1a")]=this[Bx("0x1c")](kr(e,Bx("0x2d")),t.icons[Bx("0x3f")],Bx("0x1"),"discardSuggestion"),this[Bx("0x3d")]=new s.UserView(e,this[Bx("0xa")][Bx("0x41")]),this[Bx("0x3d")][Bx("0x31")]({attributes:{class:[Bx("0x13"),Bx("0x10")]}}),this[Bx("0x43")](this[Bx("0x27")]())}getTemplate(){const t=this.bindTemplate,e={tag:Bx("0x4"),attributes:{class:[Bx("0xd"),t.if(Bx("0x28"),Bx("0x44")),t.to("type",(t=>Bx("0x19")+t)),this._config[Bx("0x40")]&&Bx("0x3b")],"data-suggestion-id":this[Bx("0xa")].id,"data-thread-id":this[Bx("0xa")][Bx("0x9")].id,"data-author-id":this[Bx("0xa")][Bx("0x41")].id,tabindex:-1},children:[{tag:Bx("0x4"),attributes:{class:["ck-suggestion",Bx("0xb")]},children:[this[Bx("0x3d")],{tag:Bx("0x4"),attributes:{class:[Bx("0x2c"),"ck-annotation__main"]},children:[{tag:"div",attributes:{class:[Bx("0x46"),Bx("0x2e")]},children:[{tag:Bx("0x35"),children:[{text:this[Bx("0x3d")].name}],attributes:{class:[Bx("0x17"),Bx("0x2b")]}},{tag:Bx("0x25"),attributes:{datetime:t.to("createdAt"),class:[Bx("0xe"),Bx("0x21")]},children:[{text:t.to("createdAt",(t=>this._config[Bx("0x47")](t)))}]}]},{tag:Bx("0x4"),attributes:{class:[Bx("0x38"),Bx("0x39")]},children:[this[Bx("0x15")],this[Bx("0x1a")]]},{tag:"div",attributes:{class:[Bx("0x11")]}}]}]}]};return this[Bx("0x30")]&&this[Bx("0x36")]&&e[Bx("0xf")][Bx("0x2f")](this[Bx("0x30")],this[Bx("0x36")]),e}[Bx("0x6")](){super[Bx("0x6")](),this[Bx("0x3a")]=this[Bx("0x16")][Bx("0x3")](".ck-annotation__content-wrapper"),this[Bx("0x3a")][Bx("0x29")]=this[Bx("0x1f")],this.on(Bx("0x2"),((t,e,n)=>{this[Bx("0x3a")][Bx("0x29")]=n}))}[Bx("0x1c")](t,e,n,o){const s=new r.ButtonView(this.locale);return s[Bx("0x1b")]({label:t,icon:e,tooltip:!0}),s.extendTemplate({attributes:{class:n}}),s.on(Bx("0x0"),(()=>{this[Bx("0x37")](o,this[Bx("0xa")].id)})),s[Bx("0x32")](Bx("0x18")).to(this),s}}function Hx(t,e){let n="";return n+=t[Bx("0x12")]("*")[Bx("0x5")](((t,e)=>e%2!=0?Bx("0x24")+Gx(t)+Bx("0x33"):Gx(t)))[Bx("0x20")](""),e&&(n+=Bx("0x1d")+e[Bx("0x34")]+'" title="'+e[Bx("0x2a")]+Bx("0x45")),n}function Gx(t){const e=document[Bx("0x3e")](Bx("0x35"));return e[Bx("0x23")]=t,e[Bx("0x29")]}var Vx=n(596),zx=n.n(Vx);const Wx=["_createUIButton","change:previous","getRange","_disableComments","_viewToController","discardSuggestion","comments.maxThreadTotalWeight","reduce","actionView","PENDING_ACTION_SUGGESTION","PendingActions","isMultiRange","toMany","values","buttonView","head","getSuggestion","commands","source","destroy","Discard all suggestions","config","getAllAdjacentSuggestions","locale","createCommentThreadController","push","trackChanges.disableComments","_debouncedHandlers","getContainedElement","get","_updateController","requires","commentThread","unbind","change:isDirty","define","plugins","_destroyController","TrackChangesEditing","comments","filter","acceptAllSuggestions","some","from","_suggestionToController","suggestionUnloaded","set","acceptSuggestion","hasSuggestion","arrowView","suggestion-","discardSelectedSuggestions","remove","length","Accept all selected suggestions","descriptionParts","model","Annotations","_descriptionFactory","map","SuggestionThreadView","type","CommentView","change:activeAnnotations","getJoined","componentFactory","view","addSourceCollector","CommentsRepository","getByInnerView","isInContent","comments.maxCommentCharsWhenCollapsed","lowest","clear","acceptSelectedSuggestions","bind","isOn","TrackChangesUI","getRanges","cancel","comments.maxCommentsWhenCollapsed","switchbutton","keys","createAnnotation","_initializeController","separator","add","refreshSelectedViews","trackChanges.SuggestionThreadView","value","editing","listenTo","Discard all selected suggestions","isEnabled","trackChanges","Track changes","editor","pluginName","toViewElement","focus","EditorAnnotations","suggestionLoaded","delete","button","has","activeMarkers","commandName","previous"];var Kx,$x;Kx=Wx,$x=352,function(t){for(;--t;)Kx.push(Kx.shift())}(++$x);const qx=function(t,e){return Wx[t-=0]};class Xx extends t.Plugin{static get[qx("0x3")](){return[px,s.Users,qx("0x28"),"Annotations",qx("0x48")]}static get[qx("0x45")](){return qx("0x31")}constructor(t){super(t),this._suggestionToController=new Map,this[qx("0x54")]=new Map,this._debouncedHandlers=new Map;const e=this.editor.config;e.define(qx("0x3c"),Ux),e[qx("0x7")](qx("0x6a"),!1),this[qx("0x53")]=e[qx("0x1")]("trackChanges.disableComments")}init(){const t=this[qx("0x44")],e=t[qx("0x8")][qx("0x1")](px),n=t[qx("0x8")][qx("0x1")]("Annotations"),o=t[qx("0x8")][qx("0x1")]("EditorAnnotations"),r=t[qx("0x8")][qx("0x1")](qx("0x28"));t.ui[qx("0x25")][qx("0x3a")](qx("0x42"),(t=>this[qx("0x50")](t))),o[qx("0x27")]((()=>{const t=[];for(const[e,n]of Array[qx("0xf")](this[qx("0x10")])){const o=e[qx("0x66")](),r=[];for(const t of o){if(!t[qx("0x2a")])continue;if(t[qx("0x5b")]){r.push(...t[qx("0x32")]());continue}const e=t.getFirstRange();if(r.length>0){const t=r[0][qx("0x24")](e);if(t){r[0]=t;continue}}r.push(e)}t.push([n.view,r])}return t})),this[qx("0x3f")](e,qx("0x49"),((t,e)=>{let n=!1;const r=O((t=>{n||t?n&&t&&(this._destroyController(e),o[qx("0x3b")](),n=!1):(this[qx("0x38")](e),o[qx("0x3b")](),n=!0)}),10);this[qx("0x6b")][qx("0x12")](e,r),this[qx("0x3f")](e,qx("0x51"),((t,n,o,s)=>{e[qx("0x2a")]&&(null==o?(this[qx("0x2")](s.head),r(!1)):(this[qx("0x2")](o[qx("0x5f")]),r(!0)))})),null===e[qx("0x4f")]?r(!1):this[qx("0x2")](e[qx("0x5f")])})),this[qx("0x3f")](e,qx("0x11"),((t,e,n)=>{this.stopListening(e,qx("0x51")),this._debouncedHandlers[qx("0x1")](e).cancel(),this._debouncedHandlers.delete(e);const o=n?n[qx("0x5f")]:e,r=this[qx("0x10")][qx("0x1")](o);null!==n&&this[qx("0x2")](o),null===n&&r&&this._destroyController(e)})),this[qx("0x3f")](e,"suggestionChanged",((t,e)=>{this[qx("0x2")](e)})),this.listenTo(n,qx("0x23"),((t,n,o)=>{const r=Array[qx("0xf")](o,(t=>t.innerView))[qx("0xc")]((t=>this[qx("0x54")][qx("0x4c")](t))),s=[];for(const t of r){const e=this[qx("0x54")][qx("0x1")](t)[qx("0x1c")][qx("0x66")]();s[qx("0x69")](...e[qx("0x57")](((t,e)=>[...t,...e.getMarkerNames()]),[]))}e[qx("0x4d")]=s})),this.listenTo(r,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[qx("0x14")](n))return;const r=e[qx("0x60")](n);this[qx("0x10")].get(r)[qx("0x26")][qx("0x47")]()}),{priority:qx("0x2c")})}[qx("0x50")](t){const n=(0,r.createDropdown)(t,r.SplitButtonView),o=this.editor[qx("0x61")][qx("0x1")](qx("0x42")),s=kr(t,qx("0x43"));n[qx("0x5e")][qx("0x12")]({tooltip:s,label:s,icon:zx()}),n[qx("0x5e")][qx("0x2f")](qx("0x30")).to(o,qx("0x3d")),n[qx("0x5e")].on("execute",(()=>o.execute()));const i=new e.Collection,a=[{type:qx("0x35"),model:{withText:!0,label:s,commandName:"trackChanges"}},{type:qx("0x39")},{type:qx("0x4b"),model:{withText:!0,label:kr(t,"Accept all suggestions"),commandName:qx("0xd")}},{type:qx("0x4b"),model:{withText:!0,label:kr(t,qx("0x1a")),commandName:qx("0x2e")}},{type:qx("0x4b"),model:{withText:!0,label:kr(t,qx("0x64")),commandName:"discardAllSuggestions"}},{type:qx("0x4b"),model:{withText:!0,label:kr(t,qx("0x40")),commandName:qx("0x17")}}];for(const t of a){const e={type:t.type};if(t[qx("0x1c")]){const n=new r.Model(t[qx("0x1c")]),o=this[qx("0x44")].commands[qx("0x1")](n[qx("0x4e")]);n.bind("isOn",qx("0x41")).to(o,qx("0x3d"),qx("0x41")),e.model=n}i[qx("0x3a")](e)}(0,r.addListToDropdown)(n,i);const x=a[qx("0xc")]((t=>null!=t[qx("0x1c")]))[qx("0x1f")]((t=>this[qx("0x44")][qx("0x61")][qx("0x1")](t[qx("0x1c")][qx("0x4e")])));return n[qx("0x5e")].actionView[qx("0x5")](qx("0x41")),n[qx("0x5e")][qx("0x15")][qx("0x5")](qx("0x41")),n[qx("0x5e")][qx("0x58")].bind(qx("0x41")).to(o,"isEnabled"),n.buttonView.arrowView[qx("0x2f")](qx("0x41"))[qx("0x5c")](x,qx("0x41"),((...t)=>t[qx("0xe")]((t=>t)))),n.on("execute",(t=>this[qx("0x44")].execute(t[qx("0x62")][qx("0x4e")]))),n}_initializeController(t){const e=this[qx("0x44")],n=e[qx("0x65")],o=e.plugins[qx("0x1")](qx("0x1d")),r=e[qx("0x8")][qx("0x1")](qx("0x28")),i=t[qx("0x66")]().filter((t=>t.isInContent)),a=e.plugins[qx("0x1")](s.Users).me,x=e[qx("0x61")][qx("0x1")](qx("0x13")),c=e.commands[qx("0x1")](qx("0x55")),l=n[qx("0x1")](qx("0x42"))[qx("0x20")],{CommentsListView:u,CommentThreadInputView:d}=e[qx("0x8")][qx("0x1")]("CommentsUI"),g=new l(e[qx("0x67")],t,a,{disableComments:this[qx("0x53")],editorConfig:n[qx("0x1")]("comments.editorConfig"),maxCommentsWhenCollapsed:n[qx("0x1")](qx("0x34")),maxThreadTotalWeight:n[qx("0x1")](qx("0x56")),maxCommentCharsWhenCollapsed:n[qx("0x1")](qx("0x2b")),formatDateTime:(0,s.getDateTimeFormatter)(n.get(qx("0x67"))),CommentView:n.get(qx("0xb"))[qx("0x22")],CommentsListView:u,CommentThreadInputView:d}),f=r[qx("0x68")](t[qx("0x4")],g),m=new wx(t,g,x,c,f);g[qx("0x1b")]=e[qx("0x8")].get(qx("0xa"))[qx("0x1e")].getDescriptions(i),this._suggestionToController[qx("0x12")](t,m),this._viewToController[qx("0x12")](g,m);const h=o.createAnnotationView(this[qx("0x44")][qx("0x67")],g);h[qx("0x2f")]("isDirty").to(g,"isDirty"),h.bind(qx("0x19")).to(g),h[qx("0x2f")](qx("0x21")).to(g,qx("0x21"),(t=>"suggestion-"+t));const p=o[qx("0x37")]({view:h,target:()=>{const t=i[0].getFirstMarker();if(!t)return null;const n=t[qx("0x52")]()[qx("0x0")]();return n&&!e[qx("0x3e")].mapper[qx("0x46")](n)?null:(0,s.getMarkerDomElement)(e.editing,t)||null},type:()=>qx("0x16")+m.view[qx("0x21")]});o[qx("0x3a")](p);const b=e.plugins[qx("0x1")](qx("0x5a"));let E;g.on(qx("0x6"),((t,e,n)=>{n?E=b[qx("0x3a")](kr(this[qx("0x44")][qx("0x67")],qx("0x59"))):(b[qx("0x18")](E),E=null)}))}_destroyController(t){const e=this.editor[qx("0x8")].get("Annotations"),n=this[qx("0x10")][qx("0x1")](t),o=n.view,r=e[qx("0x29")](o);r&&e[qx("0x18")](r),this[qx("0x10")][qx("0x4a")](t),this[qx("0x54")].delete(o),n[qx("0x63")](),o[qx("0x63")]()}[qx("0x2")](t){if(!t[qx("0x2a")]||!this[qx("0x10")][qx("0x4c")](t))return;const e=this[qx("0x44")][qx("0x8")].get(qx("0xa")),n=this[qx("0x10")][qx("0x1")](t),o=t[qx("0x66")]();n[qx("0x26")][qx("0x1b")]=e[qx("0x1e")].getDescriptions(o)}[qx("0x63")](){super[qx("0x63")]();for(const t of this[qx("0x10")][qx("0x36")]())this[qx("0x9")](t);for(const t of this[qx("0x6b")][qx("0x5d")]())t[qx("0x33")]();this[qx("0x6b")][qx("0x2d")]()}}var Jx,Qx,Yx=["addSuggestion","get","getSuggestion","editor","plugins","getSuggestions","requires","pluginName","TrackChanges","Comments","addSuggestionData","adapter"];Jx=Yx,Qx=170,function(t){for(;--t;)Jx.push(Jx.shift())}(++Qx);var Zx=function(t,e){return Yx[t-=0]};class tc extends t.Plugin{static get[Zx("0x4")](){return[px,Xx,Zx("0x7")]}static get[Zx("0x5")](){return Zx("0x6")}set[Zx("0x9")](t){this.editor[Zx("0x2")][Zx("0xb")](px)[Zx("0x9")]=t}get adapter(){return this[Zx("0x1")][Zx("0x2")][Zx("0xb")](px)[Zx("0x9")]}[Zx("0xa")](t){return this.editor[Zx("0x2")][Zx("0xb")](px)[Zx("0x8")](t)}[Zx("0x3")](t){return this[Zx("0x1")][Zx("0x2")][Zx("0xb")](px)[Zx("0x3")](t)}[Zx("0x0")](t){return this.editor[Zx("0x2")].get(px)[Zx("0x0")](t)}}const ec=["name","discardAllSuggestions","execute","push","addSuggestionData","editorCreator","Users","data","getUser","reduce","getDataWithDiscardedSuggestions","builtinPlugins","trackChangesData","init","useAnonymousUser","pluginName","Autosave","_adapter","acceptAllSuggestions","define","includes","plugins","initialData","RealTimeCollaborativeComments","editor","get","getSuggestions","names","constructor","users","getRootNames","track-changes-data-invalid-editor-creator","TrackChangesEditing","every","config","toolbar","function","trackChangesData.editorCreator","has","TrackChangesDataGetter","add","destroy","create","RealTimeCollaborativeEditing","CommentsRepository","string","set","document","TrackChangesData","from","requires","filter","concat"];var nc,oc;nc=ec,oc=494,function(t){for(;--t;)nc.push(nc.shift())}(++oc);const rc=function(t,e){return ec[t-=0]},sc=[rc("0x5"),"context",rc("0x12")],ic=[rc("0x1a"),rc("0x6"),"RealTimeCollaborativeTrackChanges",rc("0x34")];class ac extends t.Plugin{static get[rc("0x21")](){return[px]}static get[rc("0x33")](){return rc("0x1f")}[rc("0x31")](){const t=this[rc("0x7")];if(t[rc("0x11")][rc("0x2")](rc("0x14"),(e=>t[rc("0xb")][rc("0x19")]("",e))),rc("0x13")!=typeof t[rc("0x11")].get(rc("0x30"))[rc("0x29")])throw new e.CKEditorError(rc("0xe"))}getDataWithAcceptedSuggestions(t){return cc(this[rc("0x7")],!0,t)}[rc("0x2e")](t){return cc(this[rc("0x7")],!1,t)}}class xc extends t.Plugin{static get pluginName(){return rc("0x16")}[rc("0x31")](){this.result="end",this[rc("0x7")][rc("0x4")].get(rc("0x1b"))[rc("0x0")]={getCommentThread:()=>new Promise((()=>{}))},this[rc("0x7")][rc("0x4")].get(rc("0xf"))[rc("0x0")]=null}}async function cc(t,e,n){const o=function(t){const e={};for(const n of t.config[rc("0xa")]())sc[rc("0x3")](n)||(e[n]=t[rc("0x11")].get(n));const n=t[rc("0xb")][rc("0x2f")]||[],o=e.extraPlugins||[];delete e.extraPlugins;const r=n[rc("0x23")](e[rc("0x4")])[rc("0x23")](o).map((t=>rc("0x1c")==typeof t?n.find((e=>e.pluginName==t)):t)),s=Array[rc("0x20")](new Set(r));return e[rc("0x4")]=s[rc("0x22")]((t=>lc(t,new Set))),e[rc("0x4")][rc("0x27")](xc),e.plugins[rc("0x27")](px),e}(t),r=document.createDocumentFragment(),s=t[rc("0x11")][rc("0x8")](rc("0x30"))[rc("0x29")],i=await s(o,(()=>function(t){const e=document.createElement("div");return t.appendChild(e),e}(r)));!function(t,e){const n=t.model[rc("0x1e")][rc("0xd")]()[rc("0x2d")](((e,n)=>(e[n]=t.data.get({rootName:n}),e)),{}),o=t[rc("0x4")].get(rc("0x2a"))[rc("0xc")].map((t=>({id:t.id}))),r=t[rc("0x4")].get(rc("0xf"))[rc("0x9")]({skipNotAttached:!0,toJSON:!0}),s=e[rc("0x4")][rc("0x8")]("Users"),i=e[rc("0x4")][rc("0x8")](rc("0xf"));for(const t of o)s[rc("0x2c")](t.id)||s.addUser(t);s.me||s[rc("0x32")]();for(const t of r)i[rc("0x28")](t);e[rc("0x2b")][rc("0x1d")](n)}(t,i),i[rc("0x26")](rc(e?"0x1":"0x25"));const a=i[rc("0x2b")][rc("0x8")](n);return await i[rc("0x18")](),a}function lc(t,e){if(e[rc("0x15")](t))return!0;e[rc("0x17")](t);const n=rc("0x13")==typeof t?t.pluginName||t[rc("0x24")]:t;return(!n||!ic[rc("0x3")](n))&&(!t[rc("0x21")]||t.requires[rc("0x10")]((t=>lc(t,e))))}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|
|
5
|
+
*/(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var r=e[o];if(void 0!==r)return r.exports;var s=e[o]={exports:{}};return t[o](s,s.exports,n),s.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>Ua,TrackChanges:()=>oc,TrackChangesData:()=>lc});var t=n(704),e=n(209),r=n(273),s=n(417);const i=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const x="object"==typeof global&&global&&global.Object===Object&&global;var a="object"==typeof self&&self&&self.Object===Object&&self;const c=x||a||Function("return this")();const l=function(){return c.Date.now()};var u=/\s/;const d=function(t){for(var e=t.length;e--&&u.test(t.charAt(e)););return e};var f=/^\s+/;const g=function(t){return t?t.slice(0,d(t)+1).replace(f,""):t};const m=c.Symbol;var h=Object.prototype,p=h.hasOwnProperty,b=h.toString,E=m?m.toStringTag:void 0;const _=function(t){var e=p.call(t,E),n=t[E];try{t[E]=void 0;var o=!0}catch(t){}var r=b.call(t);return o&&(e?t[E]=n:delete t[E]),r};var y=Object.prototype.toString;const T=function(t){return y.call(t)};var C=m?m.toStringTag:void 0;const k=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":C&&C in Object(t)?_(t):T(t)};const v=function(t){return null!=t&&"object"==typeof t};const A=function(t){return"symbol"==typeof t||v(t)&&"[object Symbol]"==k(t)};var R=/^[-+]0x[0-9a-f]+$/i,I=/^0b[01]+$/i,S=/^0o[0-7]+$/i,w=parseInt;const M=function(t){if("number"==typeof t)return t;if(A(t))return NaN;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=g(t);var n=I.test(t);return n||S.test(t)?w(t.slice(2),n?2:8):R.test(t)?NaN:+t};var N=Math.max,L=Math.min;const O=function(t,e,n){var o,r,s,x,a,c,u=0,d=!1,f=!1,g=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function m(e){var n=o,s=r;return o=r=void 0,u=e,x=t.apply(s,n)}function h(t){return u=t,a=setTimeout(b,e),d?m(t):x}function p(t){var n=t-c;return void 0===c||n>=e||n<0||f&&t-u>=s}function b(){var t=l();if(p(t))return E(t);a=setTimeout(b,function(t){var n=e-(t-c);return f?L(n,s-(t-u)):n}(t))}function E(t){return a=void 0,g&&o?m(t):(o=r=void 0,x)}function _(){var t=l(),n=p(t);if(o=arguments,r=this,c=t,n){if(void 0===a)return h(c);if(f)return clearTimeout(a),a=setTimeout(b,e),m(c)}return void 0===a&&(a=setTimeout(b,e)),x}return e=M(e)||0,i(n)&&(d=!!n.leading,s=(f="maxWait"in n)?N(M(n.maxWait)||0,e):s,g="trailing"in n?!!n.trailing:g),_.cancel=function(){void 0!==a&&clearTimeout(a),u=0,o=c=r=a=void 0},_.flush=function(){return void 0===a?x:E(l())},_};var F=n(492),P=n(995);const D=["refresh","_disableUnsupportedCommands","isEnabled","affectsData","commands","has","editor","TrackChangesCommand","value","_enabledCommands","execute","_enableCommands","clearForceDisabled"];var B,j;B=D,j=316,function(t){for(;--t;)B.push(B.shift())}(++j);const U=function(t,e){return D[t-=0]};class H extends t.Command{constructor(t,e){super(t),this[U("0x5")]=e,this[U("0x4")]=!1,this[U("0x9")]()}[U("0x9")](){this[U("0xb")]=!0}[U("0x6")](){this[U("0x4")]=!this[U("0x4")],this.value?this[U("0xa")]():this._enableCommands()}[U("0xa")](){for(const t of this[U("0x2")][U("0x0")][U("0x0")]())t[U("0xc")]&&!this[U("0x5")][U("0x1")](t)&&t.forceDisabled(U("0x3"))}[U("0x7")](){for(const t of this[U("0x2")][U("0x0")][U("0x0")]())t[U("0xc")]&&!this[U("0x5")].has(t)&&t[U("0x8")](U("0x3"))}}const G=["track-changes-accept-suggestion-not-found","_suggestions","TrackChangesEditing","editor","acceptSuggestion","isEnabled","get","refresh"];var V,z;V=G,z=116,function(t){for(;--t;)V.push(V.shift())}(++z);const W=function(t,e){return G[t-=0]};class K extends t.Command{constructor(t,e){super(t),this[W("0x5")]=e,this[W("0x3")]()}[W("0x3")](){this[W("0x1")]=!0}execute(t){const n=this[W("0x5")][W("0x2")](t);if(!n)throw new e.CKEditorError(W("0x4"),this);this[W("0x7")].plugins[W("0x2")](W("0x6"))[W("0x0")](n)}}const q=["TrackChangesEditing","refresh","isEnabled","_suggestions","execute","get","track-changes-discard-suggestion-not-found","editor","discardSuggestion","plugins"];var $,X;$=q,X=396,function(t){for(;--t;)$.push($.shift())}(++X);const J=function(t,e){return q[t-=0]};class Q extends t.Command{constructor(t,e){super(t),this[J("0x7")]=e,this[J("0x5")]()}refresh(){this[J("0x6")]=!0}[J("0x8")](t){const n=this[J("0x7")][J("0x9")](t);if(!n)throw new e.CKEditorError(J("0x0"),this);this[J("0x1")][J("0x3")][J("0x9")](J("0x4"))[J("0x2")](n)}}var Y,Z,tt=["type","sort","deletion"];Y=tt,Z=232,function(t){for(;--t;)Y.push(Y.shift())}(++Z);var et=function(t,e){return tt[t-=0]};function nt(t){return t[et("0x0")](((t,e)=>"deletion"==t[et("0x2")]&&et("0x1")!=e[et("0x2")]?-1:et("0x1")!=t.type&&"deletion"==e[et("0x2")]?1:0))}const ot=["some","isInContent","_acceptSuggestionCommand","from","isEnabled","editor","execute","model","_suggestions","values","refresh"];var rt,st;rt=ot,st=349,function(t){for(;--t;)rt.push(rt.shift())}(++st);const it=function(t,e){return ot[t-=0]};class xt extends t.Command{constructor(t,e,n){super(t),this[it("0x5")]=e,this[it("0x0")]=n,this[it("0x2")]()}refresh(){const t=this[it("0x5")];this[it("0x7")]=t.isEnabled&&Array.from(this._suggestions[it("0x1")]())[it("0x3")]((t=>t[it("0x4")]))}[it("0x9")](){this[it("0x8")][it("0xa")].change((()=>{const t=nt(Array[it("0x6")](this[it("0x0")].values()));for(const e of t)e[it("0x4")]&&this[it("0x5")].execute(e.id)}))}}const at=["from","isCollapsed","isIntersecting","start","isTouching","getMarkers","getRange","add","isMultiRange"];var ct,lt;ct=at,lt=260,function(t){for(;--t;)ct.push(ct.shift())}(++lt);const ut=function(t,e){return at[t-=0]};function dt(t,e){const n=Array[ut("0x1")](t.getRanges()),o=new Set;for(const r of e)if(r.isInContent)for(const e of n)for(const n of r[ut("0x6")]()){const s=n[ut("0x7")]();(e[ut("0x3")](s)||t[ut("0x2")]&&!r[ut("0x0")]&&r.next&&s.end[ut("0x5")](e[ut("0x4")]))&&o[ut("0x8")](r)}return o}const ft=["execute","editor","from","selection","_selectedSuggestions","refresh","change","isEnabled","_acceptSuggestionCommand","model"];var gt,mt;gt=ft,mt=114,function(t){for(;--t;)gt.push(gt.shift())}(++mt);const ht=function(t,e){return ft[t-=0]};class pt extends t.Command{constructor(t,e,n){super(t),this[ht("0x4")]=e,this._suggestions=n,this[ht("0x0")]=new Set,this[ht("0x1")]()}[ht("0x1")](){const t=this[ht("0x4")],e=this[ht("0x7")][ht("0x5")].document[ht("0x9")],n=Array[ht("0x8")](this._suggestions.values());this[ht("0x0")]=dt(e,n),this[ht("0x3")]=t[ht("0x3")]&&!!this[ht("0x0")].size}[ht("0x6")](){this[ht("0x7")].model[ht("0x2")]((()=>{const t=nt(Array[ht("0x8")](this[ht("0x0")]));for(const e of t)this[ht("0x4")].execute(e.id)}))}}const bt=["_suggestions","model","isEnabled","from","change","some","execute","refresh","values","isInContent","editor","_discardSuggestionCommand"];var Et,_t;Et=bt,_t=395,function(t){for(;--t;)Et.push(Et.shift())}(++_t);const yt=function(t,e){return bt[t-=0]};class Tt extends t.Command{constructor(t,e,n){super(t),this[yt("0x0")]=e,this[yt("0x1")]=n,this.refresh()}[yt("0x8")](){const t=this[yt("0x0")];this[yt("0x3")]=t[yt("0x3")]&&Array[yt("0x4")](this._suggestions[yt("0x9")]())[yt("0x6")]((t=>t[yt("0xa")]))}[yt("0x7")](){this[yt("0xb")][yt("0x2")][yt("0x5")]((()=>{for(const t of this[yt("0x1")][yt("0x9")]())t.isInContent&&this._discardSuggestionCommand[yt("0x7")](t.id)}))}}const Ct=["_suggestions","_discardSuggestionCommand","editor","selection","_selectedSuggestions","from","refresh","model","execute","change","values","isEnabled"];var kt,vt;kt=Ct,vt=177,function(t){for(;--t;)kt.push(kt.shift())}(++vt);const At=function(t,e){return Ct[t-=0]};class Rt extends t.Command{constructor(t,e,n){super(t),this[At("0x4")]=e,this[At("0x3")]=n,this[At("0x7")]=new Set,this[At("0x9")]()}[At("0x9")](){const t=this[At("0x4")],e=this[At("0x5")][At("0xa")].document[At("0x6")],n=Array[At("0x8")](this[At("0x3")][At("0x1")]());this._selectedSuggestions=dt(e,n),this[At("0x2")]=t[At("0x2")]&&!!this[At("0x7")].size}[At("0xb")](){this[At("0x5")][At("0xa")][At("0x0")]((()=>{for(const t of this[At("0x7")])this._discardSuggestionCommand.execute(t.id)}))}}const It=function(){this.__data__=[],this.size=0};const St=function(t,e){return t===e||t!=t&&e!=e};const wt=function(t,e){for(var n=t.length;n--;)if(St(t[n][0],e))return n;return-1};var Mt=Array.prototype.splice;const Nt=function(t){var e=this.__data__,n=wt(e,t);return!(n<0)&&(n==e.length-1?e.pop():Mt.call(e,n,1),--this.size,!0)};const Lt=function(t){var e=this.__data__,n=wt(e,t);return n<0?void 0:e[n][1]};const Ot=function(t){return wt(this.__data__,t)>-1};const Ft=function(t,e){var n=this.__data__,o=wt(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function Pt(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])}}Pt.prototype.clear=It,Pt.prototype.delete=Nt,Pt.prototype.get=Lt,Pt.prototype.has=Ot,Pt.prototype.set=Ft;const Dt=Pt;const Bt=function(){this.__data__=new Dt,this.size=0};const jt=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Ut=function(t){return this.__data__.get(t)};const Ht=function(t){return this.__data__.has(t)};const Gt=function(t){if(!i(t))return!1;var e=k(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const Vt=c["__core-js_shared__"];var zt,Wt=(zt=/[^.]+$/.exec(Vt&&Vt.keys&&Vt.keys.IE_PROTO||""))?"Symbol(src)_1."+zt:"";const Kt=function(t){return!!Wt&&Wt in t};var qt=Function.prototype.toString;const $t=function(t){if(null!=t){try{return qt.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Xt=/^\[object .+?Constructor\]$/,Jt=Function.prototype,Qt=Object.prototype,Yt=Jt.toString,Zt=Qt.hasOwnProperty,te=RegExp("^"+Yt.call(Zt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const ee=function(t){return!(!i(t)||Kt(t))&&(Gt(t)?te:Xt).test($t(t))};const ne=function(t,e){return null==t?void 0:t[e]};const oe=function(t,e){var n=ne(t,e);return ee(n)?n:void 0};const re=oe(c,"Map");const se=oe(Object,"create");const ie=function(){this.__data__=se?se(null):{},this.size=0};const xe=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var ae=Object.prototype.hasOwnProperty;const ce=function(t){var e=this.__data__;if(se){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return ae.call(e,t)?e[t]:void 0};var le=Object.prototype.hasOwnProperty;const ue=function(t){var e=this.__data__;return se?void 0!==e[t]:le.call(e,t)};const de=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=se&&void 0===e?"__lodash_hash_undefined__":e,this};function fe(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])}}fe.prototype.clear=ie,fe.prototype.delete=xe,fe.prototype.get=ce,fe.prototype.has=ue,fe.prototype.set=de;const ge=fe;const me=function(){this.size=0,this.__data__={hash:new ge,map:new(re||Dt),string:new ge}};const he=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const pe=function(t,e){var n=t.__data__;return he(e)?n["string"==typeof e?"string":"hash"]:n.map};const be=function(t){var e=pe(this,t).delete(t);return this.size-=e?1:0,e};const Ee=function(t){return pe(this,t).get(t)};const _e=function(t){return pe(this,t).has(t)};const ye=function(t,e){var n=pe(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function Te(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])}}Te.prototype.clear=me,Te.prototype.delete=be,Te.prototype.get=Ee,Te.prototype.has=_e,Te.prototype.set=ye;const Ce=Te;const ke=function(t,e){var n=this.__data__;if(n instanceof Dt){var o=n.__data__;if(!re||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Ce(o)}return n.set(t,e),this.size=n.size,this};function ve(t){var e=this.__data__=new Dt(t);this.size=e.size}ve.prototype.clear=Bt,ve.prototype.delete=jt,ve.prototype.get=Ut,ve.prototype.has=Ht,ve.prototype.set=ke;const Ae=ve;const Re=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const Ie=function(){try{var t=oe(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const Se=function(t,e,n){"__proto__"==e&&Ie?Ie(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var we=Object.prototype.hasOwnProperty;const Me=function(t,e,n){var o=t[e];we.call(t,e)&&St(o,n)&&(void 0!==n||e in t)||Se(t,e,n)};const Ne=function(t,e,n,o){var r=!n;n||(n={});for(var s=-1,i=e.length;++s<i;){var x=e[s],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),r?Se(n,x,a):Me(n,x,a)}return n};const Le=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const Oe=function(t){return v(t)&&"[object Arguments]"==k(t)};var Fe=Object.prototype,Pe=Fe.hasOwnProperty,De=Fe.propertyIsEnumerable;const Be=Oe(function(){return arguments}())?Oe:function(t){return v(t)&&Pe.call(t,"callee")&&!De.call(t,"callee")};const je=Array.isArray;const Ue=function(){return!1};var He="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ge=He&&"object"==typeof module&&module&&!module.nodeType&&module,Ve=Ge&&Ge.exports===He?c.Buffer:void 0;const ze=(Ve?Ve.isBuffer:void 0)||Ue;var We=/^(?:0|[1-9]\d*)$/;const Ke=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&We.test(t))&&t>-1&&t%1==0&&t<e};const qe=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var $e={};$e["[object Float32Array]"]=$e["[object Float64Array]"]=$e["[object Int8Array]"]=$e["[object Int16Array]"]=$e["[object Int32Array]"]=$e["[object Uint8Array]"]=$e["[object Uint8ClampedArray]"]=$e["[object Uint16Array]"]=$e["[object Uint32Array]"]=!0,$e["[object Arguments]"]=$e["[object Array]"]=$e["[object ArrayBuffer]"]=$e["[object Boolean]"]=$e["[object DataView]"]=$e["[object Date]"]=$e["[object Error]"]=$e["[object Function]"]=$e["[object Map]"]=$e["[object Number]"]=$e["[object Object]"]=$e["[object RegExp]"]=$e["[object Set]"]=$e["[object String]"]=$e["[object WeakMap]"]=!1;const Xe=function(t){return v(t)&&qe(t.length)&&!!$e[k(t)]};const Je=function(t){return function(e){return t(e)}};var Qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ye=Qe&&"object"==typeof module&&module&&!module.nodeType&&module,Ze=Ye&&Ye.exports===Qe&&x.process;const tn=function(){try{var t=Ye&&Ye.require&&Ye.require("util").types;return t||Ze&&Ze.binding&&Ze.binding("util")}catch(t){}}();var en=tn&&tn.isTypedArray;const nn=en?Je(en):Xe;var on=Object.prototype.hasOwnProperty;const rn=function(t,e){var n=je(t),o=!n&&Be(t),r=!n&&!o&&ze(t),s=!n&&!o&&!r&&nn(t),i=n||o||r||s,x=i?Le(t.length,String):[],a=x.length;for(var c in t)!e&&!on.call(t,c)||i&&("length"==c||r&&("offset"==c||"parent"==c)||s&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Ke(c,a))||x.push(c);return x};var sn=Object.prototype;const xn=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||sn)};const an=function(t,e){return function(n){return t(e(n))}};const cn=an(Object.keys,Object);var ln=Object.prototype.hasOwnProperty;const un=function(t){if(!xn(t))return cn(t);var e=[];for(var n in Object(t))ln.call(t,n)&&"constructor"!=n&&e.push(n);return e};const dn=function(t){return null!=t&&qe(t.length)&&!Gt(t)};const fn=function(t){return dn(t)?rn(t):un(t)};const gn=function(t,e){return t&&Ne(e,fn(e),t)};const mn=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var hn=Object.prototype.hasOwnProperty;const pn=function(t){if(!i(t))return mn(t);var e=xn(t),n=[];for(var o in t)("constructor"!=o||!e&&hn.call(t,o))&&n.push(o);return n};const bn=function(t){return dn(t)?rn(t,!0):pn(t)};const En=function(t,e){return t&&Ne(e,bn(e),t)};var _n="object"==typeof exports&&exports&&!exports.nodeType&&exports,yn=_n&&"object"==typeof module&&module&&!module.nodeType&&module,Tn=yn&&yn.exports===_n?c.Buffer:void 0,Cn=Tn?Tn.allocUnsafe:void 0;const kn=function(t,e){if(e)return t.slice();var n=t.length,o=Cn?Cn(n):new t.constructor(n);return t.copy(o),o};const vn=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const An=function(t,e){for(var n=-1,o=null==t?0:t.length,r=0,s=[];++n<o;){var i=t[n];e(i,n,t)&&(s[r++]=i)}return s};const Rn=function(){return[]};var In=Object.prototype.propertyIsEnumerable,Sn=Object.getOwnPropertySymbols;const wn=Sn?function(t){return null==t?[]:(t=Object(t),An(Sn(t),(function(e){return In.call(t,e)})))}:Rn;const Mn=function(t,e){return Ne(t,wn(t),e)};const Nn=function(t,e){for(var n=-1,o=e.length,r=t.length;++n<o;)t[r+n]=e[n];return t};const Ln=an(Object.getPrototypeOf,Object);const On=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)Nn(e,wn(t)),t=Ln(t);return e}:Rn;const Fn=function(t,e){return Ne(t,On(t),e)};const Pn=function(t,e,n){var o=e(t);return je(t)?o:Nn(o,n(t))};const Dn=function(t){return Pn(t,fn,wn)};const Bn=function(t){return Pn(t,bn,On)};const jn=oe(c,"DataView");const Un=oe(c,"Promise");const Hn=oe(c,"Set");const Gn=oe(c,"WeakMap");var Vn="[object Map]",zn="[object Promise]",Wn="[object Set]",Kn="[object WeakMap]",qn="[object DataView]",$n=$t(jn),Xn=$t(re),Jn=$t(Un),Qn=$t(Hn),Yn=$t(Gn),Zn=k;(jn&&Zn(new jn(new ArrayBuffer(1)))!=qn||re&&Zn(new re)!=Vn||Un&&Zn(Un.resolve())!=zn||Hn&&Zn(new Hn)!=Wn||Gn&&Zn(new Gn)!=Kn)&&(Zn=function(t){var e=k(t),n="[object Object]"==e?t.constructor:void 0,o=n?$t(n):"";if(o)switch(o){case $n:return qn;case Xn:return Vn;case Jn:return zn;case Qn:return Wn;case Yn:return Kn}return e});const to=Zn;var eo=Object.prototype.hasOwnProperty;const no=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&eo.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const oo=c.Uint8Array;const ro=function(t){var e=new t.constructor(t.byteLength);return new oo(e).set(new oo(t)),e};const so=function(t,e){var n=e?ro(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var io=/\w*$/;const xo=function(t){var e=new t.constructor(t.source,io.exec(t));return e.lastIndex=t.lastIndex,e};var ao=m?m.prototype:void 0,co=ao?ao.valueOf:void 0;const lo=function(t){return co?Object(co.call(t)):{}};const uo=function(t,e){var n=e?ro(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const fo=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return ro(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return so(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 uo(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 xo(t);case"[object Symbol]":return lo(t)}};var go=Object.create;const mo=function(){function t(){}return function(e){if(!i(e))return{};if(go)return go(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const ho=function(t){return"function"!=typeof t.constructor||xn(t)?{}:mo(Ln(t))};const po=function(t){return v(t)&&"[object Map]"==to(t)};var bo=tn&&tn.isMap;const Eo=bo?Je(bo):po;const _o=function(t){return v(t)&&"[object Set]"==to(t)};var yo=tn&&tn.isSet;const To=yo?Je(yo):_o;var Co="[object Arguments]",ko="[object Function]",vo="[object Object]",Ao={};Ao[Co]=Ao["[object Array]"]=Ao["[object ArrayBuffer]"]=Ao["[object DataView]"]=Ao["[object Boolean]"]=Ao["[object Date]"]=Ao["[object Float32Array]"]=Ao["[object Float64Array]"]=Ao["[object Int8Array]"]=Ao["[object Int16Array]"]=Ao["[object Int32Array]"]=Ao["[object Map]"]=Ao["[object Number]"]=Ao["[object Object]"]=Ao["[object RegExp]"]=Ao["[object Set]"]=Ao["[object String]"]=Ao["[object Symbol]"]=Ao["[object Uint8Array]"]=Ao["[object Uint8ClampedArray]"]=Ao["[object Uint16Array]"]=Ao["[object Uint32Array]"]=!0,Ao["[object Error]"]=Ao[ko]=Ao["[object WeakMap]"]=!1;const Ro=function t(e,n,o,r,s,x){var a,c=1&n,l=2&n,u=4&n;if(o&&(a=s?o(e,r,s,x):o(e)),void 0!==a)return a;if(!i(e))return e;var d=je(e);if(d){if(a=no(e),!c)return vn(e,a)}else{var f=to(e),g=f==ko||"[object GeneratorFunction]"==f;if(ze(e))return kn(e,c);if(f==vo||f==Co||g&&!s){if(a=l||g?{}:ho(e),!c)return l?Fn(e,En(a,e)):Mn(e,gn(a,e))}else{if(!Ao[f])return s?e:{};a=fo(e,f,c)}}x||(x=new Ae);var m=x.get(e);if(m)return m;x.set(e,a),To(e)?e.forEach((function(r){a.add(t(r,n,o,r,e,x))})):Eo(e)&&e.forEach((function(r,s){a.set(s,t(r,n,o,s,e,x))}));var h=d?void 0:(u?l?Bn:Dn:l?bn:fn)(e);return Re(h||e,(function(r,s){h&&(r=e[s=r]),Me(a,s,t(r,n,o,s,e,x))})),a};const Io=function(t){return Ro(t,5)};var So=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wo=/^\w*$/;const Mo=function(t,e){if(je(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!A(t))||(wo.test(t)||!So.test(t)||null!=e&&t in Object(e))};function No(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,r=e?e.apply(this,o):o[0],s=n.cache;if(s.has(r))return s.get(r);var i=t.apply(this,o);return n.cache=s.set(r,i)||s,i};return n.cache=new(No.Cache||Ce),n}No.Cache=Ce;const Lo=No;var Oo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fo=/\\(\\)?/g;const Po=function(t){var e=Lo(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(Oo,(function(t,n,o,r){e.push(o?r.replace(Fo,"$1"):n||t)})),e}));const Do=function(t,e){for(var n=-1,o=null==t?0:t.length,r=Array(o);++n<o;)r[n]=e(t[n],n,t);return r};var Bo=m?m.prototype:void 0,jo=Bo?Bo.toString:void 0;const Uo=function t(e){if("string"==typeof e)return e;if(je(e))return Do(e,t)+"";if(A(e))return jo?jo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const Ho=function(t){return null==t?"":Uo(t)};const Go=function(t,e){return je(t)?t:Mo(t,e)?[t]:Po(Ho(t))};const Vo=function(t){if("string"==typeof t||A(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const zo=function(t,e,n,o){if(!i(t))return t;for(var r=-1,s=(e=Go(e,t)).length,x=s-1,a=t;null!=a&&++r<s;){var c=Vo(e[r]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(r!=x){var u=a[c];void 0===(l=o?o(u,c,a):void 0)&&(l=i(u)?u:Ke(e[r+1])?[]:{})}Me(a,c,l),a=a[c]}return t};const Wo=function(t,e,n){return null==t?t:zo(t,e,n)};const Ko=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const qo=function(t){return this.__data__.has(t)};function $o(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Ce;++e<n;)this.add(t[e])}$o.prototype.add=$o.prototype.push=Ko,$o.prototype.has=qo;const Xo=$o;const Jo=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 Qo=function(t,e){return t.has(e)};const Yo=function(t,e,n,o,r,s){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=s.get(t),l=s.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,f=2&n?new Xo:void 0;for(s.set(t,e),s.set(e,t);++u<x;){var g=t[u],m=e[u];if(o)var h=i?o(m,g,u,e,t,s):o(g,m,u,t,e,s);if(void 0!==h){if(h)continue;d=!1;break}if(f){if(!Jo(e,(function(t,e){if(!Qo(f,e)&&(g===t||r(g,t,n,o,s)))return f.push(e)}))){d=!1;break}}else if(g!==m&&!r(g,m,n,o,s)){d=!1;break}}return s.delete(t),s.delete(e),d};const Zo=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const tr=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var er=m?m.prototype:void 0,nr=er?er.valueOf:void 0;const or=function(t,e,n,o,r,s,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||!s(new oo(t),new oo(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return St(+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=Zo;case"[object Set]":var a=1&o;if(x||(x=tr),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=Yo(x(t),x(e),o,r,s,i);return i.delete(t),l;case"[object Symbol]":if(nr)return nr.call(t)==nr.call(e)}return!1};var rr=Object.prototype.hasOwnProperty;const sr=function(t,e,n,o,r,s){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:rr.call(e,l)))return!1}var u=s.get(t),d=s.get(e);if(u&&d)return u==e&&d==t;var f=!0;s.set(t,e),s.set(e,t);for(var g=i;++c<a;){var m=t[l=x[c]],h=e[l];if(o)var p=i?o(h,m,l,e,t,s):o(m,h,l,t,e,s);if(!(void 0===p?m===h||r(m,h,n,o,s):p)){f=!1;break}g||(g="constructor"==l)}if(f&&!g){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||(f=!1)}return s.delete(t),s.delete(e),f};var ir="[object Arguments]",xr="[object Array]",ar="[object Object]",cr=Object.prototype.hasOwnProperty;const lr=function(t,e,n,o,r,s){var i=je(t),x=je(e),a=i?xr:to(t),c=x?xr:to(e),l=(a=a==ir?ar:a)==ar,u=(c=c==ir?ar:c)==ar,d=a==c;if(d&&ze(t)){if(!ze(e))return!1;i=!0,l=!1}if(d&&!l)return s||(s=new Ae),i||nn(t)?Yo(t,e,n,o,r,s):or(t,e,a,n,o,r,s);if(!(1&n)){var f=l&&cr.call(t,"__wrapped__"),g=u&&cr.call(e,"__wrapped__");if(f||g){var m=f?t.value():t,h=g?e.value():e;return s||(s=new Ae),r(m,h,n,o,s)}}return!!d&&(s||(s=new Ae),sr(t,e,n,o,r,s))};const ur=function t(e,n,o,r,s){return e===n||(null==e||null==n||!v(e)&&!v(n)?e!=e&&n!=n:lr(e,n,o,r,t,s))};const dr=function(t,e){return ur(t,e)};const fr=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const gr=function(t,e){for(var n=0,o=(e=Go(e,t)).length;null!=t&&n<o;)t=t[Vo(e[n++])];return n&&n==o?t:void 0};const mr=function(t,e,n){var o=-1,r=t.length;e<0&&(e=-e>r?0:r+e),(n=n>r?r:n)<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var s=Array(r);++o<r;)s[o]=t[o+e];return s};const hr=function(t,e){return e.length<2?t:gr(t,mr(e,0,-1))};const pr=function(t,e){return e=Go(e,t),null==(t=hr(t,e))||delete t[Vo(fr(e))]};const br=function(t,e){return null==t||pr(t,e)},Er=["onAttributesChange","removeMarkers","getRange","add","accept","getMultiRangeId","suggestion:","author","createdAt","hasComments","size","getFirstMarker","markers","getItems","getAllAdjacentSuggestions","setAttribute","nodeBefore","delete","isMultiRange","_markerNames","_onDiscard","clear","type","discard","subType","_model","addMarkerName","start","get","data","next","getMarkerNames","nodeAfter","decorate","reduce","toJSON","length","map","_saved","change","head","isIntersecting","filter","getRanges","substr","onAccept","from","removeAttribute","commentThread","getMarkers","removeMarker","attributes","previous","_onAttributesChange","set"];var _r,yr;_r=Er,yr=324,function(t){for(;--t;)_r.push(_r.shift())}(++yr);const Tr=function(t,e){return Er[t-=0]};class Cr{constructor(t,e){this.id=e.id,this.type=e[Tr("0x1c")],this[Tr("0x1e")]=e.subType||null,this[Tr("0xd")]=e[Tr("0xd")],this.data=null,this[Tr("0x1f")]=t,this._onAccept=e[Tr("0x33")],this[Tr("0x1a")]=e.onDiscard,this[Tr("0x4")]=e[Tr("0x6")],this[Tr("0x19")]=new Set,this.set("createdAt",null),this[Tr("0x5")]("attributes",e[Tr("0x2")]||{}),this.set(Tr("0x3"),null),this.set(Tr("0x24"),null),this[Tr("0x5")](Tr("0x36"),null),this[Tr("0x5")](Tr("0x2c"),!1),this[Tr("0x27")](Tr("0xa")),this[Tr("0x27")](Tr("0x1d"))}get head(){let t=this;for(;t.previous;)t=t[Tr("0x3")];return t}get[Tr("0xf")](){return!!this.commentThread&&this[Tr("0x36")][Tr("0x2a")]>0}get[Tr("0x18")](){return 0!=this[Tr("0x19")][Tr("0x10")]&&6==Array[Tr("0x34")](this[Tr("0x19")])[0].split(":")[Tr("0x2a")]}get isInContent(){return null!==this.getFirstMarker()}[Tr("0x20")](t){this[Tr("0x19")][Tr("0x9")](t)}[Tr("0x25")](){return Array.from(this._markerNames)}[Tr("0x0")](){return this.getMarkerNames()[Tr("0x2b")]((t=>this[Tr("0x1f")][Tr("0x12")][Tr("0x22")](t)))[Tr("0x30")]((t=>t))}getFirstMarker(){return this[Tr("0x0")]()[0]||null}[Tr("0x7")](){this[Tr("0x1f")][Tr("0x2d")]((t=>{for(const e of this[Tr("0x0")]())t[Tr("0x1")](e)})),this[Tr("0x19")][Tr("0x1b")]()}[Tr("0x1")](t){this[Tr("0x1f")][Tr("0x2d")]((e=>{e[Tr("0x1")](t)})),this[Tr("0x19")][Tr("0x17")](t)}addRange(t){const e=Tr("0xc")+this[Tr("0x1c")]+":"+this[Tr("0x1e")]+":"+this.id+":"+this[Tr("0xd")].id+":"+Cr[Tr("0xb")]();this.addMarkerName(e),this[Tr("0x1f")].change((n=>{n.addMarker(e,{range:t,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(t){for(const e of this[Tr("0x31")]())if(e[Tr("0x2f")](t))return!0;return!1}[Tr("0x31")](){return this.getMarkers()[Tr("0x2b")]((t=>t[Tr("0x8")]()))}[Tr("0x13")](){return this[Tr("0x31")]()[Tr("0x28")](((t,e)=>[...t,...e[Tr("0x13")]()]),[])}getFirstRange(){return this[Tr("0x11")]().getRange()}getContainedElement(){const t=this[Tr("0x31")]();if(1!=t[Tr("0x2a")])return null;const e=t[0],n=e[Tr("0x21")][Tr("0x26")],o=e.end[Tr("0x16")];return n instanceof F.Element?n!=o?null:n:null}[Tr("0xa")](){this._onAccept(this[Tr("0x31")](),this.data,this[Tr("0x2")]),this[Tr("0x7")]()}[Tr("0x1d")](){this[Tr("0x1a")](this.getRanges(),this[Tr("0x23")],this.attributes),this[Tr("0x7")]()}[Tr("0x14")](){const t=[];let e=this[Tr("0x2e")];for(;e;)t.push(e),e=e[Tr("0x24")];return t}[Tr("0x15")](t,e){const n=Io(this[Tr("0x2")]);Wo(n,t,e),dr(n,this[Tr("0x2")])||(this[Tr("0x2")]=n,this._onAttributesChange(n))}[Tr("0x35")](t){const e=Io(this[Tr("0x2")]);br(e,t),dr(e,this.attributes)||(this[Tr("0x2")]=e,this[Tr("0x4")](this[Tr("0x2")]))}[Tr("0x29")](){return{id:this.id,type:this[Tr("0x1e")]?this[Tr("0x1c")]+":"+this.subType:this.type,authorId:this[Tr("0xd")].id,createdAt:this[Tr("0xe")],hasComments:this[Tr("0xf")],data:this.data,attributes:this[Tr("0x2")]}}static[Tr("0xb")](){return(0,e.uid)()[Tr("0x32")](1,5)}}function kr(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"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"})}}(0,e.mix)(Cr,e.ObservableMixin);const vr=["*Insert:* %0","addObject","isInContent","nextSibling","match","isEmpty","item","name","remove","*Split:* %0","insertion","_customCallbacks","softBreak","add","isEqual","start","length","quantity","REPLACE_TEXT","textProxy","ELEMENT_SPACE","skip","removeEmptyContainer","*Remove:* %0","elementStart","_itemLabels","addEmptyContainer","previousSibling","Container","get","pop","isObject","getItemLabel","replace","registerDescriptionCallback","indexOf","_locale","getFirstRange","getDescriptions","data","Object","text","type","*Merge:* %0","checkChild","$1 $2","push","set","getWalker","elementEnd","deletion","addContainer","_addDescriptionItems","removeObject","_schema","EmptyContainer"];var Ar,Rr;Ar=vr,Rr=311,function(t){for(;--t;)Ar.push(Ar.shift())}(++Rr);const Ir=function(t,e){return vr[t-=0]};class Sr{constructor(t,e){this[Ir("0x24")]=[],this[Ir("0x32")]=new Map,this[Ir("0x17")]=t,this[Ir("0x5")]=e}[Ir("0x7")](t){const e=[];for(let n=0;n<t[Ir("0x29")];n++){const o=t[n];if(!o[Ir("0x1b")])continue;let r=!1;for(const t of this[Ir("0x24")]){const n=t(o);if(n){n[Ir("0xb")]&&e.push(n),r=!0;break}}if(!r){this[Ir("0x15")](e,o);const r=t[n+1];if(r&&!o[Ir("0x6")]().end[Ir("0x27")](r.getFirstRange()[Ir("0x28")])){const t=e[e.length-1],n=Ir("0x23")==o[Ir("0xb")]?Ir("0x26"):Ir("0x21");t&&"text"==t.type&&(t[n]+="\n")}}}return this._resolveDescriptionItems(e)}[Ir("0x3")](t){this._customCallbacks[Ir("0xf")](t)}registerElementLabel(t,e){this[Ir("0x32")][Ir("0x10")](t,e)}[Ir("0x1")](t,e=1){const n=this[Ir("0x32")][Ir("0x36")](t)||t;return"function"==typeof n?n(e):1!==e?e+" "+n+"s":""+n}[Ir("0x15")](t,e){const n=e.getFirstRange()[Ir("0x11")](),o=Ir("0x23")==e[Ir("0xb")]?Ir("0x26"):Ir("0x21");for(const e of n){const r=e[Ir("0x1f")],s=t[t[Ir("0x29")]-1];if(r.is(Ir("0x2c")))s&&s[Ir("0xb")][Ir("0x4")]("Container")>-1&&t.pop(),s&&Ir("0xa")==s[Ir("0xb")]?s[o]+=r.data:t[Ir("0xf")]({type:Ir("0xa"),add:Ir("0x26")==o?r[Ir("0x8")]:"",remove:"remove"==o?r[Ir("0x8")]:""});else if(this[Ir("0x17")].isObject(r)){if(s&&s[Ir("0xb")][Ir("0x4")](Ir("0x35"))>-1&&t[Ir("0x37")](),Ir("0x12")==e[Ir("0xb")])continue;s&&s.type==o+Ir("0x9")&&s[Ir("0x20")]==r[Ir("0x20")]?s[Ir("0x2a")]++:t[Ir("0xf")]({type:o+Ir("0x9"),name:r[Ir("0x20")],quantity:1}),n[Ir("0x2e")]((t=>!("elementEnd"==t[Ir("0xb")]&&t[Ir("0x1f")]==r)))}else if(this[Ir("0x17")][Ir("0xd")](r,"$text")||r.is("element",Ir("0x25"))){if(Ir("0x26")==o&&Ir("0x31")==e.type||Ir("0x21")==o&&Ir("0x12")==e[Ir("0xb")])continue;if(s&&-1==s[Ir("0xb")].indexOf(Ir("0x35"))){Ir("0xa")==s[Ir("0xb")]&&(s[o]+="\n");continue}let n;if(n=Ir("0x26")==o?r[Ir("0x1c")]&&!this[Ir("0x17")][Ir("0x0")](r[Ir("0x1c")])?r[Ir("0x1c")]:null:r[Ir("0x34")]&&!this[Ir("0x17")][Ir("0x0")](r[Ir("0x34")])?r[Ir("0x34")]:null,r[Ir("0x1e")]||n&&n[Ir("0x1e")]){const e=n&&n[Ir("0x1e")]?n[Ir("0x20")]:r[Ir("0x20")];s&&s[Ir("0xb")]==o+"EmptyContainer"&&s.name==e?s[Ir("0x2a")]++:t[Ir("0xf")]({type:o+Ir("0x18"),name:e,quantity:1})}else t[Ir("0xf")]({type:o+Ir("0x35"),name:r[Ir("0x20")]})}}}_resolveDescriptionItems(t){const e=this[Ir("0x5")],n=[];for(const o of t){switch(o[Ir("0xb")]){case Ir("0xa"):if(o[Ir("0x26")]=o.add.replace(/(\S)\u000A+(\S)/g,Ir("0xe"))[Ir("0x2")](/\u000A/g,""),o.remove=o[Ir("0x21")][Ir("0x2")](/(\S)\u000A+(\S)/g,"$1 $2")[Ir("0x2")](/\u000A/g,""),""!=o[Ir("0x26")]&&""!=o[Ir("0x21")]){n[Ir("0xf")]({type:"replace",content:kr(e,Ir("0x2b"),['"'+o.remove+'"','"'+o[Ir("0x26")]+'"'])});continue}if(null!=o[Ir("0x26")][Ir("0x1d")](/^ +$/)){n[Ir("0xf")]({type:"insertion",content:kr(e,Ir("0x19"),kr(e,"ELEMENT_SPACE",o.add[Ir("0x29")]))});continue}if(null!=o[Ir("0x21")][Ir("0x1d")](/^ +$/)){n[Ir("0xf")]({type:"deletion",content:kr(e,Ir("0x30"),kr(e,Ir("0x2d"),o[Ir("0x21")].length))});continue}if(""!=o[Ir("0x26")]){n.push({type:Ir("0x23"),content:kr(e,Ir("0x19"),'"'+o[Ir("0x26")]+'"')});continue}n[Ir("0xf")]({type:Ir("0x13"),content:kr(e,Ir("0x30"),'"'+o[Ir("0x21")]+'"')});continue;case Ir("0x33"):case Ir("0x1a"):n[Ir("0xf")]({type:Ir("0x23"),content:kr(e,Ir("0x19"),this[Ir("0x1")](o[Ir("0x20")],o[Ir("0x2a")]))});continue;case Ir("0x2f"):case Ir("0x16"):n[Ir("0xf")]({type:Ir("0x13"),content:kr(e,Ir("0x30"),this[Ir("0x1")](o[Ir("0x20")],o.quantity))});continue;case Ir("0x14"):n[Ir("0xf")]({type:Ir("0x23"),content:kr(e,Ir("0x22"),this.getItemLabel(o[Ir("0x20")],o[Ir("0x2a")]))});continue;case"removeContainer":n[Ir("0xf")]({type:Ir("0x13"),content:kr(e,Ir("0xc"),this.getItemLabel(o[Ir("0x20")],o.quantity))});continue}n[Ir("0xf")](o)}return n}}const wr=["model","from","ltr","justify","change","locale","document","selection","FORMAT_ALIGN_TO_LEFT","FORMAT_ALIGN_TO_RIGHT","getSelectedBlocks","AlignmentEditing","left","center","alignment","editor","FORMAT_ALIGN_TO_CENTER","contentLanguageDirection","enableCommand","plugins","registerDescriptionCallback","*Format:* %0","right","afterInit","has","schema","checkAttribute","value","filter","commandParams","_descriptionFactory","TrackChangesEditing"];var Mr,Nr;Mr=wr,Nr=449,function(t){for(;--t;)Mr.push(Mr.shift())}(++Nr);const Lr=function(t,e){return wr[t-=0]};class Or extends t.Plugin{[Lr("0x16")](){const t=this[Lr("0xe")],e=t[Lr("0x4")];if(!t[Lr("0x12")][Lr("0x17")](Lr("0xa")))return;const n=t[Lr("0x12")].get(Lr("0x1e"));n[Lr("0x11")](Lr("0xd"),((e,o={})=>{let r=o.value;o[Lr("0x1a")]||(r=Lr("0x1")===t[Lr("0x4")][Lr("0x10")]?Lr("0xb"):Lr("0x15"));const s=Array[Lr("0x0")](this.editor[Lr("0x1f")][Lr("0x5")][Lr("0x6")][Lr("0x9")]())[Lr("0x1b")]((t=>function(t,e,n){const o=t.getAttribute(Lr("0xd"))||null;return e[Lr("0x19")](t,Lr("0xd"))&&n!=o}(t,this[Lr("0xe")][Lr("0x1f")][Lr("0x18")],r)));t[Lr("0x1f")][Lr("0x3")]((()=>{for(const t of s)n.markBlockFormat(t,{commandName:"alignment",commandParams:[{value:r}]})}))})),n[Lr("0x1d")][Lr("0x13")]((t=>{const{data:n}=t;if(n&&Lr("0xd")==n.commandName){const t=n[Lr("0x1c")][0].value;return{type:"format",content:kr(e,Lr("0x14"),function(t){switch(t){case"left":return kr(e,Lr("0x7"));case Lr("0x15"):return kr(e,Lr("0x8"));case Lr("0xc"):return kr(e,Lr("0xf"));case Lr("0x2"):return kr(e,"FORMAT_JUSTIFY_TEXT")}}(t))}}}))}}const Fr=["model","writer","TrackChangesEditing","item","bindElementToMarker","push","ck-suggestion-marker-","markerRange","test","span","ck-suggestion-marker--active","getCustomProperty","isContent","mapper","elementEnd","toViewPosition","createUIElement","addClass","insert","nextSibling","listIndent","hasAttribute","schema","getItems","includes","isLimit","isAtEnd","getWalker","markerName","createRangeOn","getAttribute","previousPosition"];var Pr,Dr;Pr=Fr,Dr=493,function(t){for(;--t;)Pr.push(Pr.shift())}(++Dr);const Br=function(t,e){return Fr[t-=0]};function jr(t,e,n){const o=[];for(const r of e[Br("0xa")]())r[Br("0x8")](t)&&o[Br("0x18")](n[Br("0x10")](r));return o}function Ur(t){const e=[];if(t.is("element","listItem")){let n=t[Br("0x6")];for(;n&&n.is("element","listItem")&&n[Br("0x11")](Br("0x7"))>0;)e.push(n),n=n[Br("0x6")]}return e}function Hr(t,e,{showActiveMarker:n=!0}={}){const o=t.plugins.get(Br("0x15"));return(r,s,i)=>{if(!i.consumable[Br("0x1b")](s[Br("0x1a")],r.name))return;const x=s[Br("0x1a")][Br("0xe")](),a=s.markerRange.start,c=t[Br("0x13")][Br("0x9")];let l=null,u=null,d=!1,f=!1;for(const t of x){const e=t[Br("0x16")];d=d||c[Br("0x1f")](e);const n=i.mapper.toViewElement(e);if(n&&n[Br("0x1e")]("addHighlight"))return;Br("0x1")==t.type&&c.isBlock(e)&&!c[Br("0xc")](e)&&(e[Br("0x6")]||a[Br("0xd")]?l&&l.parent==e||(l=e,g(t[Br("0x12")]),f=!0):u=u||t[Br("0x12")])}function g(t){const r=i[Br("0x14")][Br("0x3")](Br("0x1c"),{class:Br("0x19")+e}),x=i[Br("0x0")][Br("0x2")](t);n&&o.activeMarkers[Br("0xb")](s[Br("0xf")])&&i[Br("0x14")][Br("0x4")](Br("0x1d"),r),i[Br("0x14")][Br("0x5")](x,r),i[Br("0x0")][Br("0x17")](r,s[Br("0xf")])}d||f||!u||g(u)}}const Gr=["markInlineFormat","editor","FORMAT_STRIKETHROUGH","FORMAT_SUBSCRIPT","UnderlineEditing","locale","slice","italic","bold","enableCommand","has","change","*Remove format:* %0","FORMAT_UNDERLINE","underline","FORMAT_CODE","FORMAT_BOLD","registerDescriptionCallback","FORMAT_ITALIC","format","*Format:* %0","superscript","selection","TrackChangesEditing","get","plugins","SubscriptEditing","strikethrough","afterInit","SuperscriptEditing","isCollapsed","value","toLowerCase","forceValue","model","commands","commandParams"];var Vr,zr;Vr=Gr,zr=243,function(t){for(;--t;)Vr.push(Vr.shift())}(++zr);const Wr=function(t,e){return Gr[t-=0]},Kr=["BoldEditing","ItalicEditing",Wr("0x14"),"CodeEditing","StrikethroughEditing",Wr("0x5"),Wr("0x8")];class qr extends t.Plugin{[Wr("0x7")](){const t=this[Wr("0x11")],e=t[Wr("0xd")],n=t[Wr("0x4")][Wr("0x3")](Wr("0x2")),o=t[Wr("0x15")];for(const o of Kr){if(!t.plugins[Wr("0x1a")](o))continue;const r=o[Wr("0x16")](0,-7)[Wr("0xb")](),s=t[Wr("0xe")][Wr("0x3")](r);n[Wr("0x19")](r,((t,o={})=>{const i=e.document[Wr("0x1")];if(i[Wr("0x9")])return void t(o);const x=void 0!==o[Wr("0xc")]?o[Wr("0xc")]:!s[Wr("0xa")];e[Wr("0x1b")]((()=>{const t=Array.from(i.getRanges());for(const o of t){const t=x?[o]:jr(r,o,e);for(const e of t)n[Wr("0x10")](e,{commandName:r,commandParams:[{forceValue:x}]})}}))}))}function r(t,e){n._descriptionFactory[Wr("0x21")]((n=>{const{data:r}=n;if(r&&r.commandName===t)return r[Wr("0xf")][0][Wr("0xc")]?{type:Wr("0x23"),content:kr(o,Wr("0x24"),e)}:{type:"format",content:kr(o,Wr("0x1c"),e)}}))}r(Wr("0x18"),kr(o,Wr("0x20"))),r(Wr("0x17"),kr(o,Wr("0x22"))),r(Wr("0x1e"),kr(o,Wr("0x1d"))),r("code",kr(o,Wr("0x1f"))),r(Wr("0x6"),kr(o,Wr("0x12"))),r("subscript",kr(o,Wr("0x13"))),r(Wr("0x0"),kr(o,"FORMAT_SUPERSCRIPT"))}}const $r=["schema","createRange","createPositionAfter","length","createPositionAt","createPositionBefore","isTouching","end","push","isObject"];var Xr,Jr;Xr=$r,Jr=390,function(t){for(;--t;)Xr.push(Xr.shift())}(++Jr);const Qr=function(t,e){return $r[t-=0]};function Yr(t,e){let n,o=0;const r=[],s=e[Qr("0x0")];for(;o<t[Qr("0x3")];){const i=t[o],x=t[o+1];n||(n=e[Qr("0x5")](i)),Zr(e,i,x)||(r[Qr("0x8")](e[Qr("0x1")](n,s[Qr("0x9")](i)?e.createPositionAfter(i):e[Qr("0x4")](i,Qr("0x7")))),n=null),o++}return r}function Zr(t,e,n){if(!n)return!1;const o=t[Qr("0x2")](e),r=t[Qr("0x5")](n);return o[Qr("0x6")](r)}const ts=["TrackChangesEditing","*Remove format:* %0","forceValue","ELEMENT_BLOCK_QUOTE","commandParams","getSelectedBlocks","get","format","blockQuote","plugins","commandName","model","registerDescriptionCallback","editor","$root","value","enableCommand","change","filter","parent","*Format:* %0","checkChild","markBlockFormat"];var es,ns;es=ts,ns=470,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class rs extends t.Plugin{afterInit(){const t=this[os("0x3")],e=t.locale;if(!t[os("0x16")].has("BlockQuoteEditing"))return;const n=t.plugins[os("0x13")](os("0xd")),o=this.editor.commands[os("0x13")](os("0x15"));n[os("0x6")](os("0x15"),((e,r={})=>{const s=this.editor[os("0x1")].document.selection,i=r&&void 0!==r[os("0xf")]?r[os("0xf")]:!o[os("0x5")];let x=[];if(i){const e=Array.from(s.getSelectedBlocks())[os("0x8")]((t=>ss(t)||function(t,e){const n=e.checkChild(t[os("0x9")],os("0x15")),o=e[os("0xb")]([os("0x4"),os("0x15")],t);return n&&o}(t,this[os("0x3")][os("0x1")].schema)));x=Yr(e,t[os("0x1")])}else{const e=Array.from(s[os("0x12")]())[os("0x8")]((t=>ss(t)));x=Yr(e,t.model)}t.model[os("0x7")]((()=>{for(const t of x)n[os("0xc")](t,{commandName:os("0x15"),commandParams:[{forceValue:i}]})}))})),n._descriptionFactory[os("0x2")]((t=>{const{data:n}=t;if(n&&"blockQuote"==n[os("0x0")]){const t=kr(e,os("0x10"));return n[os("0x11")][0][os("0xf")]?{type:os("0x14"),content:kr(e,os("0xa"),t)}:{type:os("0x14"),content:kr(e,os("0xe"),t)}}}))}}function ss(t){return os("0x15")==t[os("0x9")].name}const is=["plugins","afterInit","commands","editor","get","enableCommand","TrackChangesEditing"];var xs,as;xs=is,as=195,function(t){for(;--t;)xs.push(xs.shift())}(++as);const cs=function(t,e){return is[t-=0]};class ls extends t.Plugin{[cs("0x2")](){const t=this[cs("0x4")];t[cs("0x3")][cs("0x5")]("ckbox")&&t[cs("0x1")].get(cs("0x0"))[cs("0x6")]("ckbox")}}const us=["outdentCodeBlock","from","CodeBlock","forceValue","language","_descriptionFactory","model","locale","codeBlock","registerDescriptionCallback","filter","schema","commands","name","languages","afterInit","registerElementLabel","has","indentCodeBlock","value","editor","get","*Remove format:* %0","document","blockName","config","label","enableCommand","change","plugins","selection","rootElement","commandParams","ELEMENT_CODE_BLOCK","getSelectedBlocks","commandName"];var ds,fs;ds=us,fs=422,function(t){for(;--t;)ds.push(ds.shift())}(++fs);const gs=function(t,e){return us[t-=0]};class ms extends t.Plugin{[gs("0x19")](){const t=this[gs("0x1e")];if(!t[gs("0x3")][gs("0x1b")](gs("0xc")))return;const e=t.plugins[gs("0x1f")]("TrackChangesEditing"),n=t[gs("0x11")],o=t[gs("0x23")][gs("0x1f")](gs("0x12"))[gs("0x18")],r=t[gs("0x16")][gs("0x1f")](gs("0x12"));e[gs("0x1")](gs("0x1c")),e[gs("0x1")](gs("0xa")),e[gs("0x1")](gs("0x12"),((n,s={})=>{const i=t[gs("0x10")],x=t[gs("0x10")][gs("0x21")][gs("0x4")],a=s&&void 0!==s.forceValue?s[gs("0xd")]:!r[gs("0x1d")];let c;s[gs("0xe")]||(s[gs("0xe")]=o[0][gs("0xe")]),c=a?Array[gs("0xb")](x.getSelectedBlocks())[gs("0x14")]((t=>{return hs(t)||(e=t,n=i[gs("0x15")],!e.is(gs("0x5"))&&!n.isLimit(e)&&n.checkChild(e.parent,"codeBlock"));var e,n})):Array.from(x[gs("0x8")]())[gs("0x14")]((t=>hs(t)));const l=Yr(c,i);i[gs("0x2")]((()=>{for(const t of l)e.markBlockFormat(t,{commandName:gs("0x12"),commandParams:[{...s,forceValue:a}],formatGroupId:gs("0x22")})}))})),e[gs("0xf")][gs("0x1a")]("codeBlock",(t=>kr(n,gs("0x7"),t))),e[gs("0xf")][gs("0x13")]((t=>{const{type:e,data:r}=t;if("formatBlock"==e&&r&&gs("0x12")==r[gs("0x9")]){const t=r[gs("0x6")][0][gs("0xe")],e=o.find((e=>e.language===t))[gs("0x0")],s=n._t(e);return r[gs("0x6")][0].forceValue?{type:"format",content:kr(n,"*Format:* %0",kr(n,gs("0x7"),1)+" ("+s+")")}:{type:"format",content:kr(n,gs("0x20"),kr(n,gs("0x7"),1))}}}))}}function hs(t){return gs("0x12")==t[gs("0x17")]}var ps,bs,Es=["CommentsEditing","plugins","get","addCommentThread","enableCommand","requires"];ps=Es,bs=212,function(t){for(;--t;)ps.push(ps.shift())}(++bs);var _s=function(t,e){return Es[t-=0]};class ys extends t.Plugin{static get[_s("0x3")](){return[_s("0x4")]}init(){this.editor[_s("0x5")][_s("0x0")]("TrackChangesEditing")[_s("0x2")](_s("0x1"))}}var Ts=n(181);const Cs=["document","markerName","fromRange","end","downcastDispatcher","requires","enqueueChange","editing","TrackChangesEditing","options","selection","rootName","data","mapper","buffer","setSelection","delete","getFirstRange","removeMarker:suggestion:deletion","unlock","get","batch","detach","editor","high","lock","enableCommand","forward","start","addMarker:suggestion:deletion","createSelection","unbindElementFromMarkerName","showSuggestionHighlights","deleteForward","model","writer","merge","remove","root","createRange"];var ks,vs;ks=Cs,vs=353,function(t){for(;--t;)ks.push(ks.shift())}(++vs);const As=function(t,e){return Cs[t-=0]};class Rs extends t.Plugin{static get[As("0xc")](){return[Ts.Delete]}init(){const t=this[As("0x1e")],e=t.plugins[As("0x1b")](As("0xf"));e.enableCommand(As("0x17"));const n=t.commands.get(As("0x0"));e[As("0x21")](As("0x0"),((e,o={})=>{const r=t[As("0x1")][As("0x25")](t[As("0x1")][As("0x7")][As("0x11")]);r.isCollapsed&&t[As("0x1")].modifySelection(r,{direction:As("0x22"),unit:o.unit});const s=r[As("0x18")](),i=F.LiveRange[As("0x9")](s);let x;e(o),x="$graveyard"==i[As("0x5")][As("0x12")]?t[As("0x1")][As("0x6")](s[As("0x23")]):t[As("0x1")].createRange(i[As("0x23")],i[As("0xa")]),i[As("0x1d")](),t[As("0x1")][As("0xd")](n[As("0x15")][As("0x1c")],(t=>{n.buffer[As("0x20")](),t[As("0x16")](t.createRange(x[As("0xa")])),n[As("0x15")][As("0x1a")]()}))})),t.editing[As("0xb")].on("addMarker:suggestion:deletion",Hr(t,As("0x3")),{priority:"high"}),t[As("0x13")][As("0xb")].on(As("0x24"),((e,n,o)=>{o[As("0x10")][As("0x27")]&&Hr(t,"merge",{showActiveMarker:!1})(e,n,o)}),{priority:As("0x1f")}),t[As("0xe")][As("0xb")].on(As("0x19"),((t,e,n)=>{const o=n[As("0x14")].markerNameToElements(e[As("0x8")]);if(o)for(const t of o)t.is("uiElement")&&(n[As("0x14")][As("0x26")](t,e[As("0x8")]),n[As("0x2")][As("0x4")](t))}),{priority:"high"})}}var Is=n(331);const Ss=["unbindElementFromMarkerName","createPositionAt","editing","isAtStart","document","parent","high","addMarker:suggestion:insertion","isAtEnd","start","downcastDispatcher","get","removeMarker:suggestion:insertion","remove","init","selection","isCollapsed","data","hasClass","detach","options","mapper","getFirstPosition","end","model","enableCommand","editor","TrackChangesEditing","enter","ck-suggestion-marker-split","nextSibling","markerName","plugins","schema","createRange","showSuggestionHighlights","split","markInsertion","isLimit","setSelection"];var ws,Ms;ws=Ss,Ms=142,function(t){for(;--t;)ws.push(ws.shift())}(++Ms);const Ns=function(t,e){return Ss[t-=0]};class Ls extends t.Plugin{static get requires(){return[Is.Enter]}[Ns("0x20")](){const t=this[Ns("0x4")],e=t[Ns("0xa")][Ns("0x1d")](Ns("0x5"));e[Ns("0x3")](Ns("0x6"),(n=>{t[Ns("0x2")].change((o=>{const r=t[Ns("0x2")][Ns("0x16")][Ns("0x21")],s=r[Ns("0x0")](),i=r[Ns("0x22")],x=F.LiveRange.fromRange(r.getFirstRange()),a=x[Ns("0x1b")][Ns("0x17")],c=x.end[Ns("0x17")],l=!(x[Ns("0x1b")][Ns("0x15")]&&x[Ns("0x1")][Ns("0x1a")]),u=a==c,d=!(t[Ns("0x2")][Ns("0xb")][Ns("0x10")](a)||t[Ns("0x2")][Ns("0xb")][Ns("0x10")](c))&&(i||l&&u);if(n(),d){const n=t[Ns("0x2")][Ns("0x13")](s.parent[Ns("0x8")],0),r=o.createRange(s,n);e[Ns("0xf")](r)}else o[Ns("0x11")](o[Ns("0xc")](x[Ns("0x1")]));x[Ns("0x25")]()}))})),t[Ns("0x14")][Ns("0x1c")].on("addMarker:suggestion:insertion",Hr(t,Ns("0xe")),{priority:Ns("0x18")}),t[Ns("0x14")][Ns("0x1c")].on(Ns("0x1e"),((t,e,n)=>{const o=n[Ns("0x27")].markerNameToElements(e.markerName);if(o)for(const t of o)t[Ns("0x24")](Ns("0x7"))&&(n[Ns("0x27")][Ns("0x12")](t,e[Ns("0x9")]),n.writer[Ns("0x1f")](t))}),{priority:"high"}),t[Ns("0x23")][Ns("0x1c")].on(Ns("0x19"),((e,n,o)=>{o[Ns("0x26")][Ns("0xd")]&&Hr(t,Ns("0xe"),{showActiveMarker:!1})(e,n,o)}),{priority:Ns("0x18")})}}const Os=["*Set font background color:* %0","editor","normalizeSizeOptions","model","*Set font color:* %0","toLowerCase","*Reset font color*","FontColorEditing","*Reset font background color*","label","FontSize","from","fontBackgroundColor.colors","has","selection","FontSizeEditing","registerDescriptionCallback","TrackChangesEditing","commandParams","config","FontBackgroundColorEditing","fontFamily","fontColor.colors","fontBackgroundColor","*Reset font family*","locale","find","value","fontSize","format","plugins","fontColor","trim","title","*Set font family:* %0","_enableCommand","get","getRanges","commandName","*Reset font size*"];var Fs,Ps;Fs=Os,Ps=417,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]},Bs=[{pluginName:Ds("0x26"),commandName:Ds("0xb")},{pluginName:"FontFamilyEditing",commandName:"fontFamily"},{pluginName:Ds("0x1e"),commandName:"fontColor"},{pluginName:Ds("0x3"),commandName:Ds("0x6")}];class js extends t.Plugin{afterInit(){const t=this[Ds("0x18")][Ds("0x8")];for(const{pluginName:t,commandName:e}of Bs)this[Ds("0x18")][Ds("0xd")][Ds("0x24")](t)&&this[Ds("0x12")](e);this.editor[Ds("0xd")][Ds("0x13")]("TrackChangesEditing")._descriptionFactory[Ds("0x27")]((e=>{const{data:n}=e;if(null!=n){if(Ds("0xb")==n.commandName){const e=n[Ds("0x1")][0][Ds("0xa")];if(e){const n=this[Ds("0x18")][Ds("0xd")].get(Ds("0x21"))[Ds("0x19")](this.editor[Ds("0x2")][Ds("0x13")]("fontSize.options"))[Ds("0x9")]((t=>t[Ds("0x1a")]==e))[Ds("0x10")],o=this.editor.locale._t(n).toLowerCase();return{type:Ds("0xc"),content:kr(t,"*Set font size:* %0",o)}}return{type:Ds("0xc"),content:kr(t,Ds("0x16"))}}if(Ds("0x4")==n[Ds("0x15")]){const e=n[Ds("0x1")][0].value;return e?{type:Ds("0xc"),content:kr(t,Ds("0x11"),e)}:{type:Ds("0xc"),content:kr(t,Ds("0x7"))}}if(Ds("0xe")==n[Ds("0x15")]){const e=n.commandParams[0].value;if(e){const n=(0,r.normalizeColorOptions)(this.editor[Ds("0x2")].get(Ds("0x5"))).find((t=>t[Ds("0x1a")]==e));let o=e,s="";return n&&(o=n[Ds("0x20")],s=t._t(o)[Ds("0x1c")]()),{type:"format",content:kr(t,Ds("0x1b"),s)[Ds("0xf")](),color:{value:e,title:s||o}}}return{type:Ds("0xc"),content:kr(t,Ds("0x1d"))}}if(Ds("0x6")==n[Ds("0x15")]){const e=n[Ds("0x1")][0].value;if(e){const n=(0,r.normalizeColorOptions)(this[Ds("0x18")][Ds("0x2")][Ds("0x13")](Ds("0x23"))).find((t=>t[Ds("0x1a")]==e));let o=e,s="";return n&&(o=n[Ds("0x20")],s=t._t(o)[Ds("0x1c")]()),{type:Ds("0xc"),content:kr(t,Ds("0x17"),s).trim(),color:{value:e,title:s||o}}}return{type:"format",content:kr(t,Ds("0x1f"))}}}}))}[Ds("0x12")](t){const e=this[Ds("0x18")];e[Ds("0xd")].get("TrackChangesEditing").enableCommand(t,((n,o={})=>{const r=e[Ds("0x1a")].document[Ds("0x25")],s=o[Ds("0xa")];r.isCollapsed?n(o):e[Ds("0x1a")].change((()=>{const n=Array[Ds("0x22")](r[Ds("0x14")]());for(const o of n){const n=s?[o]:jr(t,o,e.model);for(const o of n)e[Ds("0xd")][Ds("0x13")](Ds("0x0")).markInlineFormat(o,{commandName:t,commandParams:[{value:s}]})}}))}))}}const Us=["filter","document","parent","_descriptionFactory","value","*Change to:* %0","checkChild","TrackChangesEditing","afterInit","markBlockFormat","has","match","blockName","model","registerElementLabel","get","name","paragraph","from","HeadingEditing","title","plugins","format","editor","locale","selection","formatBlock","schema","heading"];var Hs,Gs;Hs=Us,Gs=388,function(t){for(;--t;)Hs.push(Hs.shift())}(++Gs);const Vs=function(t,e){return Us[t-=0]};class zs extends t.Plugin{[Vs("0x1a")](){const t=this[Vs("0xc")],e=t[Vs("0xd")],n=t.config[Vs("0x4")]("heading.options");if(!t[Vs("0xa")][Vs("0x1c")](Vs("0x8")))return;const o=t[Vs("0xa")].get(Vs("0x19"));o.enableCommand(Vs("0x11"),((e,n)=>{const r=n[Vs("0x16")],s=Array[Vs("0x7")](this.editor[Vs("0x2")][Vs("0x13")][Vs("0xe")].getSelectedBlocks())[Vs("0x12")]((t=>{return e=t,n=r,(o=this[Vs("0xc")][Vs("0x2")][Vs("0x10")])[Vs("0x18")](e[Vs("0x14")],n)&&!o.isObject(e)&&e[Vs("0x5")]!=n;var e,n,o}));t.model.change((()=>{for(const t of s)o[Vs("0x1b")](t,{commandName:"heading",commandParams:[n],formatGroupId:Vs("0x1")},Ur(t))}))}));for(const t of n)Vs("0x6")!=t[Vs("0x2")]&&o[Vs("0x15")][Vs("0x3")](t[Vs("0x2")],(e=>{const n=Ws(t[Vs("0x2")]);return null!==n?r(e,n):s(e,t[Vs("0x9")])}));function r(t,n){return kr(e,"ELEMENT_HEADING",[t,n])}function s(t,n){return kr(e,"ELEMENT_HEADING_CUSTOM",[t,n])}o._descriptionFactory.registerDescriptionCallback((t=>{const{type:o,data:i}=t;if(Vs("0xf")==o&&i&&"heading"==i.commandName){const t=i.commandParams[0][Vs("0x16")],o=Ws(t);if(null!==o)return{type:Vs("0xb"),content:kr(e,Vs("0x17"),r(1,o))};const x=n.find((e=>e[Vs("0x2")]===t))[Vs("0x9")];return{type:Vs("0xb"),content:kr(e,Vs("0x17"),s(1,x))}}}))}}function Ws(t){const e=t[Vs("0x0")](/^heading(\d+)$/);return e?e[1]:null}const Ks=["TrackChangesEditing","config","getRanges","FORMAT_HIGHLIGHT","getFirstPosition","markInlineFormat","getAttribute","model","formatInline","highlight","isCollapsed","backward","document","registerDescriptionCallback","createRange","editor","HighlightEditing","find","*Set highlight:* %0","hasAttribute","format","_descriptionFactory","plugins","push","title","get","value","color","getLastMatchingPosition"];var qs,$s;qs=Ks,$s=327,function(t){for(;--t;)qs.push(qs.shift())}(++$s);const Xs=function(t,e){return Ks[t-=0]};class Js extends t.Plugin{afterInit(){const t=this[Xs("0x7")];if(!t[Xs("0xe")].has(Xs("0x8")))return;const e=t.plugins[Xs("0x11")](Xs("0x15"));e.enableCommand("highlight",((n,o={})=>{const r=t[Xs("0x1c")][Xs("0x4")].selection,s=r[Xs("0x1b")](Xs("0x1"));let i=o.value,x=[];if(r[Xs("0x2")]){const e=r[Xs("0x19")]();if(!r[Xs("0xb")]("highlight"))return void n(o);{const n=t=>t.item[Xs("0x1b")]("highlight")===s,o=e[Xs("0x14")](n,{direction:Xs("0x3")}),r=e.getLastMatchingPosition(n);x=[t.model[Xs("0x6")](o,r)],i==s&&(i=null)}}else for(const e of r[Xs("0x17")]())i?x[Xs("0xf")](e):x[Xs("0xf")](...jr("highlight",e,t[Xs("0x1c")]));t[Xs("0x1c")].change((()=>{for(const t of x)e[Xs("0x1a")](t,{commandName:"highlight",commandParams:[{value:i}]})}))}));const n=t.locale;e[Xs("0xd")][Xs("0x5")]((e=>{const{type:o,data:r}=e;if(Xs("0x0")==o&&r&&Xs("0x1")==r.commandName){const e=r.commandParams[0][Xs("0x12")];if(e){const o=t[Xs("0x16")][Xs("0x11")]("highlight.options")[Xs("0x9")]((t=>t[Xs("0x1c")]==e)),r=n._t(o.title).toLowerCase();return{type:Xs("0xc"),content:kr(n,Xs("0xa"),r),color:{value:o[Xs("0x13")],title:o[Xs("0x10")]}}}return{type:"format",content:kr(n,"*Remove highlight*",kr(n,Xs("0x18")))}}}))}}const Qs=["_descriptionFactory","createContainerElement","createEmptyElement","insert","has","for","plugins","registerElementLabel","enableCommand","HorizontalLineEditing","ELEMENT_HORIZONTAL_LINE","ck-horizontal-line","TrackChangesEditing","div","dataDowncast","get","horizontalLine","editor","conversion","high","elementToStructure"];var Ys,Zs;Ys=Qs,Zs=465,function(t){for(;--t;)Ys.push(Ys.shift())}(++Zs);const ti=function(t,e){return Qs[t-=0]};class ei extends t.Plugin{afterInit(){const t=this[ti("0xe")];if(!t[ti("0x3")][ti("0x1")](ti("0x6")))return;t[ti("0x3")][ti("0xc")](ti("0x9"))[ti("0x5")](ti("0xd"));const e=t[ti("0x3")][ti("0xc")](ti("0x9")),n=t.locale;e[ti("0x12")][ti("0x4")]("horizontalLine",(t=>kr(n,ti("0x7"),t))),t[ti("0xf")][ti("0x2")](ti("0xb"))[ti("0x11")]({model:ti("0xd"),view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return;const o=e[ti("0x13")](ti("0xa")),r=e[ti("0x14")]("hr");return e.addClass(ti("0x8"),o),e[ti("0x0")](e.createPositionAt(o,0),r),o},converterPriority:ti("0x10")})}}const ni=["enableCommand","TrackChangesEditing","value","rawHtmlApi","change","getCustomProperty","_descriptionFactory","markBlockFormat","commandName","ELEMENT_HTML_EMBED","registerDescriptionCallback","document","get","element","htmlEmbed","rawHtml","view","getAttribute","getSelectedElement","editing","has","plugins","cancel","format"];var oi,ri;oi=ni,ri=403,function(t){for(;--t;)oi.push(oi.shift())}(++ri);const si=function(t,e){return ni[t-=0]};class ii extends t.Plugin{afterInit(){const t=this.editor;if(!t.plugins[si("0x1")]("HtmlEmbed"))return;const e=t[si("0x2")].get(si("0x6")),n=t.locale,o=t[si("0x0")][si("0x15")][si("0x10")].selection;e[si("0xb")].registerElementLabel(si("0x14"),(t=>kr(n,si("0xe"),t))),t[si("0x2")][si("0x11")]("TrackChangesEditing")[si("0x5")](si("0x13"),((n,r)=>{const s=t.model,i=s[si("0x10")].selection;s[si("0x9")]((()=>{const t=function(t){const e=t[si("0x17")]();return e&&e.is(si("0x12"),si("0x14"))?t.getSelectedElement():null}(i);if(!t)return void n(null);const s=t[si("0x16")](si("0x7"))||"";void 0!==r&&r!==s&&(e[si("0xc")](t,{commandName:si("0x13"),commandParams:[r]}),o[si("0x17")]()[si("0xa")](si("0x8"))[si("0x3")]())}))})),e[si("0xb")][si("0xf")]((t=>{const{data:e}=t;if(e&&si("0x13")==e[si("0xd")]){const t=kr(n,si("0xe"));return{type:si("0x4"),content:kr(n,"*Change %0 content*",t)}}}))}}const xi=["Inline image to block image","locale","isEqual","ImageUploadEditing","getChangedMarkers","markInsertion","subType","caption","*Set image width:* %0","enableCommand","commands","findIndex","imageStyle","registerPostFixer","markDeletion","convertInlineImageToBlock","Block image to inline image","backward","isBlockImage","TrackChangesEditing","commandName","toNext","getClosestSelectedImageElement","refresh","discard","imageTypeBlock","nodeBefore","element","_splitMarkerName","registerElementLabel","side","imageTypeInline","_findSuggestions","getAttribute","type","title","getFirstRange","has","length","getContainedElement","imageBlock","formatBlock","end","shouldConvertImageType","isInlineImage","isBefore","getSuggestion","imageCaption","schema","isOwn","*Remove image text alternative*","get","differ","fromPosition","filter","next","formatInline","width","change","uploadImage","createRange","join","getSuggestionCallback","imageStylePreApply","FORMAT_SIDE_IMAGE","markBlockFormat","newRange","_suggestionFactory","forceDefaultExecution","Users","toPrevious","convertBlockImageToInline","nodeAfter","_descriptionFactory","addObject","isCollapsed","insertion","value","ImageStyleEditing","accept","discardSuggestion","ImageResize","*Format:* %0","commandReversedParams","normalizedStyles","ImageEditing","isIntersecting","imageStylePostApply","resizeImage","ELEMENT_INLINE_IMAGE","getCaptionFromImageModelElement","ImageCaptionUtils","createRangeOn","detach","imageTextAlternative","format","model","*Reset image width*","*Set image text alternative:* %0","registerDescriptionCallback","registerCustomCallback","chain","document","name","plugins","previous","author","forEach","newValue","alt","getNearestSelectionRange","hasAttribute","commandParams","markInlineFormat","selection","isInContent","toLowerCase","start","forward"];var ai,ci;ai=xi,ci=316,function(t){for(;--t;)ai.push(ai.shift())}(++ci);const li=function(t,e){return xi[t-=0]};class ui extends t.Plugin{afterInit(){const t=this.editor;if(!t[li("0x1a")].has(li("0x7")))return;const n=t[li("0x1a")][li("0x5c")](li("0x3c")),o=t[li("0x1a")][li("0x5c")]("ImageUtils"),r={},s=t[li("0x2a")];if(n[li("0x32")]("insertImage"),n[li("0x72")].registerElementLabel(li("0x51"),(t=>kr(s,"ELEMENT_IMAGE",t))),n[li("0x72")][li("0x46")]("imageInline",(t=>kr(s,li("0xb"),t))),n[li("0x72")][li("0x46")](li("0x30"),kr(s,"ELEMENT_CAPTION")),t[li("0x1a")][li("0x4e")](li("0x2c"))&&n[li("0x32")](li("0x64")),t[li("0x1a")].has("ImageBlockEditing")&&t[li("0x1a")][li("0x4e")]("ImageInlineEditing")&&(n.enableCommand("imageTypeInline",((e,r)=>{const s=o[li("0x3f")](t[li("0x12")][li("0x18")][li("0x24")]);t[li("0x12")][li("0x63")]((()=>{n.markBlockFormat(s,{commandName:"imageTypeInline",commandParams:[r]},[],li("0x70"))}))})),n[li("0x32")](li("0x42"),((e,r)=>{t.model[li("0x63")]((s=>{let i=o[li("0x3f")](t[li("0x12")][li("0x18")].selection),x=s[li("0xe")](i);const a=F.LivePosition[li("0x5e")](x[li("0x27")],li("0x6f")),c=F.LivePosition.fromPosition(x[li("0x53")],li("0x3e"));n[li("0x6d")]((()=>e(r))),i=o[li("0x3f")](t.model[li("0x18")][li("0x24")]),x=s[li("0xe")](i);const l=s[li("0x65")](a,c);a[li("0xf")](),c[li("0xf")](),n.markBlockFormat(i,{commandName:"imageTypeInline"},[],"convertInlineImageToBlock"),l[li("0x27")].isBefore(x[li("0x27")])&&n.markInsertion(s.createRange(l.start,x[li("0x27")]),li("0x38")),x[li("0x53")][li("0x56")](l.end)&&n[li("0x2e")](s[li("0x65")](x[li("0x53")],l[li("0x53")]),li("0x38"))}))})),n[li("0x6c")][li("0x16")](li("0x52"),li("0x38"),li("0x66"),(()=>{})),n[li("0x6c")][li("0x16")](li("0x52"),li("0x38"),"accept",(()=>{})),n[li("0x6c")].registerCustomCallback(li("0x52"),li("0x38"),li("0x41"),n[li("0x6c")][li("0x67")]("formatBlock","",li("0x1"))),n[li("0x6c")][li("0x16")]("insertion",li("0x38"),li("0x66"),(()=>{})),n._suggestionFactory[li("0x16")](li("0x75"),li("0x38"),"discard",(([e])=>{const o=n._suggestionFactory.getSuggestionCallback(li("0x75"),"",li("0x41"));let r=e[li("0x27")],s=e[li("0x53")];const i=t[li("0x12")][li("0x59")][li("0x20")](r,li("0x3a")),x=t.model[li("0x59")][li("0x20")](s,li("0x28"));i[li("0x74")]&&(r=i[li("0x27")]),x.isCollapsed&&(s=x[li("0x53")]),o([t[li("0x12")][li("0x65")](r,s)])})),n[li("0x6c")][li("0x16")](li("0x52"),li("0x38"),li("0x17"),a),n[li("0x6c")][li("0x16")]("insertion",li("0x38"),"chain",a)),t[li("0x1a")][li("0x4e")]("ImageCaptionEditing")&&(n.enableCommand("toggleImageCaption",((e,r)=>{const s=t[li("0x1a")][li("0x5c")](li("0xd"));let i=o[li("0x3f")](t[li("0x12")][li("0x18")][li("0x24")]),x=s[li("0xc")](i);t[li("0x12")].change((()=>{if(x)return void n[li("0x37")](t[li("0x12")][li("0xe")](x));const a=o.isBlockImage(i);e(r),i=o.getClosestSelectedImageElement(t[li("0x12")][li("0x18")][li("0x24")]),x=s[li("0xc")](i),n[li("0x2e")](t[li("0x12")].createRangeOn(x),a?null:li("0x58"))}))})),n[li("0x6c")][li("0x16")](li("0x75"),li("0x58"),li("0x17"),a)),t[li("0x1a")][li("0x4e")](li("0x0"))){n[li("0x32")](li("0x35"),((r,s)=>{const i=t[li("0x1a")][li("0x5c")](li("0x6e")).me,x=t[li("0x33")].get(li("0x35"));let a=o.getClosestSelectedImageElement(t.model[li("0x18")][li("0x24")]),c=t[li("0x12")][li("0xe")](a),l=x[li("0x76")];if(l==s.value)return;const u={commandName:li("0x35"),commandParams:[s],formatGroupId:(0,e.uid)()};t[li("0x12")][li("0x63")]((()=>{if(n.getSuggestions()[li("0x5f")]((t=>t[li("0x25")]&&i==t[li("0x1c")]&&(li("0x52")==t.type||li("0x61")==t.type)&&(li("0x68")==t[li("0x2f")]||"imageStylePostApply"==t.subType)&&t[li("0x4d")]()[li("0x2b")](c)))[li("0x1d")]((t=>n[li("0x2")](t.head))),a=o[li("0x3f")](t[li("0x12")][li("0x18")][li("0x24")]),c=t[li("0x12")][li("0xe")](a),x.refresh(),t[li("0x33")].get(li("0x48"))[li("0x40")](),t.commands[li("0x5c")](li("0x42")).refresh(),l=x[li("0x76")],l!=s.value)return o[li("0x55")](a)&&x[li("0x54")](s.value,a)?(r(s),a=o[li("0x3f")](t[li("0x12")][li("0x18")][li("0x24")]),void n[li("0x6a")](a,{...u,commandReversedParams:[{value:l||null}]},[],li("0x68"))):void(o[li("0x3b")](a)?n[li("0x6a")](a,u,[],"imageStylePostApply"):n[li("0x23")](c,u,li("0x9")))}))}));for(const e of t[li("0x1a")][li("0x5c")](li("0x0"))[li("0x6")])r[e[li("0x19")]]=e[li("0x4c")][li("0x26")]();n._suggestionFactory.registerCustomCallback(li("0x52"),li("0x68"),li("0x66"),(()=>{})),n[li("0x6c")][li("0x16")]("formatBlock",li("0x9"),li("0x66"),(()=>{})),n[li("0x6c")].registerCustomCallback(li("0x61"),"imageStylePostApply",li("0x66"),(()=>{})),n[li("0x6c")][li("0x16")](li("0x52"),li("0x68"),li("0x1"),(()=>{})),n[li("0x6c")].registerCustomCallback(li("0x52"),li("0x68"),li("0x41"),((t,e)=>{n[li("0x6c")][li("0x67")](li("0x52"),"","accept")(t,{commandName:e[li("0x3d")],commandParams:e[li("0x5")]})})),n[li("0x6c")].registerCustomCallback("formatBlock",li("0x68"),li("0x17"),a)}const i=[{type:li("0x52"),subType:li("0x68")},{type:"insertion",subType:li("0x58")},{type:"formatBlock",subType:li("0x38")},{type:"insertion",subType:"convertInlineImageToBlock"}];function x(t,e){const r=i[li("0x34")]((({type:e,subType:n})=>t[li("0x4b")]==e&&t.subType==n)),s=i[li("0x34")]((({type:t,subType:n})=>e[li("0x4b")]==t&&e[li("0x2f")]==n));if(r<0||s<0)return!1;const x=t[li("0x4d")](),a=e[li("0x4d")]();if((0==r||1==r)&&2==s&&x[li("0x8")](a))return!0;if(2==r&&3==s){const t=n[li("0x49")](x,"insertion")[li("0x5f")]((({suggestion:t,meta:e})=>e[li("0x5a")]&&li("0x38")==t.subType));if(t[li("0x4f")]>1&&a.end[li("0x2b")](x.start))return!0;if(1==t[li("0x4f")]&&(x[li("0x27")][li("0x2b")](a[li("0x53")])||x.end[li("0x2b")](a.start)))return!0}if(3==r&&3==s&&x[li("0x27")].isBefore(a.start)){const t=x[li("0x53")][li("0x71")],e=a.start[li("0x43")];return o[li("0x3b")](t)&&t===e}return!1}function a(t,e){return x(t,e)?[t,e]:x(e,t)?[e,t]:null}t[li("0x12")][li("0x18")][li("0x36")]((()=>{let e=!1;const r=Array.from(t[li("0x12")].document[li("0x5d")][li("0x2d")]());for(const{name:t,data:s}of r){const{group:r,type:i,subType:x,id:a}=n[li("0x45")](t);if("suggestion"==r&&n.hasSuggestion(a)){if(li("0x52")==i&&("imageStylePreApply"==x||li("0x9")==x)){const t=n.getSuggestion(a);if(s.newRange){const r=t[li("0x4d")]().getContainedElement();if(o[li("0x3b")](r))continue;n[li("0x2")](t),e=!0}}if(li("0x75")==i&&li("0x58")==x&&!s[li("0x6b")]){const t=n[li("0x57")](a);t[li("0x60")]&&t[li("0x60")][li("0x25")]&&(n.discardSuggestion(t.next),e=!0)}}}return e})),t[li("0x1a")][li("0x4e")](li("0x3"))&&n[li("0x32")](li("0xa"),((e,r)=>{const s=o.getClosestSelectedImageElement(t.model[li("0x18")].selection);s.getAttribute("width")!=r.width&&t[li("0x12")][li("0x63")]((()=>{n.markBlockFormat(s,{commandName:li("0xa"),commandParams:[r]})}))})),t[li("0x1a")].has("ImageTextAlternativeEditing")&&n[li("0x32")]("imageTextAlternative",((e,r)=>{const s=o[li("0x3f")](t[li("0x12")][li("0x18")][li("0x24")]);(s[li("0x21")](li("0x1f"))?s[li("0x4a")]("alt"):"")!=r[li("0x1e")]&&t[li("0x12")][li("0x63")]((()=>{n[li("0x6a")](s,{commandName:"imageTextAlternative",commandParams:[r]})}))})),n[li("0x72")][li("0x15")]((t=>{if(i.find((({type:e,subType:n})=>t.type==e&&t[li("0x2f")]==n)))return t[li("0x1b")]?{}:void 0})),n[li("0x72")][li("0x15")]((t=>{if(li("0x75")==t[li("0x4b")]||"deletion"==t.type){const e=t[li("0x50")]();if(e&&e.is(li("0x44"),li("0x30")))return{type:li("0x75")==t[li("0x4b")]?li("0x73"):"removeObject",name:e[li("0x19")],quantity:1}}})),n[li("0x72")][li("0x15")]((t=>li("0x52")==t[li("0x4b")]&&li("0x38")==t[li("0x2f")]?{type:"format",content:li("0x29")}:"formatBlock"==t[li("0x4b")]&&li("0x70")==t[li("0x2f")]?{type:li("0x11"),content:li("0x39")}:void 0)),n[li("0x72")][li("0x15")]((t=>{const{data:e}=t;if(e){if(li("0x35")==e[li("0x3d")]){const t=e[li("0x22")][0][li("0x76")];return n=li("0x47")===t?kr(s,li("0x69")):r[t]||t,{type:"format",content:kr(s,li("0x4"),n)}}if(li("0x10")==e[li("0x3d")]){const t=e[li("0x22")][0][li("0x1e")];return t?{type:"format",content:kr(s,li("0x14"),'"'+t+'"')}:{type:li("0x11"),content:kr(s,li("0x5b"))}}if(li("0xa")==e.commandName){const t=e[li("0x22")][0][li("0x62")];return t?{type:li("0x11"),content:kr(s,li("0x31"),t)}:{type:li("0x11"),content:kr(s,li("0x13"))}}}var n}))}}const di=["commandName","blockIndent","get","*Outdent:* %0","plugins","outdentBlock","schema","from","indentBlock","change","editor","model","getItems","format","filter","markBlockFormat","IndentEditing","getItemLabel","document","getSelectedBlocks","locale","indent","_descriptionFactory","*Indent:* %0","outdent","registerDescriptionCallback","checkAttribute","enableCommand","selection","has"];var fi,gi;fi=di,gi=221,function(t){for(;--t;)fi.push(fi.shift())}(++gi);const mi=function(t,e){return di[t-=0]};class hi extends t.Plugin{afterInit(){const t=this[mi("0x1d")],e=t[mi("0x17")][mi("0x15")]("TrackChangesEditing");t[mi("0x17")][mi("0x12")](mi("0x5"))&&(e[mi("0x10")](mi("0xa")),e.enableCommand(mi("0xd")));const n=t[mi("0x9")];if(t[mi("0x17")].has("IndentBlock")){for(const n of[mi("0x1b"),mi("0x18")])e.enableCommand(n,(()=>{const o=Array[mi("0x1a")](this[mi("0x1d")].model[mi("0x7")][mi("0x11")][mi("0x8")]())[mi("0x3")]((t=>this[mi("0x1d")][mi("0x0")][mi("0x19")][mi("0xf")](t,mi("0x14"))));t[mi("0x0")][mi("0x1c")]((()=>{for(const t of o)e[mi("0x4")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:mi("0x1b")})}))}));e._descriptionFactory[mi("0xe")]((t=>{const{data:o}=t;if(!o)return;if(mi("0x1b")!=o[mi("0x13")]&&mi("0x18")!=o[mi("0x13")])return;const r=t[mi("0x1")]()[0],s=e[mi("0xb")][mi("0x6")](r.name);return mi("0x1b")==o[mi("0x13")]?{type:mi("0x2"),content:kr(n,mi("0xc"),s)}:"outdentBlock"==o[mi("0x13")]?{type:mi("0x2"),content:kr(n,mi("0x16"),s)}:void 0}))}}}var pi,bi,Ei=["init","enableCommand","input","editor","TrackChangesEditing"];pi=Ei,bi=105,function(t){for(;--t;)pi.push(pi.shift())}(++bi);var _i=function(t,e){return Ei[t-=0]};class yi extends t.Plugin{static get requires(){return[Ts.Input]}[_i("0x0")](){this[_i("0x3")].plugins.get(_i("0x4"))[_i("0x1")](_i("0x2"))}}const Ti=["LinkEditing","getRanges","format","unlink","commandParams","locale","document","markInlineFormat","change","registerDescriptionCallback","*Set link:* %0","has","editor","getFirstRange","hasAttribute","isCollapsed","enableCommand","commandName","*Remove link*","getAttribute","_descriptionFactory","plugins","linkHref","afterInit","selection","link","model","getFirstPosition","TrackChangesEditing"];var Ci,ki;Ci=Ti,ki=440,function(t){for(;--t;)Ci.push(Ci.shift())}(++ki);const vi=function(t,e){return Ti[t-=0]};class Ai extends t.Plugin{[vi("0x12")](){const t=this[vi("0x7")];if(!t[vi("0x10")][vi("0x6")](vi("0x18")))return;const e=t.plugins.get(vi("0x17"));e[vi("0xb")](vi("0x14"),((n,o)=>{const r=t[vi("0x15")][vi("0x1")].selection;let s=[];if(r[vi("0xa")]){if(!r[vi("0x9")](vi("0x11")))return void n(o);{const e=(0,Ts.findAttributeRange)(r[vi("0x16")](),vi("0x11"),r[vi("0xe")](vi("0x11")),t[vi("0x15")]);s=[e]}}else s=Array.from(r[vi("0x19")]());t[vi("0x15")][vi("0x3")]((()=>{for(const t of s)e[vi("0x2")](t,{commandName:"link",commandParams:[o]})}))})),e[vi("0xb")](vi("0x1b"),(()=>{const n=this[vi("0x7")][vi("0x15")],o=n[vi("0x1")][vi("0x13")];n[vi("0x3")]((()=>{let n=[];n=o[vi("0xa")]?[(0,Ts.findAttributeRange)(o[vi("0x16")](),vi("0x11"),o.getAttribute(vi("0x11")),t.model)]:jr(vi("0x11"),o[vi("0x8")](),t.model);for(const t of n)e[vi("0x2")](t,{commandName:"unlink",commandParams:[]})}))})),e[vi("0xf")][vi("0x4")]((e=>{const{data:n}=e,o=t[vi("0x0")];if(n){if(vi("0x14")==n.commandName){const t=n[vi("0x1c")][0];return{type:"format",content:kr(o,vi("0x5"),'"'+t+'"')}}return vi("0x1b")==n[vi("0xc")]?{type:vi("0x1a"),content:kr(o,vi("0xd"))}:void 0}}))}}const Ri=["from","enableCommand","getSelectedBlocks","indentList","commands","previousSibling","TrackChangesEditing","listIndent","execute","has","ELEMENT_BULLETED_LIST","isObject","selection","plugins","ListEditing","model","todo","ELEMENT_NUMBERED_LIST","parent","document","_descriptionFactory","commandName","ELEMENT_LIST_ITEM","length","value","*Check item*","todoList","name","_selectedElements","bulleted","todoListChecked","element","*Indent:* %0","TodoListEditing","createPositionAt","listType","filter","outdentList","createRange","paragraph","*Change to:* %0","checkTodoList","replace","change","get","bulletedList","nextSibling","schema","blockName","add","*Uncheck item*","checkChild","List","findIndex","slice","markBlockFormat","registerDescriptionCallback","getAttribute","numberedList","format","listItem"];var Ii,Si;Ii=Ri,Si=282,function(t){for(;--t;)Ii.push(Ii.shift())}(++Si);const wi=function(t,e){return Ri[t-=0]};class Mi extends t.Plugin{afterInit(){const t=this.editor,e=t.locale;if(!t[wi("0x24")][wi("0x20")](wi("0x25")))return;const n=t.plugins.get(wi("0x1d")),o=t[wi("0x24")][wi("0x20")](wi("0x38"));function r(e){return()=>{const o=t.model[wi("0x2a")][wi("0x23")],r=t[wi("0x1b")][wi("0x6")](e);if(r.value)return void t[wi("0x1f")](wi("0x1"),{});const s=e[wi("0x10")](0,-4),i=function(t,e,n){let o=Array[wi("0x17")](t)[wi("0x3b")]((t=>{return e=t,(o=n)[wi("0xd")](e[wi("0x29")],"listItem")&&!o[wi("0x22")](e);var e,o}));o=o[wi("0x3b")]((t=>!t.is("element",wi("0x16"))||t[wi("0x13")](wi("0x3a"))!=e));const r=new Set;for(const t of o)t.is("element",wi("0x16"))?r.add(Ni(t)):r[wi("0xb")](t);return Array[wi("0x17")](r)}(o[wi("0x19")](),s,t.model[wi("0x9")]);t[wi("0x26")][wi("0x5")]((()=>{for(const t of i)n[wi("0x11")](t,{commandName:e,commandParams:[{forceValue:!r[wi("0x2f")]}],formatGroupId:wi("0xa")},Li(t))}))}}function s(e){return()=>{const o=function(t){const e=(t=Array[wi("0x17")](t))[wi("0xf")]((t=>wi("0x16")!=t[wi("0x32")]));return e>-1&&(t=t[wi("0x10")](0,e)),t}(t[wi("0x26")][wi("0x2a")].selection[wi("0x19")]()),r=t.model[wi("0x0")](t[wi("0x26")][wi("0x39")](o[0],"before"),t[wi("0x26")][wi("0x39")](o[o[wi("0x2e")]-1],"end"));t[wi("0x26")][wi("0x5")]((()=>{n[wi("0x11")](r,{commandName:e,commandParams:[],formatGroupId:wi("0x1e")},function(t){const e=new Set;for(const n of t){let t=n[wi("0x8")];for(;t&&t[wi("0x13")](wi("0x1e"))>n[wi("0x13")](wi("0x1e"));)e.add(t),t=t[wi("0x8")]}return Array[wi("0x17")](e)}(o))}))}}n[wi("0x18")](wi("0x14"),r(wi("0x14"))),n[wi("0x18")](wi("0x7"),r(wi("0x7"))),o&&n.enableCommand(wi("0x31"),r("todoList")),n[wi("0x18")]("indentList",s(wi("0x1a"))),n[wi("0x18")]("outdentList",s(wi("0x3c"))),o&&n[wi("0x18")](wi("0x3"),(()=>{const e=t.commands[wi("0x6")](wi("0x3")),o=Array[wi("0x17")](e[wi("0x33")]);o[wi("0x3b")]((t=>t.getAttribute(wi("0x35"))!=e.value)),t[wi("0x26")][wi("0x5")]((()=>{for(const t of o)n.markBlockFormat(t,{commandName:"checkTodoList",commandParams:[{forceValue:!e[wi("0x2f")]}]})}))})),n[wi("0x2b")].registerElementLabel(wi("0x16"),(t=>kr(e,wi("0x2d"),t))),n[wi("0x2b")][wi("0x12")]((t=>{const{data:n}=t;if(n){if(wi("0x14")==n[wi("0x2c")]||wi("0x7")==n[wi("0x2c")]||"todoList"==n[wi("0x2c")])switch(n[wi("0x2c")][wi("0x4")](wi("0xe"),"")){case wi("0x34"):return o(kr(e,wi("0x21")));case"numbered":return o(kr(e,wi("0x28")));case wi("0x27"):return o(kr(e,"ELEMENT_TODO_LIST"))}if(wi("0x1a")==n[wi("0x2c")])return{type:"format",content:kr(e,wi("0x37"),kr(e,wi("0x2d")))};if(wi("0x3c")==n[wi("0x2c")])return{type:wi("0x15"),content:kr(e,"*Outdent:* %0",kr(e,wi("0x2d")))};if(wi("0x3")==n[wi("0x2c")])return n.commandParams[0].forceValue?{type:"format",content:kr(e,wi("0x30"))}:{type:wi("0x15"),content:kr(e,wi("0xc"))}}function o(t){return{type:wi("0x15"),content:kr(e,wi("0x2"),t)}}}))}}function Ni(t){const e=t[wi("0x13")](wi("0x1e"));if(0==e)return t;let n=t;for(;t[wi("0x1c")]&&t[wi("0x1c")].is(wi("0x36"),"listItem");){const o=t[wi("0x1c")][wi("0x13")](wi("0x1e"));if(o==e)n=t[wi("0x1c")];else if(o<e)break;t=t[wi("0x1c")]}return n}function Li(t){const e=[];if(t.is(wi("0x36"),wi("0x16"))&&t[wi("0x13")](wi("0x1e"))>0){let n=t[wi("0x8")];for(;n&&"listItem"==n[wi("0x32")]&&n[wi("0x13")](wi("0x1e"))==t[wi("0x13")]("listIndent");)e.push(n),n=n[wi("0x8")]}return e}const Oi=["registerElementLabel","editor","locale","high","options","div","TrackChangesEditing","has","get","MediaEmbedEditing","mediaEmbed","ELEMENT_MEDIA","elementToElement","for","plugins","dataDowncast","_descriptionFactory","conversion"];var Fi,Pi;Fi=Oi,Pi=358,function(t){for(;--t;)Fi.push(Fi.shift())}(++Pi);const Di=function(t,e){return Oi[t-=0]};class Bi extends t.Plugin{afterInit(){const t=this[Di("0x3")];if(!t[Di("0x10")][Di("0x9")](Di("0xb")))return;const e=t[Di("0x10")][Di("0xa")](Di("0x8")),n=t[Di("0x4")];e.enableCommand(Di("0xc")),e[Di("0x0")][Di("0x2")]("media",(t=>kr(n,Di("0xd"),t))),t[Di("0x1")][Di("0xf")](Di("0x11"))[Di("0xe")]({model:"media",view:(t,{writer:e,options:n})=>{if(n.showSuggestionHighlights)return e.createEmptyElement(Di("0x7"))},converterPriority:Di("0x5")}),t.data.downcastDispatcher.on("attribute:url:media",((t,e,n)=>{n[Di("0x6")].showSuggestionHighlights&&t.stop()}),{priority:Di("0x5")})}}const ji=["afterInit","has","MentionEditing","plugins","editor","get","TrackChangesEditing"];var Ui,Hi;Ui=ji,Hi=428,function(t){for(;--t;)Ui.push(Ui.shift())}(++Hi);const Gi=function(t,e){return ji[t-=0]};class Vi extends t.Plugin{[Gi("0x6")](){const t=this[Gi("0x3")];t[Gi("0x2")][Gi("0x0")](Gi("0x1"))&&t[Gi("0x2")][Gi("0x4")](Gi("0x5")).enableCommand("mention")}}const zi=["get","plugins","pageBreak","TrackChangesEditing","afterInit","editor","registerElementLabel","has","enableCommand","_descriptionFactory","locale","ELEMENT_PAGE_BREAK","PageBreakEditing"];var Wi,Ki;Wi=zi,Ki=328,function(t){for(;--t;)Wi.push(Wi.shift())}(++Ki);const qi=function(t,e){return zi[t-=0]};class $i extends t.Plugin{[qi("0x1")](){const t=this[qi("0x2")];if(!t[qi("0xb")][qi("0x4")](qi("0x9")))return;t[qi("0xb")][qi("0xa")](qi("0x0"))[qi("0x5")](qi("0xc"));const e=t[qi("0xb")][qi("0xa")](qi("0x0")),n=t[qi("0x7")];e[qi("0x6")][qi("0x3")](qi("0xc"),(t=>kr(n,qi("0x8"),t)))}}const Xi=["data","markBlockFormat","span","addMarker:suggestion:insertion","Paragraph","locale","registerDescriptionCallback","name","document","ck-suggestion-marker-split","get","TrackChangesEditing","paragraph","change","markerRange","downcastDispatcher","enableCommand","editor","schema","options","insertion","has","addClass","checkChild","markerName","isLimit","createUIElement","blockName","highest","isBlock","getFirstRange","from","_descriptionFactory","commandName","plugins","ELEMENT_PARAGRAPH","$text","mapper","type","consumable","model","selection","afterInit","end","insertParagraph","getItemLabel","activeMarkers","*Insert:* %0","nodeAfter","writer","start"];var Ji,Qi;Ji=Xi,Qi=421,function(t){for(;--t;)Ji.push(Ji.shift())}(++Qi);const Yi=function(t,e){return Xi[t-=0]};class Zi extends t.Plugin{[Yi("0x1d")](){const t=this.editor;if(!t[Yi("0x15")][Yi("0x8")](Yi("0x2a")))return;const e=t[Yi("0x2b")],n=t[Yi("0x15")][Yi("0x30")]("TrackChangesEditing");n[Yi("0x13")].registerElementLabel(Yi("0x32"),(t=>kr(e,Yi("0x16"),t))),n[Yi("0x3")](Yi("0x32"),((e,o={})=>{const r=t[Yi("0x1b")][Yi("0x2e")],s=o.selection||r[Yi("0x1c")],i=Array[Yi("0x12")](s.getSelectedBlocks()).filter((t=>{return e=t,(n=this[Yi("0x4")].model[Yi("0x5")])[Yi("0xa")](e.parent,"paragraph")&&!n.isObject(e)&&Yi("0x32")!=e.name;var e,n}));t.model[Yi("0x0")]((()=>{for(const t of i)n[Yi("0x27")](t,{commandName:Yi("0x32"),commandParams:[],formatGroupId:Yi("0xe")},Ur(t))}))})),n[Yi("0x13")][Yi("0x2c")]((t=>{const{data:n}=t;if(n&&Yi("0x32")==n[Yi("0x14")])return{type:"format",content:kr(e,"*Change to:* %0",kr(e,"ELEMENT_PARAGRAPH"))}})),n.enableCommand(Yi("0x1f")),t.editing[Yi("0x2")].on(Yi("0x29"),tx(t),{priority:Yi("0xf")}),t[Yi("0x26")].downcastDispatcher.on(Yi("0x29"),((e,n,o)=>{o[Yi("0x6")].showSuggestionHighlights&&tx(t,{showActiveMarker:!1})(e,n,o)}),{priority:"highest"});const o=n._descriptionFactory;o[Yi("0x2c")]((n=>{if(Yi("0x7")!==n[Yi("0x19")])return;const{start:r,end:s}=n[Yi("0x11")]();if(!r.isTouching(s)||!r[Yi("0x23")])return;const i=t[Yi("0x1b")][Yi("0x5")],x=r[Yi("0x23")];return i.isBlock(x)&&!i[Yi("0xc")](x)&&i[Yi("0xa")](x,Yi("0x17"))?{type:"insertion",content:kr(e,Yi("0x22"),o[Yi("0x20")](x[Yi("0x2d")],1))}:void 0}))}}function tx(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const s=t[Yi("0x15")][Yi("0x30")](Yi("0x31")),i=o[Yi("0x1")][Yi("0x25")],x=o[Yi("0x1")][Yi("0x1e")],a=t[Yi("0x1b")][Yi("0x5")];if(!i.isTouching(x)||!i[Yi("0x23")])return;const c=i[Yi("0x23")];if(a[Yi("0x10")](c)&&!a[Yi("0xc")](c)&&a[Yi("0xa")](c,Yi("0x17"))){if(!r[Yi("0x1a")].consume(o[Yi("0x1")],n[Yi("0x2d")]))return;const t=r.writer[Yi("0xd")](Yi("0x28"),{class:Yi("0x2f")}),i=r[Yi("0x18")].toViewPosition(x);e&&s[Yi("0x21")].includes(o[Yi("0xb")])&&r.writer[Yi("0x9")]("ck-suggestion-marker--active",t),r[Yi("0x24")].insert(i,t),r[Yi("0x18")].bindElementToMarker(t,o[Yi("0xb")])}}}const ex=["afterInit","registerDescriptionCallback","markInlineFormat","selection","isCollapsed","TrackChangesEditing","editor","model","change","plugins","getAttributeProperties","commandName","isFormatting","document","_descriptionFactory","enableCommand","has","createRangeOn","removeFormat","from","get"];var nx,ox;nx=ex,ox=282,function(t){for(;--t;)nx.push(nx.shift())}(++ox);const rx=function(t,e){return ex[t-=0]};class sx extends t.Plugin{[rx("0xc")](){const t=this[rx("0x12")];if(!t[rx("0x0")][rx("0x7")]("RemoveFormatEditing"))return;const e=t.plugins[rx("0xb")](rx("0x11"));e[rx("0x6")](rx("0x9"),(n=>{const o=t[rx("0x13")][rx("0x4")][rx("0xf")];o[rx("0x10")]?n():t[rx("0x13")][rx("0x14")]((()=>{const n=Array[rx("0xa")](o.getRanges());for(const o of n)for(const n of o.getItems())ix(n,t[rx("0x13")].schema)&&e[rx("0xe")](t[rx("0x13")][rx("0x8")](n),{commandName:rx("0x9"),commandParams:[]})}))})),e[rx("0x5")][rx("0xd")]((e=>{const{data:n}=e;if(n&&rx("0x9")==n[rx("0x2")])return{type:"format",content:kr(t.locale,"*Remove all formatting*")}}))}}function ix(t,e){for(const[n]of t.getAttributes()){const t=e[rx("0x1")](n);if(t&&t[rx("0x3")])return!0}return!1}const xx=["plugins","acceptSelectedSuggestions","editor","trackChanges","discardSuggestion","acceptAllSuggestions","get","TrackChangesEditing","acceptSuggestion","RestrictedEditingModeEditing","enableCommand","discardSelectedSuggestions","goToNextRestrictedEditingException"];var ax,cx;ax=xx,cx=296,function(t){for(;--t;)ax.push(ax.shift())}(++cx);const lx=function(t,e){return xx[t-=0]};class ux extends t.Plugin{afterInit(){const t=this[lx("0x5")];if(!t[lx("0x3")].has(lx("0xc")))return;const e=t[lx("0x3")][lx("0x9")](lx("0xa"));e.enableCommand("goToPreviousRestrictedEditingException"),e.enableCommand(lx("0x2"));const n=t[lx("0x3")][lx("0x9")](lx("0xc"));n[lx("0x0")](lx("0x6")),n[lx("0x0")](lx("0xb")),n[lx("0x0")](lx("0x7")),n.enableCommand(lx("0x8")),n[lx("0x0")]("discardAllSuggestions"),n[lx("0x0")](lx("0x4")),n.enableCommand(lx("0x1"))}}const dx=["writer","options","bindElementToMarker","toViewPosition","downcastDispatcher","model","addClass","editing","registerElementLabel","ck-suggestion-marker--active","locale","shiftEnter","enableCommand","high","insert","consumable","activeMarkers","addMarker:suggestion:deletion","showSuggestionHighlights","editor","markerRange","requires","split","ck-suggestion-marker-","ELEMENT_LINE_BREAK","plugins","softBreak","test","getItems","markerName"];var fx,gx;fx=dx,gx=149,function(t){for(;--t;)fx.push(fx.shift())}(++gx);const mx=function(t,e){return dx[t-=0]};class hx extends t.Plugin{static get[mx("0x16")](){return[Is.ShiftEnter]}init(){const t=this[mx("0x14")],e=t[mx("0x1a")].get("TrackChangesEditing");e[mx("0xd")](mx("0xc")),t[mx("0x8")][mx("0x5")].on("addMarker:suggestion:insertion",px(t),{priority:mx("0xe")}),t[mx("0x8")].downcastDispatcher.on(mx("0x12"),px(t),{priority:mx("0xe")}),t.data[mx("0x5")].on("addMarker:suggestion",((e,n,o)=>{o[mx("0x2")][mx("0x13")]&&px(t,{showActiveMarker:!1})(e,n,o)})),e._descriptionFactory[mx("0x9")](mx("0x1b"),(e=>kr(t[mx("0xb")],mx("0x19"),e)))}}function px(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const s=t[mx("0x1a")].get("TrackChangesEditing");if(!r[mx("0x10")][mx("0x1c")](o[mx("0x15")],n.name))return;const i=t[mx("0x6")];for(const t of o.markerRange[mx("0x1d")]()){if(!t.is("element",mx("0x1b")))continue;const n="deletion"==o[mx("0x0")][mx("0x17")](":")[1]?"merge":"split",x=r[mx("0x1")].createUIElement("span",{class:mx("0x18")+n}),a=r.mapper[mx("0x4")](i.createPositionBefore(t));e&&s[mx("0x11")].includes(o[mx("0x0")])&&r[mx("0x1")][mx("0x7")](mx("0xa"),x),r[mx("0x1")][mx("0xf")](a,x),r.mapper[mx("0x3")](x,o[mx("0x0")])}}}const bx=["change","getRanges","forceValue","format","commands","has","registerDescriptionCallback","isCollapsed","get","editor","plugins","restrictedEditingException","locale","model","FORMAT_RESTRICTED_ENABLED","_descriptionFactory","commandParams","value","commandName"];var Ex,_x;Ex=bx,_x=239,function(t){for(;--t;)Ex.push(Ex.shift())}(++_x);const yx=function(t,e){return bx[t-=0]};class Tx extends t.Plugin{afterInit(){const t=this[yx("0x11")],e=t[yx("0x2")],n=t[yx("0x1")];if(!t[yx("0x12")][yx("0xd")]("StandardEditingModeEditing"))return;const o=t.plugins[yx("0x10")]("TrackChangesEditing"),r=yx("0x0"),s=t[yx("0xc")][yx("0x10")](r);o.enableCommand(r,((t,n={})=>{const i=e.document.selection;if(i[yx("0xf")])return void t(n);const x=void 0!==n[yx("0xa")]?n[yx("0xa")]:!s[yx("0x6")];e[yx("0x8")]((()=>{const t=Array.from(i[yx("0x9")]());for(const n of t){const t=x?[n]:jr(r,n,e);for(const e of t)o.markInlineFormat(e,{commandName:r,commandParams:[{forceValue:x}]})}}))})),o[yx("0x4")][yx("0xe")]((t=>{const{data:e}=t;if(e&&e[yx("0x7")]==r)return e[yx("0x5")][0].forceValue?{type:yx("0xb"),content:kr(n,yx("0x3"))}:{type:yx("0xb"),content:kr(n,"FORMAT_RESTRICTED_DISABLED")}}))}}const Cx=["commands","*Format:* %0","*Remove format:* %0","locale","getItems","includes","change","push","document","modelElements","isBlock","getStyleDefinition","styleName","has","inline","_descriptionFactory","style.definitions","value","style","TrackChangesEditing","DataSchema","filter","find","getSelectedBlocks","Style","model","getRangesWithClasses","classes","format","block","element","toLowerCase","enabledStyles","getRanges","name","get","getAttribute","markInlineFormat","style:","plugins","forceValue","commandParams","afterInit","editor","createRangeOn","config","commandName","from"];var kx,vx;kx=Cx,vx=465,function(t){for(;--t;)kx.push(kx.shift())}(++vx);const Ax=function(t,e){return Cx[t-=0]};class Rx extends t.Plugin{[Ax("0x9")](){const t=this[Ax("0xa")];if(!t[Ax("0x6")][Ax("0x1c")](Ax("0x27")))return;const e=t[Ax("0xf")][Ax("0x2")](Ax("0x21")),n=t.plugins[Ax("0x2")](Ax("0x22")),o=t[Ax("0x12")],r=t.plugins[Ax("0x2")](Ax("0x23")),s=function(t,e=[]){const n={block:[],inline:[]};for(const o of e){const e=[],r=[];for(const n of t.getDefinitionsForView(o.element))n.isBlock?e.push(n.model):r.push(n.model);e.length?n.block.push({...o,modelElements:e,isBlock:!0}):n.inline.push({...o,ghsAttributes:r})}return n}(r,t[Ax("0xc")][Ax("0x2")](Ax("0x1f")));n.enableCommand(Ax("0x21"),((o,{styleName:i})=>{const x=t[Ax("0x28")][Ax("0x17")].selection,a=this.getStyleDefinition(i,s);if(!a)return;if(!e[Ax("0x2f")][Ax("0x14")](i))return;if(x.isCollapsed&&!a[Ax("0x19")])return void o({styleName:i});const c=!e[Ax("0x20")][Ax("0x14")](a[Ax("0x1")]);if(a[Ax("0x19")]){const e=Yr(Array[Ax("0xe")](x[Ax("0x26")]())[Ax("0x24")]((t=>a[Ax("0x18")][Ax("0x14")](t[Ax("0x1")]))),t.model);t.model[Ax("0x15")]((()=>{for(const t of e)n.markBlockFormat(t,{commandName:Ax("0x21"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:Ax("0x5")+i})}))}else{let e=Array[Ax("0xe")](x[Ax("0x0")]());if(!c){const n=Array[Ax("0xe")](r.getDefinitionsForView(a[Ax("0x2d")],!1))[0].model,o=[];for(const r of e){const e=this[Ax("0x29")](t[Ax("0x28")],r,a[Ax("0x2a")],n);o[Ax("0x16")](...e)}e=o}t.model[Ax("0x15")]((()=>{for(const t of e)n[Ax("0x4")](t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Ax("0x1e")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&Ax("0x21")===e[Ax("0xd")])return e[Ax("0x8")][0][Ax("0x7")]?{type:"format",content:kr(o,Ax("0x10"),e.commandParams[0][Ax("0x1b")][Ax("0x2e")]())}:{type:Ax("0x2b"),content:kr(o,Ax("0x11"),e[Ax("0x8")][0][Ax("0x1b")][Ax("0x2e")]())}}))}[Ax("0x1a")](t,e){let n=e[Ax("0x2c")][Ax("0x25")]((e=>e.name===t));return n||(n=e[Ax("0x1d")].find((e=>e[Ax("0x1")]===t))),n}getRangesWithClasses(t,e,n,o){const r=[];for(const s of e[Ax("0x13")]()){const e=s[Ax("0x3")](o);e&&n.every((t=>e[Ax("0x2a")][Ax("0x14")](t)))&&r[Ax("0x16")](t[Ax("0xb")](s))}return r}}const Ix=["registerCustomCallback","ELEMENT_TABLE_ROW_WITH_TEXT","insertTableRowAbove","low","setSelection","refresh","discard","getSuggestion","nodeAfter","element","minRow","values","start","execute","isTouching","_tablePostFixingSubtypes","colspan","highest","_tableSuggestions","getAttribute","tableCell","span","rowspan","classes","markMultiRangeDeletion","*Insert:* %0","enqueueChange","maxColumn","hasAttribute","map","locale","insert","ELEMENT_TABLE_COLUMN_WITH_TEXT","get","detach","item","above","addClass","substr","tableRow","createTableWalker","getContainedElement","toViewElement","join","addRange","MAX_SAFE_INTEGER","rootName","$graveyard","root","mapper","getChanges","downcastDispatcher","minColumn","removeClass","length","order","ELEMENT_TABLE_COLUMN","enableCommand","change:data","getFirstRange","max","ELEMENT_TABLE_WITH_TEXT","from","table","MIN_SAFE_INTEGER","data","getSelectionAffectedTableCells","_getSuggestionCoords","getRowIndexes","filter","showSuggestionHighlights","getItems","isArray","toLowerCase","commands","plugins","push","forceValue","isEqual","TableUtils","last","afterInit","maxRow","deletion","insertion","getChangedMarkers","TrackChangesEditing","insertTableColumnLeft","accept","_suggestionFactory","registerDescriptionCallback","min","isInContent","oldRange","getCellLocation","createRangeIn","*Remove:* %0","position","insertTableRowBelow","findAncestor","createRangeOn","editor","name","subType","createPositionAt","type","change","includes","batch","left","tableColumn","isIntersectingWithRange","selection","textProxy","insertTableColumnRight","getRanges","tablePaste","_splitMarkerName","suggestion","registerElementLabel","_setupColumnsRowsFixing","ELEMENT_TABLE_ROW","getChildren","getColumnIndexes","removeTableColumn","end","differ","insertTable","ELEMENT_TABLE","first","removeTableRow","_descriptionFactory","document","fromRange","startsWith","addMarker:suggestion","markMultiRangeInsertion","some","cell","model"];var Sx,wx;Sx=Ix,wx=191,function(t){for(;--t;)Sx.push(Sx.shift())}(++wx);const Mx=function(t,e){return Ix[t-=0]};class Nx extends t.Plugin{constructor(t){super(t),this._tablePostFixingSubtypes=[Mx("0x80"),"tableColumn"]}[Mx("0x1e")](){const t=this[Mx("0x32")],e=t[Mx("0x58")].document.selection;if(!t[Mx("0x18")].has("TableEditing"))return;const n=t[Mx("0x77")],o=t[Mx("0x18")][Mx("0x7a")](Mx("0x23")),r=t[Mx("0x18")][Mx("0x7a")](Mx("0x1c"));o[Mx("0x50")][Mx("0x44")](Mx("0xc"),(t=>kr(n,Mx("0x4d"),t))),this._setupColumnsRowsFixing(),o[Mx("0x6")](Mx("0x4c")),o.enableCommand("selectTableRow"),o.enableCommand("selectTableColumn");for(const n of[Mx("0x5b"),Mx("0x2f")]){const s=t[Mx("0x17")][Mx("0x7a")](n);o[Mx("0x6")](n,(n=>{t.model[Mx("0x37")]((t=>{n();const i=Mx("0x7d")===s[Mx("0x4")],x=r[Mx("0xf")](e),a=r[Mx("0x11")](x),c=i?a.first-1:a[Mx("0x1d")]+1,l=x[0].findAncestor(Mx("0xc")),u=r[Mx("0x81")](l,{startRow:c,endRow:c}),d=Array.from(u)[Mx("0x76")]((e=>t[Mx("0x31")](e[Mx("0x57")])));o[Mx("0x55")](d,Mx("0x80"))}))}))}for(const n of[Mx("0x24"),Mx("0x3f")]){const s=t[Mx("0x17")][Mx("0x7a")](n);o[Mx("0x6")](n,(n=>{t[Mx("0x58")][Mx("0x37")]((t=>{n();const i=Mx("0x3a")===s[Mx("0x4")],x=r[Mx("0xf")](e),a=r[Mx("0x48")](x),c=i?a[Mx("0x4e")]-1:a[Mx("0x1d")]+1,l=x[0][Mx("0x30")]("table"),u=r[Mx("0x81")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array.from(u)[Mx("0x76")]((e=>t[Mx("0x31")](e[Mx("0x57")])));o[Mx("0x55")](d,"tableColumn")}))}))}for(const n of[Mx("0x4f"),Mx("0x49")]){const s=n[Mx("0x7f")](11),i=s[Mx("0x16")](),x=i[Mx("0x7f")](0,3)+Mx("0x6e"),a=Mx("0xc")+s,c=Mx("0x28")+s,l="max"+s;o[Mx("0x6")](n,(()=>{t[Mx("0x58")][Mx("0x37")]((t=>{const s=r.getSelectionAffectedTableCells(e),u=s[0].findAncestor("table");let d;if(Mx("0x4f")==n){const t=r[Mx("0x11")](s);d={startRow:t[Mx("0x4e")],endRow:t[Mx("0x1d")],includeAllSlots:!0}}else{const t=r[Mx("0x48")](s);d={startColumn:t.first,endColumn:t[Mx("0x1d")],includeAllSlots:!0}}const f=r[Mx("0x81")](u,d),g=Array[Mx("0xb")](f)[Mx("0x76")]((({cell:t})=>t)),m=Lx(g[Mx("0x12")]((t=>t[Mx("0x75")](x)))),h=Lx(g.filter((t=>!t[Mx("0x75")](x))))[Mx("0x76")]((e=>t.createRangeOn(e))),p=o[Mx("0x71")](h,a);if(p&&(Mx("0x80")==p[Mx("0x34")]||"tableColumn"==p.subType)){const e=this[Mx("0x10")](p);for(const n of m){const o=t[Mx("0x31")](n),s=r[Mx("0x2b")](n),a=n.getAttribute(x)-1,u=e[c],d=e[l];u<=s[i]&&s[i]+a<=d&&p[Mx("0x85")](o)}}}))}))}function s(n){const o=Array[Mx("0xb")](e.getRanges())[Mx("0x76")]((t=>F.LiveRange[Mx("0x52")](t)));t.model.change((e=>{const r=e[Mx("0x39")];n=n.filter((t=>Mx("0x88")!=t.root.rootName)),e[Mx("0x5d")](n),t.commands[Mx("0x7a")](Mx("0x4f"))[Mx("0x5e")](),t[Mx("0x66")](Mx("0x4f"),{forceDefaultExecution:!0}),t.model[Mx("0x73")]((()=>{t[Mx("0x58")][Mx("0x73")](r,(t=>{const e=o.filter((t=>"$graveyard"!=t[Mx("0x89")][Mx("0x87")]));e.length>0&&t.setSelection(e);for(const t of o)t[Mx("0x7b")]()}))}))}))}function i(n){t[Mx("0x58")][Mx("0x37")]((o=>{const r=Array[Mx("0xb")](e[Mx("0x40")]())[Mx("0x76")]((t=>F.LiveRange.fromRange(t))),s=[];for(const t of n)for(const e of t.getItems({shallow:!0}))s[Mx("0x19")](e);for(const e of s)"$graveyard"!=e[Mx("0x89")].rootName&&(o[Mx("0x5d")](o[Mx("0x35")](e,0)),t[Mx("0x17")].get(Mx("0x49")).refresh(),t[Mx("0x66")](Mx("0x49"),{forceDefaultExecution:!0}));const i=r[Mx("0x12")]((t=>Mx("0x88")!=t[Mx("0x89")][Mx("0x87")]));i[Mx("0x3")]>0&&o[Mx("0x5d")](i);for(const t of r)t[Mx("0x7b")]()}))}function x(t,e){return e.every((e=>t[Mx("0x56")]((t=>t[Mx("0x4a")][Mx("0x1b")](e[Mx("0x65")])||e[Mx("0x4a")].isEqual(t[Mx("0x65")])))))}function a(t,e){return t.some((t=>e[Mx("0x56")]((e=>t[Mx("0x4a")][Mx("0x67")](e.start)))))}t[Mx("0xe")][Mx("0x0")].on(Mx("0x54"),((t,e,n)=>{if(!n.options[Mx("0x13")])return;const o=e[Mx("0x7c")];if(!o)return;const r=n[Mx("0x8a")][Mx("0x83")](o);function s(t){return Array[Mx("0x15")](t)?t:[t]}r&&Mx("0x6d")===o[Mx("0x33")]&&(0,P.setHighlightHandling)(r,n.writer,((t,e,n)=>n[Mx("0x7e")](s(e[Mx("0x70")]),t)),((t,e,n)=>n[Mx("0x2")](s(e[Mx("0x70")]),t)))}),{priority:Mx("0x6a")}),o[Mx("0x50")][Mx("0x27")]((t=>{if(Mx("0x21")!=t[Mx("0x36")]&&Mx("0x20")!=t.type)return;const e=t[Mx("0x82")]();if(null!=e&&e.is(Mx("0x62"),Mx("0xc"))){if(Mx("0x21")==t.type){const e=t[Mx("0x14")]()[Mx("0x12")]((t=>t.is(Mx("0x3e")))).map((t=>t[Mx("0xe")]));if(e[Mx("0x3")])return{type:"insertion",content:kr(n,Mx("0x72"),kr(n,Mx("0xa"),'"'+e[Mx("0x84")](" ")+'"'))}}if("deletion"==t[Mx("0x36")]){const e=t[Mx("0x14")]()[Mx("0x12")]((t=>t.is(Mx("0x3e"))))[Mx("0x76")]((t=>t[Mx("0xe")]));if(e[Mx("0x3")])return{type:Mx("0x20"),content:kr(n,Mx("0x2d"),kr(n,Mx("0xa"),'"'+e[Mx("0x84")](" ")+'"'))}}}})),o._descriptionFactory[Mx("0x27")]((t=>{if(Mx("0x80")==t[Mx("0x34")]){const e=t[Mx("0x14")]()[Mx("0x12")]((t=>t.is("textProxy"))).map((t=>t[Mx("0xe")])),o=this[Mx("0x10")](t),r=o[Mx("0x1f")]-o[Mx("0x63")]+1;if(Mx("0x21")==t[Mx("0x36")])return e[Mx("0x3")]?{type:"insertion",content:kr(n,Mx("0x72"),kr(n,Mx("0x5a"),[r,'"'+e[Mx("0x84")](" ")+'"']))}:{type:Mx("0x21"),content:kr(n,Mx("0x72"),kr(n,Mx("0x46"),r))};if("deletion"==t[Mx("0x36")])return e.length?{type:"deletion",content:kr(n,"*Remove:* %0",kr(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[r,'"'+e.join(" ")+'"']))}:{type:Mx("0x20"),content:kr(n,"*Remove:* %0",kr(n,"ELEMENT_TABLE_ROW",r))}}if(Mx("0x3b")==t.subType){const e=t[Mx("0x14")]().filter((t=>t.is("textProxy")))[Mx("0x76")]((t=>t.data)),o=this[Mx("0x10")](t),r=o[Mx("0x74")]-o[Mx("0x1")]+1;if(Mx("0x21")==t[Mx("0x36")])return e.length?{type:"insertion",content:kr(n,Mx("0x72"),kr(n,Mx("0x79"),[r,'"'+e[Mx("0x84")](" ")+'"']))}:{type:Mx("0x21"),content:kr(n,Mx("0x72"),kr(n,Mx("0x5"),r))};if(Mx("0x20")==t.type)return e[Mx("0x3")]?{type:Mx("0x20"),content:kr(n,Mx("0x2d"),kr(n,Mx("0x79"),[r,'"'+e[Mx("0x84")](" ")+'"']))}:{type:Mx("0x20"),content:kr(n,Mx("0x2d"),kr(n,"ELEMENT_TABLE_COLUMN",r))}}})),o._suggestionFactory[Mx("0x59")]("insertion",Mx("0x80"),Mx("0x5f"),s),o[Mx("0x26")][Mx("0x59")](Mx("0x20"),Mx("0x80"),"accept",s),o._suggestionFactory[Mx("0x59")](Mx("0x21"),"tableColumn",Mx("0x5f"),i),o._suggestionFactory[Mx("0x59")](Mx("0x20"),Mx("0x3b"),Mx("0x25"),i),o[Mx("0x26")][Mx("0x59")]("insertion",Mx("0x3b"),Mx("0x84"),x),o[Mx("0x26")][Mx("0x59")](Mx("0x20"),"tableColumn",Mx("0x84"),x),o[Mx("0x26")].registerCustomCallback(Mx("0x21"),Mx("0x80"),Mx("0x84"),a),o[Mx("0x26")][Mx("0x59")](Mx("0x20"),"tableRow",Mx("0x84"),a)}_acceptFormatSuggestionCallbackFactory(){const t=this[Mx("0x32")],e=t[Mx("0x58")].document[Mx("0x3d")];return(n,o)=>{t[Mx("0x58")][Mx("0x37")]((r=>{const{commandName:s,commandParams:i}=o;let x=n[0].end.nodeBefore;i&&i[0]&&!1===i[0][Mx("0x1a")]&&(x=n[0][Mx("0x65")][Mx("0x61")]);const a=r[Mx("0x2c")](x);if(Mx("0x88")==a[Mx("0x89")].rootName)return;const c=Array.from(e[Mx("0x40")]())[Mx("0x76")]((t=>F.LiveRange[Mx("0x52")](t)));r[Mx("0x5d")](a),t[Mx("0x17")][Mx("0x7a")](s).refresh(),i.push({forceDefaultExecution:!0}),t[Mx("0x66")](s,...i);const l=c.filter((t=>Mx("0x88")!=t[Mx("0x89")][Mx("0x87")]));l[Mx("0x3")]>0&&r[Mx("0x5d")](l);for(const t of c)t[Mx("0x7b")]()}))}}_getCoordsForCells(t){const e=this[Mx("0x32")][Mx("0x18")][Mx("0x7a")]("TableUtils");let n=Number[Mx("0x86")],o=Number[Mx("0xd")],r=Number.MAX_SAFE_INTEGER,s=Number.MIN_SAFE_INTEGER;for(const i of t){if(Mx("0x88")==i.root[Mx("0x87")])continue;const{row:t,column:x}=e[Mx("0x2b")](i),a=i[Mx("0x75")](Mx("0x6f"))?i[Mx("0x6c")](Mx("0x6f"))-1:0,c=i[Mx("0x75")](Mx("0x69"))?i[Mx("0x6c")](Mx("0x69"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,r=x<r?x:r,s=x+c>s?x+c:s}return{minRow:n,maxRow:o,minColumn:r,maxColumn:s}}[Mx("0x45")](){const t=this[Mx("0x32")],e=t[Mx("0x18")][Mx("0x7a")](Mx("0x23")),n=t[Mx("0x18")][Mx("0x7a")](Mx("0x1c"));this[Mx("0x6b")]=new Set,t[Mx("0x58")][Mx("0x51")].on(Mx("0x7"),(()=>{const n=Array[Mx("0xb")](t[Mx("0x58")][Mx("0x51")][Mx("0x4b")][Mx("0x22")]());for(const{name:t,data:o}of n){const{group:n,id:r,subType:s}=e[Mx("0x42")](t);if(Mx("0x43")!=n)continue;if(null!=o[Mx("0x2a")])continue;const i=e[Mx("0x60")](r);this[Mx("0x68")][Mx("0x38")](s)&&this[Mx("0x6b")].add(i)}}),{priority:Mx("0x5c")});const o=(t,e)=>{let o=!1;const r=e.createRangeOn(t),s=t.findAncestor(Mx("0xc")),i=n[Mx("0x2b")](t);for(const e of this._tableSuggestions){const n=e[Mx("0x34")],x=n[Mx("0x53")](Mx("0x41")),a=n[Mx("0x7f")](x?10:5),c=a[Mx("0x16")](),l=c[Mx("0x7f")](0,3)+"span",u=Mx("0x28")+a,d=Mx("0x9")+a;if(!e[Mx("0x29")])continue;if(s!=e[Mx("0x8")]().start[Mx("0x30")](Mx("0xc")))continue;if(e[Mx("0x3c")](r))continue;const f=t[Mx("0x75")](l)?t[Mx("0x6c")](l)-1:0,g=this[Mx("0x10")](e),m=g[u],h=g[d];m<=i[c]&&i[c]+f<=h&&(e[Mx("0x85")](r),o=!0)}return o};t.model[Mx("0x51")].registerPostFixer((e=>{let n=!1;for(const r of t[Mx("0x58")][Mx("0x51")][Mx("0x4b")][Mx("0x8b")]())if(Mx("0x78")==r.type)if("tableRow"==r[Mx("0x33")])for(const t of r[Mx("0x2e")][Mx("0x61")][Mx("0x47")]())n=n||o(t,e);else Mx("0x6d")==r[Mx("0x33")]&&(n=n||o(r.position[Mx("0x61")],e));return n}))}_getSuggestionCoords(t){return this._getCoordsForCells(t.getRanges()[Mx("0x76")]((t=>t[Mx("0x65")].nodeAfter)))}}function Lx(t){return Array[Mx("0xb")](new Set(t)[Mx("0x64")]())}const Ox=["table","_suggestionFactory","TableEditing","registerCustomCallback","size","document","commands","change","isEnabled","_areSelectedCellsMergable","markMultiRangeBlockFormat","get","containsRange","from","_areMergableCells","splitTableCellVertically","setSelection","cell","direction","createTableWalker","splitTableCellHorizontally","registerDescriptionCallback","findAncestor","execute","value","_descriptionFactory","*Split cell:* horizontally","tableCell","TableUtils","enableCommand","filter","_acceptFormatSuggestionCallbackFactory","forceDefaultExecution","selection","length","requires","map","afterInit","has","push","getSuggestions","fromRange","format","horizontally","markBlockFormat","subType","element","_tablePostFixingSubtypes","stop","formatBlock","commandName","type","mergeTableCellDown","plugins","low","refresh","mergeTableCellRight","insertion","add","createRangeOn","getFirstPosition","getSelectionAffectedTableCells","root","_isForcedDefaultExecutionBlock","getCellLocation","mergeTableCellLeft","*Merge cells*","model","$graveyard","TrackChangesEditing","getAncestors","isInContent","editor","trackChanges","find","accept","author","locale","getRanges","mergeTableCells","mergeTableCellUp","highest","*Split cell:* vertically"];var Fx,Px;Fx=Ox,Px=382,function(t){for(;--t;)Fx.push(Fx.shift())}(++Px);const Dx=function(t,e){return Ox[t-=0]};class Bx extends t.Plugin{static get[Dx("0x44")](){return[Nx]}[Dx("0x46")](){const t=this[Dx("0x16")],e=t[Dx("0x11")].document[Dx("0x42")],n=t[Dx("0x1b")];if(!t[Dx("0x3")].has(Dx("0x23")))return;const o=t.plugins.get(Dx("0x13")),r=t[Dx("0x3")][Dx("0x2c")](Dx("0x3d")),s=t[Dx("0x3")][Dx("0x2c")](Nx);s[Dx("0x50")][Dx("0x48")]("mergeTableCells"),o[Dx("0x3e")](Dx("0x1d"),(()=>{const e=r[Dx("0xb")](t.model.document[Dx("0x42")]);t[Dx("0x11")][Dx("0x28")]((()=>{o[Dx("0x2b")](e,{commandName:"mergeTableCells",commandParams:[]},[],Dx("0x1d"))}))})),t.commands[Dx("0x2c")](Dx("0x1d")).on(Dx("0x38"),((e,n)=>{t[Dx("0x27")].get(Dx("0x17"))[Dx("0x39")]&&(n[Dx("0x43")]>0&&n[n[Dx("0x43")]-1]&&n[n[Dx("0x43")]-1][Dx("0x41")]||o[Dx("0xd")]||this._areSelectedCellsMergable()||e[Dx("0x51")]())}),{priority:Dx("0x1f")});for(const e of[Dx("0x1e"),Dx("0x6"),Dx("0x2"),Dx("0xf")]){const n=t[Dx("0x27")].get(e);o[Dx("0x3e")](e,(()=>{const e=t[Dx("0x11")][Dx("0x26")][Dx("0x42")][Dx("0xa")]()[Dx("0x14")]()[Dx("0x18")]((t=>t.is(Dx("0x4f"),Dx("0x3c")))),r=n[Dx("0x39")];t[Dx("0x11")].change((()=>{o[Dx("0x2b")]([e,r],{commandName:Dx("0x1d"),commandParams:[]},[],Dx("0x1d"))}))}))}for(const e of["splitTableCellVertically",Dx("0x35")]){const n=t[Dx("0x27")][Dx("0x2c")](e);o[Dx("0x3e")](e,(()=>{const s=r[Dx("0xb")](t[Dx("0x11")][Dx("0x26")][Dx("0x42")])[0],i=s[Dx("0x37")](Dx("0x21")),{column:x,row:a}=r[Dx("0xe")](s);let c=[];if(Dx("0x4c")==n[Dx("0x33")]){const t=r[Dx("0x34")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Dx("0x2e")](t)[Dx("0x45")]((t=>t[Dx("0x32")]))}else{const t=r.createTableWalker(i,{column:x,includeAllSlots:!0});c=Array[Dx("0x2e")](t).map((t=>t[Dx("0x32")]))}t.model[Dx("0x28")]((t=>{o[Dx("0x4d")](t[Dx("0x9")](s),{commandName:e,commandParams:[]},c,e)}))}))}o[Dx("0x3a")][Dx("0x36")]((t=>{const{data:e}=t;if(e)return Dx("0x1d")==e[Dx("0x0")]?{type:"format",content:kr(n,Dx("0x10"))}:void 0})),o[Dx("0x3a")][Dx("0x36")]((t=>{const{data:e}=t;if(e)return Dx("0x30")==e.commandName?{type:Dx("0x4b"),content:kr(n,Dx("0x20"))}:Dx("0x35")==e.commandName?{type:"format",content:kr(n,Dx("0x3b"))}:void 0}));const i=s[Dx("0x40")]();for(const t of[Dx("0x1e"),Dx("0x6"),Dx("0x2"),Dx("0xf")])o[Dx("0x22")][Dx("0x24")](Dx("0x52"),t,Dx("0x19"),i);for(const t of[Dx("0x30"),Dx("0x35")])o[Dx("0x22")][Dx("0x24")]("formatBlock",t,"accept",i);o[Dx("0x22")][Dx("0x24")]("formatBlock",Dx("0x1d"),"accept",(n=>{t[Dx("0x11")][Dx("0x28")]((o=>{const r=Array.from(e.getRanges()).map((t=>F.LiveRange[Dx("0x4a")](t)));o[Dx("0x31")](n),t[Dx("0x27")][Dx("0x2c")](Dx("0x1d"))[Dx("0x5")](),t.execute(Dx("0x1d"),{forceDefaultExecution:!0});const s=r[Dx("0x3f")]((t=>Dx("0x12")!=t[Dx("0xc")].rootName));s.length>0&&o[Dx("0x31")](s);for(const t of r)t.detach()}))}));for(const e of["mergeTableCellUp",Dx("0x2"),Dx("0xf"),"mergeTableCellRight"]){const n=t[Dx("0x27")][Dx("0x2c")](e);n.on("set:isEnabled",((e,o,r)=>{if(r){const o=t[Dx("0x11")].document[Dx("0x42")].getFirstPosition()[Dx("0x14")]()[Dx("0x18")]((t=>t.is("element",Dx("0x3c"))));this._areMergableCells(n[Dx("0x39")],o)||(e.return=!1,e[Dx("0x51")]())}}),{priority:Dx("0x4")})}}[Dx("0x2a")](){const t=this.editor[Dx("0x27")][Dx("0x2c")](Dx("0x1d")),e=this[Dx("0x16")][Dx("0x3")][Dx("0x2c")](Dx("0x3d"));if(!t[Dx("0x29")])return!1;const n=e[Dx("0xb")](this[Dx("0x16")][Dx("0x11")][Dx("0x26")].selection);for(const t of n)for(const e of n)if(t!=e&&!this[Dx("0x2f")](t,e))return!1;return!0}[Dx("0x2f")](t,e){const n=this[Dx("0x16")][Dx("0x3")][Dx("0x2c")](Dx("0x13")),o=this[Dx("0x16")][Dx("0x11")].createRangeOn(t),r=this[Dx("0x16")][Dx("0x11")][Dx("0x9")](e),s=new Set,i=new Set;for(const t of n[Dx("0x49")]())if((Dx("0x7")==t[Dx("0x1")]||"deletion"==t[Dx("0x1")]||Dx("0x1d")==t[Dx("0x4e")])&&t[Dx("0x15")])for(const e of t[Dx("0x1c")]())e[Dx("0x2d")](o,!0)&&s[Dx("0x8")](t[Dx("0x1")]+":"+t[Dx("0x1a")].id),e[Dx("0x2d")](r,!0)&&i[Dx("0x8")](t[Dx("0x1")]+":"+t[Dx("0x1a")].id);if(s[Dx("0x25")]!=i[Dx("0x25")])return!1;for(const t of s)if(!i[Dx("0x47")](t))return!1;return!0}}const jx=["getSuggestion","findAncestor","commandParams","model","cell","getRowIndexes","toViewElement","first","selection","addMarker:suggestion","change","stop","item","ck-suggestion-marker-","createPositionAfter","index","formatBlock","writer","FORMAT_REGULAR_COLUMN","last","options","_suggestionFactory","parent","createTableWalker","removeClass","has","ck-suggestion-marker--active","getChild","removeMarker:suggestion","headingColumns","TrackChangesEditing","_descriptionFactory","createPositionBefore","mapper","editor","plugins","childCount","markerRange","locale","getColumnIndexes","getSelectionAffectedTableCells","consume","end","get","editing","removeAttribute","setTableRowHeader","unbindElementFromMarkerName","bindElementToMarker","table","forceValue","getCellLocation","TableUtils","requires","enableCommand","_splitMarkerName","markerName","name","setAttribute","from","markBlockFormat","commandName","data","includes","document","downcastDispatcher","headingRows","isBefore","createRange","nodeBefore","consumable","highest","data-suggestion","markerNameToElements","getAttribute","format","registerCustomCallback","activeMarkers","FORMAT_HEADER_ROW","addClass","commands","accept","value","setTableColumnHeader"];var Ux,Hx;Ux=jx,Hx=284,function(t){for(;--t;)Ux.push(Ux.shift())}(++Hx);const Gx=function(t,e){return jx[t-=0]};class Vx extends t.Plugin{static get[Gx("0x15")](){return[Nx]}afterInit(){const t=this[Gx("0x2")];if(!t[Gx("0x3")][Gx("0x4d")]("TableEditing"))return;const e=t[Gx("0x6")],n=t[Gx("0x3")].get(Gx("0x52")),o=t.plugins[Gx("0xb")](Gx("0x14")),r=t.plugins[Gx("0xb")](Nx);function s({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(r,s,i)=>{const{type:x,id:a}=n[Gx("0x17")](s[Gx("0x18")]),c=n[Gx("0x34")](a);if(!c[Gx("0x1e")]||Gx("0x33")!=c[Gx("0x1e")][Gx("0x1d")])return;if(s[Gx("0x40")])return void r[Gx("0x3f")]();if(!i[Gx("0x26")][Gx("0x9")](s[Gx("0x5")],r[Gx("0x19")]))return;const l=s[Gx("0x5")].start.nodeAfter,u=s[Gx("0x5")][Gx("0xa")][Gx("0x25")],d=l[Gx("0x4a")][Gx("0x4a")],{column:f}=o[Gx("0x13")](l),{column:g}=o.getCellLocation(u);for(let r=f;r<=g;r++){const c=o[Gx("0x4b")](d,{column:r,includeAllSlots:!1});for(const o of c){const r=o[Gx("0x38")],c=i[Gx("0x1")][Gx("0x3a")](r);i[Gx("0x45")][Gx("0x2f")](Gx("0x41")+x,c),e&&i.writer[Gx("0x1a")]("data-suggestion",a,c),i[Gx("0x1")][Gx("0x10")](c,s[Gx("0x18")]),t&&(n[Gx("0x2d")][Gx("0x1f")](s[Gx("0x18")])?i[Gx("0x45")][Gx("0x2f")]("ck-suggestion-marker--active",c):i[Gx("0x45")][Gx("0x4c")](Gx("0x4e"),c))}}}}n[Gx("0x16")](Gx("0xe"),((e,r)=>{const s=o.getSelectionAffectedTableCells(t.model[Gx("0x20")][Gx("0x3c")]),i=o[Gx("0x39")](s),x=s[0][Gx("0x35")](Gx("0x11")),a=x[Gx("0x2a")](Gx("0x22"))||0,c=r&&null!==r.forceValue?r[Gx("0x12")]:!t.commands.get("setTableRowHeader")[Gx("0x32")],l=c?i[Gx("0x47")]:i[Gx("0x3b")],u=x[Gx("0x4f")](l);let d;if(c){const e=x[Gx("0x4f")](a);if(u.index<e[Gx("0x43")])return;d=t.model[Gx("0x24")](t[Gx("0x37")].createPositionBefore(e[Gx("0x4f")](0)),t.model[Gx("0x42")](u[Gx("0x4f")](u.childCount-1)))}else{const e=x[Gx("0x4f")](a-1);if(!e)return;d=t.model[Gx("0x24")](t[Gx("0x37")][Gx("0x0")](u[Gx("0x4f")](0)),t[Gx("0x37")].createPositionAfter(e[Gx("0x4f")](e[Gx("0x4")]-1)))}t[Gx("0x37")].change((()=>{n[Gx("0x1c")](d,{commandName:Gx("0xe"),commandParams:[{forceValue:c}]},[],"setTableRowHeader")}))})),n[Gx("0x16")](Gx("0x33"),((e,o)=>{const r=t[Gx("0x3")].get(Gx("0x14")),s=r[Gx("0x8")](t[Gx("0x37")][Gx("0x20")][Gx("0x3c")]),i=r[Gx("0x7")](s),x=s[0].findAncestor(Gx("0x11")),a=x[Gx("0x2a")](Gx("0x51"))||0,c=o&&null!==o.forceValue?o.forceValue:!t[Gx("0x30")][Gx("0xb")](Gx("0x33")).value;let l;const u=x[Gx("0x4f")](0),d=c?i[Gx("0x47")]:i[Gx("0x3b")],f=r[Gx("0x4b")](x,{startRow:0,column:d,includeAllSlots:!1}),g=Array[Gx("0x1b")](f)[0][Gx("0x38")];if(c){const e=u[Gx("0x4f")](a);if(g[Gx("0x23")](e))return;l=t[Gx("0x37")][Gx("0x24")](t[Gx("0x37")][Gx("0x0")](e),t[Gx("0x37")][Gx("0x42")](g))}else{const e=u[Gx("0x4f")](a-1);if(!e)return;l=t[Gx("0x37")][Gx("0x24")](t[Gx("0x37")][Gx("0x0")](g),t[Gx("0x37")][Gx("0x42")](e))}t.model[Gx("0x3e")]((()=>{n[Gx("0x1c")](l,{commandName:Gx("0x33"),commandParams:[{forceValue:c}]},[],Gx("0x33"))}))})),t[Gx("0xc")][Gx("0x21")].on(Gx("0x3d"),s(),{priority:"highest"}),t[Gx("0x1e")][Gx("0x21")].on(Gx("0x3d"),((t,e,n)=>{n[Gx("0x48")].showSuggestionHighlights&&s({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:Gx("0x27")}),t[Gx("0xc")][Gx("0x21")].on(Gx("0x50"),((t,e,o)=>{const{type:r,id:s}=n[Gx("0x17")](e[Gx("0x18")]),i=n[Gx("0x34")](s);if(!i[Gx("0x1e")]||Gx("0x33")!=i[Gx("0x1e")][Gx("0x1d")])return;const x=o[Gx("0x1")][Gx("0x29")](e.markerName);if(x)for(const t of x)o[Gx("0x45")][Gx("0x4c")]("ck-suggestion-marker-"+r,t),o[Gx("0x45")][Gx("0x4c")]("ck-suggestion-marker--active",t),o[Gx("0x45")][Gx("0xd")](Gx("0x28"),t),o[Gx("0x1")][Gx("0xf")](t,e.markerName)}),{priority:Gx("0x27")}),n[Gx("0x53")].registerDescriptionCallback((t=>{const{data:n}=t;if(n){if(Gx("0xe")==n[Gx("0x1d")]){const t=n.commandParams[0][Gx("0x12")];return o(kr(e,t?Gx("0x2e"):"FORMAT_REGULAR_ROW"))}if(Gx("0x33")==n[Gx("0x1d")]){const t=n[Gx("0x36")][0].forceValue;return o(kr(e,t?"FORMAT_HEADER_COLUMN":Gx("0x46")))}}function o(t){return{type:Gx("0x2b"),content:kr(e,"*Format:* %0",t)}}}));const i=r._acceptFormatSuggestionCallbackFactory();n[Gx("0x49")][Gx("0x2c")](Gx("0x44"),Gx("0xe"),Gx("0x31"),i),n._suggestionFactory.registerCustomCallback(Gx("0x44"),Gx("0x33"),Gx("0x31"),i)}}const zx=["last","previous","fill","join","getChangedMarkers","accept","TrackChangesEditing","insertContent","getSelectionAffectedTableCells","reduce","batch","tableCellBackgroundColor","TableClipboard","createTableWalker","set","getColumnIndexes","return","getRanges","tablePasteCell","filter","suggestion:formatBlock:tablePasteCell","_getCoordsForCells","afterInit","remove","fromEntries","map","isEqual","_createdBatches","startsWith","insertColumns","markMultiRangeInsertion","editing","isEmpty","from","next","table","clipboardOutput","rootName","tableCellBorderStyle","tablePasteColumn","ck-suggestion-marker--active","markerToHighlight","includes","entries","suggestionUnloaded","dataDowncast","selection","get","getRange","tableCell","markers","setAttributes","tableCellHorizontalAlignment","length","row","every","suggestion","view","options","getAttributes","root","getShiftedBy","for","createRangeIn","registerCustomCallback","high","removeMarker","tablePasteChainId","markMultiRangeBlockFormat","markerName","element","name","register","low","getItems","model","find","removeMarkers","attributes","end","add","setAttribute","keys","value","content","editor","push","markerAttributes","change","columns","findAncestor","move","nextSibling","isInContent","getRowIndexes","endRow","tableCellBorderColor","insertRows","suggestion-td","editingDowncast","plugins","Users","removeRows","tablePasteRow","tableCellPadding","forceDefaultExecution","commands","rowInsertionRanges","insert","deletionRanges","_splitMarkerName","removeColumns","getSuggestions","column","stop","activeMarkers","type","paragraph","getSuggestionCallback","redo","containsRange","rowInsertionIndexes","getSuggestion","author","TableUtils","registerPostFixer","start","suggestionLoaded","insertion","_replaceTableSlotCell","columnInsertionRanges","_isForcedDefaultExecutionBlock","getContainedElement","rows","getChild","unwrap","elementToElement","tablePaste","getMarkers","markMultiRangeDeletion","endColumn","discard","documentSelection","tableCellSuggestion","showSuggestionHighlights","schema","_tablePostFixingSubtypes","first","differ","position","getAllAdjacentSuggestions","requires","listenTo","document","getChildren","_suggestionFactory","deletion","newRange","cells","has","_descriptionFactory","wrap","oldRange","getRows","conversion","subType","createRangeOn"];var Wx,Kx;Wx=zx,Kx=409,function(t){for(;--t;)Wx.push(Wx.shift())}(++Kx);const qx=function(t,e){return zx[t-=0]},$x=["tableCellBorderWidth",qx("0x15"),qx("0x82"),qx("0x90"),"tableCellVerticalAlignment",qx("0x67"),qx("0x1d")],Xx=Object[qx("0x74")]($x.map((t=>[t,null])));class Jx extends t.Plugin{static get[qx("0x4c")](){return[Nx]}[qx("0x72")](){const t=this[qx("0xa")];if(!t[qx("0x19")].has(qx("0x68")))return;const n=t[qx("0x19")][qx("0x8b")](qx("0x62")),o=t[qx("0x19")][qx("0x8b")](qx("0x31")),r=t[qx("0x19")][qx("0x8b")](Nx),s=t[qx("0x19")][qx("0x8b")](qx("0x68"));r[qx("0x47")][qx("0xb")](qx("0x1c"),qx("0x83")),t[qx("0x0")][qx("0x46")][qx("0xa4")](qx("0x44"),{allowIn:qx("0x8d"),allowContentOf:qx("0x8d"),isLimit:!0}),t.conversion[qx("0x3d")]({model:qx("0x44"),view:qx("0x17")});let i=null;t[qx("0x0")].on("insertContent",((r,x)=>{const[a,c]=x,l=x[x[qx("0x91")]-1];l&&l[qx("0x1e")]||n[qx("0x38")]||this.editor[qx("0x1f")][qx("0x8b")]("trackChanges")[qx("0x8")]&&function(t,e,n,o,r){if(e&&!e.is(qx("0x43")))return!1;const s=r.getTableIfOnlyTableInContent(t,n);if(!s||!Yx(s,null,o))return!1;const i=o[qx("0x64")](n[qx("0x4e")][qx("0x8a")]);if(!i.length)return!1;const x=i[0].findAncestor("table"),a=o[qx("0x13")](i),c=o[qx("0x6b")](i),l={startRow:a[qx("0x48")],endRow:a[qx("0x5c")],startColumn:c.first,endColumn:c[qx("0x5c")]};return 1==i[qx("0x91")]&&(l[qx("0x14")]+=o[qx("0x58")](s)-1,l[qx("0x41")]+=o.getColumns(s)-1),Yx(x,l,o)}(a,c,t[qx("0x0")],o,s)&&(r[qx("0x27")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[qx("0x0")][qx("0xd")]((()=>{t[qx("0x0")][qx("0x63")](x[0],x[1],x[2],x[3],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:r,columnInsertionRanges:s,insertionRanges:a,deletionRanges:c,cells:l}=i;r[qx("0x91")]&&n[qx("0x7a")](r,qx("0x1c"),{tablePasteChainId:o}),s[qx("0x91")]&&n[qx("0x7a")](s,qx("0x83"),{tablePasteChainId:o}),a[qx("0x91")]&&n[qx("0x7a")](a,qx("0x3e"),{tablePasteChainId:o,skipNestingCheck:!0}),c[qx("0x91")]&&n[qx("0x40")](c,qx("0x3e"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n[qx("0xa0")](l[qx("0x75")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],qx("0x6e"),{tablePasteChainId:o});if(u){const e=u[qx("0x3f")](),n=[];for(const{element:o,attributes:r}of l){if(!r)continue;const s=t.model[qx("0x5b")](o),i=e[qx("0x1")]((t=>t[qx("0x8c")]()[qx("0x76")](s)));i&&n.push([i[qx("0xa3")],r])}n[qx("0x91")]&&u[qx("0x6")](qx("0xc"),Object[qx("0x74")](n))}i=null})))}),{priority:e.priorities.high+10}),t[qx("0x19")][qx("0x8b")](qx("0x68")).on(qx("0x36"),((t,e)=>{const[n,o,,r]=e;if(!i)return;t.stop();const s=n.cell,x=o,a=Qx(s),c=Qx(x);t[qx("0x6c")]=s;let l=null,u=null;if(c||a)if(a&&!c){r.remove(s[qx("0x3b")](0));for(const t of Array[qx("0x7d")](x[qx("0x4f")]()))r[qx("0x21")](t,s,qx("0x4"));const t=i[qx("0x2e")][qx("0x86")](n[qx("0x92")]),e=i.columnInsertionIndexes.includes(n[qx("0x26")]);t||e||(l=r[qx("0x9b")](s))}else c&&!a&&(u=r[qx("0x9b")](s));else{const t=r.createElement(qx("0x44")),e=r.createElement("tableCellSuggestion");r[qx("0x56")](r[qx("0x9b")](s),e),r[qx("0x21")](t,s,0);for(const e of Array[qx("0x7d")](x[qx("0x4f")]()))r[qx("0x21")](e,t,"end");l=r.createRangeOn(t),u=r[qx("0x5b")](e)}const d=Array[qx("0x7d")](x[qx("0x97")]())[qx("0x6f")]((([t])=>$x.includes(t)));i.cells[qx("0xb")]({element:s,attributes:d[qx("0x91")]?Object.fromEntries(d):null}),l&&i.insertionRanges[qx("0xb")](l),u&&i[qx("0x22")][qx("0xb")](u)}),{priority:"high"}),o.on(qx("0x79"),((e,n)=>{const[r,s={}]=n;if(!i)return;const x=s.at||0,a=s[qx("0xe")]||1;i.columnInsertionIndexes=new Array(a)[qx("0x5e")](x)[qx("0x75")](((t,e)=>t+e));for(const{cell:e}of o[qx("0x69")](r,{startColumn:x,endColumn:x+a-1}))i[qx("0x37")][qx("0xb")](t[qx("0x0")][qx("0x5b")](e))}),{priority:qx("0xa5")}),o.on(qx("0x16"),((e,n)=>{const[r,s={}]=n;if(!i)return;const x=s.at||0,a=s[qx("0x3a")]||1;i[qx("0x2e")]=new Array(a)[qx("0x5e")](x).map(((t,e)=>t+e));for(const{cell:e}of o[qx("0x69")](r,{startRow:x,endRow:x+a-1}))i[qx("0x20")][qx("0xb")](t[qx("0x0")][qx("0x5b")](e))}),{priority:qx("0xa5")}),n[qx("0x55")].registerDescriptionCallback((e=>{if(e[qx("0x5a")]&&e.subType[qx("0x78")]("tablePaste"))return e.previous?{}:{type:"insertion",content:kr(t.locale,"*Replace table cells*")}}));const x=()=>{};for(const t of[qx("0x3e"),qx("0x83"),qx("0x1c"),qx("0x6e")])n._suggestionFactory[qx("0x9c")](qx("0x35"),t,qx("0x5f"),x),n[qx("0x50")][qx("0x9c")](qx("0x51"),t,"join",x);n[qx("0x50")][qx("0x9c")]("formatBlock",qx("0x6e"),"discard",x),n[qx("0x50")][qx("0x9c")]("formatBlock",qx("0x6e"),"accept",((e,n,o)=>{const r=e[qx("0x75")]((t=>t[qx("0x39")]())).filter((t=>t)),s=new Map(r[qx("0x75")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[qx("0x53")])e&&s[qx("0x6a")](t,e);else if(o&&o.markerAttributes)for(const[e,n]of Object[qx("0x87")](o.markerAttributes)){const o=t[qx("0x0")][qx("0x8e")].get(e),r=o?o[qx("0x8c")]().getContainedElement():null;r&&s[qx("0x6a")](r,n)}t[qx("0x0")][qx("0xd")]((t=>{for(const[e,n]of s)t[qx("0x8f")]({...Xx,...n},e)}))}));const a=(e,o)=>{n._suggestionFactory.registerCustomCallback(e,qx("0x3e"),o,((r,s,i)=>{t.model[qx("0xd")]((t=>{const x=[];for(const t of r){const e=t[qx("0x33")].nodeAfter;e.is(qx("0xa2"),qx("0x44"))&&x[qx("0xb")](e)}n._suggestionFactory[qx("0x2b")](e,null,o)(r,s,i);for(const e of x)"$graveyard"!=e[qx("0x98")][qx("0x81")]&&t[qx("0x3c")](e)}))}))};a(qx("0x35"),qx("0x61")),a(qx("0x35"),qx("0x42")),a(qx("0x51"),qx("0x61")),a(qx("0x51"),"discard"),n._suggestionFactory[qx("0x9c")](qx("0x35"),"tablePasteRow",qx("0x42"),(t=>{const e=t[qx("0x75")]((t=>t[qx("0x39")]())),n=e[0][qx("0xf")](qx("0x7f")),{minRow:s,maxRow:i}=r[qx("0x71")](e);o[qx("0x1b")](n,{at:s,rows:i-s+1})})),n[qx("0x50")][qx("0x9c")](qx("0x35"),qx("0x83"),qx("0x42"),(t=>{const e=t[qx("0x75")]((t=>t[qx("0x39")]())),n=e[0][qx("0xf")](qx("0x7f")),{minColumn:s,maxColumn:i}=r[qx("0x71")](e);o[qx("0x24")](n,{at:s,columns:i-s+1})}));const c=(t,e)=>{if(!e[qx("0x5a")]||!e[qx("0x5a")][qx("0x78")](qx("0x3e")))return;const o=e[qx("0x3")][qx("0x9f")],r=n[qx("0x25")]()[qx("0x6f")]((t=>t.isInContent&&t[qx("0x3")]&&t[qx("0x3")][qx("0x9f")]==o));r[qx("0x91")]&&e[qx("0x4b")]()[qx("0x91")]!=r[qx("0x91")]&&r[qx("0x65")](((t,e)=>(t[qx("0x7e")]=e,e[qx("0x5d")]=t,e)))};function l(t,{showActiveMarker:e=!0}={}){const{id:o}=n._splitMarkerName(t.markerName),r=["ck-suggestion-marker","ck-suggestion-marker-insertion"],s=n[qx("0x28")][qx("0x86")](t[qx("0xa1")]);return s&&r.push(qx("0x84")),{classes:r,attributes:{"data-suggestion":o},priority:s&&e?3010:3e3}}n.on(qx("0x34"),c,{priority:"high"}),n.on(qx("0x88"),c,{priority:qx("0x9d")}),t[qx("0x0")][qx("0x4e")].registerPostFixer((()=>{let e=!1;const o=Array[qx("0x7d")](t[qx("0x0")][qx("0x4e")].differ[qx("0x60")]());for(const{name:r,data:s}of o){const{group:o,type:i,id:x}=n[qx("0x23")](r);if(qx("0x94")!=o||qx("0x51")!=i||s[qx("0x57")])continue;if(!n.hasSuggestion(x))continue;const a=n[qx("0x2f")](x)[qx("0x6d")](),c=t[qx("0x19")][qx("0x8b")]("Users").me;for(const t of n[qx("0x25")]())if(t.isInContent&&t[qx("0x30")]==c&&"formatBlock"==t[qx("0x29")]&&"tablePasteCell"==t.subType&&t[qx("0x6d")]()[qx("0x93")]((t=>a.some((e=>e[qx("0x2d")](t,!0))))))for(const n of t[qx("0x4b")]())n[qx("0x12")]&&(n[qx("0x42")](),e=!0)}return e})),t[qx("0x0")][qx("0x4e")][qx("0x32")]((e=>{const o=t[qx("0x1f")].get(qx("0x2c"));if(!o||!o[qx("0x77")][qx("0x54")](e[qx("0x66")]))return!1;let r=!1;const s=t[qx("0x19")][qx("0x8b")](qx("0x1a")).me,i=t[qx("0x0")].document.differ.getChanges(),x=Array.from(t.model.document[qx("0x49")][qx("0x60")]())[qx("0x6f")]((({name:t,data:e})=>{const{group:o,subType:r,authorId:i}=n._splitMarkerName(t);return qx("0x94")==o&&qx("0x3e")==r&&i==s.id&&!e[qx("0x57")]}));for(const t of i){if(qx("0x21")!=t[qx("0x29")]||"tableCellSuggestion"!=t[qx("0xa3")]||1!=t.length)continue;const n=e.createRange(t[qx("0x4a")],t[qx("0x4a")][qx("0x99")](1));if(!x[qx("0x1")]((({data:t})=>t[qx("0x52")][qx("0x76")](n))))for(const{name:t,data:o}of x)if(n[qx("0x2d")](o[qx("0x52")])){e.updateMarker(t,{range:n}),r=!0;break}}return r})),t.model[qx("0x4e")].registerPostFixer((e=>{let o=!1;const r=t.plugins.get(qx("0x1a")).me,s=n[qx("0x25")]()[qx("0x6f")]((t=>t[qx("0x12")]&&t[qx("0x30")]==r)),i=new Set,x=new Set;for(const t of s)if(qx("0x3e")==t[qx("0x5a")])for(const e of t[qx("0x3f")]()){const n=e[qx("0x8c")]()[qx("0x39")]();if(n)if(n.is(qx("0xa2"),qx("0x44"))&&Qx(n)){t[qx("0x9e")](e.name),i[qx("0x5")](n),o=!0;const r=n[qx("0x11")],s=n.previousSibling,a=r&&r.is(qx("0xa2"),qx("0x44")),c=s&&s.is(qx("0xa2"),qx("0x44"));a&&!i.has(r)&&x[qx("0x5")](r),c&&!i.has(s)&&x[qx("0x5")](s)}else n.is("element","paragraph")&&n[qx("0x7c")]&&(t[qx("0x9e")](e[qx("0xa3")]),o=!0)}else if(qx("0x6e")==t[qx("0x5a")]){if(!t.attributes||!t[qx("0x3")].tablePasteChainId)continue;const e=t[qx("0x3")][qx("0xc")];if(e&&Object[qx("0x7")](e)[qx("0x91")])continue;const n=t[qx("0x3")].tablePasteChainId;let r=!0,i=!0;for(const e of s)if(e[qx("0x5a")]&&e[qx("0x5a")].startsWith(qx("0x3e"))){if(!e[qx("0x3")][qx("0x9f")]){i=!1;break}if(e.id!=t.id&&e[qx("0x3")][qx("0x9f")]==n){r=!1;break}}i&&r&&(t[qx("0x2")](),o=!0)}for(const t of i)e[qx("0x73")](t);for(const t of x)e.unwrap(t);return o})),t[qx("0x59")][qx("0x9a")](qx("0x18")).markerToHighlight({model:qx("0x70"),view:l,converterPriority:qx("0x9d")}),t[qx("0x59")][qx("0x9a")](qx("0x89"))[qx("0x85")]({model:qx("0x70"),view:(t,e)=>{if(e[qx("0x96")][qx("0x45")])return l(t,{showActiveMarker:!1})},converterPriority:qx("0x9d")});const u=t[qx("0x7b")][qx("0x95")];this[qx("0x4d")](u[qx("0x4e")],qx("0x80"),((t,e)=>{const n=[];for(const t of u[qx("0x9b")](e[qx("0x9")])[qx("0xa6")]())t.is("element",qx("0x17"))&&n.push(t);u[qx("0xd")]((t=>{for(const e of n)t[qx("0x10")](t[qx("0x9b")](e),t.createPositionBefore(e)),t[qx("0x73")](e)}))}))}}function Qx(t){if(t[qx("0x7c")])return!0;const e=t[qx("0x3b")](0);return e.is(qx("0xa2"),qx("0x2a"))&&e[qx("0x7c")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:r,cellWidth:s}of n[qx("0x69")](t,{includeAllSlots:!0,...e}))if(!o||1!=r||1!=s)return!1;return!0}const Zx=["document","start","registerElementLabel","plugins","isEqual","differ","_splitMarkerName","model","isTouching","isCollapsed","afterInit","suggestion","locale","get","getNearestSelectionRange","removeMarker","title-content","end","editor","has","forward","updateMarker","ELEMENT_TITLE","element","schema"];var ta,ea;ta=Zx,ea=500,function(t){for(;--t;)ta.push(ta.shift())}(++ea);const na=function(t,e){return Zx[t-=0]};class oa extends t.Plugin{[na("0xa")](){const t=this[na("0x12")];if(!t[na("0x3")][na("0x13")]("Title"))return;const e=t[na("0x3")][na("0xd")]("TrackChangesEditing");e._descriptionFactory[na("0x2")](na("0x10"),(()=>kr(t[na("0xc")],na("0x16")))),t.model[na("0x0")].registerPostFixer((n=>{let o=!1;const r=Array.from(t[na("0x7")][na("0x0")][na("0x5")].getChangedMarkers());for(const{name:s,data:i}of r){const{group:r}=e[na("0x6")](s);if(na("0xb")!==r||!i.newRange)continue;const x=i.newRange,a=x[na("0x11")].nodeBefore;if(!a||!a.is(na("0x17"),na("0x10")))continue;if(!x[na("0x1")][na("0x8")](x[na("0x11")]))continue;const c=t[na("0x7")][na("0x18")][na("0xe")](x[na("0x11")],na("0x14"));if(c&&c[na("0x9")]){const t=n.createRange(x.start,c[na("0x1")]);t[na("0x4")](x)||(n[na("0x15")](s,{range:t}),o=!0)}o||(n[na("0xf")](s),o=!0)}return o}))}}const ra=["afterInit","plugins","enableCommand","editor","has","undo","redo"];var sa,ia;sa=ra,ia=242,function(t){for(;--t;)sa.push(sa.shift())}(++ia);const xa=function(t,e){return ra[t-=0]};class aa extends t.Plugin{[xa("0x3")](){const t=this[xa("0x6")],e=t.plugins.get("TrackChangesEditing");t[xa("0x4")][xa("0x0")]("UndoEditing")&&(e.enableCommand(xa("0x1")),e[xa("0x5")](xa("0x2")))}}const ca=["number","isArray","charCodeAt","object","toString","string","keys","boolean"];var la,ua;la=ca,ua=468,function(t){for(;--t;)la.push(la.shift())}(++ua);const da=function(t,e){return ca[t-=0]};function*fa(t){t?da("0x3")==typeof t?yield 1:Array[da("0x5")](t)?yield*function*(t){for(const e of t)yield*fa(e)}(t):da("0x7")==typeof t?yield*ga(t):da("0x1")==typeof t?yield*ma(t):da("0x4")==typeof t&&(yield t):yield 0}function*ga(t){if(yield ha("{"),t){const e=Object[da("0x2")](t).sort();for(const n of e){yield*ma(n),yield ha(":");const e=t[n];yield*fa(e)}}yield ha("}")}function*ma(t){yield ha('"');for(const e of t)yield ha(e);yield ha('"')}function ha(t){return t[da("0x6")](0)}function pa(t){return(t*=Math.sign(t))[da("0x0")](36)}const ba=["_adapter","markerReady","nodeAfter","highest","markInlineFormat","catch","isIntersectingWithRange","formatInline","refresh","ck-suggestion-marker-","schema","getMultiRangeId","change:activeMarkers","moveTargetPosition","markerName","pluginName","deletion","elementStart","createPositionAt","nodeBefore","enableReadOnlyMode","isLimit","every","collaboration.channelId","insert","change:_saved","createRange","length","multipleBlocks","elementEnd","_findSuggestions","formatInline:join","suggestionUnloaded","acceptSelectedSuggestions","consume","updateSuggestion","insertion","track-changes-suggestion-data-mismatch","move","open","hasSuggestion","commandName","ck-suggestion-marker--active","_defaultCallbacks","add","listenTo","then","rethrowUnexpectedError","trackChangesCommand","for","toViewElement","isUndo","_enabledCommands","_getSuggestionData","batch","addCommentThread","formatBlock:","isDocumentOperation","removeComment","_suggestionState","PendingActions","editing","filter","high","lowest","containsPosition","ck-suggestion-marker-formatBlock","getDifference","getRanges","markMultiRangeBlockFormat","isAfter","accept","_commentsRepository","getFirstMarker","ready","adapter","sort","discardAllSuggestions","locale","_descriptionFactory","_breakSuggestionMarker","deletion:","commands","acceptSuggestion","fromCharCode","isOwn","includes","removeClass","execute","value","suggestion","isRemovable","getAttribute","showSuggestionHighlights","multi","normal","_customCallbacks","_updateSuggestionData","markMultiRangeInsertion","CommentsRepository","suggestionLoaded","enableCommand","position","_setSuggestionData","markers","getUser","_registerDefaultCallbacks","getAllAdjacentSuggestions","TrackChangesEditing","next","_onDiscard","getSuggestions","getLastMatchingPosition","_removeSuggestion","discardSuggestion","notReady","removed","isAtEnd","document","stop","suggestionChanged","howMany","join","isBlock","createRangeIn","containsRangeInObject","formatInline:","fromRange","$graveyard","config","plugins","hasCommentThread","clone","getItems","$marker","formatBlock","root","insertContent","getWalker","isBefore","createdAt","unbindElementFromMarkerName","addSuggestion","commentThread","isEqual","newRange","element","elementToElement","_handleNewSuggestionMarker","getChangedMarkers","skipNestingCheck","isInContent","_setSuggestionRange","markDeletion","_checkSuggestionCorrectness","detach","name","discard","markBlockFormat","some","trackChanges","parent","removeMarker","before","selection","rootName","reconvertMarker","Users","subType","deleteContent","isSelectable","track-changes-adapter-already-set","dataDowncast","editor","getAncestors","_joinWithAdjacentSuggestions","_addThreadToSuggestion","PENDING_ACTION_SUGGESTION","fetchCommentThread","containsRange","setSelection","isNextTo","_getAuthorFromId","item","set","forceDefaultExecution","isInsideObject","getShiftedBy","after","data","getCommentThread","low","isLocal","writer","range","split","deletion:accept","get","conversion","getMarkers","ck-suggestion-marker","_editor","error-saving-suggestion-data-suggestion-discarded","formatInline:discard","editingDowncast","markInsertion","from","init","attributes","addClass","start","clear","insertion:chain","updateMarker","getIntersection","getSuggestion","end","markerToData","mapper","consumable","getRange","setTo","toJSON","documentSelection","values","addComment","insertion:discard","insertion:","update:suggestion","enqueueChange","stopListening","markerToHighlight","forward","marker-count","_suggestionFactory","differ","oldRange","resolve","getChanges","isTouching","has","model","registerPostFixer","bindElementToMarker","targetPosition","chain","acceptAllSuggestions","formatGroupId","dataReady","fire","deletion:chain","createElement","_createSuggestion","change","widget","_suggestions","removeMarkers","_splitMarkerName","_addSuggestionMarker","push","getCustomProperty","activeMarkers","author","addRange","_isForcedDefaultExecutionBlock","requires","_saved","hasComments","type","addHighlight","buildSuggestion","splice","substr","addMarker:suggestion","insertion:accept","isCollapsed","accepted","upcast","markerNameToElements","formatInline:accept","unbind","getSuggestionCallback","formatBlock:chain","getNearestSelectionRange","discardSelectedSuggestions","splitPosition","_joinSuggestions","_rangeIsInLocalUserInsertion","isMultiRange","addSuggestionData","getFirstRange","previous","options","formatInline:chain","isObject","map","_model"];var Ea,_a;Ea=ba,_a=466,function(t){for(;--t;)Ea.push(Ea.shift())}(++_a);const ya=function(t,e){return ba[t-=0]};class Ta extends t.Plugin{static get[ya("0x60")](){return[ya("0xe3"),s.Users,t.PendingActions,Or,qr,rs,ls,ms,ys,Rs,Ls,js,zs,Js,ei,ii,ui,hi,yi,Ai,Mi,Bi,Vi,$i,Zi,sx,ux,hx,Tx,Rx,Nx,Bx,Vx,Jx,oa,aa]}static get[ya("0x8f")](){return ya("0xec")}constructor(t){function e(t){return t.map((t=>String[ya("0xd4")](t)))[ya("0xfa")]("")}super(t),this.set(ya("0x5c"),[]),this.on(ya("0x8c"),((e,n,o,r)=>{this[ya("0x7f")][ya("0x54")]((()=>{for(const e of[...r,...o])this[ya("0x7f")][ya("0xe8")][ya("0x47")](e)&&t[ya("0xbd")][ya("0x126")](e)}))})),this[ya("0xcf")]=new Sr(this.editor[ya("0x48")][ya("0x8a")],this[ya("0x4")][ya("0xce")]),this[ya("0x80")]=null,this[ya("0x41")]=new Ca(this[ya("0x4")]),this[ya("0x56")]=new Map,this[ya("0xc8")]=t[ya("0x102")][ya("0x1c")](ya("0xe3")),this[ya("0xb4")]=new Set,this._model=this[ya("0x4")][ya("0x48")],this[ya("0xbb")]=new WeakMap,this[ya("0x5f")]=!1,this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,52,49,54,48,54])}[ya("0x26")](){const t=this[ya("0x4")];t[ya("0x1d")][ya("0xb1")](ya("0x23"))[ya("0x3e")]({model:ya("0xda"),view:t=>{const{id:e,type:n}=this._splitMarkerName(t[ya("0x8e")]),o=[ya("0x1f"),"ck-suggestion-marker-"+n];let r=3e3;return this[ya("0x5c")][ya("0xd6")](t[ya("0x8e")])&&(o[ya("0x5a")](ya("0xaa")),r=3010),ya("0x90")==n&&(r+=5),{classes:o,attributes:{"data-suggestion":e},priority:r}}}),t.conversion[ya("0xb1")](ya("0x3"))[ya("0xac")]((e=>{e.on(ya("0x68"),((e,n,o)=>{if(!o[ya("0x7b")][ya("0xdd")])return;const r=n[ya("0xe")];if(!r)return;const s=o[ya("0x31")][ya("0xb2")](r);t[ya("0x48")][ya("0x8a")][ya("0x7d")](r)&&s&&!s[ya("0x5b")](ya("0x55"))&&s.is("containerElement")&&(0,P.toWidget)(s,o[ya("0x18")])}),{priority:"high"})})),t.conversion[ya("0xb1")]("dataDowncast").markerToHighlight({model:ya("0xda"),view:(t,e)=>{if(!e[ya("0x7b")][ya("0xdd")])return null;const{type:n}=this[ya("0x58")](t.markerName);return{classes:[ya("0x1f"),ya("0x89")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,r)=>{if(!o[ya("0xe")])return;if(o[ya("0xe")].is(ya("0x124")))return void r[ya("0x32")][ya("0xa2")](o[ya("0xe")],n[ya("0x11c")]);const s=r[ya("0x31")][ya("0xb2")](o.item);if(!o[ya("0xe")].is(ya("0x112"))||!t[ya("0x48")].schema[ya("0xfb")](o[ya("0xe")])||s[ya("0x5b")](ya("0x64")))return;const{id:i}=this[ya("0x58")](o.markerName);r.writer[ya("0x28")]([ya("0x1f"),ya("0xc2")],s),r[ya("0x18")].setAttribute("data-suggestion",i,s),r[ya("0x31")][ya("0x4a")](s,o[ya("0x8e")]),e&&(this.activeMarkers[ya("0xd6")](o.markerName)?r[ya("0x18")][ya("0x28")](ya("0xaa"),s):r[ya("0x18")][ya("0xd7")](ya("0xaa"),s));for(const e of t.model[ya("0xfc")](o[ya("0xe")])[ya("0x105")]())r.consumable[ya("0xa2")](e,n[ya("0x11c")]);r[ya("0x32")][ya("0xa2")](o[ya("0xe")],n[ya("0x11c")])};t[ya("0x1d")][ya("0xb1")](ya("0x3"))[ya("0xac")]((t=>{t.on("addMarker:suggestion:formatBlock",((t,e,o)=>{o.options.showSuggestionHighlights&&n({showActiveMarkers:!1})(t,e,o)}),{priority:ya("0x83")})})),t[ya("0x1d")][ya("0xb1")]("dataDowncast")[ya("0x30")]({model:"suggestion",view:(t,e)=>e[ya("0x7b")][ya("0xdd")]?null:{group:ya("0xda"),name:t[ya("0x67")](ya("0xda")[ya("0x9b")]+1)}}),t[ya("0x1d")][ya("0xb1")](ya("0x6c"))[ya("0x113")]({view:{name:ya("0xda"),attribute:{id:/^\w/,suggestionType:/^\w/}},model:(t,{writer:e})=>{let n="suggestion:"+t[ya("0xdc")]("suggestion-type")+":"+t[ya("0xdc")]("id");return t[ya("0xdc")](ya("0x40"))&&(n+=":"+t[ya("0xdc")](ya("0x40"))),e[ya("0x52")](ya("0x106"),{"data-name":n})}}),t[ya("0x1d")].for(ya("0x6c")).dataToMarker({view:"suggestion"}),t[ya("0x1d")].for(ya("0x23")).add((t=>{t.on("addMarker:suggestion:formatBlock",n(),{priority:ya("0xbf")})})),t[ya("0x1d")][ya("0xb1")](ya("0x23"))[ya("0xac")]((t=>{t.on("removeMarker:suggestion:formatBlock",((t,e,n)=>{const o=n.mapper[ya("0x6d")](e[ya("0x8e")]);if(o)for(const t of o)t[ya("0x5b")](ya("0x64"))||(n[ya("0x18")][ya("0xd7")]([ya("0x1f"),ya("0xc2"),ya("0xaa")],t),n[ya("0x18")].removeAttribute("data-suggestion",t),n[ya("0x31")][ya("0x10d")](t,e.markerName))}),{priority:ya("0xbf")})})),t[ya("0x48")].document.registerPostFixer((e=>{let n=!1;const o=Array[ya("0x25")](t[ya("0x48")][ya("0xf6")][ya("0x42")][ya("0x115")]());for(const{name:i,data:x}of o){const{group:o,type:a,id:c}=this[ya("0x58")](i);if(ya("0xda")!==o)continue;const l=this[ya("0x56")][ya("0x1c")](c);if(null!=x.newRange)if("formatInline"==a&&(n=n||Aa(x[ya("0x111")],i,e,t.model[ya("0x8a")])),x[ya("0x111")].isCollapsed||ya("0x100")==x[ya("0x111")][ya("0x108")][ya("0x125")]||ya("0x107")==a&&!Ia(x[ya("0x111")])||ya("0x90")==a&&(va(s=x[ya("0x111")])||(r=s).start[ya("0x121")]==r.end.nodeBefore&&r.start[ya("0xf5")]))e.removeMarker(i),n=!0;else{if(!l||!l[ya("0x117")])continue;n=!!this._joinWithAdjacentSuggestions(l)||n}}var r,s;return n})),t[ya("0x48")][ya("0xf6")][ya("0x49")]((e=>{let n=!1;for(const o of t[ya("0x48")].document[ya("0x42")][ya("0x45")]()){if(ya("0x98")!=o.type)continue;const r=o.position[ya("0x12")](o[ya("0x9b")]);if(r[ya("0xf5")])for(const s of this[ya("0x56")].values()){if(s[ya("0x77")]||!s[ya("0x117")])continue;if("formatBlock"!=s.type)continue;const i=s[ya("0x79")]();if(i[ya("0x29")][ya("0x121")]!=i[ya("0x2f")][ya("0x121")]&&i[ya("0x2f")][ya("0x110")](o[ya("0xe6")])){const o=t[ya("0x48")][ya("0x9a")](i.start,r);e[ya("0x2c")](s[ya("0xc9")](),{range:o}),n=!0}}}return n})),t[ya("0x48")].markers.on(ya("0x3b"),((t,e,n)=>{if(null==n){const{id:t}=this[ya("0x58")](e[ya("0x11c")]),n=this[ya("0x56")][ya("0x1c")](t);n&&n.addMarkerName(e[ya("0x11c")])}})),t[ya("0x48")][ya("0xf6")].on("change:data",(()=>{const e=Array[ya("0x25")](t[ya("0x48")][ya("0xf6")][ya("0x42")][ya("0x115")]());e.sort(((t,e)=>{const n=t[ya("0x14")][ya("0x43")],o=e.data.oldRange;return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[ya("0x29")][ya("0x10b")](o[ya("0x29")])?-1:1}));const n=new Set;for(const{name:t,data:o}of e){const{group:e,id:r}=this[ya("0x58")](t);if(ya("0xda")===e&&(null===o[ya("0x43")]&&this[ya("0x114")](t),null===o[ya("0x111")])){const t=this[ya("0x56")][ya("0x1c")](r);t[ya("0x117")]?n[ya("0xac")](t):this[ya("0xf1")](t)}}for(const{name:t,data:o}of e){const{group:e,id:r}=this[ya("0x58")](t);if(ya("0xda")!==e)continue;const s=this[ya("0x56")][ya("0x1c")](r);null!=o[ya("0x111")]&&null!=o[ya("0x43")]&&(this._refreshSuggestionsChain(s),n.add(s.head))}for(const t of n)this[ya("0x50")]("suggestionChanged",t);n[ya("0x2a")]()})),t.model.on("applyOperation",((e,n)=>{const o=n[0];if(!this[ya("0x56")].size)return;if(!o[ya("0xb9")])return;if(o.batch[ya("0xb3")]||!o[ya("0xb6")][ya("0x17")])return;let r,s;switch(o[ya("0x63")]){case ya("0x98"):r=t[ya("0x48")][ya("0x92")](o[ya("0xe6")]),s=r[ya("0x12")](o[ya("0xf9")]);break;case ya("0x1a"):r=t[ya("0x48")].createPositionAt(o[ya("0x74")]),s=t[ya("0x48")][ya("0x92")](o[ya("0x8d")]);break;case ya("0xa6"):r=t[ya("0x48")].createPositionAt(o[ya("0x4b")]),s=r.getShiftedBy(o[ya("0xf9")]);break;default:return}const i=t.model[ya("0x9a")](r,s);t.model[ya("0x54")]((()=>{for(const{suggestion:t,meta:e}of this[ya("0x9e")](i)){if(t[ya("0x77")])continue;if(ya("0x87")==t[ya("0x63")])continue;const n=t[ya("0x14")]&&t.data[ya("0x9c")];(ya("0x107")!=t[ya("0x63")]||ya("0x1a")==o.type&&!n)&&(e.containsRangeInObject||ya("0xa4")==t[ya("0x63")]&&e.isOwn||t[ya("0x79")]()[ya("0xa")](i)&&this[ya("0xd0")](t,r,s))}}))}),{priority:ya("0xc0")}),t[ya("0x48")].on(ya("0x0"),((e,n)=>{const o=n[0],r=n[1];if(r&&r[ya("0x10")])return;if(this[ya("0x5f")])return;if(!this[ya("0xb0")][ya("0xd9")])return;if(o.isCollapsed)return;const s=t[ya("0x48")].schema,{start:i,end:x}=o[ya("0x79")](),a=i[ya("0x82")]&&s[ya("0x7d")](i[ya("0x82")])?null:s[ya("0x72")](i,ya("0x3f")),c=x.nodeBefore&&s.isObject(x[ya("0x93")])?null:s[ya("0x72")](x,"backward"),l=t[ya("0x48")][ya("0x9a")](a?a.start:i,c?c[ya("0x2f")]:x);t[ya("0x48")][ya("0x54")]((e=>{this[ya("0x119")](l);const n=t.model[ya("0x8a")].getNearestSelectionRange(l.start);o.is(ya("0x36"))?e[ya("0xb")](n):o[ya("0x34")](n)})),e[ya("0xf7")]()}),{priority:e.priorities[ya("0xdf")]+10}),t[ya("0x48")].on("insertContent",((e,n)=>{const o=n[n[ya("0x9b")]-1];o&&o[ya("0x10")]||this[ya("0x5f")]||this[ya("0xb0")].value&&(t[ya("0x48")][ya("0x54")]((()=>{let o=t[ya("0x48")][ya("0x109")](n[0],n[1],n[2],n[3],{forceDefaultExecution:!0});if(!o)return;e.return=o[ya("0x104")]();const r=o[ya("0x2f")].nodeBefore,s=t[ya("0x48")][ya("0x8a")];r&&s.isBlock(r)&&!s[ya("0x7d")](r)&&(o=t[ya("0x48")][ya("0x9a")](o[ya("0x29")],t[ya("0x48")][ya("0x92")](r,ya("0x2f")))),this[ya("0x24")](o)})),e[ya("0xf7")]())}),{priority:ya("0xbf")}),this[ya("0xb0")]=new H(t,this[ya("0xb4")]),this[ya("0x4")][ya("0xd2")][ya("0xac")](ya("0x120"),this[ya("0xb0")]),this[ya("0xe5")](ya("0x120"));const o=new K(t,this[ya("0x56")]);t.commands[ya("0xac")](ya("0xd3"),o),this[ya("0xe5")](ya("0xd3"));const r=new Q(t,this._suggestions);t[ya("0xd2")][ya("0xac")](ya("0xf2"),r),this[ya("0xe5")](ya("0xf2")),t.commands[ya("0xac")](ya("0x4d"),new xt(t,o,this[ya("0x56")])),this.enableCommand(ya("0x4d")),t[ya("0xd2")][ya("0xac")](ya("0xcd"),new Tt(t,r,this._suggestions)),this[ya("0xe5")](ya("0xcd")),t.commands[ya("0xac")](ya("0xa1"),new pt(t,o,this._suggestions)),this[ya("0xe5")](ya("0xa1")),t.commands.add(ya("0x73"),new Rt(t,r,this[ya("0x56")])),this[ya("0xe5")](ya("0x73"));const s=t.plugins[ya("0x1c")](ya("0xe3"));this.listenTo(s,ya("0x38"),((t,{threadId:e})=>{const n=this[ya("0x56")].get(e);n&&n[ya("0x10f")]&&1===n[ya("0x10f")][ya("0x9b")]&&this[ya("0xe1")](e,{hasComments:!0})}),{priority:ya("0x16")}),this[ya("0xad")](s,ya("0xba"),((t,{threadId:e})=>{const n=this[ya("0x56")][ya("0x1c")](e);n&&n[ya("0x10f")]&&!n.commentThread[ya("0x9b")]&&this[ya("0xe1")](e,{hasComments:!1})}),{priority:"low"})}set[ya("0xcb")](t){if(this[ya("0x80")])throw new e.CKEditorError(ya("0x2"),this);this[ya("0x80")]=t}get[ya("0xcb")](){return this._adapter}[ya("0xef")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[ya("0x56")][ya("0x37")]())t&&!e[ya("0x117")]||n[ya("0x5a")](e);return e?n.map((t=>t[ya("0x35")]())):n}[ya("0x2e")](t){const n=this[ya("0x56")][ya("0x1c")](t);if(!n)throw new e.CKEditorError("track-changes-suggestion-not-found",this);return n}[ya("0xa8")](t){return this[ya("0x56")].has(t)}[ya("0x78")](t){const{id:e,authorId:n}=t,[o,r]=t[ya("0x63")].split(":"),s=this[ya("0x56")][ya("0x1c")](e)||this[ya("0x53")](o,r,e,n);switch(this._addThreadToSuggestion(s),this._checkSuggestionCorrectness(s,o,r||null,n),s[ya("0x10c")]=t[ya("0x10c")],t[ya("0x14")]&&(s.data=t[ya("0x14")]),t[ya("0x27")]&&(s[ya("0x27")]=t[ya("0x27")]),this[ya("0x80")]&&this[ya("0x80")][ya("0x10e")]||(s[ya("0x61")]=!0),this[ya("0xbb")].get(s)){case ya("0xf3"):this[ya("0xbb")].set(s,ya("0x4f"));break;case ya("0x81"):s.isInContent?(this._suggestionState[ya("0xf")](s,ya("0xca")),this[ya("0x50")](ya("0xe4"),s)):this._suggestionState[ya("0xf")](s,ya("0xf4"))}return s}[ya("0xd3")](t){this[ya("0x10")]((()=>{this[ya("0x4")][ya("0x48")][ya("0x54")]((()=>{for(const e of t.getAllAdjacentSuggestions())e[ya("0xc7")]()}))}))}[ya("0xf2")](t){this[ya("0x10")]((()=>{this[ya("0x4")][ya("0x48")][ya("0x54")]((()=>{for(const e of t[ya("0xeb")]())e.discard()}))}))}enableCommand(t,n){const o=this[ya("0x4")][ya("0xd2")][ya("0x1c")](t);if(!o)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});this[ya("0xb4")].add(o),n&&o.on(ya("0xd8"),((t,e)=>{this.trackChangesCommand.value&&(this[ya("0x5f")]||e[ya("0x9b")]>0&&e[e[ya("0x9b")]-1]&&e[e[ya("0x9b")]-1][ya("0x10")]||(n(((...t)=>o[ya("0xd8")](...t,{forceDefaultExecution:!0})),...e),t[ya("0xf7")]()))}),{priority:ya("0xbf")})}[ya("0x10")](t){let n,o;const r=this[ya("0x5f")];this[ya("0x5f")]=!0;try{n=t()}catch(t){o=t}return r||(this._isForcedDefaultExecutionBlock=!1),o&&e.CKEditorError[ya("0xaf")](o,this),n}[ya("0x24")](t,n=null,o={}){if(t.isCollapsed)return null;const r=this.editor[ya("0x102")].get("Users").me;for(const{suggestion:e,meta:o}of this._findSuggestions(t,ya("0xa4")))if(o[ya("0xd5")]){if(!o[ya("0xc")])return e;if(n==e[ya("0x128")]){const n=e.getFirstRange();return n[ya("0x29")][ya("0x110")](t.end)?this._setSuggestionRange(e,this[ya("0x7f")][ya("0x9a")](t[ya("0x29")],n[ya("0x2f")])):this[ya("0x118")](e,this[ya("0x7f")][ya("0x9a")](n[ya("0x29")],t[ya("0x2f")])),e}}const s=(0,e.uid)(),i=r.id,x=n?"insertion:"+n:"insertion",a=this[ya("0xe7")]({id:s,type:x,createdAt:new Date,authorId:i,attributes:o});return this[ya("0x59")](x,s,i,t),a}[ya("0xe2")](t,n=ya("0xde"),o={}){const r=this[ya("0x4")][ya("0x102")][ya("0x1c")](ya("0x127")).me,s=this[ya("0x41")][ya("0x70")](ya("0xa4"),n,"join");for(const e of this.getSuggestions())if(e[ya("0x5d")].id==r.id&&ya("0xa4")==e.type&&e[ya("0x128")]==n&&(s(e.getRanges(),t)||s(t,e[ya("0xc4")]()))){for(const n of t)e[ya("0x5e")](n);return e}for(const e of t)for(const{suggestion:n,meta:o}of this[ya("0x9e")](e,ya("0xa4"))){if(!o[ya("0xd5")])continue;let e=!0;for(const o of n[ya("0xc4")]())for(const n of t)if(!o.containsRange(n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=r.id,a=ya("0x3a")+n,c=this[ya("0xe7")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[ya("0x59")](a,i,x,e,Cr[ya("0x8b")]());return c}[ya("0x84")](t,n,o=null,r={}){if(o=o||Ra(n),t[ya("0x6a")])return;const s=this.editor[ya("0x102")][ya("0x1c")](ya("0x127")).me,i=[];for(const{suggestion:e,meta:n}of this[ya("0x9e")](t,"insertion"))n[ya("0xd5")]&&!n[ya("0x11")]&&i[ya("0x5a")](...e[ya("0xc4")]());const x=function(t,e){const n=[];for(const o of e){const e=t[ya("0x2d")](o);e&&n[ya("0x5a")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[ya("0x9b")];){const o=n[e][ya("0xc3")](t);n[ya("0x66")](e,1,...o),e+=o.length}}return n}(t,i);x.length&&this[ya("0x7f")][ya("0x54")]((()=>{for(const t of x){const e=this[ya("0x41")][ya("0x70")](ya("0x87"),o,ya("0xc7"));this[ya("0x10")]((()=>e([t],n,r)))}}));for(const t of a){let i=null,x=t[ya("0x29")],a=t[ya("0x2f")];for(const{suggestion:e,meta:n}of this._findSuggestions(t,ya("0x87"))){if(!n[ya("0xd5")])continue;if(e[ya("0x128")]!=o)continue;const r=e.getFirstRange();if(r.containsRange(t,!0))return;x=x[ya("0x10b")](r.start)?x:r[ya("0x29")],a=a.isAfter(r[ya("0x2f")])?a:r[ya("0x2f")],i?r[ya("0x29")][ya("0x10b")](i[ya("0x79")]()[ya("0x29")])?(i[ya("0x57")](),i=e):e.removeMarkers():i=e}const c=this[ya("0x7f")][ya("0x9a")](x,a);if(i)this[ya("0x118")](i,c);else{const t=(0,e.uid)(),i=s.id;this[ya("0xe7")]({id:t,type:ya("0xfe")+o,data:n,createdAt:new Date,authorId:i,attributes:r}),this[ya("0x59")](ya("0xfe")+o,t,i,c)}}}[ya("0x11e")](t,n,o=[],r=null,s={}){n.formatGroupId||(n.formatGroupId=n.commandName),n[ya("0x9c")]=t.is(ya("0x19")),r=r||Ra(n);const i=o[ya("0x7e")]((t=>Sa(t,this[ya("0x7f")]))),x=t.is(ya("0x19"))?t:Sa(t,this[ya("0x7f")]);i[ya("0x5a")](x);let a=!0;for(const t of i)if(!this[ya("0x76")](t)){a=!1;break}if(a){const t=this._suggestionFactory[ya("0x70")]("formatBlock",r,ya("0xc7"));return void this[ya("0x10")]((()=>t([x],n,s)))}let c=null,l=x.start,u=x[ya("0x2f")];for(const{suggestion:t,meta:e}of this[ya("0x9e")](x,ya("0x107"))){if(!e[ya("0xd5")]||e[ya("0xc")]||e[ya("0xfd")]||e.isInsideObject)continue;if(t[ya("0x14")][ya("0x4e")]!=n[ya("0x4e")])continue;const o=t[ya("0x79")]();if(t[ya("0x128")]==r){if(o[ya("0xa")](x,!0))return;l=l[ya("0x10b")](o[ya("0x29")])?l:o[ya("0x29")],u=u[ya("0xc6")](o[ya("0x2f")])?u:o[ya("0x2f")],c?o[ya("0x29")][ya("0x10b")](c.getFirstRange()[ya("0x29")])?(c[ya("0x57")](),c=t):t[ya("0x57")]():c=t}else{const e=x.getIntersection(o);this._cutOutSuggestionMarker(t,e)}}const d=this.editor[ya("0x102")][ya("0x1c")](ya("0x127")).me,f=(0,e.uid)(),g=d.id;c?this._setSuggestionRange(c,this[ya("0x7f")].createRange(l,u)):(this[ya("0xe7")]({id:f,type:ya("0xb8")+r,data:n,createdAt:new Date,authorId:g,attributes:s}),this[ya("0x59")]("formatBlock:"+r,f,g,this[ya("0x7f")].createRange(l,u)))}[ya("0xc5")](t,n,o=[],r=null,s={}){n[ya("0x4e")]||(n.formatGroupId=n[ya("0xa9")]),n[ya("0x9c")]=!1,r=r||Ra(n);const i=o[ya("0x7e")]((t=>Sa(t,this[ya("0x7f")]))),x=t.map((t=>Sa(t,this[ya("0x7f")])));i[ya("0x5a")](...x);let a=!0;for(const t of i)if(!this[ya("0x76")](t)){a=!1;break}if(a){const t=this[ya("0x41")][ya("0x70")]("formatBlock",r,"accept");return void this[ya("0x10")]((()=>t(x,n,s)))}const c=this.editor[ya("0x102")][ya("0x1c")](ya("0x127")).me;for(const t of this[ya("0xef")]()){if(t[ya("0x5d")].id!=c.id)continue;if(ya("0x107")!=t[ya("0x63")]||t[ya("0x14")][ya("0x4e")]!=n[ya("0x4e")])continue;const e=t[ya("0x128")]==r;for(let n=0;n<x[ya("0x9b")];n++){const o=x[n];for(const r of t[ya("0x1e")]()){const s=r[ya("0x33")]();if(o[ya("0x110")](s)){e?(x[ya("0x66")](n,1),n--):t[ya("0x122")](r[ya("0x11c")]);break}}}}if(0==x[ya("0x9b")])return;const l=this[ya("0x41")][ya("0x70")](ya("0x107"),r,ya("0xfa"));for(const t of this[ya("0xef")]())if(t[ya("0x5d")].id==c.id&&ya("0x107")==t[ya("0x63")]&&t.data[ya("0x4e")]==n[ya("0x4e")]&&t[ya("0x128")]==r&&(l(t[ya("0xc4")](),x)||l(x,t[ya("0xc4")]()))){for(const e of x)t[ya("0x5e")](e);return t}const u=(0,e.uid)(),d=c.id,f="formatBlock:"+r,g=this[ya("0xe7")]({id:u,type:f,data:n,createdAt:new Date,authorId:d,attributes:s});for(const t of x)this[ya("0x59")](f,u,d,t,Cr.getMultiRangeId());return g}[ya("0x119")](t,n=null,o={}){if(t[ya("0x6a")])return null;const r=this[ya("0x4")][ya("0x102")][ya("0x1c")](ya("0x127")).me,s=new F.LiveRange(t[ya("0x29")],t[ya("0x2f")]);for(const{suggestion:t,meta:e}of this[ya("0x9e")](s,ya("0xa4")))if(e.isOwn&&!e.isNextTo)if(t.isMultiRange){const e=t.getRanges().filter((t=>ya("0x100")!=t[ya("0x108")][ya("0x125")]));if(e.every((t=>s[ya("0xa")](t,!0)))&&t[ya("0x11d")](),e.some((t=>t[ya("0xa")](s,!0)))){const t=this[ya("0x41")][ya("0x70")](ya("0x90"),n,ya("0xc7"));return this.forceDefaultExecution((()=>t([s],null,o))),null}}else{const e=s[ya("0x2d")](t[ya("0x79")]());t[ya("0xee")]([e],null,o)}if(s[ya("0x11b")](),s[ya("0x6a")]||ya("0x100")==s[ya("0x108")].rootName)return null;let i=null,x=s.start,a=s.end;for(const{suggestion:t,meta:e}of this[ya("0x9e")](s,"deletion"))if(e[ya("0xd5")])if(t[ya("0x77")]){let e=!0;for(const n of t[ya("0xc4")]()){if(n[ya("0xa")](s,!0))return t;s.containsRange(n)||(e=!1)}e&&t[ya("0x11d")]()}else{const e=t[ya("0x79")]();if(e[ya("0xa")](s,!0))return t;x=x[ya("0x10b")](e[ya("0x29")])?x:e.start,a=a[ya("0xc6")](e[ya("0x2f")])?a:e[ya("0x2f")],i?e.start.isBefore(i.getFirstRange()[ya("0x29")])?(i[ya("0x57")](),i=t):t[ya("0x57")]():i=t}if(i)return this[ya("0x118")](i,this[ya("0x7f")][ya("0x9a")](x,a)),i;{const t=(0,e.uid)(),s=this[ya("0x7f")][ya("0x9a")](x,a),i=r.id,c=n?ya("0xd1")+n:"deletion",l=this[ya("0xe7")]({id:t,type:c,createdAt:new Date,authorId:i,attributes:o});return this[ya("0x59")](c,t,i,s),l}}markMultiRangeDeletion(t,n=ya("0xde"),o={}){const r=this.editor.plugins.get(ya("0x127")).me,s=t[ya("0x7e")]((t=>new F.LiveRange(t[ya("0x29")],t[ya("0x2f")]))),i=new Set;for(const t of s)for(const{suggestion:e,meta:n}of this[ya("0x9e")](t,ya("0xa4")))n[ya("0xd5")]&&!n.isNextTo&&i[ya("0xac")](e);for(const e of i)if(e[ya("0x77")]){const r=e[ya("0xc4")]();if((!e[ya("0x27")]||!e.attributes[ya("0x116")])&&r[ya("0x96")]((t=>s.some((e=>e.containsRange(t,!0)))))&&e[ya("0x11d")](),s.every((t=>r[ya("0x11f")]((e=>e[ya("0xa")](t,!0)))))){const e=this._suggestionFactory.getSuggestionCallback(ya("0x90"),n,"accept");return this[ya("0x10")]((()=>e(t,null,o))),null}}else{const t=e[ya("0x79")]();if(s[ya("0x11f")]((e=>e[ya("0xa")](t,!0)))&&e[ya("0x11d")](),s[ya("0x96")]((e=>t[ya("0xa")](e,!0)))){const t=this[ya("0x41")].getSuggestionCallback(ya("0x90"),n,ya("0xc7"));return this[ya("0x10")]((()=>t(s,null,o))),null}}const x=this[ya("0x41")].getSuggestionCallback(ya("0x90"),n,ya("0xfa"));let a=null;for(const t of this.getSuggestions())if(t[ya("0x5d")].id==r.id&&t[ya("0x117")]&&ya("0x90")==t[ya("0x63")]&&t[ya("0x128")]==n&&(x(t.getRanges(),s)||x(s,t[ya("0xc4")]())))if(a){if(t[ya("0x10f")]&&t.commentThread[ya("0x9b")])continue;for(const e of t[ya("0xc4")]())a.isIntersectingWithRange(e)||a[ya("0x5e")](e);t[ya("0x57")]()}else{a=t;for(const e of s)t[ya("0x86")](e)||t[ya("0x5e")](e)}if(a)return a;i.clear();for(const t of s)for(const{suggestion:e,meta:n}of this[ya("0x9e")](t,ya("0x90")))n[ya("0xd5")]&&i[ya("0xac")](e);for(const t of i){const e=t[ya("0xc4")]();if((!o||!o[ya("0x116")])&&s[ya("0x96")]((t=>e.some((e=>e[ya("0xa")](t,!0))))))return t;(!t.attributes||!t[ya("0x27")][ya("0x116")])&&e[ya("0x96")]((t=>s.some((e=>e[ya("0xa")](t,!0)))))&&t[ya("0x11d")]()}const c=(0,e.uid)(),l=r.id,u=ya("0xd1")+n,d=this[ya("0xe7")]({id:c,type:u,createdAt:new Date,authorId:l,attributes:o});for(const t of s)t[ya("0x11b")](),t[ya("0x6a")]||ya("0x100")==t[ya("0x108")][ya("0x125")]||this._addSuggestionMarker(u,c,l,t,Cr.getMultiRangeId());return d}_setSuggestionRange(t,e){const n=t[ya("0xc9")]();this._model[ya("0x54")]((t=>{t[ya("0x2c")](n,{range:e})}))}[ya("0x7")](t){const e=t.id,n=this.editor[ya("0x101")][ya("0x1c")](ya("0x97"));this[ya("0xc8")][ya("0x103")](e)||this[ya("0xc8")][ya("0xb7")]({channelId:n,threadId:e});const o=this[ya("0xc8")][ya("0x15")](e);o[ya("0x6f")](ya("0xdb")),o[ya("0xdb")]=!1,t.commentThread=o}[ya("0x11a")](t,n,o,r){if(t[ya("0x63")]!=n||t[ya("0x128")]!=o||t[ya("0x5d")].id!=r)throw this[ya("0x4")][ya("0x94")]("track-changes-suggestion-data-mismatch"),new e.CKEditorError(ya("0xa5"),this)}_cutOutSuggestionMarker(t,n){const o=t.getFirstRange();if(n[ya("0x110")](o))t[ya("0x57")]();else if(o[ya("0xa")](n)){const r=this._model[ya("0x92")](n[ya("0x29")][ya("0x93")],ya("0x2f"));this._setSuggestionRange(t,this[ya("0x7f")][ya("0x9a")](o[ya("0x29")],r));const s=(0,e.uid)(),i=t.author.id,x=t[ya("0x63")]+":"+t[ya("0x128")];this[ya("0xe7")]({id:s,type:x,createdAt:new Date,authorId:i,data:t[ya("0x14")],attributes:t[ya("0x27")]});const a=this[ya("0x7f")][ya("0x92")](n[ya("0x2f")][ya("0x121")],ya("0x13")),c=this[ya("0x7f")][ya("0x9a")](a,o[ya("0x2f")]);this[ya("0x59")](x,s,i,c)}else if(o[ya("0xc1")](n.start)){const e=this[ya("0x7f")][ya("0x92")](n.start[ya("0x93")],ya("0x2f"));this[ya("0x118")](t,this[ya("0x7f")][ya("0x9a")](o[ya("0x29")],e))}else{const e=this[ya("0x7f")][ya("0x92")](n[ya("0x2f")][ya("0x121")],ya("0x13"));this._setSuggestionRange(t,this[ya("0x7f")].createRange(e,o[ya("0x2f")]))}}_rangeIsInLocalUserInsertion(t){for(const{suggestion:e,meta:n}of this._findSuggestions(t,ya("0xa4"))){if(!n[ya("0xd5")])continue;const o=e[ya("0xc4")]();for(const e of o)if(!t.getDifference(e)[ya("0x9b")])return!0}return!1}[ya("0xd")](t){const n=this.editor[ya("0x102")][ya("0x1c")]("Users")[ya("0xe9")](t);if(!n)throw new e.CKEditorError("track-changes-user-not-found",this);return n}[ya("0x53")](t,e,n,o){const r=this._getAuthorFromId(o),s=this[ya("0x41")][ya("0x65")](t,e,n,r,(t=>this[ya("0xe1")](n,{attributes:t})));return this[ya("0xad")](s,ya("0xc7"),(()=>{this[ya("0xe1")](n,{state:ya("0x6b")})}),{priority:"high"}),this[ya("0xad")](s,ya("0x11d"),(()=>{this[ya("0xe1")](n,{state:"rejected"})}),{priority:ya("0xbf")}),this[ya("0x56")].set(n,s),this[ya("0xbb")][ya("0xf")](s,ya("0xf3")),s}[ya("0x58")](t){const e=t[ya("0x1a")](":");return{group:e[0],type:e[1],subType:e.length>=5?e[2]:null,id:e.length<5?e[2]:e[3],authorId:e[ya("0x9b")]<5?e[3]:e[4],markerCount:6==e[ya("0x9b")]?e[5]:null}}[ya("0xd0")](t,n,o){const r=t.getFirstRange(),s=r.start,i=r[ya("0x2f")];this[ya("0x118")](t,this._model[ya("0x9a")](s,n));const x=(0,e.uid)(),a=t[ya("0x5d")].id,c=t[ya("0x63")]+(t[ya("0x128")]?":"+t[ya("0x128")]:"");this[ya("0xe7")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,data:t[ya("0x14")]}),ya("0x107")==t[ya("0x63")]&&(o=this[ya("0x7f")].createPositionBefore(o[ya("0x121")])),this[ya("0x59")](c,x,a,this[ya("0x7f")].createRange(o,i))}[ya("0x9e")](t,e=null){const n=[],o=this._model[ya("0x8a")],r=this[ya("0x4")][ya("0x102")][ya("0x1c")](ya("0x127")).me;for(const s of this[ya("0xef")]())if(s[ya("0x117")]&&(!e||s[ya("0x63")]==e))for(const e of s.getRanges()){const i=t.start[ya("0x110")](e[ya("0x2f")])||t.end[ya("0x110")](e[ya("0x29")]);if(i||t[ya("0x2d")](e)){const x=t.containsRange(e)&&ka(o,e.start,t),a=e[ya("0xa")](t)&&ka(o,t[ya("0x29")],e);n[ya("0x5a")]({suggestion:s,meta:{isOwn:r==s.author,isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}[ya("0x59")](t,e,n,o,r=null){this[ya("0x7f")][ya("0x54")]((s=>{let i="suggestion:"+t+":"+e+":"+n;r&&(i=i+":"+r),s.addMarker(i,{range:o,usingOperation:!0,affectsData:!0})}))}_removeSuggestion(t){const e=t[ya("0x7a")],n=t[ya("0xed")];t[ya("0x7a")]=null,null!=e&&(e[ya("0xed")]=null),t[ya("0xed")]=null,null!=n&&(n[ya("0x7a")]=null),ya("0xca")==this._suggestionState.get(t)&&(this._suggestionState[ya("0xf")](t,ya("0xf4")),this[ya("0x50")](ya("0xa0"),t,e,n))}[ya("0xe7")](t){const n=t.id,o=this.addSuggestionData(t);if(this[ya("0x80")]&&this._adapter.addSuggestion){const r=this[ya("0x4")][ya("0x102")][ya("0x1c")]("PendingActions"),s=o[ya("0x62")],i=o[ya("0x128")]?o.type+":"+o.subType:o[ya("0x63")],x=this[ya("0x4")].locale,a=r[ya("0xac")](kr(x,ya("0x8"))),c={id:n,type:i,hasComments:s,data:t[ya("0x14")]||null,originalSuggestionId:t.originalSuggestionId||null,attributes:o.attributes};this[ya("0x80")][ya("0x10e")](c)[ya("0xae")]((t=>{o[ya("0x61")]=!0,r.remove(a),t&&t[ya("0x10c")]&&(this._suggestions.get(n)[ya("0x10c")]=t[ya("0x10c")])}))[ya("0x85")]((t=>{throw(0,e.logWarning)(ya("0x21")),this[ya("0x4")][ya("0x48")][ya("0x3c")]({isUndoable:!1},(()=>{o.discard()})),o[ya("0x3d")](),this[ya("0x56")].delete(o.id),this[ya("0xbb")].delete(o),t}))}return o}[ya("0xe1")](t,e){const n=this[ya("0x4")][ya("0x102")].get(ya("0xbc")),o=this[ya("0x56")][ya("0x1c")](t);if(this[ya("0x80")]&&this[ya("0x80")][ya("0xa3")])if(o[ya("0x61")]){const o=n[ya("0xac")](kr(this[ya("0x4")][ya("0xce")],"PENDING_ACTION_SUGGESTION"));this[ya("0x80")][ya("0xa3")](t,e)[ya("0xae")]((()=>{n.remove(o)}))}else o.on(ya("0x99"),(()=>{this[ya("0xe1")](t,e)}))}[ya("0xb5")](t){if(!this[ya("0x80")]||!this._adapter[ya("0x2e")])throw new e.CKEditorError("track-changes-adapter-missing-getsuggestion",this);return this[ya("0x80")].getSuggestion(t)}[ya("0x114")](t){const{id:e,type:n,subType:o,authorId:r}=this._splitMarkerName(t),s=this[ya("0x56")].get(e)||this[ya("0x53")](n,o,e,r);switch(this._checkSuggestionCorrectness(s,n,o,r),this[ya("0xbb")][ya("0x1c")](s)){case ya("0xf3"):this[ya("0xb5")](e).then((t=>{let n=Promise[ya("0x44")]();t[ya("0x62")]&&(n=this[ya("0xc8")][ya("0x9")]({channelId:this.editor.config.get(ya("0x97")),threadId:e})),n[ya("0xae")]((()=>{this[ya("0x78")](t)[ya("0x61")]=!0}))})),this[ya("0xbb")][ya("0xf")](s,ya("0x81"));break;case ya("0xf4"):this[ya("0xe1")](e,{state:ya("0xa7")});case ya("0x4f"):this[ya("0xbb")].set(s,ya("0xca")),this.fire(ya("0xe4"),s);break;case ya("0xca"):this[ya("0x50")](ya("0xf8"),s)}s.addMarkerName(t),this._refreshSuggestionsChain(s)}_refreshSuggestionsChain(t){if(t[ya("0x77")])return;let e=!0,n=!0;for(const o of this[ya("0xef")]()){if(o[ya("0x77")])continue;if(o==t||!o[ya("0x117")])continue;if(o[ya("0x5d")].id!=t[ya("0x5d")].id)continue;const r=this[ya("0x41")][ya("0x70")](t[ya("0x63")],t[ya("0x128")],ya("0x4c")),s=this[ya("0x41")][ya("0x70")](o[ya("0x63")],o.subType,ya("0x4c")),i=r(t,o),x=s(t,o);i&&x&&(i[1][ya("0x10f")]&&i[1][ya("0x10f")][ya("0x9b")]||(i[0][ya("0xed")]=i[1],i[1][ya("0x7a")]=i[0],i[0]==t?n=!1:e=!1))}t[ya("0x7a")]&&e&&(t.previous[ya("0xed")]=null,t.previous=null),t[ya("0xed")]&&n&&(t[ya("0xed")].previous=null,t[ya("0xed")]=null)}[ya("0x6")](t){for(const e of this._suggestions[ya("0x37")]()){if(e==t||!e[ya("0x117")])continue;if(e[ya("0x63")]!=t[ya("0x63")]||e.author.id!=t[ya("0x5d")].id||e[ya("0x128")]!=t[ya("0x128")])continue;const n=this[ya("0x41")][ya("0x70")](t[ya("0x63")],t[ya("0x128")],ya("0xfa"));if(n(e[ya("0xc4")](),t[ya("0xc4")]())){if(t.commentThread&&t.commentThread[ya("0x9b")])continue;return this[ya("0x75")](e,t),!0}if(n(t[ya("0xc4")](),e[ya("0xc4")]())){if(e[ya("0x10f")]&&e[ya("0x10f")].length)continue;return this[ya("0x75")](t,e),!0}}return!1}[ya("0x75")](t,e){if(t.isMultiRange)for(const n of e[ya("0xc4")]())t[ya("0x5e")](n);else{const n=e[ya("0x79")]()[ya("0x2f")];this[ya("0x118")](t,this[ya("0x7f")][ya("0x9a")](t[ya("0x79")]()[ya("0x29")],n))}e[ya("0x57")]()}}(0,e.mix)(Ta,e.EmitterMixin);class Ca{constructor(t){this[ya("0x20")]=t,this._model=t.model,this._customCallbacks=new Map,this._defaultCallbacks=new Map,this[ya("0xea")]()}[ya("0x65")](t,e,n,o,r){return new Cr(this[ya("0x7f")],{type:t,subType:e,id:n,author:o,onAttributesChange:r,onAccept:(...n)=>this[ya("0x70")](t,e,ya("0xc7"))(...n),onDiscard:(...n)=>this[ya("0x70")](t,e,"discard")(...n)})}registerCustomCallback(t,e,n,o){const r=t+":"+e+":"+n;this[ya("0xe0")][ya("0xf")](r,o)}getSuggestionCallback(t,e,n){const o=t+":"+e+":"+n;return this[ya("0xe0")][ya("0x1c")](o)||this._defaultCallbacks[ya("0x1c")](t+":"+n)}[ya("0xea")](){const t=()=>{},e=t=>{t[ya("0xcc")](((t,e)=>t.start.isBefore(e[ya("0x29")])?1:-1)),this[ya("0x7f")][ya("0x54")]((e=>{for(const n of t){let t;t=n[ya("0x2f")][ya("0xf5")]&&n.end.parent==n[ya("0x29")][ya("0x82")]?e.createSelection(n.start.nodeAfter,"on"):e.createSelection(n),this[ya("0x7f")][ya("0x0")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[ya("0x7f")].change((n=>{const{commandName:o,commandParams:r=[]}=e,s=t[0];if(ya("0x100")==s[ya("0x108")][ya("0x125")])return;const i=Array[ya("0x25")](this[ya("0x7f")][ya("0xf6")][ya("0x124")][ya("0xc4")]())[ya("0x7e")]((t=>F.LiveRange[ya("0xff")](t)));va(s)?n[ya("0xb")](this[ya("0x7f")].createRange(s[ya("0x2f")])):n.setSelection(s);for(const t of this[ya("0x20")].commands[ya("0xd2")]())t[ya("0x88")]();r.push({forceDefaultExecution:!0}),this._editor[ya("0xd8")](o,...r);const x=i[ya("0xbe")]((t=>ya("0x100")!=t[ya("0x108")].rootName));x[ya("0x9b")]>0&&n[ya("0xb")](x);for(const t of i)t.detach()}))},o=(t,e)=>1==t[ya("0x9b")]&&1==e[ya("0x9b")]&&t[0].end[ya("0x110")](e[0][ya("0x29")]),r=(t,e)=>wa(t,e,this[ya("0x7f")])?[t,e]:wa(e,t,this[ya("0x7f")])?[e,t]:null;this._defaultCallbacks[ya("0xf")](ya("0x69"),t),this[ya("0xab")][ya("0xf")](ya("0x39"),e),this[ya("0xab")][ya("0xf")]("insertion:join",o),this[ya("0xab")][ya("0xf")](ya("0x2b"),r),this[ya("0xab")][ya("0xf")](ya("0x1b"),e),this[ya("0xab")][ya("0xf")]("deletion:discard",t),this[ya("0xab")][ya("0xf")]("deletion:join",o),this[ya("0xab")].set(ya("0x51"),r),this[ya("0xab")][ya("0xf")](ya("0x6e"),n),this[ya("0xab")][ya("0xf")](ya("0x22"),t),this[ya("0xab")].set(ya("0x9f"),o),this[ya("0xab")][ya("0xf")](ya("0x7c"),t),this._defaultCallbacks[ya("0xf")]("formatBlock:accept",n),this[ya("0xab")].set("formatBlock:discard",t),this[ya("0xab")][ya("0xf")]("formatBlock:join",o),this._defaultCallbacks[ya("0xf")](ya("0x71"),t)}}function ka(t,e,n){for(const o of e.parent[ya("0x5")]({includeSelf:!0,parentFirst:!0})){if(o.root==o)return!1;if(!n.containsItem(o))return!1;if(t[ya("0x7d")](o)||t[ya("0x95")](o))return!0}}function va(t){return t[ya("0x2f")].parent==t[ya("0x29")].nodeAfter&&t[ya("0x2f")].isAtStart}function Aa(t,e,n,o){const r=t=>!t.item.is("textProxy")&&!o.isObject(t[ya("0xe")]),s=t[ya("0x29")][ya("0xf0")](r),i=t[ya("0x2f")][ya("0xf0")](r,{direction:"backward"});return!(t[ya("0x29")].isEqual(s)&&t[ya("0x2f")][ya("0x110")](i)||(s.isBefore(i)?n[ya("0x2c")](e,{range:n.createRange(s,i)}):n.removeMarker(e),0))}function Ra(t){return function(t){let e=0,n=0;for(const o of ga(t))e=(e<<5)-e+o,e&=e,[e,n]=[n,e];return pa(e)+pa(n)}(t)}function Ia(t){const e=t[ya("0x29")][ya("0x82")];return e&&e.is(ya("0x112"))}function Sa(t,e){const n=e[ya("0x8a")][ya("0x7d")](t)||e.schema[ya("0x1")](t);return e[ya("0x9a")](e.createPositionAt(t,ya("0x123")),n?e.createPositionAfter(t):e[ya("0x92")](t,ya("0x2f")))}function wa(t,e,n){const o=t[ya("0x79")](),r=e[ya("0x79")]();if(o[ya("0x2f")][ya("0x110")](r[ya("0x29")]))return!0;if(t[ya("0x63")]!=e.type)return!1;if(!o[ya("0x2f")][ya("0x46")](r[ya("0x29")]))return!1;const s=n[ya("0x9a")](o.end,r[ya("0x29")])[ya("0x10a")]();for(const t of s)if([ya("0x91"),ya("0x9d")].includes(t[ya("0x63")])&&n[ya("0x8a")][ya("0x95")](t[ya("0xe")]))return!1;return!0}var Ma,Na,La=["execute","listenTo","destroy","acceptSuggestion","model","unbind","stopListening","view","discardSuggestion","_discardCommand","isEnabled","commentThreadController","_acceptCommand","bind"];Ma=La,Na=218,function(t){for(;--t;)Ma.push(Ma.shift())}(++Na);var Oa=function(t,e){return La[t-=0]};class Fa{constructor(t,e,n,o,r){this[Oa("0xa")]=t,this[Oa("0xd")]=e,this[Oa("0x3")]=r,this[Oa("0x4")]=n,this[Oa("0x1")]=o,this.view[Oa("0x5")](Oa("0x2")).to(this[Oa("0x4")]),this[Oa("0x7")](e,Oa("0x9"),(()=>this[Oa("0x9")]())),this[Oa("0x7")](e,Oa("0x0"),(()=>this[Oa("0x0")]()))}acceptSuggestion(){this[Oa("0x4")][Oa("0x6")](this[Oa("0xa")].id)}[Oa("0x0")](){this[Oa("0x1")][Oa("0x6")](this[Oa("0xa")].id)}[Oa("0x8")](){this[Oa("0xd")][Oa("0xb")]("isEnabled"),this[Oa("0xc")](),this.commentThreadController[Oa("0x8")]()}}(0,e.mix)(Fa,e.ObservableMixin);const Pa=["focus","element","descriptionParts","hasDirtyComment","submit","_createCommentViews","isEnabled","bind","CommentView","commentThread","delegate","commentThreadInputView","editorConfig","disableComments","removeComment","isReadOnly","set","_localUser","_createCommentThreadInputView","disabledSubmit","destroy","isDirty","value","updateComment","_model","isActive","addComment","locale","showInput","_config","commentInputView","editor","commentsListView","setData","length","createdAt"];var Da,Ba;Da=Pa,Ba=100,function(t){for(;--t;)Da.push(Da.shift())}(++Ba);const ja=function(t,e){return Pa[t-=0]};class Ua extends r.View{constructor(t,e,n,o){super(t),this[ja("0x4")]=null,this[ja("0x13")]=null,this[ja("0x18")]("isActive",!1),this[ja("0x18")]("createdAt",e[ja("0x7")]),this.bind(ja("0x7")).to(e),this[ja("0x18")](ja("0xa"),[]),this[ja("0x18")](ja("0x1d"),!1),this.set(ja("0xe"),!1),this._model=e,this[ja("0x19")]=n,this[ja("0x1")]=o,o[ja("0x15")]?this.set(ja("0x6"),1):this[ja("0xd")]()}focus(){this[ja("0x9")][ja("0x8")]()}[ja("0x1c")](){this[ja("0x1d")]=!1,this[ja("0x4")]&&this.commentsListView[ja("0x1c")](),this[ja("0x13")]&&this[ja("0x13")].destroy(),super[ja("0x1c")]()}[ja("0xd")](){const{CommentsListView:t}=this._config;this[ja("0x4")]=new t(this[ja("0x23")],this[ja("0x20")][ja("0x11")],Object.assign({CommentView:this[ja("0x1")][ja("0x10")]},this[ja("0x1")])),this[ja("0x4")][ja("0x12")](ja("0x16")).to(this),this.commentsListView[ja("0x12")](ja("0x1f")).to(this),this.commentsListView[ja("0xf")](ja("0x21")).to(this),this[ja("0x18")](ja("0x6"),this.commentsListView[ja("0x6")]+1),this[ja("0xf")](ja("0x6")).to(this[ja("0x4")],"length",(t=>t+1)),this[ja("0x13")]=this[ja("0x1a")](),this.on("removeComment",(()=>this[ja("0x8")]())),this.bind(ja("0x1d")).to(this.commentsListView,ja("0xb"),this[ja("0x13")][ja("0x2")],"value",((t,e)=>t||!!e))}[ja("0x1a")](){const{CommentThreadInputView:t}=this[ja("0x1")],e=new t(this.locale,this[ja("0x19")],this[ja("0x1")][ja("0x14")]),n=e[ja("0x2")];return e[ja("0xf")](ja("0x0")).to(this,"isActive",this[ja("0x20")].commentThread,ja("0x17"),n,ja("0x1e"),((t,e,n)=>!!n||t&&!e)),n.on(ja("0xc"),((t,e)=>{this.fire(ja("0x22"),e),n[ja("0x3")][ja("0x5")]("")})),n.on("cancel",(()=>this[ja("0x8")]())),n[ja("0xf")](ja("0x1b")).to(this[ja("0x20")].commentThread,ja("0x17")),e}}const Ha=["color","extendTemplate","formatDateTime","execute","join","innerText","ck-suggestion--accept","ck-annotation__actions","commentsListView","_model","isEnabled","author","createdAt","_descriptionElement",'<span class="ck-suggestion-color" style="background-color: ',"ck-annotation__main","Accept suggestion","ck-suggestion","commentThreadInputView",'<span class="ck-suggestion-type">',"innerHTML","change:description","push","split","map",'" title="',"setTemplate","ck-annotation__info-time","ck-suggestion-","_config","getTemplate","</span>","ck-annotation__user","time","content","_createButton","div","title","ck-suggestion__info","ck-suggestion--discard","querySelector","ck-comment__info-time","commentThread","bind","type","name","isActive","</p>","ck-annotation__info","span","render","ck-suggestion-wrapper","description","ck-suggestion__user","ck-annotation__info-name","ck-suggestion__info-name","acceptSuggestion","children","discardButton","ck-suggestion__actions",".ck-annotation__content-wrapper",'"></span>',"descriptionParts","check","fire","ck-suggestion--disabled-comments","acceptButton","element","discardSuggestion","ck-suggestion__main","userView","bindTemplate","locale","set","ck-annotation"];var Ga,Va;Ga=Ha,Va=395,function(t){for(;--t;)Ga.push(Ga.shift())}(++Va);const za=function(t,e){return Ha[t-=0]};class Wa extends Ua{constructor(e,n,o,r){super(e,n,o,r),this[za("0x35")](za("0x18"),""),this.bind(za("0x18")).to(this,za("0x2a"),(t=>t&&t[0]?t[0][za("0x18")]:"")),this[za("0x17")](za("0x20")).to(this,"descriptionParts",this,za("0x1a"),((t,e)=>{let n="";for(const e of t)n+="<p>"+Ka(e[za("0xe")],e[za("0x37")])+za("0x1b");return e?n:(0,s.trimHtml)(n,{limit:140})})),this[za("0x44")]=null,this[za("0x2e")]=this[za("0xf")](kr(e,za("0x47")),t.icons[za("0x2b")],za("0x3d"),za("0x24")),this.discardButton=this[za("0xf")](kr(e,"Discard suggestion"),t.icons.cancel,za("0x13"),za("0x30")),this[za("0x32")]=new s.UserView(e,this[za("0x40")][za("0x42")]),this[za("0x32")][za("0x38")]({attributes:{class:[za("0x21"),za("0xc")]}}),this[za("0x6")](this[za("0xa")]())}[za("0xa")](){const t=this[za("0x33")],e={tag:"div",attributes:{class:[za("0x1f"),t.if(za("0x1a"),"ck-suggestion-wrapper--active"),t.to(za("0x18"),(t=>za("0x8")+t)),this._config.disableComments&&za("0x2d")],"data-suggestion-id":this[za("0x40")].id,"data-thread-id":this[za("0x40")][za("0x16")].id,"data-author-id":this[za("0x40")].author.id,tabindex:-1},children:[{tag:za("0x10"),attributes:{class:[za("0x48"),za("0x36")]},children:[this[za("0x32")],{tag:za("0x10"),attributes:{class:[za("0x31"),za("0x46")]},children:[{tag:za("0x10"),attributes:{class:[za("0x12"),za("0x1c")]},children:[{tag:za("0x1d"),children:[{text:this[za("0x32")][za("0x19")]}],attributes:{class:[za("0x23"),za("0x22")]}},{tag:za("0xd"),attributes:{datetime:t.to(za("0x43")),class:[za("0x15"),za("0x7")]},children:[{text:t.to(za("0x43"),(t=>this[za("0x9")][za("0x39")](t)))}]}]},{tag:"div",attributes:{class:[za("0x27"),za("0x3e")]},children:[this[za("0x2e")],this[za("0x26")]]},{tag:za("0x10"),attributes:{class:["ck-annotation__content-wrapper"]}}]}]}]};return this[za("0x3f")]&&this.commentThreadInputView&&e[za("0x25")][za("0x2")](this[za("0x3f")],this[za("0x49")]),e}[za("0x1e")](){super[za("0x1e")](),this[za("0x44")]=this[za("0x2f")][za("0x14")](za("0x28")),this[za("0x44")].innerHTML=this[za("0x20")],this.on(za("0x1"),((t,e,n)=>{this._descriptionElement[za("0x0")]=n}))}[za("0xf")](t,e,n,o){const s=new r.ButtonView(this[za("0x34")]);return s[za("0x35")]({label:t,icon:e,tooltip:!0}),s[za("0x38")]({attributes:{class:n}}),s.on(za("0x3a"),(()=>{this[za("0x2c")](o,this[za("0x40")].id)})),s.bind(za("0x41")).to(this),s}}function Ka(t,e){let n="";return n+=t[za("0x3")]("*")[za("0x4")](((t,e)=>e%2!=0?za("0x4a")+qa(t)+za("0xb"):qa(t)))[za("0x3b")](""),e&&(n+=za("0x45")+e.value+za("0x5")+e[za("0x11")]+za("0x29")),n}function qa(t){const e=document.createElement(za("0x1d"));return e[za("0x3c")]=t,e.innerHTML}const $a=["Discard all suggestions","execute","getSuggestion","button","PENDING_ACTION_SUGGESTION","separator","arrowView","comments.maxCommentCharsWhenCollapsed","listenTo","clear","_initializeController","commands","isMultiRange","locale","getFirstMarker","PendingActions","set","isDirty","filter","lowest","type","_disableComments","stopListening","suggestionUnloaded","getByInnerView","add","createAnnotation","map","acceptAllSuggestions","toMany","TrackChangesEditing","TrackChangesUI","trackChanges.disableComments","unbind","cancel","getRanges","refreshSelectedViews","getDescriptions","discardSelectedSuggestions","focus","values","model","editor","keys","Track changes","_viewToController","CommentsRepository","createAnnotationView","getContainedElement","config","toViewElement","change:activeAnnotations","_debouncedHandlers","acceptSelectedSuggestions","acceptButton","init","bind","getMarkerNames","previous","define","EditorAnnotations","plugins","suggestion-","getAllAdjacentSuggestions","trackChanges","suggestionChanged","view","_createUIButton","addComment","push","get","getJoined","createCommentThreadController","_suggestionToController","discardButton","editing","remove","SuggestionThreadView","from","CommentView","discardSuggestion","componentFactory","source","requires","buttonView","switchbutton","reduce","_updateController","destroy","commandName","descriptionParts","actionView","Accept all suggestions","Annotations","_descriptionFactory","isEnabled","innerView","length","comments.editorConfig","Discard all selected suggestions","isOn","delete","isInContent","pluginName","_destroyController","discardAllSuggestions","comments.maxCommentsWhenCollapsed","getFirstRange","comments.maxThreadTotalWeight","head","change:previous"];var Xa,Ja;Xa=$a,Ja=206,function(t){for(;--t;)Xa.push(Xa.shift())}(++Ja);const Qa=function(t,e){return $a[t-=0]};class Ya extends t.Plugin{static get[Qa("0x63")](){return[Ta,s.Users,Qa("0x3e"),Qa("0x6d"),Qa("0x4c")]}static get[Qa("0x8")](){return Qa("0x2f")}constructor(t){super(t),this[Qa("0x59")]=new Map,this[Qa("0x3d")]=new Map,this[Qa("0x44")]=new Map;const e=this[Qa("0x3a")][Qa("0x41")];e.define("trackChanges.SuggestionThreadView",Wa),e[Qa("0x4b")](Qa("0x30"),!1),this[Qa("0x25")]=e.get("trackChanges.disableComments")}[Qa("0x47")](){const t=this[Qa("0x3a")],e=t[Qa("0x4d")][Qa("0x56")](Ta),n=t[Qa("0x4d")][Qa("0x56")](Qa("0x6d")),o=t.plugins.get("EditorAnnotations"),r=t[Qa("0x4d")].get("CommentsRepository");t.ui[Qa("0x61")][Qa("0x29")](Qa("0x50"),(t=>this[Qa("0x53")](t))),o.addSourceCollector((()=>{const t=[];for(const[e,n]of Array[Qa("0x5e")](this[Qa("0x59")])){const o=e[Qa("0x4f")](),r=[];for(const t of o){if(!t[Qa("0x7")])continue;if(t[Qa("0x1c")]){r.push(...t[Qa("0x33")]());continue}const e=t[Qa("0xc")]();if(r[Qa("0x2")]>0){const t=r[0][Qa("0x57")](e);if(t){r[0]=t;continue}}r[Qa("0x55")](e)}t[Qa("0x55")]([n[Qa("0x52")],r])}return t})),this.listenTo(e,"suggestionLoaded",((t,e)=>{let n=!1;const r=O((t=>{n||t?n&&t&&(this[Qa("0x9")](e),o[Qa("0x34")](),n=!1):(this[Qa("0x1a")](e),o[Qa("0x34")](),n=!0)}),10);this._debouncedHandlers[Qa("0x20")](e,r),this[Qa("0x18")](e,Qa("0xf"),((t,n,o,s)=>{e[Qa("0x7")]&&(null==o?(this[Qa("0x67")](s[Qa("0xe")]),r(!1)):(this[Qa("0x67")](o[Qa("0xe")]),r(!0)))})),null===e[Qa("0x4a")]?r(!1):this[Qa("0x67")](e[Qa("0xe")])})),this.listenTo(e,Qa("0x27"),((t,e,n)=>{this[Qa("0x26")](e,Qa("0xf")),this[Qa("0x44")][Qa("0x56")](e)[Qa("0x32")](),this._debouncedHandlers[Qa("0x6")](e);const o=n?n[Qa("0xe")]:e,r=this[Qa("0x59")][Qa("0x56")](o);null!==n&&this[Qa("0x67")](o),null===n&&r&&this._destroyController(e)})),this.listenTo(e,Qa("0x51"),((t,e)=>{this[Qa("0x67")](e)})),this[Qa("0x18")](n,Qa("0x43"),((t,n,o)=>{const r=Array.from(o,(t=>t[Qa("0x1")]))[Qa("0x22")]((t=>this[Qa("0x3d")].has(t))),s=[];for(const t of r){const e=this[Qa("0x3d")][Qa("0x56")](t)[Qa("0x39")].getAllAdjacentSuggestions();s.push(...e[Qa("0x66")](((t,e)=>[...t,...e[Qa("0x49")]()]),[]))}e.activeMarkers=s})),this[Qa("0x18")](r,Qa("0x54"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e.hasSuggestion(n))return;const r=e[Qa("0x12")](n);this[Qa("0x59")][Qa("0x56")](r)[Qa("0x52")][Qa("0x37")]()}),{priority:Qa("0x23")})}[Qa("0x53")](t){const n=(0,r.createDropdown)(t,r.SplitButtonView),o=this[Qa("0x3a")][Qa("0x1b")][Qa("0x56")](Qa("0x50")),s=kr(t,Qa("0x3c"));n[Qa("0x64")][Qa("0x20")]({tooltip:s,label:s,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n.buttonView[Qa("0x48")](Qa("0x5")).to(o,"value"),n[Qa("0x64")].on("execute",(()=>{o[Qa("0x11")](),this.editor[Qa("0x5b")][Qa("0x52")][Qa("0x37")]()}));const i=new e.Collection,x=[{type:Qa("0x65"),model:{withText:!0,label:s,commandName:"trackChanges"}},{type:Qa("0x15")},{type:Qa("0x13"),model:{withText:!0,label:kr(t,Qa("0x6c")),commandName:Qa("0x2c")}},{type:"button",model:{withText:!0,label:kr(t,"Accept all selected suggestions"),commandName:Qa("0x45")}},{type:"button",model:{withText:!0,label:kr(t,Qa("0x10")),commandName:Qa("0xa")}},{type:Qa("0x13"),model:{withText:!0,label:kr(t,Qa("0x4")),commandName:Qa("0x36")}}];for(const t of x){const e={type:t[Qa("0x24")]};if(t[Qa("0x39")]){const n=new r.Model(t[Qa("0x39")]),o=this[Qa("0x3a")][Qa("0x1b")][Qa("0x56")](n.commandName);n[Qa("0x48")](Qa("0x5"),Qa("0x0")).to(o,"value",Qa("0x0")),e[Qa("0x39")]=n}i[Qa("0x29")](e)}(0,r.addListToDropdown)(n,i);const a=x.filter((t=>null!=t[Qa("0x39")]))[Qa("0x2b")]((t=>this.editor[Qa("0x1b")].get(t[Qa("0x39")][Qa("0x69")])));return n.buttonView[Qa("0x6b")][Qa("0x31")](Qa("0x0")),n.buttonView[Qa("0x16")][Qa("0x31")](Qa("0x0")),n[Qa("0x64")][Qa("0x6b")][Qa("0x48")]("isEnabled").to(o,Qa("0x0")),n[Qa("0x64")][Qa("0x16")][Qa("0x48")](Qa("0x0"))[Qa("0x2d")](a,Qa("0x0"),((...t)=>t.some((t=>t)))),n.on(Qa("0x11"),(t=>{this[Qa("0x3a")][Qa("0x11")](t[Qa("0x62")][Qa("0x69")]),this.editor[Qa("0x5b")][Qa("0x52")].focus()})),n}[Qa("0x1a")](t){const e=this.editor,n=e[Qa("0x41")],o=e[Qa("0x4d")][Qa("0x56")](Qa("0x6d")),r=e[Qa("0x4d")][Qa("0x56")]("CommentsRepository"),i=t[Qa("0x4f")]().filter((t=>t[Qa("0x7")])),x=e[Qa("0x4d")][Qa("0x56")](s.Users).me,a=e[Qa("0x1b")][Qa("0x56")]("acceptSuggestion"),c=e[Qa("0x1b")][Qa("0x56")](Qa("0x60")),l=n[Qa("0x56")](Qa("0x50"))[Qa("0x5d")],{CommentsListView:u,CommentThreadInputView:d}=e[Qa("0x4d")][Qa("0x56")]("CommentsUI"),f=new l(e[Qa("0x1d")],t,x,{disableComments:this[Qa("0x25")],editorConfig:n[Qa("0x56")](Qa("0x3")),maxCommentsWhenCollapsed:n[Qa("0x56")](Qa("0xb")),maxThreadTotalWeight:n[Qa("0x56")](Qa("0xd")),maxCommentCharsWhenCollapsed:n[Qa("0x56")](Qa("0x17")),formatDateTime:(0,s.getDateTimeFormatter)(n[Qa("0x56")](Qa("0x1d"))),CommentView:n[Qa("0x56")]("comments")[Qa("0x5f")],CommentsListView:u,CommentThreadInputView:d}),g=r[Qa("0x58")](t.commentThread,f),m=new Fa(t,f,a,c,g);f[Qa("0x6a")]=e[Qa("0x4d")][Qa("0x56")](Qa("0x2e"))[Qa("0x6e")][Qa("0x35")](i),this[Qa("0x59")][Qa("0x20")](t,m),this[Qa("0x3d")][Qa("0x20")](f,m);const h=o[Qa("0x3f")](this[Qa("0x3a")][Qa("0x1d")],f);h[Qa("0x48")](Qa("0x21")).to(f,Qa("0x21")),h[Qa("0x48")](Qa("0x2")).to(f),h[Qa("0x48")]("type").to(f,Qa("0x24"),(t=>Qa("0x4e")+t));const p=o[Qa("0x2a")]({view:h,target:()=>{const t=i[0][Qa("0x1e")]();if(!t)return null;const n=t.getRange()[Qa("0x40")]();return n&&!e[Qa("0x5b")].mapper[Qa("0x42")](n)?null:(0,s.getMarkerDomElement)(e[Qa("0x5b")],t)||null},type:()=>Qa("0x4e")+m[Qa("0x52")].type});o.add(p);const b=e[Qa("0x4d")][Qa("0x56")](Qa("0x1f"));let E;f.on("change:isDirty",((t,e,n)=>{n?E=b[Qa("0x29")](kr(this[Qa("0x3a")].locale,Qa("0x14"))):(b[Qa("0x5c")](E),E=null)})),f[Qa("0x46")].on(Qa("0x11"),(()=>{e[Qa("0x5b")][Qa("0x52")].focus()})),f[Qa("0x5a")].on(Qa("0x11"),(()=>{e[Qa("0x5b")][Qa("0x52")][Qa("0x37")]()}))}[Qa("0x9")](t){const e=this[Qa("0x3a")].plugins.get(Qa("0x6d")),n=this[Qa("0x59")][Qa("0x56")](t),o=n[Qa("0x52")],r=e[Qa("0x28")](o);r&&e[Qa("0x5c")](r),this[Qa("0x59")][Qa("0x6")](t),this[Qa("0x3d")][Qa("0x6")](o),n[Qa("0x68")](),o[Qa("0x68")]()}[Qa("0x67")](t){if(!t[Qa("0x7")]||!this[Qa("0x59")].has(t))return;const e=this.editor.plugins.get(Qa("0x2e")),n=this._suggestionToController[Qa("0x56")](t),o=t[Qa("0x4f")]();n[Qa("0x52")][Qa("0x6a")]=e[Qa("0x6e")].getDescriptions(o)}destroy(){super[Qa("0x68")]();for(const t of this[Qa("0x59")][Qa("0x3b")]())this[Qa("0x9")](t);for(const t of this._debouncedHandlers[Qa("0x38")]())t[Qa("0x32")]();this[Qa("0x44")][Qa("0x19")]()}}var Za,tc,ec=["getSuggestions","TrackChanges","editor","plugins","getSuggestion","adapter","get","addSuggestion","addSuggestionData"];Za=ec,tc=360,function(t){for(;--t;)Za.push(Za.shift())}(++tc);var nc=function(t,e){return ec[t-=0]};class oc extends t.Plugin{static get requires(){return[Ta,Ya,"Comments"]}static get pluginName(){return nc("0x1")}set[nc("0x5")](t){this[nc("0x2")][nc("0x3")][nc("0x6")](Ta)[nc("0x5")]=t}get[nc("0x5")](){return this.editor.plugins[nc("0x6")](Ta)[nc("0x5")]}[nc("0x7")](t){return this[nc("0x2")].plugins[nc("0x6")](Ta)[nc("0x8")](t)}[nc("0x0")](t){return this[nc("0x2")][nc("0x3")].get(Ta)[nc("0x0")](t)}[nc("0x4")](t){return this[nc("0x2")][nc("0x3")][nc("0x6")](Ta).getSuggestion(t)}}const rc=["constructor","_adapter","RealTimeCollaborativeComments","destroy","createDocumentFragment","get","initialData","data","config","push","extraPlugins","map","RealTimeCollaborativeTrackChanges","toolbar","Users","getUser","define","includes","pluginName","end","appendChild","concat","addUser","getDataWithDiscardedSuggestions","acceptAllSuggestions","getDataWithAcceptedSuggestions","TrackChangesData","getSuggestions","result","from","RealTimeCollaborativeRevisionHistory","trackChangesData","init","set","editor","reduce","plugins","useAnonymousUser","add","track-changes-data-invalid-editor-creator","string","RealTimeCollaborativeEditing","users","builtinPlugins","filter","find","create","editorCreator","names","div","function","requires","TrackChangesEditing","Autosave","createElement"];var sc,ic;sc=rc,ic=135,function(t){for(;--t;)sc.push(sc.shift())}(++ic);const xc=function(t,e){return rc[t-=0]},ac=[xc("0x24"),"context",xc("0x2b")],cc=[xc("0x10"),xc("0x20"),xc("0x2a"),xc("0x5"),xc("0x1c")];class lc extends t.Plugin{static get requires(){return[Ta]}static get[xc("0x30")](){return xc("0x1")}[xc("0x7")](){const t=this.editor;if(t[xc("0x26")][xc("0x2e")]("trackChangesData.editorCreator",(e=>t[xc("0x1e")][xc("0x15")]("",e))),xc("0x19")!=typeof t[xc("0x26")][xc("0x23")]("trackChangesData")[xc("0x16")])throw new e.CKEditorError(xc("0xe"))}[xc("0x0")](t){return dc(this[xc("0x9")],!0,t)}[xc("0x35")](t){return dc(this.editor,!1,t)}}class uc extends t.Plugin{static get[xc("0x30")](){return"TrackChangesDataGetter"}[xc("0x7")](){this[xc("0x3")]=xc("0x31"),this[xc("0x9")][xc("0xb")][xc("0x23")]("CommentsRepository")._adapter={getCommentThread:()=>new Promise((()=>{}))},this[xc("0x9")][xc("0xb")][xc("0x23")](xc("0x1b"))[xc("0x1f")]=null}}async function dc(t,e,n){const o=function(t){const e={};for(const n of t[xc("0x26")][xc("0x17")]())ac[xc("0x2f")](n)||(e[n]=t.config.get(n));const n=t[xc("0x1e")][xc("0x12")]||[],o=e.extraPlugins||[];delete e[xc("0x28")];const r=n[xc("0x33")](e[xc("0xb")]).concat(o).map((t=>xc("0xf")==typeof t?n[xc("0x14")]((e=>e[xc("0x30")]==t)):t)),s=Array[xc("0x4")](new Set(r));return e[xc("0xb")]=s[xc("0x13")]((t=>fc(t,new Set))),e[xc("0xb")][xc("0x27")](uc),e[xc("0xb")][xc("0x27")](Ta),e}(t),r=document[xc("0x22")](),s=t.config[xc("0x23")](xc("0x6"))[xc("0x16")],i=await s(o,(()=>function(t){const e=document[xc("0x1d")](xc("0x18"));return t[xc("0x32")](e),e}(r)));!function(t,e){const n=t.model.document.getRootNames()[xc("0xa")](((e,n)=>(e[n]=t.data[xc("0x23")]({rootName:n}),e)),{}),o=t.plugins.get(xc("0x2c"))[xc("0x11")][xc("0x29")]((t=>({id:t.id}))),r=t[xc("0xb")][xc("0x23")](xc("0x1b"))[xc("0x2")]({skipNotAttached:!0,toJSON:!0}),s=e[xc("0xb")][xc("0x23")](xc("0x2c")),i=e[xc("0xb")][xc("0x23")]("TrackChangesEditing");for(const t of o)s[xc("0x2d")](t.id)||s[xc("0x34")](t);s.me||s[xc("0xc")]();for(const t of r)i.addSuggestionData(t);e.data[xc("0x8")](n)}(t,i),i.execute(e?xc("0x36"):"discardAllSuggestions");const x=i[xc("0x25")][xc("0x23")](n);return await i[xc("0x21")](),x}function fc(t,e){if(e.has(t))return!0;e[xc("0xd")](t);const n=xc("0x19")==typeof t?t[xc("0x30")]||t.name:t;return(!n||!cc[xc("0x2f")](n))&&(!t.requires||t[xc("0x1a")].every((t=>fc(t,e))))}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|