@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250226.0 → 0.0.0-nightly-20250227.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 _0x516367,uid as _0x4f9af2,Collection as _0x13b5e8,logWarning as _0x13d2e1,FocusTracker as _0x3d339c,KeystrokeHandler as _0x43e4f7,scrollViewportToShowTarget as _0xfed6b8,ResizeObserver as nt,ElementReplacer as ht,CKEditorError as _0x272203}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x456193,set as _0x3b8113,unset as _0x32e303,isEqual as _0x3c1054}from'lodash-es';import{Plugin as _0x43da28,PendingActions as _0x16d7d1,icons as _0x5b095b,Command as _0x373fcf,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x23463a,getMarkerDomElement as _0x368c0e,ConfirmMixin as _0x5af527,sanitizeEditorConfig as _0x4ef1d0}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x49a981,Element as ft,Range as vt,ViewUIElement as _0x2f209d,ViewRawElement as _0x1a9b91,ViewEmptyElement as _0x1d4908,ViewAttributeElement as _0x16e4b8,ViewContainerElement as _0x5d5f8c,Position as gt,ViewText as _0x1b3fed,ViewElement as _0x373d7e,DocumentFragment as mt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x33abfc,submitHandler as _0x3c49f3,LabeledFieldView as _0x3333b0,createLabeledInputText as _0x380cb7,createDropdown as _0x47471b,ListView as _0x46bf10,ListItemView as _0x3b0d83,ButtonView as te,MenuBarMenuView as _0x35891c,MenuBarMenuListView as _0x27588f,MenuBarMenuListItemView as _0x4dfca5,MenuBarMenuListItemButtonView as _0x390e3b,ContextualBalloon as _0xcf7ba6,ToolbarSeparatorView as _0x1152d7,IconView as _0x34f4ef,addListToDropdown as to,ViewModel as _0x45eb5e,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as ut,ToolbarView as lt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x26d640}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
- _0x516367(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x275fbf){super(),this['id']=_0x275fbf['id']||_0x4f9af2(),this['creator']=_0x275fbf['creator']||null,this['authors']=_0x275fbf['authors']||[],this['diffData']=_0x275fbf['diffData']||null,this['toVersion']=_0x275fbf['toVersion']||0x0,this['fromVersion']=_0x275fbf['fromVersion']||0x0,this['set']('name',_0x275fbf['name']||''),this['set']('createdAt',_0x275fbf['createdAt']||new Date()),this['set']('attributes',_0x275fbf['attributes']||{});}['setName'](_0x3a535d){this['_update']({'name':_0x3a535d});}['setAttribute'](_0x5d97a2,_0x47e2ab){const _0x4648f8=_0x456193(this['attributes']);_0x3b8113(_0x4648f8,_0x5d97a2,_0x47e2ab),this['_update']({'attributes':_0x4648f8});}['removeAttribute'](_0x3fa8b4){const _0x25aacc=_0x456193(this['attributes']);_0x32e303(_0x25aacc,_0x3fa8b4),this['_update']({'attributes':_0x25aacc});}['_update'](_0x4822ed,_0x37a1a6=!0x1){let _0x533c5b=!0x1;const _0x5f4f58={'id':this['id']},_0x2912a3=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x17b0c7 of _0x2912a3){const _0x4e1418=_0x4822ed[_0x17b0c7];void 0x0!==_0x4e1418&&_0x4e1418!==this[_0x17b0c7]&&(this[_0x17b0c7]=_0x4e1418,_0x5f4f58[_0x17b0c7]=_0x4e1418,_0x533c5b=!0x0);}_0x533c5b&&(_0x5f4f58['authors']&&(_0x5f4f58['authorsIds']=_0x5f4f58['authors']['map'](_0x5067fd=>_0x5067fd['id']),delete _0x5f4f58['authors']),this['fire']('_update',_0x5f4f58,_0x37a1a6));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x31157b=>_0x31157b['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x43da28{['_revisions'];static get['requires'](){return[_0x23463a];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x37a80b){super(_0x37a80b),this['_revisions']=new _0x13b5e8();}['afterInit'](){!async function(_0x3eea4a){const _0x5c5ef6=_0xa02786([0x52,0x6d,0x4a,0x55,0x70,0x6b,0x63,0x38,0x4d,0x58,0x75,0x36,0x74,0x78,0x45,0x44,0x66,0x71,0x31,0x77,0x7a,0x73,0x76,0x6e,0x54,0x6f,0x65,0x57,0x69,0x4f,0x32,0x42,0x6c,0x43,0x39,0x62,0x46,0x64,0x37,0x59,0x72,0x35,0x48,0x6a,0x4b,0x4c,0x33,0x79,0x56,0x5a,0x67,0x53,0x50,0x41,0x4e,0x61,0x47,0x51,0x34,0x30,0x49,0x68]),_0x5ae981=0xeb829,_0x6a73e0=0x1c9234c2,_0x2eeb27=0x1c95545a^_0x6a73e0,_0x25b04a=window[_0xa02786([0x44,0x61,0x74,0x65])][_0xa02786([0x6e,0x6f,0x77])](),_0x383e9f=_0x3eea4a[_0xa02786([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x45787f=new window[(_0xa02786([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1305ba=>{_0x383e9f[_0xa02786([0x6f,0x6e,0x63,0x65])](_0xa02786([0x72,0x65,0x61,0x64,0x79]),_0x1305ba);}),_0x58931c={[_0xa02786([0x6b,0x74,0x79])]:_0xa02786([0x45,0x43]),[_0xa02786([0x75,0x73,0x65])]:_0xa02786([0x73,0x69,0x67]),[_0xa02786([0x63,0x72,0x76])]:_0xa02786([0x50,0x2d,0x32,0x35,0x36]),[_0xa02786([0x78])]:_0xa02786([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]),[_0xa02786([0x79])]:_0xa02786([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]),[_0xa02786([0x61,0x6c,0x67])]:_0xa02786([0x45,0x53,0x32,0x35,0x36])},_0x10e16b=_0x383e9f[_0xa02786([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xa02786([0x67,0x65,0x74])](_0xa02786([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x48f53e(){let _0x10bc77,_0x19d153=null,_0x491a2c=null;try{if(_0x10e16b==_0xa02786([0x47,0x50,0x4c]))return _0xa02786([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x10bc77=_0x36c935(),!_0x10bc77)return _0xa02786([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x10bc77[_0xa02786([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x491a2c=_0xeffb20(_0x10bc77[_0xa02786([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x10bc77[_0xa02786([0x6a,0x74,0x69])])),await _0x576e38()?_0x434926()?_0x58962()?_0xa02786([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x289046()?(_0x10bc77[_0xa02786([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa02786([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x19d153=_0x3d8a4f(_0xa02786([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x10bc77[_0xa02786([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa02786([0x74,0x72,0x69,0x61,0x6c])&&(_0x19d153=_0x3d8a4f(_0xa02786([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x45a63f()):_0xa02786([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xa02786([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xa02786([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x20e864){return _0xa02786([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x58962(){const _0x234751=[_0xa02786([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xa02786([0x74,0x72,0x69,0x61,0x6c])][_0xa02786([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10bc77[_0xa02786([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x25b04a/0x3e8:0xe10*_0x2eeb27;return _0x10bc77[_0xa02786([0x65,0x78,0x70])]<_0x234751;}function _0x434926(){const _0x156d9f=_0x10bc77[_0xa02786([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x156d9f)return!0x1;if(_0x156d9f[_0xa02786([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa02786([0x2a])))return!0x0;if(_0x156d9f[_0xa02786([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa02786([0x52,0x48])))return!0x0;if(_0x156d9f[_0xa02786([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa02786([0x52,0x52,0x48]))){if(_0x2127b3())return!0x0;if(_0x22959f()||_0x47201c())return!0x0;}return!0x1;}function _0x289046(){const _0x191083=_0x10bc77[_0xa02786([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x191083||0x0==_0x191083[_0xa02786([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x232264}=new URL(window[_0xa02786([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x191083[_0xa02786([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x232264))return!0x0;const _0x33b5a8=_0x232264[_0xa02786([0x73,0x70,0x6c,0x69,0x74])](_0xa02786([0x2e]));return _0x191083[_0xa02786([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x49463d=>_0x49463d[_0xa02786([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa02786([0x2a])))[_0xa02786([0x6d,0x61,0x70])](_0x3f1b31=>_0x3f1b31[_0xa02786([0x73,0x70,0x6c,0x69,0x74])](_0xa02786([0x2e])))[_0xa02786([0x73,0x6f,0x6d,0x65])](_0x3861b2=>_0x33b5a8[_0xa02786([0x65,0x76,0x65,0x72,0x79])]((_0x3c39fd,_0x35103c)=>_0x3861b2[_0x35103c]===_0x3c39fd||_0x3861b2[_0x35103c]===_0xa02786([0x2a])));}function _0x45a63f(){return _0x19d153&&_0x491a2c?new window[(_0xa02786([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f5f13,_0x7c555b)=>{_0x19d153[_0xa02786([0x74,0x68,0x65,0x6e])](_0x4f5f13,_0x7c555b),_0x491a2c[_0xa02786([0x74,0x68,0x65,0x6e])](_0x677785=>{_0x677785!=_0xa02786([0x56,0x61,0x6c,0x69,0x64])&&_0x4f5f13(_0x677785);},_0x7c555b);}):_0x19d153||_0x491a2c||_0xa02786([0x56,0x61,0x6c,0x69,0x64]);}}function _0xeffb20(_0x4d2031,_0x44b113){return new window[(_0xa02786([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ed57d=>{if(_0x3a80c6())return _0x3ed57d(_0xa02786([0x56,0x61,0x6c,0x69,0x64]));_0x74391(),_0x383e9f[_0xa02786([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xa02786([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3e86a2=!0x1;const _0x520afd=_0x4f9af2();function _0x14d5dc(_0x12ae25){return!!_0x12ae25&&(typeof _0x12ae25===_0xa02786([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x12ae25===_0xa02786([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x12ae25[_0xa02786([0x74,0x68,0x65,0x6e])]===_0xa02786([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x12ae25[_0xa02786([0x63,0x61,0x74,0x63,0x68])]===_0xa02786([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x222cd4(_0x53df08){_0x1f8fc7(_0x53df08)[_0xa02786([0x74,0x68,0x65,0x6e])](_0x2f983d=>{if(!_0x2f983d||_0x2f983d[_0xa02786([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xa02786([0x6f,0x6b]))return _0xa02786([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x389a35(_0x7734c2(_0x520afd+_0x44b113))!=_0x2f983d[_0xa02786([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xa02786([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xa02786([0x56,0x61,0x6c,0x69,0x64]);})[_0xa02786([0x74,0x68,0x65,0x6e])](_0x460470=>(_0x384948(),_0x460470),()=>{const _0xdb1e7b=_0x9bc607();return null==_0xdb1e7b?(_0x384948(),_0xa02786([0x56,0x61,0x6c,0x69,0x64])):_0xa02786(_0x25b04a-_0xdb1e7b>(0x389eb0c2^_0x6a73e0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xa02786([0x74,0x68,0x65,0x6e])](_0x3ed57d)[_0xa02786([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3ed57d(_0xa02786([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x221521=0x1ca4da42^_0x6a73e0;function _0x384948(){const _0x2e8c7c=_0xa02786([0x6c,0x6c,0x63,0x74,0x2d])+_0x389a35(_0x7734c2(_0x4d2031)),_0xc67552=_0x3f52e9(_0x389a35(window[_0xa02786([0x4d,0x61,0x74,0x68])][_0xa02786([0x63,0x65,0x69,0x6c])](_0x25b04a/_0x221521)));window[_0xa02786([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa02786([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2e8c7c,_0xc67552);}function _0x9bc607(){const _0x274c94=_0xa02786([0x6c,0x6c,0x63,0x74,0x2d])+_0x389a35(_0x7734c2(_0x4d2031)),_0xc5c2a1=window[_0xa02786([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa02786([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x274c94);return _0xc5c2a1?window[_0xa02786([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f52e9(_0xc5c2a1),0x10)*_0x221521:null;}function _0x1f8fc7(_0x55a4a7){return new window[(_0xa02786([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x409719,_0x45b638)=>{_0x55a4a7[_0xa02786([0x74,0x68,0x65,0x6e])](_0x409719,_0x45b638),window[_0xa02786([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x45b638,0x1c93e002^_0x6a73e0);});}}_0x383e9f[_0xa02786([0x6f,0x6e])](_0xa02786([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x456afc,_0x581047)=>{if(_0x581047[0x0]!=_0x4d2031)return _0x3ed57d(_0xa02786([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x581047[0x1]={..._0x581047[0x1],[_0xa02786([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x520afd};},{[_0xa02786([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa02786([0x68,0x69,0x67,0x68])}),_0x383e9f[_0xa02786([0x6f,0x6e])](_0xa02786([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xcce1ee=>{_0x14d5dc(_0xcce1ee[_0xa02786([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3e86a2=!0x0,_0x222cd4(_0xcce1ee[_0xa02786([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xa02786([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa02786([0x6c,0x6f,0x77])}),_0x45787f[_0xa02786([0x74,0x68,0x65,0x6e])](()=>{_0x3e86a2||_0x3ed57d(_0xa02786([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3a80c6(){return _0x383e9f[_0xa02786([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa02786([0x76,0x69,0x65,0x77])][_0xa02786([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xa02786([0x61,0x75,0x74,0x6f]);}function _0x74391(){_0x383e9f[_0xa02786([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa02786([0x76,0x69,0x65,0x77])][_0xa02786([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xa02786([0x61,0x75,0x74,0x6f]);}}function _0x3d8a4f(_0x180a16){const _0x52943f=[new window[(_0xa02786([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24af5e=>setTimeout(_0x24af5e,0x1c9b0a0e^_0x6a73e0)),_0x45787f[_0xa02786([0x74,0x68,0x65,0x6e])](()=>new window[(_0xa02786([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x335806=>{const _0x265b79=0x1c9234c5^_0x6a73e0,_0x2db476=_0x3eea4a[_0xa02786([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x34219e(){_0x2db476[_0xa02786([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x265b79&&_0x335806();}_0x34219e(),_0x2db476[_0xa02786([0x6f,0x6e])](_0xa02786([0x61,0x64,0x64]),_0x34219e);})),new window[(_0xa02786([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa5c018=>{function _0x598a86(){for(const _0x2df78e in window)if(window[_0xa02786([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0xa02786([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x2df78e))&&window[_0x2df78e]==_0x5ae981)return _0xa5c018();_0x383e9f[_0xa02786([0x73,0x74,0x61,0x74,0x65])]!=_0xa02786([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0xa02786([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x598a86,0x1c92274a^_0x6a73e0);}_0x2a415d(_0xa02786([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x598a86();})];return window[_0xa02786([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xa02786([0x72,0x61,0x63,0x65])](_0x52943f)[_0xa02786([0x74,0x68,0x65,0x6e])](()=>_0x180a16);}async function _0x28938d(){if(await _0x45787f,_0x2a415d(_0xa02786([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x1b5380=_0x3eea4a[_0xa02786([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x4920e0=_0x3eea4a[_0xa02786([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])](_0x1b5380[_0xa02786([0x69,0x64])]),_0x132dbf=_0x389cfd(_0xa02786([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x132dbf[_0xa02786([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x1b5380['id'],_0x4920e0?_0x4920e0['id']:null,!0x0),_0x132dbf[_0xa02786([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xa02786([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x132dbf[_0xa02786([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x132dbf[_0xa02786([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x13e7dd,void(_0x132dbf[_0xa02786([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x13e7dd);}if(_0x2a415d(_0xa02786([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x2abe71=_0x389cfd(_0xa02786([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x2abe71[_0xa02786([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xa02786([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2abe71[_0xa02786([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2abe71[_0xa02786([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x13e7dd,_0x2abe71[_0xa02786([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x13e7dd;}_0x383e9f[_0xa02786([0x6d,0x6f,0x64,0x65,0x6c])][_0xa02786([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x13e7dd,_0x383e9f[_0xa02786([0x6d,0x6f,0x64,0x65,0x6c])][_0xa02786([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x13e7dd,_0x383e9f[_0xa02786([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xa02786([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2127b3(){return _0x2a415d(_0xa02786([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x389cfd(_0xa02786([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xa02786([0x73,0x74,0x61,0x74,0x65])]==_0xa02786([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x22959f(){return _0x2a415d(_0xa02786([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 _0x47201c(){return _0x2a415d(_0xa02786([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xa07b0(_0x12974f){const _0x3fccad=_0xf1dfe0();_0x383e9f[_0x3fccad]=_0xa02786([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])+_0x12974f,_0x12974f[_0xa02786([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0xa02786([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0xf1dfe0()]=_0x5ae981),_0x12974f!=_0xa02786([0x56,0x61,0x6c,0x69,0x64])&&_0x28938d();}function _0xf1dfe0(){const _0x38e711=window[_0xa02786([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xa02786([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xa02786([0x6e,0x6f,0x77])]())[_0xa02786([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xa02786([0x2e]),'');let _0x1b0b99=_0xa02786([0x52]);for(let _0x223c6e=0x0;_0x223c6e<_0x38e711[_0xa02786([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x223c6e+=0x2){let _0x78b4da=window[_0xa02786([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38e711[_0xa02786([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x223c6e,_0x223c6e+0x2));_0x78b4da>=_0x5c5ef6[_0xa02786([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x78b4da-=_0x5c5ef6[_0xa02786([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1b0b99+=_0x5c5ef6[_0x78b4da];}return _0x1b0b99;}function _0x36c935(){const _0x2b7b1b=_0x10e16b[_0xa02786([0x73,0x70,0x6c,0x69,0x74])](_0xa02786([0x2e]));if(0x3!=_0x2b7b1b[_0xa02786([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xac36b1(_0x2b7b1b[0x1]);function _0xac36b1(_0x3c0494){const _0x36c0bc=_0x36219c(_0x3c0494);return _0x36c0bc&&_0x38fa3e()?_0x36c0bc:null;function _0x38fa3e(){const _0x4e4ba6=_0x36c0bc[_0xa02786([0x6a,0x74,0x69])],_0x13dcd5=window[_0xa02786([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e4ba6[_0xa02786([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4e4ba6[_0xa02786([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x20ba36={..._0x36c0bc,[_0xa02786([0x6a,0x74,0x69])]:_0x4e4ba6[_0xa02786([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4e4ba6[_0xa02786([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x20ba36[_0xa02786([0x76,0x63])],_0x7734c2(_0x20ba36)==_0x13dcd5;}}}async function _0x576e38(){let _0x533ef3=!0x0;try{const _0x29a2b6=_0x10e16b[_0xa02786([0x73,0x70,0x6c,0x69,0x74])](_0xa02786([0x2e])),[_0x53df8b,_0x226974,_0x53b44b]=_0x29a2b6;return _0x37f30e(_0x53df8b),await _0x42cccc(_0x53df8b,_0x226974,_0x53b44b),_0x533ef3;}catch(_0x561a7d){return!0x1;}function _0x37f30e(_0x282c1d){const _0x38a89e=_0x36219c(_0x282c1d);_0x38a89e&&_0x38a89e[_0xa02786([0x61,0x6c,0x67])]==_0xa02786([0x45,0x53,0x32,0x35,0x36])||(_0x533ef3=!0x1);}async function _0x42cccc(_0x7c4482,_0x5dd74b,_0x43b510){const _0x42b28d=window[_0xa02786([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xa02786([0x66,0x72,0x6f,0x6d])](_0x27c690(_0x43b510),_0x4a9a3b=>_0x4a9a3b[_0xa02786([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3a8030=new window[(_0xa02786([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xa02786([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x7c4482+_0xa02786([0x2e])+_0x5dd74b),_0x206d55=window[_0xa02786([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xa02786([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x206d55)return;const _0xd87c1e=await _0x206d55[_0xa02786([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xa02786([0x6a,0x77,0x6b]),_0x58931c,{[_0xa02786([0x6e,0x61,0x6d,0x65])]:_0xa02786([0x45,0x43,0x44,0x53,0x41]),[_0xa02786([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xa02786([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xa02786([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x206d55[_0xa02786([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xa02786([0x6e,0x61,0x6d,0x65])]:_0xa02786([0x45,0x43,0x44,0x53,0x41]),[_0xa02786([0x68,0x61,0x73,0x68])]:{[_0xa02786([0x6e,0x61,0x6d,0x65])]:_0xa02786([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xd87c1e,_0x42b28d,_0x3a8030)||(_0x533ef3=!0x1);}}function _0x36219c(_0x2eb5d4){return _0x2eb5d4[_0xa02786([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xa02786([0x65,0x79]))?JSON[_0xa02786([0x70,0x61,0x72,0x73,0x65])](_0x27c690(_0x2eb5d4)):null;}function _0x27c690(_0x503e08){return window[_0xa02786([0x61,0x74,0x6f,0x62])](_0x503e08[_0xa02786([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xa02786([0x2b]))[_0xa02786([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xa02786([0x2f])));}function _0x7734c2(_0x2f6c1e){let _0x131bb4=0x1505;function _0x5c623a(_0x8b29a0){for(let _0x4e7a57=0x0;_0x4e7a57<_0x8b29a0[_0xa02786([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4e7a57++){const _0x5bbf73=_0x8b29a0[_0xa02786([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4e7a57);_0x131bb4=(_0x131bb4<<0x5)+_0x131bb4+_0x5bbf73,_0x131bb4&=_0x131bb4;}}function _0x4a8401(_0x251294){Array[_0xa02786([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x251294)?_0x251294[_0xa02786([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4a8401):_0x251294&&typeof _0x251294==_0xa02786([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xa02786([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x251294)[_0xa02786([0x73,0x6f,0x72,0x74])]()[_0xa02786([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x346afc,_0x272069])=>{_0x5c623a(_0x346afc),_0x4a8401(_0x272069);}):_0x5c623a(window[_0xa02786([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x251294));}return _0x4a8401(_0x2f6c1e),_0x131bb4>>>0x0;}function _0x389a35(_0x3ad44c){return _0x3ad44c[_0xa02786([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xa02786([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xa02786([0x30]));}function _0x3f52e9(_0x43f53b){return _0x43f53b[_0xa02786([0x73,0x70,0x6c,0x69,0x74])]('')[_0xa02786([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xa02786([0x6a,0x6f,0x69,0x6e])]('');}function _0x2a415d(_0x5c36bb){return _0x383e9f[_0xa02786([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xa02786([0x68,0x61,0x73])](_0x5c36bb);}function _0x389cfd(_0x196b40){return _0x383e9f[_0xa02786([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xa02786([0x67,0x65,0x74])](_0x196b40);}function _0x13e7dd(){}function _0xa02786(_0x2b55a7){return _0x2b55a7['map'](_0x16f413=>String['fromCharCode'](_0x16f413))['join']('');}_0xa07b0(await _0x48f53e());}(this);}['createRevision'](_0x169e61){const _0x17fd73=this['editor']['plugins']['get']('Users');return new a({'id':_0x169e61['id'],'name':_0x169e61['name'],'creator':_0x169e61['creatorId']?_0x17fd73['getUser'](_0x169e61['creatorId']):null,'diffData':_0x169e61['diffData']||_0x169e61['data'],'authors':_0x169e61['authorsIds']['map'](_0x1bd6a7=>_0x17fd73['getUser'](_0x1bd6a7)),'createdAt':new Date(_0x169e61['createdAt']),'attributes':_0x169e61['attributes'],'fromVersion':_0x169e61['fromVersion'],'toVersion':_0x169e61['toVersion']});}['addRevision'](_0x31494b,_0x488ea3=0x0){this['_revisions']['add'](_0x31494b,_0x488ea3);}['getRevision'](_0x1726c9){return this['_revisions']['get'](_0x1726c9);}['getRevisions'](_0x34b3b7={'toJSON':!0x1}){const _0xc42f6a=Array['from'](this['_revisions']);return _0xc42f6a['reverse'](),_0x34b3b7['toJSON']?_0xc42f6a['map'](_0x30e79d=>_0x30e79d['toJSON']()):_0xc42f6a;}['getIndex'](_0xb3c1c2){return this['_revisions']['getIndex'](_0xb3c1c2);}['getEarlierVisibleRevision'](_0x5cf87e){const [,_0x14fcab]=this['getRevisionsIterator'](_0x5cf87e,{'direction':'earlier'});return _0x14fcab;}['getLaterVisibleRevision'](_0xa4b5c3){const [,_0x1eb509]=this['getRevisionsIterator'](_0xa4b5c3,{'direction':'later'});return _0x1eb509;}['getRevisionsInDiff'](_0x230468){const _0x270e3b=[];for(const _0x3e11b1 of this['getRevisionsIterator'](_0x230468['newRevisionId']))if(_0x270e3b['push'](_0x3e11b1),_0x3e11b1['id']===_0x230468['oldRevisionId'])break;return _0x270e3b;}*['getRevisionsIterator'](_0xfa9099,{direction:_0x22abd0='earlier',filter:_0x4289fe=()=>!0x0}={}){const _0x313603='earlier'===_0x22abd0?0x1:-0x1;let _0xf16bca=this['_revisions']['get'](_0xfa9099),_0x2bb590=this['getIndex'](_0xf16bca);for(yield _0xf16bca;_0xf16bca;){if(_0x2bb590+=_0x313603,_0xf16bca=this['getRevision'](_0x2bb590),!_0xf16bca)return;_0x4289fe(_0xf16bca)&&(yield _0xf16bca);}}}function m(_0x191c2b,_0x41a56b,_0x4ccb37){const t=_0x191c2b['t'];switch(_0x41a56b){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'},_0x4ccb37);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x4ccb37);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const P={'c':_0x5d5f8c,'a':_0x16e4b8,'e':_0x1d4908,'r':_0x1a9b91,'u':_0x2f209d};class l extends _0x43da28{['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[_0x23463a,j,_0x16d7d1];}constructor(_0x52c209){super(_0x52c209),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x2a28b6=_0x4f9af2();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2a28b6},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 _0x49d3ba=this['repository']['getRevision'](0x0),_0x29ffa4=_0x49d3ba&&null===_0x49d3ba['creator']?_0x49d3ba:null;if(this['_continueCurrentRevision']=!!_0x29ffa4&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x1f9530=this['_source']['getCurrentRevisionId'](),_0x3bb957=this['repository']['getRevision'](_0x1f9530);if(_0x3bb957)this['_startingVersion']=_0x3bb957['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x12665d=this['_source']['history']['_operations']['find'](_0x23514a=>!_0x23514a['_isInit']),_0x3a0b10=_0x12665d?_0x12665d['baseVersion']:this['_source']['history']['version'];_0x49d3ba?(_0x49d3ba['toVersion']<_0x3a0b10&&_0x49d3ba['_update']({'toVersion':_0x3a0b10}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x29ffa4['id'],this['_startingVersion']=_0x29ffa4['fromVersion']):(this['_startingVersion']=_0x49d3ba['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x3a0b10,this['_continueCurrentRevision']=!0x1);}}else _0x29ffa4&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x29ffa4['toVersion'],this['editor']['model']['document']['history']['version']),_0x29ffa4['fromVersion']===_0x29ffa4['toVersion']?(0x0!==_0x29ffa4['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x29ffa4['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x29ffa4['id'],this['_startingVersion']=_0x29ffa4['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',_0x5f55f0=>!_0x5f55f0),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x58513a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x299cd2;for(const _0x57be5f in _0x58513a){const _0x25b49e=_0x57be5f,_0x35a988=_0x58513a[_0x25b49e];if('revisionHistoryLicenseKeyValid'==_0x35a988||'revisionHistoryLicenseKeyInvalid'==_0x35a988||'revisionHistoryLicenseKeyExpired'==_0x35a988||'revisionHistoryLicenseKeyDomainLimit'==_0x35a988||'revisionHistoryLicenseKeyNotAllowed'==_0x35a988||'revisionHistoryLicenseKeyEvaluationLimit'==_0x35a988||'revisionHistoryLicenseKeyTrialLimit'==_0x35a988||'revisionHistoryLicenseKeyUsageLimit'==_0x35a988){delete _0x58513a[_0x25b49e],_0x299cd2=_0x35a988,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x299cd2&&_0x58513a['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x299cd2&&_0x58513a['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x299cd2&&_0x58513a['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x299cd2&&_0x58513a['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x299cd2&&_0x58513a['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x299cd2&&_0x58513a['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x299cd2&&_0x58513a['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x25034f=this['repository']['getRevision'](0x0),_0x4ea1e0=await this['getRevisionDocumentData'](_0x25034f),_0x3f86c8=await this['getRevisionRootsAttributes'](_0x25034f);this['_replaceEditorDataWithRevisionData'](_0x4ea1e0,_0x3f86c8);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x2d7b2c){this['_source']=_0x2d7b2c;}async['update'](){const _0x3d3071=await this['_source']['getLatestVersion']();if(_0x3d3071>this['currentRevision']['toVersion']){await this['_loadState']();const _0x3803a2=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x3d3071});_0x3803a2['authors']=_0x3803a2['authorsIds']['map'](_0x3cdfdc=>this['editor']['plugins']['get']('Users')['getUser'](_0x3cdfdc)),this['currentRevision']['_update'](_0x3803a2);}}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'](_0x149537={},_0x448714=null){const _0x42b090=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x448714>this['currentRevision']['toVersion']&&(_0x448714=null),null===_0x448714&&(_0x448714=await this['_source']['getLatestVersion']());const _0x24a0f9=this['_getFromVersion'](_0x448714),_0x29c284=this['buildRevisionData']({'from':_0x24a0f9,'to':_0x448714});if(this['currentRevision']['toVersion']<_0x448714){const _0x57e46a=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x448714,'to':_0x448714});_0x57e46a['authors']=[],_0x57e46a['authorsIds']=[],_0x57e46a['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x57e46a,!0x0),delete _0x57e46a['authors'],_0x42b090['push'](_0x57e46a);}_0x149537['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x149537['name']=_0x149537['name']||null,_0x149537['id']=_0x149537['id']||_0x4f9af2(),_0x149537={..._0x149537,..._0x29c284};const _0xd4fa90=this['addRevisionData'](_0x149537);_0x42b090['push'](_0x149537);const _0x4e0d09=this['repository']['getIndex'](_0xd4fa90);if(0x0!==_0x4e0d09){const _0x21e32f=this['repository']['getRevision'](_0x4e0d09-0x1);if(_0x21e32f['fromVersion']!==_0x448714){const _0x3187e9=this['_revisionDataBuilder']['getData'](_0x448714,_0x21e32f['toVersion']),_0x182e6e={'id':_0x21e32f['id'],'diffData':_0x3187e9['diffData'],'authorsIds':_0x3187e9['authorsIds'],'authors':_0x3187e9['authorsIds']['map'](_0x42c807=>this['editor']['plugins']['get']('Users')['getUser'](_0x42c807)),'fromVersion':_0x448714};_0x21e32f===this['currentRevision']&&(_0x182e6e['createdAt']=new Date(_0x149537['createdAt']['getTime']()+0xa)),_0x21e32f['_update'](_0x182e6e,!0x0),delete _0x182e6e['authors'],_0x42b090['push'](_0x182e6e);}}if(this['adapter']){for(const _0xac28d1 of _0x42b090)this['_bufferUpdate'](_0xac28d1['id'],_0xac28d1,!0x0);this['sendBufferedUpdates']();}return _0xd4fa90;}['addRevisionData'](_0x2cec9e){const _0x4f81c1=this['repository']['createRevision'](_0x2cec9e);return this['adapter']&&_0x4f81c1['on']('_update',(_0x9fef52,_0x8f982,_0x1d5111)=>{_0x1d5111||(this['_bufferUpdate'](_0x8f982['id'],_0x8f982,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x4f81c1,this['_findInsertionIndex'](_0x4f81c1)),_0x4f81c1;}async['getRevisionDocumentData'](_0x40df97){await this['_loadRevisionData'](_0x40df97);const _0x29453d={};for(const _0x248194 in _0x40df97['diffData']){if(_0x40df97['diffData'][_0x248194]['attachChange']&&!_0x40df97['diffData'][_0x248194]['attachChange']['isAttached'])continue;const _0x182135=this['_removeRevisionMarkers'](JSON['parse'](_0x40df97['diffData'][_0x248194]['insertions'])),_0x46a0df=this['editor']['editing']['view']['document'],_0x57fffd=new _0x49a981(_0x46a0df,_0x182135['map'](_0x12b752=>C(_0x12b752,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x29453d[_0x248194]=this['editor']['data']['processor']['toData'](_0x57fffd),this['editor']['data']['processor']['useFillerType']('default');}return _0x29453d;}async['getRevisionRootsAttributes'](_0x585e52){await this['_loadRevisionData'](_0x585e52);const _0x522174={};for(const _0x1ae0d6 in _0x585e52['diffData'])_0x585e52['diffData'][_0x1ae0d6]['attachChange']&&!_0x585e52['diffData'][_0x1ae0d6]['attachChange']['isAttached']||(_0x522174[_0x1ae0d6]=_0x585e52['diffData'][_0x1ae0d6]['attributesAfter']||{});return _0x522174;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x2d0ec4=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x37b76b=0x0;_0x37b76b<_0x2d0ec4['length'];_0x37b76b++){const _0x6dfb02=_0x2d0ec4[_0x37b76b];let _0x4fff3c=!0x1;for(const _0x469ebe of Object['keys'](_0x6dfb02))void 0x0===_0x6dfb02[_0x469ebe]?delete _0x6dfb02[_0x469ebe]:'id'!==_0x469ebe&&(_0x4fff3c=!0x0);_0x4fff3c||(_0x2d0ec4[_0x37b76b]=null);}if(_0x2d0ec4=_0x2d0ec4['filter'](_0x287636=>null!==_0x287636),!_0x2d0ec4['length'])return;for(let _0x212403=0x0;_0x212403<_0x2d0ec4['length'];_0x212403++){const _0x4a426e=_0x2d0ec4[_0x212403];void 0x0!==_0x4a426e['fromVersion']&&void 0x0===_0x4a426e['toVersion']&&(_0x4a426e['toVersion']=this['repository']['getRevision'](_0x4a426e['id'])['toVersion']),void 0x0!==_0x4a426e['toVersion']&&void 0x0===_0x4a426e['fromVersion']&&(_0x4a426e['fromVersion']=this['repository']['getRevision'](_0x4a426e['id'])['fromVersion']);}const _0xa5f75c=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x2d0ec4,_0xa5f75c)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x36c33c=>{if(_0x36c33c){for(const _0x539758 of _0x36c33c)this['setRevisionData']({'id':_0x539758['id'],'createdAt':_0x539758['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x3de184,_0x18cbe5){let _0x2ba85c=this['editor']['config']['get']('initialData'),_0x27d034=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2ba85c){_0x2ba85c={};for(const _0x505ea4 of this['editor']['model']['document']['getRootNames']())_0x2ba85c[_0x505ea4]='';}if('string'==typeof _0x2ba85c&&(_0x2ba85c={'main':_0x2ba85c}),void 0x0===_0x27d034){_0x27d034={};for(const _0x889076 of this['editor']['model']['document']['getRootNames']())_0x27d034[_0x889076]={};}let _0x5ed8c5=!0x1;const _0x207006=Object['keys'](_0x2ba85c),_0xd2e133=Object['keys'](_0x3de184);for(const _0x50e5fd of _0x207006){if(_0x2ba85c[_0x50e5fd]!==_0x3de184[_0x50e5fd]&&''!==_0x2ba85c[_0x50e5fd]['trim']()){_0x5ed8c5=!0x0;break;}if(!_0x3c1054(_0x27d034[_0x50e5fd],_0x18cbe5[_0x50e5fd])&&Object['keys'](_0x27d034[_0x50e5fd])['length']>0x0){_0x5ed8c5=!0x0;break;}}_0x5ed8c5||(_0x5ed8c5=_0xd2e133['some'](_0x20bcc8=>!this['editor']['model']['document']['getRoot'](_0x20bcc8))),_0x5ed8c5&&_0x13d2e1('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2ba85c,'editorRootsAttributes':_0x27d034,'revisionData':_0x3de184,'revisionRootsAttributes':_0x18cbe5}),this['editor']['config']['set']('initialData',_0x3de184),this['editor']['config']['set']('rootsAttributes',_0x18cbe5);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x534f1a=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x534f1a['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x2f75cf){const _0x419fcb=this['repository']['getRevisions']();_0x419fcb['reverse']();let _0x5b7f17=0x0;for(;_0x5b7f17<_0x419fcb['length'];){const _0x5ea7fd=_0x419fcb[_0x5b7f17];if(_0x5ea7fd===this['currentRevision']){_0x5b7f17++;continue;}if(_0x5ea7fd['id']===this['_initialRevisionId'])break;const _0x3e7570=_0x2f75cf['toVersion']-_0x5ea7fd['toVersion']||_0x2f75cf['fromVersion']-_0x5ea7fd['fromVersion'];if(_0x3e7570>0x0)break;if(_0x3e7570<0x0)_0x5b7f17++;else{if(!_0x2f75cf['creator']&&_0x5ea7fd['creator'])break;if(_0x5ea7fd['creator']||!_0x2f75cf['creator']){if(_0x2f75cf['createdAt']>_0x5ea7fd['createdAt'])break;_0x5b7f17++;}else _0x5b7f17++;}}return _0x5b7f17;}['setRevisionData'](_0x29b603){const _0x45c2ab=this['repository']['getRevision'](_0x29b603['id']);if(_0x29b603['createdAt']&&(_0x29b603['createdAt']=new Date(_0x29b603['createdAt'])),_0x29b603['authorsIds']){const _0x1a8940=this['editor']['plugins']['get']('Users');_0x29b603['authors']=_0x29b603['authorsIds']['map'](_0x218e4f=>_0x1a8940['getUser'](_0x218e4f));}_0x45c2ab['_update'](_0x29b603,!0x0);}['buildRevisionData']({revision:_0x19668d=null,from:_0x5f1e71=null,to:_0x7ef145=null}){_0x5f1e71=null!==_0x5f1e71?_0x5f1e71:_0x19668d['fromVersion'],_0x7ef145=null!==_0x7ef145?_0x7ef145:_0x19668d['toVersion'];const _0x5303a4=this['_revisionDataBuilder']['getData'](_0x5f1e71,_0x7ef145),_0x143773={'diffData':_0x5303a4['diffData'],'authorsIds':_0x5303a4['authorsIds'],'fromVersion':_0x5f1e71,'toVersion':_0x7ef145};if(!_0x19668d||_0x7ef145!==_0x19668d['toVersion']){const _0x5595ce=_0x7ef145-0x1,_0x547ec5=this['_source']['history']['getOperation'](_0x5595ce);_0x143773['createdAt']=_0x547ec5&&_0x547ec5['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5f1e71===this['_loadedStateData']['fromVersion']){for(const _0x13a80a of this['_loadedStateData']['authors'])_0x143773['authorsIds']['includes'](_0x13a80a['id'])||_0x143773['authorsIds']['push'](_0x13a80a['id']);}return _0x143773;}['_loadRevisionData'](_0x4e7176){if(!_0x4e7176||_0x4e7176['diffData'])return Promise['resolve']();{const _0x12ff2f=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x12ff2f,'revisionId':_0x4e7176['id']})['then'](_0x1f095f=>{_0x4e7176['diffData']=_0x1f095f['diffData'];});}}['_bufferUpdate'](_0x55b605,_0xbbbb16,_0x5ca42e){if(this['_bufferedUpdates']['has'](_0x55b605)){const _0x580ae4=this['_bufferedUpdates']['get'](_0x55b605);_0xbbbb16=_0x5ca42e?{..._0x580ae4,..._0xbbbb16}:{..._0xbbbb16,..._0x580ae4};}this['_bufferedUpdates']['set'](_0x55b605,_0xbbbb16);}['_getFromVersion'](_0x439904){const _0x6bd6a7=this['repository']['getRevisions']();_0x6bd6a7['reverse'](),_0x6bd6a7['shift']();const _0x36365e=_0x6bd6a7['find'](_0x5916ea=>_0x5916ea['toVersion']<=_0x439904)['toVersion'];return _0x36365e<this['_startingVersion']?this['_startingVersion']:_0x36365e;}['_createInitialRevision'](_0x481ba2){const _0x541471=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x541471)this['_initialRevisionId']=_0x541471['id'];else{const _0x1ab675=!this['editor']['model']['document']['roots']['find'](_0x231645=>this['editor']['model']['hasContent'](_0x231645)),_0x2ba3f8=this['editor']['plugins']['get']('Users')['me']['id'],_0x3d4fd5=m(this['editor']['locale'],_0x1ab675?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x481ba2,'to':_0x481ba2,'id':this['_initialRevisionId'],'name':_0x3d4fd5,'creatorId':_0x2ba3f8});}}['_createCurrentRevision'](_0x990004){const _0x5d22db=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5d22db),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x990004,'to':_0x990004,'id':_0x5d22db,'name':'','creatorId':null}));}['_makeRevision']({name:_0x4e3bb2,from:_0x19de54,to:_0x587b83,creatorId:_0x445550,id:_0x4b64ea}){const _0x5b9cec=this['buildRevisionData']({'from':_0x19de54,'to':_0x587b83});_0x5b9cec['name']=_0x4e3bb2,_0x5b9cec['creatorId']=_0x445550,_0x5b9cec['id']=_0x4b64ea;const _0x309601=this['addRevisionData'](_0x5b9cec);return this['adapter']&&this['_bufferUpdate'](_0x5b9cec['id'],_0x5b9cec,!0x0),_0x309601;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0xd5c0f4){return(_0xd5c0f4=_0xd5c0f4['filter'](_0x22c619=>!_0x22c619['name']||'revision-start'!==_0x22c619['name']&&'revision-end'!==_0x22c619['name']))['forEach'](_0x134982=>{'string'!=typeof _0x134982&&(_0x134982['children']=this['_removeRevisionMarkers'](_0x134982['children']),_0x134982['attributes']=_0x134982['attributes']['filter'](_0x2e6c37=>!_0x2e6c37[0x0]['startsWith']('data-revision-')));}),_0xd5c0f4;}}function C(_0x3036fd,_0x49cddb){const _0x2ca4ce=_0x49cddb['editing']['view']['document'];if('string'==typeof _0x3036fd)return new _0x1b3fed(_0x2ca4ce,_0x3036fd);{const _0x265f7d=_0x3036fd['children']['map'](_0x544127=>C(_0x544127,_0x49cddb));return new(P[_0x3036fd['type']]||_0x373d7e)(_0x2ca4ce,_0x3036fd['name'],_0x3036fd['attributes'],_0x265f7d);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x58f4c5){this['editor']=_0x58f4c5,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'](_0x5be302){this['source']=_0x5be302;const _0x49097a=new Map(),_0x24bd9d=new Map(),_0x23b4ef=this['editor']['model']['document']['roots']['map'](_0xfad8b3=>_0xfad8b3['rootName']);for(const _0xb68421 of _0x23b4ef){const _0x1d41b0=this['editor']['model']['document']['getRoot'](_0xb68421),_0x251a85=T(_0x1d41b0);_0x49097a['set'](_0xb68421,_0x251a85),_0x24bd9d['set'](_0xb68421,Object['fromEntries'](_0x1d41b0['getAttributes']()));}const _0x33cc6b=Array['from'](this['editor']['model']['markers'])['map'](_0x570931=>[_0x570931['name'],_0x570931['getRange']()]),_0x151378=this['source']['version'];this['_saveMetaData'](_0x151378,_0x49097a,_0x33cc6b,_0x24bd9d),this['_startingRevisionId']=this['_revisionId'];const _0x5b13c8=new Map(),_0xb9e5bd=new Map();for(const _0x5d104a of _0x23b4ef){const _0x711d61=F(_0x5d104a);_0x5b13c8['set'](_0x5d104a,_0x711d61),_0xb9e5bd['set'](_0x5d104a,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x5b13c8,[],_0xb9e5bd);}['getData'](_0x4a6550,_0x2b6395){if(this['_lastFrom']===_0x4a6550&&this['_lastTo']<=_0x2b6395)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x2b6395,!0x0);else{if(!this['_savedMetaData']['has'](_0x4a6550)){const _0x406bbe=this['_getPreviousFrom'](_0x4a6550);this['_calculateMetaData'](_0x406bbe,_0x4a6550,!0x1);}this['_calculateMetaData'](_0x4a6550,_0x2b6395,!0x0);}return this['_lastFrom']=_0x4a6550,this['_lastTo']=_0x2b6395,this['_getState']();}['loadState'](_0x1bf6e4){this['_reset'](),this['_lastFrom']=_0x1bf6e4['fromVersion'],this['_lastTo']=_0x1bf6e4['toVersion'];for(const _0xfaa4a in _0x1bf6e4['diffData']){const _0x32c141=_0x1bf6e4['diffData'][_0xfaa4a]['attachChange'],_0x3757dd=_0x456193(_0x1bf6e4['diffData'][_0xfaa4a]['attributesBefore'])||{},_0x1f39b8=this['_makeModelFromViewString'](_0x1bf6e4['diffData'][_0xfaa4a]['deletions']);_0x1f39b8['rootName']=_0xfaa4a,_0x1f39b8['_isAttached']=!_0x32c141||!_0x32c141['isAttached'],_0x1f39b8['isAttached']=()=>_0x1f39b8['_isAttached'],this['_baseRoots']['set'](_0xfaa4a,_0x1f39b8),this['_baseRootsAttributes']['set'](_0xfaa4a,_0x3757dd),_0x32c141&&this['_touchedRoots']['set'](_0xfaa4a,_0x32c141);const _0xed15aa=this['_makeIdsRoot'](_0x1f39b8);this['_baseIdsRoots']['set'](_0xfaa4a,_0xed15aa);for(const [_0x5dbc59,_0x562ef2]of _0x1f39b8['markers']){if(!_0x5dbc59['startsWith']('revision:'))continue;const _0x176d58=_0x5dbc59['split'](':')[0x2];for(const _0x462502 of _0x562ef2['getWalker']({'singleCharacters':!0x0})){const _0x511db8=this['_getVidAttributeName'](_0x462502),_0x1005ef='elementEnd'==_0x462502['type']?_0x462502['previousPosition']['path']['slice'](0x0,-0x1):_0x462502['previousPosition']['path'],_0x3b201f=_0xed15aa['getNodeByPath'](_0x1005ef)['getAttribute'](_0x511db8);this['_touched']['set'](_0x3b201f,{'userId':_0x176d58});}}}this['_startingRevisionId']=this['_revisionId'];const _0x3cad93=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x38659a=>!this['_touched']['has'](_0x38659a));let _0x537792=0x0;const _0x1fed9b=new Map();for(const _0xc126da in _0x1bf6e4['diffData']){const _0x38555f=_0x1bf6e4['diffData'][_0xc126da]['attachChange'],_0xdfaf69=_0x456193(_0x1bf6e4['diffData'][_0xc126da]['attributesAfter'])||{},_0x3d4261=this['_makeModelFromViewString'](_0x1bf6e4['diffData'][_0xc126da]['insertions']);_0x3d4261['rootName']=_0xc126da,_0x3d4261['_isAttached']=!_0x38555f||_0x38555f['isAttached'],_0x3d4261['isAttached']=()=>_0x3d4261['_isAttached'],this['_diffRoots']['set'](_0xc126da,_0x3d4261),this['_diffRootsAttributes']['set'](_0xc126da,_0xdfaf69);const _0x1a92c2=this['_makeIdsRoot'](_0x3d4261,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0xc126da,_0x1a92c2),_0x1fed9b['set'](_0xc126da,_0x3d4261['isAttached']()?_0xdfaf69:{});for(const [_0x155d75,_0x4d2623]of _0x3d4261['markers']){if(!_0x155d75['startsWith']('revision:'))continue;const _0x4e3153=_0x155d75['split'](':')[0x2];for(const _0x345b93 of _0x4d2623['getWalker']({'singleCharacters':!0x0})){const _0x1adc2b=this['_getVidAttributeName'](_0x345b93),_0x10660e=this['_revisionId']++,_0x10d22c='elementEnd'==_0x345b93['type']?_0x345b93['previousPosition']['path']['slice'](0x0,-0x1):_0x345b93['previousPosition']['path'];_0x1a92c2['getNodeByPath'](_0x10d22c)['_setAttribute'](_0x1adc2b,_0x10660e),this['_touched']['set'](_0x10660e,{'userId':_0x4e3153});}}for(const _0x53deeb of this['editor']['model']['createRangeIn'](_0x3d4261)['getWalker']({'singleCharacters':!0x0})){const _0x2860d1=this['_getVidAttributeName'](_0x53deeb),_0x402b98='elementEnd'==_0x53deeb['type']?_0x53deeb['previousPosition']['path']['slice'](0x0,-0x1):_0x53deeb['previousPosition']['path'],_0x39a0de=_0x1a92c2['getNodeByPath'](_0x402b98);_0x39a0de['getAttribute'](_0x2860d1)>0x0||_0x39a0de['_setAttribute'](_0x2860d1,_0x3cad93[_0x537792++]);}for(const [_0x65381d,_0x345f0a]of _0x3d4261['markers'])_0x65381d['startsWith']('revision:')||this['_markers']['set'](_0x65381d,_0x345f0a);}const _0xa3fa4e=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0xa3fa4e),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xa3fa4e,0x1));const _0x24f6fc=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x24f6fc),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x24f6fc,0x1));const _0x38cc0b=Array['from'](this['_diffRoots'])['map'](([_0x3d1c14,_0x41b1ef])=>[_0x3d1c14,T(_0x41b1ef)]);this['_saveMetaData'](this['_lastTo'],_0x38cc0b,this['_markers'],_0x1fed9b);}['_makeModelFromViewString'](_0x25a953){const _0x1a1391=JSON['parse'](_0x25a953),_0xa999c9=this['editor']['editing']['view']['document'],_0x195de1=new _0x49a981(_0xa999c9,_0x1a1391['map'](_0xf74197=>C(_0xf74197,this['editor'])));return this['editor']['data']['toModel'](_0x195de1);}['_saveMetaData'](_0x3230ae,_0x2b291d,_0x37788d,_0x44e1a){const _0x20195e=new Map(_0x2b291d),_0x4ccde0=new Map(_0x456193(_0x44e1a)),_0x37486b=new Map();for(const [_0x21a21d,_0x4894b3]of _0x37788d)_0x37486b['set'](_0x21a21d,{'start':_0x4894b3['start']['clone'](),'end':_0x4894b3['end']['clone'](),'rootName':_0x4894b3['root']['rootName']});this['_savedMetaData']['set'](_0x3230ae,{'roots':_0x20195e,'markers':_0x37486b,'rootsAttributes':_0x4ccde0});}['_removeMetaData'](_0x5385c7){this['_savedMetaData']['delete'](_0x5385c7);}['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'](_0x50aa86,_0x1b0e7d=null){let _0x284fdd=null;_0x50aa86['is']('documentFragment')||(_0x284fdd=new ft(_0x50aa86['name'],{'vid_start':null===_0x1b0e7d?this['_revisionId']++:_0x1b0e7d++}));const _0x589055=[];for(const _0x14aa79 of _0x50aa86['getChildren']())if(_0x14aa79['is']('element')){_0x589055['push'](this['_makeIdsRoot'](_0x14aa79,_0x1b0e7d));const _0x4a57b5=_0x589055[_0x589055['length']-0x1];null!==_0x1b0e7d&&(_0x1b0e7d=_0x4a57b5['is']('element','$text')?_0x4a57b5['getAttribute']('vid')+0x1:_0x4a57b5['getAttribute']('vid_end')+0x1);}else{for(let _0x34308c=0x0;_0x34308c<_0x14aa79['offsetSize'];_0x34308c++)_0x589055['push'](new ft('$text',{'vid':null===_0x1b0e7d?this['_revisionId']++:_0x1b0e7d++}));}if(_0x50aa86['is']('documentFragment')){const _0x1fbcfb=F(_0x50aa86['rootName']);return _0x1fbcfb['_insertChild'](0x0,_0x589055),_0x1fbcfb;}return _0x284fdd['_setAttribute']('vid_end',null===_0x1b0e7d?this['_revisionId']++:_0x1b0e7d++),_0x284fdd['_insertChild'](0x0,_0x589055),_0x284fdd;}['_calculateMetaData'](_0x54fb2e,_0x112a57,_0x18e542){this['_reset']();const {roots:_0x126ee1,markers:_0xc6d3ea,rootsAttributes:_0x217245}=this['_savedMetaData']['get'](_0x54fb2e);this['_baseRoots']=new Map(_0x126ee1),this['_baseRootsAttributes']=new Map(_0x456193(_0x217245));for(const [_0x5b3e5c,_0x5187c9]of this['_baseRoots'])if('$graveyard'!==_0x5b3e5c&&(this['_diffRoots']['set'](_0x5b3e5c,T(_0x5187c9)),this['_diffRootsAttributes']=new Map(_0x456193(_0x217245)),_0x18e542)){const _0x4e1239=this['_revisionId'];this['_idsRoots']['set'](_0x5b3e5c,this['_makeIdsRoot'](_0x5187c9)),this['_baseIdsRoots']['set'](_0x5b3e5c,this['_makeIdsRoot'](_0x5187c9,_0x4e1239));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x18e542&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x3bfd41,_0x4eaca1]of _0xc6d3ea){const _0x45a77e=this['_baseRoots']['get'](_0x4eaca1['rootName']),_0x270726=this['_diffRoots']['get'](_0x4eaca1['rootName']),_0x152d22=new vt(this['_fixPosition'](_0x4eaca1['start'],_0x45a77e),this['_fixPosition'](_0x4eaca1['end'],_0x45a77e)),_0x54ebf0=this['_fixRange'](_0x152d22,_0x270726);_0x45a77e['markers']['set'](_0x3bfd41,_0x152d22),this['_markers']['set'](_0x3bfd41,_0x54ebf0);}this['_applyOperations'](_0x54fb2e,_0x112a57,_0x18e542);}['_applyOperations'](_0x23407e,_0x3be804,_0x1e22b7){for(const _0x84f096 of this['source']['getOperations'](_0x23407e,_0x3be804))this['_handleOperation'](_0x84f096,_0x1e22b7);for(const _0x5bd66b of this['_diffRoots']['values']())_0x5bd66b['markers']['clear']();for(const [_0x250bc4,_0x29ed87]of this['_markers']){this['_diffRoots']['get'](_0x29ed87['root']['rootName'])['markers']['set'](_0x250bc4,_0x29ed87['clone']());}const _0x9c692f=new Map(),_0x28f800=new Map();for(const [_0x2bee05,_0x4c5acb]of this['_diffRoots'])_0x9c692f['set'](_0x2bee05,T(_0x4c5acb)),_0x28f800['set'](_0x2bee05,this['_diffRootsAttributes']['get'](_0x2bee05));this['_saveMetaData'](_0x3be804,_0x9c692f,this['_markers'],_0x28f800);}['_getPreviousFrom'](_0xaeb598){const _0xf416a4=Array['from'](this['_savedMetaData']['keys']());_0xf416a4['sort']((_0x49ca0e,_0x5ba6f0)=>_0x49ca0e-_0x5ba6f0),_0xf416a4['reverse']();for(const _0x3d161a of _0xf416a4)if(_0x3d161a<_0xaeb598)return _0x3d161a;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x54bf61,_0x42c59b){const _0x47b3fe=Array['from'](_0x42c59b['markers'])['map'](([_0x33e587,_0x38088a])=>[_0x33e587,this['_fixRange'](_0x38088a,_0x54bf61)]);_0x54bf61['markers']=new Map(_0x47b3fe);}['_transformMarkers'](_0x1b6e64){for(const _0x2c9500 of this['_markers']['values']()){const _0x42b3e4=_0x2c9500['getTransformedByOperation'](_0x1b6e64),_0xd1fa90=vt['_createFromRanges'](_0x42b3e4);_0x2c9500['start']=_0xd1fa90['start'],_0x2c9500['end']=_0xd1fa90['end'];}}['_handleOperation'](_0x2b9184,_0xfacf7b){if('addRoot'!=_0x2b9184['type']&&'detachRoot'!=_0x2b9184['type']){if('insert'==_0x2b9184['type']){const _0x57b8ea=_0x2b9184['position']['root']['rootName'];this['_diffRoots']['has'](_0x57b8ea)||(this['_diffRoots']['set'](_0x57b8ea,F(_0x57b8ea,!0x0)),this['_diffRootsAttributes']['set'](_0x57b8ea,{}),_0xfacf7b&&this['_idsRoots']['set'](_0x57b8ea,F(_0x57b8ea,!0x0)));}else{if('addRootAttribute'==_0x2b9184['type']||'removeRootAttribute'==_0x2b9184['type']||'changeRootAttribute'==_0x2b9184['type'])return void this['_handleRootAttributeOperation'](_0x2b9184);'marker'==_0x2b9184['type']&&this['_handleMarkerOperation'](_0x2b9184);}if('marker'!==_0x2b9184['type']){const _0x2f33d1=this['_cloneOperation'](_0x2b9184,this['_diffRoots']);_0x2f33d1['_execute'](),this['_transformMarkers'](_0x2f33d1);}if(_0xfacf7b)switch(_0x2b9184['type']){case'insert':this['_handleInsertOperation'](_0x2b9184);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x2b9184);break;case'merge':this['_handleMergeOperation'](_0x2b9184);break;case'split':this['_handleSplitOperation'](_0x2b9184);}}else this['_handleRootOperation'](_0x2b9184,_0xfacf7b);}['_cloneOperation'](_0x1363c4,_0x515808){const _0x3d845f=_0x1363c4['clone']();return _0x3d845f['_authorId']=_0x1363c4['_authorId'],this['_fixOperation'](_0x3d845f,_0x515808),_0x3d845f;}['_getBaseVids'](_0x542aa0){return _0x542aa0['map'](_0x2daf3e=>{const _0xccbcda=this['_getVidAttributeName'](_0x2daf3e);return Number(_0x2daf3e['item']['getAttribute'](_0xccbcda));});}['_generateTape'](_0x5291e1,_0x477779){if(_0x5291e1['is']('element','$text'))_0x477779['push']({'item':_0x5291e1,'type':'text'});else{_0x5291e1['is']('element')&&_0x477779['push']({'item':_0x5291e1,'type':'elementStart'});for(const _0x1d1505 of _0x5291e1['getChildren']())this['_generateTape'](_0x1d1505,_0x477779);_0x5291e1['is']('element')&&_0x477779['push']({'item':_0x5291e1,'type':'elementEnd'});}return _0x477779;}['_getState'](){const _0x73c819=new Map(this['_touched']),_0xc7943c=new Map(_0x73c819),_0x7f665=new Map(),_0x13ca3c={'insertions':{},'deletions':{}},_0x4aa093={'insertions':{},'deletions':{}},_0x3cce9a=new Map(),_0x44330b=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x44330b['delete']('$graveyard');for(const _0x41ff89 of _0x44330b){const _0x49e4b4=this['_diffRoots']['get'](_0x41ff89)||F(_0x41ff89,!0x1),_0x302da5=this['_baseRoots']['get'](_0x41ff89)||F(_0x41ff89,!0x1);_0x49e4b4['isAttached']()||_0x302da5['isAttached']()?(_0x13ca3c['insertions'][_0x41ff89]=T(_0x49e4b4),_0x13ca3c['deletions'][_0x41ff89]=T(_0x302da5),this['_copyMarkers'](_0x13ca3c['deletions'][_0x41ff89],_0x302da5),this['_copyMarkers'](_0x13ca3c['insertions'][_0x41ff89],_0x49e4b4),_0x4aa093['insertions'][_0x41ff89]=this['_generateTape'](this['_idsRoots']['get'](_0x41ff89),[]),_0x4aa093['deletions'][_0x41ff89]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x41ff89)||F(_0x41ff89,!0x1),[])):_0x44330b['delete'](_0x41ff89);}for(const _0x474b72 of _0x44330b){const _0x2e6363=_0x4aa093['insertions'][_0x474b72];for(const _0x436018 of _0x2e6363){const _0x5ebe39=this['_getVidAttributeName'](_0x436018),_0x2cb50c=_0x436018['item']['getAttribute'](_0x5ebe39);_0xc7943c['delete'](_0x2cb50c),_0x2cb50c>=this['_startingRevisionId']&&_0x7f665['set'](_0x2cb50c,_0x73c819['get'](_0x2cb50c));}}for(const _0x6fddba of _0x44330b){const _0x5e1a0c=_0x4aa093['insertions'][_0x6fddba],_0x3f0303=this['_getBaseVids'](_0x4aa093['deletions'][_0x6fddba]);let _0x89653d=0x0;for(const _0x5572c2 of _0x5e1a0c){const _0x7c5f06=this['_getVidAttributeName'](_0x5572c2),_0x90034e=_0x5572c2['item']['getAttribute'](_0x7c5f06);if(!_0x7f665['has'](_0x90034e)&&!_0x3cce9a['has'](_0x90034e)){if(_0xc7943c['has'](_0x90034e))_0x89653d++;else{if(_0x90034e!=_0x3f0303[_0x89653d]){const _0x45af14=_0x73c819['get'](_0x90034e)||_0x73c819['get'](_0x3f0303[_0x89653d]);for(;_0x90034e!=_0x3f0303[_0x89653d];)_0xc7943c['has'](_0x3f0303[_0x89653d])||(_0x3cce9a['set'](_0x3f0303[_0x89653d],_0x45af14),_0x73c819['set'](_0x3f0303[_0x89653d],_0x45af14)),_0x89653d++;}_0x89653d++;}}}}for(const _0x381d74 of _0x44330b){const _0x37afe4=_0x4aa093['insertions'][_0x381d74];for(const _0xf02565 of _0x37afe4){const _0x49c090=this['_getVidAttributeName'](_0xf02565),_0x33b6fc=_0xf02565['item']['getAttribute'](_0x49c090);if(_0x3cce9a['has'](_0x33b6fc)){const _0x59df8d=_0x3cce9a['get'](_0x33b6fc);_0xc7943c['has'](_0x33b6fc)||_0xc7943c['set'](_0x33b6fc,{..._0x59df8d}),_0x7f665['set'](_0x33b6fc,{..._0x59df8d});}}}for(const _0x1f6d2b of _0xc7943c['keys']())_0x1f6d2b>=this['_startingRevisionId']&&_0xc7943c['delete'](_0x1f6d2b);const _0x58e244=new Map();for(const _0x2beea9 of _0x44330b){let _0xb1e007=_0x4aa093['insertions'][_0x2beea9];for(const _0x55bedd of _0xb1e007)if(_0x55bedd['item']['is']('element','tableCell')){const _0x4aad83=this['_getVidAttributeName'](_0x55bedd),_0x58342b=_0x55bedd['item']['getAttribute'](_0x4aad83);if(_0x7f665['has'](_0x58342b)){const _0x474dde=_0x55bedd['item']['parent']['parent']['getAttribute']('vid_start'),_0x5d49c5=_0x58e244['get'](_0x474dde)||new Set();_0x5d49c5['add'](_0x7f665['get'](_0x58342b)['userId']),_0x58e244['set'](_0x474dde,_0x5d49c5);}}_0xb1e007=_0x4aa093['deletions'][_0x2beea9];for(const _0x3f69ec of _0xb1e007)if(_0x3f69ec['item']['is']('element','tableCell')){const _0x31e6d9=this['_getVidAttributeName'](_0x3f69ec),_0x29b048=_0x3f69ec['item']['getAttribute'](_0x31e6d9);if(_0xc7943c['has'](_0x29b048)){const _0xd8ad01=_0x3f69ec['item']['parent']['parent']['getAttribute']('vid_start'),_0x4e9431=_0x58e244['get'](_0xd8ad01)||new Set();_0x4e9431['add'](_0xc7943c['get'](_0x29b048)['userId']),_0x58e244['set'](_0xd8ad01,_0x4e9431);}}for(const _0x59de81 of _0x58e244['keys']())(_0x7f665['has'](_0x59de81)||_0xc7943c['has'](_0x59de81))&&_0x58e244['delete'](_0x59de81);}for(const _0x1927b2 of _0x44330b){const _0x44f33c=_0x4aa093['insertions'][_0x1927b2];let _0x29d35f=null,_0x6e0ce4=null;for(const _0x1e90a4 of _0x44f33c){const _0x260528=this['_getVidAttributeName'](_0x1e90a4),_0x5ea6a4=_0x1e90a4['item']['getAttribute'](_0x260528),_0x48c3c0=_0x58e244['get'](_0x5ea6a4);_0x48c3c0&&'elementStart'==_0x1e90a4['type']&&(_0x29d35f=Array['from'](_0x48c3c0)[0x0],_0x6e0ce4=_0x1e90a4['item']['getAttribute']('vid_end')),_0x29d35f&&(_0xc7943c['set'](_0x5ea6a4,{'userId':_0x29d35f}),_0x7f665['set'](_0x5ea6a4,{'userId':_0x29d35f})),_0x5ea6a4==_0x6e0ce4&&(_0x29d35f=null,_0x6e0ce4=null);}}const _0x58c39c={},_0x51cc3a=new Set();for(const _0x27a0c8 of _0x44330b){const _0x1cd4b1=_0x13ca3c['deletions'][_0x27a0c8],_0x39f84b=_0x13ca3c['insertions'][_0x27a0c8];for(const {userId:_0x344f90}of this['_touchedMarkers']['values']())null!==_0x344f90&&_0x51cc3a['add'](_0x344f90);for(const {userId:_0x4e61a7}of this['_touchedRoots']['values']())null!==_0x4e61a7&&_0x51cc3a['add'](_0x4e61a7);this['_markChanges'](_0x39f84b,_0x4aa093['insertions'][_0x27a0c8],_0x7f665,'insertion',_0x51cc3a),this['_markChanges'](_0x1cd4b1,_0x4aa093['deletions'][_0x27a0c8],_0xc7943c,'deletion',_0x51cc3a),_0x58c39c[_0x27a0c8]={'insertions':this['_prepareViewToSave'](_0x39f84b),'deletions':this['_prepareViewToSave'](_0x1cd4b1),'attachChange':this['_touchedRoots']['get'](_0x27a0c8)||null,'attributesBefore':_0x456193(this['_baseRootsAttributes']['get'](_0x27a0c8))||{},'attributesAfter':_0x456193(this['_diffRootsAttributes']['get'](_0x27a0c8))};}return{'diffData':_0x58c39c,'authorsIds':Array['from'](_0x51cc3a)};}['_processRootBeforeSave'](_0x1c450f){for(const [,_0x1485b6]of _0x1c450f['markers']){const _0x31820f=_0x1485b6['start']['getAncestors']()['filter'](_0xbe89cd=>'tableCell'==_0xbe89cd['name']);for(const _0x3835a0 of _0x31820f)0x1==_0x3835a0['childCount']&&_0x3835a0['getChild'](0x0)['is']('element','paragraph')&&_0x3835a0['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x585989){this['_processRootBeforeSave'](_0x585989);const _0xad7626=this['editor']['data']['toView'](_0x585989,{}),_0x46079d=Array['from'](_0xad7626['getChildren']())['map'](_0x2d43ba=>this['_getViewJson'](_0x2d43ba));return JSON['stringify'](_0x46079d);}['_getViewJson'](_0x3e4a3e){if(_0x3e4a3e['is']('$text'))return _0x3e4a3e['data'];{const _0x1f188f=_0x3e4a3e;return{'type':Object['keys'](P)['find'](_0x41bb4f=>_0x3e4a3e instanceof P[_0x41bb4f]),'name':_0x1f188f['name'],'attributes':Array['from'](_0x1f188f['getAttributes']()),'children':Array['from'](_0x1f188f['getChildren']())['map'](_0x55518e=>this['_getViewJson'](_0x55518e))};}}['_markChanges'](_0x497969,_0x221879,_0x4a3916,_0x4b5637,_0x4a9371){let _0x53650e=null,_0x58c196=null,_0x44fcab=0x0;const _0x3daa1b=this['editor']['model'];for(let _0x443bc6=0x0;_0x443bc6<_0x221879['length'];_0x443bc6++){const _0x8dee06=this['_getVidAttributeName'](_0x221879[_0x443bc6]),_0x4460b8=_0x221879[_0x443bc6]['item']['getAttribute'](_0x8dee06),_0x103899=_0x4a3916['get'](_0x4460b8),_0x5805b0=_0x443bc6==_0x221879['length']-0x1;(!_0x53650e&&_0x103899&&(_0x53650e=_0x103899,_0x58c196=_0x221879[_0x443bc6]),_0x53650e&&(!_0x103899||_0x103899['userId']!=_0x53650e['userId']))&&(_0x5b8c54(_0x103899,B(_0x58c196,_0x497969,_0x3daa1b),B(_0x221879[_0x443bc6],_0x497969,_0x3daa1b)),_0x53650e=_0x103899||null,_0x58c196=_0x103899?_0x221879[_0x443bc6]:null),_0x53650e&&_0x5805b0&&_0x5b8c54(_0x103899,B(_0x58c196,_0x497969,_0x3daa1b),J(_0x221879[_0x443bc6],_0x497969,_0x3daa1b));}function _0x5b8c54(_0x52f03c,_0x5e5a9c,_0x4bb19c){const _0xc01059=_0x53650e['userId'],_0x3eb94f='revision:'+_0x4b5637+':'+_0xc01059+':'+_0x44fcab++,_0xa8fcc8=_0x3daa1b['createRange'](_0x5e5a9c,_0x4bb19c);_0x497969['markers']['set'](_0x3eb94f,_0xa8fcc8),null!==_0xc01059&&_0x4a9371['add'](_0xc01059);}}['_getVidAttributeName'](_0x43eb5a){switch(_0x43eb5a['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x18fc3f,_0x33844d){_0x18fc3f['baseVersion']=null;for(const _0x2dc630 in _0x18fc3f){const _0xc37aec=_0x18fc3f[_0x2dc630];if(_0xc37aec instanceof gt){const _0x350351=_0x33844d['get'](_0xc37aec['root']['rootName']);_0x18fc3f[_0x2dc630]=this['_fixPosition'](_0xc37aec,_0x350351);}if(_0xc37aec instanceof vt){const _0xd4239=_0x33844d['get'](_0xc37aec['root']['rootName']);_0x18fc3f[_0x2dc630]=this['_fixRange'](_0xc37aec,_0xd4239);}'root'===_0x2dc630&&(_0x18fc3f['root']=_0x33844d['get'](_0x18fc3f['root']['rootName']));}}['_fixRange'](_0x52649d,_0x2fd1fc){return this['editor']['model']['createRange'](this['_fixPosition'](_0x52649d['start'],_0x2fd1fc),this['_fixPosition'](_0x52649d['end'],_0x2fd1fc));}['_fixPosition'](_0xf8a2e,_0x10b9ae){return this['editor']['model']['createPositionFromPath'](_0x10b9ae,_0xf8a2e['path'],_0xf8a2e['stickiness']);}['_handleInsertOperation'](_0x112f91){const _0x4fe63a=this['_idsRoots']['get'](_0x112f91['position']['root']['rootName']),_0x30faa4=this['_fixPosition'](_0x112f91['position'],_0x4fe63a),_0x247038=null===_0x112f91['_authorId']?null:_0x112f91['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4ece8d=_0x30faa4['parent'],_0x5847=this['_revisionId'],_0x354dad=[];for(const _0x48f41d of _0x112f91['nodes'])if(_0x48f41d['is']('element'))_0x354dad['push'](this['_makeIdsRoot'](_0x48f41d));else{for(let _0x61d443=0x0;_0x61d443<_0x48f41d['offsetSize'];_0x61d443++)_0x354dad['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x132713=this['_revisionId'];for(let _0x15851f=_0x5847;_0x15851f<_0x132713;_0x15851f++)this['_touched']['set'](_0x15851f,{'userId':_0x247038});_0x4ece8d['_insertChild'](_0x30faa4['offset'],_0x354dad);}['_handleMoveOperation'](_0x54063b){(_0x54063b=this['_cloneOperation'](_0x54063b,this['_idsRoots']))['_execute']();const _0x38354e=null===_0x54063b['_authorId']?null:_0x54063b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x350b42=_0x54063b['getMovedRangeStart'](),_0x43c79e=_0x350b42['parent'],_0x52675c=_0x350b42['offset'];!function _0x44f7c9(_0x2cf5be,_0x4fb07a,_0x52269a,_0x203c72){for(let _0x94987d=_0x52269a;_0x94987d<_0x203c72;_0x94987d++){const _0x44cf7e=_0x4fb07a['getChild'](_0x94987d);_0x44cf7e['is']('element','$text')?_0x2cf5be['set'](_0x44cf7e['getAttribute']('vid'),{'userId':_0x38354e}):(_0x2cf5be['set'](_0x44cf7e['getAttribute']('vid_start'),{'userId':_0x38354e}),_0x44f7c9(_0x2cf5be,_0x44cf7e,0x0,_0x44cf7e['childCount']),_0x2cf5be['set'](_0x44cf7e['getAttribute']('vid_end'),{'userId':_0x38354e}));}}(this['_touched'],_0x43c79e,_0x52675c,_0x52675c+_0x54063b['howMany']);}['_handleMergeOperation'](_0x1ade0d){const _0x5d8691=null===(_0x1ade0d=this['_cloneOperation'](_0x1ade0d,this['_idsRoots']))['_authorId']?null:_0x1ade0d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x28d450=_0x1ade0d['targetPosition']['parent'],_0x289b23=_0x1ade0d['sourcePosition']['parent'],_0x32083b=_0x28d450['getAttribute']('vid_end'),_0x4cad62=_0x289b23['getAttribute']('vid_start');_0x28d450['_setAttribute']('vid_end',_0x289b23['getAttribute']('vid_end')),_0x289b23['_setAttribute']('vid_end',_0x32083b),this['_touched']['set'](_0x4cad62,{'userId':_0x5d8691}),this['_touched']['set'](_0x32083b,{'userId':_0x5d8691}),_0x1ade0d['_execute']();}['_handleSplitOperation'](_0x4abfa1){const _0x291a8b=null===(_0x4abfa1=this['_cloneOperation'](_0x4abfa1,this['_idsRoots']))['_authorId']?null:_0x4abfa1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x107b2c=_0x4abfa1['graveyardPosition'],_0x1c647e=_0x4abfa1['splitPosition']['parent'];_0x4abfa1['_execute']();const _0x1e0952=_0x1c647e['getAttribute']('vid_end'),_0x5e4b84=_0x4abfa1['insertionPosition']['nodeAfter'];if(_0x107b2c){const _0x5ba4d9=_0x5e4b84['getAttribute']('vid_end'),_0x3f6975=_0x1c647e['getAttribute']('vid_end');_0x1c647e['_setAttribute']('vid_end',_0x5ba4d9),_0x5e4b84['_setAttribute']('vid_end',_0x3f6975),this['_touched']['set'](_0x1c647e['getAttribute']('vid_end'),{'userId':_0x291a8b}),this['_touched']['set'](_0x5e4b84['getAttribute']('vid_start'),{'userId':_0x291a8b});}else{const _0x1e3cdc=this['_revisionId']++,_0x97f569=this['_revisionId']++;_0x1c647e['_setAttribute']('vid_end',_0x1e3cdc),_0x5e4b84['_setAttribute']('vid_start',_0x97f569),_0x5e4b84['_setAttribute']('vid_end',_0x1e0952),this['_touched']['set'](_0x1e3cdc,{'userId':_0x291a8b}),this['_touched']['set'](_0x97f569,{'userId':_0x291a8b});}}['_handleMarkerOperation'](_0x5e5fa4){if(!_0x5e5fa4['affectsData'])return;const _0x54db0b=(_0x5e5fa4=this['_cloneOperation'](_0x5e5fa4,this['_diffRoots']))['oldRange']?_0x5e5fa4['oldRange']['root']:null,_0x562f23=_0x5e5fa4['newRange']?_0x5e5fa4['newRange']['root']:null;_0x54db0b&&this['_markers']['delete'](_0x5e5fa4['name']),_0x562f23&&this['_markers']['set'](_0x5e5fa4['name'],_0x5e5fa4['newRange']['clone']());const _0x223845=null===_0x5e5fa4['_authorId']?null:_0x5e5fa4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x31d0a0=_0x5e5fa4['name'];if(!this['_touchedMarkers']['has'](_0x31d0a0))return void this['_touchedMarkers']['set'](_0x31d0a0,{'range':_0x5e5fa4['oldRange'],'userId':_0x223845});const _0x4f5862=this['_touchedMarkers']['get'](_0x31d0a0),_0x1b24a9=_0x4f5862['range'],_0xdf6dcb=_0x5e5fa4['newRange'];null==_0x1b24a9&&null==_0xdf6dcb||_0x1b24a9&&_0xdf6dcb&&_0x1b24a9['isEqual'](_0xdf6dcb)?this['_touchedMarkers']['delete'](_0x5e5fa4['name']):_0x4f5862['userId']=_0x223845;}['_handleRootOperation'](_0x1ea959,_0x19e591){this['_diffRoots']['has'](_0x1ea959['rootName'])?this['_diffRoots']['get'](_0x1ea959['rootName'])['_isAttached']=_0x1ea959['isAdd']:(this['_diffRoots']['set'](_0x1ea959['rootName'],F(_0x1ea959['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1ea959['rootName'],{}),_0x19e591&&this['_idsRoots']['set'](_0x1ea959['rootName'],F(_0x1ea959['rootName'],!0x0)));const _0x93437a=null===_0x1ea959['_authorId']?null:_0x1ea959['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1acd97=this['_touchedRoots']['get'](_0x1ea959['rootName']);_0x1acd97&&_0x1acd97['userId']===_0x93437a?this['_touchedRoots']['delete'](_0x1ea959['rootName']):this['_touchedRoots']['set'](_0x1ea959['rootName'],{'userId':_0x93437a,'isAttached':_0x1ea959['isAdd']});}['_handleRootAttributeOperation'](_0x5231c5){const _0x4e7727=this['_diffRootsAttributes']['get'](_0x5231c5['root']['rootName']);null===_0x5231c5['newValue']?delete _0x4e7727[_0x5231c5['key']]:_0x4e7727[_0x5231c5['key']]=_0x5231c5['newValue'];}}function T(_0x36d3c2){const _0x30122a=F(_0x36d3c2['rootName'],_0x36d3c2['isAttached']());for(const _0x485547 of _0x36d3c2['getChildren']()){const _0x555c9c=_0x485547['_clone'](!0x0);_0x30122a['_appendChild'](_0x555c9c);}return _0x30122a;}function F(_0xe2188d,_0x52771b=!0x0){const _0x19ef3e=new mt();return _0x19ef3e['rootName']=_0xe2188d,_0x19ef3e['_isAttached']=_0x52771b,_0x19ef3e['isAttached']=()=>_0x19ef3e['_isAttached'],_0x19ef3e;}function B(_0x27f21,_0xea8630,_0x86e021){const _0x5ec5b4='elementEnd'==_0x27f21['type']?_0x86e021['createPositionAt'](_0x27f21['item'],'end'):_0x86e021['createPositionBefore'](_0x27f21['item']);return _0x86e021['createPositionFromPath'](_0xea8630,_0x5ec5b4['path'],_0x5ec5b4['stickiness']);}function J(_0x5b4e17,_0x45f373,_0x53dbbc){const _0x56385c='elementStart'==_0x5b4e17['type']?_0x53dbbc['createPositionAt'](_0x5b4e17['item'],0x0):_0x53dbbc['createPositionAfter'](_0x5b4e17['item']);return _0x53dbbc['createPositionFromPath'](_0x45f373,_0x56385c['path'],_0x56385c['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x12e69d,_0x34cae6){super(_0x12e69d),this['focusTracker']=new _0x3d339c(),this['keystrokes']=new _0x43e4f7(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x34cae6),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x33abfc(this);}['render'](){super['render'](),_0x3c49f3({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x1434dd=_0x36d3fd=>_0x36d3fd['stopPropagation']();this['keystrokes']['set']('arrowright',_0x1434dd),this['keystrokes']['set']('arrowleft',_0x1434dd),this['keystrokes']['set']('arrowup',_0x1434dd),this['keystrokes']['set']('arrowdown',_0x1434dd);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x25484e){this['revisionNameInputView']['fieldView']['element']['value']=_0x25484e['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x39350a){const _0x283efd=new _0x3333b0(this['locale'],_0x380cb7),_0x1c801e=_0x283efd['fieldView'];_0x1c801e['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x9fb3c5=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x39350a&&(_0x9fb3c5+='\x20('+m(this['locale'],'optional')+')'),(_0x283efd['label']=_0x9fb3c5,_0x1c801e['on']('input',()=>{this['revisionNameInputValue']=_0x1c801e['element']['value']['trim']();}),_0x283efd);}}class u extends _0x43da28{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x4bf56f=this['editor'],_0x230fa3=_0x4bf56f['plugins']['get']('RevisionTracker');_0x4bf56f['ui']['componentFactory']['add']('revisionHistory',_0xf9ef1c=>{const _0x95cafb=_0x47471b(_0xf9ef1c),_0x7eb42e=_0x95cafb['panelView']['children'],_0x25d0c2=new _0x46bf10(_0xf9ef1c),_0x766ed0=new _0x3b0d83(_0xf9ef1c),_0x426f04=new te(_0xf9ef1c),_0x2810fe=new _0x3b0d83(_0xf9ef1c),_0x58e10d=new te(_0xf9ef1c);return _0x95cafb['bind']('isEnabled')['to'](_0x230fa3,'isReady',_0x230fa3,'isEnabled',_0x4bf56f,'isReadOnly',(_0x54d112,_0x4b7b8d,_0x7bb95e)=>_0x54d112&&_0x4b7b8d&&!_0x7bb95e),_0x95cafb['buttonView']['set']({'icon':_0x5b095b['history'],'label':m(_0xf9ef1c,'Revision\x20history'),'tooltip':!0x0}),_0x426f04['set']({'label':m(_0xf9ef1c,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x426f04['bind']('isEnabled')['to'](_0x230fa3,'isReady',_0x230fa3,'isEnabled',_0x4bf56f,'isReadOnly',(_0x595d20,_0x1ebdae,_0x5e0153)=>_0x595d20&&_0x1ebdae&&!_0x5e0153),_0x426f04['on']('execute',()=>this['_showDialog']()),_0x58e10d['set']({'label':m(_0xf9ef1c,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x58e10d['bind']('isEnabled')['to'](_0x230fa3,'isReady',_0x4bf56f,'isReadOnly',(_0x46cef3,_0x4092a4)=>_0x46cef3&&!_0x4092a4),_0x58e10d['on']('execute',()=>{_0x4bf56f['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x95cafb['isOpen']=!0x1,_0x4bf56f['editing']['view']['focus']();}),_0x766ed0['children']['add'](_0x426f04),_0x2810fe['children']['add'](_0x58e10d),_0x25d0c2['role']='menu',_0x25d0c2['items']['addMany']([_0x766ed0,_0x2810fe]),_0x7eb42e['add'](_0x25d0c2),_0x95cafb;}),_0x4bf56f['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x2e4bbd=this['editor'],_0x5f52c4=_0x2e4bbd['locale'],_0x45d23f=new _0x35891c(_0x5f52c4),_0x518e48=new _0x27588f(_0x5f52c4);_0x45d23f['buttonView']['set']({'icon':_0x5b095b['history'],'label':m(_0x5f52c4,'Revision\x20history')});const _0x34036f=new _0x4dfca5(_0x5f52c4,_0x45d23f),_0x52c617=new _0x390e3b(_0x5f52c4);_0x52c617['set']({'label':m(_0x5f52c4,'Save\x20current\x20revision')}),_0x52c617['delegate']('execute')['to'](_0x45d23f),_0x52c617['on']('execute',()=>{this['_showDialog']();}),_0x34036f['children']['add'](_0x52c617),_0x518e48['items']['add'](_0x34036f);const _0x203da3=new _0x4dfca5(_0x5f52c4,_0x45d23f),_0x38c460=new _0x390e3b(_0x5f52c4);return _0x38c460['set']({'label':m(_0x5f52c4,'Open\x20revision\x20history')}),_0x38c460['delegate']('execute')['to'](_0x45d23f),_0x38c460['on']('execute',()=>{_0x2e4bbd['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x203da3['children']['add'](_0x38c460),_0x518e48['items']['add'](_0x203da3),_0x45d23f['panelView']['children']['add'](_0x518e48),_0x45d23f;}['_showDialog'](){const _0x2d8bfc=this['editor'],_0x133dda=_0x2d8bfc['locale'],_0x22671b=_0x2d8bfc['plugins']['get']('Dialog'),_0x1922f1=_0x2d8bfc['plugins']['get']('RevisionTracker');function _0x403e90(_0x4cd9b7){_0x2d8bfc['config']['get']('revisionHistory.requireRevisionName')&&''===_0x4cd9b7['revisionName']?_0x4cd9b7['revisionNameInputView']['errorText']=m(_0x133dda,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x2d8bfc['plugins']['get'](l)['saveRevision']({'name':_0x4cd9b7['revisionName']}),_0x22671b['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x403e90(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x22671b['show']({'id':'revisionSave','title':m(_0x133dda,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x2d8bfc['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x22671b['hide']()},{'label':m(_0x2d8bfc['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0xce107f){_0xce107f['bind']('isEnabled')['to'](_0x1922f1,'isReady',_0x1922f1,'isEnabled',_0x2d8bfc,'isReadOnly',(_0x4cacf2,_0x47d356,_0x1cd3a)=>_0x4cacf2&&_0x47d356&&!_0x1cd3a);},'onExecute':()=>_0x403e90(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x54ba88=this['editor'],_0xe0fc8b=_0x54ba88['locale'];this['_saveRevisionFormView']=new hs(_0xe0fc8b,_0x54ba88['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends ts{['changeId'];['_model'];constructor(_0x5a5258,_0x5c2ca1){super(_0x5a5258),this['_model']=_0x5c2ca1,this['changeId']=_0x5c2ca1['id'];const _0x2cecfe=this['bindTemplate'],_0x2b8cc1=m(_0x5a5258,_0x5c2ca1['data']['isSuggestion']?'Suggested\x20by':'add'==_0x5c2ca1['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x5c2ca1['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x2cecfe['to']('type',_0x448a96=>'ck-revision-change__'+_0x448a96)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x2b8cc1}]},{'text':'\x20'+_0x5c2ca1['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x516367(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x588e43){super(),this['id']=_0x588e43['id']||_0x4f9af2(),this['author']=_0x588e43['author'],this['type']=_0x588e43['type'],this['data']=_0x588e43['data']||{},this['rootName']=_0x588e43['rootName'],this['set']('createdAt',_0x588e43['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(_0x512c04,_0x2543e6){this['newRevisionId']=_0x512c04,this['oldRevisionId']=_0x2543e6,this['changes']=new _0x13b5e8();}['_setChanges'](_0xac15bc){for(const _0x143c7c of _0xac15bc)this['changes']['add'](_0x143c7c);}}const Y={'c':_0x5d5f8c,'a':_0x16e4b8,'e':_0x1d4908,'r':_0x1a9b91,'u':_0x2f209d};class d extends _0x43da28{['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[_0x23463a,_0xcf7ba6,j];}constructor(_0x192e61){super(_0x192e61),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',(_0x55de80,_0x22bf9,_0x51a32a)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x11bb7f=>{for(const _0x25443c of this['editor']['editing']['view']['document']['roots'])_0x51a32a?_0x11bb7f['removeClass']('ck-editor__editable__overlay',_0x25443c):_0x11bb7f['addClass']('ck-editor__editable__overlay',_0x25443c);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0xb373d2=>null!==_0xb373d2),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x35db2d,_0x448558,_0x1e20e3)=>_0x35db2d&&_0x1e20e3?_0x448558['changes']['getIndex'](_0x1e20e3):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0xf4f6b,_0x321e4e)=>_0xf4f6b?_0x321e4e['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0xcf7ba6);}['init'](){const _0x2782e8=this['editor'],_0x1e7322=new _t(_0x2782e8,{'direction':'backward'}),_0x683301=new _t(_0x2782e8,{'direction':'forward'});(_0x2782e8['commands']['add']('showPreviousChange',_0x1e7322),_0x2782e8['commands']['add']('showNextChange',_0x683301),_0x2782e8['commands']['add']('restoreRevision',new pt(_0x2782e8)),this['on']('change:numberOfChanges',()=>{_0x1e7322['refresh'](),_0x683301['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x2782e8['enableReadOnlyMode']('revision-viewer'),_0x2782e8['plugins']['has']('WidgetToolbarRepository'))&&_0x2782e8['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x5e0b13){await this['loadRevisionData'](_0x5e0b13);const _0x394125={};for(const _0x200a4a in _0x5e0b13['diffData']){if(_0x5e0b13['diffData'][_0x200a4a]['attachChange']&&!_0x5e0b13['diffData'][_0x200a4a]['attachChange']['isAttached'])continue;const _0x9b750c=this['_removeRevisionMarkers'](JSON['parse'](_0x5e0b13['diffData'][_0x200a4a]['insertions'])),_0x5dbfd1=this['editor']['editing']['view']['document'],_0x5a2fd0=new _0x49a981(_0x5dbfd1,_0x9b750c['map'](_0x13e8c0=>this['_getViewObj'](_0x13e8c0)));this['editor']['data']['processor']['useFillerType']('marked'),_0x394125[_0x200a4a]=this['editor']['data']['processor']['toData'](_0x5a2fd0),this['editor']['data']['processor']['useFillerType']('default');}return _0x394125;}async['getRevisionRootsAttributes'](_0x20fba7){await this['loadRevisionData'](_0x20fba7);const _0x361086={};for(const _0x316581 in _0x20fba7['diffData'])_0x20fba7['diffData'][_0x316581]['attachChange']&&!_0x20fba7['diffData'][_0x316581]['attachChange']['isAttached']||(_0x361086[_0x316581]=_0x20fba7['diffData'][_0x316581]['attributesAfter']||{});return _0x361086;}['_removeRevisionMarkers'](_0x492c37){return(_0x492c37=_0x492c37['filter'](_0x15b75f=>!_0x15b75f['name']||'revision-start'!==_0x15b75f['name']&&'revision-end'!==_0x15b75f['name']))['forEach'](_0x1a4f8c=>{'string'!=typeof _0x1a4f8c&&(_0x1a4f8c['children']=this['_removeRevisionMarkers'](_0x1a4f8c['children']),_0x1a4f8c['attributes']=_0x1a4f8c['attributes']['filter'](_0x5b391c=>!_0x5b391c[0x0]['startsWith']('data-revision-')));}),_0x492c37;}async['compare'](_0xbb8ab8,_0x227505,_0xe1b7fc=!0x1){if(!this['isEnabled'])return;const _0x2ce797=this['diff'],_0x3be8de=this['repository'],_0x83745d='string'==typeof _0xbb8ab8?_0x3be8de['getRevision'](_0xbb8ab8):_0xbb8ab8,_0x5261b3='string'==typeof _0x227505?_0x3be8de['getRevision'](_0x227505):_0x227505,_0x463d7d=_0x83745d['id'],_0x496aa2=_0x5261b3?_0x5261b3['id']:null;if(!_0xe1b7fc&&this['diff']&&this['diff']['newRevisionId']===_0x463d7d&&this['diff']['oldRevisionId']===_0x496aa2)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x463d7d,_0x496aa2);const _0x2c759a=this['_getRevisionsRange'](_0x83745d,_0x5261b3,!0x0)['map'](_0x333f91=>this['loadRevisionData'](_0x333f91));return _0x2c759a['push'](new Promise(_0x2b73a6=>{setTimeout(_0x2b73a6,0x14);})),Promise['all'](_0x2c759a)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x45cc6b=this['_getDiff'](_0x463d7d,_0x496aa2);for(const _0x5291dc of _0x45cc6b['changes'])this['_changeIdToChange']['set'](_0x5291dc['id'],_0x5291dc);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x21f3af=>{for(const _0x2195e4 of this['editor']['model']['document']['getRootNames']())_0x21f3af['detachRoot'](_0x2195e4);for(const _0x512daa of Object['keys'](_0x45cc6b['model'])){const _0x36dd88=_0x21f3af['addRoot'](_0x512daa);for(const _0x47688f of Object['keys'](_0x45cc6b['attributes'][_0x512daa]))_0x21f3af['setAttribute'](_0x47688f,_0x45cc6b['attributes'][_0x512daa][_0x47688f],_0x36dd88);_0x21f3af['insert'](_0x45cc6b['model'][_0x512daa],_0x36dd88,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x45cc6b['changes'])),this['isReady']=!0x0;})['catch'](_0xf1c2d6=>{console['error'](_0xf1c2d6),this['_cleanUp'](),_0x2ce797&&(this['diff']=_0x2ce797),this['isReady']=!0x0;});}['addRevisionData'](_0x109f2a,_0x201659){const _0x3ba89e=this['repository']['createRevision'](_0x109f2a);return _0x3ba89e['on']('_update',(_0x4638c9,_0x34cba3,_0x3f741c)=>_0x201659(_0x34cba3,_0x3f741c,_0x3ba89e)),this['repository']['addRevision'](_0x3ba89e),_0x3ba89e;}['loadRevisionData'](_0xb40fb8){if(!_0xb40fb8||_0xb40fb8['diffData'])return Promise['resolve']();{const _0x35d646=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x35d646,'revisionId':_0xb40fb8['id']})['then'](_0x55306d=>{_0xb40fb8['_update']({'diffData':_0x55306d['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},_0x276cf3=>{for(const _0x20d3e7 of this['editor']['model']['document']['getRootNames']())_0x276cf3['detachRoot'](_0x20d3e7);});}['_sortAndFilterDiffChanges'](_0x55a866){const _0x220dde=[],_0x34c665=new Map();for(const _0x4108c3 of this['editor']['model']['document']['getRootNames']()){const _0x12480d=this['editor']['editing']['view']['getDomRoot'](_0x4108c3);if(!_0x12480d)continue;const _0x234f24=_0x12480d['getClientRects']()['item'](0x0);_0x234f24&&(_0x220dde['push'](_0x4108c3),_0x34c665['set'](_0x4108c3,_0x234f24));}return _0x220dde['sort']((_0x2c6aff,_0x284d10)=>{const _0x17ccfa=_0x34c665['get'](_0x2c6aff),_0x23891f=_0x34c665['get'](_0x284d10);return _0x17ccfa['y']-_0x23891f['y']||_0x17ccfa['x']-_0x23891f['x'];}),(_0x55a866=_0x55a866['filter'](_0x42db2f=>_0x220dde['includes'](_0x42db2f['rootName'])))['sort']((_0x4d9c05,_0x153203)=>_0x220dde['indexOf'](_0x4d9c05['rootName'])-_0x220dde['indexOf'](_0x153203['rootName'])),_0x55a866;}['_makeTape'](_0x2e5f54){const _0x3895ac=Array['from'](_0x2e5f54['markers'])['filter'](([_0x2d7b06,_0x9eae1f])=>_0x2d7b06['startsWith']('revision:')&&!_0x9eae1f['isCollapsed']),_0x45d8bf=Array['from'](this['editor']['model']['createRangeIn'](_0x2e5f54)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x3895ac['length'])for(const _0x4dfbbb of _0x45d8bf){const [_0x5dbd00,_0x46b227]=_0x3895ac[0x0],[,_0x1a5af7,_0x32f7fd]=_0x5dbd00['split'](':');if(_0x46b227['end']['isEqual'](_0x4dfbbb['nextPosition'])&&_0x3895ac['shift'](),(_0x4dfbbb['previousPosition']['isEqual'](_0x46b227['start'])||_0x4dfbbb['previousPosition']['isAfter'](_0x46b227['start']))&&('insertion'==_0x1a5af7?_0x4dfbbb['isAdded']={'userId':_0x32f7fd}:'deletion'==_0x1a5af7&&(_0x4dfbbb['isRemoved']={'userId':_0x32f7fd})),0x0==_0x3895ac['length'])break;}return _0x45d8bf;}['_refreshStartEndIndex'](_0x3d160d){const _0xcf61e4=new Map();for(let _0x78f994=0x0;_0x78f994<_0x3d160d['length'];_0x78f994++)'text'===_0x3d160d[_0x78f994]['type']?(_0x3d160d[_0x78f994]['item']['startIndex']=_0x78f994,_0x3d160d[_0x78f994]['item']['endIndex']=_0x78f994):('elementStart'===_0x3d160d[_0x78f994]['type']?_0x3d160d[_0x78f994]['item']['startIndex']=_0x78f994:'elementEnd'===_0x3d160d[_0x78f994]['type']&&(_0x3d160d[_0x78f994]['item']['endIndex']=_0x78f994),_0xcf61e4['set'](_0x3d160d[_0x78f994]['id'],_0x78f994));for(const _0x10d53b of _0xcf61e4['values']())'elementStart'===_0x3d160d[_0x10d53b]['type']?_0x3d160d[_0x10d53b]['item']['endIndex']=_0xcf61e4['get'](_0x3d160d[_0x10d53b]['pairId']):'elementEnd'===_0x3d160d[_0x10d53b]['type']&&(_0x3d160d[_0x10d53b]['item']['startIndex']=_0xcf61e4['get'](_0x3d160d[_0x10d53b]['pairId']));}['_processTape'](_0x330856){for(let _0x385a78=0x0;_0x385a78<_0x330856['length'];_0x385a78++){if('elementStart'===_0x330856[_0x385a78]['type'])_0x330856[_0x385a78]['item']['startIndex']=_0x385a78;else{if('elementEnd'===_0x330856[_0x385a78]['type']){_0x330856[_0x385a78]['item']['endIndex']=_0x385a78;const _0x1c69c9=_0x330856[_0x385a78]['item']['startIndex'];_0x330856[_0x1c69c9]['pairId']=_0x330856[_0x385a78]['id'],_0x330856[_0x385a78]['pairId']=_0x330856[_0x1c69c9]['id'];}else _0x330856[_0x385a78]['item']['startIndex']=_0x385a78,_0x330856[_0x385a78]['item']['endIndex']=_0x385a78,_0x330856[_0x385a78]['pairId']=null;}_0x330856[_0x385a78]['markersStart']||(_0x330856[_0x385a78]['markersStart']=[],_0x330856[_0x385a78]['markersEnd']=[]);}}['_markInsertions'](_0x5c69d4,_0x2b6933){const _0x17c441=_0x5c69d4['filter'](_0x42fe5e=>!_0x42fe5e['isAdded']);for(let _0x478560=0x0;_0x478560<_0x2b6933['length'];_0x478560++)_0x2b6933[_0x478560]['isAdded']&&(_0x17c441[_0x478560]['isAdded']=_0x2b6933[_0x478560]['isAdded']);}['_makeModelFromViewString'](_0x3fd653){const _0x7bf7d2=JSON['parse'](_0x3fd653),_0x6de3af=this['editor']['editing']['view']['document'],_0x4634f1=new _0x49a981(_0x6de3af,_0x7bf7d2['map'](_0x4bf4cd=>this['_getViewObj'](_0x4bf4cd)));return this['editor']['data']['toModel'](_0x4634f1);}['_getViewObj'](_0x4c793d){const _0x588673=this['editor']['editing']['view']['document'];if('string'==typeof _0x4c793d)return new _0x1b3fed(_0x588673,_0x4c793d);{const _0x2f3e9d=_0x4c793d['children']['map'](_0x38e4ca=>this['_getViewObj'](_0x38e4ca));return new(Y[_0x4c793d['type']]||_0x373d7e)(_0x588673,_0x4c793d['name'],_0x4c793d['attributes'],_0x2f3e9d);}}['_getDiff'](_0x53f1a9,_0x2c8acf=null){const _0x4c7417=this['repository']['getRevision'](_0x53f1a9),_0x127fc3=_0x2c8acf?this['repository']['getRevision'](_0x2c8acf):null,_0x16ddeb=this['_getRevisionsRange'](_0x4c7417,_0x127fc3),_0x26fef0=_0x16ddeb[_0x16ddeb['length']-0x1],_0x141a35=new Map(),_0x35110b={'model':{},'attributes':{},'changes':[]},_0x1feb52=new Set(),_0x43120a=new Map();for(let _0x5b8e4c=_0x16ddeb['length']-0x1;_0x5b8e4c>=0x0;_0x5b8e4c--){const _0x1439d3=_0x16ddeb[_0x5b8e4c];for(const _0x51feec of Object['keys'](_0x1439d3['diffData']))if(_0x1439d3['diffData'][_0x51feec]['attachChange']){const _0x179dc0=_0x1439d3['diffData'][_0x51feec]['attachChange'];_0x179dc0['isAttached']?(_0x1feb52['add'](_0x51feec),_0x43120a['has'](_0x51feec)&&_0x43120a['get'](_0x51feec)['userId']==_0x179dc0['userId']?_0x43120a['delete'](_0x51feec):_0x43120a['set'](_0x51feec,_0x179dc0)):_0x43120a['has'](_0x51feec)?(_0x1feb52['delete'](_0x51feec),_0x43120a['delete'](_0x51feec)):(_0x1feb52['add'](_0x51feec),_0x43120a['set'](_0x51feec,_0x179dc0));}else _0x1feb52['add'](_0x51feec);}for(const _0x5bda5e of _0x1feb52){const _0x53e1b4=_0x43120a['has'](_0x5bda5e)&&!_0x43120a['get'](_0x5bda5e)['isAttached'];let _0x46746f=_0x53e1b4?_0x16ddeb['length']-0x1:0x0;const _0x51ed75=_0x53e1b4?-0x1:0x1;for(;_0x16ddeb[_0x46746f];){const _0xa699c1=_0x16ddeb[_0x46746f];if(_0xa699c1['diffData'][_0x5bda5e]){const _0x20039f=_0x53e1b4?_0xa699c1['diffData'][_0x5bda5e]['attributesBefore']:_0xa699c1['diffData'][_0x5bda5e]['attributesAfter'];_0x35110b['attributes'][_0x5bda5e]=_0x20039f?_0x456193(_0x20039f):{};break;}_0x46746f+=_0x51ed75;}}for(const _0x4bb019 of _0x16ddeb){_0x4bb019['model']={};for(const _0x1fa524 of _0x4bb019['authors'])_0x141a35['set'](_0x1fa524['id'],_0x1fa524);for(const _0x5e6133 of _0x1feb52){const _0x24fc54=_0x4bb019['diffData'][_0x5e6133]?_0x4bb019['diffData'][_0x5e6133]['insertions']:'[]',_0x31d08b=_0x4bb019['diffData'][_0x5e6133]?_0x4bb019['diffData'][_0x5e6133]['deletions']:'[]';_0x4bb019['model'][_0x5e6133]={'insertions':this['_makeModelFromViewString'](_0x24fc54),'deletions':this['_makeModelFromViewString'](_0x31d08b)};}}for(const _0x52f284 of _0x1feb52){let _0x51346d=null,_0x5ba2c2=0x0;const _0x5ba59a=new Map(Array['from'](_0x4c7417['model'][_0x52f284]['insertions']['markers'])['filter'](([_0x430b37])=>!_0x430b37['startsWith']('revision:')));let _0x2855be=0x0;for(const _0x448839 of _0x16ddeb){const _0x570e65=this['_makeTape'](_0x448839['model'][_0x52f284]['insertions']);_0x448839==_0x4c7417?(_0x51346d=_0x570e65,_0x5ba2c2=_0x51346d['length'],_0x51346d['forEach'](_0x5c5a8b=>{_0x5c5a8b['id']=_0x2855be++;}),this['_processTape'](_0x51346d)):this['_markInsertions'](_0x51346d,_0x570e65);const _0x1667bd=_0x51346d['filter'](_0x1fc1cc=>!_0x1fc1cc['isAdded'])['map'](_0x4175a3=>_0x4175a3['id']);let _0x49a2e4=0x0;const _0x1ec7de=this['_makeTape'](_0x448839['model'][_0x52f284]['deletions']);_0x1ec7de['forEach'](_0x368cf0=>{_0x368cf0['isRemoved']?_0x368cf0['id']=_0x5ba2c2++:_0x368cf0['id']=_0x1667bd[_0x49a2e4++];}),this['_processTape'](_0x1ec7de),this['_setDistance'](_0x51346d,'isAdded'),this['_setDistance'](_0x1ec7de,'isRemoved'),_0x448839==_0x4c7417&&this['_markMarkers'](_0x51346d,_0x5ba59a),_0x51346d=this['_joinTapes'](_0x51346d,_0x1ec7de),this['_refreshStartEndIndex'](_0x51346d),this['_setDistance'](_0x51346d,'isRemoved');}_0x51346d=_0x51346d['filter'](_0x370e0c=>!(_0x370e0c['isAdded']&&_0x370e0c['isRemoved']));const _0x465f55=new Map(_0x26fef0['model'][_0x52f284]['deletions']['markers']),_0x2c4f26=new Set(_0x5ba59a['keys']());for(const _0x4b2817 of _0x465f55['keys']())_0x2c4f26['delete'](_0x4b2817);this['_markSuggestions'](_0x51346d,_0x2c4f26),this['_fixObsoleteTags'](_0x51346d),_0x51346d=this['_removeMissingPairs'](_0x51346d),_0x51346d=this['_markMismatchedRemovedTags'](_0x51346d),_0x51346d=this['_removeUnsupportedChanges'](_0x51346d);const {root:_0x4c8f53,changes:_0x4328c0}=this['_makeModelFromTape'](_0x51346d,_0x141a35,_0x52f284);_0x35110b['model'][_0x52f284]=_0x4c8f53;const _0x2323ca=_0x43120a['get'](_0x52f284);if(_0x2323ca){const _0x318f36=_0x141a35['get'](_0x2323ca['userId']),_0x23ce94=new r({'author':_0x318f36,'type':_0x2323ca['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x52f284});_0x4328c0['unshift'](_0x23ce94),_0x35110b['attributes'][_0x52f284]['revisionHistoryAttachChange']=_0x23ce94['id'];}_0x35110b['changes']=_0x35110b['changes']['concat'](_0x4328c0);}return _0x35110b;}['_markMarkers'](_0x267205,_0x508b4f){for(let _0x3fc529=0x0;_0x3fc529<_0x267205['length'];_0x3fc529++)for(const [_0xee1b1f,_0x44594a]of _0x508b4f)_0x44594a['start']['isEqual'](_0x267205[_0x3fc529]['previousPosition'])&&_0x267205[_0x3fc529]['markersStart']['push'](_0xee1b1f),_0x44594a['end']['isEqual'](_0x267205[_0x3fc529]['nextPosition'])&&_0x267205[_0x3fc529]['markersEnd']['push'](_0xee1b1f);}['_joinTapes'](_0x2bc1d3,_0x235035){let _0x530b27=[],_0x58a129=0x0,_0x4080b1=0x0;for(;_0x58a129<_0x2bc1d3['length']||_0x4080b1<_0x235035['length'];){const _0x433664=_0x2bc1d3[_0x58a129]||{},_0x288f24=_0x235035[_0x4080b1]||{};if(_0x433664['id']==_0x288f24['id'])_0x58a129++,_0x4080b1++,_0x530b27['push'](_0x433664);else{if(_0x288f24['isRemoved']&&_0x433664['isAdded']){const {commonTape:_0x2e1731,iEnd:_0x167146,jEnd:_0x1b3f01}=this['_threeWayMerge'](_0x2bc1d3,_0x58a129,_0x235035,_0x4080b1);_0x530b27=_0x530b27['concat'](_0x2e1731),_0x58a129=_0x167146,_0x4080b1=_0x1b3f01;}else _0x288f24['isRemoved']?(_0x4080b1++,_0x530b27['push'](_0x288f24)):(_0x58a129++,_0x530b27['push'](_0x433664));}}return _0x530b27;}['_markSuggestions'](_0x115ffe,_0x2269bd){const _0x392692=[];for(let _0x245892=0x0;_0x245892<_0x115ffe['length'];_0x245892++){for(let _0x3d5f7d=0x0;_0x3d5f7d<_0x115ffe[_0x245892]['markersStart']['length'];_0x3d5f7d++){const _0x226087=_0x115ffe[_0x245892]['markersStart'][_0x3d5f7d];if(!_0x2269bd['has'](_0x226087))continue;const {group:_0x315971,type:_0x139e28,authorId:_0x58ae6e}=_0x2709e8(_0x226087);'revision-suggestion'!=_0x315971||'insertion'!=_0x139e28&&'deletion'!=_0x139e28||(_0x392692['unshift']({'type':_0x139e28,'name':_0x226087,'userId':_0x58ae6e}),_0x115ffe[_0x245892]['markersStart']['splice'](_0x3d5f7d,0x1),_0x3d5f7d--);}_0x3c52c1(_0x115ffe[_0x245892]);for(let _0x5855cb=0x0;_0x5855cb<_0x115ffe[_0x245892]['markersEnd']['length'];_0x5855cb++){const _0x12df7d=_0x115ffe[_0x245892]['markersEnd'][_0x5855cb];if(!_0x2269bd['has'](_0x12df7d))continue;const {group:_0x3a081a,type:_0x27d931}=_0x2709e8(_0x12df7d);if('revision-suggestion'!=_0x3a081a||'insertion'!=_0x27d931&&'deletion'!=_0x27d931)continue;_0x115ffe[_0x245892]['markersEnd']['splice'](_0x5855cb,0x1),_0x5855cb--;const _0x40b6fc=_0x392692['findIndex'](_0x4ea438=>_0x4ea438['name']==_0x12df7d);_0x40b6fc>-0x1&&_0x392692['splice'](_0x40b6fc,0x1);}}function _0x2709e8(_0xc5dbde){const _0x56a8cd=_0xc5dbde['split'](':');return{'group':_0x56a8cd[0x0],'type':_0x56a8cd[0x1],'subType':_0x56a8cd['length']>=0x5?_0x56a8cd[0x2]:null,'id':_0x56a8cd['length']<0x5?_0x56a8cd[0x2]:_0x56a8cd[0x3],'authorId':_0x56a8cd['length']<0x5?_0x56a8cd[0x3]:_0x56a8cd[0x4],'markerCount':0x6==_0x56a8cd['length']?_0x56a8cd[0x5]:null};}function _0x3c52c1(_0x5855bb){for(let _0x318f72=0x0;_0x318f72<_0x392692['length'];_0x318f72++){if(_0x5855bb['isAdded']&&'insertion'==_0x392692[_0x318f72]['type'])return _0x5855bb['isAddSuggestion']=_0x392692[_0x318f72],void delete _0x5855bb['isAdded'];if(!_0x5855bb['isAdded']&&!_0x5855bb['isRemoved']&&'deletion'==_0x392692[_0x318f72]['type'])return void(_0x5855bb['isRemoveSuggestion']=_0x392692[_0x318f72]);}}}['_setDistance'](_0x1887f1,_0x5f5d75){let _0x54651b=0x0,_0x2f2025=!0x1;const _0x5e6a4a=new Map();for(const _0x3d7b40 of _0x1887f1)_0x3d7b40[_0x5f5d75]?_0x2f2025&&(_0x54651b++,_0x2f2025=!0x1):(_0x54651b++,_0x2f2025=!0x0),_0x5e6a4a['set'](_0x3d7b40['id'],_0x54651b);for(let _0x33c4d7=0x0;_0x33c4d7<_0x1887f1['length'];_0x33c4d7++){if('isRemoved'==_0x5f5d75&&_0x1887f1[_0x33c4d7]['isAdded']||'isAdded'==_0x5f5d75&&_0x1887f1[_0x33c4d7]['isRemoved'])continue;if('text'==_0x1887f1[_0x33c4d7]['type']){_0x1887f1[_0x33c4d7]['distance']=0x0;continue;}const _0x15b783=_0x5e6a4a['get'](_0x1887f1[_0x33c4d7]['pairId']),_0x2ad801=_0x5e6a4a['get'](_0x1887f1[_0x33c4d7]['id']);_0x1887f1[_0x33c4d7]['distance']=_0x15b783-_0x2ad801;}}['_getRevisionsRange'](_0x276303,_0x4dea4c,_0x494554=!0x1){const _0x2bfcc4=[];let _0x5570f5=this['repository']['getIndex'](_0x276303),_0x1564d3=this['repository']['getIndex'](_0x4dea4c);for(-0x1==_0x1564d3&&(_0x1564d3=this['repository']['_revisions']['length'],_0x494554=!0x1);_0x5570f5<_0x1564d3;)_0x2bfcc4['push'](this['repository']['getRevision'](_0x5570f5)),_0x5570f5++;return _0x494554&&_0x2bfcc4['push'](this['repository']['getRevision'](_0x5570f5)),_0x2bfcc4;}['_threeWayMerge'](_0x3f8d9a,_0x20f61a,_0x553fa4,_0x51cf1a){const _0x43bbae=this['editor']['model']['schema'];let _0xf00956=_0x20f61a;for(;_0x3f8d9a[_0xf00956]&&_0x3f8d9a[_0xf00956]['isAdded'];)_0xf00956++;let _0x2baaa3=_0x51cf1a;for(;_0x553fa4[_0x2baaa3]&&_0x553fa4[_0x2baaa3]['isRemoved'];)_0x2baaa3++;_0x22d59d(_0x3f8d9a,_0x20f61a,_0xf00956),_0x22d59d(_0x553fa4,_0x51cf1a,_0x2baaa3);const _0x2d4cb6=_0x553fa4['slice'](_0x51cf1a,_0x2baaa3)['concat'](_0x3f8d9a['slice'](_0x20f61a,_0xf00956));return _0x2d4cb6['sort']((_0xbd413f,_0x56e4e5)=>_0xbd413f['side']!=_0x56e4e5['side']?_0xbd413f['side']-_0x56e4e5['side']:_0xbd413f['level']!=_0x56e4e5['level']?_0xbd413f['level']-_0x56e4e5['level']:_0xbd413f['distance']!=_0x56e4e5['distance']?_0x56e4e5['distance']-_0xbd413f['distance']:!!_0xbd413f['isAdded']!=!!_0x56e4e5['isAdded']?-0x1==_0xbd413f['side']||0x0==_0xbd413f['side']?_0xbd413f['isAdded']?-0x1:0x1:_0xbd413f['isAdded']?0x1:-0x1:_0xbd413f['index']-_0x56e4e5['index']),{'commonTape':_0x2d4cb6,'iEnd':_0xf00956,'jEnd':_0x2baaa3};function _0x22d59d(_0x37b978,_0x39d310,_0xaac5d0){let _0x10a833=-0x1,_0xff94a5=Number['POSITIVE_INFINITY'],_0x1b3450=!0x0;for(let _0x5c8ecd=_0x39d310;_0x5c8ecd<_0xaac5d0;_0x5c8ecd++)if(_0x43bbae['isInline'](_0x37b978[_0x5c8ecd]['item'])||(_0x1b3450=!0x1),_0x37b978[_0x5c8ecd]['item']['startIndex']<_0x39d310&&(_0x10a833=_0x5c8ecd),_0x37b978[_0x5c8ecd]['item']['endIndex']>=_0xaac5d0){_0xff94a5=_0x5c8ecd;break;}_0x1b3450&&(_0x10a833=_0xaac5d0-0x1);for(let _0xd88ba7=_0x39d310;_0xd88ba7<_0xaac5d0;_0xd88ba7++)_0x37b978[_0xd88ba7]['side']=_0xd88ba7<=_0x10a833?-0x1:_0xd88ba7<_0xff94a5?0x0:0x1,_0x37b978[_0xd88ba7]['index']=_0xd88ba7;let _0x3c91fb=0x0;for(let _0x7972a5=_0x39d310;_0x7972a5<=_0x10a833;_0x7972a5++)0x0==_0x37b978[_0x7972a5]['distance']?_0x37b978[_0x7972a5]['level']=_0x3c91fb:(_0x3c91fb++,_0x37b978[_0x7972a5]['level']=_0x3c91fb,_0x3c91fb++);for(let _0x500adf=_0x39d310;_0x500adf<_0xaac5d0;_0x500adf++)0x0==_0x37b978[_0x500adf]['side']&&(_0x37b978[_0x500adf]['level']=_0x3c91fb);_0x3c91fb=0x0;for(let _0x20a656=_0xaac5d0-0x1;_0x20a656>=_0xff94a5;_0x20a656--)0x0==_0x37b978[_0x20a656]['distance']?_0x37b978[_0x20a656]['level']=_0x3c91fb:(_0x3c91fb--,_0x37b978[_0x20a656]['level']=_0x3c91fb,_0x3c91fb--);}}['_fixObsoleteTags'](_0x269cf2){const _0xa88412=new Map(),_0x48ef49=this['editor']['model']['schema'];for(let _0x5cdbe9=0x1;_0x5cdbe9<_0x269cf2['length'];_0x5cdbe9++){let _0x31b954,_0x8b45c4,_0x3567e7;const _0x33ef6b=_0x269cf2[_0x5cdbe9],_0x2779ca=_0x269cf2[_0x5cdbe9-0x1];if('text'==_0x33ef6b['type'])continue;if(_0x33ef6b['type']!=_0x2779ca['type'])continue;if(!_0x48ef49['isBlock'](_0x2779ca['item'])||_0x48ef49['isLimit'](_0x2779ca['item']))continue;if(!_0x48ef49['isBlock'](_0x33ef6b['item'])||_0x48ef49['isLimit'](_0x33ef6b['item']))continue;if((_0x269cf2[_0x5cdbe9]['isAdded']||_0x269cf2[_0x5cdbe9]['isAddSuggestion'])&&_0x269cf2[_0x5cdbe9-0x1]['isRemoved'])_0x31b954=_0x269cf2[_0x5cdbe9],_0x8b45c4=_0x269cf2[_0x5cdbe9-0x1],_0x3567e7=_0x5cdbe9-0x1;else{if(!_0x269cf2[_0x5cdbe9]['isRemoved']||!_0x269cf2[_0x5cdbe9-0x1]['isAdded']&&!_0x269cf2[_0x5cdbe9-0x1]['isAddSuggestion'])continue;_0x31b954=_0x269cf2[_0x5cdbe9-0x1],_0x8b45c4=_0x269cf2[_0x5cdbe9],_0x3567e7=_0x5cdbe9;}const _0x7e63ac=_0x31b954['level']==_0x8b45c4['level'],_0x52e35f=Math['abs'](_0x31b954['level'])<Math['abs'](_0x8b45c4['level'])&&0x0==_0x8b45c4['distance'];(_0x7e63ac||_0x52e35f)&&(_0xa88412['set'](_0x8b45c4['id'],_0x31b954['id']),_0x269cf2['splice'](_0x3567e7,0x1),_0x5cdbe9--,_0x31b954['isAdded']=!0x1);}for(let _0x2b9c4d=0x0;_0x2b9c4d<_0x269cf2['length'];_0x2b9c4d++)_0xa88412['has'](_0x269cf2[_0x2b9c4d]['pairId'])&&(_0x269cf2[_0x2b9c4d]['pairId']=_0xa88412['get'](_0x269cf2[_0x2b9c4d]['pairId']));}['_removeMissingPairs'](_0xee1163){const _0x1599ff=new Set(_0xee1163['map'](_0x1338bf=>_0x1338bf['id']));for(let _0x228a9b=0x0;_0x228a9b<_0xee1163['length'];_0x228a9b++)_0x1599ff['has'](_0xee1163[_0x228a9b]['pairId'])||0x0==_0xee1163[_0x228a9b]['distance']||(_0xee1163[_0x228a9b]['isIncorrect']=!0x0);return _0xee1163['filter'](_0x516fe9=>!_0x516fe9['isIncorrect']);}['_markMismatchedRemovedTags'](_0x2675d1){const _0x43eb25=new Set();for(let _0x58e564=0x0;_0x58e564<_0x2675d1['length'];_0x58e564++){if(_0x43eb25['has'](_0x2675d1[_0x58e564]['id'])&&_0x2675d1[_0x58e564]['isRemoved']&&(_0x2675d1[_0x58e564]['isIncorrect']=!0x0),_0x2675d1[_0x58e564]['isIncorrect'])continue;if(0x0==_0x2675d1[_0x58e564]['distance'])continue;if('elementStart'!=_0x2675d1[_0x58e564]['type'])continue;if(null==_0x2675d1[_0x58e564]['pairId'])continue;let _0x207625=_0x58e564+0x1,_0x5afc15=0x0;for(;_0x2675d1[_0x207625]['id']!=_0x2675d1[_0x58e564]['pairId'];)'elementStart'==_0x2675d1[_0x207625]['type']?_0x5afc15++:'elementEnd'==_0x2675d1[_0x207625]['type']&&_0x5afc15--,_0x207625++;if(0x0!=_0x5afc15){if(_0x2675d1[_0x58e564]['isRemoved'])_0x2675d1[_0x58e564]['isIncorrect']=!0x0;else{for(;_0x207625!=_0x58e564;)_0x2675d1[_0x207625]['isRemoved']&&0x0!=_0x2675d1[_0x207625]['distance']&&(_0x2675d1[_0x207625]['isIncorrect']=!0x0,_0x43eb25['add'](_0x2675d1[_0x207625]['pairId'])),_0x207625--;}}}return _0x2675d1['filter'](_0x3c5aba=>!_0x3c5aba['isIncorrect']);}['_removeUnsupportedChanges'](_0x2f43f9){const _0x2c46e2=this['editor']['model']['schema'];for(let _0x2dca41=0x0;_0x2dca41<_0x2f43f9['length'];_0x2dca41++){if(!(_0x2f43f9[_0x2dca41]['isAdded']||_0x2f43f9[_0x2dca41]['isAddSuggestion']||_0x2f43f9[_0x2dca41]['isRemoved']||_0x2f43f9[_0x2dca41]['isRemoveSuggestion']))continue;if(0x0==_0x2f43f9[_0x2dca41]['distance'])continue;const _0x4893dc=_0x2f43f9[_0x2dca41]['item'];_0x2c46e2['isBlock'](_0x4893dc)||_0x2c46e2['isLimit'](_0x4893dc)||(_0x2f43f9[_0x2dca41]['isAdded']&&delete _0x2f43f9[_0x2dca41]['isAdded'],_0x2f43f9[_0x2dca41]['isAddSuggestion']&&delete _0x2f43f9[_0x2dca41]['isAddSuggestion'],_0x2f43f9[_0x2dca41]['isRemoveSuggestion']&&delete _0x2f43f9[_0x2dca41]['isRemoveSuggestion'],_0x2f43f9[_0x2dca41]['isRemoved']&&(_0x2f43f9[_0x2dca41]['isIncorrect']=!0x0));}return _0x2f43f9['filter'](_0x42d17e=>!_0x42d17e['isIncorrect']);}['_makeModelFromTape'](_0x35033c,_0x490b43,_0x1aae0a){const _0x63035d=new mt(),_0x103830=[],_0x76f663=new Map(),_0xddd6d9=this['editor']['model'],_0x5f1519=_0xddd6d9['schema'],_0x29b9a1=[_0x63035d],_0x1c69db={},_0x225a6e={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x57804a=null;const _0x4eee1a=[0x0];for(let _0x165c90=0x0;_0x165c90<_0x35033c['length'];_0x165c90++)if('elementStart'===_0x35033c[_0x165c90]['type']){_0x35033c[_0x165c90]['previousPosition']=_0xddd6d9['createPositionFromPath'](_0x63035d,_0x4eee1a);const _0x439672=new ft(_0x35033c[_0x165c90]['item']['name'],_0x35033c[_0x165c90]['item']['getAttributes']());_0x29b9a1[0x0]['_appendChild'](_0x439672),_0x4eee1a['push'](0x0),_0x29b9a1['unshift'](_0x439672),_0x35033c[_0x165c90]['nextPosition']=_0xddd6d9['createPositionFromPath'](_0x63035d,_0x4eee1a);}else'elementEnd'===_0x35033c[_0x165c90]['type']?(_0x29b9a1['shift'](),_0x35033c[_0x165c90]['previousPosition']=_0xddd6d9['createPositionFromPath'](_0x63035d,_0x4eee1a),_0x4eee1a['pop'](),_0x4eee1a[_0x4eee1a['length']-0x1]++,_0x35033c[_0x165c90]['nextPosition']=_0xddd6d9['createPositionFromPath'](_0x63035d,_0x4eee1a)):(_0x35033c[_0x165c90]['previousPosition']=_0xddd6d9['createPositionFromPath'](_0x63035d,_0x4eee1a),_0x57804a?_0x57804a['_data']+=_0x35033c[_0x165c90]['item']['data']:_0x57804a=new wt(_0x35033c[_0x165c90]['item']['data'],_0x35033c[_0x165c90]['item']['getAttributes']()),_0x35033c[_0x165c90+0x1]&&'text'===_0x35033c[_0x165c90+0x1]['type']&&_0x199a72(_0x57804a,_0x35033c[_0x165c90+0x1]['item'])||(_0x29b9a1[0x0]['_appendChild'](_0x57804a),_0x57804a=null),_0x4eee1a[_0x4eee1a['length']-0x1]+=_0x35033c[_0x165c90]['item']['offsetSize'],_0x35033c[_0x165c90]['nextPosition']=_0xddd6d9['createPositionFromPath'](_0x63035d,_0x4eee1a));for(let _0x262486=0x0;_0x262486<_0x35033c['length'];_0x262486++){const _0x1057fd=_0x35033c[_0x262486]['previousPosition'],_0x51b987=_0x35033c[_0x262486]['nextPosition'];for(const _0x238d9e of _0x35033c[_0x262486]['markersStart'])_0x76f663['set'](_0x238d9e,{'start':_0x1057fd,'end':null});_0xe963e9('isRemoveSuggestion',_0x262486,_0x1057fd,_0x51b987),_0xe963e9('isAddSuggestion',_0x262486,_0x1057fd,_0x51b987),_0xe963e9('isRemoved',_0x262486,_0x1057fd,_0x51b987),_0xe963e9('isAdded',_0x262486,_0x1057fd,_0x51b987);for(const _0x53b7ab of _0x35033c[_0x262486]['markersEnd']){_0x76f663['get'](_0x53b7ab)['end']=_0x51b987;}}for(const [_0x88a8c8,_0x3b0189]of _0x76f663){const _0x542d5c=this['editor']['model']['createRange'](_0x3b0189['start'],_0x3b0189['end']);_0x63035d['markers']['set'](_0x88a8c8,_0x542d5c);}return _0x103830['sort']((_0x4278e4,_0x535987)=>{const _0x1baf11=_0x63035d['markers']['get']('revision:'+_0x4278e4['id']),_0x1638c7=_0x63035d['markers']['get']('revision:'+_0x535987['id']);return _0x1baf11['start']['isBefore'](_0x1638c7['start'])?-0x1:_0x1baf11['start']['isAfter'](_0x1638c7['start'])?0x1:_0x1baf11['end']['isBefore'](_0x1638c7['end'])?-0x1:_0x1baf11['end']['isAfter'](_0x1638c7['end'])?0x1:'add'===_0x4278e4['type']?-0x1:0x1;}),{'root':_0x63035d,'changes':_0x103830};function _0xe963e9(_0x1ecf50,_0x24131b,_0x3e31d1,_0x4c5b2d){const _0x308f2c=!!_0x35033c[_0x24131b][_0x1ecf50],_0x5aef51=_0x308f2c?_0x35033c[_0x24131b][_0x1ecf50]['userId']:null,_0x1e85c8=_0x24131b===_0x35033c['length']-0x1,_0x3ef1c0=_0x225a6e[_0x1ecf50][0x0],_0x1c7725=_0x5f1519['isObject'](_0x35033c[_0x24131b]['item']);!_0x1c69db[_0x1ecf50]&&_0x308f2c?_0x1c69db[_0x1ecf50]={'start':_0x3e31d1,'tapeItem':_0x35033c[_0x24131b],'userId':_0x5aef51,'type':_0x1ecf50}:_0x1c69db[_0x1ecf50]&&!_0x308f2c?(_0x1c69db[_0x1ecf50]['end']=_0x3e31d1,_0x44135b(_0x1c69db[_0x1ecf50]),_0x1c69db[_0x1ecf50]=null):_0x1c69db[_0x1ecf50]&&_0x308f2c&&_0x1c69db[_0x1ecf50]['userId']!==_0x5aef51&&(_0x1c69db[_0x1ecf50]['end']=_0x3e31d1,_0x3ef1c0&&_0x3ef1c0['userId']===_0x1c69db[_0x1ecf50]['userId']||_0x44135b(_0x1c69db[_0x1ecf50]),_0x1c69db[_0x1ecf50]={'start':_0x3e31d1,'tapeItem':_0x35033c[_0x24131b],'userId':_0x5aef51,'type':_0x1ecf50}),_0x1c69db[_0x1ecf50]&&_0x1c7725&&('elementStart'!==_0x35033c[_0x24131b]['type']||_0x3ef1c0&&_0x3ef1c0['userId']===_0x5aef51||_0x225a6e[_0x1ecf50]['unshift']({'userId':_0x5aef51,'object':_0x35033c[_0x24131b]['item'],'change':_0x1c69db[_0x1ecf50]}),'elementEnd'===_0x35033c[_0x24131b]['type']&&_0x3ef1c0&&_0x3ef1c0['object']===_0x35033c[_0x24131b]['item']&&(_0x225a6e[_0x1ecf50]['shift'](),_0x1c69db[_0x1ecf50]=_0x3ef1c0['change'])),_0x1c69db[_0x1ecf50]&&_0x1e85c8&&(_0x1c69db[_0x1ecf50]['end']=_0x4c5b2d,_0x44135b(_0x1c69db[_0x1ecf50]),_0x1c69db[_0x1ecf50]=null);}function _0x44135b({start:_0x586098,end:_0x46d966,tapeItem:_0x36242f,userId:_0x494bda,type:_0x32dc80}){const _0x2224a7=_0x36242f['item'],_0x3ac218=_0xddd6d9['schema']['isBlock'](_0x2224a7)&&!_0xddd6d9['schema']['isLimit'](_0x2224a7),_0x3dd7e7=_0x586098['nodeAfter']==_0x46d966['parent']&&_0x46d966['isAtStart'];if(_0x3ac218&&_0x3dd7e7)return;const _0x26daa8=_0xddd6d9['createRange'](_0x586098,_0x46d966),_0x442687=_0x490b43['get'](_0x494bda),_0x2fb288=new r({'author':_0x442687,'type':'isAdded'==_0x32dc80||'isAddSuggestion'==_0x32dc80?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x32dc80||'isRemoveSuggestion'==_0x32dc80},'createdAt':new Date(),'rootName':_0x1aae0a});_0x103830['push'](_0x2fb288),_0x63035d['markers']['set']('revision:'+_0x2fb288['id'],_0x26daa8);}function _0x199a72(_0x4ca058,_0x1b42c8){const _0xc81116=_0x4ca058['getAttributes'](),_0xd0c3c8=_0x1b42c8['getAttributes']();for(const _0x53882e of _0xc81116){if(_0x53882e[0x1]!==_0x1b42c8['getAttribute'](_0x53882e[0x0]))return!0x1;_0xd0c3c8['next']();}return _0xd0c3c8['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x10ea7b=>{const _0x13a678=_0x10ea7b['markerName']['split'](':')[0x1],_0x44be3f=this['_getChangeFromId'](_0x13a678);if(!_0x44be3f)return null;const _0x1cd8f9='add'==_0x44be3f['type']?'insertion':'deletion',_0x51e69e=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1cd8f9];return _0x44be3f['data']['isSuggestion']&&_0x51e69e['push']('ck-suggestion-marker-'+_0x1cd8f9+'-new'),this['activeChange']==_0x44be3f&&_0x51e69e['push']('ck-suggestion-marker--active'),{'classes':_0x51e69e,'attributes':{'data-change-id':_0x13a678}};}}),this['editor']['conversion']['for']('upcast')['add'](_0xdb1c36=>{_0xdb1c36['on']('element:pre',(_0xb77127,_0x53d5fd,_0x421787)=>{const _0x22f564=_0x53d5fd['viewItem']['getChild'](0x0);if(!_0x22f564||!_0x22f564['is']('element','code'))return;if(!_0x421787['consumable']['consume'](_0x22f564,{'attributes':['vid_start','vid_end']}))return;const _0x3a9508=_0x53d5fd['modelRange']['start']['nodeAfter'];_0x421787['writer']['setAttribute']('vid_start',_0x22f564['getAttribute']('vid_start'),_0x3a9508),_0x421787['writer']['setAttribute']('vid_end',_0x22f564['getAttribute']('vid_end'),_0x3a9508);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x1c4781=>{_0x1c4781['on']('element',(_0x30ba0c,_0xee2e25,_0x53ea3b)=>{if(!_0x53ea3b['consumable']['consume'](_0xee2e25['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0xee2e25['modelRange']['isCollapsed'])return;const _0x21a792=_0xee2e25['modelRange']['start']['nodeAfter'];_0x21a792['hasAttribute']('vid_start')||_0x21a792['hasAttribute']('vid')||(_0x53ea3b['writer']['setAttribute']('vid_start',_0xee2e25['viewItem']['getAttribute']('vid_start'),_0x21a792),_0x53ea3b['writer']['setAttribute']('vid_end',_0xee2e25['viewItem']['getAttribute']('vid_end'),_0x21a792));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xa49b5c=>_0xa49b5c['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x3c4b67,[,_0x90c2d0])=>{['vid_start','vid_end','vid']['includes'](_0x90c2d0)&&(_0x3c4b67['return']=!0x0,_0x3c4b67['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x2a4118=>{_0x2a4118['on']('attribute:vid',(_0x31835f,_0x272032,_0x3db1d1)=>{if('\x20'!=_0x272032['item']['data']||_0x272032['item']['parent']['maxOffset']>0x1)return;if(!_0x3db1d1['consumable']['consume'](_0x272032['item'],_0x31835f['name']))return;const _0x1a2dde=_0x3db1d1['writer'],_0x59282f=_0x3db1d1['mapper']['toViewRange'](_0x272032['range']);_0x1a2dde['wrap'](_0x59282f,_0x1a2dde['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x176777){const _0x12d98a=_0x176777['plugins']['get']('RevisionViewer');return(_0x1b50ba,_0x33506c,_0x322dea)=>{const _0x42e2ff=_0x33506c['markerName']['split'](':')[0x1],_0x327f06=_0x12d98a['_getChangeFromId'](_0x42e2ff);if(!_0x327f06)return null;const _0x4da2a8='add'==_0x327f06['type']?'split':'merge';if(!_0x322dea['consumable']['test'](_0x33506c['markerRange'],_0x1b50ba['name']))return;const _0x4ea3a7=_0x33506c['markerRange']['getWalker'](),_0x496a4f=_0x33506c['markerRange']['start'],_0x35d18c=_0x176777['model']['schema'];let _0x1d6032=null,_0x10ab34=null,_0x49ad90=!0x1,_0x58e55b=!0x1;for(const _0x2c2a0b of _0x4ea3a7){const _0x5b40db=_0x2c2a0b['item'];_0x49ad90=_0x49ad90||_0x35d18c['isContent'](_0x5b40db);const _0x15bf81=_0x322dea['mapper']['toViewElement'](_0x5b40db);if(_0x15bf81&&_0x15bf81['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2c2a0b['type']&&(_0x35d18c['isBlock'](_0x5b40db)&&!_0x35d18c['isLimit'](_0x5b40db)&&(_0x5b40db['nextSibling']||_0x496a4f['isAtEnd']?_0x1d6032&&_0x1d6032['parent']==_0x5b40db||(_0x1d6032=_0x5b40db,_0x5d192b(_0x2c2a0b['previousPosition']),_0x58e55b=!0x0):_0x10ab34=_0x10ab34||_0x2c2a0b['previousPosition']));}function _0x5d192b(_0x20b603){const _0x5b0e53=_0x322dea['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4da2a8}),_0x3d9f34=_0x322dea['mapper']['toViewPosition'](_0x20b603);_0x327f06['data']['isSuggestion']&&_0x322dea['writer']['addClass']('ck-suggestion-marker-'+_0x4da2a8+'-new',_0x5b0e53),_0x12d98a['activeChange']==_0x327f06&&_0x322dea['writer']['addClass']('ck-suggestion-marker--active',_0x5b0e53),_0x322dea['writer']['insert'](_0x3d9f34,_0x5b0e53),_0x322dea['mapper']['bindElementToMarker'](_0x5b0e53,_0x33506c['markerName']);}_0x49ad90||_0x58e55b||!_0x10ab34||_0x5d192b(_0x10ab34);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x35d0f8,_0x2fd509,_0x427be2)=>{const _0x1b12b3=_0x427be2['mapper']['markerNameToElements'](_0x2fd509['markerName']);if(_0x1b12b3){for(const _0x47f586 of _0x1b12b3)(_0x47f586['hasClass']('ck-suggestion-marker-split')||_0x47f586['hasClass']('ck-suggestion-marker-merge'))&&(_0x427be2['mapper']['unbindElementFromMarkerName'](_0x47f586,_0x2fd509['markerName']),_0x427be2['writer']['remove'](_0x47f586));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x9468f5,_0x1368d1,_0x1895f9)=>{const _0x192d00=_0x1368d1['markerName']['split'](':')[0x1],_0x42937a=this['_getChangeFromId'](_0x192d00);if(!_0x42937a)return null;const _0x91c9a8='add'==_0x42937a['type']?'split':'merge';if(_0x1895f9['consumable']['test'](_0x1368d1['markerRange'],_0x9468f5['name']))for(const _0x313240 of _0x1368d1['markerRange']['getItems']()){if(!_0x313240['is']('element','softBreak'))continue;const _0x58c547=_0x1895f9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x91c9a8}),_0x2b577a=_0x1895f9['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x313240));_0x42937a['data']['isSuggestion']&&_0x1895f9['writer']['addClass']('ck-suggestion-marker-'+_0x91c9a8+'-new',_0x58c547),this['activeChange']==_0x42937a&&_0x1895f9['writer']['addClass']('ck-suggestion-marker--active',_0x58c547),_0x1895f9['writer']['insert'](_0x2b577a,_0x58c547),_0x1895f9['mapper']['bindElementToMarker'](_0x58c547,_0x1368d1['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x48cbd6=>{for(const _0x5045f0 of this['editor']['model']['document']['getRootNames']()){const _0x24ffa4=this['editor']['model']['document']['getRoot'](_0x5045f0),_0x27d184=this['editor']['editing']['view']['document']['getRoot'](_0x5045f0);if(_0x27d184){const _0x24f9f4=_0x24ffa4['getAttribute']('revisionHistoryAttachChange');if(_0x48cbd6['removeAttribute']('data-change-id',_0x27d184),_0x48cbd6['removeClass']('ck-revision-history-root-add',_0x27d184),_0x48cbd6['removeClass']('ck-revision-history-root-remove',_0x27d184),_0x48cbd6['removeClass']('ck-revision-history-root--active',_0x27d184),_0x24f9f4){const _0x487984=this['_getChangeFromId'](_0x24f9f4);if(!_0x487984)return null;_0x48cbd6['setAttribute']('data-change-id',_0x24f9f4,_0x27d184),_0x48cbd6['addClass']('ck-revision-history-root-'+_0x487984['type'],_0x27d184),this['activeChange']==_0x487984&&_0x48cbd6['addClass']('ck-revision-history-root--active',_0x27d184);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0xa18b5c=>'revision-comment:'+_0xa18b5c,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x401038=>'revision-suggestion:'+_0x401038,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x4252f2=>({'name':'suggestion:'+_0x4252f2,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x19a1ed=>{const _0x1684c1=_0x19a1ed['markerName']['split'](':')[0x1];return'insertion'!=_0x1684c1&&'deletion'!=_0x1684c1?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x1684c1]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x1b4380,_0x3a1032,_0x3e5e84)=>{const _0x339b59=_0x3e5e84['mapper']['markerNameToElements'](_0x3a1032['markerName']);if(_0x339b59){for(const _0x236593 of _0x339b59)_0x236593['is']('uiElement')&&(_0x3e5e84['mapper']['unbindElementFromMarkerName'](_0x236593,_0x3a1032['markerName']),_0x3e5e84['writer']['remove'](_0x236593));}},{'priority':'high'});}['_getChangeFromId'](_0x291420){return this['_changeIdToChange']['get'](_0x291420);}['_getViewForChange'](_0x8f85e){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x8f85e),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x1a62dc,_0x4dfe85,_0x5078ae,_0x311a48)=>{_0x311a48&&this['_balloon']['remove'](_0x311a48),_0x5078ae&&(this['_balloon']['add']({'view':_0x5078ae,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x3b233b=this['editor']['editing'],_0x165e6d=this['_getChangeFromId'](_0x5078ae['changeId']);let _0x3b6a42;if(_0x165e6d['data']['isOnRoot']){const _0x5f2be9=_0x3b233b['view']['getDomRoot'](_0x165e6d['rootName']);_0x3b6a42=Array['from'](_0x5f2be9['getClientRects']());}else{const _0x4bf0ab=this['editor']['model']['markers']['get']('revision:'+_0x5078ae['changeId']);_0x3b6a42=Array['from'](_0x3b233b['mapper']['markerNameToElements'](_0x4bf0ab['name']))['map'](_0x98ccb6=>_0x3b233b['view']['domConverter']['mapViewToDom'](_0x98ccb6))['map'](_0x157a15=>Array['from'](_0x157a15['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x3b6a42[0x0];return _0x3b6a42['find'](_0x419e52=>_0x419e52['top']-0x3<=this['_activeViewTarget']['y']&&_0x419e52['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x419e52['left']-0x3<=this['_activeViewTarget']['x']&&_0x419e52['right']+0x3>=this['_activeViewTarget']['x'])||_0x3b6a42[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x4142da,_0x1975c5,_0x4bf05e,_0x5ca5da)=>{this['activeView']=_0x4bf05e?this['_getViewForChange'](_0x4bf05e):null,this['editor']['model']['change'](()=>{const _0x243271=this['editor']['editing'];_0x5ca5da&&(_0x5ca5da['data']['isOnRoot']?_0x243271['view']['change'](_0x295d12=>{_0x295d12['removeClass']('ck-revision-history-root--active',_0x243271['view']['document']['getRoot'](_0x5ca5da['rootName']));}):_0x243271['reconvertMarker']('revision:'+_0x5ca5da['id'])),_0x4bf05e&&(_0x4bf05e['data']['isOnRoot']?_0x243271['view']['change'](_0x8ebdbc=>{_0x8ebdbc['addClass']('ck-revision-history-root--active',_0x243271['view']['document']['getRoot'](_0x4bf05e['rootName']));}):_0x243271['reconvertMarker']('revision:'+_0x4bf05e['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x56c5d0,_0x5bf2cd)=>{if(this['activeChange'])return;const _0x19b908=this['_findChangeIdFromDomTarget'](_0x5bf2cd['target']),_0x36e9b6=this['_changeIdToChange']['get'](_0x19b908);_0x36e9b6?(this['_activeViewTarget']={'x':_0x5bf2cd['domEvent']['x'],'y':_0x5bf2cd['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x36e9b6)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x175943,_0x4d519b)=>{const _0x1e137e=this['_findChangeIdFromDomTarget'](_0x4d519b['target']),_0x137087=this['_changeIdToChange']['get'](_0x1e137e);_0x137087?(this['_activeViewTarget']={'x':_0x4d519b['domEvent']['x'],'y':_0x4d519b['domEvent']['y']},_0x137087===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x137087):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x2d2898){do{const _0x54804f=_0x2d2898['getAttribute']('data-change-id');if(_0x54804f)return _0x54804f;_0x2d2898=_0x2d2898['parent'];}while(_0x2d2898);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x50fa0a=>{for(const _0x545979 of this['editor']['model']['markers'])_0x50fa0a['removeMarker'](_0x545979);});}}function Z(_0x13e93f,_0x2beecf){return(_0x5da5af,_0xab72c7,_0x44fc60)=>{if(!_0x44fc60['consumable']['test'](_0xab72c7['markerRange'],_0x5da5af['name']))return;const _0x14c6c6=_0xab72c7['markerRange']['getWalker'](),_0x1cadb8=_0xab72c7['markerRange']['start'],_0x4e502d=_0x13e93f['model']['schema'];let _0x5a304c=null,_0x32a19f=null,_0x440827=!0x1,_0x14e7b2=!0x1;for(const _0x141730 of _0x14c6c6){const _0x4d5465=_0x141730['item'];_0x440827=_0x440827||_0x4e502d['isContent'](_0x4d5465);const _0x4ec594=_0x44fc60['mapper']['toViewElement'](_0x4d5465);if(_0x4ec594&&_0x4ec594['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x141730['type']&&(_0x4e502d['isBlock'](_0x4d5465)&&!_0x4e502d['isLimit'](_0x4d5465)&&(_0x4d5465['nextSibling']||_0x1cadb8['isAtEnd']?_0x5a304c&&_0x5a304c['parent']==_0x4d5465||(_0x5a304c=_0x4d5465,_0x1fdb7f(_0x141730['previousPosition']),_0x14e7b2=!0x0):_0x32a19f=_0x32a19f||_0x141730['previousPosition']));}function _0x1fdb7f(_0x50aa3a){const _0x4e01cc=_0x44fc60['mapper']['toViewPosition'](_0x50aa3a),_0x31a5c7=_0x44fc60['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x2beecf});_0x44fc60['writer']['insert'](_0x4e01cc,_0x31a5c7),_0x44fc60['mapper']['bindElementToMarker'](_0x31a5c7,_0xab72c7['markerName']);}_0x440827||_0x14e7b2||!_0x32a19f||_0x1fdb7f(_0x32a19f);};}class pt extends _0x373fcf{constructor(_0x4419b8){super(_0x4419b8);const _0x3a7db8=_0x4419b8['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x3a7db8,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3a7db8,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x4d5915=this['editor'],_0x501ea9=_0x4d5915['plugins']['get'](d),_0x1407a1=_0x501ea9['isReady']?_0x501ea9['diff']['newRevisionId']:null;_0x4d5915['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1407a1);}['refresh'](){const {isReady:_0x2b7bfb,isEnabled:_0x1b5ae2,repository:_0x50c3aa,diff:_0x180f3f}=this['editor']['plugins']['get'](d),_0x105827=_0x180f3f&&_0x50c3aa['getLaterVisibleRevision'](_0x180f3f['newRevisionId']);this['isEnabled']=_0x2b7bfb&&_0x1b5ae2&&Boolean(_0x105827);}}class _t extends _0x373fcf{['_step'];constructor(_0x401e48,{direction:_0x3c1995}){super(_0x401e48);const _0x5a400e=_0x401e48['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x3c1995?0x1:-0x1,this['listenTo'](_0x5a400e,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5a400e,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x5a400e,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x4ff813=this['editor'],_0x1f54f7=_0x4ff813['plugins']['get'](d),{isNavigationMode:_0x410716,currentChangeNumber:_0x30ce27}=_0x1f54f7;let _0x5e543d;if(_0x1f54f7['activeChange']=_0x410716?_0x1f54f7['diff']['changes']['get'](_0x30ce27+this['_step']):_0x1f54f7['diff']['changes']['first'],_0x1f54f7['activeChange']['data']['isOnRoot'])_0x5e543d=_0x4ff813['editing']['view']['getDomRoot'](_0x1f54f7['activeChange']['rootName']);else{const _0x49ede5=_0x4ff813['model']['markers']['get']('revision:'+_0x1f54f7['activeChange']['id']);_0x5e543d=_0x368c0e(_0x4ff813['editing'],_0x49ede5);}_0xfed6b8({'target':_0x5e543d,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x21283c,currentChangeNumber:_0x1d3d99,numberOfChanges:_0xdd1cd2,isReady:_0x51a503,isEnabled:_0x4fe225}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x4fe225&&_0x51a503&&_0xdd1cd2)&&(!_0x21283c||(0x1===this['_step']?_0x1d3d99<_0xdd1cd2-0x1:_0x1d3d99>0x0));}}class ei extends ts{constructor(_0x53ce52){super(_0x53ce52);const _0x564a4d=this['bindTemplate'],_0x42cd71=new te(_0x53ce52),_0x2b2b0e=new te(_0x53ce52);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',(_0x5aeb96,_0x2af107)=>_0x5aeb96&&_0x2af107>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x2787fd,_0x591cdb,_0x4e0d63,_0x55c289)=>{if(!_0x2787fd)return m(_0x53ce52,'Loading...');if(!_0x4e0d63)return m(_0x53ce52,'No\x20changes');const _0x224ab2=m(_0x53ce52,'NUMBER_OF_CHANGES',_0x4e0d63);return _0x55c289?m(_0x53ce52,'X_OF_Y_CHANGES',[_0x591cdb+0x1,_0x4e0d63]):_0x224ab2;}),_0x42cd71['set']({'label':m(_0x53ce52,'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'}),_0x2b2b0e['set']({'label':m(_0x53ce52,'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'}),_0x42cd71['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2b2b0e['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x42cd71['on']('execute',()=>this['fire']('execute','backward')),_0x2b2b0e['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',_0x564a4d['if']('_isStatusLabelVisible','ck-hidden',_0x237f2b=>!_0x237f2b)]},'children':[{'text':_0x564a4d['to']('isNavigationMode',_0x17eda0=>_0x17eda0?m(_0x53ce52,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x53ce52,'Total')+':\x20')}]},{'text':_0x564a4d['to']('_statusText')}]},new _0x1152d7(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x42cd71,_0x2b2b0e]}]});}}const le='ck-editor__editable__loading-overlay';class de extends _0x43da28{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x2d720f=this['editor']['editing']['view'];_0x2d720f['change'](_0x400340=>{for(const _0x14fba3 of _0x2d720f['document']['roots'])_0x400340['addClass'](le,_0x14fba3);});}['hide'](){const _0x16a8b8=this['editor']['editing']['view'];_0x16a8b8['change'](_0x14df13=>{for(const _0x4efbfd of _0x16a8b8['document']['roots'])_0x14df13['removeClass'](le,_0x4efbfd);});}}class g extends _0x43da28{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,de];}['init'](){const _0x39703e=this['editor'],_0x30b188=_0x39703e['plugins']['get'](d),_0x4a8186=_0x39703e['plugins']['get'](de);_0x39703e['ui']['componentFactory']['add']('exitToEditing',_0x3b84f2=>{const _0x302ce4=new te(_0x3b84f2);return _0x302ce4['set']({'label':m(_0x3b84f2,'Back\x20to\x20editing'),'icon':_0x5b095b['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x302ce4,'execute',()=>{_0x39703e['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x302ce4;}),_0x39703e['ui']['componentFactory']['add']('restoreRevision',_0x5aeccb=>{const _0x1993ea=new te(_0x5aeccb);return _0x1993ea['set']({'label':m(_0x5aeccb,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x1993ea['bind']('isEnabled')['to'](_0x39703e['commands']['get']('restoreRevision')),this['listenTo'](_0x1993ea,'execute',()=>_0x39703e['execute']('restoreRevision')),_0x1993ea;}),_0x39703e['ui']['componentFactory']['add']('changesNavigation',_0x15d9bb=>{const _0x10cbae=new ei(_0x15d9bb),_0x161398=_0x39703e['commands']['get']('showPreviousChange'),_0x4eee3d=_0x39703e['commands']['get']('showNextChange');return _0x10cbae['bind']('isBackwardNavigationEnabled')['to'](_0x161398,'isEnabled'),_0x10cbae['bind']('isForwardNavigationEnabled')['to'](_0x4eee3d,'isEnabled'),_0x10cbae['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x30b188),this['listenTo'](_0x10cbae,'execute',(_0x32bc3c,_0x19626b)=>{_0x39703e['execute']('forward'===_0x19626b?'showNextChange':'showPreviousChange');}),_0x10cbae;}),_0x4a8186['show'](),_0x30b188['on']('change:isReady',(_0x5aabe7,_0x53bea7,_0x249286)=>{_0x249286?_0x4a8186['hide']():_0x4a8186['show']();});}}class at extends _0x3333b0{['_resizeObserver']=null;constructor(_0x1a4268,_0x3dc926){super(_0x1a4268,_0x3dc926);const _0x2e474e=this['bindTemplate'];this['set']({'label':m(_0x1a4268,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x1a4268,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x2e474e['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x552857=this['fieldView']['element'];this['_tooltipString']=_0x552857['scrollWidth']>_0x552857['clientWidth']&&_0x552857['value']||'';}}class ni extends ts{constructor(_0x1f5f7f,_0x4c8e0f,_0x4dafa4){super(_0x1f5f7f);const _0x1900ef=new _0x34f4ef();_0x1900ef['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 _0x33031d=['ck','ck-revision-history-sidebar__revision-author'];_0x4dafa4&&_0x33031d['push']('ck-revision-history-sidebar__revision-author_creator');const _0x57a756=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x1f5f7f,_0x4dafa4?'Revision\x20creator':'Revision\x20author')},'children':[_0x1900ef,_0x4c8e0f['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x33031d},'children':_0x57a756});}}function ci(_0x1d2934,_0x3c9ae9){const _0xc107b4=_0x1d2934['bindTemplate'],_0x7a74d=_0x1d2934['locale'],_0x41448a=_0x47471b(_0x7a74d);_0x41448a['panelPosition']='sw';const _0x439be1=function(_0xd5cf62,_0x53e12e){const _0x2db475=function(_0xa6832f,_0x497c40){const _0xf76a25=_0xa6832f['locale'],_0x224e3f={'Compare\x20against\x20selected':m(_0xf76a25,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0xf76a25,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0xf76a25,'Restore\x20this\x20revision')};return _0x497c40['map'](_0x2d5794=>{const _0x477b4b=_0x224e3f[_0x2d5794['name']];return _0x477b4b&&_0x477b4b!==_0x2d5794['name']&&(_0x2d5794['name']=_0x477b4b),_0x2d5794;});}(_0xd5cf62,_0x53e12e),_0x4def37=new _0x13b5e8();for(const _0x133184 of _0x2db475){const _0x48330f={'type':'button','model':new _0x45eb5e({'label':_0x133184['name'],'class':_0x133184['class'],'withText':!0x0,'role':'menuitem','_action':_0x133184['action']})};_0x48330f['model']['bind']('isEnabled')['to'](_0xd5cf62,'isActionsDropdownOpen',_0x4a49e5=>'function'!=typeof _0x133184['isEnabled']||(!_0x4a49e5||_0x133184['isEnabled'](_0xd5cf62))),_0x4def37['add'](_0x48330f);}return _0x4def37;}(_0x1d2934,_0x3c9ae9);return _0x1d2934['bind']('isActionsDropdownOpen')['to'](_0x41448a,'isOpen'),_0x41448a['buttonView']['set']({'label':m(_0x7a74d,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x5b095b['threeVerticalDots']}),_0x41448a['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0xc107b4['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0xc107b4['to'](_0x2301f8=>_0x2301f8['stopPropagation']())}}),_0x41448a['on']('execute',_0x372e5c=>{_0x1d2934['isReady']&&'function'==typeof _0x372e5c['source']['_action']&&_0x372e5c['source']['_action'](_0x1d2934);}),to(_0x41448a,_0x439be1,{'role':'menu'}),_0x41448a['listenTo'](_0x1d2934,'change:isActionsDropdownOpen',(_0x3170ff,_0x9b6702,_0x10b2c4)=>{if(_0x10b2c4)for(const _0x271ca1 of _0x41448a['listView']['items']){const _0xb599fa=_0x271ca1['children']['first'],_0x2a7447=_0x3c9ae9['find'](_0x5d631c=>_0x5d631c['action']===_0xb599fa['_action'])['isVisible'];_0x271ca1['isVisible']=void 0x0===_0x2a7447||_0x2a7447(_0x1d2934);}}),_0x41448a;}class di extends/* #__PURE__ -- @preserve */
26
- _0x5af527(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x5ee0c8,_0x2a1c57,_0x4a4c66,_0xa2c7a8){super(_0x5ee0c8);const _0x16cea2=this['bindTemplate'],_0x340e15=function(_0x5a4333,_0x2a3aff){const _0x5e28eb=Array['from'](_0x2a3aff['authors'])['filter'](_0x2f2a3d=>_0x2f2a3d!=_0x2a3aff['creator']);return _0x2a3aff['creator']&&_0x5e28eb['unshift'](_0x2a3aff['creator']),_0x5e28eb['map'](_0x52cd06=>new ni(_0x5a4333,_0x52cd06,_0x52cd06==_0x2a3aff['creator']));}(_0x5ee0c8,_0x2a1c57);this['id']=_0x2a1c57['id'],this['_revision']=_0x2a1c57,this['_requireRevisionName']=_0xa2c7a8,this['bind']('name','createdAt')['to'](_0x2a1c57),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x53e0be=>{return _0x31e26f=_0x5ee0c8['uiLanguage'],(_0x1a491c=_0x53e0be)['toLocaleDateString'](_0x31e26f,{'month':'long','day':'numeric'})+',\x20'+_0x1a491c['toLocaleTimeString'](_0x31e26f,{'hour':'numeric','minute':'numeric'});var _0x31e26f,_0x1a491c;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x5ee0c8,_0x380cb7),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x32b886=>_0x32b886||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x21aece,_0xf5cf77)=>_0x21aece&&_0xf5cf77),this['revisionActionsView']=_0x4a4c66&&_0x4a4c66['length']?ci(this,_0x4a4c66):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x16cea2['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x16cea2['if']('isEnabled','ck-disabled',_0x3cac22=>!_0x3cac22),_0x16cea2['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x16cea2['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x16cea2['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':_0x16cea2['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':_0x340e15}]},this['revisionActionsView']],'on':{'click':_0x16cea2['to'](_0x1d9651=>{_0x1d9651['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x5b4576=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x5b4576,'change',()=>{this['_requireRevisionName']&&!_0x5b4576['value']||this['fire']('setName',{'id':this['id'],'name':_0x5b4576['value']}),_0x5b4576['value']||(_0x5b4576['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function mi(_0x49fc75,_0x46f32e){const _0x5333ab=_0x26d640['fromJSDate'](_0x49fc75)['setLocale'](_0x46f32e),_0x11d2b5=_0x26d640['local'](),_0x2934e9=_0x11d2b5['minus']({'days':0x1})['startOf']('day');let _0x598edd,_0x12dac9;return _0x5333ab['hasSame'](_0x11d2b5,'day')?(_0x598edd=_0x5333ab['startOf']('day')['toJSDate'](),_0x12dac9=_0x5333ab['toRelativeCalendar']()):_0x5333ab['hasSame'](_0x2934e9,'day')?(_0x598edd=_0x2934e9['toJSDate'](),_0x12dac9=_0x5333ab['toRelativeCalendar']()):_0x5333ab['hasSame'](_0x11d2b5,'week')?(_0x598edd=_0x5333ab['startOf']('week')['toJSDate'](),_0x12dac9=_0x5333ab['weekdayLong']||''):_0x5333ab['hasSame'](_0x11d2b5,'year')?(_0x598edd=_0x5333ab['startOf']('month')['toJSDate'](),_0x12dac9=_0x5333ab['monthLong']||''):(_0x598edd=_0x5333ab['startOf']('year')['toJSDate'](),_0x12dac9=String(_0x5333ab['year'])),{'startDate':_0x598edd,'localizedPeriodName':_0x12dac9};}class vi extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3bbdfd,_0x581e3a,_0x2cbb24,_0x36086f){super(_0x3bbdfd);const _0x2b0e0f=mi(_0x581e3a,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x581e3a,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x2cbb24,this['_requireRevisionName']=_0x36086f,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':_0x2b0e0f}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x2e29c6){const _0x49268f=new di(this['locale'],_0x2e29c6,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x49268f);}['removeRevision'](_0x4abf80){const _0x4ef681=this['revisionViews']['find'](_0x5937cf=>_0x5937cf['id']===_0x4abf80['id']);this['revisionViews']['remove'](_0x4ef681);}}class as extends ts{constructor(_0x4fd662){super(_0x4fd662);const _0x16fc13=new _0x34f4ef();_0x16fc13['content']=_0x5b095b['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x16fc13,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x4fd662,'Revision\x20history')]}]});}}class li extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2ea771,_0x56564a,_0x261042,_0x5112d0){super(_0x2ea771);const _0x56989c=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x56564a,this['_revisionActions']=_0x261042,this['_requireRevisionName']=_0x5112d0,this['on']('select',(_0x45c24c,_0x160d2a)=>{this['fire']('revisionSelected',_0x160d2a);}),this['on']('setName',(_0x106704,_0x3405fb)=>{this['fire']('revisionSetName',_0x3405fb);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x2ea771),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x56989c['if']('isEnabled','ck-disabled',_0xf35ca=>!_0xf35ca)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x74a829 of this['_revisions'])this['_addRevision'](_0x74a829);this['_revisions']['on']('add',(_0x19cefb,_0xe16f9f)=>{this['_addRevision'](_0xe16f9f);}),this['_revisions']['on']('remove',(_0xe5f89b,_0x533b00)=>{this['_removeRevision'](_0x533b00);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x274847=>_0x274847['revisionViews']['map'](_0x46571b=>_0x46571b))['flat']();}['selectRevision'](_0x4a7a49){for(const _0x146703 of this['revisionViews'])_0x4a7a49&&_0x4a7a49['id']===_0x146703['id']?_0x146703['select']():_0x146703['deselect']();}['highlightRevisions'](_0x18e05f){for(const _0x177baa of this['revisionViews'])_0x18e05f['some'](({id:_0x366abc})=>_0x366abc===_0x177baa['id'])?_0x177baa['highlight']():_0x177baa['unhighlight']();}['_addRevision'](_0x3594c3){const _0x915845=mi(_0x3594c3['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x2a2f3d=this['timePeriodViews']['get'](0x0);_0x2a2f3d&&_0x2a2f3d['startDate']['getTime']()===_0x915845['getTime']()||(_0x2a2f3d=new vi(this['locale'],_0x915845,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x2a2f3d)),_0x2a2f3d['addRevision'](_0x3594c3);}['_removeRevision'](_0x6ec81d){const _0x1dde9d=mi(_0x6ec81d['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x1dde9d)['removeRevision'](_0x6ec81d);}['_getTimePeriodViewByStartDate'](_0x458de9){return this['timePeriodViews']['find'](_0x5b63f0=>_0x5b63f0['startDate']['getTime']()===_0x458de9['getTime']());}}class w extends _0x43da28{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x361808,uid as _0x4e1ee9,Collection as _0x25f72c,logWarning as _0x2dd246,FocusTracker as _0x4cc23d,KeystrokeHandler as _0x33cb8e,scrollViewportToShowTarget as _0x4bb92e,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x5d082f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0xf7ee50,set as _0x186c7c,unset as _0x5d781c,isEqual as _0x141d69}from'lodash-es';import{Plugin as _0x53f3b9,PendingActions as _0x1876bc,icons as _0x48df4e,Command as _0x180034,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0xf2dc20,getMarkerDomElement as _0x3219e2,ConfirmMixin as _0x56f41d,sanitizeEditorConfig as _0x3f3f9e}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x12b0a7,Element as ft,Range as vt,ViewUIElement as _0x2eb804,ViewRawElement as _0x53bb2c,ViewEmptyElement as _0x35fb3e,ViewAttributeElement as _0x3290cf,ViewContainerElement as _0x2b87d7,Position as gt,ViewText as _0x49cfbb,ViewElement as _0x5213af,DocumentFragment as mt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x2110a1,injectCssTransitionDisabler as ts,submitHandler as _0x665807,LabeledFieldView as nt,createLabeledInputText as _0x176e3c,createDropdown as _0x221db2,ListView as _0x4d2cd0,ListItemView as te,ButtonView as _0x397beb,MenuBarMenuView as _0x70d87,MenuBarMenuListView as _0x59534d,MenuBarMenuListItemView as _0x4f1daf,MenuBarMenuListItemButtonView as _0x31a9d4,ContextualBalloon as _0x5f3aac,ToolbarSeparatorView as _0x42d84f,IconView as _0x5cb0f1,addListToDropdown as _0x4138fc,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as ut,ToolbarView as lt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x414ca5}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
+ _0x361808(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x262f7a){super(),this['id']=_0x262f7a['id']||_0x4e1ee9(),this['creator']=_0x262f7a['creator']||null,this['authors']=_0x262f7a['authors']||[],this['diffData']=_0x262f7a['diffData']||null,this['toVersion']=_0x262f7a['toVersion']||0x0,this['fromVersion']=_0x262f7a['fromVersion']||0x0,this['set']('name',_0x262f7a['name']||''),this['set']('createdAt',_0x262f7a['createdAt']||new Date()),this['set']('attributes',_0x262f7a['attributes']||{});}['setName'](_0x32f8db){this['_update']({'name':_0x32f8db});}['setAttribute'](_0x1eb00a,_0x3a69c6){const _0x1b4055=_0xf7ee50(this['attributes']);_0x186c7c(_0x1b4055,_0x1eb00a,_0x3a69c6),this['_update']({'attributes':_0x1b4055});}['removeAttribute'](_0x33ae7d){const _0x3e58eb=_0xf7ee50(this['attributes']);_0x5d781c(_0x3e58eb,_0x33ae7d),this['_update']({'attributes':_0x3e58eb});}['_update'](_0x531a1f,_0x35e44a=!0x1){let _0x4e132e=!0x1;const _0x553351={'id':this['id']},_0x1d161a=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5759cf of _0x1d161a){const _0x30a388=_0x531a1f[_0x5759cf];void 0x0!==_0x30a388&&_0x30a388!==this[_0x5759cf]&&(this[_0x5759cf]=_0x30a388,_0x553351[_0x5759cf]=_0x30a388,_0x4e132e=!0x0);}_0x4e132e&&(_0x553351['authors']&&(_0x553351['authorsIds']=_0x553351['authors']['map'](_0x266020=>_0x266020['id']),delete _0x553351['authors']),this['fire']('_update',_0x553351,_0x35e44a));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x265fed=>_0x265fed['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x53f3b9{['_revisions'];static get['requires'](){return[_0xf2dc20];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x5c0646){super(_0x5c0646),this['_revisions']=new _0x25f72c();}['afterInit'](){!async function(_0x13abc8){const _0x3360d9=_0x126c95([0x41,0x71,0x77,0x49,0x5a,0x46,0x61,0x78,0x6c,0x64,0x38,0x34,0x58,0x74,0x4b,0x79,0x63,0x31,0x47,0x42,0x55,0x7a,0x6e,0x35,0x6a,0x52,0x48,0x4e,0x62,0x4c,0x44,0x73,0x67,0x39,0x6f,0x50,0x43,0x65,0x53,0x57,0x72,0x59,0x76,0x75,0x51,0x4a,0x45,0x68,0x37,0x69,0x56,0x36,0x6d,0x33,0x66,0x30,0x4d,0x70,0x54,0x32,0x6b,0x4f]),_0x2962bb=0xeb829,_0x104c7f=0x6dfb5c61,_0x37e085=0x6dfc3cd1^_0x104c7f,_0x353161=window[_0x126c95([0x44,0x61,0x74,0x65])][_0x126c95([0x6e,0x6f,0x77])](),_0x2305da=_0x13abc8[_0x126c95([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2feb14=new window[(_0x126c95([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1313f8=>{_0x2305da[_0x126c95([0x6f,0x6e,0x63,0x65])](_0x126c95([0x72,0x65,0x61,0x64,0x79]),_0x1313f8);}),_0x285619={[_0x126c95([0x6b,0x74,0x79])]:_0x126c95([0x45,0x43]),[_0x126c95([0x75,0x73,0x65])]:_0x126c95([0x73,0x69,0x67]),[_0x126c95([0x63,0x72,0x76])]:_0x126c95([0x50,0x2d,0x32,0x35,0x36]),[_0x126c95([0x78])]:_0x126c95([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]),[_0x126c95([0x79])]:_0x126c95([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]),[_0x126c95([0x61,0x6c,0x67])]:_0x126c95([0x45,0x53,0x32,0x35,0x36])},_0x416e76=_0x2305da[_0x126c95([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x126c95([0x67,0x65,0x74])](_0x126c95([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4bc703(){let _0x4c3bc5,_0x33611b=null,_0x45af13=null;try{if(_0x416e76==_0x126c95([0x47,0x50,0x4c]))return _0x126c95([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4c3bc5=_0x3e73ab(),!_0x4c3bc5)return _0x126c95([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4c3bc5[_0x126c95([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x45af13=_0x33bd1a(_0x4c3bc5[_0x126c95([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4c3bc5[_0x126c95([0x6a,0x74,0x69])])),await _0x40c41a()?_0x4ece58()?_0x21b92b()?_0x126c95([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4d86c9()?(_0x4c3bc5[_0x126c95([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x126c95([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x33611b=_0x1caeab(_0x126c95([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4c3bc5[_0x126c95([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x126c95([0x74,0x72,0x69,0x61,0x6c])&&(_0x33611b=_0x1caeab(_0x126c95([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x463ae8()):_0x126c95([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x126c95([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x126c95([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3975f3){return _0x126c95([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x21b92b(){const _0x5094bf=[_0x126c95([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x126c95([0x74,0x72,0x69,0x61,0x6c])][_0x126c95([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c3bc5[_0x126c95([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x353161/0x3e8:0xe10*_0x37e085;return _0x4c3bc5[_0x126c95([0x65,0x78,0x70])]<_0x5094bf;}function _0x4ece58(){const _0x1e6231=_0x4c3bc5[_0x126c95([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1e6231)return!0x1;if(_0x1e6231[_0x126c95([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x126c95([0x2a])))return!0x0;if(_0x1e6231[_0x126c95([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x126c95([0x52,0x48])))return!0x0;if(_0x1e6231[_0x126c95([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x126c95([0x52,0x52,0x48]))){if(_0x2cb9b4())return!0x0;if(_0x2387eb()||_0x5eda77())return!0x0;}return!0x1;}function _0x4d86c9(){const _0x2f5797=_0x4c3bc5[_0x126c95([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2f5797||0x0==_0x2f5797[_0x126c95([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x51beea}=new URL(window[_0x126c95([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2f5797[_0x126c95([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51beea))return!0x0;const _0x27b209=_0x51beea[_0x126c95([0x73,0x70,0x6c,0x69,0x74])](_0x126c95([0x2e]));return _0x2f5797[_0x126c95([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5c2971=>_0x5c2971[_0x126c95([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x126c95([0x2a])))[_0x126c95([0x6d,0x61,0x70])](_0x8402=>_0x8402[_0x126c95([0x73,0x70,0x6c,0x69,0x74])](_0x126c95([0x2e])))[_0x126c95([0x73,0x6f,0x6d,0x65])](_0x2ebaa6=>_0x27b209[_0x126c95([0x65,0x76,0x65,0x72,0x79])]((_0x36f191,_0x4b5f17)=>_0x2ebaa6[_0x4b5f17]===_0x36f191||_0x2ebaa6[_0x4b5f17]===_0x126c95([0x2a])));}function _0x463ae8(){return _0x33611b&&_0x45af13?new window[(_0x126c95([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4ffd49,_0x120e77)=>{_0x33611b[_0x126c95([0x74,0x68,0x65,0x6e])](_0x4ffd49,_0x120e77),_0x45af13[_0x126c95([0x74,0x68,0x65,0x6e])](_0x4b8893=>{_0x4b8893!=_0x126c95([0x56,0x61,0x6c,0x69,0x64])&&_0x4ffd49(_0x4b8893);},_0x120e77);}):_0x33611b||_0x45af13||_0x126c95([0x56,0x61,0x6c,0x69,0x64]);}}function _0x33bd1a(_0x3c4970,_0x276dea){return new window[(_0x126c95([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36ab4a=>{if(_0x15b920())return _0x36ab4a(_0x126c95([0x56,0x61,0x6c,0x69,0x64]));_0xac57ad(),_0x2305da[_0x126c95([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x126c95([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3fbd7d=!0x1;const _0x5767fa=_0x4e1ee9();function _0x16c2ed(_0x531fe9){return!!_0x531fe9&&(typeof _0x531fe9===_0x126c95([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x531fe9===_0x126c95([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x531fe9[_0x126c95([0x74,0x68,0x65,0x6e])]===_0x126c95([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x531fe9[_0x126c95([0x63,0x61,0x74,0x63,0x68])]===_0x126c95([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xcf5186(_0x574a86){_0x54f9b8(_0x574a86)[_0x126c95([0x74,0x68,0x65,0x6e])](_0x16fe0d=>{if(!_0x16fe0d||_0x16fe0d[_0x126c95([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x126c95([0x6f,0x6b]))return _0x126c95([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xb4140b(_0x409544(_0x5767fa+_0x276dea))!=_0x16fe0d[_0x126c95([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x126c95([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x126c95([0x56,0x61,0x6c,0x69,0x64]);})[_0x126c95([0x74,0x68,0x65,0x6e])](_0x1080c0=>(_0x2cfc07(),_0x1080c0),()=>{const _0x2509c3=_0x188f23();return null==_0x2509c3?(_0x2cfc07(),_0x126c95([0x56,0x61,0x6c,0x69,0x64])):_0x126c95(_0x353161-_0x2509c3>(0x49f7d861^_0x104c7f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x126c95([0x74,0x68,0x65,0x6e])](_0x36ab4a)[_0x126c95([0x63,0x61,0x74,0x63,0x68])](()=>{_0x36ab4a(_0x126c95([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x204fbc=0x6dcdb2e1^_0x104c7f;function _0x2cfc07(){const _0x3f9d63=_0x126c95([0x6c,0x6c,0x63,0x74,0x2d])+_0xb4140b(_0x409544(_0x3c4970)),_0x1a9ef9=_0x516bdb(_0xb4140b(window[_0x126c95([0x4d,0x61,0x74,0x68])][_0x126c95([0x63,0x65,0x69,0x6c])](_0x353161/_0x204fbc)));window[_0x126c95([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x126c95([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3f9d63,_0x1a9ef9);}function _0x188f23(){const _0x101c1b=_0x126c95([0x6c,0x6c,0x63,0x74,0x2d])+_0xb4140b(_0x409544(_0x3c4970)),_0x34f363=window[_0x126c95([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x126c95([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x101c1b);return _0x34f363?window[_0x126c95([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x516bdb(_0x34f363),0x10)*_0x204fbc:null;}function _0x54f9b8(_0x499bbd){return new window[(_0x126c95([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1ebf6e,_0x2448ae)=>{_0x499bbd[_0x126c95([0x74,0x68,0x65,0x6e])](_0x1ebf6e,_0x2448ae),window[_0x126c95([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2448ae,0x6dfa88a1^_0x104c7f);});}}_0x2305da[_0x126c95([0x6f,0x6e])](_0x126c95([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x51138e,_0x3d1fac)=>{if(_0x3d1fac[0x0]!=_0x3c4970)return _0x36ab4a(_0x126c95([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3d1fac[0x1]={..._0x3d1fac[0x1],[_0x126c95([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5767fa};},{[_0x126c95([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x126c95([0x68,0x69,0x67,0x68])}),_0x2305da[_0x126c95([0x6f,0x6e])](_0x126c95([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x273ee4=>{_0x16c2ed(_0x273ee4[_0x126c95([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3fbd7d=!0x0,_0xcf5186(_0x273ee4[_0x126c95([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x126c95([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x126c95([0x6c,0x6f,0x77])}),_0x2feb14[_0x126c95([0x74,0x68,0x65,0x6e])](()=>{_0x3fbd7d||_0x36ab4a(_0x126c95([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x15b920(){return _0x2305da[_0x126c95([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x126c95([0x76,0x69,0x65,0x77])][_0x126c95([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x126c95([0x61,0x75,0x74,0x6f]);}function _0xac57ad(){_0x2305da[_0x126c95([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x126c95([0x76,0x69,0x65,0x77])][_0x126c95([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x126c95([0x61,0x75,0x74,0x6f]);}}function _0x1caeab(_0x384f26){const _0x2d4aab=[new window[(_0x126c95([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c6771=>setTimeout(_0x5c6771,0x6df262ad^_0x104c7f)),_0x2feb14[_0x126c95([0x74,0x68,0x65,0x6e])](()=>new window[(_0x126c95([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x62bc08=>{const _0x373495=0x6dfb5c66^_0x104c7f,_0x3e8455=_0x13abc8[_0x126c95([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x2dd367(){_0x3e8455[_0x126c95([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x373495&&_0x62bc08();}_0x2dd367(),_0x3e8455[_0x126c95([0x6f,0x6e])](_0x126c95([0x61,0x64,0x64]),_0x2dd367);})),new window[(_0x126c95([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ca5a1=>{function _0x2d8db2(){for(const _0x49d4e3 in window)if(window[_0x126c95([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x126c95([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x49d4e3))&&window[_0x49d4e3]==_0x2962bb)return _0x3ca5a1();_0x2305da[_0x126c95([0x73,0x74,0x61,0x74,0x65])]!=_0x126c95([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x126c95([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2d8db2,0x6dfb4fe9^_0x104c7f);}_0x31cfde(_0x126c95([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x2d8db2();})];return window[_0x126c95([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x126c95([0x72,0x61,0x63,0x65])](_0x2d4aab)[_0x126c95([0x74,0x68,0x65,0x6e])](()=>_0x384f26);}async function _0x1206ff(){if(await _0x2feb14,_0x31cfde(_0x126c95([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x296a01=_0x13abc8[_0x126c95([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x1b386f=_0x13abc8[_0x126c95([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])](_0x296a01[_0x126c95([0x69,0x64])]),_0x5b819f=_0x2220a9(_0x126c95([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x5b819f[_0x126c95([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x296a01['id'],_0x1b386f?_0x1b386f['id']:null,!0x0),_0x5b819f[_0x126c95([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x126c95([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5b819f[_0x126c95([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5b819f[_0x126c95([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x3c05bb,void(_0x5b819f[_0x126c95([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x3c05bb);}if(_0x31cfde(_0x126c95([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x3ac261=_0x2220a9(_0x126c95([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x3ac261[_0x126c95([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x126c95([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3ac261[_0x126c95([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3ac261[_0x126c95([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x3c05bb,_0x3ac261[_0x126c95([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x3c05bb;}_0x2305da[_0x126c95([0x6d,0x6f,0x64,0x65,0x6c])][_0x126c95([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3c05bb,_0x2305da[_0x126c95([0x6d,0x6f,0x64,0x65,0x6c])][_0x126c95([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3c05bb,_0x2305da[_0x126c95([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x126c95([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2cb9b4(){return _0x31cfde(_0x126c95([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2220a9(_0x126c95([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x126c95([0x73,0x74,0x61,0x74,0x65])]==_0x126c95([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2387eb(){return _0x31cfde(_0x126c95([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 _0x5eda77(){return _0x31cfde(_0x126c95([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x545e51(_0x453dda){const _0x15563a=_0x354cc7();_0x2305da[_0x15563a]=_0x126c95([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])+_0x453dda,_0x453dda[_0x126c95([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x126c95([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x354cc7()]=_0x2962bb),_0x453dda!=_0x126c95([0x56,0x61,0x6c,0x69,0x64])&&_0x1206ff();}function _0x354cc7(){const _0xd60c98=window[_0x126c95([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x126c95([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x126c95([0x6e,0x6f,0x77])]())[_0x126c95([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x126c95([0x2e]),'');let _0x50193c=_0x126c95([0x41]);for(let _0x232143=0x0;_0x232143<_0xd60c98[_0x126c95([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x232143+=0x2){let _0x12fdba=window[_0x126c95([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd60c98[_0x126c95([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x232143,_0x232143+0x2));_0x12fdba>=_0x3360d9[_0x126c95([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x12fdba-=_0x3360d9[_0x126c95([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x50193c+=_0x3360d9[_0x12fdba];}return _0x50193c;}function _0x3e73ab(){const _0x2e1b99=_0x416e76[_0x126c95([0x73,0x70,0x6c,0x69,0x74])](_0x126c95([0x2e]));if(0x3!=_0x2e1b99[_0x126c95([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x10f6cc(_0x2e1b99[0x1]);function _0x10f6cc(_0x1c05f1){const _0x22d7e3=_0x409d8c(_0x1c05f1);return _0x22d7e3&&_0x2b5063()?_0x22d7e3:null;function _0x2b5063(){const _0x2f957d=_0x22d7e3[_0x126c95([0x6a,0x74,0x69])],_0x621eb=window[_0x126c95([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f957d[_0x126c95([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2f957d[_0x126c95([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4a78f6={..._0x22d7e3,[_0x126c95([0x6a,0x74,0x69])]:_0x2f957d[_0x126c95([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2f957d[_0x126c95([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4a78f6[_0x126c95([0x76,0x63])],_0x409544(_0x4a78f6)==_0x621eb;}}}async function _0x40c41a(){let _0x5aa340=!0x0;try{const _0x4b9a6d=_0x416e76[_0x126c95([0x73,0x70,0x6c,0x69,0x74])](_0x126c95([0x2e])),[_0x41ffd9,_0x2926d5,_0x5be85c]=_0x4b9a6d;return _0x5423cf(_0x41ffd9),await _0x1e976f(_0x41ffd9,_0x2926d5,_0x5be85c),_0x5aa340;}catch(_0xb779e1){return!0x1;}function _0x5423cf(_0x4bac0b){const _0x27ee1c=_0x409d8c(_0x4bac0b);_0x27ee1c&&_0x27ee1c[_0x126c95([0x61,0x6c,0x67])]==_0x126c95([0x45,0x53,0x32,0x35,0x36])||(_0x5aa340=!0x1);}async function _0x1e976f(_0x23c705,_0x4288c0,_0x553649){const _0x3c439b=window[_0x126c95([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x126c95([0x66,0x72,0x6f,0x6d])](_0x2b558e(_0x553649),_0x70e596=>_0x70e596[_0x126c95([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x15e1a7=new window[(_0x126c95([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x126c95([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x23c705+_0x126c95([0x2e])+_0x4288c0),_0x341fee=window[_0x126c95([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x126c95([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x341fee)return;const _0x141ed4=await _0x341fee[_0x126c95([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x126c95([0x6a,0x77,0x6b]),_0x285619,{[_0x126c95([0x6e,0x61,0x6d,0x65])]:_0x126c95([0x45,0x43,0x44,0x53,0x41]),[_0x126c95([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x126c95([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x126c95([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x341fee[_0x126c95([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x126c95([0x6e,0x61,0x6d,0x65])]:_0x126c95([0x45,0x43,0x44,0x53,0x41]),[_0x126c95([0x68,0x61,0x73,0x68])]:{[_0x126c95([0x6e,0x61,0x6d,0x65])]:_0x126c95([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x141ed4,_0x3c439b,_0x15e1a7)||(_0x5aa340=!0x1);}}function _0x409d8c(_0x22dac4){return _0x22dac4[_0x126c95([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x126c95([0x65,0x79]))?JSON[_0x126c95([0x70,0x61,0x72,0x73,0x65])](_0x2b558e(_0x22dac4)):null;}function _0x2b558e(_0x2a573d){return window[_0x126c95([0x61,0x74,0x6f,0x62])](_0x2a573d[_0x126c95([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x126c95([0x2b]))[_0x126c95([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x126c95([0x2f])));}function _0x409544(_0x598be8){let _0x37f233=0x1505;function _0x98e0ab(_0x68ebfb){for(let _0x93eb24=0x0;_0x93eb24<_0x68ebfb[_0x126c95([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x93eb24++){const _0x4f6770=_0x68ebfb[_0x126c95([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x93eb24);_0x37f233=(_0x37f233<<0x5)+_0x37f233+_0x4f6770,_0x37f233&=_0x37f233;}}function _0x2b7a3c(_0x4cb2fc){Array[_0x126c95([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4cb2fc)?_0x4cb2fc[_0x126c95([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2b7a3c):_0x4cb2fc&&typeof _0x4cb2fc==_0x126c95([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x126c95([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4cb2fc)[_0x126c95([0x73,0x6f,0x72,0x74])]()[_0x126c95([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4087bb,_0x3d4be7])=>{_0x98e0ab(_0x4087bb),_0x2b7a3c(_0x3d4be7);}):_0x98e0ab(window[_0x126c95([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4cb2fc));}return _0x2b7a3c(_0x598be8),_0x37f233>>>0x0;}function _0xb4140b(_0x573cda){return _0x573cda[_0x126c95([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x126c95([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x126c95([0x30]));}function _0x516bdb(_0x521a50){return _0x521a50[_0x126c95([0x73,0x70,0x6c,0x69,0x74])]('')[_0x126c95([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x126c95([0x6a,0x6f,0x69,0x6e])]('');}function _0x31cfde(_0x13c82a){return _0x2305da[_0x126c95([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x126c95([0x68,0x61,0x73])](_0x13c82a);}function _0x2220a9(_0x146ca2){return _0x2305da[_0x126c95([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x126c95([0x67,0x65,0x74])](_0x146ca2);}function _0x3c05bb(){}function _0x126c95(_0x2b63cb){return _0x2b63cb['map'](_0x57e59f=>String['fromCharCode'](_0x57e59f))['join']('');}_0x545e51(await _0x4bc703());}(this);}['createRevision'](_0x1cae60){const _0x395870=this['editor']['plugins']['get']('Users');return new a({'id':_0x1cae60['id'],'name':_0x1cae60['name'],'creator':_0x1cae60['creatorId']?_0x395870['getUser'](_0x1cae60['creatorId']):null,'diffData':_0x1cae60['diffData']||_0x1cae60['data'],'authors':_0x1cae60['authorsIds']['map'](_0x2701af=>_0x395870['getUser'](_0x2701af)),'createdAt':new Date(_0x1cae60['createdAt']),'attributes':_0x1cae60['attributes'],'fromVersion':_0x1cae60['fromVersion'],'toVersion':_0x1cae60['toVersion']});}['addRevision'](_0x3fe43d,_0x4b2a1a=0x0){this['_revisions']['add'](_0x3fe43d,_0x4b2a1a);}['getRevision'](_0x58bde9){return this['_revisions']['get'](_0x58bde9);}['getRevisions'](_0x462bdf={'toJSON':!0x1}){const _0xf89dfd=Array['from'](this['_revisions']);return _0xf89dfd['reverse'](),_0x462bdf['toJSON']?_0xf89dfd['map'](_0x50c3e6=>_0x50c3e6['toJSON']()):_0xf89dfd;}['getIndex'](_0x21d3cf){return this['_revisions']['getIndex'](_0x21d3cf);}['getEarlierVisibleRevision'](_0x2af372){const [,_0x2b8f4e]=this['getRevisionsIterator'](_0x2af372,{'direction':'earlier'});return _0x2b8f4e;}['getLaterVisibleRevision'](_0x2320d4){const [,_0x223aa8]=this['getRevisionsIterator'](_0x2320d4,{'direction':'later'});return _0x223aa8;}['getRevisionsInDiff'](_0x58d36b){const _0x22483b=[];for(const _0x1d9927 of this['getRevisionsIterator'](_0x58d36b['newRevisionId']))if(_0x22483b['push'](_0x1d9927),_0x1d9927['id']===_0x58d36b['oldRevisionId'])break;return _0x22483b;}*['getRevisionsIterator'](_0x24eff6,{direction:_0x1993a7='earlier',filter:_0x5426f4=()=>!0x0}={}){const _0x39d947='earlier'===_0x1993a7?0x1:-0x1;let _0x4adb96=this['_revisions']['get'](_0x24eff6),_0x998345=this['getIndex'](_0x4adb96);for(yield _0x4adb96;_0x4adb96;){if(_0x998345+=_0x39d947,_0x4adb96=this['getRevision'](_0x998345),!_0x4adb96)return;_0x5426f4(_0x4adb96)&&(yield _0x4adb96);}}}function m(_0x419b3d,_0x247e1f,_0x4f0bd1){const t=_0x419b3d['t'];switch(_0x247e1f){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'},_0x4f0bd1);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x4f0bd1);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const P={'c':_0x2b87d7,'a':_0x3290cf,'e':_0x35fb3e,'r':_0x53bb2c,'u':_0x2eb804};class l extends _0x53f3b9{['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[_0xf2dc20,j,_0x1876bc];}constructor(_0x460974){super(_0x460974),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x383b48=_0x4e1ee9();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x383b48},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 _0xbb1ce6=this['repository']['getRevision'](0x0),_0x291da8=_0xbb1ce6&&null===_0xbb1ce6['creator']?_0xbb1ce6:null;if(this['_continueCurrentRevision']=!!_0x291da8&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x403784=this['_source']['getCurrentRevisionId'](),_0x29f107=this['repository']['getRevision'](_0x403784);if(_0x29f107)this['_startingVersion']=_0x29f107['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x6ca2fb=this['_source']['history']['_operations']['find'](_0x55753d=>!_0x55753d['_isInit']),_0x87f0dc=_0x6ca2fb?_0x6ca2fb['baseVersion']:this['_source']['history']['version'];_0xbb1ce6?(_0xbb1ce6['toVersion']<_0x87f0dc&&_0xbb1ce6['_update']({'toVersion':_0x87f0dc}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x291da8['id'],this['_startingVersion']=_0x291da8['fromVersion']):(this['_startingVersion']=_0xbb1ce6['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x87f0dc,this['_continueCurrentRevision']=!0x1);}}else _0x291da8&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x291da8['toVersion'],this['editor']['model']['document']['history']['version']),_0x291da8['fromVersion']===_0x291da8['toVersion']?(0x0!==_0x291da8['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x291da8['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x291da8['id'],this['_startingVersion']=_0x291da8['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',_0x36499d=>!_0x36499d),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3a65dd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xeaa281;for(const _0x248bd2 in _0x3a65dd){const _0x191ad4=_0x248bd2,_0x3dedb2=_0x3a65dd[_0x191ad4];if('revisionHistoryLicenseKeyValid'==_0x3dedb2||'revisionHistoryLicenseKeyInvalid'==_0x3dedb2||'revisionHistoryLicenseKeyExpired'==_0x3dedb2||'revisionHistoryLicenseKeyDomainLimit'==_0x3dedb2||'revisionHistoryLicenseKeyNotAllowed'==_0x3dedb2||'revisionHistoryLicenseKeyEvaluationLimit'==_0x3dedb2||'revisionHistoryLicenseKeyTrialLimit'==_0x3dedb2||'revisionHistoryLicenseKeyUsageLimit'==_0x3dedb2){delete _0x3a65dd[_0x191ad4],_0xeaa281=_0x3dedb2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0xeaa281&&_0x3a65dd['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0xeaa281&&_0x3a65dd['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0xeaa281&&_0x3a65dd['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0xeaa281&&_0x3a65dd['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0xeaa281&&_0x3a65dd['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0xeaa281&&_0x3a65dd['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0xeaa281&&_0x3a65dd['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x2c898f=this['repository']['getRevision'](0x0),_0x4361d9=await this['getRevisionDocumentData'](_0x2c898f),_0x106714=await this['getRevisionRootsAttributes'](_0x2c898f);this['_replaceEditorDataWithRevisionData'](_0x4361d9,_0x106714);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x3d12e9){this['_source']=_0x3d12e9;}async['update'](){const _0x17a8ea=await this['_source']['getLatestVersion']();if(_0x17a8ea>this['currentRevision']['toVersion']){await this['_loadState']();const _0x5649be=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x17a8ea});_0x5649be['authors']=_0x5649be['authorsIds']['map'](_0xe8f40e=>this['editor']['plugins']['get']('Users')['getUser'](_0xe8f40e)),this['currentRevision']['_update'](_0x5649be);}}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'](_0x3d3810={},_0x2d6241=null){const _0x29cddd=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2d6241>this['currentRevision']['toVersion']&&(_0x2d6241=null),null===_0x2d6241&&(_0x2d6241=await this['_source']['getLatestVersion']());const _0x37f3ae=this['_getFromVersion'](_0x2d6241),_0x4a54d0=this['buildRevisionData']({'from':_0x37f3ae,'to':_0x2d6241});if(this['currentRevision']['toVersion']<_0x2d6241){const _0x25c1d3=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2d6241,'to':_0x2d6241});_0x25c1d3['authors']=[],_0x25c1d3['authorsIds']=[],_0x25c1d3['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x25c1d3,!0x0),delete _0x25c1d3['authors'],_0x29cddd['push'](_0x25c1d3);}_0x3d3810['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x3d3810['name']=_0x3d3810['name']||null,_0x3d3810['id']=_0x3d3810['id']||_0x4e1ee9(),_0x3d3810={..._0x3d3810,..._0x4a54d0};const _0x40b8ee=this['addRevisionData'](_0x3d3810);_0x29cddd['push'](_0x3d3810);const _0x531b7c=this['repository']['getIndex'](_0x40b8ee);if(0x0!==_0x531b7c){const _0x3b71dc=this['repository']['getRevision'](_0x531b7c-0x1);if(_0x3b71dc['fromVersion']!==_0x2d6241){const _0x3dcbb6=this['_revisionDataBuilder']['getData'](_0x2d6241,_0x3b71dc['toVersion']),_0x978c84={'id':_0x3b71dc['id'],'diffData':_0x3dcbb6['diffData'],'authorsIds':_0x3dcbb6['authorsIds'],'authors':_0x3dcbb6['authorsIds']['map'](_0x713710=>this['editor']['plugins']['get']('Users')['getUser'](_0x713710)),'fromVersion':_0x2d6241};_0x3b71dc===this['currentRevision']&&(_0x978c84['createdAt']=new Date(_0x3d3810['createdAt']['getTime']()+0xa)),_0x3b71dc['_update'](_0x978c84,!0x0),delete _0x978c84['authors'],_0x29cddd['push'](_0x978c84);}}if(this['adapter']){for(const _0x31b2f7 of _0x29cddd)this['_bufferUpdate'](_0x31b2f7['id'],_0x31b2f7,!0x0);this['sendBufferedUpdates']();}return _0x40b8ee;}['addRevisionData'](_0x7aa58b){const _0x234092=this['repository']['createRevision'](_0x7aa58b);return this['adapter']&&_0x234092['on']('_update',(_0x256687,_0x147b1d,_0x55a2f2)=>{_0x55a2f2||(this['_bufferUpdate'](_0x147b1d['id'],_0x147b1d,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x234092,this['_findInsertionIndex'](_0x234092)),_0x234092;}async['getRevisionDocumentData'](_0x467e35){await this['_loadRevisionData'](_0x467e35);const _0x5d4859={};for(const _0x11a7f4 in _0x467e35['diffData']){if(_0x467e35['diffData'][_0x11a7f4]['attachChange']&&!_0x467e35['diffData'][_0x11a7f4]['attachChange']['isAttached'])continue;const _0x34d2f2=this['_removeRevisionMarkers'](JSON['parse'](_0x467e35['diffData'][_0x11a7f4]['insertions'])),_0x18a0a4=this['editor']['editing']['view']['document'],_0x529d2d=new _0x12b0a7(_0x18a0a4,_0x34d2f2['map'](_0x149fd0=>C(_0x149fd0,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x5d4859[_0x11a7f4]=this['editor']['data']['processor']['toData'](_0x529d2d),this['editor']['data']['processor']['useFillerType']('default');}return _0x5d4859;}async['getRevisionRootsAttributes'](_0x1f0b9e){await this['_loadRevisionData'](_0x1f0b9e);const _0x16b40b={};for(const _0x4d1896 in _0x1f0b9e['diffData'])_0x1f0b9e['diffData'][_0x4d1896]['attachChange']&&!_0x1f0b9e['diffData'][_0x4d1896]['attachChange']['isAttached']||(_0x16b40b[_0x4d1896]=_0x1f0b9e['diffData'][_0x4d1896]['attributesAfter']||{});return _0x16b40b;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x8e6aa0=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0xe1847c=0x0;_0xe1847c<_0x8e6aa0['length'];_0xe1847c++){const _0x5bb2b0=_0x8e6aa0[_0xe1847c];let _0xdd98dd=!0x1;for(const _0x4fb3bc of Object['keys'](_0x5bb2b0))void 0x0===_0x5bb2b0[_0x4fb3bc]?delete _0x5bb2b0[_0x4fb3bc]:'id'!==_0x4fb3bc&&(_0xdd98dd=!0x0);_0xdd98dd||(_0x8e6aa0[_0xe1847c]=null);}if(_0x8e6aa0=_0x8e6aa0['filter'](_0x1a8127=>null!==_0x1a8127),!_0x8e6aa0['length'])return;for(let _0x327f1c=0x0;_0x327f1c<_0x8e6aa0['length'];_0x327f1c++){const _0x4d5711=_0x8e6aa0[_0x327f1c];void 0x0!==_0x4d5711['fromVersion']&&void 0x0===_0x4d5711['toVersion']&&(_0x4d5711['toVersion']=this['repository']['getRevision'](_0x4d5711['id'])['toVersion']),void 0x0!==_0x4d5711['toVersion']&&void 0x0===_0x4d5711['fromVersion']&&(_0x4d5711['fromVersion']=this['repository']['getRevision'](_0x4d5711['id'])['fromVersion']);}const _0x1e4452=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x8e6aa0,_0x1e4452)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x47644c=>{if(_0x47644c){for(const _0x47fe18 of _0x47644c)this['setRevisionData']({'id':_0x47fe18['id'],'createdAt':_0x47fe18['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x1ffd95,_0x487bca){let _0x2adff9=this['editor']['config']['get']('initialData'),_0xdc87d3=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2adff9){_0x2adff9={};for(const _0x46bf2c of this['editor']['model']['document']['getRootNames']())_0x2adff9[_0x46bf2c]='';}if('string'==typeof _0x2adff9&&(_0x2adff9={'main':_0x2adff9}),void 0x0===_0xdc87d3){_0xdc87d3={};for(const _0x2f94ea of this['editor']['model']['document']['getRootNames']())_0xdc87d3[_0x2f94ea]={};}let _0x1d19ef=!0x1;const _0x535c8b=Object['keys'](_0x2adff9),_0x5404f0=Object['keys'](_0x1ffd95);for(const _0x8dfbfb of _0x535c8b){if(_0x2adff9[_0x8dfbfb]!==_0x1ffd95[_0x8dfbfb]&&''!==_0x2adff9[_0x8dfbfb]['trim']()){_0x1d19ef=!0x0;break;}if(!_0x141d69(_0xdc87d3[_0x8dfbfb],_0x487bca[_0x8dfbfb])&&Object['keys'](_0xdc87d3[_0x8dfbfb])['length']>0x0){_0x1d19ef=!0x0;break;}}_0x1d19ef||(_0x1d19ef=_0x5404f0['some'](_0x1cf7da=>!this['editor']['model']['document']['getRoot'](_0x1cf7da))),_0x1d19ef&&_0x2dd246('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2adff9,'editorRootsAttributes':_0xdc87d3,'revisionData':_0x1ffd95,'revisionRootsAttributes':_0x487bca}),this['editor']['config']['set']('initialData',_0x1ffd95),this['editor']['config']['set']('rootsAttributes',_0x487bca);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x32e177=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x32e177['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x9a3668){const _0x166d6b=this['repository']['getRevisions']();_0x166d6b['reverse']();let _0x5bf0a2=0x0;for(;_0x5bf0a2<_0x166d6b['length'];){const _0x27b18a=_0x166d6b[_0x5bf0a2];if(_0x27b18a===this['currentRevision']){_0x5bf0a2++;continue;}if(_0x27b18a['id']===this['_initialRevisionId'])break;const _0x5ead9d=_0x9a3668['toVersion']-_0x27b18a['toVersion']||_0x9a3668['fromVersion']-_0x27b18a['fromVersion'];if(_0x5ead9d>0x0)break;if(_0x5ead9d<0x0)_0x5bf0a2++;else{if(!_0x9a3668['creator']&&_0x27b18a['creator'])break;if(_0x27b18a['creator']||!_0x9a3668['creator']){if(_0x9a3668['createdAt']>_0x27b18a['createdAt'])break;_0x5bf0a2++;}else _0x5bf0a2++;}}return _0x5bf0a2;}['setRevisionData'](_0x35ca24){const _0x19634a=this['repository']['getRevision'](_0x35ca24['id']);if(_0x35ca24['createdAt']&&(_0x35ca24['createdAt']=new Date(_0x35ca24['createdAt'])),_0x35ca24['authorsIds']){const _0x5922ac=this['editor']['plugins']['get']('Users');_0x35ca24['authors']=_0x35ca24['authorsIds']['map'](_0x4184d5=>_0x5922ac['getUser'](_0x4184d5));}_0x19634a['_update'](_0x35ca24,!0x0);}['buildRevisionData']({revision:_0x583732=null,from:_0x350bf4=null,to:_0x3f08c8=null}){_0x350bf4=null!==_0x350bf4?_0x350bf4:_0x583732['fromVersion'],_0x3f08c8=null!==_0x3f08c8?_0x3f08c8:_0x583732['toVersion'];const _0x3b0d98=this['_revisionDataBuilder']['getData'](_0x350bf4,_0x3f08c8),_0x3d98ce={'diffData':_0x3b0d98['diffData'],'authorsIds':_0x3b0d98['authorsIds'],'fromVersion':_0x350bf4,'toVersion':_0x3f08c8};if(!_0x583732||_0x3f08c8!==_0x583732['toVersion']){const _0x3b5555=_0x3f08c8-0x1,_0x83f66=this['_source']['history']['getOperation'](_0x3b5555);_0x3d98ce['createdAt']=_0x83f66&&_0x83f66['createdAt']||new Date();}if(this['_loadedStateData']&&_0x350bf4===this['_loadedStateData']['fromVersion']){for(const _0x51a254 of this['_loadedStateData']['authors'])_0x3d98ce['authorsIds']['includes'](_0x51a254['id'])||_0x3d98ce['authorsIds']['push'](_0x51a254['id']);}return _0x3d98ce;}['_loadRevisionData'](_0x3e3157){if(!_0x3e3157||_0x3e3157['diffData'])return Promise['resolve']();{const _0x8dca9d=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x8dca9d,'revisionId':_0x3e3157['id']})['then'](_0x3a088a=>{_0x3e3157['diffData']=_0x3a088a['diffData'];});}}['_bufferUpdate'](_0x351258,_0xa49fcd,_0x4ba18a){if(this['_bufferedUpdates']['has'](_0x351258)){const _0x2f9ab4=this['_bufferedUpdates']['get'](_0x351258);_0xa49fcd=_0x4ba18a?{..._0x2f9ab4,..._0xa49fcd}:{..._0xa49fcd,..._0x2f9ab4};}this['_bufferedUpdates']['set'](_0x351258,_0xa49fcd);}['_getFromVersion'](_0xf1b2d6){const _0x45c3f4=this['repository']['getRevisions']();_0x45c3f4['reverse'](),_0x45c3f4['shift']();const _0x4a90d7=_0x45c3f4['find'](_0x3c588a=>_0x3c588a['toVersion']<=_0xf1b2d6)['toVersion'];return _0x4a90d7<this['_startingVersion']?this['_startingVersion']:_0x4a90d7;}['_createInitialRevision'](_0x20468e){const _0x4431cc=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x4431cc)this['_initialRevisionId']=_0x4431cc['id'];else{const _0x44105b=!this['editor']['model']['document']['roots']['find'](_0x58a096=>this['editor']['model']['hasContent'](_0x58a096)),_0x1c7b88=this['editor']['plugins']['get']('Users')['me']['id'],_0x5788fe=m(this['editor']['locale'],_0x44105b?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x20468e,'to':_0x20468e,'id':this['_initialRevisionId'],'name':_0x5788fe,'creatorId':_0x1c7b88});}}['_createCurrentRevision'](_0x3cd8f5){const _0x37ec84=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x37ec84),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x3cd8f5,'to':_0x3cd8f5,'id':_0x37ec84,'name':'','creatorId':null}));}['_makeRevision']({name:_0x23a312,from:_0x5de2c4,to:_0xc2e2ae,creatorId:_0x7474c4,id:_0x1bbf84}){const _0x13c4af=this['buildRevisionData']({'from':_0x5de2c4,'to':_0xc2e2ae});_0x13c4af['name']=_0x23a312,_0x13c4af['creatorId']=_0x7474c4,_0x13c4af['id']=_0x1bbf84;const _0x5c6092=this['addRevisionData'](_0x13c4af);return this['adapter']&&this['_bufferUpdate'](_0x13c4af['id'],_0x13c4af,!0x0),_0x5c6092;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x38bc7b){return(_0x38bc7b=_0x38bc7b['filter'](_0x194cd7=>!_0x194cd7['name']||'revision-start'!==_0x194cd7['name']&&'revision-end'!==_0x194cd7['name']))['forEach'](_0x488a02=>{'string'!=typeof _0x488a02&&(_0x488a02['children']=this['_removeRevisionMarkers'](_0x488a02['children']),_0x488a02['attributes']=_0x488a02['attributes']['filter'](_0x28a5ab=>!_0x28a5ab[0x0]['startsWith']('data-revision-')));}),_0x38bc7b;}}function C(_0x4ea97d,_0x1bc851){const _0x3fe958=_0x1bc851['editing']['view']['document'];if('string'==typeof _0x4ea97d)return new _0x49cfbb(_0x3fe958,_0x4ea97d);{const _0x3d05d1=_0x4ea97d['children']['map'](_0x31d38e=>C(_0x31d38e,_0x1bc851));return new(P[_0x4ea97d['type']]||_0x5213af)(_0x3fe958,_0x4ea97d['name'],_0x4ea97d['attributes'],_0x3d05d1);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x390a67){this['editor']=_0x390a67,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'](_0x38b072){this['source']=_0x38b072;const _0x4603eb=new Map(),_0x3ca83f=new Map(),_0x4ff4a7=this['editor']['model']['document']['roots']['map'](_0x47450f=>_0x47450f['rootName']);for(const _0x93fd5e of _0x4ff4a7){const _0x52b1fd=this['editor']['model']['document']['getRoot'](_0x93fd5e),_0x2c8a71=T(_0x52b1fd);_0x4603eb['set'](_0x93fd5e,_0x2c8a71),_0x3ca83f['set'](_0x93fd5e,Object['fromEntries'](_0x52b1fd['getAttributes']()));}const _0x135d1e=Array['from'](this['editor']['model']['markers'])['map'](_0x1f9a4b=>[_0x1f9a4b['name'],_0x1f9a4b['getRange']()]),_0x3d9309=this['source']['version'];this['_saveMetaData'](_0x3d9309,_0x4603eb,_0x135d1e,_0x3ca83f),this['_startingRevisionId']=this['_revisionId'];const _0x212423=new Map(),_0x1c2752=new Map();for(const _0x432141 of _0x4ff4a7){const _0x45108b=F(_0x432141);_0x212423['set'](_0x432141,_0x45108b),_0x1c2752['set'](_0x432141,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x212423,[],_0x1c2752);}['getData'](_0x2819f5,_0x6f4d26){if(this['_lastFrom']===_0x2819f5&&this['_lastTo']<=_0x6f4d26)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x6f4d26,!0x0);else{if(!this['_savedMetaData']['has'](_0x2819f5)){const _0x4b8182=this['_getPreviousFrom'](_0x2819f5);this['_calculateMetaData'](_0x4b8182,_0x2819f5,!0x1);}this['_calculateMetaData'](_0x2819f5,_0x6f4d26,!0x0);}return this['_lastFrom']=_0x2819f5,this['_lastTo']=_0x6f4d26,this['_getState']();}['loadState'](_0x2b8a65){this['_reset'](),this['_lastFrom']=_0x2b8a65['fromVersion'],this['_lastTo']=_0x2b8a65['toVersion'];for(const _0x5da92f in _0x2b8a65['diffData']){const _0x4da461=_0x2b8a65['diffData'][_0x5da92f]['attachChange'],_0x68ce77=_0xf7ee50(_0x2b8a65['diffData'][_0x5da92f]['attributesBefore'])||{},_0x396e08=this['_makeModelFromViewString'](_0x2b8a65['diffData'][_0x5da92f]['deletions']);_0x396e08['rootName']=_0x5da92f,_0x396e08['_isAttached']=!_0x4da461||!_0x4da461['isAttached'],_0x396e08['isAttached']=()=>_0x396e08['_isAttached'],this['_baseRoots']['set'](_0x5da92f,_0x396e08),this['_baseRootsAttributes']['set'](_0x5da92f,_0x68ce77),_0x4da461&&this['_touchedRoots']['set'](_0x5da92f,_0x4da461);const _0x1b2bfe=this['_makeIdsRoot'](_0x396e08);this['_baseIdsRoots']['set'](_0x5da92f,_0x1b2bfe);for(const [_0x2ccfbf,_0x19347c]of _0x396e08['markers']){if(!_0x2ccfbf['startsWith']('revision:'))continue;const _0x4a723a=_0x2ccfbf['split'](':')[0x2];for(const _0x2be8c2 of _0x19347c['getWalker']({'singleCharacters':!0x0})){const _0x3f7b1f=this['_getVidAttributeName'](_0x2be8c2),_0x152095='elementEnd'==_0x2be8c2['type']?_0x2be8c2['previousPosition']['path']['slice'](0x0,-0x1):_0x2be8c2['previousPosition']['path'],_0x18af2c=_0x1b2bfe['getNodeByPath'](_0x152095)['getAttribute'](_0x3f7b1f);this['_touched']['set'](_0x18af2c,{'userId':_0x4a723a});}}}this['_startingRevisionId']=this['_revisionId'];const _0x29d6d0=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x750b14=>!this['_touched']['has'](_0x750b14));let _0x3b05e4=0x0;const _0x148360=new Map();for(const _0x5923c4 in _0x2b8a65['diffData']){const _0x13214a=_0x2b8a65['diffData'][_0x5923c4]['attachChange'],_0x1b6d5b=_0xf7ee50(_0x2b8a65['diffData'][_0x5923c4]['attributesAfter'])||{},_0x2e2a52=this['_makeModelFromViewString'](_0x2b8a65['diffData'][_0x5923c4]['insertions']);_0x2e2a52['rootName']=_0x5923c4,_0x2e2a52['_isAttached']=!_0x13214a||_0x13214a['isAttached'],_0x2e2a52['isAttached']=()=>_0x2e2a52['_isAttached'],this['_diffRoots']['set'](_0x5923c4,_0x2e2a52),this['_diffRootsAttributes']['set'](_0x5923c4,_0x1b6d5b);const _0xce9fe0=this['_makeIdsRoot'](_0x2e2a52,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x5923c4,_0xce9fe0),_0x148360['set'](_0x5923c4,_0x2e2a52['isAttached']()?_0x1b6d5b:{});for(const [_0x569833,_0x196bcf]of _0x2e2a52['markers']){if(!_0x569833['startsWith']('revision:'))continue;const _0x3de1e1=_0x569833['split'](':')[0x2];for(const _0x2db869 of _0x196bcf['getWalker']({'singleCharacters':!0x0})){const _0x35f611=this['_getVidAttributeName'](_0x2db869),_0x267adc=this['_revisionId']++,_0x17946d='elementEnd'==_0x2db869['type']?_0x2db869['previousPosition']['path']['slice'](0x0,-0x1):_0x2db869['previousPosition']['path'];_0xce9fe0['getNodeByPath'](_0x17946d)['_setAttribute'](_0x35f611,_0x267adc),this['_touched']['set'](_0x267adc,{'userId':_0x3de1e1});}}for(const _0x40b368 of this['editor']['model']['createRangeIn'](_0x2e2a52)['getWalker']({'singleCharacters':!0x0})){const _0x1f8b73=this['_getVidAttributeName'](_0x40b368),_0x58cbc9='elementEnd'==_0x40b368['type']?_0x40b368['previousPosition']['path']['slice'](0x0,-0x1):_0x40b368['previousPosition']['path'],_0x27f986=_0xce9fe0['getNodeByPath'](_0x58cbc9);_0x27f986['getAttribute'](_0x1f8b73)>0x0||_0x27f986['_setAttribute'](_0x1f8b73,_0x29d6d0[_0x3b05e4++]);}for(const [_0x1b96d8,_0x9d52d]of _0x2e2a52['markers'])_0x1b96d8['startsWith']('revision:')||this['_markers']['set'](_0x1b96d8,_0x9d52d);}const _0x5c8f3e=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x5c8f3e),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5c8f3e,0x1));const _0xb065da=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0xb065da),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xb065da,0x1));const _0x38eb29=Array['from'](this['_diffRoots'])['map'](([_0x11856a,_0x471be6])=>[_0x11856a,T(_0x471be6)]);this['_saveMetaData'](this['_lastTo'],_0x38eb29,this['_markers'],_0x148360);}['_makeModelFromViewString'](_0x3e8814){const _0x48a757=JSON['parse'](_0x3e8814),_0x3559cc=this['editor']['editing']['view']['document'],_0x2aa4e3=new _0x12b0a7(_0x3559cc,_0x48a757['map'](_0x37182f=>C(_0x37182f,this['editor'])));return this['editor']['data']['toModel'](_0x2aa4e3);}['_saveMetaData'](_0xc2d3fc,_0x336fb5,_0xfa2f91,_0x4939c7){const _0x12645e=new Map(_0x336fb5),_0x5807a5=new Map(_0xf7ee50(_0x4939c7)),_0x38f8fd=new Map();for(const [_0x3d6297,_0x572694]of _0xfa2f91)_0x38f8fd['set'](_0x3d6297,{'start':_0x572694['start']['clone'](),'end':_0x572694['end']['clone'](),'rootName':_0x572694['root']['rootName']});this['_savedMetaData']['set'](_0xc2d3fc,{'roots':_0x12645e,'markers':_0x38f8fd,'rootsAttributes':_0x5807a5});}['_removeMetaData'](_0x16cedb){this['_savedMetaData']['delete'](_0x16cedb);}['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'](_0x2f7bd8,_0x1e3e35=null){let _0x53cb3b=null;_0x2f7bd8['is']('documentFragment')||(_0x53cb3b=new ft(_0x2f7bd8['name'],{'vid_start':null===_0x1e3e35?this['_revisionId']++:_0x1e3e35++}));const _0x33685c=[];for(const _0x45709d of _0x2f7bd8['getChildren']())if(_0x45709d['is']('element')){_0x33685c['push'](this['_makeIdsRoot'](_0x45709d,_0x1e3e35));const _0x9bcf2c=_0x33685c[_0x33685c['length']-0x1];null!==_0x1e3e35&&(_0x1e3e35=_0x9bcf2c['is']('element','$text')?_0x9bcf2c['getAttribute']('vid')+0x1:_0x9bcf2c['getAttribute']('vid_end')+0x1);}else{for(let _0x451b03=0x0;_0x451b03<_0x45709d['offsetSize'];_0x451b03++)_0x33685c['push'](new ft('$text',{'vid':null===_0x1e3e35?this['_revisionId']++:_0x1e3e35++}));}if(_0x2f7bd8['is']('documentFragment')){const _0x1b6987=F(_0x2f7bd8['rootName']);return _0x1b6987['_insertChild'](0x0,_0x33685c),_0x1b6987;}return _0x53cb3b['_setAttribute']('vid_end',null===_0x1e3e35?this['_revisionId']++:_0x1e3e35++),_0x53cb3b['_insertChild'](0x0,_0x33685c),_0x53cb3b;}['_calculateMetaData'](_0x5c7998,_0x352abd,_0xb6e8b0){this['_reset']();const {roots:_0xd30374,markers:_0x617553,rootsAttributes:_0x36aa59}=this['_savedMetaData']['get'](_0x5c7998);this['_baseRoots']=new Map(_0xd30374),this['_baseRootsAttributes']=new Map(_0xf7ee50(_0x36aa59));for(const [_0x5a02dc,_0x32db2e]of this['_baseRoots'])if('$graveyard'!==_0x5a02dc&&(this['_diffRoots']['set'](_0x5a02dc,T(_0x32db2e)),this['_diffRootsAttributes']=new Map(_0xf7ee50(_0x36aa59)),_0xb6e8b0)){const _0x42d6e8=this['_revisionId'];this['_idsRoots']['set'](_0x5a02dc,this['_makeIdsRoot'](_0x32db2e)),this['_baseIdsRoots']['set'](_0x5a02dc,this['_makeIdsRoot'](_0x32db2e,_0x42d6e8));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0xb6e8b0&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x3db1c0,_0x5cf1c3]of _0x617553){const _0x29b0aa=this['_baseRoots']['get'](_0x5cf1c3['rootName']),_0x2c4f93=this['_diffRoots']['get'](_0x5cf1c3['rootName']),_0x5f3d95=new vt(this['_fixPosition'](_0x5cf1c3['start'],_0x29b0aa),this['_fixPosition'](_0x5cf1c3['end'],_0x29b0aa)),_0x56a837=this['_fixRange'](_0x5f3d95,_0x2c4f93);_0x29b0aa['markers']['set'](_0x3db1c0,_0x5f3d95),this['_markers']['set'](_0x3db1c0,_0x56a837);}this['_applyOperations'](_0x5c7998,_0x352abd,_0xb6e8b0);}['_applyOperations'](_0x34acb8,_0xea1394,_0x20ec0e){for(const _0x553bb0 of this['source']['getOperations'](_0x34acb8,_0xea1394))this['_handleOperation'](_0x553bb0,_0x20ec0e);for(const _0x1a2fa4 of this['_diffRoots']['values']())_0x1a2fa4['markers']['clear']();for(const [_0x39811e,_0x52ba0e]of this['_markers']){this['_diffRoots']['get'](_0x52ba0e['root']['rootName'])['markers']['set'](_0x39811e,_0x52ba0e['clone']());}const _0x249453=new Map(),_0xe5989f=new Map();for(const [_0xfeb43b,_0x426303]of this['_diffRoots'])_0x249453['set'](_0xfeb43b,T(_0x426303)),_0xe5989f['set'](_0xfeb43b,this['_diffRootsAttributes']['get'](_0xfeb43b));this['_saveMetaData'](_0xea1394,_0x249453,this['_markers'],_0xe5989f);}['_getPreviousFrom'](_0xd595e3){const _0x1a8af3=Array['from'](this['_savedMetaData']['keys']());_0x1a8af3['sort']((_0x339c28,_0x548c41)=>_0x339c28-_0x548c41),_0x1a8af3['reverse']();for(const _0x2416eb of _0x1a8af3)if(_0x2416eb<_0xd595e3)return _0x2416eb;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x593fbe,_0x582fae){const _0x7d79ac=Array['from'](_0x582fae['markers'])['map'](([_0x155cf3,_0xf94fa])=>[_0x155cf3,this['_fixRange'](_0xf94fa,_0x593fbe)]);_0x593fbe['markers']=new Map(_0x7d79ac);}['_transformMarkers'](_0x3de9ca){for(const _0x4afd8b of this['_markers']['values']()){const _0x360ec8=_0x4afd8b['getTransformedByOperation'](_0x3de9ca),_0x4e8a33=vt['_createFromRanges'](_0x360ec8);_0x4afd8b['start']=_0x4e8a33['start'],_0x4afd8b['end']=_0x4e8a33['end'];}}['_handleOperation'](_0x3f6f3a,_0x49e4c9){if('addRoot'!=_0x3f6f3a['type']&&'detachRoot'!=_0x3f6f3a['type']){if('insert'==_0x3f6f3a['type']){const _0x470068=_0x3f6f3a['position']['root']['rootName'];this['_diffRoots']['has'](_0x470068)||(this['_diffRoots']['set'](_0x470068,F(_0x470068,!0x0)),this['_diffRootsAttributes']['set'](_0x470068,{}),_0x49e4c9&&this['_idsRoots']['set'](_0x470068,F(_0x470068,!0x0)));}else{if('addRootAttribute'==_0x3f6f3a['type']||'removeRootAttribute'==_0x3f6f3a['type']||'changeRootAttribute'==_0x3f6f3a['type'])return void this['_handleRootAttributeOperation'](_0x3f6f3a);'marker'==_0x3f6f3a['type']&&this['_handleMarkerOperation'](_0x3f6f3a);}if('marker'!==_0x3f6f3a['type']){const _0x12908a=this['_cloneOperation'](_0x3f6f3a,this['_diffRoots']);_0x12908a['_execute'](),this['_transformMarkers'](_0x12908a);}if(_0x49e4c9)switch(_0x3f6f3a['type']){case'insert':this['_handleInsertOperation'](_0x3f6f3a);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x3f6f3a);break;case'merge':this['_handleMergeOperation'](_0x3f6f3a);break;case'split':this['_handleSplitOperation'](_0x3f6f3a);}}else this['_handleRootOperation'](_0x3f6f3a,_0x49e4c9);}['_cloneOperation'](_0x34f4fb,_0x2830a5){const _0x31e897=_0x34f4fb['clone']();return _0x31e897['_authorId']=_0x34f4fb['_authorId'],this['_fixOperation'](_0x31e897,_0x2830a5),_0x31e897;}['_getBaseVids'](_0x15de44){return _0x15de44['map'](_0x1a30de=>{const _0x470c46=this['_getVidAttributeName'](_0x1a30de);return Number(_0x1a30de['item']['getAttribute'](_0x470c46));});}['_generateTape'](_0x2d883a,_0x5d850c){if(_0x2d883a['is']('element','$text'))_0x5d850c['push']({'item':_0x2d883a,'type':'text'});else{_0x2d883a['is']('element')&&_0x5d850c['push']({'item':_0x2d883a,'type':'elementStart'});for(const _0x58e563 of _0x2d883a['getChildren']())this['_generateTape'](_0x58e563,_0x5d850c);_0x2d883a['is']('element')&&_0x5d850c['push']({'item':_0x2d883a,'type':'elementEnd'});}return _0x5d850c;}['_getState'](){const _0x2fddef=new Map(this['_touched']),_0x54c218=new Map(_0x2fddef),_0x16dae9=new Map(),_0x130625={'insertions':{},'deletions':{}},_0x2a04e2={'insertions':{},'deletions':{}},_0x3a9e83=new Map(),_0x283a61=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x283a61['delete']('$graveyard');for(const _0x2a3900 of _0x283a61){const _0x265e27=this['_diffRoots']['get'](_0x2a3900)||F(_0x2a3900,!0x1),_0x1e13cd=this['_baseRoots']['get'](_0x2a3900)||F(_0x2a3900,!0x1);_0x265e27['isAttached']()||_0x1e13cd['isAttached']()?(_0x130625['insertions'][_0x2a3900]=T(_0x265e27),_0x130625['deletions'][_0x2a3900]=T(_0x1e13cd),this['_copyMarkers'](_0x130625['deletions'][_0x2a3900],_0x1e13cd),this['_copyMarkers'](_0x130625['insertions'][_0x2a3900],_0x265e27),_0x2a04e2['insertions'][_0x2a3900]=this['_generateTape'](this['_idsRoots']['get'](_0x2a3900),[]),_0x2a04e2['deletions'][_0x2a3900]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x2a3900)||F(_0x2a3900,!0x1),[])):_0x283a61['delete'](_0x2a3900);}for(const _0x2b305b of _0x283a61){const _0x3be2c6=_0x2a04e2['insertions'][_0x2b305b];for(const _0x3aa069 of _0x3be2c6){const _0x149e18=this['_getVidAttributeName'](_0x3aa069),_0x22066a=_0x3aa069['item']['getAttribute'](_0x149e18);_0x54c218['delete'](_0x22066a),_0x22066a>=this['_startingRevisionId']&&_0x16dae9['set'](_0x22066a,_0x2fddef['get'](_0x22066a));}}for(const _0x11ac95 of _0x283a61){const _0x53684e=_0x2a04e2['insertions'][_0x11ac95],_0x434810=this['_getBaseVids'](_0x2a04e2['deletions'][_0x11ac95]);let _0x26de9f=0x0;for(const _0x420f0c of _0x53684e){const _0x485bbb=this['_getVidAttributeName'](_0x420f0c),_0x57c8b1=_0x420f0c['item']['getAttribute'](_0x485bbb);if(!_0x16dae9['has'](_0x57c8b1)&&!_0x3a9e83['has'](_0x57c8b1)){if(_0x54c218['has'](_0x57c8b1))_0x26de9f++;else{if(_0x57c8b1!=_0x434810[_0x26de9f]){const _0x4d5a63=_0x2fddef['get'](_0x57c8b1)||_0x2fddef['get'](_0x434810[_0x26de9f]);for(;_0x57c8b1!=_0x434810[_0x26de9f];)_0x54c218['has'](_0x434810[_0x26de9f])||(_0x3a9e83['set'](_0x434810[_0x26de9f],_0x4d5a63),_0x2fddef['set'](_0x434810[_0x26de9f],_0x4d5a63)),_0x26de9f++;}_0x26de9f++;}}}}for(const _0x2e7972 of _0x283a61){const _0x7f46c7=_0x2a04e2['insertions'][_0x2e7972];for(const _0x2d775f of _0x7f46c7){const _0x181b6f=this['_getVidAttributeName'](_0x2d775f),_0x37746b=_0x2d775f['item']['getAttribute'](_0x181b6f);if(_0x3a9e83['has'](_0x37746b)){const _0x3732a9=_0x3a9e83['get'](_0x37746b);_0x54c218['has'](_0x37746b)||_0x54c218['set'](_0x37746b,{..._0x3732a9}),_0x16dae9['set'](_0x37746b,{..._0x3732a9});}}}for(const _0xe15d45 of _0x54c218['keys']())_0xe15d45>=this['_startingRevisionId']&&_0x54c218['delete'](_0xe15d45);const _0x4bcd30=new Map();for(const _0x4e5b6e of _0x283a61){let _0x2e664d=_0x2a04e2['insertions'][_0x4e5b6e];for(const _0x29384b of _0x2e664d)if(_0x29384b['item']['is']('element','tableCell')){const _0x5a7188=this['_getVidAttributeName'](_0x29384b),_0x2a3ce8=_0x29384b['item']['getAttribute'](_0x5a7188);if(_0x16dae9['has'](_0x2a3ce8)){const _0x49f197=_0x29384b['item']['parent']['parent']['getAttribute']('vid_start'),_0x33aad3=_0x4bcd30['get'](_0x49f197)||new Set();_0x33aad3['add'](_0x16dae9['get'](_0x2a3ce8)['userId']),_0x4bcd30['set'](_0x49f197,_0x33aad3);}}_0x2e664d=_0x2a04e2['deletions'][_0x4e5b6e];for(const _0x1f9201 of _0x2e664d)if(_0x1f9201['item']['is']('element','tableCell')){const _0x35fba8=this['_getVidAttributeName'](_0x1f9201),_0x5b5643=_0x1f9201['item']['getAttribute'](_0x35fba8);if(_0x54c218['has'](_0x5b5643)){const _0x19cad1=_0x1f9201['item']['parent']['parent']['getAttribute']('vid_start'),_0x17ff0f=_0x4bcd30['get'](_0x19cad1)||new Set();_0x17ff0f['add'](_0x54c218['get'](_0x5b5643)['userId']),_0x4bcd30['set'](_0x19cad1,_0x17ff0f);}}for(const _0x58844f of _0x4bcd30['keys']())(_0x16dae9['has'](_0x58844f)||_0x54c218['has'](_0x58844f))&&_0x4bcd30['delete'](_0x58844f);}for(const _0x74a241 of _0x283a61){const _0x497947=_0x2a04e2['insertions'][_0x74a241];let _0x1ba6b9=null,_0xabe5aa=null;for(const _0x571c59 of _0x497947){const _0x16763c=this['_getVidAttributeName'](_0x571c59),_0x5c848d=_0x571c59['item']['getAttribute'](_0x16763c),_0x438c0d=_0x4bcd30['get'](_0x5c848d);_0x438c0d&&'elementStart'==_0x571c59['type']&&(_0x1ba6b9=Array['from'](_0x438c0d)[0x0],_0xabe5aa=_0x571c59['item']['getAttribute']('vid_end')),_0x1ba6b9&&(_0x54c218['set'](_0x5c848d,{'userId':_0x1ba6b9}),_0x16dae9['set'](_0x5c848d,{'userId':_0x1ba6b9})),_0x5c848d==_0xabe5aa&&(_0x1ba6b9=null,_0xabe5aa=null);}}const _0x3aeccb={},_0x5997a9=new Set();for(const _0x4b7a11 of _0x283a61){const _0x1736a4=_0x130625['deletions'][_0x4b7a11],_0x5987c6=_0x130625['insertions'][_0x4b7a11];for(const {userId:_0x396ec3}of this['_touchedMarkers']['values']())null!==_0x396ec3&&_0x5997a9['add'](_0x396ec3);for(const {userId:_0x1941b4}of this['_touchedRoots']['values']())null!==_0x1941b4&&_0x5997a9['add'](_0x1941b4);this['_markChanges'](_0x5987c6,_0x2a04e2['insertions'][_0x4b7a11],_0x16dae9,'insertion',_0x5997a9),this['_markChanges'](_0x1736a4,_0x2a04e2['deletions'][_0x4b7a11],_0x54c218,'deletion',_0x5997a9),_0x3aeccb[_0x4b7a11]={'insertions':this['_prepareViewToSave'](_0x5987c6),'deletions':this['_prepareViewToSave'](_0x1736a4),'attachChange':this['_touchedRoots']['get'](_0x4b7a11)||null,'attributesBefore':_0xf7ee50(this['_baseRootsAttributes']['get'](_0x4b7a11))||{},'attributesAfter':_0xf7ee50(this['_diffRootsAttributes']['get'](_0x4b7a11))};}return{'diffData':_0x3aeccb,'authorsIds':Array['from'](_0x5997a9)};}['_processRootBeforeSave'](_0x425ab6){for(const [,_0x3e65e9]of _0x425ab6['markers']){const _0x1b1056=_0x3e65e9['start']['getAncestors']()['filter'](_0x3703d1=>'tableCell'==_0x3703d1['name']);for(const _0x208149 of _0x1b1056)0x1==_0x208149['childCount']&&_0x208149['getChild'](0x0)['is']('element','paragraph')&&_0x208149['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x2da121){this['_processRootBeforeSave'](_0x2da121);const _0x2523c2=this['editor']['data']['toView'](_0x2da121,{}),_0x7f4e08=Array['from'](_0x2523c2['getChildren']())['map'](_0x22444b=>this['_getViewJson'](_0x22444b));return JSON['stringify'](_0x7f4e08);}['_getViewJson'](_0x18df01){if(_0x18df01['is']('$text'))return _0x18df01['data'];{const _0x3e1557=_0x18df01;return{'type':Object['keys'](P)['find'](_0x5c2fe8=>_0x18df01 instanceof P[_0x5c2fe8]),'name':_0x3e1557['name'],'attributes':Array['from'](_0x3e1557['getAttributes']()),'children':Array['from'](_0x3e1557['getChildren']())['map'](_0x18dd8e=>this['_getViewJson'](_0x18dd8e))};}}['_markChanges'](_0x356b88,_0x3e79fd,_0xb15d1f,_0x57ff7c,_0x234223){let _0x5c3304=null,_0x520ea3=null,_0x54c33e=0x0;const _0x37bca4=this['editor']['model'];for(let _0xbf5cb4=0x0;_0xbf5cb4<_0x3e79fd['length'];_0xbf5cb4++){const _0x1f9def=this['_getVidAttributeName'](_0x3e79fd[_0xbf5cb4]),_0xe9b1bb=_0x3e79fd[_0xbf5cb4]['item']['getAttribute'](_0x1f9def),_0x47e720=_0xb15d1f['get'](_0xe9b1bb),_0x4e2233=_0xbf5cb4==_0x3e79fd['length']-0x1;(!_0x5c3304&&_0x47e720&&(_0x5c3304=_0x47e720,_0x520ea3=_0x3e79fd[_0xbf5cb4]),_0x5c3304&&(!_0x47e720||_0x47e720['userId']!=_0x5c3304['userId']))&&(_0x5ecb73(_0x47e720,B(_0x520ea3,_0x356b88,_0x37bca4),B(_0x3e79fd[_0xbf5cb4],_0x356b88,_0x37bca4)),_0x5c3304=_0x47e720||null,_0x520ea3=_0x47e720?_0x3e79fd[_0xbf5cb4]:null),_0x5c3304&&_0x4e2233&&_0x5ecb73(_0x47e720,B(_0x520ea3,_0x356b88,_0x37bca4),J(_0x3e79fd[_0xbf5cb4],_0x356b88,_0x37bca4));}function _0x5ecb73(_0x392995,_0x154764,_0x4a607b){const _0x5aa699=_0x5c3304['userId'],_0xc83b22='revision:'+_0x57ff7c+':'+_0x5aa699+':'+_0x54c33e++,_0x18d691=_0x37bca4['createRange'](_0x154764,_0x4a607b);_0x356b88['markers']['set'](_0xc83b22,_0x18d691),null!==_0x5aa699&&_0x234223['add'](_0x5aa699);}}['_getVidAttributeName'](_0x22d146){switch(_0x22d146['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x1be2de,_0x1fe65e){_0x1be2de['baseVersion']=null;for(const _0x1fff09 in _0x1be2de){const _0x475995=_0x1be2de[_0x1fff09];if(_0x475995 instanceof gt){const _0x68cd6d=_0x1fe65e['get'](_0x475995['root']['rootName']);_0x1be2de[_0x1fff09]=this['_fixPosition'](_0x475995,_0x68cd6d);}if(_0x475995 instanceof vt){const _0x264398=_0x1fe65e['get'](_0x475995['root']['rootName']);_0x1be2de[_0x1fff09]=this['_fixRange'](_0x475995,_0x264398);}'root'===_0x1fff09&&(_0x1be2de['root']=_0x1fe65e['get'](_0x1be2de['root']['rootName']));}}['_fixRange'](_0x3d11e7,_0x59f332){return this['editor']['model']['createRange'](this['_fixPosition'](_0x3d11e7['start'],_0x59f332),this['_fixPosition'](_0x3d11e7['end'],_0x59f332));}['_fixPosition'](_0x599543,_0x3d0c2e){return this['editor']['model']['createPositionFromPath'](_0x3d0c2e,_0x599543['path'],_0x599543['stickiness']);}['_handleInsertOperation'](_0x367534){const _0x363738=this['_idsRoots']['get'](_0x367534['position']['root']['rootName']),_0x59bf53=this['_fixPosition'](_0x367534['position'],_0x363738),_0x483c36=null===_0x367534['_authorId']?null:_0x367534['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x49420c=_0x59bf53['parent'],_0x3a4527=this['_revisionId'],_0x21563f=[];for(const _0x4e4abc of _0x367534['nodes'])if(_0x4e4abc['is']('element'))_0x21563f['push'](this['_makeIdsRoot'](_0x4e4abc));else{for(let _0x54f9f2=0x0;_0x54f9f2<_0x4e4abc['offsetSize'];_0x54f9f2++)_0x21563f['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0xaf6455=this['_revisionId'];for(let _0x160ed3=_0x3a4527;_0x160ed3<_0xaf6455;_0x160ed3++)this['_touched']['set'](_0x160ed3,{'userId':_0x483c36});_0x49420c['_insertChild'](_0x59bf53['offset'],_0x21563f);}['_handleMoveOperation'](_0x78219){(_0x78219=this['_cloneOperation'](_0x78219,this['_idsRoots']))['_execute']();const _0x27e82c=null===_0x78219['_authorId']?null:_0x78219['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xed23ec=_0x78219['getMovedRangeStart'](),_0x16792d=_0xed23ec['parent'],_0x2ee1e7=_0xed23ec['offset'];!function _0x4f3819(_0x813cc0,_0x4b374e,_0x36cda0,_0x496d3b){for(let _0x553945=_0x36cda0;_0x553945<_0x496d3b;_0x553945++){const _0x154420=_0x4b374e['getChild'](_0x553945);_0x154420['is']('element','$text')?_0x813cc0['set'](_0x154420['getAttribute']('vid'),{'userId':_0x27e82c}):(_0x813cc0['set'](_0x154420['getAttribute']('vid_start'),{'userId':_0x27e82c}),_0x4f3819(_0x813cc0,_0x154420,0x0,_0x154420['childCount']),_0x813cc0['set'](_0x154420['getAttribute']('vid_end'),{'userId':_0x27e82c}));}}(this['_touched'],_0x16792d,_0x2ee1e7,_0x2ee1e7+_0x78219['howMany']);}['_handleMergeOperation'](_0x1c750a){const _0x3a19e4=null===(_0x1c750a=this['_cloneOperation'](_0x1c750a,this['_idsRoots']))['_authorId']?null:_0x1c750a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x44a3ba=_0x1c750a['targetPosition']['parent'],_0x3e26d5=_0x1c750a['sourcePosition']['parent'],_0x232ea0=_0x44a3ba['getAttribute']('vid_end'),_0x1ccf19=_0x3e26d5['getAttribute']('vid_start');_0x44a3ba['_setAttribute']('vid_end',_0x3e26d5['getAttribute']('vid_end')),_0x3e26d5['_setAttribute']('vid_end',_0x232ea0),this['_touched']['set'](_0x1ccf19,{'userId':_0x3a19e4}),this['_touched']['set'](_0x232ea0,{'userId':_0x3a19e4}),_0x1c750a['_execute']();}['_handleSplitOperation'](_0x5c6866){const _0x38a728=null===(_0x5c6866=this['_cloneOperation'](_0x5c6866,this['_idsRoots']))['_authorId']?null:_0x5c6866['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x689a03=_0x5c6866['graveyardPosition'],_0x243f30=_0x5c6866['splitPosition']['parent'];_0x5c6866['_execute']();const _0x21d705=_0x243f30['getAttribute']('vid_end'),_0x55c21d=_0x5c6866['insertionPosition']['nodeAfter'];if(_0x689a03){const _0x42bc8e=_0x55c21d['getAttribute']('vid_end'),_0x2af6bd=_0x243f30['getAttribute']('vid_end');_0x243f30['_setAttribute']('vid_end',_0x42bc8e),_0x55c21d['_setAttribute']('vid_end',_0x2af6bd),this['_touched']['set'](_0x243f30['getAttribute']('vid_end'),{'userId':_0x38a728}),this['_touched']['set'](_0x55c21d['getAttribute']('vid_start'),{'userId':_0x38a728});}else{const _0x151a3c=this['_revisionId']++,_0x4cd144=this['_revisionId']++;_0x243f30['_setAttribute']('vid_end',_0x151a3c),_0x55c21d['_setAttribute']('vid_start',_0x4cd144),_0x55c21d['_setAttribute']('vid_end',_0x21d705),this['_touched']['set'](_0x151a3c,{'userId':_0x38a728}),this['_touched']['set'](_0x4cd144,{'userId':_0x38a728});}}['_handleMarkerOperation'](_0x56d0db){if(!_0x56d0db['affectsData'])return;const _0x4a8574=(_0x56d0db=this['_cloneOperation'](_0x56d0db,this['_diffRoots']))['oldRange']?_0x56d0db['oldRange']['root']:null,_0x55ab6d=_0x56d0db['newRange']?_0x56d0db['newRange']['root']:null;_0x4a8574&&this['_markers']['delete'](_0x56d0db['name']),_0x55ab6d&&this['_markers']['set'](_0x56d0db['name'],_0x56d0db['newRange']['clone']());const _0x26a7d7=null===_0x56d0db['_authorId']?null:_0x56d0db['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5ed18c=_0x56d0db['name'];if(!this['_touchedMarkers']['has'](_0x5ed18c))return void this['_touchedMarkers']['set'](_0x5ed18c,{'range':_0x56d0db['oldRange'],'userId':_0x26a7d7});const _0x503dab=this['_touchedMarkers']['get'](_0x5ed18c),_0x315bd8=_0x503dab['range'],_0x583fb9=_0x56d0db['newRange'];null==_0x315bd8&&null==_0x583fb9||_0x315bd8&&_0x583fb9&&_0x315bd8['isEqual'](_0x583fb9)?this['_touchedMarkers']['delete'](_0x56d0db['name']):_0x503dab['userId']=_0x26a7d7;}['_handleRootOperation'](_0x277a76,_0xa91c93){this['_diffRoots']['has'](_0x277a76['rootName'])?this['_diffRoots']['get'](_0x277a76['rootName'])['_isAttached']=_0x277a76['isAdd']:(this['_diffRoots']['set'](_0x277a76['rootName'],F(_0x277a76['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x277a76['rootName'],{}),_0xa91c93&&this['_idsRoots']['set'](_0x277a76['rootName'],F(_0x277a76['rootName'],!0x0)));const _0x4c55ae=null===_0x277a76['_authorId']?null:_0x277a76['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x254f4b=this['_touchedRoots']['get'](_0x277a76['rootName']);_0x254f4b&&_0x254f4b['userId']===_0x4c55ae?this['_touchedRoots']['delete'](_0x277a76['rootName']):this['_touchedRoots']['set'](_0x277a76['rootName'],{'userId':_0x4c55ae,'isAttached':_0x277a76['isAdd']});}['_handleRootAttributeOperation'](_0x53fa2){const _0x537fd6=this['_diffRootsAttributes']['get'](_0x53fa2['root']['rootName']);null===_0x53fa2['newValue']?delete _0x537fd6[_0x53fa2['key']]:_0x537fd6[_0x53fa2['key']]=_0x53fa2['newValue'];}}function T(_0x5bd7f2){const _0x39b618=F(_0x5bd7f2['rootName'],_0x5bd7f2['isAttached']());for(const _0x1bfb15 of _0x5bd7f2['getChildren']()){const _0xda548c=_0x1bfb15['_clone'](!0x0);_0x39b618['_appendChild'](_0xda548c);}return _0x39b618;}function F(_0x42ea64,_0x5a48a9=!0x0){const _0x2d17ec=new mt();return _0x2d17ec['rootName']=_0x42ea64,_0x2d17ec['_isAttached']=_0x5a48a9,_0x2d17ec['isAttached']=()=>_0x2d17ec['_isAttached'],_0x2d17ec;}function B(_0x202e2d,_0x416d0b,_0x5888d5){const _0xbc3fb9='elementEnd'==_0x202e2d['type']?_0x5888d5['createPositionAt'](_0x202e2d['item'],'end'):_0x5888d5['createPositionBefore'](_0x202e2d['item']);return _0x5888d5['createPositionFromPath'](_0x416d0b,_0xbc3fb9['path'],_0xbc3fb9['stickiness']);}function J(_0x538c70,_0x1f33c7,_0x2c82ae){const _0x17d7a5='elementStart'==_0x538c70['type']?_0x2c82ae['createPositionAt'](_0x538c70['item'],0x0):_0x2c82ae['createPositionAfter'](_0x538c70['item']);return _0x2c82ae['createPositionFromPath'](_0x1f33c7,_0x17d7a5['path'],_0x17d7a5['stickiness']);}class hs extends _0x2110a1{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x33f6b7,_0x52d526){super(_0x33f6b7),this['focusTracker']=new _0x4cc23d(),this['keystrokes']=new _0x33cb8e(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x52d526),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'](),_0x665807({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x5470a5=_0x4da46a=>_0x4da46a['stopPropagation']();this['keystrokes']['set']('arrowright',_0x5470a5),this['keystrokes']['set']('arrowleft',_0x5470a5),this['keystrokes']['set']('arrowup',_0x5470a5),this['keystrokes']['set']('arrowdown',_0x5470a5);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x316f4f){this['revisionNameInputView']['fieldView']['element']['value']=_0x316f4f['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x48c4ff){const _0x150bd8=new nt(this['locale'],_0x176e3c),_0x14a440=_0x150bd8['fieldView'];_0x14a440['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x1a4c33=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x48c4ff&&(_0x1a4c33+='\x20('+m(this['locale'],'optional')+')'),(_0x150bd8['label']=_0x1a4c33,_0x14a440['on']('input',()=>{this['revisionNameInputValue']=_0x14a440['element']['value']['trim']();}),_0x150bd8);}}class u extends _0x53f3b9{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x45b753=this['editor'],_0x15863d=_0x45b753['plugins']['get']('RevisionTracker');_0x45b753['ui']['componentFactory']['add']('revisionHistory',_0x3547d4=>{const _0x50c203=_0x221db2(_0x3547d4),_0x1e6b28=_0x50c203['panelView']['children'],_0x1b2568=new _0x4d2cd0(_0x3547d4),_0x1ecc4d=new te(_0x3547d4),_0x544aff=new _0x397beb(_0x3547d4),_0x136665=new te(_0x3547d4),_0x160aa1=new _0x397beb(_0x3547d4);return _0x50c203['bind']('isEnabled')['to'](_0x15863d,'isReady',_0x15863d,'isEnabled',_0x45b753,'isReadOnly',(_0x495384,_0x31fece,_0x250b0f)=>_0x495384&&_0x31fece&&!_0x250b0f),_0x50c203['buttonView']['set']({'icon':_0x48df4e['history'],'label':m(_0x3547d4,'Revision\x20history'),'tooltip':!0x0}),_0x544aff['set']({'label':m(_0x3547d4,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x544aff['bind']('isEnabled')['to'](_0x15863d,'isReady',_0x15863d,'isEnabled',_0x45b753,'isReadOnly',(_0x269828,_0x4b9336,_0x4d36ae)=>_0x269828&&_0x4b9336&&!_0x4d36ae),_0x544aff['on']('execute',()=>this['_showDialog']()),_0x160aa1['set']({'label':m(_0x3547d4,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x160aa1['bind']('isEnabled')['to'](_0x15863d,'isReady',_0x45b753,'isReadOnly',(_0x45bcaf,_0xf19427)=>_0x45bcaf&&!_0xf19427),_0x160aa1['on']('execute',()=>{_0x45b753['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x50c203['isOpen']=!0x1,_0x45b753['editing']['view']['focus']();}),_0x1ecc4d['children']['add'](_0x544aff),_0x136665['children']['add'](_0x160aa1),_0x1b2568['role']='menu',_0x1b2568['items']['addMany']([_0x1ecc4d,_0x136665]),_0x1e6b28['add'](_0x1b2568),_0x50c203;}),_0x45b753['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x303848=this['editor'],_0x512bcd=_0x303848['locale'],_0x4f1a62=new _0x70d87(_0x512bcd),_0xc46456=new _0x59534d(_0x512bcd);_0x4f1a62['buttonView']['set']({'icon':_0x48df4e['history'],'label':m(_0x512bcd,'Revision\x20history')});const _0x13311b=new _0x4f1daf(_0x512bcd,_0x4f1a62),_0xbf1736=new _0x31a9d4(_0x512bcd);_0xbf1736['set']({'label':m(_0x512bcd,'Save\x20current\x20revision')}),_0xbf1736['delegate']('execute')['to'](_0x4f1a62),_0xbf1736['on']('execute',()=>{this['_showDialog']();}),_0x13311b['children']['add'](_0xbf1736),_0xc46456['items']['add'](_0x13311b);const _0x2e7c74=new _0x4f1daf(_0x512bcd,_0x4f1a62),_0x343456=new _0x31a9d4(_0x512bcd);return _0x343456['set']({'label':m(_0x512bcd,'Open\x20revision\x20history')}),_0x343456['delegate']('execute')['to'](_0x4f1a62),_0x343456['on']('execute',()=>{_0x303848['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x2e7c74['children']['add'](_0x343456),_0xc46456['items']['add'](_0x2e7c74),_0x4f1a62['panelView']['children']['add'](_0xc46456),_0x4f1a62;}['_showDialog'](){const _0x1d1be9=this['editor'],_0x55dbdb=_0x1d1be9['locale'],_0x3c5b64=_0x1d1be9['plugins']['get']('Dialog'),_0xee249a=_0x1d1be9['plugins']['get']('RevisionTracker');function _0x4eed3c(_0x4ab38d){_0x1d1be9['config']['get']('revisionHistory.requireRevisionName')&&''===_0x4ab38d['revisionName']?_0x4ab38d['revisionNameInputView']['errorText']=m(_0x55dbdb,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x1d1be9['plugins']['get'](l)['saveRevision']({'name':_0x4ab38d['revisionName']}),_0x3c5b64['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x4eed3c(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x3c5b64['show']({'id':'revisionSave','title':m(_0x55dbdb,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x1d1be9['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x3c5b64['hide']()},{'label':m(_0x1d1be9['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x2a27ab){_0x2a27ab['bind']('isEnabled')['to'](_0xee249a,'isReady',_0xee249a,'isEnabled',_0x1d1be9,'isReadOnly',(_0x39d777,_0xf1b975,_0x9f34c5)=>_0x39d777&&_0xf1b975&&!_0x9f34c5);},'onExecute':()=>_0x4eed3c(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x1ae173=this['editor'],_0x255770=_0x1ae173['locale'];this['_saveRevisionFormView']=new hs(_0x255770,_0x1ae173['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x2110a1{['changeId'];['_model'];constructor(_0x5a7379,_0x13639b){super(_0x5a7379),this['_model']=_0x13639b,this['changeId']=_0x13639b['id'];const _0x23d8ea=this['bindTemplate'],_0xe9136a=m(_0x5a7379,_0x13639b['data']['isSuggestion']?'Suggested\x20by':'add'==_0x13639b['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x13639b['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x23d8ea['to']('type',_0x3afe1b=>'ck-revision-change__'+_0x3afe1b)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0xe9136a}]},{'text':'\x20'+_0x13639b['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x361808(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x4a6399){super(),this['id']=_0x4a6399['id']||_0x4e1ee9(),this['author']=_0x4a6399['author'],this['type']=_0x4a6399['type'],this['data']=_0x4a6399['data']||{},this['rootName']=_0x4a6399['rootName'],this['set']('createdAt',_0x4a6399['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(_0x4e9d14,_0x3c7128){this['newRevisionId']=_0x4e9d14,this['oldRevisionId']=_0x3c7128,this['changes']=new _0x25f72c();}['_setChanges'](_0x3066b4){for(const _0x1ea2d0 of _0x3066b4)this['changes']['add'](_0x1ea2d0);}}const Y={'c':_0x2b87d7,'a':_0x3290cf,'e':_0x35fb3e,'r':_0x53bb2c,'u':_0x2eb804};class d extends _0x53f3b9{['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[_0xf2dc20,_0x5f3aac,j];}constructor(_0x1bbd6e){super(_0x1bbd6e),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',(_0x11879c,_0x517e16,_0x41920e)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x3fc678=>{for(const _0x5bbf0f of this['editor']['editing']['view']['document']['roots'])_0x41920e?_0x3fc678['removeClass']('ck-editor__editable__overlay',_0x5bbf0f):_0x3fc678['addClass']('ck-editor__editable__overlay',_0x5bbf0f);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x240d94=>null!==_0x240d94),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x36bb46,_0x4fe187,_0x12b0c5)=>_0x36bb46&&_0x12b0c5?_0x4fe187['changes']['getIndex'](_0x12b0c5):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x35cd56,_0x26f0b7)=>_0x35cd56?_0x26f0b7['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x5f3aac);}['init'](){const _0x208e90=this['editor'],_0xdb20e9=new yt(_0x208e90,{'direction':'backward'}),_0x4bd48d=new yt(_0x208e90,{'direction':'forward'});(_0x208e90['commands']['add']('showPreviousChange',_0xdb20e9),_0x208e90['commands']['add']('showNextChange',_0x4bd48d),_0x208e90['commands']['add']('restoreRevision',new _t(_0x208e90)),this['on']('change:numberOfChanges',()=>{_0xdb20e9['refresh'](),_0x4bd48d['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x208e90['enableReadOnlyMode']('revision-viewer'),_0x208e90['plugins']['has']('WidgetToolbarRepository'))&&_0x208e90['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x2dd955){await this['loadRevisionData'](_0x2dd955);const _0x2f328d={};for(const _0x528665 in _0x2dd955['diffData']){if(_0x2dd955['diffData'][_0x528665]['attachChange']&&!_0x2dd955['diffData'][_0x528665]['attachChange']['isAttached'])continue;const _0x1513f=this['_removeRevisionMarkers'](JSON['parse'](_0x2dd955['diffData'][_0x528665]['insertions'])),_0x43f225=this['editor']['editing']['view']['document'],_0xc43564=new _0x12b0a7(_0x43f225,_0x1513f['map'](_0xd76889=>this['_getViewObj'](_0xd76889)));this['editor']['data']['processor']['useFillerType']('marked'),_0x2f328d[_0x528665]=this['editor']['data']['processor']['toData'](_0xc43564),this['editor']['data']['processor']['useFillerType']('default');}return _0x2f328d;}async['getRevisionRootsAttributes'](_0x16e23d){await this['loadRevisionData'](_0x16e23d);const _0x4bb0ed={};for(const _0x2d99b5 in _0x16e23d['diffData'])_0x16e23d['diffData'][_0x2d99b5]['attachChange']&&!_0x16e23d['diffData'][_0x2d99b5]['attachChange']['isAttached']||(_0x4bb0ed[_0x2d99b5]=_0x16e23d['diffData'][_0x2d99b5]['attributesAfter']||{});return _0x4bb0ed;}['_removeRevisionMarkers'](_0x376d73){return(_0x376d73=_0x376d73['filter'](_0x3947b7=>!_0x3947b7['name']||'revision-start'!==_0x3947b7['name']&&'revision-end'!==_0x3947b7['name']))['forEach'](_0x337f61=>{'string'!=typeof _0x337f61&&(_0x337f61['children']=this['_removeRevisionMarkers'](_0x337f61['children']),_0x337f61['attributes']=_0x337f61['attributes']['filter'](_0x1e646f=>!_0x1e646f[0x0]['startsWith']('data-revision-')));}),_0x376d73;}async['compare'](_0x4ffe90,_0x3368db,_0x4dd0ce=!0x1){if(!this['isEnabled'])return;const _0x497bc1=this['diff'],_0x5be7cf=this['repository'],_0x3f9156='string'==typeof _0x4ffe90?_0x5be7cf['getRevision'](_0x4ffe90):_0x4ffe90,_0x5824a3='string'==typeof _0x3368db?_0x5be7cf['getRevision'](_0x3368db):_0x3368db,_0x5b98c4=_0x3f9156['id'],_0x229cbc=_0x5824a3?_0x5824a3['id']:null;if(!_0x4dd0ce&&this['diff']&&this['diff']['newRevisionId']===_0x5b98c4&&this['diff']['oldRevisionId']===_0x229cbc)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x5b98c4,_0x229cbc);const _0x2563e0=this['_getRevisionsRange'](_0x3f9156,_0x5824a3,!0x0)['map'](_0x29d02d=>this['loadRevisionData'](_0x29d02d));return _0x2563e0['push'](new Promise(_0x49ecb5=>{setTimeout(_0x49ecb5,0x14);})),Promise['all'](_0x2563e0)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x2ae4be=this['_getDiff'](_0x5b98c4,_0x229cbc);for(const _0xf48c3a of _0x2ae4be['changes'])this['_changeIdToChange']['set'](_0xf48c3a['id'],_0xf48c3a);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5162d3=>{for(const _0x22ba7b of this['editor']['model']['document']['getRootNames']())_0x5162d3['detachRoot'](_0x22ba7b);for(const _0x474a58 of Object['keys'](_0x2ae4be['model'])){const _0x415168=_0x5162d3['addRoot'](_0x474a58);for(const _0x5bba9e of Object['keys'](_0x2ae4be['attributes'][_0x474a58]))_0x5162d3['setAttribute'](_0x5bba9e,_0x2ae4be['attributes'][_0x474a58][_0x5bba9e],_0x415168);_0x5162d3['insert'](_0x2ae4be['model'][_0x474a58],_0x415168,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x2ae4be['changes'])),this['isReady']=!0x0;})['catch'](_0xf071c5=>{console['error'](_0xf071c5),this['_cleanUp'](),_0x497bc1&&(this['diff']=_0x497bc1),this['isReady']=!0x0;});}['addRevisionData'](_0x2ff4bc,_0x5a49b6){const _0x59ca8d=this['repository']['createRevision'](_0x2ff4bc);return _0x59ca8d['on']('_update',(_0x430c23,_0x438579,_0x20facd)=>_0x5a49b6(_0x438579,_0x20facd,_0x59ca8d)),this['repository']['addRevision'](_0x59ca8d),_0x59ca8d;}['loadRevisionData'](_0x4a0d19){if(!_0x4a0d19||_0x4a0d19['diffData'])return Promise['resolve']();{const _0x56dae7=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x56dae7,'revisionId':_0x4a0d19['id']})['then'](_0x368276=>{_0x4a0d19['_update']({'diffData':_0x368276['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},_0xd2c6dc=>{for(const _0x581a1c of this['editor']['model']['document']['getRootNames']())_0xd2c6dc['detachRoot'](_0x581a1c);});}['_sortAndFilterDiffChanges'](_0x3f30aa){const _0x42ed77=[],_0x152d41=new Map();for(const _0x48666e of this['editor']['model']['document']['getRootNames']()){const _0x36ea3f=this['editor']['editing']['view']['getDomRoot'](_0x48666e);if(!_0x36ea3f)continue;const _0x33e8ae=_0x36ea3f['getClientRects']()['item'](0x0);_0x33e8ae&&(_0x42ed77['push'](_0x48666e),_0x152d41['set'](_0x48666e,_0x33e8ae));}return _0x42ed77['sort']((_0x2ae192,_0x330417)=>{const _0x476159=_0x152d41['get'](_0x2ae192),_0x338d3e=_0x152d41['get'](_0x330417);return _0x476159['y']-_0x338d3e['y']||_0x476159['x']-_0x338d3e['x'];}),(_0x3f30aa=_0x3f30aa['filter'](_0x22300e=>_0x42ed77['includes'](_0x22300e['rootName'])))['sort']((_0xaae8ed,_0x29f5b4)=>_0x42ed77['indexOf'](_0xaae8ed['rootName'])-_0x42ed77['indexOf'](_0x29f5b4['rootName'])),_0x3f30aa;}['_makeTape'](_0x4bb1d7){const _0x14269f=Array['from'](_0x4bb1d7['markers'])['filter'](([_0x57ca2e,_0x2b4d37])=>_0x57ca2e['startsWith']('revision:')&&!_0x2b4d37['isCollapsed']),_0x7e8ad3=Array['from'](this['editor']['model']['createRangeIn'](_0x4bb1d7)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x14269f['length'])for(const _0x399515 of _0x7e8ad3){const [_0x4dae0f,_0x1f457a]=_0x14269f[0x0],[,_0xef8c0c,_0x4584a1]=_0x4dae0f['split'](':');if(_0x1f457a['end']['isEqual'](_0x399515['nextPosition'])&&_0x14269f['shift'](),(_0x399515['previousPosition']['isEqual'](_0x1f457a['start'])||_0x399515['previousPosition']['isAfter'](_0x1f457a['start']))&&('insertion'==_0xef8c0c?_0x399515['isAdded']={'userId':_0x4584a1}:'deletion'==_0xef8c0c&&(_0x399515['isRemoved']={'userId':_0x4584a1})),0x0==_0x14269f['length'])break;}return _0x7e8ad3;}['_refreshStartEndIndex'](_0x2b82de){const _0x2d35f3=new Map();for(let _0x2f7034=0x0;_0x2f7034<_0x2b82de['length'];_0x2f7034++)'text'===_0x2b82de[_0x2f7034]['type']?(_0x2b82de[_0x2f7034]['item']['startIndex']=_0x2f7034,_0x2b82de[_0x2f7034]['item']['endIndex']=_0x2f7034):('elementStart'===_0x2b82de[_0x2f7034]['type']?_0x2b82de[_0x2f7034]['item']['startIndex']=_0x2f7034:'elementEnd'===_0x2b82de[_0x2f7034]['type']&&(_0x2b82de[_0x2f7034]['item']['endIndex']=_0x2f7034),_0x2d35f3['set'](_0x2b82de[_0x2f7034]['id'],_0x2f7034));for(const _0x5c016a of _0x2d35f3['values']())'elementStart'===_0x2b82de[_0x5c016a]['type']?_0x2b82de[_0x5c016a]['item']['endIndex']=_0x2d35f3['get'](_0x2b82de[_0x5c016a]['pairId']):'elementEnd'===_0x2b82de[_0x5c016a]['type']&&(_0x2b82de[_0x5c016a]['item']['startIndex']=_0x2d35f3['get'](_0x2b82de[_0x5c016a]['pairId']));}['_processTape'](_0x465db8){for(let _0x41b789=0x0;_0x41b789<_0x465db8['length'];_0x41b789++){if('elementStart'===_0x465db8[_0x41b789]['type'])_0x465db8[_0x41b789]['item']['startIndex']=_0x41b789;else{if('elementEnd'===_0x465db8[_0x41b789]['type']){_0x465db8[_0x41b789]['item']['endIndex']=_0x41b789;const _0x48acbc=_0x465db8[_0x41b789]['item']['startIndex'];_0x465db8[_0x48acbc]['pairId']=_0x465db8[_0x41b789]['id'],_0x465db8[_0x41b789]['pairId']=_0x465db8[_0x48acbc]['id'];}else _0x465db8[_0x41b789]['item']['startIndex']=_0x41b789,_0x465db8[_0x41b789]['item']['endIndex']=_0x41b789,_0x465db8[_0x41b789]['pairId']=null;}_0x465db8[_0x41b789]['markersStart']||(_0x465db8[_0x41b789]['markersStart']=[],_0x465db8[_0x41b789]['markersEnd']=[]);}}['_markInsertions'](_0x12a078,_0x492ee7){const _0x2c9125=_0x12a078['filter'](_0x4bda47=>!_0x4bda47['isAdded']);for(let _0x2b50f5=0x0;_0x2b50f5<_0x492ee7['length'];_0x2b50f5++)_0x492ee7[_0x2b50f5]['isAdded']&&(_0x2c9125[_0x2b50f5]['isAdded']=_0x492ee7[_0x2b50f5]['isAdded']);}['_makeModelFromViewString'](_0x5b8122){const _0x3a350b=JSON['parse'](_0x5b8122),_0x5aa228=this['editor']['editing']['view']['document'],_0x41e83e=new _0x12b0a7(_0x5aa228,_0x3a350b['map'](_0x149da6=>this['_getViewObj'](_0x149da6)));return this['editor']['data']['toModel'](_0x41e83e);}['_getViewObj'](_0x4460a7){const _0x3a9868=this['editor']['editing']['view']['document'];if('string'==typeof _0x4460a7)return new _0x49cfbb(_0x3a9868,_0x4460a7);{const _0x1107af=_0x4460a7['children']['map'](_0x196f26=>this['_getViewObj'](_0x196f26));return new(Y[_0x4460a7['type']]||_0x5213af)(_0x3a9868,_0x4460a7['name'],_0x4460a7['attributes'],_0x1107af);}}['_getDiff'](_0x28ac12,_0x3b55ad=null){const _0x1f9a16=this['repository']['getRevision'](_0x28ac12),_0x2a9070=_0x3b55ad?this['repository']['getRevision'](_0x3b55ad):null,_0x48d8=this['_getRevisionsRange'](_0x1f9a16,_0x2a9070),_0x3a77c4=_0x48d8[_0x48d8['length']-0x1],_0x4e3d49=new Map(),_0xb70370={'model':{},'attributes':{},'changes':[]},_0x35526b=new Set(),_0x17cc38=new Map();for(let _0x177dce=_0x48d8['length']-0x1;_0x177dce>=0x0;_0x177dce--){const _0x18f65b=_0x48d8[_0x177dce];for(const _0x32c332 of Object['keys'](_0x18f65b['diffData']))if(_0x18f65b['diffData'][_0x32c332]['attachChange']){const _0xea922b=_0x18f65b['diffData'][_0x32c332]['attachChange'];_0xea922b['isAttached']?(_0x35526b['add'](_0x32c332),_0x17cc38['has'](_0x32c332)&&_0x17cc38['get'](_0x32c332)['userId']==_0xea922b['userId']?_0x17cc38['delete'](_0x32c332):_0x17cc38['set'](_0x32c332,_0xea922b)):_0x17cc38['has'](_0x32c332)?(_0x35526b['delete'](_0x32c332),_0x17cc38['delete'](_0x32c332)):(_0x35526b['add'](_0x32c332),_0x17cc38['set'](_0x32c332,_0xea922b));}else _0x35526b['add'](_0x32c332);}for(const _0x48c8cb of _0x35526b){const _0x50524b=_0x17cc38['has'](_0x48c8cb)&&!_0x17cc38['get'](_0x48c8cb)['isAttached'];let _0x37c96a=_0x50524b?_0x48d8['length']-0x1:0x0;const _0x5e30df=_0x50524b?-0x1:0x1;for(;_0x48d8[_0x37c96a];){const _0x474237=_0x48d8[_0x37c96a];if(_0x474237['diffData'][_0x48c8cb]){const _0x384c8d=_0x50524b?_0x474237['diffData'][_0x48c8cb]['attributesBefore']:_0x474237['diffData'][_0x48c8cb]['attributesAfter'];_0xb70370['attributes'][_0x48c8cb]=_0x384c8d?_0xf7ee50(_0x384c8d):{};break;}_0x37c96a+=_0x5e30df;}}for(const _0x4144af of _0x48d8){_0x4144af['model']={};for(const _0x34570f of _0x4144af['authors'])_0x4e3d49['set'](_0x34570f['id'],_0x34570f);for(const _0x4ace7e of _0x35526b){const _0x2fa1ff=_0x4144af['diffData'][_0x4ace7e]?_0x4144af['diffData'][_0x4ace7e]['insertions']:'[]',_0x59dff4=_0x4144af['diffData'][_0x4ace7e]?_0x4144af['diffData'][_0x4ace7e]['deletions']:'[]';_0x4144af['model'][_0x4ace7e]={'insertions':this['_makeModelFromViewString'](_0x2fa1ff),'deletions':this['_makeModelFromViewString'](_0x59dff4)};}}for(const _0x2387ee of _0x35526b){let _0x28c27b=null,_0x4068ed=0x0;const _0x4e0d33=new Map(Array['from'](_0x1f9a16['model'][_0x2387ee]['insertions']['markers'])['filter'](([_0x3f1225])=>!_0x3f1225['startsWith']('revision:')));let _0x2ddbfa=0x0;for(const _0x265c5b of _0x48d8){const _0x25d268=this['_makeTape'](_0x265c5b['model'][_0x2387ee]['insertions']);_0x265c5b==_0x1f9a16?(_0x28c27b=_0x25d268,_0x4068ed=_0x28c27b['length'],_0x28c27b['forEach'](_0x18eae0=>{_0x18eae0['id']=_0x2ddbfa++;}),this['_processTape'](_0x28c27b)):this['_markInsertions'](_0x28c27b,_0x25d268);const _0x5a8472=_0x28c27b['filter'](_0x314159=>!_0x314159['isAdded'])['map'](_0x2cf8c8=>_0x2cf8c8['id']);let _0xa8b41c=0x0;const _0x215f3b=this['_makeTape'](_0x265c5b['model'][_0x2387ee]['deletions']);_0x215f3b['forEach'](_0x56fdcf=>{_0x56fdcf['isRemoved']?_0x56fdcf['id']=_0x4068ed++:_0x56fdcf['id']=_0x5a8472[_0xa8b41c++];}),this['_processTape'](_0x215f3b),this['_setDistance'](_0x28c27b,'isAdded'),this['_setDistance'](_0x215f3b,'isRemoved'),_0x265c5b==_0x1f9a16&&this['_markMarkers'](_0x28c27b,_0x4e0d33),_0x28c27b=this['_joinTapes'](_0x28c27b,_0x215f3b),this['_refreshStartEndIndex'](_0x28c27b),this['_setDistance'](_0x28c27b,'isRemoved');}_0x28c27b=_0x28c27b['filter'](_0x47e648=>!(_0x47e648['isAdded']&&_0x47e648['isRemoved']));const _0x49fba3=new Map(_0x3a77c4['model'][_0x2387ee]['deletions']['markers']),_0x231d7c=new Set(_0x4e0d33['keys']());for(const _0x2f4ed6 of _0x49fba3['keys']())_0x231d7c['delete'](_0x2f4ed6);this['_markSuggestions'](_0x28c27b,_0x231d7c),this['_fixObsoleteTags'](_0x28c27b),_0x28c27b=this['_removeMissingPairs'](_0x28c27b),_0x28c27b=this['_markMismatchedRemovedTags'](_0x28c27b),_0x28c27b=this['_removeUnsupportedChanges'](_0x28c27b);const {root:_0xdf4639,changes:_0x3e5d55}=this['_makeModelFromTape'](_0x28c27b,_0x4e3d49,_0x2387ee);_0xb70370['model'][_0x2387ee]=_0xdf4639;const _0x419a29=_0x17cc38['get'](_0x2387ee);if(_0x419a29){const _0x33303d=_0x4e3d49['get'](_0x419a29['userId']),_0x495351=new r({'author':_0x33303d,'type':_0x419a29['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2387ee});_0x3e5d55['unshift'](_0x495351),_0xb70370['attributes'][_0x2387ee]['revisionHistoryAttachChange']=_0x495351['id'];}_0xb70370['changes']=_0xb70370['changes']['concat'](_0x3e5d55);}return _0xb70370;}['_markMarkers'](_0xae932c,_0x28e130){for(let _0x31978e=0x0;_0x31978e<_0xae932c['length'];_0x31978e++)for(const [_0x507c21,_0xde9a77]of _0x28e130)_0xde9a77['start']['isEqual'](_0xae932c[_0x31978e]['previousPosition'])&&_0xae932c[_0x31978e]['markersStart']['push'](_0x507c21),_0xde9a77['end']['isEqual'](_0xae932c[_0x31978e]['nextPosition'])&&_0xae932c[_0x31978e]['markersEnd']['push'](_0x507c21);}['_joinTapes'](_0x57650b,_0x530b38){let _0x55bd6b=[],_0x377bf4=0x0,_0x2c3617=0x0;for(;_0x377bf4<_0x57650b['length']||_0x2c3617<_0x530b38['length'];){const _0x301c78=_0x57650b[_0x377bf4]||{},_0x73455d=_0x530b38[_0x2c3617]||{};if(_0x301c78['id']==_0x73455d['id'])_0x377bf4++,_0x2c3617++,_0x55bd6b['push'](_0x301c78);else{if(_0x73455d['isRemoved']&&_0x301c78['isAdded']){const {commonTape:_0x4595b8,iEnd:_0x49fee9,jEnd:_0x5e1a4d}=this['_threeWayMerge'](_0x57650b,_0x377bf4,_0x530b38,_0x2c3617);_0x55bd6b=_0x55bd6b['concat'](_0x4595b8),_0x377bf4=_0x49fee9,_0x2c3617=_0x5e1a4d;}else _0x73455d['isRemoved']?(_0x2c3617++,_0x55bd6b['push'](_0x73455d)):(_0x377bf4++,_0x55bd6b['push'](_0x301c78));}}return _0x55bd6b;}['_markSuggestions'](_0x46bf92,_0x5d576d){const _0x280928=[];for(let _0x141dee=0x0;_0x141dee<_0x46bf92['length'];_0x141dee++){for(let _0x9d0d12=0x0;_0x9d0d12<_0x46bf92[_0x141dee]['markersStart']['length'];_0x9d0d12++){const _0x52a47e=_0x46bf92[_0x141dee]['markersStart'][_0x9d0d12];if(!_0x5d576d['has'](_0x52a47e))continue;const {group:_0x5071be,type:_0x15c2ac,authorId:_0x2a6391}=_0x1c8a51(_0x52a47e);'revision-suggestion'!=_0x5071be||'insertion'!=_0x15c2ac&&'deletion'!=_0x15c2ac||(_0x280928['unshift']({'type':_0x15c2ac,'name':_0x52a47e,'userId':_0x2a6391}),_0x46bf92[_0x141dee]['markersStart']['splice'](_0x9d0d12,0x1),_0x9d0d12--);}_0x192b43(_0x46bf92[_0x141dee]);for(let _0x1bee84=0x0;_0x1bee84<_0x46bf92[_0x141dee]['markersEnd']['length'];_0x1bee84++){const _0x32d859=_0x46bf92[_0x141dee]['markersEnd'][_0x1bee84];if(!_0x5d576d['has'](_0x32d859))continue;const {group:_0x5e1446,type:_0x44427a}=_0x1c8a51(_0x32d859);if('revision-suggestion'!=_0x5e1446||'insertion'!=_0x44427a&&'deletion'!=_0x44427a)continue;_0x46bf92[_0x141dee]['markersEnd']['splice'](_0x1bee84,0x1),_0x1bee84--;const _0x2fbf9d=_0x280928['findIndex'](_0x26f11c=>_0x26f11c['name']==_0x32d859);_0x2fbf9d>-0x1&&_0x280928['splice'](_0x2fbf9d,0x1);}}function _0x1c8a51(_0x24b788){const _0x77d735=_0x24b788['split'](':');return{'group':_0x77d735[0x0],'type':_0x77d735[0x1],'subType':_0x77d735['length']>=0x5?_0x77d735[0x2]:null,'id':_0x77d735['length']<0x5?_0x77d735[0x2]:_0x77d735[0x3],'authorId':_0x77d735['length']<0x5?_0x77d735[0x3]:_0x77d735[0x4],'markerCount':0x6==_0x77d735['length']?_0x77d735[0x5]:null};}function _0x192b43(_0x4e33e5){for(let _0xdf29cf=0x0;_0xdf29cf<_0x280928['length'];_0xdf29cf++){if(_0x4e33e5['isAdded']&&'insertion'==_0x280928[_0xdf29cf]['type'])return _0x4e33e5['isAddSuggestion']=_0x280928[_0xdf29cf],void delete _0x4e33e5['isAdded'];if(!_0x4e33e5['isAdded']&&!_0x4e33e5['isRemoved']&&'deletion'==_0x280928[_0xdf29cf]['type'])return void(_0x4e33e5['isRemoveSuggestion']=_0x280928[_0xdf29cf]);}}}['_setDistance'](_0x22719d,_0x592505){let _0x514677=0x0,_0x496eec=!0x1;const _0x129f71=new Map();for(const _0x3e7191 of _0x22719d)_0x3e7191[_0x592505]?_0x496eec&&(_0x514677++,_0x496eec=!0x1):(_0x514677++,_0x496eec=!0x0),_0x129f71['set'](_0x3e7191['id'],_0x514677);for(let _0x220ad9=0x0;_0x220ad9<_0x22719d['length'];_0x220ad9++){if('isRemoved'==_0x592505&&_0x22719d[_0x220ad9]['isAdded']||'isAdded'==_0x592505&&_0x22719d[_0x220ad9]['isRemoved'])continue;if('text'==_0x22719d[_0x220ad9]['type']){_0x22719d[_0x220ad9]['distance']=0x0;continue;}const _0x57e9d6=_0x129f71['get'](_0x22719d[_0x220ad9]['pairId']),_0x2e8182=_0x129f71['get'](_0x22719d[_0x220ad9]['id']);_0x22719d[_0x220ad9]['distance']=_0x57e9d6-_0x2e8182;}}['_getRevisionsRange'](_0x30986d,_0x3b7f2e,_0x39a034=!0x1){const _0x447f68=[];let _0x3e5ebc=this['repository']['getIndex'](_0x30986d),_0x4739ba=this['repository']['getIndex'](_0x3b7f2e);for(-0x1==_0x4739ba&&(_0x4739ba=this['repository']['_revisions']['length'],_0x39a034=!0x1);_0x3e5ebc<_0x4739ba;)_0x447f68['push'](this['repository']['getRevision'](_0x3e5ebc)),_0x3e5ebc++;return _0x39a034&&_0x447f68['push'](this['repository']['getRevision'](_0x3e5ebc)),_0x447f68;}['_threeWayMerge'](_0x25da25,_0x540b15,_0x455263,_0x38cb9f){const _0x1996e3=this['editor']['model']['schema'];let _0x42c0c7=_0x540b15;for(;_0x25da25[_0x42c0c7]&&_0x25da25[_0x42c0c7]['isAdded'];)_0x42c0c7++;let _0x32e59d=_0x38cb9f;for(;_0x455263[_0x32e59d]&&_0x455263[_0x32e59d]['isRemoved'];)_0x32e59d++;_0x47418b(_0x25da25,_0x540b15,_0x42c0c7),_0x47418b(_0x455263,_0x38cb9f,_0x32e59d);const _0xa69d74=_0x455263['slice'](_0x38cb9f,_0x32e59d)['concat'](_0x25da25['slice'](_0x540b15,_0x42c0c7));return _0xa69d74['sort']((_0x2d0393,_0x376340)=>_0x2d0393['side']!=_0x376340['side']?_0x2d0393['side']-_0x376340['side']:_0x2d0393['level']!=_0x376340['level']?_0x2d0393['level']-_0x376340['level']:_0x2d0393['distance']!=_0x376340['distance']?_0x376340['distance']-_0x2d0393['distance']:!!_0x2d0393['isAdded']!=!!_0x376340['isAdded']?-0x1==_0x2d0393['side']||0x0==_0x2d0393['side']?_0x2d0393['isAdded']?-0x1:0x1:_0x2d0393['isAdded']?0x1:-0x1:_0x2d0393['index']-_0x376340['index']),{'commonTape':_0xa69d74,'iEnd':_0x42c0c7,'jEnd':_0x32e59d};function _0x47418b(_0x2f8c3a,_0x396c15,_0x1f1e23){let _0x175878=-0x1,_0x2356bc=Number['POSITIVE_INFINITY'],_0x360a88=!0x0;for(let _0x12e4ec=_0x396c15;_0x12e4ec<_0x1f1e23;_0x12e4ec++)if(_0x1996e3['isInline'](_0x2f8c3a[_0x12e4ec]['item'])||(_0x360a88=!0x1),_0x2f8c3a[_0x12e4ec]['item']['startIndex']<_0x396c15&&(_0x175878=_0x12e4ec),_0x2f8c3a[_0x12e4ec]['item']['endIndex']>=_0x1f1e23){_0x2356bc=_0x12e4ec;break;}_0x360a88&&(_0x175878=_0x1f1e23-0x1);for(let _0x6be3d1=_0x396c15;_0x6be3d1<_0x1f1e23;_0x6be3d1++)_0x2f8c3a[_0x6be3d1]['side']=_0x6be3d1<=_0x175878?-0x1:_0x6be3d1<_0x2356bc?0x0:0x1,_0x2f8c3a[_0x6be3d1]['index']=_0x6be3d1;let _0x3b7de6=0x0;for(let _0x39d2d7=_0x396c15;_0x39d2d7<=_0x175878;_0x39d2d7++)0x0==_0x2f8c3a[_0x39d2d7]['distance']?_0x2f8c3a[_0x39d2d7]['level']=_0x3b7de6:(_0x3b7de6++,_0x2f8c3a[_0x39d2d7]['level']=_0x3b7de6,_0x3b7de6++);for(let _0x4d1677=_0x396c15;_0x4d1677<_0x1f1e23;_0x4d1677++)0x0==_0x2f8c3a[_0x4d1677]['side']&&(_0x2f8c3a[_0x4d1677]['level']=_0x3b7de6);_0x3b7de6=0x0;for(let _0x210153=_0x1f1e23-0x1;_0x210153>=_0x2356bc;_0x210153--)0x0==_0x2f8c3a[_0x210153]['distance']?_0x2f8c3a[_0x210153]['level']=_0x3b7de6:(_0x3b7de6--,_0x2f8c3a[_0x210153]['level']=_0x3b7de6,_0x3b7de6--);}}['_fixObsoleteTags'](_0x351744){const _0x46d9a0=new Map(),_0x58b3ea=this['editor']['model']['schema'];for(let _0x2ac67f=0x1;_0x2ac67f<_0x351744['length'];_0x2ac67f++){let _0x2a8008,_0x52c502,_0xf68dc2;const _0x5d0af1=_0x351744[_0x2ac67f],_0x560539=_0x351744[_0x2ac67f-0x1];if('text'==_0x5d0af1['type'])continue;if(_0x5d0af1['type']!=_0x560539['type'])continue;if(!_0x58b3ea['isBlock'](_0x560539['item'])||_0x58b3ea['isLimit'](_0x560539['item']))continue;if(!_0x58b3ea['isBlock'](_0x5d0af1['item'])||_0x58b3ea['isLimit'](_0x5d0af1['item']))continue;if((_0x351744[_0x2ac67f]['isAdded']||_0x351744[_0x2ac67f]['isAddSuggestion'])&&_0x351744[_0x2ac67f-0x1]['isRemoved'])_0x2a8008=_0x351744[_0x2ac67f],_0x52c502=_0x351744[_0x2ac67f-0x1],_0xf68dc2=_0x2ac67f-0x1;else{if(!_0x351744[_0x2ac67f]['isRemoved']||!_0x351744[_0x2ac67f-0x1]['isAdded']&&!_0x351744[_0x2ac67f-0x1]['isAddSuggestion'])continue;_0x2a8008=_0x351744[_0x2ac67f-0x1],_0x52c502=_0x351744[_0x2ac67f],_0xf68dc2=_0x2ac67f;}const _0x5661b3=_0x2a8008['level']==_0x52c502['level'],_0x4aaeee=Math['abs'](_0x2a8008['level'])<Math['abs'](_0x52c502['level'])&&0x0==_0x52c502['distance'];(_0x5661b3||_0x4aaeee)&&(_0x46d9a0['set'](_0x52c502['id'],_0x2a8008['id']),_0x351744['splice'](_0xf68dc2,0x1),_0x2ac67f--,_0x2a8008['isAdded']=!0x1);}for(let _0x3830f2=0x0;_0x3830f2<_0x351744['length'];_0x3830f2++)_0x46d9a0['has'](_0x351744[_0x3830f2]['pairId'])&&(_0x351744[_0x3830f2]['pairId']=_0x46d9a0['get'](_0x351744[_0x3830f2]['pairId']));}['_removeMissingPairs'](_0x57e607){const _0x2ebf35=new Set(_0x57e607['map'](_0x385e0d=>_0x385e0d['id']));for(let _0x5e6d54=0x0;_0x5e6d54<_0x57e607['length'];_0x5e6d54++)_0x2ebf35['has'](_0x57e607[_0x5e6d54]['pairId'])||0x0==_0x57e607[_0x5e6d54]['distance']||(_0x57e607[_0x5e6d54]['isIncorrect']=!0x0);return _0x57e607['filter'](_0x2cb8e9=>!_0x2cb8e9['isIncorrect']);}['_markMismatchedRemovedTags'](_0x41de8e){const _0x41e74f=new Set();for(let _0x4b7070=0x0;_0x4b7070<_0x41de8e['length'];_0x4b7070++){if(_0x41e74f['has'](_0x41de8e[_0x4b7070]['id'])&&_0x41de8e[_0x4b7070]['isRemoved']&&(_0x41de8e[_0x4b7070]['isIncorrect']=!0x0),_0x41de8e[_0x4b7070]['isIncorrect'])continue;if(0x0==_0x41de8e[_0x4b7070]['distance'])continue;if('elementStart'!=_0x41de8e[_0x4b7070]['type'])continue;if(null==_0x41de8e[_0x4b7070]['pairId'])continue;let _0x2ae773=_0x4b7070+0x1,_0x48d52a=0x0;for(;_0x41de8e[_0x2ae773]['id']!=_0x41de8e[_0x4b7070]['pairId'];)'elementStart'==_0x41de8e[_0x2ae773]['type']?_0x48d52a++:'elementEnd'==_0x41de8e[_0x2ae773]['type']&&_0x48d52a--,_0x2ae773++;if(0x0!=_0x48d52a){if(_0x41de8e[_0x4b7070]['isRemoved'])_0x41de8e[_0x4b7070]['isIncorrect']=!0x0;else{for(;_0x2ae773!=_0x4b7070;)_0x41de8e[_0x2ae773]['isRemoved']&&0x0!=_0x41de8e[_0x2ae773]['distance']&&(_0x41de8e[_0x2ae773]['isIncorrect']=!0x0,_0x41e74f['add'](_0x41de8e[_0x2ae773]['pairId'])),_0x2ae773--;}}}return _0x41de8e['filter'](_0x23ae10=>!_0x23ae10['isIncorrect']);}['_removeUnsupportedChanges'](_0x2b939e){const _0x3197d3=this['editor']['model']['schema'];for(let _0x3fe0d0=0x0;_0x3fe0d0<_0x2b939e['length'];_0x3fe0d0++){if(!(_0x2b939e[_0x3fe0d0]['isAdded']||_0x2b939e[_0x3fe0d0]['isAddSuggestion']||_0x2b939e[_0x3fe0d0]['isRemoved']||_0x2b939e[_0x3fe0d0]['isRemoveSuggestion']))continue;if(0x0==_0x2b939e[_0x3fe0d0]['distance'])continue;const _0x568d62=_0x2b939e[_0x3fe0d0]['item'];_0x3197d3['isBlock'](_0x568d62)||_0x3197d3['isLimit'](_0x568d62)||(_0x2b939e[_0x3fe0d0]['isAdded']&&delete _0x2b939e[_0x3fe0d0]['isAdded'],_0x2b939e[_0x3fe0d0]['isAddSuggestion']&&delete _0x2b939e[_0x3fe0d0]['isAddSuggestion'],_0x2b939e[_0x3fe0d0]['isRemoveSuggestion']&&delete _0x2b939e[_0x3fe0d0]['isRemoveSuggestion'],_0x2b939e[_0x3fe0d0]['isRemoved']&&(_0x2b939e[_0x3fe0d0]['isIncorrect']=!0x0));}return _0x2b939e['filter'](_0x76e0b8=>!_0x76e0b8['isIncorrect']);}['_makeModelFromTape'](_0x437b67,_0x180515,_0x5bb66e){const _0x443618=new mt(),_0x3fac54=[],_0x190f15=new Map(),_0x1cdf50=this['editor']['model'],_0x64892e=_0x1cdf50['schema'],_0x4b1045=[_0x443618],_0x18075e={},_0x4215f7={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x9b4936=null;const _0x45c0bc=[0x0];for(let _0x5a4958=0x0;_0x5a4958<_0x437b67['length'];_0x5a4958++)if('elementStart'===_0x437b67[_0x5a4958]['type']){_0x437b67[_0x5a4958]['previousPosition']=_0x1cdf50['createPositionFromPath'](_0x443618,_0x45c0bc);const _0x4ea2c0=new ft(_0x437b67[_0x5a4958]['item']['name'],_0x437b67[_0x5a4958]['item']['getAttributes']());_0x4b1045[0x0]['_appendChild'](_0x4ea2c0),_0x45c0bc['push'](0x0),_0x4b1045['unshift'](_0x4ea2c0),_0x437b67[_0x5a4958]['nextPosition']=_0x1cdf50['createPositionFromPath'](_0x443618,_0x45c0bc);}else'elementEnd'===_0x437b67[_0x5a4958]['type']?(_0x4b1045['shift'](),_0x437b67[_0x5a4958]['previousPosition']=_0x1cdf50['createPositionFromPath'](_0x443618,_0x45c0bc),_0x45c0bc['pop'](),_0x45c0bc[_0x45c0bc['length']-0x1]++,_0x437b67[_0x5a4958]['nextPosition']=_0x1cdf50['createPositionFromPath'](_0x443618,_0x45c0bc)):(_0x437b67[_0x5a4958]['previousPosition']=_0x1cdf50['createPositionFromPath'](_0x443618,_0x45c0bc),_0x9b4936?_0x9b4936['_data']+=_0x437b67[_0x5a4958]['item']['data']:_0x9b4936=new wt(_0x437b67[_0x5a4958]['item']['data'],_0x437b67[_0x5a4958]['item']['getAttributes']()),_0x437b67[_0x5a4958+0x1]&&'text'===_0x437b67[_0x5a4958+0x1]['type']&&_0x38eb98(_0x9b4936,_0x437b67[_0x5a4958+0x1]['item'])||(_0x4b1045[0x0]['_appendChild'](_0x9b4936),_0x9b4936=null),_0x45c0bc[_0x45c0bc['length']-0x1]+=_0x437b67[_0x5a4958]['item']['offsetSize'],_0x437b67[_0x5a4958]['nextPosition']=_0x1cdf50['createPositionFromPath'](_0x443618,_0x45c0bc));for(let _0x11f1f6=0x0;_0x11f1f6<_0x437b67['length'];_0x11f1f6++){const _0x4bf099=_0x437b67[_0x11f1f6]['previousPosition'],_0x46a500=_0x437b67[_0x11f1f6]['nextPosition'];for(const _0x4ac8e7 of _0x437b67[_0x11f1f6]['markersStart'])_0x190f15['set'](_0x4ac8e7,{'start':_0x4bf099,'end':null});_0x557137('isRemoveSuggestion',_0x11f1f6,_0x4bf099,_0x46a500),_0x557137('isAddSuggestion',_0x11f1f6,_0x4bf099,_0x46a500),_0x557137('isRemoved',_0x11f1f6,_0x4bf099,_0x46a500),_0x557137('isAdded',_0x11f1f6,_0x4bf099,_0x46a500);for(const _0x39a312 of _0x437b67[_0x11f1f6]['markersEnd']){_0x190f15['get'](_0x39a312)['end']=_0x46a500;}}for(const [_0x4c36d3,_0x124545]of _0x190f15){const _0x420401=this['editor']['model']['createRange'](_0x124545['start'],_0x124545['end']);_0x443618['markers']['set'](_0x4c36d3,_0x420401);}return _0x3fac54['sort']((_0x3efd83,_0x382341)=>{const _0x39cbc7=_0x443618['markers']['get']('revision:'+_0x3efd83['id']),_0x22c6f8=_0x443618['markers']['get']('revision:'+_0x382341['id']);return _0x39cbc7['start']['isBefore'](_0x22c6f8['start'])?-0x1:_0x39cbc7['start']['isAfter'](_0x22c6f8['start'])?0x1:_0x39cbc7['end']['isBefore'](_0x22c6f8['end'])?-0x1:_0x39cbc7['end']['isAfter'](_0x22c6f8['end'])?0x1:'add'===_0x3efd83['type']?-0x1:0x1;}),{'root':_0x443618,'changes':_0x3fac54};function _0x557137(_0xead85a,_0x2f622c,_0x21d7be,_0x45218e){const _0x42f9ca=!!_0x437b67[_0x2f622c][_0xead85a],_0x47ea3a=_0x42f9ca?_0x437b67[_0x2f622c][_0xead85a]['userId']:null,_0x58c437=_0x2f622c===_0x437b67['length']-0x1,_0x197880=_0x4215f7[_0xead85a][0x0],_0x8332de=_0x64892e['isObject'](_0x437b67[_0x2f622c]['item']);!_0x18075e[_0xead85a]&&_0x42f9ca?_0x18075e[_0xead85a]={'start':_0x21d7be,'tapeItem':_0x437b67[_0x2f622c],'userId':_0x47ea3a,'type':_0xead85a}:_0x18075e[_0xead85a]&&!_0x42f9ca?(_0x18075e[_0xead85a]['end']=_0x21d7be,_0x51b71b(_0x18075e[_0xead85a]),_0x18075e[_0xead85a]=null):_0x18075e[_0xead85a]&&_0x42f9ca&&_0x18075e[_0xead85a]['userId']!==_0x47ea3a&&(_0x18075e[_0xead85a]['end']=_0x21d7be,_0x197880&&_0x197880['userId']===_0x18075e[_0xead85a]['userId']||_0x51b71b(_0x18075e[_0xead85a]),_0x18075e[_0xead85a]={'start':_0x21d7be,'tapeItem':_0x437b67[_0x2f622c],'userId':_0x47ea3a,'type':_0xead85a}),_0x18075e[_0xead85a]&&_0x8332de&&('elementStart'!==_0x437b67[_0x2f622c]['type']||_0x197880&&_0x197880['userId']===_0x47ea3a||_0x4215f7[_0xead85a]['unshift']({'userId':_0x47ea3a,'object':_0x437b67[_0x2f622c]['item'],'change':_0x18075e[_0xead85a]}),'elementEnd'===_0x437b67[_0x2f622c]['type']&&_0x197880&&_0x197880['object']===_0x437b67[_0x2f622c]['item']&&(_0x4215f7[_0xead85a]['shift'](),_0x18075e[_0xead85a]=_0x197880['change'])),_0x18075e[_0xead85a]&&_0x58c437&&(_0x18075e[_0xead85a]['end']=_0x45218e,_0x51b71b(_0x18075e[_0xead85a]),_0x18075e[_0xead85a]=null);}function _0x51b71b({start:_0xbf8fb3,end:_0x809531,tapeItem:_0x28e585,userId:_0x2ff8c8,type:_0x3b9cc9}){const _0x101bca=_0x28e585['item'],_0x4543c7=_0x1cdf50['schema']['isBlock'](_0x101bca)&&!_0x1cdf50['schema']['isLimit'](_0x101bca),_0x27317e=_0xbf8fb3['nodeAfter']==_0x809531['parent']&&_0x809531['isAtStart'];if(_0x4543c7&&_0x27317e)return;const _0x2ef8f0=_0x1cdf50['createRange'](_0xbf8fb3,_0x809531),_0x507a7f=_0x180515['get'](_0x2ff8c8),_0xc2492a=new r({'author':_0x507a7f,'type':'isAdded'==_0x3b9cc9||'isAddSuggestion'==_0x3b9cc9?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x3b9cc9||'isRemoveSuggestion'==_0x3b9cc9},'createdAt':new Date(),'rootName':_0x5bb66e});_0x3fac54['push'](_0xc2492a),_0x443618['markers']['set']('revision:'+_0xc2492a['id'],_0x2ef8f0);}function _0x38eb98(_0x465aa0,_0x11523f){const _0x632562=_0x465aa0['getAttributes'](),_0x5834e5=_0x11523f['getAttributes']();for(const _0x551a9a of _0x632562){if(_0x551a9a[0x1]!==_0x11523f['getAttribute'](_0x551a9a[0x0]))return!0x1;_0x5834e5['next']();}return _0x5834e5['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x46a307=>{const _0xeaab6=_0x46a307['markerName']['split'](':')[0x1],_0x5df1d4=this['_getChangeFromId'](_0xeaab6);if(!_0x5df1d4)return null;const _0x2e28e9='add'==_0x5df1d4['type']?'insertion':'deletion',_0x466014=['ck-suggestion-marker','ck-suggestion-marker-'+_0x2e28e9];return _0x5df1d4['data']['isSuggestion']&&_0x466014['push']('ck-suggestion-marker-'+_0x2e28e9+'-new'),this['activeChange']==_0x5df1d4&&_0x466014['push']('ck-suggestion-marker--active'),{'classes':_0x466014,'attributes':{'data-change-id':_0xeaab6}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x43f71e=>{_0x43f71e['on']('element:pre',(_0x14dde6,_0x422bfb,_0x13dcaf)=>{const _0x278d28=_0x422bfb['viewItem']['getChild'](0x0);if(!_0x278d28||!_0x278d28['is']('element','code'))return;if(!_0x13dcaf['consumable']['consume'](_0x278d28,{'attributes':['vid_start','vid_end']}))return;const _0x16f0d7=_0x422bfb['modelRange']['start']['nodeAfter'];_0x13dcaf['writer']['setAttribute']('vid_start',_0x278d28['getAttribute']('vid_start'),_0x16f0d7),_0x13dcaf['writer']['setAttribute']('vid_end',_0x278d28['getAttribute']('vid_end'),_0x16f0d7);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x8c59d4=>{_0x8c59d4['on']('element',(_0x5dc37e,_0xe4071,_0x24c731)=>{if(!_0x24c731['consumable']['consume'](_0xe4071['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0xe4071['modelRange']['isCollapsed'])return;const _0x2bc1ea=_0xe4071['modelRange']['start']['nodeAfter'];_0x2bc1ea['hasAttribute']('vid_start')||_0x2bc1ea['hasAttribute']('vid')||(_0x24c731['writer']['setAttribute']('vid_start',_0xe4071['viewItem']['getAttribute']('vid_start'),_0x2bc1ea),_0x24c731['writer']['setAttribute']('vid_end',_0xe4071['viewItem']['getAttribute']('vid_end'),_0x2bc1ea));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x53f522=>_0x53f522['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x40462d,[,_0x35086f])=>{['vid_start','vid_end','vid']['includes'](_0x35086f)&&(_0x40462d['return']=!0x0,_0x40462d['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x38ffae=>{_0x38ffae['on']('attribute:vid',(_0x561d34,_0x1b09af,_0x362e99)=>{if('\x20'!=_0x1b09af['item']['data']||_0x1b09af['item']['parent']['maxOffset']>0x1)return;if(!_0x362e99['consumable']['consume'](_0x1b09af['item'],_0x561d34['name']))return;const _0x50a92b=_0x362e99['writer'],_0x29216f=_0x362e99['mapper']['toViewRange'](_0x1b09af['range']);_0x50a92b['wrap'](_0x29216f,_0x50a92b['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x1b47f6){const _0x50abe0=_0x1b47f6['plugins']['get']('RevisionViewer');return(_0x44f834,_0x43a21d,_0x694d9c)=>{const _0x5b9e9e=_0x43a21d['markerName']['split'](':')[0x1],_0x19bf4e=_0x50abe0['_getChangeFromId'](_0x5b9e9e);if(!_0x19bf4e)return null;const _0x19f614='add'==_0x19bf4e['type']?'split':'merge';if(!_0x694d9c['consumable']['test'](_0x43a21d['markerRange'],_0x44f834['name']))return;const _0x485538=_0x43a21d['markerRange']['getWalker'](),_0x3ee9e2=_0x43a21d['markerRange']['start'],_0x5cf19e=_0x1b47f6['model']['schema'];let _0x487b37=null,_0x155513=null,_0x313351=!0x1,_0x40c394=!0x1;for(const _0x2a74e2 of _0x485538){const _0x585545=_0x2a74e2['item'];_0x313351=_0x313351||_0x5cf19e['isContent'](_0x585545);const _0x247835=_0x694d9c['mapper']['toViewElement'](_0x585545);if(_0x247835&&_0x247835['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2a74e2['type']&&(_0x5cf19e['isBlock'](_0x585545)&&!_0x5cf19e['isLimit'](_0x585545)&&(_0x585545['nextSibling']||_0x3ee9e2['isAtEnd']?_0x487b37&&_0x487b37['parent']==_0x585545||(_0x487b37=_0x585545,_0x2218fc(_0x2a74e2['previousPosition']),_0x40c394=!0x0):_0x155513=_0x155513||_0x2a74e2['previousPosition']));}function _0x2218fc(_0x259f71){const _0x1da993=_0x694d9c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x19f614}),_0x163e43=_0x694d9c['mapper']['toViewPosition'](_0x259f71);_0x19bf4e['data']['isSuggestion']&&_0x694d9c['writer']['addClass']('ck-suggestion-marker-'+_0x19f614+'-new',_0x1da993),_0x50abe0['activeChange']==_0x19bf4e&&_0x694d9c['writer']['addClass']('ck-suggestion-marker--active',_0x1da993),_0x694d9c['writer']['insert'](_0x163e43,_0x1da993),_0x694d9c['mapper']['bindElementToMarker'](_0x1da993,_0x43a21d['markerName']);}_0x313351||_0x40c394||!_0x155513||_0x2218fc(_0x155513);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0xf4f1e4,_0x18f7d0,_0xa295b4)=>{const _0xdc16a1=_0xa295b4['mapper']['markerNameToElements'](_0x18f7d0['markerName']);if(_0xdc16a1){for(const _0x9953c5 of _0xdc16a1)(_0x9953c5['hasClass']('ck-suggestion-marker-split')||_0x9953c5['hasClass']('ck-suggestion-marker-merge'))&&(_0xa295b4['mapper']['unbindElementFromMarkerName'](_0x9953c5,_0x18f7d0['markerName']),_0xa295b4['writer']['remove'](_0x9953c5));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x26a88b,_0x2d82bd,_0x5267f4)=>{const _0x15b3cb=_0x2d82bd['markerName']['split'](':')[0x1],_0x54b9ae=this['_getChangeFromId'](_0x15b3cb);if(!_0x54b9ae)return null;const _0x3ae7f3='add'==_0x54b9ae['type']?'split':'merge';if(_0x5267f4['consumable']['test'](_0x2d82bd['markerRange'],_0x26a88b['name']))for(const _0x146bc0 of _0x2d82bd['markerRange']['getItems']()){if(!_0x146bc0['is']('element','softBreak'))continue;const _0x3e9a52=_0x5267f4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3ae7f3}),_0x5d8920=_0x5267f4['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x146bc0));_0x54b9ae['data']['isSuggestion']&&_0x5267f4['writer']['addClass']('ck-suggestion-marker-'+_0x3ae7f3+'-new',_0x3e9a52),this['activeChange']==_0x54b9ae&&_0x5267f4['writer']['addClass']('ck-suggestion-marker--active',_0x3e9a52),_0x5267f4['writer']['insert'](_0x5d8920,_0x3e9a52),_0x5267f4['mapper']['bindElementToMarker'](_0x3e9a52,_0x2d82bd['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x1ec886=>{for(const _0x44c122 of this['editor']['model']['document']['getRootNames']()){const _0x247335=this['editor']['model']['document']['getRoot'](_0x44c122),_0x56fe2c=this['editor']['editing']['view']['document']['getRoot'](_0x44c122);if(_0x56fe2c){const _0x5ef7e0=_0x247335['getAttribute']('revisionHistoryAttachChange');if(_0x1ec886['removeAttribute']('data-change-id',_0x56fe2c),_0x1ec886['removeClass']('ck-revision-history-root-add',_0x56fe2c),_0x1ec886['removeClass']('ck-revision-history-root-remove',_0x56fe2c),_0x1ec886['removeClass']('ck-revision-history-root--active',_0x56fe2c),_0x5ef7e0){const _0x5fb87a=this['_getChangeFromId'](_0x5ef7e0);if(!_0x5fb87a)return null;_0x1ec886['setAttribute']('data-change-id',_0x5ef7e0,_0x56fe2c),_0x1ec886['addClass']('ck-revision-history-root-'+_0x5fb87a['type'],_0x56fe2c),this['activeChange']==_0x5fb87a&&_0x1ec886['addClass']('ck-revision-history-root--active',_0x56fe2c);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x29ecf6=>'revision-comment:'+_0x29ecf6,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x279c04=>'revision-suggestion:'+_0x279c04,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x540a45=>({'name':'suggestion:'+_0x540a45,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x2b134b=>{const _0x35d100=_0x2b134b['markerName']['split'](':')[0x1];return'insertion'!=_0x35d100&&'deletion'!=_0x35d100?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x35d100]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x3ca1b1,_0x40a7b6,_0x423980)=>{const _0x24bd9e=_0x423980['mapper']['markerNameToElements'](_0x40a7b6['markerName']);if(_0x24bd9e){for(const _0x948d64 of _0x24bd9e)_0x948d64['is']('uiElement')&&(_0x423980['mapper']['unbindElementFromMarkerName'](_0x948d64,_0x40a7b6['markerName']),_0x423980['writer']['remove'](_0x948d64));}},{'priority':'high'});}['_getChangeFromId'](_0x76afbd){return this['_changeIdToChange']['get'](_0x76afbd);}['_getViewForChange'](_0x3f2dff){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x3f2dff),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x53849e,_0x12ab07,_0x4c3848,_0xf73d66)=>{_0xf73d66&&this['_balloon']['remove'](_0xf73d66),_0x4c3848&&(this['_balloon']['add']({'view':_0x4c3848,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x3313be=this['editor']['editing'],_0x4f8ee9=this['_getChangeFromId'](_0x4c3848['changeId']);let _0x23912d;if(_0x4f8ee9['data']['isOnRoot']){const _0xe0cbd1=_0x3313be['view']['getDomRoot'](_0x4f8ee9['rootName']);_0x23912d=Array['from'](_0xe0cbd1['getClientRects']());}else{const _0x11df80=this['editor']['model']['markers']['get']('revision:'+_0x4c3848['changeId']);_0x23912d=Array['from'](_0x3313be['mapper']['markerNameToElements'](_0x11df80['name']))['map'](_0x5d0fd2=>_0x3313be['view']['domConverter']['mapViewToDom'](_0x5d0fd2))['map'](_0x4efc94=>Array['from'](_0x4efc94['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x23912d[0x0];return _0x23912d['find'](_0x3fb248=>_0x3fb248['top']-0x3<=this['_activeViewTarget']['y']&&_0x3fb248['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3fb248['left']-0x3<=this['_activeViewTarget']['x']&&_0x3fb248['right']+0x3>=this['_activeViewTarget']['x'])||_0x23912d[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x4643ce,_0x140d52,_0x2d9093,_0x42bdb6)=>{this['activeView']=_0x2d9093?this['_getViewForChange'](_0x2d9093):null,this['editor']['model']['change'](()=>{const _0x2c91=this['editor']['editing'];_0x42bdb6&&(_0x42bdb6['data']['isOnRoot']?_0x2c91['view']['change'](_0x351c11=>{_0x351c11['removeClass']('ck-revision-history-root--active',_0x2c91['view']['document']['getRoot'](_0x42bdb6['rootName']));}):_0x2c91['reconvertMarker']('revision:'+_0x42bdb6['id'])),_0x2d9093&&(_0x2d9093['data']['isOnRoot']?_0x2c91['view']['change'](_0x29a967=>{_0x29a967['addClass']('ck-revision-history-root--active',_0x2c91['view']['document']['getRoot'](_0x2d9093['rootName']));}):_0x2c91['reconvertMarker']('revision:'+_0x2d9093['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x453596,_0x591243)=>{if(this['activeChange'])return;const _0x9e1e3b=this['_findChangeIdFromDomTarget'](_0x591243['target']),_0x5c6ca4=this['_changeIdToChange']['get'](_0x9e1e3b);_0x5c6ca4?(this['_activeViewTarget']={'x':_0x591243['domEvent']['x'],'y':_0x591243['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x5c6ca4)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x458bd3,_0x3ae222)=>{const _0x308b6b=this['_findChangeIdFromDomTarget'](_0x3ae222['target']),_0xada4cd=this['_changeIdToChange']['get'](_0x308b6b);_0xada4cd?(this['_activeViewTarget']={'x':_0x3ae222['domEvent']['x'],'y':_0x3ae222['domEvent']['y']},_0xada4cd===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0xada4cd):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x1b8aac){do{const _0x11621f=_0x1b8aac['getAttribute']('data-change-id');if(_0x11621f)return _0x11621f;_0x1b8aac=_0x1b8aac['parent'];}while(_0x1b8aac);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x41dfa3=>{for(const _0x54c7a0 of this['editor']['model']['markers'])_0x41dfa3['removeMarker'](_0x54c7a0);});}}function Z(_0x44697c,_0x5aa04e){return(_0x2c8248,_0x2a13df,_0x52ab8a)=>{if(!_0x52ab8a['consumable']['test'](_0x2a13df['markerRange'],_0x2c8248['name']))return;const _0x21a1a5=_0x2a13df['markerRange']['getWalker'](),_0x4af271=_0x2a13df['markerRange']['start'],_0x1935ce=_0x44697c['model']['schema'];let _0x43f579=null,_0x1e7d75=null,_0x472297=!0x1,_0x4e8545=!0x1;for(const _0x252b7e of _0x21a1a5){const _0x4cb4ce=_0x252b7e['item'];_0x472297=_0x472297||_0x1935ce['isContent'](_0x4cb4ce);const _0x170fd3=_0x52ab8a['mapper']['toViewElement'](_0x4cb4ce);if(_0x170fd3&&_0x170fd3['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x252b7e['type']&&(_0x1935ce['isBlock'](_0x4cb4ce)&&!_0x1935ce['isLimit'](_0x4cb4ce)&&(_0x4cb4ce['nextSibling']||_0x4af271['isAtEnd']?_0x43f579&&_0x43f579['parent']==_0x4cb4ce||(_0x43f579=_0x4cb4ce,_0x2e3474(_0x252b7e['previousPosition']),_0x4e8545=!0x0):_0x1e7d75=_0x1e7d75||_0x252b7e['previousPosition']));}function _0x2e3474(_0x191f0f){const _0xdc608=_0x52ab8a['mapper']['toViewPosition'](_0x191f0f),_0x6d7880=_0x52ab8a['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x5aa04e});_0x52ab8a['writer']['insert'](_0xdc608,_0x6d7880),_0x52ab8a['mapper']['bindElementToMarker'](_0x6d7880,_0x2a13df['markerName']);}_0x472297||_0x4e8545||!_0x1e7d75||_0x2e3474(_0x1e7d75);};}class _t extends _0x180034{constructor(_0xeeba25){super(_0xeeba25);const _0x269191=_0xeeba25['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x269191,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x269191,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x46e1b7=this['editor'],_0x593f72=_0x46e1b7['plugins']['get'](d),_0x51c90e=_0x593f72['isReady']?_0x593f72['diff']['newRevisionId']:null;_0x46e1b7['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x51c90e);}['refresh'](){const {isReady:_0x5248df,isEnabled:_0x338925,repository:_0x22e66c,diff:_0x11a998}=this['editor']['plugins']['get'](d),_0x3a802d=_0x11a998&&_0x22e66c['getLaterVisibleRevision'](_0x11a998['newRevisionId']);this['isEnabled']=_0x5248df&&_0x338925&&Boolean(_0x3a802d);}}class yt extends _0x180034{['_step'];constructor(_0x48bba4,{direction:_0x20657f}){super(_0x48bba4);const _0x328eb1=_0x48bba4['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x20657f?0x1:-0x1,this['listenTo'](_0x328eb1,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x328eb1,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x328eb1,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x1344ef=this['editor'],_0x100bd7=_0x1344ef['plugins']['get'](d),{isNavigationMode:_0xe096d9,currentChangeNumber:_0x304608}=_0x100bd7;let _0x5bdf95;if(_0x100bd7['activeChange']=_0xe096d9?_0x100bd7['diff']['changes']['get'](_0x304608+this['_step']):_0x100bd7['diff']['changes']['first'],_0x100bd7['activeChange']['data']['isOnRoot'])_0x5bdf95=_0x1344ef['editing']['view']['getDomRoot'](_0x100bd7['activeChange']['rootName']);else{const _0x24a8e6=_0x1344ef['model']['markers']['get']('revision:'+_0x100bd7['activeChange']['id']);_0x5bdf95=_0x3219e2(_0x1344ef['editing'],_0x24a8e6);}_0x4bb92e({'target':_0x5bdf95,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x522834,currentChangeNumber:_0x6139ec,numberOfChanges:_0x2ec656,isReady:_0x32d9c1,isEnabled:_0x880e46}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x880e46&&_0x32d9c1&&_0x2ec656)&&(!_0x522834||(0x1===this['_step']?_0x6139ec<_0x2ec656-0x1:_0x6139ec>0x0));}}class _i extends _0x2110a1{constructor(_0xaac510){super(_0xaac510);const _0x547f9e=this['bindTemplate'],_0x5106db=new _0x397beb(_0xaac510),_0x40d424=new _0x397beb(_0xaac510);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',(_0xa3a265,_0x3a1d19)=>_0xa3a265&&_0x3a1d19>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x46a534,_0x2e4ef4,_0x1c2b8a,_0x4071d6)=>{if(!_0x46a534)return m(_0xaac510,'Loading...');if(!_0x1c2b8a)return m(_0xaac510,'No\x20changes');const _0x36a5ba=m(_0xaac510,'NUMBER_OF_CHANGES',_0x1c2b8a);return _0x4071d6?m(_0xaac510,'X_OF_Y_CHANGES',[_0x2e4ef4+0x1,_0x1c2b8a]):_0x36a5ba;}),_0x5106db['set']({'label':m(_0xaac510,'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'}),_0x40d424['set']({'label':m(_0xaac510,'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'}),_0x5106db['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x40d424['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x5106db['on']('execute',()=>this['fire']('execute','backward')),_0x40d424['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',_0x547f9e['if']('_isStatusLabelVisible','ck-hidden',_0x440d38=>!_0x440d38)]},'children':[{'text':_0x547f9e['to']('isNavigationMode',_0x16acd2=>_0x16acd2?m(_0xaac510,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0xaac510,'Total')+':\x20')}]},{'text':_0x547f9e['to']('_statusText')}]},new _0x42d84f(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x5106db,_0x40d424]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x53f3b9{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x1f5628=this['editor']['editing']['view'];_0x1f5628['change'](_0x22f3e3=>{for(const _0x45baec of _0x1f5628['document']['roots'])_0x22f3e3['addClass'](ce,_0x45baec);});}['hide'](){const _0x3c87bc=this['editor']['editing']['view'];_0x3c87bc['change'](_0x4f2423=>{for(const _0x557cd7 of _0x3c87bc['document']['roots'])_0x4f2423['removeClass'](ce,_0x557cd7);});}}class g extends _0x53f3b9{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x406384=this['editor'],_0x3e207b=_0x406384['plugins']['get'](d),_0x3196c9=_0x406384['plugins']['get'](le);_0x406384['ui']['componentFactory']['add']('exitToEditing',_0x1d3060=>{const _0x341b16=new _0x397beb(_0x1d3060);return _0x341b16['set']({'label':m(_0x1d3060,'Back\x20to\x20editing'),'icon':_0x48df4e['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x341b16,'execute',()=>{_0x406384['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x341b16;}),_0x406384['ui']['componentFactory']['add']('restoreRevision',_0x4eb385=>{const _0x598bee=new _0x397beb(_0x4eb385);return _0x598bee['set']({'label':m(_0x4eb385,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x598bee['bind']('isEnabled')['to'](_0x406384['commands']['get']('restoreRevision')),this['listenTo'](_0x598bee,'execute',()=>_0x406384['execute']('restoreRevision')),_0x598bee;}),_0x406384['ui']['componentFactory']['add']('changesNavigation',_0x48d3e2=>{const _0x43ddd0=new _i(_0x48d3e2),_0xad9d1f=_0x406384['commands']['get']('showPreviousChange'),_0x1f211f=_0x406384['commands']['get']('showNextChange');return _0x43ddd0['bind']('isBackwardNavigationEnabled')['to'](_0xad9d1f,'isEnabled'),_0x43ddd0['bind']('isForwardNavigationEnabled')['to'](_0x1f211f,'isEnabled'),_0x43ddd0['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x3e207b),this['listenTo'](_0x43ddd0,'execute',(_0x4e669a,_0x454d97)=>{_0x406384['execute']('forward'===_0x454d97?'showNextChange':'showPreviousChange');}),_0x43ddd0;}),_0x3196c9['show'](),_0x3e207b['on']('change:isReady',(_0xe1e75a,_0x22631e,_0x45d9cd)=>{_0x45d9cd?_0x3196c9['hide']():_0x3196c9['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x4288fd,_0x199bb9){super(_0x4288fd,_0x199bb9);const _0x28a273=this['bindTemplate'];this['set']({'label':m(_0x4288fd,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x4288fd,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x28a273['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x335bcd=this['fieldView']['element'];this['_tooltipString']=_0x335bcd['scrollWidth']>_0x335bcd['clientWidth']&&_0x335bcd['value']||'';}}class ti extends _0x2110a1{constructor(_0x42ad32,_0x53e001,_0x3786f8){super(_0x42ad32);const _0x47cf1b=new _0x5cb0f1();_0x47cf1b['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 _0x51406f=['ck','ck-revision-history-sidebar__revision-author'];_0x3786f8&&_0x51406f['push']('ck-revision-history-sidebar__revision-author_creator');const _0x518a40=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x42ad32,_0x3786f8?'Revision\x20creator':'Revision\x20author')},'children':[_0x47cf1b,_0x53e001['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x51406f},'children':_0x518a40});}}function ni(_0x27e077,_0x5e7c7f){const _0x4922df=_0x27e077['bindTemplate'],_0x7d4f45=_0x27e077['locale'],_0x5b0bd6=_0x221db2(_0x7d4f45);_0x5b0bd6['panelPosition']='sw';const _0x32e4c4=function(_0x564a5b,_0x18d5f2){const _0x1420cb=function(_0x479702,_0x522adc){const _0x33803f=_0x479702['locale'],_0x5bea97={'Compare\x20against\x20selected':m(_0x33803f,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x33803f,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x33803f,'Restore\x20this\x20revision')};return _0x522adc['map'](_0x49d571=>{const _0x2ece81=_0x5bea97[_0x49d571['name']];return _0x2ece81&&_0x2ece81!==_0x49d571['name']&&(_0x49d571['name']=_0x2ece81),_0x49d571;});}(_0x564a5b,_0x18d5f2),_0x3264ef=new _0x25f72c();for(const _0x5b7198 of _0x1420cb){const _0x51e471={'type':'button','model':new to({'label':_0x5b7198['name'],'class':_0x5b7198['class'],'withText':!0x0,'role':'menuitem','_action':_0x5b7198['action']})};_0x51e471['model']['bind']('isEnabled')['to'](_0x564a5b,'isActionsDropdownOpen',_0x2f4fa2=>'function'!=typeof _0x5b7198['isEnabled']||(!_0x2f4fa2||_0x5b7198['isEnabled'](_0x564a5b))),_0x3264ef['add'](_0x51e471);}return _0x3264ef;}(_0x27e077,_0x5e7c7f);return _0x27e077['bind']('isActionsDropdownOpen')['to'](_0x5b0bd6,'isOpen'),_0x5b0bd6['buttonView']['set']({'label':m(_0x7d4f45,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x48df4e['threeVerticalDots']}),_0x5b0bd6['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4922df['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x4922df['to'](_0x1c6c68=>_0x1c6c68['stopPropagation']())}}),_0x5b0bd6['on']('execute',_0x7b75a0=>{_0x27e077['isReady']&&'function'==typeof _0x7b75a0['source']['_action']&&_0x7b75a0['source']['_action'](_0x27e077);}),_0x4138fc(_0x5b0bd6,_0x32e4c4,{'role':'menu'}),_0x5b0bd6['listenTo'](_0x27e077,'change:isActionsDropdownOpen',(_0x2cdf4d,_0x520cf0,_0x1a4e43)=>{if(_0x1a4e43)for(const _0x5b20b3 of _0x5b0bd6['listView']['items']){const _0x1a8d34=_0x5b20b3['children']['first'],_0x4eecc9=_0x5e7c7f['find'](_0x5ac4d0=>_0x5ac4d0['action']===_0x1a8d34['_action'])['isVisible'];_0x5b20b3['isVisible']=void 0x0===_0x4eecc9||_0x4eecc9(_0x27e077);}}),_0x5b0bd6;}class ai extends/* #__PURE__ -- @preserve */
26
+ _0x56f41d(_0x2110a1){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x403dbc,_0x4337a0,_0x28e419,_0x3fc13d){super(_0x403dbc);const _0x2b7f5e=this['bindTemplate'],_0x4023ec=function(_0x5a8740,_0x5208e9){const _0x3f2884=Array['from'](_0x5208e9['authors'])['filter'](_0x32f026=>_0x32f026!=_0x5208e9['creator']);return _0x5208e9['creator']&&_0x3f2884['unshift'](_0x5208e9['creator']),_0x3f2884['map'](_0x42e0f0=>new ti(_0x5a8740,_0x42e0f0,_0x42e0f0==_0x5208e9['creator']));}(_0x403dbc,_0x4337a0);this['id']=_0x4337a0['id'],this['_revision']=_0x4337a0,this['_requireRevisionName']=_0x3fc13d,this['bind']('name','createdAt')['to'](_0x4337a0),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x5c97fa=>{return _0x40178b=_0x403dbc['uiLanguage'],(_0x11ec49=_0x5c97fa)['toLocaleDateString'](_0x40178b,{'month':'long','day':'numeric'})+',\x20'+_0x11ec49['toLocaleTimeString'](_0x40178b,{'hour':'numeric','minute':'numeric'});var _0x40178b,_0x11ec49;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x403dbc,_0x176e3c),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x23a9df=>_0x23a9df||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x59056f,_0x57c062)=>_0x59056f&&_0x57c062),this['revisionActionsView']=_0x28e419&&_0x28e419['length']?ni(this,_0x28e419):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x2b7f5e['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x2b7f5e['if']('isEnabled','ck-disabled',_0x2cb6dd=>!_0x2cb6dd),_0x2b7f5e['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x2b7f5e['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x2b7f5e['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':_0x2b7f5e['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':_0x4023ec}]},this['revisionActionsView']],'on':{'click':_0x2b7f5e['to'](_0x50d9=>{_0x50d9['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x517302=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x517302,'change',()=>{this['_requireRevisionName']&&!_0x517302['value']||this['fire']('setName',{'id':this['id'],'name':_0x517302['value']}),_0x517302['value']||(_0x517302['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(_0x42a51e,_0x29d152){const _0x23fbb3=_0x414ca5['fromJSDate'](_0x42a51e)['setLocale'](_0x29d152),_0x295f22=_0x414ca5['local'](),_0xa8a629=_0x295f22['minus']({'days':0x1})['startOf']('day');let _0x5d3294,_0x2bfcc3;return _0x23fbb3['hasSame'](_0x295f22,'day')?(_0x5d3294=_0x23fbb3['startOf']('day')['toJSDate'](),_0x2bfcc3=_0x23fbb3['toRelativeCalendar']()):_0x23fbb3['hasSame'](_0xa8a629,'day')?(_0x5d3294=_0xa8a629['toJSDate'](),_0x2bfcc3=_0x23fbb3['toRelativeCalendar']()):_0x23fbb3['hasSame'](_0x295f22,'week')?(_0x5d3294=_0x23fbb3['startOf']('week')['toJSDate'](),_0x2bfcc3=_0x23fbb3['weekdayLong']||''):_0x23fbb3['hasSame'](_0x295f22,'year')?(_0x5d3294=_0x23fbb3['startOf']('month')['toJSDate'](),_0x2bfcc3=_0x23fbb3['monthLong']||''):(_0x5d3294=_0x23fbb3['startOf']('year')['toJSDate'](),_0x2bfcc3=String(_0x23fbb3['year'])),{'startDate':_0x5d3294,'localizedPeriodName':_0x2bfcc3};}class mi extends _0x2110a1{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2aa981,_0xab7361,_0x2dae2d,_0x304631){super(_0x2aa981);const _0x59fdef=di(_0xab7361,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0xab7361,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x2dae2d,this['_requireRevisionName']=_0x304631,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':_0x59fdef}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x2455c6){const _0x3f885b=new ai(this['locale'],_0x2455c6,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x3f885b);}['removeRevision'](_0x47b02c){const _0x43ed67=this['revisionViews']['find'](_0x1e2cc0=>_0x1e2cc0['id']===_0x47b02c['id']);this['revisionViews']['remove'](_0x43ed67);}}class rs extends _0x2110a1{constructor(_0x450638){super(_0x450638);const _0x24b2ba=new _0x5cb0f1();_0x24b2ba['content']=_0x48df4e['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x24b2ba,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x450638,'Revision\x20history')]}]});}}class ci extends _0x2110a1{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x96411,_0x335d52,_0x2c44b9,_0x22c5f0){super(_0x96411);const _0x5b547f=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x335d52,this['_revisionActions']=_0x2c44b9,this['_requireRevisionName']=_0x22c5f0,this['on']('select',(_0x1b181f,_0x93875b)=>{this['fire']('revisionSelected',_0x93875b);}),this['on']('setName',(_0x30b291,_0x7fe508)=>{this['fire']('revisionSetName',_0x7fe508);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new rs(_0x96411),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x5b547f['if']('isEnabled','ck-disabled',_0xa5ec33=>!_0xa5ec33)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x1734da of this['_revisions'])this['_addRevision'](_0x1734da);this['_revisions']['on']('add',(_0x141104,_0x5edb8c)=>{this['_addRevision'](_0x5edb8c);}),this['_revisions']['on']('remove',(_0x42d316,_0x446603)=>{this['_removeRevision'](_0x446603);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x5e3548=>_0x5e3548['revisionViews']['map'](_0x5a1465=>_0x5a1465))['flat']();}['selectRevision'](_0x3a4220){for(const _0x3445ba of this['revisionViews'])_0x3a4220&&_0x3a4220['id']===_0x3445ba['id']?_0x3445ba['select']():_0x3445ba['deselect']();}['highlightRevisions'](_0x3f6ef7){for(const _0x28e3fc of this['revisionViews'])_0x3f6ef7['some'](({id:_0x13d220})=>_0x13d220===_0x28e3fc['id'])?_0x28e3fc['highlight']():_0x28e3fc['unhighlight']();}['_addRevision'](_0x306dae){const _0x340b40=di(_0x306dae['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x2bc5d7=this['timePeriodViews']['get'](0x0);_0x2bc5d7&&_0x2bc5d7['startDate']['getTime']()===_0x340b40['getTime']()||(_0x2bc5d7=new mi(this['locale'],_0x340b40,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x2bc5d7)),_0x2bc5d7['addRevision'](_0x306dae);}['_removeRevision'](_0x58f8bf){const _0x5f0d1f=di(_0x58f8bf['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x5f0d1f)['removeRevision'](_0x58f8bf);}['_getTimePeriodViewByStartDate'](_0x2c84f1){return this['timePeriodViews']['find'](_0x4239d8=>_0x4239d8['startDate']['getTime']()===_0x2c84f1['getTime']());}}class w extends _0x53f3b9{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- yt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x4f2fae){super(_0x4f2fae),this['_revisionViewer']=_0x4f2fae['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x24af96=this['_revisionsRepository']['_revisions'],_0x50f4a3=this['_createRevisionActions'](),_0x50da9d=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new li(this['editor']['locale'],_0x24af96,_0x50f4a3,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',(_0x2ade65,_0xf8eec1)=>{_0xf8eec1['revisionViews']['on']('add',(_0x5da286,_0x3890a5)=>{_0x3890a5['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)),_0x50da9d['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x4a6006=this['_revisionsRepository']['getRevision'](0x0);if(_0x4a6006){const _0x4478c6=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4a6006['id']);this['_revisionViewer']['compare'](_0x4a6006,_0x4478c6);}}['_handleRevisionSelected'](_0x1f33c1,_0x188482){const _0x2ca961=this['_revisionsRepository']['getRevision'](_0x188482['id']),_0x9921f4=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2ca961['id']);this['_revisionViewer']['compare'](_0x2ca961,_0x9921f4);}['_handleRevisionSetName'](_0x19e021,_0x56bf21){this['_revisionsRepository']['getRevision'](_0x56bf21['id'])['setName'](_0x56bf21['name']);}['_handleDiffChange'](_0x1e92d0,_0x35be4e,_0x50d0e1){const _0x3a16cd=this['_revisionsRepository']['getRevisionsInDiff'](_0x50d0e1);_0x3a16cd['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x3a16cd),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x3a16cd[0x0]));}['_createRevisionActions'](){const _0x5e576f=this['editor'],_0x365870=w['availableRevisionActions'],_0x42a588=_0x5e576f['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x42a588['length'])return _0x42a588['map'](_0x192f10=>{const _0x3fc5af='string'==typeof _0x192f10?Object['assign']({},_0x365870[_0x192f10]):_0x192f10;return _0x3fc5af['action']=_0x3fc5af['action']['bind'](this,_0x5e576f),_0x3fc5af['isVisible']&&(_0x3fc5af['isVisible']=_0x3fc5af['isVisible']['bind'](this,_0x5e576f)),_0x3fc5af;});}}function yt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0xf0158},_0x36625f)=>{const _0x131290=_0xf0158['get'](d),_0x5d44b9=_0x131290['repository'];let _0x5522f3=_0x131290['diff']['newRevisionId'],_0x53b4af=_0x36625f['id'];_0x5d44b9['getIndex'](_0x5522f3)>_0x5d44b9['getIndex'](_0x53b4af)&&([_0x5522f3,_0x53b4af]=[_0x53b4af,_0x5522f3]),_0x131290['compare'](_0x5522f3,_0x53b4af);},'isVisible':({plugins:_0xffdc4e},_0x1169b4)=>{const _0x2b2c80=_0xffdc4e['get'](d);return!(_0x2b2c80['repository']['getRevisionsInDiff'](_0x2b2c80['diff'])['length']>0x2)&&!_0x1169b4['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0xf0f6e1,{id:_0x5e102b})=>{_0xf0f6e1['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5e102b);},'isVisible':({plugins:_0x4b0548},_0x4a013f)=>!!_0x4b0548['get'](d)['repository']['getLaterVisibleRevision'](_0x4a013f['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0xab813},{id:_0x30808e,revisionNameView:_0x46547d})=>{const _0x34ca72=_0xab813['get'](d),_0x3d2d99=_0x34ca72['repository']['getEarlierVisibleRevision'](_0x30808e);_0x34ca72['compare'](_0x30808e,_0x3d2d99),_0x46547d['focus'](),_0x46547d['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x316c1f,_0xeef77){super(_0x316c1f),this['_view']=_0xeef77,this['_toolbarConfig']=ot(_0x316c1f['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x485883){const _0x186ae0=this['editor'],_0x2c5e28=this['view'],_0x1b2517=_0x186ae0['editing']['view'],_0x277d38=_0x2c5e28['editable'],_0x5687c9=_0x1b2517['document']['getRoot']();_0x277d38['name']=_0x5687c9['rootName'],_0x2c5e28['render']();const _0x4b26c3=_0x277d38['element'];this['setEditableElement'](_0x277d38['name'],_0x4b26c3),_0x2c5e28['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x1b2517['attachDomRoot'](_0x4b26c3),this['_elementReplacer']['replace'](_0x485883,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x3df3e2=this['view'],_0x139fb9=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x139fb9['detachDomRoot'](_0x3df3e2['editable']['name']),_0x3df3e2['destroy']();}['_initToolbar'](){const _0x7e85ac=this['view'];_0x7e85ac['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x7e85ac['stickyPanel']['limiterElement']=_0x7e85ac['element'],_0x7e85ac['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x1e5acc})=>_0x1e5acc),_0x7e85ac['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x7e85ac['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x237759,_0x2909fe,_0x34f56d={}){super(_0x237759),this['stickyPanel']=new ut(_0x237759),this['toolbar']=new lt(_0x237759,{'shouldGroupWhenFull':_0x34f56d['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x237759,_0x2909fe);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
- it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x3c7a8c,_0xd839d9){super(_0xd839d9),this['sourceElement']=_0x3c7a8c,this['model']['document']['createRoot']();const _0x381044=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x381044);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x4b8b99,_0x47f6f3){const _0x513ad7=new this(_0x4b8b99,_0x47f6f3);return await _0x513ad7['initPlugins'](),await _0x513ad7['ui']['init'](_0x4b8b99),await _0x513ad7['data']['init'](_0x513ad7['config']['get']('initialData')||''),_0x513ad7['fire']('ready'),_0x513ad7;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class bt extends _0x43da28{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4ff4f5){function _0x4414d1(_0x32b104){return _0x32b104['map'](_0x5da95d=>String['fromCharCode'](_0x5da95d))['join']('');}super(_0x4ff4f5),this['result']='end',_0x4ff4f5[_0x4414d1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4414d1([0x76,0x69,0x65,0x77])][_0x4414d1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4414d1([0x61,0x75,0x74,0x6f]),_0x4ff4f5[_0x4414d1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4414d1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4414d1([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4414d1([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4414d1([0x6f,0x6b])});}}class k extends _0x43da28{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x520b75){if(super(_0x520b75),!this['editor']['config']['get']('revisionHistory'))throw new _0x272203('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4bbaea=>this['_showRevisionViewer']({..._0x4bbaea,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x28a7cf=>this['_closeRevisionViewer'](_0x28a7cf)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x322398=>this['_restoreRevision'](_0x322398)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4fc994){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4fc994;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x3cc2d4){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x3cc2d4);}['getRevision'](_0x3a11e0){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x3a11e0);}['getRevisions'](_0x5ec9c7){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x5ec9c7||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x4d6a21=this['editor'],_0x1533f0=_0x4ef1d0(_0x4d6a21,p),_0x5584ff=_0x4d6a21['plugins']['get']('RevisionTracker'),_0xda12f7=_0x4d6a21['plugins']['get']('Users')['users'];return _0x1533f0['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x1533f0['lazyRoots'],(_0x1533f0['plugins']['push'](bt,d,g,class extends _0x43da28{static get['requires'](){return[d,'Users'];}['init'](){const _0x4316b2=this['editor']['plugins']['get']('Users');for(const _0x553911 of _0xda12f7)_0x553911['isAnonymous']||_0x4316b2['getUser'](_0x553911['id'])||_0x4316b2['addUser'](_0x553911);const _0x1c24cf=_0x5584ff['repository']['getRevisions']();let _0x89c4bd=null;const _0x3c5790=this['editor']['plugins']['get']('RevisionViewer');_0x3c5790['adapter']=_0x5584ff['adapter'],_0x3c5790['bind']('isEnabled')['to'](_0x5584ff),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x4d6a21,'isReadOnly',_0x248863=>!_0x248863);for(const _0x36df52 of _0x1c24cf){const _0x1224f2=null===_0x36df52['creator'];if(_0x1224f2&&_0x36df52['toVersion']===_0x36df52['fromVersion'])continue;const _0x35ae06=_0x36df52['toJSON']();_0x3c5790['addRevisionData'](_0x35ae06,(_0x12be80,_0x513980,_0x446dd7)=>{if(_0x1224f2){if(_0x89c4bd)_0x89c4bd['_update'](_0x12be80,_0x513980);else{if(!_0x513980){const _0x587ef2=_0x446dd7['toJSON']();_0x587ef2['id']=_0x4f9af2(),_0x5584ff['saveRevision'](_0x587ef2,_0x446dd7['toVersion'])['then'](_0x481717=>{_0x89c4bd=_0x481717;});}}}else _0x36df52['_update'](_0x12be80,_0x513980);});}}},w),_0x1533f0);}['_enhanceShowRevisionViewerCallback'](){const _0x41109d=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x1e699e=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4ac7c4=this['editor']['plugins']['get']('Autosave');await _0x4ac7c4['save']();}else await _0x1e699e['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x51fa57=this['editor']['plugins']['get']('Dialog');_0x51fa57['isOpen']&&_0x51fa57['hide']();}const _0x506c48=this['_getRevisionViewerEditorConfig']();return _0x41109d(_0x506c48)['then'](_0x5f972d=>{return(this['_viewerEditor']=_0x5f972d,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x5f972d;})['catch'](_0x2dafd3=>(console['error'](_0x2dafd3),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x35b2a7=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'](),_0x35b2a7(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x4c15e5=this['editor']['plugins']['get']('Annotations');_0x4c15e5['refreshVisibility'](),_0x4c15e5['refreshPositioning']();}})));}['_showRevisionViewer'](_0x512b4d){const _0x113f8e=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4b439d=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x723d8d=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x723d8d,_0x512b4d)['then'](_0x9782a5=>(_0x4b439d['style']['display']='block',_0x113f8e['style']['display']='none',_0x9782a5));}['_closeRevisionViewer'](_0x16c3f6){const _0x1eb293=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x1eb293['style']['display']='',_0x16c3f6['destroy']();}async['_restoreRevision'](_0x5db79e){const _0x518e6c=this['editor'],_0x5bc47a=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x48078e=_0x518e6c['plugins']['get']('RevisionTracker'),_0x1217f2=_0x5bc47a['repository']['getRevision'](_0x5db79e);let _0x2ddf8e,_0x596c26,_0x11498e;try{_0x2ddf8e=await _0x5bc47a['getRevisionData'](_0x1217f2),_0x596c26=await _0x5bc47a['getRevisionRootsAttributes'](_0x1217f2);}catch(_0x425dbd){return void console['error'](_0x425dbd);}_0x518e6c['model']['change'](_0x1301a5=>{for(const _0x2107e3 of Array['from'](_0x518e6c['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x1301a5['removeMarker'](_0x2107e3);}),_0x5bc47a['isReady']=!0x1,_0x518e6c['model']['enqueueChange'](_0x59898d=>{_0x59898d['setSelection'](null),_0x59898d['removeSelectionAttribute'](_0x518e6c['model']['document']['selection']['getAttributeKeys']());const _0x41214=Object['keys'](_0x2ddf8e);for(const _0x153e29 of _0x518e6c['model']['document']['roots'])'$graveyard'!=_0x153e29['rootName']&&_0x153e29['isAttached']()&&!_0x41214['includes'](_0x153e29['rootName'])&&_0x59898d['detachRoot'](_0x153e29);for(const _0x23b09a of _0x41214){let _0x30c825=_0x518e6c['model']['document']['getRoot'](_0x23b09a);_0x30c825&&_0x30c825['isAttached']()||(_0x30c825=_0x59898d['addRoot'](_0x23b09a));const _0x3b442d=_0x596c26[_0x23b09a],_0x7a049a=Object['keys'](_0x3b442d),_0x12569b=_0x2ddf8e[_0x23b09a];for(const _0x2ed5fa of _0x30c825['getAttributeKeys']())_0x7a049a['includes'](_0x2ed5fa)||_0x59898d['removeAttribute'](_0x2ed5fa,_0x30c825);for(const _0x154fad of _0x7a049a)_0x59898d['setAttribute'](_0x154fad,_0x596c26[_0x23b09a][_0x154fad],_0x30c825);_0x59898d['remove'](_0x59898d['createRangeIn'](_0x30c825)),_0x59898d['insert'](_0x518e6c['data']['parse'](_0x12569b,_0x30c825),_0x30c825,0x0);}});const _0x17ebc0=m(_0x518e6c['locale'],'Restored');if(_0x1217f2['name'])_0x11498e=-0x1==_0x1217f2['name']['indexOf'](_0x17ebc0)?_0x17ebc0+':\x20'+_0x1217f2['name']:_0x1217f2['name'];else _0x11498e=_0x17ebc0+':\x20'+(_0x1217f2['createdAt']['toLocaleDateString'](_0x518e6c['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x1217f2['createdAt']['toLocaleTimeString'](_0x518e6c['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x48078e['saveRevision']({'name':_0x11498e}),_0x5bc47a['isReady']=!0x0,_0x518e6c['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,de as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
28
+ bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x25cb33){super(_0x25cb33),this['_revisionViewer']=_0x25cb33['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x298492=this['_revisionsRepository']['_revisions'],_0xf15b1b=this['_createRevisionActions'](),_0x15d857=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0x298492,_0xf15b1b,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',(_0x3b91c9,_0x5662d4)=>{_0x5662d4['revisionViews']['on']('add',(_0x48422b,_0x11649d)=>{_0x11649d['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)),_0x15d857['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x169419=this['_revisionsRepository']['getRevision'](0x0);if(_0x169419){const _0x14acb0=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x169419['id']);this['_revisionViewer']['compare'](_0x169419,_0x14acb0);}}['_handleRevisionSelected'](_0x46c6a3,_0x1d6fa8){const _0x346722=this['_revisionsRepository']['getRevision'](_0x1d6fa8['id']),_0x39100b=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x346722['id']);this['_revisionViewer']['compare'](_0x346722,_0x39100b);}['_handleRevisionSetName'](_0xccaded,_0x12065d){this['_revisionsRepository']['getRevision'](_0x12065d['id'])['setName'](_0x12065d['name']);}['_handleDiffChange'](_0x3cd408,_0x4d99c3,_0x2c9d83){const _0x26f475=this['_revisionsRepository']['getRevisionsInDiff'](_0x2c9d83);_0x26f475['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x26f475),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x26f475[0x0]));}['_createRevisionActions'](){const _0x336f07=this['editor'],_0x1c41c5=w['availableRevisionActions'],_0x70ad1d=_0x336f07['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x70ad1d['length'])return _0x70ad1d['map'](_0x348d21=>{const _0xd4a38='string'==typeof _0x348d21?Object['assign']({},_0x1c41c5[_0x348d21]):_0x348d21;return _0xd4a38['action']=_0xd4a38['action']['bind'](this,_0x336f07),_0xd4a38['isVisible']&&(_0xd4a38['isVisible']=_0xd4a38['isVisible']['bind'](this,_0x336f07)),_0xd4a38;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x270df6},_0x6c51e)=>{const _0x335cb6=_0x270df6['get'](d),_0x40d063=_0x335cb6['repository'];let _0x55cfe3=_0x335cb6['diff']['newRevisionId'],_0x3e7577=_0x6c51e['id'];_0x40d063['getIndex'](_0x55cfe3)>_0x40d063['getIndex'](_0x3e7577)&&([_0x55cfe3,_0x3e7577]=[_0x3e7577,_0x55cfe3]),_0x335cb6['compare'](_0x55cfe3,_0x3e7577);},'isVisible':({plugins:_0x18f63d},_0x2288e6)=>{const _0x8dc47=_0x18f63d['get'](d);return!(_0x8dc47['repository']['getRevisionsInDiff'](_0x8dc47['diff'])['length']>0x2)&&!_0x2288e6['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x502c59,{id:_0x38106a})=>{_0x502c59['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x38106a);},'isVisible':({plugins:_0x1a5439},_0x12bf38)=>!!_0x1a5439['get'](d)['repository']['getLaterVisibleRevision'](_0x12bf38['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x230ee3},{id:_0x62057e,revisionNameView:_0x2cedea})=>{const _0x28ae96=_0x230ee3['get'](d),_0x14091a=_0x28ae96['repository']['getEarlierVisibleRevision'](_0x62057e);_0x28ae96['compare'](_0x62057e,_0x14091a),_0x2cedea['focus'](),_0x2cedea['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x2a4f5b,_0x15271b){super(_0x2a4f5b),this['_view']=_0x15271b,this['_toolbarConfig']=ot(_0x2a4f5b['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x12e7a6){const _0x48c1c3=this['editor'],_0x50e3f6=this['view'],_0x133f4d=_0x48c1c3['editing']['view'],_0x11162b=_0x50e3f6['editable'],_0x17ffc5=_0x133f4d['document']['getRoot']();_0x11162b['name']=_0x17ffc5['rootName'],_0x50e3f6['render']();const _0x5f364a=_0x11162b['element'];this['setEditableElement'](_0x11162b['name'],_0x5f364a),_0x50e3f6['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x133f4d['attachDomRoot'](_0x5f364a),this['_elementReplacer']['replace'](_0x12e7a6,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x45daee=this['view'],_0x2b7cf4=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x2b7cf4['detachDomRoot'](_0x45daee['editable']['name']),_0x45daee['destroy']();}['_initToolbar'](){const _0x37bc43=this['view'];_0x37bc43['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x37bc43['stickyPanel']['limiterElement']=_0x37bc43['element'],_0x37bc43['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x4950b3})=>_0x4950b3),_0x37bc43['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x37bc43['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x45cbc6,_0x5aae09,_0x4208e8={}){super(_0x45cbc6),this['stickyPanel']=new ut(_0x45cbc6),this['toolbar']=new lt(_0x45cbc6,{'shouldGroupWhenFull':_0x4208e8['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x45cbc6,_0x5aae09);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
+ it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x4172d8,_0x1c0584){super(_0x1c0584),this['sourceElement']=_0x4172d8,this['model']['document']['createRoot']();const _0x5df61b=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x5df61b);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x26d3ba,_0x12d61f){const _0xe93877=new this(_0x26d3ba,_0x12d61f);return await _0xe93877['initPlugins'](),await _0xe93877['ui']['init'](_0x26d3ba),await _0xe93877['data']['init'](_0xe93877['config']['get']('initialData')||''),_0xe93877['fire']('ready'),_0xe93877;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x53f3b9{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x30ca03){function _0x331987(_0x2a7de6){return _0x2a7de6['map'](_0x778505=>String['fromCharCode'](_0x778505))['join']('');}super(_0x30ca03),this['result']='end',_0x30ca03[_0x331987([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x331987([0x76,0x69,0x65,0x77])][_0x331987([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x331987([0x61,0x75,0x74,0x6f]),_0x30ca03[_0x331987([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x331987([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x331987([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x331987([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x331987([0x6f,0x6b])});}}class k extends _0x53f3b9{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x3892a3){if(super(_0x3892a3),!this['editor']['config']['get']('revisionHistory'))throw new _0x5d082f('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x30bb7e=>this['_showRevisionViewer']({..._0x30bb7e,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x4d7725=>this['_closeRevisionViewer'](_0x4d7725)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x37df63=>this['_restoreRevision'](_0x37df63)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x5d3664){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x5d3664;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x103478){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x103478);}['getRevision'](_0x211da1){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x211da1);}['getRevisions'](_0x3f8b2c){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x3f8b2c||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x23bda0=this['editor'],_0x161363=_0x3f3f9e(_0x23bda0,p),_0x10ea93=_0x23bda0['plugins']['get']('RevisionTracker'),_0x40ae7d=_0x23bda0['plugins']['get']('Users')['users'];return _0x161363['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x161363['lazyRoots'],(_0x161363['plugins']['push'](Rt,d,g,class extends _0x53f3b9{static get['requires'](){return[d,'Users'];}['init'](){const _0x33911c=this['editor']['plugins']['get']('Users');for(const _0x391502 of _0x40ae7d)_0x391502['isAnonymous']||_0x33911c['getUser'](_0x391502['id'])||_0x33911c['addUser'](_0x391502);const _0x1ca3b9=_0x10ea93['repository']['getRevisions']();let _0x448b5b=null;const _0x5625cc=this['editor']['plugins']['get']('RevisionViewer');_0x5625cc['adapter']=_0x10ea93['adapter'],_0x5625cc['bind']('isEnabled')['to'](_0x10ea93),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x23bda0,'isReadOnly',_0x18ecc2=>!_0x18ecc2);for(const _0x2571ba of _0x1ca3b9){const _0x5bc3b0=null===_0x2571ba['creator'];if(_0x5bc3b0&&_0x2571ba['toVersion']===_0x2571ba['fromVersion'])continue;const _0x21fc7a=_0x2571ba['toJSON']();_0x5625cc['addRevisionData'](_0x21fc7a,(_0x2e0000,_0x409b15,_0x5af99f)=>{if(_0x5bc3b0){if(_0x448b5b)_0x448b5b['_update'](_0x2e0000,_0x409b15);else{if(!_0x409b15){const _0x400d29=_0x5af99f['toJSON']();_0x400d29['id']=_0x4e1ee9(),_0x10ea93['saveRevision'](_0x400d29,_0x5af99f['toVersion'])['then'](_0x26ec76=>{_0x448b5b=_0x26ec76;});}}}else _0x2571ba['_update'](_0x2e0000,_0x409b15);});}}},w),_0x161363);}['_enhanceShowRevisionViewerCallback'](){const _0x31374d=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x2aad6d=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x485bab=this['editor']['plugins']['get']('Autosave');await _0x485bab['save']();}else await _0x2aad6d['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x47efad=this['editor']['plugins']['get']('Dialog');_0x47efad['isOpen']&&_0x47efad['hide']();}const _0x529434=this['_getRevisionViewerEditorConfig']();return _0x31374d(_0x529434)['then'](_0x4a0775=>{return(this['_viewerEditor']=_0x4a0775,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x4a0775;})['catch'](_0x10b3c1=>(console['error'](_0x10b3c1),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2d61cb=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'](),_0x2d61cb(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x1a72e1=this['editor']['plugins']['get']('Annotations');_0x1a72e1['refreshVisibility'](),_0x1a72e1['refreshPositioning']();}})));}['_showRevisionViewer'](_0x102afb){const _0x44ef65=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x58f97e=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x35fafa=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x35fafa,_0x102afb)['then'](_0x41fb62=>(_0x58f97e['style']['display']='block',_0x44ef65['style']['display']='none',_0x41fb62));}['_closeRevisionViewer'](_0x353f00){const _0x28de42=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x28de42['style']['display']='',_0x353f00['destroy']();}async['_restoreRevision'](_0x2cd007){const _0x2ff48f=this['editor'],_0x27fbe0=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x548fae=_0x2ff48f['plugins']['get']('RevisionTracker'),_0x118b55=_0x27fbe0['repository']['getRevision'](_0x2cd007);let _0x531549,_0x5c33e0,_0x5ab5c5;try{_0x531549=await _0x27fbe0['getRevisionData'](_0x118b55),_0x5c33e0=await _0x27fbe0['getRevisionRootsAttributes'](_0x118b55);}catch(_0x3b2b5c){return void console['error'](_0x3b2b5c);}_0x2ff48f['model']['change'](_0x552429=>{for(const _0x333d12 of Array['from'](_0x2ff48f['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x552429['removeMarker'](_0x333d12);}),_0x27fbe0['isReady']=!0x1,_0x2ff48f['model']['enqueueChange'](_0xee4eb6=>{_0xee4eb6['setSelection'](null),_0xee4eb6['removeSelectionAttribute'](_0x2ff48f['model']['document']['selection']['getAttributeKeys']());const _0x2f7989=Object['keys'](_0x531549);for(const _0x3e76cb of _0x2ff48f['model']['document']['roots'])'$graveyard'!=_0x3e76cb['rootName']&&_0x3e76cb['isAttached']()&&!_0x2f7989['includes'](_0x3e76cb['rootName'])&&_0xee4eb6['detachRoot'](_0x3e76cb);for(const _0x3ff690 of _0x2f7989){let _0x2f7e9e=_0x2ff48f['model']['document']['getRoot'](_0x3ff690);_0x2f7e9e&&_0x2f7e9e['isAttached']()||(_0x2f7e9e=_0xee4eb6['addRoot'](_0x3ff690));const _0x5df801=_0x5c33e0[_0x3ff690],_0x51aad0=Object['keys'](_0x5df801),_0x5adf3f=_0x531549[_0x3ff690];for(const _0x91543b of _0x2f7e9e['getAttributeKeys']())_0x51aad0['includes'](_0x91543b)||_0xee4eb6['removeAttribute'](_0x91543b,_0x2f7e9e);for(const _0x262bdc of _0x51aad0)_0xee4eb6['setAttribute'](_0x262bdc,_0x5c33e0[_0x3ff690][_0x262bdc],_0x2f7e9e);_0xee4eb6['remove'](_0xee4eb6['createRangeIn'](_0x2f7e9e)),_0xee4eb6['insert'](_0x2ff48f['data']['parse'](_0x5adf3f,_0x2f7e9e),_0x2f7e9e,0x0);}});const _0x59029f=m(_0x2ff48f['locale'],'Restored');if(_0x118b55['name'])_0x5ab5c5=-0x1==_0x118b55['name']['indexOf'](_0x59029f)?_0x59029f+':\x20'+_0x118b55['name']:_0x118b55['name'];else _0x5ab5c5=_0x59029f+':\x20'+(_0x118b55['createdAt']['toLocaleDateString'](_0x2ff48f['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x118b55['createdAt']['toLocaleTimeString'](_0x2ff48f['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x548fae['saveRevision']({'name':_0x5ab5c5}),_0x27fbe0['isReady']=!0x0,_0x2ff48f['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};