@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250303.0 → 0.0.0-nightly-20250304.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 _0x3b0443,uid as _0x2ce67f,Collection as _0x1c2945,logWarning as _0x3d60d7,FocusTracker as _0x121b47,KeystrokeHandler as _0x56ec72,scrollViewportToShowTarget as _0x8680e2,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x59560c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x176d1b,set as _0x5f409b,unset as _0xa6a217,isEqual as _0x2f15d0}from'lodash-es';import{Plugin as _0x3b4198,PendingActions as _0x144827,icons as _0x474d70,Command as _0x313c78,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x101374,getMarkerDomElement as _0x3640e7,ConfirmMixin as _0x2d3524,sanitizeEditorConfig as _0x3d967e}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x358982,Element as ft,Range as vt,ViewUIElement as _0x3f29ac,ViewRawElement as _0x20d19f,ViewEmptyElement as _0x1af407,ViewAttributeElement as _0x1c61f2,ViewContainerElement as _0x27f5bf,Position as gt,ViewText as _0x311b17,ViewElement as _0x24f07d,DocumentFragment as mt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x3d79be,injectCssTransitionDisabler as ts,submitHandler as _0x30088a,LabeledFieldView as nt,createLabeledInputText as _0x38e855,createDropdown as _0x48876e,ListView as te,ListItemView as _0xc67a9c,ButtonView as _0x69ddbd,MenuBarMenuView as _0x1bbccd,MenuBarMenuListView as _0x57c677,MenuBarMenuListItemView as _0x1c2932,MenuBarMenuListItemButtonView as _0x1d4cc2,ContextualBalloon as _0x3baed2,ToolbarSeparatorView as _0x2c7dec,IconView as _0x136d6b,addListToDropdown as _0x231d08,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as ut,ToolbarView as lt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0xf9fccd}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
- _0x3b0443(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x2afa03){super(),this['id']=_0x2afa03['id']||_0x2ce67f(),this['creator']=_0x2afa03['creator']||null,this['authors']=_0x2afa03['authors']||[],this['diffData']=_0x2afa03['diffData']||null,this['toVersion']=_0x2afa03['toVersion']||0x0,this['fromVersion']=_0x2afa03['fromVersion']||0x0,this['set']('name',_0x2afa03['name']||''),this['set']('createdAt',_0x2afa03['createdAt']||new Date()),this['set']('attributes',_0x2afa03['attributes']||{});}['setName'](_0x147872){this['_update']({'name':_0x147872});}['setAttribute'](_0x248f9e,_0x1917bf){const _0x3cd20b=_0x176d1b(this['attributes']);_0x5f409b(_0x3cd20b,_0x248f9e,_0x1917bf),this['_update']({'attributes':_0x3cd20b});}['removeAttribute'](_0x2bc51b){const _0x13d182=_0x176d1b(this['attributes']);_0xa6a217(_0x13d182,_0x2bc51b),this['_update']({'attributes':_0x13d182});}['_update'](_0x3ab743,_0x4955a6=!0x1){let _0x2574aa=!0x1;const _0x2d5efa={'id':this['id']},_0x46a01d=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x4a78d4 of _0x46a01d){const _0x27f523=_0x3ab743[_0x4a78d4];void 0x0!==_0x27f523&&_0x27f523!==this[_0x4a78d4]&&(this[_0x4a78d4]=_0x27f523,_0x2d5efa[_0x4a78d4]=_0x27f523,_0x2574aa=!0x0);}_0x2574aa&&(_0x2d5efa['authors']&&(_0x2d5efa['authorsIds']=_0x2d5efa['authors']['map'](_0x11614a=>_0x11614a['id']),delete _0x2d5efa['authors']),this['fire']('_update',_0x2d5efa,_0x4955a6));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x1f643a=>_0x1f643a['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x3b4198{['_revisions'];static get['requires'](){return[_0x101374];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x2d8444){super(_0x2d8444),this['_revisions']=new _0x1c2945();}['afterInit'](){!async function(_0x1fff61){const _0x2150b8=_0x345b7e([0x52,0x31,0x63,0x61,0x58,0x50,0x74,0x62,0x6a,0x39,0x4e,0x55,0x78,0x41,0x64,0x30,0x51,0x5a,0x69,0x67,0x44,0x66,0x6f,0x4d,0x46,0x70,0x77,0x54,0x73,0x36,0x32,0x43,0x71,0x33,0x45,0x53,0x6c,0x7a,0x4a,0x6d,0x37,0x4f,0x42,0x6b,0x6e,0x76,0x4c,0x48,0x34,0x47,0x59,0x38,0x68,0x56,0x72,0x65,0x75,0x35,0x4b,0x57,0x79,0x49]),_0x3c6011=0xeb829,_0x395302=0x5c49b381,_0x53b6a4=0x5c4ed291^_0x395302,_0x2012be=window[_0x345b7e([0x44,0x61,0x74,0x65])][_0x345b7e([0x6e,0x6f,0x77])](),_0x557365=_0x1fff61[_0x345b7e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2637d7=new window[(_0x345b7e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6ad0da=>{_0x557365[_0x345b7e([0x6f,0x6e,0x63,0x65])](_0x345b7e([0x72,0x65,0x61,0x64,0x79]),_0x6ad0da);}),_0x43da75={[_0x345b7e([0x6b,0x74,0x79])]:_0x345b7e([0x45,0x43]),[_0x345b7e([0x75,0x73,0x65])]:_0x345b7e([0x73,0x69,0x67]),[_0x345b7e([0x63,0x72,0x76])]:_0x345b7e([0x50,0x2d,0x32,0x35,0x36]),[_0x345b7e([0x78])]:_0x345b7e([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]),[_0x345b7e([0x79])]:_0x345b7e([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]),[_0x345b7e([0x61,0x6c,0x67])]:_0x345b7e([0x45,0x53,0x32,0x35,0x36])},_0x46d784=_0x557365[_0x345b7e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x345b7e([0x67,0x65,0x74])](_0x345b7e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x31f221(){let _0x5671f6,_0x3a51f3=null,_0x5edfd7=null;try{if(_0x46d784==_0x345b7e([0x47,0x50,0x4c]))return _0x345b7e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5671f6=_0x1f022e(),!_0x5671f6)return _0x345b7e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5671f6[_0x345b7e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5edfd7=_0x3ea588(_0x5671f6[_0x345b7e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5671f6[_0x345b7e([0x6a,0x74,0x69])])),await _0xf19fdc()?_0x3fcd96()?_0x3b2c48()?_0x345b7e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x554fcd()?(_0x5671f6[_0x345b7e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x345b7e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3a51f3=_0x3d9267(_0x345b7e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5671f6[_0x345b7e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x345b7e([0x74,0x72,0x69,0x61,0x6c])&&(_0x3a51f3=_0x3d9267(_0x345b7e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x17af09()):_0x345b7e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x345b7e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x345b7e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5eb51f){return _0x345b7e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3b2c48(){const _0x4f158a=[_0x345b7e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x345b7e([0x74,0x72,0x69,0x61,0x6c])][_0x345b7e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5671f6[_0x345b7e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2012be/0x3e8:0xe10*_0x53b6a4;return _0x5671f6[_0x345b7e([0x65,0x78,0x70])]<_0x4f158a;}function _0x3fcd96(){const _0x5198f1=_0x5671f6[_0x345b7e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5198f1)return!0x1;if(_0x5198f1[_0x345b7e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x345b7e([0x2a])))return!0x0;if(_0x5198f1[_0x345b7e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x345b7e([0x52,0x48])))return!0x0;if(_0x5198f1[_0x345b7e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x345b7e([0x52,0x52,0x48]))){if(_0x122b35())return!0x0;if(_0x11b609()||_0x431463())return!0x0;}return!0x1;}function _0x554fcd(){const _0x3aa304=_0x5671f6[_0x345b7e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3aa304||0x0==_0x3aa304[_0x345b7e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x35c2c2}=new URL(window[_0x345b7e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3aa304[_0x345b7e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35c2c2))return!0x0;const _0x4e240d=_0x35c2c2[_0x345b7e([0x73,0x70,0x6c,0x69,0x74])](_0x345b7e([0x2e]));return _0x3aa304[_0x345b7e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xfdfcb7=>_0xfdfcb7[_0x345b7e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x345b7e([0x2a])))[_0x345b7e([0x6d,0x61,0x70])](_0x348810=>_0x348810[_0x345b7e([0x73,0x70,0x6c,0x69,0x74])](_0x345b7e([0x2e])))[_0x345b7e([0x73,0x6f,0x6d,0x65])](_0x3edbf8=>_0x4e240d[_0x345b7e([0x65,0x76,0x65,0x72,0x79])]((_0x98272e,_0x7cd157)=>_0x3edbf8[_0x7cd157]===_0x98272e||_0x3edbf8[_0x7cd157]===_0x345b7e([0x2a])));}function _0x17af09(){return _0x3a51f3&&_0x5edfd7?new window[(_0x345b7e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x159edd,_0x991b67)=>{_0x3a51f3[_0x345b7e([0x74,0x68,0x65,0x6e])](_0x159edd,_0x991b67),_0x5edfd7[_0x345b7e([0x74,0x68,0x65,0x6e])](_0x2d3890=>{_0x2d3890!=_0x345b7e([0x56,0x61,0x6c,0x69,0x64])&&_0x159edd(_0x2d3890);},_0x991b67);}):_0x3a51f3||_0x5edfd7||_0x345b7e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3ea588(_0x55de02,_0x32949e){return new window[(_0x345b7e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc13756=>{if(_0x430fb7())return _0xc13756(_0x345b7e([0x56,0x61,0x6c,0x69,0x64]));_0x968c89(),_0x557365[_0x345b7e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x345b7e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xd4ffb=!0x1;const _0x4b07fe=_0x2ce67f();function _0x4f301d(_0xa6a431){return!!_0xa6a431&&(typeof _0xa6a431===_0x345b7e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xa6a431===_0x345b7e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xa6a431[_0x345b7e([0x74,0x68,0x65,0x6e])]===_0x345b7e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xa6a431[_0x345b7e([0x63,0x61,0x74,0x63,0x68])]===_0x345b7e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4f45e4(_0x51495d){_0x191412(_0x51495d)[_0x345b7e([0x74,0x68,0x65,0x6e])](_0x21ab72=>{if(!_0x21ab72||_0x21ab72[_0x345b7e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x345b7e([0x6f,0x6b]))return _0x345b7e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4e4da3(_0x2ff872(_0x4b07fe+_0x32949e))!=_0x21ab72[_0x345b7e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x345b7e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x345b7e([0x56,0x61,0x6c,0x69,0x64]);})[_0x345b7e([0x74,0x68,0x65,0x6e])](_0x45d0e7=>(_0x19afc1(),_0x45d0e7),()=>{const _0x1a1ab7=_0x3e1c43();return null==_0x1a1ab7?(_0x19afc1(),_0x345b7e([0x56,0x61,0x6c,0x69,0x64])):_0x345b7e(_0x2012be-_0x1a1ab7>(0x78453781^_0x395302)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x345b7e([0x74,0x68,0x65,0x6e])](_0xc13756)[_0x345b7e([0x63,0x61,0x74,0x63,0x68])](()=>{_0xc13756(_0x345b7e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x331407=0x5c7f5d01^_0x395302;function _0x19afc1(){const _0x17a166=_0x345b7e([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e4da3(_0x2ff872(_0x55de02)),_0x390693=_0xe1e2a9(_0x4e4da3(window[_0x345b7e([0x4d,0x61,0x74,0x68])][_0x345b7e([0x63,0x65,0x69,0x6c])](_0x2012be/_0x331407)));window[_0x345b7e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x345b7e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x17a166,_0x390693);}function _0x3e1c43(){const _0x595235=_0x345b7e([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e4da3(_0x2ff872(_0x55de02)),_0x5dcaac=window[_0x345b7e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x345b7e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x595235);return _0x5dcaac?window[_0x345b7e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe1e2a9(_0x5dcaac),0x10)*_0x331407:null;}function _0x191412(_0x4ac5d7){return new window[(_0x345b7e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d497d,_0x3debaf)=>{_0x4ac5d7[_0x345b7e([0x74,0x68,0x65,0x6e])](_0x1d497d,_0x3debaf),window[_0x345b7e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3debaf,0x5c486741^_0x395302);});}}_0x557365[_0x345b7e([0x6f,0x6e])](_0x345b7e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4bde93,_0x2f79e1)=>{if(_0x2f79e1[0x0]!=_0x55de02)return _0xc13756(_0x345b7e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2f79e1[0x1]={..._0x2f79e1[0x1],[_0x345b7e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4b07fe};},{[_0x345b7e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x345b7e([0x68,0x69,0x67,0x68])}),_0x557365[_0x345b7e([0x6f,0x6e])](_0x345b7e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x441766=>{_0x4f301d(_0x441766[_0x345b7e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xd4ffb=!0x0,_0x4f45e4(_0x441766[_0x345b7e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x345b7e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x345b7e([0x6c,0x6f,0x77])}),_0x2637d7[_0x345b7e([0x74,0x68,0x65,0x6e])](()=>{_0xd4ffb||_0xc13756(_0x345b7e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x430fb7(){return _0x557365[_0x345b7e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x345b7e([0x76,0x69,0x65,0x77])][_0x345b7e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x345b7e([0x61,0x75,0x74,0x6f]);}function _0x968c89(){_0x557365[_0x345b7e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x345b7e([0x76,0x69,0x65,0x77])][_0x345b7e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x345b7e([0x61,0x75,0x74,0x6f]);}}function _0x3d9267(_0x44c3a7){const _0x1f564c=[new window[(_0x345b7e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f1953=>setTimeout(_0x4f1953,0x5c408d4d^_0x395302)),_0x2637d7[_0x345b7e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x345b7e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xecee26=>{const _0x1edc83=0x5c49b386^_0x395302,_0x21e3e3=_0x1fff61[_0x345b7e([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x21d812(){_0x21e3e3[_0x345b7e([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x1edc83&&_0xecee26();}_0x21d812(),_0x21e3e3[_0x345b7e([0x6f,0x6e])](_0x345b7e([0x61,0x64,0x64]),_0x21d812);})),new window[(_0x345b7e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26eaa6=>{function _0x321b61(){for(const _0xbd8db8 in window)if(window[_0x345b7e([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x345b7e([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0xbd8db8))&&window[_0xbd8db8]==_0x3c6011)return _0x26eaa6();_0x557365[_0x345b7e([0x73,0x74,0x61,0x74,0x65])]!=_0x345b7e([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x345b7e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x321b61,0x5c49a009^_0x395302);}_0x2bb179(_0x345b7e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x321b61();})];return window[_0x345b7e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x345b7e([0x72,0x61,0x63,0x65])](_0x1f564c)[_0x345b7e([0x74,0x68,0x65,0x6e])](()=>_0x44c3a7);}async function _0x549912(){if(await _0x2637d7,_0x2bb179(_0x345b7e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x2fa85b=_0x1fff61[_0x345b7e([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0xf6e883=_0x1fff61[_0x345b7e([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])](_0x2fa85b[_0x345b7e([0x69,0x64])]),_0x493df9=_0xea40b(_0x345b7e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x493df9[_0x345b7e([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x2fa85b['id'],_0xf6e883?_0xf6e883['id']:null,!0x0),_0x493df9[_0x345b7e([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x345b7e([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x493df9[_0x345b7e([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x493df9[_0x345b7e([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x3725d9,void(_0x493df9[_0x345b7e([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x3725d9);}if(_0x2bb179(_0x345b7e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x34360c=_0xea40b(_0x345b7e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x34360c[_0x345b7e([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x345b7e([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x34360c[_0x345b7e([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x34360c[_0x345b7e([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x3725d9,_0x34360c[_0x345b7e([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x3725d9;}_0x557365[_0x345b7e([0x6d,0x6f,0x64,0x65,0x6c])][_0x345b7e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3725d9,_0x557365[_0x345b7e([0x6d,0x6f,0x64,0x65,0x6c])][_0x345b7e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3725d9,_0x557365[_0x345b7e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x345b7e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x122b35(){return _0x2bb179(_0x345b7e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xea40b(_0x345b7e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x345b7e([0x73,0x74,0x61,0x74,0x65])]==_0x345b7e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x11b609(){return _0x2bb179(_0x345b7e([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 _0x431463(){return _0x2bb179(_0x345b7e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x48a3ac(_0xde3120){const _0x40a2de=_0x1729c7();_0x557365[_0x40a2de]=_0x345b7e([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])+_0xde3120,_0xde3120[_0x345b7e([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x345b7e([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x1729c7()]=_0x3c6011),_0xde3120!=_0x345b7e([0x56,0x61,0x6c,0x69,0x64])&&_0x549912();}function _0x1729c7(){const _0x2e7cd3=window[_0x345b7e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x345b7e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x345b7e([0x6e,0x6f,0x77])]())[_0x345b7e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x345b7e([0x2e]),'');let _0x1cf799=_0x345b7e([0x52]);for(let _0x1a290a=0x0;_0x1a290a<_0x2e7cd3[_0x345b7e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1a290a+=0x2){let _0x5a9d62=window[_0x345b7e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e7cd3[_0x345b7e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1a290a,_0x1a290a+0x2));_0x5a9d62>=_0x2150b8[_0x345b7e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5a9d62-=_0x2150b8[_0x345b7e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1cf799+=_0x2150b8[_0x5a9d62];}return _0x1cf799;}function _0x1f022e(){const _0x34bcd4=_0x46d784[_0x345b7e([0x73,0x70,0x6c,0x69,0x74])](_0x345b7e([0x2e]));if(0x3!=_0x34bcd4[_0x345b7e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x68a604(_0x34bcd4[0x1]);function _0x68a604(_0x1db5ec){const _0x2e4175=_0x504693(_0x1db5ec);return _0x2e4175&&_0x224840()?_0x2e4175:null;function _0x224840(){const _0x44df77=_0x2e4175[_0x345b7e([0x6a,0x74,0x69])],_0x37f688=window[_0x345b7e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x44df77[_0x345b7e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x44df77[_0x345b7e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x22963e={..._0x2e4175,[_0x345b7e([0x6a,0x74,0x69])]:_0x44df77[_0x345b7e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x44df77[_0x345b7e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x22963e[_0x345b7e([0x76,0x63])],_0x2ff872(_0x22963e)==_0x37f688;}}}async function _0xf19fdc(){let _0x10e4a7=!0x0;try{const _0x2ed778=_0x46d784[_0x345b7e([0x73,0x70,0x6c,0x69,0x74])](_0x345b7e([0x2e])),[_0x536763,_0x58dce1,_0x150d2a]=_0x2ed778;return _0x326c5c(_0x536763),await _0x26fd58(_0x536763,_0x58dce1,_0x150d2a),_0x10e4a7;}catch(_0x4a2351){return!0x1;}function _0x326c5c(_0x4eeb24){const _0x3b4789=_0x504693(_0x4eeb24);_0x3b4789&&_0x3b4789[_0x345b7e([0x61,0x6c,0x67])]==_0x345b7e([0x45,0x53,0x32,0x35,0x36])||(_0x10e4a7=!0x1);}async function _0x26fd58(_0x5062cd,_0x15cdb9,_0x29d3e4){const _0x21f93d=window[_0x345b7e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x345b7e([0x66,0x72,0x6f,0x6d])](_0x241ac8(_0x29d3e4),_0x185909=>_0x185909[_0x345b7e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4690da=new window[(_0x345b7e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x345b7e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5062cd+_0x345b7e([0x2e])+_0x15cdb9),_0x341333=window[_0x345b7e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x345b7e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x341333)return;const _0x3c33de=await _0x341333[_0x345b7e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x345b7e([0x6a,0x77,0x6b]),_0x43da75,{[_0x345b7e([0x6e,0x61,0x6d,0x65])]:_0x345b7e([0x45,0x43,0x44,0x53,0x41]),[_0x345b7e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x345b7e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x345b7e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x341333[_0x345b7e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x345b7e([0x6e,0x61,0x6d,0x65])]:_0x345b7e([0x45,0x43,0x44,0x53,0x41]),[_0x345b7e([0x68,0x61,0x73,0x68])]:{[_0x345b7e([0x6e,0x61,0x6d,0x65])]:_0x345b7e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3c33de,_0x21f93d,_0x4690da)||(_0x10e4a7=!0x1);}}function _0x504693(_0xf78da){return _0xf78da[_0x345b7e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x345b7e([0x65,0x79]))?JSON[_0x345b7e([0x70,0x61,0x72,0x73,0x65])](_0x241ac8(_0xf78da)):null;}function _0x241ac8(_0x5dbdf0){return window[_0x345b7e([0x61,0x74,0x6f,0x62])](_0x5dbdf0[_0x345b7e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x345b7e([0x2b]))[_0x345b7e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x345b7e([0x2f])));}function _0x2ff872(_0x42bfd0){let _0x435023=0x1505;function _0x5760f5(_0x4f79aa){for(let _0x5b33f4=0x0;_0x5b33f4<_0x4f79aa[_0x345b7e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5b33f4++){const _0xa95c7b=_0x4f79aa[_0x345b7e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5b33f4);_0x435023=(_0x435023<<0x5)+_0x435023+_0xa95c7b,_0x435023&=_0x435023;}}function _0x2b4d8d(_0x424379){Array[_0x345b7e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x424379)?_0x424379[_0x345b7e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2b4d8d):_0x424379&&typeof _0x424379==_0x345b7e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x345b7e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x424379)[_0x345b7e([0x73,0x6f,0x72,0x74])]()[_0x345b7e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x14097f,_0x3e85dd])=>{_0x5760f5(_0x14097f),_0x2b4d8d(_0x3e85dd);}):_0x5760f5(window[_0x345b7e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x424379));}return _0x2b4d8d(_0x42bfd0),_0x435023>>>0x0;}function _0x4e4da3(_0x58c15a){return _0x58c15a[_0x345b7e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x345b7e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x345b7e([0x30]));}function _0xe1e2a9(_0x17f86c){return _0x17f86c[_0x345b7e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x345b7e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x345b7e([0x6a,0x6f,0x69,0x6e])]('');}function _0x2bb179(_0x2256cb){return _0x557365[_0x345b7e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x345b7e([0x68,0x61,0x73])](_0x2256cb);}function _0xea40b(_0x5545b7){return _0x557365[_0x345b7e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x345b7e([0x67,0x65,0x74])](_0x5545b7);}function _0x3725d9(){}function _0x345b7e(_0x2f90ca){return _0x2f90ca['map'](_0x3df06c=>String['fromCharCode'](_0x3df06c))['join']('');}_0x48a3ac(await _0x31f221());}(this);}['createRevision'](_0x506f17){const _0x565466=this['editor']['plugins']['get']('Users');return new a({'id':_0x506f17['id'],'name':_0x506f17['name'],'creator':_0x506f17['creatorId']?_0x565466['getUser'](_0x506f17['creatorId']):null,'diffData':_0x506f17['diffData']||_0x506f17['data'],'authors':_0x506f17['authorsIds']['map'](_0x2f7717=>_0x565466['getUser'](_0x2f7717)),'createdAt':new Date(_0x506f17['createdAt']),'attributes':_0x506f17['attributes'],'fromVersion':_0x506f17['fromVersion'],'toVersion':_0x506f17['toVersion']});}['addRevision'](_0x5c9f23,_0x5edcb7=0x0){this['_revisions']['add'](_0x5c9f23,_0x5edcb7);}['getRevision'](_0x358700){return this['_revisions']['get'](_0x358700);}['getRevisions'](_0x523a12={'toJSON':!0x1}){const _0x1dbdcc=Array['from'](this['_revisions']);return _0x1dbdcc['reverse'](),_0x523a12['toJSON']?_0x1dbdcc['map'](_0x49cbfa=>_0x49cbfa['toJSON']()):_0x1dbdcc;}['getIndex'](_0xffbee8){return this['_revisions']['getIndex'](_0xffbee8);}['getEarlierVisibleRevision'](_0x4b7bd6){const [,_0x165a36]=this['getRevisionsIterator'](_0x4b7bd6,{'direction':'earlier'});return _0x165a36;}['getLaterVisibleRevision'](_0x525d15){const [,_0x547f18]=this['getRevisionsIterator'](_0x525d15,{'direction':'later'});return _0x547f18;}['getRevisionsInDiff'](_0x3973ea){const _0x30181c=[];for(const _0x42ba68 of this['getRevisionsIterator'](_0x3973ea['newRevisionId']))if(_0x30181c['push'](_0x42ba68),_0x42ba68['id']===_0x3973ea['oldRevisionId'])break;return _0x30181c;}*['getRevisionsIterator'](_0x1e8d7e,{direction:_0x2058a7='earlier',filter:_0xde107=()=>!0x0}={}){const _0xe7d2a1='earlier'===_0x2058a7?0x1:-0x1;let _0x42d16a=this['_revisions']['get'](_0x1e8d7e),_0x39ca6f=this['getIndex'](_0x42d16a);for(yield _0x42d16a;_0x42d16a;){if(_0x39ca6f+=_0xe7d2a1,_0x42d16a=this['getRevision'](_0x39ca6f),!_0x42d16a)return;_0xde107(_0x42d16a)&&(yield _0x42d16a);}}}function m(_0x441991,_0x392f90,_0x525b15){const t=_0x441991['t'];switch(_0x392f90){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'},_0x525b15);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x525b15);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const P={'c':_0x27f5bf,'a':_0x1c61f2,'e':_0x1af407,'r':_0x20d19f,'u':_0x3f29ac};class l extends _0x3b4198{['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[_0x101374,j,_0x144827];}constructor(_0x1f12cd){super(_0x1f12cd),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x6c1144=_0x2ce67f();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x6c1144},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 _0x22e604=this['repository']['getRevision'](0x0),_0x522477=_0x22e604&&null===_0x22e604['creator']?_0x22e604:null;if(this['_continueCurrentRevision']=!!_0x522477&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x3a53ca=this['_source']['getCurrentRevisionId'](),_0x5b66f3=this['repository']['getRevision'](_0x3a53ca);if(_0x5b66f3)this['_startingVersion']=_0x5b66f3['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5a1506=this['_source']['history']['_operations']['find'](_0x47e622=>!_0x47e622['_isInit']),_0x1e108a=_0x5a1506?_0x5a1506['baseVersion']:this['_source']['history']['version'];_0x22e604?(_0x22e604['toVersion']<_0x1e108a&&_0x22e604['_update']({'toVersion':_0x1e108a}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x522477['id'],this['_startingVersion']=_0x522477['fromVersion']):(this['_startingVersion']=_0x22e604['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x1e108a,this['_continueCurrentRevision']=!0x1);}}else _0x522477&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x522477['toVersion'],this['editor']['model']['document']['history']['version']),_0x522477['fromVersion']===_0x522477['toVersion']?(0x0!==_0x522477['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x522477['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x522477['id'],this['_startingVersion']=_0x522477['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',_0x13ba45=>!_0x13ba45),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x25455c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1799a4;for(const _0x5e7966 in _0x25455c){const _0x33389a=_0x5e7966,_0x4a3e16=_0x25455c[_0x33389a];if('revisionHistoryLicenseKeyValid'==_0x4a3e16||'revisionHistoryLicenseKeyInvalid'==_0x4a3e16||'revisionHistoryLicenseKeyExpired'==_0x4a3e16||'revisionHistoryLicenseKeyDomainLimit'==_0x4a3e16||'revisionHistoryLicenseKeyNotAllowed'==_0x4a3e16||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4a3e16||'revisionHistoryLicenseKeyTrialLimit'==_0x4a3e16||'revisionHistoryLicenseKeyUsageLimit'==_0x4a3e16){delete _0x25455c[_0x33389a],_0x1799a4=_0x4a3e16,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x1799a4&&_0x25455c['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x1799a4&&_0x25455c['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x1799a4&&_0x25455c['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x1799a4&&_0x25455c['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x1799a4&&_0x25455c['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x1799a4&&_0x25455c['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x1799a4&&_0x25455c['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x20a230=this['repository']['getRevision'](0x0),_0x316bdc=await this['getRevisionDocumentData'](_0x20a230),_0x1e4a75=await this['getRevisionRootsAttributes'](_0x20a230);this['_replaceEditorDataWithRevisionData'](_0x316bdc,_0x1e4a75);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x3ebc79){this['_source']=_0x3ebc79;}async['update'](){const _0x214413=await this['_source']['getLatestVersion']();if(_0x214413>this['currentRevision']['toVersion']){await this['_loadState']();const _0x1a72bf=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x214413});_0x1a72bf['authors']=_0x1a72bf['authorsIds']['map'](_0x19c37b=>this['editor']['plugins']['get']('Users')['getUser'](_0x19c37b)),this['currentRevision']['_update'](_0x1a72bf);}}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'](_0x39827c={},_0x92bfc3=null){const _0x3784d9=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x92bfc3>this['currentRevision']['toVersion']&&(_0x92bfc3=null),null===_0x92bfc3&&(_0x92bfc3=await this['_source']['getLatestVersion']());const _0x194982=this['_getFromVersion'](_0x92bfc3),_0xd32990=this['buildRevisionData']({'from':_0x194982,'to':_0x92bfc3});if(this['currentRevision']['toVersion']<_0x92bfc3){const _0x153ddd=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x92bfc3,'to':_0x92bfc3});_0x153ddd['authors']=[],_0x153ddd['authorsIds']=[],_0x153ddd['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x153ddd,!0x0),delete _0x153ddd['authors'],_0x3784d9['push'](_0x153ddd);}_0x39827c['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x39827c['name']=_0x39827c['name']||null,_0x39827c['id']=_0x39827c['id']||_0x2ce67f(),_0x39827c={..._0x39827c,..._0xd32990};const _0x557b68=this['addRevisionData'](_0x39827c);_0x3784d9['push'](_0x39827c);const _0x1e4a4e=this['repository']['getIndex'](_0x557b68);if(0x0!==_0x1e4a4e){const _0x4af203=this['repository']['getRevision'](_0x1e4a4e-0x1);if(_0x4af203['fromVersion']!==_0x92bfc3){const _0x18dd07=this['_revisionDataBuilder']['getData'](_0x92bfc3,_0x4af203['toVersion']),_0xc64c7c={'id':_0x4af203['id'],'diffData':_0x18dd07['diffData'],'authorsIds':_0x18dd07['authorsIds'],'authors':_0x18dd07['authorsIds']['map'](_0x142189=>this['editor']['plugins']['get']('Users')['getUser'](_0x142189)),'fromVersion':_0x92bfc3};_0x4af203===this['currentRevision']&&(_0xc64c7c['createdAt']=new Date(_0x39827c['createdAt']['getTime']()+0xa)),_0x4af203['_update'](_0xc64c7c,!0x0),delete _0xc64c7c['authors'],_0x3784d9['push'](_0xc64c7c);}}if(this['adapter']){for(const _0x33a077 of _0x3784d9)this['_bufferUpdate'](_0x33a077['id'],_0x33a077,!0x0);this['sendBufferedUpdates']();}return _0x557b68;}['addRevisionData'](_0x3cf4df){const _0x5e0650=this['repository']['createRevision'](_0x3cf4df);return this['adapter']&&_0x5e0650['on']('_update',(_0x545bb5,_0x407424,_0x302cf0)=>{_0x302cf0||(this['_bufferUpdate'](_0x407424['id'],_0x407424,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x5e0650,this['_findInsertionIndex'](_0x5e0650)),_0x5e0650;}async['getRevisionDocumentData'](_0x404027){await this['_loadRevisionData'](_0x404027);const _0x1e7c28={};for(const _0x440e4a in _0x404027['diffData']){if(_0x404027['diffData'][_0x440e4a]['attachChange']&&!_0x404027['diffData'][_0x440e4a]['attachChange']['isAttached'])continue;const _0x3a8b8c=this['_removeRevisionMarkers'](JSON['parse'](_0x404027['diffData'][_0x440e4a]['insertions'])),_0x3d36a4=this['editor']['editing']['view']['document'],_0x12ed40=new _0x358982(_0x3d36a4,_0x3a8b8c['map'](_0x438a62=>C(_0x438a62,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x1e7c28[_0x440e4a]=this['editor']['data']['processor']['toData'](_0x12ed40),this['editor']['data']['processor']['useFillerType']('default');}return _0x1e7c28;}async['getRevisionRootsAttributes'](_0x4e44f5){await this['_loadRevisionData'](_0x4e44f5);const _0x132c6e={};for(const _0x175570 in _0x4e44f5['diffData'])_0x4e44f5['diffData'][_0x175570]['attachChange']&&!_0x4e44f5['diffData'][_0x175570]['attachChange']['isAttached']||(_0x132c6e[_0x175570]=_0x4e44f5['diffData'][_0x175570]['attributesAfter']||{});return _0x132c6e;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x3af1f1=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x12881a=0x0;_0x12881a<_0x3af1f1['length'];_0x12881a++){const _0x458c28=_0x3af1f1[_0x12881a];let _0x9af514=!0x1;for(const _0x25936c of Object['keys'](_0x458c28))void 0x0===_0x458c28[_0x25936c]?delete _0x458c28[_0x25936c]:'id'!==_0x25936c&&(_0x9af514=!0x0);_0x9af514||(_0x3af1f1[_0x12881a]=null);}if(_0x3af1f1=_0x3af1f1['filter'](_0x5f3234=>null!==_0x5f3234),!_0x3af1f1['length'])return;for(let _0x382738=0x0;_0x382738<_0x3af1f1['length'];_0x382738++){const _0xdfb697=_0x3af1f1[_0x382738];void 0x0!==_0xdfb697['fromVersion']&&void 0x0===_0xdfb697['toVersion']&&(_0xdfb697['toVersion']=this['repository']['getRevision'](_0xdfb697['id'])['toVersion']),void 0x0!==_0xdfb697['toVersion']&&void 0x0===_0xdfb697['fromVersion']&&(_0xdfb697['fromVersion']=this['repository']['getRevision'](_0xdfb697['id'])['fromVersion']);}const _0x38d486=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x3af1f1,_0x38d486)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x23c369=>{if(_0x23c369){for(const _0x3113be of _0x23c369)this['setRevisionData']({'id':_0x3113be['id'],'createdAt':_0x3113be['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x97dd8e,_0x1d3328){let _0x3f6a2e=this['editor']['config']['get']('initialData'),_0x1d9f61=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x3f6a2e){_0x3f6a2e={};for(const _0x5c852b of this['editor']['model']['document']['getRootNames']())_0x3f6a2e[_0x5c852b]='';}if('string'==typeof _0x3f6a2e&&(_0x3f6a2e={'main':_0x3f6a2e}),void 0x0===_0x1d9f61){_0x1d9f61={};for(const _0xff858b of this['editor']['model']['document']['getRootNames']())_0x1d9f61[_0xff858b]={};}let _0x94781a=!0x1;const _0x4b2018=Object['keys'](_0x3f6a2e),_0x26c6ab=Object['keys'](_0x97dd8e);for(const _0x10d685 of _0x4b2018){if(_0x3f6a2e[_0x10d685]!==_0x97dd8e[_0x10d685]&&''!==_0x3f6a2e[_0x10d685]['trim']()){_0x94781a=!0x0;break;}if(!_0x2f15d0(_0x1d9f61[_0x10d685],_0x1d3328[_0x10d685])&&Object['keys'](_0x1d9f61[_0x10d685])['length']>0x0){_0x94781a=!0x0;break;}}_0x94781a||(_0x94781a=_0x26c6ab['some'](_0x446217=>!this['editor']['model']['document']['getRoot'](_0x446217))),_0x94781a&&_0x3d60d7('editor-initial-data-replaced-with-revision-data',{'editorData':_0x3f6a2e,'editorRootsAttributes':_0x1d9f61,'revisionData':_0x97dd8e,'revisionRootsAttributes':_0x1d3328}),this['editor']['config']['set']('initialData',_0x97dd8e),this['editor']['config']['set']('rootsAttributes',_0x1d3328);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x2fe982=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x2fe982['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x2f36af){const _0xd0a430=this['repository']['getRevisions']();_0xd0a430['reverse']();let _0x38e01e=0x0;for(;_0x38e01e<_0xd0a430['length'];){const _0x299729=_0xd0a430[_0x38e01e];if(_0x299729===this['currentRevision']){_0x38e01e++;continue;}if(_0x299729['id']===this['_initialRevisionId'])break;const _0x35f392=_0x2f36af['toVersion']-_0x299729['toVersion']||_0x2f36af['fromVersion']-_0x299729['fromVersion'];if(_0x35f392>0x0)break;if(_0x35f392<0x0)_0x38e01e++;else{if(!_0x2f36af['creator']&&_0x299729['creator'])break;if(_0x299729['creator']||!_0x2f36af['creator']){if(_0x2f36af['createdAt']>_0x299729['createdAt'])break;_0x38e01e++;}else _0x38e01e++;}}return _0x38e01e;}['setRevisionData'](_0x55e7e9){const _0x402fbe=this['repository']['getRevision'](_0x55e7e9['id']);if(_0x55e7e9['createdAt']&&(_0x55e7e9['createdAt']=new Date(_0x55e7e9['createdAt'])),_0x55e7e9['authorsIds']){const _0x937adb=this['editor']['plugins']['get']('Users');_0x55e7e9['authors']=_0x55e7e9['authorsIds']['map'](_0x328e5f=>_0x937adb['getUser'](_0x328e5f));}_0x402fbe['_update'](_0x55e7e9,!0x0);}['buildRevisionData']({revision:_0x478f9a=null,from:_0x54ae19=null,to:_0x4dbe89=null}){_0x54ae19=null!==_0x54ae19?_0x54ae19:_0x478f9a['fromVersion'],_0x4dbe89=null!==_0x4dbe89?_0x4dbe89:_0x478f9a['toVersion'];const _0x1c46d6=this['_revisionDataBuilder']['getData'](_0x54ae19,_0x4dbe89),_0x14ba2f={'diffData':_0x1c46d6['diffData'],'authorsIds':_0x1c46d6['authorsIds'],'fromVersion':_0x54ae19,'toVersion':_0x4dbe89};if(!_0x478f9a||_0x4dbe89!==_0x478f9a['toVersion']){const _0x3b881d=_0x4dbe89-0x1,_0x58e768=this['_source']['history']['getOperation'](_0x3b881d);_0x14ba2f['createdAt']=_0x58e768&&_0x58e768['createdAt']||new Date();}if(this['_loadedStateData']&&_0x54ae19===this['_loadedStateData']['fromVersion']){for(const _0x4569cd of this['_loadedStateData']['authors'])_0x14ba2f['authorsIds']['includes'](_0x4569cd['id'])||_0x14ba2f['authorsIds']['push'](_0x4569cd['id']);}return _0x14ba2f;}['_loadRevisionData'](_0x59f8ff){if(!_0x59f8ff||_0x59f8ff['diffData'])return Promise['resolve']();{const _0x11d1bc=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x11d1bc,'revisionId':_0x59f8ff['id']})['then'](_0x25eb24=>{_0x59f8ff['diffData']=_0x25eb24['diffData'];});}}['_bufferUpdate'](_0x5b8468,_0x3e2d04,_0x1a6661){if(this['_bufferedUpdates']['has'](_0x5b8468)){const _0x108a5b=this['_bufferedUpdates']['get'](_0x5b8468);_0x3e2d04=_0x1a6661?{..._0x108a5b,..._0x3e2d04}:{..._0x3e2d04,..._0x108a5b};}this['_bufferedUpdates']['set'](_0x5b8468,_0x3e2d04);}['_getFromVersion'](_0x90426a){const _0x5cab56=this['repository']['getRevisions']();_0x5cab56['reverse'](),_0x5cab56['shift']();const _0x1391cb=_0x5cab56['find'](_0x55e77f=>_0x55e77f['toVersion']<=_0x90426a)['toVersion'];return _0x1391cb<this['_startingVersion']?this['_startingVersion']:_0x1391cb;}['_createInitialRevision'](_0x1ab04e){const _0x118738=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x118738)this['_initialRevisionId']=_0x118738['id'];else{const _0x549f7a=!this['editor']['model']['document']['roots']['find'](_0x35df69=>this['editor']['model']['hasContent'](_0x35df69)),_0x78b448=this['editor']['plugins']['get']('Users')['me']['id'],_0x4c9d77=m(this['editor']['locale'],_0x549f7a?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x1ab04e,'to':_0x1ab04e,'id':this['_initialRevisionId'],'name':_0x4c9d77,'creatorId':_0x78b448});}}['_createCurrentRevision'](_0x544bb0){const _0x20fc32=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x20fc32),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x544bb0,'to':_0x544bb0,'id':_0x20fc32,'name':'','creatorId':null}));}['_makeRevision']({name:_0x317a3a,from:_0x10427b,to:_0x5d4c7b,creatorId:_0x553d83,id:_0x1eb70e}){const _0x4e31bb=this['buildRevisionData']({'from':_0x10427b,'to':_0x5d4c7b});_0x4e31bb['name']=_0x317a3a,_0x4e31bb['creatorId']=_0x553d83,_0x4e31bb['id']=_0x1eb70e;const _0x2d04dc=this['addRevisionData'](_0x4e31bb);return this['adapter']&&this['_bufferUpdate'](_0x4e31bb['id'],_0x4e31bb,!0x0),_0x2d04dc;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x18b8c7){return(_0x18b8c7=_0x18b8c7['filter'](_0x3843e1=>!_0x3843e1['name']||'revision-start'!==_0x3843e1['name']&&'revision-end'!==_0x3843e1['name']))['forEach'](_0x11e8f6=>{'string'!=typeof _0x11e8f6&&(_0x11e8f6['children']=this['_removeRevisionMarkers'](_0x11e8f6['children']),_0x11e8f6['attributes']=_0x11e8f6['attributes']['filter'](_0x5af6ee=>!_0x5af6ee[0x0]['startsWith']('data-revision-')));}),_0x18b8c7;}}function C(_0x45354a,_0x238960){const _0x39047f=_0x238960['editing']['view']['document'];if('string'==typeof _0x45354a)return new _0x311b17(_0x39047f,_0x45354a);{const _0x2dadd2=_0x45354a['children']['map'](_0x2c47bf=>C(_0x2c47bf,_0x238960));return new(P[_0x45354a['type']]||_0x24f07d)(_0x39047f,_0x45354a['name'],_0x45354a['attributes'],_0x2dadd2);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x2bd6be){this['editor']=_0x2bd6be,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'](_0x44b60f){this['source']=_0x44b60f;const _0x42a258=new Map(),_0x45f3ad=new Map(),_0x4e83ce=this['editor']['model']['document']['roots']['map'](_0x52147d=>_0x52147d['rootName']);for(const _0x8bc97c of _0x4e83ce){const _0x57c476=this['editor']['model']['document']['getRoot'](_0x8bc97c),_0x1b609c=T(_0x57c476);_0x42a258['set'](_0x8bc97c,_0x1b609c),_0x45f3ad['set'](_0x8bc97c,Object['fromEntries'](_0x57c476['getAttributes']()));}const _0x2cfc04=Array['from'](this['editor']['model']['markers'])['map'](_0x1983e1=>[_0x1983e1['name'],_0x1983e1['getRange']()]),_0x1251bd=this['source']['version'];this['_saveMetaData'](_0x1251bd,_0x42a258,_0x2cfc04,_0x45f3ad),this['_startingRevisionId']=this['_revisionId'];const _0x1c8c3b=new Map(),_0x25a428=new Map();for(const _0x478c2f of _0x4e83ce){const _0x1d369e=F(_0x478c2f);_0x1c8c3b['set'](_0x478c2f,_0x1d369e),_0x25a428['set'](_0x478c2f,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1c8c3b,[],_0x25a428);}['getData'](_0x1db47a,_0x3355fe){if(this['_lastFrom']===_0x1db47a&&this['_lastTo']<=_0x3355fe)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x3355fe,!0x0);else{if(!this['_savedMetaData']['has'](_0x1db47a)){const _0x46239a=this['_getPreviousFrom'](_0x1db47a);this['_calculateMetaData'](_0x46239a,_0x1db47a,!0x1);}this['_calculateMetaData'](_0x1db47a,_0x3355fe,!0x0);}return this['_lastFrom']=_0x1db47a,this['_lastTo']=_0x3355fe,this['_getState']();}['loadState'](_0x1e7764){this['_reset'](),this['_lastFrom']=_0x1e7764['fromVersion'],this['_lastTo']=_0x1e7764['toVersion'];for(const _0x5868ab in _0x1e7764['diffData']){const _0x5b1a95=_0x1e7764['diffData'][_0x5868ab]['attachChange'],_0x8509c=_0x176d1b(_0x1e7764['diffData'][_0x5868ab]['attributesBefore'])||{},_0x904ee6=this['_makeModelFromViewString'](_0x1e7764['diffData'][_0x5868ab]['deletions']);_0x904ee6['rootName']=_0x5868ab,_0x904ee6['_isAttached']=!_0x5b1a95||!_0x5b1a95['isAttached'],_0x904ee6['isAttached']=()=>_0x904ee6['_isAttached'],this['_baseRoots']['set'](_0x5868ab,_0x904ee6),this['_baseRootsAttributes']['set'](_0x5868ab,_0x8509c),_0x5b1a95&&this['_touchedRoots']['set'](_0x5868ab,_0x5b1a95);const _0x394afb=this['_makeIdsRoot'](_0x904ee6);this['_baseIdsRoots']['set'](_0x5868ab,_0x394afb);for(const [_0x346e99,_0x5602ac]of _0x904ee6['markers']){if(!_0x346e99['startsWith']('revision:'))continue;const _0x30f3fe=_0x346e99['split'](':')[0x2];for(const _0x572c11 of _0x5602ac['getWalker']({'singleCharacters':!0x0})){const _0x48af02=this['_getVidAttributeName'](_0x572c11),_0x299a82='elementEnd'==_0x572c11['type']?_0x572c11['previousPosition']['path']['slice'](0x0,-0x1):_0x572c11['previousPosition']['path'],_0x35fc7e=_0x394afb['getNodeByPath'](_0x299a82)['getAttribute'](_0x48af02);this['_touched']['set'](_0x35fc7e,{'userId':_0x30f3fe});}}}this['_startingRevisionId']=this['_revisionId'];const _0x376821=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x5e8fa9=>!this['_touched']['has'](_0x5e8fa9));let _0x4db2bc=0x0;const _0x2fa7b3=new Map();for(const _0x4f8473 in _0x1e7764['diffData']){const _0x15c664=_0x1e7764['diffData'][_0x4f8473]['attachChange'],_0x18b51e=_0x176d1b(_0x1e7764['diffData'][_0x4f8473]['attributesAfter'])||{},_0x1e613a=this['_makeModelFromViewString'](_0x1e7764['diffData'][_0x4f8473]['insertions']);_0x1e613a['rootName']=_0x4f8473,_0x1e613a['_isAttached']=!_0x15c664||_0x15c664['isAttached'],_0x1e613a['isAttached']=()=>_0x1e613a['_isAttached'],this['_diffRoots']['set'](_0x4f8473,_0x1e613a),this['_diffRootsAttributes']['set'](_0x4f8473,_0x18b51e);const _0x653a0d=this['_makeIdsRoot'](_0x1e613a,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x4f8473,_0x653a0d),_0x2fa7b3['set'](_0x4f8473,_0x1e613a['isAttached']()?_0x18b51e:{});for(const [_0x124a67,_0x40b524]of _0x1e613a['markers']){if(!_0x124a67['startsWith']('revision:'))continue;const _0x32d08d=_0x124a67['split'](':')[0x2];for(const _0x55df76 of _0x40b524['getWalker']({'singleCharacters':!0x0})){const _0x5b26e4=this['_getVidAttributeName'](_0x55df76),_0x186266=this['_revisionId']++,_0x5a1a4c='elementEnd'==_0x55df76['type']?_0x55df76['previousPosition']['path']['slice'](0x0,-0x1):_0x55df76['previousPosition']['path'];_0x653a0d['getNodeByPath'](_0x5a1a4c)['_setAttribute'](_0x5b26e4,_0x186266),this['_touched']['set'](_0x186266,{'userId':_0x32d08d});}}for(const _0x57a62b of this['editor']['model']['createRangeIn'](_0x1e613a)['getWalker']({'singleCharacters':!0x0})){const _0x424651=this['_getVidAttributeName'](_0x57a62b),_0x4bcfb7='elementEnd'==_0x57a62b['type']?_0x57a62b['previousPosition']['path']['slice'](0x0,-0x1):_0x57a62b['previousPosition']['path'],_0x542ffe=_0x653a0d['getNodeByPath'](_0x4bcfb7);_0x542ffe['getAttribute'](_0x424651)>0x0||_0x542ffe['_setAttribute'](_0x424651,_0x376821[_0x4db2bc++]);}for(const [_0x35f218,_0x4c9050]of _0x1e613a['markers'])_0x35f218['startsWith']('revision:')||this['_markers']['set'](_0x35f218,_0x4c9050);}const _0x1ccfdd=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x1ccfdd),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1ccfdd,0x1));const _0x4e99ae=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x4e99ae),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4e99ae,0x1));const _0x45c9c2=Array['from'](this['_diffRoots'])['map'](([_0x4588de,_0xba2478])=>[_0x4588de,T(_0xba2478)]);this['_saveMetaData'](this['_lastTo'],_0x45c9c2,this['_markers'],_0x2fa7b3);}['_makeModelFromViewString'](_0x314c34){const _0x1f7836=JSON['parse'](_0x314c34),_0x3865a1=this['editor']['editing']['view']['document'],_0x56c0a1=new _0x358982(_0x3865a1,_0x1f7836['map'](_0x1754a0=>C(_0x1754a0,this['editor'])));return this['editor']['data']['toModel'](_0x56c0a1);}['_saveMetaData'](_0x4dd170,_0x4fafbf,_0xeab824,_0x463441){const _0x2267d8=new Map(_0x4fafbf),_0x3ba646=new Map(_0x176d1b(_0x463441)),_0x11f115=new Map();for(const [_0x105778,_0x1a6c65]of _0xeab824)_0x11f115['set'](_0x105778,{'start':_0x1a6c65['start']['clone'](),'end':_0x1a6c65['end']['clone'](),'rootName':_0x1a6c65['root']['rootName']});this['_savedMetaData']['set'](_0x4dd170,{'roots':_0x2267d8,'markers':_0x11f115,'rootsAttributes':_0x3ba646});}['_removeMetaData'](_0x74541f){this['_savedMetaData']['delete'](_0x74541f);}['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'](_0x2501a8,_0x489ade=null){let _0x55c457=null;_0x2501a8['is']('documentFragment')||(_0x55c457=new ft(_0x2501a8['name'],{'vid_start':null===_0x489ade?this['_revisionId']++:_0x489ade++}));const _0x2a3829=[];for(const _0x424f58 of _0x2501a8['getChildren']())if(_0x424f58['is']('element')){_0x2a3829['push'](this['_makeIdsRoot'](_0x424f58,_0x489ade));const _0x420cd7=_0x2a3829[_0x2a3829['length']-0x1];null!==_0x489ade&&(_0x489ade=_0x420cd7['is']('element','$text')?_0x420cd7['getAttribute']('vid')+0x1:_0x420cd7['getAttribute']('vid_end')+0x1);}else{for(let _0x40179a=0x0;_0x40179a<_0x424f58['offsetSize'];_0x40179a++)_0x2a3829['push'](new ft('$text',{'vid':null===_0x489ade?this['_revisionId']++:_0x489ade++}));}if(_0x2501a8['is']('documentFragment')){const _0x54c40b=F(_0x2501a8['rootName']);return _0x54c40b['_insertChild'](0x0,_0x2a3829),_0x54c40b;}return _0x55c457['_setAttribute']('vid_end',null===_0x489ade?this['_revisionId']++:_0x489ade++),_0x55c457['_insertChild'](0x0,_0x2a3829),_0x55c457;}['_calculateMetaData'](_0x2aed5b,_0x5aa0e7,_0x2e4d1f){this['_reset']();const {roots:_0x2e4d92,markers:_0x13e616,rootsAttributes:_0xbbc642}=this['_savedMetaData']['get'](_0x2aed5b);this['_baseRoots']=new Map(_0x2e4d92),this['_baseRootsAttributes']=new Map(_0x176d1b(_0xbbc642));for(const [_0x3074ea,_0x3ff899]of this['_baseRoots'])if('$graveyard'!==_0x3074ea&&(this['_diffRoots']['set'](_0x3074ea,T(_0x3ff899)),this['_diffRootsAttributes']=new Map(_0x176d1b(_0xbbc642)),_0x2e4d1f)){const _0x1aff0f=this['_revisionId'];this['_idsRoots']['set'](_0x3074ea,this['_makeIdsRoot'](_0x3ff899)),this['_baseIdsRoots']['set'](_0x3074ea,this['_makeIdsRoot'](_0x3ff899,_0x1aff0f));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x2e4d1f&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x36784e,_0x519feb]of _0x13e616){const _0xbaedd7=this['_baseRoots']['get'](_0x519feb['rootName']),_0x58d76b=this['_diffRoots']['get'](_0x519feb['rootName']),_0x50aca9=new vt(this['_fixPosition'](_0x519feb['start'],_0xbaedd7),this['_fixPosition'](_0x519feb['end'],_0xbaedd7)),_0x28f04d=this['_fixRange'](_0x50aca9,_0x58d76b);_0xbaedd7['markers']['set'](_0x36784e,_0x50aca9),this['_markers']['set'](_0x36784e,_0x28f04d);}this['_applyOperations'](_0x2aed5b,_0x5aa0e7,_0x2e4d1f);}['_applyOperations'](_0x48e075,_0x116664,_0x4b4d88){for(const _0x37420a of this['source']['getOperations'](_0x48e075,_0x116664))this['_handleOperation'](_0x37420a,_0x4b4d88);for(const _0x25a7c7 of this['_diffRoots']['values']())_0x25a7c7['markers']['clear']();for(const [_0x4ba1b3,_0x405e1a]of this['_markers']){this['_diffRoots']['get'](_0x405e1a['root']['rootName'])['markers']['set'](_0x4ba1b3,_0x405e1a['clone']());}const _0x10466e=new Map(),_0x2787ea=new Map();for(const [_0x1ad9d5,_0x145fca]of this['_diffRoots'])_0x10466e['set'](_0x1ad9d5,T(_0x145fca)),_0x2787ea['set'](_0x1ad9d5,this['_diffRootsAttributes']['get'](_0x1ad9d5));this['_saveMetaData'](_0x116664,_0x10466e,this['_markers'],_0x2787ea);}['_getPreviousFrom'](_0x70797d){const _0x3b5862=Array['from'](this['_savedMetaData']['keys']());_0x3b5862['sort']((_0x44f78d,_0x42b6bb)=>_0x44f78d-_0x42b6bb),_0x3b5862['reverse']();for(const _0xcd1523 of _0x3b5862)if(_0xcd1523<_0x70797d)return _0xcd1523;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0xf2fca0,_0x37241c){const _0xc8d07=Array['from'](_0x37241c['markers'])['map'](([_0x2a1d1f,_0x13d677])=>[_0x2a1d1f,this['_fixRange'](_0x13d677,_0xf2fca0)]);_0xf2fca0['markers']=new Map(_0xc8d07);}['_transformMarkers'](_0x5aaaad){for(const _0x277318 of this['_markers']['values']()){const _0x43545e=_0x277318['getTransformedByOperation'](_0x5aaaad),_0x36a8b3=vt['_createFromRanges'](_0x43545e);_0x277318['start']=_0x36a8b3['start'],_0x277318['end']=_0x36a8b3['end'];}}['_handleOperation'](_0x334caf,_0x9e8644){if('addRoot'!=_0x334caf['type']&&'detachRoot'!=_0x334caf['type']){if('insert'==_0x334caf['type']){const _0x47c7be=_0x334caf['position']['root']['rootName'];this['_diffRoots']['has'](_0x47c7be)||(this['_diffRoots']['set'](_0x47c7be,F(_0x47c7be,!0x0)),this['_diffRootsAttributes']['set'](_0x47c7be,{}),_0x9e8644&&this['_idsRoots']['set'](_0x47c7be,F(_0x47c7be,!0x0)));}else{if('addRootAttribute'==_0x334caf['type']||'removeRootAttribute'==_0x334caf['type']||'changeRootAttribute'==_0x334caf['type'])return void this['_handleRootAttributeOperation'](_0x334caf);'marker'==_0x334caf['type']&&this['_handleMarkerOperation'](_0x334caf);}if('marker'!==_0x334caf['type']){const _0x4fc0a8=this['_cloneOperation'](_0x334caf,this['_diffRoots']);_0x4fc0a8['_execute'](),this['_transformMarkers'](_0x4fc0a8);}if(_0x9e8644)switch(_0x334caf['type']){case'insert':this['_handleInsertOperation'](_0x334caf);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x334caf);break;case'merge':this['_handleMergeOperation'](_0x334caf);break;case'split':this['_handleSplitOperation'](_0x334caf);}}else this['_handleRootOperation'](_0x334caf,_0x9e8644);}['_cloneOperation'](_0x43e242,_0x22d276){const _0x18a112=_0x43e242['clone']();return _0x18a112['_authorId']=_0x43e242['_authorId'],this['_fixOperation'](_0x18a112,_0x22d276),_0x18a112;}['_getBaseVids'](_0x2456c1){return _0x2456c1['map'](_0x51630f=>{const _0x20a777=this['_getVidAttributeName'](_0x51630f);return Number(_0x51630f['item']['getAttribute'](_0x20a777));});}['_generateTape'](_0x28d8e6,_0x5eb4d0){if(_0x28d8e6['is']('element','$text'))_0x5eb4d0['push']({'item':_0x28d8e6,'type':'text'});else{_0x28d8e6['is']('element')&&_0x5eb4d0['push']({'item':_0x28d8e6,'type':'elementStart'});for(const _0x165980 of _0x28d8e6['getChildren']())this['_generateTape'](_0x165980,_0x5eb4d0);_0x28d8e6['is']('element')&&_0x5eb4d0['push']({'item':_0x28d8e6,'type':'elementEnd'});}return _0x5eb4d0;}['_getState'](){const _0x40fc07=new Map(this['_touched']),_0x35722f=new Map(_0x40fc07),_0x257154=new Map(),_0x539f68={'insertions':{},'deletions':{}},_0x500eca={'insertions':{},'deletions':{}},_0x183dc8=new Map(),_0xef5c4d=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0xef5c4d['delete']('$graveyard');for(const _0x356b81 of _0xef5c4d){const _0x210711=this['_diffRoots']['get'](_0x356b81)||F(_0x356b81,!0x1),_0xb329ce=this['_baseRoots']['get'](_0x356b81)||F(_0x356b81,!0x1);_0x210711['isAttached']()||_0xb329ce['isAttached']()?(_0x539f68['insertions'][_0x356b81]=T(_0x210711),_0x539f68['deletions'][_0x356b81]=T(_0xb329ce),this['_copyMarkers'](_0x539f68['deletions'][_0x356b81],_0xb329ce),this['_copyMarkers'](_0x539f68['insertions'][_0x356b81],_0x210711),_0x500eca['insertions'][_0x356b81]=this['_generateTape'](this['_idsRoots']['get'](_0x356b81),[]),_0x500eca['deletions'][_0x356b81]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x356b81)||F(_0x356b81,!0x1),[])):_0xef5c4d['delete'](_0x356b81);}for(const _0x36041c of _0xef5c4d){const _0x3ea7cb=_0x500eca['insertions'][_0x36041c];for(const _0x49c573 of _0x3ea7cb){const _0x51d38a=this['_getVidAttributeName'](_0x49c573),_0x10675f=_0x49c573['item']['getAttribute'](_0x51d38a);_0x35722f['delete'](_0x10675f),_0x10675f>=this['_startingRevisionId']&&_0x257154['set'](_0x10675f,_0x40fc07['get'](_0x10675f));}}for(const _0x4d9fd6 of _0xef5c4d){const _0x4a8bad=_0x500eca['insertions'][_0x4d9fd6],_0x543393=this['_getBaseVids'](_0x500eca['deletions'][_0x4d9fd6]);let _0x4ca856=0x0;for(const _0x1c9935 of _0x4a8bad){const _0x5e1eb1=this['_getVidAttributeName'](_0x1c9935),_0x1324ba=_0x1c9935['item']['getAttribute'](_0x5e1eb1);if(!_0x257154['has'](_0x1324ba)&&!_0x183dc8['has'](_0x1324ba)){if(_0x35722f['has'](_0x1324ba))_0x4ca856++;else{if(_0x1324ba!=_0x543393[_0x4ca856]){const _0x493f81=_0x40fc07['get'](_0x1324ba)||_0x40fc07['get'](_0x543393[_0x4ca856]);for(;_0x1324ba!=_0x543393[_0x4ca856];)_0x35722f['has'](_0x543393[_0x4ca856])||(_0x183dc8['set'](_0x543393[_0x4ca856],_0x493f81),_0x40fc07['set'](_0x543393[_0x4ca856],_0x493f81)),_0x4ca856++;}_0x4ca856++;}}}}for(const _0x2489da of _0xef5c4d){const _0x4a6113=_0x500eca['insertions'][_0x2489da];for(const _0x2797fc of _0x4a6113){const _0x1918b5=this['_getVidAttributeName'](_0x2797fc),_0x274bf1=_0x2797fc['item']['getAttribute'](_0x1918b5);if(_0x183dc8['has'](_0x274bf1)){const _0x3bcdd9=_0x183dc8['get'](_0x274bf1);_0x35722f['has'](_0x274bf1)||_0x35722f['set'](_0x274bf1,{..._0x3bcdd9}),_0x257154['set'](_0x274bf1,{..._0x3bcdd9});}}}for(const _0x585d2f of _0x35722f['keys']())_0x585d2f>=this['_startingRevisionId']&&_0x35722f['delete'](_0x585d2f);const _0x547af2=new Map();for(const _0x316d5f of _0xef5c4d){let _0x221b22=_0x500eca['insertions'][_0x316d5f];for(const _0x111e6c of _0x221b22)if(_0x111e6c['item']['is']('element','tableCell')){const _0x3ce71b=this['_getVidAttributeName'](_0x111e6c),_0x4ce2fe=_0x111e6c['item']['getAttribute'](_0x3ce71b);if(_0x257154['has'](_0x4ce2fe)){const _0x3c4870=_0x111e6c['item']['parent']['parent']['getAttribute']('vid_start'),_0x38fff7=_0x547af2['get'](_0x3c4870)||new Set();_0x38fff7['add'](_0x257154['get'](_0x4ce2fe)['userId']),_0x547af2['set'](_0x3c4870,_0x38fff7);}}_0x221b22=_0x500eca['deletions'][_0x316d5f];for(const _0x8efcac of _0x221b22)if(_0x8efcac['item']['is']('element','tableCell')){const _0x2cfde7=this['_getVidAttributeName'](_0x8efcac),_0x33f5ff=_0x8efcac['item']['getAttribute'](_0x2cfde7);if(_0x35722f['has'](_0x33f5ff)){const _0x181a76=_0x8efcac['item']['parent']['parent']['getAttribute']('vid_start'),_0x174ca9=_0x547af2['get'](_0x181a76)||new Set();_0x174ca9['add'](_0x35722f['get'](_0x33f5ff)['userId']),_0x547af2['set'](_0x181a76,_0x174ca9);}}for(const _0xcdb171 of _0x547af2['keys']())(_0x257154['has'](_0xcdb171)||_0x35722f['has'](_0xcdb171))&&_0x547af2['delete'](_0xcdb171);}for(const _0x4f78a9 of _0xef5c4d){const _0x201d52=_0x500eca['insertions'][_0x4f78a9];let _0x783a29=null,_0x58cac1=null;for(const _0x170069 of _0x201d52){const _0x249e38=this['_getVidAttributeName'](_0x170069),_0x2503be=_0x170069['item']['getAttribute'](_0x249e38),_0x43e8e3=_0x547af2['get'](_0x2503be);_0x43e8e3&&'elementStart'==_0x170069['type']&&(_0x783a29=Array['from'](_0x43e8e3)[0x0],_0x58cac1=_0x170069['item']['getAttribute']('vid_end')),_0x783a29&&(_0x35722f['set'](_0x2503be,{'userId':_0x783a29}),_0x257154['set'](_0x2503be,{'userId':_0x783a29})),_0x2503be==_0x58cac1&&(_0x783a29=null,_0x58cac1=null);}}const _0x60bcad={},_0xb2e5fb=new Set();for(const _0x5633bf of _0xef5c4d){const _0x1d0e72=_0x539f68['deletions'][_0x5633bf],_0x3b4bec=_0x539f68['insertions'][_0x5633bf];for(const {userId:_0xd206e3}of this['_touchedMarkers']['values']())null!==_0xd206e3&&_0xb2e5fb['add'](_0xd206e3);for(const {userId:_0x163555}of this['_touchedRoots']['values']())null!==_0x163555&&_0xb2e5fb['add'](_0x163555);this['_markChanges'](_0x3b4bec,_0x500eca['insertions'][_0x5633bf],_0x257154,'insertion',_0xb2e5fb),this['_markChanges'](_0x1d0e72,_0x500eca['deletions'][_0x5633bf],_0x35722f,'deletion',_0xb2e5fb),_0x60bcad[_0x5633bf]={'insertions':this['_prepareViewToSave'](_0x3b4bec),'deletions':this['_prepareViewToSave'](_0x1d0e72),'attachChange':this['_touchedRoots']['get'](_0x5633bf)||null,'attributesBefore':_0x176d1b(this['_baseRootsAttributes']['get'](_0x5633bf))||{},'attributesAfter':_0x176d1b(this['_diffRootsAttributes']['get'](_0x5633bf))};}return{'diffData':_0x60bcad,'authorsIds':Array['from'](_0xb2e5fb)};}['_processRootBeforeSave'](_0xd1b523){for(const [,_0xb05361]of _0xd1b523['markers']){const _0x2bd6dd=_0xb05361['start']['getAncestors']()['filter'](_0x5354e1=>'tableCell'==_0x5354e1['name']);for(const _0x58c4ea of _0x2bd6dd)0x1==_0x58c4ea['childCount']&&_0x58c4ea['getChild'](0x0)['is']('element','paragraph')&&_0x58c4ea['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x4fa687){this['_processRootBeforeSave'](_0x4fa687);const _0x2250f3=this['editor']['data']['toView'](_0x4fa687,{}),_0x280b4a=Array['from'](_0x2250f3['getChildren']())['map'](_0x33a7f8=>this['_getViewJson'](_0x33a7f8));return JSON['stringify'](_0x280b4a);}['_getViewJson'](_0x28a65b){if(_0x28a65b['is']('$text'))return _0x28a65b['data'];{const _0x1aa583=_0x28a65b;return{'type':Object['keys'](P)['find'](_0x5d74a0=>_0x28a65b instanceof P[_0x5d74a0]),'name':_0x1aa583['name'],'attributes':Array['from'](_0x1aa583['getAttributes']()),'children':Array['from'](_0x1aa583['getChildren']())['map'](_0xc2e81d=>this['_getViewJson'](_0xc2e81d))};}}['_markChanges'](_0x34a09c,_0x441356,_0x2a04ee,_0x48ba02,_0x2a1f1b){let _0x252991=null,_0x46c59c=null,_0x281761=0x0;const _0xde8de7=this['editor']['model'];for(let _0x590820=0x0;_0x590820<_0x441356['length'];_0x590820++){const _0x5a18c0=this['_getVidAttributeName'](_0x441356[_0x590820]),_0x37d9af=_0x441356[_0x590820]['item']['getAttribute'](_0x5a18c0),_0x8db58f=_0x2a04ee['get'](_0x37d9af),_0x575d4c=_0x590820==_0x441356['length']-0x1;(!_0x252991&&_0x8db58f&&(_0x252991=_0x8db58f,_0x46c59c=_0x441356[_0x590820]),_0x252991&&(!_0x8db58f||_0x8db58f['userId']!=_0x252991['userId']))&&(_0x152468(_0x8db58f,B(_0x46c59c,_0x34a09c,_0xde8de7),B(_0x441356[_0x590820],_0x34a09c,_0xde8de7)),_0x252991=_0x8db58f||null,_0x46c59c=_0x8db58f?_0x441356[_0x590820]:null),_0x252991&&_0x575d4c&&_0x152468(_0x8db58f,B(_0x46c59c,_0x34a09c,_0xde8de7),J(_0x441356[_0x590820],_0x34a09c,_0xde8de7));}function _0x152468(_0x13fe70,_0x2a41f3,_0xdaa0ab){const _0x28f51e=_0x252991['userId'],_0x4bec59='revision:'+_0x48ba02+':'+_0x28f51e+':'+_0x281761++,_0x4297a2=_0xde8de7['createRange'](_0x2a41f3,_0xdaa0ab);_0x34a09c['markers']['set'](_0x4bec59,_0x4297a2),null!==_0x28f51e&&_0x2a1f1b['add'](_0x28f51e);}}['_getVidAttributeName'](_0x1ab814){switch(_0x1ab814['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x42016c,_0x45aa43){_0x42016c['baseVersion']=null;for(const _0x34b991 in _0x42016c){const _0x113a0b=_0x42016c[_0x34b991];if(_0x113a0b instanceof gt){const _0x67f5d0=_0x45aa43['get'](_0x113a0b['root']['rootName']);_0x42016c[_0x34b991]=this['_fixPosition'](_0x113a0b,_0x67f5d0);}if(_0x113a0b instanceof vt){const _0x9b7553=_0x45aa43['get'](_0x113a0b['root']['rootName']);_0x42016c[_0x34b991]=this['_fixRange'](_0x113a0b,_0x9b7553);}'root'===_0x34b991&&(_0x42016c['root']=_0x45aa43['get'](_0x42016c['root']['rootName']));}}['_fixRange'](_0x58ba75,_0x303475){return this['editor']['model']['createRange'](this['_fixPosition'](_0x58ba75['start'],_0x303475),this['_fixPosition'](_0x58ba75['end'],_0x303475));}['_fixPosition'](_0x27aa3b,_0x4fc9b6){return this['editor']['model']['createPositionFromPath'](_0x4fc9b6,_0x27aa3b['path'],_0x27aa3b['stickiness']);}['_handleInsertOperation'](_0x5a216d){const _0x5249bf=this['_idsRoots']['get'](_0x5a216d['position']['root']['rootName']),_0x2f4d1a=this['_fixPosition'](_0x5a216d['position'],_0x5249bf),_0x530ce6=null===_0x5a216d['_authorId']?null:_0x5a216d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4fe43f=_0x2f4d1a['parent'],_0x2a367b=this['_revisionId'],_0x7ad72c=[];for(const _0x3ef3f2 of _0x5a216d['nodes'])if(_0x3ef3f2['is']('element'))_0x7ad72c['push'](this['_makeIdsRoot'](_0x3ef3f2));else{for(let _0x3ab86c=0x0;_0x3ab86c<_0x3ef3f2['offsetSize'];_0x3ab86c++)_0x7ad72c['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x25a926=this['_revisionId'];for(let _0x51bcd1=_0x2a367b;_0x51bcd1<_0x25a926;_0x51bcd1++)this['_touched']['set'](_0x51bcd1,{'userId':_0x530ce6});_0x4fe43f['_insertChild'](_0x2f4d1a['offset'],_0x7ad72c);}['_handleMoveOperation'](_0x591dbe){(_0x591dbe=this['_cloneOperation'](_0x591dbe,this['_idsRoots']))['_execute']();const _0x206571=null===_0x591dbe['_authorId']?null:_0x591dbe['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4c5c83=_0x591dbe['getMovedRangeStart'](),_0x2363a5=_0x4c5c83['parent'],_0x488784=_0x4c5c83['offset'];!function _0x124dc4(_0x13fdd8,_0x29b97a,_0x51b917,_0x1c3756){for(let _0x2e300f=_0x51b917;_0x2e300f<_0x1c3756;_0x2e300f++){const _0x51e863=_0x29b97a['getChild'](_0x2e300f);_0x51e863['is']('element','$text')?_0x13fdd8['set'](_0x51e863['getAttribute']('vid'),{'userId':_0x206571}):(_0x13fdd8['set'](_0x51e863['getAttribute']('vid_start'),{'userId':_0x206571}),_0x124dc4(_0x13fdd8,_0x51e863,0x0,_0x51e863['childCount']),_0x13fdd8['set'](_0x51e863['getAttribute']('vid_end'),{'userId':_0x206571}));}}(this['_touched'],_0x2363a5,_0x488784,_0x488784+_0x591dbe['howMany']);}['_handleMergeOperation'](_0x1ee302){const _0x19b1a2=null===(_0x1ee302=this['_cloneOperation'](_0x1ee302,this['_idsRoots']))['_authorId']?null:_0x1ee302['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x222a7c=_0x1ee302['targetPosition']['parent'],_0x2f6485=_0x1ee302['sourcePosition']['parent'],_0x25a588=_0x222a7c['getAttribute']('vid_end'),_0x2bd6b7=_0x2f6485['getAttribute']('vid_start');_0x222a7c['_setAttribute']('vid_end',_0x2f6485['getAttribute']('vid_end')),_0x2f6485['_setAttribute']('vid_end',_0x25a588),this['_touched']['set'](_0x2bd6b7,{'userId':_0x19b1a2}),this['_touched']['set'](_0x25a588,{'userId':_0x19b1a2}),_0x1ee302['_execute']();}['_handleSplitOperation'](_0x52b597){const _0x31ede0=null===(_0x52b597=this['_cloneOperation'](_0x52b597,this['_idsRoots']))['_authorId']?null:_0x52b597['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x21aff6=_0x52b597['graveyardPosition'],_0x334404=_0x52b597['splitPosition']['parent'];_0x52b597['_execute']();const _0x10a760=_0x334404['getAttribute']('vid_end'),_0x5c97a6=_0x52b597['insertionPosition']['nodeAfter'];if(_0x21aff6){const _0x248bec=_0x5c97a6['getAttribute']('vid_end'),_0x3ed93a=_0x334404['getAttribute']('vid_end');_0x334404['_setAttribute']('vid_end',_0x248bec),_0x5c97a6['_setAttribute']('vid_end',_0x3ed93a),this['_touched']['set'](_0x334404['getAttribute']('vid_end'),{'userId':_0x31ede0}),this['_touched']['set'](_0x5c97a6['getAttribute']('vid_start'),{'userId':_0x31ede0});}else{const _0x3e007e=this['_revisionId']++,_0x4f6dac=this['_revisionId']++;_0x334404['_setAttribute']('vid_end',_0x3e007e),_0x5c97a6['_setAttribute']('vid_start',_0x4f6dac),_0x5c97a6['_setAttribute']('vid_end',_0x10a760),this['_touched']['set'](_0x3e007e,{'userId':_0x31ede0}),this['_touched']['set'](_0x4f6dac,{'userId':_0x31ede0});}}['_handleMarkerOperation'](_0x2292a0){if(!_0x2292a0['affectsData'])return;const _0x37db7b=(_0x2292a0=this['_cloneOperation'](_0x2292a0,this['_diffRoots']))['oldRange']?_0x2292a0['oldRange']['root']:null,_0x293291=_0x2292a0['newRange']?_0x2292a0['newRange']['root']:null;_0x37db7b&&this['_markers']['delete'](_0x2292a0['name']),_0x293291&&this['_markers']['set'](_0x2292a0['name'],_0x2292a0['newRange']['clone']());const _0x43a048=null===_0x2292a0['_authorId']?null:_0x2292a0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1fc926=_0x2292a0['name'];if(!this['_touchedMarkers']['has'](_0x1fc926))return void this['_touchedMarkers']['set'](_0x1fc926,{'range':_0x2292a0['oldRange'],'userId':_0x43a048});const _0x2756da=this['_touchedMarkers']['get'](_0x1fc926),_0x2ae1e7=_0x2756da['range'],_0x4d93f8=_0x2292a0['newRange'];null==_0x2ae1e7&&null==_0x4d93f8||_0x2ae1e7&&_0x4d93f8&&_0x2ae1e7['isEqual'](_0x4d93f8)?this['_touchedMarkers']['delete'](_0x2292a0['name']):_0x2756da['userId']=_0x43a048;}['_handleRootOperation'](_0x513219,_0x5be1b5){this['_diffRoots']['has'](_0x513219['rootName'])?this['_diffRoots']['get'](_0x513219['rootName'])['_isAttached']=_0x513219['isAdd']:(this['_diffRoots']['set'](_0x513219['rootName'],F(_0x513219['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x513219['rootName'],{}),_0x5be1b5&&this['_idsRoots']['set'](_0x513219['rootName'],F(_0x513219['rootName'],!0x0)));const _0xce4dc9=null===_0x513219['_authorId']?null:_0x513219['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1a9d83=this['_touchedRoots']['get'](_0x513219['rootName']);_0x1a9d83&&_0x1a9d83['userId']===_0xce4dc9?this['_touchedRoots']['delete'](_0x513219['rootName']):this['_touchedRoots']['set'](_0x513219['rootName'],{'userId':_0xce4dc9,'isAttached':_0x513219['isAdd']});}['_handleRootAttributeOperation'](_0x37a35b){const _0x1c1518=this['_diffRootsAttributes']['get'](_0x37a35b['root']['rootName']);null===_0x37a35b['newValue']?delete _0x1c1518[_0x37a35b['key']]:_0x1c1518[_0x37a35b['key']]=_0x37a35b['newValue'];}}function T(_0x5f0d32){const _0x30f5e6=F(_0x5f0d32['rootName'],_0x5f0d32['isAttached']());for(const _0x1f7f16 of _0x5f0d32['getChildren']()){const _0x391ce8=_0x1f7f16['_clone'](!0x0);_0x30f5e6['_appendChild'](_0x391ce8);}return _0x30f5e6;}function F(_0x5a715a,_0x54e8a2=!0x0){const _0x11fcf1=new mt();return _0x11fcf1['rootName']=_0x5a715a,_0x11fcf1['_isAttached']=_0x54e8a2,_0x11fcf1['isAttached']=()=>_0x11fcf1['_isAttached'],_0x11fcf1;}function B(_0xa77134,_0x5ae98b,_0x224670){const _0x21c70a='elementEnd'==_0xa77134['type']?_0x224670['createPositionAt'](_0xa77134['item'],'end'):_0x224670['createPositionBefore'](_0xa77134['item']);return _0x224670['createPositionFromPath'](_0x5ae98b,_0x21c70a['path'],_0x21c70a['stickiness']);}function J(_0x2607de,_0x2e098d,_0x3147b4){const _0x35cc5d='elementStart'==_0x2607de['type']?_0x3147b4['createPositionAt'](_0x2607de['item'],0x0):_0x3147b4['createPositionAfter'](_0x2607de['item']);return _0x3147b4['createPositionFromPath'](_0x2e098d,_0x35cc5d['path'],_0x35cc5d['stickiness']);}class ns extends _0x3d79be{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x491bc1,_0x10a313){super(_0x491bc1),this['focusTracker']=new _0x121b47(),this['keystrokes']=new _0x56ec72(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x10a313),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'](),_0x30088a({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x2db8ea=_0x16394b=>_0x16394b['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2db8ea),this['keystrokes']['set']('arrowleft',_0x2db8ea),this['keystrokes']['set']('arrowup',_0x2db8ea),this['keystrokes']['set']('arrowdown',_0x2db8ea);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x44d441){this['revisionNameInputView']['fieldView']['element']['value']=_0x44d441['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x595c01){const _0x43bd04=new nt(this['locale'],_0x38e855),_0xea51b1=_0x43bd04['fieldView'];_0xea51b1['extendTemplate']({'attributes':{'maxlength':'220'}});let _0xaa4b50=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x595c01&&(_0xaa4b50+='\x20('+m(this['locale'],'optional')+')'),(_0x43bd04['label']=_0xaa4b50,_0xea51b1['on']('input',()=>{this['revisionNameInputValue']=_0xea51b1['element']['value']['trim']();}),_0x43bd04);}}class u extends _0x3b4198{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x15418a=this['editor'],_0x32868a=_0x15418a['plugins']['get']('RevisionTracker');_0x15418a['ui']['componentFactory']['add']('revisionHistory',_0x1bda93=>{const _0x146e7f=_0x48876e(_0x1bda93),_0x4a0a20=_0x146e7f['panelView']['children'],_0x3da17a=new te(_0x1bda93),_0x457d1e=new _0xc67a9c(_0x1bda93),_0x4f199b=new _0x69ddbd(_0x1bda93),_0x1c0d54=new _0xc67a9c(_0x1bda93),_0x909369=new _0x69ddbd(_0x1bda93);return _0x146e7f['bind']('isEnabled')['to'](_0x32868a,'isReady',_0x32868a,'isEnabled',_0x15418a,'isReadOnly',(_0x49d3d4,_0x25269c,_0x33ae99)=>_0x49d3d4&&_0x25269c&&!_0x33ae99),_0x146e7f['buttonView']['set']({'icon':_0x474d70['history'],'label':m(_0x1bda93,'Revision\x20history'),'tooltip':!0x0}),_0x4f199b['set']({'label':m(_0x1bda93,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x4f199b['bind']('isEnabled')['to'](_0x32868a,'isReady',_0x32868a,'isEnabled',_0x15418a,'isReadOnly',(_0x49600f,_0x1c59cf,_0x3f4111)=>_0x49600f&&_0x1c59cf&&!_0x3f4111),_0x4f199b['on']('execute',()=>this['_showDialog']()),_0x909369['set']({'label':m(_0x1bda93,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x909369['bind']('isEnabled')['to'](_0x32868a,'isReady',_0x15418a,'isReadOnly',(_0x2487f7,_0x26b523)=>_0x2487f7&&!_0x26b523),_0x909369['on']('execute',()=>{_0x15418a['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x146e7f['isOpen']=!0x1,_0x15418a['editing']['view']['focus']();}),_0x457d1e['children']['add'](_0x4f199b),_0x1c0d54['children']['add'](_0x909369),_0x3da17a['role']='menu',_0x3da17a['items']['addMany']([_0x457d1e,_0x1c0d54]),_0x4a0a20['add'](_0x3da17a),_0x146e7f;}),_0x15418a['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x118c71=this['editor'],_0x71952c=_0x118c71['locale'],_0xbc2b77=new _0x1bbccd(_0x71952c),_0x5a4643=new _0x57c677(_0x71952c);_0xbc2b77['buttonView']['set']({'icon':_0x474d70['history'],'label':m(_0x71952c,'Revision\x20history')});const _0xa89748=new _0x1c2932(_0x71952c,_0xbc2b77),_0x3d98c7=new _0x1d4cc2(_0x71952c);_0x3d98c7['set']({'label':m(_0x71952c,'Save\x20current\x20revision')}),_0x3d98c7['delegate']('execute')['to'](_0xbc2b77),_0x3d98c7['on']('execute',()=>{this['_showDialog']();}),_0xa89748['children']['add'](_0x3d98c7),_0x5a4643['items']['add'](_0xa89748);const _0x218c02=new _0x1c2932(_0x71952c,_0xbc2b77),_0x105991=new _0x1d4cc2(_0x71952c);return _0x105991['set']({'label':m(_0x71952c,'Open\x20revision\x20history')}),_0x105991['delegate']('execute')['to'](_0xbc2b77),_0x105991['on']('execute',()=>{_0x118c71['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x218c02['children']['add'](_0x105991),_0x5a4643['items']['add'](_0x218c02),_0xbc2b77['panelView']['children']['add'](_0x5a4643),_0xbc2b77;}['_showDialog'](){const _0x676aa5=this['editor'],_0x2f43f6=_0x676aa5['locale'],_0xbc6dac=_0x676aa5['plugins']['get']('Dialog'),_0x2192b6=_0x676aa5['plugins']['get']('RevisionTracker');function _0x208211(_0x2f6fba){_0x676aa5['config']['get']('revisionHistory.requireRevisionName')&&''===_0x2f6fba['revisionName']?_0x2f6fba['revisionNameInputView']['errorText']=m(_0x2f43f6,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x676aa5['plugins']['get'](l)['saveRevision']({'name':_0x2f6fba['revisionName']}),_0xbc6dac['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x208211(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0xbc6dac['show']({'id':'revisionSave','title':m(_0x2f43f6,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x676aa5['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0xbc6dac['hide']()},{'label':m(_0x676aa5['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x24a6a4){_0x24a6a4['bind']('isEnabled')['to'](_0x2192b6,'isReady',_0x2192b6,'isEnabled',_0x676aa5,'isReadOnly',(_0x288147,_0x31d198,_0x5685b1)=>_0x288147&&_0x31d198&&!_0x5685b1);},'onExecute':()=>_0x208211(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0xa22426=this['editor'],_0x4d1a20=_0xa22426['locale'];this['_saveRevisionFormView']=new ns(_0x4d1a20,_0xa22426['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x3d79be{['changeId'];['_model'];constructor(_0x356b8c,_0x3b64cf){super(_0x356b8c),this['_model']=_0x3b64cf,this['changeId']=_0x3b64cf['id'];const _0x69dad3=this['bindTemplate'],_0x749673=m(_0x356b8c,_0x3b64cf['data']['isSuggestion']?'Suggested\x20by':'add'==_0x3b64cf['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x3b64cf['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x69dad3['to']('type',_0x320238=>'ck-revision-change__'+_0x320238)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x749673}]},{'text':'\x20'+_0x3b64cf['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x3b0443(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x26e7c6){super(),this['id']=_0x26e7c6['id']||_0x2ce67f(),this['author']=_0x26e7c6['author'],this['type']=_0x26e7c6['type'],this['data']=_0x26e7c6['data']||{},this['rootName']=_0x26e7c6['rootName'],this['set']('createdAt',_0x26e7c6['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(_0x1aed91,_0x2e6d15){this['newRevisionId']=_0x1aed91,this['oldRevisionId']=_0x2e6d15,this['changes']=new _0x1c2945();}['_setChanges'](_0x2e88ef){for(const _0x40d545 of _0x2e88ef)this['changes']['add'](_0x40d545);}}const Y={'c':_0x27f5bf,'a':_0x1c61f2,'e':_0x1af407,'r':_0x20d19f,'u':_0x3f29ac};class d extends _0x3b4198{['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[_0x101374,_0x3baed2,j];}constructor(_0x273097){super(_0x273097),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',(_0x432a96,_0x256307,_0xb407cc)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x5f419e=>{for(const _0x43ea77 of this['editor']['editing']['view']['document']['roots'])_0xb407cc?_0x5f419e['removeClass']('ck-editor__editable__overlay',_0x43ea77):_0x5f419e['addClass']('ck-editor__editable__overlay',_0x43ea77);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x9d1d45=>null!==_0x9d1d45),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x427541,_0x49fa4c,_0x273636)=>_0x427541&&_0x273636?_0x49fa4c['changes']['getIndex'](_0x273636):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x4636c9,_0xef0b53)=>_0x4636c9?_0xef0b53['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x3baed2);}['init'](){const _0x3ac84e=this['editor'],_0x17e4d8=new yt(_0x3ac84e,{'direction':'backward'}),_0x23a90e=new yt(_0x3ac84e,{'direction':'forward'});(_0x3ac84e['commands']['add']('showPreviousChange',_0x17e4d8),_0x3ac84e['commands']['add']('showNextChange',_0x23a90e),_0x3ac84e['commands']['add']('restoreRevision',new _t(_0x3ac84e)),this['on']('change:numberOfChanges',()=>{_0x17e4d8['refresh'](),_0x23a90e['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x3ac84e['enableReadOnlyMode']('revision-viewer'),_0x3ac84e['plugins']['has']('WidgetToolbarRepository'))&&_0x3ac84e['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x514956){await this['loadRevisionData'](_0x514956);const _0x2cba3b={};for(const _0x13bb2b in _0x514956['diffData']){if(_0x514956['diffData'][_0x13bb2b]['attachChange']&&!_0x514956['diffData'][_0x13bb2b]['attachChange']['isAttached'])continue;const _0x13a4dd=this['_removeRevisionMarkers'](JSON['parse'](_0x514956['diffData'][_0x13bb2b]['insertions'])),_0x584aa8=this['editor']['editing']['view']['document'],_0x2d862d=new _0x358982(_0x584aa8,_0x13a4dd['map'](_0x47f2dc=>this['_getViewObj'](_0x47f2dc)));this['editor']['data']['processor']['useFillerType']('marked'),_0x2cba3b[_0x13bb2b]=this['editor']['data']['processor']['toData'](_0x2d862d),this['editor']['data']['processor']['useFillerType']('default');}return _0x2cba3b;}async['getRevisionRootsAttributes'](_0x5c3867){await this['loadRevisionData'](_0x5c3867);const _0x323297={};for(const _0x1a4e9a in _0x5c3867['diffData'])_0x5c3867['diffData'][_0x1a4e9a]['attachChange']&&!_0x5c3867['diffData'][_0x1a4e9a]['attachChange']['isAttached']||(_0x323297[_0x1a4e9a]=_0x5c3867['diffData'][_0x1a4e9a]['attributesAfter']||{});return _0x323297;}['_removeRevisionMarkers'](_0x4951c6){return(_0x4951c6=_0x4951c6['filter'](_0x50c057=>!_0x50c057['name']||'revision-start'!==_0x50c057['name']&&'revision-end'!==_0x50c057['name']))['forEach'](_0x3f71c5=>{'string'!=typeof _0x3f71c5&&(_0x3f71c5['children']=this['_removeRevisionMarkers'](_0x3f71c5['children']),_0x3f71c5['attributes']=_0x3f71c5['attributes']['filter'](_0xf50b49=>!_0xf50b49[0x0]['startsWith']('data-revision-')));}),_0x4951c6;}async['compare'](_0x1d9d1e,_0x1d8c12,_0x3caa3c=!0x1){if(!this['isEnabled'])return;const _0x57453a=this['diff'],_0x16bd1a=this['repository'],_0x4363f2='string'==typeof _0x1d9d1e?_0x16bd1a['getRevision'](_0x1d9d1e):_0x1d9d1e,_0xf47078='string'==typeof _0x1d8c12?_0x16bd1a['getRevision'](_0x1d8c12):_0x1d8c12,_0x43406d=_0x4363f2['id'],_0x24b5ed=_0xf47078?_0xf47078['id']:null;if(!_0x3caa3c&&this['diff']&&this['diff']['newRevisionId']===_0x43406d&&this['diff']['oldRevisionId']===_0x24b5ed)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x43406d,_0x24b5ed);const _0x2b5d57=this['_getRevisionsRange'](_0x4363f2,_0xf47078,!0x0)['map'](_0x5c32a3=>this['loadRevisionData'](_0x5c32a3));return _0x2b5d57['push'](new Promise(_0x48fbcb=>{setTimeout(_0x48fbcb,0x14);})),Promise['all'](_0x2b5d57)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x2fe2a3=this['_getDiff'](_0x43406d,_0x24b5ed);for(const _0xe97c71 of _0x2fe2a3['changes'])this['_changeIdToChange']['set'](_0xe97c71['id'],_0xe97c71);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x24b7a3=>{for(const _0x9d41ed of this['editor']['model']['document']['getRootNames']())_0x24b7a3['detachRoot'](_0x9d41ed);for(const _0x29f473 of Object['keys'](_0x2fe2a3['model'])){const _0x148d7f=_0x24b7a3['addRoot'](_0x29f473);for(const _0x1e53f6 of Object['keys'](_0x2fe2a3['attributes'][_0x29f473]))_0x24b7a3['setAttribute'](_0x1e53f6,_0x2fe2a3['attributes'][_0x29f473][_0x1e53f6],_0x148d7f);_0x24b7a3['insert'](_0x2fe2a3['model'][_0x29f473],_0x148d7f,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x2fe2a3['changes'])),this['isReady']=!0x0;})['catch'](_0x49d175=>{console['error'](_0x49d175),this['_cleanUp'](),_0x57453a&&(this['diff']=_0x57453a),this['isReady']=!0x0;});}['addRevisionData'](_0x46be17,_0x3990e4){const _0x37af46=this['repository']['createRevision'](_0x46be17);return _0x37af46['on']('_update',(_0x19d02d,_0xc954d0,_0x3ad3c)=>_0x3990e4(_0xc954d0,_0x3ad3c,_0x37af46)),this['repository']['addRevision'](_0x37af46),_0x37af46;}['loadRevisionData'](_0x2c7f30){if(!_0x2c7f30||_0x2c7f30['diffData'])return Promise['resolve']();{const _0x37274e=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x37274e,'revisionId':_0x2c7f30['id']})['then'](_0x5a7041=>{_0x2c7f30['_update']({'diffData':_0x5a7041['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},_0x63742f=>{for(const _0x41ad53 of this['editor']['model']['document']['getRootNames']())_0x63742f['detachRoot'](_0x41ad53);});}['_sortAndFilterDiffChanges'](_0x2a0438){const _0x4713ad=[],_0x551ef5=new Map();for(const _0x27d5b2 of this['editor']['model']['document']['getRootNames']()){const _0x81c599=this['editor']['editing']['view']['getDomRoot'](_0x27d5b2);if(!_0x81c599)continue;const _0x1bb7f4=_0x81c599['getClientRects']()['item'](0x0);_0x1bb7f4&&(_0x4713ad['push'](_0x27d5b2),_0x551ef5['set'](_0x27d5b2,_0x1bb7f4));}return _0x4713ad['sort']((_0x2dfc3a,_0x330530)=>{const _0x43f59c=_0x551ef5['get'](_0x2dfc3a),_0xff09d2=_0x551ef5['get'](_0x330530);return _0x43f59c['y']-_0xff09d2['y']||_0x43f59c['x']-_0xff09d2['x'];}),(_0x2a0438=_0x2a0438['filter'](_0x21e63a=>_0x4713ad['includes'](_0x21e63a['rootName'])))['sort']((_0x4eca16,_0x13ea08)=>_0x4713ad['indexOf'](_0x4eca16['rootName'])-_0x4713ad['indexOf'](_0x13ea08['rootName'])),_0x2a0438;}['_makeTape'](_0x26e03e){const _0x3e0ea3=Array['from'](_0x26e03e['markers'])['filter'](([_0x473e14,_0x2015ed])=>_0x473e14['startsWith']('revision:')&&!_0x2015ed['isCollapsed']),_0x32c1a1=Array['from'](this['editor']['model']['createRangeIn'](_0x26e03e)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x3e0ea3['length'])for(const _0x2b2b4f of _0x32c1a1){const [_0x160b1f,_0x14e52d]=_0x3e0ea3[0x0],[,_0x2e6730,_0x4cf1df]=_0x160b1f['split'](':');if(_0x14e52d['end']['isEqual'](_0x2b2b4f['nextPosition'])&&_0x3e0ea3['shift'](),(_0x2b2b4f['previousPosition']['isEqual'](_0x14e52d['start'])||_0x2b2b4f['previousPosition']['isAfter'](_0x14e52d['start']))&&('insertion'==_0x2e6730?_0x2b2b4f['isAdded']={'userId':_0x4cf1df}:'deletion'==_0x2e6730&&(_0x2b2b4f['isRemoved']={'userId':_0x4cf1df})),0x0==_0x3e0ea3['length'])break;}return _0x32c1a1;}['_refreshStartEndIndex'](_0x567ba8){const _0x2e48db=new Map();for(let _0x353fbd=0x0;_0x353fbd<_0x567ba8['length'];_0x353fbd++)'text'===_0x567ba8[_0x353fbd]['type']?(_0x567ba8[_0x353fbd]['item']['startIndex']=_0x353fbd,_0x567ba8[_0x353fbd]['item']['endIndex']=_0x353fbd):('elementStart'===_0x567ba8[_0x353fbd]['type']?_0x567ba8[_0x353fbd]['item']['startIndex']=_0x353fbd:'elementEnd'===_0x567ba8[_0x353fbd]['type']&&(_0x567ba8[_0x353fbd]['item']['endIndex']=_0x353fbd),_0x2e48db['set'](_0x567ba8[_0x353fbd]['id'],_0x353fbd));for(const _0x46e50c of _0x2e48db['values']())'elementStart'===_0x567ba8[_0x46e50c]['type']?_0x567ba8[_0x46e50c]['item']['endIndex']=_0x2e48db['get'](_0x567ba8[_0x46e50c]['pairId']):'elementEnd'===_0x567ba8[_0x46e50c]['type']&&(_0x567ba8[_0x46e50c]['item']['startIndex']=_0x2e48db['get'](_0x567ba8[_0x46e50c]['pairId']));}['_processTape'](_0x1be6f7){for(let _0x3b2469=0x0;_0x3b2469<_0x1be6f7['length'];_0x3b2469++){if('elementStart'===_0x1be6f7[_0x3b2469]['type'])_0x1be6f7[_0x3b2469]['item']['startIndex']=_0x3b2469;else{if('elementEnd'===_0x1be6f7[_0x3b2469]['type']){_0x1be6f7[_0x3b2469]['item']['endIndex']=_0x3b2469;const _0x14e54a=_0x1be6f7[_0x3b2469]['item']['startIndex'];_0x1be6f7[_0x14e54a]['pairId']=_0x1be6f7[_0x3b2469]['id'],_0x1be6f7[_0x3b2469]['pairId']=_0x1be6f7[_0x14e54a]['id'];}else _0x1be6f7[_0x3b2469]['item']['startIndex']=_0x3b2469,_0x1be6f7[_0x3b2469]['item']['endIndex']=_0x3b2469,_0x1be6f7[_0x3b2469]['pairId']=null;}_0x1be6f7[_0x3b2469]['markersStart']||(_0x1be6f7[_0x3b2469]['markersStart']=[],_0x1be6f7[_0x3b2469]['markersEnd']=[]);}}['_markInsertions'](_0x1ec316,_0x47f15e){const _0x5d03bd=_0x1ec316['filter'](_0x497066=>!_0x497066['isAdded']);for(let _0x4fc1ad=0x0;_0x4fc1ad<_0x47f15e['length'];_0x4fc1ad++)_0x47f15e[_0x4fc1ad]['isAdded']&&(_0x5d03bd[_0x4fc1ad]['isAdded']=_0x47f15e[_0x4fc1ad]['isAdded']);}['_makeModelFromViewString'](_0x47560c){const _0x38f8e0=JSON['parse'](_0x47560c),_0x4a8885=this['editor']['editing']['view']['document'],_0x9a7987=new _0x358982(_0x4a8885,_0x38f8e0['map'](_0x28b35=>this['_getViewObj'](_0x28b35)));return this['editor']['data']['toModel'](_0x9a7987);}['_getViewObj'](_0x47238a){const _0x1ed06f=this['editor']['editing']['view']['document'];if('string'==typeof _0x47238a)return new _0x311b17(_0x1ed06f,_0x47238a);{const _0x32e1a5=_0x47238a['children']['map'](_0x1118b4=>this['_getViewObj'](_0x1118b4));return new(Y[_0x47238a['type']]||_0x24f07d)(_0x1ed06f,_0x47238a['name'],_0x47238a['attributes'],_0x32e1a5);}}['_getDiff'](_0x3caf06,_0x3c2760=null){const _0xc2dafc=this['repository']['getRevision'](_0x3caf06),_0x174529=_0x3c2760?this['repository']['getRevision'](_0x3c2760):null,_0x58b740=this['_getRevisionsRange'](_0xc2dafc,_0x174529),_0x21cc25=_0x58b740[_0x58b740['length']-0x1],_0xc6ec8e=new Map(),_0x372bbb={'model':{},'attributes':{},'changes':[]},_0x418365=new Set(),_0x5b6bf3=new Map();for(let _0x3c95d3=_0x58b740['length']-0x1;_0x3c95d3>=0x0;_0x3c95d3--){const _0x1c6e70=_0x58b740[_0x3c95d3];for(const _0x508218 of Object['keys'](_0x1c6e70['diffData']))if(_0x1c6e70['diffData'][_0x508218]['attachChange']){const _0x1be647=_0x1c6e70['diffData'][_0x508218]['attachChange'];_0x1be647['isAttached']?(_0x418365['add'](_0x508218),_0x5b6bf3['has'](_0x508218)&&_0x5b6bf3['get'](_0x508218)['userId']==_0x1be647['userId']?_0x5b6bf3['delete'](_0x508218):_0x5b6bf3['set'](_0x508218,_0x1be647)):_0x5b6bf3['has'](_0x508218)?(_0x418365['delete'](_0x508218),_0x5b6bf3['delete'](_0x508218)):(_0x418365['add'](_0x508218),_0x5b6bf3['set'](_0x508218,_0x1be647));}else _0x418365['add'](_0x508218);}for(const _0x14b9a5 of _0x418365){const _0x538a0d=_0x5b6bf3['has'](_0x14b9a5)&&!_0x5b6bf3['get'](_0x14b9a5)['isAttached'];let _0x1726cd=_0x538a0d?_0x58b740['length']-0x1:0x0;const _0x1a3ae7=_0x538a0d?-0x1:0x1;for(;_0x58b740[_0x1726cd];){const _0x260660=_0x58b740[_0x1726cd];if(_0x260660['diffData'][_0x14b9a5]){const _0x50e635=_0x538a0d?_0x260660['diffData'][_0x14b9a5]['attributesBefore']:_0x260660['diffData'][_0x14b9a5]['attributesAfter'];_0x372bbb['attributes'][_0x14b9a5]=_0x50e635?_0x176d1b(_0x50e635):{};break;}_0x1726cd+=_0x1a3ae7;}}for(const _0x4730e6 of _0x58b740){_0x4730e6['model']={};for(const _0x48526d of _0x4730e6['authors'])_0xc6ec8e['set'](_0x48526d['id'],_0x48526d);for(const _0x24bef6 of _0x418365){const _0x1dda31=_0x4730e6['diffData'][_0x24bef6]?_0x4730e6['diffData'][_0x24bef6]['insertions']:'[]',_0x38104f=_0x4730e6['diffData'][_0x24bef6]?_0x4730e6['diffData'][_0x24bef6]['deletions']:'[]';_0x4730e6['model'][_0x24bef6]={'insertions':this['_makeModelFromViewString'](_0x1dda31),'deletions':this['_makeModelFromViewString'](_0x38104f)};}}for(const _0x1f46d4 of _0x418365){let _0x7cd392=null,_0x5d45fa=0x0;const _0x25415e=new Map(Array['from'](_0xc2dafc['model'][_0x1f46d4]['insertions']['markers'])['filter'](([_0x122577])=>!_0x122577['startsWith']('revision:')));let _0x5ab939=0x0;for(const _0x5a30b1 of _0x58b740){const _0x5bbd7b=this['_makeTape'](_0x5a30b1['model'][_0x1f46d4]['insertions']);_0x5a30b1==_0xc2dafc?(_0x7cd392=_0x5bbd7b,_0x5d45fa=_0x7cd392['length'],_0x7cd392['forEach'](_0x2edcff=>{_0x2edcff['id']=_0x5ab939++;}),this['_processTape'](_0x7cd392)):this['_markInsertions'](_0x7cd392,_0x5bbd7b);const _0x365106=_0x7cd392['filter'](_0x49e019=>!_0x49e019['isAdded'])['map'](_0x256e39=>_0x256e39['id']);let _0x514932=0x0;const _0x89c90a=this['_makeTape'](_0x5a30b1['model'][_0x1f46d4]['deletions']);_0x89c90a['forEach'](_0x2d9da5=>{_0x2d9da5['isRemoved']?_0x2d9da5['id']=_0x5d45fa++:_0x2d9da5['id']=_0x365106[_0x514932++];}),this['_processTape'](_0x89c90a),this['_setDistance'](_0x7cd392,'isAdded'),this['_setDistance'](_0x89c90a,'isRemoved'),_0x5a30b1==_0xc2dafc&&this['_markMarkers'](_0x7cd392,_0x25415e),_0x7cd392=this['_joinTapes'](_0x7cd392,_0x89c90a),this['_refreshStartEndIndex'](_0x7cd392),this['_setDistance'](_0x7cd392,'isRemoved');}_0x7cd392=_0x7cd392['filter'](_0x3082ef=>!(_0x3082ef['isAdded']&&_0x3082ef['isRemoved']));const _0x1ac8b5=new Map(_0x21cc25['model'][_0x1f46d4]['deletions']['markers']),_0x480094=new Set(_0x25415e['keys']());for(const _0x576f1d of _0x1ac8b5['keys']())_0x480094['delete'](_0x576f1d);this['_markSuggestions'](_0x7cd392,_0x480094),this['_fixObsoleteTags'](_0x7cd392),_0x7cd392=this['_removeMissingPairs'](_0x7cd392),_0x7cd392=this['_markMismatchedRemovedTags'](_0x7cd392),_0x7cd392=this['_removeUnsupportedChanges'](_0x7cd392);const {root:_0x4a9354,changes:_0x327b9e}=this['_makeModelFromTape'](_0x7cd392,_0xc6ec8e,_0x1f46d4);_0x372bbb['model'][_0x1f46d4]=_0x4a9354;const _0x2fe530=_0x5b6bf3['get'](_0x1f46d4);if(_0x2fe530){const _0x5bc799=_0xc6ec8e['get'](_0x2fe530['userId']),_0x15d658=new r({'author':_0x5bc799,'type':_0x2fe530['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x1f46d4});_0x327b9e['unshift'](_0x15d658),_0x372bbb['attributes'][_0x1f46d4]['revisionHistoryAttachChange']=_0x15d658['id'];}_0x372bbb['changes']=_0x372bbb['changes']['concat'](_0x327b9e);}return _0x372bbb;}['_markMarkers'](_0x1a9e20,_0x3aaae8){for(let _0x139164=0x0;_0x139164<_0x1a9e20['length'];_0x139164++)for(const [_0x12bed8,_0x363d68]of _0x3aaae8)_0x363d68['start']['isEqual'](_0x1a9e20[_0x139164]['previousPosition'])&&_0x1a9e20[_0x139164]['markersStart']['push'](_0x12bed8),_0x363d68['end']['isEqual'](_0x1a9e20[_0x139164]['nextPosition'])&&_0x1a9e20[_0x139164]['markersEnd']['push'](_0x12bed8);}['_joinTapes'](_0x4e3d9a,_0x496aa3){let _0x78b941=[],_0x2422af=0x0,_0x1150b6=0x0;for(;_0x2422af<_0x4e3d9a['length']||_0x1150b6<_0x496aa3['length'];){const _0x4b2f56=_0x4e3d9a[_0x2422af]||{},_0x5ae4f8=_0x496aa3[_0x1150b6]||{};if(_0x4b2f56['id']==_0x5ae4f8['id'])_0x2422af++,_0x1150b6++,_0x78b941['push'](_0x4b2f56);else{if(_0x5ae4f8['isRemoved']&&_0x4b2f56['isAdded']){const {commonTape:_0x3ae77a,iEnd:_0x18c8da,jEnd:_0x307a06}=this['_threeWayMerge'](_0x4e3d9a,_0x2422af,_0x496aa3,_0x1150b6);_0x78b941=_0x78b941['concat'](_0x3ae77a),_0x2422af=_0x18c8da,_0x1150b6=_0x307a06;}else _0x5ae4f8['isRemoved']?(_0x1150b6++,_0x78b941['push'](_0x5ae4f8)):(_0x2422af++,_0x78b941['push'](_0x4b2f56));}}return _0x78b941;}['_markSuggestions'](_0x14b5d1,_0x29d1a6){const _0xe117b4=[];for(let _0x275ff8=0x0;_0x275ff8<_0x14b5d1['length'];_0x275ff8++){for(let _0x1a6039=0x0;_0x1a6039<_0x14b5d1[_0x275ff8]['markersStart']['length'];_0x1a6039++){const _0x73440d=_0x14b5d1[_0x275ff8]['markersStart'][_0x1a6039];if(!_0x29d1a6['has'](_0x73440d))continue;const {group:_0x2b0ce4,type:_0xbc6aa7,authorId:_0x4b7eb2}=_0xa552d0(_0x73440d);'revision-suggestion'!=_0x2b0ce4||'insertion'!=_0xbc6aa7&&'deletion'!=_0xbc6aa7||(_0xe117b4['unshift']({'type':_0xbc6aa7,'name':_0x73440d,'userId':_0x4b7eb2}),_0x14b5d1[_0x275ff8]['markersStart']['splice'](_0x1a6039,0x1),_0x1a6039--);}_0x394e56(_0x14b5d1[_0x275ff8]);for(let _0x3ef2e0=0x0;_0x3ef2e0<_0x14b5d1[_0x275ff8]['markersEnd']['length'];_0x3ef2e0++){const _0x19dc64=_0x14b5d1[_0x275ff8]['markersEnd'][_0x3ef2e0];if(!_0x29d1a6['has'](_0x19dc64))continue;const {group:_0x528554,type:_0x1fff18}=_0xa552d0(_0x19dc64);if('revision-suggestion'!=_0x528554||'insertion'!=_0x1fff18&&'deletion'!=_0x1fff18)continue;_0x14b5d1[_0x275ff8]['markersEnd']['splice'](_0x3ef2e0,0x1),_0x3ef2e0--;const _0x1a88c5=_0xe117b4['findIndex'](_0x15e6d2=>_0x15e6d2['name']==_0x19dc64);_0x1a88c5>-0x1&&_0xe117b4['splice'](_0x1a88c5,0x1);}}function _0xa552d0(_0x3509cd){const _0xef0ab0=_0x3509cd['split'](':');return{'group':_0xef0ab0[0x0],'type':_0xef0ab0[0x1],'subType':_0xef0ab0['length']>=0x5?_0xef0ab0[0x2]:null,'id':_0xef0ab0['length']<0x5?_0xef0ab0[0x2]:_0xef0ab0[0x3],'authorId':_0xef0ab0['length']<0x5?_0xef0ab0[0x3]:_0xef0ab0[0x4],'markerCount':0x6==_0xef0ab0['length']?_0xef0ab0[0x5]:null};}function _0x394e56(_0x13eccb){for(let _0x2cc84d=0x0;_0x2cc84d<_0xe117b4['length'];_0x2cc84d++){if(_0x13eccb['isAdded']&&'insertion'==_0xe117b4[_0x2cc84d]['type'])return _0x13eccb['isAddSuggestion']=_0xe117b4[_0x2cc84d],void delete _0x13eccb['isAdded'];if(!_0x13eccb['isAdded']&&!_0x13eccb['isRemoved']&&'deletion'==_0xe117b4[_0x2cc84d]['type'])return void(_0x13eccb['isRemoveSuggestion']=_0xe117b4[_0x2cc84d]);}}}['_setDistance'](_0x362ae2,_0x28c75a){let _0x46e575=0x0,_0x30bf56=!0x1;const _0x48a5a8=new Map();for(const _0x383585 of _0x362ae2)_0x383585[_0x28c75a]?_0x30bf56&&(_0x46e575++,_0x30bf56=!0x1):(_0x46e575++,_0x30bf56=!0x0),_0x48a5a8['set'](_0x383585['id'],_0x46e575);for(let _0x403538=0x0;_0x403538<_0x362ae2['length'];_0x403538++){if('isRemoved'==_0x28c75a&&_0x362ae2[_0x403538]['isAdded']||'isAdded'==_0x28c75a&&_0x362ae2[_0x403538]['isRemoved'])continue;if('text'==_0x362ae2[_0x403538]['type']){_0x362ae2[_0x403538]['distance']=0x0;continue;}const _0x517181=_0x48a5a8['get'](_0x362ae2[_0x403538]['pairId']),_0x298241=_0x48a5a8['get'](_0x362ae2[_0x403538]['id']);_0x362ae2[_0x403538]['distance']=_0x517181-_0x298241;}}['_getRevisionsRange'](_0x3c4be9,_0x4b2dbc,_0x4316b9=!0x1){const _0x5ccaba=[];let _0x4d3fa2=this['repository']['getIndex'](_0x3c4be9),_0x306e47=this['repository']['getIndex'](_0x4b2dbc);for(-0x1==_0x306e47&&(_0x306e47=this['repository']['_revisions']['length'],_0x4316b9=!0x1);_0x4d3fa2<_0x306e47;)_0x5ccaba['push'](this['repository']['getRevision'](_0x4d3fa2)),_0x4d3fa2++;return _0x4316b9&&_0x5ccaba['push'](this['repository']['getRevision'](_0x4d3fa2)),_0x5ccaba;}['_threeWayMerge'](_0x539651,_0x102e95,_0x13df03,_0x446764){const _0x5278b0=this['editor']['model']['schema'];let _0x5341a3=_0x102e95;for(;_0x539651[_0x5341a3]&&_0x539651[_0x5341a3]['isAdded'];)_0x5341a3++;let _0xf7a128=_0x446764;for(;_0x13df03[_0xf7a128]&&_0x13df03[_0xf7a128]['isRemoved'];)_0xf7a128++;_0x4762a4(_0x539651,_0x102e95,_0x5341a3),_0x4762a4(_0x13df03,_0x446764,_0xf7a128);const _0x1dd21f=_0x13df03['slice'](_0x446764,_0xf7a128)['concat'](_0x539651['slice'](_0x102e95,_0x5341a3));return _0x1dd21f['sort']((_0xb5069a,_0x406632)=>_0xb5069a['side']!=_0x406632['side']?_0xb5069a['side']-_0x406632['side']:_0xb5069a['level']!=_0x406632['level']?_0xb5069a['level']-_0x406632['level']:_0xb5069a['distance']!=_0x406632['distance']?_0x406632['distance']-_0xb5069a['distance']:!!_0xb5069a['isAdded']!=!!_0x406632['isAdded']?-0x1==_0xb5069a['side']||0x0==_0xb5069a['side']?_0xb5069a['isAdded']?-0x1:0x1:_0xb5069a['isAdded']?0x1:-0x1:_0xb5069a['index']-_0x406632['index']),{'commonTape':_0x1dd21f,'iEnd':_0x5341a3,'jEnd':_0xf7a128};function _0x4762a4(_0x38b0f4,_0x7a6dfc,_0x11df6f){let _0xa5090c=-0x1,_0x466fa7=Number['POSITIVE_INFINITY'],_0x54cf0f=!0x0;for(let _0x4dc133=_0x7a6dfc;_0x4dc133<_0x11df6f;_0x4dc133++)if(_0x5278b0['isInline'](_0x38b0f4[_0x4dc133]['item'])||(_0x54cf0f=!0x1),_0x38b0f4[_0x4dc133]['item']['startIndex']<_0x7a6dfc&&(_0xa5090c=_0x4dc133),_0x38b0f4[_0x4dc133]['item']['endIndex']>=_0x11df6f){_0x466fa7=_0x4dc133;break;}_0x54cf0f&&(_0xa5090c=_0x11df6f-0x1);for(let _0x52f8e6=_0x7a6dfc;_0x52f8e6<_0x11df6f;_0x52f8e6++)_0x38b0f4[_0x52f8e6]['side']=_0x52f8e6<=_0xa5090c?-0x1:_0x52f8e6<_0x466fa7?0x0:0x1,_0x38b0f4[_0x52f8e6]['index']=_0x52f8e6;let _0x3aea79=0x0;for(let _0x335424=_0x7a6dfc;_0x335424<=_0xa5090c;_0x335424++)0x0==_0x38b0f4[_0x335424]['distance']?_0x38b0f4[_0x335424]['level']=_0x3aea79:(_0x3aea79++,_0x38b0f4[_0x335424]['level']=_0x3aea79,_0x3aea79++);for(let _0x4ebfec=_0x7a6dfc;_0x4ebfec<_0x11df6f;_0x4ebfec++)0x0==_0x38b0f4[_0x4ebfec]['side']&&(_0x38b0f4[_0x4ebfec]['level']=_0x3aea79);_0x3aea79=0x0;for(let _0x334462=_0x11df6f-0x1;_0x334462>=_0x466fa7;_0x334462--)0x0==_0x38b0f4[_0x334462]['distance']?_0x38b0f4[_0x334462]['level']=_0x3aea79:(_0x3aea79--,_0x38b0f4[_0x334462]['level']=_0x3aea79,_0x3aea79--);}}['_fixObsoleteTags'](_0xa3021f){const _0x444d66=new Map(),_0x433fd4=this['editor']['model']['schema'];for(let _0x41e9ba=0x1;_0x41e9ba<_0xa3021f['length'];_0x41e9ba++){let _0x1dd5f7,_0x1feede,_0x33fcc2;const _0x127562=_0xa3021f[_0x41e9ba],_0x101ef4=_0xa3021f[_0x41e9ba-0x1];if('text'==_0x127562['type'])continue;if(_0x127562['type']!=_0x101ef4['type'])continue;if(!_0x433fd4['isBlock'](_0x101ef4['item'])||_0x433fd4['isLimit'](_0x101ef4['item']))continue;if(!_0x433fd4['isBlock'](_0x127562['item'])||_0x433fd4['isLimit'](_0x127562['item']))continue;if((_0xa3021f[_0x41e9ba]['isAdded']||_0xa3021f[_0x41e9ba]['isAddSuggestion'])&&_0xa3021f[_0x41e9ba-0x1]['isRemoved'])_0x1dd5f7=_0xa3021f[_0x41e9ba],_0x1feede=_0xa3021f[_0x41e9ba-0x1],_0x33fcc2=_0x41e9ba-0x1;else{if(!_0xa3021f[_0x41e9ba]['isRemoved']||!_0xa3021f[_0x41e9ba-0x1]['isAdded']&&!_0xa3021f[_0x41e9ba-0x1]['isAddSuggestion'])continue;_0x1dd5f7=_0xa3021f[_0x41e9ba-0x1],_0x1feede=_0xa3021f[_0x41e9ba],_0x33fcc2=_0x41e9ba;}const _0x30d444=_0x1dd5f7['level']==_0x1feede['level'],_0x3c79d2=Math['abs'](_0x1dd5f7['level'])<Math['abs'](_0x1feede['level'])&&0x0==_0x1feede['distance'];(_0x30d444||_0x3c79d2)&&(_0x444d66['set'](_0x1feede['id'],_0x1dd5f7['id']),_0xa3021f['splice'](_0x33fcc2,0x1),_0x41e9ba--,_0x1dd5f7['isAdded']=!0x1);}for(let _0x1c6837=0x0;_0x1c6837<_0xa3021f['length'];_0x1c6837++)_0x444d66['has'](_0xa3021f[_0x1c6837]['pairId'])&&(_0xa3021f[_0x1c6837]['pairId']=_0x444d66['get'](_0xa3021f[_0x1c6837]['pairId']));}['_removeMissingPairs'](_0x2c6097){const _0x2a21c2=new Set(_0x2c6097['map'](_0x23be78=>_0x23be78['id']));for(let _0x2d3613=0x0;_0x2d3613<_0x2c6097['length'];_0x2d3613++)_0x2a21c2['has'](_0x2c6097[_0x2d3613]['pairId'])||0x0==_0x2c6097[_0x2d3613]['distance']||(_0x2c6097[_0x2d3613]['isIncorrect']=!0x0);return _0x2c6097['filter'](_0x4dabbf=>!_0x4dabbf['isIncorrect']);}['_markMismatchedRemovedTags'](_0x574023){const _0x478d21=new Set();for(let _0x564b06=0x0;_0x564b06<_0x574023['length'];_0x564b06++){if(_0x478d21['has'](_0x574023[_0x564b06]['id'])&&_0x574023[_0x564b06]['isRemoved']&&(_0x574023[_0x564b06]['isIncorrect']=!0x0),_0x574023[_0x564b06]['isIncorrect'])continue;if(0x0==_0x574023[_0x564b06]['distance'])continue;if('elementStart'!=_0x574023[_0x564b06]['type'])continue;if(null==_0x574023[_0x564b06]['pairId'])continue;let _0x1e949a=_0x564b06+0x1,_0x4e02eb=0x0;for(;_0x574023[_0x1e949a]['id']!=_0x574023[_0x564b06]['pairId'];)'elementStart'==_0x574023[_0x1e949a]['type']?_0x4e02eb++:'elementEnd'==_0x574023[_0x1e949a]['type']&&_0x4e02eb--,_0x1e949a++;if(0x0!=_0x4e02eb){if(_0x574023[_0x564b06]['isRemoved'])_0x574023[_0x564b06]['isIncorrect']=!0x0;else{for(;_0x1e949a!=_0x564b06;)_0x574023[_0x1e949a]['isRemoved']&&0x0!=_0x574023[_0x1e949a]['distance']&&(_0x574023[_0x1e949a]['isIncorrect']=!0x0,_0x478d21['add'](_0x574023[_0x1e949a]['pairId'])),_0x1e949a--;}}}return _0x574023['filter'](_0x336e5b=>!_0x336e5b['isIncorrect']);}['_removeUnsupportedChanges'](_0x317cc0){const _0x5e884b=this['editor']['model']['schema'];for(let _0x3bb951=0x0;_0x3bb951<_0x317cc0['length'];_0x3bb951++){if(!(_0x317cc0[_0x3bb951]['isAdded']||_0x317cc0[_0x3bb951]['isAddSuggestion']||_0x317cc0[_0x3bb951]['isRemoved']||_0x317cc0[_0x3bb951]['isRemoveSuggestion']))continue;if(0x0==_0x317cc0[_0x3bb951]['distance'])continue;const _0x3072e8=_0x317cc0[_0x3bb951]['item'];_0x5e884b['isBlock'](_0x3072e8)||_0x5e884b['isLimit'](_0x3072e8)||(_0x317cc0[_0x3bb951]['isAdded']&&delete _0x317cc0[_0x3bb951]['isAdded'],_0x317cc0[_0x3bb951]['isAddSuggestion']&&delete _0x317cc0[_0x3bb951]['isAddSuggestion'],_0x317cc0[_0x3bb951]['isRemoveSuggestion']&&delete _0x317cc0[_0x3bb951]['isRemoveSuggestion'],_0x317cc0[_0x3bb951]['isRemoved']&&(_0x317cc0[_0x3bb951]['isIncorrect']=!0x0));}return _0x317cc0['filter'](_0x3f27b4=>!_0x3f27b4['isIncorrect']);}['_makeModelFromTape'](_0x58cb7a,_0x25139d,_0xda7da1){const _0x4cafda=new mt(),_0x2e1e9e=[],_0x36d1f0=new Map(),_0x1dc115=this['editor']['model'],_0x5dd984=_0x1dc115['schema'],_0xd2ccda=[_0x4cafda],_0x1bbdd6={},_0x53d523={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x37f7ae=null;const _0x28c434=[0x0];for(let _0x2906d5=0x0;_0x2906d5<_0x58cb7a['length'];_0x2906d5++)if('elementStart'===_0x58cb7a[_0x2906d5]['type']){_0x58cb7a[_0x2906d5]['previousPosition']=_0x1dc115['createPositionFromPath'](_0x4cafda,_0x28c434);const _0x1af6b5=new ft(_0x58cb7a[_0x2906d5]['item']['name'],_0x58cb7a[_0x2906d5]['item']['getAttributes']());_0xd2ccda[0x0]['_appendChild'](_0x1af6b5),_0x28c434['push'](0x0),_0xd2ccda['unshift'](_0x1af6b5),_0x58cb7a[_0x2906d5]['nextPosition']=_0x1dc115['createPositionFromPath'](_0x4cafda,_0x28c434);}else'elementEnd'===_0x58cb7a[_0x2906d5]['type']?(_0xd2ccda['shift'](),_0x58cb7a[_0x2906d5]['previousPosition']=_0x1dc115['createPositionFromPath'](_0x4cafda,_0x28c434),_0x28c434['pop'](),_0x28c434[_0x28c434['length']-0x1]++,_0x58cb7a[_0x2906d5]['nextPosition']=_0x1dc115['createPositionFromPath'](_0x4cafda,_0x28c434)):(_0x58cb7a[_0x2906d5]['previousPosition']=_0x1dc115['createPositionFromPath'](_0x4cafda,_0x28c434),_0x37f7ae?_0x37f7ae['_data']+=_0x58cb7a[_0x2906d5]['item']['data']:_0x37f7ae=new wt(_0x58cb7a[_0x2906d5]['item']['data'],_0x58cb7a[_0x2906d5]['item']['getAttributes']()),_0x58cb7a[_0x2906d5+0x1]&&'text'===_0x58cb7a[_0x2906d5+0x1]['type']&&_0x33f565(_0x37f7ae,_0x58cb7a[_0x2906d5+0x1]['item'])||(_0xd2ccda[0x0]['_appendChild'](_0x37f7ae),_0x37f7ae=null),_0x28c434[_0x28c434['length']-0x1]+=_0x58cb7a[_0x2906d5]['item']['offsetSize'],_0x58cb7a[_0x2906d5]['nextPosition']=_0x1dc115['createPositionFromPath'](_0x4cafda,_0x28c434));for(let _0xa11355=0x0;_0xa11355<_0x58cb7a['length'];_0xa11355++){const _0x3283c1=_0x58cb7a[_0xa11355]['previousPosition'],_0x171eb2=_0x58cb7a[_0xa11355]['nextPosition'];for(const _0x3db859 of _0x58cb7a[_0xa11355]['markersStart'])_0x36d1f0['set'](_0x3db859,{'start':_0x3283c1,'end':null});_0x1f512e('isRemoveSuggestion',_0xa11355,_0x3283c1,_0x171eb2),_0x1f512e('isAddSuggestion',_0xa11355,_0x3283c1,_0x171eb2),_0x1f512e('isRemoved',_0xa11355,_0x3283c1,_0x171eb2),_0x1f512e('isAdded',_0xa11355,_0x3283c1,_0x171eb2);for(const _0x41dd4f of _0x58cb7a[_0xa11355]['markersEnd']){_0x36d1f0['get'](_0x41dd4f)['end']=_0x171eb2;}}for(const [_0x22551e,_0x2cbfae]of _0x36d1f0){const _0x152a9e=this['editor']['model']['createRange'](_0x2cbfae['start'],_0x2cbfae['end']);_0x4cafda['markers']['set'](_0x22551e,_0x152a9e);}return _0x2e1e9e['sort']((_0x603961,_0x3ad6df)=>{const _0x512193=_0x4cafda['markers']['get']('revision:'+_0x603961['id']),_0x5b2b75=_0x4cafda['markers']['get']('revision:'+_0x3ad6df['id']);return _0x512193['start']['isBefore'](_0x5b2b75['start'])?-0x1:_0x512193['start']['isAfter'](_0x5b2b75['start'])?0x1:_0x512193['end']['isBefore'](_0x5b2b75['end'])?-0x1:_0x512193['end']['isAfter'](_0x5b2b75['end'])?0x1:'add'===_0x603961['type']?-0x1:0x1;}),{'root':_0x4cafda,'changes':_0x2e1e9e};function _0x1f512e(_0x289dcd,_0x2d8921,_0xd540e7,_0x1b4b72){const _0x969a52=!!_0x58cb7a[_0x2d8921][_0x289dcd],_0x3dbefd=_0x969a52?_0x58cb7a[_0x2d8921][_0x289dcd]['userId']:null,_0x5d6f97=_0x2d8921===_0x58cb7a['length']-0x1,_0x4331dd=_0x53d523[_0x289dcd][0x0],_0x57481e=_0x5dd984['isObject'](_0x58cb7a[_0x2d8921]['item']);!_0x1bbdd6[_0x289dcd]&&_0x969a52?_0x1bbdd6[_0x289dcd]={'start':_0xd540e7,'tapeItem':_0x58cb7a[_0x2d8921],'userId':_0x3dbefd,'type':_0x289dcd}:_0x1bbdd6[_0x289dcd]&&!_0x969a52?(_0x1bbdd6[_0x289dcd]['end']=_0xd540e7,_0x5ee90d(_0x1bbdd6[_0x289dcd]),_0x1bbdd6[_0x289dcd]=null):_0x1bbdd6[_0x289dcd]&&_0x969a52&&_0x1bbdd6[_0x289dcd]['userId']!==_0x3dbefd&&(_0x1bbdd6[_0x289dcd]['end']=_0xd540e7,_0x4331dd&&_0x4331dd['userId']===_0x1bbdd6[_0x289dcd]['userId']||_0x5ee90d(_0x1bbdd6[_0x289dcd]),_0x1bbdd6[_0x289dcd]={'start':_0xd540e7,'tapeItem':_0x58cb7a[_0x2d8921],'userId':_0x3dbefd,'type':_0x289dcd}),_0x1bbdd6[_0x289dcd]&&_0x57481e&&('elementStart'!==_0x58cb7a[_0x2d8921]['type']||_0x4331dd&&_0x4331dd['userId']===_0x3dbefd||_0x53d523[_0x289dcd]['unshift']({'userId':_0x3dbefd,'object':_0x58cb7a[_0x2d8921]['item'],'change':_0x1bbdd6[_0x289dcd]}),'elementEnd'===_0x58cb7a[_0x2d8921]['type']&&_0x4331dd&&_0x4331dd['object']===_0x58cb7a[_0x2d8921]['item']&&(_0x53d523[_0x289dcd]['shift'](),_0x1bbdd6[_0x289dcd]=_0x4331dd['change'])),_0x1bbdd6[_0x289dcd]&&_0x5d6f97&&(_0x1bbdd6[_0x289dcd]['end']=_0x1b4b72,_0x5ee90d(_0x1bbdd6[_0x289dcd]),_0x1bbdd6[_0x289dcd]=null);}function _0x5ee90d({start:_0x220406,end:_0x219278,tapeItem:_0x3b53a1,userId:_0x31c134,type:_0x59ec85}){const _0x3bb294=_0x3b53a1['item'],_0x76b4b5=_0x1dc115['schema']['isBlock'](_0x3bb294)&&!_0x1dc115['schema']['isLimit'](_0x3bb294),_0xb332f=_0x220406['nodeAfter']==_0x219278['parent']&&_0x219278['isAtStart'];if(_0x76b4b5&&_0xb332f)return;const _0x2e5b5e=_0x1dc115['createRange'](_0x220406,_0x219278),_0x2bedfb=_0x25139d['get'](_0x31c134),_0x226f51=new r({'author':_0x2bedfb,'type':'isAdded'==_0x59ec85||'isAddSuggestion'==_0x59ec85?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x59ec85||'isRemoveSuggestion'==_0x59ec85},'createdAt':new Date(),'rootName':_0xda7da1});_0x2e1e9e['push'](_0x226f51),_0x4cafda['markers']['set']('revision:'+_0x226f51['id'],_0x2e5b5e);}function _0x33f565(_0xec22fb,_0x1586e4){const _0x3259fd=_0xec22fb['getAttributes'](),_0x2da28e=_0x1586e4['getAttributes']();for(const _0x44cfe8 of _0x3259fd){if(_0x44cfe8[0x1]!==_0x1586e4['getAttribute'](_0x44cfe8[0x0]))return!0x1;_0x2da28e['next']();}return _0x2da28e['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x1931f2=>{const _0x2e780b=_0x1931f2['markerName']['split'](':')[0x1],_0x2f3c88=this['_getChangeFromId'](_0x2e780b);if(!_0x2f3c88)return null;const _0x59db7b='add'==_0x2f3c88['type']?'insertion':'deletion',_0x37edba=['ck-suggestion-marker','ck-suggestion-marker-'+_0x59db7b];return _0x2f3c88['data']['isSuggestion']&&_0x37edba['push']('ck-suggestion-marker-'+_0x59db7b+'-new'),this['activeChange']==_0x2f3c88&&_0x37edba['push']('ck-suggestion-marker--active'),{'classes':_0x37edba,'attributes':{'data-change-id':_0x2e780b}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x46d7a5=>{_0x46d7a5['on']('element:pre',(_0x11d5a5,_0x49b6a4,_0x3830da)=>{const _0x6c30f=_0x49b6a4['viewItem']['getChild'](0x0);if(!_0x6c30f||!_0x6c30f['is']('element','code'))return;if(!_0x3830da['consumable']['consume'](_0x6c30f,{'attributes':['vid_start','vid_end']}))return;const _0x393a4b=_0x49b6a4['modelRange']['start']['nodeAfter'];_0x3830da['writer']['setAttribute']('vid_start',_0x6c30f['getAttribute']('vid_start'),_0x393a4b),_0x3830da['writer']['setAttribute']('vid_end',_0x6c30f['getAttribute']('vid_end'),_0x393a4b);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x3717ca=>{_0x3717ca['on']('element',(_0x4f13b7,_0x176607,_0x316fac)=>{if(!_0x316fac['consumable']['consume'](_0x176607['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x176607['modelRange']['isCollapsed'])return;const _0x281194=_0x176607['modelRange']['start']['nodeAfter'];_0x281194['hasAttribute']('vid_start')||_0x281194['hasAttribute']('vid')||(_0x316fac['writer']['setAttribute']('vid_start',_0x176607['viewItem']['getAttribute']('vid_start'),_0x281194),_0x316fac['writer']['setAttribute']('vid_end',_0x176607['viewItem']['getAttribute']('vid_end'),_0x281194));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x5b0291=>_0x5b0291['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x116ad9,[,_0x43533d])=>{['vid_start','vid_end','vid']['includes'](_0x43533d)&&(_0x116ad9['return']=!0x0,_0x116ad9['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x2e2421=>{_0x2e2421['on']('attribute:vid',(_0x161f0a,_0x3f27ca,_0xf1439)=>{if('\x20'!=_0x3f27ca['item']['data']||_0x3f27ca['item']['parent']['maxOffset']>0x1)return;if(!_0xf1439['consumable']['consume'](_0x3f27ca['item'],_0x161f0a['name']))return;const _0x2521f5=_0xf1439['writer'],_0x7c0526=_0xf1439['mapper']['toViewRange'](_0x3f27ca['range']);_0x2521f5['wrap'](_0x7c0526,_0x2521f5['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x34efee){const _0x4ba833=_0x34efee['plugins']['get']('RevisionViewer');return(_0x301768,_0x27919f,_0x1c05c2)=>{const _0x821fe2=_0x27919f['markerName']['split'](':')[0x1],_0x15b775=_0x4ba833['_getChangeFromId'](_0x821fe2);if(!_0x15b775)return null;const _0x462c0d='add'==_0x15b775['type']?'split':'merge';if(!_0x1c05c2['consumable']['test'](_0x27919f['markerRange'],_0x301768['name']))return;const _0x567315=_0x27919f['markerRange']['getWalker'](),_0x1d3802=_0x27919f['markerRange']['start'],_0x52d29e=_0x34efee['model']['schema'];let _0x67438a=null,_0x1355b0=null,_0x3278da=!0x1,_0x46504d=!0x1;for(const _0x12bca5 of _0x567315){const _0xb1a64=_0x12bca5['item'];_0x3278da=_0x3278da||_0x52d29e['isContent'](_0xb1a64);const _0x2ed4da=_0x1c05c2['mapper']['toViewElement'](_0xb1a64);if(_0x2ed4da&&_0x2ed4da['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x12bca5['type']&&(_0x52d29e['isBlock'](_0xb1a64)&&!_0x52d29e['isLimit'](_0xb1a64)&&(_0xb1a64['nextSibling']||_0x1d3802['isAtEnd']?_0x67438a&&_0x67438a['parent']==_0xb1a64||(_0x67438a=_0xb1a64,_0x319acf(_0x12bca5['previousPosition']),_0x46504d=!0x0):_0x1355b0=_0x1355b0||_0x12bca5['previousPosition']));}function _0x319acf(_0x4230de){const _0x1dcb70=_0x1c05c2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x462c0d}),_0x51922f=_0x1c05c2['mapper']['toViewPosition'](_0x4230de);_0x15b775['data']['isSuggestion']&&_0x1c05c2['writer']['addClass']('ck-suggestion-marker-'+_0x462c0d+'-new',_0x1dcb70),_0x4ba833['activeChange']==_0x15b775&&_0x1c05c2['writer']['addClass']('ck-suggestion-marker--active',_0x1dcb70),_0x1c05c2['writer']['insert'](_0x51922f,_0x1dcb70),_0x1c05c2['mapper']['bindElementToMarker'](_0x1dcb70,_0x27919f['markerName']);}_0x3278da||_0x46504d||!_0x1355b0||_0x319acf(_0x1355b0);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x56a0eb,_0x5d4f10,_0x42253b)=>{const _0x3dd6b6=_0x42253b['mapper']['markerNameToElements'](_0x5d4f10['markerName']);if(_0x3dd6b6){for(const _0x3a73d8 of _0x3dd6b6)(_0x3a73d8['hasClass']('ck-suggestion-marker-split')||_0x3a73d8['hasClass']('ck-suggestion-marker-merge'))&&(_0x42253b['mapper']['unbindElementFromMarkerName'](_0x3a73d8,_0x5d4f10['markerName']),_0x42253b['writer']['remove'](_0x3a73d8));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x1e4c07,_0x531c14,_0x1058b3)=>{const _0x9e9640=_0x531c14['markerName']['split'](':')[0x1],_0x1c81ab=this['_getChangeFromId'](_0x9e9640);if(!_0x1c81ab)return null;const _0x883cd2='add'==_0x1c81ab['type']?'split':'merge';if(_0x1058b3['consumable']['test'](_0x531c14['markerRange'],_0x1e4c07['name']))for(const _0x45c942 of _0x531c14['markerRange']['getItems']()){if(!_0x45c942['is']('element','softBreak'))continue;const _0x37da42=_0x1058b3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x883cd2}),_0x4c5e9c=_0x1058b3['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x45c942));_0x1c81ab['data']['isSuggestion']&&_0x1058b3['writer']['addClass']('ck-suggestion-marker-'+_0x883cd2+'-new',_0x37da42),this['activeChange']==_0x1c81ab&&_0x1058b3['writer']['addClass']('ck-suggestion-marker--active',_0x37da42),_0x1058b3['writer']['insert'](_0x4c5e9c,_0x37da42),_0x1058b3['mapper']['bindElementToMarker'](_0x37da42,_0x531c14['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x354318=>{for(const _0x4d8205 of this['editor']['model']['document']['getRootNames']()){const _0x205e5c=this['editor']['model']['document']['getRoot'](_0x4d8205),_0x556cf6=this['editor']['editing']['view']['document']['getRoot'](_0x4d8205);if(_0x556cf6){const _0x205198=_0x205e5c['getAttribute']('revisionHistoryAttachChange');if(_0x354318['removeAttribute']('data-change-id',_0x556cf6),_0x354318['removeClass']('ck-revision-history-root-add',_0x556cf6),_0x354318['removeClass']('ck-revision-history-root-remove',_0x556cf6),_0x354318['removeClass']('ck-revision-history-root--active',_0x556cf6),_0x205198){const _0x5e1b65=this['_getChangeFromId'](_0x205198);if(!_0x5e1b65)return null;_0x354318['setAttribute']('data-change-id',_0x205198,_0x556cf6),_0x354318['addClass']('ck-revision-history-root-'+_0x5e1b65['type'],_0x556cf6),this['activeChange']==_0x5e1b65&&_0x354318['addClass']('ck-revision-history-root--active',_0x556cf6);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x45c617=>'revision-comment:'+_0x45c617,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x1512f9=>'revision-suggestion:'+_0x1512f9,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x4de4da=>({'name':'suggestion:'+_0x4de4da,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x1498a3=>{const _0x4a99cb=_0x1498a3['markerName']['split'](':')[0x1];return'insertion'!=_0x4a99cb&&'deletion'!=_0x4a99cb?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x4a99cb]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x1e55d7,_0x4826fc,_0x200b2f)=>{const _0x3014df=_0x200b2f['mapper']['markerNameToElements'](_0x4826fc['markerName']);if(_0x3014df){for(const _0x1d7883 of _0x3014df)_0x1d7883['is']('uiElement')&&(_0x200b2f['mapper']['unbindElementFromMarkerName'](_0x1d7883,_0x4826fc['markerName']),_0x200b2f['writer']['remove'](_0x1d7883));}},{'priority':'high'});}['_getChangeFromId'](_0x5e2aa0){return this['_changeIdToChange']['get'](_0x5e2aa0);}['_getViewForChange'](_0x3a9c47){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x3a9c47),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x379d2a,_0x27c21f,_0x2eecbf,_0x39236f)=>{_0x39236f&&this['_balloon']['remove'](_0x39236f),_0x2eecbf&&(this['_balloon']['add']({'view':_0x2eecbf,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x5e18da=this['editor']['editing'],_0x8453a4=this['_getChangeFromId'](_0x2eecbf['changeId']);let _0xc37baf;if(_0x8453a4['data']['isOnRoot']){const _0x5efb74=_0x5e18da['view']['getDomRoot'](_0x8453a4['rootName']);_0xc37baf=Array['from'](_0x5efb74['getClientRects']());}else{const _0x5b7dda=this['editor']['model']['markers']['get']('revision:'+_0x2eecbf['changeId']);_0xc37baf=Array['from'](_0x5e18da['mapper']['markerNameToElements'](_0x5b7dda['name']))['map'](_0x46b3a6=>_0x5e18da['view']['domConverter']['mapViewToDom'](_0x46b3a6))['map'](_0x43c0ce=>Array['from'](_0x43c0ce['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0xc37baf[0x0];return _0xc37baf['find'](_0x284144=>_0x284144['top']-0x3<=this['_activeViewTarget']['y']&&_0x284144['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x284144['left']-0x3<=this['_activeViewTarget']['x']&&_0x284144['right']+0x3>=this['_activeViewTarget']['x'])||_0xc37baf[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x22fbab,_0x1b8dd1,_0x14400d,_0x3d37a2)=>{this['activeView']=_0x14400d?this['_getViewForChange'](_0x14400d):null,this['editor']['model']['change'](()=>{const _0x3ed613=this['editor']['editing'];_0x3d37a2&&(_0x3d37a2['data']['isOnRoot']?_0x3ed613['view']['change'](_0x120cf6=>{_0x120cf6['removeClass']('ck-revision-history-root--active',_0x3ed613['view']['document']['getRoot'](_0x3d37a2['rootName']));}):_0x3ed613['reconvertMarker']('revision:'+_0x3d37a2['id'])),_0x14400d&&(_0x14400d['data']['isOnRoot']?_0x3ed613['view']['change'](_0x43a387=>{_0x43a387['addClass']('ck-revision-history-root--active',_0x3ed613['view']['document']['getRoot'](_0x14400d['rootName']));}):_0x3ed613['reconvertMarker']('revision:'+_0x14400d['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x103fe2,_0x295f51)=>{if(this['activeChange'])return;const _0xb4a773=this['_findChangeIdFromDomTarget'](_0x295f51['target']),_0x533a7d=this['_changeIdToChange']['get'](_0xb4a773);_0x533a7d?(this['_activeViewTarget']={'x':_0x295f51['domEvent']['x'],'y':_0x295f51['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x533a7d)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x32a859,_0x5e0d28)=>{const _0x138bcf=this['_findChangeIdFromDomTarget'](_0x5e0d28['target']),_0x13b360=this['_changeIdToChange']['get'](_0x138bcf);_0x13b360?(this['_activeViewTarget']={'x':_0x5e0d28['domEvent']['x'],'y':_0x5e0d28['domEvent']['y']},_0x13b360===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x13b360):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x3c554e){do{const _0x2a61d3=_0x3c554e['getAttribute']('data-change-id');if(_0x2a61d3)return _0x2a61d3;_0x3c554e=_0x3c554e['parent'];}while(_0x3c554e);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x365754=>{for(const _0x2ec4fc of this['editor']['model']['markers'])_0x365754['removeMarker'](_0x2ec4fc);});}}function Z(_0x3d442f,_0x4c2cde){return(_0x726109,_0x1e3ad8,_0xb042eb)=>{if(!_0xb042eb['consumable']['test'](_0x1e3ad8['markerRange'],_0x726109['name']))return;const _0x43e347=_0x1e3ad8['markerRange']['getWalker'](),_0x20d6bc=_0x1e3ad8['markerRange']['start'],_0x48c227=_0x3d442f['model']['schema'];let _0xef59bc=null,_0x8aa55c=null,_0x165da0=!0x1,_0x40ae30=!0x1;for(const _0x13b523 of _0x43e347){const _0x456ec4=_0x13b523['item'];_0x165da0=_0x165da0||_0x48c227['isContent'](_0x456ec4);const _0x5d4127=_0xb042eb['mapper']['toViewElement'](_0x456ec4);if(_0x5d4127&&_0x5d4127['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x13b523['type']&&(_0x48c227['isBlock'](_0x456ec4)&&!_0x48c227['isLimit'](_0x456ec4)&&(_0x456ec4['nextSibling']||_0x20d6bc['isAtEnd']?_0xef59bc&&_0xef59bc['parent']==_0x456ec4||(_0xef59bc=_0x456ec4,_0x16588e(_0x13b523['previousPosition']),_0x40ae30=!0x0):_0x8aa55c=_0x8aa55c||_0x13b523['previousPosition']));}function _0x16588e(_0x1dcd6a){const _0x1d0876=_0xb042eb['mapper']['toViewPosition'](_0x1dcd6a),_0x272193=_0xb042eb['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x4c2cde});_0xb042eb['writer']['insert'](_0x1d0876,_0x272193),_0xb042eb['mapper']['bindElementToMarker'](_0x272193,_0x1e3ad8['markerName']);}_0x165da0||_0x40ae30||!_0x8aa55c||_0x16588e(_0x8aa55c);};}class _t extends _0x313c78{constructor(_0x471fdc){super(_0x471fdc);const _0x47bc84=_0x471fdc['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x47bc84,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x47bc84,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x3d141c=this['editor'],_0x5e0670=_0x3d141c['plugins']['get'](d),_0x196a76=_0x5e0670['isReady']?_0x5e0670['diff']['newRevisionId']:null;_0x3d141c['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x196a76);}['refresh'](){const {isReady:_0x252ce5,isEnabled:_0x5b6e5c,repository:_0x40767a,diff:_0x28837a}=this['editor']['plugins']['get'](d),_0x453965=_0x28837a&&_0x40767a['getLaterVisibleRevision'](_0x28837a['newRevisionId']);this['isEnabled']=_0x252ce5&&_0x5b6e5c&&Boolean(_0x453965);}}class yt extends _0x313c78{['_step'];constructor(_0x15c643,{direction:_0x5b1f9d}){super(_0x15c643);const _0x4959db=_0x15c643['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x5b1f9d?0x1:-0x1,this['listenTo'](_0x4959db,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4959db,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x4959db,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x5c6291=this['editor'],_0x1428f5=_0x5c6291['plugins']['get'](d),{isNavigationMode:_0x3e7699,currentChangeNumber:_0x147556}=_0x1428f5;let _0x538a27;if(_0x1428f5['activeChange']=_0x3e7699?_0x1428f5['diff']['changes']['get'](_0x147556+this['_step']):_0x1428f5['diff']['changes']['first'],_0x1428f5['activeChange']['data']['isOnRoot'])_0x538a27=_0x5c6291['editing']['view']['getDomRoot'](_0x1428f5['activeChange']['rootName']);else{const _0x16b7db=_0x5c6291['model']['markers']['get']('revision:'+_0x1428f5['activeChange']['id']);_0x538a27=_0x3640e7(_0x5c6291['editing'],_0x16b7db);}_0x8680e2({'target':_0x538a27,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x1e6f85,currentChangeNumber:_0x2ba737,numberOfChanges:_0x4745e9,isReady:_0x3c2f1c,isEnabled:_0x376c14}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x376c14&&_0x3c2f1c&&_0x4745e9)&&(!_0x1e6f85||(0x1===this['_step']?_0x2ba737<_0x4745e9-0x1:_0x2ba737>0x0));}}class di extends _0x3d79be{constructor(_0x567979){super(_0x567979);const _0x51ba45=this['bindTemplate'],_0x2bd5db=new _0x69ddbd(_0x567979),_0x2b63ab=new _0x69ddbd(_0x567979);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',(_0x5ce83f,_0x3ccd16)=>_0x5ce83f&&_0x3ccd16>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x4706cd,_0x129bce,_0x170178,_0x5ebd6f)=>{if(!_0x4706cd)return m(_0x567979,'Loading...');if(!_0x170178)return m(_0x567979,'No\x20changes');const _0x198ba4=m(_0x567979,'NUMBER_OF_CHANGES',_0x170178);return _0x5ebd6f?m(_0x567979,'X_OF_Y_CHANGES',[_0x129bce+0x1,_0x170178]):_0x198ba4;}),_0x2bd5db['set']({'label':m(_0x567979,'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'}),_0x2b63ab['set']({'label':m(_0x567979,'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'}),_0x2bd5db['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2b63ab['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x2bd5db['on']('execute',()=>this['fire']('execute','backward')),_0x2b63ab['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',_0x51ba45['if']('_isStatusLabelVisible','ck-hidden',_0x7ce9a6=>!_0x7ce9a6)]},'children':[{'text':_0x51ba45['to']('isNavigationMode',_0x19074e=>_0x19074e?m(_0x567979,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x567979,'Total')+':\x20')}]},{'text':_0x51ba45['to']('_statusText')}]},new _0x2c7dec(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x2bd5db,_0x2b63ab]}]});}}const ce='ck-editor__editable__loading-overlay';class ae extends _0x3b4198{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x4cb8fd=this['editor']['editing']['view'];_0x4cb8fd['change'](_0x47de6e=>{for(const _0x36166c of _0x4cb8fd['document']['roots'])_0x47de6e['addClass'](ce,_0x36166c);});}['hide'](){const _0x17b448=this['editor']['editing']['view'];_0x17b448['change'](_0x27fb78=>{for(const _0xae069 of _0x17b448['document']['roots'])_0x27fb78['removeClass'](ce,_0xae069);});}}class g extends _0x3b4198{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ae];}['init'](){const _0x446286=this['editor'],_0x7b7094=_0x446286['plugins']['get'](d),_0x40bcce=_0x446286['plugins']['get'](ae);_0x446286['ui']['componentFactory']['add']('exitToEditing',_0x5ea899=>{const _0x3560cb=new _0x69ddbd(_0x5ea899);return _0x3560cb['set']({'label':m(_0x5ea899,'Back\x20to\x20editing'),'icon':_0x474d70['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3560cb,'execute',()=>{_0x446286['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3560cb;}),_0x446286['ui']['componentFactory']['add']('restoreRevision',_0x2dfca1=>{const _0x4332b7=new _0x69ddbd(_0x2dfca1);return _0x4332b7['set']({'label':m(_0x2dfca1,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4332b7['bind']('isEnabled')['to'](_0x446286['commands']['get']('restoreRevision')),this['listenTo'](_0x4332b7,'execute',()=>_0x446286['execute']('restoreRevision')),_0x4332b7;}),_0x446286['ui']['componentFactory']['add']('changesNavigation',_0x5096cf=>{const _0x466099=new di(_0x5096cf),_0x40a348=_0x446286['commands']['get']('showPreviousChange'),_0x51f6c7=_0x446286['commands']['get']('showNextChange');return _0x466099['bind']('isBackwardNavigationEnabled')['to'](_0x40a348,'isEnabled'),_0x466099['bind']('isForwardNavigationEnabled')['to'](_0x51f6c7,'isEnabled'),_0x466099['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x7b7094),this['listenTo'](_0x466099,'execute',(_0x57ddff,_0x4a835d)=>{_0x446286['execute']('forward'===_0x4a835d?'showNextChange':'showPreviousChange');}),_0x466099;}),_0x40bcce['show'](),_0x7b7094['on']('change:isReady',(_0x460aad,_0x54cfa2,_0x1fad32)=>{_0x1fad32?_0x40bcce['hide']():_0x40bcce['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x516e9e,_0x3280ce){super(_0x516e9e,_0x3280ce);const _0x22d73e=this['bindTemplate'];this['set']({'label':m(_0x516e9e,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x516e9e,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x22d73e['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x564abc=this['fieldView']['element'];this['_tooltipString']=_0x564abc['scrollWidth']>_0x564abc['clientWidth']&&_0x564abc['value']||'';}}class ti extends _0x3d79be{constructor(_0x65b289,_0xa83228,_0x508734){super(_0x65b289);const _0x31096f=new _0x136d6b();_0x31096f['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 _0x2d879d=['ck','ck-revision-history-sidebar__revision-author'];_0x508734&&_0x2d879d['push']('ck-revision-history-sidebar__revision-author_creator');const _0xfbec88=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x65b289,_0x508734?'Revision\x20creator':'Revision\x20author')},'children':[_0x31096f,_0xa83228['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x2d879d},'children':_0xfbec88});}}function ni(_0x675699,_0x18386c){const _0x33550a=_0x675699['bindTemplate'],_0x216ad4=_0x675699['locale'],_0x45526b=_0x48876e(_0x216ad4);_0x45526b['panelPosition']='sw';const _0x4e122b=function(_0x38fda6,_0x39d008){const _0x140a45=function(_0x3030d3,_0xacce88){const _0x47e5dd=_0x3030d3['locale'],_0x59e1f4={'Compare\x20against\x20selected':m(_0x47e5dd,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x47e5dd,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x47e5dd,'Restore\x20this\x20revision')};return _0xacce88['map'](_0x5b1ef3=>{const _0x12849b=_0x59e1f4[_0x5b1ef3['name']];return _0x12849b&&_0x12849b!==_0x5b1ef3['name']&&(_0x5b1ef3['name']=_0x12849b),_0x5b1ef3;});}(_0x38fda6,_0x39d008),_0x3e9315=new _0x1c2945();for(const _0x3d94fc of _0x140a45){const _0x2489ca={'type':'button','model':new to({'label':_0x3d94fc['name'],'class':_0x3d94fc['class'],'withText':!0x0,'role':'menuitem','_action':_0x3d94fc['action']})};_0x2489ca['model']['bind']('isEnabled')['to'](_0x38fda6,'isActionsDropdownOpen',_0x5b7840=>'function'!=typeof _0x3d94fc['isEnabled']||(!_0x5b7840||_0x3d94fc['isEnabled'](_0x38fda6))),_0x3e9315['add'](_0x2489ca);}return _0x3e9315;}(_0x675699,_0x18386c);return _0x675699['bind']('isActionsDropdownOpen')['to'](_0x45526b,'isOpen'),_0x45526b['buttonView']['set']({'label':m(_0x216ad4,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x474d70['threeVerticalDots']}),_0x45526b['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x33550a['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x33550a['to'](_0x3fb034=>_0x3fb034['stopPropagation']())}}),_0x45526b['on']('execute',_0x241874=>{_0x675699['isReady']&&'function'==typeof _0x241874['source']['_action']&&_0x241874['source']['_action'](_0x675699);}),_0x231d08(_0x45526b,_0x4e122b,{'role':'menu'}),_0x45526b['listenTo'](_0x675699,'change:isActionsDropdownOpen',(_0x595b95,_0x3b00e7,_0x388a07)=>{if(_0x388a07)for(const _0x58f00e of _0x45526b['listView']['items']){const _0x425799=_0x58f00e['children']['first'],_0x49b371=_0x18386c['find'](_0x337ff6=>_0x337ff6['action']===_0x425799['_action'])['isVisible'];_0x58f00e['isVisible']=void 0x0===_0x49b371||_0x49b371(_0x675699);}}),_0x45526b;}class ai extends/* #__PURE__ -- @preserve */
26
- _0x2d3524(_0x3d79be){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x1f42c4,_0x23d00f,_0x3a999b,_0xdd6208){super(_0x1f42c4);const _0x5d752d=this['bindTemplate'],_0x3b4575=function(_0x1ac9db,_0x46bead){const _0x311a23=Array['from'](_0x46bead['authors'])['filter'](_0x34279a=>_0x34279a!=_0x46bead['creator']);return _0x46bead['creator']&&_0x311a23['unshift'](_0x46bead['creator']),_0x311a23['map'](_0x2dac26=>new ti(_0x1ac9db,_0x2dac26,_0x2dac26==_0x46bead['creator']));}(_0x1f42c4,_0x23d00f);this['id']=_0x23d00f['id'],this['_revision']=_0x23d00f,this['_requireRevisionName']=_0xdd6208,this['bind']('name','createdAt')['to'](_0x23d00f),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x53ef0b=>{return _0x307848=_0x1f42c4['uiLanguage'],(_0x2ce2d3=_0x53ef0b)['toLocaleDateString'](_0x307848,{'month':'long','day':'numeric'})+',\x20'+_0x2ce2d3['toLocaleTimeString'](_0x307848,{'hour':'numeric','minute':'numeric'});var _0x307848,_0x2ce2d3;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x1f42c4,_0x38e855),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x3b60c4=>_0x3b60c4||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x94d3a6,_0x536e40)=>_0x94d3a6&&_0x536e40),this['revisionActionsView']=_0x3a999b&&_0x3a999b['length']?ni(this,_0x3a999b):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x5d752d['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x5d752d['if']('isEnabled','ck-disabled',_0x5605d9=>!_0x5605d9),_0x5d752d['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x5d752d['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x5d752d['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':_0x5d752d['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':_0x3b4575}]},this['revisionActionsView']],'on':{'click':_0x5d752d['to'](_0x2fd463=>{_0x2fd463['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x4e0da3=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x4e0da3,'change',()=>{this['_requireRevisionName']&&!_0x4e0da3['value']||this['fire']('setName',{'id':this['id'],'name':_0x4e0da3['value']}),_0x4e0da3['value']||(_0x4e0da3['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(_0x56d2f3,_0x2304fd){const _0x2eb5d2=_0xf9fccd['fromJSDate'](_0x56d2f3)['setLocale'](_0x2304fd),_0x346058=_0xf9fccd['local'](),_0x2019ff=_0x346058['minus']({'days':0x1})['startOf']('day');let _0x2daf90,_0x243110;return _0x2eb5d2['hasSame'](_0x346058,'day')?(_0x2daf90=_0x2eb5d2['startOf']('day')['toJSDate'](),_0x243110=_0x2eb5d2['toRelativeCalendar']()):_0x2eb5d2['hasSame'](_0x2019ff,'day')?(_0x2daf90=_0x2019ff['toJSDate'](),_0x243110=_0x2eb5d2['toRelativeCalendar']()):_0x2eb5d2['hasSame'](_0x346058,'week')?(_0x2daf90=_0x2eb5d2['startOf']('week')['toJSDate'](),_0x243110=_0x2eb5d2['weekdayLong']||''):_0x2eb5d2['hasSame'](_0x346058,'year')?(_0x2daf90=_0x2eb5d2['startOf']('month')['toJSDate'](),_0x243110=_0x2eb5d2['monthLong']||''):(_0x2daf90=_0x2eb5d2['startOf']('year')['toJSDate'](),_0x243110=String(_0x2eb5d2['year'])),{'startDate':_0x2daf90,'localizedPeriodName':_0x243110};}class vi extends _0x3d79be{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3bb3de,_0x433cf2,_0x406b2b,_0x46efdc){super(_0x3bb3de);const _0x2b5629=mi(_0x433cf2,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x433cf2,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x406b2b,this['_requireRevisionName']=_0x46efdc,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':_0x2b5629}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x678041){const _0x2033c2=new ai(this['locale'],_0x678041,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x2033c2);}['removeRevision'](_0x58db9a){const _0x37f6c8=this['revisionViews']['find'](_0xe13cd2=>_0xe13cd2['id']===_0x58db9a['id']);this['revisionViews']['remove'](_0x37f6c8);}}class as extends _0x3d79be{constructor(_0x49d653){super(_0x49d653);const _0x303879=new _0x136d6b();_0x303879['content']=_0x474d70['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x303879,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x49d653,'Revision\x20history')]}]});}}class li extends _0x3d79be{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x1110b8,_0xa3acf1,_0x12f2ed,_0x5b7591){super(_0x1110b8);const _0x1cb464=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0xa3acf1,this['_revisionActions']=_0x12f2ed,this['_requireRevisionName']=_0x5b7591,this['on']('select',(_0x31277e,_0x1d7a2f)=>{this['fire']('revisionSelected',_0x1d7a2f);}),this['on']('setName',(_0x4b9453,_0x3ab827)=>{this['fire']('revisionSetName',_0x3ab827);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x1110b8),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x1cb464['if']('isEnabled','ck-disabled',_0x5d792c=>!_0x5d792c)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x5c10f7 of this['_revisions'])this['_addRevision'](_0x5c10f7);this['_revisions']['on']('add',(_0xd11864,_0x15a5f7)=>{this['_addRevision'](_0x15a5f7);}),this['_revisions']['on']('remove',(_0x5b6b1e,_0x38c75a)=>{this['_removeRevision'](_0x38c75a);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x520352=>_0x520352['revisionViews']['map'](_0x50ef1=>_0x50ef1))['flat']();}['selectRevision'](_0xfb312b){for(const _0x12bbd6 of this['revisionViews'])_0xfb312b&&_0xfb312b['id']===_0x12bbd6['id']?_0x12bbd6['select']():_0x12bbd6['deselect']();}['highlightRevisions'](_0x8a2b52){for(const _0x6a133 of this['revisionViews'])_0x8a2b52['some'](({id:_0xb49bac})=>_0xb49bac===_0x6a133['id'])?_0x6a133['highlight']():_0x6a133['unhighlight']();}['_addRevision'](_0x21cb7a){const _0x2a4b3f=mi(_0x21cb7a['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x673e62=this['timePeriodViews']['get'](0x0);_0x673e62&&_0x673e62['startDate']['getTime']()===_0x2a4b3f['getTime']()||(_0x673e62=new vi(this['locale'],_0x2a4b3f,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x673e62)),_0x673e62['addRevision'](_0x21cb7a);}['_removeRevision'](_0x29a624){const _0x3e6c2d=mi(_0x29a624['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x3e6c2d)['removeRevision'](_0x29a624);}['_getTimePeriodViewByStartDate'](_0x46675b){return this['timePeriodViews']['find'](_0x33cfc3=>_0x33cfc3['startDate']['getTime']()===_0x46675b['getTime']());}}class w extends _0x3b4198{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x4cffbd,uid as _0x3333c6,Collection as _0x255b68,logWarning as _0x5b37e8,FocusTracker as _0x6fccdd,KeystrokeHandler as _0x116436,scrollViewportToShowTarget as _0x4c76de,ResizeObserver as nt,ElementReplacer as ht,CKEditorError as _0x3f0836}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x46c91b,set as _0xab440,unset as _0x5ca4e6,isEqual as _0x5a462c}from'lodash-es';import{Plugin as _0x49d6a4,PendingActions as _0x45c481,icons as _0x21b581,Command as _0x8c86fd,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x20f8e3,getMarkerDomElement as _0x5a1b1d,ConfirmMixin as ti,sanitizeEditorConfig as _0x1623eb}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x5353f1,Element as ft,Range as vt,ViewUIElement as _0x317dfe,ViewRawElement as _0x185af8,ViewEmptyElement as _0x55266d,ViewAttributeElement as _0x4219a1,ViewContainerElement as _0x2783d1,Position as gt,ViewText as _0x4a5bd6,ViewElement as _0x1a180c,DocumentFragment as mt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x556ea1,submitHandler as _0x25fd76,LabeledFieldView as _0x59fe7f,createLabeledInputText as _0x5a9a2c,createDropdown as _0x44d4bf,ListView as _0xb215b9,ListItemView as _0x1db01f,ButtonView as te,MenuBarMenuView as _0x3bee6f,MenuBarMenuListView as _0x27f590,MenuBarMenuListItemView as _0x5e32c5,MenuBarMenuListItemButtonView as _0x2ea93a,ContextualBalloon as _0x158026,ToolbarSeparatorView as _0x8278f0,IconView as _0x2c826e,addListToDropdown as to,ViewModel as _0x515463,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as ut,ToolbarView as lt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0xfc1fd9}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
+ _0x4cffbd(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x6fb585){super(),this['id']=_0x6fb585['id']||_0x3333c6(),this['creator']=_0x6fb585['creator']||null,this['authors']=_0x6fb585['authors']||[],this['diffData']=_0x6fb585['diffData']||null,this['toVersion']=_0x6fb585['toVersion']||0x0,this['fromVersion']=_0x6fb585['fromVersion']||0x0,this['set']('name',_0x6fb585['name']||''),this['set']('createdAt',_0x6fb585['createdAt']||new Date()),this['set']('attributes',_0x6fb585['attributes']||{});}['setName'](_0x51b4eb){this['_update']({'name':_0x51b4eb});}['setAttribute'](_0x48a737,_0x1b19db){const _0x11ea00=_0x46c91b(this['attributes']);_0xab440(_0x11ea00,_0x48a737,_0x1b19db),this['_update']({'attributes':_0x11ea00});}['removeAttribute'](_0x3f39b3){const _0xbd5c97=_0x46c91b(this['attributes']);_0x5ca4e6(_0xbd5c97,_0x3f39b3),this['_update']({'attributes':_0xbd5c97});}['_update'](_0x1d60c1,_0x501237=!0x1){let _0x26d25f=!0x1;const _0x5414f7={'id':this['id']},_0x4329be=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x4ff779 of _0x4329be){const _0x1d5cc5=_0x1d60c1[_0x4ff779];void 0x0!==_0x1d5cc5&&_0x1d5cc5!==this[_0x4ff779]&&(this[_0x4ff779]=_0x1d5cc5,_0x5414f7[_0x4ff779]=_0x1d5cc5,_0x26d25f=!0x0);}_0x26d25f&&(_0x5414f7['authors']&&(_0x5414f7['authorsIds']=_0x5414f7['authors']['map'](_0x45cb5e=>_0x45cb5e['id']),delete _0x5414f7['authors']),this['fire']('_update',_0x5414f7,_0x501237));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x59053a=>_0x59053a['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x49d6a4{['_revisions'];static get['requires'](){return[_0x20f8e3];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x1e8789){super(_0x1e8789),this['_revisions']=new _0x255b68();}['afterInit'](){!async function(_0x29b890){const _0x3a5d8d=_0x163644([0x46,0x35,0x6b,0x42,0x76,0x34,0x78,0x44,0x7a,0x4c,0x49,0x55,0x64,0x61,0x30,0x69,0x38,0x48,0x6c,0x73,0x63,0x65,0x32,0x74,0x4f,0x62,0x45,0x58,0x51,0x33,0x54,0x37,0x70,0x56,0x36,0x50,0x71,0x75,0x68,0x6d,0x6a,0x41,0x4b,0x6f,0x77,0x4a,0x57,0x5a,0x72,0x66,0x59,0x39,0x52,0x4e,0x43,0x31,0x6e,0x4d,0x47,0x53,0x79,0x67]),_0xf9d5e8=0xeb829,_0x113932=0x4f33366a,_0x237fbf=0x4f345742^_0x113932,_0x56f9fc=window[_0x163644([0x44,0x61,0x74,0x65])][_0x163644([0x6e,0x6f,0x77])](),_0x12df72=_0x29b890[_0x163644([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x192301=new window[(_0x163644([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b126d=>{_0x12df72[_0x163644([0x6f,0x6e,0x63,0x65])](_0x163644([0x72,0x65,0x61,0x64,0x79]),_0x5b126d);}),_0x45bee8={[_0x163644([0x6b,0x74,0x79])]:_0x163644([0x45,0x43]),[_0x163644([0x75,0x73,0x65])]:_0x163644([0x73,0x69,0x67]),[_0x163644([0x63,0x72,0x76])]:_0x163644([0x50,0x2d,0x32,0x35,0x36]),[_0x163644([0x78])]:_0x163644([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]),[_0x163644([0x79])]:_0x163644([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]),[_0x163644([0x61,0x6c,0x67])]:_0x163644([0x45,0x53,0x32,0x35,0x36])},_0x38ad7e=_0x12df72[_0x163644([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x163644([0x67,0x65,0x74])](_0x163644([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x44f31a(){let _0x8d2953,_0x1a3943=null,_0x56bf84=null;try{if(_0x38ad7e==_0x163644([0x47,0x50,0x4c]))return _0x163644([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x8d2953=_0x24a793(),!_0x8d2953)return _0x163644([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x8d2953[_0x163644([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x56bf84=_0x1a8018(_0x8d2953[_0x163644([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x8d2953[_0x163644([0x6a,0x74,0x69])])),await _0x16382a()?_0x53b7df()?_0xdfb1c5()?_0x163644([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x53fff0()?(_0x8d2953[_0x163644([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x163644([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1a3943=_0x25e269(_0x163644([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x8d2953[_0x163644([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x163644([0x74,0x72,0x69,0x61,0x6c])&&(_0x1a3943=_0x25e269(_0x163644([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3dc7d5()):_0x163644([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x163644([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x163644([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1f59a3){return _0x163644([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xdfb1c5(){const _0x5e6a88=[_0x163644([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x163644([0x74,0x72,0x69,0x61,0x6c])][_0x163644([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8d2953[_0x163644([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x56f9fc/0x3e8:0xe10*_0x237fbf;return _0x8d2953[_0x163644([0x65,0x78,0x70])]<_0x5e6a88;}function _0x53b7df(){const _0x20a58a=_0x8d2953[_0x163644([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x20a58a)return!0x1;if(_0x20a58a[_0x163644([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x163644([0x2a])))return!0x0;if(_0x20a58a[_0x163644([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x163644([0x52,0x48])))return!0x0;if(_0x20a58a[_0x163644([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x163644([0x52,0x52,0x48]))){if(_0x1f093e())return!0x0;if(_0x347b15()||_0x142c9b())return!0x0;}return!0x1;}function _0x53fff0(){const _0x4c105c=_0x8d2953[_0x163644([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4c105c||0x0==_0x4c105c[_0x163644([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x162a70}=new URL(window[_0x163644([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4c105c[_0x163644([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x162a70))return!0x0;const _0x329b1d=_0x162a70[_0x163644([0x73,0x70,0x6c,0x69,0x74])](_0x163644([0x2e]));return _0x4c105c[_0x163644([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2268ac=>_0x2268ac[_0x163644([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x163644([0x2a])))[_0x163644([0x6d,0x61,0x70])](_0x35ed90=>_0x35ed90[_0x163644([0x73,0x70,0x6c,0x69,0x74])](_0x163644([0x2e])))[_0x163644([0x73,0x6f,0x6d,0x65])](_0xf10039=>_0x329b1d[_0x163644([0x65,0x76,0x65,0x72,0x79])]((_0x3b7d21,_0x158aeb)=>_0xf10039[_0x158aeb]===_0x3b7d21||_0xf10039[_0x158aeb]===_0x163644([0x2a])));}function _0x3dc7d5(){return _0x1a3943&&_0x56bf84?new window[(_0x163644([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d58b5,_0x9fdfee)=>{_0x1a3943[_0x163644([0x74,0x68,0x65,0x6e])](_0x4d58b5,_0x9fdfee),_0x56bf84[_0x163644([0x74,0x68,0x65,0x6e])](_0x5b0e84=>{_0x5b0e84!=_0x163644([0x56,0x61,0x6c,0x69,0x64])&&_0x4d58b5(_0x5b0e84);},_0x9fdfee);}):_0x1a3943||_0x56bf84||_0x163644([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1a8018(_0x11da2a,_0x57ddeb){return new window[(_0x163644([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x354d2d=>{if(_0x36fe55())return _0x354d2d(_0x163644([0x56,0x61,0x6c,0x69,0x64]));_0x2bd5c8(),_0x12df72[_0x163644([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x163644([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x308699=!0x1;const _0x4e23c7=_0x3333c6();function _0x195808(_0x5f5595){return!!_0x5f5595&&(typeof _0x5f5595===_0x163644([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5f5595===_0x163644([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5f5595[_0x163644([0x74,0x68,0x65,0x6e])]===_0x163644([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5f5595[_0x163644([0x63,0x61,0x74,0x63,0x68])]===_0x163644([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x147537(_0xc5f90c){_0x516782(_0xc5f90c)[_0x163644([0x74,0x68,0x65,0x6e])](_0x31ba00=>{if(!_0x31ba00||_0x31ba00[_0x163644([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x163644([0x6f,0x6b]))return _0x163644([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3e1535(_0x3e4e08(_0x4e23c7+_0x57ddeb))!=_0x31ba00[_0x163644([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x163644([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x163644([0x56,0x61,0x6c,0x69,0x64]);})[_0x163644([0x74,0x68,0x65,0x6e])](_0x1c9714=>(_0x4bff24(),_0x1c9714),()=>{const _0x5087f9=_0x23ac2c();return null==_0x5087f9?(_0x4bff24(),_0x163644([0x56,0x61,0x6c,0x69,0x64])):_0x163644(_0x56f9fc-_0x5087f9>(0x6b3fb26a^_0x113932)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x163644([0x74,0x68,0x65,0x6e])](_0x354d2d)[_0x163644([0x63,0x61,0x74,0x63,0x68])](()=>{_0x354d2d(_0x163644([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x374dcc=0x4f05d8ea^_0x113932;function _0x4bff24(){const _0x14179d=_0x163644([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e1535(_0x3e4e08(_0x11da2a)),_0x1601d5=_0x18969f(_0x3e1535(window[_0x163644([0x4d,0x61,0x74,0x68])][_0x163644([0x63,0x65,0x69,0x6c])](_0x56f9fc/_0x374dcc)));window[_0x163644([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x163644([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x14179d,_0x1601d5);}function _0x23ac2c(){const _0xdb256b=_0x163644([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e1535(_0x3e4e08(_0x11da2a)),_0x431b52=window[_0x163644([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x163644([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xdb256b);return _0x431b52?window[_0x163644([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x18969f(_0x431b52),0x10)*_0x374dcc:null;}function _0x516782(_0x4be4ed){return new window[(_0x163644([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2b029f,_0x98727a)=>{_0x4be4ed[_0x163644([0x74,0x68,0x65,0x6e])](_0x2b029f,_0x98727a),window[_0x163644([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x98727a,0x4f32e2aa^_0x113932);});}}_0x12df72[_0x163644([0x6f,0x6e])](_0x163644([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4d75a5,_0x1ca0b5)=>{if(_0x1ca0b5[0x0]!=_0x11da2a)return _0x354d2d(_0x163644([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1ca0b5[0x1]={..._0x1ca0b5[0x1],[_0x163644([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4e23c7};},{[_0x163644([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x163644([0x68,0x69,0x67,0x68])}),_0x12df72[_0x163644([0x6f,0x6e])](_0x163644([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5236d1=>{_0x195808(_0x5236d1[_0x163644([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x308699=!0x0,_0x147537(_0x5236d1[_0x163644([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x163644([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x163644([0x6c,0x6f,0x77])}),_0x192301[_0x163644([0x74,0x68,0x65,0x6e])](()=>{_0x308699||_0x354d2d(_0x163644([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x36fe55(){return _0x12df72[_0x163644([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x163644([0x76,0x69,0x65,0x77])][_0x163644([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x163644([0x61,0x75,0x74,0x6f]);}function _0x2bd5c8(){_0x12df72[_0x163644([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x163644([0x76,0x69,0x65,0x77])][_0x163644([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x163644([0x61,0x75,0x74,0x6f]);}}function _0x25e269(_0x219c1a){const _0xcb75bd=[new window[(_0x163644([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x527744=>setTimeout(_0x527744,0x4f3a08a6^_0x113932)),_0x192301[_0x163644([0x74,0x68,0x65,0x6e])](()=>new window[(_0x163644([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd58c5f=>{const _0x4d3020=0x4f33366d^_0x113932,_0x10c49b=_0x29b890[_0x163644([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x268f55(){_0x10c49b[_0x163644([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x4d3020&&_0xd58c5f();}_0x268f55(),_0x10c49b[_0x163644([0x6f,0x6e])](_0x163644([0x61,0x64,0x64]),_0x268f55);})),new window[(_0x163644([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43bcf2=>{function _0x22620(){for(const _0x3ddbd9 in window)if(window[_0x163644([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x163644([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x3ddbd9))&&window[_0x3ddbd9]==_0xf9d5e8)return _0x43bcf2();_0x12df72[_0x163644([0x73,0x74,0x61,0x74,0x65])]!=_0x163644([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x163644([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x22620,0x4f3325e2^_0x113932);}_0x73ce1f(_0x163644([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x22620();})];return window[_0x163644([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x163644([0x72,0x61,0x63,0x65])](_0xcb75bd)[_0x163644([0x74,0x68,0x65,0x6e])](()=>_0x219c1a);}async function _0x7a0633(){if(await _0x192301,_0x73ce1f(_0x163644([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x154e9c=_0x29b890[_0x163644([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3cf699=_0x29b890[_0x163644([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])](_0x154e9c[_0x163644([0x69,0x64])]),_0x7a229=_0x42a030(_0x163644([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x7a229[_0x163644([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x154e9c['id'],_0x3cf699?_0x3cf699['id']:null,!0x0),_0x7a229[_0x163644([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x163644([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x7a229[_0x163644([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x7a229[_0x163644([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x2a0a4c,void(_0x7a229[_0x163644([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x2a0a4c);}if(_0x73ce1f(_0x163644([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x5666c2=_0x42a030(_0x163644([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x5666c2[_0x163644([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x163644([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5666c2[_0x163644([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5666c2[_0x163644([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x2a0a4c,_0x5666c2[_0x163644([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x2a0a4c;}_0x12df72[_0x163644([0x6d,0x6f,0x64,0x65,0x6c])][_0x163644([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2a0a4c,_0x12df72[_0x163644([0x6d,0x6f,0x64,0x65,0x6c])][_0x163644([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2a0a4c,_0x12df72[_0x163644([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x163644([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1f093e(){return _0x73ce1f(_0x163644([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x42a030(_0x163644([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x163644([0x73,0x74,0x61,0x74,0x65])]==_0x163644([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x347b15(){return _0x73ce1f(_0x163644([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 _0x142c9b(){return _0x73ce1f(_0x163644([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x268366(_0x1e6cb0){const _0x24adbb=_0x2fa82a();_0x12df72[_0x24adbb]=_0x163644([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])+_0x1e6cb0,_0x1e6cb0[_0x163644([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x163644([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x2fa82a()]=_0xf9d5e8),_0x1e6cb0!=_0x163644([0x56,0x61,0x6c,0x69,0x64])&&_0x7a0633();}function _0x2fa82a(){const _0x2e7d62=window[_0x163644([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x163644([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x163644([0x6e,0x6f,0x77])]())[_0x163644([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x163644([0x2e]),'');let _0x1c1d92=_0x163644([0x46]);for(let _0x23dbbb=0x0;_0x23dbbb<_0x2e7d62[_0x163644([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x23dbbb+=0x2){let _0x592a84=window[_0x163644([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e7d62[_0x163644([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x23dbbb,_0x23dbbb+0x2));_0x592a84>=_0x3a5d8d[_0x163644([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x592a84-=_0x3a5d8d[_0x163644([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1c1d92+=_0x3a5d8d[_0x592a84];}return _0x1c1d92;}function _0x24a793(){const _0x5af1ad=_0x38ad7e[_0x163644([0x73,0x70,0x6c,0x69,0x74])](_0x163644([0x2e]));if(0x3!=_0x5af1ad[_0x163644([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x59993e(_0x5af1ad[0x1]);function _0x59993e(_0x280c1c){const _0x28f7fb=_0x3b086f(_0x280c1c);return _0x28f7fb&&_0x3eed9c()?_0x28f7fb:null;function _0x3eed9c(){const _0x269f0c=_0x28f7fb[_0x163644([0x6a,0x74,0x69])],_0x4ff377=window[_0x163644([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x269f0c[_0x163644([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x269f0c[_0x163644([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4a1a47={..._0x28f7fb,[_0x163644([0x6a,0x74,0x69])]:_0x269f0c[_0x163644([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x269f0c[_0x163644([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4a1a47[_0x163644([0x76,0x63])],_0x3e4e08(_0x4a1a47)==_0x4ff377;}}}async function _0x16382a(){let _0x137ffb=!0x0;try{const _0x4391a2=_0x38ad7e[_0x163644([0x73,0x70,0x6c,0x69,0x74])](_0x163644([0x2e])),[_0x5f0907,_0x1443c0,_0x2065cf]=_0x4391a2;return _0x2f2007(_0x5f0907),await _0x3a793a(_0x5f0907,_0x1443c0,_0x2065cf),_0x137ffb;}catch(_0x1d32e7){return!0x1;}function _0x2f2007(_0x4a7197){const _0x322a96=_0x3b086f(_0x4a7197);_0x322a96&&_0x322a96[_0x163644([0x61,0x6c,0x67])]==_0x163644([0x45,0x53,0x32,0x35,0x36])||(_0x137ffb=!0x1);}async function _0x3a793a(_0x1c9cad,_0x15da9e,_0x33b721){const _0x51bbcc=window[_0x163644([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x163644([0x66,0x72,0x6f,0x6d])](_0x42cdcc(_0x33b721),_0x576e4b=>_0x576e4b[_0x163644([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x811b45=new window[(_0x163644([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x163644([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1c9cad+_0x163644([0x2e])+_0x15da9e),_0x24463f=window[_0x163644([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x163644([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x24463f)return;const _0x4ae080=await _0x24463f[_0x163644([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x163644([0x6a,0x77,0x6b]),_0x45bee8,{[_0x163644([0x6e,0x61,0x6d,0x65])]:_0x163644([0x45,0x43,0x44,0x53,0x41]),[_0x163644([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x163644([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x163644([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x24463f[_0x163644([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x163644([0x6e,0x61,0x6d,0x65])]:_0x163644([0x45,0x43,0x44,0x53,0x41]),[_0x163644([0x68,0x61,0x73,0x68])]:{[_0x163644([0x6e,0x61,0x6d,0x65])]:_0x163644([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4ae080,_0x51bbcc,_0x811b45)||(_0x137ffb=!0x1);}}function _0x3b086f(_0x4a520f){return _0x4a520f[_0x163644([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x163644([0x65,0x79]))?JSON[_0x163644([0x70,0x61,0x72,0x73,0x65])](_0x42cdcc(_0x4a520f)):null;}function _0x42cdcc(_0x3177f9){return window[_0x163644([0x61,0x74,0x6f,0x62])](_0x3177f9[_0x163644([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x163644([0x2b]))[_0x163644([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x163644([0x2f])));}function _0x3e4e08(_0x4c2a6e){let _0x40d9df=0x1505;function _0x2d450f(_0x214571){for(let _0x3bd218=0x0;_0x3bd218<_0x214571[_0x163644([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3bd218++){const _0x29f30c=_0x214571[_0x163644([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3bd218);_0x40d9df=(_0x40d9df<<0x5)+_0x40d9df+_0x29f30c,_0x40d9df&=_0x40d9df;}}function _0x746f87(_0x22aea4){Array[_0x163644([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x22aea4)?_0x22aea4[_0x163644([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x746f87):_0x22aea4&&typeof _0x22aea4==_0x163644([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x163644([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x22aea4)[_0x163644([0x73,0x6f,0x72,0x74])]()[_0x163644([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1f5746,_0x47aab3])=>{_0x2d450f(_0x1f5746),_0x746f87(_0x47aab3);}):_0x2d450f(window[_0x163644([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x22aea4));}return _0x746f87(_0x4c2a6e),_0x40d9df>>>0x0;}function _0x3e1535(_0x544c09){return _0x544c09[_0x163644([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x163644([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x163644([0x30]));}function _0x18969f(_0x2028ef){return _0x2028ef[_0x163644([0x73,0x70,0x6c,0x69,0x74])]('')[_0x163644([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x163644([0x6a,0x6f,0x69,0x6e])]('');}function _0x73ce1f(_0x3dc91d){return _0x12df72[_0x163644([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x163644([0x68,0x61,0x73])](_0x3dc91d);}function _0x42a030(_0x4abd8a){return _0x12df72[_0x163644([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x163644([0x67,0x65,0x74])](_0x4abd8a);}function _0x2a0a4c(){}function _0x163644(_0x30f069){return _0x30f069['map'](_0x4e4382=>String['fromCharCode'](_0x4e4382))['join']('');}_0x268366(await _0x44f31a());}(this);}['createRevision'](_0x574cd7){const _0x4aee20=this['editor']['plugins']['get']('Users');return new a({'id':_0x574cd7['id'],'name':_0x574cd7['name'],'creator':_0x574cd7['creatorId']?_0x4aee20['getUser'](_0x574cd7['creatorId']):null,'diffData':_0x574cd7['diffData']||_0x574cd7['data'],'authors':_0x574cd7['authorsIds']['map'](_0x1e5823=>_0x4aee20['getUser'](_0x1e5823)),'createdAt':new Date(_0x574cd7['createdAt']),'attributes':_0x574cd7['attributes'],'fromVersion':_0x574cd7['fromVersion'],'toVersion':_0x574cd7['toVersion']});}['addRevision'](_0xc3126e,_0x3029f9=0x0){this['_revisions']['add'](_0xc3126e,_0x3029f9);}['getRevision'](_0x2bfe38){return this['_revisions']['get'](_0x2bfe38);}['getRevisions'](_0x51ee67={'toJSON':!0x1}){const _0x332e21=Array['from'](this['_revisions']);return _0x332e21['reverse'](),_0x51ee67['toJSON']?_0x332e21['map'](_0x52c866=>_0x52c866['toJSON']()):_0x332e21;}['getIndex'](_0x1be919){return this['_revisions']['getIndex'](_0x1be919);}['getEarlierVisibleRevision'](_0x3e51ae){const [,_0x43faf0]=this['getRevisionsIterator'](_0x3e51ae,{'direction':'earlier'});return _0x43faf0;}['getLaterVisibleRevision'](_0x7f3f78){const [,_0x114420]=this['getRevisionsIterator'](_0x7f3f78,{'direction':'later'});return _0x114420;}['getRevisionsInDiff'](_0x5582f9){const _0x3e2968=[];for(const _0x43508f of this['getRevisionsIterator'](_0x5582f9['newRevisionId']))if(_0x3e2968['push'](_0x43508f),_0x43508f['id']===_0x5582f9['oldRevisionId'])break;return _0x3e2968;}*['getRevisionsIterator'](_0xa15982,{direction:_0x172669='earlier',filter:_0x31ca19=()=>!0x0}={}){const _0x413072='earlier'===_0x172669?0x1:-0x1;let _0x4f4a42=this['_revisions']['get'](_0xa15982),_0x5e1abb=this['getIndex'](_0x4f4a42);for(yield _0x4f4a42;_0x4f4a42;){if(_0x5e1abb+=_0x413072,_0x4f4a42=this['getRevision'](_0x5e1abb),!_0x4f4a42)return;_0x31ca19(_0x4f4a42)&&(yield _0x4f4a42);}}}function m(_0x30b3fe,_0x3984a4,_0x4fef22){const t=_0x30b3fe['t'];switch(_0x3984a4){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'},_0x4fef22);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x4fef22);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const P={'c':_0x2783d1,'a':_0x4219a1,'e':_0x55266d,'r':_0x185af8,'u':_0x317dfe};class l extends _0x49d6a4{['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[_0x20f8e3,j,_0x45c481];}constructor(_0x1db97b){super(_0x1db97b),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x37918a=_0x3333c6();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x37918a},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 _0x14931e=this['repository']['getRevision'](0x0),_0x4d9372=_0x14931e&&null===_0x14931e['creator']?_0x14931e:null;if(this['_continueCurrentRevision']=!!_0x4d9372&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x6a7874=this['_source']['getCurrentRevisionId'](),_0x4c1692=this['repository']['getRevision'](_0x6a7874);if(_0x4c1692)this['_startingVersion']=_0x4c1692['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x4457ef=this['_source']['history']['_operations']['find'](_0x440fc6=>!_0x440fc6['_isInit']),_0x182f3d=_0x4457ef?_0x4457ef['baseVersion']:this['_source']['history']['version'];_0x14931e?(_0x14931e['toVersion']<_0x182f3d&&_0x14931e['_update']({'toVersion':_0x182f3d}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x4d9372['id'],this['_startingVersion']=_0x4d9372['fromVersion']):(this['_startingVersion']=_0x14931e['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x182f3d,this['_continueCurrentRevision']=!0x1);}}else _0x4d9372&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x4d9372['toVersion'],this['editor']['model']['document']['history']['version']),_0x4d9372['fromVersion']===_0x4d9372['toVersion']?(0x0!==_0x4d9372['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x4d9372['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x4d9372['id'],this['_startingVersion']=_0x4d9372['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',_0x24860f=>!_0x24860f),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5465a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x32ec95;for(const _0x34780a in _0x5465a){const _0x11b533=_0x34780a,_0x237c24=_0x5465a[_0x11b533];if('revisionHistoryLicenseKeyValid'==_0x237c24||'revisionHistoryLicenseKeyInvalid'==_0x237c24||'revisionHistoryLicenseKeyExpired'==_0x237c24||'revisionHistoryLicenseKeyDomainLimit'==_0x237c24||'revisionHistoryLicenseKeyNotAllowed'==_0x237c24||'revisionHistoryLicenseKeyEvaluationLimit'==_0x237c24||'revisionHistoryLicenseKeyTrialLimit'==_0x237c24||'revisionHistoryLicenseKeyUsageLimit'==_0x237c24){delete _0x5465a[_0x11b533],_0x32ec95=_0x237c24,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x32ec95&&_0x5465a['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x32ec95&&_0x5465a['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x32ec95&&_0x5465a['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x32ec95&&_0x5465a['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x32ec95&&_0x5465a['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x32ec95&&_0x5465a['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x32ec95&&_0x5465a['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0xd1be6c=this['repository']['getRevision'](0x0),_0x166633=await this['getRevisionDocumentData'](_0xd1be6c),_0x36d610=await this['getRevisionRootsAttributes'](_0xd1be6c);this['_replaceEditorDataWithRevisionData'](_0x166633,_0x36d610);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x5d8ee3){this['_source']=_0x5d8ee3;}async['update'](){const _0xd2008c=await this['_source']['getLatestVersion']();if(_0xd2008c>this['currentRevision']['toVersion']){await this['_loadState']();const _0x57b5d9=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0xd2008c});_0x57b5d9['authors']=_0x57b5d9['authorsIds']['map'](_0x3e152c=>this['editor']['plugins']['get']('Users')['getUser'](_0x3e152c)),this['currentRevision']['_update'](_0x57b5d9);}}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'](_0x42c406={},_0x2f6ad8=null){const _0x443586=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2f6ad8>this['currentRevision']['toVersion']&&(_0x2f6ad8=null),null===_0x2f6ad8&&(_0x2f6ad8=await this['_source']['getLatestVersion']());const _0x6153f5=this['_getFromVersion'](_0x2f6ad8),_0x4c4e09=this['buildRevisionData']({'from':_0x6153f5,'to':_0x2f6ad8});if(this['currentRevision']['toVersion']<_0x2f6ad8){const _0x4d70bf=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2f6ad8,'to':_0x2f6ad8});_0x4d70bf['authors']=[],_0x4d70bf['authorsIds']=[],_0x4d70bf['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x4d70bf,!0x0),delete _0x4d70bf['authors'],_0x443586['push'](_0x4d70bf);}_0x42c406['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x42c406['name']=_0x42c406['name']||null,_0x42c406['id']=_0x42c406['id']||_0x3333c6(),_0x42c406={..._0x42c406,..._0x4c4e09};const _0x5f31be=this['addRevisionData'](_0x42c406);_0x443586['push'](_0x42c406);const _0x5c064e=this['repository']['getIndex'](_0x5f31be);if(0x0!==_0x5c064e){const _0x58356f=this['repository']['getRevision'](_0x5c064e-0x1);if(_0x58356f['fromVersion']!==_0x2f6ad8){const _0x41dc70=this['_revisionDataBuilder']['getData'](_0x2f6ad8,_0x58356f['toVersion']),_0x4619f7={'id':_0x58356f['id'],'diffData':_0x41dc70['diffData'],'authorsIds':_0x41dc70['authorsIds'],'authors':_0x41dc70['authorsIds']['map'](_0x2c638c=>this['editor']['plugins']['get']('Users')['getUser'](_0x2c638c)),'fromVersion':_0x2f6ad8};_0x58356f===this['currentRevision']&&(_0x4619f7['createdAt']=new Date(_0x42c406['createdAt']['getTime']()+0xa)),_0x58356f['_update'](_0x4619f7,!0x0),delete _0x4619f7['authors'],_0x443586['push'](_0x4619f7);}}if(this['adapter']){for(const _0x48a8cd of _0x443586)this['_bufferUpdate'](_0x48a8cd['id'],_0x48a8cd,!0x0);this['sendBufferedUpdates']();}return _0x5f31be;}['addRevisionData'](_0x2bbe13){const _0xcbf74d=this['repository']['createRevision'](_0x2bbe13);return this['adapter']&&_0xcbf74d['on']('_update',(_0x1cf580,_0x14e744,_0x3e75de)=>{_0x3e75de||(this['_bufferUpdate'](_0x14e744['id'],_0x14e744,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0xcbf74d,this['_findInsertionIndex'](_0xcbf74d)),_0xcbf74d;}async['getRevisionDocumentData'](_0x84f1fc){await this['_loadRevisionData'](_0x84f1fc);const _0xf86f21={};for(const _0x3193ad in _0x84f1fc['diffData']){if(_0x84f1fc['diffData'][_0x3193ad]['attachChange']&&!_0x84f1fc['diffData'][_0x3193ad]['attachChange']['isAttached'])continue;const _0x3946ca=this['_removeRevisionMarkers'](JSON['parse'](_0x84f1fc['diffData'][_0x3193ad]['insertions'])),_0x15a485=this['editor']['editing']['view']['document'],_0x548af7=new _0x5353f1(_0x15a485,_0x3946ca['map'](_0x1b4bdb=>C(_0x1b4bdb,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0xf86f21[_0x3193ad]=this['editor']['data']['processor']['toData'](_0x548af7),this['editor']['data']['processor']['useFillerType']('default');}return _0xf86f21;}async['getRevisionRootsAttributes'](_0x253362){await this['_loadRevisionData'](_0x253362);const _0x27586b={};for(const _0x1c3b64 in _0x253362['diffData'])_0x253362['diffData'][_0x1c3b64]['attachChange']&&!_0x253362['diffData'][_0x1c3b64]['attachChange']['isAttached']||(_0x27586b[_0x1c3b64]=_0x253362['diffData'][_0x1c3b64]['attributesAfter']||{});return _0x27586b;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x263d3e=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x2f7fc9=0x0;_0x2f7fc9<_0x263d3e['length'];_0x2f7fc9++){const _0x458c5c=_0x263d3e[_0x2f7fc9];let _0x184bd5=!0x1;for(const _0x3f9265 of Object['keys'](_0x458c5c))void 0x0===_0x458c5c[_0x3f9265]?delete _0x458c5c[_0x3f9265]:'id'!==_0x3f9265&&(_0x184bd5=!0x0);_0x184bd5||(_0x263d3e[_0x2f7fc9]=null);}if(_0x263d3e=_0x263d3e['filter'](_0x2848c2=>null!==_0x2848c2),!_0x263d3e['length'])return;for(let _0x4ed5f9=0x0;_0x4ed5f9<_0x263d3e['length'];_0x4ed5f9++){const _0x59ca87=_0x263d3e[_0x4ed5f9];void 0x0!==_0x59ca87['fromVersion']&&void 0x0===_0x59ca87['toVersion']&&(_0x59ca87['toVersion']=this['repository']['getRevision'](_0x59ca87['id'])['toVersion']),void 0x0!==_0x59ca87['toVersion']&&void 0x0===_0x59ca87['fromVersion']&&(_0x59ca87['fromVersion']=this['repository']['getRevision'](_0x59ca87['id'])['fromVersion']);}const _0x2d87f2=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x263d3e,_0x2d87f2)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x50179e=>{if(_0x50179e){for(const _0x7c5100 of _0x50179e)this['setRevisionData']({'id':_0x7c5100['id'],'createdAt':_0x7c5100['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x1eb406,_0x28b80e){let _0x304c18=this['editor']['config']['get']('initialData'),_0x266bdd=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x304c18){_0x304c18={};for(const _0x42bb46 of this['editor']['model']['document']['getRootNames']())_0x304c18[_0x42bb46]='';}if('string'==typeof _0x304c18&&(_0x304c18={'main':_0x304c18}),void 0x0===_0x266bdd){_0x266bdd={};for(const _0x34edd9 of this['editor']['model']['document']['getRootNames']())_0x266bdd[_0x34edd9]={};}let _0x5080ef=!0x1;const _0x419b7a=Object['keys'](_0x304c18),_0x1f09c7=Object['keys'](_0x1eb406);for(const _0x17c2e9 of _0x419b7a){if(_0x304c18[_0x17c2e9]!==_0x1eb406[_0x17c2e9]&&''!==_0x304c18[_0x17c2e9]['trim']()){_0x5080ef=!0x0;break;}if(!_0x5a462c(_0x266bdd[_0x17c2e9],_0x28b80e[_0x17c2e9])&&Object['keys'](_0x266bdd[_0x17c2e9])['length']>0x0){_0x5080ef=!0x0;break;}}_0x5080ef||(_0x5080ef=_0x1f09c7['some'](_0x9f9f4c=>!this['editor']['model']['document']['getRoot'](_0x9f9f4c))),_0x5080ef&&_0x5b37e8('editor-initial-data-replaced-with-revision-data',{'editorData':_0x304c18,'editorRootsAttributes':_0x266bdd,'revisionData':_0x1eb406,'revisionRootsAttributes':_0x28b80e}),this['editor']['config']['set']('initialData',_0x1eb406),this['editor']['config']['set']('rootsAttributes',_0x28b80e);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x540271=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x540271['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x54f5bc){const _0x44a095=this['repository']['getRevisions']();_0x44a095['reverse']();let _0x4e73e5=0x0;for(;_0x4e73e5<_0x44a095['length'];){const _0xf860c4=_0x44a095[_0x4e73e5];if(_0xf860c4===this['currentRevision']){_0x4e73e5++;continue;}if(_0xf860c4['id']===this['_initialRevisionId'])break;const _0x5e1851=_0x54f5bc['toVersion']-_0xf860c4['toVersion']||_0x54f5bc['fromVersion']-_0xf860c4['fromVersion'];if(_0x5e1851>0x0)break;if(_0x5e1851<0x0)_0x4e73e5++;else{if(!_0x54f5bc['creator']&&_0xf860c4['creator'])break;if(_0xf860c4['creator']||!_0x54f5bc['creator']){if(_0x54f5bc['createdAt']>_0xf860c4['createdAt'])break;_0x4e73e5++;}else _0x4e73e5++;}}return _0x4e73e5;}['setRevisionData'](_0x4a5c9f){const _0x399c37=this['repository']['getRevision'](_0x4a5c9f['id']);if(_0x4a5c9f['createdAt']&&(_0x4a5c9f['createdAt']=new Date(_0x4a5c9f['createdAt'])),_0x4a5c9f['authorsIds']){const _0x37bc0a=this['editor']['plugins']['get']('Users');_0x4a5c9f['authors']=_0x4a5c9f['authorsIds']['map'](_0x1e16e7=>_0x37bc0a['getUser'](_0x1e16e7));}_0x399c37['_update'](_0x4a5c9f,!0x0);}['buildRevisionData']({revision:_0x4a95e8=null,from:_0x4d4fa0=null,to:_0x1a6a9e=null}){_0x4d4fa0=null!==_0x4d4fa0?_0x4d4fa0:_0x4a95e8['fromVersion'],_0x1a6a9e=null!==_0x1a6a9e?_0x1a6a9e:_0x4a95e8['toVersion'];const _0x2849dc=this['_revisionDataBuilder']['getData'](_0x4d4fa0,_0x1a6a9e),_0x5848da={'diffData':_0x2849dc['diffData'],'authorsIds':_0x2849dc['authorsIds'],'fromVersion':_0x4d4fa0,'toVersion':_0x1a6a9e};if(!_0x4a95e8||_0x1a6a9e!==_0x4a95e8['toVersion']){const _0x660144=_0x1a6a9e-0x1,_0x1ff464=this['_source']['history']['getOperation'](_0x660144);_0x5848da['createdAt']=_0x1ff464&&_0x1ff464['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4d4fa0===this['_loadedStateData']['fromVersion']){for(const _0x4f61fe of this['_loadedStateData']['authors'])_0x5848da['authorsIds']['includes'](_0x4f61fe['id'])||_0x5848da['authorsIds']['push'](_0x4f61fe['id']);}return _0x5848da;}['_loadRevisionData'](_0x407ca4){if(!_0x407ca4||_0x407ca4['diffData'])return Promise['resolve']();{const _0x544898=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x544898,'revisionId':_0x407ca4['id']})['then'](_0x3ae45d=>{_0x407ca4['diffData']=_0x3ae45d['diffData'];});}}['_bufferUpdate'](_0x22990e,_0x3afa49,_0x5798af){if(this['_bufferedUpdates']['has'](_0x22990e)){const _0x172a25=this['_bufferedUpdates']['get'](_0x22990e);_0x3afa49=_0x5798af?{..._0x172a25,..._0x3afa49}:{..._0x3afa49,..._0x172a25};}this['_bufferedUpdates']['set'](_0x22990e,_0x3afa49);}['_getFromVersion'](_0x62359b){const _0x1b5623=this['repository']['getRevisions']();_0x1b5623['reverse'](),_0x1b5623['shift']();const _0x39d8b7=_0x1b5623['find'](_0x4212f8=>_0x4212f8['toVersion']<=_0x62359b)['toVersion'];return _0x39d8b7<this['_startingVersion']?this['_startingVersion']:_0x39d8b7;}['_createInitialRevision'](_0x103dd2){const _0xbd1b8d=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0xbd1b8d)this['_initialRevisionId']=_0xbd1b8d['id'];else{const _0x29ff1c=!this['editor']['model']['document']['roots']['find'](_0x1bd56a=>this['editor']['model']['hasContent'](_0x1bd56a)),_0x411814=this['editor']['plugins']['get']('Users')['me']['id'],_0x57d1c2=m(this['editor']['locale'],_0x29ff1c?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x103dd2,'to':_0x103dd2,'id':this['_initialRevisionId'],'name':_0x57d1c2,'creatorId':_0x411814});}}['_createCurrentRevision'](_0x39e1d5){const _0x2b5d49=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x2b5d49),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x39e1d5,'to':_0x39e1d5,'id':_0x2b5d49,'name':'','creatorId':null}));}['_makeRevision']({name:_0x3975e5,from:_0xfa0bc5,to:_0x5bb3d8,creatorId:_0x4ccc5d,id:_0x39e7dd}){const _0xd4aa83=this['buildRevisionData']({'from':_0xfa0bc5,'to':_0x5bb3d8});_0xd4aa83['name']=_0x3975e5,_0xd4aa83['creatorId']=_0x4ccc5d,_0xd4aa83['id']=_0x39e7dd;const _0xf5f064=this['addRevisionData'](_0xd4aa83);return this['adapter']&&this['_bufferUpdate'](_0xd4aa83['id'],_0xd4aa83,!0x0),_0xf5f064;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x9d2903){return(_0x9d2903=_0x9d2903['filter'](_0x13cbec=>!_0x13cbec['name']||'revision-start'!==_0x13cbec['name']&&'revision-end'!==_0x13cbec['name']))['forEach'](_0x532219=>{'string'!=typeof _0x532219&&(_0x532219['children']=this['_removeRevisionMarkers'](_0x532219['children']),_0x532219['attributes']=_0x532219['attributes']['filter'](_0x3b46ca=>!_0x3b46ca[0x0]['startsWith']('data-revision-')));}),_0x9d2903;}}function C(_0xa64fdc,_0x4ec5ca){const _0x4abf4a=_0x4ec5ca['editing']['view']['document'];if('string'==typeof _0xa64fdc)return new _0x4a5bd6(_0x4abf4a,_0xa64fdc);{const _0x1aa568=_0xa64fdc['children']['map'](_0x3609dc=>C(_0x3609dc,_0x4ec5ca));return new(P[_0xa64fdc['type']]||_0x1a180c)(_0x4abf4a,_0xa64fdc['name'],_0xa64fdc['attributes'],_0x1aa568);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x4c4fff){this['editor']=_0x4c4fff,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'](_0x21653c){this['source']=_0x21653c;const _0x283779=new Map(),_0x8980d3=new Map(),_0x47296b=this['editor']['model']['document']['roots']['map'](_0x366826=>_0x366826['rootName']);for(const _0x12e5be of _0x47296b){const _0x4c90ea=this['editor']['model']['document']['getRoot'](_0x12e5be),_0x4f226e=T(_0x4c90ea);_0x283779['set'](_0x12e5be,_0x4f226e),_0x8980d3['set'](_0x12e5be,Object['fromEntries'](_0x4c90ea['getAttributes']()));}const _0x26e615=Array['from'](this['editor']['model']['markers'])['map'](_0x26efea=>[_0x26efea['name'],_0x26efea['getRange']()]),_0x23feb0=this['source']['version'];this['_saveMetaData'](_0x23feb0,_0x283779,_0x26e615,_0x8980d3),this['_startingRevisionId']=this['_revisionId'];const _0x5de38a=new Map(),_0x2f6821=new Map();for(const _0x2e2fd6 of _0x47296b){const _0x47e14e=F(_0x2e2fd6);_0x5de38a['set'](_0x2e2fd6,_0x47e14e),_0x2f6821['set'](_0x2e2fd6,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x5de38a,[],_0x2f6821);}['getData'](_0x2d6d13,_0x5813e6){if(this['_lastFrom']===_0x2d6d13&&this['_lastTo']<=_0x5813e6)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x5813e6,!0x0);else{if(!this['_savedMetaData']['has'](_0x2d6d13)){const _0xc7d402=this['_getPreviousFrom'](_0x2d6d13);this['_calculateMetaData'](_0xc7d402,_0x2d6d13,!0x1);}this['_calculateMetaData'](_0x2d6d13,_0x5813e6,!0x0);}return this['_lastFrom']=_0x2d6d13,this['_lastTo']=_0x5813e6,this['_getState']();}['loadState'](_0x537f69){this['_reset'](),this['_lastFrom']=_0x537f69['fromVersion'],this['_lastTo']=_0x537f69['toVersion'];for(const _0x4f5068 in _0x537f69['diffData']){const _0x57332e=_0x537f69['diffData'][_0x4f5068]['attachChange'],_0x239939=_0x46c91b(_0x537f69['diffData'][_0x4f5068]['attributesBefore'])||{},_0x8f853=this['_makeModelFromViewString'](_0x537f69['diffData'][_0x4f5068]['deletions']);_0x8f853['rootName']=_0x4f5068,_0x8f853['_isAttached']=!_0x57332e||!_0x57332e['isAttached'],_0x8f853['isAttached']=()=>_0x8f853['_isAttached'],this['_baseRoots']['set'](_0x4f5068,_0x8f853),this['_baseRootsAttributes']['set'](_0x4f5068,_0x239939),_0x57332e&&this['_touchedRoots']['set'](_0x4f5068,_0x57332e);const _0x25555d=this['_makeIdsRoot'](_0x8f853);this['_baseIdsRoots']['set'](_0x4f5068,_0x25555d);for(const [_0xf23ac0,_0x4f03e7]of _0x8f853['markers']){if(!_0xf23ac0['startsWith']('revision:'))continue;const _0x5d78e1=_0xf23ac0['split'](':')[0x2];for(const _0x38a1fb of _0x4f03e7['getWalker']({'singleCharacters':!0x0})){const _0x344710=this['_getVidAttributeName'](_0x38a1fb),_0x171fc3='elementEnd'==_0x38a1fb['type']?_0x38a1fb['previousPosition']['path']['slice'](0x0,-0x1):_0x38a1fb['previousPosition']['path'],_0x1daa2f=_0x25555d['getNodeByPath'](_0x171fc3)['getAttribute'](_0x344710);this['_touched']['set'](_0x1daa2f,{'userId':_0x5d78e1});}}}this['_startingRevisionId']=this['_revisionId'];const _0xb24ac1=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0xc9b85=>!this['_touched']['has'](_0xc9b85));let _0x437bc1=0x0;const _0x4682cb=new Map();for(const _0x2b2107 in _0x537f69['diffData']){const _0x4bbd83=_0x537f69['diffData'][_0x2b2107]['attachChange'],_0x4e89fe=_0x46c91b(_0x537f69['diffData'][_0x2b2107]['attributesAfter'])||{},_0x1ba3f2=this['_makeModelFromViewString'](_0x537f69['diffData'][_0x2b2107]['insertions']);_0x1ba3f2['rootName']=_0x2b2107,_0x1ba3f2['_isAttached']=!_0x4bbd83||_0x4bbd83['isAttached'],_0x1ba3f2['isAttached']=()=>_0x1ba3f2['_isAttached'],this['_diffRoots']['set'](_0x2b2107,_0x1ba3f2),this['_diffRootsAttributes']['set'](_0x2b2107,_0x4e89fe);const _0x1c0e40=this['_makeIdsRoot'](_0x1ba3f2,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x2b2107,_0x1c0e40),_0x4682cb['set'](_0x2b2107,_0x1ba3f2['isAttached']()?_0x4e89fe:{});for(const [_0x15d8aa,_0x1aa685]of _0x1ba3f2['markers']){if(!_0x15d8aa['startsWith']('revision:'))continue;const _0x4b6811=_0x15d8aa['split'](':')[0x2];for(const _0x169ab0 of _0x1aa685['getWalker']({'singleCharacters':!0x0})){const _0x9cf835=this['_getVidAttributeName'](_0x169ab0),_0x1fad4b=this['_revisionId']++,_0x10cb65='elementEnd'==_0x169ab0['type']?_0x169ab0['previousPosition']['path']['slice'](0x0,-0x1):_0x169ab0['previousPosition']['path'];_0x1c0e40['getNodeByPath'](_0x10cb65)['_setAttribute'](_0x9cf835,_0x1fad4b),this['_touched']['set'](_0x1fad4b,{'userId':_0x4b6811});}}for(const _0x5437bc of this['editor']['model']['createRangeIn'](_0x1ba3f2)['getWalker']({'singleCharacters':!0x0})){const _0x349dcb=this['_getVidAttributeName'](_0x5437bc),_0x408b8f='elementEnd'==_0x5437bc['type']?_0x5437bc['previousPosition']['path']['slice'](0x0,-0x1):_0x5437bc['previousPosition']['path'],_0x5bdb58=_0x1c0e40['getNodeByPath'](_0x408b8f);_0x5bdb58['getAttribute'](_0x349dcb)>0x0||_0x5bdb58['_setAttribute'](_0x349dcb,_0xb24ac1[_0x437bc1++]);}for(const [_0x5688ad,_0x1e0adf]of _0x1ba3f2['markers'])_0x5688ad['startsWith']('revision:')||this['_markers']['set'](_0x5688ad,_0x1e0adf);}const _0x5a2324=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x5a2324),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5a2324,0x1));const _0x5148d3=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x5148d3),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5148d3,0x1));const _0x101250=Array['from'](this['_diffRoots'])['map'](([_0xcdb2d6,_0x48939c])=>[_0xcdb2d6,T(_0x48939c)]);this['_saveMetaData'](this['_lastTo'],_0x101250,this['_markers'],_0x4682cb);}['_makeModelFromViewString'](_0x23f670){const _0x35e9d1=JSON['parse'](_0x23f670),_0x26a082=this['editor']['editing']['view']['document'],_0x447dc1=new _0x5353f1(_0x26a082,_0x35e9d1['map'](_0x4bbcd5=>C(_0x4bbcd5,this['editor'])));return this['editor']['data']['toModel'](_0x447dc1);}['_saveMetaData'](_0x318203,_0xffa27c,_0x44eab0,_0x20df0f){const _0x2b9d2c=new Map(_0xffa27c),_0x57b3b4=new Map(_0x46c91b(_0x20df0f)),_0x3faac7=new Map();for(const [_0x3e5273,_0x301705]of _0x44eab0)_0x3faac7['set'](_0x3e5273,{'start':_0x301705['start']['clone'](),'end':_0x301705['end']['clone'](),'rootName':_0x301705['root']['rootName']});this['_savedMetaData']['set'](_0x318203,{'roots':_0x2b9d2c,'markers':_0x3faac7,'rootsAttributes':_0x57b3b4});}['_removeMetaData'](_0x23d796){this['_savedMetaData']['delete'](_0x23d796);}['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'](_0x576956,_0x9ec034=null){let _0x12d455=null;_0x576956['is']('documentFragment')||(_0x12d455=new ft(_0x576956['name'],{'vid_start':null===_0x9ec034?this['_revisionId']++:_0x9ec034++}));const _0x456073=[];for(const _0x3b70a8 of _0x576956['getChildren']())if(_0x3b70a8['is']('element')){_0x456073['push'](this['_makeIdsRoot'](_0x3b70a8,_0x9ec034));const _0x12f2e2=_0x456073[_0x456073['length']-0x1];null!==_0x9ec034&&(_0x9ec034=_0x12f2e2['is']('element','$text')?_0x12f2e2['getAttribute']('vid')+0x1:_0x12f2e2['getAttribute']('vid_end')+0x1);}else{for(let _0x1d8832=0x0;_0x1d8832<_0x3b70a8['offsetSize'];_0x1d8832++)_0x456073['push'](new ft('$text',{'vid':null===_0x9ec034?this['_revisionId']++:_0x9ec034++}));}if(_0x576956['is']('documentFragment')){const _0x19eb36=F(_0x576956['rootName']);return _0x19eb36['_insertChild'](0x0,_0x456073),_0x19eb36;}return _0x12d455['_setAttribute']('vid_end',null===_0x9ec034?this['_revisionId']++:_0x9ec034++),_0x12d455['_insertChild'](0x0,_0x456073),_0x12d455;}['_calculateMetaData'](_0x5646e1,_0x324412,_0x5a3963){this['_reset']();const {roots:_0x39e799,markers:_0x3ab843,rootsAttributes:_0x3343e9}=this['_savedMetaData']['get'](_0x5646e1);this['_baseRoots']=new Map(_0x39e799),this['_baseRootsAttributes']=new Map(_0x46c91b(_0x3343e9));for(const [_0x1b3c3b,_0x32716f]of this['_baseRoots'])if('$graveyard'!==_0x1b3c3b&&(this['_diffRoots']['set'](_0x1b3c3b,T(_0x32716f)),this['_diffRootsAttributes']=new Map(_0x46c91b(_0x3343e9)),_0x5a3963)){const _0x1d091c=this['_revisionId'];this['_idsRoots']['set'](_0x1b3c3b,this['_makeIdsRoot'](_0x32716f)),this['_baseIdsRoots']['set'](_0x1b3c3b,this['_makeIdsRoot'](_0x32716f,_0x1d091c));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x5a3963&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x107bbc,_0x37af62]of _0x3ab843){const _0x3d4a32=this['_baseRoots']['get'](_0x37af62['rootName']),_0x43c657=this['_diffRoots']['get'](_0x37af62['rootName']),_0x501654=new vt(this['_fixPosition'](_0x37af62['start'],_0x3d4a32),this['_fixPosition'](_0x37af62['end'],_0x3d4a32)),_0x258ca6=this['_fixRange'](_0x501654,_0x43c657);_0x3d4a32['markers']['set'](_0x107bbc,_0x501654),this['_markers']['set'](_0x107bbc,_0x258ca6);}this['_applyOperations'](_0x5646e1,_0x324412,_0x5a3963);}['_applyOperations'](_0x58ed1b,_0x2e3ed1,_0x192391){for(const _0x467130 of this['source']['getOperations'](_0x58ed1b,_0x2e3ed1))this['_handleOperation'](_0x467130,_0x192391);for(const _0x4beea9 of this['_diffRoots']['values']())_0x4beea9['markers']['clear']();for(const [_0x2778ef,_0x352e12]of this['_markers']){this['_diffRoots']['get'](_0x352e12['root']['rootName'])['markers']['set'](_0x2778ef,_0x352e12['clone']());}const _0x3664ab=new Map(),_0x18556a=new Map();for(const [_0x215229,_0x183f4d]of this['_diffRoots'])_0x3664ab['set'](_0x215229,T(_0x183f4d)),_0x18556a['set'](_0x215229,this['_diffRootsAttributes']['get'](_0x215229));this['_saveMetaData'](_0x2e3ed1,_0x3664ab,this['_markers'],_0x18556a);}['_getPreviousFrom'](_0x328b01){const _0x35ce6a=Array['from'](this['_savedMetaData']['keys']());_0x35ce6a['sort']((_0x41f20c,_0x38cea4)=>_0x41f20c-_0x38cea4),_0x35ce6a['reverse']();for(const _0x4bd6d0 of _0x35ce6a)if(_0x4bd6d0<_0x328b01)return _0x4bd6d0;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x316f5c,_0x3af6e8){const _0x2c02a7=Array['from'](_0x3af6e8['markers'])['map'](([_0x70d807,_0x292964])=>[_0x70d807,this['_fixRange'](_0x292964,_0x316f5c)]);_0x316f5c['markers']=new Map(_0x2c02a7);}['_transformMarkers'](_0x3b43a2){for(const _0x4c4a22 of this['_markers']['values']()){const _0x2a5b85=_0x4c4a22['getTransformedByOperation'](_0x3b43a2),_0x5b504a=vt['_createFromRanges'](_0x2a5b85);_0x4c4a22['start']=_0x5b504a['start'],_0x4c4a22['end']=_0x5b504a['end'];}}['_handleOperation'](_0x3469da,_0x317655){if('addRoot'!=_0x3469da['type']&&'detachRoot'!=_0x3469da['type']){if('insert'==_0x3469da['type']){const _0x5860a8=_0x3469da['position']['root']['rootName'];this['_diffRoots']['has'](_0x5860a8)||(this['_diffRoots']['set'](_0x5860a8,F(_0x5860a8,!0x0)),this['_diffRootsAttributes']['set'](_0x5860a8,{}),_0x317655&&this['_idsRoots']['set'](_0x5860a8,F(_0x5860a8,!0x0)));}else{if('addRootAttribute'==_0x3469da['type']||'removeRootAttribute'==_0x3469da['type']||'changeRootAttribute'==_0x3469da['type'])return void this['_handleRootAttributeOperation'](_0x3469da);'marker'==_0x3469da['type']&&this['_handleMarkerOperation'](_0x3469da);}if('marker'!==_0x3469da['type']){const _0x41dd8b=this['_cloneOperation'](_0x3469da,this['_diffRoots']);_0x41dd8b['_execute'](),this['_transformMarkers'](_0x41dd8b);}if(_0x317655)switch(_0x3469da['type']){case'insert':this['_handleInsertOperation'](_0x3469da);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x3469da);break;case'merge':this['_handleMergeOperation'](_0x3469da);break;case'split':this['_handleSplitOperation'](_0x3469da);}}else this['_handleRootOperation'](_0x3469da,_0x317655);}['_cloneOperation'](_0x4cd62d,_0x19b5a5){const _0x483a88=_0x4cd62d['clone']();return _0x483a88['_authorId']=_0x4cd62d['_authorId'],this['_fixOperation'](_0x483a88,_0x19b5a5),_0x483a88;}['_getBaseVids'](_0x19b7af){return _0x19b7af['map'](_0x42efb5=>{const _0xe7a9fa=this['_getVidAttributeName'](_0x42efb5);return Number(_0x42efb5['item']['getAttribute'](_0xe7a9fa));});}['_generateTape'](_0x1797df,_0x10daf4){if(_0x1797df['is']('element','$text'))_0x10daf4['push']({'item':_0x1797df,'type':'text'});else{_0x1797df['is']('element')&&_0x10daf4['push']({'item':_0x1797df,'type':'elementStart'});for(const _0x16d69f of _0x1797df['getChildren']())this['_generateTape'](_0x16d69f,_0x10daf4);_0x1797df['is']('element')&&_0x10daf4['push']({'item':_0x1797df,'type':'elementEnd'});}return _0x10daf4;}['_getState'](){const _0x4a31fd=new Map(this['_touched']),_0x3426ba=new Map(_0x4a31fd),_0x52ada4=new Map(),_0x53efb7={'insertions':{},'deletions':{}},_0x45b580={'insertions':{},'deletions':{}},_0x836a69=new Map(),_0x536a80=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x536a80['delete']('$graveyard');for(const _0x1ea310 of _0x536a80){const _0x539d85=this['_diffRoots']['get'](_0x1ea310)||F(_0x1ea310,!0x1),_0x1bd468=this['_baseRoots']['get'](_0x1ea310)||F(_0x1ea310,!0x1);_0x539d85['isAttached']()||_0x1bd468['isAttached']()?(_0x53efb7['insertions'][_0x1ea310]=T(_0x539d85),_0x53efb7['deletions'][_0x1ea310]=T(_0x1bd468),this['_copyMarkers'](_0x53efb7['deletions'][_0x1ea310],_0x1bd468),this['_copyMarkers'](_0x53efb7['insertions'][_0x1ea310],_0x539d85),_0x45b580['insertions'][_0x1ea310]=this['_generateTape'](this['_idsRoots']['get'](_0x1ea310),[]),_0x45b580['deletions'][_0x1ea310]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x1ea310)||F(_0x1ea310,!0x1),[])):_0x536a80['delete'](_0x1ea310);}for(const _0xdcb47a of _0x536a80){const _0x2b5062=_0x45b580['insertions'][_0xdcb47a];for(const _0x4c2500 of _0x2b5062){const _0x2604ee=this['_getVidAttributeName'](_0x4c2500),_0x475ff7=_0x4c2500['item']['getAttribute'](_0x2604ee);_0x3426ba['delete'](_0x475ff7),_0x475ff7>=this['_startingRevisionId']&&_0x52ada4['set'](_0x475ff7,_0x4a31fd['get'](_0x475ff7));}}for(const _0x94fb59 of _0x536a80){const _0x4f4aac=_0x45b580['insertions'][_0x94fb59],_0x2dd201=this['_getBaseVids'](_0x45b580['deletions'][_0x94fb59]);let _0x3af4d8=0x0;for(const _0x30e7b8 of _0x4f4aac){const _0x4c46d7=this['_getVidAttributeName'](_0x30e7b8),_0x55cddf=_0x30e7b8['item']['getAttribute'](_0x4c46d7);if(!_0x52ada4['has'](_0x55cddf)&&!_0x836a69['has'](_0x55cddf)){if(_0x3426ba['has'](_0x55cddf))_0x3af4d8++;else{if(_0x55cddf!=_0x2dd201[_0x3af4d8]){const _0x48a45e=_0x4a31fd['get'](_0x55cddf)||_0x4a31fd['get'](_0x2dd201[_0x3af4d8]);for(;_0x55cddf!=_0x2dd201[_0x3af4d8];)_0x3426ba['has'](_0x2dd201[_0x3af4d8])||(_0x836a69['set'](_0x2dd201[_0x3af4d8],_0x48a45e),_0x4a31fd['set'](_0x2dd201[_0x3af4d8],_0x48a45e)),_0x3af4d8++;}_0x3af4d8++;}}}}for(const _0x44d5e9 of _0x536a80){const _0x411c76=_0x45b580['insertions'][_0x44d5e9];for(const _0x952084 of _0x411c76){const _0x10628b=this['_getVidAttributeName'](_0x952084),_0x4da939=_0x952084['item']['getAttribute'](_0x10628b);if(_0x836a69['has'](_0x4da939)){const _0x4ba04e=_0x836a69['get'](_0x4da939);_0x3426ba['has'](_0x4da939)||_0x3426ba['set'](_0x4da939,{..._0x4ba04e}),_0x52ada4['set'](_0x4da939,{..._0x4ba04e});}}}for(const _0x6aa96e of _0x3426ba['keys']())_0x6aa96e>=this['_startingRevisionId']&&_0x3426ba['delete'](_0x6aa96e);const _0x335714=new Map();for(const _0xce1460 of _0x536a80){let _0x50ea10=_0x45b580['insertions'][_0xce1460];for(const _0x5989ba of _0x50ea10)if(_0x5989ba['item']['is']('element','tableCell')){const _0x322da2=this['_getVidAttributeName'](_0x5989ba),_0x2facdf=_0x5989ba['item']['getAttribute'](_0x322da2);if(_0x52ada4['has'](_0x2facdf)){const _0x413ae4=_0x5989ba['item']['parent']['parent']['getAttribute']('vid_start'),_0x29ad1e=_0x335714['get'](_0x413ae4)||new Set();_0x29ad1e['add'](_0x52ada4['get'](_0x2facdf)['userId']),_0x335714['set'](_0x413ae4,_0x29ad1e);}}_0x50ea10=_0x45b580['deletions'][_0xce1460];for(const _0x1e5f4e of _0x50ea10)if(_0x1e5f4e['item']['is']('element','tableCell')){const _0x1bddf6=this['_getVidAttributeName'](_0x1e5f4e),_0x2dc6bb=_0x1e5f4e['item']['getAttribute'](_0x1bddf6);if(_0x3426ba['has'](_0x2dc6bb)){const _0x441dd2=_0x1e5f4e['item']['parent']['parent']['getAttribute']('vid_start'),_0xc0bcb4=_0x335714['get'](_0x441dd2)||new Set();_0xc0bcb4['add'](_0x3426ba['get'](_0x2dc6bb)['userId']),_0x335714['set'](_0x441dd2,_0xc0bcb4);}}for(const _0x5b90de of _0x335714['keys']())(_0x52ada4['has'](_0x5b90de)||_0x3426ba['has'](_0x5b90de))&&_0x335714['delete'](_0x5b90de);}for(const _0x52071f of _0x536a80){const _0x20adb4=_0x45b580['insertions'][_0x52071f];let _0xb3a312=null,_0xe2505d=null;for(const _0x109cee of _0x20adb4){const _0x440b79=this['_getVidAttributeName'](_0x109cee),_0x1c8be1=_0x109cee['item']['getAttribute'](_0x440b79),_0xd08fae=_0x335714['get'](_0x1c8be1);_0xd08fae&&'elementStart'==_0x109cee['type']&&(_0xb3a312=Array['from'](_0xd08fae)[0x0],_0xe2505d=_0x109cee['item']['getAttribute']('vid_end')),_0xb3a312&&(_0x3426ba['set'](_0x1c8be1,{'userId':_0xb3a312}),_0x52ada4['set'](_0x1c8be1,{'userId':_0xb3a312})),_0x1c8be1==_0xe2505d&&(_0xb3a312=null,_0xe2505d=null);}}const _0x4b98b6={},_0x4901a6=new Set();for(const _0x5eb315 of _0x536a80){const _0x4bcfec=_0x53efb7['deletions'][_0x5eb315],_0x131d32=_0x53efb7['insertions'][_0x5eb315];for(const {userId:_0x3d9457}of this['_touchedMarkers']['values']())null!==_0x3d9457&&_0x4901a6['add'](_0x3d9457);for(const {userId:_0x30f67f}of this['_touchedRoots']['values']())null!==_0x30f67f&&_0x4901a6['add'](_0x30f67f);this['_markChanges'](_0x131d32,_0x45b580['insertions'][_0x5eb315],_0x52ada4,'insertion',_0x4901a6),this['_markChanges'](_0x4bcfec,_0x45b580['deletions'][_0x5eb315],_0x3426ba,'deletion',_0x4901a6),_0x4b98b6[_0x5eb315]={'insertions':this['_prepareViewToSave'](_0x131d32),'deletions':this['_prepareViewToSave'](_0x4bcfec),'attachChange':this['_touchedRoots']['get'](_0x5eb315)||null,'attributesBefore':_0x46c91b(this['_baseRootsAttributes']['get'](_0x5eb315))||{},'attributesAfter':_0x46c91b(this['_diffRootsAttributes']['get'](_0x5eb315))};}return{'diffData':_0x4b98b6,'authorsIds':Array['from'](_0x4901a6)};}['_processRootBeforeSave'](_0x1bc536){for(const [,_0x4f9678]of _0x1bc536['markers']){const _0x1e598e=_0x4f9678['start']['getAncestors']()['filter'](_0x4286b4=>'tableCell'==_0x4286b4['name']);for(const _0x141b9f of _0x1e598e)0x1==_0x141b9f['childCount']&&_0x141b9f['getChild'](0x0)['is']('element','paragraph')&&_0x141b9f['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x366e95){this['_processRootBeforeSave'](_0x366e95);const _0xf718c7=this['editor']['data']['toView'](_0x366e95,{}),_0x401551=Array['from'](_0xf718c7['getChildren']())['map'](_0x51313e=>this['_getViewJson'](_0x51313e));return JSON['stringify'](_0x401551);}['_getViewJson'](_0x1c1ebc){if(_0x1c1ebc['is']('$text'))return _0x1c1ebc['data'];{const _0x4aafcb=_0x1c1ebc;return{'type':Object['keys'](P)['find'](_0x4f4ec7=>_0x1c1ebc instanceof P[_0x4f4ec7]),'name':_0x4aafcb['name'],'attributes':Array['from'](_0x4aafcb['getAttributes']()),'children':Array['from'](_0x4aafcb['getChildren']())['map'](_0x5b765b=>this['_getViewJson'](_0x5b765b))};}}['_markChanges'](_0x537661,_0x2b9ddf,_0x2d38ac,_0x1d80ca,_0x2661ee){let _0x1b1c62=null,_0x350c39=null,_0x3c5c17=0x0;const _0x468233=this['editor']['model'];for(let _0x1a137f=0x0;_0x1a137f<_0x2b9ddf['length'];_0x1a137f++){const _0x2c0ed7=this['_getVidAttributeName'](_0x2b9ddf[_0x1a137f]),_0x2ba66a=_0x2b9ddf[_0x1a137f]['item']['getAttribute'](_0x2c0ed7),_0x1b8030=_0x2d38ac['get'](_0x2ba66a),_0xcb8f49=_0x1a137f==_0x2b9ddf['length']-0x1;(!_0x1b1c62&&_0x1b8030&&(_0x1b1c62=_0x1b8030,_0x350c39=_0x2b9ddf[_0x1a137f]),_0x1b1c62&&(!_0x1b8030||_0x1b8030['userId']!=_0x1b1c62['userId']))&&(_0x5ea04e(_0x1b8030,B(_0x350c39,_0x537661,_0x468233),B(_0x2b9ddf[_0x1a137f],_0x537661,_0x468233)),_0x1b1c62=_0x1b8030||null,_0x350c39=_0x1b8030?_0x2b9ddf[_0x1a137f]:null),_0x1b1c62&&_0xcb8f49&&_0x5ea04e(_0x1b8030,B(_0x350c39,_0x537661,_0x468233),J(_0x2b9ddf[_0x1a137f],_0x537661,_0x468233));}function _0x5ea04e(_0x4d764d,_0x104527,_0x446781){const _0x1c7242=_0x1b1c62['userId'],_0x49087c='revision:'+_0x1d80ca+':'+_0x1c7242+':'+_0x3c5c17++,_0x3e05f0=_0x468233['createRange'](_0x104527,_0x446781);_0x537661['markers']['set'](_0x49087c,_0x3e05f0),null!==_0x1c7242&&_0x2661ee['add'](_0x1c7242);}}['_getVidAttributeName'](_0x1f5505){switch(_0x1f5505['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x41919a,_0x20a6b6){_0x41919a['baseVersion']=null;for(const _0x2a1b99 in _0x41919a){const _0xe1cdef=_0x41919a[_0x2a1b99];if(_0xe1cdef instanceof gt){const _0x5ee8d6=_0x20a6b6['get'](_0xe1cdef['root']['rootName']);_0x41919a[_0x2a1b99]=this['_fixPosition'](_0xe1cdef,_0x5ee8d6);}if(_0xe1cdef instanceof vt){const _0x396c4e=_0x20a6b6['get'](_0xe1cdef['root']['rootName']);_0x41919a[_0x2a1b99]=this['_fixRange'](_0xe1cdef,_0x396c4e);}'root'===_0x2a1b99&&(_0x41919a['root']=_0x20a6b6['get'](_0x41919a['root']['rootName']));}}['_fixRange'](_0x2f773a,_0x9e34ce){return this['editor']['model']['createRange'](this['_fixPosition'](_0x2f773a['start'],_0x9e34ce),this['_fixPosition'](_0x2f773a['end'],_0x9e34ce));}['_fixPosition'](_0x57079c,_0x5d003e){return this['editor']['model']['createPositionFromPath'](_0x5d003e,_0x57079c['path'],_0x57079c['stickiness']);}['_handleInsertOperation'](_0x45e1f6){const _0x148942=this['_idsRoots']['get'](_0x45e1f6['position']['root']['rootName']),_0x5df9d2=this['_fixPosition'](_0x45e1f6['position'],_0x148942),_0x25256b=null===_0x45e1f6['_authorId']?null:_0x45e1f6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x393903=_0x5df9d2['parent'],_0x5e34e9=this['_revisionId'],_0x34128f=[];for(const _0x1d3290 of _0x45e1f6['nodes'])if(_0x1d3290['is']('element'))_0x34128f['push'](this['_makeIdsRoot'](_0x1d3290));else{for(let _0x4b63d6=0x0;_0x4b63d6<_0x1d3290['offsetSize'];_0x4b63d6++)_0x34128f['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x57f7bd=this['_revisionId'];for(let _0x3e55ae=_0x5e34e9;_0x3e55ae<_0x57f7bd;_0x3e55ae++)this['_touched']['set'](_0x3e55ae,{'userId':_0x25256b});_0x393903['_insertChild'](_0x5df9d2['offset'],_0x34128f);}['_handleMoveOperation'](_0xd6b806){(_0xd6b806=this['_cloneOperation'](_0xd6b806,this['_idsRoots']))['_execute']();const _0x562e5d=null===_0xd6b806['_authorId']?null:_0xd6b806['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1532fe=_0xd6b806['getMovedRangeStart'](),_0x513e64=_0x1532fe['parent'],_0x527c9c=_0x1532fe['offset'];!function _0x5b50ef(_0x4780f0,_0x289e18,_0x4c04d4,_0x3626cc){for(let _0x437f7e=_0x4c04d4;_0x437f7e<_0x3626cc;_0x437f7e++){const _0xa94e39=_0x289e18['getChild'](_0x437f7e);_0xa94e39['is']('element','$text')?_0x4780f0['set'](_0xa94e39['getAttribute']('vid'),{'userId':_0x562e5d}):(_0x4780f0['set'](_0xa94e39['getAttribute']('vid_start'),{'userId':_0x562e5d}),_0x5b50ef(_0x4780f0,_0xa94e39,0x0,_0xa94e39['childCount']),_0x4780f0['set'](_0xa94e39['getAttribute']('vid_end'),{'userId':_0x562e5d}));}}(this['_touched'],_0x513e64,_0x527c9c,_0x527c9c+_0xd6b806['howMany']);}['_handleMergeOperation'](_0x68db19){const _0x3d63ed=null===(_0x68db19=this['_cloneOperation'](_0x68db19,this['_idsRoots']))['_authorId']?null:_0x68db19['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xf9e01e=_0x68db19['targetPosition']['parent'],_0x146a1b=_0x68db19['sourcePosition']['parent'],_0x93e13d=_0xf9e01e['getAttribute']('vid_end'),_0x329e14=_0x146a1b['getAttribute']('vid_start');_0xf9e01e['_setAttribute']('vid_end',_0x146a1b['getAttribute']('vid_end')),_0x146a1b['_setAttribute']('vid_end',_0x93e13d),this['_touched']['set'](_0x329e14,{'userId':_0x3d63ed}),this['_touched']['set'](_0x93e13d,{'userId':_0x3d63ed}),_0x68db19['_execute']();}['_handleSplitOperation'](_0x2d164f){const _0x1ce721=null===(_0x2d164f=this['_cloneOperation'](_0x2d164f,this['_idsRoots']))['_authorId']?null:_0x2d164f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5870c1=_0x2d164f['graveyardPosition'],_0x4af021=_0x2d164f['splitPosition']['parent'];_0x2d164f['_execute']();const _0x36c3b7=_0x4af021['getAttribute']('vid_end'),_0x5dbc03=_0x2d164f['insertionPosition']['nodeAfter'];if(_0x5870c1){const _0xf3bd4d=_0x5dbc03['getAttribute']('vid_end'),_0x38ab99=_0x4af021['getAttribute']('vid_end');_0x4af021['_setAttribute']('vid_end',_0xf3bd4d),_0x5dbc03['_setAttribute']('vid_end',_0x38ab99),this['_touched']['set'](_0x4af021['getAttribute']('vid_end'),{'userId':_0x1ce721}),this['_touched']['set'](_0x5dbc03['getAttribute']('vid_start'),{'userId':_0x1ce721});}else{const _0x44a37c=this['_revisionId']++,_0x1ad98c=this['_revisionId']++;_0x4af021['_setAttribute']('vid_end',_0x44a37c),_0x5dbc03['_setAttribute']('vid_start',_0x1ad98c),_0x5dbc03['_setAttribute']('vid_end',_0x36c3b7),this['_touched']['set'](_0x44a37c,{'userId':_0x1ce721}),this['_touched']['set'](_0x1ad98c,{'userId':_0x1ce721});}}['_handleMarkerOperation'](_0x6dec95){if(!_0x6dec95['affectsData'])return;const _0x2316ce=(_0x6dec95=this['_cloneOperation'](_0x6dec95,this['_diffRoots']))['oldRange']?_0x6dec95['oldRange']['root']:null,_0xda4c9d=_0x6dec95['newRange']?_0x6dec95['newRange']['root']:null;_0x2316ce&&this['_markers']['delete'](_0x6dec95['name']),_0xda4c9d&&this['_markers']['set'](_0x6dec95['name'],_0x6dec95['newRange']['clone']());const _0x5853e2=null===_0x6dec95['_authorId']?null:_0x6dec95['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x386676=_0x6dec95['name'];if(!this['_touchedMarkers']['has'](_0x386676))return void this['_touchedMarkers']['set'](_0x386676,{'range':_0x6dec95['oldRange'],'userId':_0x5853e2});const _0x271f55=this['_touchedMarkers']['get'](_0x386676),_0x246039=_0x271f55['range'],_0x5c4fed=_0x6dec95['newRange'];null==_0x246039&&null==_0x5c4fed||_0x246039&&_0x5c4fed&&_0x246039['isEqual'](_0x5c4fed)?this['_touchedMarkers']['delete'](_0x6dec95['name']):_0x271f55['userId']=_0x5853e2;}['_handleRootOperation'](_0xabbd47,_0x5af2e8){this['_diffRoots']['has'](_0xabbd47['rootName'])?this['_diffRoots']['get'](_0xabbd47['rootName'])['_isAttached']=_0xabbd47['isAdd']:(this['_diffRoots']['set'](_0xabbd47['rootName'],F(_0xabbd47['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0xabbd47['rootName'],{}),_0x5af2e8&&this['_idsRoots']['set'](_0xabbd47['rootName'],F(_0xabbd47['rootName'],!0x0)));const _0x1157d1=null===_0xabbd47['_authorId']?null:_0xabbd47['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x293b50=this['_touchedRoots']['get'](_0xabbd47['rootName']);_0x293b50&&_0x293b50['userId']===_0x1157d1?this['_touchedRoots']['delete'](_0xabbd47['rootName']):this['_touchedRoots']['set'](_0xabbd47['rootName'],{'userId':_0x1157d1,'isAttached':_0xabbd47['isAdd']});}['_handleRootAttributeOperation'](_0x534b9d){const _0x293677=this['_diffRootsAttributes']['get'](_0x534b9d['root']['rootName']);null===_0x534b9d['newValue']?delete _0x293677[_0x534b9d['key']]:_0x293677[_0x534b9d['key']]=_0x534b9d['newValue'];}}function T(_0x48ff16){const _0x3ce7db=F(_0x48ff16['rootName'],_0x48ff16['isAttached']());for(const _0x282eef of _0x48ff16['getChildren']()){const _0x431e86=_0x282eef['_clone'](!0x0);_0x3ce7db['_appendChild'](_0x431e86);}return _0x3ce7db;}function F(_0x21309c,_0x4b5748=!0x0){const _0x4b5e92=new mt();return _0x4b5e92['rootName']=_0x21309c,_0x4b5e92['_isAttached']=_0x4b5748,_0x4b5e92['isAttached']=()=>_0x4b5e92['_isAttached'],_0x4b5e92;}function B(_0x21f3a1,_0xb28dd,_0x56bdc2){const _0x1f96e6='elementEnd'==_0x21f3a1['type']?_0x56bdc2['createPositionAt'](_0x21f3a1['item'],'end'):_0x56bdc2['createPositionBefore'](_0x21f3a1['item']);return _0x56bdc2['createPositionFromPath'](_0xb28dd,_0x1f96e6['path'],_0x1f96e6['stickiness']);}function J(_0x3b919b,_0x51dfb9,_0x422c06){const _0x58bd2e='elementStart'==_0x3b919b['type']?_0x422c06['createPositionAt'](_0x3b919b['item'],0x0):_0x422c06['createPositionAfter'](_0x3b919b['item']);return _0x422c06['createPositionFromPath'](_0x51dfb9,_0x58bd2e['path'],_0x58bd2e['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x59c9d5,_0xcb2b52){super(_0x59c9d5),this['focusTracker']=new _0x6fccdd(),this['keystrokes']=new _0x116436(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0xcb2b52),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x556ea1(this);}['render'](){super['render'](),_0x25fd76({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x20b366=_0x2b6807=>_0x2b6807['stopPropagation']();this['keystrokes']['set']('arrowright',_0x20b366),this['keystrokes']['set']('arrowleft',_0x20b366),this['keystrokes']['set']('arrowup',_0x20b366),this['keystrokes']['set']('arrowdown',_0x20b366);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0xc5b970){this['revisionNameInputView']['fieldView']['element']['value']=_0xc5b970['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x1dd7f9){const _0x4b2a55=new _0x59fe7f(this['locale'],_0x5a9a2c),_0x50625a=_0x4b2a55['fieldView'];_0x50625a['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x492d7b=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x1dd7f9&&(_0x492d7b+='\x20('+m(this['locale'],'optional')+')'),(_0x4b2a55['label']=_0x492d7b,_0x50625a['on']('input',()=>{this['revisionNameInputValue']=_0x50625a['element']['value']['trim']();}),_0x4b2a55);}}class u extends _0x49d6a4{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x199014=this['editor'],_0x10b6bf=_0x199014['plugins']['get']('RevisionTracker');_0x199014['ui']['componentFactory']['add']('revisionHistory',_0x53f012=>{const _0x2f1ef5=_0x44d4bf(_0x53f012),_0x345e03=_0x2f1ef5['panelView']['children'],_0x114b9e=new _0xb215b9(_0x53f012),_0x3bfeac=new _0x1db01f(_0x53f012),_0x198d6d=new te(_0x53f012),_0xc43e7a=new _0x1db01f(_0x53f012),_0x22b0a9=new te(_0x53f012);return _0x2f1ef5['bind']('isEnabled')['to'](_0x10b6bf,'isReady',_0x10b6bf,'isEnabled',_0x199014,'isReadOnly',(_0x57e4e2,_0x1c3fd7,_0x2ba664)=>_0x57e4e2&&_0x1c3fd7&&!_0x2ba664),_0x2f1ef5['buttonView']['set']({'icon':_0x21b581['history'],'label':m(_0x53f012,'Revision\x20history'),'tooltip':!0x0}),_0x198d6d['set']({'label':m(_0x53f012,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x198d6d['bind']('isEnabled')['to'](_0x10b6bf,'isReady',_0x10b6bf,'isEnabled',_0x199014,'isReadOnly',(_0x1b5dc5,_0x3bd17f,_0x2064e4)=>_0x1b5dc5&&_0x3bd17f&&!_0x2064e4),_0x198d6d['on']('execute',()=>this['_showDialog']()),_0x22b0a9['set']({'label':m(_0x53f012,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x22b0a9['bind']('isEnabled')['to'](_0x10b6bf,'isReady',_0x199014,'isReadOnly',(_0x2476fe,_0x7fea7c)=>_0x2476fe&&!_0x7fea7c),_0x22b0a9['on']('execute',()=>{_0x199014['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x2f1ef5['isOpen']=!0x1,_0x199014['editing']['view']['focus']();}),_0x3bfeac['children']['add'](_0x198d6d),_0xc43e7a['children']['add'](_0x22b0a9),_0x114b9e['role']='menu',_0x114b9e['items']['addMany']([_0x3bfeac,_0xc43e7a]),_0x345e03['add'](_0x114b9e),_0x2f1ef5;}),_0x199014['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x579bdf=this['editor'],_0x2ad061=_0x579bdf['locale'],_0x244865=new _0x3bee6f(_0x2ad061),_0x2fe42f=new _0x27f590(_0x2ad061);_0x244865['buttonView']['set']({'icon':_0x21b581['history'],'label':m(_0x2ad061,'Revision\x20history')});const _0x4ee55e=new _0x5e32c5(_0x2ad061,_0x244865),_0x4ff715=new _0x2ea93a(_0x2ad061);_0x4ff715['set']({'label':m(_0x2ad061,'Save\x20current\x20revision')}),_0x4ff715['delegate']('execute')['to'](_0x244865),_0x4ff715['on']('execute',()=>{this['_showDialog']();}),_0x4ee55e['children']['add'](_0x4ff715),_0x2fe42f['items']['add'](_0x4ee55e);const _0x393cc4=new _0x5e32c5(_0x2ad061,_0x244865),_0x10bd8a=new _0x2ea93a(_0x2ad061);return _0x10bd8a['set']({'label':m(_0x2ad061,'Open\x20revision\x20history')}),_0x10bd8a['delegate']('execute')['to'](_0x244865),_0x10bd8a['on']('execute',()=>{_0x579bdf['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x393cc4['children']['add'](_0x10bd8a),_0x2fe42f['items']['add'](_0x393cc4),_0x244865['panelView']['children']['add'](_0x2fe42f),_0x244865;}['_showDialog'](){const _0x2fc321=this['editor'],_0x312d0d=_0x2fc321['locale'],_0x128f6f=_0x2fc321['plugins']['get']('Dialog'),_0x3b54ec=_0x2fc321['plugins']['get']('RevisionTracker');function _0x2b8bf8(_0x2239ae){_0x2fc321['config']['get']('revisionHistory.requireRevisionName')&&''===_0x2239ae['revisionName']?_0x2239ae['revisionNameInputView']['errorText']=m(_0x312d0d,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x2fc321['plugins']['get'](l)['saveRevision']({'name':_0x2239ae['revisionName']}),_0x128f6f['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x2b8bf8(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x128f6f['show']({'id':'revisionSave','title':m(_0x312d0d,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x2fc321['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x128f6f['hide']()},{'label':m(_0x2fc321['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x19c868){_0x19c868['bind']('isEnabled')['to'](_0x3b54ec,'isReady',_0x3b54ec,'isEnabled',_0x2fc321,'isReadOnly',(_0x448566,_0x3fbe4c,_0x590cb9)=>_0x448566&&_0x3fbe4c&&!_0x590cb9);},'onExecute':()=>_0x2b8bf8(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x23cdee=this['editor'],_0x8ac19f=_0x23cdee['locale'];this['_saveRevisionFormView']=new hs(_0x8ac19f,_0x23cdee['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends ts{['changeId'];['_model'];constructor(_0x53e29d,_0x162af5){super(_0x53e29d),this['_model']=_0x162af5,this['changeId']=_0x162af5['id'];const _0x4aff76=this['bindTemplate'],_0x457610=m(_0x53e29d,_0x162af5['data']['isSuggestion']?'Suggested\x20by':'add'==_0x162af5['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x162af5['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x4aff76['to']('type',_0x47b5ef=>'ck-revision-change__'+_0x47b5ef)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x457610}]},{'text':'\x20'+_0x162af5['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x4cffbd(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x507a8f){super(),this['id']=_0x507a8f['id']||_0x3333c6(),this['author']=_0x507a8f['author'],this['type']=_0x507a8f['type'],this['data']=_0x507a8f['data']||{},this['rootName']=_0x507a8f['rootName'],this['set']('createdAt',_0x507a8f['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(_0x14642f,_0x2e32b7){this['newRevisionId']=_0x14642f,this['oldRevisionId']=_0x2e32b7,this['changes']=new _0x255b68();}['_setChanges'](_0x2c2148){for(const _0x573ade of _0x2c2148)this['changes']['add'](_0x573ade);}}const Y={'c':_0x2783d1,'a':_0x4219a1,'e':_0x55266d,'r':_0x185af8,'u':_0x317dfe};class d extends _0x49d6a4{['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[_0x20f8e3,_0x158026,j];}constructor(_0x374330){super(_0x374330),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',(_0x3480c6,_0x40893b,_0x570bc3)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x1b157f=>{for(const _0x3c50c7 of this['editor']['editing']['view']['document']['roots'])_0x570bc3?_0x1b157f['removeClass']('ck-editor__editable__overlay',_0x3c50c7):_0x1b157f['addClass']('ck-editor__editable__overlay',_0x3c50c7);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x23d30f=>null!==_0x23d30f),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x9520ac,_0x446d73,_0x796838)=>_0x9520ac&&_0x796838?_0x446d73['changes']['getIndex'](_0x796838):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x1eb47a,_0x3f830b)=>_0x1eb47a?_0x3f830b['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x158026);}['init'](){const _0x5b3767=this['editor'],_0x290ea4=new _t(_0x5b3767,{'direction':'backward'}),_0x2f3583=new _t(_0x5b3767,{'direction':'forward'});(_0x5b3767['commands']['add']('showPreviousChange',_0x290ea4),_0x5b3767['commands']['add']('showNextChange',_0x2f3583),_0x5b3767['commands']['add']('restoreRevision',new pt(_0x5b3767)),this['on']('change:numberOfChanges',()=>{_0x290ea4['refresh'](),_0x2f3583['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x5b3767['enableReadOnlyMode']('revision-viewer'),_0x5b3767['plugins']['has']('WidgetToolbarRepository'))&&_0x5b3767['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x9433c8){await this['loadRevisionData'](_0x9433c8);const _0x5b2a37={};for(const _0x326dce in _0x9433c8['diffData']){if(_0x9433c8['diffData'][_0x326dce]['attachChange']&&!_0x9433c8['diffData'][_0x326dce]['attachChange']['isAttached'])continue;const _0x5f0273=this['_removeRevisionMarkers'](JSON['parse'](_0x9433c8['diffData'][_0x326dce]['insertions'])),_0x51eedc=this['editor']['editing']['view']['document'],_0x59f654=new _0x5353f1(_0x51eedc,_0x5f0273['map'](_0x3c1bf1=>this['_getViewObj'](_0x3c1bf1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x5b2a37[_0x326dce]=this['editor']['data']['processor']['toData'](_0x59f654),this['editor']['data']['processor']['useFillerType']('default');}return _0x5b2a37;}async['getRevisionRootsAttributes'](_0x36c024){await this['loadRevisionData'](_0x36c024);const _0x1f8755={};for(const _0x138918 in _0x36c024['diffData'])_0x36c024['diffData'][_0x138918]['attachChange']&&!_0x36c024['diffData'][_0x138918]['attachChange']['isAttached']||(_0x1f8755[_0x138918]=_0x36c024['diffData'][_0x138918]['attributesAfter']||{});return _0x1f8755;}['_removeRevisionMarkers'](_0x4f8001){return(_0x4f8001=_0x4f8001['filter'](_0x47b062=>!_0x47b062['name']||'revision-start'!==_0x47b062['name']&&'revision-end'!==_0x47b062['name']))['forEach'](_0x264449=>{'string'!=typeof _0x264449&&(_0x264449['children']=this['_removeRevisionMarkers'](_0x264449['children']),_0x264449['attributes']=_0x264449['attributes']['filter'](_0x179ebb=>!_0x179ebb[0x0]['startsWith']('data-revision-')));}),_0x4f8001;}async['compare'](_0x7332ad,_0x23c9ad,_0x3e5b04=!0x1){if(!this['isEnabled'])return;const _0x680eb8=this['diff'],_0x3ebb4a=this['repository'],_0x1104e6='string'==typeof _0x7332ad?_0x3ebb4a['getRevision'](_0x7332ad):_0x7332ad,_0x299e96='string'==typeof _0x23c9ad?_0x3ebb4a['getRevision'](_0x23c9ad):_0x23c9ad,_0x148710=_0x1104e6['id'],_0x2e2b36=_0x299e96?_0x299e96['id']:null;if(!_0x3e5b04&&this['diff']&&this['diff']['newRevisionId']===_0x148710&&this['diff']['oldRevisionId']===_0x2e2b36)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x148710,_0x2e2b36);const _0x5b2d44=this['_getRevisionsRange'](_0x1104e6,_0x299e96,!0x0)['map'](_0x2d2f36=>this['loadRevisionData'](_0x2d2f36));return _0x5b2d44['push'](new Promise(_0x4bf67b=>{setTimeout(_0x4bf67b,0x14);})),Promise['all'](_0x5b2d44)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x362f12=this['_getDiff'](_0x148710,_0x2e2b36);for(const _0x5f21c8 of _0x362f12['changes'])this['_changeIdToChange']['set'](_0x5f21c8['id'],_0x5f21c8);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x4cc3b0=>{for(const _0x469fb4 of this['editor']['model']['document']['getRootNames']())_0x4cc3b0['detachRoot'](_0x469fb4);for(const _0x72459a of Object['keys'](_0x362f12['model'])){const _0x4e0b75=_0x4cc3b0['addRoot'](_0x72459a);for(const _0x2f6f1f of Object['keys'](_0x362f12['attributes'][_0x72459a]))_0x4cc3b0['setAttribute'](_0x2f6f1f,_0x362f12['attributes'][_0x72459a][_0x2f6f1f],_0x4e0b75);_0x4cc3b0['insert'](_0x362f12['model'][_0x72459a],_0x4e0b75,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x362f12['changes'])),this['isReady']=!0x0;})['catch'](_0x2d4577=>{console['error'](_0x2d4577),this['_cleanUp'](),_0x680eb8&&(this['diff']=_0x680eb8),this['isReady']=!0x0;});}['addRevisionData'](_0x5d7e89,_0x5d28fc){const _0x29cfb0=this['repository']['createRevision'](_0x5d7e89);return _0x29cfb0['on']('_update',(_0x421325,_0x1ac9ad,_0x3da847)=>_0x5d28fc(_0x1ac9ad,_0x3da847,_0x29cfb0)),this['repository']['addRevision'](_0x29cfb0),_0x29cfb0;}['loadRevisionData'](_0x1704a4){if(!_0x1704a4||_0x1704a4['diffData'])return Promise['resolve']();{const _0x58928f=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x58928f,'revisionId':_0x1704a4['id']})['then'](_0x569ade=>{_0x1704a4['_update']({'diffData':_0x569ade['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},_0x7cfae5=>{for(const _0x322efa of this['editor']['model']['document']['getRootNames']())_0x7cfae5['detachRoot'](_0x322efa);});}['_sortAndFilterDiffChanges'](_0x232310){const _0xd42bac=[],_0xa142ac=new Map();for(const _0x149358 of this['editor']['model']['document']['getRootNames']()){const _0x2aa754=this['editor']['editing']['view']['getDomRoot'](_0x149358);if(!_0x2aa754)continue;const _0x4d35bd=_0x2aa754['getClientRects']()['item'](0x0);_0x4d35bd&&(_0xd42bac['push'](_0x149358),_0xa142ac['set'](_0x149358,_0x4d35bd));}return _0xd42bac['sort']((_0x24bfdc,_0x15c9bd)=>{const _0x2b384d=_0xa142ac['get'](_0x24bfdc),_0x493275=_0xa142ac['get'](_0x15c9bd);return _0x2b384d['y']-_0x493275['y']||_0x2b384d['x']-_0x493275['x'];}),(_0x232310=_0x232310['filter'](_0x57ac69=>_0xd42bac['includes'](_0x57ac69['rootName'])))['sort']((_0x3ffb06,_0x2ce35b)=>_0xd42bac['indexOf'](_0x3ffb06['rootName'])-_0xd42bac['indexOf'](_0x2ce35b['rootName'])),_0x232310;}['_makeTape'](_0x11d711){const _0x53b88d=Array['from'](_0x11d711['markers'])['filter'](([_0x23855f,_0x5b0b0f])=>_0x23855f['startsWith']('revision:')&&!_0x5b0b0f['isCollapsed']),_0x4bdf35=Array['from'](this['editor']['model']['createRangeIn'](_0x11d711)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x53b88d['length'])for(const _0x15e795 of _0x4bdf35){const [_0x4b3678,_0x144e45]=_0x53b88d[0x0],[,_0x4b364d,_0x3a368d]=_0x4b3678['split'](':');if(_0x144e45['end']['isEqual'](_0x15e795['nextPosition'])&&_0x53b88d['shift'](),(_0x15e795['previousPosition']['isEqual'](_0x144e45['start'])||_0x15e795['previousPosition']['isAfter'](_0x144e45['start']))&&('insertion'==_0x4b364d?_0x15e795['isAdded']={'userId':_0x3a368d}:'deletion'==_0x4b364d&&(_0x15e795['isRemoved']={'userId':_0x3a368d})),0x0==_0x53b88d['length'])break;}return _0x4bdf35;}['_refreshStartEndIndex'](_0x6e64c8){const _0x1776f3=new Map();for(let _0x4c98b0=0x0;_0x4c98b0<_0x6e64c8['length'];_0x4c98b0++)'text'===_0x6e64c8[_0x4c98b0]['type']?(_0x6e64c8[_0x4c98b0]['item']['startIndex']=_0x4c98b0,_0x6e64c8[_0x4c98b0]['item']['endIndex']=_0x4c98b0):('elementStart'===_0x6e64c8[_0x4c98b0]['type']?_0x6e64c8[_0x4c98b0]['item']['startIndex']=_0x4c98b0:'elementEnd'===_0x6e64c8[_0x4c98b0]['type']&&(_0x6e64c8[_0x4c98b0]['item']['endIndex']=_0x4c98b0),_0x1776f3['set'](_0x6e64c8[_0x4c98b0]['id'],_0x4c98b0));for(const _0x241f9d of _0x1776f3['values']())'elementStart'===_0x6e64c8[_0x241f9d]['type']?_0x6e64c8[_0x241f9d]['item']['endIndex']=_0x1776f3['get'](_0x6e64c8[_0x241f9d]['pairId']):'elementEnd'===_0x6e64c8[_0x241f9d]['type']&&(_0x6e64c8[_0x241f9d]['item']['startIndex']=_0x1776f3['get'](_0x6e64c8[_0x241f9d]['pairId']));}['_processTape'](_0x22220f){for(let _0x32fe6c=0x0;_0x32fe6c<_0x22220f['length'];_0x32fe6c++){if('elementStart'===_0x22220f[_0x32fe6c]['type'])_0x22220f[_0x32fe6c]['item']['startIndex']=_0x32fe6c;else{if('elementEnd'===_0x22220f[_0x32fe6c]['type']){_0x22220f[_0x32fe6c]['item']['endIndex']=_0x32fe6c;const _0x5122f7=_0x22220f[_0x32fe6c]['item']['startIndex'];_0x22220f[_0x5122f7]['pairId']=_0x22220f[_0x32fe6c]['id'],_0x22220f[_0x32fe6c]['pairId']=_0x22220f[_0x5122f7]['id'];}else _0x22220f[_0x32fe6c]['item']['startIndex']=_0x32fe6c,_0x22220f[_0x32fe6c]['item']['endIndex']=_0x32fe6c,_0x22220f[_0x32fe6c]['pairId']=null;}_0x22220f[_0x32fe6c]['markersStart']||(_0x22220f[_0x32fe6c]['markersStart']=[],_0x22220f[_0x32fe6c]['markersEnd']=[]);}}['_markInsertions'](_0x34739b,_0x5ee5ce){const _0x25326b=_0x34739b['filter'](_0x479e9f=>!_0x479e9f['isAdded']);for(let _0x4b25a9=0x0;_0x4b25a9<_0x5ee5ce['length'];_0x4b25a9++)_0x5ee5ce[_0x4b25a9]['isAdded']&&(_0x25326b[_0x4b25a9]['isAdded']=_0x5ee5ce[_0x4b25a9]['isAdded']);}['_makeModelFromViewString'](_0x3a15f5){const _0x24b2fa=JSON['parse'](_0x3a15f5),_0x553691=this['editor']['editing']['view']['document'],_0x108c2d=new _0x5353f1(_0x553691,_0x24b2fa['map'](_0x4f26f4=>this['_getViewObj'](_0x4f26f4)));return this['editor']['data']['toModel'](_0x108c2d);}['_getViewObj'](_0x1057fd){const _0x20d1c8=this['editor']['editing']['view']['document'];if('string'==typeof _0x1057fd)return new _0x4a5bd6(_0x20d1c8,_0x1057fd);{const _0x479e11=_0x1057fd['children']['map'](_0x1de118=>this['_getViewObj'](_0x1de118));return new(Y[_0x1057fd['type']]||_0x1a180c)(_0x20d1c8,_0x1057fd['name'],_0x1057fd['attributes'],_0x479e11);}}['_getDiff'](_0x4f713c,_0x157f9a=null){const _0x39ff80=this['repository']['getRevision'](_0x4f713c),_0x22a34e=_0x157f9a?this['repository']['getRevision'](_0x157f9a):null,_0x2e61d2=this['_getRevisionsRange'](_0x39ff80,_0x22a34e),_0x5cc711=_0x2e61d2[_0x2e61d2['length']-0x1],_0x3bf195=new Map(),_0x5345db={'model':{},'attributes':{},'changes':[]},_0x28a121=new Set(),_0x4ba210=new Map();for(let _0x4dfc31=_0x2e61d2['length']-0x1;_0x4dfc31>=0x0;_0x4dfc31--){const _0x3dcd14=_0x2e61d2[_0x4dfc31];for(const _0x484f94 of Object['keys'](_0x3dcd14['diffData']))if(_0x3dcd14['diffData'][_0x484f94]['attachChange']){const _0x168346=_0x3dcd14['diffData'][_0x484f94]['attachChange'];_0x168346['isAttached']?(_0x28a121['add'](_0x484f94),_0x4ba210['has'](_0x484f94)&&_0x4ba210['get'](_0x484f94)['userId']==_0x168346['userId']?_0x4ba210['delete'](_0x484f94):_0x4ba210['set'](_0x484f94,_0x168346)):_0x4ba210['has'](_0x484f94)?(_0x28a121['delete'](_0x484f94),_0x4ba210['delete'](_0x484f94)):(_0x28a121['add'](_0x484f94),_0x4ba210['set'](_0x484f94,_0x168346));}else _0x28a121['add'](_0x484f94);}for(const _0x1857c0 of _0x28a121){const _0x232b1a=_0x4ba210['has'](_0x1857c0)&&!_0x4ba210['get'](_0x1857c0)['isAttached'];let _0x3e97fa=_0x232b1a?_0x2e61d2['length']-0x1:0x0;const _0x4fe86d=_0x232b1a?-0x1:0x1;for(;_0x2e61d2[_0x3e97fa];){const _0x2d5581=_0x2e61d2[_0x3e97fa];if(_0x2d5581['diffData'][_0x1857c0]){const _0x16f3f9=_0x232b1a?_0x2d5581['diffData'][_0x1857c0]['attributesBefore']:_0x2d5581['diffData'][_0x1857c0]['attributesAfter'];_0x5345db['attributes'][_0x1857c0]=_0x16f3f9?_0x46c91b(_0x16f3f9):{};break;}_0x3e97fa+=_0x4fe86d;}}for(const _0x42facc of _0x2e61d2){_0x42facc['model']={};for(const _0x136590 of _0x42facc['authors'])_0x3bf195['set'](_0x136590['id'],_0x136590);for(const _0x45d23c of _0x28a121){const _0x576fc0=_0x42facc['diffData'][_0x45d23c]?_0x42facc['diffData'][_0x45d23c]['insertions']:'[]',_0x1fcb2b=_0x42facc['diffData'][_0x45d23c]?_0x42facc['diffData'][_0x45d23c]['deletions']:'[]';_0x42facc['model'][_0x45d23c]={'insertions':this['_makeModelFromViewString'](_0x576fc0),'deletions':this['_makeModelFromViewString'](_0x1fcb2b)};}}for(const _0x2cd99b of _0x28a121){let _0xbcfc8f=null,_0x406f4f=0x0;const _0x5de216=new Map(Array['from'](_0x39ff80['model'][_0x2cd99b]['insertions']['markers'])['filter'](([_0x51ac45])=>!_0x51ac45['startsWith']('revision:')));let _0x4264de=0x0;for(const _0x3c27b2 of _0x2e61d2){const _0x118b48=this['_makeTape'](_0x3c27b2['model'][_0x2cd99b]['insertions']);_0x3c27b2==_0x39ff80?(_0xbcfc8f=_0x118b48,_0x406f4f=_0xbcfc8f['length'],_0xbcfc8f['forEach'](_0x54c416=>{_0x54c416['id']=_0x4264de++;}),this['_processTape'](_0xbcfc8f)):this['_markInsertions'](_0xbcfc8f,_0x118b48);const _0x6e974a=_0xbcfc8f['filter'](_0x33147b=>!_0x33147b['isAdded'])['map'](_0x124f12=>_0x124f12['id']);let _0x4d6982=0x0;const _0x1ccf95=this['_makeTape'](_0x3c27b2['model'][_0x2cd99b]['deletions']);_0x1ccf95['forEach'](_0x5b0003=>{_0x5b0003['isRemoved']?_0x5b0003['id']=_0x406f4f++:_0x5b0003['id']=_0x6e974a[_0x4d6982++];}),this['_processTape'](_0x1ccf95),this['_setDistance'](_0xbcfc8f,'isAdded'),this['_setDistance'](_0x1ccf95,'isRemoved'),_0x3c27b2==_0x39ff80&&this['_markMarkers'](_0xbcfc8f,_0x5de216),_0xbcfc8f=this['_joinTapes'](_0xbcfc8f,_0x1ccf95),this['_refreshStartEndIndex'](_0xbcfc8f),this['_setDistance'](_0xbcfc8f,'isRemoved');}_0xbcfc8f=_0xbcfc8f['filter'](_0x20ac2e=>!(_0x20ac2e['isAdded']&&_0x20ac2e['isRemoved']));const _0x4e9ef8=new Map(_0x5cc711['model'][_0x2cd99b]['deletions']['markers']),_0x2d288b=new Set(_0x5de216['keys']());for(const _0x1bcbac of _0x4e9ef8['keys']())_0x2d288b['delete'](_0x1bcbac);this['_markSuggestions'](_0xbcfc8f,_0x2d288b),this['_fixObsoleteTags'](_0xbcfc8f),_0xbcfc8f=this['_removeMissingPairs'](_0xbcfc8f),_0xbcfc8f=this['_markMismatchedRemovedTags'](_0xbcfc8f),_0xbcfc8f=this['_removeUnsupportedChanges'](_0xbcfc8f);const {root:_0x1b2922,changes:_0x150f14}=this['_makeModelFromTape'](_0xbcfc8f,_0x3bf195,_0x2cd99b);_0x5345db['model'][_0x2cd99b]=_0x1b2922;const _0xa456fd=_0x4ba210['get'](_0x2cd99b);if(_0xa456fd){const _0x5e33f6=_0x3bf195['get'](_0xa456fd['userId']),_0x1a4df7=new r({'author':_0x5e33f6,'type':_0xa456fd['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2cd99b});_0x150f14['unshift'](_0x1a4df7),_0x5345db['attributes'][_0x2cd99b]['revisionHistoryAttachChange']=_0x1a4df7['id'];}_0x5345db['changes']=_0x5345db['changes']['concat'](_0x150f14);}return _0x5345db;}['_markMarkers'](_0x3acdbf,_0x47db04){for(let _0x1bf29d=0x0;_0x1bf29d<_0x3acdbf['length'];_0x1bf29d++)for(const [_0x2d429f,_0x13af73]of _0x47db04)_0x13af73['start']['isEqual'](_0x3acdbf[_0x1bf29d]['previousPosition'])&&_0x3acdbf[_0x1bf29d]['markersStart']['push'](_0x2d429f),_0x13af73['end']['isEqual'](_0x3acdbf[_0x1bf29d]['nextPosition'])&&_0x3acdbf[_0x1bf29d]['markersEnd']['push'](_0x2d429f);}['_joinTapes'](_0x145c27,_0x4c0219){let _0x4c0696=[],_0x3611bd=0x0,_0x141dd1=0x0;for(;_0x3611bd<_0x145c27['length']||_0x141dd1<_0x4c0219['length'];){const _0x3fc2b7=_0x145c27[_0x3611bd]||{},_0x5c3e46=_0x4c0219[_0x141dd1]||{};if(_0x3fc2b7['id']==_0x5c3e46['id'])_0x3611bd++,_0x141dd1++,_0x4c0696['push'](_0x3fc2b7);else{if(_0x5c3e46['isRemoved']&&_0x3fc2b7['isAdded']){const {commonTape:_0x38ea58,iEnd:_0x1f8624,jEnd:_0xe19343}=this['_threeWayMerge'](_0x145c27,_0x3611bd,_0x4c0219,_0x141dd1);_0x4c0696=_0x4c0696['concat'](_0x38ea58),_0x3611bd=_0x1f8624,_0x141dd1=_0xe19343;}else _0x5c3e46['isRemoved']?(_0x141dd1++,_0x4c0696['push'](_0x5c3e46)):(_0x3611bd++,_0x4c0696['push'](_0x3fc2b7));}}return _0x4c0696;}['_markSuggestions'](_0x60c9f2,_0x4c2b73){const _0x2215df=[];for(let _0xc896ff=0x0;_0xc896ff<_0x60c9f2['length'];_0xc896ff++){for(let _0x1434ac=0x0;_0x1434ac<_0x60c9f2[_0xc896ff]['markersStart']['length'];_0x1434ac++){const _0xa37da7=_0x60c9f2[_0xc896ff]['markersStart'][_0x1434ac];if(!_0x4c2b73['has'](_0xa37da7))continue;const {group:_0x2c4776,type:_0xb7f2dc,authorId:_0x56c161}=_0x28839d(_0xa37da7);'revision-suggestion'!=_0x2c4776||'insertion'!=_0xb7f2dc&&'deletion'!=_0xb7f2dc||(_0x2215df['unshift']({'type':_0xb7f2dc,'name':_0xa37da7,'userId':_0x56c161}),_0x60c9f2[_0xc896ff]['markersStart']['splice'](_0x1434ac,0x1),_0x1434ac--);}_0x26ca35(_0x60c9f2[_0xc896ff]);for(let _0x2caace=0x0;_0x2caace<_0x60c9f2[_0xc896ff]['markersEnd']['length'];_0x2caace++){const _0xb0530c=_0x60c9f2[_0xc896ff]['markersEnd'][_0x2caace];if(!_0x4c2b73['has'](_0xb0530c))continue;const {group:_0xd52fb8,type:_0x1864a2}=_0x28839d(_0xb0530c);if('revision-suggestion'!=_0xd52fb8||'insertion'!=_0x1864a2&&'deletion'!=_0x1864a2)continue;_0x60c9f2[_0xc896ff]['markersEnd']['splice'](_0x2caace,0x1),_0x2caace--;const _0x4741b5=_0x2215df['findIndex'](_0x3c432b=>_0x3c432b['name']==_0xb0530c);_0x4741b5>-0x1&&_0x2215df['splice'](_0x4741b5,0x1);}}function _0x28839d(_0x8a5ed0){const _0x5bc38e=_0x8a5ed0['split'](':');return{'group':_0x5bc38e[0x0],'type':_0x5bc38e[0x1],'subType':_0x5bc38e['length']>=0x5?_0x5bc38e[0x2]:null,'id':_0x5bc38e['length']<0x5?_0x5bc38e[0x2]:_0x5bc38e[0x3],'authorId':_0x5bc38e['length']<0x5?_0x5bc38e[0x3]:_0x5bc38e[0x4],'markerCount':0x6==_0x5bc38e['length']?_0x5bc38e[0x5]:null};}function _0x26ca35(_0x290b4a){for(let _0x300766=0x0;_0x300766<_0x2215df['length'];_0x300766++){if(_0x290b4a['isAdded']&&'insertion'==_0x2215df[_0x300766]['type'])return _0x290b4a['isAddSuggestion']=_0x2215df[_0x300766],void delete _0x290b4a['isAdded'];if(!_0x290b4a['isAdded']&&!_0x290b4a['isRemoved']&&'deletion'==_0x2215df[_0x300766]['type'])return void(_0x290b4a['isRemoveSuggestion']=_0x2215df[_0x300766]);}}}['_setDistance'](_0x41e5f8,_0x158f0d){let _0x1b7e03=0x0,_0x453086=!0x1;const _0x46cfad=new Map();for(const _0x2fa247 of _0x41e5f8)_0x2fa247[_0x158f0d]?_0x453086&&(_0x1b7e03++,_0x453086=!0x1):(_0x1b7e03++,_0x453086=!0x0),_0x46cfad['set'](_0x2fa247['id'],_0x1b7e03);for(let _0x1bce64=0x0;_0x1bce64<_0x41e5f8['length'];_0x1bce64++){if('isRemoved'==_0x158f0d&&_0x41e5f8[_0x1bce64]['isAdded']||'isAdded'==_0x158f0d&&_0x41e5f8[_0x1bce64]['isRemoved'])continue;if('text'==_0x41e5f8[_0x1bce64]['type']){_0x41e5f8[_0x1bce64]['distance']=0x0;continue;}const _0x2d13cd=_0x46cfad['get'](_0x41e5f8[_0x1bce64]['pairId']),_0x5def83=_0x46cfad['get'](_0x41e5f8[_0x1bce64]['id']);_0x41e5f8[_0x1bce64]['distance']=_0x2d13cd-_0x5def83;}}['_getRevisionsRange'](_0x1f7d1c,_0x58ebe1,_0x30861b=!0x1){const _0x1ef1ae=[];let _0x145b56=this['repository']['getIndex'](_0x1f7d1c),_0x4c1f9f=this['repository']['getIndex'](_0x58ebe1);for(-0x1==_0x4c1f9f&&(_0x4c1f9f=this['repository']['_revisions']['length'],_0x30861b=!0x1);_0x145b56<_0x4c1f9f;)_0x1ef1ae['push'](this['repository']['getRevision'](_0x145b56)),_0x145b56++;return _0x30861b&&_0x1ef1ae['push'](this['repository']['getRevision'](_0x145b56)),_0x1ef1ae;}['_threeWayMerge'](_0x37ec0f,_0x19dbe7,_0x34d0fc,_0x50b975){const _0x4dc869=this['editor']['model']['schema'];let _0x28248a=_0x19dbe7;for(;_0x37ec0f[_0x28248a]&&_0x37ec0f[_0x28248a]['isAdded'];)_0x28248a++;let _0x4f2fbf=_0x50b975;for(;_0x34d0fc[_0x4f2fbf]&&_0x34d0fc[_0x4f2fbf]['isRemoved'];)_0x4f2fbf++;_0x4791a3(_0x37ec0f,_0x19dbe7,_0x28248a),_0x4791a3(_0x34d0fc,_0x50b975,_0x4f2fbf);const _0x4371df=_0x34d0fc['slice'](_0x50b975,_0x4f2fbf)['concat'](_0x37ec0f['slice'](_0x19dbe7,_0x28248a));return _0x4371df['sort']((_0x5d6356,_0x546000)=>_0x5d6356['side']!=_0x546000['side']?_0x5d6356['side']-_0x546000['side']:_0x5d6356['level']!=_0x546000['level']?_0x5d6356['level']-_0x546000['level']:_0x5d6356['distance']!=_0x546000['distance']?_0x546000['distance']-_0x5d6356['distance']:!!_0x5d6356['isAdded']!=!!_0x546000['isAdded']?-0x1==_0x5d6356['side']||0x0==_0x5d6356['side']?_0x5d6356['isAdded']?-0x1:0x1:_0x5d6356['isAdded']?0x1:-0x1:_0x5d6356['index']-_0x546000['index']),{'commonTape':_0x4371df,'iEnd':_0x28248a,'jEnd':_0x4f2fbf};function _0x4791a3(_0x1bf888,_0x4abe5a,_0x51bccd){let _0x339972=-0x1,_0x1b1e34=Number['POSITIVE_INFINITY'],_0x4dba0c=!0x0;for(let _0xae71c4=_0x4abe5a;_0xae71c4<_0x51bccd;_0xae71c4++)if(_0x4dc869['isInline'](_0x1bf888[_0xae71c4]['item'])||(_0x4dba0c=!0x1),_0x1bf888[_0xae71c4]['item']['startIndex']<_0x4abe5a&&(_0x339972=_0xae71c4),_0x1bf888[_0xae71c4]['item']['endIndex']>=_0x51bccd){_0x1b1e34=_0xae71c4;break;}_0x4dba0c&&(_0x339972=_0x51bccd-0x1);for(let _0x308795=_0x4abe5a;_0x308795<_0x51bccd;_0x308795++)_0x1bf888[_0x308795]['side']=_0x308795<=_0x339972?-0x1:_0x308795<_0x1b1e34?0x0:0x1,_0x1bf888[_0x308795]['index']=_0x308795;let _0x42cd0a=0x0;for(let _0xa2b634=_0x4abe5a;_0xa2b634<=_0x339972;_0xa2b634++)0x0==_0x1bf888[_0xa2b634]['distance']?_0x1bf888[_0xa2b634]['level']=_0x42cd0a:(_0x42cd0a++,_0x1bf888[_0xa2b634]['level']=_0x42cd0a,_0x42cd0a++);for(let _0x88fb2d=_0x4abe5a;_0x88fb2d<_0x51bccd;_0x88fb2d++)0x0==_0x1bf888[_0x88fb2d]['side']&&(_0x1bf888[_0x88fb2d]['level']=_0x42cd0a);_0x42cd0a=0x0;for(let _0x3182f7=_0x51bccd-0x1;_0x3182f7>=_0x1b1e34;_0x3182f7--)0x0==_0x1bf888[_0x3182f7]['distance']?_0x1bf888[_0x3182f7]['level']=_0x42cd0a:(_0x42cd0a--,_0x1bf888[_0x3182f7]['level']=_0x42cd0a,_0x42cd0a--);}}['_fixObsoleteTags'](_0x49f45e){const _0x36d362=new Map(),_0x3a164d=this['editor']['model']['schema'];for(let _0x330cb2=0x1;_0x330cb2<_0x49f45e['length'];_0x330cb2++){let _0x58397e,_0x2d6e00,_0x13b524;const _0x439ffb=_0x49f45e[_0x330cb2],_0x2cc8ba=_0x49f45e[_0x330cb2-0x1];if('text'==_0x439ffb['type'])continue;if(_0x439ffb['type']!=_0x2cc8ba['type'])continue;if(!_0x3a164d['isBlock'](_0x2cc8ba['item'])||_0x3a164d['isLimit'](_0x2cc8ba['item']))continue;if(!_0x3a164d['isBlock'](_0x439ffb['item'])||_0x3a164d['isLimit'](_0x439ffb['item']))continue;if((_0x49f45e[_0x330cb2]['isAdded']||_0x49f45e[_0x330cb2]['isAddSuggestion'])&&_0x49f45e[_0x330cb2-0x1]['isRemoved'])_0x58397e=_0x49f45e[_0x330cb2],_0x2d6e00=_0x49f45e[_0x330cb2-0x1],_0x13b524=_0x330cb2-0x1;else{if(!_0x49f45e[_0x330cb2]['isRemoved']||!_0x49f45e[_0x330cb2-0x1]['isAdded']&&!_0x49f45e[_0x330cb2-0x1]['isAddSuggestion'])continue;_0x58397e=_0x49f45e[_0x330cb2-0x1],_0x2d6e00=_0x49f45e[_0x330cb2],_0x13b524=_0x330cb2;}const _0x4970eb=_0x58397e['level']==_0x2d6e00['level'],_0x29d5ac=Math['abs'](_0x58397e['level'])<Math['abs'](_0x2d6e00['level'])&&0x0==_0x2d6e00['distance'];(_0x4970eb||_0x29d5ac)&&(_0x36d362['set'](_0x2d6e00['id'],_0x58397e['id']),_0x49f45e['splice'](_0x13b524,0x1),_0x330cb2--,_0x58397e['isAdded']=!0x1);}for(let _0x3d41e1=0x0;_0x3d41e1<_0x49f45e['length'];_0x3d41e1++)_0x36d362['has'](_0x49f45e[_0x3d41e1]['pairId'])&&(_0x49f45e[_0x3d41e1]['pairId']=_0x36d362['get'](_0x49f45e[_0x3d41e1]['pairId']));}['_removeMissingPairs'](_0x25b021){const _0x42a909=new Set(_0x25b021['map'](_0x4c7338=>_0x4c7338['id']));for(let _0x5876f2=0x0;_0x5876f2<_0x25b021['length'];_0x5876f2++)_0x42a909['has'](_0x25b021[_0x5876f2]['pairId'])||0x0==_0x25b021[_0x5876f2]['distance']||(_0x25b021[_0x5876f2]['isIncorrect']=!0x0);return _0x25b021['filter'](_0x15d672=>!_0x15d672['isIncorrect']);}['_markMismatchedRemovedTags'](_0xdabad0){const _0x43e55e=new Set();for(let _0x2c1fb0=0x0;_0x2c1fb0<_0xdabad0['length'];_0x2c1fb0++){if(_0x43e55e['has'](_0xdabad0[_0x2c1fb0]['id'])&&_0xdabad0[_0x2c1fb0]['isRemoved']&&(_0xdabad0[_0x2c1fb0]['isIncorrect']=!0x0),_0xdabad0[_0x2c1fb0]['isIncorrect'])continue;if(0x0==_0xdabad0[_0x2c1fb0]['distance'])continue;if('elementStart'!=_0xdabad0[_0x2c1fb0]['type'])continue;if(null==_0xdabad0[_0x2c1fb0]['pairId'])continue;let _0x24712e=_0x2c1fb0+0x1,_0x2dcdfc=0x0;for(;_0xdabad0[_0x24712e]['id']!=_0xdabad0[_0x2c1fb0]['pairId'];)'elementStart'==_0xdabad0[_0x24712e]['type']?_0x2dcdfc++:'elementEnd'==_0xdabad0[_0x24712e]['type']&&_0x2dcdfc--,_0x24712e++;if(0x0!=_0x2dcdfc){if(_0xdabad0[_0x2c1fb0]['isRemoved'])_0xdabad0[_0x2c1fb0]['isIncorrect']=!0x0;else{for(;_0x24712e!=_0x2c1fb0;)_0xdabad0[_0x24712e]['isRemoved']&&0x0!=_0xdabad0[_0x24712e]['distance']&&(_0xdabad0[_0x24712e]['isIncorrect']=!0x0,_0x43e55e['add'](_0xdabad0[_0x24712e]['pairId'])),_0x24712e--;}}}return _0xdabad0['filter'](_0x3f3bcd=>!_0x3f3bcd['isIncorrect']);}['_removeUnsupportedChanges'](_0x582ee2){const _0x54e0ed=this['editor']['model']['schema'];for(let _0x20f5fe=0x0;_0x20f5fe<_0x582ee2['length'];_0x20f5fe++){if(!(_0x582ee2[_0x20f5fe]['isAdded']||_0x582ee2[_0x20f5fe]['isAddSuggestion']||_0x582ee2[_0x20f5fe]['isRemoved']||_0x582ee2[_0x20f5fe]['isRemoveSuggestion']))continue;if(0x0==_0x582ee2[_0x20f5fe]['distance'])continue;const _0x23a0e9=_0x582ee2[_0x20f5fe]['item'];_0x54e0ed['isBlock'](_0x23a0e9)||_0x54e0ed['isLimit'](_0x23a0e9)||(_0x582ee2[_0x20f5fe]['isAdded']&&delete _0x582ee2[_0x20f5fe]['isAdded'],_0x582ee2[_0x20f5fe]['isAddSuggestion']&&delete _0x582ee2[_0x20f5fe]['isAddSuggestion'],_0x582ee2[_0x20f5fe]['isRemoveSuggestion']&&delete _0x582ee2[_0x20f5fe]['isRemoveSuggestion'],_0x582ee2[_0x20f5fe]['isRemoved']&&(_0x582ee2[_0x20f5fe]['isIncorrect']=!0x0));}return _0x582ee2['filter'](_0xd988e3=>!_0xd988e3['isIncorrect']);}['_makeModelFromTape'](_0x1f9849,_0x10cd42,_0xe9928b){const _0x47356a=new mt(),_0x13ac81=[],_0x30cd28=new Map(),_0x560b5e=this['editor']['model'],_0x3cf8cb=_0x560b5e['schema'],_0x112a11=[_0x47356a],_0x423309={},_0x19132b={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xc14b81=null;const _0x4c7e84=[0x0];for(let _0x143272=0x0;_0x143272<_0x1f9849['length'];_0x143272++)if('elementStart'===_0x1f9849[_0x143272]['type']){_0x1f9849[_0x143272]['previousPosition']=_0x560b5e['createPositionFromPath'](_0x47356a,_0x4c7e84);const _0x53a013=new ft(_0x1f9849[_0x143272]['item']['name'],_0x1f9849[_0x143272]['item']['getAttributes']());_0x112a11[0x0]['_appendChild'](_0x53a013),_0x4c7e84['push'](0x0),_0x112a11['unshift'](_0x53a013),_0x1f9849[_0x143272]['nextPosition']=_0x560b5e['createPositionFromPath'](_0x47356a,_0x4c7e84);}else'elementEnd'===_0x1f9849[_0x143272]['type']?(_0x112a11['shift'](),_0x1f9849[_0x143272]['previousPosition']=_0x560b5e['createPositionFromPath'](_0x47356a,_0x4c7e84),_0x4c7e84['pop'](),_0x4c7e84[_0x4c7e84['length']-0x1]++,_0x1f9849[_0x143272]['nextPosition']=_0x560b5e['createPositionFromPath'](_0x47356a,_0x4c7e84)):(_0x1f9849[_0x143272]['previousPosition']=_0x560b5e['createPositionFromPath'](_0x47356a,_0x4c7e84),_0xc14b81?_0xc14b81['_data']+=_0x1f9849[_0x143272]['item']['data']:_0xc14b81=new wt(_0x1f9849[_0x143272]['item']['data'],_0x1f9849[_0x143272]['item']['getAttributes']()),_0x1f9849[_0x143272+0x1]&&'text'===_0x1f9849[_0x143272+0x1]['type']&&_0x250a3c(_0xc14b81,_0x1f9849[_0x143272+0x1]['item'])||(_0x112a11[0x0]['_appendChild'](_0xc14b81),_0xc14b81=null),_0x4c7e84[_0x4c7e84['length']-0x1]+=_0x1f9849[_0x143272]['item']['offsetSize'],_0x1f9849[_0x143272]['nextPosition']=_0x560b5e['createPositionFromPath'](_0x47356a,_0x4c7e84));for(let _0x527150=0x0;_0x527150<_0x1f9849['length'];_0x527150++){const _0x27e642=_0x1f9849[_0x527150]['previousPosition'],_0x490feb=_0x1f9849[_0x527150]['nextPosition'];for(const _0x2ed3da of _0x1f9849[_0x527150]['markersStart'])_0x30cd28['set'](_0x2ed3da,{'start':_0x27e642,'end':null});_0x51d58c('isRemoveSuggestion',_0x527150,_0x27e642,_0x490feb),_0x51d58c('isAddSuggestion',_0x527150,_0x27e642,_0x490feb),_0x51d58c('isRemoved',_0x527150,_0x27e642,_0x490feb),_0x51d58c('isAdded',_0x527150,_0x27e642,_0x490feb);for(const _0x2c11e0 of _0x1f9849[_0x527150]['markersEnd']){_0x30cd28['get'](_0x2c11e0)['end']=_0x490feb;}}for(const [_0x2cb012,_0xa52b4c]of _0x30cd28){const _0x3d2c12=this['editor']['model']['createRange'](_0xa52b4c['start'],_0xa52b4c['end']);_0x47356a['markers']['set'](_0x2cb012,_0x3d2c12);}return _0x13ac81['sort']((_0x1e3383,_0x49d82b)=>{const _0x2b266e=_0x47356a['markers']['get']('revision:'+_0x1e3383['id']),_0x58456c=_0x47356a['markers']['get']('revision:'+_0x49d82b['id']);return _0x2b266e['start']['isBefore'](_0x58456c['start'])?-0x1:_0x2b266e['start']['isAfter'](_0x58456c['start'])?0x1:_0x2b266e['end']['isBefore'](_0x58456c['end'])?-0x1:_0x2b266e['end']['isAfter'](_0x58456c['end'])?0x1:'add'===_0x1e3383['type']?-0x1:0x1;}),{'root':_0x47356a,'changes':_0x13ac81};function _0x51d58c(_0x528c45,_0x1459ad,_0x14e193,_0x15cffb){const _0x5bca82=!!_0x1f9849[_0x1459ad][_0x528c45],_0x27dadb=_0x5bca82?_0x1f9849[_0x1459ad][_0x528c45]['userId']:null,_0xead905=_0x1459ad===_0x1f9849['length']-0x1,_0x2d4959=_0x19132b[_0x528c45][0x0],_0x8d2c97=_0x3cf8cb['isObject'](_0x1f9849[_0x1459ad]['item']);!_0x423309[_0x528c45]&&_0x5bca82?_0x423309[_0x528c45]={'start':_0x14e193,'tapeItem':_0x1f9849[_0x1459ad],'userId':_0x27dadb,'type':_0x528c45}:_0x423309[_0x528c45]&&!_0x5bca82?(_0x423309[_0x528c45]['end']=_0x14e193,_0x9d644e(_0x423309[_0x528c45]),_0x423309[_0x528c45]=null):_0x423309[_0x528c45]&&_0x5bca82&&_0x423309[_0x528c45]['userId']!==_0x27dadb&&(_0x423309[_0x528c45]['end']=_0x14e193,_0x2d4959&&_0x2d4959['userId']===_0x423309[_0x528c45]['userId']||_0x9d644e(_0x423309[_0x528c45]),_0x423309[_0x528c45]={'start':_0x14e193,'tapeItem':_0x1f9849[_0x1459ad],'userId':_0x27dadb,'type':_0x528c45}),_0x423309[_0x528c45]&&_0x8d2c97&&('elementStart'!==_0x1f9849[_0x1459ad]['type']||_0x2d4959&&_0x2d4959['userId']===_0x27dadb||_0x19132b[_0x528c45]['unshift']({'userId':_0x27dadb,'object':_0x1f9849[_0x1459ad]['item'],'change':_0x423309[_0x528c45]}),'elementEnd'===_0x1f9849[_0x1459ad]['type']&&_0x2d4959&&_0x2d4959['object']===_0x1f9849[_0x1459ad]['item']&&(_0x19132b[_0x528c45]['shift'](),_0x423309[_0x528c45]=_0x2d4959['change'])),_0x423309[_0x528c45]&&_0xead905&&(_0x423309[_0x528c45]['end']=_0x15cffb,_0x9d644e(_0x423309[_0x528c45]),_0x423309[_0x528c45]=null);}function _0x9d644e({start:_0x2aab7b,end:_0x1b2d85,tapeItem:_0x35f8be,userId:_0x3b7a7,type:_0x11401c}){const _0x21219f=_0x35f8be['item'],_0x44312c=_0x560b5e['schema']['isBlock'](_0x21219f)&&!_0x560b5e['schema']['isLimit'](_0x21219f),_0x34583e=_0x2aab7b['nodeAfter']==_0x1b2d85['parent']&&_0x1b2d85['isAtStart'];if(_0x44312c&&_0x34583e)return;const _0x14cff2=_0x560b5e['createRange'](_0x2aab7b,_0x1b2d85),_0x382a2a=_0x10cd42['get'](_0x3b7a7),_0x4cd72f=new r({'author':_0x382a2a,'type':'isAdded'==_0x11401c||'isAddSuggestion'==_0x11401c?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x11401c||'isRemoveSuggestion'==_0x11401c},'createdAt':new Date(),'rootName':_0xe9928b});_0x13ac81['push'](_0x4cd72f),_0x47356a['markers']['set']('revision:'+_0x4cd72f['id'],_0x14cff2);}function _0x250a3c(_0x3c7221,_0xee973a){const _0x1b1be3=_0x3c7221['getAttributes'](),_0x1fbc3d=_0xee973a['getAttributes']();for(const _0x445504 of _0x1b1be3){if(_0x445504[0x1]!==_0xee973a['getAttribute'](_0x445504[0x0]))return!0x1;_0x1fbc3d['next']();}return _0x1fbc3d['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x175a75=>{const _0x302679=_0x175a75['markerName']['split'](':')[0x1],_0x598a67=this['_getChangeFromId'](_0x302679);if(!_0x598a67)return null;const _0x1c2719='add'==_0x598a67['type']?'insertion':'deletion',_0x378487=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1c2719];return _0x598a67['data']['isSuggestion']&&_0x378487['push']('ck-suggestion-marker-'+_0x1c2719+'-new'),this['activeChange']==_0x598a67&&_0x378487['push']('ck-suggestion-marker--active'),{'classes':_0x378487,'attributes':{'data-change-id':_0x302679}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x21d6bc=>{_0x21d6bc['on']('element:pre',(_0x2c17d0,_0x392f25,_0x50ff59)=>{const _0x2fed53=_0x392f25['viewItem']['getChild'](0x0);if(!_0x2fed53||!_0x2fed53['is']('element','code'))return;if(!_0x50ff59['consumable']['consume'](_0x2fed53,{'attributes':['vid_start','vid_end']}))return;const _0x433c72=_0x392f25['modelRange']['start']['nodeAfter'];_0x50ff59['writer']['setAttribute']('vid_start',_0x2fed53['getAttribute']('vid_start'),_0x433c72),_0x50ff59['writer']['setAttribute']('vid_end',_0x2fed53['getAttribute']('vid_end'),_0x433c72);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x5631a3=>{_0x5631a3['on']('element',(_0x1232ce,_0x2ef356,_0x196aa6)=>{if(!_0x196aa6['consumable']['consume'](_0x2ef356['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x2ef356['modelRange']['isCollapsed'])return;const _0x38e4dd=_0x2ef356['modelRange']['start']['nodeAfter'];_0x38e4dd['hasAttribute']('vid_start')||_0x38e4dd['hasAttribute']('vid')||(_0x196aa6['writer']['setAttribute']('vid_start',_0x2ef356['viewItem']['getAttribute']('vid_start'),_0x38e4dd),_0x196aa6['writer']['setAttribute']('vid_end',_0x2ef356['viewItem']['getAttribute']('vid_end'),_0x38e4dd));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x115498=>_0x115498['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x12c06d,[,_0x58275f])=>{['vid_start','vid_end','vid']['includes'](_0x58275f)&&(_0x12c06d['return']=!0x0,_0x12c06d['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x3f9e2a=>{_0x3f9e2a['on']('attribute:vid',(_0x582cb7,_0x205626,_0x381d0f)=>{if('\x20'!=_0x205626['item']['data']||_0x205626['item']['parent']['maxOffset']>0x1)return;if(!_0x381d0f['consumable']['consume'](_0x205626['item'],_0x582cb7['name']))return;const _0x17ca2f=_0x381d0f['writer'],_0xb8110f=_0x381d0f['mapper']['toViewRange'](_0x205626['range']);_0x17ca2f['wrap'](_0xb8110f,_0x17ca2f['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x3af4cd){const _0x7cdedf=_0x3af4cd['plugins']['get']('RevisionViewer');return(_0x285a69,_0x48dd77,_0x4bbcb0)=>{const _0x1075a5=_0x48dd77['markerName']['split'](':')[0x1],_0x3e9208=_0x7cdedf['_getChangeFromId'](_0x1075a5);if(!_0x3e9208)return null;const _0x33cc75='add'==_0x3e9208['type']?'split':'merge';if(!_0x4bbcb0['consumable']['test'](_0x48dd77['markerRange'],_0x285a69['name']))return;const _0x39d7d1=_0x48dd77['markerRange']['getWalker'](),_0x2eeefd=_0x48dd77['markerRange']['start'],_0x37d632=_0x3af4cd['model']['schema'];let _0x14c738=null,_0x505fd0=null,_0xdf6bc5=!0x1,_0x1c1c99=!0x1;for(const _0x346a5b of _0x39d7d1){const _0x401b99=_0x346a5b['item'];_0xdf6bc5=_0xdf6bc5||_0x37d632['isContent'](_0x401b99);const _0x19ecf8=_0x4bbcb0['mapper']['toViewElement'](_0x401b99);if(_0x19ecf8&&_0x19ecf8['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x346a5b['type']&&(_0x37d632['isBlock'](_0x401b99)&&!_0x37d632['isLimit'](_0x401b99)&&(_0x401b99['nextSibling']||_0x2eeefd['isAtEnd']?_0x14c738&&_0x14c738['parent']==_0x401b99||(_0x14c738=_0x401b99,_0x236db1(_0x346a5b['previousPosition']),_0x1c1c99=!0x0):_0x505fd0=_0x505fd0||_0x346a5b['previousPosition']));}function _0x236db1(_0x16896a){const _0x5649aa=_0x4bbcb0['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x33cc75}),_0x58e0ec=_0x4bbcb0['mapper']['toViewPosition'](_0x16896a);_0x3e9208['data']['isSuggestion']&&_0x4bbcb0['writer']['addClass']('ck-suggestion-marker-'+_0x33cc75+'-new',_0x5649aa),_0x7cdedf['activeChange']==_0x3e9208&&_0x4bbcb0['writer']['addClass']('ck-suggestion-marker--active',_0x5649aa),_0x4bbcb0['writer']['insert'](_0x58e0ec,_0x5649aa),_0x4bbcb0['mapper']['bindElementToMarker'](_0x5649aa,_0x48dd77['markerName']);}_0xdf6bc5||_0x1c1c99||!_0x505fd0||_0x236db1(_0x505fd0);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x2054b9,_0x500045,_0x497294)=>{const _0x4ab62c=_0x497294['mapper']['markerNameToElements'](_0x500045['markerName']);if(_0x4ab62c){for(const _0x153fa4 of _0x4ab62c)(_0x153fa4['hasClass']('ck-suggestion-marker-split')||_0x153fa4['hasClass']('ck-suggestion-marker-merge'))&&(_0x497294['mapper']['unbindElementFromMarkerName'](_0x153fa4,_0x500045['markerName']),_0x497294['writer']['remove'](_0x153fa4));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x11c379,_0x3ebef4,_0x1cc286)=>{const _0x32287c=_0x3ebef4['markerName']['split'](':')[0x1],_0x4a41c2=this['_getChangeFromId'](_0x32287c);if(!_0x4a41c2)return null;const _0x2f30d1='add'==_0x4a41c2['type']?'split':'merge';if(_0x1cc286['consumable']['test'](_0x3ebef4['markerRange'],_0x11c379['name']))for(const _0x4b8bb9 of _0x3ebef4['markerRange']['getItems']()){if(!_0x4b8bb9['is']('element','softBreak'))continue;const _0x2e7bda=_0x1cc286['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2f30d1}),_0xdad0a0=_0x1cc286['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x4b8bb9));_0x4a41c2['data']['isSuggestion']&&_0x1cc286['writer']['addClass']('ck-suggestion-marker-'+_0x2f30d1+'-new',_0x2e7bda),this['activeChange']==_0x4a41c2&&_0x1cc286['writer']['addClass']('ck-suggestion-marker--active',_0x2e7bda),_0x1cc286['writer']['insert'](_0xdad0a0,_0x2e7bda),_0x1cc286['mapper']['bindElementToMarker'](_0x2e7bda,_0x3ebef4['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x4c0216=>{for(const _0x411378 of this['editor']['model']['document']['getRootNames']()){const _0x448fcd=this['editor']['model']['document']['getRoot'](_0x411378),_0x161a70=this['editor']['editing']['view']['document']['getRoot'](_0x411378);if(_0x161a70){const _0x32b5b2=_0x448fcd['getAttribute']('revisionHistoryAttachChange');if(_0x4c0216['removeAttribute']('data-change-id',_0x161a70),_0x4c0216['removeClass']('ck-revision-history-root-add',_0x161a70),_0x4c0216['removeClass']('ck-revision-history-root-remove',_0x161a70),_0x4c0216['removeClass']('ck-revision-history-root--active',_0x161a70),_0x32b5b2){const _0x2cc44a=this['_getChangeFromId'](_0x32b5b2);if(!_0x2cc44a)return null;_0x4c0216['setAttribute']('data-change-id',_0x32b5b2,_0x161a70),_0x4c0216['addClass']('ck-revision-history-root-'+_0x2cc44a['type'],_0x161a70),this['activeChange']==_0x2cc44a&&_0x4c0216['addClass']('ck-revision-history-root--active',_0x161a70);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x53961d=>'revision-comment:'+_0x53961d,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x910795=>'revision-suggestion:'+_0x910795,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x43b395=>({'name':'suggestion:'+_0x43b395,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x2dc163=>{const _0x6e696e=_0x2dc163['markerName']['split'](':')[0x1];return'insertion'!=_0x6e696e&&'deletion'!=_0x6e696e?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x6e696e]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x327e23,_0x1d7ac3,_0x3cc397)=>{const _0xfe6e40=_0x3cc397['mapper']['markerNameToElements'](_0x1d7ac3['markerName']);if(_0xfe6e40){for(const _0x3400bf of _0xfe6e40)_0x3400bf['is']('uiElement')&&(_0x3cc397['mapper']['unbindElementFromMarkerName'](_0x3400bf,_0x1d7ac3['markerName']),_0x3cc397['writer']['remove'](_0x3400bf));}},{'priority':'high'});}['_getChangeFromId'](_0x15c53a){return this['_changeIdToChange']['get'](_0x15c53a);}['_getViewForChange'](_0x46cfd3){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x46cfd3),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0xa9dc89,_0x1c96ef,_0x5e922d,_0x476af0)=>{_0x476af0&&this['_balloon']['remove'](_0x476af0),_0x5e922d&&(this['_balloon']['add']({'view':_0x5e922d,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x491e4e=this['editor']['editing'],_0x960a99=this['_getChangeFromId'](_0x5e922d['changeId']);let _0x5cac16;if(_0x960a99['data']['isOnRoot']){const _0x37c9a3=_0x491e4e['view']['getDomRoot'](_0x960a99['rootName']);_0x5cac16=Array['from'](_0x37c9a3['getClientRects']());}else{const _0x95a194=this['editor']['model']['markers']['get']('revision:'+_0x5e922d['changeId']);_0x5cac16=Array['from'](_0x491e4e['mapper']['markerNameToElements'](_0x95a194['name']))['map'](_0x24c7c4=>_0x491e4e['view']['domConverter']['mapViewToDom'](_0x24c7c4))['map'](_0x339d14=>Array['from'](_0x339d14['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x5cac16[0x0];return _0x5cac16['find'](_0x51a817=>_0x51a817['top']-0x3<=this['_activeViewTarget']['y']&&_0x51a817['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x51a817['left']-0x3<=this['_activeViewTarget']['x']&&_0x51a817['right']+0x3>=this['_activeViewTarget']['x'])||_0x5cac16[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x48179a,_0x5ec986,_0x5255f6,_0x23c09e)=>{this['activeView']=_0x5255f6?this['_getViewForChange'](_0x5255f6):null,this['editor']['model']['change'](()=>{const _0x3f378f=this['editor']['editing'];_0x23c09e&&(_0x23c09e['data']['isOnRoot']?_0x3f378f['view']['change'](_0x1491c2=>{_0x1491c2['removeClass']('ck-revision-history-root--active',_0x3f378f['view']['document']['getRoot'](_0x23c09e['rootName']));}):_0x3f378f['reconvertMarker']('revision:'+_0x23c09e['id'])),_0x5255f6&&(_0x5255f6['data']['isOnRoot']?_0x3f378f['view']['change'](_0x21a64c=>{_0x21a64c['addClass']('ck-revision-history-root--active',_0x3f378f['view']['document']['getRoot'](_0x5255f6['rootName']));}):_0x3f378f['reconvertMarker']('revision:'+_0x5255f6['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x4321c2,_0xdf49e9)=>{if(this['activeChange'])return;const _0x248ce4=this['_findChangeIdFromDomTarget'](_0xdf49e9['target']),_0x260894=this['_changeIdToChange']['get'](_0x248ce4);_0x260894?(this['_activeViewTarget']={'x':_0xdf49e9['domEvent']['x'],'y':_0xdf49e9['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x260894)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x37aed8,_0xa17877)=>{const _0x5e6a6f=this['_findChangeIdFromDomTarget'](_0xa17877['target']),_0x1246ca=this['_changeIdToChange']['get'](_0x5e6a6f);_0x1246ca?(this['_activeViewTarget']={'x':_0xa17877['domEvent']['x'],'y':_0xa17877['domEvent']['y']},_0x1246ca===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x1246ca):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x5b0d95){do{const _0x8c4a55=_0x5b0d95['getAttribute']('data-change-id');if(_0x8c4a55)return _0x8c4a55;_0x5b0d95=_0x5b0d95['parent'];}while(_0x5b0d95);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x3e509e=>{for(const _0x530034 of this['editor']['model']['markers'])_0x3e509e['removeMarker'](_0x530034);});}}function Z(_0x2efa4c,_0x39b7b8){return(_0x5976f6,_0x5731c5,_0x7363ab)=>{if(!_0x7363ab['consumable']['test'](_0x5731c5['markerRange'],_0x5976f6['name']))return;const _0x188cd5=_0x5731c5['markerRange']['getWalker'](),_0x2ac57a=_0x5731c5['markerRange']['start'],_0x2245ea=_0x2efa4c['model']['schema'];let _0x3ec92c=null,_0x56da4c=null,_0x504e99=!0x1,_0x4c1aeb=!0x1;for(const _0x2e73df of _0x188cd5){const _0x1e3591=_0x2e73df['item'];_0x504e99=_0x504e99||_0x2245ea['isContent'](_0x1e3591);const _0x4e902d=_0x7363ab['mapper']['toViewElement'](_0x1e3591);if(_0x4e902d&&_0x4e902d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2e73df['type']&&(_0x2245ea['isBlock'](_0x1e3591)&&!_0x2245ea['isLimit'](_0x1e3591)&&(_0x1e3591['nextSibling']||_0x2ac57a['isAtEnd']?_0x3ec92c&&_0x3ec92c['parent']==_0x1e3591||(_0x3ec92c=_0x1e3591,_0x3a5b6b(_0x2e73df['previousPosition']),_0x4c1aeb=!0x0):_0x56da4c=_0x56da4c||_0x2e73df['previousPosition']));}function _0x3a5b6b(_0x2fbcb3){const _0x12e040=_0x7363ab['mapper']['toViewPosition'](_0x2fbcb3),_0x458faa=_0x7363ab['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x39b7b8});_0x7363ab['writer']['insert'](_0x12e040,_0x458faa),_0x7363ab['mapper']['bindElementToMarker'](_0x458faa,_0x5731c5['markerName']);}_0x504e99||_0x4c1aeb||!_0x56da4c||_0x3a5b6b(_0x56da4c);};}class pt extends _0x8c86fd{constructor(_0x5d5621){super(_0x5d5621);const _0x20cf32=_0x5d5621['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x20cf32,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x20cf32,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x52880d=this['editor'],_0xb38e18=_0x52880d['plugins']['get'](d),_0x5c99f3=_0xb38e18['isReady']?_0xb38e18['diff']['newRevisionId']:null;_0x52880d['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5c99f3);}['refresh'](){const {isReady:_0x2e599e,isEnabled:_0x179410,repository:_0x4d1304,diff:_0x1c7f60}=this['editor']['plugins']['get'](d),_0x2bdff8=_0x1c7f60&&_0x4d1304['getLaterVisibleRevision'](_0x1c7f60['newRevisionId']);this['isEnabled']=_0x2e599e&&_0x179410&&Boolean(_0x2bdff8);}}class _t extends _0x8c86fd{['_step'];constructor(_0x3d7a71,{direction:_0x3914cf}){super(_0x3d7a71);const _0x28fb17=_0x3d7a71['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x3914cf?0x1:-0x1,this['listenTo'](_0x28fb17,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x28fb17,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x28fb17,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x13c7fb=this['editor'],_0x2f46d1=_0x13c7fb['plugins']['get'](d),{isNavigationMode:_0x397f83,currentChangeNumber:_0xd1537f}=_0x2f46d1;let _0x4201da;if(_0x2f46d1['activeChange']=_0x397f83?_0x2f46d1['diff']['changes']['get'](_0xd1537f+this['_step']):_0x2f46d1['diff']['changes']['first'],_0x2f46d1['activeChange']['data']['isOnRoot'])_0x4201da=_0x13c7fb['editing']['view']['getDomRoot'](_0x2f46d1['activeChange']['rootName']);else{const _0x4e9e41=_0x13c7fb['model']['markers']['get']('revision:'+_0x2f46d1['activeChange']['id']);_0x4201da=_0x5a1b1d(_0x13c7fb['editing'],_0x4e9e41);}_0x4c76de({'target':_0x4201da,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4bf085,currentChangeNumber:_0x5d482b,numberOfChanges:_0x27f8ef,isReady:_0xb28164,isEnabled:_0xfe7f68}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0xfe7f68&&_0xb28164&&_0x27f8ef)&&(!_0x4bf085||(0x1===this['_step']?_0x5d482b<_0x27f8ef-0x1:_0x5d482b>0x0));}}class ui extends ts{constructor(_0x2c8321){super(_0x2c8321);const _0xa4a5e1=this['bindTemplate'],_0x1ef0d3=new te(_0x2c8321),_0x32cf72=new te(_0x2c8321);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',(_0x336f8f,_0x2ab0aa)=>_0x336f8f&&_0x2ab0aa>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x5db4db,_0x2d0dd4,_0x344337,_0x4f5da6)=>{if(!_0x5db4db)return m(_0x2c8321,'Loading...');if(!_0x344337)return m(_0x2c8321,'No\x20changes');const _0x684bce=m(_0x2c8321,'NUMBER_OF_CHANGES',_0x344337);return _0x4f5da6?m(_0x2c8321,'X_OF_Y_CHANGES',[_0x2d0dd4+0x1,_0x344337]):_0x684bce;}),_0x1ef0d3['set']({'label':m(_0x2c8321,'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'}),_0x32cf72['set']({'label':m(_0x2c8321,'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'}),_0x1ef0d3['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x32cf72['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x1ef0d3['on']('execute',()=>this['fire']('execute','backward')),_0x32cf72['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',_0xa4a5e1['if']('_isStatusLabelVisible','ck-hidden',_0x3b3e6e=>!_0x3b3e6e)]},'children':[{'text':_0xa4a5e1['to']('isNavigationMode',_0x1c5455=>_0x1c5455?m(_0x2c8321,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x2c8321,'Total')+':\x20')}]},{'text':_0xa4a5e1['to']('_statusText')}]},new _0x8278f0(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x1ef0d3,_0x32cf72]}]});}}const le='ck-editor__editable__loading-overlay';class de extends _0x49d6a4{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x74358=this['editor']['editing']['view'];_0x74358['change'](_0xe4f006=>{for(const _0x314950 of _0x74358['document']['roots'])_0xe4f006['addClass'](le,_0x314950);});}['hide'](){const _0xd04c25=this['editor']['editing']['view'];_0xd04c25['change'](_0x2ddc5d=>{for(const _0x1e4f7c of _0xd04c25['document']['roots'])_0x2ddc5d['removeClass'](le,_0x1e4f7c);});}}class g extends _0x49d6a4{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,de];}['init'](){const _0x2dac39=this['editor'],_0x56c925=_0x2dac39['plugins']['get'](d),_0x2df219=_0x2dac39['plugins']['get'](de);_0x2dac39['ui']['componentFactory']['add']('exitToEditing',_0x56c797=>{const _0x51eb00=new te(_0x56c797);return _0x51eb00['set']({'label':m(_0x56c797,'Back\x20to\x20editing'),'icon':_0x21b581['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x51eb00,'execute',()=>{_0x2dac39['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x51eb00;}),_0x2dac39['ui']['componentFactory']['add']('restoreRevision',_0x4ebd8a=>{const _0xef0994=new te(_0x4ebd8a);return _0xef0994['set']({'label':m(_0x4ebd8a,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0xef0994['bind']('isEnabled')['to'](_0x2dac39['commands']['get']('restoreRevision')),this['listenTo'](_0xef0994,'execute',()=>_0x2dac39['execute']('restoreRevision')),_0xef0994;}),_0x2dac39['ui']['componentFactory']['add']('changesNavigation',_0x2b6cf3=>{const _0x5d81c5=new ui(_0x2b6cf3),_0x3e799a=_0x2dac39['commands']['get']('showPreviousChange'),_0x3ff5f9=_0x2dac39['commands']['get']('showNextChange');return _0x5d81c5['bind']('isBackwardNavigationEnabled')['to'](_0x3e799a,'isEnabled'),_0x5d81c5['bind']('isForwardNavigationEnabled')['to'](_0x3ff5f9,'isEnabled'),_0x5d81c5['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x56c925),this['listenTo'](_0x5d81c5,'execute',(_0x1274e6,_0xc76639)=>{_0x2dac39['execute']('forward'===_0xc76639?'showNextChange':'showPreviousChange');}),_0x5d81c5;}),_0x2df219['show'](),_0x56c925['on']('change:isReady',(_0xfd2d98,_0x584914,_0xd89529)=>{_0xd89529?_0x2df219['hide']():_0x2df219['show']();});}}class at extends _0x59fe7f{['_resizeObserver']=null;constructor(_0x1041ef,_0x39453a){super(_0x1041ef,_0x39453a);const _0x543073=this['bindTemplate'];this['set']({'label':m(_0x1041ef,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x1041ef,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x543073['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x5ab0df=this['fieldView']['element'];this['_tooltipString']=_0x5ab0df['scrollWidth']>_0x5ab0df['clientWidth']&&_0x5ab0df['value']||'';}}class ri extends ts{constructor(_0x5e18a7,_0x19b3d4,_0x26cb29){super(_0x5e18a7);const _0x12ca27=new _0x2c826e();_0x12ca27['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 _0xa000b5=['ck','ck-revision-history-sidebar__revision-author'];_0x26cb29&&_0xa000b5['push']('ck-revision-history-sidebar__revision-author_creator');const _0x72a1e3=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x5e18a7,_0x26cb29?'Revision\x20creator':'Revision\x20author')},'children':[_0x12ca27,_0x19b3d4['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0xa000b5},'children':_0x72a1e3});}}function oi(_0x4eb55e,_0x1bc873){const _0x53060a=_0x4eb55e['bindTemplate'],_0x6cda66=_0x4eb55e['locale'],_0x3fcc4c=_0x44d4bf(_0x6cda66);_0x3fcc4c['panelPosition']='sw';const _0x10358e=function(_0x38aa62,_0x2525d8){const _0x54cba0=function(_0x1fba7a,_0x80f385){const _0x1e4acb=_0x1fba7a['locale'],_0xfe4855={'Compare\x20against\x20selected':m(_0x1e4acb,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x1e4acb,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x1e4acb,'Restore\x20this\x20revision')};return _0x80f385['map'](_0x41037f=>{const _0x4abeeb=_0xfe4855[_0x41037f['name']];return _0x4abeeb&&_0x4abeeb!==_0x41037f['name']&&(_0x41037f['name']=_0x4abeeb),_0x41037f;});}(_0x38aa62,_0x2525d8),_0x2b71f4=new _0x255b68();for(const _0x1c3d3c of _0x54cba0){const _0x1c4458={'type':'button','model':new _0x515463({'label':_0x1c3d3c['name'],'class':_0x1c3d3c['class'],'withText':!0x0,'role':'menuitem','_action':_0x1c3d3c['action']})};_0x1c4458['model']['bind']('isEnabled')['to'](_0x38aa62,'isActionsDropdownOpen',_0x46df6e=>'function'!=typeof _0x1c3d3c['isEnabled']||(!_0x46df6e||_0x1c3d3c['isEnabled'](_0x38aa62))),_0x2b71f4['add'](_0x1c4458);}return _0x2b71f4;}(_0x4eb55e,_0x1bc873);return _0x4eb55e['bind']('isActionsDropdownOpen')['to'](_0x3fcc4c,'isOpen'),_0x3fcc4c['buttonView']['set']({'label':m(_0x6cda66,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x21b581['threeVerticalDots']}),_0x3fcc4c['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x53060a['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x53060a['to'](_0x464c1a=>_0x464c1a['stopPropagation']())}}),_0x3fcc4c['on']('execute',_0x24af4d=>{_0x4eb55e['isReady']&&'function'==typeof _0x24af4d['source']['_action']&&_0x24af4d['source']['_action'](_0x4eb55e);}),to(_0x3fcc4c,_0x10358e,{'role':'menu'}),_0x3fcc4c['listenTo'](_0x4eb55e,'change:isActionsDropdownOpen',(_0x2727d9,_0x5a2cb8,_0x230115)=>{if(_0x230115)for(const _0x1e527d of _0x3fcc4c['listView']['items']){const _0x57a944=_0x1e527d['children']['first'],_0x117812=_0x1bc873['find'](_0x3945c4=>_0x3945c4['action']===_0x57a944['_action'])['isVisible'];_0x1e527d['isVisible']=void 0x0===_0x117812||_0x117812(_0x4eb55e);}}),_0x3fcc4c;}class hi extends/* #__PURE__ -- @preserve */
26
+ ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x5c39d3,_0x1af23d,_0x1923e4,_0x57f4e2){super(_0x5c39d3);const _0x390475=this['bindTemplate'],_0x227416=function(_0x46585b,_0x1564cc){const _0x198c2b=Array['from'](_0x1564cc['authors'])['filter'](_0x2abbaf=>_0x2abbaf!=_0x1564cc['creator']);return _0x1564cc['creator']&&_0x198c2b['unshift'](_0x1564cc['creator']),_0x198c2b['map'](_0xc249bf=>new ri(_0x46585b,_0xc249bf,_0xc249bf==_0x1564cc['creator']));}(_0x5c39d3,_0x1af23d);this['id']=_0x1af23d['id'],this['_revision']=_0x1af23d,this['_requireRevisionName']=_0x57f4e2,this['bind']('name','createdAt')['to'](_0x1af23d),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x3f5714=>{return _0xa107ef=_0x5c39d3['uiLanguage'],(_0x5192e5=_0x3f5714)['toLocaleDateString'](_0xa107ef,{'month':'long','day':'numeric'})+',\x20'+_0x5192e5['toLocaleTimeString'](_0xa107ef,{'hour':'numeric','minute':'numeric'});var _0xa107ef,_0x5192e5;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x5c39d3,_0x5a9a2c),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x3b36bc=>_0x3b36bc||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x494190,_0x2bd776)=>_0x494190&&_0x2bd776),this['revisionActionsView']=_0x1923e4&&_0x1923e4['length']?oi(this,_0x1923e4):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x390475['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x390475['if']('isEnabled','ck-disabled',_0x1bfe84=>!_0x1bfe84),_0x390475['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x390475['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x390475['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':_0x390475['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':_0x227416}]},this['revisionActionsView']],'on':{'click':_0x390475['to'](_0x400159=>{_0x400159['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x395796=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x395796,'change',()=>{this['_requireRevisionName']&&!_0x395796['value']||this['fire']('setName',{'id':this['id'],'name':_0x395796['value']}),_0x395796['value']||(_0x395796['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(_0x181962,_0x3f7810){const _0x306f1d=_0xfc1fd9['fromJSDate'](_0x181962)['setLocale'](_0x3f7810),_0xd34a76=_0xfc1fd9['local'](),_0x36c2cf=_0xd34a76['minus']({'days':0x1})['startOf']('day');let _0x3e8846,_0x5c917c;return _0x306f1d['hasSame'](_0xd34a76,'day')?(_0x3e8846=_0x306f1d['startOf']('day')['toJSDate'](),_0x5c917c=_0x306f1d['toRelativeCalendar']()):_0x306f1d['hasSame'](_0x36c2cf,'day')?(_0x3e8846=_0x36c2cf['toJSDate'](),_0x5c917c=_0x306f1d['toRelativeCalendar']()):_0x306f1d['hasSame'](_0xd34a76,'week')?(_0x3e8846=_0x306f1d['startOf']('week')['toJSDate'](),_0x5c917c=_0x306f1d['weekdayLong']||''):_0x306f1d['hasSame'](_0xd34a76,'year')?(_0x3e8846=_0x306f1d['startOf']('month')['toJSDate'](),_0x5c917c=_0x306f1d['monthLong']||''):(_0x3e8846=_0x306f1d['startOf']('year')['toJSDate'](),_0x5c917c=String(_0x306f1d['year'])),{'startDate':_0x3e8846,'localizedPeriodName':_0x5c917c};}class vi extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x1a6e8d,_0x37427a,_0xb8b29f,_0x50cd8e){super(_0x1a6e8d);const _0x2242c5=mi(_0x37427a,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x37427a,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0xb8b29f,this['_requireRevisionName']=_0x50cd8e,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':_0x2242c5}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x160267){const _0x2ee6b0=new hi(this['locale'],_0x160267,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x2ee6b0);}['removeRevision'](_0x50f2a0){const _0x3f9263=this['revisionViews']['find'](_0x31b06b=>_0x31b06b['id']===_0x50f2a0['id']);this['revisionViews']['remove'](_0x3f9263);}}class as extends ts{constructor(_0x3217c8){super(_0x3217c8);const _0x1222a5=new _0x2c826e();_0x1222a5['content']=_0x21b581['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x1222a5,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x3217c8,'Revision\x20history')]}]});}}class di extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0xc5a9dd,_0xfef19c,_0x12fa59,_0x462ade){super(_0xc5a9dd);const _0x3c39da=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0xfef19c,this['_revisionActions']=_0x12fa59,this['_requireRevisionName']=_0x462ade,this['on']('select',(_0x10a95c,_0x3530e0)=>{this['fire']('revisionSelected',_0x3530e0);}),this['on']('setName',(_0xd43a5b,_0x4b7535)=>{this['fire']('revisionSetName',_0x4b7535);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0xc5a9dd),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x3c39da['if']('isEnabled','ck-disabled',_0x509942=>!_0x509942)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x2c6976 of this['_revisions'])this['_addRevision'](_0x2c6976);this['_revisions']['on']('add',(_0x3ae9e8,_0x36396c)=>{this['_addRevision'](_0x36396c);}),this['_revisions']['on']('remove',(_0x54fc3b,_0x306dd2)=>{this['_removeRevision'](_0x306dd2);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x3b7294=>_0x3b7294['revisionViews']['map'](_0x31dfb5=>_0x31dfb5))['flat']();}['selectRevision'](_0x524396){for(const _0x45eb98 of this['revisionViews'])_0x524396&&_0x524396['id']===_0x45eb98['id']?_0x45eb98['select']():_0x45eb98['deselect']();}['highlightRevisions'](_0x52597a){for(const _0x86abb6 of this['revisionViews'])_0x52597a['some'](({id:_0x4e26d7})=>_0x4e26d7===_0x86abb6['id'])?_0x86abb6['highlight']():_0x86abb6['unhighlight']();}['_addRevision'](_0x574ba8){const _0x166f3b=mi(_0x574ba8['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x4c2a94=this['timePeriodViews']['get'](0x0);_0x4c2a94&&_0x4c2a94['startDate']['getTime']()===_0x166f3b['getTime']()||(_0x4c2a94=new vi(this['locale'],_0x166f3b,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x4c2a94)),_0x4c2a94['addRevision'](_0x574ba8);}['_removeRevision'](_0x29b6d4){const _0x5ebeeb=mi(_0x29b6d4['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x5ebeeb)['removeRevision'](_0x29b6d4);}['_getTimePeriodViewByStartDate'](_0x2147a1){return this['timePeriodViews']['find'](_0x274e5d=>_0x274e5d['startDate']['getTime']()===_0x2147a1['getTime']());}}class w extends _0x49d6a4{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x131107){super(_0x131107),this['_revisionViewer']=_0x131107['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x5340a9=this['_revisionsRepository']['_revisions'],_0x429a34=this['_createRevisionActions'](),_0x368aab=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new li(this['editor']['locale'],_0x5340a9,_0x429a34,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',(_0x200f86,_0x109a37)=>{_0x109a37['revisionViews']['on']('add',(_0x1fe8f1,_0x47fbe2)=>{_0x47fbe2['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)),_0x368aab['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x19eec9=this['_revisionsRepository']['getRevision'](0x0);if(_0x19eec9){const _0x58a5e2=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x19eec9['id']);this['_revisionViewer']['compare'](_0x19eec9,_0x58a5e2);}}['_handleRevisionSelected'](_0x40507c,_0x2ba027){const _0x3d05c8=this['_revisionsRepository']['getRevision'](_0x2ba027['id']),_0x47feb3=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3d05c8['id']);this['_revisionViewer']['compare'](_0x3d05c8,_0x47feb3);}['_handleRevisionSetName'](_0x59b931,_0x48ef1c){this['_revisionsRepository']['getRevision'](_0x48ef1c['id'])['setName'](_0x48ef1c['name']);}['_handleDiffChange'](_0x359c3d,_0x2f782e,_0x5135f2){const _0x2aea21=this['_revisionsRepository']['getRevisionsInDiff'](_0x5135f2);_0x2aea21['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x2aea21),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x2aea21[0x0]));}['_createRevisionActions'](){const _0x40c36f=this['editor'],_0x29ff35=w['availableRevisionActions'],_0x118d17=_0x40c36f['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x118d17['length'])return _0x118d17['map'](_0x112999=>{const _0x1602e7='string'==typeof _0x112999?Object['assign']({},_0x29ff35[_0x112999]):_0x112999;return _0x1602e7['action']=_0x1602e7['action']['bind'](this,_0x40c36f),_0x1602e7['isVisible']&&(_0x1602e7['isVisible']=_0x1602e7['isVisible']['bind'](this,_0x40c36f)),_0x1602e7;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0xa07b72},_0x27dd7e)=>{const _0x1fe36b=_0xa07b72['get'](d),_0x1285e3=_0x1fe36b['repository'];let _0x1a8837=_0x1fe36b['diff']['newRevisionId'],_0x1d9169=_0x27dd7e['id'];_0x1285e3['getIndex'](_0x1a8837)>_0x1285e3['getIndex'](_0x1d9169)&&([_0x1a8837,_0x1d9169]=[_0x1d9169,_0x1a8837]),_0x1fe36b['compare'](_0x1a8837,_0x1d9169);},'isVisible':({plugins:_0x56a230},_0x540744)=>{const _0x4d9faa=_0x56a230['get'](d);return!(_0x4d9faa['repository']['getRevisionsInDiff'](_0x4d9faa['diff'])['length']>0x2)&&!_0x540744['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x25a1f2,{id:_0x226347})=>{_0x25a1f2['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x226347);},'isVisible':({plugins:_0x14d759},_0x4da63d)=>!!_0x14d759['get'](d)['repository']['getLaterVisibleRevision'](_0x4da63d['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x703442},{id:_0x2ca69a,revisionNameView:_0x543ea6})=>{const _0x35f68e=_0x703442['get'](d),_0xedb82a=_0x35f68e['repository']['getEarlierVisibleRevision'](_0x2ca69a);_0x35f68e['compare'](_0x2ca69a,_0xedb82a),_0x543ea6['focus'](),_0x543ea6['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x304b6c,_0xf48cdf){super(_0x304b6c),this['_view']=_0xf48cdf,this['_toolbarConfig']=ot(_0x304b6c['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x3057f9){const _0xcb057c=this['editor'],_0x2db562=this['view'],_0x1814a6=_0xcb057c['editing']['view'],_0x15998d=_0x2db562['editable'],_0x4412ca=_0x1814a6['document']['getRoot']();_0x15998d['name']=_0x4412ca['rootName'],_0x2db562['render']();const _0x5c2670=_0x15998d['element'];this['setEditableElement'](_0x15998d['name'],_0x5c2670),_0x2db562['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x1814a6['attachDomRoot'](_0x5c2670),this['_elementReplacer']['replace'](_0x3057f9,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x524448=this['view'],_0x583bc5=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x583bc5['detachDomRoot'](_0x524448['editable']['name']),_0x524448['destroy']();}['_initToolbar'](){const _0x5924d4=this['view'];_0x5924d4['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x5924d4['stickyPanel']['limiterElement']=_0x5924d4['element'],_0x5924d4['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x4886bf})=>_0x4886bf),_0x5924d4['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x5924d4['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x549542,_0x1b5c1a,_0x758a3={}){super(_0x549542),this['stickyPanel']=new ut(_0x549542),this['toolbar']=new lt(_0x549542,{'shouldGroupWhenFull':_0x758a3['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x549542,_0x1b5c1a);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
- it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x2f3c76,_0x4defbb){super(_0x4defbb),this['sourceElement']=_0x2f3c76,this['model']['document']['createRoot']();const _0x1a702a=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x1a702a);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x1e8883,_0x53233b){const _0x1e925a=new this(_0x1e8883,_0x53233b);return await _0x1e925a['initPlugins'](),await _0x1e925a['ui']['init'](_0x1e8883),await _0x1e925a['data']['init'](_0x1e925a['config']['get']('initialData')||''),_0x1e925a['fire']('ready'),_0x1e925a;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x3b4198{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2205cb){function _0x4bb990(_0x4ac463){return _0x4ac463['map'](_0x1ab7cf=>String['fromCharCode'](_0x1ab7cf))['join']('');}super(_0x2205cb),this['result']='end',_0x2205cb[_0x4bb990([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4bb990([0x76,0x69,0x65,0x77])][_0x4bb990([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4bb990([0x61,0x75,0x74,0x6f]),_0x2205cb[_0x4bb990([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4bb990([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4bb990([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4bb990([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4bb990([0x6f,0x6b])});}}class k extends _0x3b4198{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x345e75){if(super(_0x345e75),!this['editor']['config']['get']('revisionHistory'))throw new _0x59560c('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x3c9211=>this['_showRevisionViewer']({..._0x3c9211,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x56a92d=>this['_closeRevisionViewer'](_0x56a92d)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x47097b=>this['_restoreRevision'](_0x47097b)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x542cff){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x542cff;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x467d3a){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x467d3a);}['getRevision'](_0x4f73d1){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x4f73d1);}['getRevisions'](_0x3358db){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x3358db||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x4bb10a=this['editor'],_0x23a771=_0x3d967e(_0x4bb10a,p),_0x45730e=_0x4bb10a['plugins']['get']('RevisionTracker'),_0x5e1bf1=_0x4bb10a['plugins']['get']('Users')['users'];return _0x23a771['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x23a771['lazyRoots'],(_0x23a771['plugins']['push'](Rt,d,g,class extends _0x3b4198{static get['requires'](){return[d,'Users'];}['init'](){const _0x542370=this['editor']['plugins']['get']('Users');for(const _0x5df9d2 of _0x5e1bf1)_0x5df9d2['isAnonymous']||_0x542370['getUser'](_0x5df9d2['id'])||_0x542370['addUser'](_0x5df9d2);const _0x5ea577=_0x45730e['repository']['getRevisions']();let _0xcb7133=null;const _0x1b61ed=this['editor']['plugins']['get']('RevisionViewer');_0x1b61ed['adapter']=_0x45730e['adapter'],_0x1b61ed['bind']('isEnabled')['to'](_0x45730e),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x4bb10a,'isReadOnly',_0x3ee316=>!_0x3ee316);for(const _0x3825a7 of _0x5ea577){const _0x409cd7=null===_0x3825a7['creator'];if(_0x409cd7&&_0x3825a7['toVersion']===_0x3825a7['fromVersion'])continue;const _0x182a27=_0x3825a7['toJSON']();_0x1b61ed['addRevisionData'](_0x182a27,(_0x4ebac7,_0xf22612,_0x9e7de2)=>{if(_0x409cd7){if(_0xcb7133)_0xcb7133['_update'](_0x4ebac7,_0xf22612);else{if(!_0xf22612){const _0x22ae67=_0x9e7de2['toJSON']();_0x22ae67['id']=_0x2ce67f(),_0x45730e['saveRevision'](_0x22ae67,_0x9e7de2['toVersion'])['then'](_0x43e317=>{_0xcb7133=_0x43e317;});}}}else _0x3825a7['_update'](_0x4ebac7,_0xf22612);});}}},w),_0x23a771);}['_enhanceShowRevisionViewerCallback'](){const _0x29975c=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x240693=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x335067=this['editor']['plugins']['get']('Autosave');await _0x335067['save']();}else await _0x240693['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x303eaf=this['editor']['plugins']['get']('Dialog');_0x303eaf['isOpen']&&_0x303eaf['hide']();}const _0x4b9abf=this['_getRevisionViewerEditorConfig']();return _0x29975c(_0x4b9abf)['then'](_0x535e3b=>{return(this['_viewerEditor']=_0x535e3b,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x535e3b;})['catch'](_0x16b1cc=>(console['error'](_0x16b1cc),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2c0b15=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'](),_0x2c0b15(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x43e2ff=this['editor']['plugins']['get']('Annotations');_0x43e2ff['refreshVisibility'](),_0x43e2ff['refreshPositioning']();}})));}['_showRevisionViewer'](_0x399089){const _0x4be7e5=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x586d9c=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x216900=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x216900,_0x399089)['then'](_0x57f27f=>(_0x586d9c['style']['display']='block',_0x4be7e5['style']['display']='none',_0x57f27f));}['_closeRevisionViewer'](_0x220217){const _0x5e93f2=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x5e93f2['style']['display']='',_0x220217['destroy']();}async['_restoreRevision'](_0x4ccae7){const _0x38a49b=this['editor'],_0x4ded9e=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x3ad13e=_0x38a49b['plugins']['get']('RevisionTracker'),_0xc97ddf=_0x4ded9e['repository']['getRevision'](_0x4ccae7);let _0x594831,_0x560af8,_0x3a3a37;try{_0x594831=await _0x4ded9e['getRevisionData'](_0xc97ddf),_0x560af8=await _0x4ded9e['getRevisionRootsAttributes'](_0xc97ddf);}catch(_0xc8f217){return void console['error'](_0xc8f217);}_0x38a49b['model']['change'](_0x257de9=>{for(const _0x451b08 of Array['from'](_0x38a49b['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x257de9['removeMarker'](_0x451b08);}),_0x4ded9e['isReady']=!0x1,_0x38a49b['model']['enqueueChange'](_0xc7c89=>{_0xc7c89['setSelection'](null),_0xc7c89['removeSelectionAttribute'](_0x38a49b['model']['document']['selection']['getAttributeKeys']());const _0x3d391d=Object['keys'](_0x594831);for(const _0x510f23 of _0x38a49b['model']['document']['roots'])'$graveyard'!=_0x510f23['rootName']&&_0x510f23['isAttached']()&&!_0x3d391d['includes'](_0x510f23['rootName'])&&_0xc7c89['detachRoot'](_0x510f23);for(const _0x3251ea of _0x3d391d){let _0x182f18=_0x38a49b['model']['document']['getRoot'](_0x3251ea);_0x182f18&&_0x182f18['isAttached']()||(_0x182f18=_0xc7c89['addRoot'](_0x3251ea));const _0x3e0c13=_0x560af8[_0x3251ea],_0x5c5d9c=Object['keys'](_0x3e0c13),_0x4efe8f=_0x594831[_0x3251ea];for(const _0xc5d65e of _0x182f18['getAttributeKeys']())_0x5c5d9c['includes'](_0xc5d65e)||_0xc7c89['removeAttribute'](_0xc5d65e,_0x182f18);for(const _0x320e77 of _0x5c5d9c)_0xc7c89['setAttribute'](_0x320e77,_0x560af8[_0x3251ea][_0x320e77],_0x182f18);_0xc7c89['remove'](_0xc7c89['createRangeIn'](_0x182f18)),_0xc7c89['insert'](_0x38a49b['data']['parse'](_0x4efe8f,_0x182f18),_0x182f18,0x0);}});const _0x285f13=m(_0x38a49b['locale'],'Restored');if(_0xc97ddf['name'])_0x3a3a37=-0x1==_0xc97ddf['name']['indexOf'](_0x285f13)?_0x285f13+':\x20'+_0xc97ddf['name']:_0xc97ddf['name'];else _0x3a3a37=_0x285f13+':\x20'+(_0xc97ddf['createdAt']['toLocaleDateString'](_0x38a49b['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0xc97ddf['createdAt']['toLocaleTimeString'](_0x38a49b['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x3ad13e['saveRevision']({'name':_0x3a3a37}),_0x4ded9e['isReady']=!0x0,_0x38a49b['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ae as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
28
+ yt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x1a224c){super(_0x1a224c),this['_revisionViewer']=_0x1a224c['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x55f9ce=this['_revisionsRepository']['_revisions'],_0x574b93=this['_createRevisionActions'](),_0x339f34=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x55f9ce,_0x574b93,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',(_0x3aa958,_0x359482)=>{_0x359482['revisionViews']['on']('add',(_0x35ac39,_0x3b2959)=>{_0x3b2959['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)),_0x339f34['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x281fae=this['_revisionsRepository']['getRevision'](0x0);if(_0x281fae){const _0x41b024=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x281fae['id']);this['_revisionViewer']['compare'](_0x281fae,_0x41b024);}}['_handleRevisionSelected'](_0xc9ee92,_0x199b37){const _0x30585a=this['_revisionsRepository']['getRevision'](_0x199b37['id']),_0x2327fc=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x30585a['id']);this['_revisionViewer']['compare'](_0x30585a,_0x2327fc);}['_handleRevisionSetName'](_0x275d72,_0xf3f532){this['_revisionsRepository']['getRevision'](_0xf3f532['id'])['setName'](_0xf3f532['name']);}['_handleDiffChange'](_0x1bc95e,_0x5bc1e2,_0x42914d){const _0x49a62a=this['_revisionsRepository']['getRevisionsInDiff'](_0x42914d);_0x49a62a['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x49a62a),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x49a62a[0x0]));}['_createRevisionActions'](){const _0x551a08=this['editor'],_0x35cb77=w['availableRevisionActions'],_0x38e6f3=_0x551a08['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x38e6f3['length'])return _0x38e6f3['map'](_0x5831ea=>{const _0x6d51e1='string'==typeof _0x5831ea?Object['assign']({},_0x35cb77[_0x5831ea]):_0x5831ea;return _0x6d51e1['action']=_0x6d51e1['action']['bind'](this,_0x551a08),_0x6d51e1['isVisible']&&(_0x6d51e1['isVisible']=_0x6d51e1['isVisible']['bind'](this,_0x551a08)),_0x6d51e1;});}}function yt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x4c1375},_0x3382bb)=>{const _0x51c2c7=_0x4c1375['get'](d),_0x3b1c6b=_0x51c2c7['repository'];let _0x85599b=_0x51c2c7['diff']['newRevisionId'],_0x4de726=_0x3382bb['id'];_0x3b1c6b['getIndex'](_0x85599b)>_0x3b1c6b['getIndex'](_0x4de726)&&([_0x85599b,_0x4de726]=[_0x4de726,_0x85599b]),_0x51c2c7['compare'](_0x85599b,_0x4de726);},'isVisible':({plugins:_0x3fdf42},_0x20fb6d)=>{const _0x1f48cf=_0x3fdf42['get'](d);return!(_0x1f48cf['repository']['getRevisionsInDiff'](_0x1f48cf['diff'])['length']>0x2)&&!_0x20fb6d['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x26a34f,{id:_0x25e12f})=>{_0x26a34f['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x25e12f);},'isVisible':({plugins:_0x60682d},_0x1df088)=>!!_0x60682d['get'](d)['repository']['getLaterVisibleRevision'](_0x1df088['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x4114d1},{id:_0x2f7fb1,revisionNameView:_0x5ccd6f})=>{const _0x3b18aa=_0x4114d1['get'](d),_0x428156=_0x3b18aa['repository']['getEarlierVisibleRevision'](_0x2f7fb1);_0x3b18aa['compare'](_0x2f7fb1,_0x428156),_0x5ccd6f['focus'](),_0x5ccd6f['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x5d53a3,_0x51d672){super(_0x5d53a3),this['_view']=_0x51d672,this['_toolbarConfig']=ot(_0x5d53a3['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0xdafa9a){const _0x193fb0=this['editor'],_0x4648d2=this['view'],_0x51ed70=_0x193fb0['editing']['view'],_0x339779=_0x4648d2['editable'],_0x413ee2=_0x51ed70['document']['getRoot']();_0x339779['name']=_0x413ee2['rootName'],_0x4648d2['render']();const _0x84f086=_0x339779['element'];this['setEditableElement'](_0x339779['name'],_0x84f086),_0x4648d2['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x51ed70['attachDomRoot'](_0x84f086),this['_elementReplacer']['replace'](_0xdafa9a,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x5d3473=this['view'],_0x4375cf=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x4375cf['detachDomRoot'](_0x5d3473['editable']['name']),_0x5d3473['destroy']();}['_initToolbar'](){const _0x2b74d0=this['view'];_0x2b74d0['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x2b74d0['stickyPanel']['limiterElement']=_0x2b74d0['element'],_0x2b74d0['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x4f6fd8})=>_0x4f6fd8),_0x2b74d0['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x2b74d0['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x40863c,_0x10ca77,_0x133c01={}){super(_0x40863c),this['stickyPanel']=new ut(_0x40863c),this['toolbar']=new lt(_0x40863c,{'shouldGroupWhenFull':_0x133c01['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x40863c,_0x10ca77);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
+ it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x43ea73,_0x3916ae){super(_0x3916ae),this['sourceElement']=_0x43ea73,this['model']['document']['createRoot']();const _0xdcf6e1=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0xdcf6e1);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x7cf4c7,_0x441497){const _0x19c2a0=new this(_0x7cf4c7,_0x441497);return await _0x19c2a0['initPlugins'](),await _0x19c2a0['ui']['init'](_0x7cf4c7),await _0x19c2a0['data']['init'](_0x19c2a0['config']['get']('initialData')||''),_0x19c2a0['fire']('ready'),_0x19c2a0;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class bt extends _0x49d6a4{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5a898e){function _0x3875fb(_0x441372){return _0x441372['map'](_0x501c2b=>String['fromCharCode'](_0x501c2b))['join']('');}super(_0x5a898e),this['result']='end',_0x5a898e[_0x3875fb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3875fb([0x76,0x69,0x65,0x77])][_0x3875fb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3875fb([0x61,0x75,0x74,0x6f]),_0x5a898e[_0x3875fb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3875fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3875fb([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3875fb([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3875fb([0x6f,0x6b])});}}class k extends _0x49d6a4{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x46a390){if(super(_0x46a390),!this['editor']['config']['get']('revisionHistory'))throw new _0x3f0836('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x2315ab=>this['_showRevisionViewer']({..._0x2315ab,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x13ea8f=>this['_closeRevisionViewer'](_0x13ea8f)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x36605b=>this['_restoreRevision'](_0x36605b)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x380c6e){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x380c6e;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x1add8a){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x1add8a);}['getRevision'](_0x33c1b3){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x33c1b3);}['getRevisions'](_0x467a23){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x467a23||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x2c4fa4=this['editor'],_0x386bbf=_0x1623eb(_0x2c4fa4,p),_0x5d5a12=_0x2c4fa4['plugins']['get']('RevisionTracker'),_0x3e57af=_0x2c4fa4['plugins']['get']('Users')['users'];return _0x386bbf['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x386bbf['lazyRoots'],(_0x386bbf['plugins']['push'](bt,d,g,class extends _0x49d6a4{static get['requires'](){return[d,'Users'];}['init'](){const _0x48c235=this['editor']['plugins']['get']('Users');for(const _0x4a782b of _0x3e57af)_0x4a782b['isAnonymous']||_0x48c235['getUser'](_0x4a782b['id'])||_0x48c235['addUser'](_0x4a782b);const _0x43bb01=_0x5d5a12['repository']['getRevisions']();let _0x45a023=null;const _0x18801e=this['editor']['plugins']['get']('RevisionViewer');_0x18801e['adapter']=_0x5d5a12['adapter'],_0x18801e['bind']('isEnabled')['to'](_0x5d5a12),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x2c4fa4,'isReadOnly',_0x5f3f23=>!_0x5f3f23);for(const _0xbe5845 of _0x43bb01){const _0x5dcd70=null===_0xbe5845['creator'];if(_0x5dcd70&&_0xbe5845['toVersion']===_0xbe5845['fromVersion'])continue;const _0x27f0d2=_0xbe5845['toJSON']();_0x18801e['addRevisionData'](_0x27f0d2,(_0x5db954,_0x349476,_0xdbdca)=>{if(_0x5dcd70){if(_0x45a023)_0x45a023['_update'](_0x5db954,_0x349476);else{if(!_0x349476){const _0xf15132=_0xdbdca['toJSON']();_0xf15132['id']=_0x3333c6(),_0x5d5a12['saveRevision'](_0xf15132,_0xdbdca['toVersion'])['then'](_0x3a66b5=>{_0x45a023=_0x3a66b5;});}}}else _0xbe5845['_update'](_0x5db954,_0x349476);});}}},w),_0x386bbf);}['_enhanceShowRevisionViewerCallback'](){const _0x4fb0e9=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x37dddf=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x5963e7=this['editor']['plugins']['get']('Autosave');await _0x5963e7['save']();}else await _0x37dddf['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x392bd9=this['editor']['plugins']['get']('Dialog');_0x392bd9['isOpen']&&_0x392bd9['hide']();}const _0x1f11ee=this['_getRevisionViewerEditorConfig']();return _0x4fb0e9(_0x1f11ee)['then'](_0x3271be=>{return(this['_viewerEditor']=_0x3271be,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x3271be;})['catch'](_0x40752e=>(console['error'](_0x40752e),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0xabd85b=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'](),_0xabd85b(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x436f3d=this['editor']['plugins']['get']('Annotations');_0x436f3d['refreshVisibility'](),_0x436f3d['refreshPositioning']();}})));}['_showRevisionViewer'](_0x250e05){const _0x313180=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x2a44bf=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x53a3ff=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x53a3ff,_0x250e05)['then'](_0x1cff74=>(_0x2a44bf['style']['display']='block',_0x313180['style']['display']='none',_0x1cff74));}['_closeRevisionViewer'](_0x5d37c2){const _0x4e1332=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x4e1332['style']['display']='',_0x5d37c2['destroy']();}async['_restoreRevision'](_0x5ca141){const _0x37a45d=this['editor'],_0x5b1a4a=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x396c1b=_0x37a45d['plugins']['get']('RevisionTracker'),_0x3968d5=_0x5b1a4a['repository']['getRevision'](_0x5ca141);let _0x2ba9bc,_0x347a44,_0x203a93;try{_0x2ba9bc=await _0x5b1a4a['getRevisionData'](_0x3968d5),_0x347a44=await _0x5b1a4a['getRevisionRootsAttributes'](_0x3968d5);}catch(_0x50c9ea){return void console['error'](_0x50c9ea);}_0x37a45d['model']['change'](_0x537574=>{for(const _0x57b009 of Array['from'](_0x37a45d['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x537574['removeMarker'](_0x57b009);}),_0x5b1a4a['isReady']=!0x1,_0x37a45d['model']['enqueueChange'](_0x1d4ba5=>{_0x1d4ba5['setSelection'](null),_0x1d4ba5['removeSelectionAttribute'](_0x37a45d['model']['document']['selection']['getAttributeKeys']());const _0x12e2fd=Object['keys'](_0x2ba9bc);for(const _0x5bb884 of _0x37a45d['model']['document']['roots'])'$graveyard'!=_0x5bb884['rootName']&&_0x5bb884['isAttached']()&&!_0x12e2fd['includes'](_0x5bb884['rootName'])&&_0x1d4ba5['detachRoot'](_0x5bb884);for(const _0x776a02 of _0x12e2fd){let _0x5f275=_0x37a45d['model']['document']['getRoot'](_0x776a02);_0x5f275&&_0x5f275['isAttached']()||(_0x5f275=_0x1d4ba5['addRoot'](_0x776a02));const _0x5e1382=_0x347a44[_0x776a02],_0x1c2dd9=Object['keys'](_0x5e1382),_0x1c7017=_0x2ba9bc[_0x776a02];for(const _0x865cc8 of _0x5f275['getAttributeKeys']())_0x1c2dd9['includes'](_0x865cc8)||_0x1d4ba5['removeAttribute'](_0x865cc8,_0x5f275);for(const _0x49ecc0 of _0x1c2dd9)_0x1d4ba5['setAttribute'](_0x49ecc0,_0x347a44[_0x776a02][_0x49ecc0],_0x5f275);_0x1d4ba5['remove'](_0x1d4ba5['createRangeIn'](_0x5f275)),_0x1d4ba5['insert'](_0x37a45d['data']['parse'](_0x1c7017,_0x5f275),_0x5f275,0x0);}});const _0x5f4851=m(_0x37a45d['locale'],'Restored');if(_0x3968d5['name'])_0x203a93=-0x1==_0x3968d5['name']['indexOf'](_0x5f4851)?_0x5f4851+':\x20'+_0x3968d5['name']:_0x3968d5['name'];else _0x203a93=_0x5f4851+':\x20'+(_0x3968d5['createdAt']['toLocaleDateString'](_0x37a45d['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3968d5['createdAt']['toLocaleTimeString'](_0x37a45d['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x396c1b['saveRevision']({'name':_0x203a93}),_0x5b1a4a['isReady']=!0x0,_0x37a45d['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,de as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};