@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250104.0 → 0.0.0-nightly-20250106.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 _0x574c1c,uid as _0x550c17,Collection as _0x1a01dd,logWarning as _0x3f5218,FocusTracker as _0x3a76c5,KeystrokeHandler as _0x30129d,scrollViewportToShowTarget as _0x2b4ea3,ResizeObserver as pt,ElementReplacer as ct,CKEditorError as _0x4b5491}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x51a809,set as _0x33c6c1,unset as _0x495136,isEqual as _0x16990d}from'lodash-es';import{Plugin as _0x402cd2,PendingActions as _0x5d4558,icons as _0x9f8c6d,Command as _0x1b5e9a,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0xbe6911,getMarkerDomElement as _0xf618ad,ConfirmMixin as _0x23ae36,sanitizeEditorConfig as _0x17e5d9}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x5deb62,ViewText as _0x88fe6e,ViewElement as _0x456d8f,Element as ft,Range as vt,Position as gt,DocumentFragment as wt,ViewContainerElement as _0x56152c,ViewAttributeElement as _0x431e2c,ViewEmptyElement as _0x58e8fe,ViewRawElement as _0x15d160,ViewUIElement as _0x335e67,Text as _t}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x1f9e12,injectCssTransitionDisabler as ts,submitHandler as _0x1a6686,LabeledFieldView as at,createLabeledInputText as _0x2186b1,createDropdown as _0x2c9d20,ListView as te,ListItemView as _0x14c301,ButtonView as _0x4f565d,MenuBarMenuView as _0x54fa66,MenuBarMenuListView as _0xd62fd3,MenuBarMenuListItemView as _0x4a66b1,MenuBarMenuListItemButtonView as _0x166bdc,ContextualBalloon as _0x4ac98d,ToolbarSeparatorView as _0x319f4f,IconView as _0x2a2fa9,addListToDropdown as _0x3f963e,ViewModel as to,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x39bdfe}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
- _0x574c1c(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x12d352){super(),this['id']=_0x12d352['id']||_0x550c17(),this['creator']=_0x12d352['creator']||null,this['authors']=_0x12d352['authors']||[],this['diffData']=_0x12d352['diffData']||null,this['toVersion']=_0x12d352['toVersion']||0x0,this['fromVersion']=_0x12d352['fromVersion']||0x0,this['set']('name',_0x12d352['name']||''),this['set']('createdAt',_0x12d352['createdAt']||new Date()),this['set']('attributes',_0x12d352['attributes']||{});}['setName'](_0x16d24d){this['_update']({'name':_0x16d24d});}['setAttribute'](_0x1bb605,_0x3c3ce0){const _0x33482f=_0x51a809(this['attributes']);_0x33c6c1(_0x33482f,_0x1bb605,_0x3c3ce0),this['_update']({'attributes':_0x33482f});}['removeAttribute'](_0x4a9b02){const _0x955ba8=_0x51a809(this['attributes']);_0x495136(_0x955ba8,_0x4a9b02),this['_update']({'attributes':_0x955ba8});}['_update'](_0x246eb5,_0x5d3896=!0x1){let _0x5c1e90=!0x1;const _0x300e20={'id':this['id']},_0x124507=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x1e0b60 of _0x124507){const _0x5213d3=_0x246eb5[_0x1e0b60];void 0x0!==_0x5213d3&&_0x5213d3!==this[_0x1e0b60]&&(this[_0x1e0b60]=_0x5213d3,_0x300e20[_0x1e0b60]=_0x5213d3,_0x5c1e90=!0x0);}_0x5c1e90&&(_0x300e20['authors']&&(_0x300e20['authorsIds']=_0x300e20['authors']['map'](_0x70dcd1=>_0x70dcd1['id']),delete _0x300e20['authors']),this['fire']('_update',_0x300e20,_0x5d3896));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x5b3ecf=>_0x5b3ecf['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x402cd2{['_revisions'];static get['requires'](){return[_0xbe6911];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x1c2800){super(_0x1c2800),this['_revisions']=new _0x1a01dd();}['afterInit'](){!async function(_0x1a4e29){const _0x39a217=_0x1ebc94([0x67,0x4b,0x70,0x36,0x55,0x76,0x35,0x46,0x53,0x6f,0x6e,0x45,0x56,0x5a,0x72,0x44,0x7a,0x30,0x48,0x6d,0x50,0x64,0x6c,0x34,0x54,0x63,0x61,0x38,0x65,0x73,0x47,0x75,0x51,0x71,0x79,0x59,0x39,0x78,0x74,0x33,0x77,0x58,0x42,0x66,0x6b,0x4c,0x4a,0x57,0x68,0x32,0x43,0x69,0x62,0x41,0x6a,0x52,0x31,0x37,0x4f,0x4e,0x49,0x4d]),_0x45ea45=0xeb829,_0x4ed4af=0xda22abd,_0x30dfbf=0xda5711d^_0x4ed4af,_0x1caee8=window[_0x1ebc94([0x44,0x61,0x74,0x65])][_0x1ebc94([0x6e,0x6f,0x77])](),_0x9ce09a=_0x1a4e29[_0x1ebc94([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xea7bb=new window[(_0x1ebc94([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1334a1=>{_0x9ce09a[_0x1ebc94([0x6f,0x6e,0x63,0x65])](_0x1ebc94([0x72,0x65,0x61,0x64,0x79]),_0x1334a1);}),_0x128279={[_0x1ebc94([0x6b,0x74,0x79])]:_0x1ebc94([0x45,0x43]),[_0x1ebc94([0x75,0x73,0x65])]:_0x1ebc94([0x73,0x69,0x67]),[_0x1ebc94([0x63,0x72,0x76])]:_0x1ebc94([0x50,0x2d,0x32,0x35,0x36]),[_0x1ebc94([0x78])]:_0x1ebc94([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]),[_0x1ebc94([0x79])]:_0x1ebc94([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]),[_0x1ebc94([0x61,0x6c,0x67])]:_0x1ebc94([0x45,0x53,0x32,0x35,0x36])},_0x27df4a=_0x9ce09a[_0x1ebc94([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1ebc94([0x67,0x65,0x74])](_0x1ebc94([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5e3a56(){let _0x2bc5c4,_0x38cdd4=null,_0x113fee=null;try{if(_0x27df4a==_0x1ebc94([0x47,0x50,0x4c]))return _0x1ebc94([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2bc5c4=_0x4764b2(),!_0x2bc5c4)return _0x1ebc94([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2bc5c4[_0x1ebc94([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x113fee=_0xa3112b(_0x2bc5c4[_0x1ebc94([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2bc5c4[_0x1ebc94([0x6a,0x74,0x69])])),await _0x468b19()?_0x49bf5c()?_0x4ccfcd()?_0x1ebc94([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3c6a3d()?(_0x2bc5c4[_0x1ebc94([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1ebc94([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x38cdd4=_0x4fd549(_0x1ebc94([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2bc5c4[_0x1ebc94([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1ebc94([0x74,0x72,0x69,0x61,0x6c])&&(_0x38cdd4=_0x4fd549(_0x1ebc94([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x2bc5c4[_0x1ebc94([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1ebc94([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x38cdd4=_0x4fd549(_0x1ebc94([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0xc8a3a8()):_0x1ebc94([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1ebc94([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1ebc94([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x11cbc2){return _0x1ebc94([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4ccfcd(){const _0x272684=[_0x1ebc94([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1ebc94([0x74,0x72,0x69,0x61,0x6c])][_0x1ebc94([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2bc5c4[_0x1ebc94([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1caee8/0x3e8:0xe10*_0x30dfbf;return _0x2bc5c4[_0x1ebc94([0x65,0x78,0x70])]<_0x272684;}function _0x49bf5c(){const _0x54e8ac=_0x2bc5c4[_0x1ebc94([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x54e8ac)return!0x1;if(_0x54e8ac[_0x1ebc94([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ebc94([0x2a])))return!0x0;if(_0x54e8ac[_0x1ebc94([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ebc94([0x52,0x48])))return!0x0;if(_0x54e8ac[_0x1ebc94([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ebc94([0x52,0x52,0x48]))){if(_0x287c41())return!0x0;if(_0x1c31c2()||_0x20a39a())return!0x0;}return!0x1;}function _0x3c6a3d(){const _0x5a86cc=_0x2bc5c4[_0x1ebc94([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5a86cc||0x0==_0x5a86cc[_0x1ebc94([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5042f7}=new URL(window[_0x1ebc94([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5a86cc[_0x1ebc94([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5042f7))return!0x0;const _0x1aa509=_0x5042f7[_0x1ebc94([0x73,0x70,0x6c,0x69,0x74])](_0x1ebc94([0x2e]));return _0x5a86cc[_0x1ebc94([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4b0078=>_0x4b0078[_0x1ebc94([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ebc94([0x2a])))[_0x1ebc94([0x6d,0x61,0x70])](_0x45552b=>_0x45552b[_0x1ebc94([0x73,0x70,0x6c,0x69,0x74])](_0x1ebc94([0x2e])))[_0x1ebc94([0x73,0x6f,0x6d,0x65])](_0xd7e7cf=>_0x1aa509[_0x1ebc94([0x65,0x76,0x65,0x72,0x79])]((_0x591fb0,_0x4d3bc0)=>_0xd7e7cf[_0x4d3bc0]===_0x591fb0||_0xd7e7cf[_0x4d3bc0]===_0x1ebc94([0x2a])));}function _0xc8a3a8(){return _0x38cdd4&&_0x113fee?new window[(_0x1ebc94([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xa715b0,_0x322032)=>{_0x38cdd4[_0x1ebc94([0x74,0x68,0x65,0x6e])](_0xa715b0,_0x322032),_0x113fee[_0x1ebc94([0x74,0x68,0x65,0x6e])](_0x205e85=>{_0x205e85!=_0x1ebc94([0x56,0x61,0x6c,0x69,0x64])&&_0xa715b0(_0x205e85);},_0x322032);}):_0x38cdd4||_0x113fee||_0x1ebc94([0x56,0x61,0x6c,0x69,0x64]);}}function _0xa3112b(_0x10bc4f,_0x59af4d){return new window[(_0x1ebc94([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x290cbc=>{if(_0x2e50e7())return _0x290cbc(_0x1ebc94([0x56,0x61,0x6c,0x69,0x64]));_0x2c62ab(),_0x9ce09a[_0x1ebc94([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1ebc94([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2d959b=!0x1;const _0x1f6ded=_0x550c17();function _0x24f759(_0x415f9b){return!!_0x415f9b&&(typeof _0x415f9b===_0x1ebc94([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x415f9b===_0x1ebc94([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x415f9b[_0x1ebc94([0x74,0x68,0x65,0x6e])]===_0x1ebc94([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x415f9b[_0x1ebc94([0x63,0x61,0x74,0x63,0x68])]===_0x1ebc94([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4079ef(_0x3fef47){_0x293fc2(_0x3fef47)[_0x1ebc94([0x74,0x68,0x65,0x6e])](_0x34ff5f=>{if(!_0x34ff5f||_0x34ff5f[_0x1ebc94([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1ebc94([0x6f,0x6b]))return _0x1ebc94([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1b6601(_0x7c03d2(_0x1f6ded+_0x59af4d))!=_0x34ff5f[_0x1ebc94([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1ebc94([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1ebc94([0x56,0x61,0x6c,0x69,0x64]);})[_0x1ebc94([0x74,0x68,0x65,0x6e])](_0x3587d4=>(_0x20c552(),_0x3587d4),()=>{const _0x53bf95=_0x1a110f();return null==_0x53bf95?(_0x20c552(),_0x1ebc94([0x56,0x61,0x6c,0x69,0x64])):_0x1ebc94(_0x1caee8-_0x53bf95>(0x29aeaebd^_0x4ed4af)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1ebc94([0x74,0x68,0x65,0x6e])](_0x290cbc)[_0x1ebc94([0x63,0x61,0x74,0x63,0x68])](()=>{_0x290cbc(_0x1ebc94([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x11703c=0xd94c43d^_0x4ed4af;function _0x20c552(){const _0x3d79e8=_0x1ebc94([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b6601(_0x7c03d2(_0x10bc4f)),_0x1c90d2=_0x1edc02(_0x1b6601(window[_0x1ebc94([0x4d,0x61,0x74,0x68])][_0x1ebc94([0x63,0x65,0x69,0x6c])](_0x1caee8/_0x11703c)));window[_0x1ebc94([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1ebc94([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d79e8,_0x1c90d2);}function _0x1a110f(){const _0x152dec=_0x1ebc94([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b6601(_0x7c03d2(_0x10bc4f)),_0x427dfb=window[_0x1ebc94([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1ebc94([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x152dec);return _0x427dfb?window[_0x1ebc94([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1edc02(_0x427dfb),0x10)*_0x11703c:null;}function _0x293fc2(_0x10919d){return new window[(_0x1ebc94([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3bc675,_0x28def0)=>{_0x10919d[_0x1ebc94([0x74,0x68,0x65,0x6e])](_0x3bc675,_0x28def0),window[_0x1ebc94([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x28def0,0xda3fe7d^_0x4ed4af);});}}_0x9ce09a[_0x1ebc94([0x6f,0x6e])](_0x1ebc94([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xeea0aa,_0x4423ac)=>{if(_0x4423ac[0x0]!=_0x10bc4f)return _0x290cbc(_0x1ebc94([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4423ac[0x1]={..._0x4423ac[0x1],[_0x1ebc94([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1f6ded};},{[_0x1ebc94([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1ebc94([0x68,0x69,0x67,0x68])}),_0x9ce09a[_0x1ebc94([0x6f,0x6e])](_0x1ebc94([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2af2c0=>{_0x24f759(_0x2af2c0[_0x1ebc94([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2d959b=!0x0,_0x4079ef(_0x2af2c0[_0x1ebc94([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1ebc94([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1ebc94([0x6c,0x6f,0x77])}),_0xea7bb[_0x1ebc94([0x74,0x68,0x65,0x6e])](()=>{_0x2d959b||_0x290cbc(_0x1ebc94([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2e50e7(){return _0x9ce09a[_0x1ebc94([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1ebc94([0x76,0x69,0x65,0x77])][_0x1ebc94([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1ebc94([0x61,0x75,0x74,0x6f]);}function _0x2c62ab(){_0x9ce09a[_0x1ebc94([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1ebc94([0x76,0x69,0x65,0x77])][_0x1ebc94([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1ebc94([0x61,0x75,0x74,0x6f]);}}function _0x4fd549(_0x465372){const _0x363c97=[new window[(_0x1ebc94([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3596eb=>setTimeout(_0x3596eb,0xdab1471^_0x4ed4af)),_0xea7bb[_0x1ebc94([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1ebc94([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x77cfb7=>{const _0xcb9098=0xda22aba^_0x4ed4af,_0x3da302=_0x1a4e29[_0x1ebc94([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x4e2c42(){_0x3da302[_0x1ebc94([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0xcb9098&&_0x77cfb7();}_0x4e2c42(),_0x3da302[_0x1ebc94([0x6f,0x6e])](_0x1ebc94([0x61,0x64,0x64]),_0x4e2c42);})),new window[(_0x1ebc94([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f8d8b=>{function _0x5ed102(){for(const _0x18213a in window)if(window[_0x1ebc94([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x1ebc94([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x18213a))&&window[_0x18213a]==_0x45ea45)return _0x4f8d8b();_0x9ce09a[_0x1ebc94([0x73,0x74,0x61,0x74,0x65])]!=_0x1ebc94([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x1ebc94([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5ed102,0xda23935^_0x4ed4af);}_0xbad0d(_0x1ebc94([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x5ed102();})];return window[_0x1ebc94([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1ebc94([0x72,0x61,0x63,0x65])](_0x363c97)[_0x1ebc94([0x74,0x68,0x65,0x6e])](()=>_0x465372);}async function _0x1d05a7(){if(await _0xea7bb,_0xbad0d(_0x1ebc94([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x26166e=_0x1a4e29[_0x1ebc94([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x5074e7=_0x1a4e29[_0x1ebc94([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])](_0x26166e[_0x1ebc94([0x69,0x64])]),_0x10ab36=_0x4d6de6(_0x1ebc94([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x10ab36[_0x1ebc94([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x26166e['id'],_0x5074e7?_0x5074e7['id']:null,!0x0),_0x10ab36[_0x1ebc94([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1ebc94([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x10ab36[_0x1ebc94([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x10ab36[_0x1ebc94([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x2fdfaf,void(_0x10ab36[_0x1ebc94([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x2fdfaf);}if(_0xbad0d(_0x1ebc94([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x3c51bb=_0x4d6de6(_0x1ebc94([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x3c51bb[_0x1ebc94([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1ebc94([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3c51bb[_0x1ebc94([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3c51bb[_0x1ebc94([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x2fdfaf,_0x3c51bb[_0x1ebc94([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x2fdfaf;}_0x9ce09a[_0x1ebc94([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ebc94([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2fdfaf,_0x9ce09a[_0x1ebc94([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ebc94([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2fdfaf,_0x9ce09a[_0x1ebc94([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1ebc94([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x287c41(){return _0xbad0d(_0x1ebc94([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4d6de6(_0x1ebc94([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1ebc94([0x73,0x74,0x61,0x74,0x65])]==_0x1ebc94([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1c31c2(){return _0xbad0d(_0x1ebc94([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 _0x20a39a(){return _0xbad0d(_0x1ebc94([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x36d732(_0x81658d){const _0xdfb530=_0x42a1ba();_0x9ce09a[_0xdfb530]=_0x1ebc94([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])+_0x81658d,_0x81658d[_0x1ebc94([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x1ebc94([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x42a1ba()]=_0x45ea45),_0x81658d!=_0x1ebc94([0x56,0x61,0x6c,0x69,0x64])&&_0x1d05a7();}function _0x42a1ba(){const _0x497521=window[_0x1ebc94([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1ebc94([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1ebc94([0x6e,0x6f,0x77])]())[_0x1ebc94([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1ebc94([0x2e]),'');let _0x29b3f2=_0x1ebc94([0x67]);for(let _0x3a7cc7=0x0;_0x3a7cc7<_0x497521[_0x1ebc94([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3a7cc7+=0x2){let _0x4ac040=window[_0x1ebc94([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x497521[_0x1ebc94([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3a7cc7,_0x3a7cc7+0x2));_0x4ac040>=_0x39a217[_0x1ebc94([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4ac040-=_0x39a217[_0x1ebc94([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x29b3f2+=_0x39a217[_0x4ac040];}return _0x29b3f2;}function _0x4764b2(){const _0x298a5d=_0x27df4a[_0x1ebc94([0x73,0x70,0x6c,0x69,0x74])](_0x1ebc94([0x2e]));if(0x3!=_0x298a5d[_0x1ebc94([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xe721c9(_0x298a5d[0x1]);function _0xe721c9(_0x3138d5){const _0x455141=_0x2074c3(_0x3138d5);return _0x455141&&_0x35fd94()?_0x455141:null;function _0x35fd94(){const _0x274eac=_0x455141[_0x1ebc94([0x6a,0x74,0x69])],_0x2d9be2=window[_0x1ebc94([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x274eac[_0x1ebc94([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x274eac[_0x1ebc94([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x509bab={..._0x455141,[_0x1ebc94([0x6a,0x74,0x69])]:_0x274eac[_0x1ebc94([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x274eac[_0x1ebc94([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x509bab[_0x1ebc94([0x76,0x63])],_0x7c03d2(_0x509bab)==_0x2d9be2;}}}async function _0x468b19(){let _0xa68e35=!0x0;try{const _0x427dff=_0x27df4a[_0x1ebc94([0x73,0x70,0x6c,0x69,0x74])](_0x1ebc94([0x2e])),[_0x51db50,_0x41a690,_0x537b9e]=_0x427dff;return _0x38d223(_0x51db50),await _0x588e45(_0x51db50,_0x41a690,_0x537b9e),_0xa68e35;}catch(_0x1a4bc6){return!0x1;}function _0x38d223(_0x59a431){const _0x23ab2f=_0x2074c3(_0x59a431);_0x23ab2f&&_0x23ab2f[_0x1ebc94([0x61,0x6c,0x67])]==_0x1ebc94([0x45,0x53,0x32,0x35,0x36])||(_0xa68e35=!0x1);}async function _0x588e45(_0x21847a,_0x1b5221,_0x4bf0ce){const _0x32a369=window[_0x1ebc94([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1ebc94([0x66,0x72,0x6f,0x6d])](_0x4dd280(_0x4bf0ce),_0x2fbae6=>_0x2fbae6[_0x1ebc94([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x37bc3e=new window[(_0x1ebc94([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1ebc94([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x21847a+_0x1ebc94([0x2e])+_0x1b5221),_0x5ef1fd=window[_0x1ebc94([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1ebc94([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5ef1fd)return;const _0x2c8ecd=await _0x5ef1fd[_0x1ebc94([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1ebc94([0x6a,0x77,0x6b]),_0x128279,{[_0x1ebc94([0x6e,0x61,0x6d,0x65])]:_0x1ebc94([0x45,0x43,0x44,0x53,0x41]),[_0x1ebc94([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1ebc94([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1ebc94([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5ef1fd[_0x1ebc94([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1ebc94([0x6e,0x61,0x6d,0x65])]:_0x1ebc94([0x45,0x43,0x44,0x53,0x41]),[_0x1ebc94([0x68,0x61,0x73,0x68])]:{[_0x1ebc94([0x6e,0x61,0x6d,0x65])]:_0x1ebc94([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2c8ecd,_0x32a369,_0x37bc3e)||(_0xa68e35=!0x1);}}function _0x2074c3(_0x34d428){return _0x34d428[_0x1ebc94([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1ebc94([0x65,0x79]))?JSON[_0x1ebc94([0x70,0x61,0x72,0x73,0x65])](_0x4dd280(_0x34d428)):null;}function _0x4dd280(_0x8abd3f){return window[_0x1ebc94([0x61,0x74,0x6f,0x62])](_0x8abd3f[_0x1ebc94([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1ebc94([0x2b]))[_0x1ebc94([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1ebc94([0x2f])));}function _0x7c03d2(_0x1f4a86){let _0x26c11e=0x1505;function _0x3eb306(_0x3b39a4){for(let _0x49f721=0x0;_0x49f721<_0x3b39a4[_0x1ebc94([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x49f721++){const _0x560bd2=_0x3b39a4[_0x1ebc94([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x49f721);_0x26c11e=(_0x26c11e<<0x5)+_0x26c11e+_0x560bd2,_0x26c11e&=_0x26c11e;}}function _0x28fe23(_0x44c542){Array[_0x1ebc94([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x44c542)?_0x44c542[_0x1ebc94([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x28fe23):_0x44c542&&typeof _0x44c542==_0x1ebc94([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1ebc94([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x44c542)[_0x1ebc94([0x73,0x6f,0x72,0x74])]()[_0x1ebc94([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x440c82,_0x5b5ad7])=>{_0x3eb306(_0x440c82),_0x28fe23(_0x5b5ad7);}):_0x3eb306(window[_0x1ebc94([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x44c542));}return _0x28fe23(_0x1f4a86),_0x26c11e>>>0x0;}function _0x1b6601(_0x551a3f){return _0x551a3f[_0x1ebc94([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1ebc94([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1ebc94([0x30]));}function _0x1edc02(_0x54e662){return _0x54e662[_0x1ebc94([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1ebc94([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1ebc94([0x6a,0x6f,0x69,0x6e])]('');}function _0xbad0d(_0x50fc7a){return _0x9ce09a[_0x1ebc94([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1ebc94([0x68,0x61,0x73])](_0x50fc7a);}function _0x4d6de6(_0x46ffbe){return _0x9ce09a[_0x1ebc94([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1ebc94([0x67,0x65,0x74])](_0x46ffbe);}function _0x2fdfaf(){}function _0x1ebc94(_0x47f23b){return _0x47f23b['map'](_0x56acdb=>String['fromCharCode'](_0x56acdb))['join']('');}_0x36d732(await _0x5e3a56());}(this);}['createRevision'](_0x50b45c){const _0x73c995=this['editor']['plugins']['get']('Users');return new a({'id':_0x50b45c['id'],'name':_0x50b45c['name'],'creator':_0x50b45c['creatorId']?_0x73c995['getUser'](_0x50b45c['creatorId']):null,'diffData':_0x50b45c['diffData']||_0x50b45c['data'],'authors':_0x50b45c['authorsIds']['map'](_0x142000=>_0x73c995['getUser'](_0x142000)),'createdAt':new Date(_0x50b45c['createdAt']),'attributes':_0x50b45c['attributes'],'fromVersion':_0x50b45c['fromVersion'],'toVersion':_0x50b45c['toVersion']});}['addRevision'](_0x19e710,_0x4cf5dd=0x0){this['_revisions']['add'](_0x19e710,_0x4cf5dd);}['getRevision'](_0x2b0933){return this['_revisions']['get'](_0x2b0933);}['getRevisions'](_0x3fbea3={'toJSON':!0x1}){const _0xb04fa7=Array['from'](this['_revisions']);return _0xb04fa7['reverse'](),_0x3fbea3['toJSON']?_0xb04fa7['map'](_0x307e0d=>_0x307e0d['toJSON']()):_0xb04fa7;}['getIndex'](_0x40393f){return this['_revisions']['getIndex'](_0x40393f);}['getEarlierVisibleRevision'](_0x5f0eae){const [,_0x27afce]=this['getRevisionsIterator'](_0x5f0eae,{'direction':'earlier'});return _0x27afce;}['getLaterVisibleRevision'](_0x3f6939){const [,_0x47592a]=this['getRevisionsIterator'](_0x3f6939,{'direction':'later'});return _0x47592a;}['getRevisionsInDiff'](_0x3fe525){const _0x159aef=[];for(const _0x49d623 of this['getRevisionsIterator'](_0x3fe525['newRevisionId']))if(_0x159aef['push'](_0x49d623),_0x49d623['id']===_0x3fe525['oldRevisionId'])break;return _0x159aef;}*['getRevisionsIterator'](_0x4ef120,{direction:_0x38900d='earlier',filter:_0x2930d6=()=>!0x0}={}){const _0x4d53ac='earlier'===_0x38900d?0x1:-0x1;let _0x281f7f=this['_revisions']['get'](_0x4ef120),_0x5c0696=this['getIndex'](_0x281f7f);for(yield _0x281f7f;_0x281f7f;){if(_0x5c0696+=_0x4d53ac,_0x281f7f=this['getRevision'](_0x5c0696),!_0x281f7f)return;_0x2930d6(_0x281f7f)&&(yield _0x281f7f);}}}function R(_0x392f2a,_0x255699,_0x3e39ba){const t=_0x392f2a['t'];switch(_0x255699){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'},_0x3e39ba);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3e39ba);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 C={'c':_0x56152c,'a':_0x431e2c,'e':_0x58e8fe,'r':_0x15d160,'u':_0x335e67};class l extends _0x402cd2{['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[_0xbe6911,j,_0x5d4558];}constructor(_0x1501da){super(_0x1501da),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x19966b=_0x550c17();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x19966b},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 _0x3ec18e=this['repository']['getRevision'](0x0),_0x4d8c49=_0x3ec18e&&null===_0x3ec18e['creator']?_0x3ec18e:null;if(this['_continueCurrentRevision']=!!_0x4d8c49&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x5619de=this['_source']['getCurrentRevisionId'](),_0xb0528d=this['repository']['getRevision'](_0x5619de);if(_0xb0528d)this['_startingVersion']=_0xb0528d['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x20adb4=this['_source']['history']['_operations']['find'](_0x4991dc=>!_0x4991dc['_isInit']),_0x28805a=_0x20adb4?_0x20adb4['baseVersion']:this['_source']['history']['version'];_0x3ec18e?(_0x3ec18e['toVersion']<_0x28805a&&_0x3ec18e['_update']({'toVersion':_0x28805a}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x4d8c49['id'],this['_startingVersion']=_0x4d8c49['fromVersion']):(this['_startingVersion']=_0x3ec18e['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x28805a,this['_continueCurrentRevision']=!0x1);}}else _0x4d8c49&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x4d8c49['toVersion'],this['editor']['model']['document']['history']['version']),_0x4d8c49['fromVersion']===_0x4d8c49['toVersion']?(0x0!==_0x4d8c49['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x4d8c49['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x4d8c49['id'],this['_startingVersion']=_0x4d8c49['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',_0x314601=>!_0x314601),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x258779=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3d54ac;for(const _0x37f975 in _0x258779){const _0x34d653=_0x37f975,_0x1fbbcc=_0x258779[_0x34d653];if('revisionHistoryLicenseKeyValid'==_0x1fbbcc||'revisionHistoryLicenseKeyInvalid'==_0x1fbbcc||'revisionHistoryLicenseKeyExpired'==_0x1fbbcc||'revisionHistoryLicenseKeyDomainLimit'==_0x1fbbcc||'revisionHistoryLicenseKeyNotAllowed'==_0x1fbbcc||'revisionHistoryLicenseKeyEvaluationLimit'==_0x1fbbcc||'revisionHistoryLicenseKeyTrialLimit'==_0x1fbbcc||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x1fbbcc||'revisionHistoryLicenseKeyUsageLimit'==_0x1fbbcc){delete _0x258779[_0x34d653],_0x3d54ac=_0x1fbbcc,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x3d54ac&&_0x258779['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x3d54ac&&_0x258779['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x3d54ac&&_0x258779['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x3d54ac&&_0x258779['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x3d54ac&&_0x258779['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x3d54ac&&_0x258779['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x3d54ac&&_0x258779['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x3d54ac&&_0x258779['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x4ffc0e=this['repository']['getRevision'](0x0),_0x4bff7e=await this['getRevisionDocumentData'](_0x4ffc0e),_0x54c60a=await this['getRevisionRootsAttributes'](_0x4ffc0e);this['_replaceEditorDataWithRevisionData'](_0x4bff7e,_0x54c60a);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x87a420){this['_source']=_0x87a420;}async['update'](){const _0x1822e5=await this['_source']['getLatestVersion']();if(_0x1822e5>this['currentRevision']['toVersion']){await this['_loadState']();const _0x1b3617=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x1822e5});_0x1b3617['authors']=_0x1b3617['authorsIds']['map'](_0x169a3d=>this['editor']['plugins']['get']('Users')['getUser'](_0x169a3d)),this['currentRevision']['_update'](_0x1b3617);}}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'](_0x618e10={},_0x4a22a9=null){const _0x36b607=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x4a22a9>this['currentRevision']['toVersion']&&(_0x4a22a9=null),null===_0x4a22a9&&(_0x4a22a9=await this['_source']['getLatestVersion']());const _0x376bbd=this['_getFromVersion'](_0x4a22a9),_0x5b1e56=this['buildRevisionData']({'from':_0x376bbd,'to':_0x4a22a9});if(this['currentRevision']['toVersion']<_0x4a22a9){const _0x5a04ab=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x4a22a9,'to':_0x4a22a9});_0x5a04ab['authors']=[],_0x5a04ab['authorsIds']=[],_0x5a04ab['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x5a04ab,!0x0),delete _0x5a04ab['authors'],_0x36b607['push'](_0x5a04ab);}_0x618e10['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x618e10['name']=_0x618e10['name']||null,_0x618e10['id']=_0x618e10['id']||_0x550c17(),_0x618e10={..._0x618e10,..._0x5b1e56};const _0x3e7600=this['addRevisionData'](_0x618e10);_0x36b607['push'](_0x618e10);const _0x38853c=this['repository']['getIndex'](_0x3e7600);if(0x0!==_0x38853c){const _0x6f3b6a=this['repository']['getRevision'](_0x38853c-0x1);if(_0x6f3b6a['fromVersion']!==_0x4a22a9){const _0x346a2b=this['_revisionDataBuilder']['getData'](_0x4a22a9,_0x6f3b6a['toVersion']),_0x356464={'id':_0x6f3b6a['id'],'diffData':_0x346a2b['diffData'],'authorsIds':_0x346a2b['authorsIds'],'authors':_0x346a2b['authorsIds']['map'](_0x50f898=>this['editor']['plugins']['get']('Users')['getUser'](_0x50f898)),'fromVersion':_0x4a22a9};_0x6f3b6a===this['currentRevision']&&(_0x356464['createdAt']=new Date(_0x618e10['createdAt']['getTime']()+0xa)),_0x6f3b6a['_update'](_0x356464,!0x0),delete _0x356464['authors'],_0x36b607['push'](_0x356464);}}if(this['adapter']){for(const _0x9dc719 of _0x36b607)this['_bufferUpdate'](_0x9dc719['id'],_0x9dc719,!0x0);this['sendBufferedUpdates']();}return _0x3e7600;}['addRevisionData'](_0x45bf3f){const _0x15c6c3=this['repository']['createRevision'](_0x45bf3f);return this['adapter']&&_0x15c6c3['on']('_update',(_0x50a70b,_0x564e4b,_0x411353)=>{_0x411353||(this['_bufferUpdate'](_0x564e4b['id'],_0x564e4b,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x15c6c3,this['_findInsertionIndex'](_0x15c6c3)),_0x15c6c3;}async['getRevisionDocumentData'](_0x2897b1){await this['_loadRevisionData'](_0x2897b1);const _0x26cc89={};for(const _0x4acdbb in _0x2897b1['diffData']){if(_0x2897b1['diffData'][_0x4acdbb]['attachChange']&&!_0x2897b1['diffData'][_0x4acdbb]['attachChange']['isAttached'])continue;const _0x208c83=this['_removeRevisionMarkers'](JSON['parse'](_0x2897b1['diffData'][_0x4acdbb]['insertions'])),_0x46028b=this['editor']['editing']['view']['document'],_0x17519b=new _0x5deb62(_0x46028b,_0x208c83['map'](_0x1674cd=>V(_0x1674cd,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x26cc89[_0x4acdbb]=this['editor']['data']['processor']['toData'](_0x17519b),this['editor']['data']['processor']['useFillerType']('default');}return _0x26cc89;}async['getRevisionRootsAttributes'](_0x3a927e){await this['_loadRevisionData'](_0x3a927e);const _0x21fe24={};for(const _0x116be0 in _0x3a927e['diffData'])_0x3a927e['diffData'][_0x116be0]['attachChange']&&!_0x3a927e['diffData'][_0x116be0]['attachChange']['isAttached']||(_0x21fe24[_0x116be0]=_0x3a927e['diffData'][_0x116be0]['attributesAfter']||{});return _0x21fe24;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x2dec8e=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x216643=0x0;_0x216643<_0x2dec8e['length'];_0x216643++){const _0x184e4a=_0x2dec8e[_0x216643];let _0x19808f=!0x1;for(const _0x3df24a of Object['keys'](_0x184e4a))void 0x0===_0x184e4a[_0x3df24a]?delete _0x184e4a[_0x3df24a]:'id'!==_0x3df24a&&(_0x19808f=!0x0);_0x19808f||(_0x2dec8e[_0x216643]=null);}if(_0x2dec8e=_0x2dec8e['filter'](_0x57f4b4=>null!==_0x57f4b4),!_0x2dec8e['length'])return;for(let _0xcb74fb=0x0;_0xcb74fb<_0x2dec8e['length'];_0xcb74fb++){const _0x14d429=_0x2dec8e[_0xcb74fb];void 0x0!==_0x14d429['fromVersion']&&void 0x0===_0x14d429['toVersion']&&(_0x14d429['toVersion']=this['repository']['getRevision'](_0x14d429['id'])['toVersion']),void 0x0!==_0x14d429['toVersion']&&void 0x0===_0x14d429['fromVersion']&&(_0x14d429['fromVersion']=this['repository']['getRevision'](_0x14d429['id'])['fromVersion']);}const _0x1aba6e=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x2dec8e,_0x1aba6e)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x2ce18b=>{if(_0x2ce18b){for(const _0x22d1bd of _0x2ce18b)this['setRevisionData']({'id':_0x22d1bd['id'],'createdAt':_0x22d1bd['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x5d25c8,_0x13f466){let _0x1d6fc0=this['editor']['config']['get']('initialData'),_0x447291=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x1d6fc0){_0x1d6fc0={};for(const _0x40ebcf of this['editor']['model']['document']['getRootNames']())_0x1d6fc0[_0x40ebcf]='';}if('string'==typeof _0x1d6fc0&&(_0x1d6fc0={'main':_0x1d6fc0}),void 0x0===_0x447291){_0x447291={};for(const _0x3f0db5 of this['editor']['model']['document']['getRootNames']())_0x447291[_0x3f0db5]={};}let _0x77b614=!0x1;const _0x2b233c=Object['keys'](_0x1d6fc0),_0x1510f8=Object['keys'](_0x5d25c8);for(const _0x16ce8b of _0x2b233c){if(_0x1d6fc0[_0x16ce8b]!==_0x5d25c8[_0x16ce8b]&&''!==_0x1d6fc0[_0x16ce8b]['trim']()){_0x77b614=!0x0;break;}if(!_0x16990d(_0x447291[_0x16ce8b],_0x13f466[_0x16ce8b])&&Object['keys'](_0x447291[_0x16ce8b])['length']>0x0){_0x77b614=!0x0;break;}}_0x77b614||(_0x77b614=_0x1510f8['some'](_0x566945=>!this['editor']['model']['document']['getRoot'](_0x566945))),_0x77b614&&_0x3f5218('editor-initial-data-replaced-with-revision-data',{'editorData':_0x1d6fc0,'editorRootsAttributes':_0x447291,'revisionData':_0x5d25c8,'revisionRootsAttributes':_0x13f466}),this['editor']['config']['set']('initialData',_0x5d25c8),this['editor']['config']['set']('rootsAttributes',_0x13f466);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x5db9f3=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x5db9f3['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x32629){const _0x2d8bda=this['repository']['getRevisions']();_0x2d8bda['reverse']();let _0x49dac7=0x0;for(;_0x49dac7<_0x2d8bda['length'];){const _0x5033dc=_0x2d8bda[_0x49dac7];if(_0x5033dc===this['currentRevision']){_0x49dac7++;continue;}if(_0x5033dc['id']===this['_initialRevisionId'])break;const _0x2556f8=_0x32629['toVersion']-_0x5033dc['toVersion']||_0x32629['fromVersion']-_0x5033dc['fromVersion'];if(_0x2556f8>0x0)break;if(_0x2556f8<0x0)_0x49dac7++;else{if(!_0x32629['creator']&&_0x5033dc['creator'])break;if(_0x5033dc['creator']||!_0x32629['creator']){if(_0x32629['createdAt']>_0x5033dc['createdAt'])break;_0x49dac7++;}else _0x49dac7++;}}return _0x49dac7;}['setRevisionData'](_0x1ef9e7){const _0x269e14=this['repository']['getRevision'](_0x1ef9e7['id']);if(_0x1ef9e7['createdAt']&&(_0x1ef9e7['createdAt']=new Date(_0x1ef9e7['createdAt'])),_0x1ef9e7['authorsIds']){const _0x19603d=this['editor']['plugins']['get']('Users');_0x1ef9e7['authors']=_0x1ef9e7['authorsIds']['map'](_0x3ae617=>_0x19603d['getUser'](_0x3ae617));}_0x269e14['_update'](_0x1ef9e7,!0x0);}['buildRevisionData']({revision:_0x3f275e=null,from:_0x4801f3=null,to:_0x171617=null}){_0x4801f3=null!==_0x4801f3?_0x4801f3:_0x3f275e['fromVersion'],_0x171617=null!==_0x171617?_0x171617:_0x3f275e['toVersion'];const _0x211dc9=this['_revisionDataBuilder']['getData'](_0x4801f3,_0x171617),_0x1bd65f={'diffData':_0x211dc9['diffData'],'authorsIds':_0x211dc9['authorsIds'],'fromVersion':_0x4801f3,'toVersion':_0x171617};if(!_0x3f275e||_0x171617!==_0x3f275e['toVersion']){const _0x33047f=_0x171617-0x1,_0x36fa12=this['_source']['history']['getOperation'](_0x33047f);_0x1bd65f['createdAt']=_0x36fa12&&_0x36fa12['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4801f3===this['_loadedStateData']['fromVersion']){for(const _0x22134f of this['_loadedStateData']['authors'])_0x1bd65f['authorsIds']['includes'](_0x22134f['id'])||_0x1bd65f['authorsIds']['push'](_0x22134f['id']);}return _0x1bd65f;}['_loadRevisionData'](_0x4e7075){if(!_0x4e7075||_0x4e7075['diffData'])return Promise['resolve']();{const _0x52d2a3=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x52d2a3,'revisionId':_0x4e7075['id']})['then'](_0x419b59=>{_0x4e7075['diffData']=_0x419b59['diffData'];});}}['_bufferUpdate'](_0x3dabee,_0x282ae5,_0x24fe5e){if(this['_bufferedUpdates']['has'](_0x3dabee)){const _0x2d3dee=this['_bufferedUpdates']['get'](_0x3dabee);_0x282ae5=_0x24fe5e?{..._0x2d3dee,..._0x282ae5}:{..._0x282ae5,..._0x2d3dee};}this['_bufferedUpdates']['set'](_0x3dabee,_0x282ae5);}['_getFromVersion'](_0x5a22fd){const _0x262050=this['repository']['getRevisions']();_0x262050['reverse'](),_0x262050['shift']();const _0x5d7ab8=_0x262050['find'](_0x1d787a=>_0x1d787a['toVersion']<=_0x5a22fd)['toVersion'];return _0x5d7ab8<this['_startingVersion']?this['_startingVersion']:_0x5d7ab8;}['_createInitialRevision'](_0x416df8){const _0x249abe=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x249abe)this['_initialRevisionId']=_0x249abe['id'];else{const _0x2d0355=!this['editor']['model']['document']['roots']['find'](_0x13de3e=>this['editor']['model']['hasContent'](_0x13de3e)),_0x2b9205=this['editor']['plugins']['get']('Users')['me']['id'],_0x3a41de=R(this['editor']['locale'],_0x2d0355?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x416df8,'to':_0x416df8,'id':this['_initialRevisionId'],'name':_0x3a41de,'creatorId':_0x2b9205});}}['_createCurrentRevision'](_0x1b7f97){const _0x5d1722=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5d1722),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1b7f97,'to':_0x1b7f97,'id':_0x5d1722,'name':'','creatorId':null}));}['_makeRevision']({name:_0x42cbba,from:_0x1f9363,to:_0x1c9ff3,creatorId:_0x318a2e,id:_0x7d6a4}){const _0x2f16bc=this['buildRevisionData']({'from':_0x1f9363,'to':_0x1c9ff3});_0x2f16bc['name']=_0x42cbba,_0x2f16bc['creatorId']=_0x318a2e,_0x2f16bc['id']=_0x7d6a4;const _0x86a4f1=this['addRevisionData'](_0x2f16bc);return this['adapter']&&this['_bufferUpdate'](_0x2f16bc['id'],_0x2f16bc,!0x0),_0x86a4f1;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0xe9ace7){return(_0xe9ace7=_0xe9ace7['filter'](_0x5891c6=>!_0x5891c6['name']||'revision-start'!==_0x5891c6['name']&&'revision-end'!==_0x5891c6['name']))['forEach'](_0x501e7e=>{'string'!=typeof _0x501e7e&&(_0x501e7e['children']=this['_removeRevisionMarkers'](_0x501e7e['children']),_0x501e7e['attributes']=_0x501e7e['attributes']['filter'](_0x234bd1=>!_0x234bd1[0x0]['startsWith']('data-revision-')));}),_0xe9ace7;}}function V(_0x1779a7,_0x515c41){const _0x4efe8b=_0x515c41['editing']['view']['document'];if('string'==typeof _0x1779a7)return new _0x88fe6e(_0x4efe8b,_0x1779a7);{const _0xc8006b=_0x1779a7['children']['map'](_0x10c190=>V(_0x10c190,_0x515c41));return new(C[_0x1779a7['type']]||_0x456d8f)(_0x4efe8b,_0x1779a7['name'],_0x1779a7['attributes'],_0xc8006b);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x1c6d33){this['editor']=_0x1c6d33,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'](_0x5736b5){this['source']=_0x5736b5;const _0x36b9b9=new Map(),_0x15c950=new Map(),_0x54b521=this['editor']['model']['document']['roots']['map'](_0x13c58a=>_0x13c58a['rootName']);for(const _0x1f59f0 of _0x54b521){const _0x2db260=this['editor']['model']['document']['getRoot'](_0x1f59f0),_0x5ecbb8=F(_0x2db260);_0x36b9b9['set'](_0x1f59f0,_0x5ecbb8),_0x15c950['set'](_0x1f59f0,Object['fromEntries'](_0x2db260['getAttributes']()));}const _0x29e278=Array['from'](this['editor']['model']['markers'])['map'](_0x2b8db3=>[_0x2b8db3['name'],_0x2b8db3['getRange']()]),_0x5cfada=this['source']['version'];this['_saveMetaData'](_0x5cfada,_0x36b9b9,_0x29e278,_0x15c950),this['_startingRevisionId']=this['_revisionId'];const _0x1a4937=new Map(),_0x431939=new Map();for(const _0x9ee31b of _0x54b521){const _0xc8ed27=B(_0x9ee31b);_0x1a4937['set'](_0x9ee31b,_0xc8ed27),_0x431939['set'](_0x9ee31b,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1a4937,[],_0x431939);}['getData'](_0x3ee08d,_0xc6c9f5){if(this['_lastFrom']===_0x3ee08d&&this['_lastTo']<=_0xc6c9f5)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0xc6c9f5,!0x0);else{if(!this['_savedMetaData']['has'](_0x3ee08d)){const _0x133c23=this['_getPreviousFrom'](_0x3ee08d);this['_calculateMetaData'](_0x133c23,_0x3ee08d,!0x1);}this['_calculateMetaData'](_0x3ee08d,_0xc6c9f5,!0x0);}return this['_lastFrom']=_0x3ee08d,this['_lastTo']=_0xc6c9f5,this['_getState']();}['loadState'](_0x2f7ce6){this['_reset'](),this['_lastFrom']=_0x2f7ce6['fromVersion'],this['_lastTo']=_0x2f7ce6['toVersion'];for(const _0x3f5c88 in _0x2f7ce6['diffData']){const _0x4ca94a=_0x2f7ce6['diffData'][_0x3f5c88]['attachChange'],_0x450f2e=_0x51a809(_0x2f7ce6['diffData'][_0x3f5c88]['attributesBefore'])||{},_0x168e3e=this['_makeModelFromViewString'](_0x2f7ce6['diffData'][_0x3f5c88]['deletions']);_0x168e3e['rootName']=_0x3f5c88,_0x168e3e['_isAttached']=!_0x4ca94a||!_0x4ca94a['isAttached'],_0x168e3e['isAttached']=()=>_0x168e3e['_isAttached'],this['_baseRoots']['set'](_0x3f5c88,_0x168e3e),this['_baseRootsAttributes']['set'](_0x3f5c88,_0x450f2e),_0x4ca94a&&this['_touchedRoots']['set'](_0x3f5c88,_0x4ca94a);const _0x3f12d2=this['_makeIdsRoot'](_0x168e3e);this['_baseIdsRoots']['set'](_0x3f5c88,_0x3f12d2);for(const [_0x47e79b,_0x42a699]of _0x168e3e['markers']){if(!_0x47e79b['startsWith']('revision:'))continue;const _0x256775=_0x47e79b['split'](':')[0x2];for(const _0x11487e of _0x42a699['getWalker']({'singleCharacters':!0x0})){const _0x40ec39=this['_getVidAttributeName'](_0x11487e),_0x2708ea='elementEnd'==_0x11487e['type']?_0x11487e['previousPosition']['path']['slice'](0x0,-0x1):_0x11487e['previousPosition']['path'],_0x22f7fa=_0x3f12d2['getNodeByPath'](_0x2708ea)['getAttribute'](_0x40ec39);this['_touched']['set'](_0x22f7fa,{'userId':_0x256775});}}}this['_startingRevisionId']=this['_revisionId'];const _0x19cd25=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x22abed=>!this['_touched']['has'](_0x22abed));let _0xfe4e8e=0x0;const _0x9eabfa=new Map();for(const _0x3f0537 in _0x2f7ce6['diffData']){const _0x423d01=_0x2f7ce6['diffData'][_0x3f0537]['attachChange'],_0x3dcb47=_0x51a809(_0x2f7ce6['diffData'][_0x3f0537]['attributesAfter'])||{},_0x100009=this['_makeModelFromViewString'](_0x2f7ce6['diffData'][_0x3f0537]['insertions']);_0x100009['rootName']=_0x3f0537,_0x100009['_isAttached']=!_0x423d01||_0x423d01['isAttached'],_0x100009['isAttached']=()=>_0x100009['_isAttached'],this['_diffRoots']['set'](_0x3f0537,_0x100009),this['_diffRootsAttributes']['set'](_0x3f0537,_0x3dcb47);const _0x3e660a=this['_makeIdsRoot'](_0x100009,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x3f0537,_0x3e660a),_0x9eabfa['set'](_0x3f0537,_0x100009['isAttached']()?_0x3dcb47:{});for(const [_0x2a3882,_0x1c1d7e]of _0x100009['markers']){if(!_0x2a3882['startsWith']('revision:'))continue;const _0x212bc5=_0x2a3882['split'](':')[0x2];for(const _0x3f2b74 of _0x1c1d7e['getWalker']({'singleCharacters':!0x0})){const _0x1a56c9=this['_getVidAttributeName'](_0x3f2b74),_0x4798c3=this['_revisionId']++,_0x2736a6='elementEnd'==_0x3f2b74['type']?_0x3f2b74['previousPosition']['path']['slice'](0x0,-0x1):_0x3f2b74['previousPosition']['path'];_0x3e660a['getNodeByPath'](_0x2736a6)['_setAttribute'](_0x1a56c9,_0x4798c3),this['_touched']['set'](_0x4798c3,{'userId':_0x212bc5});}}for(const _0x29522d of this['editor']['model']['createRangeIn'](_0x100009)['getWalker']({'singleCharacters':!0x0})){const _0xdc64b7=this['_getVidAttributeName'](_0x29522d),_0x1dd2ee='elementEnd'==_0x29522d['type']?_0x29522d['previousPosition']['path']['slice'](0x0,-0x1):_0x29522d['previousPosition']['path'],_0xa12900=_0x3e660a['getNodeByPath'](_0x1dd2ee);_0xa12900['getAttribute'](_0xdc64b7)>0x0||_0xa12900['_setAttribute'](_0xdc64b7,_0x19cd25[_0xfe4e8e++]);}for(const [_0x30d21b,_0xa2a612]of _0x100009['markers'])_0x30d21b['startsWith']('revision:')||this['_markers']['set'](_0x30d21b,_0xa2a612);}const _0x3070f2=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x3070f2),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3070f2,0x1));const _0x221526=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x221526),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x221526,0x1));const _0x5719b5=Array['from'](this['_diffRoots'])['map'](([_0x455af0,_0x1fbcb4])=>[_0x455af0,F(_0x1fbcb4)]);this['_saveMetaData'](this['_lastTo'],_0x5719b5,this['_markers'],_0x9eabfa);}['_makeModelFromViewString'](_0x56b210){const _0x48eedf=JSON['parse'](_0x56b210),_0x44e585=this['editor']['editing']['view']['document'],_0x4a7af7=new _0x5deb62(_0x44e585,_0x48eedf['map'](_0x2e4489=>V(_0x2e4489,this['editor'])));return this['editor']['data']['toModel'](_0x4a7af7);}['_saveMetaData'](_0x22edbf,_0x595e22,_0x225414,_0xc5b392){const _0x18044c=new Map(_0x595e22),_0xe0d6e1=new Map(_0x51a809(_0xc5b392)),_0x58e5a7=new Map();for(const [_0x34c0a5,_0x404e57]of _0x225414)_0x58e5a7['set'](_0x34c0a5,{'start':_0x404e57['start']['clone'](),'end':_0x404e57['end']['clone'](),'rootName':_0x404e57['root']['rootName']});this['_savedMetaData']['set'](_0x22edbf,{'roots':_0x18044c,'markers':_0x58e5a7,'rootsAttributes':_0xe0d6e1});}['_removeMetaData'](_0x3b3848){this['_savedMetaData']['delete'](_0x3b3848);}['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'](_0xb46423,_0x299352=null){let _0x4cb92f=null;_0xb46423['is']('documentFragment')||(_0x4cb92f=new ft(_0xb46423['name'],{'vid_start':null===_0x299352?this['_revisionId']++:_0x299352++}));const _0x7c8373=[];for(const _0x2b93ec of _0xb46423['getChildren']())if(_0x2b93ec['is']('element')){_0x7c8373['push'](this['_makeIdsRoot'](_0x2b93ec,_0x299352));const _0x513cc1=_0x7c8373[_0x7c8373['length']-0x1];null!==_0x299352&&(_0x299352=_0x513cc1['is']('element','$text')?_0x513cc1['getAttribute']('vid')+0x1:_0x513cc1['getAttribute']('vid_end')+0x1);}else{for(let _0x230caf=0x0;_0x230caf<_0x2b93ec['offsetSize'];_0x230caf++)_0x7c8373['push'](new ft('$text',{'vid':null===_0x299352?this['_revisionId']++:_0x299352++}));}if(_0xb46423['is']('documentFragment')){const _0x50a774=B(_0xb46423['rootName']);return _0x50a774['_insertChild'](0x0,_0x7c8373),_0x50a774;}return _0x4cb92f['_setAttribute']('vid_end',null===_0x299352?this['_revisionId']++:_0x299352++),_0x4cb92f['_insertChild'](0x0,_0x7c8373),_0x4cb92f;}['_calculateMetaData'](_0x1b3071,_0x2b3216,_0x5d8f87){this['_reset']();const {roots:_0x153ead,markers:_0x1c19ef,rootsAttributes:_0x28a0e0}=this['_savedMetaData']['get'](_0x1b3071);this['_baseRoots']=new Map(_0x153ead),this['_baseRootsAttributes']=new Map(_0x51a809(_0x28a0e0));for(const [_0x305ac1,_0x5e53f7]of this['_baseRoots'])if('$graveyard'!==_0x305ac1&&(this['_diffRoots']['set'](_0x305ac1,F(_0x5e53f7)),this['_diffRootsAttributes']=new Map(_0x51a809(_0x28a0e0)),_0x5d8f87)){const _0x45926a=this['_revisionId'];this['_idsRoots']['set'](_0x305ac1,this['_makeIdsRoot'](_0x5e53f7)),this['_baseIdsRoots']['set'](_0x305ac1,this['_makeIdsRoot'](_0x5e53f7,_0x45926a));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x5d8f87&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x58446f,_0x37f733]of _0x1c19ef){const _0xbf824f=this['_baseRoots']['get'](_0x37f733['rootName']),_0x1f5e0e=this['_diffRoots']['get'](_0x37f733['rootName']),_0x16c822=new vt(this['_fixPosition'](_0x37f733['start'],_0xbf824f),this['_fixPosition'](_0x37f733['end'],_0xbf824f)),_0x5ea15a=this['_fixRange'](_0x16c822,_0x1f5e0e);_0xbf824f['markers']['set'](_0x58446f,_0x16c822),this['_markers']['set'](_0x58446f,_0x5ea15a);}this['_applyOperations'](_0x1b3071,_0x2b3216,_0x5d8f87);}['_applyOperations'](_0x1476a6,_0xae71b8,_0x5f3480){for(const _0x4acf9e of this['source']['getOperations'](_0x1476a6,_0xae71b8))this['_handleOperation'](_0x4acf9e,_0x5f3480);for(const _0x3a5c88 of this['_diffRoots']['values']())_0x3a5c88['markers']['clear']();for(const [_0x509f52,_0x4baca5]of this['_markers']){this['_diffRoots']['get'](_0x4baca5['root']['rootName'])['markers']['set'](_0x509f52,_0x4baca5['clone']());}const _0x57f4f4=new Map(),_0x566fa8=new Map();for(const [_0x2c67cc,_0x3b5628]of this['_diffRoots'])_0x57f4f4['set'](_0x2c67cc,F(_0x3b5628)),_0x566fa8['set'](_0x2c67cc,this['_diffRootsAttributes']['get'](_0x2c67cc));this['_saveMetaData'](_0xae71b8,_0x57f4f4,this['_markers'],_0x566fa8);}['_getPreviousFrom'](_0x2d38ef){const _0x33cadb=Array['from'](this['_savedMetaData']['keys']());_0x33cadb['sort']((_0x264621,_0x2a5bf9)=>_0x264621-_0x2a5bf9),_0x33cadb['reverse']();for(const _0x1fb480 of _0x33cadb)if(_0x1fb480<_0x2d38ef)return _0x1fb480;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x187a62,_0x277a94){const _0x253327=Array['from'](_0x277a94['markers'])['map'](([_0x4c427d,_0x107215])=>[_0x4c427d,this['_fixRange'](_0x107215,_0x187a62)]);_0x187a62['markers']=new Map(_0x253327);}['_transformMarkers'](_0x7a384){for(const _0x328ebf of this['_markers']['values']()){const _0xc67c5e=_0x328ebf['getTransformedByOperation'](_0x7a384),_0x2ac299=vt['_createFromRanges'](_0xc67c5e);_0x328ebf['start']=_0x2ac299['start'],_0x328ebf['end']=_0x2ac299['end'];}}['_handleOperation'](_0x3f0dc9,_0x4f5c63){if('addRoot'!=_0x3f0dc9['type']&&'detachRoot'!=_0x3f0dc9['type']){if('insert'==_0x3f0dc9['type']){const _0x54d0a6=_0x3f0dc9['position']['root']['rootName'];this['_diffRoots']['has'](_0x54d0a6)||(this['_diffRoots']['set'](_0x54d0a6,B(_0x54d0a6,!0x0)),this['_diffRootsAttributes']['set'](_0x54d0a6,{}),_0x4f5c63&&this['_idsRoots']['set'](_0x54d0a6,B(_0x54d0a6,!0x0)));}else{if('addRootAttribute'==_0x3f0dc9['type']||'removeRootAttribute'==_0x3f0dc9['type']||'changeRootAttribute'==_0x3f0dc9['type'])return void this['_handleRootAttributeOperation'](_0x3f0dc9);'marker'==_0x3f0dc9['type']&&this['_handleMarkerOperation'](_0x3f0dc9);}if('marker'!==_0x3f0dc9['type']){const _0x58680f=this['_cloneOperation'](_0x3f0dc9,this['_diffRoots']);_0x58680f['_execute'](),this['_transformMarkers'](_0x58680f);}if(_0x4f5c63)switch(_0x3f0dc9['type']){case'insert':this['_handleInsertOperation'](_0x3f0dc9);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x3f0dc9);break;case'merge':this['_handleMergeOperation'](_0x3f0dc9);break;case'split':this['_handleSplitOperation'](_0x3f0dc9);}}else this['_handleRootOperation'](_0x3f0dc9,_0x4f5c63);}['_cloneOperation'](_0x3da0b1,_0x57b3c7){const _0x3a0060=_0x3da0b1['clone']();return _0x3a0060['_authorId']=_0x3da0b1['_authorId'],this['_fixOperation'](_0x3a0060,_0x57b3c7),_0x3a0060;}['_getBaseVids'](_0x435e11){return _0x435e11['map'](_0x3e9768=>{const _0x364681=this['_getVidAttributeName'](_0x3e9768);return Number(_0x3e9768['item']['getAttribute'](_0x364681));});}['_generateTape'](_0x3c634d,_0x260423){if(_0x3c634d['is']('element','$text'))_0x260423['push']({'item':_0x3c634d,'type':'text'});else{_0x3c634d['is']('element')&&_0x260423['push']({'item':_0x3c634d,'type':'elementStart'});for(const _0x635417 of _0x3c634d['getChildren']())this['_generateTape'](_0x635417,_0x260423);_0x3c634d['is']('element')&&_0x260423['push']({'item':_0x3c634d,'type':'elementEnd'});}return _0x260423;}['_getState'](){const _0x7ffc47=new Map(this['_touched']),_0x548ca6=new Map(_0x7ffc47),_0x4df487=new Map(),_0x1366fb={'insertions':{},'deletions':{}},_0x30ca2f={'insertions':{},'deletions':{}},_0x5d1c01=new Map(),_0xd34d88=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0xd34d88['delete']('$graveyard');for(const _0x5dd571 of _0xd34d88){const _0x32e724=this['_diffRoots']['get'](_0x5dd571)||B(_0x5dd571,!0x1),_0x4f40f3=this['_baseRoots']['get'](_0x5dd571)||B(_0x5dd571,!0x1);_0x32e724['isAttached']()||_0x4f40f3['isAttached']()?(_0x1366fb['insertions'][_0x5dd571]=F(_0x32e724),_0x1366fb['deletions'][_0x5dd571]=F(_0x4f40f3),this['_copyMarkers'](_0x1366fb['deletions'][_0x5dd571],_0x4f40f3),this['_copyMarkers'](_0x1366fb['insertions'][_0x5dd571],_0x32e724),_0x30ca2f['insertions'][_0x5dd571]=this['_generateTape'](this['_idsRoots']['get'](_0x5dd571),[]),_0x30ca2f['deletions'][_0x5dd571]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x5dd571)||B(_0x5dd571,!0x1),[])):_0xd34d88['delete'](_0x5dd571);}for(const _0x153d6a of _0xd34d88){const _0x820c59=_0x30ca2f['insertions'][_0x153d6a];for(const _0x182b85 of _0x820c59){const _0x412502=this['_getVidAttributeName'](_0x182b85),_0x22b016=_0x182b85['item']['getAttribute'](_0x412502);_0x548ca6['delete'](_0x22b016),_0x22b016>=this['_startingRevisionId']&&_0x4df487['set'](_0x22b016,_0x7ffc47['get'](_0x22b016));}}for(const _0x40f251 of _0xd34d88){const _0x17f399=_0x30ca2f['insertions'][_0x40f251],_0x3cd92f=this['_getBaseVids'](_0x30ca2f['deletions'][_0x40f251]);let _0x534eff=0x0;for(const _0x366f9e of _0x17f399){const _0x27d138=this['_getVidAttributeName'](_0x366f9e),_0x9628a=_0x366f9e['item']['getAttribute'](_0x27d138);if(!_0x4df487['has'](_0x9628a)&&!_0x5d1c01['has'](_0x9628a)){if(_0x548ca6['has'](_0x9628a))_0x534eff++;else{if(_0x9628a!=_0x3cd92f[_0x534eff]){const _0x140f85=_0x7ffc47['get'](_0x9628a)||_0x7ffc47['get'](_0x3cd92f[_0x534eff]);for(;_0x9628a!=_0x3cd92f[_0x534eff];)_0x548ca6['has'](_0x3cd92f[_0x534eff])||(_0x5d1c01['set'](_0x3cd92f[_0x534eff],_0x140f85),_0x7ffc47['set'](_0x3cd92f[_0x534eff],_0x140f85)),_0x534eff++;}_0x534eff++;}}}}for(const _0x4e755c of _0xd34d88){const _0x355e47=_0x30ca2f['insertions'][_0x4e755c];for(const _0x1fb2b4 of _0x355e47){const _0x954d6a=this['_getVidAttributeName'](_0x1fb2b4),_0x467cd4=_0x1fb2b4['item']['getAttribute'](_0x954d6a);if(_0x5d1c01['has'](_0x467cd4)){const _0x4dfcc9=_0x5d1c01['get'](_0x467cd4);_0x548ca6['has'](_0x467cd4)||_0x548ca6['set'](_0x467cd4,{..._0x4dfcc9}),_0x4df487['set'](_0x467cd4,{..._0x4dfcc9});}}}for(const _0x40967e of _0x548ca6['keys']())_0x40967e>=this['_startingRevisionId']&&_0x548ca6['delete'](_0x40967e);const _0x5b04bd=new Map();for(const _0x3f377f of _0xd34d88){let _0x3a0fd5=_0x30ca2f['insertions'][_0x3f377f];for(const _0x429d20 of _0x3a0fd5)if(_0x429d20['item']['is']('element','tableCell')){const _0x1c6d34=this['_getVidAttributeName'](_0x429d20),_0x265157=_0x429d20['item']['getAttribute'](_0x1c6d34);if(_0x4df487['has'](_0x265157)){const _0x1e91b6=_0x429d20['item']['parent']['parent']['getAttribute']('vid_start'),_0x471cd1=_0x5b04bd['get'](_0x1e91b6)||new Set();_0x471cd1['add'](_0x4df487['get'](_0x265157)['userId']),_0x5b04bd['set'](_0x1e91b6,_0x471cd1);}}_0x3a0fd5=_0x30ca2f['deletions'][_0x3f377f];for(const _0x5c5e1f of _0x3a0fd5)if(_0x5c5e1f['item']['is']('element','tableCell')){const _0x988d58=this['_getVidAttributeName'](_0x5c5e1f),_0xced4a3=_0x5c5e1f['item']['getAttribute'](_0x988d58);if(_0x548ca6['has'](_0xced4a3)){const _0x488f39=_0x5c5e1f['item']['parent']['parent']['getAttribute']('vid_start'),_0x4621c2=_0x5b04bd['get'](_0x488f39)||new Set();_0x4621c2['add'](_0x548ca6['get'](_0xced4a3)['userId']),_0x5b04bd['set'](_0x488f39,_0x4621c2);}}for(const _0x334d33 of _0x5b04bd['keys']())(_0x4df487['has'](_0x334d33)||_0x548ca6['has'](_0x334d33))&&_0x5b04bd['delete'](_0x334d33);}for(const _0x10a722 of _0xd34d88){const _0x24b61f=_0x30ca2f['insertions'][_0x10a722];let _0x28dfd9=null,_0x2a8e2=null;for(const _0xc5cc04 of _0x24b61f){const _0x2e4a7c=this['_getVidAttributeName'](_0xc5cc04),_0x412a88=_0xc5cc04['item']['getAttribute'](_0x2e4a7c),_0x484cc5=_0x5b04bd['get'](_0x412a88);_0x484cc5&&'elementStart'==_0xc5cc04['type']&&(_0x28dfd9=Array['from'](_0x484cc5)[0x0],_0x2a8e2=_0xc5cc04['item']['getAttribute']('vid_end')),_0x28dfd9&&(_0x548ca6['set'](_0x412a88,{'userId':_0x28dfd9}),_0x4df487['set'](_0x412a88,{'userId':_0x28dfd9})),_0x412a88==_0x2a8e2&&(_0x28dfd9=null,_0x2a8e2=null);}}const _0x1ed6f2={},_0x5b92e8=new Set();for(const _0x28ccab of _0xd34d88){const _0x2a76ac=_0x1366fb['deletions'][_0x28ccab],_0x5da62f=_0x1366fb['insertions'][_0x28ccab];for(const {userId:_0x64c0d2}of this['_touchedMarkers']['values']())null!==_0x64c0d2&&_0x5b92e8['add'](_0x64c0d2);for(const {userId:_0x86dd15}of this['_touchedRoots']['values']())null!==_0x86dd15&&_0x5b92e8['add'](_0x86dd15);this['_markChanges'](_0x5da62f,_0x30ca2f['insertions'][_0x28ccab],_0x4df487,'insertion',_0x5b92e8),this['_markChanges'](_0x2a76ac,_0x30ca2f['deletions'][_0x28ccab],_0x548ca6,'deletion',_0x5b92e8),_0x1ed6f2[_0x28ccab]={'insertions':this['_prepareViewToSave'](_0x5da62f),'deletions':this['_prepareViewToSave'](_0x2a76ac),'attachChange':this['_touchedRoots']['get'](_0x28ccab)||null,'attributesBefore':_0x51a809(this['_baseRootsAttributes']['get'](_0x28ccab))||{},'attributesAfter':_0x51a809(this['_diffRootsAttributes']['get'](_0x28ccab))};}return{'diffData':_0x1ed6f2,'authorsIds':Array['from'](_0x5b92e8)};}['_processRootBeforeSave'](_0x39a72b){for(const [,_0x183738]of _0x39a72b['markers']){const _0x5aee1c=_0x183738['start']['getAncestors']()['filter'](_0x2070f5=>'tableCell'==_0x2070f5['name']);for(const _0xc4196c of _0x5aee1c)0x1==_0xc4196c['childCount']&&_0xc4196c['getChild'](0x0)['is']('element','paragraph')&&_0xc4196c['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x140091){this['_processRootBeforeSave'](_0x140091);const _0x2b7629=this['editor']['data']['toView'](_0x140091,{}),_0x206db0=Array['from'](_0x2b7629['getChildren']())['map'](_0x17a7e4=>this['_getViewJson'](_0x17a7e4));return JSON['stringify'](_0x206db0);}['_getViewJson'](_0x15f9c2){if(_0x15f9c2['is']('$text'))return _0x15f9c2['data'];{const _0xff7cd5=_0x15f9c2;return{'type':Object['keys'](C)['find'](_0x19c318=>_0x15f9c2 instanceof C[_0x19c318]),'name':_0xff7cd5['name'],'attributes':Array['from'](_0xff7cd5['getAttributes']()),'children':Array['from'](_0xff7cd5['getChildren']())['map'](_0x15bb66=>this['_getViewJson'](_0x15bb66))};}}['_markChanges'](_0x2a5aa7,_0x271ada,_0x14b6b3,_0x184beb,_0x3c5bd9){let _0x7a421=null,_0x1475f4=null,_0x2cd5a7=0x0;const _0x459265=this['editor']['model'];for(let _0x20696f=0x0;_0x20696f<_0x271ada['length'];_0x20696f++){const _0x460c04=this['_getVidAttributeName'](_0x271ada[_0x20696f]),_0x552404=_0x271ada[_0x20696f]['item']['getAttribute'](_0x460c04),_0x11b757=_0x14b6b3['get'](_0x552404),_0x591d80=_0x20696f==_0x271ada['length']-0x1;(!_0x7a421&&_0x11b757&&(_0x7a421=_0x11b757,_0x1475f4=_0x271ada[_0x20696f]),_0x7a421&&(!_0x11b757||_0x11b757['userId']!=_0x7a421['userId']))&&(_0x116e4a(_0x11b757,J(_0x1475f4,_0x2a5aa7,_0x459265),J(_0x271ada[_0x20696f],_0x2a5aa7,_0x459265)),_0x7a421=_0x11b757||null,_0x1475f4=_0x11b757?_0x271ada[_0x20696f]:null),_0x7a421&&_0x591d80&&_0x116e4a(_0x11b757,J(_0x1475f4,_0x2a5aa7,_0x459265),q(_0x271ada[_0x20696f],_0x2a5aa7,_0x459265));}function _0x116e4a(_0x47b53a,_0x573de4,_0x26f497){const _0x4c7206=_0x7a421['userId'],_0x2eb23b='revision:'+_0x184beb+':'+_0x4c7206+':'+_0x2cd5a7++,_0x2a7ac2=_0x459265['createRange'](_0x573de4,_0x26f497);_0x2a5aa7['markers']['set'](_0x2eb23b,_0x2a7ac2),null!==_0x4c7206&&_0x3c5bd9['add'](_0x4c7206);}}['_getVidAttributeName'](_0x3ae768){switch(_0x3ae768['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x3c55c2,_0x445dd0){_0x3c55c2['baseVersion']=null;for(const _0x2755e0 in _0x3c55c2){const _0x4f8ec5=_0x3c55c2[_0x2755e0];if(_0x4f8ec5 instanceof gt){const _0x15a931=_0x445dd0['get'](_0x4f8ec5['root']['rootName']);_0x3c55c2[_0x2755e0]=this['_fixPosition'](_0x4f8ec5,_0x15a931);}if(_0x4f8ec5 instanceof vt){const _0xdaf642=_0x445dd0['get'](_0x4f8ec5['root']['rootName']);_0x3c55c2[_0x2755e0]=this['_fixRange'](_0x4f8ec5,_0xdaf642);}'root'===_0x2755e0&&(_0x3c55c2['root']=_0x445dd0['get'](_0x3c55c2['root']['rootName']));}}['_fixRange'](_0x565fd2,_0x5ae109){return this['editor']['model']['createRange'](this['_fixPosition'](_0x565fd2['start'],_0x5ae109),this['_fixPosition'](_0x565fd2['end'],_0x5ae109));}['_fixPosition'](_0x2344b9,_0x4233d0){return this['editor']['model']['createPositionFromPath'](_0x4233d0,_0x2344b9['path'],_0x2344b9['stickiness']);}['_handleInsertOperation'](_0x4c6c9b){const _0x1cfdd6=this['_idsRoots']['get'](_0x4c6c9b['position']['root']['rootName']),_0x9afb78=this['_fixPosition'](_0x4c6c9b['position'],_0x1cfdd6),_0x253472=null===_0x4c6c9b['_authorId']?null:_0x4c6c9b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x205117=_0x9afb78['parent'],_0x556f04=this['_revisionId'],_0x542702=[];for(const _0x5590e2 of _0x4c6c9b['nodes'])if(_0x5590e2['is']('element'))_0x542702['push'](this['_makeIdsRoot'](_0x5590e2));else{for(let _0x291988=0x0;_0x291988<_0x5590e2['offsetSize'];_0x291988++)_0x542702['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x546c7a=this['_revisionId'];for(let _0x1daec6=_0x556f04;_0x1daec6<_0x546c7a;_0x1daec6++)this['_touched']['set'](_0x1daec6,{'userId':_0x253472});_0x205117['_insertChild'](_0x9afb78['offset'],_0x542702);}['_handleMoveOperation'](_0x3c6c8d){(_0x3c6c8d=this['_cloneOperation'](_0x3c6c8d,this['_idsRoots']))['_execute']();const _0x12f099=null===_0x3c6c8d['_authorId']?null:_0x3c6c8d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x127f9d=_0x3c6c8d['getMovedRangeStart'](),_0x15f658=_0x127f9d['parent'],_0x4ad78e=_0x127f9d['offset'];!function _0x53ecff(_0x184df2,_0x295944,_0x1f09d3,_0x4d847c){for(let _0x46e523=_0x1f09d3;_0x46e523<_0x4d847c;_0x46e523++){const _0x62abca=_0x295944['getChild'](_0x46e523);_0x62abca['is']('element','$text')?_0x184df2['set'](_0x62abca['getAttribute']('vid'),{'userId':_0x12f099}):(_0x184df2['set'](_0x62abca['getAttribute']('vid_start'),{'userId':_0x12f099}),_0x53ecff(_0x184df2,_0x62abca,0x0,_0x62abca['childCount']),_0x184df2['set'](_0x62abca['getAttribute']('vid_end'),{'userId':_0x12f099}));}}(this['_touched'],_0x15f658,_0x4ad78e,_0x4ad78e+_0x3c6c8d['howMany']);}['_handleMergeOperation'](_0x5ca69c){const _0x3ca983=null===(_0x5ca69c=this['_cloneOperation'](_0x5ca69c,this['_idsRoots']))['_authorId']?null:_0x5ca69c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x8c575c=_0x5ca69c['targetPosition']['parent'],_0x25579d=_0x5ca69c['sourcePosition']['parent'],_0x24ba50=_0x8c575c['getAttribute']('vid_end'),_0x584477=_0x25579d['getAttribute']('vid_start');_0x8c575c['_setAttribute']('vid_end',_0x25579d['getAttribute']('vid_end')),_0x25579d['_setAttribute']('vid_end',_0x24ba50),this['_touched']['set'](_0x584477,{'userId':_0x3ca983}),this['_touched']['set'](_0x24ba50,{'userId':_0x3ca983}),_0x5ca69c['_execute']();}['_handleSplitOperation'](_0xc86d5d){const _0x1fad76=null===(_0xc86d5d=this['_cloneOperation'](_0xc86d5d,this['_idsRoots']))['_authorId']?null:_0xc86d5d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x401cd=_0xc86d5d['graveyardPosition'],_0x29119b=_0xc86d5d['splitPosition']['parent'];_0xc86d5d['_execute']();const _0x56173b=_0x29119b['getAttribute']('vid_end'),_0x5c093b=_0xc86d5d['insertionPosition']['nodeAfter'];if(_0x401cd){const _0x381d57=_0x5c093b['getAttribute']('vid_end'),_0x4ec340=_0x29119b['getAttribute']('vid_end');_0x29119b['_setAttribute']('vid_end',_0x381d57),_0x5c093b['_setAttribute']('vid_end',_0x4ec340),this['_touched']['set'](_0x29119b['getAttribute']('vid_end'),{'userId':_0x1fad76}),this['_touched']['set'](_0x5c093b['getAttribute']('vid_start'),{'userId':_0x1fad76});}else{const _0x504810=this['_revisionId']++,_0x293c58=this['_revisionId']++;_0x29119b['_setAttribute']('vid_end',_0x504810),_0x5c093b['_setAttribute']('vid_start',_0x293c58),_0x5c093b['_setAttribute']('vid_end',_0x56173b),this['_touched']['set'](_0x504810,{'userId':_0x1fad76}),this['_touched']['set'](_0x293c58,{'userId':_0x1fad76});}}['_handleMarkerOperation'](_0x5acb6d){if(!_0x5acb6d['affectsData'])return;const _0x4f7b83=(_0x5acb6d=this['_cloneOperation'](_0x5acb6d,this['_diffRoots']))['oldRange']?_0x5acb6d['oldRange']['root']:null,_0x547ff6=_0x5acb6d['newRange']?_0x5acb6d['newRange']['root']:null;_0x4f7b83&&this['_markers']['delete'](_0x5acb6d['name']),_0x547ff6&&this['_markers']['set'](_0x5acb6d['name'],_0x5acb6d['newRange']['clone']());const _0x4f60f7=null===_0x5acb6d['_authorId']?null:_0x5acb6d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x51ce9c=_0x5acb6d['name'];if(!this['_touchedMarkers']['has'](_0x51ce9c))return void this['_touchedMarkers']['set'](_0x51ce9c,{'range':_0x5acb6d['oldRange'],'userId':_0x4f60f7});const _0x17a897=this['_touchedMarkers']['get'](_0x51ce9c),_0x43e0bb=_0x17a897['range'],_0x546a1d=_0x5acb6d['newRange'];null==_0x43e0bb&&null==_0x546a1d||_0x43e0bb&&_0x546a1d&&_0x43e0bb['isEqual'](_0x546a1d)?this['_touchedMarkers']['delete'](_0x5acb6d['name']):_0x17a897['userId']=_0x4f60f7;}['_handleRootOperation'](_0x1f9af6,_0x12f16b){this['_diffRoots']['has'](_0x1f9af6['rootName'])?this['_diffRoots']['get'](_0x1f9af6['rootName'])['_isAttached']=_0x1f9af6['isAdd']:(this['_diffRoots']['set'](_0x1f9af6['rootName'],B(_0x1f9af6['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1f9af6['rootName'],{}),_0x12f16b&&this['_idsRoots']['set'](_0x1f9af6['rootName'],B(_0x1f9af6['rootName'],!0x0)));const _0x31d249=null===_0x1f9af6['_authorId']?null:_0x1f9af6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4a2d9e=this['_touchedRoots']['get'](_0x1f9af6['rootName']);_0x4a2d9e&&_0x4a2d9e['userId']===_0x31d249?this['_touchedRoots']['delete'](_0x1f9af6['rootName']):this['_touchedRoots']['set'](_0x1f9af6['rootName'],{'userId':_0x31d249,'isAttached':_0x1f9af6['isAdd']});}['_handleRootAttributeOperation'](_0x39bd7d){const _0x1c3475=this['_diffRootsAttributes']['get'](_0x39bd7d['root']['rootName']);null===_0x39bd7d['newValue']?delete _0x1c3475[_0x39bd7d['key']]:_0x1c3475[_0x39bd7d['key']]=_0x39bd7d['newValue'];}}function F(_0x41209b){const _0x24fc1b=B(_0x41209b['rootName'],_0x41209b['isAttached']());for(const _0x285f9f of _0x41209b['getChildren']()){const _0x4bc6f5=_0x285f9f['_clone'](!0x0);_0x24fc1b['_appendChild'](_0x4bc6f5);}return _0x24fc1b;}function B(_0x5a6876,_0x12a441=!0x0){const _0x39948c=new wt();return _0x39948c['rootName']=_0x5a6876,_0x39948c['_isAttached']=_0x12a441,_0x39948c['isAttached']=()=>_0x39948c['_isAttached'],_0x39948c;}function J(_0x1f7957,_0x4c40a9,_0x441f3a){const _0x2b558c='elementEnd'==_0x1f7957['type']?_0x441f3a['createPositionAt'](_0x1f7957['item'],'end'):_0x441f3a['createPositionBefore'](_0x1f7957['item']);return _0x441f3a['createPositionFromPath'](_0x4c40a9,_0x2b558c['path'],_0x2b558c['stickiness']);}function q(_0x5dc30f,_0x305cac,_0x5d6e07){const _0x2310e4='elementStart'==_0x5dc30f['type']?_0x5d6e07['createPositionAt'](_0x5dc30f['item'],0x0):_0x5d6e07['createPositionAfter'](_0x5dc30f['item']);return _0x5d6e07['createPositionFromPath'](_0x305cac,_0x2310e4['path'],_0x2310e4['stickiness']);}class ns extends _0x1f9e12{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x1ea343,_0x11bfe3){super(_0x1ea343),this['focusTracker']=new _0x3a76c5(),this['keystrokes']=new _0x30129d(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x11bfe3),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'](),_0x1a6686({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x541c92=_0x440453=>_0x440453['stopPropagation']();this['keystrokes']['set']('arrowright',_0x541c92),this['keystrokes']['set']('arrowleft',_0x541c92),this['keystrokes']['set']('arrowup',_0x541c92),this['keystrokes']['set']('arrowdown',_0x541c92);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x1aa156){this['revisionNameInputView']['fieldView']['element']['value']=_0x1aa156['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x2fabc6){const _0x28a67d=new at(this['locale'],_0x2186b1),_0x20e487=_0x28a67d['fieldView'];_0x20e487['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x313cb7=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x2fabc6&&(_0x313cb7+='\x20('+R(this['locale'],'optional')+')'),(_0x28a67d['label']=_0x313cb7,_0x20e487['on']('input',()=>{this['revisionNameInputValue']=_0x20e487['element']['value']['trim']();}),_0x28a67d);}}class u extends _0x402cd2{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x30dfb3=this['editor'],_0x1c0e1c=_0x30dfb3['plugins']['get']('RevisionTracker');_0x30dfb3['ui']['componentFactory']['add']('revisionHistory',_0x707aaa=>{const _0x55e7e1=_0x2c9d20(_0x707aaa),_0x5ec7fe=_0x55e7e1['panelView']['children'],_0x2f77c7=new te(_0x707aaa),_0x39dff4=new _0x14c301(_0x707aaa),_0x18a437=new _0x4f565d(_0x707aaa),_0x52b545=new _0x14c301(_0x707aaa),_0x1ee1dd=new _0x4f565d(_0x707aaa);return _0x55e7e1['bind']('isEnabled')['to'](_0x1c0e1c,'isReady',_0x1c0e1c,'isEnabled',_0x30dfb3,'isReadOnly',(_0x504e8d,_0x454907,_0x554745)=>_0x504e8d&&_0x454907&&!_0x554745),_0x55e7e1['buttonView']['set']({'icon':_0x9f8c6d['history'],'label':R(_0x707aaa,'Revision\x20history'),'tooltip':!0x0}),_0x18a437['set']({'label':R(_0x707aaa,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x18a437['bind']('isEnabled')['to'](_0x1c0e1c,'isReady',_0x1c0e1c,'isEnabled',_0x30dfb3,'isReadOnly',(_0x256e4e,_0x537234,_0x4ba1b4)=>_0x256e4e&&_0x537234&&!_0x4ba1b4),_0x18a437['on']('execute',()=>this['_showDialog']()),_0x1ee1dd['set']({'label':R(_0x707aaa,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x1ee1dd['bind']('isEnabled')['to'](_0x1c0e1c,'isReady',_0x30dfb3,'isReadOnly',(_0x1474ba,_0x147033)=>_0x1474ba&&!_0x147033),_0x1ee1dd['on']('execute',()=>{_0x30dfb3['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x55e7e1['isOpen']=!0x1,_0x30dfb3['editing']['view']['focus']();}),_0x39dff4['children']['add'](_0x18a437),_0x52b545['children']['add'](_0x1ee1dd),_0x2f77c7['role']='menu',_0x2f77c7['items']['addMany']([_0x39dff4,_0x52b545]),_0x5ec7fe['add'](_0x2f77c7),_0x55e7e1;}),_0x30dfb3['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x90136e=this['editor'],_0x24f513=_0x90136e['locale'],_0x1f237e=new _0x54fa66(_0x24f513),_0x4cbd1a=new _0xd62fd3(_0x24f513);_0x1f237e['buttonView']['set']({'icon':_0x9f8c6d['history'],'label':R(_0x24f513,'Revision\x20history')});const _0x2a187a=new _0x4a66b1(_0x24f513,_0x1f237e),_0x3cc20c=new _0x166bdc(_0x24f513);_0x3cc20c['set']({'label':R(_0x24f513,'Save\x20current\x20revision')}),_0x3cc20c['delegate']('execute')['to'](_0x1f237e),_0x3cc20c['on']('execute',()=>{this['_showDialog']();}),_0x2a187a['children']['add'](_0x3cc20c),_0x4cbd1a['items']['add'](_0x2a187a);const _0x28897e=new _0x4a66b1(_0x24f513,_0x1f237e),_0xff0860=new _0x166bdc(_0x24f513);return _0xff0860['set']({'label':R(_0x24f513,'Open\x20revision\x20history')}),_0xff0860['delegate']('execute')['to'](_0x1f237e),_0xff0860['on']('execute',()=>{_0x90136e['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x28897e['children']['add'](_0xff0860),_0x4cbd1a['items']['add'](_0x28897e),_0x1f237e['panelView']['children']['add'](_0x4cbd1a),_0x1f237e;}['_showDialog'](){const _0x33374d=this['editor'],_0xf56cd1=_0x33374d['locale'],_0x5b668b=_0x33374d['plugins']['get']('Dialog'),_0x56dabd=_0x33374d['plugins']['get']('RevisionTracker');function _0x132ed1(_0x1efba0){_0x33374d['config']['get']('revisionHistory.requireRevisionName')&&''===_0x1efba0['revisionName']?_0x1efba0['revisionNameInputView']['errorText']=R(_0xf56cd1,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x33374d['plugins']['get'](l)['saveRevision']({'name':_0x1efba0['revisionName']}),_0x5b668b['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x132ed1(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x5b668b['show']({'id':'revisionSave','title':R(_0xf56cd1,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x33374d['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x5b668b['hide']()},{'label':R(_0x33374d['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x51c2bf){_0x51c2bf['bind']('isEnabled')['to'](_0x56dabd,'isReady',_0x56dabd,'isEnabled',_0x33374d,'isReadOnly',(_0x5369c2,_0x4bc966,_0x536260)=>_0x5369c2&&_0x4bc966&&!_0x536260);},'onExecute':()=>_0x132ed1(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x59bdd7=this['editor'],_0x59c69f=_0x59bdd7['locale'];this['_saveRevisionFormView']=new ns(_0x59c69f,_0x59bdd7['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends _0x1f9e12{['changeId'];['_model'];constructor(_0x5955fe,_0x11336c){super(_0x5955fe),this['_model']=_0x11336c,this['changeId']=_0x11336c['id'];const _0x350360=this['bindTemplate'],_0x4f315c=R(_0x5955fe,_0x11336c['data']['isSuggestion']?'Suggested\x20by':'add'==_0x11336c['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x11336c['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x350360['to']('type',_0xbbfca8=>'ck-revision-change__'+_0xbbfca8)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x4f315c}]},{'text':'\x20'+_0x11336c['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x574c1c(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x55259f){super(),this['id']=_0x55259f['id']||_0x550c17(),this['author']=_0x55259f['author'],this['type']=_0x55259f['type'],this['data']=_0x55259f['data']||{},this['rootName']=_0x55259f['rootName'],this['set']('createdAt',_0x55259f['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(_0x30153a,_0x569a4f){this['newRevisionId']=_0x30153a,this['oldRevisionId']=_0x569a4f,this['changes']=new _0x1a01dd();}['_setChanges'](_0x37ce05){for(const _0x28f028 of _0x37ce05)this['changes']['add'](_0x28f028);}}const Z={'c':_0x56152c,'a':_0x431e2c,'e':_0x58e8fe,'r':_0x15d160,'u':_0x335e67};class d extends _0x402cd2{['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[_0xbe6911,_0x4ac98d,j];}constructor(_0x1d757f){super(_0x1d757f),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',(_0x153248,_0x2ecde0,_0x41d116)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x5820dc=>{for(const _0x49ed6c of this['editor']['editing']['view']['document']['roots'])_0x41d116?_0x5820dc['removeClass']('ck-editor__editable__overlay',_0x49ed6c):_0x5820dc['addClass']('ck-editor__editable__overlay',_0x49ed6c);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x404796=>null!==_0x404796),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x35b914,_0x457f38,_0xb6b3b5)=>_0x35b914&&_0xb6b3b5?_0x457f38['changes']['getIndex'](_0xb6b3b5):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x5b904a,_0x1925d4)=>_0x5b904a?_0x1925d4['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x4ac98d);}['init'](){const _0x5b0754=this['editor'],_0x5bf931=new bt(_0x5b0754,{'direction':'backward'}),_0x22301e=new bt(_0x5b0754,{'direction':'forward'});(_0x5b0754['commands']['add']('showPreviousChange',_0x5bf931),_0x5b0754['commands']['add']('showNextChange',_0x22301e),_0x5b0754['commands']['add']('restoreRevision',new yt(_0x5b0754)),this['on']('change:numberOfChanges',()=>{_0x5bf931['refresh'](),_0x22301e['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x5b0754['enableReadOnlyMode']('revision-viewer'),_0x5b0754['plugins']['has']('WidgetToolbarRepository'))&&_0x5b0754['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x2106e1){await this['loadRevisionData'](_0x2106e1);const _0x5721da={};for(const _0x16c57e in _0x2106e1['diffData']){if(_0x2106e1['diffData'][_0x16c57e]['attachChange']&&!_0x2106e1['diffData'][_0x16c57e]['attachChange']['isAttached'])continue;const _0x528d78=this['_removeRevisionMarkers'](JSON['parse'](_0x2106e1['diffData'][_0x16c57e]['insertions'])),_0xcf668c=this['editor']['editing']['view']['document'],_0x1ba276=new _0x5deb62(_0xcf668c,_0x528d78['map'](_0x49b97d=>this['_getViewObj'](_0x49b97d)));this['editor']['data']['processor']['useFillerType']('marked'),_0x5721da[_0x16c57e]=this['editor']['data']['processor']['toData'](_0x1ba276),this['editor']['data']['processor']['useFillerType']('default');}return _0x5721da;}async['getRevisionRootsAttributes'](_0x5063b7){await this['loadRevisionData'](_0x5063b7);const _0x597018={};for(const _0x5c3450 in _0x5063b7['diffData'])_0x5063b7['diffData'][_0x5c3450]['attachChange']&&!_0x5063b7['diffData'][_0x5c3450]['attachChange']['isAttached']||(_0x597018[_0x5c3450]=_0x5063b7['diffData'][_0x5c3450]['attributesAfter']||{});return _0x597018;}['_removeRevisionMarkers'](_0x16a989){return(_0x16a989=_0x16a989['filter'](_0x1f3563=>!_0x1f3563['name']||'revision-start'!==_0x1f3563['name']&&'revision-end'!==_0x1f3563['name']))['forEach'](_0x36ac09=>{'string'!=typeof _0x36ac09&&(_0x36ac09['children']=this['_removeRevisionMarkers'](_0x36ac09['children']),_0x36ac09['attributes']=_0x36ac09['attributes']['filter'](_0x889bae=>!_0x889bae[0x0]['startsWith']('data-revision-')));}),_0x16a989;}async['compare'](_0x5d4955,_0x50d623,_0x288ff6=!0x1){if(!this['isEnabled'])return;const _0x59fcf3=this['diff'],_0x1d8122=this['repository'],_0x19cb60='string'==typeof _0x5d4955?_0x1d8122['getRevision'](_0x5d4955):_0x5d4955,_0x2d27ab='string'==typeof _0x50d623?_0x1d8122['getRevision'](_0x50d623):_0x50d623,_0x28d6d9=_0x19cb60['id'],_0x10eb91=_0x2d27ab?_0x2d27ab['id']:null;if(!_0x288ff6&&this['diff']&&this['diff']['newRevisionId']===_0x28d6d9&&this['diff']['oldRevisionId']===_0x10eb91)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x28d6d9,_0x10eb91);const _0x159692=this['_getRevisionsRange'](_0x19cb60,_0x2d27ab,!0x0)['map'](_0x3ba7f4=>this['loadRevisionData'](_0x3ba7f4));return _0x159692['push'](new Promise(_0x238a03=>{setTimeout(_0x238a03,0x14);})),Promise['all'](_0x159692)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x4f6af3=this['_getDiff'](_0x28d6d9,_0x10eb91);for(const _0x6fbf27 of _0x4f6af3['changes'])this['_changeIdToChange']['set'](_0x6fbf27['id'],_0x6fbf27);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2e3c62=>{for(const _0x544df1 of this['editor']['model']['document']['getRootNames']())_0x2e3c62['detachRoot'](_0x544df1);for(const _0x4b9087 of Object['keys'](_0x4f6af3['model'])){const _0x1c9edd=_0x2e3c62['addRoot'](_0x4b9087);for(const _0x31509d of Object['keys'](_0x4f6af3['attributes'][_0x4b9087]))_0x2e3c62['setAttribute'](_0x31509d,_0x4f6af3['attributes'][_0x4b9087][_0x31509d],_0x1c9edd);_0x2e3c62['insert'](_0x4f6af3['model'][_0x4b9087],_0x1c9edd,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x4f6af3['changes'])),this['isReady']=!0x0;})['catch'](_0x1135ba=>{console['error'](_0x1135ba),this['_cleanUp'](),_0x59fcf3&&(this['diff']=_0x59fcf3),this['isReady']=!0x0;});}['addRevisionData'](_0x40e1e0,_0x4639b9){const _0x1e91a6=this['repository']['createRevision'](_0x40e1e0);return _0x1e91a6['on']('_update',(_0x3494bd,_0x1aa5d4,_0x4dcf5b)=>_0x4639b9(_0x1aa5d4,_0x4dcf5b,_0x1e91a6)),this['repository']['addRevision'](_0x1e91a6),_0x1e91a6;}['loadRevisionData'](_0x4f5af8){if(!_0x4f5af8||_0x4f5af8['diffData'])return Promise['resolve']();{const _0x62f491=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x62f491,'revisionId':_0x4f5af8['id']})['then'](_0x434d37=>{_0x4f5af8['_update']({'diffData':_0x434d37['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},_0x3afc17=>{for(const _0x56d926 of this['editor']['model']['document']['getRootNames']())_0x3afc17['detachRoot'](_0x56d926);});}['_sortAndFilterDiffChanges'](_0x4d4229){const _0x117d1c=[],_0x1a913d=new Map();for(const _0x5e8ed1 of this['editor']['model']['document']['getRootNames']()){const _0x1ceab6=this['editor']['editing']['view']['getDomRoot'](_0x5e8ed1);if(!_0x1ceab6)continue;const _0x1c97c7=_0x1ceab6['getClientRects']()['item'](0x0);_0x1c97c7&&(_0x117d1c['push'](_0x5e8ed1),_0x1a913d['set'](_0x5e8ed1,_0x1c97c7));}return _0x117d1c['sort']((_0xc1bb8f,_0x413955)=>{const _0x427e2b=_0x1a913d['get'](_0xc1bb8f),_0x3067fe=_0x1a913d['get'](_0x413955);return _0x427e2b['y']-_0x3067fe['y']||_0x427e2b['x']-_0x3067fe['x'];}),(_0x4d4229=_0x4d4229['filter'](_0x20b0ee=>_0x117d1c['includes'](_0x20b0ee['rootName'])))['sort']((_0x37e5fa,_0x12995f)=>_0x117d1c['indexOf'](_0x37e5fa['rootName'])-_0x117d1c['indexOf'](_0x12995f['rootName'])),_0x4d4229;}['_makeTape'](_0xf206bf){const _0x3e72f0=Array['from'](_0xf206bf['markers'])['filter'](([_0x78c897,_0x6501f7])=>_0x78c897['startsWith']('revision:')&&!_0x6501f7['isCollapsed']),_0x273855=Array['from'](this['editor']['model']['createRangeIn'](_0xf206bf)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x3e72f0['length'])for(const _0x3d6047 of _0x273855){const [_0xd09ffa,_0x5883db]=_0x3e72f0[0x0],[,_0xa45c24,_0x233ac0]=_0xd09ffa['split'](':');if(_0x5883db['end']['isEqual'](_0x3d6047['nextPosition'])&&_0x3e72f0['shift'](),(_0x3d6047['previousPosition']['isEqual'](_0x5883db['start'])||_0x3d6047['previousPosition']['isAfter'](_0x5883db['start']))&&('insertion'==_0xa45c24?_0x3d6047['isAdded']={'userId':_0x233ac0}:'deletion'==_0xa45c24&&(_0x3d6047['isRemoved']={'userId':_0x233ac0})),0x0==_0x3e72f0['length'])break;}return _0x273855;}['_refreshStartEndIndex'](_0x57b46f){const _0x45a7c3=new Map();for(let _0x6d6300=0x0;_0x6d6300<_0x57b46f['length'];_0x6d6300++)'text'===_0x57b46f[_0x6d6300]['type']?(_0x57b46f[_0x6d6300]['item']['startIndex']=_0x6d6300,_0x57b46f[_0x6d6300]['item']['endIndex']=_0x6d6300):('elementStart'===_0x57b46f[_0x6d6300]['type']?_0x57b46f[_0x6d6300]['item']['startIndex']=_0x6d6300:'elementEnd'===_0x57b46f[_0x6d6300]['type']&&(_0x57b46f[_0x6d6300]['item']['endIndex']=_0x6d6300),_0x45a7c3['set'](_0x57b46f[_0x6d6300]['id'],_0x6d6300));for(const _0x4d22ae of _0x45a7c3['values']())'elementStart'===_0x57b46f[_0x4d22ae]['type']?_0x57b46f[_0x4d22ae]['item']['endIndex']=_0x45a7c3['get'](_0x57b46f[_0x4d22ae]['pairId']):'elementEnd'===_0x57b46f[_0x4d22ae]['type']&&(_0x57b46f[_0x4d22ae]['item']['startIndex']=_0x45a7c3['get'](_0x57b46f[_0x4d22ae]['pairId']));}['_processTape'](_0x56750b){for(let _0x23519e=0x0;_0x23519e<_0x56750b['length'];_0x23519e++){if('elementStart'===_0x56750b[_0x23519e]['type'])_0x56750b[_0x23519e]['item']['startIndex']=_0x23519e;else{if('elementEnd'===_0x56750b[_0x23519e]['type']){_0x56750b[_0x23519e]['item']['endIndex']=_0x23519e;const _0x4f3266=_0x56750b[_0x23519e]['item']['startIndex'];_0x56750b[_0x4f3266]['pairId']=_0x56750b[_0x23519e]['id'],_0x56750b[_0x23519e]['pairId']=_0x56750b[_0x4f3266]['id'];}else _0x56750b[_0x23519e]['item']['startIndex']=_0x23519e,_0x56750b[_0x23519e]['item']['endIndex']=_0x23519e,_0x56750b[_0x23519e]['pairId']=null;}_0x56750b[_0x23519e]['markersStart']||(_0x56750b[_0x23519e]['markersStart']=[],_0x56750b[_0x23519e]['markersEnd']=[]);}}['_markInsertions'](_0x20d4f2,_0x14c9fe){const _0x948605=_0x20d4f2['filter'](_0x4fe720=>!_0x4fe720['isAdded']);for(let _0x263306=0x0;_0x263306<_0x14c9fe['length'];_0x263306++)_0x14c9fe[_0x263306]['isAdded']&&(_0x948605[_0x263306]['isAdded']=_0x14c9fe[_0x263306]['isAdded']);}['_makeModelFromViewString'](_0x9a8e96){const _0x95c833=JSON['parse'](_0x9a8e96),_0x527617=this['editor']['editing']['view']['document'],_0x431af0=new _0x5deb62(_0x527617,_0x95c833['map'](_0xf64b22=>this['_getViewObj'](_0xf64b22)));return this['editor']['data']['toModel'](_0x431af0);}['_getViewObj'](_0x43ac55){const _0x58be87=this['editor']['editing']['view']['document'];if('string'==typeof _0x43ac55)return new _0x88fe6e(_0x58be87,_0x43ac55);{const _0x2cbbf4=_0x43ac55['children']['map'](_0x489ecf=>this['_getViewObj'](_0x489ecf));return new(Z[_0x43ac55['type']]||_0x456d8f)(_0x58be87,_0x43ac55['name'],_0x43ac55['attributes'],_0x2cbbf4);}}['_getDiff'](_0x10f905,_0x2ad4e7=null){const _0x497d44=this['repository']['getRevision'](_0x10f905),_0x5c7852=_0x2ad4e7?this['repository']['getRevision'](_0x2ad4e7):null,_0x1f7288=this['_getRevisionsRange'](_0x497d44,_0x5c7852),_0x15608f=_0x1f7288[_0x1f7288['length']-0x1],_0x5df520=new Map(),_0x250b81={'model':{},'attributes':{},'changes':[]},_0x45aa68=new Set(),_0x3e48e4=new Map();for(let _0x592719=_0x1f7288['length']-0x1;_0x592719>=0x0;_0x592719--){const _0x4fc926=_0x1f7288[_0x592719];for(const _0x4f88d1 of Object['keys'](_0x4fc926['diffData']))if(_0x4fc926['diffData'][_0x4f88d1]['attachChange']){const _0x4ed01f=_0x4fc926['diffData'][_0x4f88d1]['attachChange'];_0x4ed01f['isAttached']?(_0x45aa68['add'](_0x4f88d1),_0x3e48e4['has'](_0x4f88d1)&&_0x3e48e4['get'](_0x4f88d1)['userId']==_0x4ed01f['userId']?_0x3e48e4['delete'](_0x4f88d1):_0x3e48e4['set'](_0x4f88d1,_0x4ed01f)):_0x3e48e4['has'](_0x4f88d1)?(_0x45aa68['delete'](_0x4f88d1),_0x3e48e4['delete'](_0x4f88d1)):(_0x45aa68['add'](_0x4f88d1),_0x3e48e4['set'](_0x4f88d1,_0x4ed01f));}else _0x45aa68['add'](_0x4f88d1);}for(const _0x4e99fb of _0x45aa68){const _0x552428=_0x3e48e4['has'](_0x4e99fb)&&!_0x3e48e4['get'](_0x4e99fb)['isAttached'];let _0xfe6810=_0x552428?_0x1f7288['length']-0x1:0x0;const _0xae2e00=_0x552428?-0x1:0x1;for(;_0x1f7288[_0xfe6810];){const _0x3eb9b=_0x1f7288[_0xfe6810];if(_0x3eb9b['diffData'][_0x4e99fb]){const _0xf13bac=_0x552428?_0x3eb9b['diffData'][_0x4e99fb]['attributesBefore']:_0x3eb9b['diffData'][_0x4e99fb]['attributesAfter'];_0x250b81['attributes'][_0x4e99fb]=_0xf13bac?_0x51a809(_0xf13bac):{};break;}_0xfe6810+=_0xae2e00;}}for(const _0x1e3e0d of _0x1f7288){_0x1e3e0d['model']={};for(const _0x1bbd4b of _0x1e3e0d['authors'])_0x5df520['set'](_0x1bbd4b['id'],_0x1bbd4b);for(const _0x48902a of _0x45aa68){const _0x3d8b5f=_0x1e3e0d['diffData'][_0x48902a]?_0x1e3e0d['diffData'][_0x48902a]['insertions']:'[]',_0x24005f=_0x1e3e0d['diffData'][_0x48902a]?_0x1e3e0d['diffData'][_0x48902a]['deletions']:'[]';_0x1e3e0d['model'][_0x48902a]={'insertions':this['_makeModelFromViewString'](_0x3d8b5f),'deletions':this['_makeModelFromViewString'](_0x24005f)};}}for(const _0x2e4277 of _0x45aa68){let _0x2bbc97=null,_0x462bb3=0x0;const _0x2259fb=new Map(Array['from'](_0x497d44['model'][_0x2e4277]['insertions']['markers'])['filter'](([_0x2e5f8a])=>!_0x2e5f8a['startsWith']('revision:')));let _0x13c439=0x0;for(const _0x449a2c of _0x1f7288){const _0x8a3d79=this['_makeTape'](_0x449a2c['model'][_0x2e4277]['insertions']);_0x449a2c==_0x497d44?(_0x2bbc97=_0x8a3d79,_0x462bb3=_0x2bbc97['length'],_0x2bbc97['forEach'](_0x217a92=>{_0x217a92['id']=_0x13c439++;}),this['_processTape'](_0x2bbc97)):this['_markInsertions'](_0x2bbc97,_0x8a3d79);const _0x47d93d=_0x2bbc97['filter'](_0x3b71ae=>!_0x3b71ae['isAdded'])['map'](_0x3e7123=>_0x3e7123['id']);let _0x140d78=0x0;const _0x5ba9bd=this['_makeTape'](_0x449a2c['model'][_0x2e4277]['deletions']);_0x5ba9bd['forEach'](_0x59563f=>{_0x59563f['isRemoved']?_0x59563f['id']=_0x462bb3++:_0x59563f['id']=_0x47d93d[_0x140d78++];}),this['_processTape'](_0x5ba9bd),this['_setDistance'](_0x2bbc97,'isAdded'),this['_setDistance'](_0x5ba9bd,'isRemoved'),_0x449a2c==_0x497d44&&this['_markMarkers'](_0x2bbc97,_0x2259fb),_0x2bbc97=this['_joinTapes'](_0x2bbc97,_0x5ba9bd),this['_refreshStartEndIndex'](_0x2bbc97),this['_setDistance'](_0x2bbc97,'isRemoved');}_0x2bbc97=_0x2bbc97['filter'](_0x731e2b=>!(_0x731e2b['isAdded']&&_0x731e2b['isRemoved']));const _0x88bc0f=new Map(_0x15608f['model'][_0x2e4277]['deletions']['markers']),_0x3c301a=new Set(_0x2259fb['keys']());for(const _0x3df466 of _0x88bc0f['keys']())_0x3c301a['delete'](_0x3df466);this['_markSuggestions'](_0x2bbc97,_0x3c301a),this['_fixObsoleteTags'](_0x2bbc97),_0x2bbc97=this['_removeMissingPairs'](_0x2bbc97),_0x2bbc97=this['_markMismatchedRemovedTags'](_0x2bbc97),_0x2bbc97=this['_removeUnsupportedChanges'](_0x2bbc97);const {root:_0x17c9e3,changes:_0xd40c0b}=this['_makeModelFromTape'](_0x2bbc97,_0x5df520,_0x2e4277);_0x250b81['model'][_0x2e4277]=_0x17c9e3;const _0x2f57ce=_0x3e48e4['get'](_0x2e4277);if(_0x2f57ce){const _0x5bae1c=_0x5df520['get'](_0x2f57ce['userId']),_0x42b65c=new r({'author':_0x5bae1c,'type':_0x2f57ce['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2e4277});_0xd40c0b['unshift'](_0x42b65c),_0x250b81['attributes'][_0x2e4277]['revisionHistoryAttachChange']=_0x42b65c['id'];}_0x250b81['changes']=_0x250b81['changes']['concat'](_0xd40c0b);}return _0x250b81;}['_markMarkers'](_0x5266eb,_0x3065e4){for(let _0x401433=0x0;_0x401433<_0x5266eb['length'];_0x401433++)for(const [_0x1737f9,_0x20ebdf]of _0x3065e4)_0x20ebdf['start']['isEqual'](_0x5266eb[_0x401433]['previousPosition'])&&_0x5266eb[_0x401433]['markersStart']['push'](_0x1737f9),_0x20ebdf['end']['isEqual'](_0x5266eb[_0x401433]['nextPosition'])&&_0x5266eb[_0x401433]['markersEnd']['push'](_0x1737f9);}['_joinTapes'](_0x3804b1,_0x58c20f){let _0x41d6fa=[],_0x39d8ae=0x0,_0x1e4f97=0x0;for(;_0x39d8ae<_0x3804b1['length']||_0x1e4f97<_0x58c20f['length'];){const _0x1d6756=_0x3804b1[_0x39d8ae]||{},_0x5e4759=_0x58c20f[_0x1e4f97]||{};if(_0x1d6756['id']==_0x5e4759['id'])_0x39d8ae++,_0x1e4f97++,_0x41d6fa['push'](_0x1d6756);else{if(_0x5e4759['isRemoved']&&_0x1d6756['isAdded']){const {commonTape:_0x4cf048,iEnd:_0x487a13,jEnd:_0x56d62a}=this['_threeWayMerge'](_0x3804b1,_0x39d8ae,_0x58c20f,_0x1e4f97);_0x41d6fa=_0x41d6fa['concat'](_0x4cf048),_0x39d8ae=_0x487a13,_0x1e4f97=_0x56d62a;}else _0x5e4759['isRemoved']?(_0x1e4f97++,_0x41d6fa['push'](_0x5e4759)):(_0x39d8ae++,_0x41d6fa['push'](_0x1d6756));}}return _0x41d6fa;}['_markSuggestions'](_0x4571d4,_0x2b99e1){const _0x42313e=[];for(let _0x1d0596=0x0;_0x1d0596<_0x4571d4['length'];_0x1d0596++){for(let _0x3d0cd7=0x0;_0x3d0cd7<_0x4571d4[_0x1d0596]['markersStart']['length'];_0x3d0cd7++){const _0x1e2232=_0x4571d4[_0x1d0596]['markersStart'][_0x3d0cd7];if(!_0x2b99e1['has'](_0x1e2232))continue;const {group:_0x2272e3,type:_0x11aa39,authorId:_0x53b399}=_0x125b47(_0x1e2232);'revision-suggestion'!=_0x2272e3||'insertion'!=_0x11aa39&&'deletion'!=_0x11aa39||(_0x42313e['unshift']({'type':_0x11aa39,'name':_0x1e2232,'userId':_0x53b399}),_0x4571d4[_0x1d0596]['markersStart']['splice'](_0x3d0cd7,0x1),_0x3d0cd7--);}_0x3b4da4(_0x4571d4[_0x1d0596]);for(let _0x19193b=0x0;_0x19193b<_0x4571d4[_0x1d0596]['markersEnd']['length'];_0x19193b++){const _0xf4f479=_0x4571d4[_0x1d0596]['markersEnd'][_0x19193b];if(!_0x2b99e1['has'](_0xf4f479))continue;const {group:_0x1cd6e7,type:_0x382e0c}=_0x125b47(_0xf4f479);if('revision-suggestion'!=_0x1cd6e7||'insertion'!=_0x382e0c&&'deletion'!=_0x382e0c)continue;_0x4571d4[_0x1d0596]['markersEnd']['splice'](_0x19193b,0x1),_0x19193b--;const _0x27d19d=_0x42313e['findIndex'](_0x28b66b=>_0x28b66b['name']==_0xf4f479);_0x27d19d>-0x1&&_0x42313e['splice'](_0x27d19d,0x1);}}function _0x125b47(_0x3a3b9b){const _0x54accd=_0x3a3b9b['split'](':');return{'group':_0x54accd[0x0],'type':_0x54accd[0x1],'subType':_0x54accd['length']>=0x5?_0x54accd[0x2]:null,'id':_0x54accd['length']<0x5?_0x54accd[0x2]:_0x54accd[0x3],'authorId':_0x54accd['length']<0x5?_0x54accd[0x3]:_0x54accd[0x4],'markerCount':0x6==_0x54accd['length']?_0x54accd[0x5]:null};}function _0x3b4da4(_0x4e6de7){for(let _0x481068=0x0;_0x481068<_0x42313e['length'];_0x481068++){if(_0x4e6de7['isAdded']&&'insertion'==_0x42313e[_0x481068]['type'])return _0x4e6de7['isAddSuggestion']=_0x42313e[_0x481068],void delete _0x4e6de7['isAdded'];if(!_0x4e6de7['isAdded']&&!_0x4e6de7['isRemoved']&&'deletion'==_0x42313e[_0x481068]['type'])return void(_0x4e6de7['isRemoveSuggestion']=_0x42313e[_0x481068]);}}}['_setDistance'](_0x433aff,_0x2aef9a){let _0x42227f=0x0,_0x58270c=!0x1;const _0x31d161=new Map();for(const _0x3ca82c of _0x433aff)_0x3ca82c[_0x2aef9a]?_0x58270c&&(_0x42227f++,_0x58270c=!0x1):(_0x42227f++,_0x58270c=!0x0),_0x31d161['set'](_0x3ca82c['id'],_0x42227f);for(let _0x3e8b51=0x0;_0x3e8b51<_0x433aff['length'];_0x3e8b51++){if('isRemoved'==_0x2aef9a&&_0x433aff[_0x3e8b51]['isAdded']||'isAdded'==_0x2aef9a&&_0x433aff[_0x3e8b51]['isRemoved'])continue;if('text'==_0x433aff[_0x3e8b51]['type']){_0x433aff[_0x3e8b51]['distance']=0x0;continue;}const _0x15e932=_0x31d161['get'](_0x433aff[_0x3e8b51]['pairId']),_0x55c61f=_0x31d161['get'](_0x433aff[_0x3e8b51]['id']);_0x433aff[_0x3e8b51]['distance']=_0x15e932-_0x55c61f;}}['_getRevisionsRange'](_0x126ed1,_0x21d6b3,_0x432515=!0x1){const _0x455dee=[];let _0x323afc=this['repository']['getIndex'](_0x126ed1),_0x202f5c=this['repository']['getIndex'](_0x21d6b3);for(-0x1==_0x202f5c&&(_0x202f5c=this['repository']['_revisions']['length'],_0x432515=!0x1);_0x323afc<_0x202f5c;)_0x455dee['push'](this['repository']['getRevision'](_0x323afc)),_0x323afc++;return _0x432515&&_0x455dee['push'](this['repository']['getRevision'](_0x323afc)),_0x455dee;}['_threeWayMerge'](_0x58d496,_0x3ef381,_0x4e2eff,_0xd725){const _0x59728e=this['editor']['model']['schema'];let _0x426c9a=_0x3ef381;for(;_0x58d496[_0x426c9a]&&_0x58d496[_0x426c9a]['isAdded'];)_0x426c9a++;let _0x3957e2=_0xd725;for(;_0x4e2eff[_0x3957e2]&&_0x4e2eff[_0x3957e2]['isRemoved'];)_0x3957e2++;_0x2b75dd(_0x58d496,_0x3ef381,_0x426c9a),_0x2b75dd(_0x4e2eff,_0xd725,_0x3957e2);const _0x1a83f0=_0x4e2eff['slice'](_0xd725,_0x3957e2)['concat'](_0x58d496['slice'](_0x3ef381,_0x426c9a));return _0x1a83f0['sort']((_0x38f4c8,_0x1d3746)=>_0x38f4c8['side']!=_0x1d3746['side']?_0x38f4c8['side']-_0x1d3746['side']:_0x38f4c8['level']!=_0x1d3746['level']?_0x38f4c8['level']-_0x1d3746['level']:_0x38f4c8['distance']!=_0x1d3746['distance']?_0x1d3746['distance']-_0x38f4c8['distance']:!!_0x38f4c8['isAdded']!=!!_0x1d3746['isAdded']?-0x1==_0x38f4c8['side']||0x0==_0x38f4c8['side']?_0x38f4c8['isAdded']?-0x1:0x1:_0x38f4c8['isAdded']?0x1:-0x1:_0x38f4c8['index']-_0x1d3746['index']),{'commonTape':_0x1a83f0,'iEnd':_0x426c9a,'jEnd':_0x3957e2};function _0x2b75dd(_0xa815d0,_0x885556,_0x3664b1){let _0x5b8f14=-0x1,_0x6a92be=Number['POSITIVE_INFINITY'],_0x4afa39=!0x0;for(let _0x261d07=_0x885556;_0x261d07<_0x3664b1;_0x261d07++)if(_0x59728e['isInline'](_0xa815d0[_0x261d07]['item'])||(_0x4afa39=!0x1),_0xa815d0[_0x261d07]['item']['startIndex']<_0x885556&&(_0x5b8f14=_0x261d07),_0xa815d0[_0x261d07]['item']['endIndex']>=_0x3664b1){_0x6a92be=_0x261d07;break;}_0x4afa39&&(_0x5b8f14=_0x3664b1-0x1);for(let _0x206768=_0x885556;_0x206768<_0x3664b1;_0x206768++)_0xa815d0[_0x206768]['side']=_0x206768<=_0x5b8f14?-0x1:_0x206768<_0x6a92be?0x0:0x1,_0xa815d0[_0x206768]['index']=_0x206768;let _0x380276=0x0;for(let _0x13dac3=_0x885556;_0x13dac3<=_0x5b8f14;_0x13dac3++)0x0==_0xa815d0[_0x13dac3]['distance']?_0xa815d0[_0x13dac3]['level']=_0x380276:(_0x380276++,_0xa815d0[_0x13dac3]['level']=_0x380276,_0x380276++);for(let _0x1d2ba1=_0x885556;_0x1d2ba1<_0x3664b1;_0x1d2ba1++)0x0==_0xa815d0[_0x1d2ba1]['side']&&(_0xa815d0[_0x1d2ba1]['level']=_0x380276);_0x380276=0x0;for(let _0x366e9d=_0x3664b1-0x1;_0x366e9d>=_0x6a92be;_0x366e9d--)0x0==_0xa815d0[_0x366e9d]['distance']?_0xa815d0[_0x366e9d]['level']=_0x380276:(_0x380276--,_0xa815d0[_0x366e9d]['level']=_0x380276,_0x380276--);}}['_fixObsoleteTags'](_0x1b2273){const _0x447849=new Map(),_0x4ea1df=this['editor']['model']['schema'];for(let _0x5e8600=0x1;_0x5e8600<_0x1b2273['length'];_0x5e8600++){let _0x47b524,_0x7adc58,_0x41333a;const _0x1b8362=_0x1b2273[_0x5e8600],_0x2f3d79=_0x1b2273[_0x5e8600-0x1];if('text'==_0x1b8362['type'])continue;if(_0x1b8362['type']!=_0x2f3d79['type'])continue;if(!_0x4ea1df['isBlock'](_0x2f3d79['item'])||_0x4ea1df['isLimit'](_0x2f3d79['item']))continue;if(!_0x4ea1df['isBlock'](_0x1b8362['item'])||_0x4ea1df['isLimit'](_0x1b8362['item']))continue;if((_0x1b2273[_0x5e8600]['isAdded']||_0x1b2273[_0x5e8600]['isAddSuggestion'])&&_0x1b2273[_0x5e8600-0x1]['isRemoved'])_0x47b524=_0x1b2273[_0x5e8600],_0x7adc58=_0x1b2273[_0x5e8600-0x1],_0x41333a=_0x5e8600-0x1;else{if(!_0x1b2273[_0x5e8600]['isRemoved']||!_0x1b2273[_0x5e8600-0x1]['isAdded']&&!_0x1b2273[_0x5e8600-0x1]['isAddSuggestion'])continue;_0x47b524=_0x1b2273[_0x5e8600-0x1],_0x7adc58=_0x1b2273[_0x5e8600],_0x41333a=_0x5e8600;}const _0x5e09a7=_0x47b524['level']==_0x7adc58['level'],_0x11f61f=Math['abs'](_0x47b524['level'])<Math['abs'](_0x7adc58['level'])&&0x0==_0x7adc58['distance'];(_0x5e09a7||_0x11f61f)&&(_0x447849['set'](_0x7adc58['id'],_0x47b524['id']),_0x1b2273['splice'](_0x41333a,0x1),_0x5e8600--,_0x47b524['isAdded']=!0x1);}for(let _0x142bde=0x0;_0x142bde<_0x1b2273['length'];_0x142bde++)_0x447849['has'](_0x1b2273[_0x142bde]['pairId'])&&(_0x1b2273[_0x142bde]['pairId']=_0x447849['get'](_0x1b2273[_0x142bde]['pairId']));}['_removeMissingPairs'](_0x515454){const _0x40384e=new Set(_0x515454['map'](_0x3da8f1=>_0x3da8f1['id']));for(let _0x5a9596=0x0;_0x5a9596<_0x515454['length'];_0x5a9596++)_0x40384e['has'](_0x515454[_0x5a9596]['pairId'])||0x0==_0x515454[_0x5a9596]['distance']||(_0x515454[_0x5a9596]['isIncorrect']=!0x0);return _0x515454['filter'](_0x312044=>!_0x312044['isIncorrect']);}['_markMismatchedRemovedTags'](_0x316314){const _0x3454b0=new Set();for(let _0x417944=0x0;_0x417944<_0x316314['length'];_0x417944++){if(_0x3454b0['has'](_0x316314[_0x417944]['id'])&&_0x316314[_0x417944]['isRemoved']&&(_0x316314[_0x417944]['isIncorrect']=!0x0),_0x316314[_0x417944]['isIncorrect'])continue;if(0x0==_0x316314[_0x417944]['distance'])continue;if('elementStart'!=_0x316314[_0x417944]['type'])continue;if(null==_0x316314[_0x417944]['pairId'])continue;let _0x432d04=_0x417944+0x1,_0x5a5270=0x0;for(;_0x316314[_0x432d04]['id']!=_0x316314[_0x417944]['pairId'];)'elementStart'==_0x316314[_0x432d04]['type']?_0x5a5270++:'elementEnd'==_0x316314[_0x432d04]['type']&&_0x5a5270--,_0x432d04++;if(0x0!=_0x5a5270){if(_0x316314[_0x417944]['isRemoved'])_0x316314[_0x417944]['isIncorrect']=!0x0;else{for(;_0x432d04!=_0x417944;)_0x316314[_0x432d04]['isRemoved']&&0x0!=_0x316314[_0x432d04]['distance']&&(_0x316314[_0x432d04]['isIncorrect']=!0x0,_0x3454b0['add'](_0x316314[_0x432d04]['pairId'])),_0x432d04--;}}}return _0x316314['filter'](_0x1cba42=>!_0x1cba42['isIncorrect']);}['_removeUnsupportedChanges'](_0x1aa7a2){const _0xefa48a=this['editor']['model']['schema'];for(let _0x359e1b=0x0;_0x359e1b<_0x1aa7a2['length'];_0x359e1b++){if(!(_0x1aa7a2[_0x359e1b]['isAdded']||_0x1aa7a2[_0x359e1b]['isAddSuggestion']||_0x1aa7a2[_0x359e1b]['isRemoved']||_0x1aa7a2[_0x359e1b]['isRemoveSuggestion']))continue;if(0x0==_0x1aa7a2[_0x359e1b]['distance'])continue;const _0x38f2ad=_0x1aa7a2[_0x359e1b]['item'];_0xefa48a['isBlock'](_0x38f2ad)||_0xefa48a['isLimit'](_0x38f2ad)||(_0x1aa7a2[_0x359e1b]['isAdded']&&delete _0x1aa7a2[_0x359e1b]['isAdded'],_0x1aa7a2[_0x359e1b]['isAddSuggestion']&&delete _0x1aa7a2[_0x359e1b]['isAddSuggestion'],_0x1aa7a2[_0x359e1b]['isRemoveSuggestion']&&delete _0x1aa7a2[_0x359e1b]['isRemoveSuggestion'],_0x1aa7a2[_0x359e1b]['isRemoved']&&(_0x1aa7a2[_0x359e1b]['isIncorrect']=!0x0));}return _0x1aa7a2['filter'](_0x236e69=>!_0x236e69['isIncorrect']);}['_makeModelFromTape'](_0x2c0bb0,_0x34c5db,_0x21c3db){const _0x28d87=new wt(),_0x1c97bc=[],_0x47fefd=new Map(),_0x353fc2=this['editor']['model'],_0x1355d1=_0x353fc2['schema'],_0x471fea=[_0x28d87],_0x4acc60={},_0x45e115={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x11d577=null;const _0x4392cc=[0x0];for(let _0x2e8537=0x0;_0x2e8537<_0x2c0bb0['length'];_0x2e8537++)if('elementStart'===_0x2c0bb0[_0x2e8537]['type']){_0x2c0bb0[_0x2e8537]['previousPosition']=_0x353fc2['createPositionFromPath'](_0x28d87,_0x4392cc);const _0x80ef8d=new ft(_0x2c0bb0[_0x2e8537]['item']['name'],_0x2c0bb0[_0x2e8537]['item']['getAttributes']());_0x471fea[0x0]['_appendChild'](_0x80ef8d),_0x4392cc['push'](0x0),_0x471fea['unshift'](_0x80ef8d),_0x2c0bb0[_0x2e8537]['nextPosition']=_0x353fc2['createPositionFromPath'](_0x28d87,_0x4392cc);}else'elementEnd'===_0x2c0bb0[_0x2e8537]['type']?(_0x471fea['shift'](),_0x2c0bb0[_0x2e8537]['previousPosition']=_0x353fc2['createPositionFromPath'](_0x28d87,_0x4392cc),_0x4392cc['pop'](),_0x4392cc[_0x4392cc['length']-0x1]++,_0x2c0bb0[_0x2e8537]['nextPosition']=_0x353fc2['createPositionFromPath'](_0x28d87,_0x4392cc)):(_0x2c0bb0[_0x2e8537]['previousPosition']=_0x353fc2['createPositionFromPath'](_0x28d87,_0x4392cc),_0x11d577?_0x11d577['_data']+=_0x2c0bb0[_0x2e8537]['item']['data']:_0x11d577=new _t(_0x2c0bb0[_0x2e8537]['item']['data'],_0x2c0bb0[_0x2e8537]['item']['getAttributes']()),_0x2c0bb0[_0x2e8537+0x1]&&'text'===_0x2c0bb0[_0x2e8537+0x1]['type']&&_0xf7b69d(_0x11d577,_0x2c0bb0[_0x2e8537+0x1]['item'])||(_0x471fea[0x0]['_appendChild'](_0x11d577),_0x11d577=null),_0x4392cc[_0x4392cc['length']-0x1]+=_0x2c0bb0[_0x2e8537]['item']['offsetSize'],_0x2c0bb0[_0x2e8537]['nextPosition']=_0x353fc2['createPositionFromPath'](_0x28d87,_0x4392cc));for(let _0x575410=0x0;_0x575410<_0x2c0bb0['length'];_0x575410++){const _0x225e3d=_0x2c0bb0[_0x575410]['previousPosition'],_0x5abd4e=_0x2c0bb0[_0x575410]['nextPosition'];for(const _0x23a157 of _0x2c0bb0[_0x575410]['markersStart'])_0x47fefd['set'](_0x23a157,{'start':_0x225e3d,'end':null});_0x154bc9('isRemoveSuggestion',_0x575410,_0x225e3d,_0x5abd4e),_0x154bc9('isAddSuggestion',_0x575410,_0x225e3d,_0x5abd4e),_0x154bc9('isRemoved',_0x575410,_0x225e3d,_0x5abd4e),_0x154bc9('isAdded',_0x575410,_0x225e3d,_0x5abd4e);for(const _0x1ff735 of _0x2c0bb0[_0x575410]['markersEnd']){_0x47fefd['get'](_0x1ff735)['end']=_0x5abd4e;}}for(const [_0x2a8099,_0x28b50a]of _0x47fefd){const _0x32c6e4=this['editor']['model']['createRange'](_0x28b50a['start'],_0x28b50a['end']);_0x28d87['markers']['set'](_0x2a8099,_0x32c6e4);}return _0x1c97bc['sort']((_0x20de95,_0x5dd289)=>{const _0x10aec3=_0x28d87['markers']['get']('revision:'+_0x20de95['id']),_0x4b84de=_0x28d87['markers']['get']('revision:'+_0x5dd289['id']);return _0x10aec3['start']['isBefore'](_0x4b84de['start'])?-0x1:_0x10aec3['start']['isAfter'](_0x4b84de['start'])?0x1:_0x10aec3['end']['isBefore'](_0x4b84de['end'])?-0x1:_0x10aec3['end']['isAfter'](_0x4b84de['end'])?0x1:'add'===_0x20de95['type']?-0x1:0x1;}),{'root':_0x28d87,'changes':_0x1c97bc};function _0x154bc9(_0x19be82,_0x1a69ca,_0x576233,_0xa819f4){const _0x8399ff=!!_0x2c0bb0[_0x1a69ca][_0x19be82],_0x205ddb=_0x8399ff?_0x2c0bb0[_0x1a69ca][_0x19be82]['userId']:null,_0x57c099=_0x1a69ca===_0x2c0bb0['length']-0x1,_0x346c24=_0x45e115[_0x19be82][0x0],_0x295dde=_0x1355d1['isObject'](_0x2c0bb0[_0x1a69ca]['item']);!_0x4acc60[_0x19be82]&&_0x8399ff?_0x4acc60[_0x19be82]={'start':_0x576233,'tapeItem':_0x2c0bb0[_0x1a69ca],'userId':_0x205ddb,'type':_0x19be82}:_0x4acc60[_0x19be82]&&!_0x8399ff?(_0x4acc60[_0x19be82]['end']=_0x576233,_0x1c83a2(_0x4acc60[_0x19be82]),_0x4acc60[_0x19be82]=null):_0x4acc60[_0x19be82]&&_0x8399ff&&_0x4acc60[_0x19be82]['userId']!==_0x205ddb&&(_0x4acc60[_0x19be82]['end']=_0x576233,_0x346c24&&_0x346c24['userId']===_0x4acc60[_0x19be82]['userId']||_0x1c83a2(_0x4acc60[_0x19be82]),_0x4acc60[_0x19be82]={'start':_0x576233,'tapeItem':_0x2c0bb0[_0x1a69ca],'userId':_0x205ddb,'type':_0x19be82}),_0x4acc60[_0x19be82]&&_0x295dde&&('elementStart'!==_0x2c0bb0[_0x1a69ca]['type']||_0x346c24&&_0x346c24['userId']===_0x205ddb||_0x45e115[_0x19be82]['unshift']({'userId':_0x205ddb,'object':_0x2c0bb0[_0x1a69ca]['item'],'change':_0x4acc60[_0x19be82]}),'elementEnd'===_0x2c0bb0[_0x1a69ca]['type']&&_0x346c24&&_0x346c24['object']===_0x2c0bb0[_0x1a69ca]['item']&&(_0x45e115[_0x19be82]['shift'](),_0x4acc60[_0x19be82]=_0x346c24['change'])),_0x4acc60[_0x19be82]&&_0x57c099&&(_0x4acc60[_0x19be82]['end']=_0xa819f4,_0x1c83a2(_0x4acc60[_0x19be82]),_0x4acc60[_0x19be82]=null);}function _0x1c83a2({start:_0x3a4146,end:_0x23a009,tapeItem:_0x5ed825,userId:_0x68ebc3,type:_0x4732a8}){const _0x5e0a9d=_0x5ed825['item'],_0x17f2f0=_0x353fc2['schema']['isBlock'](_0x5e0a9d)&&!_0x353fc2['schema']['isLimit'](_0x5e0a9d),_0x5138d3=_0x3a4146['nodeAfter']==_0x23a009['parent']&&_0x23a009['isAtStart'];if(_0x17f2f0&&_0x5138d3)return;const _0x402437=_0x353fc2['createRange'](_0x3a4146,_0x23a009),_0x1283d0=_0x34c5db['get'](_0x68ebc3),_0xac4de4=new r({'author':_0x1283d0,'type':'isAdded'==_0x4732a8||'isAddSuggestion'==_0x4732a8?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x4732a8||'isRemoveSuggestion'==_0x4732a8},'createdAt':new Date(),'rootName':_0x21c3db});_0x1c97bc['push'](_0xac4de4),_0x28d87['markers']['set']('revision:'+_0xac4de4['id'],_0x402437);}function _0xf7b69d(_0x4ca4c2,_0x39cb09){const _0x9a7960=_0x4ca4c2['getAttributes'](),_0x2bc0a8=_0x39cb09['getAttributes']();for(const _0x47c421 of _0x9a7960){if(_0x47c421[0x1]!==_0x39cb09['getAttribute'](_0x47c421[0x0]))return!0x1;_0x2bc0a8['next']();}return _0x2bc0a8['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x52ba7b=>{const _0x24da5d=_0x52ba7b['markerName']['split'](':')[0x1],_0x8f889=this['_getChangeFromId'](_0x24da5d);if(!_0x8f889)return null;const _0x15e982='add'==_0x8f889['type']?'insertion':'deletion',_0xb21967=['ck-suggestion-marker','ck-suggestion-marker-'+_0x15e982];return _0x8f889['data']['isSuggestion']&&_0xb21967['push']('ck-suggestion-marker-'+_0x15e982+'-new'),this['activeChange']==_0x8f889&&_0xb21967['push']('ck-suggestion-marker--active'),{'classes':_0xb21967,'attributes':{'data-change-id':_0x24da5d}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x4695c1=>{_0x4695c1['on']('element:pre',(_0x2799d7,_0x23bcaf,_0x13b627)=>{const _0x4a4f32=_0x23bcaf['viewItem']['getChild'](0x0);if(!_0x4a4f32||!_0x4a4f32['is']('element','code'))return;if(!_0x13b627['consumable']['consume'](_0x4a4f32,{'attributes':['vid_start','vid_end']}))return;const _0xda16f7=_0x23bcaf['modelRange']['start']['nodeAfter'];_0x13b627['writer']['setAttribute']('vid_start',_0x4a4f32['getAttribute']('vid_start'),_0xda16f7),_0x13b627['writer']['setAttribute']('vid_end',_0x4a4f32['getAttribute']('vid_end'),_0xda16f7);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x5123f2=>{_0x5123f2['on']('element',(_0xbe524,_0x528f38,_0x1d0f45)=>{if(!_0x1d0f45['consumable']['consume'](_0x528f38['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x528f38['modelRange']['isCollapsed'])return;const _0x3c70a0=_0x528f38['modelRange']['start']['nodeAfter'];_0x3c70a0['hasAttribute']('vid_start')||_0x3c70a0['hasAttribute']('vid')||(_0x1d0f45['writer']['setAttribute']('vid_start',_0x528f38['viewItem']['getAttribute']('vid_start'),_0x3c70a0),_0x1d0f45['writer']['setAttribute']('vid_end',_0x528f38['viewItem']['getAttribute']('vid_end'),_0x3c70a0));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x2ade29=>_0x2ade29['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x466c84,[,_0x4c0674])=>{['vid_start','vid_end','vid']['includes'](_0x4c0674)&&(_0x466c84['return']=!0x0,_0x466c84['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x9da0d6=>{_0x9da0d6['on']('attribute:vid',(_0x31f3d3,_0x6b32ce,_0x2a81d3)=>{if('\x20'!=_0x6b32ce['item']['data']||_0x6b32ce['item']['parent']['maxOffset']>0x1)return;if(!_0x2a81d3['consumable']['consume'](_0x6b32ce['item'],_0x31f3d3['name']))return;const _0x3f0de1=_0x2a81d3['writer'],_0xcfde4f=_0x2a81d3['mapper']['toViewRange'](_0x6b32ce['range']);_0x3f0de1['wrap'](_0xcfde4f,_0x3f0de1['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x39228d){const _0x58343f=_0x39228d['plugins']['get']('RevisionViewer');return(_0x201ce9,_0x55ff15,_0x3c1cdc)=>{const _0x43fb75=_0x55ff15['markerName']['split'](':')[0x1],_0x3e13f3=_0x58343f['_getChangeFromId'](_0x43fb75);if(!_0x3e13f3)return null;const _0x21b001='add'==_0x3e13f3['type']?'split':'merge';if(!_0x3c1cdc['consumable']['test'](_0x55ff15['markerRange'],_0x201ce9['name']))return;const _0x385350=_0x55ff15['markerRange']['getWalker'](),_0x468105=_0x55ff15['markerRange']['start'],_0x542769=_0x39228d['model']['schema'];let _0x1ad834=null,_0x107f23=null,_0x21e778=!0x1,_0x5cdd7c=!0x1;for(const _0x196dbe of _0x385350){const _0x31cb6c=_0x196dbe['item'];_0x21e778=_0x21e778||_0x542769['isContent'](_0x31cb6c);const _0x5cd168=_0x3c1cdc['mapper']['toViewElement'](_0x31cb6c);if(_0x5cd168&&_0x5cd168['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x196dbe['type']&&(_0x542769['isBlock'](_0x31cb6c)&&!_0x542769['isLimit'](_0x31cb6c)&&(_0x31cb6c['nextSibling']||_0x468105['isAtEnd']?_0x1ad834&&_0x1ad834['parent']==_0x31cb6c||(_0x1ad834=_0x31cb6c,_0x40223c(_0x196dbe['previousPosition']),_0x5cdd7c=!0x0):_0x107f23=_0x107f23||_0x196dbe['previousPosition']));}function _0x40223c(_0x153919){const _0x12c3ad=_0x3c1cdc['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x21b001}),_0x1cb384=_0x3c1cdc['mapper']['toViewPosition'](_0x153919);_0x3e13f3['data']['isSuggestion']&&_0x3c1cdc['writer']['addClass']('ck-suggestion-marker-'+_0x21b001+'-new',_0x12c3ad),_0x58343f['activeChange']==_0x3e13f3&&_0x3c1cdc['writer']['addClass']('ck-suggestion-marker--active',_0x12c3ad),_0x3c1cdc['writer']['insert'](_0x1cb384,_0x12c3ad),_0x3c1cdc['mapper']['bindElementToMarker'](_0x12c3ad,_0x55ff15['markerName']);}_0x21e778||_0x5cdd7c||!_0x107f23||_0x40223c(_0x107f23);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x8fb3b6,_0xd4bd4a,_0x254369)=>{const _0x32a784=_0x254369['mapper']['markerNameToElements'](_0xd4bd4a['markerName']);if(_0x32a784){for(const _0x347ee4 of _0x32a784)(_0x347ee4['hasClass']('ck-suggestion-marker-split')||_0x347ee4['hasClass']('ck-suggestion-marker-merge'))&&(_0x254369['mapper']['unbindElementFromMarkerName'](_0x347ee4,_0xd4bd4a['markerName']),_0x254369['writer']['remove'](_0x347ee4));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x35054c,_0x398727,_0x4e5b5e)=>{const _0x442a98=_0x398727['markerName']['split'](':')[0x1],_0x144925=this['_getChangeFromId'](_0x442a98);if(!_0x144925)return null;const _0x9c8395='add'==_0x144925['type']?'split':'merge';if(_0x4e5b5e['consumable']['test'](_0x398727['markerRange'],_0x35054c['name']))for(const _0x394b91 of _0x398727['markerRange']['getItems']()){if(!_0x394b91['is']('element','softBreak'))continue;const _0x422e74=_0x4e5b5e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x9c8395}),_0x6574b5=_0x4e5b5e['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x394b91));_0x144925['data']['isSuggestion']&&_0x4e5b5e['writer']['addClass']('ck-suggestion-marker-'+_0x9c8395+'-new',_0x422e74),this['activeChange']==_0x144925&&_0x4e5b5e['writer']['addClass']('ck-suggestion-marker--active',_0x422e74),_0x4e5b5e['writer']['insert'](_0x6574b5,_0x422e74),_0x4e5b5e['mapper']['bindElementToMarker'](_0x422e74,_0x398727['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0xaae4d3=>{for(const _0x57eb44 of this['editor']['model']['document']['getRootNames']()){const _0x4c44c7=this['editor']['model']['document']['getRoot'](_0x57eb44),_0x2f94bf=this['editor']['editing']['view']['document']['getRoot'](_0x57eb44);if(_0x2f94bf){const _0x45c16d=_0x4c44c7['getAttribute']('revisionHistoryAttachChange');if(_0xaae4d3['removeAttribute']('data-change-id',_0x2f94bf),_0xaae4d3['removeClass']('ck-revision-history-root-add',_0x2f94bf),_0xaae4d3['removeClass']('ck-revision-history-root-remove',_0x2f94bf),_0xaae4d3['removeClass']('ck-revision-history-root--active',_0x2f94bf),_0x45c16d){const _0x2e3e72=this['_getChangeFromId'](_0x45c16d);if(!_0x2e3e72)return null;_0xaae4d3['setAttribute']('data-change-id',_0x45c16d,_0x2f94bf),_0xaae4d3['addClass']('ck-revision-history-root-'+_0x2e3e72['type'],_0x2f94bf),this['activeChange']==_0x2e3e72&&_0xaae4d3['addClass']('ck-revision-history-root--active',_0x2f94bf);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x749a63=>'revision-comment:'+_0x749a63,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x434dad=>'revision-suggestion:'+_0x434dad,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x848ffd=>({'name':'suggestion:'+_0x848ffd,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x206ab4=>{const _0x4a3f9f=_0x206ab4['markerName']['split'](':')[0x1];return'insertion'!=_0x4a3f9f&&'deletion'!=_0x4a3f9f?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x4a3f9f]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x54c1d9,_0x264649,_0x3a6e5e)=>{const _0x2ddfe7=_0x3a6e5e['mapper']['markerNameToElements'](_0x264649['markerName']);if(_0x2ddfe7){for(const _0x17fcbd of _0x2ddfe7)_0x17fcbd['is']('uiElement')&&(_0x3a6e5e['mapper']['unbindElementFromMarkerName'](_0x17fcbd,_0x264649['markerName']),_0x3a6e5e['writer']['remove'](_0x17fcbd));}},{'priority':'high'});}['_getChangeFromId'](_0x3ad0b9){return this['_changeIdToChange']['get'](_0x3ad0b9);}['_getViewForChange'](_0x5c08c5){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x5c08c5),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x1bfa5c,_0xfe5eac,_0x245112,_0x131c7b)=>{_0x131c7b&&this['_balloon']['remove'](_0x131c7b),_0x245112&&(this['_balloon']['add']({'view':_0x245112,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x53f3c4=this['editor']['editing'],_0x47f225=this['_getChangeFromId'](_0x245112['changeId']);let _0x1c61e9;if(_0x47f225['data']['isOnRoot']){const _0x55ac9a=_0x53f3c4['view']['getDomRoot'](_0x47f225['rootName']);_0x1c61e9=Array['from'](_0x55ac9a['getClientRects']());}else{const _0x545f1a=this['editor']['model']['markers']['get']('revision:'+_0x245112['changeId']);_0x1c61e9=Array['from'](_0x53f3c4['mapper']['markerNameToElements'](_0x545f1a['name']))['map'](_0x42abc5=>_0x53f3c4['view']['domConverter']['mapViewToDom'](_0x42abc5))['map'](_0x2a8f36=>Array['from'](_0x2a8f36['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x1c61e9[0x0];return _0x1c61e9['find'](_0x519623=>_0x519623['top']-0x3<=this['_activeViewTarget']['y']&&_0x519623['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x519623['left']-0x3<=this['_activeViewTarget']['x']&&_0x519623['right']+0x3>=this['_activeViewTarget']['x'])||_0x1c61e9[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x1c1f75,_0x2084a4,_0x59efff,_0xd1c95)=>{this['activeView']=_0x59efff?this['_getViewForChange'](_0x59efff):null,this['editor']['model']['change'](()=>{const _0x21db8c=this['editor']['editing'];_0xd1c95&&(_0xd1c95['data']['isOnRoot']?_0x21db8c['view']['change'](_0xf19d38=>{_0xf19d38['removeClass']('ck-revision-history-root--active',_0x21db8c['view']['document']['getRoot'](_0xd1c95['rootName']));}):_0x21db8c['reconvertMarker']('revision:'+_0xd1c95['id'])),_0x59efff&&(_0x59efff['data']['isOnRoot']?_0x21db8c['view']['change'](_0x4077cc=>{_0x4077cc['addClass']('ck-revision-history-root--active',_0x21db8c['view']['document']['getRoot'](_0x59efff['rootName']));}):_0x21db8c['reconvertMarker']('revision:'+_0x59efff['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x592515,_0x2981f1)=>{if(this['activeChange'])return;const _0x4e088b=this['_findChangeIdFromDomTarget'](_0x2981f1['target']),_0x4b2c45=this['_changeIdToChange']['get'](_0x4e088b);_0x4b2c45?(this['_activeViewTarget']={'x':_0x2981f1['domEvent']['x'],'y':_0x2981f1['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x4b2c45)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x19f832,_0x9ecc77)=>{const _0x1dd925=this['_findChangeIdFromDomTarget'](_0x9ecc77['target']),_0x17bd2f=this['_changeIdToChange']['get'](_0x1dd925);_0x17bd2f?(this['_activeViewTarget']={'x':_0x9ecc77['domEvent']['x'],'y':_0x9ecc77['domEvent']['y']},_0x17bd2f===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x17bd2f):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x1ce2ec){do{const _0x56f168=_0x1ce2ec['getAttribute']('data-change-id');if(_0x56f168)return _0x56f168;_0x1ce2ec=_0x1ce2ec['parent'];}while(_0x1ce2ec);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x3cd5cb=>{for(const _0x144290 of this['editor']['model']['markers'])_0x3cd5cb['removeMarker'](_0x144290);});}}function tt(_0x5702cb,_0x3d3446){return(_0x51189b,_0x4c4c3b,_0x56495a)=>{if(!_0x56495a['consumable']['test'](_0x4c4c3b['markerRange'],_0x51189b['name']))return;const _0x2ed703=_0x4c4c3b['markerRange']['getWalker'](),_0x5c13aa=_0x4c4c3b['markerRange']['start'],_0x3ecb12=_0x5702cb['model']['schema'];let _0x49b2f2=null,_0x4b5a41=null,_0xc340ce=!0x1,_0x7d9845=!0x1;for(const _0x8d0595 of _0x2ed703){const _0x6c798e=_0x8d0595['item'];_0xc340ce=_0xc340ce||_0x3ecb12['isContent'](_0x6c798e);const _0x4e480=_0x56495a['mapper']['toViewElement'](_0x6c798e);if(_0x4e480&&_0x4e480['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x8d0595['type']&&(_0x3ecb12['isBlock'](_0x6c798e)&&!_0x3ecb12['isLimit'](_0x6c798e)&&(_0x6c798e['nextSibling']||_0x5c13aa['isAtEnd']?_0x49b2f2&&_0x49b2f2['parent']==_0x6c798e||(_0x49b2f2=_0x6c798e,_0x152793(_0x8d0595['previousPosition']),_0x7d9845=!0x0):_0x4b5a41=_0x4b5a41||_0x8d0595['previousPosition']));}function _0x152793(_0x32f508){const _0x17d90a=_0x56495a['mapper']['toViewPosition'](_0x32f508),_0x5dfcd1=_0x56495a['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x3d3446});_0x56495a['writer']['insert'](_0x17d90a,_0x5dfcd1),_0x56495a['mapper']['bindElementToMarker'](_0x5dfcd1,_0x4c4c3b['markerName']);}_0xc340ce||_0x7d9845||!_0x4b5a41||_0x152793(_0x4b5a41);};}class yt extends _0x1b5e9a{constructor(_0x2fdd19){super(_0x2fdd19);const _0x4b5e50=_0x2fdd19['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x4b5e50,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4b5e50,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x4dfa83=this['editor'],_0x3cda01=_0x4dfa83['plugins']['get'](d),_0x10630e=_0x3cda01['isReady']?_0x3cda01['diff']['newRevisionId']:null;_0x4dfa83['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x10630e);}['refresh'](){const {isReady:_0x121113,isEnabled:_0xc3f4db,repository:_0x1bf1b7,diff:_0x3eae83}=this['editor']['plugins']['get'](d),_0x18ba0d=_0x3eae83&&_0x1bf1b7['getLaterVisibleRevision'](_0x3eae83['newRevisionId']);this['isEnabled']=_0x121113&&_0xc3f4db&&Boolean(_0x18ba0d);}}class bt extends _0x1b5e9a{['_step'];constructor(_0x2ae913,{direction:_0xeac351}){super(_0x2ae913);const _0x3d9e9d=_0x2ae913['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0xeac351?0x1:-0x1,this['listenTo'](_0x3d9e9d,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3d9e9d,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x3d9e9d,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x1f36fa=this['editor'],_0x73a55b=_0x1f36fa['plugins']['get'](d),{isNavigationMode:_0x45a5ed,currentChangeNumber:_0x589684}=_0x73a55b;let _0x3aa92f;if(_0x73a55b['activeChange']=_0x45a5ed?_0x73a55b['diff']['changes']['get'](_0x589684+this['_step']):_0x73a55b['diff']['changes']['first'],_0x73a55b['activeChange']['data']['isOnRoot'])_0x3aa92f=_0x1f36fa['editing']['view']['getDomRoot'](_0x73a55b['activeChange']['rootName']);else{const _0x51f66c=_0x1f36fa['model']['markers']['get']('revision:'+_0x73a55b['activeChange']['id']);_0x3aa92f=_0xf618ad(_0x1f36fa['editing'],_0x51f66c);}_0x2b4ea3({'target':_0x3aa92f,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x3ca3e0,currentChangeNumber:_0x111fb3,numberOfChanges:_0x2d21bc,isReady:_0x58b186,isEnabled:_0x2b8af8}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x2b8af8&&_0x58b186&&_0x2d21bc)&&(!_0x3ca3e0||(0x1===this['_step']?_0x111fb3<_0x2d21bc-0x1:_0x111fb3>0x0));}}class di extends _0x1f9e12{constructor(_0x50e160){super(_0x50e160);const _0x4690c8=this['bindTemplate'],_0x5edf8e=new _0x4f565d(_0x50e160),_0x30a0fe=new _0x4f565d(_0x50e160);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',(_0x41a436,_0x5d20cd)=>_0x41a436&&_0x5d20cd>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3157ed,_0x29c099,_0xac4a83,_0x37acae)=>{if(!_0x3157ed)return R(_0x50e160,'Loading...');if(!_0xac4a83)return R(_0x50e160,'No\x20changes');const _0x4b0a13=R(_0x50e160,'NUMBER_OF_CHANGES',_0xac4a83);return _0x37acae?R(_0x50e160,'X_OF_Y_CHANGES',[_0x29c099+0x1,_0xac4a83]):_0x4b0a13;}),_0x5edf8e['set']({'label':R(_0x50e160,'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'}),_0x30a0fe['set']({'label':R(_0x50e160,'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'}),_0x5edf8e['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x30a0fe['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x5edf8e['on']('execute',()=>this['fire']('execute','backward')),_0x30a0fe['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',_0x4690c8['if']('_isStatusLabelVisible','ck-hidden',_0x302edd=>!_0x302edd)]},'children':[{'text':_0x4690c8['to']('isNavigationMode',_0x3d081d=>_0x3d081d?R(_0x50e160,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x50e160,'Total')+':\x20')}]},{'text':_0x4690c8['to']('_statusText')}]},new _0x319f4f(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x5edf8e,_0x30a0fe]}]});}}const ce='ck-editor__editable__loading-overlay';class ae extends _0x402cd2{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x41383f=this['editor']['editing']['view'];_0x41383f['change'](_0x12e37c=>{for(const _0x53d671 of _0x41383f['document']['roots'])_0x12e37c['addClass'](ce,_0x53d671);});}['hide'](){const _0x533c55=this['editor']['editing']['view'];_0x533c55['change'](_0x2bd7cb=>{for(const _0x9150 of _0x533c55['document']['roots'])_0x2bd7cb['removeClass'](ce,_0x9150);});}}class m extends _0x402cd2{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ae];}['init'](){const _0x2abe12=this['editor'],_0x24c387=_0x2abe12['plugins']['get'](d),_0x424e59=_0x2abe12['plugins']['get'](ae);_0x2abe12['ui']['componentFactory']['add']('exitToEditing',_0x1ab7d6=>{const _0x266d35=new _0x4f565d(_0x1ab7d6);return _0x266d35['set']({'label':R(_0x1ab7d6,'Back\x20to\x20editing'),'icon':_0x9f8c6d['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x266d35,'execute',()=>{_0x2abe12['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x266d35;}),_0x2abe12['ui']['componentFactory']['add']('restoreRevision',_0x3ec76a=>{const _0x57aa6c=new _0x4f565d(_0x3ec76a);return _0x57aa6c['set']({'label':R(_0x3ec76a,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x57aa6c['bind']('isEnabled')['to'](_0x2abe12['commands']['get']('restoreRevision')),this['listenTo'](_0x57aa6c,'execute',()=>_0x2abe12['execute']('restoreRevision')),_0x57aa6c;}),_0x2abe12['ui']['componentFactory']['add']('changesNavigation',_0x8dd116=>{const _0x4365ab=new di(_0x8dd116),_0x2d4bca=_0x2abe12['commands']['get']('showPreviousChange'),_0x5a6acc=_0x2abe12['commands']['get']('showNextChange');return _0x4365ab['bind']('isBackwardNavigationEnabled')['to'](_0x2d4bca,'isEnabled'),_0x4365ab['bind']('isForwardNavigationEnabled')['to'](_0x5a6acc,'isEnabled'),_0x4365ab['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x24c387),this['listenTo'](_0x4365ab,'execute',(_0x148ca8,_0x4a0246)=>{_0x2abe12['execute']('forward'===_0x4a0246?'showNextChange':'showPreviousChange');}),_0x4365ab;}),_0x424e59['show'](),_0x24c387['on']('change:isReady',(_0xfee43e,_0x39627a,_0x26a43f)=>{_0x26a43f?_0x424e59['hide']():_0x424e59['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x391fb8,_0xa3ee43){super(_0x391fb8,_0xa3ee43);const _0x3d0147=this['bindTemplate'];this['set']({'label':R(_0x391fb8,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x391fb8,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x3d0147['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x39a311=this['fieldView']['element'];this['_tooltipString']=_0x39a311['scrollWidth']>_0x39a311['clientWidth']&&_0x39a311['value']||'';}}class ti extends _0x1f9e12{constructor(_0x5751f4,_0x28dc62,_0x47b0ec){super(_0x5751f4);const _0x3e8ac7=new _0x2a2fa9();_0x3e8ac7['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 _0x17fdd6=['ck','ck-revision-history-sidebar__revision-author'];_0x47b0ec&&_0x17fdd6['push']('ck-revision-history-sidebar__revision-author_creator');const _0x3ef8e6=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x5751f4,_0x47b0ec?'Revision\x20creator':'Revision\x20author')},'children':[_0x3e8ac7,_0x28dc62['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x17fdd6},'children':_0x3ef8e6});}}function ni(_0x1f7def,_0x4fe17d){const _0x253372=_0x1f7def['bindTemplate'],_0x2a01a4=_0x1f7def['locale'],_0x2a1954=_0x2c9d20(_0x2a01a4);_0x2a1954['panelPosition']='sw';const _0x45df75=function(_0x1b2f65,_0x5afb64){const _0x3496c9=function(_0x539f6e,_0x593cf8){const _0x452f47=_0x539f6e['locale'],_0x4af5e6={'Compare\x20against\x20selected':R(_0x452f47,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x452f47,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x452f47,'Restore\x20this\x20revision')};return _0x593cf8['map'](_0x474c94=>{const _0x21ad1f=_0x4af5e6[_0x474c94['name']];return _0x21ad1f&&_0x21ad1f!==_0x474c94['name']&&(_0x474c94['name']=_0x21ad1f),_0x474c94;});}(_0x1b2f65,_0x5afb64),_0x1f64b0=new _0x1a01dd();for(const _0x33ffd1 of _0x3496c9){const _0x334235={'type':'button','model':new to({'label':_0x33ffd1['name'],'class':_0x33ffd1['class'],'withText':!0x0,'role':'menuitem','_action':_0x33ffd1['action']})};_0x334235['model']['bind']('isEnabled')['to'](_0x1b2f65,'isActionsDropdownOpen',_0x2ee028=>'function'!=typeof _0x33ffd1['isEnabled']||(!_0x2ee028||_0x33ffd1['isEnabled'](_0x1b2f65))),_0x1f64b0['add'](_0x334235);}return _0x1f64b0;}(_0x1f7def,_0x4fe17d);return _0x1f7def['bind']('isActionsDropdownOpen')['to'](_0x2a1954,'isOpen'),_0x2a1954['buttonView']['set']({'label':R(_0x2a01a4,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x9f8c6d['threeVerticalDots']}),_0x2a1954['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x253372['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x253372['to'](_0x1a7dbe=>_0x1a7dbe['stopPropagation']())}}),_0x2a1954['on']('execute',_0x34d1b1=>{_0x1f7def['isReady']&&'function'==typeof _0x34d1b1['source']['_action']&&_0x34d1b1['source']['_action'](_0x1f7def);}),_0x3f963e(_0x2a1954,_0x45df75,{'role':'menu'}),_0x2a1954['listenTo'](_0x1f7def,'change:isActionsDropdownOpen',(_0xe9108e,_0x53ca0c,_0xaa817f)=>{if(_0xaa817f)for(const _0x3e7075 of _0x2a1954['listView']['items']){const _0xd7cd98=_0x3e7075['children']['first'],_0x46b7bf=_0x4fe17d['find'](_0x531204=>_0x531204['action']===_0xd7cd98['_action'])['isVisible'];_0x3e7075['isVisible']=void 0x0===_0x46b7bf||_0x46b7bf(_0x1f7def);}}),_0x2a1954;}class ai extends/* #__PURE__ -- @preserve */
26
- _0x23ae36(_0x1f9e12){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x25ab28,_0xe48cdf,_0x20354f,_0x1f2e09){super(_0x25ab28);const _0x366606=this['bindTemplate'],_0x31c927=function(_0x3c3d19,_0x57fc9b){const _0x3617db=Array['from'](_0x57fc9b['authors'])['filter'](_0x3b99ae=>_0x3b99ae!=_0x57fc9b['creator']);return _0x57fc9b['creator']&&_0x3617db['unshift'](_0x57fc9b['creator']),_0x3617db['map'](_0x4d8785=>new ti(_0x3c3d19,_0x4d8785,_0x4d8785==_0x57fc9b['creator']));}(_0x25ab28,_0xe48cdf);this['id']=_0xe48cdf['id'],this['_revision']=_0xe48cdf,this['_requireRevisionName']=_0x1f2e09,this['bind']('name','createdAt')['to'](_0xe48cdf),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x3369a3=>{return _0x2bca18=_0x25ab28['uiLanguage'],(_0x1ebe00=_0x3369a3)['toLocaleDateString'](_0x2bca18,{'month':'long','day':'numeric'})+',\x20'+_0x1ebe00['toLocaleTimeString'](_0x2bca18,{'hour':'numeric','minute':'numeric'});var _0x2bca18,_0x1ebe00;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x25ab28,_0x2186b1),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x11c0e8=>_0x11c0e8||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0xaae2b7,_0x90eb34)=>_0xaae2b7&&_0x90eb34),this['revisionActionsView']=_0x20354f&&_0x20354f['length']?ni(this,_0x20354f):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x366606['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x366606['if']('isEnabled','ck-disabled',_0x54fd64=>!_0x54fd64),_0x366606['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x366606['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x366606['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':_0x366606['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':_0x31c927}]},this['revisionActionsView']],'on':{'click':_0x366606['to'](_0x349f9a=>{_0x349f9a['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x422c6a=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x422c6a,'change',()=>{this['_requireRevisionName']&&!_0x422c6a['value']||this['fire']('setName',{'id':this['id'],'name':_0x422c6a['value']}),_0x422c6a['value']||(_0x422c6a['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function mi(_0x2a5891,_0x59780d){const _0x5e0d39=_0x39bdfe['fromJSDate'](_0x2a5891)['setLocale'](_0x59780d),_0x5ab66f=_0x39bdfe['local'](),_0x38ff9b=_0x5ab66f['minus']({'days':0x1})['startOf']('day');let _0x1be6cb,_0x33cd7c;return _0x5e0d39['hasSame'](_0x5ab66f,'day')?(_0x1be6cb=_0x5e0d39['startOf']('day')['toJSDate'](),_0x33cd7c=_0x5e0d39['toRelativeCalendar']()):_0x5e0d39['hasSame'](_0x38ff9b,'day')?(_0x1be6cb=_0x38ff9b['toJSDate'](),_0x33cd7c=_0x5e0d39['toRelativeCalendar']()):_0x5e0d39['hasSame'](_0x5ab66f,'week')?(_0x1be6cb=_0x5e0d39['startOf']('week')['toJSDate'](),_0x33cd7c=_0x5e0d39['weekdayLong']||''):_0x5e0d39['hasSame'](_0x5ab66f,'year')?(_0x1be6cb=_0x5e0d39['startOf']('month')['toJSDate'](),_0x33cd7c=_0x5e0d39['monthLong']||''):(_0x1be6cb=_0x5e0d39['startOf']('year')['toJSDate'](),_0x33cd7c=String(_0x5e0d39['year'])),{'startDate':_0x1be6cb,'localizedPeriodName':_0x33cd7c};}class vi extends _0x1f9e12{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x143d68,_0x557172,_0x37466f,_0x2dcc42){super(_0x143d68);const _0xd1c7c1=mi(_0x557172,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x557172,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x37466f,this['_requireRevisionName']=_0x2dcc42,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':_0xd1c7c1}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x3a8117){const _0x4ca534=new ai(this['locale'],_0x3a8117,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x4ca534);}['removeRevision'](_0x124850){const _0x43853a=this['revisionViews']['find'](_0x5f566a=>_0x5f566a['id']===_0x124850['id']);this['revisionViews']['remove'](_0x43853a);}}class as extends _0x1f9e12{constructor(_0x22f162){super(_0x22f162);const _0x4e82d6=new _0x2a2fa9();_0x4e82d6['content']=_0x9f8c6d['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x4e82d6,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x22f162,'Revision\x20history')]}]});}}class li extends _0x1f9e12{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3d92f6,_0x2cf0f1,_0x54c7c9,_0x58121b){super(_0x3d92f6);const _0x1c61ab=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x2cf0f1,this['_revisionActions']=_0x54c7c9,this['_requireRevisionName']=_0x58121b,this['on']('select',(_0x3d4d85,_0x4a48c9)=>{this['fire']('revisionSelected',_0x4a48c9);}),this['on']('setName',(_0x1021de,_0x5dccf6)=>{this['fire']('revisionSetName',_0x5dccf6);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x3d92f6),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x1c61ab['if']('isEnabled','ck-disabled',_0x3ff662=>!_0x3ff662)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x2f26d0 of this['_revisions'])this['_addRevision'](_0x2f26d0);this['_revisions']['on']('add',(_0xdc2767,_0x21d95e)=>{this['_addRevision'](_0x21d95e);}),this['_revisions']['on']('remove',(_0x48cd53,_0x484d8a)=>{this['_removeRevision'](_0x484d8a);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x98808b=>_0x98808b['revisionViews']['map'](_0xa04c2=>_0xa04c2))['flat']();}['selectRevision'](_0x50dddf){for(const _0x473213 of this['revisionViews'])_0x50dddf&&_0x50dddf['id']===_0x473213['id']?_0x473213['select']():_0x473213['deselect']();}['highlightRevisions'](_0x421d5b){for(const _0x499e8a of this['revisionViews'])_0x421d5b['some'](({id:_0x5b769a})=>_0x5b769a===_0x499e8a['id'])?_0x499e8a['highlight']():_0x499e8a['unhighlight']();}['_addRevision'](_0x324ab9){const _0x29038f=mi(_0x324ab9['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x428caa=this['timePeriodViews']['get'](0x0);_0x428caa&&_0x428caa['startDate']['getTime']()===_0x29038f['getTime']()||(_0x428caa=new vi(this['locale'],_0x29038f,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x428caa)),_0x428caa['addRevision'](_0x324ab9);}['_removeRevision'](_0x2f321a){const _0x139327=mi(_0x2f321a['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x139327)['removeRevision'](_0x2f321a);}['_getTimePeriodViewByStartDate'](_0xecba2a){return this['timePeriodViews']['find'](_0x4d8950=>_0x4d8950['startDate']['getTime']()===_0xecba2a['getTime']());}}class g extends _0x402cd2{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x88e50a,uid as _0x4c02ac,Collection as _0x2d1bb4,logWarning as _0x4b074b,FocusTracker as _0x3704e2,KeystrokeHandler as _0x179f65,scrollViewportToShowTarget as _0x489eea,ResizeObserver as pt,ElementReplacer as ct,CKEditorError as _0x2d3871}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x3e8ae0,set as _0x21dd8f,unset as _0x1a05c4,isEqual as _0x43de91}from'lodash-es';import{Plugin as _0x434fd7,PendingActions as _0x1f874c,icons as _0x3495e1,Command as _0x18555e,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x1124cd,getMarkerDomElement as _0x3d0410,ConfirmMixin as _0x2e7f54,sanitizeEditorConfig as _0x53a3aa}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x5b1c52,ViewText as _0x441a0d,ViewElement as _0x4e6782,Element as ft,Range as vt,Position as gt,DocumentFragment as wt,ViewContainerElement as _0x35cc28,ViewAttributeElement as _0x154fa8,ViewEmptyElement as _0x511d98,ViewRawElement as _0x192dd9,ViewUIElement as _0x181875,Text as _t}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x297fcf,injectCssTransitionDisabler as ts,submitHandler as _0x4790e8,LabeledFieldView as at,createLabeledInputText as _0x2be08e,createDropdown as _0x327471,ListView as _0x56690b,ListItemView as _0x902890,ButtonView as _0x2456b5,MenuBarMenuView as _0x510d82,MenuBarMenuListView as _0x15361d,MenuBarMenuListItemView as _0x4e9c93,MenuBarMenuListItemButtonView as _0x4c5f6c,ContextualBalloon as _0x323519,ToolbarSeparatorView as _0x43523c,IconView as _0x21bca6,addListToDropdown as _0x9954b6,ViewModel as to,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x3c423b}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
+ _0x88e50a(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x4e6311){super(),this['id']=_0x4e6311['id']||_0x4c02ac(),this['creator']=_0x4e6311['creator']||null,this['authors']=_0x4e6311['authors']||[],this['diffData']=_0x4e6311['diffData']||null,this['toVersion']=_0x4e6311['toVersion']||0x0,this['fromVersion']=_0x4e6311['fromVersion']||0x0,this['set']('name',_0x4e6311['name']||''),this['set']('createdAt',_0x4e6311['createdAt']||new Date()),this['set']('attributes',_0x4e6311['attributes']||{});}['setName'](_0x35481f){this['_update']({'name':_0x35481f});}['setAttribute'](_0x42aaa4,_0x5460ba){const _0x4e95bd=_0x3e8ae0(this['attributes']);_0x21dd8f(_0x4e95bd,_0x42aaa4,_0x5460ba),this['_update']({'attributes':_0x4e95bd});}['removeAttribute'](_0x12e96c){const _0x5aedd5=_0x3e8ae0(this['attributes']);_0x1a05c4(_0x5aedd5,_0x12e96c),this['_update']({'attributes':_0x5aedd5});}['_update'](_0x4151f9,_0x3e1d3e=!0x1){let _0x46cb=!0x1;const _0x4b6241={'id':this['id']},_0x4592ca=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5b90dc of _0x4592ca){const _0x5e330f=_0x4151f9[_0x5b90dc];void 0x0!==_0x5e330f&&_0x5e330f!==this[_0x5b90dc]&&(this[_0x5b90dc]=_0x5e330f,_0x4b6241[_0x5b90dc]=_0x5e330f,_0x46cb=!0x0);}_0x46cb&&(_0x4b6241['authors']&&(_0x4b6241['authorsIds']=_0x4b6241['authors']['map'](_0x150b35=>_0x150b35['id']),delete _0x4b6241['authors']),this['fire']('_update',_0x4b6241,_0x3e1d3e));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0xa6058e=>_0xa6058e['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x434fd7{['_revisions'];static get['requires'](){return[_0x1124cd];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x4d8e56){super(_0x4d8e56),this['_revisions']=new _0x2d1bb4();}['afterInit'](){!async function(_0x4e9ffe){const _0x4848d9=_0x3b23c0([0x39,0x49,0x54,0x63,0x76,0x66,0x56,0x4b,0x68,0x52,0x55,0x71,0x58,0x38,0x57,0x50,0x69,0x30,0x42,0x4e,0x67,0x48,0x79,0x51,0x46,0x62,0x59,0x4f,0x37,0x6b,0x6f,0x74,0x32,0x5a,0x31,0x44,0x35,0x6c,0x6e,0x73,0x6a,0x61,0x7a,0x77,0x33,0x34,0x78,0x64,0x4d,0x75,0x65,0x36,0x6d,0x43,0x41,0x45,0x70,0x47,0x72,0x4a,0x4c,0x53]),_0x460ce=0xeb829,_0x2fd0ce=0x6e3c1333,_0x2014b7=0x6e3b48e3^_0x2fd0ce,_0x2f31e4=window[_0x3b23c0([0x44,0x61,0x74,0x65])][_0x3b23c0([0x6e,0x6f,0x77])](),_0x3f6d55=_0x4e9ffe[_0x3b23c0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x20236b=new window[(_0x3b23c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x597cd9=>{_0x3f6d55[_0x3b23c0([0x6f,0x6e,0x63,0x65])](_0x3b23c0([0x72,0x65,0x61,0x64,0x79]),_0x597cd9);}),_0x33f7df={[_0x3b23c0([0x6b,0x74,0x79])]:_0x3b23c0([0x45,0x43]),[_0x3b23c0([0x75,0x73,0x65])]:_0x3b23c0([0x73,0x69,0x67]),[_0x3b23c0([0x63,0x72,0x76])]:_0x3b23c0([0x50,0x2d,0x32,0x35,0x36]),[_0x3b23c0([0x78])]:_0x3b23c0([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]),[_0x3b23c0([0x79])]:_0x3b23c0([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]),[_0x3b23c0([0x61,0x6c,0x67])]:_0x3b23c0([0x45,0x53,0x32,0x35,0x36])},_0x47b3b4=_0x3f6d55[_0x3b23c0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3b23c0([0x67,0x65,0x74])](_0x3b23c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x6ac4d4(){let _0xd9b950,_0x1f8fe4=null,_0x318de4=null;try{if(_0x47b3b4==_0x3b23c0([0x47,0x50,0x4c]))return _0x3b23c0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xd9b950=_0x55496b(),!_0xd9b950)return _0x3b23c0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xd9b950[_0x3b23c0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x318de4=_0x4d9974(_0xd9b950[_0x3b23c0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xd9b950[_0x3b23c0([0x6a,0x74,0x69])])),await _0x44e4d0()?_0x1f190d()?_0x2f8ded()?_0x3b23c0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5e3547()?(_0xd9b950[_0x3b23c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b23c0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1f8fe4=_0x5c20d8(_0x3b23c0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xd9b950[_0x3b23c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b23c0([0x74,0x72,0x69,0x61,0x6c])&&(_0x1f8fe4=_0x5c20d8(_0x3b23c0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0xd9b950[_0x3b23c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b23c0([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x1f8fe4=_0x5c20d8(_0x3b23c0([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0xcbd909()):_0x3b23c0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3b23c0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3b23c0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3da5bd){return _0x3b23c0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2f8ded(){const _0x310b65=[_0x3b23c0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3b23c0([0x74,0x72,0x69,0x61,0x6c])][_0x3b23c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd9b950[_0x3b23c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2f31e4/0x3e8:0xe10*_0x2014b7;return _0xd9b950[_0x3b23c0([0x65,0x78,0x70])]<_0x310b65;}function _0x1f190d(){const _0x4d8398=_0xd9b950[_0x3b23c0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4d8398)return!0x1;if(_0x4d8398[_0x3b23c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b23c0([0x2a])))return!0x0;if(_0x4d8398[_0x3b23c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b23c0([0x52,0x48])))return!0x0;if(_0x4d8398[_0x3b23c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b23c0([0x52,0x52,0x48]))){if(_0x1416c8())return!0x0;if(_0x263088()||_0x2fc2b8())return!0x0;}return!0x1;}function _0x5e3547(){const _0x58d6fd=_0xd9b950[_0x3b23c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x58d6fd||0x0==_0x58d6fd[_0x3b23c0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5bc7c0}=new URL(window[_0x3b23c0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x58d6fd[_0x3b23c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5bc7c0))return!0x0;const _0x435c3b=_0x5bc7c0[_0x3b23c0([0x73,0x70,0x6c,0x69,0x74])](_0x3b23c0([0x2e]));return _0x58d6fd[_0x3b23c0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3cc28b=>_0x3cc28b[_0x3b23c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b23c0([0x2a])))[_0x3b23c0([0x6d,0x61,0x70])](_0x4a7c9f=>_0x4a7c9f[_0x3b23c0([0x73,0x70,0x6c,0x69,0x74])](_0x3b23c0([0x2e])))[_0x3b23c0([0x73,0x6f,0x6d,0x65])](_0x8fa551=>_0x435c3b[_0x3b23c0([0x65,0x76,0x65,0x72,0x79])]((_0xb11cb1,_0x3b2dbc)=>_0x8fa551[_0x3b2dbc]===_0xb11cb1||_0x8fa551[_0x3b2dbc]===_0x3b23c0([0x2a])));}function _0xcbd909(){return _0x1f8fe4&&_0x318de4?new window[(_0x3b23c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x102508,_0x18e8e8)=>{_0x1f8fe4[_0x3b23c0([0x74,0x68,0x65,0x6e])](_0x102508,_0x18e8e8),_0x318de4[_0x3b23c0([0x74,0x68,0x65,0x6e])](_0x4ae983=>{_0x4ae983!=_0x3b23c0([0x56,0x61,0x6c,0x69,0x64])&&_0x102508(_0x4ae983);},_0x18e8e8);}):_0x1f8fe4||_0x318de4||_0x3b23c0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4d9974(_0x1a2491,_0x31a1d8){return new window[(_0x3b23c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5313a4=>{if(_0x228b2f())return _0x5313a4(_0x3b23c0([0x56,0x61,0x6c,0x69,0x64]));_0x3737bb(),_0x3f6d55[_0x3b23c0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3b23c0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5cc262=!0x1;const _0x138274=_0x4c02ac();function _0x552929(_0x493995){return!!_0x493995&&(typeof _0x493995===_0x3b23c0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x493995===_0x3b23c0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x493995[_0x3b23c0([0x74,0x68,0x65,0x6e])]===_0x3b23c0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x493995[_0x3b23c0([0x63,0x61,0x74,0x63,0x68])]===_0x3b23c0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x12c5fb(_0x486849){_0x49d7d2(_0x486849)[_0x3b23c0([0x74,0x68,0x65,0x6e])](_0x4a83ea=>{if(!_0x4a83ea||_0x4a83ea[_0x3b23c0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3b23c0([0x6f,0x6b]))return _0x3b23c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x39b1bc(_0x2a92c2(_0x138274+_0x31a1d8))!=_0x4a83ea[_0x3b23c0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3b23c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3b23c0([0x56,0x61,0x6c,0x69,0x64]);})[_0x3b23c0([0x74,0x68,0x65,0x6e])](_0x1b8a20=>(_0x2ac150(),_0x1b8a20),()=>{const _0x2c65dc=_0x36b23c();return null==_0x2c65dc?(_0x2ac150(),_0x3b23c0([0x56,0x61,0x6c,0x69,0x64])):_0x3b23c0(_0x2f31e4-_0x2c65dc>(0x4a309733^_0x2fd0ce)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3b23c0([0x74,0x68,0x65,0x6e])](_0x5313a4)[_0x3b23c0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5313a4(_0x3b23c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xe5aeb6=0x6e0afdb3^_0x2fd0ce;function _0x2ac150(){const _0x3ac1bc=_0x3b23c0([0x6c,0x6c,0x63,0x74,0x2d])+_0x39b1bc(_0x2a92c2(_0x1a2491)),_0x49c4c8=_0x3670b9(_0x39b1bc(window[_0x3b23c0([0x4d,0x61,0x74,0x68])][_0x3b23c0([0x63,0x65,0x69,0x6c])](_0x2f31e4/_0xe5aeb6)));window[_0x3b23c0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b23c0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ac1bc,_0x49c4c8);}function _0x36b23c(){const _0x500704=_0x3b23c0([0x6c,0x6c,0x63,0x74,0x2d])+_0x39b1bc(_0x2a92c2(_0x1a2491)),_0x430684=window[_0x3b23c0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b23c0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x500704);return _0x430684?window[_0x3b23c0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3670b9(_0x430684),0x10)*_0xe5aeb6:null;}function _0x49d7d2(_0x1e1bce){return new window[(_0x3b23c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d0f69,_0x431fdb)=>{_0x1e1bce[_0x3b23c0([0x74,0x68,0x65,0x6e])](_0x4d0f69,_0x431fdb),window[_0x3b23c0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x431fdb,0x6e3dc7f3^_0x2fd0ce);});}}_0x3f6d55[_0x3b23c0([0x6f,0x6e])](_0x3b23c0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5f1098,_0x6a6ab8)=>{if(_0x6a6ab8[0x0]!=_0x1a2491)return _0x5313a4(_0x3b23c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x6a6ab8[0x1]={..._0x6a6ab8[0x1],[_0x3b23c0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x138274};},{[_0x3b23c0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b23c0([0x68,0x69,0x67,0x68])}),_0x3f6d55[_0x3b23c0([0x6f,0x6e])](_0x3b23c0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x7bf036=>{_0x552929(_0x7bf036[_0x3b23c0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5cc262=!0x0,_0x12c5fb(_0x7bf036[_0x3b23c0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3b23c0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b23c0([0x6c,0x6f,0x77])}),_0x20236b[_0x3b23c0([0x74,0x68,0x65,0x6e])](()=>{_0x5cc262||_0x5313a4(_0x3b23c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x228b2f(){return _0x3f6d55[_0x3b23c0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b23c0([0x76,0x69,0x65,0x77])][_0x3b23c0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3b23c0([0x61,0x75,0x74,0x6f]);}function _0x3737bb(){_0x3f6d55[_0x3b23c0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b23c0([0x76,0x69,0x65,0x77])][_0x3b23c0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3b23c0([0x61,0x75,0x74,0x6f]);}}function _0x5c20d8(_0x467bd8){const _0x5f252c=[new window[(_0x3b23c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20df12=>setTimeout(_0x20df12,0x6e352dff^_0x2fd0ce)),_0x20236b[_0x3b23c0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3b23c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x461ad7=>{const _0x25e995=0x6e3c1334^_0x2fd0ce,_0x427cc8=_0x4e9ffe[_0x3b23c0([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x594ba3(){_0x427cc8[_0x3b23c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x25e995&&_0x461ad7();}_0x594ba3(),_0x427cc8[_0x3b23c0([0x6f,0x6e])](_0x3b23c0([0x61,0x64,0x64]),_0x594ba3);})),new window[(_0x3b23c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b8fbf=>{function _0x3df9c4(){for(const _0x218263 in window)if(window[_0x3b23c0([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x3b23c0([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x218263))&&window[_0x218263]==_0x460ce)return _0x3b8fbf();_0x3f6d55[_0x3b23c0([0x73,0x74,0x61,0x74,0x65])]!=_0x3b23c0([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x3b23c0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3df9c4,0x6e3c00bb^_0x2fd0ce);}_0xd80222(_0x3b23c0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x3df9c4();})];return window[_0x3b23c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3b23c0([0x72,0x61,0x63,0x65])](_0x5f252c)[_0x3b23c0([0x74,0x68,0x65,0x6e])](()=>_0x467bd8);}async function _0xf5d8bc(){if(await _0x20236b,_0xd80222(_0x3b23c0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x397dbd=_0x4e9ffe[_0x3b23c0([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x18a191=_0x4e9ffe[_0x3b23c0([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])](_0x397dbd[_0x3b23c0([0x69,0x64])]),_0x233e9e=_0x4df06e(_0x3b23c0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x233e9e[_0x3b23c0([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x397dbd['id'],_0x18a191?_0x18a191['id']:null,!0x0),_0x233e9e[_0x3b23c0([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3b23c0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x233e9e[_0x3b23c0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x233e9e[_0x3b23c0([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x584110,void(_0x233e9e[_0x3b23c0([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x584110);}if(_0xd80222(_0x3b23c0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x5ce983=_0x4df06e(_0x3b23c0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x5ce983[_0x3b23c0([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3b23c0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5ce983[_0x3b23c0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5ce983[_0x3b23c0([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x584110,_0x5ce983[_0x3b23c0([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x584110;}_0x3f6d55[_0x3b23c0([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b23c0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x584110,_0x3f6d55[_0x3b23c0([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b23c0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x584110,_0x3f6d55[_0x3b23c0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3b23c0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1416c8(){return _0xd80222(_0x3b23c0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4df06e(_0x3b23c0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3b23c0([0x73,0x74,0x61,0x74,0x65])]==_0x3b23c0([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x263088(){return _0xd80222(_0x3b23c0([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 _0x2fc2b8(){return _0xd80222(_0x3b23c0([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x10e647(_0x388f24){const _0xa99dcf=_0x5fc642();_0x3f6d55[_0xa99dcf]=_0x3b23c0([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])+_0x388f24,_0x388f24[_0x3b23c0([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x3b23c0([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x5fc642()]=_0x460ce),_0x388f24!=_0x3b23c0([0x56,0x61,0x6c,0x69,0x64])&&_0xf5d8bc();}function _0x5fc642(){const _0x3368ff=window[_0x3b23c0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3b23c0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3b23c0([0x6e,0x6f,0x77])]())[_0x3b23c0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3b23c0([0x2e]),'');let _0x2c640b=_0x3b23c0([0x49]);for(let _0x2f9d3c=0x0;_0x2f9d3c<_0x3368ff[_0x3b23c0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f9d3c+=0x2){let _0x3aa684=window[_0x3b23c0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3368ff[_0x3b23c0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2f9d3c,_0x2f9d3c+0x2));_0x3aa684>=_0x4848d9[_0x3b23c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3aa684-=_0x4848d9[_0x3b23c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2c640b+=_0x4848d9[_0x3aa684];}return _0x2c640b;}function _0x55496b(){const _0x29d14a=_0x47b3b4[_0x3b23c0([0x73,0x70,0x6c,0x69,0x74])](_0x3b23c0([0x2e]));if(0x3!=_0x29d14a[_0x3b23c0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x287e20(_0x29d14a[0x1]);function _0x287e20(_0xbfa891){const _0x45a395=_0x563964(_0xbfa891);return _0x45a395&&_0x5bf41e()?_0x45a395:null;function _0x5bf41e(){const _0x4a5758=_0x45a395[_0x3b23c0([0x6a,0x74,0x69])],_0x2ad41b=window[_0x3b23c0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a5758[_0x3b23c0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4a5758[_0x3b23c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x18fbd3={..._0x45a395,[_0x3b23c0([0x6a,0x74,0x69])]:_0x4a5758[_0x3b23c0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4a5758[_0x3b23c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x18fbd3[_0x3b23c0([0x76,0x63])],_0x2a92c2(_0x18fbd3)==_0x2ad41b;}}}async function _0x44e4d0(){let _0x59b600=!0x0;try{const _0x4dd0d8=_0x47b3b4[_0x3b23c0([0x73,0x70,0x6c,0x69,0x74])](_0x3b23c0([0x2e])),[_0x4d5144,_0x146281,_0x2a0c5b]=_0x4dd0d8;return _0x1174ea(_0x4d5144),await _0x3f2188(_0x4d5144,_0x146281,_0x2a0c5b),_0x59b600;}catch(_0x4d986c){return!0x1;}function _0x1174ea(_0x190bdd){const _0x32f105=_0x563964(_0x190bdd);_0x32f105&&_0x32f105[_0x3b23c0([0x61,0x6c,0x67])]==_0x3b23c0([0x45,0x53,0x32,0x35,0x36])||(_0x59b600=!0x1);}async function _0x3f2188(_0x439021,_0x4cf3ea,_0x6468b6){const _0x37ec4a=window[_0x3b23c0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3b23c0([0x66,0x72,0x6f,0x6d])](_0x5e75b8(_0x6468b6),_0x2a754c=>_0x2a754c[_0x3b23c0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x19c7e8=new window[(_0x3b23c0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3b23c0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x439021+_0x3b23c0([0x2e])+_0x4cf3ea),_0x56ede3=window[_0x3b23c0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3b23c0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x56ede3)return;const _0x192e06=await _0x56ede3[_0x3b23c0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3b23c0([0x6a,0x77,0x6b]),_0x33f7df,{[_0x3b23c0([0x6e,0x61,0x6d,0x65])]:_0x3b23c0([0x45,0x43,0x44,0x53,0x41]),[_0x3b23c0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3b23c0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3b23c0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x56ede3[_0x3b23c0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3b23c0([0x6e,0x61,0x6d,0x65])]:_0x3b23c0([0x45,0x43,0x44,0x53,0x41]),[_0x3b23c0([0x68,0x61,0x73,0x68])]:{[_0x3b23c0([0x6e,0x61,0x6d,0x65])]:_0x3b23c0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x192e06,_0x37ec4a,_0x19c7e8)||(_0x59b600=!0x1);}}function _0x563964(_0x30dc9c){return _0x30dc9c[_0x3b23c0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3b23c0([0x65,0x79]))?JSON[_0x3b23c0([0x70,0x61,0x72,0x73,0x65])](_0x5e75b8(_0x30dc9c)):null;}function _0x5e75b8(_0x13361a){return window[_0x3b23c0([0x61,0x74,0x6f,0x62])](_0x13361a[_0x3b23c0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3b23c0([0x2b]))[_0x3b23c0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3b23c0([0x2f])));}function _0x2a92c2(_0x232b46){let _0x43aedf=0x1505;function _0x264bf1(_0x91f9a){for(let _0x5c0f44=0x0;_0x5c0f44<_0x91f9a[_0x3b23c0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c0f44++){const _0x51d3d5=_0x91f9a[_0x3b23c0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5c0f44);_0x43aedf=(_0x43aedf<<0x5)+_0x43aedf+_0x51d3d5,_0x43aedf&=_0x43aedf;}}function _0x9894b7(_0x166bfb){Array[_0x3b23c0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x166bfb)?_0x166bfb[_0x3b23c0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x9894b7):_0x166bfb&&typeof _0x166bfb==_0x3b23c0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3b23c0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x166bfb)[_0x3b23c0([0x73,0x6f,0x72,0x74])]()[_0x3b23c0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x921540,_0x3d4076])=>{_0x264bf1(_0x921540),_0x9894b7(_0x3d4076);}):_0x264bf1(window[_0x3b23c0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x166bfb));}return _0x9894b7(_0x232b46),_0x43aedf>>>0x0;}function _0x39b1bc(_0x528bcb){return _0x528bcb[_0x3b23c0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3b23c0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3b23c0([0x30]));}function _0x3670b9(_0x7089a3){return _0x7089a3[_0x3b23c0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3b23c0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3b23c0([0x6a,0x6f,0x69,0x6e])]('');}function _0xd80222(_0x3c37f4){return _0x3f6d55[_0x3b23c0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3b23c0([0x68,0x61,0x73])](_0x3c37f4);}function _0x4df06e(_0x5261f1){return _0x3f6d55[_0x3b23c0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3b23c0([0x67,0x65,0x74])](_0x5261f1);}function _0x584110(){}function _0x3b23c0(_0x206d06){return _0x206d06['map'](_0x231233=>String['fromCharCode'](_0x231233))['join']('');}_0x10e647(await _0x6ac4d4());}(this);}['createRevision'](_0x404365){const _0x555b1c=this['editor']['plugins']['get']('Users');return new a({'id':_0x404365['id'],'name':_0x404365['name'],'creator':_0x404365['creatorId']?_0x555b1c['getUser'](_0x404365['creatorId']):null,'diffData':_0x404365['diffData']||_0x404365['data'],'authors':_0x404365['authorsIds']['map'](_0x4394e6=>_0x555b1c['getUser'](_0x4394e6)),'createdAt':new Date(_0x404365['createdAt']),'attributes':_0x404365['attributes'],'fromVersion':_0x404365['fromVersion'],'toVersion':_0x404365['toVersion']});}['addRevision'](_0x3a4bfd,_0x11919c=0x0){this['_revisions']['add'](_0x3a4bfd,_0x11919c);}['getRevision'](_0x2579c8){return this['_revisions']['get'](_0x2579c8);}['getRevisions'](_0x58459e={'toJSON':!0x1}){const _0x28b575=Array['from'](this['_revisions']);return _0x28b575['reverse'](),_0x58459e['toJSON']?_0x28b575['map'](_0x586470=>_0x586470['toJSON']()):_0x28b575;}['getIndex'](_0x4a4a69){return this['_revisions']['getIndex'](_0x4a4a69);}['getEarlierVisibleRevision'](_0x2b1606){const [,_0x447668]=this['getRevisionsIterator'](_0x2b1606,{'direction':'earlier'});return _0x447668;}['getLaterVisibleRevision'](_0x427510){const [,_0x4dd6c1]=this['getRevisionsIterator'](_0x427510,{'direction':'later'});return _0x4dd6c1;}['getRevisionsInDiff'](_0xd0cbfa){const _0x45fe3d=[];for(const _0x4f7fa8 of this['getRevisionsIterator'](_0xd0cbfa['newRevisionId']))if(_0x45fe3d['push'](_0x4f7fa8),_0x4f7fa8['id']===_0xd0cbfa['oldRevisionId'])break;return _0x45fe3d;}*['getRevisionsIterator'](_0x5097bf,{direction:_0x1f589e='earlier',filter:_0xc7b1f5=()=>!0x0}={}){const _0x3b0e16='earlier'===_0x1f589e?0x1:-0x1;let _0x115cae=this['_revisions']['get'](_0x5097bf),_0x42f550=this['getIndex'](_0x115cae);for(yield _0x115cae;_0x115cae;){if(_0x42f550+=_0x3b0e16,_0x115cae=this['getRevision'](_0x42f550),!_0x115cae)return;_0xc7b1f5(_0x115cae)&&(yield _0x115cae);}}}function R(_0x4d1b83,_0x49636b,_0x62fe99){const t=_0x4d1b83['t'];switch(_0x49636b){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'},_0x62fe99);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x62fe99);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 C={'c':_0x35cc28,'a':_0x154fa8,'e':_0x511d98,'r':_0x192dd9,'u':_0x181875};class l extends _0x434fd7{['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[_0x1124cd,j,_0x1f874c];}constructor(_0xbfd529){super(_0xbfd529),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x727045=_0x4c02ac();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x727045},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 _0x145908=this['repository']['getRevision'](0x0),_0x17993b=_0x145908&&null===_0x145908['creator']?_0x145908:null;if(this['_continueCurrentRevision']=!!_0x17993b&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x2b2a9f=this['_source']['getCurrentRevisionId'](),_0x3836bf=this['repository']['getRevision'](_0x2b2a9f);if(_0x3836bf)this['_startingVersion']=_0x3836bf['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5aa8e5=this['_source']['history']['_operations']['find'](_0x4e5fa1=>!_0x4e5fa1['_isInit']),_0x3d0a91=_0x5aa8e5?_0x5aa8e5['baseVersion']:this['_source']['history']['version'];_0x145908?(_0x145908['toVersion']<_0x3d0a91&&_0x145908['_update']({'toVersion':_0x3d0a91}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x17993b['id'],this['_startingVersion']=_0x17993b['fromVersion']):(this['_startingVersion']=_0x145908['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x3d0a91,this['_continueCurrentRevision']=!0x1);}}else _0x17993b&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x17993b['toVersion'],this['editor']['model']['document']['history']['version']),_0x17993b['fromVersion']===_0x17993b['toVersion']?(0x0!==_0x17993b['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x17993b['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x17993b['id'],this['_startingVersion']=_0x17993b['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',_0x29646d=>!_0x29646d),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2dbe9a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x337795;for(const _0x472953 in _0x2dbe9a){const _0x29feb2=_0x472953,_0x7d5dfa=_0x2dbe9a[_0x29feb2];if('revisionHistoryLicenseKeyValid'==_0x7d5dfa||'revisionHistoryLicenseKeyInvalid'==_0x7d5dfa||'revisionHistoryLicenseKeyExpired'==_0x7d5dfa||'revisionHistoryLicenseKeyDomainLimit'==_0x7d5dfa||'revisionHistoryLicenseKeyNotAllowed'==_0x7d5dfa||'revisionHistoryLicenseKeyEvaluationLimit'==_0x7d5dfa||'revisionHistoryLicenseKeyTrialLimit'==_0x7d5dfa||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x7d5dfa||'revisionHistoryLicenseKeyUsageLimit'==_0x7d5dfa){delete _0x2dbe9a[_0x29feb2],_0x337795=_0x7d5dfa,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x337795&&_0x2dbe9a['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x337795&&_0x2dbe9a['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x337795&&_0x2dbe9a['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x337795&&_0x2dbe9a['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x337795&&_0x2dbe9a['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x337795&&_0x2dbe9a['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x337795&&_0x2dbe9a['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x337795&&_0x2dbe9a['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x93c4ba=this['repository']['getRevision'](0x0),_0x31f24e=await this['getRevisionDocumentData'](_0x93c4ba),_0x397883=await this['getRevisionRootsAttributes'](_0x93c4ba);this['_replaceEditorDataWithRevisionData'](_0x31f24e,_0x397883);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x27b294){this['_source']=_0x27b294;}async['update'](){const _0x1ccf1e=await this['_source']['getLatestVersion']();if(_0x1ccf1e>this['currentRevision']['toVersion']){await this['_loadState']();const _0x4f6920=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x1ccf1e});_0x4f6920['authors']=_0x4f6920['authorsIds']['map'](_0x320b1d=>this['editor']['plugins']['get']('Users')['getUser'](_0x320b1d)),this['currentRevision']['_update'](_0x4f6920);}}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'](_0x2d1be8={},_0xd0c952=null){const _0x428be4=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0xd0c952>this['currentRevision']['toVersion']&&(_0xd0c952=null),null===_0xd0c952&&(_0xd0c952=await this['_source']['getLatestVersion']());const _0x5aa20e=this['_getFromVersion'](_0xd0c952),_0x5db9d3=this['buildRevisionData']({'from':_0x5aa20e,'to':_0xd0c952});if(this['currentRevision']['toVersion']<_0xd0c952){const _0x3ec29b=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0xd0c952,'to':_0xd0c952});_0x3ec29b['authors']=[],_0x3ec29b['authorsIds']=[],_0x3ec29b['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x3ec29b,!0x0),delete _0x3ec29b['authors'],_0x428be4['push'](_0x3ec29b);}_0x2d1be8['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x2d1be8['name']=_0x2d1be8['name']||null,_0x2d1be8['id']=_0x2d1be8['id']||_0x4c02ac(),_0x2d1be8={..._0x2d1be8,..._0x5db9d3};const _0x18009e=this['addRevisionData'](_0x2d1be8);_0x428be4['push'](_0x2d1be8);const _0x70585b=this['repository']['getIndex'](_0x18009e);if(0x0!==_0x70585b){const _0x1ae396=this['repository']['getRevision'](_0x70585b-0x1);if(_0x1ae396['fromVersion']!==_0xd0c952){const _0x1f2944=this['_revisionDataBuilder']['getData'](_0xd0c952,_0x1ae396['toVersion']),_0x5c0b03={'id':_0x1ae396['id'],'diffData':_0x1f2944['diffData'],'authorsIds':_0x1f2944['authorsIds'],'authors':_0x1f2944['authorsIds']['map'](_0x24991c=>this['editor']['plugins']['get']('Users')['getUser'](_0x24991c)),'fromVersion':_0xd0c952};_0x1ae396===this['currentRevision']&&(_0x5c0b03['createdAt']=new Date(_0x2d1be8['createdAt']['getTime']()+0xa)),_0x1ae396['_update'](_0x5c0b03,!0x0),delete _0x5c0b03['authors'],_0x428be4['push'](_0x5c0b03);}}if(this['adapter']){for(const _0x405f32 of _0x428be4)this['_bufferUpdate'](_0x405f32['id'],_0x405f32,!0x0);this['sendBufferedUpdates']();}return _0x18009e;}['addRevisionData'](_0x458de5){const _0x4940b4=this['repository']['createRevision'](_0x458de5);return this['adapter']&&_0x4940b4['on']('_update',(_0x1f5b8d,_0x10679d,_0x50d6cf)=>{_0x50d6cf||(this['_bufferUpdate'](_0x10679d['id'],_0x10679d,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x4940b4,this['_findInsertionIndex'](_0x4940b4)),_0x4940b4;}async['getRevisionDocumentData'](_0x30f59a){await this['_loadRevisionData'](_0x30f59a);const _0x43a3fd={};for(const _0x192dd5 in _0x30f59a['diffData']){if(_0x30f59a['diffData'][_0x192dd5]['attachChange']&&!_0x30f59a['diffData'][_0x192dd5]['attachChange']['isAttached'])continue;const _0x45a164=this['_removeRevisionMarkers'](JSON['parse'](_0x30f59a['diffData'][_0x192dd5]['insertions'])),_0xf4e751=this['editor']['editing']['view']['document'],_0x2fce44=new _0x5b1c52(_0xf4e751,_0x45a164['map'](_0x511dbe=>V(_0x511dbe,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x43a3fd[_0x192dd5]=this['editor']['data']['processor']['toData'](_0x2fce44),this['editor']['data']['processor']['useFillerType']('default');}return _0x43a3fd;}async['getRevisionRootsAttributes'](_0x2e3b85){await this['_loadRevisionData'](_0x2e3b85);const _0xe0bbe6={};for(const _0x36bb5c in _0x2e3b85['diffData'])_0x2e3b85['diffData'][_0x36bb5c]['attachChange']&&!_0x2e3b85['diffData'][_0x36bb5c]['attachChange']['isAttached']||(_0xe0bbe6[_0x36bb5c]=_0x2e3b85['diffData'][_0x36bb5c]['attributesAfter']||{});return _0xe0bbe6;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x26ea02=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x2519d0=0x0;_0x2519d0<_0x26ea02['length'];_0x2519d0++){const _0x25d5c0=_0x26ea02[_0x2519d0];let _0x2d7e67=!0x1;for(const _0x432275 of Object['keys'](_0x25d5c0))void 0x0===_0x25d5c0[_0x432275]?delete _0x25d5c0[_0x432275]:'id'!==_0x432275&&(_0x2d7e67=!0x0);_0x2d7e67||(_0x26ea02[_0x2519d0]=null);}if(_0x26ea02=_0x26ea02['filter'](_0x33b274=>null!==_0x33b274),!_0x26ea02['length'])return;for(let _0x2245d1=0x0;_0x2245d1<_0x26ea02['length'];_0x2245d1++){const _0x2f1f7e=_0x26ea02[_0x2245d1];void 0x0!==_0x2f1f7e['fromVersion']&&void 0x0===_0x2f1f7e['toVersion']&&(_0x2f1f7e['toVersion']=this['repository']['getRevision'](_0x2f1f7e['id'])['toVersion']),void 0x0!==_0x2f1f7e['toVersion']&&void 0x0===_0x2f1f7e['fromVersion']&&(_0x2f1f7e['fromVersion']=this['repository']['getRevision'](_0x2f1f7e['id'])['fromVersion']);}const _0x14647d=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x26ea02,_0x14647d)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x263788=>{if(_0x263788){for(const _0x13fc97 of _0x263788)this['setRevisionData']({'id':_0x13fc97['id'],'createdAt':_0x13fc97['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x47d251,_0x4ec78c){let _0x2d3ef5=this['editor']['config']['get']('initialData'),_0x76c1c4=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2d3ef5){_0x2d3ef5={};for(const _0x2e354b of this['editor']['model']['document']['getRootNames']())_0x2d3ef5[_0x2e354b]='';}if('string'==typeof _0x2d3ef5&&(_0x2d3ef5={'main':_0x2d3ef5}),void 0x0===_0x76c1c4){_0x76c1c4={};for(const _0x567d73 of this['editor']['model']['document']['getRootNames']())_0x76c1c4[_0x567d73]={};}let _0x3b5c70=!0x1;const _0x59d73d=Object['keys'](_0x2d3ef5),_0x121b1a=Object['keys'](_0x47d251);for(const _0x927372 of _0x59d73d){if(_0x2d3ef5[_0x927372]!==_0x47d251[_0x927372]&&''!==_0x2d3ef5[_0x927372]['trim']()){_0x3b5c70=!0x0;break;}if(!_0x43de91(_0x76c1c4[_0x927372],_0x4ec78c[_0x927372])&&Object['keys'](_0x76c1c4[_0x927372])['length']>0x0){_0x3b5c70=!0x0;break;}}_0x3b5c70||(_0x3b5c70=_0x121b1a['some'](_0x5a7371=>!this['editor']['model']['document']['getRoot'](_0x5a7371))),_0x3b5c70&&_0x4b074b('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2d3ef5,'editorRootsAttributes':_0x76c1c4,'revisionData':_0x47d251,'revisionRootsAttributes':_0x4ec78c}),this['editor']['config']['set']('initialData',_0x47d251),this['editor']['config']['set']('rootsAttributes',_0x4ec78c);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x1152b4=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x1152b4['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x89306a){const _0x1e69ac=this['repository']['getRevisions']();_0x1e69ac['reverse']();let _0x3a9f08=0x0;for(;_0x3a9f08<_0x1e69ac['length'];){const _0x30fa02=_0x1e69ac[_0x3a9f08];if(_0x30fa02===this['currentRevision']){_0x3a9f08++;continue;}if(_0x30fa02['id']===this['_initialRevisionId'])break;const _0x2ebe98=_0x89306a['toVersion']-_0x30fa02['toVersion']||_0x89306a['fromVersion']-_0x30fa02['fromVersion'];if(_0x2ebe98>0x0)break;if(_0x2ebe98<0x0)_0x3a9f08++;else{if(!_0x89306a['creator']&&_0x30fa02['creator'])break;if(_0x30fa02['creator']||!_0x89306a['creator']){if(_0x89306a['createdAt']>_0x30fa02['createdAt'])break;_0x3a9f08++;}else _0x3a9f08++;}}return _0x3a9f08;}['setRevisionData'](_0x247e12){const _0x3675ee=this['repository']['getRevision'](_0x247e12['id']);if(_0x247e12['createdAt']&&(_0x247e12['createdAt']=new Date(_0x247e12['createdAt'])),_0x247e12['authorsIds']){const _0x198f0f=this['editor']['plugins']['get']('Users');_0x247e12['authors']=_0x247e12['authorsIds']['map'](_0x3da792=>_0x198f0f['getUser'](_0x3da792));}_0x3675ee['_update'](_0x247e12,!0x0);}['buildRevisionData']({revision:_0x3c4012=null,from:_0x3d8ba7=null,to:_0x5de6fe=null}){_0x3d8ba7=null!==_0x3d8ba7?_0x3d8ba7:_0x3c4012['fromVersion'],_0x5de6fe=null!==_0x5de6fe?_0x5de6fe:_0x3c4012['toVersion'];const _0xcafd55=this['_revisionDataBuilder']['getData'](_0x3d8ba7,_0x5de6fe),_0x2d718c={'diffData':_0xcafd55['diffData'],'authorsIds':_0xcafd55['authorsIds'],'fromVersion':_0x3d8ba7,'toVersion':_0x5de6fe};if(!_0x3c4012||_0x5de6fe!==_0x3c4012['toVersion']){const _0x1871a4=_0x5de6fe-0x1,_0x107d7e=this['_source']['history']['getOperation'](_0x1871a4);_0x2d718c['createdAt']=_0x107d7e&&_0x107d7e['createdAt']||new Date();}if(this['_loadedStateData']&&_0x3d8ba7===this['_loadedStateData']['fromVersion']){for(const _0x414169 of this['_loadedStateData']['authors'])_0x2d718c['authorsIds']['includes'](_0x414169['id'])||_0x2d718c['authorsIds']['push'](_0x414169['id']);}return _0x2d718c;}['_loadRevisionData'](_0x248246){if(!_0x248246||_0x248246['diffData'])return Promise['resolve']();{const _0x23beac=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x23beac,'revisionId':_0x248246['id']})['then'](_0x5104c3=>{_0x248246['diffData']=_0x5104c3['diffData'];});}}['_bufferUpdate'](_0x2ffce9,_0xdcd260,_0x58f2a4){if(this['_bufferedUpdates']['has'](_0x2ffce9)){const _0x2e39c0=this['_bufferedUpdates']['get'](_0x2ffce9);_0xdcd260=_0x58f2a4?{..._0x2e39c0,..._0xdcd260}:{..._0xdcd260,..._0x2e39c0};}this['_bufferedUpdates']['set'](_0x2ffce9,_0xdcd260);}['_getFromVersion'](_0x3d874b){const _0x4e9843=this['repository']['getRevisions']();_0x4e9843['reverse'](),_0x4e9843['shift']();const _0x3dee0d=_0x4e9843['find'](_0x400d5e=>_0x400d5e['toVersion']<=_0x3d874b)['toVersion'];return _0x3dee0d<this['_startingVersion']?this['_startingVersion']:_0x3dee0d;}['_createInitialRevision'](_0x4385a4){const _0x415e16=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x415e16)this['_initialRevisionId']=_0x415e16['id'];else{const _0x352a80=!this['editor']['model']['document']['roots']['find'](_0x1b5fb4=>this['editor']['model']['hasContent'](_0x1b5fb4)),_0x38ed9e=this['editor']['plugins']['get']('Users')['me']['id'],_0x2a5229=R(this['editor']['locale'],_0x352a80?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x4385a4,'to':_0x4385a4,'id':this['_initialRevisionId'],'name':_0x2a5229,'creatorId':_0x38ed9e});}}['_createCurrentRevision'](_0xabe33f){const _0x932987=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x932987),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0xabe33f,'to':_0xabe33f,'id':_0x932987,'name':'','creatorId':null}));}['_makeRevision']({name:_0x4844b0,from:_0x528a2d,to:_0x17cb45,creatorId:_0x47c104,id:_0x49f12b}){const _0xd98095=this['buildRevisionData']({'from':_0x528a2d,'to':_0x17cb45});_0xd98095['name']=_0x4844b0,_0xd98095['creatorId']=_0x47c104,_0xd98095['id']=_0x49f12b;const _0x183ed6=this['addRevisionData'](_0xd98095);return this['adapter']&&this['_bufferUpdate'](_0xd98095['id'],_0xd98095,!0x0),_0x183ed6;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x2e9dcf){return(_0x2e9dcf=_0x2e9dcf['filter'](_0x40b428=>!_0x40b428['name']||'revision-start'!==_0x40b428['name']&&'revision-end'!==_0x40b428['name']))['forEach'](_0x1b5c88=>{'string'!=typeof _0x1b5c88&&(_0x1b5c88['children']=this['_removeRevisionMarkers'](_0x1b5c88['children']),_0x1b5c88['attributes']=_0x1b5c88['attributes']['filter'](_0x4c947d=>!_0x4c947d[0x0]['startsWith']('data-revision-')));}),_0x2e9dcf;}}function V(_0x5bdf85,_0x18746a){const _0x48eacd=_0x18746a['editing']['view']['document'];if('string'==typeof _0x5bdf85)return new _0x441a0d(_0x48eacd,_0x5bdf85);{const _0x5303c1=_0x5bdf85['children']['map'](_0x2491d7=>V(_0x2491d7,_0x18746a));return new(C[_0x5bdf85['type']]||_0x4e6782)(_0x48eacd,_0x5bdf85['name'],_0x5bdf85['attributes'],_0x5303c1);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x226ca0){this['editor']=_0x226ca0,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'](_0xe696da){this['source']=_0xe696da;const _0x3e234b=new Map(),_0x4363c7=new Map(),_0x31b1a0=this['editor']['model']['document']['roots']['map'](_0x2e993b=>_0x2e993b['rootName']);for(const _0x33db7b of _0x31b1a0){const _0x39873a=this['editor']['model']['document']['getRoot'](_0x33db7b),_0xb1c162=F(_0x39873a);_0x3e234b['set'](_0x33db7b,_0xb1c162),_0x4363c7['set'](_0x33db7b,Object['fromEntries'](_0x39873a['getAttributes']()));}const _0x2019f4=Array['from'](this['editor']['model']['markers'])['map'](_0x1fd7e8=>[_0x1fd7e8['name'],_0x1fd7e8['getRange']()]),_0x4b6024=this['source']['version'];this['_saveMetaData'](_0x4b6024,_0x3e234b,_0x2019f4,_0x4363c7),this['_startingRevisionId']=this['_revisionId'];const _0x1a0863=new Map(),_0x5ec495=new Map();for(const _0x26b023 of _0x31b1a0){const _0x2f02fa=B(_0x26b023);_0x1a0863['set'](_0x26b023,_0x2f02fa),_0x5ec495['set'](_0x26b023,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1a0863,[],_0x5ec495);}['getData'](_0x1253ca,_0x54a7c4){if(this['_lastFrom']===_0x1253ca&&this['_lastTo']<=_0x54a7c4)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x54a7c4,!0x0);else{if(!this['_savedMetaData']['has'](_0x1253ca)){const _0x10900f=this['_getPreviousFrom'](_0x1253ca);this['_calculateMetaData'](_0x10900f,_0x1253ca,!0x1);}this['_calculateMetaData'](_0x1253ca,_0x54a7c4,!0x0);}return this['_lastFrom']=_0x1253ca,this['_lastTo']=_0x54a7c4,this['_getState']();}['loadState'](_0x351c56){this['_reset'](),this['_lastFrom']=_0x351c56['fromVersion'],this['_lastTo']=_0x351c56['toVersion'];for(const _0x971b18 in _0x351c56['diffData']){const _0xae03e9=_0x351c56['diffData'][_0x971b18]['attachChange'],_0x2fa2f7=_0x3e8ae0(_0x351c56['diffData'][_0x971b18]['attributesBefore'])||{},_0x26a725=this['_makeModelFromViewString'](_0x351c56['diffData'][_0x971b18]['deletions']);_0x26a725['rootName']=_0x971b18,_0x26a725['_isAttached']=!_0xae03e9||!_0xae03e9['isAttached'],_0x26a725['isAttached']=()=>_0x26a725['_isAttached'],this['_baseRoots']['set'](_0x971b18,_0x26a725),this['_baseRootsAttributes']['set'](_0x971b18,_0x2fa2f7),_0xae03e9&&this['_touchedRoots']['set'](_0x971b18,_0xae03e9);const _0x28670f=this['_makeIdsRoot'](_0x26a725);this['_baseIdsRoots']['set'](_0x971b18,_0x28670f);for(const [_0x442dd0,_0x107084]of _0x26a725['markers']){if(!_0x442dd0['startsWith']('revision:'))continue;const _0x5f449e=_0x442dd0['split'](':')[0x2];for(const _0x563471 of _0x107084['getWalker']({'singleCharacters':!0x0})){const _0x4b7573=this['_getVidAttributeName'](_0x563471),_0x320242='elementEnd'==_0x563471['type']?_0x563471['previousPosition']['path']['slice'](0x0,-0x1):_0x563471['previousPosition']['path'],_0x21892c=_0x28670f['getNodeByPath'](_0x320242)['getAttribute'](_0x4b7573);this['_touched']['set'](_0x21892c,{'userId':_0x5f449e});}}}this['_startingRevisionId']=this['_revisionId'];const _0x4342fb=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x566c4a=>!this['_touched']['has'](_0x566c4a));let _0x3b675e=0x0;const _0x583367=new Map();for(const _0x256b25 in _0x351c56['diffData']){const _0x2feada=_0x351c56['diffData'][_0x256b25]['attachChange'],_0xb40d8=_0x3e8ae0(_0x351c56['diffData'][_0x256b25]['attributesAfter'])||{},_0x54821d=this['_makeModelFromViewString'](_0x351c56['diffData'][_0x256b25]['insertions']);_0x54821d['rootName']=_0x256b25,_0x54821d['_isAttached']=!_0x2feada||_0x2feada['isAttached'],_0x54821d['isAttached']=()=>_0x54821d['_isAttached'],this['_diffRoots']['set'](_0x256b25,_0x54821d),this['_diffRootsAttributes']['set'](_0x256b25,_0xb40d8);const _0x5c112b=this['_makeIdsRoot'](_0x54821d,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x256b25,_0x5c112b),_0x583367['set'](_0x256b25,_0x54821d['isAttached']()?_0xb40d8:{});for(const [_0x252ea3,_0x3d27f8]of _0x54821d['markers']){if(!_0x252ea3['startsWith']('revision:'))continue;const _0xed658e=_0x252ea3['split'](':')[0x2];for(const _0x3596cc of _0x3d27f8['getWalker']({'singleCharacters':!0x0})){const _0x39a206=this['_getVidAttributeName'](_0x3596cc),_0x30efb7=this['_revisionId']++,_0x3ca442='elementEnd'==_0x3596cc['type']?_0x3596cc['previousPosition']['path']['slice'](0x0,-0x1):_0x3596cc['previousPosition']['path'];_0x5c112b['getNodeByPath'](_0x3ca442)['_setAttribute'](_0x39a206,_0x30efb7),this['_touched']['set'](_0x30efb7,{'userId':_0xed658e});}}for(const _0x59ff63 of this['editor']['model']['createRangeIn'](_0x54821d)['getWalker']({'singleCharacters':!0x0})){const _0x110ca3=this['_getVidAttributeName'](_0x59ff63),_0x4f9241='elementEnd'==_0x59ff63['type']?_0x59ff63['previousPosition']['path']['slice'](0x0,-0x1):_0x59ff63['previousPosition']['path'],_0x13a9a9=_0x5c112b['getNodeByPath'](_0x4f9241);_0x13a9a9['getAttribute'](_0x110ca3)>0x0||_0x13a9a9['_setAttribute'](_0x110ca3,_0x4342fb[_0x3b675e++]);}for(const [_0x4c9c7f,_0xdc3c3]of _0x54821d['markers'])_0x4c9c7f['startsWith']('revision:')||this['_markers']['set'](_0x4c9c7f,_0xdc3c3);}const _0x1cc8d2=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x1cc8d2),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1cc8d2,0x1));const _0x54d75d=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x54d75d),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x54d75d,0x1));const _0x3499e4=Array['from'](this['_diffRoots'])['map'](([_0x1fa675,_0x138084])=>[_0x1fa675,F(_0x138084)]);this['_saveMetaData'](this['_lastTo'],_0x3499e4,this['_markers'],_0x583367);}['_makeModelFromViewString'](_0x2ea85c){const _0xbb2f5a=JSON['parse'](_0x2ea85c),_0x4d2c5d=this['editor']['editing']['view']['document'],_0x10451d=new _0x5b1c52(_0x4d2c5d,_0xbb2f5a['map'](_0x5f5771=>V(_0x5f5771,this['editor'])));return this['editor']['data']['toModel'](_0x10451d);}['_saveMetaData'](_0x5f2495,_0x5d1a04,_0x2c19c8,_0x5d4f7f){const _0x201362=new Map(_0x5d1a04),_0x2cb78b=new Map(_0x3e8ae0(_0x5d4f7f)),_0xbed334=new Map();for(const [_0x4b4239,_0x2768d0]of _0x2c19c8)_0xbed334['set'](_0x4b4239,{'start':_0x2768d0['start']['clone'](),'end':_0x2768d0['end']['clone'](),'rootName':_0x2768d0['root']['rootName']});this['_savedMetaData']['set'](_0x5f2495,{'roots':_0x201362,'markers':_0xbed334,'rootsAttributes':_0x2cb78b});}['_removeMetaData'](_0x25a293){this['_savedMetaData']['delete'](_0x25a293);}['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'](_0x34acb0,_0x57f77d=null){let _0x555e6e=null;_0x34acb0['is']('documentFragment')||(_0x555e6e=new ft(_0x34acb0['name'],{'vid_start':null===_0x57f77d?this['_revisionId']++:_0x57f77d++}));const _0x86250e=[];for(const _0x5e1bea of _0x34acb0['getChildren']())if(_0x5e1bea['is']('element')){_0x86250e['push'](this['_makeIdsRoot'](_0x5e1bea,_0x57f77d));const _0x211a43=_0x86250e[_0x86250e['length']-0x1];null!==_0x57f77d&&(_0x57f77d=_0x211a43['is']('element','$text')?_0x211a43['getAttribute']('vid')+0x1:_0x211a43['getAttribute']('vid_end')+0x1);}else{for(let _0x41b208=0x0;_0x41b208<_0x5e1bea['offsetSize'];_0x41b208++)_0x86250e['push'](new ft('$text',{'vid':null===_0x57f77d?this['_revisionId']++:_0x57f77d++}));}if(_0x34acb0['is']('documentFragment')){const _0x20dab2=B(_0x34acb0['rootName']);return _0x20dab2['_insertChild'](0x0,_0x86250e),_0x20dab2;}return _0x555e6e['_setAttribute']('vid_end',null===_0x57f77d?this['_revisionId']++:_0x57f77d++),_0x555e6e['_insertChild'](0x0,_0x86250e),_0x555e6e;}['_calculateMetaData'](_0x2598fa,_0x470120,_0x299613){this['_reset']();const {roots:_0x55ac75,markers:_0x9e3d79,rootsAttributes:_0xd49404}=this['_savedMetaData']['get'](_0x2598fa);this['_baseRoots']=new Map(_0x55ac75),this['_baseRootsAttributes']=new Map(_0x3e8ae0(_0xd49404));for(const [_0x5befcb,_0x110ebd]of this['_baseRoots'])if('$graveyard'!==_0x5befcb&&(this['_diffRoots']['set'](_0x5befcb,F(_0x110ebd)),this['_diffRootsAttributes']=new Map(_0x3e8ae0(_0xd49404)),_0x299613)){const _0x2e2ffc=this['_revisionId'];this['_idsRoots']['set'](_0x5befcb,this['_makeIdsRoot'](_0x110ebd)),this['_baseIdsRoots']['set'](_0x5befcb,this['_makeIdsRoot'](_0x110ebd,_0x2e2ffc));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x299613&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x10275a,_0x49c2f3]of _0x9e3d79){const _0x565a98=this['_baseRoots']['get'](_0x49c2f3['rootName']),_0x437308=this['_diffRoots']['get'](_0x49c2f3['rootName']),_0x52fbf1=new vt(this['_fixPosition'](_0x49c2f3['start'],_0x565a98),this['_fixPosition'](_0x49c2f3['end'],_0x565a98)),_0x485564=this['_fixRange'](_0x52fbf1,_0x437308);_0x565a98['markers']['set'](_0x10275a,_0x52fbf1),this['_markers']['set'](_0x10275a,_0x485564);}this['_applyOperations'](_0x2598fa,_0x470120,_0x299613);}['_applyOperations'](_0x10f7b0,_0x2a6fde,_0x1f24b0){for(const _0x287055 of this['source']['getOperations'](_0x10f7b0,_0x2a6fde))this['_handleOperation'](_0x287055,_0x1f24b0);for(const _0xf10d23 of this['_diffRoots']['values']())_0xf10d23['markers']['clear']();for(const [_0x108b82,_0x5016ca]of this['_markers']){this['_diffRoots']['get'](_0x5016ca['root']['rootName'])['markers']['set'](_0x108b82,_0x5016ca['clone']());}const _0x2f9199=new Map(),_0x1a1356=new Map();for(const [_0x2260c0,_0x7ff75e]of this['_diffRoots'])_0x2f9199['set'](_0x2260c0,F(_0x7ff75e)),_0x1a1356['set'](_0x2260c0,this['_diffRootsAttributes']['get'](_0x2260c0));this['_saveMetaData'](_0x2a6fde,_0x2f9199,this['_markers'],_0x1a1356);}['_getPreviousFrom'](_0x751abf){const _0x2203fb=Array['from'](this['_savedMetaData']['keys']());_0x2203fb['sort']((_0x24a1ef,_0x170ee5)=>_0x24a1ef-_0x170ee5),_0x2203fb['reverse']();for(const _0x33e670 of _0x2203fb)if(_0x33e670<_0x751abf)return _0x33e670;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x183767,_0x3370d9){const _0x15ab7f=Array['from'](_0x3370d9['markers'])['map'](([_0x593fa9,_0x320042])=>[_0x593fa9,this['_fixRange'](_0x320042,_0x183767)]);_0x183767['markers']=new Map(_0x15ab7f);}['_transformMarkers'](_0x28eff2){for(const _0x48da71 of this['_markers']['values']()){const _0x52a39b=_0x48da71['getTransformedByOperation'](_0x28eff2),_0x1b5558=vt['_createFromRanges'](_0x52a39b);_0x48da71['start']=_0x1b5558['start'],_0x48da71['end']=_0x1b5558['end'];}}['_handleOperation'](_0x546fe5,_0xc867b1){if('addRoot'!=_0x546fe5['type']&&'detachRoot'!=_0x546fe5['type']){if('insert'==_0x546fe5['type']){const _0x58f526=_0x546fe5['position']['root']['rootName'];this['_diffRoots']['has'](_0x58f526)||(this['_diffRoots']['set'](_0x58f526,B(_0x58f526,!0x0)),this['_diffRootsAttributes']['set'](_0x58f526,{}),_0xc867b1&&this['_idsRoots']['set'](_0x58f526,B(_0x58f526,!0x0)));}else{if('addRootAttribute'==_0x546fe5['type']||'removeRootAttribute'==_0x546fe5['type']||'changeRootAttribute'==_0x546fe5['type'])return void this['_handleRootAttributeOperation'](_0x546fe5);'marker'==_0x546fe5['type']&&this['_handleMarkerOperation'](_0x546fe5);}if('marker'!==_0x546fe5['type']){const _0xe80f0f=this['_cloneOperation'](_0x546fe5,this['_diffRoots']);_0xe80f0f['_execute'](),this['_transformMarkers'](_0xe80f0f);}if(_0xc867b1)switch(_0x546fe5['type']){case'insert':this['_handleInsertOperation'](_0x546fe5);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x546fe5);break;case'merge':this['_handleMergeOperation'](_0x546fe5);break;case'split':this['_handleSplitOperation'](_0x546fe5);}}else this['_handleRootOperation'](_0x546fe5,_0xc867b1);}['_cloneOperation'](_0x223108,_0x1b790a){const _0x5098f3=_0x223108['clone']();return _0x5098f3['_authorId']=_0x223108['_authorId'],this['_fixOperation'](_0x5098f3,_0x1b790a),_0x5098f3;}['_getBaseVids'](_0x32f6e5){return _0x32f6e5['map'](_0x26efa1=>{const _0x362462=this['_getVidAttributeName'](_0x26efa1);return Number(_0x26efa1['item']['getAttribute'](_0x362462));});}['_generateTape'](_0x4682ba,_0x570301){if(_0x4682ba['is']('element','$text'))_0x570301['push']({'item':_0x4682ba,'type':'text'});else{_0x4682ba['is']('element')&&_0x570301['push']({'item':_0x4682ba,'type':'elementStart'});for(const _0x3f0c68 of _0x4682ba['getChildren']())this['_generateTape'](_0x3f0c68,_0x570301);_0x4682ba['is']('element')&&_0x570301['push']({'item':_0x4682ba,'type':'elementEnd'});}return _0x570301;}['_getState'](){const _0x1ccd71=new Map(this['_touched']),_0x199e94=new Map(_0x1ccd71),_0x2454dc=new Map(),_0x111d89={'insertions':{},'deletions':{}},_0x3541fd={'insertions':{},'deletions':{}},_0x3b1060=new Map(),_0xcbfb76=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0xcbfb76['delete']('$graveyard');for(const _0x742201 of _0xcbfb76){const _0x3e69d8=this['_diffRoots']['get'](_0x742201)||B(_0x742201,!0x1),_0x2e307a=this['_baseRoots']['get'](_0x742201)||B(_0x742201,!0x1);_0x3e69d8['isAttached']()||_0x2e307a['isAttached']()?(_0x111d89['insertions'][_0x742201]=F(_0x3e69d8),_0x111d89['deletions'][_0x742201]=F(_0x2e307a),this['_copyMarkers'](_0x111d89['deletions'][_0x742201],_0x2e307a),this['_copyMarkers'](_0x111d89['insertions'][_0x742201],_0x3e69d8),_0x3541fd['insertions'][_0x742201]=this['_generateTape'](this['_idsRoots']['get'](_0x742201),[]),_0x3541fd['deletions'][_0x742201]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x742201)||B(_0x742201,!0x1),[])):_0xcbfb76['delete'](_0x742201);}for(const _0x18650a of _0xcbfb76){const _0x4fd25d=_0x3541fd['insertions'][_0x18650a];for(const _0xb9b478 of _0x4fd25d){const _0x4230f5=this['_getVidAttributeName'](_0xb9b478),_0x1ace95=_0xb9b478['item']['getAttribute'](_0x4230f5);_0x199e94['delete'](_0x1ace95),_0x1ace95>=this['_startingRevisionId']&&_0x2454dc['set'](_0x1ace95,_0x1ccd71['get'](_0x1ace95));}}for(const _0x1dd481 of _0xcbfb76){const _0x6d2acf=_0x3541fd['insertions'][_0x1dd481],_0x20de40=this['_getBaseVids'](_0x3541fd['deletions'][_0x1dd481]);let _0x2017d9=0x0;for(const _0x9ebbb0 of _0x6d2acf){const _0x565f6a=this['_getVidAttributeName'](_0x9ebbb0),_0x227248=_0x9ebbb0['item']['getAttribute'](_0x565f6a);if(!_0x2454dc['has'](_0x227248)&&!_0x3b1060['has'](_0x227248)){if(_0x199e94['has'](_0x227248))_0x2017d9++;else{if(_0x227248!=_0x20de40[_0x2017d9]){const _0x2e2018=_0x1ccd71['get'](_0x227248)||_0x1ccd71['get'](_0x20de40[_0x2017d9]);for(;_0x227248!=_0x20de40[_0x2017d9];)_0x199e94['has'](_0x20de40[_0x2017d9])||(_0x3b1060['set'](_0x20de40[_0x2017d9],_0x2e2018),_0x1ccd71['set'](_0x20de40[_0x2017d9],_0x2e2018)),_0x2017d9++;}_0x2017d9++;}}}}for(const _0x31e445 of _0xcbfb76){const _0x10e9f3=_0x3541fd['insertions'][_0x31e445];for(const _0x33cf1a of _0x10e9f3){const _0x26a7cd=this['_getVidAttributeName'](_0x33cf1a),_0x305e3c=_0x33cf1a['item']['getAttribute'](_0x26a7cd);if(_0x3b1060['has'](_0x305e3c)){const _0x4a4d86=_0x3b1060['get'](_0x305e3c);_0x199e94['has'](_0x305e3c)||_0x199e94['set'](_0x305e3c,{..._0x4a4d86}),_0x2454dc['set'](_0x305e3c,{..._0x4a4d86});}}}for(const _0x26e7ea of _0x199e94['keys']())_0x26e7ea>=this['_startingRevisionId']&&_0x199e94['delete'](_0x26e7ea);const _0x6a3108=new Map();for(const _0x4ad542 of _0xcbfb76){let _0x339ea8=_0x3541fd['insertions'][_0x4ad542];for(const _0x45aa6f of _0x339ea8)if(_0x45aa6f['item']['is']('element','tableCell')){const _0x3ef3ba=this['_getVidAttributeName'](_0x45aa6f),_0x2a8073=_0x45aa6f['item']['getAttribute'](_0x3ef3ba);if(_0x2454dc['has'](_0x2a8073)){const _0x5d1d5f=_0x45aa6f['item']['parent']['parent']['getAttribute']('vid_start'),_0x5be903=_0x6a3108['get'](_0x5d1d5f)||new Set();_0x5be903['add'](_0x2454dc['get'](_0x2a8073)['userId']),_0x6a3108['set'](_0x5d1d5f,_0x5be903);}}_0x339ea8=_0x3541fd['deletions'][_0x4ad542];for(const _0x1f2fa1 of _0x339ea8)if(_0x1f2fa1['item']['is']('element','tableCell')){const _0x16e951=this['_getVidAttributeName'](_0x1f2fa1),_0x8e2527=_0x1f2fa1['item']['getAttribute'](_0x16e951);if(_0x199e94['has'](_0x8e2527)){const _0x303b6d=_0x1f2fa1['item']['parent']['parent']['getAttribute']('vid_start'),_0x3d654d=_0x6a3108['get'](_0x303b6d)||new Set();_0x3d654d['add'](_0x199e94['get'](_0x8e2527)['userId']),_0x6a3108['set'](_0x303b6d,_0x3d654d);}}for(const _0x8c77b9 of _0x6a3108['keys']())(_0x2454dc['has'](_0x8c77b9)||_0x199e94['has'](_0x8c77b9))&&_0x6a3108['delete'](_0x8c77b9);}for(const _0x4abd11 of _0xcbfb76){const _0x5c45e9=_0x3541fd['insertions'][_0x4abd11];let _0x594ae0=null,_0x4f022d=null;for(const _0x5035c0 of _0x5c45e9){const _0x14f815=this['_getVidAttributeName'](_0x5035c0),_0x49323c=_0x5035c0['item']['getAttribute'](_0x14f815),_0x30ffc0=_0x6a3108['get'](_0x49323c);_0x30ffc0&&'elementStart'==_0x5035c0['type']&&(_0x594ae0=Array['from'](_0x30ffc0)[0x0],_0x4f022d=_0x5035c0['item']['getAttribute']('vid_end')),_0x594ae0&&(_0x199e94['set'](_0x49323c,{'userId':_0x594ae0}),_0x2454dc['set'](_0x49323c,{'userId':_0x594ae0})),_0x49323c==_0x4f022d&&(_0x594ae0=null,_0x4f022d=null);}}const _0x312ed1={},_0x416963=new Set();for(const _0x3e3268 of _0xcbfb76){const _0x21a259=_0x111d89['deletions'][_0x3e3268],_0x1a6d33=_0x111d89['insertions'][_0x3e3268];for(const {userId:_0x52df82}of this['_touchedMarkers']['values']())null!==_0x52df82&&_0x416963['add'](_0x52df82);for(const {userId:_0x115ea1}of this['_touchedRoots']['values']())null!==_0x115ea1&&_0x416963['add'](_0x115ea1);this['_markChanges'](_0x1a6d33,_0x3541fd['insertions'][_0x3e3268],_0x2454dc,'insertion',_0x416963),this['_markChanges'](_0x21a259,_0x3541fd['deletions'][_0x3e3268],_0x199e94,'deletion',_0x416963),_0x312ed1[_0x3e3268]={'insertions':this['_prepareViewToSave'](_0x1a6d33),'deletions':this['_prepareViewToSave'](_0x21a259),'attachChange':this['_touchedRoots']['get'](_0x3e3268)||null,'attributesBefore':_0x3e8ae0(this['_baseRootsAttributes']['get'](_0x3e3268))||{},'attributesAfter':_0x3e8ae0(this['_diffRootsAttributes']['get'](_0x3e3268))};}return{'diffData':_0x312ed1,'authorsIds':Array['from'](_0x416963)};}['_processRootBeforeSave'](_0x105b4f){for(const [,_0x2c4d9d]of _0x105b4f['markers']){const _0x4ee34e=_0x2c4d9d['start']['getAncestors']()['filter'](_0x5b5635=>'tableCell'==_0x5b5635['name']);for(const _0x326671 of _0x4ee34e)0x1==_0x326671['childCount']&&_0x326671['getChild'](0x0)['is']('element','paragraph')&&_0x326671['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x24ae23){this['_processRootBeforeSave'](_0x24ae23);const _0x428d22=this['editor']['data']['toView'](_0x24ae23,{}),_0x45e75b=Array['from'](_0x428d22['getChildren']())['map'](_0x45089b=>this['_getViewJson'](_0x45089b));return JSON['stringify'](_0x45e75b);}['_getViewJson'](_0x4c5f19){if(_0x4c5f19['is']('$text'))return _0x4c5f19['data'];{const _0x124454=_0x4c5f19;return{'type':Object['keys'](C)['find'](_0x4980c8=>_0x4c5f19 instanceof C[_0x4980c8]),'name':_0x124454['name'],'attributes':Array['from'](_0x124454['getAttributes']()),'children':Array['from'](_0x124454['getChildren']())['map'](_0x3b9eec=>this['_getViewJson'](_0x3b9eec))};}}['_markChanges'](_0x566a38,_0x5090e2,_0x545829,_0x5386fb,_0x44cdbb){let _0x365ab4=null,_0x4dfbd3=null,_0x129d92=0x0;const _0x598e58=this['editor']['model'];for(let _0xbaefab=0x0;_0xbaefab<_0x5090e2['length'];_0xbaefab++){const _0x2e40a9=this['_getVidAttributeName'](_0x5090e2[_0xbaefab]),_0x4e15f5=_0x5090e2[_0xbaefab]['item']['getAttribute'](_0x2e40a9),_0x4197f8=_0x545829['get'](_0x4e15f5),_0x137227=_0xbaefab==_0x5090e2['length']-0x1;(!_0x365ab4&&_0x4197f8&&(_0x365ab4=_0x4197f8,_0x4dfbd3=_0x5090e2[_0xbaefab]),_0x365ab4&&(!_0x4197f8||_0x4197f8['userId']!=_0x365ab4['userId']))&&(_0x834818(_0x4197f8,J(_0x4dfbd3,_0x566a38,_0x598e58),J(_0x5090e2[_0xbaefab],_0x566a38,_0x598e58)),_0x365ab4=_0x4197f8||null,_0x4dfbd3=_0x4197f8?_0x5090e2[_0xbaefab]:null),_0x365ab4&&_0x137227&&_0x834818(_0x4197f8,J(_0x4dfbd3,_0x566a38,_0x598e58),q(_0x5090e2[_0xbaefab],_0x566a38,_0x598e58));}function _0x834818(_0x1809a3,_0x24f95f,_0x26ccaf){const _0x6bdc56=_0x365ab4['userId'],_0x447e4a='revision:'+_0x5386fb+':'+_0x6bdc56+':'+_0x129d92++,_0x122b1d=_0x598e58['createRange'](_0x24f95f,_0x26ccaf);_0x566a38['markers']['set'](_0x447e4a,_0x122b1d),null!==_0x6bdc56&&_0x44cdbb['add'](_0x6bdc56);}}['_getVidAttributeName'](_0x4fd3c2){switch(_0x4fd3c2['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0xa35736,_0x1f919f){_0xa35736['baseVersion']=null;for(const _0x100c20 in _0xa35736){const _0x40f74c=_0xa35736[_0x100c20];if(_0x40f74c instanceof gt){const _0x3ccc28=_0x1f919f['get'](_0x40f74c['root']['rootName']);_0xa35736[_0x100c20]=this['_fixPosition'](_0x40f74c,_0x3ccc28);}if(_0x40f74c instanceof vt){const _0x522716=_0x1f919f['get'](_0x40f74c['root']['rootName']);_0xa35736[_0x100c20]=this['_fixRange'](_0x40f74c,_0x522716);}'root'===_0x100c20&&(_0xa35736['root']=_0x1f919f['get'](_0xa35736['root']['rootName']));}}['_fixRange'](_0x3f484a,_0x19781b){return this['editor']['model']['createRange'](this['_fixPosition'](_0x3f484a['start'],_0x19781b),this['_fixPosition'](_0x3f484a['end'],_0x19781b));}['_fixPosition'](_0x3262eb,_0x4a8c3d){return this['editor']['model']['createPositionFromPath'](_0x4a8c3d,_0x3262eb['path'],_0x3262eb['stickiness']);}['_handleInsertOperation'](_0x3dc00e){const _0x423f49=this['_idsRoots']['get'](_0x3dc00e['position']['root']['rootName']),_0x3ef126=this['_fixPosition'](_0x3dc00e['position'],_0x423f49),_0x3266f2=null===_0x3dc00e['_authorId']?null:_0x3dc00e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5b3ca7=_0x3ef126['parent'],_0x1d3f40=this['_revisionId'],_0x23083f=[];for(const _0x1fa0e0 of _0x3dc00e['nodes'])if(_0x1fa0e0['is']('element'))_0x23083f['push'](this['_makeIdsRoot'](_0x1fa0e0));else{for(let _0x5e1a12=0x0;_0x5e1a12<_0x1fa0e0['offsetSize'];_0x5e1a12++)_0x23083f['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x40d003=this['_revisionId'];for(let _0x38b232=_0x1d3f40;_0x38b232<_0x40d003;_0x38b232++)this['_touched']['set'](_0x38b232,{'userId':_0x3266f2});_0x5b3ca7['_insertChild'](_0x3ef126['offset'],_0x23083f);}['_handleMoveOperation'](_0x4d43e1){(_0x4d43e1=this['_cloneOperation'](_0x4d43e1,this['_idsRoots']))['_execute']();const _0x2ab2e4=null===_0x4d43e1['_authorId']?null:_0x4d43e1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4372cd=_0x4d43e1['getMovedRangeStart'](),_0x38e979=_0x4372cd['parent'],_0x235e6d=_0x4372cd['offset'];!function _0x55c175(_0x394813,_0x3c0ded,_0x1138e1,_0x362303){for(let _0x3b4c8d=_0x1138e1;_0x3b4c8d<_0x362303;_0x3b4c8d++){const _0xabc663=_0x3c0ded['getChild'](_0x3b4c8d);_0xabc663['is']('element','$text')?_0x394813['set'](_0xabc663['getAttribute']('vid'),{'userId':_0x2ab2e4}):(_0x394813['set'](_0xabc663['getAttribute']('vid_start'),{'userId':_0x2ab2e4}),_0x55c175(_0x394813,_0xabc663,0x0,_0xabc663['childCount']),_0x394813['set'](_0xabc663['getAttribute']('vid_end'),{'userId':_0x2ab2e4}));}}(this['_touched'],_0x38e979,_0x235e6d,_0x235e6d+_0x4d43e1['howMany']);}['_handleMergeOperation'](_0x5e5816){const _0x71f584=null===(_0x5e5816=this['_cloneOperation'](_0x5e5816,this['_idsRoots']))['_authorId']?null:_0x5e5816['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x33ec93=_0x5e5816['targetPosition']['parent'],_0x5a1dbf=_0x5e5816['sourcePosition']['parent'],_0x322da3=_0x33ec93['getAttribute']('vid_end'),_0x57a509=_0x5a1dbf['getAttribute']('vid_start');_0x33ec93['_setAttribute']('vid_end',_0x5a1dbf['getAttribute']('vid_end')),_0x5a1dbf['_setAttribute']('vid_end',_0x322da3),this['_touched']['set'](_0x57a509,{'userId':_0x71f584}),this['_touched']['set'](_0x322da3,{'userId':_0x71f584}),_0x5e5816['_execute']();}['_handleSplitOperation'](_0x1b774f){const _0x499b5a=null===(_0x1b774f=this['_cloneOperation'](_0x1b774f,this['_idsRoots']))['_authorId']?null:_0x1b774f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x778dac=_0x1b774f['graveyardPosition'],_0x41cfc9=_0x1b774f['splitPosition']['parent'];_0x1b774f['_execute']();const _0x3683e0=_0x41cfc9['getAttribute']('vid_end'),_0x565353=_0x1b774f['insertionPosition']['nodeAfter'];if(_0x778dac){const _0x6c454b=_0x565353['getAttribute']('vid_end'),_0x17ef1c=_0x41cfc9['getAttribute']('vid_end');_0x41cfc9['_setAttribute']('vid_end',_0x6c454b),_0x565353['_setAttribute']('vid_end',_0x17ef1c),this['_touched']['set'](_0x41cfc9['getAttribute']('vid_end'),{'userId':_0x499b5a}),this['_touched']['set'](_0x565353['getAttribute']('vid_start'),{'userId':_0x499b5a});}else{const _0x32805d=this['_revisionId']++,_0x11dcf7=this['_revisionId']++;_0x41cfc9['_setAttribute']('vid_end',_0x32805d),_0x565353['_setAttribute']('vid_start',_0x11dcf7),_0x565353['_setAttribute']('vid_end',_0x3683e0),this['_touched']['set'](_0x32805d,{'userId':_0x499b5a}),this['_touched']['set'](_0x11dcf7,{'userId':_0x499b5a});}}['_handleMarkerOperation'](_0xdc3029){if(!_0xdc3029['affectsData'])return;const _0x511737=(_0xdc3029=this['_cloneOperation'](_0xdc3029,this['_diffRoots']))['oldRange']?_0xdc3029['oldRange']['root']:null,_0x306e60=_0xdc3029['newRange']?_0xdc3029['newRange']['root']:null;_0x511737&&this['_markers']['delete'](_0xdc3029['name']),_0x306e60&&this['_markers']['set'](_0xdc3029['name'],_0xdc3029['newRange']['clone']());const _0x3f51d5=null===_0xdc3029['_authorId']?null:_0xdc3029['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x149b0b=_0xdc3029['name'];if(!this['_touchedMarkers']['has'](_0x149b0b))return void this['_touchedMarkers']['set'](_0x149b0b,{'range':_0xdc3029['oldRange'],'userId':_0x3f51d5});const _0x23526e=this['_touchedMarkers']['get'](_0x149b0b),_0xf5ac37=_0x23526e['range'],_0x1f67a2=_0xdc3029['newRange'];null==_0xf5ac37&&null==_0x1f67a2||_0xf5ac37&&_0x1f67a2&&_0xf5ac37['isEqual'](_0x1f67a2)?this['_touchedMarkers']['delete'](_0xdc3029['name']):_0x23526e['userId']=_0x3f51d5;}['_handleRootOperation'](_0xc99a9a,_0x3a5c5d){this['_diffRoots']['has'](_0xc99a9a['rootName'])?this['_diffRoots']['get'](_0xc99a9a['rootName'])['_isAttached']=_0xc99a9a['isAdd']:(this['_diffRoots']['set'](_0xc99a9a['rootName'],B(_0xc99a9a['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0xc99a9a['rootName'],{}),_0x3a5c5d&&this['_idsRoots']['set'](_0xc99a9a['rootName'],B(_0xc99a9a['rootName'],!0x0)));const _0x4c2353=null===_0xc99a9a['_authorId']?null:_0xc99a9a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4ca22a=this['_touchedRoots']['get'](_0xc99a9a['rootName']);_0x4ca22a&&_0x4ca22a['userId']===_0x4c2353?this['_touchedRoots']['delete'](_0xc99a9a['rootName']):this['_touchedRoots']['set'](_0xc99a9a['rootName'],{'userId':_0x4c2353,'isAttached':_0xc99a9a['isAdd']});}['_handleRootAttributeOperation'](_0x223d97){const _0x45cd2d=this['_diffRootsAttributes']['get'](_0x223d97['root']['rootName']);null===_0x223d97['newValue']?delete _0x45cd2d[_0x223d97['key']]:_0x45cd2d[_0x223d97['key']]=_0x223d97['newValue'];}}function F(_0x1d8bc7){const _0x5afdfb=B(_0x1d8bc7['rootName'],_0x1d8bc7['isAttached']());for(const _0x193313 of _0x1d8bc7['getChildren']()){const _0x1357de=_0x193313['_clone'](!0x0);_0x5afdfb['_appendChild'](_0x1357de);}return _0x5afdfb;}function B(_0xf06948,_0x273877=!0x0){const _0x22528c=new wt();return _0x22528c['rootName']=_0xf06948,_0x22528c['_isAttached']=_0x273877,_0x22528c['isAttached']=()=>_0x22528c['_isAttached'],_0x22528c;}function J(_0x30dc22,_0xc827cc,_0x1d9ec5){const _0x5e63a3='elementEnd'==_0x30dc22['type']?_0x1d9ec5['createPositionAt'](_0x30dc22['item'],'end'):_0x1d9ec5['createPositionBefore'](_0x30dc22['item']);return _0x1d9ec5['createPositionFromPath'](_0xc827cc,_0x5e63a3['path'],_0x5e63a3['stickiness']);}function q(_0x3cbbc6,_0x347f68,_0x4d40e0){const _0x45c51e='elementStart'==_0x3cbbc6['type']?_0x4d40e0['createPositionAt'](_0x3cbbc6['item'],0x0):_0x4d40e0['createPositionAfter'](_0x3cbbc6['item']);return _0x4d40e0['createPositionFromPath'](_0x347f68,_0x45c51e['path'],_0x45c51e['stickiness']);}class hs extends _0x297fcf{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x344213,_0x4ba9b4){super(_0x344213),this['focusTracker']=new _0x3704e2(),this['keystrokes']=new _0x179f65(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x4ba9b4),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'](),_0x4790e8({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x39b447=_0x5ddc5f=>_0x5ddc5f['stopPropagation']();this['keystrokes']['set']('arrowright',_0x39b447),this['keystrokes']['set']('arrowleft',_0x39b447),this['keystrokes']['set']('arrowup',_0x39b447),this['keystrokes']['set']('arrowdown',_0x39b447);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x33638a){this['revisionNameInputView']['fieldView']['element']['value']=_0x33638a['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x13400d){const _0x1b2a26=new at(this['locale'],_0x2be08e),_0x7ed3c0=_0x1b2a26['fieldView'];_0x7ed3c0['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x4dc98e=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x13400d&&(_0x4dc98e+='\x20('+R(this['locale'],'optional')+')'),(_0x1b2a26['label']=_0x4dc98e,_0x7ed3c0['on']('input',()=>{this['revisionNameInputValue']=_0x7ed3c0['element']['value']['trim']();}),_0x1b2a26);}}class u extends _0x434fd7{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x1e72e1=this['editor'],_0x42ca12=_0x1e72e1['plugins']['get']('RevisionTracker');_0x1e72e1['ui']['componentFactory']['add']('revisionHistory',_0x2f7398=>{const _0x5c6083=_0x327471(_0x2f7398),_0x16236a=_0x5c6083['panelView']['children'],_0x1969db=new _0x56690b(_0x2f7398),_0x431b18=new _0x902890(_0x2f7398),_0x1ac5fc=new _0x2456b5(_0x2f7398),_0x9edbc3=new _0x902890(_0x2f7398),_0x74df67=new _0x2456b5(_0x2f7398);return _0x5c6083['bind']('isEnabled')['to'](_0x42ca12,'isReady',_0x42ca12,'isEnabled',_0x1e72e1,'isReadOnly',(_0x12d8fe,_0x2c23a4,_0x4f0cc0)=>_0x12d8fe&&_0x2c23a4&&!_0x4f0cc0),_0x5c6083['buttonView']['set']({'icon':_0x3495e1['history'],'label':R(_0x2f7398,'Revision\x20history'),'tooltip':!0x0}),_0x1ac5fc['set']({'label':R(_0x2f7398,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x1ac5fc['bind']('isEnabled')['to'](_0x42ca12,'isReady',_0x42ca12,'isEnabled',_0x1e72e1,'isReadOnly',(_0x47e6ae,_0x145861,_0x4098ae)=>_0x47e6ae&&_0x145861&&!_0x4098ae),_0x1ac5fc['on']('execute',()=>this['_showDialog']()),_0x74df67['set']({'label':R(_0x2f7398,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x74df67['bind']('isEnabled')['to'](_0x42ca12,'isReady',_0x1e72e1,'isReadOnly',(_0xbf02a4,_0x339d4f)=>_0xbf02a4&&!_0x339d4f),_0x74df67['on']('execute',()=>{_0x1e72e1['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x5c6083['isOpen']=!0x1,_0x1e72e1['editing']['view']['focus']();}),_0x431b18['children']['add'](_0x1ac5fc),_0x9edbc3['children']['add'](_0x74df67),_0x1969db['role']='menu',_0x1969db['items']['addMany']([_0x431b18,_0x9edbc3]),_0x16236a['add'](_0x1969db),_0x5c6083;}),_0x1e72e1['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x3aaa7d=this['editor'],_0x2a4353=_0x3aaa7d['locale'],_0x366b6d=new _0x510d82(_0x2a4353),_0x176411=new _0x15361d(_0x2a4353);_0x366b6d['buttonView']['set']({'icon':_0x3495e1['history'],'label':R(_0x2a4353,'Revision\x20history')});const _0x21bba2=new _0x4e9c93(_0x2a4353,_0x366b6d),_0x8935bc=new _0x4c5f6c(_0x2a4353);_0x8935bc['set']({'label':R(_0x2a4353,'Save\x20current\x20revision')}),_0x8935bc['delegate']('execute')['to'](_0x366b6d),_0x8935bc['on']('execute',()=>{this['_showDialog']();}),_0x21bba2['children']['add'](_0x8935bc),_0x176411['items']['add'](_0x21bba2);const _0x16b168=new _0x4e9c93(_0x2a4353,_0x366b6d),_0x5c6388=new _0x4c5f6c(_0x2a4353);return _0x5c6388['set']({'label':R(_0x2a4353,'Open\x20revision\x20history')}),_0x5c6388['delegate']('execute')['to'](_0x366b6d),_0x5c6388['on']('execute',()=>{_0x3aaa7d['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x16b168['children']['add'](_0x5c6388),_0x176411['items']['add'](_0x16b168),_0x366b6d['panelView']['children']['add'](_0x176411),_0x366b6d;}['_showDialog'](){const _0x138d82=this['editor'],_0x4a1163=_0x138d82['locale'],_0x1b89a6=_0x138d82['plugins']['get']('Dialog'),_0x161661=_0x138d82['plugins']['get']('RevisionTracker');function _0x5c5eea(_0x2bae41){_0x138d82['config']['get']('revisionHistory.requireRevisionName')&&''===_0x2bae41['revisionName']?_0x2bae41['revisionNameInputView']['errorText']=R(_0x4a1163,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x138d82['plugins']['get'](l)['saveRevision']({'name':_0x2bae41['revisionName']}),_0x1b89a6['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x5c5eea(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x1b89a6['show']({'id':'revisionSave','title':R(_0x4a1163,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x138d82['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x1b89a6['hide']()},{'label':R(_0x138d82['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x3446e5){_0x3446e5['bind']('isEnabled')['to'](_0x161661,'isReady',_0x161661,'isEnabled',_0x138d82,'isReadOnly',(_0x12ed97,_0xd8d37b,_0x402489)=>_0x12ed97&&_0xd8d37b&&!_0x402489);},'onExecute':()=>_0x5c5eea(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x5c6902=this['editor'],_0x473284=_0x5c6902['locale'];this['_saveRevisionFormView']=new hs(_0x473284,_0x5c6902['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends _0x297fcf{['changeId'];['_model'];constructor(_0x522be7,_0x57f923){super(_0x522be7),this['_model']=_0x57f923,this['changeId']=_0x57f923['id'];const _0x201f30=this['bindTemplate'],_0x19df09=R(_0x522be7,_0x57f923['data']['isSuggestion']?'Suggested\x20by':'add'==_0x57f923['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x57f923['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x201f30['to']('type',_0x271306=>'ck-revision-change__'+_0x271306)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x19df09}]},{'text':'\x20'+_0x57f923['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x88e50a(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0xf559b8){super(),this['id']=_0xf559b8['id']||_0x4c02ac(),this['author']=_0xf559b8['author'],this['type']=_0xf559b8['type'],this['data']=_0xf559b8['data']||{},this['rootName']=_0xf559b8['rootName'],this['set']('createdAt',_0xf559b8['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(_0x3f8699,_0x1c5a47){this['newRevisionId']=_0x3f8699,this['oldRevisionId']=_0x1c5a47,this['changes']=new _0x2d1bb4();}['_setChanges'](_0x41ce32){for(const _0x25de89 of _0x41ce32)this['changes']['add'](_0x25de89);}}const Z={'c':_0x35cc28,'a':_0x154fa8,'e':_0x511d98,'r':_0x192dd9,'u':_0x181875};class d extends _0x434fd7{['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[_0x1124cd,_0x323519,j];}constructor(_0x3aae68){super(_0x3aae68),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',(_0x130d18,_0x2e5005,_0x511f03)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x4b23db=>{for(const _0x38874b of this['editor']['editing']['view']['document']['roots'])_0x511f03?_0x4b23db['removeClass']('ck-editor__editable__overlay',_0x38874b):_0x4b23db['addClass']('ck-editor__editable__overlay',_0x38874b);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x279192=>null!==_0x279192),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x2e0d45,_0x10a81a,_0x208514)=>_0x2e0d45&&_0x208514?_0x10a81a['changes']['getIndex'](_0x208514):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x148179,_0x44dd11)=>_0x148179?_0x44dd11['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x323519);}['init'](){const _0x12b9d4=this['editor'],_0x102288=new bt(_0x12b9d4,{'direction':'backward'}),_0xa29139=new bt(_0x12b9d4,{'direction':'forward'});(_0x12b9d4['commands']['add']('showPreviousChange',_0x102288),_0x12b9d4['commands']['add']('showNextChange',_0xa29139),_0x12b9d4['commands']['add']('restoreRevision',new yt(_0x12b9d4)),this['on']('change:numberOfChanges',()=>{_0x102288['refresh'](),_0xa29139['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x12b9d4['enableReadOnlyMode']('revision-viewer'),_0x12b9d4['plugins']['has']('WidgetToolbarRepository'))&&_0x12b9d4['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x524dc8){await this['loadRevisionData'](_0x524dc8);const _0x39d90e={};for(const _0x49310e in _0x524dc8['diffData']){if(_0x524dc8['diffData'][_0x49310e]['attachChange']&&!_0x524dc8['diffData'][_0x49310e]['attachChange']['isAttached'])continue;const _0x58cfa4=this['_removeRevisionMarkers'](JSON['parse'](_0x524dc8['diffData'][_0x49310e]['insertions'])),_0x35665c=this['editor']['editing']['view']['document'],_0x6960fc=new _0x5b1c52(_0x35665c,_0x58cfa4['map'](_0x47de0f=>this['_getViewObj'](_0x47de0f)));this['editor']['data']['processor']['useFillerType']('marked'),_0x39d90e[_0x49310e]=this['editor']['data']['processor']['toData'](_0x6960fc),this['editor']['data']['processor']['useFillerType']('default');}return _0x39d90e;}async['getRevisionRootsAttributes'](_0x3eaf6a){await this['loadRevisionData'](_0x3eaf6a);const _0x59d74b={};for(const _0x16b2c0 in _0x3eaf6a['diffData'])_0x3eaf6a['diffData'][_0x16b2c0]['attachChange']&&!_0x3eaf6a['diffData'][_0x16b2c0]['attachChange']['isAttached']||(_0x59d74b[_0x16b2c0]=_0x3eaf6a['diffData'][_0x16b2c0]['attributesAfter']||{});return _0x59d74b;}['_removeRevisionMarkers'](_0xfe127f){return(_0xfe127f=_0xfe127f['filter'](_0x28e83e=>!_0x28e83e['name']||'revision-start'!==_0x28e83e['name']&&'revision-end'!==_0x28e83e['name']))['forEach'](_0x139878=>{'string'!=typeof _0x139878&&(_0x139878['children']=this['_removeRevisionMarkers'](_0x139878['children']),_0x139878['attributes']=_0x139878['attributes']['filter'](_0x3c4af6=>!_0x3c4af6[0x0]['startsWith']('data-revision-')));}),_0xfe127f;}async['compare'](_0x26d334,_0x4a688f,_0x251c29=!0x1){if(!this['isEnabled'])return;const _0x56bf34=this['diff'],_0x471d59=this['repository'],_0x4b4c23='string'==typeof _0x26d334?_0x471d59['getRevision'](_0x26d334):_0x26d334,_0x21f2af='string'==typeof _0x4a688f?_0x471d59['getRevision'](_0x4a688f):_0x4a688f,_0x3ba124=_0x4b4c23['id'],_0x24228=_0x21f2af?_0x21f2af['id']:null;if(!_0x251c29&&this['diff']&&this['diff']['newRevisionId']===_0x3ba124&&this['diff']['oldRevisionId']===_0x24228)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x3ba124,_0x24228);const _0x27a236=this['_getRevisionsRange'](_0x4b4c23,_0x21f2af,!0x0)['map'](_0x2ed5e5=>this['loadRevisionData'](_0x2ed5e5));return _0x27a236['push'](new Promise(_0x38702a=>{setTimeout(_0x38702a,0x14);})),Promise['all'](_0x27a236)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x7f340a=this['_getDiff'](_0x3ba124,_0x24228);for(const _0x448ac6 of _0x7f340a['changes'])this['_changeIdToChange']['set'](_0x448ac6['id'],_0x448ac6);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x17fcc7=>{for(const _0x243690 of this['editor']['model']['document']['getRootNames']())_0x17fcc7['detachRoot'](_0x243690);for(const _0x3720cb of Object['keys'](_0x7f340a['model'])){const _0x56befb=_0x17fcc7['addRoot'](_0x3720cb);for(const _0x273a18 of Object['keys'](_0x7f340a['attributes'][_0x3720cb]))_0x17fcc7['setAttribute'](_0x273a18,_0x7f340a['attributes'][_0x3720cb][_0x273a18],_0x56befb);_0x17fcc7['insert'](_0x7f340a['model'][_0x3720cb],_0x56befb,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x7f340a['changes'])),this['isReady']=!0x0;})['catch'](_0x823edf=>{console['error'](_0x823edf),this['_cleanUp'](),_0x56bf34&&(this['diff']=_0x56bf34),this['isReady']=!0x0;});}['addRevisionData'](_0x45e79b,_0x3aea95){const _0x459fa8=this['repository']['createRevision'](_0x45e79b);return _0x459fa8['on']('_update',(_0xdc1d51,_0x593219,_0x59feb0)=>_0x3aea95(_0x593219,_0x59feb0,_0x459fa8)),this['repository']['addRevision'](_0x459fa8),_0x459fa8;}['loadRevisionData'](_0x1f30f1){if(!_0x1f30f1||_0x1f30f1['diffData'])return Promise['resolve']();{const _0x900d31=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x900d31,'revisionId':_0x1f30f1['id']})['then'](_0x5272f4=>{_0x1f30f1['_update']({'diffData':_0x5272f4['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},_0x328493=>{for(const _0x477f1f of this['editor']['model']['document']['getRootNames']())_0x328493['detachRoot'](_0x477f1f);});}['_sortAndFilterDiffChanges'](_0x20db4e){const _0x32dbed=[],_0x288750=new Map();for(const _0x3269fd of this['editor']['model']['document']['getRootNames']()){const _0x5cf8bb=this['editor']['editing']['view']['getDomRoot'](_0x3269fd);if(!_0x5cf8bb)continue;const _0x186068=_0x5cf8bb['getClientRects']()['item'](0x0);_0x186068&&(_0x32dbed['push'](_0x3269fd),_0x288750['set'](_0x3269fd,_0x186068));}return _0x32dbed['sort']((_0x15fa43,_0x51896c)=>{const _0x4185f2=_0x288750['get'](_0x15fa43),_0x521cdc=_0x288750['get'](_0x51896c);return _0x4185f2['y']-_0x521cdc['y']||_0x4185f2['x']-_0x521cdc['x'];}),(_0x20db4e=_0x20db4e['filter'](_0xb07c5a=>_0x32dbed['includes'](_0xb07c5a['rootName'])))['sort']((_0x10b887,_0x4c882c)=>_0x32dbed['indexOf'](_0x10b887['rootName'])-_0x32dbed['indexOf'](_0x4c882c['rootName'])),_0x20db4e;}['_makeTape'](_0x26a9af){const _0x1363d5=Array['from'](_0x26a9af['markers'])['filter'](([_0x551589,_0x2b5130])=>_0x551589['startsWith']('revision:')&&!_0x2b5130['isCollapsed']),_0x5cf068=Array['from'](this['editor']['model']['createRangeIn'](_0x26a9af)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x1363d5['length'])for(const _0x5c4054 of _0x5cf068){const [_0x3663d7,_0x17efc6]=_0x1363d5[0x0],[,_0x5f258e,_0x1b5921]=_0x3663d7['split'](':');if(_0x17efc6['end']['isEqual'](_0x5c4054['nextPosition'])&&_0x1363d5['shift'](),(_0x5c4054['previousPosition']['isEqual'](_0x17efc6['start'])||_0x5c4054['previousPosition']['isAfter'](_0x17efc6['start']))&&('insertion'==_0x5f258e?_0x5c4054['isAdded']={'userId':_0x1b5921}:'deletion'==_0x5f258e&&(_0x5c4054['isRemoved']={'userId':_0x1b5921})),0x0==_0x1363d5['length'])break;}return _0x5cf068;}['_refreshStartEndIndex'](_0x691a48){const _0x5cd4ed=new Map();for(let _0x52016f=0x0;_0x52016f<_0x691a48['length'];_0x52016f++)'text'===_0x691a48[_0x52016f]['type']?(_0x691a48[_0x52016f]['item']['startIndex']=_0x52016f,_0x691a48[_0x52016f]['item']['endIndex']=_0x52016f):('elementStart'===_0x691a48[_0x52016f]['type']?_0x691a48[_0x52016f]['item']['startIndex']=_0x52016f:'elementEnd'===_0x691a48[_0x52016f]['type']&&(_0x691a48[_0x52016f]['item']['endIndex']=_0x52016f),_0x5cd4ed['set'](_0x691a48[_0x52016f]['id'],_0x52016f));for(const _0x92315f of _0x5cd4ed['values']())'elementStart'===_0x691a48[_0x92315f]['type']?_0x691a48[_0x92315f]['item']['endIndex']=_0x5cd4ed['get'](_0x691a48[_0x92315f]['pairId']):'elementEnd'===_0x691a48[_0x92315f]['type']&&(_0x691a48[_0x92315f]['item']['startIndex']=_0x5cd4ed['get'](_0x691a48[_0x92315f]['pairId']));}['_processTape'](_0x557a55){for(let _0x40cd5f=0x0;_0x40cd5f<_0x557a55['length'];_0x40cd5f++){if('elementStart'===_0x557a55[_0x40cd5f]['type'])_0x557a55[_0x40cd5f]['item']['startIndex']=_0x40cd5f;else{if('elementEnd'===_0x557a55[_0x40cd5f]['type']){_0x557a55[_0x40cd5f]['item']['endIndex']=_0x40cd5f;const _0x399c63=_0x557a55[_0x40cd5f]['item']['startIndex'];_0x557a55[_0x399c63]['pairId']=_0x557a55[_0x40cd5f]['id'],_0x557a55[_0x40cd5f]['pairId']=_0x557a55[_0x399c63]['id'];}else _0x557a55[_0x40cd5f]['item']['startIndex']=_0x40cd5f,_0x557a55[_0x40cd5f]['item']['endIndex']=_0x40cd5f,_0x557a55[_0x40cd5f]['pairId']=null;}_0x557a55[_0x40cd5f]['markersStart']||(_0x557a55[_0x40cd5f]['markersStart']=[],_0x557a55[_0x40cd5f]['markersEnd']=[]);}}['_markInsertions'](_0x5f47a3,_0x5f4cba){const _0x17ec36=_0x5f47a3['filter'](_0x4bed9d=>!_0x4bed9d['isAdded']);for(let _0xf8b2df=0x0;_0xf8b2df<_0x5f4cba['length'];_0xf8b2df++)_0x5f4cba[_0xf8b2df]['isAdded']&&(_0x17ec36[_0xf8b2df]['isAdded']=_0x5f4cba[_0xf8b2df]['isAdded']);}['_makeModelFromViewString'](_0x35e045){const _0x3ef42b=JSON['parse'](_0x35e045),_0xbf2cdb=this['editor']['editing']['view']['document'],_0x1bb908=new _0x5b1c52(_0xbf2cdb,_0x3ef42b['map'](_0x2feb12=>this['_getViewObj'](_0x2feb12)));return this['editor']['data']['toModel'](_0x1bb908);}['_getViewObj'](_0x2455db){const _0x2da929=this['editor']['editing']['view']['document'];if('string'==typeof _0x2455db)return new _0x441a0d(_0x2da929,_0x2455db);{const _0x545a0d=_0x2455db['children']['map'](_0x586a58=>this['_getViewObj'](_0x586a58));return new(Z[_0x2455db['type']]||_0x4e6782)(_0x2da929,_0x2455db['name'],_0x2455db['attributes'],_0x545a0d);}}['_getDiff'](_0x2f4186,_0x61049=null){const _0x21d698=this['repository']['getRevision'](_0x2f4186),_0x4cb685=_0x61049?this['repository']['getRevision'](_0x61049):null,_0x2812b4=this['_getRevisionsRange'](_0x21d698,_0x4cb685),_0x284464=_0x2812b4[_0x2812b4['length']-0x1],_0x3560b1=new Map(),_0x24869d={'model':{},'attributes':{},'changes':[]},_0x8f03e=new Set(),_0x502e62=new Map();for(let _0x5edc02=_0x2812b4['length']-0x1;_0x5edc02>=0x0;_0x5edc02--){const _0x2175c3=_0x2812b4[_0x5edc02];for(const _0xda6a49 of Object['keys'](_0x2175c3['diffData']))if(_0x2175c3['diffData'][_0xda6a49]['attachChange']){const _0x54e449=_0x2175c3['diffData'][_0xda6a49]['attachChange'];_0x54e449['isAttached']?(_0x8f03e['add'](_0xda6a49),_0x502e62['has'](_0xda6a49)&&_0x502e62['get'](_0xda6a49)['userId']==_0x54e449['userId']?_0x502e62['delete'](_0xda6a49):_0x502e62['set'](_0xda6a49,_0x54e449)):_0x502e62['has'](_0xda6a49)?(_0x8f03e['delete'](_0xda6a49),_0x502e62['delete'](_0xda6a49)):(_0x8f03e['add'](_0xda6a49),_0x502e62['set'](_0xda6a49,_0x54e449));}else _0x8f03e['add'](_0xda6a49);}for(const _0x29dca0 of _0x8f03e){const _0x294093=_0x502e62['has'](_0x29dca0)&&!_0x502e62['get'](_0x29dca0)['isAttached'];let _0x3921b1=_0x294093?_0x2812b4['length']-0x1:0x0;const _0x128d67=_0x294093?-0x1:0x1;for(;_0x2812b4[_0x3921b1];){const _0x241629=_0x2812b4[_0x3921b1];if(_0x241629['diffData'][_0x29dca0]){const _0x5ded34=_0x294093?_0x241629['diffData'][_0x29dca0]['attributesBefore']:_0x241629['diffData'][_0x29dca0]['attributesAfter'];_0x24869d['attributes'][_0x29dca0]=_0x5ded34?_0x3e8ae0(_0x5ded34):{};break;}_0x3921b1+=_0x128d67;}}for(const _0x36e7f of _0x2812b4){_0x36e7f['model']={};for(const _0x1797e0 of _0x36e7f['authors'])_0x3560b1['set'](_0x1797e0['id'],_0x1797e0);for(const _0x2cb052 of _0x8f03e){const _0x27a69d=_0x36e7f['diffData'][_0x2cb052]?_0x36e7f['diffData'][_0x2cb052]['insertions']:'[]',_0x3c76b6=_0x36e7f['diffData'][_0x2cb052]?_0x36e7f['diffData'][_0x2cb052]['deletions']:'[]';_0x36e7f['model'][_0x2cb052]={'insertions':this['_makeModelFromViewString'](_0x27a69d),'deletions':this['_makeModelFromViewString'](_0x3c76b6)};}}for(const _0x5eea78 of _0x8f03e){let _0x37a6bd=null,_0x4b7e54=0x0;const _0x48de4c=new Map(Array['from'](_0x21d698['model'][_0x5eea78]['insertions']['markers'])['filter'](([_0xbfa303])=>!_0xbfa303['startsWith']('revision:')));let _0x3126f3=0x0;for(const _0x230452 of _0x2812b4){const _0xc20dde=this['_makeTape'](_0x230452['model'][_0x5eea78]['insertions']);_0x230452==_0x21d698?(_0x37a6bd=_0xc20dde,_0x4b7e54=_0x37a6bd['length'],_0x37a6bd['forEach'](_0x26f732=>{_0x26f732['id']=_0x3126f3++;}),this['_processTape'](_0x37a6bd)):this['_markInsertions'](_0x37a6bd,_0xc20dde);const _0x7dc280=_0x37a6bd['filter'](_0x784170=>!_0x784170['isAdded'])['map'](_0xb4c0c=>_0xb4c0c['id']);let _0x56560e=0x0;const _0x281e31=this['_makeTape'](_0x230452['model'][_0x5eea78]['deletions']);_0x281e31['forEach'](_0x57276b=>{_0x57276b['isRemoved']?_0x57276b['id']=_0x4b7e54++:_0x57276b['id']=_0x7dc280[_0x56560e++];}),this['_processTape'](_0x281e31),this['_setDistance'](_0x37a6bd,'isAdded'),this['_setDistance'](_0x281e31,'isRemoved'),_0x230452==_0x21d698&&this['_markMarkers'](_0x37a6bd,_0x48de4c),_0x37a6bd=this['_joinTapes'](_0x37a6bd,_0x281e31),this['_refreshStartEndIndex'](_0x37a6bd),this['_setDistance'](_0x37a6bd,'isRemoved');}_0x37a6bd=_0x37a6bd['filter'](_0x5ad525=>!(_0x5ad525['isAdded']&&_0x5ad525['isRemoved']));const _0x1d4106=new Map(_0x284464['model'][_0x5eea78]['deletions']['markers']),_0x491687=new Set(_0x48de4c['keys']());for(const _0x13728f of _0x1d4106['keys']())_0x491687['delete'](_0x13728f);this['_markSuggestions'](_0x37a6bd,_0x491687),this['_fixObsoleteTags'](_0x37a6bd),_0x37a6bd=this['_removeMissingPairs'](_0x37a6bd),_0x37a6bd=this['_markMismatchedRemovedTags'](_0x37a6bd),_0x37a6bd=this['_removeUnsupportedChanges'](_0x37a6bd);const {root:_0xc6f4c0,changes:_0x22d7aa}=this['_makeModelFromTape'](_0x37a6bd,_0x3560b1,_0x5eea78);_0x24869d['model'][_0x5eea78]=_0xc6f4c0;const _0x297285=_0x502e62['get'](_0x5eea78);if(_0x297285){const _0xb37235=_0x3560b1['get'](_0x297285['userId']),_0x3d5f48=new r({'author':_0xb37235,'type':_0x297285['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5eea78});_0x22d7aa['unshift'](_0x3d5f48),_0x24869d['attributes'][_0x5eea78]['revisionHistoryAttachChange']=_0x3d5f48['id'];}_0x24869d['changes']=_0x24869d['changes']['concat'](_0x22d7aa);}return _0x24869d;}['_markMarkers'](_0x265a63,_0x14f7dd){for(let _0x310dd0=0x0;_0x310dd0<_0x265a63['length'];_0x310dd0++)for(const [_0x4a1a8c,_0x56e8be]of _0x14f7dd)_0x56e8be['start']['isEqual'](_0x265a63[_0x310dd0]['previousPosition'])&&_0x265a63[_0x310dd0]['markersStart']['push'](_0x4a1a8c),_0x56e8be['end']['isEqual'](_0x265a63[_0x310dd0]['nextPosition'])&&_0x265a63[_0x310dd0]['markersEnd']['push'](_0x4a1a8c);}['_joinTapes'](_0x244ae8,_0x25cf80){let _0x3dfc5a=[],_0x4a699c=0x0,_0x19b689=0x0;for(;_0x4a699c<_0x244ae8['length']||_0x19b689<_0x25cf80['length'];){const _0x15b9d1=_0x244ae8[_0x4a699c]||{},_0x40b030=_0x25cf80[_0x19b689]||{};if(_0x15b9d1['id']==_0x40b030['id'])_0x4a699c++,_0x19b689++,_0x3dfc5a['push'](_0x15b9d1);else{if(_0x40b030['isRemoved']&&_0x15b9d1['isAdded']){const {commonTape:_0x3c4adf,iEnd:_0x2262e8,jEnd:_0x5c5796}=this['_threeWayMerge'](_0x244ae8,_0x4a699c,_0x25cf80,_0x19b689);_0x3dfc5a=_0x3dfc5a['concat'](_0x3c4adf),_0x4a699c=_0x2262e8,_0x19b689=_0x5c5796;}else _0x40b030['isRemoved']?(_0x19b689++,_0x3dfc5a['push'](_0x40b030)):(_0x4a699c++,_0x3dfc5a['push'](_0x15b9d1));}}return _0x3dfc5a;}['_markSuggestions'](_0x1f4e70,_0x16e88a){const _0x16b93d=[];for(let _0x114869=0x0;_0x114869<_0x1f4e70['length'];_0x114869++){for(let _0x365e6b=0x0;_0x365e6b<_0x1f4e70[_0x114869]['markersStart']['length'];_0x365e6b++){const _0x1d6cfe=_0x1f4e70[_0x114869]['markersStart'][_0x365e6b];if(!_0x16e88a['has'](_0x1d6cfe))continue;const {group:_0x283d1e,type:_0x1eeb9f,authorId:_0x41177a}=_0x36e27d(_0x1d6cfe);'revision-suggestion'!=_0x283d1e||'insertion'!=_0x1eeb9f&&'deletion'!=_0x1eeb9f||(_0x16b93d['unshift']({'type':_0x1eeb9f,'name':_0x1d6cfe,'userId':_0x41177a}),_0x1f4e70[_0x114869]['markersStart']['splice'](_0x365e6b,0x1),_0x365e6b--);}_0x36da83(_0x1f4e70[_0x114869]);for(let _0x1a0c0d=0x0;_0x1a0c0d<_0x1f4e70[_0x114869]['markersEnd']['length'];_0x1a0c0d++){const _0x537031=_0x1f4e70[_0x114869]['markersEnd'][_0x1a0c0d];if(!_0x16e88a['has'](_0x537031))continue;const {group:_0x139228,type:_0x8511e1}=_0x36e27d(_0x537031);if('revision-suggestion'!=_0x139228||'insertion'!=_0x8511e1&&'deletion'!=_0x8511e1)continue;_0x1f4e70[_0x114869]['markersEnd']['splice'](_0x1a0c0d,0x1),_0x1a0c0d--;const _0x3daebc=_0x16b93d['findIndex'](_0x4674fe=>_0x4674fe['name']==_0x537031);_0x3daebc>-0x1&&_0x16b93d['splice'](_0x3daebc,0x1);}}function _0x36e27d(_0x5495e2){const _0x3a7634=_0x5495e2['split'](':');return{'group':_0x3a7634[0x0],'type':_0x3a7634[0x1],'subType':_0x3a7634['length']>=0x5?_0x3a7634[0x2]:null,'id':_0x3a7634['length']<0x5?_0x3a7634[0x2]:_0x3a7634[0x3],'authorId':_0x3a7634['length']<0x5?_0x3a7634[0x3]:_0x3a7634[0x4],'markerCount':0x6==_0x3a7634['length']?_0x3a7634[0x5]:null};}function _0x36da83(_0x34f70d){for(let _0x2c4bec=0x0;_0x2c4bec<_0x16b93d['length'];_0x2c4bec++){if(_0x34f70d['isAdded']&&'insertion'==_0x16b93d[_0x2c4bec]['type'])return _0x34f70d['isAddSuggestion']=_0x16b93d[_0x2c4bec],void delete _0x34f70d['isAdded'];if(!_0x34f70d['isAdded']&&!_0x34f70d['isRemoved']&&'deletion'==_0x16b93d[_0x2c4bec]['type'])return void(_0x34f70d['isRemoveSuggestion']=_0x16b93d[_0x2c4bec]);}}}['_setDistance'](_0x504ba5,_0x48986b){let _0x3428e4=0x0,_0x3c7fd7=!0x1;const _0xa5727a=new Map();for(const _0x43594e of _0x504ba5)_0x43594e[_0x48986b]?_0x3c7fd7&&(_0x3428e4++,_0x3c7fd7=!0x1):(_0x3428e4++,_0x3c7fd7=!0x0),_0xa5727a['set'](_0x43594e['id'],_0x3428e4);for(let _0x391030=0x0;_0x391030<_0x504ba5['length'];_0x391030++){if('isRemoved'==_0x48986b&&_0x504ba5[_0x391030]['isAdded']||'isAdded'==_0x48986b&&_0x504ba5[_0x391030]['isRemoved'])continue;if('text'==_0x504ba5[_0x391030]['type']){_0x504ba5[_0x391030]['distance']=0x0;continue;}const _0xab83bf=_0xa5727a['get'](_0x504ba5[_0x391030]['pairId']),_0x376944=_0xa5727a['get'](_0x504ba5[_0x391030]['id']);_0x504ba5[_0x391030]['distance']=_0xab83bf-_0x376944;}}['_getRevisionsRange'](_0x549ffb,_0x1f4199,_0x1f328d=!0x1){const _0x4e31d0=[];let _0x238a59=this['repository']['getIndex'](_0x549ffb),_0x1ae725=this['repository']['getIndex'](_0x1f4199);for(-0x1==_0x1ae725&&(_0x1ae725=this['repository']['_revisions']['length'],_0x1f328d=!0x1);_0x238a59<_0x1ae725;)_0x4e31d0['push'](this['repository']['getRevision'](_0x238a59)),_0x238a59++;return _0x1f328d&&_0x4e31d0['push'](this['repository']['getRevision'](_0x238a59)),_0x4e31d0;}['_threeWayMerge'](_0x3e6615,_0x436b9f,_0x21eeff,_0x2154e1){const _0x2a5f8b=this['editor']['model']['schema'];let _0x1cc706=_0x436b9f;for(;_0x3e6615[_0x1cc706]&&_0x3e6615[_0x1cc706]['isAdded'];)_0x1cc706++;let _0x1123a1=_0x2154e1;for(;_0x21eeff[_0x1123a1]&&_0x21eeff[_0x1123a1]['isRemoved'];)_0x1123a1++;_0x1fc3f9(_0x3e6615,_0x436b9f,_0x1cc706),_0x1fc3f9(_0x21eeff,_0x2154e1,_0x1123a1);const _0x18d0b1=_0x21eeff['slice'](_0x2154e1,_0x1123a1)['concat'](_0x3e6615['slice'](_0x436b9f,_0x1cc706));return _0x18d0b1['sort']((_0x24dd96,_0x135447)=>_0x24dd96['side']!=_0x135447['side']?_0x24dd96['side']-_0x135447['side']:_0x24dd96['level']!=_0x135447['level']?_0x24dd96['level']-_0x135447['level']:_0x24dd96['distance']!=_0x135447['distance']?_0x135447['distance']-_0x24dd96['distance']:!!_0x24dd96['isAdded']!=!!_0x135447['isAdded']?-0x1==_0x24dd96['side']||0x0==_0x24dd96['side']?_0x24dd96['isAdded']?-0x1:0x1:_0x24dd96['isAdded']?0x1:-0x1:_0x24dd96['index']-_0x135447['index']),{'commonTape':_0x18d0b1,'iEnd':_0x1cc706,'jEnd':_0x1123a1};function _0x1fc3f9(_0x33f958,_0x13e954,_0x48633b){let _0x5e1728=-0x1,_0x5d7e1c=Number['POSITIVE_INFINITY'],_0x513e1a=!0x0;for(let _0x1b89fe=_0x13e954;_0x1b89fe<_0x48633b;_0x1b89fe++)if(_0x2a5f8b['isInline'](_0x33f958[_0x1b89fe]['item'])||(_0x513e1a=!0x1),_0x33f958[_0x1b89fe]['item']['startIndex']<_0x13e954&&(_0x5e1728=_0x1b89fe),_0x33f958[_0x1b89fe]['item']['endIndex']>=_0x48633b){_0x5d7e1c=_0x1b89fe;break;}_0x513e1a&&(_0x5e1728=_0x48633b-0x1);for(let _0x4148c3=_0x13e954;_0x4148c3<_0x48633b;_0x4148c3++)_0x33f958[_0x4148c3]['side']=_0x4148c3<=_0x5e1728?-0x1:_0x4148c3<_0x5d7e1c?0x0:0x1,_0x33f958[_0x4148c3]['index']=_0x4148c3;let _0x276177=0x0;for(let _0x25d75d=_0x13e954;_0x25d75d<=_0x5e1728;_0x25d75d++)0x0==_0x33f958[_0x25d75d]['distance']?_0x33f958[_0x25d75d]['level']=_0x276177:(_0x276177++,_0x33f958[_0x25d75d]['level']=_0x276177,_0x276177++);for(let _0x3aeef9=_0x13e954;_0x3aeef9<_0x48633b;_0x3aeef9++)0x0==_0x33f958[_0x3aeef9]['side']&&(_0x33f958[_0x3aeef9]['level']=_0x276177);_0x276177=0x0;for(let _0x2ee99e=_0x48633b-0x1;_0x2ee99e>=_0x5d7e1c;_0x2ee99e--)0x0==_0x33f958[_0x2ee99e]['distance']?_0x33f958[_0x2ee99e]['level']=_0x276177:(_0x276177--,_0x33f958[_0x2ee99e]['level']=_0x276177,_0x276177--);}}['_fixObsoleteTags'](_0x3a5690){const _0x5b29ad=new Map(),_0x28e258=this['editor']['model']['schema'];for(let _0x1ae32e=0x1;_0x1ae32e<_0x3a5690['length'];_0x1ae32e++){let _0x1dc22a,_0x4447f8,_0x46d4fc;const _0x1e8de0=_0x3a5690[_0x1ae32e],_0x5dfac9=_0x3a5690[_0x1ae32e-0x1];if('text'==_0x1e8de0['type'])continue;if(_0x1e8de0['type']!=_0x5dfac9['type'])continue;if(!_0x28e258['isBlock'](_0x5dfac9['item'])||_0x28e258['isLimit'](_0x5dfac9['item']))continue;if(!_0x28e258['isBlock'](_0x1e8de0['item'])||_0x28e258['isLimit'](_0x1e8de0['item']))continue;if((_0x3a5690[_0x1ae32e]['isAdded']||_0x3a5690[_0x1ae32e]['isAddSuggestion'])&&_0x3a5690[_0x1ae32e-0x1]['isRemoved'])_0x1dc22a=_0x3a5690[_0x1ae32e],_0x4447f8=_0x3a5690[_0x1ae32e-0x1],_0x46d4fc=_0x1ae32e-0x1;else{if(!_0x3a5690[_0x1ae32e]['isRemoved']||!_0x3a5690[_0x1ae32e-0x1]['isAdded']&&!_0x3a5690[_0x1ae32e-0x1]['isAddSuggestion'])continue;_0x1dc22a=_0x3a5690[_0x1ae32e-0x1],_0x4447f8=_0x3a5690[_0x1ae32e],_0x46d4fc=_0x1ae32e;}const _0x5ed1f2=_0x1dc22a['level']==_0x4447f8['level'],_0xde8dd8=Math['abs'](_0x1dc22a['level'])<Math['abs'](_0x4447f8['level'])&&0x0==_0x4447f8['distance'];(_0x5ed1f2||_0xde8dd8)&&(_0x5b29ad['set'](_0x4447f8['id'],_0x1dc22a['id']),_0x3a5690['splice'](_0x46d4fc,0x1),_0x1ae32e--,_0x1dc22a['isAdded']=!0x1);}for(let _0x5c0047=0x0;_0x5c0047<_0x3a5690['length'];_0x5c0047++)_0x5b29ad['has'](_0x3a5690[_0x5c0047]['pairId'])&&(_0x3a5690[_0x5c0047]['pairId']=_0x5b29ad['get'](_0x3a5690[_0x5c0047]['pairId']));}['_removeMissingPairs'](_0x35fc74){const _0x3220e4=new Set(_0x35fc74['map'](_0x7c882a=>_0x7c882a['id']));for(let _0x37c6fe=0x0;_0x37c6fe<_0x35fc74['length'];_0x37c6fe++)_0x3220e4['has'](_0x35fc74[_0x37c6fe]['pairId'])||0x0==_0x35fc74[_0x37c6fe]['distance']||(_0x35fc74[_0x37c6fe]['isIncorrect']=!0x0);return _0x35fc74['filter'](_0x5ddc1d=>!_0x5ddc1d['isIncorrect']);}['_markMismatchedRemovedTags'](_0x440af2){const _0x266060=new Set();for(let _0x5ad2a1=0x0;_0x5ad2a1<_0x440af2['length'];_0x5ad2a1++){if(_0x266060['has'](_0x440af2[_0x5ad2a1]['id'])&&_0x440af2[_0x5ad2a1]['isRemoved']&&(_0x440af2[_0x5ad2a1]['isIncorrect']=!0x0),_0x440af2[_0x5ad2a1]['isIncorrect'])continue;if(0x0==_0x440af2[_0x5ad2a1]['distance'])continue;if('elementStart'!=_0x440af2[_0x5ad2a1]['type'])continue;if(null==_0x440af2[_0x5ad2a1]['pairId'])continue;let _0x5e2d47=_0x5ad2a1+0x1,_0xe7317f=0x0;for(;_0x440af2[_0x5e2d47]['id']!=_0x440af2[_0x5ad2a1]['pairId'];)'elementStart'==_0x440af2[_0x5e2d47]['type']?_0xe7317f++:'elementEnd'==_0x440af2[_0x5e2d47]['type']&&_0xe7317f--,_0x5e2d47++;if(0x0!=_0xe7317f){if(_0x440af2[_0x5ad2a1]['isRemoved'])_0x440af2[_0x5ad2a1]['isIncorrect']=!0x0;else{for(;_0x5e2d47!=_0x5ad2a1;)_0x440af2[_0x5e2d47]['isRemoved']&&0x0!=_0x440af2[_0x5e2d47]['distance']&&(_0x440af2[_0x5e2d47]['isIncorrect']=!0x0,_0x266060['add'](_0x440af2[_0x5e2d47]['pairId'])),_0x5e2d47--;}}}return _0x440af2['filter'](_0x39ed91=>!_0x39ed91['isIncorrect']);}['_removeUnsupportedChanges'](_0x4dbd45){const _0x31c6da=this['editor']['model']['schema'];for(let _0x50ee93=0x0;_0x50ee93<_0x4dbd45['length'];_0x50ee93++){if(!(_0x4dbd45[_0x50ee93]['isAdded']||_0x4dbd45[_0x50ee93]['isAddSuggestion']||_0x4dbd45[_0x50ee93]['isRemoved']||_0x4dbd45[_0x50ee93]['isRemoveSuggestion']))continue;if(0x0==_0x4dbd45[_0x50ee93]['distance'])continue;const _0x2dc76f=_0x4dbd45[_0x50ee93]['item'];_0x31c6da['isBlock'](_0x2dc76f)||_0x31c6da['isLimit'](_0x2dc76f)||(_0x4dbd45[_0x50ee93]['isAdded']&&delete _0x4dbd45[_0x50ee93]['isAdded'],_0x4dbd45[_0x50ee93]['isAddSuggestion']&&delete _0x4dbd45[_0x50ee93]['isAddSuggestion'],_0x4dbd45[_0x50ee93]['isRemoveSuggestion']&&delete _0x4dbd45[_0x50ee93]['isRemoveSuggestion'],_0x4dbd45[_0x50ee93]['isRemoved']&&(_0x4dbd45[_0x50ee93]['isIncorrect']=!0x0));}return _0x4dbd45['filter'](_0x5bbd46=>!_0x5bbd46['isIncorrect']);}['_makeModelFromTape'](_0x7271a,_0x4e964e,_0x7e77e1){const _0x3fb4e5=new wt(),_0xc87731=[],_0x2e5501=new Map(),_0x990852=this['editor']['model'],_0x2235ca=_0x990852['schema'],_0xee9b57=[_0x3fb4e5],_0x4f6d29={},_0x25c3f5={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x495e04=null;const _0x144b68=[0x0];for(let _0x4933e2=0x0;_0x4933e2<_0x7271a['length'];_0x4933e2++)if('elementStart'===_0x7271a[_0x4933e2]['type']){_0x7271a[_0x4933e2]['previousPosition']=_0x990852['createPositionFromPath'](_0x3fb4e5,_0x144b68);const _0x2c4dc9=new ft(_0x7271a[_0x4933e2]['item']['name'],_0x7271a[_0x4933e2]['item']['getAttributes']());_0xee9b57[0x0]['_appendChild'](_0x2c4dc9),_0x144b68['push'](0x0),_0xee9b57['unshift'](_0x2c4dc9),_0x7271a[_0x4933e2]['nextPosition']=_0x990852['createPositionFromPath'](_0x3fb4e5,_0x144b68);}else'elementEnd'===_0x7271a[_0x4933e2]['type']?(_0xee9b57['shift'](),_0x7271a[_0x4933e2]['previousPosition']=_0x990852['createPositionFromPath'](_0x3fb4e5,_0x144b68),_0x144b68['pop'](),_0x144b68[_0x144b68['length']-0x1]++,_0x7271a[_0x4933e2]['nextPosition']=_0x990852['createPositionFromPath'](_0x3fb4e5,_0x144b68)):(_0x7271a[_0x4933e2]['previousPosition']=_0x990852['createPositionFromPath'](_0x3fb4e5,_0x144b68),_0x495e04?_0x495e04['_data']+=_0x7271a[_0x4933e2]['item']['data']:_0x495e04=new _t(_0x7271a[_0x4933e2]['item']['data'],_0x7271a[_0x4933e2]['item']['getAttributes']()),_0x7271a[_0x4933e2+0x1]&&'text'===_0x7271a[_0x4933e2+0x1]['type']&&_0x500bd3(_0x495e04,_0x7271a[_0x4933e2+0x1]['item'])||(_0xee9b57[0x0]['_appendChild'](_0x495e04),_0x495e04=null),_0x144b68[_0x144b68['length']-0x1]+=_0x7271a[_0x4933e2]['item']['offsetSize'],_0x7271a[_0x4933e2]['nextPosition']=_0x990852['createPositionFromPath'](_0x3fb4e5,_0x144b68));for(let _0x20ca1a=0x0;_0x20ca1a<_0x7271a['length'];_0x20ca1a++){const _0x478e07=_0x7271a[_0x20ca1a]['previousPosition'],_0x1979a8=_0x7271a[_0x20ca1a]['nextPosition'];for(const _0x2dda1c of _0x7271a[_0x20ca1a]['markersStart'])_0x2e5501['set'](_0x2dda1c,{'start':_0x478e07,'end':null});_0x3a30a5('isRemoveSuggestion',_0x20ca1a,_0x478e07,_0x1979a8),_0x3a30a5('isAddSuggestion',_0x20ca1a,_0x478e07,_0x1979a8),_0x3a30a5('isRemoved',_0x20ca1a,_0x478e07,_0x1979a8),_0x3a30a5('isAdded',_0x20ca1a,_0x478e07,_0x1979a8);for(const _0x3a57b3 of _0x7271a[_0x20ca1a]['markersEnd']){_0x2e5501['get'](_0x3a57b3)['end']=_0x1979a8;}}for(const [_0x547dea,_0x39d5e8]of _0x2e5501){const _0x491ef6=this['editor']['model']['createRange'](_0x39d5e8['start'],_0x39d5e8['end']);_0x3fb4e5['markers']['set'](_0x547dea,_0x491ef6);}return _0xc87731['sort']((_0x1f6a97,_0x4917a7)=>{const _0x4634a8=_0x3fb4e5['markers']['get']('revision:'+_0x1f6a97['id']),_0x4f539c=_0x3fb4e5['markers']['get']('revision:'+_0x4917a7['id']);return _0x4634a8['start']['isBefore'](_0x4f539c['start'])?-0x1:_0x4634a8['start']['isAfter'](_0x4f539c['start'])?0x1:_0x4634a8['end']['isBefore'](_0x4f539c['end'])?-0x1:_0x4634a8['end']['isAfter'](_0x4f539c['end'])?0x1:'add'===_0x1f6a97['type']?-0x1:0x1;}),{'root':_0x3fb4e5,'changes':_0xc87731};function _0x3a30a5(_0x184066,_0x586b33,_0x1ca8b1,_0x24e9c6){const _0x264b3c=!!_0x7271a[_0x586b33][_0x184066],_0x61efe8=_0x264b3c?_0x7271a[_0x586b33][_0x184066]['userId']:null,_0x18d909=_0x586b33===_0x7271a['length']-0x1,_0x1bdfe1=_0x25c3f5[_0x184066][0x0],_0x3508dd=_0x2235ca['isObject'](_0x7271a[_0x586b33]['item']);!_0x4f6d29[_0x184066]&&_0x264b3c?_0x4f6d29[_0x184066]={'start':_0x1ca8b1,'tapeItem':_0x7271a[_0x586b33],'userId':_0x61efe8,'type':_0x184066}:_0x4f6d29[_0x184066]&&!_0x264b3c?(_0x4f6d29[_0x184066]['end']=_0x1ca8b1,_0x121ec6(_0x4f6d29[_0x184066]),_0x4f6d29[_0x184066]=null):_0x4f6d29[_0x184066]&&_0x264b3c&&_0x4f6d29[_0x184066]['userId']!==_0x61efe8&&(_0x4f6d29[_0x184066]['end']=_0x1ca8b1,_0x1bdfe1&&_0x1bdfe1['userId']===_0x4f6d29[_0x184066]['userId']||_0x121ec6(_0x4f6d29[_0x184066]),_0x4f6d29[_0x184066]={'start':_0x1ca8b1,'tapeItem':_0x7271a[_0x586b33],'userId':_0x61efe8,'type':_0x184066}),_0x4f6d29[_0x184066]&&_0x3508dd&&('elementStart'!==_0x7271a[_0x586b33]['type']||_0x1bdfe1&&_0x1bdfe1['userId']===_0x61efe8||_0x25c3f5[_0x184066]['unshift']({'userId':_0x61efe8,'object':_0x7271a[_0x586b33]['item'],'change':_0x4f6d29[_0x184066]}),'elementEnd'===_0x7271a[_0x586b33]['type']&&_0x1bdfe1&&_0x1bdfe1['object']===_0x7271a[_0x586b33]['item']&&(_0x25c3f5[_0x184066]['shift'](),_0x4f6d29[_0x184066]=_0x1bdfe1['change'])),_0x4f6d29[_0x184066]&&_0x18d909&&(_0x4f6d29[_0x184066]['end']=_0x24e9c6,_0x121ec6(_0x4f6d29[_0x184066]),_0x4f6d29[_0x184066]=null);}function _0x121ec6({start:_0x1782e4,end:_0x508b33,tapeItem:_0x2b7b3d,userId:_0x349936,type:_0x478a3c}){const _0x4599b8=_0x2b7b3d['item'],_0x1b9ce4=_0x990852['schema']['isBlock'](_0x4599b8)&&!_0x990852['schema']['isLimit'](_0x4599b8),_0x468e58=_0x1782e4['nodeAfter']==_0x508b33['parent']&&_0x508b33['isAtStart'];if(_0x1b9ce4&&_0x468e58)return;const _0x10d9e3=_0x990852['createRange'](_0x1782e4,_0x508b33),_0x531087=_0x4e964e['get'](_0x349936),_0x7b9734=new r({'author':_0x531087,'type':'isAdded'==_0x478a3c||'isAddSuggestion'==_0x478a3c?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x478a3c||'isRemoveSuggestion'==_0x478a3c},'createdAt':new Date(),'rootName':_0x7e77e1});_0xc87731['push'](_0x7b9734),_0x3fb4e5['markers']['set']('revision:'+_0x7b9734['id'],_0x10d9e3);}function _0x500bd3(_0x1a3b16,_0x3a7998){const _0x515894=_0x1a3b16['getAttributes'](),_0x5bb901=_0x3a7998['getAttributes']();for(const _0x3745d8 of _0x515894){if(_0x3745d8[0x1]!==_0x3a7998['getAttribute'](_0x3745d8[0x0]))return!0x1;_0x5bb901['next']();}return _0x5bb901['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x55fba4=>{const _0x1153dc=_0x55fba4['markerName']['split'](':')[0x1],_0x2966cc=this['_getChangeFromId'](_0x1153dc);if(!_0x2966cc)return null;const _0x4fe171='add'==_0x2966cc['type']?'insertion':'deletion',_0x1a4c74=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4fe171];return _0x2966cc['data']['isSuggestion']&&_0x1a4c74['push']('ck-suggestion-marker-'+_0x4fe171+'-new'),this['activeChange']==_0x2966cc&&_0x1a4c74['push']('ck-suggestion-marker--active'),{'classes':_0x1a4c74,'attributes':{'data-change-id':_0x1153dc}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x26ccd5=>{_0x26ccd5['on']('element:pre',(_0x54f148,_0x5b0ee2,_0x16475f)=>{const _0x3dd3d2=_0x5b0ee2['viewItem']['getChild'](0x0);if(!_0x3dd3d2||!_0x3dd3d2['is']('element','code'))return;if(!_0x16475f['consumable']['consume'](_0x3dd3d2,{'attributes':['vid_start','vid_end']}))return;const _0x1c4bd3=_0x5b0ee2['modelRange']['start']['nodeAfter'];_0x16475f['writer']['setAttribute']('vid_start',_0x3dd3d2['getAttribute']('vid_start'),_0x1c4bd3),_0x16475f['writer']['setAttribute']('vid_end',_0x3dd3d2['getAttribute']('vid_end'),_0x1c4bd3);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x21abcb=>{_0x21abcb['on']('element',(_0x48dd84,_0x3c56fe,_0x49d844)=>{if(!_0x49d844['consumable']['consume'](_0x3c56fe['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3c56fe['modelRange']['isCollapsed'])return;const _0x3f0cb9=_0x3c56fe['modelRange']['start']['nodeAfter'];_0x3f0cb9['hasAttribute']('vid_start')||_0x3f0cb9['hasAttribute']('vid')||(_0x49d844['writer']['setAttribute']('vid_start',_0x3c56fe['viewItem']['getAttribute']('vid_start'),_0x3f0cb9),_0x49d844['writer']['setAttribute']('vid_end',_0x3c56fe['viewItem']['getAttribute']('vid_end'),_0x3f0cb9));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x54871c=>_0x54871c['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x3d992f,[,_0x47c005])=>{['vid_start','vid_end','vid']['includes'](_0x47c005)&&(_0x3d992f['return']=!0x0,_0x3d992f['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1e273c=>{_0x1e273c['on']('attribute:vid',(_0x37520a,_0x3e83ee,_0x423b27)=>{if('\x20'!=_0x3e83ee['item']['data']||_0x3e83ee['item']['parent']['maxOffset']>0x1)return;if(!_0x423b27['consumable']['consume'](_0x3e83ee['item'],_0x37520a['name']))return;const _0x55a5d1=_0x423b27['writer'],_0x141657=_0x423b27['mapper']['toViewRange'](_0x3e83ee['range']);_0x55a5d1['wrap'](_0x141657,_0x55a5d1['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x1213aa){const _0x5a3d4e=_0x1213aa['plugins']['get']('RevisionViewer');return(_0x50a034,_0x1b2e9c,_0x2c47d5)=>{const _0xda8b35=_0x1b2e9c['markerName']['split'](':')[0x1],_0x47c47d=_0x5a3d4e['_getChangeFromId'](_0xda8b35);if(!_0x47c47d)return null;const _0x3c2caf='add'==_0x47c47d['type']?'split':'merge';if(!_0x2c47d5['consumable']['test'](_0x1b2e9c['markerRange'],_0x50a034['name']))return;const _0x223e16=_0x1b2e9c['markerRange']['getWalker'](),_0x44521d=_0x1b2e9c['markerRange']['start'],_0x678722=_0x1213aa['model']['schema'];let _0xbaf8cc=null,_0x137d19=null,_0x5a2c43=!0x1,_0x5176d7=!0x1;for(const _0x285072 of _0x223e16){const _0x2852aa=_0x285072['item'];_0x5a2c43=_0x5a2c43||_0x678722['isContent'](_0x2852aa);const _0xfb8423=_0x2c47d5['mapper']['toViewElement'](_0x2852aa);if(_0xfb8423&&_0xfb8423['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x285072['type']&&(_0x678722['isBlock'](_0x2852aa)&&!_0x678722['isLimit'](_0x2852aa)&&(_0x2852aa['nextSibling']||_0x44521d['isAtEnd']?_0xbaf8cc&&_0xbaf8cc['parent']==_0x2852aa||(_0xbaf8cc=_0x2852aa,_0xd13e4b(_0x285072['previousPosition']),_0x5176d7=!0x0):_0x137d19=_0x137d19||_0x285072['previousPosition']));}function _0xd13e4b(_0x144af4){const _0xd970f6=_0x2c47d5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3c2caf}),_0x324ebf=_0x2c47d5['mapper']['toViewPosition'](_0x144af4);_0x47c47d['data']['isSuggestion']&&_0x2c47d5['writer']['addClass']('ck-suggestion-marker-'+_0x3c2caf+'-new',_0xd970f6),_0x5a3d4e['activeChange']==_0x47c47d&&_0x2c47d5['writer']['addClass']('ck-suggestion-marker--active',_0xd970f6),_0x2c47d5['writer']['insert'](_0x324ebf,_0xd970f6),_0x2c47d5['mapper']['bindElementToMarker'](_0xd970f6,_0x1b2e9c['markerName']);}_0x5a2c43||_0x5176d7||!_0x137d19||_0xd13e4b(_0x137d19);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x379f52,_0x83283f,_0x599553)=>{const _0xb4dabd=_0x599553['mapper']['markerNameToElements'](_0x83283f['markerName']);if(_0xb4dabd){for(const _0x360a0c of _0xb4dabd)(_0x360a0c['hasClass']('ck-suggestion-marker-split')||_0x360a0c['hasClass']('ck-suggestion-marker-merge'))&&(_0x599553['mapper']['unbindElementFromMarkerName'](_0x360a0c,_0x83283f['markerName']),_0x599553['writer']['remove'](_0x360a0c));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x34e372,_0x3c2128,_0xfc35aa)=>{const _0x1152e9=_0x3c2128['markerName']['split'](':')[0x1],_0x2a77fe=this['_getChangeFromId'](_0x1152e9);if(!_0x2a77fe)return null;const _0x31231a='add'==_0x2a77fe['type']?'split':'merge';if(_0xfc35aa['consumable']['test'](_0x3c2128['markerRange'],_0x34e372['name']))for(const _0x5b422e of _0x3c2128['markerRange']['getItems']()){if(!_0x5b422e['is']('element','softBreak'))continue;const _0x176f94=_0xfc35aa['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x31231a}),_0x4bbfea=_0xfc35aa['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x5b422e));_0x2a77fe['data']['isSuggestion']&&_0xfc35aa['writer']['addClass']('ck-suggestion-marker-'+_0x31231a+'-new',_0x176f94),this['activeChange']==_0x2a77fe&&_0xfc35aa['writer']['addClass']('ck-suggestion-marker--active',_0x176f94),_0xfc35aa['writer']['insert'](_0x4bbfea,_0x176f94),_0xfc35aa['mapper']['bindElementToMarker'](_0x176f94,_0x3c2128['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x280b16=>{for(const _0x200b22 of this['editor']['model']['document']['getRootNames']()){const _0xca03cb=this['editor']['model']['document']['getRoot'](_0x200b22),_0x286604=this['editor']['editing']['view']['document']['getRoot'](_0x200b22);if(_0x286604){const _0xfce669=_0xca03cb['getAttribute']('revisionHistoryAttachChange');if(_0x280b16['removeAttribute']('data-change-id',_0x286604),_0x280b16['removeClass']('ck-revision-history-root-add',_0x286604),_0x280b16['removeClass']('ck-revision-history-root-remove',_0x286604),_0x280b16['removeClass']('ck-revision-history-root--active',_0x286604),_0xfce669){const _0x46eb9b=this['_getChangeFromId'](_0xfce669);if(!_0x46eb9b)return null;_0x280b16['setAttribute']('data-change-id',_0xfce669,_0x286604),_0x280b16['addClass']('ck-revision-history-root-'+_0x46eb9b['type'],_0x286604),this['activeChange']==_0x46eb9b&&_0x280b16['addClass']('ck-revision-history-root--active',_0x286604);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x19d18c=>'revision-comment:'+_0x19d18c,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x424e78=>'revision-suggestion:'+_0x424e78,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x38d9d3=>({'name':'suggestion:'+_0x38d9d3,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x220aff=>{const _0x5d6300=_0x220aff['markerName']['split'](':')[0x1];return'insertion'!=_0x5d6300&&'deletion'!=_0x5d6300?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x5d6300]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x1a4f3b,_0x4948a6,_0x291a7a)=>{const _0x5a7399=_0x291a7a['mapper']['markerNameToElements'](_0x4948a6['markerName']);if(_0x5a7399){for(const _0xcea6c6 of _0x5a7399)_0xcea6c6['is']('uiElement')&&(_0x291a7a['mapper']['unbindElementFromMarkerName'](_0xcea6c6,_0x4948a6['markerName']),_0x291a7a['writer']['remove'](_0xcea6c6));}},{'priority':'high'});}['_getChangeFromId'](_0x15e134){return this['_changeIdToChange']['get'](_0x15e134);}['_getViewForChange'](_0xdc5251){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0xdc5251),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x5ae70f,_0x52c68d,_0x369df8,_0x483d6d)=>{_0x483d6d&&this['_balloon']['remove'](_0x483d6d),_0x369df8&&(this['_balloon']['add']({'view':_0x369df8,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x36b043=this['editor']['editing'],_0x83f6af=this['_getChangeFromId'](_0x369df8['changeId']);let _0x32f69e;if(_0x83f6af['data']['isOnRoot']){const _0x12fdac=_0x36b043['view']['getDomRoot'](_0x83f6af['rootName']);_0x32f69e=Array['from'](_0x12fdac['getClientRects']());}else{const _0x4e5313=this['editor']['model']['markers']['get']('revision:'+_0x369df8['changeId']);_0x32f69e=Array['from'](_0x36b043['mapper']['markerNameToElements'](_0x4e5313['name']))['map'](_0x24b307=>_0x36b043['view']['domConverter']['mapViewToDom'](_0x24b307))['map'](_0x298673=>Array['from'](_0x298673['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x32f69e[0x0];return _0x32f69e['find'](_0x36ac0b=>_0x36ac0b['top']-0x3<=this['_activeViewTarget']['y']&&_0x36ac0b['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x36ac0b['left']-0x3<=this['_activeViewTarget']['x']&&_0x36ac0b['right']+0x3>=this['_activeViewTarget']['x'])||_0x32f69e[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x424a3b,_0x185eb6,_0x244f4b,_0x2dfbf6)=>{this['activeView']=_0x244f4b?this['_getViewForChange'](_0x244f4b):null,this['editor']['model']['change'](()=>{const _0x334203=this['editor']['editing'];_0x2dfbf6&&(_0x2dfbf6['data']['isOnRoot']?_0x334203['view']['change'](_0x4ddbc1=>{_0x4ddbc1['removeClass']('ck-revision-history-root--active',_0x334203['view']['document']['getRoot'](_0x2dfbf6['rootName']));}):_0x334203['reconvertMarker']('revision:'+_0x2dfbf6['id'])),_0x244f4b&&(_0x244f4b['data']['isOnRoot']?_0x334203['view']['change'](_0x499ef7=>{_0x499ef7['addClass']('ck-revision-history-root--active',_0x334203['view']['document']['getRoot'](_0x244f4b['rootName']));}):_0x334203['reconvertMarker']('revision:'+_0x244f4b['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x515bbd,_0x115e89)=>{if(this['activeChange'])return;const _0x34a368=this['_findChangeIdFromDomTarget'](_0x115e89['target']),_0x27f73a=this['_changeIdToChange']['get'](_0x34a368);_0x27f73a?(this['_activeViewTarget']={'x':_0x115e89['domEvent']['x'],'y':_0x115e89['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x27f73a)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x58532,_0x30dcfd)=>{const _0x466e33=this['_findChangeIdFromDomTarget'](_0x30dcfd['target']),_0x3295a=this['_changeIdToChange']['get'](_0x466e33);_0x3295a?(this['_activeViewTarget']={'x':_0x30dcfd['domEvent']['x'],'y':_0x30dcfd['domEvent']['y']},_0x3295a===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x3295a):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x195f16){do{const _0x454c8a=_0x195f16['getAttribute']('data-change-id');if(_0x454c8a)return _0x454c8a;_0x195f16=_0x195f16['parent'];}while(_0x195f16);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x207062=>{for(const _0xe4aef0 of this['editor']['model']['markers'])_0x207062['removeMarker'](_0xe4aef0);});}}function tt(_0x38f98f,_0x1f07b0){return(_0x55aa40,_0x95ca41,_0x25c793)=>{if(!_0x25c793['consumable']['test'](_0x95ca41['markerRange'],_0x55aa40['name']))return;const _0x4e69bd=_0x95ca41['markerRange']['getWalker'](),_0x1bb0d6=_0x95ca41['markerRange']['start'],_0x45a548=_0x38f98f['model']['schema'];let _0x2a5ca5=null,_0x26b799=null,_0x3dc8cc=!0x1,_0x32ea3e=!0x1;for(const _0x3120c4 of _0x4e69bd){const _0x49d319=_0x3120c4['item'];_0x3dc8cc=_0x3dc8cc||_0x45a548['isContent'](_0x49d319);const _0x372aec=_0x25c793['mapper']['toViewElement'](_0x49d319);if(_0x372aec&&_0x372aec['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3120c4['type']&&(_0x45a548['isBlock'](_0x49d319)&&!_0x45a548['isLimit'](_0x49d319)&&(_0x49d319['nextSibling']||_0x1bb0d6['isAtEnd']?_0x2a5ca5&&_0x2a5ca5['parent']==_0x49d319||(_0x2a5ca5=_0x49d319,_0x582a11(_0x3120c4['previousPosition']),_0x32ea3e=!0x0):_0x26b799=_0x26b799||_0x3120c4['previousPosition']));}function _0x582a11(_0x5a87df){const _0x15eafc=_0x25c793['mapper']['toViewPosition'](_0x5a87df),_0x5131b4=_0x25c793['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x1f07b0});_0x25c793['writer']['insert'](_0x15eafc,_0x5131b4),_0x25c793['mapper']['bindElementToMarker'](_0x5131b4,_0x95ca41['markerName']);}_0x3dc8cc||_0x32ea3e||!_0x26b799||_0x582a11(_0x26b799);};}class yt extends _0x18555e{constructor(_0x458aaa){super(_0x458aaa);const _0x476566=_0x458aaa['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x476566,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x476566,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x502344=this['editor'],_0x4e30b9=_0x502344['plugins']['get'](d),_0x547442=_0x4e30b9['isReady']?_0x4e30b9['diff']['newRevisionId']:null;_0x502344['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x547442);}['refresh'](){const {isReady:_0x5977cd,isEnabled:_0xf2468b,repository:_0x3af1a3,diff:_0x329c21}=this['editor']['plugins']['get'](d),_0x25c3cc=_0x329c21&&_0x3af1a3['getLaterVisibleRevision'](_0x329c21['newRevisionId']);this['isEnabled']=_0x5977cd&&_0xf2468b&&Boolean(_0x25c3cc);}}class bt extends _0x18555e{['_step'];constructor(_0x11fb64,{direction:_0x43ace0}){super(_0x11fb64);const _0xd5f4b0=_0x11fb64['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x43ace0?0x1:-0x1,this['listenTo'](_0xd5f4b0,'change:isReady',()=>this['refresh']()),this['listenTo'](_0xd5f4b0,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0xd5f4b0,'change:activeChange',()=>this['refresh']());}['execute'](){const _0xeac587=this['editor'],_0x3b0b98=_0xeac587['plugins']['get'](d),{isNavigationMode:_0xe41eb4,currentChangeNumber:_0x569b27}=_0x3b0b98;let _0x4eedef;if(_0x3b0b98['activeChange']=_0xe41eb4?_0x3b0b98['diff']['changes']['get'](_0x569b27+this['_step']):_0x3b0b98['diff']['changes']['first'],_0x3b0b98['activeChange']['data']['isOnRoot'])_0x4eedef=_0xeac587['editing']['view']['getDomRoot'](_0x3b0b98['activeChange']['rootName']);else{const _0x4ec741=_0xeac587['model']['markers']['get']('revision:'+_0x3b0b98['activeChange']['id']);_0x4eedef=_0x3d0410(_0xeac587['editing'],_0x4ec741);}_0x489eea({'target':_0x4eedef,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x406b72,currentChangeNumber:_0x547483,numberOfChanges:_0x3bb9a5,isReady:_0x4d02b0,isEnabled:_0x56162c}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x56162c&&_0x4d02b0&&_0x3bb9a5)&&(!_0x406b72||(0x1===this['_step']?_0x547483<_0x3bb9a5-0x1:_0x547483>0x0));}}class bi extends _0x297fcf{constructor(_0x15ee12){super(_0x15ee12);const _0x4ee2b3=this['bindTemplate'],_0x3f7d02=new _0x2456b5(_0x15ee12),_0xcdce5d=new _0x2456b5(_0x15ee12);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',(_0x1657bb,_0x5dd3cf)=>_0x1657bb&&_0x5dd3cf>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0xc55966,_0x318708,_0x35d25f,_0x1aac72)=>{if(!_0xc55966)return R(_0x15ee12,'Loading...');if(!_0x35d25f)return R(_0x15ee12,'No\x20changes');const _0x184cbf=R(_0x15ee12,'NUMBER_OF_CHANGES',_0x35d25f);return _0x1aac72?R(_0x15ee12,'X_OF_Y_CHANGES',[_0x318708+0x1,_0x35d25f]):_0x184cbf;}),_0x3f7d02['set']({'label':R(_0x15ee12,'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'}),_0xcdce5d['set']({'label':R(_0x15ee12,'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'}),_0x3f7d02['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0xcdce5d['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3f7d02['on']('execute',()=>this['fire']('execute','backward')),_0xcdce5d['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',_0x4ee2b3['if']('_isStatusLabelVisible','ck-hidden',_0x48fbc2=>!_0x48fbc2)]},'children':[{'text':_0x4ee2b3['to']('isNavigationMode',_0x1c0b1a=>_0x1c0b1a?R(_0x15ee12,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x15ee12,'Total')+':\x20')}]},{'text':_0x4ee2b3['to']('_statusText')}]},new _0x43523c(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3f7d02,_0xcdce5d]}]});}}const ie='ck-editor__editable__loading-overlay';class te extends _0x434fd7{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0xee8327=this['editor']['editing']['view'];_0xee8327['change'](_0x3af276=>{for(const _0x4de0fb of _0xee8327['document']['roots'])_0x3af276['addClass'](ie,_0x4de0fb);});}['hide'](){const _0x225621=this['editor']['editing']['view'];_0x225621['change'](_0x4ef944=>{for(const _0x3e05d5 of _0x225621['document']['roots'])_0x4ef944['removeClass'](ie,_0x3e05d5);});}}class m extends _0x434fd7{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,te];}['init'](){const _0x37718b=this['editor'],_0x2a13aa=_0x37718b['plugins']['get'](d),_0x5535f2=_0x37718b['plugins']['get'](te);_0x37718b['ui']['componentFactory']['add']('exitToEditing',_0x496006=>{const _0x333a0a=new _0x2456b5(_0x496006);return _0x333a0a['set']({'label':R(_0x496006,'Back\x20to\x20editing'),'icon':_0x3495e1['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x333a0a,'execute',()=>{_0x37718b['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x333a0a;}),_0x37718b['ui']['componentFactory']['add']('restoreRevision',_0x216251=>{const _0x3701c1=new _0x2456b5(_0x216251);return _0x3701c1['set']({'label':R(_0x216251,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x3701c1['bind']('isEnabled')['to'](_0x37718b['commands']['get']('restoreRevision')),this['listenTo'](_0x3701c1,'execute',()=>_0x37718b['execute']('restoreRevision')),_0x3701c1;}),_0x37718b['ui']['componentFactory']['add']('changesNavigation',_0xc83b43=>{const _0x3192b6=new bi(_0xc83b43),_0x4249d=_0x37718b['commands']['get']('showPreviousChange'),_0x34138c=_0x37718b['commands']['get']('showNextChange');return _0x3192b6['bind']('isBackwardNavigationEnabled')['to'](_0x4249d,'isEnabled'),_0x3192b6['bind']('isForwardNavigationEnabled')['to'](_0x34138c,'isEnabled'),_0x3192b6['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x2a13aa),this['listenTo'](_0x3192b6,'execute',(_0x28247e,_0x35ca38)=>{_0x37718b['execute']('forward'===_0x35ca38?'showNextChange':'showPreviousChange');}),_0x3192b6;}),_0x5535f2['show'](),_0x2a13aa['on']('change:isReady',(_0x5379c6,_0x2a091c,_0x3eddda)=>{_0x3eddda?_0x5535f2['hide']():_0x5535f2['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x142145,_0x6d8e82){super(_0x142145,_0x6d8e82);const _0x5dd67a=this['bindTemplate'];this['set']({'label':R(_0x142145,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x142145,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x5dd67a['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x4b1589=this['fieldView']['element'];this['_tooltipString']=_0x4b1589['scrollWidth']>_0x4b1589['clientWidth']&&_0x4b1589['value']||'';}}class ti extends _0x297fcf{constructor(_0x2bacf6,_0x1438d8,_0x4b975b){super(_0x2bacf6);const _0x15da73=new _0x21bca6();_0x15da73['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 _0x59a141=['ck','ck-revision-history-sidebar__revision-author'];_0x4b975b&&_0x59a141['push']('ck-revision-history-sidebar__revision-author_creator');const _0x242fe3=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x2bacf6,_0x4b975b?'Revision\x20creator':'Revision\x20author')},'children':[_0x15da73,_0x1438d8['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x59a141},'children':_0x242fe3});}}function ni(_0x3edf92,_0x1dd92f){const _0x489f4c=_0x3edf92['bindTemplate'],_0x4aa1e4=_0x3edf92['locale'],_0x4171dd=_0x327471(_0x4aa1e4);_0x4171dd['panelPosition']='sw';const _0x560ebe=function(_0x124fda,_0xcff998){const _0xa8ddde=function(_0x3ca7d0,_0x10c35a){const _0x4af131=_0x3ca7d0['locale'],_0x4ed5a6={'Compare\x20against\x20selected':R(_0x4af131,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x4af131,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x4af131,'Restore\x20this\x20revision')};return _0x10c35a['map'](_0x50abeb=>{const _0x5752b0=_0x4ed5a6[_0x50abeb['name']];return _0x5752b0&&_0x5752b0!==_0x50abeb['name']&&(_0x50abeb['name']=_0x5752b0),_0x50abeb;});}(_0x124fda,_0xcff998),_0xe224ee=new _0x2d1bb4();for(const _0x44c67f of _0xa8ddde){const _0x315c0b={'type':'button','model':new to({'label':_0x44c67f['name'],'class':_0x44c67f['class'],'withText':!0x0,'role':'menuitem','_action':_0x44c67f['action']})};_0x315c0b['model']['bind']('isEnabled')['to'](_0x124fda,'isActionsDropdownOpen',_0xf94f9=>'function'!=typeof _0x44c67f['isEnabled']||(!_0xf94f9||_0x44c67f['isEnabled'](_0x124fda))),_0xe224ee['add'](_0x315c0b);}return _0xe224ee;}(_0x3edf92,_0x1dd92f);return _0x3edf92['bind']('isActionsDropdownOpen')['to'](_0x4171dd,'isOpen'),_0x4171dd['buttonView']['set']({'label':R(_0x4aa1e4,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3495e1['threeVerticalDots']}),_0x4171dd['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x489f4c['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x489f4c['to'](_0x293114=>_0x293114['stopPropagation']())}}),_0x4171dd['on']('execute',_0x2276ac=>{_0x3edf92['isReady']&&'function'==typeof _0x2276ac['source']['_action']&&_0x2276ac['source']['_action'](_0x3edf92);}),_0x9954b6(_0x4171dd,_0x560ebe,{'role':'menu'}),_0x4171dd['listenTo'](_0x3edf92,'change:isActionsDropdownOpen',(_0x1e76b1,_0x2602ef,_0x505d24)=>{if(_0x505d24)for(const _0x3c4484 of _0x4171dd['listView']['items']){const _0x44e7ad=_0x3c4484['children']['first'],_0x410b66=_0x1dd92f['find'](_0x1d5be6=>_0x1d5be6['action']===_0x44e7ad['_action'])['isVisible'];_0x3c4484['isVisible']=void 0x0===_0x410b66||_0x410b66(_0x3edf92);}}),_0x4171dd;}class ai extends/* #__PURE__ -- @preserve */
26
+ _0x2e7f54(_0x297fcf){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x2da4cb,_0x367431,_0x25e70c,_0xc4079d){super(_0x2da4cb);const _0x46f06d=this['bindTemplate'],_0x45d1f1=function(_0x151fa8,_0x35319e){const _0x2b8032=Array['from'](_0x35319e['authors'])['filter'](_0x351c2f=>_0x351c2f!=_0x35319e['creator']);return _0x35319e['creator']&&_0x2b8032['unshift'](_0x35319e['creator']),_0x2b8032['map'](_0x47dac8=>new ti(_0x151fa8,_0x47dac8,_0x47dac8==_0x35319e['creator']));}(_0x2da4cb,_0x367431);this['id']=_0x367431['id'],this['_revision']=_0x367431,this['_requireRevisionName']=_0xc4079d,this['bind']('name','createdAt')['to'](_0x367431),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x4fb3e3=>{return _0x3950c2=_0x2da4cb['uiLanguage'],(_0x410341=_0x4fb3e3)['toLocaleDateString'](_0x3950c2,{'month':'long','day':'numeric'})+',\x20'+_0x410341['toLocaleTimeString'](_0x3950c2,{'hour':'numeric','minute':'numeric'});var _0x3950c2,_0x410341;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x2da4cb,_0x2be08e),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x2a7102=>_0x2a7102||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x13330c,_0x3f3794)=>_0x13330c&&_0x3f3794),this['revisionActionsView']=_0x25e70c&&_0x25e70c['length']?ni(this,_0x25e70c):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x46f06d['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x46f06d['if']('isEnabled','ck-disabled',_0x49b42d=>!_0x49b42d),_0x46f06d['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x46f06d['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x46f06d['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':_0x46f06d['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':_0x45d1f1}]},this['revisionActionsView']],'on':{'click':_0x46f06d['to'](_0x31a9c2=>{_0x31a9c2['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x4279fd=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x4279fd,'change',()=>{this['_requireRevisionName']&&!_0x4279fd['value']||this['fire']('setName',{'id':this['id'],'name':_0x4279fd['value']}),_0x4279fd['value']||(_0x4279fd['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(_0x162c9d,_0x22ed9d){const _0x3127f3=_0x3c423b['fromJSDate'](_0x162c9d)['setLocale'](_0x22ed9d),_0x4d9d5f=_0x3c423b['local'](),_0x25b6bf=_0x4d9d5f['minus']({'days':0x1})['startOf']('day');let _0x3f64d2,_0x40c180;return _0x3127f3['hasSame'](_0x4d9d5f,'day')?(_0x3f64d2=_0x3127f3['startOf']('day')['toJSDate'](),_0x40c180=_0x3127f3['toRelativeCalendar']()):_0x3127f3['hasSame'](_0x25b6bf,'day')?(_0x3f64d2=_0x25b6bf['toJSDate'](),_0x40c180=_0x3127f3['toRelativeCalendar']()):_0x3127f3['hasSame'](_0x4d9d5f,'week')?(_0x3f64d2=_0x3127f3['startOf']('week')['toJSDate'](),_0x40c180=_0x3127f3['weekdayLong']||''):_0x3127f3['hasSame'](_0x4d9d5f,'year')?(_0x3f64d2=_0x3127f3['startOf']('month')['toJSDate'](),_0x40c180=_0x3127f3['monthLong']||''):(_0x3f64d2=_0x3127f3['startOf']('year')['toJSDate'](),_0x40c180=String(_0x3127f3['year'])),{'startDate':_0x3f64d2,'localizedPeriodName':_0x40c180};}class mi extends _0x297fcf{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x35b7d5,_0x15c3e5,_0x4dbb45,_0x139d28){super(_0x35b7d5);const _0x39d96f=di(_0x15c3e5,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x15c3e5,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x4dbb45,this['_requireRevisionName']=_0x139d28,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':_0x39d96f}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x55b662){const _0x1d75c4=new ai(this['locale'],_0x55b662,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x1d75c4);}['removeRevision'](_0x1a4d8e){const _0x2ba356=this['revisionViews']['find'](_0x3e975b=>_0x3e975b['id']===_0x1a4d8e['id']);this['revisionViews']['remove'](_0x2ba356);}}class rs extends _0x297fcf{constructor(_0xe2236){super(_0xe2236);const _0x49f3bf=new _0x21bca6();_0x49f3bf['content']=_0x3495e1['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x49f3bf,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0xe2236,'Revision\x20history')]}]});}}class ci extends _0x297fcf{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2ef5cc,_0x1eb00e,_0x4a3f1d,_0x39d9d3){super(_0x2ef5cc);const _0x1bb5a6=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x1eb00e,this['_revisionActions']=_0x4a3f1d,this['_requireRevisionName']=_0x39d9d3,this['on']('select',(_0x2720fb,_0x5d66d7)=>{this['fire']('revisionSelected',_0x5d66d7);}),this['on']('setName',(_0x41bde5,_0xdcd993)=>{this['fire']('revisionSetName',_0xdcd993);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new rs(_0x2ef5cc),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x1bb5a6['if']('isEnabled','ck-disabled',_0x3ae21d=>!_0x3ae21d)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0xd4f3ab of this['_revisions'])this['_addRevision'](_0xd4f3ab);this['_revisions']['on']('add',(_0xbf5bc,_0x101de9)=>{this['_addRevision'](_0x101de9);}),this['_revisions']['on']('remove',(_0x546054,_0x3f34d4)=>{this['_removeRevision'](_0x3f34d4);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x20c52a=>_0x20c52a['revisionViews']['map'](_0xa98091=>_0xa98091))['flat']();}['selectRevision'](_0x2408ca){for(const _0x876044 of this['revisionViews'])_0x2408ca&&_0x2408ca['id']===_0x876044['id']?_0x876044['select']():_0x876044['deselect']();}['highlightRevisions'](_0x368d35){for(const _0x595004 of this['revisionViews'])_0x368d35['some'](({id:_0x1d131f})=>_0x1d131f===_0x595004['id'])?_0x595004['highlight']():_0x595004['unhighlight']();}['_addRevision'](_0x110ab2){const _0x2a0bdf=di(_0x110ab2['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x546dfc=this['timePeriodViews']['get'](0x0);_0x546dfc&&_0x546dfc['startDate']['getTime']()===_0x2a0bdf['getTime']()||(_0x546dfc=new mi(this['locale'],_0x2a0bdf,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x546dfc)),_0x546dfc['addRevision'](_0x110ab2);}['_removeRevision'](_0x31ea0f){const _0x4d7e2d=di(_0x31ea0f['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x4d7e2d)['removeRevision'](_0x31ea0f);}['_getTimePeriodViewByStartDate'](_0x2f80d8){return this['timePeriodViews']['find'](_0x9a65c6=>_0x9a65c6['startDate']['getTime']()===_0x2f80d8['getTime']());}}class g extends _0x434fd7{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- Rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x15584f){super(_0x15584f),this['_revisionViewer']=_0x15584f['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x22ed1c=this['_revisionsRepository']['_revisions'],_0x4f0c12=this['_createRevisionActions'](),_0x3c85d9=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new li(this['editor']['locale'],_0x22ed1c,_0x4f0c12,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',(_0x1c2c56,_0x2c523d)=>{_0x2c523d['revisionViews']['on']('add',(_0x3be0e1,_0x28806e)=>{_0x28806e['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)),_0x3c85d9['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x5ea354=this['_revisionsRepository']['getRevision'](0x0);if(_0x5ea354){const _0xbcbd13=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x5ea354['id']);this['_revisionViewer']['compare'](_0x5ea354,_0xbcbd13);}}['_handleRevisionSelected'](_0x4a6548,_0x501e85){const _0xa89b02=this['_revisionsRepository']['getRevision'](_0x501e85['id']),_0x334335=this['_revisionsRepository']['getEarlierVisibleRevision'](_0xa89b02['id']);this['_revisionViewer']['compare'](_0xa89b02,_0x334335);}['_handleRevisionSetName'](_0x4fb33d,_0x1b1fa6){this['_revisionsRepository']['getRevision'](_0x1b1fa6['id'])['setName'](_0x1b1fa6['name']);}['_handleDiffChange'](_0x4d14f8,_0xd0fdf6,_0x6cfee){const _0x130bd0=this['_revisionsRepository']['getRevisionsInDiff'](_0x6cfee);_0x130bd0['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x130bd0),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x130bd0[0x0]));}['_createRevisionActions'](){const _0x59e9a7=this['editor'],_0x3aeb83=g['availableRevisionActions'],_0x13db4a=_0x59e9a7['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x13db4a['length'])return _0x13db4a['map'](_0x2d408d=>{const _0x5e85cd='string'==typeof _0x2d408d?Object['assign']({},_0x3aeb83[_0x2d408d]):_0x2d408d;return _0x5e85cd['action']=_0x5e85cd['action']['bind'](this,_0x59e9a7),_0x5e85cd['isVisible']&&(_0x5e85cd['isVisible']=_0x5e85cd['isVisible']['bind'](this,_0x59e9a7)),_0x5e85cd;});}}function Rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x2486f3},_0x4392d1)=>{const _0x44b176=_0x2486f3['get'](d),_0x325791=_0x44b176['repository'];let _0xc99776=_0x44b176['diff']['newRevisionId'],_0x1e94f5=_0x4392d1['id'];_0x325791['getIndex'](_0xc99776)>_0x325791['getIndex'](_0x1e94f5)&&([_0xc99776,_0x1e94f5]=[_0x1e94f5,_0xc99776]),_0x44b176['compare'](_0xc99776,_0x1e94f5);},'isVisible':({plugins:_0x486406},_0x2e4895)=>{const _0x31cb5b=_0x486406['get'](d);return!(_0x31cb5b['repository']['getRevisionsInDiff'](_0x31cb5b['diff'])['length']>0x2)&&!_0x2e4895['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x3fdcd6,{id:_0x46a310})=>{_0x3fdcd6['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x46a310);},'isVisible':({plugins:_0x453dc9},_0x4a3ac6)=>!!_0x453dc9['get'](d)['repository']['getLaterVisibleRevision'](_0x4a3ac6['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x2512e5},{id:_0xfa291c,revisionNameView:_0x258cfa})=>{const _0x1f7eae=_0x2512e5['get'](d),_0x279f54=_0x1f7eae['repository']['getEarlierVisibleRevision'](_0xfa291c);_0x1f7eae['compare'](_0xfa291c,_0x279f54),_0x258cfa['focus'](),_0x258cfa['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x4fc80e,_0x16e906){super(_0x4fc80e),this['_view']=_0x16e906,this['_toolbarConfig']=ht(_0x4fc80e['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x9dae2f){const _0x1c684c=this['editor'],_0x4456a8=this['view'],_0x12798b=_0x1c684c['editing']['view'],_0x31a0c5=_0x4456a8['editable'],_0x564cbc=_0x12798b['document']['getRoot']();_0x31a0c5['name']=_0x564cbc['rootName'],_0x4456a8['render']();const _0x125422=_0x31a0c5['element'];this['setEditableElement'](_0x31a0c5['name'],_0x125422),_0x4456a8['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x12798b['attachDomRoot'](_0x125422),this['_elementReplacer']['replace'](_0x9dae2f,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x542586=this['view'],_0x4bd224=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x4bd224['detachDomRoot'](_0x542586['editable']['name']),_0x542586['destroy']();}['_initToolbar'](){const _0x18fa71=this['view'];_0x18fa71['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x18fa71['stickyPanel']['limiterElement']=_0x18fa71['element'],_0x18fa71['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x414b72})=>_0x414b72),_0x18fa71['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x18fa71['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0xbbcda2,_0x2933ba,_0x240cbd={}){super(_0xbbcda2),this['stickyPanel']=new lt(_0xbbcda2),this['toolbar']=new nt(_0xbbcda2,{'shouldGroupWhenFull':_0x240cbd['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0xbbcda2,_0x2933ba);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
29
- rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x5b4425,_0x2e2286){super(_0x2e2286),this['sourceElement']=_0x5b4425,this['model']['document']['createRoot']();const _0x3c7a2a=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x3c7a2a);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x2b9287,_0x5a3124){const _0x509d98=new this(_0x2b9287,_0x5a3124);return await _0x509d98['initPlugins'](),await _0x509d98['ui']['init'](_0x2b9287),await _0x509d98['data']['init'](_0x509d98['config']['get']('initialData')||''),_0x509d98['fire']('ready'),_0x509d98;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x402cd2{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5abdac){function _0x6275b7(_0x53512f){return _0x53512f['map'](_0x48390c=>String['fromCharCode'](_0x48390c))['join']('');}super(_0x5abdac),this['result']='end',_0x5abdac[_0x6275b7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x6275b7([0x76,0x69,0x65,0x77])][_0x6275b7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x6275b7([0x61,0x75,0x74,0x6f]),_0x5abdac[_0x6275b7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x6275b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x6275b7([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x6275b7([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x6275b7([0x6f,0x6b])});}}class H extends _0x402cd2{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x111266){if(super(_0x111266),!this['editor']['config']['get']('revisionHistory'))throw new _0x4b5491('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x2d2257=>this['_showRevisionViewer']({..._0x2d2257,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x45b33e=>this['_closeRevisionViewer'](_0x45b33e)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x1473b0=>this['_restoreRevision'](_0x1473b0)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x385e82){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x385e82;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x37b533){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x37b533);}['getRevision'](_0x836879){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x836879);}['getRevisions'](_0x5899a1){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x5899a1||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x2e7210=this['editor'],_0x165228=_0x17e5d9(_0x2e7210,p),_0x497b9c=_0x2e7210['plugins']['get']('RevisionTracker'),_0x1a6fd5=_0x2e7210['plugins']['get']('Users')['users'];return _0x165228['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x165228['lazyRoots'],(_0x165228['plugins']['push'](k,d,m,class extends _0x402cd2{static get['requires'](){return[d,'Users'];}['init'](){const _0x1976e0=this['editor']['plugins']['get']('Users');for(const _0x29cd51 of _0x1a6fd5)_0x29cd51['isAnonymous']||_0x1976e0['getUser'](_0x29cd51['id'])||_0x1976e0['addUser'](_0x29cd51);const _0x18944a=_0x497b9c['repository']['getRevisions']();let _0x362ad7=null;const _0x5a7b78=this['editor']['plugins']['get']('RevisionViewer');_0x5a7b78['adapter']=_0x497b9c['adapter'],_0x5a7b78['bind']('isEnabled')['to'](_0x497b9c),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x2e7210,'isReadOnly',_0x9acfd6=>!_0x9acfd6);for(const _0x2f6a93 of _0x18944a){const _0x4d067a=null===_0x2f6a93['creator'];if(_0x4d067a&&_0x2f6a93['toVersion']===_0x2f6a93['fromVersion'])continue;const _0x26b04a=_0x2f6a93['toJSON']();_0x5a7b78['addRevisionData'](_0x26b04a,(_0x527beb,_0x485f9f,_0x1c801d)=>{if(_0x4d067a){if(_0x362ad7)_0x362ad7['_update'](_0x527beb,_0x485f9f);else{if(!_0x485f9f){const _0x15efa8=_0x1c801d['toJSON']();_0x15efa8['id']=_0x550c17(),_0x497b9c['saveRevision'](_0x15efa8,_0x1c801d['toVersion'])['then'](_0x43a8a4=>{_0x362ad7=_0x43a8a4;});}}}else _0x2f6a93['_update'](_0x527beb,_0x485f9f);});}}},g),_0x165228);}['_enhanceShowRevisionViewerCallback'](){const _0x481803=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0xfdac09=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x572dae=this['editor']['plugins']['get']('Autosave');await _0x572dae['save']();}else await _0xfdac09['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x35247a=this['editor']['plugins']['get']('Dialog');_0x35247a['isOpen']&&_0x35247a['hide']();}const _0x45c022=this['_getRevisionViewerEditorConfig']();return _0x481803(_0x45c022)['then'](_0x378434=>{return(this['_viewerEditor']=_0x378434,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x378434;})['catch'](_0x2474c8=>(console['error'](_0x2474c8),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x342a29=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'](),_0x342a29(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x3f5b42=this['editor']['plugins']['get']('Annotations');_0x3f5b42['refreshVisibility'](),_0x3f5b42['refreshPositioning']();}})));}['_showRevisionViewer'](_0x3c2ad2){const _0x521e8f=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x58442d=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x72c55e=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x72c55e,_0x3c2ad2)['then'](_0x477665=>(_0x58442d['style']['display']='block',_0x521e8f['style']['display']='none',_0x477665));}['_closeRevisionViewer'](_0xa83353){const _0x383a39=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x383a39['style']['display']='',_0xa83353['destroy']();}async['_restoreRevision'](_0x572d18){const _0x25331d=this['editor'],_0x1f5bde=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x5d4c54=_0x25331d['plugins']['get']('RevisionTracker'),_0x5b5f1d=_0x1f5bde['repository']['getRevision'](_0x572d18);let _0x5cb681,_0x27e3a6,_0xad431;try{_0x5cb681=await _0x1f5bde['getRevisionData'](_0x5b5f1d),_0x27e3a6=await _0x1f5bde['getRevisionRootsAttributes'](_0x5b5f1d);}catch(_0x4af8cb){return void console['error'](_0x4af8cb);}_0x25331d['model']['change'](_0x56103f=>{for(const _0x3c42cd of Array['from'](_0x25331d['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x56103f['removeMarker'](_0x3c42cd);}),_0x1f5bde['isReady']=!0x1,_0x25331d['model']['enqueueChange'](_0x470633=>{_0x470633['setSelection'](null),_0x470633['removeSelectionAttribute'](_0x25331d['model']['document']['selection']['getAttributeKeys']());const _0x28877f=Object['keys'](_0x5cb681);for(const _0x146fc8 of _0x25331d['model']['document']['roots'])'$graveyard'!=_0x146fc8['rootName']&&_0x146fc8['isAttached']()&&!_0x28877f['includes'](_0x146fc8['rootName'])&&_0x470633['detachRoot'](_0x146fc8);for(const _0x4474ba of _0x28877f){let _0x5f678a=_0x25331d['model']['document']['getRoot'](_0x4474ba);_0x5f678a&&_0x5f678a['isAttached']()||(_0x5f678a=_0x470633['addRoot'](_0x4474ba));const _0x590946=_0x27e3a6[_0x4474ba],_0x4fd649=Object['keys'](_0x590946),_0x4f6db9=_0x5cb681[_0x4474ba];for(const _0x54e67f of _0x5f678a['getAttributeKeys']())_0x4fd649['includes'](_0x54e67f)||_0x470633['removeAttribute'](_0x54e67f,_0x5f678a);for(const _0x40b9d9 of _0x4fd649)_0x470633['setAttribute'](_0x40b9d9,_0x27e3a6[_0x4474ba][_0x40b9d9],_0x5f678a);_0x470633['remove'](_0x470633['createRangeIn'](_0x5f678a)),_0x470633['insert'](_0x25331d['data']['parse'](_0x4f6db9,_0x5f678a),_0x5f678a,0x0);}});const _0x391307=R(_0x25331d['locale'],'Restored');if(_0x5b5f1d['name'])_0xad431=-0x1==_0x5b5f1d['name']['indexOf'](_0x391307)?_0x391307+':\x20'+_0x5b5f1d['name']:_0x5b5f1d['name'];else _0xad431=_0x391307+':\x20'+(_0x5b5f1d['createdAt']['toLocaleDateString'](_0x25331d['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x5b5f1d['createdAt']['toLocaleTimeString'](_0x25331d['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x5d4c54['saveRevision']({'name':_0xad431}),_0x1f5bde['isReady']=!0x0,_0x25331d['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ae as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
28
+ Rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x26371e){super(_0x26371e),this['_revisionViewer']=_0x26371e['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x209ed2=this['_revisionsRepository']['_revisions'],_0x38ffcd=this['_createRevisionActions'](),_0x99aa2f=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0x209ed2,_0x38ffcd,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',(_0x40fee4,_0x23d8eb)=>{_0x23d8eb['revisionViews']['on']('add',(_0x1c0ea7,_0x250ddf)=>{_0x250ddf['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)),_0x99aa2f['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x31a984=this['_revisionsRepository']['getRevision'](0x0);if(_0x31a984){const _0x5b01a7=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x31a984['id']);this['_revisionViewer']['compare'](_0x31a984,_0x5b01a7);}}['_handleRevisionSelected'](_0xb299e3,_0x11bbf6){const _0x3bf328=this['_revisionsRepository']['getRevision'](_0x11bbf6['id']),_0x162a1b=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3bf328['id']);this['_revisionViewer']['compare'](_0x3bf328,_0x162a1b);}['_handleRevisionSetName'](_0x3d56a9,_0x579162){this['_revisionsRepository']['getRevision'](_0x579162['id'])['setName'](_0x579162['name']);}['_handleDiffChange'](_0xc7ada4,_0x268d34,_0x44cf24){const _0x46622d=this['_revisionsRepository']['getRevisionsInDiff'](_0x44cf24);_0x46622d['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x46622d),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x46622d[0x0]));}['_createRevisionActions'](){const _0x380ef0=this['editor'],_0x199958=g['availableRevisionActions'],_0x306a53=_0x380ef0['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x306a53['length'])return _0x306a53['map'](_0x307334=>{const _0x6060b8='string'==typeof _0x307334?Object['assign']({},_0x199958[_0x307334]):_0x307334;return _0x6060b8['action']=_0x6060b8['action']['bind'](this,_0x380ef0),_0x6060b8['isVisible']&&(_0x6060b8['isVisible']=_0x6060b8['isVisible']['bind'](this,_0x380ef0)),_0x6060b8;});}}function Rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x21462f},_0x533d19)=>{const _0x53f5cf=_0x21462f['get'](d),_0x2bef09=_0x53f5cf['repository'];let _0x11e480=_0x53f5cf['diff']['newRevisionId'],_0x4c7eb0=_0x533d19['id'];_0x2bef09['getIndex'](_0x11e480)>_0x2bef09['getIndex'](_0x4c7eb0)&&([_0x11e480,_0x4c7eb0]=[_0x4c7eb0,_0x11e480]),_0x53f5cf['compare'](_0x11e480,_0x4c7eb0);},'isVisible':({plugins:_0x196fcf},_0x43d86f)=>{const _0x1e9d81=_0x196fcf['get'](d);return!(_0x1e9d81['repository']['getRevisionsInDiff'](_0x1e9d81['diff'])['length']>0x2)&&!_0x43d86f['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x23de6d,{id:_0x4a2437})=>{_0x23de6d['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4a2437);},'isVisible':({plugins:_0x598bdd},_0x25d907)=>!!_0x598bdd['get'](d)['repository']['getLaterVisibleRevision'](_0x25d907['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x1d6bb1},{id:_0x3329fe,revisionNameView:_0x398630})=>{const _0xde5b9=_0x1d6bb1['get'](d),_0x5dcb61=_0xde5b9['repository']['getEarlierVisibleRevision'](_0x3329fe);_0xde5b9['compare'](_0x3329fe,_0x5dcb61),_0x398630['focus'](),_0x398630['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x1eb9d5,_0x10a12f){super(_0x1eb9d5),this['_view']=_0x10a12f,this['_toolbarConfig']=ht(_0x1eb9d5['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x55951e){const _0x16f456=this['editor'],_0x1a9956=this['view'],_0xd936b6=_0x16f456['editing']['view'],_0x214459=_0x1a9956['editable'],_0x15a2b7=_0xd936b6['document']['getRoot']();_0x214459['name']=_0x15a2b7['rootName'],_0x1a9956['render']();const _0x157873=_0x214459['element'];this['setEditableElement'](_0x214459['name'],_0x157873),_0x1a9956['editable']['bind']('isFocused')['to'](this['focusTracker']),_0xd936b6['attachDomRoot'](_0x157873),this['_elementReplacer']['replace'](_0x55951e,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x37cb91=this['view'],_0x1ee2dc=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x1ee2dc['detachDomRoot'](_0x37cb91['editable']['name']),_0x37cb91['destroy']();}['_initToolbar'](){const _0x18e625=this['view'];_0x18e625['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x18e625['stickyPanel']['limiterElement']=_0x18e625['element'],_0x18e625['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x2ef71b})=>_0x2ef71b),_0x18e625['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x18e625['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x1a8741,_0x354198,_0x15d6d={}){super(_0x1a8741),this['stickyPanel']=new lt(_0x1a8741),this['toolbar']=new nt(_0x1a8741,{'shouldGroupWhenFull':_0x15d6d['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x1a8741,_0x354198);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
29
+ rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x181083,_0x3256a6){super(_0x3256a6),this['sourceElement']=_0x181083,this['model']['document']['createRoot']();const _0x588856=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x588856);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x81fced,_0x912a40){const _0x4d801a=new this(_0x81fced,_0x912a40);return await _0x4d801a['initPlugins'](),await _0x4d801a['ui']['init'](_0x81fced),await _0x4d801a['data']['init'](_0x4d801a['config']['get']('initialData')||''),_0x4d801a['fire']('ready'),_0x4d801a;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x434fd7{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x196dca){function _0x2abd1e(_0xddff99){return _0xddff99['map'](_0x55c3a7=>String['fromCharCode'](_0x55c3a7))['join']('');}super(_0x196dca),this['result']='end',_0x196dca[_0x2abd1e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2abd1e([0x76,0x69,0x65,0x77])][_0x2abd1e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2abd1e([0x61,0x75,0x74,0x6f]),_0x196dca[_0x2abd1e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2abd1e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2abd1e([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2abd1e([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2abd1e([0x6f,0x6b])});}}class H extends _0x434fd7{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x4e3279){if(super(_0x4e3279),!this['editor']['config']['get']('revisionHistory'))throw new _0x2d3871('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x355ae2=>this['_showRevisionViewer']({..._0x355ae2,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x8b3f69=>this['_closeRevisionViewer'](_0x8b3f69)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x2851ff=>this['_restoreRevision'](_0x2851ff)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4af6c5){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4af6c5;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x5831af){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x5831af);}['getRevision'](_0x4da473){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x4da473);}['getRevisions'](_0x271a77){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x271a77||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0xb06a13=this['editor'],_0x399d1f=_0x53a3aa(_0xb06a13,p),_0x2575bc=_0xb06a13['plugins']['get']('RevisionTracker'),_0x24ad0d=_0xb06a13['plugins']['get']('Users')['users'];return _0x399d1f['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x399d1f['lazyRoots'],(_0x399d1f['plugins']['push'](k,d,m,class extends _0x434fd7{static get['requires'](){return[d,'Users'];}['init'](){const _0x317e73=this['editor']['plugins']['get']('Users');for(const _0x2311b2 of _0x24ad0d)_0x2311b2['isAnonymous']||_0x317e73['getUser'](_0x2311b2['id'])||_0x317e73['addUser'](_0x2311b2);const _0x28137c=_0x2575bc['repository']['getRevisions']();let _0x3947ae=null;const _0x5dffff=this['editor']['plugins']['get']('RevisionViewer');_0x5dffff['adapter']=_0x2575bc['adapter'],_0x5dffff['bind']('isEnabled')['to'](_0x2575bc),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0xb06a13,'isReadOnly',_0x50a1a6=>!_0x50a1a6);for(const _0x295d20 of _0x28137c){const _0x3f65bf=null===_0x295d20['creator'];if(_0x3f65bf&&_0x295d20['toVersion']===_0x295d20['fromVersion'])continue;const _0x470970=_0x295d20['toJSON']();_0x5dffff['addRevisionData'](_0x470970,(_0x1d480a,_0xd481c1,_0x7b3da2)=>{if(_0x3f65bf){if(_0x3947ae)_0x3947ae['_update'](_0x1d480a,_0xd481c1);else{if(!_0xd481c1){const _0xac54c8=_0x7b3da2['toJSON']();_0xac54c8['id']=_0x4c02ac(),_0x2575bc['saveRevision'](_0xac54c8,_0x7b3da2['toVersion'])['then'](_0x53a1bd=>{_0x3947ae=_0x53a1bd;});}}}else _0x295d20['_update'](_0x1d480a,_0xd481c1);});}}},g),_0x399d1f);}['_enhanceShowRevisionViewerCallback'](){const _0x2989f1=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x176415=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0xe2f835=this['editor']['plugins']['get']('Autosave');await _0xe2f835['save']();}else await _0x176415['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x506479=this['editor']['plugins']['get']('Dialog');_0x506479['isOpen']&&_0x506479['hide']();}const _0x2b4e9f=this['_getRevisionViewerEditorConfig']();return _0x2989f1(_0x2b4e9f)['then'](_0x2c4c33=>{return(this['_viewerEditor']=_0x2c4c33,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x2c4c33;})['catch'](_0x406ee1=>(console['error'](_0x406ee1),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x1b82dd=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'](),_0x1b82dd(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x48f8c8=this['editor']['plugins']['get']('Annotations');_0x48f8c8['refreshVisibility'](),_0x48f8c8['refreshPositioning']();}})));}['_showRevisionViewer'](_0x8743fe){const _0x290613=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4eb886=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x130d08=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x130d08,_0x8743fe)['then'](_0x18fa50=>(_0x4eb886['style']['display']='block',_0x290613['style']['display']='none',_0x18fa50));}['_closeRevisionViewer'](_0x1470f3){const _0x24f149=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x24f149['style']['display']='',_0x1470f3['destroy']();}async['_restoreRevision'](_0x12fe80){const _0x1d295d=this['editor'],_0x45e501=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x2885d1=_0x1d295d['plugins']['get']('RevisionTracker'),_0x207d7e=_0x45e501['repository']['getRevision'](_0x12fe80);let _0x343b0c,_0x1704ea,_0x5b7cbf;try{_0x343b0c=await _0x45e501['getRevisionData'](_0x207d7e),_0x1704ea=await _0x45e501['getRevisionRootsAttributes'](_0x207d7e);}catch(_0x153179){return void console['error'](_0x153179);}_0x1d295d['model']['change'](_0x5cb962=>{for(const _0x15cb1c of Array['from'](_0x1d295d['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x5cb962['removeMarker'](_0x15cb1c);}),_0x45e501['isReady']=!0x1,_0x1d295d['model']['enqueueChange'](_0xf53901=>{_0xf53901['setSelection'](null),_0xf53901['removeSelectionAttribute'](_0x1d295d['model']['document']['selection']['getAttributeKeys']());const _0xe65221=Object['keys'](_0x343b0c);for(const _0x4a0a14 of _0x1d295d['model']['document']['roots'])'$graveyard'!=_0x4a0a14['rootName']&&_0x4a0a14['isAttached']()&&!_0xe65221['includes'](_0x4a0a14['rootName'])&&_0xf53901['detachRoot'](_0x4a0a14);for(const _0x5b5438 of _0xe65221){let _0x3002ea=_0x1d295d['model']['document']['getRoot'](_0x5b5438);_0x3002ea&&_0x3002ea['isAttached']()||(_0x3002ea=_0xf53901['addRoot'](_0x5b5438));const _0x2916f5=_0x1704ea[_0x5b5438],_0x570074=Object['keys'](_0x2916f5),_0x16aa5a=_0x343b0c[_0x5b5438];for(const _0x5cc03f of _0x3002ea['getAttributeKeys']())_0x570074['includes'](_0x5cc03f)||_0xf53901['removeAttribute'](_0x5cc03f,_0x3002ea);for(const _0x456975 of _0x570074)_0xf53901['setAttribute'](_0x456975,_0x1704ea[_0x5b5438][_0x456975],_0x3002ea);_0xf53901['remove'](_0xf53901['createRangeIn'](_0x3002ea)),_0xf53901['insert'](_0x1d295d['data']['parse'](_0x16aa5a,_0x3002ea),_0x3002ea,0x0);}});const _0x487b96=R(_0x1d295d['locale'],'Restored');if(_0x207d7e['name'])_0x5b7cbf=-0x1==_0x207d7e['name']['indexOf'](_0x487b96)?_0x487b96+':\x20'+_0x207d7e['name']:_0x207d7e['name'];else _0x5b7cbf=_0x487b96+':\x20'+(_0x207d7e['createdAt']['toLocaleDateString'](_0x1d295d['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x207d7e['createdAt']['toLocaleTimeString'](_0x1d295d['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x2885d1['saveRevision']({'name':_0x5b7cbf}),_0x45e501['isReady']=!0x0,_0x1d295d['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,te as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};