@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20241227.0 → 0.0.0-nightly-20241229.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,10 +20,10 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ObservableMixin as _0x39b0b1,uid as _0x3892c5,Collection as _0x294022,logWarning as _0x9dddcf,FocusTracker as _0x1ad946,KeystrokeHandler as _0x27cf0d,scrollViewportToShowTarget as _0x4e2d49,ResizeObserver as pt,ElementReplacer as ct,CKEditorError as _0x4e5314}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x1a5db8,set as _0x6a60d,unset as _0x1443c7,isEqual as _0x540e39}from'lodash-es';import{Plugin as _0x487362,PendingActions as _0x2147ac,icons as _0x3ceb60,Command as _0x23716f,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x2195f6,getMarkerDomElement as _0x195412,ConfirmMixin as _0x2a2c34,sanitizeEditorConfig as _0x273a5a}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x3fc8d7,ViewText as _0x335fff,ViewElement as _0x4e0f00,Element as ft,Range as vt,Position as gt,DocumentFragment as wt,ViewContainerElement as _0x547f4b,ViewAttributeElement as _0x4a6172,ViewEmptyElement as _0x5eef00,ViewRawElement as _0x57d1ba,ViewUIElement as _0x2a87f2,Text as _t}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x18c416,injectCssTransitionDisabler as ts,submitHandler as _0x3a0b1a,LabeledFieldView as at,createLabeledInputText as _0x24c1fe,createDropdown as _0x640641,ListView as _0x1187b4,ListItemView as _0x5d1918,ButtonView as _0x58517a,MenuBarMenuView as _0x14f153,MenuBarMenuListView as _0x5635be,MenuBarMenuListItemView as _0x16b3f4,MenuBarMenuListItemButtonView as _0x5956db,ContextualBalloon as _0x4155d1,ToolbarSeparatorView as _0x5744a8,IconView as _0x581f7a,addListToDropdown as _0x319680,ViewModel as to,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x49c1e3}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
- _0x39b0b1(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x4ae483){super(),this['id']=_0x4ae483['id']||_0x3892c5(),this['creator']=_0x4ae483['creator']||null,this['authors']=_0x4ae483['authors']||[],this['diffData']=_0x4ae483['diffData']||null,this['toVersion']=_0x4ae483['toVersion']||0x0,this['fromVersion']=_0x4ae483['fromVersion']||0x0,this['set']('name',_0x4ae483['name']||''),this['set']('createdAt',_0x4ae483['createdAt']||new Date()),this['set']('attributes',_0x4ae483['attributes']||{});}['setName'](_0x53bf16){this['_update']({'name':_0x53bf16});}['setAttribute'](_0x33fe0d,_0x33f9b4){const _0x106258=_0x1a5db8(this['attributes']);_0x6a60d(_0x106258,_0x33fe0d,_0x33f9b4),this['_update']({'attributes':_0x106258});}['removeAttribute'](_0x4570c8){const _0xc7a11f=_0x1a5db8(this['attributes']);_0x1443c7(_0xc7a11f,_0x4570c8),this['_update']({'attributes':_0xc7a11f});}['_update'](_0x6b763f,_0x2d625b=!0x1){let _0x168c3=!0x1;const _0x52cb1b={'id':this['id']},_0x26d616=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x3019f0 of _0x26d616){const _0x530b0a=_0x6b763f[_0x3019f0];void 0x0!==_0x530b0a&&_0x530b0a!==this[_0x3019f0]&&(this[_0x3019f0]=_0x530b0a,_0x52cb1b[_0x3019f0]=_0x530b0a,_0x168c3=!0x0);}_0x168c3&&(_0x52cb1b['authors']&&(_0x52cb1b['authorsIds']=_0x52cb1b['authors']['map'](_0x2c4c67=>_0x2c4c67['id']),delete _0x52cb1b['authors']),this['fire']('_update',_0x52cb1b,_0x2d625b));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x3d00b7=>_0x3d00b7['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x487362{['_revisions'];static get['requires'](){return[_0x2195f6];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x36f43c){super(_0x36f43c),this['_revisions']=new _0x294022();}['afterInit'](){!async function(_0x454e6b){const _0x486514=_0x1d5655([0x55,0x4b,0x75,0x56,0x76,0x6f,0x49,0x5a,0x6e,0x68,0x65,0x6d,0x6b,0x52,0x39,0x78,0x74,0x71,0x32,0x4e,0x57,0x4c,0x46,0x58,0x7a,0x34,0x69,0x54,0x44,0x47,0x42,0x30,0x35,0x38,0x6a,0x67,0x70,0x63,0x61,0x50,0x43,0x66,0x31,0x51,0x4a,0x72,0x48,0x37,0x53,0x6c,0x33,0x4d,0x73,0x4f,0x45,0x59,0x36,0x77,0x62,0x79,0x64,0x41]),_0x7ac941=0xeb829,_0x418071=0x20a954e7,_0x2fbc90=0x20ae0e07^_0x418071,_0x18360a=window[_0x1d5655([0x44,0x61,0x74,0x65])][_0x1d5655([0x6e,0x6f,0x77])](),_0x454ef1=_0x454e6b[_0x1d5655([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4f43a1=new window[(_0x1d5655([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48c37d=>{_0x454ef1[_0x1d5655([0x6f,0x6e,0x63,0x65])](_0x1d5655([0x72,0x65,0x61,0x64,0x79]),_0x48c37d);}),_0x3bfb6f={[_0x1d5655([0x6b,0x74,0x79])]:_0x1d5655([0x45,0x43]),[_0x1d5655([0x75,0x73,0x65])]:_0x1d5655([0x73,0x69,0x67]),[_0x1d5655([0x63,0x72,0x76])]:_0x1d5655([0x50,0x2d,0x32,0x35,0x36]),[_0x1d5655([0x78])]:_0x1d5655([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]),[_0x1d5655([0x79])]:_0x1d5655([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]),[_0x1d5655([0x61,0x6c,0x67])]:_0x1d5655([0x45,0x53,0x32,0x35,0x36])},_0x504300=_0x454ef1[_0x1d5655([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1d5655([0x67,0x65,0x74])](_0x1d5655([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x24270f(){let _0x27fb16,_0x349ce2=null,_0x1c1003=null;try{if(_0x504300==_0x1d5655([0x47,0x50,0x4c]))return _0x1d5655([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x27fb16=_0x5e71c5(),!_0x27fb16)return _0x1d5655([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x27fb16[_0x1d5655([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1c1003=_0x1c0fa4(_0x27fb16[_0x1d5655([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x27fb16[_0x1d5655([0x6a,0x74,0x69])])),await _0x57ff97()?_0x153dce()?_0x3d0f2f()?_0x1d5655([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x207cf4()?(_0x27fb16[_0x1d5655([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1d5655([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x349ce2=_0x43a394(_0x1d5655([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x27fb16[_0x1d5655([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1d5655([0x74,0x72,0x69,0x61,0x6c])&&(_0x349ce2=_0x43a394(_0x1d5655([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x27fb16[_0x1d5655([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1d5655([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x349ce2=_0x43a394(_0x1d5655([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x500962()):_0x1d5655([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1d5655([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1d5655([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x383d8f){return _0x1d5655([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3d0f2f(){const _0x35d480=[_0x1d5655([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1d5655([0x74,0x72,0x69,0x61,0x6c])][_0x1d5655([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27fb16[_0x1d5655([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x18360a/0x3e8:0xe10*_0x2fbc90;return _0x27fb16[_0x1d5655([0x65,0x78,0x70])]<_0x35d480;}function _0x153dce(){const _0x51573a=_0x27fb16[_0x1d5655([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x51573a)return!0x1;if(_0x51573a[_0x1d5655([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d5655([0x2a])))return!0x0;if(_0x51573a[_0x1d5655([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d5655([0x52,0x48])))return!0x0;if(_0x51573a[_0x1d5655([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d5655([0x52,0x52,0x48]))){if(_0x307dbe())return!0x0;if(_0xd3f4b4()||_0x217dda())return!0x0;}return!0x1;}function _0x207cf4(){const _0x415fb3=_0x27fb16[_0x1d5655([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x415fb3||0x0==_0x415fb3[_0x1d5655([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x362231}=new URL(window[_0x1d5655([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x415fb3[_0x1d5655([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x362231))return!0x0;const _0x15d096=_0x362231[_0x1d5655([0x73,0x70,0x6c,0x69,0x74])](_0x1d5655([0x2e]));return _0x415fb3[_0x1d5655([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x35f36f=>_0x35f36f[_0x1d5655([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d5655([0x2a])))[_0x1d5655([0x6d,0x61,0x70])](_0x472678=>_0x472678[_0x1d5655([0x73,0x70,0x6c,0x69,0x74])](_0x1d5655([0x2e])))[_0x1d5655([0x73,0x6f,0x6d,0x65])](_0x4bcafe=>_0x15d096[_0x1d5655([0x65,0x76,0x65,0x72,0x79])]((_0x17061b,_0x44d2be)=>_0x4bcafe[_0x44d2be]===_0x17061b||_0x4bcafe[_0x44d2be]===_0x1d5655([0x2a])));}function _0x500962(){return _0x349ce2&&_0x1c1003?new window[(_0x1d5655([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44f867,_0x5b537d)=>{_0x349ce2[_0x1d5655([0x74,0x68,0x65,0x6e])](_0x44f867,_0x5b537d),_0x1c1003[_0x1d5655([0x74,0x68,0x65,0x6e])](_0x1bf616=>{_0x1bf616!=_0x1d5655([0x56,0x61,0x6c,0x69,0x64])&&_0x44f867(_0x1bf616);},_0x5b537d);}):_0x349ce2||_0x1c1003||_0x1d5655([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1c0fa4(_0x25bfc3,_0x5890f1){return new window[(_0x1d5655([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f7ff3=>{if(_0x87c264())return _0x2f7ff3(_0x1d5655([0x56,0x61,0x6c,0x69,0x64]));_0x216a39(),_0x454ef1[_0x1d5655([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1d5655([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1a2b9e=!0x1;const _0x1d5ff4=_0x3892c5();function _0x12e0e4(_0xaaa4e5){return!!_0xaaa4e5&&(typeof _0xaaa4e5===_0x1d5655([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xaaa4e5===_0x1d5655([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xaaa4e5[_0x1d5655([0x74,0x68,0x65,0x6e])]===_0x1d5655([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xaaa4e5[_0x1d5655([0x63,0x61,0x74,0x63,0x68])]===_0x1d5655([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x45a920(_0x3a7740){_0x39f569(_0x3a7740)[_0x1d5655([0x74,0x68,0x65,0x6e])](_0x1b6d73=>{if(!_0x1b6d73||_0x1b6d73[_0x1d5655([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1d5655([0x6f,0x6b]))return _0x1d5655([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x484a20(_0x4cb177(_0x1d5ff4+_0x5890f1))!=_0x1b6d73[_0x1d5655([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1d5655([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1d5655([0x56,0x61,0x6c,0x69,0x64]);})[_0x1d5655([0x74,0x68,0x65,0x6e])](_0x5634be=>(_0xe4ca1d(),_0x5634be),()=>{const _0x387ca5=_0x1a648c();return null==_0x387ca5?(_0xe4ca1d(),_0x1d5655([0x56,0x61,0x6c,0x69,0x64])):_0x1d5655(_0x18360a-_0x387ca5>(0x4a5d0e7^_0x418071)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1d5655([0x74,0x68,0x65,0x6e])](_0x2f7ff3)[_0x1d5655([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2f7ff3(_0x1d5655([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2275c5=0x209fba67^_0x418071;function _0xe4ca1d(){const _0x3cfa3c=_0x1d5655([0x6c,0x6c,0x63,0x74,0x2d])+_0x484a20(_0x4cb177(_0x25bfc3)),_0x1d601f=_0x1bacd3(_0x484a20(window[_0x1d5655([0x4d,0x61,0x74,0x68])][_0x1d5655([0x63,0x65,0x69,0x6c])](_0x18360a/_0x2275c5)));window[_0x1d5655([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1d5655([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3cfa3c,_0x1d601f);}function _0x1a648c(){const _0xfbe04d=_0x1d5655([0x6c,0x6c,0x63,0x74,0x2d])+_0x484a20(_0x4cb177(_0x25bfc3)),_0x26a215=window[_0x1d5655([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1d5655([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xfbe04d);return _0x26a215?window[_0x1d5655([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1bacd3(_0x26a215),0x10)*_0x2275c5:null;}function _0x39f569(_0x475094){return new window[(_0x1d5655([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x35a27a,_0x944b67)=>{_0x475094[_0x1d5655([0x74,0x68,0x65,0x6e])](_0x35a27a,_0x944b67),window[_0x1d5655([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x944b67,0x20a88027^_0x418071);});}}_0x454ef1[_0x1d5655([0x6f,0x6e])](_0x1d5655([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3f9b0c,_0x30b6fe)=>{if(_0x30b6fe[0x0]!=_0x25bfc3)return _0x2f7ff3(_0x1d5655([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x30b6fe[0x1]={..._0x30b6fe[0x1],[_0x1d5655([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1d5ff4};},{[_0x1d5655([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1d5655([0x68,0x69,0x67,0x68])}),_0x454ef1[_0x1d5655([0x6f,0x6e])](_0x1d5655([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5d01f4=>{_0x12e0e4(_0x5d01f4[_0x1d5655([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1a2b9e=!0x0,_0x45a920(_0x5d01f4[_0x1d5655([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1d5655([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1d5655([0x6c,0x6f,0x77])}),_0x4f43a1[_0x1d5655([0x74,0x68,0x65,0x6e])](()=>{_0x1a2b9e||_0x2f7ff3(_0x1d5655([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x87c264(){return _0x454ef1[_0x1d5655([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d5655([0x76,0x69,0x65,0x77])][_0x1d5655([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1d5655([0x61,0x75,0x74,0x6f]);}function _0x216a39(){_0x454ef1[_0x1d5655([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d5655([0x76,0x69,0x65,0x77])][_0x1d5655([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1d5655([0x61,0x75,0x74,0x6f]);}}function _0x43a394(_0x4eba4e){const _0x2b445d=[new window[(_0x1d5655([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2857f9=>setTimeout(_0x2857f9,0x20a06a2b^_0x418071)),_0x4f43a1[_0x1d5655([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1d5655([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42f0f8=>{const _0x20ca6c=0x20a954e0^_0x418071,_0x372dbe=_0x454e6b[_0x1d5655([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x2ea3a2(){_0x372dbe[_0x1d5655([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x20ca6c&&_0x42f0f8();}_0x2ea3a2(),_0x372dbe[_0x1d5655([0x6f,0x6e])](_0x1d5655([0x61,0x64,0x64]),_0x2ea3a2);})),new window[(_0x1d5655([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f783c=>{function _0x133a40(){for(const _0x28a67 in window)if(window[_0x1d5655([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x1d5655([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x28a67))&&window[_0x28a67]==_0x7ac941)return _0x4f783c();_0x454ef1[_0x1d5655([0x73,0x74,0x61,0x74,0x65])]!=_0x1d5655([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x1d5655([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x133a40,0x20a9476f^_0x418071);}_0x3e8b0e(_0x1d5655([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x133a40();})];return window[_0x1d5655([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1d5655([0x72,0x61,0x63,0x65])](_0x2b445d)[_0x1d5655([0x74,0x68,0x65,0x6e])](()=>_0x4eba4e);}async function _0x216076(){if(await _0x4f43a1,_0x3e8b0e(_0x1d5655([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x4ac45d=_0x454e6b[_0x1d5655([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x1e0d69=_0x454e6b[_0x1d5655([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])](_0x4ac45d[_0x1d5655([0x69,0x64])]),_0x2f5228=_0x32ded4(_0x1d5655([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x2f5228[_0x1d5655([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x4ac45d['id'],_0x1e0d69?_0x1e0d69['id']:null,!0x0),_0x2f5228[_0x1d5655([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1d5655([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2f5228[_0x1d5655([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2f5228[_0x1d5655([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x2e1f85,void(_0x2f5228[_0x1d5655([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x2e1f85);}if(_0x3e8b0e(_0x1d5655([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0xa4c09d=_0x32ded4(_0x1d5655([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0xa4c09d[_0x1d5655([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1d5655([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0xa4c09d[_0x1d5655([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0xa4c09d[_0x1d5655([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x2e1f85,_0xa4c09d[_0x1d5655([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x2e1f85;}_0x454ef1[_0x1d5655([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d5655([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2e1f85,_0x454ef1[_0x1d5655([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d5655([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2e1f85,_0x454ef1[_0x1d5655([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1d5655([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x307dbe(){return _0x3e8b0e(_0x1d5655([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x32ded4(_0x1d5655([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1d5655([0x73,0x74,0x61,0x74,0x65])]==_0x1d5655([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xd3f4b4(){return _0x3e8b0e(_0x1d5655([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 _0x217dda(){return _0x3e8b0e(_0x1d5655([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x35931f(_0xeb8c3){const _0x23379a=_0xc8e779();_0x454ef1[_0x23379a]=_0x1d5655([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])+_0xeb8c3,_0xeb8c3[_0x1d5655([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x1d5655([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0xc8e779()]=_0x7ac941),_0xeb8c3!=_0x1d5655([0x56,0x61,0x6c,0x69,0x64])&&_0x216076();}function _0xc8e779(){const _0x3e7997=window[_0x1d5655([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1d5655([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1d5655([0x6e,0x6f,0x77])]())[_0x1d5655([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1d5655([0x2e]),'');let _0x880c97=_0x1d5655([0x55]);for(let _0x5287d4=0x0;_0x5287d4<_0x3e7997[_0x1d5655([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5287d4+=0x2){let _0x2fcddf=window[_0x1d5655([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e7997[_0x1d5655([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5287d4,_0x5287d4+0x2));_0x2fcddf>=_0x486514[_0x1d5655([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2fcddf-=_0x486514[_0x1d5655([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x880c97+=_0x486514[_0x2fcddf];}return _0x880c97;}function _0x5e71c5(){const _0x9dc257=_0x504300[_0x1d5655([0x73,0x70,0x6c,0x69,0x74])](_0x1d5655([0x2e]));if(0x3!=_0x9dc257[_0x1d5655([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xac7c60(_0x9dc257[0x1]);function _0xac7c60(_0x11b404){const _0x49ce7b=_0x5e896a(_0x11b404);return _0x49ce7b&&_0x5f44b7()?_0x49ce7b:null;function _0x5f44b7(){const _0x8e182b=_0x49ce7b[_0x1d5655([0x6a,0x74,0x69])],_0x454b3b=window[_0x1d5655([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8e182b[_0x1d5655([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x8e182b[_0x1d5655([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x482fc8={..._0x49ce7b,[_0x1d5655([0x6a,0x74,0x69])]:_0x8e182b[_0x1d5655([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x8e182b[_0x1d5655([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x482fc8[_0x1d5655([0x76,0x63])],_0x4cb177(_0x482fc8)==_0x454b3b;}}}async function _0x57ff97(){let _0x599510=!0x0;try{const _0x3a5dac=_0x504300[_0x1d5655([0x73,0x70,0x6c,0x69,0x74])](_0x1d5655([0x2e])),[_0x58b055,_0x5c9d22,_0x24cd43]=_0x3a5dac;return _0x41016d(_0x58b055),await _0x3cde9b(_0x58b055,_0x5c9d22,_0x24cd43),_0x599510;}catch(_0x1f6ed2){return!0x1;}function _0x41016d(_0x3c5524){const _0x3a4867=_0x5e896a(_0x3c5524);_0x3a4867&&_0x3a4867[_0x1d5655([0x61,0x6c,0x67])]==_0x1d5655([0x45,0x53,0x32,0x35,0x36])||(_0x599510=!0x1);}async function _0x3cde9b(_0x3a0aae,_0x428a8a,_0x3f3452){const _0x1628da=window[_0x1d5655([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1d5655([0x66,0x72,0x6f,0x6d])](_0x2a4237(_0x3f3452),_0x49d562=>_0x49d562[_0x1d5655([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3521c8=new window[(_0x1d5655([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1d5655([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3a0aae+_0x1d5655([0x2e])+_0x428a8a),_0x4ce46f=window[_0x1d5655([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1d5655([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4ce46f)return;const _0x32e6bf=await _0x4ce46f[_0x1d5655([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1d5655([0x6a,0x77,0x6b]),_0x3bfb6f,{[_0x1d5655([0x6e,0x61,0x6d,0x65])]:_0x1d5655([0x45,0x43,0x44,0x53,0x41]),[_0x1d5655([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1d5655([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1d5655([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4ce46f[_0x1d5655([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1d5655([0x6e,0x61,0x6d,0x65])]:_0x1d5655([0x45,0x43,0x44,0x53,0x41]),[_0x1d5655([0x68,0x61,0x73,0x68])]:{[_0x1d5655([0x6e,0x61,0x6d,0x65])]:_0x1d5655([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x32e6bf,_0x1628da,_0x3521c8)||(_0x599510=!0x1);}}function _0x5e896a(_0x32040d){return _0x32040d[_0x1d5655([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1d5655([0x65,0x79]))?JSON[_0x1d5655([0x70,0x61,0x72,0x73,0x65])](_0x2a4237(_0x32040d)):null;}function _0x2a4237(_0x1d2ba0){return window[_0x1d5655([0x61,0x74,0x6f,0x62])](_0x1d2ba0[_0x1d5655([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1d5655([0x2b]))[_0x1d5655([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1d5655([0x2f])));}function _0x4cb177(_0x4fbf64){let _0x582697=0x1505;function _0x5bc1e6(_0x2d36e2){for(let _0x19be97=0x0;_0x19be97<_0x2d36e2[_0x1d5655([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x19be97++){const _0x12c1e7=_0x2d36e2[_0x1d5655([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x19be97);_0x582697=(_0x582697<<0x5)+_0x582697+_0x12c1e7,_0x582697&=_0x582697;}}function _0x3d21c1(_0xa87c60){Array[_0x1d5655([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xa87c60)?_0xa87c60[_0x1d5655([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3d21c1):_0xa87c60&&typeof _0xa87c60==_0x1d5655([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1d5655([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xa87c60)[_0x1d5655([0x73,0x6f,0x72,0x74])]()[_0x1d5655([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2b4d17,_0x46a71b])=>{_0x5bc1e6(_0x2b4d17),_0x3d21c1(_0x46a71b);}):_0x5bc1e6(window[_0x1d5655([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xa87c60));}return _0x3d21c1(_0x4fbf64),_0x582697>>>0x0;}function _0x484a20(_0xd3d700){return _0xd3d700[_0x1d5655([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1d5655([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1d5655([0x30]));}function _0x1bacd3(_0x1ab7b0){return _0x1ab7b0[_0x1d5655([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1d5655([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1d5655([0x6a,0x6f,0x69,0x6e])]('');}function _0x3e8b0e(_0x50724f){return _0x454ef1[_0x1d5655([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1d5655([0x68,0x61,0x73])](_0x50724f);}function _0x32ded4(_0xdf8785){return _0x454ef1[_0x1d5655([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1d5655([0x67,0x65,0x74])](_0xdf8785);}function _0x2e1f85(){}function _0x1d5655(_0x45e6d6){return _0x45e6d6['map'](_0x4d0d42=>String['fromCharCode'](_0x4d0d42))['join']('');}_0x35931f(await _0x24270f());}(this);}['createRevision'](_0x42ce59){const _0x2c669e=this['editor']['plugins']['get']('Users');return new a({'id':_0x42ce59['id'],'name':_0x42ce59['name'],'creator':_0x42ce59['creatorId']?_0x2c669e['getUser'](_0x42ce59['creatorId']):null,'diffData':_0x42ce59['diffData']||_0x42ce59['data'],'authors':_0x42ce59['authorsIds']['map'](_0x3be7c3=>_0x2c669e['getUser'](_0x3be7c3)),'createdAt':new Date(_0x42ce59['createdAt']),'attributes':_0x42ce59['attributes'],'fromVersion':_0x42ce59['fromVersion'],'toVersion':_0x42ce59['toVersion']});}['addRevision'](_0xd50541,_0xdc7dd4=0x0){this['_revisions']['add'](_0xd50541,_0xdc7dd4);}['getRevision'](_0x469cb4){return this['_revisions']['get'](_0x469cb4);}['getRevisions'](_0x3c6c12={'toJSON':!0x1}){const _0x23d90a=Array['from'](this['_revisions']);return _0x23d90a['reverse'](),_0x3c6c12['toJSON']?_0x23d90a['map'](_0x1ba5a9=>_0x1ba5a9['toJSON']()):_0x23d90a;}['getIndex'](_0x4fdf9b){return this['_revisions']['getIndex'](_0x4fdf9b);}['getEarlierVisibleRevision'](_0x2d98a5){const [,_0x5594ed]=this['getRevisionsIterator'](_0x2d98a5,{'direction':'earlier'});return _0x5594ed;}['getLaterVisibleRevision'](_0xf09191){const [,_0x343440]=this['getRevisionsIterator'](_0xf09191,{'direction':'later'});return _0x343440;}['getRevisionsInDiff'](_0x14e855){const _0xda5003=[];for(const _0x5aa49a of this['getRevisionsIterator'](_0x14e855['newRevisionId']))if(_0xda5003['push'](_0x5aa49a),_0x5aa49a['id']===_0x14e855['oldRevisionId'])break;return _0xda5003;}*['getRevisionsIterator'](_0x354429,{direction:_0x3b17eb='earlier',filter:_0x2d2c39=()=>!0x0}={}){const _0xe46825='earlier'===_0x3b17eb?0x1:-0x1;let _0x56e14e=this['_revisions']['get'](_0x354429),_0x29a889=this['getIndex'](_0x56e14e);for(yield _0x56e14e;_0x56e14e;){if(_0x29a889+=_0xe46825,_0x56e14e=this['getRevision'](_0x29a889),!_0x56e14e)return;_0x2d2c39(_0x56e14e)&&(yield _0x56e14e);}}}function R(_0x2c5380,_0x866a9c,_0x4e3b59){const t=_0x2c5380['t'];switch(_0x866a9c){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'},_0x4e3b59);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x4e3b59);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const C={'c':_0x547f4b,'a':_0x4a6172,'e':_0x5eef00,'r':_0x57d1ba,'u':_0x2a87f2};class l extends _0x487362{['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[_0x2195f6,j,_0x2147ac];}constructor(_0x3b1e02){super(_0x3b1e02),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x29a10f=_0x3892c5();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x29a10f},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 _0x466948=this['repository']['getRevision'](0x0),_0x557e40=_0x466948&&null===_0x466948['creator']?_0x466948:null;if(this['_continueCurrentRevision']=!!_0x557e40&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x69b1d0=this['_source']['getCurrentRevisionId'](),_0x4c8db4=this['repository']['getRevision'](_0x69b1d0);if(_0x4c8db4)this['_startingVersion']=_0x4c8db4['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0xc26cf2=this['_source']['history']['_operations']['find'](_0x152a01=>!_0x152a01['_isInit']),_0x401ab1=_0xc26cf2?_0xc26cf2['baseVersion']:this['_source']['history']['version'];_0x466948?(_0x466948['toVersion']<_0x401ab1&&_0x466948['_update']({'toVersion':_0x401ab1}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x557e40['id'],this['_startingVersion']=_0x557e40['fromVersion']):(this['_startingVersion']=_0x466948['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x401ab1,this['_continueCurrentRevision']=!0x1);}}else _0x557e40&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x557e40['toVersion'],this['editor']['model']['document']['history']['version']),_0x557e40['fromVersion']===_0x557e40['toVersion']?(0x0!==_0x557e40['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x557e40['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x557e40['id'],this['_startingVersion']=_0x557e40['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',_0x484901=>!_0x484901),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4d3f52=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x36dcf9;for(const _0x164e91 in _0x4d3f52){const _0x5d35c6=_0x164e91,_0x400c2c=_0x4d3f52[_0x5d35c6];if('revisionHistoryLicenseKeyValid'==_0x400c2c||'revisionHistoryLicenseKeyInvalid'==_0x400c2c||'revisionHistoryLicenseKeyExpired'==_0x400c2c||'revisionHistoryLicenseKeyDomainLimit'==_0x400c2c||'revisionHistoryLicenseKeyNotAllowed'==_0x400c2c||'revisionHistoryLicenseKeyEvaluationLimit'==_0x400c2c||'revisionHistoryLicenseKeyTrialLimit'==_0x400c2c||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x400c2c||'revisionHistoryLicenseKeyUsageLimit'==_0x400c2c){delete _0x4d3f52[_0x5d35c6],_0x36dcf9=_0x400c2c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x36dcf9&&_0x4d3f52['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x36dcf9&&_0x4d3f52['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x36dcf9&&_0x4d3f52['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x36dcf9&&_0x4d3f52['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x36dcf9&&_0x4d3f52['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x36dcf9&&_0x4d3f52['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x36dcf9&&_0x4d3f52['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x36dcf9&&_0x4d3f52['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x4c7317=this['repository']['getRevision'](0x0),_0x2164be=await this['getRevisionDocumentData'](_0x4c7317),_0x1ab4a6=await this['getRevisionRootsAttributes'](_0x4c7317);this['_replaceEditorDataWithRevisionData'](_0x2164be,_0x1ab4a6);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x4a327e){this['_source']=_0x4a327e;}async['update'](){const _0x155574=await this['_source']['getLatestVersion']();if(_0x155574>this['currentRevision']['toVersion']){await this['_loadState']();const _0x24a603=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x155574});_0x24a603['authors']=_0x24a603['authorsIds']['map'](_0x335fc3=>this['editor']['plugins']['get']('Users')['getUser'](_0x335fc3)),this['currentRevision']['_update'](_0x24a603);}}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'](_0x59fb4d={},_0x331b7a=null){const _0x4e0c8c=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x331b7a>this['currentRevision']['toVersion']&&(_0x331b7a=null),null===_0x331b7a&&(_0x331b7a=await this['_source']['getLatestVersion']());const _0x5c0764=this['_getFromVersion'](_0x331b7a),_0x1822c2=this['buildRevisionData']({'from':_0x5c0764,'to':_0x331b7a});if(this['currentRevision']['toVersion']<_0x331b7a){const _0x4fb9c0=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x331b7a,'to':_0x331b7a});_0x4fb9c0['authors']=[],_0x4fb9c0['authorsIds']=[],_0x4fb9c0['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x4fb9c0,!0x0),delete _0x4fb9c0['authors'],_0x4e0c8c['push'](_0x4fb9c0);}_0x59fb4d['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x59fb4d['name']=_0x59fb4d['name']||null,_0x59fb4d['id']=_0x59fb4d['id']||_0x3892c5(),_0x59fb4d={..._0x59fb4d,..._0x1822c2};const _0x26ed87=this['addRevisionData'](_0x59fb4d);_0x4e0c8c['push'](_0x59fb4d);const _0x4549a6=this['repository']['getIndex'](_0x26ed87);if(0x0!==_0x4549a6){const _0x2e9fcd=this['repository']['getRevision'](_0x4549a6-0x1);if(_0x2e9fcd['fromVersion']!==_0x331b7a){const _0x153d62=this['_revisionDataBuilder']['getData'](_0x331b7a,_0x2e9fcd['toVersion']),_0x1a609e={'id':_0x2e9fcd['id'],'diffData':_0x153d62['diffData'],'authorsIds':_0x153d62['authorsIds'],'authors':_0x153d62['authorsIds']['map'](_0x201cfb=>this['editor']['plugins']['get']('Users')['getUser'](_0x201cfb)),'fromVersion':_0x331b7a};_0x2e9fcd===this['currentRevision']&&(_0x1a609e['createdAt']=new Date(_0x59fb4d['createdAt']['getTime']()+0xa)),_0x2e9fcd['_update'](_0x1a609e,!0x0),delete _0x1a609e['authors'],_0x4e0c8c['push'](_0x1a609e);}}if(this['adapter']){for(const _0x100088 of _0x4e0c8c)this['_bufferUpdate'](_0x100088['id'],_0x100088,!0x0);this['sendBufferedUpdates']();}return _0x26ed87;}['addRevisionData'](_0x5b69ab){const _0x5d9b0b=this['repository']['createRevision'](_0x5b69ab);return this['adapter']&&_0x5d9b0b['on']('_update',(_0x944fe3,_0x40a7a8,_0x5f1230)=>{_0x5f1230||(this['_bufferUpdate'](_0x40a7a8['id'],_0x40a7a8,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x5d9b0b,this['_findInsertionIndex'](_0x5d9b0b)),_0x5d9b0b;}async['getRevisionDocumentData'](_0x48e51f){await this['_loadRevisionData'](_0x48e51f);const _0x3f6fdc={};for(const _0x5298db in _0x48e51f['diffData']){if(_0x48e51f['diffData'][_0x5298db]['attachChange']&&!_0x48e51f['diffData'][_0x5298db]['attachChange']['isAttached'])continue;const _0x3ad759=this['_removeRevisionMarkers'](JSON['parse'](_0x48e51f['diffData'][_0x5298db]['insertions'])),_0x321c4b=this['editor']['editing']['view']['document'],_0x240966=new _0x3fc8d7(_0x321c4b,_0x3ad759['map'](_0x422881=>V(_0x422881,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x3f6fdc[_0x5298db]=this['editor']['data']['processor']['toData'](_0x240966),this['editor']['data']['processor']['useFillerType']('default');}return _0x3f6fdc;}async['getRevisionRootsAttributes'](_0x3fe213){await this['_loadRevisionData'](_0x3fe213);const _0x51b108={};for(const _0x4fadb3 in _0x3fe213['diffData'])_0x3fe213['diffData'][_0x4fadb3]['attachChange']&&!_0x3fe213['diffData'][_0x4fadb3]['attachChange']['isAttached']||(_0x51b108[_0x4fadb3]=_0x3fe213['diffData'][_0x4fadb3]['attributesAfter']||{});return _0x51b108;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x15c8e1=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x5cbf85=0x0;_0x5cbf85<_0x15c8e1['length'];_0x5cbf85++){const _0x14fd2d=_0x15c8e1[_0x5cbf85];let _0x1ade12=!0x1;for(const _0x1c2881 of Object['keys'](_0x14fd2d))void 0x0===_0x14fd2d[_0x1c2881]?delete _0x14fd2d[_0x1c2881]:'id'!==_0x1c2881&&(_0x1ade12=!0x0);_0x1ade12||(_0x15c8e1[_0x5cbf85]=null);}if(_0x15c8e1=_0x15c8e1['filter'](_0x4479ba=>null!==_0x4479ba),!_0x15c8e1['length'])return;for(let _0x506454=0x0;_0x506454<_0x15c8e1['length'];_0x506454++){const _0x5e8fd8=_0x15c8e1[_0x506454];void 0x0!==_0x5e8fd8['fromVersion']&&void 0x0===_0x5e8fd8['toVersion']&&(_0x5e8fd8['toVersion']=this['repository']['getRevision'](_0x5e8fd8['id'])['toVersion']),void 0x0!==_0x5e8fd8['toVersion']&&void 0x0===_0x5e8fd8['fromVersion']&&(_0x5e8fd8['fromVersion']=this['repository']['getRevision'](_0x5e8fd8['id'])['fromVersion']);}const _0x2a5002=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x15c8e1,_0x2a5002)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x2f5a80=>{if(_0x2f5a80){for(const _0x3f172d of _0x2f5a80)this['setRevisionData']({'id':_0x3f172d['id'],'createdAt':_0x3f172d['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0xbdf93f,_0xc216b5){let _0x274d89=this['editor']['config']['get']('initialData'),_0x3da479=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x274d89){_0x274d89={};for(const _0x7e8bf4 of this['editor']['model']['document']['getRootNames']())_0x274d89[_0x7e8bf4]='';}if('string'==typeof _0x274d89&&(_0x274d89={'main':_0x274d89}),void 0x0===_0x3da479){_0x3da479={};for(const _0x3a5aac of this['editor']['model']['document']['getRootNames']())_0x3da479[_0x3a5aac]={};}let _0x5f59e2=!0x1;const _0x257828=Object['keys'](_0x274d89),_0x416a27=Object['keys'](_0xbdf93f);for(const _0x239ce2 of _0x257828){if(_0x274d89[_0x239ce2]!==_0xbdf93f[_0x239ce2]&&''!==_0x274d89[_0x239ce2]['trim']()){_0x5f59e2=!0x0;break;}if(!_0x540e39(_0x3da479[_0x239ce2],_0xc216b5[_0x239ce2])&&Object['keys'](_0x3da479[_0x239ce2])['length']>0x0){_0x5f59e2=!0x0;break;}}_0x5f59e2||(_0x5f59e2=_0x416a27['some'](_0x243c7e=>!this['editor']['model']['document']['getRoot'](_0x243c7e))),_0x5f59e2&&_0x9dddcf('editor-initial-data-replaced-with-revision-data',{'editorData':_0x274d89,'editorRootsAttributes':_0x3da479,'revisionData':_0xbdf93f,'revisionRootsAttributes':_0xc216b5}),this['editor']['config']['set']('initialData',_0xbdf93f),this['editor']['config']['set']('rootsAttributes',_0xc216b5);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x4fe7d9=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x4fe7d9['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x4991ad){const _0x4d4f81=this['repository']['getRevisions']();_0x4d4f81['reverse']();let _0x5922a0=0x0;for(;_0x5922a0<_0x4d4f81['length'];){const _0x540286=_0x4d4f81[_0x5922a0];if(_0x540286===this['currentRevision']){_0x5922a0++;continue;}if(_0x540286['id']===this['_initialRevisionId'])break;const _0x95e1f0=_0x4991ad['toVersion']-_0x540286['toVersion']||_0x4991ad['fromVersion']-_0x540286['fromVersion'];if(_0x95e1f0>0x0)break;if(_0x95e1f0<0x0)_0x5922a0++;else{if(!_0x4991ad['creator']&&_0x540286['creator'])break;if(_0x540286['creator']||!_0x4991ad['creator']){if(_0x4991ad['createdAt']>_0x540286['createdAt'])break;_0x5922a0++;}else _0x5922a0++;}}return _0x5922a0;}['setRevisionData'](_0xe48aaf){const _0x384d2d=this['repository']['getRevision'](_0xe48aaf['id']);if(_0xe48aaf['createdAt']&&(_0xe48aaf['createdAt']=new Date(_0xe48aaf['createdAt'])),_0xe48aaf['authorsIds']){const _0x46e92a=this['editor']['plugins']['get']('Users');_0xe48aaf['authors']=_0xe48aaf['authorsIds']['map'](_0x2c29f5=>_0x46e92a['getUser'](_0x2c29f5));}_0x384d2d['_update'](_0xe48aaf,!0x0);}['buildRevisionData']({revision:_0x5f3137=null,from:_0x2bd114=null,to:_0x3dc2c8=null}){_0x2bd114=null!==_0x2bd114?_0x2bd114:_0x5f3137['fromVersion'],_0x3dc2c8=null!==_0x3dc2c8?_0x3dc2c8:_0x5f3137['toVersion'];const _0x19965d=this['_revisionDataBuilder']['getData'](_0x2bd114,_0x3dc2c8),_0x1e85c3={'diffData':_0x19965d['diffData'],'authorsIds':_0x19965d['authorsIds'],'fromVersion':_0x2bd114,'toVersion':_0x3dc2c8};if(!_0x5f3137||_0x3dc2c8!==_0x5f3137['toVersion']){const _0x1f95b9=_0x3dc2c8-0x1,_0x2e45da=this['_source']['history']['getOperation'](_0x1f95b9);_0x1e85c3['createdAt']=_0x2e45da&&_0x2e45da['createdAt']||new Date();}if(this['_loadedStateData']&&_0x2bd114===this['_loadedStateData']['fromVersion']){for(const _0x18212f of this['_loadedStateData']['authors'])_0x1e85c3['authorsIds']['includes'](_0x18212f['id'])||_0x1e85c3['authorsIds']['push'](_0x18212f['id']);}return _0x1e85c3;}['_loadRevisionData'](_0x15a704){if(!_0x15a704||_0x15a704['diffData'])return Promise['resolve']();{const _0x3f296e=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x3f296e,'revisionId':_0x15a704['id']})['then'](_0x461081=>{_0x15a704['diffData']=_0x461081['diffData'];});}}['_bufferUpdate'](_0x13835c,_0x287bdb,_0x1ce5b1){if(this['_bufferedUpdates']['has'](_0x13835c)){const _0x5c4e85=this['_bufferedUpdates']['get'](_0x13835c);_0x287bdb=_0x1ce5b1?{..._0x5c4e85,..._0x287bdb}:{..._0x287bdb,..._0x5c4e85};}this['_bufferedUpdates']['set'](_0x13835c,_0x287bdb);}['_getFromVersion'](_0x41ad6d){const _0x47c30f=this['repository']['getRevisions']();_0x47c30f['reverse'](),_0x47c30f['shift']();const _0x5e4f7f=_0x47c30f['find'](_0x251951=>_0x251951['toVersion']<=_0x41ad6d)['toVersion'];return _0x5e4f7f<this['_startingVersion']?this['_startingVersion']:_0x5e4f7f;}['_createInitialRevision'](_0x19d97e){const _0x31d513=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x31d513)this['_initialRevisionId']=_0x31d513['id'];else{const _0x2a4b55=!this['editor']['model']['document']['roots']['find'](_0x5d5a0a=>this['editor']['model']['hasContent'](_0x5d5a0a)),_0x4855c0=this['editor']['plugins']['get']('Users')['me']['id'],_0x2d0bdc=R(this['editor']['locale'],_0x2a4b55?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x19d97e,'to':_0x19d97e,'id':this['_initialRevisionId'],'name':_0x2d0bdc,'creatorId':_0x4855c0});}}['_createCurrentRevision'](_0x5795ad){const _0x57d5a0=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x57d5a0),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x5795ad,'to':_0x5795ad,'id':_0x57d5a0,'name':'','creatorId':null}));}['_makeRevision']({name:_0x349088,from:_0x33e78e,to:_0x303fcc,creatorId:_0x2a8e53,id:_0x37c740}){const _0x44ea2a=this['buildRevisionData']({'from':_0x33e78e,'to':_0x303fcc});_0x44ea2a['name']=_0x349088,_0x44ea2a['creatorId']=_0x2a8e53,_0x44ea2a['id']=_0x37c740;const _0x3fccb1=this['addRevisionData'](_0x44ea2a);return this['adapter']&&this['_bufferUpdate'](_0x44ea2a['id'],_0x44ea2a,!0x0),_0x3fccb1;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x2c69fa){return(_0x2c69fa=_0x2c69fa['filter'](_0x5ba914=>!_0x5ba914['name']||'revision-start'!==_0x5ba914['name']&&'revision-end'!==_0x5ba914['name']))['forEach'](_0x2f56c9=>{'string'!=typeof _0x2f56c9&&(_0x2f56c9['children']=this['_removeRevisionMarkers'](_0x2f56c9['children']),_0x2f56c9['attributes']=_0x2f56c9['attributes']['filter'](_0xcca5ce=>!_0xcca5ce[0x0]['startsWith']('data-revision-')));}),_0x2c69fa;}}function V(_0x382b13,_0x13e429){const _0x52d218=_0x13e429['editing']['view']['document'];if('string'==typeof _0x382b13)return new _0x335fff(_0x52d218,_0x382b13);{const _0x4ee5b9=_0x382b13['children']['map'](_0x964ff7=>V(_0x964ff7,_0x13e429));return new(C[_0x382b13['type']]||_0x4e0f00)(_0x52d218,_0x382b13['name'],_0x382b13['attributes'],_0x4ee5b9);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x1a46e1){this['editor']=_0x1a46e1,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'](_0x330639){this['source']=_0x330639;const _0x3f5f2d=new Map(),_0x5eff15=new Map(),_0x226f2e=this['editor']['model']['document']['roots']['map'](_0x2260f2=>_0x2260f2['rootName']);for(const _0x1819f8 of _0x226f2e){const _0x566088=this['editor']['model']['document']['getRoot'](_0x1819f8),_0x420ad5=F(_0x566088);_0x3f5f2d['set'](_0x1819f8,_0x420ad5),_0x5eff15['set'](_0x1819f8,Object['fromEntries'](_0x566088['getAttributes']()));}const _0x19288e=Array['from'](this['editor']['model']['markers'])['map'](_0x13cb54=>[_0x13cb54['name'],_0x13cb54['getRange']()]),_0x4b11a3=this['source']['version'];this['_saveMetaData'](_0x4b11a3,_0x3f5f2d,_0x19288e,_0x5eff15),this['_startingRevisionId']=this['_revisionId'];const _0xaac79c=new Map(),_0x3a1cbb=new Map();for(const _0x2c92d5 of _0x226f2e){const _0x8231bd=B(_0x2c92d5);_0xaac79c['set'](_0x2c92d5,_0x8231bd),_0x3a1cbb['set'](_0x2c92d5,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0xaac79c,[],_0x3a1cbb);}['getData'](_0x673c80,_0x3e6351){if(this['_lastFrom']===_0x673c80&&this['_lastTo']<=_0x3e6351)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x3e6351,!0x0);else{if(!this['_savedMetaData']['has'](_0x673c80)){const _0x4eca24=this['_getPreviousFrom'](_0x673c80);this['_calculateMetaData'](_0x4eca24,_0x673c80,!0x1);}this['_calculateMetaData'](_0x673c80,_0x3e6351,!0x0);}return this['_lastFrom']=_0x673c80,this['_lastTo']=_0x3e6351,this['_getState']();}['loadState'](_0x3c2f20){this['_reset'](),this['_lastFrom']=_0x3c2f20['fromVersion'],this['_lastTo']=_0x3c2f20['toVersion'];for(const _0x470712 in _0x3c2f20['diffData']){const _0x338e78=_0x3c2f20['diffData'][_0x470712]['attachChange'],_0x27c500=_0x1a5db8(_0x3c2f20['diffData'][_0x470712]['attributesBefore'])||{},_0x4fc8f3=this['_makeModelFromViewString'](_0x3c2f20['diffData'][_0x470712]['deletions']);_0x4fc8f3['rootName']=_0x470712,_0x4fc8f3['_isAttached']=!_0x338e78||!_0x338e78['isAttached'],_0x4fc8f3['isAttached']=()=>_0x4fc8f3['_isAttached'],this['_baseRoots']['set'](_0x470712,_0x4fc8f3),this['_baseRootsAttributes']['set'](_0x470712,_0x27c500),_0x338e78&&this['_touchedRoots']['set'](_0x470712,_0x338e78);const _0x439f04=this['_makeIdsRoot'](_0x4fc8f3);this['_baseIdsRoots']['set'](_0x470712,_0x439f04);for(const [_0x591a15,_0x7a32a3]of _0x4fc8f3['markers']){if(!_0x591a15['startsWith']('revision:'))continue;const _0x2e2c87=_0x591a15['split'](':')[0x2];for(const _0x142174 of _0x7a32a3['getWalker']({'singleCharacters':!0x0})){const _0x110744=this['_getVidAttributeName'](_0x142174),_0x294961='elementEnd'==_0x142174['type']?_0x142174['previousPosition']['path']['slice'](0x0,-0x1):_0x142174['previousPosition']['path'],_0x38694c=_0x439f04['getNodeByPath'](_0x294961)['getAttribute'](_0x110744);this['_touched']['set'](_0x38694c,{'userId':_0x2e2c87});}}}this['_startingRevisionId']=this['_revisionId'];const _0x2bd22b=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x1ef7ea=>!this['_touched']['has'](_0x1ef7ea));let _0x3c761b=0x0;const _0x1a0549=new Map();for(const _0x376edc in _0x3c2f20['diffData']){const _0x5e8a46=_0x3c2f20['diffData'][_0x376edc]['attachChange'],_0x5ab892=_0x1a5db8(_0x3c2f20['diffData'][_0x376edc]['attributesAfter'])||{},_0x193892=this['_makeModelFromViewString'](_0x3c2f20['diffData'][_0x376edc]['insertions']);_0x193892['rootName']=_0x376edc,_0x193892['_isAttached']=!_0x5e8a46||_0x5e8a46['isAttached'],_0x193892['isAttached']=()=>_0x193892['_isAttached'],this['_diffRoots']['set'](_0x376edc,_0x193892),this['_diffRootsAttributes']['set'](_0x376edc,_0x5ab892);const _0x42864c=this['_makeIdsRoot'](_0x193892,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x376edc,_0x42864c),_0x1a0549['set'](_0x376edc,_0x193892['isAttached']()?_0x5ab892:{});for(const [_0x2a7c33,_0xb0ac0f]of _0x193892['markers']){if(!_0x2a7c33['startsWith']('revision:'))continue;const _0x591a22=_0x2a7c33['split'](':')[0x2];for(const _0x498b60 of _0xb0ac0f['getWalker']({'singleCharacters':!0x0})){const _0x9a1ce9=this['_getVidAttributeName'](_0x498b60),_0x16c73e=this['_revisionId']++,_0x404d8f='elementEnd'==_0x498b60['type']?_0x498b60['previousPosition']['path']['slice'](0x0,-0x1):_0x498b60['previousPosition']['path'];_0x42864c['getNodeByPath'](_0x404d8f)['_setAttribute'](_0x9a1ce9,_0x16c73e),this['_touched']['set'](_0x16c73e,{'userId':_0x591a22});}}for(const _0x170033 of this['editor']['model']['createRangeIn'](_0x193892)['getWalker']({'singleCharacters':!0x0})){const _0x341d67=this['_getVidAttributeName'](_0x170033),_0x3bb556='elementEnd'==_0x170033['type']?_0x170033['previousPosition']['path']['slice'](0x0,-0x1):_0x170033['previousPosition']['path'],_0x4af3c6=_0x42864c['getNodeByPath'](_0x3bb556);_0x4af3c6['getAttribute'](_0x341d67)>0x0||_0x4af3c6['_setAttribute'](_0x341d67,_0x2bd22b[_0x3c761b++]);}for(const [_0x2eb45f,_0x3c5d32]of _0x193892['markers'])_0x2eb45f['startsWith']('revision:')||this['_markers']['set'](_0x2eb45f,_0x3c5d32);}const _0x590633=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x590633),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x590633,0x1));const _0x4eca68=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x4eca68),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4eca68,0x1));const _0x19a68c=Array['from'](this['_diffRoots'])['map'](([_0x4d1fa0,_0x5035e8])=>[_0x4d1fa0,F(_0x5035e8)]);this['_saveMetaData'](this['_lastTo'],_0x19a68c,this['_markers'],_0x1a0549);}['_makeModelFromViewString'](_0x21920f){const _0x333e21=JSON['parse'](_0x21920f),_0x5982c1=this['editor']['editing']['view']['document'],_0xf72b4d=new _0x3fc8d7(_0x5982c1,_0x333e21['map'](_0x46000e=>V(_0x46000e,this['editor'])));return this['editor']['data']['toModel'](_0xf72b4d);}['_saveMetaData'](_0x59c91f,_0xe0ad4a,_0x526c8f,_0x2de9d4){const _0x108b7b=new Map(_0xe0ad4a),_0x37b4f0=new Map(_0x1a5db8(_0x2de9d4)),_0x15f46e=new Map();for(const [_0x1427f6,_0x5cf895]of _0x526c8f)_0x15f46e['set'](_0x1427f6,{'start':_0x5cf895['start']['clone'](),'end':_0x5cf895['end']['clone'](),'rootName':_0x5cf895['root']['rootName']});this['_savedMetaData']['set'](_0x59c91f,{'roots':_0x108b7b,'markers':_0x15f46e,'rootsAttributes':_0x37b4f0});}['_removeMetaData'](_0x26b43b){this['_savedMetaData']['delete'](_0x26b43b);}['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'](_0x2e6fed,_0xbf04d8=null){let _0x5e033f=null;_0x2e6fed['is']('documentFragment')||(_0x5e033f=new ft(_0x2e6fed['name'],{'vid_start':null===_0xbf04d8?this['_revisionId']++:_0xbf04d8++}));const _0x382f64=[];for(const _0x66f61a of _0x2e6fed['getChildren']())if(_0x66f61a['is']('element')){_0x382f64['push'](this['_makeIdsRoot'](_0x66f61a,_0xbf04d8));const _0x445561=_0x382f64[_0x382f64['length']-0x1];null!==_0xbf04d8&&(_0xbf04d8=_0x445561['is']('element','$text')?_0x445561['getAttribute']('vid')+0x1:_0x445561['getAttribute']('vid_end')+0x1);}else{for(let _0x125d98=0x0;_0x125d98<_0x66f61a['offsetSize'];_0x125d98++)_0x382f64['push'](new ft('$text',{'vid':null===_0xbf04d8?this['_revisionId']++:_0xbf04d8++}));}if(_0x2e6fed['is']('documentFragment')){const _0x24fa68=B(_0x2e6fed['rootName']);return _0x24fa68['_insertChild'](0x0,_0x382f64),_0x24fa68;}return _0x5e033f['_setAttribute']('vid_end',null===_0xbf04d8?this['_revisionId']++:_0xbf04d8++),_0x5e033f['_insertChild'](0x0,_0x382f64),_0x5e033f;}['_calculateMetaData'](_0x576b91,_0x56d9f6,_0x589a3e){this['_reset']();const {roots:_0x1a3536,markers:_0x396ecb,rootsAttributes:_0x36eba1}=this['_savedMetaData']['get'](_0x576b91);this['_baseRoots']=new Map(_0x1a3536),this['_baseRootsAttributes']=new Map(_0x1a5db8(_0x36eba1));for(const [_0x1f6c19,_0x416569]of this['_baseRoots'])if('$graveyard'!==_0x1f6c19&&(this['_diffRoots']['set'](_0x1f6c19,F(_0x416569)),this['_diffRootsAttributes']=new Map(_0x1a5db8(_0x36eba1)),_0x589a3e)){const _0x52ae2f=this['_revisionId'];this['_idsRoots']['set'](_0x1f6c19,this['_makeIdsRoot'](_0x416569)),this['_baseIdsRoots']['set'](_0x1f6c19,this['_makeIdsRoot'](_0x416569,_0x52ae2f));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x589a3e&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x35fc08,_0xe83e96]of _0x396ecb){const _0x56e1ca=this['_baseRoots']['get'](_0xe83e96['rootName']),_0x2cadcc=this['_diffRoots']['get'](_0xe83e96['rootName']),_0x3b5cc2=new vt(this['_fixPosition'](_0xe83e96['start'],_0x56e1ca),this['_fixPosition'](_0xe83e96['end'],_0x56e1ca)),_0x9ea4f9=this['_fixRange'](_0x3b5cc2,_0x2cadcc);_0x56e1ca['markers']['set'](_0x35fc08,_0x3b5cc2),this['_markers']['set'](_0x35fc08,_0x9ea4f9);}this['_applyOperations'](_0x576b91,_0x56d9f6,_0x589a3e);}['_applyOperations'](_0x1ff72c,_0x4a16a5,_0x314e6d){for(const _0x520979 of this['source']['getOperations'](_0x1ff72c,_0x4a16a5))this['_handleOperation'](_0x520979,_0x314e6d);for(const _0x581329 of this['_diffRoots']['values']())_0x581329['markers']['clear']();for(const [_0x4353ed,_0xe56951]of this['_markers']){this['_diffRoots']['get'](_0xe56951['root']['rootName'])['markers']['set'](_0x4353ed,_0xe56951['clone']());}const _0x3f2255=new Map(),_0x208078=new Map();for(const [_0x2377c8,_0x296141]of this['_diffRoots'])_0x3f2255['set'](_0x2377c8,F(_0x296141)),_0x208078['set'](_0x2377c8,this['_diffRootsAttributes']['get'](_0x2377c8));this['_saveMetaData'](_0x4a16a5,_0x3f2255,this['_markers'],_0x208078);}['_getPreviousFrom'](_0x2f8a51){const _0x444645=Array['from'](this['_savedMetaData']['keys']());_0x444645['sort']((_0xecf2d1,_0x1d05f3)=>_0xecf2d1-_0x1d05f3),_0x444645['reverse']();for(const _0x1749f3 of _0x444645)if(_0x1749f3<_0x2f8a51)return _0x1749f3;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x1063d0,_0x579c07){const _0x502125=Array['from'](_0x579c07['markers'])['map'](([_0x4e75b3,_0x1d7cb2])=>[_0x4e75b3,this['_fixRange'](_0x1d7cb2,_0x1063d0)]);_0x1063d0['markers']=new Map(_0x502125);}['_transformMarkers'](_0x4ba611){for(const _0x52c52a of this['_markers']['values']()){const _0x23d84a=_0x52c52a['getTransformedByOperation'](_0x4ba611),_0x327239=vt['_createFromRanges'](_0x23d84a);_0x52c52a['start']=_0x327239['start'],_0x52c52a['end']=_0x327239['end'];}}['_handleOperation'](_0x5c97e6,_0xa94b2){if('addRoot'!=_0x5c97e6['type']&&'detachRoot'!=_0x5c97e6['type']){if('insert'==_0x5c97e6['type']){const _0x1e49e0=_0x5c97e6['position']['root']['rootName'];this['_diffRoots']['has'](_0x1e49e0)||(this['_diffRoots']['set'](_0x1e49e0,B(_0x1e49e0,!0x0)),this['_diffRootsAttributes']['set'](_0x1e49e0,{}),_0xa94b2&&this['_idsRoots']['set'](_0x1e49e0,B(_0x1e49e0,!0x0)));}else{if('addRootAttribute'==_0x5c97e6['type']||'removeRootAttribute'==_0x5c97e6['type']||'changeRootAttribute'==_0x5c97e6['type'])return void this['_handleRootAttributeOperation'](_0x5c97e6);'marker'==_0x5c97e6['type']&&this['_handleMarkerOperation'](_0x5c97e6);}if('marker'!==_0x5c97e6['type']){const _0x4ffaf6=this['_cloneOperation'](_0x5c97e6,this['_diffRoots']);_0x4ffaf6['_execute'](),this['_transformMarkers'](_0x4ffaf6);}if(_0xa94b2)switch(_0x5c97e6['type']){case'insert':this['_handleInsertOperation'](_0x5c97e6);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x5c97e6);break;case'merge':this['_handleMergeOperation'](_0x5c97e6);break;case'split':this['_handleSplitOperation'](_0x5c97e6);}}else this['_handleRootOperation'](_0x5c97e6,_0xa94b2);}['_cloneOperation'](_0x4b9403,_0x248b9e){const _0x115ca4=_0x4b9403['clone']();return _0x115ca4['_authorId']=_0x4b9403['_authorId'],this['_fixOperation'](_0x115ca4,_0x248b9e),_0x115ca4;}['_getBaseVids'](_0x389eb9){return _0x389eb9['map'](_0x37e59e=>{const _0x3a8442=this['_getVidAttributeName'](_0x37e59e);return Number(_0x37e59e['item']['getAttribute'](_0x3a8442));});}['_generateTape'](_0x492f24,_0x27dd5c){if(_0x492f24['is']('element','$text'))_0x27dd5c['push']({'item':_0x492f24,'type':'text'});else{_0x492f24['is']('element')&&_0x27dd5c['push']({'item':_0x492f24,'type':'elementStart'});for(const _0x5b3533 of _0x492f24['getChildren']())this['_generateTape'](_0x5b3533,_0x27dd5c);_0x492f24['is']('element')&&_0x27dd5c['push']({'item':_0x492f24,'type':'elementEnd'});}return _0x27dd5c;}['_getState'](){const _0x2f0937=new Map(this['_touched']),_0x5d7041=new Map(_0x2f0937),_0x447cbd=new Map(),_0x3b0484={'insertions':{},'deletions':{}},_0x9cc4cf={'insertions':{},'deletions':{}},_0x385041=new Map(),_0x3d62f2=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x3d62f2['delete']('$graveyard');for(const _0x1aa0d4 of _0x3d62f2){const _0x23d22b=this['_diffRoots']['get'](_0x1aa0d4)||B(_0x1aa0d4,!0x1),_0x5dddbe=this['_baseRoots']['get'](_0x1aa0d4)||B(_0x1aa0d4,!0x1);_0x23d22b['isAttached']()||_0x5dddbe['isAttached']()?(_0x3b0484['insertions'][_0x1aa0d4]=F(_0x23d22b),_0x3b0484['deletions'][_0x1aa0d4]=F(_0x5dddbe),this['_copyMarkers'](_0x3b0484['deletions'][_0x1aa0d4],_0x5dddbe),this['_copyMarkers'](_0x3b0484['insertions'][_0x1aa0d4],_0x23d22b),_0x9cc4cf['insertions'][_0x1aa0d4]=this['_generateTape'](this['_idsRoots']['get'](_0x1aa0d4),[]),_0x9cc4cf['deletions'][_0x1aa0d4]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x1aa0d4)||B(_0x1aa0d4,!0x1),[])):_0x3d62f2['delete'](_0x1aa0d4);}for(const _0x29e716 of _0x3d62f2){const _0x1041f5=_0x9cc4cf['insertions'][_0x29e716];for(const _0x4747d2 of _0x1041f5){const _0x5b0879=this['_getVidAttributeName'](_0x4747d2),_0x322a03=_0x4747d2['item']['getAttribute'](_0x5b0879);_0x5d7041['delete'](_0x322a03),_0x322a03>=this['_startingRevisionId']&&_0x447cbd['set'](_0x322a03,_0x2f0937['get'](_0x322a03));}}for(const _0x339b8d of _0x3d62f2){const _0x5a26c4=_0x9cc4cf['insertions'][_0x339b8d],_0x59790d=this['_getBaseVids'](_0x9cc4cf['deletions'][_0x339b8d]);let _0x5b64c9=0x0;for(const _0xeada2e of _0x5a26c4){const _0x53df8c=this['_getVidAttributeName'](_0xeada2e),_0x4808fd=_0xeada2e['item']['getAttribute'](_0x53df8c);if(!_0x447cbd['has'](_0x4808fd)&&!_0x385041['has'](_0x4808fd)){if(_0x5d7041['has'](_0x4808fd))_0x5b64c9++;else{if(_0x4808fd!=_0x59790d[_0x5b64c9]){const _0x3b07cb=_0x2f0937['get'](_0x4808fd)||_0x2f0937['get'](_0x59790d[_0x5b64c9]);for(;_0x4808fd!=_0x59790d[_0x5b64c9];)_0x5d7041['has'](_0x59790d[_0x5b64c9])||(_0x385041['set'](_0x59790d[_0x5b64c9],_0x3b07cb),_0x2f0937['set'](_0x59790d[_0x5b64c9],_0x3b07cb)),_0x5b64c9++;}_0x5b64c9++;}}}}for(const _0xd69cb4 of _0x3d62f2){const _0x15090b=_0x9cc4cf['insertions'][_0xd69cb4];for(const _0x6bf515 of _0x15090b){const _0x36d295=this['_getVidAttributeName'](_0x6bf515),_0x586e29=_0x6bf515['item']['getAttribute'](_0x36d295);if(_0x385041['has'](_0x586e29)){const _0x5f2009=_0x385041['get'](_0x586e29);_0x5d7041['has'](_0x586e29)||_0x5d7041['set'](_0x586e29,{..._0x5f2009}),_0x447cbd['set'](_0x586e29,{..._0x5f2009});}}}for(const _0x14a32b of _0x5d7041['keys']())_0x14a32b>=this['_startingRevisionId']&&_0x5d7041['delete'](_0x14a32b);const _0x55f914=new Map();for(const _0x116505 of _0x3d62f2){let _0x3ccdb3=_0x9cc4cf['insertions'][_0x116505];for(const _0x82024b of _0x3ccdb3)if(_0x82024b['item']['is']('element','tableCell')){const _0x36eac6=this['_getVidAttributeName'](_0x82024b),_0xefe4e1=_0x82024b['item']['getAttribute'](_0x36eac6);if(_0x447cbd['has'](_0xefe4e1)){const _0x297312=_0x82024b['item']['parent']['parent']['getAttribute']('vid_start'),_0x532680=_0x55f914['get'](_0x297312)||new Set();_0x532680['add'](_0x447cbd['get'](_0xefe4e1)['userId']),_0x55f914['set'](_0x297312,_0x532680);}}_0x3ccdb3=_0x9cc4cf['deletions'][_0x116505];for(const _0x4f986b of _0x3ccdb3)if(_0x4f986b['item']['is']('element','tableCell')){const _0x53512a=this['_getVidAttributeName'](_0x4f986b),_0x5b483b=_0x4f986b['item']['getAttribute'](_0x53512a);if(_0x5d7041['has'](_0x5b483b)){const _0x411ddc=_0x4f986b['item']['parent']['parent']['getAttribute']('vid_start'),_0x4e0120=_0x55f914['get'](_0x411ddc)||new Set();_0x4e0120['add'](_0x5d7041['get'](_0x5b483b)['userId']),_0x55f914['set'](_0x411ddc,_0x4e0120);}}for(const _0x1bfd17 of _0x55f914['keys']())(_0x447cbd['has'](_0x1bfd17)||_0x5d7041['has'](_0x1bfd17))&&_0x55f914['delete'](_0x1bfd17);}for(const _0x4c41c2 of _0x3d62f2){const _0x241bd2=_0x9cc4cf['insertions'][_0x4c41c2];let _0x17a788=null,_0x1322c5=null;for(const _0x227961 of _0x241bd2){const _0x225f89=this['_getVidAttributeName'](_0x227961),_0x490aed=_0x227961['item']['getAttribute'](_0x225f89),_0x2ac983=_0x55f914['get'](_0x490aed);_0x2ac983&&'elementStart'==_0x227961['type']&&(_0x17a788=Array['from'](_0x2ac983)[0x0],_0x1322c5=_0x227961['item']['getAttribute']('vid_end')),_0x17a788&&(_0x5d7041['set'](_0x490aed,{'userId':_0x17a788}),_0x447cbd['set'](_0x490aed,{'userId':_0x17a788})),_0x490aed==_0x1322c5&&(_0x17a788=null,_0x1322c5=null);}}const _0x27ce6e={},_0x4b226a=new Set();for(const _0x3dc8dd of _0x3d62f2){const _0x17a44e=_0x3b0484['deletions'][_0x3dc8dd],_0x2cd314=_0x3b0484['insertions'][_0x3dc8dd];for(const {userId:_0xbd18b8}of this['_touchedMarkers']['values']())null!==_0xbd18b8&&_0x4b226a['add'](_0xbd18b8);for(const {userId:_0x4f88cf}of this['_touchedRoots']['values']())null!==_0x4f88cf&&_0x4b226a['add'](_0x4f88cf);this['_markChanges'](_0x2cd314,_0x9cc4cf['insertions'][_0x3dc8dd],_0x447cbd,'insertion',_0x4b226a),this['_markChanges'](_0x17a44e,_0x9cc4cf['deletions'][_0x3dc8dd],_0x5d7041,'deletion',_0x4b226a),_0x27ce6e[_0x3dc8dd]={'insertions':this['_prepareViewToSave'](_0x2cd314),'deletions':this['_prepareViewToSave'](_0x17a44e),'attachChange':this['_touchedRoots']['get'](_0x3dc8dd)||null,'attributesBefore':_0x1a5db8(this['_baseRootsAttributes']['get'](_0x3dc8dd))||{},'attributesAfter':_0x1a5db8(this['_diffRootsAttributes']['get'](_0x3dc8dd))};}return{'diffData':_0x27ce6e,'authorsIds':Array['from'](_0x4b226a)};}['_processRootBeforeSave'](_0x3e3288){for(const [,_0x78ec26]of _0x3e3288['markers']){const _0x1d6fd5=_0x78ec26['start']['getAncestors']()['filter'](_0x3d614a=>'tableCell'==_0x3d614a['name']);for(const _0x374a86 of _0x1d6fd5)0x1==_0x374a86['childCount']&&_0x374a86['getChild'](0x0)['is']('element','paragraph')&&_0x374a86['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x258efc){this['_processRootBeforeSave'](_0x258efc);const _0x2e49cd=this['editor']['data']['toView'](_0x258efc,{}),_0x95eb19=Array['from'](_0x2e49cd['getChildren']())['map'](_0x19ae01=>this['_getViewJson'](_0x19ae01));return JSON['stringify'](_0x95eb19);}['_getViewJson'](_0x14ba83){if(_0x14ba83['is']('$text'))return _0x14ba83['data'];{const _0x2c1210=_0x14ba83;return{'type':Object['keys'](C)['find'](_0xbb59e4=>_0x14ba83 instanceof C[_0xbb59e4]),'name':_0x2c1210['name'],'attributes':Array['from'](_0x2c1210['getAttributes']()),'children':Array['from'](_0x2c1210['getChildren']())['map'](_0x4a6d12=>this['_getViewJson'](_0x4a6d12))};}}['_markChanges'](_0x15b4df,_0x2019de,_0x52b367,_0x4c4093,_0x34ff2b){let _0x46c71c=null,_0x11aec6=null,_0x3436c4=0x0;const _0x173442=this['editor']['model'];for(let _0x36d8aa=0x0;_0x36d8aa<_0x2019de['length'];_0x36d8aa++){const _0x432f21=this['_getVidAttributeName'](_0x2019de[_0x36d8aa]),_0x25da64=_0x2019de[_0x36d8aa]['item']['getAttribute'](_0x432f21),_0x55df59=_0x52b367['get'](_0x25da64),_0x5263d4=_0x36d8aa==_0x2019de['length']-0x1;(!_0x46c71c&&_0x55df59&&(_0x46c71c=_0x55df59,_0x11aec6=_0x2019de[_0x36d8aa]),_0x46c71c&&(!_0x55df59||_0x55df59['userId']!=_0x46c71c['userId']))&&(_0x581383(_0x55df59,J(_0x11aec6,_0x15b4df,_0x173442),J(_0x2019de[_0x36d8aa],_0x15b4df,_0x173442)),_0x46c71c=_0x55df59||null,_0x11aec6=_0x55df59?_0x2019de[_0x36d8aa]:null),_0x46c71c&&_0x5263d4&&_0x581383(_0x55df59,J(_0x11aec6,_0x15b4df,_0x173442),q(_0x2019de[_0x36d8aa],_0x15b4df,_0x173442));}function _0x581383(_0x425cf2,_0x55092f,_0x38c779){const _0x3db6d1=_0x46c71c['userId'],_0x336f51='revision:'+_0x4c4093+':'+_0x3db6d1+':'+_0x3436c4++,_0x3681fe=_0x173442['createRange'](_0x55092f,_0x38c779);_0x15b4df['markers']['set'](_0x336f51,_0x3681fe),null!==_0x3db6d1&&_0x34ff2b['add'](_0x3db6d1);}}['_getVidAttributeName'](_0x2b3b4c){switch(_0x2b3b4c['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x456c94,_0x298f80){_0x456c94['baseVersion']=null;for(const _0x4b87e9 in _0x456c94){const _0x5065fe=_0x456c94[_0x4b87e9];if(_0x5065fe instanceof gt){const _0x4580ef=_0x298f80['get'](_0x5065fe['root']['rootName']);_0x456c94[_0x4b87e9]=this['_fixPosition'](_0x5065fe,_0x4580ef);}if(_0x5065fe instanceof vt){const _0xacca19=_0x298f80['get'](_0x5065fe['root']['rootName']);_0x456c94[_0x4b87e9]=this['_fixRange'](_0x5065fe,_0xacca19);}'root'===_0x4b87e9&&(_0x456c94['root']=_0x298f80['get'](_0x456c94['root']['rootName']));}}['_fixRange'](_0x185cd2,_0xea9e2f){return this['editor']['model']['createRange'](this['_fixPosition'](_0x185cd2['start'],_0xea9e2f),this['_fixPosition'](_0x185cd2['end'],_0xea9e2f));}['_fixPosition'](_0x2494b3,_0x34fed6){return this['editor']['model']['createPositionFromPath'](_0x34fed6,_0x2494b3['path'],_0x2494b3['stickiness']);}['_handleInsertOperation'](_0x59fc43){const _0x4123cc=this['_idsRoots']['get'](_0x59fc43['position']['root']['rootName']),_0x1ce1b6=this['_fixPosition'](_0x59fc43['position'],_0x4123cc),_0x23a1e0=null===_0x59fc43['_authorId']?null:_0x59fc43['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x37eaf2=_0x1ce1b6['parent'],_0x4f2021=this['_revisionId'],_0x2e5055=[];for(const _0x2c2e28 of _0x59fc43['nodes'])if(_0x2c2e28['is']('element'))_0x2e5055['push'](this['_makeIdsRoot'](_0x2c2e28));else{for(let _0x79dd41=0x0;_0x79dd41<_0x2c2e28['offsetSize'];_0x79dd41++)_0x2e5055['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x26c43d=this['_revisionId'];for(let _0x22ec95=_0x4f2021;_0x22ec95<_0x26c43d;_0x22ec95++)this['_touched']['set'](_0x22ec95,{'userId':_0x23a1e0});_0x37eaf2['_insertChild'](_0x1ce1b6['offset'],_0x2e5055);}['_handleMoveOperation'](_0xd4a6fb){(_0xd4a6fb=this['_cloneOperation'](_0xd4a6fb,this['_idsRoots']))['_execute']();const _0x20895e=null===_0xd4a6fb['_authorId']?null:_0xd4a6fb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3b5aea=_0xd4a6fb['getMovedRangeStart'](),_0x5016e1=_0x3b5aea['parent'],_0x3d5eb1=_0x3b5aea['offset'];!function _0x4d9d7a(_0x2cb499,_0x51ea84,_0x574252,_0x1e9a60){for(let _0x139aac=_0x574252;_0x139aac<_0x1e9a60;_0x139aac++){const _0x25df55=_0x51ea84['getChild'](_0x139aac);_0x25df55['is']('element','$text')?_0x2cb499['set'](_0x25df55['getAttribute']('vid'),{'userId':_0x20895e}):(_0x2cb499['set'](_0x25df55['getAttribute']('vid_start'),{'userId':_0x20895e}),_0x4d9d7a(_0x2cb499,_0x25df55,0x0,_0x25df55['childCount']),_0x2cb499['set'](_0x25df55['getAttribute']('vid_end'),{'userId':_0x20895e}));}}(this['_touched'],_0x5016e1,_0x3d5eb1,_0x3d5eb1+_0xd4a6fb['howMany']);}['_handleMergeOperation'](_0x417f0b){const _0x252c33=null===(_0x417f0b=this['_cloneOperation'](_0x417f0b,this['_idsRoots']))['_authorId']?null:_0x417f0b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2f2c62=_0x417f0b['targetPosition']['parent'],_0x4f4ecb=_0x417f0b['sourcePosition']['parent'],_0x413a02=_0x2f2c62['getAttribute']('vid_end'),_0x5f2fc6=_0x4f4ecb['getAttribute']('vid_start');_0x2f2c62['_setAttribute']('vid_end',_0x4f4ecb['getAttribute']('vid_end')),_0x4f4ecb['_setAttribute']('vid_end',_0x413a02),this['_touched']['set'](_0x5f2fc6,{'userId':_0x252c33}),this['_touched']['set'](_0x413a02,{'userId':_0x252c33}),_0x417f0b['_execute']();}['_handleSplitOperation'](_0x152816){const _0x58f58c=null===(_0x152816=this['_cloneOperation'](_0x152816,this['_idsRoots']))['_authorId']?null:_0x152816['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x288494=_0x152816['graveyardPosition'],_0x175103=_0x152816['splitPosition']['parent'];_0x152816['_execute']();const _0x461e36=_0x175103['getAttribute']('vid_end'),_0x136bee=_0x152816['insertionPosition']['nodeAfter'];if(_0x288494){const _0x566390=_0x136bee['getAttribute']('vid_end'),_0x150aef=_0x175103['getAttribute']('vid_end');_0x175103['_setAttribute']('vid_end',_0x566390),_0x136bee['_setAttribute']('vid_end',_0x150aef),this['_touched']['set'](_0x175103['getAttribute']('vid_end'),{'userId':_0x58f58c}),this['_touched']['set'](_0x136bee['getAttribute']('vid_start'),{'userId':_0x58f58c});}else{const _0x2c8914=this['_revisionId']++,_0x5c5eb5=this['_revisionId']++;_0x175103['_setAttribute']('vid_end',_0x2c8914),_0x136bee['_setAttribute']('vid_start',_0x5c5eb5),_0x136bee['_setAttribute']('vid_end',_0x461e36),this['_touched']['set'](_0x2c8914,{'userId':_0x58f58c}),this['_touched']['set'](_0x5c5eb5,{'userId':_0x58f58c});}}['_handleMarkerOperation'](_0x5cba08){if(!_0x5cba08['affectsData'])return;const _0x12c27a=(_0x5cba08=this['_cloneOperation'](_0x5cba08,this['_diffRoots']))['oldRange']?_0x5cba08['oldRange']['root']:null,_0x3b5c78=_0x5cba08['newRange']?_0x5cba08['newRange']['root']:null;_0x12c27a&&this['_markers']['delete'](_0x5cba08['name']),_0x3b5c78&&this['_markers']['set'](_0x5cba08['name'],_0x5cba08['newRange']['clone']());const _0x2cf13c=null===_0x5cba08['_authorId']?null:_0x5cba08['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xf272b8=_0x5cba08['name'];if(!this['_touchedMarkers']['has'](_0xf272b8))return void this['_touchedMarkers']['set'](_0xf272b8,{'range':_0x5cba08['oldRange'],'userId':_0x2cf13c});const _0x3db7bb=this['_touchedMarkers']['get'](_0xf272b8),_0x2de6fd=_0x3db7bb['range'],_0x349bbd=_0x5cba08['newRange'];null==_0x2de6fd&&null==_0x349bbd||_0x2de6fd&&_0x349bbd&&_0x2de6fd['isEqual'](_0x349bbd)?this['_touchedMarkers']['delete'](_0x5cba08['name']):_0x3db7bb['userId']=_0x2cf13c;}['_handleRootOperation'](_0x10a343,_0x6a53a4){this['_diffRoots']['has'](_0x10a343['rootName'])?this['_diffRoots']['get'](_0x10a343['rootName'])['_isAttached']=_0x10a343['isAdd']:(this['_diffRoots']['set'](_0x10a343['rootName'],B(_0x10a343['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x10a343['rootName'],{}),_0x6a53a4&&this['_idsRoots']['set'](_0x10a343['rootName'],B(_0x10a343['rootName'],!0x0)));const _0x4fda19=null===_0x10a343['_authorId']?null:_0x10a343['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1e3033=this['_touchedRoots']['get'](_0x10a343['rootName']);_0x1e3033&&_0x1e3033['userId']===_0x4fda19?this['_touchedRoots']['delete'](_0x10a343['rootName']):this['_touchedRoots']['set'](_0x10a343['rootName'],{'userId':_0x4fda19,'isAttached':_0x10a343['isAdd']});}['_handleRootAttributeOperation'](_0x32820b){const _0x365ae1=this['_diffRootsAttributes']['get'](_0x32820b['root']['rootName']);null===_0x32820b['newValue']?delete _0x365ae1[_0x32820b['key']]:_0x365ae1[_0x32820b['key']]=_0x32820b['newValue'];}}function F(_0x155a30){const _0x443b13=B(_0x155a30['rootName'],_0x155a30['isAttached']());for(const _0x12a869 of _0x155a30['getChildren']()){const _0x130e48=_0x12a869['_clone'](!0x0);_0x443b13['_appendChild'](_0x130e48);}return _0x443b13;}function B(_0x44d557,_0x223859=!0x0){const _0xfb5ab=new wt();return _0xfb5ab['rootName']=_0x44d557,_0xfb5ab['_isAttached']=_0x223859,_0xfb5ab['isAttached']=()=>_0xfb5ab['_isAttached'],_0xfb5ab;}function J(_0x11c5ff,_0x17971f,_0x4e35da){const _0x1c9c3d='elementEnd'==_0x11c5ff['type']?_0x4e35da['createPositionAt'](_0x11c5ff['item'],'end'):_0x4e35da['createPositionBefore'](_0x11c5ff['item']);return _0x4e35da['createPositionFromPath'](_0x17971f,_0x1c9c3d['path'],_0x1c9c3d['stickiness']);}function q(_0x3dec2b,_0x45988a,_0x37c0f1){const _0xfd32b8='elementStart'==_0x3dec2b['type']?_0x37c0f1['createPositionAt'](_0x3dec2b['item'],0x0):_0x37c0f1['createPositionAfter'](_0x3dec2b['item']);return _0x37c0f1['createPositionFromPath'](_0x45988a,_0xfd32b8['path'],_0xfd32b8['stickiness']);}class hs extends _0x18c416{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x2f48d1,_0x4510e4){super(_0x2f48d1),this['focusTracker']=new _0x1ad946(),this['keystrokes']=new _0x27cf0d(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x4510e4),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'](),_0x3a0b1a({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x1353a5=_0x21d341=>_0x21d341['stopPropagation']();this['keystrokes']['set']('arrowright',_0x1353a5),this['keystrokes']['set']('arrowleft',_0x1353a5),this['keystrokes']['set']('arrowup',_0x1353a5),this['keystrokes']['set']('arrowdown',_0x1353a5);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x528c1a){this['revisionNameInputView']['fieldView']['element']['value']=_0x528c1a['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x29b499){const _0x16fb73=new at(this['locale'],_0x24c1fe),_0x4763e6=_0x16fb73['fieldView'];_0x4763e6['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x3c40d1=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x29b499&&(_0x3c40d1+='\x20('+R(this['locale'],'optional')+')'),(_0x16fb73['label']=_0x3c40d1,_0x4763e6['on']('input',()=>{this['revisionNameInputValue']=_0x4763e6['element']['value']['trim']();}),_0x16fb73);}}class u extends _0x487362{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x4d9ccb=this['editor'],_0x32327f=_0x4d9ccb['plugins']['get']('RevisionTracker');_0x4d9ccb['ui']['componentFactory']['add']('revisionHistory',_0x403136=>{const _0x3d0898=_0x640641(_0x403136),_0x1a035e=_0x3d0898['panelView']['children'],_0x698c13=new _0x1187b4(_0x403136),_0x1f9aae=new _0x5d1918(_0x403136),_0x1e0f37=new _0x58517a(_0x403136),_0x52e831=new _0x5d1918(_0x403136),_0x57391e=new _0x58517a(_0x403136);return _0x3d0898['bind']('isEnabled')['to'](_0x32327f,'isReady',_0x32327f,'isEnabled',_0x4d9ccb,'isReadOnly',(_0x16e358,_0x2c3a49,_0x446c83)=>_0x16e358&&_0x2c3a49&&!_0x446c83),_0x3d0898['buttonView']['set']({'icon':_0x3ceb60['history'],'label':R(_0x403136,'Revision\x20history'),'tooltip':!0x0}),_0x1e0f37['set']({'label':R(_0x403136,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x1e0f37['bind']('isEnabled')['to'](_0x32327f,'isReady',_0x32327f,'isEnabled',_0x4d9ccb,'isReadOnly',(_0x57da09,_0xada549,_0x3e6b18)=>_0x57da09&&_0xada549&&!_0x3e6b18),_0x1e0f37['on']('execute',()=>this['_showDialog']()),_0x57391e['set']({'label':R(_0x403136,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x57391e['bind']('isEnabled')['to'](_0x32327f,'isReady',_0x4d9ccb,'isReadOnly',(_0x5b28ae,_0x1fc357)=>_0x5b28ae&&!_0x1fc357),_0x57391e['on']('execute',()=>{_0x4d9ccb['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x3d0898['isOpen']=!0x1,_0x4d9ccb['editing']['view']['focus']();}),_0x1f9aae['children']['add'](_0x1e0f37),_0x52e831['children']['add'](_0x57391e),_0x698c13['role']='menu',_0x698c13['items']['addMany']([_0x1f9aae,_0x52e831]),_0x1a035e['add'](_0x698c13),_0x3d0898;}),_0x4d9ccb['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x25ee65=this['editor'],_0x588bdd=_0x25ee65['locale'],_0x257c2d=new _0x14f153(_0x588bdd),_0x9ab289=new _0x5635be(_0x588bdd);_0x257c2d['buttonView']['set']({'icon':_0x3ceb60['history'],'label':R(_0x588bdd,'Revision\x20history')});const _0x11b297=new _0x16b3f4(_0x588bdd,_0x257c2d),_0x1abbf4=new _0x5956db(_0x588bdd);_0x1abbf4['set']({'label':R(_0x588bdd,'Save\x20current\x20revision')}),_0x1abbf4['delegate']('execute')['to'](_0x257c2d),_0x1abbf4['on']('execute',()=>{this['_showDialog']();}),_0x11b297['children']['add'](_0x1abbf4),_0x9ab289['items']['add'](_0x11b297);const _0x5b88f7=new _0x16b3f4(_0x588bdd,_0x257c2d),_0x3b8d53=new _0x5956db(_0x588bdd);return _0x3b8d53['set']({'label':R(_0x588bdd,'Open\x20revision\x20history')}),_0x3b8d53['delegate']('execute')['to'](_0x257c2d),_0x3b8d53['on']('execute',()=>{_0x25ee65['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x5b88f7['children']['add'](_0x3b8d53),_0x9ab289['items']['add'](_0x5b88f7),_0x257c2d['panelView']['children']['add'](_0x9ab289),_0x257c2d;}['_showDialog'](){const _0x3f2dd9=this['editor'],_0x26580b=_0x3f2dd9['locale'],_0x2a1022=_0x3f2dd9['plugins']['get']('Dialog'),_0x2bc422=_0x3f2dd9['plugins']['get']('RevisionTracker');function _0x47f6e1(_0x14ecbe){_0x3f2dd9['config']['get']('revisionHistory.requireRevisionName')&&''===_0x14ecbe['revisionName']?_0x14ecbe['revisionNameInputView']['errorText']=R(_0x26580b,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x3f2dd9['plugins']['get'](l)['saveRevision']({'name':_0x14ecbe['revisionName']}),_0x2a1022['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x47f6e1(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x2a1022['show']({'id':'revisionSave','title':R(_0x26580b,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x3f2dd9['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x2a1022['hide']()},{'label':R(_0x3f2dd9['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x383043){_0x383043['bind']('isEnabled')['to'](_0x2bc422,'isReady',_0x2bc422,'isEnabled',_0x3f2dd9,'isReadOnly',(_0x4fe5a9,_0x5c8517,_0x4824bc)=>_0x4fe5a9&&_0x5c8517&&!_0x4824bc);},'onExecute':()=>_0x47f6e1(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x1121cd=this['editor'],_0x28453a=_0x1121cd['locale'];this['_saveRevisionFormView']=new hs(_0x28453a,_0x1121cd['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends _0x18c416{['changeId'];['_model'];constructor(_0x8a4b22,_0x411105){super(_0x8a4b22),this['_model']=_0x411105,this['changeId']=_0x411105['id'];const _0x6797ba=this['bindTemplate'],_0x17513a=R(_0x8a4b22,_0x411105['data']['isSuggestion']?'Suggested\x20by':'add'==_0x411105['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x411105['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x6797ba['to']('type',_0x1919e3=>'ck-revision-change__'+_0x1919e3)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x17513a}]},{'text':'\x20'+_0x411105['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x39b0b1(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x3374b9){super(),this['id']=_0x3374b9['id']||_0x3892c5(),this['author']=_0x3374b9['author'],this['type']=_0x3374b9['type'],this['data']=_0x3374b9['data']||{},this['rootName']=_0x3374b9['rootName'],this['set']('createdAt',_0x3374b9['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(_0x502b9f,_0xd74c5e){this['newRevisionId']=_0x502b9f,this['oldRevisionId']=_0xd74c5e,this['changes']=new _0x294022();}['_setChanges'](_0x250a9a){for(const _0x3f5258 of _0x250a9a)this['changes']['add'](_0x3f5258);}}const Z={'c':_0x547f4b,'a':_0x4a6172,'e':_0x5eef00,'r':_0x57d1ba,'u':_0x2a87f2};class d extends _0x487362{['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[_0x2195f6,_0x4155d1,j];}constructor(_0x22768a){super(_0x22768a),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',(_0x6a70d2,_0x5c92f0,_0x19b114)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x4b1fb8=>{for(const _0x485f68 of this['editor']['editing']['view']['document']['roots'])_0x19b114?_0x4b1fb8['removeClass']('ck-editor__editable__overlay',_0x485f68):_0x4b1fb8['addClass']('ck-editor__editable__overlay',_0x485f68);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x353370=>null!==_0x353370),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x29d355,_0x37743a,_0x4a4b79)=>_0x29d355&&_0x4a4b79?_0x37743a['changes']['getIndex'](_0x4a4b79):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x2ada3c,_0x489c8c)=>_0x2ada3c?_0x489c8c['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x4155d1);}['init'](){const _0x332d0b=this['editor'],_0x10d995=new bt(_0x332d0b,{'direction':'backward'}),_0x4c15e9=new bt(_0x332d0b,{'direction':'forward'});(_0x332d0b['commands']['add']('showPreviousChange',_0x10d995),_0x332d0b['commands']['add']('showNextChange',_0x4c15e9),_0x332d0b['commands']['add']('restoreRevision',new yt(_0x332d0b)),this['on']('change:numberOfChanges',()=>{_0x10d995['refresh'](),_0x4c15e9['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x332d0b['enableReadOnlyMode']('revision-viewer'),_0x332d0b['plugins']['has']('WidgetToolbarRepository'))&&_0x332d0b['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x52a0f2){await this['loadRevisionData'](_0x52a0f2);const _0x2ab7fd={};for(const _0x3cf7a2 in _0x52a0f2['diffData']){if(_0x52a0f2['diffData'][_0x3cf7a2]['attachChange']&&!_0x52a0f2['diffData'][_0x3cf7a2]['attachChange']['isAttached'])continue;const _0xf53ee7=this['_removeRevisionMarkers'](JSON['parse'](_0x52a0f2['diffData'][_0x3cf7a2]['insertions'])),_0x22ef89=this['editor']['editing']['view']['document'],_0x17ce5e=new _0x3fc8d7(_0x22ef89,_0xf53ee7['map'](_0x38f794=>this['_getViewObj'](_0x38f794)));this['editor']['data']['processor']['useFillerType']('marked'),_0x2ab7fd[_0x3cf7a2]=this['editor']['data']['processor']['toData'](_0x17ce5e),this['editor']['data']['processor']['useFillerType']('default');}return _0x2ab7fd;}async['getRevisionRootsAttributes'](_0x2491c6){await this['loadRevisionData'](_0x2491c6);const _0xd0cac7={};for(const _0x2d4afc in _0x2491c6['diffData'])_0x2491c6['diffData'][_0x2d4afc]['attachChange']&&!_0x2491c6['diffData'][_0x2d4afc]['attachChange']['isAttached']||(_0xd0cac7[_0x2d4afc]=_0x2491c6['diffData'][_0x2d4afc]['attributesAfter']||{});return _0xd0cac7;}['_removeRevisionMarkers'](_0x158efc){return(_0x158efc=_0x158efc['filter'](_0x15c6fb=>!_0x15c6fb['name']||'revision-start'!==_0x15c6fb['name']&&'revision-end'!==_0x15c6fb['name']))['forEach'](_0x3a4c95=>{'string'!=typeof _0x3a4c95&&(_0x3a4c95['children']=this['_removeRevisionMarkers'](_0x3a4c95['children']),_0x3a4c95['attributes']=_0x3a4c95['attributes']['filter'](_0x40084c=>!_0x40084c[0x0]['startsWith']('data-revision-')));}),_0x158efc;}async['compare'](_0x548438,_0x596ae6,_0x525ba8=!0x1){if(!this['isEnabled'])return;const _0x3dc2c0=this['diff'],_0x59f370=this['repository'],_0x34ce76='string'==typeof _0x548438?_0x59f370['getRevision'](_0x548438):_0x548438,_0x1589f7='string'==typeof _0x596ae6?_0x59f370['getRevision'](_0x596ae6):_0x596ae6,_0x1b4fe2=_0x34ce76['id'],_0x3336df=_0x1589f7?_0x1589f7['id']:null;if(!_0x525ba8&&this['diff']&&this['diff']['newRevisionId']===_0x1b4fe2&&this['diff']['oldRevisionId']===_0x3336df)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x1b4fe2,_0x3336df);const _0x16accd=this['_getRevisionsRange'](_0x34ce76,_0x1589f7,!0x0)['map'](_0x597dc3=>this['loadRevisionData'](_0x597dc3));return _0x16accd['push'](new Promise(_0x3dca6b=>{setTimeout(_0x3dca6b,0x14);})),Promise['all'](_0x16accd)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x504aaa=this['_getDiff'](_0x1b4fe2,_0x3336df);for(const _0x71de96 of _0x504aaa['changes'])this['_changeIdToChange']['set'](_0x71de96['id'],_0x71de96);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5253c9=>{for(const _0x1886d6 of this['editor']['model']['document']['getRootNames']())_0x5253c9['detachRoot'](_0x1886d6);for(const _0x475911 of Object['keys'](_0x504aaa['model'])){const _0xdfc150=_0x5253c9['addRoot'](_0x475911);for(const _0x2f860b of Object['keys'](_0x504aaa['attributes'][_0x475911]))_0x5253c9['setAttribute'](_0x2f860b,_0x504aaa['attributes'][_0x475911][_0x2f860b],_0xdfc150);_0x5253c9['insert'](_0x504aaa['model'][_0x475911],_0xdfc150,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x504aaa['changes'])),this['isReady']=!0x0;})['catch'](_0x52cfdc=>{console['error'](_0x52cfdc),this['_cleanUp'](),_0x3dc2c0&&(this['diff']=_0x3dc2c0),this['isReady']=!0x0;});}['addRevisionData'](_0x89b65d,_0x25d0a8){const _0x3f4a67=this['repository']['createRevision'](_0x89b65d);return _0x3f4a67['on']('_update',(_0x1fe5bf,_0x55b95a,_0x1b959d)=>_0x25d0a8(_0x55b95a,_0x1b959d,_0x3f4a67)),this['repository']['addRevision'](_0x3f4a67),_0x3f4a67;}['loadRevisionData'](_0x27a605){if(!_0x27a605||_0x27a605['diffData'])return Promise['resolve']();{const _0x3b5266=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x3b5266,'revisionId':_0x27a605['id']})['then'](_0xc6f7f6=>{_0x27a605['_update']({'diffData':_0xc6f7f6['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},_0x3493ce=>{for(const _0x465953 of this['editor']['model']['document']['getRootNames']())_0x3493ce['detachRoot'](_0x465953);});}['_sortAndFilterDiffChanges'](_0x5783ef){const _0x535a11=[],_0x3b30ed=new Map();for(const _0x104640 of this['editor']['model']['document']['getRootNames']()){const _0x1210e1=this['editor']['editing']['view']['getDomRoot'](_0x104640);if(!_0x1210e1)continue;const _0x26be7e=_0x1210e1['getClientRects']()['item'](0x0);_0x26be7e&&(_0x535a11['push'](_0x104640),_0x3b30ed['set'](_0x104640,_0x26be7e));}return _0x535a11['sort']((_0x4a1934,_0x5a2e1a)=>{const _0x4213d2=_0x3b30ed['get'](_0x4a1934),_0xaa3877=_0x3b30ed['get'](_0x5a2e1a);return _0x4213d2['y']-_0xaa3877['y']||_0x4213d2['x']-_0xaa3877['x'];}),(_0x5783ef=_0x5783ef['filter'](_0x352bd8=>_0x535a11['includes'](_0x352bd8['rootName'])))['sort']((_0x401c75,_0x15013a)=>_0x535a11['indexOf'](_0x401c75['rootName'])-_0x535a11['indexOf'](_0x15013a['rootName'])),_0x5783ef;}['_makeTape'](_0xcf13a5){const _0x48bfaf=Array['from'](_0xcf13a5['markers'])['filter'](([_0x214225,_0x32079c])=>_0x214225['startsWith']('revision:')&&!_0x32079c['isCollapsed']),_0x3f70a4=Array['from'](this['editor']['model']['createRangeIn'](_0xcf13a5)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x48bfaf['length'])for(const _0x348582 of _0x3f70a4){const [_0x34615d,_0x14f1a4]=_0x48bfaf[0x0],[,_0x29bc09,_0x533be3]=_0x34615d['split'](':');if(_0x14f1a4['end']['isEqual'](_0x348582['nextPosition'])&&_0x48bfaf['shift'](),(_0x348582['previousPosition']['isEqual'](_0x14f1a4['start'])||_0x348582['previousPosition']['isAfter'](_0x14f1a4['start']))&&('insertion'==_0x29bc09?_0x348582['isAdded']={'userId':_0x533be3}:'deletion'==_0x29bc09&&(_0x348582['isRemoved']={'userId':_0x533be3})),0x0==_0x48bfaf['length'])break;}return _0x3f70a4;}['_refreshStartEndIndex'](_0x56035c){const _0x1a54fd=new Map();for(let _0x34c31d=0x0;_0x34c31d<_0x56035c['length'];_0x34c31d++)'text'===_0x56035c[_0x34c31d]['type']?(_0x56035c[_0x34c31d]['item']['startIndex']=_0x34c31d,_0x56035c[_0x34c31d]['item']['endIndex']=_0x34c31d):('elementStart'===_0x56035c[_0x34c31d]['type']?_0x56035c[_0x34c31d]['item']['startIndex']=_0x34c31d:'elementEnd'===_0x56035c[_0x34c31d]['type']&&(_0x56035c[_0x34c31d]['item']['endIndex']=_0x34c31d),_0x1a54fd['set'](_0x56035c[_0x34c31d]['id'],_0x34c31d));for(const _0x2763a9 of _0x1a54fd['values']())'elementStart'===_0x56035c[_0x2763a9]['type']?_0x56035c[_0x2763a9]['item']['endIndex']=_0x1a54fd['get'](_0x56035c[_0x2763a9]['pairId']):'elementEnd'===_0x56035c[_0x2763a9]['type']&&(_0x56035c[_0x2763a9]['item']['startIndex']=_0x1a54fd['get'](_0x56035c[_0x2763a9]['pairId']));}['_processTape'](_0x5cb4bf){for(let _0x256817=0x0;_0x256817<_0x5cb4bf['length'];_0x256817++){if('elementStart'===_0x5cb4bf[_0x256817]['type'])_0x5cb4bf[_0x256817]['item']['startIndex']=_0x256817;else{if('elementEnd'===_0x5cb4bf[_0x256817]['type']){_0x5cb4bf[_0x256817]['item']['endIndex']=_0x256817;const _0x24c3d4=_0x5cb4bf[_0x256817]['item']['startIndex'];_0x5cb4bf[_0x24c3d4]['pairId']=_0x5cb4bf[_0x256817]['id'],_0x5cb4bf[_0x256817]['pairId']=_0x5cb4bf[_0x24c3d4]['id'];}else _0x5cb4bf[_0x256817]['item']['startIndex']=_0x256817,_0x5cb4bf[_0x256817]['item']['endIndex']=_0x256817,_0x5cb4bf[_0x256817]['pairId']=null;}_0x5cb4bf[_0x256817]['markersStart']||(_0x5cb4bf[_0x256817]['markersStart']=[],_0x5cb4bf[_0x256817]['markersEnd']=[]);}}['_markInsertions'](_0x3b3739,_0xd33bfd){const _0x58be6f=_0x3b3739['filter'](_0x46b98c=>!_0x46b98c['isAdded']);for(let _0x211b58=0x0;_0x211b58<_0xd33bfd['length'];_0x211b58++)_0xd33bfd[_0x211b58]['isAdded']&&(_0x58be6f[_0x211b58]['isAdded']=_0xd33bfd[_0x211b58]['isAdded']);}['_makeModelFromViewString'](_0x3d0df8){const _0x199e04=JSON['parse'](_0x3d0df8),_0x47e22e=this['editor']['editing']['view']['document'],_0x5c61d3=new _0x3fc8d7(_0x47e22e,_0x199e04['map'](_0x566e90=>this['_getViewObj'](_0x566e90)));return this['editor']['data']['toModel'](_0x5c61d3);}['_getViewObj'](_0x1be528){const _0x49f0d5=this['editor']['editing']['view']['document'];if('string'==typeof _0x1be528)return new _0x335fff(_0x49f0d5,_0x1be528);{const _0x2b4c37=_0x1be528['children']['map'](_0x393407=>this['_getViewObj'](_0x393407));return new(Z[_0x1be528['type']]||_0x4e0f00)(_0x49f0d5,_0x1be528['name'],_0x1be528['attributes'],_0x2b4c37);}}['_getDiff'](_0x4d7d46,_0x1951b5=null){const _0x5a071e=this['repository']['getRevision'](_0x4d7d46),_0x9319d=_0x1951b5?this['repository']['getRevision'](_0x1951b5):null,_0x436adc=this['_getRevisionsRange'](_0x5a071e,_0x9319d),_0x596c67=_0x436adc[_0x436adc['length']-0x1],_0x51c9b1=new Map(),_0x985ebf={'model':{},'attributes':{},'changes':[]},_0x1475bc=new Set(),_0x358cea=new Map();for(let _0x7489aa=_0x436adc['length']-0x1;_0x7489aa>=0x0;_0x7489aa--){const _0x422492=_0x436adc[_0x7489aa];for(const _0x513a0c of Object['keys'](_0x422492['diffData']))if(_0x422492['diffData'][_0x513a0c]['attachChange']){const _0x42360c=_0x422492['diffData'][_0x513a0c]['attachChange'];_0x42360c['isAttached']?(_0x1475bc['add'](_0x513a0c),_0x358cea['has'](_0x513a0c)&&_0x358cea['get'](_0x513a0c)['userId']==_0x42360c['userId']?_0x358cea['delete'](_0x513a0c):_0x358cea['set'](_0x513a0c,_0x42360c)):_0x358cea['has'](_0x513a0c)?(_0x1475bc['delete'](_0x513a0c),_0x358cea['delete'](_0x513a0c)):(_0x1475bc['add'](_0x513a0c),_0x358cea['set'](_0x513a0c,_0x42360c));}else _0x1475bc['add'](_0x513a0c);}for(const _0x39433e of _0x1475bc){const _0x25fa9f=_0x358cea['has'](_0x39433e)&&!_0x358cea['get'](_0x39433e)['isAttached'];let _0x3beb64=_0x25fa9f?_0x436adc['length']-0x1:0x0;const _0x71f9ef=_0x25fa9f?-0x1:0x1;for(;_0x436adc[_0x3beb64];){const _0x553d7b=_0x436adc[_0x3beb64];if(_0x553d7b['diffData'][_0x39433e]){const _0x2882e2=_0x25fa9f?_0x553d7b['diffData'][_0x39433e]['attributesBefore']:_0x553d7b['diffData'][_0x39433e]['attributesAfter'];_0x985ebf['attributes'][_0x39433e]=_0x2882e2?_0x1a5db8(_0x2882e2):{};break;}_0x3beb64+=_0x71f9ef;}}for(const _0x19bff8 of _0x436adc){_0x19bff8['model']={};for(const _0x2b05eb of _0x19bff8['authors'])_0x51c9b1['set'](_0x2b05eb['id'],_0x2b05eb);for(const _0x232fa6 of _0x1475bc){const _0x317ae7=_0x19bff8['diffData'][_0x232fa6]?_0x19bff8['diffData'][_0x232fa6]['insertions']:'[]',_0x5ccfc4=_0x19bff8['diffData'][_0x232fa6]?_0x19bff8['diffData'][_0x232fa6]['deletions']:'[]';_0x19bff8['model'][_0x232fa6]={'insertions':this['_makeModelFromViewString'](_0x317ae7),'deletions':this['_makeModelFromViewString'](_0x5ccfc4)};}}for(const _0x2e495 of _0x1475bc){let _0x5d055e=null,_0x3bc798=0x0;const _0x60dcae=new Map(Array['from'](_0x5a071e['model'][_0x2e495]['insertions']['markers'])['filter'](([_0x4a799f])=>!_0x4a799f['startsWith']('revision:')));let _0x349843=0x0;for(const _0x450f94 of _0x436adc){const _0x2b4aec=this['_makeTape'](_0x450f94['model'][_0x2e495]['insertions']);_0x450f94==_0x5a071e?(_0x5d055e=_0x2b4aec,_0x3bc798=_0x5d055e['length'],_0x5d055e['forEach'](_0x39753b=>{_0x39753b['id']=_0x349843++;}),this['_processTape'](_0x5d055e)):this['_markInsertions'](_0x5d055e,_0x2b4aec);const _0x199282=_0x5d055e['filter'](_0x259d47=>!_0x259d47['isAdded'])['map'](_0x140a2f=>_0x140a2f['id']);let _0x13df5c=0x0;const _0x239976=this['_makeTape'](_0x450f94['model'][_0x2e495]['deletions']);_0x239976['forEach'](_0x3b7070=>{_0x3b7070['isRemoved']?_0x3b7070['id']=_0x3bc798++:_0x3b7070['id']=_0x199282[_0x13df5c++];}),this['_processTape'](_0x239976),this['_setDistance'](_0x5d055e,'isAdded'),this['_setDistance'](_0x239976,'isRemoved'),_0x450f94==_0x5a071e&&this['_markMarkers'](_0x5d055e,_0x60dcae),_0x5d055e=this['_joinTapes'](_0x5d055e,_0x239976),this['_refreshStartEndIndex'](_0x5d055e),this['_setDistance'](_0x5d055e,'isRemoved');}_0x5d055e=_0x5d055e['filter'](_0x4fbce2=>!(_0x4fbce2['isAdded']&&_0x4fbce2['isRemoved']));const _0x3a398a=new Map(_0x596c67['model'][_0x2e495]['deletions']['markers']),_0x47ce92=new Set(_0x60dcae['keys']());for(const _0x3f7a27 of _0x3a398a['keys']())_0x47ce92['delete'](_0x3f7a27);this['_markSuggestions'](_0x5d055e,_0x47ce92),this['_fixObsoleteTags'](_0x5d055e),_0x5d055e=this['_removeMissingPairs'](_0x5d055e),_0x5d055e=this['_markMismatchedRemovedTags'](_0x5d055e),_0x5d055e=this['_removeUnsupportedChanges'](_0x5d055e);const {root:_0x228e5a,changes:_0x3be726}=this['_makeModelFromTape'](_0x5d055e,_0x51c9b1,_0x2e495);_0x985ebf['model'][_0x2e495]=_0x228e5a;const _0x5a6ef0=_0x358cea['get'](_0x2e495);if(_0x5a6ef0){const _0xf303be=_0x51c9b1['get'](_0x5a6ef0['userId']),_0x4be6fc=new r({'author':_0xf303be,'type':_0x5a6ef0['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2e495});_0x3be726['unshift'](_0x4be6fc),_0x985ebf['attributes'][_0x2e495]['revisionHistoryAttachChange']=_0x4be6fc['id'];}_0x985ebf['changes']=_0x985ebf['changes']['concat'](_0x3be726);}return _0x985ebf;}['_markMarkers'](_0x31d4fc,_0x1602a2){for(let _0x29e7f5=0x0;_0x29e7f5<_0x31d4fc['length'];_0x29e7f5++)for(const [_0x22f209,_0x454b04]of _0x1602a2)_0x454b04['start']['isEqual'](_0x31d4fc[_0x29e7f5]['previousPosition'])&&_0x31d4fc[_0x29e7f5]['markersStart']['push'](_0x22f209),_0x454b04['end']['isEqual'](_0x31d4fc[_0x29e7f5]['nextPosition'])&&_0x31d4fc[_0x29e7f5]['markersEnd']['push'](_0x22f209);}['_joinTapes'](_0x3a8fc2,_0x44cbad){let _0x344606=[],_0x4b2de9=0x0,_0x24ab9b=0x0;for(;_0x4b2de9<_0x3a8fc2['length']||_0x24ab9b<_0x44cbad['length'];){const _0x3166cd=_0x3a8fc2[_0x4b2de9]||{},_0x412ff2=_0x44cbad[_0x24ab9b]||{};if(_0x3166cd['id']==_0x412ff2['id'])_0x4b2de9++,_0x24ab9b++,_0x344606['push'](_0x3166cd);else{if(_0x412ff2['isRemoved']&&_0x3166cd['isAdded']){const {commonTape:_0x14f679,iEnd:_0x47e4a6,jEnd:_0x2fd32e}=this['_threeWayMerge'](_0x3a8fc2,_0x4b2de9,_0x44cbad,_0x24ab9b);_0x344606=_0x344606['concat'](_0x14f679),_0x4b2de9=_0x47e4a6,_0x24ab9b=_0x2fd32e;}else _0x412ff2['isRemoved']?(_0x24ab9b++,_0x344606['push'](_0x412ff2)):(_0x4b2de9++,_0x344606['push'](_0x3166cd));}}return _0x344606;}['_markSuggestions'](_0x269814,_0x2a43ae){const _0x14a083=[];for(let _0x4c109c=0x0;_0x4c109c<_0x269814['length'];_0x4c109c++){for(let _0x449cd6=0x0;_0x449cd6<_0x269814[_0x4c109c]['markersStart']['length'];_0x449cd6++){const _0x36e2f5=_0x269814[_0x4c109c]['markersStart'][_0x449cd6];if(!_0x2a43ae['has'](_0x36e2f5))continue;const {group:_0x183ff4,type:_0x1dd538,authorId:_0x89bc7a}=_0x368c72(_0x36e2f5);'revision-suggestion'!=_0x183ff4||'insertion'!=_0x1dd538&&'deletion'!=_0x1dd538||(_0x14a083['unshift']({'type':_0x1dd538,'name':_0x36e2f5,'userId':_0x89bc7a}),_0x269814[_0x4c109c]['markersStart']['splice'](_0x449cd6,0x1),_0x449cd6--);}_0x404244(_0x269814[_0x4c109c]);for(let _0x52426a=0x0;_0x52426a<_0x269814[_0x4c109c]['markersEnd']['length'];_0x52426a++){const _0x14bbe1=_0x269814[_0x4c109c]['markersEnd'][_0x52426a];if(!_0x2a43ae['has'](_0x14bbe1))continue;const {group:_0x767c07,type:_0x291e9b}=_0x368c72(_0x14bbe1);if('revision-suggestion'!=_0x767c07||'insertion'!=_0x291e9b&&'deletion'!=_0x291e9b)continue;_0x269814[_0x4c109c]['markersEnd']['splice'](_0x52426a,0x1),_0x52426a--;const _0x58357c=_0x14a083['findIndex'](_0x1f6939=>_0x1f6939['name']==_0x14bbe1);_0x58357c>-0x1&&_0x14a083['splice'](_0x58357c,0x1);}}function _0x368c72(_0x1bef34){const _0x1b2690=_0x1bef34['split'](':');return{'group':_0x1b2690[0x0],'type':_0x1b2690[0x1],'subType':_0x1b2690['length']>=0x5?_0x1b2690[0x2]:null,'id':_0x1b2690['length']<0x5?_0x1b2690[0x2]:_0x1b2690[0x3],'authorId':_0x1b2690['length']<0x5?_0x1b2690[0x3]:_0x1b2690[0x4],'markerCount':0x6==_0x1b2690['length']?_0x1b2690[0x5]:null};}function _0x404244(_0x309c4b){for(let _0x37c19a=0x0;_0x37c19a<_0x14a083['length'];_0x37c19a++){if(_0x309c4b['isAdded']&&'insertion'==_0x14a083[_0x37c19a]['type'])return _0x309c4b['isAddSuggestion']=_0x14a083[_0x37c19a],void delete _0x309c4b['isAdded'];if(!_0x309c4b['isAdded']&&!_0x309c4b['isRemoved']&&'deletion'==_0x14a083[_0x37c19a]['type'])return void(_0x309c4b['isRemoveSuggestion']=_0x14a083[_0x37c19a]);}}}['_setDistance'](_0x13e8e2,_0x54f3dd){let _0x39da06=0x0,_0x391cf3=!0x1;const _0x4e9c97=new Map();for(const _0x59a0b6 of _0x13e8e2)_0x59a0b6[_0x54f3dd]?_0x391cf3&&(_0x39da06++,_0x391cf3=!0x1):(_0x39da06++,_0x391cf3=!0x0),_0x4e9c97['set'](_0x59a0b6['id'],_0x39da06);for(let _0x1246db=0x0;_0x1246db<_0x13e8e2['length'];_0x1246db++){if('isRemoved'==_0x54f3dd&&_0x13e8e2[_0x1246db]['isAdded']||'isAdded'==_0x54f3dd&&_0x13e8e2[_0x1246db]['isRemoved'])continue;if('text'==_0x13e8e2[_0x1246db]['type']){_0x13e8e2[_0x1246db]['distance']=0x0;continue;}const _0x1383ee=_0x4e9c97['get'](_0x13e8e2[_0x1246db]['pairId']),_0x43c536=_0x4e9c97['get'](_0x13e8e2[_0x1246db]['id']);_0x13e8e2[_0x1246db]['distance']=_0x1383ee-_0x43c536;}}['_getRevisionsRange'](_0x8520f5,_0x3ba961,_0x3f820f=!0x1){const _0x37e95a=[];let _0x5a3eed=this['repository']['getIndex'](_0x8520f5),_0xb6291d=this['repository']['getIndex'](_0x3ba961);for(-0x1==_0xb6291d&&(_0xb6291d=this['repository']['_revisions']['length'],_0x3f820f=!0x1);_0x5a3eed<_0xb6291d;)_0x37e95a['push'](this['repository']['getRevision'](_0x5a3eed)),_0x5a3eed++;return _0x3f820f&&_0x37e95a['push'](this['repository']['getRevision'](_0x5a3eed)),_0x37e95a;}['_threeWayMerge'](_0x341112,_0x58a07a,_0x5d185e,_0x423606){const _0x4ae4d3=this['editor']['model']['schema'];let _0x466a37=_0x58a07a;for(;_0x341112[_0x466a37]&&_0x341112[_0x466a37]['isAdded'];)_0x466a37++;let _0x4d6150=_0x423606;for(;_0x5d185e[_0x4d6150]&&_0x5d185e[_0x4d6150]['isRemoved'];)_0x4d6150++;_0x232a5d(_0x341112,_0x58a07a,_0x466a37),_0x232a5d(_0x5d185e,_0x423606,_0x4d6150);const _0x11d1cc=_0x5d185e['slice'](_0x423606,_0x4d6150)['concat'](_0x341112['slice'](_0x58a07a,_0x466a37));return _0x11d1cc['sort']((_0x33e53e,_0x596fe3)=>_0x33e53e['side']!=_0x596fe3['side']?_0x33e53e['side']-_0x596fe3['side']:_0x33e53e['level']!=_0x596fe3['level']?_0x33e53e['level']-_0x596fe3['level']:_0x33e53e['distance']!=_0x596fe3['distance']?_0x596fe3['distance']-_0x33e53e['distance']:!!_0x33e53e['isAdded']!=!!_0x596fe3['isAdded']?-0x1==_0x33e53e['side']||0x0==_0x33e53e['side']?_0x33e53e['isAdded']?-0x1:0x1:_0x33e53e['isAdded']?0x1:-0x1:_0x33e53e['index']-_0x596fe3['index']),{'commonTape':_0x11d1cc,'iEnd':_0x466a37,'jEnd':_0x4d6150};function _0x232a5d(_0x56dfd7,_0x76575b,_0x224fa8){let _0x4d7b4b=-0x1,_0x7265e=Number['POSITIVE_INFINITY'],_0x4efc30=!0x0;for(let _0x106bd5=_0x76575b;_0x106bd5<_0x224fa8;_0x106bd5++)if(_0x4ae4d3['isInline'](_0x56dfd7[_0x106bd5]['item'])||(_0x4efc30=!0x1),_0x56dfd7[_0x106bd5]['item']['startIndex']<_0x76575b&&(_0x4d7b4b=_0x106bd5),_0x56dfd7[_0x106bd5]['item']['endIndex']>=_0x224fa8){_0x7265e=_0x106bd5;break;}_0x4efc30&&(_0x4d7b4b=_0x224fa8-0x1);for(let _0xb5806a=_0x76575b;_0xb5806a<_0x224fa8;_0xb5806a++)_0x56dfd7[_0xb5806a]['side']=_0xb5806a<=_0x4d7b4b?-0x1:_0xb5806a<_0x7265e?0x0:0x1,_0x56dfd7[_0xb5806a]['index']=_0xb5806a;let _0x1372eb=0x0;for(let _0x2805df=_0x76575b;_0x2805df<=_0x4d7b4b;_0x2805df++)0x0==_0x56dfd7[_0x2805df]['distance']?_0x56dfd7[_0x2805df]['level']=_0x1372eb:(_0x1372eb++,_0x56dfd7[_0x2805df]['level']=_0x1372eb,_0x1372eb++);for(let _0x2b19c9=_0x76575b;_0x2b19c9<_0x224fa8;_0x2b19c9++)0x0==_0x56dfd7[_0x2b19c9]['side']&&(_0x56dfd7[_0x2b19c9]['level']=_0x1372eb);_0x1372eb=0x0;for(let _0x5e8ab4=_0x224fa8-0x1;_0x5e8ab4>=_0x7265e;_0x5e8ab4--)0x0==_0x56dfd7[_0x5e8ab4]['distance']?_0x56dfd7[_0x5e8ab4]['level']=_0x1372eb:(_0x1372eb--,_0x56dfd7[_0x5e8ab4]['level']=_0x1372eb,_0x1372eb--);}}['_fixObsoleteTags'](_0x3e43db){const _0x168aba=new Map(),_0x3f16a7=this['editor']['model']['schema'];for(let _0x194996=0x1;_0x194996<_0x3e43db['length'];_0x194996++){let _0x41a747,_0x47db5a,_0x38e8f5;const _0x1788d7=_0x3e43db[_0x194996],_0x9197df=_0x3e43db[_0x194996-0x1];if('text'==_0x1788d7['type'])continue;if(_0x1788d7['type']!=_0x9197df['type'])continue;if(!_0x3f16a7['isBlock'](_0x9197df['item'])||_0x3f16a7['isLimit'](_0x9197df['item']))continue;if(!_0x3f16a7['isBlock'](_0x1788d7['item'])||_0x3f16a7['isLimit'](_0x1788d7['item']))continue;if((_0x3e43db[_0x194996]['isAdded']||_0x3e43db[_0x194996]['isAddSuggestion'])&&_0x3e43db[_0x194996-0x1]['isRemoved'])_0x41a747=_0x3e43db[_0x194996],_0x47db5a=_0x3e43db[_0x194996-0x1],_0x38e8f5=_0x194996-0x1;else{if(!_0x3e43db[_0x194996]['isRemoved']||!_0x3e43db[_0x194996-0x1]['isAdded']&&!_0x3e43db[_0x194996-0x1]['isAddSuggestion'])continue;_0x41a747=_0x3e43db[_0x194996-0x1],_0x47db5a=_0x3e43db[_0x194996],_0x38e8f5=_0x194996;}const _0x9d55b2=_0x41a747['level']==_0x47db5a['level'],_0x229d44=Math['abs'](_0x41a747['level'])<Math['abs'](_0x47db5a['level'])&&0x0==_0x47db5a['distance'];(_0x9d55b2||_0x229d44)&&(_0x168aba['set'](_0x47db5a['id'],_0x41a747['id']),_0x3e43db['splice'](_0x38e8f5,0x1),_0x194996--,_0x41a747['isAdded']=!0x1);}for(let _0x445a58=0x0;_0x445a58<_0x3e43db['length'];_0x445a58++)_0x168aba['has'](_0x3e43db[_0x445a58]['pairId'])&&(_0x3e43db[_0x445a58]['pairId']=_0x168aba['get'](_0x3e43db[_0x445a58]['pairId']));}['_removeMissingPairs'](_0xcde437){const _0x669773=new Set(_0xcde437['map'](_0x468e53=>_0x468e53['id']));for(let _0x4a13cb=0x0;_0x4a13cb<_0xcde437['length'];_0x4a13cb++)_0x669773['has'](_0xcde437[_0x4a13cb]['pairId'])||0x0==_0xcde437[_0x4a13cb]['distance']||(_0xcde437[_0x4a13cb]['isIncorrect']=!0x0);return _0xcde437['filter'](_0x1ef6e7=>!_0x1ef6e7['isIncorrect']);}['_markMismatchedRemovedTags'](_0x242335){const _0x10e44e=new Set();for(let _0x1d57aa=0x0;_0x1d57aa<_0x242335['length'];_0x1d57aa++){if(_0x10e44e['has'](_0x242335[_0x1d57aa]['id'])&&_0x242335[_0x1d57aa]['isRemoved']&&(_0x242335[_0x1d57aa]['isIncorrect']=!0x0),_0x242335[_0x1d57aa]['isIncorrect'])continue;if(0x0==_0x242335[_0x1d57aa]['distance'])continue;if('elementStart'!=_0x242335[_0x1d57aa]['type'])continue;if(null==_0x242335[_0x1d57aa]['pairId'])continue;let _0x13c712=_0x1d57aa+0x1,_0x3f9a66=0x0;for(;_0x242335[_0x13c712]['id']!=_0x242335[_0x1d57aa]['pairId'];)'elementStart'==_0x242335[_0x13c712]['type']?_0x3f9a66++:'elementEnd'==_0x242335[_0x13c712]['type']&&_0x3f9a66--,_0x13c712++;if(0x0!=_0x3f9a66){if(_0x242335[_0x1d57aa]['isRemoved'])_0x242335[_0x1d57aa]['isIncorrect']=!0x0;else{for(;_0x13c712!=_0x1d57aa;)_0x242335[_0x13c712]['isRemoved']&&0x0!=_0x242335[_0x13c712]['distance']&&(_0x242335[_0x13c712]['isIncorrect']=!0x0,_0x10e44e['add'](_0x242335[_0x13c712]['pairId'])),_0x13c712--;}}}return _0x242335['filter'](_0x9d9edf=>!_0x9d9edf['isIncorrect']);}['_removeUnsupportedChanges'](_0x3125f0){const _0x118e21=this['editor']['model']['schema'];for(let _0x2abb47=0x0;_0x2abb47<_0x3125f0['length'];_0x2abb47++){if(!(_0x3125f0[_0x2abb47]['isAdded']||_0x3125f0[_0x2abb47]['isAddSuggestion']||_0x3125f0[_0x2abb47]['isRemoved']||_0x3125f0[_0x2abb47]['isRemoveSuggestion']))continue;if(0x0==_0x3125f0[_0x2abb47]['distance'])continue;const _0x128b2c=_0x3125f0[_0x2abb47]['item'];_0x118e21['isBlock'](_0x128b2c)||_0x118e21['isLimit'](_0x128b2c)||(_0x3125f0[_0x2abb47]['isAdded']&&delete _0x3125f0[_0x2abb47]['isAdded'],_0x3125f0[_0x2abb47]['isAddSuggestion']&&delete _0x3125f0[_0x2abb47]['isAddSuggestion'],_0x3125f0[_0x2abb47]['isRemoveSuggestion']&&delete _0x3125f0[_0x2abb47]['isRemoveSuggestion'],_0x3125f0[_0x2abb47]['isRemoved']&&(_0x3125f0[_0x2abb47]['isIncorrect']=!0x0));}return _0x3125f0['filter'](_0x194820=>!_0x194820['isIncorrect']);}['_makeModelFromTape'](_0x2d8f9f,_0x298419,_0x265282){const _0x6ca682=new wt(),_0x4a1a1d=[],_0x52436b=new Map(),_0x48e0a4=this['editor']['model'],_0x33c7d9=_0x48e0a4['schema'],_0x58be0d=[_0x6ca682],_0x3ccbfe={},_0x5b6eba={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x478e67=null;const _0x5e3d04=[0x0];for(let _0x136045=0x0;_0x136045<_0x2d8f9f['length'];_0x136045++)if('elementStart'===_0x2d8f9f[_0x136045]['type']){_0x2d8f9f[_0x136045]['previousPosition']=_0x48e0a4['createPositionFromPath'](_0x6ca682,_0x5e3d04);const _0xfd805e=new ft(_0x2d8f9f[_0x136045]['item']['name'],_0x2d8f9f[_0x136045]['item']['getAttributes']());_0x58be0d[0x0]['_appendChild'](_0xfd805e),_0x5e3d04['push'](0x0),_0x58be0d['unshift'](_0xfd805e),_0x2d8f9f[_0x136045]['nextPosition']=_0x48e0a4['createPositionFromPath'](_0x6ca682,_0x5e3d04);}else'elementEnd'===_0x2d8f9f[_0x136045]['type']?(_0x58be0d['shift'](),_0x2d8f9f[_0x136045]['previousPosition']=_0x48e0a4['createPositionFromPath'](_0x6ca682,_0x5e3d04),_0x5e3d04['pop'](),_0x5e3d04[_0x5e3d04['length']-0x1]++,_0x2d8f9f[_0x136045]['nextPosition']=_0x48e0a4['createPositionFromPath'](_0x6ca682,_0x5e3d04)):(_0x2d8f9f[_0x136045]['previousPosition']=_0x48e0a4['createPositionFromPath'](_0x6ca682,_0x5e3d04),_0x478e67?_0x478e67['_data']+=_0x2d8f9f[_0x136045]['item']['data']:_0x478e67=new _t(_0x2d8f9f[_0x136045]['item']['data'],_0x2d8f9f[_0x136045]['item']['getAttributes']()),_0x2d8f9f[_0x136045+0x1]&&'text'===_0x2d8f9f[_0x136045+0x1]['type']&&_0xc2f663(_0x478e67,_0x2d8f9f[_0x136045+0x1]['item'])||(_0x58be0d[0x0]['_appendChild'](_0x478e67),_0x478e67=null),_0x5e3d04[_0x5e3d04['length']-0x1]+=_0x2d8f9f[_0x136045]['item']['offsetSize'],_0x2d8f9f[_0x136045]['nextPosition']=_0x48e0a4['createPositionFromPath'](_0x6ca682,_0x5e3d04));for(let _0x17e230=0x0;_0x17e230<_0x2d8f9f['length'];_0x17e230++){const _0x32b880=_0x2d8f9f[_0x17e230]['previousPosition'],_0x21623a=_0x2d8f9f[_0x17e230]['nextPosition'];for(const _0x2a85af of _0x2d8f9f[_0x17e230]['markersStart'])_0x52436b['set'](_0x2a85af,{'start':_0x32b880,'end':null});_0x16d507('isRemoveSuggestion',_0x17e230,_0x32b880,_0x21623a),_0x16d507('isAddSuggestion',_0x17e230,_0x32b880,_0x21623a),_0x16d507('isRemoved',_0x17e230,_0x32b880,_0x21623a),_0x16d507('isAdded',_0x17e230,_0x32b880,_0x21623a);for(const _0x1acd03 of _0x2d8f9f[_0x17e230]['markersEnd']){_0x52436b['get'](_0x1acd03)['end']=_0x21623a;}}for(const [_0x5ada3a,_0x2862b0]of _0x52436b){const _0x32f3cc=this['editor']['model']['createRange'](_0x2862b0['start'],_0x2862b0['end']);_0x6ca682['markers']['set'](_0x5ada3a,_0x32f3cc);}return _0x4a1a1d['sort']((_0x5b118e,_0x1ce444)=>{const _0x2ad079=_0x6ca682['markers']['get']('revision:'+_0x5b118e['id']),_0x991491=_0x6ca682['markers']['get']('revision:'+_0x1ce444['id']);return _0x2ad079['start']['isBefore'](_0x991491['start'])?-0x1:_0x2ad079['start']['isAfter'](_0x991491['start'])?0x1:_0x2ad079['end']['isBefore'](_0x991491['end'])?-0x1:_0x2ad079['end']['isAfter'](_0x991491['end'])?0x1:'add'===_0x5b118e['type']?-0x1:0x1;}),{'root':_0x6ca682,'changes':_0x4a1a1d};function _0x16d507(_0x4268ee,_0x227705,_0x59fd59,_0x28176e){const _0x3c5576=!!_0x2d8f9f[_0x227705][_0x4268ee],_0x2de434=_0x3c5576?_0x2d8f9f[_0x227705][_0x4268ee]['userId']:null,_0x406b09=_0x227705===_0x2d8f9f['length']-0x1,_0x270a35=_0x5b6eba[_0x4268ee][0x0],_0x5e8935=_0x33c7d9['isObject'](_0x2d8f9f[_0x227705]['item']);!_0x3ccbfe[_0x4268ee]&&_0x3c5576?_0x3ccbfe[_0x4268ee]={'start':_0x59fd59,'tapeItem':_0x2d8f9f[_0x227705],'userId':_0x2de434,'type':_0x4268ee}:_0x3ccbfe[_0x4268ee]&&!_0x3c5576?(_0x3ccbfe[_0x4268ee]['end']=_0x59fd59,_0x1ace34(_0x3ccbfe[_0x4268ee]),_0x3ccbfe[_0x4268ee]=null):_0x3ccbfe[_0x4268ee]&&_0x3c5576&&_0x3ccbfe[_0x4268ee]['userId']!==_0x2de434&&(_0x3ccbfe[_0x4268ee]['end']=_0x59fd59,_0x270a35&&_0x270a35['userId']===_0x3ccbfe[_0x4268ee]['userId']||_0x1ace34(_0x3ccbfe[_0x4268ee]),_0x3ccbfe[_0x4268ee]={'start':_0x59fd59,'tapeItem':_0x2d8f9f[_0x227705],'userId':_0x2de434,'type':_0x4268ee}),_0x3ccbfe[_0x4268ee]&&_0x5e8935&&('elementStart'!==_0x2d8f9f[_0x227705]['type']||_0x270a35&&_0x270a35['userId']===_0x2de434||_0x5b6eba[_0x4268ee]['unshift']({'userId':_0x2de434,'object':_0x2d8f9f[_0x227705]['item'],'change':_0x3ccbfe[_0x4268ee]}),'elementEnd'===_0x2d8f9f[_0x227705]['type']&&_0x270a35&&_0x270a35['object']===_0x2d8f9f[_0x227705]['item']&&(_0x5b6eba[_0x4268ee]['shift'](),_0x3ccbfe[_0x4268ee]=_0x270a35['change'])),_0x3ccbfe[_0x4268ee]&&_0x406b09&&(_0x3ccbfe[_0x4268ee]['end']=_0x28176e,_0x1ace34(_0x3ccbfe[_0x4268ee]),_0x3ccbfe[_0x4268ee]=null);}function _0x1ace34({start:_0x3d7dd4,end:_0x3bda95,tapeItem:_0x5b7b14,userId:_0x3ccec3,type:_0x1af630}){const _0x2987af=_0x5b7b14['item'],_0x58a4cc=_0x48e0a4['schema']['isBlock'](_0x2987af)&&!_0x48e0a4['schema']['isLimit'](_0x2987af),_0x1b3ab7=_0x3d7dd4['nodeAfter']==_0x3bda95['parent']&&_0x3bda95['isAtStart'];if(_0x58a4cc&&_0x1b3ab7)return;const _0x2be77f=_0x48e0a4['createRange'](_0x3d7dd4,_0x3bda95),_0x5dfaad=_0x298419['get'](_0x3ccec3),_0x2f5dbe=new r({'author':_0x5dfaad,'type':'isAdded'==_0x1af630||'isAddSuggestion'==_0x1af630?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x1af630||'isRemoveSuggestion'==_0x1af630},'createdAt':new Date(),'rootName':_0x265282});_0x4a1a1d['push'](_0x2f5dbe),_0x6ca682['markers']['set']('revision:'+_0x2f5dbe['id'],_0x2be77f);}function _0xc2f663(_0x5cddcc,_0x31aea4){const _0x155874=_0x5cddcc['getAttributes'](),_0x2b77be=_0x31aea4['getAttributes']();for(const _0x327749 of _0x155874){if(_0x327749[0x1]!==_0x31aea4['getAttribute'](_0x327749[0x0]))return!0x1;_0x2b77be['next']();}return _0x2b77be['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0xe707d7=>{const _0x236818=_0xe707d7['markerName']['split'](':')[0x1],_0x2197ec=this['_getChangeFromId'](_0x236818);if(!_0x2197ec)return null;const _0x64979e='add'==_0x2197ec['type']?'insertion':'deletion',_0x28eb5d=['ck-suggestion-marker','ck-suggestion-marker-'+_0x64979e];return _0x2197ec['data']['isSuggestion']&&_0x28eb5d['push']('ck-suggestion-marker-'+_0x64979e+'-new'),this['activeChange']==_0x2197ec&&_0x28eb5d['push']('ck-suggestion-marker--active'),{'classes':_0x28eb5d,'attributes':{'data-change-id':_0x236818}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x3d593b=>{_0x3d593b['on']('element:pre',(_0x128451,_0x1a5ab1,_0x286032)=>{const _0x4e0fd2=_0x1a5ab1['viewItem']['getChild'](0x0);if(!_0x4e0fd2||!_0x4e0fd2['is']('element','code'))return;if(!_0x286032['consumable']['consume'](_0x4e0fd2,{'attributes':['vid_start','vid_end']}))return;const _0x2c315e=_0x1a5ab1['modelRange']['start']['nodeAfter'];_0x286032['writer']['setAttribute']('vid_start',_0x4e0fd2['getAttribute']('vid_start'),_0x2c315e),_0x286032['writer']['setAttribute']('vid_end',_0x4e0fd2['getAttribute']('vid_end'),_0x2c315e);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x283953=>{_0x283953['on']('element',(_0x290d97,_0x45ef30,_0x439b58)=>{if(!_0x439b58['consumable']['consume'](_0x45ef30['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x45ef30['modelRange']['isCollapsed'])return;const _0x2ee63a=_0x45ef30['modelRange']['start']['nodeAfter'];_0x2ee63a['hasAttribute']('vid_start')||_0x2ee63a['hasAttribute']('vid')||(_0x439b58['writer']['setAttribute']('vid_start',_0x45ef30['viewItem']['getAttribute']('vid_start'),_0x2ee63a),_0x439b58['writer']['setAttribute']('vid_end',_0x45ef30['viewItem']['getAttribute']('vid_end'),_0x2ee63a));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x42201f=>_0x42201f['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x5b3730,[,_0x24e8d8])=>{['vid_start','vid_end','vid']['includes'](_0x24e8d8)&&(_0x5b3730['return']=!0x0,_0x5b3730['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x826897=>{_0x826897['on']('attribute:vid',(_0xf2f1a9,_0x5f027f,_0x5ccf5a)=>{if('\x20'!=_0x5f027f['item']['data']||_0x5f027f['item']['parent']['maxOffset']>0x1)return;if(!_0x5ccf5a['consumable']['consume'](_0x5f027f['item'],_0xf2f1a9['name']))return;const _0x4bfb15=_0x5ccf5a['writer'],_0x3ac7ad=_0x5ccf5a['mapper']['toViewRange'](_0x5f027f['range']);_0x4bfb15['wrap'](_0x3ac7ad,_0x4bfb15['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x5328de){const _0x4b6f8b=_0x5328de['plugins']['get']('RevisionViewer');return(_0x9eebfe,_0x4979fa,_0xf13262)=>{const _0x1df0e8=_0x4979fa['markerName']['split'](':')[0x1],_0xd65442=_0x4b6f8b['_getChangeFromId'](_0x1df0e8);if(!_0xd65442)return null;const _0x16ce04='add'==_0xd65442['type']?'split':'merge';if(!_0xf13262['consumable']['test'](_0x4979fa['markerRange'],_0x9eebfe['name']))return;const _0x1fcaaa=_0x4979fa['markerRange']['getWalker'](),_0x4fe244=_0x4979fa['markerRange']['start'],_0x2d11c3=_0x5328de['model']['schema'];let _0x50e053=null,_0x2b9f47=null,_0x1d3c0d=!0x1,_0x2f33fd=!0x1;for(const _0x4322de of _0x1fcaaa){const _0x2b1843=_0x4322de['item'];_0x1d3c0d=_0x1d3c0d||_0x2d11c3['isContent'](_0x2b1843);const _0x3fcdb8=_0xf13262['mapper']['toViewElement'](_0x2b1843);if(_0x3fcdb8&&_0x3fcdb8['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4322de['type']&&(_0x2d11c3['isBlock'](_0x2b1843)&&!_0x2d11c3['isLimit'](_0x2b1843)&&(_0x2b1843['nextSibling']||_0x4fe244['isAtEnd']?_0x50e053&&_0x50e053['parent']==_0x2b1843||(_0x50e053=_0x2b1843,_0x4ea59b(_0x4322de['previousPosition']),_0x2f33fd=!0x0):_0x2b9f47=_0x2b9f47||_0x4322de['previousPosition']));}function _0x4ea59b(_0x341b7c){const _0xad2fa7=_0xf13262['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x16ce04}),_0x5bafe1=_0xf13262['mapper']['toViewPosition'](_0x341b7c);_0xd65442['data']['isSuggestion']&&_0xf13262['writer']['addClass']('ck-suggestion-marker-'+_0x16ce04+'-new',_0xad2fa7),_0x4b6f8b['activeChange']==_0xd65442&&_0xf13262['writer']['addClass']('ck-suggestion-marker--active',_0xad2fa7),_0xf13262['writer']['insert'](_0x5bafe1,_0xad2fa7),_0xf13262['mapper']['bindElementToMarker'](_0xad2fa7,_0x4979fa['markerName']);}_0x1d3c0d||_0x2f33fd||!_0x2b9f47||_0x4ea59b(_0x2b9f47);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x1c1ffc,_0x45238a,_0x470cc6)=>{const _0x46e2bf=_0x470cc6['mapper']['markerNameToElements'](_0x45238a['markerName']);if(_0x46e2bf){for(const _0x5b7708 of _0x46e2bf)(_0x5b7708['hasClass']('ck-suggestion-marker-split')||_0x5b7708['hasClass']('ck-suggestion-marker-merge'))&&(_0x470cc6['mapper']['unbindElementFromMarkerName'](_0x5b7708,_0x45238a['markerName']),_0x470cc6['writer']['remove'](_0x5b7708));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x4cf1e7,_0x1e8a86,_0x16e8e1)=>{const _0x3d4281=_0x1e8a86['markerName']['split'](':')[0x1],_0xbff221=this['_getChangeFromId'](_0x3d4281);if(!_0xbff221)return null;const _0x11e583='add'==_0xbff221['type']?'split':'merge';if(_0x16e8e1['consumable']['test'](_0x1e8a86['markerRange'],_0x4cf1e7['name']))for(const _0x3cd937 of _0x1e8a86['markerRange']['getItems']()){if(!_0x3cd937['is']('element','softBreak'))continue;const _0xd8e05f=_0x16e8e1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x11e583}),_0x3e52b8=_0x16e8e1['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x3cd937));_0xbff221['data']['isSuggestion']&&_0x16e8e1['writer']['addClass']('ck-suggestion-marker-'+_0x11e583+'-new',_0xd8e05f),this['activeChange']==_0xbff221&&_0x16e8e1['writer']['addClass']('ck-suggestion-marker--active',_0xd8e05f),_0x16e8e1['writer']['insert'](_0x3e52b8,_0xd8e05f),_0x16e8e1['mapper']['bindElementToMarker'](_0xd8e05f,_0x1e8a86['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x4f2af1=>{for(const _0x5880d6 of this['editor']['model']['document']['getRootNames']()){const _0x3ecbb7=this['editor']['model']['document']['getRoot'](_0x5880d6),_0x2284bc=this['editor']['editing']['view']['document']['getRoot'](_0x5880d6);if(_0x2284bc){const _0x5cdf45=_0x3ecbb7['getAttribute']('revisionHistoryAttachChange');if(_0x4f2af1['removeAttribute']('data-change-id',_0x2284bc),_0x4f2af1['removeClass']('ck-revision-history-root-add',_0x2284bc),_0x4f2af1['removeClass']('ck-revision-history-root-remove',_0x2284bc),_0x4f2af1['removeClass']('ck-revision-history-root--active',_0x2284bc),_0x5cdf45){const _0x2e2f49=this['_getChangeFromId'](_0x5cdf45);if(!_0x2e2f49)return null;_0x4f2af1['setAttribute']('data-change-id',_0x5cdf45,_0x2284bc),_0x4f2af1['addClass']('ck-revision-history-root-'+_0x2e2f49['type'],_0x2284bc),this['activeChange']==_0x2e2f49&&_0x4f2af1['addClass']('ck-revision-history-root--active',_0x2284bc);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x225983=>'revision-comment:'+_0x225983,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x34084f=>'revision-suggestion:'+_0x34084f,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x174208=>({'name':'suggestion:'+_0x174208,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x19d57f=>{const _0xaac89c=_0x19d57f['markerName']['split'](':')[0x1];return'insertion'!=_0xaac89c&&'deletion'!=_0xaac89c?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0xaac89c]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x59bf52,_0x552ce6,_0x298894)=>{const _0x36f7dc=_0x298894['mapper']['markerNameToElements'](_0x552ce6['markerName']);if(_0x36f7dc){for(const _0x5b8e04 of _0x36f7dc)_0x5b8e04['is']('uiElement')&&(_0x298894['mapper']['unbindElementFromMarkerName'](_0x5b8e04,_0x552ce6['markerName']),_0x298894['writer']['remove'](_0x5b8e04));}},{'priority':'high'});}['_getChangeFromId'](_0xd68c0b){return this['_changeIdToChange']['get'](_0xd68c0b);}['_getViewForChange'](_0x2ca805){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x2ca805),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x2e6c0b,_0x3a0cd8,_0x310279,_0x3db3d7)=>{_0x3db3d7&&this['_balloon']['remove'](_0x3db3d7),_0x310279&&(this['_balloon']['add']({'view':_0x310279,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x4fecd4=this['editor']['editing'],_0x339fff=this['_getChangeFromId'](_0x310279['changeId']);let _0x355f75;if(_0x339fff['data']['isOnRoot']){const _0x5e7d4a=_0x4fecd4['view']['getDomRoot'](_0x339fff['rootName']);_0x355f75=Array['from'](_0x5e7d4a['getClientRects']());}else{const _0x4f1d16=this['editor']['model']['markers']['get']('revision:'+_0x310279['changeId']);_0x355f75=Array['from'](_0x4fecd4['mapper']['markerNameToElements'](_0x4f1d16['name']))['map'](_0x4925a0=>_0x4fecd4['view']['domConverter']['mapViewToDom'](_0x4925a0))['map'](_0x26a613=>Array['from'](_0x26a613['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x355f75[0x0];return _0x355f75['find'](_0x634965=>_0x634965['top']-0x3<=this['_activeViewTarget']['y']&&_0x634965['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x634965['left']-0x3<=this['_activeViewTarget']['x']&&_0x634965['right']+0x3>=this['_activeViewTarget']['x'])||_0x355f75[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x1ef541,_0x9593cb,_0x1f3d40,_0x16b5b0)=>{this['activeView']=_0x1f3d40?this['_getViewForChange'](_0x1f3d40):null,this['editor']['model']['change'](()=>{const _0xb241ff=this['editor']['editing'];_0x16b5b0&&(_0x16b5b0['data']['isOnRoot']?_0xb241ff['view']['change'](_0x5ec6f9=>{_0x5ec6f9['removeClass']('ck-revision-history-root--active',_0xb241ff['view']['document']['getRoot'](_0x16b5b0['rootName']));}):_0xb241ff['reconvertMarker']('revision:'+_0x16b5b0['id'])),_0x1f3d40&&(_0x1f3d40['data']['isOnRoot']?_0xb241ff['view']['change'](_0x1cacad=>{_0x1cacad['addClass']('ck-revision-history-root--active',_0xb241ff['view']['document']['getRoot'](_0x1f3d40['rootName']));}):_0xb241ff['reconvertMarker']('revision:'+_0x1f3d40['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x259d6a,_0x150595)=>{if(this['activeChange'])return;const _0x38caa4=this['_findChangeIdFromDomTarget'](_0x150595['target']),_0x25c2ae=this['_changeIdToChange']['get'](_0x38caa4);_0x25c2ae?(this['_activeViewTarget']={'x':_0x150595['domEvent']['x'],'y':_0x150595['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x25c2ae)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x2bf31c,_0x449e3f)=>{const _0x4ae323=this['_findChangeIdFromDomTarget'](_0x449e3f['target']),_0x517211=this['_changeIdToChange']['get'](_0x4ae323);_0x517211?(this['_activeViewTarget']={'x':_0x449e3f['domEvent']['x'],'y':_0x449e3f['domEvent']['y']},_0x517211===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x517211):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x20074d){do{const _0x3af809=_0x20074d['getAttribute']('data-change-id');if(_0x3af809)return _0x3af809;_0x20074d=_0x20074d['parent'];}while(_0x20074d);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x84d078=>{for(const _0x3e8e68 of this['editor']['model']['markers'])_0x84d078['removeMarker'](_0x3e8e68);});}}function tt(_0x23b13c,_0x588274){return(_0x41e7e3,_0x1282fa,_0x748f4a)=>{if(!_0x748f4a['consumable']['test'](_0x1282fa['markerRange'],_0x41e7e3['name']))return;const _0x7bddde=_0x1282fa['markerRange']['getWalker'](),_0x2dca7c=_0x1282fa['markerRange']['start'],_0x29a734=_0x23b13c['model']['schema'];let _0x1ea503=null,_0x43fc46=null,_0x295a98=!0x1,_0x37304e=!0x1;for(const _0x4ac135 of _0x7bddde){const _0x34d809=_0x4ac135['item'];_0x295a98=_0x295a98||_0x29a734['isContent'](_0x34d809);const _0x459bd0=_0x748f4a['mapper']['toViewElement'](_0x34d809);if(_0x459bd0&&_0x459bd0['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4ac135['type']&&(_0x29a734['isBlock'](_0x34d809)&&!_0x29a734['isLimit'](_0x34d809)&&(_0x34d809['nextSibling']||_0x2dca7c['isAtEnd']?_0x1ea503&&_0x1ea503['parent']==_0x34d809||(_0x1ea503=_0x34d809,_0x5c3cb6(_0x4ac135['previousPosition']),_0x37304e=!0x0):_0x43fc46=_0x43fc46||_0x4ac135['previousPosition']));}function _0x5c3cb6(_0x2c03a7){const _0x35ce17=_0x748f4a['mapper']['toViewPosition'](_0x2c03a7),_0x12c57e=_0x748f4a['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x588274});_0x748f4a['writer']['insert'](_0x35ce17,_0x12c57e),_0x748f4a['mapper']['bindElementToMarker'](_0x12c57e,_0x1282fa['markerName']);}_0x295a98||_0x37304e||!_0x43fc46||_0x5c3cb6(_0x43fc46);};}class yt extends _0x23716f{constructor(_0x5affa7){super(_0x5affa7);const _0x4976ed=_0x5affa7['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x4976ed,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4976ed,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x3ce1a6=this['editor'],_0x51077=_0x3ce1a6['plugins']['get'](d),_0x2f058a=_0x51077['isReady']?_0x51077['diff']['newRevisionId']:null;_0x3ce1a6['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2f058a);}['refresh'](){const {isReady:_0x53bc17,isEnabled:_0x24973a,repository:_0x536ab4,diff:_0x4bf717}=this['editor']['plugins']['get'](d),_0x143ebb=_0x4bf717&&_0x536ab4['getLaterVisibleRevision'](_0x4bf717['newRevisionId']);this['isEnabled']=_0x53bc17&&_0x24973a&&Boolean(_0x143ebb);}}class bt extends _0x23716f{['_step'];constructor(_0x4098be,{direction:_0x30805b}){super(_0x4098be);const _0x40bb7b=_0x4098be['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x30805b?0x1:-0x1,this['listenTo'](_0x40bb7b,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x40bb7b,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x40bb7b,'change:activeChange',()=>this['refresh']());}['execute'](){const _0xf02017=this['editor'],_0x48d890=_0xf02017['plugins']['get'](d),{isNavigationMode:_0xf7becb,currentChangeNumber:_0x3638a1}=_0x48d890;let _0x9a5c78;if(_0x48d890['activeChange']=_0xf7becb?_0x48d890['diff']['changes']['get'](_0x3638a1+this['_step']):_0x48d890['diff']['changes']['first'],_0x48d890['activeChange']['data']['isOnRoot'])_0x9a5c78=_0xf02017['editing']['view']['getDomRoot'](_0x48d890['activeChange']['rootName']);else{const _0x2d124e=_0xf02017['model']['markers']['get']('revision:'+_0x48d890['activeChange']['id']);_0x9a5c78=_0x195412(_0xf02017['editing'],_0x2d124e);}_0x4e2d49({'target':_0x9a5c78,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x3349a5,currentChangeNumber:_0x52db06,numberOfChanges:_0x2fa986,isReady:_0x2bba6c,isEnabled:_0x1c6c12}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x1c6c12&&_0x2bba6c&&_0x2fa986)&&(!_0x3349a5||(0x1===this['_step']?_0x52db06<_0x2fa986-0x1:_0x52db06>0x0));}}class bi extends _0x18c416{constructor(_0x452700){super(_0x452700);const _0xa21dd8=this['bindTemplate'],_0x31954b=new _0x58517a(_0x452700),_0x5bf550=new _0x58517a(_0x452700);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',(_0x26dd8d,_0x1b0b62)=>_0x26dd8d&&_0x1b0b62>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x441d36,_0x891a51,_0x1963e1,_0x716e7e)=>{if(!_0x441d36)return R(_0x452700,'Loading...');if(!_0x1963e1)return R(_0x452700,'No\x20changes');const _0x59eb28=R(_0x452700,'NUMBER_OF_CHANGES',_0x1963e1);return _0x716e7e?R(_0x452700,'X_OF_Y_CHANGES',[_0x891a51+0x1,_0x1963e1]):_0x59eb28;}),_0x31954b['set']({'label':R(_0x452700,'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'}),_0x5bf550['set']({'label':R(_0x452700,'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'}),_0x31954b['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x5bf550['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x31954b['on']('execute',()=>this['fire']('execute','backward')),_0x5bf550['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',_0xa21dd8['if']('_isStatusLabelVisible','ck-hidden',_0x5b22fc=>!_0x5b22fc)]},'children':[{'text':_0xa21dd8['to']('isNavigationMode',_0x21814a=>_0x21814a?R(_0x452700,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x452700,'Total')+':\x20')}]},{'text':_0xa21dd8['to']('_statusText')}]},new _0x5744a8(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x31954b,_0x5bf550]}]});}}const ie='ck-editor__editable__loading-overlay';class te extends _0x487362{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x32d0e6=this['editor']['editing']['view'];_0x32d0e6['change'](_0x3e1ca0=>{for(const _0x593973 of _0x32d0e6['document']['roots'])_0x3e1ca0['addClass'](ie,_0x593973);});}['hide'](){const _0x490d50=this['editor']['editing']['view'];_0x490d50['change'](_0x17cf85=>{for(const _0x2ca64a of _0x490d50['document']['roots'])_0x17cf85['removeClass'](ie,_0x2ca64a);});}}class m extends _0x487362{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,te];}['init'](){const _0x21d04e=this['editor'],_0x163c44=_0x21d04e['plugins']['get'](d),_0x634949=_0x21d04e['plugins']['get'](te);_0x21d04e['ui']['componentFactory']['add']('exitToEditing',_0x4d011d=>{const _0x4afcab=new _0x58517a(_0x4d011d);return _0x4afcab['set']({'label':R(_0x4d011d,'Back\x20to\x20editing'),'icon':_0x3ceb60['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x4afcab,'execute',()=>{_0x21d04e['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x4afcab;}),_0x21d04e['ui']['componentFactory']['add']('restoreRevision',_0x17e08f=>{const _0x3bd712=new _0x58517a(_0x17e08f);return _0x3bd712['set']({'label':R(_0x17e08f,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x3bd712['bind']('isEnabled')['to'](_0x21d04e['commands']['get']('restoreRevision')),this['listenTo'](_0x3bd712,'execute',()=>_0x21d04e['execute']('restoreRevision')),_0x3bd712;}),_0x21d04e['ui']['componentFactory']['add']('changesNavigation',_0x19de0f=>{const _0x3db77b=new bi(_0x19de0f),_0x4fffc2=_0x21d04e['commands']['get']('showPreviousChange'),_0x2b3b9f=_0x21d04e['commands']['get']('showNextChange');return _0x3db77b['bind']('isBackwardNavigationEnabled')['to'](_0x4fffc2,'isEnabled'),_0x3db77b['bind']('isForwardNavigationEnabled')['to'](_0x2b3b9f,'isEnabled'),_0x3db77b['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x163c44),this['listenTo'](_0x3db77b,'execute',(_0x502526,_0x5866f6)=>{_0x21d04e['execute']('forward'===_0x5866f6?'showNextChange':'showPreviousChange');}),_0x3db77b;}),_0x634949['show'](),_0x163c44['on']('change:isReady',(_0x3ba067,_0x5b0df6,_0x200c9a)=>{_0x200c9a?_0x634949['hide']():_0x634949['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x4449b4,_0x48584a){super(_0x4449b4,_0x48584a);const _0x208f4d=this['bindTemplate'];this['set']({'label':R(_0x4449b4,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x4449b4,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x208f4d['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x1487c4=this['fieldView']['element'];this['_tooltipString']=_0x1487c4['scrollWidth']>_0x1487c4['clientWidth']&&_0x1487c4['value']||'';}}class ti extends _0x18c416{constructor(_0x163b47,_0x210777,_0x191612){super(_0x163b47);const _0x3342c7=new _0x581f7a();_0x3342c7['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 _0x314a96=['ck','ck-revision-history-sidebar__revision-author'];_0x191612&&_0x314a96['push']('ck-revision-history-sidebar__revision-author_creator');const _0x4366f0=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x163b47,_0x191612?'Revision\x20creator':'Revision\x20author')},'children':[_0x3342c7,_0x210777['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x314a96},'children':_0x4366f0});}}function ni(_0x305ede,_0x3ad436){const _0x40c8af=_0x305ede['bindTemplate'],_0x1fcefe=_0x305ede['locale'],_0x28e34d=_0x640641(_0x1fcefe);_0x28e34d['panelPosition']='sw';const _0xba9628=function(_0x26db6f,_0x48378d){const _0x40f846=function(_0x42fe26,_0x5cd859){const _0x4be321=_0x42fe26['locale'],_0x257fe4={'Compare\x20against\x20selected':R(_0x4be321,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x4be321,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x4be321,'Restore\x20this\x20revision')};return _0x5cd859['map'](_0x2a9e19=>{const _0x9a8caa=_0x257fe4[_0x2a9e19['name']];return _0x9a8caa&&_0x9a8caa!==_0x2a9e19['name']&&(_0x2a9e19['name']=_0x9a8caa),_0x2a9e19;});}(_0x26db6f,_0x48378d),_0x16b828=new _0x294022();for(const _0x21b1e5 of _0x40f846){const _0x15936d={'type':'button','model':new to({'label':_0x21b1e5['name'],'class':_0x21b1e5['class'],'withText':!0x0,'role':'menuitem','_action':_0x21b1e5['action']})};_0x15936d['model']['bind']('isEnabled')['to'](_0x26db6f,'isActionsDropdownOpen',_0x3fa4d3=>'function'!=typeof _0x21b1e5['isEnabled']||(!_0x3fa4d3||_0x21b1e5['isEnabled'](_0x26db6f))),_0x16b828['add'](_0x15936d);}return _0x16b828;}(_0x305ede,_0x3ad436);return _0x305ede['bind']('isActionsDropdownOpen')['to'](_0x28e34d,'isOpen'),_0x28e34d['buttonView']['set']({'label':R(_0x1fcefe,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3ceb60['threeVerticalDots']}),_0x28e34d['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x40c8af['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x40c8af['to'](_0x3c02ef=>_0x3c02ef['stopPropagation']())}}),_0x28e34d['on']('execute',_0x1b393b=>{_0x305ede['isReady']&&'function'==typeof _0x1b393b['source']['_action']&&_0x1b393b['source']['_action'](_0x305ede);}),_0x319680(_0x28e34d,_0xba9628,{'role':'menu'}),_0x28e34d['listenTo'](_0x305ede,'change:isActionsDropdownOpen',(_0x2ca933,_0x8e70b3,_0x1c4750)=>{if(_0x1c4750)for(const _0x3a0f25 of _0x28e34d['listView']['items']){const _0x2dba08=_0x3a0f25['children']['first'],_0x25215e=_0x3ad436['find'](_0x35e4a4=>_0x35e4a4['action']===_0x2dba08['_action'])['isVisible'];_0x3a0f25['isVisible']=void 0x0===_0x25215e||_0x25215e(_0x305ede);}}),_0x28e34d;}class ai extends/* #__PURE__ -- @preserve */
26
- _0x2a2c34(_0x18c416){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x4620e4,_0x1e9965,_0x4e7b94,_0x40b7a7){super(_0x4620e4);const _0x239ad7=this['bindTemplate'],_0x1e9b80=function(_0xfa6178,_0x2428a5){const _0x146249=Array['from'](_0x2428a5['authors'])['filter'](_0x112620=>_0x112620!=_0x2428a5['creator']);return _0x2428a5['creator']&&_0x146249['unshift'](_0x2428a5['creator']),_0x146249['map'](_0x44b38d=>new ti(_0xfa6178,_0x44b38d,_0x44b38d==_0x2428a5['creator']));}(_0x4620e4,_0x1e9965);this['id']=_0x1e9965['id'],this['_revision']=_0x1e9965,this['_requireRevisionName']=_0x40b7a7,this['bind']('name','createdAt')['to'](_0x1e9965),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x1c9501=>{return _0x3d2688=_0x4620e4['uiLanguage'],(_0x1a2ca=_0x1c9501)['toLocaleDateString'](_0x3d2688,{'month':'long','day':'numeric'})+',\x20'+_0x1a2ca['toLocaleTimeString'](_0x3d2688,{'hour':'numeric','minute':'numeric'});var _0x3d2688,_0x1a2ca;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x4620e4,_0x24c1fe),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x35911b=>_0x35911b||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x2b7f7a,_0x468bd3)=>_0x2b7f7a&&_0x468bd3),this['revisionActionsView']=_0x4e7b94&&_0x4e7b94['length']?ni(this,_0x4e7b94):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x239ad7['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x239ad7['if']('isEnabled','ck-disabled',_0x3ab4bd=>!_0x3ab4bd),_0x239ad7['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x239ad7['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x239ad7['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':_0x239ad7['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':_0x1e9b80}]},this['revisionActionsView']],'on':{'click':_0x239ad7['to'](_0x5cda34=>{_0x5cda34['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0xf55397=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0xf55397,'change',()=>{this['_requireRevisionName']&&!_0xf55397['value']||this['fire']('setName',{'id':this['id'],'name':_0xf55397['value']}),_0xf55397['value']||(_0xf55397['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(_0x1032e8,_0x3ff0ef){const _0x1b22ae=_0x49c1e3['fromJSDate'](_0x1032e8)['setLocale'](_0x3ff0ef),_0x4f7e67=_0x49c1e3['local'](),_0x1354a8=_0x4f7e67['minus']({'days':0x1})['startOf']('day');let _0x5177e0,_0x4314b4;return _0x1b22ae['hasSame'](_0x4f7e67,'day')?(_0x5177e0=_0x1b22ae['startOf']('day')['toJSDate'](),_0x4314b4=_0x1b22ae['toRelativeCalendar']()):_0x1b22ae['hasSame'](_0x1354a8,'day')?(_0x5177e0=_0x1354a8['toJSDate'](),_0x4314b4=_0x1b22ae['toRelativeCalendar']()):_0x1b22ae['hasSame'](_0x4f7e67,'week')?(_0x5177e0=_0x1b22ae['startOf']('week')['toJSDate'](),_0x4314b4=_0x1b22ae['weekdayLong']||''):_0x1b22ae['hasSame'](_0x4f7e67,'year')?(_0x5177e0=_0x1b22ae['startOf']('month')['toJSDate'](),_0x4314b4=_0x1b22ae['monthLong']||''):(_0x5177e0=_0x1b22ae['startOf']('year')['toJSDate'](),_0x4314b4=String(_0x1b22ae['year'])),{'startDate':_0x5177e0,'localizedPeriodName':_0x4314b4};}class mi extends _0x18c416{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2444dd,_0x1d9c7b,_0x388138,_0x31126a){super(_0x2444dd);const _0x11279f=di(_0x1d9c7b,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x1d9c7b,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x388138,this['_requireRevisionName']=_0x31126a,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':_0x11279f}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x4fddd9){const _0x47f5e7=new ai(this['locale'],_0x4fddd9,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x47f5e7);}['removeRevision'](_0x263c7b){const _0x5570f3=this['revisionViews']['find'](_0x1590b3=>_0x1590b3['id']===_0x263c7b['id']);this['revisionViews']['remove'](_0x5570f3);}}class rs extends _0x18c416{constructor(_0x3e84a7){super(_0x3e84a7);const _0x4a475e=new _0x581f7a();_0x4a475e['content']=_0x3ceb60['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x4a475e,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x3e84a7,'Revision\x20history')]}]});}}class ci extends _0x18c416{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3a5640,_0x257bba,_0x15c887,_0x5dd0ee){super(_0x3a5640);const _0xb40f76=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x257bba,this['_revisionActions']=_0x15c887,this['_requireRevisionName']=_0x5dd0ee,this['on']('select',(_0x39e704,_0xcda4a9)=>{this['fire']('revisionSelected',_0xcda4a9);}),this['on']('setName',(_0x419b3d,_0x1e09a0)=>{this['fire']('revisionSetName',_0x1e09a0);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new rs(_0x3a5640),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0xb40f76['if']('isEnabled','ck-disabled',_0x3cda4d=>!_0x3cda4d)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x1005b5 of this['_revisions'])this['_addRevision'](_0x1005b5);this['_revisions']['on']('add',(_0xc1abb2,_0x228d6c)=>{this['_addRevision'](_0x228d6c);}),this['_revisions']['on']('remove',(_0x43417d,_0x451f13)=>{this['_removeRevision'](_0x451f13);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x3a6a2a=>_0x3a6a2a['revisionViews']['map'](_0x1c1e50=>_0x1c1e50))['flat']();}['selectRevision'](_0x18e008){for(const _0x400d23 of this['revisionViews'])_0x18e008&&_0x18e008['id']===_0x400d23['id']?_0x400d23['select']():_0x400d23['deselect']();}['highlightRevisions'](_0x55d9e5){for(const _0x4a534f of this['revisionViews'])_0x55d9e5['some'](({id:_0x36a402})=>_0x36a402===_0x4a534f['id'])?_0x4a534f['highlight']():_0x4a534f['unhighlight']();}['_addRevision'](_0x5dc441){const _0x46fa54=di(_0x5dc441['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x16485e=this['timePeriodViews']['get'](0x0);_0x16485e&&_0x16485e['startDate']['getTime']()===_0x46fa54['getTime']()||(_0x16485e=new mi(this['locale'],_0x46fa54,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x16485e)),_0x16485e['addRevision'](_0x5dc441);}['_removeRevision'](_0xf8fe97){const _0x5e792b=di(_0xf8fe97['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x5e792b)['removeRevision'](_0xf8fe97);}['_getTimePeriodViewByStartDate'](_0x1447d8){return this['timePeriodViews']['find'](_0x16365a=>_0x16365a['startDate']['getTime']()===_0x1447d8['getTime']());}}class g extends _0x487362{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x5a7f9d,uid as _0x4f9a89,Collection as _0x2745a9,logWarning as _0x1b89a0,FocusTracker as _0xe61897,KeystrokeHandler as _0x5cf09a,scrollViewportToShowTarget as _0x252897,ResizeObserver as pt,ElementReplacer as ct,CKEditorError as _0x1f287f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x1ea11a,set as _0x11436e,unset as _0x5ccbc4,isEqual as _0x4b1bee}from'lodash-es';import{Plugin as _0x49970d,PendingActions as _0x461491,icons as _0x429f7b,Command as _0x98083a,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x122c7d,getMarkerDomElement as _0x294892,ConfirmMixin as _0x34c2f4,sanitizeEditorConfig as _0x2c872e}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x59148e,ViewText as _0x224f95,ViewElement as _0x3dbac4,Element as ft,Range as vt,Position as gt,DocumentFragment as wt,ViewContainerElement as _0x11e705,ViewAttributeElement as _0x25db7e,ViewEmptyElement as _0x10f6d4,ViewRawElement as _0x5d57f5,ViewUIElement as _0x5bea37,Text as _t}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x225181,injectCssTransitionDisabler as ts,submitHandler as _0x7d4f2a,LabeledFieldView as at,createLabeledInputText as _0x37cab7,createDropdown as _0xd76513,ListView as te,ListItemView as _0x1bdf1e,ButtonView as _0x4f59ce,MenuBarMenuView as _0x353dc1,MenuBarMenuListView as _0x545793,MenuBarMenuListItemView as _0x3ec8b1,MenuBarMenuListItemButtonView as _0x554448,ContextualBalloon as _0x1424e1,ToolbarSeparatorView as _0x198730,IconView as _0x263ade,addListToDropdown as _0x362d35,ViewModel as to,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x25ad72}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
+ _0x5a7f9d(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x30fec8){super(),this['id']=_0x30fec8['id']||_0x4f9a89(),this['creator']=_0x30fec8['creator']||null,this['authors']=_0x30fec8['authors']||[],this['diffData']=_0x30fec8['diffData']||null,this['toVersion']=_0x30fec8['toVersion']||0x0,this['fromVersion']=_0x30fec8['fromVersion']||0x0,this['set']('name',_0x30fec8['name']||''),this['set']('createdAt',_0x30fec8['createdAt']||new Date()),this['set']('attributes',_0x30fec8['attributes']||{});}['setName'](_0x20eeda){this['_update']({'name':_0x20eeda});}['setAttribute'](_0x5c90a8,_0x156729){const _0x113110=_0x1ea11a(this['attributes']);_0x11436e(_0x113110,_0x5c90a8,_0x156729),this['_update']({'attributes':_0x113110});}['removeAttribute'](_0x3d31d0){const _0x36b69b=_0x1ea11a(this['attributes']);_0x5ccbc4(_0x36b69b,_0x3d31d0),this['_update']({'attributes':_0x36b69b});}['_update'](_0xc7157a,_0x10b13d=!0x1){let _0x44855c=!0x1;const _0x3d2b49={'id':this['id']},_0x636f20=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x279396 of _0x636f20){const _0x52398b=_0xc7157a[_0x279396];void 0x0!==_0x52398b&&_0x52398b!==this[_0x279396]&&(this[_0x279396]=_0x52398b,_0x3d2b49[_0x279396]=_0x52398b,_0x44855c=!0x0);}_0x44855c&&(_0x3d2b49['authors']&&(_0x3d2b49['authorsIds']=_0x3d2b49['authors']['map'](_0x2447dc=>_0x2447dc['id']),delete _0x3d2b49['authors']),this['fire']('_update',_0x3d2b49,_0x10b13d));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x2f416b=>_0x2f416b['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x49970d{['_revisions'];static get['requires'](){return[_0x122c7d];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x475269){super(_0x475269),this['_revisions']=new _0x2745a9();}['afterInit'](){!async function(_0x3e8d64){const _0x2f43df=_0x4a7f6a([0x4e,0x76,0x72,0x47,0x75,0x4b,0x57,0x48,0x38,0x45,0x34,0x44,0x6e,0x43,0x33,0x31,0x42,0x70,0x64,0x6c,0x74,0x69,0x50,0x56,0x63,0x78,0x59,0x4d,0x49,0x35,0x73,0x46,0x41,0x6d,0x54,0x51,0x53,0x68,0x5a,0x52,0x61,0x55,0x36,0x4c,0x6f,0x66,0x4a,0x62,0x71,0x65,0x39,0x7a,0x30,0x79,0x32,0x58,0x4f,0x6b,0x6a,0x67,0x77,0x37]),_0x405139=0xeb829,_0xd76ac4=0x7017a267,_0x540a8a=0x7010f977^_0xd76ac4,_0x227bc3=window[_0x4a7f6a([0x44,0x61,0x74,0x65])][_0x4a7f6a([0x6e,0x6f,0x77])](),_0x403453=_0x3e8d64[_0x4a7f6a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4d223e=new window[(_0x4a7f6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34c717=>{_0x403453[_0x4a7f6a([0x6f,0x6e,0x63,0x65])](_0x4a7f6a([0x72,0x65,0x61,0x64,0x79]),_0x34c717);}),_0x2580e1={[_0x4a7f6a([0x6b,0x74,0x79])]:_0x4a7f6a([0x45,0x43]),[_0x4a7f6a([0x75,0x73,0x65])]:_0x4a7f6a([0x73,0x69,0x67]),[_0x4a7f6a([0x63,0x72,0x76])]:_0x4a7f6a([0x50,0x2d,0x32,0x35,0x36]),[_0x4a7f6a([0x78])]:_0x4a7f6a([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]),[_0x4a7f6a([0x79])]:_0x4a7f6a([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]),[_0x4a7f6a([0x61,0x6c,0x67])]:_0x4a7f6a([0x45,0x53,0x32,0x35,0x36])},_0x20e0ae=_0x403453[_0x4a7f6a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4a7f6a([0x67,0x65,0x74])](_0x4a7f6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x36dd41(){let _0x178194,_0x1d2d7e=null,_0x5a55c8=null;try{if(_0x20e0ae==_0x4a7f6a([0x47,0x50,0x4c]))return _0x4a7f6a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x178194=_0x3debc8(),!_0x178194)return _0x4a7f6a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x178194[_0x4a7f6a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5a55c8=_0x4b0b36(_0x178194[_0x4a7f6a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x178194[_0x4a7f6a([0x6a,0x74,0x69])])),await _0x4ccc39()?_0x582559()?_0x4a443c()?_0x4a7f6a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x28809c()?(_0x178194[_0x4a7f6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4a7f6a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1d2d7e=_0x196ddd(_0x4a7f6a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x178194[_0x4a7f6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4a7f6a([0x74,0x72,0x69,0x61,0x6c])&&(_0x1d2d7e=_0x196ddd(_0x4a7f6a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x178194[_0x4a7f6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4a7f6a([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x1d2d7e=_0x196ddd(_0x4a7f6a([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x341dfb()):_0x4a7f6a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4a7f6a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4a7f6a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x329117){return _0x4a7f6a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4a443c(){const _0x1cc659=[_0x4a7f6a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4a7f6a([0x74,0x72,0x69,0x61,0x6c])][_0x4a7f6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x178194[_0x4a7f6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x227bc3/0x3e8:0xe10*_0x540a8a;return _0x178194[_0x4a7f6a([0x65,0x78,0x70])]<_0x1cc659;}function _0x582559(){const _0x52473b=_0x178194[_0x4a7f6a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x52473b)return!0x1;if(_0x52473b[_0x4a7f6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a7f6a([0x2a])))return!0x0;if(_0x52473b[_0x4a7f6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a7f6a([0x52,0x48])))return!0x0;if(_0x52473b[_0x4a7f6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a7f6a([0x52,0x52,0x48]))){if(_0x46d767())return!0x0;if(_0x315e2b()||_0x55e9fc())return!0x0;}return!0x1;}function _0x28809c(){const _0x21ddb3=_0x178194[_0x4a7f6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x21ddb3||0x0==_0x21ddb3[_0x4a7f6a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x9df43}=new URL(window[_0x4a7f6a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x21ddb3[_0x4a7f6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9df43))return!0x0;const _0x341453=_0x9df43[_0x4a7f6a([0x73,0x70,0x6c,0x69,0x74])](_0x4a7f6a([0x2e]));return _0x21ddb3[_0x4a7f6a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x29e8c2=>_0x29e8c2[_0x4a7f6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a7f6a([0x2a])))[_0x4a7f6a([0x6d,0x61,0x70])](_0x3ef4e5=>_0x3ef4e5[_0x4a7f6a([0x73,0x70,0x6c,0x69,0x74])](_0x4a7f6a([0x2e])))[_0x4a7f6a([0x73,0x6f,0x6d,0x65])](_0x4028ec=>_0x341453[_0x4a7f6a([0x65,0x76,0x65,0x72,0x79])]((_0xb4b186,_0x3f5247)=>_0x4028ec[_0x3f5247]===_0xb4b186||_0x4028ec[_0x3f5247]===_0x4a7f6a([0x2a])));}function _0x341dfb(){return _0x1d2d7e&&_0x5a55c8?new window[(_0x4a7f6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x43f903,_0x4b6484)=>{_0x1d2d7e[_0x4a7f6a([0x74,0x68,0x65,0x6e])](_0x43f903,_0x4b6484),_0x5a55c8[_0x4a7f6a([0x74,0x68,0x65,0x6e])](_0x2f5d8e=>{_0x2f5d8e!=_0x4a7f6a([0x56,0x61,0x6c,0x69,0x64])&&_0x43f903(_0x2f5d8e);},_0x4b6484);}):_0x1d2d7e||_0x5a55c8||_0x4a7f6a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4b0b36(_0x316edf,_0x177eb7){return new window[(_0x4a7f6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4baad0=>{if(_0x136d57())return _0x4baad0(_0x4a7f6a([0x56,0x61,0x6c,0x69,0x64]));_0x2a1f79(),_0x403453[_0x4a7f6a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4a7f6a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x34efb4=!0x1;const _0x2689ab=_0x4f9a89();function _0x39833c(_0xc1435b){return!!_0xc1435b&&(typeof _0xc1435b===_0x4a7f6a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xc1435b===_0x4a7f6a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xc1435b[_0x4a7f6a([0x74,0x68,0x65,0x6e])]===_0x4a7f6a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xc1435b[_0x4a7f6a([0x63,0x61,0x74,0x63,0x68])]===_0x4a7f6a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x200b61(_0x3edb75){_0x185047(_0x3edb75)[_0x4a7f6a([0x74,0x68,0x65,0x6e])](_0x447451=>{if(!_0x447451||_0x447451[_0x4a7f6a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4a7f6a([0x6f,0x6b]))return _0x4a7f6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2e250e(_0x2820c2(_0x2689ab+_0x177eb7))!=_0x447451[_0x4a7f6a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4a7f6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4a7f6a([0x56,0x61,0x6c,0x69,0x64]);})[_0x4a7f6a([0x74,0x68,0x65,0x6e])](_0x1beec9=>(_0x492dc3(),_0x1beec9),()=>{const _0x1f8cea=_0x379745();return null==_0x1f8cea?(_0x492dc3(),_0x4a7f6a([0x56,0x61,0x6c,0x69,0x64])):_0x4a7f6a(_0x227bc3-_0x1f8cea>(0x541b2667^_0xd76ac4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4a7f6a([0x74,0x68,0x65,0x6e])](_0x4baad0)[_0x4a7f6a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4baad0(_0x4a7f6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x209706=0x70214ce7^_0xd76ac4;function _0x492dc3(){const _0x15bbf1=_0x4a7f6a([0x6c,0x6c,0x63,0x74,0x2d])+_0x2e250e(_0x2820c2(_0x316edf)),_0x1a73a9=_0x322e2a(_0x2e250e(window[_0x4a7f6a([0x4d,0x61,0x74,0x68])][_0x4a7f6a([0x63,0x65,0x69,0x6c])](_0x227bc3/_0x209706)));window[_0x4a7f6a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4a7f6a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x15bbf1,_0x1a73a9);}function _0x379745(){const _0x1b34be=_0x4a7f6a([0x6c,0x6c,0x63,0x74,0x2d])+_0x2e250e(_0x2820c2(_0x316edf)),_0x53e696=window[_0x4a7f6a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4a7f6a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1b34be);return _0x53e696?window[_0x4a7f6a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x322e2a(_0x53e696),0x10)*_0x209706:null;}function _0x185047(_0x260232){return new window[(_0x4a7f6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4b140,_0x12a538)=>{_0x260232[_0x4a7f6a([0x74,0x68,0x65,0x6e])](_0x4b140,_0x12a538),window[_0x4a7f6a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x12a538,0x701676a7^_0xd76ac4);});}}_0x403453[_0x4a7f6a([0x6f,0x6e])](_0x4a7f6a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5e0bc3,_0x4f222c)=>{if(_0x4f222c[0x0]!=_0x316edf)return _0x4baad0(_0x4a7f6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4f222c[0x1]={..._0x4f222c[0x1],[_0x4a7f6a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2689ab};},{[_0x4a7f6a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4a7f6a([0x68,0x69,0x67,0x68])}),_0x403453[_0x4a7f6a([0x6f,0x6e])](_0x4a7f6a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x13f32b=>{_0x39833c(_0x13f32b[_0x4a7f6a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x34efb4=!0x0,_0x200b61(_0x13f32b[_0x4a7f6a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4a7f6a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4a7f6a([0x6c,0x6f,0x77])}),_0x4d223e[_0x4a7f6a([0x74,0x68,0x65,0x6e])](()=>{_0x34efb4||_0x4baad0(_0x4a7f6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x136d57(){return _0x403453[_0x4a7f6a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4a7f6a([0x76,0x69,0x65,0x77])][_0x4a7f6a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4a7f6a([0x61,0x75,0x74,0x6f]);}function _0x2a1f79(){_0x403453[_0x4a7f6a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4a7f6a([0x76,0x69,0x65,0x77])][_0x4a7f6a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4a7f6a([0x61,0x75,0x74,0x6f]);}}function _0x196ddd(_0x25ecbe){const _0x37018d=[new window[(_0x4a7f6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e99a9=>setTimeout(_0x1e99a9,0x701e9cab^_0xd76ac4)),_0x4d223e[_0x4a7f6a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4a7f6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f44ce=>{const _0x10b6fe=0x7017a260^_0xd76ac4,_0x148e9a=_0x3e8d64[_0x4a7f6a([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x382221(){_0x148e9a[_0x4a7f6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x10b6fe&&_0x1f44ce();}_0x382221(),_0x148e9a[_0x4a7f6a([0x6f,0x6e])](_0x4a7f6a([0x61,0x64,0x64]),_0x382221);})),new window[(_0x4a7f6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x380cd0=>{function _0x2f2305(){for(const _0x44d615 in window)if(window[_0x4a7f6a([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4a7f6a([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x44d615))&&window[_0x44d615]==_0x405139)return _0x380cd0();_0x403453[_0x4a7f6a([0x73,0x74,0x61,0x74,0x65])]!=_0x4a7f6a([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4a7f6a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2f2305,0x7017b1ef^_0xd76ac4);}_0x141ac2(_0x4a7f6a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x2f2305();})];return window[_0x4a7f6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4a7f6a([0x72,0x61,0x63,0x65])](_0x37018d)[_0x4a7f6a([0x74,0x68,0x65,0x6e])](()=>_0x25ecbe);}async function _0x40686d(){if(await _0x4d223e,_0x141ac2(_0x4a7f6a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x1e599f=_0x3e8d64[_0x4a7f6a([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x54b3de=_0x3e8d64[_0x4a7f6a([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])](_0x1e599f[_0x4a7f6a([0x69,0x64])]),_0x43742c=_0x29f32b(_0x4a7f6a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x43742c[_0x4a7f6a([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x1e599f['id'],_0x54b3de?_0x54b3de['id']:null,!0x0),_0x43742c[_0x4a7f6a([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4a7f6a([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x43742c[_0x4a7f6a([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x43742c[_0x4a7f6a([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0xd078c,void(_0x43742c[_0x4a7f6a([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0xd078c);}if(_0x141ac2(_0x4a7f6a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1061ce=_0x29f32b(_0x4a7f6a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1061ce[_0x4a7f6a([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4a7f6a([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1061ce[_0x4a7f6a([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1061ce[_0x4a7f6a([0x75,0x70,0x64,0x61,0x74,0x65])]=_0xd078c,_0x1061ce[_0x4a7f6a([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0xd078c;}_0x403453[_0x4a7f6a([0x6d,0x6f,0x64,0x65,0x6c])][_0x4a7f6a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xd078c,_0x403453[_0x4a7f6a([0x6d,0x6f,0x64,0x65,0x6c])][_0x4a7f6a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xd078c,_0x403453[_0x4a7f6a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4a7f6a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x46d767(){return _0x141ac2(_0x4a7f6a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x29f32b(_0x4a7f6a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4a7f6a([0x73,0x74,0x61,0x74,0x65])]==_0x4a7f6a([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x315e2b(){return _0x141ac2(_0x4a7f6a([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 _0x55e9fc(){return _0x141ac2(_0x4a7f6a([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1e9fb1(_0x244e4d){const _0x52d383=_0x2354a0();_0x403453[_0x52d383]=_0x4a7f6a([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])+_0x244e4d,_0x244e4d[_0x4a7f6a([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4a7f6a([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x2354a0()]=_0x405139),_0x244e4d!=_0x4a7f6a([0x56,0x61,0x6c,0x69,0x64])&&_0x40686d();}function _0x2354a0(){const _0x417e46=window[_0x4a7f6a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4a7f6a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4a7f6a([0x6e,0x6f,0x77])]())[_0x4a7f6a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4a7f6a([0x2e]),'');let _0x5690a1=_0x4a7f6a([0x4e]);for(let _0x17da6e=0x0;_0x17da6e<_0x417e46[_0x4a7f6a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x17da6e+=0x2){let _0x345bd2=window[_0x4a7f6a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x417e46[_0x4a7f6a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x17da6e,_0x17da6e+0x2));_0x345bd2>=_0x2f43df[_0x4a7f6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x345bd2-=_0x2f43df[_0x4a7f6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5690a1+=_0x2f43df[_0x345bd2];}return _0x5690a1;}function _0x3debc8(){const _0x135390=_0x20e0ae[_0x4a7f6a([0x73,0x70,0x6c,0x69,0x74])](_0x4a7f6a([0x2e]));if(0x3!=_0x135390[_0x4a7f6a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4b11a0(_0x135390[0x1]);function _0x4b11a0(_0x5e5c81){const _0x21fdeb=_0x44d8b8(_0x5e5c81);return _0x21fdeb&&_0x106188()?_0x21fdeb:null;function _0x106188(){const _0x5ee9da=_0x21fdeb[_0x4a7f6a([0x6a,0x74,0x69])],_0x3ef87e=window[_0x4a7f6a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ee9da[_0x4a7f6a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5ee9da[_0x4a7f6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x11d9cc={..._0x21fdeb,[_0x4a7f6a([0x6a,0x74,0x69])]:_0x5ee9da[_0x4a7f6a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5ee9da[_0x4a7f6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x11d9cc[_0x4a7f6a([0x76,0x63])],_0x2820c2(_0x11d9cc)==_0x3ef87e;}}}async function _0x4ccc39(){let _0x5a397f=!0x0;try{const _0x55e420=_0x20e0ae[_0x4a7f6a([0x73,0x70,0x6c,0x69,0x74])](_0x4a7f6a([0x2e])),[_0x583da4,_0x2f6a14,_0x238b18]=_0x55e420;return _0x3f654b(_0x583da4),await _0x42656f(_0x583da4,_0x2f6a14,_0x238b18),_0x5a397f;}catch(_0x5c5c15){return!0x1;}function _0x3f654b(_0x555756){const _0x3560a0=_0x44d8b8(_0x555756);_0x3560a0&&_0x3560a0[_0x4a7f6a([0x61,0x6c,0x67])]==_0x4a7f6a([0x45,0x53,0x32,0x35,0x36])||(_0x5a397f=!0x1);}async function _0x42656f(_0x248749,_0x591b88,_0x5b6faa){const _0x5bae9c=window[_0x4a7f6a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4a7f6a([0x66,0x72,0x6f,0x6d])](_0x24124d(_0x5b6faa),_0xd6b49d=>_0xd6b49d[_0x4a7f6a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x46a72c=new window[(_0x4a7f6a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4a7f6a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x248749+_0x4a7f6a([0x2e])+_0x591b88),_0x83fe65=window[_0x4a7f6a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4a7f6a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x83fe65)return;const _0x2b73d1=await _0x83fe65[_0x4a7f6a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4a7f6a([0x6a,0x77,0x6b]),_0x2580e1,{[_0x4a7f6a([0x6e,0x61,0x6d,0x65])]:_0x4a7f6a([0x45,0x43,0x44,0x53,0x41]),[_0x4a7f6a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4a7f6a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4a7f6a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x83fe65[_0x4a7f6a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4a7f6a([0x6e,0x61,0x6d,0x65])]:_0x4a7f6a([0x45,0x43,0x44,0x53,0x41]),[_0x4a7f6a([0x68,0x61,0x73,0x68])]:{[_0x4a7f6a([0x6e,0x61,0x6d,0x65])]:_0x4a7f6a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2b73d1,_0x5bae9c,_0x46a72c)||(_0x5a397f=!0x1);}}function _0x44d8b8(_0x322771){return _0x322771[_0x4a7f6a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4a7f6a([0x65,0x79]))?JSON[_0x4a7f6a([0x70,0x61,0x72,0x73,0x65])](_0x24124d(_0x322771)):null;}function _0x24124d(_0x21f9db){return window[_0x4a7f6a([0x61,0x74,0x6f,0x62])](_0x21f9db[_0x4a7f6a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4a7f6a([0x2b]))[_0x4a7f6a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4a7f6a([0x2f])));}function _0x2820c2(_0x1b038e){let _0x413d18=0x1505;function _0x2c9607(_0x5bf73f){for(let _0x1fa0e4=0x0;_0x1fa0e4<_0x5bf73f[_0x4a7f6a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1fa0e4++){const _0x5a8e6b=_0x5bf73f[_0x4a7f6a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1fa0e4);_0x413d18=(_0x413d18<<0x5)+_0x413d18+_0x5a8e6b,_0x413d18&=_0x413d18;}}function _0x15cf42(_0x2eb0e0){Array[_0x4a7f6a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2eb0e0)?_0x2eb0e0[_0x4a7f6a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x15cf42):_0x2eb0e0&&typeof _0x2eb0e0==_0x4a7f6a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4a7f6a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2eb0e0)[_0x4a7f6a([0x73,0x6f,0x72,0x74])]()[_0x4a7f6a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x346356,_0x20cca0])=>{_0x2c9607(_0x346356),_0x15cf42(_0x20cca0);}):_0x2c9607(window[_0x4a7f6a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2eb0e0));}return _0x15cf42(_0x1b038e),_0x413d18>>>0x0;}function _0x2e250e(_0x1a2856){return _0x1a2856[_0x4a7f6a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4a7f6a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4a7f6a([0x30]));}function _0x322e2a(_0x4c34ea){return _0x4c34ea[_0x4a7f6a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4a7f6a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4a7f6a([0x6a,0x6f,0x69,0x6e])]('');}function _0x141ac2(_0x5a8467){return _0x403453[_0x4a7f6a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4a7f6a([0x68,0x61,0x73])](_0x5a8467);}function _0x29f32b(_0x336941){return _0x403453[_0x4a7f6a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4a7f6a([0x67,0x65,0x74])](_0x336941);}function _0xd078c(){}function _0x4a7f6a(_0x3577e7){return _0x3577e7['map'](_0x4e62fe=>String['fromCharCode'](_0x4e62fe))['join']('');}_0x1e9fb1(await _0x36dd41());}(this);}['createRevision'](_0x3008ae){const _0x4059cf=this['editor']['plugins']['get']('Users');return new a({'id':_0x3008ae['id'],'name':_0x3008ae['name'],'creator':_0x3008ae['creatorId']?_0x4059cf['getUser'](_0x3008ae['creatorId']):null,'diffData':_0x3008ae['diffData']||_0x3008ae['data'],'authors':_0x3008ae['authorsIds']['map'](_0x766065=>_0x4059cf['getUser'](_0x766065)),'createdAt':new Date(_0x3008ae['createdAt']),'attributes':_0x3008ae['attributes'],'fromVersion':_0x3008ae['fromVersion'],'toVersion':_0x3008ae['toVersion']});}['addRevision'](_0x1ebdfc,_0x4e3eb9=0x0){this['_revisions']['add'](_0x1ebdfc,_0x4e3eb9);}['getRevision'](_0x15dd0d){return this['_revisions']['get'](_0x15dd0d);}['getRevisions'](_0x1f55c0={'toJSON':!0x1}){const _0x2941d7=Array['from'](this['_revisions']);return _0x2941d7['reverse'](),_0x1f55c0['toJSON']?_0x2941d7['map'](_0x3610cf=>_0x3610cf['toJSON']()):_0x2941d7;}['getIndex'](_0x39d63f){return this['_revisions']['getIndex'](_0x39d63f);}['getEarlierVisibleRevision'](_0x555108){const [,_0x48f235]=this['getRevisionsIterator'](_0x555108,{'direction':'earlier'});return _0x48f235;}['getLaterVisibleRevision'](_0x19a6a8){const [,_0x3a25b7]=this['getRevisionsIterator'](_0x19a6a8,{'direction':'later'});return _0x3a25b7;}['getRevisionsInDiff'](_0x3c65d9){const _0x7db22b=[];for(const _0x3d6bb1 of this['getRevisionsIterator'](_0x3c65d9['newRevisionId']))if(_0x7db22b['push'](_0x3d6bb1),_0x3d6bb1['id']===_0x3c65d9['oldRevisionId'])break;return _0x7db22b;}*['getRevisionsIterator'](_0x51905c,{direction:_0x89522f='earlier',filter:_0x29510b=()=>!0x0}={}){const _0x11d621='earlier'===_0x89522f?0x1:-0x1;let _0x1a4561=this['_revisions']['get'](_0x51905c),_0x2d517=this['getIndex'](_0x1a4561);for(yield _0x1a4561;_0x1a4561;){if(_0x2d517+=_0x11d621,_0x1a4561=this['getRevision'](_0x2d517),!_0x1a4561)return;_0x29510b(_0x1a4561)&&(yield _0x1a4561);}}}function R(_0x391a0d,_0x36b79f,_0x54025d){const t=_0x391a0d['t'];switch(_0x36b79f){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'},_0x54025d);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x54025d);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const C={'c':_0x11e705,'a':_0x25db7e,'e':_0x10f6d4,'r':_0x5d57f5,'u':_0x5bea37};class l extends _0x49970d{['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[_0x122c7d,j,_0x461491];}constructor(_0x36a38c){super(_0x36a38c),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x28b837=_0x4f9a89();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x28b837},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 _0x124a95=this['repository']['getRevision'](0x0),_0x213cd7=_0x124a95&&null===_0x124a95['creator']?_0x124a95:null;if(this['_continueCurrentRevision']=!!_0x213cd7&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x56c156=this['_source']['getCurrentRevisionId'](),_0x3029d5=this['repository']['getRevision'](_0x56c156);if(_0x3029d5)this['_startingVersion']=_0x3029d5['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x2f74de=this['_source']['history']['_operations']['find'](_0x3b3054=>!_0x3b3054['_isInit']),_0x4df33b=_0x2f74de?_0x2f74de['baseVersion']:this['_source']['history']['version'];_0x124a95?(_0x124a95['toVersion']<_0x4df33b&&_0x124a95['_update']({'toVersion':_0x4df33b}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x213cd7['id'],this['_startingVersion']=_0x213cd7['fromVersion']):(this['_startingVersion']=_0x124a95['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4df33b,this['_continueCurrentRevision']=!0x1);}}else _0x213cd7&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x213cd7['toVersion'],this['editor']['model']['document']['history']['version']),_0x213cd7['fromVersion']===_0x213cd7['toVersion']?(0x0!==_0x213cd7['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x213cd7['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x213cd7['id'],this['_startingVersion']=_0x213cd7['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',_0x262106=>!_0x262106),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xb6de01=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x445081;for(const _0x2bf605 in _0xb6de01){const _0x50d592=_0x2bf605,_0x5bef91=_0xb6de01[_0x50d592];if('revisionHistoryLicenseKeyValid'==_0x5bef91||'revisionHistoryLicenseKeyInvalid'==_0x5bef91||'revisionHistoryLicenseKeyExpired'==_0x5bef91||'revisionHistoryLicenseKeyDomainLimit'==_0x5bef91||'revisionHistoryLicenseKeyNotAllowed'==_0x5bef91||'revisionHistoryLicenseKeyEvaluationLimit'==_0x5bef91||'revisionHistoryLicenseKeyTrialLimit'==_0x5bef91||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x5bef91||'revisionHistoryLicenseKeyUsageLimit'==_0x5bef91){delete _0xb6de01[_0x50d592],_0x445081=_0x5bef91,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x445081&&_0xb6de01['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x445081&&_0xb6de01['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x445081&&_0xb6de01['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x445081&&_0xb6de01['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x445081&&_0xb6de01['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x445081&&_0xb6de01['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x445081&&_0xb6de01['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x445081&&_0xb6de01['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x2c21bf=this['repository']['getRevision'](0x0),_0x2f79a6=await this['getRevisionDocumentData'](_0x2c21bf),_0x22334c=await this['getRevisionRootsAttributes'](_0x2c21bf);this['_replaceEditorDataWithRevisionData'](_0x2f79a6,_0x22334c);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x4effd6){this['_source']=_0x4effd6;}async['update'](){const _0x138613=await this['_source']['getLatestVersion']();if(_0x138613>this['currentRevision']['toVersion']){await this['_loadState']();const _0x322032=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x138613});_0x322032['authors']=_0x322032['authorsIds']['map'](_0x2d15bb=>this['editor']['plugins']['get']('Users')['getUser'](_0x2d15bb)),this['currentRevision']['_update'](_0x322032);}}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'](_0x4b9868={},_0x1c1665=null){const _0xedfea6=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x1c1665>this['currentRevision']['toVersion']&&(_0x1c1665=null),null===_0x1c1665&&(_0x1c1665=await this['_source']['getLatestVersion']());const _0x6791d8=this['_getFromVersion'](_0x1c1665),_0x1cd9da=this['buildRevisionData']({'from':_0x6791d8,'to':_0x1c1665});if(this['currentRevision']['toVersion']<_0x1c1665){const _0x59f11d=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x1c1665,'to':_0x1c1665});_0x59f11d['authors']=[],_0x59f11d['authorsIds']=[],_0x59f11d['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x59f11d,!0x0),delete _0x59f11d['authors'],_0xedfea6['push'](_0x59f11d);}_0x4b9868['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x4b9868['name']=_0x4b9868['name']||null,_0x4b9868['id']=_0x4b9868['id']||_0x4f9a89(),_0x4b9868={..._0x4b9868,..._0x1cd9da};const _0x111a6d=this['addRevisionData'](_0x4b9868);_0xedfea6['push'](_0x4b9868);const _0x25fd6c=this['repository']['getIndex'](_0x111a6d);if(0x0!==_0x25fd6c){const _0x42c3f6=this['repository']['getRevision'](_0x25fd6c-0x1);if(_0x42c3f6['fromVersion']!==_0x1c1665){const _0x51585a=this['_revisionDataBuilder']['getData'](_0x1c1665,_0x42c3f6['toVersion']),_0x2bd9f9={'id':_0x42c3f6['id'],'diffData':_0x51585a['diffData'],'authorsIds':_0x51585a['authorsIds'],'authors':_0x51585a['authorsIds']['map'](_0x4cdf38=>this['editor']['plugins']['get']('Users')['getUser'](_0x4cdf38)),'fromVersion':_0x1c1665};_0x42c3f6===this['currentRevision']&&(_0x2bd9f9['createdAt']=new Date(_0x4b9868['createdAt']['getTime']()+0xa)),_0x42c3f6['_update'](_0x2bd9f9,!0x0),delete _0x2bd9f9['authors'],_0xedfea6['push'](_0x2bd9f9);}}if(this['adapter']){for(const _0x3c79de of _0xedfea6)this['_bufferUpdate'](_0x3c79de['id'],_0x3c79de,!0x0);this['sendBufferedUpdates']();}return _0x111a6d;}['addRevisionData'](_0x49ccf0){const _0xae5859=this['repository']['createRevision'](_0x49ccf0);return this['adapter']&&_0xae5859['on']('_update',(_0x326234,_0x4cdcab,_0x3a64d9)=>{_0x3a64d9||(this['_bufferUpdate'](_0x4cdcab['id'],_0x4cdcab,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0xae5859,this['_findInsertionIndex'](_0xae5859)),_0xae5859;}async['getRevisionDocumentData'](_0x371289){await this['_loadRevisionData'](_0x371289);const _0x44e1df={};for(const _0x283f9c in _0x371289['diffData']){if(_0x371289['diffData'][_0x283f9c]['attachChange']&&!_0x371289['diffData'][_0x283f9c]['attachChange']['isAttached'])continue;const _0x56cb27=this['_removeRevisionMarkers'](JSON['parse'](_0x371289['diffData'][_0x283f9c]['insertions'])),_0x5a65f4=this['editor']['editing']['view']['document'],_0x36a869=new _0x59148e(_0x5a65f4,_0x56cb27['map'](_0x859050=>V(_0x859050,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x44e1df[_0x283f9c]=this['editor']['data']['processor']['toData'](_0x36a869),this['editor']['data']['processor']['useFillerType']('default');}return _0x44e1df;}async['getRevisionRootsAttributes'](_0x58d38a){await this['_loadRevisionData'](_0x58d38a);const _0x45b92b={};for(const _0x51215b in _0x58d38a['diffData'])_0x58d38a['diffData'][_0x51215b]['attachChange']&&!_0x58d38a['diffData'][_0x51215b]['attachChange']['isAttached']||(_0x45b92b[_0x51215b]=_0x58d38a['diffData'][_0x51215b]['attributesAfter']||{});return _0x45b92b;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x12cac5=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x31d375=0x0;_0x31d375<_0x12cac5['length'];_0x31d375++){const _0x25879b=_0x12cac5[_0x31d375];let _0x2f864c=!0x1;for(const _0x46da4e of Object['keys'](_0x25879b))void 0x0===_0x25879b[_0x46da4e]?delete _0x25879b[_0x46da4e]:'id'!==_0x46da4e&&(_0x2f864c=!0x0);_0x2f864c||(_0x12cac5[_0x31d375]=null);}if(_0x12cac5=_0x12cac5['filter'](_0x492905=>null!==_0x492905),!_0x12cac5['length'])return;for(let _0x315aca=0x0;_0x315aca<_0x12cac5['length'];_0x315aca++){const _0x572c3c=_0x12cac5[_0x315aca];void 0x0!==_0x572c3c['fromVersion']&&void 0x0===_0x572c3c['toVersion']&&(_0x572c3c['toVersion']=this['repository']['getRevision'](_0x572c3c['id'])['toVersion']),void 0x0!==_0x572c3c['toVersion']&&void 0x0===_0x572c3c['fromVersion']&&(_0x572c3c['fromVersion']=this['repository']['getRevision'](_0x572c3c['id'])['fromVersion']);}const _0x1dec12=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x12cac5,_0x1dec12)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x54a5d4=>{if(_0x54a5d4){for(const _0x1c6a69 of _0x54a5d4)this['setRevisionData']({'id':_0x1c6a69['id'],'createdAt':_0x1c6a69['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x3f31f5,_0x4208b4){let _0x2ccf7f=this['editor']['config']['get']('initialData'),_0x2b9908=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2ccf7f){_0x2ccf7f={};for(const _0x3a3c24 of this['editor']['model']['document']['getRootNames']())_0x2ccf7f[_0x3a3c24]='';}if('string'==typeof _0x2ccf7f&&(_0x2ccf7f={'main':_0x2ccf7f}),void 0x0===_0x2b9908){_0x2b9908={};for(const _0x5bdd80 of this['editor']['model']['document']['getRootNames']())_0x2b9908[_0x5bdd80]={};}let _0x286c94=!0x1;const _0x5a804f=Object['keys'](_0x2ccf7f),_0x1b04c5=Object['keys'](_0x3f31f5);for(const _0x37bca3 of _0x5a804f){if(_0x2ccf7f[_0x37bca3]!==_0x3f31f5[_0x37bca3]&&''!==_0x2ccf7f[_0x37bca3]['trim']()){_0x286c94=!0x0;break;}if(!_0x4b1bee(_0x2b9908[_0x37bca3],_0x4208b4[_0x37bca3])&&Object['keys'](_0x2b9908[_0x37bca3])['length']>0x0){_0x286c94=!0x0;break;}}_0x286c94||(_0x286c94=_0x1b04c5['some'](_0x2f0fde=>!this['editor']['model']['document']['getRoot'](_0x2f0fde))),_0x286c94&&_0x1b89a0('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2ccf7f,'editorRootsAttributes':_0x2b9908,'revisionData':_0x3f31f5,'revisionRootsAttributes':_0x4208b4}),this['editor']['config']['set']('initialData',_0x3f31f5),this['editor']['config']['set']('rootsAttributes',_0x4208b4);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x3968c1=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x3968c1['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x2da0cd){const _0xfd6fb5=this['repository']['getRevisions']();_0xfd6fb5['reverse']();let _0x2786e9=0x0;for(;_0x2786e9<_0xfd6fb5['length'];){const _0x3424e3=_0xfd6fb5[_0x2786e9];if(_0x3424e3===this['currentRevision']){_0x2786e9++;continue;}if(_0x3424e3['id']===this['_initialRevisionId'])break;const _0x5bb1b9=_0x2da0cd['toVersion']-_0x3424e3['toVersion']||_0x2da0cd['fromVersion']-_0x3424e3['fromVersion'];if(_0x5bb1b9>0x0)break;if(_0x5bb1b9<0x0)_0x2786e9++;else{if(!_0x2da0cd['creator']&&_0x3424e3['creator'])break;if(_0x3424e3['creator']||!_0x2da0cd['creator']){if(_0x2da0cd['createdAt']>_0x3424e3['createdAt'])break;_0x2786e9++;}else _0x2786e9++;}}return _0x2786e9;}['setRevisionData'](_0x26828e){const _0x355f1f=this['repository']['getRevision'](_0x26828e['id']);if(_0x26828e['createdAt']&&(_0x26828e['createdAt']=new Date(_0x26828e['createdAt'])),_0x26828e['authorsIds']){const _0x37021d=this['editor']['plugins']['get']('Users');_0x26828e['authors']=_0x26828e['authorsIds']['map'](_0x5dd23c=>_0x37021d['getUser'](_0x5dd23c));}_0x355f1f['_update'](_0x26828e,!0x0);}['buildRevisionData']({revision:_0x573773=null,from:_0x2e7743=null,to:_0x5ab27a=null}){_0x2e7743=null!==_0x2e7743?_0x2e7743:_0x573773['fromVersion'],_0x5ab27a=null!==_0x5ab27a?_0x5ab27a:_0x573773['toVersion'];const _0x5b0c4c=this['_revisionDataBuilder']['getData'](_0x2e7743,_0x5ab27a),_0x54ad77={'diffData':_0x5b0c4c['diffData'],'authorsIds':_0x5b0c4c['authorsIds'],'fromVersion':_0x2e7743,'toVersion':_0x5ab27a};if(!_0x573773||_0x5ab27a!==_0x573773['toVersion']){const _0x2b8874=_0x5ab27a-0x1,_0x20b308=this['_source']['history']['getOperation'](_0x2b8874);_0x54ad77['createdAt']=_0x20b308&&_0x20b308['createdAt']||new Date();}if(this['_loadedStateData']&&_0x2e7743===this['_loadedStateData']['fromVersion']){for(const _0x498f85 of this['_loadedStateData']['authors'])_0x54ad77['authorsIds']['includes'](_0x498f85['id'])||_0x54ad77['authorsIds']['push'](_0x498f85['id']);}return _0x54ad77;}['_loadRevisionData'](_0x5b1bba){if(!_0x5b1bba||_0x5b1bba['diffData'])return Promise['resolve']();{const _0x3836b5=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x3836b5,'revisionId':_0x5b1bba['id']})['then'](_0x121d8c=>{_0x5b1bba['diffData']=_0x121d8c['diffData'];});}}['_bufferUpdate'](_0x2b3001,_0xbe8f69,_0x32451d){if(this['_bufferedUpdates']['has'](_0x2b3001)){const _0x8b6601=this['_bufferedUpdates']['get'](_0x2b3001);_0xbe8f69=_0x32451d?{..._0x8b6601,..._0xbe8f69}:{..._0xbe8f69,..._0x8b6601};}this['_bufferedUpdates']['set'](_0x2b3001,_0xbe8f69);}['_getFromVersion'](_0x3b91c6){const _0x308ac0=this['repository']['getRevisions']();_0x308ac0['reverse'](),_0x308ac0['shift']();const _0x58132f=_0x308ac0['find'](_0x14cc2a=>_0x14cc2a['toVersion']<=_0x3b91c6)['toVersion'];return _0x58132f<this['_startingVersion']?this['_startingVersion']:_0x58132f;}['_createInitialRevision'](_0x1666fc){const _0x4de8c5=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x4de8c5)this['_initialRevisionId']=_0x4de8c5['id'];else{const _0x5ac285=!this['editor']['model']['document']['roots']['find'](_0x4ebb2f=>this['editor']['model']['hasContent'](_0x4ebb2f)),_0x20e3c7=this['editor']['plugins']['get']('Users')['me']['id'],_0x35b91e=R(this['editor']['locale'],_0x5ac285?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x1666fc,'to':_0x1666fc,'id':this['_initialRevisionId'],'name':_0x35b91e,'creatorId':_0x20e3c7});}}['_createCurrentRevision'](_0x34c1d6){const _0x5877fe=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5877fe),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x34c1d6,'to':_0x34c1d6,'id':_0x5877fe,'name':'','creatorId':null}));}['_makeRevision']({name:_0x1017e2,from:_0xb11327,to:_0xbb6088,creatorId:_0xafaeca,id:_0x3346bc}){const _0x170b15=this['buildRevisionData']({'from':_0xb11327,'to':_0xbb6088});_0x170b15['name']=_0x1017e2,_0x170b15['creatorId']=_0xafaeca,_0x170b15['id']=_0x3346bc;const _0x43df31=this['addRevisionData'](_0x170b15);return this['adapter']&&this['_bufferUpdate'](_0x170b15['id'],_0x170b15,!0x0),_0x43df31;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x4969c2){return(_0x4969c2=_0x4969c2['filter'](_0x346384=>!_0x346384['name']||'revision-start'!==_0x346384['name']&&'revision-end'!==_0x346384['name']))['forEach'](_0x48ca1a=>{'string'!=typeof _0x48ca1a&&(_0x48ca1a['children']=this['_removeRevisionMarkers'](_0x48ca1a['children']),_0x48ca1a['attributes']=_0x48ca1a['attributes']['filter'](_0x58c58b=>!_0x58c58b[0x0]['startsWith']('data-revision-')));}),_0x4969c2;}}function V(_0x1377e3,_0xd1e27c){const _0x2ec5d6=_0xd1e27c['editing']['view']['document'];if('string'==typeof _0x1377e3)return new _0x224f95(_0x2ec5d6,_0x1377e3);{const _0xdc117d=_0x1377e3['children']['map'](_0xa680b3=>V(_0xa680b3,_0xd1e27c));return new(C[_0x1377e3['type']]||_0x3dbac4)(_0x2ec5d6,_0x1377e3['name'],_0x1377e3['attributes'],_0xdc117d);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x28a90a){this['editor']=_0x28a90a,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'](_0x346bad){this['source']=_0x346bad;const _0x267c36=new Map(),_0x2f5f64=new Map(),_0x32a89a=this['editor']['model']['document']['roots']['map'](_0x11ecf5=>_0x11ecf5['rootName']);for(const _0x3aa41d of _0x32a89a){const _0x5310bc=this['editor']['model']['document']['getRoot'](_0x3aa41d),_0x59fdec=F(_0x5310bc);_0x267c36['set'](_0x3aa41d,_0x59fdec),_0x2f5f64['set'](_0x3aa41d,Object['fromEntries'](_0x5310bc['getAttributes']()));}const _0x260ee7=Array['from'](this['editor']['model']['markers'])['map'](_0x8c895a=>[_0x8c895a['name'],_0x8c895a['getRange']()]),_0x54a5d2=this['source']['version'];this['_saveMetaData'](_0x54a5d2,_0x267c36,_0x260ee7,_0x2f5f64),this['_startingRevisionId']=this['_revisionId'];const _0x210101=new Map(),_0x30a0f0=new Map();for(const _0x40c545 of _0x32a89a){const _0x5c00e1=B(_0x40c545);_0x210101['set'](_0x40c545,_0x5c00e1),_0x30a0f0['set'](_0x40c545,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x210101,[],_0x30a0f0);}['getData'](_0x33b9d6,_0x910d45){if(this['_lastFrom']===_0x33b9d6&&this['_lastTo']<=_0x910d45)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x910d45,!0x0);else{if(!this['_savedMetaData']['has'](_0x33b9d6)){const _0x75419b=this['_getPreviousFrom'](_0x33b9d6);this['_calculateMetaData'](_0x75419b,_0x33b9d6,!0x1);}this['_calculateMetaData'](_0x33b9d6,_0x910d45,!0x0);}return this['_lastFrom']=_0x33b9d6,this['_lastTo']=_0x910d45,this['_getState']();}['loadState'](_0x42b94a){this['_reset'](),this['_lastFrom']=_0x42b94a['fromVersion'],this['_lastTo']=_0x42b94a['toVersion'];for(const _0x4e7586 in _0x42b94a['diffData']){const _0x523771=_0x42b94a['diffData'][_0x4e7586]['attachChange'],_0x4513fc=_0x1ea11a(_0x42b94a['diffData'][_0x4e7586]['attributesBefore'])||{},_0x4b6538=this['_makeModelFromViewString'](_0x42b94a['diffData'][_0x4e7586]['deletions']);_0x4b6538['rootName']=_0x4e7586,_0x4b6538['_isAttached']=!_0x523771||!_0x523771['isAttached'],_0x4b6538['isAttached']=()=>_0x4b6538['_isAttached'],this['_baseRoots']['set'](_0x4e7586,_0x4b6538),this['_baseRootsAttributes']['set'](_0x4e7586,_0x4513fc),_0x523771&&this['_touchedRoots']['set'](_0x4e7586,_0x523771);const _0x2c757a=this['_makeIdsRoot'](_0x4b6538);this['_baseIdsRoots']['set'](_0x4e7586,_0x2c757a);for(const [_0x4c5e3f,_0x1368c9]of _0x4b6538['markers']){if(!_0x4c5e3f['startsWith']('revision:'))continue;const _0x145fd2=_0x4c5e3f['split'](':')[0x2];for(const _0x635d22 of _0x1368c9['getWalker']({'singleCharacters':!0x0})){const _0x56be26=this['_getVidAttributeName'](_0x635d22),_0x2fe144='elementEnd'==_0x635d22['type']?_0x635d22['previousPosition']['path']['slice'](0x0,-0x1):_0x635d22['previousPosition']['path'],_0x2ccc10=_0x2c757a['getNodeByPath'](_0x2fe144)['getAttribute'](_0x56be26);this['_touched']['set'](_0x2ccc10,{'userId':_0x145fd2});}}}this['_startingRevisionId']=this['_revisionId'];const _0x4d6a9d=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x3842fc=>!this['_touched']['has'](_0x3842fc));let _0x2eafc0=0x0;const _0x3ae627=new Map();for(const _0x4f0430 in _0x42b94a['diffData']){const _0x330dcf=_0x42b94a['diffData'][_0x4f0430]['attachChange'],_0x41cdf7=_0x1ea11a(_0x42b94a['diffData'][_0x4f0430]['attributesAfter'])||{},_0x360abc=this['_makeModelFromViewString'](_0x42b94a['diffData'][_0x4f0430]['insertions']);_0x360abc['rootName']=_0x4f0430,_0x360abc['_isAttached']=!_0x330dcf||_0x330dcf['isAttached'],_0x360abc['isAttached']=()=>_0x360abc['_isAttached'],this['_diffRoots']['set'](_0x4f0430,_0x360abc),this['_diffRootsAttributes']['set'](_0x4f0430,_0x41cdf7);const _0x3490af=this['_makeIdsRoot'](_0x360abc,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x4f0430,_0x3490af),_0x3ae627['set'](_0x4f0430,_0x360abc['isAttached']()?_0x41cdf7:{});for(const [_0xd55c9a,_0x452afe]of _0x360abc['markers']){if(!_0xd55c9a['startsWith']('revision:'))continue;const _0x18d6de=_0xd55c9a['split'](':')[0x2];for(const _0x5cd301 of _0x452afe['getWalker']({'singleCharacters':!0x0})){const _0xa31dfb=this['_getVidAttributeName'](_0x5cd301),_0x2ffbee=this['_revisionId']++,_0x50f180='elementEnd'==_0x5cd301['type']?_0x5cd301['previousPosition']['path']['slice'](0x0,-0x1):_0x5cd301['previousPosition']['path'];_0x3490af['getNodeByPath'](_0x50f180)['_setAttribute'](_0xa31dfb,_0x2ffbee),this['_touched']['set'](_0x2ffbee,{'userId':_0x18d6de});}}for(const _0x1a8d45 of this['editor']['model']['createRangeIn'](_0x360abc)['getWalker']({'singleCharacters':!0x0})){const _0x3fc989=this['_getVidAttributeName'](_0x1a8d45),_0x31ab9e='elementEnd'==_0x1a8d45['type']?_0x1a8d45['previousPosition']['path']['slice'](0x0,-0x1):_0x1a8d45['previousPosition']['path'],_0x20740d=_0x3490af['getNodeByPath'](_0x31ab9e);_0x20740d['getAttribute'](_0x3fc989)>0x0||_0x20740d['_setAttribute'](_0x3fc989,_0x4d6a9d[_0x2eafc0++]);}for(const [_0xb172f6,_0x4f2846]of _0x360abc['markers'])_0xb172f6['startsWith']('revision:')||this['_markers']['set'](_0xb172f6,_0x4f2846);}const _0x43be6d=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x43be6d),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x43be6d,0x1));const _0x27a469=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x27a469),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x27a469,0x1));const _0x55ab50=Array['from'](this['_diffRoots'])['map'](([_0xc297b4,_0x1e151b])=>[_0xc297b4,F(_0x1e151b)]);this['_saveMetaData'](this['_lastTo'],_0x55ab50,this['_markers'],_0x3ae627);}['_makeModelFromViewString'](_0x570c16){const _0x41e887=JSON['parse'](_0x570c16),_0x470243=this['editor']['editing']['view']['document'],_0x3bcfa6=new _0x59148e(_0x470243,_0x41e887['map'](_0x3c19ae=>V(_0x3c19ae,this['editor'])));return this['editor']['data']['toModel'](_0x3bcfa6);}['_saveMetaData'](_0x2978af,_0x15e335,_0xd2be30,_0x145b92){const _0x3a169d=new Map(_0x15e335),_0x12a1c6=new Map(_0x1ea11a(_0x145b92)),_0xc29e2c=new Map();for(const [_0x45b35a,_0xa685bd]of _0xd2be30)_0xc29e2c['set'](_0x45b35a,{'start':_0xa685bd['start']['clone'](),'end':_0xa685bd['end']['clone'](),'rootName':_0xa685bd['root']['rootName']});this['_savedMetaData']['set'](_0x2978af,{'roots':_0x3a169d,'markers':_0xc29e2c,'rootsAttributes':_0x12a1c6});}['_removeMetaData'](_0x22765b){this['_savedMetaData']['delete'](_0x22765b);}['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'](_0x5eee8a,_0x2bf51b=null){let _0x537c92=null;_0x5eee8a['is']('documentFragment')||(_0x537c92=new ft(_0x5eee8a['name'],{'vid_start':null===_0x2bf51b?this['_revisionId']++:_0x2bf51b++}));const _0x3211a6=[];for(const _0x190400 of _0x5eee8a['getChildren']())if(_0x190400['is']('element')){_0x3211a6['push'](this['_makeIdsRoot'](_0x190400,_0x2bf51b));const _0x35e799=_0x3211a6[_0x3211a6['length']-0x1];null!==_0x2bf51b&&(_0x2bf51b=_0x35e799['is']('element','$text')?_0x35e799['getAttribute']('vid')+0x1:_0x35e799['getAttribute']('vid_end')+0x1);}else{for(let _0x49b4f9=0x0;_0x49b4f9<_0x190400['offsetSize'];_0x49b4f9++)_0x3211a6['push'](new ft('$text',{'vid':null===_0x2bf51b?this['_revisionId']++:_0x2bf51b++}));}if(_0x5eee8a['is']('documentFragment')){const _0x215bb5=B(_0x5eee8a['rootName']);return _0x215bb5['_insertChild'](0x0,_0x3211a6),_0x215bb5;}return _0x537c92['_setAttribute']('vid_end',null===_0x2bf51b?this['_revisionId']++:_0x2bf51b++),_0x537c92['_insertChild'](0x0,_0x3211a6),_0x537c92;}['_calculateMetaData'](_0x50af48,_0x45ee70,_0x1ef97e){this['_reset']();const {roots:_0x43f010,markers:_0x29a3ae,rootsAttributes:_0x51657b}=this['_savedMetaData']['get'](_0x50af48);this['_baseRoots']=new Map(_0x43f010),this['_baseRootsAttributes']=new Map(_0x1ea11a(_0x51657b));for(const [_0x5d2aac,_0x1a8558]of this['_baseRoots'])if('$graveyard'!==_0x5d2aac&&(this['_diffRoots']['set'](_0x5d2aac,F(_0x1a8558)),this['_diffRootsAttributes']=new Map(_0x1ea11a(_0x51657b)),_0x1ef97e)){const _0x47410f=this['_revisionId'];this['_idsRoots']['set'](_0x5d2aac,this['_makeIdsRoot'](_0x1a8558)),this['_baseIdsRoots']['set'](_0x5d2aac,this['_makeIdsRoot'](_0x1a8558,_0x47410f));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x1ef97e&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x5c7d63,_0x58d476]of _0x29a3ae){const _0x2e42eb=this['_baseRoots']['get'](_0x58d476['rootName']),_0x265495=this['_diffRoots']['get'](_0x58d476['rootName']),_0x20deea=new vt(this['_fixPosition'](_0x58d476['start'],_0x2e42eb),this['_fixPosition'](_0x58d476['end'],_0x2e42eb)),_0x4ade3e=this['_fixRange'](_0x20deea,_0x265495);_0x2e42eb['markers']['set'](_0x5c7d63,_0x20deea),this['_markers']['set'](_0x5c7d63,_0x4ade3e);}this['_applyOperations'](_0x50af48,_0x45ee70,_0x1ef97e);}['_applyOperations'](_0xc43566,_0x2ea13d,_0x20e8c8){for(const _0x3e83aa of this['source']['getOperations'](_0xc43566,_0x2ea13d))this['_handleOperation'](_0x3e83aa,_0x20e8c8);for(const _0x2e9a49 of this['_diffRoots']['values']())_0x2e9a49['markers']['clear']();for(const [_0x57038d,_0x5e55ee]of this['_markers']){this['_diffRoots']['get'](_0x5e55ee['root']['rootName'])['markers']['set'](_0x57038d,_0x5e55ee['clone']());}const _0x1bc2f2=new Map(),_0x197f12=new Map();for(const [_0x136c27,_0xb026b7]of this['_diffRoots'])_0x1bc2f2['set'](_0x136c27,F(_0xb026b7)),_0x197f12['set'](_0x136c27,this['_diffRootsAttributes']['get'](_0x136c27));this['_saveMetaData'](_0x2ea13d,_0x1bc2f2,this['_markers'],_0x197f12);}['_getPreviousFrom'](_0x20d473){const _0x32de64=Array['from'](this['_savedMetaData']['keys']());_0x32de64['sort']((_0x52f229,_0x3183cc)=>_0x52f229-_0x3183cc),_0x32de64['reverse']();for(const _0x3a8c06 of _0x32de64)if(_0x3a8c06<_0x20d473)return _0x3a8c06;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x37d160,_0x5a7e16){const _0x1cde8e=Array['from'](_0x5a7e16['markers'])['map'](([_0x1c92cf,_0x512e13])=>[_0x1c92cf,this['_fixRange'](_0x512e13,_0x37d160)]);_0x37d160['markers']=new Map(_0x1cde8e);}['_transformMarkers'](_0x5f43db){for(const _0x41efb7 of this['_markers']['values']()){const _0x3fd43a=_0x41efb7['getTransformedByOperation'](_0x5f43db),_0x2aa0fc=vt['_createFromRanges'](_0x3fd43a);_0x41efb7['start']=_0x2aa0fc['start'],_0x41efb7['end']=_0x2aa0fc['end'];}}['_handleOperation'](_0x2d5cb3,_0x49e705){if('addRoot'!=_0x2d5cb3['type']&&'detachRoot'!=_0x2d5cb3['type']){if('insert'==_0x2d5cb3['type']){const _0x5a582c=_0x2d5cb3['position']['root']['rootName'];this['_diffRoots']['has'](_0x5a582c)||(this['_diffRoots']['set'](_0x5a582c,B(_0x5a582c,!0x0)),this['_diffRootsAttributes']['set'](_0x5a582c,{}),_0x49e705&&this['_idsRoots']['set'](_0x5a582c,B(_0x5a582c,!0x0)));}else{if('addRootAttribute'==_0x2d5cb3['type']||'removeRootAttribute'==_0x2d5cb3['type']||'changeRootAttribute'==_0x2d5cb3['type'])return void this['_handleRootAttributeOperation'](_0x2d5cb3);'marker'==_0x2d5cb3['type']&&this['_handleMarkerOperation'](_0x2d5cb3);}if('marker'!==_0x2d5cb3['type']){const _0x4fc678=this['_cloneOperation'](_0x2d5cb3,this['_diffRoots']);_0x4fc678['_execute'](),this['_transformMarkers'](_0x4fc678);}if(_0x49e705)switch(_0x2d5cb3['type']){case'insert':this['_handleInsertOperation'](_0x2d5cb3);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x2d5cb3);break;case'merge':this['_handleMergeOperation'](_0x2d5cb3);break;case'split':this['_handleSplitOperation'](_0x2d5cb3);}}else this['_handleRootOperation'](_0x2d5cb3,_0x49e705);}['_cloneOperation'](_0xea492d,_0xac1c47){const _0x141c76=_0xea492d['clone']();return _0x141c76['_authorId']=_0xea492d['_authorId'],this['_fixOperation'](_0x141c76,_0xac1c47),_0x141c76;}['_getBaseVids'](_0x560276){return _0x560276['map'](_0x3fe2b4=>{const _0x75312e=this['_getVidAttributeName'](_0x3fe2b4);return Number(_0x3fe2b4['item']['getAttribute'](_0x75312e));});}['_generateTape'](_0x250834,_0x15b203){if(_0x250834['is']('element','$text'))_0x15b203['push']({'item':_0x250834,'type':'text'});else{_0x250834['is']('element')&&_0x15b203['push']({'item':_0x250834,'type':'elementStart'});for(const _0x558c1a of _0x250834['getChildren']())this['_generateTape'](_0x558c1a,_0x15b203);_0x250834['is']('element')&&_0x15b203['push']({'item':_0x250834,'type':'elementEnd'});}return _0x15b203;}['_getState'](){const _0x5e3d1e=new Map(this['_touched']),_0x5b3a1c=new Map(_0x5e3d1e),_0x2baad2=new Map(),_0x361e90={'insertions':{},'deletions':{}},_0x26cf03={'insertions':{},'deletions':{}},_0x5a3153=new Map(),_0x38fe81=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x38fe81['delete']('$graveyard');for(const _0x488859 of _0x38fe81){const _0x34fbe2=this['_diffRoots']['get'](_0x488859)||B(_0x488859,!0x1),_0x566911=this['_baseRoots']['get'](_0x488859)||B(_0x488859,!0x1);_0x34fbe2['isAttached']()||_0x566911['isAttached']()?(_0x361e90['insertions'][_0x488859]=F(_0x34fbe2),_0x361e90['deletions'][_0x488859]=F(_0x566911),this['_copyMarkers'](_0x361e90['deletions'][_0x488859],_0x566911),this['_copyMarkers'](_0x361e90['insertions'][_0x488859],_0x34fbe2),_0x26cf03['insertions'][_0x488859]=this['_generateTape'](this['_idsRoots']['get'](_0x488859),[]),_0x26cf03['deletions'][_0x488859]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x488859)||B(_0x488859,!0x1),[])):_0x38fe81['delete'](_0x488859);}for(const _0x1dcbf2 of _0x38fe81){const _0x187fdb=_0x26cf03['insertions'][_0x1dcbf2];for(const _0x573e40 of _0x187fdb){const _0x2090e7=this['_getVidAttributeName'](_0x573e40),_0x30b453=_0x573e40['item']['getAttribute'](_0x2090e7);_0x5b3a1c['delete'](_0x30b453),_0x30b453>=this['_startingRevisionId']&&_0x2baad2['set'](_0x30b453,_0x5e3d1e['get'](_0x30b453));}}for(const _0x1cad03 of _0x38fe81){const _0x109c69=_0x26cf03['insertions'][_0x1cad03],_0x193c29=this['_getBaseVids'](_0x26cf03['deletions'][_0x1cad03]);let _0x43ad5a=0x0;for(const _0x1614d7 of _0x109c69){const _0x262247=this['_getVidAttributeName'](_0x1614d7),_0x14d977=_0x1614d7['item']['getAttribute'](_0x262247);if(!_0x2baad2['has'](_0x14d977)&&!_0x5a3153['has'](_0x14d977)){if(_0x5b3a1c['has'](_0x14d977))_0x43ad5a++;else{if(_0x14d977!=_0x193c29[_0x43ad5a]){const _0xf396c6=_0x5e3d1e['get'](_0x14d977)||_0x5e3d1e['get'](_0x193c29[_0x43ad5a]);for(;_0x14d977!=_0x193c29[_0x43ad5a];)_0x5b3a1c['has'](_0x193c29[_0x43ad5a])||(_0x5a3153['set'](_0x193c29[_0x43ad5a],_0xf396c6),_0x5e3d1e['set'](_0x193c29[_0x43ad5a],_0xf396c6)),_0x43ad5a++;}_0x43ad5a++;}}}}for(const _0x4e4dab of _0x38fe81){const _0x1bcc91=_0x26cf03['insertions'][_0x4e4dab];for(const _0x50f89a of _0x1bcc91){const _0x39de11=this['_getVidAttributeName'](_0x50f89a),_0x1fc2df=_0x50f89a['item']['getAttribute'](_0x39de11);if(_0x5a3153['has'](_0x1fc2df)){const _0x20e5b7=_0x5a3153['get'](_0x1fc2df);_0x5b3a1c['has'](_0x1fc2df)||_0x5b3a1c['set'](_0x1fc2df,{..._0x20e5b7}),_0x2baad2['set'](_0x1fc2df,{..._0x20e5b7});}}}for(const _0x39404e of _0x5b3a1c['keys']())_0x39404e>=this['_startingRevisionId']&&_0x5b3a1c['delete'](_0x39404e);const _0x27d029=new Map();for(const _0x40459b of _0x38fe81){let _0x3ecaed=_0x26cf03['insertions'][_0x40459b];for(const _0x1325f0 of _0x3ecaed)if(_0x1325f0['item']['is']('element','tableCell')){const _0x4e1d79=this['_getVidAttributeName'](_0x1325f0),_0x101f63=_0x1325f0['item']['getAttribute'](_0x4e1d79);if(_0x2baad2['has'](_0x101f63)){const _0x2bb805=_0x1325f0['item']['parent']['parent']['getAttribute']('vid_start'),_0x44aa1a=_0x27d029['get'](_0x2bb805)||new Set();_0x44aa1a['add'](_0x2baad2['get'](_0x101f63)['userId']),_0x27d029['set'](_0x2bb805,_0x44aa1a);}}_0x3ecaed=_0x26cf03['deletions'][_0x40459b];for(const _0x4e0d0e of _0x3ecaed)if(_0x4e0d0e['item']['is']('element','tableCell')){const _0x432805=this['_getVidAttributeName'](_0x4e0d0e),_0xbfe5a=_0x4e0d0e['item']['getAttribute'](_0x432805);if(_0x5b3a1c['has'](_0xbfe5a)){const _0x46a0d8=_0x4e0d0e['item']['parent']['parent']['getAttribute']('vid_start'),_0x2559d8=_0x27d029['get'](_0x46a0d8)||new Set();_0x2559d8['add'](_0x5b3a1c['get'](_0xbfe5a)['userId']),_0x27d029['set'](_0x46a0d8,_0x2559d8);}}for(const _0xe4cdeb of _0x27d029['keys']())(_0x2baad2['has'](_0xe4cdeb)||_0x5b3a1c['has'](_0xe4cdeb))&&_0x27d029['delete'](_0xe4cdeb);}for(const _0x4119b7 of _0x38fe81){const _0x2fb93a=_0x26cf03['insertions'][_0x4119b7];let _0x30314d=null,_0x3d2c96=null;for(const _0xe32df5 of _0x2fb93a){const _0x2e931a=this['_getVidAttributeName'](_0xe32df5),_0xace276=_0xe32df5['item']['getAttribute'](_0x2e931a),_0x12cd29=_0x27d029['get'](_0xace276);_0x12cd29&&'elementStart'==_0xe32df5['type']&&(_0x30314d=Array['from'](_0x12cd29)[0x0],_0x3d2c96=_0xe32df5['item']['getAttribute']('vid_end')),_0x30314d&&(_0x5b3a1c['set'](_0xace276,{'userId':_0x30314d}),_0x2baad2['set'](_0xace276,{'userId':_0x30314d})),_0xace276==_0x3d2c96&&(_0x30314d=null,_0x3d2c96=null);}}const _0xc3fbe9={},_0x32ed62=new Set();for(const _0x422ad5 of _0x38fe81){const _0x551607=_0x361e90['deletions'][_0x422ad5],_0x16a072=_0x361e90['insertions'][_0x422ad5];for(const {userId:_0x43f9bd}of this['_touchedMarkers']['values']())null!==_0x43f9bd&&_0x32ed62['add'](_0x43f9bd);for(const {userId:_0x3d2e8c}of this['_touchedRoots']['values']())null!==_0x3d2e8c&&_0x32ed62['add'](_0x3d2e8c);this['_markChanges'](_0x16a072,_0x26cf03['insertions'][_0x422ad5],_0x2baad2,'insertion',_0x32ed62),this['_markChanges'](_0x551607,_0x26cf03['deletions'][_0x422ad5],_0x5b3a1c,'deletion',_0x32ed62),_0xc3fbe9[_0x422ad5]={'insertions':this['_prepareViewToSave'](_0x16a072),'deletions':this['_prepareViewToSave'](_0x551607),'attachChange':this['_touchedRoots']['get'](_0x422ad5)||null,'attributesBefore':_0x1ea11a(this['_baseRootsAttributes']['get'](_0x422ad5))||{},'attributesAfter':_0x1ea11a(this['_diffRootsAttributes']['get'](_0x422ad5))};}return{'diffData':_0xc3fbe9,'authorsIds':Array['from'](_0x32ed62)};}['_processRootBeforeSave'](_0x5058c7){for(const [,_0x1f00f1]of _0x5058c7['markers']){const _0x2e1d37=_0x1f00f1['start']['getAncestors']()['filter'](_0x4f4c57=>'tableCell'==_0x4f4c57['name']);for(const _0xd74906 of _0x2e1d37)0x1==_0xd74906['childCount']&&_0xd74906['getChild'](0x0)['is']('element','paragraph')&&_0xd74906['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x5c524c){this['_processRootBeforeSave'](_0x5c524c);const _0x3edf3f=this['editor']['data']['toView'](_0x5c524c,{}),_0x2bc02f=Array['from'](_0x3edf3f['getChildren']())['map'](_0x26439b=>this['_getViewJson'](_0x26439b));return JSON['stringify'](_0x2bc02f);}['_getViewJson'](_0x41edaf){if(_0x41edaf['is']('$text'))return _0x41edaf['data'];{const _0x59dd43=_0x41edaf;return{'type':Object['keys'](C)['find'](_0x4d01b3=>_0x41edaf instanceof C[_0x4d01b3]),'name':_0x59dd43['name'],'attributes':Array['from'](_0x59dd43['getAttributes']()),'children':Array['from'](_0x59dd43['getChildren']())['map'](_0x5a1a98=>this['_getViewJson'](_0x5a1a98))};}}['_markChanges'](_0x392bc3,_0x19becc,_0x5726af,_0x400ac8,_0x5d40e8){let _0x455b8e=null,_0x42f56b=null,_0x557276=0x0;const _0x4a427d=this['editor']['model'];for(let _0x31bec0=0x0;_0x31bec0<_0x19becc['length'];_0x31bec0++){const _0x57d129=this['_getVidAttributeName'](_0x19becc[_0x31bec0]),_0x3a016a=_0x19becc[_0x31bec0]['item']['getAttribute'](_0x57d129),_0x4a9a45=_0x5726af['get'](_0x3a016a),_0x45999f=_0x31bec0==_0x19becc['length']-0x1;(!_0x455b8e&&_0x4a9a45&&(_0x455b8e=_0x4a9a45,_0x42f56b=_0x19becc[_0x31bec0]),_0x455b8e&&(!_0x4a9a45||_0x4a9a45['userId']!=_0x455b8e['userId']))&&(_0x491a6d(_0x4a9a45,J(_0x42f56b,_0x392bc3,_0x4a427d),J(_0x19becc[_0x31bec0],_0x392bc3,_0x4a427d)),_0x455b8e=_0x4a9a45||null,_0x42f56b=_0x4a9a45?_0x19becc[_0x31bec0]:null),_0x455b8e&&_0x45999f&&_0x491a6d(_0x4a9a45,J(_0x42f56b,_0x392bc3,_0x4a427d),q(_0x19becc[_0x31bec0],_0x392bc3,_0x4a427d));}function _0x491a6d(_0x5eadda,_0x215822,_0x556fc3){const _0x456cab=_0x455b8e['userId'],_0x4d9d4a='revision:'+_0x400ac8+':'+_0x456cab+':'+_0x557276++,_0x206c3b=_0x4a427d['createRange'](_0x215822,_0x556fc3);_0x392bc3['markers']['set'](_0x4d9d4a,_0x206c3b),null!==_0x456cab&&_0x5d40e8['add'](_0x456cab);}}['_getVidAttributeName'](_0x38a7e5){switch(_0x38a7e5['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x79ef66,_0x40baa1){_0x79ef66['baseVersion']=null;for(const _0x57e98b in _0x79ef66){const _0x9b709b=_0x79ef66[_0x57e98b];if(_0x9b709b instanceof gt){const _0x17b22e=_0x40baa1['get'](_0x9b709b['root']['rootName']);_0x79ef66[_0x57e98b]=this['_fixPosition'](_0x9b709b,_0x17b22e);}if(_0x9b709b instanceof vt){const _0x5f2612=_0x40baa1['get'](_0x9b709b['root']['rootName']);_0x79ef66[_0x57e98b]=this['_fixRange'](_0x9b709b,_0x5f2612);}'root'===_0x57e98b&&(_0x79ef66['root']=_0x40baa1['get'](_0x79ef66['root']['rootName']));}}['_fixRange'](_0x44861d,_0x2f2f11){return this['editor']['model']['createRange'](this['_fixPosition'](_0x44861d['start'],_0x2f2f11),this['_fixPosition'](_0x44861d['end'],_0x2f2f11));}['_fixPosition'](_0x52933e,_0x5b0293){return this['editor']['model']['createPositionFromPath'](_0x5b0293,_0x52933e['path'],_0x52933e['stickiness']);}['_handleInsertOperation'](_0x3debaa){const _0xee480f=this['_idsRoots']['get'](_0x3debaa['position']['root']['rootName']),_0x532801=this['_fixPosition'](_0x3debaa['position'],_0xee480f),_0x234014=null===_0x3debaa['_authorId']?null:_0x3debaa['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xf08828=_0x532801['parent'],_0x147396=this['_revisionId'],_0x2972fe=[];for(const _0x1919a7 of _0x3debaa['nodes'])if(_0x1919a7['is']('element'))_0x2972fe['push'](this['_makeIdsRoot'](_0x1919a7));else{for(let _0x3f8894=0x0;_0x3f8894<_0x1919a7['offsetSize'];_0x3f8894++)_0x2972fe['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x1451e6=this['_revisionId'];for(let _0x32be75=_0x147396;_0x32be75<_0x1451e6;_0x32be75++)this['_touched']['set'](_0x32be75,{'userId':_0x234014});_0xf08828['_insertChild'](_0x532801['offset'],_0x2972fe);}['_handleMoveOperation'](_0x599c2f){(_0x599c2f=this['_cloneOperation'](_0x599c2f,this['_idsRoots']))['_execute']();const _0x5f28bf=null===_0x599c2f['_authorId']?null:_0x599c2f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x28558=_0x599c2f['getMovedRangeStart'](),_0x3e3924=_0x28558['parent'],_0x210b37=_0x28558['offset'];!function _0x2441c4(_0x184ec6,_0x1b2603,_0x4aa027,_0x1851b9){for(let _0x1975a6=_0x4aa027;_0x1975a6<_0x1851b9;_0x1975a6++){const _0x159899=_0x1b2603['getChild'](_0x1975a6);_0x159899['is']('element','$text')?_0x184ec6['set'](_0x159899['getAttribute']('vid'),{'userId':_0x5f28bf}):(_0x184ec6['set'](_0x159899['getAttribute']('vid_start'),{'userId':_0x5f28bf}),_0x2441c4(_0x184ec6,_0x159899,0x0,_0x159899['childCount']),_0x184ec6['set'](_0x159899['getAttribute']('vid_end'),{'userId':_0x5f28bf}));}}(this['_touched'],_0x3e3924,_0x210b37,_0x210b37+_0x599c2f['howMany']);}['_handleMergeOperation'](_0x59e136){const _0x109c3b=null===(_0x59e136=this['_cloneOperation'](_0x59e136,this['_idsRoots']))['_authorId']?null:_0x59e136['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x16348a=_0x59e136['targetPosition']['parent'],_0x4005f1=_0x59e136['sourcePosition']['parent'],_0x1457a4=_0x16348a['getAttribute']('vid_end'),_0x2276c9=_0x4005f1['getAttribute']('vid_start');_0x16348a['_setAttribute']('vid_end',_0x4005f1['getAttribute']('vid_end')),_0x4005f1['_setAttribute']('vid_end',_0x1457a4),this['_touched']['set'](_0x2276c9,{'userId':_0x109c3b}),this['_touched']['set'](_0x1457a4,{'userId':_0x109c3b}),_0x59e136['_execute']();}['_handleSplitOperation'](_0x7275e4){const _0x55ff27=null===(_0x7275e4=this['_cloneOperation'](_0x7275e4,this['_idsRoots']))['_authorId']?null:_0x7275e4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x27d8de=_0x7275e4['graveyardPosition'],_0x2c9d2b=_0x7275e4['splitPosition']['parent'];_0x7275e4['_execute']();const _0x16e7f1=_0x2c9d2b['getAttribute']('vid_end'),_0x1efcfe=_0x7275e4['insertionPosition']['nodeAfter'];if(_0x27d8de){const _0x483527=_0x1efcfe['getAttribute']('vid_end'),_0x4b7f2a=_0x2c9d2b['getAttribute']('vid_end');_0x2c9d2b['_setAttribute']('vid_end',_0x483527),_0x1efcfe['_setAttribute']('vid_end',_0x4b7f2a),this['_touched']['set'](_0x2c9d2b['getAttribute']('vid_end'),{'userId':_0x55ff27}),this['_touched']['set'](_0x1efcfe['getAttribute']('vid_start'),{'userId':_0x55ff27});}else{const _0x447d25=this['_revisionId']++,_0x51d0e6=this['_revisionId']++;_0x2c9d2b['_setAttribute']('vid_end',_0x447d25),_0x1efcfe['_setAttribute']('vid_start',_0x51d0e6),_0x1efcfe['_setAttribute']('vid_end',_0x16e7f1),this['_touched']['set'](_0x447d25,{'userId':_0x55ff27}),this['_touched']['set'](_0x51d0e6,{'userId':_0x55ff27});}}['_handleMarkerOperation'](_0x543e7a){if(!_0x543e7a['affectsData'])return;const _0x45057b=(_0x543e7a=this['_cloneOperation'](_0x543e7a,this['_diffRoots']))['oldRange']?_0x543e7a['oldRange']['root']:null,_0xf1fc4b=_0x543e7a['newRange']?_0x543e7a['newRange']['root']:null;_0x45057b&&this['_markers']['delete'](_0x543e7a['name']),_0xf1fc4b&&this['_markers']['set'](_0x543e7a['name'],_0x543e7a['newRange']['clone']());const _0x2e11a0=null===_0x543e7a['_authorId']?null:_0x543e7a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5dc276=_0x543e7a['name'];if(!this['_touchedMarkers']['has'](_0x5dc276))return void this['_touchedMarkers']['set'](_0x5dc276,{'range':_0x543e7a['oldRange'],'userId':_0x2e11a0});const _0x39d0ad=this['_touchedMarkers']['get'](_0x5dc276),_0x20b91d=_0x39d0ad['range'],_0x245ca3=_0x543e7a['newRange'];null==_0x20b91d&&null==_0x245ca3||_0x20b91d&&_0x245ca3&&_0x20b91d['isEqual'](_0x245ca3)?this['_touchedMarkers']['delete'](_0x543e7a['name']):_0x39d0ad['userId']=_0x2e11a0;}['_handleRootOperation'](_0x41add0,_0x396d3b){this['_diffRoots']['has'](_0x41add0['rootName'])?this['_diffRoots']['get'](_0x41add0['rootName'])['_isAttached']=_0x41add0['isAdd']:(this['_diffRoots']['set'](_0x41add0['rootName'],B(_0x41add0['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x41add0['rootName'],{}),_0x396d3b&&this['_idsRoots']['set'](_0x41add0['rootName'],B(_0x41add0['rootName'],!0x0)));const _0x36c5f7=null===_0x41add0['_authorId']?null:_0x41add0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1c7055=this['_touchedRoots']['get'](_0x41add0['rootName']);_0x1c7055&&_0x1c7055['userId']===_0x36c5f7?this['_touchedRoots']['delete'](_0x41add0['rootName']):this['_touchedRoots']['set'](_0x41add0['rootName'],{'userId':_0x36c5f7,'isAttached':_0x41add0['isAdd']});}['_handleRootAttributeOperation'](_0x2c8158){const _0xdf499c=this['_diffRootsAttributes']['get'](_0x2c8158['root']['rootName']);null===_0x2c8158['newValue']?delete _0xdf499c[_0x2c8158['key']]:_0xdf499c[_0x2c8158['key']]=_0x2c8158['newValue'];}}function F(_0x2b555e){const _0x51f5ab=B(_0x2b555e['rootName'],_0x2b555e['isAttached']());for(const _0x29f2ed of _0x2b555e['getChildren']()){const _0x4e56a2=_0x29f2ed['_clone'](!0x0);_0x51f5ab['_appendChild'](_0x4e56a2);}return _0x51f5ab;}function B(_0x568f0a,_0x29bada=!0x0){const _0x524892=new wt();return _0x524892['rootName']=_0x568f0a,_0x524892['_isAttached']=_0x29bada,_0x524892['isAttached']=()=>_0x524892['_isAttached'],_0x524892;}function J(_0x3801e4,_0xbeca1d,_0x4287cc){const _0x42af70='elementEnd'==_0x3801e4['type']?_0x4287cc['createPositionAt'](_0x3801e4['item'],'end'):_0x4287cc['createPositionBefore'](_0x3801e4['item']);return _0x4287cc['createPositionFromPath'](_0xbeca1d,_0x42af70['path'],_0x42af70['stickiness']);}function q(_0x48bbc5,_0x500b24,_0x463853){const _0x400796='elementStart'==_0x48bbc5['type']?_0x463853['createPositionAt'](_0x48bbc5['item'],0x0):_0x463853['createPositionAfter'](_0x48bbc5['item']);return _0x463853['createPositionFromPath'](_0x500b24,_0x400796['path'],_0x400796['stickiness']);}class ns extends _0x225181{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x5c4ebd,_0x1922fa){super(_0x5c4ebd),this['focusTracker']=new _0xe61897(),this['keystrokes']=new _0x5cf09a(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x1922fa),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'](),_0x7d4f2a({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x5748a3=_0x3af286=>_0x3af286['stopPropagation']();this['keystrokes']['set']('arrowright',_0x5748a3),this['keystrokes']['set']('arrowleft',_0x5748a3),this['keystrokes']['set']('arrowup',_0x5748a3),this['keystrokes']['set']('arrowdown',_0x5748a3);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x2915ae){this['revisionNameInputView']['fieldView']['element']['value']=_0x2915ae['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x417067){const _0x29805d=new at(this['locale'],_0x37cab7),_0x36a2d3=_0x29805d['fieldView'];_0x36a2d3['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x4bca6f=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x417067&&(_0x4bca6f+='\x20('+R(this['locale'],'optional')+')'),(_0x29805d['label']=_0x4bca6f,_0x36a2d3['on']('input',()=>{this['revisionNameInputValue']=_0x36a2d3['element']['value']['trim']();}),_0x29805d);}}class u extends _0x49970d{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x2f1e75=this['editor'],_0x969d48=_0x2f1e75['plugins']['get']('RevisionTracker');_0x2f1e75['ui']['componentFactory']['add']('revisionHistory',_0x511750=>{const _0x43d47c=_0xd76513(_0x511750),_0x58f51e=_0x43d47c['panelView']['children'],_0x514c7c=new te(_0x511750),_0x5f5cea=new _0x1bdf1e(_0x511750),_0x26ee62=new _0x4f59ce(_0x511750),_0x2f3cf7=new _0x1bdf1e(_0x511750),_0x131ed9=new _0x4f59ce(_0x511750);return _0x43d47c['bind']('isEnabled')['to'](_0x969d48,'isReady',_0x969d48,'isEnabled',_0x2f1e75,'isReadOnly',(_0x4d208d,_0x96dbcb,_0x4c358b)=>_0x4d208d&&_0x96dbcb&&!_0x4c358b),_0x43d47c['buttonView']['set']({'icon':_0x429f7b['history'],'label':R(_0x511750,'Revision\x20history'),'tooltip':!0x0}),_0x26ee62['set']({'label':R(_0x511750,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x26ee62['bind']('isEnabled')['to'](_0x969d48,'isReady',_0x969d48,'isEnabled',_0x2f1e75,'isReadOnly',(_0x32ca84,_0x588757,_0x66a5b2)=>_0x32ca84&&_0x588757&&!_0x66a5b2),_0x26ee62['on']('execute',()=>this['_showDialog']()),_0x131ed9['set']({'label':R(_0x511750,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x131ed9['bind']('isEnabled')['to'](_0x969d48,'isReady',_0x2f1e75,'isReadOnly',(_0x815f97,_0x2720dc)=>_0x815f97&&!_0x2720dc),_0x131ed9['on']('execute',()=>{_0x2f1e75['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x43d47c['isOpen']=!0x1,_0x2f1e75['editing']['view']['focus']();}),_0x5f5cea['children']['add'](_0x26ee62),_0x2f3cf7['children']['add'](_0x131ed9),_0x514c7c['role']='menu',_0x514c7c['items']['addMany']([_0x5f5cea,_0x2f3cf7]),_0x58f51e['add'](_0x514c7c),_0x43d47c;}),_0x2f1e75['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x44bfd4=this['editor'],_0x32111d=_0x44bfd4['locale'],_0x5c4fa7=new _0x353dc1(_0x32111d),_0x514043=new _0x545793(_0x32111d);_0x5c4fa7['buttonView']['set']({'icon':_0x429f7b['history'],'label':R(_0x32111d,'Revision\x20history')});const _0x333a90=new _0x3ec8b1(_0x32111d,_0x5c4fa7),_0x41c38a=new _0x554448(_0x32111d);_0x41c38a['set']({'label':R(_0x32111d,'Save\x20current\x20revision')}),_0x41c38a['delegate']('execute')['to'](_0x5c4fa7),_0x41c38a['on']('execute',()=>{this['_showDialog']();}),_0x333a90['children']['add'](_0x41c38a),_0x514043['items']['add'](_0x333a90);const _0x122c39=new _0x3ec8b1(_0x32111d,_0x5c4fa7),_0x3bb9d7=new _0x554448(_0x32111d);return _0x3bb9d7['set']({'label':R(_0x32111d,'Open\x20revision\x20history')}),_0x3bb9d7['delegate']('execute')['to'](_0x5c4fa7),_0x3bb9d7['on']('execute',()=>{_0x44bfd4['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x122c39['children']['add'](_0x3bb9d7),_0x514043['items']['add'](_0x122c39),_0x5c4fa7['panelView']['children']['add'](_0x514043),_0x5c4fa7;}['_showDialog'](){const _0x3f4b6b=this['editor'],_0x9707a1=_0x3f4b6b['locale'],_0x1e88f4=_0x3f4b6b['plugins']['get']('Dialog'),_0x371b1e=_0x3f4b6b['plugins']['get']('RevisionTracker');function _0x4d75b9(_0x1833d6){_0x3f4b6b['config']['get']('revisionHistory.requireRevisionName')&&''===_0x1833d6['revisionName']?_0x1833d6['revisionNameInputView']['errorText']=R(_0x9707a1,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x3f4b6b['plugins']['get'](l)['saveRevision']({'name':_0x1833d6['revisionName']}),_0x1e88f4['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x4d75b9(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x1e88f4['show']({'id':'revisionSave','title':R(_0x9707a1,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x3f4b6b['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x1e88f4['hide']()},{'label':R(_0x3f4b6b['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0xb6ca1c){_0xb6ca1c['bind']('isEnabled')['to'](_0x371b1e,'isReady',_0x371b1e,'isEnabled',_0x3f4b6b,'isReadOnly',(_0x3b9850,_0x25b3c3,_0x6aeb53)=>_0x3b9850&&_0x25b3c3&&!_0x6aeb53);},'onExecute':()=>_0x4d75b9(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x77090b=this['editor'],_0x292d0d=_0x77090b['locale'];this['_saveRevisionFormView']=new ns(_0x292d0d,_0x77090b['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends _0x225181{['changeId'];['_model'];constructor(_0x2587ae,_0x62adc5){super(_0x2587ae),this['_model']=_0x62adc5,this['changeId']=_0x62adc5['id'];const _0x3874fe=this['bindTemplate'],_0x4aea94=R(_0x2587ae,_0x62adc5['data']['isSuggestion']?'Suggested\x20by':'add'==_0x62adc5['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x62adc5['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x3874fe['to']('type',_0x2e2ede=>'ck-revision-change__'+_0x2e2ede)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x4aea94}]},{'text':'\x20'+_0x62adc5['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x5a7f9d(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x429992){super(),this['id']=_0x429992['id']||_0x4f9a89(),this['author']=_0x429992['author'],this['type']=_0x429992['type'],this['data']=_0x429992['data']||{},this['rootName']=_0x429992['rootName'],this['set']('createdAt',_0x429992['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(_0x2ed4c1,_0x4d20f1){this['newRevisionId']=_0x2ed4c1,this['oldRevisionId']=_0x4d20f1,this['changes']=new _0x2745a9();}['_setChanges'](_0x1c816e){for(const _0x31a6f6 of _0x1c816e)this['changes']['add'](_0x31a6f6);}}const Z={'c':_0x11e705,'a':_0x25db7e,'e':_0x10f6d4,'r':_0x5d57f5,'u':_0x5bea37};class d extends _0x49970d{['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[_0x122c7d,_0x1424e1,j];}constructor(_0x1d7001){super(_0x1d7001),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',(_0x1b0ec5,_0x17619a,_0x56bdb7)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x26429e=>{for(const _0x1e01ef of this['editor']['editing']['view']['document']['roots'])_0x56bdb7?_0x26429e['removeClass']('ck-editor__editable__overlay',_0x1e01ef):_0x26429e['addClass']('ck-editor__editable__overlay',_0x1e01ef);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x391dab=>null!==_0x391dab),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x320b2b,_0xd45e7,_0x5b8f62)=>_0x320b2b&&_0x5b8f62?_0xd45e7['changes']['getIndex'](_0x5b8f62):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x90d6ff,_0x1c4346)=>_0x90d6ff?_0x1c4346['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x1424e1);}['init'](){const _0x1aada8=this['editor'],_0x115b22=new bt(_0x1aada8,{'direction':'backward'}),_0x2cdc0f=new bt(_0x1aada8,{'direction':'forward'});(_0x1aada8['commands']['add']('showPreviousChange',_0x115b22),_0x1aada8['commands']['add']('showNextChange',_0x2cdc0f),_0x1aada8['commands']['add']('restoreRevision',new yt(_0x1aada8)),this['on']('change:numberOfChanges',()=>{_0x115b22['refresh'](),_0x2cdc0f['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x1aada8['enableReadOnlyMode']('revision-viewer'),_0x1aada8['plugins']['has']('WidgetToolbarRepository'))&&_0x1aada8['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0xfae876){await this['loadRevisionData'](_0xfae876);const _0x1ba1c1={};for(const _0x35484e in _0xfae876['diffData']){if(_0xfae876['diffData'][_0x35484e]['attachChange']&&!_0xfae876['diffData'][_0x35484e]['attachChange']['isAttached'])continue;const _0x3fb135=this['_removeRevisionMarkers'](JSON['parse'](_0xfae876['diffData'][_0x35484e]['insertions'])),_0x2ca721=this['editor']['editing']['view']['document'],_0x369951=new _0x59148e(_0x2ca721,_0x3fb135['map'](_0x3eb38b=>this['_getViewObj'](_0x3eb38b)));this['editor']['data']['processor']['useFillerType']('marked'),_0x1ba1c1[_0x35484e]=this['editor']['data']['processor']['toData'](_0x369951),this['editor']['data']['processor']['useFillerType']('default');}return _0x1ba1c1;}async['getRevisionRootsAttributes'](_0x157560){await this['loadRevisionData'](_0x157560);const _0x15ac43={};for(const _0x49fc79 in _0x157560['diffData'])_0x157560['diffData'][_0x49fc79]['attachChange']&&!_0x157560['diffData'][_0x49fc79]['attachChange']['isAttached']||(_0x15ac43[_0x49fc79]=_0x157560['diffData'][_0x49fc79]['attributesAfter']||{});return _0x15ac43;}['_removeRevisionMarkers'](_0x4729a4){return(_0x4729a4=_0x4729a4['filter'](_0x160a60=>!_0x160a60['name']||'revision-start'!==_0x160a60['name']&&'revision-end'!==_0x160a60['name']))['forEach'](_0x142d33=>{'string'!=typeof _0x142d33&&(_0x142d33['children']=this['_removeRevisionMarkers'](_0x142d33['children']),_0x142d33['attributes']=_0x142d33['attributes']['filter'](_0x55ea99=>!_0x55ea99[0x0]['startsWith']('data-revision-')));}),_0x4729a4;}async['compare'](_0x1b1f4a,_0x132c8a,_0x5044f5=!0x1){if(!this['isEnabled'])return;const _0x4de282=this['diff'],_0x5b725b=this['repository'],_0x235569='string'==typeof _0x1b1f4a?_0x5b725b['getRevision'](_0x1b1f4a):_0x1b1f4a,_0x1bacd7='string'==typeof _0x132c8a?_0x5b725b['getRevision'](_0x132c8a):_0x132c8a,_0x3db792=_0x235569['id'],_0x14e5d9=_0x1bacd7?_0x1bacd7['id']:null;if(!_0x5044f5&&this['diff']&&this['diff']['newRevisionId']===_0x3db792&&this['diff']['oldRevisionId']===_0x14e5d9)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x3db792,_0x14e5d9);const _0x70ce92=this['_getRevisionsRange'](_0x235569,_0x1bacd7,!0x0)['map'](_0x2c02b5=>this['loadRevisionData'](_0x2c02b5));return _0x70ce92['push'](new Promise(_0x1f6e86=>{setTimeout(_0x1f6e86,0x14);})),Promise['all'](_0x70ce92)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x522947=this['_getDiff'](_0x3db792,_0x14e5d9);for(const _0x197936 of _0x522947['changes'])this['_changeIdToChange']['set'](_0x197936['id'],_0x197936);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x51f053=>{for(const _0x30b074 of this['editor']['model']['document']['getRootNames']())_0x51f053['detachRoot'](_0x30b074);for(const _0x1a668b of Object['keys'](_0x522947['model'])){const _0x1ef2db=_0x51f053['addRoot'](_0x1a668b);for(const _0x396f19 of Object['keys'](_0x522947['attributes'][_0x1a668b]))_0x51f053['setAttribute'](_0x396f19,_0x522947['attributes'][_0x1a668b][_0x396f19],_0x1ef2db);_0x51f053['insert'](_0x522947['model'][_0x1a668b],_0x1ef2db,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x522947['changes'])),this['isReady']=!0x0;})['catch'](_0x5a6c1b=>{console['error'](_0x5a6c1b),this['_cleanUp'](),_0x4de282&&(this['diff']=_0x4de282),this['isReady']=!0x0;});}['addRevisionData'](_0x10250a,_0x5bf29a){const _0x4c538b=this['repository']['createRevision'](_0x10250a);return _0x4c538b['on']('_update',(_0x54dd6a,_0x5ebd53,_0xe39a0c)=>_0x5bf29a(_0x5ebd53,_0xe39a0c,_0x4c538b)),this['repository']['addRevision'](_0x4c538b),_0x4c538b;}['loadRevisionData'](_0x1a1b4b){if(!_0x1a1b4b||_0x1a1b4b['diffData'])return Promise['resolve']();{const _0x2be3b7=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x2be3b7,'revisionId':_0x1a1b4b['id']})['then'](_0xdf2bca=>{_0x1a1b4b['_update']({'diffData':_0xdf2bca['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},_0x5eeb2e=>{for(const _0x3cd2f2 of this['editor']['model']['document']['getRootNames']())_0x5eeb2e['detachRoot'](_0x3cd2f2);});}['_sortAndFilterDiffChanges'](_0x3897c9){const _0x7cdd9f=[],_0xad7f03=new Map();for(const _0x52e8fc of this['editor']['model']['document']['getRootNames']()){const _0x37bf61=this['editor']['editing']['view']['getDomRoot'](_0x52e8fc);if(!_0x37bf61)continue;const _0x27859a=_0x37bf61['getClientRects']()['item'](0x0);_0x27859a&&(_0x7cdd9f['push'](_0x52e8fc),_0xad7f03['set'](_0x52e8fc,_0x27859a));}return _0x7cdd9f['sort']((_0x54cef3,_0x4e054f)=>{const _0x319017=_0xad7f03['get'](_0x54cef3),_0xa6dc01=_0xad7f03['get'](_0x4e054f);return _0x319017['y']-_0xa6dc01['y']||_0x319017['x']-_0xa6dc01['x'];}),(_0x3897c9=_0x3897c9['filter'](_0x1be132=>_0x7cdd9f['includes'](_0x1be132['rootName'])))['sort']((_0x345994,_0x381076)=>_0x7cdd9f['indexOf'](_0x345994['rootName'])-_0x7cdd9f['indexOf'](_0x381076['rootName'])),_0x3897c9;}['_makeTape'](_0x51e220){const _0x2bbf05=Array['from'](_0x51e220['markers'])['filter'](([_0x2b793f,_0x50489a])=>_0x2b793f['startsWith']('revision:')&&!_0x50489a['isCollapsed']),_0x76d55a=Array['from'](this['editor']['model']['createRangeIn'](_0x51e220)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x2bbf05['length'])for(const _0x57da17 of _0x76d55a){const [_0x1538fc,_0x4ec3cb]=_0x2bbf05[0x0],[,_0x3c4b59,_0x332597]=_0x1538fc['split'](':');if(_0x4ec3cb['end']['isEqual'](_0x57da17['nextPosition'])&&_0x2bbf05['shift'](),(_0x57da17['previousPosition']['isEqual'](_0x4ec3cb['start'])||_0x57da17['previousPosition']['isAfter'](_0x4ec3cb['start']))&&('insertion'==_0x3c4b59?_0x57da17['isAdded']={'userId':_0x332597}:'deletion'==_0x3c4b59&&(_0x57da17['isRemoved']={'userId':_0x332597})),0x0==_0x2bbf05['length'])break;}return _0x76d55a;}['_refreshStartEndIndex'](_0x15af8c){const _0x18491d=new Map();for(let _0x40b96a=0x0;_0x40b96a<_0x15af8c['length'];_0x40b96a++)'text'===_0x15af8c[_0x40b96a]['type']?(_0x15af8c[_0x40b96a]['item']['startIndex']=_0x40b96a,_0x15af8c[_0x40b96a]['item']['endIndex']=_0x40b96a):('elementStart'===_0x15af8c[_0x40b96a]['type']?_0x15af8c[_0x40b96a]['item']['startIndex']=_0x40b96a:'elementEnd'===_0x15af8c[_0x40b96a]['type']&&(_0x15af8c[_0x40b96a]['item']['endIndex']=_0x40b96a),_0x18491d['set'](_0x15af8c[_0x40b96a]['id'],_0x40b96a));for(const _0xdaf3cb of _0x18491d['values']())'elementStart'===_0x15af8c[_0xdaf3cb]['type']?_0x15af8c[_0xdaf3cb]['item']['endIndex']=_0x18491d['get'](_0x15af8c[_0xdaf3cb]['pairId']):'elementEnd'===_0x15af8c[_0xdaf3cb]['type']&&(_0x15af8c[_0xdaf3cb]['item']['startIndex']=_0x18491d['get'](_0x15af8c[_0xdaf3cb]['pairId']));}['_processTape'](_0x55fa22){for(let _0x63e158=0x0;_0x63e158<_0x55fa22['length'];_0x63e158++){if('elementStart'===_0x55fa22[_0x63e158]['type'])_0x55fa22[_0x63e158]['item']['startIndex']=_0x63e158;else{if('elementEnd'===_0x55fa22[_0x63e158]['type']){_0x55fa22[_0x63e158]['item']['endIndex']=_0x63e158;const _0x3a3569=_0x55fa22[_0x63e158]['item']['startIndex'];_0x55fa22[_0x3a3569]['pairId']=_0x55fa22[_0x63e158]['id'],_0x55fa22[_0x63e158]['pairId']=_0x55fa22[_0x3a3569]['id'];}else _0x55fa22[_0x63e158]['item']['startIndex']=_0x63e158,_0x55fa22[_0x63e158]['item']['endIndex']=_0x63e158,_0x55fa22[_0x63e158]['pairId']=null;}_0x55fa22[_0x63e158]['markersStart']||(_0x55fa22[_0x63e158]['markersStart']=[],_0x55fa22[_0x63e158]['markersEnd']=[]);}}['_markInsertions'](_0x1fb08d,_0x3f9e7e){const _0x4b1cbb=_0x1fb08d['filter'](_0x3fc4ed=>!_0x3fc4ed['isAdded']);for(let _0xcc0e01=0x0;_0xcc0e01<_0x3f9e7e['length'];_0xcc0e01++)_0x3f9e7e[_0xcc0e01]['isAdded']&&(_0x4b1cbb[_0xcc0e01]['isAdded']=_0x3f9e7e[_0xcc0e01]['isAdded']);}['_makeModelFromViewString'](_0x469e72){const _0x80c407=JSON['parse'](_0x469e72),_0x5cfc91=this['editor']['editing']['view']['document'],_0x597d1c=new _0x59148e(_0x5cfc91,_0x80c407['map'](_0x5b4b10=>this['_getViewObj'](_0x5b4b10)));return this['editor']['data']['toModel'](_0x597d1c);}['_getViewObj'](_0x3ac506){const _0x100770=this['editor']['editing']['view']['document'];if('string'==typeof _0x3ac506)return new _0x224f95(_0x100770,_0x3ac506);{const _0x4c0fc7=_0x3ac506['children']['map'](_0xbac64=>this['_getViewObj'](_0xbac64));return new(Z[_0x3ac506['type']]||_0x3dbac4)(_0x100770,_0x3ac506['name'],_0x3ac506['attributes'],_0x4c0fc7);}}['_getDiff'](_0x23fd66,_0x4dd0e7=null){const _0x175533=this['repository']['getRevision'](_0x23fd66),_0x6c299e=_0x4dd0e7?this['repository']['getRevision'](_0x4dd0e7):null,_0x5ed37c=this['_getRevisionsRange'](_0x175533,_0x6c299e),_0x4efd08=_0x5ed37c[_0x5ed37c['length']-0x1],_0x5b906a=new Map(),_0x10a9c0={'model':{},'attributes':{},'changes':[]},_0x347ded=new Set(),_0x4af0e2=new Map();for(let _0x42bd42=_0x5ed37c['length']-0x1;_0x42bd42>=0x0;_0x42bd42--){const _0xb3ce28=_0x5ed37c[_0x42bd42];for(const _0x5e7afe of Object['keys'](_0xb3ce28['diffData']))if(_0xb3ce28['diffData'][_0x5e7afe]['attachChange']){const _0x512988=_0xb3ce28['diffData'][_0x5e7afe]['attachChange'];_0x512988['isAttached']?(_0x347ded['add'](_0x5e7afe),_0x4af0e2['has'](_0x5e7afe)&&_0x4af0e2['get'](_0x5e7afe)['userId']==_0x512988['userId']?_0x4af0e2['delete'](_0x5e7afe):_0x4af0e2['set'](_0x5e7afe,_0x512988)):_0x4af0e2['has'](_0x5e7afe)?(_0x347ded['delete'](_0x5e7afe),_0x4af0e2['delete'](_0x5e7afe)):(_0x347ded['add'](_0x5e7afe),_0x4af0e2['set'](_0x5e7afe,_0x512988));}else _0x347ded['add'](_0x5e7afe);}for(const _0x11b99c of _0x347ded){const _0x47e430=_0x4af0e2['has'](_0x11b99c)&&!_0x4af0e2['get'](_0x11b99c)['isAttached'];let _0x4509b2=_0x47e430?_0x5ed37c['length']-0x1:0x0;const _0x267402=_0x47e430?-0x1:0x1;for(;_0x5ed37c[_0x4509b2];){const _0x42a816=_0x5ed37c[_0x4509b2];if(_0x42a816['diffData'][_0x11b99c]){const _0x50a361=_0x47e430?_0x42a816['diffData'][_0x11b99c]['attributesBefore']:_0x42a816['diffData'][_0x11b99c]['attributesAfter'];_0x10a9c0['attributes'][_0x11b99c]=_0x50a361?_0x1ea11a(_0x50a361):{};break;}_0x4509b2+=_0x267402;}}for(const _0x2b7c44 of _0x5ed37c){_0x2b7c44['model']={};for(const _0x36ff83 of _0x2b7c44['authors'])_0x5b906a['set'](_0x36ff83['id'],_0x36ff83);for(const _0x1e0c94 of _0x347ded){const _0x46d1b9=_0x2b7c44['diffData'][_0x1e0c94]?_0x2b7c44['diffData'][_0x1e0c94]['insertions']:'[]',_0x178be2=_0x2b7c44['diffData'][_0x1e0c94]?_0x2b7c44['diffData'][_0x1e0c94]['deletions']:'[]';_0x2b7c44['model'][_0x1e0c94]={'insertions':this['_makeModelFromViewString'](_0x46d1b9),'deletions':this['_makeModelFromViewString'](_0x178be2)};}}for(const _0x27ed92 of _0x347ded){let _0x24bc82=null,_0x4299e7=0x0;const _0x23e8c1=new Map(Array['from'](_0x175533['model'][_0x27ed92]['insertions']['markers'])['filter'](([_0x40df70])=>!_0x40df70['startsWith']('revision:')));let _0x4ec284=0x0;for(const _0x58e2ed of _0x5ed37c){const _0x401c89=this['_makeTape'](_0x58e2ed['model'][_0x27ed92]['insertions']);_0x58e2ed==_0x175533?(_0x24bc82=_0x401c89,_0x4299e7=_0x24bc82['length'],_0x24bc82['forEach'](_0x1b92aa=>{_0x1b92aa['id']=_0x4ec284++;}),this['_processTape'](_0x24bc82)):this['_markInsertions'](_0x24bc82,_0x401c89);const _0x3d89bf=_0x24bc82['filter'](_0x20627b=>!_0x20627b['isAdded'])['map'](_0x1f0db0=>_0x1f0db0['id']);let _0x31c7c1=0x0;const _0x37ac22=this['_makeTape'](_0x58e2ed['model'][_0x27ed92]['deletions']);_0x37ac22['forEach'](_0x38fd59=>{_0x38fd59['isRemoved']?_0x38fd59['id']=_0x4299e7++:_0x38fd59['id']=_0x3d89bf[_0x31c7c1++];}),this['_processTape'](_0x37ac22),this['_setDistance'](_0x24bc82,'isAdded'),this['_setDistance'](_0x37ac22,'isRemoved'),_0x58e2ed==_0x175533&&this['_markMarkers'](_0x24bc82,_0x23e8c1),_0x24bc82=this['_joinTapes'](_0x24bc82,_0x37ac22),this['_refreshStartEndIndex'](_0x24bc82),this['_setDistance'](_0x24bc82,'isRemoved');}_0x24bc82=_0x24bc82['filter'](_0xef2244=>!(_0xef2244['isAdded']&&_0xef2244['isRemoved']));const _0x247f9b=new Map(_0x4efd08['model'][_0x27ed92]['deletions']['markers']),_0x39f197=new Set(_0x23e8c1['keys']());for(const _0x491ca5 of _0x247f9b['keys']())_0x39f197['delete'](_0x491ca5);this['_markSuggestions'](_0x24bc82,_0x39f197),this['_fixObsoleteTags'](_0x24bc82),_0x24bc82=this['_removeMissingPairs'](_0x24bc82),_0x24bc82=this['_markMismatchedRemovedTags'](_0x24bc82),_0x24bc82=this['_removeUnsupportedChanges'](_0x24bc82);const {root:_0x117102,changes:_0x4966fd}=this['_makeModelFromTape'](_0x24bc82,_0x5b906a,_0x27ed92);_0x10a9c0['model'][_0x27ed92]=_0x117102;const _0x541815=_0x4af0e2['get'](_0x27ed92);if(_0x541815){const _0x1202fc=_0x5b906a['get'](_0x541815['userId']),_0x94f5c=new r({'author':_0x1202fc,'type':_0x541815['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x27ed92});_0x4966fd['unshift'](_0x94f5c),_0x10a9c0['attributes'][_0x27ed92]['revisionHistoryAttachChange']=_0x94f5c['id'];}_0x10a9c0['changes']=_0x10a9c0['changes']['concat'](_0x4966fd);}return _0x10a9c0;}['_markMarkers'](_0x13e148,_0x3a5593){for(let _0x41acd7=0x0;_0x41acd7<_0x13e148['length'];_0x41acd7++)for(const [_0x5d029e,_0x1d3713]of _0x3a5593)_0x1d3713['start']['isEqual'](_0x13e148[_0x41acd7]['previousPosition'])&&_0x13e148[_0x41acd7]['markersStart']['push'](_0x5d029e),_0x1d3713['end']['isEqual'](_0x13e148[_0x41acd7]['nextPosition'])&&_0x13e148[_0x41acd7]['markersEnd']['push'](_0x5d029e);}['_joinTapes'](_0x1cf205,_0x1e43d3){let _0x31057b=[],_0x2a00b9=0x0,_0x210d53=0x0;for(;_0x2a00b9<_0x1cf205['length']||_0x210d53<_0x1e43d3['length'];){const _0x4c1ccf=_0x1cf205[_0x2a00b9]||{},_0x1c28d6=_0x1e43d3[_0x210d53]||{};if(_0x4c1ccf['id']==_0x1c28d6['id'])_0x2a00b9++,_0x210d53++,_0x31057b['push'](_0x4c1ccf);else{if(_0x1c28d6['isRemoved']&&_0x4c1ccf['isAdded']){const {commonTape:_0x324ef9,iEnd:_0x1c4a36,jEnd:_0x472607}=this['_threeWayMerge'](_0x1cf205,_0x2a00b9,_0x1e43d3,_0x210d53);_0x31057b=_0x31057b['concat'](_0x324ef9),_0x2a00b9=_0x1c4a36,_0x210d53=_0x472607;}else _0x1c28d6['isRemoved']?(_0x210d53++,_0x31057b['push'](_0x1c28d6)):(_0x2a00b9++,_0x31057b['push'](_0x4c1ccf));}}return _0x31057b;}['_markSuggestions'](_0x389a5a,_0x2d56b5){const _0x37622b=[];for(let _0x217608=0x0;_0x217608<_0x389a5a['length'];_0x217608++){for(let _0x132456=0x0;_0x132456<_0x389a5a[_0x217608]['markersStart']['length'];_0x132456++){const _0x296075=_0x389a5a[_0x217608]['markersStart'][_0x132456];if(!_0x2d56b5['has'](_0x296075))continue;const {group:_0x506e4c,type:_0x51c229,authorId:_0x4577fe}=_0x482036(_0x296075);'revision-suggestion'!=_0x506e4c||'insertion'!=_0x51c229&&'deletion'!=_0x51c229||(_0x37622b['unshift']({'type':_0x51c229,'name':_0x296075,'userId':_0x4577fe}),_0x389a5a[_0x217608]['markersStart']['splice'](_0x132456,0x1),_0x132456--);}_0x49dec6(_0x389a5a[_0x217608]);for(let _0x1f7522=0x0;_0x1f7522<_0x389a5a[_0x217608]['markersEnd']['length'];_0x1f7522++){const _0x16242d=_0x389a5a[_0x217608]['markersEnd'][_0x1f7522];if(!_0x2d56b5['has'](_0x16242d))continue;const {group:_0x3235e1,type:_0x4efdae}=_0x482036(_0x16242d);if('revision-suggestion'!=_0x3235e1||'insertion'!=_0x4efdae&&'deletion'!=_0x4efdae)continue;_0x389a5a[_0x217608]['markersEnd']['splice'](_0x1f7522,0x1),_0x1f7522--;const _0x3616af=_0x37622b['findIndex'](_0x371707=>_0x371707['name']==_0x16242d);_0x3616af>-0x1&&_0x37622b['splice'](_0x3616af,0x1);}}function _0x482036(_0x4708ff){const _0x4653c3=_0x4708ff['split'](':');return{'group':_0x4653c3[0x0],'type':_0x4653c3[0x1],'subType':_0x4653c3['length']>=0x5?_0x4653c3[0x2]:null,'id':_0x4653c3['length']<0x5?_0x4653c3[0x2]:_0x4653c3[0x3],'authorId':_0x4653c3['length']<0x5?_0x4653c3[0x3]:_0x4653c3[0x4],'markerCount':0x6==_0x4653c3['length']?_0x4653c3[0x5]:null};}function _0x49dec6(_0x5c85de){for(let _0x5acbe8=0x0;_0x5acbe8<_0x37622b['length'];_0x5acbe8++){if(_0x5c85de['isAdded']&&'insertion'==_0x37622b[_0x5acbe8]['type'])return _0x5c85de['isAddSuggestion']=_0x37622b[_0x5acbe8],void delete _0x5c85de['isAdded'];if(!_0x5c85de['isAdded']&&!_0x5c85de['isRemoved']&&'deletion'==_0x37622b[_0x5acbe8]['type'])return void(_0x5c85de['isRemoveSuggestion']=_0x37622b[_0x5acbe8]);}}}['_setDistance'](_0x2b27c5,_0xebc218){let _0x10ec70=0x0,_0x20aae3=!0x1;const _0x2a4536=new Map();for(const _0x3dcd57 of _0x2b27c5)_0x3dcd57[_0xebc218]?_0x20aae3&&(_0x10ec70++,_0x20aae3=!0x1):(_0x10ec70++,_0x20aae3=!0x0),_0x2a4536['set'](_0x3dcd57['id'],_0x10ec70);for(let _0x2a830b=0x0;_0x2a830b<_0x2b27c5['length'];_0x2a830b++){if('isRemoved'==_0xebc218&&_0x2b27c5[_0x2a830b]['isAdded']||'isAdded'==_0xebc218&&_0x2b27c5[_0x2a830b]['isRemoved'])continue;if('text'==_0x2b27c5[_0x2a830b]['type']){_0x2b27c5[_0x2a830b]['distance']=0x0;continue;}const _0x2b22b8=_0x2a4536['get'](_0x2b27c5[_0x2a830b]['pairId']),_0x3449d8=_0x2a4536['get'](_0x2b27c5[_0x2a830b]['id']);_0x2b27c5[_0x2a830b]['distance']=_0x2b22b8-_0x3449d8;}}['_getRevisionsRange'](_0x1eb5b0,_0x53e74d,_0x3b0566=!0x1){const _0x592ef9=[];let _0x286088=this['repository']['getIndex'](_0x1eb5b0),_0x2dedde=this['repository']['getIndex'](_0x53e74d);for(-0x1==_0x2dedde&&(_0x2dedde=this['repository']['_revisions']['length'],_0x3b0566=!0x1);_0x286088<_0x2dedde;)_0x592ef9['push'](this['repository']['getRevision'](_0x286088)),_0x286088++;return _0x3b0566&&_0x592ef9['push'](this['repository']['getRevision'](_0x286088)),_0x592ef9;}['_threeWayMerge'](_0x1d82bd,_0x11a084,_0x4f24aa,_0x210957){const _0xd6e01b=this['editor']['model']['schema'];let _0x320a46=_0x11a084;for(;_0x1d82bd[_0x320a46]&&_0x1d82bd[_0x320a46]['isAdded'];)_0x320a46++;let _0xbdb9cc=_0x210957;for(;_0x4f24aa[_0xbdb9cc]&&_0x4f24aa[_0xbdb9cc]['isRemoved'];)_0xbdb9cc++;_0x122b94(_0x1d82bd,_0x11a084,_0x320a46),_0x122b94(_0x4f24aa,_0x210957,_0xbdb9cc);const _0x15c9f3=_0x4f24aa['slice'](_0x210957,_0xbdb9cc)['concat'](_0x1d82bd['slice'](_0x11a084,_0x320a46));return _0x15c9f3['sort']((_0x305d5a,_0x5eab89)=>_0x305d5a['side']!=_0x5eab89['side']?_0x305d5a['side']-_0x5eab89['side']:_0x305d5a['level']!=_0x5eab89['level']?_0x305d5a['level']-_0x5eab89['level']:_0x305d5a['distance']!=_0x5eab89['distance']?_0x5eab89['distance']-_0x305d5a['distance']:!!_0x305d5a['isAdded']!=!!_0x5eab89['isAdded']?-0x1==_0x305d5a['side']||0x0==_0x305d5a['side']?_0x305d5a['isAdded']?-0x1:0x1:_0x305d5a['isAdded']?0x1:-0x1:_0x305d5a['index']-_0x5eab89['index']),{'commonTape':_0x15c9f3,'iEnd':_0x320a46,'jEnd':_0xbdb9cc};function _0x122b94(_0x436155,_0x101406,_0x2b1985){let _0x223830=-0x1,_0x1c2685=Number['POSITIVE_INFINITY'],_0x5e8016=!0x0;for(let _0x22ae25=_0x101406;_0x22ae25<_0x2b1985;_0x22ae25++)if(_0xd6e01b['isInline'](_0x436155[_0x22ae25]['item'])||(_0x5e8016=!0x1),_0x436155[_0x22ae25]['item']['startIndex']<_0x101406&&(_0x223830=_0x22ae25),_0x436155[_0x22ae25]['item']['endIndex']>=_0x2b1985){_0x1c2685=_0x22ae25;break;}_0x5e8016&&(_0x223830=_0x2b1985-0x1);for(let _0x3ef058=_0x101406;_0x3ef058<_0x2b1985;_0x3ef058++)_0x436155[_0x3ef058]['side']=_0x3ef058<=_0x223830?-0x1:_0x3ef058<_0x1c2685?0x0:0x1,_0x436155[_0x3ef058]['index']=_0x3ef058;let _0x25394a=0x0;for(let _0x39e062=_0x101406;_0x39e062<=_0x223830;_0x39e062++)0x0==_0x436155[_0x39e062]['distance']?_0x436155[_0x39e062]['level']=_0x25394a:(_0x25394a++,_0x436155[_0x39e062]['level']=_0x25394a,_0x25394a++);for(let _0x2486bb=_0x101406;_0x2486bb<_0x2b1985;_0x2486bb++)0x0==_0x436155[_0x2486bb]['side']&&(_0x436155[_0x2486bb]['level']=_0x25394a);_0x25394a=0x0;for(let _0x42f6b3=_0x2b1985-0x1;_0x42f6b3>=_0x1c2685;_0x42f6b3--)0x0==_0x436155[_0x42f6b3]['distance']?_0x436155[_0x42f6b3]['level']=_0x25394a:(_0x25394a--,_0x436155[_0x42f6b3]['level']=_0x25394a,_0x25394a--);}}['_fixObsoleteTags'](_0x138f19){const _0x539762=new Map(),_0x1e5636=this['editor']['model']['schema'];for(let _0x538076=0x1;_0x538076<_0x138f19['length'];_0x538076++){let _0x3dd124,_0x5ecca6,_0x3fd587;const _0xa0a554=_0x138f19[_0x538076],_0x263a92=_0x138f19[_0x538076-0x1];if('text'==_0xa0a554['type'])continue;if(_0xa0a554['type']!=_0x263a92['type'])continue;if(!_0x1e5636['isBlock'](_0x263a92['item'])||_0x1e5636['isLimit'](_0x263a92['item']))continue;if(!_0x1e5636['isBlock'](_0xa0a554['item'])||_0x1e5636['isLimit'](_0xa0a554['item']))continue;if((_0x138f19[_0x538076]['isAdded']||_0x138f19[_0x538076]['isAddSuggestion'])&&_0x138f19[_0x538076-0x1]['isRemoved'])_0x3dd124=_0x138f19[_0x538076],_0x5ecca6=_0x138f19[_0x538076-0x1],_0x3fd587=_0x538076-0x1;else{if(!_0x138f19[_0x538076]['isRemoved']||!_0x138f19[_0x538076-0x1]['isAdded']&&!_0x138f19[_0x538076-0x1]['isAddSuggestion'])continue;_0x3dd124=_0x138f19[_0x538076-0x1],_0x5ecca6=_0x138f19[_0x538076],_0x3fd587=_0x538076;}const _0x3dbe07=_0x3dd124['level']==_0x5ecca6['level'],_0x2261db=Math['abs'](_0x3dd124['level'])<Math['abs'](_0x5ecca6['level'])&&0x0==_0x5ecca6['distance'];(_0x3dbe07||_0x2261db)&&(_0x539762['set'](_0x5ecca6['id'],_0x3dd124['id']),_0x138f19['splice'](_0x3fd587,0x1),_0x538076--,_0x3dd124['isAdded']=!0x1);}for(let _0x1c6eb5=0x0;_0x1c6eb5<_0x138f19['length'];_0x1c6eb5++)_0x539762['has'](_0x138f19[_0x1c6eb5]['pairId'])&&(_0x138f19[_0x1c6eb5]['pairId']=_0x539762['get'](_0x138f19[_0x1c6eb5]['pairId']));}['_removeMissingPairs'](_0x2af9ef){const _0x5e1a00=new Set(_0x2af9ef['map'](_0x3f8886=>_0x3f8886['id']));for(let _0x1ff314=0x0;_0x1ff314<_0x2af9ef['length'];_0x1ff314++)_0x5e1a00['has'](_0x2af9ef[_0x1ff314]['pairId'])||0x0==_0x2af9ef[_0x1ff314]['distance']||(_0x2af9ef[_0x1ff314]['isIncorrect']=!0x0);return _0x2af9ef['filter'](_0x3f65ab=>!_0x3f65ab['isIncorrect']);}['_markMismatchedRemovedTags'](_0x43c9bc){const _0x369611=new Set();for(let _0x440f52=0x0;_0x440f52<_0x43c9bc['length'];_0x440f52++){if(_0x369611['has'](_0x43c9bc[_0x440f52]['id'])&&_0x43c9bc[_0x440f52]['isRemoved']&&(_0x43c9bc[_0x440f52]['isIncorrect']=!0x0),_0x43c9bc[_0x440f52]['isIncorrect'])continue;if(0x0==_0x43c9bc[_0x440f52]['distance'])continue;if('elementStart'!=_0x43c9bc[_0x440f52]['type'])continue;if(null==_0x43c9bc[_0x440f52]['pairId'])continue;let _0x2e8dcd=_0x440f52+0x1,_0x44040e=0x0;for(;_0x43c9bc[_0x2e8dcd]['id']!=_0x43c9bc[_0x440f52]['pairId'];)'elementStart'==_0x43c9bc[_0x2e8dcd]['type']?_0x44040e++:'elementEnd'==_0x43c9bc[_0x2e8dcd]['type']&&_0x44040e--,_0x2e8dcd++;if(0x0!=_0x44040e){if(_0x43c9bc[_0x440f52]['isRemoved'])_0x43c9bc[_0x440f52]['isIncorrect']=!0x0;else{for(;_0x2e8dcd!=_0x440f52;)_0x43c9bc[_0x2e8dcd]['isRemoved']&&0x0!=_0x43c9bc[_0x2e8dcd]['distance']&&(_0x43c9bc[_0x2e8dcd]['isIncorrect']=!0x0,_0x369611['add'](_0x43c9bc[_0x2e8dcd]['pairId'])),_0x2e8dcd--;}}}return _0x43c9bc['filter'](_0x4026cf=>!_0x4026cf['isIncorrect']);}['_removeUnsupportedChanges'](_0x27a9de){const _0x1c04a2=this['editor']['model']['schema'];for(let _0x4c0c52=0x0;_0x4c0c52<_0x27a9de['length'];_0x4c0c52++){if(!(_0x27a9de[_0x4c0c52]['isAdded']||_0x27a9de[_0x4c0c52]['isAddSuggestion']||_0x27a9de[_0x4c0c52]['isRemoved']||_0x27a9de[_0x4c0c52]['isRemoveSuggestion']))continue;if(0x0==_0x27a9de[_0x4c0c52]['distance'])continue;const _0x42e8c8=_0x27a9de[_0x4c0c52]['item'];_0x1c04a2['isBlock'](_0x42e8c8)||_0x1c04a2['isLimit'](_0x42e8c8)||(_0x27a9de[_0x4c0c52]['isAdded']&&delete _0x27a9de[_0x4c0c52]['isAdded'],_0x27a9de[_0x4c0c52]['isAddSuggestion']&&delete _0x27a9de[_0x4c0c52]['isAddSuggestion'],_0x27a9de[_0x4c0c52]['isRemoveSuggestion']&&delete _0x27a9de[_0x4c0c52]['isRemoveSuggestion'],_0x27a9de[_0x4c0c52]['isRemoved']&&(_0x27a9de[_0x4c0c52]['isIncorrect']=!0x0));}return _0x27a9de['filter'](_0xea53ca=>!_0xea53ca['isIncorrect']);}['_makeModelFromTape'](_0x5ed6fa,_0x21091b,_0x21ce72){const _0x2a3e5d=new wt(),_0x2b9163=[],_0x590f4b=new Map(),_0x374223=this['editor']['model'],_0x192781=_0x374223['schema'],_0x13c3f2=[_0x2a3e5d],_0x404855={},_0x3157b5={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1f57b2=null;const _0x41a0f3=[0x0];for(let _0x19cc95=0x0;_0x19cc95<_0x5ed6fa['length'];_0x19cc95++)if('elementStart'===_0x5ed6fa[_0x19cc95]['type']){_0x5ed6fa[_0x19cc95]['previousPosition']=_0x374223['createPositionFromPath'](_0x2a3e5d,_0x41a0f3);const _0xe5b4d=new ft(_0x5ed6fa[_0x19cc95]['item']['name'],_0x5ed6fa[_0x19cc95]['item']['getAttributes']());_0x13c3f2[0x0]['_appendChild'](_0xe5b4d),_0x41a0f3['push'](0x0),_0x13c3f2['unshift'](_0xe5b4d),_0x5ed6fa[_0x19cc95]['nextPosition']=_0x374223['createPositionFromPath'](_0x2a3e5d,_0x41a0f3);}else'elementEnd'===_0x5ed6fa[_0x19cc95]['type']?(_0x13c3f2['shift'](),_0x5ed6fa[_0x19cc95]['previousPosition']=_0x374223['createPositionFromPath'](_0x2a3e5d,_0x41a0f3),_0x41a0f3['pop'](),_0x41a0f3[_0x41a0f3['length']-0x1]++,_0x5ed6fa[_0x19cc95]['nextPosition']=_0x374223['createPositionFromPath'](_0x2a3e5d,_0x41a0f3)):(_0x5ed6fa[_0x19cc95]['previousPosition']=_0x374223['createPositionFromPath'](_0x2a3e5d,_0x41a0f3),_0x1f57b2?_0x1f57b2['_data']+=_0x5ed6fa[_0x19cc95]['item']['data']:_0x1f57b2=new _t(_0x5ed6fa[_0x19cc95]['item']['data'],_0x5ed6fa[_0x19cc95]['item']['getAttributes']()),_0x5ed6fa[_0x19cc95+0x1]&&'text'===_0x5ed6fa[_0x19cc95+0x1]['type']&&_0x2ca999(_0x1f57b2,_0x5ed6fa[_0x19cc95+0x1]['item'])||(_0x13c3f2[0x0]['_appendChild'](_0x1f57b2),_0x1f57b2=null),_0x41a0f3[_0x41a0f3['length']-0x1]+=_0x5ed6fa[_0x19cc95]['item']['offsetSize'],_0x5ed6fa[_0x19cc95]['nextPosition']=_0x374223['createPositionFromPath'](_0x2a3e5d,_0x41a0f3));for(let _0x151034=0x0;_0x151034<_0x5ed6fa['length'];_0x151034++){const _0x9ee905=_0x5ed6fa[_0x151034]['previousPosition'],_0x1be676=_0x5ed6fa[_0x151034]['nextPosition'];for(const _0x5de606 of _0x5ed6fa[_0x151034]['markersStart'])_0x590f4b['set'](_0x5de606,{'start':_0x9ee905,'end':null});_0x2a2434('isRemoveSuggestion',_0x151034,_0x9ee905,_0x1be676),_0x2a2434('isAddSuggestion',_0x151034,_0x9ee905,_0x1be676),_0x2a2434('isRemoved',_0x151034,_0x9ee905,_0x1be676),_0x2a2434('isAdded',_0x151034,_0x9ee905,_0x1be676);for(const _0x34dccd of _0x5ed6fa[_0x151034]['markersEnd']){_0x590f4b['get'](_0x34dccd)['end']=_0x1be676;}}for(const [_0x4ba1c0,_0x31632f]of _0x590f4b){const _0x2ccdd9=this['editor']['model']['createRange'](_0x31632f['start'],_0x31632f['end']);_0x2a3e5d['markers']['set'](_0x4ba1c0,_0x2ccdd9);}return _0x2b9163['sort']((_0x34e11e,_0x5dcf7d)=>{const _0x5c4eb5=_0x2a3e5d['markers']['get']('revision:'+_0x34e11e['id']),_0x2dfb8f=_0x2a3e5d['markers']['get']('revision:'+_0x5dcf7d['id']);return _0x5c4eb5['start']['isBefore'](_0x2dfb8f['start'])?-0x1:_0x5c4eb5['start']['isAfter'](_0x2dfb8f['start'])?0x1:_0x5c4eb5['end']['isBefore'](_0x2dfb8f['end'])?-0x1:_0x5c4eb5['end']['isAfter'](_0x2dfb8f['end'])?0x1:'add'===_0x34e11e['type']?-0x1:0x1;}),{'root':_0x2a3e5d,'changes':_0x2b9163};function _0x2a2434(_0x1d1142,_0xa233b,_0x42fc53,_0x48d484){const _0x271ef2=!!_0x5ed6fa[_0xa233b][_0x1d1142],_0x4ec033=_0x271ef2?_0x5ed6fa[_0xa233b][_0x1d1142]['userId']:null,_0x121618=_0xa233b===_0x5ed6fa['length']-0x1,_0x4e601a=_0x3157b5[_0x1d1142][0x0],_0x3f8459=_0x192781['isObject'](_0x5ed6fa[_0xa233b]['item']);!_0x404855[_0x1d1142]&&_0x271ef2?_0x404855[_0x1d1142]={'start':_0x42fc53,'tapeItem':_0x5ed6fa[_0xa233b],'userId':_0x4ec033,'type':_0x1d1142}:_0x404855[_0x1d1142]&&!_0x271ef2?(_0x404855[_0x1d1142]['end']=_0x42fc53,_0x3b18bd(_0x404855[_0x1d1142]),_0x404855[_0x1d1142]=null):_0x404855[_0x1d1142]&&_0x271ef2&&_0x404855[_0x1d1142]['userId']!==_0x4ec033&&(_0x404855[_0x1d1142]['end']=_0x42fc53,_0x4e601a&&_0x4e601a['userId']===_0x404855[_0x1d1142]['userId']||_0x3b18bd(_0x404855[_0x1d1142]),_0x404855[_0x1d1142]={'start':_0x42fc53,'tapeItem':_0x5ed6fa[_0xa233b],'userId':_0x4ec033,'type':_0x1d1142}),_0x404855[_0x1d1142]&&_0x3f8459&&('elementStart'!==_0x5ed6fa[_0xa233b]['type']||_0x4e601a&&_0x4e601a['userId']===_0x4ec033||_0x3157b5[_0x1d1142]['unshift']({'userId':_0x4ec033,'object':_0x5ed6fa[_0xa233b]['item'],'change':_0x404855[_0x1d1142]}),'elementEnd'===_0x5ed6fa[_0xa233b]['type']&&_0x4e601a&&_0x4e601a['object']===_0x5ed6fa[_0xa233b]['item']&&(_0x3157b5[_0x1d1142]['shift'](),_0x404855[_0x1d1142]=_0x4e601a['change'])),_0x404855[_0x1d1142]&&_0x121618&&(_0x404855[_0x1d1142]['end']=_0x48d484,_0x3b18bd(_0x404855[_0x1d1142]),_0x404855[_0x1d1142]=null);}function _0x3b18bd({start:_0x373461,end:_0x528669,tapeItem:_0x7a8e3a,userId:_0x574551,type:_0x35e60e}){const _0x92eb5a=_0x7a8e3a['item'],_0xeb306f=_0x374223['schema']['isBlock'](_0x92eb5a)&&!_0x374223['schema']['isLimit'](_0x92eb5a),_0x10398c=_0x373461['nodeAfter']==_0x528669['parent']&&_0x528669['isAtStart'];if(_0xeb306f&&_0x10398c)return;const _0x21141b=_0x374223['createRange'](_0x373461,_0x528669),_0x363f78=_0x21091b['get'](_0x574551),_0x28d519=new r({'author':_0x363f78,'type':'isAdded'==_0x35e60e||'isAddSuggestion'==_0x35e60e?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x35e60e||'isRemoveSuggestion'==_0x35e60e},'createdAt':new Date(),'rootName':_0x21ce72});_0x2b9163['push'](_0x28d519),_0x2a3e5d['markers']['set']('revision:'+_0x28d519['id'],_0x21141b);}function _0x2ca999(_0x5eeeac,_0x258f5a){const _0x55cff0=_0x5eeeac['getAttributes'](),_0x342f03=_0x258f5a['getAttributes']();for(const _0x517c43 of _0x55cff0){if(_0x517c43[0x1]!==_0x258f5a['getAttribute'](_0x517c43[0x0]))return!0x1;_0x342f03['next']();}return _0x342f03['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x53fd53=>{const _0x269ae4=_0x53fd53['markerName']['split'](':')[0x1],_0x556ef5=this['_getChangeFromId'](_0x269ae4);if(!_0x556ef5)return null;const _0x1999a3='add'==_0x556ef5['type']?'insertion':'deletion',_0x1bed0f=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1999a3];return _0x556ef5['data']['isSuggestion']&&_0x1bed0f['push']('ck-suggestion-marker-'+_0x1999a3+'-new'),this['activeChange']==_0x556ef5&&_0x1bed0f['push']('ck-suggestion-marker--active'),{'classes':_0x1bed0f,'attributes':{'data-change-id':_0x269ae4}};}}),this['editor']['conversion']['for']('upcast')['add'](_0xeb26d5=>{_0xeb26d5['on']('element:pre',(_0x22da0b,_0x51a1bb,_0x576691)=>{const _0x2f8084=_0x51a1bb['viewItem']['getChild'](0x0);if(!_0x2f8084||!_0x2f8084['is']('element','code'))return;if(!_0x576691['consumable']['consume'](_0x2f8084,{'attributes':['vid_start','vid_end']}))return;const _0x17feee=_0x51a1bb['modelRange']['start']['nodeAfter'];_0x576691['writer']['setAttribute']('vid_start',_0x2f8084['getAttribute']('vid_start'),_0x17feee),_0x576691['writer']['setAttribute']('vid_end',_0x2f8084['getAttribute']('vid_end'),_0x17feee);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x33b075=>{_0x33b075['on']('element',(_0x51f810,_0x18ed93,_0x31ee50)=>{if(!_0x31ee50['consumable']['consume'](_0x18ed93['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x18ed93['modelRange']['isCollapsed'])return;const _0x5ca58b=_0x18ed93['modelRange']['start']['nodeAfter'];_0x5ca58b['hasAttribute']('vid_start')||_0x5ca58b['hasAttribute']('vid')||(_0x31ee50['writer']['setAttribute']('vid_start',_0x18ed93['viewItem']['getAttribute']('vid_start'),_0x5ca58b),_0x31ee50['writer']['setAttribute']('vid_end',_0x18ed93['viewItem']['getAttribute']('vid_end'),_0x5ca58b));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xd97e17=>_0xd97e17['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x32b396,[,_0x573496])=>{['vid_start','vid_end','vid']['includes'](_0x573496)&&(_0x32b396['return']=!0x0,_0x32b396['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x3f3935=>{_0x3f3935['on']('attribute:vid',(_0x2e8110,_0x203c2b,_0x13e51d)=>{if('\x20'!=_0x203c2b['item']['data']||_0x203c2b['item']['parent']['maxOffset']>0x1)return;if(!_0x13e51d['consumable']['consume'](_0x203c2b['item'],_0x2e8110['name']))return;const _0x29b438=_0x13e51d['writer'],_0x18168f=_0x13e51d['mapper']['toViewRange'](_0x203c2b['range']);_0x29b438['wrap'](_0x18168f,_0x29b438['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x229f13){const _0x2201d7=_0x229f13['plugins']['get']('RevisionViewer');return(_0x2b98a9,_0xf8c091,_0x36e92e)=>{const _0x3f4d4b=_0xf8c091['markerName']['split'](':')[0x1],_0x4a170a=_0x2201d7['_getChangeFromId'](_0x3f4d4b);if(!_0x4a170a)return null;const _0x381abf='add'==_0x4a170a['type']?'split':'merge';if(!_0x36e92e['consumable']['test'](_0xf8c091['markerRange'],_0x2b98a9['name']))return;const _0x347385=_0xf8c091['markerRange']['getWalker'](),_0x5dba07=_0xf8c091['markerRange']['start'],_0x38f0a=_0x229f13['model']['schema'];let _0x25665b=null,_0x7fa1eb=null,_0x5d2052=!0x1,_0xdae4c4=!0x1;for(const _0x501c06 of _0x347385){const _0x445e52=_0x501c06['item'];_0x5d2052=_0x5d2052||_0x38f0a['isContent'](_0x445e52);const _0x34aff3=_0x36e92e['mapper']['toViewElement'](_0x445e52);if(_0x34aff3&&_0x34aff3['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x501c06['type']&&(_0x38f0a['isBlock'](_0x445e52)&&!_0x38f0a['isLimit'](_0x445e52)&&(_0x445e52['nextSibling']||_0x5dba07['isAtEnd']?_0x25665b&&_0x25665b['parent']==_0x445e52||(_0x25665b=_0x445e52,_0x55c430(_0x501c06['previousPosition']),_0xdae4c4=!0x0):_0x7fa1eb=_0x7fa1eb||_0x501c06['previousPosition']));}function _0x55c430(_0x537aa7){const _0x3d77f9=_0x36e92e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x381abf}),_0x438ba6=_0x36e92e['mapper']['toViewPosition'](_0x537aa7);_0x4a170a['data']['isSuggestion']&&_0x36e92e['writer']['addClass']('ck-suggestion-marker-'+_0x381abf+'-new',_0x3d77f9),_0x2201d7['activeChange']==_0x4a170a&&_0x36e92e['writer']['addClass']('ck-suggestion-marker--active',_0x3d77f9),_0x36e92e['writer']['insert'](_0x438ba6,_0x3d77f9),_0x36e92e['mapper']['bindElementToMarker'](_0x3d77f9,_0xf8c091['markerName']);}_0x5d2052||_0xdae4c4||!_0x7fa1eb||_0x55c430(_0x7fa1eb);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x50c71d,_0x5a0566,_0x3c675b)=>{const _0x324677=_0x3c675b['mapper']['markerNameToElements'](_0x5a0566['markerName']);if(_0x324677){for(const _0x57be17 of _0x324677)(_0x57be17['hasClass']('ck-suggestion-marker-split')||_0x57be17['hasClass']('ck-suggestion-marker-merge'))&&(_0x3c675b['mapper']['unbindElementFromMarkerName'](_0x57be17,_0x5a0566['markerName']),_0x3c675b['writer']['remove'](_0x57be17));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x4b20c3,_0x4c80f5,_0x319c51)=>{const _0x1afb5a=_0x4c80f5['markerName']['split'](':')[0x1],_0x1722d0=this['_getChangeFromId'](_0x1afb5a);if(!_0x1722d0)return null;const _0x753ff0='add'==_0x1722d0['type']?'split':'merge';if(_0x319c51['consumable']['test'](_0x4c80f5['markerRange'],_0x4b20c3['name']))for(const _0x52119c of _0x4c80f5['markerRange']['getItems']()){if(!_0x52119c['is']('element','softBreak'))continue;const _0x59d69f=_0x319c51['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x753ff0}),_0x2e66ec=_0x319c51['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x52119c));_0x1722d0['data']['isSuggestion']&&_0x319c51['writer']['addClass']('ck-suggestion-marker-'+_0x753ff0+'-new',_0x59d69f),this['activeChange']==_0x1722d0&&_0x319c51['writer']['addClass']('ck-suggestion-marker--active',_0x59d69f),_0x319c51['writer']['insert'](_0x2e66ec,_0x59d69f),_0x319c51['mapper']['bindElementToMarker'](_0x59d69f,_0x4c80f5['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x290f40=>{for(const _0x45e516 of this['editor']['model']['document']['getRootNames']()){const _0x163b54=this['editor']['model']['document']['getRoot'](_0x45e516),_0x56cecf=this['editor']['editing']['view']['document']['getRoot'](_0x45e516);if(_0x56cecf){const _0x2c690f=_0x163b54['getAttribute']('revisionHistoryAttachChange');if(_0x290f40['removeAttribute']('data-change-id',_0x56cecf),_0x290f40['removeClass']('ck-revision-history-root-add',_0x56cecf),_0x290f40['removeClass']('ck-revision-history-root-remove',_0x56cecf),_0x290f40['removeClass']('ck-revision-history-root--active',_0x56cecf),_0x2c690f){const _0xfebeca=this['_getChangeFromId'](_0x2c690f);if(!_0xfebeca)return null;_0x290f40['setAttribute']('data-change-id',_0x2c690f,_0x56cecf),_0x290f40['addClass']('ck-revision-history-root-'+_0xfebeca['type'],_0x56cecf),this['activeChange']==_0xfebeca&&_0x290f40['addClass']('ck-revision-history-root--active',_0x56cecf);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x2e6939=>'revision-comment:'+_0x2e6939,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x1353b6=>'revision-suggestion:'+_0x1353b6,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x190771=>({'name':'suggestion:'+_0x190771,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x3e973a=>{const _0x4396c5=_0x3e973a['markerName']['split'](':')[0x1];return'insertion'!=_0x4396c5&&'deletion'!=_0x4396c5?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x4396c5]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x36983b,_0x438e5a,_0x40bc60)=>{const _0x27dd5f=_0x40bc60['mapper']['markerNameToElements'](_0x438e5a['markerName']);if(_0x27dd5f){for(const _0x4638e8 of _0x27dd5f)_0x4638e8['is']('uiElement')&&(_0x40bc60['mapper']['unbindElementFromMarkerName'](_0x4638e8,_0x438e5a['markerName']),_0x40bc60['writer']['remove'](_0x4638e8));}},{'priority':'high'});}['_getChangeFromId'](_0x520543){return this['_changeIdToChange']['get'](_0x520543);}['_getViewForChange'](_0x5309f4){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x5309f4),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x57041a,_0x1bcc92,_0x4bc680,_0x3170e5)=>{_0x3170e5&&this['_balloon']['remove'](_0x3170e5),_0x4bc680&&(this['_balloon']['add']({'view':_0x4bc680,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x26b380=this['editor']['editing'],_0x1800b3=this['_getChangeFromId'](_0x4bc680['changeId']);let _0x5727c8;if(_0x1800b3['data']['isOnRoot']){const _0x26462a=_0x26b380['view']['getDomRoot'](_0x1800b3['rootName']);_0x5727c8=Array['from'](_0x26462a['getClientRects']());}else{const _0x509be4=this['editor']['model']['markers']['get']('revision:'+_0x4bc680['changeId']);_0x5727c8=Array['from'](_0x26b380['mapper']['markerNameToElements'](_0x509be4['name']))['map'](_0x274257=>_0x26b380['view']['domConverter']['mapViewToDom'](_0x274257))['map'](_0x3bae53=>Array['from'](_0x3bae53['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x5727c8[0x0];return _0x5727c8['find'](_0x5ed9f1=>_0x5ed9f1['top']-0x3<=this['_activeViewTarget']['y']&&_0x5ed9f1['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x5ed9f1['left']-0x3<=this['_activeViewTarget']['x']&&_0x5ed9f1['right']+0x3>=this['_activeViewTarget']['x'])||_0x5727c8[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x162fdb,_0x1a8728,_0x5acc81,_0x5dae8d)=>{this['activeView']=_0x5acc81?this['_getViewForChange'](_0x5acc81):null,this['editor']['model']['change'](()=>{const _0x35d72d=this['editor']['editing'];_0x5dae8d&&(_0x5dae8d['data']['isOnRoot']?_0x35d72d['view']['change'](_0xdcfb7d=>{_0xdcfb7d['removeClass']('ck-revision-history-root--active',_0x35d72d['view']['document']['getRoot'](_0x5dae8d['rootName']));}):_0x35d72d['reconvertMarker']('revision:'+_0x5dae8d['id'])),_0x5acc81&&(_0x5acc81['data']['isOnRoot']?_0x35d72d['view']['change'](_0xf5c898=>{_0xf5c898['addClass']('ck-revision-history-root--active',_0x35d72d['view']['document']['getRoot'](_0x5acc81['rootName']));}):_0x35d72d['reconvertMarker']('revision:'+_0x5acc81['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x4f19b1,_0x4aff60)=>{if(this['activeChange'])return;const _0x580d74=this['_findChangeIdFromDomTarget'](_0x4aff60['target']),_0x5a03c1=this['_changeIdToChange']['get'](_0x580d74);_0x5a03c1?(this['_activeViewTarget']={'x':_0x4aff60['domEvent']['x'],'y':_0x4aff60['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x5a03c1)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x449ad6,_0x2b8751)=>{const _0x5994e8=this['_findChangeIdFromDomTarget'](_0x2b8751['target']),_0x39d32e=this['_changeIdToChange']['get'](_0x5994e8);_0x39d32e?(this['_activeViewTarget']={'x':_0x2b8751['domEvent']['x'],'y':_0x2b8751['domEvent']['y']},_0x39d32e===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x39d32e):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x3b66b5){do{const _0x49eb13=_0x3b66b5['getAttribute']('data-change-id');if(_0x49eb13)return _0x49eb13;_0x3b66b5=_0x3b66b5['parent'];}while(_0x3b66b5);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x4cfd05=>{for(const _0x4bb2d9 of this['editor']['model']['markers'])_0x4cfd05['removeMarker'](_0x4bb2d9);});}}function tt(_0x5bfc4e,_0x2126bc){return(_0x4da64b,_0x4a120d,_0x15be05)=>{if(!_0x15be05['consumable']['test'](_0x4a120d['markerRange'],_0x4da64b['name']))return;const _0x121d88=_0x4a120d['markerRange']['getWalker'](),_0x2860d2=_0x4a120d['markerRange']['start'],_0x4fbefa=_0x5bfc4e['model']['schema'];let _0x280a28=null,_0x41f140=null,_0x211dbf=!0x1,_0x315bff=!0x1;for(const _0x11d4dc of _0x121d88){const _0x2cd748=_0x11d4dc['item'];_0x211dbf=_0x211dbf||_0x4fbefa['isContent'](_0x2cd748);const _0x4e4ae7=_0x15be05['mapper']['toViewElement'](_0x2cd748);if(_0x4e4ae7&&_0x4e4ae7['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x11d4dc['type']&&(_0x4fbefa['isBlock'](_0x2cd748)&&!_0x4fbefa['isLimit'](_0x2cd748)&&(_0x2cd748['nextSibling']||_0x2860d2['isAtEnd']?_0x280a28&&_0x280a28['parent']==_0x2cd748||(_0x280a28=_0x2cd748,_0x3ebbfc(_0x11d4dc['previousPosition']),_0x315bff=!0x0):_0x41f140=_0x41f140||_0x11d4dc['previousPosition']));}function _0x3ebbfc(_0x62da2a){const _0x144344=_0x15be05['mapper']['toViewPosition'](_0x62da2a),_0x5e1f85=_0x15be05['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x2126bc});_0x15be05['writer']['insert'](_0x144344,_0x5e1f85),_0x15be05['mapper']['bindElementToMarker'](_0x5e1f85,_0x4a120d['markerName']);}_0x211dbf||_0x315bff||!_0x41f140||_0x3ebbfc(_0x41f140);};}class yt extends _0x98083a{constructor(_0x14a541){super(_0x14a541);const _0x246c06=_0x14a541['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x246c06,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x246c06,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x199a4b=this['editor'],_0x4dc064=_0x199a4b['plugins']['get'](d),_0x53eb16=_0x4dc064['isReady']?_0x4dc064['diff']['newRevisionId']:null;_0x199a4b['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x53eb16);}['refresh'](){const {isReady:_0x4a7c94,isEnabled:_0x524250,repository:_0x696fdf,diff:_0x563c6f}=this['editor']['plugins']['get'](d),_0x2d773c=_0x563c6f&&_0x696fdf['getLaterVisibleRevision'](_0x563c6f['newRevisionId']);this['isEnabled']=_0x4a7c94&&_0x524250&&Boolean(_0x2d773c);}}class bt extends _0x98083a{['_step'];constructor(_0x620edd,{direction:_0x132ccf}){super(_0x620edd);const _0x41bb44=_0x620edd['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x132ccf?0x1:-0x1,this['listenTo'](_0x41bb44,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x41bb44,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x41bb44,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x594a01=this['editor'],_0x3fabe4=_0x594a01['plugins']['get'](d),{isNavigationMode:_0x16d5b3,currentChangeNumber:_0x4f29fe}=_0x3fabe4;let _0x132bbd;if(_0x3fabe4['activeChange']=_0x16d5b3?_0x3fabe4['diff']['changes']['get'](_0x4f29fe+this['_step']):_0x3fabe4['diff']['changes']['first'],_0x3fabe4['activeChange']['data']['isOnRoot'])_0x132bbd=_0x594a01['editing']['view']['getDomRoot'](_0x3fabe4['activeChange']['rootName']);else{const _0x4445be=_0x594a01['model']['markers']['get']('revision:'+_0x3fabe4['activeChange']['id']);_0x132bbd=_0x294892(_0x594a01['editing'],_0x4445be);}_0x252897({'target':_0x132bbd,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x1061d0,currentChangeNumber:_0x239a17,numberOfChanges:_0x53c193,isReady:_0x282ba7,isEnabled:_0x441f16}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x441f16&&_0x282ba7&&_0x53c193)&&(!_0x1061d0||(0x1===this['_step']?_0x239a17<_0x53c193-0x1:_0x239a17>0x0));}}class _i extends _0x225181{constructor(_0x5568c6){super(_0x5568c6);const _0xa40b4c=this['bindTemplate'],_0x42d8f6=new _0x4f59ce(_0x5568c6),_0x19d19f=new _0x4f59ce(_0x5568c6);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',(_0x515089,_0xdfb76a)=>_0x515089&&_0xdfb76a>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x28521a,_0x38e10e,_0x2c1951,_0x129020)=>{if(!_0x28521a)return R(_0x5568c6,'Loading...');if(!_0x2c1951)return R(_0x5568c6,'No\x20changes');const _0x4d7895=R(_0x5568c6,'NUMBER_OF_CHANGES',_0x2c1951);return _0x129020?R(_0x5568c6,'X_OF_Y_CHANGES',[_0x38e10e+0x1,_0x2c1951]):_0x4d7895;}),_0x42d8f6['set']({'label':R(_0x5568c6,'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'}),_0x19d19f['set']({'label':R(_0x5568c6,'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'}),_0x42d8f6['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x19d19f['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x42d8f6['on']('execute',()=>this['fire']('execute','backward')),_0x19d19f['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',_0xa40b4c['if']('_isStatusLabelVisible','ck-hidden',_0x474b12=>!_0x474b12)]},'children':[{'text':_0xa40b4c['to']('isNavigationMode',_0x4dc921=>_0x4dc921?R(_0x5568c6,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x5568c6,'Total')+':\x20')}]},{'text':_0xa40b4c['to']('_statusText')}]},new _0x198730(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x42d8f6,_0x19d19f]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x49970d{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x246f0b=this['editor']['editing']['view'];_0x246f0b['change'](_0x2fcaee=>{for(const _0xe1f375 of _0x246f0b['document']['roots'])_0x2fcaee['addClass'](ce,_0xe1f375);});}['hide'](){const _0x148109=this['editor']['editing']['view'];_0x148109['change'](_0x15adb2=>{for(const _0x3d2283 of _0x148109['document']['roots'])_0x15adb2['removeClass'](ce,_0x3d2283);});}}class m extends _0x49970d{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x2cd326=this['editor'],_0xfeb391=_0x2cd326['plugins']['get'](d),_0x3eb57c=_0x2cd326['plugins']['get'](le);_0x2cd326['ui']['componentFactory']['add']('exitToEditing',_0x2c8da6=>{const _0xd1d48c=new _0x4f59ce(_0x2c8da6);return _0xd1d48c['set']({'label':R(_0x2c8da6,'Back\x20to\x20editing'),'icon':_0x429f7b['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0xd1d48c,'execute',()=>{_0x2cd326['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0xd1d48c;}),_0x2cd326['ui']['componentFactory']['add']('restoreRevision',_0xd9b418=>{const _0x46756a=new _0x4f59ce(_0xd9b418);return _0x46756a['set']({'label':R(_0xd9b418,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x46756a['bind']('isEnabled')['to'](_0x2cd326['commands']['get']('restoreRevision')),this['listenTo'](_0x46756a,'execute',()=>_0x2cd326['execute']('restoreRevision')),_0x46756a;}),_0x2cd326['ui']['componentFactory']['add']('changesNavigation',_0x3c4816=>{const _0x3aef94=new _i(_0x3c4816),_0x4e8820=_0x2cd326['commands']['get']('showPreviousChange'),_0x176728=_0x2cd326['commands']['get']('showNextChange');return _0x3aef94['bind']('isBackwardNavigationEnabled')['to'](_0x4e8820,'isEnabled'),_0x3aef94['bind']('isForwardNavigationEnabled')['to'](_0x176728,'isEnabled'),_0x3aef94['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0xfeb391),this['listenTo'](_0x3aef94,'execute',(_0x3506a4,_0x1751ff)=>{_0x2cd326['execute']('forward'===_0x1751ff?'showNextChange':'showPreviousChange');}),_0x3aef94;}),_0x3eb57c['show'](),_0xfeb391['on']('change:isReady',(_0x38922a,_0xefd014,_0x2b4d76)=>{_0x2b4d76?_0x3eb57c['hide']():_0x3eb57c['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x56b2d7,_0x594bbd){super(_0x56b2d7,_0x594bbd);const _0x3ec3cb=this['bindTemplate'];this['set']({'label':R(_0x56b2d7,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x56b2d7,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x3ec3cb['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x4a7aa=this['fieldView']['element'];this['_tooltipString']=_0x4a7aa['scrollWidth']>_0x4a7aa['clientWidth']&&_0x4a7aa['value']||'';}}class ti extends _0x225181{constructor(_0x16de7a,_0x381a60,_0x3a2665){super(_0x16de7a);const _0x4dd6b1=new _0x263ade();_0x4dd6b1['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 _0x5b884f=['ck','ck-revision-history-sidebar__revision-author'];_0x3a2665&&_0x5b884f['push']('ck-revision-history-sidebar__revision-author_creator');const _0x202a2d=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x16de7a,_0x3a2665?'Revision\x20creator':'Revision\x20author')},'children':[_0x4dd6b1,_0x381a60['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x5b884f},'children':_0x202a2d});}}function ni(_0x161acc,_0x5cdf51){const _0x5e6a73=_0x161acc['bindTemplate'],_0x82eeac=_0x161acc['locale'],_0x3e9c3d=_0xd76513(_0x82eeac);_0x3e9c3d['panelPosition']='sw';const _0x5030a7=function(_0x25811b,_0x233275){const _0x49852e=function(_0x2337a2,_0xf11ec){const _0x384641=_0x2337a2['locale'],_0x1a609c={'Compare\x20against\x20selected':R(_0x384641,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x384641,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x384641,'Restore\x20this\x20revision')};return _0xf11ec['map'](_0x1229c2=>{const _0x106a58=_0x1a609c[_0x1229c2['name']];return _0x106a58&&_0x106a58!==_0x1229c2['name']&&(_0x1229c2['name']=_0x106a58),_0x1229c2;});}(_0x25811b,_0x233275),_0x42844f=new _0x2745a9();for(const _0x4381b7 of _0x49852e){const _0xdbec00={'type':'button','model':new to({'label':_0x4381b7['name'],'class':_0x4381b7['class'],'withText':!0x0,'role':'menuitem','_action':_0x4381b7['action']})};_0xdbec00['model']['bind']('isEnabled')['to'](_0x25811b,'isActionsDropdownOpen',_0xb242a4=>'function'!=typeof _0x4381b7['isEnabled']||(!_0xb242a4||_0x4381b7['isEnabled'](_0x25811b))),_0x42844f['add'](_0xdbec00);}return _0x42844f;}(_0x161acc,_0x5cdf51);return _0x161acc['bind']('isActionsDropdownOpen')['to'](_0x3e9c3d,'isOpen'),_0x3e9c3d['buttonView']['set']({'label':R(_0x82eeac,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x429f7b['threeVerticalDots']}),_0x3e9c3d['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x5e6a73['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x5e6a73['to'](_0x1634cf=>_0x1634cf['stopPropagation']())}}),_0x3e9c3d['on']('execute',_0x39e1e5=>{_0x161acc['isReady']&&'function'==typeof _0x39e1e5['source']['_action']&&_0x39e1e5['source']['_action'](_0x161acc);}),_0x362d35(_0x3e9c3d,_0x5030a7,{'role':'menu'}),_0x3e9c3d['listenTo'](_0x161acc,'change:isActionsDropdownOpen',(_0x500b2c,_0x33bcf7,_0x533880)=>{if(_0x533880)for(const _0x597057 of _0x3e9c3d['listView']['items']){const _0x3e214f=_0x597057['children']['first'],_0x44c3af=_0x5cdf51['find'](_0x515a97=>_0x515a97['action']===_0x3e214f['_action'])['isVisible'];_0x597057['isVisible']=void 0x0===_0x44c3af||_0x44c3af(_0x161acc);}}),_0x3e9c3d;}class ai extends/* #__PURE__ -- @preserve */
26
+ _0x34c2f4(_0x225181){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x384e20,_0x17142d,_0x1e5453,_0x3f093c){super(_0x384e20);const _0x5b8ec3=this['bindTemplate'],_0x15d9a6=function(_0x4e8a3e,_0x2edce5){const _0x170ee5=Array['from'](_0x2edce5['authors'])['filter'](_0x25fe91=>_0x25fe91!=_0x2edce5['creator']);return _0x2edce5['creator']&&_0x170ee5['unshift'](_0x2edce5['creator']),_0x170ee5['map'](_0x32df02=>new ti(_0x4e8a3e,_0x32df02,_0x32df02==_0x2edce5['creator']));}(_0x384e20,_0x17142d);this['id']=_0x17142d['id'],this['_revision']=_0x17142d,this['_requireRevisionName']=_0x3f093c,this['bind']('name','createdAt')['to'](_0x17142d),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x544aeb=>{return _0x36f10c=_0x384e20['uiLanguage'],(_0x5d1226=_0x544aeb)['toLocaleDateString'](_0x36f10c,{'month':'long','day':'numeric'})+',\x20'+_0x5d1226['toLocaleTimeString'](_0x36f10c,{'hour':'numeric','minute':'numeric'});var _0x36f10c,_0x5d1226;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x384e20,_0x37cab7),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x67f5f3=>_0x67f5f3||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0xe33607,_0x29e2ee)=>_0xe33607&&_0x29e2ee),this['revisionActionsView']=_0x1e5453&&_0x1e5453['length']?ni(this,_0x1e5453):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x5b8ec3['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x5b8ec3['if']('isEnabled','ck-disabled',_0x173fd4=>!_0x173fd4),_0x5b8ec3['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x5b8ec3['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x5b8ec3['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':_0x5b8ec3['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':_0x15d9a6}]},this['revisionActionsView']],'on':{'click':_0x5b8ec3['to'](_0x57d39c=>{_0x57d39c['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x38ecb8=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x38ecb8,'change',()=>{this['_requireRevisionName']&&!_0x38ecb8['value']||this['fire']('setName',{'id':this['id'],'name':_0x38ecb8['value']}),_0x38ecb8['value']||(_0x38ecb8['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(_0x7d4823,_0x45cce1){const _0x400e98=_0x25ad72['fromJSDate'](_0x7d4823)['setLocale'](_0x45cce1),_0x35a3fc=_0x25ad72['local'](),_0x5b52f1=_0x35a3fc['minus']({'days':0x1})['startOf']('day');let _0xa203ef,_0x11af88;return _0x400e98['hasSame'](_0x35a3fc,'day')?(_0xa203ef=_0x400e98['startOf']('day')['toJSDate'](),_0x11af88=_0x400e98['toRelativeCalendar']()):_0x400e98['hasSame'](_0x5b52f1,'day')?(_0xa203ef=_0x5b52f1['toJSDate'](),_0x11af88=_0x400e98['toRelativeCalendar']()):_0x400e98['hasSame'](_0x35a3fc,'week')?(_0xa203ef=_0x400e98['startOf']('week')['toJSDate'](),_0x11af88=_0x400e98['weekdayLong']||''):_0x400e98['hasSame'](_0x35a3fc,'year')?(_0xa203ef=_0x400e98['startOf']('month')['toJSDate'](),_0x11af88=_0x400e98['monthLong']||''):(_0xa203ef=_0x400e98['startOf']('year')['toJSDate'](),_0x11af88=String(_0x400e98['year'])),{'startDate':_0xa203ef,'localizedPeriodName':_0x11af88};}class mi extends _0x225181{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x219730,_0x9cc753,_0x21f673,_0x2f1650){super(_0x219730);const _0x4a6bc5=di(_0x9cc753,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x9cc753,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x21f673,this['_requireRevisionName']=_0x2f1650,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':_0x4a6bc5}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x10ab07){const _0x331441=new ai(this['locale'],_0x10ab07,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x331441);}['removeRevision'](_0x4b8ed8){const _0x387163=this['revisionViews']['find'](_0x61d92f=>_0x61d92f['id']===_0x4b8ed8['id']);this['revisionViews']['remove'](_0x387163);}}class as extends _0x225181{constructor(_0x16ce48){super(_0x16ce48);const _0x4ec5bd=new _0x263ade();_0x4ec5bd['content']=_0x429f7b['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x4ec5bd,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x16ce48,'Revision\x20history')]}]});}}class ci extends _0x225181{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x1c2a80,_0x41c221,_0x41977d,_0x30c475){super(_0x1c2a80);const _0x154462=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x41c221,this['_revisionActions']=_0x41977d,this['_requireRevisionName']=_0x30c475,this['on']('select',(_0x22f332,_0x5bd814)=>{this['fire']('revisionSelected',_0x5bd814);}),this['on']('setName',(_0x5644f9,_0xa5b4be)=>{this['fire']('revisionSetName',_0xa5b4be);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x1c2a80),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x154462['if']('isEnabled','ck-disabled',_0x53c37d=>!_0x53c37d)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x164556 of this['_revisions'])this['_addRevision'](_0x164556);this['_revisions']['on']('add',(_0xeb40fe,_0x34e102)=>{this['_addRevision'](_0x34e102);}),this['_revisions']['on']('remove',(_0x5cd8fd,_0x1efee)=>{this['_removeRevision'](_0x1efee);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x22a31e=>_0x22a31e['revisionViews']['map'](_0xabc0d3=>_0xabc0d3))['flat']();}['selectRevision'](_0x298065){for(const _0x3d323a of this['revisionViews'])_0x298065&&_0x298065['id']===_0x3d323a['id']?_0x3d323a['select']():_0x3d323a['deselect']();}['highlightRevisions'](_0x2caa56){for(const _0x15d8d3 of this['revisionViews'])_0x2caa56['some'](({id:_0x2d4171})=>_0x2d4171===_0x15d8d3['id'])?_0x15d8d3['highlight']():_0x15d8d3['unhighlight']();}['_addRevision'](_0x2b1d1e){const _0x12d7de=di(_0x2b1d1e['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x16f6af=this['timePeriodViews']['get'](0x0);_0x16f6af&&_0x16f6af['startDate']['getTime']()===_0x12d7de['getTime']()||(_0x16f6af=new mi(this['locale'],_0x12d7de,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x16f6af)),_0x16f6af['addRevision'](_0x2b1d1e);}['_removeRevision'](_0x2eb857){const _0x598b65=di(_0x2eb857['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x598b65)['removeRevision'](_0x2eb857);}['_getTimePeriodViewByStartDate'](_0x397d8f){return this['timePeriodViews']['find'](_0x285e5c=>_0x285e5c['startDate']['getTime']()===_0x397d8f['getTime']());}}class g extends _0x49970d{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- Rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x4f05bc){super(_0x4f05bc),this['_revisionViewer']=_0x4f05bc['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x4323b9=this['_revisionsRepository']['_revisions'],_0x5211eb=this['_createRevisionActions'](),_0xd2a67f=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0x4323b9,_0x5211eb,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',(_0x1a34b7,_0x1d37e8)=>{_0x1d37e8['revisionViews']['on']('add',(_0x225666,_0x30d44b)=>{_0x30d44b['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)),_0xd2a67f['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x54c5df=this['_revisionsRepository']['getRevision'](0x0);if(_0x54c5df){const _0x56efa0=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x54c5df['id']);this['_revisionViewer']['compare'](_0x54c5df,_0x56efa0);}}['_handleRevisionSelected'](_0x5f52ef,_0x53027b){const _0x25510b=this['_revisionsRepository']['getRevision'](_0x53027b['id']),_0x20a613=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x25510b['id']);this['_revisionViewer']['compare'](_0x25510b,_0x20a613);}['_handleRevisionSetName'](_0x35c47f,_0x4cb68b){this['_revisionsRepository']['getRevision'](_0x4cb68b['id'])['setName'](_0x4cb68b['name']);}['_handleDiffChange'](_0x78c664,_0x3f4668,_0x1956c7){const _0x339b20=this['_revisionsRepository']['getRevisionsInDiff'](_0x1956c7);_0x339b20['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x339b20),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x339b20[0x0]));}['_createRevisionActions'](){const _0x17ba44=this['editor'],_0x5eaa6b=g['availableRevisionActions'],_0x508d1a=_0x17ba44['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x508d1a['length'])return _0x508d1a['map'](_0x308cf3=>{const _0x279a7b='string'==typeof _0x308cf3?Object['assign']({},_0x5eaa6b[_0x308cf3]):_0x308cf3;return _0x279a7b['action']=_0x279a7b['action']['bind'](this,_0x17ba44),_0x279a7b['isVisible']&&(_0x279a7b['isVisible']=_0x279a7b['isVisible']['bind'](this,_0x17ba44)),_0x279a7b;});}}function Rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x342d12},_0x59d736)=>{const _0x11ee05=_0x342d12['get'](d),_0x3d9583=_0x11ee05['repository'];let _0xa12ec8=_0x11ee05['diff']['newRevisionId'],_0x18c33=_0x59d736['id'];_0x3d9583['getIndex'](_0xa12ec8)>_0x3d9583['getIndex'](_0x18c33)&&([_0xa12ec8,_0x18c33]=[_0x18c33,_0xa12ec8]),_0x11ee05['compare'](_0xa12ec8,_0x18c33);},'isVisible':({plugins:_0x59bc93},_0x514786)=>{const _0x247126=_0x59bc93['get'](d);return!(_0x247126['repository']['getRevisionsInDiff'](_0x247126['diff'])['length']>0x2)&&!_0x514786['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x3d87a9,{id:_0x3edf9c})=>{_0x3d87a9['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3edf9c);},'isVisible':({plugins:_0x524be3},_0x5e715e)=>!!_0x524be3['get'](d)['repository']['getLaterVisibleRevision'](_0x5e715e['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x16f355},{id:_0x525673,revisionNameView:_0x1b4b47})=>{const _0x4dce84=_0x16f355['get'](d),_0x4de85a=_0x4dce84['repository']['getEarlierVisibleRevision'](_0x525673);_0x4dce84['compare'](_0x525673,_0x4de85a),_0x1b4b47['focus'](),_0x1b4b47['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x552327,_0x5a4603){super(_0x552327),this['_view']=_0x5a4603,this['_toolbarConfig']=ht(_0x552327['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x6e8867){const _0x199a03=this['editor'],_0x4ef696=this['view'],_0x27b56a=_0x199a03['editing']['view'],_0x3d04d3=_0x4ef696['editable'],_0x5be77e=_0x27b56a['document']['getRoot']();_0x3d04d3['name']=_0x5be77e['rootName'],_0x4ef696['render']();const _0x5dcfe1=_0x3d04d3['element'];this['setEditableElement'](_0x3d04d3['name'],_0x5dcfe1),_0x4ef696['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x27b56a['attachDomRoot'](_0x5dcfe1),this['_elementReplacer']['replace'](_0x6e8867,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x1c2d0e=this['view'],_0x4a3e6d=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x4a3e6d['detachDomRoot'](_0x1c2d0e['editable']['name']),_0x1c2d0e['destroy']();}['_initToolbar'](){const _0x3f28ed=this['view'];_0x3f28ed['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x3f28ed['stickyPanel']['limiterElement']=_0x3f28ed['element'],_0x3f28ed['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x36e1b5})=>_0x36e1b5),_0x3f28ed['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x3f28ed['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x3793c6,_0x1cf7af,_0x47f135={}){super(_0x3793c6),this['stickyPanel']=new lt(_0x3793c6),this['toolbar']=new nt(_0x3793c6,{'shouldGroupWhenFull':_0x47f135['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x3793c6,_0x1cf7af);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
29
- rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x1eb03a,_0x4c7afe){super(_0x4c7afe),this['sourceElement']=_0x1eb03a,this['model']['document']['createRoot']();const _0x4abac5=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x4abac5);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x2ad1f2,_0x12d918){const _0x40f2df=new this(_0x2ad1f2,_0x12d918);return await _0x40f2df['initPlugins'](),await _0x40f2df['ui']['init'](_0x2ad1f2),await _0x40f2df['data']['init'](_0x40f2df['config']['get']('initialData')||''),_0x40f2df['fire']('ready'),_0x40f2df;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x487362{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x9082){function _0x4a2307(_0x297e00){return _0x297e00['map'](_0x3d3251=>String['fromCharCode'](_0x3d3251))['join']('');}super(_0x9082),this['result']='end',_0x9082[_0x4a2307([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4a2307([0x76,0x69,0x65,0x77])][_0x4a2307([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4a2307([0x61,0x75,0x74,0x6f]),_0x9082[_0x4a2307([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4a2307([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4a2307([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4a2307([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4a2307([0x6f,0x6b])});}}class H extends _0x487362{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x1f92cf){if(super(_0x1f92cf),!this['editor']['config']['get']('revisionHistory'))throw new _0x4e5314('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x525bc1=>this['_showRevisionViewer']({..._0x525bc1,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x22f31b=>this['_closeRevisionViewer'](_0x22f31b)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x589324=>this['_restoreRevision'](_0x589324)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x58c6de){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x58c6de;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x379844){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x379844);}['getRevision'](_0x599773){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x599773);}['getRevisions'](_0x3f93f5){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x3f93f5||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x27272f=this['editor'],_0x369485=_0x273a5a(_0x27272f,p),_0x234441=_0x27272f['plugins']['get']('RevisionTracker'),_0x32258c=_0x27272f['plugins']['get']('Users')['users'];return _0x369485['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x369485['lazyRoots'],(_0x369485['plugins']['push'](k,d,m,class extends _0x487362{static get['requires'](){return[d,'Users'];}['init'](){const _0x28aa36=this['editor']['plugins']['get']('Users');for(const _0x4f832e of _0x32258c)_0x4f832e['isAnonymous']||_0x28aa36['getUser'](_0x4f832e['id'])||_0x28aa36['addUser'](_0x4f832e);const _0x5c9c89=_0x234441['repository']['getRevisions']();let _0x3744e8=null;const _0x402449=this['editor']['plugins']['get']('RevisionViewer');_0x402449['adapter']=_0x234441['adapter'],_0x402449['bind']('isEnabled')['to'](_0x234441),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x27272f,'isReadOnly',_0x2b6f28=>!_0x2b6f28);for(const _0x2e1695 of _0x5c9c89){const _0x10ca5a=null===_0x2e1695['creator'];if(_0x10ca5a&&_0x2e1695['toVersion']===_0x2e1695['fromVersion'])continue;const _0x439d03=_0x2e1695['toJSON']();_0x402449['addRevisionData'](_0x439d03,(_0x57be62,_0xee3c8,_0x5332e9)=>{if(_0x10ca5a){if(_0x3744e8)_0x3744e8['_update'](_0x57be62,_0xee3c8);else{if(!_0xee3c8){const _0x4c4770=_0x5332e9['toJSON']();_0x4c4770['id']=_0x3892c5(),_0x234441['saveRevision'](_0x4c4770,_0x5332e9['toVersion'])['then'](_0x481d4a=>{_0x3744e8=_0x481d4a;});}}}else _0x2e1695['_update'](_0x57be62,_0xee3c8);});}}},g),_0x369485);}['_enhanceShowRevisionViewerCallback'](){const _0xf0306c=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x2a98bf=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x3b69b2=this['editor']['plugins']['get']('Autosave');await _0x3b69b2['save']();}else await _0x2a98bf['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0xe8d2bb=this['editor']['plugins']['get']('Dialog');_0xe8d2bb['isOpen']&&_0xe8d2bb['hide']();}const _0x548980=this['_getRevisionViewerEditorConfig']();return _0xf0306c(_0x548980)['then'](_0x5883fd=>{return(this['_viewerEditor']=_0x5883fd,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x5883fd;})['catch'](_0x1e3d94=>(console['error'](_0x1e3d94),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0xd298f0=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'](),_0xd298f0(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x391b3f=this['editor']['plugins']['get']('Annotations');_0x391b3f['refreshVisibility'](),_0x391b3f['refreshPositioning']();}})));}['_showRevisionViewer'](_0x181810){const _0x5a2f66=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4af12d=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x427111=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x427111,_0x181810)['then'](_0x219104=>(_0x4af12d['style']['display']='block',_0x5a2f66['style']['display']='none',_0x219104));}['_closeRevisionViewer'](_0x4cad29){const _0x1650bc=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x1650bc['style']['display']='',_0x4cad29['destroy']();}async['_restoreRevision'](_0x335502){const _0x1d36e9=this['editor'],_0x529e41=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x49461e=_0x1d36e9['plugins']['get']('RevisionTracker'),_0x512098=_0x529e41['repository']['getRevision'](_0x335502);let _0x3b7a02,_0x1265ee,_0x4346a2;try{_0x3b7a02=await _0x529e41['getRevisionData'](_0x512098),_0x1265ee=await _0x529e41['getRevisionRootsAttributes'](_0x512098);}catch(_0x507bc9){return void console['error'](_0x507bc9);}_0x1d36e9['model']['change'](_0x2e2466=>{for(const _0x4ebc70 of Array['from'](_0x1d36e9['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x2e2466['removeMarker'](_0x4ebc70);}),_0x529e41['isReady']=!0x1,_0x1d36e9['model']['enqueueChange'](_0x4443b1=>{_0x4443b1['setSelection'](null),_0x4443b1['removeSelectionAttribute'](_0x1d36e9['model']['document']['selection']['getAttributeKeys']());const _0x3ae9a9=Object['keys'](_0x3b7a02);for(const _0x32e679 of _0x1d36e9['model']['document']['roots'])'$graveyard'!=_0x32e679['rootName']&&_0x32e679['isAttached']()&&!_0x3ae9a9['includes'](_0x32e679['rootName'])&&_0x4443b1['detachRoot'](_0x32e679);for(const _0xdf1f27 of _0x3ae9a9){let _0x2f810e=_0x1d36e9['model']['document']['getRoot'](_0xdf1f27);_0x2f810e&&_0x2f810e['isAttached']()||(_0x2f810e=_0x4443b1['addRoot'](_0xdf1f27));const _0x3ec997=_0x1265ee[_0xdf1f27],_0x5a8fcc=Object['keys'](_0x3ec997),_0x2c8813=_0x3b7a02[_0xdf1f27];for(const _0xc5aa64 of _0x2f810e['getAttributeKeys']())_0x5a8fcc['includes'](_0xc5aa64)||_0x4443b1['removeAttribute'](_0xc5aa64,_0x2f810e);for(const _0x1785a8 of _0x5a8fcc)_0x4443b1['setAttribute'](_0x1785a8,_0x1265ee[_0xdf1f27][_0x1785a8],_0x2f810e);_0x4443b1['remove'](_0x4443b1['createRangeIn'](_0x2f810e)),_0x4443b1['insert'](_0x1d36e9['data']['parse'](_0x2c8813,_0x2f810e),_0x2f810e,0x0);}});const _0x97951f=R(_0x1d36e9['locale'],'Restored');if(_0x512098['name'])_0x4346a2=-0x1==_0x512098['name']['indexOf'](_0x97951f)?_0x97951f+':\x20'+_0x512098['name']:_0x512098['name'];else _0x4346a2=_0x97951f+':\x20'+(_0x512098['createdAt']['toLocaleDateString'](_0x1d36e9['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x512098['createdAt']['toLocaleTimeString'](_0x1d36e9['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x49461e['saveRevision']({'name':_0x4346a2}),_0x529e41['isReady']=!0x0,_0x1d36e9['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,te as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
28
+ Rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x4235e){super(_0x4235e),this['_revisionViewer']=_0x4235e['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x5e7db3=this['_revisionsRepository']['_revisions'],_0x2e07c8=this['_createRevisionActions'](),_0x37b01f=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0x5e7db3,_0x2e07c8,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',(_0x47e413,_0x51963d)=>{_0x51963d['revisionViews']['on']('add',(_0x1ed188,_0xaa68ac)=>{_0xaa68ac['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)),_0x37b01f['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x27540f=this['_revisionsRepository']['getRevision'](0x0);if(_0x27540f){const _0x4f50f8=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x27540f['id']);this['_revisionViewer']['compare'](_0x27540f,_0x4f50f8);}}['_handleRevisionSelected'](_0x49b96f,_0x1b70bf){const _0x5caa9f=this['_revisionsRepository']['getRevision'](_0x1b70bf['id']),_0x16723b=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x5caa9f['id']);this['_revisionViewer']['compare'](_0x5caa9f,_0x16723b);}['_handleRevisionSetName'](_0x631f89,_0x47df3d){this['_revisionsRepository']['getRevision'](_0x47df3d['id'])['setName'](_0x47df3d['name']);}['_handleDiffChange'](_0x33ba30,_0x316dec,_0x2338c1){const _0x24f74b=this['_revisionsRepository']['getRevisionsInDiff'](_0x2338c1);_0x24f74b['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x24f74b),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x24f74b[0x0]));}['_createRevisionActions'](){const _0x3754b8=this['editor'],_0x44cb81=g['availableRevisionActions'],_0x528f92=_0x3754b8['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x528f92['length'])return _0x528f92['map'](_0x565313=>{const _0x2bd9ce='string'==typeof _0x565313?Object['assign']({},_0x44cb81[_0x565313]):_0x565313;return _0x2bd9ce['action']=_0x2bd9ce['action']['bind'](this,_0x3754b8),_0x2bd9ce['isVisible']&&(_0x2bd9ce['isVisible']=_0x2bd9ce['isVisible']['bind'](this,_0x3754b8)),_0x2bd9ce;});}}function Rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x4916f4},_0x420108)=>{const _0x21bbbd=_0x4916f4['get'](d),_0xea13fa=_0x21bbbd['repository'];let _0x58f537=_0x21bbbd['diff']['newRevisionId'],_0x229af2=_0x420108['id'];_0xea13fa['getIndex'](_0x58f537)>_0xea13fa['getIndex'](_0x229af2)&&([_0x58f537,_0x229af2]=[_0x229af2,_0x58f537]),_0x21bbbd['compare'](_0x58f537,_0x229af2);},'isVisible':({plugins:_0x15a741},_0x1887b2)=>{const _0x5e6f99=_0x15a741['get'](d);return!(_0x5e6f99['repository']['getRevisionsInDiff'](_0x5e6f99['diff'])['length']>0x2)&&!_0x1887b2['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x49d00f,{id:_0x2b7a7f})=>{_0x49d00f['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2b7a7f);},'isVisible':({plugins:_0x5f2ad6},_0x334651)=>!!_0x5f2ad6['get'](d)['repository']['getLaterVisibleRevision'](_0x334651['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x4c2be4},{id:_0x531393,revisionNameView:_0x53b424})=>{const _0x4a8c78=_0x4c2be4['get'](d),_0xf23fa=_0x4a8c78['repository']['getEarlierVisibleRevision'](_0x531393);_0x4a8c78['compare'](_0x531393,_0xf23fa),_0x53b424['focus'](),_0x53b424['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x3e978c,_0x53c294){super(_0x3e978c),this['_view']=_0x53c294,this['_toolbarConfig']=ht(_0x3e978c['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x1fa0bd){const _0x14a441=this['editor'],_0x472ee7=this['view'],_0x533240=_0x14a441['editing']['view'],_0x39050b=_0x472ee7['editable'],_0x3d5e42=_0x533240['document']['getRoot']();_0x39050b['name']=_0x3d5e42['rootName'],_0x472ee7['render']();const _0xf043c8=_0x39050b['element'];this['setEditableElement'](_0x39050b['name'],_0xf043c8),_0x472ee7['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x533240['attachDomRoot'](_0xf043c8),this['_elementReplacer']['replace'](_0x1fa0bd,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x9ff6fe=this['view'],_0x895a15=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x895a15['detachDomRoot'](_0x9ff6fe['editable']['name']),_0x9ff6fe['destroy']();}['_initToolbar'](){const _0x41c302=this['view'];_0x41c302['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x41c302['stickyPanel']['limiterElement']=_0x41c302['element'],_0x41c302['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x2f01ab})=>_0x2f01ab),_0x41c302['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x41c302['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x5ef92a,_0x322ba4,_0x437cdc={}){super(_0x5ef92a),this['stickyPanel']=new lt(_0x5ef92a),this['toolbar']=new nt(_0x5ef92a,{'shouldGroupWhenFull':_0x437cdc['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x5ef92a,_0x322ba4);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
29
+ rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x2819fb,_0x418d49){super(_0x418d49),this['sourceElement']=_0x2819fb,this['model']['document']['createRoot']();const _0x868744=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x868744);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x4d38ba,_0x86b037){const _0x1ba017=new this(_0x4d38ba,_0x86b037);return await _0x1ba017['initPlugins'](),await _0x1ba017['ui']['init'](_0x4d38ba),await _0x1ba017['data']['init'](_0x1ba017['config']['get']('initialData')||''),_0x1ba017['fire']('ready'),_0x1ba017;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x49970d{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x233a39){function _0x42923f(_0x4cc187){return _0x4cc187['map'](_0x51cb7e=>String['fromCharCode'](_0x51cb7e))['join']('');}super(_0x233a39),this['result']='end',_0x233a39[_0x42923f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42923f([0x76,0x69,0x65,0x77])][_0x42923f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x42923f([0x61,0x75,0x74,0x6f]),_0x233a39[_0x42923f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x42923f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x42923f([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x42923f([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x42923f([0x6f,0x6b])});}}class H extends _0x49970d{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x5a0d95){if(super(_0x5a0d95),!this['editor']['config']['get']('revisionHistory'))throw new _0x1f287f('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x347559=>this['_showRevisionViewer']({..._0x347559,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0xa68891=>this['_closeRevisionViewer'](_0xa68891)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x46edca=>this['_restoreRevision'](_0x46edca)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x452dd9){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x452dd9;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x4e8a67){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x4e8a67);}['getRevision'](_0x421e05){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x421e05);}['getRevisions'](_0x9c6cc5){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x9c6cc5||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x3cbc5f=this['editor'],_0x4e6cb1=_0x2c872e(_0x3cbc5f,p),_0x457c7e=_0x3cbc5f['plugins']['get']('RevisionTracker'),_0x46c11d=_0x3cbc5f['plugins']['get']('Users')['users'];return _0x4e6cb1['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4e6cb1['lazyRoots'],(_0x4e6cb1['plugins']['push'](k,d,m,class extends _0x49970d{static get['requires'](){return[d,'Users'];}['init'](){const _0x154762=this['editor']['plugins']['get']('Users');for(const _0x19800c of _0x46c11d)_0x19800c['isAnonymous']||_0x154762['getUser'](_0x19800c['id'])||_0x154762['addUser'](_0x19800c);const _0x51d101=_0x457c7e['repository']['getRevisions']();let _0x745ad2=null;const _0x49e391=this['editor']['plugins']['get']('RevisionViewer');_0x49e391['adapter']=_0x457c7e['adapter'],_0x49e391['bind']('isEnabled')['to'](_0x457c7e),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x3cbc5f,'isReadOnly',_0x3d606b=>!_0x3d606b);for(const _0x22a153 of _0x51d101){const _0x16f0fa=null===_0x22a153['creator'];if(_0x16f0fa&&_0x22a153['toVersion']===_0x22a153['fromVersion'])continue;const _0x5081e4=_0x22a153['toJSON']();_0x49e391['addRevisionData'](_0x5081e4,(_0x46e359,_0x5ced2e,_0x7c0235)=>{if(_0x16f0fa){if(_0x745ad2)_0x745ad2['_update'](_0x46e359,_0x5ced2e);else{if(!_0x5ced2e){const _0x2c7351=_0x7c0235['toJSON']();_0x2c7351['id']=_0x4f9a89(),_0x457c7e['saveRevision'](_0x2c7351,_0x7c0235['toVersion'])['then'](_0x3e1544=>{_0x745ad2=_0x3e1544;});}}}else _0x22a153['_update'](_0x46e359,_0x5ced2e);});}}},g),_0x4e6cb1);}['_enhanceShowRevisionViewerCallback'](){const _0xb8ed06=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x3130dc=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x119914=this['editor']['plugins']['get']('Autosave');await _0x119914['save']();}else await _0x3130dc['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x33ef7d=this['editor']['plugins']['get']('Dialog');_0x33ef7d['isOpen']&&_0x33ef7d['hide']();}const _0x1d3110=this['_getRevisionViewerEditorConfig']();return _0xb8ed06(_0x1d3110)['then'](_0x108411=>{return(this['_viewerEditor']=_0x108411,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x108411;})['catch'](_0x19c120=>(console['error'](_0x19c120),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x282d1b=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'](),_0x282d1b(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x4c6bd3=this['editor']['plugins']['get']('Annotations');_0x4c6bd3['refreshVisibility'](),_0x4c6bd3['refreshPositioning']();}})));}['_showRevisionViewer'](_0x20bb93){const _0x4a2d2e=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x499a79=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x1ccab4=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x1ccab4,_0x20bb93)['then'](_0x258509=>(_0x499a79['style']['display']='block',_0x4a2d2e['style']['display']='none',_0x258509));}['_closeRevisionViewer'](_0x1bdbff){const _0x298569=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x298569['style']['display']='',_0x1bdbff['destroy']();}async['_restoreRevision'](_0x323bfe){const _0xf0f63f=this['editor'],_0x5f52c8=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x3c730a=_0xf0f63f['plugins']['get']('RevisionTracker'),_0x15eb02=_0x5f52c8['repository']['getRevision'](_0x323bfe);let _0x13f9f1,_0x2e599c,_0x1778aa;try{_0x13f9f1=await _0x5f52c8['getRevisionData'](_0x15eb02),_0x2e599c=await _0x5f52c8['getRevisionRootsAttributes'](_0x15eb02);}catch(_0x24b58e){return void console['error'](_0x24b58e);}_0xf0f63f['model']['change'](_0x497a39=>{for(const _0x1b31c9 of Array['from'](_0xf0f63f['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x497a39['removeMarker'](_0x1b31c9);}),_0x5f52c8['isReady']=!0x1,_0xf0f63f['model']['enqueueChange'](_0x39437f=>{_0x39437f['setSelection'](null),_0x39437f['removeSelectionAttribute'](_0xf0f63f['model']['document']['selection']['getAttributeKeys']());const _0xd2ea6e=Object['keys'](_0x13f9f1);for(const _0x28bc20 of _0xf0f63f['model']['document']['roots'])'$graveyard'!=_0x28bc20['rootName']&&_0x28bc20['isAttached']()&&!_0xd2ea6e['includes'](_0x28bc20['rootName'])&&_0x39437f['detachRoot'](_0x28bc20);for(const _0x4c3bd2 of _0xd2ea6e){let _0xbe2190=_0xf0f63f['model']['document']['getRoot'](_0x4c3bd2);_0xbe2190&&_0xbe2190['isAttached']()||(_0xbe2190=_0x39437f['addRoot'](_0x4c3bd2));const _0x9ad024=_0x2e599c[_0x4c3bd2],_0x203fd5=Object['keys'](_0x9ad024),_0x224059=_0x13f9f1[_0x4c3bd2];for(const _0x1ac577 of _0xbe2190['getAttributeKeys']())_0x203fd5['includes'](_0x1ac577)||_0x39437f['removeAttribute'](_0x1ac577,_0xbe2190);for(const _0xce3f7c of _0x203fd5)_0x39437f['setAttribute'](_0xce3f7c,_0x2e599c[_0x4c3bd2][_0xce3f7c],_0xbe2190);_0x39437f['remove'](_0x39437f['createRangeIn'](_0xbe2190)),_0x39437f['insert'](_0xf0f63f['data']['parse'](_0x224059,_0xbe2190),_0xbe2190,0x0);}});const _0x445c1a=R(_0xf0f63f['locale'],'Restored');if(_0x15eb02['name'])_0x1778aa=-0x1==_0x15eb02['name']['indexOf'](_0x445c1a)?_0x445c1a+':\x20'+_0x15eb02['name']:_0x15eb02['name'];else _0x1778aa=_0x445c1a+':\x20'+(_0x15eb02['createdAt']['toLocaleDateString'](_0xf0f63f['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x15eb02['createdAt']['toLocaleTimeString'](_0xf0f63f['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x3c730a['saveRevision']({'name':_0x1778aa}),_0x5f52c8['isReady']=!0x0,_0xf0f63f['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};