@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250201.0 → 0.0.0-nightly-20250203.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 _0x207e02,uid as _0x2f8e68,Collection as _0x4898c5,logWarning as _0xa445bd,FocusTracker as _0x45e94e,KeystrokeHandler as _0x27726f,scrollViewportToShowTarget as _0x2ff103,ResizeObserver as nt,ElementReplacer as ht,CKEditorError as _0x45bf98}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x18d51f,set as _0xecd27d,unset as _0x2a8414,isEqual as _0x1b4ca3}from'lodash-es';import{Plugin as _0x3bebb5,PendingActions as _0x2d4391,icons as _0x3c7ca0,Command as _0x565718,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x46cb99,getMarkerDomElement as _0x5967d9,ConfirmMixin as _0x419b7f,sanitizeEditorConfig as _0x1a30a5}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x296182,ViewText as _0x25df8a,ViewElement as _0x28a7ad,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0x563b67,ViewAttributeElement as _0x5b84e1,ViewEmptyElement as _0x4600ee,ViewRawElement as _0x2bd2bb,ViewUIElement as _0x173c83,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x5305fa,submitHandler as _0x44028f,LabeledFieldView as _0x149fcb,createLabeledInputText as _0x134a02,createDropdown as _0x20bc7e,ListView as _0x2db0e6,ListItemView as _0x20c2ba,ButtonView as te,MenuBarMenuView as _0x588f7a,MenuBarMenuListView as _0x11f451,MenuBarMenuListItemView as _0x5a1e1e,MenuBarMenuListItemButtonView as _0x5d1b37,ContextualBalloon as _0xf65c01,ToolbarSeparatorView as _0xf85ce8,IconView as _0x274e21,addListToDropdown as to,ViewModel as _0x5a9307,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 _0x32251d}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
- _0x207e02(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x453117){super(),this['id']=_0x453117['id']||_0x2f8e68(),this['creator']=_0x453117['creator']||null,this['authors']=_0x453117['authors']||[],this['diffData']=_0x453117['diffData']||null,this['toVersion']=_0x453117['toVersion']||0x0,this['fromVersion']=_0x453117['fromVersion']||0x0,this['set']('name',_0x453117['name']||''),this['set']('createdAt',_0x453117['createdAt']||new Date()),this['set']('attributes',_0x453117['attributes']||{});}['setName'](_0x2ddb49){this['_update']({'name':_0x2ddb49});}['setAttribute'](_0xc99444,_0x2ca39b){const _0x7b5e83=_0x18d51f(this['attributes']);_0xecd27d(_0x7b5e83,_0xc99444,_0x2ca39b),this['_update']({'attributes':_0x7b5e83});}['removeAttribute'](_0x4848c6){const _0x105dc2=_0x18d51f(this['attributes']);_0x2a8414(_0x105dc2,_0x4848c6),this['_update']({'attributes':_0x105dc2});}['_update'](_0x50c554,_0x2bd0d8=!0x1){let _0x3b69c4=!0x1;const _0x3d3e29={'id':this['id']},_0x35966=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x1e2e46 of _0x35966){const _0x30de7f=_0x50c554[_0x1e2e46];void 0x0!==_0x30de7f&&_0x30de7f!==this[_0x1e2e46]&&(this[_0x1e2e46]=_0x30de7f,_0x3d3e29[_0x1e2e46]=_0x30de7f,_0x3b69c4=!0x0);}_0x3b69c4&&(_0x3d3e29['authors']&&(_0x3d3e29['authorsIds']=_0x3d3e29['authors']['map'](_0x3dfe64=>_0x3dfe64['id']),delete _0x3d3e29['authors']),this['fire']('_update',_0x3d3e29,_0x2bd0d8));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x4c7c9e=>_0x4c7c9e['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x3bebb5{['_revisions'];static get['requires'](){return[_0x46cb99];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x3aeb69){super(_0x3aeb69),this['_revisions']=new _0x4898c5();}['afterInit'](){!async function(_0x29a8bd){const _0x3a1f5f=_0x5c106f([0x51,0x41,0x4c,0x75,0x4a,0x65,0x48,0x6f,0x77,0x49,0x43,0x69,0x59,0x4d,0x6a,0x67,0x62,0x38,0x66,0x58,0x30,0x39,0x36,0x68,0x6e,0x61,0x50,0x32,0x4f,0x74,0x4b,0x37,0x70,0x6b,0x44,0x42,0x5a,0x6c,0x71,0x63,0x78,0x56,0x57,0x64,0x35,0x76,0x73,0x55,0x7a,0x34,0x79,0x4e,0x33,0x45,0x46,0x31,0x52,0x53,0x47,0x54,0x72,0x6d]),_0x47b3f3=0xeb829,_0x38c309=0x6476d343,_0x127b1a=0x64718d03^_0x38c309,_0x1b1180=window[_0x5c106f([0x44,0x61,0x74,0x65])][_0x5c106f([0x6e,0x6f,0x77])](),_0x532760=_0x29a8bd[_0x5c106f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xe9a7ac=new window[(_0x5c106f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x259135=>{_0x532760[_0x5c106f([0x6f,0x6e,0x63,0x65])](_0x5c106f([0x72,0x65,0x61,0x64,0x79]),_0x259135);}),_0x5662d0={[_0x5c106f([0x6b,0x74,0x79])]:_0x5c106f([0x45,0x43]),[_0x5c106f([0x75,0x73,0x65])]:_0x5c106f([0x73,0x69,0x67]),[_0x5c106f([0x63,0x72,0x76])]:_0x5c106f([0x50,0x2d,0x32,0x35,0x36]),[_0x5c106f([0x78])]:_0x5c106f([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]),[_0x5c106f([0x79])]:_0x5c106f([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]),[_0x5c106f([0x61,0x6c,0x67])]:_0x5c106f([0x45,0x53,0x32,0x35,0x36])},_0x3b7b25=_0x532760[_0x5c106f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5c106f([0x67,0x65,0x74])](_0x5c106f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x467ab4(){let _0x11e0a5,_0x32d716=null,_0x53583d=null;try{if(_0x3b7b25==_0x5c106f([0x47,0x50,0x4c]))return _0x5c106f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x11e0a5=_0x3953ef(),!_0x11e0a5)return _0x5c106f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x11e0a5[_0x5c106f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x53583d=_0x33d037(_0x11e0a5[_0x5c106f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x11e0a5[_0x5c106f([0x6a,0x74,0x69])])),await _0x25c6b0()?_0x2b30ad()?_0x59d391()?_0x5c106f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x24c99b()?(_0x11e0a5[_0x5c106f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5c106f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x32d716=_0x3e8ed7(_0x5c106f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x11e0a5[_0x5c106f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5c106f([0x74,0x72,0x69,0x61,0x6c])&&(_0x32d716=_0x3e8ed7(_0x5c106f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5215a2()):_0x5c106f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5c106f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5c106f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3e4c17){return _0x5c106f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x59d391(){const _0x2f61c9=[_0x5c106f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5c106f([0x74,0x72,0x69,0x61,0x6c])][_0x5c106f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11e0a5[_0x5c106f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1b1180/0x3e8:0xe10*_0x127b1a;return _0x11e0a5[_0x5c106f([0x65,0x78,0x70])]<_0x2f61c9;}function _0x2b30ad(){const _0x3af077=_0x11e0a5[_0x5c106f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3af077)return!0x1;if(_0x3af077[_0x5c106f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c106f([0x2a])))return!0x0;if(_0x3af077[_0x5c106f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c106f([0x52,0x48])))return!0x0;if(_0x3af077[_0x5c106f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c106f([0x52,0x52,0x48]))){if(_0x2566e0())return!0x0;if(_0x2280c4()||_0x57525b())return!0x0;}return!0x1;}function _0x24c99b(){const _0x23d7b8=_0x11e0a5[_0x5c106f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x23d7b8||0x0==_0x23d7b8[_0x5c106f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x47e7e7}=new URL(window[_0x5c106f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x23d7b8[_0x5c106f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47e7e7))return!0x0;const _0x5b393d=_0x47e7e7[_0x5c106f([0x73,0x70,0x6c,0x69,0x74])](_0x5c106f([0x2e]));return _0x23d7b8[_0x5c106f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xfa6b1e=>_0xfa6b1e[_0x5c106f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c106f([0x2a])))[_0x5c106f([0x6d,0x61,0x70])](_0x3d4439=>_0x3d4439[_0x5c106f([0x73,0x70,0x6c,0x69,0x74])](_0x5c106f([0x2e])))[_0x5c106f([0x73,0x6f,0x6d,0x65])](_0x472179=>_0x5b393d[_0x5c106f([0x65,0x76,0x65,0x72,0x79])]((_0xa0012f,_0x5113be)=>_0x472179[_0x5113be]===_0xa0012f||_0x472179[_0x5113be]===_0x5c106f([0x2a])));}function _0x5215a2(){return _0x32d716&&_0x53583d?new window[(_0x5c106f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4ff6f0,_0x4392cf)=>{_0x32d716[_0x5c106f([0x74,0x68,0x65,0x6e])](_0x4ff6f0,_0x4392cf),_0x53583d[_0x5c106f([0x74,0x68,0x65,0x6e])](_0x5c2042=>{_0x5c2042!=_0x5c106f([0x56,0x61,0x6c,0x69,0x64])&&_0x4ff6f0(_0x5c2042);},_0x4392cf);}):_0x32d716||_0x53583d||_0x5c106f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x33d037(_0x1b7a78,_0x1ece91){return new window[(_0x5c106f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x70c0d9=>{if(_0x443715())return _0x70c0d9(_0x5c106f([0x56,0x61,0x6c,0x69,0x64]));_0x18b8b9(),_0x532760[_0x5c106f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5c106f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x235663=!0x1;const _0x1234b4=_0x2f8e68();function _0x1aa4fb(_0x77de8b){return!!_0x77de8b&&(typeof _0x77de8b===_0x5c106f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x77de8b===_0x5c106f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x77de8b[_0x5c106f([0x74,0x68,0x65,0x6e])]===_0x5c106f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x77de8b[_0x5c106f([0x63,0x61,0x74,0x63,0x68])]===_0x5c106f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1fbd5e(_0x46050d){_0x42a166(_0x46050d)[_0x5c106f([0x74,0x68,0x65,0x6e])](_0x54cb03=>{if(!_0x54cb03||_0x54cb03[_0x5c106f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5c106f([0x6f,0x6b]))return _0x5c106f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5ea27d(_0xdd8af3(_0x1234b4+_0x1ece91))!=_0x54cb03[_0x5c106f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5c106f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5c106f([0x56,0x61,0x6c,0x69,0x64]);})[_0x5c106f([0x74,0x68,0x65,0x6e])](_0x4608a2=>(_0x3543ea(),_0x4608a2),()=>{const _0x44ca08=_0x17cedb();return null==_0x44ca08?(_0x3543ea(),_0x5c106f([0x56,0x61,0x6c,0x69,0x64])):_0x5c106f(_0x1b1180-_0x44ca08>(0x407a5743^_0x38c309)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5c106f([0x74,0x68,0x65,0x6e])](_0x70c0d9)[_0x5c106f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x70c0d9(_0x5c106f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3a08a4=0x64403dc3^_0x38c309;function _0x3543ea(){const _0x24779f=_0x5c106f([0x6c,0x6c,0x63,0x74,0x2d])+_0x5ea27d(_0xdd8af3(_0x1b7a78)),_0x135264=_0x7b5037(_0x5ea27d(window[_0x5c106f([0x4d,0x61,0x74,0x68])][_0x5c106f([0x63,0x65,0x69,0x6c])](_0x1b1180/_0x3a08a4)));window[_0x5c106f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5c106f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x24779f,_0x135264);}function _0x17cedb(){const _0x1224f8=_0x5c106f([0x6c,0x6c,0x63,0x74,0x2d])+_0x5ea27d(_0xdd8af3(_0x1b7a78)),_0x33ea88=window[_0x5c106f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5c106f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1224f8);return _0x33ea88?window[_0x5c106f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x7b5037(_0x33ea88),0x10)*_0x3a08a4:null;}function _0x42a166(_0xdeddb0){return new window[(_0x5c106f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x54bca7,_0x5bd5b1)=>{_0xdeddb0[_0x5c106f([0x74,0x68,0x65,0x6e])](_0x54bca7,_0x5bd5b1),window[_0x5c106f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5bd5b1,0x64770783^_0x38c309);});}}_0x532760[_0x5c106f([0x6f,0x6e])](_0x5c106f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x24936e,_0x494794)=>{if(_0x494794[0x0]!=_0x1b7a78)return _0x70c0d9(_0x5c106f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x494794[0x1]={..._0x494794[0x1],[_0x5c106f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1234b4};},{[_0x5c106f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5c106f([0x68,0x69,0x67,0x68])}),_0x532760[_0x5c106f([0x6f,0x6e])](_0x5c106f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x37ce80=>{_0x1aa4fb(_0x37ce80[_0x5c106f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x235663=!0x0,_0x1fbd5e(_0x37ce80[_0x5c106f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5c106f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5c106f([0x6c,0x6f,0x77])}),_0xe9a7ac[_0x5c106f([0x74,0x68,0x65,0x6e])](()=>{_0x235663||_0x70c0d9(_0x5c106f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x443715(){return _0x532760[_0x5c106f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5c106f([0x76,0x69,0x65,0x77])][_0x5c106f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5c106f([0x61,0x75,0x74,0x6f]);}function _0x18b8b9(){_0x532760[_0x5c106f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5c106f([0x76,0x69,0x65,0x77])][_0x5c106f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5c106f([0x61,0x75,0x74,0x6f]);}}function _0x3e8ed7(_0x46123f){const _0x4ab573=[new window[(_0x5c106f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4edf7b=>setTimeout(_0x4edf7b,0x647fed8f^_0x38c309)),_0xe9a7ac[_0x5c106f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5c106f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x412ac1=>{const _0x4bf49b=0x6476d344^_0x38c309,_0x157adc=_0x29a8bd[_0x5c106f([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x2c6d99(){_0x157adc[_0x5c106f([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x4bf49b&&_0x412ac1();}_0x2c6d99(),_0x157adc[_0x5c106f([0x6f,0x6e])](_0x5c106f([0x61,0x64,0x64]),_0x2c6d99);})),new window[(_0x5c106f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28c257=>{function _0x447683(){for(const _0x261f78 in window)if(window[_0x5c106f([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x5c106f([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x261f78))&&window[_0x261f78]==_0x47b3f3)return _0x28c257();_0x532760[_0x5c106f([0x73,0x74,0x61,0x74,0x65])]!=_0x5c106f([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x5c106f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x447683,0x6476c0cb^_0x38c309);}_0x520f56(_0x5c106f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x447683();})];return window[_0x5c106f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5c106f([0x72,0x61,0x63,0x65])](_0x4ab573)[_0x5c106f([0x74,0x68,0x65,0x6e])](()=>_0x46123f);}async function _0x43a4c1(){if(await _0xe9a7ac,_0x520f56(_0x5c106f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x173fb5=_0x29a8bd[_0x5c106f([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x13d93d=_0x29a8bd[_0x5c106f([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])](_0x173fb5[_0x5c106f([0x69,0x64])]),_0x5d8cc2=_0x4b2575(_0x5c106f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x5d8cc2[_0x5c106f([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x173fb5['id'],_0x13d93d?_0x13d93d['id']:null,!0x0),_0x5d8cc2[_0x5c106f([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5c106f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5d8cc2[_0x5c106f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5d8cc2[_0x5c106f([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x84fea9,void(_0x5d8cc2[_0x5c106f([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x84fea9);}if(_0x520f56(_0x5c106f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0xb5a9d=_0x4b2575(_0x5c106f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0xb5a9d[_0x5c106f([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5c106f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0xb5a9d[_0x5c106f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0xb5a9d[_0x5c106f([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x84fea9,_0xb5a9d[_0x5c106f([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x84fea9;}_0x532760[_0x5c106f([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c106f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x84fea9,_0x532760[_0x5c106f([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c106f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x84fea9,_0x532760[_0x5c106f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5c106f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2566e0(){return _0x520f56(_0x5c106f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4b2575(_0x5c106f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5c106f([0x73,0x74,0x61,0x74,0x65])]==_0x5c106f([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2280c4(){return _0x520f56(_0x5c106f([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 _0x57525b(){return _0x520f56(_0x5c106f([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x5136c9(_0x18b05e){const _0x49f643=_0x4e44d3();_0x532760[_0x49f643]=_0x5c106f([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])+_0x18b05e,_0x18b05e[_0x5c106f([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x5c106f([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x4e44d3()]=_0x47b3f3),_0x18b05e!=_0x5c106f([0x56,0x61,0x6c,0x69,0x64])&&_0x43a4c1();}function _0x4e44d3(){const _0x4decb7=window[_0x5c106f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5c106f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5c106f([0x6e,0x6f,0x77])]())[_0x5c106f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5c106f([0x2e]),'');let _0x34fd18=_0x5c106f([0x51]);for(let _0x45e3fd=0x0;_0x45e3fd<_0x4decb7[_0x5c106f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x45e3fd+=0x2){let _0x3f6b60=window[_0x5c106f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4decb7[_0x5c106f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x45e3fd,_0x45e3fd+0x2));_0x3f6b60>=_0x3a1f5f[_0x5c106f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3f6b60-=_0x3a1f5f[_0x5c106f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x34fd18+=_0x3a1f5f[_0x3f6b60];}return _0x34fd18;}function _0x3953ef(){const _0x3760b5=_0x3b7b25[_0x5c106f([0x73,0x70,0x6c,0x69,0x74])](_0x5c106f([0x2e]));if(0x3!=_0x3760b5[_0x5c106f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x14e64f(_0x3760b5[0x1]);function _0x14e64f(_0x4dbff4){const _0x4a42b8=_0xedbf28(_0x4dbff4);return _0x4a42b8&&_0x1cb927()?_0x4a42b8:null;function _0x1cb927(){const _0x5833f1=_0x4a42b8[_0x5c106f([0x6a,0x74,0x69])],_0x2a06a6=window[_0x5c106f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5833f1[_0x5c106f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5833f1[_0x5c106f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3a1281={..._0x4a42b8,[_0x5c106f([0x6a,0x74,0x69])]:_0x5833f1[_0x5c106f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5833f1[_0x5c106f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3a1281[_0x5c106f([0x76,0x63])],_0xdd8af3(_0x3a1281)==_0x2a06a6;}}}async function _0x25c6b0(){let _0x53b856=!0x0;try{const _0x5cfc06=_0x3b7b25[_0x5c106f([0x73,0x70,0x6c,0x69,0x74])](_0x5c106f([0x2e])),[_0x4e3521,_0xdae1f6,_0x276120]=_0x5cfc06;return _0x27c12e(_0x4e3521),await _0x48e4c4(_0x4e3521,_0xdae1f6,_0x276120),_0x53b856;}catch(_0x3d4104){return!0x1;}function _0x27c12e(_0x5a78d2){const _0x585b88=_0xedbf28(_0x5a78d2);_0x585b88&&_0x585b88[_0x5c106f([0x61,0x6c,0x67])]==_0x5c106f([0x45,0x53,0x32,0x35,0x36])||(_0x53b856=!0x1);}async function _0x48e4c4(_0x33c90f,_0x30fa53,_0x377c6c){const _0x3f461b=window[_0x5c106f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5c106f([0x66,0x72,0x6f,0x6d])](_0x3f9055(_0x377c6c),_0x4ff10d=>_0x4ff10d[_0x5c106f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1272d9=new window[(_0x5c106f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5c106f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x33c90f+_0x5c106f([0x2e])+_0x30fa53),_0x4cbf5a=window[_0x5c106f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5c106f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4cbf5a)return;const _0x1dd798=await _0x4cbf5a[_0x5c106f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5c106f([0x6a,0x77,0x6b]),_0x5662d0,{[_0x5c106f([0x6e,0x61,0x6d,0x65])]:_0x5c106f([0x45,0x43,0x44,0x53,0x41]),[_0x5c106f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5c106f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5c106f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4cbf5a[_0x5c106f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5c106f([0x6e,0x61,0x6d,0x65])]:_0x5c106f([0x45,0x43,0x44,0x53,0x41]),[_0x5c106f([0x68,0x61,0x73,0x68])]:{[_0x5c106f([0x6e,0x61,0x6d,0x65])]:_0x5c106f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1dd798,_0x3f461b,_0x1272d9)||(_0x53b856=!0x1);}}function _0xedbf28(_0x3ea314){return _0x3ea314[_0x5c106f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5c106f([0x65,0x79]))?JSON[_0x5c106f([0x70,0x61,0x72,0x73,0x65])](_0x3f9055(_0x3ea314)):null;}function _0x3f9055(_0x388950){return window[_0x5c106f([0x61,0x74,0x6f,0x62])](_0x388950[_0x5c106f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5c106f([0x2b]))[_0x5c106f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5c106f([0x2f])));}function _0xdd8af3(_0x1f9a10){let _0x4ba4bb=0x1505;function _0x5ad1b4(_0x15162e){for(let _0x18ca58=0x0;_0x18ca58<_0x15162e[_0x5c106f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x18ca58++){const _0x536741=_0x15162e[_0x5c106f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x18ca58);_0x4ba4bb=(_0x4ba4bb<<0x5)+_0x4ba4bb+_0x536741,_0x4ba4bb&=_0x4ba4bb;}}function _0x526771(_0x5122ea){Array[_0x5c106f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5122ea)?_0x5122ea[_0x5c106f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x526771):_0x5122ea&&typeof _0x5122ea==_0x5c106f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5c106f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5122ea)[_0x5c106f([0x73,0x6f,0x72,0x74])]()[_0x5c106f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x498c13,_0x1284c2])=>{_0x5ad1b4(_0x498c13),_0x526771(_0x1284c2);}):_0x5ad1b4(window[_0x5c106f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5122ea));}return _0x526771(_0x1f9a10),_0x4ba4bb>>>0x0;}function _0x5ea27d(_0x2caba0){return _0x2caba0[_0x5c106f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5c106f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5c106f([0x30]));}function _0x7b5037(_0x21e4d4){return _0x21e4d4[_0x5c106f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5c106f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5c106f([0x6a,0x6f,0x69,0x6e])]('');}function _0x520f56(_0xd9cced){return _0x532760[_0x5c106f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5c106f([0x68,0x61,0x73])](_0xd9cced);}function _0x4b2575(_0x4f400c){return _0x532760[_0x5c106f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5c106f([0x67,0x65,0x74])](_0x4f400c);}function _0x84fea9(){}function _0x5c106f(_0x49acfc){return _0x49acfc['map'](_0x402f01=>String['fromCharCode'](_0x402f01))['join']('');}_0x5136c9(await _0x467ab4());}(this);}['createRevision'](_0x220002){const _0x33d3b8=this['editor']['plugins']['get']('Users');return new a({'id':_0x220002['id'],'name':_0x220002['name'],'creator':_0x220002['creatorId']?_0x33d3b8['getUser'](_0x220002['creatorId']):null,'diffData':_0x220002['diffData']||_0x220002['data'],'authors':_0x220002['authorsIds']['map'](_0x5b292a=>_0x33d3b8['getUser'](_0x5b292a)),'createdAt':new Date(_0x220002['createdAt']),'attributes':_0x220002['attributes'],'fromVersion':_0x220002['fromVersion'],'toVersion':_0x220002['toVersion']});}['addRevision'](_0xf9a171,_0x2793cc=0x0){this['_revisions']['add'](_0xf9a171,_0x2793cc);}['getRevision'](_0x5f2c53){return this['_revisions']['get'](_0x5f2c53);}['getRevisions'](_0x48eb2e={'toJSON':!0x1}){const _0x512f71=Array['from'](this['_revisions']);return _0x512f71['reverse'](),_0x48eb2e['toJSON']?_0x512f71['map'](_0x4b050e=>_0x4b050e['toJSON']()):_0x512f71;}['getIndex'](_0x2c6560){return this['_revisions']['getIndex'](_0x2c6560);}['getEarlierVisibleRevision'](_0x2f6d13){const [,_0x13499c]=this['getRevisionsIterator'](_0x2f6d13,{'direction':'earlier'});return _0x13499c;}['getLaterVisibleRevision'](_0x318c63){const [,_0x1f7414]=this['getRevisionsIterator'](_0x318c63,{'direction':'later'});return _0x1f7414;}['getRevisionsInDiff'](_0x27a002){const _0x342a4d=[];for(const _0x31cc28 of this['getRevisionsIterator'](_0x27a002['newRevisionId']))if(_0x342a4d['push'](_0x31cc28),_0x31cc28['id']===_0x27a002['oldRevisionId'])break;return _0x342a4d;}*['getRevisionsIterator'](_0x348b50,{direction:_0x14b876='earlier',filter:_0x17c43c=()=>!0x0}={}){const _0x24e91a='earlier'===_0x14b876?0x1:-0x1;let _0x1f2702=this['_revisions']['get'](_0x348b50),_0x41bc2f=this['getIndex'](_0x1f2702);for(yield _0x1f2702;_0x1f2702;){if(_0x41bc2f+=_0x24e91a,_0x1f2702=this['getRevision'](_0x41bc2f),!_0x1f2702)return;_0x17c43c(_0x1f2702)&&(yield _0x1f2702);}}}function m(_0x2148bb,_0x3f35bd,_0x530ad1){const t=_0x2148bb['t'];switch(_0x3f35bd){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'},_0x530ad1);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x530ad1);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':_0x563b67,'a':_0x5b84e1,'e':_0x4600ee,'r':_0x2bd2bb,'u':_0x173c83};class l extends _0x3bebb5{['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[_0x46cb99,j,_0x2d4391];}constructor(_0x7e9c30){super(_0x7e9c30),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 _0x241302=_0x2f8e68();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x241302},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 _0x2bffe3=this['repository']['getRevision'](0x0),_0x2f6e7e=_0x2bffe3&&null===_0x2bffe3['creator']?_0x2bffe3:null;if(this['_continueCurrentRevision']=!!_0x2f6e7e&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x50c512=this['_source']['getCurrentRevisionId'](),_0x56f7bc=this['repository']['getRevision'](_0x50c512);if(_0x56f7bc)this['_startingVersion']=_0x56f7bc['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x4471b6=this['_source']['history']['_operations']['find'](_0x2f206b=>!_0x2f206b['_isInit']),_0x324572=_0x4471b6?_0x4471b6['baseVersion']:this['_source']['history']['version'];_0x2bffe3?(_0x2bffe3['toVersion']<_0x324572&&_0x2bffe3['_update']({'toVersion':_0x324572}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x2f6e7e['id'],this['_startingVersion']=_0x2f6e7e['fromVersion']):(this['_startingVersion']=_0x2bffe3['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x324572,this['_continueCurrentRevision']=!0x1);}}else _0x2f6e7e&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x2f6e7e['toVersion'],this['editor']['model']['document']['history']['version']),_0x2f6e7e['fromVersion']===_0x2f6e7e['toVersion']?(0x0!==_0x2f6e7e['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x2f6e7e['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x2f6e7e['id'],this['_startingVersion']=_0x2f6e7e['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',_0x5b29d9=>!_0x5b29d9),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x42af14=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x387ae3;for(const _0x53e35a in _0x42af14){const _0x4d17fe=_0x53e35a,_0x25235a=_0x42af14[_0x4d17fe];if('revisionHistoryLicenseKeyValid'==_0x25235a||'revisionHistoryLicenseKeyInvalid'==_0x25235a||'revisionHistoryLicenseKeyExpired'==_0x25235a||'revisionHistoryLicenseKeyDomainLimit'==_0x25235a||'revisionHistoryLicenseKeyNotAllowed'==_0x25235a||'revisionHistoryLicenseKeyEvaluationLimit'==_0x25235a||'revisionHistoryLicenseKeyTrialLimit'==_0x25235a||'revisionHistoryLicenseKeyUsageLimit'==_0x25235a){delete _0x42af14[_0x4d17fe],_0x387ae3=_0x25235a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x387ae3&&_0x42af14['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x387ae3&&_0x42af14['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x387ae3&&_0x42af14['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x387ae3&&_0x42af14['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x387ae3&&_0x42af14['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x387ae3&&_0x42af14['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x387ae3&&_0x42af14['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x2c99b4=this['repository']['getRevision'](0x0),_0x2bbeb4=await this['getRevisionDocumentData'](_0x2c99b4),_0x4b76a7=await this['getRevisionRootsAttributes'](_0x2c99b4);this['_replaceEditorDataWithRevisionData'](_0x2bbeb4,_0x4b76a7);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x4d620e){this['_source']=_0x4d620e;}async['update'](){const _0x520d16=await this['_source']['getLatestVersion']();if(_0x520d16>this['currentRevision']['toVersion']){await this['_loadState']();const _0xfb5f1a=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x520d16});_0xfb5f1a['authors']=_0xfb5f1a['authorsIds']['map'](_0x1be985=>this['editor']['plugins']['get']('Users')['getUser'](_0x1be985)),this['currentRevision']['_update'](_0xfb5f1a);}}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'](_0x48c7ef={},_0x109886=null){const _0x53c4be=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x109886>this['currentRevision']['toVersion']&&(_0x109886=null),null===_0x109886&&(_0x109886=await this['_source']['getLatestVersion']());const _0x54ca19=this['_getFromVersion'](_0x109886),_0x1f8b1e=this['buildRevisionData']({'from':_0x54ca19,'to':_0x109886});if(this['currentRevision']['toVersion']<_0x109886){const _0x156f23=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x109886,'to':_0x109886});_0x156f23['authors']=[],_0x156f23['authorsIds']=[],_0x156f23['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x156f23,!0x0),delete _0x156f23['authors'],_0x53c4be['push'](_0x156f23);}_0x48c7ef['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x48c7ef['name']=_0x48c7ef['name']||null,_0x48c7ef['id']=_0x48c7ef['id']||_0x2f8e68(),_0x48c7ef={..._0x48c7ef,..._0x1f8b1e};const _0x28e0db=this['addRevisionData'](_0x48c7ef);_0x53c4be['push'](_0x48c7ef);const _0x40a333=this['repository']['getIndex'](_0x28e0db);if(0x0!==_0x40a333){const _0x1959b6=this['repository']['getRevision'](_0x40a333-0x1);if(_0x1959b6['fromVersion']!==_0x109886){const _0x212eb1=this['_revisionDataBuilder']['getData'](_0x109886,_0x1959b6['toVersion']),_0x1dd3c8={'id':_0x1959b6['id'],'diffData':_0x212eb1['diffData'],'authorsIds':_0x212eb1['authorsIds'],'authors':_0x212eb1['authorsIds']['map'](_0x159e1d=>this['editor']['plugins']['get']('Users')['getUser'](_0x159e1d)),'fromVersion':_0x109886};_0x1959b6===this['currentRevision']&&(_0x1dd3c8['createdAt']=new Date(_0x48c7ef['createdAt']['getTime']()+0xa)),_0x1959b6['_update'](_0x1dd3c8,!0x0),delete _0x1dd3c8['authors'],_0x53c4be['push'](_0x1dd3c8);}}if(this['adapter']){for(const _0x26c87d of _0x53c4be)this['_bufferUpdate'](_0x26c87d['id'],_0x26c87d,!0x0);this['sendBufferedUpdates']();}return _0x28e0db;}['addRevisionData'](_0x171c88){const _0x113dbb=this['repository']['createRevision'](_0x171c88);return this['adapter']&&_0x113dbb['on']('_update',(_0x3cbad1,_0x3649f8,_0x31653f)=>{_0x31653f||(this['_bufferUpdate'](_0x3649f8['id'],_0x3649f8,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x113dbb,this['_findInsertionIndex'](_0x113dbb)),_0x113dbb;}async['getRevisionDocumentData'](_0x15e042){await this['_loadRevisionData'](_0x15e042);const _0x2b60bb={};for(const _0x12e58a in _0x15e042['diffData']){if(_0x15e042['diffData'][_0x12e58a]['attachChange']&&!_0x15e042['diffData'][_0x12e58a]['attachChange']['isAttached'])continue;const _0x568490=this['_removeRevisionMarkers'](JSON['parse'](_0x15e042['diffData'][_0x12e58a]['insertions'])),_0xa13f79=this['editor']['editing']['view']['document'],_0x34dcfa=new _0x296182(_0xa13f79,_0x568490['map'](_0x37158b=>C(_0x37158b,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x2b60bb[_0x12e58a]=this['editor']['data']['processor']['toData'](_0x34dcfa),this['editor']['data']['processor']['useFillerType']('default');}return _0x2b60bb;}async['getRevisionRootsAttributes'](_0x34066c){await this['_loadRevisionData'](_0x34066c);const _0x4f0214={};for(const _0x3055e6 in _0x34066c['diffData'])_0x34066c['diffData'][_0x3055e6]['attachChange']&&!_0x34066c['diffData'][_0x3055e6]['attachChange']['isAttached']||(_0x4f0214[_0x3055e6]=_0x34066c['diffData'][_0x3055e6]['attributesAfter']||{});return _0x4f0214;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x33c429=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x316321=0x0;_0x316321<_0x33c429['length'];_0x316321++){const _0x24b9af=_0x33c429[_0x316321];let _0x27eeb0=!0x1;for(const _0x2300dd of Object['keys'](_0x24b9af))void 0x0===_0x24b9af[_0x2300dd]?delete _0x24b9af[_0x2300dd]:'id'!==_0x2300dd&&(_0x27eeb0=!0x0);_0x27eeb0||(_0x33c429[_0x316321]=null);}if(_0x33c429=_0x33c429['filter'](_0x2155b9=>null!==_0x2155b9),!_0x33c429['length'])return;for(let _0x4b9767=0x0;_0x4b9767<_0x33c429['length'];_0x4b9767++){const _0x25e74d=_0x33c429[_0x4b9767];void 0x0!==_0x25e74d['fromVersion']&&void 0x0===_0x25e74d['toVersion']&&(_0x25e74d['toVersion']=this['repository']['getRevision'](_0x25e74d['id'])['toVersion']),void 0x0!==_0x25e74d['toVersion']&&void 0x0===_0x25e74d['fromVersion']&&(_0x25e74d['fromVersion']=this['repository']['getRevision'](_0x25e74d['id'])['fromVersion']);}const _0x39648e=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x33c429,_0x39648e)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x435e19=>{if(_0x435e19){for(const _0x3ab6ac of _0x435e19)this['setRevisionData']({'id':_0x3ab6ac['id'],'createdAt':_0x3ab6ac['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x49ab5e,_0xae0923){let _0x300c8a=this['editor']['config']['get']('initialData'),_0x5b2ecc=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x300c8a){_0x300c8a={};for(const _0x228c94 of this['editor']['model']['document']['getRootNames']())_0x300c8a[_0x228c94]='';}if('string'==typeof _0x300c8a&&(_0x300c8a={'main':_0x300c8a}),void 0x0===_0x5b2ecc){_0x5b2ecc={};for(const _0x4fca59 of this['editor']['model']['document']['getRootNames']())_0x5b2ecc[_0x4fca59]={};}let _0x4e6268=!0x1;const _0x3e9442=Object['keys'](_0x300c8a),_0x43bcc0=Object['keys'](_0x49ab5e);for(const _0x425966 of _0x3e9442){if(_0x300c8a[_0x425966]!==_0x49ab5e[_0x425966]&&''!==_0x300c8a[_0x425966]['trim']()){_0x4e6268=!0x0;break;}if(!_0x1b4ca3(_0x5b2ecc[_0x425966],_0xae0923[_0x425966])&&Object['keys'](_0x5b2ecc[_0x425966])['length']>0x0){_0x4e6268=!0x0;break;}}_0x4e6268||(_0x4e6268=_0x43bcc0['some'](_0xcb6669=>!this['editor']['model']['document']['getRoot'](_0xcb6669))),_0x4e6268&&_0xa445bd('editor-initial-data-replaced-with-revision-data',{'editorData':_0x300c8a,'editorRootsAttributes':_0x5b2ecc,'revisionData':_0x49ab5e,'revisionRootsAttributes':_0xae0923}),this['editor']['config']['set']('initialData',_0x49ab5e),this['editor']['config']['set']('rootsAttributes',_0xae0923);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x1e9ece=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x1e9ece['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x19cd5d){const _0x5de865=this['repository']['getRevisions']();_0x5de865['reverse']();let _0x476ec6=0x0;for(;_0x476ec6<_0x5de865['length'];){const _0x59727a=_0x5de865[_0x476ec6];if(_0x59727a===this['currentRevision']){_0x476ec6++;continue;}if(_0x59727a['id']===this['_initialRevisionId'])break;const _0x5bbbdc=_0x19cd5d['toVersion']-_0x59727a['toVersion']||_0x19cd5d['fromVersion']-_0x59727a['fromVersion'];if(_0x5bbbdc>0x0)break;if(_0x5bbbdc<0x0)_0x476ec6++;else{if(!_0x19cd5d['creator']&&_0x59727a['creator'])break;if(_0x59727a['creator']||!_0x19cd5d['creator']){if(_0x19cd5d['createdAt']>_0x59727a['createdAt'])break;_0x476ec6++;}else _0x476ec6++;}}return _0x476ec6;}['setRevisionData'](_0x3f6c4b){const _0x3ca87c=this['repository']['getRevision'](_0x3f6c4b['id']);if(_0x3f6c4b['createdAt']&&(_0x3f6c4b['createdAt']=new Date(_0x3f6c4b['createdAt'])),_0x3f6c4b['authorsIds']){const _0x3102e1=this['editor']['plugins']['get']('Users');_0x3f6c4b['authors']=_0x3f6c4b['authorsIds']['map'](_0x12827f=>_0x3102e1['getUser'](_0x12827f));}_0x3ca87c['_update'](_0x3f6c4b,!0x0);}['buildRevisionData']({revision:_0x2aef2b=null,from:_0x47ebd7=null,to:_0x214240=null}){_0x47ebd7=null!==_0x47ebd7?_0x47ebd7:_0x2aef2b['fromVersion'],_0x214240=null!==_0x214240?_0x214240:_0x2aef2b['toVersion'];const _0x3e8e0a=this['_revisionDataBuilder']['getData'](_0x47ebd7,_0x214240),_0x49c0cd={'diffData':_0x3e8e0a['diffData'],'authorsIds':_0x3e8e0a['authorsIds'],'fromVersion':_0x47ebd7,'toVersion':_0x214240};if(!_0x2aef2b||_0x214240!==_0x2aef2b['toVersion']){const _0x5e5912=_0x214240-0x1,_0x4950ac=this['_source']['history']['getOperation'](_0x5e5912);_0x49c0cd['createdAt']=_0x4950ac&&_0x4950ac['createdAt']||new Date();}if(this['_loadedStateData']&&_0x47ebd7===this['_loadedStateData']['fromVersion']){for(const _0x20d531 of this['_loadedStateData']['authors'])_0x49c0cd['authorsIds']['includes'](_0x20d531['id'])||_0x49c0cd['authorsIds']['push'](_0x20d531['id']);}return _0x49c0cd;}['_loadRevisionData'](_0x3106f5){if(!_0x3106f5||_0x3106f5['diffData'])return Promise['resolve']();{const _0x3d450a=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x3d450a,'revisionId':_0x3106f5['id']})['then'](_0x4ed9fc=>{_0x3106f5['diffData']=_0x4ed9fc['diffData'];});}}['_bufferUpdate'](_0x44a5b0,_0x3a3f9e,_0x2808d0){if(this['_bufferedUpdates']['has'](_0x44a5b0)){const _0x2260af=this['_bufferedUpdates']['get'](_0x44a5b0);_0x3a3f9e=_0x2808d0?{..._0x2260af,..._0x3a3f9e}:{..._0x3a3f9e,..._0x2260af};}this['_bufferedUpdates']['set'](_0x44a5b0,_0x3a3f9e);}['_getFromVersion'](_0x2b334e){const _0x8cf3d4=this['repository']['getRevisions']();_0x8cf3d4['reverse'](),_0x8cf3d4['shift']();const _0x34f3d1=_0x8cf3d4['find'](_0x5bc1bc=>_0x5bc1bc['toVersion']<=_0x2b334e)['toVersion'];return _0x34f3d1<this['_startingVersion']?this['_startingVersion']:_0x34f3d1;}['_createInitialRevision'](_0x4dd92e){const _0x42a693=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x42a693)this['_initialRevisionId']=_0x42a693['id'];else{const _0x2d8959=!this['editor']['model']['document']['roots']['find'](_0x3bcded=>this['editor']['model']['hasContent'](_0x3bcded)),_0x216f3c=this['editor']['plugins']['get']('Users')['me']['id'],_0x2810dd=m(this['editor']['locale'],_0x2d8959?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x4dd92e,'to':_0x4dd92e,'id':this['_initialRevisionId'],'name':_0x2810dd,'creatorId':_0x216f3c});}}['_createCurrentRevision'](_0x163e2f){const _0x2348e6=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x2348e6),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x163e2f,'to':_0x163e2f,'id':_0x2348e6,'name':'','creatorId':null}));}['_makeRevision']({name:_0x1f391e,from:_0x4377ab,to:_0x4a510b,creatorId:_0x48dade,id:_0x46b1a1}){const _0x4da4f1=this['buildRevisionData']({'from':_0x4377ab,'to':_0x4a510b});_0x4da4f1['name']=_0x1f391e,_0x4da4f1['creatorId']=_0x48dade,_0x4da4f1['id']=_0x46b1a1;const _0x51bca0=this['addRevisionData'](_0x4da4f1);return this['adapter']&&this['_bufferUpdate'](_0x4da4f1['id'],_0x4da4f1,!0x0),_0x51bca0;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x11cd71){return(_0x11cd71=_0x11cd71['filter'](_0x42b2bf=>!_0x42b2bf['name']||'revision-start'!==_0x42b2bf['name']&&'revision-end'!==_0x42b2bf['name']))['forEach'](_0x562adf=>{'string'!=typeof _0x562adf&&(_0x562adf['children']=this['_removeRevisionMarkers'](_0x562adf['children']),_0x562adf['attributes']=_0x562adf['attributes']['filter'](_0xf7f817=>!_0xf7f817[0x0]['startsWith']('data-revision-')));}),_0x11cd71;}}function C(_0x4e9904,_0x5a3930){const _0x120992=_0x5a3930['editing']['view']['document'];if('string'==typeof _0x4e9904)return new _0x25df8a(_0x120992,_0x4e9904);{const _0x1d5efd=_0x4e9904['children']['map'](_0x60fb74=>C(_0x60fb74,_0x5a3930));return new(P[_0x4e9904['type']]||_0x28a7ad)(_0x120992,_0x4e9904['name'],_0x4e9904['attributes'],_0x1d5efd);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x516a1d){this['editor']=_0x516a1d,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'](_0x2f1714){this['source']=_0x2f1714;const _0x5441d9=new Map(),_0x42d33e=new Map(),_0x2e1c66=this['editor']['model']['document']['roots']['map'](_0x172fbd=>_0x172fbd['rootName']);for(const _0x39487d of _0x2e1c66){const _0x415f34=this['editor']['model']['document']['getRoot'](_0x39487d),_0x39bbb8=T(_0x415f34);_0x5441d9['set'](_0x39487d,_0x39bbb8),_0x42d33e['set'](_0x39487d,Object['fromEntries'](_0x415f34['getAttributes']()));}const _0x400e45=Array['from'](this['editor']['model']['markers'])['map'](_0x545c3c=>[_0x545c3c['name'],_0x545c3c['getRange']()]),_0x5dd40f=this['source']['version'];this['_saveMetaData'](_0x5dd40f,_0x5441d9,_0x400e45,_0x42d33e),this['_startingRevisionId']=this['_revisionId'];const _0x18da38=new Map(),_0x58d499=new Map();for(const _0xf79407 of _0x2e1c66){const _0x27e5d2=F(_0xf79407);_0x18da38['set'](_0xf79407,_0x27e5d2),_0x58d499['set'](_0xf79407,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x18da38,[],_0x58d499);}['getData'](_0x5c18e4,_0x4d319a){if(this['_lastFrom']===_0x5c18e4&&this['_lastTo']<=_0x4d319a)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x4d319a,!0x0);else{if(!this['_savedMetaData']['has'](_0x5c18e4)){const _0x111f3f=this['_getPreviousFrom'](_0x5c18e4);this['_calculateMetaData'](_0x111f3f,_0x5c18e4,!0x1);}this['_calculateMetaData'](_0x5c18e4,_0x4d319a,!0x0);}return this['_lastFrom']=_0x5c18e4,this['_lastTo']=_0x4d319a,this['_getState']();}['loadState'](_0xfd4f74){this['_reset'](),this['_lastFrom']=_0xfd4f74['fromVersion'],this['_lastTo']=_0xfd4f74['toVersion'];for(const _0x3aad47 in _0xfd4f74['diffData']){const _0x4ef2aa=_0xfd4f74['diffData'][_0x3aad47]['attachChange'],_0x5c7ae7=_0x18d51f(_0xfd4f74['diffData'][_0x3aad47]['attributesBefore'])||{},_0x1b860f=this['_makeModelFromViewString'](_0xfd4f74['diffData'][_0x3aad47]['deletions']);_0x1b860f['rootName']=_0x3aad47,_0x1b860f['_isAttached']=!_0x4ef2aa||!_0x4ef2aa['isAttached'],_0x1b860f['isAttached']=()=>_0x1b860f['_isAttached'],this['_baseRoots']['set'](_0x3aad47,_0x1b860f),this['_baseRootsAttributes']['set'](_0x3aad47,_0x5c7ae7),_0x4ef2aa&&this['_touchedRoots']['set'](_0x3aad47,_0x4ef2aa);const _0x1153f9=this['_makeIdsRoot'](_0x1b860f);this['_baseIdsRoots']['set'](_0x3aad47,_0x1153f9);for(const [_0x30417b,_0x34a1ad]of _0x1b860f['markers']){if(!_0x30417b['startsWith']('revision:'))continue;const _0x3a9701=_0x30417b['split'](':')[0x2];for(const _0xed9880 of _0x34a1ad['getWalker']({'singleCharacters':!0x0})){const _0x48df51=this['_getVidAttributeName'](_0xed9880),_0x1d80a3='elementEnd'==_0xed9880['type']?_0xed9880['previousPosition']['path']['slice'](0x0,-0x1):_0xed9880['previousPosition']['path'],_0x35733e=_0x1153f9['getNodeByPath'](_0x1d80a3)['getAttribute'](_0x48df51);this['_touched']['set'](_0x35733e,{'userId':_0x3a9701});}}}this['_startingRevisionId']=this['_revisionId'];const _0x1f1335=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x486543=>!this['_touched']['has'](_0x486543));let _0x41f2f9=0x0;const _0x35644c=new Map();for(const _0x52a010 in _0xfd4f74['diffData']){const _0x51c868=_0xfd4f74['diffData'][_0x52a010]['attachChange'],_0x33bbae=_0x18d51f(_0xfd4f74['diffData'][_0x52a010]['attributesAfter'])||{},_0x342975=this['_makeModelFromViewString'](_0xfd4f74['diffData'][_0x52a010]['insertions']);_0x342975['rootName']=_0x52a010,_0x342975['_isAttached']=!_0x51c868||_0x51c868['isAttached'],_0x342975['isAttached']=()=>_0x342975['_isAttached'],this['_diffRoots']['set'](_0x52a010,_0x342975),this['_diffRootsAttributes']['set'](_0x52a010,_0x33bbae);const _0x491504=this['_makeIdsRoot'](_0x342975,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x52a010,_0x491504),_0x35644c['set'](_0x52a010,_0x342975['isAttached']()?_0x33bbae:{});for(const [_0x5dfede,_0x4f6a92]of _0x342975['markers']){if(!_0x5dfede['startsWith']('revision:'))continue;const _0x26b282=_0x5dfede['split'](':')[0x2];for(const _0x113db4 of _0x4f6a92['getWalker']({'singleCharacters':!0x0})){const _0x4c7e07=this['_getVidAttributeName'](_0x113db4),_0x249495=this['_revisionId']++,_0x453d91='elementEnd'==_0x113db4['type']?_0x113db4['previousPosition']['path']['slice'](0x0,-0x1):_0x113db4['previousPosition']['path'];_0x491504['getNodeByPath'](_0x453d91)['_setAttribute'](_0x4c7e07,_0x249495),this['_touched']['set'](_0x249495,{'userId':_0x26b282});}}for(const _0x43dd89 of this['editor']['model']['createRangeIn'](_0x342975)['getWalker']({'singleCharacters':!0x0})){const _0x243a0e=this['_getVidAttributeName'](_0x43dd89),_0x3c4ca8='elementEnd'==_0x43dd89['type']?_0x43dd89['previousPosition']['path']['slice'](0x0,-0x1):_0x43dd89['previousPosition']['path'],_0x99cea0=_0x491504['getNodeByPath'](_0x3c4ca8);_0x99cea0['getAttribute'](_0x243a0e)>0x0||_0x99cea0['_setAttribute'](_0x243a0e,_0x1f1335[_0x41f2f9++]);}for(const [_0x1c2547,_0x27fe45]of _0x342975['markers'])_0x1c2547['startsWith']('revision:')||this['_markers']['set'](_0x1c2547,_0x27fe45);}const _0x29dd25=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x29dd25),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x29dd25,0x1));const _0x4f80f5=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x4f80f5),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4f80f5,0x1));const _0x5f0d24=Array['from'](this['_diffRoots'])['map'](([_0x558d5a,_0x586ccf])=>[_0x558d5a,T(_0x586ccf)]);this['_saveMetaData'](this['_lastTo'],_0x5f0d24,this['_markers'],_0x35644c);}['_makeModelFromViewString'](_0x430d9b){const _0x5a48a7=JSON['parse'](_0x430d9b),_0x2388f4=this['editor']['editing']['view']['document'],_0x5b48ef=new _0x296182(_0x2388f4,_0x5a48a7['map'](_0x377b2d=>C(_0x377b2d,this['editor'])));return this['editor']['data']['toModel'](_0x5b48ef);}['_saveMetaData'](_0x1317f4,_0x55dd98,_0x3554be,_0x10f4aa){const _0x11f012=new Map(_0x55dd98),_0x409e66=new Map(_0x18d51f(_0x10f4aa)),_0x693870=new Map();for(const [_0x178f80,_0x3e86dd]of _0x3554be)_0x693870['set'](_0x178f80,{'start':_0x3e86dd['start']['clone'](),'end':_0x3e86dd['end']['clone'](),'rootName':_0x3e86dd['root']['rootName']});this['_savedMetaData']['set'](_0x1317f4,{'roots':_0x11f012,'markers':_0x693870,'rootsAttributes':_0x409e66});}['_removeMetaData'](_0x397741){this['_savedMetaData']['delete'](_0x397741);}['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'](_0x516142,_0x3a6485=null){let _0x41fbb5=null;_0x516142['is']('documentFragment')||(_0x41fbb5=new ft(_0x516142['name'],{'vid_start':null===_0x3a6485?this['_revisionId']++:_0x3a6485++}));const _0x437496=[];for(const _0x395f6d of _0x516142['getChildren']())if(_0x395f6d['is']('element')){_0x437496['push'](this['_makeIdsRoot'](_0x395f6d,_0x3a6485));const _0xfa3d65=_0x437496[_0x437496['length']-0x1];null!==_0x3a6485&&(_0x3a6485=_0xfa3d65['is']('element','$text')?_0xfa3d65['getAttribute']('vid')+0x1:_0xfa3d65['getAttribute']('vid_end')+0x1);}else{for(let _0x3adb9f=0x0;_0x3adb9f<_0x395f6d['offsetSize'];_0x3adb9f++)_0x437496['push'](new ft('$text',{'vid':null===_0x3a6485?this['_revisionId']++:_0x3a6485++}));}if(_0x516142['is']('documentFragment')){const _0x45f642=F(_0x516142['rootName']);return _0x45f642['_insertChild'](0x0,_0x437496),_0x45f642;}return _0x41fbb5['_setAttribute']('vid_end',null===_0x3a6485?this['_revisionId']++:_0x3a6485++),_0x41fbb5['_insertChild'](0x0,_0x437496),_0x41fbb5;}['_calculateMetaData'](_0x222c54,_0x935c65,_0x447e8f){this['_reset']();const {roots:_0x52595c,markers:_0x22b997,rootsAttributes:_0x554340}=this['_savedMetaData']['get'](_0x222c54);this['_baseRoots']=new Map(_0x52595c),this['_baseRootsAttributes']=new Map(_0x18d51f(_0x554340));for(const [_0x381413,_0x2b15c5]of this['_baseRoots'])if('$graveyard'!==_0x381413&&(this['_diffRoots']['set'](_0x381413,T(_0x2b15c5)),this['_diffRootsAttributes']=new Map(_0x18d51f(_0x554340)),_0x447e8f)){const _0x2950c6=this['_revisionId'];this['_idsRoots']['set'](_0x381413,this['_makeIdsRoot'](_0x2b15c5)),this['_baseIdsRoots']['set'](_0x381413,this['_makeIdsRoot'](_0x2b15c5,_0x2950c6));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x447e8f&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0xd90390,_0x3860c3]of _0x22b997){const _0x1e8d63=this['_baseRoots']['get'](_0x3860c3['rootName']),_0xd9a45b=this['_diffRoots']['get'](_0x3860c3['rootName']),_0x50d6d0=new vt(this['_fixPosition'](_0x3860c3['start'],_0x1e8d63),this['_fixPosition'](_0x3860c3['end'],_0x1e8d63)),_0x65bebb=this['_fixRange'](_0x50d6d0,_0xd9a45b);_0x1e8d63['markers']['set'](_0xd90390,_0x50d6d0),this['_markers']['set'](_0xd90390,_0x65bebb);}this['_applyOperations'](_0x222c54,_0x935c65,_0x447e8f);}['_applyOperations'](_0xe187f1,_0x45cf50,_0x498835){for(const _0x294e64 of this['source']['getOperations'](_0xe187f1,_0x45cf50))this['_handleOperation'](_0x294e64,_0x498835);for(const _0x474453 of this['_diffRoots']['values']())_0x474453['markers']['clear']();for(const [_0x41c01e,_0x5b423a]of this['_markers']){this['_diffRoots']['get'](_0x5b423a['root']['rootName'])['markers']['set'](_0x41c01e,_0x5b423a['clone']());}const _0xc9dc34=new Map(),_0x448ef8=new Map();for(const [_0x38d280,_0x551992]of this['_diffRoots'])_0xc9dc34['set'](_0x38d280,T(_0x551992)),_0x448ef8['set'](_0x38d280,this['_diffRootsAttributes']['get'](_0x38d280));this['_saveMetaData'](_0x45cf50,_0xc9dc34,this['_markers'],_0x448ef8);}['_getPreviousFrom'](_0x2ae33b){const _0x16a98d=Array['from'](this['_savedMetaData']['keys']());_0x16a98d['sort']((_0x52260f,_0x4ae8a7)=>_0x52260f-_0x4ae8a7),_0x16a98d['reverse']();for(const _0x56aa59 of _0x16a98d)if(_0x56aa59<_0x2ae33b)return _0x56aa59;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x2510dd,_0x40438c){const _0x694156=Array['from'](_0x40438c['markers'])['map'](([_0x456ebb,_0x29e4a9])=>[_0x456ebb,this['_fixRange'](_0x29e4a9,_0x2510dd)]);_0x2510dd['markers']=new Map(_0x694156);}['_transformMarkers'](_0x3af855){for(const _0x49ee15 of this['_markers']['values']()){const _0x5eac9a=_0x49ee15['getTransformedByOperation'](_0x3af855),_0x319cd6=vt['_createFromRanges'](_0x5eac9a);_0x49ee15['start']=_0x319cd6['start'],_0x49ee15['end']=_0x319cd6['end'];}}['_handleOperation'](_0x385623,_0x411490){if('addRoot'!=_0x385623['type']&&'detachRoot'!=_0x385623['type']){if('insert'==_0x385623['type']){const _0x73e8ba=_0x385623['position']['root']['rootName'];this['_diffRoots']['has'](_0x73e8ba)||(this['_diffRoots']['set'](_0x73e8ba,F(_0x73e8ba,!0x0)),this['_diffRootsAttributes']['set'](_0x73e8ba,{}),_0x411490&&this['_idsRoots']['set'](_0x73e8ba,F(_0x73e8ba,!0x0)));}else{if('addRootAttribute'==_0x385623['type']||'removeRootAttribute'==_0x385623['type']||'changeRootAttribute'==_0x385623['type'])return void this['_handleRootAttributeOperation'](_0x385623);'marker'==_0x385623['type']&&this['_handleMarkerOperation'](_0x385623);}if('marker'!==_0x385623['type']){const _0x3b4921=this['_cloneOperation'](_0x385623,this['_diffRoots']);_0x3b4921['_execute'](),this['_transformMarkers'](_0x3b4921);}if(_0x411490)switch(_0x385623['type']){case'insert':this['_handleInsertOperation'](_0x385623);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x385623);break;case'merge':this['_handleMergeOperation'](_0x385623);break;case'split':this['_handleSplitOperation'](_0x385623);}}else this['_handleRootOperation'](_0x385623,_0x411490);}['_cloneOperation'](_0x47d639,_0x37cb54){const _0x16ba05=_0x47d639['clone']();return _0x16ba05['_authorId']=_0x47d639['_authorId'],this['_fixOperation'](_0x16ba05,_0x37cb54),_0x16ba05;}['_getBaseVids'](_0x2e0802){return _0x2e0802['map'](_0x1a33db=>{const _0xf9f91b=this['_getVidAttributeName'](_0x1a33db);return Number(_0x1a33db['item']['getAttribute'](_0xf9f91b));});}['_generateTape'](_0x54c934,_0x47f255){if(_0x54c934['is']('element','$text'))_0x47f255['push']({'item':_0x54c934,'type':'text'});else{_0x54c934['is']('element')&&_0x47f255['push']({'item':_0x54c934,'type':'elementStart'});for(const _0x54ee34 of _0x54c934['getChildren']())this['_generateTape'](_0x54ee34,_0x47f255);_0x54c934['is']('element')&&_0x47f255['push']({'item':_0x54c934,'type':'elementEnd'});}return _0x47f255;}['_getState'](){const _0x53ea7d=new Map(this['_touched']),_0x4c4472=new Map(_0x53ea7d),_0x4eb453=new Map(),_0x1c1f63={'insertions':{},'deletions':{}},_0x4930d9={'insertions':{},'deletions':{}},_0xb74001=new Map(),_0x1cd248=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x1cd248['delete']('$graveyard');for(const _0x371f02 of _0x1cd248){const _0x286f03=this['_diffRoots']['get'](_0x371f02)||F(_0x371f02,!0x1),_0x100644=this['_baseRoots']['get'](_0x371f02)||F(_0x371f02,!0x1);_0x286f03['isAttached']()||_0x100644['isAttached']()?(_0x1c1f63['insertions'][_0x371f02]=T(_0x286f03),_0x1c1f63['deletions'][_0x371f02]=T(_0x100644),this['_copyMarkers'](_0x1c1f63['deletions'][_0x371f02],_0x100644),this['_copyMarkers'](_0x1c1f63['insertions'][_0x371f02],_0x286f03),_0x4930d9['insertions'][_0x371f02]=this['_generateTape'](this['_idsRoots']['get'](_0x371f02),[]),_0x4930d9['deletions'][_0x371f02]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x371f02)||F(_0x371f02,!0x1),[])):_0x1cd248['delete'](_0x371f02);}for(const _0x3d46b8 of _0x1cd248){const _0x2f1b81=_0x4930d9['insertions'][_0x3d46b8];for(const _0x2f5bb4 of _0x2f1b81){const _0x17abd7=this['_getVidAttributeName'](_0x2f5bb4),_0x386354=_0x2f5bb4['item']['getAttribute'](_0x17abd7);_0x4c4472['delete'](_0x386354),_0x386354>=this['_startingRevisionId']&&_0x4eb453['set'](_0x386354,_0x53ea7d['get'](_0x386354));}}for(const _0x431d78 of _0x1cd248){const _0x5678f9=_0x4930d9['insertions'][_0x431d78],_0x1b2d43=this['_getBaseVids'](_0x4930d9['deletions'][_0x431d78]);let _0x27b50f=0x0;for(const _0x207844 of _0x5678f9){const _0x3c105e=this['_getVidAttributeName'](_0x207844),_0x1b692f=_0x207844['item']['getAttribute'](_0x3c105e);if(!_0x4eb453['has'](_0x1b692f)&&!_0xb74001['has'](_0x1b692f)){if(_0x4c4472['has'](_0x1b692f))_0x27b50f++;else{if(_0x1b692f!=_0x1b2d43[_0x27b50f]){const _0x55aef2=_0x53ea7d['get'](_0x1b692f)||_0x53ea7d['get'](_0x1b2d43[_0x27b50f]);for(;_0x1b692f!=_0x1b2d43[_0x27b50f];)_0x4c4472['has'](_0x1b2d43[_0x27b50f])||(_0xb74001['set'](_0x1b2d43[_0x27b50f],_0x55aef2),_0x53ea7d['set'](_0x1b2d43[_0x27b50f],_0x55aef2)),_0x27b50f++;}_0x27b50f++;}}}}for(const _0x4ccdef of _0x1cd248){const _0x3df29c=_0x4930d9['insertions'][_0x4ccdef];for(const _0x44ec45 of _0x3df29c){const _0x719f56=this['_getVidAttributeName'](_0x44ec45),_0x28fca8=_0x44ec45['item']['getAttribute'](_0x719f56);if(_0xb74001['has'](_0x28fca8)){const _0x495d22=_0xb74001['get'](_0x28fca8);_0x4c4472['has'](_0x28fca8)||_0x4c4472['set'](_0x28fca8,{..._0x495d22}),_0x4eb453['set'](_0x28fca8,{..._0x495d22});}}}for(const _0x4a13df of _0x4c4472['keys']())_0x4a13df>=this['_startingRevisionId']&&_0x4c4472['delete'](_0x4a13df);const _0x5ed1b8=new Map();for(const _0x5a7b81 of _0x1cd248){let _0x3abc22=_0x4930d9['insertions'][_0x5a7b81];for(const _0x1ad5c0 of _0x3abc22)if(_0x1ad5c0['item']['is']('element','tableCell')){const _0x1ed19e=this['_getVidAttributeName'](_0x1ad5c0),_0x37b339=_0x1ad5c0['item']['getAttribute'](_0x1ed19e);if(_0x4eb453['has'](_0x37b339)){const _0x35ee11=_0x1ad5c0['item']['parent']['parent']['getAttribute']('vid_start'),_0x28d460=_0x5ed1b8['get'](_0x35ee11)||new Set();_0x28d460['add'](_0x4eb453['get'](_0x37b339)['userId']),_0x5ed1b8['set'](_0x35ee11,_0x28d460);}}_0x3abc22=_0x4930d9['deletions'][_0x5a7b81];for(const _0x2533bf of _0x3abc22)if(_0x2533bf['item']['is']('element','tableCell')){const _0x2b1e27=this['_getVidAttributeName'](_0x2533bf),_0x720039=_0x2533bf['item']['getAttribute'](_0x2b1e27);if(_0x4c4472['has'](_0x720039)){const _0x55bd4c=_0x2533bf['item']['parent']['parent']['getAttribute']('vid_start'),_0x41c9fd=_0x5ed1b8['get'](_0x55bd4c)||new Set();_0x41c9fd['add'](_0x4c4472['get'](_0x720039)['userId']),_0x5ed1b8['set'](_0x55bd4c,_0x41c9fd);}}for(const _0xc3deb2 of _0x5ed1b8['keys']())(_0x4eb453['has'](_0xc3deb2)||_0x4c4472['has'](_0xc3deb2))&&_0x5ed1b8['delete'](_0xc3deb2);}for(const _0x4ec75c of _0x1cd248){const _0x2da362=_0x4930d9['insertions'][_0x4ec75c];let _0x5e91c3=null,_0x2d84cb=null;for(const _0x391642 of _0x2da362){const _0x45860b=this['_getVidAttributeName'](_0x391642),_0x3cc977=_0x391642['item']['getAttribute'](_0x45860b),_0x2b369c=_0x5ed1b8['get'](_0x3cc977);_0x2b369c&&'elementStart'==_0x391642['type']&&(_0x5e91c3=Array['from'](_0x2b369c)[0x0],_0x2d84cb=_0x391642['item']['getAttribute']('vid_end')),_0x5e91c3&&(_0x4c4472['set'](_0x3cc977,{'userId':_0x5e91c3}),_0x4eb453['set'](_0x3cc977,{'userId':_0x5e91c3})),_0x3cc977==_0x2d84cb&&(_0x5e91c3=null,_0x2d84cb=null);}}const _0x8212ad={},_0x28cdc5=new Set();for(const _0x51f2bd of _0x1cd248){const _0x439038=_0x1c1f63['deletions'][_0x51f2bd],_0x3173a2=_0x1c1f63['insertions'][_0x51f2bd];for(const {userId:_0x6d21de}of this['_touchedMarkers']['values']())null!==_0x6d21de&&_0x28cdc5['add'](_0x6d21de);for(const {userId:_0x1e078f}of this['_touchedRoots']['values']())null!==_0x1e078f&&_0x28cdc5['add'](_0x1e078f);this['_markChanges'](_0x3173a2,_0x4930d9['insertions'][_0x51f2bd],_0x4eb453,'insertion',_0x28cdc5),this['_markChanges'](_0x439038,_0x4930d9['deletions'][_0x51f2bd],_0x4c4472,'deletion',_0x28cdc5),_0x8212ad[_0x51f2bd]={'insertions':this['_prepareViewToSave'](_0x3173a2),'deletions':this['_prepareViewToSave'](_0x439038),'attachChange':this['_touchedRoots']['get'](_0x51f2bd)||null,'attributesBefore':_0x18d51f(this['_baseRootsAttributes']['get'](_0x51f2bd))||{},'attributesAfter':_0x18d51f(this['_diffRootsAttributes']['get'](_0x51f2bd))};}return{'diffData':_0x8212ad,'authorsIds':Array['from'](_0x28cdc5)};}['_processRootBeforeSave'](_0x3bed1a){for(const [,_0x4156de]of _0x3bed1a['markers']){const _0x57e0ab=_0x4156de['start']['getAncestors']()['filter'](_0x5764bc=>'tableCell'==_0x5764bc['name']);for(const _0x1bb38c of _0x57e0ab)0x1==_0x1bb38c['childCount']&&_0x1bb38c['getChild'](0x0)['is']('element','paragraph')&&_0x1bb38c['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0xa74e53){this['_processRootBeforeSave'](_0xa74e53);const _0x3f6c15=this['editor']['data']['toView'](_0xa74e53,{}),_0x519908=Array['from'](_0x3f6c15['getChildren']())['map'](_0x3f6692=>this['_getViewJson'](_0x3f6692));return JSON['stringify'](_0x519908);}['_getViewJson'](_0x5f08f0){if(_0x5f08f0['is']('$text'))return _0x5f08f0['data'];{const _0x451b33=_0x5f08f0;return{'type':Object['keys'](P)['find'](_0xe83401=>_0x5f08f0 instanceof P[_0xe83401]),'name':_0x451b33['name'],'attributes':Array['from'](_0x451b33['getAttributes']()),'children':Array['from'](_0x451b33['getChildren']())['map'](_0x1cf464=>this['_getViewJson'](_0x1cf464))};}}['_markChanges'](_0x48a504,_0x47a395,_0x9544ba,_0x1845a5,_0x5dd1b4){let _0x516f2c=null,_0xca09f5=null,_0x151c5e=0x0;const _0xa62e1d=this['editor']['model'];for(let _0x1aaab5=0x0;_0x1aaab5<_0x47a395['length'];_0x1aaab5++){const _0x5e3695=this['_getVidAttributeName'](_0x47a395[_0x1aaab5]),_0x117957=_0x47a395[_0x1aaab5]['item']['getAttribute'](_0x5e3695),_0x411d87=_0x9544ba['get'](_0x117957),_0xe4257d=_0x1aaab5==_0x47a395['length']-0x1;(!_0x516f2c&&_0x411d87&&(_0x516f2c=_0x411d87,_0xca09f5=_0x47a395[_0x1aaab5]),_0x516f2c&&(!_0x411d87||_0x411d87['userId']!=_0x516f2c['userId']))&&(_0x1a15bc(_0x411d87,B(_0xca09f5,_0x48a504,_0xa62e1d),B(_0x47a395[_0x1aaab5],_0x48a504,_0xa62e1d)),_0x516f2c=_0x411d87||null,_0xca09f5=_0x411d87?_0x47a395[_0x1aaab5]:null),_0x516f2c&&_0xe4257d&&_0x1a15bc(_0x411d87,B(_0xca09f5,_0x48a504,_0xa62e1d),J(_0x47a395[_0x1aaab5],_0x48a504,_0xa62e1d));}function _0x1a15bc(_0x19aeea,_0x5a51f7,_0xc49291){const _0x255526=_0x516f2c['userId'],_0x5a0967='revision:'+_0x1845a5+':'+_0x255526+':'+_0x151c5e++,_0x113fc2=_0xa62e1d['createRange'](_0x5a51f7,_0xc49291);_0x48a504['markers']['set'](_0x5a0967,_0x113fc2),null!==_0x255526&&_0x5dd1b4['add'](_0x255526);}}['_getVidAttributeName'](_0x1e71db){switch(_0x1e71db['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x44e9a0,_0x47a5a6){_0x44e9a0['baseVersion']=null;for(const _0x49e0a7 in _0x44e9a0){const _0xffb405=_0x44e9a0[_0x49e0a7];if(_0xffb405 instanceof gt){const _0x14da3a=_0x47a5a6['get'](_0xffb405['root']['rootName']);_0x44e9a0[_0x49e0a7]=this['_fixPosition'](_0xffb405,_0x14da3a);}if(_0xffb405 instanceof vt){const _0x1bc8ff=_0x47a5a6['get'](_0xffb405['root']['rootName']);_0x44e9a0[_0x49e0a7]=this['_fixRange'](_0xffb405,_0x1bc8ff);}'root'===_0x49e0a7&&(_0x44e9a0['root']=_0x47a5a6['get'](_0x44e9a0['root']['rootName']));}}['_fixRange'](_0x147c62,_0x43c8d4){return this['editor']['model']['createRange'](this['_fixPosition'](_0x147c62['start'],_0x43c8d4),this['_fixPosition'](_0x147c62['end'],_0x43c8d4));}['_fixPosition'](_0x280740,_0x5b190f){return this['editor']['model']['createPositionFromPath'](_0x5b190f,_0x280740['path'],_0x280740['stickiness']);}['_handleInsertOperation'](_0xe0c0e0){const _0x5d377f=this['_idsRoots']['get'](_0xe0c0e0['position']['root']['rootName']),_0x3596ca=this['_fixPosition'](_0xe0c0e0['position'],_0x5d377f),_0x2bdeb9=null===_0xe0c0e0['_authorId']?null:_0xe0c0e0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x340d2b=_0x3596ca['parent'],_0xf42a9f=this['_revisionId'],_0x2f32bc=[];for(const _0x5c18d3 of _0xe0c0e0['nodes'])if(_0x5c18d3['is']('element'))_0x2f32bc['push'](this['_makeIdsRoot'](_0x5c18d3));else{for(let _0x3e296d=0x0;_0x3e296d<_0x5c18d3['offsetSize'];_0x3e296d++)_0x2f32bc['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x350b61=this['_revisionId'];for(let _0x5a09fc=_0xf42a9f;_0x5a09fc<_0x350b61;_0x5a09fc++)this['_touched']['set'](_0x5a09fc,{'userId':_0x2bdeb9});_0x340d2b['_insertChild'](_0x3596ca['offset'],_0x2f32bc);}['_handleMoveOperation'](_0x268baf){(_0x268baf=this['_cloneOperation'](_0x268baf,this['_idsRoots']))['_execute']();const _0x56ee94=null===_0x268baf['_authorId']?null:_0x268baf['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x342c52=_0x268baf['getMovedRangeStart'](),_0x17cc25=_0x342c52['parent'],_0x200b8d=_0x342c52['offset'];!function _0x39e6df(_0xd73fe6,_0x414544,_0x1e1b62,_0x35f43f){for(let _0x1b900b=_0x1e1b62;_0x1b900b<_0x35f43f;_0x1b900b++){const _0x4709ac=_0x414544['getChild'](_0x1b900b);_0x4709ac['is']('element','$text')?_0xd73fe6['set'](_0x4709ac['getAttribute']('vid'),{'userId':_0x56ee94}):(_0xd73fe6['set'](_0x4709ac['getAttribute']('vid_start'),{'userId':_0x56ee94}),_0x39e6df(_0xd73fe6,_0x4709ac,0x0,_0x4709ac['childCount']),_0xd73fe6['set'](_0x4709ac['getAttribute']('vid_end'),{'userId':_0x56ee94}));}}(this['_touched'],_0x17cc25,_0x200b8d,_0x200b8d+_0x268baf['howMany']);}['_handleMergeOperation'](_0x35262f){const _0x223e97=null===(_0x35262f=this['_cloneOperation'](_0x35262f,this['_idsRoots']))['_authorId']?null:_0x35262f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x180bf7=_0x35262f['targetPosition']['parent'],_0x3f7186=_0x35262f['sourcePosition']['parent'],_0x28542b=_0x180bf7['getAttribute']('vid_end'),_0x2877c3=_0x3f7186['getAttribute']('vid_start');_0x180bf7['_setAttribute']('vid_end',_0x3f7186['getAttribute']('vid_end')),_0x3f7186['_setAttribute']('vid_end',_0x28542b),this['_touched']['set'](_0x2877c3,{'userId':_0x223e97}),this['_touched']['set'](_0x28542b,{'userId':_0x223e97}),_0x35262f['_execute']();}['_handleSplitOperation'](_0x476fd4){const _0x55081b=null===(_0x476fd4=this['_cloneOperation'](_0x476fd4,this['_idsRoots']))['_authorId']?null:_0x476fd4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x12e9b6=_0x476fd4['graveyardPosition'],_0x5a8568=_0x476fd4['splitPosition']['parent'];_0x476fd4['_execute']();const _0x5c26c2=_0x5a8568['getAttribute']('vid_end'),_0x5b2475=_0x476fd4['insertionPosition']['nodeAfter'];if(_0x12e9b6){const _0x5c2c3a=_0x5b2475['getAttribute']('vid_end'),_0x82e084=_0x5a8568['getAttribute']('vid_end');_0x5a8568['_setAttribute']('vid_end',_0x5c2c3a),_0x5b2475['_setAttribute']('vid_end',_0x82e084),this['_touched']['set'](_0x5a8568['getAttribute']('vid_end'),{'userId':_0x55081b}),this['_touched']['set'](_0x5b2475['getAttribute']('vid_start'),{'userId':_0x55081b});}else{const _0xb2b369=this['_revisionId']++,_0x297102=this['_revisionId']++;_0x5a8568['_setAttribute']('vid_end',_0xb2b369),_0x5b2475['_setAttribute']('vid_start',_0x297102),_0x5b2475['_setAttribute']('vid_end',_0x5c26c2),this['_touched']['set'](_0xb2b369,{'userId':_0x55081b}),this['_touched']['set'](_0x297102,{'userId':_0x55081b});}}['_handleMarkerOperation'](_0x8326e5){if(!_0x8326e5['affectsData'])return;const _0x55e7fc=(_0x8326e5=this['_cloneOperation'](_0x8326e5,this['_diffRoots']))['oldRange']?_0x8326e5['oldRange']['root']:null,_0x5f1011=_0x8326e5['newRange']?_0x8326e5['newRange']['root']:null;_0x55e7fc&&this['_markers']['delete'](_0x8326e5['name']),_0x5f1011&&this['_markers']['set'](_0x8326e5['name'],_0x8326e5['newRange']['clone']());const _0x5dadcd=null===_0x8326e5['_authorId']?null:_0x8326e5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x50daed=_0x8326e5['name'];if(!this['_touchedMarkers']['has'](_0x50daed))return void this['_touchedMarkers']['set'](_0x50daed,{'range':_0x8326e5['oldRange'],'userId':_0x5dadcd});const _0x24142b=this['_touchedMarkers']['get'](_0x50daed),_0x597f6d=_0x24142b['range'],_0x29b157=_0x8326e5['newRange'];null==_0x597f6d&&null==_0x29b157||_0x597f6d&&_0x29b157&&_0x597f6d['isEqual'](_0x29b157)?this['_touchedMarkers']['delete'](_0x8326e5['name']):_0x24142b['userId']=_0x5dadcd;}['_handleRootOperation'](_0x22c5c8,_0x4511c4){this['_diffRoots']['has'](_0x22c5c8['rootName'])?this['_diffRoots']['get'](_0x22c5c8['rootName'])['_isAttached']=_0x22c5c8['isAdd']:(this['_diffRoots']['set'](_0x22c5c8['rootName'],F(_0x22c5c8['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x22c5c8['rootName'],{}),_0x4511c4&&this['_idsRoots']['set'](_0x22c5c8['rootName'],F(_0x22c5c8['rootName'],!0x0)));const _0x57f2d0=null===_0x22c5c8['_authorId']?null:_0x22c5c8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x45cc71=this['_touchedRoots']['get'](_0x22c5c8['rootName']);_0x45cc71&&_0x45cc71['userId']===_0x57f2d0?this['_touchedRoots']['delete'](_0x22c5c8['rootName']):this['_touchedRoots']['set'](_0x22c5c8['rootName'],{'userId':_0x57f2d0,'isAttached':_0x22c5c8['isAdd']});}['_handleRootAttributeOperation'](_0x38cb2d){const _0x5d003e=this['_diffRootsAttributes']['get'](_0x38cb2d['root']['rootName']);null===_0x38cb2d['newValue']?delete _0x5d003e[_0x38cb2d['key']]:_0x5d003e[_0x38cb2d['key']]=_0x38cb2d['newValue'];}}function T(_0x16e85c){const _0x6b54dc=F(_0x16e85c['rootName'],_0x16e85c['isAttached']());for(const _0x228d8f of _0x16e85c['getChildren']()){const _0xb8b268=_0x228d8f['_clone'](!0x0);_0x6b54dc['_appendChild'](_0xb8b268);}return _0x6b54dc;}function F(_0x43171e,_0x1d7f82=!0x0){const _0x14867d=new mt();return _0x14867d['rootName']=_0x43171e,_0x14867d['_isAttached']=_0x1d7f82,_0x14867d['isAttached']=()=>_0x14867d['_isAttached'],_0x14867d;}function B(_0x275ab1,_0xd65c70,_0x23e658){const _0x4268d8='elementEnd'==_0x275ab1['type']?_0x23e658['createPositionAt'](_0x275ab1['item'],'end'):_0x23e658['createPositionBefore'](_0x275ab1['item']);return _0x23e658['createPositionFromPath'](_0xd65c70,_0x4268d8['path'],_0x4268d8['stickiness']);}function J(_0x4a5fbd,_0x265ab4,_0x2e0553){const _0x2d24e8='elementStart'==_0x4a5fbd['type']?_0x2e0553['createPositionAt'](_0x4a5fbd['item'],0x0):_0x2e0553['createPositionAfter'](_0x4a5fbd['item']);return _0x2e0553['createPositionFromPath'](_0x265ab4,_0x2d24e8['path'],_0x2d24e8['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x1af007,_0x1cf53b){super(_0x1af007),this['focusTracker']=new _0x45e94e(),this['keystrokes']=new _0x27726f(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x1cf53b),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x5305fa(this);}['render'](){super['render'](),_0x44028f({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x15ba1f=_0x44fcb3=>_0x44fcb3['stopPropagation']();this['keystrokes']['set']('arrowright',_0x15ba1f),this['keystrokes']['set']('arrowleft',_0x15ba1f),this['keystrokes']['set']('arrowup',_0x15ba1f),this['keystrokes']['set']('arrowdown',_0x15ba1f);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x3c5838){this['revisionNameInputView']['fieldView']['element']['value']=_0x3c5838['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x333879){const _0x20b914=new _0x149fcb(this['locale'],_0x134a02),_0xc28bea=_0x20b914['fieldView'];_0xc28bea['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x1539d3=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x333879&&(_0x1539d3+='\x20('+m(this['locale'],'optional')+')'),(_0x20b914['label']=_0x1539d3,_0xc28bea['on']('input',()=>{this['revisionNameInputValue']=_0xc28bea['element']['value']['trim']();}),_0x20b914);}}class u extends _0x3bebb5{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x28a00e=this['editor'],_0x36c253=_0x28a00e['plugins']['get']('RevisionTracker');_0x28a00e['ui']['componentFactory']['add']('revisionHistory',_0x500c54=>{const _0x1c8064=_0x20bc7e(_0x500c54),_0x30ea45=_0x1c8064['panelView']['children'],_0x54af4d=new _0x2db0e6(_0x500c54),_0x2963e6=new _0x20c2ba(_0x500c54),_0x82a6d6=new te(_0x500c54),_0x5cd34b=new _0x20c2ba(_0x500c54),_0x4fa00f=new te(_0x500c54);return _0x1c8064['bind']('isEnabled')['to'](_0x36c253,'isReady',_0x36c253,'isEnabled',_0x28a00e,'isReadOnly',(_0xc00f9,_0x4d684d,_0x1c12e3)=>_0xc00f9&&_0x4d684d&&!_0x1c12e3),_0x1c8064['buttonView']['set']({'icon':_0x3c7ca0['history'],'label':m(_0x500c54,'Revision\x20history'),'tooltip':!0x0}),_0x82a6d6['set']({'label':m(_0x500c54,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x82a6d6['bind']('isEnabled')['to'](_0x36c253,'isReady',_0x36c253,'isEnabled',_0x28a00e,'isReadOnly',(_0xd2416a,_0x34bdc3,_0x26d019)=>_0xd2416a&&_0x34bdc3&&!_0x26d019),_0x82a6d6['on']('execute',()=>this['_showDialog']()),_0x4fa00f['set']({'label':m(_0x500c54,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x4fa00f['bind']('isEnabled')['to'](_0x36c253,'isReady',_0x28a00e,'isReadOnly',(_0x55c2cb,_0x5ec832)=>_0x55c2cb&&!_0x5ec832),_0x4fa00f['on']('execute',()=>{_0x28a00e['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x1c8064['isOpen']=!0x1,_0x28a00e['editing']['view']['focus']();}),_0x2963e6['children']['add'](_0x82a6d6),_0x5cd34b['children']['add'](_0x4fa00f),_0x54af4d['role']='menu',_0x54af4d['items']['addMany']([_0x2963e6,_0x5cd34b]),_0x30ea45['add'](_0x54af4d),_0x1c8064;}),_0x28a00e['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x2a8290=this['editor'],_0x3b97fe=_0x2a8290['locale'],_0x2c84a6=new _0x588f7a(_0x3b97fe),_0x4d0b94=new _0x11f451(_0x3b97fe);_0x2c84a6['buttonView']['set']({'icon':_0x3c7ca0['history'],'label':m(_0x3b97fe,'Revision\x20history')});const _0xee8604=new _0x5a1e1e(_0x3b97fe,_0x2c84a6),_0x353fb6=new _0x5d1b37(_0x3b97fe);_0x353fb6['set']({'label':m(_0x3b97fe,'Save\x20current\x20revision')}),_0x353fb6['delegate']('execute')['to'](_0x2c84a6),_0x353fb6['on']('execute',()=>{this['_showDialog']();}),_0xee8604['children']['add'](_0x353fb6),_0x4d0b94['items']['add'](_0xee8604);const _0xaf0d1c=new _0x5a1e1e(_0x3b97fe,_0x2c84a6),_0xcde28f=new _0x5d1b37(_0x3b97fe);return _0xcde28f['set']({'label':m(_0x3b97fe,'Open\x20revision\x20history')}),_0xcde28f['delegate']('execute')['to'](_0x2c84a6),_0xcde28f['on']('execute',()=>{_0x2a8290['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0xaf0d1c['children']['add'](_0xcde28f),_0x4d0b94['items']['add'](_0xaf0d1c),_0x2c84a6['panelView']['children']['add'](_0x4d0b94),_0x2c84a6;}['_showDialog'](){const _0x1104df=this['editor'],_0x19535c=_0x1104df['locale'],_0x3a002c=_0x1104df['plugins']['get']('Dialog'),_0x5edf9d=_0x1104df['plugins']['get']('RevisionTracker');function _0x7044c(_0x946ae8){_0x1104df['config']['get']('revisionHistory.requireRevisionName')&&''===_0x946ae8['revisionName']?_0x946ae8['revisionNameInputView']['errorText']=m(_0x19535c,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x1104df['plugins']['get'](l)['saveRevision']({'name':_0x946ae8['revisionName']}),_0x3a002c['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x7044c(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x3a002c['show']({'id':'revisionSave','title':m(_0x19535c,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x1104df['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x3a002c['hide']()},{'label':m(_0x1104df['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x94b6f3){_0x94b6f3['bind']('isEnabled')['to'](_0x5edf9d,'isReady',_0x5edf9d,'isEnabled',_0x1104df,'isReadOnly',(_0x3960b9,_0x45a231,_0x56575b)=>_0x3960b9&&_0x45a231&&!_0x56575b);},'onExecute':()=>_0x7044c(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x578ea7=this['editor'],_0x36fe70=_0x578ea7['locale'];this['_saveRevisionFormView']=new hs(_0x36fe70,_0x578ea7['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends ts{['changeId'];['_model'];constructor(_0x2341b8,_0x250e83){super(_0x2341b8),this['_model']=_0x250e83,this['changeId']=_0x250e83['id'];const _0x48ee8c=this['bindTemplate'],_0x342775=m(_0x2341b8,_0x250e83['data']['isSuggestion']?'Suggested\x20by':'add'==_0x250e83['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x250e83['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x48ee8c['to']('type',_0x3b18cb=>'ck-revision-change__'+_0x3b18cb)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x342775}]},{'text':'\x20'+_0x250e83['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x207e02(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x12bf34){super(),this['id']=_0x12bf34['id']||_0x2f8e68(),this['author']=_0x12bf34['author'],this['type']=_0x12bf34['type'],this['data']=_0x12bf34['data']||{},this['rootName']=_0x12bf34['rootName'],this['set']('createdAt',_0x12bf34['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(_0x139e11,_0x4ceded){this['newRevisionId']=_0x139e11,this['oldRevisionId']=_0x4ceded,this['changes']=new _0x4898c5();}['_setChanges'](_0x38bd28){for(const _0x3c4e01 of _0x38bd28)this['changes']['add'](_0x3c4e01);}}const Y={'c':_0x563b67,'a':_0x5b84e1,'e':_0x4600ee,'r':_0x2bd2bb,'u':_0x173c83};class d extends _0x3bebb5{['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[_0x46cb99,_0xf65c01,j];}constructor(_0x34f171){super(_0x34f171),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',(_0x17806c,_0x596ce1,_0x3657e7)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x593145=>{for(const _0x2c1e35 of this['editor']['editing']['view']['document']['roots'])_0x3657e7?_0x593145['removeClass']('ck-editor__editable__overlay',_0x2c1e35):_0x593145['addClass']('ck-editor__editable__overlay',_0x2c1e35);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x30fbab=>null!==_0x30fbab),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x38ce41,_0x7555e8,_0x1f9224)=>_0x38ce41&&_0x1f9224?_0x7555e8['changes']['getIndex'](_0x1f9224):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x4967e0,_0x4cf4ff)=>_0x4967e0?_0x4cf4ff['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0xf65c01);}['init'](){const _0x5487cf=this['editor'],_0x5c6f6f=new _t(_0x5487cf,{'direction':'backward'}),_0x2ffb57=new _t(_0x5487cf,{'direction':'forward'});(_0x5487cf['commands']['add']('showPreviousChange',_0x5c6f6f),_0x5487cf['commands']['add']('showNextChange',_0x2ffb57),_0x5487cf['commands']['add']('restoreRevision',new pt(_0x5487cf)),this['on']('change:numberOfChanges',()=>{_0x5c6f6f['refresh'](),_0x2ffb57['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x5487cf['enableReadOnlyMode']('revision-viewer'),_0x5487cf['plugins']['has']('WidgetToolbarRepository'))&&_0x5487cf['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x4eea28){await this['loadRevisionData'](_0x4eea28);const _0x34da6b={};for(const _0x52c0a4 in _0x4eea28['diffData']){if(_0x4eea28['diffData'][_0x52c0a4]['attachChange']&&!_0x4eea28['diffData'][_0x52c0a4]['attachChange']['isAttached'])continue;const _0x53be98=this['_removeRevisionMarkers'](JSON['parse'](_0x4eea28['diffData'][_0x52c0a4]['insertions'])),_0xee1d3e=this['editor']['editing']['view']['document'],_0x1fa078=new _0x296182(_0xee1d3e,_0x53be98['map'](_0x511835=>this['_getViewObj'](_0x511835)));this['editor']['data']['processor']['useFillerType']('marked'),_0x34da6b[_0x52c0a4]=this['editor']['data']['processor']['toData'](_0x1fa078),this['editor']['data']['processor']['useFillerType']('default');}return _0x34da6b;}async['getRevisionRootsAttributes'](_0x5acd38){await this['loadRevisionData'](_0x5acd38);const _0x3c2adb={};for(const _0x415f8c in _0x5acd38['diffData'])_0x5acd38['diffData'][_0x415f8c]['attachChange']&&!_0x5acd38['diffData'][_0x415f8c]['attachChange']['isAttached']||(_0x3c2adb[_0x415f8c]=_0x5acd38['diffData'][_0x415f8c]['attributesAfter']||{});return _0x3c2adb;}['_removeRevisionMarkers'](_0x31826f){return(_0x31826f=_0x31826f['filter'](_0x526e8a=>!_0x526e8a['name']||'revision-start'!==_0x526e8a['name']&&'revision-end'!==_0x526e8a['name']))['forEach'](_0x34e63b=>{'string'!=typeof _0x34e63b&&(_0x34e63b['children']=this['_removeRevisionMarkers'](_0x34e63b['children']),_0x34e63b['attributes']=_0x34e63b['attributes']['filter'](_0x3685fd=>!_0x3685fd[0x0]['startsWith']('data-revision-')));}),_0x31826f;}async['compare'](_0x2f4feb,_0x82f032,_0x2eedc5=!0x1){if(!this['isEnabled'])return;const _0x35e9be=this['diff'],_0xef1338=this['repository'],_0x13b9f4='string'==typeof _0x2f4feb?_0xef1338['getRevision'](_0x2f4feb):_0x2f4feb,_0xe16215='string'==typeof _0x82f032?_0xef1338['getRevision'](_0x82f032):_0x82f032,_0xe063a9=_0x13b9f4['id'],_0x5b82b5=_0xe16215?_0xe16215['id']:null;if(!_0x2eedc5&&this['diff']&&this['diff']['newRevisionId']===_0xe063a9&&this['diff']['oldRevisionId']===_0x5b82b5)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0xe063a9,_0x5b82b5);const _0x23c2ad=this['_getRevisionsRange'](_0x13b9f4,_0xe16215,!0x0)['map'](_0x558731=>this['loadRevisionData'](_0x558731));return _0x23c2ad['push'](new Promise(_0x3c4094=>{setTimeout(_0x3c4094,0x14);})),Promise['all'](_0x23c2ad)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x2f2cd8=this['_getDiff'](_0xe063a9,_0x5b82b5);for(const _0x21f218 of _0x2f2cd8['changes'])this['_changeIdToChange']['set'](_0x21f218['id'],_0x21f218);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x4fe477=>{for(const _0x43834d of this['editor']['model']['document']['getRootNames']())_0x4fe477['detachRoot'](_0x43834d);for(const _0x36847f of Object['keys'](_0x2f2cd8['model'])){const _0x5e5451=_0x4fe477['addRoot'](_0x36847f);for(const _0x22130b of Object['keys'](_0x2f2cd8['attributes'][_0x36847f]))_0x4fe477['setAttribute'](_0x22130b,_0x2f2cd8['attributes'][_0x36847f][_0x22130b],_0x5e5451);_0x4fe477['insert'](_0x2f2cd8['model'][_0x36847f],_0x5e5451,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x2f2cd8['changes'])),this['isReady']=!0x0;})['catch'](_0xd297e4=>{console['error'](_0xd297e4),this['_cleanUp'](),_0x35e9be&&(this['diff']=_0x35e9be),this['isReady']=!0x0;});}['addRevisionData'](_0x4cab8a,_0x53e6c2){const _0x1a7070=this['repository']['createRevision'](_0x4cab8a);return _0x1a7070['on']('_update',(_0x4292ff,_0x3b891c,_0x115ddb)=>_0x53e6c2(_0x3b891c,_0x115ddb,_0x1a7070)),this['repository']['addRevision'](_0x1a7070),_0x1a7070;}['loadRevisionData'](_0x5e7bc6){if(!_0x5e7bc6||_0x5e7bc6['diffData'])return Promise['resolve']();{const _0x53c183=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x53c183,'revisionId':_0x5e7bc6['id']})['then'](_0x56d871=>{_0x5e7bc6['_update']({'diffData':_0x56d871['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},_0xaf47bf=>{for(const _0x185109 of this['editor']['model']['document']['getRootNames']())_0xaf47bf['detachRoot'](_0x185109);});}['_sortAndFilterDiffChanges'](_0x1db5ee){const _0x4ba9f2=[],_0x16c1ed=new Map();for(const _0x596063 of this['editor']['model']['document']['getRootNames']()){const _0x213f34=this['editor']['editing']['view']['getDomRoot'](_0x596063);if(!_0x213f34)continue;const _0x3c6644=_0x213f34['getClientRects']()['item'](0x0);_0x3c6644&&(_0x4ba9f2['push'](_0x596063),_0x16c1ed['set'](_0x596063,_0x3c6644));}return _0x4ba9f2['sort']((_0x316409,_0x38e92a)=>{const _0x372193=_0x16c1ed['get'](_0x316409),_0x45cc11=_0x16c1ed['get'](_0x38e92a);return _0x372193['y']-_0x45cc11['y']||_0x372193['x']-_0x45cc11['x'];}),(_0x1db5ee=_0x1db5ee['filter'](_0x52ecef=>_0x4ba9f2['includes'](_0x52ecef['rootName'])))['sort']((_0xe8a0b9,_0x4ddf62)=>_0x4ba9f2['indexOf'](_0xe8a0b9['rootName'])-_0x4ba9f2['indexOf'](_0x4ddf62['rootName'])),_0x1db5ee;}['_makeTape'](_0x39e778){const _0xcfa033=Array['from'](_0x39e778['markers'])['filter'](([_0x5ac136,_0x19b57c])=>_0x5ac136['startsWith']('revision:')&&!_0x19b57c['isCollapsed']),_0x9a5963=Array['from'](this['editor']['model']['createRangeIn'](_0x39e778)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0xcfa033['length'])for(const _0x4a74f0 of _0x9a5963){const [_0x49bb5e,_0x39f7b9]=_0xcfa033[0x0],[,_0x246d63,_0x59b990]=_0x49bb5e['split'](':');if(_0x39f7b9['end']['isEqual'](_0x4a74f0['nextPosition'])&&_0xcfa033['shift'](),(_0x4a74f0['previousPosition']['isEqual'](_0x39f7b9['start'])||_0x4a74f0['previousPosition']['isAfter'](_0x39f7b9['start']))&&('insertion'==_0x246d63?_0x4a74f0['isAdded']={'userId':_0x59b990}:'deletion'==_0x246d63&&(_0x4a74f0['isRemoved']={'userId':_0x59b990})),0x0==_0xcfa033['length'])break;}return _0x9a5963;}['_refreshStartEndIndex'](_0x446eca){const _0x26ac6d=new Map();for(let _0x15d5fc=0x0;_0x15d5fc<_0x446eca['length'];_0x15d5fc++)'text'===_0x446eca[_0x15d5fc]['type']?(_0x446eca[_0x15d5fc]['item']['startIndex']=_0x15d5fc,_0x446eca[_0x15d5fc]['item']['endIndex']=_0x15d5fc):('elementStart'===_0x446eca[_0x15d5fc]['type']?_0x446eca[_0x15d5fc]['item']['startIndex']=_0x15d5fc:'elementEnd'===_0x446eca[_0x15d5fc]['type']&&(_0x446eca[_0x15d5fc]['item']['endIndex']=_0x15d5fc),_0x26ac6d['set'](_0x446eca[_0x15d5fc]['id'],_0x15d5fc));for(const _0x24cb2e of _0x26ac6d['values']())'elementStart'===_0x446eca[_0x24cb2e]['type']?_0x446eca[_0x24cb2e]['item']['endIndex']=_0x26ac6d['get'](_0x446eca[_0x24cb2e]['pairId']):'elementEnd'===_0x446eca[_0x24cb2e]['type']&&(_0x446eca[_0x24cb2e]['item']['startIndex']=_0x26ac6d['get'](_0x446eca[_0x24cb2e]['pairId']));}['_processTape'](_0x477ce6){for(let _0x182d69=0x0;_0x182d69<_0x477ce6['length'];_0x182d69++){if('elementStart'===_0x477ce6[_0x182d69]['type'])_0x477ce6[_0x182d69]['item']['startIndex']=_0x182d69;else{if('elementEnd'===_0x477ce6[_0x182d69]['type']){_0x477ce6[_0x182d69]['item']['endIndex']=_0x182d69;const _0x15369f=_0x477ce6[_0x182d69]['item']['startIndex'];_0x477ce6[_0x15369f]['pairId']=_0x477ce6[_0x182d69]['id'],_0x477ce6[_0x182d69]['pairId']=_0x477ce6[_0x15369f]['id'];}else _0x477ce6[_0x182d69]['item']['startIndex']=_0x182d69,_0x477ce6[_0x182d69]['item']['endIndex']=_0x182d69,_0x477ce6[_0x182d69]['pairId']=null;}_0x477ce6[_0x182d69]['markersStart']||(_0x477ce6[_0x182d69]['markersStart']=[],_0x477ce6[_0x182d69]['markersEnd']=[]);}}['_markInsertions'](_0x5e5411,_0x1bfb54){const _0x406628=_0x5e5411['filter'](_0x150743=>!_0x150743['isAdded']);for(let _0xd8fca0=0x0;_0xd8fca0<_0x1bfb54['length'];_0xd8fca0++)_0x1bfb54[_0xd8fca0]['isAdded']&&(_0x406628[_0xd8fca0]['isAdded']=_0x1bfb54[_0xd8fca0]['isAdded']);}['_makeModelFromViewString'](_0x382e59){const _0x10b25a=JSON['parse'](_0x382e59),_0x4a66b6=this['editor']['editing']['view']['document'],_0x4414ef=new _0x296182(_0x4a66b6,_0x10b25a['map'](_0x47b7a7=>this['_getViewObj'](_0x47b7a7)));return this['editor']['data']['toModel'](_0x4414ef);}['_getViewObj'](_0x4f0f5e){const _0x143e41=this['editor']['editing']['view']['document'];if('string'==typeof _0x4f0f5e)return new _0x25df8a(_0x143e41,_0x4f0f5e);{const _0xeaae08=_0x4f0f5e['children']['map'](_0x265883=>this['_getViewObj'](_0x265883));return new(Y[_0x4f0f5e['type']]||_0x28a7ad)(_0x143e41,_0x4f0f5e['name'],_0x4f0f5e['attributes'],_0xeaae08);}}['_getDiff'](_0x47cc9a,_0x1ed75e=null){const _0x512ee1=this['repository']['getRevision'](_0x47cc9a),_0x4f26da=_0x1ed75e?this['repository']['getRevision'](_0x1ed75e):null,_0x1a40c0=this['_getRevisionsRange'](_0x512ee1,_0x4f26da),_0x3d678c=_0x1a40c0[_0x1a40c0['length']-0x1],_0x4fd7a1=new Map(),_0x17815b={'model':{},'attributes':{},'changes':[]},_0x45234b=new Set(),_0x1b2794=new Map();for(let _0x51c6fc=_0x1a40c0['length']-0x1;_0x51c6fc>=0x0;_0x51c6fc--){const _0x497652=_0x1a40c0[_0x51c6fc];for(const _0x5d99f4 of Object['keys'](_0x497652['diffData']))if(_0x497652['diffData'][_0x5d99f4]['attachChange']){const _0xb904ad=_0x497652['diffData'][_0x5d99f4]['attachChange'];_0xb904ad['isAttached']?(_0x45234b['add'](_0x5d99f4),_0x1b2794['has'](_0x5d99f4)&&_0x1b2794['get'](_0x5d99f4)['userId']==_0xb904ad['userId']?_0x1b2794['delete'](_0x5d99f4):_0x1b2794['set'](_0x5d99f4,_0xb904ad)):_0x1b2794['has'](_0x5d99f4)?(_0x45234b['delete'](_0x5d99f4),_0x1b2794['delete'](_0x5d99f4)):(_0x45234b['add'](_0x5d99f4),_0x1b2794['set'](_0x5d99f4,_0xb904ad));}else _0x45234b['add'](_0x5d99f4);}for(const _0x5b13db of _0x45234b){const _0x9440c9=_0x1b2794['has'](_0x5b13db)&&!_0x1b2794['get'](_0x5b13db)['isAttached'];let _0xab29e=_0x9440c9?_0x1a40c0['length']-0x1:0x0;const _0x5d2c55=_0x9440c9?-0x1:0x1;for(;_0x1a40c0[_0xab29e];){const _0x147964=_0x1a40c0[_0xab29e];if(_0x147964['diffData'][_0x5b13db]){const _0x143fc2=_0x9440c9?_0x147964['diffData'][_0x5b13db]['attributesBefore']:_0x147964['diffData'][_0x5b13db]['attributesAfter'];_0x17815b['attributes'][_0x5b13db]=_0x143fc2?_0x18d51f(_0x143fc2):{};break;}_0xab29e+=_0x5d2c55;}}for(const _0x3aedd9 of _0x1a40c0){_0x3aedd9['model']={};for(const _0x538838 of _0x3aedd9['authors'])_0x4fd7a1['set'](_0x538838['id'],_0x538838);for(const _0x1c2c19 of _0x45234b){const _0x23f225=_0x3aedd9['diffData'][_0x1c2c19]?_0x3aedd9['diffData'][_0x1c2c19]['insertions']:'[]',_0x3e030e=_0x3aedd9['diffData'][_0x1c2c19]?_0x3aedd9['diffData'][_0x1c2c19]['deletions']:'[]';_0x3aedd9['model'][_0x1c2c19]={'insertions':this['_makeModelFromViewString'](_0x23f225),'deletions':this['_makeModelFromViewString'](_0x3e030e)};}}for(const _0x30e9ab of _0x45234b){let _0x3a29a5=null,_0x293d65=0x0;const _0x29e573=new Map(Array['from'](_0x512ee1['model'][_0x30e9ab]['insertions']['markers'])['filter'](([_0x2b903f])=>!_0x2b903f['startsWith']('revision:')));let _0x541880=0x0;for(const _0x1ccd5f of _0x1a40c0){const _0x4cbd6d=this['_makeTape'](_0x1ccd5f['model'][_0x30e9ab]['insertions']);_0x1ccd5f==_0x512ee1?(_0x3a29a5=_0x4cbd6d,_0x293d65=_0x3a29a5['length'],_0x3a29a5['forEach'](_0x1285ea=>{_0x1285ea['id']=_0x541880++;}),this['_processTape'](_0x3a29a5)):this['_markInsertions'](_0x3a29a5,_0x4cbd6d);const _0x5278da=_0x3a29a5['filter'](_0x266672=>!_0x266672['isAdded'])['map'](_0x4983bc=>_0x4983bc['id']);let _0x3167c3=0x0;const _0x3a428f=this['_makeTape'](_0x1ccd5f['model'][_0x30e9ab]['deletions']);_0x3a428f['forEach'](_0x164c54=>{_0x164c54['isRemoved']?_0x164c54['id']=_0x293d65++:_0x164c54['id']=_0x5278da[_0x3167c3++];}),this['_processTape'](_0x3a428f),this['_setDistance'](_0x3a29a5,'isAdded'),this['_setDistance'](_0x3a428f,'isRemoved'),_0x1ccd5f==_0x512ee1&&this['_markMarkers'](_0x3a29a5,_0x29e573),_0x3a29a5=this['_joinTapes'](_0x3a29a5,_0x3a428f),this['_refreshStartEndIndex'](_0x3a29a5),this['_setDistance'](_0x3a29a5,'isRemoved');}_0x3a29a5=_0x3a29a5['filter'](_0x5723d6=>!(_0x5723d6['isAdded']&&_0x5723d6['isRemoved']));const _0x1a5dbc=new Map(_0x3d678c['model'][_0x30e9ab]['deletions']['markers']),_0x49ce45=new Set(_0x29e573['keys']());for(const _0x23bd31 of _0x1a5dbc['keys']())_0x49ce45['delete'](_0x23bd31);this['_markSuggestions'](_0x3a29a5,_0x49ce45),this['_fixObsoleteTags'](_0x3a29a5),_0x3a29a5=this['_removeMissingPairs'](_0x3a29a5),_0x3a29a5=this['_markMismatchedRemovedTags'](_0x3a29a5),_0x3a29a5=this['_removeUnsupportedChanges'](_0x3a29a5);const {root:_0x403ee1,changes:_0x472ce1}=this['_makeModelFromTape'](_0x3a29a5,_0x4fd7a1,_0x30e9ab);_0x17815b['model'][_0x30e9ab]=_0x403ee1;const _0x46e999=_0x1b2794['get'](_0x30e9ab);if(_0x46e999){const _0x635906=_0x4fd7a1['get'](_0x46e999['userId']),_0x29a7b0=new r({'author':_0x635906,'type':_0x46e999['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x30e9ab});_0x472ce1['unshift'](_0x29a7b0),_0x17815b['attributes'][_0x30e9ab]['revisionHistoryAttachChange']=_0x29a7b0['id'];}_0x17815b['changes']=_0x17815b['changes']['concat'](_0x472ce1);}return _0x17815b;}['_markMarkers'](_0xa83683,_0x49117f){for(let _0x2b3249=0x0;_0x2b3249<_0xa83683['length'];_0x2b3249++)for(const [_0x4467b7,_0x5c4675]of _0x49117f)_0x5c4675['start']['isEqual'](_0xa83683[_0x2b3249]['previousPosition'])&&_0xa83683[_0x2b3249]['markersStart']['push'](_0x4467b7),_0x5c4675['end']['isEqual'](_0xa83683[_0x2b3249]['nextPosition'])&&_0xa83683[_0x2b3249]['markersEnd']['push'](_0x4467b7);}['_joinTapes'](_0x50e099,_0x5c281c){let _0x1dcf73=[],_0x23bf07=0x0,_0x2c36f2=0x0;for(;_0x23bf07<_0x50e099['length']||_0x2c36f2<_0x5c281c['length'];){const _0x5ef7dd=_0x50e099[_0x23bf07]||{},_0x14e65e=_0x5c281c[_0x2c36f2]||{};if(_0x5ef7dd['id']==_0x14e65e['id'])_0x23bf07++,_0x2c36f2++,_0x1dcf73['push'](_0x5ef7dd);else{if(_0x14e65e['isRemoved']&&_0x5ef7dd['isAdded']){const {commonTape:_0x2be0e5,iEnd:_0x3613af,jEnd:_0xf74c60}=this['_threeWayMerge'](_0x50e099,_0x23bf07,_0x5c281c,_0x2c36f2);_0x1dcf73=_0x1dcf73['concat'](_0x2be0e5),_0x23bf07=_0x3613af,_0x2c36f2=_0xf74c60;}else _0x14e65e['isRemoved']?(_0x2c36f2++,_0x1dcf73['push'](_0x14e65e)):(_0x23bf07++,_0x1dcf73['push'](_0x5ef7dd));}}return _0x1dcf73;}['_markSuggestions'](_0x46d17b,_0x31034b){const _0x20d1eb=[];for(let _0x51055d=0x0;_0x51055d<_0x46d17b['length'];_0x51055d++){for(let _0x16c2fd=0x0;_0x16c2fd<_0x46d17b[_0x51055d]['markersStart']['length'];_0x16c2fd++){const _0x263b29=_0x46d17b[_0x51055d]['markersStart'][_0x16c2fd];if(!_0x31034b['has'](_0x263b29))continue;const {group:_0x1cae99,type:_0x2608b9,authorId:_0x32e8d4}=_0x2e7cd8(_0x263b29);'revision-suggestion'!=_0x1cae99||'insertion'!=_0x2608b9&&'deletion'!=_0x2608b9||(_0x20d1eb['unshift']({'type':_0x2608b9,'name':_0x263b29,'userId':_0x32e8d4}),_0x46d17b[_0x51055d]['markersStart']['splice'](_0x16c2fd,0x1),_0x16c2fd--);}_0x2e95f6(_0x46d17b[_0x51055d]);for(let _0x1745de=0x0;_0x1745de<_0x46d17b[_0x51055d]['markersEnd']['length'];_0x1745de++){const _0x1799f9=_0x46d17b[_0x51055d]['markersEnd'][_0x1745de];if(!_0x31034b['has'](_0x1799f9))continue;const {group:_0x11cd2b,type:_0xe4f470}=_0x2e7cd8(_0x1799f9);if('revision-suggestion'!=_0x11cd2b||'insertion'!=_0xe4f470&&'deletion'!=_0xe4f470)continue;_0x46d17b[_0x51055d]['markersEnd']['splice'](_0x1745de,0x1),_0x1745de--;const _0x41cbec=_0x20d1eb['findIndex'](_0x4fcd08=>_0x4fcd08['name']==_0x1799f9);_0x41cbec>-0x1&&_0x20d1eb['splice'](_0x41cbec,0x1);}}function _0x2e7cd8(_0x510268){const _0x4c306b=_0x510268['split'](':');return{'group':_0x4c306b[0x0],'type':_0x4c306b[0x1],'subType':_0x4c306b['length']>=0x5?_0x4c306b[0x2]:null,'id':_0x4c306b['length']<0x5?_0x4c306b[0x2]:_0x4c306b[0x3],'authorId':_0x4c306b['length']<0x5?_0x4c306b[0x3]:_0x4c306b[0x4],'markerCount':0x6==_0x4c306b['length']?_0x4c306b[0x5]:null};}function _0x2e95f6(_0x3c3d9b){for(let _0x566d5c=0x0;_0x566d5c<_0x20d1eb['length'];_0x566d5c++){if(_0x3c3d9b['isAdded']&&'insertion'==_0x20d1eb[_0x566d5c]['type'])return _0x3c3d9b['isAddSuggestion']=_0x20d1eb[_0x566d5c],void delete _0x3c3d9b['isAdded'];if(!_0x3c3d9b['isAdded']&&!_0x3c3d9b['isRemoved']&&'deletion'==_0x20d1eb[_0x566d5c]['type'])return void(_0x3c3d9b['isRemoveSuggestion']=_0x20d1eb[_0x566d5c]);}}}['_setDistance'](_0x27f292,_0x19d3a4){let _0x51f8c6=0x0,_0x5a1fdf=!0x1;const _0x6fde83=new Map();for(const _0x5a94fc of _0x27f292)_0x5a94fc[_0x19d3a4]?_0x5a1fdf&&(_0x51f8c6++,_0x5a1fdf=!0x1):(_0x51f8c6++,_0x5a1fdf=!0x0),_0x6fde83['set'](_0x5a94fc['id'],_0x51f8c6);for(let _0x1e0612=0x0;_0x1e0612<_0x27f292['length'];_0x1e0612++){if('isRemoved'==_0x19d3a4&&_0x27f292[_0x1e0612]['isAdded']||'isAdded'==_0x19d3a4&&_0x27f292[_0x1e0612]['isRemoved'])continue;if('text'==_0x27f292[_0x1e0612]['type']){_0x27f292[_0x1e0612]['distance']=0x0;continue;}const _0x5f0886=_0x6fde83['get'](_0x27f292[_0x1e0612]['pairId']),_0x5c12d8=_0x6fde83['get'](_0x27f292[_0x1e0612]['id']);_0x27f292[_0x1e0612]['distance']=_0x5f0886-_0x5c12d8;}}['_getRevisionsRange'](_0x2f7f49,_0x32e75c,_0x1b1a7b=!0x1){const _0x3412f0=[];let _0x50a4f4=this['repository']['getIndex'](_0x2f7f49),_0x417cd2=this['repository']['getIndex'](_0x32e75c);for(-0x1==_0x417cd2&&(_0x417cd2=this['repository']['_revisions']['length'],_0x1b1a7b=!0x1);_0x50a4f4<_0x417cd2;)_0x3412f0['push'](this['repository']['getRevision'](_0x50a4f4)),_0x50a4f4++;return _0x1b1a7b&&_0x3412f0['push'](this['repository']['getRevision'](_0x50a4f4)),_0x3412f0;}['_threeWayMerge'](_0x4e0b6a,_0x999137,_0x2feb3d,_0x237807){const _0x24ac02=this['editor']['model']['schema'];let _0x4c4f8b=_0x999137;for(;_0x4e0b6a[_0x4c4f8b]&&_0x4e0b6a[_0x4c4f8b]['isAdded'];)_0x4c4f8b++;let _0x52b58c=_0x237807;for(;_0x2feb3d[_0x52b58c]&&_0x2feb3d[_0x52b58c]['isRemoved'];)_0x52b58c++;_0x5dc027(_0x4e0b6a,_0x999137,_0x4c4f8b),_0x5dc027(_0x2feb3d,_0x237807,_0x52b58c);const _0x1d3a36=_0x2feb3d['slice'](_0x237807,_0x52b58c)['concat'](_0x4e0b6a['slice'](_0x999137,_0x4c4f8b));return _0x1d3a36['sort']((_0x4252ec,_0x4afb9f)=>_0x4252ec['side']!=_0x4afb9f['side']?_0x4252ec['side']-_0x4afb9f['side']:_0x4252ec['level']!=_0x4afb9f['level']?_0x4252ec['level']-_0x4afb9f['level']:_0x4252ec['distance']!=_0x4afb9f['distance']?_0x4afb9f['distance']-_0x4252ec['distance']:!!_0x4252ec['isAdded']!=!!_0x4afb9f['isAdded']?-0x1==_0x4252ec['side']||0x0==_0x4252ec['side']?_0x4252ec['isAdded']?-0x1:0x1:_0x4252ec['isAdded']?0x1:-0x1:_0x4252ec['index']-_0x4afb9f['index']),{'commonTape':_0x1d3a36,'iEnd':_0x4c4f8b,'jEnd':_0x52b58c};function _0x5dc027(_0x4639a1,_0x39b79c,_0x5eeb6c){let _0x598576=-0x1,_0x5836b7=Number['POSITIVE_INFINITY'],_0x5616f2=!0x0;for(let _0x4f8960=_0x39b79c;_0x4f8960<_0x5eeb6c;_0x4f8960++)if(_0x24ac02['isInline'](_0x4639a1[_0x4f8960]['item'])||(_0x5616f2=!0x1),_0x4639a1[_0x4f8960]['item']['startIndex']<_0x39b79c&&(_0x598576=_0x4f8960),_0x4639a1[_0x4f8960]['item']['endIndex']>=_0x5eeb6c){_0x5836b7=_0x4f8960;break;}_0x5616f2&&(_0x598576=_0x5eeb6c-0x1);for(let _0x559164=_0x39b79c;_0x559164<_0x5eeb6c;_0x559164++)_0x4639a1[_0x559164]['side']=_0x559164<=_0x598576?-0x1:_0x559164<_0x5836b7?0x0:0x1,_0x4639a1[_0x559164]['index']=_0x559164;let _0x45242f=0x0;for(let _0x3759b0=_0x39b79c;_0x3759b0<=_0x598576;_0x3759b0++)0x0==_0x4639a1[_0x3759b0]['distance']?_0x4639a1[_0x3759b0]['level']=_0x45242f:(_0x45242f++,_0x4639a1[_0x3759b0]['level']=_0x45242f,_0x45242f++);for(let _0x5d95fd=_0x39b79c;_0x5d95fd<_0x5eeb6c;_0x5d95fd++)0x0==_0x4639a1[_0x5d95fd]['side']&&(_0x4639a1[_0x5d95fd]['level']=_0x45242f);_0x45242f=0x0;for(let _0x3fb764=_0x5eeb6c-0x1;_0x3fb764>=_0x5836b7;_0x3fb764--)0x0==_0x4639a1[_0x3fb764]['distance']?_0x4639a1[_0x3fb764]['level']=_0x45242f:(_0x45242f--,_0x4639a1[_0x3fb764]['level']=_0x45242f,_0x45242f--);}}['_fixObsoleteTags'](_0x24b8a5){const _0x5f3aba=new Map(),_0x274c47=this['editor']['model']['schema'];for(let _0x14785c=0x1;_0x14785c<_0x24b8a5['length'];_0x14785c++){let _0x5d0756,_0x57ef48,_0x33cdd0;const _0x4a53c7=_0x24b8a5[_0x14785c],_0x160d2b=_0x24b8a5[_0x14785c-0x1];if('text'==_0x4a53c7['type'])continue;if(_0x4a53c7['type']!=_0x160d2b['type'])continue;if(!_0x274c47['isBlock'](_0x160d2b['item'])||_0x274c47['isLimit'](_0x160d2b['item']))continue;if(!_0x274c47['isBlock'](_0x4a53c7['item'])||_0x274c47['isLimit'](_0x4a53c7['item']))continue;if((_0x24b8a5[_0x14785c]['isAdded']||_0x24b8a5[_0x14785c]['isAddSuggestion'])&&_0x24b8a5[_0x14785c-0x1]['isRemoved'])_0x5d0756=_0x24b8a5[_0x14785c],_0x57ef48=_0x24b8a5[_0x14785c-0x1],_0x33cdd0=_0x14785c-0x1;else{if(!_0x24b8a5[_0x14785c]['isRemoved']||!_0x24b8a5[_0x14785c-0x1]['isAdded']&&!_0x24b8a5[_0x14785c-0x1]['isAddSuggestion'])continue;_0x5d0756=_0x24b8a5[_0x14785c-0x1],_0x57ef48=_0x24b8a5[_0x14785c],_0x33cdd0=_0x14785c;}const _0xe1ec5d=_0x5d0756['level']==_0x57ef48['level'],_0xf35c37=Math['abs'](_0x5d0756['level'])<Math['abs'](_0x57ef48['level'])&&0x0==_0x57ef48['distance'];(_0xe1ec5d||_0xf35c37)&&(_0x5f3aba['set'](_0x57ef48['id'],_0x5d0756['id']),_0x24b8a5['splice'](_0x33cdd0,0x1),_0x14785c--,_0x5d0756['isAdded']=!0x1);}for(let _0x17026b=0x0;_0x17026b<_0x24b8a5['length'];_0x17026b++)_0x5f3aba['has'](_0x24b8a5[_0x17026b]['pairId'])&&(_0x24b8a5[_0x17026b]['pairId']=_0x5f3aba['get'](_0x24b8a5[_0x17026b]['pairId']));}['_removeMissingPairs'](_0x298c81){const _0xe6a627=new Set(_0x298c81['map'](_0x3fa046=>_0x3fa046['id']));for(let _0x215503=0x0;_0x215503<_0x298c81['length'];_0x215503++)_0xe6a627['has'](_0x298c81[_0x215503]['pairId'])||0x0==_0x298c81[_0x215503]['distance']||(_0x298c81[_0x215503]['isIncorrect']=!0x0);return _0x298c81['filter'](_0x3239e2=>!_0x3239e2['isIncorrect']);}['_markMismatchedRemovedTags'](_0x35c550){const _0x38bac1=new Set();for(let _0x32aeec=0x0;_0x32aeec<_0x35c550['length'];_0x32aeec++){if(_0x38bac1['has'](_0x35c550[_0x32aeec]['id'])&&_0x35c550[_0x32aeec]['isRemoved']&&(_0x35c550[_0x32aeec]['isIncorrect']=!0x0),_0x35c550[_0x32aeec]['isIncorrect'])continue;if(0x0==_0x35c550[_0x32aeec]['distance'])continue;if('elementStart'!=_0x35c550[_0x32aeec]['type'])continue;if(null==_0x35c550[_0x32aeec]['pairId'])continue;let _0x241f12=_0x32aeec+0x1,_0x5452a=0x0;for(;_0x35c550[_0x241f12]['id']!=_0x35c550[_0x32aeec]['pairId'];)'elementStart'==_0x35c550[_0x241f12]['type']?_0x5452a++:'elementEnd'==_0x35c550[_0x241f12]['type']&&_0x5452a--,_0x241f12++;if(0x0!=_0x5452a){if(_0x35c550[_0x32aeec]['isRemoved'])_0x35c550[_0x32aeec]['isIncorrect']=!0x0;else{for(;_0x241f12!=_0x32aeec;)_0x35c550[_0x241f12]['isRemoved']&&0x0!=_0x35c550[_0x241f12]['distance']&&(_0x35c550[_0x241f12]['isIncorrect']=!0x0,_0x38bac1['add'](_0x35c550[_0x241f12]['pairId'])),_0x241f12--;}}}return _0x35c550['filter'](_0x9fa583=>!_0x9fa583['isIncorrect']);}['_removeUnsupportedChanges'](_0x41bfca){const _0x4172aa=this['editor']['model']['schema'];for(let _0x2954b0=0x0;_0x2954b0<_0x41bfca['length'];_0x2954b0++){if(!(_0x41bfca[_0x2954b0]['isAdded']||_0x41bfca[_0x2954b0]['isAddSuggestion']||_0x41bfca[_0x2954b0]['isRemoved']||_0x41bfca[_0x2954b0]['isRemoveSuggestion']))continue;if(0x0==_0x41bfca[_0x2954b0]['distance'])continue;const _0x343e54=_0x41bfca[_0x2954b0]['item'];_0x4172aa['isBlock'](_0x343e54)||_0x4172aa['isLimit'](_0x343e54)||(_0x41bfca[_0x2954b0]['isAdded']&&delete _0x41bfca[_0x2954b0]['isAdded'],_0x41bfca[_0x2954b0]['isAddSuggestion']&&delete _0x41bfca[_0x2954b0]['isAddSuggestion'],_0x41bfca[_0x2954b0]['isRemoveSuggestion']&&delete _0x41bfca[_0x2954b0]['isRemoveSuggestion'],_0x41bfca[_0x2954b0]['isRemoved']&&(_0x41bfca[_0x2954b0]['isIncorrect']=!0x0));}return _0x41bfca['filter'](_0x83b1b9=>!_0x83b1b9['isIncorrect']);}['_makeModelFromTape'](_0x32869b,_0x3dd287,_0x4ae883){const _0x465491=new mt(),_0x1e8674=[],_0x2e7558=new Map(),_0x159610=this['editor']['model'],_0x43a695=_0x159610['schema'],_0x4a8d02=[_0x465491],_0x48e243={},_0x126fc5={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x37299f=null;const _0x43b437=[0x0];for(let _0x407ec1=0x0;_0x407ec1<_0x32869b['length'];_0x407ec1++)if('elementStart'===_0x32869b[_0x407ec1]['type']){_0x32869b[_0x407ec1]['previousPosition']=_0x159610['createPositionFromPath'](_0x465491,_0x43b437);const _0x525391=new ft(_0x32869b[_0x407ec1]['item']['name'],_0x32869b[_0x407ec1]['item']['getAttributes']());_0x4a8d02[0x0]['_appendChild'](_0x525391),_0x43b437['push'](0x0),_0x4a8d02['unshift'](_0x525391),_0x32869b[_0x407ec1]['nextPosition']=_0x159610['createPositionFromPath'](_0x465491,_0x43b437);}else'elementEnd'===_0x32869b[_0x407ec1]['type']?(_0x4a8d02['shift'](),_0x32869b[_0x407ec1]['previousPosition']=_0x159610['createPositionFromPath'](_0x465491,_0x43b437),_0x43b437['pop'](),_0x43b437[_0x43b437['length']-0x1]++,_0x32869b[_0x407ec1]['nextPosition']=_0x159610['createPositionFromPath'](_0x465491,_0x43b437)):(_0x32869b[_0x407ec1]['previousPosition']=_0x159610['createPositionFromPath'](_0x465491,_0x43b437),_0x37299f?_0x37299f['_data']+=_0x32869b[_0x407ec1]['item']['data']:_0x37299f=new wt(_0x32869b[_0x407ec1]['item']['data'],_0x32869b[_0x407ec1]['item']['getAttributes']()),_0x32869b[_0x407ec1+0x1]&&'text'===_0x32869b[_0x407ec1+0x1]['type']&&_0x3ef4fa(_0x37299f,_0x32869b[_0x407ec1+0x1]['item'])||(_0x4a8d02[0x0]['_appendChild'](_0x37299f),_0x37299f=null),_0x43b437[_0x43b437['length']-0x1]+=_0x32869b[_0x407ec1]['item']['offsetSize'],_0x32869b[_0x407ec1]['nextPosition']=_0x159610['createPositionFromPath'](_0x465491,_0x43b437));for(let _0x2d6a67=0x0;_0x2d6a67<_0x32869b['length'];_0x2d6a67++){const _0x4b2e1d=_0x32869b[_0x2d6a67]['previousPosition'],_0x417d0a=_0x32869b[_0x2d6a67]['nextPosition'];for(const _0x5a0fd4 of _0x32869b[_0x2d6a67]['markersStart'])_0x2e7558['set'](_0x5a0fd4,{'start':_0x4b2e1d,'end':null});_0xbd6def('isRemoveSuggestion',_0x2d6a67,_0x4b2e1d,_0x417d0a),_0xbd6def('isAddSuggestion',_0x2d6a67,_0x4b2e1d,_0x417d0a),_0xbd6def('isRemoved',_0x2d6a67,_0x4b2e1d,_0x417d0a),_0xbd6def('isAdded',_0x2d6a67,_0x4b2e1d,_0x417d0a);for(const _0x4c99a0 of _0x32869b[_0x2d6a67]['markersEnd']){_0x2e7558['get'](_0x4c99a0)['end']=_0x417d0a;}}for(const [_0x2857b5,_0x11b695]of _0x2e7558){const _0x4155c6=this['editor']['model']['createRange'](_0x11b695['start'],_0x11b695['end']);_0x465491['markers']['set'](_0x2857b5,_0x4155c6);}return _0x1e8674['sort']((_0x187be5,_0x2c0dd3)=>{const _0x2124cd=_0x465491['markers']['get']('revision:'+_0x187be5['id']),_0x4247cf=_0x465491['markers']['get']('revision:'+_0x2c0dd3['id']);return _0x2124cd['start']['isBefore'](_0x4247cf['start'])?-0x1:_0x2124cd['start']['isAfter'](_0x4247cf['start'])?0x1:_0x2124cd['end']['isBefore'](_0x4247cf['end'])?-0x1:_0x2124cd['end']['isAfter'](_0x4247cf['end'])?0x1:'add'===_0x187be5['type']?-0x1:0x1;}),{'root':_0x465491,'changes':_0x1e8674};function _0xbd6def(_0x2c9f96,_0x1cff4d,_0x4821fd,_0x421bbe){const _0x9ff157=!!_0x32869b[_0x1cff4d][_0x2c9f96],_0x2eeff6=_0x9ff157?_0x32869b[_0x1cff4d][_0x2c9f96]['userId']:null,_0x3c8bfc=_0x1cff4d===_0x32869b['length']-0x1,_0x7f5c5b=_0x126fc5[_0x2c9f96][0x0],_0x167fe6=_0x43a695['isObject'](_0x32869b[_0x1cff4d]['item']);!_0x48e243[_0x2c9f96]&&_0x9ff157?_0x48e243[_0x2c9f96]={'start':_0x4821fd,'tapeItem':_0x32869b[_0x1cff4d],'userId':_0x2eeff6,'type':_0x2c9f96}:_0x48e243[_0x2c9f96]&&!_0x9ff157?(_0x48e243[_0x2c9f96]['end']=_0x4821fd,_0x163a54(_0x48e243[_0x2c9f96]),_0x48e243[_0x2c9f96]=null):_0x48e243[_0x2c9f96]&&_0x9ff157&&_0x48e243[_0x2c9f96]['userId']!==_0x2eeff6&&(_0x48e243[_0x2c9f96]['end']=_0x4821fd,_0x7f5c5b&&_0x7f5c5b['userId']===_0x48e243[_0x2c9f96]['userId']||_0x163a54(_0x48e243[_0x2c9f96]),_0x48e243[_0x2c9f96]={'start':_0x4821fd,'tapeItem':_0x32869b[_0x1cff4d],'userId':_0x2eeff6,'type':_0x2c9f96}),_0x48e243[_0x2c9f96]&&_0x167fe6&&('elementStart'!==_0x32869b[_0x1cff4d]['type']||_0x7f5c5b&&_0x7f5c5b['userId']===_0x2eeff6||_0x126fc5[_0x2c9f96]['unshift']({'userId':_0x2eeff6,'object':_0x32869b[_0x1cff4d]['item'],'change':_0x48e243[_0x2c9f96]}),'elementEnd'===_0x32869b[_0x1cff4d]['type']&&_0x7f5c5b&&_0x7f5c5b['object']===_0x32869b[_0x1cff4d]['item']&&(_0x126fc5[_0x2c9f96]['shift'](),_0x48e243[_0x2c9f96]=_0x7f5c5b['change'])),_0x48e243[_0x2c9f96]&&_0x3c8bfc&&(_0x48e243[_0x2c9f96]['end']=_0x421bbe,_0x163a54(_0x48e243[_0x2c9f96]),_0x48e243[_0x2c9f96]=null);}function _0x163a54({start:_0x4030c0,end:_0x222832,tapeItem:_0x81b76e,userId:_0x2bf2fe,type:_0x2f79bf}){const _0x37bf9b=_0x81b76e['item'],_0x590c4d=_0x159610['schema']['isBlock'](_0x37bf9b)&&!_0x159610['schema']['isLimit'](_0x37bf9b),_0x3610b2=_0x4030c0['nodeAfter']==_0x222832['parent']&&_0x222832['isAtStart'];if(_0x590c4d&&_0x3610b2)return;const _0x3dd43d=_0x159610['createRange'](_0x4030c0,_0x222832),_0x4ce7d5=_0x3dd287['get'](_0x2bf2fe),_0x117a44=new r({'author':_0x4ce7d5,'type':'isAdded'==_0x2f79bf||'isAddSuggestion'==_0x2f79bf?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x2f79bf||'isRemoveSuggestion'==_0x2f79bf},'createdAt':new Date(),'rootName':_0x4ae883});_0x1e8674['push'](_0x117a44),_0x465491['markers']['set']('revision:'+_0x117a44['id'],_0x3dd43d);}function _0x3ef4fa(_0x2661ab,_0x2d5a3f){const _0x4025fe=_0x2661ab['getAttributes'](),_0x2bac13=_0x2d5a3f['getAttributes']();for(const _0x196ba7 of _0x4025fe){if(_0x196ba7[0x1]!==_0x2d5a3f['getAttribute'](_0x196ba7[0x0]))return!0x1;_0x2bac13['next']();}return _0x2bac13['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x3117df=>{const _0xfad024=_0x3117df['markerName']['split'](':')[0x1],_0x417e6d=this['_getChangeFromId'](_0xfad024);if(!_0x417e6d)return null;const _0x21c122='add'==_0x417e6d['type']?'insertion':'deletion',_0x28c8e1=['ck-suggestion-marker','ck-suggestion-marker-'+_0x21c122];return _0x417e6d['data']['isSuggestion']&&_0x28c8e1['push']('ck-suggestion-marker-'+_0x21c122+'-new'),this['activeChange']==_0x417e6d&&_0x28c8e1['push']('ck-suggestion-marker--active'),{'classes':_0x28c8e1,'attributes':{'data-change-id':_0xfad024}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x43f372=>{_0x43f372['on']('element:pre',(_0x531d54,_0x12eeaa,_0x2c72ed)=>{const _0x3170d3=_0x12eeaa['viewItem']['getChild'](0x0);if(!_0x3170d3||!_0x3170d3['is']('element','code'))return;if(!_0x2c72ed['consumable']['consume'](_0x3170d3,{'attributes':['vid_start','vid_end']}))return;const _0x3dab9c=_0x12eeaa['modelRange']['start']['nodeAfter'];_0x2c72ed['writer']['setAttribute']('vid_start',_0x3170d3['getAttribute']('vid_start'),_0x3dab9c),_0x2c72ed['writer']['setAttribute']('vid_end',_0x3170d3['getAttribute']('vid_end'),_0x3dab9c);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x19628d=>{_0x19628d['on']('element',(_0x3017f9,_0x219f23,_0xe113ee)=>{if(!_0xe113ee['consumable']['consume'](_0x219f23['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x219f23['modelRange']['isCollapsed'])return;const _0x8dec4d=_0x219f23['modelRange']['start']['nodeAfter'];_0x8dec4d['hasAttribute']('vid_start')||_0x8dec4d['hasAttribute']('vid')||(_0xe113ee['writer']['setAttribute']('vid_start',_0x219f23['viewItem']['getAttribute']('vid_start'),_0x8dec4d),_0xe113ee['writer']['setAttribute']('vid_end',_0x219f23['viewItem']['getAttribute']('vid_end'),_0x8dec4d));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x5e9eaa=>_0x5e9eaa['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x4d647e,[,_0x47bfbe])=>{['vid_start','vid_end','vid']['includes'](_0x47bfbe)&&(_0x4d647e['return']=!0x0,_0x4d647e['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x2868fc=>{_0x2868fc['on']('attribute:vid',(_0x58ef09,_0x26698f,_0x233b4b)=>{if('\x20'!=_0x26698f['item']['data']||_0x26698f['item']['parent']['maxOffset']>0x1)return;if(!_0x233b4b['consumable']['consume'](_0x26698f['item'],_0x58ef09['name']))return;const _0x48a3c0=_0x233b4b['writer'],_0x159af5=_0x233b4b['mapper']['toViewRange'](_0x26698f['range']);_0x48a3c0['wrap'](_0x159af5,_0x48a3c0['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x506618){const _0x2fa7fc=_0x506618['plugins']['get']('RevisionViewer');return(_0x5604fe,_0x3853f2,_0x108d75)=>{const _0x533326=_0x3853f2['markerName']['split'](':')[0x1],_0x4efa05=_0x2fa7fc['_getChangeFromId'](_0x533326);if(!_0x4efa05)return null;const _0x824fef='add'==_0x4efa05['type']?'split':'merge';if(!_0x108d75['consumable']['test'](_0x3853f2['markerRange'],_0x5604fe['name']))return;const _0x5bece7=_0x3853f2['markerRange']['getWalker'](),_0x27e1b7=_0x3853f2['markerRange']['start'],_0x2284a0=_0x506618['model']['schema'];let _0x153b18=null,_0x282491=null,_0x343731=!0x1,_0x2564f8=!0x1;for(const _0x104b8c of _0x5bece7){const _0x41b4e3=_0x104b8c['item'];_0x343731=_0x343731||_0x2284a0['isContent'](_0x41b4e3);const _0x144289=_0x108d75['mapper']['toViewElement'](_0x41b4e3);if(_0x144289&&_0x144289['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x104b8c['type']&&(_0x2284a0['isBlock'](_0x41b4e3)&&!_0x2284a0['isLimit'](_0x41b4e3)&&(_0x41b4e3['nextSibling']||_0x27e1b7['isAtEnd']?_0x153b18&&_0x153b18['parent']==_0x41b4e3||(_0x153b18=_0x41b4e3,_0x364bcb(_0x104b8c['previousPosition']),_0x2564f8=!0x0):_0x282491=_0x282491||_0x104b8c['previousPosition']));}function _0x364bcb(_0x1d929f){const _0x2b2df5=_0x108d75['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x824fef}),_0x4ca121=_0x108d75['mapper']['toViewPosition'](_0x1d929f);_0x4efa05['data']['isSuggestion']&&_0x108d75['writer']['addClass']('ck-suggestion-marker-'+_0x824fef+'-new',_0x2b2df5),_0x2fa7fc['activeChange']==_0x4efa05&&_0x108d75['writer']['addClass']('ck-suggestion-marker--active',_0x2b2df5),_0x108d75['writer']['insert'](_0x4ca121,_0x2b2df5),_0x108d75['mapper']['bindElementToMarker'](_0x2b2df5,_0x3853f2['markerName']);}_0x343731||_0x2564f8||!_0x282491||_0x364bcb(_0x282491);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x111d68,_0x277f4c,_0x1c58a1)=>{const _0x5f0afe=_0x1c58a1['mapper']['markerNameToElements'](_0x277f4c['markerName']);if(_0x5f0afe){for(const _0x3abc55 of _0x5f0afe)(_0x3abc55['hasClass']('ck-suggestion-marker-split')||_0x3abc55['hasClass']('ck-suggestion-marker-merge'))&&(_0x1c58a1['mapper']['unbindElementFromMarkerName'](_0x3abc55,_0x277f4c['markerName']),_0x1c58a1['writer']['remove'](_0x3abc55));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x2cb2b8,_0x51a03e,_0x512ba5)=>{const _0x1b29ab=_0x51a03e['markerName']['split'](':')[0x1],_0x3247b4=this['_getChangeFromId'](_0x1b29ab);if(!_0x3247b4)return null;const _0x5d62dc='add'==_0x3247b4['type']?'split':'merge';if(_0x512ba5['consumable']['test'](_0x51a03e['markerRange'],_0x2cb2b8['name']))for(const _0x5a529b of _0x51a03e['markerRange']['getItems']()){if(!_0x5a529b['is']('element','softBreak'))continue;const _0x347b76=_0x512ba5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5d62dc}),_0x310be5=_0x512ba5['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x5a529b));_0x3247b4['data']['isSuggestion']&&_0x512ba5['writer']['addClass']('ck-suggestion-marker-'+_0x5d62dc+'-new',_0x347b76),this['activeChange']==_0x3247b4&&_0x512ba5['writer']['addClass']('ck-suggestion-marker--active',_0x347b76),_0x512ba5['writer']['insert'](_0x310be5,_0x347b76),_0x512ba5['mapper']['bindElementToMarker'](_0x347b76,_0x51a03e['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x413ee4=>{for(const _0x954110 of this['editor']['model']['document']['getRootNames']()){const _0x2e36ee=this['editor']['model']['document']['getRoot'](_0x954110),_0x387e19=this['editor']['editing']['view']['document']['getRoot'](_0x954110);if(_0x387e19){const _0x762a70=_0x2e36ee['getAttribute']('revisionHistoryAttachChange');if(_0x413ee4['removeAttribute']('data-change-id',_0x387e19),_0x413ee4['removeClass']('ck-revision-history-root-add',_0x387e19),_0x413ee4['removeClass']('ck-revision-history-root-remove',_0x387e19),_0x413ee4['removeClass']('ck-revision-history-root--active',_0x387e19),_0x762a70){const _0x2189a1=this['_getChangeFromId'](_0x762a70);if(!_0x2189a1)return null;_0x413ee4['setAttribute']('data-change-id',_0x762a70,_0x387e19),_0x413ee4['addClass']('ck-revision-history-root-'+_0x2189a1['type'],_0x387e19),this['activeChange']==_0x2189a1&&_0x413ee4['addClass']('ck-revision-history-root--active',_0x387e19);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x38d97e=>'revision-comment:'+_0x38d97e,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x4a0089=>'revision-suggestion:'+_0x4a0089,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x5c3876=>({'name':'suggestion:'+_0x5c3876,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x48d17f=>{const _0x40b487=_0x48d17f['markerName']['split'](':')[0x1];return'insertion'!=_0x40b487&&'deletion'!=_0x40b487?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x40b487]};}}),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',(_0x2a8f3d,_0x360cad,_0x344ad3)=>{const _0x545300=_0x344ad3['mapper']['markerNameToElements'](_0x360cad['markerName']);if(_0x545300){for(const _0x435cf0 of _0x545300)_0x435cf0['is']('uiElement')&&(_0x344ad3['mapper']['unbindElementFromMarkerName'](_0x435cf0,_0x360cad['markerName']),_0x344ad3['writer']['remove'](_0x435cf0));}},{'priority':'high'});}['_getChangeFromId'](_0xdde710){return this['_changeIdToChange']['get'](_0xdde710);}['_getViewForChange'](_0x36bb1b){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x36bb1b),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x482b2a,_0x3cbb6b,_0x3ec137,_0x5505e1)=>{_0x5505e1&&this['_balloon']['remove'](_0x5505e1),_0x3ec137&&(this['_balloon']['add']({'view':_0x3ec137,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x17d45a=this['editor']['editing'],_0x19e8cd=this['_getChangeFromId'](_0x3ec137['changeId']);let _0x33a40d;if(_0x19e8cd['data']['isOnRoot']){const _0x2960c7=_0x17d45a['view']['getDomRoot'](_0x19e8cd['rootName']);_0x33a40d=Array['from'](_0x2960c7['getClientRects']());}else{const _0x2d88be=this['editor']['model']['markers']['get']('revision:'+_0x3ec137['changeId']);_0x33a40d=Array['from'](_0x17d45a['mapper']['markerNameToElements'](_0x2d88be['name']))['map'](_0x5b7246=>_0x17d45a['view']['domConverter']['mapViewToDom'](_0x5b7246))['map'](_0x4409da=>Array['from'](_0x4409da['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x33a40d[0x0];return _0x33a40d['find'](_0x2316f6=>_0x2316f6['top']-0x3<=this['_activeViewTarget']['y']&&_0x2316f6['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x2316f6['left']-0x3<=this['_activeViewTarget']['x']&&_0x2316f6['right']+0x3>=this['_activeViewTarget']['x'])||_0x33a40d[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x329a62,_0x3ae79a,_0x17849d,_0x4437d6)=>{this['activeView']=_0x17849d?this['_getViewForChange'](_0x17849d):null,this['editor']['model']['change'](()=>{const _0x37f42f=this['editor']['editing'];_0x4437d6&&(_0x4437d6['data']['isOnRoot']?_0x37f42f['view']['change'](_0x1364a5=>{_0x1364a5['removeClass']('ck-revision-history-root--active',_0x37f42f['view']['document']['getRoot'](_0x4437d6['rootName']));}):_0x37f42f['reconvertMarker']('revision:'+_0x4437d6['id'])),_0x17849d&&(_0x17849d['data']['isOnRoot']?_0x37f42f['view']['change'](_0x369fc1=>{_0x369fc1['addClass']('ck-revision-history-root--active',_0x37f42f['view']['document']['getRoot'](_0x17849d['rootName']));}):_0x37f42f['reconvertMarker']('revision:'+_0x17849d['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x3b2e38,_0x1ae7e7)=>{if(this['activeChange'])return;const _0x3c59d7=this['_findChangeIdFromDomTarget'](_0x1ae7e7['target']),_0x1334c5=this['_changeIdToChange']['get'](_0x3c59d7);_0x1334c5?(this['_activeViewTarget']={'x':_0x1ae7e7['domEvent']['x'],'y':_0x1ae7e7['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x1334c5)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0xe505b0,_0x5a7f8a)=>{const _0x58e52e=this['_findChangeIdFromDomTarget'](_0x5a7f8a['target']),_0x3f7eb7=this['_changeIdToChange']['get'](_0x58e52e);_0x3f7eb7?(this['_activeViewTarget']={'x':_0x5a7f8a['domEvent']['x'],'y':_0x5a7f8a['domEvent']['y']},_0x3f7eb7===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x3f7eb7):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x44ac12){do{const _0x189a9c=_0x44ac12['getAttribute']('data-change-id');if(_0x189a9c)return _0x189a9c;_0x44ac12=_0x44ac12['parent'];}while(_0x44ac12);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x466853=>{for(const _0x181195 of this['editor']['model']['markers'])_0x466853['removeMarker'](_0x181195);});}}function Z(_0x13e0a3,_0x48c672){return(_0x50b3aa,_0xafc443,_0x202538)=>{if(!_0x202538['consumable']['test'](_0xafc443['markerRange'],_0x50b3aa['name']))return;const _0x4ed454=_0xafc443['markerRange']['getWalker'](),_0xd1ddb1=_0xafc443['markerRange']['start'],_0x5d692d=_0x13e0a3['model']['schema'];let _0x45470f=null,_0x5101fb=null,_0x3070a9=!0x1,_0x17f9f9=!0x1;for(const _0x4962eb of _0x4ed454){const _0x40f013=_0x4962eb['item'];_0x3070a9=_0x3070a9||_0x5d692d['isContent'](_0x40f013);const _0x468772=_0x202538['mapper']['toViewElement'](_0x40f013);if(_0x468772&&_0x468772['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4962eb['type']&&(_0x5d692d['isBlock'](_0x40f013)&&!_0x5d692d['isLimit'](_0x40f013)&&(_0x40f013['nextSibling']||_0xd1ddb1['isAtEnd']?_0x45470f&&_0x45470f['parent']==_0x40f013||(_0x45470f=_0x40f013,_0x2529c5(_0x4962eb['previousPosition']),_0x17f9f9=!0x0):_0x5101fb=_0x5101fb||_0x4962eb['previousPosition']));}function _0x2529c5(_0x52a810){const _0x59e777=_0x202538['mapper']['toViewPosition'](_0x52a810),_0x3f69e8=_0x202538['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x48c672});_0x202538['writer']['insert'](_0x59e777,_0x3f69e8),_0x202538['mapper']['bindElementToMarker'](_0x3f69e8,_0xafc443['markerName']);}_0x3070a9||_0x17f9f9||!_0x5101fb||_0x2529c5(_0x5101fb);};}class pt extends _0x565718{constructor(_0xee2c80){super(_0xee2c80);const _0x229d84=_0xee2c80['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x229d84,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x229d84,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x22f8c6=this['editor'],_0x5976e5=_0x22f8c6['plugins']['get'](d),_0x3c511e=_0x5976e5['isReady']?_0x5976e5['diff']['newRevisionId']:null;_0x22f8c6['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3c511e);}['refresh'](){const {isReady:_0x5e2977,isEnabled:_0x10c41b,repository:_0x4b9d0a,diff:_0x2a197a}=this['editor']['plugins']['get'](d),_0x493ee1=_0x2a197a&&_0x4b9d0a['getLaterVisibleRevision'](_0x2a197a['newRevisionId']);this['isEnabled']=_0x5e2977&&_0x10c41b&&Boolean(_0x493ee1);}}class _t extends _0x565718{['_step'];constructor(_0xa4b07b,{direction:_0x3e69ff}){super(_0xa4b07b);const _0x20a5d9=_0xa4b07b['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x3e69ff?0x1:-0x1,this['listenTo'](_0x20a5d9,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x20a5d9,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x20a5d9,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x2c2f5c=this['editor'],_0x44e444=_0x2c2f5c['plugins']['get'](d),{isNavigationMode:_0x3d7513,currentChangeNumber:_0xc54b42}=_0x44e444;let _0x43b2c7;if(_0x44e444['activeChange']=_0x3d7513?_0x44e444['diff']['changes']['get'](_0xc54b42+this['_step']):_0x44e444['diff']['changes']['first'],_0x44e444['activeChange']['data']['isOnRoot'])_0x43b2c7=_0x2c2f5c['editing']['view']['getDomRoot'](_0x44e444['activeChange']['rootName']);else{const _0x519f87=_0x2c2f5c['model']['markers']['get']('revision:'+_0x44e444['activeChange']['id']);_0x43b2c7=_0x5967d9(_0x2c2f5c['editing'],_0x519f87);}_0x2ff103({'target':_0x43b2c7,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x407535,currentChangeNumber:_0x4e929b,numberOfChanges:_0x25dd96,isReady:_0x55c9d8,isEnabled:_0x3cc33a}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x3cc33a&&_0x55c9d8&&_0x25dd96)&&(!_0x407535||(0x1===this['_step']?_0x4e929b<_0x25dd96-0x1:_0x4e929b>0x0));}}class di extends ts{constructor(_0x401c8b){super(_0x401c8b);const _0x5e3275=this['bindTemplate'],_0x4f2e8d=new te(_0x401c8b),_0x27675c=new te(_0x401c8b);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',(_0x1b65c1,_0x44b6ba)=>_0x1b65c1&&_0x44b6ba>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x499063,_0x4df304,_0x1356d5,_0x5b1469)=>{if(!_0x499063)return m(_0x401c8b,'Loading...');if(!_0x1356d5)return m(_0x401c8b,'No\x20changes');const _0x19d129=m(_0x401c8b,'NUMBER_OF_CHANGES',_0x1356d5);return _0x5b1469?m(_0x401c8b,'X_OF_Y_CHANGES',[_0x4df304+0x1,_0x1356d5]):_0x19d129;}),_0x4f2e8d['set']({'label':m(_0x401c8b,'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'}),_0x27675c['set']({'label':m(_0x401c8b,'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'}),_0x4f2e8d['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x27675c['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x4f2e8d['on']('execute',()=>this['fire']('execute','backward')),_0x27675c['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',_0x5e3275['if']('_isStatusLabelVisible','ck-hidden',_0x2eed47=>!_0x2eed47)]},'children':[{'text':_0x5e3275['to']('isNavigationMode',_0x11defb=>_0x11defb?m(_0x401c8b,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x401c8b,'Total')+':\x20')}]},{'text':_0x5e3275['to']('_statusText')}]},new _0xf85ce8(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x4f2e8d,_0x27675c]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x3bebb5{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x3bb7dd=this['editor']['editing']['view'];_0x3bb7dd['change'](_0x237b3e=>{for(const _0x1f1fdf of _0x3bb7dd['document']['roots'])_0x237b3e['addClass'](le,_0x1f1fdf);});}['hide'](){const _0x23f825=this['editor']['editing']['view'];_0x23f825['change'](_0x153f40=>{for(const _0x118883 of _0x23f825['document']['roots'])_0x153f40['removeClass'](le,_0x118883);});}}class g extends _0x3bebb5{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ge];}['init'](){const _0x3c6bb1=this['editor'],_0x565a28=_0x3c6bb1['plugins']['get'](d),_0x20bbdf=_0x3c6bb1['plugins']['get'](ge);_0x3c6bb1['ui']['componentFactory']['add']('exitToEditing',_0x18cd14=>{const _0x1c5c03=new te(_0x18cd14);return _0x1c5c03['set']({'label':m(_0x18cd14,'Back\x20to\x20editing'),'icon':_0x3c7ca0['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x1c5c03,'execute',()=>{_0x3c6bb1['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x1c5c03;}),_0x3c6bb1['ui']['componentFactory']['add']('restoreRevision',_0x26624c=>{const _0x399e16=new te(_0x26624c);return _0x399e16['set']({'label':m(_0x26624c,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x399e16['bind']('isEnabled')['to'](_0x3c6bb1['commands']['get']('restoreRevision')),this['listenTo'](_0x399e16,'execute',()=>_0x3c6bb1['execute']('restoreRevision')),_0x399e16;}),_0x3c6bb1['ui']['componentFactory']['add']('changesNavigation',_0x68c475=>{const _0x59a747=new di(_0x68c475),_0x1ba6ad=_0x3c6bb1['commands']['get']('showPreviousChange'),_0x1d3834=_0x3c6bb1['commands']['get']('showNextChange');return _0x59a747['bind']('isBackwardNavigationEnabled')['to'](_0x1ba6ad,'isEnabled'),_0x59a747['bind']('isForwardNavigationEnabled')['to'](_0x1d3834,'isEnabled'),_0x59a747['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x565a28),this['listenTo'](_0x59a747,'execute',(_0xb33114,_0x3ffc69)=>{_0x3c6bb1['execute']('forward'===_0x3ffc69?'showNextChange':'showPreviousChange');}),_0x59a747;}),_0x20bbdf['show'](),_0x565a28['on']('change:isReady',(_0x41ae69,_0x539a5c,_0x2b45d8)=>{_0x2b45d8?_0x20bbdf['hide']():_0x20bbdf['show']();});}}class at extends _0x149fcb{['_resizeObserver']=null;constructor(_0x262342,_0x564e11){super(_0x262342,_0x564e11);const _0x46c178=this['bindTemplate'];this['set']({'label':m(_0x262342,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x262342,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x46c178['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 _0x3fa25b=this['fieldView']['element'];this['_tooltipString']=_0x3fa25b['scrollWidth']>_0x3fa25b['clientWidth']&&_0x3fa25b['value']||'';}}class oi extends ts{constructor(_0x290454,_0x35dd45,_0x4c0f8b){super(_0x290454);const _0x4c5ab3=new _0x274e21();_0x4c5ab3['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 _0x579506=['ck','ck-revision-history-sidebar__revision-author'];_0x4c0f8b&&_0x579506['push']('ck-revision-history-sidebar__revision-author_creator');const _0x1f00a5=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x290454,_0x4c0f8b?'Revision\x20creator':'Revision\x20author')},'children':[_0x4c5ab3,_0x35dd45['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x579506},'children':_0x1f00a5});}}function ai(_0x3aea56,_0x104a4f){const _0x107585=_0x3aea56['bindTemplate'],_0x2ddfa6=_0x3aea56['locale'],_0x47f407=_0x20bc7e(_0x2ddfa6);_0x47f407['panelPosition']='sw';const _0x4469cf=function(_0x5af677,_0x491b01){const _0x2e5960=function(_0x1ad698,_0x3d8740){const _0x2e71bd=_0x1ad698['locale'],_0x3ed5b8={'Compare\x20against\x20selected':m(_0x2e71bd,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x2e71bd,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x2e71bd,'Restore\x20this\x20revision')};return _0x3d8740['map'](_0x14be5d=>{const _0x1ec096=_0x3ed5b8[_0x14be5d['name']];return _0x1ec096&&_0x1ec096!==_0x14be5d['name']&&(_0x14be5d['name']=_0x1ec096),_0x14be5d;});}(_0x5af677,_0x491b01),_0x31f9e5=new _0x4898c5();for(const _0x15fd4a of _0x2e5960){const _0x21a9f1={'type':'button','model':new _0x5a9307({'label':_0x15fd4a['name'],'class':_0x15fd4a['class'],'withText':!0x0,'role':'menuitem','_action':_0x15fd4a['action']})};_0x21a9f1['model']['bind']('isEnabled')['to'](_0x5af677,'isActionsDropdownOpen',_0x418267=>'function'!=typeof _0x15fd4a['isEnabled']||(!_0x418267||_0x15fd4a['isEnabled'](_0x5af677))),_0x31f9e5['add'](_0x21a9f1);}return _0x31f9e5;}(_0x3aea56,_0x104a4f);return _0x3aea56['bind']('isActionsDropdownOpen')['to'](_0x47f407,'isOpen'),_0x47f407['buttonView']['set']({'label':m(_0x2ddfa6,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3c7ca0['threeVerticalDots']}),_0x47f407['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x107585['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x107585['to'](_0x4a93bf=>_0x4a93bf['stopPropagation']())}}),_0x47f407['on']('execute',_0x389669=>{_0x3aea56['isReady']&&'function'==typeof _0x389669['source']['_action']&&_0x389669['source']['_action'](_0x3aea56);}),to(_0x47f407,_0x4469cf,{'role':'menu'}),_0x47f407['listenTo'](_0x3aea56,'change:isActionsDropdownOpen',(_0xcd21d7,_0x52b068,_0x511bb0)=>{if(_0x511bb0)for(const _0x46b237 of _0x47f407['listView']['items']){const _0x2f221a=_0x46b237['children']['first'],_0xf230be=_0x104a4f['find'](_0x2c0bc6=>_0x2c0bc6['action']===_0x2f221a['_action'])['isVisible'];_0x46b237['isVisible']=void 0x0===_0xf230be||_0xf230be(_0x3aea56);}}),_0x47f407;}class si extends/* #__PURE__ -- @preserve */
26
- _0x419b7f(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x2d1efc,_0x59e986,_0x36d770,_0x18cea4){super(_0x2d1efc);const _0x2ab07a=this['bindTemplate'],_0x56c603=function(_0x518d7,_0x4ade10){const _0x3d3a26=Array['from'](_0x4ade10['authors'])['filter'](_0x23e0cf=>_0x23e0cf!=_0x4ade10['creator']);return _0x4ade10['creator']&&_0x3d3a26['unshift'](_0x4ade10['creator']),_0x3d3a26['map'](_0x2c811e=>new oi(_0x518d7,_0x2c811e,_0x2c811e==_0x4ade10['creator']));}(_0x2d1efc,_0x59e986);this['id']=_0x59e986['id'],this['_revision']=_0x59e986,this['_requireRevisionName']=_0x18cea4,this['bind']('name','createdAt')['to'](_0x59e986),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x592153=>{return _0x324781=_0x2d1efc['uiLanguage'],(_0x2301fd=_0x592153)['toLocaleDateString'](_0x324781,{'month':'long','day':'numeric'})+',\x20'+_0x2301fd['toLocaleTimeString'](_0x324781,{'hour':'numeric','minute':'numeric'});var _0x324781,_0x2301fd;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x2d1efc,_0x134a02),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x25b0f0=>_0x25b0f0||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x4f9f4c,_0x3a0e6c)=>_0x4f9f4c&&_0x3a0e6c),this['revisionActionsView']=_0x36d770&&_0x36d770['length']?ai(this,_0x36d770):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x2ab07a['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x2ab07a['if']('isEnabled','ck-disabled',_0x1c7a7f=>!_0x1c7a7f),_0x2ab07a['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x2ab07a['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x2ab07a['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':_0x2ab07a['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':_0x56c603}]},this['revisionActionsView']],'on':{'click':_0x2ab07a['to'](_0x3dca7a=>{_0x3dca7a['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x1b4919=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x1b4919,'change',()=>{this['_requireRevisionName']&&!_0x1b4919['value']||this['fire']('setName',{'id':this['id'],'name':_0x1b4919['value']}),_0x1b4919['value']||(_0x1b4919['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ti(_0x5663b,_0x12aa8b){const _0x12d8f7=_0x32251d['fromJSDate'](_0x5663b)['setLocale'](_0x12aa8b),_0x2d614f=_0x32251d['local'](),_0x5cf394=_0x2d614f['minus']({'days':0x1})['startOf']('day');let _0x40b7c9,_0x19ae50;return _0x12d8f7['hasSame'](_0x2d614f,'day')?(_0x40b7c9=_0x12d8f7['startOf']('day')['toJSDate'](),_0x19ae50=_0x12d8f7['toRelativeCalendar']()):_0x12d8f7['hasSame'](_0x5cf394,'day')?(_0x40b7c9=_0x5cf394['toJSDate'](),_0x19ae50=_0x12d8f7['toRelativeCalendar']()):_0x12d8f7['hasSame'](_0x2d614f,'week')?(_0x40b7c9=_0x12d8f7['startOf']('week')['toJSDate'](),_0x19ae50=_0x12d8f7['weekdayLong']||''):_0x12d8f7['hasSame'](_0x2d614f,'year')?(_0x40b7c9=_0x12d8f7['startOf']('month')['toJSDate'](),_0x19ae50=_0x12d8f7['monthLong']||''):(_0x40b7c9=_0x12d8f7['startOf']('year')['toJSDate'](),_0x19ae50=String(_0x12d8f7['year'])),{'startDate':_0x40b7c9,'localizedPeriodName':_0x19ae50};}class ei extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x24613e,_0x5df58a,_0x52614e,_0x397980){super(_0x24613e);const _0x26d1f8=ti(_0x5df58a,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x5df58a,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x52614e,this['_requireRevisionName']=_0x397980,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':_0x26d1f8}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x3338c4){const _0x40504a=new si(this['locale'],_0x3338c4,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x40504a);}['removeRevision'](_0x7ca3f2){const _0x3daa9c=this['revisionViews']['find'](_0x19b9cc=>_0x19b9cc['id']===_0x7ca3f2['id']);this['revisionViews']['remove'](_0x3daa9c);}}class cs extends ts{constructor(_0x1b74c9){super(_0x1b74c9);const _0x2a1e5b=new _0x274e21();_0x2a1e5b['content']=_0x3c7ca0['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x2a1e5b,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x1b74c9,'Revision\x20history')]}]});}}class ii extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x1e7be7,_0x285f75,_0x28070f,_0x274a5f){super(_0x1e7be7);const _0x280eea=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x285f75,this['_revisionActions']=_0x28070f,this['_requireRevisionName']=_0x274a5f,this['on']('select',(_0x222a44,_0x250236)=>{this['fire']('revisionSelected',_0x250236);}),this['on']('setName',(_0x380274,_0xa235cd)=>{this['fire']('revisionSetName',_0xa235cd);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new cs(_0x1e7be7),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x280eea['if']('isEnabled','ck-disabled',_0x52d06d=>!_0x52d06d)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x224db9 of this['_revisions'])this['_addRevision'](_0x224db9);this['_revisions']['on']('add',(_0x6a8492,_0x489032)=>{this['_addRevision'](_0x489032);}),this['_revisions']['on']('remove',(_0x2e3c9c,_0x143236)=>{this['_removeRevision'](_0x143236);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x39f679=>_0x39f679['revisionViews']['map'](_0x18b0ed=>_0x18b0ed))['flat']();}['selectRevision'](_0x562772){for(const _0x2634f2 of this['revisionViews'])_0x562772&&_0x562772['id']===_0x2634f2['id']?_0x2634f2['select']():_0x2634f2['deselect']();}['highlightRevisions'](_0x45b22c){for(const _0x34a12f of this['revisionViews'])_0x45b22c['some'](({id:_0x377101})=>_0x377101===_0x34a12f['id'])?_0x34a12f['highlight']():_0x34a12f['unhighlight']();}['_addRevision'](_0x22b1ba){const _0x4f930a=ti(_0x22b1ba['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x3403f9=this['timePeriodViews']['get'](0x0);_0x3403f9&&_0x3403f9['startDate']['getTime']()===_0x4f930a['getTime']()||(_0x3403f9=new ei(this['locale'],_0x4f930a,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x3403f9)),_0x3403f9['addRevision'](_0x22b1ba);}['_removeRevision'](_0x46f31f){const _0x1ed76c=ti(_0x46f31f['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x1ed76c)['removeRevision'](_0x46f31f);}['_getTimePeriodViewByStartDate'](_0x588fa7){return this['timePeriodViews']['find'](_0x10900d=>_0x10900d['startDate']['getTime']()===_0x588fa7['getTime']());}}class w extends _0x3bebb5{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x56bb44,uid as _0x7bac97,Collection as _0x2ff70c,logWarning as _0x55fcac,FocusTracker as _0x1e0689,KeystrokeHandler as _0xabb4ae,scrollViewportToShowTarget as _0x524a74,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x35a358}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x4f0a8f,set as _0x3b6183,unset as _0x25f974,isEqual as _0x35af8b}from'lodash-es';import{Plugin as _0x38f4f7,PendingActions as _0x397ed5,icons as _0x23c949,Command as _0xebfd2f,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x4c2d32,getMarkerDomElement as _0x8a99ae,ConfirmMixin as _0x34480e,sanitizeEditorConfig as _0x5b0573}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x5069ac,Element as ft,Range as vt,ViewUIElement as _0x4ed8b6,ViewRawElement as _0x21f19b,ViewEmptyElement as _0x481447,ViewAttributeElement as _0x4a57c1,ViewContainerElement as _0x20dad9,Position as gt,ViewText as _0x51c9c5,ViewElement as _0x16c8d2,DocumentFragment as mt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x292cac,injectCssTransitionDisabler as ts,submitHandler as _0x4306fa,LabeledFieldView as nt,createLabeledInputText as _0x11ce75,createDropdown as _0xb121cb,ListView as te,ListItemView as _0x35372d,ButtonView as _0x559b2e,MenuBarMenuView as _0xc61a72,MenuBarMenuListView as _0x4371dd,MenuBarMenuListItemView as _0x19ccac,MenuBarMenuListItemButtonView as _0x4d5058,ContextualBalloon as _0x192215,ToolbarSeparatorView as _0x5b8931,IconView as _0x2c29c5,addListToDropdown as _0x478fff,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 _0x549665}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
+ _0x56bb44(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x13909f){super(),this['id']=_0x13909f['id']||_0x7bac97(),this['creator']=_0x13909f['creator']||null,this['authors']=_0x13909f['authors']||[],this['diffData']=_0x13909f['diffData']||null,this['toVersion']=_0x13909f['toVersion']||0x0,this['fromVersion']=_0x13909f['fromVersion']||0x0,this['set']('name',_0x13909f['name']||''),this['set']('createdAt',_0x13909f['createdAt']||new Date()),this['set']('attributes',_0x13909f['attributes']||{});}['setName'](_0x2b71f5){this['_update']({'name':_0x2b71f5});}['setAttribute'](_0x3bf916,_0x5d1212){const _0x27e81e=_0x4f0a8f(this['attributes']);_0x3b6183(_0x27e81e,_0x3bf916,_0x5d1212),this['_update']({'attributes':_0x27e81e});}['removeAttribute'](_0x1ed29a){const _0x49a203=_0x4f0a8f(this['attributes']);_0x25f974(_0x49a203,_0x1ed29a),this['_update']({'attributes':_0x49a203});}['_update'](_0x51f090,_0x1fad92=!0x1){let _0x4f2292=!0x1;const _0x2f22ba={'id':this['id']},_0x9ad369=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x2506cb of _0x9ad369){const _0x18f0f8=_0x51f090[_0x2506cb];void 0x0!==_0x18f0f8&&_0x18f0f8!==this[_0x2506cb]&&(this[_0x2506cb]=_0x18f0f8,_0x2f22ba[_0x2506cb]=_0x18f0f8,_0x4f2292=!0x0);}_0x4f2292&&(_0x2f22ba['authors']&&(_0x2f22ba['authorsIds']=_0x2f22ba['authors']['map'](_0x2e90bf=>_0x2e90bf['id']),delete _0x2f22ba['authors']),this['fire']('_update',_0x2f22ba,_0x1fad92));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x15c449=>_0x15c449['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x38f4f7{['_revisions'];static get['requires'](){return[_0x4c2d32];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x2d24ae){super(_0x2d24ae),this['_revisions']=new _0x2ff70c();}['afterInit'](){!async function(_0x5d9a5b){const _0x51fab5=_0x4002da([0x53,0x34,0x74,0x4d,0x4c,0x39,0x69,0x50,0x75,0x5a,0x58,0x6e,0x4b,0x64,0x42,0x57,0x32,0x33,0x54,0x63,0x4e,0x7a,0x6f,0x72,0x48,0x68,0x44,0x66,0x43,0x78,0x30,0x71,0x45,0x49,0x65,0x61,0x67,0x31,0x79,0x47,0x77,0x51,0x59,0x56,0x36,0x6b,0x35,0x73,0x70,0x4a,0x6c,0x55,0x76,0x62,0x6d,0x46,0x52,0x37,0x41,0x4f,0x6a,0x38]),_0x3c8b51=0xeb829,_0x3dfc76=0x4ae2225c,_0x1fc10a=0x4ae57c2c^_0x3dfc76,_0x1bdbd2=window[_0x4002da([0x44,0x61,0x74,0x65])][_0x4002da([0x6e,0x6f,0x77])](),_0x432fb5=_0x5d9a5b[_0x4002da([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5380b9=new window[(_0x4002da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28641f=>{_0x432fb5[_0x4002da([0x6f,0x6e,0x63,0x65])](_0x4002da([0x72,0x65,0x61,0x64,0x79]),_0x28641f);}),_0x41f646={[_0x4002da([0x6b,0x74,0x79])]:_0x4002da([0x45,0x43]),[_0x4002da([0x75,0x73,0x65])]:_0x4002da([0x73,0x69,0x67]),[_0x4002da([0x63,0x72,0x76])]:_0x4002da([0x50,0x2d,0x32,0x35,0x36]),[_0x4002da([0x78])]:_0x4002da([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]),[_0x4002da([0x79])]:_0x4002da([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]),[_0x4002da([0x61,0x6c,0x67])]:_0x4002da([0x45,0x53,0x32,0x35,0x36])},_0x5464fc=_0x432fb5[_0x4002da([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4002da([0x67,0x65,0x74])](_0x4002da([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x969b90(){let _0x2e3859,_0x480d81=null,_0x2e5196=null;try{if(_0x5464fc==_0x4002da([0x47,0x50,0x4c]))return _0x4002da([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2e3859=_0x484b74(),!_0x2e3859)return _0x4002da([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2e3859[_0x4002da([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2e5196=_0x8f19f5(_0x2e3859[_0x4002da([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2e3859[_0x4002da([0x6a,0x74,0x69])])),await _0x9a7cdb()?_0x2e91d7()?_0xbfd729()?_0x4002da([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4c11a1()?(_0x2e3859[_0x4002da([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4002da([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x480d81=_0x6773cd(_0x4002da([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2e3859[_0x4002da([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4002da([0x74,0x72,0x69,0x61,0x6c])&&(_0x480d81=_0x6773cd(_0x4002da([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x59a076()):_0x4002da([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4002da([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4002da([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x118775){return _0x4002da([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xbfd729(){const _0x44b69b=[_0x4002da([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4002da([0x74,0x72,0x69,0x61,0x6c])][_0x4002da([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e3859[_0x4002da([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1bdbd2/0x3e8:0xe10*_0x1fc10a;return _0x2e3859[_0x4002da([0x65,0x78,0x70])]<_0x44b69b;}function _0x2e91d7(){const _0x4e557e=_0x2e3859[_0x4002da([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4e557e)return!0x1;if(_0x4e557e[_0x4002da([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4002da([0x2a])))return!0x0;if(_0x4e557e[_0x4002da([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4002da([0x52,0x48])))return!0x0;if(_0x4e557e[_0x4002da([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4002da([0x52,0x52,0x48]))){if(_0x86d5db())return!0x0;if(_0x101981()||_0x3ebc5b())return!0x0;}return!0x1;}function _0x4c11a1(){const _0x2760dc=_0x2e3859[_0x4002da([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2760dc||0x0==_0x2760dc[_0x4002da([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xaacb5c}=new URL(window[_0x4002da([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2760dc[_0x4002da([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xaacb5c))return!0x0;const _0x2ab325=_0xaacb5c[_0x4002da([0x73,0x70,0x6c,0x69,0x74])](_0x4002da([0x2e]));return _0x2760dc[_0x4002da([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5c72d0=>_0x5c72d0[_0x4002da([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4002da([0x2a])))[_0x4002da([0x6d,0x61,0x70])](_0x184afa=>_0x184afa[_0x4002da([0x73,0x70,0x6c,0x69,0x74])](_0x4002da([0x2e])))[_0x4002da([0x73,0x6f,0x6d,0x65])](_0x4826d8=>_0x2ab325[_0x4002da([0x65,0x76,0x65,0x72,0x79])]((_0x23de81,_0x60dcb2)=>_0x4826d8[_0x60dcb2]===_0x23de81||_0x4826d8[_0x60dcb2]===_0x4002da([0x2a])));}function _0x59a076(){return _0x480d81&&_0x2e5196?new window[(_0x4002da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xd591df,_0x293430)=>{_0x480d81[_0x4002da([0x74,0x68,0x65,0x6e])](_0xd591df,_0x293430),_0x2e5196[_0x4002da([0x74,0x68,0x65,0x6e])](_0x16e50b=>{_0x16e50b!=_0x4002da([0x56,0x61,0x6c,0x69,0x64])&&_0xd591df(_0x16e50b);},_0x293430);}):_0x480d81||_0x2e5196||_0x4002da([0x56,0x61,0x6c,0x69,0x64]);}}function _0x8f19f5(_0x4a5b7f,_0xde405b){return new window[(_0x4002da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x339d9a=>{if(_0x498d34())return _0x339d9a(_0x4002da([0x56,0x61,0x6c,0x69,0x64]));_0x4044eb(),_0x432fb5[_0x4002da([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4002da([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2968c1=!0x1;const _0x92ca36=_0x7bac97();function _0x346c3b(_0x174dc0){return!!_0x174dc0&&(typeof _0x174dc0===_0x4002da([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x174dc0===_0x4002da([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x174dc0[_0x4002da([0x74,0x68,0x65,0x6e])]===_0x4002da([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x174dc0[_0x4002da([0x63,0x61,0x74,0x63,0x68])]===_0x4002da([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4d8606(_0x59e317){_0x38f836(_0x59e317)[_0x4002da([0x74,0x68,0x65,0x6e])](_0x4a4528=>{if(!_0x4a4528||_0x4a4528[_0x4002da([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4002da([0x6f,0x6b]))return _0x4002da([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3e4f48(_0x678554(_0x92ca36+_0xde405b))!=_0x4a4528[_0x4002da([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4002da([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4002da([0x56,0x61,0x6c,0x69,0x64]);})[_0x4002da([0x74,0x68,0x65,0x6e])](_0xfa6eac=>(_0x408be5(),_0xfa6eac),()=>{const _0x5d497f=_0x5391ea();return null==_0x5d497f?(_0x408be5(),_0x4002da([0x56,0x61,0x6c,0x69,0x64])):_0x4002da(_0x1bdbd2-_0x5d497f>(0x6eeea65c^_0x3dfc76)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4002da([0x74,0x68,0x65,0x6e])](_0x339d9a)[_0x4002da([0x63,0x61,0x74,0x63,0x68])](()=>{_0x339d9a(_0x4002da([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x558b6c=0x4ad4ccdc^_0x3dfc76;function _0x408be5(){const _0x44a75e=_0x4002da([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e4f48(_0x678554(_0x4a5b7f)),_0xafdf53=_0x1421be(_0x3e4f48(window[_0x4002da([0x4d,0x61,0x74,0x68])][_0x4002da([0x63,0x65,0x69,0x6c])](_0x1bdbd2/_0x558b6c)));window[_0x4002da([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4002da([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x44a75e,_0xafdf53);}function _0x5391ea(){const _0x55e55a=_0x4002da([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e4f48(_0x678554(_0x4a5b7f)),_0x4d9e8b=window[_0x4002da([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4002da([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x55e55a);return _0x4d9e8b?window[_0x4002da([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1421be(_0x4d9e8b),0x10)*_0x558b6c:null;}function _0x38f836(_0x3526da){return new window[(_0x4002da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xf06f18,_0x37c6e3)=>{_0x3526da[_0x4002da([0x74,0x68,0x65,0x6e])](_0xf06f18,_0x37c6e3),window[_0x4002da([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x37c6e3,0x4ae3f69c^_0x3dfc76);});}}_0x432fb5[_0x4002da([0x6f,0x6e])](_0x4002da([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1f6dec,_0x43063b)=>{if(_0x43063b[0x0]!=_0x4a5b7f)return _0x339d9a(_0x4002da([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x43063b[0x1]={..._0x43063b[0x1],[_0x4002da([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x92ca36};},{[_0x4002da([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4002da([0x68,0x69,0x67,0x68])}),_0x432fb5[_0x4002da([0x6f,0x6e])](_0x4002da([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4308b4=>{_0x346c3b(_0x4308b4[_0x4002da([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2968c1=!0x0,_0x4d8606(_0x4308b4[_0x4002da([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4002da([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4002da([0x6c,0x6f,0x77])}),_0x5380b9[_0x4002da([0x74,0x68,0x65,0x6e])](()=>{_0x2968c1||_0x339d9a(_0x4002da([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x498d34(){return _0x432fb5[_0x4002da([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4002da([0x76,0x69,0x65,0x77])][_0x4002da([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4002da([0x61,0x75,0x74,0x6f]);}function _0x4044eb(){_0x432fb5[_0x4002da([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4002da([0x76,0x69,0x65,0x77])][_0x4002da([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4002da([0x61,0x75,0x74,0x6f]);}}function _0x6773cd(_0x3b9262){const _0x38ebd7=[new window[(_0x4002da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ad7cc=>setTimeout(_0x1ad7cc,0x4aeb1c90^_0x3dfc76)),_0x5380b9[_0x4002da([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4002da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xfbf98e=>{const _0x4809f6=0x4ae2225b^_0x3dfc76,_0x1402d5=_0x5d9a5b[_0x4002da([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x3d9cf9(){_0x1402d5[_0x4002da([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x4809f6&&_0xfbf98e();}_0x3d9cf9(),_0x1402d5[_0x4002da([0x6f,0x6e])](_0x4002da([0x61,0x64,0x64]),_0x3d9cf9);})),new window[(_0x4002da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d8966=>{function _0x404b86(){for(const _0x3dfd70 in window)if(window[_0x4002da([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4002da([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x3dfd70))&&window[_0x3dfd70]==_0x3c8b51)return _0x5d8966();_0x432fb5[_0x4002da([0x73,0x74,0x61,0x74,0x65])]!=_0x4002da([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4002da([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x404b86,0x4ae231d4^_0x3dfc76);}_0x47a0ce(_0x4002da([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x404b86();})];return window[_0x4002da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4002da([0x72,0x61,0x63,0x65])](_0x38ebd7)[_0x4002da([0x74,0x68,0x65,0x6e])](()=>_0x3b9262);}async function _0x3bcca8(){if(await _0x5380b9,_0x47a0ce(_0x4002da([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x51210b=_0x5d9a5b[_0x4002da([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x50d57f=_0x5d9a5b[_0x4002da([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])](_0x51210b[_0x4002da([0x69,0x64])]),_0x438a16=_0x51f95b(_0x4002da([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x438a16[_0x4002da([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x51210b['id'],_0x50d57f?_0x50d57f['id']:null,!0x0),_0x438a16[_0x4002da([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4002da([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x438a16[_0x4002da([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x438a16[_0x4002da([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x1c839f,void(_0x438a16[_0x4002da([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x1c839f);}if(_0x47a0ce(_0x4002da([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x211800=_0x51f95b(_0x4002da([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x211800[_0x4002da([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4002da([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x211800[_0x4002da([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x211800[_0x4002da([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x1c839f,_0x211800[_0x4002da([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x1c839f;}_0x432fb5[_0x4002da([0x6d,0x6f,0x64,0x65,0x6c])][_0x4002da([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1c839f,_0x432fb5[_0x4002da([0x6d,0x6f,0x64,0x65,0x6c])][_0x4002da([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1c839f,_0x432fb5[_0x4002da([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4002da([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x86d5db(){return _0x47a0ce(_0x4002da([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x51f95b(_0x4002da([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4002da([0x73,0x74,0x61,0x74,0x65])]==_0x4002da([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x101981(){return _0x47a0ce(_0x4002da([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 _0x3ebc5b(){return _0x47a0ce(_0x4002da([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1e9a6d(_0x582349){const _0x4f137f=_0x63b053();_0x432fb5[_0x4f137f]=_0x4002da([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])+_0x582349,_0x582349[_0x4002da([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4002da([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x63b053()]=_0x3c8b51),_0x582349!=_0x4002da([0x56,0x61,0x6c,0x69,0x64])&&_0x3bcca8();}function _0x63b053(){const _0x2cb81a=window[_0x4002da([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4002da([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4002da([0x6e,0x6f,0x77])]())[_0x4002da([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4002da([0x2e]),'');let _0x4f18fe=_0x4002da([0x53]);for(let _0x1bd08c=0x0;_0x1bd08c<_0x2cb81a[_0x4002da([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1bd08c+=0x2){let _0x4a5dcb=window[_0x4002da([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2cb81a[_0x4002da([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1bd08c,_0x1bd08c+0x2));_0x4a5dcb>=_0x51fab5[_0x4002da([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4a5dcb-=_0x51fab5[_0x4002da([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4f18fe+=_0x51fab5[_0x4a5dcb];}return _0x4f18fe;}function _0x484b74(){const _0x209fb3=_0x5464fc[_0x4002da([0x73,0x70,0x6c,0x69,0x74])](_0x4002da([0x2e]));if(0x3!=_0x209fb3[_0x4002da([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4d05c2(_0x209fb3[0x1]);function _0x4d05c2(_0x32caf1){const _0x4aad0c=_0x244891(_0x32caf1);return _0x4aad0c&&_0x441ebd()?_0x4aad0c:null;function _0x441ebd(){const _0x136404=_0x4aad0c[_0x4002da([0x6a,0x74,0x69])],_0xc274c5=window[_0x4002da([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x136404[_0x4002da([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x136404[_0x4002da([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x34540e={..._0x4aad0c,[_0x4002da([0x6a,0x74,0x69])]:_0x136404[_0x4002da([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x136404[_0x4002da([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x34540e[_0x4002da([0x76,0x63])],_0x678554(_0x34540e)==_0xc274c5;}}}async function _0x9a7cdb(){let _0x10db5e=!0x0;try{const _0xe02a9e=_0x5464fc[_0x4002da([0x73,0x70,0x6c,0x69,0x74])](_0x4002da([0x2e])),[_0x30abdb,_0x5760d8,_0x19b2a8]=_0xe02a9e;return _0x96974(_0x30abdb),await _0x2c1d50(_0x30abdb,_0x5760d8,_0x19b2a8),_0x10db5e;}catch(_0x5617bf){return!0x1;}function _0x96974(_0x44f5ba){const _0x3bbe43=_0x244891(_0x44f5ba);_0x3bbe43&&_0x3bbe43[_0x4002da([0x61,0x6c,0x67])]==_0x4002da([0x45,0x53,0x32,0x35,0x36])||(_0x10db5e=!0x1);}async function _0x2c1d50(_0x35220b,_0x188908,_0x299ff6){const _0x10b251=window[_0x4002da([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4002da([0x66,0x72,0x6f,0x6d])](_0x4d3f29(_0x299ff6),_0x331c0d=>_0x331c0d[_0x4002da([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x19bcdb=new window[(_0x4002da([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4002da([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x35220b+_0x4002da([0x2e])+_0x188908),_0x4fbba1=window[_0x4002da([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4002da([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4fbba1)return;const _0x2c0304=await _0x4fbba1[_0x4002da([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4002da([0x6a,0x77,0x6b]),_0x41f646,{[_0x4002da([0x6e,0x61,0x6d,0x65])]:_0x4002da([0x45,0x43,0x44,0x53,0x41]),[_0x4002da([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4002da([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4002da([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4fbba1[_0x4002da([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4002da([0x6e,0x61,0x6d,0x65])]:_0x4002da([0x45,0x43,0x44,0x53,0x41]),[_0x4002da([0x68,0x61,0x73,0x68])]:{[_0x4002da([0x6e,0x61,0x6d,0x65])]:_0x4002da([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2c0304,_0x10b251,_0x19bcdb)||(_0x10db5e=!0x1);}}function _0x244891(_0x3a43b9){return _0x3a43b9[_0x4002da([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4002da([0x65,0x79]))?JSON[_0x4002da([0x70,0x61,0x72,0x73,0x65])](_0x4d3f29(_0x3a43b9)):null;}function _0x4d3f29(_0xedcc6e){return window[_0x4002da([0x61,0x74,0x6f,0x62])](_0xedcc6e[_0x4002da([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4002da([0x2b]))[_0x4002da([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4002da([0x2f])));}function _0x678554(_0x883aad){let _0xe6431b=0x1505;function _0x58a24e(_0x38172b){for(let _0x565b80=0x0;_0x565b80<_0x38172b[_0x4002da([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x565b80++){const _0x4bc26b=_0x38172b[_0x4002da([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x565b80);_0xe6431b=(_0xe6431b<<0x5)+_0xe6431b+_0x4bc26b,_0xe6431b&=_0xe6431b;}}function _0x299190(_0x27d170){Array[_0x4002da([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x27d170)?_0x27d170[_0x4002da([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x299190):_0x27d170&&typeof _0x27d170==_0x4002da([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4002da([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x27d170)[_0x4002da([0x73,0x6f,0x72,0x74])]()[_0x4002da([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x20441e,_0x13592d])=>{_0x58a24e(_0x20441e),_0x299190(_0x13592d);}):_0x58a24e(window[_0x4002da([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x27d170));}return _0x299190(_0x883aad),_0xe6431b>>>0x0;}function _0x3e4f48(_0x2f50f7){return _0x2f50f7[_0x4002da([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4002da([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4002da([0x30]));}function _0x1421be(_0x11c2ef){return _0x11c2ef[_0x4002da([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4002da([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4002da([0x6a,0x6f,0x69,0x6e])]('');}function _0x47a0ce(_0x335bdf){return _0x432fb5[_0x4002da([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4002da([0x68,0x61,0x73])](_0x335bdf);}function _0x51f95b(_0x34ddf2){return _0x432fb5[_0x4002da([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4002da([0x67,0x65,0x74])](_0x34ddf2);}function _0x1c839f(){}function _0x4002da(_0x1627db){return _0x1627db['map'](_0x6efc47=>String['fromCharCode'](_0x6efc47))['join']('');}_0x1e9a6d(await _0x969b90());}(this);}['createRevision'](_0x2c0f26){const _0x37e76a=this['editor']['plugins']['get']('Users');return new a({'id':_0x2c0f26['id'],'name':_0x2c0f26['name'],'creator':_0x2c0f26['creatorId']?_0x37e76a['getUser'](_0x2c0f26['creatorId']):null,'diffData':_0x2c0f26['diffData']||_0x2c0f26['data'],'authors':_0x2c0f26['authorsIds']['map'](_0x430cf7=>_0x37e76a['getUser'](_0x430cf7)),'createdAt':new Date(_0x2c0f26['createdAt']),'attributes':_0x2c0f26['attributes'],'fromVersion':_0x2c0f26['fromVersion'],'toVersion':_0x2c0f26['toVersion']});}['addRevision'](_0x3c8237,_0x2005e3=0x0){this['_revisions']['add'](_0x3c8237,_0x2005e3);}['getRevision'](_0x43161b){return this['_revisions']['get'](_0x43161b);}['getRevisions'](_0x502914={'toJSON':!0x1}){const _0x30886e=Array['from'](this['_revisions']);return _0x30886e['reverse'](),_0x502914['toJSON']?_0x30886e['map'](_0x5ee72f=>_0x5ee72f['toJSON']()):_0x30886e;}['getIndex'](_0x198435){return this['_revisions']['getIndex'](_0x198435);}['getEarlierVisibleRevision'](_0x11fcb7){const [,_0x39f9a5]=this['getRevisionsIterator'](_0x11fcb7,{'direction':'earlier'});return _0x39f9a5;}['getLaterVisibleRevision'](_0x3cb7f2){const [,_0x47d0db]=this['getRevisionsIterator'](_0x3cb7f2,{'direction':'later'});return _0x47d0db;}['getRevisionsInDiff'](_0x306727){const _0x4663eb=[];for(const _0x5197e2 of this['getRevisionsIterator'](_0x306727['newRevisionId']))if(_0x4663eb['push'](_0x5197e2),_0x5197e2['id']===_0x306727['oldRevisionId'])break;return _0x4663eb;}*['getRevisionsIterator'](_0x53de09,{direction:_0x2ade92='earlier',filter:_0x28313c=()=>!0x0}={}){const _0x354acc='earlier'===_0x2ade92?0x1:-0x1;let _0xe4ca83=this['_revisions']['get'](_0x53de09),_0x4811ab=this['getIndex'](_0xe4ca83);for(yield _0xe4ca83;_0xe4ca83;){if(_0x4811ab+=_0x354acc,_0xe4ca83=this['getRevision'](_0x4811ab),!_0xe4ca83)return;_0x28313c(_0xe4ca83)&&(yield _0xe4ca83);}}}function m(_0x189438,_0x1d811a,_0x31cc76){const t=_0x189438['t'];switch(_0x1d811a){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'},_0x31cc76);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x31cc76);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':_0x20dad9,'a':_0x4a57c1,'e':_0x481447,'r':_0x21f19b,'u':_0x4ed8b6};class l extends _0x38f4f7{['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[_0x4c2d32,j,_0x397ed5];}constructor(_0xb608be){super(_0xb608be),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 _0x5827a0=_0x7bac97();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x5827a0},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 _0x3253d6=this['repository']['getRevision'](0x0),_0x2ee9a2=_0x3253d6&&null===_0x3253d6['creator']?_0x3253d6:null;if(this['_continueCurrentRevision']=!!_0x2ee9a2&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x4a746c=this['_source']['getCurrentRevisionId'](),_0xca9b60=this['repository']['getRevision'](_0x4a746c);if(_0xca9b60)this['_startingVersion']=_0xca9b60['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x1bbf06=this['_source']['history']['_operations']['find'](_0x46e747=>!_0x46e747['_isInit']),_0x23d12d=_0x1bbf06?_0x1bbf06['baseVersion']:this['_source']['history']['version'];_0x3253d6?(_0x3253d6['toVersion']<_0x23d12d&&_0x3253d6['_update']({'toVersion':_0x23d12d}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x2ee9a2['id'],this['_startingVersion']=_0x2ee9a2['fromVersion']):(this['_startingVersion']=_0x3253d6['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x23d12d,this['_continueCurrentRevision']=!0x1);}}else _0x2ee9a2&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x2ee9a2['toVersion'],this['editor']['model']['document']['history']['version']),_0x2ee9a2['fromVersion']===_0x2ee9a2['toVersion']?(0x0!==_0x2ee9a2['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x2ee9a2['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x2ee9a2['id'],this['_startingVersion']=_0x2ee9a2['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',_0x54c922=>!_0x54c922),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xfab947=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5c8e98;for(const _0x3a9655 in _0xfab947){const _0x8950c0=_0x3a9655,_0x48ca70=_0xfab947[_0x8950c0];if('revisionHistoryLicenseKeyValid'==_0x48ca70||'revisionHistoryLicenseKeyInvalid'==_0x48ca70||'revisionHistoryLicenseKeyExpired'==_0x48ca70||'revisionHistoryLicenseKeyDomainLimit'==_0x48ca70||'revisionHistoryLicenseKeyNotAllowed'==_0x48ca70||'revisionHistoryLicenseKeyEvaluationLimit'==_0x48ca70||'revisionHistoryLicenseKeyTrialLimit'==_0x48ca70||'revisionHistoryLicenseKeyUsageLimit'==_0x48ca70){delete _0xfab947[_0x8950c0],_0x5c8e98=_0x48ca70,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x5c8e98&&_0xfab947['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x5c8e98&&_0xfab947['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x5c8e98&&_0xfab947['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x5c8e98&&_0xfab947['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x5c8e98&&_0xfab947['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x5c8e98&&_0xfab947['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x5c8e98&&_0xfab947['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x2688f2=this['repository']['getRevision'](0x0),_0x1fd8e1=await this['getRevisionDocumentData'](_0x2688f2),_0x34ee1d=await this['getRevisionRootsAttributes'](_0x2688f2);this['_replaceEditorDataWithRevisionData'](_0x1fd8e1,_0x34ee1d);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x16b931){this['_source']=_0x16b931;}async['update'](){const _0x53ca05=await this['_source']['getLatestVersion']();if(_0x53ca05>this['currentRevision']['toVersion']){await this['_loadState']();const _0x5a9062=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x53ca05});_0x5a9062['authors']=_0x5a9062['authorsIds']['map'](_0x16e03b=>this['editor']['plugins']['get']('Users')['getUser'](_0x16e03b)),this['currentRevision']['_update'](_0x5a9062);}}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'](_0x454303={},_0x1eea9a=null){const _0x435226=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x1eea9a>this['currentRevision']['toVersion']&&(_0x1eea9a=null),null===_0x1eea9a&&(_0x1eea9a=await this['_source']['getLatestVersion']());const _0x1f039f=this['_getFromVersion'](_0x1eea9a),_0x3b9644=this['buildRevisionData']({'from':_0x1f039f,'to':_0x1eea9a});if(this['currentRevision']['toVersion']<_0x1eea9a){const _0x261fd0=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x1eea9a,'to':_0x1eea9a});_0x261fd0['authors']=[],_0x261fd0['authorsIds']=[],_0x261fd0['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x261fd0,!0x0),delete _0x261fd0['authors'],_0x435226['push'](_0x261fd0);}_0x454303['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x454303['name']=_0x454303['name']||null,_0x454303['id']=_0x454303['id']||_0x7bac97(),_0x454303={..._0x454303,..._0x3b9644};const _0x26aeeb=this['addRevisionData'](_0x454303);_0x435226['push'](_0x454303);const _0x5cb8d1=this['repository']['getIndex'](_0x26aeeb);if(0x0!==_0x5cb8d1){const _0x38c749=this['repository']['getRevision'](_0x5cb8d1-0x1);if(_0x38c749['fromVersion']!==_0x1eea9a){const _0x40704b=this['_revisionDataBuilder']['getData'](_0x1eea9a,_0x38c749['toVersion']),_0x5d2d72={'id':_0x38c749['id'],'diffData':_0x40704b['diffData'],'authorsIds':_0x40704b['authorsIds'],'authors':_0x40704b['authorsIds']['map'](_0x377b5d=>this['editor']['plugins']['get']('Users')['getUser'](_0x377b5d)),'fromVersion':_0x1eea9a};_0x38c749===this['currentRevision']&&(_0x5d2d72['createdAt']=new Date(_0x454303['createdAt']['getTime']()+0xa)),_0x38c749['_update'](_0x5d2d72,!0x0),delete _0x5d2d72['authors'],_0x435226['push'](_0x5d2d72);}}if(this['adapter']){for(const _0x12230a of _0x435226)this['_bufferUpdate'](_0x12230a['id'],_0x12230a,!0x0);this['sendBufferedUpdates']();}return _0x26aeeb;}['addRevisionData'](_0x37f406){const _0x1952da=this['repository']['createRevision'](_0x37f406);return this['adapter']&&_0x1952da['on']('_update',(_0x52d16f,_0x177395,_0xd21512)=>{_0xd21512||(this['_bufferUpdate'](_0x177395['id'],_0x177395,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1952da,this['_findInsertionIndex'](_0x1952da)),_0x1952da;}async['getRevisionDocumentData'](_0x3e8d26){await this['_loadRevisionData'](_0x3e8d26);const _0x4a7420={};for(const _0x528d88 in _0x3e8d26['diffData']){if(_0x3e8d26['diffData'][_0x528d88]['attachChange']&&!_0x3e8d26['diffData'][_0x528d88]['attachChange']['isAttached'])continue;const _0x197193=this['_removeRevisionMarkers'](JSON['parse'](_0x3e8d26['diffData'][_0x528d88]['insertions'])),_0x1c763d=this['editor']['editing']['view']['document'],_0x489d35=new _0x5069ac(_0x1c763d,_0x197193['map'](_0x7a2a48=>C(_0x7a2a48,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x4a7420[_0x528d88]=this['editor']['data']['processor']['toData'](_0x489d35),this['editor']['data']['processor']['useFillerType']('default');}return _0x4a7420;}async['getRevisionRootsAttributes'](_0x4d63db){await this['_loadRevisionData'](_0x4d63db);const _0x528a81={};for(const _0xaa321a in _0x4d63db['diffData'])_0x4d63db['diffData'][_0xaa321a]['attachChange']&&!_0x4d63db['diffData'][_0xaa321a]['attachChange']['isAttached']||(_0x528a81[_0xaa321a]=_0x4d63db['diffData'][_0xaa321a]['attributesAfter']||{});return _0x528a81;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x557b11=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x46484f=0x0;_0x46484f<_0x557b11['length'];_0x46484f++){const _0x388b1d=_0x557b11[_0x46484f];let _0x50b7da=!0x1;for(const _0x4a34ff of Object['keys'](_0x388b1d))void 0x0===_0x388b1d[_0x4a34ff]?delete _0x388b1d[_0x4a34ff]:'id'!==_0x4a34ff&&(_0x50b7da=!0x0);_0x50b7da||(_0x557b11[_0x46484f]=null);}if(_0x557b11=_0x557b11['filter'](_0x1560f2=>null!==_0x1560f2),!_0x557b11['length'])return;for(let _0x5abfd6=0x0;_0x5abfd6<_0x557b11['length'];_0x5abfd6++){const _0x19e2f4=_0x557b11[_0x5abfd6];void 0x0!==_0x19e2f4['fromVersion']&&void 0x0===_0x19e2f4['toVersion']&&(_0x19e2f4['toVersion']=this['repository']['getRevision'](_0x19e2f4['id'])['toVersion']),void 0x0!==_0x19e2f4['toVersion']&&void 0x0===_0x19e2f4['fromVersion']&&(_0x19e2f4['fromVersion']=this['repository']['getRevision'](_0x19e2f4['id'])['fromVersion']);}const _0x2bfb09=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x557b11,_0x2bfb09)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x3e7f78=>{if(_0x3e7f78){for(const _0x2a53d2 of _0x3e7f78)this['setRevisionData']({'id':_0x2a53d2['id'],'createdAt':_0x2a53d2['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0xc7aaee,_0x168ab1){let _0x199801=this['editor']['config']['get']('initialData'),_0x30cb26=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x199801){_0x199801={};for(const _0x247a6b of this['editor']['model']['document']['getRootNames']())_0x199801[_0x247a6b]='';}if('string'==typeof _0x199801&&(_0x199801={'main':_0x199801}),void 0x0===_0x30cb26){_0x30cb26={};for(const _0xd97719 of this['editor']['model']['document']['getRootNames']())_0x30cb26[_0xd97719]={};}let _0x2413c1=!0x1;const _0x2a1091=Object['keys'](_0x199801),_0x11b297=Object['keys'](_0xc7aaee);for(const _0x43e6b4 of _0x2a1091){if(_0x199801[_0x43e6b4]!==_0xc7aaee[_0x43e6b4]&&''!==_0x199801[_0x43e6b4]['trim']()){_0x2413c1=!0x0;break;}if(!_0x35af8b(_0x30cb26[_0x43e6b4],_0x168ab1[_0x43e6b4])&&Object['keys'](_0x30cb26[_0x43e6b4])['length']>0x0){_0x2413c1=!0x0;break;}}_0x2413c1||(_0x2413c1=_0x11b297['some'](_0x117f2f=>!this['editor']['model']['document']['getRoot'](_0x117f2f))),_0x2413c1&&_0x55fcac('editor-initial-data-replaced-with-revision-data',{'editorData':_0x199801,'editorRootsAttributes':_0x30cb26,'revisionData':_0xc7aaee,'revisionRootsAttributes':_0x168ab1}),this['editor']['config']['set']('initialData',_0xc7aaee),this['editor']['config']['set']('rootsAttributes',_0x168ab1);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x3cbfc0=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x3cbfc0['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x731eaf){const _0x2d2a85=this['repository']['getRevisions']();_0x2d2a85['reverse']();let _0x26ecd0=0x0;for(;_0x26ecd0<_0x2d2a85['length'];){const _0x3a428a=_0x2d2a85[_0x26ecd0];if(_0x3a428a===this['currentRevision']){_0x26ecd0++;continue;}if(_0x3a428a['id']===this['_initialRevisionId'])break;const _0x6c5cf6=_0x731eaf['toVersion']-_0x3a428a['toVersion']||_0x731eaf['fromVersion']-_0x3a428a['fromVersion'];if(_0x6c5cf6>0x0)break;if(_0x6c5cf6<0x0)_0x26ecd0++;else{if(!_0x731eaf['creator']&&_0x3a428a['creator'])break;if(_0x3a428a['creator']||!_0x731eaf['creator']){if(_0x731eaf['createdAt']>_0x3a428a['createdAt'])break;_0x26ecd0++;}else _0x26ecd0++;}}return _0x26ecd0;}['setRevisionData'](_0x3e3692){const _0x59f450=this['repository']['getRevision'](_0x3e3692['id']);if(_0x3e3692['createdAt']&&(_0x3e3692['createdAt']=new Date(_0x3e3692['createdAt'])),_0x3e3692['authorsIds']){const _0x6bc36e=this['editor']['plugins']['get']('Users');_0x3e3692['authors']=_0x3e3692['authorsIds']['map'](_0x3bb391=>_0x6bc36e['getUser'](_0x3bb391));}_0x59f450['_update'](_0x3e3692,!0x0);}['buildRevisionData']({revision:_0x398629=null,from:_0x4bc9df=null,to:_0x729d28=null}){_0x4bc9df=null!==_0x4bc9df?_0x4bc9df:_0x398629['fromVersion'],_0x729d28=null!==_0x729d28?_0x729d28:_0x398629['toVersion'];const _0x375426=this['_revisionDataBuilder']['getData'](_0x4bc9df,_0x729d28),_0x364275={'diffData':_0x375426['diffData'],'authorsIds':_0x375426['authorsIds'],'fromVersion':_0x4bc9df,'toVersion':_0x729d28};if(!_0x398629||_0x729d28!==_0x398629['toVersion']){const _0x4edfbe=_0x729d28-0x1,_0x4b146d=this['_source']['history']['getOperation'](_0x4edfbe);_0x364275['createdAt']=_0x4b146d&&_0x4b146d['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4bc9df===this['_loadedStateData']['fromVersion']){for(const _0x374a95 of this['_loadedStateData']['authors'])_0x364275['authorsIds']['includes'](_0x374a95['id'])||_0x364275['authorsIds']['push'](_0x374a95['id']);}return _0x364275;}['_loadRevisionData'](_0x259725){if(!_0x259725||_0x259725['diffData'])return Promise['resolve']();{const _0x4c0e6d=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x4c0e6d,'revisionId':_0x259725['id']})['then'](_0x2f31b1=>{_0x259725['diffData']=_0x2f31b1['diffData'];});}}['_bufferUpdate'](_0x2d289d,_0x13449f,_0x34f685){if(this['_bufferedUpdates']['has'](_0x2d289d)){const _0x1ac899=this['_bufferedUpdates']['get'](_0x2d289d);_0x13449f=_0x34f685?{..._0x1ac899,..._0x13449f}:{..._0x13449f,..._0x1ac899};}this['_bufferedUpdates']['set'](_0x2d289d,_0x13449f);}['_getFromVersion'](_0x524067){const _0x3d0aac=this['repository']['getRevisions']();_0x3d0aac['reverse'](),_0x3d0aac['shift']();const _0x2288a9=_0x3d0aac['find'](_0x51f2f4=>_0x51f2f4['toVersion']<=_0x524067)['toVersion'];return _0x2288a9<this['_startingVersion']?this['_startingVersion']:_0x2288a9;}['_createInitialRevision'](_0x5d86d0){const _0x34d033=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x34d033)this['_initialRevisionId']=_0x34d033['id'];else{const _0x2b2cc0=!this['editor']['model']['document']['roots']['find'](_0x135dd7=>this['editor']['model']['hasContent'](_0x135dd7)),_0x1ae7f8=this['editor']['plugins']['get']('Users')['me']['id'],_0x6cca1c=m(this['editor']['locale'],_0x2b2cc0?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x5d86d0,'to':_0x5d86d0,'id':this['_initialRevisionId'],'name':_0x6cca1c,'creatorId':_0x1ae7f8});}}['_createCurrentRevision'](_0x383856){const _0x120fb=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x120fb),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x383856,'to':_0x383856,'id':_0x120fb,'name':'','creatorId':null}));}['_makeRevision']({name:_0x17db6e,from:_0x58b254,to:_0x21feee,creatorId:_0x4c6784,id:_0x4be724}){const _0x1980fc=this['buildRevisionData']({'from':_0x58b254,'to':_0x21feee});_0x1980fc['name']=_0x17db6e,_0x1980fc['creatorId']=_0x4c6784,_0x1980fc['id']=_0x4be724;const _0x27f35c=this['addRevisionData'](_0x1980fc);return this['adapter']&&this['_bufferUpdate'](_0x1980fc['id'],_0x1980fc,!0x0),_0x27f35c;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x1d1442){return(_0x1d1442=_0x1d1442['filter'](_0x23b658=>!_0x23b658['name']||'revision-start'!==_0x23b658['name']&&'revision-end'!==_0x23b658['name']))['forEach'](_0x7f20f5=>{'string'!=typeof _0x7f20f5&&(_0x7f20f5['children']=this['_removeRevisionMarkers'](_0x7f20f5['children']),_0x7f20f5['attributes']=_0x7f20f5['attributes']['filter'](_0x3927b5=>!_0x3927b5[0x0]['startsWith']('data-revision-')));}),_0x1d1442;}}function C(_0x8b402b,_0x2fe26b){const _0x4b35d1=_0x2fe26b['editing']['view']['document'];if('string'==typeof _0x8b402b)return new _0x51c9c5(_0x4b35d1,_0x8b402b);{const _0x3b3c89=_0x8b402b['children']['map'](_0xdca7a=>C(_0xdca7a,_0x2fe26b));return new(P[_0x8b402b['type']]||_0x16c8d2)(_0x4b35d1,_0x8b402b['name'],_0x8b402b['attributes'],_0x3b3c89);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x5f4d26){this['editor']=_0x5f4d26,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'](_0x1c6c05){this['source']=_0x1c6c05;const _0x5f3226=new Map(),_0xde99e3=new Map(),_0x154bb2=this['editor']['model']['document']['roots']['map'](_0x593325=>_0x593325['rootName']);for(const _0xcb118a of _0x154bb2){const _0x22162c=this['editor']['model']['document']['getRoot'](_0xcb118a),_0x4fe12f=T(_0x22162c);_0x5f3226['set'](_0xcb118a,_0x4fe12f),_0xde99e3['set'](_0xcb118a,Object['fromEntries'](_0x22162c['getAttributes']()));}const _0x53047a=Array['from'](this['editor']['model']['markers'])['map'](_0x40dded=>[_0x40dded['name'],_0x40dded['getRange']()]),_0x4574ac=this['source']['version'];this['_saveMetaData'](_0x4574ac,_0x5f3226,_0x53047a,_0xde99e3),this['_startingRevisionId']=this['_revisionId'];const _0xb1a6f4=new Map(),_0x11ae57=new Map();for(const _0x10c298 of _0x154bb2){const _0x5a0eaa=F(_0x10c298);_0xb1a6f4['set'](_0x10c298,_0x5a0eaa),_0x11ae57['set'](_0x10c298,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0xb1a6f4,[],_0x11ae57);}['getData'](_0x3537fb,_0x3563ab){if(this['_lastFrom']===_0x3537fb&&this['_lastTo']<=_0x3563ab)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x3563ab,!0x0);else{if(!this['_savedMetaData']['has'](_0x3537fb)){const _0x154523=this['_getPreviousFrom'](_0x3537fb);this['_calculateMetaData'](_0x154523,_0x3537fb,!0x1);}this['_calculateMetaData'](_0x3537fb,_0x3563ab,!0x0);}return this['_lastFrom']=_0x3537fb,this['_lastTo']=_0x3563ab,this['_getState']();}['loadState'](_0x4628e6){this['_reset'](),this['_lastFrom']=_0x4628e6['fromVersion'],this['_lastTo']=_0x4628e6['toVersion'];for(const _0x4e8858 in _0x4628e6['diffData']){const _0x316d1a=_0x4628e6['diffData'][_0x4e8858]['attachChange'],_0x39a663=_0x4f0a8f(_0x4628e6['diffData'][_0x4e8858]['attributesBefore'])||{},_0x1dbb48=this['_makeModelFromViewString'](_0x4628e6['diffData'][_0x4e8858]['deletions']);_0x1dbb48['rootName']=_0x4e8858,_0x1dbb48['_isAttached']=!_0x316d1a||!_0x316d1a['isAttached'],_0x1dbb48['isAttached']=()=>_0x1dbb48['_isAttached'],this['_baseRoots']['set'](_0x4e8858,_0x1dbb48),this['_baseRootsAttributes']['set'](_0x4e8858,_0x39a663),_0x316d1a&&this['_touchedRoots']['set'](_0x4e8858,_0x316d1a);const _0x4f6ef5=this['_makeIdsRoot'](_0x1dbb48);this['_baseIdsRoots']['set'](_0x4e8858,_0x4f6ef5);for(const [_0x23ff2f,_0x2ec209]of _0x1dbb48['markers']){if(!_0x23ff2f['startsWith']('revision:'))continue;const _0x5cdd31=_0x23ff2f['split'](':')[0x2];for(const _0x1e3318 of _0x2ec209['getWalker']({'singleCharacters':!0x0})){const _0xf12d9a=this['_getVidAttributeName'](_0x1e3318),_0x1806de='elementEnd'==_0x1e3318['type']?_0x1e3318['previousPosition']['path']['slice'](0x0,-0x1):_0x1e3318['previousPosition']['path'],_0x555275=_0x4f6ef5['getNodeByPath'](_0x1806de)['getAttribute'](_0xf12d9a);this['_touched']['set'](_0x555275,{'userId':_0x5cdd31});}}}this['_startingRevisionId']=this['_revisionId'];const _0x17bd50=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x2b12a6=>!this['_touched']['has'](_0x2b12a6));let _0x266e1a=0x0;const _0xc675c6=new Map();for(const _0x30f1ff in _0x4628e6['diffData']){const _0xe56d21=_0x4628e6['diffData'][_0x30f1ff]['attachChange'],_0x5f16aa=_0x4f0a8f(_0x4628e6['diffData'][_0x30f1ff]['attributesAfter'])||{},_0x1562dd=this['_makeModelFromViewString'](_0x4628e6['diffData'][_0x30f1ff]['insertions']);_0x1562dd['rootName']=_0x30f1ff,_0x1562dd['_isAttached']=!_0xe56d21||_0xe56d21['isAttached'],_0x1562dd['isAttached']=()=>_0x1562dd['_isAttached'],this['_diffRoots']['set'](_0x30f1ff,_0x1562dd),this['_diffRootsAttributes']['set'](_0x30f1ff,_0x5f16aa);const _0x2808f6=this['_makeIdsRoot'](_0x1562dd,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x30f1ff,_0x2808f6),_0xc675c6['set'](_0x30f1ff,_0x1562dd['isAttached']()?_0x5f16aa:{});for(const [_0x37c7ee,_0x4f851e]of _0x1562dd['markers']){if(!_0x37c7ee['startsWith']('revision:'))continue;const _0xe03ab=_0x37c7ee['split'](':')[0x2];for(const _0x2d39ae of _0x4f851e['getWalker']({'singleCharacters':!0x0})){const _0x331452=this['_getVidAttributeName'](_0x2d39ae),_0x29a782=this['_revisionId']++,_0x285bb5='elementEnd'==_0x2d39ae['type']?_0x2d39ae['previousPosition']['path']['slice'](0x0,-0x1):_0x2d39ae['previousPosition']['path'];_0x2808f6['getNodeByPath'](_0x285bb5)['_setAttribute'](_0x331452,_0x29a782),this['_touched']['set'](_0x29a782,{'userId':_0xe03ab});}}for(const _0x30950a of this['editor']['model']['createRangeIn'](_0x1562dd)['getWalker']({'singleCharacters':!0x0})){const _0x39e56f=this['_getVidAttributeName'](_0x30950a),_0x46e93d='elementEnd'==_0x30950a['type']?_0x30950a['previousPosition']['path']['slice'](0x0,-0x1):_0x30950a['previousPosition']['path'],_0x3ab78d=_0x2808f6['getNodeByPath'](_0x46e93d);_0x3ab78d['getAttribute'](_0x39e56f)>0x0||_0x3ab78d['_setAttribute'](_0x39e56f,_0x17bd50[_0x266e1a++]);}for(const [_0x20f681,_0x1c43f7]of _0x1562dd['markers'])_0x20f681['startsWith']('revision:')||this['_markers']['set'](_0x20f681,_0x1c43f7);}const _0x3f450f=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x3f450f),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3f450f,0x1));const _0x54ffc3=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x54ffc3),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x54ffc3,0x1));const _0x341b87=Array['from'](this['_diffRoots'])['map'](([_0x1bdf40,_0x142c4f])=>[_0x1bdf40,T(_0x142c4f)]);this['_saveMetaData'](this['_lastTo'],_0x341b87,this['_markers'],_0xc675c6);}['_makeModelFromViewString'](_0x5604b6){const _0x1c5463=JSON['parse'](_0x5604b6),_0x437ee3=this['editor']['editing']['view']['document'],_0x311c5c=new _0x5069ac(_0x437ee3,_0x1c5463['map'](_0x8c4718=>C(_0x8c4718,this['editor'])));return this['editor']['data']['toModel'](_0x311c5c);}['_saveMetaData'](_0x30da7e,_0x28f431,_0x286758,_0x25bd4a){const _0x494325=new Map(_0x28f431),_0x4cc166=new Map(_0x4f0a8f(_0x25bd4a)),_0x474fdd=new Map();for(const [_0x629a62,_0x32dc75]of _0x286758)_0x474fdd['set'](_0x629a62,{'start':_0x32dc75['start']['clone'](),'end':_0x32dc75['end']['clone'](),'rootName':_0x32dc75['root']['rootName']});this['_savedMetaData']['set'](_0x30da7e,{'roots':_0x494325,'markers':_0x474fdd,'rootsAttributes':_0x4cc166});}['_removeMetaData'](_0xfd093){this['_savedMetaData']['delete'](_0xfd093);}['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'](_0x4684e2,_0x2275c0=null){let _0x4ec5a7=null;_0x4684e2['is']('documentFragment')||(_0x4ec5a7=new ft(_0x4684e2['name'],{'vid_start':null===_0x2275c0?this['_revisionId']++:_0x2275c0++}));const _0x5f45c4=[];for(const _0x4d40cc of _0x4684e2['getChildren']())if(_0x4d40cc['is']('element')){_0x5f45c4['push'](this['_makeIdsRoot'](_0x4d40cc,_0x2275c0));const _0x539868=_0x5f45c4[_0x5f45c4['length']-0x1];null!==_0x2275c0&&(_0x2275c0=_0x539868['is']('element','$text')?_0x539868['getAttribute']('vid')+0x1:_0x539868['getAttribute']('vid_end')+0x1);}else{for(let _0xbd427c=0x0;_0xbd427c<_0x4d40cc['offsetSize'];_0xbd427c++)_0x5f45c4['push'](new ft('$text',{'vid':null===_0x2275c0?this['_revisionId']++:_0x2275c0++}));}if(_0x4684e2['is']('documentFragment')){const _0xa4bcc3=F(_0x4684e2['rootName']);return _0xa4bcc3['_insertChild'](0x0,_0x5f45c4),_0xa4bcc3;}return _0x4ec5a7['_setAttribute']('vid_end',null===_0x2275c0?this['_revisionId']++:_0x2275c0++),_0x4ec5a7['_insertChild'](0x0,_0x5f45c4),_0x4ec5a7;}['_calculateMetaData'](_0x24686a,_0x5c0036,_0x114e00){this['_reset']();const {roots:_0x2e74b7,markers:_0x21ff08,rootsAttributes:_0x3cc6be}=this['_savedMetaData']['get'](_0x24686a);this['_baseRoots']=new Map(_0x2e74b7),this['_baseRootsAttributes']=new Map(_0x4f0a8f(_0x3cc6be));for(const [_0x1c78f8,_0x1e1317]of this['_baseRoots'])if('$graveyard'!==_0x1c78f8&&(this['_diffRoots']['set'](_0x1c78f8,T(_0x1e1317)),this['_diffRootsAttributes']=new Map(_0x4f0a8f(_0x3cc6be)),_0x114e00)){const _0x45f735=this['_revisionId'];this['_idsRoots']['set'](_0x1c78f8,this['_makeIdsRoot'](_0x1e1317)),this['_baseIdsRoots']['set'](_0x1c78f8,this['_makeIdsRoot'](_0x1e1317,_0x45f735));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x114e00&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x12c300,_0x4e6b03]of _0x21ff08){const _0x464203=this['_baseRoots']['get'](_0x4e6b03['rootName']),_0x50847e=this['_diffRoots']['get'](_0x4e6b03['rootName']),_0x4a1177=new vt(this['_fixPosition'](_0x4e6b03['start'],_0x464203),this['_fixPosition'](_0x4e6b03['end'],_0x464203)),_0x4425d7=this['_fixRange'](_0x4a1177,_0x50847e);_0x464203['markers']['set'](_0x12c300,_0x4a1177),this['_markers']['set'](_0x12c300,_0x4425d7);}this['_applyOperations'](_0x24686a,_0x5c0036,_0x114e00);}['_applyOperations'](_0x406e65,_0x4b6ec3,_0x315c49){for(const _0x544972 of this['source']['getOperations'](_0x406e65,_0x4b6ec3))this['_handleOperation'](_0x544972,_0x315c49);for(const _0x596276 of this['_diffRoots']['values']())_0x596276['markers']['clear']();for(const [_0x96f5ec,_0x655cdb]of this['_markers']){this['_diffRoots']['get'](_0x655cdb['root']['rootName'])['markers']['set'](_0x96f5ec,_0x655cdb['clone']());}const _0x529d23=new Map(),_0x695909=new Map();for(const [_0x55dd2b,_0x485d7a]of this['_diffRoots'])_0x529d23['set'](_0x55dd2b,T(_0x485d7a)),_0x695909['set'](_0x55dd2b,this['_diffRootsAttributes']['get'](_0x55dd2b));this['_saveMetaData'](_0x4b6ec3,_0x529d23,this['_markers'],_0x695909);}['_getPreviousFrom'](_0xa772a3){const _0x4c5479=Array['from'](this['_savedMetaData']['keys']());_0x4c5479['sort']((_0x28eed3,_0x15488f)=>_0x28eed3-_0x15488f),_0x4c5479['reverse']();for(const _0x4c8a15 of _0x4c5479)if(_0x4c8a15<_0xa772a3)return _0x4c8a15;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x30087f,_0x15320b){const _0x1ec24c=Array['from'](_0x15320b['markers'])['map'](([_0x225db5,_0x2b8906])=>[_0x225db5,this['_fixRange'](_0x2b8906,_0x30087f)]);_0x30087f['markers']=new Map(_0x1ec24c);}['_transformMarkers'](_0x2eb9f8){for(const _0x5b3821 of this['_markers']['values']()){const _0x41030c=_0x5b3821['getTransformedByOperation'](_0x2eb9f8),_0x5c939b=vt['_createFromRanges'](_0x41030c);_0x5b3821['start']=_0x5c939b['start'],_0x5b3821['end']=_0x5c939b['end'];}}['_handleOperation'](_0x27d912,_0x5bb693){if('addRoot'!=_0x27d912['type']&&'detachRoot'!=_0x27d912['type']){if('insert'==_0x27d912['type']){const _0x29677b=_0x27d912['position']['root']['rootName'];this['_diffRoots']['has'](_0x29677b)||(this['_diffRoots']['set'](_0x29677b,F(_0x29677b,!0x0)),this['_diffRootsAttributes']['set'](_0x29677b,{}),_0x5bb693&&this['_idsRoots']['set'](_0x29677b,F(_0x29677b,!0x0)));}else{if('addRootAttribute'==_0x27d912['type']||'removeRootAttribute'==_0x27d912['type']||'changeRootAttribute'==_0x27d912['type'])return void this['_handleRootAttributeOperation'](_0x27d912);'marker'==_0x27d912['type']&&this['_handleMarkerOperation'](_0x27d912);}if('marker'!==_0x27d912['type']){const _0x3ef769=this['_cloneOperation'](_0x27d912,this['_diffRoots']);_0x3ef769['_execute'](),this['_transformMarkers'](_0x3ef769);}if(_0x5bb693)switch(_0x27d912['type']){case'insert':this['_handleInsertOperation'](_0x27d912);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x27d912);break;case'merge':this['_handleMergeOperation'](_0x27d912);break;case'split':this['_handleSplitOperation'](_0x27d912);}}else this['_handleRootOperation'](_0x27d912,_0x5bb693);}['_cloneOperation'](_0xc5da40,_0x70033c){const _0x577790=_0xc5da40['clone']();return _0x577790['_authorId']=_0xc5da40['_authorId'],this['_fixOperation'](_0x577790,_0x70033c),_0x577790;}['_getBaseVids'](_0x3a1170){return _0x3a1170['map'](_0x23d0ab=>{const _0x4b62f9=this['_getVidAttributeName'](_0x23d0ab);return Number(_0x23d0ab['item']['getAttribute'](_0x4b62f9));});}['_generateTape'](_0x1b5a18,_0x5ad8a6){if(_0x1b5a18['is']('element','$text'))_0x5ad8a6['push']({'item':_0x1b5a18,'type':'text'});else{_0x1b5a18['is']('element')&&_0x5ad8a6['push']({'item':_0x1b5a18,'type':'elementStart'});for(const _0x2d8b78 of _0x1b5a18['getChildren']())this['_generateTape'](_0x2d8b78,_0x5ad8a6);_0x1b5a18['is']('element')&&_0x5ad8a6['push']({'item':_0x1b5a18,'type':'elementEnd'});}return _0x5ad8a6;}['_getState'](){const _0x26f43a=new Map(this['_touched']),_0x865cd2=new Map(_0x26f43a),_0x5dbbb4=new Map(),_0x1f97b4={'insertions':{},'deletions':{}},_0x5b24fa={'insertions':{},'deletions':{}},_0x49855c=new Map(),_0x41eaad=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x41eaad['delete']('$graveyard');for(const _0x9d5c82 of _0x41eaad){const _0x58697e=this['_diffRoots']['get'](_0x9d5c82)||F(_0x9d5c82,!0x1),_0x3d3040=this['_baseRoots']['get'](_0x9d5c82)||F(_0x9d5c82,!0x1);_0x58697e['isAttached']()||_0x3d3040['isAttached']()?(_0x1f97b4['insertions'][_0x9d5c82]=T(_0x58697e),_0x1f97b4['deletions'][_0x9d5c82]=T(_0x3d3040),this['_copyMarkers'](_0x1f97b4['deletions'][_0x9d5c82],_0x3d3040),this['_copyMarkers'](_0x1f97b4['insertions'][_0x9d5c82],_0x58697e),_0x5b24fa['insertions'][_0x9d5c82]=this['_generateTape'](this['_idsRoots']['get'](_0x9d5c82),[]),_0x5b24fa['deletions'][_0x9d5c82]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x9d5c82)||F(_0x9d5c82,!0x1),[])):_0x41eaad['delete'](_0x9d5c82);}for(const _0x200dc3 of _0x41eaad){const _0x5b3d1d=_0x5b24fa['insertions'][_0x200dc3];for(const _0x641c6a of _0x5b3d1d){const _0x3fba54=this['_getVidAttributeName'](_0x641c6a),_0xbcd8ce=_0x641c6a['item']['getAttribute'](_0x3fba54);_0x865cd2['delete'](_0xbcd8ce),_0xbcd8ce>=this['_startingRevisionId']&&_0x5dbbb4['set'](_0xbcd8ce,_0x26f43a['get'](_0xbcd8ce));}}for(const _0x4200c3 of _0x41eaad){const _0x3d6ec2=_0x5b24fa['insertions'][_0x4200c3],_0x5598ff=this['_getBaseVids'](_0x5b24fa['deletions'][_0x4200c3]);let _0x4bebd1=0x0;for(const _0x2202a6 of _0x3d6ec2){const _0x4a03fe=this['_getVidAttributeName'](_0x2202a6),_0x18e76a=_0x2202a6['item']['getAttribute'](_0x4a03fe);if(!_0x5dbbb4['has'](_0x18e76a)&&!_0x49855c['has'](_0x18e76a)){if(_0x865cd2['has'](_0x18e76a))_0x4bebd1++;else{if(_0x18e76a!=_0x5598ff[_0x4bebd1]){const _0x34b192=_0x26f43a['get'](_0x18e76a)||_0x26f43a['get'](_0x5598ff[_0x4bebd1]);for(;_0x18e76a!=_0x5598ff[_0x4bebd1];)_0x865cd2['has'](_0x5598ff[_0x4bebd1])||(_0x49855c['set'](_0x5598ff[_0x4bebd1],_0x34b192),_0x26f43a['set'](_0x5598ff[_0x4bebd1],_0x34b192)),_0x4bebd1++;}_0x4bebd1++;}}}}for(const _0x425a2c of _0x41eaad){const _0x201a20=_0x5b24fa['insertions'][_0x425a2c];for(const _0x1ea2de of _0x201a20){const _0x4638f5=this['_getVidAttributeName'](_0x1ea2de),_0x21cf6a=_0x1ea2de['item']['getAttribute'](_0x4638f5);if(_0x49855c['has'](_0x21cf6a)){const _0x5d72f0=_0x49855c['get'](_0x21cf6a);_0x865cd2['has'](_0x21cf6a)||_0x865cd2['set'](_0x21cf6a,{..._0x5d72f0}),_0x5dbbb4['set'](_0x21cf6a,{..._0x5d72f0});}}}for(const _0x44caea of _0x865cd2['keys']())_0x44caea>=this['_startingRevisionId']&&_0x865cd2['delete'](_0x44caea);const _0x3fbc96=new Map();for(const _0x5c2092 of _0x41eaad){let _0x507b62=_0x5b24fa['insertions'][_0x5c2092];for(const _0x4d598d of _0x507b62)if(_0x4d598d['item']['is']('element','tableCell')){const _0x4f4def=this['_getVidAttributeName'](_0x4d598d),_0x28067c=_0x4d598d['item']['getAttribute'](_0x4f4def);if(_0x5dbbb4['has'](_0x28067c)){const _0x45bc04=_0x4d598d['item']['parent']['parent']['getAttribute']('vid_start'),_0x544f97=_0x3fbc96['get'](_0x45bc04)||new Set();_0x544f97['add'](_0x5dbbb4['get'](_0x28067c)['userId']),_0x3fbc96['set'](_0x45bc04,_0x544f97);}}_0x507b62=_0x5b24fa['deletions'][_0x5c2092];for(const _0xd84a1b of _0x507b62)if(_0xd84a1b['item']['is']('element','tableCell')){const _0x23b140=this['_getVidAttributeName'](_0xd84a1b),_0x5a368f=_0xd84a1b['item']['getAttribute'](_0x23b140);if(_0x865cd2['has'](_0x5a368f)){const _0x2fba93=_0xd84a1b['item']['parent']['parent']['getAttribute']('vid_start'),_0x342b52=_0x3fbc96['get'](_0x2fba93)||new Set();_0x342b52['add'](_0x865cd2['get'](_0x5a368f)['userId']),_0x3fbc96['set'](_0x2fba93,_0x342b52);}}for(const _0x55d0b1 of _0x3fbc96['keys']())(_0x5dbbb4['has'](_0x55d0b1)||_0x865cd2['has'](_0x55d0b1))&&_0x3fbc96['delete'](_0x55d0b1);}for(const _0x1f7b74 of _0x41eaad){const _0x2b6196=_0x5b24fa['insertions'][_0x1f7b74];let _0x10a342=null,_0x4f8717=null;for(const _0x4a1503 of _0x2b6196){const _0x35dab1=this['_getVidAttributeName'](_0x4a1503),_0x3e1a84=_0x4a1503['item']['getAttribute'](_0x35dab1),_0x3a5258=_0x3fbc96['get'](_0x3e1a84);_0x3a5258&&'elementStart'==_0x4a1503['type']&&(_0x10a342=Array['from'](_0x3a5258)[0x0],_0x4f8717=_0x4a1503['item']['getAttribute']('vid_end')),_0x10a342&&(_0x865cd2['set'](_0x3e1a84,{'userId':_0x10a342}),_0x5dbbb4['set'](_0x3e1a84,{'userId':_0x10a342})),_0x3e1a84==_0x4f8717&&(_0x10a342=null,_0x4f8717=null);}}const _0x4658ef={},_0x6ba928=new Set();for(const _0x59dd27 of _0x41eaad){const _0x5cb06c=_0x1f97b4['deletions'][_0x59dd27],_0x9c9fe7=_0x1f97b4['insertions'][_0x59dd27];for(const {userId:_0x256258}of this['_touchedMarkers']['values']())null!==_0x256258&&_0x6ba928['add'](_0x256258);for(const {userId:_0x2b8151}of this['_touchedRoots']['values']())null!==_0x2b8151&&_0x6ba928['add'](_0x2b8151);this['_markChanges'](_0x9c9fe7,_0x5b24fa['insertions'][_0x59dd27],_0x5dbbb4,'insertion',_0x6ba928),this['_markChanges'](_0x5cb06c,_0x5b24fa['deletions'][_0x59dd27],_0x865cd2,'deletion',_0x6ba928),_0x4658ef[_0x59dd27]={'insertions':this['_prepareViewToSave'](_0x9c9fe7),'deletions':this['_prepareViewToSave'](_0x5cb06c),'attachChange':this['_touchedRoots']['get'](_0x59dd27)||null,'attributesBefore':_0x4f0a8f(this['_baseRootsAttributes']['get'](_0x59dd27))||{},'attributesAfter':_0x4f0a8f(this['_diffRootsAttributes']['get'](_0x59dd27))};}return{'diffData':_0x4658ef,'authorsIds':Array['from'](_0x6ba928)};}['_processRootBeforeSave'](_0x129264){for(const [,_0x31d375]of _0x129264['markers']){const _0x14b950=_0x31d375['start']['getAncestors']()['filter'](_0x5ec9d7=>'tableCell'==_0x5ec9d7['name']);for(const _0x5b253e of _0x14b950)0x1==_0x5b253e['childCount']&&_0x5b253e['getChild'](0x0)['is']('element','paragraph')&&_0x5b253e['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x4ddec2){this['_processRootBeforeSave'](_0x4ddec2);const _0x118f81=this['editor']['data']['toView'](_0x4ddec2,{}),_0x402ebd=Array['from'](_0x118f81['getChildren']())['map'](_0xc217ab=>this['_getViewJson'](_0xc217ab));return JSON['stringify'](_0x402ebd);}['_getViewJson'](_0x2c67f6){if(_0x2c67f6['is']('$text'))return _0x2c67f6['data'];{const _0x3d9410=_0x2c67f6;return{'type':Object['keys'](P)['find'](_0x107571=>_0x2c67f6 instanceof P[_0x107571]),'name':_0x3d9410['name'],'attributes':Array['from'](_0x3d9410['getAttributes']()),'children':Array['from'](_0x3d9410['getChildren']())['map'](_0x15d067=>this['_getViewJson'](_0x15d067))};}}['_markChanges'](_0x4b1b6c,_0x4d2573,_0x1cd41a,_0x453474,_0x4f5448){let _0x4d9aac=null,_0x518174=null,_0x3a85b4=0x0;const _0x2dfb01=this['editor']['model'];for(let _0x41b30a=0x0;_0x41b30a<_0x4d2573['length'];_0x41b30a++){const _0x5b86ce=this['_getVidAttributeName'](_0x4d2573[_0x41b30a]),_0x2282c5=_0x4d2573[_0x41b30a]['item']['getAttribute'](_0x5b86ce),_0x1c4a0a=_0x1cd41a['get'](_0x2282c5),_0x42b0de=_0x41b30a==_0x4d2573['length']-0x1;(!_0x4d9aac&&_0x1c4a0a&&(_0x4d9aac=_0x1c4a0a,_0x518174=_0x4d2573[_0x41b30a]),_0x4d9aac&&(!_0x1c4a0a||_0x1c4a0a['userId']!=_0x4d9aac['userId']))&&(_0x396e04(_0x1c4a0a,B(_0x518174,_0x4b1b6c,_0x2dfb01),B(_0x4d2573[_0x41b30a],_0x4b1b6c,_0x2dfb01)),_0x4d9aac=_0x1c4a0a||null,_0x518174=_0x1c4a0a?_0x4d2573[_0x41b30a]:null),_0x4d9aac&&_0x42b0de&&_0x396e04(_0x1c4a0a,B(_0x518174,_0x4b1b6c,_0x2dfb01),J(_0x4d2573[_0x41b30a],_0x4b1b6c,_0x2dfb01));}function _0x396e04(_0x2ba84a,_0x507da6,_0x40efcf){const _0x5936c3=_0x4d9aac['userId'],_0x187e4b='revision:'+_0x453474+':'+_0x5936c3+':'+_0x3a85b4++,_0xd7a300=_0x2dfb01['createRange'](_0x507da6,_0x40efcf);_0x4b1b6c['markers']['set'](_0x187e4b,_0xd7a300),null!==_0x5936c3&&_0x4f5448['add'](_0x5936c3);}}['_getVidAttributeName'](_0xaa6eb7){switch(_0xaa6eb7['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x370833,_0x47f3c5){_0x370833['baseVersion']=null;for(const _0x5bab6c in _0x370833){const _0x50b9ef=_0x370833[_0x5bab6c];if(_0x50b9ef instanceof gt){const _0x120230=_0x47f3c5['get'](_0x50b9ef['root']['rootName']);_0x370833[_0x5bab6c]=this['_fixPosition'](_0x50b9ef,_0x120230);}if(_0x50b9ef instanceof vt){const _0x1587e6=_0x47f3c5['get'](_0x50b9ef['root']['rootName']);_0x370833[_0x5bab6c]=this['_fixRange'](_0x50b9ef,_0x1587e6);}'root'===_0x5bab6c&&(_0x370833['root']=_0x47f3c5['get'](_0x370833['root']['rootName']));}}['_fixRange'](_0x43927b,_0x3a86d0){return this['editor']['model']['createRange'](this['_fixPosition'](_0x43927b['start'],_0x3a86d0),this['_fixPosition'](_0x43927b['end'],_0x3a86d0));}['_fixPosition'](_0x2013a9,_0xb615e9){return this['editor']['model']['createPositionFromPath'](_0xb615e9,_0x2013a9['path'],_0x2013a9['stickiness']);}['_handleInsertOperation'](_0x3982d7){const _0xd5c5bf=this['_idsRoots']['get'](_0x3982d7['position']['root']['rootName']),_0xe8f943=this['_fixPosition'](_0x3982d7['position'],_0xd5c5bf),_0x6b553a=null===_0x3982d7['_authorId']?null:_0x3982d7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x39202f=_0xe8f943['parent'],_0x1638e1=this['_revisionId'],_0x3b7770=[];for(const _0x248571 of _0x3982d7['nodes'])if(_0x248571['is']('element'))_0x3b7770['push'](this['_makeIdsRoot'](_0x248571));else{for(let _0x2f4594=0x0;_0x2f4594<_0x248571['offsetSize'];_0x2f4594++)_0x3b7770['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x15d00d=this['_revisionId'];for(let _0x4a405b=_0x1638e1;_0x4a405b<_0x15d00d;_0x4a405b++)this['_touched']['set'](_0x4a405b,{'userId':_0x6b553a});_0x39202f['_insertChild'](_0xe8f943['offset'],_0x3b7770);}['_handleMoveOperation'](_0x2e126f){(_0x2e126f=this['_cloneOperation'](_0x2e126f,this['_idsRoots']))['_execute']();const _0x361ca0=null===_0x2e126f['_authorId']?null:_0x2e126f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x12b9cd=_0x2e126f['getMovedRangeStart'](),_0x59ed84=_0x12b9cd['parent'],_0x34ca7a=_0x12b9cd['offset'];!function _0x4cae11(_0x457d92,_0x1a6888,_0x55dbdd,_0x4f5742){for(let _0x510702=_0x55dbdd;_0x510702<_0x4f5742;_0x510702++){const _0x33b533=_0x1a6888['getChild'](_0x510702);_0x33b533['is']('element','$text')?_0x457d92['set'](_0x33b533['getAttribute']('vid'),{'userId':_0x361ca0}):(_0x457d92['set'](_0x33b533['getAttribute']('vid_start'),{'userId':_0x361ca0}),_0x4cae11(_0x457d92,_0x33b533,0x0,_0x33b533['childCount']),_0x457d92['set'](_0x33b533['getAttribute']('vid_end'),{'userId':_0x361ca0}));}}(this['_touched'],_0x59ed84,_0x34ca7a,_0x34ca7a+_0x2e126f['howMany']);}['_handleMergeOperation'](_0x6cdf7c){const _0x32fcdd=null===(_0x6cdf7c=this['_cloneOperation'](_0x6cdf7c,this['_idsRoots']))['_authorId']?null:_0x6cdf7c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x44ef78=_0x6cdf7c['targetPosition']['parent'],_0x109b42=_0x6cdf7c['sourcePosition']['parent'],_0x4a09d9=_0x44ef78['getAttribute']('vid_end'),_0x380a53=_0x109b42['getAttribute']('vid_start');_0x44ef78['_setAttribute']('vid_end',_0x109b42['getAttribute']('vid_end')),_0x109b42['_setAttribute']('vid_end',_0x4a09d9),this['_touched']['set'](_0x380a53,{'userId':_0x32fcdd}),this['_touched']['set'](_0x4a09d9,{'userId':_0x32fcdd}),_0x6cdf7c['_execute']();}['_handleSplitOperation'](_0x5ade87){const _0x39008e=null===(_0x5ade87=this['_cloneOperation'](_0x5ade87,this['_idsRoots']))['_authorId']?null:_0x5ade87['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x225698=_0x5ade87['graveyardPosition'],_0x385702=_0x5ade87['splitPosition']['parent'];_0x5ade87['_execute']();const _0x43dc05=_0x385702['getAttribute']('vid_end'),_0x2504ee=_0x5ade87['insertionPosition']['nodeAfter'];if(_0x225698){const _0x40f560=_0x2504ee['getAttribute']('vid_end'),_0x2af7d6=_0x385702['getAttribute']('vid_end');_0x385702['_setAttribute']('vid_end',_0x40f560),_0x2504ee['_setAttribute']('vid_end',_0x2af7d6),this['_touched']['set'](_0x385702['getAttribute']('vid_end'),{'userId':_0x39008e}),this['_touched']['set'](_0x2504ee['getAttribute']('vid_start'),{'userId':_0x39008e});}else{const _0x1054ae=this['_revisionId']++,_0x54896b=this['_revisionId']++;_0x385702['_setAttribute']('vid_end',_0x1054ae),_0x2504ee['_setAttribute']('vid_start',_0x54896b),_0x2504ee['_setAttribute']('vid_end',_0x43dc05),this['_touched']['set'](_0x1054ae,{'userId':_0x39008e}),this['_touched']['set'](_0x54896b,{'userId':_0x39008e});}}['_handleMarkerOperation'](_0x30ae5c){if(!_0x30ae5c['affectsData'])return;const _0x32fe42=(_0x30ae5c=this['_cloneOperation'](_0x30ae5c,this['_diffRoots']))['oldRange']?_0x30ae5c['oldRange']['root']:null,_0x525d58=_0x30ae5c['newRange']?_0x30ae5c['newRange']['root']:null;_0x32fe42&&this['_markers']['delete'](_0x30ae5c['name']),_0x525d58&&this['_markers']['set'](_0x30ae5c['name'],_0x30ae5c['newRange']['clone']());const _0x87acc7=null===_0x30ae5c['_authorId']?null:_0x30ae5c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x559db1=_0x30ae5c['name'];if(!this['_touchedMarkers']['has'](_0x559db1))return void this['_touchedMarkers']['set'](_0x559db1,{'range':_0x30ae5c['oldRange'],'userId':_0x87acc7});const _0xcef4c8=this['_touchedMarkers']['get'](_0x559db1),_0x5709ec=_0xcef4c8['range'],_0x15653e=_0x30ae5c['newRange'];null==_0x5709ec&&null==_0x15653e||_0x5709ec&&_0x15653e&&_0x5709ec['isEqual'](_0x15653e)?this['_touchedMarkers']['delete'](_0x30ae5c['name']):_0xcef4c8['userId']=_0x87acc7;}['_handleRootOperation'](_0x39414e,_0x18d354){this['_diffRoots']['has'](_0x39414e['rootName'])?this['_diffRoots']['get'](_0x39414e['rootName'])['_isAttached']=_0x39414e['isAdd']:(this['_diffRoots']['set'](_0x39414e['rootName'],F(_0x39414e['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x39414e['rootName'],{}),_0x18d354&&this['_idsRoots']['set'](_0x39414e['rootName'],F(_0x39414e['rootName'],!0x0)));const _0x5436e6=null===_0x39414e['_authorId']?null:_0x39414e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4c63ff=this['_touchedRoots']['get'](_0x39414e['rootName']);_0x4c63ff&&_0x4c63ff['userId']===_0x5436e6?this['_touchedRoots']['delete'](_0x39414e['rootName']):this['_touchedRoots']['set'](_0x39414e['rootName'],{'userId':_0x5436e6,'isAttached':_0x39414e['isAdd']});}['_handleRootAttributeOperation'](_0x24b2d6){const _0x1f439b=this['_diffRootsAttributes']['get'](_0x24b2d6['root']['rootName']);null===_0x24b2d6['newValue']?delete _0x1f439b[_0x24b2d6['key']]:_0x1f439b[_0x24b2d6['key']]=_0x24b2d6['newValue'];}}function T(_0x527458){const _0x46bb09=F(_0x527458['rootName'],_0x527458['isAttached']());for(const _0x2506d3 of _0x527458['getChildren']()){const _0x44e0e9=_0x2506d3['_clone'](!0x0);_0x46bb09['_appendChild'](_0x44e0e9);}return _0x46bb09;}function F(_0x29e426,_0x4df5d3=!0x0){const _0x33551c=new mt();return _0x33551c['rootName']=_0x29e426,_0x33551c['_isAttached']=_0x4df5d3,_0x33551c['isAttached']=()=>_0x33551c['_isAttached'],_0x33551c;}function B(_0x4c4169,_0x37b62c,_0x2073f3){const _0x1ba101='elementEnd'==_0x4c4169['type']?_0x2073f3['createPositionAt'](_0x4c4169['item'],'end'):_0x2073f3['createPositionBefore'](_0x4c4169['item']);return _0x2073f3['createPositionFromPath'](_0x37b62c,_0x1ba101['path'],_0x1ba101['stickiness']);}function J(_0xf54cec,_0xcbdb72,_0xeacdc7){const _0x1a35f2='elementStart'==_0xf54cec['type']?_0xeacdc7['createPositionAt'](_0xf54cec['item'],0x0):_0xeacdc7['createPositionAfter'](_0xf54cec['item']);return _0xeacdc7['createPositionFromPath'](_0xcbdb72,_0x1a35f2['path'],_0x1a35f2['stickiness']);}class ns extends _0x292cac{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x1cfd56,_0x3574b9){super(_0x1cfd56),this['focusTracker']=new _0x1e0689(),this['keystrokes']=new _0xabb4ae(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x3574b9),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'](),_0x4306fa({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x59d49e=_0x57b55a=>_0x57b55a['stopPropagation']();this['keystrokes']['set']('arrowright',_0x59d49e),this['keystrokes']['set']('arrowleft',_0x59d49e),this['keystrokes']['set']('arrowup',_0x59d49e),this['keystrokes']['set']('arrowdown',_0x59d49e);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x1ebc1f){this['revisionNameInputView']['fieldView']['element']['value']=_0x1ebc1f['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x2ba712){const _0x5a1f35=new nt(this['locale'],_0x11ce75),_0x5bb692=_0x5a1f35['fieldView'];_0x5bb692['extendTemplate']({'attributes':{'maxlength':'220'}});let _0xea7bc9=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x2ba712&&(_0xea7bc9+='\x20('+m(this['locale'],'optional')+')'),(_0x5a1f35['label']=_0xea7bc9,_0x5bb692['on']('input',()=>{this['revisionNameInputValue']=_0x5bb692['element']['value']['trim']();}),_0x5a1f35);}}class u extends _0x38f4f7{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x178d15=this['editor'],_0xa0b927=_0x178d15['plugins']['get']('RevisionTracker');_0x178d15['ui']['componentFactory']['add']('revisionHistory',_0x558de0=>{const _0xb20739=_0xb121cb(_0x558de0),_0xae789b=_0xb20739['panelView']['children'],_0x3a85f5=new te(_0x558de0),_0x4d686e=new _0x35372d(_0x558de0),_0x3b6154=new _0x559b2e(_0x558de0),_0x10acf8=new _0x35372d(_0x558de0),_0x554d34=new _0x559b2e(_0x558de0);return _0xb20739['bind']('isEnabled')['to'](_0xa0b927,'isReady',_0xa0b927,'isEnabled',_0x178d15,'isReadOnly',(_0x2ae972,_0x2f8efc,_0x456cc6)=>_0x2ae972&&_0x2f8efc&&!_0x456cc6),_0xb20739['buttonView']['set']({'icon':_0x23c949['history'],'label':m(_0x558de0,'Revision\x20history'),'tooltip':!0x0}),_0x3b6154['set']({'label':m(_0x558de0,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x3b6154['bind']('isEnabled')['to'](_0xa0b927,'isReady',_0xa0b927,'isEnabled',_0x178d15,'isReadOnly',(_0x4db915,_0x3b367d,_0x5e6ad9)=>_0x4db915&&_0x3b367d&&!_0x5e6ad9),_0x3b6154['on']('execute',()=>this['_showDialog']()),_0x554d34['set']({'label':m(_0x558de0,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x554d34['bind']('isEnabled')['to'](_0xa0b927,'isReady',_0x178d15,'isReadOnly',(_0x67e719,_0x16c0c0)=>_0x67e719&&!_0x16c0c0),_0x554d34['on']('execute',()=>{_0x178d15['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0xb20739['isOpen']=!0x1,_0x178d15['editing']['view']['focus']();}),_0x4d686e['children']['add'](_0x3b6154),_0x10acf8['children']['add'](_0x554d34),_0x3a85f5['role']='menu',_0x3a85f5['items']['addMany']([_0x4d686e,_0x10acf8]),_0xae789b['add'](_0x3a85f5),_0xb20739;}),_0x178d15['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x3e8b3c=this['editor'],_0x410832=_0x3e8b3c['locale'],_0x3629bd=new _0xc61a72(_0x410832),_0x352803=new _0x4371dd(_0x410832);_0x3629bd['buttonView']['set']({'icon':_0x23c949['history'],'label':m(_0x410832,'Revision\x20history')});const _0x3c739c=new _0x19ccac(_0x410832,_0x3629bd),_0xa02ff7=new _0x4d5058(_0x410832);_0xa02ff7['set']({'label':m(_0x410832,'Save\x20current\x20revision')}),_0xa02ff7['delegate']('execute')['to'](_0x3629bd),_0xa02ff7['on']('execute',()=>{this['_showDialog']();}),_0x3c739c['children']['add'](_0xa02ff7),_0x352803['items']['add'](_0x3c739c);const _0x404a3f=new _0x19ccac(_0x410832,_0x3629bd),_0x1b793d=new _0x4d5058(_0x410832);return _0x1b793d['set']({'label':m(_0x410832,'Open\x20revision\x20history')}),_0x1b793d['delegate']('execute')['to'](_0x3629bd),_0x1b793d['on']('execute',()=>{_0x3e8b3c['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x404a3f['children']['add'](_0x1b793d),_0x352803['items']['add'](_0x404a3f),_0x3629bd['panelView']['children']['add'](_0x352803),_0x3629bd;}['_showDialog'](){const _0x30cca4=this['editor'],_0x4aadf5=_0x30cca4['locale'],_0x56b396=_0x30cca4['plugins']['get']('Dialog'),_0x17cbef=_0x30cca4['plugins']['get']('RevisionTracker');function _0x2a0567(_0x78347e){_0x30cca4['config']['get']('revisionHistory.requireRevisionName')&&''===_0x78347e['revisionName']?_0x78347e['revisionNameInputView']['errorText']=m(_0x4aadf5,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x30cca4['plugins']['get'](l)['saveRevision']({'name':_0x78347e['revisionName']}),_0x56b396['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x2a0567(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x56b396['show']({'id':'revisionSave','title':m(_0x4aadf5,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x30cca4['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x56b396['hide']()},{'label':m(_0x30cca4['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x431b40){_0x431b40['bind']('isEnabled')['to'](_0x17cbef,'isReady',_0x17cbef,'isEnabled',_0x30cca4,'isReadOnly',(_0x5a5d8a,_0x24ad2b,_0x586dec)=>_0x5a5d8a&&_0x24ad2b&&!_0x586dec);},'onExecute':()=>_0x2a0567(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x4389ca=this['editor'],_0x44893b=_0x4389ca['locale'];this['_saveRevisionFormView']=new ns(_0x44893b,_0x4389ca['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x292cac{['changeId'];['_model'];constructor(_0x3ba2dd,_0x4dd10d){super(_0x3ba2dd),this['_model']=_0x4dd10d,this['changeId']=_0x4dd10d['id'];const _0x4306b2=this['bindTemplate'],_0x59d91a=m(_0x3ba2dd,_0x4dd10d['data']['isSuggestion']?'Suggested\x20by':'add'==_0x4dd10d['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x4dd10d['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x4306b2['to']('type',_0xc19bb2=>'ck-revision-change__'+_0xc19bb2)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x59d91a}]},{'text':'\x20'+_0x4dd10d['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x56bb44(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1fa606){super(),this['id']=_0x1fa606['id']||_0x7bac97(),this['author']=_0x1fa606['author'],this['type']=_0x1fa606['type'],this['data']=_0x1fa606['data']||{},this['rootName']=_0x1fa606['rootName'],this['set']('createdAt',_0x1fa606['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(_0x371080,_0x5d7954){this['newRevisionId']=_0x371080,this['oldRevisionId']=_0x5d7954,this['changes']=new _0x2ff70c();}['_setChanges'](_0x19fbfd){for(const _0x42bdc5 of _0x19fbfd)this['changes']['add'](_0x42bdc5);}}const Y={'c':_0x20dad9,'a':_0x4a57c1,'e':_0x481447,'r':_0x21f19b,'u':_0x4ed8b6};class d extends _0x38f4f7{['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[_0x4c2d32,_0x192215,j];}constructor(_0x106648){super(_0x106648),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',(_0xeb2fe5,_0x395f4e,_0x943698)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x32b39f=>{for(const _0x4c1963 of this['editor']['editing']['view']['document']['roots'])_0x943698?_0x32b39f['removeClass']('ck-editor__editable__overlay',_0x4c1963):_0x32b39f['addClass']('ck-editor__editable__overlay',_0x4c1963);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0xc88a34=>null!==_0xc88a34),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x429be6,_0x78dd64,_0x2cf8d8)=>_0x429be6&&_0x2cf8d8?_0x78dd64['changes']['getIndex'](_0x2cf8d8):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x52b974,_0x253b25)=>_0x52b974?_0x253b25['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x192215);}['init'](){const _0x1f1f9f=this['editor'],_0x1b478a=new yt(_0x1f1f9f,{'direction':'backward'}),_0x129cfa=new yt(_0x1f1f9f,{'direction':'forward'});(_0x1f1f9f['commands']['add']('showPreviousChange',_0x1b478a),_0x1f1f9f['commands']['add']('showNextChange',_0x129cfa),_0x1f1f9f['commands']['add']('restoreRevision',new _t(_0x1f1f9f)),this['on']('change:numberOfChanges',()=>{_0x1b478a['refresh'](),_0x129cfa['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x1f1f9f['enableReadOnlyMode']('revision-viewer'),_0x1f1f9f['plugins']['has']('WidgetToolbarRepository'))&&_0x1f1f9f['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x63ec1b){await this['loadRevisionData'](_0x63ec1b);const _0x240820={};for(const _0xd9a4d in _0x63ec1b['diffData']){if(_0x63ec1b['diffData'][_0xd9a4d]['attachChange']&&!_0x63ec1b['diffData'][_0xd9a4d]['attachChange']['isAttached'])continue;const _0x59c492=this['_removeRevisionMarkers'](JSON['parse'](_0x63ec1b['diffData'][_0xd9a4d]['insertions'])),_0x2e6915=this['editor']['editing']['view']['document'],_0x242d7e=new _0x5069ac(_0x2e6915,_0x59c492['map'](_0x547a65=>this['_getViewObj'](_0x547a65)));this['editor']['data']['processor']['useFillerType']('marked'),_0x240820[_0xd9a4d]=this['editor']['data']['processor']['toData'](_0x242d7e),this['editor']['data']['processor']['useFillerType']('default');}return _0x240820;}async['getRevisionRootsAttributes'](_0x101d96){await this['loadRevisionData'](_0x101d96);const _0x4b6306={};for(const _0x806e62 in _0x101d96['diffData'])_0x101d96['diffData'][_0x806e62]['attachChange']&&!_0x101d96['diffData'][_0x806e62]['attachChange']['isAttached']||(_0x4b6306[_0x806e62]=_0x101d96['diffData'][_0x806e62]['attributesAfter']||{});return _0x4b6306;}['_removeRevisionMarkers'](_0x2631e9){return(_0x2631e9=_0x2631e9['filter'](_0x56da94=>!_0x56da94['name']||'revision-start'!==_0x56da94['name']&&'revision-end'!==_0x56da94['name']))['forEach'](_0x545369=>{'string'!=typeof _0x545369&&(_0x545369['children']=this['_removeRevisionMarkers'](_0x545369['children']),_0x545369['attributes']=_0x545369['attributes']['filter'](_0xff2ad4=>!_0xff2ad4[0x0]['startsWith']('data-revision-')));}),_0x2631e9;}async['compare'](_0x539af6,_0x10b750,_0x275038=!0x1){if(!this['isEnabled'])return;const _0x28d46c=this['diff'],_0x452098=this['repository'],_0x5a8a0f='string'==typeof _0x539af6?_0x452098['getRevision'](_0x539af6):_0x539af6,_0x3902c5='string'==typeof _0x10b750?_0x452098['getRevision'](_0x10b750):_0x10b750,_0x4f609c=_0x5a8a0f['id'],_0xa5de78=_0x3902c5?_0x3902c5['id']:null;if(!_0x275038&&this['diff']&&this['diff']['newRevisionId']===_0x4f609c&&this['diff']['oldRevisionId']===_0xa5de78)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x4f609c,_0xa5de78);const _0x35ca0b=this['_getRevisionsRange'](_0x5a8a0f,_0x3902c5,!0x0)['map'](_0x55fe98=>this['loadRevisionData'](_0x55fe98));return _0x35ca0b['push'](new Promise(_0x59b186=>{setTimeout(_0x59b186,0x14);})),Promise['all'](_0x35ca0b)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x3dfcd4=this['_getDiff'](_0x4f609c,_0xa5de78);for(const _0x57a8f4 of _0x3dfcd4['changes'])this['_changeIdToChange']['set'](_0x57a8f4['id'],_0x57a8f4);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x55f34f=>{for(const _0x514b10 of this['editor']['model']['document']['getRootNames']())_0x55f34f['detachRoot'](_0x514b10);for(const _0x2015b8 of Object['keys'](_0x3dfcd4['model'])){const _0x3de0b8=_0x55f34f['addRoot'](_0x2015b8);for(const _0xb2520a of Object['keys'](_0x3dfcd4['attributes'][_0x2015b8]))_0x55f34f['setAttribute'](_0xb2520a,_0x3dfcd4['attributes'][_0x2015b8][_0xb2520a],_0x3de0b8);_0x55f34f['insert'](_0x3dfcd4['model'][_0x2015b8],_0x3de0b8,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x3dfcd4['changes'])),this['isReady']=!0x0;})['catch'](_0x315953=>{console['error'](_0x315953),this['_cleanUp'](),_0x28d46c&&(this['diff']=_0x28d46c),this['isReady']=!0x0;});}['addRevisionData'](_0x3031f6,_0x10ad8a){const _0x112737=this['repository']['createRevision'](_0x3031f6);return _0x112737['on']('_update',(_0x252b69,_0x328305,_0x2160a7)=>_0x10ad8a(_0x328305,_0x2160a7,_0x112737)),this['repository']['addRevision'](_0x112737),_0x112737;}['loadRevisionData'](_0x13ef0c){if(!_0x13ef0c||_0x13ef0c['diffData'])return Promise['resolve']();{const _0x58d7d6=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x58d7d6,'revisionId':_0x13ef0c['id']})['then'](_0x575293=>{_0x13ef0c['_update']({'diffData':_0x575293['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},_0x2d1790=>{for(const _0x59b8e2 of this['editor']['model']['document']['getRootNames']())_0x2d1790['detachRoot'](_0x59b8e2);});}['_sortAndFilterDiffChanges'](_0x1fb129){const _0x18e9f1=[],_0x52cb08=new Map();for(const _0x262577 of this['editor']['model']['document']['getRootNames']()){const _0x2987ca=this['editor']['editing']['view']['getDomRoot'](_0x262577);if(!_0x2987ca)continue;const _0x206756=_0x2987ca['getClientRects']()['item'](0x0);_0x206756&&(_0x18e9f1['push'](_0x262577),_0x52cb08['set'](_0x262577,_0x206756));}return _0x18e9f1['sort']((_0x53a8b0,_0x1513f8)=>{const _0x1e9134=_0x52cb08['get'](_0x53a8b0),_0x255f28=_0x52cb08['get'](_0x1513f8);return _0x1e9134['y']-_0x255f28['y']||_0x1e9134['x']-_0x255f28['x'];}),(_0x1fb129=_0x1fb129['filter'](_0x3dec91=>_0x18e9f1['includes'](_0x3dec91['rootName'])))['sort']((_0x1f3efa,_0x6a67de)=>_0x18e9f1['indexOf'](_0x1f3efa['rootName'])-_0x18e9f1['indexOf'](_0x6a67de['rootName'])),_0x1fb129;}['_makeTape'](_0x463fcf){const _0x4cde40=Array['from'](_0x463fcf['markers'])['filter'](([_0x5a380e,_0x4ff854])=>_0x5a380e['startsWith']('revision:')&&!_0x4ff854['isCollapsed']),_0x5157e6=Array['from'](this['editor']['model']['createRangeIn'](_0x463fcf)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x4cde40['length'])for(const _0x37d7d9 of _0x5157e6){const [_0x627105,_0xd7416b]=_0x4cde40[0x0],[,_0x39cdc4,_0x64a049]=_0x627105['split'](':');if(_0xd7416b['end']['isEqual'](_0x37d7d9['nextPosition'])&&_0x4cde40['shift'](),(_0x37d7d9['previousPosition']['isEqual'](_0xd7416b['start'])||_0x37d7d9['previousPosition']['isAfter'](_0xd7416b['start']))&&('insertion'==_0x39cdc4?_0x37d7d9['isAdded']={'userId':_0x64a049}:'deletion'==_0x39cdc4&&(_0x37d7d9['isRemoved']={'userId':_0x64a049})),0x0==_0x4cde40['length'])break;}return _0x5157e6;}['_refreshStartEndIndex'](_0x1b5e3e){const _0xd0e979=new Map();for(let _0xcacc7=0x0;_0xcacc7<_0x1b5e3e['length'];_0xcacc7++)'text'===_0x1b5e3e[_0xcacc7]['type']?(_0x1b5e3e[_0xcacc7]['item']['startIndex']=_0xcacc7,_0x1b5e3e[_0xcacc7]['item']['endIndex']=_0xcacc7):('elementStart'===_0x1b5e3e[_0xcacc7]['type']?_0x1b5e3e[_0xcacc7]['item']['startIndex']=_0xcacc7:'elementEnd'===_0x1b5e3e[_0xcacc7]['type']&&(_0x1b5e3e[_0xcacc7]['item']['endIndex']=_0xcacc7),_0xd0e979['set'](_0x1b5e3e[_0xcacc7]['id'],_0xcacc7));for(const _0x5c0bff of _0xd0e979['values']())'elementStart'===_0x1b5e3e[_0x5c0bff]['type']?_0x1b5e3e[_0x5c0bff]['item']['endIndex']=_0xd0e979['get'](_0x1b5e3e[_0x5c0bff]['pairId']):'elementEnd'===_0x1b5e3e[_0x5c0bff]['type']&&(_0x1b5e3e[_0x5c0bff]['item']['startIndex']=_0xd0e979['get'](_0x1b5e3e[_0x5c0bff]['pairId']));}['_processTape'](_0x1f5026){for(let _0x2ac806=0x0;_0x2ac806<_0x1f5026['length'];_0x2ac806++){if('elementStart'===_0x1f5026[_0x2ac806]['type'])_0x1f5026[_0x2ac806]['item']['startIndex']=_0x2ac806;else{if('elementEnd'===_0x1f5026[_0x2ac806]['type']){_0x1f5026[_0x2ac806]['item']['endIndex']=_0x2ac806;const _0x58058c=_0x1f5026[_0x2ac806]['item']['startIndex'];_0x1f5026[_0x58058c]['pairId']=_0x1f5026[_0x2ac806]['id'],_0x1f5026[_0x2ac806]['pairId']=_0x1f5026[_0x58058c]['id'];}else _0x1f5026[_0x2ac806]['item']['startIndex']=_0x2ac806,_0x1f5026[_0x2ac806]['item']['endIndex']=_0x2ac806,_0x1f5026[_0x2ac806]['pairId']=null;}_0x1f5026[_0x2ac806]['markersStart']||(_0x1f5026[_0x2ac806]['markersStart']=[],_0x1f5026[_0x2ac806]['markersEnd']=[]);}}['_markInsertions'](_0x3d747a,_0x391a06){const _0x5c7de6=_0x3d747a['filter'](_0x27e28b=>!_0x27e28b['isAdded']);for(let _0x488691=0x0;_0x488691<_0x391a06['length'];_0x488691++)_0x391a06[_0x488691]['isAdded']&&(_0x5c7de6[_0x488691]['isAdded']=_0x391a06[_0x488691]['isAdded']);}['_makeModelFromViewString'](_0x3ea042){const _0x1207f3=JSON['parse'](_0x3ea042),_0x53fd8b=this['editor']['editing']['view']['document'],_0x47faac=new _0x5069ac(_0x53fd8b,_0x1207f3['map'](_0x5a8f72=>this['_getViewObj'](_0x5a8f72)));return this['editor']['data']['toModel'](_0x47faac);}['_getViewObj'](_0x8c7840){const _0x8b317e=this['editor']['editing']['view']['document'];if('string'==typeof _0x8c7840)return new _0x51c9c5(_0x8b317e,_0x8c7840);{const _0x4e2ff5=_0x8c7840['children']['map'](_0x386e42=>this['_getViewObj'](_0x386e42));return new(Y[_0x8c7840['type']]||_0x16c8d2)(_0x8b317e,_0x8c7840['name'],_0x8c7840['attributes'],_0x4e2ff5);}}['_getDiff'](_0x128448,_0x93a0ab=null){const _0x10a19a=this['repository']['getRevision'](_0x128448),_0x8b9c9a=_0x93a0ab?this['repository']['getRevision'](_0x93a0ab):null,_0x5afd8e=this['_getRevisionsRange'](_0x10a19a,_0x8b9c9a),_0xaec139=_0x5afd8e[_0x5afd8e['length']-0x1],_0x5814bc=new Map(),_0x2bd363={'model':{},'attributes':{},'changes':[]},_0x58c649=new Set(),_0x35f35e=new Map();for(let _0x50dc08=_0x5afd8e['length']-0x1;_0x50dc08>=0x0;_0x50dc08--){const _0x5093ca=_0x5afd8e[_0x50dc08];for(const _0x4e559c of Object['keys'](_0x5093ca['diffData']))if(_0x5093ca['diffData'][_0x4e559c]['attachChange']){const _0x410285=_0x5093ca['diffData'][_0x4e559c]['attachChange'];_0x410285['isAttached']?(_0x58c649['add'](_0x4e559c),_0x35f35e['has'](_0x4e559c)&&_0x35f35e['get'](_0x4e559c)['userId']==_0x410285['userId']?_0x35f35e['delete'](_0x4e559c):_0x35f35e['set'](_0x4e559c,_0x410285)):_0x35f35e['has'](_0x4e559c)?(_0x58c649['delete'](_0x4e559c),_0x35f35e['delete'](_0x4e559c)):(_0x58c649['add'](_0x4e559c),_0x35f35e['set'](_0x4e559c,_0x410285));}else _0x58c649['add'](_0x4e559c);}for(const _0x2081fa of _0x58c649){const _0x17a251=_0x35f35e['has'](_0x2081fa)&&!_0x35f35e['get'](_0x2081fa)['isAttached'];let _0xf78baf=_0x17a251?_0x5afd8e['length']-0x1:0x0;const _0x441508=_0x17a251?-0x1:0x1;for(;_0x5afd8e[_0xf78baf];){const _0x389df2=_0x5afd8e[_0xf78baf];if(_0x389df2['diffData'][_0x2081fa]){const _0x5c9dd2=_0x17a251?_0x389df2['diffData'][_0x2081fa]['attributesBefore']:_0x389df2['diffData'][_0x2081fa]['attributesAfter'];_0x2bd363['attributes'][_0x2081fa]=_0x5c9dd2?_0x4f0a8f(_0x5c9dd2):{};break;}_0xf78baf+=_0x441508;}}for(const _0x4d57c4 of _0x5afd8e){_0x4d57c4['model']={};for(const _0x5c9798 of _0x4d57c4['authors'])_0x5814bc['set'](_0x5c9798['id'],_0x5c9798);for(const _0x35ec9c of _0x58c649){const _0x14bb82=_0x4d57c4['diffData'][_0x35ec9c]?_0x4d57c4['diffData'][_0x35ec9c]['insertions']:'[]',_0x149d5c=_0x4d57c4['diffData'][_0x35ec9c]?_0x4d57c4['diffData'][_0x35ec9c]['deletions']:'[]';_0x4d57c4['model'][_0x35ec9c]={'insertions':this['_makeModelFromViewString'](_0x14bb82),'deletions':this['_makeModelFromViewString'](_0x149d5c)};}}for(const _0xfddf72 of _0x58c649){let _0xfe7047=null,_0x43300e=0x0;const _0x4733f3=new Map(Array['from'](_0x10a19a['model'][_0xfddf72]['insertions']['markers'])['filter'](([_0x7e4bbc])=>!_0x7e4bbc['startsWith']('revision:')));let _0x21096b=0x0;for(const _0x56b12f of _0x5afd8e){const _0x40230d=this['_makeTape'](_0x56b12f['model'][_0xfddf72]['insertions']);_0x56b12f==_0x10a19a?(_0xfe7047=_0x40230d,_0x43300e=_0xfe7047['length'],_0xfe7047['forEach'](_0x437050=>{_0x437050['id']=_0x21096b++;}),this['_processTape'](_0xfe7047)):this['_markInsertions'](_0xfe7047,_0x40230d);const _0x495982=_0xfe7047['filter'](_0x5d0c89=>!_0x5d0c89['isAdded'])['map'](_0xc5be9b=>_0xc5be9b['id']);let _0x2cad4e=0x0;const _0x32fb65=this['_makeTape'](_0x56b12f['model'][_0xfddf72]['deletions']);_0x32fb65['forEach'](_0x3a54d9=>{_0x3a54d9['isRemoved']?_0x3a54d9['id']=_0x43300e++:_0x3a54d9['id']=_0x495982[_0x2cad4e++];}),this['_processTape'](_0x32fb65),this['_setDistance'](_0xfe7047,'isAdded'),this['_setDistance'](_0x32fb65,'isRemoved'),_0x56b12f==_0x10a19a&&this['_markMarkers'](_0xfe7047,_0x4733f3),_0xfe7047=this['_joinTapes'](_0xfe7047,_0x32fb65),this['_refreshStartEndIndex'](_0xfe7047),this['_setDistance'](_0xfe7047,'isRemoved');}_0xfe7047=_0xfe7047['filter'](_0x72ac51=>!(_0x72ac51['isAdded']&&_0x72ac51['isRemoved']));const _0x2c4b03=new Map(_0xaec139['model'][_0xfddf72]['deletions']['markers']),_0x31e09e=new Set(_0x4733f3['keys']());for(const _0x4c652a of _0x2c4b03['keys']())_0x31e09e['delete'](_0x4c652a);this['_markSuggestions'](_0xfe7047,_0x31e09e),this['_fixObsoleteTags'](_0xfe7047),_0xfe7047=this['_removeMissingPairs'](_0xfe7047),_0xfe7047=this['_markMismatchedRemovedTags'](_0xfe7047),_0xfe7047=this['_removeUnsupportedChanges'](_0xfe7047);const {root:_0x1274d7,changes:_0x2de8d4}=this['_makeModelFromTape'](_0xfe7047,_0x5814bc,_0xfddf72);_0x2bd363['model'][_0xfddf72]=_0x1274d7;const _0x478884=_0x35f35e['get'](_0xfddf72);if(_0x478884){const _0x550543=_0x5814bc['get'](_0x478884['userId']),_0x999ae=new r({'author':_0x550543,'type':_0x478884['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0xfddf72});_0x2de8d4['unshift'](_0x999ae),_0x2bd363['attributes'][_0xfddf72]['revisionHistoryAttachChange']=_0x999ae['id'];}_0x2bd363['changes']=_0x2bd363['changes']['concat'](_0x2de8d4);}return _0x2bd363;}['_markMarkers'](_0x10e3ea,_0x412a05){for(let _0x2c805b=0x0;_0x2c805b<_0x10e3ea['length'];_0x2c805b++)for(const [_0x1b5259,_0x390bd5]of _0x412a05)_0x390bd5['start']['isEqual'](_0x10e3ea[_0x2c805b]['previousPosition'])&&_0x10e3ea[_0x2c805b]['markersStart']['push'](_0x1b5259),_0x390bd5['end']['isEqual'](_0x10e3ea[_0x2c805b]['nextPosition'])&&_0x10e3ea[_0x2c805b]['markersEnd']['push'](_0x1b5259);}['_joinTapes'](_0x4bd3df,_0x399f1e){let _0x185c41=[],_0xcb8482=0x0,_0x1a4809=0x0;for(;_0xcb8482<_0x4bd3df['length']||_0x1a4809<_0x399f1e['length'];){const _0x769ae5=_0x4bd3df[_0xcb8482]||{},_0x4c6646=_0x399f1e[_0x1a4809]||{};if(_0x769ae5['id']==_0x4c6646['id'])_0xcb8482++,_0x1a4809++,_0x185c41['push'](_0x769ae5);else{if(_0x4c6646['isRemoved']&&_0x769ae5['isAdded']){const {commonTape:_0x3c7fa2,iEnd:_0x45c6de,jEnd:_0x43aa50}=this['_threeWayMerge'](_0x4bd3df,_0xcb8482,_0x399f1e,_0x1a4809);_0x185c41=_0x185c41['concat'](_0x3c7fa2),_0xcb8482=_0x45c6de,_0x1a4809=_0x43aa50;}else _0x4c6646['isRemoved']?(_0x1a4809++,_0x185c41['push'](_0x4c6646)):(_0xcb8482++,_0x185c41['push'](_0x769ae5));}}return _0x185c41;}['_markSuggestions'](_0x1b59d8,_0x510f9f){const _0x589c99=[];for(let _0x39e4a5=0x0;_0x39e4a5<_0x1b59d8['length'];_0x39e4a5++){for(let _0x451cc7=0x0;_0x451cc7<_0x1b59d8[_0x39e4a5]['markersStart']['length'];_0x451cc7++){const _0x53580d=_0x1b59d8[_0x39e4a5]['markersStart'][_0x451cc7];if(!_0x510f9f['has'](_0x53580d))continue;const {group:_0x51de09,type:_0x2d5bf6,authorId:_0x269dd2}=_0x2448a9(_0x53580d);'revision-suggestion'!=_0x51de09||'insertion'!=_0x2d5bf6&&'deletion'!=_0x2d5bf6||(_0x589c99['unshift']({'type':_0x2d5bf6,'name':_0x53580d,'userId':_0x269dd2}),_0x1b59d8[_0x39e4a5]['markersStart']['splice'](_0x451cc7,0x1),_0x451cc7--);}_0x4fcd85(_0x1b59d8[_0x39e4a5]);for(let _0x264225=0x0;_0x264225<_0x1b59d8[_0x39e4a5]['markersEnd']['length'];_0x264225++){const _0x3fa68e=_0x1b59d8[_0x39e4a5]['markersEnd'][_0x264225];if(!_0x510f9f['has'](_0x3fa68e))continue;const {group:_0x43ea16,type:_0x2f4778}=_0x2448a9(_0x3fa68e);if('revision-suggestion'!=_0x43ea16||'insertion'!=_0x2f4778&&'deletion'!=_0x2f4778)continue;_0x1b59d8[_0x39e4a5]['markersEnd']['splice'](_0x264225,0x1),_0x264225--;const _0x1e1cf8=_0x589c99['findIndex'](_0x365f5c=>_0x365f5c['name']==_0x3fa68e);_0x1e1cf8>-0x1&&_0x589c99['splice'](_0x1e1cf8,0x1);}}function _0x2448a9(_0x5a7628){const _0xba8603=_0x5a7628['split'](':');return{'group':_0xba8603[0x0],'type':_0xba8603[0x1],'subType':_0xba8603['length']>=0x5?_0xba8603[0x2]:null,'id':_0xba8603['length']<0x5?_0xba8603[0x2]:_0xba8603[0x3],'authorId':_0xba8603['length']<0x5?_0xba8603[0x3]:_0xba8603[0x4],'markerCount':0x6==_0xba8603['length']?_0xba8603[0x5]:null};}function _0x4fcd85(_0x18de9c){for(let _0x901363=0x0;_0x901363<_0x589c99['length'];_0x901363++){if(_0x18de9c['isAdded']&&'insertion'==_0x589c99[_0x901363]['type'])return _0x18de9c['isAddSuggestion']=_0x589c99[_0x901363],void delete _0x18de9c['isAdded'];if(!_0x18de9c['isAdded']&&!_0x18de9c['isRemoved']&&'deletion'==_0x589c99[_0x901363]['type'])return void(_0x18de9c['isRemoveSuggestion']=_0x589c99[_0x901363]);}}}['_setDistance'](_0x411d33,_0x338bda){let _0x2e608e=0x0,_0x5b6501=!0x1;const _0x3c6f95=new Map();for(const _0x14868e of _0x411d33)_0x14868e[_0x338bda]?_0x5b6501&&(_0x2e608e++,_0x5b6501=!0x1):(_0x2e608e++,_0x5b6501=!0x0),_0x3c6f95['set'](_0x14868e['id'],_0x2e608e);for(let _0x4e017f=0x0;_0x4e017f<_0x411d33['length'];_0x4e017f++){if('isRemoved'==_0x338bda&&_0x411d33[_0x4e017f]['isAdded']||'isAdded'==_0x338bda&&_0x411d33[_0x4e017f]['isRemoved'])continue;if('text'==_0x411d33[_0x4e017f]['type']){_0x411d33[_0x4e017f]['distance']=0x0;continue;}const _0x487531=_0x3c6f95['get'](_0x411d33[_0x4e017f]['pairId']),_0x21c35b=_0x3c6f95['get'](_0x411d33[_0x4e017f]['id']);_0x411d33[_0x4e017f]['distance']=_0x487531-_0x21c35b;}}['_getRevisionsRange'](_0x35edd8,_0x461166,_0x172efe=!0x1){const _0x526e02=[];let _0x350222=this['repository']['getIndex'](_0x35edd8),_0x34a65d=this['repository']['getIndex'](_0x461166);for(-0x1==_0x34a65d&&(_0x34a65d=this['repository']['_revisions']['length'],_0x172efe=!0x1);_0x350222<_0x34a65d;)_0x526e02['push'](this['repository']['getRevision'](_0x350222)),_0x350222++;return _0x172efe&&_0x526e02['push'](this['repository']['getRevision'](_0x350222)),_0x526e02;}['_threeWayMerge'](_0x275409,_0x33905b,_0x3fc8c3,_0x5523d9){const _0x2c0533=this['editor']['model']['schema'];let _0x40e68f=_0x33905b;for(;_0x275409[_0x40e68f]&&_0x275409[_0x40e68f]['isAdded'];)_0x40e68f++;let _0x3dc0ac=_0x5523d9;for(;_0x3fc8c3[_0x3dc0ac]&&_0x3fc8c3[_0x3dc0ac]['isRemoved'];)_0x3dc0ac++;_0x30949e(_0x275409,_0x33905b,_0x40e68f),_0x30949e(_0x3fc8c3,_0x5523d9,_0x3dc0ac);const _0x53f03b=_0x3fc8c3['slice'](_0x5523d9,_0x3dc0ac)['concat'](_0x275409['slice'](_0x33905b,_0x40e68f));return _0x53f03b['sort']((_0x2e5e2b,_0xbf8c3f)=>_0x2e5e2b['side']!=_0xbf8c3f['side']?_0x2e5e2b['side']-_0xbf8c3f['side']:_0x2e5e2b['level']!=_0xbf8c3f['level']?_0x2e5e2b['level']-_0xbf8c3f['level']:_0x2e5e2b['distance']!=_0xbf8c3f['distance']?_0xbf8c3f['distance']-_0x2e5e2b['distance']:!!_0x2e5e2b['isAdded']!=!!_0xbf8c3f['isAdded']?-0x1==_0x2e5e2b['side']||0x0==_0x2e5e2b['side']?_0x2e5e2b['isAdded']?-0x1:0x1:_0x2e5e2b['isAdded']?0x1:-0x1:_0x2e5e2b['index']-_0xbf8c3f['index']),{'commonTape':_0x53f03b,'iEnd':_0x40e68f,'jEnd':_0x3dc0ac};function _0x30949e(_0xf010c8,_0x12e4e8,_0x1036fc){let _0x6a683=-0x1,_0x4885d3=Number['POSITIVE_INFINITY'],_0x498cb2=!0x0;for(let _0xffb083=_0x12e4e8;_0xffb083<_0x1036fc;_0xffb083++)if(_0x2c0533['isInline'](_0xf010c8[_0xffb083]['item'])||(_0x498cb2=!0x1),_0xf010c8[_0xffb083]['item']['startIndex']<_0x12e4e8&&(_0x6a683=_0xffb083),_0xf010c8[_0xffb083]['item']['endIndex']>=_0x1036fc){_0x4885d3=_0xffb083;break;}_0x498cb2&&(_0x6a683=_0x1036fc-0x1);for(let _0x5ba0cd=_0x12e4e8;_0x5ba0cd<_0x1036fc;_0x5ba0cd++)_0xf010c8[_0x5ba0cd]['side']=_0x5ba0cd<=_0x6a683?-0x1:_0x5ba0cd<_0x4885d3?0x0:0x1,_0xf010c8[_0x5ba0cd]['index']=_0x5ba0cd;let _0x40c1d1=0x0;for(let _0x2c1dd2=_0x12e4e8;_0x2c1dd2<=_0x6a683;_0x2c1dd2++)0x0==_0xf010c8[_0x2c1dd2]['distance']?_0xf010c8[_0x2c1dd2]['level']=_0x40c1d1:(_0x40c1d1++,_0xf010c8[_0x2c1dd2]['level']=_0x40c1d1,_0x40c1d1++);for(let _0x3cba2f=_0x12e4e8;_0x3cba2f<_0x1036fc;_0x3cba2f++)0x0==_0xf010c8[_0x3cba2f]['side']&&(_0xf010c8[_0x3cba2f]['level']=_0x40c1d1);_0x40c1d1=0x0;for(let _0x2c1784=_0x1036fc-0x1;_0x2c1784>=_0x4885d3;_0x2c1784--)0x0==_0xf010c8[_0x2c1784]['distance']?_0xf010c8[_0x2c1784]['level']=_0x40c1d1:(_0x40c1d1--,_0xf010c8[_0x2c1784]['level']=_0x40c1d1,_0x40c1d1--);}}['_fixObsoleteTags'](_0x557bc3){const _0x17ec07=new Map(),_0x2ee626=this['editor']['model']['schema'];for(let _0x1db946=0x1;_0x1db946<_0x557bc3['length'];_0x1db946++){let _0x260992,_0x127bb2,_0x107319;const _0x2f714b=_0x557bc3[_0x1db946],_0x24c85b=_0x557bc3[_0x1db946-0x1];if('text'==_0x2f714b['type'])continue;if(_0x2f714b['type']!=_0x24c85b['type'])continue;if(!_0x2ee626['isBlock'](_0x24c85b['item'])||_0x2ee626['isLimit'](_0x24c85b['item']))continue;if(!_0x2ee626['isBlock'](_0x2f714b['item'])||_0x2ee626['isLimit'](_0x2f714b['item']))continue;if((_0x557bc3[_0x1db946]['isAdded']||_0x557bc3[_0x1db946]['isAddSuggestion'])&&_0x557bc3[_0x1db946-0x1]['isRemoved'])_0x260992=_0x557bc3[_0x1db946],_0x127bb2=_0x557bc3[_0x1db946-0x1],_0x107319=_0x1db946-0x1;else{if(!_0x557bc3[_0x1db946]['isRemoved']||!_0x557bc3[_0x1db946-0x1]['isAdded']&&!_0x557bc3[_0x1db946-0x1]['isAddSuggestion'])continue;_0x260992=_0x557bc3[_0x1db946-0x1],_0x127bb2=_0x557bc3[_0x1db946],_0x107319=_0x1db946;}const _0x325d9f=_0x260992['level']==_0x127bb2['level'],_0x13a4e3=Math['abs'](_0x260992['level'])<Math['abs'](_0x127bb2['level'])&&0x0==_0x127bb2['distance'];(_0x325d9f||_0x13a4e3)&&(_0x17ec07['set'](_0x127bb2['id'],_0x260992['id']),_0x557bc3['splice'](_0x107319,0x1),_0x1db946--,_0x260992['isAdded']=!0x1);}for(let _0x2484e3=0x0;_0x2484e3<_0x557bc3['length'];_0x2484e3++)_0x17ec07['has'](_0x557bc3[_0x2484e3]['pairId'])&&(_0x557bc3[_0x2484e3]['pairId']=_0x17ec07['get'](_0x557bc3[_0x2484e3]['pairId']));}['_removeMissingPairs'](_0x43a283){const _0x430b7b=new Set(_0x43a283['map'](_0x3ce153=>_0x3ce153['id']));for(let _0x506e9d=0x0;_0x506e9d<_0x43a283['length'];_0x506e9d++)_0x430b7b['has'](_0x43a283[_0x506e9d]['pairId'])||0x0==_0x43a283[_0x506e9d]['distance']||(_0x43a283[_0x506e9d]['isIncorrect']=!0x0);return _0x43a283['filter'](_0x3828e8=>!_0x3828e8['isIncorrect']);}['_markMismatchedRemovedTags'](_0x395599){const _0x2cb2a7=new Set();for(let _0x2023b2=0x0;_0x2023b2<_0x395599['length'];_0x2023b2++){if(_0x2cb2a7['has'](_0x395599[_0x2023b2]['id'])&&_0x395599[_0x2023b2]['isRemoved']&&(_0x395599[_0x2023b2]['isIncorrect']=!0x0),_0x395599[_0x2023b2]['isIncorrect'])continue;if(0x0==_0x395599[_0x2023b2]['distance'])continue;if('elementStart'!=_0x395599[_0x2023b2]['type'])continue;if(null==_0x395599[_0x2023b2]['pairId'])continue;let _0x23d35a=_0x2023b2+0x1,_0x5a6003=0x0;for(;_0x395599[_0x23d35a]['id']!=_0x395599[_0x2023b2]['pairId'];)'elementStart'==_0x395599[_0x23d35a]['type']?_0x5a6003++:'elementEnd'==_0x395599[_0x23d35a]['type']&&_0x5a6003--,_0x23d35a++;if(0x0!=_0x5a6003){if(_0x395599[_0x2023b2]['isRemoved'])_0x395599[_0x2023b2]['isIncorrect']=!0x0;else{for(;_0x23d35a!=_0x2023b2;)_0x395599[_0x23d35a]['isRemoved']&&0x0!=_0x395599[_0x23d35a]['distance']&&(_0x395599[_0x23d35a]['isIncorrect']=!0x0,_0x2cb2a7['add'](_0x395599[_0x23d35a]['pairId'])),_0x23d35a--;}}}return _0x395599['filter'](_0x19cfdd=>!_0x19cfdd['isIncorrect']);}['_removeUnsupportedChanges'](_0x3a10a1){const _0x1f5511=this['editor']['model']['schema'];for(let _0x5ee174=0x0;_0x5ee174<_0x3a10a1['length'];_0x5ee174++){if(!(_0x3a10a1[_0x5ee174]['isAdded']||_0x3a10a1[_0x5ee174]['isAddSuggestion']||_0x3a10a1[_0x5ee174]['isRemoved']||_0x3a10a1[_0x5ee174]['isRemoveSuggestion']))continue;if(0x0==_0x3a10a1[_0x5ee174]['distance'])continue;const _0x5a7aab=_0x3a10a1[_0x5ee174]['item'];_0x1f5511['isBlock'](_0x5a7aab)||_0x1f5511['isLimit'](_0x5a7aab)||(_0x3a10a1[_0x5ee174]['isAdded']&&delete _0x3a10a1[_0x5ee174]['isAdded'],_0x3a10a1[_0x5ee174]['isAddSuggestion']&&delete _0x3a10a1[_0x5ee174]['isAddSuggestion'],_0x3a10a1[_0x5ee174]['isRemoveSuggestion']&&delete _0x3a10a1[_0x5ee174]['isRemoveSuggestion'],_0x3a10a1[_0x5ee174]['isRemoved']&&(_0x3a10a1[_0x5ee174]['isIncorrect']=!0x0));}return _0x3a10a1['filter'](_0x3017a0=>!_0x3017a0['isIncorrect']);}['_makeModelFromTape'](_0x31e03e,_0x190505,_0x1e8921){const _0x452796=new mt(),_0x24b712=[],_0x51af53=new Map(),_0x2ae9a2=this['editor']['model'],_0x11f7d1=_0x2ae9a2['schema'],_0x3db0d7=[_0x452796],_0x13c3f8={},_0x5aba2b={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1cbbf6=null;const _0x48a776=[0x0];for(let _0x48d2c9=0x0;_0x48d2c9<_0x31e03e['length'];_0x48d2c9++)if('elementStart'===_0x31e03e[_0x48d2c9]['type']){_0x31e03e[_0x48d2c9]['previousPosition']=_0x2ae9a2['createPositionFromPath'](_0x452796,_0x48a776);const _0x2bf67b=new ft(_0x31e03e[_0x48d2c9]['item']['name'],_0x31e03e[_0x48d2c9]['item']['getAttributes']());_0x3db0d7[0x0]['_appendChild'](_0x2bf67b),_0x48a776['push'](0x0),_0x3db0d7['unshift'](_0x2bf67b),_0x31e03e[_0x48d2c9]['nextPosition']=_0x2ae9a2['createPositionFromPath'](_0x452796,_0x48a776);}else'elementEnd'===_0x31e03e[_0x48d2c9]['type']?(_0x3db0d7['shift'](),_0x31e03e[_0x48d2c9]['previousPosition']=_0x2ae9a2['createPositionFromPath'](_0x452796,_0x48a776),_0x48a776['pop'](),_0x48a776[_0x48a776['length']-0x1]++,_0x31e03e[_0x48d2c9]['nextPosition']=_0x2ae9a2['createPositionFromPath'](_0x452796,_0x48a776)):(_0x31e03e[_0x48d2c9]['previousPosition']=_0x2ae9a2['createPositionFromPath'](_0x452796,_0x48a776),_0x1cbbf6?_0x1cbbf6['_data']+=_0x31e03e[_0x48d2c9]['item']['data']:_0x1cbbf6=new wt(_0x31e03e[_0x48d2c9]['item']['data'],_0x31e03e[_0x48d2c9]['item']['getAttributes']()),_0x31e03e[_0x48d2c9+0x1]&&'text'===_0x31e03e[_0x48d2c9+0x1]['type']&&_0x1b9c01(_0x1cbbf6,_0x31e03e[_0x48d2c9+0x1]['item'])||(_0x3db0d7[0x0]['_appendChild'](_0x1cbbf6),_0x1cbbf6=null),_0x48a776[_0x48a776['length']-0x1]+=_0x31e03e[_0x48d2c9]['item']['offsetSize'],_0x31e03e[_0x48d2c9]['nextPosition']=_0x2ae9a2['createPositionFromPath'](_0x452796,_0x48a776));for(let _0x37876d=0x0;_0x37876d<_0x31e03e['length'];_0x37876d++){const _0x296d63=_0x31e03e[_0x37876d]['previousPosition'],_0x482514=_0x31e03e[_0x37876d]['nextPosition'];for(const _0x22bf21 of _0x31e03e[_0x37876d]['markersStart'])_0x51af53['set'](_0x22bf21,{'start':_0x296d63,'end':null});_0x598b6e('isRemoveSuggestion',_0x37876d,_0x296d63,_0x482514),_0x598b6e('isAddSuggestion',_0x37876d,_0x296d63,_0x482514),_0x598b6e('isRemoved',_0x37876d,_0x296d63,_0x482514),_0x598b6e('isAdded',_0x37876d,_0x296d63,_0x482514);for(const _0x195820 of _0x31e03e[_0x37876d]['markersEnd']){_0x51af53['get'](_0x195820)['end']=_0x482514;}}for(const [_0x175870,_0x20dc72]of _0x51af53){const _0x255213=this['editor']['model']['createRange'](_0x20dc72['start'],_0x20dc72['end']);_0x452796['markers']['set'](_0x175870,_0x255213);}return _0x24b712['sort']((_0x29adcf,_0x3cde7e)=>{const _0xa6fb8a=_0x452796['markers']['get']('revision:'+_0x29adcf['id']),_0x5caf05=_0x452796['markers']['get']('revision:'+_0x3cde7e['id']);return _0xa6fb8a['start']['isBefore'](_0x5caf05['start'])?-0x1:_0xa6fb8a['start']['isAfter'](_0x5caf05['start'])?0x1:_0xa6fb8a['end']['isBefore'](_0x5caf05['end'])?-0x1:_0xa6fb8a['end']['isAfter'](_0x5caf05['end'])?0x1:'add'===_0x29adcf['type']?-0x1:0x1;}),{'root':_0x452796,'changes':_0x24b712};function _0x598b6e(_0x5cf650,_0x5496af,_0x228faa,_0x4ef751){const _0x370525=!!_0x31e03e[_0x5496af][_0x5cf650],_0x46e057=_0x370525?_0x31e03e[_0x5496af][_0x5cf650]['userId']:null,_0x41c6ed=_0x5496af===_0x31e03e['length']-0x1,_0xfb96f3=_0x5aba2b[_0x5cf650][0x0],_0x4d85a1=_0x11f7d1['isObject'](_0x31e03e[_0x5496af]['item']);!_0x13c3f8[_0x5cf650]&&_0x370525?_0x13c3f8[_0x5cf650]={'start':_0x228faa,'tapeItem':_0x31e03e[_0x5496af],'userId':_0x46e057,'type':_0x5cf650}:_0x13c3f8[_0x5cf650]&&!_0x370525?(_0x13c3f8[_0x5cf650]['end']=_0x228faa,_0x301da8(_0x13c3f8[_0x5cf650]),_0x13c3f8[_0x5cf650]=null):_0x13c3f8[_0x5cf650]&&_0x370525&&_0x13c3f8[_0x5cf650]['userId']!==_0x46e057&&(_0x13c3f8[_0x5cf650]['end']=_0x228faa,_0xfb96f3&&_0xfb96f3['userId']===_0x13c3f8[_0x5cf650]['userId']||_0x301da8(_0x13c3f8[_0x5cf650]),_0x13c3f8[_0x5cf650]={'start':_0x228faa,'tapeItem':_0x31e03e[_0x5496af],'userId':_0x46e057,'type':_0x5cf650}),_0x13c3f8[_0x5cf650]&&_0x4d85a1&&('elementStart'!==_0x31e03e[_0x5496af]['type']||_0xfb96f3&&_0xfb96f3['userId']===_0x46e057||_0x5aba2b[_0x5cf650]['unshift']({'userId':_0x46e057,'object':_0x31e03e[_0x5496af]['item'],'change':_0x13c3f8[_0x5cf650]}),'elementEnd'===_0x31e03e[_0x5496af]['type']&&_0xfb96f3&&_0xfb96f3['object']===_0x31e03e[_0x5496af]['item']&&(_0x5aba2b[_0x5cf650]['shift'](),_0x13c3f8[_0x5cf650]=_0xfb96f3['change'])),_0x13c3f8[_0x5cf650]&&_0x41c6ed&&(_0x13c3f8[_0x5cf650]['end']=_0x4ef751,_0x301da8(_0x13c3f8[_0x5cf650]),_0x13c3f8[_0x5cf650]=null);}function _0x301da8({start:_0x55e8f1,end:_0xb6357c,tapeItem:_0x100cf0,userId:_0x554888,type:_0x821f0}){const _0x5aeb08=_0x100cf0['item'],_0x2acd38=_0x2ae9a2['schema']['isBlock'](_0x5aeb08)&&!_0x2ae9a2['schema']['isLimit'](_0x5aeb08),_0x6e5b39=_0x55e8f1['nodeAfter']==_0xb6357c['parent']&&_0xb6357c['isAtStart'];if(_0x2acd38&&_0x6e5b39)return;const _0x167b61=_0x2ae9a2['createRange'](_0x55e8f1,_0xb6357c),_0x3d12e9=_0x190505['get'](_0x554888),_0x5dd526=new r({'author':_0x3d12e9,'type':'isAdded'==_0x821f0||'isAddSuggestion'==_0x821f0?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x821f0||'isRemoveSuggestion'==_0x821f0},'createdAt':new Date(),'rootName':_0x1e8921});_0x24b712['push'](_0x5dd526),_0x452796['markers']['set']('revision:'+_0x5dd526['id'],_0x167b61);}function _0x1b9c01(_0xb3ab65,_0x4a324e){const _0x8e797b=_0xb3ab65['getAttributes'](),_0x2baca1=_0x4a324e['getAttributes']();for(const _0x4ca2c8 of _0x8e797b){if(_0x4ca2c8[0x1]!==_0x4a324e['getAttribute'](_0x4ca2c8[0x0]))return!0x1;_0x2baca1['next']();}return _0x2baca1['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x118022=>{const _0x171d7d=_0x118022['markerName']['split'](':')[0x1],_0x417db2=this['_getChangeFromId'](_0x171d7d);if(!_0x417db2)return null;const _0x2ea4e9='add'==_0x417db2['type']?'insertion':'deletion',_0x3e6c1a=['ck-suggestion-marker','ck-suggestion-marker-'+_0x2ea4e9];return _0x417db2['data']['isSuggestion']&&_0x3e6c1a['push']('ck-suggestion-marker-'+_0x2ea4e9+'-new'),this['activeChange']==_0x417db2&&_0x3e6c1a['push']('ck-suggestion-marker--active'),{'classes':_0x3e6c1a,'attributes':{'data-change-id':_0x171d7d}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x8eba83=>{_0x8eba83['on']('element:pre',(_0x15d645,_0x500548,_0x1a83bd)=>{const _0x3c6821=_0x500548['viewItem']['getChild'](0x0);if(!_0x3c6821||!_0x3c6821['is']('element','code'))return;if(!_0x1a83bd['consumable']['consume'](_0x3c6821,{'attributes':['vid_start','vid_end']}))return;const _0x3f733f=_0x500548['modelRange']['start']['nodeAfter'];_0x1a83bd['writer']['setAttribute']('vid_start',_0x3c6821['getAttribute']('vid_start'),_0x3f733f),_0x1a83bd['writer']['setAttribute']('vid_end',_0x3c6821['getAttribute']('vid_end'),_0x3f733f);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x55cf42=>{_0x55cf42['on']('element',(_0x45e475,_0x58c37c,_0x48fac9)=>{if(!_0x48fac9['consumable']['consume'](_0x58c37c['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x58c37c['modelRange']['isCollapsed'])return;const _0x1d7cb4=_0x58c37c['modelRange']['start']['nodeAfter'];_0x1d7cb4['hasAttribute']('vid_start')||_0x1d7cb4['hasAttribute']('vid')||(_0x48fac9['writer']['setAttribute']('vid_start',_0x58c37c['viewItem']['getAttribute']('vid_start'),_0x1d7cb4),_0x48fac9['writer']['setAttribute']('vid_end',_0x58c37c['viewItem']['getAttribute']('vid_end'),_0x1d7cb4));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x552889=>_0x552889['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x5ae79f,[,_0x1ddbe2])=>{['vid_start','vid_end','vid']['includes'](_0x1ddbe2)&&(_0x5ae79f['return']=!0x0,_0x5ae79f['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0xd79d30=>{_0xd79d30['on']('attribute:vid',(_0x27152b,_0x522e33,_0x41f9c2)=>{if('\x20'!=_0x522e33['item']['data']||_0x522e33['item']['parent']['maxOffset']>0x1)return;if(!_0x41f9c2['consumable']['consume'](_0x522e33['item'],_0x27152b['name']))return;const _0xfbbc0b=_0x41f9c2['writer'],_0xe4f57b=_0x41f9c2['mapper']['toViewRange'](_0x522e33['range']);_0xfbbc0b['wrap'](_0xe4f57b,_0xfbbc0b['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x31b108){const _0x3c5953=_0x31b108['plugins']['get']('RevisionViewer');return(_0x188f65,_0x1265b4,_0x3e2df4)=>{const _0x40519c=_0x1265b4['markerName']['split'](':')[0x1],_0x56c863=_0x3c5953['_getChangeFromId'](_0x40519c);if(!_0x56c863)return null;const _0x55b3e6='add'==_0x56c863['type']?'split':'merge';if(!_0x3e2df4['consumable']['test'](_0x1265b4['markerRange'],_0x188f65['name']))return;const _0x4ba44a=_0x1265b4['markerRange']['getWalker'](),_0x2ea63c=_0x1265b4['markerRange']['start'],_0x345d99=_0x31b108['model']['schema'];let _0x5b2962=null,_0x376a83=null,_0x17136d=!0x1,_0x4c8a39=!0x1;for(const _0x338075 of _0x4ba44a){const _0x4bc3e0=_0x338075['item'];_0x17136d=_0x17136d||_0x345d99['isContent'](_0x4bc3e0);const _0x20a0c5=_0x3e2df4['mapper']['toViewElement'](_0x4bc3e0);if(_0x20a0c5&&_0x20a0c5['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x338075['type']&&(_0x345d99['isBlock'](_0x4bc3e0)&&!_0x345d99['isLimit'](_0x4bc3e0)&&(_0x4bc3e0['nextSibling']||_0x2ea63c['isAtEnd']?_0x5b2962&&_0x5b2962['parent']==_0x4bc3e0||(_0x5b2962=_0x4bc3e0,_0x2f97c2(_0x338075['previousPosition']),_0x4c8a39=!0x0):_0x376a83=_0x376a83||_0x338075['previousPosition']));}function _0x2f97c2(_0x39b474){const _0x35f764=_0x3e2df4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x55b3e6}),_0x4383de=_0x3e2df4['mapper']['toViewPosition'](_0x39b474);_0x56c863['data']['isSuggestion']&&_0x3e2df4['writer']['addClass']('ck-suggestion-marker-'+_0x55b3e6+'-new',_0x35f764),_0x3c5953['activeChange']==_0x56c863&&_0x3e2df4['writer']['addClass']('ck-suggestion-marker--active',_0x35f764),_0x3e2df4['writer']['insert'](_0x4383de,_0x35f764),_0x3e2df4['mapper']['bindElementToMarker'](_0x35f764,_0x1265b4['markerName']);}_0x17136d||_0x4c8a39||!_0x376a83||_0x2f97c2(_0x376a83);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x232e1a,_0x339ee1,_0x450060)=>{const _0x35472f=_0x450060['mapper']['markerNameToElements'](_0x339ee1['markerName']);if(_0x35472f){for(const _0x3e35e2 of _0x35472f)(_0x3e35e2['hasClass']('ck-suggestion-marker-split')||_0x3e35e2['hasClass']('ck-suggestion-marker-merge'))&&(_0x450060['mapper']['unbindElementFromMarkerName'](_0x3e35e2,_0x339ee1['markerName']),_0x450060['writer']['remove'](_0x3e35e2));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0xd6548a,_0x386f0b,_0x55518a)=>{const _0x324d7a=_0x386f0b['markerName']['split'](':')[0x1],_0x2ff7a8=this['_getChangeFromId'](_0x324d7a);if(!_0x2ff7a8)return null;const _0x4ed350='add'==_0x2ff7a8['type']?'split':'merge';if(_0x55518a['consumable']['test'](_0x386f0b['markerRange'],_0xd6548a['name']))for(const _0x1c722c of _0x386f0b['markerRange']['getItems']()){if(!_0x1c722c['is']('element','softBreak'))continue;const _0x2798f0=_0x55518a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4ed350}),_0x2a74f1=_0x55518a['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x1c722c));_0x2ff7a8['data']['isSuggestion']&&_0x55518a['writer']['addClass']('ck-suggestion-marker-'+_0x4ed350+'-new',_0x2798f0),this['activeChange']==_0x2ff7a8&&_0x55518a['writer']['addClass']('ck-suggestion-marker--active',_0x2798f0),_0x55518a['writer']['insert'](_0x2a74f1,_0x2798f0),_0x55518a['mapper']['bindElementToMarker'](_0x2798f0,_0x386f0b['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x42e23c=>{for(const _0x141a4d of this['editor']['model']['document']['getRootNames']()){const _0x2f34a6=this['editor']['model']['document']['getRoot'](_0x141a4d),_0x405bd4=this['editor']['editing']['view']['document']['getRoot'](_0x141a4d);if(_0x405bd4){const _0x27446b=_0x2f34a6['getAttribute']('revisionHistoryAttachChange');if(_0x42e23c['removeAttribute']('data-change-id',_0x405bd4),_0x42e23c['removeClass']('ck-revision-history-root-add',_0x405bd4),_0x42e23c['removeClass']('ck-revision-history-root-remove',_0x405bd4),_0x42e23c['removeClass']('ck-revision-history-root--active',_0x405bd4),_0x27446b){const _0x110868=this['_getChangeFromId'](_0x27446b);if(!_0x110868)return null;_0x42e23c['setAttribute']('data-change-id',_0x27446b,_0x405bd4),_0x42e23c['addClass']('ck-revision-history-root-'+_0x110868['type'],_0x405bd4),this['activeChange']==_0x110868&&_0x42e23c['addClass']('ck-revision-history-root--active',_0x405bd4);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x593514=>'revision-comment:'+_0x593514,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x1acd6c=>'revision-suggestion:'+_0x1acd6c,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2befec=>({'name':'suggestion:'+_0x2befec,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0xb17b4=>{const _0x937b82=_0xb17b4['markerName']['split'](':')[0x1];return'insertion'!=_0x937b82&&'deletion'!=_0x937b82?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x937b82]};}}),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',(_0x151492,_0x4b5ac8,_0x465154)=>{const _0x390dbb=_0x465154['mapper']['markerNameToElements'](_0x4b5ac8['markerName']);if(_0x390dbb){for(const _0x2e7d25 of _0x390dbb)_0x2e7d25['is']('uiElement')&&(_0x465154['mapper']['unbindElementFromMarkerName'](_0x2e7d25,_0x4b5ac8['markerName']),_0x465154['writer']['remove'](_0x2e7d25));}},{'priority':'high'});}['_getChangeFromId'](_0x2c1644){return this['_changeIdToChange']['get'](_0x2c1644);}['_getViewForChange'](_0x2e5cf7){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x2e5cf7),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x4dc146,_0x5ed81e,_0x28c30e,_0x41d40d)=>{_0x41d40d&&this['_balloon']['remove'](_0x41d40d),_0x28c30e&&(this['_balloon']['add']({'view':_0x28c30e,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x1961b3=this['editor']['editing'],_0x55a546=this['_getChangeFromId'](_0x28c30e['changeId']);let _0x55749e;if(_0x55a546['data']['isOnRoot']){const _0xb62ff3=_0x1961b3['view']['getDomRoot'](_0x55a546['rootName']);_0x55749e=Array['from'](_0xb62ff3['getClientRects']());}else{const _0x9138b5=this['editor']['model']['markers']['get']('revision:'+_0x28c30e['changeId']);_0x55749e=Array['from'](_0x1961b3['mapper']['markerNameToElements'](_0x9138b5['name']))['map'](_0x3a5d6d=>_0x1961b3['view']['domConverter']['mapViewToDom'](_0x3a5d6d))['map'](_0x15cdea=>Array['from'](_0x15cdea['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x55749e[0x0];return _0x55749e['find'](_0x44de33=>_0x44de33['top']-0x3<=this['_activeViewTarget']['y']&&_0x44de33['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x44de33['left']-0x3<=this['_activeViewTarget']['x']&&_0x44de33['right']+0x3>=this['_activeViewTarget']['x'])||_0x55749e[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x26122f,_0xc2891b,_0x1c1174,_0x532161)=>{this['activeView']=_0x1c1174?this['_getViewForChange'](_0x1c1174):null,this['editor']['model']['change'](()=>{const _0x2d1f40=this['editor']['editing'];_0x532161&&(_0x532161['data']['isOnRoot']?_0x2d1f40['view']['change'](_0x138f47=>{_0x138f47['removeClass']('ck-revision-history-root--active',_0x2d1f40['view']['document']['getRoot'](_0x532161['rootName']));}):_0x2d1f40['reconvertMarker']('revision:'+_0x532161['id'])),_0x1c1174&&(_0x1c1174['data']['isOnRoot']?_0x2d1f40['view']['change'](_0x11056e=>{_0x11056e['addClass']('ck-revision-history-root--active',_0x2d1f40['view']['document']['getRoot'](_0x1c1174['rootName']));}):_0x2d1f40['reconvertMarker']('revision:'+_0x1c1174['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x2d65ed,_0x28338d)=>{if(this['activeChange'])return;const _0x106d6f=this['_findChangeIdFromDomTarget'](_0x28338d['target']),_0x4927fe=this['_changeIdToChange']['get'](_0x106d6f);_0x4927fe?(this['_activeViewTarget']={'x':_0x28338d['domEvent']['x'],'y':_0x28338d['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x4927fe)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x11e6d3,_0x1ad152)=>{const _0x44282d=this['_findChangeIdFromDomTarget'](_0x1ad152['target']),_0x9d3413=this['_changeIdToChange']['get'](_0x44282d);_0x9d3413?(this['_activeViewTarget']={'x':_0x1ad152['domEvent']['x'],'y':_0x1ad152['domEvent']['y']},_0x9d3413===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x9d3413):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x1632bb){do{const _0x432f23=_0x1632bb['getAttribute']('data-change-id');if(_0x432f23)return _0x432f23;_0x1632bb=_0x1632bb['parent'];}while(_0x1632bb);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x17a4dc=>{for(const _0x905c9 of this['editor']['model']['markers'])_0x17a4dc['removeMarker'](_0x905c9);});}}function Z(_0x14bde4,_0x1ea899){return(_0xd8053b,_0x1dec72,_0x4dc8f1)=>{if(!_0x4dc8f1['consumable']['test'](_0x1dec72['markerRange'],_0xd8053b['name']))return;const _0x339c0c=_0x1dec72['markerRange']['getWalker'](),_0xe3b17e=_0x1dec72['markerRange']['start'],_0x22e1a1=_0x14bde4['model']['schema'];let _0x1700ee=null,_0x357ab1=null,_0x13bf12=!0x1,_0x223124=!0x1;for(const _0x523e36 of _0x339c0c){const _0x5420b1=_0x523e36['item'];_0x13bf12=_0x13bf12||_0x22e1a1['isContent'](_0x5420b1);const _0x4689b5=_0x4dc8f1['mapper']['toViewElement'](_0x5420b1);if(_0x4689b5&&_0x4689b5['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x523e36['type']&&(_0x22e1a1['isBlock'](_0x5420b1)&&!_0x22e1a1['isLimit'](_0x5420b1)&&(_0x5420b1['nextSibling']||_0xe3b17e['isAtEnd']?_0x1700ee&&_0x1700ee['parent']==_0x5420b1||(_0x1700ee=_0x5420b1,_0x4d9f27(_0x523e36['previousPosition']),_0x223124=!0x0):_0x357ab1=_0x357ab1||_0x523e36['previousPosition']));}function _0x4d9f27(_0x6fcf94){const _0x3da363=_0x4dc8f1['mapper']['toViewPosition'](_0x6fcf94),_0x3f4c4e=_0x4dc8f1['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x1ea899});_0x4dc8f1['writer']['insert'](_0x3da363,_0x3f4c4e),_0x4dc8f1['mapper']['bindElementToMarker'](_0x3f4c4e,_0x1dec72['markerName']);}_0x13bf12||_0x223124||!_0x357ab1||_0x4d9f27(_0x357ab1);};}class _t extends _0xebfd2f{constructor(_0x487bd7){super(_0x487bd7);const _0x385ed4=_0x487bd7['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x385ed4,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x385ed4,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x2117ba=this['editor'],_0x3189e5=_0x2117ba['plugins']['get'](d),_0x2b64b1=_0x3189e5['isReady']?_0x3189e5['diff']['newRevisionId']:null;_0x2117ba['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2b64b1);}['refresh'](){const {isReady:_0x2f10b8,isEnabled:_0x3001eb,repository:_0x4aa205,diff:_0x584a5f}=this['editor']['plugins']['get'](d),_0x927e9b=_0x584a5f&&_0x4aa205['getLaterVisibleRevision'](_0x584a5f['newRevisionId']);this['isEnabled']=_0x2f10b8&&_0x3001eb&&Boolean(_0x927e9b);}}class yt extends _0xebfd2f{['_step'];constructor(_0x32ab42,{direction:_0x2b11b0}){super(_0x32ab42);const _0x58dae3=_0x32ab42['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x2b11b0?0x1:-0x1,this['listenTo'](_0x58dae3,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x58dae3,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x58dae3,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x159d18=this['editor'],_0x4fb4df=_0x159d18['plugins']['get'](d),{isNavigationMode:_0x5212f3,currentChangeNumber:_0x40a6ee}=_0x4fb4df;let _0x290fff;if(_0x4fb4df['activeChange']=_0x5212f3?_0x4fb4df['diff']['changes']['get'](_0x40a6ee+this['_step']):_0x4fb4df['diff']['changes']['first'],_0x4fb4df['activeChange']['data']['isOnRoot'])_0x290fff=_0x159d18['editing']['view']['getDomRoot'](_0x4fb4df['activeChange']['rootName']);else{const _0x590c7b=_0x159d18['model']['markers']['get']('revision:'+_0x4fb4df['activeChange']['id']);_0x290fff=_0x8a99ae(_0x159d18['editing'],_0x590c7b);}_0x524a74({'target':_0x290fff,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2b6ba2,currentChangeNumber:_0x378c45,numberOfChanges:_0x58b880,isReady:_0x24d137,isEnabled:_0x3e34b1}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x3e34b1&&_0x24d137&&_0x58b880)&&(!_0x2b6ba2||(0x1===this['_step']?_0x378c45<_0x58b880-0x1:_0x378c45>0x0));}}class di extends _0x292cac{constructor(_0x34a370){super(_0x34a370);const _0x5f470d=this['bindTemplate'],_0x7aacf1=new _0x559b2e(_0x34a370),_0xe6bee1=new _0x559b2e(_0x34a370);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',(_0x434e6b,_0x2cd28a)=>_0x434e6b&&_0x2cd28a>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x366d12,_0x316cdb,_0x4b9c7a,_0x3137fd)=>{if(!_0x366d12)return m(_0x34a370,'Loading...');if(!_0x4b9c7a)return m(_0x34a370,'No\x20changes');const _0x4c2bb9=m(_0x34a370,'NUMBER_OF_CHANGES',_0x4b9c7a);return _0x3137fd?m(_0x34a370,'X_OF_Y_CHANGES',[_0x316cdb+0x1,_0x4b9c7a]):_0x4c2bb9;}),_0x7aacf1['set']({'label':m(_0x34a370,'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'}),_0xe6bee1['set']({'label':m(_0x34a370,'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'}),_0x7aacf1['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0xe6bee1['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x7aacf1['on']('execute',()=>this['fire']('execute','backward')),_0xe6bee1['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',_0x5f470d['if']('_isStatusLabelVisible','ck-hidden',_0x425fe9=>!_0x425fe9)]},'children':[{'text':_0x5f470d['to']('isNavigationMode',_0x3ec43b=>_0x3ec43b?m(_0x34a370,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x34a370,'Total')+':\x20')}]},{'text':_0x5f470d['to']('_statusText')}]},new _0x5b8931(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x7aacf1,_0xe6bee1]}]});}}const ce='ck-editor__editable__loading-overlay';class ae extends _0x38f4f7{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x2760be=this['editor']['editing']['view'];_0x2760be['change'](_0x290b43=>{for(const _0x3157ae of _0x2760be['document']['roots'])_0x290b43['addClass'](ce,_0x3157ae);});}['hide'](){const _0xc4964=this['editor']['editing']['view'];_0xc4964['change'](_0x15ddd4=>{for(const _0xf96126 of _0xc4964['document']['roots'])_0x15ddd4['removeClass'](ce,_0xf96126);});}}class g extends _0x38f4f7{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ae];}['init'](){const _0x473c23=this['editor'],_0x3455d4=_0x473c23['plugins']['get'](d),_0x38c84d=_0x473c23['plugins']['get'](ae);_0x473c23['ui']['componentFactory']['add']('exitToEditing',_0x2cf60d=>{const _0x1ba7c3=new _0x559b2e(_0x2cf60d);return _0x1ba7c3['set']({'label':m(_0x2cf60d,'Back\x20to\x20editing'),'icon':_0x23c949['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x1ba7c3,'execute',()=>{_0x473c23['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x1ba7c3;}),_0x473c23['ui']['componentFactory']['add']('restoreRevision',_0x4ec323=>{const _0x15ce87=new _0x559b2e(_0x4ec323);return _0x15ce87['set']({'label':m(_0x4ec323,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x15ce87['bind']('isEnabled')['to'](_0x473c23['commands']['get']('restoreRevision')),this['listenTo'](_0x15ce87,'execute',()=>_0x473c23['execute']('restoreRevision')),_0x15ce87;}),_0x473c23['ui']['componentFactory']['add']('changesNavigation',_0x2e950e=>{const _0x3ff321=new di(_0x2e950e),_0x51ab3d=_0x473c23['commands']['get']('showPreviousChange'),_0x3f79ff=_0x473c23['commands']['get']('showNextChange');return _0x3ff321['bind']('isBackwardNavigationEnabled')['to'](_0x51ab3d,'isEnabled'),_0x3ff321['bind']('isForwardNavigationEnabled')['to'](_0x3f79ff,'isEnabled'),_0x3ff321['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x3455d4),this['listenTo'](_0x3ff321,'execute',(_0x458388,_0x4595d3)=>{_0x473c23['execute']('forward'===_0x4595d3?'showNextChange':'showPreviousChange');}),_0x3ff321;}),_0x38c84d['show'](),_0x3455d4['on']('change:isReady',(_0x12fcf8,_0x3559b4,_0xfe50a3)=>{_0xfe50a3?_0x38c84d['hide']():_0x38c84d['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x585df5,_0x2ec746){super(_0x585df5,_0x2ec746);const _0xbe1ea4=this['bindTemplate'];this['set']({'label':m(_0x585df5,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x585df5,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0xbe1ea4['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 _0x27433a=this['fieldView']['element'];this['_tooltipString']=_0x27433a['scrollWidth']>_0x27433a['clientWidth']&&_0x27433a['value']||'';}}class ti extends _0x292cac{constructor(_0x1a06cd,_0x51323a,_0x2cf4cd){super(_0x1a06cd);const _0x245ac5=new _0x2c29c5();_0x245ac5['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 _0x2ae2b4=['ck','ck-revision-history-sidebar__revision-author'];_0x2cf4cd&&_0x2ae2b4['push']('ck-revision-history-sidebar__revision-author_creator');const _0x4586e2=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x1a06cd,_0x2cf4cd?'Revision\x20creator':'Revision\x20author')},'children':[_0x245ac5,_0x51323a['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x2ae2b4},'children':_0x4586e2});}}function ni(_0x55b38d,_0x14838e){const _0x5344f1=_0x55b38d['bindTemplate'],_0xc4e093=_0x55b38d['locale'],_0x3f798d=_0xb121cb(_0xc4e093);_0x3f798d['panelPosition']='sw';const _0x1cdbd7=function(_0x1940f2,_0x4f0dc0){const _0x5283cc=function(_0x530d0f,_0x3b1c75){const _0x31bbe5=_0x530d0f['locale'],_0x2fe1ad={'Compare\x20against\x20selected':m(_0x31bbe5,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x31bbe5,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x31bbe5,'Restore\x20this\x20revision')};return _0x3b1c75['map'](_0x1879f1=>{const _0x5052c2=_0x2fe1ad[_0x1879f1['name']];return _0x5052c2&&_0x5052c2!==_0x1879f1['name']&&(_0x1879f1['name']=_0x5052c2),_0x1879f1;});}(_0x1940f2,_0x4f0dc0),_0x596230=new _0x2ff70c();for(const _0x2734d0 of _0x5283cc){const _0x2068f0={'type':'button','model':new to({'label':_0x2734d0['name'],'class':_0x2734d0['class'],'withText':!0x0,'role':'menuitem','_action':_0x2734d0['action']})};_0x2068f0['model']['bind']('isEnabled')['to'](_0x1940f2,'isActionsDropdownOpen',_0x5c9803=>'function'!=typeof _0x2734d0['isEnabled']||(!_0x5c9803||_0x2734d0['isEnabled'](_0x1940f2))),_0x596230['add'](_0x2068f0);}return _0x596230;}(_0x55b38d,_0x14838e);return _0x55b38d['bind']('isActionsDropdownOpen')['to'](_0x3f798d,'isOpen'),_0x3f798d['buttonView']['set']({'label':m(_0xc4e093,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x23c949['threeVerticalDots']}),_0x3f798d['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x5344f1['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x5344f1['to'](_0x4ad60d=>_0x4ad60d['stopPropagation']())}}),_0x3f798d['on']('execute',_0x24939a=>{_0x55b38d['isReady']&&'function'==typeof _0x24939a['source']['_action']&&_0x24939a['source']['_action'](_0x55b38d);}),_0x478fff(_0x3f798d,_0x1cdbd7,{'role':'menu'}),_0x3f798d['listenTo'](_0x55b38d,'change:isActionsDropdownOpen',(_0x288c0e,_0xf5eb6a,_0x4c3908)=>{if(_0x4c3908)for(const _0x3572fa of _0x3f798d['listView']['items']){const _0x380d9a=_0x3572fa['children']['first'],_0x57ef0b=_0x14838e['find'](_0x143326=>_0x143326['action']===_0x380d9a['_action'])['isVisible'];_0x3572fa['isVisible']=void 0x0===_0x57ef0b||_0x57ef0b(_0x55b38d);}}),_0x3f798d;}class ai extends/* #__PURE__ -- @preserve */
26
+ _0x34480e(_0x292cac){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x32eb3f,_0x8f3a34,_0x173078,_0x16e2c7){super(_0x32eb3f);const _0x1ea0a6=this['bindTemplate'],_0x40ed28=function(_0x4bd98c,_0x3df8c7){const _0xdaf626=Array['from'](_0x3df8c7['authors'])['filter'](_0x7d0860=>_0x7d0860!=_0x3df8c7['creator']);return _0x3df8c7['creator']&&_0xdaf626['unshift'](_0x3df8c7['creator']),_0xdaf626['map'](_0xb1dcc2=>new ti(_0x4bd98c,_0xb1dcc2,_0xb1dcc2==_0x3df8c7['creator']));}(_0x32eb3f,_0x8f3a34);this['id']=_0x8f3a34['id'],this['_revision']=_0x8f3a34,this['_requireRevisionName']=_0x16e2c7,this['bind']('name','createdAt')['to'](_0x8f3a34),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x1db887=>{return _0x4bf004=_0x32eb3f['uiLanguage'],(_0x4c4690=_0x1db887)['toLocaleDateString'](_0x4bf004,{'month':'long','day':'numeric'})+',\x20'+_0x4c4690['toLocaleTimeString'](_0x4bf004,{'hour':'numeric','minute':'numeric'});var _0x4bf004,_0x4c4690;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x32eb3f,_0x11ce75),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x47326e=>_0x47326e||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x3da61,_0x5367c2)=>_0x3da61&&_0x5367c2),this['revisionActionsView']=_0x173078&&_0x173078['length']?ni(this,_0x173078):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x1ea0a6['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x1ea0a6['if']('isEnabled','ck-disabled',_0x3eeb21=>!_0x3eeb21),_0x1ea0a6['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x1ea0a6['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x1ea0a6['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':_0x1ea0a6['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':_0x40ed28}]},this['revisionActionsView']],'on':{'click':_0x1ea0a6['to'](_0x1592ec=>{_0x1592ec['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x213abc=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x213abc,'change',()=>{this['_requireRevisionName']&&!_0x213abc['value']||this['fire']('setName',{'id':this['id'],'name':_0x213abc['value']}),_0x213abc['value']||(_0x213abc['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(_0x371f36,_0x2c6702){const _0x482267=_0x549665['fromJSDate'](_0x371f36)['setLocale'](_0x2c6702),_0x5703d6=_0x549665['local'](),_0x2f216d=_0x5703d6['minus']({'days':0x1})['startOf']('day');let _0x19e4ae,_0x316c50;return _0x482267['hasSame'](_0x5703d6,'day')?(_0x19e4ae=_0x482267['startOf']('day')['toJSDate'](),_0x316c50=_0x482267['toRelativeCalendar']()):_0x482267['hasSame'](_0x2f216d,'day')?(_0x19e4ae=_0x2f216d['toJSDate'](),_0x316c50=_0x482267['toRelativeCalendar']()):_0x482267['hasSame'](_0x5703d6,'week')?(_0x19e4ae=_0x482267['startOf']('week')['toJSDate'](),_0x316c50=_0x482267['weekdayLong']||''):_0x482267['hasSame'](_0x5703d6,'year')?(_0x19e4ae=_0x482267['startOf']('month')['toJSDate'](),_0x316c50=_0x482267['monthLong']||''):(_0x19e4ae=_0x482267['startOf']('year')['toJSDate'](),_0x316c50=String(_0x482267['year'])),{'startDate':_0x19e4ae,'localizedPeriodName':_0x316c50};}class vi extends _0x292cac{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x14d4ca,_0x1822d1,_0x28f811,_0xb37ed6){super(_0x14d4ca);const _0xf2a844=mi(_0x1822d1,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x1822d1,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x28f811,this['_requireRevisionName']=_0xb37ed6,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':_0xf2a844}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x55cd24){const _0x4909eb=new ai(this['locale'],_0x55cd24,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x4909eb);}['removeRevision'](_0xdbb5b3){const _0x270556=this['revisionViews']['find'](_0xe1e2e3=>_0xe1e2e3['id']===_0xdbb5b3['id']);this['revisionViews']['remove'](_0x270556);}}class as extends _0x292cac{constructor(_0x1e3129){super(_0x1e3129);const _0x39bea6=new _0x2c29c5();_0x39bea6['content']=_0x23c949['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x39bea6,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x1e3129,'Revision\x20history')]}]});}}class li extends _0x292cac{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x48217f,_0x312020,_0x442318,_0x2f9321){super(_0x48217f);const _0x215ebb=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x312020,this['_revisionActions']=_0x442318,this['_requireRevisionName']=_0x2f9321,this['on']('select',(_0x169d85,_0x45d84b)=>{this['fire']('revisionSelected',_0x45d84b);}),this['on']('setName',(_0x3d51e6,_0x567881)=>{this['fire']('revisionSetName',_0x567881);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x48217f),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x215ebb['if']('isEnabled','ck-disabled',_0x441ad5=>!_0x441ad5)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x10f28e of this['_revisions'])this['_addRevision'](_0x10f28e);this['_revisions']['on']('add',(_0x4d7a6b,_0x31d896)=>{this['_addRevision'](_0x31d896);}),this['_revisions']['on']('remove',(_0x113bc1,_0x1ac4c3)=>{this['_removeRevision'](_0x1ac4c3);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x5d5e83=>_0x5d5e83['revisionViews']['map'](_0x53d77a=>_0x53d77a))['flat']();}['selectRevision'](_0xf2b83c){for(const _0x2ef310 of this['revisionViews'])_0xf2b83c&&_0xf2b83c['id']===_0x2ef310['id']?_0x2ef310['select']():_0x2ef310['deselect']();}['highlightRevisions'](_0x459f28){for(const _0x2a87f0 of this['revisionViews'])_0x459f28['some'](({id:_0x332716})=>_0x332716===_0x2a87f0['id'])?_0x2a87f0['highlight']():_0x2a87f0['unhighlight']();}['_addRevision'](_0x49c07d){const _0x58609f=mi(_0x49c07d['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x33983=this['timePeriodViews']['get'](0x0);_0x33983&&_0x33983['startDate']['getTime']()===_0x58609f['getTime']()||(_0x33983=new vi(this['locale'],_0x58609f,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x33983)),_0x33983['addRevision'](_0x49c07d);}['_removeRevision'](_0x135f19){const _0x47af1a=mi(_0x135f19['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x47af1a)['removeRevision'](_0x135f19);}['_getTimePeriodViewByStartDate'](_0x126533){return this['timePeriodViews']['find'](_0x29d829=>_0x29d829['startDate']['getTime']()===_0x126533['getTime']());}}class w extends _0x38f4f7{['_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(_0x4bbf87){super(_0x4bbf87),this['_revisionViewer']=_0x4bbf87['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x58b39b=this['_revisionsRepository']['_revisions'],_0x57d49a=this['_createRevisionActions'](),_0x520431=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ii(this['editor']['locale'],_0x58b39b,_0x57d49a,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',(_0xa699f1,_0x5e3235)=>{_0x5e3235['revisionViews']['on']('add',(_0x2dc5ff,_0x3b803f)=>{_0x3b803f['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)),_0x520431['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x325a41=this['_revisionsRepository']['getRevision'](0x0);if(_0x325a41){const _0x403545=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x325a41['id']);this['_revisionViewer']['compare'](_0x325a41,_0x403545);}}['_handleRevisionSelected'](_0x4aba74,_0x3bfeae){const _0x1fa96a=this['_revisionsRepository']['getRevision'](_0x3bfeae['id']),_0x2fa907=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x1fa96a['id']);this['_revisionViewer']['compare'](_0x1fa96a,_0x2fa907);}['_handleRevisionSetName'](_0x19832e,_0x4ab075){this['_revisionsRepository']['getRevision'](_0x4ab075['id'])['setName'](_0x4ab075['name']);}['_handleDiffChange'](_0x4c758c,_0x5b681d,_0x58b7b5){const _0x1a97a0=this['_revisionsRepository']['getRevisionsInDiff'](_0x58b7b5);_0x1a97a0['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x1a97a0),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x1a97a0[0x0]));}['_createRevisionActions'](){const _0x170b9e=this['editor'],_0x23a55b=w['availableRevisionActions'],_0x41946c=_0x170b9e['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x41946c['length'])return _0x41946c['map'](_0x555316=>{const _0x1537b9='string'==typeof _0x555316?Object['assign']({},_0x23a55b[_0x555316]):_0x555316;return _0x1537b9['action']=_0x1537b9['action']['bind'](this,_0x170b9e),_0x1537b9['isVisible']&&(_0x1537b9['isVisible']=_0x1537b9['isVisible']['bind'](this,_0x170b9e)),_0x1537b9;});}}function yt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x5cc5a2},_0x322543)=>{const _0x5ba67f=_0x5cc5a2['get'](d),_0x5c48a5=_0x5ba67f['repository'];let _0x54b458=_0x5ba67f['diff']['newRevisionId'],_0x40a9a5=_0x322543['id'];_0x5c48a5['getIndex'](_0x54b458)>_0x5c48a5['getIndex'](_0x40a9a5)&&([_0x54b458,_0x40a9a5]=[_0x40a9a5,_0x54b458]),_0x5ba67f['compare'](_0x54b458,_0x40a9a5);},'isVisible':({plugins:_0x49d879},_0x3529ab)=>{const _0x383b75=_0x49d879['get'](d);return!(_0x383b75['repository']['getRevisionsInDiff'](_0x383b75['diff'])['length']>0x2)&&!_0x3529ab['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x3c1355,{id:_0x5759e7})=>{_0x3c1355['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5759e7);},'isVisible':({plugins:_0x922cd2},_0x4aac8d)=>!!_0x922cd2['get'](d)['repository']['getLaterVisibleRevision'](_0x4aac8d['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x2d00dd},{id:_0xf07dee,revisionNameView:_0xaa81e7})=>{const _0x390b23=_0x2d00dd['get'](d),_0x52eace=_0x390b23['repository']['getEarlierVisibleRevision'](_0xf07dee);_0x390b23['compare'](_0xf07dee,_0x52eace),_0xaa81e7['focus'](),_0xaa81e7['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x456f68,_0x28a38f){super(_0x456f68),this['_view']=_0x28a38f,this['_toolbarConfig']=ot(_0x456f68['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x13db7a){const _0x18e221=this['editor'],_0x59eb88=this['view'],_0x57ff5f=_0x18e221['editing']['view'],_0x2be3f9=_0x59eb88['editable'],_0xb52687=_0x57ff5f['document']['getRoot']();_0x2be3f9['name']=_0xb52687['rootName'],_0x59eb88['render']();const _0x1a457e=_0x2be3f9['element'];this['setEditableElement'](_0x2be3f9['name'],_0x1a457e),_0x59eb88['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x57ff5f['attachDomRoot'](_0x1a457e),this['_elementReplacer']['replace'](_0x13db7a,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x1f6e54=this['view'],_0x14bc0f=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x14bc0f['detachDomRoot'](_0x1f6e54['editable']['name']),_0x1f6e54['destroy']();}['_initToolbar'](){const _0x37ef13=this['view'];_0x37ef13['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x37ef13['stickyPanel']['limiterElement']=_0x37ef13['element'],_0x37ef13['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0xa16727})=>_0xa16727),_0x37ef13['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x37ef13['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x76376,_0x4c9434,_0x21ad84={}){super(_0x76376),this['stickyPanel']=new ut(_0x76376),this['toolbar']=new lt(_0x76376,{'shouldGroupWhenFull':_0x21ad84['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x76376,_0x4c9434);}['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(_0x9ab8df,_0x216d6f){super(_0x216d6f),this['sourceElement']=_0x9ab8df,this['model']['document']['createRoot']();const _0x568b70=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x568b70);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x276f10,_0x226e8e){const _0x4e8195=new this(_0x276f10,_0x226e8e);return await _0x4e8195['initPlugins'](),await _0x4e8195['ui']['init'](_0x276f10),await _0x4e8195['data']['init'](_0x4e8195['config']['get']('initialData')||''),_0x4e8195['fire']('ready'),_0x4e8195;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class bt extends _0x3bebb5{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x59dc72){function _0x4231dd(_0x42c315){return _0x42c315['map'](_0x50cc0e=>String['fromCharCode'](_0x50cc0e))['join']('');}super(_0x59dc72),this['result']='end',_0x59dc72[_0x4231dd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4231dd([0x76,0x69,0x65,0x77])][_0x4231dd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4231dd([0x61,0x75,0x74,0x6f]),_0x59dc72[_0x4231dd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4231dd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4231dd([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4231dd([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4231dd([0x6f,0x6b])});}}class k extends _0x3bebb5{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0xd55c5b){if(super(_0xd55c5b),!this['editor']['config']['get']('revisionHistory'))throw new _0x45bf98('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x115265=>this['_showRevisionViewer']({..._0x115265,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x1210f7=>this['_closeRevisionViewer'](_0x1210f7)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x4513b1=>this['_restoreRevision'](_0x4513b1)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x3bf169){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x3bf169;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x332136){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x332136);}['getRevision'](_0x3b6433){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x3b6433);}['getRevisions'](_0x5ed31e){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x5ed31e||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x343e30=this['editor'],_0x1976e5=_0x1a30a5(_0x343e30,p),_0x55d3ae=_0x343e30['plugins']['get']('RevisionTracker'),_0x54111c=_0x343e30['plugins']['get']('Users')['users'];return _0x1976e5['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x1976e5['lazyRoots'],(_0x1976e5['plugins']['push'](bt,d,g,class extends _0x3bebb5{static get['requires'](){return[d,'Users'];}['init'](){const _0x2fd222=this['editor']['plugins']['get']('Users');for(const _0x505007 of _0x54111c)_0x505007['isAnonymous']||_0x2fd222['getUser'](_0x505007['id'])||_0x2fd222['addUser'](_0x505007);const _0xc12edd=_0x55d3ae['repository']['getRevisions']();let _0x3f7c4f=null;const _0xd669fc=this['editor']['plugins']['get']('RevisionViewer');_0xd669fc['adapter']=_0x55d3ae['adapter'],_0xd669fc['bind']('isEnabled')['to'](_0x55d3ae),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x343e30,'isReadOnly',_0x11b35b=>!_0x11b35b);for(const _0x4d8f17 of _0xc12edd){const _0x1d7295=null===_0x4d8f17['creator'];if(_0x1d7295&&_0x4d8f17['toVersion']===_0x4d8f17['fromVersion'])continue;const _0x481c02=_0x4d8f17['toJSON']();_0xd669fc['addRevisionData'](_0x481c02,(_0x1e3b9e,_0x3d57ea,_0x13afc3)=>{if(_0x1d7295){if(_0x3f7c4f)_0x3f7c4f['_update'](_0x1e3b9e,_0x3d57ea);else{if(!_0x3d57ea){const _0x363c76=_0x13afc3['toJSON']();_0x363c76['id']=_0x2f8e68(),_0x55d3ae['saveRevision'](_0x363c76,_0x13afc3['toVersion'])['then'](_0x26dec4=>{_0x3f7c4f=_0x26dec4;});}}}else _0x4d8f17['_update'](_0x1e3b9e,_0x3d57ea);});}}},w),_0x1976e5);}['_enhanceShowRevisionViewerCallback'](){const _0x1bf563=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x1cf39c=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x3e00a2=this['editor']['plugins']['get']('Autosave');await _0x3e00a2['save']();}else await _0x1cf39c['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x36ecb5=this['editor']['plugins']['get']('Dialog');_0x36ecb5['isOpen']&&_0x36ecb5['hide']();}const _0x1b5447=this['_getRevisionViewerEditorConfig']();return _0x1bf563(_0x1b5447)['then'](_0x5a2b54=>{return(this['_viewerEditor']=_0x5a2b54,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x5a2b54;})['catch'](_0x53abe8=>(console['error'](_0x53abe8),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x12e38c=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'](),_0x12e38c(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x25bbbb=this['editor']['plugins']['get']('Annotations');_0x25bbbb['refreshVisibility'](),_0x25bbbb['refreshPositioning']();}})));}['_showRevisionViewer'](_0x42d360){const _0x27f482=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x32e830=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x9733eb=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x9733eb,_0x42d360)['then'](_0x456746=>(_0x32e830['style']['display']='block',_0x27f482['style']['display']='none',_0x456746));}['_closeRevisionViewer'](_0x7ae5d5){const _0x18986e=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x18986e['style']['display']='',_0x7ae5d5['destroy']();}async['_restoreRevision'](_0x5d84c4){const _0x244251=this['editor'],_0x1b1231=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x194e80=_0x244251['plugins']['get']('RevisionTracker'),_0x191ffd=_0x1b1231['repository']['getRevision'](_0x5d84c4);let _0x18588b,_0x4204af,_0x52dbe5;try{_0x18588b=await _0x1b1231['getRevisionData'](_0x191ffd),_0x4204af=await _0x1b1231['getRevisionRootsAttributes'](_0x191ffd);}catch(_0x56a6d3){return void console['error'](_0x56a6d3);}_0x244251['model']['change'](_0x5f229f=>{for(const _0x285c81 of Array['from'](_0x244251['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x5f229f['removeMarker'](_0x285c81);}),_0x1b1231['isReady']=!0x1,_0x244251['model']['enqueueChange'](_0x657a86=>{_0x657a86['setSelection'](null),_0x657a86['removeSelectionAttribute'](_0x244251['model']['document']['selection']['getAttributeKeys']());const _0xf622d6=Object['keys'](_0x18588b);for(const _0x4dfcb0 of _0x244251['model']['document']['roots'])'$graveyard'!=_0x4dfcb0['rootName']&&_0x4dfcb0['isAttached']()&&!_0xf622d6['includes'](_0x4dfcb0['rootName'])&&_0x657a86['detachRoot'](_0x4dfcb0);for(const _0x53cf72 of _0xf622d6){let _0x2105a1=_0x244251['model']['document']['getRoot'](_0x53cf72);_0x2105a1&&_0x2105a1['isAttached']()||(_0x2105a1=_0x657a86['addRoot'](_0x53cf72));const _0x5a095b=_0x4204af[_0x53cf72],_0x35e4ab=Object['keys'](_0x5a095b),_0x3ebdf8=_0x18588b[_0x53cf72];for(const _0x38151e of _0x2105a1['getAttributeKeys']())_0x35e4ab['includes'](_0x38151e)||_0x657a86['removeAttribute'](_0x38151e,_0x2105a1);for(const _0xaefb71 of _0x35e4ab)_0x657a86['setAttribute'](_0xaefb71,_0x4204af[_0x53cf72][_0xaefb71],_0x2105a1);_0x657a86['remove'](_0x657a86['createRangeIn'](_0x2105a1)),_0x657a86['insert'](_0x244251['data']['parse'](_0x3ebdf8,_0x2105a1),_0x2105a1,0x0);}});const _0x3817e7=m(_0x244251['locale'],'Restored');if(_0x191ffd['name'])_0x52dbe5=-0x1==_0x191ffd['name']['indexOf'](_0x3817e7)?_0x3817e7+':\x20'+_0x191ffd['name']:_0x191ffd['name'];else _0x52dbe5=_0x3817e7+':\x20'+(_0x191ffd['createdAt']['toLocaleDateString'](_0x244251['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x191ffd['createdAt']['toLocaleTimeString'](_0x244251['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x194e80['saveRevision']({'name':_0x52dbe5}),_0x1b1231['isReady']=!0x0,_0x244251['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ge as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
28
+ bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x409582){super(_0x409582),this['_revisionViewer']=_0x409582['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x5e80f6=this['_revisionsRepository']['_revisions'],_0x31dfd4=this['_createRevisionActions'](),_0x36c7c2=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new li(this['editor']['locale'],_0x5e80f6,_0x31dfd4,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',(_0x4a1991,_0x2c47f7)=>{_0x2c47f7['revisionViews']['on']('add',(_0x3312cd,_0x165e08)=>{_0x165e08['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)),_0x36c7c2['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x42ec58=this['_revisionsRepository']['getRevision'](0x0);if(_0x42ec58){const _0x59003d=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x42ec58['id']);this['_revisionViewer']['compare'](_0x42ec58,_0x59003d);}}['_handleRevisionSelected'](_0x2abd4f,_0x5e3750){const _0x2d77f2=this['_revisionsRepository']['getRevision'](_0x5e3750['id']),_0x30c9c6=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2d77f2['id']);this['_revisionViewer']['compare'](_0x2d77f2,_0x30c9c6);}['_handleRevisionSetName'](_0x495e0d,_0x2e028e){this['_revisionsRepository']['getRevision'](_0x2e028e['id'])['setName'](_0x2e028e['name']);}['_handleDiffChange'](_0x2809e8,_0x46a934,_0x430850){const _0x1fbc26=this['_revisionsRepository']['getRevisionsInDiff'](_0x430850);_0x1fbc26['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x1fbc26),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x1fbc26[0x0]));}['_createRevisionActions'](){const _0x88e7c6=this['editor'],_0x478f22=w['availableRevisionActions'],_0x5881a5=_0x88e7c6['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x5881a5['length'])return _0x5881a5['map'](_0x1e67ec=>{const _0x5e6a67='string'==typeof _0x1e67ec?Object['assign']({},_0x478f22[_0x1e67ec]):_0x1e67ec;return _0x5e6a67['action']=_0x5e6a67['action']['bind'](this,_0x88e7c6),_0x5e6a67['isVisible']&&(_0x5e6a67['isVisible']=_0x5e6a67['isVisible']['bind'](this,_0x88e7c6)),_0x5e6a67;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x4dd60c},_0x35375b)=>{const _0x29a123=_0x4dd60c['get'](d),_0x6defc3=_0x29a123['repository'];let _0x97328b=_0x29a123['diff']['newRevisionId'],_0x41bd49=_0x35375b['id'];_0x6defc3['getIndex'](_0x97328b)>_0x6defc3['getIndex'](_0x41bd49)&&([_0x97328b,_0x41bd49]=[_0x41bd49,_0x97328b]),_0x29a123['compare'](_0x97328b,_0x41bd49);},'isVisible':({plugins:_0x3a6398},_0x49a40c)=>{const _0x21e7f4=_0x3a6398['get'](d);return!(_0x21e7f4['repository']['getRevisionsInDiff'](_0x21e7f4['diff'])['length']>0x2)&&!_0x49a40c['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x5057e3,{id:_0x11abc4})=>{_0x5057e3['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x11abc4);},'isVisible':({plugins:_0x57a0d4},_0x205b12)=>!!_0x57a0d4['get'](d)['repository']['getLaterVisibleRevision'](_0x205b12['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x5b29cc},{id:_0x4daa86,revisionNameView:_0x3f1171})=>{const _0xfa461f=_0x5b29cc['get'](d),_0x4317da=_0xfa461f['repository']['getEarlierVisibleRevision'](_0x4daa86);_0xfa461f['compare'](_0x4daa86,_0x4317da),_0x3f1171['focus'](),_0x3f1171['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x44cbda,_0x3c5370){super(_0x44cbda),this['_view']=_0x3c5370,this['_toolbarConfig']=ot(_0x44cbda['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x4083eb){const _0x308954=this['editor'],_0x317db0=this['view'],_0x5263b6=_0x308954['editing']['view'],_0x18b4dd=_0x317db0['editable'],_0x184160=_0x5263b6['document']['getRoot']();_0x18b4dd['name']=_0x184160['rootName'],_0x317db0['render']();const _0xaf255d=_0x18b4dd['element'];this['setEditableElement'](_0x18b4dd['name'],_0xaf255d),_0x317db0['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x5263b6['attachDomRoot'](_0xaf255d),this['_elementReplacer']['replace'](_0x4083eb,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x13b2d3=this['view'],_0x567cbb=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x567cbb['detachDomRoot'](_0x13b2d3['editable']['name']),_0x13b2d3['destroy']();}['_initToolbar'](){const _0x56d255=this['view'];_0x56d255['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x56d255['stickyPanel']['limiterElement']=_0x56d255['element'],_0x56d255['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x39954f})=>_0x39954f),_0x56d255['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x56d255['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x253977,_0x3efec2,_0x11da3e={}){super(_0x253977),this['stickyPanel']=new ut(_0x253977),this['toolbar']=new lt(_0x253977,{'shouldGroupWhenFull':_0x11da3e['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x253977,_0x3efec2);}['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(_0x20d4ab,_0x16e8c3){super(_0x16e8c3),this['sourceElement']=_0x20d4ab,this['model']['document']['createRoot']();const _0x232748=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x232748);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x22ccce,_0x3aaef6){const _0x801b84=new this(_0x22ccce,_0x3aaef6);return await _0x801b84['initPlugins'](),await _0x801b84['ui']['init'](_0x22ccce),await _0x801b84['data']['init'](_0x801b84['config']['get']('initialData')||''),_0x801b84['fire']('ready'),_0x801b84;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x38f4f7{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2d61ba){function _0x591ccb(_0x105365){return _0x105365['map'](_0x3f98fb=>String['fromCharCode'](_0x3f98fb))['join']('');}super(_0x2d61ba),this['result']='end',_0x2d61ba[_0x591ccb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x591ccb([0x76,0x69,0x65,0x77])][_0x591ccb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x591ccb([0x61,0x75,0x74,0x6f]),_0x2d61ba[_0x591ccb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x591ccb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x591ccb([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x591ccb([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x591ccb([0x6f,0x6b])});}}class k extends _0x38f4f7{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x8f6a96){if(super(_0x8f6a96),!this['editor']['config']['get']('revisionHistory'))throw new _0x35a358('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x539177=>this['_showRevisionViewer']({..._0x539177,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x381999=>this['_closeRevisionViewer'](_0x381999)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x416964=>this['_restoreRevision'](_0x416964)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x1f99d6){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x1f99d6;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x26f68c){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x26f68c);}['getRevision'](_0x4d3867){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x4d3867);}['getRevisions'](_0x321869){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x321869||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x2da1ce=this['editor'],_0x846e13=_0x5b0573(_0x2da1ce,p),_0x47d35f=_0x2da1ce['plugins']['get']('RevisionTracker'),_0x171ee6=_0x2da1ce['plugins']['get']('Users')['users'];return _0x846e13['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x846e13['lazyRoots'],(_0x846e13['plugins']['push'](Rt,d,g,class extends _0x38f4f7{static get['requires'](){return[d,'Users'];}['init'](){const _0x169807=this['editor']['plugins']['get']('Users');for(const _0x19a949 of _0x171ee6)_0x19a949['isAnonymous']||_0x169807['getUser'](_0x19a949['id'])||_0x169807['addUser'](_0x19a949);const _0x3687d2=_0x47d35f['repository']['getRevisions']();let _0x2036ce=null;const _0x4c99ef=this['editor']['plugins']['get']('RevisionViewer');_0x4c99ef['adapter']=_0x47d35f['adapter'],_0x4c99ef['bind']('isEnabled')['to'](_0x47d35f),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x2da1ce,'isReadOnly',_0x23ec44=>!_0x23ec44);for(const _0x57e6b8 of _0x3687d2){const _0x43e3d2=null===_0x57e6b8['creator'];if(_0x43e3d2&&_0x57e6b8['toVersion']===_0x57e6b8['fromVersion'])continue;const _0x2751de=_0x57e6b8['toJSON']();_0x4c99ef['addRevisionData'](_0x2751de,(_0x48453a,_0x3e0524,_0x29cb2c)=>{if(_0x43e3d2){if(_0x2036ce)_0x2036ce['_update'](_0x48453a,_0x3e0524);else{if(!_0x3e0524){const _0x3ea21d=_0x29cb2c['toJSON']();_0x3ea21d['id']=_0x7bac97(),_0x47d35f['saveRevision'](_0x3ea21d,_0x29cb2c['toVersion'])['then'](_0x22def4=>{_0x2036ce=_0x22def4;});}}}else _0x57e6b8['_update'](_0x48453a,_0x3e0524);});}}},w),_0x846e13);}['_enhanceShowRevisionViewerCallback'](){const _0x2fd051=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x350b84=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4d7e60=this['editor']['plugins']['get']('Autosave');await _0x4d7e60['save']();}else await _0x350b84['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x1b5c7c=this['editor']['plugins']['get']('Dialog');_0x1b5c7c['isOpen']&&_0x1b5c7c['hide']();}const _0x2200cd=this['_getRevisionViewerEditorConfig']();return _0x2fd051(_0x2200cd)['then'](_0x370b5a=>{return(this['_viewerEditor']=_0x370b5a,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x370b5a;})['catch'](_0x48dec4=>(console['error'](_0x48dec4),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2fe260=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'](),_0x2fe260(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x5e4dfd=this['editor']['plugins']['get']('Annotations');_0x5e4dfd['refreshVisibility'](),_0x5e4dfd['refreshPositioning']();}})));}['_showRevisionViewer'](_0x24b66a){const _0x86f5ab=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x50d465=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x196488=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x196488,_0x24b66a)['then'](_0x1b7083=>(_0x50d465['style']['display']='block',_0x86f5ab['style']['display']='none',_0x1b7083));}['_closeRevisionViewer'](_0x10d05c){const _0x70309b=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x70309b['style']['display']='',_0x10d05c['destroy']();}async['_restoreRevision'](_0x1b233d){const _0x14d6ef=this['editor'],_0x5440e6=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x396ecc=_0x14d6ef['plugins']['get']('RevisionTracker'),_0x4e549f=_0x5440e6['repository']['getRevision'](_0x1b233d);let _0x9029c2,_0xc2e2ba,_0x29b76b;try{_0x9029c2=await _0x5440e6['getRevisionData'](_0x4e549f),_0xc2e2ba=await _0x5440e6['getRevisionRootsAttributes'](_0x4e549f);}catch(_0x55acdf){return void console['error'](_0x55acdf);}_0x14d6ef['model']['change'](_0xdcb9c3=>{for(const _0x11322f of Array['from'](_0x14d6ef['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0xdcb9c3['removeMarker'](_0x11322f);}),_0x5440e6['isReady']=!0x1,_0x14d6ef['model']['enqueueChange'](_0x31c9ee=>{_0x31c9ee['setSelection'](null),_0x31c9ee['removeSelectionAttribute'](_0x14d6ef['model']['document']['selection']['getAttributeKeys']());const _0x178046=Object['keys'](_0x9029c2);for(const _0x512494 of _0x14d6ef['model']['document']['roots'])'$graveyard'!=_0x512494['rootName']&&_0x512494['isAttached']()&&!_0x178046['includes'](_0x512494['rootName'])&&_0x31c9ee['detachRoot'](_0x512494);for(const _0x422490 of _0x178046){let _0x5d19b9=_0x14d6ef['model']['document']['getRoot'](_0x422490);_0x5d19b9&&_0x5d19b9['isAttached']()||(_0x5d19b9=_0x31c9ee['addRoot'](_0x422490));const _0x116fee=_0xc2e2ba[_0x422490],_0x56a25c=Object['keys'](_0x116fee),_0x187adf=_0x9029c2[_0x422490];for(const _0x46eb02 of _0x5d19b9['getAttributeKeys']())_0x56a25c['includes'](_0x46eb02)||_0x31c9ee['removeAttribute'](_0x46eb02,_0x5d19b9);for(const _0x1289cc of _0x56a25c)_0x31c9ee['setAttribute'](_0x1289cc,_0xc2e2ba[_0x422490][_0x1289cc],_0x5d19b9);_0x31c9ee['remove'](_0x31c9ee['createRangeIn'](_0x5d19b9)),_0x31c9ee['insert'](_0x14d6ef['data']['parse'](_0x187adf,_0x5d19b9),_0x5d19b9,0x0);}});const _0x18022f=m(_0x14d6ef['locale'],'Restored');if(_0x4e549f['name'])_0x29b76b=-0x1==_0x4e549f['name']['indexOf'](_0x18022f)?_0x18022f+':\x20'+_0x4e549f['name']:_0x4e549f['name'];else _0x29b76b=_0x18022f+':\x20'+(_0x4e549f['createdAt']['toLocaleDateString'](_0x14d6ef['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x4e549f['createdAt']['toLocaleTimeString'](_0x14d6ef['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x396ecc['saveRevision']({'name':_0x29b76b}),_0x5440e6['isReady']=!0x0,_0x14d6ef['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ae as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};