@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250216.0 → 0.0.0-nightly-20250217.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,10 +20,10 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ObservableMixin as _0x36e39d,uid as _0x3ad3eb,Collection as _0x29973f,logWarning as _0x5dfa80,FocusTracker as _0xf9100b,KeystrokeHandler as _0x12eaa1,scrollViewportToShowTarget as _0x450789,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x1057c9}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x276782,set as _0x3ae9f4,unset as _0x4155ff,isEqual as _0x5d19d5}from'lodash-es';import{Plugin as _0x2ac9a6,PendingActions as _0x1c2b89,icons as _0x2a0955,Command as _0x5e164d,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x2e1203,getMarkerDomElement as _0x4a1305,ConfirmMixin as _0x517add,sanitizeEditorConfig as _0xa80943}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x255fee,Element as ft,Range as vt,ViewUIElement as _0x15ead0,ViewRawElement as _0x3b8104,ViewEmptyElement as _0x10b861,ViewAttributeElement as _0x350582,ViewContainerElement as _0x42cb6a,Position as gt,ViewText as _0x2c3a74,ViewElement as _0x1ad019,DocumentFragment as mt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x5772c9,injectCssTransitionDisabler as ts,submitHandler as _0x413ed9,LabeledFieldView as nt,createLabeledInputText as _0x172651,createDropdown as _0x22f59f,ListView as te,ListItemView as _0x480b9c,ButtonView as _0x592f60,MenuBarMenuView as _0x403ef9,MenuBarMenuListView as _0x6c3aea,MenuBarMenuListItemView as _0x4a4247,MenuBarMenuListItemButtonView as _0x39a183,ContextualBalloon as _0x5638ee,ToolbarSeparatorView as _0x5b4345,IconView as _0x110986,addListToDropdown as _0x50675d,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as ut,ToolbarView as lt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x209ce7}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
- _0x36e39d(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x58bf4e){super(),this['id']=_0x58bf4e['id']||_0x3ad3eb(),this['creator']=_0x58bf4e['creator']||null,this['authors']=_0x58bf4e['authors']||[],this['diffData']=_0x58bf4e['diffData']||null,this['toVersion']=_0x58bf4e['toVersion']||0x0,this['fromVersion']=_0x58bf4e['fromVersion']||0x0,this['set']('name',_0x58bf4e['name']||''),this['set']('createdAt',_0x58bf4e['createdAt']||new Date()),this['set']('attributes',_0x58bf4e['attributes']||{});}['setName'](_0x594ed1){this['_update']({'name':_0x594ed1});}['setAttribute'](_0x2b24c4,_0x41248){const _0x412aa5=_0x276782(this['attributes']);_0x3ae9f4(_0x412aa5,_0x2b24c4,_0x41248),this['_update']({'attributes':_0x412aa5});}['removeAttribute'](_0x51b64e){const _0x34e2db=_0x276782(this['attributes']);_0x4155ff(_0x34e2db,_0x51b64e),this['_update']({'attributes':_0x34e2db});}['_update'](_0x425ddf,_0x2eb951=!0x1){let _0x50bac8=!0x1;const _0x3a64db={'id':this['id']},_0x1750f8=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x42884e of _0x1750f8){const _0x4984dd=_0x425ddf[_0x42884e];void 0x0!==_0x4984dd&&_0x4984dd!==this[_0x42884e]&&(this[_0x42884e]=_0x4984dd,_0x3a64db[_0x42884e]=_0x4984dd,_0x50bac8=!0x0);}_0x50bac8&&(_0x3a64db['authors']&&(_0x3a64db['authorsIds']=_0x3a64db['authors']['map'](_0x2a55d9=>_0x2a55d9['id']),delete _0x3a64db['authors']),this['fire']('_update',_0x3a64db,_0x2eb951));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x306435=>_0x306435['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x2ac9a6{['_revisions'];static get['requires'](){return[_0x2e1203];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x4e8b60){super(_0x4e8b60),this['_revisions']=new _0x29973f();}['afterInit'](){!async function(_0x5a5dee){const _0x520451=_0x404a0e([0x38,0x51,0x37,0x48,0x7a,0x47,0x74,0x31,0x42,0x52,0x71,0x44,0x36,0x43,0x59,0x66,0x57,0x76,0x6e,0x6f,0x72,0x4b,0x45,0x58,0x61,0x77,0x64,0x6d,0x34,0x67,0x6b,0x63,0x79,0x46,0x70,0x35,0x6a,0x33,0x5a,0x32,0x68,0x56,0x30,0x55,0x4d,0x62,0x75,0x4f,0x4a,0x53,0x50,0x65,0x78,0x54,0x69,0x6c,0x41,0x49,0x39,0x4e,0x4c,0x73]),_0x4aa1e1=0xeb829,_0x233f87=0x52754e89,_0x1bea00=0x52721121^_0x233f87,_0xed6c41=window[_0x404a0e([0x44,0x61,0x74,0x65])][_0x404a0e([0x6e,0x6f,0x77])](),_0x3b28fe=_0x5a5dee[_0x404a0e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x22d82c=new window[(_0x404a0e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1fe005=>{_0x3b28fe[_0x404a0e([0x6f,0x6e,0x63,0x65])](_0x404a0e([0x72,0x65,0x61,0x64,0x79]),_0x1fe005);}),_0x4676e8={[_0x404a0e([0x6b,0x74,0x79])]:_0x404a0e([0x45,0x43]),[_0x404a0e([0x75,0x73,0x65])]:_0x404a0e([0x73,0x69,0x67]),[_0x404a0e([0x63,0x72,0x76])]:_0x404a0e([0x50,0x2d,0x32,0x35,0x36]),[_0x404a0e([0x78])]:_0x404a0e([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x404a0e([0x79])]:_0x404a0e([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x404a0e([0x61,0x6c,0x67])]:_0x404a0e([0x45,0x53,0x32,0x35,0x36])},_0x58d3f7=_0x3b28fe[_0x404a0e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x404a0e([0x67,0x65,0x74])](_0x404a0e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x32deee(){let _0x2ee706,_0x1a6597=null,_0x56aa5d=null;try{if(_0x58d3f7==_0x404a0e([0x47,0x50,0x4c]))return _0x404a0e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2ee706=_0x21b987(),!_0x2ee706)return _0x404a0e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2ee706[_0x404a0e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x56aa5d=_0x408ab3(_0x2ee706[_0x404a0e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2ee706[_0x404a0e([0x6a,0x74,0x69])])),await _0x3add73()?_0x3f6866()?_0x306dbf()?_0x404a0e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5e8009()?(_0x2ee706[_0x404a0e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x404a0e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1a6597=_0x2878b0(_0x404a0e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2ee706[_0x404a0e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x404a0e([0x74,0x72,0x69,0x61,0x6c])&&(_0x1a6597=_0x2878b0(_0x404a0e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x588492()):_0x404a0e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x404a0e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x404a0e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x24769e){return _0x404a0e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x306dbf(){const _0x17ba2b=[_0x404a0e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x404a0e([0x74,0x72,0x69,0x61,0x6c])][_0x404a0e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ee706[_0x404a0e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xed6c41/0x3e8:0xe10*_0x1bea00;return _0x2ee706[_0x404a0e([0x65,0x78,0x70])]<_0x17ba2b;}function _0x3f6866(){const _0xd7ae8f=_0x2ee706[_0x404a0e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xd7ae8f)return!0x1;if(_0xd7ae8f[_0x404a0e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x404a0e([0x2a])))return!0x0;if(_0xd7ae8f[_0x404a0e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x404a0e([0x52,0x48])))return!0x0;if(_0xd7ae8f[_0x404a0e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x404a0e([0x52,0x52,0x48]))){if(_0x4de6ef())return!0x0;if(_0x139547()||_0x45e144())return!0x0;}return!0x1;}function _0x5e8009(){const _0x3b87cb=_0x2ee706[_0x404a0e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3b87cb||0x0==_0x3b87cb[_0x404a0e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x319ca9}=new URL(window[_0x404a0e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3b87cb[_0x404a0e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x319ca9))return!0x0;const _0xd92459=_0x319ca9[_0x404a0e([0x73,0x70,0x6c,0x69,0x74])](_0x404a0e([0x2e]));return _0x3b87cb[_0x404a0e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5c83cb=>_0x5c83cb[_0x404a0e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x404a0e([0x2a])))[_0x404a0e([0x6d,0x61,0x70])](_0x29d120=>_0x29d120[_0x404a0e([0x73,0x70,0x6c,0x69,0x74])](_0x404a0e([0x2e])))[_0x404a0e([0x73,0x6f,0x6d,0x65])](_0x2197d6=>_0xd92459[_0x404a0e([0x65,0x76,0x65,0x72,0x79])]((_0x3f2d21,_0x37b80c)=>_0x2197d6[_0x37b80c]===_0x3f2d21||_0x2197d6[_0x37b80c]===_0x404a0e([0x2a])));}function _0x588492(){return _0x1a6597&&_0x56aa5d?new window[(_0x404a0e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2285de,_0x5cf775)=>{_0x1a6597[_0x404a0e([0x74,0x68,0x65,0x6e])](_0x2285de,_0x5cf775),_0x56aa5d[_0x404a0e([0x74,0x68,0x65,0x6e])](_0x2cfbd0=>{_0x2cfbd0!=_0x404a0e([0x56,0x61,0x6c,0x69,0x64])&&_0x2285de(_0x2cfbd0);},_0x5cf775);}):_0x1a6597||_0x56aa5d||_0x404a0e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x408ab3(_0x59d3a2,_0x5c7da3){return new window[(_0x404a0e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3775dd=>{if(_0x430777())return _0x3775dd(_0x404a0e([0x56,0x61,0x6c,0x69,0x64]));_0x1246af(),_0x3b28fe[_0x404a0e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x404a0e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5ed996=!0x1;const _0x519ddd=_0x3ad3eb();function _0x170bcb(_0x15b8b8){return!!_0x15b8b8&&(typeof _0x15b8b8===_0x404a0e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x15b8b8===_0x404a0e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x15b8b8[_0x404a0e([0x74,0x68,0x65,0x6e])]===_0x404a0e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x15b8b8[_0x404a0e([0x63,0x61,0x74,0x63,0x68])]===_0x404a0e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4c2bdb(_0x9b4230){_0x37f8dc(_0x9b4230)[_0x404a0e([0x74,0x68,0x65,0x6e])](_0x371707=>{if(!_0x371707||_0x371707[_0x404a0e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x404a0e([0x6f,0x6b]))return _0x404a0e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5c511a(_0x3bcfd8(_0x519ddd+_0x5c7da3))!=_0x371707[_0x404a0e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x404a0e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x404a0e([0x56,0x61,0x6c,0x69,0x64]);})[_0x404a0e([0x74,0x68,0x65,0x6e])](_0x344f2e=>(_0x4b1528(),_0x344f2e),()=>{const _0x2745e9=_0x57b17d();return null==_0x2745e9?(_0x4b1528(),_0x404a0e([0x56,0x61,0x6c,0x69,0x64])):_0x404a0e(_0xed6c41-_0x2745e9>(0x7679ca89^_0x233f87)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x404a0e([0x74,0x68,0x65,0x6e])](_0x3775dd)[_0x404a0e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3775dd(_0x404a0e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1c8251=0x5243a009^_0x233f87;function _0x4b1528(){const _0x50155b=_0x404a0e([0x6c,0x6c,0x63,0x74,0x2d])+_0x5c511a(_0x3bcfd8(_0x59d3a2)),_0x4938d7=_0x466d4f(_0x5c511a(window[_0x404a0e([0x4d,0x61,0x74,0x68])][_0x404a0e([0x63,0x65,0x69,0x6c])](_0xed6c41/_0x1c8251)));window[_0x404a0e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x404a0e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x50155b,_0x4938d7);}function _0x57b17d(){const _0x39540e=_0x404a0e([0x6c,0x6c,0x63,0x74,0x2d])+_0x5c511a(_0x3bcfd8(_0x59d3a2)),_0xdaecd7=window[_0x404a0e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x404a0e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x39540e);return _0xdaecd7?window[_0x404a0e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x466d4f(_0xdaecd7),0x10)*_0x1c8251:null;}function _0x37f8dc(_0x3938a2){return new window[(_0x404a0e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1800d4,_0x12f8ba)=>{_0x3938a2[_0x404a0e([0x74,0x68,0x65,0x6e])](_0x1800d4,_0x12f8ba),window[_0x404a0e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x12f8ba,0x52749a49^_0x233f87);});}}_0x3b28fe[_0x404a0e([0x6f,0x6e])](_0x404a0e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3d3eae,_0x4f37fa)=>{if(_0x4f37fa[0x0]!=_0x59d3a2)return _0x3775dd(_0x404a0e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4f37fa[0x1]={..._0x4f37fa[0x1],[_0x404a0e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x519ddd};},{[_0x404a0e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x404a0e([0x68,0x69,0x67,0x68])}),_0x3b28fe[_0x404a0e([0x6f,0x6e])](_0x404a0e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x11e4d9=>{_0x170bcb(_0x11e4d9[_0x404a0e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5ed996=!0x0,_0x4c2bdb(_0x11e4d9[_0x404a0e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x404a0e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x404a0e([0x6c,0x6f,0x77])}),_0x22d82c[_0x404a0e([0x74,0x68,0x65,0x6e])](()=>{_0x5ed996||_0x3775dd(_0x404a0e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x430777(){return _0x3b28fe[_0x404a0e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x404a0e([0x76,0x69,0x65,0x77])][_0x404a0e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x404a0e([0x61,0x75,0x74,0x6f]);}function _0x1246af(){_0x3b28fe[_0x404a0e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x404a0e([0x76,0x69,0x65,0x77])][_0x404a0e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x404a0e([0x61,0x75,0x74,0x6f]);}}function _0x2878b0(_0xb62d1f){const _0x5b8866=[new window[(_0x404a0e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20e0ca=>setTimeout(_0x20e0ca,0x527c7045^_0x233f87)),_0x22d82c[_0x404a0e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x404a0e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51d80a=>{const _0x33ebd8=0x52754e8e^_0x233f87,_0x4b70b3=_0x5a5dee[_0x404a0e([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x58ce45(){_0x4b70b3[_0x404a0e([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x33ebd8&&_0x51d80a();}_0x58ce45(),_0x4b70b3[_0x404a0e([0x6f,0x6e])](_0x404a0e([0x61,0x64,0x64]),_0x58ce45);})),new window[(_0x404a0e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x468b2e=>{function _0x509f59(){for(const _0x4cd18f in window)if(window[_0x404a0e([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x404a0e([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x4cd18f))&&window[_0x4cd18f]==_0x4aa1e1)return _0x468b2e();_0x3b28fe[_0x404a0e([0x73,0x74,0x61,0x74,0x65])]!=_0x404a0e([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x404a0e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x509f59,0x52755d01^_0x233f87);}_0x42f061(_0x404a0e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x509f59();})];return window[_0x404a0e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x404a0e([0x72,0x61,0x63,0x65])](_0x5b8866)[_0x404a0e([0x74,0x68,0x65,0x6e])](()=>_0xb62d1f);}async function _0x21632e(){if(await _0x22d82c,_0x42f061(_0x404a0e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0xc6fe96=_0x5a5dee[_0x404a0e([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x56cba3=_0x5a5dee[_0x404a0e([0x67,0x65,0x74,0x45,0x61,0x72,0x6c,0x69,0x65,0x72,0x56,0x69,0x73,0x69,0x62,0x6c,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](_0xc6fe96[_0x404a0e([0x69,0x64])]),_0x158652=_0x2aaf71(_0x404a0e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x158652[_0x404a0e([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0xc6fe96['id'],_0x56cba3?_0x56cba3['id']:null,!0x0),_0x158652[_0x404a0e([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x404a0e([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x158652[_0x404a0e([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x158652[_0x404a0e([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x4fac70,void(_0x158652[_0x404a0e([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x4fac70);}if(_0x42f061(_0x404a0e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x2113de=_0x2aaf71(_0x404a0e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x2113de[_0x404a0e([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x404a0e([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2113de[_0x404a0e([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2113de[_0x404a0e([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x4fac70,_0x2113de[_0x404a0e([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x4fac70;}_0x3b28fe[_0x404a0e([0x6d,0x6f,0x64,0x65,0x6c])][_0x404a0e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4fac70,_0x3b28fe[_0x404a0e([0x6d,0x6f,0x64,0x65,0x6c])][_0x404a0e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4fac70,_0x3b28fe[_0x404a0e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x404a0e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4de6ef(){return _0x42f061(_0x404a0e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2aaf71(_0x404a0e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x404a0e([0x73,0x74,0x61,0x74,0x65])]==_0x404a0e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x139547(){return _0x42f061(_0x404a0e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x45e144(){return _0x42f061(_0x404a0e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1ab1ae(_0x90e9e5){const _0x3d8af2=_0x5bef40();_0x3b28fe[_0x3d8af2]=_0x404a0e([0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x48,0x69,0x73,0x74,0x6f,0x72,0x79,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x90e9e5,_0x90e9e5[_0x404a0e([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x404a0e([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x5bef40()]=_0x4aa1e1),_0x90e9e5!=_0x404a0e([0x56,0x61,0x6c,0x69,0x64])&&_0x21632e();}function _0x5bef40(){const _0xafcb96=window[_0x404a0e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x404a0e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x404a0e([0x6e,0x6f,0x77])]())[_0x404a0e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x404a0e([0x2e]),'');let _0x52f5f4=_0x404a0e([0x51]);for(let _0x1b690d=0x0;_0x1b690d<_0xafcb96[_0x404a0e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1b690d+=0x2){let _0x4d170a=window[_0x404a0e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xafcb96[_0x404a0e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1b690d,_0x1b690d+0x2));_0x4d170a>=_0x520451[_0x404a0e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4d170a-=_0x520451[_0x404a0e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x52f5f4+=_0x520451[_0x4d170a];}return _0x52f5f4;}function _0x21b987(){const _0x8f1bb=_0x58d3f7[_0x404a0e([0x73,0x70,0x6c,0x69,0x74])](_0x404a0e([0x2e]));if(0x3!=_0x8f1bb[_0x404a0e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5f2b62(_0x8f1bb[0x1]);function _0x5f2b62(_0x2d12fc){const _0x2d2220=_0x343ce5(_0x2d12fc);return _0x2d2220&&_0x17cb4a()?_0x2d2220:null;function _0x17cb4a(){const _0x37726a=_0x2d2220[_0x404a0e([0x6a,0x74,0x69])],_0x4ae497=window[_0x404a0e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x37726a[_0x404a0e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x37726a[_0x404a0e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x54c643={..._0x2d2220,[_0x404a0e([0x6a,0x74,0x69])]:_0x37726a[_0x404a0e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x37726a[_0x404a0e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x54c643[_0x404a0e([0x76,0x63])],_0x3bcfd8(_0x54c643)==_0x4ae497;}}}async function _0x3add73(){let _0x47be16=!0x0;try{const _0x58c16c=_0x58d3f7[_0x404a0e([0x73,0x70,0x6c,0x69,0x74])](_0x404a0e([0x2e])),[_0x542aaa,_0x475e64,_0xf30449]=_0x58c16c;return _0x4f8301(_0x542aaa),await _0x27189b(_0x542aaa,_0x475e64,_0xf30449),_0x47be16;}catch(_0x4ee4f1){return!0x1;}function _0x4f8301(_0xd987fd){const _0x620caf=_0x343ce5(_0xd987fd);_0x620caf&&_0x620caf[_0x404a0e([0x61,0x6c,0x67])]==_0x404a0e([0x45,0x53,0x32,0x35,0x36])||(_0x47be16=!0x1);}async function _0x27189b(_0x1757d0,_0x37b486,_0x448ec9){const _0x43b1ce=window[_0x404a0e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x404a0e([0x66,0x72,0x6f,0x6d])](_0x19e0d6(_0x448ec9),_0x1f26ec=>_0x1f26ec[_0x404a0e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3f5a59=new window[(_0x404a0e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x404a0e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1757d0+_0x404a0e([0x2e])+_0x37b486),_0x59dd96=window[_0x404a0e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x404a0e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x59dd96)return;const _0xf6b018=await _0x59dd96[_0x404a0e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x404a0e([0x6a,0x77,0x6b]),_0x4676e8,{[_0x404a0e([0x6e,0x61,0x6d,0x65])]:_0x404a0e([0x45,0x43,0x44,0x53,0x41]),[_0x404a0e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x404a0e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x404a0e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x59dd96[_0x404a0e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x404a0e([0x6e,0x61,0x6d,0x65])]:_0x404a0e([0x45,0x43,0x44,0x53,0x41]),[_0x404a0e([0x68,0x61,0x73,0x68])]:{[_0x404a0e([0x6e,0x61,0x6d,0x65])]:_0x404a0e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xf6b018,_0x43b1ce,_0x3f5a59)||(_0x47be16=!0x1);}}function _0x343ce5(_0x409360){return _0x409360[_0x404a0e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x404a0e([0x65,0x79]))?JSON[_0x404a0e([0x70,0x61,0x72,0x73,0x65])](_0x19e0d6(_0x409360)):null;}function _0x19e0d6(_0xcaef10){return window[_0x404a0e([0x61,0x74,0x6f,0x62])](_0xcaef10[_0x404a0e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x404a0e([0x2b]))[_0x404a0e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x404a0e([0x2f])));}function _0x3bcfd8(_0x2cf8fe){let _0x50c18f=0x1505;function _0x1e2c01(_0x19dc71){for(let _0x4c73c8=0x0;_0x4c73c8<_0x19dc71[_0x404a0e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4c73c8++){const _0x44b294=_0x19dc71[_0x404a0e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4c73c8);_0x50c18f=(_0x50c18f<<0x5)+_0x50c18f+_0x44b294,_0x50c18f&=_0x50c18f;}}function _0x304329(_0x25f052){Array[_0x404a0e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x25f052)?_0x25f052[_0x404a0e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x304329):_0x25f052&&typeof _0x25f052==_0x404a0e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x404a0e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x25f052)[_0x404a0e([0x73,0x6f,0x72,0x74])]()[_0x404a0e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x27a117,_0x5218d5])=>{_0x1e2c01(_0x27a117),_0x304329(_0x5218d5);}):_0x1e2c01(window[_0x404a0e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x25f052));}return _0x304329(_0x2cf8fe),_0x50c18f>>>0x0;}function _0x5c511a(_0x535397){return _0x535397[_0x404a0e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x404a0e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x404a0e([0x30]));}function _0x466d4f(_0xc1d390){return _0xc1d390[_0x404a0e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x404a0e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x404a0e([0x6a,0x6f,0x69,0x6e])]('');}function _0x42f061(_0x3f7a89){return _0x3b28fe[_0x404a0e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x404a0e([0x68,0x61,0x73])](_0x3f7a89);}function _0x2aaf71(_0xa546fa){return _0x3b28fe[_0x404a0e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x404a0e([0x67,0x65,0x74])](_0xa546fa);}function _0x4fac70(){}function _0x404a0e(_0x6e3fbc){return _0x6e3fbc['map'](_0xe57115=>String['fromCharCode'](_0xe57115))['join']('');}_0x1ab1ae(await _0x32deee());}(this);}['createRevision'](_0x525616){const _0x36ea47=this['editor']['plugins']['get']('Users');return new a({'id':_0x525616['id'],'name':_0x525616['name'],'creator':_0x525616['creatorId']?_0x36ea47['getUser'](_0x525616['creatorId']):null,'diffData':_0x525616['diffData']||_0x525616['data'],'authors':_0x525616['authorsIds']['map'](_0x27e6bf=>_0x36ea47['getUser'](_0x27e6bf)),'createdAt':new Date(_0x525616['createdAt']),'attributes':_0x525616['attributes'],'fromVersion':_0x525616['fromVersion'],'toVersion':_0x525616['toVersion']});}['addRevision'](_0x311bd7,_0x43ef61=0x0){this['_revisions']['add'](_0x311bd7,_0x43ef61);}['getRevision'](_0x7bbd6){return this['_revisions']['get'](_0x7bbd6);}['getRevisions'](_0x2bb408={'toJSON':!0x1}){const _0x40e234=Array['from'](this['_revisions']);return _0x40e234['reverse'](),_0x2bb408['toJSON']?_0x40e234['map'](_0x1ad800=>_0x1ad800['toJSON']()):_0x40e234;}['getIndex'](_0x12d417){return this['_revisions']['getIndex'](_0x12d417);}['getEarlierVisibleRevision'](_0x49540a){const [,_0x53ab0f]=this['getRevisionsIterator'](_0x49540a,{'direction':'earlier'});return _0x53ab0f;}['getLaterVisibleRevision'](_0x442b4b){const [,_0x2e85ae]=this['getRevisionsIterator'](_0x442b4b,{'direction':'later'});return _0x2e85ae;}['getRevisionsInDiff'](_0x80a324){const _0x532113=[];for(const _0x3f0852 of this['getRevisionsIterator'](_0x80a324['newRevisionId']))if(_0x532113['push'](_0x3f0852),_0x3f0852['id']===_0x80a324['oldRevisionId'])break;return _0x532113;}*['getRevisionsIterator'](_0x28622d,{direction:_0x5259a='earlier',filter:_0x514101=()=>!0x0}={}){const _0x29b333='earlier'===_0x5259a?0x1:-0x1;let _0x587b98=this['_revisions']['get'](_0x28622d),_0x114028=this['getIndex'](_0x587b98);for(yield _0x587b98;_0x587b98;){if(_0x114028+=_0x29b333,_0x587b98=this['getRevision'](_0x114028),!_0x587b98)return;_0x514101(_0x587b98)&&(yield _0x587b98);}}}function m(_0x4f18cd,_0x2d71b6,_0x40ff57){const t=_0x4f18cd['t'];switch(_0x2d71b6){case'Revision\x20history':return t('Revision\x20history');case'Open\x20revision\x20history':return t('Open\x20revision\x20history');case'Restored':return t('Restored');case'Empty\x20document':return t('Empty\x20document');case'Initial\x20revision':return t('Initial\x20revision');case'Suggested\x20by':return t('Suggested\x20by');case'Added\x20by':return t('Added\x20by');case'Removed\x20by':return t('Removed\x20by');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Compare\x20against\x20selected':return t('Compare\x20against\x20selected');case'Name\x20this\x20revision':return t('Name\x20this\x20revision');case'Restore\x20this\x20revision':return t('Restore\x20this\x20revision');case'Back\x20to\x20editing':return t('Back\x20to\x20editing');case'Loading...':return t('Loading...');case'No\x20changes':return t('No\x20changes');case'NUMBER_OF_CHANGES':return t({'string':'%0\x20change','plural':'%0\x20changes','id':'NUMBER_OF_CHANGES'},_0x40ff57);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x40ff57);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const P={'c':_0x42cb6a,'a':_0x350582,'e':_0x10b861,'r':_0x3b8104,'u':_0x15ead0};class l extends _0x2ac9a6{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x2e1203,j,_0x1c2b89];}constructor(_0x4eaf51){super(_0x4eaf51),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x3c6b55=_0x3ad3eb();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x3c6b55},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x453492=this['repository']['getRevision'](0x0),_0x99754a=_0x453492&&null===_0x453492['creator']?_0x453492:null;if(this['_continueCurrentRevision']=!!_0x99754a&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x382d48=this['_source']['getCurrentRevisionId'](),_0xaffd5a=this['repository']['getRevision'](_0x382d48);if(_0xaffd5a)this['_startingVersion']=_0xaffd5a['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x561968=this['_source']['history']['_operations']['find'](_0x29e085=>!_0x29e085['_isInit']),_0x51c88e=_0x561968?_0x561968['baseVersion']:this['_source']['history']['version'];_0x453492?(_0x453492['toVersion']<_0x51c88e&&_0x453492['_update']({'toVersion':_0x51c88e}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x99754a['id'],this['_startingVersion']=_0x99754a['fromVersion']):(this['_startingVersion']=_0x453492['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x51c88e,this['_continueCurrentRevision']=!0x1);}}else _0x99754a&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x99754a['toVersion'],this['editor']['model']['document']['history']['version']),_0x99754a['fromVersion']===_0x99754a['toVersion']?(0x0!==_0x99754a['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x99754a['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x99754a['id'],this['_startingVersion']=_0x99754a['fromVersion'])),this['_continueCurrentRevision']||(this['_startingVersion']=this['editor']['model']['document']['version']);this['_revisionDataBuilder']['init'](this['_source']['history']),this['_createInitialRevision'](this['_startingVersion']),this['_createCurrentRevision'](this['_startingVersion']),this['adapter']&&this['sendBufferedUpdates']();}),this['bind']('isReady')['to'](this,'_isPendingUpdate',_0x443316=>!_0x443316),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x527f6e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x23f03a;for(const _0x4862a7 in _0x527f6e){const _0x170fe1=_0x4862a7,_0x593928=_0x527f6e[_0x170fe1];if('revisionHistoryLicenseKeyValid'==_0x593928||'revisionHistoryLicenseKeyInvalid'==_0x593928||'revisionHistoryLicenseKeyExpired'==_0x593928||'revisionHistoryLicenseKeyDomainLimit'==_0x593928||'revisionHistoryLicenseKeyNotAllowed'==_0x593928||'revisionHistoryLicenseKeyEvaluationLimit'==_0x593928||'revisionHistoryLicenseKeyTrialLimit'==_0x593928||'revisionHistoryLicenseKeyUsageLimit'==_0x593928){delete _0x527f6e[_0x170fe1],_0x23f03a=_0x593928,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x23f03a&&_0x527f6e['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x23f03a&&_0x527f6e['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x23f03a&&_0x527f6e['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x23f03a&&_0x527f6e['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x23f03a&&_0x527f6e['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x23f03a&&_0x527f6e['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x23f03a&&_0x527f6e['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0xc646cd=this['repository']['getRevision'](0x0),_0x2194ea=await this['getRevisionDocumentData'](_0xc646cd),_0x147a3f=await this['getRevisionRootsAttributes'](_0xc646cd);this['_replaceEditorDataWithRevisionData'](_0x2194ea,_0x147a3f);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x56a3d0){this['_source']=_0x56a3d0;}async['update'](){const _0x3179cf=await this['_source']['getLatestVersion']();if(_0x3179cf>this['currentRevision']['toVersion']){await this['_loadState']();const _0x59b10d=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x3179cf});_0x59b10d['authors']=_0x59b10d['authorsIds']['map'](_0x39da56=>this['editor']['plugins']['get']('Users')['getUser'](_0x39da56)),this['currentRevision']['_update'](_0x59b10d);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x40b441={},_0x274ba1=null){const _0x5782e1=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x274ba1>this['currentRevision']['toVersion']&&(_0x274ba1=null),null===_0x274ba1&&(_0x274ba1=await this['_source']['getLatestVersion']());const _0x1b5e69=this['_getFromVersion'](_0x274ba1),_0x237c59=this['buildRevisionData']({'from':_0x1b5e69,'to':_0x274ba1});if(this['currentRevision']['toVersion']<_0x274ba1){const _0x4cdf61=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x274ba1,'to':_0x274ba1});_0x4cdf61['authors']=[],_0x4cdf61['authorsIds']=[],_0x4cdf61['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x4cdf61,!0x0),delete _0x4cdf61['authors'],_0x5782e1['push'](_0x4cdf61);}_0x40b441['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x40b441['name']=_0x40b441['name']||null,_0x40b441['id']=_0x40b441['id']||_0x3ad3eb(),_0x40b441={..._0x40b441,..._0x237c59};const _0x13a000=this['addRevisionData'](_0x40b441);_0x5782e1['push'](_0x40b441);const _0x160eee=this['repository']['getIndex'](_0x13a000);if(0x0!==_0x160eee){const _0x54e6c1=this['repository']['getRevision'](_0x160eee-0x1);if(_0x54e6c1['fromVersion']!==_0x274ba1){const _0x548440=this['_revisionDataBuilder']['getData'](_0x274ba1,_0x54e6c1['toVersion']),_0x146ff1={'id':_0x54e6c1['id'],'diffData':_0x548440['diffData'],'authorsIds':_0x548440['authorsIds'],'authors':_0x548440['authorsIds']['map'](_0x3c1c05=>this['editor']['plugins']['get']('Users')['getUser'](_0x3c1c05)),'fromVersion':_0x274ba1};_0x54e6c1===this['currentRevision']&&(_0x146ff1['createdAt']=new Date(_0x40b441['createdAt']['getTime']()+0xa)),_0x54e6c1['_update'](_0x146ff1,!0x0),delete _0x146ff1['authors'],_0x5782e1['push'](_0x146ff1);}}if(this['adapter']){for(const _0xa8d3d0 of _0x5782e1)this['_bufferUpdate'](_0xa8d3d0['id'],_0xa8d3d0,!0x0);this['sendBufferedUpdates']();}return _0x13a000;}['addRevisionData'](_0x4a5174){const _0x278c59=this['repository']['createRevision'](_0x4a5174);return this['adapter']&&_0x278c59['on']('_update',(_0x173a7b,_0x46505c,_0x69c942)=>{_0x69c942||(this['_bufferUpdate'](_0x46505c['id'],_0x46505c,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x278c59,this['_findInsertionIndex'](_0x278c59)),_0x278c59;}async['getRevisionDocumentData'](_0x3c6ad5){await this['_loadRevisionData'](_0x3c6ad5);const _0x1dedfc={};for(const _0x302b4b in _0x3c6ad5['diffData']){if(_0x3c6ad5['diffData'][_0x302b4b]['attachChange']&&!_0x3c6ad5['diffData'][_0x302b4b]['attachChange']['isAttached'])continue;const _0x216a40=this['_removeRevisionMarkers'](JSON['parse'](_0x3c6ad5['diffData'][_0x302b4b]['insertions'])),_0x19061a=this['editor']['editing']['view']['document'],_0x3d1c35=new _0x255fee(_0x19061a,_0x216a40['map'](_0x3aa5b6=>C(_0x3aa5b6,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x1dedfc[_0x302b4b]=this['editor']['data']['processor']['toData'](_0x3d1c35),this['editor']['data']['processor']['useFillerType']('default');}return _0x1dedfc;}async['getRevisionRootsAttributes'](_0xe2a433){await this['_loadRevisionData'](_0xe2a433);const _0x5173e8={};for(const _0x278807 in _0xe2a433['diffData'])_0xe2a433['diffData'][_0x278807]['attachChange']&&!_0xe2a433['diffData'][_0x278807]['attachChange']['isAttached']||(_0x5173e8[_0x278807]=_0xe2a433['diffData'][_0x278807]['attributesAfter']||{});return _0x5173e8;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x47fd7c=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x83bb96=0x0;_0x83bb96<_0x47fd7c['length'];_0x83bb96++){const _0x483ee3=_0x47fd7c[_0x83bb96];let _0x3b6fd0=!0x1;for(const _0x59c500 of Object['keys'](_0x483ee3))void 0x0===_0x483ee3[_0x59c500]?delete _0x483ee3[_0x59c500]:'id'!==_0x59c500&&(_0x3b6fd0=!0x0);_0x3b6fd0||(_0x47fd7c[_0x83bb96]=null);}if(_0x47fd7c=_0x47fd7c['filter'](_0x4f780c=>null!==_0x4f780c),!_0x47fd7c['length'])return;for(let _0x33e5cb=0x0;_0x33e5cb<_0x47fd7c['length'];_0x33e5cb++){const _0x2ae174=_0x47fd7c[_0x33e5cb];void 0x0!==_0x2ae174['fromVersion']&&void 0x0===_0x2ae174['toVersion']&&(_0x2ae174['toVersion']=this['repository']['getRevision'](_0x2ae174['id'])['toVersion']),void 0x0!==_0x2ae174['toVersion']&&void 0x0===_0x2ae174['fromVersion']&&(_0x2ae174['fromVersion']=this['repository']['getRevision'](_0x2ae174['id'])['fromVersion']);}const _0x44d7d3=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x47fd7c,_0x44d7d3)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x10ba48=>{if(_0x10ba48){for(const _0x57e62e of _0x10ba48)this['setRevisionData']({'id':_0x57e62e['id'],'createdAt':_0x57e62e['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x55e8a6,_0x55b74a){let _0x4b3fa7=this['editor']['config']['get']('initialData'),_0x1d6d0e=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x4b3fa7){_0x4b3fa7={};for(const _0x1a5693 of this['editor']['model']['document']['getRootNames']())_0x4b3fa7[_0x1a5693]='';}if('string'==typeof _0x4b3fa7&&(_0x4b3fa7={'main':_0x4b3fa7}),void 0x0===_0x1d6d0e){_0x1d6d0e={};for(const _0x57a374 of this['editor']['model']['document']['getRootNames']())_0x1d6d0e[_0x57a374]={};}let _0x1dd048=!0x1;const _0x52481b=Object['keys'](_0x4b3fa7),_0x425976=Object['keys'](_0x55e8a6);for(const _0x25764e of _0x52481b){if(_0x4b3fa7[_0x25764e]!==_0x55e8a6[_0x25764e]&&''!==_0x4b3fa7[_0x25764e]['trim']()){_0x1dd048=!0x0;break;}if(!_0x5d19d5(_0x1d6d0e[_0x25764e],_0x55b74a[_0x25764e])&&Object['keys'](_0x1d6d0e[_0x25764e])['length']>0x0){_0x1dd048=!0x0;break;}}_0x1dd048||(_0x1dd048=_0x425976['some'](_0x304f55=>!this['editor']['model']['document']['getRoot'](_0x304f55))),_0x1dd048&&_0x5dfa80('editor-initial-data-replaced-with-revision-data',{'editorData':_0x4b3fa7,'editorRootsAttributes':_0x1d6d0e,'revisionData':_0x55e8a6,'revisionRootsAttributes':_0x55b74a}),this['editor']['config']['set']('initialData',_0x55e8a6),this['editor']['config']['set']('rootsAttributes',_0x55b74a);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x5aa9cf=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x5aa9cf['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x12d585){const _0x823154=this['repository']['getRevisions']();_0x823154['reverse']();let _0x327983=0x0;for(;_0x327983<_0x823154['length'];){const _0x9efb5e=_0x823154[_0x327983];if(_0x9efb5e===this['currentRevision']){_0x327983++;continue;}if(_0x9efb5e['id']===this['_initialRevisionId'])break;const _0x558800=_0x12d585['toVersion']-_0x9efb5e['toVersion']||_0x12d585['fromVersion']-_0x9efb5e['fromVersion'];if(_0x558800>0x0)break;if(_0x558800<0x0)_0x327983++;else{if(!_0x12d585['creator']&&_0x9efb5e['creator'])break;if(_0x9efb5e['creator']||!_0x12d585['creator']){if(_0x12d585['createdAt']>_0x9efb5e['createdAt'])break;_0x327983++;}else _0x327983++;}}return _0x327983;}['setRevisionData'](_0x1f29da){const _0x3c55eb=this['repository']['getRevision'](_0x1f29da['id']);if(_0x1f29da['createdAt']&&(_0x1f29da['createdAt']=new Date(_0x1f29da['createdAt'])),_0x1f29da['authorsIds']){const _0x5514be=this['editor']['plugins']['get']('Users');_0x1f29da['authors']=_0x1f29da['authorsIds']['map'](_0x208068=>_0x5514be['getUser'](_0x208068));}_0x3c55eb['_update'](_0x1f29da,!0x0);}['buildRevisionData']({revision:_0x19585e=null,from:_0x2f0d80=null,to:_0x2204e7=null}){_0x2f0d80=null!==_0x2f0d80?_0x2f0d80:_0x19585e['fromVersion'],_0x2204e7=null!==_0x2204e7?_0x2204e7:_0x19585e['toVersion'];const _0x425e6f=this['_revisionDataBuilder']['getData'](_0x2f0d80,_0x2204e7),_0x51b2b0={'diffData':_0x425e6f['diffData'],'authorsIds':_0x425e6f['authorsIds'],'fromVersion':_0x2f0d80,'toVersion':_0x2204e7};if(!_0x19585e||_0x2204e7!==_0x19585e['toVersion']){const _0x3d76a5=_0x2204e7-0x1,_0x511c5c=this['_source']['history']['getOperation'](_0x3d76a5);_0x51b2b0['createdAt']=_0x511c5c&&_0x511c5c['createdAt']||new Date();}if(this['_loadedStateData']&&_0x2f0d80===this['_loadedStateData']['fromVersion']){for(const _0x17c3a4 of this['_loadedStateData']['authors'])_0x51b2b0['authorsIds']['includes'](_0x17c3a4['id'])||_0x51b2b0['authorsIds']['push'](_0x17c3a4['id']);}return _0x51b2b0;}['_loadRevisionData'](_0x206f6a){if(!_0x206f6a||_0x206f6a['diffData'])return Promise['resolve']();{const _0x43ceaa=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x43ceaa,'revisionId':_0x206f6a['id']})['then'](_0x304a13=>{_0x206f6a['diffData']=_0x304a13['diffData'];});}}['_bufferUpdate'](_0x13ea4b,_0x119941,_0x257bac){if(this['_bufferedUpdates']['has'](_0x13ea4b)){const _0x23e5d1=this['_bufferedUpdates']['get'](_0x13ea4b);_0x119941=_0x257bac?{..._0x23e5d1,..._0x119941}:{..._0x119941,..._0x23e5d1};}this['_bufferedUpdates']['set'](_0x13ea4b,_0x119941);}['_getFromVersion'](_0x215357){const _0x3476fb=this['repository']['getRevisions']();_0x3476fb['reverse'](),_0x3476fb['shift']();const _0x3f1156=_0x3476fb['find'](_0x42d0d3=>_0x42d0d3['toVersion']<=_0x215357)['toVersion'];return _0x3f1156<this['_startingVersion']?this['_startingVersion']:_0x3f1156;}['_createInitialRevision'](_0x55e373){const _0xa5448c=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0xa5448c)this['_initialRevisionId']=_0xa5448c['id'];else{const _0x207d20=!this['editor']['model']['document']['roots']['find'](_0x1f5f7c=>this['editor']['model']['hasContent'](_0x1f5f7c)),_0x42fb01=this['editor']['plugins']['get']('Users')['me']['id'],_0xc50d6c=m(this['editor']['locale'],_0x207d20?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x55e373,'to':_0x55e373,'id':this['_initialRevisionId'],'name':_0xc50d6c,'creatorId':_0x42fb01});}}['_createCurrentRevision'](_0x36cb27){const _0x126f7e=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x126f7e),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x36cb27,'to':_0x36cb27,'id':_0x126f7e,'name':'','creatorId':null}));}['_makeRevision']({name:_0x3a5aea,from:_0x4b91c5,to:_0xef20ca,creatorId:_0x3ee078,id:_0x5b58f3}){const _0x3960c5=this['buildRevisionData']({'from':_0x4b91c5,'to':_0xef20ca});_0x3960c5['name']=_0x3a5aea,_0x3960c5['creatorId']=_0x3ee078,_0x3960c5['id']=_0x5b58f3;const _0x200916=this['addRevisionData'](_0x3960c5);return this['adapter']&&this['_bufferUpdate'](_0x3960c5['id'],_0x3960c5,!0x0),_0x200916;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x534027){return(_0x534027=_0x534027['filter'](_0x51e8eb=>!_0x51e8eb['name']||'revision-start'!==_0x51e8eb['name']&&'revision-end'!==_0x51e8eb['name']))['forEach'](_0x5db622=>{'string'!=typeof _0x5db622&&(_0x5db622['children']=this['_removeRevisionMarkers'](_0x5db622['children']),_0x5db622['attributes']=_0x5db622['attributes']['filter'](_0x2ba60b=>!_0x2ba60b[0x0]['startsWith']('data-revision-')));}),_0x534027;}}function C(_0xf74f39,_0x3a15dd){const _0x52e0d4=_0x3a15dd['editing']['view']['document'];if('string'==typeof _0xf74f39)return new _0x2c3a74(_0x52e0d4,_0xf74f39);{const _0x232e0b=_0xf74f39['children']['map'](_0x5db707=>C(_0x5db707,_0x3a15dd));return new(P[_0xf74f39['type']]||_0x1ad019)(_0x52e0d4,_0xf74f39['name'],_0xf74f39['attributes'],_0x232e0b);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x14fe24){this['editor']=_0x14fe24,this['_savedMetaData']=new Map(),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_markers']=new Map(),this['_diffRoots']=new Map(),this['_diffRootsAttributes']=new Map(),this['_baseRoots']=new Map(),this['_baseRootsAttributes']=new Map(),this['_idsRoots']=new Map(),this['_baseIdsRoots']=new Map(),this['_touched']=new Map(),this['_touchedMarkers']=new Map(),this['_touchedRoots']=new Map(),this['_revisionId']=0x1;}['init'](_0x58caa4){this['source']=_0x58caa4;const _0x2a06e5=new Map(),_0x54b587=new Map(),_0x237b50=this['editor']['model']['document']['roots']['map'](_0xeacbc5=>_0xeacbc5['rootName']);for(const _0x2c4d5a of _0x237b50){const _0x340eff=this['editor']['model']['document']['getRoot'](_0x2c4d5a),_0x5430a2=T(_0x340eff);_0x2a06e5['set'](_0x2c4d5a,_0x5430a2),_0x54b587['set'](_0x2c4d5a,Object['fromEntries'](_0x340eff['getAttributes']()));}const _0x7451ba=Array['from'](this['editor']['model']['markers'])['map'](_0x3ef24e=>[_0x3ef24e['name'],_0x3ef24e['getRange']()]),_0x1ede1d=this['source']['version'];this['_saveMetaData'](_0x1ede1d,_0x2a06e5,_0x7451ba,_0x54b587),this['_startingRevisionId']=this['_revisionId'];const _0x330eff=new Map(),_0x1328ff=new Map();for(const _0x55a231 of _0x237b50){const _0x4489c1=F(_0x55a231);_0x330eff['set'](_0x55a231,_0x4489c1),_0x1328ff['set'](_0x55a231,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x330eff,[],_0x1328ff);}['getData'](_0x3be9f0,_0x2bc859){if(this['_lastFrom']===_0x3be9f0&&this['_lastTo']<=_0x2bc859)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x2bc859,!0x0);else{if(!this['_savedMetaData']['has'](_0x3be9f0)){const _0x41c90f=this['_getPreviousFrom'](_0x3be9f0);this['_calculateMetaData'](_0x41c90f,_0x3be9f0,!0x1);}this['_calculateMetaData'](_0x3be9f0,_0x2bc859,!0x0);}return this['_lastFrom']=_0x3be9f0,this['_lastTo']=_0x2bc859,this['_getState']();}['loadState'](_0x50f152){this['_reset'](),this['_lastFrom']=_0x50f152['fromVersion'],this['_lastTo']=_0x50f152['toVersion'];for(const _0x13fcb2 in _0x50f152['diffData']){const _0x3fd631=_0x50f152['diffData'][_0x13fcb2]['attachChange'],_0x4e71d7=_0x276782(_0x50f152['diffData'][_0x13fcb2]['attributesBefore'])||{},_0x2e9372=this['_makeModelFromViewString'](_0x50f152['diffData'][_0x13fcb2]['deletions']);_0x2e9372['rootName']=_0x13fcb2,_0x2e9372['_isAttached']=!_0x3fd631||!_0x3fd631['isAttached'],_0x2e9372['isAttached']=()=>_0x2e9372['_isAttached'],this['_baseRoots']['set'](_0x13fcb2,_0x2e9372),this['_baseRootsAttributes']['set'](_0x13fcb2,_0x4e71d7),_0x3fd631&&this['_touchedRoots']['set'](_0x13fcb2,_0x3fd631);const _0x5197af=this['_makeIdsRoot'](_0x2e9372);this['_baseIdsRoots']['set'](_0x13fcb2,_0x5197af);for(const [_0x14728e,_0x1c500d]of _0x2e9372['markers']){if(!_0x14728e['startsWith']('revision:'))continue;const _0x359171=_0x14728e['split'](':')[0x2];for(const _0x37c5f6 of _0x1c500d['getWalker']({'singleCharacters':!0x0})){const _0x1bf1e5=this['_getVidAttributeName'](_0x37c5f6),_0x3bb765='elementEnd'==_0x37c5f6['type']?_0x37c5f6['previousPosition']['path']['slice'](0x0,-0x1):_0x37c5f6['previousPosition']['path'],_0x2d1c19=_0x5197af['getNodeByPath'](_0x3bb765)['getAttribute'](_0x1bf1e5);this['_touched']['set'](_0x2d1c19,{'userId':_0x359171});}}}this['_startingRevisionId']=this['_revisionId'];const _0x478b82=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x4132b1=>!this['_touched']['has'](_0x4132b1));let _0x24f367=0x0;const _0x1e2372=new Map();for(const _0x42780b in _0x50f152['diffData']){const _0x1a0e38=_0x50f152['diffData'][_0x42780b]['attachChange'],_0x898501=_0x276782(_0x50f152['diffData'][_0x42780b]['attributesAfter'])||{},_0x2c8967=this['_makeModelFromViewString'](_0x50f152['diffData'][_0x42780b]['insertions']);_0x2c8967['rootName']=_0x42780b,_0x2c8967['_isAttached']=!_0x1a0e38||_0x1a0e38['isAttached'],_0x2c8967['isAttached']=()=>_0x2c8967['_isAttached'],this['_diffRoots']['set'](_0x42780b,_0x2c8967),this['_diffRootsAttributes']['set'](_0x42780b,_0x898501);const _0x25ba64=this['_makeIdsRoot'](_0x2c8967,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x42780b,_0x25ba64),_0x1e2372['set'](_0x42780b,_0x2c8967['isAttached']()?_0x898501:{});for(const [_0x348222,_0xbfb13c]of _0x2c8967['markers']){if(!_0x348222['startsWith']('revision:'))continue;const _0x4410ea=_0x348222['split'](':')[0x2];for(const _0x1111e9 of _0xbfb13c['getWalker']({'singleCharacters':!0x0})){const _0x4350f8=this['_getVidAttributeName'](_0x1111e9),_0x1bc4af=this['_revisionId']++,_0x3a6409='elementEnd'==_0x1111e9['type']?_0x1111e9['previousPosition']['path']['slice'](0x0,-0x1):_0x1111e9['previousPosition']['path'];_0x25ba64['getNodeByPath'](_0x3a6409)['_setAttribute'](_0x4350f8,_0x1bc4af),this['_touched']['set'](_0x1bc4af,{'userId':_0x4410ea});}}for(const _0x21b75a of this['editor']['model']['createRangeIn'](_0x2c8967)['getWalker']({'singleCharacters':!0x0})){const _0x155987=this['_getVidAttributeName'](_0x21b75a),_0x1f4d69='elementEnd'==_0x21b75a['type']?_0x21b75a['previousPosition']['path']['slice'](0x0,-0x1):_0x21b75a['previousPosition']['path'],_0x4ad48b=_0x25ba64['getNodeByPath'](_0x1f4d69);_0x4ad48b['getAttribute'](_0x155987)>0x0||_0x4ad48b['_setAttribute'](_0x155987,_0x478b82[_0x24f367++]);}for(const [_0x63aff,_0x46c8a2]of _0x2c8967['markers'])_0x63aff['startsWith']('revision:')||this['_markers']['set'](_0x63aff,_0x46c8a2);}const _0x28b0a9=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x28b0a9),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x28b0a9,0x1));const _0x513ea9=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x513ea9),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x513ea9,0x1));const _0x4c062d=Array['from'](this['_diffRoots'])['map'](([_0x508322,_0x29157f])=>[_0x508322,T(_0x29157f)]);this['_saveMetaData'](this['_lastTo'],_0x4c062d,this['_markers'],_0x1e2372);}['_makeModelFromViewString'](_0x5bc942){const _0x2642bb=JSON['parse'](_0x5bc942),_0x1ec779=this['editor']['editing']['view']['document'],_0x2f9c56=new _0x255fee(_0x1ec779,_0x2642bb['map'](_0x552b1e=>C(_0x552b1e,this['editor'])));return this['editor']['data']['toModel'](_0x2f9c56);}['_saveMetaData'](_0x253751,_0x23d720,_0x231e0f,_0x1d2ccc){const _0xe8857d=new Map(_0x23d720),_0xf87e53=new Map(_0x276782(_0x1d2ccc)),_0x3ce27e=new Map();for(const [_0x28017e,_0x394f8f]of _0x231e0f)_0x3ce27e['set'](_0x28017e,{'start':_0x394f8f['start']['clone'](),'end':_0x394f8f['end']['clone'](),'rootName':_0x394f8f['root']['rootName']});this['_savedMetaData']['set'](_0x253751,{'roots':_0xe8857d,'markers':_0x3ce27e,'rootsAttributes':_0xf87e53});}['_removeMetaData'](_0x5e2c56){this['_savedMetaData']['delete'](_0x5e2c56);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0xaaaa40,_0x280caa=null){let _0x54c301=null;_0xaaaa40['is']('documentFragment')||(_0x54c301=new ft(_0xaaaa40['name'],{'vid_start':null===_0x280caa?this['_revisionId']++:_0x280caa++}));const _0x5cfd53=[];for(const _0x18088f of _0xaaaa40['getChildren']())if(_0x18088f['is']('element')){_0x5cfd53['push'](this['_makeIdsRoot'](_0x18088f,_0x280caa));const _0x5e1018=_0x5cfd53[_0x5cfd53['length']-0x1];null!==_0x280caa&&(_0x280caa=_0x5e1018['is']('element','$text')?_0x5e1018['getAttribute']('vid')+0x1:_0x5e1018['getAttribute']('vid_end')+0x1);}else{for(let _0xa679df=0x0;_0xa679df<_0x18088f['offsetSize'];_0xa679df++)_0x5cfd53['push'](new ft('$text',{'vid':null===_0x280caa?this['_revisionId']++:_0x280caa++}));}if(_0xaaaa40['is']('documentFragment')){const _0x500b54=F(_0xaaaa40['rootName']);return _0x500b54['_insertChild'](0x0,_0x5cfd53),_0x500b54;}return _0x54c301['_setAttribute']('vid_end',null===_0x280caa?this['_revisionId']++:_0x280caa++),_0x54c301['_insertChild'](0x0,_0x5cfd53),_0x54c301;}['_calculateMetaData'](_0x32aaae,_0x276d18,_0x312d34){this['_reset']();const {roots:_0x63c7f4,markers:_0x3bdd81,rootsAttributes:_0x1abff8}=this['_savedMetaData']['get'](_0x32aaae);this['_baseRoots']=new Map(_0x63c7f4),this['_baseRootsAttributes']=new Map(_0x276782(_0x1abff8));for(const [_0x51ee70,_0x11ec8f]of this['_baseRoots'])if('$graveyard'!==_0x51ee70&&(this['_diffRoots']['set'](_0x51ee70,T(_0x11ec8f)),this['_diffRootsAttributes']=new Map(_0x276782(_0x1abff8)),_0x312d34)){const _0x2b2b85=this['_revisionId'];this['_idsRoots']['set'](_0x51ee70,this['_makeIdsRoot'](_0x11ec8f)),this['_baseIdsRoots']['set'](_0x51ee70,this['_makeIdsRoot'](_0x11ec8f,_0x2b2b85));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x312d34&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x1fce0b,_0x432df8]of _0x3bdd81){const _0x24ba67=this['_baseRoots']['get'](_0x432df8['rootName']),_0x3145cb=this['_diffRoots']['get'](_0x432df8['rootName']),_0x669966=new vt(this['_fixPosition'](_0x432df8['start'],_0x24ba67),this['_fixPosition'](_0x432df8['end'],_0x24ba67)),_0x2503e5=this['_fixRange'](_0x669966,_0x3145cb);_0x24ba67['markers']['set'](_0x1fce0b,_0x669966),this['_markers']['set'](_0x1fce0b,_0x2503e5);}this['_applyOperations'](_0x32aaae,_0x276d18,_0x312d34);}['_applyOperations'](_0x2df4e5,_0x2d138f,_0x1681cc){for(const _0xba2dea of this['source']['getOperations'](_0x2df4e5,_0x2d138f))this['_handleOperation'](_0xba2dea,_0x1681cc);for(const _0x54afb6 of this['_diffRoots']['values']())_0x54afb6['markers']['clear']();for(const [_0x5a4357,_0x3d2a5b]of this['_markers']){this['_diffRoots']['get'](_0x3d2a5b['root']['rootName'])['markers']['set'](_0x5a4357,_0x3d2a5b['clone']());}const _0x36743c=new Map(),_0x2d16a9=new Map();for(const [_0xbe6796,_0x1b5f53]of this['_diffRoots'])_0x36743c['set'](_0xbe6796,T(_0x1b5f53)),_0x2d16a9['set'](_0xbe6796,this['_diffRootsAttributes']['get'](_0xbe6796));this['_saveMetaData'](_0x2d138f,_0x36743c,this['_markers'],_0x2d16a9);}['_getPreviousFrom'](_0x2fdc43){const _0x20201c=Array['from'](this['_savedMetaData']['keys']());_0x20201c['sort']((_0x20bad6,_0xb4597d)=>_0x20bad6-_0xb4597d),_0x20201c['reverse']();for(const _0x21506e of _0x20201c)if(_0x21506e<_0x2fdc43)return _0x21506e;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x353612,_0x33b93c){const _0x534e29=Array['from'](_0x33b93c['markers'])['map'](([_0x2937fa,_0x58819d])=>[_0x2937fa,this['_fixRange'](_0x58819d,_0x353612)]);_0x353612['markers']=new Map(_0x534e29);}['_transformMarkers'](_0x5886b6){for(const _0x2d3f93 of this['_markers']['values']()){const _0x37194e=_0x2d3f93['getTransformedByOperation'](_0x5886b6),_0x1ac9e6=vt['_createFromRanges'](_0x37194e);_0x2d3f93['start']=_0x1ac9e6['start'],_0x2d3f93['end']=_0x1ac9e6['end'];}}['_handleOperation'](_0x1c1637,_0x320ca4){if('addRoot'!=_0x1c1637['type']&&'detachRoot'!=_0x1c1637['type']){if('insert'==_0x1c1637['type']){const _0x59f7ab=_0x1c1637['position']['root']['rootName'];this['_diffRoots']['has'](_0x59f7ab)||(this['_diffRoots']['set'](_0x59f7ab,F(_0x59f7ab,!0x0)),this['_diffRootsAttributes']['set'](_0x59f7ab,{}),_0x320ca4&&this['_idsRoots']['set'](_0x59f7ab,F(_0x59f7ab,!0x0)));}else{if('addRootAttribute'==_0x1c1637['type']||'removeRootAttribute'==_0x1c1637['type']||'changeRootAttribute'==_0x1c1637['type'])return void this['_handleRootAttributeOperation'](_0x1c1637);'marker'==_0x1c1637['type']&&this['_handleMarkerOperation'](_0x1c1637);}if('marker'!==_0x1c1637['type']){const _0x861104=this['_cloneOperation'](_0x1c1637,this['_diffRoots']);_0x861104['_execute'](),this['_transformMarkers'](_0x861104);}if(_0x320ca4)switch(_0x1c1637['type']){case'insert':this['_handleInsertOperation'](_0x1c1637);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x1c1637);break;case'merge':this['_handleMergeOperation'](_0x1c1637);break;case'split':this['_handleSplitOperation'](_0x1c1637);}}else this['_handleRootOperation'](_0x1c1637,_0x320ca4);}['_cloneOperation'](_0x450231,_0x184886){const _0x4f3e2e=_0x450231['clone']();return _0x4f3e2e['_authorId']=_0x450231['_authorId'],this['_fixOperation'](_0x4f3e2e,_0x184886),_0x4f3e2e;}['_getBaseVids'](_0x36cad2){return _0x36cad2['map'](_0x48774e=>{const _0x117f98=this['_getVidAttributeName'](_0x48774e);return Number(_0x48774e['item']['getAttribute'](_0x117f98));});}['_generateTape'](_0x41e3e9,_0x45cbe5){if(_0x41e3e9['is']('element','$text'))_0x45cbe5['push']({'item':_0x41e3e9,'type':'text'});else{_0x41e3e9['is']('element')&&_0x45cbe5['push']({'item':_0x41e3e9,'type':'elementStart'});for(const _0x2d9f00 of _0x41e3e9['getChildren']())this['_generateTape'](_0x2d9f00,_0x45cbe5);_0x41e3e9['is']('element')&&_0x45cbe5['push']({'item':_0x41e3e9,'type':'elementEnd'});}return _0x45cbe5;}['_getState'](){const _0xcce382=new Map(this['_touched']),_0x5784bc=new Map(_0xcce382),_0x3206ab=new Map(),_0x291fa3={'insertions':{},'deletions':{}},_0xf6a599={'insertions':{},'deletions':{}},_0x5eebdb=new Map(),_0x368f72=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x368f72['delete']('$graveyard');for(const _0x264233 of _0x368f72){const _0x4c08c1=this['_diffRoots']['get'](_0x264233)||F(_0x264233,!0x1),_0x3c5f38=this['_baseRoots']['get'](_0x264233)||F(_0x264233,!0x1);_0x4c08c1['isAttached']()||_0x3c5f38['isAttached']()?(_0x291fa3['insertions'][_0x264233]=T(_0x4c08c1),_0x291fa3['deletions'][_0x264233]=T(_0x3c5f38),this['_copyMarkers'](_0x291fa3['deletions'][_0x264233],_0x3c5f38),this['_copyMarkers'](_0x291fa3['insertions'][_0x264233],_0x4c08c1),_0xf6a599['insertions'][_0x264233]=this['_generateTape'](this['_idsRoots']['get'](_0x264233),[]),_0xf6a599['deletions'][_0x264233]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x264233)||F(_0x264233,!0x1),[])):_0x368f72['delete'](_0x264233);}for(const _0x3f1210 of _0x368f72){const _0x522c74=_0xf6a599['insertions'][_0x3f1210];for(const _0x487ed3 of _0x522c74){const _0x2ca99d=this['_getVidAttributeName'](_0x487ed3),_0xc9f82e=_0x487ed3['item']['getAttribute'](_0x2ca99d);_0x5784bc['delete'](_0xc9f82e),_0xc9f82e>=this['_startingRevisionId']&&_0x3206ab['set'](_0xc9f82e,_0xcce382['get'](_0xc9f82e));}}for(const _0x264fc7 of _0x368f72){const _0x5e40e7=_0xf6a599['insertions'][_0x264fc7],_0x2811c1=this['_getBaseVids'](_0xf6a599['deletions'][_0x264fc7]);let _0x19aa37=0x0;for(const _0x1adb86 of _0x5e40e7){const _0x1d4524=this['_getVidAttributeName'](_0x1adb86),_0x234231=_0x1adb86['item']['getAttribute'](_0x1d4524);if(!_0x3206ab['has'](_0x234231)&&!_0x5eebdb['has'](_0x234231)){if(_0x5784bc['has'](_0x234231))_0x19aa37++;else{if(_0x234231!=_0x2811c1[_0x19aa37]){const _0x2e2544=_0xcce382['get'](_0x234231)||_0xcce382['get'](_0x2811c1[_0x19aa37]);for(;_0x234231!=_0x2811c1[_0x19aa37];)_0x5784bc['has'](_0x2811c1[_0x19aa37])||(_0x5eebdb['set'](_0x2811c1[_0x19aa37],_0x2e2544),_0xcce382['set'](_0x2811c1[_0x19aa37],_0x2e2544)),_0x19aa37++;}_0x19aa37++;}}}}for(const _0x572528 of _0x368f72){const _0x1c4b2b=_0xf6a599['insertions'][_0x572528];for(const _0x3cd87e of _0x1c4b2b){const _0x4c12e7=this['_getVidAttributeName'](_0x3cd87e),_0x933b21=_0x3cd87e['item']['getAttribute'](_0x4c12e7);if(_0x5eebdb['has'](_0x933b21)){const _0x3bda01=_0x5eebdb['get'](_0x933b21);_0x5784bc['has'](_0x933b21)||_0x5784bc['set'](_0x933b21,{..._0x3bda01}),_0x3206ab['set'](_0x933b21,{..._0x3bda01});}}}for(const _0x26b249 of _0x5784bc['keys']())_0x26b249>=this['_startingRevisionId']&&_0x5784bc['delete'](_0x26b249);const _0x20ef6b=new Map();for(const _0x264016 of _0x368f72){let _0x7388a5=_0xf6a599['insertions'][_0x264016];for(const _0x277367 of _0x7388a5)if(_0x277367['item']['is']('element','tableCell')){const _0x5d1c49=this['_getVidAttributeName'](_0x277367),_0x55e00c=_0x277367['item']['getAttribute'](_0x5d1c49);if(_0x3206ab['has'](_0x55e00c)){const _0x538182=_0x277367['item']['parent']['parent']['getAttribute']('vid_start'),_0x56e122=_0x20ef6b['get'](_0x538182)||new Set();_0x56e122['add'](_0x3206ab['get'](_0x55e00c)['userId']),_0x20ef6b['set'](_0x538182,_0x56e122);}}_0x7388a5=_0xf6a599['deletions'][_0x264016];for(const _0x12a8b3 of _0x7388a5)if(_0x12a8b3['item']['is']('element','tableCell')){const _0x578517=this['_getVidAttributeName'](_0x12a8b3),_0x26195a=_0x12a8b3['item']['getAttribute'](_0x578517);if(_0x5784bc['has'](_0x26195a)){const _0x1c0f09=_0x12a8b3['item']['parent']['parent']['getAttribute']('vid_start'),_0x509a4f=_0x20ef6b['get'](_0x1c0f09)||new Set();_0x509a4f['add'](_0x5784bc['get'](_0x26195a)['userId']),_0x20ef6b['set'](_0x1c0f09,_0x509a4f);}}for(const _0x845096 of _0x20ef6b['keys']())(_0x3206ab['has'](_0x845096)||_0x5784bc['has'](_0x845096))&&_0x20ef6b['delete'](_0x845096);}for(const _0x4dc841 of _0x368f72){const _0x310eba=_0xf6a599['insertions'][_0x4dc841];let _0x331cd5=null,_0x5d9df8=null;for(const _0x2bd422 of _0x310eba){const _0x1313e1=this['_getVidAttributeName'](_0x2bd422),_0x46274c=_0x2bd422['item']['getAttribute'](_0x1313e1),_0x585486=_0x20ef6b['get'](_0x46274c);_0x585486&&'elementStart'==_0x2bd422['type']&&(_0x331cd5=Array['from'](_0x585486)[0x0],_0x5d9df8=_0x2bd422['item']['getAttribute']('vid_end')),_0x331cd5&&(_0x5784bc['set'](_0x46274c,{'userId':_0x331cd5}),_0x3206ab['set'](_0x46274c,{'userId':_0x331cd5})),_0x46274c==_0x5d9df8&&(_0x331cd5=null,_0x5d9df8=null);}}const _0x337b50={},_0x1ef4c4=new Set();for(const _0x56867e of _0x368f72){const _0x2186db=_0x291fa3['deletions'][_0x56867e],_0x5103d3=_0x291fa3['insertions'][_0x56867e];for(const {userId:_0x2aa930}of this['_touchedMarkers']['values']())null!==_0x2aa930&&_0x1ef4c4['add'](_0x2aa930);for(const {userId:_0x1b2a53}of this['_touchedRoots']['values']())null!==_0x1b2a53&&_0x1ef4c4['add'](_0x1b2a53);this['_markChanges'](_0x5103d3,_0xf6a599['insertions'][_0x56867e],_0x3206ab,'insertion',_0x1ef4c4),this['_markChanges'](_0x2186db,_0xf6a599['deletions'][_0x56867e],_0x5784bc,'deletion',_0x1ef4c4),_0x337b50[_0x56867e]={'insertions':this['_prepareViewToSave'](_0x5103d3),'deletions':this['_prepareViewToSave'](_0x2186db),'attachChange':this['_touchedRoots']['get'](_0x56867e)||null,'attributesBefore':_0x276782(this['_baseRootsAttributes']['get'](_0x56867e))||{},'attributesAfter':_0x276782(this['_diffRootsAttributes']['get'](_0x56867e))};}return{'diffData':_0x337b50,'authorsIds':Array['from'](_0x1ef4c4)};}['_processRootBeforeSave'](_0x3e7dc1){for(const [,_0x4aba44]of _0x3e7dc1['markers']){const _0x4ff523=_0x4aba44['start']['getAncestors']()['filter'](_0x242b71=>'tableCell'==_0x242b71['name']);for(const _0x57add3 of _0x4ff523)0x1==_0x57add3['childCount']&&_0x57add3['getChild'](0x0)['is']('element','paragraph')&&_0x57add3['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x5a14fd){this['_processRootBeforeSave'](_0x5a14fd);const _0x4e0ca4=this['editor']['data']['toView'](_0x5a14fd,{}),_0x268d73=Array['from'](_0x4e0ca4['getChildren']())['map'](_0xf94458=>this['_getViewJson'](_0xf94458));return JSON['stringify'](_0x268d73);}['_getViewJson'](_0x10aa69){if(_0x10aa69['is']('$text'))return _0x10aa69['data'];{const _0x216bc4=_0x10aa69;return{'type':Object['keys'](P)['find'](_0x274962=>_0x10aa69 instanceof P[_0x274962]),'name':_0x216bc4['name'],'attributes':Array['from'](_0x216bc4['getAttributes']()),'children':Array['from'](_0x216bc4['getChildren']())['map'](_0x42570c=>this['_getViewJson'](_0x42570c))};}}['_markChanges'](_0x345000,_0x534947,_0x31ceea,_0x1049e5,_0x36faff){let _0x5859c2=null,_0x410cb4=null,_0x2a6036=0x0;const _0x19df48=this['editor']['model'];for(let _0x3431f0=0x0;_0x3431f0<_0x534947['length'];_0x3431f0++){const _0x5c4501=this['_getVidAttributeName'](_0x534947[_0x3431f0]),_0x3e1766=_0x534947[_0x3431f0]['item']['getAttribute'](_0x5c4501),_0x556228=_0x31ceea['get'](_0x3e1766),_0x2ede35=_0x3431f0==_0x534947['length']-0x1;(!_0x5859c2&&_0x556228&&(_0x5859c2=_0x556228,_0x410cb4=_0x534947[_0x3431f0]),_0x5859c2&&(!_0x556228||_0x556228['userId']!=_0x5859c2['userId']))&&(_0x25fcd5(_0x556228,B(_0x410cb4,_0x345000,_0x19df48),B(_0x534947[_0x3431f0],_0x345000,_0x19df48)),_0x5859c2=_0x556228||null,_0x410cb4=_0x556228?_0x534947[_0x3431f0]:null),_0x5859c2&&_0x2ede35&&_0x25fcd5(_0x556228,B(_0x410cb4,_0x345000,_0x19df48),J(_0x534947[_0x3431f0],_0x345000,_0x19df48));}function _0x25fcd5(_0x5dbfbe,_0x3ace2d,_0x2cedd8){const _0x177403=_0x5859c2['userId'],_0x20e96c='revision:'+_0x1049e5+':'+_0x177403+':'+_0x2a6036++,_0x5af7ad=_0x19df48['createRange'](_0x3ace2d,_0x2cedd8);_0x345000['markers']['set'](_0x20e96c,_0x5af7ad),null!==_0x177403&&_0x36faff['add'](_0x177403);}}['_getVidAttributeName'](_0x51dda4){switch(_0x51dda4['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x2f44ec,_0x55a62c){_0x2f44ec['baseVersion']=null;for(const _0x32b209 in _0x2f44ec){const _0x3eb8f4=_0x2f44ec[_0x32b209];if(_0x3eb8f4 instanceof gt){const _0x45d0e2=_0x55a62c['get'](_0x3eb8f4['root']['rootName']);_0x2f44ec[_0x32b209]=this['_fixPosition'](_0x3eb8f4,_0x45d0e2);}if(_0x3eb8f4 instanceof vt){const _0x43b55d=_0x55a62c['get'](_0x3eb8f4['root']['rootName']);_0x2f44ec[_0x32b209]=this['_fixRange'](_0x3eb8f4,_0x43b55d);}'root'===_0x32b209&&(_0x2f44ec['root']=_0x55a62c['get'](_0x2f44ec['root']['rootName']));}}['_fixRange'](_0xc7b7b4,_0x5920f3){return this['editor']['model']['createRange'](this['_fixPosition'](_0xc7b7b4['start'],_0x5920f3),this['_fixPosition'](_0xc7b7b4['end'],_0x5920f3));}['_fixPosition'](_0xe740a9,_0x481a15){return this['editor']['model']['createPositionFromPath'](_0x481a15,_0xe740a9['path'],_0xe740a9['stickiness']);}['_handleInsertOperation'](_0x21c432){const _0x5f07a5=this['_idsRoots']['get'](_0x21c432['position']['root']['rootName']),_0x343fbc=this['_fixPosition'](_0x21c432['position'],_0x5f07a5),_0x2a3403=null===_0x21c432['_authorId']?null:_0x21c432['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x6e714=_0x343fbc['parent'],_0x53e436=this['_revisionId'],_0x15b510=[];for(const _0x1365db of _0x21c432['nodes'])if(_0x1365db['is']('element'))_0x15b510['push'](this['_makeIdsRoot'](_0x1365db));else{for(let _0x228474=0x0;_0x228474<_0x1365db['offsetSize'];_0x228474++)_0x15b510['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x29fd12=this['_revisionId'];for(let _0x4d2c9f=_0x53e436;_0x4d2c9f<_0x29fd12;_0x4d2c9f++)this['_touched']['set'](_0x4d2c9f,{'userId':_0x2a3403});_0x6e714['_insertChild'](_0x343fbc['offset'],_0x15b510);}['_handleMoveOperation'](_0x1043ab){(_0x1043ab=this['_cloneOperation'](_0x1043ab,this['_idsRoots']))['_execute']();const _0x1c6cb6=null===_0x1043ab['_authorId']?null:_0x1043ab['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xcb19f0=_0x1043ab['getMovedRangeStart'](),_0x21aa9b=_0xcb19f0['parent'],_0x1aec7a=_0xcb19f0['offset'];!function _0x3d73bc(_0x37fa4c,_0x58bbd0,_0xe4d6e6,_0x459eac){for(let _0xbd97a=_0xe4d6e6;_0xbd97a<_0x459eac;_0xbd97a++){const _0x27a27b=_0x58bbd0['getChild'](_0xbd97a);_0x27a27b['is']('element','$text')?_0x37fa4c['set'](_0x27a27b['getAttribute']('vid'),{'userId':_0x1c6cb6}):(_0x37fa4c['set'](_0x27a27b['getAttribute']('vid_start'),{'userId':_0x1c6cb6}),_0x3d73bc(_0x37fa4c,_0x27a27b,0x0,_0x27a27b['childCount']),_0x37fa4c['set'](_0x27a27b['getAttribute']('vid_end'),{'userId':_0x1c6cb6}));}}(this['_touched'],_0x21aa9b,_0x1aec7a,_0x1aec7a+_0x1043ab['howMany']);}['_handleMergeOperation'](_0x42cd49){const _0x3a6353=null===(_0x42cd49=this['_cloneOperation'](_0x42cd49,this['_idsRoots']))['_authorId']?null:_0x42cd49['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x28fafd=_0x42cd49['targetPosition']['parent'],_0x4b4dc0=_0x42cd49['sourcePosition']['parent'],_0x3750ad=_0x28fafd['getAttribute']('vid_end'),_0x9cac3b=_0x4b4dc0['getAttribute']('vid_start');_0x28fafd['_setAttribute']('vid_end',_0x4b4dc0['getAttribute']('vid_end')),_0x4b4dc0['_setAttribute']('vid_end',_0x3750ad),this['_touched']['set'](_0x9cac3b,{'userId':_0x3a6353}),this['_touched']['set'](_0x3750ad,{'userId':_0x3a6353}),_0x42cd49['_execute']();}['_handleSplitOperation'](_0x3dc19a){const _0x339ee3=null===(_0x3dc19a=this['_cloneOperation'](_0x3dc19a,this['_idsRoots']))['_authorId']?null:_0x3dc19a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xb0f96b=_0x3dc19a['graveyardPosition'],_0x1fba60=_0x3dc19a['splitPosition']['parent'];_0x3dc19a['_execute']();const _0x2b0dc5=_0x1fba60['getAttribute']('vid_end'),_0x187156=_0x3dc19a['insertionPosition']['nodeAfter'];if(_0xb0f96b){const _0x1ed731=_0x187156['getAttribute']('vid_end'),_0x3c4cb4=_0x1fba60['getAttribute']('vid_end');_0x1fba60['_setAttribute']('vid_end',_0x1ed731),_0x187156['_setAttribute']('vid_end',_0x3c4cb4),this['_touched']['set'](_0x1fba60['getAttribute']('vid_end'),{'userId':_0x339ee3}),this['_touched']['set'](_0x187156['getAttribute']('vid_start'),{'userId':_0x339ee3});}else{const _0x341b55=this['_revisionId']++,_0x4457ea=this['_revisionId']++;_0x1fba60['_setAttribute']('vid_end',_0x341b55),_0x187156['_setAttribute']('vid_start',_0x4457ea),_0x187156['_setAttribute']('vid_end',_0x2b0dc5),this['_touched']['set'](_0x341b55,{'userId':_0x339ee3}),this['_touched']['set'](_0x4457ea,{'userId':_0x339ee3});}}['_handleMarkerOperation'](_0x3ea926){if(!_0x3ea926['affectsData'])return;const _0x5b3fba=(_0x3ea926=this['_cloneOperation'](_0x3ea926,this['_diffRoots']))['oldRange']?_0x3ea926['oldRange']['root']:null,_0x2eab24=_0x3ea926['newRange']?_0x3ea926['newRange']['root']:null;_0x5b3fba&&this['_markers']['delete'](_0x3ea926['name']),_0x2eab24&&this['_markers']['set'](_0x3ea926['name'],_0x3ea926['newRange']['clone']());const _0x4b4519=null===_0x3ea926['_authorId']?null:_0x3ea926['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x15af01=_0x3ea926['name'];if(!this['_touchedMarkers']['has'](_0x15af01))return void this['_touchedMarkers']['set'](_0x15af01,{'range':_0x3ea926['oldRange'],'userId':_0x4b4519});const _0x1ffd47=this['_touchedMarkers']['get'](_0x15af01),_0x5246f6=_0x1ffd47['range'],_0x775886=_0x3ea926['newRange'];null==_0x5246f6&&null==_0x775886||_0x5246f6&&_0x775886&&_0x5246f6['isEqual'](_0x775886)?this['_touchedMarkers']['delete'](_0x3ea926['name']):_0x1ffd47['userId']=_0x4b4519;}['_handleRootOperation'](_0x2f0945,_0x5b9d79){this['_diffRoots']['has'](_0x2f0945['rootName'])?this['_diffRoots']['get'](_0x2f0945['rootName'])['_isAttached']=_0x2f0945['isAdd']:(this['_diffRoots']['set'](_0x2f0945['rootName'],F(_0x2f0945['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x2f0945['rootName'],{}),_0x5b9d79&&this['_idsRoots']['set'](_0x2f0945['rootName'],F(_0x2f0945['rootName'],!0x0)));const _0x567967=null===_0x2f0945['_authorId']?null:_0x2f0945['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x15e785=this['_touchedRoots']['get'](_0x2f0945['rootName']);_0x15e785&&_0x15e785['userId']===_0x567967?this['_touchedRoots']['delete'](_0x2f0945['rootName']):this['_touchedRoots']['set'](_0x2f0945['rootName'],{'userId':_0x567967,'isAttached':_0x2f0945['isAdd']});}['_handleRootAttributeOperation'](_0x11e443){const _0x427e13=this['_diffRootsAttributes']['get'](_0x11e443['root']['rootName']);null===_0x11e443['newValue']?delete _0x427e13[_0x11e443['key']]:_0x427e13[_0x11e443['key']]=_0x11e443['newValue'];}}function T(_0x40016b){const _0x3748ba=F(_0x40016b['rootName'],_0x40016b['isAttached']());for(const _0x57fd08 of _0x40016b['getChildren']()){const _0x5b827d=_0x57fd08['_clone'](!0x0);_0x3748ba['_appendChild'](_0x5b827d);}return _0x3748ba;}function F(_0x2900b8,_0x38815f=!0x0){const _0x19233b=new mt();return _0x19233b['rootName']=_0x2900b8,_0x19233b['_isAttached']=_0x38815f,_0x19233b['isAttached']=()=>_0x19233b['_isAttached'],_0x19233b;}function B(_0x19b7b4,_0x486cc4,_0x11594b){const _0x140998='elementEnd'==_0x19b7b4['type']?_0x11594b['createPositionAt'](_0x19b7b4['item'],'end'):_0x11594b['createPositionBefore'](_0x19b7b4['item']);return _0x11594b['createPositionFromPath'](_0x486cc4,_0x140998['path'],_0x140998['stickiness']);}function J(_0x4025e2,_0x11b272,_0x32bca5){const _0x55c243='elementStart'==_0x4025e2['type']?_0x32bca5['createPositionAt'](_0x4025e2['item'],0x0):_0x32bca5['createPositionAfter'](_0x4025e2['item']);return _0x32bca5['createPositionFromPath'](_0x11b272,_0x55c243['path'],_0x55c243['stickiness']);}class ns extends _0x5772c9{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x1b62b3,_0x56cb28){super(_0x1b62b3),this['focusTracker']=new _0xf9100b(),this['keystrokes']=new _0x12eaa1(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x56cb28),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x413ed9({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x258aa9=_0xb34fe3=>_0xb34fe3['stopPropagation']();this['keystrokes']['set']('arrowright',_0x258aa9),this['keystrokes']['set']('arrowleft',_0x258aa9),this['keystrokes']['set']('arrowup',_0x258aa9),this['keystrokes']['set']('arrowdown',_0x258aa9);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x4e89fa){this['revisionNameInputView']['fieldView']['element']['value']=_0x4e89fa['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x25da1e){const _0x54bb7c=new nt(this['locale'],_0x172651),_0xd888b2=_0x54bb7c['fieldView'];_0xd888b2['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x314dd4=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x25da1e&&(_0x314dd4+='\x20('+m(this['locale'],'optional')+')'),(_0x54bb7c['label']=_0x314dd4,_0xd888b2['on']('input',()=>{this['revisionNameInputValue']=_0xd888b2['element']['value']['trim']();}),_0x54bb7c);}}class u extends _0x2ac9a6{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x2981e3=this['editor'],_0x5318ce=_0x2981e3['plugins']['get']('RevisionTracker');_0x2981e3['ui']['componentFactory']['add']('revisionHistory',_0x488843=>{const _0x4855c4=_0x22f59f(_0x488843),_0x5c9d7c=_0x4855c4['panelView']['children'],_0x3beeaf=new te(_0x488843),_0x41ecd7=new _0x480b9c(_0x488843),_0x48a15b=new _0x592f60(_0x488843),_0x10a0e5=new _0x480b9c(_0x488843),_0x2ae8e0=new _0x592f60(_0x488843);return _0x4855c4['bind']('isEnabled')['to'](_0x5318ce,'isReady',_0x5318ce,'isEnabled',_0x2981e3,'isReadOnly',(_0x25887a,_0x487944,_0x6ec096)=>_0x25887a&&_0x487944&&!_0x6ec096),_0x4855c4['buttonView']['set']({'icon':_0x2a0955['history'],'label':m(_0x488843,'Revision\x20history'),'tooltip':!0x0}),_0x48a15b['set']({'label':m(_0x488843,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x48a15b['bind']('isEnabled')['to'](_0x5318ce,'isReady',_0x5318ce,'isEnabled',_0x2981e3,'isReadOnly',(_0x5c1d24,_0x3b35a9,_0x4b96c8)=>_0x5c1d24&&_0x3b35a9&&!_0x4b96c8),_0x48a15b['on']('execute',()=>this['_showDialog']()),_0x2ae8e0['set']({'label':m(_0x488843,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x2ae8e0['bind']('isEnabled')['to'](_0x5318ce,'isReady',_0x2981e3,'isReadOnly',(_0x6118e1,_0x4a55ae)=>_0x6118e1&&!_0x4a55ae),_0x2ae8e0['on']('execute',()=>{_0x2981e3['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x4855c4['isOpen']=!0x1,_0x2981e3['editing']['view']['focus']();}),_0x41ecd7['children']['add'](_0x48a15b),_0x10a0e5['children']['add'](_0x2ae8e0),_0x3beeaf['role']='menu',_0x3beeaf['items']['addMany']([_0x41ecd7,_0x10a0e5]),_0x5c9d7c['add'](_0x3beeaf),_0x4855c4;}),_0x2981e3['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x3c1603=this['editor'],_0x1c5e28=_0x3c1603['locale'],_0x2a99a1=new _0x403ef9(_0x1c5e28),_0x337169=new _0x6c3aea(_0x1c5e28);_0x2a99a1['buttonView']['set']({'icon':_0x2a0955['history'],'label':m(_0x1c5e28,'Revision\x20history')});const _0x4bed19=new _0x4a4247(_0x1c5e28,_0x2a99a1),_0x11a7a8=new _0x39a183(_0x1c5e28);_0x11a7a8['set']({'label':m(_0x1c5e28,'Save\x20current\x20revision')}),_0x11a7a8['delegate']('execute')['to'](_0x2a99a1),_0x11a7a8['on']('execute',()=>{this['_showDialog']();}),_0x4bed19['children']['add'](_0x11a7a8),_0x337169['items']['add'](_0x4bed19);const _0x3cea7d=new _0x4a4247(_0x1c5e28,_0x2a99a1),_0x559377=new _0x39a183(_0x1c5e28);return _0x559377['set']({'label':m(_0x1c5e28,'Open\x20revision\x20history')}),_0x559377['delegate']('execute')['to'](_0x2a99a1),_0x559377['on']('execute',()=>{_0x3c1603['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x3cea7d['children']['add'](_0x559377),_0x337169['items']['add'](_0x3cea7d),_0x2a99a1['panelView']['children']['add'](_0x337169),_0x2a99a1;}['_showDialog'](){const _0x56d5f2=this['editor'],_0x5f21cc=_0x56d5f2['locale'],_0x1ee9f8=_0x56d5f2['plugins']['get']('Dialog'),_0x25cdf4=_0x56d5f2['plugins']['get']('RevisionTracker');function _0x17f523(_0x413296){_0x56d5f2['config']['get']('revisionHistory.requireRevisionName')&&''===_0x413296['revisionName']?_0x413296['revisionNameInputView']['errorText']=m(_0x5f21cc,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x56d5f2['plugins']['get'](l)['saveRevision']({'name':_0x413296['revisionName']}),_0x1ee9f8['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x17f523(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x1ee9f8['show']({'id':'revisionSave','title':m(_0x5f21cc,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x56d5f2['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x1ee9f8['hide']()},{'label':m(_0x56d5f2['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0xc4d27e){_0xc4d27e['bind']('isEnabled')['to'](_0x25cdf4,'isReady',_0x25cdf4,'isEnabled',_0x56d5f2,'isReadOnly',(_0x3482c4,_0x3ad887,_0x2cc742)=>_0x3482c4&&_0x3ad887&&!_0x2cc742);},'onExecute':()=>_0x17f523(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x58ca41=this['editor'],_0x73b9af=_0x58ca41['locale'];this['_saveRevisionFormView']=new ns(_0x73b9af,_0x58ca41['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x5772c9{['changeId'];['_model'];constructor(_0x2f4058,_0x5280c3){super(_0x2f4058),this['_model']=_0x5280c3,this['changeId']=_0x5280c3['id'];const _0x57f73a=this['bindTemplate'],_0x249f70=m(_0x2f4058,_0x5280c3['data']['isSuggestion']?'Suggested\x20by':'add'==_0x5280c3['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x5280c3['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x57f73a['to']('type',_0x4d8768=>'ck-revision-change__'+_0x4d8768)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x249f70}]},{'text':'\x20'+_0x5280c3['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x36e39d(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x3f692f){super(),this['id']=_0x3f692f['id']||_0x3ad3eb(),this['author']=_0x3f692f['author'],this['type']=_0x3f692f['type'],this['data']=_0x3f692f['data']||{},this['rootName']=_0x3f692f['rootName'],this['set']('createdAt',_0x3f692f['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x1cd1d1,_0x2b3e75){this['newRevisionId']=_0x1cd1d1,this['oldRevisionId']=_0x2b3e75,this['changes']=new _0x29973f();}['_setChanges'](_0x22b2df){for(const _0x1b226e of _0x22b2df)this['changes']['add'](_0x1b226e);}}const Y={'c':_0x42cb6a,'a':_0x350582,'e':_0x10b861,'r':_0x3b8104,'u':_0x15ead0};class d extends _0x2ac9a6{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x2e1203,_0x5638ee,j];}constructor(_0x2a0197){super(_0x2a0197),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x29518d,_0xcb9297,_0x97250)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x24a770=>{for(const _0x32ef52 of this['editor']['editing']['view']['document']['roots'])_0x97250?_0x24a770['removeClass']('ck-editor__editable__overlay',_0x32ef52):_0x24a770['addClass']('ck-editor__editable__overlay',_0x32ef52);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x393abd=>null!==_0x393abd),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x57fc79,_0x15d8d3,_0x7a8c8d)=>_0x57fc79&&_0x7a8c8d?_0x15d8d3['changes']['getIndex'](_0x7a8c8d):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x42c092,_0x5cefaa)=>_0x42c092?_0x5cefaa['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x5638ee);}['init'](){const _0x233a96=this['editor'],_0x3eefcf=new yt(_0x233a96,{'direction':'backward'}),_0x24a54c=new yt(_0x233a96,{'direction':'forward'});(_0x233a96['commands']['add']('showPreviousChange',_0x3eefcf),_0x233a96['commands']['add']('showNextChange',_0x24a54c),_0x233a96['commands']['add']('restoreRevision',new _t(_0x233a96)),this['on']('change:numberOfChanges',()=>{_0x3eefcf['refresh'](),_0x24a54c['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x233a96['enableReadOnlyMode']('revision-viewer'),_0x233a96['plugins']['has']('WidgetToolbarRepository'))&&_0x233a96['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x508452){await this['loadRevisionData'](_0x508452);const _0x356b59={};for(const _0x4f69b2 in _0x508452['diffData']){if(_0x508452['diffData'][_0x4f69b2]['attachChange']&&!_0x508452['diffData'][_0x4f69b2]['attachChange']['isAttached'])continue;const _0xf393d0=this['_removeRevisionMarkers'](JSON['parse'](_0x508452['diffData'][_0x4f69b2]['insertions'])),_0x32c5ee=this['editor']['editing']['view']['document'],_0x23ee41=new _0x255fee(_0x32c5ee,_0xf393d0['map'](_0x19d20a=>this['_getViewObj'](_0x19d20a)));this['editor']['data']['processor']['useFillerType']('marked'),_0x356b59[_0x4f69b2]=this['editor']['data']['processor']['toData'](_0x23ee41),this['editor']['data']['processor']['useFillerType']('default');}return _0x356b59;}async['getRevisionRootsAttributes'](_0xc1da24){await this['loadRevisionData'](_0xc1da24);const _0x4ed8e6={};for(const _0x48ce72 in _0xc1da24['diffData'])_0xc1da24['diffData'][_0x48ce72]['attachChange']&&!_0xc1da24['diffData'][_0x48ce72]['attachChange']['isAttached']||(_0x4ed8e6[_0x48ce72]=_0xc1da24['diffData'][_0x48ce72]['attributesAfter']||{});return _0x4ed8e6;}['_removeRevisionMarkers'](_0x551e1e){return(_0x551e1e=_0x551e1e['filter'](_0x5bf460=>!_0x5bf460['name']||'revision-start'!==_0x5bf460['name']&&'revision-end'!==_0x5bf460['name']))['forEach'](_0x3bab58=>{'string'!=typeof _0x3bab58&&(_0x3bab58['children']=this['_removeRevisionMarkers'](_0x3bab58['children']),_0x3bab58['attributes']=_0x3bab58['attributes']['filter'](_0x12f5f5=>!_0x12f5f5[0x0]['startsWith']('data-revision-')));}),_0x551e1e;}async['compare'](_0x573748,_0x3ece44,_0xdacca8=!0x1){if(!this['isEnabled'])return;const _0x55db86=this['diff'],_0x42a254=this['repository'],_0x16266b='string'==typeof _0x573748?_0x42a254['getRevision'](_0x573748):_0x573748,_0x4f32be='string'==typeof _0x3ece44?_0x42a254['getRevision'](_0x3ece44):_0x3ece44,_0x5a5a5c=_0x16266b['id'],_0x2274ed=_0x4f32be?_0x4f32be['id']:null;if(!_0xdacca8&&this['diff']&&this['diff']['newRevisionId']===_0x5a5a5c&&this['diff']['oldRevisionId']===_0x2274ed)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x5a5a5c,_0x2274ed);const _0x1215ef=this['_getRevisionsRange'](_0x16266b,_0x4f32be,!0x0)['map'](_0x7f9bef=>this['loadRevisionData'](_0x7f9bef));return _0x1215ef['push'](new Promise(_0x45160e=>{setTimeout(_0x45160e,0x14);})),Promise['all'](_0x1215ef)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x7d24ab=this['_getDiff'](_0x5a5a5c,_0x2274ed);for(const _0x334d72 of _0x7d24ab['changes'])this['_changeIdToChange']['set'](_0x334d72['id'],_0x334d72);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3e84c4=>{for(const _0x10431a of this['editor']['model']['document']['getRootNames']())_0x3e84c4['detachRoot'](_0x10431a);for(const _0xb368b6 of Object['keys'](_0x7d24ab['model'])){const _0x5122ca=_0x3e84c4['addRoot'](_0xb368b6);for(const _0x361699 of Object['keys'](_0x7d24ab['attributes'][_0xb368b6]))_0x3e84c4['setAttribute'](_0x361699,_0x7d24ab['attributes'][_0xb368b6][_0x361699],_0x5122ca);_0x3e84c4['insert'](_0x7d24ab['model'][_0xb368b6],_0x5122ca,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x7d24ab['changes'])),this['isReady']=!0x0;})['catch'](_0x4b664b=>{console['error'](_0x4b664b),this['_cleanUp'](),_0x55db86&&(this['diff']=_0x55db86),this['isReady']=!0x0;});}['addRevisionData'](_0x50ffef,_0x5db2d8){const _0x44b0f1=this['repository']['createRevision'](_0x50ffef);return _0x44b0f1['on']('_update',(_0x1961d4,_0x286347,_0x399396)=>_0x5db2d8(_0x286347,_0x399396,_0x44b0f1)),this['repository']['addRevision'](_0x44b0f1),_0x44b0f1;}['loadRevisionData'](_0x4dfa3a){if(!_0x4dfa3a||_0x4dfa3a['diffData'])return Promise['resolve']();{const _0x3ac9bc=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x3ac9bc,'revisionId':_0x4dfa3a['id']})['then'](_0x599a7e=>{_0x4dfa3a['_update']({'diffData':_0x599a7e['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5673ed=>{for(const _0x31e5af of this['editor']['model']['document']['getRootNames']())_0x5673ed['detachRoot'](_0x31e5af);});}['_sortAndFilterDiffChanges'](_0x29e40e){const _0x52cfae=[],_0x34ae3d=new Map();for(const _0x259f49 of this['editor']['model']['document']['getRootNames']()){const _0x103355=this['editor']['editing']['view']['getDomRoot'](_0x259f49);if(!_0x103355)continue;const _0x4a6060=_0x103355['getClientRects']()['item'](0x0);_0x4a6060&&(_0x52cfae['push'](_0x259f49),_0x34ae3d['set'](_0x259f49,_0x4a6060));}return _0x52cfae['sort']((_0x424f7f,_0x226dda)=>{const _0x46be6c=_0x34ae3d['get'](_0x424f7f),_0x5a4aa1=_0x34ae3d['get'](_0x226dda);return _0x46be6c['y']-_0x5a4aa1['y']||_0x46be6c['x']-_0x5a4aa1['x'];}),(_0x29e40e=_0x29e40e['filter'](_0x5ca321=>_0x52cfae['includes'](_0x5ca321['rootName'])))['sort']((_0x2fc0a9,_0x3dd867)=>_0x52cfae['indexOf'](_0x2fc0a9['rootName'])-_0x52cfae['indexOf'](_0x3dd867['rootName'])),_0x29e40e;}['_makeTape'](_0xc8c93c){const _0x4b89ab=Array['from'](_0xc8c93c['markers'])['filter'](([_0x1bfddf,_0x28a9df])=>_0x1bfddf['startsWith']('revision:')&&!_0x28a9df['isCollapsed']),_0xadb46f=Array['from'](this['editor']['model']['createRangeIn'](_0xc8c93c)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x4b89ab['length'])for(const _0xbe3ada of _0xadb46f){const [_0x232980,_0x47e3a0]=_0x4b89ab[0x0],[,_0x1f506e,_0xac3e67]=_0x232980['split'](':');if(_0x47e3a0['end']['isEqual'](_0xbe3ada['nextPosition'])&&_0x4b89ab['shift'](),(_0xbe3ada['previousPosition']['isEqual'](_0x47e3a0['start'])||_0xbe3ada['previousPosition']['isAfter'](_0x47e3a0['start']))&&('insertion'==_0x1f506e?_0xbe3ada['isAdded']={'userId':_0xac3e67}:'deletion'==_0x1f506e&&(_0xbe3ada['isRemoved']={'userId':_0xac3e67})),0x0==_0x4b89ab['length'])break;}return _0xadb46f;}['_refreshStartEndIndex'](_0x551f08){const _0x5b6786=new Map();for(let _0x2b105e=0x0;_0x2b105e<_0x551f08['length'];_0x2b105e++)'text'===_0x551f08[_0x2b105e]['type']?(_0x551f08[_0x2b105e]['item']['startIndex']=_0x2b105e,_0x551f08[_0x2b105e]['item']['endIndex']=_0x2b105e):('elementStart'===_0x551f08[_0x2b105e]['type']?_0x551f08[_0x2b105e]['item']['startIndex']=_0x2b105e:'elementEnd'===_0x551f08[_0x2b105e]['type']&&(_0x551f08[_0x2b105e]['item']['endIndex']=_0x2b105e),_0x5b6786['set'](_0x551f08[_0x2b105e]['id'],_0x2b105e));for(const _0x2b9e31 of _0x5b6786['values']())'elementStart'===_0x551f08[_0x2b9e31]['type']?_0x551f08[_0x2b9e31]['item']['endIndex']=_0x5b6786['get'](_0x551f08[_0x2b9e31]['pairId']):'elementEnd'===_0x551f08[_0x2b9e31]['type']&&(_0x551f08[_0x2b9e31]['item']['startIndex']=_0x5b6786['get'](_0x551f08[_0x2b9e31]['pairId']));}['_processTape'](_0x3fc5d1){for(let _0x36da8e=0x0;_0x36da8e<_0x3fc5d1['length'];_0x36da8e++){if('elementStart'===_0x3fc5d1[_0x36da8e]['type'])_0x3fc5d1[_0x36da8e]['item']['startIndex']=_0x36da8e;else{if('elementEnd'===_0x3fc5d1[_0x36da8e]['type']){_0x3fc5d1[_0x36da8e]['item']['endIndex']=_0x36da8e;const _0x5eff7d=_0x3fc5d1[_0x36da8e]['item']['startIndex'];_0x3fc5d1[_0x5eff7d]['pairId']=_0x3fc5d1[_0x36da8e]['id'],_0x3fc5d1[_0x36da8e]['pairId']=_0x3fc5d1[_0x5eff7d]['id'];}else _0x3fc5d1[_0x36da8e]['item']['startIndex']=_0x36da8e,_0x3fc5d1[_0x36da8e]['item']['endIndex']=_0x36da8e,_0x3fc5d1[_0x36da8e]['pairId']=null;}_0x3fc5d1[_0x36da8e]['markersStart']||(_0x3fc5d1[_0x36da8e]['markersStart']=[],_0x3fc5d1[_0x36da8e]['markersEnd']=[]);}}['_markInsertions'](_0x539028,_0xe146fd){const _0x4090c7=_0x539028['filter'](_0x529618=>!_0x529618['isAdded']);for(let _0x1a3fb3=0x0;_0x1a3fb3<_0xe146fd['length'];_0x1a3fb3++)_0xe146fd[_0x1a3fb3]['isAdded']&&(_0x4090c7[_0x1a3fb3]['isAdded']=_0xe146fd[_0x1a3fb3]['isAdded']);}['_makeModelFromViewString'](_0x147f3a){const _0x2b01b9=JSON['parse'](_0x147f3a),_0x319bf4=this['editor']['editing']['view']['document'],_0xb84444=new _0x255fee(_0x319bf4,_0x2b01b9['map'](_0x45dfb3=>this['_getViewObj'](_0x45dfb3)));return this['editor']['data']['toModel'](_0xb84444);}['_getViewObj'](_0x259011){const _0x46ba74=this['editor']['editing']['view']['document'];if('string'==typeof _0x259011)return new _0x2c3a74(_0x46ba74,_0x259011);{const _0x43e1e5=_0x259011['children']['map'](_0x36c288=>this['_getViewObj'](_0x36c288));return new(Y[_0x259011['type']]||_0x1ad019)(_0x46ba74,_0x259011['name'],_0x259011['attributes'],_0x43e1e5);}}['_getDiff'](_0x20f078,_0x3e8ca9=null){const _0x32974d=this['repository']['getRevision'](_0x20f078),_0x3f4fc6=_0x3e8ca9?this['repository']['getRevision'](_0x3e8ca9):null,_0x40b684=this['_getRevisionsRange'](_0x32974d,_0x3f4fc6),_0x1827e7=_0x40b684[_0x40b684['length']-0x1],_0x5e24aa=new Map(),_0x2440b6={'model':{},'attributes':{},'changes':[]},_0x51ad6c=new Set(),_0x164faa=new Map();for(let _0x134948=_0x40b684['length']-0x1;_0x134948>=0x0;_0x134948--){const _0x56a91b=_0x40b684[_0x134948];for(const _0x5b6d33 of Object['keys'](_0x56a91b['diffData']))if(_0x56a91b['diffData'][_0x5b6d33]['attachChange']){const _0x1a5cca=_0x56a91b['diffData'][_0x5b6d33]['attachChange'];_0x1a5cca['isAttached']?(_0x51ad6c['add'](_0x5b6d33),_0x164faa['has'](_0x5b6d33)&&_0x164faa['get'](_0x5b6d33)['userId']==_0x1a5cca['userId']?_0x164faa['delete'](_0x5b6d33):_0x164faa['set'](_0x5b6d33,_0x1a5cca)):_0x164faa['has'](_0x5b6d33)?(_0x51ad6c['delete'](_0x5b6d33),_0x164faa['delete'](_0x5b6d33)):(_0x51ad6c['add'](_0x5b6d33),_0x164faa['set'](_0x5b6d33,_0x1a5cca));}else _0x51ad6c['add'](_0x5b6d33);}for(const _0x4c6dcd of _0x51ad6c){const _0x4e0fd4=_0x164faa['has'](_0x4c6dcd)&&!_0x164faa['get'](_0x4c6dcd)['isAttached'];let _0x23b366=_0x4e0fd4?_0x40b684['length']-0x1:0x0;const _0x78e065=_0x4e0fd4?-0x1:0x1;for(;_0x40b684[_0x23b366];){const _0x4e9ebe=_0x40b684[_0x23b366];if(_0x4e9ebe['diffData'][_0x4c6dcd]){const _0x2eb2e8=_0x4e0fd4?_0x4e9ebe['diffData'][_0x4c6dcd]['attributesBefore']:_0x4e9ebe['diffData'][_0x4c6dcd]['attributesAfter'];_0x2440b6['attributes'][_0x4c6dcd]=_0x2eb2e8?_0x276782(_0x2eb2e8):{};break;}_0x23b366+=_0x78e065;}}for(const _0x4571cb of _0x40b684){_0x4571cb['model']={};for(const _0x3df305 of _0x4571cb['authors'])_0x5e24aa['set'](_0x3df305['id'],_0x3df305);for(const _0x32126c of _0x51ad6c){const _0x55b5ed=_0x4571cb['diffData'][_0x32126c]?_0x4571cb['diffData'][_0x32126c]['insertions']:'[]',_0x6440c4=_0x4571cb['diffData'][_0x32126c]?_0x4571cb['diffData'][_0x32126c]['deletions']:'[]';_0x4571cb['model'][_0x32126c]={'insertions':this['_makeModelFromViewString'](_0x55b5ed),'deletions':this['_makeModelFromViewString'](_0x6440c4)};}}for(const _0x218f73 of _0x51ad6c){let _0x44bbf0=null,_0x2791e9=0x0;const _0x1e7d2b=new Map(Array['from'](_0x32974d['model'][_0x218f73]['insertions']['markers'])['filter'](([_0x5133f7])=>!_0x5133f7['startsWith']('revision:')));let _0x31543=0x0;for(const _0x45c44f of _0x40b684){const _0x2226a8=this['_makeTape'](_0x45c44f['model'][_0x218f73]['insertions']);_0x45c44f==_0x32974d?(_0x44bbf0=_0x2226a8,_0x2791e9=_0x44bbf0['length'],_0x44bbf0['forEach'](_0x16cfac=>{_0x16cfac['id']=_0x31543++;}),this['_processTape'](_0x44bbf0)):this['_markInsertions'](_0x44bbf0,_0x2226a8);const _0x484f07=_0x44bbf0['filter'](_0x3b2293=>!_0x3b2293['isAdded'])['map'](_0x2864e7=>_0x2864e7['id']);let _0x3d0b88=0x0;const _0x39cff8=this['_makeTape'](_0x45c44f['model'][_0x218f73]['deletions']);_0x39cff8['forEach'](_0x39ebaa=>{_0x39ebaa['isRemoved']?_0x39ebaa['id']=_0x2791e9++:_0x39ebaa['id']=_0x484f07[_0x3d0b88++];}),this['_processTape'](_0x39cff8),this['_setDistance'](_0x44bbf0,'isAdded'),this['_setDistance'](_0x39cff8,'isRemoved'),_0x45c44f==_0x32974d&&this['_markMarkers'](_0x44bbf0,_0x1e7d2b),_0x44bbf0=this['_joinTapes'](_0x44bbf0,_0x39cff8),this['_refreshStartEndIndex'](_0x44bbf0),this['_setDistance'](_0x44bbf0,'isRemoved');}_0x44bbf0=_0x44bbf0['filter'](_0x8d9e28=>!(_0x8d9e28['isAdded']&&_0x8d9e28['isRemoved']));const _0x1b1d64=new Map(_0x1827e7['model'][_0x218f73]['deletions']['markers']),_0x1c6166=new Set(_0x1e7d2b['keys']());for(const _0x44f4cf of _0x1b1d64['keys']())_0x1c6166['delete'](_0x44f4cf);this['_markSuggestions'](_0x44bbf0,_0x1c6166),this['_fixObsoleteTags'](_0x44bbf0),_0x44bbf0=this['_removeMissingPairs'](_0x44bbf0),_0x44bbf0=this['_markMismatchedRemovedTags'](_0x44bbf0),_0x44bbf0=this['_removeUnsupportedChanges'](_0x44bbf0);const {root:_0x149bdf,changes:_0x261454}=this['_makeModelFromTape'](_0x44bbf0,_0x5e24aa,_0x218f73);_0x2440b6['model'][_0x218f73]=_0x149bdf;const _0xdd0aa=_0x164faa['get'](_0x218f73);if(_0xdd0aa){const _0x56f147=_0x5e24aa['get'](_0xdd0aa['userId']),_0x1cc162=new r({'author':_0x56f147,'type':_0xdd0aa['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x218f73});_0x261454['unshift'](_0x1cc162),_0x2440b6['attributes'][_0x218f73]['revisionHistoryAttachChange']=_0x1cc162['id'];}_0x2440b6['changes']=_0x2440b6['changes']['concat'](_0x261454);}return _0x2440b6;}['_markMarkers'](_0x4772a2,_0x3d3c9a){for(let _0x3fe594=0x0;_0x3fe594<_0x4772a2['length'];_0x3fe594++)for(const [_0x355c4c,_0x7b11fc]of _0x3d3c9a)_0x7b11fc['start']['isEqual'](_0x4772a2[_0x3fe594]['previousPosition'])&&_0x4772a2[_0x3fe594]['markersStart']['push'](_0x355c4c),_0x7b11fc['end']['isEqual'](_0x4772a2[_0x3fe594]['nextPosition'])&&_0x4772a2[_0x3fe594]['markersEnd']['push'](_0x355c4c);}['_joinTapes'](_0x3470aa,_0x17f2e8){let _0x505a4a=[],_0x49b84=0x0,_0x5aeed9=0x0;for(;_0x49b84<_0x3470aa['length']||_0x5aeed9<_0x17f2e8['length'];){const _0x3ba918=_0x3470aa[_0x49b84]||{},_0x50aee7=_0x17f2e8[_0x5aeed9]||{};if(_0x3ba918['id']==_0x50aee7['id'])_0x49b84++,_0x5aeed9++,_0x505a4a['push'](_0x3ba918);else{if(_0x50aee7['isRemoved']&&_0x3ba918['isAdded']){const {commonTape:_0x3fc227,iEnd:_0x4971dc,jEnd:_0x5d5d0c}=this['_threeWayMerge'](_0x3470aa,_0x49b84,_0x17f2e8,_0x5aeed9);_0x505a4a=_0x505a4a['concat'](_0x3fc227),_0x49b84=_0x4971dc,_0x5aeed9=_0x5d5d0c;}else _0x50aee7['isRemoved']?(_0x5aeed9++,_0x505a4a['push'](_0x50aee7)):(_0x49b84++,_0x505a4a['push'](_0x3ba918));}}return _0x505a4a;}['_markSuggestions'](_0x29cba8,_0x532edf){const _0x525cbe=[];for(let _0x4974f2=0x0;_0x4974f2<_0x29cba8['length'];_0x4974f2++){for(let _0x129b48=0x0;_0x129b48<_0x29cba8[_0x4974f2]['markersStart']['length'];_0x129b48++){const _0x2a0647=_0x29cba8[_0x4974f2]['markersStart'][_0x129b48];if(!_0x532edf['has'](_0x2a0647))continue;const {group:_0x406eff,type:_0x2434f4,authorId:_0x1e2f6f}=_0x3dd49e(_0x2a0647);'revision-suggestion'!=_0x406eff||'insertion'!=_0x2434f4&&'deletion'!=_0x2434f4||(_0x525cbe['unshift']({'type':_0x2434f4,'name':_0x2a0647,'userId':_0x1e2f6f}),_0x29cba8[_0x4974f2]['markersStart']['splice'](_0x129b48,0x1),_0x129b48--);}_0x545516(_0x29cba8[_0x4974f2]);for(let _0x4c3d00=0x0;_0x4c3d00<_0x29cba8[_0x4974f2]['markersEnd']['length'];_0x4c3d00++){const _0x14597c=_0x29cba8[_0x4974f2]['markersEnd'][_0x4c3d00];if(!_0x532edf['has'](_0x14597c))continue;const {group:_0x23aef9,type:_0x17ce4b}=_0x3dd49e(_0x14597c);if('revision-suggestion'!=_0x23aef9||'insertion'!=_0x17ce4b&&'deletion'!=_0x17ce4b)continue;_0x29cba8[_0x4974f2]['markersEnd']['splice'](_0x4c3d00,0x1),_0x4c3d00--;const _0x5a2046=_0x525cbe['findIndex'](_0x5585b9=>_0x5585b9['name']==_0x14597c);_0x5a2046>-0x1&&_0x525cbe['splice'](_0x5a2046,0x1);}}function _0x3dd49e(_0x2ad965){const _0x3ba930=_0x2ad965['split'](':');return{'group':_0x3ba930[0x0],'type':_0x3ba930[0x1],'subType':_0x3ba930['length']>=0x5?_0x3ba930[0x2]:null,'id':_0x3ba930['length']<0x5?_0x3ba930[0x2]:_0x3ba930[0x3],'authorId':_0x3ba930['length']<0x5?_0x3ba930[0x3]:_0x3ba930[0x4],'markerCount':0x6==_0x3ba930['length']?_0x3ba930[0x5]:null};}function _0x545516(_0x537620){for(let _0x404046=0x0;_0x404046<_0x525cbe['length'];_0x404046++){if(_0x537620['isAdded']&&'insertion'==_0x525cbe[_0x404046]['type'])return _0x537620['isAddSuggestion']=_0x525cbe[_0x404046],void delete _0x537620['isAdded'];if(!_0x537620['isAdded']&&!_0x537620['isRemoved']&&'deletion'==_0x525cbe[_0x404046]['type'])return void(_0x537620['isRemoveSuggestion']=_0x525cbe[_0x404046]);}}}['_setDistance'](_0x4fda57,_0x4ce7b0){let _0x63ebf7=0x0,_0x32c83e=!0x1;const _0x494205=new Map();for(const _0x35cb20 of _0x4fda57)_0x35cb20[_0x4ce7b0]?_0x32c83e&&(_0x63ebf7++,_0x32c83e=!0x1):(_0x63ebf7++,_0x32c83e=!0x0),_0x494205['set'](_0x35cb20['id'],_0x63ebf7);for(let _0x527f19=0x0;_0x527f19<_0x4fda57['length'];_0x527f19++){if('isRemoved'==_0x4ce7b0&&_0x4fda57[_0x527f19]['isAdded']||'isAdded'==_0x4ce7b0&&_0x4fda57[_0x527f19]['isRemoved'])continue;if('text'==_0x4fda57[_0x527f19]['type']){_0x4fda57[_0x527f19]['distance']=0x0;continue;}const _0x1f568b=_0x494205['get'](_0x4fda57[_0x527f19]['pairId']),_0x4a97c9=_0x494205['get'](_0x4fda57[_0x527f19]['id']);_0x4fda57[_0x527f19]['distance']=_0x1f568b-_0x4a97c9;}}['_getRevisionsRange'](_0xfcf495,_0x3866aa,_0x174f89=!0x1){const _0x424158=[];let _0x49e4cb=this['repository']['getIndex'](_0xfcf495),_0xec3f0d=this['repository']['getIndex'](_0x3866aa);for(-0x1==_0xec3f0d&&(_0xec3f0d=this['repository']['_revisions']['length'],_0x174f89=!0x1);_0x49e4cb<_0xec3f0d;)_0x424158['push'](this['repository']['getRevision'](_0x49e4cb)),_0x49e4cb++;return _0x174f89&&_0x424158['push'](this['repository']['getRevision'](_0x49e4cb)),_0x424158;}['_threeWayMerge'](_0x2c9f45,_0x41fe8e,_0x44527c,_0x56ff04){const _0x1926c8=this['editor']['model']['schema'];let _0x320ea4=_0x41fe8e;for(;_0x2c9f45[_0x320ea4]&&_0x2c9f45[_0x320ea4]['isAdded'];)_0x320ea4++;let _0x4bfb67=_0x56ff04;for(;_0x44527c[_0x4bfb67]&&_0x44527c[_0x4bfb67]['isRemoved'];)_0x4bfb67++;_0x217138(_0x2c9f45,_0x41fe8e,_0x320ea4),_0x217138(_0x44527c,_0x56ff04,_0x4bfb67);const _0x377f2d=_0x44527c['slice'](_0x56ff04,_0x4bfb67)['concat'](_0x2c9f45['slice'](_0x41fe8e,_0x320ea4));return _0x377f2d['sort']((_0x2f9a8a,_0x1cd9dd)=>_0x2f9a8a['side']!=_0x1cd9dd['side']?_0x2f9a8a['side']-_0x1cd9dd['side']:_0x2f9a8a['level']!=_0x1cd9dd['level']?_0x2f9a8a['level']-_0x1cd9dd['level']:_0x2f9a8a['distance']!=_0x1cd9dd['distance']?_0x1cd9dd['distance']-_0x2f9a8a['distance']:!!_0x2f9a8a['isAdded']!=!!_0x1cd9dd['isAdded']?-0x1==_0x2f9a8a['side']||0x0==_0x2f9a8a['side']?_0x2f9a8a['isAdded']?-0x1:0x1:_0x2f9a8a['isAdded']?0x1:-0x1:_0x2f9a8a['index']-_0x1cd9dd['index']),{'commonTape':_0x377f2d,'iEnd':_0x320ea4,'jEnd':_0x4bfb67};function _0x217138(_0x10949c,_0x45f0c4,_0x39122b){let _0xec7049=-0x1,_0x19b699=Number['POSITIVE_INFINITY'],_0x508e67=!0x0;for(let _0x34dcb8=_0x45f0c4;_0x34dcb8<_0x39122b;_0x34dcb8++)if(_0x1926c8['isInline'](_0x10949c[_0x34dcb8]['item'])||(_0x508e67=!0x1),_0x10949c[_0x34dcb8]['item']['startIndex']<_0x45f0c4&&(_0xec7049=_0x34dcb8),_0x10949c[_0x34dcb8]['item']['endIndex']>=_0x39122b){_0x19b699=_0x34dcb8;break;}_0x508e67&&(_0xec7049=_0x39122b-0x1);for(let _0x2e68d0=_0x45f0c4;_0x2e68d0<_0x39122b;_0x2e68d0++)_0x10949c[_0x2e68d0]['side']=_0x2e68d0<=_0xec7049?-0x1:_0x2e68d0<_0x19b699?0x0:0x1,_0x10949c[_0x2e68d0]['index']=_0x2e68d0;let _0x26d2c0=0x0;for(let _0x44bbee=_0x45f0c4;_0x44bbee<=_0xec7049;_0x44bbee++)0x0==_0x10949c[_0x44bbee]['distance']?_0x10949c[_0x44bbee]['level']=_0x26d2c0:(_0x26d2c0++,_0x10949c[_0x44bbee]['level']=_0x26d2c0,_0x26d2c0++);for(let _0x4faad0=_0x45f0c4;_0x4faad0<_0x39122b;_0x4faad0++)0x0==_0x10949c[_0x4faad0]['side']&&(_0x10949c[_0x4faad0]['level']=_0x26d2c0);_0x26d2c0=0x0;for(let _0x42a561=_0x39122b-0x1;_0x42a561>=_0x19b699;_0x42a561--)0x0==_0x10949c[_0x42a561]['distance']?_0x10949c[_0x42a561]['level']=_0x26d2c0:(_0x26d2c0--,_0x10949c[_0x42a561]['level']=_0x26d2c0,_0x26d2c0--);}}['_fixObsoleteTags'](_0x7a16fd){const _0x5c9337=new Map(),_0xb36b0b=this['editor']['model']['schema'];for(let _0x4c2f8b=0x1;_0x4c2f8b<_0x7a16fd['length'];_0x4c2f8b++){let _0x4d1a94,_0x563c68,_0x134532;const _0x751170=_0x7a16fd[_0x4c2f8b],_0x12f78d=_0x7a16fd[_0x4c2f8b-0x1];if('text'==_0x751170['type'])continue;if(_0x751170['type']!=_0x12f78d['type'])continue;if(!_0xb36b0b['isBlock'](_0x12f78d['item'])||_0xb36b0b['isLimit'](_0x12f78d['item']))continue;if(!_0xb36b0b['isBlock'](_0x751170['item'])||_0xb36b0b['isLimit'](_0x751170['item']))continue;if((_0x7a16fd[_0x4c2f8b]['isAdded']||_0x7a16fd[_0x4c2f8b]['isAddSuggestion'])&&_0x7a16fd[_0x4c2f8b-0x1]['isRemoved'])_0x4d1a94=_0x7a16fd[_0x4c2f8b],_0x563c68=_0x7a16fd[_0x4c2f8b-0x1],_0x134532=_0x4c2f8b-0x1;else{if(!_0x7a16fd[_0x4c2f8b]['isRemoved']||!_0x7a16fd[_0x4c2f8b-0x1]['isAdded']&&!_0x7a16fd[_0x4c2f8b-0x1]['isAddSuggestion'])continue;_0x4d1a94=_0x7a16fd[_0x4c2f8b-0x1],_0x563c68=_0x7a16fd[_0x4c2f8b],_0x134532=_0x4c2f8b;}const _0x412d1a=_0x4d1a94['level']==_0x563c68['level'],_0x3d68f2=Math['abs'](_0x4d1a94['level'])<Math['abs'](_0x563c68['level'])&&0x0==_0x563c68['distance'];(_0x412d1a||_0x3d68f2)&&(_0x5c9337['set'](_0x563c68['id'],_0x4d1a94['id']),_0x7a16fd['splice'](_0x134532,0x1),_0x4c2f8b--,_0x4d1a94['isAdded']=!0x1);}for(let _0x15b2f7=0x0;_0x15b2f7<_0x7a16fd['length'];_0x15b2f7++)_0x5c9337['has'](_0x7a16fd[_0x15b2f7]['pairId'])&&(_0x7a16fd[_0x15b2f7]['pairId']=_0x5c9337['get'](_0x7a16fd[_0x15b2f7]['pairId']));}['_removeMissingPairs'](_0xa5464e){const _0x23697a=new Set(_0xa5464e['map'](_0x422b88=>_0x422b88['id']));for(let _0x338d26=0x0;_0x338d26<_0xa5464e['length'];_0x338d26++)_0x23697a['has'](_0xa5464e[_0x338d26]['pairId'])||0x0==_0xa5464e[_0x338d26]['distance']||(_0xa5464e[_0x338d26]['isIncorrect']=!0x0);return _0xa5464e['filter'](_0x5772ef=>!_0x5772ef['isIncorrect']);}['_markMismatchedRemovedTags'](_0xa5a50d){const _0xc92abd=new Set();for(let _0x5098aa=0x0;_0x5098aa<_0xa5a50d['length'];_0x5098aa++){if(_0xc92abd['has'](_0xa5a50d[_0x5098aa]['id'])&&_0xa5a50d[_0x5098aa]['isRemoved']&&(_0xa5a50d[_0x5098aa]['isIncorrect']=!0x0),_0xa5a50d[_0x5098aa]['isIncorrect'])continue;if(0x0==_0xa5a50d[_0x5098aa]['distance'])continue;if('elementStart'!=_0xa5a50d[_0x5098aa]['type'])continue;if(null==_0xa5a50d[_0x5098aa]['pairId'])continue;let _0x38c2db=_0x5098aa+0x1,_0x4a42a5=0x0;for(;_0xa5a50d[_0x38c2db]['id']!=_0xa5a50d[_0x5098aa]['pairId'];)'elementStart'==_0xa5a50d[_0x38c2db]['type']?_0x4a42a5++:'elementEnd'==_0xa5a50d[_0x38c2db]['type']&&_0x4a42a5--,_0x38c2db++;if(0x0!=_0x4a42a5){if(_0xa5a50d[_0x5098aa]['isRemoved'])_0xa5a50d[_0x5098aa]['isIncorrect']=!0x0;else{for(;_0x38c2db!=_0x5098aa;)_0xa5a50d[_0x38c2db]['isRemoved']&&0x0!=_0xa5a50d[_0x38c2db]['distance']&&(_0xa5a50d[_0x38c2db]['isIncorrect']=!0x0,_0xc92abd['add'](_0xa5a50d[_0x38c2db]['pairId'])),_0x38c2db--;}}}return _0xa5a50d['filter'](_0x17e041=>!_0x17e041['isIncorrect']);}['_removeUnsupportedChanges'](_0x5d1d52){const _0x346422=this['editor']['model']['schema'];for(let _0x48d85c=0x0;_0x48d85c<_0x5d1d52['length'];_0x48d85c++){if(!(_0x5d1d52[_0x48d85c]['isAdded']||_0x5d1d52[_0x48d85c]['isAddSuggestion']||_0x5d1d52[_0x48d85c]['isRemoved']||_0x5d1d52[_0x48d85c]['isRemoveSuggestion']))continue;if(0x0==_0x5d1d52[_0x48d85c]['distance'])continue;const _0x14a843=_0x5d1d52[_0x48d85c]['item'];_0x346422['isBlock'](_0x14a843)||_0x346422['isLimit'](_0x14a843)||(_0x5d1d52[_0x48d85c]['isAdded']&&delete _0x5d1d52[_0x48d85c]['isAdded'],_0x5d1d52[_0x48d85c]['isAddSuggestion']&&delete _0x5d1d52[_0x48d85c]['isAddSuggestion'],_0x5d1d52[_0x48d85c]['isRemoveSuggestion']&&delete _0x5d1d52[_0x48d85c]['isRemoveSuggestion'],_0x5d1d52[_0x48d85c]['isRemoved']&&(_0x5d1d52[_0x48d85c]['isIncorrect']=!0x0));}return _0x5d1d52['filter'](_0x4aeb17=>!_0x4aeb17['isIncorrect']);}['_makeModelFromTape'](_0x492b40,_0x29fcf9,_0x468b29){const _0x3cd178=new mt(),_0x141019=[],_0x4d1a22=new Map(),_0x4e39e7=this['editor']['model'],_0x18dff0=_0x4e39e7['schema'],_0x45698e=[_0x3cd178],_0x5d5fbb={},_0x5ac1b8={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1a838c=null;const _0x360732=[0x0];for(let _0x33424d=0x0;_0x33424d<_0x492b40['length'];_0x33424d++)if('elementStart'===_0x492b40[_0x33424d]['type']){_0x492b40[_0x33424d]['previousPosition']=_0x4e39e7['createPositionFromPath'](_0x3cd178,_0x360732);const _0x1b8aad=new ft(_0x492b40[_0x33424d]['item']['name'],_0x492b40[_0x33424d]['item']['getAttributes']());_0x45698e[0x0]['_appendChild'](_0x1b8aad),_0x360732['push'](0x0),_0x45698e['unshift'](_0x1b8aad),_0x492b40[_0x33424d]['nextPosition']=_0x4e39e7['createPositionFromPath'](_0x3cd178,_0x360732);}else'elementEnd'===_0x492b40[_0x33424d]['type']?(_0x45698e['shift'](),_0x492b40[_0x33424d]['previousPosition']=_0x4e39e7['createPositionFromPath'](_0x3cd178,_0x360732),_0x360732['pop'](),_0x360732[_0x360732['length']-0x1]++,_0x492b40[_0x33424d]['nextPosition']=_0x4e39e7['createPositionFromPath'](_0x3cd178,_0x360732)):(_0x492b40[_0x33424d]['previousPosition']=_0x4e39e7['createPositionFromPath'](_0x3cd178,_0x360732),_0x1a838c?_0x1a838c['_data']+=_0x492b40[_0x33424d]['item']['data']:_0x1a838c=new wt(_0x492b40[_0x33424d]['item']['data'],_0x492b40[_0x33424d]['item']['getAttributes']()),_0x492b40[_0x33424d+0x1]&&'text'===_0x492b40[_0x33424d+0x1]['type']&&_0x1a2ef8(_0x1a838c,_0x492b40[_0x33424d+0x1]['item'])||(_0x45698e[0x0]['_appendChild'](_0x1a838c),_0x1a838c=null),_0x360732[_0x360732['length']-0x1]+=_0x492b40[_0x33424d]['item']['offsetSize'],_0x492b40[_0x33424d]['nextPosition']=_0x4e39e7['createPositionFromPath'](_0x3cd178,_0x360732));for(let _0x3a4502=0x0;_0x3a4502<_0x492b40['length'];_0x3a4502++){const _0x29748c=_0x492b40[_0x3a4502]['previousPosition'],_0x1cced5=_0x492b40[_0x3a4502]['nextPosition'];for(const _0x41df91 of _0x492b40[_0x3a4502]['markersStart'])_0x4d1a22['set'](_0x41df91,{'start':_0x29748c,'end':null});_0x567866('isRemoveSuggestion',_0x3a4502,_0x29748c,_0x1cced5),_0x567866('isAddSuggestion',_0x3a4502,_0x29748c,_0x1cced5),_0x567866('isRemoved',_0x3a4502,_0x29748c,_0x1cced5),_0x567866('isAdded',_0x3a4502,_0x29748c,_0x1cced5);for(const _0x233913 of _0x492b40[_0x3a4502]['markersEnd']){_0x4d1a22['get'](_0x233913)['end']=_0x1cced5;}}for(const [_0x5eddbe,_0xf89073]of _0x4d1a22){const _0x112ce8=this['editor']['model']['createRange'](_0xf89073['start'],_0xf89073['end']);_0x3cd178['markers']['set'](_0x5eddbe,_0x112ce8);}return _0x141019['sort']((_0x514354,_0x236a4a)=>{const _0x36c4d3=_0x3cd178['markers']['get']('revision:'+_0x514354['id']),_0x339599=_0x3cd178['markers']['get']('revision:'+_0x236a4a['id']);return _0x36c4d3['start']['isBefore'](_0x339599['start'])?-0x1:_0x36c4d3['start']['isAfter'](_0x339599['start'])?0x1:_0x36c4d3['end']['isBefore'](_0x339599['end'])?-0x1:_0x36c4d3['end']['isAfter'](_0x339599['end'])?0x1:'add'===_0x514354['type']?-0x1:0x1;}),{'root':_0x3cd178,'changes':_0x141019};function _0x567866(_0x516f6c,_0x5071dd,_0x27a9e5,_0x4f995e){const _0x2c0410=!!_0x492b40[_0x5071dd][_0x516f6c],_0x3a7283=_0x2c0410?_0x492b40[_0x5071dd][_0x516f6c]['userId']:null,_0x20323b=_0x5071dd===_0x492b40['length']-0x1,_0x1a4b3d=_0x5ac1b8[_0x516f6c][0x0],_0x437638=_0x18dff0['isObject'](_0x492b40[_0x5071dd]['item']);!_0x5d5fbb[_0x516f6c]&&_0x2c0410?_0x5d5fbb[_0x516f6c]={'start':_0x27a9e5,'tapeItem':_0x492b40[_0x5071dd],'userId':_0x3a7283,'type':_0x516f6c}:_0x5d5fbb[_0x516f6c]&&!_0x2c0410?(_0x5d5fbb[_0x516f6c]['end']=_0x27a9e5,_0x378b8f(_0x5d5fbb[_0x516f6c]),_0x5d5fbb[_0x516f6c]=null):_0x5d5fbb[_0x516f6c]&&_0x2c0410&&_0x5d5fbb[_0x516f6c]['userId']!==_0x3a7283&&(_0x5d5fbb[_0x516f6c]['end']=_0x27a9e5,_0x1a4b3d&&_0x1a4b3d['userId']===_0x5d5fbb[_0x516f6c]['userId']||_0x378b8f(_0x5d5fbb[_0x516f6c]),_0x5d5fbb[_0x516f6c]={'start':_0x27a9e5,'tapeItem':_0x492b40[_0x5071dd],'userId':_0x3a7283,'type':_0x516f6c}),_0x5d5fbb[_0x516f6c]&&_0x437638&&('elementStart'!==_0x492b40[_0x5071dd]['type']||_0x1a4b3d&&_0x1a4b3d['userId']===_0x3a7283||_0x5ac1b8[_0x516f6c]['unshift']({'userId':_0x3a7283,'object':_0x492b40[_0x5071dd]['item'],'change':_0x5d5fbb[_0x516f6c]}),'elementEnd'===_0x492b40[_0x5071dd]['type']&&_0x1a4b3d&&_0x1a4b3d['object']===_0x492b40[_0x5071dd]['item']&&(_0x5ac1b8[_0x516f6c]['shift'](),_0x5d5fbb[_0x516f6c]=_0x1a4b3d['change'])),_0x5d5fbb[_0x516f6c]&&_0x20323b&&(_0x5d5fbb[_0x516f6c]['end']=_0x4f995e,_0x378b8f(_0x5d5fbb[_0x516f6c]),_0x5d5fbb[_0x516f6c]=null);}function _0x378b8f({start:_0x20d6b4,end:_0x5c73fb,tapeItem:_0x28b0a0,userId:_0x5d5361,type:_0x4588d0}){const _0x1345b8=_0x28b0a0['item'],_0x3f3b76=_0x4e39e7['schema']['isBlock'](_0x1345b8)&&!_0x4e39e7['schema']['isLimit'](_0x1345b8),_0x26c835=_0x20d6b4['nodeAfter']==_0x5c73fb['parent']&&_0x5c73fb['isAtStart'];if(_0x3f3b76&&_0x26c835)return;const _0x1924ca=_0x4e39e7['createRange'](_0x20d6b4,_0x5c73fb),_0xd23870=_0x29fcf9['get'](_0x5d5361),_0x6e41cb=new r({'author':_0xd23870,'type':'isAdded'==_0x4588d0||'isAddSuggestion'==_0x4588d0?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x4588d0||'isRemoveSuggestion'==_0x4588d0},'createdAt':new Date(),'rootName':_0x468b29});_0x141019['push'](_0x6e41cb),_0x3cd178['markers']['set']('revision:'+_0x6e41cb['id'],_0x1924ca);}function _0x1a2ef8(_0x5d72a5,_0x1980ef){const _0x134bd4=_0x5d72a5['getAttributes'](),_0xa5b1ce=_0x1980ef['getAttributes']();for(const _0x17c6ea of _0x134bd4){if(_0x17c6ea[0x1]!==_0x1980ef['getAttribute'](_0x17c6ea[0x0]))return!0x1;_0xa5b1ce['next']();}return _0xa5b1ce['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x5db348=>{const _0x4669fa=_0x5db348['markerName']['split'](':')[0x1],_0x34cb01=this['_getChangeFromId'](_0x4669fa);if(!_0x34cb01)return null;const _0x39f79d='add'==_0x34cb01['type']?'insertion':'deletion',_0xeece3e=['ck-suggestion-marker','ck-suggestion-marker-'+_0x39f79d];return _0x34cb01['data']['isSuggestion']&&_0xeece3e['push']('ck-suggestion-marker-'+_0x39f79d+'-new'),this['activeChange']==_0x34cb01&&_0xeece3e['push']('ck-suggestion-marker--active'),{'classes':_0xeece3e,'attributes':{'data-change-id':_0x4669fa}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x2fcd57=>{_0x2fcd57['on']('element:pre',(_0x2d7809,_0x1f6b17,_0x26b867)=>{const _0x4716b0=_0x1f6b17['viewItem']['getChild'](0x0);if(!_0x4716b0||!_0x4716b0['is']('element','code'))return;if(!_0x26b867['consumable']['consume'](_0x4716b0,{'attributes':['vid_start','vid_end']}))return;const _0x4b9f3b=_0x1f6b17['modelRange']['start']['nodeAfter'];_0x26b867['writer']['setAttribute']('vid_start',_0x4716b0['getAttribute']('vid_start'),_0x4b9f3b),_0x26b867['writer']['setAttribute']('vid_end',_0x4716b0['getAttribute']('vid_end'),_0x4b9f3b);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x264e45=>{_0x264e45['on']('element',(_0x2139ec,_0x413cfa,_0x3b2622)=>{if(!_0x3b2622['consumable']['consume'](_0x413cfa['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x413cfa['modelRange']['isCollapsed'])return;const _0x5cb30e=_0x413cfa['modelRange']['start']['nodeAfter'];_0x5cb30e['hasAttribute']('vid_start')||_0x5cb30e['hasAttribute']('vid')||(_0x3b2622['writer']['setAttribute']('vid_start',_0x413cfa['viewItem']['getAttribute']('vid_start'),_0x5cb30e),_0x3b2622['writer']['setAttribute']('vid_end',_0x413cfa['viewItem']['getAttribute']('vid_end'),_0x5cb30e));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x41f719=>_0x41f719['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0xb8244f,[,_0x387f92])=>{['vid_start','vid_end','vid']['includes'](_0x387f92)&&(_0xb8244f['return']=!0x0,_0xb8244f['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x4c881f=>{_0x4c881f['on']('attribute:vid',(_0x42fd68,_0x5bbf62,_0x2e6c37)=>{if('\x20'!=_0x5bbf62['item']['data']||_0x5bbf62['item']['parent']['maxOffset']>0x1)return;if(!_0x2e6c37['consumable']['consume'](_0x5bbf62['item'],_0x42fd68['name']))return;const _0x3b99cb=_0x2e6c37['writer'],_0x3faa9d=_0x2e6c37['mapper']['toViewRange'](_0x5bbf62['range']);_0x3b99cb['wrap'](_0x3faa9d,_0x3b99cb['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x337817){const _0x1eaf7d=_0x337817['plugins']['get']('RevisionViewer');return(_0x4c26db,_0xd5d502,_0x36aeed)=>{const _0x1f7928=_0xd5d502['markerName']['split'](':')[0x1],_0x579538=_0x1eaf7d['_getChangeFromId'](_0x1f7928);if(!_0x579538)return null;const _0x36033a='add'==_0x579538['type']?'split':'merge';if(!_0x36aeed['consumable']['test'](_0xd5d502['markerRange'],_0x4c26db['name']))return;const _0x4376b5=_0xd5d502['markerRange']['getWalker'](),_0xed03d1=_0xd5d502['markerRange']['start'],_0x1912df=_0x337817['model']['schema'];let _0x419dfa=null,_0x3968ca=null,_0x5221b6=!0x1,_0x1ef7a5=!0x1;for(const _0x21086b of _0x4376b5){const _0x1f6b55=_0x21086b['item'];_0x5221b6=_0x5221b6||_0x1912df['isContent'](_0x1f6b55);const _0x6a4f01=_0x36aeed['mapper']['toViewElement'](_0x1f6b55);if(_0x6a4f01&&_0x6a4f01['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x21086b['type']&&(_0x1912df['isBlock'](_0x1f6b55)&&!_0x1912df['isLimit'](_0x1f6b55)&&(_0x1f6b55['nextSibling']||_0xed03d1['isAtEnd']?_0x419dfa&&_0x419dfa['parent']==_0x1f6b55||(_0x419dfa=_0x1f6b55,_0x18c290(_0x21086b['previousPosition']),_0x1ef7a5=!0x0):_0x3968ca=_0x3968ca||_0x21086b['previousPosition']));}function _0x18c290(_0x1f7c4c){const _0x525376=_0x36aeed['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x36033a}),_0x37d9e0=_0x36aeed['mapper']['toViewPosition'](_0x1f7c4c);_0x579538['data']['isSuggestion']&&_0x36aeed['writer']['addClass']('ck-suggestion-marker-'+_0x36033a+'-new',_0x525376),_0x1eaf7d['activeChange']==_0x579538&&_0x36aeed['writer']['addClass']('ck-suggestion-marker--active',_0x525376),_0x36aeed['writer']['insert'](_0x37d9e0,_0x525376),_0x36aeed['mapper']['bindElementToMarker'](_0x525376,_0xd5d502['markerName']);}_0x5221b6||_0x1ef7a5||!_0x3968ca||_0x18c290(_0x3968ca);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x1d4c81,_0x11acc4,_0xbea048)=>{const _0x5cb84e=_0xbea048['mapper']['markerNameToElements'](_0x11acc4['markerName']);if(_0x5cb84e){for(const _0x800bc9 of _0x5cb84e)(_0x800bc9['hasClass']('ck-suggestion-marker-split')||_0x800bc9['hasClass']('ck-suggestion-marker-merge'))&&(_0xbea048['mapper']['unbindElementFromMarkerName'](_0x800bc9,_0x11acc4['markerName']),_0xbea048['writer']['remove'](_0x800bc9));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x2dec56,_0x35736e,_0x297aa2)=>{const _0x14754f=_0x35736e['markerName']['split'](':')[0x1],_0xc3f3d0=this['_getChangeFromId'](_0x14754f);if(!_0xc3f3d0)return null;const _0x5e3338='add'==_0xc3f3d0['type']?'split':'merge';if(_0x297aa2['consumable']['test'](_0x35736e['markerRange'],_0x2dec56['name']))for(const _0x3b827d of _0x35736e['markerRange']['getItems']()){if(!_0x3b827d['is']('element','softBreak'))continue;const _0x20b0e3=_0x297aa2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5e3338}),_0x52a43c=_0x297aa2['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x3b827d));_0xc3f3d0['data']['isSuggestion']&&_0x297aa2['writer']['addClass']('ck-suggestion-marker-'+_0x5e3338+'-new',_0x20b0e3),this['activeChange']==_0xc3f3d0&&_0x297aa2['writer']['addClass']('ck-suggestion-marker--active',_0x20b0e3),_0x297aa2['writer']['insert'](_0x52a43c,_0x20b0e3),_0x297aa2['mapper']['bindElementToMarker'](_0x20b0e3,_0x35736e['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x4f727b=>{for(const _0x3673f3 of this['editor']['model']['document']['getRootNames']()){const _0x115eba=this['editor']['model']['document']['getRoot'](_0x3673f3),_0x537ec9=this['editor']['editing']['view']['document']['getRoot'](_0x3673f3);if(_0x537ec9){const _0x4d1fa5=_0x115eba['getAttribute']('revisionHistoryAttachChange');if(_0x4f727b['removeAttribute']('data-change-id',_0x537ec9),_0x4f727b['removeClass']('ck-revision-history-root-add',_0x537ec9),_0x4f727b['removeClass']('ck-revision-history-root-remove',_0x537ec9),_0x4f727b['removeClass']('ck-revision-history-root--active',_0x537ec9),_0x4d1fa5){const _0x557151=this['_getChangeFromId'](_0x4d1fa5);if(!_0x557151)return null;_0x4f727b['setAttribute']('data-change-id',_0x4d1fa5,_0x537ec9),_0x4f727b['addClass']('ck-revision-history-root-'+_0x557151['type'],_0x537ec9),this['activeChange']==_0x557151&&_0x4f727b['addClass']('ck-revision-history-root--active',_0x537ec9);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x2dda15=>'revision-comment:'+_0x2dda15,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x216488=>'revision-suggestion:'+_0x216488,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x356837=>({'name':'suggestion:'+_0x356837,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x4e0ce7=>{const _0x4f9bcc=_0x4e0ce7['markerName']['split'](':')[0x1];return'insertion'!=_0x4f9bcc&&'deletion'!=_0x4f9bcc?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x4f9bcc]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x2932ca,_0x3e3742,_0x138fa7)=>{const _0x27dfb9=_0x138fa7['mapper']['markerNameToElements'](_0x3e3742['markerName']);if(_0x27dfb9){for(const _0x129a86 of _0x27dfb9)_0x129a86['is']('uiElement')&&(_0x138fa7['mapper']['unbindElementFromMarkerName'](_0x129a86,_0x3e3742['markerName']),_0x138fa7['writer']['remove'](_0x129a86));}},{'priority':'high'});}['_getChangeFromId'](_0x3cd983){return this['_changeIdToChange']['get'](_0x3cd983);}['_getViewForChange'](_0x5eea39){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x5eea39),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x4344cf,_0x15887e,_0xc90423,_0xa445a6)=>{_0xa445a6&&this['_balloon']['remove'](_0xa445a6),_0xc90423&&(this['_balloon']['add']({'view':_0xc90423,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x3edece=this['editor']['editing'],_0x3b32b9=this['_getChangeFromId'](_0xc90423['changeId']);let _0x26a34d;if(_0x3b32b9['data']['isOnRoot']){const _0x2d9631=_0x3edece['view']['getDomRoot'](_0x3b32b9['rootName']);_0x26a34d=Array['from'](_0x2d9631['getClientRects']());}else{const _0x441676=this['editor']['model']['markers']['get']('revision:'+_0xc90423['changeId']);_0x26a34d=Array['from'](_0x3edece['mapper']['markerNameToElements'](_0x441676['name']))['map'](_0x45a5b8=>_0x3edece['view']['domConverter']['mapViewToDom'](_0x45a5b8))['map'](_0x4ee489=>Array['from'](_0x4ee489['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x26a34d[0x0];return _0x26a34d['find'](_0x512666=>_0x512666['top']-0x3<=this['_activeViewTarget']['y']&&_0x512666['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x512666['left']-0x3<=this['_activeViewTarget']['x']&&_0x512666['right']+0x3>=this['_activeViewTarget']['x'])||_0x26a34d[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x385293,_0x879922,_0x455c4c,_0x42f69c)=>{this['activeView']=_0x455c4c?this['_getViewForChange'](_0x455c4c):null,this['editor']['model']['change'](()=>{const _0x29a38a=this['editor']['editing'];_0x42f69c&&(_0x42f69c['data']['isOnRoot']?_0x29a38a['view']['change'](_0x18097e=>{_0x18097e['removeClass']('ck-revision-history-root--active',_0x29a38a['view']['document']['getRoot'](_0x42f69c['rootName']));}):_0x29a38a['reconvertMarker']('revision:'+_0x42f69c['id'])),_0x455c4c&&(_0x455c4c['data']['isOnRoot']?_0x29a38a['view']['change'](_0x3732fc=>{_0x3732fc['addClass']('ck-revision-history-root--active',_0x29a38a['view']['document']['getRoot'](_0x455c4c['rootName']));}):_0x29a38a['reconvertMarker']('revision:'+_0x455c4c['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x519efc,_0x4895fb)=>{if(this['activeChange'])return;const _0x4905b0=this['_findChangeIdFromDomTarget'](_0x4895fb['target']),_0x157f19=this['_changeIdToChange']['get'](_0x4905b0);_0x157f19?(this['_activeViewTarget']={'x':_0x4895fb['domEvent']['x'],'y':_0x4895fb['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x157f19)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x174ae2,_0x1ecb85)=>{const _0x299e51=this['_findChangeIdFromDomTarget'](_0x1ecb85['target']),_0x210d82=this['_changeIdToChange']['get'](_0x299e51);_0x210d82?(this['_activeViewTarget']={'x':_0x1ecb85['domEvent']['x'],'y':_0x1ecb85['domEvent']['y']},_0x210d82===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x210d82):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x452eef){do{const _0x62d3c8=_0x452eef['getAttribute']('data-change-id');if(_0x62d3c8)return _0x62d3c8;_0x452eef=_0x452eef['parent'];}while(_0x452eef);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0xa1d0c4=>{for(const _0x233ebc of this['editor']['model']['markers'])_0xa1d0c4['removeMarker'](_0x233ebc);});}}function Z(_0x46910c,_0x367084){return(_0x2edc8b,_0x27a2db,_0x1cac8c)=>{if(!_0x1cac8c['consumable']['test'](_0x27a2db['markerRange'],_0x2edc8b['name']))return;const _0x1a337f=_0x27a2db['markerRange']['getWalker'](),_0x528bef=_0x27a2db['markerRange']['start'],_0x33e1e9=_0x46910c['model']['schema'];let _0x3ad31e=null,_0x127287=null,_0xe64cc0=!0x1,_0x37914c=!0x1;for(const _0x3aec2a of _0x1a337f){const _0x54eef4=_0x3aec2a['item'];_0xe64cc0=_0xe64cc0||_0x33e1e9['isContent'](_0x54eef4);const _0x594572=_0x1cac8c['mapper']['toViewElement'](_0x54eef4);if(_0x594572&&_0x594572['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3aec2a['type']&&(_0x33e1e9['isBlock'](_0x54eef4)&&!_0x33e1e9['isLimit'](_0x54eef4)&&(_0x54eef4['nextSibling']||_0x528bef['isAtEnd']?_0x3ad31e&&_0x3ad31e['parent']==_0x54eef4||(_0x3ad31e=_0x54eef4,_0x3953c7(_0x3aec2a['previousPosition']),_0x37914c=!0x0):_0x127287=_0x127287||_0x3aec2a['previousPosition']));}function _0x3953c7(_0x447bbd){const _0x3820dd=_0x1cac8c['mapper']['toViewPosition'](_0x447bbd),_0xb4a5c5=_0x1cac8c['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x367084});_0x1cac8c['writer']['insert'](_0x3820dd,_0xb4a5c5),_0x1cac8c['mapper']['bindElementToMarker'](_0xb4a5c5,_0x27a2db['markerName']);}_0xe64cc0||_0x37914c||!_0x127287||_0x3953c7(_0x127287);};}class _t extends _0x5e164d{constructor(_0x2d5d0f){super(_0x2d5d0f);const _0x443d9a=_0x2d5d0f['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x443d9a,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x443d9a,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x1f63e3=this['editor'],_0x3554b8=_0x1f63e3['plugins']['get'](d),_0x3a7ff8=_0x3554b8['isReady']?_0x3554b8['diff']['newRevisionId']:null;_0x1f63e3['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3a7ff8);}['refresh'](){const {isReady:_0x1be6eb,isEnabled:_0x5df7df,repository:_0x28c731,diff:_0x4e0331}=this['editor']['plugins']['get'](d),_0x28d02d=_0x4e0331&&_0x28c731['getLaterVisibleRevision'](_0x4e0331['newRevisionId']);this['isEnabled']=_0x1be6eb&&_0x5df7df&&Boolean(_0x28d02d);}}class yt extends _0x5e164d{['_step'];constructor(_0xcce644,{direction:_0x2d85ef}){super(_0xcce644);const _0x3507ee=_0xcce644['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x2d85ef?0x1:-0x1,this['listenTo'](_0x3507ee,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3507ee,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x3507ee,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x33ddc1=this['editor'],_0x2c2503=_0x33ddc1['plugins']['get'](d),{isNavigationMode:_0x513157,currentChangeNumber:_0x31f478}=_0x2c2503;let _0x2b3635;if(_0x2c2503['activeChange']=_0x513157?_0x2c2503['diff']['changes']['get'](_0x31f478+this['_step']):_0x2c2503['diff']['changes']['first'],_0x2c2503['activeChange']['data']['isOnRoot'])_0x2b3635=_0x33ddc1['editing']['view']['getDomRoot'](_0x2c2503['activeChange']['rootName']);else{const _0x500dec=_0x33ddc1['model']['markers']['get']('revision:'+_0x2c2503['activeChange']['id']);_0x2b3635=_0x4a1305(_0x33ddc1['editing'],_0x500dec);}_0x450789({'target':_0x2b3635,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0xf4ef40,currentChangeNumber:_0x4d1236,numberOfChanges:_0x5de689,isReady:_0x3313de,isEnabled:_0x4c812d}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x4c812d&&_0x3313de&&_0x5de689)&&(!_0xf4ef40||(0x1===this['_step']?_0x4d1236<_0x5de689-0x1:_0x4d1236>0x0));}}class di extends _0x5772c9{constructor(_0x408861){super(_0x408861);const _0x203943=this['bindTemplate'],_0x4c48a4=new _0x592f60(_0x408861),_0x4ec095=new _0x592f60(_0x408861);this['set']('isNavigationMode',!0x1),this['set']('isReady',!0x1),this['set']('currentChangeNumber',0x0),this['set']('numberOfChanges',0x0),this['set']('isForwardNavigationEnabled',!0x1),this['set']('isBackwardNavigationEnabled',!0x1),this['bind']('_isStatusLabelVisible')['to'](this,'isReady',this,'numberOfChanges',(_0x5d5b00,_0x462f31)=>_0x5d5b00&&_0x462f31>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x1eb3e7,_0x33b7d6,_0xf15926,_0x1c2815)=>{if(!_0x1eb3e7)return m(_0x408861,'Loading...');if(!_0xf15926)return m(_0x408861,'No\x20changes');const _0x2ae21b=m(_0x408861,'NUMBER_OF_CHANGES',_0xf15926);return _0x1c2815?m(_0x408861,'X_OF_Y_CHANGES',[_0x33b7d6+0x1,_0xf15926]):_0x2ae21b;}),_0x4c48a4['set']({'label':m(_0x408861,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x4ec095['set']({'label':m(_0x408861,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x4c48a4['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x4ec095['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x4c48a4['on']('execute',()=>this['fire']('execute','backward')),_0x4ec095['on']('execute',()=>this['fire']('execute','forward')),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-ui','ck-revision-history-ui__changes-navigation']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x203943['if']('_isStatusLabelVisible','ck-hidden',_0xa3b986=>!_0xa3b986)]},'children':[{'text':_0x203943['to']('isNavigationMode',_0x57ced7=>_0x57ced7?m(_0x408861,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x408861,'Total')+':\x20')}]},{'text':_0x203943['to']('_statusText')}]},new _0x5b4345(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x4c48a4,_0x4ec095]}]});}}const ce='ck-editor__editable__loading-overlay';class ae extends _0x2ac9a6{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x40de0c=this['editor']['editing']['view'];_0x40de0c['change'](_0x54e57e=>{for(const _0x37f382 of _0x40de0c['document']['roots'])_0x54e57e['addClass'](ce,_0x37f382);});}['hide'](){const _0x5e5a5f=this['editor']['editing']['view'];_0x5e5a5f['change'](_0x502eae=>{for(const _0x138ec9 of _0x5e5a5f['document']['roots'])_0x502eae['removeClass'](ce,_0x138ec9);});}}class g extends _0x2ac9a6{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ae];}['init'](){const _0x241ed0=this['editor'],_0xc2b830=_0x241ed0['plugins']['get'](d),_0x5b8a98=_0x241ed0['plugins']['get'](ae);_0x241ed0['ui']['componentFactory']['add']('exitToEditing',_0x41e96=>{const _0x4ab057=new _0x592f60(_0x41e96);return _0x4ab057['set']({'label':m(_0x41e96,'Back\x20to\x20editing'),'icon':_0x2a0955['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x4ab057,'execute',()=>{_0x241ed0['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x4ab057;}),_0x241ed0['ui']['componentFactory']['add']('restoreRevision',_0x5be2c1=>{const _0x147d9c=new _0x592f60(_0x5be2c1);return _0x147d9c['set']({'label':m(_0x5be2c1,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x147d9c['bind']('isEnabled')['to'](_0x241ed0['commands']['get']('restoreRevision')),this['listenTo'](_0x147d9c,'execute',()=>_0x241ed0['execute']('restoreRevision')),_0x147d9c;}),_0x241ed0['ui']['componentFactory']['add']('changesNavigation',_0x4b873e=>{const _0x548005=new di(_0x4b873e),_0x10fd03=_0x241ed0['commands']['get']('showPreviousChange'),_0x2aac18=_0x241ed0['commands']['get']('showNextChange');return _0x548005['bind']('isBackwardNavigationEnabled')['to'](_0x10fd03,'isEnabled'),_0x548005['bind']('isForwardNavigationEnabled')['to'](_0x2aac18,'isEnabled'),_0x548005['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0xc2b830),this['listenTo'](_0x548005,'execute',(_0x29cbdd,_0x220356)=>{_0x241ed0['execute']('forward'===_0x220356?'showNextChange':'showPreviousChange');}),_0x548005;}),_0x5b8a98['show'](),_0xc2b830['on']('change:isReady',(_0x5d6857,_0xc1d1f3,_0xa1df54)=>{_0xa1df54?_0x5b8a98['hide']():_0x5b8a98['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x19fbc9,_0x66f3d8){super(_0x19fbc9,_0x66f3d8);const _0x2b6965=this['bindTemplate'];this['set']({'label':m(_0x19fbc9,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x19fbc9,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x2b6965['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x3f7dfd=this['fieldView']['element'];this['_tooltipString']=_0x3f7dfd['scrollWidth']>_0x3f7dfd['clientWidth']&&_0x3f7dfd['value']||'';}}class ti extends _0x5772c9{constructor(_0x2b1a69,_0x28220c,_0x317b17){super(_0x2b1a69);const _0x3637f6=new _0x110986();_0x3637f6['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x16787e=['ck','ck-revision-history-sidebar__revision-author'];_0x317b17&&_0x16787e['push']('ck-revision-history-sidebar__revision-author_creator');const _0x3d253a=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x2b1a69,_0x317b17?'Revision\x20creator':'Revision\x20author')},'children':[_0x3637f6,_0x28220c['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x16787e},'children':_0x3d253a});}}function ni(_0x5af5e9,_0x4b5517){const _0x2d457d=_0x5af5e9['bindTemplate'],_0x27d163=_0x5af5e9['locale'],_0x170fc1=_0x22f59f(_0x27d163);_0x170fc1['panelPosition']='sw';const _0x58ce8e=function(_0x155cae,_0x37fed6){const _0x33a96=function(_0x2895d2,_0x450180){const _0x4deef8=_0x2895d2['locale'],_0x1c3179={'Compare\x20against\x20selected':m(_0x4deef8,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x4deef8,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x4deef8,'Restore\x20this\x20revision')};return _0x450180['map'](_0x4869f9=>{const _0x5c2913=_0x1c3179[_0x4869f9['name']];return _0x5c2913&&_0x5c2913!==_0x4869f9['name']&&(_0x4869f9['name']=_0x5c2913),_0x4869f9;});}(_0x155cae,_0x37fed6),_0x86ffd7=new _0x29973f();for(const _0x5ef87b of _0x33a96){const _0x31a7d3={'type':'button','model':new to({'label':_0x5ef87b['name'],'class':_0x5ef87b['class'],'withText':!0x0,'role':'menuitem','_action':_0x5ef87b['action']})};_0x31a7d3['model']['bind']('isEnabled')['to'](_0x155cae,'isActionsDropdownOpen',_0x43c179=>'function'!=typeof _0x5ef87b['isEnabled']||(!_0x43c179||_0x5ef87b['isEnabled'](_0x155cae))),_0x86ffd7['add'](_0x31a7d3);}return _0x86ffd7;}(_0x5af5e9,_0x4b5517);return _0x5af5e9['bind']('isActionsDropdownOpen')['to'](_0x170fc1,'isOpen'),_0x170fc1['buttonView']['set']({'label':m(_0x27d163,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x2a0955['threeVerticalDots']}),_0x170fc1['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x2d457d['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x2d457d['to'](_0x7ede94=>_0x7ede94['stopPropagation']())}}),_0x170fc1['on']('execute',_0x342c45=>{_0x5af5e9['isReady']&&'function'==typeof _0x342c45['source']['_action']&&_0x342c45['source']['_action'](_0x5af5e9);}),_0x50675d(_0x170fc1,_0x58ce8e,{'role':'menu'}),_0x170fc1['listenTo'](_0x5af5e9,'change:isActionsDropdownOpen',(_0x52b469,_0x2ba228,_0x239f6a)=>{if(_0x239f6a)for(const _0x5b3958 of _0x170fc1['listView']['items']){const _0x452746=_0x5b3958['children']['first'],_0x500531=_0x4b5517['find'](_0x4408d5=>_0x4408d5['action']===_0x452746['_action'])['isVisible'];_0x5b3958['isVisible']=void 0x0===_0x500531||_0x500531(_0x5af5e9);}}),_0x170fc1;}class ai extends/* #__PURE__ -- @preserve */
26
- _0x517add(_0x5772c9){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x38682d,_0x483b3f,_0x4065b5,_0x5eab40){super(_0x38682d);const _0x42c4cd=this['bindTemplate'],_0x3eeaad=function(_0x5da2b1,_0x5a678e){const _0x13fe55=Array['from'](_0x5a678e['authors'])['filter'](_0x24f7e7=>_0x24f7e7!=_0x5a678e['creator']);return _0x5a678e['creator']&&_0x13fe55['unshift'](_0x5a678e['creator']),_0x13fe55['map'](_0x47f130=>new ti(_0x5da2b1,_0x47f130,_0x47f130==_0x5a678e['creator']));}(_0x38682d,_0x483b3f);this['id']=_0x483b3f['id'],this['_revision']=_0x483b3f,this['_requireRevisionName']=_0x5eab40,this['bind']('name','createdAt')['to'](_0x483b3f),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x59cf31=>{return _0x25a26f=_0x38682d['uiLanguage'],(_0x1a557a=_0x59cf31)['toLocaleDateString'](_0x25a26f,{'month':'long','day':'numeric'})+',\x20'+_0x1a557a['toLocaleTimeString'](_0x25a26f,{'hour':'numeric','minute':'numeric'});var _0x25a26f,_0x1a557a;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x38682d,_0x172651),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x2d18f1=>_0x2d18f1||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x155dc6,_0x26423a)=>_0x155dc6&&_0x26423a),this['revisionActionsView']=_0x4065b5&&_0x4065b5['length']?ni(this,_0x4065b5):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x42c4cd['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x42c4cd['if']('isEnabled','ck-disabled',_0x30418f=>!_0x30418f),_0x42c4cd['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x42c4cd['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x42c4cd['if']('isActionsDropdownOpen','ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this['revisionNameView'],{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x42c4cd['to']('_createdAtFormatted')}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x3eeaad}]},this['revisionActionsView']],'on':{'click':_0x42c4cd['to'](_0x161955=>{_0x161955['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x45d212=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x45d212,'change',()=>{this['_requireRevisionName']&&!_0x45d212['value']||this['fire']('setName',{'id':this['id'],'name':_0x45d212['value']}),_0x45d212['value']||(_0x45d212['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function mi(_0x2e8227,_0x4fdd88){const _0x3b880b=_0x209ce7['fromJSDate'](_0x2e8227)['setLocale'](_0x4fdd88),_0x1b82fc=_0x209ce7['local'](),_0x228753=_0x1b82fc['minus']({'days':0x1})['startOf']('day');let _0x1c84fa,_0x1830d7;return _0x3b880b['hasSame'](_0x1b82fc,'day')?(_0x1c84fa=_0x3b880b['startOf']('day')['toJSDate'](),_0x1830d7=_0x3b880b['toRelativeCalendar']()):_0x3b880b['hasSame'](_0x228753,'day')?(_0x1c84fa=_0x228753['toJSDate'](),_0x1830d7=_0x3b880b['toRelativeCalendar']()):_0x3b880b['hasSame'](_0x1b82fc,'week')?(_0x1c84fa=_0x3b880b['startOf']('week')['toJSDate'](),_0x1830d7=_0x3b880b['weekdayLong']||''):_0x3b880b['hasSame'](_0x1b82fc,'year')?(_0x1c84fa=_0x3b880b['startOf']('month')['toJSDate'](),_0x1830d7=_0x3b880b['monthLong']||''):(_0x1c84fa=_0x3b880b['startOf']('year')['toJSDate'](),_0x1830d7=String(_0x3b880b['year'])),{'startDate':_0x1c84fa,'localizedPeriodName':_0x1830d7};}class vi extends _0x5772c9{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x4b7db3,_0x5a4f8f,_0x36be9d,_0x47bf87){super(_0x4b7db3);const _0x2f6b8d=mi(_0x5a4f8f,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x5a4f8f,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x36be9d,this['_requireRevisionName']=_0x47bf87,this['revisionViews']['delegate']('select')['to'](this),this['revisionViews']['delegate']('setName')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x2f6b8d}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x2c929c){const _0x38f7ac=new ai(this['locale'],_0x2c929c,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x38f7ac);}['removeRevision'](_0x232230){const _0x2e91b0=this['revisionViews']['find'](_0x10046c=>_0x10046c['id']===_0x232230['id']);this['revisionViews']['remove'](_0x2e91b0);}}class as extends _0x5772c9{constructor(_0x5f1daf){super(_0x5f1daf);const _0x2ecdfe=new _0x110986();_0x2ecdfe['content']=_0x2a0955['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x2ecdfe,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x5f1daf,'Revision\x20history')]}]});}}class li extends _0x5772c9{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x16deca,_0x347763,_0x80db8a,_0x1a60cd){super(_0x16deca);const _0x47f5a2=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x347763,this['_revisionActions']=_0x80db8a,this['_requireRevisionName']=_0x1a60cd,this['on']('select',(_0x37b74b,_0x24da36)=>{this['fire']('revisionSelected',_0x24da36);}),this['on']('setName',(_0x11857a,_0x327145)=>{this['fire']('revisionSetName',_0x327145);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x16deca),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x47f5a2['if']('isEnabled','ck-disabled',_0x2a44dc=>!_0x2a44dc)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x59a7b0 of this['_revisions'])this['_addRevision'](_0x59a7b0);this['_revisions']['on']('add',(_0x4f7b09,_0x376248)=>{this['_addRevision'](_0x376248);}),this['_revisions']['on']('remove',(_0x4de717,_0x26819b)=>{this['_removeRevision'](_0x26819b);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x455dd4=>_0x455dd4['revisionViews']['map'](_0x163113=>_0x163113))['flat']();}['selectRevision'](_0x4e15ba){for(const _0x3fb0e5 of this['revisionViews'])_0x4e15ba&&_0x4e15ba['id']===_0x3fb0e5['id']?_0x3fb0e5['select']():_0x3fb0e5['deselect']();}['highlightRevisions'](_0x2473eb){for(const _0x23bbd3 of this['revisionViews'])_0x2473eb['some'](({id:_0x453dd7})=>_0x453dd7===_0x23bbd3['id'])?_0x23bbd3['highlight']():_0x23bbd3['unhighlight']();}['_addRevision'](_0x3df65b){const _0x6fefa0=mi(_0x3df65b['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x512a94=this['timePeriodViews']['get'](0x0);_0x512a94&&_0x512a94['startDate']['getTime']()===_0x6fefa0['getTime']()||(_0x512a94=new vi(this['locale'],_0x6fefa0,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x512a94)),_0x512a94['addRevision'](_0x3df65b);}['_removeRevision'](_0x370023){const _0x488aa0=mi(_0x370023['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x488aa0)['removeRevision'](_0x370023);}['_getTimePeriodViewByStartDate'](_0x3d53af){return this['timePeriodViews']['find'](_0x56d4c1=>_0x56d4c1['startDate']['getTime']()===_0x3d53af['getTime']());}}class w extends _0x2ac9a6{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0xef5a82,uid as _0x53eca7,Collection as _0x2a7a74,logWarning as _0x5182a4,FocusTracker as _0x522651,KeystrokeHandler as _0x520ce1,scrollViewportToShowTarget as _0x58f967,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x1a50c0}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x482675,set as _0xed3ed2,unset as _0x51b6a8,isEqual as _0x276197}from'lodash-es';import{Plugin as _0x29fadc,PendingActions as _0x14dbda,icons as _0x27f629,Command as _0x4fe147,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x35981a,getMarkerDomElement as _0x54d996,ConfirmMixin as _0x5a4708,sanitizeEditorConfig as _0x6f1e03}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x3d5cd2,Element as ft,Range as vt,ViewUIElement as _0xace31e,ViewRawElement as _0x58423a,ViewEmptyElement as _0x23dd8c,ViewAttributeElement as _0x57281e,ViewContainerElement as _0xc85bb2,Position as gt,ViewText as _0x218496,ViewElement as _0x3989f9,DocumentFragment as mt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x2b16ea,injectCssTransitionDisabler as ts,submitHandler as _0x30db1c,LabeledFieldView as nt,createLabeledInputText as _0x2fc9a6,createDropdown as _0x44331d,ListView as te,ListItemView as _0x5a2ba8,ButtonView as _0xe150e,MenuBarMenuView as _0x22f8c9,MenuBarMenuListView as _0x4d12e2,MenuBarMenuListItemView as _0x253fe4,MenuBarMenuListItemButtonView as _0x541e7c,ContextualBalloon as _0x4e6d14,ToolbarSeparatorView as _0x9b3002,IconView as _0x2f4917,addListToDropdown as _0x33009b,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as ut,ToolbarView as lt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x56bb76}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
+ _0xef5a82(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x847a09){super(),this['id']=_0x847a09['id']||_0x53eca7(),this['creator']=_0x847a09['creator']||null,this['authors']=_0x847a09['authors']||[],this['diffData']=_0x847a09['diffData']||null,this['toVersion']=_0x847a09['toVersion']||0x0,this['fromVersion']=_0x847a09['fromVersion']||0x0,this['set']('name',_0x847a09['name']||''),this['set']('createdAt',_0x847a09['createdAt']||new Date()),this['set']('attributes',_0x847a09['attributes']||{});}['setName'](_0x1577e6){this['_update']({'name':_0x1577e6});}['setAttribute'](_0x2daabe,_0x32c371){const _0x4e04bc=_0x482675(this['attributes']);_0xed3ed2(_0x4e04bc,_0x2daabe,_0x32c371),this['_update']({'attributes':_0x4e04bc});}['removeAttribute'](_0x1171bf){const _0x3e4657=_0x482675(this['attributes']);_0x51b6a8(_0x3e4657,_0x1171bf),this['_update']({'attributes':_0x3e4657});}['_update'](_0x4dfd4a,_0x5ecf2b=!0x1){let _0x56c0f5=!0x1;const _0x59199f={'id':this['id']},_0x410aa4=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x488657 of _0x410aa4){const _0x3ec6ef=_0x4dfd4a[_0x488657];void 0x0!==_0x3ec6ef&&_0x3ec6ef!==this[_0x488657]&&(this[_0x488657]=_0x3ec6ef,_0x59199f[_0x488657]=_0x3ec6ef,_0x56c0f5=!0x0);}_0x56c0f5&&(_0x59199f['authors']&&(_0x59199f['authorsIds']=_0x59199f['authors']['map'](_0x19677c=>_0x19677c['id']),delete _0x59199f['authors']),this['fire']('_update',_0x59199f,_0x5ecf2b));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x438299=>_0x438299['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x29fadc{['_revisions'];static get['requires'](){return[_0x35981a];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0xc855be){super(_0xc855be),this['_revisions']=new _0x2a7a74();}['afterInit'](){!async function(_0x52b3f9){const _0x391f43=_0x14eaf6([0x53,0x55,0x65,0x67,0x74,0x64,0x51,0x7a,0x4c,0x45,0x75,0x72,0x35,0x79,0x6e,0x54,0x38,0x33,0x43,0x4b,0x57,0x52,0x77,0x6b,0x6c,0x50,0x73,0x5a,0x78,0x58,0x41,0x42,0x34,0x49,0x48,0x36,0x31,0x68,0x71,0x61,0x30,0x46,0x63,0x39,0x69,0x62,0x76,0x32,0x6f,0x6d,0x6a,0x66,0x70,0x4f,0x44,0x4a,0x56,0x59,0x47,0x4e,0x4d,0x37]),_0x512a37=0xeb829,_0x130455=0x5605ab5f,_0x5ef4a7=0x5602f49f^_0x130455,_0x54be5d=window[_0x14eaf6([0x44,0x61,0x74,0x65])][_0x14eaf6([0x6e,0x6f,0x77])](),_0x5f35a2=_0x52b3f9[_0x14eaf6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x59882c=new window[(_0x14eaf6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b23f8=>{_0x5f35a2[_0x14eaf6([0x6f,0x6e,0x63,0x65])](_0x14eaf6([0x72,0x65,0x61,0x64,0x79]),_0x3b23f8);}),_0xa47e76={[_0x14eaf6([0x6b,0x74,0x79])]:_0x14eaf6([0x45,0x43]),[_0x14eaf6([0x75,0x73,0x65])]:_0x14eaf6([0x73,0x69,0x67]),[_0x14eaf6([0x63,0x72,0x76])]:_0x14eaf6([0x50,0x2d,0x32,0x35,0x36]),[_0x14eaf6([0x78])]:_0x14eaf6([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x14eaf6([0x79])]:_0x14eaf6([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x14eaf6([0x61,0x6c,0x67])]:_0x14eaf6([0x45,0x53,0x32,0x35,0x36])},_0x45c493=_0x5f35a2[_0x14eaf6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x14eaf6([0x67,0x65,0x74])](_0x14eaf6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x199b94(){let _0xf13ac7,_0xcebac=null,_0x32c63b=null;try{if(_0x45c493==_0x14eaf6([0x47,0x50,0x4c]))return _0x14eaf6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xf13ac7=_0x29d3d8(),!_0xf13ac7)return _0x14eaf6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xf13ac7[_0x14eaf6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x32c63b=_0x1e0f87(_0xf13ac7[_0x14eaf6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xf13ac7[_0x14eaf6([0x6a,0x74,0x69])])),await _0x370f83()?_0x5b45c3()?_0x107cff()?_0x14eaf6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x162fd8()?(_0xf13ac7[_0x14eaf6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x14eaf6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xcebac=_0x1cd8f8(_0x14eaf6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xf13ac7[_0x14eaf6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x14eaf6([0x74,0x72,0x69,0x61,0x6c])&&(_0xcebac=_0x1cd8f8(_0x14eaf6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x306cbb()):_0x14eaf6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x14eaf6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x14eaf6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2f398b){return _0x14eaf6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x107cff(){const _0x19154f=[_0x14eaf6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x14eaf6([0x74,0x72,0x69,0x61,0x6c])][_0x14eaf6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf13ac7[_0x14eaf6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x54be5d/0x3e8:0xe10*_0x5ef4a7;return _0xf13ac7[_0x14eaf6([0x65,0x78,0x70])]<_0x19154f;}function _0x5b45c3(){const _0x49c4eb=_0xf13ac7[_0x14eaf6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x49c4eb)return!0x1;if(_0x49c4eb[_0x14eaf6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14eaf6([0x2a])))return!0x0;if(_0x49c4eb[_0x14eaf6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14eaf6([0x52,0x48])))return!0x0;if(_0x49c4eb[_0x14eaf6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14eaf6([0x52,0x52,0x48]))){if(_0x1f0c3a())return!0x0;if(_0xf44ab3()||_0x32b0bd())return!0x0;}return!0x1;}function _0x162fd8(){const _0x3193fb=_0xf13ac7[_0x14eaf6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3193fb||0x0==_0x3193fb[_0x14eaf6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2cb853}=new URL(window[_0x14eaf6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3193fb[_0x14eaf6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cb853))return!0x0;const _0x52c899=_0x2cb853[_0x14eaf6([0x73,0x70,0x6c,0x69,0x74])](_0x14eaf6([0x2e]));return _0x3193fb[_0x14eaf6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x305ac9=>_0x305ac9[_0x14eaf6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14eaf6([0x2a])))[_0x14eaf6([0x6d,0x61,0x70])](_0x501eec=>_0x501eec[_0x14eaf6([0x73,0x70,0x6c,0x69,0x74])](_0x14eaf6([0x2e])))[_0x14eaf6([0x73,0x6f,0x6d,0x65])](_0x56b2d8=>_0x52c899[_0x14eaf6([0x65,0x76,0x65,0x72,0x79])]((_0x3845a5,_0x5457c7)=>_0x56b2d8[_0x5457c7]===_0x3845a5||_0x56b2d8[_0x5457c7]===_0x14eaf6([0x2a])));}function _0x306cbb(){return _0xcebac&&_0x32c63b?new window[(_0x14eaf6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x298f9f,_0x3be4c4)=>{_0xcebac[_0x14eaf6([0x74,0x68,0x65,0x6e])](_0x298f9f,_0x3be4c4),_0x32c63b[_0x14eaf6([0x74,0x68,0x65,0x6e])](_0x55122b=>{_0x55122b!=_0x14eaf6([0x56,0x61,0x6c,0x69,0x64])&&_0x298f9f(_0x55122b);},_0x3be4c4);}):_0xcebac||_0x32c63b||_0x14eaf6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1e0f87(_0x39d50b,_0x2b2b11){return new window[(_0x14eaf6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19c9cf=>{if(_0x5a1332())return _0x19c9cf(_0x14eaf6([0x56,0x61,0x6c,0x69,0x64]));_0x153bdd(),_0x5f35a2[_0x14eaf6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x14eaf6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1cb024=!0x1;const _0x121fd4=_0x53eca7();function _0xe585b1(_0x1c08d3){return!!_0x1c08d3&&(typeof _0x1c08d3===_0x14eaf6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1c08d3===_0x14eaf6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1c08d3[_0x14eaf6([0x74,0x68,0x65,0x6e])]===_0x14eaf6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1c08d3[_0x14eaf6([0x63,0x61,0x74,0x63,0x68])]===_0x14eaf6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x303f47(_0x56883d){_0x31ea5a(_0x56883d)[_0x14eaf6([0x74,0x68,0x65,0x6e])](_0x5b11a8=>{if(!_0x5b11a8||_0x5b11a8[_0x14eaf6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x14eaf6([0x6f,0x6b]))return _0x14eaf6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x543ed1(_0x550dc1(_0x121fd4+_0x2b2b11))!=_0x5b11a8[_0x14eaf6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x14eaf6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x14eaf6([0x56,0x61,0x6c,0x69,0x64]);})[_0x14eaf6([0x74,0x68,0x65,0x6e])](_0xd18b8f=>(_0x2927f3(),_0xd18b8f),()=>{const _0x5a8696=_0x10bd86();return null==_0x5a8696?(_0x2927f3(),_0x14eaf6([0x56,0x61,0x6c,0x69,0x64])):_0x14eaf6(_0x54be5d-_0x5a8696>(0x72092f5f^_0x130455)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x14eaf6([0x74,0x68,0x65,0x6e])](_0x19c9cf)[_0x14eaf6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x19c9cf(_0x14eaf6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xc7ed17=0x563345df^_0x130455;function _0x2927f3(){const _0x2b6622=_0x14eaf6([0x6c,0x6c,0x63,0x74,0x2d])+_0x543ed1(_0x550dc1(_0x39d50b)),_0x358e68=_0x2e62aa(_0x543ed1(window[_0x14eaf6([0x4d,0x61,0x74,0x68])][_0x14eaf6([0x63,0x65,0x69,0x6c])](_0x54be5d/_0xc7ed17)));window[_0x14eaf6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x14eaf6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2b6622,_0x358e68);}function _0x10bd86(){const _0x297a1f=_0x14eaf6([0x6c,0x6c,0x63,0x74,0x2d])+_0x543ed1(_0x550dc1(_0x39d50b)),_0x21068b=window[_0x14eaf6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x14eaf6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x297a1f);return _0x21068b?window[_0x14eaf6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e62aa(_0x21068b),0x10)*_0xc7ed17:null;}function _0x31ea5a(_0x139015){return new window[(_0x14eaf6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x508d20,_0x20b148)=>{_0x139015[_0x14eaf6([0x74,0x68,0x65,0x6e])](_0x508d20,_0x20b148),window[_0x14eaf6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x20b148,0x56047f9f^_0x130455);});}}_0x5f35a2[_0x14eaf6([0x6f,0x6e])](_0x14eaf6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x41950f,_0x4df250)=>{if(_0x4df250[0x0]!=_0x39d50b)return _0x19c9cf(_0x14eaf6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4df250[0x1]={..._0x4df250[0x1],[_0x14eaf6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x121fd4};},{[_0x14eaf6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x14eaf6([0x68,0x69,0x67,0x68])}),_0x5f35a2[_0x14eaf6([0x6f,0x6e])](_0x14eaf6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x18de53=>{_0xe585b1(_0x18de53[_0x14eaf6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1cb024=!0x0,_0x303f47(_0x18de53[_0x14eaf6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x14eaf6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x14eaf6([0x6c,0x6f,0x77])}),_0x59882c[_0x14eaf6([0x74,0x68,0x65,0x6e])](()=>{_0x1cb024||_0x19c9cf(_0x14eaf6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5a1332(){return _0x5f35a2[_0x14eaf6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14eaf6([0x76,0x69,0x65,0x77])][_0x14eaf6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x14eaf6([0x61,0x75,0x74,0x6f]);}function _0x153bdd(){_0x5f35a2[_0x14eaf6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14eaf6([0x76,0x69,0x65,0x77])][_0x14eaf6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x14eaf6([0x61,0x75,0x74,0x6f]);}}function _0x1cd8f8(_0x2762f5){const _0x5183fe=[new window[(_0x14eaf6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ab199=>setTimeout(_0x3ab199,0x560c9593^_0x130455)),_0x59882c[_0x14eaf6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x14eaf6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xedd793=>{const _0x55325e=0x5605ab58^_0x130455,_0x4075f2=_0x52b3f9[_0x14eaf6([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x12721a(){_0x4075f2[_0x14eaf6([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x55325e&&_0xedd793();}_0x12721a(),_0x4075f2[_0x14eaf6([0x6f,0x6e])](_0x14eaf6([0x61,0x64,0x64]),_0x12721a);})),new window[(_0x14eaf6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e4f97=>{function _0x2babf2(){for(const _0x371e81 in window)if(window[_0x14eaf6([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x14eaf6([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x371e81))&&window[_0x371e81]==_0x512a37)return _0x2e4f97();_0x5f35a2[_0x14eaf6([0x73,0x74,0x61,0x74,0x65])]!=_0x14eaf6([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x14eaf6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2babf2,0x5605b8d7^_0x130455);}_0x3166b7(_0x14eaf6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x2babf2();})];return window[_0x14eaf6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x14eaf6([0x72,0x61,0x63,0x65])](_0x5183fe)[_0x14eaf6([0x74,0x68,0x65,0x6e])](()=>_0x2762f5);}async function _0x2b49df(){if(await _0x59882c,_0x3166b7(_0x14eaf6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x4fd942=_0x52b3f9[_0x14eaf6([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3a4228=_0x52b3f9[_0x14eaf6([0x67,0x65,0x74,0x45,0x61,0x72,0x6c,0x69,0x65,0x72,0x56,0x69,0x73,0x69,0x62,0x6c,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](_0x4fd942[_0x14eaf6([0x69,0x64])]),_0xa37ca6=_0xbc8923(_0x14eaf6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0xa37ca6[_0x14eaf6([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x4fd942['id'],_0x3a4228?_0x3a4228['id']:null,!0x0),_0xa37ca6[_0x14eaf6([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x14eaf6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0xa37ca6[_0x14eaf6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0xa37ca6[_0x14eaf6([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x2b5902,void(_0xa37ca6[_0x14eaf6([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x2b5902);}if(_0x3166b7(_0x14eaf6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x4bbdea=_0xbc8923(_0x14eaf6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x4bbdea[_0x14eaf6([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x14eaf6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4bbdea[_0x14eaf6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4bbdea[_0x14eaf6([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x2b5902,_0x4bbdea[_0x14eaf6([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x2b5902;}_0x5f35a2[_0x14eaf6([0x6d,0x6f,0x64,0x65,0x6c])][_0x14eaf6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2b5902,_0x5f35a2[_0x14eaf6([0x6d,0x6f,0x64,0x65,0x6c])][_0x14eaf6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2b5902,_0x5f35a2[_0x14eaf6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x14eaf6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1f0c3a(){return _0x3166b7(_0x14eaf6([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xbc8923(_0x14eaf6([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x14eaf6([0x73,0x74,0x61,0x74,0x65])]==_0x14eaf6([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xf44ab3(){return _0x3166b7(_0x14eaf6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x32b0bd(){return _0x3166b7(_0x14eaf6([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x366570(_0x4e61fa){const _0x17550e=_0x71e14();_0x5f35a2[_0x17550e]=_0x14eaf6([0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x48,0x69,0x73,0x74,0x6f,0x72,0x79,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4e61fa,_0x4e61fa[_0x14eaf6([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x14eaf6([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x71e14()]=_0x512a37),_0x4e61fa!=_0x14eaf6([0x56,0x61,0x6c,0x69,0x64])&&_0x2b49df();}function _0x71e14(){const _0x1b1f14=window[_0x14eaf6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x14eaf6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x14eaf6([0x6e,0x6f,0x77])]())[_0x14eaf6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x14eaf6([0x2e]),'');let _0x320040=_0x14eaf6([0x53]);for(let _0x9975c4=0x0;_0x9975c4<_0x1b1f14[_0x14eaf6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x9975c4+=0x2){let _0xc6b690=window[_0x14eaf6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b1f14[_0x14eaf6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x9975c4,_0x9975c4+0x2));_0xc6b690>=_0x391f43[_0x14eaf6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xc6b690-=_0x391f43[_0x14eaf6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x320040+=_0x391f43[_0xc6b690];}return _0x320040;}function _0x29d3d8(){const _0x30cb96=_0x45c493[_0x14eaf6([0x73,0x70,0x6c,0x69,0x74])](_0x14eaf6([0x2e]));if(0x3!=_0x30cb96[_0x14eaf6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x240dd7(_0x30cb96[0x1]);function _0x240dd7(_0xfbc221){const _0x48a9e3=_0x44154a(_0xfbc221);return _0x48a9e3&&_0x4e53c2()?_0x48a9e3:null;function _0x4e53c2(){const _0x3f1c97=_0x48a9e3[_0x14eaf6([0x6a,0x74,0x69])],_0xbbb54e=window[_0x14eaf6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f1c97[_0x14eaf6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f1c97[_0x14eaf6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x316d3f={..._0x48a9e3,[_0x14eaf6([0x6a,0x74,0x69])]:_0x3f1c97[_0x14eaf6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3f1c97[_0x14eaf6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x316d3f[_0x14eaf6([0x76,0x63])],_0x550dc1(_0x316d3f)==_0xbbb54e;}}}async function _0x370f83(){let _0x5f289e=!0x0;try{const _0x2fd7c0=_0x45c493[_0x14eaf6([0x73,0x70,0x6c,0x69,0x74])](_0x14eaf6([0x2e])),[_0xe4552c,_0xd1b877,_0x4c1aae]=_0x2fd7c0;return _0x1f1dd8(_0xe4552c),await _0x266e10(_0xe4552c,_0xd1b877,_0x4c1aae),_0x5f289e;}catch(_0x464000){return!0x1;}function _0x1f1dd8(_0x99da72){const _0x17791f=_0x44154a(_0x99da72);_0x17791f&&_0x17791f[_0x14eaf6([0x61,0x6c,0x67])]==_0x14eaf6([0x45,0x53,0x32,0x35,0x36])||(_0x5f289e=!0x1);}async function _0x266e10(_0x139535,_0xec9a0,_0x45bb2f){const _0x17483a=window[_0x14eaf6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x14eaf6([0x66,0x72,0x6f,0x6d])](_0x1e344f(_0x45bb2f),_0x40c3f5=>_0x40c3f5[_0x14eaf6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4c60d7=new window[(_0x14eaf6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x14eaf6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x139535+_0x14eaf6([0x2e])+_0xec9a0),_0x7ceceb=window[_0x14eaf6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x14eaf6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x7ceceb)return;const _0x33595a=await _0x7ceceb[_0x14eaf6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x14eaf6([0x6a,0x77,0x6b]),_0xa47e76,{[_0x14eaf6([0x6e,0x61,0x6d,0x65])]:_0x14eaf6([0x45,0x43,0x44,0x53,0x41]),[_0x14eaf6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x14eaf6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x14eaf6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x7ceceb[_0x14eaf6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x14eaf6([0x6e,0x61,0x6d,0x65])]:_0x14eaf6([0x45,0x43,0x44,0x53,0x41]),[_0x14eaf6([0x68,0x61,0x73,0x68])]:{[_0x14eaf6([0x6e,0x61,0x6d,0x65])]:_0x14eaf6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x33595a,_0x17483a,_0x4c60d7)||(_0x5f289e=!0x1);}}function _0x44154a(_0xd99c5d){return _0xd99c5d[_0x14eaf6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x14eaf6([0x65,0x79]))?JSON[_0x14eaf6([0x70,0x61,0x72,0x73,0x65])](_0x1e344f(_0xd99c5d)):null;}function _0x1e344f(_0x393c74){return window[_0x14eaf6([0x61,0x74,0x6f,0x62])](_0x393c74[_0x14eaf6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x14eaf6([0x2b]))[_0x14eaf6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x14eaf6([0x2f])));}function _0x550dc1(_0x537d1e){let _0x4ffdf9=0x1505;function _0x1d893a(_0x1942b9){for(let _0x27d0a7=0x0;_0x27d0a7<_0x1942b9[_0x14eaf6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x27d0a7++){const _0x1013aa=_0x1942b9[_0x14eaf6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x27d0a7);_0x4ffdf9=(_0x4ffdf9<<0x5)+_0x4ffdf9+_0x1013aa,_0x4ffdf9&=_0x4ffdf9;}}function _0x4a9cfd(_0x5d4082){Array[_0x14eaf6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5d4082)?_0x5d4082[_0x14eaf6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4a9cfd):_0x5d4082&&typeof _0x5d4082==_0x14eaf6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x14eaf6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5d4082)[_0x14eaf6([0x73,0x6f,0x72,0x74])]()[_0x14eaf6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4e4b0b,_0x16318b])=>{_0x1d893a(_0x4e4b0b),_0x4a9cfd(_0x16318b);}):_0x1d893a(window[_0x14eaf6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5d4082));}return _0x4a9cfd(_0x537d1e),_0x4ffdf9>>>0x0;}function _0x543ed1(_0x5af057){return _0x5af057[_0x14eaf6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x14eaf6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x14eaf6([0x30]));}function _0x2e62aa(_0x4e7044){return _0x4e7044[_0x14eaf6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x14eaf6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x14eaf6([0x6a,0x6f,0x69,0x6e])]('');}function _0x3166b7(_0x3cc6bb){return _0x5f35a2[_0x14eaf6([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x14eaf6([0x68,0x61,0x73])](_0x3cc6bb);}function _0xbc8923(_0x43e82f){return _0x5f35a2[_0x14eaf6([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x14eaf6([0x67,0x65,0x74])](_0x43e82f);}function _0x2b5902(){}function _0x14eaf6(_0x3d449c){return _0x3d449c['map'](_0x3ba216=>String['fromCharCode'](_0x3ba216))['join']('');}_0x366570(await _0x199b94());}(this);}['createRevision'](_0x145f68){const _0x253d07=this['editor']['plugins']['get']('Users');return new a({'id':_0x145f68['id'],'name':_0x145f68['name'],'creator':_0x145f68['creatorId']?_0x253d07['getUser'](_0x145f68['creatorId']):null,'diffData':_0x145f68['diffData']||_0x145f68['data'],'authors':_0x145f68['authorsIds']['map'](_0x20fa8b=>_0x253d07['getUser'](_0x20fa8b)),'createdAt':new Date(_0x145f68['createdAt']),'attributes':_0x145f68['attributes'],'fromVersion':_0x145f68['fromVersion'],'toVersion':_0x145f68['toVersion']});}['addRevision'](_0x371c0a,_0x1d54f4=0x0){this['_revisions']['add'](_0x371c0a,_0x1d54f4);}['getRevision'](_0x57c26e){return this['_revisions']['get'](_0x57c26e);}['getRevisions'](_0xa31120={'toJSON':!0x1}){const _0x35be52=Array['from'](this['_revisions']);return _0x35be52['reverse'](),_0xa31120['toJSON']?_0x35be52['map'](_0x3cbcee=>_0x3cbcee['toJSON']()):_0x35be52;}['getIndex'](_0x4d41e5){return this['_revisions']['getIndex'](_0x4d41e5);}['getEarlierVisibleRevision'](_0x2df00b){const [,_0x5bc1ea]=this['getRevisionsIterator'](_0x2df00b,{'direction':'earlier'});return _0x5bc1ea;}['getLaterVisibleRevision'](_0x170566){const [,_0x11f2f1]=this['getRevisionsIterator'](_0x170566,{'direction':'later'});return _0x11f2f1;}['getRevisionsInDiff'](_0x1641d2){const _0x58b53e=[];for(const _0x463ee5 of this['getRevisionsIterator'](_0x1641d2['newRevisionId']))if(_0x58b53e['push'](_0x463ee5),_0x463ee5['id']===_0x1641d2['oldRevisionId'])break;return _0x58b53e;}*['getRevisionsIterator'](_0xb28b7b,{direction:_0x5bd8e3='earlier',filter:_0x4c9d05=()=>!0x0}={}){const _0x2a481d='earlier'===_0x5bd8e3?0x1:-0x1;let _0xabac00=this['_revisions']['get'](_0xb28b7b),_0x39b696=this['getIndex'](_0xabac00);for(yield _0xabac00;_0xabac00;){if(_0x39b696+=_0x2a481d,_0xabac00=this['getRevision'](_0x39b696),!_0xabac00)return;_0x4c9d05(_0xabac00)&&(yield _0xabac00);}}}function m(_0x2eb6e1,_0x4e5323,_0x5ee364){const t=_0x2eb6e1['t'];switch(_0x4e5323){case'Revision\x20history':return t('Revision\x20history');case'Open\x20revision\x20history':return t('Open\x20revision\x20history');case'Restored':return t('Restored');case'Empty\x20document':return t('Empty\x20document');case'Initial\x20revision':return t('Initial\x20revision');case'Suggested\x20by':return t('Suggested\x20by');case'Added\x20by':return t('Added\x20by');case'Removed\x20by':return t('Removed\x20by');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Compare\x20against\x20selected':return t('Compare\x20against\x20selected');case'Name\x20this\x20revision':return t('Name\x20this\x20revision');case'Restore\x20this\x20revision':return t('Restore\x20this\x20revision');case'Back\x20to\x20editing':return t('Back\x20to\x20editing');case'Loading...':return t('Loading...');case'No\x20changes':return t('No\x20changes');case'NUMBER_OF_CHANGES':return t({'string':'%0\x20change','plural':'%0\x20changes','id':'NUMBER_OF_CHANGES'},_0x5ee364);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x5ee364);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const P={'c':_0xc85bb2,'a':_0x57281e,'e':_0x23dd8c,'r':_0x58423a,'u':_0xace31e};class l extends _0x29fadc{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x35981a,j,_0x14dbda];}constructor(_0x15762d){super(_0x15762d),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x50b6b=_0x53eca7();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x50b6b},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x318295=this['repository']['getRevision'](0x0),_0x3eb8be=_0x318295&&null===_0x318295['creator']?_0x318295:null;if(this['_continueCurrentRevision']=!!_0x3eb8be&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x41376f=this['_source']['getCurrentRevisionId'](),_0x55fb4b=this['repository']['getRevision'](_0x41376f);if(_0x55fb4b)this['_startingVersion']=_0x55fb4b['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x2f45bc=this['_source']['history']['_operations']['find'](_0x19bb24=>!_0x19bb24['_isInit']),_0x1498b7=_0x2f45bc?_0x2f45bc['baseVersion']:this['_source']['history']['version'];_0x318295?(_0x318295['toVersion']<_0x1498b7&&_0x318295['_update']({'toVersion':_0x1498b7}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x3eb8be['id'],this['_startingVersion']=_0x3eb8be['fromVersion']):(this['_startingVersion']=_0x318295['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x1498b7,this['_continueCurrentRevision']=!0x1);}}else _0x3eb8be&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x3eb8be['toVersion'],this['editor']['model']['document']['history']['version']),_0x3eb8be['fromVersion']===_0x3eb8be['toVersion']?(0x0!==_0x3eb8be['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x3eb8be['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x3eb8be['id'],this['_startingVersion']=_0x3eb8be['fromVersion'])),this['_continueCurrentRevision']||(this['_startingVersion']=this['editor']['model']['document']['version']);this['_revisionDataBuilder']['init'](this['_source']['history']),this['_createInitialRevision'](this['_startingVersion']),this['_createCurrentRevision'](this['_startingVersion']),this['adapter']&&this['sendBufferedUpdates']();}),this['bind']('isReady')['to'](this,'_isPendingUpdate',_0x36d3b9=>!_0x36d3b9),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x16ae69=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x355492;for(const _0x5e2748 in _0x16ae69){const _0x536d7b=_0x5e2748,_0x17bf19=_0x16ae69[_0x536d7b];if('revisionHistoryLicenseKeyValid'==_0x17bf19||'revisionHistoryLicenseKeyInvalid'==_0x17bf19||'revisionHistoryLicenseKeyExpired'==_0x17bf19||'revisionHistoryLicenseKeyDomainLimit'==_0x17bf19||'revisionHistoryLicenseKeyNotAllowed'==_0x17bf19||'revisionHistoryLicenseKeyEvaluationLimit'==_0x17bf19||'revisionHistoryLicenseKeyTrialLimit'==_0x17bf19||'revisionHistoryLicenseKeyUsageLimit'==_0x17bf19){delete _0x16ae69[_0x536d7b],_0x355492=_0x17bf19,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x355492&&_0x16ae69['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x355492&&_0x16ae69['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x355492&&_0x16ae69['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x355492&&_0x16ae69['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x355492&&_0x16ae69['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x355492&&_0x16ae69['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x355492&&_0x16ae69['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x413c13=this['repository']['getRevision'](0x0),_0x58da98=await this['getRevisionDocumentData'](_0x413c13),_0x565c30=await this['getRevisionRootsAttributes'](_0x413c13);this['_replaceEditorDataWithRevisionData'](_0x58da98,_0x565c30);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x3fd789){this['_source']=_0x3fd789;}async['update'](){const _0x40df67=await this['_source']['getLatestVersion']();if(_0x40df67>this['currentRevision']['toVersion']){await this['_loadState']();const _0x1b9f3a=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x40df67});_0x1b9f3a['authors']=_0x1b9f3a['authorsIds']['map'](_0x5a7f12=>this['editor']['plugins']['get']('Users')['getUser'](_0x5a7f12)),this['currentRevision']['_update'](_0x1b9f3a);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x333d8d={},_0x5d2b73=null){const _0x45874b=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x5d2b73>this['currentRevision']['toVersion']&&(_0x5d2b73=null),null===_0x5d2b73&&(_0x5d2b73=await this['_source']['getLatestVersion']());const _0x53f674=this['_getFromVersion'](_0x5d2b73),_0x107b3a=this['buildRevisionData']({'from':_0x53f674,'to':_0x5d2b73});if(this['currentRevision']['toVersion']<_0x5d2b73){const _0x430295=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x5d2b73,'to':_0x5d2b73});_0x430295['authors']=[],_0x430295['authorsIds']=[],_0x430295['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x430295,!0x0),delete _0x430295['authors'],_0x45874b['push'](_0x430295);}_0x333d8d['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x333d8d['name']=_0x333d8d['name']||null,_0x333d8d['id']=_0x333d8d['id']||_0x53eca7(),_0x333d8d={..._0x333d8d,..._0x107b3a};const _0x33efb2=this['addRevisionData'](_0x333d8d);_0x45874b['push'](_0x333d8d);const _0x5339b1=this['repository']['getIndex'](_0x33efb2);if(0x0!==_0x5339b1){const _0xb1731f=this['repository']['getRevision'](_0x5339b1-0x1);if(_0xb1731f['fromVersion']!==_0x5d2b73){const _0x4ed989=this['_revisionDataBuilder']['getData'](_0x5d2b73,_0xb1731f['toVersion']),_0x4d2292={'id':_0xb1731f['id'],'diffData':_0x4ed989['diffData'],'authorsIds':_0x4ed989['authorsIds'],'authors':_0x4ed989['authorsIds']['map'](_0x149f77=>this['editor']['plugins']['get']('Users')['getUser'](_0x149f77)),'fromVersion':_0x5d2b73};_0xb1731f===this['currentRevision']&&(_0x4d2292['createdAt']=new Date(_0x333d8d['createdAt']['getTime']()+0xa)),_0xb1731f['_update'](_0x4d2292,!0x0),delete _0x4d2292['authors'],_0x45874b['push'](_0x4d2292);}}if(this['adapter']){for(const _0xbcd7f5 of _0x45874b)this['_bufferUpdate'](_0xbcd7f5['id'],_0xbcd7f5,!0x0);this['sendBufferedUpdates']();}return _0x33efb2;}['addRevisionData'](_0x31cce4){const _0x14a402=this['repository']['createRevision'](_0x31cce4);return this['adapter']&&_0x14a402['on']('_update',(_0x5cadaa,_0x414e88,_0x2de495)=>{_0x2de495||(this['_bufferUpdate'](_0x414e88['id'],_0x414e88,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x14a402,this['_findInsertionIndex'](_0x14a402)),_0x14a402;}async['getRevisionDocumentData'](_0x24ede2){await this['_loadRevisionData'](_0x24ede2);const _0x19925e={};for(const _0x4ad522 in _0x24ede2['diffData']){if(_0x24ede2['diffData'][_0x4ad522]['attachChange']&&!_0x24ede2['diffData'][_0x4ad522]['attachChange']['isAttached'])continue;const _0x230c6c=this['_removeRevisionMarkers'](JSON['parse'](_0x24ede2['diffData'][_0x4ad522]['insertions'])),_0x34ff43=this['editor']['editing']['view']['document'],_0xb42212=new _0x3d5cd2(_0x34ff43,_0x230c6c['map'](_0x1b2f54=>C(_0x1b2f54,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x19925e[_0x4ad522]=this['editor']['data']['processor']['toData'](_0xb42212),this['editor']['data']['processor']['useFillerType']('default');}return _0x19925e;}async['getRevisionRootsAttributes'](_0x214f72){await this['_loadRevisionData'](_0x214f72);const _0x43d7c7={};for(const _0x13414a in _0x214f72['diffData'])_0x214f72['diffData'][_0x13414a]['attachChange']&&!_0x214f72['diffData'][_0x13414a]['attachChange']['isAttached']||(_0x43d7c7[_0x13414a]=_0x214f72['diffData'][_0x13414a]['attributesAfter']||{});return _0x43d7c7;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x2cbc1a=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x18db75=0x0;_0x18db75<_0x2cbc1a['length'];_0x18db75++){const _0x3f5b13=_0x2cbc1a[_0x18db75];let _0x126920=!0x1;for(const _0x16c7ec of Object['keys'](_0x3f5b13))void 0x0===_0x3f5b13[_0x16c7ec]?delete _0x3f5b13[_0x16c7ec]:'id'!==_0x16c7ec&&(_0x126920=!0x0);_0x126920||(_0x2cbc1a[_0x18db75]=null);}if(_0x2cbc1a=_0x2cbc1a['filter'](_0x3a4d6c=>null!==_0x3a4d6c),!_0x2cbc1a['length'])return;for(let _0x26c2ec=0x0;_0x26c2ec<_0x2cbc1a['length'];_0x26c2ec++){const _0x8f546a=_0x2cbc1a[_0x26c2ec];void 0x0!==_0x8f546a['fromVersion']&&void 0x0===_0x8f546a['toVersion']&&(_0x8f546a['toVersion']=this['repository']['getRevision'](_0x8f546a['id'])['toVersion']),void 0x0!==_0x8f546a['toVersion']&&void 0x0===_0x8f546a['fromVersion']&&(_0x8f546a['fromVersion']=this['repository']['getRevision'](_0x8f546a['id'])['fromVersion']);}const _0x28b140=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x2cbc1a,_0x28b140)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0xc58dcf=>{if(_0xc58dcf){for(const _0x152ead of _0xc58dcf)this['setRevisionData']({'id':_0x152ead['id'],'createdAt':_0x152ead['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x1b45b0,_0x52465b){let _0x2cd013=this['editor']['config']['get']('initialData'),_0x4db526=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2cd013){_0x2cd013={};for(const _0x18ffdb of this['editor']['model']['document']['getRootNames']())_0x2cd013[_0x18ffdb]='';}if('string'==typeof _0x2cd013&&(_0x2cd013={'main':_0x2cd013}),void 0x0===_0x4db526){_0x4db526={};for(const _0x5cebab of this['editor']['model']['document']['getRootNames']())_0x4db526[_0x5cebab]={};}let _0x6976c6=!0x1;const _0x562b17=Object['keys'](_0x2cd013),_0x493a62=Object['keys'](_0x1b45b0);for(const _0x39cbd4 of _0x562b17){if(_0x2cd013[_0x39cbd4]!==_0x1b45b0[_0x39cbd4]&&''!==_0x2cd013[_0x39cbd4]['trim']()){_0x6976c6=!0x0;break;}if(!_0x276197(_0x4db526[_0x39cbd4],_0x52465b[_0x39cbd4])&&Object['keys'](_0x4db526[_0x39cbd4])['length']>0x0){_0x6976c6=!0x0;break;}}_0x6976c6||(_0x6976c6=_0x493a62['some'](_0x5a1684=>!this['editor']['model']['document']['getRoot'](_0x5a1684))),_0x6976c6&&_0x5182a4('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2cd013,'editorRootsAttributes':_0x4db526,'revisionData':_0x1b45b0,'revisionRootsAttributes':_0x52465b}),this['editor']['config']['set']('initialData',_0x1b45b0),this['editor']['config']['set']('rootsAttributes',_0x52465b);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x509a73=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x509a73['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x22ca13){const _0x79cc4c=this['repository']['getRevisions']();_0x79cc4c['reverse']();let _0x5d618b=0x0;for(;_0x5d618b<_0x79cc4c['length'];){const _0x14a128=_0x79cc4c[_0x5d618b];if(_0x14a128===this['currentRevision']){_0x5d618b++;continue;}if(_0x14a128['id']===this['_initialRevisionId'])break;const _0x41dfdc=_0x22ca13['toVersion']-_0x14a128['toVersion']||_0x22ca13['fromVersion']-_0x14a128['fromVersion'];if(_0x41dfdc>0x0)break;if(_0x41dfdc<0x0)_0x5d618b++;else{if(!_0x22ca13['creator']&&_0x14a128['creator'])break;if(_0x14a128['creator']||!_0x22ca13['creator']){if(_0x22ca13['createdAt']>_0x14a128['createdAt'])break;_0x5d618b++;}else _0x5d618b++;}}return _0x5d618b;}['setRevisionData'](_0x2aad43){const _0x569c4f=this['repository']['getRevision'](_0x2aad43['id']);if(_0x2aad43['createdAt']&&(_0x2aad43['createdAt']=new Date(_0x2aad43['createdAt'])),_0x2aad43['authorsIds']){const _0x289eeb=this['editor']['plugins']['get']('Users');_0x2aad43['authors']=_0x2aad43['authorsIds']['map'](_0x46cbbc=>_0x289eeb['getUser'](_0x46cbbc));}_0x569c4f['_update'](_0x2aad43,!0x0);}['buildRevisionData']({revision:_0x1d5e92=null,from:_0x50eb32=null,to:_0xef7f02=null}){_0x50eb32=null!==_0x50eb32?_0x50eb32:_0x1d5e92['fromVersion'],_0xef7f02=null!==_0xef7f02?_0xef7f02:_0x1d5e92['toVersion'];const _0xe6b925=this['_revisionDataBuilder']['getData'](_0x50eb32,_0xef7f02),_0x1d58b4={'diffData':_0xe6b925['diffData'],'authorsIds':_0xe6b925['authorsIds'],'fromVersion':_0x50eb32,'toVersion':_0xef7f02};if(!_0x1d5e92||_0xef7f02!==_0x1d5e92['toVersion']){const _0x2fbc8e=_0xef7f02-0x1,_0x178b3e=this['_source']['history']['getOperation'](_0x2fbc8e);_0x1d58b4['createdAt']=_0x178b3e&&_0x178b3e['createdAt']||new Date();}if(this['_loadedStateData']&&_0x50eb32===this['_loadedStateData']['fromVersion']){for(const _0x37e384 of this['_loadedStateData']['authors'])_0x1d58b4['authorsIds']['includes'](_0x37e384['id'])||_0x1d58b4['authorsIds']['push'](_0x37e384['id']);}return _0x1d58b4;}['_loadRevisionData'](_0x56881a){if(!_0x56881a||_0x56881a['diffData'])return Promise['resolve']();{const _0x4a9c47=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x4a9c47,'revisionId':_0x56881a['id']})['then'](_0x53013f=>{_0x56881a['diffData']=_0x53013f['diffData'];});}}['_bufferUpdate'](_0x463119,_0x399a49,_0x399b4a){if(this['_bufferedUpdates']['has'](_0x463119)){const _0x1abb9e=this['_bufferedUpdates']['get'](_0x463119);_0x399a49=_0x399b4a?{..._0x1abb9e,..._0x399a49}:{..._0x399a49,..._0x1abb9e};}this['_bufferedUpdates']['set'](_0x463119,_0x399a49);}['_getFromVersion'](_0x580b7c){const _0x490d9b=this['repository']['getRevisions']();_0x490d9b['reverse'](),_0x490d9b['shift']();const _0x2cad03=_0x490d9b['find'](_0x400fc6=>_0x400fc6['toVersion']<=_0x580b7c)['toVersion'];return _0x2cad03<this['_startingVersion']?this['_startingVersion']:_0x2cad03;}['_createInitialRevision'](_0x6a6037){const _0x33cc5b=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x33cc5b)this['_initialRevisionId']=_0x33cc5b['id'];else{const _0x1755e4=!this['editor']['model']['document']['roots']['find'](_0x42d10e=>this['editor']['model']['hasContent'](_0x42d10e)),_0x4e4199=this['editor']['plugins']['get']('Users')['me']['id'],_0x53ed90=m(this['editor']['locale'],_0x1755e4?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x6a6037,'to':_0x6a6037,'id':this['_initialRevisionId'],'name':_0x53ed90,'creatorId':_0x4e4199});}}['_createCurrentRevision'](_0x92a9f9){const _0x179280=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x179280),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x92a9f9,'to':_0x92a9f9,'id':_0x179280,'name':'','creatorId':null}));}['_makeRevision']({name:_0x48c5a6,from:_0x198756,to:_0x487d89,creatorId:_0x436489,id:_0x555ace}){const _0x17d901=this['buildRevisionData']({'from':_0x198756,'to':_0x487d89});_0x17d901['name']=_0x48c5a6,_0x17d901['creatorId']=_0x436489,_0x17d901['id']=_0x555ace;const _0x17f08f=this['addRevisionData'](_0x17d901);return this['adapter']&&this['_bufferUpdate'](_0x17d901['id'],_0x17d901,!0x0),_0x17f08f;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x53a0f4){return(_0x53a0f4=_0x53a0f4['filter'](_0x4c5e64=>!_0x4c5e64['name']||'revision-start'!==_0x4c5e64['name']&&'revision-end'!==_0x4c5e64['name']))['forEach'](_0x235e8b=>{'string'!=typeof _0x235e8b&&(_0x235e8b['children']=this['_removeRevisionMarkers'](_0x235e8b['children']),_0x235e8b['attributes']=_0x235e8b['attributes']['filter'](_0x37066e=>!_0x37066e[0x0]['startsWith']('data-revision-')));}),_0x53a0f4;}}function C(_0x2c5085,_0x532b8c){const _0x44d69c=_0x532b8c['editing']['view']['document'];if('string'==typeof _0x2c5085)return new _0x218496(_0x44d69c,_0x2c5085);{const _0x607b6e=_0x2c5085['children']['map'](_0x361e20=>C(_0x361e20,_0x532b8c));return new(P[_0x2c5085['type']]||_0x3989f9)(_0x44d69c,_0x2c5085['name'],_0x2c5085['attributes'],_0x607b6e);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0xd5d607){this['editor']=_0xd5d607,this['_savedMetaData']=new Map(),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_markers']=new Map(),this['_diffRoots']=new Map(),this['_diffRootsAttributes']=new Map(),this['_baseRoots']=new Map(),this['_baseRootsAttributes']=new Map(),this['_idsRoots']=new Map(),this['_baseIdsRoots']=new Map(),this['_touched']=new Map(),this['_touchedMarkers']=new Map(),this['_touchedRoots']=new Map(),this['_revisionId']=0x1;}['init'](_0x247992){this['source']=_0x247992;const _0xcbf121=new Map(),_0x5b4afa=new Map(),_0x2e1480=this['editor']['model']['document']['roots']['map'](_0x3c8490=>_0x3c8490['rootName']);for(const _0x2d52ab of _0x2e1480){const _0x2097ac=this['editor']['model']['document']['getRoot'](_0x2d52ab),_0x32ea82=T(_0x2097ac);_0xcbf121['set'](_0x2d52ab,_0x32ea82),_0x5b4afa['set'](_0x2d52ab,Object['fromEntries'](_0x2097ac['getAttributes']()));}const _0xa8fa14=Array['from'](this['editor']['model']['markers'])['map'](_0x2f43cd=>[_0x2f43cd['name'],_0x2f43cd['getRange']()]),_0x4d031d=this['source']['version'];this['_saveMetaData'](_0x4d031d,_0xcbf121,_0xa8fa14,_0x5b4afa),this['_startingRevisionId']=this['_revisionId'];const _0x2410cc=new Map(),_0x34a60b=new Map();for(const _0x103a31 of _0x2e1480){const _0x255dd1=F(_0x103a31);_0x2410cc['set'](_0x103a31,_0x255dd1),_0x34a60b['set'](_0x103a31,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x2410cc,[],_0x34a60b);}['getData'](_0x3d86d0,_0x5b9ff8){if(this['_lastFrom']===_0x3d86d0&&this['_lastTo']<=_0x5b9ff8)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x5b9ff8,!0x0);else{if(!this['_savedMetaData']['has'](_0x3d86d0)){const _0x5c4dea=this['_getPreviousFrom'](_0x3d86d0);this['_calculateMetaData'](_0x5c4dea,_0x3d86d0,!0x1);}this['_calculateMetaData'](_0x3d86d0,_0x5b9ff8,!0x0);}return this['_lastFrom']=_0x3d86d0,this['_lastTo']=_0x5b9ff8,this['_getState']();}['loadState'](_0x99ae6f){this['_reset'](),this['_lastFrom']=_0x99ae6f['fromVersion'],this['_lastTo']=_0x99ae6f['toVersion'];for(const _0x22ea98 in _0x99ae6f['diffData']){const _0x4ff8fa=_0x99ae6f['diffData'][_0x22ea98]['attachChange'],_0x59015e=_0x482675(_0x99ae6f['diffData'][_0x22ea98]['attributesBefore'])||{},_0x5524b5=this['_makeModelFromViewString'](_0x99ae6f['diffData'][_0x22ea98]['deletions']);_0x5524b5['rootName']=_0x22ea98,_0x5524b5['_isAttached']=!_0x4ff8fa||!_0x4ff8fa['isAttached'],_0x5524b5['isAttached']=()=>_0x5524b5['_isAttached'],this['_baseRoots']['set'](_0x22ea98,_0x5524b5),this['_baseRootsAttributes']['set'](_0x22ea98,_0x59015e),_0x4ff8fa&&this['_touchedRoots']['set'](_0x22ea98,_0x4ff8fa);const _0x3a919c=this['_makeIdsRoot'](_0x5524b5);this['_baseIdsRoots']['set'](_0x22ea98,_0x3a919c);for(const [_0xb07ff6,_0x261f76]of _0x5524b5['markers']){if(!_0xb07ff6['startsWith']('revision:'))continue;const _0x232bf8=_0xb07ff6['split'](':')[0x2];for(const _0x591b52 of _0x261f76['getWalker']({'singleCharacters':!0x0})){const _0x560b3f=this['_getVidAttributeName'](_0x591b52),_0x21093d='elementEnd'==_0x591b52['type']?_0x591b52['previousPosition']['path']['slice'](0x0,-0x1):_0x591b52['previousPosition']['path'],_0x20f7bf=_0x3a919c['getNodeByPath'](_0x21093d)['getAttribute'](_0x560b3f);this['_touched']['set'](_0x20f7bf,{'userId':_0x232bf8});}}}this['_startingRevisionId']=this['_revisionId'];const _0x2b60f5=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x47ede1=>!this['_touched']['has'](_0x47ede1));let _0x45d19f=0x0;const _0x5d1647=new Map();for(const _0x9a651d in _0x99ae6f['diffData']){const _0x512195=_0x99ae6f['diffData'][_0x9a651d]['attachChange'],_0x4b076b=_0x482675(_0x99ae6f['diffData'][_0x9a651d]['attributesAfter'])||{},_0xd0bd69=this['_makeModelFromViewString'](_0x99ae6f['diffData'][_0x9a651d]['insertions']);_0xd0bd69['rootName']=_0x9a651d,_0xd0bd69['_isAttached']=!_0x512195||_0x512195['isAttached'],_0xd0bd69['isAttached']=()=>_0xd0bd69['_isAttached'],this['_diffRoots']['set'](_0x9a651d,_0xd0bd69),this['_diffRootsAttributes']['set'](_0x9a651d,_0x4b076b);const _0x28d88f=this['_makeIdsRoot'](_0xd0bd69,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x9a651d,_0x28d88f),_0x5d1647['set'](_0x9a651d,_0xd0bd69['isAttached']()?_0x4b076b:{});for(const [_0x3d39c1,_0x53a524]of _0xd0bd69['markers']){if(!_0x3d39c1['startsWith']('revision:'))continue;const _0x47fc3b=_0x3d39c1['split'](':')[0x2];for(const _0x4186b8 of _0x53a524['getWalker']({'singleCharacters':!0x0})){const _0x1d0b0c=this['_getVidAttributeName'](_0x4186b8),_0x269f04=this['_revisionId']++,_0x94b430='elementEnd'==_0x4186b8['type']?_0x4186b8['previousPosition']['path']['slice'](0x0,-0x1):_0x4186b8['previousPosition']['path'];_0x28d88f['getNodeByPath'](_0x94b430)['_setAttribute'](_0x1d0b0c,_0x269f04),this['_touched']['set'](_0x269f04,{'userId':_0x47fc3b});}}for(const _0x446296 of this['editor']['model']['createRangeIn'](_0xd0bd69)['getWalker']({'singleCharacters':!0x0})){const _0x5cd398=this['_getVidAttributeName'](_0x446296),_0x3fc53d='elementEnd'==_0x446296['type']?_0x446296['previousPosition']['path']['slice'](0x0,-0x1):_0x446296['previousPosition']['path'],_0x26937e=_0x28d88f['getNodeByPath'](_0x3fc53d);_0x26937e['getAttribute'](_0x5cd398)>0x0||_0x26937e['_setAttribute'](_0x5cd398,_0x2b60f5[_0x45d19f++]);}for(const [_0x2de24b,_0x2f965a]of _0xd0bd69['markers'])_0x2de24b['startsWith']('revision:')||this['_markers']['set'](_0x2de24b,_0x2f965a);}const _0x4611f3=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x4611f3),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4611f3,0x1));const _0x521952=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x521952),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x521952,0x1));const _0x4ddc21=Array['from'](this['_diffRoots'])['map'](([_0x2bb10d,_0x54908c])=>[_0x2bb10d,T(_0x54908c)]);this['_saveMetaData'](this['_lastTo'],_0x4ddc21,this['_markers'],_0x5d1647);}['_makeModelFromViewString'](_0xa84a05){const _0x5b30f2=JSON['parse'](_0xa84a05),_0x344378=this['editor']['editing']['view']['document'],_0x39e221=new _0x3d5cd2(_0x344378,_0x5b30f2['map'](_0x15cf2d=>C(_0x15cf2d,this['editor'])));return this['editor']['data']['toModel'](_0x39e221);}['_saveMetaData'](_0x2b0761,_0x544efa,_0x362b8d,_0x4b25d0){const _0x6cb6fe=new Map(_0x544efa),_0x338bdd=new Map(_0x482675(_0x4b25d0)),_0x383d1f=new Map();for(const [_0x2c36ff,_0x2b5cdd]of _0x362b8d)_0x383d1f['set'](_0x2c36ff,{'start':_0x2b5cdd['start']['clone'](),'end':_0x2b5cdd['end']['clone'](),'rootName':_0x2b5cdd['root']['rootName']});this['_savedMetaData']['set'](_0x2b0761,{'roots':_0x6cb6fe,'markers':_0x383d1f,'rootsAttributes':_0x338bdd});}['_removeMetaData'](_0x4c94cf){this['_savedMetaData']['delete'](_0x4c94cf);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x5b7fea,_0x886362=null){let _0x4e3e3e=null;_0x5b7fea['is']('documentFragment')||(_0x4e3e3e=new ft(_0x5b7fea['name'],{'vid_start':null===_0x886362?this['_revisionId']++:_0x886362++}));const _0x2625da=[];for(const _0x567a48 of _0x5b7fea['getChildren']())if(_0x567a48['is']('element')){_0x2625da['push'](this['_makeIdsRoot'](_0x567a48,_0x886362));const _0x5ac20c=_0x2625da[_0x2625da['length']-0x1];null!==_0x886362&&(_0x886362=_0x5ac20c['is']('element','$text')?_0x5ac20c['getAttribute']('vid')+0x1:_0x5ac20c['getAttribute']('vid_end')+0x1);}else{for(let _0xf47305=0x0;_0xf47305<_0x567a48['offsetSize'];_0xf47305++)_0x2625da['push'](new ft('$text',{'vid':null===_0x886362?this['_revisionId']++:_0x886362++}));}if(_0x5b7fea['is']('documentFragment')){const _0x24436d=F(_0x5b7fea['rootName']);return _0x24436d['_insertChild'](0x0,_0x2625da),_0x24436d;}return _0x4e3e3e['_setAttribute']('vid_end',null===_0x886362?this['_revisionId']++:_0x886362++),_0x4e3e3e['_insertChild'](0x0,_0x2625da),_0x4e3e3e;}['_calculateMetaData'](_0x36e9b3,_0x4371fb,_0x513730){this['_reset']();const {roots:_0xc95aa0,markers:_0x23a40d,rootsAttributes:_0xd3ac54}=this['_savedMetaData']['get'](_0x36e9b3);this['_baseRoots']=new Map(_0xc95aa0),this['_baseRootsAttributes']=new Map(_0x482675(_0xd3ac54));for(const [_0x356b33,_0x12882d]of this['_baseRoots'])if('$graveyard'!==_0x356b33&&(this['_diffRoots']['set'](_0x356b33,T(_0x12882d)),this['_diffRootsAttributes']=new Map(_0x482675(_0xd3ac54)),_0x513730)){const _0x18821d=this['_revisionId'];this['_idsRoots']['set'](_0x356b33,this['_makeIdsRoot'](_0x12882d)),this['_baseIdsRoots']['set'](_0x356b33,this['_makeIdsRoot'](_0x12882d,_0x18821d));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x513730&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x3be26f,_0x14f540]of _0x23a40d){const _0x343256=this['_baseRoots']['get'](_0x14f540['rootName']),_0x2736d1=this['_diffRoots']['get'](_0x14f540['rootName']),_0x206be1=new vt(this['_fixPosition'](_0x14f540['start'],_0x343256),this['_fixPosition'](_0x14f540['end'],_0x343256)),_0x56b6f4=this['_fixRange'](_0x206be1,_0x2736d1);_0x343256['markers']['set'](_0x3be26f,_0x206be1),this['_markers']['set'](_0x3be26f,_0x56b6f4);}this['_applyOperations'](_0x36e9b3,_0x4371fb,_0x513730);}['_applyOperations'](_0x132e4a,_0x4f1d5c,_0x420ce7){for(const _0x22da1f of this['source']['getOperations'](_0x132e4a,_0x4f1d5c))this['_handleOperation'](_0x22da1f,_0x420ce7);for(const _0x1ee286 of this['_diffRoots']['values']())_0x1ee286['markers']['clear']();for(const [_0x547a27,_0x24849a]of this['_markers']){this['_diffRoots']['get'](_0x24849a['root']['rootName'])['markers']['set'](_0x547a27,_0x24849a['clone']());}const _0x3121c8=new Map(),_0x50c8a3=new Map();for(const [_0x5c7da4,_0x92e883]of this['_diffRoots'])_0x3121c8['set'](_0x5c7da4,T(_0x92e883)),_0x50c8a3['set'](_0x5c7da4,this['_diffRootsAttributes']['get'](_0x5c7da4));this['_saveMetaData'](_0x4f1d5c,_0x3121c8,this['_markers'],_0x50c8a3);}['_getPreviousFrom'](_0x34d83b){const _0x404e68=Array['from'](this['_savedMetaData']['keys']());_0x404e68['sort']((_0x519cd0,_0x326dd8)=>_0x519cd0-_0x326dd8),_0x404e68['reverse']();for(const _0x38b8c5 of _0x404e68)if(_0x38b8c5<_0x34d83b)return _0x38b8c5;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x46a325,_0xc3c05){const _0x262896=Array['from'](_0xc3c05['markers'])['map'](([_0x5828cb,_0x42e3d3])=>[_0x5828cb,this['_fixRange'](_0x42e3d3,_0x46a325)]);_0x46a325['markers']=new Map(_0x262896);}['_transformMarkers'](_0x17b87f){for(const _0x16f7c7 of this['_markers']['values']()){const _0x192707=_0x16f7c7['getTransformedByOperation'](_0x17b87f),_0x1c69a2=vt['_createFromRanges'](_0x192707);_0x16f7c7['start']=_0x1c69a2['start'],_0x16f7c7['end']=_0x1c69a2['end'];}}['_handleOperation'](_0x123ba0,_0x3c1aa5){if('addRoot'!=_0x123ba0['type']&&'detachRoot'!=_0x123ba0['type']){if('insert'==_0x123ba0['type']){const _0x2cee43=_0x123ba0['position']['root']['rootName'];this['_diffRoots']['has'](_0x2cee43)||(this['_diffRoots']['set'](_0x2cee43,F(_0x2cee43,!0x0)),this['_diffRootsAttributes']['set'](_0x2cee43,{}),_0x3c1aa5&&this['_idsRoots']['set'](_0x2cee43,F(_0x2cee43,!0x0)));}else{if('addRootAttribute'==_0x123ba0['type']||'removeRootAttribute'==_0x123ba0['type']||'changeRootAttribute'==_0x123ba0['type'])return void this['_handleRootAttributeOperation'](_0x123ba0);'marker'==_0x123ba0['type']&&this['_handleMarkerOperation'](_0x123ba0);}if('marker'!==_0x123ba0['type']){const _0x33b5f5=this['_cloneOperation'](_0x123ba0,this['_diffRoots']);_0x33b5f5['_execute'](),this['_transformMarkers'](_0x33b5f5);}if(_0x3c1aa5)switch(_0x123ba0['type']){case'insert':this['_handleInsertOperation'](_0x123ba0);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x123ba0);break;case'merge':this['_handleMergeOperation'](_0x123ba0);break;case'split':this['_handleSplitOperation'](_0x123ba0);}}else this['_handleRootOperation'](_0x123ba0,_0x3c1aa5);}['_cloneOperation'](_0x1e734a,_0x1a5733){const _0x338b73=_0x1e734a['clone']();return _0x338b73['_authorId']=_0x1e734a['_authorId'],this['_fixOperation'](_0x338b73,_0x1a5733),_0x338b73;}['_getBaseVids'](_0x10929b){return _0x10929b['map'](_0x22aaa0=>{const _0x1d10e9=this['_getVidAttributeName'](_0x22aaa0);return Number(_0x22aaa0['item']['getAttribute'](_0x1d10e9));});}['_generateTape'](_0x4b6293,_0x2299a7){if(_0x4b6293['is']('element','$text'))_0x2299a7['push']({'item':_0x4b6293,'type':'text'});else{_0x4b6293['is']('element')&&_0x2299a7['push']({'item':_0x4b6293,'type':'elementStart'});for(const _0x1fdd97 of _0x4b6293['getChildren']())this['_generateTape'](_0x1fdd97,_0x2299a7);_0x4b6293['is']('element')&&_0x2299a7['push']({'item':_0x4b6293,'type':'elementEnd'});}return _0x2299a7;}['_getState'](){const _0x30ee20=new Map(this['_touched']),_0x15f7db=new Map(_0x30ee20),_0x1061d3=new Map(),_0x5c9939={'insertions':{},'deletions':{}},_0x251637={'insertions':{},'deletions':{}},_0x12078c=new Map(),_0x447572=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x447572['delete']('$graveyard');for(const _0x5c97a4 of _0x447572){const _0x46a30f=this['_diffRoots']['get'](_0x5c97a4)||F(_0x5c97a4,!0x1),_0xa392b6=this['_baseRoots']['get'](_0x5c97a4)||F(_0x5c97a4,!0x1);_0x46a30f['isAttached']()||_0xa392b6['isAttached']()?(_0x5c9939['insertions'][_0x5c97a4]=T(_0x46a30f),_0x5c9939['deletions'][_0x5c97a4]=T(_0xa392b6),this['_copyMarkers'](_0x5c9939['deletions'][_0x5c97a4],_0xa392b6),this['_copyMarkers'](_0x5c9939['insertions'][_0x5c97a4],_0x46a30f),_0x251637['insertions'][_0x5c97a4]=this['_generateTape'](this['_idsRoots']['get'](_0x5c97a4),[]),_0x251637['deletions'][_0x5c97a4]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x5c97a4)||F(_0x5c97a4,!0x1),[])):_0x447572['delete'](_0x5c97a4);}for(const _0x41e37c of _0x447572){const _0x3db9fb=_0x251637['insertions'][_0x41e37c];for(const _0x13d56b of _0x3db9fb){const _0x43526b=this['_getVidAttributeName'](_0x13d56b),_0x4e8e05=_0x13d56b['item']['getAttribute'](_0x43526b);_0x15f7db['delete'](_0x4e8e05),_0x4e8e05>=this['_startingRevisionId']&&_0x1061d3['set'](_0x4e8e05,_0x30ee20['get'](_0x4e8e05));}}for(const _0x460af5 of _0x447572){const _0x4de39c=_0x251637['insertions'][_0x460af5],_0xf8a70e=this['_getBaseVids'](_0x251637['deletions'][_0x460af5]);let _0x554318=0x0;for(const _0x488408 of _0x4de39c){const _0x29390f=this['_getVidAttributeName'](_0x488408),_0x3ad7d6=_0x488408['item']['getAttribute'](_0x29390f);if(!_0x1061d3['has'](_0x3ad7d6)&&!_0x12078c['has'](_0x3ad7d6)){if(_0x15f7db['has'](_0x3ad7d6))_0x554318++;else{if(_0x3ad7d6!=_0xf8a70e[_0x554318]){const _0x32a5c9=_0x30ee20['get'](_0x3ad7d6)||_0x30ee20['get'](_0xf8a70e[_0x554318]);for(;_0x3ad7d6!=_0xf8a70e[_0x554318];)_0x15f7db['has'](_0xf8a70e[_0x554318])||(_0x12078c['set'](_0xf8a70e[_0x554318],_0x32a5c9),_0x30ee20['set'](_0xf8a70e[_0x554318],_0x32a5c9)),_0x554318++;}_0x554318++;}}}}for(const _0x58977b of _0x447572){const _0x5d258d=_0x251637['insertions'][_0x58977b];for(const _0x3c2e86 of _0x5d258d){const _0x370dfd=this['_getVidAttributeName'](_0x3c2e86),_0x29df31=_0x3c2e86['item']['getAttribute'](_0x370dfd);if(_0x12078c['has'](_0x29df31)){const _0x30b300=_0x12078c['get'](_0x29df31);_0x15f7db['has'](_0x29df31)||_0x15f7db['set'](_0x29df31,{..._0x30b300}),_0x1061d3['set'](_0x29df31,{..._0x30b300});}}}for(const _0x4a21e8 of _0x15f7db['keys']())_0x4a21e8>=this['_startingRevisionId']&&_0x15f7db['delete'](_0x4a21e8);const _0x4aaa54=new Map();for(const _0x482fac of _0x447572){let _0x120282=_0x251637['insertions'][_0x482fac];for(const _0x1dc36f of _0x120282)if(_0x1dc36f['item']['is']('element','tableCell')){const _0x21cd00=this['_getVidAttributeName'](_0x1dc36f),_0x3e72f9=_0x1dc36f['item']['getAttribute'](_0x21cd00);if(_0x1061d3['has'](_0x3e72f9)){const _0x3a4561=_0x1dc36f['item']['parent']['parent']['getAttribute']('vid_start'),_0x3de7d7=_0x4aaa54['get'](_0x3a4561)||new Set();_0x3de7d7['add'](_0x1061d3['get'](_0x3e72f9)['userId']),_0x4aaa54['set'](_0x3a4561,_0x3de7d7);}}_0x120282=_0x251637['deletions'][_0x482fac];for(const _0x149353 of _0x120282)if(_0x149353['item']['is']('element','tableCell')){const _0x3d617b=this['_getVidAttributeName'](_0x149353),_0x3f2088=_0x149353['item']['getAttribute'](_0x3d617b);if(_0x15f7db['has'](_0x3f2088)){const _0x2b0de3=_0x149353['item']['parent']['parent']['getAttribute']('vid_start'),_0x3daea2=_0x4aaa54['get'](_0x2b0de3)||new Set();_0x3daea2['add'](_0x15f7db['get'](_0x3f2088)['userId']),_0x4aaa54['set'](_0x2b0de3,_0x3daea2);}}for(const _0x234770 of _0x4aaa54['keys']())(_0x1061d3['has'](_0x234770)||_0x15f7db['has'](_0x234770))&&_0x4aaa54['delete'](_0x234770);}for(const _0x3c6007 of _0x447572){const _0xfc5d28=_0x251637['insertions'][_0x3c6007];let _0x4a6a18=null,_0x258488=null;for(const _0x5154b4 of _0xfc5d28){const _0x71c4d0=this['_getVidAttributeName'](_0x5154b4),_0x3368d0=_0x5154b4['item']['getAttribute'](_0x71c4d0),_0x3a1598=_0x4aaa54['get'](_0x3368d0);_0x3a1598&&'elementStart'==_0x5154b4['type']&&(_0x4a6a18=Array['from'](_0x3a1598)[0x0],_0x258488=_0x5154b4['item']['getAttribute']('vid_end')),_0x4a6a18&&(_0x15f7db['set'](_0x3368d0,{'userId':_0x4a6a18}),_0x1061d3['set'](_0x3368d0,{'userId':_0x4a6a18})),_0x3368d0==_0x258488&&(_0x4a6a18=null,_0x258488=null);}}const _0x5d09f2={},_0xbc69d6=new Set();for(const _0x317089 of _0x447572){const _0x36d990=_0x5c9939['deletions'][_0x317089],_0xf92d7f=_0x5c9939['insertions'][_0x317089];for(const {userId:_0xd21f0e}of this['_touchedMarkers']['values']())null!==_0xd21f0e&&_0xbc69d6['add'](_0xd21f0e);for(const {userId:_0x2fdd53}of this['_touchedRoots']['values']())null!==_0x2fdd53&&_0xbc69d6['add'](_0x2fdd53);this['_markChanges'](_0xf92d7f,_0x251637['insertions'][_0x317089],_0x1061d3,'insertion',_0xbc69d6),this['_markChanges'](_0x36d990,_0x251637['deletions'][_0x317089],_0x15f7db,'deletion',_0xbc69d6),_0x5d09f2[_0x317089]={'insertions':this['_prepareViewToSave'](_0xf92d7f),'deletions':this['_prepareViewToSave'](_0x36d990),'attachChange':this['_touchedRoots']['get'](_0x317089)||null,'attributesBefore':_0x482675(this['_baseRootsAttributes']['get'](_0x317089))||{},'attributesAfter':_0x482675(this['_diffRootsAttributes']['get'](_0x317089))};}return{'diffData':_0x5d09f2,'authorsIds':Array['from'](_0xbc69d6)};}['_processRootBeforeSave'](_0x3364d5){for(const [,_0x2c8008]of _0x3364d5['markers']){const _0x438b31=_0x2c8008['start']['getAncestors']()['filter'](_0x496187=>'tableCell'==_0x496187['name']);for(const _0x5bfd84 of _0x438b31)0x1==_0x5bfd84['childCount']&&_0x5bfd84['getChild'](0x0)['is']('element','paragraph')&&_0x5bfd84['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x45c92b){this['_processRootBeforeSave'](_0x45c92b);const _0x140639=this['editor']['data']['toView'](_0x45c92b,{}),_0x33eaa0=Array['from'](_0x140639['getChildren']())['map'](_0x2d6c9e=>this['_getViewJson'](_0x2d6c9e));return JSON['stringify'](_0x33eaa0);}['_getViewJson'](_0x2fb5ff){if(_0x2fb5ff['is']('$text'))return _0x2fb5ff['data'];{const _0x1fb986=_0x2fb5ff;return{'type':Object['keys'](P)['find'](_0x11145b=>_0x2fb5ff instanceof P[_0x11145b]),'name':_0x1fb986['name'],'attributes':Array['from'](_0x1fb986['getAttributes']()),'children':Array['from'](_0x1fb986['getChildren']())['map'](_0x261f8e=>this['_getViewJson'](_0x261f8e))};}}['_markChanges'](_0x20fdba,_0x1b1cb6,_0x8a838b,_0x13cf34,_0x39bf80){let _0x124c18=null,_0x2a6b3b=null,_0x25385e=0x0;const _0x4d1fc5=this['editor']['model'];for(let _0x164699=0x0;_0x164699<_0x1b1cb6['length'];_0x164699++){const _0x10a1cd=this['_getVidAttributeName'](_0x1b1cb6[_0x164699]),_0x54a5b0=_0x1b1cb6[_0x164699]['item']['getAttribute'](_0x10a1cd),_0x208dab=_0x8a838b['get'](_0x54a5b0),_0xb2ba29=_0x164699==_0x1b1cb6['length']-0x1;(!_0x124c18&&_0x208dab&&(_0x124c18=_0x208dab,_0x2a6b3b=_0x1b1cb6[_0x164699]),_0x124c18&&(!_0x208dab||_0x208dab['userId']!=_0x124c18['userId']))&&(_0x2632f4(_0x208dab,B(_0x2a6b3b,_0x20fdba,_0x4d1fc5),B(_0x1b1cb6[_0x164699],_0x20fdba,_0x4d1fc5)),_0x124c18=_0x208dab||null,_0x2a6b3b=_0x208dab?_0x1b1cb6[_0x164699]:null),_0x124c18&&_0xb2ba29&&_0x2632f4(_0x208dab,B(_0x2a6b3b,_0x20fdba,_0x4d1fc5),J(_0x1b1cb6[_0x164699],_0x20fdba,_0x4d1fc5));}function _0x2632f4(_0x92f4e7,_0x14a70b,_0xc13634){const _0x34e798=_0x124c18['userId'],_0xa95d8c='revision:'+_0x13cf34+':'+_0x34e798+':'+_0x25385e++,_0x5af566=_0x4d1fc5['createRange'](_0x14a70b,_0xc13634);_0x20fdba['markers']['set'](_0xa95d8c,_0x5af566),null!==_0x34e798&&_0x39bf80['add'](_0x34e798);}}['_getVidAttributeName'](_0x1b40f5){switch(_0x1b40f5['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x15bec1,_0x979b92){_0x15bec1['baseVersion']=null;for(const _0x58656b in _0x15bec1){const _0x173d73=_0x15bec1[_0x58656b];if(_0x173d73 instanceof gt){const _0x7c13d5=_0x979b92['get'](_0x173d73['root']['rootName']);_0x15bec1[_0x58656b]=this['_fixPosition'](_0x173d73,_0x7c13d5);}if(_0x173d73 instanceof vt){const _0x8ed40d=_0x979b92['get'](_0x173d73['root']['rootName']);_0x15bec1[_0x58656b]=this['_fixRange'](_0x173d73,_0x8ed40d);}'root'===_0x58656b&&(_0x15bec1['root']=_0x979b92['get'](_0x15bec1['root']['rootName']));}}['_fixRange'](_0x44f4ce,_0x18d86c){return this['editor']['model']['createRange'](this['_fixPosition'](_0x44f4ce['start'],_0x18d86c),this['_fixPosition'](_0x44f4ce['end'],_0x18d86c));}['_fixPosition'](_0x3649a4,_0x42e790){return this['editor']['model']['createPositionFromPath'](_0x42e790,_0x3649a4['path'],_0x3649a4['stickiness']);}['_handleInsertOperation'](_0x19d813){const _0x14b5b6=this['_idsRoots']['get'](_0x19d813['position']['root']['rootName']),_0x5e8c94=this['_fixPosition'](_0x19d813['position'],_0x14b5b6),_0x5e4204=null===_0x19d813['_authorId']?null:_0x19d813['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3a6cea=_0x5e8c94['parent'],_0x12b3aa=this['_revisionId'],_0x3de54d=[];for(const _0x325f52 of _0x19d813['nodes'])if(_0x325f52['is']('element'))_0x3de54d['push'](this['_makeIdsRoot'](_0x325f52));else{for(let _0x42c22f=0x0;_0x42c22f<_0x325f52['offsetSize'];_0x42c22f++)_0x3de54d['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x10ab2b=this['_revisionId'];for(let _0x4d61a6=_0x12b3aa;_0x4d61a6<_0x10ab2b;_0x4d61a6++)this['_touched']['set'](_0x4d61a6,{'userId':_0x5e4204});_0x3a6cea['_insertChild'](_0x5e8c94['offset'],_0x3de54d);}['_handleMoveOperation'](_0x1d734f){(_0x1d734f=this['_cloneOperation'](_0x1d734f,this['_idsRoots']))['_execute']();const _0x2e44d5=null===_0x1d734f['_authorId']?null:_0x1d734f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1ce96c=_0x1d734f['getMovedRangeStart'](),_0x34cc96=_0x1ce96c['parent'],_0x1597f3=_0x1ce96c['offset'];!function _0x3a9c32(_0x5c380c,_0x3cfc78,_0xcf9567,_0x597ef3){for(let _0x363473=_0xcf9567;_0x363473<_0x597ef3;_0x363473++){const _0x25f4df=_0x3cfc78['getChild'](_0x363473);_0x25f4df['is']('element','$text')?_0x5c380c['set'](_0x25f4df['getAttribute']('vid'),{'userId':_0x2e44d5}):(_0x5c380c['set'](_0x25f4df['getAttribute']('vid_start'),{'userId':_0x2e44d5}),_0x3a9c32(_0x5c380c,_0x25f4df,0x0,_0x25f4df['childCount']),_0x5c380c['set'](_0x25f4df['getAttribute']('vid_end'),{'userId':_0x2e44d5}));}}(this['_touched'],_0x34cc96,_0x1597f3,_0x1597f3+_0x1d734f['howMany']);}['_handleMergeOperation'](_0x18b048){const _0x4e7193=null===(_0x18b048=this['_cloneOperation'](_0x18b048,this['_idsRoots']))['_authorId']?null:_0x18b048['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x133c73=_0x18b048['targetPosition']['parent'],_0xa5bad4=_0x18b048['sourcePosition']['parent'],_0x4d9c62=_0x133c73['getAttribute']('vid_end'),_0x252e4b=_0xa5bad4['getAttribute']('vid_start');_0x133c73['_setAttribute']('vid_end',_0xa5bad4['getAttribute']('vid_end')),_0xa5bad4['_setAttribute']('vid_end',_0x4d9c62),this['_touched']['set'](_0x252e4b,{'userId':_0x4e7193}),this['_touched']['set'](_0x4d9c62,{'userId':_0x4e7193}),_0x18b048['_execute']();}['_handleSplitOperation'](_0x53c795){const _0x56ecbd=null===(_0x53c795=this['_cloneOperation'](_0x53c795,this['_idsRoots']))['_authorId']?null:_0x53c795['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x59b829=_0x53c795['graveyardPosition'],_0x94bdca=_0x53c795['splitPosition']['parent'];_0x53c795['_execute']();const _0x2de25f=_0x94bdca['getAttribute']('vid_end'),_0x26717a=_0x53c795['insertionPosition']['nodeAfter'];if(_0x59b829){const _0x1d166f=_0x26717a['getAttribute']('vid_end'),_0x5ad55c=_0x94bdca['getAttribute']('vid_end');_0x94bdca['_setAttribute']('vid_end',_0x1d166f),_0x26717a['_setAttribute']('vid_end',_0x5ad55c),this['_touched']['set'](_0x94bdca['getAttribute']('vid_end'),{'userId':_0x56ecbd}),this['_touched']['set'](_0x26717a['getAttribute']('vid_start'),{'userId':_0x56ecbd});}else{const _0x5522a7=this['_revisionId']++,_0x24cff3=this['_revisionId']++;_0x94bdca['_setAttribute']('vid_end',_0x5522a7),_0x26717a['_setAttribute']('vid_start',_0x24cff3),_0x26717a['_setAttribute']('vid_end',_0x2de25f),this['_touched']['set'](_0x5522a7,{'userId':_0x56ecbd}),this['_touched']['set'](_0x24cff3,{'userId':_0x56ecbd});}}['_handleMarkerOperation'](_0x138115){if(!_0x138115['affectsData'])return;const _0x5db606=(_0x138115=this['_cloneOperation'](_0x138115,this['_diffRoots']))['oldRange']?_0x138115['oldRange']['root']:null,_0x1eafa5=_0x138115['newRange']?_0x138115['newRange']['root']:null;_0x5db606&&this['_markers']['delete'](_0x138115['name']),_0x1eafa5&&this['_markers']['set'](_0x138115['name'],_0x138115['newRange']['clone']());const _0x3b30bd=null===_0x138115['_authorId']?null:_0x138115['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4e019b=_0x138115['name'];if(!this['_touchedMarkers']['has'](_0x4e019b))return void this['_touchedMarkers']['set'](_0x4e019b,{'range':_0x138115['oldRange'],'userId':_0x3b30bd});const _0x23a24e=this['_touchedMarkers']['get'](_0x4e019b),_0x25c283=_0x23a24e['range'],_0x2affea=_0x138115['newRange'];null==_0x25c283&&null==_0x2affea||_0x25c283&&_0x2affea&&_0x25c283['isEqual'](_0x2affea)?this['_touchedMarkers']['delete'](_0x138115['name']):_0x23a24e['userId']=_0x3b30bd;}['_handleRootOperation'](_0x5baac4,_0x1f73de){this['_diffRoots']['has'](_0x5baac4['rootName'])?this['_diffRoots']['get'](_0x5baac4['rootName'])['_isAttached']=_0x5baac4['isAdd']:(this['_diffRoots']['set'](_0x5baac4['rootName'],F(_0x5baac4['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x5baac4['rootName'],{}),_0x1f73de&&this['_idsRoots']['set'](_0x5baac4['rootName'],F(_0x5baac4['rootName'],!0x0)));const _0x1bd252=null===_0x5baac4['_authorId']?null:_0x5baac4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2b32c4=this['_touchedRoots']['get'](_0x5baac4['rootName']);_0x2b32c4&&_0x2b32c4['userId']===_0x1bd252?this['_touchedRoots']['delete'](_0x5baac4['rootName']):this['_touchedRoots']['set'](_0x5baac4['rootName'],{'userId':_0x1bd252,'isAttached':_0x5baac4['isAdd']});}['_handleRootAttributeOperation'](_0x2efbc4){const _0xc5c9f4=this['_diffRootsAttributes']['get'](_0x2efbc4['root']['rootName']);null===_0x2efbc4['newValue']?delete _0xc5c9f4[_0x2efbc4['key']]:_0xc5c9f4[_0x2efbc4['key']]=_0x2efbc4['newValue'];}}function T(_0x4ac8ce){const _0x301977=F(_0x4ac8ce['rootName'],_0x4ac8ce['isAttached']());for(const _0x1c8b4b of _0x4ac8ce['getChildren']()){const _0x3f9c70=_0x1c8b4b['_clone'](!0x0);_0x301977['_appendChild'](_0x3f9c70);}return _0x301977;}function F(_0x5db9a7,_0x575032=!0x0){const _0x2c5507=new mt();return _0x2c5507['rootName']=_0x5db9a7,_0x2c5507['_isAttached']=_0x575032,_0x2c5507['isAttached']=()=>_0x2c5507['_isAttached'],_0x2c5507;}function B(_0x3f46de,_0x456366,_0x369430){const _0x32ad91='elementEnd'==_0x3f46de['type']?_0x369430['createPositionAt'](_0x3f46de['item'],'end'):_0x369430['createPositionBefore'](_0x3f46de['item']);return _0x369430['createPositionFromPath'](_0x456366,_0x32ad91['path'],_0x32ad91['stickiness']);}function J(_0xd9faa7,_0x1564a0,_0x451d78){const _0x2db96c='elementStart'==_0xd9faa7['type']?_0x451d78['createPositionAt'](_0xd9faa7['item'],0x0):_0x451d78['createPositionAfter'](_0xd9faa7['item']);return _0x451d78['createPositionFromPath'](_0x1564a0,_0x2db96c['path'],_0x2db96c['stickiness']);}class ns extends _0x2b16ea{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x3e7ad5,_0x5905b5){super(_0x3e7ad5),this['focusTracker']=new _0x522651(),this['keystrokes']=new _0x520ce1(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x5905b5),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x30db1c({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x367f1e=_0x305c0e=>_0x305c0e['stopPropagation']();this['keystrokes']['set']('arrowright',_0x367f1e),this['keystrokes']['set']('arrowleft',_0x367f1e),this['keystrokes']['set']('arrowup',_0x367f1e),this['keystrokes']['set']('arrowdown',_0x367f1e);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x3c55bb){this['revisionNameInputView']['fieldView']['element']['value']=_0x3c55bb['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x28a3fd){const _0xddbde2=new nt(this['locale'],_0x2fc9a6),_0x2b7368=_0xddbde2['fieldView'];_0x2b7368['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x1cc2b8=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x28a3fd&&(_0x1cc2b8+='\x20('+m(this['locale'],'optional')+')'),(_0xddbde2['label']=_0x1cc2b8,_0x2b7368['on']('input',()=>{this['revisionNameInputValue']=_0x2b7368['element']['value']['trim']();}),_0xddbde2);}}class u extends _0x29fadc{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x4f0d32=this['editor'],_0x1fd792=_0x4f0d32['plugins']['get']('RevisionTracker');_0x4f0d32['ui']['componentFactory']['add']('revisionHistory',_0x5e5b25=>{const _0x361b05=_0x44331d(_0x5e5b25),_0xa2ae00=_0x361b05['panelView']['children'],_0x172e95=new te(_0x5e5b25),_0x34b53b=new _0x5a2ba8(_0x5e5b25),_0x44eb20=new _0xe150e(_0x5e5b25),_0x17087d=new _0x5a2ba8(_0x5e5b25),_0x5b5f53=new _0xe150e(_0x5e5b25);return _0x361b05['bind']('isEnabled')['to'](_0x1fd792,'isReady',_0x1fd792,'isEnabled',_0x4f0d32,'isReadOnly',(_0x135555,_0xd8bf9b,_0x1cb9ee)=>_0x135555&&_0xd8bf9b&&!_0x1cb9ee),_0x361b05['buttonView']['set']({'icon':_0x27f629['history'],'label':m(_0x5e5b25,'Revision\x20history'),'tooltip':!0x0}),_0x44eb20['set']({'label':m(_0x5e5b25,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x44eb20['bind']('isEnabled')['to'](_0x1fd792,'isReady',_0x1fd792,'isEnabled',_0x4f0d32,'isReadOnly',(_0x2ef5d6,_0x4562ff,_0x53d14b)=>_0x2ef5d6&&_0x4562ff&&!_0x53d14b),_0x44eb20['on']('execute',()=>this['_showDialog']()),_0x5b5f53['set']({'label':m(_0x5e5b25,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x5b5f53['bind']('isEnabled')['to'](_0x1fd792,'isReady',_0x4f0d32,'isReadOnly',(_0x314069,_0x19a68a)=>_0x314069&&!_0x19a68a),_0x5b5f53['on']('execute',()=>{_0x4f0d32['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x361b05['isOpen']=!0x1,_0x4f0d32['editing']['view']['focus']();}),_0x34b53b['children']['add'](_0x44eb20),_0x17087d['children']['add'](_0x5b5f53),_0x172e95['role']='menu',_0x172e95['items']['addMany']([_0x34b53b,_0x17087d]),_0xa2ae00['add'](_0x172e95),_0x361b05;}),_0x4f0d32['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x2aaef2=this['editor'],_0x542107=_0x2aaef2['locale'],_0x2bfa03=new _0x22f8c9(_0x542107),_0x4c2cd7=new _0x4d12e2(_0x542107);_0x2bfa03['buttonView']['set']({'icon':_0x27f629['history'],'label':m(_0x542107,'Revision\x20history')});const _0x5d1085=new _0x253fe4(_0x542107,_0x2bfa03),_0x30df68=new _0x541e7c(_0x542107);_0x30df68['set']({'label':m(_0x542107,'Save\x20current\x20revision')}),_0x30df68['delegate']('execute')['to'](_0x2bfa03),_0x30df68['on']('execute',()=>{this['_showDialog']();}),_0x5d1085['children']['add'](_0x30df68),_0x4c2cd7['items']['add'](_0x5d1085);const _0x1369d5=new _0x253fe4(_0x542107,_0x2bfa03),_0x2dd312=new _0x541e7c(_0x542107);return _0x2dd312['set']({'label':m(_0x542107,'Open\x20revision\x20history')}),_0x2dd312['delegate']('execute')['to'](_0x2bfa03),_0x2dd312['on']('execute',()=>{_0x2aaef2['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x1369d5['children']['add'](_0x2dd312),_0x4c2cd7['items']['add'](_0x1369d5),_0x2bfa03['panelView']['children']['add'](_0x4c2cd7),_0x2bfa03;}['_showDialog'](){const _0x1ba988=this['editor'],_0x59c03d=_0x1ba988['locale'],_0xedb1d4=_0x1ba988['plugins']['get']('Dialog'),_0x3c39c1=_0x1ba988['plugins']['get']('RevisionTracker');function _0x2e9310(_0x54a328){_0x1ba988['config']['get']('revisionHistory.requireRevisionName')&&''===_0x54a328['revisionName']?_0x54a328['revisionNameInputView']['errorText']=m(_0x59c03d,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x1ba988['plugins']['get'](l)['saveRevision']({'name':_0x54a328['revisionName']}),_0xedb1d4['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x2e9310(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0xedb1d4['show']({'id':'revisionSave','title':m(_0x59c03d,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x1ba988['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0xedb1d4['hide']()},{'label':m(_0x1ba988['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x256c6d){_0x256c6d['bind']('isEnabled')['to'](_0x3c39c1,'isReady',_0x3c39c1,'isEnabled',_0x1ba988,'isReadOnly',(_0x54634a,_0x5417f5,_0x457054)=>_0x54634a&&_0x5417f5&&!_0x457054);},'onExecute':()=>_0x2e9310(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x1b9c0e=this['editor'],_0x5d59c4=_0x1b9c0e['locale'];this['_saveRevisionFormView']=new ns(_0x5d59c4,_0x1b9c0e['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x2b16ea{['changeId'];['_model'];constructor(_0x1dce8,_0x1a368b){super(_0x1dce8),this['_model']=_0x1a368b,this['changeId']=_0x1a368b['id'];const _0x34bada=this['bindTemplate'],_0x25762b=m(_0x1dce8,_0x1a368b['data']['isSuggestion']?'Suggested\x20by':'add'==_0x1a368b['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x1a368b['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x34bada['to']('type',_0x348f9f=>'ck-revision-change__'+_0x348f9f)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x25762b}]},{'text':'\x20'+_0x1a368b['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0xef5a82(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0xce9c7d){super(),this['id']=_0xce9c7d['id']||_0x53eca7(),this['author']=_0xce9c7d['author'],this['type']=_0xce9c7d['type'],this['data']=_0xce9c7d['data']||{},this['rootName']=_0xce9c7d['rootName'],this['set']('createdAt',_0xce9c7d['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x3f8889,_0xd0bfea){this['newRevisionId']=_0x3f8889,this['oldRevisionId']=_0xd0bfea,this['changes']=new _0x2a7a74();}['_setChanges'](_0x2c4a33){for(const _0x5ed15a of _0x2c4a33)this['changes']['add'](_0x5ed15a);}}const Y={'c':_0xc85bb2,'a':_0x57281e,'e':_0x23dd8c,'r':_0x58423a,'u':_0xace31e};class d extends _0x29fadc{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x35981a,_0x4e6d14,j];}constructor(_0x333128){super(_0x333128),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x2d4edc,_0xfb6b1b,_0x2c5936)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x25936f=>{for(const _0x483df5 of this['editor']['editing']['view']['document']['roots'])_0x2c5936?_0x25936f['removeClass']('ck-editor__editable__overlay',_0x483df5):_0x25936f['addClass']('ck-editor__editable__overlay',_0x483df5);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0xfd6cc9=>null!==_0xfd6cc9),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x53af47,_0x206b1d,_0x1876da)=>_0x53af47&&_0x1876da?_0x206b1d['changes']['getIndex'](_0x1876da):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x41970c,_0x40816a)=>_0x41970c?_0x40816a['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x4e6d14);}['init'](){const _0x10bd9c=this['editor'],_0x5df812=new yt(_0x10bd9c,{'direction':'backward'}),_0x4fe6b7=new yt(_0x10bd9c,{'direction':'forward'});(_0x10bd9c['commands']['add']('showPreviousChange',_0x5df812),_0x10bd9c['commands']['add']('showNextChange',_0x4fe6b7),_0x10bd9c['commands']['add']('restoreRevision',new _t(_0x10bd9c)),this['on']('change:numberOfChanges',()=>{_0x5df812['refresh'](),_0x4fe6b7['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x10bd9c['enableReadOnlyMode']('revision-viewer'),_0x10bd9c['plugins']['has']('WidgetToolbarRepository'))&&_0x10bd9c['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x2d77af){await this['loadRevisionData'](_0x2d77af);const _0xae6709={};for(const _0x138700 in _0x2d77af['diffData']){if(_0x2d77af['diffData'][_0x138700]['attachChange']&&!_0x2d77af['diffData'][_0x138700]['attachChange']['isAttached'])continue;const _0x2a6c3c=this['_removeRevisionMarkers'](JSON['parse'](_0x2d77af['diffData'][_0x138700]['insertions'])),_0x50e6bd=this['editor']['editing']['view']['document'],_0x485523=new _0x3d5cd2(_0x50e6bd,_0x2a6c3c['map'](_0x5c08cb=>this['_getViewObj'](_0x5c08cb)));this['editor']['data']['processor']['useFillerType']('marked'),_0xae6709[_0x138700]=this['editor']['data']['processor']['toData'](_0x485523),this['editor']['data']['processor']['useFillerType']('default');}return _0xae6709;}async['getRevisionRootsAttributes'](_0x50a3b){await this['loadRevisionData'](_0x50a3b);const _0x213bf3={};for(const _0x59a6d0 in _0x50a3b['diffData'])_0x50a3b['diffData'][_0x59a6d0]['attachChange']&&!_0x50a3b['diffData'][_0x59a6d0]['attachChange']['isAttached']||(_0x213bf3[_0x59a6d0]=_0x50a3b['diffData'][_0x59a6d0]['attributesAfter']||{});return _0x213bf3;}['_removeRevisionMarkers'](_0x1ba82c){return(_0x1ba82c=_0x1ba82c['filter'](_0x28068b=>!_0x28068b['name']||'revision-start'!==_0x28068b['name']&&'revision-end'!==_0x28068b['name']))['forEach'](_0x1f859c=>{'string'!=typeof _0x1f859c&&(_0x1f859c['children']=this['_removeRevisionMarkers'](_0x1f859c['children']),_0x1f859c['attributes']=_0x1f859c['attributes']['filter'](_0x16c1e3=>!_0x16c1e3[0x0]['startsWith']('data-revision-')));}),_0x1ba82c;}async['compare'](_0x1e4c81,_0xa3129a,_0x528779=!0x1){if(!this['isEnabled'])return;const _0x2aad85=this['diff'],_0x3db3e7=this['repository'],_0x25b2fc='string'==typeof _0x1e4c81?_0x3db3e7['getRevision'](_0x1e4c81):_0x1e4c81,_0x4e86c0='string'==typeof _0xa3129a?_0x3db3e7['getRevision'](_0xa3129a):_0xa3129a,_0x5f4630=_0x25b2fc['id'],_0x39be6c=_0x4e86c0?_0x4e86c0['id']:null;if(!_0x528779&&this['diff']&&this['diff']['newRevisionId']===_0x5f4630&&this['diff']['oldRevisionId']===_0x39be6c)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x5f4630,_0x39be6c);const _0x3e9715=this['_getRevisionsRange'](_0x25b2fc,_0x4e86c0,!0x0)['map'](_0x26624c=>this['loadRevisionData'](_0x26624c));return _0x3e9715['push'](new Promise(_0x12118c=>{setTimeout(_0x12118c,0x14);})),Promise['all'](_0x3e9715)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x141ba8=this['_getDiff'](_0x5f4630,_0x39be6c);for(const _0x1146e0 of _0x141ba8['changes'])this['_changeIdToChange']['set'](_0x1146e0['id'],_0x1146e0);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5e0eb9=>{for(const _0xe275bc of this['editor']['model']['document']['getRootNames']())_0x5e0eb9['detachRoot'](_0xe275bc);for(const _0x10436c of Object['keys'](_0x141ba8['model'])){const _0x1c6592=_0x5e0eb9['addRoot'](_0x10436c);for(const _0x13c48f of Object['keys'](_0x141ba8['attributes'][_0x10436c]))_0x5e0eb9['setAttribute'](_0x13c48f,_0x141ba8['attributes'][_0x10436c][_0x13c48f],_0x1c6592);_0x5e0eb9['insert'](_0x141ba8['model'][_0x10436c],_0x1c6592,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x141ba8['changes'])),this['isReady']=!0x0;})['catch'](_0x56c08d=>{console['error'](_0x56c08d),this['_cleanUp'](),_0x2aad85&&(this['diff']=_0x2aad85),this['isReady']=!0x0;});}['addRevisionData'](_0x448e0e,_0x1beb46){const _0x27c59b=this['repository']['createRevision'](_0x448e0e);return _0x27c59b['on']('_update',(_0x4a81c0,_0x49b1,_0x24b30e)=>_0x1beb46(_0x49b1,_0x24b30e,_0x27c59b)),this['repository']['addRevision'](_0x27c59b),_0x27c59b;}['loadRevisionData'](_0x5c2905){if(!_0x5c2905||_0x5c2905['diffData'])return Promise['resolve']();{const _0x18d014=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x18d014,'revisionId':_0x5c2905['id']})['then'](_0x24d223=>{_0x5c2905['_update']({'diffData':_0x24d223['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3e07f3=>{for(const _0x55b792 of this['editor']['model']['document']['getRootNames']())_0x3e07f3['detachRoot'](_0x55b792);});}['_sortAndFilterDiffChanges'](_0x29e04a){const _0x49000a=[],_0x317adb=new Map();for(const _0x466e00 of this['editor']['model']['document']['getRootNames']()){const _0x35c5e5=this['editor']['editing']['view']['getDomRoot'](_0x466e00);if(!_0x35c5e5)continue;const _0x570b3c=_0x35c5e5['getClientRects']()['item'](0x0);_0x570b3c&&(_0x49000a['push'](_0x466e00),_0x317adb['set'](_0x466e00,_0x570b3c));}return _0x49000a['sort']((_0x492ece,_0x53cb8c)=>{const _0x25ae43=_0x317adb['get'](_0x492ece),_0x24f27e=_0x317adb['get'](_0x53cb8c);return _0x25ae43['y']-_0x24f27e['y']||_0x25ae43['x']-_0x24f27e['x'];}),(_0x29e04a=_0x29e04a['filter'](_0x23b68c=>_0x49000a['includes'](_0x23b68c['rootName'])))['sort']((_0x44270a,_0x16f882)=>_0x49000a['indexOf'](_0x44270a['rootName'])-_0x49000a['indexOf'](_0x16f882['rootName'])),_0x29e04a;}['_makeTape'](_0x46282b){const _0x31054e=Array['from'](_0x46282b['markers'])['filter'](([_0x5c5d37,_0x1f3b3d])=>_0x5c5d37['startsWith']('revision:')&&!_0x1f3b3d['isCollapsed']),_0x400be7=Array['from'](this['editor']['model']['createRangeIn'](_0x46282b)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x31054e['length'])for(const _0x188edf of _0x400be7){const [_0xf0000d,_0x3aea0d]=_0x31054e[0x0],[,_0x220f1f,_0x15736e]=_0xf0000d['split'](':');if(_0x3aea0d['end']['isEqual'](_0x188edf['nextPosition'])&&_0x31054e['shift'](),(_0x188edf['previousPosition']['isEqual'](_0x3aea0d['start'])||_0x188edf['previousPosition']['isAfter'](_0x3aea0d['start']))&&('insertion'==_0x220f1f?_0x188edf['isAdded']={'userId':_0x15736e}:'deletion'==_0x220f1f&&(_0x188edf['isRemoved']={'userId':_0x15736e})),0x0==_0x31054e['length'])break;}return _0x400be7;}['_refreshStartEndIndex'](_0x38f0e1){const _0x47498e=new Map();for(let _0x1a7321=0x0;_0x1a7321<_0x38f0e1['length'];_0x1a7321++)'text'===_0x38f0e1[_0x1a7321]['type']?(_0x38f0e1[_0x1a7321]['item']['startIndex']=_0x1a7321,_0x38f0e1[_0x1a7321]['item']['endIndex']=_0x1a7321):('elementStart'===_0x38f0e1[_0x1a7321]['type']?_0x38f0e1[_0x1a7321]['item']['startIndex']=_0x1a7321:'elementEnd'===_0x38f0e1[_0x1a7321]['type']&&(_0x38f0e1[_0x1a7321]['item']['endIndex']=_0x1a7321),_0x47498e['set'](_0x38f0e1[_0x1a7321]['id'],_0x1a7321));for(const _0x170d88 of _0x47498e['values']())'elementStart'===_0x38f0e1[_0x170d88]['type']?_0x38f0e1[_0x170d88]['item']['endIndex']=_0x47498e['get'](_0x38f0e1[_0x170d88]['pairId']):'elementEnd'===_0x38f0e1[_0x170d88]['type']&&(_0x38f0e1[_0x170d88]['item']['startIndex']=_0x47498e['get'](_0x38f0e1[_0x170d88]['pairId']));}['_processTape'](_0x422cd7){for(let _0x2eb66d=0x0;_0x2eb66d<_0x422cd7['length'];_0x2eb66d++){if('elementStart'===_0x422cd7[_0x2eb66d]['type'])_0x422cd7[_0x2eb66d]['item']['startIndex']=_0x2eb66d;else{if('elementEnd'===_0x422cd7[_0x2eb66d]['type']){_0x422cd7[_0x2eb66d]['item']['endIndex']=_0x2eb66d;const _0x53e47c=_0x422cd7[_0x2eb66d]['item']['startIndex'];_0x422cd7[_0x53e47c]['pairId']=_0x422cd7[_0x2eb66d]['id'],_0x422cd7[_0x2eb66d]['pairId']=_0x422cd7[_0x53e47c]['id'];}else _0x422cd7[_0x2eb66d]['item']['startIndex']=_0x2eb66d,_0x422cd7[_0x2eb66d]['item']['endIndex']=_0x2eb66d,_0x422cd7[_0x2eb66d]['pairId']=null;}_0x422cd7[_0x2eb66d]['markersStart']||(_0x422cd7[_0x2eb66d]['markersStart']=[],_0x422cd7[_0x2eb66d]['markersEnd']=[]);}}['_markInsertions'](_0x1bed38,_0x5c136b){const _0x3e398e=_0x1bed38['filter'](_0x16aa63=>!_0x16aa63['isAdded']);for(let _0x4e5163=0x0;_0x4e5163<_0x5c136b['length'];_0x4e5163++)_0x5c136b[_0x4e5163]['isAdded']&&(_0x3e398e[_0x4e5163]['isAdded']=_0x5c136b[_0x4e5163]['isAdded']);}['_makeModelFromViewString'](_0x27c0df){const _0x685d=JSON['parse'](_0x27c0df),_0x10bcfe=this['editor']['editing']['view']['document'],_0x2e8eae=new _0x3d5cd2(_0x10bcfe,_0x685d['map'](_0x4966d2=>this['_getViewObj'](_0x4966d2)));return this['editor']['data']['toModel'](_0x2e8eae);}['_getViewObj'](_0x48ff91){const _0x3e7b39=this['editor']['editing']['view']['document'];if('string'==typeof _0x48ff91)return new _0x218496(_0x3e7b39,_0x48ff91);{const _0x1f63b5=_0x48ff91['children']['map'](_0x3ca687=>this['_getViewObj'](_0x3ca687));return new(Y[_0x48ff91['type']]||_0x3989f9)(_0x3e7b39,_0x48ff91['name'],_0x48ff91['attributes'],_0x1f63b5);}}['_getDiff'](_0x366576,_0x4da0af=null){const _0xd638f8=this['repository']['getRevision'](_0x366576),_0x3c4b66=_0x4da0af?this['repository']['getRevision'](_0x4da0af):null,_0xb21ee0=this['_getRevisionsRange'](_0xd638f8,_0x3c4b66),_0x5a464a=_0xb21ee0[_0xb21ee0['length']-0x1],_0x5c0e56=new Map(),_0x44ce3d={'model':{},'attributes':{},'changes':[]},_0x4f3208=new Set(),_0x26b750=new Map();for(let _0x4c7128=_0xb21ee0['length']-0x1;_0x4c7128>=0x0;_0x4c7128--){const _0x578336=_0xb21ee0[_0x4c7128];for(const _0x152f80 of Object['keys'](_0x578336['diffData']))if(_0x578336['diffData'][_0x152f80]['attachChange']){const _0x5ec04d=_0x578336['diffData'][_0x152f80]['attachChange'];_0x5ec04d['isAttached']?(_0x4f3208['add'](_0x152f80),_0x26b750['has'](_0x152f80)&&_0x26b750['get'](_0x152f80)['userId']==_0x5ec04d['userId']?_0x26b750['delete'](_0x152f80):_0x26b750['set'](_0x152f80,_0x5ec04d)):_0x26b750['has'](_0x152f80)?(_0x4f3208['delete'](_0x152f80),_0x26b750['delete'](_0x152f80)):(_0x4f3208['add'](_0x152f80),_0x26b750['set'](_0x152f80,_0x5ec04d));}else _0x4f3208['add'](_0x152f80);}for(const _0x3010ee of _0x4f3208){const _0x4c3daa=_0x26b750['has'](_0x3010ee)&&!_0x26b750['get'](_0x3010ee)['isAttached'];let _0x508392=_0x4c3daa?_0xb21ee0['length']-0x1:0x0;const _0x53d749=_0x4c3daa?-0x1:0x1;for(;_0xb21ee0[_0x508392];){const _0x1efdc7=_0xb21ee0[_0x508392];if(_0x1efdc7['diffData'][_0x3010ee]){const _0x3a4393=_0x4c3daa?_0x1efdc7['diffData'][_0x3010ee]['attributesBefore']:_0x1efdc7['diffData'][_0x3010ee]['attributesAfter'];_0x44ce3d['attributes'][_0x3010ee]=_0x3a4393?_0x482675(_0x3a4393):{};break;}_0x508392+=_0x53d749;}}for(const _0x2f041a of _0xb21ee0){_0x2f041a['model']={};for(const _0x2f2f33 of _0x2f041a['authors'])_0x5c0e56['set'](_0x2f2f33['id'],_0x2f2f33);for(const _0x5ae196 of _0x4f3208){const _0x5d1642=_0x2f041a['diffData'][_0x5ae196]?_0x2f041a['diffData'][_0x5ae196]['insertions']:'[]',_0x1957a1=_0x2f041a['diffData'][_0x5ae196]?_0x2f041a['diffData'][_0x5ae196]['deletions']:'[]';_0x2f041a['model'][_0x5ae196]={'insertions':this['_makeModelFromViewString'](_0x5d1642),'deletions':this['_makeModelFromViewString'](_0x1957a1)};}}for(const _0x4f984c of _0x4f3208){let _0x4b2112=null,_0x48ab1a=0x0;const _0x458add=new Map(Array['from'](_0xd638f8['model'][_0x4f984c]['insertions']['markers'])['filter'](([_0x33d590])=>!_0x33d590['startsWith']('revision:')));let _0x1de9f7=0x0;for(const _0x1b40ff of _0xb21ee0){const _0x437461=this['_makeTape'](_0x1b40ff['model'][_0x4f984c]['insertions']);_0x1b40ff==_0xd638f8?(_0x4b2112=_0x437461,_0x48ab1a=_0x4b2112['length'],_0x4b2112['forEach'](_0x209b49=>{_0x209b49['id']=_0x1de9f7++;}),this['_processTape'](_0x4b2112)):this['_markInsertions'](_0x4b2112,_0x437461);const _0x20cea3=_0x4b2112['filter'](_0x1f25a5=>!_0x1f25a5['isAdded'])['map'](_0x25ff5e=>_0x25ff5e['id']);let _0x4e1842=0x0;const _0x1289c1=this['_makeTape'](_0x1b40ff['model'][_0x4f984c]['deletions']);_0x1289c1['forEach'](_0x2eec10=>{_0x2eec10['isRemoved']?_0x2eec10['id']=_0x48ab1a++:_0x2eec10['id']=_0x20cea3[_0x4e1842++];}),this['_processTape'](_0x1289c1),this['_setDistance'](_0x4b2112,'isAdded'),this['_setDistance'](_0x1289c1,'isRemoved'),_0x1b40ff==_0xd638f8&&this['_markMarkers'](_0x4b2112,_0x458add),_0x4b2112=this['_joinTapes'](_0x4b2112,_0x1289c1),this['_refreshStartEndIndex'](_0x4b2112),this['_setDistance'](_0x4b2112,'isRemoved');}_0x4b2112=_0x4b2112['filter'](_0x330cb2=>!(_0x330cb2['isAdded']&&_0x330cb2['isRemoved']));const _0xae110a=new Map(_0x5a464a['model'][_0x4f984c]['deletions']['markers']),_0x1ed282=new Set(_0x458add['keys']());for(const _0x3e05e1 of _0xae110a['keys']())_0x1ed282['delete'](_0x3e05e1);this['_markSuggestions'](_0x4b2112,_0x1ed282),this['_fixObsoleteTags'](_0x4b2112),_0x4b2112=this['_removeMissingPairs'](_0x4b2112),_0x4b2112=this['_markMismatchedRemovedTags'](_0x4b2112),_0x4b2112=this['_removeUnsupportedChanges'](_0x4b2112);const {root:_0x257494,changes:_0x5d1ffe}=this['_makeModelFromTape'](_0x4b2112,_0x5c0e56,_0x4f984c);_0x44ce3d['model'][_0x4f984c]=_0x257494;const _0x106ab3=_0x26b750['get'](_0x4f984c);if(_0x106ab3){const _0xf82be0=_0x5c0e56['get'](_0x106ab3['userId']),_0x3f9525=new r({'author':_0xf82be0,'type':_0x106ab3['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4f984c});_0x5d1ffe['unshift'](_0x3f9525),_0x44ce3d['attributes'][_0x4f984c]['revisionHistoryAttachChange']=_0x3f9525['id'];}_0x44ce3d['changes']=_0x44ce3d['changes']['concat'](_0x5d1ffe);}return _0x44ce3d;}['_markMarkers'](_0x58d4c2,_0x303b26){for(let _0x595cd0=0x0;_0x595cd0<_0x58d4c2['length'];_0x595cd0++)for(const [_0x2c398a,_0x33dd37]of _0x303b26)_0x33dd37['start']['isEqual'](_0x58d4c2[_0x595cd0]['previousPosition'])&&_0x58d4c2[_0x595cd0]['markersStart']['push'](_0x2c398a),_0x33dd37['end']['isEqual'](_0x58d4c2[_0x595cd0]['nextPosition'])&&_0x58d4c2[_0x595cd0]['markersEnd']['push'](_0x2c398a);}['_joinTapes'](_0x2f85c6,_0x5df63b){let _0x437fbe=[],_0x3b6bae=0x0,_0x5aeda1=0x0;for(;_0x3b6bae<_0x2f85c6['length']||_0x5aeda1<_0x5df63b['length'];){const _0x464161=_0x2f85c6[_0x3b6bae]||{},_0x531d7b=_0x5df63b[_0x5aeda1]||{};if(_0x464161['id']==_0x531d7b['id'])_0x3b6bae++,_0x5aeda1++,_0x437fbe['push'](_0x464161);else{if(_0x531d7b['isRemoved']&&_0x464161['isAdded']){const {commonTape:_0x327824,iEnd:_0x14c677,jEnd:_0x12fccc}=this['_threeWayMerge'](_0x2f85c6,_0x3b6bae,_0x5df63b,_0x5aeda1);_0x437fbe=_0x437fbe['concat'](_0x327824),_0x3b6bae=_0x14c677,_0x5aeda1=_0x12fccc;}else _0x531d7b['isRemoved']?(_0x5aeda1++,_0x437fbe['push'](_0x531d7b)):(_0x3b6bae++,_0x437fbe['push'](_0x464161));}}return _0x437fbe;}['_markSuggestions'](_0x3860f0,_0x57e418){const _0x15ddaf=[];for(let _0x1f47bf=0x0;_0x1f47bf<_0x3860f0['length'];_0x1f47bf++){for(let _0x27c958=0x0;_0x27c958<_0x3860f0[_0x1f47bf]['markersStart']['length'];_0x27c958++){const _0x2067f2=_0x3860f0[_0x1f47bf]['markersStart'][_0x27c958];if(!_0x57e418['has'](_0x2067f2))continue;const {group:_0x2c88ab,type:_0x4b9fcd,authorId:_0x1574b5}=_0x352e27(_0x2067f2);'revision-suggestion'!=_0x2c88ab||'insertion'!=_0x4b9fcd&&'deletion'!=_0x4b9fcd||(_0x15ddaf['unshift']({'type':_0x4b9fcd,'name':_0x2067f2,'userId':_0x1574b5}),_0x3860f0[_0x1f47bf]['markersStart']['splice'](_0x27c958,0x1),_0x27c958--);}_0x5bd13f(_0x3860f0[_0x1f47bf]);for(let _0x22aeac=0x0;_0x22aeac<_0x3860f0[_0x1f47bf]['markersEnd']['length'];_0x22aeac++){const _0x23c27d=_0x3860f0[_0x1f47bf]['markersEnd'][_0x22aeac];if(!_0x57e418['has'](_0x23c27d))continue;const {group:_0x183ae4,type:_0x166625}=_0x352e27(_0x23c27d);if('revision-suggestion'!=_0x183ae4||'insertion'!=_0x166625&&'deletion'!=_0x166625)continue;_0x3860f0[_0x1f47bf]['markersEnd']['splice'](_0x22aeac,0x1),_0x22aeac--;const _0x2f0fc5=_0x15ddaf['findIndex'](_0x2d8086=>_0x2d8086['name']==_0x23c27d);_0x2f0fc5>-0x1&&_0x15ddaf['splice'](_0x2f0fc5,0x1);}}function _0x352e27(_0x48230c){const _0x37fe94=_0x48230c['split'](':');return{'group':_0x37fe94[0x0],'type':_0x37fe94[0x1],'subType':_0x37fe94['length']>=0x5?_0x37fe94[0x2]:null,'id':_0x37fe94['length']<0x5?_0x37fe94[0x2]:_0x37fe94[0x3],'authorId':_0x37fe94['length']<0x5?_0x37fe94[0x3]:_0x37fe94[0x4],'markerCount':0x6==_0x37fe94['length']?_0x37fe94[0x5]:null};}function _0x5bd13f(_0x3cca6e){for(let _0x275348=0x0;_0x275348<_0x15ddaf['length'];_0x275348++){if(_0x3cca6e['isAdded']&&'insertion'==_0x15ddaf[_0x275348]['type'])return _0x3cca6e['isAddSuggestion']=_0x15ddaf[_0x275348],void delete _0x3cca6e['isAdded'];if(!_0x3cca6e['isAdded']&&!_0x3cca6e['isRemoved']&&'deletion'==_0x15ddaf[_0x275348]['type'])return void(_0x3cca6e['isRemoveSuggestion']=_0x15ddaf[_0x275348]);}}}['_setDistance'](_0x54201c,_0x49ca04){let _0x4d4791=0x0,_0x1ed8f1=!0x1;const _0x58680a=new Map();for(const _0x1ba81b of _0x54201c)_0x1ba81b[_0x49ca04]?_0x1ed8f1&&(_0x4d4791++,_0x1ed8f1=!0x1):(_0x4d4791++,_0x1ed8f1=!0x0),_0x58680a['set'](_0x1ba81b['id'],_0x4d4791);for(let _0x231e38=0x0;_0x231e38<_0x54201c['length'];_0x231e38++){if('isRemoved'==_0x49ca04&&_0x54201c[_0x231e38]['isAdded']||'isAdded'==_0x49ca04&&_0x54201c[_0x231e38]['isRemoved'])continue;if('text'==_0x54201c[_0x231e38]['type']){_0x54201c[_0x231e38]['distance']=0x0;continue;}const _0x1ae26c=_0x58680a['get'](_0x54201c[_0x231e38]['pairId']),_0x45923b=_0x58680a['get'](_0x54201c[_0x231e38]['id']);_0x54201c[_0x231e38]['distance']=_0x1ae26c-_0x45923b;}}['_getRevisionsRange'](_0x44bfd7,_0x3bb5dd,_0x253600=!0x1){const _0x23c13b=[];let _0x75de32=this['repository']['getIndex'](_0x44bfd7),_0x1fe8a8=this['repository']['getIndex'](_0x3bb5dd);for(-0x1==_0x1fe8a8&&(_0x1fe8a8=this['repository']['_revisions']['length'],_0x253600=!0x1);_0x75de32<_0x1fe8a8;)_0x23c13b['push'](this['repository']['getRevision'](_0x75de32)),_0x75de32++;return _0x253600&&_0x23c13b['push'](this['repository']['getRevision'](_0x75de32)),_0x23c13b;}['_threeWayMerge'](_0x352e06,_0x1416c9,_0x3593df,_0x198fcb){const _0xe06f65=this['editor']['model']['schema'];let _0x2e95c8=_0x1416c9;for(;_0x352e06[_0x2e95c8]&&_0x352e06[_0x2e95c8]['isAdded'];)_0x2e95c8++;let _0x34f942=_0x198fcb;for(;_0x3593df[_0x34f942]&&_0x3593df[_0x34f942]['isRemoved'];)_0x34f942++;_0x25c4fd(_0x352e06,_0x1416c9,_0x2e95c8),_0x25c4fd(_0x3593df,_0x198fcb,_0x34f942);const _0x382cb8=_0x3593df['slice'](_0x198fcb,_0x34f942)['concat'](_0x352e06['slice'](_0x1416c9,_0x2e95c8));return _0x382cb8['sort']((_0x243001,_0x5b1102)=>_0x243001['side']!=_0x5b1102['side']?_0x243001['side']-_0x5b1102['side']:_0x243001['level']!=_0x5b1102['level']?_0x243001['level']-_0x5b1102['level']:_0x243001['distance']!=_0x5b1102['distance']?_0x5b1102['distance']-_0x243001['distance']:!!_0x243001['isAdded']!=!!_0x5b1102['isAdded']?-0x1==_0x243001['side']||0x0==_0x243001['side']?_0x243001['isAdded']?-0x1:0x1:_0x243001['isAdded']?0x1:-0x1:_0x243001['index']-_0x5b1102['index']),{'commonTape':_0x382cb8,'iEnd':_0x2e95c8,'jEnd':_0x34f942};function _0x25c4fd(_0xd40e69,_0x3e5263,_0x52f26f){let _0x2448ee=-0x1,_0x3c8096=Number['POSITIVE_INFINITY'],_0x2a0302=!0x0;for(let _0x2f63b7=_0x3e5263;_0x2f63b7<_0x52f26f;_0x2f63b7++)if(_0xe06f65['isInline'](_0xd40e69[_0x2f63b7]['item'])||(_0x2a0302=!0x1),_0xd40e69[_0x2f63b7]['item']['startIndex']<_0x3e5263&&(_0x2448ee=_0x2f63b7),_0xd40e69[_0x2f63b7]['item']['endIndex']>=_0x52f26f){_0x3c8096=_0x2f63b7;break;}_0x2a0302&&(_0x2448ee=_0x52f26f-0x1);for(let _0x2e3d01=_0x3e5263;_0x2e3d01<_0x52f26f;_0x2e3d01++)_0xd40e69[_0x2e3d01]['side']=_0x2e3d01<=_0x2448ee?-0x1:_0x2e3d01<_0x3c8096?0x0:0x1,_0xd40e69[_0x2e3d01]['index']=_0x2e3d01;let _0x194d5f=0x0;for(let _0x2c4ffd=_0x3e5263;_0x2c4ffd<=_0x2448ee;_0x2c4ffd++)0x0==_0xd40e69[_0x2c4ffd]['distance']?_0xd40e69[_0x2c4ffd]['level']=_0x194d5f:(_0x194d5f++,_0xd40e69[_0x2c4ffd]['level']=_0x194d5f,_0x194d5f++);for(let _0x4a554d=_0x3e5263;_0x4a554d<_0x52f26f;_0x4a554d++)0x0==_0xd40e69[_0x4a554d]['side']&&(_0xd40e69[_0x4a554d]['level']=_0x194d5f);_0x194d5f=0x0;for(let _0x427675=_0x52f26f-0x1;_0x427675>=_0x3c8096;_0x427675--)0x0==_0xd40e69[_0x427675]['distance']?_0xd40e69[_0x427675]['level']=_0x194d5f:(_0x194d5f--,_0xd40e69[_0x427675]['level']=_0x194d5f,_0x194d5f--);}}['_fixObsoleteTags'](_0x345f8e){const _0x210add=new Map(),_0x4960fb=this['editor']['model']['schema'];for(let _0x398ab0=0x1;_0x398ab0<_0x345f8e['length'];_0x398ab0++){let _0xdd64b5,_0x572fb9,_0x18d456;const _0x18e4f6=_0x345f8e[_0x398ab0],_0x42ddde=_0x345f8e[_0x398ab0-0x1];if('text'==_0x18e4f6['type'])continue;if(_0x18e4f6['type']!=_0x42ddde['type'])continue;if(!_0x4960fb['isBlock'](_0x42ddde['item'])||_0x4960fb['isLimit'](_0x42ddde['item']))continue;if(!_0x4960fb['isBlock'](_0x18e4f6['item'])||_0x4960fb['isLimit'](_0x18e4f6['item']))continue;if((_0x345f8e[_0x398ab0]['isAdded']||_0x345f8e[_0x398ab0]['isAddSuggestion'])&&_0x345f8e[_0x398ab0-0x1]['isRemoved'])_0xdd64b5=_0x345f8e[_0x398ab0],_0x572fb9=_0x345f8e[_0x398ab0-0x1],_0x18d456=_0x398ab0-0x1;else{if(!_0x345f8e[_0x398ab0]['isRemoved']||!_0x345f8e[_0x398ab0-0x1]['isAdded']&&!_0x345f8e[_0x398ab0-0x1]['isAddSuggestion'])continue;_0xdd64b5=_0x345f8e[_0x398ab0-0x1],_0x572fb9=_0x345f8e[_0x398ab0],_0x18d456=_0x398ab0;}const _0x398b51=_0xdd64b5['level']==_0x572fb9['level'],_0x577388=Math['abs'](_0xdd64b5['level'])<Math['abs'](_0x572fb9['level'])&&0x0==_0x572fb9['distance'];(_0x398b51||_0x577388)&&(_0x210add['set'](_0x572fb9['id'],_0xdd64b5['id']),_0x345f8e['splice'](_0x18d456,0x1),_0x398ab0--,_0xdd64b5['isAdded']=!0x1);}for(let _0x384866=0x0;_0x384866<_0x345f8e['length'];_0x384866++)_0x210add['has'](_0x345f8e[_0x384866]['pairId'])&&(_0x345f8e[_0x384866]['pairId']=_0x210add['get'](_0x345f8e[_0x384866]['pairId']));}['_removeMissingPairs'](_0x567a47){const _0x3c4ae8=new Set(_0x567a47['map'](_0x4862f7=>_0x4862f7['id']));for(let _0x39dc8e=0x0;_0x39dc8e<_0x567a47['length'];_0x39dc8e++)_0x3c4ae8['has'](_0x567a47[_0x39dc8e]['pairId'])||0x0==_0x567a47[_0x39dc8e]['distance']||(_0x567a47[_0x39dc8e]['isIncorrect']=!0x0);return _0x567a47['filter'](_0x140522=>!_0x140522['isIncorrect']);}['_markMismatchedRemovedTags'](_0x11c25b){const _0x2e3468=new Set();for(let _0x3c641b=0x0;_0x3c641b<_0x11c25b['length'];_0x3c641b++){if(_0x2e3468['has'](_0x11c25b[_0x3c641b]['id'])&&_0x11c25b[_0x3c641b]['isRemoved']&&(_0x11c25b[_0x3c641b]['isIncorrect']=!0x0),_0x11c25b[_0x3c641b]['isIncorrect'])continue;if(0x0==_0x11c25b[_0x3c641b]['distance'])continue;if('elementStart'!=_0x11c25b[_0x3c641b]['type'])continue;if(null==_0x11c25b[_0x3c641b]['pairId'])continue;let _0xd2954=_0x3c641b+0x1,_0x2dff5e=0x0;for(;_0x11c25b[_0xd2954]['id']!=_0x11c25b[_0x3c641b]['pairId'];)'elementStart'==_0x11c25b[_0xd2954]['type']?_0x2dff5e++:'elementEnd'==_0x11c25b[_0xd2954]['type']&&_0x2dff5e--,_0xd2954++;if(0x0!=_0x2dff5e){if(_0x11c25b[_0x3c641b]['isRemoved'])_0x11c25b[_0x3c641b]['isIncorrect']=!0x0;else{for(;_0xd2954!=_0x3c641b;)_0x11c25b[_0xd2954]['isRemoved']&&0x0!=_0x11c25b[_0xd2954]['distance']&&(_0x11c25b[_0xd2954]['isIncorrect']=!0x0,_0x2e3468['add'](_0x11c25b[_0xd2954]['pairId'])),_0xd2954--;}}}return _0x11c25b['filter'](_0x4d86d8=>!_0x4d86d8['isIncorrect']);}['_removeUnsupportedChanges'](_0x3df43f){const _0x1c9712=this['editor']['model']['schema'];for(let _0x471718=0x0;_0x471718<_0x3df43f['length'];_0x471718++){if(!(_0x3df43f[_0x471718]['isAdded']||_0x3df43f[_0x471718]['isAddSuggestion']||_0x3df43f[_0x471718]['isRemoved']||_0x3df43f[_0x471718]['isRemoveSuggestion']))continue;if(0x0==_0x3df43f[_0x471718]['distance'])continue;const _0x571b17=_0x3df43f[_0x471718]['item'];_0x1c9712['isBlock'](_0x571b17)||_0x1c9712['isLimit'](_0x571b17)||(_0x3df43f[_0x471718]['isAdded']&&delete _0x3df43f[_0x471718]['isAdded'],_0x3df43f[_0x471718]['isAddSuggestion']&&delete _0x3df43f[_0x471718]['isAddSuggestion'],_0x3df43f[_0x471718]['isRemoveSuggestion']&&delete _0x3df43f[_0x471718]['isRemoveSuggestion'],_0x3df43f[_0x471718]['isRemoved']&&(_0x3df43f[_0x471718]['isIncorrect']=!0x0));}return _0x3df43f['filter'](_0x5d7b48=>!_0x5d7b48['isIncorrect']);}['_makeModelFromTape'](_0x1203e7,_0x5ceeca,_0x5e9320){const _0x7533c2=new mt(),_0x5f1372=[],_0xea64ca=new Map(),_0x1d9eb4=this['editor']['model'],_0x18a09b=_0x1d9eb4['schema'],_0x3dc534=[_0x7533c2],_0x50d6a7={},_0x2f3668={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x30fa61=null;const _0x1ce1f0=[0x0];for(let _0x6da83a=0x0;_0x6da83a<_0x1203e7['length'];_0x6da83a++)if('elementStart'===_0x1203e7[_0x6da83a]['type']){_0x1203e7[_0x6da83a]['previousPosition']=_0x1d9eb4['createPositionFromPath'](_0x7533c2,_0x1ce1f0);const _0x1039c0=new ft(_0x1203e7[_0x6da83a]['item']['name'],_0x1203e7[_0x6da83a]['item']['getAttributes']());_0x3dc534[0x0]['_appendChild'](_0x1039c0),_0x1ce1f0['push'](0x0),_0x3dc534['unshift'](_0x1039c0),_0x1203e7[_0x6da83a]['nextPosition']=_0x1d9eb4['createPositionFromPath'](_0x7533c2,_0x1ce1f0);}else'elementEnd'===_0x1203e7[_0x6da83a]['type']?(_0x3dc534['shift'](),_0x1203e7[_0x6da83a]['previousPosition']=_0x1d9eb4['createPositionFromPath'](_0x7533c2,_0x1ce1f0),_0x1ce1f0['pop'](),_0x1ce1f0[_0x1ce1f0['length']-0x1]++,_0x1203e7[_0x6da83a]['nextPosition']=_0x1d9eb4['createPositionFromPath'](_0x7533c2,_0x1ce1f0)):(_0x1203e7[_0x6da83a]['previousPosition']=_0x1d9eb4['createPositionFromPath'](_0x7533c2,_0x1ce1f0),_0x30fa61?_0x30fa61['_data']+=_0x1203e7[_0x6da83a]['item']['data']:_0x30fa61=new wt(_0x1203e7[_0x6da83a]['item']['data'],_0x1203e7[_0x6da83a]['item']['getAttributes']()),_0x1203e7[_0x6da83a+0x1]&&'text'===_0x1203e7[_0x6da83a+0x1]['type']&&_0x4ddbe6(_0x30fa61,_0x1203e7[_0x6da83a+0x1]['item'])||(_0x3dc534[0x0]['_appendChild'](_0x30fa61),_0x30fa61=null),_0x1ce1f0[_0x1ce1f0['length']-0x1]+=_0x1203e7[_0x6da83a]['item']['offsetSize'],_0x1203e7[_0x6da83a]['nextPosition']=_0x1d9eb4['createPositionFromPath'](_0x7533c2,_0x1ce1f0));for(let _0x43cbc4=0x0;_0x43cbc4<_0x1203e7['length'];_0x43cbc4++){const _0x3bccf9=_0x1203e7[_0x43cbc4]['previousPosition'],_0x1632a8=_0x1203e7[_0x43cbc4]['nextPosition'];for(const _0x53eaf1 of _0x1203e7[_0x43cbc4]['markersStart'])_0xea64ca['set'](_0x53eaf1,{'start':_0x3bccf9,'end':null});_0x62a8a7('isRemoveSuggestion',_0x43cbc4,_0x3bccf9,_0x1632a8),_0x62a8a7('isAddSuggestion',_0x43cbc4,_0x3bccf9,_0x1632a8),_0x62a8a7('isRemoved',_0x43cbc4,_0x3bccf9,_0x1632a8),_0x62a8a7('isAdded',_0x43cbc4,_0x3bccf9,_0x1632a8);for(const _0x58703e of _0x1203e7[_0x43cbc4]['markersEnd']){_0xea64ca['get'](_0x58703e)['end']=_0x1632a8;}}for(const [_0x5c0fc0,_0x2b49a3]of _0xea64ca){const _0x21827f=this['editor']['model']['createRange'](_0x2b49a3['start'],_0x2b49a3['end']);_0x7533c2['markers']['set'](_0x5c0fc0,_0x21827f);}return _0x5f1372['sort']((_0x2854a1,_0x3ba6a4)=>{const _0x448eb5=_0x7533c2['markers']['get']('revision:'+_0x2854a1['id']),_0xee39b=_0x7533c2['markers']['get']('revision:'+_0x3ba6a4['id']);return _0x448eb5['start']['isBefore'](_0xee39b['start'])?-0x1:_0x448eb5['start']['isAfter'](_0xee39b['start'])?0x1:_0x448eb5['end']['isBefore'](_0xee39b['end'])?-0x1:_0x448eb5['end']['isAfter'](_0xee39b['end'])?0x1:'add'===_0x2854a1['type']?-0x1:0x1;}),{'root':_0x7533c2,'changes':_0x5f1372};function _0x62a8a7(_0x49d8b9,_0x4add00,_0x56a488,_0x1049a9){const _0x481092=!!_0x1203e7[_0x4add00][_0x49d8b9],_0x5468c7=_0x481092?_0x1203e7[_0x4add00][_0x49d8b9]['userId']:null,_0x57ae5e=_0x4add00===_0x1203e7['length']-0x1,_0x180df9=_0x2f3668[_0x49d8b9][0x0],_0x5cbbc8=_0x18a09b['isObject'](_0x1203e7[_0x4add00]['item']);!_0x50d6a7[_0x49d8b9]&&_0x481092?_0x50d6a7[_0x49d8b9]={'start':_0x56a488,'tapeItem':_0x1203e7[_0x4add00],'userId':_0x5468c7,'type':_0x49d8b9}:_0x50d6a7[_0x49d8b9]&&!_0x481092?(_0x50d6a7[_0x49d8b9]['end']=_0x56a488,_0x444077(_0x50d6a7[_0x49d8b9]),_0x50d6a7[_0x49d8b9]=null):_0x50d6a7[_0x49d8b9]&&_0x481092&&_0x50d6a7[_0x49d8b9]['userId']!==_0x5468c7&&(_0x50d6a7[_0x49d8b9]['end']=_0x56a488,_0x180df9&&_0x180df9['userId']===_0x50d6a7[_0x49d8b9]['userId']||_0x444077(_0x50d6a7[_0x49d8b9]),_0x50d6a7[_0x49d8b9]={'start':_0x56a488,'tapeItem':_0x1203e7[_0x4add00],'userId':_0x5468c7,'type':_0x49d8b9}),_0x50d6a7[_0x49d8b9]&&_0x5cbbc8&&('elementStart'!==_0x1203e7[_0x4add00]['type']||_0x180df9&&_0x180df9['userId']===_0x5468c7||_0x2f3668[_0x49d8b9]['unshift']({'userId':_0x5468c7,'object':_0x1203e7[_0x4add00]['item'],'change':_0x50d6a7[_0x49d8b9]}),'elementEnd'===_0x1203e7[_0x4add00]['type']&&_0x180df9&&_0x180df9['object']===_0x1203e7[_0x4add00]['item']&&(_0x2f3668[_0x49d8b9]['shift'](),_0x50d6a7[_0x49d8b9]=_0x180df9['change'])),_0x50d6a7[_0x49d8b9]&&_0x57ae5e&&(_0x50d6a7[_0x49d8b9]['end']=_0x1049a9,_0x444077(_0x50d6a7[_0x49d8b9]),_0x50d6a7[_0x49d8b9]=null);}function _0x444077({start:_0x3c556c,end:_0x15b66e,tapeItem:_0x41db88,userId:_0x5c8b61,type:_0x3b1b4d}){const _0x4e1bc6=_0x41db88['item'],_0x485918=_0x1d9eb4['schema']['isBlock'](_0x4e1bc6)&&!_0x1d9eb4['schema']['isLimit'](_0x4e1bc6),_0x1b3595=_0x3c556c['nodeAfter']==_0x15b66e['parent']&&_0x15b66e['isAtStart'];if(_0x485918&&_0x1b3595)return;const _0x186b85=_0x1d9eb4['createRange'](_0x3c556c,_0x15b66e),_0x232ab5=_0x5ceeca['get'](_0x5c8b61),_0x49faaf=new r({'author':_0x232ab5,'type':'isAdded'==_0x3b1b4d||'isAddSuggestion'==_0x3b1b4d?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x3b1b4d||'isRemoveSuggestion'==_0x3b1b4d},'createdAt':new Date(),'rootName':_0x5e9320});_0x5f1372['push'](_0x49faaf),_0x7533c2['markers']['set']('revision:'+_0x49faaf['id'],_0x186b85);}function _0x4ddbe6(_0x4f173a,_0x5b8904){const _0x442cdc=_0x4f173a['getAttributes'](),_0x417b7e=_0x5b8904['getAttributes']();for(const _0x471c3f of _0x442cdc){if(_0x471c3f[0x1]!==_0x5b8904['getAttribute'](_0x471c3f[0x0]))return!0x1;_0x417b7e['next']();}return _0x417b7e['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x1d8efd=>{const _0x388929=_0x1d8efd['markerName']['split'](':')[0x1],_0x17d6b7=this['_getChangeFromId'](_0x388929);if(!_0x17d6b7)return null;const _0x3094b4='add'==_0x17d6b7['type']?'insertion':'deletion',_0x5852d5=['ck-suggestion-marker','ck-suggestion-marker-'+_0x3094b4];return _0x17d6b7['data']['isSuggestion']&&_0x5852d5['push']('ck-suggestion-marker-'+_0x3094b4+'-new'),this['activeChange']==_0x17d6b7&&_0x5852d5['push']('ck-suggestion-marker--active'),{'classes':_0x5852d5,'attributes':{'data-change-id':_0x388929}};}}),this['editor']['conversion']['for']('upcast')['add'](_0xba4457=>{_0xba4457['on']('element:pre',(_0x1df1aa,_0x4cf276,_0x7de4f1)=>{const _0x280825=_0x4cf276['viewItem']['getChild'](0x0);if(!_0x280825||!_0x280825['is']('element','code'))return;if(!_0x7de4f1['consumable']['consume'](_0x280825,{'attributes':['vid_start','vid_end']}))return;const _0x53ada9=_0x4cf276['modelRange']['start']['nodeAfter'];_0x7de4f1['writer']['setAttribute']('vid_start',_0x280825['getAttribute']('vid_start'),_0x53ada9),_0x7de4f1['writer']['setAttribute']('vid_end',_0x280825['getAttribute']('vid_end'),_0x53ada9);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0xe9f7e8=>{_0xe9f7e8['on']('element',(_0x5e901b,_0x5d7f0b,_0x54e133)=>{if(!_0x54e133['consumable']['consume'](_0x5d7f0b['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x5d7f0b['modelRange']['isCollapsed'])return;const _0x5d3836=_0x5d7f0b['modelRange']['start']['nodeAfter'];_0x5d3836['hasAttribute']('vid_start')||_0x5d3836['hasAttribute']('vid')||(_0x54e133['writer']['setAttribute']('vid_start',_0x5d7f0b['viewItem']['getAttribute']('vid_start'),_0x5d3836),_0x54e133['writer']['setAttribute']('vid_end',_0x5d7f0b['viewItem']['getAttribute']('vid_end'),_0x5d3836));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x30b71a=>_0x30b71a['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x4dc37e,[,_0x2a4f65])=>{['vid_start','vid_end','vid']['includes'](_0x2a4f65)&&(_0x4dc37e['return']=!0x0,_0x4dc37e['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x5aa6d8=>{_0x5aa6d8['on']('attribute:vid',(_0x5f18de,_0x5e706f,_0x2adac8)=>{if('\x20'!=_0x5e706f['item']['data']||_0x5e706f['item']['parent']['maxOffset']>0x1)return;if(!_0x2adac8['consumable']['consume'](_0x5e706f['item'],_0x5f18de['name']))return;const _0x232c72=_0x2adac8['writer'],_0x384d72=_0x2adac8['mapper']['toViewRange'](_0x5e706f['range']);_0x232c72['wrap'](_0x384d72,_0x232c72['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0xf61b8){const _0xdef64d=_0xf61b8['plugins']['get']('RevisionViewer');return(_0x342069,_0x2eaa2c,_0x47105f)=>{const _0x1f4c50=_0x2eaa2c['markerName']['split'](':')[0x1],_0x31b3e7=_0xdef64d['_getChangeFromId'](_0x1f4c50);if(!_0x31b3e7)return null;const _0x5b2616='add'==_0x31b3e7['type']?'split':'merge';if(!_0x47105f['consumable']['test'](_0x2eaa2c['markerRange'],_0x342069['name']))return;const _0x2de529=_0x2eaa2c['markerRange']['getWalker'](),_0x40f7b2=_0x2eaa2c['markerRange']['start'],_0xaddaf5=_0xf61b8['model']['schema'];let _0xd39a8f=null,_0x3457ab=null,_0x742aaa=!0x1,_0x46133c=!0x1;for(const _0x3d63eb of _0x2de529){const _0x5a1b29=_0x3d63eb['item'];_0x742aaa=_0x742aaa||_0xaddaf5['isContent'](_0x5a1b29);const _0x5b1886=_0x47105f['mapper']['toViewElement'](_0x5a1b29);if(_0x5b1886&&_0x5b1886['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3d63eb['type']&&(_0xaddaf5['isBlock'](_0x5a1b29)&&!_0xaddaf5['isLimit'](_0x5a1b29)&&(_0x5a1b29['nextSibling']||_0x40f7b2['isAtEnd']?_0xd39a8f&&_0xd39a8f['parent']==_0x5a1b29||(_0xd39a8f=_0x5a1b29,_0x2eefbe(_0x3d63eb['previousPosition']),_0x46133c=!0x0):_0x3457ab=_0x3457ab||_0x3d63eb['previousPosition']));}function _0x2eefbe(_0xdef9b0){const _0x473f2e=_0x47105f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5b2616}),_0x55dd62=_0x47105f['mapper']['toViewPosition'](_0xdef9b0);_0x31b3e7['data']['isSuggestion']&&_0x47105f['writer']['addClass']('ck-suggestion-marker-'+_0x5b2616+'-new',_0x473f2e),_0xdef64d['activeChange']==_0x31b3e7&&_0x47105f['writer']['addClass']('ck-suggestion-marker--active',_0x473f2e),_0x47105f['writer']['insert'](_0x55dd62,_0x473f2e),_0x47105f['mapper']['bindElementToMarker'](_0x473f2e,_0x2eaa2c['markerName']);}_0x742aaa||_0x46133c||!_0x3457ab||_0x2eefbe(_0x3457ab);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x46c7dc,_0x668d1f,_0x4a6588)=>{const _0x1fe7ed=_0x4a6588['mapper']['markerNameToElements'](_0x668d1f['markerName']);if(_0x1fe7ed){for(const _0x57d4cb of _0x1fe7ed)(_0x57d4cb['hasClass']('ck-suggestion-marker-split')||_0x57d4cb['hasClass']('ck-suggestion-marker-merge'))&&(_0x4a6588['mapper']['unbindElementFromMarkerName'](_0x57d4cb,_0x668d1f['markerName']),_0x4a6588['writer']['remove'](_0x57d4cb));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x2b1da6,_0x532d8b,_0x1192b5)=>{const _0x2dbde2=_0x532d8b['markerName']['split'](':')[0x1],_0x571c63=this['_getChangeFromId'](_0x2dbde2);if(!_0x571c63)return null;const _0x12ae69='add'==_0x571c63['type']?'split':'merge';if(_0x1192b5['consumable']['test'](_0x532d8b['markerRange'],_0x2b1da6['name']))for(const _0x36d155 of _0x532d8b['markerRange']['getItems']()){if(!_0x36d155['is']('element','softBreak'))continue;const _0x12e532=_0x1192b5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x12ae69}),_0x25521e=_0x1192b5['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x36d155));_0x571c63['data']['isSuggestion']&&_0x1192b5['writer']['addClass']('ck-suggestion-marker-'+_0x12ae69+'-new',_0x12e532),this['activeChange']==_0x571c63&&_0x1192b5['writer']['addClass']('ck-suggestion-marker--active',_0x12e532),_0x1192b5['writer']['insert'](_0x25521e,_0x12e532),_0x1192b5['mapper']['bindElementToMarker'](_0x12e532,_0x532d8b['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x573a9c=>{for(const _0x38389a of this['editor']['model']['document']['getRootNames']()){const _0x376f71=this['editor']['model']['document']['getRoot'](_0x38389a),_0x50f364=this['editor']['editing']['view']['document']['getRoot'](_0x38389a);if(_0x50f364){const _0x53c473=_0x376f71['getAttribute']('revisionHistoryAttachChange');if(_0x573a9c['removeAttribute']('data-change-id',_0x50f364),_0x573a9c['removeClass']('ck-revision-history-root-add',_0x50f364),_0x573a9c['removeClass']('ck-revision-history-root-remove',_0x50f364),_0x573a9c['removeClass']('ck-revision-history-root--active',_0x50f364),_0x53c473){const _0xf94aa2=this['_getChangeFromId'](_0x53c473);if(!_0xf94aa2)return null;_0x573a9c['setAttribute']('data-change-id',_0x53c473,_0x50f364),_0x573a9c['addClass']('ck-revision-history-root-'+_0xf94aa2['type'],_0x50f364),this['activeChange']==_0xf94aa2&&_0x573a9c['addClass']('ck-revision-history-root--active',_0x50f364);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x4441f4=>'revision-comment:'+_0x4441f4,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x96d6f0=>'revision-suggestion:'+_0x96d6f0,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x5ad257=>({'name':'suggestion:'+_0x5ad257,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x29e424=>{const _0xadaf3e=_0x29e424['markerName']['split'](':')[0x1];return'insertion'!=_0xadaf3e&&'deletion'!=_0xadaf3e?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0xadaf3e]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x55902d,_0x270e77,_0x433345)=>{const _0x3d0fd1=_0x433345['mapper']['markerNameToElements'](_0x270e77['markerName']);if(_0x3d0fd1){for(const _0x226702 of _0x3d0fd1)_0x226702['is']('uiElement')&&(_0x433345['mapper']['unbindElementFromMarkerName'](_0x226702,_0x270e77['markerName']),_0x433345['writer']['remove'](_0x226702));}},{'priority':'high'});}['_getChangeFromId'](_0x1b8847){return this['_changeIdToChange']['get'](_0x1b8847);}['_getViewForChange'](_0x548f8b){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x548f8b),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x3ace52,_0x34b398,_0x5a9353,_0x52afb7)=>{_0x52afb7&&this['_balloon']['remove'](_0x52afb7),_0x5a9353&&(this['_balloon']['add']({'view':_0x5a9353,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x527101=this['editor']['editing'],_0x5e0019=this['_getChangeFromId'](_0x5a9353['changeId']);let _0x3ef564;if(_0x5e0019['data']['isOnRoot']){const _0x184d7c=_0x527101['view']['getDomRoot'](_0x5e0019['rootName']);_0x3ef564=Array['from'](_0x184d7c['getClientRects']());}else{const _0x41fdf5=this['editor']['model']['markers']['get']('revision:'+_0x5a9353['changeId']);_0x3ef564=Array['from'](_0x527101['mapper']['markerNameToElements'](_0x41fdf5['name']))['map'](_0x36ada9=>_0x527101['view']['domConverter']['mapViewToDom'](_0x36ada9))['map'](_0xaa8461=>Array['from'](_0xaa8461['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x3ef564[0x0];return _0x3ef564['find'](_0x4ef243=>_0x4ef243['top']-0x3<=this['_activeViewTarget']['y']&&_0x4ef243['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4ef243['left']-0x3<=this['_activeViewTarget']['x']&&_0x4ef243['right']+0x3>=this['_activeViewTarget']['x'])||_0x3ef564[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x5d3bdf,_0x49d999,_0x3a036a,_0x10d75b)=>{this['activeView']=_0x3a036a?this['_getViewForChange'](_0x3a036a):null,this['editor']['model']['change'](()=>{const _0x41dc20=this['editor']['editing'];_0x10d75b&&(_0x10d75b['data']['isOnRoot']?_0x41dc20['view']['change'](_0x2f772c=>{_0x2f772c['removeClass']('ck-revision-history-root--active',_0x41dc20['view']['document']['getRoot'](_0x10d75b['rootName']));}):_0x41dc20['reconvertMarker']('revision:'+_0x10d75b['id'])),_0x3a036a&&(_0x3a036a['data']['isOnRoot']?_0x41dc20['view']['change'](_0x48718d=>{_0x48718d['addClass']('ck-revision-history-root--active',_0x41dc20['view']['document']['getRoot'](_0x3a036a['rootName']));}):_0x41dc20['reconvertMarker']('revision:'+_0x3a036a['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x28e74f,_0x555903)=>{if(this['activeChange'])return;const _0x12ab21=this['_findChangeIdFromDomTarget'](_0x555903['target']),_0x37e80e=this['_changeIdToChange']['get'](_0x12ab21);_0x37e80e?(this['_activeViewTarget']={'x':_0x555903['domEvent']['x'],'y':_0x555903['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x37e80e)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x1b79dd,_0x40046b)=>{const _0x116bbb=this['_findChangeIdFromDomTarget'](_0x40046b['target']),_0x18d2fc=this['_changeIdToChange']['get'](_0x116bbb);_0x18d2fc?(this['_activeViewTarget']={'x':_0x40046b['domEvent']['x'],'y':_0x40046b['domEvent']['y']},_0x18d2fc===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x18d2fc):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x36aee6){do{const _0x53b34b=_0x36aee6['getAttribute']('data-change-id');if(_0x53b34b)return _0x53b34b;_0x36aee6=_0x36aee6['parent'];}while(_0x36aee6);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x1cfbfa=>{for(const _0x2def86 of this['editor']['model']['markers'])_0x1cfbfa['removeMarker'](_0x2def86);});}}function Z(_0x588854,_0x20460f){return(_0x137027,_0x4c163d,_0x8c39d1)=>{if(!_0x8c39d1['consumable']['test'](_0x4c163d['markerRange'],_0x137027['name']))return;const _0x152ed3=_0x4c163d['markerRange']['getWalker'](),_0x4943b0=_0x4c163d['markerRange']['start'],_0x32c1da=_0x588854['model']['schema'];let _0xf1658d=null,_0x1ca096=null,_0x4a883f=!0x1,_0x14769d=!0x1;for(const _0x3ed643 of _0x152ed3){const _0x3eb032=_0x3ed643['item'];_0x4a883f=_0x4a883f||_0x32c1da['isContent'](_0x3eb032);const _0xe10788=_0x8c39d1['mapper']['toViewElement'](_0x3eb032);if(_0xe10788&&_0xe10788['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3ed643['type']&&(_0x32c1da['isBlock'](_0x3eb032)&&!_0x32c1da['isLimit'](_0x3eb032)&&(_0x3eb032['nextSibling']||_0x4943b0['isAtEnd']?_0xf1658d&&_0xf1658d['parent']==_0x3eb032||(_0xf1658d=_0x3eb032,_0x5bdd61(_0x3ed643['previousPosition']),_0x14769d=!0x0):_0x1ca096=_0x1ca096||_0x3ed643['previousPosition']));}function _0x5bdd61(_0x23e9e8){const _0x24559f=_0x8c39d1['mapper']['toViewPosition'](_0x23e9e8),_0x54693c=_0x8c39d1['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x20460f});_0x8c39d1['writer']['insert'](_0x24559f,_0x54693c),_0x8c39d1['mapper']['bindElementToMarker'](_0x54693c,_0x4c163d['markerName']);}_0x4a883f||_0x14769d||!_0x1ca096||_0x5bdd61(_0x1ca096);};}class _t extends _0x4fe147{constructor(_0x19a2da){super(_0x19a2da);const _0x25c3d1=_0x19a2da['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x25c3d1,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x25c3d1,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x5faad=this['editor'],_0x2b2c4a=_0x5faad['plugins']['get'](d),_0x4082bb=_0x2b2c4a['isReady']?_0x2b2c4a['diff']['newRevisionId']:null;_0x5faad['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4082bb);}['refresh'](){const {isReady:_0x448ed0,isEnabled:_0x4471b7,repository:_0x26d275,diff:_0x4cfcd4}=this['editor']['plugins']['get'](d),_0x2f7d2c=_0x4cfcd4&&_0x26d275['getLaterVisibleRevision'](_0x4cfcd4['newRevisionId']);this['isEnabled']=_0x448ed0&&_0x4471b7&&Boolean(_0x2f7d2c);}}class yt extends _0x4fe147{['_step'];constructor(_0x3a6ebe,{direction:_0x5cabe1}){super(_0x3a6ebe);const _0x8c7d07=_0x3a6ebe['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x5cabe1?0x1:-0x1,this['listenTo'](_0x8c7d07,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x8c7d07,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x8c7d07,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x2b1bad=this['editor'],_0x1a26eb=_0x2b1bad['plugins']['get'](d),{isNavigationMode:_0x495341,currentChangeNumber:_0x3a9953}=_0x1a26eb;let _0x35afb0;if(_0x1a26eb['activeChange']=_0x495341?_0x1a26eb['diff']['changes']['get'](_0x3a9953+this['_step']):_0x1a26eb['diff']['changes']['first'],_0x1a26eb['activeChange']['data']['isOnRoot'])_0x35afb0=_0x2b1bad['editing']['view']['getDomRoot'](_0x1a26eb['activeChange']['rootName']);else{const _0x8c4841=_0x2b1bad['model']['markers']['get']('revision:'+_0x1a26eb['activeChange']['id']);_0x35afb0=_0x54d996(_0x2b1bad['editing'],_0x8c4841);}_0x58f967({'target':_0x35afb0,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2f79bb,currentChangeNumber:_0x1cf053,numberOfChanges:_0x2121b7,isReady:_0x194e23,isEnabled:_0x2f2a79}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x2f2a79&&_0x194e23&&_0x2121b7)&&(!_0x2f79bb||(0x1===this['_step']?_0x1cf053<_0x2121b7-0x1:_0x1cf053>0x0));}}class _i extends _0x2b16ea{constructor(_0x49429c){super(_0x49429c);const _0x13d64e=this['bindTemplate'],_0x44f750=new _0xe150e(_0x49429c),_0x45d545=new _0xe150e(_0x49429c);this['set']('isNavigationMode',!0x1),this['set']('isReady',!0x1),this['set']('currentChangeNumber',0x0),this['set']('numberOfChanges',0x0),this['set']('isForwardNavigationEnabled',!0x1),this['set']('isBackwardNavigationEnabled',!0x1),this['bind']('_isStatusLabelVisible')['to'](this,'isReady',this,'numberOfChanges',(_0x1dd44b,_0x2ba61f)=>_0x1dd44b&&_0x2ba61f>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3dc09a,_0xc7062c,_0x1871da,_0x519214)=>{if(!_0x3dc09a)return m(_0x49429c,'Loading...');if(!_0x1871da)return m(_0x49429c,'No\x20changes');const _0x35922f=m(_0x49429c,'NUMBER_OF_CHANGES',_0x1871da);return _0x519214?m(_0x49429c,'X_OF_Y_CHANGES',[_0xc7062c+0x1,_0x1871da]):_0x35922f;}),_0x44f750['set']({'label':m(_0x49429c,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x45d545['set']({'label':m(_0x49429c,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x44f750['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x45d545['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x44f750['on']('execute',()=>this['fire']('execute','backward')),_0x45d545['on']('execute',()=>this['fire']('execute','forward')),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-ui','ck-revision-history-ui__changes-navigation']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x13d64e['if']('_isStatusLabelVisible','ck-hidden',_0x50c174=>!_0x50c174)]},'children':[{'text':_0x13d64e['to']('isNavigationMode',_0x35893d=>_0x35893d?m(_0x49429c,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x49429c,'Total')+':\x20')}]},{'text':_0x13d64e['to']('_statusText')}]},new _0x9b3002(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x44f750,_0x45d545]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x29fadc{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x4f2277=this['editor']['editing']['view'];_0x4f2277['change'](_0x216dd1=>{for(const _0x16178b of _0x4f2277['document']['roots'])_0x216dd1['addClass'](ce,_0x16178b);});}['hide'](){const _0x1fba9d=this['editor']['editing']['view'];_0x1fba9d['change'](_0x3974b8=>{for(const _0x1d42cf of _0x1fba9d['document']['roots'])_0x3974b8['removeClass'](ce,_0x1d42cf);});}}class g extends _0x29fadc{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x3ec4d0=this['editor'],_0x41bb74=_0x3ec4d0['plugins']['get'](d),_0x5ed343=_0x3ec4d0['plugins']['get'](le);_0x3ec4d0['ui']['componentFactory']['add']('exitToEditing',_0xd63ce2=>{const _0x26292d=new _0xe150e(_0xd63ce2);return _0x26292d['set']({'label':m(_0xd63ce2,'Back\x20to\x20editing'),'icon':_0x27f629['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x26292d,'execute',()=>{_0x3ec4d0['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x26292d;}),_0x3ec4d0['ui']['componentFactory']['add']('restoreRevision',_0x174e3e=>{const _0x4291d4=new _0xe150e(_0x174e3e);return _0x4291d4['set']({'label':m(_0x174e3e,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4291d4['bind']('isEnabled')['to'](_0x3ec4d0['commands']['get']('restoreRevision')),this['listenTo'](_0x4291d4,'execute',()=>_0x3ec4d0['execute']('restoreRevision')),_0x4291d4;}),_0x3ec4d0['ui']['componentFactory']['add']('changesNavigation',_0x59aff7=>{const _0xd5e68e=new _i(_0x59aff7),_0x3a26cd=_0x3ec4d0['commands']['get']('showPreviousChange'),_0x2401d9=_0x3ec4d0['commands']['get']('showNextChange');return _0xd5e68e['bind']('isBackwardNavigationEnabled')['to'](_0x3a26cd,'isEnabled'),_0xd5e68e['bind']('isForwardNavigationEnabled')['to'](_0x2401d9,'isEnabled'),_0xd5e68e['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x41bb74),this['listenTo'](_0xd5e68e,'execute',(_0x10955e,_0x1a7e2f)=>{_0x3ec4d0['execute']('forward'===_0x1a7e2f?'showNextChange':'showPreviousChange');}),_0xd5e68e;}),_0x5ed343['show'](),_0x41bb74['on']('change:isReady',(_0x684719,_0x151152,_0x18a44f)=>{_0x18a44f?_0x5ed343['hide']():_0x5ed343['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x4ebdbc,_0x4be953){super(_0x4ebdbc,_0x4be953);const _0x20fa7b=this['bindTemplate'];this['set']({'label':m(_0x4ebdbc,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x4ebdbc,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x20fa7b['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x5f2f95=this['fieldView']['element'];this['_tooltipString']=_0x5f2f95['scrollWidth']>_0x5f2f95['clientWidth']&&_0x5f2f95['value']||'';}}class ti extends _0x2b16ea{constructor(_0x501590,_0x177db1,_0x186daa){super(_0x501590);const _0x5266cf=new _0x2f4917();_0x5266cf['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x3d9749=['ck','ck-revision-history-sidebar__revision-author'];_0x186daa&&_0x3d9749['push']('ck-revision-history-sidebar__revision-author_creator');const _0x1f5b07=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x501590,_0x186daa?'Revision\x20creator':'Revision\x20author')},'children':[_0x5266cf,_0x177db1['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x3d9749},'children':_0x1f5b07});}}function ni(_0x3909af,_0x42634f){const _0x36de3e=_0x3909af['bindTemplate'],_0x20529=_0x3909af['locale'],_0x4dcc75=_0x44331d(_0x20529);_0x4dcc75['panelPosition']='sw';const _0x5af552=function(_0x3c290a,_0x62f357){const _0x41c50e=function(_0x91cd39,_0x3e72d1){const _0x54641c=_0x91cd39['locale'],_0x2fc852={'Compare\x20against\x20selected':m(_0x54641c,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x54641c,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x54641c,'Restore\x20this\x20revision')};return _0x3e72d1['map'](_0x426cac=>{const _0x31c29e=_0x2fc852[_0x426cac['name']];return _0x31c29e&&_0x31c29e!==_0x426cac['name']&&(_0x426cac['name']=_0x31c29e),_0x426cac;});}(_0x3c290a,_0x62f357),_0x3d74dc=new _0x2a7a74();for(const _0x116013 of _0x41c50e){const _0x363c9b={'type':'button','model':new to({'label':_0x116013['name'],'class':_0x116013['class'],'withText':!0x0,'role':'menuitem','_action':_0x116013['action']})};_0x363c9b['model']['bind']('isEnabled')['to'](_0x3c290a,'isActionsDropdownOpen',_0x264977=>'function'!=typeof _0x116013['isEnabled']||(!_0x264977||_0x116013['isEnabled'](_0x3c290a))),_0x3d74dc['add'](_0x363c9b);}return _0x3d74dc;}(_0x3909af,_0x42634f);return _0x3909af['bind']('isActionsDropdownOpen')['to'](_0x4dcc75,'isOpen'),_0x4dcc75['buttonView']['set']({'label':m(_0x20529,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x27f629['threeVerticalDots']}),_0x4dcc75['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x36de3e['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x36de3e['to'](_0x5e9af=>_0x5e9af['stopPropagation']())}}),_0x4dcc75['on']('execute',_0x2e2cb=>{_0x3909af['isReady']&&'function'==typeof _0x2e2cb['source']['_action']&&_0x2e2cb['source']['_action'](_0x3909af);}),_0x33009b(_0x4dcc75,_0x5af552,{'role':'menu'}),_0x4dcc75['listenTo'](_0x3909af,'change:isActionsDropdownOpen',(_0x5d4862,_0x7ab019,_0x2a5ff3)=>{if(_0x2a5ff3)for(const _0x308a75 of _0x4dcc75['listView']['items']){const _0x4f3c1d=_0x308a75['children']['first'],_0x2adf4c=_0x42634f['find'](_0x25f104=>_0x25f104['action']===_0x4f3c1d['_action'])['isVisible'];_0x308a75['isVisible']=void 0x0===_0x2adf4c||_0x2adf4c(_0x3909af);}}),_0x4dcc75;}class ai extends/* #__PURE__ -- @preserve */
26
+ _0x5a4708(_0x2b16ea){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x1483e7,_0x2f43bf,_0x79178b,_0x459de0){super(_0x1483e7);const _0x3a5ebb=this['bindTemplate'],_0x37c32b=function(_0x2b1d9e,_0x5a8c99){const _0x2e05ca=Array['from'](_0x5a8c99['authors'])['filter'](_0x923aa3=>_0x923aa3!=_0x5a8c99['creator']);return _0x5a8c99['creator']&&_0x2e05ca['unshift'](_0x5a8c99['creator']),_0x2e05ca['map'](_0x4fea69=>new ti(_0x2b1d9e,_0x4fea69,_0x4fea69==_0x5a8c99['creator']));}(_0x1483e7,_0x2f43bf);this['id']=_0x2f43bf['id'],this['_revision']=_0x2f43bf,this['_requireRevisionName']=_0x459de0,this['bind']('name','createdAt')['to'](_0x2f43bf),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x2173d6=>{return _0x2d48c4=_0x1483e7['uiLanguage'],(_0x5932a8=_0x2173d6)['toLocaleDateString'](_0x2d48c4,{'month':'long','day':'numeric'})+',\x20'+_0x5932a8['toLocaleTimeString'](_0x2d48c4,{'hour':'numeric','minute':'numeric'});var _0x2d48c4,_0x5932a8;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x1483e7,_0x2fc9a6),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0xadf71f=>_0xadf71f||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x10c574,_0xf1bf04)=>_0x10c574&&_0xf1bf04),this['revisionActionsView']=_0x79178b&&_0x79178b['length']?ni(this,_0x79178b):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x3a5ebb['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x3a5ebb['if']('isEnabled','ck-disabled',_0xf30075=>!_0xf30075),_0x3a5ebb['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x3a5ebb['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x3a5ebb['if']('isActionsDropdownOpen','ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this['revisionNameView'],{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x3a5ebb['to']('_createdAtFormatted')}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x37c32b}]},this['revisionActionsView']],'on':{'click':_0x3a5ebb['to'](_0x53fdbc=>{_0x53fdbc['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x52deed=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x52deed,'change',()=>{this['_requireRevisionName']&&!_0x52deed['value']||this['fire']('setName',{'id':this['id'],'name':_0x52deed['value']}),_0x52deed['value']||(_0x52deed['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function di(_0x366ee5,_0x213075){const _0x506759=_0x56bb76['fromJSDate'](_0x366ee5)['setLocale'](_0x213075),_0x990d8e=_0x56bb76['local'](),_0x13ad7d=_0x990d8e['minus']({'days':0x1})['startOf']('day');let _0xfc101f,_0x5ea75b;return _0x506759['hasSame'](_0x990d8e,'day')?(_0xfc101f=_0x506759['startOf']('day')['toJSDate'](),_0x5ea75b=_0x506759['toRelativeCalendar']()):_0x506759['hasSame'](_0x13ad7d,'day')?(_0xfc101f=_0x13ad7d['toJSDate'](),_0x5ea75b=_0x506759['toRelativeCalendar']()):_0x506759['hasSame'](_0x990d8e,'week')?(_0xfc101f=_0x506759['startOf']('week')['toJSDate'](),_0x5ea75b=_0x506759['weekdayLong']||''):_0x506759['hasSame'](_0x990d8e,'year')?(_0xfc101f=_0x506759['startOf']('month')['toJSDate'](),_0x5ea75b=_0x506759['monthLong']||''):(_0xfc101f=_0x506759['startOf']('year')['toJSDate'](),_0x5ea75b=String(_0x506759['year'])),{'startDate':_0xfc101f,'localizedPeriodName':_0x5ea75b};}class mi extends _0x2b16ea{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0xdf175a,_0x24f0e2,_0x290ea5,_0x18aaf7){super(_0xdf175a);const _0x3744cb=di(_0x24f0e2,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x24f0e2,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x290ea5,this['_requireRevisionName']=_0x18aaf7,this['revisionViews']['delegate']('select')['to'](this),this['revisionViews']['delegate']('setName')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x3744cb}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x4484d9){const _0x38520d=new ai(this['locale'],_0x4484d9,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x38520d);}['removeRevision'](_0x2e2605){const _0x1bc622=this['revisionViews']['find'](_0x10163b=>_0x10163b['id']===_0x2e2605['id']);this['revisionViews']['remove'](_0x1bc622);}}class as extends _0x2b16ea{constructor(_0x1ec56f){super(_0x1ec56f);const _0x597758=new _0x2f4917();_0x597758['content']=_0x27f629['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x597758,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x1ec56f,'Revision\x20history')]}]});}}class ci extends _0x2b16ea{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2974c3,_0x365ecc,_0xae8265,_0x1f6fe7){super(_0x2974c3);const _0xe235fa=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x365ecc,this['_revisionActions']=_0xae8265,this['_requireRevisionName']=_0x1f6fe7,this['on']('select',(_0x5e8abd,_0x58e000)=>{this['fire']('revisionSelected',_0x58e000);}),this['on']('setName',(_0x30f23c,_0x2d785c)=>{this['fire']('revisionSetName',_0x2d785c);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x2974c3),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0xe235fa['if']('isEnabled','ck-disabled',_0x51d6c5=>!_0x51d6c5)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x109832 of this['_revisions'])this['_addRevision'](_0x109832);this['_revisions']['on']('add',(_0x4d31c3,_0xe7b48)=>{this['_addRevision'](_0xe7b48);}),this['_revisions']['on']('remove',(_0x527876,_0x59158e)=>{this['_removeRevision'](_0x59158e);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x19fc68=>_0x19fc68['revisionViews']['map'](_0x2dca82=>_0x2dca82))['flat']();}['selectRevision'](_0x1797ef){for(const _0x22be35 of this['revisionViews'])_0x1797ef&&_0x1797ef['id']===_0x22be35['id']?_0x22be35['select']():_0x22be35['deselect']();}['highlightRevisions'](_0x8dce1f){for(const _0x61879e of this['revisionViews'])_0x8dce1f['some'](({id:_0x5ea62c})=>_0x5ea62c===_0x61879e['id'])?_0x61879e['highlight']():_0x61879e['unhighlight']();}['_addRevision'](_0x5bd9e1){const _0x332767=di(_0x5bd9e1['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0xa04ec0=this['timePeriodViews']['get'](0x0);_0xa04ec0&&_0xa04ec0['startDate']['getTime']()===_0x332767['getTime']()||(_0xa04ec0=new mi(this['locale'],_0x332767,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0xa04ec0)),_0xa04ec0['addRevision'](_0x5bd9e1);}['_removeRevision'](_0xb18b77){const _0x2b4be3=di(_0xb18b77['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x2b4be3)['removeRevision'](_0xb18b77);}['_getTimePeriodViewByStartDate'](_0xf1d281){return this['timePeriodViews']['find'](_0x460253=>_0x460253['startDate']['getTime']()===_0xf1d281['getTime']());}}class w extends _0x29fadc{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x5cd6b0){super(_0x5cd6b0),this['_revisionViewer']=_0x5cd6b0['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x4d3fd9=this['_revisionsRepository']['_revisions'],_0x26d928=this['_createRevisionActions'](),_0x3c66bc=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new li(this['editor']['locale'],_0x4d3fd9,_0x26d928,this['editor']['config']['get']('revisionHistory.requireRevisionName')),this['_sidebarView']['on']('revisionSelected',this['_handleRevisionSelected']['bind'](this)),this['_sidebarView']['on']('revisionSetName',this['_handleRevisionSetName']['bind'](this)),this['_sidebarView']['bind']('isEnabled')['to'](this['_revisionViewer']),this['_sidebarView']['timePeriodViews']['on']('add',(_0x6ef374,_0x380c24)=>{_0x380c24['revisionViews']['on']('add',(_0x3ab037,_0x37846e)=>{_0x37846e['bind']('isEnabled','isReady')['to'](this['_revisionViewer']);});}),this['_sidebarView']['render'](),this['listenTo'](this['editor']['data'],'ready',this['_handleEditorDataReady']['bind'](this)),this['listenTo'](this['_revisionViewer'],'change:diff',this['_handleDiffChange']['bind'](this)),_0x3c66bc['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x12d436=this['_revisionsRepository']['getRevision'](0x0);if(_0x12d436){const _0x27f8c8=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x12d436['id']);this['_revisionViewer']['compare'](_0x12d436,_0x27f8c8);}}['_handleRevisionSelected'](_0x16c19d,_0x4cf34f){const _0x56b34a=this['_revisionsRepository']['getRevision'](_0x4cf34f['id']),_0xf835f5=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x56b34a['id']);this['_revisionViewer']['compare'](_0x56b34a,_0xf835f5);}['_handleRevisionSetName'](_0x26beaa,_0x5e1f3a){this['_revisionsRepository']['getRevision'](_0x5e1f3a['id'])['setName'](_0x5e1f3a['name']);}['_handleDiffChange'](_0x2e9449,_0x48c2b7,_0x2999e5){const _0x28169e=this['_revisionsRepository']['getRevisionsInDiff'](_0x2999e5);_0x28169e['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x28169e),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x28169e[0x0]));}['_createRevisionActions'](){const _0x24a739=this['editor'],_0x51fd9a=w['availableRevisionActions'],_0xb77dce=_0x24a739['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0xb77dce['length'])return _0xb77dce['map'](_0x3056f1=>{const _0x252ec0='string'==typeof _0x3056f1?Object['assign']({},_0x51fd9a[_0x3056f1]):_0x3056f1;return _0x252ec0['action']=_0x252ec0['action']['bind'](this,_0x24a739),_0x252ec0['isVisible']&&(_0x252ec0['isVisible']=_0x252ec0['isVisible']['bind'](this,_0x24a739)),_0x252ec0;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x2599a4},_0x4eebbe)=>{const _0x300cda=_0x2599a4['get'](d),_0x3eea5a=_0x300cda['repository'];let _0x3c4ae0=_0x300cda['diff']['newRevisionId'],_0x85de61=_0x4eebbe['id'];_0x3eea5a['getIndex'](_0x3c4ae0)>_0x3eea5a['getIndex'](_0x85de61)&&([_0x3c4ae0,_0x85de61]=[_0x85de61,_0x3c4ae0]),_0x300cda['compare'](_0x3c4ae0,_0x85de61);},'isVisible':({plugins:_0x3fe7ce},_0x2139a3)=>{const _0x26cc63=_0x3fe7ce['get'](d);return!(_0x26cc63['repository']['getRevisionsInDiff'](_0x26cc63['diff'])['length']>0x2)&&!_0x2139a3['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x5b5ed3,{id:_0x4a5b19})=>{_0x5b5ed3['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4a5b19);},'isVisible':({plugins:_0x2cc127},_0x4081e0)=>!!_0x2cc127['get'](d)['repository']['getLaterVisibleRevision'](_0x4081e0['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x4cd99d},{id:_0x22ce9b,revisionNameView:_0x120e58})=>{const _0x2d75b1=_0x4cd99d['get'](d),_0x5d178e=_0x2d75b1['repository']['getEarlierVisibleRevision'](_0x22ce9b);_0x2d75b1['compare'](_0x22ce9b,_0x5d178e),_0x120e58['focus'](),_0x120e58['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x13dcd6,_0x3a2d01){super(_0x13dcd6),this['_view']=_0x3a2d01,this['_toolbarConfig']=ot(_0x13dcd6['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x2569ad){const _0x457235=this['editor'],_0x3fd406=this['view'],_0x29f9c6=_0x457235['editing']['view'],_0x3fbdc4=_0x3fd406['editable'],_0x7a43f7=_0x29f9c6['document']['getRoot']();_0x3fbdc4['name']=_0x7a43f7['rootName'],_0x3fd406['render']();const _0x529cc7=_0x3fbdc4['element'];this['setEditableElement'](_0x3fbdc4['name'],_0x529cc7),_0x3fd406['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x29f9c6['attachDomRoot'](_0x529cc7),this['_elementReplacer']['replace'](_0x2569ad,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x3431c2=this['view'],_0x84a966=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x84a966['detachDomRoot'](_0x3431c2['editable']['name']),_0x3431c2['destroy']();}['_initToolbar'](){const _0x130da3=this['view'];_0x130da3['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x130da3['stickyPanel']['limiterElement']=_0x130da3['element'],_0x130da3['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x36461d})=>_0x36461d),_0x130da3['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x130da3['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x99e5a1,_0x1aecbe,_0xa5c186={}){super(_0x99e5a1),this['stickyPanel']=new ut(_0x99e5a1),this['toolbar']=new lt(_0x99e5a1,{'shouldGroupWhenFull':_0xa5c186['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x99e5a1,_0x1aecbe);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
- it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0xd876d2,_0x16f943){super(_0x16f943),this['sourceElement']=_0xd876d2,this['model']['document']['createRoot']();const _0x3bd32a=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x3bd32a);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x5bf1dc,_0x3aad7d){const _0x4f126e=new this(_0x5bf1dc,_0x3aad7d);return await _0x4f126e['initPlugins'](),await _0x4f126e['ui']['init'](_0x5bf1dc),await _0x4f126e['data']['init'](_0x4f126e['config']['get']('initialData')||''),_0x4f126e['fire']('ready'),_0x4f126e;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x2ac9a6{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4244f2){function _0x17912b(_0x55ef9f){return _0x55ef9f['map'](_0x249ebd=>String['fromCharCode'](_0x249ebd))['join']('');}super(_0x4244f2),this['result']='end',_0x4244f2[_0x17912b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17912b([0x76,0x69,0x65,0x77])][_0x17912b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x17912b([0x61,0x75,0x74,0x6f]),_0x4244f2[_0x17912b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x17912b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x17912b([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x17912b([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x17912b([0x6f,0x6b])});}}class k extends _0x2ac9a6{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x11a8bf){if(super(_0x11a8bf),!this['editor']['config']['get']('revisionHistory'))throw new _0x1057c9('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x2feba3=>this['_showRevisionViewer']({..._0x2feba3,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x57719c=>this['_closeRevisionViewer'](_0x57719c)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x349574=>this['_restoreRevision'](_0x349574)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x300e99){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x300e99;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x3ac74e){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x3ac74e);}['getRevision'](_0x5f5847){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x5f5847);}['getRevisions'](_0x50bb8d){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x50bb8d||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x55ffe4=this['editor'],_0x54f5d7=_0xa80943(_0x55ffe4,p),_0x19d320=_0x55ffe4['plugins']['get']('RevisionTracker'),_0x3ec766=_0x55ffe4['plugins']['get']('Users')['users'];return _0x54f5d7['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x54f5d7['lazyRoots'],(_0x54f5d7['plugins']['push'](Rt,d,g,class extends _0x2ac9a6{static get['requires'](){return[d,'Users'];}['init'](){const _0x40d1de=this['editor']['plugins']['get']('Users');for(const _0x2369ef of _0x3ec766)_0x2369ef['isAnonymous']||_0x40d1de['getUser'](_0x2369ef['id'])||_0x40d1de['addUser'](_0x2369ef);const _0x298230=_0x19d320['repository']['getRevisions']();let _0x19492f=null;const _0x196895=this['editor']['plugins']['get']('RevisionViewer');_0x196895['adapter']=_0x19d320['adapter'],_0x196895['bind']('isEnabled')['to'](_0x19d320),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x55ffe4,'isReadOnly',_0x559b43=>!_0x559b43);for(const _0x39fc35 of _0x298230){const _0x4e85d8=null===_0x39fc35['creator'];if(_0x4e85d8&&_0x39fc35['toVersion']===_0x39fc35['fromVersion'])continue;const _0x381eb8=_0x39fc35['toJSON']();_0x196895['addRevisionData'](_0x381eb8,(_0x391308,_0x2473c7,_0x8d1cab)=>{if(_0x4e85d8){if(_0x19492f)_0x19492f['_update'](_0x391308,_0x2473c7);else{if(!_0x2473c7){const _0x58fec4=_0x8d1cab['toJSON']();_0x58fec4['id']=_0x3ad3eb(),_0x19d320['saveRevision'](_0x58fec4,_0x8d1cab['toVersion'])['then'](_0x3de488=>{_0x19492f=_0x3de488;});}}}else _0x39fc35['_update'](_0x391308,_0x2473c7);});}}},w),_0x54f5d7);}['_enhanceShowRevisionViewerCallback'](){const _0x3296e2=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x5ac8a1=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x512b30=this['editor']['plugins']['get']('Autosave');await _0x512b30['save']();}else await _0x5ac8a1['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x5bca29=this['editor']['plugins']['get']('Dialog');_0x5bca29['isOpen']&&_0x5bca29['hide']();}const _0xeab24f=this['_getRevisionViewerEditorConfig']();return _0x3296e2(_0xeab24f)['then'](_0x4d77d4=>{return(this['_viewerEditor']=_0x4d77d4,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x4d77d4;})['catch'](_0x29dd5b=>(console['error'](_0x29dd5b),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x3dc4c2=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x3dc4c2(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x557a02=this['editor']['plugins']['get']('Annotations');_0x557a02['refreshVisibility'](),_0x557a02['refreshPositioning']();}})));}['_showRevisionViewer'](_0x6187b0){const _0xf27a37=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x5f067c=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x3a372c=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x3a372c,_0x6187b0)['then'](_0x2e2acd=>(_0x5f067c['style']['display']='block',_0xf27a37['style']['display']='none',_0x2e2acd));}['_closeRevisionViewer'](_0x1748d4){const _0x52a055=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x52a055['style']['display']='',_0x1748d4['destroy']();}async['_restoreRevision'](_0xa28b20){const _0x13493=this['editor'],_0x3b526c=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x7c4f4b=_0x13493['plugins']['get']('RevisionTracker'),_0x3f9bf4=_0x3b526c['repository']['getRevision'](_0xa28b20);let _0x36a3f8,_0x7604b6,_0x3c9fe8;try{_0x36a3f8=await _0x3b526c['getRevisionData'](_0x3f9bf4),_0x7604b6=await _0x3b526c['getRevisionRootsAttributes'](_0x3f9bf4);}catch(_0x354651){return void console['error'](_0x354651);}_0x13493['model']['change'](_0x301f19=>{for(const _0x9f36a7 of Array['from'](_0x13493['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x301f19['removeMarker'](_0x9f36a7);}),_0x3b526c['isReady']=!0x1,_0x13493['model']['enqueueChange'](_0x4c1551=>{_0x4c1551['setSelection'](null),_0x4c1551['removeSelectionAttribute'](_0x13493['model']['document']['selection']['getAttributeKeys']());const _0x4f87ec=Object['keys'](_0x36a3f8);for(const _0x6f7e87 of _0x13493['model']['document']['roots'])'$graveyard'!=_0x6f7e87['rootName']&&_0x6f7e87['isAttached']()&&!_0x4f87ec['includes'](_0x6f7e87['rootName'])&&_0x4c1551['detachRoot'](_0x6f7e87);for(const _0x428294 of _0x4f87ec){let _0x5781e6=_0x13493['model']['document']['getRoot'](_0x428294);_0x5781e6&&_0x5781e6['isAttached']()||(_0x5781e6=_0x4c1551['addRoot'](_0x428294));const _0x1b4560=_0x7604b6[_0x428294],_0x87da29=Object['keys'](_0x1b4560),_0x475fc4=_0x36a3f8[_0x428294];for(const _0x46c407 of _0x5781e6['getAttributeKeys']())_0x87da29['includes'](_0x46c407)||_0x4c1551['removeAttribute'](_0x46c407,_0x5781e6);for(const _0x17400a of _0x87da29)_0x4c1551['setAttribute'](_0x17400a,_0x7604b6[_0x428294][_0x17400a],_0x5781e6);_0x4c1551['remove'](_0x4c1551['createRangeIn'](_0x5781e6)),_0x4c1551['insert'](_0x13493['data']['parse'](_0x475fc4,_0x5781e6),_0x5781e6,0x0);}});const _0x344099=m(_0x13493['locale'],'Restored');if(_0x3f9bf4['name'])_0x3c9fe8=-0x1==_0x3f9bf4['name']['indexOf'](_0x344099)?_0x344099+':\x20'+_0x3f9bf4['name']:_0x3f9bf4['name'];else _0x3c9fe8=_0x344099+':\x20'+(_0x3f9bf4['createdAt']['toLocaleDateString'](_0x13493['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3f9bf4['createdAt']['toLocaleTimeString'](_0x13493['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x7c4f4b['saveRevision']({'name':_0x3c9fe8}),_0x3b526c['isReady']=!0x0,_0x13493['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ae as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
28
+ bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x42f307){super(_0x42f307),this['_revisionViewer']=_0x42f307['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x4dd4e6=this['_revisionsRepository']['_revisions'],_0x5319f9=this['_createRevisionActions'](),_0x2363b5=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0x4dd4e6,_0x5319f9,this['editor']['config']['get']('revisionHistory.requireRevisionName')),this['_sidebarView']['on']('revisionSelected',this['_handleRevisionSelected']['bind'](this)),this['_sidebarView']['on']('revisionSetName',this['_handleRevisionSetName']['bind'](this)),this['_sidebarView']['bind']('isEnabled')['to'](this['_revisionViewer']),this['_sidebarView']['timePeriodViews']['on']('add',(_0x4fd320,_0x2bf1f1)=>{_0x2bf1f1['revisionViews']['on']('add',(_0x4deb3e,_0x4c347a)=>{_0x4c347a['bind']('isEnabled','isReady')['to'](this['_revisionViewer']);});}),this['_sidebarView']['render'](),this['listenTo'](this['editor']['data'],'ready',this['_handleEditorDataReady']['bind'](this)),this['listenTo'](this['_revisionViewer'],'change:diff',this['_handleDiffChange']['bind'](this)),_0x2363b5['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x10789=this['_revisionsRepository']['getRevision'](0x0);if(_0x10789){const _0x359979=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x10789['id']);this['_revisionViewer']['compare'](_0x10789,_0x359979);}}['_handleRevisionSelected'](_0x3ce064,_0x9f2ada){const _0x38bf89=this['_revisionsRepository']['getRevision'](_0x9f2ada['id']),_0x23c007=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x38bf89['id']);this['_revisionViewer']['compare'](_0x38bf89,_0x23c007);}['_handleRevisionSetName'](_0x29c3a8,_0x2e9c27){this['_revisionsRepository']['getRevision'](_0x2e9c27['id'])['setName'](_0x2e9c27['name']);}['_handleDiffChange'](_0x1a5085,_0x33507c,_0xbb22ae){const _0x5e00c8=this['_revisionsRepository']['getRevisionsInDiff'](_0xbb22ae);_0x5e00c8['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x5e00c8),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x5e00c8[0x0]));}['_createRevisionActions'](){const _0x6edbec=this['editor'],_0x23a4ff=w['availableRevisionActions'],_0x37ece8=_0x6edbec['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x37ece8['length'])return _0x37ece8['map'](_0x47ddb9=>{const _0x53ac61='string'==typeof _0x47ddb9?Object['assign']({},_0x23a4ff[_0x47ddb9]):_0x47ddb9;return _0x53ac61['action']=_0x53ac61['action']['bind'](this,_0x6edbec),_0x53ac61['isVisible']&&(_0x53ac61['isVisible']=_0x53ac61['isVisible']['bind'](this,_0x6edbec)),_0x53ac61;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x2f4c71},_0x998e67)=>{const _0x10b4d7=_0x2f4c71['get'](d),_0x1c348b=_0x10b4d7['repository'];let _0x3af61c=_0x10b4d7['diff']['newRevisionId'],_0x489a3f=_0x998e67['id'];_0x1c348b['getIndex'](_0x3af61c)>_0x1c348b['getIndex'](_0x489a3f)&&([_0x3af61c,_0x489a3f]=[_0x489a3f,_0x3af61c]),_0x10b4d7['compare'](_0x3af61c,_0x489a3f);},'isVisible':({plugins:_0x3c7b0c},_0x43bea6)=>{const _0x251dfc=_0x3c7b0c['get'](d);return!(_0x251dfc['repository']['getRevisionsInDiff'](_0x251dfc['diff'])['length']>0x2)&&!_0x43bea6['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x4a571b,{id:_0x17009f})=>{_0x4a571b['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x17009f);},'isVisible':({plugins:_0x3d2417},_0x4f6ce6)=>!!_0x3d2417['get'](d)['repository']['getLaterVisibleRevision'](_0x4f6ce6['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x2fccc1},{id:_0x3dbd37,revisionNameView:_0x12ff01})=>{const _0x54a31e=_0x2fccc1['get'](d),_0x2041eb=_0x54a31e['repository']['getEarlierVisibleRevision'](_0x3dbd37);_0x54a31e['compare'](_0x3dbd37,_0x2041eb),_0x12ff01['focus'](),_0x12ff01['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x55054c,_0x51c138){super(_0x55054c),this['_view']=_0x51c138,this['_toolbarConfig']=ot(_0x55054c['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x25d515){const _0x2f93a2=this['editor'],_0x1b4fa5=this['view'],_0x282368=_0x2f93a2['editing']['view'],_0x3308bc=_0x1b4fa5['editable'],_0x140b62=_0x282368['document']['getRoot']();_0x3308bc['name']=_0x140b62['rootName'],_0x1b4fa5['render']();const _0x4649a4=_0x3308bc['element'];this['setEditableElement'](_0x3308bc['name'],_0x4649a4),_0x1b4fa5['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x282368['attachDomRoot'](_0x4649a4),this['_elementReplacer']['replace'](_0x25d515,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x4c4a82=this['view'],_0x4ebb56=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x4ebb56['detachDomRoot'](_0x4c4a82['editable']['name']),_0x4c4a82['destroy']();}['_initToolbar'](){const _0x75709d=this['view'];_0x75709d['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x75709d['stickyPanel']['limiterElement']=_0x75709d['element'],_0x75709d['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x394b91})=>_0x394b91),_0x75709d['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x75709d['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x1e2cbe,_0x4010e2,_0x43c459={}){super(_0x1e2cbe),this['stickyPanel']=new ut(_0x1e2cbe),this['toolbar']=new lt(_0x1e2cbe,{'shouldGroupWhenFull':_0x43c459['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x1e2cbe,_0x4010e2);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
+ it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x1aba3e,_0x5ee09a){super(_0x5ee09a),this['sourceElement']=_0x1aba3e,this['model']['document']['createRoot']();const _0x178392=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x178392);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x12fb23,_0x537606){const _0x2e426e=new this(_0x12fb23,_0x537606);return await _0x2e426e['initPlugins'](),await _0x2e426e['ui']['init'](_0x12fb23),await _0x2e426e['data']['init'](_0x2e426e['config']['get']('initialData')||''),_0x2e426e['fire']('ready'),_0x2e426e;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x29fadc{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x22f51f){function _0x41ca87(_0x35200b){return _0x35200b['map'](_0x10f1ac=>String['fromCharCode'](_0x10f1ac))['join']('');}super(_0x22f51f),this['result']='end',_0x22f51f[_0x41ca87([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x41ca87([0x76,0x69,0x65,0x77])][_0x41ca87([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x41ca87([0x61,0x75,0x74,0x6f]),_0x22f51f[_0x41ca87([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x41ca87([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x41ca87([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x41ca87([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x41ca87([0x6f,0x6b])});}}class k extends _0x29fadc{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x1192a6){if(super(_0x1192a6),!this['editor']['config']['get']('revisionHistory'))throw new _0x1a50c0('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x2bab9f=>this['_showRevisionViewer']({..._0x2bab9f,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x34f6ac=>this['_closeRevisionViewer'](_0x34f6ac)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x152c34=>this['_restoreRevision'](_0x152c34)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x1152f5){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x1152f5;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x8110aa){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x8110aa);}['getRevision'](_0x7f2705){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x7f2705);}['getRevisions'](_0x492c45){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x492c45||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0xc08738=this['editor'],_0x5f0bca=_0x6f1e03(_0xc08738,p),_0x138441=_0xc08738['plugins']['get']('RevisionTracker'),_0x14446e=_0xc08738['plugins']['get']('Users')['users'];return _0x5f0bca['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x5f0bca['lazyRoots'],(_0x5f0bca['plugins']['push'](Rt,d,g,class extends _0x29fadc{static get['requires'](){return[d,'Users'];}['init'](){const _0x34708e=this['editor']['plugins']['get']('Users');for(const _0x3e1f73 of _0x14446e)_0x3e1f73['isAnonymous']||_0x34708e['getUser'](_0x3e1f73['id'])||_0x34708e['addUser'](_0x3e1f73);const _0x297b8e=_0x138441['repository']['getRevisions']();let _0x56793f=null;const _0x31ae81=this['editor']['plugins']['get']('RevisionViewer');_0x31ae81['adapter']=_0x138441['adapter'],_0x31ae81['bind']('isEnabled')['to'](_0x138441),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0xc08738,'isReadOnly',_0x1743e4=>!_0x1743e4);for(const _0xffa91f of _0x297b8e){const _0x4ed6e7=null===_0xffa91f['creator'];if(_0x4ed6e7&&_0xffa91f['toVersion']===_0xffa91f['fromVersion'])continue;const _0x30cd2b=_0xffa91f['toJSON']();_0x31ae81['addRevisionData'](_0x30cd2b,(_0x3a06b4,_0x1ac6a4,_0x1990ec)=>{if(_0x4ed6e7){if(_0x56793f)_0x56793f['_update'](_0x3a06b4,_0x1ac6a4);else{if(!_0x1ac6a4){const _0x29fa83=_0x1990ec['toJSON']();_0x29fa83['id']=_0x53eca7(),_0x138441['saveRevision'](_0x29fa83,_0x1990ec['toVersion'])['then'](_0x49d577=>{_0x56793f=_0x49d577;});}}}else _0xffa91f['_update'](_0x3a06b4,_0x1ac6a4);});}}},w),_0x5f0bca);}['_enhanceShowRevisionViewerCallback'](){const _0x566262=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x9d1e17=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x309d7c=this['editor']['plugins']['get']('Autosave');await _0x309d7c['save']();}else await _0x9d1e17['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x431570=this['editor']['plugins']['get']('Dialog');_0x431570['isOpen']&&_0x431570['hide']();}const _0x91f7f3=this['_getRevisionViewerEditorConfig']();return _0x566262(_0x91f7f3)['then'](_0x1064d5=>{return(this['_viewerEditor']=_0x1064d5,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x1064d5;})['catch'](_0x134f3f=>(console['error'](_0x134f3f),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0xff7ce1=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0xff7ce1(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x555667=this['editor']['plugins']['get']('Annotations');_0x555667['refreshVisibility'](),_0x555667['refreshPositioning']();}})));}['_showRevisionViewer'](_0xacb5ab){const _0x49fd45=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x201c95=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x2caf25=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x2caf25,_0xacb5ab)['then'](_0x573896=>(_0x201c95['style']['display']='block',_0x49fd45['style']['display']='none',_0x573896));}['_closeRevisionViewer'](_0x4ca899){const _0x276608=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x276608['style']['display']='',_0x4ca899['destroy']();}async['_restoreRevision'](_0x532b4f){const _0x560030=this['editor'],_0x35a740=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x44c39f=_0x560030['plugins']['get']('RevisionTracker'),_0x23a8aa=_0x35a740['repository']['getRevision'](_0x532b4f);let _0x4c0b2f,_0x526ba8,_0x65531c;try{_0x4c0b2f=await _0x35a740['getRevisionData'](_0x23a8aa),_0x526ba8=await _0x35a740['getRevisionRootsAttributes'](_0x23a8aa);}catch(_0x1aa9cb){return void console['error'](_0x1aa9cb);}_0x560030['model']['change'](_0x1fea7d=>{for(const _0x47fc83 of Array['from'](_0x560030['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x1fea7d['removeMarker'](_0x47fc83);}),_0x35a740['isReady']=!0x1,_0x560030['model']['enqueueChange'](_0x1822b8=>{_0x1822b8['setSelection'](null),_0x1822b8['removeSelectionAttribute'](_0x560030['model']['document']['selection']['getAttributeKeys']());const _0x3bbf64=Object['keys'](_0x4c0b2f);for(const _0xfe5e0e of _0x560030['model']['document']['roots'])'$graveyard'!=_0xfe5e0e['rootName']&&_0xfe5e0e['isAttached']()&&!_0x3bbf64['includes'](_0xfe5e0e['rootName'])&&_0x1822b8['detachRoot'](_0xfe5e0e);for(const _0x370646 of _0x3bbf64){let _0x34d5fa=_0x560030['model']['document']['getRoot'](_0x370646);_0x34d5fa&&_0x34d5fa['isAttached']()||(_0x34d5fa=_0x1822b8['addRoot'](_0x370646));const _0x33e94a=_0x526ba8[_0x370646],_0x3c2c76=Object['keys'](_0x33e94a),_0x43ef21=_0x4c0b2f[_0x370646];for(const _0x1d6b6e of _0x34d5fa['getAttributeKeys']())_0x3c2c76['includes'](_0x1d6b6e)||_0x1822b8['removeAttribute'](_0x1d6b6e,_0x34d5fa);for(const _0x577db5 of _0x3c2c76)_0x1822b8['setAttribute'](_0x577db5,_0x526ba8[_0x370646][_0x577db5],_0x34d5fa);_0x1822b8['remove'](_0x1822b8['createRangeIn'](_0x34d5fa)),_0x1822b8['insert'](_0x560030['data']['parse'](_0x43ef21,_0x34d5fa),_0x34d5fa,0x0);}});const _0x2969a9=m(_0x560030['locale'],'Restored');if(_0x23a8aa['name'])_0x65531c=-0x1==_0x23a8aa['name']['indexOf'](_0x2969a9)?_0x2969a9+':\x20'+_0x23a8aa['name']:_0x23a8aa['name'];else _0x65531c=_0x2969a9+':\x20'+(_0x23a8aa['createdAt']['toLocaleDateString'](_0x560030['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x23a8aa['createdAt']['toLocaleTimeString'](_0x560030['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x44c39f['saveRevision']({'name':_0x65531c}),_0x35a740['isReady']=!0x0,_0x560030['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};