@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250124.0 → 0.0.0-nightly-20250126.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 _0x472f62,uid as _0x56c913,Collection as _0x47b816,logWarning as _0x5462cb,FocusTracker as _0x3cb2ca,KeystrokeHandler as _0x114cb4,scrollViewportToShowTarget as _0x3f1c8e,ResizeObserver as nt,ElementReplacer as ht,CKEditorError as _0x332087}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0xdad44a,set as _0x4b8824,unset as _0x2a026f,isEqual as _0xa1db8}from'lodash-es';import{Plugin as _0x32cb53,PendingActions as _0x59e7b1,icons as _0xfd812b,Command as _0x1bb048,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x4db1fd,getMarkerDomElement as _0x5bfa7a,ConfirmMixin as _0x184c88,sanitizeEditorConfig as _0x530fd4}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x34ea43,ViewText as _0x22ba6c,ViewElement as _0x422f3c,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0x47a9b5,ViewAttributeElement as _0x28a10a,ViewEmptyElement as _0x34f328,ViewRawElement as _0x376497,ViewUIElement as _0x30d039,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x1a289e,submitHandler as _0x427238,LabeledFieldView as _0x1c9501,createLabeledInputText as _0x2f53a3,createDropdown as _0x1e2d2c,ListView as _0x420742,ListItemView as _0x382b10,ButtonView as te,MenuBarMenuView as _0x59e4e3,MenuBarMenuListView as _0x50ce35,MenuBarMenuListItemView as _0x4c86f4,MenuBarMenuListItemButtonView as _0x53eb9b,ContextualBalloon as _0x37837f,ToolbarSeparatorView as _0x49f459,IconView as _0x247bb3,addListToDropdown as to,ViewModel as _0x58a8c5,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 _0xa55a2d}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
- _0x472f62(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x16483c){super(),this['id']=_0x16483c['id']||_0x56c913(),this['creator']=_0x16483c['creator']||null,this['authors']=_0x16483c['authors']||[],this['diffData']=_0x16483c['diffData']||null,this['toVersion']=_0x16483c['toVersion']||0x0,this['fromVersion']=_0x16483c['fromVersion']||0x0,this['set']('name',_0x16483c['name']||''),this['set']('createdAt',_0x16483c['createdAt']||new Date()),this['set']('attributes',_0x16483c['attributes']||{});}['setName'](_0x158bac){this['_update']({'name':_0x158bac});}['setAttribute'](_0x56a7df,_0x2aa847){const _0x345804=_0xdad44a(this['attributes']);_0x4b8824(_0x345804,_0x56a7df,_0x2aa847),this['_update']({'attributes':_0x345804});}['removeAttribute'](_0x5bdf73){const _0x1edbee=_0xdad44a(this['attributes']);_0x2a026f(_0x1edbee,_0x5bdf73),this['_update']({'attributes':_0x1edbee});}['_update'](_0x183587,_0x5ac112=!0x1){let _0x360fe1=!0x1;const _0x4ef610={'id':this['id']},_0x53bb2d=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x1b7c73 of _0x53bb2d){const _0x399e8a=_0x183587[_0x1b7c73];void 0x0!==_0x399e8a&&_0x399e8a!==this[_0x1b7c73]&&(this[_0x1b7c73]=_0x399e8a,_0x4ef610[_0x1b7c73]=_0x399e8a,_0x360fe1=!0x0);}_0x360fe1&&(_0x4ef610['authors']&&(_0x4ef610['authorsIds']=_0x4ef610['authors']['map'](_0x310f67=>_0x310f67['id']),delete _0x4ef610['authors']),this['fire']('_update',_0x4ef610,_0x5ac112));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x42f927=>_0x42f927['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x32cb53{['_revisions'];static get['requires'](){return[_0x4db1fd];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x1c968d){super(_0x1c968d),this['_revisions']=new _0x47b816();}['afterInit'](){!async function(_0x3572b9){const _0x210ea5=_0x248359([0x5a,0x43,0x69,0x44,0x45,0x4e,0x46,0x73,0x6d,0x64,0x51,0x4f,0x30,0x47,0x52,0x6b,0x31,0x38,0x56,0x68,0x67,0x35,0x6a,0x7a,0x4c,0x58,0x48,0x39,0x55,0x4b,0x77,0x59,0x66,0x6c,0x62,0x78,0x36,0x6e,0x49,0x76,0x42,0x74,0x57,0x33,0x61,0x79,0x53,0x4d,0x70,0x6f,0x54,0x63,0x72,0x41,0x34,0x65,0x32,0x71,0x4a,0x50,0x37,0x75]),_0x485fa3=0xeb829,_0x25869e=0x1e66d544,_0x1db1bb=0x1e6188c4^_0x25869e,_0x54f583=window[_0x248359([0x44,0x61,0x74,0x65])][_0x248359([0x6e,0x6f,0x77])](),_0x3edc2c=_0x3572b9[_0x248359([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1d0009=new window[(_0x248359([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25c509=>{_0x3edc2c[_0x248359([0x6f,0x6e,0x63,0x65])](_0x248359([0x72,0x65,0x61,0x64,0x79]),_0x25c509);}),_0x1c4178={[_0x248359([0x6b,0x74,0x79])]:_0x248359([0x45,0x43]),[_0x248359([0x75,0x73,0x65])]:_0x248359([0x73,0x69,0x67]),[_0x248359([0x63,0x72,0x76])]:_0x248359([0x50,0x2d,0x32,0x35,0x36]),[_0x248359([0x78])]:_0x248359([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]),[_0x248359([0x79])]:_0x248359([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]),[_0x248359([0x61,0x6c,0x67])]:_0x248359([0x45,0x53,0x32,0x35,0x36])},_0x4c3628=_0x3edc2c[_0x248359([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x248359([0x67,0x65,0x74])](_0x248359([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4a53d0(){let _0x51d94d,_0xff5a3c=null,_0x4d503f=null;try{if(_0x4c3628==_0x248359([0x47,0x50,0x4c]))return _0x248359([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x51d94d=_0x1b2e3b(),!_0x51d94d)return _0x248359([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x51d94d[_0x248359([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4d503f=_0x18607d(_0x51d94d[_0x248359([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x51d94d[_0x248359([0x6a,0x74,0x69])])),await _0x1bda88()?_0x5a3414()?_0x3b46a8()?_0x248359([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xf961d8()?(_0x51d94d[_0x248359([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x248359([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xff5a3c=_0x2804ec(_0x248359([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x51d94d[_0x248359([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x248359([0x74,0x72,0x69,0x61,0x6c])&&(_0xff5a3c=_0x2804ec(_0x248359([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x51d94d[_0x248359([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x248359([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0xff5a3c=_0x2804ec(_0x248359([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x52079e()):_0x248359([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x248359([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x248359([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1fdcd5){return _0x248359([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3b46a8(){const _0x1d5d09=[_0x248359([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x248359([0x74,0x72,0x69,0x61,0x6c])][_0x248359([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51d94d[_0x248359([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x54f583/0x3e8:0xe10*_0x1db1bb;return _0x51d94d[_0x248359([0x65,0x78,0x70])]<_0x1d5d09;}function _0x5a3414(){const _0x3542ad=_0x51d94d[_0x248359([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3542ad)return!0x1;if(_0x3542ad[_0x248359([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x248359([0x2a])))return!0x0;if(_0x3542ad[_0x248359([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x248359([0x52,0x48])))return!0x0;if(_0x3542ad[_0x248359([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x248359([0x52,0x52,0x48]))){if(_0x1044f5())return!0x0;if(_0x4c78c2()||_0x34f940())return!0x0;}return!0x1;}function _0xf961d8(){const _0x406e9e=_0x51d94d[_0x248359([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x406e9e||0x0==_0x406e9e[_0x248359([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x196e2e}=new URL(window[_0x248359([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x406e9e[_0x248359([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x196e2e))return!0x0;const _0x5f1533=_0x196e2e[_0x248359([0x73,0x70,0x6c,0x69,0x74])](_0x248359([0x2e]));return _0x406e9e[_0x248359([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5068ae=>_0x5068ae[_0x248359([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x248359([0x2a])))[_0x248359([0x6d,0x61,0x70])](_0x38f603=>_0x38f603[_0x248359([0x73,0x70,0x6c,0x69,0x74])](_0x248359([0x2e])))[_0x248359([0x73,0x6f,0x6d,0x65])](_0x570212=>_0x5f1533[_0x248359([0x65,0x76,0x65,0x72,0x79])]((_0xdfef09,_0x301a03)=>_0x570212[_0x301a03]===_0xdfef09||_0x570212[_0x301a03]===_0x248359([0x2a])));}function _0x52079e(){return _0xff5a3c&&_0x4d503f?new window[(_0x248359([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d8414,_0x56c3e7)=>{_0xff5a3c[_0x248359([0x74,0x68,0x65,0x6e])](_0x1d8414,_0x56c3e7),_0x4d503f[_0x248359([0x74,0x68,0x65,0x6e])](_0x43ef70=>{_0x43ef70!=_0x248359([0x56,0x61,0x6c,0x69,0x64])&&_0x1d8414(_0x43ef70);},_0x56c3e7);}):_0xff5a3c||_0x4d503f||_0x248359([0x56,0x61,0x6c,0x69,0x64]);}}function _0x18607d(_0x201d88,_0x23139f){return new window[(_0x248359([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c93f0=>{if(_0x150ffe())return _0x5c93f0(_0x248359([0x56,0x61,0x6c,0x69,0x64]));_0xcc6afc(),_0x3edc2c[_0x248359([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x248359([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5edda5=!0x1;const _0x1ffcb6=_0x56c913();function _0x53849d(_0x70d624){return!!_0x70d624&&(typeof _0x70d624===_0x248359([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x70d624===_0x248359([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x70d624[_0x248359([0x74,0x68,0x65,0x6e])]===_0x248359([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x70d624[_0x248359([0x63,0x61,0x74,0x63,0x68])]===_0x248359([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xee8838(_0x1419d3){_0x120a23(_0x1419d3)[_0x248359([0x74,0x68,0x65,0x6e])](_0x22c673=>{if(!_0x22c673||_0x22c673[_0x248359([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x248359([0x6f,0x6b]))return _0x248359([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4ec950(_0x4e7043(_0x1ffcb6+_0x23139f))!=_0x22c673[_0x248359([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x248359([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x248359([0x56,0x61,0x6c,0x69,0x64]);})[_0x248359([0x74,0x68,0x65,0x6e])](_0x318ada=>(_0x54cd3b(),_0x318ada),()=>{const _0xd96bb2=_0x22113b();return null==_0xd96bb2?(_0x54cd3b(),_0x248359([0x56,0x61,0x6c,0x69,0x64])):_0x248359(_0x54f583-_0xd96bb2>(0x3a6a5144^_0x25869e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x248359([0x74,0x68,0x65,0x6e])](_0x5c93f0)[_0x248359([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5c93f0(_0x248359([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x12fd5b=0x1e503bc4^_0x25869e;function _0x54cd3b(){const _0x3083ab=_0x248359([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ec950(_0x4e7043(_0x201d88)),_0x4df103=_0xf12281(_0x4ec950(window[_0x248359([0x4d,0x61,0x74,0x68])][_0x248359([0x63,0x65,0x69,0x6c])](_0x54f583/_0x12fd5b)));window[_0x248359([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x248359([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3083ab,_0x4df103);}function _0x22113b(){const _0x945ee3=_0x248359([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ec950(_0x4e7043(_0x201d88)),_0x3e571f=window[_0x248359([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x248359([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x945ee3);return _0x3e571f?window[_0x248359([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf12281(_0x3e571f),0x10)*_0x12fd5b:null;}function _0x120a23(_0x3a2cf1){return new window[(_0x248359([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x212b45,_0x15fcae)=>{_0x3a2cf1[_0x248359([0x74,0x68,0x65,0x6e])](_0x212b45,_0x15fcae),window[_0x248359([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x15fcae,0x1e670184^_0x25869e);});}}_0x3edc2c[_0x248359([0x6f,0x6e])](_0x248359([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x15fbbd,_0x106805)=>{if(_0x106805[0x0]!=_0x201d88)return _0x5c93f0(_0x248359([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x106805[0x1]={..._0x106805[0x1],[_0x248359([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1ffcb6};},{[_0x248359([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x248359([0x68,0x69,0x67,0x68])}),_0x3edc2c[_0x248359([0x6f,0x6e])](_0x248359([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x8bff0=>{_0x53849d(_0x8bff0[_0x248359([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5edda5=!0x0,_0xee8838(_0x8bff0[_0x248359([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x248359([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x248359([0x6c,0x6f,0x77])}),_0x1d0009[_0x248359([0x74,0x68,0x65,0x6e])](()=>{_0x5edda5||_0x5c93f0(_0x248359([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x150ffe(){return _0x3edc2c[_0x248359([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x248359([0x76,0x69,0x65,0x77])][_0x248359([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x248359([0x61,0x75,0x74,0x6f]);}function _0xcc6afc(){_0x3edc2c[_0x248359([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x248359([0x76,0x69,0x65,0x77])][_0x248359([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x248359([0x61,0x75,0x74,0x6f]);}}function _0x2804ec(_0x6bfd54){const _0x455a15=[new window[(_0x248359([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2618d1=>setTimeout(_0x2618d1,0x1e6feb88^_0x25869e)),_0x1d0009[_0x248359([0x74,0x68,0x65,0x6e])](()=>new window[(_0x248359([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33af8a=>{const _0x1c4580=0x1e66d543^_0x25869e,_0x57a4bd=_0x3572b9[_0x248359([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x182af0(){_0x57a4bd[_0x248359([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x1c4580&&_0x33af8a();}_0x182af0(),_0x57a4bd[_0x248359([0x6f,0x6e])](_0x248359([0x61,0x64,0x64]),_0x182af0);})),new window[(_0x248359([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a60e4=>{function _0x33b9b5(){for(const _0x90e239 in window)if(window[_0x248359([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x248359([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x90e239))&&window[_0x90e239]==_0x485fa3)return _0x2a60e4();_0x3edc2c[_0x248359([0x73,0x74,0x61,0x74,0x65])]!=_0x248359([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x248359([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x33b9b5,0x1e66c6cc^_0x25869e);}_0x1e333e(_0x248359([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x33b9b5();})];return window[_0x248359([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x248359([0x72,0x61,0x63,0x65])](_0x455a15)[_0x248359([0x74,0x68,0x65,0x6e])](()=>_0x6bfd54);}async function _0x3fcc7(){if(await _0x1d0009,_0x1e333e(_0x248359([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x3eaa5e=_0x3572b9[_0x248359([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x2da83f=_0x3572b9[_0x248359([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])](_0x3eaa5e[_0x248359([0x69,0x64])]),_0x4bf95d=_0x261a17(_0x248359([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x4bf95d[_0x248359([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x3eaa5e['id'],_0x2da83f?_0x2da83f['id']:null,!0x0),_0x4bf95d[_0x248359([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x248359([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4bf95d[_0x248359([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4bf95d[_0x248359([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5a7cb8,void(_0x4bf95d[_0x248359([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5a7cb8);}if(_0x1e333e(_0x248359([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x5e49e6=_0x261a17(_0x248359([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x5e49e6[_0x248359([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x248359([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5e49e6[_0x248359([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5e49e6[_0x248359([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5a7cb8,_0x5e49e6[_0x248359([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5a7cb8;}_0x3edc2c[_0x248359([0x6d,0x6f,0x64,0x65,0x6c])][_0x248359([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5a7cb8,_0x3edc2c[_0x248359([0x6d,0x6f,0x64,0x65,0x6c])][_0x248359([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5a7cb8,_0x3edc2c[_0x248359([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x248359([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1044f5(){return _0x1e333e(_0x248359([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x261a17(_0x248359([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x248359([0x73,0x74,0x61,0x74,0x65])]==_0x248359([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4c78c2(){return _0x1e333e(_0x248359([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 _0x34f940(){return _0x1e333e(_0x248359([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x300fec(_0x1b7385){const _0x2d50c2=_0x2ebb1d();_0x3edc2c[_0x2d50c2]=_0x248359([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])+_0x1b7385,_0x1b7385[_0x248359([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x248359([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x2ebb1d()]=_0x485fa3),_0x1b7385!=_0x248359([0x56,0x61,0x6c,0x69,0x64])&&_0x3fcc7();}function _0x2ebb1d(){const _0x4a3346=window[_0x248359([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x248359([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x248359([0x6e,0x6f,0x77])]())[_0x248359([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x248359([0x2e]),'');let _0x5b1c5c=_0x248359([0x5a]);for(let _0x597e27=0x0;_0x597e27<_0x4a3346[_0x248359([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x597e27+=0x2){let _0x72051f=window[_0x248359([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a3346[_0x248359([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x597e27,_0x597e27+0x2));_0x72051f>=_0x210ea5[_0x248359([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x72051f-=_0x210ea5[_0x248359([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5b1c5c+=_0x210ea5[_0x72051f];}return _0x5b1c5c;}function _0x1b2e3b(){const _0x25c80a=_0x4c3628[_0x248359([0x73,0x70,0x6c,0x69,0x74])](_0x248359([0x2e]));if(0x3!=_0x25c80a[_0x248359([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x420c66(_0x25c80a[0x1]);function _0x420c66(_0x2ca3a1){const _0x16f0b4=_0x4d2405(_0x2ca3a1);return _0x16f0b4&&_0xb4a677()?_0x16f0b4:null;function _0xb4a677(){const _0x524a79=_0x16f0b4[_0x248359([0x6a,0x74,0x69])],_0x906ef8=window[_0x248359([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x524a79[_0x248359([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x524a79[_0x248359([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x427528={..._0x16f0b4,[_0x248359([0x6a,0x74,0x69])]:_0x524a79[_0x248359([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x524a79[_0x248359([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x427528[_0x248359([0x76,0x63])],_0x4e7043(_0x427528)==_0x906ef8;}}}async function _0x1bda88(){let _0x4a306f=!0x0;try{const _0x5d6178=_0x4c3628[_0x248359([0x73,0x70,0x6c,0x69,0x74])](_0x248359([0x2e])),[_0xa36289,_0x51d82c,_0x553ae5]=_0x5d6178;return _0x247cbb(_0xa36289),await _0x2ccdc6(_0xa36289,_0x51d82c,_0x553ae5),_0x4a306f;}catch(_0x48f8ef){return!0x1;}function _0x247cbb(_0x45d67d){const _0x5b1c22=_0x4d2405(_0x45d67d);_0x5b1c22&&_0x5b1c22[_0x248359([0x61,0x6c,0x67])]==_0x248359([0x45,0x53,0x32,0x35,0x36])||(_0x4a306f=!0x1);}async function _0x2ccdc6(_0x25d97b,_0x1e0994,_0x5e0aa3){const _0x363a53=window[_0x248359([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x248359([0x66,0x72,0x6f,0x6d])](_0x10e789(_0x5e0aa3),_0x1229fa=>_0x1229fa[_0x248359([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x33a375=new window[(_0x248359([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x248359([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x25d97b+_0x248359([0x2e])+_0x1e0994),_0x1f78e7=window[_0x248359([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x248359([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1f78e7)return;const _0x5f5d9b=await _0x1f78e7[_0x248359([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x248359([0x6a,0x77,0x6b]),_0x1c4178,{[_0x248359([0x6e,0x61,0x6d,0x65])]:_0x248359([0x45,0x43,0x44,0x53,0x41]),[_0x248359([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x248359([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x248359([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1f78e7[_0x248359([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x248359([0x6e,0x61,0x6d,0x65])]:_0x248359([0x45,0x43,0x44,0x53,0x41]),[_0x248359([0x68,0x61,0x73,0x68])]:{[_0x248359([0x6e,0x61,0x6d,0x65])]:_0x248359([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5f5d9b,_0x363a53,_0x33a375)||(_0x4a306f=!0x1);}}function _0x4d2405(_0x3c9258){return _0x3c9258[_0x248359([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x248359([0x65,0x79]))?JSON[_0x248359([0x70,0x61,0x72,0x73,0x65])](_0x10e789(_0x3c9258)):null;}function _0x10e789(_0x5bed50){return window[_0x248359([0x61,0x74,0x6f,0x62])](_0x5bed50[_0x248359([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x248359([0x2b]))[_0x248359([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x248359([0x2f])));}function _0x4e7043(_0x432515){let _0x477f41=0x1505;function _0x1e53e7(_0x3b267b){for(let _0x1655c4=0x0;_0x1655c4<_0x3b267b[_0x248359([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1655c4++){const _0x54f5b7=_0x3b267b[_0x248359([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1655c4);_0x477f41=(_0x477f41<<0x5)+_0x477f41+_0x54f5b7,_0x477f41&=_0x477f41;}}function _0x3d52a6(_0x2868d0){Array[_0x248359([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2868d0)?_0x2868d0[_0x248359([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3d52a6):_0x2868d0&&typeof _0x2868d0==_0x248359([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x248359([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2868d0)[_0x248359([0x73,0x6f,0x72,0x74])]()[_0x248359([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3bf64e,_0x43b15a])=>{_0x1e53e7(_0x3bf64e),_0x3d52a6(_0x43b15a);}):_0x1e53e7(window[_0x248359([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2868d0));}return _0x3d52a6(_0x432515),_0x477f41>>>0x0;}function _0x4ec950(_0x3cbe70){return _0x3cbe70[_0x248359([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x248359([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x248359([0x30]));}function _0xf12281(_0x28f8d2){return _0x28f8d2[_0x248359([0x73,0x70,0x6c,0x69,0x74])]('')[_0x248359([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x248359([0x6a,0x6f,0x69,0x6e])]('');}function _0x1e333e(_0x286226){return _0x3edc2c[_0x248359([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x248359([0x68,0x61,0x73])](_0x286226);}function _0x261a17(_0x26bf53){return _0x3edc2c[_0x248359([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x248359([0x67,0x65,0x74])](_0x26bf53);}function _0x5a7cb8(){}function _0x248359(_0x187b69){return _0x187b69['map'](_0x3597e9=>String['fromCharCode'](_0x3597e9))['join']('');}_0x300fec(await _0x4a53d0());}(this);}['createRevision'](_0xff1473){const _0x217acd=this['editor']['plugins']['get']('Users');return new a({'id':_0xff1473['id'],'name':_0xff1473['name'],'creator':_0xff1473['creatorId']?_0x217acd['getUser'](_0xff1473['creatorId']):null,'diffData':_0xff1473['diffData']||_0xff1473['data'],'authors':_0xff1473['authorsIds']['map'](_0x2a656a=>_0x217acd['getUser'](_0x2a656a)),'createdAt':new Date(_0xff1473['createdAt']),'attributes':_0xff1473['attributes'],'fromVersion':_0xff1473['fromVersion'],'toVersion':_0xff1473['toVersion']});}['addRevision'](_0x4da1c1,_0x1759c3=0x0){this['_revisions']['add'](_0x4da1c1,_0x1759c3);}['getRevision'](_0x2e2c3b){return this['_revisions']['get'](_0x2e2c3b);}['getRevisions'](_0x51a1a3={'toJSON':!0x1}){const _0x4c6e5a=Array['from'](this['_revisions']);return _0x4c6e5a['reverse'](),_0x51a1a3['toJSON']?_0x4c6e5a['map'](_0x480d75=>_0x480d75['toJSON']()):_0x4c6e5a;}['getIndex'](_0x4e0403){return this['_revisions']['getIndex'](_0x4e0403);}['getEarlierVisibleRevision'](_0x247b67){const [,_0x35d03d]=this['getRevisionsIterator'](_0x247b67,{'direction':'earlier'});return _0x35d03d;}['getLaterVisibleRevision'](_0x2bfb4d){const [,_0x862c86]=this['getRevisionsIterator'](_0x2bfb4d,{'direction':'later'});return _0x862c86;}['getRevisionsInDiff'](_0x697ca3){const _0x184996=[];for(const _0xe4e766 of this['getRevisionsIterator'](_0x697ca3['newRevisionId']))if(_0x184996['push'](_0xe4e766),_0xe4e766['id']===_0x697ca3['oldRevisionId'])break;return _0x184996;}*['getRevisionsIterator'](_0x25e159,{direction:_0x254a76='earlier',filter:_0x592f3f=()=>!0x0}={}){const _0x8c14e1='earlier'===_0x254a76?0x1:-0x1;let _0x5ebaf1=this['_revisions']['get'](_0x25e159),_0x2337bf=this['getIndex'](_0x5ebaf1);for(yield _0x5ebaf1;_0x5ebaf1;){if(_0x2337bf+=_0x8c14e1,_0x5ebaf1=this['getRevision'](_0x2337bf),!_0x5ebaf1)return;_0x592f3f(_0x5ebaf1)&&(yield _0x5ebaf1);}}}function m(_0x4d453b,_0x276e7f,_0x29d1a4){const t=_0x4d453b['t'];switch(_0x276e7f){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'},_0x29d1a4);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x29d1a4);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':_0x47a9b5,'a':_0x28a10a,'e':_0x34f328,'r':_0x376497,'u':_0x30d039};class l extends _0x32cb53{['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[_0x4db1fd,j,_0x59e7b1];}constructor(_0x4de82e){super(_0x4de82e),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 _0x586057=_0x56c913();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x586057},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 _0x4bc5ec=this['repository']['getRevision'](0x0),_0x36e379=_0x4bc5ec&&null===_0x4bc5ec['creator']?_0x4bc5ec:null;if(this['_continueCurrentRevision']=!!_0x36e379&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x4095f8=this['_source']['getCurrentRevisionId'](),_0x4de5dd=this['repository']['getRevision'](_0x4095f8);if(_0x4de5dd)this['_startingVersion']=_0x4de5dd['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0xde9dc8=this['_source']['history']['_operations']['find'](_0x41ac23=>!_0x41ac23['_isInit']),_0x55798b=_0xde9dc8?_0xde9dc8['baseVersion']:this['_source']['history']['version'];_0x4bc5ec?(_0x4bc5ec['toVersion']<_0x55798b&&_0x4bc5ec['_update']({'toVersion':_0x55798b}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x36e379['id'],this['_startingVersion']=_0x36e379['fromVersion']):(this['_startingVersion']=_0x4bc5ec['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x55798b,this['_continueCurrentRevision']=!0x1);}}else _0x36e379&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x36e379['toVersion'],this['editor']['model']['document']['history']['version']),_0x36e379['fromVersion']===_0x36e379['toVersion']?(0x0!==_0x36e379['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x36e379['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x36e379['id'],this['_startingVersion']=_0x36e379['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',_0x71cbdf=>!_0x71cbdf),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x223e57=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x775ecb;for(const _0x3bb7cc in _0x223e57){const _0x5c5a73=_0x3bb7cc,_0x5cf1a5=_0x223e57[_0x5c5a73];if('revisionHistoryLicenseKeyValid'==_0x5cf1a5||'revisionHistoryLicenseKeyInvalid'==_0x5cf1a5||'revisionHistoryLicenseKeyExpired'==_0x5cf1a5||'revisionHistoryLicenseKeyDomainLimit'==_0x5cf1a5||'revisionHistoryLicenseKeyNotAllowed'==_0x5cf1a5||'revisionHistoryLicenseKeyEvaluationLimit'==_0x5cf1a5||'revisionHistoryLicenseKeyTrialLimit'==_0x5cf1a5||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x5cf1a5||'revisionHistoryLicenseKeyUsageLimit'==_0x5cf1a5){delete _0x223e57[_0x5c5a73],_0x775ecb=_0x5cf1a5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x775ecb&&_0x223e57['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x775ecb&&_0x223e57['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x775ecb&&_0x223e57['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x775ecb&&_0x223e57['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x775ecb&&_0x223e57['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x775ecb&&_0x223e57['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x775ecb&&_0x223e57['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x775ecb&&_0x223e57['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x521f33=this['repository']['getRevision'](0x0),_0x2ca26f=await this['getRevisionDocumentData'](_0x521f33),_0x18aa66=await this['getRevisionRootsAttributes'](_0x521f33);this['_replaceEditorDataWithRevisionData'](_0x2ca26f,_0x18aa66);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x2cbf58){this['_source']=_0x2cbf58;}async['update'](){const _0x427c73=await this['_source']['getLatestVersion']();if(_0x427c73>this['currentRevision']['toVersion']){await this['_loadState']();const _0x28e8d6=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x427c73});_0x28e8d6['authors']=_0x28e8d6['authorsIds']['map'](_0x5d5d4e=>this['editor']['plugins']['get']('Users')['getUser'](_0x5d5d4e)),this['currentRevision']['_update'](_0x28e8d6);}}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'](_0x171514={},_0x23f277=null){const _0xf4114=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x23f277>this['currentRevision']['toVersion']&&(_0x23f277=null),null===_0x23f277&&(_0x23f277=await this['_source']['getLatestVersion']());const _0x21429f=this['_getFromVersion'](_0x23f277),_0x315fd5=this['buildRevisionData']({'from':_0x21429f,'to':_0x23f277});if(this['currentRevision']['toVersion']<_0x23f277){const _0x1ee3b9=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x23f277,'to':_0x23f277});_0x1ee3b9['authors']=[],_0x1ee3b9['authorsIds']=[],_0x1ee3b9['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x1ee3b9,!0x0),delete _0x1ee3b9['authors'],_0xf4114['push'](_0x1ee3b9);}_0x171514['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x171514['name']=_0x171514['name']||null,_0x171514['id']=_0x171514['id']||_0x56c913(),_0x171514={..._0x171514,..._0x315fd5};const _0x1d3a46=this['addRevisionData'](_0x171514);_0xf4114['push'](_0x171514);const _0x52f59b=this['repository']['getIndex'](_0x1d3a46);if(0x0!==_0x52f59b){const _0x47fcd9=this['repository']['getRevision'](_0x52f59b-0x1);if(_0x47fcd9['fromVersion']!==_0x23f277){const _0x2330af=this['_revisionDataBuilder']['getData'](_0x23f277,_0x47fcd9['toVersion']),_0x2b473d={'id':_0x47fcd9['id'],'diffData':_0x2330af['diffData'],'authorsIds':_0x2330af['authorsIds'],'authors':_0x2330af['authorsIds']['map'](_0x52403d=>this['editor']['plugins']['get']('Users')['getUser'](_0x52403d)),'fromVersion':_0x23f277};_0x47fcd9===this['currentRevision']&&(_0x2b473d['createdAt']=new Date(_0x171514['createdAt']['getTime']()+0xa)),_0x47fcd9['_update'](_0x2b473d,!0x0),delete _0x2b473d['authors'],_0xf4114['push'](_0x2b473d);}}if(this['adapter']){for(const _0x30fea9 of _0xf4114)this['_bufferUpdate'](_0x30fea9['id'],_0x30fea9,!0x0);this['sendBufferedUpdates']();}return _0x1d3a46;}['addRevisionData'](_0xc8ccd2){const _0x160a6d=this['repository']['createRevision'](_0xc8ccd2);return this['adapter']&&_0x160a6d['on']('_update',(_0x4e16c6,_0x52e738,_0x158572)=>{_0x158572||(this['_bufferUpdate'](_0x52e738['id'],_0x52e738,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x160a6d,this['_findInsertionIndex'](_0x160a6d)),_0x160a6d;}async['getRevisionDocumentData'](_0x31c7aa){await this['_loadRevisionData'](_0x31c7aa);const _0x761430={};for(const _0x1bb84b in _0x31c7aa['diffData']){if(_0x31c7aa['diffData'][_0x1bb84b]['attachChange']&&!_0x31c7aa['diffData'][_0x1bb84b]['attachChange']['isAttached'])continue;const _0x305491=this['_removeRevisionMarkers'](JSON['parse'](_0x31c7aa['diffData'][_0x1bb84b]['insertions'])),_0x5864e5=this['editor']['editing']['view']['document'],_0x2f3544=new _0x34ea43(_0x5864e5,_0x305491['map'](_0x498202=>C(_0x498202,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x761430[_0x1bb84b]=this['editor']['data']['processor']['toData'](_0x2f3544),this['editor']['data']['processor']['useFillerType']('default');}return _0x761430;}async['getRevisionRootsAttributes'](_0x49348e){await this['_loadRevisionData'](_0x49348e);const _0x497eee={};for(const _0x5bacea in _0x49348e['diffData'])_0x49348e['diffData'][_0x5bacea]['attachChange']&&!_0x49348e['diffData'][_0x5bacea]['attachChange']['isAttached']||(_0x497eee[_0x5bacea]=_0x49348e['diffData'][_0x5bacea]['attributesAfter']||{});return _0x497eee;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x5ab89a=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x395293=0x0;_0x395293<_0x5ab89a['length'];_0x395293++){const _0x4ea2a3=_0x5ab89a[_0x395293];let _0x14fa28=!0x1;for(const _0x4278cb of Object['keys'](_0x4ea2a3))void 0x0===_0x4ea2a3[_0x4278cb]?delete _0x4ea2a3[_0x4278cb]:'id'!==_0x4278cb&&(_0x14fa28=!0x0);_0x14fa28||(_0x5ab89a[_0x395293]=null);}if(_0x5ab89a=_0x5ab89a['filter'](_0x4ced13=>null!==_0x4ced13),!_0x5ab89a['length'])return;for(let _0x2b63ce=0x0;_0x2b63ce<_0x5ab89a['length'];_0x2b63ce++){const _0x3713e6=_0x5ab89a[_0x2b63ce];void 0x0!==_0x3713e6['fromVersion']&&void 0x0===_0x3713e6['toVersion']&&(_0x3713e6['toVersion']=this['repository']['getRevision'](_0x3713e6['id'])['toVersion']),void 0x0!==_0x3713e6['toVersion']&&void 0x0===_0x3713e6['fromVersion']&&(_0x3713e6['fromVersion']=this['repository']['getRevision'](_0x3713e6['id'])['fromVersion']);}const _0x3d5625=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x5ab89a,_0x3d5625)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x2ad8d1=>{if(_0x2ad8d1){for(const _0x3289aa of _0x2ad8d1)this['setRevisionData']({'id':_0x3289aa['id'],'createdAt':_0x3289aa['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x1c240a,_0x5247e3){let _0x4d23c5=this['editor']['config']['get']('initialData'),_0x2f3538=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x4d23c5){_0x4d23c5={};for(const _0x240f4d of this['editor']['model']['document']['getRootNames']())_0x4d23c5[_0x240f4d]='';}if('string'==typeof _0x4d23c5&&(_0x4d23c5={'main':_0x4d23c5}),void 0x0===_0x2f3538){_0x2f3538={};for(const _0x5005b4 of this['editor']['model']['document']['getRootNames']())_0x2f3538[_0x5005b4]={};}let _0x350997=!0x1;const _0x2044a0=Object['keys'](_0x4d23c5),_0x18c803=Object['keys'](_0x1c240a);for(const _0x1619b8 of _0x2044a0){if(_0x4d23c5[_0x1619b8]!==_0x1c240a[_0x1619b8]&&''!==_0x4d23c5[_0x1619b8]['trim']()){_0x350997=!0x0;break;}if(!_0xa1db8(_0x2f3538[_0x1619b8],_0x5247e3[_0x1619b8])&&Object['keys'](_0x2f3538[_0x1619b8])['length']>0x0){_0x350997=!0x0;break;}}_0x350997||(_0x350997=_0x18c803['some'](_0x22ff05=>!this['editor']['model']['document']['getRoot'](_0x22ff05))),_0x350997&&_0x5462cb('editor-initial-data-replaced-with-revision-data',{'editorData':_0x4d23c5,'editorRootsAttributes':_0x2f3538,'revisionData':_0x1c240a,'revisionRootsAttributes':_0x5247e3}),this['editor']['config']['set']('initialData',_0x1c240a),this['editor']['config']['set']('rootsAttributes',_0x5247e3);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x372c1f=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x372c1f['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x3c0662){const _0x5a4105=this['repository']['getRevisions']();_0x5a4105['reverse']();let _0x3cf1d7=0x0;for(;_0x3cf1d7<_0x5a4105['length'];){const _0x2b3e2b=_0x5a4105[_0x3cf1d7];if(_0x2b3e2b===this['currentRevision']){_0x3cf1d7++;continue;}if(_0x2b3e2b['id']===this['_initialRevisionId'])break;const _0x3f8fda=_0x3c0662['toVersion']-_0x2b3e2b['toVersion']||_0x3c0662['fromVersion']-_0x2b3e2b['fromVersion'];if(_0x3f8fda>0x0)break;if(_0x3f8fda<0x0)_0x3cf1d7++;else{if(!_0x3c0662['creator']&&_0x2b3e2b['creator'])break;if(_0x2b3e2b['creator']||!_0x3c0662['creator']){if(_0x3c0662['createdAt']>_0x2b3e2b['createdAt'])break;_0x3cf1d7++;}else _0x3cf1d7++;}}return _0x3cf1d7;}['setRevisionData'](_0x71c81a){const _0x26d8ab=this['repository']['getRevision'](_0x71c81a['id']);if(_0x71c81a['createdAt']&&(_0x71c81a['createdAt']=new Date(_0x71c81a['createdAt'])),_0x71c81a['authorsIds']){const _0x374f82=this['editor']['plugins']['get']('Users');_0x71c81a['authors']=_0x71c81a['authorsIds']['map'](_0x153205=>_0x374f82['getUser'](_0x153205));}_0x26d8ab['_update'](_0x71c81a,!0x0);}['buildRevisionData']({revision:_0x250a97=null,from:_0x4768e0=null,to:_0x42a2f7=null}){_0x4768e0=null!==_0x4768e0?_0x4768e0:_0x250a97['fromVersion'],_0x42a2f7=null!==_0x42a2f7?_0x42a2f7:_0x250a97['toVersion'];const _0x28fc28=this['_revisionDataBuilder']['getData'](_0x4768e0,_0x42a2f7),_0x20e9ff={'diffData':_0x28fc28['diffData'],'authorsIds':_0x28fc28['authorsIds'],'fromVersion':_0x4768e0,'toVersion':_0x42a2f7};if(!_0x250a97||_0x42a2f7!==_0x250a97['toVersion']){const _0x5a4e4a=_0x42a2f7-0x1,_0x45bcde=this['_source']['history']['getOperation'](_0x5a4e4a);_0x20e9ff['createdAt']=_0x45bcde&&_0x45bcde['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4768e0===this['_loadedStateData']['fromVersion']){for(const _0x50df37 of this['_loadedStateData']['authors'])_0x20e9ff['authorsIds']['includes'](_0x50df37['id'])||_0x20e9ff['authorsIds']['push'](_0x50df37['id']);}return _0x20e9ff;}['_loadRevisionData'](_0x2d17a6){if(!_0x2d17a6||_0x2d17a6['diffData'])return Promise['resolve']();{const _0x299975=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x299975,'revisionId':_0x2d17a6['id']})['then'](_0x33743c=>{_0x2d17a6['diffData']=_0x33743c['diffData'];});}}['_bufferUpdate'](_0x1292ce,_0x3e47d5,_0x5e1fde){if(this['_bufferedUpdates']['has'](_0x1292ce)){const _0x31e823=this['_bufferedUpdates']['get'](_0x1292ce);_0x3e47d5=_0x5e1fde?{..._0x31e823,..._0x3e47d5}:{..._0x3e47d5,..._0x31e823};}this['_bufferedUpdates']['set'](_0x1292ce,_0x3e47d5);}['_getFromVersion'](_0x45a46a){const _0x387f91=this['repository']['getRevisions']();_0x387f91['reverse'](),_0x387f91['shift']();const _0x544d14=_0x387f91['find'](_0x3c5e75=>_0x3c5e75['toVersion']<=_0x45a46a)['toVersion'];return _0x544d14<this['_startingVersion']?this['_startingVersion']:_0x544d14;}['_createInitialRevision'](_0x39d8aa){const _0xc6b297=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0xc6b297)this['_initialRevisionId']=_0xc6b297['id'];else{const _0x39554d=!this['editor']['model']['document']['roots']['find'](_0xddfdd4=>this['editor']['model']['hasContent'](_0xddfdd4)),_0x598cea=this['editor']['plugins']['get']('Users')['me']['id'],_0x2d4d2d=m(this['editor']['locale'],_0x39554d?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x39d8aa,'to':_0x39d8aa,'id':this['_initialRevisionId'],'name':_0x2d4d2d,'creatorId':_0x598cea});}}['_createCurrentRevision'](_0x18e23c){const _0x45dc07=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x45dc07),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x18e23c,'to':_0x18e23c,'id':_0x45dc07,'name':'','creatorId':null}));}['_makeRevision']({name:_0x3463c5,from:_0x5e0bb3,to:_0x3dc3f5,creatorId:_0x390124,id:_0x329cb7}){const _0x379bc6=this['buildRevisionData']({'from':_0x5e0bb3,'to':_0x3dc3f5});_0x379bc6['name']=_0x3463c5,_0x379bc6['creatorId']=_0x390124,_0x379bc6['id']=_0x329cb7;const _0x45be17=this['addRevisionData'](_0x379bc6);return this['adapter']&&this['_bufferUpdate'](_0x379bc6['id'],_0x379bc6,!0x0),_0x45be17;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x4a07b7){return(_0x4a07b7=_0x4a07b7['filter'](_0x367d8e=>!_0x367d8e['name']||'revision-start'!==_0x367d8e['name']&&'revision-end'!==_0x367d8e['name']))['forEach'](_0x21a759=>{'string'!=typeof _0x21a759&&(_0x21a759['children']=this['_removeRevisionMarkers'](_0x21a759['children']),_0x21a759['attributes']=_0x21a759['attributes']['filter'](_0x27ab54=>!_0x27ab54[0x0]['startsWith']('data-revision-')));}),_0x4a07b7;}}function C(_0x36707c,_0x3c54c0){const _0x123d2a=_0x3c54c0['editing']['view']['document'];if('string'==typeof _0x36707c)return new _0x22ba6c(_0x123d2a,_0x36707c);{const _0x6d7bad=_0x36707c['children']['map'](_0xb7e54e=>C(_0xb7e54e,_0x3c54c0));return new(P[_0x36707c['type']]||_0x422f3c)(_0x123d2a,_0x36707c['name'],_0x36707c['attributes'],_0x6d7bad);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x3c928f){this['editor']=_0x3c928f,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'](_0x412649){this['source']=_0x412649;const _0x31df3f=new Map(),_0x4d06a4=new Map(),_0x581277=this['editor']['model']['document']['roots']['map'](_0x31cca6=>_0x31cca6['rootName']);for(const _0x455c50 of _0x581277){const _0x120a5=this['editor']['model']['document']['getRoot'](_0x455c50),_0x4f11c9=T(_0x120a5);_0x31df3f['set'](_0x455c50,_0x4f11c9),_0x4d06a4['set'](_0x455c50,Object['fromEntries'](_0x120a5['getAttributes']()));}const _0xad0881=Array['from'](this['editor']['model']['markers'])['map'](_0x227572=>[_0x227572['name'],_0x227572['getRange']()]),_0x3450c1=this['source']['version'];this['_saveMetaData'](_0x3450c1,_0x31df3f,_0xad0881,_0x4d06a4),this['_startingRevisionId']=this['_revisionId'];const _0x5bd012=new Map(),_0x4096db=new Map();for(const _0x21663f of _0x581277){const _0xaa4996=F(_0x21663f);_0x5bd012['set'](_0x21663f,_0xaa4996),_0x4096db['set'](_0x21663f,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x5bd012,[],_0x4096db);}['getData'](_0x32a506,_0xc62885){if(this['_lastFrom']===_0x32a506&&this['_lastTo']<=_0xc62885)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0xc62885,!0x0);else{if(!this['_savedMetaData']['has'](_0x32a506)){const _0x306db6=this['_getPreviousFrom'](_0x32a506);this['_calculateMetaData'](_0x306db6,_0x32a506,!0x1);}this['_calculateMetaData'](_0x32a506,_0xc62885,!0x0);}return this['_lastFrom']=_0x32a506,this['_lastTo']=_0xc62885,this['_getState']();}['loadState'](_0x132bdf){this['_reset'](),this['_lastFrom']=_0x132bdf['fromVersion'],this['_lastTo']=_0x132bdf['toVersion'];for(const _0xbeeec in _0x132bdf['diffData']){const _0x50fa9d=_0x132bdf['diffData'][_0xbeeec]['attachChange'],_0x4bd1ba=_0xdad44a(_0x132bdf['diffData'][_0xbeeec]['attributesBefore'])||{},_0x26af8a=this['_makeModelFromViewString'](_0x132bdf['diffData'][_0xbeeec]['deletions']);_0x26af8a['rootName']=_0xbeeec,_0x26af8a['_isAttached']=!_0x50fa9d||!_0x50fa9d['isAttached'],_0x26af8a['isAttached']=()=>_0x26af8a['_isAttached'],this['_baseRoots']['set'](_0xbeeec,_0x26af8a),this['_baseRootsAttributes']['set'](_0xbeeec,_0x4bd1ba),_0x50fa9d&&this['_touchedRoots']['set'](_0xbeeec,_0x50fa9d);const _0x419379=this['_makeIdsRoot'](_0x26af8a);this['_baseIdsRoots']['set'](_0xbeeec,_0x419379);for(const [_0x520dd6,_0x41eed4]of _0x26af8a['markers']){if(!_0x520dd6['startsWith']('revision:'))continue;const _0x446837=_0x520dd6['split'](':')[0x2];for(const _0x29060b of _0x41eed4['getWalker']({'singleCharacters':!0x0})){const _0x4b3140=this['_getVidAttributeName'](_0x29060b),_0x410058='elementEnd'==_0x29060b['type']?_0x29060b['previousPosition']['path']['slice'](0x0,-0x1):_0x29060b['previousPosition']['path'],_0x110dee=_0x419379['getNodeByPath'](_0x410058)['getAttribute'](_0x4b3140);this['_touched']['set'](_0x110dee,{'userId':_0x446837});}}}this['_startingRevisionId']=this['_revisionId'];const _0x298414=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x48175f=>!this['_touched']['has'](_0x48175f));let _0x1c472f=0x0;const _0x108991=new Map();for(const _0x121779 in _0x132bdf['diffData']){const _0x58fa4f=_0x132bdf['diffData'][_0x121779]['attachChange'],_0x3ef80f=_0xdad44a(_0x132bdf['diffData'][_0x121779]['attributesAfter'])||{},_0x3ea35e=this['_makeModelFromViewString'](_0x132bdf['diffData'][_0x121779]['insertions']);_0x3ea35e['rootName']=_0x121779,_0x3ea35e['_isAttached']=!_0x58fa4f||_0x58fa4f['isAttached'],_0x3ea35e['isAttached']=()=>_0x3ea35e['_isAttached'],this['_diffRoots']['set'](_0x121779,_0x3ea35e),this['_diffRootsAttributes']['set'](_0x121779,_0x3ef80f);const _0x22375d=this['_makeIdsRoot'](_0x3ea35e,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x121779,_0x22375d),_0x108991['set'](_0x121779,_0x3ea35e['isAttached']()?_0x3ef80f:{});for(const [_0x2522ef,_0x19c5d0]of _0x3ea35e['markers']){if(!_0x2522ef['startsWith']('revision:'))continue;const _0xe7d6d0=_0x2522ef['split'](':')[0x2];for(const _0x1818f2 of _0x19c5d0['getWalker']({'singleCharacters':!0x0})){const _0x4c5f99=this['_getVidAttributeName'](_0x1818f2),_0x4a5a30=this['_revisionId']++,_0x4a94ab='elementEnd'==_0x1818f2['type']?_0x1818f2['previousPosition']['path']['slice'](0x0,-0x1):_0x1818f2['previousPosition']['path'];_0x22375d['getNodeByPath'](_0x4a94ab)['_setAttribute'](_0x4c5f99,_0x4a5a30),this['_touched']['set'](_0x4a5a30,{'userId':_0xe7d6d0});}}for(const _0x4f1ef3 of this['editor']['model']['createRangeIn'](_0x3ea35e)['getWalker']({'singleCharacters':!0x0})){const _0x3a5a43=this['_getVidAttributeName'](_0x4f1ef3),_0x3fe67c='elementEnd'==_0x4f1ef3['type']?_0x4f1ef3['previousPosition']['path']['slice'](0x0,-0x1):_0x4f1ef3['previousPosition']['path'],_0x2747d2=_0x22375d['getNodeByPath'](_0x3fe67c);_0x2747d2['getAttribute'](_0x3a5a43)>0x0||_0x2747d2['_setAttribute'](_0x3a5a43,_0x298414[_0x1c472f++]);}for(const [_0x51bc0b,_0x572a1c]of _0x3ea35e['markers'])_0x51bc0b['startsWith']('revision:')||this['_markers']['set'](_0x51bc0b,_0x572a1c);}const _0x105c3f=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x105c3f),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x105c3f,0x1));const _0xf8c297=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0xf8c297),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xf8c297,0x1));const _0x4a0b40=Array['from'](this['_diffRoots'])['map'](([_0x43f8a2,_0x266c37])=>[_0x43f8a2,T(_0x266c37)]);this['_saveMetaData'](this['_lastTo'],_0x4a0b40,this['_markers'],_0x108991);}['_makeModelFromViewString'](_0x45e57a){const _0x31f10f=JSON['parse'](_0x45e57a),_0x38b507=this['editor']['editing']['view']['document'],_0x270f70=new _0x34ea43(_0x38b507,_0x31f10f['map'](_0x3b300e=>C(_0x3b300e,this['editor'])));return this['editor']['data']['toModel'](_0x270f70);}['_saveMetaData'](_0x10ab13,_0x3e8cc3,_0x295353,_0x412d40){const _0x2591c6=new Map(_0x3e8cc3),_0x58d205=new Map(_0xdad44a(_0x412d40)),_0x447ccc=new Map();for(const [_0x1be995,_0x16ae85]of _0x295353)_0x447ccc['set'](_0x1be995,{'start':_0x16ae85['start']['clone'](),'end':_0x16ae85['end']['clone'](),'rootName':_0x16ae85['root']['rootName']});this['_savedMetaData']['set'](_0x10ab13,{'roots':_0x2591c6,'markers':_0x447ccc,'rootsAttributes':_0x58d205});}['_removeMetaData'](_0x57917a){this['_savedMetaData']['delete'](_0x57917a);}['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'](_0x65609a,_0x48b86e=null){let _0x1d8d2f=null;_0x65609a['is']('documentFragment')||(_0x1d8d2f=new ft(_0x65609a['name'],{'vid_start':null===_0x48b86e?this['_revisionId']++:_0x48b86e++}));const _0x4c2ecc=[];for(const _0x1eb299 of _0x65609a['getChildren']())if(_0x1eb299['is']('element')){_0x4c2ecc['push'](this['_makeIdsRoot'](_0x1eb299,_0x48b86e));const _0x102695=_0x4c2ecc[_0x4c2ecc['length']-0x1];null!==_0x48b86e&&(_0x48b86e=_0x102695['is']('element','$text')?_0x102695['getAttribute']('vid')+0x1:_0x102695['getAttribute']('vid_end')+0x1);}else{for(let _0x239a77=0x0;_0x239a77<_0x1eb299['offsetSize'];_0x239a77++)_0x4c2ecc['push'](new ft('$text',{'vid':null===_0x48b86e?this['_revisionId']++:_0x48b86e++}));}if(_0x65609a['is']('documentFragment')){const _0x515756=F(_0x65609a['rootName']);return _0x515756['_insertChild'](0x0,_0x4c2ecc),_0x515756;}return _0x1d8d2f['_setAttribute']('vid_end',null===_0x48b86e?this['_revisionId']++:_0x48b86e++),_0x1d8d2f['_insertChild'](0x0,_0x4c2ecc),_0x1d8d2f;}['_calculateMetaData'](_0x39ddb0,_0x44618b,_0x52b16a){this['_reset']();const {roots:_0x99138e,markers:_0x2f3ff2,rootsAttributes:_0x12eae3}=this['_savedMetaData']['get'](_0x39ddb0);this['_baseRoots']=new Map(_0x99138e),this['_baseRootsAttributes']=new Map(_0xdad44a(_0x12eae3));for(const [_0x567ae9,_0x4cadb3]of this['_baseRoots'])if('$graveyard'!==_0x567ae9&&(this['_diffRoots']['set'](_0x567ae9,T(_0x4cadb3)),this['_diffRootsAttributes']=new Map(_0xdad44a(_0x12eae3)),_0x52b16a)){const _0x5b53fc=this['_revisionId'];this['_idsRoots']['set'](_0x567ae9,this['_makeIdsRoot'](_0x4cadb3)),this['_baseIdsRoots']['set'](_0x567ae9,this['_makeIdsRoot'](_0x4cadb3,_0x5b53fc));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x52b16a&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x2d4ba3,_0x3d8d61]of _0x2f3ff2){const _0xa422c=this['_baseRoots']['get'](_0x3d8d61['rootName']),_0x449030=this['_diffRoots']['get'](_0x3d8d61['rootName']),_0x4b66e5=new vt(this['_fixPosition'](_0x3d8d61['start'],_0xa422c),this['_fixPosition'](_0x3d8d61['end'],_0xa422c)),_0x3f0c96=this['_fixRange'](_0x4b66e5,_0x449030);_0xa422c['markers']['set'](_0x2d4ba3,_0x4b66e5),this['_markers']['set'](_0x2d4ba3,_0x3f0c96);}this['_applyOperations'](_0x39ddb0,_0x44618b,_0x52b16a);}['_applyOperations'](_0x1841cd,_0x2026e1,_0x54bb77){for(const _0x13aa4a of this['source']['getOperations'](_0x1841cd,_0x2026e1))this['_handleOperation'](_0x13aa4a,_0x54bb77);for(const _0x28c2fa of this['_diffRoots']['values']())_0x28c2fa['markers']['clear']();for(const [_0x1356a5,_0x4a625f]of this['_markers']){this['_diffRoots']['get'](_0x4a625f['root']['rootName'])['markers']['set'](_0x1356a5,_0x4a625f['clone']());}const _0x4a000c=new Map(),_0xaa1508=new Map();for(const [_0x37a8d9,_0x51cc9a]of this['_diffRoots'])_0x4a000c['set'](_0x37a8d9,T(_0x51cc9a)),_0xaa1508['set'](_0x37a8d9,this['_diffRootsAttributes']['get'](_0x37a8d9));this['_saveMetaData'](_0x2026e1,_0x4a000c,this['_markers'],_0xaa1508);}['_getPreviousFrom'](_0x54af1f){const _0x1015a6=Array['from'](this['_savedMetaData']['keys']());_0x1015a6['sort']((_0x17d415,_0x33f1b1)=>_0x17d415-_0x33f1b1),_0x1015a6['reverse']();for(const _0x34aa9c of _0x1015a6)if(_0x34aa9c<_0x54af1f)return _0x34aa9c;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x5b21a9,_0x28985f){const _0x4a25af=Array['from'](_0x28985f['markers'])['map'](([_0x322155,_0x5ce8fe])=>[_0x322155,this['_fixRange'](_0x5ce8fe,_0x5b21a9)]);_0x5b21a9['markers']=new Map(_0x4a25af);}['_transformMarkers'](_0x4742c7){for(const _0x17a036 of this['_markers']['values']()){const _0x3a00c9=_0x17a036['getTransformedByOperation'](_0x4742c7),_0x1ee960=vt['_createFromRanges'](_0x3a00c9);_0x17a036['start']=_0x1ee960['start'],_0x17a036['end']=_0x1ee960['end'];}}['_handleOperation'](_0xb0cf80,_0x22bf15){if('addRoot'!=_0xb0cf80['type']&&'detachRoot'!=_0xb0cf80['type']){if('insert'==_0xb0cf80['type']){const _0x3c9b7c=_0xb0cf80['position']['root']['rootName'];this['_diffRoots']['has'](_0x3c9b7c)||(this['_diffRoots']['set'](_0x3c9b7c,F(_0x3c9b7c,!0x0)),this['_diffRootsAttributes']['set'](_0x3c9b7c,{}),_0x22bf15&&this['_idsRoots']['set'](_0x3c9b7c,F(_0x3c9b7c,!0x0)));}else{if('addRootAttribute'==_0xb0cf80['type']||'removeRootAttribute'==_0xb0cf80['type']||'changeRootAttribute'==_0xb0cf80['type'])return void this['_handleRootAttributeOperation'](_0xb0cf80);'marker'==_0xb0cf80['type']&&this['_handleMarkerOperation'](_0xb0cf80);}if('marker'!==_0xb0cf80['type']){const _0x149e64=this['_cloneOperation'](_0xb0cf80,this['_diffRoots']);_0x149e64['_execute'](),this['_transformMarkers'](_0x149e64);}if(_0x22bf15)switch(_0xb0cf80['type']){case'insert':this['_handleInsertOperation'](_0xb0cf80);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0xb0cf80);break;case'merge':this['_handleMergeOperation'](_0xb0cf80);break;case'split':this['_handleSplitOperation'](_0xb0cf80);}}else this['_handleRootOperation'](_0xb0cf80,_0x22bf15);}['_cloneOperation'](_0x4ed82f,_0xb5259e){const _0x233888=_0x4ed82f['clone']();return _0x233888['_authorId']=_0x4ed82f['_authorId'],this['_fixOperation'](_0x233888,_0xb5259e),_0x233888;}['_getBaseVids'](_0x43dc0e){return _0x43dc0e['map'](_0x343f6a=>{const _0x4b4209=this['_getVidAttributeName'](_0x343f6a);return Number(_0x343f6a['item']['getAttribute'](_0x4b4209));});}['_generateTape'](_0x5f16f5,_0x244cc0){if(_0x5f16f5['is']('element','$text'))_0x244cc0['push']({'item':_0x5f16f5,'type':'text'});else{_0x5f16f5['is']('element')&&_0x244cc0['push']({'item':_0x5f16f5,'type':'elementStart'});for(const _0x3f266d of _0x5f16f5['getChildren']())this['_generateTape'](_0x3f266d,_0x244cc0);_0x5f16f5['is']('element')&&_0x244cc0['push']({'item':_0x5f16f5,'type':'elementEnd'});}return _0x244cc0;}['_getState'](){const _0x6e43eb=new Map(this['_touched']),_0x486e07=new Map(_0x6e43eb),_0xea3934=new Map(),_0x520921={'insertions':{},'deletions':{}},_0x2c33f9={'insertions':{},'deletions':{}},_0x11f518=new Map(),_0x1cdd69=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x1cdd69['delete']('$graveyard');for(const _0x40cb77 of _0x1cdd69){const _0x12e2d6=this['_diffRoots']['get'](_0x40cb77)||F(_0x40cb77,!0x1),_0x37751e=this['_baseRoots']['get'](_0x40cb77)||F(_0x40cb77,!0x1);_0x12e2d6['isAttached']()||_0x37751e['isAttached']()?(_0x520921['insertions'][_0x40cb77]=T(_0x12e2d6),_0x520921['deletions'][_0x40cb77]=T(_0x37751e),this['_copyMarkers'](_0x520921['deletions'][_0x40cb77],_0x37751e),this['_copyMarkers'](_0x520921['insertions'][_0x40cb77],_0x12e2d6),_0x2c33f9['insertions'][_0x40cb77]=this['_generateTape'](this['_idsRoots']['get'](_0x40cb77),[]),_0x2c33f9['deletions'][_0x40cb77]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x40cb77)||F(_0x40cb77,!0x1),[])):_0x1cdd69['delete'](_0x40cb77);}for(const _0x502b77 of _0x1cdd69){const _0x2ef413=_0x2c33f9['insertions'][_0x502b77];for(const _0x4b7e1a of _0x2ef413){const _0x308822=this['_getVidAttributeName'](_0x4b7e1a),_0x553778=_0x4b7e1a['item']['getAttribute'](_0x308822);_0x486e07['delete'](_0x553778),_0x553778>=this['_startingRevisionId']&&_0xea3934['set'](_0x553778,_0x6e43eb['get'](_0x553778));}}for(const _0x919f42 of _0x1cdd69){const _0x324447=_0x2c33f9['insertions'][_0x919f42],_0x28e662=this['_getBaseVids'](_0x2c33f9['deletions'][_0x919f42]);let _0x8db493=0x0;for(const _0x39356d of _0x324447){const _0x1252f6=this['_getVidAttributeName'](_0x39356d),_0x356473=_0x39356d['item']['getAttribute'](_0x1252f6);if(!_0xea3934['has'](_0x356473)&&!_0x11f518['has'](_0x356473)){if(_0x486e07['has'](_0x356473))_0x8db493++;else{if(_0x356473!=_0x28e662[_0x8db493]){const _0x4bd629=_0x6e43eb['get'](_0x356473)||_0x6e43eb['get'](_0x28e662[_0x8db493]);for(;_0x356473!=_0x28e662[_0x8db493];)_0x486e07['has'](_0x28e662[_0x8db493])||(_0x11f518['set'](_0x28e662[_0x8db493],_0x4bd629),_0x6e43eb['set'](_0x28e662[_0x8db493],_0x4bd629)),_0x8db493++;}_0x8db493++;}}}}for(const _0x3d65b6 of _0x1cdd69){const _0xaacd6d=_0x2c33f9['insertions'][_0x3d65b6];for(const _0x4cf203 of _0xaacd6d){const _0x463722=this['_getVidAttributeName'](_0x4cf203),_0x263217=_0x4cf203['item']['getAttribute'](_0x463722);if(_0x11f518['has'](_0x263217)){const _0x1ce2d4=_0x11f518['get'](_0x263217);_0x486e07['has'](_0x263217)||_0x486e07['set'](_0x263217,{..._0x1ce2d4}),_0xea3934['set'](_0x263217,{..._0x1ce2d4});}}}for(const _0x21bd8d of _0x486e07['keys']())_0x21bd8d>=this['_startingRevisionId']&&_0x486e07['delete'](_0x21bd8d);const _0x172972=new Map();for(const _0x552232 of _0x1cdd69){let _0x3eab73=_0x2c33f9['insertions'][_0x552232];for(const _0x5e5ab6 of _0x3eab73)if(_0x5e5ab6['item']['is']('element','tableCell')){const _0x3088d8=this['_getVidAttributeName'](_0x5e5ab6),_0x492f8e=_0x5e5ab6['item']['getAttribute'](_0x3088d8);if(_0xea3934['has'](_0x492f8e)){const _0x173832=_0x5e5ab6['item']['parent']['parent']['getAttribute']('vid_start'),_0x2779d2=_0x172972['get'](_0x173832)||new Set();_0x2779d2['add'](_0xea3934['get'](_0x492f8e)['userId']),_0x172972['set'](_0x173832,_0x2779d2);}}_0x3eab73=_0x2c33f9['deletions'][_0x552232];for(const _0x58253c of _0x3eab73)if(_0x58253c['item']['is']('element','tableCell')){const _0x474fe5=this['_getVidAttributeName'](_0x58253c),_0x7bdea=_0x58253c['item']['getAttribute'](_0x474fe5);if(_0x486e07['has'](_0x7bdea)){const _0x3b19a9=_0x58253c['item']['parent']['parent']['getAttribute']('vid_start'),_0x510ab3=_0x172972['get'](_0x3b19a9)||new Set();_0x510ab3['add'](_0x486e07['get'](_0x7bdea)['userId']),_0x172972['set'](_0x3b19a9,_0x510ab3);}}for(const _0x5113aa of _0x172972['keys']())(_0xea3934['has'](_0x5113aa)||_0x486e07['has'](_0x5113aa))&&_0x172972['delete'](_0x5113aa);}for(const _0x305a97 of _0x1cdd69){const _0x5dccaf=_0x2c33f9['insertions'][_0x305a97];let _0x51a3c4=null,_0x679872=null;for(const _0x581955 of _0x5dccaf){const _0x20575c=this['_getVidAttributeName'](_0x581955),_0x4a2ba2=_0x581955['item']['getAttribute'](_0x20575c),_0x4a1baa=_0x172972['get'](_0x4a2ba2);_0x4a1baa&&'elementStart'==_0x581955['type']&&(_0x51a3c4=Array['from'](_0x4a1baa)[0x0],_0x679872=_0x581955['item']['getAttribute']('vid_end')),_0x51a3c4&&(_0x486e07['set'](_0x4a2ba2,{'userId':_0x51a3c4}),_0xea3934['set'](_0x4a2ba2,{'userId':_0x51a3c4})),_0x4a2ba2==_0x679872&&(_0x51a3c4=null,_0x679872=null);}}const _0x6832bc={},_0x3a1db9=new Set();for(const _0x4ac851 of _0x1cdd69){const _0xd0d38d=_0x520921['deletions'][_0x4ac851],_0x3f8362=_0x520921['insertions'][_0x4ac851];for(const {userId:_0x260e24}of this['_touchedMarkers']['values']())null!==_0x260e24&&_0x3a1db9['add'](_0x260e24);for(const {userId:_0x10bbd2}of this['_touchedRoots']['values']())null!==_0x10bbd2&&_0x3a1db9['add'](_0x10bbd2);this['_markChanges'](_0x3f8362,_0x2c33f9['insertions'][_0x4ac851],_0xea3934,'insertion',_0x3a1db9),this['_markChanges'](_0xd0d38d,_0x2c33f9['deletions'][_0x4ac851],_0x486e07,'deletion',_0x3a1db9),_0x6832bc[_0x4ac851]={'insertions':this['_prepareViewToSave'](_0x3f8362),'deletions':this['_prepareViewToSave'](_0xd0d38d),'attachChange':this['_touchedRoots']['get'](_0x4ac851)||null,'attributesBefore':_0xdad44a(this['_baseRootsAttributes']['get'](_0x4ac851))||{},'attributesAfter':_0xdad44a(this['_diffRootsAttributes']['get'](_0x4ac851))};}return{'diffData':_0x6832bc,'authorsIds':Array['from'](_0x3a1db9)};}['_processRootBeforeSave'](_0x4aaf48){for(const [,_0x25c058]of _0x4aaf48['markers']){const _0x3a0986=_0x25c058['start']['getAncestors']()['filter'](_0x1e110a=>'tableCell'==_0x1e110a['name']);for(const _0x2ef6e7 of _0x3a0986)0x1==_0x2ef6e7['childCount']&&_0x2ef6e7['getChild'](0x0)['is']('element','paragraph')&&_0x2ef6e7['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x5089b4){this['_processRootBeforeSave'](_0x5089b4);const _0x43c73e=this['editor']['data']['toView'](_0x5089b4,{}),_0x5a9083=Array['from'](_0x43c73e['getChildren']())['map'](_0x2eda0d=>this['_getViewJson'](_0x2eda0d));return JSON['stringify'](_0x5a9083);}['_getViewJson'](_0x90d963){if(_0x90d963['is']('$text'))return _0x90d963['data'];{const _0x19c5c6=_0x90d963;return{'type':Object['keys'](P)['find'](_0x342461=>_0x90d963 instanceof P[_0x342461]),'name':_0x19c5c6['name'],'attributes':Array['from'](_0x19c5c6['getAttributes']()),'children':Array['from'](_0x19c5c6['getChildren']())['map'](_0x227047=>this['_getViewJson'](_0x227047))};}}['_markChanges'](_0x588bb8,_0x568251,_0x12771a,_0xda93c1,_0x538c5b){let _0x32d399=null,_0x19f7c1=null,_0x3a95be=0x0;const _0x23f2c6=this['editor']['model'];for(let _0x1d24fa=0x0;_0x1d24fa<_0x568251['length'];_0x1d24fa++){const _0xcac0e1=this['_getVidAttributeName'](_0x568251[_0x1d24fa]),_0x2d033d=_0x568251[_0x1d24fa]['item']['getAttribute'](_0xcac0e1),_0x4fd105=_0x12771a['get'](_0x2d033d),_0x5776db=_0x1d24fa==_0x568251['length']-0x1;(!_0x32d399&&_0x4fd105&&(_0x32d399=_0x4fd105,_0x19f7c1=_0x568251[_0x1d24fa]),_0x32d399&&(!_0x4fd105||_0x4fd105['userId']!=_0x32d399['userId']))&&(_0x89ca75(_0x4fd105,B(_0x19f7c1,_0x588bb8,_0x23f2c6),B(_0x568251[_0x1d24fa],_0x588bb8,_0x23f2c6)),_0x32d399=_0x4fd105||null,_0x19f7c1=_0x4fd105?_0x568251[_0x1d24fa]:null),_0x32d399&&_0x5776db&&_0x89ca75(_0x4fd105,B(_0x19f7c1,_0x588bb8,_0x23f2c6),J(_0x568251[_0x1d24fa],_0x588bb8,_0x23f2c6));}function _0x89ca75(_0xc50f63,_0x3ec186,_0x3a5c1d){const _0x4a8c2d=_0x32d399['userId'],_0x4d0800='revision:'+_0xda93c1+':'+_0x4a8c2d+':'+_0x3a95be++,_0xbd757b=_0x23f2c6['createRange'](_0x3ec186,_0x3a5c1d);_0x588bb8['markers']['set'](_0x4d0800,_0xbd757b),null!==_0x4a8c2d&&_0x538c5b['add'](_0x4a8c2d);}}['_getVidAttributeName'](_0x160afc){switch(_0x160afc['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x2f2cf2,_0x5f3a34){_0x2f2cf2['baseVersion']=null;for(const _0x3fe954 in _0x2f2cf2){const _0xf994ec=_0x2f2cf2[_0x3fe954];if(_0xf994ec instanceof gt){const _0x595c1e=_0x5f3a34['get'](_0xf994ec['root']['rootName']);_0x2f2cf2[_0x3fe954]=this['_fixPosition'](_0xf994ec,_0x595c1e);}if(_0xf994ec instanceof vt){const _0x473a21=_0x5f3a34['get'](_0xf994ec['root']['rootName']);_0x2f2cf2[_0x3fe954]=this['_fixRange'](_0xf994ec,_0x473a21);}'root'===_0x3fe954&&(_0x2f2cf2['root']=_0x5f3a34['get'](_0x2f2cf2['root']['rootName']));}}['_fixRange'](_0x129c18,_0x15d296){return this['editor']['model']['createRange'](this['_fixPosition'](_0x129c18['start'],_0x15d296),this['_fixPosition'](_0x129c18['end'],_0x15d296));}['_fixPosition'](_0x366242,_0x555766){return this['editor']['model']['createPositionFromPath'](_0x555766,_0x366242['path'],_0x366242['stickiness']);}['_handleInsertOperation'](_0x89047c){const _0x1a1c7c=this['_idsRoots']['get'](_0x89047c['position']['root']['rootName']),_0x157b9f=this['_fixPosition'](_0x89047c['position'],_0x1a1c7c),_0x55f9f4=null===_0x89047c['_authorId']?null:_0x89047c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x41c1ef=_0x157b9f['parent'],_0x57c1f8=this['_revisionId'],_0x2c6522=[];for(const _0x42ccd5 of _0x89047c['nodes'])if(_0x42ccd5['is']('element'))_0x2c6522['push'](this['_makeIdsRoot'](_0x42ccd5));else{for(let _0x1281ef=0x0;_0x1281ef<_0x42ccd5['offsetSize'];_0x1281ef++)_0x2c6522['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x15b5ba=this['_revisionId'];for(let _0x124047=_0x57c1f8;_0x124047<_0x15b5ba;_0x124047++)this['_touched']['set'](_0x124047,{'userId':_0x55f9f4});_0x41c1ef['_insertChild'](_0x157b9f['offset'],_0x2c6522);}['_handleMoveOperation'](_0x3aa6f1){(_0x3aa6f1=this['_cloneOperation'](_0x3aa6f1,this['_idsRoots']))['_execute']();const _0x580c20=null===_0x3aa6f1['_authorId']?null:_0x3aa6f1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xbdff67=_0x3aa6f1['getMovedRangeStart'](),_0x51bed3=_0xbdff67['parent'],_0x5c161a=_0xbdff67['offset'];!function _0x551745(_0x1217de,_0xad06a8,_0x346ad8,_0x41d143){for(let _0x48f70c=_0x346ad8;_0x48f70c<_0x41d143;_0x48f70c++){const _0x2d0da3=_0xad06a8['getChild'](_0x48f70c);_0x2d0da3['is']('element','$text')?_0x1217de['set'](_0x2d0da3['getAttribute']('vid'),{'userId':_0x580c20}):(_0x1217de['set'](_0x2d0da3['getAttribute']('vid_start'),{'userId':_0x580c20}),_0x551745(_0x1217de,_0x2d0da3,0x0,_0x2d0da3['childCount']),_0x1217de['set'](_0x2d0da3['getAttribute']('vid_end'),{'userId':_0x580c20}));}}(this['_touched'],_0x51bed3,_0x5c161a,_0x5c161a+_0x3aa6f1['howMany']);}['_handleMergeOperation'](_0x365d79){const _0x34fc4=null===(_0x365d79=this['_cloneOperation'](_0x365d79,this['_idsRoots']))['_authorId']?null:_0x365d79['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5ae757=_0x365d79['targetPosition']['parent'],_0x37805c=_0x365d79['sourcePosition']['parent'],_0xc8e07=_0x5ae757['getAttribute']('vid_end'),_0x157096=_0x37805c['getAttribute']('vid_start');_0x5ae757['_setAttribute']('vid_end',_0x37805c['getAttribute']('vid_end')),_0x37805c['_setAttribute']('vid_end',_0xc8e07),this['_touched']['set'](_0x157096,{'userId':_0x34fc4}),this['_touched']['set'](_0xc8e07,{'userId':_0x34fc4}),_0x365d79['_execute']();}['_handleSplitOperation'](_0x525e5f){const _0x9cc4f8=null===(_0x525e5f=this['_cloneOperation'](_0x525e5f,this['_idsRoots']))['_authorId']?null:_0x525e5f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5e5ca4=_0x525e5f['graveyardPosition'],_0x3a8195=_0x525e5f['splitPosition']['parent'];_0x525e5f['_execute']();const _0x410c2a=_0x3a8195['getAttribute']('vid_end'),_0x3b19dd=_0x525e5f['insertionPosition']['nodeAfter'];if(_0x5e5ca4){const _0x22124c=_0x3b19dd['getAttribute']('vid_end'),_0x2e88a8=_0x3a8195['getAttribute']('vid_end');_0x3a8195['_setAttribute']('vid_end',_0x22124c),_0x3b19dd['_setAttribute']('vid_end',_0x2e88a8),this['_touched']['set'](_0x3a8195['getAttribute']('vid_end'),{'userId':_0x9cc4f8}),this['_touched']['set'](_0x3b19dd['getAttribute']('vid_start'),{'userId':_0x9cc4f8});}else{const _0x315f4b=this['_revisionId']++,_0xe44b21=this['_revisionId']++;_0x3a8195['_setAttribute']('vid_end',_0x315f4b),_0x3b19dd['_setAttribute']('vid_start',_0xe44b21),_0x3b19dd['_setAttribute']('vid_end',_0x410c2a),this['_touched']['set'](_0x315f4b,{'userId':_0x9cc4f8}),this['_touched']['set'](_0xe44b21,{'userId':_0x9cc4f8});}}['_handleMarkerOperation'](_0x2423eb){if(!_0x2423eb['affectsData'])return;const _0x31a0db=(_0x2423eb=this['_cloneOperation'](_0x2423eb,this['_diffRoots']))['oldRange']?_0x2423eb['oldRange']['root']:null,_0x5a0699=_0x2423eb['newRange']?_0x2423eb['newRange']['root']:null;_0x31a0db&&this['_markers']['delete'](_0x2423eb['name']),_0x5a0699&&this['_markers']['set'](_0x2423eb['name'],_0x2423eb['newRange']['clone']());const _0x580cdc=null===_0x2423eb['_authorId']?null:_0x2423eb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5368c7=_0x2423eb['name'];if(!this['_touchedMarkers']['has'](_0x5368c7))return void this['_touchedMarkers']['set'](_0x5368c7,{'range':_0x2423eb['oldRange'],'userId':_0x580cdc});const _0x3f70c1=this['_touchedMarkers']['get'](_0x5368c7),_0x26db99=_0x3f70c1['range'],_0xcfcb79=_0x2423eb['newRange'];null==_0x26db99&&null==_0xcfcb79||_0x26db99&&_0xcfcb79&&_0x26db99['isEqual'](_0xcfcb79)?this['_touchedMarkers']['delete'](_0x2423eb['name']):_0x3f70c1['userId']=_0x580cdc;}['_handleRootOperation'](_0x44cd1c,_0x47911e){this['_diffRoots']['has'](_0x44cd1c['rootName'])?this['_diffRoots']['get'](_0x44cd1c['rootName'])['_isAttached']=_0x44cd1c['isAdd']:(this['_diffRoots']['set'](_0x44cd1c['rootName'],F(_0x44cd1c['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x44cd1c['rootName'],{}),_0x47911e&&this['_idsRoots']['set'](_0x44cd1c['rootName'],F(_0x44cd1c['rootName'],!0x0)));const _0x50e16c=null===_0x44cd1c['_authorId']?null:_0x44cd1c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xb9907a=this['_touchedRoots']['get'](_0x44cd1c['rootName']);_0xb9907a&&_0xb9907a['userId']===_0x50e16c?this['_touchedRoots']['delete'](_0x44cd1c['rootName']):this['_touchedRoots']['set'](_0x44cd1c['rootName'],{'userId':_0x50e16c,'isAttached':_0x44cd1c['isAdd']});}['_handleRootAttributeOperation'](_0x285ef0){const _0x1a6550=this['_diffRootsAttributes']['get'](_0x285ef0['root']['rootName']);null===_0x285ef0['newValue']?delete _0x1a6550[_0x285ef0['key']]:_0x1a6550[_0x285ef0['key']]=_0x285ef0['newValue'];}}function T(_0x48dab9){const _0x559ed4=F(_0x48dab9['rootName'],_0x48dab9['isAttached']());for(const _0x2eacda of _0x48dab9['getChildren']()){const _0x59cd6c=_0x2eacda['_clone'](!0x0);_0x559ed4['_appendChild'](_0x59cd6c);}return _0x559ed4;}function F(_0x1da350,_0x5ea79=!0x0){const _0x1a965a=new mt();return _0x1a965a['rootName']=_0x1da350,_0x1a965a['_isAttached']=_0x5ea79,_0x1a965a['isAttached']=()=>_0x1a965a['_isAttached'],_0x1a965a;}function B(_0x1a2418,_0x53c603,_0x56d669){const _0x4c4b8c='elementEnd'==_0x1a2418['type']?_0x56d669['createPositionAt'](_0x1a2418['item'],'end'):_0x56d669['createPositionBefore'](_0x1a2418['item']);return _0x56d669['createPositionFromPath'](_0x53c603,_0x4c4b8c['path'],_0x4c4b8c['stickiness']);}function J(_0x10428d,_0x3bc37e,_0x4b5ead){const _0x1b6037='elementStart'==_0x10428d['type']?_0x4b5ead['createPositionAt'](_0x10428d['item'],0x0):_0x4b5ead['createPositionAfter'](_0x10428d['item']);return _0x4b5ead['createPositionFromPath'](_0x3bc37e,_0x1b6037['path'],_0x1b6037['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x4667ad,_0x534359){super(_0x4667ad),this['focusTracker']=new _0x3cb2ca(),this['keystrokes']=new _0x114cb4(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x534359),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x1a289e(this);}['render'](){super['render'](),_0x427238({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x17d459=_0x9ea97c=>_0x9ea97c['stopPropagation']();this['keystrokes']['set']('arrowright',_0x17d459),this['keystrokes']['set']('arrowleft',_0x17d459),this['keystrokes']['set']('arrowup',_0x17d459),this['keystrokes']['set']('arrowdown',_0x17d459);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x55471c){this['revisionNameInputView']['fieldView']['element']['value']=_0x55471c['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x36e2ed){const _0x531c74=new _0x1c9501(this['locale'],_0x2f53a3),_0x4a6ecc=_0x531c74['fieldView'];_0x4a6ecc['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x4b0fbd=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x36e2ed&&(_0x4b0fbd+='\x20('+m(this['locale'],'optional')+')'),(_0x531c74['label']=_0x4b0fbd,_0x4a6ecc['on']('input',()=>{this['revisionNameInputValue']=_0x4a6ecc['element']['value']['trim']();}),_0x531c74);}}class u extends _0x32cb53{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x4f0af4=this['editor'],_0x38d95b=_0x4f0af4['plugins']['get']('RevisionTracker');_0x4f0af4['ui']['componentFactory']['add']('revisionHistory',_0x2c8f06=>{const _0x1fbb37=_0x1e2d2c(_0x2c8f06),_0x506971=_0x1fbb37['panelView']['children'],_0x3a38f4=new _0x420742(_0x2c8f06),_0x12ba6f=new _0x382b10(_0x2c8f06),_0x481e4f=new te(_0x2c8f06),_0x556a6f=new _0x382b10(_0x2c8f06),_0x284626=new te(_0x2c8f06);return _0x1fbb37['bind']('isEnabled')['to'](_0x38d95b,'isReady',_0x38d95b,'isEnabled',_0x4f0af4,'isReadOnly',(_0x2e613c,_0x534a4f,_0x4003b6)=>_0x2e613c&&_0x534a4f&&!_0x4003b6),_0x1fbb37['buttonView']['set']({'icon':_0xfd812b['history'],'label':m(_0x2c8f06,'Revision\x20history'),'tooltip':!0x0}),_0x481e4f['set']({'label':m(_0x2c8f06,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x481e4f['bind']('isEnabled')['to'](_0x38d95b,'isReady',_0x38d95b,'isEnabled',_0x4f0af4,'isReadOnly',(_0x11a8e5,_0x14d2f3,_0x37f57d)=>_0x11a8e5&&_0x14d2f3&&!_0x37f57d),_0x481e4f['on']('execute',()=>this['_showDialog']()),_0x284626['set']({'label':m(_0x2c8f06,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x284626['bind']('isEnabled')['to'](_0x38d95b,'isReady',_0x4f0af4,'isReadOnly',(_0x2e05c8,_0x5a7c7e)=>_0x2e05c8&&!_0x5a7c7e),_0x284626['on']('execute',()=>{_0x4f0af4['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x1fbb37['isOpen']=!0x1,_0x4f0af4['editing']['view']['focus']();}),_0x12ba6f['children']['add'](_0x481e4f),_0x556a6f['children']['add'](_0x284626),_0x3a38f4['role']='menu',_0x3a38f4['items']['addMany']([_0x12ba6f,_0x556a6f]),_0x506971['add'](_0x3a38f4),_0x1fbb37;}),_0x4f0af4['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x11f825=this['editor'],_0x18bed6=_0x11f825['locale'],_0x712682=new _0x59e4e3(_0x18bed6),_0x1c1778=new _0x50ce35(_0x18bed6);_0x712682['buttonView']['set']({'icon':_0xfd812b['history'],'label':m(_0x18bed6,'Revision\x20history')});const _0x113753=new _0x4c86f4(_0x18bed6,_0x712682),_0xb5a158=new _0x53eb9b(_0x18bed6);_0xb5a158['set']({'label':m(_0x18bed6,'Save\x20current\x20revision')}),_0xb5a158['delegate']('execute')['to'](_0x712682),_0xb5a158['on']('execute',()=>{this['_showDialog']();}),_0x113753['children']['add'](_0xb5a158),_0x1c1778['items']['add'](_0x113753);const _0x3b1ee4=new _0x4c86f4(_0x18bed6,_0x712682),_0x349f41=new _0x53eb9b(_0x18bed6);return _0x349f41['set']({'label':m(_0x18bed6,'Open\x20revision\x20history')}),_0x349f41['delegate']('execute')['to'](_0x712682),_0x349f41['on']('execute',()=>{_0x11f825['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x3b1ee4['children']['add'](_0x349f41),_0x1c1778['items']['add'](_0x3b1ee4),_0x712682['panelView']['children']['add'](_0x1c1778),_0x712682;}['_showDialog'](){const _0x310320=this['editor'],_0x36b9b2=_0x310320['locale'],_0x19237f=_0x310320['plugins']['get']('Dialog'),_0x14ae45=_0x310320['plugins']['get']('RevisionTracker');function _0x39114c(_0x3bb429){_0x310320['config']['get']('revisionHistory.requireRevisionName')&&''===_0x3bb429['revisionName']?_0x3bb429['revisionNameInputView']['errorText']=m(_0x36b9b2,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x310320['plugins']['get'](l)['saveRevision']({'name':_0x3bb429['revisionName']}),_0x19237f['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x39114c(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x19237f['show']({'id':'revisionSave','title':m(_0x36b9b2,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x310320['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x19237f['hide']()},{'label':m(_0x310320['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x2a1561){_0x2a1561['bind']('isEnabled')['to'](_0x14ae45,'isReady',_0x14ae45,'isEnabled',_0x310320,'isReadOnly',(_0x3d431d,_0x148669,_0x2df72b)=>_0x3d431d&&_0x148669&&!_0x2df72b);},'onExecute':()=>_0x39114c(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x5a1cd6=this['editor'],_0x3b5adc=_0x5a1cd6['locale'];this['_saveRevisionFormView']=new hs(_0x3b5adc,_0x5a1cd6['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends ts{['changeId'];['_model'];constructor(_0x4961d8,_0x384524){super(_0x4961d8),this['_model']=_0x384524,this['changeId']=_0x384524['id'];const _0x5290c7=this['bindTemplate'],_0x460550=m(_0x4961d8,_0x384524['data']['isSuggestion']?'Suggested\x20by':'add'==_0x384524['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x384524['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x5290c7['to']('type',_0x29adfc=>'ck-revision-change__'+_0x29adfc)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x460550}]},{'text':'\x20'+_0x384524['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x472f62(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x3be570){super(),this['id']=_0x3be570['id']||_0x56c913(),this['author']=_0x3be570['author'],this['type']=_0x3be570['type'],this['data']=_0x3be570['data']||{},this['rootName']=_0x3be570['rootName'],this['set']('createdAt',_0x3be570['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(_0x3145a3,_0x39764f){this['newRevisionId']=_0x3145a3,this['oldRevisionId']=_0x39764f,this['changes']=new _0x47b816();}['_setChanges'](_0x56fd3e){for(const _0x1b6501 of _0x56fd3e)this['changes']['add'](_0x1b6501);}}const Y={'c':_0x47a9b5,'a':_0x28a10a,'e':_0x34f328,'r':_0x376497,'u':_0x30d039};class d extends _0x32cb53{['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[_0x4db1fd,_0x37837f,j];}constructor(_0x3d69e2){super(_0x3d69e2),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',(_0x160194,_0x79b7f4,_0x59f257)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x54609a=>{for(const _0x11cd6d of this['editor']['editing']['view']['document']['roots'])_0x59f257?_0x54609a['removeClass']('ck-editor__editable__overlay',_0x11cd6d):_0x54609a['addClass']('ck-editor__editable__overlay',_0x11cd6d);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x3a276f=>null!==_0x3a276f),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x189da3,_0x43eb40,_0x1b9e4f)=>_0x189da3&&_0x1b9e4f?_0x43eb40['changes']['getIndex'](_0x1b9e4f):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x550161,_0x161872)=>_0x550161?_0x161872['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x37837f);}['init'](){const _0x2dd559=this['editor'],_0x1bc7b4=new _t(_0x2dd559,{'direction':'backward'}),_0x1966b8=new _t(_0x2dd559,{'direction':'forward'});(_0x2dd559['commands']['add']('showPreviousChange',_0x1bc7b4),_0x2dd559['commands']['add']('showNextChange',_0x1966b8),_0x2dd559['commands']['add']('restoreRevision',new pt(_0x2dd559)),this['on']('change:numberOfChanges',()=>{_0x1bc7b4['refresh'](),_0x1966b8['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x2dd559['enableReadOnlyMode']('revision-viewer'),_0x2dd559['plugins']['has']('WidgetToolbarRepository'))&&_0x2dd559['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x59c78c){await this['loadRevisionData'](_0x59c78c);const _0x26037a={};for(const _0x4509ec in _0x59c78c['diffData']){if(_0x59c78c['diffData'][_0x4509ec]['attachChange']&&!_0x59c78c['diffData'][_0x4509ec]['attachChange']['isAttached'])continue;const _0x5e194c=this['_removeRevisionMarkers'](JSON['parse'](_0x59c78c['diffData'][_0x4509ec]['insertions'])),_0x1b721c=this['editor']['editing']['view']['document'],_0x53cdf5=new _0x34ea43(_0x1b721c,_0x5e194c['map'](_0x4b9ebc=>this['_getViewObj'](_0x4b9ebc)));this['editor']['data']['processor']['useFillerType']('marked'),_0x26037a[_0x4509ec]=this['editor']['data']['processor']['toData'](_0x53cdf5),this['editor']['data']['processor']['useFillerType']('default');}return _0x26037a;}async['getRevisionRootsAttributes'](_0x18cf29){await this['loadRevisionData'](_0x18cf29);const _0x1c1840={};for(const _0x23d8bd in _0x18cf29['diffData'])_0x18cf29['diffData'][_0x23d8bd]['attachChange']&&!_0x18cf29['diffData'][_0x23d8bd]['attachChange']['isAttached']||(_0x1c1840[_0x23d8bd]=_0x18cf29['diffData'][_0x23d8bd]['attributesAfter']||{});return _0x1c1840;}['_removeRevisionMarkers'](_0x1c874d){return(_0x1c874d=_0x1c874d['filter'](_0x4f17bf=>!_0x4f17bf['name']||'revision-start'!==_0x4f17bf['name']&&'revision-end'!==_0x4f17bf['name']))['forEach'](_0xa58b5a=>{'string'!=typeof _0xa58b5a&&(_0xa58b5a['children']=this['_removeRevisionMarkers'](_0xa58b5a['children']),_0xa58b5a['attributes']=_0xa58b5a['attributes']['filter'](_0x3604cb=>!_0x3604cb[0x0]['startsWith']('data-revision-')));}),_0x1c874d;}async['compare'](_0x1e4196,_0x9b9c44,_0x511ed3=!0x1){if(!this['isEnabled'])return;const _0x4b610d=this['diff'],_0x1138f0=this['repository'],_0x4695e1='string'==typeof _0x1e4196?_0x1138f0['getRevision'](_0x1e4196):_0x1e4196,_0x4b6c50='string'==typeof _0x9b9c44?_0x1138f0['getRevision'](_0x9b9c44):_0x9b9c44,_0x3e44d7=_0x4695e1['id'],_0x1a266c=_0x4b6c50?_0x4b6c50['id']:null;if(!_0x511ed3&&this['diff']&&this['diff']['newRevisionId']===_0x3e44d7&&this['diff']['oldRevisionId']===_0x1a266c)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x3e44d7,_0x1a266c);const _0x579e99=this['_getRevisionsRange'](_0x4695e1,_0x4b6c50,!0x0)['map'](_0x47dec5=>this['loadRevisionData'](_0x47dec5));return _0x579e99['push'](new Promise(_0x21e99a=>{setTimeout(_0x21e99a,0x14);})),Promise['all'](_0x579e99)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x4339fc=this['_getDiff'](_0x3e44d7,_0x1a266c);for(const _0x40baee of _0x4339fc['changes'])this['_changeIdToChange']['set'](_0x40baee['id'],_0x40baee);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x51f540=>{for(const _0x2ef45b of this['editor']['model']['document']['getRootNames']())_0x51f540['detachRoot'](_0x2ef45b);for(const _0x449a10 of Object['keys'](_0x4339fc['model'])){const _0x1c8493=_0x51f540['addRoot'](_0x449a10);for(const _0x474b99 of Object['keys'](_0x4339fc['attributes'][_0x449a10]))_0x51f540['setAttribute'](_0x474b99,_0x4339fc['attributes'][_0x449a10][_0x474b99],_0x1c8493);_0x51f540['insert'](_0x4339fc['model'][_0x449a10],_0x1c8493,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x4339fc['changes'])),this['isReady']=!0x0;})['catch'](_0x26b9b9=>{console['error'](_0x26b9b9),this['_cleanUp'](),_0x4b610d&&(this['diff']=_0x4b610d),this['isReady']=!0x0;});}['addRevisionData'](_0xe6b7cc,_0x3e877b){const _0x350490=this['repository']['createRevision'](_0xe6b7cc);return _0x350490['on']('_update',(_0x18b6cb,_0x535c8d,_0x164f38)=>_0x3e877b(_0x535c8d,_0x164f38,_0x350490)),this['repository']['addRevision'](_0x350490),_0x350490;}['loadRevisionData'](_0x1486b7){if(!_0x1486b7||_0x1486b7['diffData'])return Promise['resolve']();{const _0x87b06=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x87b06,'revisionId':_0x1486b7['id']})['then'](_0x4af671=>{_0x1486b7['_update']({'diffData':_0x4af671['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},_0x17cdb2=>{for(const _0x2a4753 of this['editor']['model']['document']['getRootNames']())_0x17cdb2['detachRoot'](_0x2a4753);});}['_sortAndFilterDiffChanges'](_0x47b147){const _0x2d84cc=[],_0x24ad8a=new Map();for(const _0x48d055 of this['editor']['model']['document']['getRootNames']()){const _0xd663ef=this['editor']['editing']['view']['getDomRoot'](_0x48d055);if(!_0xd663ef)continue;const _0x377c40=_0xd663ef['getClientRects']()['item'](0x0);_0x377c40&&(_0x2d84cc['push'](_0x48d055),_0x24ad8a['set'](_0x48d055,_0x377c40));}return _0x2d84cc['sort']((_0x5daf0d,_0x1c825f)=>{const _0x138751=_0x24ad8a['get'](_0x5daf0d),_0x8c4346=_0x24ad8a['get'](_0x1c825f);return _0x138751['y']-_0x8c4346['y']||_0x138751['x']-_0x8c4346['x'];}),(_0x47b147=_0x47b147['filter'](_0x46281d=>_0x2d84cc['includes'](_0x46281d['rootName'])))['sort']((_0x1a8d55,_0x33b7be)=>_0x2d84cc['indexOf'](_0x1a8d55['rootName'])-_0x2d84cc['indexOf'](_0x33b7be['rootName'])),_0x47b147;}['_makeTape'](_0x9eb389){const _0x56187a=Array['from'](_0x9eb389['markers'])['filter'](([_0x5272b9,_0x16a31f])=>_0x5272b9['startsWith']('revision:')&&!_0x16a31f['isCollapsed']),_0x4eec07=Array['from'](this['editor']['model']['createRangeIn'](_0x9eb389)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x56187a['length'])for(const _0xbee056 of _0x4eec07){const [_0x243b8a,_0x31c77a]=_0x56187a[0x0],[,_0x48f5d4,_0x4b0b45]=_0x243b8a['split'](':');if(_0x31c77a['end']['isEqual'](_0xbee056['nextPosition'])&&_0x56187a['shift'](),(_0xbee056['previousPosition']['isEqual'](_0x31c77a['start'])||_0xbee056['previousPosition']['isAfter'](_0x31c77a['start']))&&('insertion'==_0x48f5d4?_0xbee056['isAdded']={'userId':_0x4b0b45}:'deletion'==_0x48f5d4&&(_0xbee056['isRemoved']={'userId':_0x4b0b45})),0x0==_0x56187a['length'])break;}return _0x4eec07;}['_refreshStartEndIndex'](_0x4f5124){const _0x4fa66f=new Map();for(let _0x2e152e=0x0;_0x2e152e<_0x4f5124['length'];_0x2e152e++)'text'===_0x4f5124[_0x2e152e]['type']?(_0x4f5124[_0x2e152e]['item']['startIndex']=_0x2e152e,_0x4f5124[_0x2e152e]['item']['endIndex']=_0x2e152e):('elementStart'===_0x4f5124[_0x2e152e]['type']?_0x4f5124[_0x2e152e]['item']['startIndex']=_0x2e152e:'elementEnd'===_0x4f5124[_0x2e152e]['type']&&(_0x4f5124[_0x2e152e]['item']['endIndex']=_0x2e152e),_0x4fa66f['set'](_0x4f5124[_0x2e152e]['id'],_0x2e152e));for(const _0x5cc921 of _0x4fa66f['values']())'elementStart'===_0x4f5124[_0x5cc921]['type']?_0x4f5124[_0x5cc921]['item']['endIndex']=_0x4fa66f['get'](_0x4f5124[_0x5cc921]['pairId']):'elementEnd'===_0x4f5124[_0x5cc921]['type']&&(_0x4f5124[_0x5cc921]['item']['startIndex']=_0x4fa66f['get'](_0x4f5124[_0x5cc921]['pairId']));}['_processTape'](_0x50c07a){for(let _0x3d9cc4=0x0;_0x3d9cc4<_0x50c07a['length'];_0x3d9cc4++){if('elementStart'===_0x50c07a[_0x3d9cc4]['type'])_0x50c07a[_0x3d9cc4]['item']['startIndex']=_0x3d9cc4;else{if('elementEnd'===_0x50c07a[_0x3d9cc4]['type']){_0x50c07a[_0x3d9cc4]['item']['endIndex']=_0x3d9cc4;const _0x18b934=_0x50c07a[_0x3d9cc4]['item']['startIndex'];_0x50c07a[_0x18b934]['pairId']=_0x50c07a[_0x3d9cc4]['id'],_0x50c07a[_0x3d9cc4]['pairId']=_0x50c07a[_0x18b934]['id'];}else _0x50c07a[_0x3d9cc4]['item']['startIndex']=_0x3d9cc4,_0x50c07a[_0x3d9cc4]['item']['endIndex']=_0x3d9cc4,_0x50c07a[_0x3d9cc4]['pairId']=null;}_0x50c07a[_0x3d9cc4]['markersStart']||(_0x50c07a[_0x3d9cc4]['markersStart']=[],_0x50c07a[_0x3d9cc4]['markersEnd']=[]);}}['_markInsertions'](_0x1ffcaf,_0x5b3db1){const _0x443323=_0x1ffcaf['filter'](_0x30f3f7=>!_0x30f3f7['isAdded']);for(let _0x1eeb86=0x0;_0x1eeb86<_0x5b3db1['length'];_0x1eeb86++)_0x5b3db1[_0x1eeb86]['isAdded']&&(_0x443323[_0x1eeb86]['isAdded']=_0x5b3db1[_0x1eeb86]['isAdded']);}['_makeModelFromViewString'](_0x1db146){const _0x597457=JSON['parse'](_0x1db146),_0xd01ff2=this['editor']['editing']['view']['document'],_0x5c5d04=new _0x34ea43(_0xd01ff2,_0x597457['map'](_0x3305d8=>this['_getViewObj'](_0x3305d8)));return this['editor']['data']['toModel'](_0x5c5d04);}['_getViewObj'](_0x4e816b){const _0x43d9ce=this['editor']['editing']['view']['document'];if('string'==typeof _0x4e816b)return new _0x22ba6c(_0x43d9ce,_0x4e816b);{const _0x283ffc=_0x4e816b['children']['map'](_0x72fb28=>this['_getViewObj'](_0x72fb28));return new(Y[_0x4e816b['type']]||_0x422f3c)(_0x43d9ce,_0x4e816b['name'],_0x4e816b['attributes'],_0x283ffc);}}['_getDiff'](_0x42e614,_0x30d02d=null){const _0x1457f1=this['repository']['getRevision'](_0x42e614),_0x5e3a70=_0x30d02d?this['repository']['getRevision'](_0x30d02d):null,_0x543392=this['_getRevisionsRange'](_0x1457f1,_0x5e3a70),_0x754281=_0x543392[_0x543392['length']-0x1],_0xcc999f=new Map(),_0x543276={'model':{},'attributes':{},'changes':[]},_0x4956b4=new Set(),_0x5c43d5=new Map();for(let _0xf544b9=_0x543392['length']-0x1;_0xf544b9>=0x0;_0xf544b9--){const _0x15d6e0=_0x543392[_0xf544b9];for(const _0x1689a7 of Object['keys'](_0x15d6e0['diffData']))if(_0x15d6e0['diffData'][_0x1689a7]['attachChange']){const _0x3d583d=_0x15d6e0['diffData'][_0x1689a7]['attachChange'];_0x3d583d['isAttached']?(_0x4956b4['add'](_0x1689a7),_0x5c43d5['has'](_0x1689a7)&&_0x5c43d5['get'](_0x1689a7)['userId']==_0x3d583d['userId']?_0x5c43d5['delete'](_0x1689a7):_0x5c43d5['set'](_0x1689a7,_0x3d583d)):_0x5c43d5['has'](_0x1689a7)?(_0x4956b4['delete'](_0x1689a7),_0x5c43d5['delete'](_0x1689a7)):(_0x4956b4['add'](_0x1689a7),_0x5c43d5['set'](_0x1689a7,_0x3d583d));}else _0x4956b4['add'](_0x1689a7);}for(const _0x2679a8 of _0x4956b4){const _0x5d0951=_0x5c43d5['has'](_0x2679a8)&&!_0x5c43d5['get'](_0x2679a8)['isAttached'];let _0x4c15bb=_0x5d0951?_0x543392['length']-0x1:0x0;const _0x50ce6c=_0x5d0951?-0x1:0x1;for(;_0x543392[_0x4c15bb];){const _0x3d2fdd=_0x543392[_0x4c15bb];if(_0x3d2fdd['diffData'][_0x2679a8]){const _0x1d6064=_0x5d0951?_0x3d2fdd['diffData'][_0x2679a8]['attributesBefore']:_0x3d2fdd['diffData'][_0x2679a8]['attributesAfter'];_0x543276['attributes'][_0x2679a8]=_0x1d6064?_0xdad44a(_0x1d6064):{};break;}_0x4c15bb+=_0x50ce6c;}}for(const _0x474c24 of _0x543392){_0x474c24['model']={};for(const _0x5f2647 of _0x474c24['authors'])_0xcc999f['set'](_0x5f2647['id'],_0x5f2647);for(const _0x123836 of _0x4956b4){const _0x3e322f=_0x474c24['diffData'][_0x123836]?_0x474c24['diffData'][_0x123836]['insertions']:'[]',_0x4ed2c8=_0x474c24['diffData'][_0x123836]?_0x474c24['diffData'][_0x123836]['deletions']:'[]';_0x474c24['model'][_0x123836]={'insertions':this['_makeModelFromViewString'](_0x3e322f),'deletions':this['_makeModelFromViewString'](_0x4ed2c8)};}}for(const _0x421f08 of _0x4956b4){let _0x26135b=null,_0x58628a=0x0;const _0x354942=new Map(Array['from'](_0x1457f1['model'][_0x421f08]['insertions']['markers'])['filter'](([_0x1fb192])=>!_0x1fb192['startsWith']('revision:')));let _0x2850eb=0x0;for(const _0xd5aa4e of _0x543392){const _0x37d408=this['_makeTape'](_0xd5aa4e['model'][_0x421f08]['insertions']);_0xd5aa4e==_0x1457f1?(_0x26135b=_0x37d408,_0x58628a=_0x26135b['length'],_0x26135b['forEach'](_0x20c09b=>{_0x20c09b['id']=_0x2850eb++;}),this['_processTape'](_0x26135b)):this['_markInsertions'](_0x26135b,_0x37d408);const _0x20c0e7=_0x26135b['filter'](_0x4195b8=>!_0x4195b8['isAdded'])['map'](_0x3e6d2d=>_0x3e6d2d['id']);let _0x55af37=0x0;const _0x58062c=this['_makeTape'](_0xd5aa4e['model'][_0x421f08]['deletions']);_0x58062c['forEach'](_0x255238=>{_0x255238['isRemoved']?_0x255238['id']=_0x58628a++:_0x255238['id']=_0x20c0e7[_0x55af37++];}),this['_processTape'](_0x58062c),this['_setDistance'](_0x26135b,'isAdded'),this['_setDistance'](_0x58062c,'isRemoved'),_0xd5aa4e==_0x1457f1&&this['_markMarkers'](_0x26135b,_0x354942),_0x26135b=this['_joinTapes'](_0x26135b,_0x58062c),this['_refreshStartEndIndex'](_0x26135b),this['_setDistance'](_0x26135b,'isRemoved');}_0x26135b=_0x26135b['filter'](_0x37c707=>!(_0x37c707['isAdded']&&_0x37c707['isRemoved']));const _0x4c9dc2=new Map(_0x754281['model'][_0x421f08]['deletions']['markers']),_0x2bd638=new Set(_0x354942['keys']());for(const _0x4ff3 of _0x4c9dc2['keys']())_0x2bd638['delete'](_0x4ff3);this['_markSuggestions'](_0x26135b,_0x2bd638),this['_fixObsoleteTags'](_0x26135b),_0x26135b=this['_removeMissingPairs'](_0x26135b),_0x26135b=this['_markMismatchedRemovedTags'](_0x26135b),_0x26135b=this['_removeUnsupportedChanges'](_0x26135b);const {root:_0x3219f2,changes:_0x4e84b2}=this['_makeModelFromTape'](_0x26135b,_0xcc999f,_0x421f08);_0x543276['model'][_0x421f08]=_0x3219f2;const _0x3fedf1=_0x5c43d5['get'](_0x421f08);if(_0x3fedf1){const _0x28ecbf=_0xcc999f['get'](_0x3fedf1['userId']),_0x33eafa=new r({'author':_0x28ecbf,'type':_0x3fedf1['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x421f08});_0x4e84b2['unshift'](_0x33eafa),_0x543276['attributes'][_0x421f08]['revisionHistoryAttachChange']=_0x33eafa['id'];}_0x543276['changes']=_0x543276['changes']['concat'](_0x4e84b2);}return _0x543276;}['_markMarkers'](_0x35f956,_0x42cec5){for(let _0x4d1254=0x0;_0x4d1254<_0x35f956['length'];_0x4d1254++)for(const [_0x1ed507,_0x4276f7]of _0x42cec5)_0x4276f7['start']['isEqual'](_0x35f956[_0x4d1254]['previousPosition'])&&_0x35f956[_0x4d1254]['markersStart']['push'](_0x1ed507),_0x4276f7['end']['isEqual'](_0x35f956[_0x4d1254]['nextPosition'])&&_0x35f956[_0x4d1254]['markersEnd']['push'](_0x1ed507);}['_joinTapes'](_0x34e5ba,_0x4bd621){let _0x557029=[],_0x455138=0x0,_0x3ba4ab=0x0;for(;_0x455138<_0x34e5ba['length']||_0x3ba4ab<_0x4bd621['length'];){const _0x41b15f=_0x34e5ba[_0x455138]||{},_0x2e3ece=_0x4bd621[_0x3ba4ab]||{};if(_0x41b15f['id']==_0x2e3ece['id'])_0x455138++,_0x3ba4ab++,_0x557029['push'](_0x41b15f);else{if(_0x2e3ece['isRemoved']&&_0x41b15f['isAdded']){const {commonTape:_0x2adaee,iEnd:_0x4b152f,jEnd:_0x168b58}=this['_threeWayMerge'](_0x34e5ba,_0x455138,_0x4bd621,_0x3ba4ab);_0x557029=_0x557029['concat'](_0x2adaee),_0x455138=_0x4b152f,_0x3ba4ab=_0x168b58;}else _0x2e3ece['isRemoved']?(_0x3ba4ab++,_0x557029['push'](_0x2e3ece)):(_0x455138++,_0x557029['push'](_0x41b15f));}}return _0x557029;}['_markSuggestions'](_0x539aa1,_0x1b47b1){const _0x18835b=[];for(let _0x336edd=0x0;_0x336edd<_0x539aa1['length'];_0x336edd++){for(let _0x32f063=0x0;_0x32f063<_0x539aa1[_0x336edd]['markersStart']['length'];_0x32f063++){const _0x4f4021=_0x539aa1[_0x336edd]['markersStart'][_0x32f063];if(!_0x1b47b1['has'](_0x4f4021))continue;const {group:_0x5b5d50,type:_0x31387a,authorId:_0x323c3a}=_0x1ee160(_0x4f4021);'revision-suggestion'!=_0x5b5d50||'insertion'!=_0x31387a&&'deletion'!=_0x31387a||(_0x18835b['unshift']({'type':_0x31387a,'name':_0x4f4021,'userId':_0x323c3a}),_0x539aa1[_0x336edd]['markersStart']['splice'](_0x32f063,0x1),_0x32f063--);}_0x50a478(_0x539aa1[_0x336edd]);for(let _0x5d1c80=0x0;_0x5d1c80<_0x539aa1[_0x336edd]['markersEnd']['length'];_0x5d1c80++){const _0x10446b=_0x539aa1[_0x336edd]['markersEnd'][_0x5d1c80];if(!_0x1b47b1['has'](_0x10446b))continue;const {group:_0x3bb7e7,type:_0x376b07}=_0x1ee160(_0x10446b);if('revision-suggestion'!=_0x3bb7e7||'insertion'!=_0x376b07&&'deletion'!=_0x376b07)continue;_0x539aa1[_0x336edd]['markersEnd']['splice'](_0x5d1c80,0x1),_0x5d1c80--;const _0x1d38d1=_0x18835b['findIndex'](_0x59d515=>_0x59d515['name']==_0x10446b);_0x1d38d1>-0x1&&_0x18835b['splice'](_0x1d38d1,0x1);}}function _0x1ee160(_0x4d50a2){const _0x5d1958=_0x4d50a2['split'](':');return{'group':_0x5d1958[0x0],'type':_0x5d1958[0x1],'subType':_0x5d1958['length']>=0x5?_0x5d1958[0x2]:null,'id':_0x5d1958['length']<0x5?_0x5d1958[0x2]:_0x5d1958[0x3],'authorId':_0x5d1958['length']<0x5?_0x5d1958[0x3]:_0x5d1958[0x4],'markerCount':0x6==_0x5d1958['length']?_0x5d1958[0x5]:null};}function _0x50a478(_0xeab03a){for(let _0x4e99ee=0x0;_0x4e99ee<_0x18835b['length'];_0x4e99ee++){if(_0xeab03a['isAdded']&&'insertion'==_0x18835b[_0x4e99ee]['type'])return _0xeab03a['isAddSuggestion']=_0x18835b[_0x4e99ee],void delete _0xeab03a['isAdded'];if(!_0xeab03a['isAdded']&&!_0xeab03a['isRemoved']&&'deletion'==_0x18835b[_0x4e99ee]['type'])return void(_0xeab03a['isRemoveSuggestion']=_0x18835b[_0x4e99ee]);}}}['_setDistance'](_0x4bd428,_0xb7d862){let _0x1afd92=0x0,_0x2ac8df=!0x1;const _0xbbd9f2=new Map();for(const _0x45934b of _0x4bd428)_0x45934b[_0xb7d862]?_0x2ac8df&&(_0x1afd92++,_0x2ac8df=!0x1):(_0x1afd92++,_0x2ac8df=!0x0),_0xbbd9f2['set'](_0x45934b['id'],_0x1afd92);for(let _0x6ead38=0x0;_0x6ead38<_0x4bd428['length'];_0x6ead38++){if('isRemoved'==_0xb7d862&&_0x4bd428[_0x6ead38]['isAdded']||'isAdded'==_0xb7d862&&_0x4bd428[_0x6ead38]['isRemoved'])continue;if('text'==_0x4bd428[_0x6ead38]['type']){_0x4bd428[_0x6ead38]['distance']=0x0;continue;}const _0x4d203f=_0xbbd9f2['get'](_0x4bd428[_0x6ead38]['pairId']),_0x3bc197=_0xbbd9f2['get'](_0x4bd428[_0x6ead38]['id']);_0x4bd428[_0x6ead38]['distance']=_0x4d203f-_0x3bc197;}}['_getRevisionsRange'](_0x33fe25,_0x3afbf4,_0x5e8596=!0x1){const _0x5c9802=[];let _0x355a18=this['repository']['getIndex'](_0x33fe25),_0x16c5fa=this['repository']['getIndex'](_0x3afbf4);for(-0x1==_0x16c5fa&&(_0x16c5fa=this['repository']['_revisions']['length'],_0x5e8596=!0x1);_0x355a18<_0x16c5fa;)_0x5c9802['push'](this['repository']['getRevision'](_0x355a18)),_0x355a18++;return _0x5e8596&&_0x5c9802['push'](this['repository']['getRevision'](_0x355a18)),_0x5c9802;}['_threeWayMerge'](_0x42b8cf,_0x176b01,_0x333588,_0xa915dd){const _0x44c056=this['editor']['model']['schema'];let _0x4ac5e5=_0x176b01;for(;_0x42b8cf[_0x4ac5e5]&&_0x42b8cf[_0x4ac5e5]['isAdded'];)_0x4ac5e5++;let _0x7c2848=_0xa915dd;for(;_0x333588[_0x7c2848]&&_0x333588[_0x7c2848]['isRemoved'];)_0x7c2848++;_0x4dafc5(_0x42b8cf,_0x176b01,_0x4ac5e5),_0x4dafc5(_0x333588,_0xa915dd,_0x7c2848);const _0x5dad97=_0x333588['slice'](_0xa915dd,_0x7c2848)['concat'](_0x42b8cf['slice'](_0x176b01,_0x4ac5e5));return _0x5dad97['sort']((_0x5a48e5,_0x2b540f)=>_0x5a48e5['side']!=_0x2b540f['side']?_0x5a48e5['side']-_0x2b540f['side']:_0x5a48e5['level']!=_0x2b540f['level']?_0x5a48e5['level']-_0x2b540f['level']:_0x5a48e5['distance']!=_0x2b540f['distance']?_0x2b540f['distance']-_0x5a48e5['distance']:!!_0x5a48e5['isAdded']!=!!_0x2b540f['isAdded']?-0x1==_0x5a48e5['side']||0x0==_0x5a48e5['side']?_0x5a48e5['isAdded']?-0x1:0x1:_0x5a48e5['isAdded']?0x1:-0x1:_0x5a48e5['index']-_0x2b540f['index']),{'commonTape':_0x5dad97,'iEnd':_0x4ac5e5,'jEnd':_0x7c2848};function _0x4dafc5(_0x216650,_0x204a55,_0x4b271c){let _0x2ce1c7=-0x1,_0x22d2b9=Number['POSITIVE_INFINITY'],_0x5241c7=!0x0;for(let _0x17213d=_0x204a55;_0x17213d<_0x4b271c;_0x17213d++)if(_0x44c056['isInline'](_0x216650[_0x17213d]['item'])||(_0x5241c7=!0x1),_0x216650[_0x17213d]['item']['startIndex']<_0x204a55&&(_0x2ce1c7=_0x17213d),_0x216650[_0x17213d]['item']['endIndex']>=_0x4b271c){_0x22d2b9=_0x17213d;break;}_0x5241c7&&(_0x2ce1c7=_0x4b271c-0x1);for(let _0x2c2b9a=_0x204a55;_0x2c2b9a<_0x4b271c;_0x2c2b9a++)_0x216650[_0x2c2b9a]['side']=_0x2c2b9a<=_0x2ce1c7?-0x1:_0x2c2b9a<_0x22d2b9?0x0:0x1,_0x216650[_0x2c2b9a]['index']=_0x2c2b9a;let _0x41d629=0x0;for(let _0x1013c8=_0x204a55;_0x1013c8<=_0x2ce1c7;_0x1013c8++)0x0==_0x216650[_0x1013c8]['distance']?_0x216650[_0x1013c8]['level']=_0x41d629:(_0x41d629++,_0x216650[_0x1013c8]['level']=_0x41d629,_0x41d629++);for(let _0x20f465=_0x204a55;_0x20f465<_0x4b271c;_0x20f465++)0x0==_0x216650[_0x20f465]['side']&&(_0x216650[_0x20f465]['level']=_0x41d629);_0x41d629=0x0;for(let _0x3d7381=_0x4b271c-0x1;_0x3d7381>=_0x22d2b9;_0x3d7381--)0x0==_0x216650[_0x3d7381]['distance']?_0x216650[_0x3d7381]['level']=_0x41d629:(_0x41d629--,_0x216650[_0x3d7381]['level']=_0x41d629,_0x41d629--);}}['_fixObsoleteTags'](_0x4c4708){const _0xa877eb=new Map(),_0x3beb02=this['editor']['model']['schema'];for(let _0x4c60f3=0x1;_0x4c60f3<_0x4c4708['length'];_0x4c60f3++){let _0x2b6d05,_0xb5703f,_0xa4ab9f;const _0x5394c5=_0x4c4708[_0x4c60f3],_0x3d8153=_0x4c4708[_0x4c60f3-0x1];if('text'==_0x5394c5['type'])continue;if(_0x5394c5['type']!=_0x3d8153['type'])continue;if(!_0x3beb02['isBlock'](_0x3d8153['item'])||_0x3beb02['isLimit'](_0x3d8153['item']))continue;if(!_0x3beb02['isBlock'](_0x5394c5['item'])||_0x3beb02['isLimit'](_0x5394c5['item']))continue;if((_0x4c4708[_0x4c60f3]['isAdded']||_0x4c4708[_0x4c60f3]['isAddSuggestion'])&&_0x4c4708[_0x4c60f3-0x1]['isRemoved'])_0x2b6d05=_0x4c4708[_0x4c60f3],_0xb5703f=_0x4c4708[_0x4c60f3-0x1],_0xa4ab9f=_0x4c60f3-0x1;else{if(!_0x4c4708[_0x4c60f3]['isRemoved']||!_0x4c4708[_0x4c60f3-0x1]['isAdded']&&!_0x4c4708[_0x4c60f3-0x1]['isAddSuggestion'])continue;_0x2b6d05=_0x4c4708[_0x4c60f3-0x1],_0xb5703f=_0x4c4708[_0x4c60f3],_0xa4ab9f=_0x4c60f3;}const _0x35e88a=_0x2b6d05['level']==_0xb5703f['level'],_0x3e0a5f=Math['abs'](_0x2b6d05['level'])<Math['abs'](_0xb5703f['level'])&&0x0==_0xb5703f['distance'];(_0x35e88a||_0x3e0a5f)&&(_0xa877eb['set'](_0xb5703f['id'],_0x2b6d05['id']),_0x4c4708['splice'](_0xa4ab9f,0x1),_0x4c60f3--,_0x2b6d05['isAdded']=!0x1);}for(let _0x1df120=0x0;_0x1df120<_0x4c4708['length'];_0x1df120++)_0xa877eb['has'](_0x4c4708[_0x1df120]['pairId'])&&(_0x4c4708[_0x1df120]['pairId']=_0xa877eb['get'](_0x4c4708[_0x1df120]['pairId']));}['_removeMissingPairs'](_0x234c7f){const _0x1abec3=new Set(_0x234c7f['map'](_0x2d07e4=>_0x2d07e4['id']));for(let _0x3af75b=0x0;_0x3af75b<_0x234c7f['length'];_0x3af75b++)_0x1abec3['has'](_0x234c7f[_0x3af75b]['pairId'])||0x0==_0x234c7f[_0x3af75b]['distance']||(_0x234c7f[_0x3af75b]['isIncorrect']=!0x0);return _0x234c7f['filter'](_0x31548e=>!_0x31548e['isIncorrect']);}['_markMismatchedRemovedTags'](_0x2a03d2){const _0x56c280=new Set();for(let _0x5774c5=0x0;_0x5774c5<_0x2a03d2['length'];_0x5774c5++){if(_0x56c280['has'](_0x2a03d2[_0x5774c5]['id'])&&_0x2a03d2[_0x5774c5]['isRemoved']&&(_0x2a03d2[_0x5774c5]['isIncorrect']=!0x0),_0x2a03d2[_0x5774c5]['isIncorrect'])continue;if(0x0==_0x2a03d2[_0x5774c5]['distance'])continue;if('elementStart'!=_0x2a03d2[_0x5774c5]['type'])continue;if(null==_0x2a03d2[_0x5774c5]['pairId'])continue;let _0x418596=_0x5774c5+0x1,_0x1dc374=0x0;for(;_0x2a03d2[_0x418596]['id']!=_0x2a03d2[_0x5774c5]['pairId'];)'elementStart'==_0x2a03d2[_0x418596]['type']?_0x1dc374++:'elementEnd'==_0x2a03d2[_0x418596]['type']&&_0x1dc374--,_0x418596++;if(0x0!=_0x1dc374){if(_0x2a03d2[_0x5774c5]['isRemoved'])_0x2a03d2[_0x5774c5]['isIncorrect']=!0x0;else{for(;_0x418596!=_0x5774c5;)_0x2a03d2[_0x418596]['isRemoved']&&0x0!=_0x2a03d2[_0x418596]['distance']&&(_0x2a03d2[_0x418596]['isIncorrect']=!0x0,_0x56c280['add'](_0x2a03d2[_0x418596]['pairId'])),_0x418596--;}}}return _0x2a03d2['filter'](_0x7c96b9=>!_0x7c96b9['isIncorrect']);}['_removeUnsupportedChanges'](_0x186b7d){const _0x2eb49a=this['editor']['model']['schema'];for(let _0x472100=0x0;_0x472100<_0x186b7d['length'];_0x472100++){if(!(_0x186b7d[_0x472100]['isAdded']||_0x186b7d[_0x472100]['isAddSuggestion']||_0x186b7d[_0x472100]['isRemoved']||_0x186b7d[_0x472100]['isRemoveSuggestion']))continue;if(0x0==_0x186b7d[_0x472100]['distance'])continue;const _0x1bc45e=_0x186b7d[_0x472100]['item'];_0x2eb49a['isBlock'](_0x1bc45e)||_0x2eb49a['isLimit'](_0x1bc45e)||(_0x186b7d[_0x472100]['isAdded']&&delete _0x186b7d[_0x472100]['isAdded'],_0x186b7d[_0x472100]['isAddSuggestion']&&delete _0x186b7d[_0x472100]['isAddSuggestion'],_0x186b7d[_0x472100]['isRemoveSuggestion']&&delete _0x186b7d[_0x472100]['isRemoveSuggestion'],_0x186b7d[_0x472100]['isRemoved']&&(_0x186b7d[_0x472100]['isIncorrect']=!0x0));}return _0x186b7d['filter'](_0x2c0d3b=>!_0x2c0d3b['isIncorrect']);}['_makeModelFromTape'](_0x4fad48,_0x189510,_0x214c84){const _0x4746d2=new mt(),_0x4a5d5b=[],_0x442421=new Map(),_0x5f322f=this['editor']['model'],_0x2a708d=_0x5f322f['schema'],_0xb1c5a=[_0x4746d2],_0x3cfb46={},_0x5e2b19={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x7f5eb4=null;const _0x321f27=[0x0];for(let _0x465bd9=0x0;_0x465bd9<_0x4fad48['length'];_0x465bd9++)if('elementStart'===_0x4fad48[_0x465bd9]['type']){_0x4fad48[_0x465bd9]['previousPosition']=_0x5f322f['createPositionFromPath'](_0x4746d2,_0x321f27);const _0x3bda66=new ft(_0x4fad48[_0x465bd9]['item']['name'],_0x4fad48[_0x465bd9]['item']['getAttributes']());_0xb1c5a[0x0]['_appendChild'](_0x3bda66),_0x321f27['push'](0x0),_0xb1c5a['unshift'](_0x3bda66),_0x4fad48[_0x465bd9]['nextPosition']=_0x5f322f['createPositionFromPath'](_0x4746d2,_0x321f27);}else'elementEnd'===_0x4fad48[_0x465bd9]['type']?(_0xb1c5a['shift'](),_0x4fad48[_0x465bd9]['previousPosition']=_0x5f322f['createPositionFromPath'](_0x4746d2,_0x321f27),_0x321f27['pop'](),_0x321f27[_0x321f27['length']-0x1]++,_0x4fad48[_0x465bd9]['nextPosition']=_0x5f322f['createPositionFromPath'](_0x4746d2,_0x321f27)):(_0x4fad48[_0x465bd9]['previousPosition']=_0x5f322f['createPositionFromPath'](_0x4746d2,_0x321f27),_0x7f5eb4?_0x7f5eb4['_data']+=_0x4fad48[_0x465bd9]['item']['data']:_0x7f5eb4=new wt(_0x4fad48[_0x465bd9]['item']['data'],_0x4fad48[_0x465bd9]['item']['getAttributes']()),_0x4fad48[_0x465bd9+0x1]&&'text'===_0x4fad48[_0x465bd9+0x1]['type']&&_0x1f4eb4(_0x7f5eb4,_0x4fad48[_0x465bd9+0x1]['item'])||(_0xb1c5a[0x0]['_appendChild'](_0x7f5eb4),_0x7f5eb4=null),_0x321f27[_0x321f27['length']-0x1]+=_0x4fad48[_0x465bd9]['item']['offsetSize'],_0x4fad48[_0x465bd9]['nextPosition']=_0x5f322f['createPositionFromPath'](_0x4746d2,_0x321f27));for(let _0x1fd868=0x0;_0x1fd868<_0x4fad48['length'];_0x1fd868++){const _0x5f409d=_0x4fad48[_0x1fd868]['previousPosition'],_0x565e7f=_0x4fad48[_0x1fd868]['nextPosition'];for(const _0x53b0a5 of _0x4fad48[_0x1fd868]['markersStart'])_0x442421['set'](_0x53b0a5,{'start':_0x5f409d,'end':null});_0x2e22de('isRemoveSuggestion',_0x1fd868,_0x5f409d,_0x565e7f),_0x2e22de('isAddSuggestion',_0x1fd868,_0x5f409d,_0x565e7f),_0x2e22de('isRemoved',_0x1fd868,_0x5f409d,_0x565e7f),_0x2e22de('isAdded',_0x1fd868,_0x5f409d,_0x565e7f);for(const _0x456b06 of _0x4fad48[_0x1fd868]['markersEnd']){_0x442421['get'](_0x456b06)['end']=_0x565e7f;}}for(const [_0x37112d,_0x1a14d1]of _0x442421){const _0x52d971=this['editor']['model']['createRange'](_0x1a14d1['start'],_0x1a14d1['end']);_0x4746d2['markers']['set'](_0x37112d,_0x52d971);}return _0x4a5d5b['sort']((_0x5d971a,_0x41e0be)=>{const _0x1e51ca=_0x4746d2['markers']['get']('revision:'+_0x5d971a['id']),_0x1ecfec=_0x4746d2['markers']['get']('revision:'+_0x41e0be['id']);return _0x1e51ca['start']['isBefore'](_0x1ecfec['start'])?-0x1:_0x1e51ca['start']['isAfter'](_0x1ecfec['start'])?0x1:_0x1e51ca['end']['isBefore'](_0x1ecfec['end'])?-0x1:_0x1e51ca['end']['isAfter'](_0x1ecfec['end'])?0x1:'add'===_0x5d971a['type']?-0x1:0x1;}),{'root':_0x4746d2,'changes':_0x4a5d5b};function _0x2e22de(_0x130459,_0x26507d,_0x529cc2,_0x4dfb97){const _0x314f43=!!_0x4fad48[_0x26507d][_0x130459],_0x1bc931=_0x314f43?_0x4fad48[_0x26507d][_0x130459]['userId']:null,_0x5b50b5=_0x26507d===_0x4fad48['length']-0x1,_0x14b721=_0x5e2b19[_0x130459][0x0],_0x53bb48=_0x2a708d['isObject'](_0x4fad48[_0x26507d]['item']);!_0x3cfb46[_0x130459]&&_0x314f43?_0x3cfb46[_0x130459]={'start':_0x529cc2,'tapeItem':_0x4fad48[_0x26507d],'userId':_0x1bc931,'type':_0x130459}:_0x3cfb46[_0x130459]&&!_0x314f43?(_0x3cfb46[_0x130459]['end']=_0x529cc2,_0x18b1b1(_0x3cfb46[_0x130459]),_0x3cfb46[_0x130459]=null):_0x3cfb46[_0x130459]&&_0x314f43&&_0x3cfb46[_0x130459]['userId']!==_0x1bc931&&(_0x3cfb46[_0x130459]['end']=_0x529cc2,_0x14b721&&_0x14b721['userId']===_0x3cfb46[_0x130459]['userId']||_0x18b1b1(_0x3cfb46[_0x130459]),_0x3cfb46[_0x130459]={'start':_0x529cc2,'tapeItem':_0x4fad48[_0x26507d],'userId':_0x1bc931,'type':_0x130459}),_0x3cfb46[_0x130459]&&_0x53bb48&&('elementStart'!==_0x4fad48[_0x26507d]['type']||_0x14b721&&_0x14b721['userId']===_0x1bc931||_0x5e2b19[_0x130459]['unshift']({'userId':_0x1bc931,'object':_0x4fad48[_0x26507d]['item'],'change':_0x3cfb46[_0x130459]}),'elementEnd'===_0x4fad48[_0x26507d]['type']&&_0x14b721&&_0x14b721['object']===_0x4fad48[_0x26507d]['item']&&(_0x5e2b19[_0x130459]['shift'](),_0x3cfb46[_0x130459]=_0x14b721['change'])),_0x3cfb46[_0x130459]&&_0x5b50b5&&(_0x3cfb46[_0x130459]['end']=_0x4dfb97,_0x18b1b1(_0x3cfb46[_0x130459]),_0x3cfb46[_0x130459]=null);}function _0x18b1b1({start:_0x183895,end:_0x3823ea,tapeItem:_0x5f55a3,userId:_0x50cebd,type:_0x26091d}){const _0x54617e=_0x5f55a3['item'],_0x198d36=_0x5f322f['schema']['isBlock'](_0x54617e)&&!_0x5f322f['schema']['isLimit'](_0x54617e),_0x41f856=_0x183895['nodeAfter']==_0x3823ea['parent']&&_0x3823ea['isAtStart'];if(_0x198d36&&_0x41f856)return;const _0x42d621=_0x5f322f['createRange'](_0x183895,_0x3823ea),_0xd8aeab=_0x189510['get'](_0x50cebd),_0x1bdcc0=new r({'author':_0xd8aeab,'type':'isAdded'==_0x26091d||'isAddSuggestion'==_0x26091d?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x26091d||'isRemoveSuggestion'==_0x26091d},'createdAt':new Date(),'rootName':_0x214c84});_0x4a5d5b['push'](_0x1bdcc0),_0x4746d2['markers']['set']('revision:'+_0x1bdcc0['id'],_0x42d621);}function _0x1f4eb4(_0x251fc7,_0x5da2f8){const _0x2c5923=_0x251fc7['getAttributes'](),_0x7c4a66=_0x5da2f8['getAttributes']();for(const _0x27d6c8 of _0x2c5923){if(_0x27d6c8[0x1]!==_0x5da2f8['getAttribute'](_0x27d6c8[0x0]))return!0x1;_0x7c4a66['next']();}return _0x7c4a66['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x385a40=>{const _0x3bfeed=_0x385a40['markerName']['split'](':')[0x1],_0x28d7b0=this['_getChangeFromId'](_0x3bfeed);if(!_0x28d7b0)return null;const _0x1c550a='add'==_0x28d7b0['type']?'insertion':'deletion',_0x56f84d=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1c550a];return _0x28d7b0['data']['isSuggestion']&&_0x56f84d['push']('ck-suggestion-marker-'+_0x1c550a+'-new'),this['activeChange']==_0x28d7b0&&_0x56f84d['push']('ck-suggestion-marker--active'),{'classes':_0x56f84d,'attributes':{'data-change-id':_0x3bfeed}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x268c8f=>{_0x268c8f['on']('element:pre',(_0x613961,_0xd3350e,_0x58024d)=>{const _0x239c9f=_0xd3350e['viewItem']['getChild'](0x0);if(!_0x239c9f||!_0x239c9f['is']('element','code'))return;if(!_0x58024d['consumable']['consume'](_0x239c9f,{'attributes':['vid_start','vid_end']}))return;const _0x2764d7=_0xd3350e['modelRange']['start']['nodeAfter'];_0x58024d['writer']['setAttribute']('vid_start',_0x239c9f['getAttribute']('vid_start'),_0x2764d7),_0x58024d['writer']['setAttribute']('vid_end',_0x239c9f['getAttribute']('vid_end'),_0x2764d7);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x7eef6a=>{_0x7eef6a['on']('element',(_0x4683d1,_0x4a92cb,_0x89e25)=>{if(!_0x89e25['consumable']['consume'](_0x4a92cb['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x4a92cb['modelRange']['isCollapsed'])return;const _0xce0b3a=_0x4a92cb['modelRange']['start']['nodeAfter'];_0xce0b3a['hasAttribute']('vid_start')||_0xce0b3a['hasAttribute']('vid')||(_0x89e25['writer']['setAttribute']('vid_start',_0x4a92cb['viewItem']['getAttribute']('vid_start'),_0xce0b3a),_0x89e25['writer']['setAttribute']('vid_end',_0x4a92cb['viewItem']['getAttribute']('vid_end'),_0xce0b3a));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x5669b0=>_0x5669b0['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x501aee,[,_0x36dc9e])=>{['vid_start','vid_end','vid']['includes'](_0x36dc9e)&&(_0x501aee['return']=!0x0,_0x501aee['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x350adb=>{_0x350adb['on']('attribute:vid',(_0x15ea8d,_0x1b050c,_0x59405e)=>{if('\x20'!=_0x1b050c['item']['data']||_0x1b050c['item']['parent']['maxOffset']>0x1)return;if(!_0x59405e['consumable']['consume'](_0x1b050c['item'],_0x15ea8d['name']))return;const _0x1a132a=_0x59405e['writer'],_0xdd0ba3=_0x59405e['mapper']['toViewRange'](_0x1b050c['range']);_0x1a132a['wrap'](_0xdd0ba3,_0x1a132a['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x127625){const _0x3995ba=_0x127625['plugins']['get']('RevisionViewer');return(_0x1c7f84,_0xe14a8a,_0x4a4bd9)=>{const _0x1bd416=_0xe14a8a['markerName']['split'](':')[0x1],_0x21b8bb=_0x3995ba['_getChangeFromId'](_0x1bd416);if(!_0x21b8bb)return null;const _0x3367c8='add'==_0x21b8bb['type']?'split':'merge';if(!_0x4a4bd9['consumable']['test'](_0xe14a8a['markerRange'],_0x1c7f84['name']))return;const _0x4b3a8d=_0xe14a8a['markerRange']['getWalker'](),_0x52c1e4=_0xe14a8a['markerRange']['start'],_0x54579c=_0x127625['model']['schema'];let _0x27090d=null,_0x4cc9f8=null,_0x1a4c4c=!0x1,_0x3bdcfb=!0x1;for(const _0x17f459 of _0x4b3a8d){const _0x1f9bcd=_0x17f459['item'];_0x1a4c4c=_0x1a4c4c||_0x54579c['isContent'](_0x1f9bcd);const _0x59d829=_0x4a4bd9['mapper']['toViewElement'](_0x1f9bcd);if(_0x59d829&&_0x59d829['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x17f459['type']&&(_0x54579c['isBlock'](_0x1f9bcd)&&!_0x54579c['isLimit'](_0x1f9bcd)&&(_0x1f9bcd['nextSibling']||_0x52c1e4['isAtEnd']?_0x27090d&&_0x27090d['parent']==_0x1f9bcd||(_0x27090d=_0x1f9bcd,_0x2a1eac(_0x17f459['previousPosition']),_0x3bdcfb=!0x0):_0x4cc9f8=_0x4cc9f8||_0x17f459['previousPosition']));}function _0x2a1eac(_0x187513){const _0x21f600=_0x4a4bd9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3367c8}),_0x2e5e5d=_0x4a4bd9['mapper']['toViewPosition'](_0x187513);_0x21b8bb['data']['isSuggestion']&&_0x4a4bd9['writer']['addClass']('ck-suggestion-marker-'+_0x3367c8+'-new',_0x21f600),_0x3995ba['activeChange']==_0x21b8bb&&_0x4a4bd9['writer']['addClass']('ck-suggestion-marker--active',_0x21f600),_0x4a4bd9['writer']['insert'](_0x2e5e5d,_0x21f600),_0x4a4bd9['mapper']['bindElementToMarker'](_0x21f600,_0xe14a8a['markerName']);}_0x1a4c4c||_0x3bdcfb||!_0x4cc9f8||_0x2a1eac(_0x4cc9f8);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x5ccc7e,_0x48cf22,_0x10f245)=>{const _0xa58f2=_0x10f245['mapper']['markerNameToElements'](_0x48cf22['markerName']);if(_0xa58f2){for(const _0x1f6345 of _0xa58f2)(_0x1f6345['hasClass']('ck-suggestion-marker-split')||_0x1f6345['hasClass']('ck-suggestion-marker-merge'))&&(_0x10f245['mapper']['unbindElementFromMarkerName'](_0x1f6345,_0x48cf22['markerName']),_0x10f245['writer']['remove'](_0x1f6345));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x2f9397,_0x3c08bb,_0x50a081)=>{const _0x29d630=_0x3c08bb['markerName']['split'](':')[0x1],_0x3d2923=this['_getChangeFromId'](_0x29d630);if(!_0x3d2923)return null;const _0x497ebc='add'==_0x3d2923['type']?'split':'merge';if(_0x50a081['consumable']['test'](_0x3c08bb['markerRange'],_0x2f9397['name']))for(const _0x2e7548 of _0x3c08bb['markerRange']['getItems']()){if(!_0x2e7548['is']('element','softBreak'))continue;const _0x332c81=_0x50a081['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x497ebc}),_0x2bfb43=_0x50a081['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x2e7548));_0x3d2923['data']['isSuggestion']&&_0x50a081['writer']['addClass']('ck-suggestion-marker-'+_0x497ebc+'-new',_0x332c81),this['activeChange']==_0x3d2923&&_0x50a081['writer']['addClass']('ck-suggestion-marker--active',_0x332c81),_0x50a081['writer']['insert'](_0x2bfb43,_0x332c81),_0x50a081['mapper']['bindElementToMarker'](_0x332c81,_0x3c08bb['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x4389d2=>{for(const _0x5360ba of this['editor']['model']['document']['getRootNames']()){const _0x32e7ab=this['editor']['model']['document']['getRoot'](_0x5360ba),_0x2afebc=this['editor']['editing']['view']['document']['getRoot'](_0x5360ba);if(_0x2afebc){const _0x45e58e=_0x32e7ab['getAttribute']('revisionHistoryAttachChange');if(_0x4389d2['removeAttribute']('data-change-id',_0x2afebc),_0x4389d2['removeClass']('ck-revision-history-root-add',_0x2afebc),_0x4389d2['removeClass']('ck-revision-history-root-remove',_0x2afebc),_0x4389d2['removeClass']('ck-revision-history-root--active',_0x2afebc),_0x45e58e){const _0x221f5c=this['_getChangeFromId'](_0x45e58e);if(!_0x221f5c)return null;_0x4389d2['setAttribute']('data-change-id',_0x45e58e,_0x2afebc),_0x4389d2['addClass']('ck-revision-history-root-'+_0x221f5c['type'],_0x2afebc),this['activeChange']==_0x221f5c&&_0x4389d2['addClass']('ck-revision-history-root--active',_0x2afebc);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x5dfb74=>'revision-comment:'+_0x5dfb74,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x26ea3a=>'revision-suggestion:'+_0x26ea3a,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x325fad=>({'name':'suggestion:'+_0x325fad,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x38ae35=>{const _0x2cec7a=_0x38ae35['markerName']['split'](':')[0x1];return'insertion'!=_0x2cec7a&&'deletion'!=_0x2cec7a?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x2cec7a]};}}),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',(_0x125376,_0x5f0dc5,_0x42f136)=>{const _0x4be927=_0x42f136['mapper']['markerNameToElements'](_0x5f0dc5['markerName']);if(_0x4be927){for(const _0x3e24e2 of _0x4be927)_0x3e24e2['is']('uiElement')&&(_0x42f136['mapper']['unbindElementFromMarkerName'](_0x3e24e2,_0x5f0dc5['markerName']),_0x42f136['writer']['remove'](_0x3e24e2));}},{'priority':'high'});}['_getChangeFromId'](_0x41de98){return this['_changeIdToChange']['get'](_0x41de98);}['_getViewForChange'](_0x35e8d7){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x35e8d7),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x294c58,_0xddcc55,_0x75df23,_0x2c8ad9)=>{_0x2c8ad9&&this['_balloon']['remove'](_0x2c8ad9),_0x75df23&&(this['_balloon']['add']({'view':_0x75df23,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x1181c0=this['editor']['editing'],_0x5ab678=this['_getChangeFromId'](_0x75df23['changeId']);let _0x47ca88;if(_0x5ab678['data']['isOnRoot']){const _0x280d66=_0x1181c0['view']['getDomRoot'](_0x5ab678['rootName']);_0x47ca88=Array['from'](_0x280d66['getClientRects']());}else{const _0x207cf7=this['editor']['model']['markers']['get']('revision:'+_0x75df23['changeId']);_0x47ca88=Array['from'](_0x1181c0['mapper']['markerNameToElements'](_0x207cf7['name']))['map'](_0x10af39=>_0x1181c0['view']['domConverter']['mapViewToDom'](_0x10af39))['map'](_0x1f7694=>Array['from'](_0x1f7694['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x47ca88[0x0];return _0x47ca88['find'](_0x5dd31e=>_0x5dd31e['top']-0x3<=this['_activeViewTarget']['y']&&_0x5dd31e['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x5dd31e['left']-0x3<=this['_activeViewTarget']['x']&&_0x5dd31e['right']+0x3>=this['_activeViewTarget']['x'])||_0x47ca88[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x19ad12,_0x42022d,_0x3e2d37,_0x54ba8e)=>{this['activeView']=_0x3e2d37?this['_getViewForChange'](_0x3e2d37):null,this['editor']['model']['change'](()=>{const _0x39d036=this['editor']['editing'];_0x54ba8e&&(_0x54ba8e['data']['isOnRoot']?_0x39d036['view']['change'](_0x1489ef=>{_0x1489ef['removeClass']('ck-revision-history-root--active',_0x39d036['view']['document']['getRoot'](_0x54ba8e['rootName']));}):_0x39d036['reconvertMarker']('revision:'+_0x54ba8e['id'])),_0x3e2d37&&(_0x3e2d37['data']['isOnRoot']?_0x39d036['view']['change'](_0xe83570=>{_0xe83570['addClass']('ck-revision-history-root--active',_0x39d036['view']['document']['getRoot'](_0x3e2d37['rootName']));}):_0x39d036['reconvertMarker']('revision:'+_0x3e2d37['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x2f9c55,_0x488f0c)=>{if(this['activeChange'])return;const _0x52b10d=this['_findChangeIdFromDomTarget'](_0x488f0c['target']),_0x40d108=this['_changeIdToChange']['get'](_0x52b10d);_0x40d108?(this['_activeViewTarget']={'x':_0x488f0c['domEvent']['x'],'y':_0x488f0c['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x40d108)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x2de423,_0x4572e3)=>{const _0x28978f=this['_findChangeIdFromDomTarget'](_0x4572e3['target']),_0x3285b9=this['_changeIdToChange']['get'](_0x28978f);_0x3285b9?(this['_activeViewTarget']={'x':_0x4572e3['domEvent']['x'],'y':_0x4572e3['domEvent']['y']},_0x3285b9===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x3285b9):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x101c97){do{const _0x245302=_0x101c97['getAttribute']('data-change-id');if(_0x245302)return _0x245302;_0x101c97=_0x101c97['parent'];}while(_0x101c97);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x35bc91=>{for(const _0x5a82e0 of this['editor']['model']['markers'])_0x35bc91['removeMarker'](_0x5a82e0);});}}function Z(_0x5360d2,_0x128818){return(_0x1fceb5,_0x529629,_0xf34611)=>{if(!_0xf34611['consumable']['test'](_0x529629['markerRange'],_0x1fceb5['name']))return;const _0x582dc3=_0x529629['markerRange']['getWalker'](),_0x2963fa=_0x529629['markerRange']['start'],_0x520579=_0x5360d2['model']['schema'];let _0x571a44=null,_0x53f9b5=null,_0x510ace=!0x1,_0x3a7d00=!0x1;for(const _0x41be45 of _0x582dc3){const _0x485c05=_0x41be45['item'];_0x510ace=_0x510ace||_0x520579['isContent'](_0x485c05);const _0x477868=_0xf34611['mapper']['toViewElement'](_0x485c05);if(_0x477868&&_0x477868['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x41be45['type']&&(_0x520579['isBlock'](_0x485c05)&&!_0x520579['isLimit'](_0x485c05)&&(_0x485c05['nextSibling']||_0x2963fa['isAtEnd']?_0x571a44&&_0x571a44['parent']==_0x485c05||(_0x571a44=_0x485c05,_0x2f9506(_0x41be45['previousPosition']),_0x3a7d00=!0x0):_0x53f9b5=_0x53f9b5||_0x41be45['previousPosition']));}function _0x2f9506(_0x39fc88){const _0x39653c=_0xf34611['mapper']['toViewPosition'](_0x39fc88),_0x3f47fe=_0xf34611['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x128818});_0xf34611['writer']['insert'](_0x39653c,_0x3f47fe),_0xf34611['mapper']['bindElementToMarker'](_0x3f47fe,_0x529629['markerName']);}_0x510ace||_0x3a7d00||!_0x53f9b5||_0x2f9506(_0x53f9b5);};}class pt extends _0x1bb048{constructor(_0x32da1b){super(_0x32da1b);const _0xe9adc9=_0x32da1b['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0xe9adc9,'change:isReady',()=>this['refresh']()),this['listenTo'](_0xe9adc9,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x476f23=this['editor'],_0x18cc11=_0x476f23['plugins']['get'](d),_0x1a1217=_0x18cc11['isReady']?_0x18cc11['diff']['newRevisionId']:null;_0x476f23['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1a1217);}['refresh'](){const {isReady:_0x43cf85,isEnabled:_0x4ff7cf,repository:_0x5a2f10,diff:_0x461c92}=this['editor']['plugins']['get'](d),_0x1e9b55=_0x461c92&&_0x5a2f10['getLaterVisibleRevision'](_0x461c92['newRevisionId']);this['isEnabled']=_0x43cf85&&_0x4ff7cf&&Boolean(_0x1e9b55);}}class _t extends _0x1bb048{['_step'];constructor(_0x3c8040,{direction:_0x3050dd}){super(_0x3c8040);const _0x1e3c20=_0x3c8040['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x3050dd?0x1:-0x1,this['listenTo'](_0x1e3c20,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1e3c20,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x1e3c20,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x4ffbe7=this['editor'],_0x19dd96=_0x4ffbe7['plugins']['get'](d),{isNavigationMode:_0x39a073,currentChangeNumber:_0x4b7dc3}=_0x19dd96;let _0x1968f4;if(_0x19dd96['activeChange']=_0x39a073?_0x19dd96['diff']['changes']['get'](_0x4b7dc3+this['_step']):_0x19dd96['diff']['changes']['first'],_0x19dd96['activeChange']['data']['isOnRoot'])_0x1968f4=_0x4ffbe7['editing']['view']['getDomRoot'](_0x19dd96['activeChange']['rootName']);else{const _0x4b793f=_0x4ffbe7['model']['markers']['get']('revision:'+_0x19dd96['activeChange']['id']);_0x1968f4=_0x5bfa7a(_0x4ffbe7['editing'],_0x4b793f);}_0x3f1c8e({'target':_0x1968f4,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x284644,currentChangeNumber:_0x3d4802,numberOfChanges:_0xd90182,isReady:_0x1997fa,isEnabled:_0x435b9b}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x435b9b&&_0x1997fa&&_0xd90182)&&(!_0x284644||(0x1===this['_step']?_0x3d4802<_0xd90182-0x1:_0x3d4802>0x0));}}class ei extends ts{constructor(_0xf8649f){super(_0xf8649f);const _0x4e0936=this['bindTemplate'],_0x535494=new te(_0xf8649f),_0x27464a=new te(_0xf8649f);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',(_0x59a9f1,_0x264f72)=>_0x59a9f1&&_0x264f72>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x51ed59,_0x5228ac,_0x410534,_0x45c77f)=>{if(!_0x51ed59)return m(_0xf8649f,'Loading...');if(!_0x410534)return m(_0xf8649f,'No\x20changes');const _0x345925=m(_0xf8649f,'NUMBER_OF_CHANGES',_0x410534);return _0x45c77f?m(_0xf8649f,'X_OF_Y_CHANGES',[_0x5228ac+0x1,_0x410534]):_0x345925;}),_0x535494['set']({'label':m(_0xf8649f,'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'}),_0x27464a['set']({'label':m(_0xf8649f,'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'}),_0x535494['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x27464a['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x535494['on']('execute',()=>this['fire']('execute','backward')),_0x27464a['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',_0x4e0936['if']('_isStatusLabelVisible','ck-hidden',_0x1d256b=>!_0x1d256b)]},'children':[{'text':_0x4e0936['to']('isNavigationMode',_0x46d253=>_0x46d253?m(_0xf8649f,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0xf8649f,'Total')+':\x20')}]},{'text':_0x4e0936['to']('_statusText')}]},new _0x49f459(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x535494,_0x27464a]}]});}}const le='ck-editor__editable__loading-overlay';class de extends _0x32cb53{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x5f4281=this['editor']['editing']['view'];_0x5f4281['change'](_0x21cbb5=>{for(const _0x2ea736 of _0x5f4281['document']['roots'])_0x21cbb5['addClass'](le,_0x2ea736);});}['hide'](){const _0x158a81=this['editor']['editing']['view'];_0x158a81['change'](_0x1ce7b3=>{for(const _0x2f05a5 of _0x158a81['document']['roots'])_0x1ce7b3['removeClass'](le,_0x2f05a5);});}}class g extends _0x32cb53{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,de];}['init'](){const _0x48050f=this['editor'],_0xdf2129=_0x48050f['plugins']['get'](d),_0x301d5e=_0x48050f['plugins']['get'](de);_0x48050f['ui']['componentFactory']['add']('exitToEditing',_0x207a8f=>{const _0x4e7438=new te(_0x207a8f);return _0x4e7438['set']({'label':m(_0x207a8f,'Back\x20to\x20editing'),'icon':_0xfd812b['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x4e7438,'execute',()=>{_0x48050f['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x4e7438;}),_0x48050f['ui']['componentFactory']['add']('restoreRevision',_0x56e0d3=>{const _0x3337c6=new te(_0x56e0d3);return _0x3337c6['set']({'label':m(_0x56e0d3,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x3337c6['bind']('isEnabled')['to'](_0x48050f['commands']['get']('restoreRevision')),this['listenTo'](_0x3337c6,'execute',()=>_0x48050f['execute']('restoreRevision')),_0x3337c6;}),_0x48050f['ui']['componentFactory']['add']('changesNavigation',_0x1a9aca=>{const _0x393a8c=new ei(_0x1a9aca),_0x3f72b6=_0x48050f['commands']['get']('showPreviousChange'),_0x5adb0b=_0x48050f['commands']['get']('showNextChange');return _0x393a8c['bind']('isBackwardNavigationEnabled')['to'](_0x3f72b6,'isEnabled'),_0x393a8c['bind']('isForwardNavigationEnabled')['to'](_0x5adb0b,'isEnabled'),_0x393a8c['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0xdf2129),this['listenTo'](_0x393a8c,'execute',(_0x4cf4e5,_0x4b38e8)=>{_0x48050f['execute']('forward'===_0x4b38e8?'showNextChange':'showPreviousChange');}),_0x393a8c;}),_0x301d5e['show'](),_0xdf2129['on']('change:isReady',(_0x4872de,_0x1a9540,_0x848536)=>{_0x848536?_0x301d5e['hide']():_0x301d5e['show']();});}}class at extends _0x1c9501{['_resizeObserver']=null;constructor(_0x2c70c9,_0x5014da){super(_0x2c70c9,_0x5014da);const _0x16accb=this['bindTemplate'];this['set']({'label':m(_0x2c70c9,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x2c70c9,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x16accb['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0xfbf9cb=this['fieldView']['element'];this['_tooltipString']=_0xfbf9cb['scrollWidth']>_0xfbf9cb['clientWidth']&&_0xfbf9cb['value']||'';}}class ai extends ts{constructor(_0x1ac02e,_0x40e045,_0x580872){super(_0x1ac02e);const _0x501d63=new _0x247bb3();_0x501d63['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 _0x3e2bb7=['ck','ck-revision-history-sidebar__revision-author'];_0x580872&&_0x3e2bb7['push']('ck-revision-history-sidebar__revision-author_creator');const _0x2fee3f=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x1ac02e,_0x580872?'Revision\x20creator':'Revision\x20author')},'children':[_0x501d63,_0x40e045['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x3e2bb7},'children':_0x2fee3f});}}function _i(_0x48ac31,_0x10cf3f){const _0x28f866=_0x48ac31['bindTemplate'],_0x3cda93=_0x48ac31['locale'],_0x2709c7=_0x1e2d2c(_0x3cda93);_0x2709c7['panelPosition']='sw';const _0x1c1ccb=function(_0x46195a,_0x65f5ce){const _0x2c035b=function(_0x74cedc,_0x5d0112){const _0x305445=_0x74cedc['locale'],_0x2b0d28={'Compare\x20against\x20selected':m(_0x305445,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x305445,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x305445,'Restore\x20this\x20revision')};return _0x5d0112['map'](_0x5e00b0=>{const _0x39dcf7=_0x2b0d28[_0x5e00b0['name']];return _0x39dcf7&&_0x39dcf7!==_0x5e00b0['name']&&(_0x5e00b0['name']=_0x39dcf7),_0x5e00b0;});}(_0x46195a,_0x65f5ce),_0x39d4c3=new _0x47b816();for(const _0x3f3cb2 of _0x2c035b){const _0x2027d0={'type':'button','model':new _0x58a8c5({'label':_0x3f3cb2['name'],'class':_0x3f3cb2['class'],'withText':!0x0,'role':'menuitem','_action':_0x3f3cb2['action']})};_0x2027d0['model']['bind']('isEnabled')['to'](_0x46195a,'isActionsDropdownOpen',_0x28cd88=>'function'!=typeof _0x3f3cb2['isEnabled']||(!_0x28cd88||_0x3f3cb2['isEnabled'](_0x46195a))),_0x39d4c3['add'](_0x2027d0);}return _0x39d4c3;}(_0x48ac31,_0x10cf3f);return _0x48ac31['bind']('isActionsDropdownOpen')['to'](_0x2709c7,'isOpen'),_0x2709c7['buttonView']['set']({'label':m(_0x3cda93,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0xfd812b['threeVerticalDots']}),_0x2709c7['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x28f866['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x28f866['to'](_0x1e7f71=>_0x1e7f71['stopPropagation']())}}),_0x2709c7['on']('execute',_0x2595a1=>{_0x48ac31['isReady']&&'function'==typeof _0x2595a1['source']['_action']&&_0x2595a1['source']['_action'](_0x48ac31);}),to(_0x2709c7,_0x1c1ccb,{'role':'menu'}),_0x2709c7['listenTo'](_0x48ac31,'change:isActionsDropdownOpen',(_0x349a11,_0x567abb,_0x40487e)=>{if(_0x40487e)for(const _0x4fab91 of _0x2709c7['listView']['items']){const _0x5fe226=_0x4fab91['children']['first'],_0x5a97c8=_0x10cf3f['find'](_0x17441f=>_0x17441f['action']===_0x5fe226['_action'])['isVisible'];_0x4fab91['isVisible']=void 0x0===_0x5a97c8||_0x5a97c8(_0x48ac31);}}),_0x2709c7;}class ri extends/* #__PURE__ -- @preserve */
26
- _0x184c88(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x1464b5,_0x38f00f,_0x4d0bdc,_0x1ba077){super(_0x1464b5);const _0x199df6=this['bindTemplate'],_0x992f48=function(_0x262570,_0x246fc8){const _0x89ecdc=Array['from'](_0x246fc8['authors'])['filter'](_0xa6b713=>_0xa6b713!=_0x246fc8['creator']);return _0x246fc8['creator']&&_0x89ecdc['unshift'](_0x246fc8['creator']),_0x89ecdc['map'](_0x336da3=>new ai(_0x262570,_0x336da3,_0x336da3==_0x246fc8['creator']));}(_0x1464b5,_0x38f00f);this['id']=_0x38f00f['id'],this['_revision']=_0x38f00f,this['_requireRevisionName']=_0x1ba077,this['bind']('name','createdAt')['to'](_0x38f00f),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x468a06=>{return _0x57f621=_0x1464b5['uiLanguage'],(_0x2bf0ae=_0x468a06)['toLocaleDateString'](_0x57f621,{'month':'long','day':'numeric'})+',\x20'+_0x2bf0ae['toLocaleTimeString'](_0x57f621,{'hour':'numeric','minute':'numeric'});var _0x57f621,_0x2bf0ae;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x1464b5,_0x2f53a3),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x14dbe0=>_0x14dbe0||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x3307be,_0x14e8f6)=>_0x3307be&&_0x14e8f6),this['revisionActionsView']=_0x4d0bdc&&_0x4d0bdc['length']?_i(this,_0x4d0bdc):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x199df6['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x199df6['if']('isEnabled','ck-disabled',_0x242955=>!_0x242955),_0x199df6['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x199df6['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x199df6['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':_0x199df6['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':_0x992f48}]},this['revisionActionsView']],'on':{'click':_0x199df6['to'](_0x35550d=>{_0x35550d['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x239786=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x239786,'change',()=>{this['_requireRevisionName']&&!_0x239786['value']||this['fire']('setName',{'id':this['id'],'name':_0x239786['value']}),_0x239786['value']||(_0x239786['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function oi(_0x1623de,_0x495386){const _0x597ad6=_0xa55a2d['fromJSDate'](_0x1623de)['setLocale'](_0x495386),_0x4c49ef=_0xa55a2d['local'](),_0x49ed0d=_0x4c49ef['minus']({'days':0x1})['startOf']('day');let _0x3edf7c,_0x5a279e;return _0x597ad6['hasSame'](_0x4c49ef,'day')?(_0x3edf7c=_0x597ad6['startOf']('day')['toJSDate'](),_0x5a279e=_0x597ad6['toRelativeCalendar']()):_0x597ad6['hasSame'](_0x49ed0d,'day')?(_0x3edf7c=_0x49ed0d['toJSDate'](),_0x5a279e=_0x597ad6['toRelativeCalendar']()):_0x597ad6['hasSame'](_0x4c49ef,'week')?(_0x3edf7c=_0x597ad6['startOf']('week')['toJSDate'](),_0x5a279e=_0x597ad6['weekdayLong']||''):_0x597ad6['hasSame'](_0x4c49ef,'year')?(_0x3edf7c=_0x597ad6['startOf']('month')['toJSDate'](),_0x5a279e=_0x597ad6['monthLong']||''):(_0x3edf7c=_0x597ad6['startOf']('year')['toJSDate'](),_0x5a279e=String(_0x597ad6['year'])),{'startDate':_0x3edf7c,'localizedPeriodName':_0x5a279e};}class hi extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x928ddd,_0x597e58,_0x25ca66,_0x44b0c2){super(_0x928ddd);const _0x513a9a=oi(_0x597e58,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x597e58,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x25ca66,this['_requireRevisionName']=_0x44b0c2,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':_0x513a9a}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x3da916){const _0x24ef9c=new ri(this['locale'],_0x3da916,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x24ef9c);}['removeRevision'](_0x2723dc){const _0xfd9d2=this['revisionViews']['find'](_0x3a730f=>_0x3a730f['id']===_0x2723dc['id']);this['revisionViews']['remove'](_0xfd9d2);}}class cs extends ts{constructor(_0x28ae10){super(_0x28ae10);const _0x5bb422=new _0x247bb3();_0x5bb422['content']=_0xfd812b['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x5bb422,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x28ae10,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x594b6c,_0x30b38f,_0x345479,_0x1a70f7){super(_0x594b6c);const _0x47e147=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x30b38f,this['_revisionActions']=_0x345479,this['_requireRevisionName']=_0x1a70f7,this['on']('select',(_0x3b8b21,_0x128eff)=>{this['fire']('revisionSelected',_0x128eff);}),this['on']('setName',(_0x46ce4f,_0x426e79)=>{this['fire']('revisionSetName',_0x426e79);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new cs(_0x594b6c),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x47e147['if']('isEnabled','ck-disabled',_0xc7c1da=>!_0xc7c1da)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x507e96 of this['_revisions'])this['_addRevision'](_0x507e96);this['_revisions']['on']('add',(_0x5ac97b,_0x487ae4)=>{this['_addRevision'](_0x487ae4);}),this['_revisions']['on']('remove',(_0x45b851,_0x2f337f)=>{this['_removeRevision'](_0x2f337f);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x2942af=>_0x2942af['revisionViews']['map'](_0x9d49f5=>_0x9d49f5))['flat']();}['selectRevision'](_0x2829b9){for(const _0x4435ca of this['revisionViews'])_0x2829b9&&_0x2829b9['id']===_0x4435ca['id']?_0x4435ca['select']():_0x4435ca['deselect']();}['highlightRevisions'](_0x300bec){for(const _0x3ff969 of this['revisionViews'])_0x300bec['some'](({id:_0x552009})=>_0x552009===_0x3ff969['id'])?_0x3ff969['highlight']():_0x3ff969['unhighlight']();}['_addRevision'](_0x3130ab){const _0x3c9e09=oi(_0x3130ab['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0xe35bf9=this['timePeriodViews']['get'](0x0);_0xe35bf9&&_0xe35bf9['startDate']['getTime']()===_0x3c9e09['getTime']()||(_0xe35bf9=new hi(this['locale'],_0x3c9e09,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0xe35bf9)),_0xe35bf9['addRevision'](_0x3130ab);}['_removeRevision'](_0x150067){const _0x2530ed=oi(_0x150067['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x2530ed)['removeRevision'](_0x150067);}['_getTimePeriodViewByStartDate'](_0x5e6a98){return this['timePeriodViews']['find'](_0x558701=>_0x558701['startDate']['getTime']()===_0x5e6a98['getTime']());}}class w extends _0x32cb53{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x4c7a34,uid as _0x22b130,Collection as _0xb59600,logWarning as _0x1ad235,FocusTracker as _0x5d4331,KeystrokeHandler as _0x197446,scrollViewportToShowTarget as _0x2a04c7,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x3a49a4}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x2fbfef,set as _0x1c0c86,unset as _0x1183ab,isEqual as _0x5b775d}from'lodash-es';import{Plugin as _0x495045,PendingActions as _0x5e742d,icons as _0x3b9cd1,Command as _0x4329f6,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x48e3ae,getMarkerDomElement as _0x6fa89f,ConfirmMixin as _0x53a7fd,sanitizeEditorConfig as _0x5cd1f0}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x836cbc,ViewText as _0x263cf6,ViewElement as _0x2b857d,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0x35266d,ViewAttributeElement as _0x53c0fe,ViewEmptyElement as _0x5cfb09,ViewRawElement as _0x5b34ed,ViewUIElement as _0x4cb63c,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x21a70e,injectCssTransitionDisabler as ts,submitHandler as _0x50a964,LabeledFieldView as nt,createLabeledInputText as _0x2f6061,createDropdown as _0x4cd44e,ListView as te,ListItemView as _0x5586df,ButtonView as _0x5f241f,MenuBarMenuView as _0x57eb30,MenuBarMenuListView as _0x2a4332,MenuBarMenuListItemView as _0x55a266,MenuBarMenuListItemButtonView as _0x33098b,ContextualBalloon as _0x575c14,ToolbarSeparatorView as _0x5205f1,IconView as _0x3183a9,addListToDropdown as _0x34d2c0,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 _0x1e2f43}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
+ _0x4c7a34(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x219c82){super(),this['id']=_0x219c82['id']||_0x22b130(),this['creator']=_0x219c82['creator']||null,this['authors']=_0x219c82['authors']||[],this['diffData']=_0x219c82['diffData']||null,this['toVersion']=_0x219c82['toVersion']||0x0,this['fromVersion']=_0x219c82['fromVersion']||0x0,this['set']('name',_0x219c82['name']||''),this['set']('createdAt',_0x219c82['createdAt']||new Date()),this['set']('attributes',_0x219c82['attributes']||{});}['setName'](_0x13460b){this['_update']({'name':_0x13460b});}['setAttribute'](_0x1de5d1,_0x2623b7){const _0x5649bc=_0x2fbfef(this['attributes']);_0x1c0c86(_0x5649bc,_0x1de5d1,_0x2623b7),this['_update']({'attributes':_0x5649bc});}['removeAttribute'](_0x33f625){const _0x235597=_0x2fbfef(this['attributes']);_0x1183ab(_0x235597,_0x33f625),this['_update']({'attributes':_0x235597});}['_update'](_0x423f31,_0x59dc13=!0x1){let _0x2e1a88=!0x1;const _0x53b19d={'id':this['id']},_0x54c0d0=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x2b9d1d of _0x54c0d0){const _0x5841ef=_0x423f31[_0x2b9d1d];void 0x0!==_0x5841ef&&_0x5841ef!==this[_0x2b9d1d]&&(this[_0x2b9d1d]=_0x5841ef,_0x53b19d[_0x2b9d1d]=_0x5841ef,_0x2e1a88=!0x0);}_0x2e1a88&&(_0x53b19d['authors']&&(_0x53b19d['authorsIds']=_0x53b19d['authors']['map'](_0x6ab33b=>_0x6ab33b['id']),delete _0x53b19d['authors']),this['fire']('_update',_0x53b19d,_0x59dc13));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x2ab571=>_0x2ab571['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x495045{['_revisions'];static get['requires'](){return[_0x48e3ae];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x3847ca){super(_0x3847ca),this['_revisions']=new _0xb59600();}['afterInit'](){!async function(_0x17d80b){const _0x513269=_0x4b27eb([0x57,0x35,0x66,0x71,0x69,0x34,0x41,0x51,0x6b,0x53,0x4e,0x45,0x6d,0x70,0x4a,0x73,0x56,0x46,0x52,0x78,0x4f,0x77,0x39,0x38,0x47,0x5a,0x75,0x54,0x63,0x72,0x48,0x4b,0x36,0x67,0x7a,0x68,0x6a,0x32,0x30,0x62,0x58,0x31,0x64,0x59,0x49,0x76,0x6f,0x43,0x4d,0x6e,0x33,0x61,0x44,0x79,0x74,0x42,0x37,0x65,0x55,0x4c,0x6c,0x50]),_0x4a9bfc=0xeb829,_0x4b05ee=0x3c4434a9,_0x5a687f=0x3c436919^_0x4b05ee,_0x5ecc35=window[_0x4b27eb([0x44,0x61,0x74,0x65])][_0x4b27eb([0x6e,0x6f,0x77])](),_0x587b3d=_0x17d80b[_0x4b27eb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5ad3f9=new window[(_0x4b27eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x328525=>{_0x587b3d[_0x4b27eb([0x6f,0x6e,0x63,0x65])](_0x4b27eb([0x72,0x65,0x61,0x64,0x79]),_0x328525);}),_0x113b98={[_0x4b27eb([0x6b,0x74,0x79])]:_0x4b27eb([0x45,0x43]),[_0x4b27eb([0x75,0x73,0x65])]:_0x4b27eb([0x73,0x69,0x67]),[_0x4b27eb([0x63,0x72,0x76])]:_0x4b27eb([0x50,0x2d,0x32,0x35,0x36]),[_0x4b27eb([0x78])]:_0x4b27eb([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]),[_0x4b27eb([0x79])]:_0x4b27eb([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]),[_0x4b27eb([0x61,0x6c,0x67])]:_0x4b27eb([0x45,0x53,0x32,0x35,0x36])},_0x397786=_0x587b3d[_0x4b27eb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4b27eb([0x67,0x65,0x74])](_0x4b27eb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3d97fd(){let _0x4964c6,_0xc0a184=null,_0x104f12=null;try{if(_0x397786==_0x4b27eb([0x47,0x50,0x4c]))return _0x4b27eb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4964c6=_0x3d6fae(),!_0x4964c6)return _0x4b27eb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4964c6[_0x4b27eb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x104f12=_0x363ac0(_0x4964c6[_0x4b27eb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4964c6[_0x4b27eb([0x6a,0x74,0x69])])),await _0x1a3c3a()?_0x301aac()?_0x575ce()?_0x4b27eb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x157d21()?(_0x4964c6[_0x4b27eb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4b27eb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xc0a184=_0x4f380d(_0x4b27eb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4964c6[_0x4b27eb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4b27eb([0x74,0x72,0x69,0x61,0x6c])&&(_0xc0a184=_0x4f380d(_0x4b27eb([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x4964c6[_0x4b27eb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4b27eb([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0xc0a184=_0x4f380d(_0x4b27eb([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3ec681()):_0x4b27eb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4b27eb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4b27eb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x24f928){return _0x4b27eb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x575ce(){const _0x1ba013=[_0x4b27eb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4b27eb([0x74,0x72,0x69,0x61,0x6c])][_0x4b27eb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4964c6[_0x4b27eb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5ecc35/0x3e8:0xe10*_0x5a687f;return _0x4964c6[_0x4b27eb([0x65,0x78,0x70])]<_0x1ba013;}function _0x301aac(){const _0x599049=_0x4964c6[_0x4b27eb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x599049)return!0x1;if(_0x599049[_0x4b27eb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b27eb([0x2a])))return!0x0;if(_0x599049[_0x4b27eb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b27eb([0x52,0x48])))return!0x0;if(_0x599049[_0x4b27eb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b27eb([0x52,0x52,0x48]))){if(_0x15168a())return!0x0;if(_0x54dab2()||_0x298078())return!0x0;}return!0x1;}function _0x157d21(){const _0x5d16d5=_0x4964c6[_0x4b27eb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5d16d5||0x0==_0x5d16d5[_0x4b27eb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x21e3d3}=new URL(window[_0x4b27eb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5d16d5[_0x4b27eb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21e3d3))return!0x0;const _0x442f21=_0x21e3d3[_0x4b27eb([0x73,0x70,0x6c,0x69,0x74])](_0x4b27eb([0x2e]));return _0x5d16d5[_0x4b27eb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2f9802=>_0x2f9802[_0x4b27eb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b27eb([0x2a])))[_0x4b27eb([0x6d,0x61,0x70])](_0x42b528=>_0x42b528[_0x4b27eb([0x73,0x70,0x6c,0x69,0x74])](_0x4b27eb([0x2e])))[_0x4b27eb([0x73,0x6f,0x6d,0x65])](_0x240d76=>_0x442f21[_0x4b27eb([0x65,0x76,0x65,0x72,0x79])]((_0x35336c,_0x8bfce2)=>_0x240d76[_0x8bfce2]===_0x35336c||_0x240d76[_0x8bfce2]===_0x4b27eb([0x2a])));}function _0x3ec681(){return _0xc0a184&&_0x104f12?new window[(_0x4b27eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5af282,_0x16b6c1)=>{_0xc0a184[_0x4b27eb([0x74,0x68,0x65,0x6e])](_0x5af282,_0x16b6c1),_0x104f12[_0x4b27eb([0x74,0x68,0x65,0x6e])](_0x5b2cd4=>{_0x5b2cd4!=_0x4b27eb([0x56,0x61,0x6c,0x69,0x64])&&_0x5af282(_0x5b2cd4);},_0x16b6c1);}):_0xc0a184||_0x104f12||_0x4b27eb([0x56,0x61,0x6c,0x69,0x64]);}}function _0x363ac0(_0x467bf3,_0x4cfb2f){return new window[(_0x4b27eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf090b4=>{if(_0x2e4bc8())return _0xf090b4(_0x4b27eb([0x56,0x61,0x6c,0x69,0x64]));_0x3aa2a1(),_0x587b3d[_0x4b27eb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4b27eb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xd4ca5d=!0x1;const _0x72faa5=_0x22b130();function _0x554370(_0x1683fb){return!!_0x1683fb&&(typeof _0x1683fb===_0x4b27eb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1683fb===_0x4b27eb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1683fb[_0x4b27eb([0x74,0x68,0x65,0x6e])]===_0x4b27eb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1683fb[_0x4b27eb([0x63,0x61,0x74,0x63,0x68])]===_0x4b27eb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x571594(_0x290ce8){_0x4b0fc2(_0x290ce8)[_0x4b27eb([0x74,0x68,0x65,0x6e])](_0x5ec1c8=>{if(!_0x5ec1c8||_0x5ec1c8[_0x4b27eb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4b27eb([0x6f,0x6b]))return _0x4b27eb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x313c75(_0x5e1e74(_0x72faa5+_0x4cfb2f))!=_0x5ec1c8[_0x4b27eb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4b27eb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4b27eb([0x56,0x61,0x6c,0x69,0x64]);})[_0x4b27eb([0x74,0x68,0x65,0x6e])](_0x3bb87c=>(_0x171854(),_0x3bb87c),()=>{const _0x520bec=_0x294ed6();return null==_0x520bec?(_0x171854(),_0x4b27eb([0x56,0x61,0x6c,0x69,0x64])):_0x4b27eb(_0x5ecc35-_0x520bec>(0x1848b0a9^_0x4b05ee)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4b27eb([0x74,0x68,0x65,0x6e])](_0xf090b4)[_0x4b27eb([0x63,0x61,0x74,0x63,0x68])](()=>{_0xf090b4(_0x4b27eb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x234f30=0x3c72da29^_0x4b05ee;function _0x171854(){const _0x4fc7f8=_0x4b27eb([0x6c,0x6c,0x63,0x74,0x2d])+_0x313c75(_0x5e1e74(_0x467bf3)),_0x5d994e=_0x4b2b80(_0x313c75(window[_0x4b27eb([0x4d,0x61,0x74,0x68])][_0x4b27eb([0x63,0x65,0x69,0x6c])](_0x5ecc35/_0x234f30)));window[_0x4b27eb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4b27eb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4fc7f8,_0x5d994e);}function _0x294ed6(){const _0xb17659=_0x4b27eb([0x6c,0x6c,0x63,0x74,0x2d])+_0x313c75(_0x5e1e74(_0x467bf3)),_0x363060=window[_0x4b27eb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4b27eb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb17659);return _0x363060?window[_0x4b27eb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b2b80(_0x363060),0x10)*_0x234f30:null;}function _0x4b0fc2(_0x51bfa7){return new window[(_0x4b27eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3d3531,_0x28947b)=>{_0x51bfa7[_0x4b27eb([0x74,0x68,0x65,0x6e])](_0x3d3531,_0x28947b),window[_0x4b27eb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x28947b,0x3c45e069^_0x4b05ee);});}}_0x587b3d[_0x4b27eb([0x6f,0x6e])](_0x4b27eb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x21a5cb,_0x26ebd1)=>{if(_0x26ebd1[0x0]!=_0x467bf3)return _0xf090b4(_0x4b27eb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x26ebd1[0x1]={..._0x26ebd1[0x1],[_0x4b27eb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x72faa5};},{[_0x4b27eb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4b27eb([0x68,0x69,0x67,0x68])}),_0x587b3d[_0x4b27eb([0x6f,0x6e])](_0x4b27eb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3b4b06=>{_0x554370(_0x3b4b06[_0x4b27eb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xd4ca5d=!0x0,_0x571594(_0x3b4b06[_0x4b27eb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4b27eb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4b27eb([0x6c,0x6f,0x77])}),_0x5ad3f9[_0x4b27eb([0x74,0x68,0x65,0x6e])](()=>{_0xd4ca5d||_0xf090b4(_0x4b27eb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2e4bc8(){return _0x587b3d[_0x4b27eb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b27eb([0x76,0x69,0x65,0x77])][_0x4b27eb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4b27eb([0x61,0x75,0x74,0x6f]);}function _0x3aa2a1(){_0x587b3d[_0x4b27eb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b27eb([0x76,0x69,0x65,0x77])][_0x4b27eb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4b27eb([0x61,0x75,0x74,0x6f]);}}function _0x4f380d(_0xb4f090){const _0x463b30=[new window[(_0x4b27eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x473465=>setTimeout(_0x473465,0x3c4d0a65^_0x4b05ee)),_0x5ad3f9[_0x4b27eb([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4b27eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x534720=>{const _0x42a08e=0x3c4434ae^_0x4b05ee,_0x48ee52=_0x17d80b[_0x4b27eb([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x244634(){_0x48ee52[_0x4b27eb([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x42a08e&&_0x534720();}_0x244634(),_0x48ee52[_0x4b27eb([0x6f,0x6e])](_0x4b27eb([0x61,0x64,0x64]),_0x244634);})),new window[(_0x4b27eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2183ab=>{function _0x20f718(){for(const _0x3ebcbb in window)if(window[_0x4b27eb([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4b27eb([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x3ebcbb))&&window[_0x3ebcbb]==_0x4a9bfc)return _0x2183ab();_0x587b3d[_0x4b27eb([0x73,0x74,0x61,0x74,0x65])]!=_0x4b27eb([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4b27eb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x20f718,0x3c442721^_0x4b05ee);}_0x4aacea(_0x4b27eb([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x20f718();})];return window[_0x4b27eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4b27eb([0x72,0x61,0x63,0x65])](_0x463b30)[_0x4b27eb([0x74,0x68,0x65,0x6e])](()=>_0xb4f090);}async function _0x4c01e9(){if(await _0x5ad3f9,_0x4aacea(_0x4b27eb([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x5c458c=_0x17d80b[_0x4b27eb([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x159ab4=_0x17d80b[_0x4b27eb([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])](_0x5c458c[_0x4b27eb([0x69,0x64])]),_0x68ad0e=_0x1f4750(_0x4b27eb([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x68ad0e[_0x4b27eb([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x5c458c['id'],_0x159ab4?_0x159ab4['id']:null,!0x0),_0x68ad0e[_0x4b27eb([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4b27eb([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x68ad0e[_0x4b27eb([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x68ad0e[_0x4b27eb([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x23600d,void(_0x68ad0e[_0x4b27eb([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x23600d);}if(_0x4aacea(_0x4b27eb([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x23232e=_0x1f4750(_0x4b27eb([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x23232e[_0x4b27eb([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4b27eb([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x23232e[_0x4b27eb([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x23232e[_0x4b27eb([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x23600d,_0x23232e[_0x4b27eb([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x23600d;}_0x587b3d[_0x4b27eb([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b27eb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x23600d,_0x587b3d[_0x4b27eb([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b27eb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x23600d,_0x587b3d[_0x4b27eb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4b27eb([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x15168a(){return _0x4aacea(_0x4b27eb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1f4750(_0x4b27eb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4b27eb([0x73,0x74,0x61,0x74,0x65])]==_0x4b27eb([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x54dab2(){return _0x4aacea(_0x4b27eb([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 _0x298078(){return _0x4aacea(_0x4b27eb([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1ec5c5(_0x534787){const _0x1a6a51=_0x2de711();_0x587b3d[_0x1a6a51]=_0x4b27eb([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])+_0x534787,_0x534787[_0x4b27eb([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4b27eb([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x2de711()]=_0x4a9bfc),_0x534787!=_0x4b27eb([0x56,0x61,0x6c,0x69,0x64])&&_0x4c01e9();}function _0x2de711(){const _0x5c891f=window[_0x4b27eb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4b27eb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4b27eb([0x6e,0x6f,0x77])]())[_0x4b27eb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4b27eb([0x2e]),'');let _0x2c13b6=_0x4b27eb([0x57]);for(let _0x35d139=0x0;_0x35d139<_0x5c891f[_0x4b27eb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x35d139+=0x2){let _0x27855d=window[_0x4b27eb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c891f[_0x4b27eb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x35d139,_0x35d139+0x2));_0x27855d>=_0x513269[_0x4b27eb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x27855d-=_0x513269[_0x4b27eb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2c13b6+=_0x513269[_0x27855d];}return _0x2c13b6;}function _0x3d6fae(){const _0x5270bd=_0x397786[_0x4b27eb([0x73,0x70,0x6c,0x69,0x74])](_0x4b27eb([0x2e]));if(0x3!=_0x5270bd[_0x4b27eb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2984e4(_0x5270bd[0x1]);function _0x2984e4(_0x74a5d0){const _0x2b2dd6=_0x2b326c(_0x74a5d0);return _0x2b2dd6&&_0x3907bb()?_0x2b2dd6:null;function _0x3907bb(){const _0x2d2f67=_0x2b2dd6[_0x4b27eb([0x6a,0x74,0x69])],_0x2aa5ba=window[_0x4b27eb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d2f67[_0x4b27eb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2d2f67[_0x4b27eb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x590028={..._0x2b2dd6,[_0x4b27eb([0x6a,0x74,0x69])]:_0x2d2f67[_0x4b27eb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2d2f67[_0x4b27eb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x590028[_0x4b27eb([0x76,0x63])],_0x5e1e74(_0x590028)==_0x2aa5ba;}}}async function _0x1a3c3a(){let _0x13e7ec=!0x0;try{const _0xf4f56a=_0x397786[_0x4b27eb([0x73,0x70,0x6c,0x69,0x74])](_0x4b27eb([0x2e])),[_0x3976e3,_0x1e394b,_0x4367b8]=_0xf4f56a;return _0xcebfcc(_0x3976e3),await _0x55cc17(_0x3976e3,_0x1e394b,_0x4367b8),_0x13e7ec;}catch(_0x1ca6ee){return!0x1;}function _0xcebfcc(_0x3db6d7){const _0x46c288=_0x2b326c(_0x3db6d7);_0x46c288&&_0x46c288[_0x4b27eb([0x61,0x6c,0x67])]==_0x4b27eb([0x45,0x53,0x32,0x35,0x36])||(_0x13e7ec=!0x1);}async function _0x55cc17(_0x4fb053,_0xedb7a9,_0x3773ff){const _0x230bef=window[_0x4b27eb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4b27eb([0x66,0x72,0x6f,0x6d])](_0x5a37a2(_0x3773ff),_0x5ec65e=>_0x5ec65e[_0x4b27eb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x327c6d=new window[(_0x4b27eb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4b27eb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4fb053+_0x4b27eb([0x2e])+_0xedb7a9),_0xe46d34=window[_0x4b27eb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4b27eb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xe46d34)return;const _0x23adb8=await _0xe46d34[_0x4b27eb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4b27eb([0x6a,0x77,0x6b]),_0x113b98,{[_0x4b27eb([0x6e,0x61,0x6d,0x65])]:_0x4b27eb([0x45,0x43,0x44,0x53,0x41]),[_0x4b27eb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4b27eb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4b27eb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xe46d34[_0x4b27eb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4b27eb([0x6e,0x61,0x6d,0x65])]:_0x4b27eb([0x45,0x43,0x44,0x53,0x41]),[_0x4b27eb([0x68,0x61,0x73,0x68])]:{[_0x4b27eb([0x6e,0x61,0x6d,0x65])]:_0x4b27eb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x23adb8,_0x230bef,_0x327c6d)||(_0x13e7ec=!0x1);}}function _0x2b326c(_0x136175){return _0x136175[_0x4b27eb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4b27eb([0x65,0x79]))?JSON[_0x4b27eb([0x70,0x61,0x72,0x73,0x65])](_0x5a37a2(_0x136175)):null;}function _0x5a37a2(_0x107b71){return window[_0x4b27eb([0x61,0x74,0x6f,0x62])](_0x107b71[_0x4b27eb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4b27eb([0x2b]))[_0x4b27eb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4b27eb([0x2f])));}function _0x5e1e74(_0xe3de33){let _0x38917b=0x1505;function _0x5b8e57(_0x4f90cb){for(let _0x477a8d=0x0;_0x477a8d<_0x4f90cb[_0x4b27eb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x477a8d++){const _0x5a4706=_0x4f90cb[_0x4b27eb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x477a8d);_0x38917b=(_0x38917b<<0x5)+_0x38917b+_0x5a4706,_0x38917b&=_0x38917b;}}function _0x32e420(_0x39f5a1){Array[_0x4b27eb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x39f5a1)?_0x39f5a1[_0x4b27eb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x32e420):_0x39f5a1&&typeof _0x39f5a1==_0x4b27eb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4b27eb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x39f5a1)[_0x4b27eb([0x73,0x6f,0x72,0x74])]()[_0x4b27eb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1be938,_0x45b591])=>{_0x5b8e57(_0x1be938),_0x32e420(_0x45b591);}):_0x5b8e57(window[_0x4b27eb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x39f5a1));}return _0x32e420(_0xe3de33),_0x38917b>>>0x0;}function _0x313c75(_0x20102d){return _0x20102d[_0x4b27eb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4b27eb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4b27eb([0x30]));}function _0x4b2b80(_0x15f4a3){return _0x15f4a3[_0x4b27eb([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4b27eb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4b27eb([0x6a,0x6f,0x69,0x6e])]('');}function _0x4aacea(_0x104a0f){return _0x587b3d[_0x4b27eb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4b27eb([0x68,0x61,0x73])](_0x104a0f);}function _0x1f4750(_0x484c3c){return _0x587b3d[_0x4b27eb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4b27eb([0x67,0x65,0x74])](_0x484c3c);}function _0x23600d(){}function _0x4b27eb(_0x101251){return _0x101251['map'](_0x2cd9a6=>String['fromCharCode'](_0x2cd9a6))['join']('');}_0x1ec5c5(await _0x3d97fd());}(this);}['createRevision'](_0x489047){const _0x3ee96c=this['editor']['plugins']['get']('Users');return new a({'id':_0x489047['id'],'name':_0x489047['name'],'creator':_0x489047['creatorId']?_0x3ee96c['getUser'](_0x489047['creatorId']):null,'diffData':_0x489047['diffData']||_0x489047['data'],'authors':_0x489047['authorsIds']['map'](_0x3ef42a=>_0x3ee96c['getUser'](_0x3ef42a)),'createdAt':new Date(_0x489047['createdAt']),'attributes':_0x489047['attributes'],'fromVersion':_0x489047['fromVersion'],'toVersion':_0x489047['toVersion']});}['addRevision'](_0xd28b88,_0x3a76dc=0x0){this['_revisions']['add'](_0xd28b88,_0x3a76dc);}['getRevision'](_0x4bfb12){return this['_revisions']['get'](_0x4bfb12);}['getRevisions'](_0xacd5d6={'toJSON':!0x1}){const _0x953938=Array['from'](this['_revisions']);return _0x953938['reverse'](),_0xacd5d6['toJSON']?_0x953938['map'](_0x239e1d=>_0x239e1d['toJSON']()):_0x953938;}['getIndex'](_0x588a6c){return this['_revisions']['getIndex'](_0x588a6c);}['getEarlierVisibleRevision'](_0x28847b){const [,_0x336e74]=this['getRevisionsIterator'](_0x28847b,{'direction':'earlier'});return _0x336e74;}['getLaterVisibleRevision'](_0x45417b){const [,_0x40105e]=this['getRevisionsIterator'](_0x45417b,{'direction':'later'});return _0x40105e;}['getRevisionsInDiff'](_0x510be3){const _0x15f814=[];for(const _0x165fe5 of this['getRevisionsIterator'](_0x510be3['newRevisionId']))if(_0x15f814['push'](_0x165fe5),_0x165fe5['id']===_0x510be3['oldRevisionId'])break;return _0x15f814;}*['getRevisionsIterator'](_0x19f015,{direction:_0x1a84b5='earlier',filter:_0x391c4b=()=>!0x0}={}){const _0x4b90d4='earlier'===_0x1a84b5?0x1:-0x1;let _0xd918f4=this['_revisions']['get'](_0x19f015),_0x2dc8d1=this['getIndex'](_0xd918f4);for(yield _0xd918f4;_0xd918f4;){if(_0x2dc8d1+=_0x4b90d4,_0xd918f4=this['getRevision'](_0x2dc8d1),!_0xd918f4)return;_0x391c4b(_0xd918f4)&&(yield _0xd918f4);}}}function m(_0x1c0cfb,_0x144fae,_0x34ab8e){const t=_0x1c0cfb['t'];switch(_0x144fae){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'},_0x34ab8e);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x34ab8e);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':_0x35266d,'a':_0x53c0fe,'e':_0x5cfb09,'r':_0x5b34ed,'u':_0x4cb63c};class l extends _0x495045{['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[_0x48e3ae,j,_0x5e742d];}constructor(_0x454d66){super(_0x454d66),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 _0x4e4498=_0x22b130();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x4e4498},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 _0x416eb7=this['repository']['getRevision'](0x0),_0x1b6dff=_0x416eb7&&null===_0x416eb7['creator']?_0x416eb7:null;if(this['_continueCurrentRevision']=!!_0x1b6dff&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x845b05=this['_source']['getCurrentRevisionId'](),_0x2eb438=this['repository']['getRevision'](_0x845b05);if(_0x2eb438)this['_startingVersion']=_0x2eb438['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x494ba3=this['_source']['history']['_operations']['find'](_0xc4ec2c=>!_0xc4ec2c['_isInit']),_0x285121=_0x494ba3?_0x494ba3['baseVersion']:this['_source']['history']['version'];_0x416eb7?(_0x416eb7['toVersion']<_0x285121&&_0x416eb7['_update']({'toVersion':_0x285121}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x1b6dff['id'],this['_startingVersion']=_0x1b6dff['fromVersion']):(this['_startingVersion']=_0x416eb7['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x285121,this['_continueCurrentRevision']=!0x1);}}else _0x1b6dff&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x1b6dff['toVersion'],this['editor']['model']['document']['history']['version']),_0x1b6dff['fromVersion']===_0x1b6dff['toVersion']?(0x0!==_0x1b6dff['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x1b6dff['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x1b6dff['id'],this['_startingVersion']=_0x1b6dff['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',_0x23d70b=>!_0x23d70b),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x32d708=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xf278d5;for(const _0x14fee5 in _0x32d708){const _0x2f86ff=_0x14fee5,_0x2c1070=_0x32d708[_0x2f86ff];if('revisionHistoryLicenseKeyValid'==_0x2c1070||'revisionHistoryLicenseKeyInvalid'==_0x2c1070||'revisionHistoryLicenseKeyExpired'==_0x2c1070||'revisionHistoryLicenseKeyDomainLimit'==_0x2c1070||'revisionHistoryLicenseKeyNotAllowed'==_0x2c1070||'revisionHistoryLicenseKeyEvaluationLimit'==_0x2c1070||'revisionHistoryLicenseKeyTrialLimit'==_0x2c1070||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x2c1070||'revisionHistoryLicenseKeyUsageLimit'==_0x2c1070){delete _0x32d708[_0x2f86ff],_0xf278d5=_0x2c1070,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0xf278d5&&_0x32d708['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0xf278d5&&_0x32d708['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0xf278d5&&_0x32d708['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0xf278d5&&_0x32d708['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0xf278d5&&_0x32d708['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0xf278d5&&_0x32d708['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0xf278d5&&_0x32d708['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0xf278d5&&_0x32d708['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x1541fc=this['repository']['getRevision'](0x0),_0x50519f=await this['getRevisionDocumentData'](_0x1541fc),_0x7ef5bb=await this['getRevisionRootsAttributes'](_0x1541fc);this['_replaceEditorDataWithRevisionData'](_0x50519f,_0x7ef5bb);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x91e251){this['_source']=_0x91e251;}async['update'](){const _0x3d1f03=await this['_source']['getLatestVersion']();if(_0x3d1f03>this['currentRevision']['toVersion']){await this['_loadState']();const _0x1d73b4=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x3d1f03});_0x1d73b4['authors']=_0x1d73b4['authorsIds']['map'](_0x3b51fb=>this['editor']['plugins']['get']('Users')['getUser'](_0x3b51fb)),this['currentRevision']['_update'](_0x1d73b4);}}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'](_0x3df910={},_0x4947d3=null){const _0xfba5e8=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x4947d3>this['currentRevision']['toVersion']&&(_0x4947d3=null),null===_0x4947d3&&(_0x4947d3=await this['_source']['getLatestVersion']());const _0x5803ac=this['_getFromVersion'](_0x4947d3),_0x3fa976=this['buildRevisionData']({'from':_0x5803ac,'to':_0x4947d3});if(this['currentRevision']['toVersion']<_0x4947d3){const _0xbbc8e2=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x4947d3,'to':_0x4947d3});_0xbbc8e2['authors']=[],_0xbbc8e2['authorsIds']=[],_0xbbc8e2['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0xbbc8e2,!0x0),delete _0xbbc8e2['authors'],_0xfba5e8['push'](_0xbbc8e2);}_0x3df910['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x3df910['name']=_0x3df910['name']||null,_0x3df910['id']=_0x3df910['id']||_0x22b130(),_0x3df910={..._0x3df910,..._0x3fa976};const _0x27e292=this['addRevisionData'](_0x3df910);_0xfba5e8['push'](_0x3df910);const _0x3cd62a=this['repository']['getIndex'](_0x27e292);if(0x0!==_0x3cd62a){const _0x482c98=this['repository']['getRevision'](_0x3cd62a-0x1);if(_0x482c98['fromVersion']!==_0x4947d3){const _0x5fc901=this['_revisionDataBuilder']['getData'](_0x4947d3,_0x482c98['toVersion']),_0x4046cc={'id':_0x482c98['id'],'diffData':_0x5fc901['diffData'],'authorsIds':_0x5fc901['authorsIds'],'authors':_0x5fc901['authorsIds']['map'](_0x103735=>this['editor']['plugins']['get']('Users')['getUser'](_0x103735)),'fromVersion':_0x4947d3};_0x482c98===this['currentRevision']&&(_0x4046cc['createdAt']=new Date(_0x3df910['createdAt']['getTime']()+0xa)),_0x482c98['_update'](_0x4046cc,!0x0),delete _0x4046cc['authors'],_0xfba5e8['push'](_0x4046cc);}}if(this['adapter']){for(const _0x5da8ba of _0xfba5e8)this['_bufferUpdate'](_0x5da8ba['id'],_0x5da8ba,!0x0);this['sendBufferedUpdates']();}return _0x27e292;}['addRevisionData'](_0x2288b9){const _0x3994e0=this['repository']['createRevision'](_0x2288b9);return this['adapter']&&_0x3994e0['on']('_update',(_0x43d21c,_0x278c52,_0x10d2ec)=>{_0x10d2ec||(this['_bufferUpdate'](_0x278c52['id'],_0x278c52,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x3994e0,this['_findInsertionIndex'](_0x3994e0)),_0x3994e0;}async['getRevisionDocumentData'](_0x322db3){await this['_loadRevisionData'](_0x322db3);const _0x12a420={};for(const _0x146a55 in _0x322db3['diffData']){if(_0x322db3['diffData'][_0x146a55]['attachChange']&&!_0x322db3['diffData'][_0x146a55]['attachChange']['isAttached'])continue;const _0x375640=this['_removeRevisionMarkers'](JSON['parse'](_0x322db3['diffData'][_0x146a55]['insertions'])),_0x1b6bad=this['editor']['editing']['view']['document'],_0x2ea98a=new _0x836cbc(_0x1b6bad,_0x375640['map'](_0x2d1433=>C(_0x2d1433,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x12a420[_0x146a55]=this['editor']['data']['processor']['toData'](_0x2ea98a),this['editor']['data']['processor']['useFillerType']('default');}return _0x12a420;}async['getRevisionRootsAttributes'](_0x14939d){await this['_loadRevisionData'](_0x14939d);const _0x18cc4a={};for(const _0x28d7a2 in _0x14939d['diffData'])_0x14939d['diffData'][_0x28d7a2]['attachChange']&&!_0x14939d['diffData'][_0x28d7a2]['attachChange']['isAttached']||(_0x18cc4a[_0x28d7a2]=_0x14939d['diffData'][_0x28d7a2]['attributesAfter']||{});return _0x18cc4a;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x23f2ab=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x4f130e=0x0;_0x4f130e<_0x23f2ab['length'];_0x4f130e++){const _0x340c4a=_0x23f2ab[_0x4f130e];let _0x24d544=!0x1;for(const _0x3c8a92 of Object['keys'](_0x340c4a))void 0x0===_0x340c4a[_0x3c8a92]?delete _0x340c4a[_0x3c8a92]:'id'!==_0x3c8a92&&(_0x24d544=!0x0);_0x24d544||(_0x23f2ab[_0x4f130e]=null);}if(_0x23f2ab=_0x23f2ab['filter'](_0x1f0467=>null!==_0x1f0467),!_0x23f2ab['length'])return;for(let _0x457f82=0x0;_0x457f82<_0x23f2ab['length'];_0x457f82++){const _0x34c554=_0x23f2ab[_0x457f82];void 0x0!==_0x34c554['fromVersion']&&void 0x0===_0x34c554['toVersion']&&(_0x34c554['toVersion']=this['repository']['getRevision'](_0x34c554['id'])['toVersion']),void 0x0!==_0x34c554['toVersion']&&void 0x0===_0x34c554['fromVersion']&&(_0x34c554['fromVersion']=this['repository']['getRevision'](_0x34c554['id'])['fromVersion']);}const _0x5428ae=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x23f2ab,_0x5428ae)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x5b1378=>{if(_0x5b1378){for(const _0x363c24 of _0x5b1378)this['setRevisionData']({'id':_0x363c24['id'],'createdAt':_0x363c24['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x120d7d,_0x3574eb){let _0xfcb538=this['editor']['config']['get']('initialData'),_0x472ee4=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0xfcb538){_0xfcb538={};for(const _0x16a5ca of this['editor']['model']['document']['getRootNames']())_0xfcb538[_0x16a5ca]='';}if('string'==typeof _0xfcb538&&(_0xfcb538={'main':_0xfcb538}),void 0x0===_0x472ee4){_0x472ee4={};for(const _0x382d74 of this['editor']['model']['document']['getRootNames']())_0x472ee4[_0x382d74]={};}let _0x1b74e6=!0x1;const _0x26d544=Object['keys'](_0xfcb538),_0x49aa44=Object['keys'](_0x120d7d);for(const _0x59b736 of _0x26d544){if(_0xfcb538[_0x59b736]!==_0x120d7d[_0x59b736]&&''!==_0xfcb538[_0x59b736]['trim']()){_0x1b74e6=!0x0;break;}if(!_0x5b775d(_0x472ee4[_0x59b736],_0x3574eb[_0x59b736])&&Object['keys'](_0x472ee4[_0x59b736])['length']>0x0){_0x1b74e6=!0x0;break;}}_0x1b74e6||(_0x1b74e6=_0x49aa44['some'](_0x1702b7=>!this['editor']['model']['document']['getRoot'](_0x1702b7))),_0x1b74e6&&_0x1ad235('editor-initial-data-replaced-with-revision-data',{'editorData':_0xfcb538,'editorRootsAttributes':_0x472ee4,'revisionData':_0x120d7d,'revisionRootsAttributes':_0x3574eb}),this['editor']['config']['set']('initialData',_0x120d7d),this['editor']['config']['set']('rootsAttributes',_0x3574eb);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x122e6a=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x122e6a['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x3a7b89){const _0x1fe15f=this['repository']['getRevisions']();_0x1fe15f['reverse']();let _0x42ada1=0x0;for(;_0x42ada1<_0x1fe15f['length'];){const _0x3a62d3=_0x1fe15f[_0x42ada1];if(_0x3a62d3===this['currentRevision']){_0x42ada1++;continue;}if(_0x3a62d3['id']===this['_initialRevisionId'])break;const _0x382f49=_0x3a7b89['toVersion']-_0x3a62d3['toVersion']||_0x3a7b89['fromVersion']-_0x3a62d3['fromVersion'];if(_0x382f49>0x0)break;if(_0x382f49<0x0)_0x42ada1++;else{if(!_0x3a7b89['creator']&&_0x3a62d3['creator'])break;if(_0x3a62d3['creator']||!_0x3a7b89['creator']){if(_0x3a7b89['createdAt']>_0x3a62d3['createdAt'])break;_0x42ada1++;}else _0x42ada1++;}}return _0x42ada1;}['setRevisionData'](_0x21cd1a){const _0x542307=this['repository']['getRevision'](_0x21cd1a['id']);if(_0x21cd1a['createdAt']&&(_0x21cd1a['createdAt']=new Date(_0x21cd1a['createdAt'])),_0x21cd1a['authorsIds']){const _0x4ac28d=this['editor']['plugins']['get']('Users');_0x21cd1a['authors']=_0x21cd1a['authorsIds']['map'](_0x30b26e=>_0x4ac28d['getUser'](_0x30b26e));}_0x542307['_update'](_0x21cd1a,!0x0);}['buildRevisionData']({revision:_0x927377=null,from:_0x1fe68f=null,to:_0x8c5073=null}){_0x1fe68f=null!==_0x1fe68f?_0x1fe68f:_0x927377['fromVersion'],_0x8c5073=null!==_0x8c5073?_0x8c5073:_0x927377['toVersion'];const _0x597652=this['_revisionDataBuilder']['getData'](_0x1fe68f,_0x8c5073),_0x5ed51a={'diffData':_0x597652['diffData'],'authorsIds':_0x597652['authorsIds'],'fromVersion':_0x1fe68f,'toVersion':_0x8c5073};if(!_0x927377||_0x8c5073!==_0x927377['toVersion']){const _0x191c1d=_0x8c5073-0x1,_0xd3d2c0=this['_source']['history']['getOperation'](_0x191c1d);_0x5ed51a['createdAt']=_0xd3d2c0&&_0xd3d2c0['createdAt']||new Date();}if(this['_loadedStateData']&&_0x1fe68f===this['_loadedStateData']['fromVersion']){for(const _0x264bd0 of this['_loadedStateData']['authors'])_0x5ed51a['authorsIds']['includes'](_0x264bd0['id'])||_0x5ed51a['authorsIds']['push'](_0x264bd0['id']);}return _0x5ed51a;}['_loadRevisionData'](_0x4745c9){if(!_0x4745c9||_0x4745c9['diffData'])return Promise['resolve']();{const _0x7eff2c=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x7eff2c,'revisionId':_0x4745c9['id']})['then'](_0x43fba0=>{_0x4745c9['diffData']=_0x43fba0['diffData'];});}}['_bufferUpdate'](_0x4d7d21,_0x55aa58,_0x4b005f){if(this['_bufferedUpdates']['has'](_0x4d7d21)){const _0x64f346=this['_bufferedUpdates']['get'](_0x4d7d21);_0x55aa58=_0x4b005f?{..._0x64f346,..._0x55aa58}:{..._0x55aa58,..._0x64f346};}this['_bufferedUpdates']['set'](_0x4d7d21,_0x55aa58);}['_getFromVersion'](_0x39884d){const _0x1ebce3=this['repository']['getRevisions']();_0x1ebce3['reverse'](),_0x1ebce3['shift']();const _0x59c90c=_0x1ebce3['find'](_0xbe22ca=>_0xbe22ca['toVersion']<=_0x39884d)['toVersion'];return _0x59c90c<this['_startingVersion']?this['_startingVersion']:_0x59c90c;}['_createInitialRevision'](_0x1b250f){const _0x315382=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x315382)this['_initialRevisionId']=_0x315382['id'];else{const _0x16bf7c=!this['editor']['model']['document']['roots']['find'](_0xdeaac1=>this['editor']['model']['hasContent'](_0xdeaac1)),_0x2c79b7=this['editor']['plugins']['get']('Users')['me']['id'],_0x29bb53=m(this['editor']['locale'],_0x16bf7c?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x1b250f,'to':_0x1b250f,'id':this['_initialRevisionId'],'name':_0x29bb53,'creatorId':_0x2c79b7});}}['_createCurrentRevision'](_0x1b1af5){const _0x2e04e7=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x2e04e7),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1b1af5,'to':_0x1b1af5,'id':_0x2e04e7,'name':'','creatorId':null}));}['_makeRevision']({name:_0x55398d,from:_0x3a7829,to:_0x419fe4,creatorId:_0x151157,id:_0x697ea2}){const _0xb0daed=this['buildRevisionData']({'from':_0x3a7829,'to':_0x419fe4});_0xb0daed['name']=_0x55398d,_0xb0daed['creatorId']=_0x151157,_0xb0daed['id']=_0x697ea2;const _0x3ef9f4=this['addRevisionData'](_0xb0daed);return this['adapter']&&this['_bufferUpdate'](_0xb0daed['id'],_0xb0daed,!0x0),_0x3ef9f4;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x56e24d){return(_0x56e24d=_0x56e24d['filter'](_0x7fde85=>!_0x7fde85['name']||'revision-start'!==_0x7fde85['name']&&'revision-end'!==_0x7fde85['name']))['forEach'](_0x5d3671=>{'string'!=typeof _0x5d3671&&(_0x5d3671['children']=this['_removeRevisionMarkers'](_0x5d3671['children']),_0x5d3671['attributes']=_0x5d3671['attributes']['filter'](_0x55be79=>!_0x55be79[0x0]['startsWith']('data-revision-')));}),_0x56e24d;}}function C(_0xa7a634,_0x2045bc){const _0x23e953=_0x2045bc['editing']['view']['document'];if('string'==typeof _0xa7a634)return new _0x263cf6(_0x23e953,_0xa7a634);{const _0x488dc3=_0xa7a634['children']['map'](_0x387ae7=>C(_0x387ae7,_0x2045bc));return new(P[_0xa7a634['type']]||_0x2b857d)(_0x23e953,_0xa7a634['name'],_0xa7a634['attributes'],_0x488dc3);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x482a3c){this['editor']=_0x482a3c,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'](_0x2598f5){this['source']=_0x2598f5;const _0x4dba30=new Map(),_0x3c05e4=new Map(),_0x430ad3=this['editor']['model']['document']['roots']['map'](_0x33e3a5=>_0x33e3a5['rootName']);for(const _0x1e53a8 of _0x430ad3){const _0x53afb0=this['editor']['model']['document']['getRoot'](_0x1e53a8),_0x34130f=T(_0x53afb0);_0x4dba30['set'](_0x1e53a8,_0x34130f),_0x3c05e4['set'](_0x1e53a8,Object['fromEntries'](_0x53afb0['getAttributes']()));}const _0x1cfcb0=Array['from'](this['editor']['model']['markers'])['map'](_0x11b4ce=>[_0x11b4ce['name'],_0x11b4ce['getRange']()]),_0x5cf57f=this['source']['version'];this['_saveMetaData'](_0x5cf57f,_0x4dba30,_0x1cfcb0,_0x3c05e4),this['_startingRevisionId']=this['_revisionId'];const _0x101e40=new Map(),_0x4c8640=new Map();for(const _0x2ba6db of _0x430ad3){const _0x95b473=F(_0x2ba6db);_0x101e40['set'](_0x2ba6db,_0x95b473),_0x4c8640['set'](_0x2ba6db,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x101e40,[],_0x4c8640);}['getData'](_0x2ee8c3,_0x5c15b7){if(this['_lastFrom']===_0x2ee8c3&&this['_lastTo']<=_0x5c15b7)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x5c15b7,!0x0);else{if(!this['_savedMetaData']['has'](_0x2ee8c3)){const _0x5b8552=this['_getPreviousFrom'](_0x2ee8c3);this['_calculateMetaData'](_0x5b8552,_0x2ee8c3,!0x1);}this['_calculateMetaData'](_0x2ee8c3,_0x5c15b7,!0x0);}return this['_lastFrom']=_0x2ee8c3,this['_lastTo']=_0x5c15b7,this['_getState']();}['loadState'](_0x2b3bb4){this['_reset'](),this['_lastFrom']=_0x2b3bb4['fromVersion'],this['_lastTo']=_0x2b3bb4['toVersion'];for(const _0x20a5c9 in _0x2b3bb4['diffData']){const _0x49821e=_0x2b3bb4['diffData'][_0x20a5c9]['attachChange'],_0x7be4ef=_0x2fbfef(_0x2b3bb4['diffData'][_0x20a5c9]['attributesBefore'])||{},_0x4c428f=this['_makeModelFromViewString'](_0x2b3bb4['diffData'][_0x20a5c9]['deletions']);_0x4c428f['rootName']=_0x20a5c9,_0x4c428f['_isAttached']=!_0x49821e||!_0x49821e['isAttached'],_0x4c428f['isAttached']=()=>_0x4c428f['_isAttached'],this['_baseRoots']['set'](_0x20a5c9,_0x4c428f),this['_baseRootsAttributes']['set'](_0x20a5c9,_0x7be4ef),_0x49821e&&this['_touchedRoots']['set'](_0x20a5c9,_0x49821e);const _0x548ae4=this['_makeIdsRoot'](_0x4c428f);this['_baseIdsRoots']['set'](_0x20a5c9,_0x548ae4);for(const [_0x6e5402,_0x5b2ab6]of _0x4c428f['markers']){if(!_0x6e5402['startsWith']('revision:'))continue;const _0x142b82=_0x6e5402['split'](':')[0x2];for(const _0xacff47 of _0x5b2ab6['getWalker']({'singleCharacters':!0x0})){const _0x41f71a=this['_getVidAttributeName'](_0xacff47),_0x591c20='elementEnd'==_0xacff47['type']?_0xacff47['previousPosition']['path']['slice'](0x0,-0x1):_0xacff47['previousPosition']['path'],_0x31e01a=_0x548ae4['getNodeByPath'](_0x591c20)['getAttribute'](_0x41f71a);this['_touched']['set'](_0x31e01a,{'userId':_0x142b82});}}}this['_startingRevisionId']=this['_revisionId'];const _0x3ddea9=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x2171a5=>!this['_touched']['has'](_0x2171a5));let _0x135c84=0x0;const _0xc22a50=new Map();for(const _0x48c40b in _0x2b3bb4['diffData']){const _0x160c59=_0x2b3bb4['diffData'][_0x48c40b]['attachChange'],_0x2b88a2=_0x2fbfef(_0x2b3bb4['diffData'][_0x48c40b]['attributesAfter'])||{},_0x12d559=this['_makeModelFromViewString'](_0x2b3bb4['diffData'][_0x48c40b]['insertions']);_0x12d559['rootName']=_0x48c40b,_0x12d559['_isAttached']=!_0x160c59||_0x160c59['isAttached'],_0x12d559['isAttached']=()=>_0x12d559['_isAttached'],this['_diffRoots']['set'](_0x48c40b,_0x12d559),this['_diffRootsAttributes']['set'](_0x48c40b,_0x2b88a2);const _0x1318f4=this['_makeIdsRoot'](_0x12d559,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x48c40b,_0x1318f4),_0xc22a50['set'](_0x48c40b,_0x12d559['isAttached']()?_0x2b88a2:{});for(const [_0x535b4c,_0xd68cc0]of _0x12d559['markers']){if(!_0x535b4c['startsWith']('revision:'))continue;const _0x363d5f=_0x535b4c['split'](':')[0x2];for(const _0x449315 of _0xd68cc0['getWalker']({'singleCharacters':!0x0})){const _0x32365d=this['_getVidAttributeName'](_0x449315),_0x2f523a=this['_revisionId']++,_0x1bcf58='elementEnd'==_0x449315['type']?_0x449315['previousPosition']['path']['slice'](0x0,-0x1):_0x449315['previousPosition']['path'];_0x1318f4['getNodeByPath'](_0x1bcf58)['_setAttribute'](_0x32365d,_0x2f523a),this['_touched']['set'](_0x2f523a,{'userId':_0x363d5f});}}for(const _0x21cdf8 of this['editor']['model']['createRangeIn'](_0x12d559)['getWalker']({'singleCharacters':!0x0})){const _0xa2c9bc=this['_getVidAttributeName'](_0x21cdf8),_0x2ce8a0='elementEnd'==_0x21cdf8['type']?_0x21cdf8['previousPosition']['path']['slice'](0x0,-0x1):_0x21cdf8['previousPosition']['path'],_0x38e120=_0x1318f4['getNodeByPath'](_0x2ce8a0);_0x38e120['getAttribute'](_0xa2c9bc)>0x0||_0x38e120['_setAttribute'](_0xa2c9bc,_0x3ddea9[_0x135c84++]);}for(const [_0x4fd0a5,_0x212dfc]of _0x12d559['markers'])_0x4fd0a5['startsWith']('revision:')||this['_markers']['set'](_0x4fd0a5,_0x212dfc);}const _0x99a08e=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x99a08e),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x99a08e,0x1));const _0x1881a8=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x1881a8),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1881a8,0x1));const _0x4370f2=Array['from'](this['_diffRoots'])['map'](([_0x576403,_0xe23d6e])=>[_0x576403,T(_0xe23d6e)]);this['_saveMetaData'](this['_lastTo'],_0x4370f2,this['_markers'],_0xc22a50);}['_makeModelFromViewString'](_0x1b4379){const _0x46011a=JSON['parse'](_0x1b4379),_0x38af12=this['editor']['editing']['view']['document'],_0x48b2f8=new _0x836cbc(_0x38af12,_0x46011a['map'](_0x2c816c=>C(_0x2c816c,this['editor'])));return this['editor']['data']['toModel'](_0x48b2f8);}['_saveMetaData'](_0x5e6303,_0x3f05fc,_0x376cea,_0x437b10){const _0x164b8f=new Map(_0x3f05fc),_0xc9ea2b=new Map(_0x2fbfef(_0x437b10)),_0x14576e=new Map();for(const [_0x577c68,_0x13137f]of _0x376cea)_0x14576e['set'](_0x577c68,{'start':_0x13137f['start']['clone'](),'end':_0x13137f['end']['clone'](),'rootName':_0x13137f['root']['rootName']});this['_savedMetaData']['set'](_0x5e6303,{'roots':_0x164b8f,'markers':_0x14576e,'rootsAttributes':_0xc9ea2b});}['_removeMetaData'](_0x5c943c){this['_savedMetaData']['delete'](_0x5c943c);}['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'](_0x5c1760,_0x4cf3cb=null){let _0x291de1=null;_0x5c1760['is']('documentFragment')||(_0x291de1=new ft(_0x5c1760['name'],{'vid_start':null===_0x4cf3cb?this['_revisionId']++:_0x4cf3cb++}));const _0x2afa7c=[];for(const _0x34fe0a of _0x5c1760['getChildren']())if(_0x34fe0a['is']('element')){_0x2afa7c['push'](this['_makeIdsRoot'](_0x34fe0a,_0x4cf3cb));const _0x349f2c=_0x2afa7c[_0x2afa7c['length']-0x1];null!==_0x4cf3cb&&(_0x4cf3cb=_0x349f2c['is']('element','$text')?_0x349f2c['getAttribute']('vid')+0x1:_0x349f2c['getAttribute']('vid_end')+0x1);}else{for(let _0x4144b4=0x0;_0x4144b4<_0x34fe0a['offsetSize'];_0x4144b4++)_0x2afa7c['push'](new ft('$text',{'vid':null===_0x4cf3cb?this['_revisionId']++:_0x4cf3cb++}));}if(_0x5c1760['is']('documentFragment')){const _0x10596c=F(_0x5c1760['rootName']);return _0x10596c['_insertChild'](0x0,_0x2afa7c),_0x10596c;}return _0x291de1['_setAttribute']('vid_end',null===_0x4cf3cb?this['_revisionId']++:_0x4cf3cb++),_0x291de1['_insertChild'](0x0,_0x2afa7c),_0x291de1;}['_calculateMetaData'](_0x4ce466,_0x190fb1,_0x39e0dd){this['_reset']();const {roots:_0x2e4a5c,markers:_0x12c7d2,rootsAttributes:_0x89f474}=this['_savedMetaData']['get'](_0x4ce466);this['_baseRoots']=new Map(_0x2e4a5c),this['_baseRootsAttributes']=new Map(_0x2fbfef(_0x89f474));for(const [_0x167303,_0x476138]of this['_baseRoots'])if('$graveyard'!==_0x167303&&(this['_diffRoots']['set'](_0x167303,T(_0x476138)),this['_diffRootsAttributes']=new Map(_0x2fbfef(_0x89f474)),_0x39e0dd)){const _0x32099f=this['_revisionId'];this['_idsRoots']['set'](_0x167303,this['_makeIdsRoot'](_0x476138)),this['_baseIdsRoots']['set'](_0x167303,this['_makeIdsRoot'](_0x476138,_0x32099f));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x39e0dd&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x1be912,_0x446ce0]of _0x12c7d2){const _0x48de42=this['_baseRoots']['get'](_0x446ce0['rootName']),_0x53a8eb=this['_diffRoots']['get'](_0x446ce0['rootName']),_0x3d5818=new vt(this['_fixPosition'](_0x446ce0['start'],_0x48de42),this['_fixPosition'](_0x446ce0['end'],_0x48de42)),_0x16bef7=this['_fixRange'](_0x3d5818,_0x53a8eb);_0x48de42['markers']['set'](_0x1be912,_0x3d5818),this['_markers']['set'](_0x1be912,_0x16bef7);}this['_applyOperations'](_0x4ce466,_0x190fb1,_0x39e0dd);}['_applyOperations'](_0x4dd1ff,_0x4cb7cd,_0x486b8d){for(const _0x445ac8 of this['source']['getOperations'](_0x4dd1ff,_0x4cb7cd))this['_handleOperation'](_0x445ac8,_0x486b8d);for(const _0x1e7068 of this['_diffRoots']['values']())_0x1e7068['markers']['clear']();for(const [_0xa47bca,_0x288cc9]of this['_markers']){this['_diffRoots']['get'](_0x288cc9['root']['rootName'])['markers']['set'](_0xa47bca,_0x288cc9['clone']());}const _0x50ef09=new Map(),_0x35c761=new Map();for(const [_0x438481,_0x2abe59]of this['_diffRoots'])_0x50ef09['set'](_0x438481,T(_0x2abe59)),_0x35c761['set'](_0x438481,this['_diffRootsAttributes']['get'](_0x438481));this['_saveMetaData'](_0x4cb7cd,_0x50ef09,this['_markers'],_0x35c761);}['_getPreviousFrom'](_0x40f884){const _0x5aa647=Array['from'](this['_savedMetaData']['keys']());_0x5aa647['sort']((_0xada8c1,_0x1f9601)=>_0xada8c1-_0x1f9601),_0x5aa647['reverse']();for(const _0x19eee7 of _0x5aa647)if(_0x19eee7<_0x40f884)return _0x19eee7;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x150c19,_0x2f5fb3){const _0x3a3845=Array['from'](_0x2f5fb3['markers'])['map'](([_0x1cbe0d,_0x422aae])=>[_0x1cbe0d,this['_fixRange'](_0x422aae,_0x150c19)]);_0x150c19['markers']=new Map(_0x3a3845);}['_transformMarkers'](_0x1eac37){for(const _0x474f4b of this['_markers']['values']()){const _0x4552e3=_0x474f4b['getTransformedByOperation'](_0x1eac37),_0x5df6a7=vt['_createFromRanges'](_0x4552e3);_0x474f4b['start']=_0x5df6a7['start'],_0x474f4b['end']=_0x5df6a7['end'];}}['_handleOperation'](_0x23c6ff,_0x45e335){if('addRoot'!=_0x23c6ff['type']&&'detachRoot'!=_0x23c6ff['type']){if('insert'==_0x23c6ff['type']){const _0x11d477=_0x23c6ff['position']['root']['rootName'];this['_diffRoots']['has'](_0x11d477)||(this['_diffRoots']['set'](_0x11d477,F(_0x11d477,!0x0)),this['_diffRootsAttributes']['set'](_0x11d477,{}),_0x45e335&&this['_idsRoots']['set'](_0x11d477,F(_0x11d477,!0x0)));}else{if('addRootAttribute'==_0x23c6ff['type']||'removeRootAttribute'==_0x23c6ff['type']||'changeRootAttribute'==_0x23c6ff['type'])return void this['_handleRootAttributeOperation'](_0x23c6ff);'marker'==_0x23c6ff['type']&&this['_handleMarkerOperation'](_0x23c6ff);}if('marker'!==_0x23c6ff['type']){const _0xdffe60=this['_cloneOperation'](_0x23c6ff,this['_diffRoots']);_0xdffe60['_execute'](),this['_transformMarkers'](_0xdffe60);}if(_0x45e335)switch(_0x23c6ff['type']){case'insert':this['_handleInsertOperation'](_0x23c6ff);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x23c6ff);break;case'merge':this['_handleMergeOperation'](_0x23c6ff);break;case'split':this['_handleSplitOperation'](_0x23c6ff);}}else this['_handleRootOperation'](_0x23c6ff,_0x45e335);}['_cloneOperation'](_0x6e0768,_0x5d6a38){const _0xfb9be1=_0x6e0768['clone']();return _0xfb9be1['_authorId']=_0x6e0768['_authorId'],this['_fixOperation'](_0xfb9be1,_0x5d6a38),_0xfb9be1;}['_getBaseVids'](_0x3d48a6){return _0x3d48a6['map'](_0x2ad389=>{const _0x12852f=this['_getVidAttributeName'](_0x2ad389);return Number(_0x2ad389['item']['getAttribute'](_0x12852f));});}['_generateTape'](_0x403685,_0x3d726b){if(_0x403685['is']('element','$text'))_0x3d726b['push']({'item':_0x403685,'type':'text'});else{_0x403685['is']('element')&&_0x3d726b['push']({'item':_0x403685,'type':'elementStart'});for(const _0x167048 of _0x403685['getChildren']())this['_generateTape'](_0x167048,_0x3d726b);_0x403685['is']('element')&&_0x3d726b['push']({'item':_0x403685,'type':'elementEnd'});}return _0x3d726b;}['_getState'](){const _0x6056ee=new Map(this['_touched']),_0x3c14a8=new Map(_0x6056ee),_0x1d0c0c=new Map(),_0x4ac0b5={'insertions':{},'deletions':{}},_0x1d113e={'insertions':{},'deletions':{}},_0x39cc65=new Map(),_0x41266c=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x41266c['delete']('$graveyard');for(const _0xcaf507 of _0x41266c){const _0x21b873=this['_diffRoots']['get'](_0xcaf507)||F(_0xcaf507,!0x1),_0x581245=this['_baseRoots']['get'](_0xcaf507)||F(_0xcaf507,!0x1);_0x21b873['isAttached']()||_0x581245['isAttached']()?(_0x4ac0b5['insertions'][_0xcaf507]=T(_0x21b873),_0x4ac0b5['deletions'][_0xcaf507]=T(_0x581245),this['_copyMarkers'](_0x4ac0b5['deletions'][_0xcaf507],_0x581245),this['_copyMarkers'](_0x4ac0b5['insertions'][_0xcaf507],_0x21b873),_0x1d113e['insertions'][_0xcaf507]=this['_generateTape'](this['_idsRoots']['get'](_0xcaf507),[]),_0x1d113e['deletions'][_0xcaf507]=this['_generateTape'](this['_baseIdsRoots']['get'](_0xcaf507)||F(_0xcaf507,!0x1),[])):_0x41266c['delete'](_0xcaf507);}for(const _0x3af84e of _0x41266c){const _0x2190de=_0x1d113e['insertions'][_0x3af84e];for(const _0x473b2f of _0x2190de){const _0x52546d=this['_getVidAttributeName'](_0x473b2f),_0x4b467b=_0x473b2f['item']['getAttribute'](_0x52546d);_0x3c14a8['delete'](_0x4b467b),_0x4b467b>=this['_startingRevisionId']&&_0x1d0c0c['set'](_0x4b467b,_0x6056ee['get'](_0x4b467b));}}for(const _0x2f24a6 of _0x41266c){const _0x1581a3=_0x1d113e['insertions'][_0x2f24a6],_0x564a6b=this['_getBaseVids'](_0x1d113e['deletions'][_0x2f24a6]);let _0x402786=0x0;for(const _0x371c0c of _0x1581a3){const _0x553f16=this['_getVidAttributeName'](_0x371c0c),_0x1e6a83=_0x371c0c['item']['getAttribute'](_0x553f16);if(!_0x1d0c0c['has'](_0x1e6a83)&&!_0x39cc65['has'](_0x1e6a83)){if(_0x3c14a8['has'](_0x1e6a83))_0x402786++;else{if(_0x1e6a83!=_0x564a6b[_0x402786]){const _0xf2aff2=_0x6056ee['get'](_0x1e6a83)||_0x6056ee['get'](_0x564a6b[_0x402786]);for(;_0x1e6a83!=_0x564a6b[_0x402786];)_0x3c14a8['has'](_0x564a6b[_0x402786])||(_0x39cc65['set'](_0x564a6b[_0x402786],_0xf2aff2),_0x6056ee['set'](_0x564a6b[_0x402786],_0xf2aff2)),_0x402786++;}_0x402786++;}}}}for(const _0x1d2c82 of _0x41266c){const _0x1e106f=_0x1d113e['insertions'][_0x1d2c82];for(const _0x2ff6a4 of _0x1e106f){const _0x1d64a2=this['_getVidAttributeName'](_0x2ff6a4),_0x26cfd6=_0x2ff6a4['item']['getAttribute'](_0x1d64a2);if(_0x39cc65['has'](_0x26cfd6)){const _0x4490d7=_0x39cc65['get'](_0x26cfd6);_0x3c14a8['has'](_0x26cfd6)||_0x3c14a8['set'](_0x26cfd6,{..._0x4490d7}),_0x1d0c0c['set'](_0x26cfd6,{..._0x4490d7});}}}for(const _0x5d0d46 of _0x3c14a8['keys']())_0x5d0d46>=this['_startingRevisionId']&&_0x3c14a8['delete'](_0x5d0d46);const _0x1378be=new Map();for(const _0x1844f2 of _0x41266c){let _0x12c4c3=_0x1d113e['insertions'][_0x1844f2];for(const _0x4b4288 of _0x12c4c3)if(_0x4b4288['item']['is']('element','tableCell')){const _0x358d0c=this['_getVidAttributeName'](_0x4b4288),_0x445478=_0x4b4288['item']['getAttribute'](_0x358d0c);if(_0x1d0c0c['has'](_0x445478)){const _0x106755=_0x4b4288['item']['parent']['parent']['getAttribute']('vid_start'),_0x550d6b=_0x1378be['get'](_0x106755)||new Set();_0x550d6b['add'](_0x1d0c0c['get'](_0x445478)['userId']),_0x1378be['set'](_0x106755,_0x550d6b);}}_0x12c4c3=_0x1d113e['deletions'][_0x1844f2];for(const _0x1469da of _0x12c4c3)if(_0x1469da['item']['is']('element','tableCell')){const _0x15c490=this['_getVidAttributeName'](_0x1469da),_0x3c0fd0=_0x1469da['item']['getAttribute'](_0x15c490);if(_0x3c14a8['has'](_0x3c0fd0)){const _0x39ae24=_0x1469da['item']['parent']['parent']['getAttribute']('vid_start'),_0xa7df61=_0x1378be['get'](_0x39ae24)||new Set();_0xa7df61['add'](_0x3c14a8['get'](_0x3c0fd0)['userId']),_0x1378be['set'](_0x39ae24,_0xa7df61);}}for(const _0x498521 of _0x1378be['keys']())(_0x1d0c0c['has'](_0x498521)||_0x3c14a8['has'](_0x498521))&&_0x1378be['delete'](_0x498521);}for(const _0x325ba5 of _0x41266c){const _0xdc15be=_0x1d113e['insertions'][_0x325ba5];let _0x27d8be=null,_0x30244d=null;for(const _0x5ce60d of _0xdc15be){const _0x3ea642=this['_getVidAttributeName'](_0x5ce60d),_0x2054d3=_0x5ce60d['item']['getAttribute'](_0x3ea642),_0x507846=_0x1378be['get'](_0x2054d3);_0x507846&&'elementStart'==_0x5ce60d['type']&&(_0x27d8be=Array['from'](_0x507846)[0x0],_0x30244d=_0x5ce60d['item']['getAttribute']('vid_end')),_0x27d8be&&(_0x3c14a8['set'](_0x2054d3,{'userId':_0x27d8be}),_0x1d0c0c['set'](_0x2054d3,{'userId':_0x27d8be})),_0x2054d3==_0x30244d&&(_0x27d8be=null,_0x30244d=null);}}const _0x9e3d07={},_0x56475f=new Set();for(const _0x4211b7 of _0x41266c){const _0x285d8b=_0x4ac0b5['deletions'][_0x4211b7],_0x39dc71=_0x4ac0b5['insertions'][_0x4211b7];for(const {userId:_0x58a620}of this['_touchedMarkers']['values']())null!==_0x58a620&&_0x56475f['add'](_0x58a620);for(const {userId:_0xedeb3f}of this['_touchedRoots']['values']())null!==_0xedeb3f&&_0x56475f['add'](_0xedeb3f);this['_markChanges'](_0x39dc71,_0x1d113e['insertions'][_0x4211b7],_0x1d0c0c,'insertion',_0x56475f),this['_markChanges'](_0x285d8b,_0x1d113e['deletions'][_0x4211b7],_0x3c14a8,'deletion',_0x56475f),_0x9e3d07[_0x4211b7]={'insertions':this['_prepareViewToSave'](_0x39dc71),'deletions':this['_prepareViewToSave'](_0x285d8b),'attachChange':this['_touchedRoots']['get'](_0x4211b7)||null,'attributesBefore':_0x2fbfef(this['_baseRootsAttributes']['get'](_0x4211b7))||{},'attributesAfter':_0x2fbfef(this['_diffRootsAttributes']['get'](_0x4211b7))};}return{'diffData':_0x9e3d07,'authorsIds':Array['from'](_0x56475f)};}['_processRootBeforeSave'](_0x423e52){for(const [,_0x45c3b3]of _0x423e52['markers']){const _0x2a01d5=_0x45c3b3['start']['getAncestors']()['filter'](_0x46bc95=>'tableCell'==_0x46bc95['name']);for(const _0x295b4e of _0x2a01d5)0x1==_0x295b4e['childCount']&&_0x295b4e['getChild'](0x0)['is']('element','paragraph')&&_0x295b4e['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x4da1ea){this['_processRootBeforeSave'](_0x4da1ea);const _0x63170b=this['editor']['data']['toView'](_0x4da1ea,{}),_0x367618=Array['from'](_0x63170b['getChildren']())['map'](_0x290f72=>this['_getViewJson'](_0x290f72));return JSON['stringify'](_0x367618);}['_getViewJson'](_0x5cddff){if(_0x5cddff['is']('$text'))return _0x5cddff['data'];{const _0x4da74a=_0x5cddff;return{'type':Object['keys'](P)['find'](_0x3acdfb=>_0x5cddff instanceof P[_0x3acdfb]),'name':_0x4da74a['name'],'attributes':Array['from'](_0x4da74a['getAttributes']()),'children':Array['from'](_0x4da74a['getChildren']())['map'](_0x405dde=>this['_getViewJson'](_0x405dde))};}}['_markChanges'](_0x248a0e,_0x548572,_0x488ca0,_0x1a85e9,_0x2b2992){let _0xa22b48=null,_0x16080f=null,_0x37e94d=0x0;const _0x5e7a8c=this['editor']['model'];for(let _0x155bf7=0x0;_0x155bf7<_0x548572['length'];_0x155bf7++){const _0x4375b3=this['_getVidAttributeName'](_0x548572[_0x155bf7]),_0x8885e=_0x548572[_0x155bf7]['item']['getAttribute'](_0x4375b3),_0x29dd69=_0x488ca0['get'](_0x8885e),_0x421140=_0x155bf7==_0x548572['length']-0x1;(!_0xa22b48&&_0x29dd69&&(_0xa22b48=_0x29dd69,_0x16080f=_0x548572[_0x155bf7]),_0xa22b48&&(!_0x29dd69||_0x29dd69['userId']!=_0xa22b48['userId']))&&(_0x31aabe(_0x29dd69,B(_0x16080f,_0x248a0e,_0x5e7a8c),B(_0x548572[_0x155bf7],_0x248a0e,_0x5e7a8c)),_0xa22b48=_0x29dd69||null,_0x16080f=_0x29dd69?_0x548572[_0x155bf7]:null),_0xa22b48&&_0x421140&&_0x31aabe(_0x29dd69,B(_0x16080f,_0x248a0e,_0x5e7a8c),J(_0x548572[_0x155bf7],_0x248a0e,_0x5e7a8c));}function _0x31aabe(_0x287ca0,_0x23d4bc,_0x559641){const _0x1de61=_0xa22b48['userId'],_0x36640d='revision:'+_0x1a85e9+':'+_0x1de61+':'+_0x37e94d++,_0x1d81e6=_0x5e7a8c['createRange'](_0x23d4bc,_0x559641);_0x248a0e['markers']['set'](_0x36640d,_0x1d81e6),null!==_0x1de61&&_0x2b2992['add'](_0x1de61);}}['_getVidAttributeName'](_0x5a7f4c){switch(_0x5a7f4c['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x5dfde6,_0x2efb26){_0x5dfde6['baseVersion']=null;for(const _0x3e35ec in _0x5dfde6){const _0xd32d55=_0x5dfde6[_0x3e35ec];if(_0xd32d55 instanceof gt){const _0x5ad35d=_0x2efb26['get'](_0xd32d55['root']['rootName']);_0x5dfde6[_0x3e35ec]=this['_fixPosition'](_0xd32d55,_0x5ad35d);}if(_0xd32d55 instanceof vt){const _0x41a1f6=_0x2efb26['get'](_0xd32d55['root']['rootName']);_0x5dfde6[_0x3e35ec]=this['_fixRange'](_0xd32d55,_0x41a1f6);}'root'===_0x3e35ec&&(_0x5dfde6['root']=_0x2efb26['get'](_0x5dfde6['root']['rootName']));}}['_fixRange'](_0x146f4b,_0x18a8ac){return this['editor']['model']['createRange'](this['_fixPosition'](_0x146f4b['start'],_0x18a8ac),this['_fixPosition'](_0x146f4b['end'],_0x18a8ac));}['_fixPosition'](_0x28c624,_0x1417db){return this['editor']['model']['createPositionFromPath'](_0x1417db,_0x28c624['path'],_0x28c624['stickiness']);}['_handleInsertOperation'](_0x10f0df){const _0x1eb274=this['_idsRoots']['get'](_0x10f0df['position']['root']['rootName']),_0x404a14=this['_fixPosition'](_0x10f0df['position'],_0x1eb274),_0x3609a1=null===_0x10f0df['_authorId']?null:_0x10f0df['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x115210=_0x404a14['parent'],_0x3db07f=this['_revisionId'],_0x1ee527=[];for(const _0x5c57cf of _0x10f0df['nodes'])if(_0x5c57cf['is']('element'))_0x1ee527['push'](this['_makeIdsRoot'](_0x5c57cf));else{for(let _0x4e2724=0x0;_0x4e2724<_0x5c57cf['offsetSize'];_0x4e2724++)_0x1ee527['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x313a4a=this['_revisionId'];for(let _0x46ca31=_0x3db07f;_0x46ca31<_0x313a4a;_0x46ca31++)this['_touched']['set'](_0x46ca31,{'userId':_0x3609a1});_0x115210['_insertChild'](_0x404a14['offset'],_0x1ee527);}['_handleMoveOperation'](_0x295989){(_0x295989=this['_cloneOperation'](_0x295989,this['_idsRoots']))['_execute']();const _0x3a98ee=null===_0x295989['_authorId']?null:_0x295989['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x38bf48=_0x295989['getMovedRangeStart'](),_0x3b8a8c=_0x38bf48['parent'],_0x10037b=_0x38bf48['offset'];!function _0xd089(_0xf6c9bf,_0x4a4d7f,_0x433963,_0x4d695f){for(let _0x25b286=_0x433963;_0x25b286<_0x4d695f;_0x25b286++){const _0x1b2d29=_0x4a4d7f['getChild'](_0x25b286);_0x1b2d29['is']('element','$text')?_0xf6c9bf['set'](_0x1b2d29['getAttribute']('vid'),{'userId':_0x3a98ee}):(_0xf6c9bf['set'](_0x1b2d29['getAttribute']('vid_start'),{'userId':_0x3a98ee}),_0xd089(_0xf6c9bf,_0x1b2d29,0x0,_0x1b2d29['childCount']),_0xf6c9bf['set'](_0x1b2d29['getAttribute']('vid_end'),{'userId':_0x3a98ee}));}}(this['_touched'],_0x3b8a8c,_0x10037b,_0x10037b+_0x295989['howMany']);}['_handleMergeOperation'](_0x31118c){const _0x299418=null===(_0x31118c=this['_cloneOperation'](_0x31118c,this['_idsRoots']))['_authorId']?null:_0x31118c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xf85761=_0x31118c['targetPosition']['parent'],_0x2cbbcd=_0x31118c['sourcePosition']['parent'],_0x2f11d0=_0xf85761['getAttribute']('vid_end'),_0x3935c9=_0x2cbbcd['getAttribute']('vid_start');_0xf85761['_setAttribute']('vid_end',_0x2cbbcd['getAttribute']('vid_end')),_0x2cbbcd['_setAttribute']('vid_end',_0x2f11d0),this['_touched']['set'](_0x3935c9,{'userId':_0x299418}),this['_touched']['set'](_0x2f11d0,{'userId':_0x299418}),_0x31118c['_execute']();}['_handleSplitOperation'](_0xcaf35){const _0x13b778=null===(_0xcaf35=this['_cloneOperation'](_0xcaf35,this['_idsRoots']))['_authorId']?null:_0xcaf35['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1a9ecc=_0xcaf35['graveyardPosition'],_0x536b45=_0xcaf35['splitPosition']['parent'];_0xcaf35['_execute']();const _0x44d845=_0x536b45['getAttribute']('vid_end'),_0x4999f6=_0xcaf35['insertionPosition']['nodeAfter'];if(_0x1a9ecc){const _0xe8b65e=_0x4999f6['getAttribute']('vid_end'),_0x175033=_0x536b45['getAttribute']('vid_end');_0x536b45['_setAttribute']('vid_end',_0xe8b65e),_0x4999f6['_setAttribute']('vid_end',_0x175033),this['_touched']['set'](_0x536b45['getAttribute']('vid_end'),{'userId':_0x13b778}),this['_touched']['set'](_0x4999f6['getAttribute']('vid_start'),{'userId':_0x13b778});}else{const _0x37f1f4=this['_revisionId']++,_0x658f6f=this['_revisionId']++;_0x536b45['_setAttribute']('vid_end',_0x37f1f4),_0x4999f6['_setAttribute']('vid_start',_0x658f6f),_0x4999f6['_setAttribute']('vid_end',_0x44d845),this['_touched']['set'](_0x37f1f4,{'userId':_0x13b778}),this['_touched']['set'](_0x658f6f,{'userId':_0x13b778});}}['_handleMarkerOperation'](_0x39e5b4){if(!_0x39e5b4['affectsData'])return;const _0x490e8d=(_0x39e5b4=this['_cloneOperation'](_0x39e5b4,this['_diffRoots']))['oldRange']?_0x39e5b4['oldRange']['root']:null,_0x3c679d=_0x39e5b4['newRange']?_0x39e5b4['newRange']['root']:null;_0x490e8d&&this['_markers']['delete'](_0x39e5b4['name']),_0x3c679d&&this['_markers']['set'](_0x39e5b4['name'],_0x39e5b4['newRange']['clone']());const _0x3ee29d=null===_0x39e5b4['_authorId']?null:_0x39e5b4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5a130b=_0x39e5b4['name'];if(!this['_touchedMarkers']['has'](_0x5a130b))return void this['_touchedMarkers']['set'](_0x5a130b,{'range':_0x39e5b4['oldRange'],'userId':_0x3ee29d});const _0x316b3b=this['_touchedMarkers']['get'](_0x5a130b),_0x4fc3be=_0x316b3b['range'],_0x4ee15b=_0x39e5b4['newRange'];null==_0x4fc3be&&null==_0x4ee15b||_0x4fc3be&&_0x4ee15b&&_0x4fc3be['isEqual'](_0x4ee15b)?this['_touchedMarkers']['delete'](_0x39e5b4['name']):_0x316b3b['userId']=_0x3ee29d;}['_handleRootOperation'](_0x1b5750,_0x5e727f){this['_diffRoots']['has'](_0x1b5750['rootName'])?this['_diffRoots']['get'](_0x1b5750['rootName'])['_isAttached']=_0x1b5750['isAdd']:(this['_diffRoots']['set'](_0x1b5750['rootName'],F(_0x1b5750['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1b5750['rootName'],{}),_0x5e727f&&this['_idsRoots']['set'](_0x1b5750['rootName'],F(_0x1b5750['rootName'],!0x0)));const _0x1c5170=null===_0x1b5750['_authorId']?null:_0x1b5750['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x55b7db=this['_touchedRoots']['get'](_0x1b5750['rootName']);_0x55b7db&&_0x55b7db['userId']===_0x1c5170?this['_touchedRoots']['delete'](_0x1b5750['rootName']):this['_touchedRoots']['set'](_0x1b5750['rootName'],{'userId':_0x1c5170,'isAttached':_0x1b5750['isAdd']});}['_handleRootAttributeOperation'](_0x4d4b75){const _0x46fd25=this['_diffRootsAttributes']['get'](_0x4d4b75['root']['rootName']);null===_0x4d4b75['newValue']?delete _0x46fd25[_0x4d4b75['key']]:_0x46fd25[_0x4d4b75['key']]=_0x4d4b75['newValue'];}}function T(_0x34e099){const _0x4bcfc4=F(_0x34e099['rootName'],_0x34e099['isAttached']());for(const _0x113f79 of _0x34e099['getChildren']()){const _0x5f17a1=_0x113f79['_clone'](!0x0);_0x4bcfc4['_appendChild'](_0x5f17a1);}return _0x4bcfc4;}function F(_0x453aee,_0x12f892=!0x0){const _0x54906f=new mt();return _0x54906f['rootName']=_0x453aee,_0x54906f['_isAttached']=_0x12f892,_0x54906f['isAttached']=()=>_0x54906f['_isAttached'],_0x54906f;}function B(_0x196a63,_0x137802,_0xfdd2ab){const _0x28b51d='elementEnd'==_0x196a63['type']?_0xfdd2ab['createPositionAt'](_0x196a63['item'],'end'):_0xfdd2ab['createPositionBefore'](_0x196a63['item']);return _0xfdd2ab['createPositionFromPath'](_0x137802,_0x28b51d['path'],_0x28b51d['stickiness']);}function J(_0x4fb179,_0x3406ad,_0x15b00f){const _0x3d3d49='elementStart'==_0x4fb179['type']?_0x15b00f['createPositionAt'](_0x4fb179['item'],0x0):_0x15b00f['createPositionAfter'](_0x4fb179['item']);return _0x15b00f['createPositionFromPath'](_0x3406ad,_0x3d3d49['path'],_0x3d3d49['stickiness']);}class ns extends _0x21a70e{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x3fa6a6,_0xe67989){super(_0x3fa6a6),this['focusTracker']=new _0x5d4331(),this['keystrokes']=new _0x197446(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0xe67989),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'](),_0x50a964({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x14129c=_0x1517be=>_0x1517be['stopPropagation']();this['keystrokes']['set']('arrowright',_0x14129c),this['keystrokes']['set']('arrowleft',_0x14129c),this['keystrokes']['set']('arrowup',_0x14129c),this['keystrokes']['set']('arrowdown',_0x14129c);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0xf24ce6){this['revisionNameInputView']['fieldView']['element']['value']=_0xf24ce6['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x45031a){const _0x1bc680=new nt(this['locale'],_0x2f6061),_0x444b50=_0x1bc680['fieldView'];_0x444b50['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x35012b=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x45031a&&(_0x35012b+='\x20('+m(this['locale'],'optional')+')'),(_0x1bc680['label']=_0x35012b,_0x444b50['on']('input',()=>{this['revisionNameInputValue']=_0x444b50['element']['value']['trim']();}),_0x1bc680);}}class u extends _0x495045{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x2ebe4d=this['editor'],_0x275798=_0x2ebe4d['plugins']['get']('RevisionTracker');_0x2ebe4d['ui']['componentFactory']['add']('revisionHistory',_0x2aa24c=>{const _0x286c7a=_0x4cd44e(_0x2aa24c),_0x4d95c9=_0x286c7a['panelView']['children'],_0x4c7e6a=new te(_0x2aa24c),_0x359c3d=new _0x5586df(_0x2aa24c),_0x1cc2e6=new _0x5f241f(_0x2aa24c),_0x2f4bd9=new _0x5586df(_0x2aa24c),_0x4e8804=new _0x5f241f(_0x2aa24c);return _0x286c7a['bind']('isEnabled')['to'](_0x275798,'isReady',_0x275798,'isEnabled',_0x2ebe4d,'isReadOnly',(_0x153f94,_0x2367e7,_0x1e49ee)=>_0x153f94&&_0x2367e7&&!_0x1e49ee),_0x286c7a['buttonView']['set']({'icon':_0x3b9cd1['history'],'label':m(_0x2aa24c,'Revision\x20history'),'tooltip':!0x0}),_0x1cc2e6['set']({'label':m(_0x2aa24c,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x1cc2e6['bind']('isEnabled')['to'](_0x275798,'isReady',_0x275798,'isEnabled',_0x2ebe4d,'isReadOnly',(_0x403e97,_0x2d831e,_0x38702b)=>_0x403e97&&_0x2d831e&&!_0x38702b),_0x1cc2e6['on']('execute',()=>this['_showDialog']()),_0x4e8804['set']({'label':m(_0x2aa24c,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x4e8804['bind']('isEnabled')['to'](_0x275798,'isReady',_0x2ebe4d,'isReadOnly',(_0x23b5c5,_0x9e03f7)=>_0x23b5c5&&!_0x9e03f7),_0x4e8804['on']('execute',()=>{_0x2ebe4d['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x286c7a['isOpen']=!0x1,_0x2ebe4d['editing']['view']['focus']();}),_0x359c3d['children']['add'](_0x1cc2e6),_0x2f4bd9['children']['add'](_0x4e8804),_0x4c7e6a['role']='menu',_0x4c7e6a['items']['addMany']([_0x359c3d,_0x2f4bd9]),_0x4d95c9['add'](_0x4c7e6a),_0x286c7a;}),_0x2ebe4d['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x1499e1=this['editor'],_0x53e7d3=_0x1499e1['locale'],_0x4a2e17=new _0x57eb30(_0x53e7d3),_0x2db22d=new _0x2a4332(_0x53e7d3);_0x4a2e17['buttonView']['set']({'icon':_0x3b9cd1['history'],'label':m(_0x53e7d3,'Revision\x20history')});const _0x1d4633=new _0x55a266(_0x53e7d3,_0x4a2e17),_0x1ac95a=new _0x33098b(_0x53e7d3);_0x1ac95a['set']({'label':m(_0x53e7d3,'Save\x20current\x20revision')}),_0x1ac95a['delegate']('execute')['to'](_0x4a2e17),_0x1ac95a['on']('execute',()=>{this['_showDialog']();}),_0x1d4633['children']['add'](_0x1ac95a),_0x2db22d['items']['add'](_0x1d4633);const _0x5447a3=new _0x55a266(_0x53e7d3,_0x4a2e17),_0x467f72=new _0x33098b(_0x53e7d3);return _0x467f72['set']({'label':m(_0x53e7d3,'Open\x20revision\x20history')}),_0x467f72['delegate']('execute')['to'](_0x4a2e17),_0x467f72['on']('execute',()=>{_0x1499e1['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x5447a3['children']['add'](_0x467f72),_0x2db22d['items']['add'](_0x5447a3),_0x4a2e17['panelView']['children']['add'](_0x2db22d),_0x4a2e17;}['_showDialog'](){const _0x48064f=this['editor'],_0x36e158=_0x48064f['locale'],_0x3b4b0d=_0x48064f['plugins']['get']('Dialog'),_0x337e1a=_0x48064f['plugins']['get']('RevisionTracker');function _0x512e68(_0x33a149){_0x48064f['config']['get']('revisionHistory.requireRevisionName')&&''===_0x33a149['revisionName']?_0x33a149['revisionNameInputView']['errorText']=m(_0x36e158,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x48064f['plugins']['get'](l)['saveRevision']({'name':_0x33a149['revisionName']}),_0x3b4b0d['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x512e68(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x3b4b0d['show']({'id':'revisionSave','title':m(_0x36e158,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x48064f['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x3b4b0d['hide']()},{'label':m(_0x48064f['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x340342){_0x340342['bind']('isEnabled')['to'](_0x337e1a,'isReady',_0x337e1a,'isEnabled',_0x48064f,'isReadOnly',(_0x1fe563,_0x23e33c,_0x3c9e24)=>_0x1fe563&&_0x23e33c&&!_0x3c9e24);},'onExecute':()=>_0x512e68(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x30b739=this['editor'],_0x56158d=_0x30b739['locale'];this['_saveRevisionFormView']=new ns(_0x56158d,_0x30b739['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x21a70e{['changeId'];['_model'];constructor(_0x325ddb,_0x3160eb){super(_0x325ddb),this['_model']=_0x3160eb,this['changeId']=_0x3160eb['id'];const _0x3915f3=this['bindTemplate'],_0x44f23a=m(_0x325ddb,_0x3160eb['data']['isSuggestion']?'Suggested\x20by':'add'==_0x3160eb['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x3160eb['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x3915f3['to']('type',_0x540ca5=>'ck-revision-change__'+_0x540ca5)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x44f23a}]},{'text':'\x20'+_0x3160eb['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x4c7a34(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x4f465e){super(),this['id']=_0x4f465e['id']||_0x22b130(),this['author']=_0x4f465e['author'],this['type']=_0x4f465e['type'],this['data']=_0x4f465e['data']||{},this['rootName']=_0x4f465e['rootName'],this['set']('createdAt',_0x4f465e['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(_0x46612e,_0x23e292){this['newRevisionId']=_0x46612e,this['oldRevisionId']=_0x23e292,this['changes']=new _0xb59600();}['_setChanges'](_0x4efb66){for(const _0x46176c of _0x4efb66)this['changes']['add'](_0x46176c);}}const Y={'c':_0x35266d,'a':_0x53c0fe,'e':_0x5cfb09,'r':_0x5b34ed,'u':_0x4cb63c};class d extends _0x495045{['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[_0x48e3ae,_0x575c14,j];}constructor(_0x2e4153){super(_0x2e4153),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',(_0x141e86,_0x4c512d,_0x1b92d9)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x263267=>{for(const _0x423194 of this['editor']['editing']['view']['document']['roots'])_0x1b92d9?_0x263267['removeClass']('ck-editor__editable__overlay',_0x423194):_0x263267['addClass']('ck-editor__editable__overlay',_0x423194);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x3365dc=>null!==_0x3365dc),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x2191fe,_0x2eaa93,_0x3095cd)=>_0x2191fe&&_0x3095cd?_0x2eaa93['changes']['getIndex'](_0x3095cd):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x22c348,_0x21133e)=>_0x22c348?_0x21133e['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x575c14);}['init'](){const _0x4bfe99=this['editor'],_0x4fcca0=new yt(_0x4bfe99,{'direction':'backward'}),_0x2bd62a=new yt(_0x4bfe99,{'direction':'forward'});(_0x4bfe99['commands']['add']('showPreviousChange',_0x4fcca0),_0x4bfe99['commands']['add']('showNextChange',_0x2bd62a),_0x4bfe99['commands']['add']('restoreRevision',new _t(_0x4bfe99)),this['on']('change:numberOfChanges',()=>{_0x4fcca0['refresh'](),_0x2bd62a['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x4bfe99['enableReadOnlyMode']('revision-viewer'),_0x4bfe99['plugins']['has']('WidgetToolbarRepository'))&&_0x4bfe99['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x26ddba){await this['loadRevisionData'](_0x26ddba);const _0x5bf163={};for(const _0x4e6dff in _0x26ddba['diffData']){if(_0x26ddba['diffData'][_0x4e6dff]['attachChange']&&!_0x26ddba['diffData'][_0x4e6dff]['attachChange']['isAttached'])continue;const _0x142f6e=this['_removeRevisionMarkers'](JSON['parse'](_0x26ddba['diffData'][_0x4e6dff]['insertions'])),_0x3ad14a=this['editor']['editing']['view']['document'],_0x28be0d=new _0x836cbc(_0x3ad14a,_0x142f6e['map'](_0x3834de=>this['_getViewObj'](_0x3834de)));this['editor']['data']['processor']['useFillerType']('marked'),_0x5bf163[_0x4e6dff]=this['editor']['data']['processor']['toData'](_0x28be0d),this['editor']['data']['processor']['useFillerType']('default');}return _0x5bf163;}async['getRevisionRootsAttributes'](_0x21806e){await this['loadRevisionData'](_0x21806e);const _0x255a40={};for(const _0x310f17 in _0x21806e['diffData'])_0x21806e['diffData'][_0x310f17]['attachChange']&&!_0x21806e['diffData'][_0x310f17]['attachChange']['isAttached']||(_0x255a40[_0x310f17]=_0x21806e['diffData'][_0x310f17]['attributesAfter']||{});return _0x255a40;}['_removeRevisionMarkers'](_0x558fe6){return(_0x558fe6=_0x558fe6['filter'](_0x329372=>!_0x329372['name']||'revision-start'!==_0x329372['name']&&'revision-end'!==_0x329372['name']))['forEach'](_0x206b93=>{'string'!=typeof _0x206b93&&(_0x206b93['children']=this['_removeRevisionMarkers'](_0x206b93['children']),_0x206b93['attributes']=_0x206b93['attributes']['filter'](_0x51ee76=>!_0x51ee76[0x0]['startsWith']('data-revision-')));}),_0x558fe6;}async['compare'](_0x1a451d,_0x1594cb,_0x5de747=!0x1){if(!this['isEnabled'])return;const _0x4e8191=this['diff'],_0x1d8e4f=this['repository'],_0x4e173e='string'==typeof _0x1a451d?_0x1d8e4f['getRevision'](_0x1a451d):_0x1a451d,_0xb24dae='string'==typeof _0x1594cb?_0x1d8e4f['getRevision'](_0x1594cb):_0x1594cb,_0x4ea143=_0x4e173e['id'],_0x1ae81d=_0xb24dae?_0xb24dae['id']:null;if(!_0x5de747&&this['diff']&&this['diff']['newRevisionId']===_0x4ea143&&this['diff']['oldRevisionId']===_0x1ae81d)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x4ea143,_0x1ae81d);const _0x542aa4=this['_getRevisionsRange'](_0x4e173e,_0xb24dae,!0x0)['map'](_0x1ae6d0=>this['loadRevisionData'](_0x1ae6d0));return _0x542aa4['push'](new Promise(_0x1e7e7a=>{setTimeout(_0x1e7e7a,0x14);})),Promise['all'](_0x542aa4)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x29c481=this['_getDiff'](_0x4ea143,_0x1ae81d);for(const _0x42dd8a of _0x29c481['changes'])this['_changeIdToChange']['set'](_0x42dd8a['id'],_0x42dd8a);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x44bd3a=>{for(const _0x58521b of this['editor']['model']['document']['getRootNames']())_0x44bd3a['detachRoot'](_0x58521b);for(const _0x882c40 of Object['keys'](_0x29c481['model'])){const _0x4c1c32=_0x44bd3a['addRoot'](_0x882c40);for(const _0x3c3a71 of Object['keys'](_0x29c481['attributes'][_0x882c40]))_0x44bd3a['setAttribute'](_0x3c3a71,_0x29c481['attributes'][_0x882c40][_0x3c3a71],_0x4c1c32);_0x44bd3a['insert'](_0x29c481['model'][_0x882c40],_0x4c1c32,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x29c481['changes'])),this['isReady']=!0x0;})['catch'](_0x48dfa3=>{console['error'](_0x48dfa3),this['_cleanUp'](),_0x4e8191&&(this['diff']=_0x4e8191),this['isReady']=!0x0;});}['addRevisionData'](_0x47c567,_0xa60ff5){const _0x5f0a15=this['repository']['createRevision'](_0x47c567);return _0x5f0a15['on']('_update',(_0x45c4ad,_0x326159,_0x467c10)=>_0xa60ff5(_0x326159,_0x467c10,_0x5f0a15)),this['repository']['addRevision'](_0x5f0a15),_0x5f0a15;}['loadRevisionData'](_0x55bb76){if(!_0x55bb76||_0x55bb76['diffData'])return Promise['resolve']();{const _0x1e3c06=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x1e3c06,'revisionId':_0x55bb76['id']})['then'](_0x3adcd1=>{_0x55bb76['_update']({'diffData':_0x3adcd1['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},_0x8d2b17=>{for(const _0x581be0 of this['editor']['model']['document']['getRootNames']())_0x8d2b17['detachRoot'](_0x581be0);});}['_sortAndFilterDiffChanges'](_0x4d5cc5){const _0x3f824b=[],_0x164da9=new Map();for(const _0x2f63b6 of this['editor']['model']['document']['getRootNames']()){const _0x2a72e7=this['editor']['editing']['view']['getDomRoot'](_0x2f63b6);if(!_0x2a72e7)continue;const _0x268902=_0x2a72e7['getClientRects']()['item'](0x0);_0x268902&&(_0x3f824b['push'](_0x2f63b6),_0x164da9['set'](_0x2f63b6,_0x268902));}return _0x3f824b['sort']((_0x492aa4,_0x47a74b)=>{const _0x422c8f=_0x164da9['get'](_0x492aa4),_0x5ca1b6=_0x164da9['get'](_0x47a74b);return _0x422c8f['y']-_0x5ca1b6['y']||_0x422c8f['x']-_0x5ca1b6['x'];}),(_0x4d5cc5=_0x4d5cc5['filter'](_0x405fc5=>_0x3f824b['includes'](_0x405fc5['rootName'])))['sort']((_0x3466ba,_0x40fb51)=>_0x3f824b['indexOf'](_0x3466ba['rootName'])-_0x3f824b['indexOf'](_0x40fb51['rootName'])),_0x4d5cc5;}['_makeTape'](_0x3841a8){const _0xb8db66=Array['from'](_0x3841a8['markers'])['filter'](([_0x46839f,_0x17650b])=>_0x46839f['startsWith']('revision:')&&!_0x17650b['isCollapsed']),_0x362e4e=Array['from'](this['editor']['model']['createRangeIn'](_0x3841a8)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0xb8db66['length'])for(const _0x35ae8b of _0x362e4e){const [_0x32a2a0,_0x4df771]=_0xb8db66[0x0],[,_0x448c8f,_0x38e0e3]=_0x32a2a0['split'](':');if(_0x4df771['end']['isEqual'](_0x35ae8b['nextPosition'])&&_0xb8db66['shift'](),(_0x35ae8b['previousPosition']['isEqual'](_0x4df771['start'])||_0x35ae8b['previousPosition']['isAfter'](_0x4df771['start']))&&('insertion'==_0x448c8f?_0x35ae8b['isAdded']={'userId':_0x38e0e3}:'deletion'==_0x448c8f&&(_0x35ae8b['isRemoved']={'userId':_0x38e0e3})),0x0==_0xb8db66['length'])break;}return _0x362e4e;}['_refreshStartEndIndex'](_0x88464b){const _0x27de33=new Map();for(let _0x451c45=0x0;_0x451c45<_0x88464b['length'];_0x451c45++)'text'===_0x88464b[_0x451c45]['type']?(_0x88464b[_0x451c45]['item']['startIndex']=_0x451c45,_0x88464b[_0x451c45]['item']['endIndex']=_0x451c45):('elementStart'===_0x88464b[_0x451c45]['type']?_0x88464b[_0x451c45]['item']['startIndex']=_0x451c45:'elementEnd'===_0x88464b[_0x451c45]['type']&&(_0x88464b[_0x451c45]['item']['endIndex']=_0x451c45),_0x27de33['set'](_0x88464b[_0x451c45]['id'],_0x451c45));for(const _0x183572 of _0x27de33['values']())'elementStart'===_0x88464b[_0x183572]['type']?_0x88464b[_0x183572]['item']['endIndex']=_0x27de33['get'](_0x88464b[_0x183572]['pairId']):'elementEnd'===_0x88464b[_0x183572]['type']&&(_0x88464b[_0x183572]['item']['startIndex']=_0x27de33['get'](_0x88464b[_0x183572]['pairId']));}['_processTape'](_0x2e5b6d){for(let _0x16e1e9=0x0;_0x16e1e9<_0x2e5b6d['length'];_0x16e1e9++){if('elementStart'===_0x2e5b6d[_0x16e1e9]['type'])_0x2e5b6d[_0x16e1e9]['item']['startIndex']=_0x16e1e9;else{if('elementEnd'===_0x2e5b6d[_0x16e1e9]['type']){_0x2e5b6d[_0x16e1e9]['item']['endIndex']=_0x16e1e9;const _0x229851=_0x2e5b6d[_0x16e1e9]['item']['startIndex'];_0x2e5b6d[_0x229851]['pairId']=_0x2e5b6d[_0x16e1e9]['id'],_0x2e5b6d[_0x16e1e9]['pairId']=_0x2e5b6d[_0x229851]['id'];}else _0x2e5b6d[_0x16e1e9]['item']['startIndex']=_0x16e1e9,_0x2e5b6d[_0x16e1e9]['item']['endIndex']=_0x16e1e9,_0x2e5b6d[_0x16e1e9]['pairId']=null;}_0x2e5b6d[_0x16e1e9]['markersStart']||(_0x2e5b6d[_0x16e1e9]['markersStart']=[],_0x2e5b6d[_0x16e1e9]['markersEnd']=[]);}}['_markInsertions'](_0x15626d,_0x1fd692){const _0x4d5ee3=_0x15626d['filter'](_0x2d6fb5=>!_0x2d6fb5['isAdded']);for(let _0x488efe=0x0;_0x488efe<_0x1fd692['length'];_0x488efe++)_0x1fd692[_0x488efe]['isAdded']&&(_0x4d5ee3[_0x488efe]['isAdded']=_0x1fd692[_0x488efe]['isAdded']);}['_makeModelFromViewString'](_0x3b1e9b){const _0x2462cb=JSON['parse'](_0x3b1e9b),_0x349f00=this['editor']['editing']['view']['document'],_0x3f40ce=new _0x836cbc(_0x349f00,_0x2462cb['map'](_0x452e01=>this['_getViewObj'](_0x452e01)));return this['editor']['data']['toModel'](_0x3f40ce);}['_getViewObj'](_0x57af62){const _0x142d1d=this['editor']['editing']['view']['document'];if('string'==typeof _0x57af62)return new _0x263cf6(_0x142d1d,_0x57af62);{const _0x542d9e=_0x57af62['children']['map'](_0xcdf013=>this['_getViewObj'](_0xcdf013));return new(Y[_0x57af62['type']]||_0x2b857d)(_0x142d1d,_0x57af62['name'],_0x57af62['attributes'],_0x542d9e);}}['_getDiff'](_0x54c5d3,_0x2ab68c=null){const _0x4381b3=this['repository']['getRevision'](_0x54c5d3),_0x5236a6=_0x2ab68c?this['repository']['getRevision'](_0x2ab68c):null,_0x2076e3=this['_getRevisionsRange'](_0x4381b3,_0x5236a6),_0x325067=_0x2076e3[_0x2076e3['length']-0x1],_0xd4b0ce=new Map(),_0xadc606={'model':{},'attributes':{},'changes':[]},_0x52bc2b=new Set(),_0x3ce31c=new Map();for(let _0x4b6e10=_0x2076e3['length']-0x1;_0x4b6e10>=0x0;_0x4b6e10--){const _0x27b6f9=_0x2076e3[_0x4b6e10];for(const _0x211129 of Object['keys'](_0x27b6f9['diffData']))if(_0x27b6f9['diffData'][_0x211129]['attachChange']){const _0x527bb9=_0x27b6f9['diffData'][_0x211129]['attachChange'];_0x527bb9['isAttached']?(_0x52bc2b['add'](_0x211129),_0x3ce31c['has'](_0x211129)&&_0x3ce31c['get'](_0x211129)['userId']==_0x527bb9['userId']?_0x3ce31c['delete'](_0x211129):_0x3ce31c['set'](_0x211129,_0x527bb9)):_0x3ce31c['has'](_0x211129)?(_0x52bc2b['delete'](_0x211129),_0x3ce31c['delete'](_0x211129)):(_0x52bc2b['add'](_0x211129),_0x3ce31c['set'](_0x211129,_0x527bb9));}else _0x52bc2b['add'](_0x211129);}for(const _0x25dc4c of _0x52bc2b){const _0x39e346=_0x3ce31c['has'](_0x25dc4c)&&!_0x3ce31c['get'](_0x25dc4c)['isAttached'];let _0x2dd39f=_0x39e346?_0x2076e3['length']-0x1:0x0;const _0x482a4e=_0x39e346?-0x1:0x1;for(;_0x2076e3[_0x2dd39f];){const _0x31546d=_0x2076e3[_0x2dd39f];if(_0x31546d['diffData'][_0x25dc4c]){const _0x46af50=_0x39e346?_0x31546d['diffData'][_0x25dc4c]['attributesBefore']:_0x31546d['diffData'][_0x25dc4c]['attributesAfter'];_0xadc606['attributes'][_0x25dc4c]=_0x46af50?_0x2fbfef(_0x46af50):{};break;}_0x2dd39f+=_0x482a4e;}}for(const _0x580011 of _0x2076e3){_0x580011['model']={};for(const _0x8da65a of _0x580011['authors'])_0xd4b0ce['set'](_0x8da65a['id'],_0x8da65a);for(const _0x50e548 of _0x52bc2b){const _0x14a02a=_0x580011['diffData'][_0x50e548]?_0x580011['diffData'][_0x50e548]['insertions']:'[]',_0x22dab7=_0x580011['diffData'][_0x50e548]?_0x580011['diffData'][_0x50e548]['deletions']:'[]';_0x580011['model'][_0x50e548]={'insertions':this['_makeModelFromViewString'](_0x14a02a),'deletions':this['_makeModelFromViewString'](_0x22dab7)};}}for(const _0x148fff of _0x52bc2b){let _0x5525c1=null,_0xf166ef=0x0;const _0x1774eb=new Map(Array['from'](_0x4381b3['model'][_0x148fff]['insertions']['markers'])['filter'](([_0x2099ca])=>!_0x2099ca['startsWith']('revision:')));let _0x2831bf=0x0;for(const _0x1030b6 of _0x2076e3){const _0x5c97d7=this['_makeTape'](_0x1030b6['model'][_0x148fff]['insertions']);_0x1030b6==_0x4381b3?(_0x5525c1=_0x5c97d7,_0xf166ef=_0x5525c1['length'],_0x5525c1['forEach'](_0x2ac0c3=>{_0x2ac0c3['id']=_0x2831bf++;}),this['_processTape'](_0x5525c1)):this['_markInsertions'](_0x5525c1,_0x5c97d7);const _0x42b706=_0x5525c1['filter'](_0x27157b=>!_0x27157b['isAdded'])['map'](_0x40f2a3=>_0x40f2a3['id']);let _0xab0ee3=0x0;const _0x26fbb8=this['_makeTape'](_0x1030b6['model'][_0x148fff]['deletions']);_0x26fbb8['forEach'](_0x3e5147=>{_0x3e5147['isRemoved']?_0x3e5147['id']=_0xf166ef++:_0x3e5147['id']=_0x42b706[_0xab0ee3++];}),this['_processTape'](_0x26fbb8),this['_setDistance'](_0x5525c1,'isAdded'),this['_setDistance'](_0x26fbb8,'isRemoved'),_0x1030b6==_0x4381b3&&this['_markMarkers'](_0x5525c1,_0x1774eb),_0x5525c1=this['_joinTapes'](_0x5525c1,_0x26fbb8),this['_refreshStartEndIndex'](_0x5525c1),this['_setDistance'](_0x5525c1,'isRemoved');}_0x5525c1=_0x5525c1['filter'](_0x55d2f7=>!(_0x55d2f7['isAdded']&&_0x55d2f7['isRemoved']));const _0x181b9e=new Map(_0x325067['model'][_0x148fff]['deletions']['markers']),_0x158827=new Set(_0x1774eb['keys']());for(const _0x57966b of _0x181b9e['keys']())_0x158827['delete'](_0x57966b);this['_markSuggestions'](_0x5525c1,_0x158827),this['_fixObsoleteTags'](_0x5525c1),_0x5525c1=this['_removeMissingPairs'](_0x5525c1),_0x5525c1=this['_markMismatchedRemovedTags'](_0x5525c1),_0x5525c1=this['_removeUnsupportedChanges'](_0x5525c1);const {root:_0xa6a75a,changes:_0x2f2ff4}=this['_makeModelFromTape'](_0x5525c1,_0xd4b0ce,_0x148fff);_0xadc606['model'][_0x148fff]=_0xa6a75a;const _0x2b1113=_0x3ce31c['get'](_0x148fff);if(_0x2b1113){const _0x40cd3e=_0xd4b0ce['get'](_0x2b1113['userId']),_0x241b12=new r({'author':_0x40cd3e,'type':_0x2b1113['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x148fff});_0x2f2ff4['unshift'](_0x241b12),_0xadc606['attributes'][_0x148fff]['revisionHistoryAttachChange']=_0x241b12['id'];}_0xadc606['changes']=_0xadc606['changes']['concat'](_0x2f2ff4);}return _0xadc606;}['_markMarkers'](_0x202969,_0x5b4988){for(let _0x25862e=0x0;_0x25862e<_0x202969['length'];_0x25862e++)for(const [_0xb34b4e,_0x27b6f7]of _0x5b4988)_0x27b6f7['start']['isEqual'](_0x202969[_0x25862e]['previousPosition'])&&_0x202969[_0x25862e]['markersStart']['push'](_0xb34b4e),_0x27b6f7['end']['isEqual'](_0x202969[_0x25862e]['nextPosition'])&&_0x202969[_0x25862e]['markersEnd']['push'](_0xb34b4e);}['_joinTapes'](_0xafe2ee,_0x10b76d){let _0x265b97=[],_0x56ce7a=0x0,_0x11ea73=0x0;for(;_0x56ce7a<_0xafe2ee['length']||_0x11ea73<_0x10b76d['length'];){const _0x2d76e0=_0xafe2ee[_0x56ce7a]||{},_0x5425be=_0x10b76d[_0x11ea73]||{};if(_0x2d76e0['id']==_0x5425be['id'])_0x56ce7a++,_0x11ea73++,_0x265b97['push'](_0x2d76e0);else{if(_0x5425be['isRemoved']&&_0x2d76e0['isAdded']){const {commonTape:_0x3b3d89,iEnd:_0x3286cf,jEnd:_0x23b75d}=this['_threeWayMerge'](_0xafe2ee,_0x56ce7a,_0x10b76d,_0x11ea73);_0x265b97=_0x265b97['concat'](_0x3b3d89),_0x56ce7a=_0x3286cf,_0x11ea73=_0x23b75d;}else _0x5425be['isRemoved']?(_0x11ea73++,_0x265b97['push'](_0x5425be)):(_0x56ce7a++,_0x265b97['push'](_0x2d76e0));}}return _0x265b97;}['_markSuggestions'](_0x41c53a,_0x356dbc){const _0x17b502=[];for(let _0x4d102d=0x0;_0x4d102d<_0x41c53a['length'];_0x4d102d++){for(let _0x181da4=0x0;_0x181da4<_0x41c53a[_0x4d102d]['markersStart']['length'];_0x181da4++){const _0x47d170=_0x41c53a[_0x4d102d]['markersStart'][_0x181da4];if(!_0x356dbc['has'](_0x47d170))continue;const {group:_0x573256,type:_0x4aed3f,authorId:_0x5127a4}=_0xaae500(_0x47d170);'revision-suggestion'!=_0x573256||'insertion'!=_0x4aed3f&&'deletion'!=_0x4aed3f||(_0x17b502['unshift']({'type':_0x4aed3f,'name':_0x47d170,'userId':_0x5127a4}),_0x41c53a[_0x4d102d]['markersStart']['splice'](_0x181da4,0x1),_0x181da4--);}_0x49b76c(_0x41c53a[_0x4d102d]);for(let _0x14b1b2=0x0;_0x14b1b2<_0x41c53a[_0x4d102d]['markersEnd']['length'];_0x14b1b2++){const _0x48ad4b=_0x41c53a[_0x4d102d]['markersEnd'][_0x14b1b2];if(!_0x356dbc['has'](_0x48ad4b))continue;const {group:_0x4ccd0f,type:_0x1f93dc}=_0xaae500(_0x48ad4b);if('revision-suggestion'!=_0x4ccd0f||'insertion'!=_0x1f93dc&&'deletion'!=_0x1f93dc)continue;_0x41c53a[_0x4d102d]['markersEnd']['splice'](_0x14b1b2,0x1),_0x14b1b2--;const _0x3345bf=_0x17b502['findIndex'](_0x55b391=>_0x55b391['name']==_0x48ad4b);_0x3345bf>-0x1&&_0x17b502['splice'](_0x3345bf,0x1);}}function _0xaae500(_0x26c14e){const _0x4707c6=_0x26c14e['split'](':');return{'group':_0x4707c6[0x0],'type':_0x4707c6[0x1],'subType':_0x4707c6['length']>=0x5?_0x4707c6[0x2]:null,'id':_0x4707c6['length']<0x5?_0x4707c6[0x2]:_0x4707c6[0x3],'authorId':_0x4707c6['length']<0x5?_0x4707c6[0x3]:_0x4707c6[0x4],'markerCount':0x6==_0x4707c6['length']?_0x4707c6[0x5]:null};}function _0x49b76c(_0xe23a5a){for(let _0x563e8a=0x0;_0x563e8a<_0x17b502['length'];_0x563e8a++){if(_0xe23a5a['isAdded']&&'insertion'==_0x17b502[_0x563e8a]['type'])return _0xe23a5a['isAddSuggestion']=_0x17b502[_0x563e8a],void delete _0xe23a5a['isAdded'];if(!_0xe23a5a['isAdded']&&!_0xe23a5a['isRemoved']&&'deletion'==_0x17b502[_0x563e8a]['type'])return void(_0xe23a5a['isRemoveSuggestion']=_0x17b502[_0x563e8a]);}}}['_setDistance'](_0x3789e2,_0x169925){let _0x1a23b9=0x0,_0x55260c=!0x1;const _0x35c6fa=new Map();for(const _0x5c3ec9 of _0x3789e2)_0x5c3ec9[_0x169925]?_0x55260c&&(_0x1a23b9++,_0x55260c=!0x1):(_0x1a23b9++,_0x55260c=!0x0),_0x35c6fa['set'](_0x5c3ec9['id'],_0x1a23b9);for(let _0x4f4808=0x0;_0x4f4808<_0x3789e2['length'];_0x4f4808++){if('isRemoved'==_0x169925&&_0x3789e2[_0x4f4808]['isAdded']||'isAdded'==_0x169925&&_0x3789e2[_0x4f4808]['isRemoved'])continue;if('text'==_0x3789e2[_0x4f4808]['type']){_0x3789e2[_0x4f4808]['distance']=0x0;continue;}const _0x16f18b=_0x35c6fa['get'](_0x3789e2[_0x4f4808]['pairId']),_0x9ee178=_0x35c6fa['get'](_0x3789e2[_0x4f4808]['id']);_0x3789e2[_0x4f4808]['distance']=_0x16f18b-_0x9ee178;}}['_getRevisionsRange'](_0x20e1e5,_0x1da669,_0x426043=!0x1){const _0x40c808=[];let _0x5c2471=this['repository']['getIndex'](_0x20e1e5),_0x29e8af=this['repository']['getIndex'](_0x1da669);for(-0x1==_0x29e8af&&(_0x29e8af=this['repository']['_revisions']['length'],_0x426043=!0x1);_0x5c2471<_0x29e8af;)_0x40c808['push'](this['repository']['getRevision'](_0x5c2471)),_0x5c2471++;return _0x426043&&_0x40c808['push'](this['repository']['getRevision'](_0x5c2471)),_0x40c808;}['_threeWayMerge'](_0x423e26,_0x12408a,_0x5dedf0,_0x15749c){const _0x18dde7=this['editor']['model']['schema'];let _0x15a8db=_0x12408a;for(;_0x423e26[_0x15a8db]&&_0x423e26[_0x15a8db]['isAdded'];)_0x15a8db++;let _0x2d7e8b=_0x15749c;for(;_0x5dedf0[_0x2d7e8b]&&_0x5dedf0[_0x2d7e8b]['isRemoved'];)_0x2d7e8b++;_0x4e98d4(_0x423e26,_0x12408a,_0x15a8db),_0x4e98d4(_0x5dedf0,_0x15749c,_0x2d7e8b);const _0x53c710=_0x5dedf0['slice'](_0x15749c,_0x2d7e8b)['concat'](_0x423e26['slice'](_0x12408a,_0x15a8db));return _0x53c710['sort']((_0x2db2b3,_0x39eb2d)=>_0x2db2b3['side']!=_0x39eb2d['side']?_0x2db2b3['side']-_0x39eb2d['side']:_0x2db2b3['level']!=_0x39eb2d['level']?_0x2db2b3['level']-_0x39eb2d['level']:_0x2db2b3['distance']!=_0x39eb2d['distance']?_0x39eb2d['distance']-_0x2db2b3['distance']:!!_0x2db2b3['isAdded']!=!!_0x39eb2d['isAdded']?-0x1==_0x2db2b3['side']||0x0==_0x2db2b3['side']?_0x2db2b3['isAdded']?-0x1:0x1:_0x2db2b3['isAdded']?0x1:-0x1:_0x2db2b3['index']-_0x39eb2d['index']),{'commonTape':_0x53c710,'iEnd':_0x15a8db,'jEnd':_0x2d7e8b};function _0x4e98d4(_0x40face,_0x23ffb5,_0xf9b5a1){let _0x2c10fe=-0x1,_0x1d13a1=Number['POSITIVE_INFINITY'],_0x39a5fd=!0x0;for(let _0x3ed44f=_0x23ffb5;_0x3ed44f<_0xf9b5a1;_0x3ed44f++)if(_0x18dde7['isInline'](_0x40face[_0x3ed44f]['item'])||(_0x39a5fd=!0x1),_0x40face[_0x3ed44f]['item']['startIndex']<_0x23ffb5&&(_0x2c10fe=_0x3ed44f),_0x40face[_0x3ed44f]['item']['endIndex']>=_0xf9b5a1){_0x1d13a1=_0x3ed44f;break;}_0x39a5fd&&(_0x2c10fe=_0xf9b5a1-0x1);for(let _0x22f11c=_0x23ffb5;_0x22f11c<_0xf9b5a1;_0x22f11c++)_0x40face[_0x22f11c]['side']=_0x22f11c<=_0x2c10fe?-0x1:_0x22f11c<_0x1d13a1?0x0:0x1,_0x40face[_0x22f11c]['index']=_0x22f11c;let _0x1f3fc3=0x0;for(let _0x36bb67=_0x23ffb5;_0x36bb67<=_0x2c10fe;_0x36bb67++)0x0==_0x40face[_0x36bb67]['distance']?_0x40face[_0x36bb67]['level']=_0x1f3fc3:(_0x1f3fc3++,_0x40face[_0x36bb67]['level']=_0x1f3fc3,_0x1f3fc3++);for(let _0x3044d9=_0x23ffb5;_0x3044d9<_0xf9b5a1;_0x3044d9++)0x0==_0x40face[_0x3044d9]['side']&&(_0x40face[_0x3044d9]['level']=_0x1f3fc3);_0x1f3fc3=0x0;for(let _0xf1875a=_0xf9b5a1-0x1;_0xf1875a>=_0x1d13a1;_0xf1875a--)0x0==_0x40face[_0xf1875a]['distance']?_0x40face[_0xf1875a]['level']=_0x1f3fc3:(_0x1f3fc3--,_0x40face[_0xf1875a]['level']=_0x1f3fc3,_0x1f3fc3--);}}['_fixObsoleteTags'](_0x48d347){const _0x1c39b6=new Map(),_0x5bbdfa=this['editor']['model']['schema'];for(let _0x4b4f79=0x1;_0x4b4f79<_0x48d347['length'];_0x4b4f79++){let _0x56d4f3,_0x3e7426,_0x312e30;const _0x11fd90=_0x48d347[_0x4b4f79],_0x3e0af5=_0x48d347[_0x4b4f79-0x1];if('text'==_0x11fd90['type'])continue;if(_0x11fd90['type']!=_0x3e0af5['type'])continue;if(!_0x5bbdfa['isBlock'](_0x3e0af5['item'])||_0x5bbdfa['isLimit'](_0x3e0af5['item']))continue;if(!_0x5bbdfa['isBlock'](_0x11fd90['item'])||_0x5bbdfa['isLimit'](_0x11fd90['item']))continue;if((_0x48d347[_0x4b4f79]['isAdded']||_0x48d347[_0x4b4f79]['isAddSuggestion'])&&_0x48d347[_0x4b4f79-0x1]['isRemoved'])_0x56d4f3=_0x48d347[_0x4b4f79],_0x3e7426=_0x48d347[_0x4b4f79-0x1],_0x312e30=_0x4b4f79-0x1;else{if(!_0x48d347[_0x4b4f79]['isRemoved']||!_0x48d347[_0x4b4f79-0x1]['isAdded']&&!_0x48d347[_0x4b4f79-0x1]['isAddSuggestion'])continue;_0x56d4f3=_0x48d347[_0x4b4f79-0x1],_0x3e7426=_0x48d347[_0x4b4f79],_0x312e30=_0x4b4f79;}const _0x2355ce=_0x56d4f3['level']==_0x3e7426['level'],_0x454673=Math['abs'](_0x56d4f3['level'])<Math['abs'](_0x3e7426['level'])&&0x0==_0x3e7426['distance'];(_0x2355ce||_0x454673)&&(_0x1c39b6['set'](_0x3e7426['id'],_0x56d4f3['id']),_0x48d347['splice'](_0x312e30,0x1),_0x4b4f79--,_0x56d4f3['isAdded']=!0x1);}for(let _0x133fed=0x0;_0x133fed<_0x48d347['length'];_0x133fed++)_0x1c39b6['has'](_0x48d347[_0x133fed]['pairId'])&&(_0x48d347[_0x133fed]['pairId']=_0x1c39b6['get'](_0x48d347[_0x133fed]['pairId']));}['_removeMissingPairs'](_0x5cf2aa){const _0x5bd8b6=new Set(_0x5cf2aa['map'](_0x21b4da=>_0x21b4da['id']));for(let _0x43413b=0x0;_0x43413b<_0x5cf2aa['length'];_0x43413b++)_0x5bd8b6['has'](_0x5cf2aa[_0x43413b]['pairId'])||0x0==_0x5cf2aa[_0x43413b]['distance']||(_0x5cf2aa[_0x43413b]['isIncorrect']=!0x0);return _0x5cf2aa['filter'](_0x18fd2b=>!_0x18fd2b['isIncorrect']);}['_markMismatchedRemovedTags'](_0x589d24){const _0x4d288d=new Set();for(let _0x159df7=0x0;_0x159df7<_0x589d24['length'];_0x159df7++){if(_0x4d288d['has'](_0x589d24[_0x159df7]['id'])&&_0x589d24[_0x159df7]['isRemoved']&&(_0x589d24[_0x159df7]['isIncorrect']=!0x0),_0x589d24[_0x159df7]['isIncorrect'])continue;if(0x0==_0x589d24[_0x159df7]['distance'])continue;if('elementStart'!=_0x589d24[_0x159df7]['type'])continue;if(null==_0x589d24[_0x159df7]['pairId'])continue;let _0x16fc44=_0x159df7+0x1,_0x4d5b14=0x0;for(;_0x589d24[_0x16fc44]['id']!=_0x589d24[_0x159df7]['pairId'];)'elementStart'==_0x589d24[_0x16fc44]['type']?_0x4d5b14++:'elementEnd'==_0x589d24[_0x16fc44]['type']&&_0x4d5b14--,_0x16fc44++;if(0x0!=_0x4d5b14){if(_0x589d24[_0x159df7]['isRemoved'])_0x589d24[_0x159df7]['isIncorrect']=!0x0;else{for(;_0x16fc44!=_0x159df7;)_0x589d24[_0x16fc44]['isRemoved']&&0x0!=_0x589d24[_0x16fc44]['distance']&&(_0x589d24[_0x16fc44]['isIncorrect']=!0x0,_0x4d288d['add'](_0x589d24[_0x16fc44]['pairId'])),_0x16fc44--;}}}return _0x589d24['filter'](_0x5e7232=>!_0x5e7232['isIncorrect']);}['_removeUnsupportedChanges'](_0xac6bcd){const _0x251528=this['editor']['model']['schema'];for(let _0x5f25b2=0x0;_0x5f25b2<_0xac6bcd['length'];_0x5f25b2++){if(!(_0xac6bcd[_0x5f25b2]['isAdded']||_0xac6bcd[_0x5f25b2]['isAddSuggestion']||_0xac6bcd[_0x5f25b2]['isRemoved']||_0xac6bcd[_0x5f25b2]['isRemoveSuggestion']))continue;if(0x0==_0xac6bcd[_0x5f25b2]['distance'])continue;const _0x3902d3=_0xac6bcd[_0x5f25b2]['item'];_0x251528['isBlock'](_0x3902d3)||_0x251528['isLimit'](_0x3902d3)||(_0xac6bcd[_0x5f25b2]['isAdded']&&delete _0xac6bcd[_0x5f25b2]['isAdded'],_0xac6bcd[_0x5f25b2]['isAddSuggestion']&&delete _0xac6bcd[_0x5f25b2]['isAddSuggestion'],_0xac6bcd[_0x5f25b2]['isRemoveSuggestion']&&delete _0xac6bcd[_0x5f25b2]['isRemoveSuggestion'],_0xac6bcd[_0x5f25b2]['isRemoved']&&(_0xac6bcd[_0x5f25b2]['isIncorrect']=!0x0));}return _0xac6bcd['filter'](_0xdd69c8=>!_0xdd69c8['isIncorrect']);}['_makeModelFromTape'](_0x141513,_0x4ffd6d,_0x31dfba){const _0x4c15ff=new mt(),_0x420415=[],_0x3c4994=new Map(),_0x2b1912=this['editor']['model'],_0x173ba6=_0x2b1912['schema'],_0x8ee595=[_0x4c15ff],_0x3d0288={},_0x3c9a5d={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x59f8a5=null;const _0x446aaa=[0x0];for(let _0x3e6d1d=0x0;_0x3e6d1d<_0x141513['length'];_0x3e6d1d++)if('elementStart'===_0x141513[_0x3e6d1d]['type']){_0x141513[_0x3e6d1d]['previousPosition']=_0x2b1912['createPositionFromPath'](_0x4c15ff,_0x446aaa);const _0x4eed28=new ft(_0x141513[_0x3e6d1d]['item']['name'],_0x141513[_0x3e6d1d]['item']['getAttributes']());_0x8ee595[0x0]['_appendChild'](_0x4eed28),_0x446aaa['push'](0x0),_0x8ee595['unshift'](_0x4eed28),_0x141513[_0x3e6d1d]['nextPosition']=_0x2b1912['createPositionFromPath'](_0x4c15ff,_0x446aaa);}else'elementEnd'===_0x141513[_0x3e6d1d]['type']?(_0x8ee595['shift'](),_0x141513[_0x3e6d1d]['previousPosition']=_0x2b1912['createPositionFromPath'](_0x4c15ff,_0x446aaa),_0x446aaa['pop'](),_0x446aaa[_0x446aaa['length']-0x1]++,_0x141513[_0x3e6d1d]['nextPosition']=_0x2b1912['createPositionFromPath'](_0x4c15ff,_0x446aaa)):(_0x141513[_0x3e6d1d]['previousPosition']=_0x2b1912['createPositionFromPath'](_0x4c15ff,_0x446aaa),_0x59f8a5?_0x59f8a5['_data']+=_0x141513[_0x3e6d1d]['item']['data']:_0x59f8a5=new wt(_0x141513[_0x3e6d1d]['item']['data'],_0x141513[_0x3e6d1d]['item']['getAttributes']()),_0x141513[_0x3e6d1d+0x1]&&'text'===_0x141513[_0x3e6d1d+0x1]['type']&&_0x560f96(_0x59f8a5,_0x141513[_0x3e6d1d+0x1]['item'])||(_0x8ee595[0x0]['_appendChild'](_0x59f8a5),_0x59f8a5=null),_0x446aaa[_0x446aaa['length']-0x1]+=_0x141513[_0x3e6d1d]['item']['offsetSize'],_0x141513[_0x3e6d1d]['nextPosition']=_0x2b1912['createPositionFromPath'](_0x4c15ff,_0x446aaa));for(let _0x4d4803=0x0;_0x4d4803<_0x141513['length'];_0x4d4803++){const _0x217228=_0x141513[_0x4d4803]['previousPosition'],_0xb21da1=_0x141513[_0x4d4803]['nextPosition'];for(const _0x1c9b3c of _0x141513[_0x4d4803]['markersStart'])_0x3c4994['set'](_0x1c9b3c,{'start':_0x217228,'end':null});_0x4a31f3('isRemoveSuggestion',_0x4d4803,_0x217228,_0xb21da1),_0x4a31f3('isAddSuggestion',_0x4d4803,_0x217228,_0xb21da1),_0x4a31f3('isRemoved',_0x4d4803,_0x217228,_0xb21da1),_0x4a31f3('isAdded',_0x4d4803,_0x217228,_0xb21da1);for(const _0x26e8cf of _0x141513[_0x4d4803]['markersEnd']){_0x3c4994['get'](_0x26e8cf)['end']=_0xb21da1;}}for(const [_0x233481,_0x2584c8]of _0x3c4994){const _0x1b2dcf=this['editor']['model']['createRange'](_0x2584c8['start'],_0x2584c8['end']);_0x4c15ff['markers']['set'](_0x233481,_0x1b2dcf);}return _0x420415['sort']((_0x54743a,_0x567ca3)=>{const _0x33d046=_0x4c15ff['markers']['get']('revision:'+_0x54743a['id']),_0xbafe5e=_0x4c15ff['markers']['get']('revision:'+_0x567ca3['id']);return _0x33d046['start']['isBefore'](_0xbafe5e['start'])?-0x1:_0x33d046['start']['isAfter'](_0xbafe5e['start'])?0x1:_0x33d046['end']['isBefore'](_0xbafe5e['end'])?-0x1:_0x33d046['end']['isAfter'](_0xbafe5e['end'])?0x1:'add'===_0x54743a['type']?-0x1:0x1;}),{'root':_0x4c15ff,'changes':_0x420415};function _0x4a31f3(_0x5943ff,_0x380d60,_0x43efeb,_0x2d1b46){const _0x401b94=!!_0x141513[_0x380d60][_0x5943ff],_0x52aff8=_0x401b94?_0x141513[_0x380d60][_0x5943ff]['userId']:null,_0x6e2c58=_0x380d60===_0x141513['length']-0x1,_0x28a32b=_0x3c9a5d[_0x5943ff][0x0],_0xe7c66=_0x173ba6['isObject'](_0x141513[_0x380d60]['item']);!_0x3d0288[_0x5943ff]&&_0x401b94?_0x3d0288[_0x5943ff]={'start':_0x43efeb,'tapeItem':_0x141513[_0x380d60],'userId':_0x52aff8,'type':_0x5943ff}:_0x3d0288[_0x5943ff]&&!_0x401b94?(_0x3d0288[_0x5943ff]['end']=_0x43efeb,_0x509482(_0x3d0288[_0x5943ff]),_0x3d0288[_0x5943ff]=null):_0x3d0288[_0x5943ff]&&_0x401b94&&_0x3d0288[_0x5943ff]['userId']!==_0x52aff8&&(_0x3d0288[_0x5943ff]['end']=_0x43efeb,_0x28a32b&&_0x28a32b['userId']===_0x3d0288[_0x5943ff]['userId']||_0x509482(_0x3d0288[_0x5943ff]),_0x3d0288[_0x5943ff]={'start':_0x43efeb,'tapeItem':_0x141513[_0x380d60],'userId':_0x52aff8,'type':_0x5943ff}),_0x3d0288[_0x5943ff]&&_0xe7c66&&('elementStart'!==_0x141513[_0x380d60]['type']||_0x28a32b&&_0x28a32b['userId']===_0x52aff8||_0x3c9a5d[_0x5943ff]['unshift']({'userId':_0x52aff8,'object':_0x141513[_0x380d60]['item'],'change':_0x3d0288[_0x5943ff]}),'elementEnd'===_0x141513[_0x380d60]['type']&&_0x28a32b&&_0x28a32b['object']===_0x141513[_0x380d60]['item']&&(_0x3c9a5d[_0x5943ff]['shift'](),_0x3d0288[_0x5943ff]=_0x28a32b['change'])),_0x3d0288[_0x5943ff]&&_0x6e2c58&&(_0x3d0288[_0x5943ff]['end']=_0x2d1b46,_0x509482(_0x3d0288[_0x5943ff]),_0x3d0288[_0x5943ff]=null);}function _0x509482({start:_0x413925,end:_0x4bc9f3,tapeItem:_0x3ce389,userId:_0x1e6ea2,type:_0x4a344e}){const _0x3c87e2=_0x3ce389['item'],_0x56de05=_0x2b1912['schema']['isBlock'](_0x3c87e2)&&!_0x2b1912['schema']['isLimit'](_0x3c87e2),_0x494a83=_0x413925['nodeAfter']==_0x4bc9f3['parent']&&_0x4bc9f3['isAtStart'];if(_0x56de05&&_0x494a83)return;const _0x31b006=_0x2b1912['createRange'](_0x413925,_0x4bc9f3),_0x362455=_0x4ffd6d['get'](_0x1e6ea2),_0x57f287=new r({'author':_0x362455,'type':'isAdded'==_0x4a344e||'isAddSuggestion'==_0x4a344e?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x4a344e||'isRemoveSuggestion'==_0x4a344e},'createdAt':new Date(),'rootName':_0x31dfba});_0x420415['push'](_0x57f287),_0x4c15ff['markers']['set']('revision:'+_0x57f287['id'],_0x31b006);}function _0x560f96(_0xde780e,_0xd6ec70){const _0x1def10=_0xde780e['getAttributes'](),_0x493aef=_0xd6ec70['getAttributes']();for(const _0x3f53e8 of _0x1def10){if(_0x3f53e8[0x1]!==_0xd6ec70['getAttribute'](_0x3f53e8[0x0]))return!0x1;_0x493aef['next']();}return _0x493aef['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x408a73=>{const _0x4bb029=_0x408a73['markerName']['split'](':')[0x1],_0x22cb26=this['_getChangeFromId'](_0x4bb029);if(!_0x22cb26)return null;const _0x30b80a='add'==_0x22cb26['type']?'insertion':'deletion',_0x4385c=['ck-suggestion-marker','ck-suggestion-marker-'+_0x30b80a];return _0x22cb26['data']['isSuggestion']&&_0x4385c['push']('ck-suggestion-marker-'+_0x30b80a+'-new'),this['activeChange']==_0x22cb26&&_0x4385c['push']('ck-suggestion-marker--active'),{'classes':_0x4385c,'attributes':{'data-change-id':_0x4bb029}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x3c7b9c=>{_0x3c7b9c['on']('element:pre',(_0x15622c,_0x402edb,_0x9b735e)=>{const _0x303192=_0x402edb['viewItem']['getChild'](0x0);if(!_0x303192||!_0x303192['is']('element','code'))return;if(!_0x9b735e['consumable']['consume'](_0x303192,{'attributes':['vid_start','vid_end']}))return;const _0x2de02f=_0x402edb['modelRange']['start']['nodeAfter'];_0x9b735e['writer']['setAttribute']('vid_start',_0x303192['getAttribute']('vid_start'),_0x2de02f),_0x9b735e['writer']['setAttribute']('vid_end',_0x303192['getAttribute']('vid_end'),_0x2de02f);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x469c4f=>{_0x469c4f['on']('element',(_0x1160c8,_0x3dc9d8,_0xe4774e)=>{if(!_0xe4774e['consumable']['consume'](_0x3dc9d8['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3dc9d8['modelRange']['isCollapsed'])return;const _0x1ca7a7=_0x3dc9d8['modelRange']['start']['nodeAfter'];_0x1ca7a7['hasAttribute']('vid_start')||_0x1ca7a7['hasAttribute']('vid')||(_0xe4774e['writer']['setAttribute']('vid_start',_0x3dc9d8['viewItem']['getAttribute']('vid_start'),_0x1ca7a7),_0xe4774e['writer']['setAttribute']('vid_end',_0x3dc9d8['viewItem']['getAttribute']('vid_end'),_0x1ca7a7));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x59718b=>_0x59718b['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x591e14,[,_0x2919bd])=>{['vid_start','vid_end','vid']['includes'](_0x2919bd)&&(_0x591e14['return']=!0x0,_0x591e14['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0xbdef9c=>{_0xbdef9c['on']('attribute:vid',(_0x4d1f58,_0x1106d5,_0x50c8f1)=>{if('\x20'!=_0x1106d5['item']['data']||_0x1106d5['item']['parent']['maxOffset']>0x1)return;if(!_0x50c8f1['consumable']['consume'](_0x1106d5['item'],_0x4d1f58['name']))return;const _0x481ac7=_0x50c8f1['writer'],_0x35e17e=_0x50c8f1['mapper']['toViewRange'](_0x1106d5['range']);_0x481ac7['wrap'](_0x35e17e,_0x481ac7['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x34b1c7){const _0x14bf12=_0x34b1c7['plugins']['get']('RevisionViewer');return(_0x18b7c5,_0x5d8788,_0x3485ea)=>{const _0x5bcf91=_0x5d8788['markerName']['split'](':')[0x1],_0x4958b9=_0x14bf12['_getChangeFromId'](_0x5bcf91);if(!_0x4958b9)return null;const _0x14a8ef='add'==_0x4958b9['type']?'split':'merge';if(!_0x3485ea['consumable']['test'](_0x5d8788['markerRange'],_0x18b7c5['name']))return;const _0x31fa2f=_0x5d8788['markerRange']['getWalker'](),_0x1cfcf=_0x5d8788['markerRange']['start'],_0x3fadf7=_0x34b1c7['model']['schema'];let _0x25fa2a=null,_0x51d47d=null,_0x460e41=!0x1,_0x5b9f1=!0x1;for(const _0xa6dd96 of _0x31fa2f){const _0xade07b=_0xa6dd96['item'];_0x460e41=_0x460e41||_0x3fadf7['isContent'](_0xade07b);const _0x34b5f8=_0x3485ea['mapper']['toViewElement'](_0xade07b);if(_0x34b5f8&&_0x34b5f8['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xa6dd96['type']&&(_0x3fadf7['isBlock'](_0xade07b)&&!_0x3fadf7['isLimit'](_0xade07b)&&(_0xade07b['nextSibling']||_0x1cfcf['isAtEnd']?_0x25fa2a&&_0x25fa2a['parent']==_0xade07b||(_0x25fa2a=_0xade07b,_0x128bf(_0xa6dd96['previousPosition']),_0x5b9f1=!0x0):_0x51d47d=_0x51d47d||_0xa6dd96['previousPosition']));}function _0x128bf(_0x2358c6){const _0x5dd25a=_0x3485ea['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x14a8ef}),_0x1e4b8b=_0x3485ea['mapper']['toViewPosition'](_0x2358c6);_0x4958b9['data']['isSuggestion']&&_0x3485ea['writer']['addClass']('ck-suggestion-marker-'+_0x14a8ef+'-new',_0x5dd25a),_0x14bf12['activeChange']==_0x4958b9&&_0x3485ea['writer']['addClass']('ck-suggestion-marker--active',_0x5dd25a),_0x3485ea['writer']['insert'](_0x1e4b8b,_0x5dd25a),_0x3485ea['mapper']['bindElementToMarker'](_0x5dd25a,_0x5d8788['markerName']);}_0x460e41||_0x5b9f1||!_0x51d47d||_0x128bf(_0x51d47d);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x548056,_0x20291b,_0x20f6c6)=>{const _0x59e32b=_0x20f6c6['mapper']['markerNameToElements'](_0x20291b['markerName']);if(_0x59e32b){for(const _0x3b1e4b of _0x59e32b)(_0x3b1e4b['hasClass']('ck-suggestion-marker-split')||_0x3b1e4b['hasClass']('ck-suggestion-marker-merge'))&&(_0x20f6c6['mapper']['unbindElementFromMarkerName'](_0x3b1e4b,_0x20291b['markerName']),_0x20f6c6['writer']['remove'](_0x3b1e4b));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x42c8f2,_0xbc4c4d,_0x138cda)=>{const _0x546484=_0xbc4c4d['markerName']['split'](':')[0x1],_0x4fac90=this['_getChangeFromId'](_0x546484);if(!_0x4fac90)return null;const _0x3ebfdd='add'==_0x4fac90['type']?'split':'merge';if(_0x138cda['consumable']['test'](_0xbc4c4d['markerRange'],_0x42c8f2['name']))for(const _0x14a14e of _0xbc4c4d['markerRange']['getItems']()){if(!_0x14a14e['is']('element','softBreak'))continue;const _0x2da241=_0x138cda['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3ebfdd}),_0x30ced4=_0x138cda['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x14a14e));_0x4fac90['data']['isSuggestion']&&_0x138cda['writer']['addClass']('ck-suggestion-marker-'+_0x3ebfdd+'-new',_0x2da241),this['activeChange']==_0x4fac90&&_0x138cda['writer']['addClass']('ck-suggestion-marker--active',_0x2da241),_0x138cda['writer']['insert'](_0x30ced4,_0x2da241),_0x138cda['mapper']['bindElementToMarker'](_0x2da241,_0xbc4c4d['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x3af3c6=>{for(const _0x4365e6 of this['editor']['model']['document']['getRootNames']()){const _0x1f85c0=this['editor']['model']['document']['getRoot'](_0x4365e6),_0x368bd9=this['editor']['editing']['view']['document']['getRoot'](_0x4365e6);if(_0x368bd9){const _0x4feaea=_0x1f85c0['getAttribute']('revisionHistoryAttachChange');if(_0x3af3c6['removeAttribute']('data-change-id',_0x368bd9),_0x3af3c6['removeClass']('ck-revision-history-root-add',_0x368bd9),_0x3af3c6['removeClass']('ck-revision-history-root-remove',_0x368bd9),_0x3af3c6['removeClass']('ck-revision-history-root--active',_0x368bd9),_0x4feaea){const _0x1fca5f=this['_getChangeFromId'](_0x4feaea);if(!_0x1fca5f)return null;_0x3af3c6['setAttribute']('data-change-id',_0x4feaea,_0x368bd9),_0x3af3c6['addClass']('ck-revision-history-root-'+_0x1fca5f['type'],_0x368bd9),this['activeChange']==_0x1fca5f&&_0x3af3c6['addClass']('ck-revision-history-root--active',_0x368bd9);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x5f57cf=>'revision-comment:'+_0x5f57cf,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x598381=>'revision-suggestion:'+_0x598381,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x34c33a=>({'name':'suggestion:'+_0x34c33a,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x51374d=>{const _0xbf3a2d=_0x51374d['markerName']['split'](':')[0x1];return'insertion'!=_0xbf3a2d&&'deletion'!=_0xbf3a2d?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0xbf3a2d]};}}),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',(_0x2cb1f2,_0x25191b,_0x2855ba)=>{const _0x53f1be=_0x2855ba['mapper']['markerNameToElements'](_0x25191b['markerName']);if(_0x53f1be){for(const _0x19655a of _0x53f1be)_0x19655a['is']('uiElement')&&(_0x2855ba['mapper']['unbindElementFromMarkerName'](_0x19655a,_0x25191b['markerName']),_0x2855ba['writer']['remove'](_0x19655a));}},{'priority':'high'});}['_getChangeFromId'](_0xb329c9){return this['_changeIdToChange']['get'](_0xb329c9);}['_getViewForChange'](_0x1a0042){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x1a0042),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0xb534c0,_0x18df94,_0x1e0748,_0x116be7)=>{_0x116be7&&this['_balloon']['remove'](_0x116be7),_0x1e0748&&(this['_balloon']['add']({'view':_0x1e0748,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x9637fc=this['editor']['editing'],_0x5b7bcd=this['_getChangeFromId'](_0x1e0748['changeId']);let _0x230bba;if(_0x5b7bcd['data']['isOnRoot']){const _0x4d4d62=_0x9637fc['view']['getDomRoot'](_0x5b7bcd['rootName']);_0x230bba=Array['from'](_0x4d4d62['getClientRects']());}else{const _0x1341cf=this['editor']['model']['markers']['get']('revision:'+_0x1e0748['changeId']);_0x230bba=Array['from'](_0x9637fc['mapper']['markerNameToElements'](_0x1341cf['name']))['map'](_0x3e87ef=>_0x9637fc['view']['domConverter']['mapViewToDom'](_0x3e87ef))['map'](_0x5b89ff=>Array['from'](_0x5b89ff['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x230bba[0x0];return _0x230bba['find'](_0x234948=>_0x234948['top']-0x3<=this['_activeViewTarget']['y']&&_0x234948['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x234948['left']-0x3<=this['_activeViewTarget']['x']&&_0x234948['right']+0x3>=this['_activeViewTarget']['x'])||_0x230bba[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x50a941,_0x2b3d32,_0x267155,_0x32f970)=>{this['activeView']=_0x267155?this['_getViewForChange'](_0x267155):null,this['editor']['model']['change'](()=>{const _0x5a9f42=this['editor']['editing'];_0x32f970&&(_0x32f970['data']['isOnRoot']?_0x5a9f42['view']['change'](_0x4e85c1=>{_0x4e85c1['removeClass']('ck-revision-history-root--active',_0x5a9f42['view']['document']['getRoot'](_0x32f970['rootName']));}):_0x5a9f42['reconvertMarker']('revision:'+_0x32f970['id'])),_0x267155&&(_0x267155['data']['isOnRoot']?_0x5a9f42['view']['change'](_0x192aa=>{_0x192aa['addClass']('ck-revision-history-root--active',_0x5a9f42['view']['document']['getRoot'](_0x267155['rootName']));}):_0x5a9f42['reconvertMarker']('revision:'+_0x267155['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x60be99,_0x26f515)=>{if(this['activeChange'])return;const _0x2fc433=this['_findChangeIdFromDomTarget'](_0x26f515['target']),_0x5782af=this['_changeIdToChange']['get'](_0x2fc433);_0x5782af?(this['_activeViewTarget']={'x':_0x26f515['domEvent']['x'],'y':_0x26f515['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x5782af)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x4fdc61,_0x4ac061)=>{const _0x3630ff=this['_findChangeIdFromDomTarget'](_0x4ac061['target']),_0x394214=this['_changeIdToChange']['get'](_0x3630ff);_0x394214?(this['_activeViewTarget']={'x':_0x4ac061['domEvent']['x'],'y':_0x4ac061['domEvent']['y']},_0x394214===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x394214):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x1fbcd8){do{const _0x1a519c=_0x1fbcd8['getAttribute']('data-change-id');if(_0x1a519c)return _0x1a519c;_0x1fbcd8=_0x1fbcd8['parent'];}while(_0x1fbcd8);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x8ed715=>{for(const _0x514782 of this['editor']['model']['markers'])_0x8ed715['removeMarker'](_0x514782);});}}function Z(_0x3270da,_0x58680a){return(_0x2ca118,_0x599167,_0x15d159)=>{if(!_0x15d159['consumable']['test'](_0x599167['markerRange'],_0x2ca118['name']))return;const _0x2f0377=_0x599167['markerRange']['getWalker'](),_0x2f1fec=_0x599167['markerRange']['start'],_0x117766=_0x3270da['model']['schema'];let _0x49c44a=null,_0x814d4b=null,_0x3e6765=!0x1,_0x2ed3f6=!0x1;for(const _0x41c45a of _0x2f0377){const _0x201c70=_0x41c45a['item'];_0x3e6765=_0x3e6765||_0x117766['isContent'](_0x201c70);const _0x2b719f=_0x15d159['mapper']['toViewElement'](_0x201c70);if(_0x2b719f&&_0x2b719f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x41c45a['type']&&(_0x117766['isBlock'](_0x201c70)&&!_0x117766['isLimit'](_0x201c70)&&(_0x201c70['nextSibling']||_0x2f1fec['isAtEnd']?_0x49c44a&&_0x49c44a['parent']==_0x201c70||(_0x49c44a=_0x201c70,_0x244955(_0x41c45a['previousPosition']),_0x2ed3f6=!0x0):_0x814d4b=_0x814d4b||_0x41c45a['previousPosition']));}function _0x244955(_0x20ea56){const _0x462e30=_0x15d159['mapper']['toViewPosition'](_0x20ea56),_0xa1d7df=_0x15d159['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x58680a});_0x15d159['writer']['insert'](_0x462e30,_0xa1d7df),_0x15d159['mapper']['bindElementToMarker'](_0xa1d7df,_0x599167['markerName']);}_0x3e6765||_0x2ed3f6||!_0x814d4b||_0x244955(_0x814d4b);};}class _t extends _0x4329f6{constructor(_0x57917d){super(_0x57917d);const _0x1353c0=_0x57917d['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x1353c0,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1353c0,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0xfc6ed8=this['editor'],_0x5a4dd9=_0xfc6ed8['plugins']['get'](d),_0x8b0d96=_0x5a4dd9['isReady']?_0x5a4dd9['diff']['newRevisionId']:null;_0xfc6ed8['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x8b0d96);}['refresh'](){const {isReady:_0x3746fa,isEnabled:_0x501378,repository:_0x5b4887,diff:_0xecd784}=this['editor']['plugins']['get'](d),_0x3cedf9=_0xecd784&&_0x5b4887['getLaterVisibleRevision'](_0xecd784['newRevisionId']);this['isEnabled']=_0x3746fa&&_0x501378&&Boolean(_0x3cedf9);}}class yt extends _0x4329f6{['_step'];constructor(_0x4e4432,{direction:_0x40faf0}){super(_0x4e4432);const _0x4bd434=_0x4e4432['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x40faf0?0x1:-0x1,this['listenTo'](_0x4bd434,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4bd434,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x4bd434,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x1aaad8=this['editor'],_0xb4ad65=_0x1aaad8['plugins']['get'](d),{isNavigationMode:_0x8336b4,currentChangeNumber:_0x2fc227}=_0xb4ad65;let _0x3e22d8;if(_0xb4ad65['activeChange']=_0x8336b4?_0xb4ad65['diff']['changes']['get'](_0x2fc227+this['_step']):_0xb4ad65['diff']['changes']['first'],_0xb4ad65['activeChange']['data']['isOnRoot'])_0x3e22d8=_0x1aaad8['editing']['view']['getDomRoot'](_0xb4ad65['activeChange']['rootName']);else{const _0x5789f6=_0x1aaad8['model']['markers']['get']('revision:'+_0xb4ad65['activeChange']['id']);_0x3e22d8=_0x6fa89f(_0x1aaad8['editing'],_0x5789f6);}_0x2a04c7({'target':_0x3e22d8,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x325500,currentChangeNumber:_0x1f9b22,numberOfChanges:_0x5903df,isReady:_0x3a7b33,isEnabled:_0xd51a13}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0xd51a13&&_0x3a7b33&&_0x5903df)&&(!_0x325500||(0x1===this['_step']?_0x1f9b22<_0x5903df-0x1:_0x1f9b22>0x0));}}class _i extends _0x21a70e{constructor(_0x458569){super(_0x458569);const _0xe7d7c5=this['bindTemplate'],_0x2467c5=new _0x5f241f(_0x458569),_0x4d619a=new _0x5f241f(_0x458569);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',(_0x5ba48f,_0x302ef3)=>_0x5ba48f&&_0x302ef3>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x30854f,_0xfdf446,_0x3795b3,_0x5d44c0)=>{if(!_0x30854f)return m(_0x458569,'Loading...');if(!_0x3795b3)return m(_0x458569,'No\x20changes');const _0x245f46=m(_0x458569,'NUMBER_OF_CHANGES',_0x3795b3);return _0x5d44c0?m(_0x458569,'X_OF_Y_CHANGES',[_0xfdf446+0x1,_0x3795b3]):_0x245f46;}),_0x2467c5['set']({'label':m(_0x458569,'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'}),_0x4d619a['set']({'label':m(_0x458569,'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'}),_0x2467c5['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x4d619a['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x2467c5['on']('execute',()=>this['fire']('execute','backward')),_0x4d619a['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',_0xe7d7c5['if']('_isStatusLabelVisible','ck-hidden',_0x3f0da0=>!_0x3f0da0)]},'children':[{'text':_0xe7d7c5['to']('isNavigationMode',_0x3d6563=>_0x3d6563?m(_0x458569,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x458569,'Total')+':\x20')}]},{'text':_0xe7d7c5['to']('_statusText')}]},new _0x5205f1(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x2467c5,_0x4d619a]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x495045{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x4db835=this['editor']['editing']['view'];_0x4db835['change'](_0x35c935=>{for(const _0x427367 of _0x4db835['document']['roots'])_0x35c935['addClass'](ce,_0x427367);});}['hide'](){const _0x2de2c6=this['editor']['editing']['view'];_0x2de2c6['change'](_0x58a2b0=>{for(const _0x44b875 of _0x2de2c6['document']['roots'])_0x58a2b0['removeClass'](ce,_0x44b875);});}}class g extends _0x495045{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x47abb0=this['editor'],_0x5991c1=_0x47abb0['plugins']['get'](d),_0x5b551c=_0x47abb0['plugins']['get'](le);_0x47abb0['ui']['componentFactory']['add']('exitToEditing',_0x189de5=>{const _0x2ddb6d=new _0x5f241f(_0x189de5);return _0x2ddb6d['set']({'label':m(_0x189de5,'Back\x20to\x20editing'),'icon':_0x3b9cd1['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x2ddb6d,'execute',()=>{_0x47abb0['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x2ddb6d;}),_0x47abb0['ui']['componentFactory']['add']('restoreRevision',_0x126c73=>{const _0x40e07e=new _0x5f241f(_0x126c73);return _0x40e07e['set']({'label':m(_0x126c73,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x40e07e['bind']('isEnabled')['to'](_0x47abb0['commands']['get']('restoreRevision')),this['listenTo'](_0x40e07e,'execute',()=>_0x47abb0['execute']('restoreRevision')),_0x40e07e;}),_0x47abb0['ui']['componentFactory']['add']('changesNavigation',_0x358345=>{const _0x14c424=new _i(_0x358345),_0x1ad43c=_0x47abb0['commands']['get']('showPreviousChange'),_0x336b6e=_0x47abb0['commands']['get']('showNextChange');return _0x14c424['bind']('isBackwardNavigationEnabled')['to'](_0x1ad43c,'isEnabled'),_0x14c424['bind']('isForwardNavigationEnabled')['to'](_0x336b6e,'isEnabled'),_0x14c424['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x5991c1),this['listenTo'](_0x14c424,'execute',(_0x492717,_0x4f95bb)=>{_0x47abb0['execute']('forward'===_0x4f95bb?'showNextChange':'showPreviousChange');}),_0x14c424;}),_0x5b551c['show'](),_0x5991c1['on']('change:isReady',(_0x722924,_0x1f53ba,_0x17e776)=>{_0x17e776?_0x5b551c['hide']():_0x5b551c['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x11a2ae,_0x33ece6){super(_0x11a2ae,_0x33ece6);const _0x4ed403=this['bindTemplate'];this['set']({'label':m(_0x11a2ae,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x11a2ae,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x4ed403['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 _0x3825a7=this['fieldView']['element'];this['_tooltipString']=_0x3825a7['scrollWidth']>_0x3825a7['clientWidth']&&_0x3825a7['value']||'';}}class ti extends _0x21a70e{constructor(_0x360475,_0x44102f,_0x2d6ff9){super(_0x360475);const _0x53ec74=new _0x3183a9();_0x53ec74['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 _0x218e4c=['ck','ck-revision-history-sidebar__revision-author'];_0x2d6ff9&&_0x218e4c['push']('ck-revision-history-sidebar__revision-author_creator');const _0x11e6ab=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x360475,_0x2d6ff9?'Revision\x20creator':'Revision\x20author')},'children':[_0x53ec74,_0x44102f['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x218e4c},'children':_0x11e6ab});}}function ni(_0x8ba812,_0x467a73){const _0xb3f470=_0x8ba812['bindTemplate'],_0x1d7b07=_0x8ba812['locale'],_0x1a7c40=_0x4cd44e(_0x1d7b07);_0x1a7c40['panelPosition']='sw';const _0x47ec27=function(_0x533d84,_0x5ae851){const _0xd139dd=function(_0x2eedb5,_0x1d9a2f){const _0xc5b1e=_0x2eedb5['locale'],_0x11e25f={'Compare\x20against\x20selected':m(_0xc5b1e,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0xc5b1e,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0xc5b1e,'Restore\x20this\x20revision')};return _0x1d9a2f['map'](_0x2bf363=>{const _0x504e14=_0x11e25f[_0x2bf363['name']];return _0x504e14&&_0x504e14!==_0x2bf363['name']&&(_0x2bf363['name']=_0x504e14),_0x2bf363;});}(_0x533d84,_0x5ae851),_0x287887=new _0xb59600();for(const _0x3f8327 of _0xd139dd){const _0x1fbb6b={'type':'button','model':new to({'label':_0x3f8327['name'],'class':_0x3f8327['class'],'withText':!0x0,'role':'menuitem','_action':_0x3f8327['action']})};_0x1fbb6b['model']['bind']('isEnabled')['to'](_0x533d84,'isActionsDropdownOpen',_0x5b28fa=>'function'!=typeof _0x3f8327['isEnabled']||(!_0x5b28fa||_0x3f8327['isEnabled'](_0x533d84))),_0x287887['add'](_0x1fbb6b);}return _0x287887;}(_0x8ba812,_0x467a73);return _0x8ba812['bind']('isActionsDropdownOpen')['to'](_0x1a7c40,'isOpen'),_0x1a7c40['buttonView']['set']({'label':m(_0x1d7b07,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3b9cd1['threeVerticalDots']}),_0x1a7c40['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0xb3f470['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0xb3f470['to'](_0x4a47db=>_0x4a47db['stopPropagation']())}}),_0x1a7c40['on']('execute',_0x30a361=>{_0x8ba812['isReady']&&'function'==typeof _0x30a361['source']['_action']&&_0x30a361['source']['_action'](_0x8ba812);}),_0x34d2c0(_0x1a7c40,_0x47ec27,{'role':'menu'}),_0x1a7c40['listenTo'](_0x8ba812,'change:isActionsDropdownOpen',(_0x18902f,_0x3d6ab6,_0x3b8a8e)=>{if(_0x3b8a8e)for(const _0x161710 of _0x1a7c40['listView']['items']){const _0x4d846c=_0x161710['children']['first'],_0x3b230b=_0x467a73['find'](_0x4450ac=>_0x4450ac['action']===_0x4d846c['_action'])['isVisible'];_0x161710['isVisible']=void 0x0===_0x3b230b||_0x3b230b(_0x8ba812);}}),_0x1a7c40;}class ai extends/* #__PURE__ -- @preserve */
26
+ _0x53a7fd(_0x21a70e){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x3c61f6,_0x590357,_0xfadbea,_0x5f3c2d){super(_0x3c61f6);const _0x2aa90f=this['bindTemplate'],_0x59f854=function(_0x18369e,_0x591418){const _0x50d808=Array['from'](_0x591418['authors'])['filter'](_0x1da71e=>_0x1da71e!=_0x591418['creator']);return _0x591418['creator']&&_0x50d808['unshift'](_0x591418['creator']),_0x50d808['map'](_0x50edb9=>new ti(_0x18369e,_0x50edb9,_0x50edb9==_0x591418['creator']));}(_0x3c61f6,_0x590357);this['id']=_0x590357['id'],this['_revision']=_0x590357,this['_requireRevisionName']=_0x5f3c2d,this['bind']('name','createdAt')['to'](_0x590357),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x459256=>{return _0x24a530=_0x3c61f6['uiLanguage'],(_0x5b04ae=_0x459256)['toLocaleDateString'](_0x24a530,{'month':'long','day':'numeric'})+',\x20'+_0x5b04ae['toLocaleTimeString'](_0x24a530,{'hour':'numeric','minute':'numeric'});var _0x24a530,_0x5b04ae;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x3c61f6,_0x2f6061),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x185d36=>_0x185d36||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0xccd040,_0x219ff3)=>_0xccd040&&_0x219ff3),this['revisionActionsView']=_0xfadbea&&_0xfadbea['length']?ni(this,_0xfadbea):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x2aa90f['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x2aa90f['if']('isEnabled','ck-disabled',_0x111a90=>!_0x111a90),_0x2aa90f['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x2aa90f['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x2aa90f['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':_0x2aa90f['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':_0x59f854}]},this['revisionActionsView']],'on':{'click':_0x2aa90f['to'](_0x1edc86=>{_0x1edc86['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x517ff5=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x517ff5,'change',()=>{this['_requireRevisionName']&&!_0x517ff5['value']||this['fire']('setName',{'id':this['id'],'name':_0x517ff5['value']}),_0x517ff5['value']||(_0x517ff5['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(_0x5d99f9,_0x10b2b6){const _0x1b6c39=_0x1e2f43['fromJSDate'](_0x5d99f9)['setLocale'](_0x10b2b6),_0x18f4e5=_0x1e2f43['local'](),_0x1cd282=_0x18f4e5['minus']({'days':0x1})['startOf']('day');let _0xfd56d1,_0x4f25d9;return _0x1b6c39['hasSame'](_0x18f4e5,'day')?(_0xfd56d1=_0x1b6c39['startOf']('day')['toJSDate'](),_0x4f25d9=_0x1b6c39['toRelativeCalendar']()):_0x1b6c39['hasSame'](_0x1cd282,'day')?(_0xfd56d1=_0x1cd282['toJSDate'](),_0x4f25d9=_0x1b6c39['toRelativeCalendar']()):_0x1b6c39['hasSame'](_0x18f4e5,'week')?(_0xfd56d1=_0x1b6c39['startOf']('week')['toJSDate'](),_0x4f25d9=_0x1b6c39['weekdayLong']||''):_0x1b6c39['hasSame'](_0x18f4e5,'year')?(_0xfd56d1=_0x1b6c39['startOf']('month')['toJSDate'](),_0x4f25d9=_0x1b6c39['monthLong']||''):(_0xfd56d1=_0x1b6c39['startOf']('year')['toJSDate'](),_0x4f25d9=String(_0x1b6c39['year'])),{'startDate':_0xfd56d1,'localizedPeriodName':_0x4f25d9};}class mi extends _0x21a70e{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2a8cae,_0x161df9,_0x279ca5,_0x21e6fb){super(_0x2a8cae);const _0x441551=di(_0x161df9,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x161df9,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x279ca5,this['_requireRevisionName']=_0x21e6fb,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':_0x441551}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x315bc3){const _0x279e5e=new ai(this['locale'],_0x315bc3,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x279e5e);}['removeRevision'](_0x35d8a4){const _0x2fae04=this['revisionViews']['find'](_0x313473=>_0x313473['id']===_0x35d8a4['id']);this['revisionViews']['remove'](_0x2fae04);}}class as extends _0x21a70e{constructor(_0x456c2f){super(_0x456c2f);const _0x1de0ba=new _0x3183a9();_0x1de0ba['content']=_0x3b9cd1['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x1de0ba,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x456c2f,'Revision\x20history')]}]});}}class ci extends _0x21a70e{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x280203,_0x2bd749,_0x1a83c0,_0x417dae){super(_0x280203);const _0x476d8c=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x2bd749,this['_revisionActions']=_0x1a83c0,this['_requireRevisionName']=_0x417dae,this['on']('select',(_0xca6414,_0x1ff652)=>{this['fire']('revisionSelected',_0x1ff652);}),this['on']('setName',(_0x33dd84,_0x5d2ec8)=>{this['fire']('revisionSetName',_0x5d2ec8);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x280203),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x476d8c['if']('isEnabled','ck-disabled',_0x4b500d=>!_0x4b500d)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x336931 of this['_revisions'])this['_addRevision'](_0x336931);this['_revisions']['on']('add',(_0x505695,_0x47a40b)=>{this['_addRevision'](_0x47a40b);}),this['_revisions']['on']('remove',(_0x478fd9,_0x2168f9)=>{this['_removeRevision'](_0x2168f9);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x5d6e94=>_0x5d6e94['revisionViews']['map'](_0x47f529=>_0x47f529))['flat']();}['selectRevision'](_0x27ccfd){for(const _0x4f5cf6 of this['revisionViews'])_0x27ccfd&&_0x27ccfd['id']===_0x4f5cf6['id']?_0x4f5cf6['select']():_0x4f5cf6['deselect']();}['highlightRevisions'](_0x3bcb4d){for(const _0xe80f0a of this['revisionViews'])_0x3bcb4d['some'](({id:_0x2c8dd7})=>_0x2c8dd7===_0xe80f0a['id'])?_0xe80f0a['highlight']():_0xe80f0a['unhighlight']();}['_addRevision'](_0x3b1ed3){const _0x1270fa=di(_0x3b1ed3['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0xbd36fc=this['timePeriodViews']['get'](0x0);_0xbd36fc&&_0xbd36fc['startDate']['getTime']()===_0x1270fa['getTime']()||(_0xbd36fc=new mi(this['locale'],_0x1270fa,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0xbd36fc)),_0xbd36fc['addRevision'](_0x3b1ed3);}['_removeRevision'](_0x215a7b){const _0x48a2f7=di(_0x215a7b['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x48a2f7)['removeRevision'](_0x215a7b);}['_getTimePeriodViewByStartDate'](_0x39c6d4){return this['timePeriodViews']['find'](_0x27bb4d=>_0x27bb4d['startDate']['getTime']()===_0x39c6d4['getTime']());}}class w extends _0x495045{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- yt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x51b3a7){super(_0x51b3a7),this['_revisionViewer']=_0x51b3a7['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x3dd27a=this['_revisionsRepository']['_revisions'],_0x3401cf=this['_createRevisionActions'](),_0x5ab1d7=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x3dd27a,_0x3401cf,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',(_0x5e4e32,_0x2c032c)=>{_0x2c032c['revisionViews']['on']('add',(_0x1795dd,_0x261d5d)=>{_0x261d5d['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)),_0x5ab1d7['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x1c24b2=this['_revisionsRepository']['getRevision'](0x0);if(_0x1c24b2){const _0xdeea1b=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x1c24b2['id']);this['_revisionViewer']['compare'](_0x1c24b2,_0xdeea1b);}}['_handleRevisionSelected'](_0x469b16,_0x585f49){const _0x54c2e0=this['_revisionsRepository']['getRevision'](_0x585f49['id']),_0x25c8af=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x54c2e0['id']);this['_revisionViewer']['compare'](_0x54c2e0,_0x25c8af);}['_handleRevisionSetName'](_0x441305,_0x411222){this['_revisionsRepository']['getRevision'](_0x411222['id'])['setName'](_0x411222['name']);}['_handleDiffChange'](_0x225651,_0x342ba5,_0x158b06){const _0x99dc78=this['_revisionsRepository']['getRevisionsInDiff'](_0x158b06);_0x99dc78['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x99dc78),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x99dc78[0x0]));}['_createRevisionActions'](){const _0x17fd94=this['editor'],_0x22d2c0=w['availableRevisionActions'],_0x14c902=_0x17fd94['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x14c902['length'])return _0x14c902['map'](_0x1d055c=>{const _0x52aa4a='string'==typeof _0x1d055c?Object['assign']({},_0x22d2c0[_0x1d055c]):_0x1d055c;return _0x52aa4a['action']=_0x52aa4a['action']['bind'](this,_0x17fd94),_0x52aa4a['isVisible']&&(_0x52aa4a['isVisible']=_0x52aa4a['isVisible']['bind'](this,_0x17fd94)),_0x52aa4a;});}}function yt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x444cec},_0x27eb88)=>{const _0x334b9a=_0x444cec['get'](d),_0x21b870=_0x334b9a['repository'];let _0x20bb4b=_0x334b9a['diff']['newRevisionId'],_0x47f5dc=_0x27eb88['id'];_0x21b870['getIndex'](_0x20bb4b)>_0x21b870['getIndex'](_0x47f5dc)&&([_0x20bb4b,_0x47f5dc]=[_0x47f5dc,_0x20bb4b]),_0x334b9a['compare'](_0x20bb4b,_0x47f5dc);},'isVisible':({plugins:_0x17a498},_0x542b42)=>{const _0x4a6075=_0x17a498['get'](d);return!(_0x4a6075['repository']['getRevisionsInDiff'](_0x4a6075['diff'])['length']>0x2)&&!_0x542b42['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x52b6cb,{id:_0x5b58aa})=>{_0x52b6cb['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5b58aa);},'isVisible':({plugins:_0x2066ce},_0x23e9b4)=>!!_0x2066ce['get'](d)['repository']['getLaterVisibleRevision'](_0x23e9b4['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x529925},{id:_0x16267c,revisionNameView:_0x1f9c51})=>{const _0x24167e=_0x529925['get'](d),_0x162bdd=_0x24167e['repository']['getEarlierVisibleRevision'](_0x16267c);_0x24167e['compare'](_0x16267c,_0x162bdd),_0x1f9c51['focus'](),_0x1f9c51['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x50e609,_0x1aa144){super(_0x50e609),this['_view']=_0x1aa144,this['_toolbarConfig']=ot(_0x50e609['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x4d0f4c){const _0x3950db=this['editor'],_0x565c49=this['view'],_0xf6e2fe=_0x3950db['editing']['view'],_0x4294a9=_0x565c49['editable'],_0xd2810b=_0xf6e2fe['document']['getRoot']();_0x4294a9['name']=_0xd2810b['rootName'],_0x565c49['render']();const _0x215d1e=_0x4294a9['element'];this['setEditableElement'](_0x4294a9['name'],_0x215d1e),_0x565c49['editable']['bind']('isFocused')['to'](this['focusTracker']),_0xf6e2fe['attachDomRoot'](_0x215d1e),this['_elementReplacer']['replace'](_0x4d0f4c,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0xe627a1=this['view'],_0x29d58d=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x29d58d['detachDomRoot'](_0xe627a1['editable']['name']),_0xe627a1['destroy']();}['_initToolbar'](){const _0x2a82cc=this['view'];_0x2a82cc['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x2a82cc['stickyPanel']['limiterElement']=_0x2a82cc['element'],_0x2a82cc['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x437bd5})=>_0x437bd5),_0x2a82cc['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x2a82cc['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x128902,_0x4be904,_0x59c760={}){super(_0x128902),this['stickyPanel']=new ut(_0x128902),this['toolbar']=new lt(_0x128902,{'shouldGroupWhenFull':_0x59c760['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x128902,_0x4be904);}['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(_0x4410f6,_0x4bb1c6){super(_0x4bb1c6),this['sourceElement']=_0x4410f6,this['model']['document']['createRoot']();const _0x273095=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x273095);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x519088,_0x5b149c){const _0x50c50a=new this(_0x519088,_0x5b149c);return await _0x50c50a['initPlugins'](),await _0x50c50a['ui']['init'](_0x519088),await _0x50c50a['data']['init'](_0x50c50a['config']['get']('initialData')||''),_0x50c50a['fire']('ready'),_0x50c50a;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class bt extends _0x32cb53{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x28be13){function _0x1c1488(_0x4795ee){return _0x4795ee['map'](_0x5804b1=>String['fromCharCode'](_0x5804b1))['join']('');}super(_0x28be13),this['result']='end',_0x28be13[_0x1c1488([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c1488([0x76,0x69,0x65,0x77])][_0x1c1488([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1c1488([0x61,0x75,0x74,0x6f]),_0x28be13[_0x1c1488([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1c1488([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1c1488([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1c1488([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1c1488([0x6f,0x6b])});}}class k extends _0x32cb53{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x476a6e){if(super(_0x476a6e),!this['editor']['config']['get']('revisionHistory'))throw new _0x332087('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x5d12f1=>this['_showRevisionViewer']({..._0x5d12f1,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x36fb4b=>this['_closeRevisionViewer'](_0x36fb4b)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0xd50b28=>this['_restoreRevision'](_0xd50b28)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x5265ab){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x5265ab;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x438ba6){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x438ba6);}['getRevision'](_0x14bc70){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x14bc70);}['getRevisions'](_0x5a2fae){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x5a2fae||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x2de50b=this['editor'],_0x181fb0=_0x530fd4(_0x2de50b,p),_0x5447c6=_0x2de50b['plugins']['get']('RevisionTracker'),_0x203d59=_0x2de50b['plugins']['get']('Users')['users'];return _0x181fb0['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x181fb0['lazyRoots'],(_0x181fb0['plugins']['push'](bt,d,g,class extends _0x32cb53{static get['requires'](){return[d,'Users'];}['init'](){const _0xd44fbb=this['editor']['plugins']['get']('Users');for(const _0x10d800 of _0x203d59)_0x10d800['isAnonymous']||_0xd44fbb['getUser'](_0x10d800['id'])||_0xd44fbb['addUser'](_0x10d800);const _0x548c1f=_0x5447c6['repository']['getRevisions']();let _0x2b4362=null;const _0x22d8eb=this['editor']['plugins']['get']('RevisionViewer');_0x22d8eb['adapter']=_0x5447c6['adapter'],_0x22d8eb['bind']('isEnabled')['to'](_0x5447c6),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x2de50b,'isReadOnly',_0x26d5f6=>!_0x26d5f6);for(const _0x396a82 of _0x548c1f){const _0x169015=null===_0x396a82['creator'];if(_0x169015&&_0x396a82['toVersion']===_0x396a82['fromVersion'])continue;const _0xd40860=_0x396a82['toJSON']();_0x22d8eb['addRevisionData'](_0xd40860,(_0x3ca84c,_0x2ddf32,_0x4e3dd1)=>{if(_0x169015){if(_0x2b4362)_0x2b4362['_update'](_0x3ca84c,_0x2ddf32);else{if(!_0x2ddf32){const _0x4bc67e=_0x4e3dd1['toJSON']();_0x4bc67e['id']=_0x56c913(),_0x5447c6['saveRevision'](_0x4bc67e,_0x4e3dd1['toVersion'])['then'](_0x257b80=>{_0x2b4362=_0x257b80;});}}}else _0x396a82['_update'](_0x3ca84c,_0x2ddf32);});}}},w),_0x181fb0);}['_enhanceShowRevisionViewerCallback'](){const _0x580875=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x4ef712=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x1d1470=this['editor']['plugins']['get']('Autosave');await _0x1d1470['save']();}else await _0x4ef712['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x21accd=this['editor']['plugins']['get']('Dialog');_0x21accd['isOpen']&&_0x21accd['hide']();}const _0x22ed31=this['_getRevisionViewerEditorConfig']();return _0x580875(_0x22ed31)['then'](_0x25d89e=>{return(this['_viewerEditor']=_0x25d89e,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x25d89e;})['catch'](_0x41a6e0=>(console['error'](_0x41a6e0),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x13f84b=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'](),_0x13f84b(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x4d7db4=this['editor']['plugins']['get']('Annotations');_0x4d7db4['refreshVisibility'](),_0x4d7db4['refreshPositioning']();}})));}['_showRevisionViewer'](_0x245d01){const _0x2327fa=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x2f8e25=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x48e4ae=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x48e4ae,_0x245d01)['then'](_0x14aaec=>(_0x2f8e25['style']['display']='block',_0x2327fa['style']['display']='none',_0x14aaec));}['_closeRevisionViewer'](_0x14d2e4){const _0x5ad408=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x5ad408['style']['display']='',_0x14d2e4['destroy']();}async['_restoreRevision'](_0x3ef204){const _0xe0e206=this['editor'],_0x29f138=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x43c87e=_0xe0e206['plugins']['get']('RevisionTracker'),_0x4e7680=_0x29f138['repository']['getRevision'](_0x3ef204);let _0x5dba44,_0x3d219d,_0x1ce094;try{_0x5dba44=await _0x29f138['getRevisionData'](_0x4e7680),_0x3d219d=await _0x29f138['getRevisionRootsAttributes'](_0x4e7680);}catch(_0x32b817){return void console['error'](_0x32b817);}_0xe0e206['model']['change'](_0x280313=>{for(const _0x3d67e3 of Array['from'](_0xe0e206['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x280313['removeMarker'](_0x3d67e3);}),_0x29f138['isReady']=!0x1,_0xe0e206['model']['enqueueChange'](_0x310db2=>{_0x310db2['setSelection'](null),_0x310db2['removeSelectionAttribute'](_0xe0e206['model']['document']['selection']['getAttributeKeys']());const _0x3b18eb=Object['keys'](_0x5dba44);for(const _0x29088e of _0xe0e206['model']['document']['roots'])'$graveyard'!=_0x29088e['rootName']&&_0x29088e['isAttached']()&&!_0x3b18eb['includes'](_0x29088e['rootName'])&&_0x310db2['detachRoot'](_0x29088e);for(const _0x49c579 of _0x3b18eb){let _0x54eb3f=_0xe0e206['model']['document']['getRoot'](_0x49c579);_0x54eb3f&&_0x54eb3f['isAttached']()||(_0x54eb3f=_0x310db2['addRoot'](_0x49c579));const _0x430450=_0x3d219d[_0x49c579],_0x315a12=Object['keys'](_0x430450),_0x279c1c=_0x5dba44[_0x49c579];for(const _0x3e0e3e of _0x54eb3f['getAttributeKeys']())_0x315a12['includes'](_0x3e0e3e)||_0x310db2['removeAttribute'](_0x3e0e3e,_0x54eb3f);for(const _0x7f84c6 of _0x315a12)_0x310db2['setAttribute'](_0x7f84c6,_0x3d219d[_0x49c579][_0x7f84c6],_0x54eb3f);_0x310db2['remove'](_0x310db2['createRangeIn'](_0x54eb3f)),_0x310db2['insert'](_0xe0e206['data']['parse'](_0x279c1c,_0x54eb3f),_0x54eb3f,0x0);}});const _0x568ae3=m(_0xe0e206['locale'],'Restored');if(_0x4e7680['name'])_0x1ce094=-0x1==_0x4e7680['name']['indexOf'](_0x568ae3)?_0x568ae3+':\x20'+_0x4e7680['name']:_0x4e7680['name'];else _0x1ce094=_0x568ae3+':\x20'+(_0x4e7680['createdAt']['toLocaleDateString'](_0xe0e206['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x4e7680['createdAt']['toLocaleTimeString'](_0xe0e206['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x43c87e['saveRevision']({'name':_0x1ce094}),_0x29f138['isReady']=!0x0,_0xe0e206['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,de 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(_0x21aa4e){super(_0x21aa4e),this['_revisionViewer']=_0x21aa4e['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x4440ee=this['_revisionsRepository']['_revisions'],_0x4649f4=this['_createRevisionActions'](),_0x8ed7fd=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0x4440ee,_0x4649f4,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',(_0x180f4f,_0x2ed8b7)=>{_0x2ed8b7['revisionViews']['on']('add',(_0x1fd7a8,_0xf06de4)=>{_0xf06de4['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)),_0x8ed7fd['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x4b784f=this['_revisionsRepository']['getRevision'](0x0);if(_0x4b784f){const _0x57562b=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4b784f['id']);this['_revisionViewer']['compare'](_0x4b784f,_0x57562b);}}['_handleRevisionSelected'](_0x31f66c,_0x414bc9){const _0x14c605=this['_revisionsRepository']['getRevision'](_0x414bc9['id']),_0x557aa5=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x14c605['id']);this['_revisionViewer']['compare'](_0x14c605,_0x557aa5);}['_handleRevisionSetName'](_0x172ca0,_0x247c99){this['_revisionsRepository']['getRevision'](_0x247c99['id'])['setName'](_0x247c99['name']);}['_handleDiffChange'](_0x48a5f2,_0x1daa96,_0x3f4f8f){const _0x20d2fb=this['_revisionsRepository']['getRevisionsInDiff'](_0x3f4f8f);_0x20d2fb['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x20d2fb),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x20d2fb[0x0]));}['_createRevisionActions'](){const _0x19e489=this['editor'],_0x25aec7=w['availableRevisionActions'],_0x46aabe=_0x19e489['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x46aabe['length'])return _0x46aabe['map'](_0x21481=>{const _0x8fbb30='string'==typeof _0x21481?Object['assign']({},_0x25aec7[_0x21481]):_0x21481;return _0x8fbb30['action']=_0x8fbb30['action']['bind'](this,_0x19e489),_0x8fbb30['isVisible']&&(_0x8fbb30['isVisible']=_0x8fbb30['isVisible']['bind'](this,_0x19e489)),_0x8fbb30;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x514042},_0x29a539)=>{const _0x441b36=_0x514042['get'](d),_0x42665c=_0x441b36['repository'];let _0x5e2cfc=_0x441b36['diff']['newRevisionId'],_0x45a3fd=_0x29a539['id'];_0x42665c['getIndex'](_0x5e2cfc)>_0x42665c['getIndex'](_0x45a3fd)&&([_0x5e2cfc,_0x45a3fd]=[_0x45a3fd,_0x5e2cfc]),_0x441b36['compare'](_0x5e2cfc,_0x45a3fd);},'isVisible':({plugins:_0x59d9be},_0x2523cc)=>{const _0x3b3b51=_0x59d9be['get'](d);return!(_0x3b3b51['repository']['getRevisionsInDiff'](_0x3b3b51['diff'])['length']>0x2)&&!_0x2523cc['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x189599,{id:_0x31ecd3})=>{_0x189599['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x31ecd3);},'isVisible':({plugins:_0x214fe1},_0x1160fe)=>!!_0x214fe1['get'](d)['repository']['getLaterVisibleRevision'](_0x1160fe['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x1f0fa8},{id:_0x1a23f4,revisionNameView:_0x392363})=>{const _0x56cbe7=_0x1f0fa8['get'](d),_0x1389fe=_0x56cbe7['repository']['getEarlierVisibleRevision'](_0x1a23f4);_0x56cbe7['compare'](_0x1a23f4,_0x1389fe),_0x392363['focus'](),_0x392363['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x571403,_0x371af8){super(_0x571403),this['_view']=_0x371af8,this['_toolbarConfig']=ot(_0x571403['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x140c1b){const _0x1c8939=this['editor'],_0x13d9fc=this['view'],_0x1ba612=_0x1c8939['editing']['view'],_0x41ad95=_0x13d9fc['editable'],_0x91a93f=_0x1ba612['document']['getRoot']();_0x41ad95['name']=_0x91a93f['rootName'],_0x13d9fc['render']();const _0xe68563=_0x41ad95['element'];this['setEditableElement'](_0x41ad95['name'],_0xe68563),_0x13d9fc['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x1ba612['attachDomRoot'](_0xe68563),this['_elementReplacer']['replace'](_0x140c1b,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x202dbb=this['view'],_0x49cb72=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x49cb72['detachDomRoot'](_0x202dbb['editable']['name']),_0x202dbb['destroy']();}['_initToolbar'](){const _0x425ac4=this['view'];_0x425ac4['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x425ac4['stickyPanel']['limiterElement']=_0x425ac4['element'],_0x425ac4['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0xaf8e19})=>_0xaf8e19),_0x425ac4['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x425ac4['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x2db279,_0x3037fa,_0x3fe624={}){super(_0x2db279),this['stickyPanel']=new ut(_0x2db279),this['toolbar']=new lt(_0x2db279,{'shouldGroupWhenFull':_0x3fe624['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x2db279,_0x3037fa);}['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(_0x315b0b,_0x1b3f1e){super(_0x1b3f1e),this['sourceElement']=_0x315b0b,this['model']['document']['createRoot']();const _0x1d5282=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x1d5282);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x4e1ef6,_0x46efc8){const _0x4b832b=new this(_0x4e1ef6,_0x46efc8);return await _0x4b832b['initPlugins'](),await _0x4b832b['ui']['init'](_0x4e1ef6),await _0x4b832b['data']['init'](_0x4b832b['config']['get']('initialData')||''),_0x4b832b['fire']('ready'),_0x4b832b;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x495045{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5545d3){function _0x1217a0(_0x482957){return _0x482957['map'](_0x2778c8=>String['fromCharCode'](_0x2778c8))['join']('');}super(_0x5545d3),this['result']='end',_0x5545d3[_0x1217a0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1217a0([0x76,0x69,0x65,0x77])][_0x1217a0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1217a0([0x61,0x75,0x74,0x6f]),_0x5545d3[_0x1217a0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1217a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1217a0([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1217a0([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1217a0([0x6f,0x6b])});}}class k extends _0x495045{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x2f8a77){if(super(_0x2f8a77),!this['editor']['config']['get']('revisionHistory'))throw new _0x3a49a4('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4f1fcf=>this['_showRevisionViewer']({..._0x4f1fcf,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x4b2d71=>this['_closeRevisionViewer'](_0x4b2d71)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x456d8e=>this['_restoreRevision'](_0x456d8e)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4d782b){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4d782b;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x13a739){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x13a739);}['getRevision'](_0xe3a55c){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0xe3a55c);}['getRevisions'](_0x562e82){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x562e82||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x5e7951=this['editor'],_0x3011f7=_0x5cd1f0(_0x5e7951,p),_0x4d9130=_0x5e7951['plugins']['get']('RevisionTracker'),_0x1078ea=_0x5e7951['plugins']['get']('Users')['users'];return _0x3011f7['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x3011f7['lazyRoots'],(_0x3011f7['plugins']['push'](Rt,d,g,class extends _0x495045{static get['requires'](){return[d,'Users'];}['init'](){const _0x54a106=this['editor']['plugins']['get']('Users');for(const _0x12dea7 of _0x1078ea)_0x12dea7['isAnonymous']||_0x54a106['getUser'](_0x12dea7['id'])||_0x54a106['addUser'](_0x12dea7);const _0x2bc50e=_0x4d9130['repository']['getRevisions']();let _0x492ad0=null;const _0x5ab251=this['editor']['plugins']['get']('RevisionViewer');_0x5ab251['adapter']=_0x4d9130['adapter'],_0x5ab251['bind']('isEnabled')['to'](_0x4d9130),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x5e7951,'isReadOnly',_0xd2dc03=>!_0xd2dc03);for(const _0x58fc2b of _0x2bc50e){const _0x3f3754=null===_0x58fc2b['creator'];if(_0x3f3754&&_0x58fc2b['toVersion']===_0x58fc2b['fromVersion'])continue;const _0x51367e=_0x58fc2b['toJSON']();_0x5ab251['addRevisionData'](_0x51367e,(_0x156247,_0xf1c57d,_0x575002)=>{if(_0x3f3754){if(_0x492ad0)_0x492ad0['_update'](_0x156247,_0xf1c57d);else{if(!_0xf1c57d){const _0x26d2db=_0x575002['toJSON']();_0x26d2db['id']=_0x22b130(),_0x4d9130['saveRevision'](_0x26d2db,_0x575002['toVersion'])['then'](_0x3d8aaa=>{_0x492ad0=_0x3d8aaa;});}}}else _0x58fc2b['_update'](_0x156247,_0xf1c57d);});}}},w),_0x3011f7);}['_enhanceShowRevisionViewerCallback'](){const _0x308994=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x4c2706=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x5cd17b=this['editor']['plugins']['get']('Autosave');await _0x5cd17b['save']();}else await _0x4c2706['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x29f7ca=this['editor']['plugins']['get']('Dialog');_0x29f7ca['isOpen']&&_0x29f7ca['hide']();}const _0x1108fe=this['_getRevisionViewerEditorConfig']();return _0x308994(_0x1108fe)['then'](_0x11e8ab=>{return(this['_viewerEditor']=_0x11e8ab,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x11e8ab;})['catch'](_0x3389ba=>(console['error'](_0x3389ba),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x57bad2=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'](),_0x57bad2(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x3f9388=this['editor']['plugins']['get']('Annotations');_0x3f9388['refreshVisibility'](),_0x3f9388['refreshPositioning']();}})));}['_showRevisionViewer'](_0x2dac0e){const _0x159c56=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x1be374=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x59476b=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x59476b,_0x2dac0e)['then'](_0x571673=>(_0x1be374['style']['display']='block',_0x159c56['style']['display']='none',_0x571673));}['_closeRevisionViewer'](_0x405876){const _0xf3a50b=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0xf3a50b['style']['display']='',_0x405876['destroy']();}async['_restoreRevision'](_0x3c7d1e){const _0x5847d2=this['editor'],_0xd6f9d0=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x5a5085=_0x5847d2['plugins']['get']('RevisionTracker'),_0x3b2a78=_0xd6f9d0['repository']['getRevision'](_0x3c7d1e);let _0x2edbac,_0x517392,_0x377a71;try{_0x2edbac=await _0xd6f9d0['getRevisionData'](_0x3b2a78),_0x517392=await _0xd6f9d0['getRevisionRootsAttributes'](_0x3b2a78);}catch(_0x15625b){return void console['error'](_0x15625b);}_0x5847d2['model']['change'](_0x5c0ddf=>{for(const _0x42b36f of Array['from'](_0x5847d2['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x5c0ddf['removeMarker'](_0x42b36f);}),_0xd6f9d0['isReady']=!0x1,_0x5847d2['model']['enqueueChange'](_0x44a2ee=>{_0x44a2ee['setSelection'](null),_0x44a2ee['removeSelectionAttribute'](_0x5847d2['model']['document']['selection']['getAttributeKeys']());const _0x38255b=Object['keys'](_0x2edbac);for(const _0x5c51d5 of _0x5847d2['model']['document']['roots'])'$graveyard'!=_0x5c51d5['rootName']&&_0x5c51d5['isAttached']()&&!_0x38255b['includes'](_0x5c51d5['rootName'])&&_0x44a2ee['detachRoot'](_0x5c51d5);for(const _0x45600d of _0x38255b){let _0xd76b8c=_0x5847d2['model']['document']['getRoot'](_0x45600d);_0xd76b8c&&_0xd76b8c['isAttached']()||(_0xd76b8c=_0x44a2ee['addRoot'](_0x45600d));const _0x3b1085=_0x517392[_0x45600d],_0x2ae4b2=Object['keys'](_0x3b1085),_0x2075c8=_0x2edbac[_0x45600d];for(const _0x2cb8ef of _0xd76b8c['getAttributeKeys']())_0x2ae4b2['includes'](_0x2cb8ef)||_0x44a2ee['removeAttribute'](_0x2cb8ef,_0xd76b8c);for(const _0x393d59 of _0x2ae4b2)_0x44a2ee['setAttribute'](_0x393d59,_0x517392[_0x45600d][_0x393d59],_0xd76b8c);_0x44a2ee['remove'](_0x44a2ee['createRangeIn'](_0xd76b8c)),_0x44a2ee['insert'](_0x5847d2['data']['parse'](_0x2075c8,_0xd76b8c),_0xd76b8c,0x0);}});const _0x406f50=m(_0x5847d2['locale'],'Restored');if(_0x3b2a78['name'])_0x377a71=-0x1==_0x3b2a78['name']['indexOf'](_0x406f50)?_0x406f50+':\x20'+_0x3b2a78['name']:_0x3b2a78['name'];else _0x377a71=_0x406f50+':\x20'+(_0x3b2a78['createdAt']['toLocaleDateString'](_0x5847d2['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3b2a78['createdAt']['toLocaleTimeString'](_0x5847d2['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x5a5085['saveRevision']({'name':_0x377a71}),_0xd6f9d0['isReady']=!0x0,_0x5847d2['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};