@ckeditor/ckeditor5-revision-history 44.3.0-alpha.6 → 44.3.0-alpha.7

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 _0x109273,uid as _0x4db448,Collection as _0xb964f8,logWarning as _0xc6ff61,FocusTracker as _0x4458ed,KeystrokeHandler as _0x29a108,scrollViewportToShowTarget as _0x58b6c1,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x54ef78}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x5635ac,set as _0x123af5,unset as _0x48c697,isEqual as _0x159c81}from'lodash-es';import{Plugin as _0x378b96,PendingActions as _0x31d459,icons as _0x3f261c,Command as _0x3628b8,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x1d29ae,getMarkerDomElement as _0x5ef809,ConfirmMixin as _0x1be77a,sanitizeEditorConfig as _0x36cb9f}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x32e5d2,Element as ft,Range as vt,ViewUIElement as _0x490b15,ViewRawElement as _0x2b256d,ViewEmptyElement as _0x235083,ViewAttributeElement as _0x3c6c72,ViewContainerElement as _0x1dd77a,Position as gt,ViewText as _0x729482,ViewElement as _0x2e9996,DocumentFragment as mt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x22e8ac,injectCssTransitionDisabler as ts,submitHandler as _0x8c3a13,LabeledFieldView as nt,createLabeledInputText as _0x7e5b5f,createDropdown as _0x2a3493,ListView as te,ListItemView as _0x529ad3,ButtonView as _0x500420,MenuBarMenuView as _0x22881e,MenuBarMenuListView as _0x413dc3,MenuBarMenuListItemView as _0x32adee,MenuBarMenuListItemButtonView as _0x45fa2f,ContextualBalloon as _0x181570,ToolbarSeparatorView as _0xb6130c,IconView as _0x378eba,addListToDropdown as _0x542c01,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 _0x1c90b4}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
- _0x109273(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x3b5aa3){super(),this['id']=_0x3b5aa3['id']||_0x4db448(),this['creator']=_0x3b5aa3['creator']||null,this['authors']=_0x3b5aa3['authors']||[],this['diffData']=_0x3b5aa3['diffData']||null,this['toVersion']=_0x3b5aa3['toVersion']||0x0,this['fromVersion']=_0x3b5aa3['fromVersion']||0x0,this['set']('name',_0x3b5aa3['name']||''),this['set']('createdAt',_0x3b5aa3['createdAt']||new Date()),this['set']('attributes',_0x3b5aa3['attributes']||{});}['setName'](_0x210b3c){this['_update']({'name':_0x210b3c});}['setAttribute'](_0x402045,_0x5dede7){const _0x5c65e2=_0x5635ac(this['attributes']);_0x123af5(_0x5c65e2,_0x402045,_0x5dede7),this['_update']({'attributes':_0x5c65e2});}['removeAttribute'](_0x1ffc97){const _0x22cb22=_0x5635ac(this['attributes']);_0x48c697(_0x22cb22,_0x1ffc97),this['_update']({'attributes':_0x22cb22});}['_update'](_0x29fea7,_0x1b2f54=!0x1){let _0x15e8e9=!0x1;const _0x399f76={'id':this['id']},_0x4eb126=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x3cc5cf of _0x4eb126){const _0x1584a5=_0x29fea7[_0x3cc5cf];void 0x0!==_0x1584a5&&_0x1584a5!==this[_0x3cc5cf]&&(this[_0x3cc5cf]=_0x1584a5,_0x399f76[_0x3cc5cf]=_0x1584a5,_0x15e8e9=!0x0);}_0x15e8e9&&(_0x399f76['authors']&&(_0x399f76['authorsIds']=_0x399f76['authors']['map'](_0x323854=>_0x323854['id']),delete _0x399f76['authors']),this['fire']('_update',_0x399f76,_0x1b2f54));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x26dd69=>_0x26dd69['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x378b96{['_revisions'];static get['requires'](){return[_0x1d29ae];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x17e74d){super(_0x17e74d),this['_revisions']=new _0xb964f8();}['afterInit'](){!async function(_0x31c64a){const _0x490990=_0x4aae5c([0x73,0x51,0x30,0x4e,0x57,0x38,0x44,0x50,0x4c,0x32,0x74,0x49,0x46,0x33,0x5a,0x76,0x4a,0x78,0x6d,0x6e,0x67,0x53,0x66,0x65,0x55,0x4f,0x71,0x59,0x35,0x64,0x58,0x77,0x61,0x45,0x39,0x41,0x70,0x63,0x68,0x47,0x54,0x4d,0x75,0x34,0x31,0x6f,0x6b,0x52,0x37,0x43,0x4b,0x48,0x62,0x36,0x72,0x7a,0x56,0x6c,0x69,0x42,0x6a,0x79]),_0xe7e1d=0xeb829,_0x25b4db=0x3a758cdb,_0x506b7e=0x3a72edf3^_0x25b4db,_0x2c1562=window[_0x4aae5c([0x44,0x61,0x74,0x65])][_0x4aae5c([0x6e,0x6f,0x77])](),_0x1a974b=_0x31c64a[_0x4aae5c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1e2283=new window[(_0x4aae5c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40e997=>{_0x1a974b[_0x4aae5c([0x6f,0x6e,0x63,0x65])](_0x4aae5c([0x72,0x65,0x61,0x64,0x79]),_0x40e997);}),_0x448fa8={[_0x4aae5c([0x6b,0x74,0x79])]:_0x4aae5c([0x45,0x43]),[_0x4aae5c([0x75,0x73,0x65])]:_0x4aae5c([0x73,0x69,0x67]),[_0x4aae5c([0x63,0x72,0x76])]:_0x4aae5c([0x50,0x2d,0x32,0x35,0x36]),[_0x4aae5c([0x78])]:_0x4aae5c([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]),[_0x4aae5c([0x79])]:_0x4aae5c([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]),[_0x4aae5c([0x61,0x6c,0x67])]:_0x4aae5c([0x45,0x53,0x32,0x35,0x36])},_0x54c799=_0x1a974b[_0x4aae5c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4aae5c([0x67,0x65,0x74])](_0x4aae5c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x27db8f(){let _0x4e1aa9,_0x1e8294=null,_0x2f4d22=null;try{if(_0x54c799==_0x4aae5c([0x47,0x50,0x4c]))return _0x4aae5c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4e1aa9=_0x3234ae(),!_0x4e1aa9)return _0x4aae5c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4e1aa9[_0x4aae5c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2f4d22=_0x595d51(_0x4e1aa9[_0x4aae5c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4e1aa9[_0x4aae5c([0x6a,0x74,0x69])])),await _0x4e929d()?_0x34ee66()?_0x33f537()?_0x4aae5c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x48b5f4()?(_0x4e1aa9[_0x4aae5c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4aae5c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1e8294=_0x59076b(_0x4aae5c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4e1aa9[_0x4aae5c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4aae5c([0x74,0x72,0x69,0x61,0x6c])&&(_0x1e8294=_0x59076b(_0x4aae5c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5034bd()):_0x4aae5c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4aae5c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4aae5c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x45c0ea){return _0x4aae5c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x33f537(){const _0x281f9c=[_0x4aae5c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4aae5c([0x74,0x72,0x69,0x61,0x6c])][_0x4aae5c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e1aa9[_0x4aae5c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2c1562/0x3e8:0xe10*_0x506b7e;return _0x4e1aa9[_0x4aae5c([0x65,0x78,0x70])]<_0x281f9c;}function _0x34ee66(){const _0x1eaf62=_0x4e1aa9[_0x4aae5c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1eaf62)return!0x1;if(_0x1eaf62[_0x4aae5c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4aae5c([0x2a])))return!0x0;if(_0x1eaf62[_0x4aae5c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4aae5c([0x52,0x48])))return!0x0;if(_0x1eaf62[_0x4aae5c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4aae5c([0x52,0x52,0x48]))){if(_0x5eac23())return!0x0;if(_0x11368c()||_0x57c423())return!0x0;}return!0x1;}function _0x48b5f4(){const _0x1e60c5=_0x4e1aa9[_0x4aae5c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1e60c5||0x0==_0x1e60c5[_0x4aae5c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1d01b8}=new URL(window[_0x4aae5c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1e60c5[_0x4aae5c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d01b8))return!0x0;const _0xd438f6=_0x1d01b8[_0x4aae5c([0x73,0x70,0x6c,0x69,0x74])](_0x4aae5c([0x2e]));return _0x1e60c5[_0x4aae5c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xce92df=>_0xce92df[_0x4aae5c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4aae5c([0x2a])))[_0x4aae5c([0x6d,0x61,0x70])](_0x19b656=>_0x19b656[_0x4aae5c([0x73,0x70,0x6c,0x69,0x74])](_0x4aae5c([0x2e])))[_0x4aae5c([0x73,0x6f,0x6d,0x65])](_0x5db695=>_0xd438f6[_0x4aae5c([0x65,0x76,0x65,0x72,0x79])]((_0xb5373c,_0x2cf7dc)=>_0x5db695[_0x2cf7dc]===_0xb5373c||_0x5db695[_0x2cf7dc]===_0x4aae5c([0x2a])));}function _0x5034bd(){return _0x1e8294&&_0x2f4d22?new window[(_0x4aae5c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xc7ff35,_0x5eb9bf)=>{_0x1e8294[_0x4aae5c([0x74,0x68,0x65,0x6e])](_0xc7ff35,_0x5eb9bf),_0x2f4d22[_0x4aae5c([0x74,0x68,0x65,0x6e])](_0x3f1ad3=>{_0x3f1ad3!=_0x4aae5c([0x56,0x61,0x6c,0x69,0x64])&&_0xc7ff35(_0x3f1ad3);},_0x5eb9bf);}):_0x1e8294||_0x2f4d22||_0x4aae5c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x595d51(_0x54f305,_0x1ba2b0){return new window[(_0x4aae5c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x190ab8=>{if(_0x255ba8())return _0x190ab8(_0x4aae5c([0x56,0x61,0x6c,0x69,0x64]));_0x383a76(),_0x1a974b[_0x4aae5c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4aae5c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3e955a=!0x1;const _0x4c8054=_0x4db448();function _0x419a54(_0x371de2){return!!_0x371de2&&(typeof _0x371de2===_0x4aae5c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x371de2===_0x4aae5c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x371de2[_0x4aae5c([0x74,0x68,0x65,0x6e])]===_0x4aae5c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x371de2[_0x4aae5c([0x63,0x61,0x74,0x63,0x68])]===_0x4aae5c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x148c63(_0x20b2b5){_0x4208aa(_0x20b2b5)[_0x4aae5c([0x74,0x68,0x65,0x6e])](_0x21bb49=>{if(!_0x21bb49||_0x21bb49[_0x4aae5c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4aae5c([0x6f,0x6b]))return _0x4aae5c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x583285(_0x1203f4(_0x4c8054+_0x1ba2b0))!=_0x21bb49[_0x4aae5c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4aae5c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4aae5c([0x56,0x61,0x6c,0x69,0x64]);})[_0x4aae5c([0x74,0x68,0x65,0x6e])](_0x2f41fc=>(_0x115946(),_0x2f41fc),()=>{const _0x2252b5=_0x1cb3e6();return null==_0x2252b5?(_0x115946(),_0x4aae5c([0x56,0x61,0x6c,0x69,0x64])):_0x4aae5c(_0x2c1562-_0x2252b5>(0x1e7908db^_0x25b4db)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4aae5c([0x74,0x68,0x65,0x6e])](_0x190ab8)[_0x4aae5c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x190ab8(_0x4aae5c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x271c89=0x3a43625b^_0x25b4db;function _0x115946(){const _0x37dd71=_0x4aae5c([0x6c,0x6c,0x63,0x74,0x2d])+_0x583285(_0x1203f4(_0x54f305)),_0x40494d=_0x874e3(_0x583285(window[_0x4aae5c([0x4d,0x61,0x74,0x68])][_0x4aae5c([0x63,0x65,0x69,0x6c])](_0x2c1562/_0x271c89)));window[_0x4aae5c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4aae5c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x37dd71,_0x40494d);}function _0x1cb3e6(){const _0x4a4bde=_0x4aae5c([0x6c,0x6c,0x63,0x74,0x2d])+_0x583285(_0x1203f4(_0x54f305)),_0x278fe9=window[_0x4aae5c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4aae5c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4a4bde);return _0x278fe9?window[_0x4aae5c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x874e3(_0x278fe9),0x10)*_0x271c89:null;}function _0x4208aa(_0x5ca30a){return new window[(_0x4aae5c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e8375,_0x1b0f28)=>{_0x5ca30a[_0x4aae5c([0x74,0x68,0x65,0x6e])](_0x4e8375,_0x1b0f28),window[_0x4aae5c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1b0f28,0x3a74581b^_0x25b4db);});}}_0x1a974b[_0x4aae5c([0x6f,0x6e])](_0x4aae5c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5cdfd0,_0x53bfb4)=>{if(_0x53bfb4[0x0]!=_0x54f305)return _0x190ab8(_0x4aae5c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x53bfb4[0x1]={..._0x53bfb4[0x1],[_0x4aae5c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4c8054};},{[_0x4aae5c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4aae5c([0x68,0x69,0x67,0x68])}),_0x1a974b[_0x4aae5c([0x6f,0x6e])](_0x4aae5c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4b5c1a=>{_0x419a54(_0x4b5c1a[_0x4aae5c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3e955a=!0x0,_0x148c63(_0x4b5c1a[_0x4aae5c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4aae5c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4aae5c([0x6c,0x6f,0x77])}),_0x1e2283[_0x4aae5c([0x74,0x68,0x65,0x6e])](()=>{_0x3e955a||_0x190ab8(_0x4aae5c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x255ba8(){return _0x1a974b[_0x4aae5c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4aae5c([0x76,0x69,0x65,0x77])][_0x4aae5c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4aae5c([0x61,0x75,0x74,0x6f]);}function _0x383a76(){_0x1a974b[_0x4aae5c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4aae5c([0x76,0x69,0x65,0x77])][_0x4aae5c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4aae5c([0x61,0x75,0x74,0x6f]);}}function _0x59076b(_0x13a776){const _0x4e7757=[new window[(_0x4aae5c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54d38b=>setTimeout(_0x54d38b,0x3a7cb217^_0x25b4db)),_0x1e2283[_0x4aae5c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4aae5c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56bdbd=>{const _0x33d12d=0x3a758cdc^_0x25b4db,_0x3d4a2c=_0x31c64a[_0x4aae5c([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x193846(){_0x3d4a2c[_0x4aae5c([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x33d12d&&_0x56bdbd();}_0x193846(),_0x3d4a2c[_0x4aae5c([0x6f,0x6e])](_0x4aae5c([0x61,0x64,0x64]),_0x193846);})),new window[(_0x4aae5c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e0dfe=>{function _0x32a3cd(){for(const _0x25c3c in window)if(window[_0x4aae5c([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4aae5c([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x25c3c))&&window[_0x25c3c]==_0xe7e1d)return _0x5e0dfe();_0x1a974b[_0x4aae5c([0x73,0x74,0x61,0x74,0x65])]!=_0x4aae5c([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4aae5c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x32a3cd,0x3a759f53^_0x25b4db);}_0x41d813(_0x4aae5c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x32a3cd();})];return window[_0x4aae5c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4aae5c([0x72,0x61,0x63,0x65])](_0x4e7757)[_0x4aae5c([0x74,0x68,0x65,0x6e])](()=>_0x13a776);}async function _0xa09236(){if(await _0x1e2283,_0x41d813(_0x4aae5c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x35ff97=_0x31c64a[_0x4aae5c([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x20d986=_0x31c64a[_0x4aae5c([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])](_0x35ff97[_0x4aae5c([0x69,0x64])]),_0x41a54e=_0x357328(_0x4aae5c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x41a54e[_0x4aae5c([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x35ff97['id'],_0x20d986?_0x20d986['id']:null,!0x0),_0x41a54e[_0x4aae5c([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4aae5c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x41a54e[_0x4aae5c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x41a54e[_0x4aae5c([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x6b2859,void(_0x41a54e[_0x4aae5c([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x6b2859);}if(_0x41d813(_0x4aae5c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x524db7=_0x357328(_0x4aae5c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x524db7[_0x4aae5c([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4aae5c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x524db7[_0x4aae5c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x524db7[_0x4aae5c([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x6b2859,_0x524db7[_0x4aae5c([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x6b2859;}_0x1a974b[_0x4aae5c([0x6d,0x6f,0x64,0x65,0x6c])][_0x4aae5c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x6b2859,_0x1a974b[_0x4aae5c([0x6d,0x6f,0x64,0x65,0x6c])][_0x4aae5c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x6b2859,_0x1a974b[_0x4aae5c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4aae5c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5eac23(){return _0x41d813(_0x4aae5c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x357328(_0x4aae5c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4aae5c([0x73,0x74,0x61,0x74,0x65])]==_0x4aae5c([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x11368c(){return _0x41d813(_0x4aae5c([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 _0x57c423(){return _0x41d813(_0x4aae5c([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x56a4cc(_0x487dac){const _0x49cca9=_0x2d09c4();_0x1a974b[_0x49cca9]=_0x4aae5c([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])+_0x487dac,_0x487dac[_0x4aae5c([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4aae5c([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x2d09c4()]=_0xe7e1d),_0x487dac!=_0x4aae5c([0x56,0x61,0x6c,0x69,0x64])&&_0xa09236();}function _0x2d09c4(){const _0xae5f1e=window[_0x4aae5c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4aae5c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4aae5c([0x6e,0x6f,0x77])]())[_0x4aae5c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4aae5c([0x2e]),'');let _0x3f4c03=_0x4aae5c([0x73]);for(let _0x390f88=0x0;_0x390f88<_0xae5f1e[_0x4aae5c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x390f88+=0x2){let _0x2fb45d=window[_0x4aae5c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xae5f1e[_0x4aae5c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x390f88,_0x390f88+0x2));_0x2fb45d>=_0x490990[_0x4aae5c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2fb45d-=_0x490990[_0x4aae5c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3f4c03+=_0x490990[_0x2fb45d];}return _0x3f4c03;}function _0x3234ae(){const _0x9b2773=_0x54c799[_0x4aae5c([0x73,0x70,0x6c,0x69,0x74])](_0x4aae5c([0x2e]));if(0x3!=_0x9b2773[_0x4aae5c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2c914d(_0x9b2773[0x1]);function _0x2c914d(_0x21e0a8){const _0x34cd13=_0x49bf1a(_0x21e0a8);return _0x34cd13&&_0x15d7e5()?_0x34cd13:null;function _0x15d7e5(){const _0x32f98e=_0x34cd13[_0x4aae5c([0x6a,0x74,0x69])],_0x58a90d=window[_0x4aae5c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x32f98e[_0x4aae5c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x32f98e[_0x4aae5c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xca3203={..._0x34cd13,[_0x4aae5c([0x6a,0x74,0x69])]:_0x32f98e[_0x4aae5c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x32f98e[_0x4aae5c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xca3203[_0x4aae5c([0x76,0x63])],_0x1203f4(_0xca3203)==_0x58a90d;}}}async function _0x4e929d(){let _0x191c20=!0x0;try{const _0x1e8c46=_0x54c799[_0x4aae5c([0x73,0x70,0x6c,0x69,0x74])](_0x4aae5c([0x2e])),[_0x18ef18,_0x483a14,_0x4c796e]=_0x1e8c46;return _0x2b475f(_0x18ef18),await _0x3cf457(_0x18ef18,_0x483a14,_0x4c796e),_0x191c20;}catch(_0x1c8c1a){return!0x1;}function _0x2b475f(_0x532a26){const _0x26489d=_0x49bf1a(_0x532a26);_0x26489d&&_0x26489d[_0x4aae5c([0x61,0x6c,0x67])]==_0x4aae5c([0x45,0x53,0x32,0x35,0x36])||(_0x191c20=!0x1);}async function _0x3cf457(_0x203b6f,_0x4d17a9,_0x122a0d){const _0x158235=window[_0x4aae5c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4aae5c([0x66,0x72,0x6f,0x6d])](_0x47bd47(_0x122a0d),_0xdeaa97=>_0xdeaa97[_0x4aae5c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1ff3fa=new window[(_0x4aae5c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4aae5c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x203b6f+_0x4aae5c([0x2e])+_0x4d17a9),_0x523cba=window[_0x4aae5c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4aae5c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x523cba)return;const _0x727260=await _0x523cba[_0x4aae5c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4aae5c([0x6a,0x77,0x6b]),_0x448fa8,{[_0x4aae5c([0x6e,0x61,0x6d,0x65])]:_0x4aae5c([0x45,0x43,0x44,0x53,0x41]),[_0x4aae5c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4aae5c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4aae5c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x523cba[_0x4aae5c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4aae5c([0x6e,0x61,0x6d,0x65])]:_0x4aae5c([0x45,0x43,0x44,0x53,0x41]),[_0x4aae5c([0x68,0x61,0x73,0x68])]:{[_0x4aae5c([0x6e,0x61,0x6d,0x65])]:_0x4aae5c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x727260,_0x158235,_0x1ff3fa)||(_0x191c20=!0x1);}}function _0x49bf1a(_0x55a5b6){return _0x55a5b6[_0x4aae5c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4aae5c([0x65,0x79]))?JSON[_0x4aae5c([0x70,0x61,0x72,0x73,0x65])](_0x47bd47(_0x55a5b6)):null;}function _0x47bd47(_0x4b988a){return window[_0x4aae5c([0x61,0x74,0x6f,0x62])](_0x4b988a[_0x4aae5c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4aae5c([0x2b]))[_0x4aae5c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4aae5c([0x2f])));}function _0x1203f4(_0x164f2d){let _0x3bee7d=0x1505;function _0x225d76(_0x343d71){for(let _0x559851=0x0;_0x559851<_0x343d71[_0x4aae5c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x559851++){const _0x2feccf=_0x343d71[_0x4aae5c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x559851);_0x3bee7d=(_0x3bee7d<<0x5)+_0x3bee7d+_0x2feccf,_0x3bee7d&=_0x3bee7d;}}function _0x8aab78(_0x46adad){Array[_0x4aae5c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x46adad)?_0x46adad[_0x4aae5c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x8aab78):_0x46adad&&typeof _0x46adad==_0x4aae5c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4aae5c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x46adad)[_0x4aae5c([0x73,0x6f,0x72,0x74])]()[_0x4aae5c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1c8766,_0x3fab9b])=>{_0x225d76(_0x1c8766),_0x8aab78(_0x3fab9b);}):_0x225d76(window[_0x4aae5c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x46adad));}return _0x8aab78(_0x164f2d),_0x3bee7d>>>0x0;}function _0x583285(_0x263228){return _0x263228[_0x4aae5c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4aae5c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4aae5c([0x30]));}function _0x874e3(_0x5ada7a){return _0x5ada7a[_0x4aae5c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4aae5c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4aae5c([0x6a,0x6f,0x69,0x6e])]('');}function _0x41d813(_0x5a5ead){return _0x1a974b[_0x4aae5c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4aae5c([0x68,0x61,0x73])](_0x5a5ead);}function _0x357328(_0x1010f4){return _0x1a974b[_0x4aae5c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4aae5c([0x67,0x65,0x74])](_0x1010f4);}function _0x6b2859(){}function _0x4aae5c(_0x22ed8e){return _0x22ed8e['map'](_0x5b638e=>String['fromCharCode'](_0x5b638e))['join']('');}_0x56a4cc(await _0x27db8f());}(this);}['createRevision'](_0x481dac){const _0x4cb9af=this['editor']['plugins']['get']('Users');return new a({'id':_0x481dac['id'],'name':_0x481dac['name'],'creator':_0x481dac['creatorId']?_0x4cb9af['getUser'](_0x481dac['creatorId']):null,'diffData':_0x481dac['diffData']||_0x481dac['data'],'authors':_0x481dac['authorsIds']['map'](_0x229b31=>_0x4cb9af['getUser'](_0x229b31)),'createdAt':new Date(_0x481dac['createdAt']),'attributes':_0x481dac['attributes'],'fromVersion':_0x481dac['fromVersion'],'toVersion':_0x481dac['toVersion']});}['addRevision'](_0x5bbefe,_0x5c6252=0x0){this['_revisions']['add'](_0x5bbefe,_0x5c6252);}['getRevision'](_0xe4b546){return this['_revisions']['get'](_0xe4b546);}['getRevisions'](_0x21b0b2={'toJSON':!0x1}){const _0x591b63=Array['from'](this['_revisions']);return _0x591b63['reverse'](),_0x21b0b2['toJSON']?_0x591b63['map'](_0x60d8d7=>_0x60d8d7['toJSON']()):_0x591b63;}['getIndex'](_0x2a62ff){return this['_revisions']['getIndex'](_0x2a62ff);}['getEarlierVisibleRevision'](_0x1c0e9e){const [,_0x43c838]=this['getRevisionsIterator'](_0x1c0e9e,{'direction':'earlier'});return _0x43c838;}['getLaterVisibleRevision'](_0x1d125f){const [,_0x2552ed]=this['getRevisionsIterator'](_0x1d125f,{'direction':'later'});return _0x2552ed;}['getRevisionsInDiff'](_0x2e3b01){const _0x245bd4=[];for(const _0x48b2cd of this['getRevisionsIterator'](_0x2e3b01['newRevisionId']))if(_0x245bd4['push'](_0x48b2cd),_0x48b2cd['id']===_0x2e3b01['oldRevisionId'])break;return _0x245bd4;}*['getRevisionsIterator'](_0x77328a,{direction:_0x2d618b='earlier',filter:_0x51f4b8=()=>!0x0}={}){const _0x22f732='earlier'===_0x2d618b?0x1:-0x1;let _0xe54346=this['_revisions']['get'](_0x77328a),_0x12cc60=this['getIndex'](_0xe54346);for(yield _0xe54346;_0xe54346;){if(_0x12cc60+=_0x22f732,_0xe54346=this['getRevision'](_0x12cc60),!_0xe54346)return;_0x51f4b8(_0xe54346)&&(yield _0xe54346);}}}function m(_0x1389f7,_0x126873,_0x1ef916){const t=_0x1389f7['t'];switch(_0x126873){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'},_0x1ef916);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x1ef916);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':_0x1dd77a,'a':_0x3c6c72,'e':_0x235083,'r':_0x2b256d,'u':_0x490b15};class l extends _0x378b96{['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[_0x1d29ae,j,_0x31d459];}constructor(_0x398c7e){super(_0x398c7e),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 _0x1a4c35=_0x4db448();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x1a4c35},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 _0x39f9c9=this['repository']['getRevision'](0x0),_0x399ff8=_0x39f9c9&&null===_0x39f9c9['creator']?_0x39f9c9:null;if(this['_continueCurrentRevision']=!!_0x399ff8&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x3a8cfd=this['_source']['getCurrentRevisionId'](),_0x20391d=this['repository']['getRevision'](_0x3a8cfd);if(_0x20391d)this['_startingVersion']=_0x20391d['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x164acb=this['_source']['history']['_operations']['find'](_0x39ed77=>!_0x39ed77['_isInit']),_0x51f0e4=_0x164acb?_0x164acb['baseVersion']:this['_source']['history']['version'];_0x39f9c9?(_0x39f9c9['toVersion']<_0x51f0e4&&_0x39f9c9['_update']({'toVersion':_0x51f0e4}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x399ff8['id'],this['_startingVersion']=_0x399ff8['fromVersion']):(this['_startingVersion']=_0x39f9c9['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x51f0e4,this['_continueCurrentRevision']=!0x1);}}else _0x399ff8&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x399ff8['toVersion'],this['editor']['model']['document']['history']['version']),_0x399ff8['fromVersion']===_0x399ff8['toVersion']?(0x0!==_0x399ff8['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x399ff8['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x399ff8['id'],this['_startingVersion']=_0x399ff8['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',_0x28b2b5=>!_0x28b2b5),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xc437c5=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3f5732;for(const _0xb8d7f0 in _0xc437c5){const _0x1a1ba6=_0xb8d7f0,_0x14bbb1=_0xc437c5[_0x1a1ba6];if('revisionHistoryLicenseKeyValid'==_0x14bbb1||'revisionHistoryLicenseKeyInvalid'==_0x14bbb1||'revisionHistoryLicenseKeyExpired'==_0x14bbb1||'revisionHistoryLicenseKeyDomainLimit'==_0x14bbb1||'revisionHistoryLicenseKeyNotAllowed'==_0x14bbb1||'revisionHistoryLicenseKeyEvaluationLimit'==_0x14bbb1||'revisionHistoryLicenseKeyTrialLimit'==_0x14bbb1||'revisionHistoryLicenseKeyUsageLimit'==_0x14bbb1){delete _0xc437c5[_0x1a1ba6],_0x3f5732=_0x14bbb1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x3f5732&&_0xc437c5['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x3f5732&&_0xc437c5['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x3f5732&&_0xc437c5['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x3f5732&&_0xc437c5['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x3f5732&&_0xc437c5['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x3f5732&&_0xc437c5['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x3f5732&&_0xc437c5['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x39aac1=this['repository']['getRevision'](0x0),_0x3188b3=await this['getRevisionDocumentData'](_0x39aac1),_0x3bde91=await this['getRevisionRootsAttributes'](_0x39aac1);this['_replaceEditorDataWithRevisionData'](_0x3188b3,_0x3bde91);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x578b54){this['_source']=_0x578b54;}async['update'](){const _0x1c0405=await this['_source']['getLatestVersion']();if(_0x1c0405>this['currentRevision']['toVersion']){await this['_loadState']();const _0x52f6de=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x1c0405});_0x52f6de['authors']=_0x52f6de['authorsIds']['map'](_0x9d7b97=>this['editor']['plugins']['get']('Users')['getUser'](_0x9d7b97)),this['currentRevision']['_update'](_0x52f6de);}}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'](_0x5c9bf6={},_0x133a82=null){const _0xda2bad=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x133a82>this['currentRevision']['toVersion']&&(_0x133a82=null),null===_0x133a82&&(_0x133a82=await this['_source']['getLatestVersion']());const _0x291d33=this['_getFromVersion'](_0x133a82),_0x6e08f=this['buildRevisionData']({'from':_0x291d33,'to':_0x133a82});if(this['currentRevision']['toVersion']<_0x133a82){const _0x534ceb=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x133a82,'to':_0x133a82});_0x534ceb['authors']=[],_0x534ceb['authorsIds']=[],_0x534ceb['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x534ceb,!0x0),delete _0x534ceb['authors'],_0xda2bad['push'](_0x534ceb);}_0x5c9bf6['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x5c9bf6['name']=_0x5c9bf6['name']||null,_0x5c9bf6['id']=_0x5c9bf6['id']||_0x4db448(),_0x5c9bf6={..._0x5c9bf6,..._0x6e08f};const _0x3d3030=this['addRevisionData'](_0x5c9bf6);_0xda2bad['push'](_0x5c9bf6);const _0x280882=this['repository']['getIndex'](_0x3d3030);if(0x0!==_0x280882){const _0xc88609=this['repository']['getRevision'](_0x280882-0x1);if(_0xc88609['fromVersion']!==_0x133a82){const _0x26bb1c=this['_revisionDataBuilder']['getData'](_0x133a82,_0xc88609['toVersion']),_0x28c3fb={'id':_0xc88609['id'],'diffData':_0x26bb1c['diffData'],'authorsIds':_0x26bb1c['authorsIds'],'authors':_0x26bb1c['authorsIds']['map'](_0x3ff4a0=>this['editor']['plugins']['get']('Users')['getUser'](_0x3ff4a0)),'fromVersion':_0x133a82};_0xc88609===this['currentRevision']&&(_0x28c3fb['createdAt']=new Date(_0x5c9bf6['createdAt']['getTime']()+0xa)),_0xc88609['_update'](_0x28c3fb,!0x0),delete _0x28c3fb['authors'],_0xda2bad['push'](_0x28c3fb);}}if(this['adapter']){for(const _0x1fc4a6 of _0xda2bad)this['_bufferUpdate'](_0x1fc4a6['id'],_0x1fc4a6,!0x0);this['sendBufferedUpdates']();}return _0x3d3030;}['addRevisionData'](_0x28a480){const _0x353e7f=this['repository']['createRevision'](_0x28a480);return this['adapter']&&_0x353e7f['on']('_update',(_0x4b2989,_0x1bc17c,_0x38091e)=>{_0x38091e||(this['_bufferUpdate'](_0x1bc17c['id'],_0x1bc17c,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x353e7f,this['_findInsertionIndex'](_0x353e7f)),_0x353e7f;}async['getRevisionDocumentData'](_0xa3da4d){await this['_loadRevisionData'](_0xa3da4d);const _0x3ca18f={};for(const _0x48c84a in _0xa3da4d['diffData']){if(_0xa3da4d['diffData'][_0x48c84a]['attachChange']&&!_0xa3da4d['diffData'][_0x48c84a]['attachChange']['isAttached'])continue;const _0x559091=this['_removeRevisionMarkers'](JSON['parse'](_0xa3da4d['diffData'][_0x48c84a]['insertions'])),_0x5c7a66=this['editor']['editing']['view']['document'],_0x2c82f4=new _0x32e5d2(_0x5c7a66,_0x559091['map'](_0x33dc96=>C(_0x33dc96,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x3ca18f[_0x48c84a]=this['editor']['data']['processor']['toData'](_0x2c82f4),this['editor']['data']['processor']['useFillerType']('default');}return _0x3ca18f;}async['getRevisionRootsAttributes'](_0x3a8229){await this['_loadRevisionData'](_0x3a8229);const _0x4d8963={};for(const _0x546ed9 in _0x3a8229['diffData'])_0x3a8229['diffData'][_0x546ed9]['attachChange']&&!_0x3a8229['diffData'][_0x546ed9]['attachChange']['isAttached']||(_0x4d8963[_0x546ed9]=_0x3a8229['diffData'][_0x546ed9]['attributesAfter']||{});return _0x4d8963;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x2a667a=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x4d1e3a=0x0;_0x4d1e3a<_0x2a667a['length'];_0x4d1e3a++){const _0xf04a2f=_0x2a667a[_0x4d1e3a];let _0x5bfcc4=!0x1;for(const _0x34482a of Object['keys'](_0xf04a2f))void 0x0===_0xf04a2f[_0x34482a]?delete _0xf04a2f[_0x34482a]:'id'!==_0x34482a&&(_0x5bfcc4=!0x0);_0x5bfcc4||(_0x2a667a[_0x4d1e3a]=null);}if(_0x2a667a=_0x2a667a['filter'](_0x2df993=>null!==_0x2df993),!_0x2a667a['length'])return;for(let _0x37b13d=0x0;_0x37b13d<_0x2a667a['length'];_0x37b13d++){const _0x1e0795=_0x2a667a[_0x37b13d];void 0x0!==_0x1e0795['fromVersion']&&void 0x0===_0x1e0795['toVersion']&&(_0x1e0795['toVersion']=this['repository']['getRevision'](_0x1e0795['id'])['toVersion']),void 0x0!==_0x1e0795['toVersion']&&void 0x0===_0x1e0795['fromVersion']&&(_0x1e0795['fromVersion']=this['repository']['getRevision'](_0x1e0795['id'])['fromVersion']);}const _0x3c3292=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x2a667a,_0x3c3292)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x11f28e=>{if(_0x11f28e){for(const _0x506028 of _0x11f28e)this['setRevisionData']({'id':_0x506028['id'],'createdAt':_0x506028['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x5bd97e,_0x52f191){let _0x1154a6=this['editor']['config']['get']('initialData'),_0x5e9955=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x1154a6){_0x1154a6={};for(const _0x315410 of this['editor']['model']['document']['getRootNames']())_0x1154a6[_0x315410]='';}if('string'==typeof _0x1154a6&&(_0x1154a6={'main':_0x1154a6}),void 0x0===_0x5e9955){_0x5e9955={};for(const _0x2ef8f4 of this['editor']['model']['document']['getRootNames']())_0x5e9955[_0x2ef8f4]={};}let _0x2eea27=!0x1;const _0x48875c=Object['keys'](_0x1154a6),_0x55e165=Object['keys'](_0x5bd97e);for(const _0xc657c6 of _0x48875c){if(_0x1154a6[_0xc657c6]!==_0x5bd97e[_0xc657c6]&&''!==_0x1154a6[_0xc657c6]['trim']()){_0x2eea27=!0x0;break;}if(!_0x159c81(_0x5e9955[_0xc657c6],_0x52f191[_0xc657c6])&&Object['keys'](_0x5e9955[_0xc657c6])['length']>0x0){_0x2eea27=!0x0;break;}}_0x2eea27||(_0x2eea27=_0x55e165['some'](_0x2a1443=>!this['editor']['model']['document']['getRoot'](_0x2a1443))),_0x2eea27&&_0xc6ff61('editor-initial-data-replaced-with-revision-data',{'editorData':_0x1154a6,'editorRootsAttributes':_0x5e9955,'revisionData':_0x5bd97e,'revisionRootsAttributes':_0x52f191}),this['editor']['config']['set']('initialData',_0x5bd97e),this['editor']['config']['set']('rootsAttributes',_0x52f191);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x59e44f=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x59e44f['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x3a4592){const _0x439522=this['repository']['getRevisions']();_0x439522['reverse']();let _0x29042b=0x0;for(;_0x29042b<_0x439522['length'];){const _0x3e9a83=_0x439522[_0x29042b];if(_0x3e9a83===this['currentRevision']){_0x29042b++;continue;}if(_0x3e9a83['id']===this['_initialRevisionId'])break;const _0x4f50fd=_0x3a4592['toVersion']-_0x3e9a83['toVersion']||_0x3a4592['fromVersion']-_0x3e9a83['fromVersion'];if(_0x4f50fd>0x0)break;if(_0x4f50fd<0x0)_0x29042b++;else{if(!_0x3a4592['creator']&&_0x3e9a83['creator'])break;if(_0x3e9a83['creator']||!_0x3a4592['creator']){if(_0x3a4592['createdAt']>_0x3e9a83['createdAt'])break;_0x29042b++;}else _0x29042b++;}}return _0x29042b;}['setRevisionData'](_0x5aea93){const _0x4e8b48=this['repository']['getRevision'](_0x5aea93['id']);if(_0x5aea93['createdAt']&&(_0x5aea93['createdAt']=new Date(_0x5aea93['createdAt'])),_0x5aea93['authorsIds']){const _0xd13576=this['editor']['plugins']['get']('Users');_0x5aea93['authors']=_0x5aea93['authorsIds']['map'](_0x59b0c4=>_0xd13576['getUser'](_0x59b0c4));}_0x4e8b48['_update'](_0x5aea93,!0x0);}['buildRevisionData']({revision:_0x14037b=null,from:_0xb5f1ff=null,to:_0x54628c=null}){_0xb5f1ff=null!==_0xb5f1ff?_0xb5f1ff:_0x14037b['fromVersion'],_0x54628c=null!==_0x54628c?_0x54628c:_0x14037b['toVersion'];const _0x560525=this['_revisionDataBuilder']['getData'](_0xb5f1ff,_0x54628c),_0xe1e943={'diffData':_0x560525['diffData'],'authorsIds':_0x560525['authorsIds'],'fromVersion':_0xb5f1ff,'toVersion':_0x54628c};if(!_0x14037b||_0x54628c!==_0x14037b['toVersion']){const _0x19ce28=_0x54628c-0x1,_0x317ad0=this['_source']['history']['getOperation'](_0x19ce28);_0xe1e943['createdAt']=_0x317ad0&&_0x317ad0['createdAt']||new Date();}if(this['_loadedStateData']&&_0xb5f1ff===this['_loadedStateData']['fromVersion']){for(const _0x4bf4b1 of this['_loadedStateData']['authors'])_0xe1e943['authorsIds']['includes'](_0x4bf4b1['id'])||_0xe1e943['authorsIds']['push'](_0x4bf4b1['id']);}return _0xe1e943;}['_loadRevisionData'](_0x2e4cce){if(!_0x2e4cce||_0x2e4cce['diffData'])return Promise['resolve']();{const _0x437768=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x437768,'revisionId':_0x2e4cce['id']})['then'](_0x14de9d=>{_0x2e4cce['diffData']=_0x14de9d['diffData'];});}}['_bufferUpdate'](_0x1b5537,_0x5daeb1,_0x2ae5d6){if(this['_bufferedUpdates']['has'](_0x1b5537)){const _0x98f5fc=this['_bufferedUpdates']['get'](_0x1b5537);_0x5daeb1=_0x2ae5d6?{..._0x98f5fc,..._0x5daeb1}:{..._0x5daeb1,..._0x98f5fc};}this['_bufferedUpdates']['set'](_0x1b5537,_0x5daeb1);}['_getFromVersion'](_0x18bcdc){const _0x51950c=this['repository']['getRevisions']();_0x51950c['reverse'](),_0x51950c['shift']();const _0x2b29e1=_0x51950c['find'](_0x40d801=>_0x40d801['toVersion']<=_0x18bcdc)['toVersion'];return _0x2b29e1<this['_startingVersion']?this['_startingVersion']:_0x2b29e1;}['_createInitialRevision'](_0x53e4c5){const _0x364f6d=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x364f6d)this['_initialRevisionId']=_0x364f6d['id'];else{const _0x3763ed=!this['editor']['model']['document']['roots']['find'](_0x14276a=>this['editor']['model']['hasContent'](_0x14276a)),_0x5ebebf=this['editor']['plugins']['get']('Users')['me']['id'],_0x2d934b=m(this['editor']['locale'],_0x3763ed?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x53e4c5,'to':_0x53e4c5,'id':this['_initialRevisionId'],'name':_0x2d934b,'creatorId':_0x5ebebf});}}['_createCurrentRevision'](_0x39ed5e){const _0x451a14=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x451a14),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x39ed5e,'to':_0x39ed5e,'id':_0x451a14,'name':'','creatorId':null}));}['_makeRevision']({name:_0x39c35f,from:_0x262fae,to:_0x194ff7,creatorId:_0x25aab8,id:_0x3758e8}){const _0x4ee03d=this['buildRevisionData']({'from':_0x262fae,'to':_0x194ff7});_0x4ee03d['name']=_0x39c35f,_0x4ee03d['creatorId']=_0x25aab8,_0x4ee03d['id']=_0x3758e8;const _0x26d2f5=this['addRevisionData'](_0x4ee03d);return this['adapter']&&this['_bufferUpdate'](_0x4ee03d['id'],_0x4ee03d,!0x0),_0x26d2f5;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x573c8a){return(_0x573c8a=_0x573c8a['filter'](_0x415780=>!_0x415780['name']||'revision-start'!==_0x415780['name']&&'revision-end'!==_0x415780['name']))['forEach'](_0x44a80c=>{'string'!=typeof _0x44a80c&&(_0x44a80c['children']=this['_removeRevisionMarkers'](_0x44a80c['children']),_0x44a80c['attributes']=_0x44a80c['attributes']['filter'](_0x4e83aa=>!_0x4e83aa[0x0]['startsWith']('data-revision-')));}),_0x573c8a;}}function C(_0x5323e5,_0x4c64bc){const _0x3d8982=_0x4c64bc['editing']['view']['document'];if('string'==typeof _0x5323e5)return new _0x729482(_0x3d8982,_0x5323e5);{const _0x85fea2=_0x5323e5['children']['map'](_0x1aa080=>C(_0x1aa080,_0x4c64bc));return new(P[_0x5323e5['type']]||_0x2e9996)(_0x3d8982,_0x5323e5['name'],_0x5323e5['attributes'],_0x85fea2);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x6ba390){this['editor']=_0x6ba390,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'](_0x40e635){this['source']=_0x40e635;const _0x2a8890=new Map(),_0x587e2c=new Map(),_0x3a464c=this['editor']['model']['document']['roots']['map'](_0x5782bc=>_0x5782bc['rootName']);for(const _0x5ef843 of _0x3a464c){const _0x3ad7d0=this['editor']['model']['document']['getRoot'](_0x5ef843),_0x4cd22c=T(_0x3ad7d0);_0x2a8890['set'](_0x5ef843,_0x4cd22c),_0x587e2c['set'](_0x5ef843,Object['fromEntries'](_0x3ad7d0['getAttributes']()));}const _0x389926=Array['from'](this['editor']['model']['markers'])['map'](_0x9cb216=>[_0x9cb216['name'],_0x9cb216['getRange']()]),_0x3c13b2=this['source']['version'];this['_saveMetaData'](_0x3c13b2,_0x2a8890,_0x389926,_0x587e2c),this['_startingRevisionId']=this['_revisionId'];const _0x259073=new Map(),_0x3f31aa=new Map();for(const _0x3e875d of _0x3a464c){const _0x2e05ac=F(_0x3e875d);_0x259073['set'](_0x3e875d,_0x2e05ac),_0x3f31aa['set'](_0x3e875d,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x259073,[],_0x3f31aa);}['getData'](_0x173d29,_0x26ba94){if(this['_lastFrom']===_0x173d29&&this['_lastTo']<=_0x26ba94)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x26ba94,!0x0);else{if(!this['_savedMetaData']['has'](_0x173d29)){const _0x1027f2=this['_getPreviousFrom'](_0x173d29);this['_calculateMetaData'](_0x1027f2,_0x173d29,!0x1);}this['_calculateMetaData'](_0x173d29,_0x26ba94,!0x0);}return this['_lastFrom']=_0x173d29,this['_lastTo']=_0x26ba94,this['_getState']();}['loadState'](_0xe99f89){this['_reset'](),this['_lastFrom']=_0xe99f89['fromVersion'],this['_lastTo']=_0xe99f89['toVersion'];for(const _0x5ab74f in _0xe99f89['diffData']){const _0x43b8dc=_0xe99f89['diffData'][_0x5ab74f]['attachChange'],_0x11e39b=_0x5635ac(_0xe99f89['diffData'][_0x5ab74f]['attributesBefore'])||{},_0x5d7cf9=this['_makeModelFromViewString'](_0xe99f89['diffData'][_0x5ab74f]['deletions']);_0x5d7cf9['rootName']=_0x5ab74f,_0x5d7cf9['_isAttached']=!_0x43b8dc||!_0x43b8dc['isAttached'],_0x5d7cf9['isAttached']=()=>_0x5d7cf9['_isAttached'],this['_baseRoots']['set'](_0x5ab74f,_0x5d7cf9),this['_baseRootsAttributes']['set'](_0x5ab74f,_0x11e39b),_0x43b8dc&&this['_touchedRoots']['set'](_0x5ab74f,_0x43b8dc);const _0x147cca=this['_makeIdsRoot'](_0x5d7cf9);this['_baseIdsRoots']['set'](_0x5ab74f,_0x147cca);for(const [_0x45a732,_0x26c579]of _0x5d7cf9['markers']){if(!_0x45a732['startsWith']('revision:'))continue;const _0x4044b3=_0x45a732['split'](':')[0x2];for(const _0x58bd34 of _0x26c579['getWalker']({'singleCharacters':!0x0})){const _0x4320a1=this['_getVidAttributeName'](_0x58bd34),_0x2d1757='elementEnd'==_0x58bd34['type']?_0x58bd34['previousPosition']['path']['slice'](0x0,-0x1):_0x58bd34['previousPosition']['path'],_0xe451cb=_0x147cca['getNodeByPath'](_0x2d1757)['getAttribute'](_0x4320a1);this['_touched']['set'](_0xe451cb,{'userId':_0x4044b3});}}}this['_startingRevisionId']=this['_revisionId'];const _0x5da6e7=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x3ec30a=>!this['_touched']['has'](_0x3ec30a));let _0x12062a=0x0;const _0x2eae76=new Map();for(const _0x294954 in _0xe99f89['diffData']){const _0x229e94=_0xe99f89['diffData'][_0x294954]['attachChange'],_0x7c6fd4=_0x5635ac(_0xe99f89['diffData'][_0x294954]['attributesAfter'])||{},_0x11d569=this['_makeModelFromViewString'](_0xe99f89['diffData'][_0x294954]['insertions']);_0x11d569['rootName']=_0x294954,_0x11d569['_isAttached']=!_0x229e94||_0x229e94['isAttached'],_0x11d569['isAttached']=()=>_0x11d569['_isAttached'],this['_diffRoots']['set'](_0x294954,_0x11d569),this['_diffRootsAttributes']['set'](_0x294954,_0x7c6fd4);const _0xba9dc5=this['_makeIdsRoot'](_0x11d569,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x294954,_0xba9dc5),_0x2eae76['set'](_0x294954,_0x11d569['isAttached']()?_0x7c6fd4:{});for(const [_0x19dd59,_0x3eea6d]of _0x11d569['markers']){if(!_0x19dd59['startsWith']('revision:'))continue;const _0x1af7be=_0x19dd59['split'](':')[0x2];for(const _0x220de4 of _0x3eea6d['getWalker']({'singleCharacters':!0x0})){const _0x207ed6=this['_getVidAttributeName'](_0x220de4),_0xd769b2=this['_revisionId']++,_0x29a2a8='elementEnd'==_0x220de4['type']?_0x220de4['previousPosition']['path']['slice'](0x0,-0x1):_0x220de4['previousPosition']['path'];_0xba9dc5['getNodeByPath'](_0x29a2a8)['_setAttribute'](_0x207ed6,_0xd769b2),this['_touched']['set'](_0xd769b2,{'userId':_0x1af7be});}}for(const _0x25aeaf of this['editor']['model']['createRangeIn'](_0x11d569)['getWalker']({'singleCharacters':!0x0})){const _0x5611a1=this['_getVidAttributeName'](_0x25aeaf),_0x5e1c22='elementEnd'==_0x25aeaf['type']?_0x25aeaf['previousPosition']['path']['slice'](0x0,-0x1):_0x25aeaf['previousPosition']['path'],_0x5cec21=_0xba9dc5['getNodeByPath'](_0x5e1c22);_0x5cec21['getAttribute'](_0x5611a1)>0x0||_0x5cec21['_setAttribute'](_0x5611a1,_0x5da6e7[_0x12062a++]);}for(const [_0x52c59c,_0x4d23f2]of _0x11d569['markers'])_0x52c59c['startsWith']('revision:')||this['_markers']['set'](_0x52c59c,_0x4d23f2);}const _0x55c149=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x55c149),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x55c149,0x1));const _0x21210e=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x21210e),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x21210e,0x1));const _0x9f5d94=Array['from'](this['_diffRoots'])['map'](([_0x2e822b,_0x35311a])=>[_0x2e822b,T(_0x35311a)]);this['_saveMetaData'](this['_lastTo'],_0x9f5d94,this['_markers'],_0x2eae76);}['_makeModelFromViewString'](_0x3967f4){const _0x2edfc7=JSON['parse'](_0x3967f4),_0x59488f=this['editor']['editing']['view']['document'],_0x3ac45c=new _0x32e5d2(_0x59488f,_0x2edfc7['map'](_0x6fe8ab=>C(_0x6fe8ab,this['editor'])));return this['editor']['data']['toModel'](_0x3ac45c);}['_saveMetaData'](_0xae4525,_0x542a3a,_0x146e18,_0x4a72d4){const _0x47ef92=new Map(_0x542a3a),_0x3c57d0=new Map(_0x5635ac(_0x4a72d4)),_0x1a3a70=new Map();for(const [_0x4940c2,_0xead094]of _0x146e18)_0x1a3a70['set'](_0x4940c2,{'start':_0xead094['start']['clone'](),'end':_0xead094['end']['clone'](),'rootName':_0xead094['root']['rootName']});this['_savedMetaData']['set'](_0xae4525,{'roots':_0x47ef92,'markers':_0x1a3a70,'rootsAttributes':_0x3c57d0});}['_removeMetaData'](_0x4e36c5){this['_savedMetaData']['delete'](_0x4e36c5);}['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'](_0x388f45,_0x209f03=null){let _0xb96ab9=null;_0x388f45['is']('documentFragment')||(_0xb96ab9=new ft(_0x388f45['name'],{'vid_start':null===_0x209f03?this['_revisionId']++:_0x209f03++}));const _0x38fc4c=[];for(const _0x524214 of _0x388f45['getChildren']())if(_0x524214['is']('element')){_0x38fc4c['push'](this['_makeIdsRoot'](_0x524214,_0x209f03));const _0x50d523=_0x38fc4c[_0x38fc4c['length']-0x1];null!==_0x209f03&&(_0x209f03=_0x50d523['is']('element','$text')?_0x50d523['getAttribute']('vid')+0x1:_0x50d523['getAttribute']('vid_end')+0x1);}else{for(let _0x5cadd6=0x0;_0x5cadd6<_0x524214['offsetSize'];_0x5cadd6++)_0x38fc4c['push'](new ft('$text',{'vid':null===_0x209f03?this['_revisionId']++:_0x209f03++}));}if(_0x388f45['is']('documentFragment')){const _0x4f0b33=F(_0x388f45['rootName']);return _0x4f0b33['_insertChild'](0x0,_0x38fc4c),_0x4f0b33;}return _0xb96ab9['_setAttribute']('vid_end',null===_0x209f03?this['_revisionId']++:_0x209f03++),_0xb96ab9['_insertChild'](0x0,_0x38fc4c),_0xb96ab9;}['_calculateMetaData'](_0x10b8b8,_0x1261bd,_0x774637){this['_reset']();const {roots:_0x28df47,markers:_0x5c5aaf,rootsAttributes:_0x5990f2}=this['_savedMetaData']['get'](_0x10b8b8);this['_baseRoots']=new Map(_0x28df47),this['_baseRootsAttributes']=new Map(_0x5635ac(_0x5990f2));for(const [_0x3332ca,_0x595846]of this['_baseRoots'])if('$graveyard'!==_0x3332ca&&(this['_diffRoots']['set'](_0x3332ca,T(_0x595846)),this['_diffRootsAttributes']=new Map(_0x5635ac(_0x5990f2)),_0x774637)){const _0x55af56=this['_revisionId'];this['_idsRoots']['set'](_0x3332ca,this['_makeIdsRoot'](_0x595846)),this['_baseIdsRoots']['set'](_0x3332ca,this['_makeIdsRoot'](_0x595846,_0x55af56));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x774637&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x23ab6f,_0x408a0b]of _0x5c5aaf){const _0x2b873c=this['_baseRoots']['get'](_0x408a0b['rootName']),_0x5d0e98=this['_diffRoots']['get'](_0x408a0b['rootName']),_0x1bdc95=new vt(this['_fixPosition'](_0x408a0b['start'],_0x2b873c),this['_fixPosition'](_0x408a0b['end'],_0x2b873c)),_0x4091a6=this['_fixRange'](_0x1bdc95,_0x5d0e98);_0x2b873c['markers']['set'](_0x23ab6f,_0x1bdc95),this['_markers']['set'](_0x23ab6f,_0x4091a6);}this['_applyOperations'](_0x10b8b8,_0x1261bd,_0x774637);}['_applyOperations'](_0x15317d,_0x11c109,_0x493933){for(const _0x26a115 of this['source']['getOperations'](_0x15317d,_0x11c109))this['_handleOperation'](_0x26a115,_0x493933);for(const _0x29b1b6 of this['_diffRoots']['values']())_0x29b1b6['markers']['clear']();for(const [_0x3b2350,_0x509ca8]of this['_markers']){this['_diffRoots']['get'](_0x509ca8['root']['rootName'])['markers']['set'](_0x3b2350,_0x509ca8['clone']());}const _0x31a4ec=new Map(),_0x245a04=new Map();for(const [_0x41a20a,_0x26d1f8]of this['_diffRoots'])_0x31a4ec['set'](_0x41a20a,T(_0x26d1f8)),_0x245a04['set'](_0x41a20a,this['_diffRootsAttributes']['get'](_0x41a20a));this['_saveMetaData'](_0x11c109,_0x31a4ec,this['_markers'],_0x245a04);}['_getPreviousFrom'](_0x493380){const _0x328055=Array['from'](this['_savedMetaData']['keys']());_0x328055['sort']((_0x3da1d5,_0x497606)=>_0x3da1d5-_0x497606),_0x328055['reverse']();for(const _0x226e44 of _0x328055)if(_0x226e44<_0x493380)return _0x226e44;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x55f0eb,_0x35a1ee){const _0x3f9013=Array['from'](_0x35a1ee['markers'])['map'](([_0x5a3ab6,_0x5d7da3])=>[_0x5a3ab6,this['_fixRange'](_0x5d7da3,_0x55f0eb)]);_0x55f0eb['markers']=new Map(_0x3f9013);}['_transformMarkers'](_0xb7bc28){for(const _0x1152af of this['_markers']['values']()){const _0x2ae9a6=_0x1152af['getTransformedByOperation'](_0xb7bc28),_0x316b5c=vt['_createFromRanges'](_0x2ae9a6);_0x1152af['start']=_0x316b5c['start'],_0x1152af['end']=_0x316b5c['end'];}}['_handleOperation'](_0x155a4a,_0xb6c46c){if('addRoot'!=_0x155a4a['type']&&'detachRoot'!=_0x155a4a['type']){if('insert'==_0x155a4a['type']){const _0x1d2efe=_0x155a4a['position']['root']['rootName'];this['_diffRoots']['has'](_0x1d2efe)||(this['_diffRoots']['set'](_0x1d2efe,F(_0x1d2efe,!0x0)),this['_diffRootsAttributes']['set'](_0x1d2efe,{}),_0xb6c46c&&this['_idsRoots']['set'](_0x1d2efe,F(_0x1d2efe,!0x0)));}else{if('addRootAttribute'==_0x155a4a['type']||'removeRootAttribute'==_0x155a4a['type']||'changeRootAttribute'==_0x155a4a['type'])return void this['_handleRootAttributeOperation'](_0x155a4a);'marker'==_0x155a4a['type']&&this['_handleMarkerOperation'](_0x155a4a);}if('marker'!==_0x155a4a['type']){const _0x2f0fdc=this['_cloneOperation'](_0x155a4a,this['_diffRoots']);_0x2f0fdc['_execute'](),this['_transformMarkers'](_0x2f0fdc);}if(_0xb6c46c)switch(_0x155a4a['type']){case'insert':this['_handleInsertOperation'](_0x155a4a);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x155a4a);break;case'merge':this['_handleMergeOperation'](_0x155a4a);break;case'split':this['_handleSplitOperation'](_0x155a4a);}}else this['_handleRootOperation'](_0x155a4a,_0xb6c46c);}['_cloneOperation'](_0x1c629e,_0x111a7e){const _0x2faaa4=_0x1c629e['clone']();return _0x2faaa4['_authorId']=_0x1c629e['_authorId'],this['_fixOperation'](_0x2faaa4,_0x111a7e),_0x2faaa4;}['_getBaseVids'](_0x1812fd){return _0x1812fd['map'](_0x4bb3cc=>{const _0x583eda=this['_getVidAttributeName'](_0x4bb3cc);return Number(_0x4bb3cc['item']['getAttribute'](_0x583eda));});}['_generateTape'](_0x4ae52d,_0x2dee7e){if(_0x4ae52d['is']('element','$text'))_0x2dee7e['push']({'item':_0x4ae52d,'type':'text'});else{_0x4ae52d['is']('element')&&_0x2dee7e['push']({'item':_0x4ae52d,'type':'elementStart'});for(const _0x28e6aa of _0x4ae52d['getChildren']())this['_generateTape'](_0x28e6aa,_0x2dee7e);_0x4ae52d['is']('element')&&_0x2dee7e['push']({'item':_0x4ae52d,'type':'elementEnd'});}return _0x2dee7e;}['_getState'](){const _0x4c07ac=new Map(this['_touched']),_0x4efdc9=new Map(_0x4c07ac),_0x43687d=new Map(),_0x5be7ba={'insertions':{},'deletions':{}},_0x4dddb4={'insertions':{},'deletions':{}},_0x1a7f4f=new Map(),_0x348f0c=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x348f0c['delete']('$graveyard');for(const _0x5590ac of _0x348f0c){const _0x4dd3c4=this['_diffRoots']['get'](_0x5590ac)||F(_0x5590ac,!0x1),_0x3d585b=this['_baseRoots']['get'](_0x5590ac)||F(_0x5590ac,!0x1);_0x4dd3c4['isAttached']()||_0x3d585b['isAttached']()?(_0x5be7ba['insertions'][_0x5590ac]=T(_0x4dd3c4),_0x5be7ba['deletions'][_0x5590ac]=T(_0x3d585b),this['_copyMarkers'](_0x5be7ba['deletions'][_0x5590ac],_0x3d585b),this['_copyMarkers'](_0x5be7ba['insertions'][_0x5590ac],_0x4dd3c4),_0x4dddb4['insertions'][_0x5590ac]=this['_generateTape'](this['_idsRoots']['get'](_0x5590ac),[]),_0x4dddb4['deletions'][_0x5590ac]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x5590ac)||F(_0x5590ac,!0x1),[])):_0x348f0c['delete'](_0x5590ac);}for(const _0x47922d of _0x348f0c){const _0x2ffce8=_0x4dddb4['insertions'][_0x47922d];for(const _0x5bb6d1 of _0x2ffce8){const _0x49b9a8=this['_getVidAttributeName'](_0x5bb6d1),_0x1d15b9=_0x5bb6d1['item']['getAttribute'](_0x49b9a8);_0x4efdc9['delete'](_0x1d15b9),_0x1d15b9>=this['_startingRevisionId']&&_0x43687d['set'](_0x1d15b9,_0x4c07ac['get'](_0x1d15b9));}}for(const _0x235fa0 of _0x348f0c){const _0x1ae3c4=_0x4dddb4['insertions'][_0x235fa0],_0x37b2c6=this['_getBaseVids'](_0x4dddb4['deletions'][_0x235fa0]);let _0x3b9f45=0x0;for(const _0x49b0d3 of _0x1ae3c4){const _0x545494=this['_getVidAttributeName'](_0x49b0d3),_0xb2daa2=_0x49b0d3['item']['getAttribute'](_0x545494);if(!_0x43687d['has'](_0xb2daa2)&&!_0x1a7f4f['has'](_0xb2daa2)){if(_0x4efdc9['has'](_0xb2daa2))_0x3b9f45++;else{if(_0xb2daa2!=_0x37b2c6[_0x3b9f45]){const _0x3a83de=_0x4c07ac['get'](_0xb2daa2)||_0x4c07ac['get'](_0x37b2c6[_0x3b9f45]);for(;_0xb2daa2!=_0x37b2c6[_0x3b9f45];)_0x4efdc9['has'](_0x37b2c6[_0x3b9f45])||(_0x1a7f4f['set'](_0x37b2c6[_0x3b9f45],_0x3a83de),_0x4c07ac['set'](_0x37b2c6[_0x3b9f45],_0x3a83de)),_0x3b9f45++;}_0x3b9f45++;}}}}for(const _0x4ab214 of _0x348f0c){const _0x1a0cb4=_0x4dddb4['insertions'][_0x4ab214];for(const _0x2f6aa4 of _0x1a0cb4){const _0x364363=this['_getVidAttributeName'](_0x2f6aa4),_0x35a7b0=_0x2f6aa4['item']['getAttribute'](_0x364363);if(_0x1a7f4f['has'](_0x35a7b0)){const _0x127316=_0x1a7f4f['get'](_0x35a7b0);_0x4efdc9['has'](_0x35a7b0)||_0x4efdc9['set'](_0x35a7b0,{..._0x127316}),_0x43687d['set'](_0x35a7b0,{..._0x127316});}}}for(const _0x274d8d of _0x4efdc9['keys']())_0x274d8d>=this['_startingRevisionId']&&_0x4efdc9['delete'](_0x274d8d);const _0x48ae88=new Map();for(const _0x1f9b3d of _0x348f0c){let _0x10e67d=_0x4dddb4['insertions'][_0x1f9b3d];for(const _0x15d03a of _0x10e67d)if(_0x15d03a['item']['is']('element','tableCell')){const _0x43f599=this['_getVidAttributeName'](_0x15d03a),_0x485f80=_0x15d03a['item']['getAttribute'](_0x43f599);if(_0x43687d['has'](_0x485f80)){const _0x50a4b6=_0x15d03a['item']['parent']['parent']['getAttribute']('vid_start'),_0x4842ad=_0x48ae88['get'](_0x50a4b6)||new Set();_0x4842ad['add'](_0x43687d['get'](_0x485f80)['userId']),_0x48ae88['set'](_0x50a4b6,_0x4842ad);}}_0x10e67d=_0x4dddb4['deletions'][_0x1f9b3d];for(const _0x29c505 of _0x10e67d)if(_0x29c505['item']['is']('element','tableCell')){const _0x2ca5dd=this['_getVidAttributeName'](_0x29c505),_0x196a88=_0x29c505['item']['getAttribute'](_0x2ca5dd);if(_0x4efdc9['has'](_0x196a88)){const _0x5b91c8=_0x29c505['item']['parent']['parent']['getAttribute']('vid_start'),_0x159eaa=_0x48ae88['get'](_0x5b91c8)||new Set();_0x159eaa['add'](_0x4efdc9['get'](_0x196a88)['userId']),_0x48ae88['set'](_0x5b91c8,_0x159eaa);}}for(const _0x157802 of _0x48ae88['keys']())(_0x43687d['has'](_0x157802)||_0x4efdc9['has'](_0x157802))&&_0x48ae88['delete'](_0x157802);}for(const _0x3ac807 of _0x348f0c){const _0x330fb7=_0x4dddb4['insertions'][_0x3ac807];let _0x396773=null,_0x377eb0=null;for(const _0x186b63 of _0x330fb7){const _0x562d8a=this['_getVidAttributeName'](_0x186b63),_0x38be03=_0x186b63['item']['getAttribute'](_0x562d8a),_0x321a17=_0x48ae88['get'](_0x38be03);_0x321a17&&'elementStart'==_0x186b63['type']&&(_0x396773=Array['from'](_0x321a17)[0x0],_0x377eb0=_0x186b63['item']['getAttribute']('vid_end')),_0x396773&&(_0x4efdc9['set'](_0x38be03,{'userId':_0x396773}),_0x43687d['set'](_0x38be03,{'userId':_0x396773})),_0x38be03==_0x377eb0&&(_0x396773=null,_0x377eb0=null);}}const _0x25ce71={},_0x5d918c=new Set();for(const _0x4afe1e of _0x348f0c){const _0x398cf3=_0x5be7ba['deletions'][_0x4afe1e],_0x277986=_0x5be7ba['insertions'][_0x4afe1e];for(const {userId:_0x4146c7}of this['_touchedMarkers']['values']())null!==_0x4146c7&&_0x5d918c['add'](_0x4146c7);for(const {userId:_0x102cfa}of this['_touchedRoots']['values']())null!==_0x102cfa&&_0x5d918c['add'](_0x102cfa);this['_markChanges'](_0x277986,_0x4dddb4['insertions'][_0x4afe1e],_0x43687d,'insertion',_0x5d918c),this['_markChanges'](_0x398cf3,_0x4dddb4['deletions'][_0x4afe1e],_0x4efdc9,'deletion',_0x5d918c),_0x25ce71[_0x4afe1e]={'insertions':this['_prepareViewToSave'](_0x277986),'deletions':this['_prepareViewToSave'](_0x398cf3),'attachChange':this['_touchedRoots']['get'](_0x4afe1e)||null,'attributesBefore':_0x5635ac(this['_baseRootsAttributes']['get'](_0x4afe1e))||{},'attributesAfter':_0x5635ac(this['_diffRootsAttributes']['get'](_0x4afe1e))};}return{'diffData':_0x25ce71,'authorsIds':Array['from'](_0x5d918c)};}['_processRootBeforeSave'](_0x2ca950){for(const [,_0xb32d8b]of _0x2ca950['markers']){const _0x5cfedf=_0xb32d8b['start']['getAncestors']()['filter'](_0x5986a7=>'tableCell'==_0x5986a7['name']);for(const _0x11d4bd of _0x5cfedf)0x1==_0x11d4bd['childCount']&&_0x11d4bd['getChild'](0x0)['is']('element','paragraph')&&_0x11d4bd['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x4f0b2d){this['_processRootBeforeSave'](_0x4f0b2d);const _0xca841a=this['editor']['data']['toView'](_0x4f0b2d,{}),_0x36ca92=Array['from'](_0xca841a['getChildren']())['map'](_0x490aad=>this['_getViewJson'](_0x490aad));return JSON['stringify'](_0x36ca92);}['_getViewJson'](_0x4fe2c6){if(_0x4fe2c6['is']('$text'))return _0x4fe2c6['data'];{const _0x50cfe0=_0x4fe2c6;return{'type':Object['keys'](P)['find'](_0x417bd4=>_0x4fe2c6 instanceof P[_0x417bd4]),'name':_0x50cfe0['name'],'attributes':Array['from'](_0x50cfe0['getAttributes']()),'children':Array['from'](_0x50cfe0['getChildren']())['map'](_0x5b85b6=>this['_getViewJson'](_0x5b85b6))};}}['_markChanges'](_0x142c63,_0x4c95c4,_0x519bf8,_0x3ce066,_0x2858b8){let _0xffdb11=null,_0x3e5511=null,_0x383684=0x0;const _0x2b4362=this['editor']['model'];for(let _0x2eebff=0x0;_0x2eebff<_0x4c95c4['length'];_0x2eebff++){const _0x598345=this['_getVidAttributeName'](_0x4c95c4[_0x2eebff]),_0x4630a7=_0x4c95c4[_0x2eebff]['item']['getAttribute'](_0x598345),_0x184e6b=_0x519bf8['get'](_0x4630a7),_0x419adc=_0x2eebff==_0x4c95c4['length']-0x1;(!_0xffdb11&&_0x184e6b&&(_0xffdb11=_0x184e6b,_0x3e5511=_0x4c95c4[_0x2eebff]),_0xffdb11&&(!_0x184e6b||_0x184e6b['userId']!=_0xffdb11['userId']))&&(_0x32c74e(_0x184e6b,B(_0x3e5511,_0x142c63,_0x2b4362),B(_0x4c95c4[_0x2eebff],_0x142c63,_0x2b4362)),_0xffdb11=_0x184e6b||null,_0x3e5511=_0x184e6b?_0x4c95c4[_0x2eebff]:null),_0xffdb11&&_0x419adc&&_0x32c74e(_0x184e6b,B(_0x3e5511,_0x142c63,_0x2b4362),J(_0x4c95c4[_0x2eebff],_0x142c63,_0x2b4362));}function _0x32c74e(_0x3e4e27,_0x5713a8,_0x5ac515){const _0x1de3be=_0xffdb11['userId'],_0x8d254a='revision:'+_0x3ce066+':'+_0x1de3be+':'+_0x383684++,_0x28d34c=_0x2b4362['createRange'](_0x5713a8,_0x5ac515);_0x142c63['markers']['set'](_0x8d254a,_0x28d34c),null!==_0x1de3be&&_0x2858b8['add'](_0x1de3be);}}['_getVidAttributeName'](_0xe8dc2a){switch(_0xe8dc2a['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x5b7f7e,_0x235599){_0x5b7f7e['baseVersion']=null;for(const _0x39e14e in _0x5b7f7e){const _0x206f6c=_0x5b7f7e[_0x39e14e];if(_0x206f6c instanceof gt){const _0x3420b3=_0x235599['get'](_0x206f6c['root']['rootName']);_0x5b7f7e[_0x39e14e]=this['_fixPosition'](_0x206f6c,_0x3420b3);}if(_0x206f6c instanceof vt){const _0x2b4224=_0x235599['get'](_0x206f6c['root']['rootName']);_0x5b7f7e[_0x39e14e]=this['_fixRange'](_0x206f6c,_0x2b4224);}'root'===_0x39e14e&&(_0x5b7f7e['root']=_0x235599['get'](_0x5b7f7e['root']['rootName']));}}['_fixRange'](_0xcc19ed,_0x374c6d){return this['editor']['model']['createRange'](this['_fixPosition'](_0xcc19ed['start'],_0x374c6d),this['_fixPosition'](_0xcc19ed['end'],_0x374c6d));}['_fixPosition'](_0x34f938,_0x34a464){return this['editor']['model']['createPositionFromPath'](_0x34a464,_0x34f938['path'],_0x34f938['stickiness']);}['_handleInsertOperation'](_0x186cfe){const _0x2402f1=this['_idsRoots']['get'](_0x186cfe['position']['root']['rootName']),_0x3a1fd1=this['_fixPosition'](_0x186cfe['position'],_0x2402f1),_0x4d5190=null===_0x186cfe['_authorId']?null:_0x186cfe['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x37fcf7=_0x3a1fd1['parent'],_0x4c0e1a=this['_revisionId'],_0x235587=[];for(const _0x497289 of _0x186cfe['nodes'])if(_0x497289['is']('element'))_0x235587['push'](this['_makeIdsRoot'](_0x497289));else{for(let _0x54343d=0x0;_0x54343d<_0x497289['offsetSize'];_0x54343d++)_0x235587['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x3126b4=this['_revisionId'];for(let _0x391159=_0x4c0e1a;_0x391159<_0x3126b4;_0x391159++)this['_touched']['set'](_0x391159,{'userId':_0x4d5190});_0x37fcf7['_insertChild'](_0x3a1fd1['offset'],_0x235587);}['_handleMoveOperation'](_0x5b60df){(_0x5b60df=this['_cloneOperation'](_0x5b60df,this['_idsRoots']))['_execute']();const _0x418f6e=null===_0x5b60df['_authorId']?null:_0x5b60df['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x57df7d=_0x5b60df['getMovedRangeStart'](),_0x495362=_0x57df7d['parent'],_0x5ec476=_0x57df7d['offset'];!function _0xa4d7ae(_0x1caee8,_0x6051b3,_0x284ae8,_0x135d8d){for(let _0x153e00=_0x284ae8;_0x153e00<_0x135d8d;_0x153e00++){const _0x496f1e=_0x6051b3['getChild'](_0x153e00);_0x496f1e['is']('element','$text')?_0x1caee8['set'](_0x496f1e['getAttribute']('vid'),{'userId':_0x418f6e}):(_0x1caee8['set'](_0x496f1e['getAttribute']('vid_start'),{'userId':_0x418f6e}),_0xa4d7ae(_0x1caee8,_0x496f1e,0x0,_0x496f1e['childCount']),_0x1caee8['set'](_0x496f1e['getAttribute']('vid_end'),{'userId':_0x418f6e}));}}(this['_touched'],_0x495362,_0x5ec476,_0x5ec476+_0x5b60df['howMany']);}['_handleMergeOperation'](_0x25ef44){const _0x51b58c=null===(_0x25ef44=this['_cloneOperation'](_0x25ef44,this['_idsRoots']))['_authorId']?null:_0x25ef44['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5178ce=_0x25ef44['targetPosition']['parent'],_0x322bb2=_0x25ef44['sourcePosition']['parent'],_0x5cfa6d=_0x5178ce['getAttribute']('vid_end'),_0xdb307e=_0x322bb2['getAttribute']('vid_start');_0x5178ce['_setAttribute']('vid_end',_0x322bb2['getAttribute']('vid_end')),_0x322bb2['_setAttribute']('vid_end',_0x5cfa6d),this['_touched']['set'](_0xdb307e,{'userId':_0x51b58c}),this['_touched']['set'](_0x5cfa6d,{'userId':_0x51b58c}),_0x25ef44['_execute']();}['_handleSplitOperation'](_0x59fde5){const _0x3bb1fa=null===(_0x59fde5=this['_cloneOperation'](_0x59fde5,this['_idsRoots']))['_authorId']?null:_0x59fde5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x522552=_0x59fde5['graveyardPosition'],_0x426e65=_0x59fde5['splitPosition']['parent'];_0x59fde5['_execute']();const _0x634a8c=_0x426e65['getAttribute']('vid_end'),_0x37b1ac=_0x59fde5['insertionPosition']['nodeAfter'];if(_0x522552){const _0x56a9fb=_0x37b1ac['getAttribute']('vid_end'),_0x20f46f=_0x426e65['getAttribute']('vid_end');_0x426e65['_setAttribute']('vid_end',_0x56a9fb),_0x37b1ac['_setAttribute']('vid_end',_0x20f46f),this['_touched']['set'](_0x426e65['getAttribute']('vid_end'),{'userId':_0x3bb1fa}),this['_touched']['set'](_0x37b1ac['getAttribute']('vid_start'),{'userId':_0x3bb1fa});}else{const _0x5ea3e2=this['_revisionId']++,_0x39c336=this['_revisionId']++;_0x426e65['_setAttribute']('vid_end',_0x5ea3e2),_0x37b1ac['_setAttribute']('vid_start',_0x39c336),_0x37b1ac['_setAttribute']('vid_end',_0x634a8c),this['_touched']['set'](_0x5ea3e2,{'userId':_0x3bb1fa}),this['_touched']['set'](_0x39c336,{'userId':_0x3bb1fa});}}['_handleMarkerOperation'](_0x69ba0a){if(!_0x69ba0a['affectsData'])return;const _0x2e9a1e=(_0x69ba0a=this['_cloneOperation'](_0x69ba0a,this['_diffRoots']))['oldRange']?_0x69ba0a['oldRange']['root']:null,_0x5a0605=_0x69ba0a['newRange']?_0x69ba0a['newRange']['root']:null;_0x2e9a1e&&this['_markers']['delete'](_0x69ba0a['name']),_0x5a0605&&this['_markers']['set'](_0x69ba0a['name'],_0x69ba0a['newRange']['clone']());const _0x17f2ba=null===_0x69ba0a['_authorId']?null:_0x69ba0a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x200ae1=_0x69ba0a['name'];if(!this['_touchedMarkers']['has'](_0x200ae1))return void this['_touchedMarkers']['set'](_0x200ae1,{'range':_0x69ba0a['oldRange'],'userId':_0x17f2ba});const _0x4e007e=this['_touchedMarkers']['get'](_0x200ae1),_0x48ce87=_0x4e007e['range'],_0x57517a=_0x69ba0a['newRange'];null==_0x48ce87&&null==_0x57517a||_0x48ce87&&_0x57517a&&_0x48ce87['isEqual'](_0x57517a)?this['_touchedMarkers']['delete'](_0x69ba0a['name']):_0x4e007e['userId']=_0x17f2ba;}['_handleRootOperation'](_0x45fb2a,_0x55699c){this['_diffRoots']['has'](_0x45fb2a['rootName'])?this['_diffRoots']['get'](_0x45fb2a['rootName'])['_isAttached']=_0x45fb2a['isAdd']:(this['_diffRoots']['set'](_0x45fb2a['rootName'],F(_0x45fb2a['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x45fb2a['rootName'],{}),_0x55699c&&this['_idsRoots']['set'](_0x45fb2a['rootName'],F(_0x45fb2a['rootName'],!0x0)));const _0x53197d=null===_0x45fb2a['_authorId']?null:_0x45fb2a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1b54fb=this['_touchedRoots']['get'](_0x45fb2a['rootName']);_0x1b54fb&&_0x1b54fb['userId']===_0x53197d?this['_touchedRoots']['delete'](_0x45fb2a['rootName']):this['_touchedRoots']['set'](_0x45fb2a['rootName'],{'userId':_0x53197d,'isAttached':_0x45fb2a['isAdd']});}['_handleRootAttributeOperation'](_0x92fd1){const _0x414650=this['_diffRootsAttributes']['get'](_0x92fd1['root']['rootName']);null===_0x92fd1['newValue']?delete _0x414650[_0x92fd1['key']]:_0x414650[_0x92fd1['key']]=_0x92fd1['newValue'];}}function T(_0x449e4f){const _0xf67e25=F(_0x449e4f['rootName'],_0x449e4f['isAttached']());for(const _0x2933ab of _0x449e4f['getChildren']()){const _0x1417f2=_0x2933ab['_clone'](!0x0);_0xf67e25['_appendChild'](_0x1417f2);}return _0xf67e25;}function F(_0x5dec2a,_0x3c4a79=!0x0){const _0x1d253d=new mt();return _0x1d253d['rootName']=_0x5dec2a,_0x1d253d['_isAttached']=_0x3c4a79,_0x1d253d['isAttached']=()=>_0x1d253d['_isAttached'],_0x1d253d;}function B(_0x56cd49,_0x480bce,_0x5cca3d){const _0x4b8be8='elementEnd'==_0x56cd49['type']?_0x5cca3d['createPositionAt'](_0x56cd49['item'],'end'):_0x5cca3d['createPositionBefore'](_0x56cd49['item']);return _0x5cca3d['createPositionFromPath'](_0x480bce,_0x4b8be8['path'],_0x4b8be8['stickiness']);}function J(_0x327a78,_0x77df71,_0x338cd6){const _0x1900a6='elementStart'==_0x327a78['type']?_0x338cd6['createPositionAt'](_0x327a78['item'],0x0):_0x338cd6['createPositionAfter'](_0x327a78['item']);return _0x338cd6['createPositionFromPath'](_0x77df71,_0x1900a6['path'],_0x1900a6['stickiness']);}class ns extends _0x22e8ac{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x24ea19,_0x39b6e0){super(_0x24ea19),this['focusTracker']=new _0x4458ed(),this['keystrokes']=new _0x29a108(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x39b6e0),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'](),_0x8c3a13({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x502a66=_0x3f4edd=>_0x3f4edd['stopPropagation']();this['keystrokes']['set']('arrowright',_0x502a66),this['keystrokes']['set']('arrowleft',_0x502a66),this['keystrokes']['set']('arrowup',_0x502a66),this['keystrokes']['set']('arrowdown',_0x502a66);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x18da1){this['revisionNameInputView']['fieldView']['element']['value']=_0x18da1['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x4f5471){const _0x5f12c0=new nt(this['locale'],_0x7e5b5f),_0x2e85f0=_0x5f12c0['fieldView'];_0x2e85f0['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x33a438=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x4f5471&&(_0x33a438+='\x20('+m(this['locale'],'optional')+')'),(_0x5f12c0['label']=_0x33a438,_0x2e85f0['on']('input',()=>{this['revisionNameInputValue']=_0x2e85f0['element']['value']['trim']();}),_0x5f12c0);}}class u extends _0x378b96{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x27b42f=this['editor'],_0x46966e=_0x27b42f['plugins']['get']('RevisionTracker');_0x27b42f['ui']['componentFactory']['add']('revisionHistory',_0x9b4ae4=>{const _0x3619ac=_0x2a3493(_0x9b4ae4),_0x381e5e=_0x3619ac['panelView']['children'],_0x53d9bf=new te(_0x9b4ae4),_0x1493e7=new _0x529ad3(_0x9b4ae4),_0x8f7e5=new _0x500420(_0x9b4ae4),_0x36846e=new _0x529ad3(_0x9b4ae4),_0x42b632=new _0x500420(_0x9b4ae4);return _0x3619ac['bind']('isEnabled')['to'](_0x46966e,'isReady',_0x46966e,'isEnabled',_0x27b42f,'isReadOnly',(_0x3ba8b6,_0x431804,_0x21f276)=>_0x3ba8b6&&_0x431804&&!_0x21f276),_0x3619ac['buttonView']['set']({'icon':_0x3f261c['history'],'label':m(_0x9b4ae4,'Revision\x20history'),'tooltip':!0x0}),_0x8f7e5['set']({'label':m(_0x9b4ae4,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x8f7e5['bind']('isEnabled')['to'](_0x46966e,'isReady',_0x46966e,'isEnabled',_0x27b42f,'isReadOnly',(_0x2fbf21,_0x50189,_0x1ba1c2)=>_0x2fbf21&&_0x50189&&!_0x1ba1c2),_0x8f7e5['on']('execute',()=>this['_showDialog']()),_0x42b632['set']({'label':m(_0x9b4ae4,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x42b632['bind']('isEnabled')['to'](_0x46966e,'isReady',_0x27b42f,'isReadOnly',(_0x2d446e,_0x1465b4)=>_0x2d446e&&!_0x1465b4),_0x42b632['on']('execute',()=>{_0x27b42f['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x3619ac['isOpen']=!0x1,_0x27b42f['editing']['view']['focus']();}),_0x1493e7['children']['add'](_0x8f7e5),_0x36846e['children']['add'](_0x42b632),_0x53d9bf['role']='menu',_0x53d9bf['items']['addMany']([_0x1493e7,_0x36846e]),_0x381e5e['add'](_0x53d9bf),_0x3619ac;}),_0x27b42f['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x49b6af=this['editor'],_0x444b0d=_0x49b6af['locale'],_0x4c54a6=new _0x22881e(_0x444b0d),_0x1d9db4=new _0x413dc3(_0x444b0d);_0x4c54a6['buttonView']['set']({'icon':_0x3f261c['history'],'label':m(_0x444b0d,'Revision\x20history')});const _0x41f872=new _0x32adee(_0x444b0d,_0x4c54a6),_0x336a04=new _0x45fa2f(_0x444b0d);_0x336a04['set']({'label':m(_0x444b0d,'Save\x20current\x20revision')}),_0x336a04['delegate']('execute')['to'](_0x4c54a6),_0x336a04['on']('execute',()=>{this['_showDialog']();}),_0x41f872['children']['add'](_0x336a04),_0x1d9db4['items']['add'](_0x41f872);const _0x1e4196=new _0x32adee(_0x444b0d,_0x4c54a6),_0x255b3b=new _0x45fa2f(_0x444b0d);return _0x255b3b['set']({'label':m(_0x444b0d,'Open\x20revision\x20history')}),_0x255b3b['delegate']('execute')['to'](_0x4c54a6),_0x255b3b['on']('execute',()=>{_0x49b6af['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x1e4196['children']['add'](_0x255b3b),_0x1d9db4['items']['add'](_0x1e4196),_0x4c54a6['panelView']['children']['add'](_0x1d9db4),_0x4c54a6;}['_showDialog'](){const _0x167768=this['editor'],_0x3e1161=_0x167768['locale'],_0x3aa541=_0x167768['plugins']['get']('Dialog'),_0x155395=_0x167768['plugins']['get']('RevisionTracker');function _0x599a33(_0x3263b7){_0x167768['config']['get']('revisionHistory.requireRevisionName')&&''===_0x3263b7['revisionName']?_0x3263b7['revisionNameInputView']['errorText']=m(_0x3e1161,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x167768['plugins']['get'](l)['saveRevision']({'name':_0x3263b7['revisionName']}),_0x3aa541['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x599a33(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x3aa541['show']({'id':'revisionSave','title':m(_0x3e1161,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x167768['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x3aa541['hide']()},{'label':m(_0x167768['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x228e32){_0x228e32['bind']('isEnabled')['to'](_0x155395,'isReady',_0x155395,'isEnabled',_0x167768,'isReadOnly',(_0x32fd70,_0x57a3c9,_0x2c217c)=>_0x32fd70&&_0x57a3c9&&!_0x2c217c);},'onExecute':()=>_0x599a33(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x5c0983=this['editor'],_0x437145=_0x5c0983['locale'];this['_saveRevisionFormView']=new ns(_0x437145,_0x5c0983['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x22e8ac{['changeId'];['_model'];constructor(_0x2a26ac,_0x11c9f0){super(_0x2a26ac),this['_model']=_0x11c9f0,this['changeId']=_0x11c9f0['id'];const _0x2b36e2=this['bindTemplate'],_0x4ebfaf=m(_0x2a26ac,_0x11c9f0['data']['isSuggestion']?'Suggested\x20by':'add'==_0x11c9f0['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x11c9f0['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x2b36e2['to']('type',_0x4731aa=>'ck-revision-change__'+_0x4731aa)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x4ebfaf}]},{'text':'\x20'+_0x11c9f0['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x109273(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x30fba5){super(),this['id']=_0x30fba5['id']||_0x4db448(),this['author']=_0x30fba5['author'],this['type']=_0x30fba5['type'],this['data']=_0x30fba5['data']||{},this['rootName']=_0x30fba5['rootName'],this['set']('createdAt',_0x30fba5['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(_0x6b90ed,_0x187df7){this['newRevisionId']=_0x6b90ed,this['oldRevisionId']=_0x187df7,this['changes']=new _0xb964f8();}['_setChanges'](_0x484c42){for(const _0x5069f3 of _0x484c42)this['changes']['add'](_0x5069f3);}}const Y={'c':_0x1dd77a,'a':_0x3c6c72,'e':_0x235083,'r':_0x2b256d,'u':_0x490b15};class d extends _0x378b96{['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[_0x1d29ae,_0x181570,j];}constructor(_0x1bb1ea){super(_0x1bb1ea),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',(_0xa96c4d,_0x247f5c,_0x3db2a4)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x309fdc=>{for(const _0x1ee05d of this['editor']['editing']['view']['document']['roots'])_0x3db2a4?_0x309fdc['removeClass']('ck-editor__editable__overlay',_0x1ee05d):_0x309fdc['addClass']('ck-editor__editable__overlay',_0x1ee05d);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x1c1be7=>null!==_0x1c1be7),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x2938f0,_0x1d235c,_0x57dc9a)=>_0x2938f0&&_0x57dc9a?_0x1d235c['changes']['getIndex'](_0x57dc9a):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x1d9715,_0x2b16b9)=>_0x1d9715?_0x2b16b9['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x181570);}['init'](){const _0x4ed404=this['editor'],_0x1a71fd=new yt(_0x4ed404,{'direction':'backward'}),_0x4fa8d4=new yt(_0x4ed404,{'direction':'forward'});(_0x4ed404['commands']['add']('showPreviousChange',_0x1a71fd),_0x4ed404['commands']['add']('showNextChange',_0x4fa8d4),_0x4ed404['commands']['add']('restoreRevision',new _t(_0x4ed404)),this['on']('change:numberOfChanges',()=>{_0x1a71fd['refresh'](),_0x4fa8d4['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x4ed404['enableReadOnlyMode']('revision-viewer'),_0x4ed404['plugins']['has']('WidgetToolbarRepository'))&&_0x4ed404['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x2853b1){await this['loadRevisionData'](_0x2853b1);const _0xf64c6e={};for(const _0x325a57 in _0x2853b1['diffData']){if(_0x2853b1['diffData'][_0x325a57]['attachChange']&&!_0x2853b1['diffData'][_0x325a57]['attachChange']['isAttached'])continue;const _0x1bd935=this['_removeRevisionMarkers'](JSON['parse'](_0x2853b1['diffData'][_0x325a57]['insertions'])),_0x322b47=this['editor']['editing']['view']['document'],_0x171132=new _0x32e5d2(_0x322b47,_0x1bd935['map'](_0x42e65c=>this['_getViewObj'](_0x42e65c)));this['editor']['data']['processor']['useFillerType']('marked'),_0xf64c6e[_0x325a57]=this['editor']['data']['processor']['toData'](_0x171132),this['editor']['data']['processor']['useFillerType']('default');}return _0xf64c6e;}async['getRevisionRootsAttributes'](_0x16468e){await this['loadRevisionData'](_0x16468e);const _0x49b48f={};for(const _0x33baf3 in _0x16468e['diffData'])_0x16468e['diffData'][_0x33baf3]['attachChange']&&!_0x16468e['diffData'][_0x33baf3]['attachChange']['isAttached']||(_0x49b48f[_0x33baf3]=_0x16468e['diffData'][_0x33baf3]['attributesAfter']||{});return _0x49b48f;}['_removeRevisionMarkers'](_0xd431d5){return(_0xd431d5=_0xd431d5['filter'](_0xbaeb64=>!_0xbaeb64['name']||'revision-start'!==_0xbaeb64['name']&&'revision-end'!==_0xbaeb64['name']))['forEach'](_0x2f47fe=>{'string'!=typeof _0x2f47fe&&(_0x2f47fe['children']=this['_removeRevisionMarkers'](_0x2f47fe['children']),_0x2f47fe['attributes']=_0x2f47fe['attributes']['filter'](_0x5bbe92=>!_0x5bbe92[0x0]['startsWith']('data-revision-')));}),_0xd431d5;}async['compare'](_0x491ed7,_0x208517,_0x23eaa2=!0x1){if(!this['isEnabled'])return;const _0x233e8=this['diff'],_0x28de78=this['repository'],_0x2c9282='string'==typeof _0x491ed7?_0x28de78['getRevision'](_0x491ed7):_0x491ed7,_0x2da67b='string'==typeof _0x208517?_0x28de78['getRevision'](_0x208517):_0x208517,_0x381e80=_0x2c9282['id'],_0x469551=_0x2da67b?_0x2da67b['id']:null;if(!_0x23eaa2&&this['diff']&&this['diff']['newRevisionId']===_0x381e80&&this['diff']['oldRevisionId']===_0x469551)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x381e80,_0x469551);const _0x542dfc=this['_getRevisionsRange'](_0x2c9282,_0x2da67b,!0x0)['map'](_0xe1fc9e=>this['loadRevisionData'](_0xe1fc9e));return _0x542dfc['push'](new Promise(_0x3aba14=>{setTimeout(_0x3aba14,0x14);})),Promise['all'](_0x542dfc)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x2a50f1=this['_getDiff'](_0x381e80,_0x469551);for(const _0x5a296e of _0x2a50f1['changes'])this['_changeIdToChange']['set'](_0x5a296e['id'],_0x5a296e);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x25f3e0=>{for(const _0x2cf1e8 of this['editor']['model']['document']['getRootNames']())_0x25f3e0['detachRoot'](_0x2cf1e8);for(const _0x10f757 of Object['keys'](_0x2a50f1['model'])){const _0x12ff77=_0x25f3e0['addRoot'](_0x10f757);for(const _0x42fd08 of Object['keys'](_0x2a50f1['attributes'][_0x10f757]))_0x25f3e0['setAttribute'](_0x42fd08,_0x2a50f1['attributes'][_0x10f757][_0x42fd08],_0x12ff77);_0x25f3e0['insert'](_0x2a50f1['model'][_0x10f757],_0x12ff77,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x2a50f1['changes'])),this['isReady']=!0x0;})['catch'](_0x54a51e=>{console['error'](_0x54a51e),this['_cleanUp'](),_0x233e8&&(this['diff']=_0x233e8),this['isReady']=!0x0;});}['addRevisionData'](_0x281158,_0x2e273e){const _0x2cfec4=this['repository']['createRevision'](_0x281158);return _0x2cfec4['on']('_update',(_0x31a7b9,_0x81960a,_0x536f37)=>_0x2e273e(_0x81960a,_0x536f37,_0x2cfec4)),this['repository']['addRevision'](_0x2cfec4),_0x2cfec4;}['loadRevisionData'](_0x2a7b27){if(!_0x2a7b27||_0x2a7b27['diffData'])return Promise['resolve']();{const _0x18a495=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x18a495,'revisionId':_0x2a7b27['id']})['then'](_0x503aa1=>{_0x2a7b27['_update']({'diffData':_0x503aa1['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},_0x115778=>{for(const _0x2d71ed of this['editor']['model']['document']['getRootNames']())_0x115778['detachRoot'](_0x2d71ed);});}['_sortAndFilterDiffChanges'](_0x21db58){const _0x1f1756=[],_0x65b07b=new Map();for(const _0x143d30 of this['editor']['model']['document']['getRootNames']()){const _0x299166=this['editor']['editing']['view']['getDomRoot'](_0x143d30);if(!_0x299166)continue;const _0xa8d577=_0x299166['getClientRects']()['item'](0x0);_0xa8d577&&(_0x1f1756['push'](_0x143d30),_0x65b07b['set'](_0x143d30,_0xa8d577));}return _0x1f1756['sort']((_0x5c4129,_0xb2aa0d)=>{const _0x4f1886=_0x65b07b['get'](_0x5c4129),_0x4af65c=_0x65b07b['get'](_0xb2aa0d);return _0x4f1886['y']-_0x4af65c['y']||_0x4f1886['x']-_0x4af65c['x'];}),(_0x21db58=_0x21db58['filter'](_0x15c1ac=>_0x1f1756['includes'](_0x15c1ac['rootName'])))['sort']((_0x5d688d,_0x3d2ed4)=>_0x1f1756['indexOf'](_0x5d688d['rootName'])-_0x1f1756['indexOf'](_0x3d2ed4['rootName'])),_0x21db58;}['_makeTape'](_0x3624b2){const _0x29cf79=Array['from'](_0x3624b2['markers'])['filter'](([_0xad97e6,_0x333f78])=>_0xad97e6['startsWith']('revision:')&&!_0x333f78['isCollapsed']),_0x6fefd8=Array['from'](this['editor']['model']['createRangeIn'](_0x3624b2)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x29cf79['length'])for(const _0x1eb250 of _0x6fefd8){const [_0x5b2db9,_0x1fa110]=_0x29cf79[0x0],[,_0x24b9c9,_0xc25901]=_0x5b2db9['split'](':');if(_0x1fa110['end']['isEqual'](_0x1eb250['nextPosition'])&&_0x29cf79['shift'](),(_0x1eb250['previousPosition']['isEqual'](_0x1fa110['start'])||_0x1eb250['previousPosition']['isAfter'](_0x1fa110['start']))&&('insertion'==_0x24b9c9?_0x1eb250['isAdded']={'userId':_0xc25901}:'deletion'==_0x24b9c9&&(_0x1eb250['isRemoved']={'userId':_0xc25901})),0x0==_0x29cf79['length'])break;}return _0x6fefd8;}['_refreshStartEndIndex'](_0x1caa31){const _0x4a81af=new Map();for(let _0x1f6888=0x0;_0x1f6888<_0x1caa31['length'];_0x1f6888++)'text'===_0x1caa31[_0x1f6888]['type']?(_0x1caa31[_0x1f6888]['item']['startIndex']=_0x1f6888,_0x1caa31[_0x1f6888]['item']['endIndex']=_0x1f6888):('elementStart'===_0x1caa31[_0x1f6888]['type']?_0x1caa31[_0x1f6888]['item']['startIndex']=_0x1f6888:'elementEnd'===_0x1caa31[_0x1f6888]['type']&&(_0x1caa31[_0x1f6888]['item']['endIndex']=_0x1f6888),_0x4a81af['set'](_0x1caa31[_0x1f6888]['id'],_0x1f6888));for(const _0x5f2a8d of _0x4a81af['values']())'elementStart'===_0x1caa31[_0x5f2a8d]['type']?_0x1caa31[_0x5f2a8d]['item']['endIndex']=_0x4a81af['get'](_0x1caa31[_0x5f2a8d]['pairId']):'elementEnd'===_0x1caa31[_0x5f2a8d]['type']&&(_0x1caa31[_0x5f2a8d]['item']['startIndex']=_0x4a81af['get'](_0x1caa31[_0x5f2a8d]['pairId']));}['_processTape'](_0x5236e3){for(let _0x4fcd3d=0x0;_0x4fcd3d<_0x5236e3['length'];_0x4fcd3d++){if('elementStart'===_0x5236e3[_0x4fcd3d]['type'])_0x5236e3[_0x4fcd3d]['item']['startIndex']=_0x4fcd3d;else{if('elementEnd'===_0x5236e3[_0x4fcd3d]['type']){_0x5236e3[_0x4fcd3d]['item']['endIndex']=_0x4fcd3d;const _0x2649fa=_0x5236e3[_0x4fcd3d]['item']['startIndex'];_0x5236e3[_0x2649fa]['pairId']=_0x5236e3[_0x4fcd3d]['id'],_0x5236e3[_0x4fcd3d]['pairId']=_0x5236e3[_0x2649fa]['id'];}else _0x5236e3[_0x4fcd3d]['item']['startIndex']=_0x4fcd3d,_0x5236e3[_0x4fcd3d]['item']['endIndex']=_0x4fcd3d,_0x5236e3[_0x4fcd3d]['pairId']=null;}_0x5236e3[_0x4fcd3d]['markersStart']||(_0x5236e3[_0x4fcd3d]['markersStart']=[],_0x5236e3[_0x4fcd3d]['markersEnd']=[]);}}['_markInsertions'](_0x739cf8,_0x367c84){const _0x53b4d7=_0x739cf8['filter'](_0x1d89e9=>!_0x1d89e9['isAdded']);for(let _0x31c64d=0x0;_0x31c64d<_0x367c84['length'];_0x31c64d++)_0x367c84[_0x31c64d]['isAdded']&&(_0x53b4d7[_0x31c64d]['isAdded']=_0x367c84[_0x31c64d]['isAdded']);}['_makeModelFromViewString'](_0x5619b2){const _0x3852c3=JSON['parse'](_0x5619b2),_0x24a08f=this['editor']['editing']['view']['document'],_0x43c506=new _0x32e5d2(_0x24a08f,_0x3852c3['map'](_0x2319e6=>this['_getViewObj'](_0x2319e6)));return this['editor']['data']['toModel'](_0x43c506);}['_getViewObj'](_0x376efa){const _0x1d38be=this['editor']['editing']['view']['document'];if('string'==typeof _0x376efa)return new _0x729482(_0x1d38be,_0x376efa);{const _0x2e408a=_0x376efa['children']['map'](_0x362516=>this['_getViewObj'](_0x362516));return new(Y[_0x376efa['type']]||_0x2e9996)(_0x1d38be,_0x376efa['name'],_0x376efa['attributes'],_0x2e408a);}}['_getDiff'](_0x1535b9,_0x6dae79=null){const _0x50d47c=this['repository']['getRevision'](_0x1535b9),_0x387174=_0x6dae79?this['repository']['getRevision'](_0x6dae79):null,_0x1f49cc=this['_getRevisionsRange'](_0x50d47c,_0x387174),_0x457a05=_0x1f49cc[_0x1f49cc['length']-0x1],_0x4bfdfa=new Map(),_0x1b79ba={'model':{},'attributes':{},'changes':[]},_0x594183=new Set(),_0x1f8b8a=new Map();for(let _0x55b153=_0x1f49cc['length']-0x1;_0x55b153>=0x0;_0x55b153--){const _0x7ed1bb=_0x1f49cc[_0x55b153];for(const _0x5a7329 of Object['keys'](_0x7ed1bb['diffData']))if(_0x7ed1bb['diffData'][_0x5a7329]['attachChange']){const _0x2a5f82=_0x7ed1bb['diffData'][_0x5a7329]['attachChange'];_0x2a5f82['isAttached']?(_0x594183['add'](_0x5a7329),_0x1f8b8a['has'](_0x5a7329)&&_0x1f8b8a['get'](_0x5a7329)['userId']==_0x2a5f82['userId']?_0x1f8b8a['delete'](_0x5a7329):_0x1f8b8a['set'](_0x5a7329,_0x2a5f82)):_0x1f8b8a['has'](_0x5a7329)?(_0x594183['delete'](_0x5a7329),_0x1f8b8a['delete'](_0x5a7329)):(_0x594183['add'](_0x5a7329),_0x1f8b8a['set'](_0x5a7329,_0x2a5f82));}else _0x594183['add'](_0x5a7329);}for(const _0x104e30 of _0x594183){const _0x456d41=_0x1f8b8a['has'](_0x104e30)&&!_0x1f8b8a['get'](_0x104e30)['isAttached'];let _0x1fb019=_0x456d41?_0x1f49cc['length']-0x1:0x0;const _0x393b55=_0x456d41?-0x1:0x1;for(;_0x1f49cc[_0x1fb019];){const _0x532339=_0x1f49cc[_0x1fb019];if(_0x532339['diffData'][_0x104e30]){const _0x203b9c=_0x456d41?_0x532339['diffData'][_0x104e30]['attributesBefore']:_0x532339['diffData'][_0x104e30]['attributesAfter'];_0x1b79ba['attributes'][_0x104e30]=_0x203b9c?_0x5635ac(_0x203b9c):{};break;}_0x1fb019+=_0x393b55;}}for(const _0x5226f9 of _0x1f49cc){_0x5226f9['model']={};for(const _0x567e49 of _0x5226f9['authors'])_0x4bfdfa['set'](_0x567e49['id'],_0x567e49);for(const _0x13f348 of _0x594183){const _0x25d173=_0x5226f9['diffData'][_0x13f348]?_0x5226f9['diffData'][_0x13f348]['insertions']:'[]',_0xba9313=_0x5226f9['diffData'][_0x13f348]?_0x5226f9['diffData'][_0x13f348]['deletions']:'[]';_0x5226f9['model'][_0x13f348]={'insertions':this['_makeModelFromViewString'](_0x25d173),'deletions':this['_makeModelFromViewString'](_0xba9313)};}}for(const _0x11cffa of _0x594183){let _0x2fa20c=null,_0x3cce72=0x0;const _0x6ce83c=new Map(Array['from'](_0x50d47c['model'][_0x11cffa]['insertions']['markers'])['filter'](([_0x577ffc])=>!_0x577ffc['startsWith']('revision:')));let _0x493916=0x0;for(const _0x48a70a of _0x1f49cc){const _0x2ea116=this['_makeTape'](_0x48a70a['model'][_0x11cffa]['insertions']);_0x48a70a==_0x50d47c?(_0x2fa20c=_0x2ea116,_0x3cce72=_0x2fa20c['length'],_0x2fa20c['forEach'](_0x20ff10=>{_0x20ff10['id']=_0x493916++;}),this['_processTape'](_0x2fa20c)):this['_markInsertions'](_0x2fa20c,_0x2ea116);const _0x3453bd=_0x2fa20c['filter'](_0x3cb0e0=>!_0x3cb0e0['isAdded'])['map'](_0x48fb1d=>_0x48fb1d['id']);let _0x3aa5a3=0x0;const _0x3dc980=this['_makeTape'](_0x48a70a['model'][_0x11cffa]['deletions']);_0x3dc980['forEach'](_0x61666d=>{_0x61666d['isRemoved']?_0x61666d['id']=_0x3cce72++:_0x61666d['id']=_0x3453bd[_0x3aa5a3++];}),this['_processTape'](_0x3dc980),this['_setDistance'](_0x2fa20c,'isAdded'),this['_setDistance'](_0x3dc980,'isRemoved'),_0x48a70a==_0x50d47c&&this['_markMarkers'](_0x2fa20c,_0x6ce83c),_0x2fa20c=this['_joinTapes'](_0x2fa20c,_0x3dc980),this['_refreshStartEndIndex'](_0x2fa20c),this['_setDistance'](_0x2fa20c,'isRemoved');}_0x2fa20c=_0x2fa20c['filter'](_0x2788af=>!(_0x2788af['isAdded']&&_0x2788af['isRemoved']));const _0x28f85d=new Map(_0x457a05['model'][_0x11cffa]['deletions']['markers']),_0x27426d=new Set(_0x6ce83c['keys']());for(const _0x2ed2f3 of _0x28f85d['keys']())_0x27426d['delete'](_0x2ed2f3);this['_markSuggestions'](_0x2fa20c,_0x27426d),this['_fixObsoleteTags'](_0x2fa20c),_0x2fa20c=this['_removeMissingPairs'](_0x2fa20c),_0x2fa20c=this['_markMismatchedRemovedTags'](_0x2fa20c),_0x2fa20c=this['_removeUnsupportedChanges'](_0x2fa20c);const {root:_0x3107f0,changes:_0xccc8f0}=this['_makeModelFromTape'](_0x2fa20c,_0x4bfdfa,_0x11cffa);_0x1b79ba['model'][_0x11cffa]=_0x3107f0;const _0x3db5c6=_0x1f8b8a['get'](_0x11cffa);if(_0x3db5c6){const _0x2d2a34=_0x4bfdfa['get'](_0x3db5c6['userId']),_0x130664=new r({'author':_0x2d2a34,'type':_0x3db5c6['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x11cffa});_0xccc8f0['unshift'](_0x130664),_0x1b79ba['attributes'][_0x11cffa]['revisionHistoryAttachChange']=_0x130664['id'];}_0x1b79ba['changes']=_0x1b79ba['changes']['concat'](_0xccc8f0);}return _0x1b79ba;}['_markMarkers'](_0x4e86b2,_0x1a193c){for(let _0x3244d9=0x0;_0x3244d9<_0x4e86b2['length'];_0x3244d9++)for(const [_0x2c2e10,_0x4739e6]of _0x1a193c)_0x4739e6['start']['isEqual'](_0x4e86b2[_0x3244d9]['previousPosition'])&&_0x4e86b2[_0x3244d9]['markersStart']['push'](_0x2c2e10),_0x4739e6['end']['isEqual'](_0x4e86b2[_0x3244d9]['nextPosition'])&&_0x4e86b2[_0x3244d9]['markersEnd']['push'](_0x2c2e10);}['_joinTapes'](_0x1e3269,_0x259543){let _0x3911c4=[],_0x5da9c5=0x0,_0x5ae982=0x0;for(;_0x5da9c5<_0x1e3269['length']||_0x5ae982<_0x259543['length'];){const _0x21ee5d=_0x1e3269[_0x5da9c5]||{},_0x30c0eb=_0x259543[_0x5ae982]||{};if(_0x21ee5d['id']==_0x30c0eb['id'])_0x5da9c5++,_0x5ae982++,_0x3911c4['push'](_0x21ee5d);else{if(_0x30c0eb['isRemoved']&&_0x21ee5d['isAdded']){const {commonTape:_0x521135,iEnd:_0x459334,jEnd:_0x5411cf}=this['_threeWayMerge'](_0x1e3269,_0x5da9c5,_0x259543,_0x5ae982);_0x3911c4=_0x3911c4['concat'](_0x521135),_0x5da9c5=_0x459334,_0x5ae982=_0x5411cf;}else _0x30c0eb['isRemoved']?(_0x5ae982++,_0x3911c4['push'](_0x30c0eb)):(_0x5da9c5++,_0x3911c4['push'](_0x21ee5d));}}return _0x3911c4;}['_markSuggestions'](_0x40c2b5,_0x44c9c2){const _0x25db0c=[];for(let _0x465059=0x0;_0x465059<_0x40c2b5['length'];_0x465059++){for(let _0x185908=0x0;_0x185908<_0x40c2b5[_0x465059]['markersStart']['length'];_0x185908++){const _0x13a433=_0x40c2b5[_0x465059]['markersStart'][_0x185908];if(!_0x44c9c2['has'](_0x13a433))continue;const {group:_0x4b28b2,type:_0x16ad58,authorId:_0x477d76}=_0x78122f(_0x13a433);'revision-suggestion'!=_0x4b28b2||'insertion'!=_0x16ad58&&'deletion'!=_0x16ad58||(_0x25db0c['unshift']({'type':_0x16ad58,'name':_0x13a433,'userId':_0x477d76}),_0x40c2b5[_0x465059]['markersStart']['splice'](_0x185908,0x1),_0x185908--);}_0x2c6a76(_0x40c2b5[_0x465059]);for(let _0xd1208b=0x0;_0xd1208b<_0x40c2b5[_0x465059]['markersEnd']['length'];_0xd1208b++){const _0x5ba7dd=_0x40c2b5[_0x465059]['markersEnd'][_0xd1208b];if(!_0x44c9c2['has'](_0x5ba7dd))continue;const {group:_0x346e91,type:_0xd92f78}=_0x78122f(_0x5ba7dd);if('revision-suggestion'!=_0x346e91||'insertion'!=_0xd92f78&&'deletion'!=_0xd92f78)continue;_0x40c2b5[_0x465059]['markersEnd']['splice'](_0xd1208b,0x1),_0xd1208b--;const _0x5926fe=_0x25db0c['findIndex'](_0x124e7c=>_0x124e7c['name']==_0x5ba7dd);_0x5926fe>-0x1&&_0x25db0c['splice'](_0x5926fe,0x1);}}function _0x78122f(_0x1c54d3){const _0x33e5b7=_0x1c54d3['split'](':');return{'group':_0x33e5b7[0x0],'type':_0x33e5b7[0x1],'subType':_0x33e5b7['length']>=0x5?_0x33e5b7[0x2]:null,'id':_0x33e5b7['length']<0x5?_0x33e5b7[0x2]:_0x33e5b7[0x3],'authorId':_0x33e5b7['length']<0x5?_0x33e5b7[0x3]:_0x33e5b7[0x4],'markerCount':0x6==_0x33e5b7['length']?_0x33e5b7[0x5]:null};}function _0x2c6a76(_0x359917){for(let _0x483cdf=0x0;_0x483cdf<_0x25db0c['length'];_0x483cdf++){if(_0x359917['isAdded']&&'insertion'==_0x25db0c[_0x483cdf]['type'])return _0x359917['isAddSuggestion']=_0x25db0c[_0x483cdf],void delete _0x359917['isAdded'];if(!_0x359917['isAdded']&&!_0x359917['isRemoved']&&'deletion'==_0x25db0c[_0x483cdf]['type'])return void(_0x359917['isRemoveSuggestion']=_0x25db0c[_0x483cdf]);}}}['_setDistance'](_0x43cf4f,_0x2feb1c){let _0x2d80a8=0x0,_0x2d51da=!0x1;const _0x151195=new Map();for(const _0x58b827 of _0x43cf4f)_0x58b827[_0x2feb1c]?_0x2d51da&&(_0x2d80a8++,_0x2d51da=!0x1):(_0x2d80a8++,_0x2d51da=!0x0),_0x151195['set'](_0x58b827['id'],_0x2d80a8);for(let _0x251aab=0x0;_0x251aab<_0x43cf4f['length'];_0x251aab++){if('isRemoved'==_0x2feb1c&&_0x43cf4f[_0x251aab]['isAdded']||'isAdded'==_0x2feb1c&&_0x43cf4f[_0x251aab]['isRemoved'])continue;if('text'==_0x43cf4f[_0x251aab]['type']){_0x43cf4f[_0x251aab]['distance']=0x0;continue;}const _0x156607=_0x151195['get'](_0x43cf4f[_0x251aab]['pairId']),_0x44c747=_0x151195['get'](_0x43cf4f[_0x251aab]['id']);_0x43cf4f[_0x251aab]['distance']=_0x156607-_0x44c747;}}['_getRevisionsRange'](_0x519416,_0x38eb86,_0x33606d=!0x1){const _0x4966c1=[];let _0x2d7cb9=this['repository']['getIndex'](_0x519416),_0x3caed7=this['repository']['getIndex'](_0x38eb86);for(-0x1==_0x3caed7&&(_0x3caed7=this['repository']['_revisions']['length'],_0x33606d=!0x1);_0x2d7cb9<_0x3caed7;)_0x4966c1['push'](this['repository']['getRevision'](_0x2d7cb9)),_0x2d7cb9++;return _0x33606d&&_0x4966c1['push'](this['repository']['getRevision'](_0x2d7cb9)),_0x4966c1;}['_threeWayMerge'](_0x35a46f,_0x96de4c,_0x236640,_0x5598f6){const _0x1497b3=this['editor']['model']['schema'];let _0x2566a2=_0x96de4c;for(;_0x35a46f[_0x2566a2]&&_0x35a46f[_0x2566a2]['isAdded'];)_0x2566a2++;let _0x2d1f89=_0x5598f6;for(;_0x236640[_0x2d1f89]&&_0x236640[_0x2d1f89]['isRemoved'];)_0x2d1f89++;_0xf42566(_0x35a46f,_0x96de4c,_0x2566a2),_0xf42566(_0x236640,_0x5598f6,_0x2d1f89);const _0x4a3553=_0x236640['slice'](_0x5598f6,_0x2d1f89)['concat'](_0x35a46f['slice'](_0x96de4c,_0x2566a2));return _0x4a3553['sort']((_0x4fe617,_0xdb6754)=>_0x4fe617['side']!=_0xdb6754['side']?_0x4fe617['side']-_0xdb6754['side']:_0x4fe617['level']!=_0xdb6754['level']?_0x4fe617['level']-_0xdb6754['level']:_0x4fe617['distance']!=_0xdb6754['distance']?_0xdb6754['distance']-_0x4fe617['distance']:!!_0x4fe617['isAdded']!=!!_0xdb6754['isAdded']?-0x1==_0x4fe617['side']||0x0==_0x4fe617['side']?_0x4fe617['isAdded']?-0x1:0x1:_0x4fe617['isAdded']?0x1:-0x1:_0x4fe617['index']-_0xdb6754['index']),{'commonTape':_0x4a3553,'iEnd':_0x2566a2,'jEnd':_0x2d1f89};function _0xf42566(_0x19c1e2,_0x2b7c26,_0x48d9ab){let _0x1cfb34=-0x1,_0x4c323a=Number['POSITIVE_INFINITY'],_0x17c737=!0x0;for(let _0x23c996=_0x2b7c26;_0x23c996<_0x48d9ab;_0x23c996++)if(_0x1497b3['isInline'](_0x19c1e2[_0x23c996]['item'])||(_0x17c737=!0x1),_0x19c1e2[_0x23c996]['item']['startIndex']<_0x2b7c26&&(_0x1cfb34=_0x23c996),_0x19c1e2[_0x23c996]['item']['endIndex']>=_0x48d9ab){_0x4c323a=_0x23c996;break;}_0x17c737&&(_0x1cfb34=_0x48d9ab-0x1);for(let _0x3d0c0c=_0x2b7c26;_0x3d0c0c<_0x48d9ab;_0x3d0c0c++)_0x19c1e2[_0x3d0c0c]['side']=_0x3d0c0c<=_0x1cfb34?-0x1:_0x3d0c0c<_0x4c323a?0x0:0x1,_0x19c1e2[_0x3d0c0c]['index']=_0x3d0c0c;let _0x217a9d=0x0;for(let _0x44e026=_0x2b7c26;_0x44e026<=_0x1cfb34;_0x44e026++)0x0==_0x19c1e2[_0x44e026]['distance']?_0x19c1e2[_0x44e026]['level']=_0x217a9d:(_0x217a9d++,_0x19c1e2[_0x44e026]['level']=_0x217a9d,_0x217a9d++);for(let _0x5aa6ab=_0x2b7c26;_0x5aa6ab<_0x48d9ab;_0x5aa6ab++)0x0==_0x19c1e2[_0x5aa6ab]['side']&&(_0x19c1e2[_0x5aa6ab]['level']=_0x217a9d);_0x217a9d=0x0;for(let _0x330b00=_0x48d9ab-0x1;_0x330b00>=_0x4c323a;_0x330b00--)0x0==_0x19c1e2[_0x330b00]['distance']?_0x19c1e2[_0x330b00]['level']=_0x217a9d:(_0x217a9d--,_0x19c1e2[_0x330b00]['level']=_0x217a9d,_0x217a9d--);}}['_fixObsoleteTags'](_0x4a117d){const _0x622a09=new Map(),_0x41ffa4=this['editor']['model']['schema'];for(let _0x519159=0x1;_0x519159<_0x4a117d['length'];_0x519159++){let _0x35d2ba,_0x5a77b3,_0x3325fd;const _0x10ce8a=_0x4a117d[_0x519159],_0x36c04c=_0x4a117d[_0x519159-0x1];if('text'==_0x10ce8a['type'])continue;if(_0x10ce8a['type']!=_0x36c04c['type'])continue;if(!_0x41ffa4['isBlock'](_0x36c04c['item'])||_0x41ffa4['isLimit'](_0x36c04c['item']))continue;if(!_0x41ffa4['isBlock'](_0x10ce8a['item'])||_0x41ffa4['isLimit'](_0x10ce8a['item']))continue;if((_0x4a117d[_0x519159]['isAdded']||_0x4a117d[_0x519159]['isAddSuggestion'])&&_0x4a117d[_0x519159-0x1]['isRemoved'])_0x35d2ba=_0x4a117d[_0x519159],_0x5a77b3=_0x4a117d[_0x519159-0x1],_0x3325fd=_0x519159-0x1;else{if(!_0x4a117d[_0x519159]['isRemoved']||!_0x4a117d[_0x519159-0x1]['isAdded']&&!_0x4a117d[_0x519159-0x1]['isAddSuggestion'])continue;_0x35d2ba=_0x4a117d[_0x519159-0x1],_0x5a77b3=_0x4a117d[_0x519159],_0x3325fd=_0x519159;}const _0x2d7ea2=_0x35d2ba['level']==_0x5a77b3['level'],_0x23048e=Math['abs'](_0x35d2ba['level'])<Math['abs'](_0x5a77b3['level'])&&0x0==_0x5a77b3['distance'];(_0x2d7ea2||_0x23048e)&&(_0x622a09['set'](_0x5a77b3['id'],_0x35d2ba['id']),_0x4a117d['splice'](_0x3325fd,0x1),_0x519159--,_0x35d2ba['isAdded']=!0x1);}for(let _0x476526=0x0;_0x476526<_0x4a117d['length'];_0x476526++)_0x622a09['has'](_0x4a117d[_0x476526]['pairId'])&&(_0x4a117d[_0x476526]['pairId']=_0x622a09['get'](_0x4a117d[_0x476526]['pairId']));}['_removeMissingPairs'](_0x3ad363){const _0xd15428=new Set(_0x3ad363['map'](_0x506ad8=>_0x506ad8['id']));for(let _0x9842ac=0x0;_0x9842ac<_0x3ad363['length'];_0x9842ac++)_0xd15428['has'](_0x3ad363[_0x9842ac]['pairId'])||0x0==_0x3ad363[_0x9842ac]['distance']||(_0x3ad363[_0x9842ac]['isIncorrect']=!0x0);return _0x3ad363['filter'](_0x4577c4=>!_0x4577c4['isIncorrect']);}['_markMismatchedRemovedTags'](_0x5a235f){const _0x2de7ad=new Set();for(let _0xb26ab=0x0;_0xb26ab<_0x5a235f['length'];_0xb26ab++){if(_0x2de7ad['has'](_0x5a235f[_0xb26ab]['id'])&&_0x5a235f[_0xb26ab]['isRemoved']&&(_0x5a235f[_0xb26ab]['isIncorrect']=!0x0),_0x5a235f[_0xb26ab]['isIncorrect'])continue;if(0x0==_0x5a235f[_0xb26ab]['distance'])continue;if('elementStart'!=_0x5a235f[_0xb26ab]['type'])continue;if(null==_0x5a235f[_0xb26ab]['pairId'])continue;let _0x4063a6=_0xb26ab+0x1,_0xbcc596=0x0;for(;_0x5a235f[_0x4063a6]['id']!=_0x5a235f[_0xb26ab]['pairId'];)'elementStart'==_0x5a235f[_0x4063a6]['type']?_0xbcc596++:'elementEnd'==_0x5a235f[_0x4063a6]['type']&&_0xbcc596--,_0x4063a6++;if(0x0!=_0xbcc596){if(_0x5a235f[_0xb26ab]['isRemoved'])_0x5a235f[_0xb26ab]['isIncorrect']=!0x0;else{for(;_0x4063a6!=_0xb26ab;)_0x5a235f[_0x4063a6]['isRemoved']&&0x0!=_0x5a235f[_0x4063a6]['distance']&&(_0x5a235f[_0x4063a6]['isIncorrect']=!0x0,_0x2de7ad['add'](_0x5a235f[_0x4063a6]['pairId'])),_0x4063a6--;}}}return _0x5a235f['filter'](_0x44b256=>!_0x44b256['isIncorrect']);}['_removeUnsupportedChanges'](_0x27cacf){const _0x1f95a0=this['editor']['model']['schema'];for(let _0x4c163c=0x0;_0x4c163c<_0x27cacf['length'];_0x4c163c++){if(!(_0x27cacf[_0x4c163c]['isAdded']||_0x27cacf[_0x4c163c]['isAddSuggestion']||_0x27cacf[_0x4c163c]['isRemoved']||_0x27cacf[_0x4c163c]['isRemoveSuggestion']))continue;if(0x0==_0x27cacf[_0x4c163c]['distance'])continue;const _0x2aab56=_0x27cacf[_0x4c163c]['item'];_0x1f95a0['isBlock'](_0x2aab56)||_0x1f95a0['isLimit'](_0x2aab56)||(_0x27cacf[_0x4c163c]['isAdded']&&delete _0x27cacf[_0x4c163c]['isAdded'],_0x27cacf[_0x4c163c]['isAddSuggestion']&&delete _0x27cacf[_0x4c163c]['isAddSuggestion'],_0x27cacf[_0x4c163c]['isRemoveSuggestion']&&delete _0x27cacf[_0x4c163c]['isRemoveSuggestion'],_0x27cacf[_0x4c163c]['isRemoved']&&(_0x27cacf[_0x4c163c]['isIncorrect']=!0x0));}return _0x27cacf['filter'](_0x58973b=>!_0x58973b['isIncorrect']);}['_makeModelFromTape'](_0x2984c6,_0x305f30,_0x13250c){const _0x1753c2=new mt(),_0x25be57=[],_0x16ccfb=new Map(),_0x9787a3=this['editor']['model'],_0x2b64ce=_0x9787a3['schema'],_0x5200ee=[_0x1753c2],_0x1a50ff={},_0x531f29={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x24cbbe=null;const _0x4be2bf=[0x0];for(let _0x2bad09=0x0;_0x2bad09<_0x2984c6['length'];_0x2bad09++)if('elementStart'===_0x2984c6[_0x2bad09]['type']){_0x2984c6[_0x2bad09]['previousPosition']=_0x9787a3['createPositionFromPath'](_0x1753c2,_0x4be2bf);const _0x311ec1=new ft(_0x2984c6[_0x2bad09]['item']['name'],_0x2984c6[_0x2bad09]['item']['getAttributes']());_0x5200ee[0x0]['_appendChild'](_0x311ec1),_0x4be2bf['push'](0x0),_0x5200ee['unshift'](_0x311ec1),_0x2984c6[_0x2bad09]['nextPosition']=_0x9787a3['createPositionFromPath'](_0x1753c2,_0x4be2bf);}else'elementEnd'===_0x2984c6[_0x2bad09]['type']?(_0x5200ee['shift'](),_0x2984c6[_0x2bad09]['previousPosition']=_0x9787a3['createPositionFromPath'](_0x1753c2,_0x4be2bf),_0x4be2bf['pop'](),_0x4be2bf[_0x4be2bf['length']-0x1]++,_0x2984c6[_0x2bad09]['nextPosition']=_0x9787a3['createPositionFromPath'](_0x1753c2,_0x4be2bf)):(_0x2984c6[_0x2bad09]['previousPosition']=_0x9787a3['createPositionFromPath'](_0x1753c2,_0x4be2bf),_0x24cbbe?_0x24cbbe['_data']+=_0x2984c6[_0x2bad09]['item']['data']:_0x24cbbe=new wt(_0x2984c6[_0x2bad09]['item']['data'],_0x2984c6[_0x2bad09]['item']['getAttributes']()),_0x2984c6[_0x2bad09+0x1]&&'text'===_0x2984c6[_0x2bad09+0x1]['type']&&_0xb91ede(_0x24cbbe,_0x2984c6[_0x2bad09+0x1]['item'])||(_0x5200ee[0x0]['_appendChild'](_0x24cbbe),_0x24cbbe=null),_0x4be2bf[_0x4be2bf['length']-0x1]+=_0x2984c6[_0x2bad09]['item']['offsetSize'],_0x2984c6[_0x2bad09]['nextPosition']=_0x9787a3['createPositionFromPath'](_0x1753c2,_0x4be2bf));for(let _0xe6a5a3=0x0;_0xe6a5a3<_0x2984c6['length'];_0xe6a5a3++){const _0x3b7c26=_0x2984c6[_0xe6a5a3]['previousPosition'],_0x4ad00c=_0x2984c6[_0xe6a5a3]['nextPosition'];for(const _0x55da19 of _0x2984c6[_0xe6a5a3]['markersStart'])_0x16ccfb['set'](_0x55da19,{'start':_0x3b7c26,'end':null});_0x4437e4('isRemoveSuggestion',_0xe6a5a3,_0x3b7c26,_0x4ad00c),_0x4437e4('isAddSuggestion',_0xe6a5a3,_0x3b7c26,_0x4ad00c),_0x4437e4('isRemoved',_0xe6a5a3,_0x3b7c26,_0x4ad00c),_0x4437e4('isAdded',_0xe6a5a3,_0x3b7c26,_0x4ad00c);for(const _0x50822d of _0x2984c6[_0xe6a5a3]['markersEnd']){_0x16ccfb['get'](_0x50822d)['end']=_0x4ad00c;}}for(const [_0x20a7b7,_0x38dca8]of _0x16ccfb){const _0x4ce2cd=this['editor']['model']['createRange'](_0x38dca8['start'],_0x38dca8['end']);_0x1753c2['markers']['set'](_0x20a7b7,_0x4ce2cd);}return _0x25be57['sort']((_0x306804,_0x505188)=>{const _0x305fed=_0x1753c2['markers']['get']('revision:'+_0x306804['id']),_0xc0e669=_0x1753c2['markers']['get']('revision:'+_0x505188['id']);return _0x305fed['start']['isBefore'](_0xc0e669['start'])?-0x1:_0x305fed['start']['isAfter'](_0xc0e669['start'])?0x1:_0x305fed['end']['isBefore'](_0xc0e669['end'])?-0x1:_0x305fed['end']['isAfter'](_0xc0e669['end'])?0x1:'add'===_0x306804['type']?-0x1:0x1;}),{'root':_0x1753c2,'changes':_0x25be57};function _0x4437e4(_0x1bc9b8,_0x2c0b5f,_0x23257b,_0x118be2){const _0x206e23=!!_0x2984c6[_0x2c0b5f][_0x1bc9b8],_0x4e2e30=_0x206e23?_0x2984c6[_0x2c0b5f][_0x1bc9b8]['userId']:null,_0x342f69=_0x2c0b5f===_0x2984c6['length']-0x1,_0x1a3cc2=_0x531f29[_0x1bc9b8][0x0],_0x3ee145=_0x2b64ce['isObject'](_0x2984c6[_0x2c0b5f]['item']);!_0x1a50ff[_0x1bc9b8]&&_0x206e23?_0x1a50ff[_0x1bc9b8]={'start':_0x23257b,'tapeItem':_0x2984c6[_0x2c0b5f],'userId':_0x4e2e30,'type':_0x1bc9b8}:_0x1a50ff[_0x1bc9b8]&&!_0x206e23?(_0x1a50ff[_0x1bc9b8]['end']=_0x23257b,_0x2237bb(_0x1a50ff[_0x1bc9b8]),_0x1a50ff[_0x1bc9b8]=null):_0x1a50ff[_0x1bc9b8]&&_0x206e23&&_0x1a50ff[_0x1bc9b8]['userId']!==_0x4e2e30&&(_0x1a50ff[_0x1bc9b8]['end']=_0x23257b,_0x1a3cc2&&_0x1a3cc2['userId']===_0x1a50ff[_0x1bc9b8]['userId']||_0x2237bb(_0x1a50ff[_0x1bc9b8]),_0x1a50ff[_0x1bc9b8]={'start':_0x23257b,'tapeItem':_0x2984c6[_0x2c0b5f],'userId':_0x4e2e30,'type':_0x1bc9b8}),_0x1a50ff[_0x1bc9b8]&&_0x3ee145&&('elementStart'!==_0x2984c6[_0x2c0b5f]['type']||_0x1a3cc2&&_0x1a3cc2['userId']===_0x4e2e30||_0x531f29[_0x1bc9b8]['unshift']({'userId':_0x4e2e30,'object':_0x2984c6[_0x2c0b5f]['item'],'change':_0x1a50ff[_0x1bc9b8]}),'elementEnd'===_0x2984c6[_0x2c0b5f]['type']&&_0x1a3cc2&&_0x1a3cc2['object']===_0x2984c6[_0x2c0b5f]['item']&&(_0x531f29[_0x1bc9b8]['shift'](),_0x1a50ff[_0x1bc9b8]=_0x1a3cc2['change'])),_0x1a50ff[_0x1bc9b8]&&_0x342f69&&(_0x1a50ff[_0x1bc9b8]['end']=_0x118be2,_0x2237bb(_0x1a50ff[_0x1bc9b8]),_0x1a50ff[_0x1bc9b8]=null);}function _0x2237bb({start:_0x46a0f2,end:_0x508b84,tapeItem:_0x10133b,userId:_0x157b09,type:_0x4dc977}){const _0x4a0a7e=_0x10133b['item'],_0x22025e=_0x9787a3['schema']['isBlock'](_0x4a0a7e)&&!_0x9787a3['schema']['isLimit'](_0x4a0a7e),_0xba60b3=_0x46a0f2['nodeAfter']==_0x508b84['parent']&&_0x508b84['isAtStart'];if(_0x22025e&&_0xba60b3)return;const _0x17f856=_0x9787a3['createRange'](_0x46a0f2,_0x508b84),_0x3080b6=_0x305f30['get'](_0x157b09),_0x1f3fd0=new r({'author':_0x3080b6,'type':'isAdded'==_0x4dc977||'isAddSuggestion'==_0x4dc977?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x4dc977||'isRemoveSuggestion'==_0x4dc977},'createdAt':new Date(),'rootName':_0x13250c});_0x25be57['push'](_0x1f3fd0),_0x1753c2['markers']['set']('revision:'+_0x1f3fd0['id'],_0x17f856);}function _0xb91ede(_0x111e04,_0x195c5d){const _0x2d21f9=_0x111e04['getAttributes'](),_0x57e079=_0x195c5d['getAttributes']();for(const _0x35080b of _0x2d21f9){if(_0x35080b[0x1]!==_0x195c5d['getAttribute'](_0x35080b[0x0]))return!0x1;_0x57e079['next']();}return _0x57e079['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x28cfe1=>{const _0x2c9d38=_0x28cfe1['markerName']['split'](':')[0x1],_0x18fa07=this['_getChangeFromId'](_0x2c9d38);if(!_0x18fa07)return null;const _0x2358b2='add'==_0x18fa07['type']?'insertion':'deletion',_0x3bc780=['ck-suggestion-marker','ck-suggestion-marker-'+_0x2358b2];return _0x18fa07['data']['isSuggestion']&&_0x3bc780['push']('ck-suggestion-marker-'+_0x2358b2+'-new'),this['activeChange']==_0x18fa07&&_0x3bc780['push']('ck-suggestion-marker--active'),{'classes':_0x3bc780,'attributes':{'data-change-id':_0x2c9d38}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x3da199=>{_0x3da199['on']('element:pre',(_0x3131cd,_0x295665,_0x538dfb)=>{const _0x266ead=_0x295665['viewItem']['getChild'](0x0);if(!_0x266ead||!_0x266ead['is']('element','code'))return;if(!_0x538dfb['consumable']['consume'](_0x266ead,{'attributes':['vid_start','vid_end']}))return;const _0x39cf69=_0x295665['modelRange']['start']['nodeAfter'];_0x538dfb['writer']['setAttribute']('vid_start',_0x266ead['getAttribute']('vid_start'),_0x39cf69),_0x538dfb['writer']['setAttribute']('vid_end',_0x266ead['getAttribute']('vid_end'),_0x39cf69);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0xe6c2b6=>{_0xe6c2b6['on']('element',(_0x2afba9,_0x5b2f36,_0x353c73)=>{if(!_0x353c73['consumable']['consume'](_0x5b2f36['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x5b2f36['modelRange']['isCollapsed'])return;const _0x2ba6ef=_0x5b2f36['modelRange']['start']['nodeAfter'];_0x2ba6ef['hasAttribute']('vid_start')||_0x2ba6ef['hasAttribute']('vid')||(_0x353c73['writer']['setAttribute']('vid_start',_0x5b2f36['viewItem']['getAttribute']('vid_start'),_0x2ba6ef),_0x353c73['writer']['setAttribute']('vid_end',_0x5b2f36['viewItem']['getAttribute']('vid_end'),_0x2ba6ef));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x52240d=>_0x52240d['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0xf689cb,[,_0x2dc35e])=>{['vid_start','vid_end','vid']['includes'](_0x2dc35e)&&(_0xf689cb['return']=!0x0,_0xf689cb['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x32721d=>{_0x32721d['on']('attribute:vid',(_0x1d0f2c,_0x11ebf6,_0x4756c3)=>{if('\x20'!=_0x11ebf6['item']['data']||_0x11ebf6['item']['parent']['maxOffset']>0x1)return;if(!_0x4756c3['consumable']['consume'](_0x11ebf6['item'],_0x1d0f2c['name']))return;const _0x1db91d=_0x4756c3['writer'],_0x5b4f6c=_0x4756c3['mapper']['toViewRange'](_0x11ebf6['range']);_0x1db91d['wrap'](_0x5b4f6c,_0x1db91d['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x46d52a){const _0x1d823b=_0x46d52a['plugins']['get']('RevisionViewer');return(_0x3a90ba,_0x414a70,_0x1ba1a2)=>{const _0x548740=_0x414a70['markerName']['split'](':')[0x1],_0x201b5a=_0x1d823b['_getChangeFromId'](_0x548740);if(!_0x201b5a)return null;const _0x4d2c49='add'==_0x201b5a['type']?'split':'merge';if(!_0x1ba1a2['consumable']['test'](_0x414a70['markerRange'],_0x3a90ba['name']))return;const _0x1752b1=_0x414a70['markerRange']['getWalker'](),_0x431458=_0x414a70['markerRange']['start'],_0x356181=_0x46d52a['model']['schema'];let _0x2fb185=null,_0x37bca0=null,_0x41c480=!0x1,_0x1ff897=!0x1;for(const _0x1d7950 of _0x1752b1){const _0x4a887c=_0x1d7950['item'];_0x41c480=_0x41c480||_0x356181['isContent'](_0x4a887c);const _0x41a229=_0x1ba1a2['mapper']['toViewElement'](_0x4a887c);if(_0x41a229&&_0x41a229['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1d7950['type']&&(_0x356181['isBlock'](_0x4a887c)&&!_0x356181['isLimit'](_0x4a887c)&&(_0x4a887c['nextSibling']||_0x431458['isAtEnd']?_0x2fb185&&_0x2fb185['parent']==_0x4a887c||(_0x2fb185=_0x4a887c,_0x12b7c5(_0x1d7950['previousPosition']),_0x1ff897=!0x0):_0x37bca0=_0x37bca0||_0x1d7950['previousPosition']));}function _0x12b7c5(_0x33c255){const _0x2b88f2=_0x1ba1a2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4d2c49}),_0x57b785=_0x1ba1a2['mapper']['toViewPosition'](_0x33c255);_0x201b5a['data']['isSuggestion']&&_0x1ba1a2['writer']['addClass']('ck-suggestion-marker-'+_0x4d2c49+'-new',_0x2b88f2),_0x1d823b['activeChange']==_0x201b5a&&_0x1ba1a2['writer']['addClass']('ck-suggestion-marker--active',_0x2b88f2),_0x1ba1a2['writer']['insert'](_0x57b785,_0x2b88f2),_0x1ba1a2['mapper']['bindElementToMarker'](_0x2b88f2,_0x414a70['markerName']);}_0x41c480||_0x1ff897||!_0x37bca0||_0x12b7c5(_0x37bca0);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x1884b6,_0x2f0dbf,_0x7e071c)=>{const _0xe0bed9=_0x7e071c['mapper']['markerNameToElements'](_0x2f0dbf['markerName']);if(_0xe0bed9){for(const _0x51bf8b of _0xe0bed9)(_0x51bf8b['hasClass']('ck-suggestion-marker-split')||_0x51bf8b['hasClass']('ck-suggestion-marker-merge'))&&(_0x7e071c['mapper']['unbindElementFromMarkerName'](_0x51bf8b,_0x2f0dbf['markerName']),_0x7e071c['writer']['remove'](_0x51bf8b));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x48b660,_0x12e1e2,_0x32c10f)=>{const _0x16f37a=_0x12e1e2['markerName']['split'](':')[0x1],_0x55778a=this['_getChangeFromId'](_0x16f37a);if(!_0x55778a)return null;const _0x3d22d6='add'==_0x55778a['type']?'split':'merge';if(_0x32c10f['consumable']['test'](_0x12e1e2['markerRange'],_0x48b660['name']))for(const _0x38df6a of _0x12e1e2['markerRange']['getItems']()){if(!_0x38df6a['is']('element','softBreak'))continue;const _0x21d1ed=_0x32c10f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3d22d6}),_0x3bf091=_0x32c10f['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x38df6a));_0x55778a['data']['isSuggestion']&&_0x32c10f['writer']['addClass']('ck-suggestion-marker-'+_0x3d22d6+'-new',_0x21d1ed),this['activeChange']==_0x55778a&&_0x32c10f['writer']['addClass']('ck-suggestion-marker--active',_0x21d1ed),_0x32c10f['writer']['insert'](_0x3bf091,_0x21d1ed),_0x32c10f['mapper']['bindElementToMarker'](_0x21d1ed,_0x12e1e2['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x1c4e14=>{for(const _0x4daf9d of this['editor']['model']['document']['getRootNames']()){const _0x98e226=this['editor']['model']['document']['getRoot'](_0x4daf9d),_0x249006=this['editor']['editing']['view']['document']['getRoot'](_0x4daf9d);if(_0x249006){const _0x726b73=_0x98e226['getAttribute']('revisionHistoryAttachChange');if(_0x1c4e14['removeAttribute']('data-change-id',_0x249006),_0x1c4e14['removeClass']('ck-revision-history-root-add',_0x249006),_0x1c4e14['removeClass']('ck-revision-history-root-remove',_0x249006),_0x1c4e14['removeClass']('ck-revision-history-root--active',_0x249006),_0x726b73){const _0x334ca6=this['_getChangeFromId'](_0x726b73);if(!_0x334ca6)return null;_0x1c4e14['setAttribute']('data-change-id',_0x726b73,_0x249006),_0x1c4e14['addClass']('ck-revision-history-root-'+_0x334ca6['type'],_0x249006),this['activeChange']==_0x334ca6&&_0x1c4e14['addClass']('ck-revision-history-root--active',_0x249006);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x391439=>'revision-comment:'+_0x391439,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x136f61=>'revision-suggestion:'+_0x136f61,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x1fcb23=>({'name':'suggestion:'+_0x1fcb23,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x10f853=>{const _0x16c367=_0x10f853['markerName']['split'](':')[0x1];return'insertion'!=_0x16c367&&'deletion'!=_0x16c367?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x16c367]};}}),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',(_0x504565,_0x5c2f5f,_0x1fe450)=>{const _0x6a5f40=_0x1fe450['mapper']['markerNameToElements'](_0x5c2f5f['markerName']);if(_0x6a5f40){for(const _0x1fb262 of _0x6a5f40)_0x1fb262['is']('uiElement')&&(_0x1fe450['mapper']['unbindElementFromMarkerName'](_0x1fb262,_0x5c2f5f['markerName']),_0x1fe450['writer']['remove'](_0x1fb262));}},{'priority':'high'});}['_getChangeFromId'](_0x3e9b05){return this['_changeIdToChange']['get'](_0x3e9b05);}['_getViewForChange'](_0x3284b2){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x3284b2),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x6813d5,_0x30bc30,_0x1f9196,_0x19f2d7)=>{_0x19f2d7&&this['_balloon']['remove'](_0x19f2d7),_0x1f9196&&(this['_balloon']['add']({'view':_0x1f9196,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x1921de=this['editor']['editing'],_0x4acfd9=this['_getChangeFromId'](_0x1f9196['changeId']);let _0x17674d;if(_0x4acfd9['data']['isOnRoot']){const _0x22239e=_0x1921de['view']['getDomRoot'](_0x4acfd9['rootName']);_0x17674d=Array['from'](_0x22239e['getClientRects']());}else{const _0x56d616=this['editor']['model']['markers']['get']('revision:'+_0x1f9196['changeId']);_0x17674d=Array['from'](_0x1921de['mapper']['markerNameToElements'](_0x56d616['name']))['map'](_0x3a066b=>_0x1921de['view']['domConverter']['mapViewToDom'](_0x3a066b))['map'](_0x101ce5=>Array['from'](_0x101ce5['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x17674d[0x0];return _0x17674d['find'](_0x36425c=>_0x36425c['top']-0x3<=this['_activeViewTarget']['y']&&_0x36425c['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x36425c['left']-0x3<=this['_activeViewTarget']['x']&&_0x36425c['right']+0x3>=this['_activeViewTarget']['x'])||_0x17674d[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x2f848d,_0x4b3cec,_0x3c8294,_0x432bff)=>{this['activeView']=_0x3c8294?this['_getViewForChange'](_0x3c8294):null,this['editor']['model']['change'](()=>{const _0x7ce7c=this['editor']['editing'];_0x432bff&&(_0x432bff['data']['isOnRoot']?_0x7ce7c['view']['change'](_0x3445ea=>{_0x3445ea['removeClass']('ck-revision-history-root--active',_0x7ce7c['view']['document']['getRoot'](_0x432bff['rootName']));}):_0x7ce7c['reconvertMarker']('revision:'+_0x432bff['id'])),_0x3c8294&&(_0x3c8294['data']['isOnRoot']?_0x7ce7c['view']['change'](_0x188e74=>{_0x188e74['addClass']('ck-revision-history-root--active',_0x7ce7c['view']['document']['getRoot'](_0x3c8294['rootName']));}):_0x7ce7c['reconvertMarker']('revision:'+_0x3c8294['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x185796,_0x382d73)=>{if(this['activeChange'])return;const _0x19261c=this['_findChangeIdFromDomTarget'](_0x382d73['target']),_0x18145c=this['_changeIdToChange']['get'](_0x19261c);_0x18145c?(this['_activeViewTarget']={'x':_0x382d73['domEvent']['x'],'y':_0x382d73['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x18145c)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x374c13,_0x2c1df8)=>{const _0x217844=this['_findChangeIdFromDomTarget'](_0x2c1df8['target']),_0x4d11fe=this['_changeIdToChange']['get'](_0x217844);_0x4d11fe?(this['_activeViewTarget']={'x':_0x2c1df8['domEvent']['x'],'y':_0x2c1df8['domEvent']['y']},_0x4d11fe===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x4d11fe):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x45163c){do{const _0x5000c5=_0x45163c['getAttribute']('data-change-id');if(_0x5000c5)return _0x5000c5;_0x45163c=_0x45163c['parent'];}while(_0x45163c);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x557a58=>{for(const _0x3cf785 of this['editor']['model']['markers'])_0x557a58['removeMarker'](_0x3cf785);});}}function Z(_0x4c88c5,_0x444f40){return(_0x1b22eb,_0x169b3d,_0x11f847)=>{if(!_0x11f847['consumable']['test'](_0x169b3d['markerRange'],_0x1b22eb['name']))return;const _0x15ee4d=_0x169b3d['markerRange']['getWalker'](),_0x49366d=_0x169b3d['markerRange']['start'],_0x1c7f2d=_0x4c88c5['model']['schema'];let _0x52dbd2=null,_0x3ee9bf=null,_0xffbdeb=!0x1,_0x542aab=!0x1;for(const _0x323a5b of _0x15ee4d){const _0x5825c3=_0x323a5b['item'];_0xffbdeb=_0xffbdeb||_0x1c7f2d['isContent'](_0x5825c3);const _0x35b186=_0x11f847['mapper']['toViewElement'](_0x5825c3);if(_0x35b186&&_0x35b186['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x323a5b['type']&&(_0x1c7f2d['isBlock'](_0x5825c3)&&!_0x1c7f2d['isLimit'](_0x5825c3)&&(_0x5825c3['nextSibling']||_0x49366d['isAtEnd']?_0x52dbd2&&_0x52dbd2['parent']==_0x5825c3||(_0x52dbd2=_0x5825c3,_0x4da639(_0x323a5b['previousPosition']),_0x542aab=!0x0):_0x3ee9bf=_0x3ee9bf||_0x323a5b['previousPosition']));}function _0x4da639(_0x569bfd){const _0x26360c=_0x11f847['mapper']['toViewPosition'](_0x569bfd),_0x440392=_0x11f847['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x444f40});_0x11f847['writer']['insert'](_0x26360c,_0x440392),_0x11f847['mapper']['bindElementToMarker'](_0x440392,_0x169b3d['markerName']);}_0xffbdeb||_0x542aab||!_0x3ee9bf||_0x4da639(_0x3ee9bf);};}class _t extends _0x3628b8{constructor(_0x3b22d6){super(_0x3b22d6);const _0x258f35=_0x3b22d6['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x258f35,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x258f35,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x596663=this['editor'],_0x1675ad=_0x596663['plugins']['get'](d),_0x461a67=_0x1675ad['isReady']?_0x1675ad['diff']['newRevisionId']:null;_0x596663['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x461a67);}['refresh'](){const {isReady:_0x443a62,isEnabled:_0x3b56e6,repository:_0x221351,diff:_0x153c7f}=this['editor']['plugins']['get'](d),_0x273c87=_0x153c7f&&_0x221351['getLaterVisibleRevision'](_0x153c7f['newRevisionId']);this['isEnabled']=_0x443a62&&_0x3b56e6&&Boolean(_0x273c87);}}class yt extends _0x3628b8{['_step'];constructor(_0x553e8e,{direction:_0x2c6f3a}){super(_0x553e8e);const _0x5b81ee=_0x553e8e['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x2c6f3a?0x1:-0x1,this['listenTo'](_0x5b81ee,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5b81ee,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x5b81ee,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x1d28dd=this['editor'],_0x1b834a=_0x1d28dd['plugins']['get'](d),{isNavigationMode:_0x3245f0,currentChangeNumber:_0x1a5885}=_0x1b834a;let _0x35e51b;if(_0x1b834a['activeChange']=_0x3245f0?_0x1b834a['diff']['changes']['get'](_0x1a5885+this['_step']):_0x1b834a['diff']['changes']['first'],_0x1b834a['activeChange']['data']['isOnRoot'])_0x35e51b=_0x1d28dd['editing']['view']['getDomRoot'](_0x1b834a['activeChange']['rootName']);else{const _0x3ca39d=_0x1d28dd['model']['markers']['get']('revision:'+_0x1b834a['activeChange']['id']);_0x35e51b=_0x5ef809(_0x1d28dd['editing'],_0x3ca39d);}_0x58b6c1({'target':_0x35e51b,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x3fc842,currentChangeNumber:_0x54acf8,numberOfChanges:_0xc1f0f1,isReady:_0x8331a3,isEnabled:_0xde3041}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0xde3041&&_0x8331a3&&_0xc1f0f1)&&(!_0x3fc842||(0x1===this['_step']?_0x54acf8<_0xc1f0f1-0x1:_0x54acf8>0x0));}}class _i extends _0x22e8ac{constructor(_0x4ed5ad){super(_0x4ed5ad);const _0x597d5a=this['bindTemplate'],_0x1ef576=new _0x500420(_0x4ed5ad),_0x5a664c=new _0x500420(_0x4ed5ad);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',(_0x29afa8,_0x13113e)=>_0x29afa8&&_0x13113e>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x35cc3c,_0x248c4c,_0x5181b7,_0x1f8f0b)=>{if(!_0x35cc3c)return m(_0x4ed5ad,'Loading...');if(!_0x5181b7)return m(_0x4ed5ad,'No\x20changes');const _0x3e5ae6=m(_0x4ed5ad,'NUMBER_OF_CHANGES',_0x5181b7);return _0x1f8f0b?m(_0x4ed5ad,'X_OF_Y_CHANGES',[_0x248c4c+0x1,_0x5181b7]):_0x3e5ae6;}),_0x1ef576['set']({'label':m(_0x4ed5ad,'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'}),_0x5a664c['set']({'label':m(_0x4ed5ad,'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'}),_0x1ef576['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x5a664c['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x1ef576['on']('execute',()=>this['fire']('execute','backward')),_0x5a664c['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',_0x597d5a['if']('_isStatusLabelVisible','ck-hidden',_0x44f15c=>!_0x44f15c)]},'children':[{'text':_0x597d5a['to']('isNavigationMode',_0x588f81=>_0x588f81?m(_0x4ed5ad,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x4ed5ad,'Total')+':\x20')}]},{'text':_0x597d5a['to']('_statusText')}]},new _0xb6130c(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x1ef576,_0x5a664c]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x378b96{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x6fc2b0=this['editor']['editing']['view'];_0x6fc2b0['change'](_0x1cf3b2=>{for(const _0x558064 of _0x6fc2b0['document']['roots'])_0x1cf3b2['addClass'](ce,_0x558064);});}['hide'](){const _0xaf7ad9=this['editor']['editing']['view'];_0xaf7ad9['change'](_0x1acd5b=>{for(const _0x3ac704 of _0xaf7ad9['document']['roots'])_0x1acd5b['removeClass'](ce,_0x3ac704);});}}class g extends _0x378b96{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x512395=this['editor'],_0xf0cb89=_0x512395['plugins']['get'](d),_0x1342df=_0x512395['plugins']['get'](le);_0x512395['ui']['componentFactory']['add']('exitToEditing',_0x67118d=>{const _0x132ef0=new _0x500420(_0x67118d);return _0x132ef0['set']({'label':m(_0x67118d,'Back\x20to\x20editing'),'icon':_0x3f261c['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x132ef0,'execute',()=>{_0x512395['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x132ef0;}),_0x512395['ui']['componentFactory']['add']('restoreRevision',_0x3bd396=>{const _0x3f44f8=new _0x500420(_0x3bd396);return _0x3f44f8['set']({'label':m(_0x3bd396,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x3f44f8['bind']('isEnabled')['to'](_0x512395['commands']['get']('restoreRevision')),this['listenTo'](_0x3f44f8,'execute',()=>_0x512395['execute']('restoreRevision')),_0x3f44f8;}),_0x512395['ui']['componentFactory']['add']('changesNavigation',_0x4e20f9=>{const _0x52ec20=new _i(_0x4e20f9),_0x3ba8b9=_0x512395['commands']['get']('showPreviousChange'),_0x314662=_0x512395['commands']['get']('showNextChange');return _0x52ec20['bind']('isBackwardNavigationEnabled')['to'](_0x3ba8b9,'isEnabled'),_0x52ec20['bind']('isForwardNavigationEnabled')['to'](_0x314662,'isEnabled'),_0x52ec20['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0xf0cb89),this['listenTo'](_0x52ec20,'execute',(_0x41100b,_0xcb0b2a)=>{_0x512395['execute']('forward'===_0xcb0b2a?'showNextChange':'showPreviousChange');}),_0x52ec20;}),_0x1342df['show'](),_0xf0cb89['on']('change:isReady',(_0x247877,_0x5192d9,_0x54f169)=>{_0x54f169?_0x1342df['hide']():_0x1342df['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x4164c5,_0x1706c4){super(_0x4164c5,_0x1706c4);const _0x37a88d=this['bindTemplate'];this['set']({'label':m(_0x4164c5,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x4164c5,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x37a88d['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 _0x1806c4=this['fieldView']['element'];this['_tooltipString']=_0x1806c4['scrollWidth']>_0x1806c4['clientWidth']&&_0x1806c4['value']||'';}}class ti extends _0x22e8ac{constructor(_0x126255,_0x4264db,_0x6d78e3){super(_0x126255);const _0x1b15f7=new _0x378eba();_0x1b15f7['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 _0x37fefa=['ck','ck-revision-history-sidebar__revision-author'];_0x6d78e3&&_0x37fefa['push']('ck-revision-history-sidebar__revision-author_creator');const _0x5f2e73=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x126255,_0x6d78e3?'Revision\x20creator':'Revision\x20author')},'children':[_0x1b15f7,_0x4264db['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x37fefa},'children':_0x5f2e73});}}function ni(_0x2379cd,_0x2fe4b6){const _0x3e1717=_0x2379cd['bindTemplate'],_0x2675d6=_0x2379cd['locale'],_0xb24dcc=_0x2a3493(_0x2675d6);_0xb24dcc['panelPosition']='sw';const _0x5b5d04=function(_0x32a422,_0x284ae0){const _0x1e2bc6=function(_0x4fe845,_0x29dfd7){const _0x4a6b5f=_0x4fe845['locale'],_0x54e124={'Compare\x20against\x20selected':m(_0x4a6b5f,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x4a6b5f,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x4a6b5f,'Restore\x20this\x20revision')};return _0x29dfd7['map'](_0x19ce4b=>{const _0xddca5a=_0x54e124[_0x19ce4b['name']];return _0xddca5a&&_0xddca5a!==_0x19ce4b['name']&&(_0x19ce4b['name']=_0xddca5a),_0x19ce4b;});}(_0x32a422,_0x284ae0),_0x5963d6=new _0xb964f8();for(const _0x100f23 of _0x1e2bc6){const _0x29b61d={'type':'button','model':new to({'label':_0x100f23['name'],'class':_0x100f23['class'],'withText':!0x0,'role':'menuitem','_action':_0x100f23['action']})};_0x29b61d['model']['bind']('isEnabled')['to'](_0x32a422,'isActionsDropdownOpen',_0x397e50=>'function'!=typeof _0x100f23['isEnabled']||(!_0x397e50||_0x100f23['isEnabled'](_0x32a422))),_0x5963d6['add'](_0x29b61d);}return _0x5963d6;}(_0x2379cd,_0x2fe4b6);return _0x2379cd['bind']('isActionsDropdownOpen')['to'](_0xb24dcc,'isOpen'),_0xb24dcc['buttonView']['set']({'label':m(_0x2675d6,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3f261c['threeVerticalDots']}),_0xb24dcc['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3e1717['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x3e1717['to'](_0x12964b=>_0x12964b['stopPropagation']())}}),_0xb24dcc['on']('execute',_0x37b7c9=>{_0x2379cd['isReady']&&'function'==typeof _0x37b7c9['source']['_action']&&_0x37b7c9['source']['_action'](_0x2379cd);}),_0x542c01(_0xb24dcc,_0x5b5d04,{'role':'menu'}),_0xb24dcc['listenTo'](_0x2379cd,'change:isActionsDropdownOpen',(_0x9fd9c5,_0x4ac76b,_0x2d78b8)=>{if(_0x2d78b8)for(const _0x5d887e of _0xb24dcc['listView']['items']){const _0x3c852a=_0x5d887e['children']['first'],_0x436802=_0x2fe4b6['find'](_0xc227b9=>_0xc227b9['action']===_0x3c852a['_action'])['isVisible'];_0x5d887e['isVisible']=void 0x0===_0x436802||_0x436802(_0x2379cd);}}),_0xb24dcc;}class ai extends/* #__PURE__ -- @preserve */
26
- _0x1be77a(_0x22e8ac){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x2e508a,_0x5f34d9,_0x3a9576,_0x482374){super(_0x2e508a);const _0x545c57=this['bindTemplate'],_0x186408=function(_0x9da68,_0x4d4a11){const _0x407628=Array['from'](_0x4d4a11['authors'])['filter'](_0xb25f3c=>_0xb25f3c!=_0x4d4a11['creator']);return _0x4d4a11['creator']&&_0x407628['unshift'](_0x4d4a11['creator']),_0x407628['map'](_0x138b05=>new ti(_0x9da68,_0x138b05,_0x138b05==_0x4d4a11['creator']));}(_0x2e508a,_0x5f34d9);this['id']=_0x5f34d9['id'],this['_revision']=_0x5f34d9,this['_requireRevisionName']=_0x482374,this['bind']('name','createdAt')['to'](_0x5f34d9),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x221a35=>{return _0x170865=_0x2e508a['uiLanguage'],(_0x2ce494=_0x221a35)['toLocaleDateString'](_0x170865,{'month':'long','day':'numeric'})+',\x20'+_0x2ce494['toLocaleTimeString'](_0x170865,{'hour':'numeric','minute':'numeric'});var _0x170865,_0x2ce494;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x2e508a,_0x7e5b5f),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x3ac9d3=>_0x3ac9d3||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x4d7ee4,_0x569a94)=>_0x4d7ee4&&_0x569a94),this['revisionActionsView']=_0x3a9576&&_0x3a9576['length']?ni(this,_0x3a9576):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x545c57['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x545c57['if']('isEnabled','ck-disabled',_0x4e9521=>!_0x4e9521),_0x545c57['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x545c57['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x545c57['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':_0x545c57['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':_0x186408}]},this['revisionActionsView']],'on':{'click':_0x545c57['to'](_0x3a6e5c=>{_0x3a6e5c['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x581061=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x581061,'change',()=>{this['_requireRevisionName']&&!_0x581061['value']||this['fire']('setName',{'id':this['id'],'name':_0x581061['value']}),_0x581061['value']||(_0x581061['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function di(_0x5b4ce7,_0x28ae5a){const _0x303873=_0x1c90b4['fromJSDate'](_0x5b4ce7)['setLocale'](_0x28ae5a),_0x4e3459=_0x1c90b4['local'](),_0x33dbf7=_0x4e3459['minus']({'days':0x1})['startOf']('day');let _0x5aba60,_0x12a756;return _0x303873['hasSame'](_0x4e3459,'day')?(_0x5aba60=_0x303873['startOf']('day')['toJSDate'](),_0x12a756=_0x303873['toRelativeCalendar']()):_0x303873['hasSame'](_0x33dbf7,'day')?(_0x5aba60=_0x33dbf7['toJSDate'](),_0x12a756=_0x303873['toRelativeCalendar']()):_0x303873['hasSame'](_0x4e3459,'week')?(_0x5aba60=_0x303873['startOf']('week')['toJSDate'](),_0x12a756=_0x303873['weekdayLong']||''):_0x303873['hasSame'](_0x4e3459,'year')?(_0x5aba60=_0x303873['startOf']('month')['toJSDate'](),_0x12a756=_0x303873['monthLong']||''):(_0x5aba60=_0x303873['startOf']('year')['toJSDate'](),_0x12a756=String(_0x303873['year'])),{'startDate':_0x5aba60,'localizedPeriodName':_0x12a756};}class mi extends _0x22e8ac{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x22f32b,_0x2dde77,_0x30976b,_0x431b5c){super(_0x22f32b);const _0x48b0a1=di(_0x2dde77,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x2dde77,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x30976b,this['_requireRevisionName']=_0x431b5c,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':_0x48b0a1}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x47df3d){const _0x4b25da=new ai(this['locale'],_0x47df3d,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x4b25da);}['removeRevision'](_0xe57dba){const _0x72c46c=this['revisionViews']['find'](_0x1e5c22=>_0x1e5c22['id']===_0xe57dba['id']);this['revisionViews']['remove'](_0x72c46c);}}class as extends _0x22e8ac{constructor(_0x10c9fb){super(_0x10c9fb);const _0xcc93de=new _0x378eba();_0xcc93de['content']=_0x3f261c['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0xcc93de,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x10c9fb,'Revision\x20history')]}]});}}class ci extends _0x22e8ac{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x44e53d,_0x3901ee,_0x5389a1,_0x3b00a3){super(_0x44e53d);const _0x3132e7=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x3901ee,this['_revisionActions']=_0x5389a1,this['_requireRevisionName']=_0x3b00a3,this['on']('select',(_0x3ec5bf,_0x53f775)=>{this['fire']('revisionSelected',_0x53f775);}),this['on']('setName',(_0x143c4c,_0x246d9c)=>{this['fire']('revisionSetName',_0x246d9c);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x44e53d),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x3132e7['if']('isEnabled','ck-disabled',_0x8ab96a=>!_0x8ab96a)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x5c6558 of this['_revisions'])this['_addRevision'](_0x5c6558);this['_revisions']['on']('add',(_0x23c214,_0x4b2ff0)=>{this['_addRevision'](_0x4b2ff0);}),this['_revisions']['on']('remove',(_0x9a2ed2,_0xbf152b)=>{this['_removeRevision'](_0xbf152b);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x3a39ec=>_0x3a39ec['revisionViews']['map'](_0x33e481=>_0x33e481))['flat']();}['selectRevision'](_0x41406f){for(const _0x118407 of this['revisionViews'])_0x41406f&&_0x41406f['id']===_0x118407['id']?_0x118407['select']():_0x118407['deselect']();}['highlightRevisions'](_0x3b2eeb){for(const _0x1aa02d of this['revisionViews'])_0x3b2eeb['some'](({id:_0x59d571})=>_0x59d571===_0x1aa02d['id'])?_0x1aa02d['highlight']():_0x1aa02d['unhighlight']();}['_addRevision'](_0x3279e9){const _0x4c37b1=di(_0x3279e9['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x27a8c9=this['timePeriodViews']['get'](0x0);_0x27a8c9&&_0x27a8c9['startDate']['getTime']()===_0x4c37b1['getTime']()||(_0x27a8c9=new mi(this['locale'],_0x4c37b1,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x27a8c9)),_0x27a8c9['addRevision'](_0x3279e9);}['_removeRevision'](_0x52c54f){const _0x506c97=di(_0x52c54f['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x506c97)['removeRevision'](_0x52c54f);}['_getTimePeriodViewByStartDate'](_0x4bead8){return this['timePeriodViews']['find'](_0xfc6f8c=>_0xfc6f8c['startDate']['getTime']()===_0x4bead8['getTime']());}}class w extends _0x378b96{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x5bf081,uid as _0x286e3c,Collection as _0x3cff01,logWarning as _0x2bdbdf,FocusTracker as _0x4b7858,KeystrokeHandler as _0x5c86a7,scrollViewportToShowTarget as _0x388c21,ResizeObserver as nt,ElementReplacer as ht,CKEditorError as _0x51f784}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x91048a,set as _0x3732da,unset as _0x62e041,isEqual as _0x17e040}from'lodash-es';import{Plugin as _0xdedc45,PendingActions as _0x318c12,icons as _0x2eec88,Command as _0x5cd479,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x262780,getMarkerDomElement as _0x1ab3f3,ConfirmMixin as _0x3f4a5f,sanitizeEditorConfig as _0x164cdf}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x18e991,Element as ft,Range as vt,ViewUIElement as _0x369d04,ViewRawElement as _0x106d74,ViewEmptyElement as _0x2799dd,ViewAttributeElement as _0xaf3c8f,ViewContainerElement as _0x2bd867,Position as gt,ViewText as _0x68b194,ViewElement as _0x6c83fe,DocumentFragment as mt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x316fe0,submitHandler as _0xa571e9,LabeledFieldView as _0x18b4c1,createLabeledInputText as _0x2434bd,createDropdown as _0x38bdb0,ListView as _0x1259fe,ListItemView as _0xe809cc,ButtonView as te,MenuBarMenuView as _0x2b9fb0,MenuBarMenuListView as _0x1fcf12,MenuBarMenuListItemView as _0x1089d7,MenuBarMenuListItemButtonView as _0x5cd7d0,ContextualBalloon as _0x5a60b7,ToolbarSeparatorView as _0x46fceb,IconView as _0x464554,addListToDropdown as to,ViewModel as _0xed12c,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 _0x1a60e0}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
+ _0x5bf081(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0xc851a8){super(),this['id']=_0xc851a8['id']||_0x286e3c(),this['creator']=_0xc851a8['creator']||null,this['authors']=_0xc851a8['authors']||[],this['diffData']=_0xc851a8['diffData']||null,this['toVersion']=_0xc851a8['toVersion']||0x0,this['fromVersion']=_0xc851a8['fromVersion']||0x0,this['set']('name',_0xc851a8['name']||''),this['set']('createdAt',_0xc851a8['createdAt']||new Date()),this['set']('attributes',_0xc851a8['attributes']||{});}['setName'](_0x3c17f3){this['_update']({'name':_0x3c17f3});}['setAttribute'](_0x109515,_0x1e5c3f){const _0x25c9b1=_0x91048a(this['attributes']);_0x3732da(_0x25c9b1,_0x109515,_0x1e5c3f),this['_update']({'attributes':_0x25c9b1});}['removeAttribute'](_0x3b2824){const _0x34e46f=_0x91048a(this['attributes']);_0x62e041(_0x34e46f,_0x3b2824),this['_update']({'attributes':_0x34e46f});}['_update'](_0x17e940,_0x468b65=!0x1){let _0xe895df=!0x1;const _0x21418d={'id':this['id']},_0x4b74f3=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x1a95db of _0x4b74f3){const _0x1bb18f=_0x17e940[_0x1a95db];void 0x0!==_0x1bb18f&&_0x1bb18f!==this[_0x1a95db]&&(this[_0x1a95db]=_0x1bb18f,_0x21418d[_0x1a95db]=_0x1bb18f,_0xe895df=!0x0);}_0xe895df&&(_0x21418d['authors']&&(_0x21418d['authorsIds']=_0x21418d['authors']['map'](_0x64a1f=>_0x64a1f['id']),delete _0x21418d['authors']),this['fire']('_update',_0x21418d,_0x468b65));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x3ed477=>_0x3ed477['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0xdedc45{['_revisions'];static get['requires'](){return[_0x262780];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x22b304){super(_0x22b304),this['_revisions']=new _0x3cff01();}['afterInit'](){!async function(_0x183b50){const _0x244c06=_0xb94023([0x64,0x63,0x32,0x4b,0x49,0x56,0x46,0x37,0x57,0x69,0x6e,0x4c,0x78,0x5a,0x6d,0x34,0x6a,0x55,0x65,0x79,0x41,0x61,0x33,0x6f,0x39,0x50,0x72,0x43,0x4e,0x35,0x4d,0x6c,0x7a,0x45,0x75,0x36,0x71,0x48,0x54,0x67,0x70,0x47,0x76,0x73,0x53,0x77,0x58,0x44,0x31,0x62,0x42,0x59,0x52,0x74,0x51,0x6b,0x4a,0x38,0x66,0x4f,0x30,0x68]),_0x3cdb9e=0xeb829,_0x472d09=0x1844edff,_0x2dab44=0x18438cbf^_0x472d09,_0x5eb638=window[_0xb94023([0x44,0x61,0x74,0x65])][_0xb94023([0x6e,0x6f,0x77])](),_0x22b2c5=_0x183b50[_0xb94023([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x165a2b=new window[(_0xb94023([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47ef4f=>{_0x22b2c5[_0xb94023([0x6f,0x6e,0x63,0x65])](_0xb94023([0x72,0x65,0x61,0x64,0x79]),_0x47ef4f);}),_0xf5d734={[_0xb94023([0x6b,0x74,0x79])]:_0xb94023([0x45,0x43]),[_0xb94023([0x75,0x73,0x65])]:_0xb94023([0x73,0x69,0x67]),[_0xb94023([0x63,0x72,0x76])]:_0xb94023([0x50,0x2d,0x32,0x35,0x36]),[_0xb94023([0x78])]:_0xb94023([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]),[_0xb94023([0x79])]:_0xb94023([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]),[_0xb94023([0x61,0x6c,0x67])]:_0xb94023([0x45,0x53,0x32,0x35,0x36])},_0x2e854f=_0x22b2c5[_0xb94023([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xb94023([0x67,0x65,0x74])](_0xb94023([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4b2083(){let _0xf071f7,_0x2ceecb=null,_0x18ff31=null;try{if(_0x2e854f==_0xb94023([0x47,0x50,0x4c]))return _0xb94023([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xf071f7=_0x5a8d7b(),!_0xf071f7)return _0xb94023([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xf071f7[_0xb94023([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x18ff31=_0x2cddd8(_0xf071f7[_0xb94023([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xf071f7[_0xb94023([0x6a,0x74,0x69])])),await _0x4c1d32()?_0x45c6e2()?_0x4b1cac()?_0xb94023([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1598f7()?(_0xf071f7[_0xb94023([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xb94023([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2ceecb=_0x4cf69c(_0xb94023([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xf071f7[_0xb94023([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xb94023([0x74,0x72,0x69,0x61,0x6c])&&(_0x2ceecb=_0x4cf69c(_0xb94023([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x54ac4a()):_0xb94023([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xb94023([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xb94023([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x332aeb){return _0xb94023([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4b1cac(){const _0x4e55a7=[_0xb94023([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xb94023([0x74,0x72,0x69,0x61,0x6c])][_0xb94023([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf071f7[_0xb94023([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5eb638/0x3e8:0xe10*_0x2dab44;return _0xf071f7[_0xb94023([0x65,0x78,0x70])]<_0x4e55a7;}function _0x45c6e2(){const _0x3d195a=_0xf071f7[_0xb94023([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3d195a)return!0x1;if(_0x3d195a[_0xb94023([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb94023([0x2a])))return!0x0;if(_0x3d195a[_0xb94023([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb94023([0x52,0x48])))return!0x0;if(_0x3d195a[_0xb94023([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb94023([0x52,0x52,0x48]))){if(_0x41b64c())return!0x0;if(_0x3085e7()||_0x7951f0())return!0x0;}return!0x1;}function _0x1598f7(){const _0x23f46e=_0xf071f7[_0xb94023([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x23f46e||0x0==_0x23f46e[_0xb94023([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5e5afb}=new URL(window[_0xb94023([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x23f46e[_0xb94023([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e5afb))return!0x0;const _0xadaef6=_0x5e5afb[_0xb94023([0x73,0x70,0x6c,0x69,0x74])](_0xb94023([0x2e]));return _0x23f46e[_0xb94023([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1131b5=>_0x1131b5[_0xb94023([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb94023([0x2a])))[_0xb94023([0x6d,0x61,0x70])](_0x5ae8db=>_0x5ae8db[_0xb94023([0x73,0x70,0x6c,0x69,0x74])](_0xb94023([0x2e])))[_0xb94023([0x73,0x6f,0x6d,0x65])](_0x5b3acc=>_0xadaef6[_0xb94023([0x65,0x76,0x65,0x72,0x79])]((_0x51e85d,_0x1a4f5b)=>_0x5b3acc[_0x1a4f5b]===_0x51e85d||_0x5b3acc[_0x1a4f5b]===_0xb94023([0x2a])));}function _0x54ac4a(){return _0x2ceecb&&_0x18ff31?new window[(_0xb94023([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x24e1c7,_0x5c2cee)=>{_0x2ceecb[_0xb94023([0x74,0x68,0x65,0x6e])](_0x24e1c7,_0x5c2cee),_0x18ff31[_0xb94023([0x74,0x68,0x65,0x6e])](_0x4c52a4=>{_0x4c52a4!=_0xb94023([0x56,0x61,0x6c,0x69,0x64])&&_0x24e1c7(_0x4c52a4);},_0x5c2cee);}):_0x2ceecb||_0x18ff31||_0xb94023([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2cddd8(_0x1ccc2b,_0x4a07d4){return new window[(_0xb94023([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x163c61=>{if(_0x465960())return _0x163c61(_0xb94023([0x56,0x61,0x6c,0x69,0x64]));_0x51b758(),_0x22b2c5[_0xb94023([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xb94023([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x54fbdb=!0x1;const _0x3d21d2=_0x286e3c();function _0xef673a(_0x54c7f7){return!!_0x54c7f7&&(typeof _0x54c7f7===_0xb94023([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x54c7f7===_0xb94023([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x54c7f7[_0xb94023([0x74,0x68,0x65,0x6e])]===_0xb94023([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x54c7f7[_0xb94023([0x63,0x61,0x74,0x63,0x68])]===_0xb94023([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2658ba(_0x2de2d3){_0x4c2af6(_0x2de2d3)[_0xb94023([0x74,0x68,0x65,0x6e])](_0x420b62=>{if(!_0x420b62||_0x420b62[_0xb94023([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xb94023([0x6f,0x6b]))return _0xb94023([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x37086d(_0x436193(_0x3d21d2+_0x4a07d4))!=_0x420b62[_0xb94023([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xb94023([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xb94023([0x56,0x61,0x6c,0x69,0x64]);})[_0xb94023([0x74,0x68,0x65,0x6e])](_0x68e4ac=>(_0x4e656c(),_0x68e4ac),()=>{const _0x41d67f=_0x520aa2();return null==_0x41d67f?(_0x4e656c(),_0xb94023([0x56,0x61,0x6c,0x69,0x64])):_0xb94023(_0x5eb638-_0x41d67f>(0x3c4869ff^_0x472d09)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xb94023([0x74,0x68,0x65,0x6e])](_0x163c61)[_0xb94023([0x63,0x61,0x74,0x63,0x68])](()=>{_0x163c61(_0xb94023([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5b3f64=0x1872037f^_0x472d09;function _0x4e656c(){const _0xe47c13=_0xb94023([0x6c,0x6c,0x63,0x74,0x2d])+_0x37086d(_0x436193(_0x1ccc2b)),_0x2ae464=_0x512b14(_0x37086d(window[_0xb94023([0x4d,0x61,0x74,0x68])][_0xb94023([0x63,0x65,0x69,0x6c])](_0x5eb638/_0x5b3f64)));window[_0xb94023([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xb94023([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xe47c13,_0x2ae464);}function _0x520aa2(){const _0x3cd1d4=_0xb94023([0x6c,0x6c,0x63,0x74,0x2d])+_0x37086d(_0x436193(_0x1ccc2b)),_0x554f39=window[_0xb94023([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xb94023([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3cd1d4);return _0x554f39?window[_0xb94023([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x512b14(_0x554f39),0x10)*_0x5b3f64:null;}function _0x4c2af6(_0x5b7b32){return new window[(_0xb94023([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x325d5e,_0x4beb25)=>{_0x5b7b32[_0xb94023([0x74,0x68,0x65,0x6e])](_0x325d5e,_0x4beb25),window[_0xb94023([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4beb25,0x1845393f^_0x472d09);});}}_0x22b2c5[_0xb94023([0x6f,0x6e])](_0xb94023([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x36b549,_0x2ca7d8)=>{if(_0x2ca7d8[0x0]!=_0x1ccc2b)return _0x163c61(_0xb94023([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2ca7d8[0x1]={..._0x2ca7d8[0x1],[_0xb94023([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3d21d2};},{[_0xb94023([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xb94023([0x68,0x69,0x67,0x68])}),_0x22b2c5[_0xb94023([0x6f,0x6e])](_0xb94023([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1e5260=>{_0xef673a(_0x1e5260[_0xb94023([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x54fbdb=!0x0,_0x2658ba(_0x1e5260[_0xb94023([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xb94023([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xb94023([0x6c,0x6f,0x77])}),_0x165a2b[_0xb94023([0x74,0x68,0x65,0x6e])](()=>{_0x54fbdb||_0x163c61(_0xb94023([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x465960(){return _0x22b2c5[_0xb94023([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb94023([0x76,0x69,0x65,0x77])][_0xb94023([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xb94023([0x61,0x75,0x74,0x6f]);}function _0x51b758(){_0x22b2c5[_0xb94023([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb94023([0x76,0x69,0x65,0x77])][_0xb94023([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xb94023([0x61,0x75,0x74,0x6f]);}}function _0x4cf69c(_0x56cb84){const _0x43dc39=[new window[(_0xb94023([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ae1e0=>setTimeout(_0x4ae1e0,0x184dd333^_0x472d09)),_0x165a2b[_0xb94023([0x74,0x68,0x65,0x6e])](()=>new window[(_0xb94023([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb01408=>{const _0x165b32=0x1844edf8^_0x472d09,_0x44c9c5=_0x183b50[_0xb94023([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x45ecd7(){_0x44c9c5[_0xb94023([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x165b32&&_0xb01408();}_0x45ecd7(),_0x44c9c5[_0xb94023([0x6f,0x6e])](_0xb94023([0x61,0x64,0x64]),_0x45ecd7);})),new window[(_0xb94023([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd27fda=>{function _0x626214(){for(const _0x2ccc03 in window)if(window[_0xb94023([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0xb94023([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x2ccc03))&&window[_0x2ccc03]==_0x3cdb9e)return _0xd27fda();_0x22b2c5[_0xb94023([0x73,0x74,0x61,0x74,0x65])]!=_0xb94023([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0xb94023([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x626214,0x1844fe77^_0x472d09);}_0x42b919(_0xb94023([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x626214();})];return window[_0xb94023([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xb94023([0x72,0x61,0x63,0x65])](_0x43dc39)[_0xb94023([0x74,0x68,0x65,0x6e])](()=>_0x56cb84);}async function _0x31658a(){if(await _0x165a2b,_0x42b919(_0xb94023([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0xb4462f=_0x183b50[_0xb94023([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x294281=_0x183b50[_0xb94023([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])](_0xb4462f[_0xb94023([0x69,0x64])]),_0x2d953e=_0xd58c83(_0xb94023([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x2d953e[_0xb94023([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0xb4462f['id'],_0x294281?_0x294281['id']:null,!0x0),_0x2d953e[_0xb94023([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xb94023([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2d953e[_0xb94023([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2d953e[_0xb94023([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5a2845,void(_0x2d953e[_0xb94023([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5a2845);}if(_0x42b919(_0xb94023([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1609d0=_0xd58c83(_0xb94023([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1609d0[_0xb94023([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xb94023([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1609d0[_0xb94023([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1609d0[_0xb94023([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5a2845,_0x1609d0[_0xb94023([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5a2845;}_0x22b2c5[_0xb94023([0x6d,0x6f,0x64,0x65,0x6c])][_0xb94023([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5a2845,_0x22b2c5[_0xb94023([0x6d,0x6f,0x64,0x65,0x6c])][_0xb94023([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5a2845,_0x22b2c5[_0xb94023([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xb94023([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x41b64c(){return _0x42b919(_0xb94023([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xd58c83(_0xb94023([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xb94023([0x73,0x74,0x61,0x74,0x65])]==_0xb94023([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3085e7(){return _0x42b919(_0xb94023([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 _0x7951f0(){return _0x42b919(_0xb94023([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xf81c55(_0x4ae6a8){const _0x786acc=_0x55f41b();_0x22b2c5[_0x786acc]=_0xb94023([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])+_0x4ae6a8,_0x4ae6a8[_0xb94023([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0xb94023([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x55f41b()]=_0x3cdb9e),_0x4ae6a8!=_0xb94023([0x56,0x61,0x6c,0x69,0x64])&&_0x31658a();}function _0x55f41b(){const _0x57b551=window[_0xb94023([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xb94023([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xb94023([0x6e,0x6f,0x77])]())[_0xb94023([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xb94023([0x2e]),'');let _0x569004=_0xb94023([0x64]);for(let _0x44ba55=0x0;_0x44ba55<_0x57b551[_0xb94023([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x44ba55+=0x2){let _0x5d075e=window[_0xb94023([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57b551[_0xb94023([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x44ba55,_0x44ba55+0x2));_0x5d075e>=_0x244c06[_0xb94023([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5d075e-=_0x244c06[_0xb94023([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x569004+=_0x244c06[_0x5d075e];}return _0x569004;}function _0x5a8d7b(){const _0x5d88f2=_0x2e854f[_0xb94023([0x73,0x70,0x6c,0x69,0x74])](_0xb94023([0x2e]));if(0x3!=_0x5d88f2[_0xb94023([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x370997(_0x5d88f2[0x1]);function _0x370997(_0x18d72f){const _0x437250=_0x586b4e(_0x18d72f);return _0x437250&&_0x5279cc()?_0x437250:null;function _0x5279cc(){const _0x2e4794=_0x437250[_0xb94023([0x6a,0x74,0x69])],_0x45c814=window[_0xb94023([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e4794[_0xb94023([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2e4794[_0xb94023([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x34c282={..._0x437250,[_0xb94023([0x6a,0x74,0x69])]:_0x2e4794[_0xb94023([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2e4794[_0xb94023([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x34c282[_0xb94023([0x76,0x63])],_0x436193(_0x34c282)==_0x45c814;}}}async function _0x4c1d32(){let _0x4df2b3=!0x0;try{const _0x1f9b96=_0x2e854f[_0xb94023([0x73,0x70,0x6c,0x69,0x74])](_0xb94023([0x2e])),[_0x317275,_0x20e98a,_0x4f02f7]=_0x1f9b96;return _0xeb9a40(_0x317275),await _0xad44ae(_0x317275,_0x20e98a,_0x4f02f7),_0x4df2b3;}catch(_0x5c6927){return!0x1;}function _0xeb9a40(_0x8893c2){const _0xa33022=_0x586b4e(_0x8893c2);_0xa33022&&_0xa33022[_0xb94023([0x61,0x6c,0x67])]==_0xb94023([0x45,0x53,0x32,0x35,0x36])||(_0x4df2b3=!0x1);}async function _0xad44ae(_0x547517,_0x580ec4,_0x5cf971){const _0x3fc068=window[_0xb94023([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xb94023([0x66,0x72,0x6f,0x6d])](_0x1c4817(_0x5cf971),_0x2b2796=>_0x2b2796[_0xb94023([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1c1a0f=new window[(_0xb94023([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xb94023([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x547517+_0xb94023([0x2e])+_0x580ec4),_0xe3c165=window[_0xb94023([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xb94023([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xe3c165)return;const _0x30868f=await _0xe3c165[_0xb94023([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xb94023([0x6a,0x77,0x6b]),_0xf5d734,{[_0xb94023([0x6e,0x61,0x6d,0x65])]:_0xb94023([0x45,0x43,0x44,0x53,0x41]),[_0xb94023([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xb94023([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xb94023([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xe3c165[_0xb94023([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xb94023([0x6e,0x61,0x6d,0x65])]:_0xb94023([0x45,0x43,0x44,0x53,0x41]),[_0xb94023([0x68,0x61,0x73,0x68])]:{[_0xb94023([0x6e,0x61,0x6d,0x65])]:_0xb94023([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x30868f,_0x3fc068,_0x1c1a0f)||(_0x4df2b3=!0x1);}}function _0x586b4e(_0xac124b){return _0xac124b[_0xb94023([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xb94023([0x65,0x79]))?JSON[_0xb94023([0x70,0x61,0x72,0x73,0x65])](_0x1c4817(_0xac124b)):null;}function _0x1c4817(_0x21aaf5){return window[_0xb94023([0x61,0x74,0x6f,0x62])](_0x21aaf5[_0xb94023([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xb94023([0x2b]))[_0xb94023([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xb94023([0x2f])));}function _0x436193(_0x312f43){let _0x3b9c5b=0x1505;function _0x129a10(_0xccd646){for(let _0x222975=0x0;_0x222975<_0xccd646[_0xb94023([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x222975++){const _0x49ec84=_0xccd646[_0xb94023([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x222975);_0x3b9c5b=(_0x3b9c5b<<0x5)+_0x3b9c5b+_0x49ec84,_0x3b9c5b&=_0x3b9c5b;}}function _0x26e594(_0x417463){Array[_0xb94023([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x417463)?_0x417463[_0xb94023([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x26e594):_0x417463&&typeof _0x417463==_0xb94023([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xb94023([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x417463)[_0xb94023([0x73,0x6f,0x72,0x74])]()[_0xb94023([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x126149,_0x1f9f75])=>{_0x129a10(_0x126149),_0x26e594(_0x1f9f75);}):_0x129a10(window[_0xb94023([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x417463));}return _0x26e594(_0x312f43),_0x3b9c5b>>>0x0;}function _0x37086d(_0x43c1d6){return _0x43c1d6[_0xb94023([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xb94023([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xb94023([0x30]));}function _0x512b14(_0x3b2434){return _0x3b2434[_0xb94023([0x73,0x70,0x6c,0x69,0x74])]('')[_0xb94023([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xb94023([0x6a,0x6f,0x69,0x6e])]('');}function _0x42b919(_0x43cbe9){return _0x22b2c5[_0xb94023([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xb94023([0x68,0x61,0x73])](_0x43cbe9);}function _0xd58c83(_0x4c2712){return _0x22b2c5[_0xb94023([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xb94023([0x67,0x65,0x74])](_0x4c2712);}function _0x5a2845(){}function _0xb94023(_0x619d19){return _0x619d19['map'](_0x5d87e7=>String['fromCharCode'](_0x5d87e7))['join']('');}_0xf81c55(await _0x4b2083());}(this);}['createRevision'](_0x4fce9e){const _0xecca12=this['editor']['plugins']['get']('Users');return new a({'id':_0x4fce9e['id'],'name':_0x4fce9e['name'],'creator':_0x4fce9e['creatorId']?_0xecca12['getUser'](_0x4fce9e['creatorId']):null,'diffData':_0x4fce9e['diffData']||_0x4fce9e['data'],'authors':_0x4fce9e['authorsIds']['map'](_0x1fd1a3=>_0xecca12['getUser'](_0x1fd1a3)),'createdAt':new Date(_0x4fce9e['createdAt']),'attributes':_0x4fce9e['attributes'],'fromVersion':_0x4fce9e['fromVersion'],'toVersion':_0x4fce9e['toVersion']});}['addRevision'](_0xa49fa1,_0x354ac0=0x0){this['_revisions']['add'](_0xa49fa1,_0x354ac0);}['getRevision'](_0x2d4f13){return this['_revisions']['get'](_0x2d4f13);}['getRevisions'](_0x1ede96={'toJSON':!0x1}){const _0x189f2b=Array['from'](this['_revisions']);return _0x189f2b['reverse'](),_0x1ede96['toJSON']?_0x189f2b['map'](_0x4cf391=>_0x4cf391['toJSON']()):_0x189f2b;}['getIndex'](_0x2a5c7b){return this['_revisions']['getIndex'](_0x2a5c7b);}['getEarlierVisibleRevision'](_0x1a7d61){const [,_0x2b9495]=this['getRevisionsIterator'](_0x1a7d61,{'direction':'earlier'});return _0x2b9495;}['getLaterVisibleRevision'](_0x121381){const [,_0x2234c9]=this['getRevisionsIterator'](_0x121381,{'direction':'later'});return _0x2234c9;}['getRevisionsInDiff'](_0x825b71){const _0xf557f4=[];for(const _0x49b4ee of this['getRevisionsIterator'](_0x825b71['newRevisionId']))if(_0xf557f4['push'](_0x49b4ee),_0x49b4ee['id']===_0x825b71['oldRevisionId'])break;return _0xf557f4;}*['getRevisionsIterator'](_0x2d6fb4,{direction:_0x28196f='earlier',filter:_0x3b8dff=()=>!0x0}={}){const _0x4d491b='earlier'===_0x28196f?0x1:-0x1;let _0x40a0ea=this['_revisions']['get'](_0x2d6fb4),_0x413979=this['getIndex'](_0x40a0ea);for(yield _0x40a0ea;_0x40a0ea;){if(_0x413979+=_0x4d491b,_0x40a0ea=this['getRevision'](_0x413979),!_0x40a0ea)return;_0x3b8dff(_0x40a0ea)&&(yield _0x40a0ea);}}}function m(_0x4e1a27,_0x30dd96,_0x4e929c){const t=_0x4e1a27['t'];switch(_0x30dd96){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'},_0x4e929c);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x4e929c);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':_0x2bd867,'a':_0xaf3c8f,'e':_0x2799dd,'r':_0x106d74,'u':_0x369d04};class l extends _0xdedc45{['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[_0x262780,j,_0x318c12];}constructor(_0x7646c1){super(_0x7646c1),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 _0x3cd4f7=_0x286e3c();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x3cd4f7},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 _0x4a287d=this['repository']['getRevision'](0x0),_0x1a43d4=_0x4a287d&&null===_0x4a287d['creator']?_0x4a287d:null;if(this['_continueCurrentRevision']=!!_0x1a43d4&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x1ac5d5=this['_source']['getCurrentRevisionId'](),_0x4977ad=this['repository']['getRevision'](_0x1ac5d5);if(_0x4977ad)this['_startingVersion']=_0x4977ad['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5cfae6=this['_source']['history']['_operations']['find'](_0x18bba6=>!_0x18bba6['_isInit']),_0x157ef5=_0x5cfae6?_0x5cfae6['baseVersion']:this['_source']['history']['version'];_0x4a287d?(_0x4a287d['toVersion']<_0x157ef5&&_0x4a287d['_update']({'toVersion':_0x157ef5}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x1a43d4['id'],this['_startingVersion']=_0x1a43d4['fromVersion']):(this['_startingVersion']=_0x4a287d['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x157ef5,this['_continueCurrentRevision']=!0x1);}}else _0x1a43d4&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x1a43d4['toVersion'],this['editor']['model']['document']['history']['version']),_0x1a43d4['fromVersion']===_0x1a43d4['toVersion']?(0x0!==_0x1a43d4['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x1a43d4['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x1a43d4['id'],this['_startingVersion']=_0x1a43d4['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',_0x19db7b=>!_0x19db7b),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x19c0c6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x629e00;for(const _0x322ee1 in _0x19c0c6){const _0x56feea=_0x322ee1,_0x386aff=_0x19c0c6[_0x56feea];if('revisionHistoryLicenseKeyValid'==_0x386aff||'revisionHistoryLicenseKeyInvalid'==_0x386aff||'revisionHistoryLicenseKeyExpired'==_0x386aff||'revisionHistoryLicenseKeyDomainLimit'==_0x386aff||'revisionHistoryLicenseKeyNotAllowed'==_0x386aff||'revisionHistoryLicenseKeyEvaluationLimit'==_0x386aff||'revisionHistoryLicenseKeyTrialLimit'==_0x386aff||'revisionHistoryLicenseKeyUsageLimit'==_0x386aff){delete _0x19c0c6[_0x56feea],_0x629e00=_0x386aff,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x629e00&&_0x19c0c6['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x629e00&&_0x19c0c6['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x629e00&&_0x19c0c6['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x629e00&&_0x19c0c6['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x629e00&&_0x19c0c6['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x629e00&&_0x19c0c6['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x629e00&&_0x19c0c6['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x295153=this['repository']['getRevision'](0x0),_0x2586e8=await this['getRevisionDocumentData'](_0x295153),_0xf91e80=await this['getRevisionRootsAttributes'](_0x295153);this['_replaceEditorDataWithRevisionData'](_0x2586e8,_0xf91e80);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x5eaa4b){this['_source']=_0x5eaa4b;}async['update'](){const _0x5279a0=await this['_source']['getLatestVersion']();if(_0x5279a0>this['currentRevision']['toVersion']){await this['_loadState']();const _0x43607a=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x5279a0});_0x43607a['authors']=_0x43607a['authorsIds']['map'](_0x18114c=>this['editor']['plugins']['get']('Users')['getUser'](_0x18114c)),this['currentRevision']['_update'](_0x43607a);}}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'](_0x1b2680={},_0x4d7f3b=null){const _0x2ce309=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x4d7f3b>this['currentRevision']['toVersion']&&(_0x4d7f3b=null),null===_0x4d7f3b&&(_0x4d7f3b=await this['_source']['getLatestVersion']());const _0x14838e=this['_getFromVersion'](_0x4d7f3b),_0xbfb257=this['buildRevisionData']({'from':_0x14838e,'to':_0x4d7f3b});if(this['currentRevision']['toVersion']<_0x4d7f3b){const _0x169eca=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x4d7f3b,'to':_0x4d7f3b});_0x169eca['authors']=[],_0x169eca['authorsIds']=[],_0x169eca['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x169eca,!0x0),delete _0x169eca['authors'],_0x2ce309['push'](_0x169eca);}_0x1b2680['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x1b2680['name']=_0x1b2680['name']||null,_0x1b2680['id']=_0x1b2680['id']||_0x286e3c(),_0x1b2680={..._0x1b2680,..._0xbfb257};const _0x4d8a86=this['addRevisionData'](_0x1b2680);_0x2ce309['push'](_0x1b2680);const _0x1c59be=this['repository']['getIndex'](_0x4d8a86);if(0x0!==_0x1c59be){const _0x74e15=this['repository']['getRevision'](_0x1c59be-0x1);if(_0x74e15['fromVersion']!==_0x4d7f3b){const _0x4a4d19=this['_revisionDataBuilder']['getData'](_0x4d7f3b,_0x74e15['toVersion']),_0xc9bada={'id':_0x74e15['id'],'diffData':_0x4a4d19['diffData'],'authorsIds':_0x4a4d19['authorsIds'],'authors':_0x4a4d19['authorsIds']['map'](_0xb0e437=>this['editor']['plugins']['get']('Users')['getUser'](_0xb0e437)),'fromVersion':_0x4d7f3b};_0x74e15===this['currentRevision']&&(_0xc9bada['createdAt']=new Date(_0x1b2680['createdAt']['getTime']()+0xa)),_0x74e15['_update'](_0xc9bada,!0x0),delete _0xc9bada['authors'],_0x2ce309['push'](_0xc9bada);}}if(this['adapter']){for(const _0x333186 of _0x2ce309)this['_bufferUpdate'](_0x333186['id'],_0x333186,!0x0);this['sendBufferedUpdates']();}return _0x4d8a86;}['addRevisionData'](_0x209821){const _0x13fc03=this['repository']['createRevision'](_0x209821);return this['adapter']&&_0x13fc03['on']('_update',(_0x59428e,_0x12899d,_0x2d1802)=>{_0x2d1802||(this['_bufferUpdate'](_0x12899d['id'],_0x12899d,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x13fc03,this['_findInsertionIndex'](_0x13fc03)),_0x13fc03;}async['getRevisionDocumentData'](_0x3f633c){await this['_loadRevisionData'](_0x3f633c);const _0x31aed9={};for(const _0x4f46ba in _0x3f633c['diffData']){if(_0x3f633c['diffData'][_0x4f46ba]['attachChange']&&!_0x3f633c['diffData'][_0x4f46ba]['attachChange']['isAttached'])continue;const _0x4169d5=this['_removeRevisionMarkers'](JSON['parse'](_0x3f633c['diffData'][_0x4f46ba]['insertions'])),_0x119071=this['editor']['editing']['view']['document'],_0x124dd9=new _0x18e991(_0x119071,_0x4169d5['map'](_0x960939=>C(_0x960939,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x31aed9[_0x4f46ba]=this['editor']['data']['processor']['toData'](_0x124dd9),this['editor']['data']['processor']['useFillerType']('default');}return _0x31aed9;}async['getRevisionRootsAttributes'](_0x5d1881){await this['_loadRevisionData'](_0x5d1881);const _0x3e95d8={};for(const _0x5b6664 in _0x5d1881['diffData'])_0x5d1881['diffData'][_0x5b6664]['attachChange']&&!_0x5d1881['diffData'][_0x5b6664]['attachChange']['isAttached']||(_0x3e95d8[_0x5b6664]=_0x5d1881['diffData'][_0x5b6664]['attributesAfter']||{});return _0x3e95d8;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x17ae49=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x185723=0x0;_0x185723<_0x17ae49['length'];_0x185723++){const _0x1aa50f=_0x17ae49[_0x185723];let _0x9f0042=!0x1;for(const _0x8a72e1 of Object['keys'](_0x1aa50f))void 0x0===_0x1aa50f[_0x8a72e1]?delete _0x1aa50f[_0x8a72e1]:'id'!==_0x8a72e1&&(_0x9f0042=!0x0);_0x9f0042||(_0x17ae49[_0x185723]=null);}if(_0x17ae49=_0x17ae49['filter'](_0x4704f2=>null!==_0x4704f2),!_0x17ae49['length'])return;for(let _0x2906b4=0x0;_0x2906b4<_0x17ae49['length'];_0x2906b4++){const _0x56d9ab=_0x17ae49[_0x2906b4];void 0x0!==_0x56d9ab['fromVersion']&&void 0x0===_0x56d9ab['toVersion']&&(_0x56d9ab['toVersion']=this['repository']['getRevision'](_0x56d9ab['id'])['toVersion']),void 0x0!==_0x56d9ab['toVersion']&&void 0x0===_0x56d9ab['fromVersion']&&(_0x56d9ab['fromVersion']=this['repository']['getRevision'](_0x56d9ab['id'])['fromVersion']);}const _0x5362cf=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x17ae49,_0x5362cf)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x4ec028=>{if(_0x4ec028){for(const _0x387380 of _0x4ec028)this['setRevisionData']({'id':_0x387380['id'],'createdAt':_0x387380['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x10fde4,_0x48e568){let _0x4c9a73=this['editor']['config']['get']('initialData'),_0x2988e9=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x4c9a73){_0x4c9a73={};for(const _0x581f67 of this['editor']['model']['document']['getRootNames']())_0x4c9a73[_0x581f67]='';}if('string'==typeof _0x4c9a73&&(_0x4c9a73={'main':_0x4c9a73}),void 0x0===_0x2988e9){_0x2988e9={};for(const _0x4d6b35 of this['editor']['model']['document']['getRootNames']())_0x2988e9[_0x4d6b35]={};}let _0x22d1df=!0x1;const _0x3acad4=Object['keys'](_0x4c9a73),_0x52322f=Object['keys'](_0x10fde4);for(const _0x4d3fe9 of _0x3acad4){if(_0x4c9a73[_0x4d3fe9]!==_0x10fde4[_0x4d3fe9]&&''!==_0x4c9a73[_0x4d3fe9]['trim']()){_0x22d1df=!0x0;break;}if(!_0x17e040(_0x2988e9[_0x4d3fe9],_0x48e568[_0x4d3fe9])&&Object['keys'](_0x2988e9[_0x4d3fe9])['length']>0x0){_0x22d1df=!0x0;break;}}_0x22d1df||(_0x22d1df=_0x52322f['some'](_0x5521a0=>!this['editor']['model']['document']['getRoot'](_0x5521a0))),_0x22d1df&&_0x2bdbdf('editor-initial-data-replaced-with-revision-data',{'editorData':_0x4c9a73,'editorRootsAttributes':_0x2988e9,'revisionData':_0x10fde4,'revisionRootsAttributes':_0x48e568}),this['editor']['config']['set']('initialData',_0x10fde4),this['editor']['config']['set']('rootsAttributes',_0x48e568);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x30d160=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x30d160['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x512b6c){const _0x503d26=this['repository']['getRevisions']();_0x503d26['reverse']();let _0x551a99=0x0;for(;_0x551a99<_0x503d26['length'];){const _0x161f5b=_0x503d26[_0x551a99];if(_0x161f5b===this['currentRevision']){_0x551a99++;continue;}if(_0x161f5b['id']===this['_initialRevisionId'])break;const _0xbdd6c2=_0x512b6c['toVersion']-_0x161f5b['toVersion']||_0x512b6c['fromVersion']-_0x161f5b['fromVersion'];if(_0xbdd6c2>0x0)break;if(_0xbdd6c2<0x0)_0x551a99++;else{if(!_0x512b6c['creator']&&_0x161f5b['creator'])break;if(_0x161f5b['creator']||!_0x512b6c['creator']){if(_0x512b6c['createdAt']>_0x161f5b['createdAt'])break;_0x551a99++;}else _0x551a99++;}}return _0x551a99;}['setRevisionData'](_0x41d611){const _0x463db7=this['repository']['getRevision'](_0x41d611['id']);if(_0x41d611['createdAt']&&(_0x41d611['createdAt']=new Date(_0x41d611['createdAt'])),_0x41d611['authorsIds']){const _0x34930a=this['editor']['plugins']['get']('Users');_0x41d611['authors']=_0x41d611['authorsIds']['map'](_0x5d0d22=>_0x34930a['getUser'](_0x5d0d22));}_0x463db7['_update'](_0x41d611,!0x0);}['buildRevisionData']({revision:_0x316aa6=null,from:_0x4a5db5=null,to:_0xc57517=null}){_0x4a5db5=null!==_0x4a5db5?_0x4a5db5:_0x316aa6['fromVersion'],_0xc57517=null!==_0xc57517?_0xc57517:_0x316aa6['toVersion'];const _0x4db5ee=this['_revisionDataBuilder']['getData'](_0x4a5db5,_0xc57517),_0x327f2b={'diffData':_0x4db5ee['diffData'],'authorsIds':_0x4db5ee['authorsIds'],'fromVersion':_0x4a5db5,'toVersion':_0xc57517};if(!_0x316aa6||_0xc57517!==_0x316aa6['toVersion']){const _0x1a83ea=_0xc57517-0x1,_0xc22ac8=this['_source']['history']['getOperation'](_0x1a83ea);_0x327f2b['createdAt']=_0xc22ac8&&_0xc22ac8['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4a5db5===this['_loadedStateData']['fromVersion']){for(const _0x3ea4a0 of this['_loadedStateData']['authors'])_0x327f2b['authorsIds']['includes'](_0x3ea4a0['id'])||_0x327f2b['authorsIds']['push'](_0x3ea4a0['id']);}return _0x327f2b;}['_loadRevisionData'](_0x3e29f9){if(!_0x3e29f9||_0x3e29f9['diffData'])return Promise['resolve']();{const _0x299ebf=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x299ebf,'revisionId':_0x3e29f9['id']})['then'](_0x46bcfb=>{_0x3e29f9['diffData']=_0x46bcfb['diffData'];});}}['_bufferUpdate'](_0x530218,_0x2b0405,_0x2838a1){if(this['_bufferedUpdates']['has'](_0x530218)){const _0x4f24ce=this['_bufferedUpdates']['get'](_0x530218);_0x2b0405=_0x2838a1?{..._0x4f24ce,..._0x2b0405}:{..._0x2b0405,..._0x4f24ce};}this['_bufferedUpdates']['set'](_0x530218,_0x2b0405);}['_getFromVersion'](_0xc60f8e){const _0x20513b=this['repository']['getRevisions']();_0x20513b['reverse'](),_0x20513b['shift']();const _0x39a7b2=_0x20513b['find'](_0x1672d9=>_0x1672d9['toVersion']<=_0xc60f8e)['toVersion'];return _0x39a7b2<this['_startingVersion']?this['_startingVersion']:_0x39a7b2;}['_createInitialRevision'](_0x4cdbab){const _0x4565f8=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x4565f8)this['_initialRevisionId']=_0x4565f8['id'];else{const _0x35741e=!this['editor']['model']['document']['roots']['find'](_0x47b6de=>this['editor']['model']['hasContent'](_0x47b6de)),_0x13084b=this['editor']['plugins']['get']('Users')['me']['id'],_0x34aecc=m(this['editor']['locale'],_0x35741e?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x4cdbab,'to':_0x4cdbab,'id':this['_initialRevisionId'],'name':_0x34aecc,'creatorId':_0x13084b});}}['_createCurrentRevision'](_0x3a8952){const _0x5ebf93=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5ebf93),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x3a8952,'to':_0x3a8952,'id':_0x5ebf93,'name':'','creatorId':null}));}['_makeRevision']({name:_0x4ff8fb,from:_0x1114bf,to:_0x2503b3,creatorId:_0x27310e,id:_0x24ca5b}){const _0x50f748=this['buildRevisionData']({'from':_0x1114bf,'to':_0x2503b3});_0x50f748['name']=_0x4ff8fb,_0x50f748['creatorId']=_0x27310e,_0x50f748['id']=_0x24ca5b;const _0x2da860=this['addRevisionData'](_0x50f748);return this['adapter']&&this['_bufferUpdate'](_0x50f748['id'],_0x50f748,!0x0),_0x2da860;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x55ae98){return(_0x55ae98=_0x55ae98['filter'](_0x565830=>!_0x565830['name']||'revision-start'!==_0x565830['name']&&'revision-end'!==_0x565830['name']))['forEach'](_0x34fe8d=>{'string'!=typeof _0x34fe8d&&(_0x34fe8d['children']=this['_removeRevisionMarkers'](_0x34fe8d['children']),_0x34fe8d['attributes']=_0x34fe8d['attributes']['filter'](_0x3780e3=>!_0x3780e3[0x0]['startsWith']('data-revision-')));}),_0x55ae98;}}function C(_0x5976c6,_0x51ca77){const _0x991280=_0x51ca77['editing']['view']['document'];if('string'==typeof _0x5976c6)return new _0x68b194(_0x991280,_0x5976c6);{const _0x3b0e58=_0x5976c6['children']['map'](_0x10444c=>C(_0x10444c,_0x51ca77));return new(P[_0x5976c6['type']]||_0x6c83fe)(_0x991280,_0x5976c6['name'],_0x5976c6['attributes'],_0x3b0e58);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x341613){this['editor']=_0x341613,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'](_0x36b2ca){this['source']=_0x36b2ca;const _0x1b4724=new Map(),_0x452e6e=new Map(),_0xa460cc=this['editor']['model']['document']['roots']['map'](_0x593dc2=>_0x593dc2['rootName']);for(const _0x477613 of _0xa460cc){const _0x523005=this['editor']['model']['document']['getRoot'](_0x477613),_0x1513d2=T(_0x523005);_0x1b4724['set'](_0x477613,_0x1513d2),_0x452e6e['set'](_0x477613,Object['fromEntries'](_0x523005['getAttributes']()));}const _0x1673ac=Array['from'](this['editor']['model']['markers'])['map'](_0x3fd53a=>[_0x3fd53a['name'],_0x3fd53a['getRange']()]),_0x383602=this['source']['version'];this['_saveMetaData'](_0x383602,_0x1b4724,_0x1673ac,_0x452e6e),this['_startingRevisionId']=this['_revisionId'];const _0x342ad7=new Map(),_0x25e1d5=new Map();for(const _0x2b0819 of _0xa460cc){const _0x7fcc2a=F(_0x2b0819);_0x342ad7['set'](_0x2b0819,_0x7fcc2a),_0x25e1d5['set'](_0x2b0819,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x342ad7,[],_0x25e1d5);}['getData'](_0xa019b9,_0x56d85a){if(this['_lastFrom']===_0xa019b9&&this['_lastTo']<=_0x56d85a)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x56d85a,!0x0);else{if(!this['_savedMetaData']['has'](_0xa019b9)){const _0x43fd26=this['_getPreviousFrom'](_0xa019b9);this['_calculateMetaData'](_0x43fd26,_0xa019b9,!0x1);}this['_calculateMetaData'](_0xa019b9,_0x56d85a,!0x0);}return this['_lastFrom']=_0xa019b9,this['_lastTo']=_0x56d85a,this['_getState']();}['loadState'](_0x7f151c){this['_reset'](),this['_lastFrom']=_0x7f151c['fromVersion'],this['_lastTo']=_0x7f151c['toVersion'];for(const _0x2f894d in _0x7f151c['diffData']){const _0x20b559=_0x7f151c['diffData'][_0x2f894d]['attachChange'],_0x10ae32=_0x91048a(_0x7f151c['diffData'][_0x2f894d]['attributesBefore'])||{},_0x22735b=this['_makeModelFromViewString'](_0x7f151c['diffData'][_0x2f894d]['deletions']);_0x22735b['rootName']=_0x2f894d,_0x22735b['_isAttached']=!_0x20b559||!_0x20b559['isAttached'],_0x22735b['isAttached']=()=>_0x22735b['_isAttached'],this['_baseRoots']['set'](_0x2f894d,_0x22735b),this['_baseRootsAttributes']['set'](_0x2f894d,_0x10ae32),_0x20b559&&this['_touchedRoots']['set'](_0x2f894d,_0x20b559);const _0x3e5b4a=this['_makeIdsRoot'](_0x22735b);this['_baseIdsRoots']['set'](_0x2f894d,_0x3e5b4a);for(const [_0x54d5e5,_0x3d7edd]of _0x22735b['markers']){if(!_0x54d5e5['startsWith']('revision:'))continue;const _0x3a5ae3=_0x54d5e5['split'](':')[0x2];for(const _0x1c9894 of _0x3d7edd['getWalker']({'singleCharacters':!0x0})){const _0x1e0127=this['_getVidAttributeName'](_0x1c9894),_0x54f83c='elementEnd'==_0x1c9894['type']?_0x1c9894['previousPosition']['path']['slice'](0x0,-0x1):_0x1c9894['previousPosition']['path'],_0x4d2d53=_0x3e5b4a['getNodeByPath'](_0x54f83c)['getAttribute'](_0x1e0127);this['_touched']['set'](_0x4d2d53,{'userId':_0x3a5ae3});}}}this['_startingRevisionId']=this['_revisionId'];const _0x237cba=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x54da8c=>!this['_touched']['has'](_0x54da8c));let _0x19e6c3=0x0;const _0x7b44a4=new Map();for(const _0x23069d in _0x7f151c['diffData']){const _0x362b47=_0x7f151c['diffData'][_0x23069d]['attachChange'],_0x507be9=_0x91048a(_0x7f151c['diffData'][_0x23069d]['attributesAfter'])||{},_0x23fc56=this['_makeModelFromViewString'](_0x7f151c['diffData'][_0x23069d]['insertions']);_0x23fc56['rootName']=_0x23069d,_0x23fc56['_isAttached']=!_0x362b47||_0x362b47['isAttached'],_0x23fc56['isAttached']=()=>_0x23fc56['_isAttached'],this['_diffRoots']['set'](_0x23069d,_0x23fc56),this['_diffRootsAttributes']['set'](_0x23069d,_0x507be9);const _0x487a26=this['_makeIdsRoot'](_0x23fc56,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x23069d,_0x487a26),_0x7b44a4['set'](_0x23069d,_0x23fc56['isAttached']()?_0x507be9:{});for(const [_0x5d16df,_0xbb678d]of _0x23fc56['markers']){if(!_0x5d16df['startsWith']('revision:'))continue;const _0x33ca9c=_0x5d16df['split'](':')[0x2];for(const _0x34f43e of _0xbb678d['getWalker']({'singleCharacters':!0x0})){const _0x5668b6=this['_getVidAttributeName'](_0x34f43e),_0x42a91b=this['_revisionId']++,_0x33a119='elementEnd'==_0x34f43e['type']?_0x34f43e['previousPosition']['path']['slice'](0x0,-0x1):_0x34f43e['previousPosition']['path'];_0x487a26['getNodeByPath'](_0x33a119)['_setAttribute'](_0x5668b6,_0x42a91b),this['_touched']['set'](_0x42a91b,{'userId':_0x33ca9c});}}for(const _0x398860 of this['editor']['model']['createRangeIn'](_0x23fc56)['getWalker']({'singleCharacters':!0x0})){const _0x58a60c=this['_getVidAttributeName'](_0x398860),_0x3ddd22='elementEnd'==_0x398860['type']?_0x398860['previousPosition']['path']['slice'](0x0,-0x1):_0x398860['previousPosition']['path'],_0x3db402=_0x487a26['getNodeByPath'](_0x3ddd22);_0x3db402['getAttribute'](_0x58a60c)>0x0||_0x3db402['_setAttribute'](_0x58a60c,_0x237cba[_0x19e6c3++]);}for(const [_0x28313a,_0x1d3158]of _0x23fc56['markers'])_0x28313a['startsWith']('revision:')||this['_markers']['set'](_0x28313a,_0x1d3158);}const _0x1282c3=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x1282c3),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1282c3,0x1));const _0x3ed55b=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x3ed55b),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3ed55b,0x1));const _0xc1611b=Array['from'](this['_diffRoots'])['map'](([_0x4f57ee,_0xd12855])=>[_0x4f57ee,T(_0xd12855)]);this['_saveMetaData'](this['_lastTo'],_0xc1611b,this['_markers'],_0x7b44a4);}['_makeModelFromViewString'](_0x418278){const _0x228545=JSON['parse'](_0x418278),_0x23a676=this['editor']['editing']['view']['document'],_0xe62cf1=new _0x18e991(_0x23a676,_0x228545['map'](_0x2f0716=>C(_0x2f0716,this['editor'])));return this['editor']['data']['toModel'](_0xe62cf1);}['_saveMetaData'](_0x35c6c5,_0xf446b1,_0x16a4b4,_0x18155e){const _0x36d54a=new Map(_0xf446b1),_0x4a4de2=new Map(_0x91048a(_0x18155e)),_0x2c69a2=new Map();for(const [_0x222e19,_0x20b058]of _0x16a4b4)_0x2c69a2['set'](_0x222e19,{'start':_0x20b058['start']['clone'](),'end':_0x20b058['end']['clone'](),'rootName':_0x20b058['root']['rootName']});this['_savedMetaData']['set'](_0x35c6c5,{'roots':_0x36d54a,'markers':_0x2c69a2,'rootsAttributes':_0x4a4de2});}['_removeMetaData'](_0x51d769){this['_savedMetaData']['delete'](_0x51d769);}['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'](_0x1d2aab,_0x8e62e4=null){let _0x423f06=null;_0x1d2aab['is']('documentFragment')||(_0x423f06=new ft(_0x1d2aab['name'],{'vid_start':null===_0x8e62e4?this['_revisionId']++:_0x8e62e4++}));const _0xb4d14f=[];for(const _0x1b3c22 of _0x1d2aab['getChildren']())if(_0x1b3c22['is']('element')){_0xb4d14f['push'](this['_makeIdsRoot'](_0x1b3c22,_0x8e62e4));const _0x2c7fe4=_0xb4d14f[_0xb4d14f['length']-0x1];null!==_0x8e62e4&&(_0x8e62e4=_0x2c7fe4['is']('element','$text')?_0x2c7fe4['getAttribute']('vid')+0x1:_0x2c7fe4['getAttribute']('vid_end')+0x1);}else{for(let _0x615ef4=0x0;_0x615ef4<_0x1b3c22['offsetSize'];_0x615ef4++)_0xb4d14f['push'](new ft('$text',{'vid':null===_0x8e62e4?this['_revisionId']++:_0x8e62e4++}));}if(_0x1d2aab['is']('documentFragment')){const _0x202da8=F(_0x1d2aab['rootName']);return _0x202da8['_insertChild'](0x0,_0xb4d14f),_0x202da8;}return _0x423f06['_setAttribute']('vid_end',null===_0x8e62e4?this['_revisionId']++:_0x8e62e4++),_0x423f06['_insertChild'](0x0,_0xb4d14f),_0x423f06;}['_calculateMetaData'](_0x52fdc9,_0x2df6a0,_0x4293ec){this['_reset']();const {roots:_0x40b571,markers:_0x4f1e98,rootsAttributes:_0xc9e160}=this['_savedMetaData']['get'](_0x52fdc9);this['_baseRoots']=new Map(_0x40b571),this['_baseRootsAttributes']=new Map(_0x91048a(_0xc9e160));for(const [_0x3ad76f,_0x3ccbf1]of this['_baseRoots'])if('$graveyard'!==_0x3ad76f&&(this['_diffRoots']['set'](_0x3ad76f,T(_0x3ccbf1)),this['_diffRootsAttributes']=new Map(_0x91048a(_0xc9e160)),_0x4293ec)){const _0x426ddb=this['_revisionId'];this['_idsRoots']['set'](_0x3ad76f,this['_makeIdsRoot'](_0x3ccbf1)),this['_baseIdsRoots']['set'](_0x3ad76f,this['_makeIdsRoot'](_0x3ccbf1,_0x426ddb));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x4293ec&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x3f8efe,_0x109a07]of _0x4f1e98){const _0x3cf715=this['_baseRoots']['get'](_0x109a07['rootName']),_0x3a24e8=this['_diffRoots']['get'](_0x109a07['rootName']),_0x3790de=new vt(this['_fixPosition'](_0x109a07['start'],_0x3cf715),this['_fixPosition'](_0x109a07['end'],_0x3cf715)),_0x425b2b=this['_fixRange'](_0x3790de,_0x3a24e8);_0x3cf715['markers']['set'](_0x3f8efe,_0x3790de),this['_markers']['set'](_0x3f8efe,_0x425b2b);}this['_applyOperations'](_0x52fdc9,_0x2df6a0,_0x4293ec);}['_applyOperations'](_0x300cae,_0x33988f,_0x3fbde0){for(const _0x2de160 of this['source']['getOperations'](_0x300cae,_0x33988f))this['_handleOperation'](_0x2de160,_0x3fbde0);for(const _0x5ac5c6 of this['_diffRoots']['values']())_0x5ac5c6['markers']['clear']();for(const [_0x403c4d,_0x58e078]of this['_markers']){this['_diffRoots']['get'](_0x58e078['root']['rootName'])['markers']['set'](_0x403c4d,_0x58e078['clone']());}const _0x266b93=new Map(),_0x2b1e91=new Map();for(const [_0x284f55,_0x3dc6d6]of this['_diffRoots'])_0x266b93['set'](_0x284f55,T(_0x3dc6d6)),_0x2b1e91['set'](_0x284f55,this['_diffRootsAttributes']['get'](_0x284f55));this['_saveMetaData'](_0x33988f,_0x266b93,this['_markers'],_0x2b1e91);}['_getPreviousFrom'](_0x58c082){const _0xe491ea=Array['from'](this['_savedMetaData']['keys']());_0xe491ea['sort']((_0x2948ab,_0x470e46)=>_0x2948ab-_0x470e46),_0xe491ea['reverse']();for(const _0x42eb2f of _0xe491ea)if(_0x42eb2f<_0x58c082)return _0x42eb2f;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0xf57da,_0xfafbcb){const _0x47239a=Array['from'](_0xfafbcb['markers'])['map'](([_0x2d47e4,_0x1f9baa])=>[_0x2d47e4,this['_fixRange'](_0x1f9baa,_0xf57da)]);_0xf57da['markers']=new Map(_0x47239a);}['_transformMarkers'](_0x382dc7){for(const _0x5b2f02 of this['_markers']['values']()){const _0xb22454=_0x5b2f02['getTransformedByOperation'](_0x382dc7),_0xd5ec7a=vt['_createFromRanges'](_0xb22454);_0x5b2f02['start']=_0xd5ec7a['start'],_0x5b2f02['end']=_0xd5ec7a['end'];}}['_handleOperation'](_0x45bb92,_0x2fc441){if('addRoot'!=_0x45bb92['type']&&'detachRoot'!=_0x45bb92['type']){if('insert'==_0x45bb92['type']){const _0x141a8a=_0x45bb92['position']['root']['rootName'];this['_diffRoots']['has'](_0x141a8a)||(this['_diffRoots']['set'](_0x141a8a,F(_0x141a8a,!0x0)),this['_diffRootsAttributes']['set'](_0x141a8a,{}),_0x2fc441&&this['_idsRoots']['set'](_0x141a8a,F(_0x141a8a,!0x0)));}else{if('addRootAttribute'==_0x45bb92['type']||'removeRootAttribute'==_0x45bb92['type']||'changeRootAttribute'==_0x45bb92['type'])return void this['_handleRootAttributeOperation'](_0x45bb92);'marker'==_0x45bb92['type']&&this['_handleMarkerOperation'](_0x45bb92);}if('marker'!==_0x45bb92['type']){const _0x5c56d2=this['_cloneOperation'](_0x45bb92,this['_diffRoots']);_0x5c56d2['_execute'](),this['_transformMarkers'](_0x5c56d2);}if(_0x2fc441)switch(_0x45bb92['type']){case'insert':this['_handleInsertOperation'](_0x45bb92);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x45bb92);break;case'merge':this['_handleMergeOperation'](_0x45bb92);break;case'split':this['_handleSplitOperation'](_0x45bb92);}}else this['_handleRootOperation'](_0x45bb92,_0x2fc441);}['_cloneOperation'](_0x4295a2,_0x43b289){const _0xebd8e9=_0x4295a2['clone']();return _0xebd8e9['_authorId']=_0x4295a2['_authorId'],this['_fixOperation'](_0xebd8e9,_0x43b289),_0xebd8e9;}['_getBaseVids'](_0x14611b){return _0x14611b['map'](_0x47a34f=>{const _0xb8ef5f=this['_getVidAttributeName'](_0x47a34f);return Number(_0x47a34f['item']['getAttribute'](_0xb8ef5f));});}['_generateTape'](_0x5175a0,_0x40cc69){if(_0x5175a0['is']('element','$text'))_0x40cc69['push']({'item':_0x5175a0,'type':'text'});else{_0x5175a0['is']('element')&&_0x40cc69['push']({'item':_0x5175a0,'type':'elementStart'});for(const _0x3f2835 of _0x5175a0['getChildren']())this['_generateTape'](_0x3f2835,_0x40cc69);_0x5175a0['is']('element')&&_0x40cc69['push']({'item':_0x5175a0,'type':'elementEnd'});}return _0x40cc69;}['_getState'](){const _0x3f3447=new Map(this['_touched']),_0x46401a=new Map(_0x3f3447),_0x388bc3=new Map(),_0x2b6952={'insertions':{},'deletions':{}},_0xd2ff05={'insertions':{},'deletions':{}},_0xc003b9=new Map(),_0x129976=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x129976['delete']('$graveyard');for(const _0x56fbda of _0x129976){const _0x2ee8a7=this['_diffRoots']['get'](_0x56fbda)||F(_0x56fbda,!0x1),_0x43a0f3=this['_baseRoots']['get'](_0x56fbda)||F(_0x56fbda,!0x1);_0x2ee8a7['isAttached']()||_0x43a0f3['isAttached']()?(_0x2b6952['insertions'][_0x56fbda]=T(_0x2ee8a7),_0x2b6952['deletions'][_0x56fbda]=T(_0x43a0f3),this['_copyMarkers'](_0x2b6952['deletions'][_0x56fbda],_0x43a0f3),this['_copyMarkers'](_0x2b6952['insertions'][_0x56fbda],_0x2ee8a7),_0xd2ff05['insertions'][_0x56fbda]=this['_generateTape'](this['_idsRoots']['get'](_0x56fbda),[]),_0xd2ff05['deletions'][_0x56fbda]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x56fbda)||F(_0x56fbda,!0x1),[])):_0x129976['delete'](_0x56fbda);}for(const _0x10e271 of _0x129976){const _0x539eae=_0xd2ff05['insertions'][_0x10e271];for(const _0xb72e4c of _0x539eae){const _0x4a4149=this['_getVidAttributeName'](_0xb72e4c),_0x3dea75=_0xb72e4c['item']['getAttribute'](_0x4a4149);_0x46401a['delete'](_0x3dea75),_0x3dea75>=this['_startingRevisionId']&&_0x388bc3['set'](_0x3dea75,_0x3f3447['get'](_0x3dea75));}}for(const _0x39e3b5 of _0x129976){const _0x427d98=_0xd2ff05['insertions'][_0x39e3b5],_0x2e241c=this['_getBaseVids'](_0xd2ff05['deletions'][_0x39e3b5]);let _0x901985=0x0;for(const _0x15e5be of _0x427d98){const _0x22cb19=this['_getVidAttributeName'](_0x15e5be),_0x481cef=_0x15e5be['item']['getAttribute'](_0x22cb19);if(!_0x388bc3['has'](_0x481cef)&&!_0xc003b9['has'](_0x481cef)){if(_0x46401a['has'](_0x481cef))_0x901985++;else{if(_0x481cef!=_0x2e241c[_0x901985]){const _0x407139=_0x3f3447['get'](_0x481cef)||_0x3f3447['get'](_0x2e241c[_0x901985]);for(;_0x481cef!=_0x2e241c[_0x901985];)_0x46401a['has'](_0x2e241c[_0x901985])||(_0xc003b9['set'](_0x2e241c[_0x901985],_0x407139),_0x3f3447['set'](_0x2e241c[_0x901985],_0x407139)),_0x901985++;}_0x901985++;}}}}for(const _0x5103d6 of _0x129976){const _0x1c9c03=_0xd2ff05['insertions'][_0x5103d6];for(const _0x1f1a3d of _0x1c9c03){const _0x2f1693=this['_getVidAttributeName'](_0x1f1a3d),_0x2afda1=_0x1f1a3d['item']['getAttribute'](_0x2f1693);if(_0xc003b9['has'](_0x2afda1)){const _0x5efb25=_0xc003b9['get'](_0x2afda1);_0x46401a['has'](_0x2afda1)||_0x46401a['set'](_0x2afda1,{..._0x5efb25}),_0x388bc3['set'](_0x2afda1,{..._0x5efb25});}}}for(const _0x2ee2a7 of _0x46401a['keys']())_0x2ee2a7>=this['_startingRevisionId']&&_0x46401a['delete'](_0x2ee2a7);const _0x41cc28=new Map();for(const _0x58ba4d of _0x129976){let _0x754f10=_0xd2ff05['insertions'][_0x58ba4d];for(const _0x514d7e of _0x754f10)if(_0x514d7e['item']['is']('element','tableCell')){const _0x330758=this['_getVidAttributeName'](_0x514d7e),_0x29d88f=_0x514d7e['item']['getAttribute'](_0x330758);if(_0x388bc3['has'](_0x29d88f)){const _0x1c7691=_0x514d7e['item']['parent']['parent']['getAttribute']('vid_start'),_0x15f99c=_0x41cc28['get'](_0x1c7691)||new Set();_0x15f99c['add'](_0x388bc3['get'](_0x29d88f)['userId']),_0x41cc28['set'](_0x1c7691,_0x15f99c);}}_0x754f10=_0xd2ff05['deletions'][_0x58ba4d];for(const _0x44e334 of _0x754f10)if(_0x44e334['item']['is']('element','tableCell')){const _0x26246d=this['_getVidAttributeName'](_0x44e334),_0xeea0b3=_0x44e334['item']['getAttribute'](_0x26246d);if(_0x46401a['has'](_0xeea0b3)){const _0x4113bc=_0x44e334['item']['parent']['parent']['getAttribute']('vid_start'),_0x26469d=_0x41cc28['get'](_0x4113bc)||new Set();_0x26469d['add'](_0x46401a['get'](_0xeea0b3)['userId']),_0x41cc28['set'](_0x4113bc,_0x26469d);}}for(const _0xcda864 of _0x41cc28['keys']())(_0x388bc3['has'](_0xcda864)||_0x46401a['has'](_0xcda864))&&_0x41cc28['delete'](_0xcda864);}for(const _0x3d91c5 of _0x129976){const _0x228568=_0xd2ff05['insertions'][_0x3d91c5];let _0x23a32b=null,_0x3d74d4=null;for(const _0x191b20 of _0x228568){const _0x971a45=this['_getVidAttributeName'](_0x191b20),_0xd099b8=_0x191b20['item']['getAttribute'](_0x971a45),_0x134b23=_0x41cc28['get'](_0xd099b8);_0x134b23&&'elementStart'==_0x191b20['type']&&(_0x23a32b=Array['from'](_0x134b23)[0x0],_0x3d74d4=_0x191b20['item']['getAttribute']('vid_end')),_0x23a32b&&(_0x46401a['set'](_0xd099b8,{'userId':_0x23a32b}),_0x388bc3['set'](_0xd099b8,{'userId':_0x23a32b})),_0xd099b8==_0x3d74d4&&(_0x23a32b=null,_0x3d74d4=null);}}const _0x2e7fec={},_0x409392=new Set();for(const _0x5796ea of _0x129976){const _0x3e0f42=_0x2b6952['deletions'][_0x5796ea],_0x29e550=_0x2b6952['insertions'][_0x5796ea];for(const {userId:_0x3748e3}of this['_touchedMarkers']['values']())null!==_0x3748e3&&_0x409392['add'](_0x3748e3);for(const {userId:_0x23d7d2}of this['_touchedRoots']['values']())null!==_0x23d7d2&&_0x409392['add'](_0x23d7d2);this['_markChanges'](_0x29e550,_0xd2ff05['insertions'][_0x5796ea],_0x388bc3,'insertion',_0x409392),this['_markChanges'](_0x3e0f42,_0xd2ff05['deletions'][_0x5796ea],_0x46401a,'deletion',_0x409392),_0x2e7fec[_0x5796ea]={'insertions':this['_prepareViewToSave'](_0x29e550),'deletions':this['_prepareViewToSave'](_0x3e0f42),'attachChange':this['_touchedRoots']['get'](_0x5796ea)||null,'attributesBefore':_0x91048a(this['_baseRootsAttributes']['get'](_0x5796ea))||{},'attributesAfter':_0x91048a(this['_diffRootsAttributes']['get'](_0x5796ea))};}return{'diffData':_0x2e7fec,'authorsIds':Array['from'](_0x409392)};}['_processRootBeforeSave'](_0x37e3eb){for(const [,_0x393b10]of _0x37e3eb['markers']){const _0x347dc2=_0x393b10['start']['getAncestors']()['filter'](_0x5720ef=>'tableCell'==_0x5720ef['name']);for(const _0x1a2384 of _0x347dc2)0x1==_0x1a2384['childCount']&&_0x1a2384['getChild'](0x0)['is']('element','paragraph')&&_0x1a2384['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x20cb86){this['_processRootBeforeSave'](_0x20cb86);const _0x223b31=this['editor']['data']['toView'](_0x20cb86,{}),_0x1ce75c=Array['from'](_0x223b31['getChildren']())['map'](_0x4db3c2=>this['_getViewJson'](_0x4db3c2));return JSON['stringify'](_0x1ce75c);}['_getViewJson'](_0x216914){if(_0x216914['is']('$text'))return _0x216914['data'];{const _0x3ebd03=_0x216914;return{'type':Object['keys'](P)['find'](_0x4b335d=>_0x216914 instanceof P[_0x4b335d]),'name':_0x3ebd03['name'],'attributes':Array['from'](_0x3ebd03['getAttributes']()),'children':Array['from'](_0x3ebd03['getChildren']())['map'](_0x1e9e34=>this['_getViewJson'](_0x1e9e34))};}}['_markChanges'](_0x3c0e8c,_0x1d0fa8,_0x332075,_0x4ec12b,_0x9252d0){let _0x5e6144=null,_0x5ed115=null,_0x3a6117=0x0;const _0x577ef3=this['editor']['model'];for(let _0x3c9b9c=0x0;_0x3c9b9c<_0x1d0fa8['length'];_0x3c9b9c++){const _0x4261f4=this['_getVidAttributeName'](_0x1d0fa8[_0x3c9b9c]),_0x4d1b65=_0x1d0fa8[_0x3c9b9c]['item']['getAttribute'](_0x4261f4),_0x144d69=_0x332075['get'](_0x4d1b65),_0x21057a=_0x3c9b9c==_0x1d0fa8['length']-0x1;(!_0x5e6144&&_0x144d69&&(_0x5e6144=_0x144d69,_0x5ed115=_0x1d0fa8[_0x3c9b9c]),_0x5e6144&&(!_0x144d69||_0x144d69['userId']!=_0x5e6144['userId']))&&(_0x3a0692(_0x144d69,B(_0x5ed115,_0x3c0e8c,_0x577ef3),B(_0x1d0fa8[_0x3c9b9c],_0x3c0e8c,_0x577ef3)),_0x5e6144=_0x144d69||null,_0x5ed115=_0x144d69?_0x1d0fa8[_0x3c9b9c]:null),_0x5e6144&&_0x21057a&&_0x3a0692(_0x144d69,B(_0x5ed115,_0x3c0e8c,_0x577ef3),J(_0x1d0fa8[_0x3c9b9c],_0x3c0e8c,_0x577ef3));}function _0x3a0692(_0xa40800,_0x2dcd3c,_0x3ad37b){const _0x5ce3f2=_0x5e6144['userId'],_0x50295e='revision:'+_0x4ec12b+':'+_0x5ce3f2+':'+_0x3a6117++,_0x5c1e21=_0x577ef3['createRange'](_0x2dcd3c,_0x3ad37b);_0x3c0e8c['markers']['set'](_0x50295e,_0x5c1e21),null!==_0x5ce3f2&&_0x9252d0['add'](_0x5ce3f2);}}['_getVidAttributeName'](_0x3b6d48){switch(_0x3b6d48['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x543ea7,_0x388e64){_0x543ea7['baseVersion']=null;for(const _0x56c67f in _0x543ea7){const _0x578b70=_0x543ea7[_0x56c67f];if(_0x578b70 instanceof gt){const _0x42799a=_0x388e64['get'](_0x578b70['root']['rootName']);_0x543ea7[_0x56c67f]=this['_fixPosition'](_0x578b70,_0x42799a);}if(_0x578b70 instanceof vt){const _0x2a4b10=_0x388e64['get'](_0x578b70['root']['rootName']);_0x543ea7[_0x56c67f]=this['_fixRange'](_0x578b70,_0x2a4b10);}'root'===_0x56c67f&&(_0x543ea7['root']=_0x388e64['get'](_0x543ea7['root']['rootName']));}}['_fixRange'](_0x4c6dbb,_0x500ab8){return this['editor']['model']['createRange'](this['_fixPosition'](_0x4c6dbb['start'],_0x500ab8),this['_fixPosition'](_0x4c6dbb['end'],_0x500ab8));}['_fixPosition'](_0x2c7dcb,_0xe30e38){return this['editor']['model']['createPositionFromPath'](_0xe30e38,_0x2c7dcb['path'],_0x2c7dcb['stickiness']);}['_handleInsertOperation'](_0x559b5c){const _0x3dfa55=this['_idsRoots']['get'](_0x559b5c['position']['root']['rootName']),_0x470b39=this['_fixPosition'](_0x559b5c['position'],_0x3dfa55),_0x14c003=null===_0x559b5c['_authorId']?null:_0x559b5c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x19bd70=_0x470b39['parent'],_0x105b18=this['_revisionId'],_0x20076f=[];for(const _0x53d376 of _0x559b5c['nodes'])if(_0x53d376['is']('element'))_0x20076f['push'](this['_makeIdsRoot'](_0x53d376));else{for(let _0x25146f=0x0;_0x25146f<_0x53d376['offsetSize'];_0x25146f++)_0x20076f['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x84aef2=this['_revisionId'];for(let _0x379145=_0x105b18;_0x379145<_0x84aef2;_0x379145++)this['_touched']['set'](_0x379145,{'userId':_0x14c003});_0x19bd70['_insertChild'](_0x470b39['offset'],_0x20076f);}['_handleMoveOperation'](_0x380909){(_0x380909=this['_cloneOperation'](_0x380909,this['_idsRoots']))['_execute']();const _0x253d8c=null===_0x380909['_authorId']?null:_0x380909['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2b5d5e=_0x380909['getMovedRangeStart'](),_0x462721=_0x2b5d5e['parent'],_0x301fa1=_0x2b5d5e['offset'];!function _0x3683d2(_0xd5cc56,_0x4ef947,_0x2b6c31,_0x10a76a){for(let _0x4f26ca=_0x2b6c31;_0x4f26ca<_0x10a76a;_0x4f26ca++){const _0x44e784=_0x4ef947['getChild'](_0x4f26ca);_0x44e784['is']('element','$text')?_0xd5cc56['set'](_0x44e784['getAttribute']('vid'),{'userId':_0x253d8c}):(_0xd5cc56['set'](_0x44e784['getAttribute']('vid_start'),{'userId':_0x253d8c}),_0x3683d2(_0xd5cc56,_0x44e784,0x0,_0x44e784['childCount']),_0xd5cc56['set'](_0x44e784['getAttribute']('vid_end'),{'userId':_0x253d8c}));}}(this['_touched'],_0x462721,_0x301fa1,_0x301fa1+_0x380909['howMany']);}['_handleMergeOperation'](_0x5896fd){const _0x4d058a=null===(_0x5896fd=this['_cloneOperation'](_0x5896fd,this['_idsRoots']))['_authorId']?null:_0x5896fd['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x18ce79=_0x5896fd['targetPosition']['parent'],_0x13078b=_0x5896fd['sourcePosition']['parent'],_0x336547=_0x18ce79['getAttribute']('vid_end'),_0x2caab7=_0x13078b['getAttribute']('vid_start');_0x18ce79['_setAttribute']('vid_end',_0x13078b['getAttribute']('vid_end')),_0x13078b['_setAttribute']('vid_end',_0x336547),this['_touched']['set'](_0x2caab7,{'userId':_0x4d058a}),this['_touched']['set'](_0x336547,{'userId':_0x4d058a}),_0x5896fd['_execute']();}['_handleSplitOperation'](_0x958c04){const _0x23f35b=null===(_0x958c04=this['_cloneOperation'](_0x958c04,this['_idsRoots']))['_authorId']?null:_0x958c04['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xc27f26=_0x958c04['graveyardPosition'],_0x43352f=_0x958c04['splitPosition']['parent'];_0x958c04['_execute']();const _0x36b408=_0x43352f['getAttribute']('vid_end'),_0x457f74=_0x958c04['insertionPosition']['nodeAfter'];if(_0xc27f26){const _0x151f62=_0x457f74['getAttribute']('vid_end'),_0x35a4b1=_0x43352f['getAttribute']('vid_end');_0x43352f['_setAttribute']('vid_end',_0x151f62),_0x457f74['_setAttribute']('vid_end',_0x35a4b1),this['_touched']['set'](_0x43352f['getAttribute']('vid_end'),{'userId':_0x23f35b}),this['_touched']['set'](_0x457f74['getAttribute']('vid_start'),{'userId':_0x23f35b});}else{const _0x4b5bc1=this['_revisionId']++,_0x2f23f9=this['_revisionId']++;_0x43352f['_setAttribute']('vid_end',_0x4b5bc1),_0x457f74['_setAttribute']('vid_start',_0x2f23f9),_0x457f74['_setAttribute']('vid_end',_0x36b408),this['_touched']['set'](_0x4b5bc1,{'userId':_0x23f35b}),this['_touched']['set'](_0x2f23f9,{'userId':_0x23f35b});}}['_handleMarkerOperation'](_0xab95da){if(!_0xab95da['affectsData'])return;const _0x5ca243=(_0xab95da=this['_cloneOperation'](_0xab95da,this['_diffRoots']))['oldRange']?_0xab95da['oldRange']['root']:null,_0x493fef=_0xab95da['newRange']?_0xab95da['newRange']['root']:null;_0x5ca243&&this['_markers']['delete'](_0xab95da['name']),_0x493fef&&this['_markers']['set'](_0xab95da['name'],_0xab95da['newRange']['clone']());const _0x35e644=null===_0xab95da['_authorId']?null:_0xab95da['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x58f595=_0xab95da['name'];if(!this['_touchedMarkers']['has'](_0x58f595))return void this['_touchedMarkers']['set'](_0x58f595,{'range':_0xab95da['oldRange'],'userId':_0x35e644});const _0x17fe7d=this['_touchedMarkers']['get'](_0x58f595),_0x35ffc4=_0x17fe7d['range'],_0x1bf7b7=_0xab95da['newRange'];null==_0x35ffc4&&null==_0x1bf7b7||_0x35ffc4&&_0x1bf7b7&&_0x35ffc4['isEqual'](_0x1bf7b7)?this['_touchedMarkers']['delete'](_0xab95da['name']):_0x17fe7d['userId']=_0x35e644;}['_handleRootOperation'](_0x4a6053,_0x4274c8){this['_diffRoots']['has'](_0x4a6053['rootName'])?this['_diffRoots']['get'](_0x4a6053['rootName'])['_isAttached']=_0x4a6053['isAdd']:(this['_diffRoots']['set'](_0x4a6053['rootName'],F(_0x4a6053['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x4a6053['rootName'],{}),_0x4274c8&&this['_idsRoots']['set'](_0x4a6053['rootName'],F(_0x4a6053['rootName'],!0x0)));const _0x29e597=null===_0x4a6053['_authorId']?null:_0x4a6053['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x116212=this['_touchedRoots']['get'](_0x4a6053['rootName']);_0x116212&&_0x116212['userId']===_0x29e597?this['_touchedRoots']['delete'](_0x4a6053['rootName']):this['_touchedRoots']['set'](_0x4a6053['rootName'],{'userId':_0x29e597,'isAttached':_0x4a6053['isAdd']});}['_handleRootAttributeOperation'](_0x5b438c){const _0x34d4c0=this['_diffRootsAttributes']['get'](_0x5b438c['root']['rootName']);null===_0x5b438c['newValue']?delete _0x34d4c0[_0x5b438c['key']]:_0x34d4c0[_0x5b438c['key']]=_0x5b438c['newValue'];}}function T(_0x29787d){const _0x4eba74=F(_0x29787d['rootName'],_0x29787d['isAttached']());for(const _0x182de2 of _0x29787d['getChildren']()){const _0x3ec1b7=_0x182de2['_clone'](!0x0);_0x4eba74['_appendChild'](_0x3ec1b7);}return _0x4eba74;}function F(_0x230f50,_0x1a0e45=!0x0){const _0x3d3895=new mt();return _0x3d3895['rootName']=_0x230f50,_0x3d3895['_isAttached']=_0x1a0e45,_0x3d3895['isAttached']=()=>_0x3d3895['_isAttached'],_0x3d3895;}function B(_0x29d1b3,_0x25f39f,_0x459a26){const _0x20fe15='elementEnd'==_0x29d1b3['type']?_0x459a26['createPositionAt'](_0x29d1b3['item'],'end'):_0x459a26['createPositionBefore'](_0x29d1b3['item']);return _0x459a26['createPositionFromPath'](_0x25f39f,_0x20fe15['path'],_0x20fe15['stickiness']);}function J(_0x1f410e,_0x35652d,_0x383047){const _0x1a22ad='elementStart'==_0x1f410e['type']?_0x383047['createPositionAt'](_0x1f410e['item'],0x0):_0x383047['createPositionAfter'](_0x1f410e['item']);return _0x383047['createPositionFromPath'](_0x35652d,_0x1a22ad['path'],_0x1a22ad['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x5b74f4,_0x25e543){super(_0x5b74f4),this['focusTracker']=new _0x4b7858(),this['keystrokes']=new _0x5c86a7(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x25e543),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x316fe0(this);}['render'](){super['render'](),_0xa571e9({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x3078bb=_0x25db68=>_0x25db68['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3078bb),this['keystrokes']['set']('arrowleft',_0x3078bb),this['keystrokes']['set']('arrowup',_0x3078bb),this['keystrokes']['set']('arrowdown',_0x3078bb);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x4ef741){this['revisionNameInputView']['fieldView']['element']['value']=_0x4ef741['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0xb351a2){const _0x5654d4=new _0x18b4c1(this['locale'],_0x2434bd),_0x3847cd=_0x5654d4['fieldView'];_0x3847cd['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x4d0c42=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0xb351a2&&(_0x4d0c42+='\x20('+m(this['locale'],'optional')+')'),(_0x5654d4['label']=_0x4d0c42,_0x3847cd['on']('input',()=>{this['revisionNameInputValue']=_0x3847cd['element']['value']['trim']();}),_0x5654d4);}}class u extends _0xdedc45{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x5190f6=this['editor'],_0x255389=_0x5190f6['plugins']['get']('RevisionTracker');_0x5190f6['ui']['componentFactory']['add']('revisionHistory',_0x2a361b=>{const _0x3907d0=_0x38bdb0(_0x2a361b),_0x4d7793=_0x3907d0['panelView']['children'],_0x3e139e=new _0x1259fe(_0x2a361b),_0xb45b80=new _0xe809cc(_0x2a361b),_0x2b37d6=new te(_0x2a361b),_0x2b9675=new _0xe809cc(_0x2a361b),_0x7f5b57=new te(_0x2a361b);return _0x3907d0['bind']('isEnabled')['to'](_0x255389,'isReady',_0x255389,'isEnabled',_0x5190f6,'isReadOnly',(_0x19719c,_0x3963e2,_0xc0368c)=>_0x19719c&&_0x3963e2&&!_0xc0368c),_0x3907d0['buttonView']['set']({'icon':_0x2eec88['history'],'label':m(_0x2a361b,'Revision\x20history'),'tooltip':!0x0}),_0x2b37d6['set']({'label':m(_0x2a361b,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x2b37d6['bind']('isEnabled')['to'](_0x255389,'isReady',_0x255389,'isEnabled',_0x5190f6,'isReadOnly',(_0x3dabfc,_0x4b7d74,_0x25a550)=>_0x3dabfc&&_0x4b7d74&&!_0x25a550),_0x2b37d6['on']('execute',()=>this['_showDialog']()),_0x7f5b57['set']({'label':m(_0x2a361b,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x7f5b57['bind']('isEnabled')['to'](_0x255389,'isReady',_0x5190f6,'isReadOnly',(_0x5781f1,_0xe72e17)=>_0x5781f1&&!_0xe72e17),_0x7f5b57['on']('execute',()=>{_0x5190f6['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x3907d0['isOpen']=!0x1,_0x5190f6['editing']['view']['focus']();}),_0xb45b80['children']['add'](_0x2b37d6),_0x2b9675['children']['add'](_0x7f5b57),_0x3e139e['role']='menu',_0x3e139e['items']['addMany']([_0xb45b80,_0x2b9675]),_0x4d7793['add'](_0x3e139e),_0x3907d0;}),_0x5190f6['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x5ae187=this['editor'],_0x4e1e41=_0x5ae187['locale'],_0x2a55d5=new _0x2b9fb0(_0x4e1e41),_0x4e23b3=new _0x1fcf12(_0x4e1e41);_0x2a55d5['buttonView']['set']({'icon':_0x2eec88['history'],'label':m(_0x4e1e41,'Revision\x20history')});const _0x3c1758=new _0x1089d7(_0x4e1e41,_0x2a55d5),_0x4742e0=new _0x5cd7d0(_0x4e1e41);_0x4742e0['set']({'label':m(_0x4e1e41,'Save\x20current\x20revision')}),_0x4742e0['delegate']('execute')['to'](_0x2a55d5),_0x4742e0['on']('execute',()=>{this['_showDialog']();}),_0x3c1758['children']['add'](_0x4742e0),_0x4e23b3['items']['add'](_0x3c1758);const _0x5e1ec1=new _0x1089d7(_0x4e1e41,_0x2a55d5),_0x188d52=new _0x5cd7d0(_0x4e1e41);return _0x188d52['set']({'label':m(_0x4e1e41,'Open\x20revision\x20history')}),_0x188d52['delegate']('execute')['to'](_0x2a55d5),_0x188d52['on']('execute',()=>{_0x5ae187['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x5e1ec1['children']['add'](_0x188d52),_0x4e23b3['items']['add'](_0x5e1ec1),_0x2a55d5['panelView']['children']['add'](_0x4e23b3),_0x2a55d5;}['_showDialog'](){const _0x54a07d=this['editor'],_0x1e7109=_0x54a07d['locale'],_0x2d0de1=_0x54a07d['plugins']['get']('Dialog'),_0x32842c=_0x54a07d['plugins']['get']('RevisionTracker');function _0x5b739e(_0xebda3d){_0x54a07d['config']['get']('revisionHistory.requireRevisionName')&&''===_0xebda3d['revisionName']?_0xebda3d['revisionNameInputView']['errorText']=m(_0x1e7109,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x54a07d['plugins']['get'](l)['saveRevision']({'name':_0xebda3d['revisionName']}),_0x2d0de1['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x5b739e(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x2d0de1['show']({'id':'revisionSave','title':m(_0x1e7109,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x54a07d['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x2d0de1['hide']()},{'label':m(_0x54a07d['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0xd6f6b2){_0xd6f6b2['bind']('isEnabled')['to'](_0x32842c,'isReady',_0x32842c,'isEnabled',_0x54a07d,'isReadOnly',(_0x3c4308,_0x19e449,_0x2c35ce)=>_0x3c4308&&_0x19e449&&!_0x2c35ce);},'onExecute':()=>_0x5b739e(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x391925=this['editor'],_0x5f016d=_0x391925['locale'];this['_saveRevisionFormView']=new hs(_0x5f016d,_0x391925['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends ts{['changeId'];['_model'];constructor(_0x1da943,_0x5c71ed){super(_0x1da943),this['_model']=_0x5c71ed,this['changeId']=_0x5c71ed['id'];const _0x51a3e9=this['bindTemplate'],_0x3d64d2=m(_0x1da943,_0x5c71ed['data']['isSuggestion']?'Suggested\x20by':'add'==_0x5c71ed['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x5c71ed['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x51a3e9['to']('type',_0x5e33d3=>'ck-revision-change__'+_0x5e33d3)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x3d64d2}]},{'text':'\x20'+_0x5c71ed['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x5bf081(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x13b72e){super(),this['id']=_0x13b72e['id']||_0x286e3c(),this['author']=_0x13b72e['author'],this['type']=_0x13b72e['type'],this['data']=_0x13b72e['data']||{},this['rootName']=_0x13b72e['rootName'],this['set']('createdAt',_0x13b72e['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(_0x5998bb,_0x59b17a){this['newRevisionId']=_0x5998bb,this['oldRevisionId']=_0x59b17a,this['changes']=new _0x3cff01();}['_setChanges'](_0x27e00e){for(const _0x5718e6 of _0x27e00e)this['changes']['add'](_0x5718e6);}}const Y={'c':_0x2bd867,'a':_0xaf3c8f,'e':_0x2799dd,'r':_0x106d74,'u':_0x369d04};class d extends _0xdedc45{['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[_0x262780,_0x5a60b7,j];}constructor(_0x5074f4){super(_0x5074f4),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',(_0x1d3f52,_0x5367c0,_0x21cf26)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x352233=>{for(const _0xe45ff9 of this['editor']['editing']['view']['document']['roots'])_0x21cf26?_0x352233['removeClass']('ck-editor__editable__overlay',_0xe45ff9):_0x352233['addClass']('ck-editor__editable__overlay',_0xe45ff9);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x140441=>null!==_0x140441),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0xd2ef0f,_0x14a3e3,_0x374525)=>_0xd2ef0f&&_0x374525?_0x14a3e3['changes']['getIndex'](_0x374525):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0xcb0fca,_0x106c02)=>_0xcb0fca?_0x106c02['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x5a60b7);}['init'](){const _0x1c7f33=this['editor'],_0x178879=new _t(_0x1c7f33,{'direction':'backward'}),_0x4c3f73=new _t(_0x1c7f33,{'direction':'forward'});(_0x1c7f33['commands']['add']('showPreviousChange',_0x178879),_0x1c7f33['commands']['add']('showNextChange',_0x4c3f73),_0x1c7f33['commands']['add']('restoreRevision',new pt(_0x1c7f33)),this['on']('change:numberOfChanges',()=>{_0x178879['refresh'](),_0x4c3f73['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x1c7f33['enableReadOnlyMode']('revision-viewer'),_0x1c7f33['plugins']['has']('WidgetToolbarRepository'))&&_0x1c7f33['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x3d5119){await this['loadRevisionData'](_0x3d5119);const _0x307f85={};for(const _0x5a4a18 in _0x3d5119['diffData']){if(_0x3d5119['diffData'][_0x5a4a18]['attachChange']&&!_0x3d5119['diffData'][_0x5a4a18]['attachChange']['isAttached'])continue;const _0x1cfcd6=this['_removeRevisionMarkers'](JSON['parse'](_0x3d5119['diffData'][_0x5a4a18]['insertions'])),_0x36624e=this['editor']['editing']['view']['document'],_0x2e4923=new _0x18e991(_0x36624e,_0x1cfcd6['map'](_0x4991fc=>this['_getViewObj'](_0x4991fc)));this['editor']['data']['processor']['useFillerType']('marked'),_0x307f85[_0x5a4a18]=this['editor']['data']['processor']['toData'](_0x2e4923),this['editor']['data']['processor']['useFillerType']('default');}return _0x307f85;}async['getRevisionRootsAttributes'](_0x254634){await this['loadRevisionData'](_0x254634);const _0x93161b={};for(const _0x554134 in _0x254634['diffData'])_0x254634['diffData'][_0x554134]['attachChange']&&!_0x254634['diffData'][_0x554134]['attachChange']['isAttached']||(_0x93161b[_0x554134]=_0x254634['diffData'][_0x554134]['attributesAfter']||{});return _0x93161b;}['_removeRevisionMarkers'](_0x278607){return(_0x278607=_0x278607['filter'](_0x43931c=>!_0x43931c['name']||'revision-start'!==_0x43931c['name']&&'revision-end'!==_0x43931c['name']))['forEach'](_0xc4ff83=>{'string'!=typeof _0xc4ff83&&(_0xc4ff83['children']=this['_removeRevisionMarkers'](_0xc4ff83['children']),_0xc4ff83['attributes']=_0xc4ff83['attributes']['filter'](_0x276ade=>!_0x276ade[0x0]['startsWith']('data-revision-')));}),_0x278607;}async['compare'](_0x2ebe3a,_0x25a08d,_0x2127b2=!0x1){if(!this['isEnabled'])return;const _0x42b39e=this['diff'],_0x5f2cf4=this['repository'],_0x33a61d='string'==typeof _0x2ebe3a?_0x5f2cf4['getRevision'](_0x2ebe3a):_0x2ebe3a,_0x2c3ce9='string'==typeof _0x25a08d?_0x5f2cf4['getRevision'](_0x25a08d):_0x25a08d,_0x521d5d=_0x33a61d['id'],_0x45d869=_0x2c3ce9?_0x2c3ce9['id']:null;if(!_0x2127b2&&this['diff']&&this['diff']['newRevisionId']===_0x521d5d&&this['diff']['oldRevisionId']===_0x45d869)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x521d5d,_0x45d869);const _0x438943=this['_getRevisionsRange'](_0x33a61d,_0x2c3ce9,!0x0)['map'](_0x2068e1=>this['loadRevisionData'](_0x2068e1));return _0x438943['push'](new Promise(_0x4dac50=>{setTimeout(_0x4dac50,0x14);})),Promise['all'](_0x438943)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x77b8d1=this['_getDiff'](_0x521d5d,_0x45d869);for(const _0x2823f8 of _0x77b8d1['changes'])this['_changeIdToChange']['set'](_0x2823f8['id'],_0x2823f8);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x8cf2d=>{for(const _0x2acd42 of this['editor']['model']['document']['getRootNames']())_0x8cf2d['detachRoot'](_0x2acd42);for(const _0x21044d of Object['keys'](_0x77b8d1['model'])){const _0x2b2f21=_0x8cf2d['addRoot'](_0x21044d);for(const _0x3a9289 of Object['keys'](_0x77b8d1['attributes'][_0x21044d]))_0x8cf2d['setAttribute'](_0x3a9289,_0x77b8d1['attributes'][_0x21044d][_0x3a9289],_0x2b2f21);_0x8cf2d['insert'](_0x77b8d1['model'][_0x21044d],_0x2b2f21,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x77b8d1['changes'])),this['isReady']=!0x0;})['catch'](_0xfd7977=>{console['error'](_0xfd7977),this['_cleanUp'](),_0x42b39e&&(this['diff']=_0x42b39e),this['isReady']=!0x0;});}['addRevisionData'](_0x13adfa,_0x56cd48){const _0x173ac1=this['repository']['createRevision'](_0x13adfa);return _0x173ac1['on']('_update',(_0x34a6a2,_0x3f2b7d,_0xcaeb14)=>_0x56cd48(_0x3f2b7d,_0xcaeb14,_0x173ac1)),this['repository']['addRevision'](_0x173ac1),_0x173ac1;}['loadRevisionData'](_0x10d54a){if(!_0x10d54a||_0x10d54a['diffData'])return Promise['resolve']();{const _0x194ede=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x194ede,'revisionId':_0x10d54a['id']})['then'](_0x4fd9cf=>{_0x10d54a['_update']({'diffData':_0x4fd9cf['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},_0x5cabed=>{for(const _0x22f257 of this['editor']['model']['document']['getRootNames']())_0x5cabed['detachRoot'](_0x22f257);});}['_sortAndFilterDiffChanges'](_0x4b9bc5){const _0x2d92f4=[],_0x31317d=new Map();for(const _0x197fe1 of this['editor']['model']['document']['getRootNames']()){const _0x343289=this['editor']['editing']['view']['getDomRoot'](_0x197fe1);if(!_0x343289)continue;const _0x2992cc=_0x343289['getClientRects']()['item'](0x0);_0x2992cc&&(_0x2d92f4['push'](_0x197fe1),_0x31317d['set'](_0x197fe1,_0x2992cc));}return _0x2d92f4['sort']((_0x1a5280,_0x11dc13)=>{const _0x183d58=_0x31317d['get'](_0x1a5280),_0x20670e=_0x31317d['get'](_0x11dc13);return _0x183d58['y']-_0x20670e['y']||_0x183d58['x']-_0x20670e['x'];}),(_0x4b9bc5=_0x4b9bc5['filter'](_0x39358f=>_0x2d92f4['includes'](_0x39358f['rootName'])))['sort']((_0x1acae9,_0x34b0de)=>_0x2d92f4['indexOf'](_0x1acae9['rootName'])-_0x2d92f4['indexOf'](_0x34b0de['rootName'])),_0x4b9bc5;}['_makeTape'](_0x13ad06){const _0x2a6e96=Array['from'](_0x13ad06['markers'])['filter'](([_0x3d2d66,_0x4c4d73])=>_0x3d2d66['startsWith']('revision:')&&!_0x4c4d73['isCollapsed']),_0x34de44=Array['from'](this['editor']['model']['createRangeIn'](_0x13ad06)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x2a6e96['length'])for(const _0x20f99f of _0x34de44){const [_0x549a9b,_0x4cd6a0]=_0x2a6e96[0x0],[,_0x86a9a5,_0x3369a0]=_0x549a9b['split'](':');if(_0x4cd6a0['end']['isEqual'](_0x20f99f['nextPosition'])&&_0x2a6e96['shift'](),(_0x20f99f['previousPosition']['isEqual'](_0x4cd6a0['start'])||_0x20f99f['previousPosition']['isAfter'](_0x4cd6a0['start']))&&('insertion'==_0x86a9a5?_0x20f99f['isAdded']={'userId':_0x3369a0}:'deletion'==_0x86a9a5&&(_0x20f99f['isRemoved']={'userId':_0x3369a0})),0x0==_0x2a6e96['length'])break;}return _0x34de44;}['_refreshStartEndIndex'](_0x4d3d02){const _0x3f58fd=new Map();for(let _0x9c3940=0x0;_0x9c3940<_0x4d3d02['length'];_0x9c3940++)'text'===_0x4d3d02[_0x9c3940]['type']?(_0x4d3d02[_0x9c3940]['item']['startIndex']=_0x9c3940,_0x4d3d02[_0x9c3940]['item']['endIndex']=_0x9c3940):('elementStart'===_0x4d3d02[_0x9c3940]['type']?_0x4d3d02[_0x9c3940]['item']['startIndex']=_0x9c3940:'elementEnd'===_0x4d3d02[_0x9c3940]['type']&&(_0x4d3d02[_0x9c3940]['item']['endIndex']=_0x9c3940),_0x3f58fd['set'](_0x4d3d02[_0x9c3940]['id'],_0x9c3940));for(const _0x5ce04f of _0x3f58fd['values']())'elementStart'===_0x4d3d02[_0x5ce04f]['type']?_0x4d3d02[_0x5ce04f]['item']['endIndex']=_0x3f58fd['get'](_0x4d3d02[_0x5ce04f]['pairId']):'elementEnd'===_0x4d3d02[_0x5ce04f]['type']&&(_0x4d3d02[_0x5ce04f]['item']['startIndex']=_0x3f58fd['get'](_0x4d3d02[_0x5ce04f]['pairId']));}['_processTape'](_0x56bfdb){for(let _0x21a6bc=0x0;_0x21a6bc<_0x56bfdb['length'];_0x21a6bc++){if('elementStart'===_0x56bfdb[_0x21a6bc]['type'])_0x56bfdb[_0x21a6bc]['item']['startIndex']=_0x21a6bc;else{if('elementEnd'===_0x56bfdb[_0x21a6bc]['type']){_0x56bfdb[_0x21a6bc]['item']['endIndex']=_0x21a6bc;const _0x2036f3=_0x56bfdb[_0x21a6bc]['item']['startIndex'];_0x56bfdb[_0x2036f3]['pairId']=_0x56bfdb[_0x21a6bc]['id'],_0x56bfdb[_0x21a6bc]['pairId']=_0x56bfdb[_0x2036f3]['id'];}else _0x56bfdb[_0x21a6bc]['item']['startIndex']=_0x21a6bc,_0x56bfdb[_0x21a6bc]['item']['endIndex']=_0x21a6bc,_0x56bfdb[_0x21a6bc]['pairId']=null;}_0x56bfdb[_0x21a6bc]['markersStart']||(_0x56bfdb[_0x21a6bc]['markersStart']=[],_0x56bfdb[_0x21a6bc]['markersEnd']=[]);}}['_markInsertions'](_0x3f55f0,_0x3004df){const _0x18733f=_0x3f55f0['filter'](_0x219d8b=>!_0x219d8b['isAdded']);for(let _0x2b2ad0=0x0;_0x2b2ad0<_0x3004df['length'];_0x2b2ad0++)_0x3004df[_0x2b2ad0]['isAdded']&&(_0x18733f[_0x2b2ad0]['isAdded']=_0x3004df[_0x2b2ad0]['isAdded']);}['_makeModelFromViewString'](_0x1b5870){const _0x544058=JSON['parse'](_0x1b5870),_0x30bd86=this['editor']['editing']['view']['document'],_0x22ab71=new _0x18e991(_0x30bd86,_0x544058['map'](_0x4701f2=>this['_getViewObj'](_0x4701f2)));return this['editor']['data']['toModel'](_0x22ab71);}['_getViewObj'](_0x4818e7){const _0x1bac2=this['editor']['editing']['view']['document'];if('string'==typeof _0x4818e7)return new _0x68b194(_0x1bac2,_0x4818e7);{const _0x2e09a0=_0x4818e7['children']['map'](_0x44ed65=>this['_getViewObj'](_0x44ed65));return new(Y[_0x4818e7['type']]||_0x6c83fe)(_0x1bac2,_0x4818e7['name'],_0x4818e7['attributes'],_0x2e09a0);}}['_getDiff'](_0xe9612e,_0x29f796=null){const _0x58320a=this['repository']['getRevision'](_0xe9612e),_0x31e98d=_0x29f796?this['repository']['getRevision'](_0x29f796):null,_0x2cf0af=this['_getRevisionsRange'](_0x58320a,_0x31e98d),_0x303cb5=_0x2cf0af[_0x2cf0af['length']-0x1],_0x5d6ba0=new Map(),_0x347829={'model':{},'attributes':{},'changes':[]},_0x434336=new Set(),_0x47b1fb=new Map();for(let _0x4cf9d1=_0x2cf0af['length']-0x1;_0x4cf9d1>=0x0;_0x4cf9d1--){const _0x525751=_0x2cf0af[_0x4cf9d1];for(const _0x36a30e of Object['keys'](_0x525751['diffData']))if(_0x525751['diffData'][_0x36a30e]['attachChange']){const _0x5ec584=_0x525751['diffData'][_0x36a30e]['attachChange'];_0x5ec584['isAttached']?(_0x434336['add'](_0x36a30e),_0x47b1fb['has'](_0x36a30e)&&_0x47b1fb['get'](_0x36a30e)['userId']==_0x5ec584['userId']?_0x47b1fb['delete'](_0x36a30e):_0x47b1fb['set'](_0x36a30e,_0x5ec584)):_0x47b1fb['has'](_0x36a30e)?(_0x434336['delete'](_0x36a30e),_0x47b1fb['delete'](_0x36a30e)):(_0x434336['add'](_0x36a30e),_0x47b1fb['set'](_0x36a30e,_0x5ec584));}else _0x434336['add'](_0x36a30e);}for(const _0x395a05 of _0x434336){const _0x2ed5e6=_0x47b1fb['has'](_0x395a05)&&!_0x47b1fb['get'](_0x395a05)['isAttached'];let _0x3ae45b=_0x2ed5e6?_0x2cf0af['length']-0x1:0x0;const _0x346725=_0x2ed5e6?-0x1:0x1;for(;_0x2cf0af[_0x3ae45b];){const _0x58cb65=_0x2cf0af[_0x3ae45b];if(_0x58cb65['diffData'][_0x395a05]){const _0x4bd5d0=_0x2ed5e6?_0x58cb65['diffData'][_0x395a05]['attributesBefore']:_0x58cb65['diffData'][_0x395a05]['attributesAfter'];_0x347829['attributes'][_0x395a05]=_0x4bd5d0?_0x91048a(_0x4bd5d0):{};break;}_0x3ae45b+=_0x346725;}}for(const _0x53bd59 of _0x2cf0af){_0x53bd59['model']={};for(const _0x10d983 of _0x53bd59['authors'])_0x5d6ba0['set'](_0x10d983['id'],_0x10d983);for(const _0x1cbec3 of _0x434336){const _0x2bf0ad=_0x53bd59['diffData'][_0x1cbec3]?_0x53bd59['diffData'][_0x1cbec3]['insertions']:'[]',_0xf28ec4=_0x53bd59['diffData'][_0x1cbec3]?_0x53bd59['diffData'][_0x1cbec3]['deletions']:'[]';_0x53bd59['model'][_0x1cbec3]={'insertions':this['_makeModelFromViewString'](_0x2bf0ad),'deletions':this['_makeModelFromViewString'](_0xf28ec4)};}}for(const _0x1b114a of _0x434336){let _0x37af52=null,_0x224a1b=0x0;const _0x28a4b4=new Map(Array['from'](_0x58320a['model'][_0x1b114a]['insertions']['markers'])['filter'](([_0x5e515f])=>!_0x5e515f['startsWith']('revision:')));let _0x52873f=0x0;for(const _0x157a8b of _0x2cf0af){const _0x2cd95e=this['_makeTape'](_0x157a8b['model'][_0x1b114a]['insertions']);_0x157a8b==_0x58320a?(_0x37af52=_0x2cd95e,_0x224a1b=_0x37af52['length'],_0x37af52['forEach'](_0x5cb24d=>{_0x5cb24d['id']=_0x52873f++;}),this['_processTape'](_0x37af52)):this['_markInsertions'](_0x37af52,_0x2cd95e);const _0x110789=_0x37af52['filter'](_0x2bb778=>!_0x2bb778['isAdded'])['map'](_0x1117f3=>_0x1117f3['id']);let _0x4147e8=0x0;const _0x3462ce=this['_makeTape'](_0x157a8b['model'][_0x1b114a]['deletions']);_0x3462ce['forEach'](_0xf9573=>{_0xf9573['isRemoved']?_0xf9573['id']=_0x224a1b++:_0xf9573['id']=_0x110789[_0x4147e8++];}),this['_processTape'](_0x3462ce),this['_setDistance'](_0x37af52,'isAdded'),this['_setDistance'](_0x3462ce,'isRemoved'),_0x157a8b==_0x58320a&&this['_markMarkers'](_0x37af52,_0x28a4b4),_0x37af52=this['_joinTapes'](_0x37af52,_0x3462ce),this['_refreshStartEndIndex'](_0x37af52),this['_setDistance'](_0x37af52,'isRemoved');}_0x37af52=_0x37af52['filter'](_0x33d19f=>!(_0x33d19f['isAdded']&&_0x33d19f['isRemoved']));const _0x32f63f=new Map(_0x303cb5['model'][_0x1b114a]['deletions']['markers']),_0x338c59=new Set(_0x28a4b4['keys']());for(const _0x121393 of _0x32f63f['keys']())_0x338c59['delete'](_0x121393);this['_markSuggestions'](_0x37af52,_0x338c59),this['_fixObsoleteTags'](_0x37af52),_0x37af52=this['_removeMissingPairs'](_0x37af52),_0x37af52=this['_markMismatchedRemovedTags'](_0x37af52),_0x37af52=this['_removeUnsupportedChanges'](_0x37af52);const {root:_0x2c7e3b,changes:_0x2b0a0b}=this['_makeModelFromTape'](_0x37af52,_0x5d6ba0,_0x1b114a);_0x347829['model'][_0x1b114a]=_0x2c7e3b;const _0xc138a1=_0x47b1fb['get'](_0x1b114a);if(_0xc138a1){const _0x4d6cc4=_0x5d6ba0['get'](_0xc138a1['userId']),_0xd6daf4=new r({'author':_0x4d6cc4,'type':_0xc138a1['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x1b114a});_0x2b0a0b['unshift'](_0xd6daf4),_0x347829['attributes'][_0x1b114a]['revisionHistoryAttachChange']=_0xd6daf4['id'];}_0x347829['changes']=_0x347829['changes']['concat'](_0x2b0a0b);}return _0x347829;}['_markMarkers'](_0x313557,_0x124cda){for(let _0x501c2b=0x0;_0x501c2b<_0x313557['length'];_0x501c2b++)for(const [_0x3096f6,_0x583ee5]of _0x124cda)_0x583ee5['start']['isEqual'](_0x313557[_0x501c2b]['previousPosition'])&&_0x313557[_0x501c2b]['markersStart']['push'](_0x3096f6),_0x583ee5['end']['isEqual'](_0x313557[_0x501c2b]['nextPosition'])&&_0x313557[_0x501c2b]['markersEnd']['push'](_0x3096f6);}['_joinTapes'](_0x1f186a,_0x8e6405){let _0x4e943c=[],_0xeb5252=0x0,_0x3481b0=0x0;for(;_0xeb5252<_0x1f186a['length']||_0x3481b0<_0x8e6405['length'];){const _0x259b59=_0x1f186a[_0xeb5252]||{},_0x5f516c=_0x8e6405[_0x3481b0]||{};if(_0x259b59['id']==_0x5f516c['id'])_0xeb5252++,_0x3481b0++,_0x4e943c['push'](_0x259b59);else{if(_0x5f516c['isRemoved']&&_0x259b59['isAdded']){const {commonTape:_0x1112e3,iEnd:_0x28d59c,jEnd:_0x329905}=this['_threeWayMerge'](_0x1f186a,_0xeb5252,_0x8e6405,_0x3481b0);_0x4e943c=_0x4e943c['concat'](_0x1112e3),_0xeb5252=_0x28d59c,_0x3481b0=_0x329905;}else _0x5f516c['isRemoved']?(_0x3481b0++,_0x4e943c['push'](_0x5f516c)):(_0xeb5252++,_0x4e943c['push'](_0x259b59));}}return _0x4e943c;}['_markSuggestions'](_0x25f0b5,_0x203c4a){const _0x19b8d4=[];for(let _0x4bdbac=0x0;_0x4bdbac<_0x25f0b5['length'];_0x4bdbac++){for(let _0x444866=0x0;_0x444866<_0x25f0b5[_0x4bdbac]['markersStart']['length'];_0x444866++){const _0x4b71ff=_0x25f0b5[_0x4bdbac]['markersStart'][_0x444866];if(!_0x203c4a['has'](_0x4b71ff))continue;const {group:_0x22f21b,type:_0x2444c4,authorId:_0x4d02dc}=_0x49317c(_0x4b71ff);'revision-suggestion'!=_0x22f21b||'insertion'!=_0x2444c4&&'deletion'!=_0x2444c4||(_0x19b8d4['unshift']({'type':_0x2444c4,'name':_0x4b71ff,'userId':_0x4d02dc}),_0x25f0b5[_0x4bdbac]['markersStart']['splice'](_0x444866,0x1),_0x444866--);}_0x426e60(_0x25f0b5[_0x4bdbac]);for(let _0x6b261b=0x0;_0x6b261b<_0x25f0b5[_0x4bdbac]['markersEnd']['length'];_0x6b261b++){const _0x186f47=_0x25f0b5[_0x4bdbac]['markersEnd'][_0x6b261b];if(!_0x203c4a['has'](_0x186f47))continue;const {group:_0x23660e,type:_0x5c298c}=_0x49317c(_0x186f47);if('revision-suggestion'!=_0x23660e||'insertion'!=_0x5c298c&&'deletion'!=_0x5c298c)continue;_0x25f0b5[_0x4bdbac]['markersEnd']['splice'](_0x6b261b,0x1),_0x6b261b--;const _0x176031=_0x19b8d4['findIndex'](_0x54c345=>_0x54c345['name']==_0x186f47);_0x176031>-0x1&&_0x19b8d4['splice'](_0x176031,0x1);}}function _0x49317c(_0x11dd76){const _0x693d9e=_0x11dd76['split'](':');return{'group':_0x693d9e[0x0],'type':_0x693d9e[0x1],'subType':_0x693d9e['length']>=0x5?_0x693d9e[0x2]:null,'id':_0x693d9e['length']<0x5?_0x693d9e[0x2]:_0x693d9e[0x3],'authorId':_0x693d9e['length']<0x5?_0x693d9e[0x3]:_0x693d9e[0x4],'markerCount':0x6==_0x693d9e['length']?_0x693d9e[0x5]:null};}function _0x426e60(_0x321bb8){for(let _0x423f1a=0x0;_0x423f1a<_0x19b8d4['length'];_0x423f1a++){if(_0x321bb8['isAdded']&&'insertion'==_0x19b8d4[_0x423f1a]['type'])return _0x321bb8['isAddSuggestion']=_0x19b8d4[_0x423f1a],void delete _0x321bb8['isAdded'];if(!_0x321bb8['isAdded']&&!_0x321bb8['isRemoved']&&'deletion'==_0x19b8d4[_0x423f1a]['type'])return void(_0x321bb8['isRemoveSuggestion']=_0x19b8d4[_0x423f1a]);}}}['_setDistance'](_0x344a49,_0x4c3d8c){let _0x116b93=0x0,_0x3daeae=!0x1;const _0x194cec=new Map();for(const _0x27a462 of _0x344a49)_0x27a462[_0x4c3d8c]?_0x3daeae&&(_0x116b93++,_0x3daeae=!0x1):(_0x116b93++,_0x3daeae=!0x0),_0x194cec['set'](_0x27a462['id'],_0x116b93);for(let _0x289f81=0x0;_0x289f81<_0x344a49['length'];_0x289f81++){if('isRemoved'==_0x4c3d8c&&_0x344a49[_0x289f81]['isAdded']||'isAdded'==_0x4c3d8c&&_0x344a49[_0x289f81]['isRemoved'])continue;if('text'==_0x344a49[_0x289f81]['type']){_0x344a49[_0x289f81]['distance']=0x0;continue;}const _0x4fa019=_0x194cec['get'](_0x344a49[_0x289f81]['pairId']),_0x2b6735=_0x194cec['get'](_0x344a49[_0x289f81]['id']);_0x344a49[_0x289f81]['distance']=_0x4fa019-_0x2b6735;}}['_getRevisionsRange'](_0x5cf2c4,_0x25f3ad,_0x216275=!0x1){const _0x54caec=[];let _0xfbfe98=this['repository']['getIndex'](_0x5cf2c4),_0x931f31=this['repository']['getIndex'](_0x25f3ad);for(-0x1==_0x931f31&&(_0x931f31=this['repository']['_revisions']['length'],_0x216275=!0x1);_0xfbfe98<_0x931f31;)_0x54caec['push'](this['repository']['getRevision'](_0xfbfe98)),_0xfbfe98++;return _0x216275&&_0x54caec['push'](this['repository']['getRevision'](_0xfbfe98)),_0x54caec;}['_threeWayMerge'](_0x12d776,_0x318ef0,_0x5a19aa,_0x281dc4){const _0x15cb9a=this['editor']['model']['schema'];let _0x58395e=_0x318ef0;for(;_0x12d776[_0x58395e]&&_0x12d776[_0x58395e]['isAdded'];)_0x58395e++;let _0x368df5=_0x281dc4;for(;_0x5a19aa[_0x368df5]&&_0x5a19aa[_0x368df5]['isRemoved'];)_0x368df5++;_0x8d565(_0x12d776,_0x318ef0,_0x58395e),_0x8d565(_0x5a19aa,_0x281dc4,_0x368df5);const _0x52e3e6=_0x5a19aa['slice'](_0x281dc4,_0x368df5)['concat'](_0x12d776['slice'](_0x318ef0,_0x58395e));return _0x52e3e6['sort']((_0x19abbc,_0x4eb14c)=>_0x19abbc['side']!=_0x4eb14c['side']?_0x19abbc['side']-_0x4eb14c['side']:_0x19abbc['level']!=_0x4eb14c['level']?_0x19abbc['level']-_0x4eb14c['level']:_0x19abbc['distance']!=_0x4eb14c['distance']?_0x4eb14c['distance']-_0x19abbc['distance']:!!_0x19abbc['isAdded']!=!!_0x4eb14c['isAdded']?-0x1==_0x19abbc['side']||0x0==_0x19abbc['side']?_0x19abbc['isAdded']?-0x1:0x1:_0x19abbc['isAdded']?0x1:-0x1:_0x19abbc['index']-_0x4eb14c['index']),{'commonTape':_0x52e3e6,'iEnd':_0x58395e,'jEnd':_0x368df5};function _0x8d565(_0x1cd76f,_0x4bace5,_0x1550a9){let _0x262f8a=-0x1,_0x1bac4e=Number['POSITIVE_INFINITY'],_0x43c5d7=!0x0;for(let _0x268c09=_0x4bace5;_0x268c09<_0x1550a9;_0x268c09++)if(_0x15cb9a['isInline'](_0x1cd76f[_0x268c09]['item'])||(_0x43c5d7=!0x1),_0x1cd76f[_0x268c09]['item']['startIndex']<_0x4bace5&&(_0x262f8a=_0x268c09),_0x1cd76f[_0x268c09]['item']['endIndex']>=_0x1550a9){_0x1bac4e=_0x268c09;break;}_0x43c5d7&&(_0x262f8a=_0x1550a9-0x1);for(let _0x3f5496=_0x4bace5;_0x3f5496<_0x1550a9;_0x3f5496++)_0x1cd76f[_0x3f5496]['side']=_0x3f5496<=_0x262f8a?-0x1:_0x3f5496<_0x1bac4e?0x0:0x1,_0x1cd76f[_0x3f5496]['index']=_0x3f5496;let _0xcb3b8d=0x0;for(let _0x34cb08=_0x4bace5;_0x34cb08<=_0x262f8a;_0x34cb08++)0x0==_0x1cd76f[_0x34cb08]['distance']?_0x1cd76f[_0x34cb08]['level']=_0xcb3b8d:(_0xcb3b8d++,_0x1cd76f[_0x34cb08]['level']=_0xcb3b8d,_0xcb3b8d++);for(let _0xb6df2a=_0x4bace5;_0xb6df2a<_0x1550a9;_0xb6df2a++)0x0==_0x1cd76f[_0xb6df2a]['side']&&(_0x1cd76f[_0xb6df2a]['level']=_0xcb3b8d);_0xcb3b8d=0x0;for(let _0x23d454=_0x1550a9-0x1;_0x23d454>=_0x1bac4e;_0x23d454--)0x0==_0x1cd76f[_0x23d454]['distance']?_0x1cd76f[_0x23d454]['level']=_0xcb3b8d:(_0xcb3b8d--,_0x1cd76f[_0x23d454]['level']=_0xcb3b8d,_0xcb3b8d--);}}['_fixObsoleteTags'](_0x192eff){const _0x213572=new Map(),_0x1ee90d=this['editor']['model']['schema'];for(let _0x4df2f7=0x1;_0x4df2f7<_0x192eff['length'];_0x4df2f7++){let _0x200183,_0xc8268e,_0x4e51a4;const _0xd695a3=_0x192eff[_0x4df2f7],_0x43cb24=_0x192eff[_0x4df2f7-0x1];if('text'==_0xd695a3['type'])continue;if(_0xd695a3['type']!=_0x43cb24['type'])continue;if(!_0x1ee90d['isBlock'](_0x43cb24['item'])||_0x1ee90d['isLimit'](_0x43cb24['item']))continue;if(!_0x1ee90d['isBlock'](_0xd695a3['item'])||_0x1ee90d['isLimit'](_0xd695a3['item']))continue;if((_0x192eff[_0x4df2f7]['isAdded']||_0x192eff[_0x4df2f7]['isAddSuggestion'])&&_0x192eff[_0x4df2f7-0x1]['isRemoved'])_0x200183=_0x192eff[_0x4df2f7],_0xc8268e=_0x192eff[_0x4df2f7-0x1],_0x4e51a4=_0x4df2f7-0x1;else{if(!_0x192eff[_0x4df2f7]['isRemoved']||!_0x192eff[_0x4df2f7-0x1]['isAdded']&&!_0x192eff[_0x4df2f7-0x1]['isAddSuggestion'])continue;_0x200183=_0x192eff[_0x4df2f7-0x1],_0xc8268e=_0x192eff[_0x4df2f7],_0x4e51a4=_0x4df2f7;}const _0x55f724=_0x200183['level']==_0xc8268e['level'],_0x3c4ea6=Math['abs'](_0x200183['level'])<Math['abs'](_0xc8268e['level'])&&0x0==_0xc8268e['distance'];(_0x55f724||_0x3c4ea6)&&(_0x213572['set'](_0xc8268e['id'],_0x200183['id']),_0x192eff['splice'](_0x4e51a4,0x1),_0x4df2f7--,_0x200183['isAdded']=!0x1);}for(let _0x2addc3=0x0;_0x2addc3<_0x192eff['length'];_0x2addc3++)_0x213572['has'](_0x192eff[_0x2addc3]['pairId'])&&(_0x192eff[_0x2addc3]['pairId']=_0x213572['get'](_0x192eff[_0x2addc3]['pairId']));}['_removeMissingPairs'](_0x2f729b){const _0xda7533=new Set(_0x2f729b['map'](_0x41811d=>_0x41811d['id']));for(let _0x40f4b0=0x0;_0x40f4b0<_0x2f729b['length'];_0x40f4b0++)_0xda7533['has'](_0x2f729b[_0x40f4b0]['pairId'])||0x0==_0x2f729b[_0x40f4b0]['distance']||(_0x2f729b[_0x40f4b0]['isIncorrect']=!0x0);return _0x2f729b['filter'](_0x1ea740=>!_0x1ea740['isIncorrect']);}['_markMismatchedRemovedTags'](_0xc5856e){const _0x273aac=new Set();for(let _0x3ba36b=0x0;_0x3ba36b<_0xc5856e['length'];_0x3ba36b++){if(_0x273aac['has'](_0xc5856e[_0x3ba36b]['id'])&&_0xc5856e[_0x3ba36b]['isRemoved']&&(_0xc5856e[_0x3ba36b]['isIncorrect']=!0x0),_0xc5856e[_0x3ba36b]['isIncorrect'])continue;if(0x0==_0xc5856e[_0x3ba36b]['distance'])continue;if('elementStart'!=_0xc5856e[_0x3ba36b]['type'])continue;if(null==_0xc5856e[_0x3ba36b]['pairId'])continue;let _0x457ae8=_0x3ba36b+0x1,_0x5c30bf=0x0;for(;_0xc5856e[_0x457ae8]['id']!=_0xc5856e[_0x3ba36b]['pairId'];)'elementStart'==_0xc5856e[_0x457ae8]['type']?_0x5c30bf++:'elementEnd'==_0xc5856e[_0x457ae8]['type']&&_0x5c30bf--,_0x457ae8++;if(0x0!=_0x5c30bf){if(_0xc5856e[_0x3ba36b]['isRemoved'])_0xc5856e[_0x3ba36b]['isIncorrect']=!0x0;else{for(;_0x457ae8!=_0x3ba36b;)_0xc5856e[_0x457ae8]['isRemoved']&&0x0!=_0xc5856e[_0x457ae8]['distance']&&(_0xc5856e[_0x457ae8]['isIncorrect']=!0x0,_0x273aac['add'](_0xc5856e[_0x457ae8]['pairId'])),_0x457ae8--;}}}return _0xc5856e['filter'](_0x236cd3=>!_0x236cd3['isIncorrect']);}['_removeUnsupportedChanges'](_0x119806){const _0x295abc=this['editor']['model']['schema'];for(let _0x4ba078=0x0;_0x4ba078<_0x119806['length'];_0x4ba078++){if(!(_0x119806[_0x4ba078]['isAdded']||_0x119806[_0x4ba078]['isAddSuggestion']||_0x119806[_0x4ba078]['isRemoved']||_0x119806[_0x4ba078]['isRemoveSuggestion']))continue;if(0x0==_0x119806[_0x4ba078]['distance'])continue;const _0x461064=_0x119806[_0x4ba078]['item'];_0x295abc['isBlock'](_0x461064)||_0x295abc['isLimit'](_0x461064)||(_0x119806[_0x4ba078]['isAdded']&&delete _0x119806[_0x4ba078]['isAdded'],_0x119806[_0x4ba078]['isAddSuggestion']&&delete _0x119806[_0x4ba078]['isAddSuggestion'],_0x119806[_0x4ba078]['isRemoveSuggestion']&&delete _0x119806[_0x4ba078]['isRemoveSuggestion'],_0x119806[_0x4ba078]['isRemoved']&&(_0x119806[_0x4ba078]['isIncorrect']=!0x0));}return _0x119806['filter'](_0x297e2a=>!_0x297e2a['isIncorrect']);}['_makeModelFromTape'](_0x15af93,_0x2e425d,_0x5c6291){const _0x8eed2f=new mt(),_0x2b6fbc=[],_0x1cdc0d=new Map(),_0x226d45=this['editor']['model'],_0x4aa67a=_0x226d45['schema'],_0x4132ae=[_0x8eed2f],_0x520b00={},_0x5b5e8b={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1e6350=null;const _0x53a0be=[0x0];for(let _0x176024=0x0;_0x176024<_0x15af93['length'];_0x176024++)if('elementStart'===_0x15af93[_0x176024]['type']){_0x15af93[_0x176024]['previousPosition']=_0x226d45['createPositionFromPath'](_0x8eed2f,_0x53a0be);const _0x2e26b1=new ft(_0x15af93[_0x176024]['item']['name'],_0x15af93[_0x176024]['item']['getAttributes']());_0x4132ae[0x0]['_appendChild'](_0x2e26b1),_0x53a0be['push'](0x0),_0x4132ae['unshift'](_0x2e26b1),_0x15af93[_0x176024]['nextPosition']=_0x226d45['createPositionFromPath'](_0x8eed2f,_0x53a0be);}else'elementEnd'===_0x15af93[_0x176024]['type']?(_0x4132ae['shift'](),_0x15af93[_0x176024]['previousPosition']=_0x226d45['createPositionFromPath'](_0x8eed2f,_0x53a0be),_0x53a0be['pop'](),_0x53a0be[_0x53a0be['length']-0x1]++,_0x15af93[_0x176024]['nextPosition']=_0x226d45['createPositionFromPath'](_0x8eed2f,_0x53a0be)):(_0x15af93[_0x176024]['previousPosition']=_0x226d45['createPositionFromPath'](_0x8eed2f,_0x53a0be),_0x1e6350?_0x1e6350['_data']+=_0x15af93[_0x176024]['item']['data']:_0x1e6350=new wt(_0x15af93[_0x176024]['item']['data'],_0x15af93[_0x176024]['item']['getAttributes']()),_0x15af93[_0x176024+0x1]&&'text'===_0x15af93[_0x176024+0x1]['type']&&_0x433250(_0x1e6350,_0x15af93[_0x176024+0x1]['item'])||(_0x4132ae[0x0]['_appendChild'](_0x1e6350),_0x1e6350=null),_0x53a0be[_0x53a0be['length']-0x1]+=_0x15af93[_0x176024]['item']['offsetSize'],_0x15af93[_0x176024]['nextPosition']=_0x226d45['createPositionFromPath'](_0x8eed2f,_0x53a0be));for(let _0x48e9f7=0x0;_0x48e9f7<_0x15af93['length'];_0x48e9f7++){const _0xfa4b66=_0x15af93[_0x48e9f7]['previousPosition'],_0x14d43f=_0x15af93[_0x48e9f7]['nextPosition'];for(const _0x45b125 of _0x15af93[_0x48e9f7]['markersStart'])_0x1cdc0d['set'](_0x45b125,{'start':_0xfa4b66,'end':null});_0x5ad986('isRemoveSuggestion',_0x48e9f7,_0xfa4b66,_0x14d43f),_0x5ad986('isAddSuggestion',_0x48e9f7,_0xfa4b66,_0x14d43f),_0x5ad986('isRemoved',_0x48e9f7,_0xfa4b66,_0x14d43f),_0x5ad986('isAdded',_0x48e9f7,_0xfa4b66,_0x14d43f);for(const _0x5e3ed5 of _0x15af93[_0x48e9f7]['markersEnd']){_0x1cdc0d['get'](_0x5e3ed5)['end']=_0x14d43f;}}for(const [_0x1beaf7,_0x42edef]of _0x1cdc0d){const _0xbf4eb1=this['editor']['model']['createRange'](_0x42edef['start'],_0x42edef['end']);_0x8eed2f['markers']['set'](_0x1beaf7,_0xbf4eb1);}return _0x2b6fbc['sort']((_0x47bcea,_0x1a1c6a)=>{const _0x3c5eb2=_0x8eed2f['markers']['get']('revision:'+_0x47bcea['id']),_0x39dc1f=_0x8eed2f['markers']['get']('revision:'+_0x1a1c6a['id']);return _0x3c5eb2['start']['isBefore'](_0x39dc1f['start'])?-0x1:_0x3c5eb2['start']['isAfter'](_0x39dc1f['start'])?0x1:_0x3c5eb2['end']['isBefore'](_0x39dc1f['end'])?-0x1:_0x3c5eb2['end']['isAfter'](_0x39dc1f['end'])?0x1:'add'===_0x47bcea['type']?-0x1:0x1;}),{'root':_0x8eed2f,'changes':_0x2b6fbc};function _0x5ad986(_0x57e53d,_0x2da544,_0x43990f,_0x412ba2){const _0x1554cc=!!_0x15af93[_0x2da544][_0x57e53d],_0x3c8cea=_0x1554cc?_0x15af93[_0x2da544][_0x57e53d]['userId']:null,_0x37babd=_0x2da544===_0x15af93['length']-0x1,_0x1c068e=_0x5b5e8b[_0x57e53d][0x0],_0x1e3f70=_0x4aa67a['isObject'](_0x15af93[_0x2da544]['item']);!_0x520b00[_0x57e53d]&&_0x1554cc?_0x520b00[_0x57e53d]={'start':_0x43990f,'tapeItem':_0x15af93[_0x2da544],'userId':_0x3c8cea,'type':_0x57e53d}:_0x520b00[_0x57e53d]&&!_0x1554cc?(_0x520b00[_0x57e53d]['end']=_0x43990f,_0x432418(_0x520b00[_0x57e53d]),_0x520b00[_0x57e53d]=null):_0x520b00[_0x57e53d]&&_0x1554cc&&_0x520b00[_0x57e53d]['userId']!==_0x3c8cea&&(_0x520b00[_0x57e53d]['end']=_0x43990f,_0x1c068e&&_0x1c068e['userId']===_0x520b00[_0x57e53d]['userId']||_0x432418(_0x520b00[_0x57e53d]),_0x520b00[_0x57e53d]={'start':_0x43990f,'tapeItem':_0x15af93[_0x2da544],'userId':_0x3c8cea,'type':_0x57e53d}),_0x520b00[_0x57e53d]&&_0x1e3f70&&('elementStart'!==_0x15af93[_0x2da544]['type']||_0x1c068e&&_0x1c068e['userId']===_0x3c8cea||_0x5b5e8b[_0x57e53d]['unshift']({'userId':_0x3c8cea,'object':_0x15af93[_0x2da544]['item'],'change':_0x520b00[_0x57e53d]}),'elementEnd'===_0x15af93[_0x2da544]['type']&&_0x1c068e&&_0x1c068e['object']===_0x15af93[_0x2da544]['item']&&(_0x5b5e8b[_0x57e53d]['shift'](),_0x520b00[_0x57e53d]=_0x1c068e['change'])),_0x520b00[_0x57e53d]&&_0x37babd&&(_0x520b00[_0x57e53d]['end']=_0x412ba2,_0x432418(_0x520b00[_0x57e53d]),_0x520b00[_0x57e53d]=null);}function _0x432418({start:_0x14af31,end:_0x23dc7c,tapeItem:_0x564e70,userId:_0x5cab37,type:_0x17334a}){const _0x3089ae=_0x564e70['item'],_0xff6563=_0x226d45['schema']['isBlock'](_0x3089ae)&&!_0x226d45['schema']['isLimit'](_0x3089ae),_0x1bd3bc=_0x14af31['nodeAfter']==_0x23dc7c['parent']&&_0x23dc7c['isAtStart'];if(_0xff6563&&_0x1bd3bc)return;const _0x26ac46=_0x226d45['createRange'](_0x14af31,_0x23dc7c),_0xa4d0ce=_0x2e425d['get'](_0x5cab37),_0x208998=new r({'author':_0xa4d0ce,'type':'isAdded'==_0x17334a||'isAddSuggestion'==_0x17334a?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x17334a||'isRemoveSuggestion'==_0x17334a},'createdAt':new Date(),'rootName':_0x5c6291});_0x2b6fbc['push'](_0x208998),_0x8eed2f['markers']['set']('revision:'+_0x208998['id'],_0x26ac46);}function _0x433250(_0x5597a6,_0x48ce98){const _0x18cda7=_0x5597a6['getAttributes'](),_0x3b0772=_0x48ce98['getAttributes']();for(const _0x4558e0 of _0x18cda7){if(_0x4558e0[0x1]!==_0x48ce98['getAttribute'](_0x4558e0[0x0]))return!0x1;_0x3b0772['next']();}return _0x3b0772['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x4d4d00=>{const _0x32a89a=_0x4d4d00['markerName']['split'](':')[0x1],_0x297726=this['_getChangeFromId'](_0x32a89a);if(!_0x297726)return null;const _0x1ff719='add'==_0x297726['type']?'insertion':'deletion',_0x256b57=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1ff719];return _0x297726['data']['isSuggestion']&&_0x256b57['push']('ck-suggestion-marker-'+_0x1ff719+'-new'),this['activeChange']==_0x297726&&_0x256b57['push']('ck-suggestion-marker--active'),{'classes':_0x256b57,'attributes':{'data-change-id':_0x32a89a}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x45c21b=>{_0x45c21b['on']('element:pre',(_0x2d493c,_0x21cf8c,_0x50fd49)=>{const _0x59b4f8=_0x21cf8c['viewItem']['getChild'](0x0);if(!_0x59b4f8||!_0x59b4f8['is']('element','code'))return;if(!_0x50fd49['consumable']['consume'](_0x59b4f8,{'attributes':['vid_start','vid_end']}))return;const _0x3ac32e=_0x21cf8c['modelRange']['start']['nodeAfter'];_0x50fd49['writer']['setAttribute']('vid_start',_0x59b4f8['getAttribute']('vid_start'),_0x3ac32e),_0x50fd49['writer']['setAttribute']('vid_end',_0x59b4f8['getAttribute']('vid_end'),_0x3ac32e);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x4a6a1c=>{_0x4a6a1c['on']('element',(_0x1e1b6e,_0xf7b117,_0x101594)=>{if(!_0x101594['consumable']['consume'](_0xf7b117['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0xf7b117['modelRange']['isCollapsed'])return;const _0x1d50e3=_0xf7b117['modelRange']['start']['nodeAfter'];_0x1d50e3['hasAttribute']('vid_start')||_0x1d50e3['hasAttribute']('vid')||(_0x101594['writer']['setAttribute']('vid_start',_0xf7b117['viewItem']['getAttribute']('vid_start'),_0x1d50e3),_0x101594['writer']['setAttribute']('vid_end',_0xf7b117['viewItem']['getAttribute']('vid_end'),_0x1d50e3));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x414e66=>_0x414e66['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0xceb955,[,_0x148818])=>{['vid_start','vid_end','vid']['includes'](_0x148818)&&(_0xceb955['return']=!0x0,_0xceb955['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x191bfd=>{_0x191bfd['on']('attribute:vid',(_0x3cbc32,_0x354e51,_0x47ef67)=>{if('\x20'!=_0x354e51['item']['data']||_0x354e51['item']['parent']['maxOffset']>0x1)return;if(!_0x47ef67['consumable']['consume'](_0x354e51['item'],_0x3cbc32['name']))return;const _0x370de1=_0x47ef67['writer'],_0x34c803=_0x47ef67['mapper']['toViewRange'](_0x354e51['range']);_0x370de1['wrap'](_0x34c803,_0x370de1['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x149402){const _0x350993=_0x149402['plugins']['get']('RevisionViewer');return(_0x4132ac,_0x3aa1c2,_0x1a8b39)=>{const _0x2f3fed=_0x3aa1c2['markerName']['split'](':')[0x1],_0x512a88=_0x350993['_getChangeFromId'](_0x2f3fed);if(!_0x512a88)return null;const _0x380528='add'==_0x512a88['type']?'split':'merge';if(!_0x1a8b39['consumable']['test'](_0x3aa1c2['markerRange'],_0x4132ac['name']))return;const _0x2164bc=_0x3aa1c2['markerRange']['getWalker'](),_0x1592bb=_0x3aa1c2['markerRange']['start'],_0x5ec210=_0x149402['model']['schema'];let _0x19487f=null,_0x2b0f03=null,_0x4bf9d7=!0x1,_0x33da73=!0x1;for(const _0x22c1ac of _0x2164bc){const _0x3f4fa0=_0x22c1ac['item'];_0x4bf9d7=_0x4bf9d7||_0x5ec210['isContent'](_0x3f4fa0);const _0x7ba053=_0x1a8b39['mapper']['toViewElement'](_0x3f4fa0);if(_0x7ba053&&_0x7ba053['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x22c1ac['type']&&(_0x5ec210['isBlock'](_0x3f4fa0)&&!_0x5ec210['isLimit'](_0x3f4fa0)&&(_0x3f4fa0['nextSibling']||_0x1592bb['isAtEnd']?_0x19487f&&_0x19487f['parent']==_0x3f4fa0||(_0x19487f=_0x3f4fa0,_0x6f5686(_0x22c1ac['previousPosition']),_0x33da73=!0x0):_0x2b0f03=_0x2b0f03||_0x22c1ac['previousPosition']));}function _0x6f5686(_0x461bb0){const _0x421fc7=_0x1a8b39['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x380528}),_0x42bed0=_0x1a8b39['mapper']['toViewPosition'](_0x461bb0);_0x512a88['data']['isSuggestion']&&_0x1a8b39['writer']['addClass']('ck-suggestion-marker-'+_0x380528+'-new',_0x421fc7),_0x350993['activeChange']==_0x512a88&&_0x1a8b39['writer']['addClass']('ck-suggestion-marker--active',_0x421fc7),_0x1a8b39['writer']['insert'](_0x42bed0,_0x421fc7),_0x1a8b39['mapper']['bindElementToMarker'](_0x421fc7,_0x3aa1c2['markerName']);}_0x4bf9d7||_0x33da73||!_0x2b0f03||_0x6f5686(_0x2b0f03);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x498c72,_0x194a2a,_0x56cbaa)=>{const _0x3847dc=_0x56cbaa['mapper']['markerNameToElements'](_0x194a2a['markerName']);if(_0x3847dc){for(const _0x547205 of _0x3847dc)(_0x547205['hasClass']('ck-suggestion-marker-split')||_0x547205['hasClass']('ck-suggestion-marker-merge'))&&(_0x56cbaa['mapper']['unbindElementFromMarkerName'](_0x547205,_0x194a2a['markerName']),_0x56cbaa['writer']['remove'](_0x547205));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0xf9253c,_0x2a753d,_0x2753d7)=>{const _0x5da988=_0x2a753d['markerName']['split'](':')[0x1],_0x13f849=this['_getChangeFromId'](_0x5da988);if(!_0x13f849)return null;const _0x5932ef='add'==_0x13f849['type']?'split':'merge';if(_0x2753d7['consumable']['test'](_0x2a753d['markerRange'],_0xf9253c['name']))for(const _0x1bbac4 of _0x2a753d['markerRange']['getItems']()){if(!_0x1bbac4['is']('element','softBreak'))continue;const _0x5699ed=_0x2753d7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5932ef}),_0x5ab1d1=_0x2753d7['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x1bbac4));_0x13f849['data']['isSuggestion']&&_0x2753d7['writer']['addClass']('ck-suggestion-marker-'+_0x5932ef+'-new',_0x5699ed),this['activeChange']==_0x13f849&&_0x2753d7['writer']['addClass']('ck-suggestion-marker--active',_0x5699ed),_0x2753d7['writer']['insert'](_0x5ab1d1,_0x5699ed),_0x2753d7['mapper']['bindElementToMarker'](_0x5699ed,_0x2a753d['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x323d92=>{for(const _0x581739 of this['editor']['model']['document']['getRootNames']()){const _0x1c8749=this['editor']['model']['document']['getRoot'](_0x581739),_0x464c8d=this['editor']['editing']['view']['document']['getRoot'](_0x581739);if(_0x464c8d){const _0x562bab=_0x1c8749['getAttribute']('revisionHistoryAttachChange');if(_0x323d92['removeAttribute']('data-change-id',_0x464c8d),_0x323d92['removeClass']('ck-revision-history-root-add',_0x464c8d),_0x323d92['removeClass']('ck-revision-history-root-remove',_0x464c8d),_0x323d92['removeClass']('ck-revision-history-root--active',_0x464c8d),_0x562bab){const _0x289671=this['_getChangeFromId'](_0x562bab);if(!_0x289671)return null;_0x323d92['setAttribute']('data-change-id',_0x562bab,_0x464c8d),_0x323d92['addClass']('ck-revision-history-root-'+_0x289671['type'],_0x464c8d),this['activeChange']==_0x289671&&_0x323d92['addClass']('ck-revision-history-root--active',_0x464c8d);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x27afbd=>'revision-comment:'+_0x27afbd,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x38418a=>'revision-suggestion:'+_0x38418a,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0xc48bd2=>({'name':'suggestion:'+_0xc48bd2,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x13e5f1=>{const _0x50fb3b=_0x13e5f1['markerName']['split'](':')[0x1];return'insertion'!=_0x50fb3b&&'deletion'!=_0x50fb3b?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x50fb3b]};}}),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',(_0x46990e,_0x4f0151,_0x279325)=>{const _0x525a16=_0x279325['mapper']['markerNameToElements'](_0x4f0151['markerName']);if(_0x525a16){for(const _0x125346 of _0x525a16)_0x125346['is']('uiElement')&&(_0x279325['mapper']['unbindElementFromMarkerName'](_0x125346,_0x4f0151['markerName']),_0x279325['writer']['remove'](_0x125346));}},{'priority':'high'});}['_getChangeFromId'](_0x1a047f){return this['_changeIdToChange']['get'](_0x1a047f);}['_getViewForChange'](_0x125564){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x125564),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x1d6d40,_0x23a470,_0x1ea92b,_0x393a0b)=>{_0x393a0b&&this['_balloon']['remove'](_0x393a0b),_0x1ea92b&&(this['_balloon']['add']({'view':_0x1ea92b,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x431fd9=this['editor']['editing'],_0x22a6a3=this['_getChangeFromId'](_0x1ea92b['changeId']);let _0xb01af3;if(_0x22a6a3['data']['isOnRoot']){const _0x577a97=_0x431fd9['view']['getDomRoot'](_0x22a6a3['rootName']);_0xb01af3=Array['from'](_0x577a97['getClientRects']());}else{const _0x3fbe7a=this['editor']['model']['markers']['get']('revision:'+_0x1ea92b['changeId']);_0xb01af3=Array['from'](_0x431fd9['mapper']['markerNameToElements'](_0x3fbe7a['name']))['map'](_0x20d317=>_0x431fd9['view']['domConverter']['mapViewToDom'](_0x20d317))['map'](_0x247b65=>Array['from'](_0x247b65['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0xb01af3[0x0];return _0xb01af3['find'](_0x22b0bd=>_0x22b0bd['top']-0x3<=this['_activeViewTarget']['y']&&_0x22b0bd['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x22b0bd['left']-0x3<=this['_activeViewTarget']['x']&&_0x22b0bd['right']+0x3>=this['_activeViewTarget']['x'])||_0xb01af3[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x4023cf,_0x1358cf,_0x3688cd,_0x10903d)=>{this['activeView']=_0x3688cd?this['_getViewForChange'](_0x3688cd):null,this['editor']['model']['change'](()=>{const _0x28fe8b=this['editor']['editing'];_0x10903d&&(_0x10903d['data']['isOnRoot']?_0x28fe8b['view']['change'](_0x32cf95=>{_0x32cf95['removeClass']('ck-revision-history-root--active',_0x28fe8b['view']['document']['getRoot'](_0x10903d['rootName']));}):_0x28fe8b['reconvertMarker']('revision:'+_0x10903d['id'])),_0x3688cd&&(_0x3688cd['data']['isOnRoot']?_0x28fe8b['view']['change'](_0x35d3fa=>{_0x35d3fa['addClass']('ck-revision-history-root--active',_0x28fe8b['view']['document']['getRoot'](_0x3688cd['rootName']));}):_0x28fe8b['reconvertMarker']('revision:'+_0x3688cd['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x382e75,_0x293fc4)=>{if(this['activeChange'])return;const _0x2fd463=this['_findChangeIdFromDomTarget'](_0x293fc4['target']),_0x528aa5=this['_changeIdToChange']['get'](_0x2fd463);_0x528aa5?(this['_activeViewTarget']={'x':_0x293fc4['domEvent']['x'],'y':_0x293fc4['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x528aa5)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x98d62d,_0x513ef2)=>{const _0xbf39=this['_findChangeIdFromDomTarget'](_0x513ef2['target']),_0x366d8c=this['_changeIdToChange']['get'](_0xbf39);_0x366d8c?(this['_activeViewTarget']={'x':_0x513ef2['domEvent']['x'],'y':_0x513ef2['domEvent']['y']},_0x366d8c===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x366d8c):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x166a7e){do{const _0x154f83=_0x166a7e['getAttribute']('data-change-id');if(_0x154f83)return _0x154f83;_0x166a7e=_0x166a7e['parent'];}while(_0x166a7e);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x5e6850=>{for(const _0x4901d8 of this['editor']['model']['markers'])_0x5e6850['removeMarker'](_0x4901d8);});}}function Z(_0x281007,_0x2f45ec){return(_0x47b271,_0x5bf550,_0x8067a2)=>{if(!_0x8067a2['consumable']['test'](_0x5bf550['markerRange'],_0x47b271['name']))return;const _0x13611f=_0x5bf550['markerRange']['getWalker'](),_0x5e44e4=_0x5bf550['markerRange']['start'],_0x34e9f2=_0x281007['model']['schema'];let _0x3c4c99=null,_0x11a15f=null,_0x5d8c31=!0x1,_0x53765f=!0x1;for(const _0x50cf68 of _0x13611f){const _0x4fec1e=_0x50cf68['item'];_0x5d8c31=_0x5d8c31||_0x34e9f2['isContent'](_0x4fec1e);const _0x409064=_0x8067a2['mapper']['toViewElement'](_0x4fec1e);if(_0x409064&&_0x409064['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x50cf68['type']&&(_0x34e9f2['isBlock'](_0x4fec1e)&&!_0x34e9f2['isLimit'](_0x4fec1e)&&(_0x4fec1e['nextSibling']||_0x5e44e4['isAtEnd']?_0x3c4c99&&_0x3c4c99['parent']==_0x4fec1e||(_0x3c4c99=_0x4fec1e,_0x3bc399(_0x50cf68['previousPosition']),_0x53765f=!0x0):_0x11a15f=_0x11a15f||_0x50cf68['previousPosition']));}function _0x3bc399(_0x40d921){const _0x4820d7=_0x8067a2['mapper']['toViewPosition'](_0x40d921),_0x3c0487=_0x8067a2['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x2f45ec});_0x8067a2['writer']['insert'](_0x4820d7,_0x3c0487),_0x8067a2['mapper']['bindElementToMarker'](_0x3c0487,_0x5bf550['markerName']);}_0x5d8c31||_0x53765f||!_0x11a15f||_0x3bc399(_0x11a15f);};}class pt extends _0x5cd479{constructor(_0x2be772){super(_0x2be772);const _0x2af986=_0x2be772['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x2af986,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2af986,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x490e0e=this['editor'],_0x210eb5=_0x490e0e['plugins']['get'](d),_0x45fdde=_0x210eb5['isReady']?_0x210eb5['diff']['newRevisionId']:null;_0x490e0e['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x45fdde);}['refresh'](){const {isReady:_0x248928,isEnabled:_0x2fbd6,repository:_0x414ea6,diff:_0x32bf2d}=this['editor']['plugins']['get'](d),_0x3febb0=_0x32bf2d&&_0x414ea6['getLaterVisibleRevision'](_0x32bf2d['newRevisionId']);this['isEnabled']=_0x248928&&_0x2fbd6&&Boolean(_0x3febb0);}}class _t extends _0x5cd479{['_step'];constructor(_0x53d05c,{direction:_0x584005}){super(_0x53d05c);const _0x309ed0=_0x53d05c['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x584005?0x1:-0x1,this['listenTo'](_0x309ed0,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x309ed0,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x309ed0,'change:activeChange',()=>this['refresh']());}['execute'](){const _0xdf23d4=this['editor'],_0x5de152=_0xdf23d4['plugins']['get'](d),{isNavigationMode:_0x154364,currentChangeNumber:_0x10d15d}=_0x5de152;let _0x3ee5d1;if(_0x5de152['activeChange']=_0x154364?_0x5de152['diff']['changes']['get'](_0x10d15d+this['_step']):_0x5de152['diff']['changes']['first'],_0x5de152['activeChange']['data']['isOnRoot'])_0x3ee5d1=_0xdf23d4['editing']['view']['getDomRoot'](_0x5de152['activeChange']['rootName']);else{const _0x391c55=_0xdf23d4['model']['markers']['get']('revision:'+_0x5de152['activeChange']['id']);_0x3ee5d1=_0x1ab3f3(_0xdf23d4['editing'],_0x391c55);}_0x388c21({'target':_0x3ee5d1,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x31ea6e,currentChangeNumber:_0x552d9f,numberOfChanges:_0x329918,isReady:_0x4bba39,isEnabled:_0x3a04e2}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x3a04e2&&_0x4bba39&&_0x329918)&&(!_0x31ea6e||(0x1===this['_step']?_0x552d9f<_0x329918-0x1:_0x552d9f>0x0));}}class oi extends ts{constructor(_0x89f15e){super(_0x89f15e);const _0x889333=this['bindTemplate'],_0x3b5cb5=new te(_0x89f15e),_0x235741=new te(_0x89f15e);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',(_0x3acd08,_0x32f35e)=>_0x3acd08&&_0x32f35e>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x23a0d4,_0x180f0b,_0x1f04dc,_0x4e7fc0)=>{if(!_0x23a0d4)return m(_0x89f15e,'Loading...');if(!_0x1f04dc)return m(_0x89f15e,'No\x20changes');const _0x1e68b4=m(_0x89f15e,'NUMBER_OF_CHANGES',_0x1f04dc);return _0x4e7fc0?m(_0x89f15e,'X_OF_Y_CHANGES',[_0x180f0b+0x1,_0x1f04dc]):_0x1e68b4;}),_0x3b5cb5['set']({'label':m(_0x89f15e,'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'}),_0x235741['set']({'label':m(_0x89f15e,'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'}),_0x3b5cb5['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x235741['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3b5cb5['on']('execute',()=>this['fire']('execute','backward')),_0x235741['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',_0x889333['if']('_isStatusLabelVisible','ck-hidden',_0x2e64d4=>!_0x2e64d4)]},'children':[{'text':_0x889333['to']('isNavigationMode',_0x45b02c=>_0x45b02c?m(_0x89f15e,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x89f15e,'Total')+':\x20')}]},{'text':_0x889333['to']('_statusText')}]},new _0x46fceb(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3b5cb5,_0x235741]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0xdedc45{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x5a87df=this['editor']['editing']['view'];_0x5a87df['change'](_0x505b49=>{for(const _0x12d129 of _0x5a87df['document']['roots'])_0x505b49['addClass'](le,_0x12d129);});}['hide'](){const _0x513960=this['editor']['editing']['view'];_0x513960['change'](_0x40952f=>{for(const _0x5c37fd of _0x513960['document']['roots'])_0x40952f['removeClass'](le,_0x5c37fd);});}}class g extends _0xdedc45{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ge];}['init'](){const _0x1f8980=this['editor'],_0x3edf3a=_0x1f8980['plugins']['get'](d),_0xc947e9=_0x1f8980['plugins']['get'](ge);_0x1f8980['ui']['componentFactory']['add']('exitToEditing',_0x37d7ee=>{const _0x9a50d8=new te(_0x37d7ee);return _0x9a50d8['set']({'label':m(_0x37d7ee,'Back\x20to\x20editing'),'icon':_0x2eec88['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x9a50d8,'execute',()=>{_0x1f8980['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x9a50d8;}),_0x1f8980['ui']['componentFactory']['add']('restoreRevision',_0x20da03=>{const _0x3f4e3f=new te(_0x20da03);return _0x3f4e3f['set']({'label':m(_0x20da03,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x3f4e3f['bind']('isEnabled')['to'](_0x1f8980['commands']['get']('restoreRevision')),this['listenTo'](_0x3f4e3f,'execute',()=>_0x1f8980['execute']('restoreRevision')),_0x3f4e3f;}),_0x1f8980['ui']['componentFactory']['add']('changesNavigation',_0x1c0827=>{const _0x36556a=new oi(_0x1c0827),_0x157f2b=_0x1f8980['commands']['get']('showPreviousChange'),_0x686410=_0x1f8980['commands']['get']('showNextChange');return _0x36556a['bind']('isBackwardNavigationEnabled')['to'](_0x157f2b,'isEnabled'),_0x36556a['bind']('isForwardNavigationEnabled')['to'](_0x686410,'isEnabled'),_0x36556a['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x3edf3a),this['listenTo'](_0x36556a,'execute',(_0x59451d,_0x44576b)=>{_0x1f8980['execute']('forward'===_0x44576b?'showNextChange':'showPreviousChange');}),_0x36556a;}),_0xc947e9['show'](),_0x3edf3a['on']('change:isReady',(_0xbb5ebf,_0xfbdddb,_0x421e70)=>{_0x421e70?_0xc947e9['hide']():_0xc947e9['show']();});}}class at extends _0x18b4c1{['_resizeObserver']=null;constructor(_0x104e03,_0x10a88c){super(_0x104e03,_0x10a88c);const _0x34b332=this['bindTemplate'];this['set']({'label':m(_0x104e03,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x104e03,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x34b332['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 _0x4674ae=this['fieldView']['element'];this['_tooltipString']=_0x4674ae['scrollWidth']>_0x4674ae['clientWidth']&&_0x4674ae['value']||'';}}class hi extends ts{constructor(_0x32c9a3,_0x49cef8,_0x56e715){super(_0x32c9a3);const _0x579a6c=new _0x464554();_0x579a6c['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 _0x857ebb=['ck','ck-revision-history-sidebar__revision-author'];_0x56e715&&_0x857ebb['push']('ck-revision-history-sidebar__revision-author_creator');const _0x4a663a=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x32c9a3,_0x56e715?'Revision\x20creator':'Revision\x20author')},'children':[_0x579a6c,_0x49cef8['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x857ebb},'children':_0x4a663a});}}function _i(_0x8b1549,_0x5b9d20){const _0x5d517b=_0x8b1549['bindTemplate'],_0x4e7e21=_0x8b1549['locale'],_0x213586=_0x38bdb0(_0x4e7e21);_0x213586['panelPosition']='sw';const _0x4d91fe=function(_0xfbf794,_0x2c403a){const _0x2435f9=function(_0x241ea2,_0x32377d){const _0x2430ae=_0x241ea2['locale'],_0x5686ad={'Compare\x20against\x20selected':m(_0x2430ae,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x2430ae,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x2430ae,'Restore\x20this\x20revision')};return _0x32377d['map'](_0x38885c=>{const _0x36468f=_0x5686ad[_0x38885c['name']];return _0x36468f&&_0x36468f!==_0x38885c['name']&&(_0x38885c['name']=_0x36468f),_0x38885c;});}(_0xfbf794,_0x2c403a),_0x156dd9=new _0x3cff01();for(const _0xb4553c of _0x2435f9){const _0x91531e={'type':'button','model':new _0xed12c({'label':_0xb4553c['name'],'class':_0xb4553c['class'],'withText':!0x0,'role':'menuitem','_action':_0xb4553c['action']})};_0x91531e['model']['bind']('isEnabled')['to'](_0xfbf794,'isActionsDropdownOpen',_0x27a167=>'function'!=typeof _0xb4553c['isEnabled']||(!_0x27a167||_0xb4553c['isEnabled'](_0xfbf794))),_0x156dd9['add'](_0x91531e);}return _0x156dd9;}(_0x8b1549,_0x5b9d20);return _0x8b1549['bind']('isActionsDropdownOpen')['to'](_0x213586,'isOpen'),_0x213586['buttonView']['set']({'label':m(_0x4e7e21,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x2eec88['threeVerticalDots']}),_0x213586['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x5d517b['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x5d517b['to'](_0x1ad069=>_0x1ad069['stopPropagation']())}}),_0x213586['on']('execute',_0x3d44cd=>{_0x8b1549['isReady']&&'function'==typeof _0x3d44cd['source']['_action']&&_0x3d44cd['source']['_action'](_0x8b1549);}),to(_0x213586,_0x4d91fe,{'role':'menu'}),_0x213586['listenTo'](_0x8b1549,'change:isActionsDropdownOpen',(_0x10b74a,_0xcc2cd8,_0x1c85fa)=>{if(_0x1c85fa)for(const _0x498363 of _0x213586['listView']['items']){const _0x6da7a7=_0x498363['children']['first'],_0x4f3ee1=_0x5b9d20['find'](_0x97f41=>_0x97f41['action']===_0x6da7a7['_action'])['isVisible'];_0x498363['isVisible']=void 0x0===_0x4f3ee1||_0x4f3ee1(_0x8b1549);}}),_0x213586;}class si extends/* #__PURE__ -- @preserve */
26
+ _0x3f4a5f(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x1ca19e,_0x19e9d0,_0x5f3515,_0x146de9){super(_0x1ca19e);const _0x1779f4=this['bindTemplate'],_0x492d39=function(_0x3ef8c0,_0x440476){const _0x46a0a3=Array['from'](_0x440476['authors'])['filter'](_0x2194d2=>_0x2194d2!=_0x440476['creator']);return _0x440476['creator']&&_0x46a0a3['unshift'](_0x440476['creator']),_0x46a0a3['map'](_0x3d8dfe=>new hi(_0x3ef8c0,_0x3d8dfe,_0x3d8dfe==_0x440476['creator']));}(_0x1ca19e,_0x19e9d0);this['id']=_0x19e9d0['id'],this['_revision']=_0x19e9d0,this['_requireRevisionName']=_0x146de9,this['bind']('name','createdAt')['to'](_0x19e9d0),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x5daee0=>{return _0x51f3a5=_0x1ca19e['uiLanguage'],(_0x5991c0=_0x5daee0)['toLocaleDateString'](_0x51f3a5,{'month':'long','day':'numeric'})+',\x20'+_0x5991c0['toLocaleTimeString'](_0x51f3a5,{'hour':'numeric','minute':'numeric'});var _0x51f3a5,_0x5991c0;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x1ca19e,_0x2434bd),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x920dd8=>_0x920dd8||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x257559,_0x8cb6ba)=>_0x257559&&_0x8cb6ba),this['revisionActionsView']=_0x5f3515&&_0x5f3515['length']?_i(this,_0x5f3515):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x1779f4['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x1779f4['if']('isEnabled','ck-disabled',_0x276ff1=>!_0x276ff1),_0x1779f4['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x1779f4['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x1779f4['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':_0x1779f4['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':_0x492d39}]},this['revisionActionsView']],'on':{'click':_0x1779f4['to'](_0x3064f6=>{_0x3064f6['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0xc235bd=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0xc235bd,'change',()=>{this['_requireRevisionName']&&!_0xc235bd['value']||this['fire']('setName',{'id':this['id'],'name':_0xc235bd['value']}),_0xc235bd['value']||(_0xc235bd['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ti(_0x21cce8,_0x5b2eb1){const _0x17a4dc=_0x1a60e0['fromJSDate'](_0x21cce8)['setLocale'](_0x5b2eb1),_0x4112c2=_0x1a60e0['local'](),_0x78aa6a=_0x4112c2['minus']({'days':0x1})['startOf']('day');let _0x436f47,_0x2426ed;return _0x17a4dc['hasSame'](_0x4112c2,'day')?(_0x436f47=_0x17a4dc['startOf']('day')['toJSDate'](),_0x2426ed=_0x17a4dc['toRelativeCalendar']()):_0x17a4dc['hasSame'](_0x78aa6a,'day')?(_0x436f47=_0x78aa6a['toJSDate'](),_0x2426ed=_0x17a4dc['toRelativeCalendar']()):_0x17a4dc['hasSame'](_0x4112c2,'week')?(_0x436f47=_0x17a4dc['startOf']('week')['toJSDate'](),_0x2426ed=_0x17a4dc['weekdayLong']||''):_0x17a4dc['hasSame'](_0x4112c2,'year')?(_0x436f47=_0x17a4dc['startOf']('month')['toJSDate'](),_0x2426ed=_0x17a4dc['monthLong']||''):(_0x436f47=_0x17a4dc['startOf']('year')['toJSDate'](),_0x2426ed=String(_0x17a4dc['year'])),{'startDate':_0x436f47,'localizedPeriodName':_0x2426ed};}class ei extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x223a26,_0x145200,_0x5342f4,_0x447b95){super(_0x223a26);const _0x5c41d3=ti(_0x145200,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x145200,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x5342f4,this['_requireRevisionName']=_0x447b95,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':_0x5c41d3}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0xe00699){const _0x12f32c=new si(this['locale'],_0xe00699,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x12f32c);}['removeRevision'](_0x13afcb){const _0x1b1b53=this['revisionViews']['find'](_0x2b37d5=>_0x2b37d5['id']===_0x13afcb['id']);this['revisionViews']['remove'](_0x1b1b53);}}class cs extends ts{constructor(_0x18d614){super(_0x18d614);const _0x38b93c=new _0x464554();_0x38b93c['content']=_0x2eec88['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x38b93c,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x18d614,'Revision\x20history')]}]});}}class ii extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2cb88f,_0x522280,_0x406d6c,_0x563c94){super(_0x2cb88f);const _0x1bb067=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x522280,this['_revisionActions']=_0x406d6c,this['_requireRevisionName']=_0x563c94,this['on']('select',(_0x10f8ee,_0x3de740)=>{this['fire']('revisionSelected',_0x3de740);}),this['on']('setName',(_0x492787,_0x4ec4fe)=>{this['fire']('revisionSetName',_0x4ec4fe);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new cs(_0x2cb88f),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x1bb067['if']('isEnabled','ck-disabled',_0x1c670c=>!_0x1c670c)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x2e3b3e of this['_revisions'])this['_addRevision'](_0x2e3b3e);this['_revisions']['on']('add',(_0x2b09f9,_0x451bc4)=>{this['_addRevision'](_0x451bc4);}),this['_revisions']['on']('remove',(_0x288491,_0x5c2efe)=>{this['_removeRevision'](_0x5c2efe);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x33aac1=>_0x33aac1['revisionViews']['map'](_0x2ccfb5=>_0x2ccfb5))['flat']();}['selectRevision'](_0x5b2b04){for(const _0x2efd64 of this['revisionViews'])_0x5b2b04&&_0x5b2b04['id']===_0x2efd64['id']?_0x2efd64['select']():_0x2efd64['deselect']();}['highlightRevisions'](_0xbde4d6){for(const _0x2eb299 of this['revisionViews'])_0xbde4d6['some'](({id:_0x372012})=>_0x372012===_0x2eb299['id'])?_0x2eb299['highlight']():_0x2eb299['unhighlight']();}['_addRevision'](_0x51fe83){const _0x565321=ti(_0x51fe83['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x5f5cf1=this['timePeriodViews']['get'](0x0);_0x5f5cf1&&_0x5f5cf1['startDate']['getTime']()===_0x565321['getTime']()||(_0x5f5cf1=new ei(this['locale'],_0x565321,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x5f5cf1)),_0x5f5cf1['addRevision'](_0x51fe83);}['_removeRevision'](_0x34974b){const _0x1d0966=ti(_0x34974b['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x1d0966)['removeRevision'](_0x34974b);}['_getTimePeriodViewByStartDate'](_0x45f525){return this['timePeriodViews']['find'](_0xa829ed=>_0xa829ed['startDate']['getTime']()===_0x45f525['getTime']());}}class w extends _0xdedc45{['_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(_0x5a84ae){super(_0x5a84ae),this['_revisionViewer']=_0x5a84ae['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x33ba3c=this['_revisionsRepository']['_revisions'],_0x49a0e7=this['_createRevisionActions'](),_0x48b1ef=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0x33ba3c,_0x49a0e7,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',(_0x5cd9a0,_0x1e9d6f)=>{_0x1e9d6f['revisionViews']['on']('add',(_0x19cc7a,_0x316a1a)=>{_0x316a1a['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)),_0x48b1ef['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x143be6=this['_revisionsRepository']['getRevision'](0x0);if(_0x143be6){const _0x3b4b2=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x143be6['id']);this['_revisionViewer']['compare'](_0x143be6,_0x3b4b2);}}['_handleRevisionSelected'](_0xd9761a,_0x51a088){const _0x5107cb=this['_revisionsRepository']['getRevision'](_0x51a088['id']),_0x465f30=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x5107cb['id']);this['_revisionViewer']['compare'](_0x5107cb,_0x465f30);}['_handleRevisionSetName'](_0x18f357,_0x2e8527){this['_revisionsRepository']['getRevision'](_0x2e8527['id'])['setName'](_0x2e8527['name']);}['_handleDiffChange'](_0xbfb9b5,_0x12af2c,_0x123534){const _0x413f8f=this['_revisionsRepository']['getRevisionsInDiff'](_0x123534);_0x413f8f['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x413f8f),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x413f8f[0x0]));}['_createRevisionActions'](){const _0x26118f=this['editor'],_0x5ca806=w['availableRevisionActions'],_0x519d31=_0x26118f['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x519d31['length'])return _0x519d31['map'](_0x232a84=>{const _0x54cb91='string'==typeof _0x232a84?Object['assign']({},_0x5ca806[_0x232a84]):_0x232a84;return _0x54cb91['action']=_0x54cb91['action']['bind'](this,_0x26118f),_0x54cb91['isVisible']&&(_0x54cb91['isVisible']=_0x54cb91['isVisible']['bind'](this,_0x26118f)),_0x54cb91;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x402194},_0x4eeb2a)=>{const _0x15b38f=_0x402194['get'](d),_0x5e33c3=_0x15b38f['repository'];let _0x2e9be3=_0x15b38f['diff']['newRevisionId'],_0x243993=_0x4eeb2a['id'];_0x5e33c3['getIndex'](_0x2e9be3)>_0x5e33c3['getIndex'](_0x243993)&&([_0x2e9be3,_0x243993]=[_0x243993,_0x2e9be3]),_0x15b38f['compare'](_0x2e9be3,_0x243993);},'isVisible':({plugins:_0x3f1aba},_0x241f41)=>{const _0x252f23=_0x3f1aba['get'](d);return!(_0x252f23['repository']['getRevisionsInDiff'](_0x252f23['diff'])['length']>0x2)&&!_0x241f41['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x3845ab,{id:_0xd69fab})=>{_0x3845ab['config']['get']('revisionHistory')['restoreRevisionCallback'](_0xd69fab);},'isVisible':({plugins:_0x57af76},_0x18fac3)=>!!_0x57af76['get'](d)['repository']['getLaterVisibleRevision'](_0x18fac3['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x29dee6},{id:_0x1bfa4f,revisionNameView:_0x6930e6})=>{const _0x1fb1c6=_0x29dee6['get'](d),_0x5aad09=_0x1fb1c6['repository']['getEarlierVisibleRevision'](_0x1bfa4f);_0x1fb1c6['compare'](_0x1bfa4f,_0x5aad09),_0x6930e6['focus'](),_0x6930e6['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x2a3b36,_0x35dee9){super(_0x2a3b36),this['_view']=_0x35dee9,this['_toolbarConfig']=ot(_0x2a3b36['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x478ef3){const _0x4b7937=this['editor'],_0x584a78=this['view'],_0x3a4ad9=_0x4b7937['editing']['view'],_0xc4bdcc=_0x584a78['editable'],_0x39623a=_0x3a4ad9['document']['getRoot']();_0xc4bdcc['name']=_0x39623a['rootName'],_0x584a78['render']();const _0x38cf24=_0xc4bdcc['element'];this['setEditableElement'](_0xc4bdcc['name'],_0x38cf24),_0x584a78['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x3a4ad9['attachDomRoot'](_0x38cf24),this['_elementReplacer']['replace'](_0x478ef3,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x858f6=this['view'],_0x51c7f2=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x51c7f2['detachDomRoot'](_0x858f6['editable']['name']),_0x858f6['destroy']();}['_initToolbar'](){const _0x43b1d8=this['view'];_0x43b1d8['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x43b1d8['stickyPanel']['limiterElement']=_0x43b1d8['element'],_0x43b1d8['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x5397c4})=>_0x5397c4),_0x43b1d8['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x43b1d8['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x296144,_0x5063fd,_0x431ae9={}){super(_0x296144),this['stickyPanel']=new ut(_0x296144),this['toolbar']=new lt(_0x296144,{'shouldGroupWhenFull':_0x431ae9['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x296144,_0x5063fd);}['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(_0x439db1,_0x8ba3c7){super(_0x8ba3c7),this['sourceElement']=_0x439db1,this['model']['document']['createRoot']();const _0x1dcc8b=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x1dcc8b);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x4221a3,_0x29c6f9){const _0x5a5c7a=new this(_0x4221a3,_0x29c6f9);return await _0x5a5c7a['initPlugins'](),await _0x5a5c7a['ui']['init'](_0x4221a3),await _0x5a5c7a['data']['init'](_0x5a5c7a['config']['get']('initialData')||''),_0x5a5c7a['fire']('ready'),_0x5a5c7a;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x378b96{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x18619c){function _0x53ba3d(_0x370e29){return _0x370e29['map'](_0x2b940c=>String['fromCharCode'](_0x2b940c))['join']('');}super(_0x18619c),this['result']='end',_0x18619c[_0x53ba3d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x53ba3d([0x76,0x69,0x65,0x77])][_0x53ba3d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x53ba3d([0x61,0x75,0x74,0x6f]),_0x18619c[_0x53ba3d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x53ba3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x53ba3d([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x53ba3d([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x53ba3d([0x6f,0x6b])});}}class k extends _0x378b96{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x3a7ccf){if(super(_0x3a7ccf),!this['editor']['config']['get']('revisionHistory'))throw new _0x54ef78('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x564e11=>this['_showRevisionViewer']({..._0x564e11,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x53a26b=>this['_closeRevisionViewer'](_0x53a26b)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x2620bb=>this['_restoreRevision'](_0x2620bb)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4e0bdf){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4e0bdf;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x2c2996){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x2c2996);}['getRevision'](_0xe33cf4){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0xe33cf4);}['getRevisions'](_0x2b29e2){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2b29e2||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x284e3a=this['editor'],_0x4dbdb5=_0x36cb9f(_0x284e3a,p),_0x380209=_0x284e3a['plugins']['get']('RevisionTracker'),_0x10ea5e=_0x284e3a['plugins']['get']('Users')['users'];return _0x4dbdb5['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4dbdb5['lazyRoots'],(_0x4dbdb5['plugins']['push'](Rt,d,g,class extends _0x378b96{static get['requires'](){return[d,'Users'];}['init'](){const _0x19e16b=this['editor']['plugins']['get']('Users');for(const _0x2665ca of _0x10ea5e)_0x2665ca['isAnonymous']||_0x19e16b['getUser'](_0x2665ca['id'])||_0x19e16b['addUser'](_0x2665ca);const _0x4caba0=_0x380209['repository']['getRevisions']();let _0x6ca370=null;const _0x1a255c=this['editor']['plugins']['get']('RevisionViewer');_0x1a255c['adapter']=_0x380209['adapter'],_0x1a255c['bind']('isEnabled')['to'](_0x380209),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x284e3a,'isReadOnly',_0x21fa98=>!_0x21fa98);for(const _0xe87feb of _0x4caba0){const _0x18fb57=null===_0xe87feb['creator'];if(_0x18fb57&&_0xe87feb['toVersion']===_0xe87feb['fromVersion'])continue;const _0x2589df=_0xe87feb['toJSON']();_0x1a255c['addRevisionData'](_0x2589df,(_0x4d1d94,_0x409d7a,_0x267681)=>{if(_0x18fb57){if(_0x6ca370)_0x6ca370['_update'](_0x4d1d94,_0x409d7a);else{if(!_0x409d7a){const _0x51135a=_0x267681['toJSON']();_0x51135a['id']=_0x4db448(),_0x380209['saveRevision'](_0x51135a,_0x267681['toVersion'])['then'](_0x3dff31=>{_0x6ca370=_0x3dff31;});}}}else _0xe87feb['_update'](_0x4d1d94,_0x409d7a);});}}},w),_0x4dbdb5);}['_enhanceShowRevisionViewerCallback'](){const _0x342acd=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x2ab9f0=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x546c6c=this['editor']['plugins']['get']('Autosave');await _0x546c6c['save']();}else await _0x2ab9f0['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x2514c4=this['editor']['plugins']['get']('Dialog');_0x2514c4['isOpen']&&_0x2514c4['hide']();}const _0x3c6340=this['_getRevisionViewerEditorConfig']();return _0x342acd(_0x3c6340)['then'](_0x9dbeac=>{return(this['_viewerEditor']=_0x9dbeac,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x9dbeac;})['catch'](_0x2719e0=>(console['error'](_0x2719e0),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x442f7=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'](),_0x442f7(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x7b669a=this['editor']['plugins']['get']('Annotations');_0x7b669a['refreshVisibility'](),_0x7b669a['refreshPositioning']();}})));}['_showRevisionViewer'](_0xcfe497){const _0x3c8478=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x3a748a=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x47a630=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x47a630,_0xcfe497)['then'](_0x3c05ab=>(_0x3a748a['style']['display']='block',_0x3c8478['style']['display']='none',_0x3c05ab));}['_closeRevisionViewer'](_0x31a3df){const _0x23924c=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x23924c['style']['display']='',_0x31a3df['destroy']();}async['_restoreRevision'](_0x1bfa5c){const _0x565751=this['editor'],_0x20e3da=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x1e0460=_0x565751['plugins']['get']('RevisionTracker'),_0x228846=_0x20e3da['repository']['getRevision'](_0x1bfa5c);let _0x3e5269,_0x50527f,_0x850636;try{_0x3e5269=await _0x20e3da['getRevisionData'](_0x228846),_0x50527f=await _0x20e3da['getRevisionRootsAttributes'](_0x228846);}catch(_0x15a895){return void console['error'](_0x15a895);}_0x565751['model']['change'](_0x55676d=>{for(const _0x13d6ff of Array['from'](_0x565751['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x55676d['removeMarker'](_0x13d6ff);}),_0x20e3da['isReady']=!0x1,_0x565751['model']['enqueueChange'](_0x1dcf88=>{_0x1dcf88['setSelection'](null),_0x1dcf88['removeSelectionAttribute'](_0x565751['model']['document']['selection']['getAttributeKeys']());const _0x5d2941=Object['keys'](_0x3e5269);for(const _0x522283 of _0x565751['model']['document']['roots'])'$graveyard'!=_0x522283['rootName']&&_0x522283['isAttached']()&&!_0x5d2941['includes'](_0x522283['rootName'])&&_0x1dcf88['detachRoot'](_0x522283);for(const _0x14b385 of _0x5d2941){let _0x3d270f=_0x565751['model']['document']['getRoot'](_0x14b385);_0x3d270f&&_0x3d270f['isAttached']()||(_0x3d270f=_0x1dcf88['addRoot'](_0x14b385));const _0x10f669=_0x50527f[_0x14b385],_0x2f5aee=Object['keys'](_0x10f669),_0x536883=_0x3e5269[_0x14b385];for(const _0x1c150d of _0x3d270f['getAttributeKeys']())_0x2f5aee['includes'](_0x1c150d)||_0x1dcf88['removeAttribute'](_0x1c150d,_0x3d270f);for(const _0x163947 of _0x2f5aee)_0x1dcf88['setAttribute'](_0x163947,_0x50527f[_0x14b385][_0x163947],_0x3d270f);_0x1dcf88['remove'](_0x1dcf88['createRangeIn'](_0x3d270f)),_0x1dcf88['insert'](_0x565751['data']['parse'](_0x536883,_0x3d270f),_0x3d270f,0x0);}});const _0x3f60af=m(_0x565751['locale'],'Restored');if(_0x228846['name'])_0x850636=-0x1==_0x228846['name']['indexOf'](_0x3f60af)?_0x3f60af+':\x20'+_0x228846['name']:_0x228846['name'];else _0x850636=_0x3f60af+':\x20'+(_0x228846['createdAt']['toLocaleDateString'](_0x565751['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x228846['createdAt']['toLocaleTimeString'](_0x565751['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x1e0460['saveRevision']({'name':_0x850636}),_0x20e3da['isReady']=!0x0,_0x565751['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
28
+ yt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x5b131d){super(_0x5b131d),this['_revisionViewer']=_0x5b131d['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x22c283=this['_revisionsRepository']['_revisions'],_0x248a34=this['_createRevisionActions'](),_0x496c4e=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ii(this['editor']['locale'],_0x22c283,_0x248a34,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',(_0x37f335,_0x3f7605)=>{_0x3f7605['revisionViews']['on']('add',(_0x38aaf8,_0x22a891)=>{_0x22a891['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)),_0x496c4e['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x270966=this['_revisionsRepository']['getRevision'](0x0);if(_0x270966){const _0x36e0b2=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x270966['id']);this['_revisionViewer']['compare'](_0x270966,_0x36e0b2);}}['_handleRevisionSelected'](_0x10df73,_0x5da40b){const _0x145a43=this['_revisionsRepository']['getRevision'](_0x5da40b['id']),_0x183b48=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x145a43['id']);this['_revisionViewer']['compare'](_0x145a43,_0x183b48);}['_handleRevisionSetName'](_0x4b6819,_0x5c1eb3){this['_revisionsRepository']['getRevision'](_0x5c1eb3['id'])['setName'](_0x5c1eb3['name']);}['_handleDiffChange'](_0xd5f83f,_0x415a25,_0x54adba){const _0x14041e=this['_revisionsRepository']['getRevisionsInDiff'](_0x54adba);_0x14041e['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x14041e),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x14041e[0x0]));}['_createRevisionActions'](){const _0xdbdb75=this['editor'],_0x366ef2=w['availableRevisionActions'],_0x57b504=_0xdbdb75['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x57b504['length'])return _0x57b504['map'](_0x2e9e84=>{const _0xe19a06='string'==typeof _0x2e9e84?Object['assign']({},_0x366ef2[_0x2e9e84]):_0x2e9e84;return _0xe19a06['action']=_0xe19a06['action']['bind'](this,_0xdbdb75),_0xe19a06['isVisible']&&(_0xe19a06['isVisible']=_0xe19a06['isVisible']['bind'](this,_0xdbdb75)),_0xe19a06;});}}function yt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x1152d7},_0x80b0e0)=>{const _0xc97c33=_0x1152d7['get'](d),_0x5af9c6=_0xc97c33['repository'];let _0x543d88=_0xc97c33['diff']['newRevisionId'],_0x3a7600=_0x80b0e0['id'];_0x5af9c6['getIndex'](_0x543d88)>_0x5af9c6['getIndex'](_0x3a7600)&&([_0x543d88,_0x3a7600]=[_0x3a7600,_0x543d88]),_0xc97c33['compare'](_0x543d88,_0x3a7600);},'isVisible':({plugins:_0x3e9c75},_0x1ae1ea)=>{const _0x336df5=_0x3e9c75['get'](d);return!(_0x336df5['repository']['getRevisionsInDiff'](_0x336df5['diff'])['length']>0x2)&&!_0x1ae1ea['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x2da1fd,{id:_0x3b91b})=>{_0x2da1fd['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3b91b);},'isVisible':({plugins:_0x959dc8},_0x1bbdc5)=>!!_0x959dc8['get'](d)['repository']['getLaterVisibleRevision'](_0x1bbdc5['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x4ea2f7},{id:_0x27f71c,revisionNameView:_0x3d3043})=>{const _0x46a33b=_0x4ea2f7['get'](d),_0x150d97=_0x46a33b['repository']['getEarlierVisibleRevision'](_0x27f71c);_0x46a33b['compare'](_0x27f71c,_0x150d97),_0x3d3043['focus'](),_0x3d3043['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x2468f6,_0x4c1cb){super(_0x2468f6),this['_view']=_0x4c1cb,this['_toolbarConfig']=ot(_0x2468f6['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x44b828){const _0x49a578=this['editor'],_0x2913e0=this['view'],_0x57bdc2=_0x49a578['editing']['view'],_0x104708=_0x2913e0['editable'],_0x136af9=_0x57bdc2['document']['getRoot']();_0x104708['name']=_0x136af9['rootName'],_0x2913e0['render']();const _0x1b9e00=_0x104708['element'];this['setEditableElement'](_0x104708['name'],_0x1b9e00),_0x2913e0['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x57bdc2['attachDomRoot'](_0x1b9e00),this['_elementReplacer']['replace'](_0x44b828,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0xc88f63=this['view'],_0x154879=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x154879['detachDomRoot'](_0xc88f63['editable']['name']),_0xc88f63['destroy']();}['_initToolbar'](){const _0x523e7d=this['view'];_0x523e7d['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x523e7d['stickyPanel']['limiterElement']=_0x523e7d['element'],_0x523e7d['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x19d8e5})=>_0x19d8e5),_0x523e7d['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x523e7d['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x5ac7f7,_0x3a2759,_0x4b237d={}){super(_0x5ac7f7),this['stickyPanel']=new ut(_0x5ac7f7),this['toolbar']=new lt(_0x5ac7f7,{'shouldGroupWhenFull':_0x4b237d['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x5ac7f7,_0x3a2759);}['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(_0x6ea809,_0x44b962){super(_0x44b962),this['sourceElement']=_0x6ea809,this['model']['document']['createRoot']();const _0x3e46c5=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x3e46c5);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x532287,_0x4425e7){const _0x5c6cef=new this(_0x532287,_0x4425e7);return await _0x5c6cef['initPlugins'](),await _0x5c6cef['ui']['init'](_0x532287),await _0x5c6cef['data']['init'](_0x5c6cef['config']['get']('initialData')||''),_0x5c6cef['fire']('ready'),_0x5c6cef;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class bt extends _0xdedc45{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4ce7b7){function _0x59f1e0(_0x51ec69){return _0x51ec69['map'](_0x5111ed=>String['fromCharCode'](_0x5111ed))['join']('');}super(_0x4ce7b7),this['result']='end',_0x4ce7b7[_0x59f1e0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59f1e0([0x76,0x69,0x65,0x77])][_0x59f1e0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x59f1e0([0x61,0x75,0x74,0x6f]),_0x4ce7b7[_0x59f1e0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x59f1e0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x59f1e0([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x59f1e0([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x59f1e0([0x6f,0x6b])});}}class k extends _0xdedc45{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x3f9814){if(super(_0x3f9814),!this['editor']['config']['get']('revisionHistory'))throw new _0x51f784('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x3472a1=>this['_showRevisionViewer']({..._0x3472a1,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x40c724=>this['_closeRevisionViewer'](_0x40c724)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x37e799=>this['_restoreRevision'](_0x37e799)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x2cc8ba){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x2cc8ba;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x2498fc){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x2498fc);}['getRevision'](_0x298913){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x298913);}['getRevisions'](_0x738ce5){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x738ce5||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x65dd05=this['editor'],_0x403017=_0x164cdf(_0x65dd05,p),_0x162a32=_0x65dd05['plugins']['get']('RevisionTracker'),_0x52ae8a=_0x65dd05['plugins']['get']('Users')['users'];return _0x403017['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x403017['lazyRoots'],(_0x403017['plugins']['push'](bt,d,g,class extends _0xdedc45{static get['requires'](){return[d,'Users'];}['init'](){const _0x4687e9=this['editor']['plugins']['get']('Users');for(const _0x3bbaaf of _0x52ae8a)_0x3bbaaf['isAnonymous']||_0x4687e9['getUser'](_0x3bbaaf['id'])||_0x4687e9['addUser'](_0x3bbaaf);const _0x32aea6=_0x162a32['repository']['getRevisions']();let _0x228026=null;const _0x48b9e6=this['editor']['plugins']['get']('RevisionViewer');_0x48b9e6['adapter']=_0x162a32['adapter'],_0x48b9e6['bind']('isEnabled')['to'](_0x162a32),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x65dd05,'isReadOnly',_0x42dc15=>!_0x42dc15);for(const _0x44947b of _0x32aea6){const _0x3a1e68=null===_0x44947b['creator'];if(_0x3a1e68&&_0x44947b['toVersion']===_0x44947b['fromVersion'])continue;const _0x5d3d53=_0x44947b['toJSON']();_0x48b9e6['addRevisionData'](_0x5d3d53,(_0x316ca1,_0x2da7dc,_0x4cb485)=>{if(_0x3a1e68){if(_0x228026)_0x228026['_update'](_0x316ca1,_0x2da7dc);else{if(!_0x2da7dc){const _0x171722=_0x4cb485['toJSON']();_0x171722['id']=_0x286e3c(),_0x162a32['saveRevision'](_0x171722,_0x4cb485['toVersion'])['then'](_0x5dbf7a=>{_0x228026=_0x5dbf7a;});}}}else _0x44947b['_update'](_0x316ca1,_0x2da7dc);});}}},w),_0x403017);}['_enhanceShowRevisionViewerCallback'](){const _0x35cfa6=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x4dc322=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x574b2c=this['editor']['plugins']['get']('Autosave');await _0x574b2c['save']();}else await _0x4dc322['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x5a133a=this['editor']['plugins']['get']('Dialog');_0x5a133a['isOpen']&&_0x5a133a['hide']();}const _0x461639=this['_getRevisionViewerEditorConfig']();return _0x35cfa6(_0x461639)['then'](_0x26b897=>{return(this['_viewerEditor']=_0x26b897,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x26b897;})['catch'](_0x3b1095=>(console['error'](_0x3b1095),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2e9bef=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'](),_0x2e9bef(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x22dbee=this['editor']['plugins']['get']('Annotations');_0x22dbee['refreshVisibility'](),_0x22dbee['refreshPositioning']();}})));}['_showRevisionViewer'](_0x5386ca){const _0x158f20=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4d40ec=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x60aad5=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x60aad5,_0x5386ca)['then'](_0x5e56ec=>(_0x4d40ec['style']['display']='block',_0x158f20['style']['display']='none',_0x5e56ec));}['_closeRevisionViewer'](_0x3ce8b3){const _0xb4dc0e=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0xb4dc0e['style']['display']='',_0x3ce8b3['destroy']();}async['_restoreRevision'](_0x4f18c3){const _0x1abfd7=this['editor'],_0x288d9e=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x57d637=_0x1abfd7['plugins']['get']('RevisionTracker'),_0x51c91d=_0x288d9e['repository']['getRevision'](_0x4f18c3);let _0x7ecebf,_0xbd6e90,_0x57bf45;try{_0x7ecebf=await _0x288d9e['getRevisionData'](_0x51c91d),_0xbd6e90=await _0x288d9e['getRevisionRootsAttributes'](_0x51c91d);}catch(_0x3be0ba){return void console['error'](_0x3be0ba);}_0x1abfd7['model']['change'](_0x3f420e=>{for(const _0x1a0145 of Array['from'](_0x1abfd7['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x3f420e['removeMarker'](_0x1a0145);}),_0x288d9e['isReady']=!0x1,_0x1abfd7['model']['enqueueChange'](_0x4607fe=>{_0x4607fe['setSelection'](null),_0x4607fe['removeSelectionAttribute'](_0x1abfd7['model']['document']['selection']['getAttributeKeys']());const _0x15a62a=Object['keys'](_0x7ecebf);for(const _0x349167 of _0x1abfd7['model']['document']['roots'])'$graveyard'!=_0x349167['rootName']&&_0x349167['isAttached']()&&!_0x15a62a['includes'](_0x349167['rootName'])&&_0x4607fe['detachRoot'](_0x349167);for(const _0x5b702b of _0x15a62a){let _0x1e16ae=_0x1abfd7['model']['document']['getRoot'](_0x5b702b);_0x1e16ae&&_0x1e16ae['isAttached']()||(_0x1e16ae=_0x4607fe['addRoot'](_0x5b702b));const _0x538fa4=_0xbd6e90[_0x5b702b],_0x142c94=Object['keys'](_0x538fa4),_0x5c227e=_0x7ecebf[_0x5b702b];for(const _0x3fa26f of _0x1e16ae['getAttributeKeys']())_0x142c94['includes'](_0x3fa26f)||_0x4607fe['removeAttribute'](_0x3fa26f,_0x1e16ae);for(const _0x14ca58 of _0x142c94)_0x4607fe['setAttribute'](_0x14ca58,_0xbd6e90[_0x5b702b][_0x14ca58],_0x1e16ae);_0x4607fe['remove'](_0x4607fe['createRangeIn'](_0x1e16ae)),_0x4607fe['insert'](_0x1abfd7['data']['parse'](_0x5c227e,_0x1e16ae),_0x1e16ae,0x0);}});const _0x2e44a7=m(_0x1abfd7['locale'],'Restored');if(_0x51c91d['name'])_0x57bf45=-0x1==_0x51c91d['name']['indexOf'](_0x2e44a7)?_0x2e44a7+':\x20'+_0x51c91d['name']:_0x51c91d['name'];else _0x57bf45=_0x2e44a7+':\x20'+(_0x51c91d['createdAt']['toLocaleDateString'](_0x1abfd7['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x51c91d['createdAt']['toLocaleTimeString'](_0x1abfd7['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x57d637['saveRevision']({'name':_0x57bf45}),_0x288d9e['isReady']=!0x0,_0x1abfd7['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ge as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};