@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250118.0 → 0.0.0-nightly-20250119.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 _0x310331,uid as _0x4b945d,Collection as _0x5e4f58,logWarning as _0x16d809,FocusTracker as _0x2fd6cd,KeystrokeHandler as _0x4d9c7b,scrollViewportToShowTarget as _0x479610,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x3867aa}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x5e8e51,set as _0x41d25e,unset as _0x479bcf,isEqual as _0x1d5471}from'lodash-es';import{Plugin as _0xf0a0b,PendingActions as _0x5ce2cd,icons as _0x580a31,Command as _0x1001ce,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x225e2a,getMarkerDomElement as _0x216bee,ConfirmMixin as _0xa3ae3f,sanitizeEditorConfig as _0x1a83ae}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0xbc8b9d,ViewText as _0x331fa8,ViewElement as _0x1e1b37,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0x4bc199,ViewAttributeElement as _0x49254f,ViewEmptyElement as _0x2de322,ViewRawElement as _0x7e96d6,ViewUIElement as _0x55fe2e,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x46e692,injectCssTransitionDisabler as ts,submitHandler as _0xc09350,LabeledFieldView as nt,createLabeledInputText as _0x8c8f78,createDropdown as _0x161ce7,ListView as te,ListItemView as _0x3657d9,ButtonView as _0x319a68,MenuBarMenuView as _0x102002,MenuBarMenuListView as _0x47b54a,MenuBarMenuListItemView as _0x469bb2,MenuBarMenuListItemButtonView as _0x32e8f4,ContextualBalloon as _0x5d5754,ToolbarSeparatorView as _0x561d34,IconView as _0x3f11b3,addListToDropdown as _0x3f681e,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 _0x1ecbea}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
- _0x310331(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x22fbbe){super(),this['id']=_0x22fbbe['id']||_0x4b945d(),this['creator']=_0x22fbbe['creator']||null,this['authors']=_0x22fbbe['authors']||[],this['diffData']=_0x22fbbe['diffData']||null,this['toVersion']=_0x22fbbe['toVersion']||0x0,this['fromVersion']=_0x22fbbe['fromVersion']||0x0,this['set']('name',_0x22fbbe['name']||''),this['set']('createdAt',_0x22fbbe['createdAt']||new Date()),this['set']('attributes',_0x22fbbe['attributes']||{});}['setName'](_0xfa8d34){this['_update']({'name':_0xfa8d34});}['setAttribute'](_0x1882af,_0x25b1f1){const _0x31d992=_0x5e8e51(this['attributes']);_0x41d25e(_0x31d992,_0x1882af,_0x25b1f1),this['_update']({'attributes':_0x31d992});}['removeAttribute'](_0x2878b6){const _0x54630d=_0x5e8e51(this['attributes']);_0x479bcf(_0x54630d,_0x2878b6),this['_update']({'attributes':_0x54630d});}['_update'](_0x4f462c,_0x1bf761=!0x1){let _0x312a9f=!0x1;const _0x5eab3d={'id':this['id']},_0x276a08=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x15d7dd of _0x276a08){const _0x4efd99=_0x4f462c[_0x15d7dd];void 0x0!==_0x4efd99&&_0x4efd99!==this[_0x15d7dd]&&(this[_0x15d7dd]=_0x4efd99,_0x5eab3d[_0x15d7dd]=_0x4efd99,_0x312a9f=!0x0);}_0x312a9f&&(_0x5eab3d['authors']&&(_0x5eab3d['authorsIds']=_0x5eab3d['authors']['map'](_0x773840=>_0x773840['id']),delete _0x5eab3d['authors']),this['fire']('_update',_0x5eab3d,_0x1bf761));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x2eb8da=>_0x2eb8da['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0xf0a0b{['_revisions'];static get['requires'](){return[_0x225e2a];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0xdac8f7){super(_0xdac8f7),this['_revisions']=new _0x5e4f58();}['afterInit'](){!async function(_0x123187){const _0x301938=_0x1a3d27([0x30,0x54,0x47,0x42,0x6a,0x59,0x71,0x6d,0x64,0x74,0x4f,0x50,0x7a,0x66,0x52,0x69,0x45,0x43,0x38,0x72,0x70,0x44,0x6f,0x77,0x61,0x6b,0x68,0x4c,0x36,0x37,0x4d,0x78,0x49,0x63,0x58,0x4b,0x4a,0x4e,0x41,0x73,0x48,0x56,0x31,0x76,0x6c,0x5a,0x65,0x39,0x6e,0x51,0x67,0x62,0x79,0x35,0x46,0x32,0x34,0x33,0x75,0x53,0x55,0x57]),_0x19792c=0xeb829,_0x145386=0x7fb70365,_0xf4d9fc=0x7fb05f95^_0x145386,_0x66c8d6=window[_0x1a3d27([0x44,0x61,0x74,0x65])][_0x1a3d27([0x6e,0x6f,0x77])](),_0x216d7f=_0x123187[_0x1a3d27([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x361c5d=new window[(_0x1a3d27([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21dba7=>{_0x216d7f[_0x1a3d27([0x6f,0x6e,0x63,0x65])](_0x1a3d27([0x72,0x65,0x61,0x64,0x79]),_0x21dba7);}),_0x3498a7={[_0x1a3d27([0x6b,0x74,0x79])]:_0x1a3d27([0x45,0x43]),[_0x1a3d27([0x75,0x73,0x65])]:_0x1a3d27([0x73,0x69,0x67]),[_0x1a3d27([0x63,0x72,0x76])]:_0x1a3d27([0x50,0x2d,0x32,0x35,0x36]),[_0x1a3d27([0x78])]:_0x1a3d27([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]),[_0x1a3d27([0x79])]:_0x1a3d27([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]),[_0x1a3d27([0x61,0x6c,0x67])]:_0x1a3d27([0x45,0x53,0x32,0x35,0x36])},_0x129283=_0x216d7f[_0x1a3d27([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1a3d27([0x67,0x65,0x74])](_0x1a3d27([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x37d89f(){let _0x591603,_0x4d7d9f=null,_0x1dbaaa=null;try{if(_0x129283==_0x1a3d27([0x47,0x50,0x4c]))return _0x1a3d27([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x591603=_0x45f472(),!_0x591603)return _0x1a3d27([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x591603[_0x1a3d27([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1dbaaa=_0x5c3a88(_0x591603[_0x1a3d27([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x591603[_0x1a3d27([0x6a,0x74,0x69])])),await _0x33fdae()?_0xc7a811()?_0x5bf87c()?_0x1a3d27([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x29fd23()?(_0x591603[_0x1a3d27([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1a3d27([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4d7d9f=_0x39ec4d(_0x1a3d27([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x591603[_0x1a3d27([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1a3d27([0x74,0x72,0x69,0x61,0x6c])&&(_0x4d7d9f=_0x39ec4d(_0x1a3d27([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x591603[_0x1a3d27([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1a3d27([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x4d7d9f=_0x39ec4d(_0x1a3d27([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x38b9f0()):_0x1a3d27([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1a3d27([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1a3d27([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x459d55){return _0x1a3d27([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5bf87c(){const _0x5529c4=[_0x1a3d27([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1a3d27([0x74,0x72,0x69,0x61,0x6c])][_0x1a3d27([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x591603[_0x1a3d27([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x66c8d6/0x3e8:0xe10*_0xf4d9fc;return _0x591603[_0x1a3d27([0x65,0x78,0x70])]<_0x5529c4;}function _0xc7a811(){const _0x94f63=_0x591603[_0x1a3d27([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x94f63)return!0x1;if(_0x94f63[_0x1a3d27([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a3d27([0x2a])))return!0x0;if(_0x94f63[_0x1a3d27([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a3d27([0x52,0x48])))return!0x0;if(_0x94f63[_0x1a3d27([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a3d27([0x52,0x52,0x48]))){if(_0x1e237d())return!0x0;if(_0x44faf7()||_0x1b6896())return!0x0;}return!0x1;}function _0x29fd23(){const _0x51b781=_0x591603[_0x1a3d27([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x51b781||0x0==_0x51b781[_0x1a3d27([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4210a9}=new URL(window[_0x1a3d27([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x51b781[_0x1a3d27([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4210a9))return!0x0;const _0x443cdf=_0x4210a9[_0x1a3d27([0x73,0x70,0x6c,0x69,0x74])](_0x1a3d27([0x2e]));return _0x51b781[_0x1a3d27([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x425426=>_0x425426[_0x1a3d27([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a3d27([0x2a])))[_0x1a3d27([0x6d,0x61,0x70])](_0x983fc5=>_0x983fc5[_0x1a3d27([0x73,0x70,0x6c,0x69,0x74])](_0x1a3d27([0x2e])))[_0x1a3d27([0x73,0x6f,0x6d,0x65])](_0x4d6795=>_0x443cdf[_0x1a3d27([0x65,0x76,0x65,0x72,0x79])]((_0x33b63e,_0x5c7a95)=>_0x4d6795[_0x5c7a95]===_0x33b63e||_0x4d6795[_0x5c7a95]===_0x1a3d27([0x2a])));}function _0x38b9f0(){return _0x4d7d9f&&_0x1dbaaa?new window[(_0x1a3d27([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2208cd,_0x40d603)=>{_0x4d7d9f[_0x1a3d27([0x74,0x68,0x65,0x6e])](_0x2208cd,_0x40d603),_0x1dbaaa[_0x1a3d27([0x74,0x68,0x65,0x6e])](_0x8ce048=>{_0x8ce048!=_0x1a3d27([0x56,0x61,0x6c,0x69,0x64])&&_0x2208cd(_0x8ce048);},_0x40d603);}):_0x4d7d9f||_0x1dbaaa||_0x1a3d27([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5c3a88(_0x2b70f0,_0x1bac85){return new window[(_0x1a3d27([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb5f8f1=>{if(_0xff1f5b())return _0xb5f8f1(_0x1a3d27([0x56,0x61,0x6c,0x69,0x64]));_0x65bd07(),_0x216d7f[_0x1a3d27([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1a3d27([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2716d1=!0x1;const _0xc5c78=_0x4b945d();function _0x4c8ec6(_0x235f38){return!!_0x235f38&&(typeof _0x235f38===_0x1a3d27([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x235f38===_0x1a3d27([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x235f38[_0x1a3d27([0x74,0x68,0x65,0x6e])]===_0x1a3d27([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x235f38[_0x1a3d27([0x63,0x61,0x74,0x63,0x68])]===_0x1a3d27([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x46d22f(_0x4d2bcc){_0x5390ee(_0x4d2bcc)[_0x1a3d27([0x74,0x68,0x65,0x6e])](_0x559a6d=>{if(!_0x559a6d||_0x559a6d[_0x1a3d27([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1a3d27([0x6f,0x6b]))return _0x1a3d27([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x35c018(_0x90c949(_0xc5c78+_0x1bac85))!=_0x559a6d[_0x1a3d27([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1a3d27([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1a3d27([0x56,0x61,0x6c,0x69,0x64]);})[_0x1a3d27([0x74,0x68,0x65,0x6e])](_0x1aef51=>(_0xc457f7(),_0x1aef51),()=>{const _0x272eb5=_0x3b3ee8();return null==_0x272eb5?(_0xc457f7(),_0x1a3d27([0x56,0x61,0x6c,0x69,0x64])):_0x1a3d27(_0x66c8d6-_0x272eb5>(0x5bbb8765^_0x145386)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1a3d27([0x74,0x68,0x65,0x6e])](_0xb5f8f1)[_0x1a3d27([0x63,0x61,0x74,0x63,0x68])](()=>{_0xb5f8f1(_0x1a3d27([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x506aed=0x7f81ede5^_0x145386;function _0xc457f7(){const _0x530b1d=_0x1a3d27([0x6c,0x6c,0x63,0x74,0x2d])+_0x35c018(_0x90c949(_0x2b70f0)),_0x2bba4c=_0x38b9a9(_0x35c018(window[_0x1a3d27([0x4d,0x61,0x74,0x68])][_0x1a3d27([0x63,0x65,0x69,0x6c])](_0x66c8d6/_0x506aed)));window[_0x1a3d27([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1a3d27([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x530b1d,_0x2bba4c);}function _0x3b3ee8(){const _0x30b91e=_0x1a3d27([0x6c,0x6c,0x63,0x74,0x2d])+_0x35c018(_0x90c949(_0x2b70f0)),_0x1a20c4=window[_0x1a3d27([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1a3d27([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x30b91e);return _0x1a20c4?window[_0x1a3d27([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38b9a9(_0x1a20c4),0x10)*_0x506aed:null;}function _0x5390ee(_0x24542d){return new window[(_0x1a3d27([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a90d2,_0x424009)=>{_0x24542d[_0x1a3d27([0x74,0x68,0x65,0x6e])](_0x3a90d2,_0x424009),window[_0x1a3d27([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x424009,0x7fb6d7a5^_0x145386);});}}_0x216d7f[_0x1a3d27([0x6f,0x6e])](_0x1a3d27([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x458c01,_0xb94d6a)=>{if(_0xb94d6a[0x0]!=_0x2b70f0)return _0xb5f8f1(_0x1a3d27([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xb94d6a[0x1]={..._0xb94d6a[0x1],[_0x1a3d27([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xc5c78};},{[_0x1a3d27([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1a3d27([0x68,0x69,0x67,0x68])}),_0x216d7f[_0x1a3d27([0x6f,0x6e])](_0x1a3d27([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3c3f98=>{_0x4c8ec6(_0x3c3f98[_0x1a3d27([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2716d1=!0x0,_0x46d22f(_0x3c3f98[_0x1a3d27([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1a3d27([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1a3d27([0x6c,0x6f,0x77])}),_0x361c5d[_0x1a3d27([0x74,0x68,0x65,0x6e])](()=>{_0x2716d1||_0xb5f8f1(_0x1a3d27([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xff1f5b(){return _0x216d7f[_0x1a3d27([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1a3d27([0x76,0x69,0x65,0x77])][_0x1a3d27([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1a3d27([0x61,0x75,0x74,0x6f]);}function _0x65bd07(){_0x216d7f[_0x1a3d27([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1a3d27([0x76,0x69,0x65,0x77])][_0x1a3d27([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1a3d27([0x61,0x75,0x74,0x6f]);}}function _0x39ec4d(_0x2ce56e){const _0x47272a=[new window[(_0x1a3d27([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33d59d=>setTimeout(_0x33d59d,0x7fbe3da9^_0x145386)),_0x361c5d[_0x1a3d27([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1a3d27([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x91fdb2=>{const _0x1a17e6=0x7fb70362^_0x145386,_0x551af6=_0x123187[_0x1a3d27([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x143dde(){_0x551af6[_0x1a3d27([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x1a17e6&&_0x91fdb2();}_0x143dde(),_0x551af6[_0x1a3d27([0x6f,0x6e])](_0x1a3d27([0x61,0x64,0x64]),_0x143dde);})),new window[(_0x1a3d27([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x346e3d=>{function _0x3a571b(){for(const _0x25d201 in window)if(window[_0x1a3d27([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x1a3d27([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x25d201))&&window[_0x25d201]==_0x19792c)return _0x346e3d();_0x216d7f[_0x1a3d27([0x73,0x74,0x61,0x74,0x65])]!=_0x1a3d27([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x1a3d27([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3a571b,0x7fb710ed^_0x145386);}_0x578676(_0x1a3d27([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x3a571b();})];return window[_0x1a3d27([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1a3d27([0x72,0x61,0x63,0x65])](_0x47272a)[_0x1a3d27([0x74,0x68,0x65,0x6e])](()=>_0x2ce56e);}async function _0x4851cb(){if(await _0x361c5d,_0x578676(_0x1a3d27([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x12242b=_0x123187[_0x1a3d27([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x4dedc4=_0x123187[_0x1a3d27([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])](_0x12242b[_0x1a3d27([0x69,0x64])]),_0x10211e=_0x34f092(_0x1a3d27([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x10211e[_0x1a3d27([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x12242b['id'],_0x4dedc4?_0x4dedc4['id']:null,!0x0),_0x10211e[_0x1a3d27([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1a3d27([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x10211e[_0x1a3d27([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x10211e[_0x1a3d27([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5991c3,void(_0x10211e[_0x1a3d27([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5991c3);}if(_0x578676(_0x1a3d27([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x293a3c=_0x34f092(_0x1a3d27([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x293a3c[_0x1a3d27([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1a3d27([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x293a3c[_0x1a3d27([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x293a3c[_0x1a3d27([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5991c3,_0x293a3c[_0x1a3d27([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5991c3;}_0x216d7f[_0x1a3d27([0x6d,0x6f,0x64,0x65,0x6c])][_0x1a3d27([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5991c3,_0x216d7f[_0x1a3d27([0x6d,0x6f,0x64,0x65,0x6c])][_0x1a3d27([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5991c3,_0x216d7f[_0x1a3d27([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1a3d27([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1e237d(){return _0x578676(_0x1a3d27([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x34f092(_0x1a3d27([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1a3d27([0x73,0x74,0x61,0x74,0x65])]==_0x1a3d27([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x44faf7(){return _0x578676(_0x1a3d27([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 _0x1b6896(){return _0x578676(_0x1a3d27([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x54ae22(_0x49387f){const _0x38a3c1=_0x1b8bbd();_0x216d7f[_0x38a3c1]=_0x1a3d27([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])+_0x49387f,_0x49387f[_0x1a3d27([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x1a3d27([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x1b8bbd()]=_0x19792c),_0x49387f!=_0x1a3d27([0x56,0x61,0x6c,0x69,0x64])&&_0x4851cb();}function _0x1b8bbd(){const _0x3e6e10=window[_0x1a3d27([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1a3d27([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1a3d27([0x6e,0x6f,0x77])]())[_0x1a3d27([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1a3d27([0x2e]),'');let _0x1e9e74=_0x1a3d27([0x54]);for(let _0x2388d1=0x0;_0x2388d1<_0x3e6e10[_0x1a3d27([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2388d1+=0x2){let _0x44c0bc=window[_0x1a3d27([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e6e10[_0x1a3d27([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2388d1,_0x2388d1+0x2));_0x44c0bc>=_0x301938[_0x1a3d27([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x44c0bc-=_0x301938[_0x1a3d27([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1e9e74+=_0x301938[_0x44c0bc];}return _0x1e9e74;}function _0x45f472(){const _0x8b3828=_0x129283[_0x1a3d27([0x73,0x70,0x6c,0x69,0x74])](_0x1a3d27([0x2e]));if(0x3!=_0x8b3828[_0x1a3d27([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1ef362(_0x8b3828[0x1]);function _0x1ef362(_0x363bcf){const _0x3f5d72=_0x188727(_0x363bcf);return _0x3f5d72&&_0x235932()?_0x3f5d72:null;function _0x235932(){const _0x4cd4ec=_0x3f5d72[_0x1a3d27([0x6a,0x74,0x69])],_0x1d5fcf=window[_0x1a3d27([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4cd4ec[_0x1a3d27([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4cd4ec[_0x1a3d27([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2957c5={..._0x3f5d72,[_0x1a3d27([0x6a,0x74,0x69])]:_0x4cd4ec[_0x1a3d27([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4cd4ec[_0x1a3d27([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2957c5[_0x1a3d27([0x76,0x63])],_0x90c949(_0x2957c5)==_0x1d5fcf;}}}async function _0x33fdae(){let _0x391377=!0x0;try{const _0x384b7c=_0x129283[_0x1a3d27([0x73,0x70,0x6c,0x69,0x74])](_0x1a3d27([0x2e])),[_0x5f0601,_0x43b52b,_0x5f7138]=_0x384b7c;return _0x326133(_0x5f0601),await _0x3a5a9f(_0x5f0601,_0x43b52b,_0x5f7138),_0x391377;}catch(_0x2d66e5){return!0x1;}function _0x326133(_0x2fadcb){const _0x479273=_0x188727(_0x2fadcb);_0x479273&&_0x479273[_0x1a3d27([0x61,0x6c,0x67])]==_0x1a3d27([0x45,0x53,0x32,0x35,0x36])||(_0x391377=!0x1);}async function _0x3a5a9f(_0x3206b6,_0x1ce817,_0x4d9985){const _0x18e859=window[_0x1a3d27([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1a3d27([0x66,0x72,0x6f,0x6d])](_0x19fe96(_0x4d9985),_0x280717=>_0x280717[_0x1a3d27([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x10831a=new window[(_0x1a3d27([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1a3d27([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3206b6+_0x1a3d27([0x2e])+_0x1ce817),_0x547f21=window[_0x1a3d27([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1a3d27([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x547f21)return;const _0x348ff5=await _0x547f21[_0x1a3d27([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1a3d27([0x6a,0x77,0x6b]),_0x3498a7,{[_0x1a3d27([0x6e,0x61,0x6d,0x65])]:_0x1a3d27([0x45,0x43,0x44,0x53,0x41]),[_0x1a3d27([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1a3d27([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1a3d27([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x547f21[_0x1a3d27([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1a3d27([0x6e,0x61,0x6d,0x65])]:_0x1a3d27([0x45,0x43,0x44,0x53,0x41]),[_0x1a3d27([0x68,0x61,0x73,0x68])]:{[_0x1a3d27([0x6e,0x61,0x6d,0x65])]:_0x1a3d27([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x348ff5,_0x18e859,_0x10831a)||(_0x391377=!0x1);}}function _0x188727(_0x531cfd){return _0x531cfd[_0x1a3d27([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1a3d27([0x65,0x79]))?JSON[_0x1a3d27([0x70,0x61,0x72,0x73,0x65])](_0x19fe96(_0x531cfd)):null;}function _0x19fe96(_0x9ee799){return window[_0x1a3d27([0x61,0x74,0x6f,0x62])](_0x9ee799[_0x1a3d27([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1a3d27([0x2b]))[_0x1a3d27([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1a3d27([0x2f])));}function _0x90c949(_0x77f393){let _0x4f0f1f=0x1505;function _0x3b3d94(_0x56ca55){for(let _0xde776a=0x0;_0xde776a<_0x56ca55[_0x1a3d27([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xde776a++){const _0x38be04=_0x56ca55[_0x1a3d27([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xde776a);_0x4f0f1f=(_0x4f0f1f<<0x5)+_0x4f0f1f+_0x38be04,_0x4f0f1f&=_0x4f0f1f;}}function _0x273ccd(_0x59a5ee){Array[_0x1a3d27([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x59a5ee)?_0x59a5ee[_0x1a3d27([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x273ccd):_0x59a5ee&&typeof _0x59a5ee==_0x1a3d27([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1a3d27([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x59a5ee)[_0x1a3d27([0x73,0x6f,0x72,0x74])]()[_0x1a3d27([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x31ba0e,_0x44ce10])=>{_0x3b3d94(_0x31ba0e),_0x273ccd(_0x44ce10);}):_0x3b3d94(window[_0x1a3d27([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x59a5ee));}return _0x273ccd(_0x77f393),_0x4f0f1f>>>0x0;}function _0x35c018(_0xf721b3){return _0xf721b3[_0x1a3d27([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1a3d27([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1a3d27([0x30]));}function _0x38b9a9(_0x3767e4){return _0x3767e4[_0x1a3d27([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1a3d27([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1a3d27([0x6a,0x6f,0x69,0x6e])]('');}function _0x578676(_0x2dd504){return _0x216d7f[_0x1a3d27([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1a3d27([0x68,0x61,0x73])](_0x2dd504);}function _0x34f092(_0x1b7983){return _0x216d7f[_0x1a3d27([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1a3d27([0x67,0x65,0x74])](_0x1b7983);}function _0x5991c3(){}function _0x1a3d27(_0x22c1e7){return _0x22c1e7['map'](_0x4fb2d0=>String['fromCharCode'](_0x4fb2d0))['join']('');}_0x54ae22(await _0x37d89f());}(this);}['createRevision'](_0x29fa17){const _0x20b598=this['editor']['plugins']['get']('Users');return new a({'id':_0x29fa17['id'],'name':_0x29fa17['name'],'creator':_0x29fa17['creatorId']?_0x20b598['getUser'](_0x29fa17['creatorId']):null,'diffData':_0x29fa17['diffData']||_0x29fa17['data'],'authors':_0x29fa17['authorsIds']['map'](_0x238b2f=>_0x20b598['getUser'](_0x238b2f)),'createdAt':new Date(_0x29fa17['createdAt']),'attributes':_0x29fa17['attributes'],'fromVersion':_0x29fa17['fromVersion'],'toVersion':_0x29fa17['toVersion']});}['addRevision'](_0x59caf9,_0x52ac69=0x0){this['_revisions']['add'](_0x59caf9,_0x52ac69);}['getRevision'](_0x129cba){return this['_revisions']['get'](_0x129cba);}['getRevisions'](_0x4334a9={'toJSON':!0x1}){const _0x3bc6d6=Array['from'](this['_revisions']);return _0x3bc6d6['reverse'](),_0x4334a9['toJSON']?_0x3bc6d6['map'](_0x4b505d=>_0x4b505d['toJSON']()):_0x3bc6d6;}['getIndex'](_0x46f940){return this['_revisions']['getIndex'](_0x46f940);}['getEarlierVisibleRevision'](_0x4d54a4){const [,_0x10f2c1]=this['getRevisionsIterator'](_0x4d54a4,{'direction':'earlier'});return _0x10f2c1;}['getLaterVisibleRevision'](_0x1ee3cd){const [,_0x349620]=this['getRevisionsIterator'](_0x1ee3cd,{'direction':'later'});return _0x349620;}['getRevisionsInDiff'](_0x198375){const _0x129465=[];for(const _0x2eb8ae of this['getRevisionsIterator'](_0x198375['newRevisionId']))if(_0x129465['push'](_0x2eb8ae),_0x2eb8ae['id']===_0x198375['oldRevisionId'])break;return _0x129465;}*['getRevisionsIterator'](_0x2a6e7c,{direction:_0x530403='earlier',filter:_0x7baa72=()=>!0x0}={}){const _0x16f7e7='earlier'===_0x530403?0x1:-0x1;let _0x3b2a8b=this['_revisions']['get'](_0x2a6e7c),_0x2d3f51=this['getIndex'](_0x3b2a8b);for(yield _0x3b2a8b;_0x3b2a8b;){if(_0x2d3f51+=_0x16f7e7,_0x3b2a8b=this['getRevision'](_0x2d3f51),!_0x3b2a8b)return;_0x7baa72(_0x3b2a8b)&&(yield _0x3b2a8b);}}}function m(_0x1c0dff,_0x5ef570,_0x46ce3c){const t=_0x1c0dff['t'];switch(_0x5ef570){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'},_0x46ce3c);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x46ce3c);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':_0x4bc199,'a':_0x49254f,'e':_0x2de322,'r':_0x7e96d6,'u':_0x55fe2e};class l extends _0xf0a0b{['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[_0x225e2a,j,_0x5ce2cd];}constructor(_0x1ed5ea){super(_0x1ed5ea),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 _0x3495be=_0x4b945d();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x3495be},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 _0x12ede0=this['repository']['getRevision'](0x0),_0xfeea2c=_0x12ede0&&null===_0x12ede0['creator']?_0x12ede0:null;if(this['_continueCurrentRevision']=!!_0xfeea2c&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x3a36a2=this['_source']['getCurrentRevisionId'](),_0x4ede68=this['repository']['getRevision'](_0x3a36a2);if(_0x4ede68)this['_startingVersion']=_0x4ede68['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x24f51f=this['_source']['history']['_operations']['find'](_0x5c1709=>!_0x5c1709['_isInit']),_0x317832=_0x24f51f?_0x24f51f['baseVersion']:this['_source']['history']['version'];_0x12ede0?(_0x12ede0['toVersion']<_0x317832&&_0x12ede0['_update']({'toVersion':_0x317832}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0xfeea2c['id'],this['_startingVersion']=_0xfeea2c['fromVersion']):(this['_startingVersion']=_0x12ede0['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x317832,this['_continueCurrentRevision']=!0x1);}}else _0xfeea2c&&(this['editor']['model']['document']['history']['version']=Math['max'](_0xfeea2c['toVersion'],this['editor']['model']['document']['history']['version']),_0xfeea2c['fromVersion']===_0xfeea2c['toVersion']?(0x0!==_0xfeea2c['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0xfeea2c['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0xfeea2c['id'],this['_startingVersion']=_0xfeea2c['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',_0x43730a=>!_0x43730a),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4f28cf=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4c9972;for(const _0xfb578 in _0x4f28cf){const _0x41442b=_0xfb578,_0x415f8f=_0x4f28cf[_0x41442b];if('revisionHistoryLicenseKeyValid'==_0x415f8f||'revisionHistoryLicenseKeyInvalid'==_0x415f8f||'revisionHistoryLicenseKeyExpired'==_0x415f8f||'revisionHistoryLicenseKeyDomainLimit'==_0x415f8f||'revisionHistoryLicenseKeyNotAllowed'==_0x415f8f||'revisionHistoryLicenseKeyEvaluationLimit'==_0x415f8f||'revisionHistoryLicenseKeyTrialLimit'==_0x415f8f||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x415f8f||'revisionHistoryLicenseKeyUsageLimit'==_0x415f8f){delete _0x4f28cf[_0x41442b],_0x4c9972=_0x415f8f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x4c9972&&_0x4f28cf['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x4c9972&&_0x4f28cf['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x4c9972&&_0x4f28cf['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x4c9972&&_0x4f28cf['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x4c9972&&_0x4f28cf['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x4c9972&&_0x4f28cf['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x4c9972&&_0x4f28cf['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x4c9972&&_0x4f28cf['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x23ae08=this['repository']['getRevision'](0x0),_0x54501d=await this['getRevisionDocumentData'](_0x23ae08),_0x10fb5b=await this['getRevisionRootsAttributes'](_0x23ae08);this['_replaceEditorDataWithRevisionData'](_0x54501d,_0x10fb5b);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x43ab96){this['_source']=_0x43ab96;}async['update'](){const _0x4c7159=await this['_source']['getLatestVersion']();if(_0x4c7159>this['currentRevision']['toVersion']){await this['_loadState']();const _0x3e5a8e=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x4c7159});_0x3e5a8e['authors']=_0x3e5a8e['authorsIds']['map'](_0x2f13e1=>this['editor']['plugins']['get']('Users')['getUser'](_0x2f13e1)),this['currentRevision']['_update'](_0x3e5a8e);}}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'](_0xf882c={},_0x5edff1=null){const _0x47f552=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x5edff1>this['currentRevision']['toVersion']&&(_0x5edff1=null),null===_0x5edff1&&(_0x5edff1=await this['_source']['getLatestVersion']());const _0x37e4f5=this['_getFromVersion'](_0x5edff1),_0x2e253b=this['buildRevisionData']({'from':_0x37e4f5,'to':_0x5edff1});if(this['currentRevision']['toVersion']<_0x5edff1){const _0x13f29a=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x5edff1,'to':_0x5edff1});_0x13f29a['authors']=[],_0x13f29a['authorsIds']=[],_0x13f29a['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x13f29a,!0x0),delete _0x13f29a['authors'],_0x47f552['push'](_0x13f29a);}_0xf882c['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0xf882c['name']=_0xf882c['name']||null,_0xf882c['id']=_0xf882c['id']||_0x4b945d(),_0xf882c={..._0xf882c,..._0x2e253b};const _0x38ea0d=this['addRevisionData'](_0xf882c);_0x47f552['push'](_0xf882c);const _0x4e1302=this['repository']['getIndex'](_0x38ea0d);if(0x0!==_0x4e1302){const _0x404649=this['repository']['getRevision'](_0x4e1302-0x1);if(_0x404649['fromVersion']!==_0x5edff1){const _0x39909e=this['_revisionDataBuilder']['getData'](_0x5edff1,_0x404649['toVersion']),_0x41b9ec={'id':_0x404649['id'],'diffData':_0x39909e['diffData'],'authorsIds':_0x39909e['authorsIds'],'authors':_0x39909e['authorsIds']['map'](_0x53cede=>this['editor']['plugins']['get']('Users')['getUser'](_0x53cede)),'fromVersion':_0x5edff1};_0x404649===this['currentRevision']&&(_0x41b9ec['createdAt']=new Date(_0xf882c['createdAt']['getTime']()+0xa)),_0x404649['_update'](_0x41b9ec,!0x0),delete _0x41b9ec['authors'],_0x47f552['push'](_0x41b9ec);}}if(this['adapter']){for(const _0x2cee04 of _0x47f552)this['_bufferUpdate'](_0x2cee04['id'],_0x2cee04,!0x0);this['sendBufferedUpdates']();}return _0x38ea0d;}['addRevisionData'](_0x17f914){const _0x2bf548=this['repository']['createRevision'](_0x17f914);return this['adapter']&&_0x2bf548['on']('_update',(_0xfa9f3,_0x2c8cae,_0x21236c)=>{_0x21236c||(this['_bufferUpdate'](_0x2c8cae['id'],_0x2c8cae,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x2bf548,this['_findInsertionIndex'](_0x2bf548)),_0x2bf548;}async['getRevisionDocumentData'](_0x30a59c){await this['_loadRevisionData'](_0x30a59c);const _0x3417b2={};for(const _0x423cb2 in _0x30a59c['diffData']){if(_0x30a59c['diffData'][_0x423cb2]['attachChange']&&!_0x30a59c['diffData'][_0x423cb2]['attachChange']['isAttached'])continue;const _0x4e9ccb=this['_removeRevisionMarkers'](JSON['parse'](_0x30a59c['diffData'][_0x423cb2]['insertions'])),_0x1ef9f9=this['editor']['editing']['view']['document'],_0x5e329e=new _0xbc8b9d(_0x1ef9f9,_0x4e9ccb['map'](_0x200cf6=>C(_0x200cf6,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x3417b2[_0x423cb2]=this['editor']['data']['processor']['toData'](_0x5e329e),this['editor']['data']['processor']['useFillerType']('default');}return _0x3417b2;}async['getRevisionRootsAttributes'](_0x13cdc0){await this['_loadRevisionData'](_0x13cdc0);const _0x5a0c45={};for(const _0x58f8fc in _0x13cdc0['diffData'])_0x13cdc0['diffData'][_0x58f8fc]['attachChange']&&!_0x13cdc0['diffData'][_0x58f8fc]['attachChange']['isAttached']||(_0x5a0c45[_0x58f8fc]=_0x13cdc0['diffData'][_0x58f8fc]['attributesAfter']||{});return _0x5a0c45;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x26a48b=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x30b326=0x0;_0x30b326<_0x26a48b['length'];_0x30b326++){const _0x1b006f=_0x26a48b[_0x30b326];let _0x3ad706=!0x1;for(const _0x470ad6 of Object['keys'](_0x1b006f))void 0x0===_0x1b006f[_0x470ad6]?delete _0x1b006f[_0x470ad6]:'id'!==_0x470ad6&&(_0x3ad706=!0x0);_0x3ad706||(_0x26a48b[_0x30b326]=null);}if(_0x26a48b=_0x26a48b['filter'](_0x2b6a76=>null!==_0x2b6a76),!_0x26a48b['length'])return;for(let _0x529744=0x0;_0x529744<_0x26a48b['length'];_0x529744++){const _0x143ce4=_0x26a48b[_0x529744];void 0x0!==_0x143ce4['fromVersion']&&void 0x0===_0x143ce4['toVersion']&&(_0x143ce4['toVersion']=this['repository']['getRevision'](_0x143ce4['id'])['toVersion']),void 0x0!==_0x143ce4['toVersion']&&void 0x0===_0x143ce4['fromVersion']&&(_0x143ce4['fromVersion']=this['repository']['getRevision'](_0x143ce4['id'])['fromVersion']);}const _0x5413ed=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x26a48b,_0x5413ed)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x9de0f3=>{if(_0x9de0f3){for(const _0x2c7311 of _0x9de0f3)this['setRevisionData']({'id':_0x2c7311['id'],'createdAt':_0x2c7311['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x363f9a,_0x5a8b9d){let _0x3562bf=this['editor']['config']['get']('initialData'),_0x36689b=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x3562bf){_0x3562bf={};for(const _0x30e1bf of this['editor']['model']['document']['getRootNames']())_0x3562bf[_0x30e1bf]='';}if('string'==typeof _0x3562bf&&(_0x3562bf={'main':_0x3562bf}),void 0x0===_0x36689b){_0x36689b={};for(const _0x1afdb4 of this['editor']['model']['document']['getRootNames']())_0x36689b[_0x1afdb4]={};}let _0x52e262=!0x1;const _0x1a2547=Object['keys'](_0x3562bf),_0x10051a=Object['keys'](_0x363f9a);for(const _0x566665 of _0x1a2547){if(_0x3562bf[_0x566665]!==_0x363f9a[_0x566665]&&''!==_0x3562bf[_0x566665]['trim']()){_0x52e262=!0x0;break;}if(!_0x1d5471(_0x36689b[_0x566665],_0x5a8b9d[_0x566665])&&Object['keys'](_0x36689b[_0x566665])['length']>0x0){_0x52e262=!0x0;break;}}_0x52e262||(_0x52e262=_0x10051a['some'](_0x4656ac=>!this['editor']['model']['document']['getRoot'](_0x4656ac))),_0x52e262&&_0x16d809('editor-initial-data-replaced-with-revision-data',{'editorData':_0x3562bf,'editorRootsAttributes':_0x36689b,'revisionData':_0x363f9a,'revisionRootsAttributes':_0x5a8b9d}),this['editor']['config']['set']('initialData',_0x363f9a),this['editor']['config']['set']('rootsAttributes',_0x5a8b9d);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x4ea6b5=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x4ea6b5['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x57af36){const _0xd8b72d=this['repository']['getRevisions']();_0xd8b72d['reverse']();let _0x1165cc=0x0;for(;_0x1165cc<_0xd8b72d['length'];){const _0x36c2f2=_0xd8b72d[_0x1165cc];if(_0x36c2f2===this['currentRevision']){_0x1165cc++;continue;}if(_0x36c2f2['id']===this['_initialRevisionId'])break;const _0x4f7905=_0x57af36['toVersion']-_0x36c2f2['toVersion']||_0x57af36['fromVersion']-_0x36c2f2['fromVersion'];if(_0x4f7905>0x0)break;if(_0x4f7905<0x0)_0x1165cc++;else{if(!_0x57af36['creator']&&_0x36c2f2['creator'])break;if(_0x36c2f2['creator']||!_0x57af36['creator']){if(_0x57af36['createdAt']>_0x36c2f2['createdAt'])break;_0x1165cc++;}else _0x1165cc++;}}return _0x1165cc;}['setRevisionData'](_0x57a3e9){const _0x3eabd3=this['repository']['getRevision'](_0x57a3e9['id']);if(_0x57a3e9['createdAt']&&(_0x57a3e9['createdAt']=new Date(_0x57a3e9['createdAt'])),_0x57a3e9['authorsIds']){const _0x5ab27c=this['editor']['plugins']['get']('Users');_0x57a3e9['authors']=_0x57a3e9['authorsIds']['map'](_0x4198a8=>_0x5ab27c['getUser'](_0x4198a8));}_0x3eabd3['_update'](_0x57a3e9,!0x0);}['buildRevisionData']({revision:_0x298d63=null,from:_0x24dd1c=null,to:_0x4f7d3e=null}){_0x24dd1c=null!==_0x24dd1c?_0x24dd1c:_0x298d63['fromVersion'],_0x4f7d3e=null!==_0x4f7d3e?_0x4f7d3e:_0x298d63['toVersion'];const _0x510748=this['_revisionDataBuilder']['getData'](_0x24dd1c,_0x4f7d3e),_0x3d8631={'diffData':_0x510748['diffData'],'authorsIds':_0x510748['authorsIds'],'fromVersion':_0x24dd1c,'toVersion':_0x4f7d3e};if(!_0x298d63||_0x4f7d3e!==_0x298d63['toVersion']){const _0x22b1e6=_0x4f7d3e-0x1,_0x24c2e1=this['_source']['history']['getOperation'](_0x22b1e6);_0x3d8631['createdAt']=_0x24c2e1&&_0x24c2e1['createdAt']||new Date();}if(this['_loadedStateData']&&_0x24dd1c===this['_loadedStateData']['fromVersion']){for(const _0x31d8aa of this['_loadedStateData']['authors'])_0x3d8631['authorsIds']['includes'](_0x31d8aa['id'])||_0x3d8631['authorsIds']['push'](_0x31d8aa['id']);}return _0x3d8631;}['_loadRevisionData'](_0x1874c1){if(!_0x1874c1||_0x1874c1['diffData'])return Promise['resolve']();{const _0xce36a9=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0xce36a9,'revisionId':_0x1874c1['id']})['then'](_0x26a143=>{_0x1874c1['diffData']=_0x26a143['diffData'];});}}['_bufferUpdate'](_0x5d7807,_0x17a73e,_0x121a7a){if(this['_bufferedUpdates']['has'](_0x5d7807)){const _0x939af3=this['_bufferedUpdates']['get'](_0x5d7807);_0x17a73e=_0x121a7a?{..._0x939af3,..._0x17a73e}:{..._0x17a73e,..._0x939af3};}this['_bufferedUpdates']['set'](_0x5d7807,_0x17a73e);}['_getFromVersion'](_0x506f3a){const _0xa2d102=this['repository']['getRevisions']();_0xa2d102['reverse'](),_0xa2d102['shift']();const _0x29abf4=_0xa2d102['find'](_0x1fec98=>_0x1fec98['toVersion']<=_0x506f3a)['toVersion'];return _0x29abf4<this['_startingVersion']?this['_startingVersion']:_0x29abf4;}['_createInitialRevision'](_0x9f8eb5){const _0x4f2f54=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x4f2f54)this['_initialRevisionId']=_0x4f2f54['id'];else{const _0x3dcb56=!this['editor']['model']['document']['roots']['find'](_0xfc6b0f=>this['editor']['model']['hasContent'](_0xfc6b0f)),_0x48e574=this['editor']['plugins']['get']('Users')['me']['id'],_0x530c9f=m(this['editor']['locale'],_0x3dcb56?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x9f8eb5,'to':_0x9f8eb5,'id':this['_initialRevisionId'],'name':_0x530c9f,'creatorId':_0x48e574});}}['_createCurrentRevision'](_0x267496){const _0x1ac405=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x1ac405),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x267496,'to':_0x267496,'id':_0x1ac405,'name':'','creatorId':null}));}['_makeRevision']({name:_0x47bf08,from:_0x40e1b8,to:_0x56b251,creatorId:_0x5d21f5,id:_0x47f3f8}){const _0x4dea83=this['buildRevisionData']({'from':_0x40e1b8,'to':_0x56b251});_0x4dea83['name']=_0x47bf08,_0x4dea83['creatorId']=_0x5d21f5,_0x4dea83['id']=_0x47f3f8;const _0x4991e3=this['addRevisionData'](_0x4dea83);return this['adapter']&&this['_bufferUpdate'](_0x4dea83['id'],_0x4dea83,!0x0),_0x4991e3;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x3883ba){return(_0x3883ba=_0x3883ba['filter'](_0x4e66bc=>!_0x4e66bc['name']||'revision-start'!==_0x4e66bc['name']&&'revision-end'!==_0x4e66bc['name']))['forEach'](_0x358fe6=>{'string'!=typeof _0x358fe6&&(_0x358fe6['children']=this['_removeRevisionMarkers'](_0x358fe6['children']),_0x358fe6['attributes']=_0x358fe6['attributes']['filter'](_0x42d147=>!_0x42d147[0x0]['startsWith']('data-revision-')));}),_0x3883ba;}}function C(_0x477b42,_0x4f74b2){const _0xdc96d6=_0x4f74b2['editing']['view']['document'];if('string'==typeof _0x477b42)return new _0x331fa8(_0xdc96d6,_0x477b42);{const _0x192c3b=_0x477b42['children']['map'](_0x272fa6=>C(_0x272fa6,_0x4f74b2));return new(P[_0x477b42['type']]||_0x1e1b37)(_0xdc96d6,_0x477b42['name'],_0x477b42['attributes'],_0x192c3b);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x20a045){this['editor']=_0x20a045,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'](_0xeeb1fe){this['source']=_0xeeb1fe;const _0xe36df5=new Map(),_0x587197=new Map(),_0x5ea868=this['editor']['model']['document']['roots']['map'](_0x2f84ec=>_0x2f84ec['rootName']);for(const _0x122ba5 of _0x5ea868){const _0x4781ba=this['editor']['model']['document']['getRoot'](_0x122ba5),_0x55a8a1=T(_0x4781ba);_0xe36df5['set'](_0x122ba5,_0x55a8a1),_0x587197['set'](_0x122ba5,Object['fromEntries'](_0x4781ba['getAttributes']()));}const _0x20a27b=Array['from'](this['editor']['model']['markers'])['map'](_0x294f7c=>[_0x294f7c['name'],_0x294f7c['getRange']()]),_0x234653=this['source']['version'];this['_saveMetaData'](_0x234653,_0xe36df5,_0x20a27b,_0x587197),this['_startingRevisionId']=this['_revisionId'];const _0x4ead43=new Map(),_0x5bbcd0=new Map();for(const _0x3e7623 of _0x5ea868){const _0x10fb5c=F(_0x3e7623);_0x4ead43['set'](_0x3e7623,_0x10fb5c),_0x5bbcd0['set'](_0x3e7623,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x4ead43,[],_0x5bbcd0);}['getData'](_0x54a5ff,_0x3bb4e5){if(this['_lastFrom']===_0x54a5ff&&this['_lastTo']<=_0x3bb4e5)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x3bb4e5,!0x0);else{if(!this['_savedMetaData']['has'](_0x54a5ff)){const _0x103c1b=this['_getPreviousFrom'](_0x54a5ff);this['_calculateMetaData'](_0x103c1b,_0x54a5ff,!0x1);}this['_calculateMetaData'](_0x54a5ff,_0x3bb4e5,!0x0);}return this['_lastFrom']=_0x54a5ff,this['_lastTo']=_0x3bb4e5,this['_getState']();}['loadState'](_0x31ea1e){this['_reset'](),this['_lastFrom']=_0x31ea1e['fromVersion'],this['_lastTo']=_0x31ea1e['toVersion'];for(const _0x18efb1 in _0x31ea1e['diffData']){const _0xde4f03=_0x31ea1e['diffData'][_0x18efb1]['attachChange'],_0x197cd1=_0x5e8e51(_0x31ea1e['diffData'][_0x18efb1]['attributesBefore'])||{},_0x3b9fdd=this['_makeModelFromViewString'](_0x31ea1e['diffData'][_0x18efb1]['deletions']);_0x3b9fdd['rootName']=_0x18efb1,_0x3b9fdd['_isAttached']=!_0xde4f03||!_0xde4f03['isAttached'],_0x3b9fdd['isAttached']=()=>_0x3b9fdd['_isAttached'],this['_baseRoots']['set'](_0x18efb1,_0x3b9fdd),this['_baseRootsAttributes']['set'](_0x18efb1,_0x197cd1),_0xde4f03&&this['_touchedRoots']['set'](_0x18efb1,_0xde4f03);const _0x534693=this['_makeIdsRoot'](_0x3b9fdd);this['_baseIdsRoots']['set'](_0x18efb1,_0x534693);for(const [_0x403e7a,_0x23ea92]of _0x3b9fdd['markers']){if(!_0x403e7a['startsWith']('revision:'))continue;const _0x198ab7=_0x403e7a['split'](':')[0x2];for(const _0x275dc4 of _0x23ea92['getWalker']({'singleCharacters':!0x0})){const _0x4e3205=this['_getVidAttributeName'](_0x275dc4),_0x53c3ca='elementEnd'==_0x275dc4['type']?_0x275dc4['previousPosition']['path']['slice'](0x0,-0x1):_0x275dc4['previousPosition']['path'],_0x24c3d7=_0x534693['getNodeByPath'](_0x53c3ca)['getAttribute'](_0x4e3205);this['_touched']['set'](_0x24c3d7,{'userId':_0x198ab7});}}}this['_startingRevisionId']=this['_revisionId'];const _0x1ea15c=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x3f9b0f=>!this['_touched']['has'](_0x3f9b0f));let _0x7d88b=0x0;const _0x5c5fd7=new Map();for(const _0x5488f6 in _0x31ea1e['diffData']){const _0x3937f9=_0x31ea1e['diffData'][_0x5488f6]['attachChange'],_0x3b84dc=_0x5e8e51(_0x31ea1e['diffData'][_0x5488f6]['attributesAfter'])||{},_0x350e03=this['_makeModelFromViewString'](_0x31ea1e['diffData'][_0x5488f6]['insertions']);_0x350e03['rootName']=_0x5488f6,_0x350e03['_isAttached']=!_0x3937f9||_0x3937f9['isAttached'],_0x350e03['isAttached']=()=>_0x350e03['_isAttached'],this['_diffRoots']['set'](_0x5488f6,_0x350e03),this['_diffRootsAttributes']['set'](_0x5488f6,_0x3b84dc);const _0x268978=this['_makeIdsRoot'](_0x350e03,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x5488f6,_0x268978),_0x5c5fd7['set'](_0x5488f6,_0x350e03['isAttached']()?_0x3b84dc:{});for(const [_0x16eb6c,_0x4af5b1]of _0x350e03['markers']){if(!_0x16eb6c['startsWith']('revision:'))continue;const _0x3109ad=_0x16eb6c['split'](':')[0x2];for(const _0x30953f of _0x4af5b1['getWalker']({'singleCharacters':!0x0})){const _0x3cc0f2=this['_getVidAttributeName'](_0x30953f),_0x585e2e=this['_revisionId']++,_0x28cdf8='elementEnd'==_0x30953f['type']?_0x30953f['previousPosition']['path']['slice'](0x0,-0x1):_0x30953f['previousPosition']['path'];_0x268978['getNodeByPath'](_0x28cdf8)['_setAttribute'](_0x3cc0f2,_0x585e2e),this['_touched']['set'](_0x585e2e,{'userId':_0x3109ad});}}for(const _0x9a218d of this['editor']['model']['createRangeIn'](_0x350e03)['getWalker']({'singleCharacters':!0x0})){const _0x2a710b=this['_getVidAttributeName'](_0x9a218d),_0x2292e7='elementEnd'==_0x9a218d['type']?_0x9a218d['previousPosition']['path']['slice'](0x0,-0x1):_0x9a218d['previousPosition']['path'],_0x5c4684=_0x268978['getNodeByPath'](_0x2292e7);_0x5c4684['getAttribute'](_0x2a710b)>0x0||_0x5c4684['_setAttribute'](_0x2a710b,_0x1ea15c[_0x7d88b++]);}for(const [_0x2155d0,_0x353609]of _0x350e03['markers'])_0x2155d0['startsWith']('revision:')||this['_markers']['set'](_0x2155d0,_0x353609);}const _0x191d16=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x191d16),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x191d16,0x1));const _0x4c64e2=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x4c64e2),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4c64e2,0x1));const _0x26b63a=Array['from'](this['_diffRoots'])['map'](([_0x49671c,_0x50bccd])=>[_0x49671c,T(_0x50bccd)]);this['_saveMetaData'](this['_lastTo'],_0x26b63a,this['_markers'],_0x5c5fd7);}['_makeModelFromViewString'](_0x10cbf4){const _0x46be1c=JSON['parse'](_0x10cbf4),_0x321ef3=this['editor']['editing']['view']['document'],_0x4b6b21=new _0xbc8b9d(_0x321ef3,_0x46be1c['map'](_0x3ee3cf=>C(_0x3ee3cf,this['editor'])));return this['editor']['data']['toModel'](_0x4b6b21);}['_saveMetaData'](_0x4567e8,_0x308f19,_0x1bd03f,_0x60518c){const _0x1acd67=new Map(_0x308f19),_0x2a7f91=new Map(_0x5e8e51(_0x60518c)),_0x55632d=new Map();for(const [_0x574a5b,_0x3ab401]of _0x1bd03f)_0x55632d['set'](_0x574a5b,{'start':_0x3ab401['start']['clone'](),'end':_0x3ab401['end']['clone'](),'rootName':_0x3ab401['root']['rootName']});this['_savedMetaData']['set'](_0x4567e8,{'roots':_0x1acd67,'markers':_0x55632d,'rootsAttributes':_0x2a7f91});}['_removeMetaData'](_0x15aecd){this['_savedMetaData']['delete'](_0x15aecd);}['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'](_0x429fc7,_0x3e541d=null){let _0x3ada72=null;_0x429fc7['is']('documentFragment')||(_0x3ada72=new ft(_0x429fc7['name'],{'vid_start':null===_0x3e541d?this['_revisionId']++:_0x3e541d++}));const _0x75e640=[];for(const _0x1b277c of _0x429fc7['getChildren']())if(_0x1b277c['is']('element')){_0x75e640['push'](this['_makeIdsRoot'](_0x1b277c,_0x3e541d));const _0xcff84a=_0x75e640[_0x75e640['length']-0x1];null!==_0x3e541d&&(_0x3e541d=_0xcff84a['is']('element','$text')?_0xcff84a['getAttribute']('vid')+0x1:_0xcff84a['getAttribute']('vid_end')+0x1);}else{for(let _0x49a9a2=0x0;_0x49a9a2<_0x1b277c['offsetSize'];_0x49a9a2++)_0x75e640['push'](new ft('$text',{'vid':null===_0x3e541d?this['_revisionId']++:_0x3e541d++}));}if(_0x429fc7['is']('documentFragment')){const _0xc81613=F(_0x429fc7['rootName']);return _0xc81613['_insertChild'](0x0,_0x75e640),_0xc81613;}return _0x3ada72['_setAttribute']('vid_end',null===_0x3e541d?this['_revisionId']++:_0x3e541d++),_0x3ada72['_insertChild'](0x0,_0x75e640),_0x3ada72;}['_calculateMetaData'](_0x3029ed,_0x310056,_0x1d5211){this['_reset']();const {roots:_0x244324,markers:_0xe19cea,rootsAttributes:_0x2502f4}=this['_savedMetaData']['get'](_0x3029ed);this['_baseRoots']=new Map(_0x244324),this['_baseRootsAttributes']=new Map(_0x5e8e51(_0x2502f4));for(const [_0x46561c,_0x1f1da0]of this['_baseRoots'])if('$graveyard'!==_0x46561c&&(this['_diffRoots']['set'](_0x46561c,T(_0x1f1da0)),this['_diffRootsAttributes']=new Map(_0x5e8e51(_0x2502f4)),_0x1d5211)){const _0x3e5497=this['_revisionId'];this['_idsRoots']['set'](_0x46561c,this['_makeIdsRoot'](_0x1f1da0)),this['_baseIdsRoots']['set'](_0x46561c,this['_makeIdsRoot'](_0x1f1da0,_0x3e5497));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x1d5211&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x4caae0,_0xe8d11c]of _0xe19cea){const _0x285c3f=this['_baseRoots']['get'](_0xe8d11c['rootName']),_0x3bf332=this['_diffRoots']['get'](_0xe8d11c['rootName']),_0x572e34=new vt(this['_fixPosition'](_0xe8d11c['start'],_0x285c3f),this['_fixPosition'](_0xe8d11c['end'],_0x285c3f)),_0x2b3647=this['_fixRange'](_0x572e34,_0x3bf332);_0x285c3f['markers']['set'](_0x4caae0,_0x572e34),this['_markers']['set'](_0x4caae0,_0x2b3647);}this['_applyOperations'](_0x3029ed,_0x310056,_0x1d5211);}['_applyOperations'](_0x2827ec,_0xec530b,_0x3253a5){for(const _0x2a251c of this['source']['getOperations'](_0x2827ec,_0xec530b))this['_handleOperation'](_0x2a251c,_0x3253a5);for(const _0x29d1eb of this['_diffRoots']['values']())_0x29d1eb['markers']['clear']();for(const [_0x30b94e,_0x304391]of this['_markers']){this['_diffRoots']['get'](_0x304391['root']['rootName'])['markers']['set'](_0x30b94e,_0x304391['clone']());}const _0x53273a=new Map(),_0x5ef45d=new Map();for(const [_0x257776,_0x11cf15]of this['_diffRoots'])_0x53273a['set'](_0x257776,T(_0x11cf15)),_0x5ef45d['set'](_0x257776,this['_diffRootsAttributes']['get'](_0x257776));this['_saveMetaData'](_0xec530b,_0x53273a,this['_markers'],_0x5ef45d);}['_getPreviousFrom'](_0x369f6e){const _0x59f613=Array['from'](this['_savedMetaData']['keys']());_0x59f613['sort']((_0x346a14,_0x49c8d3)=>_0x346a14-_0x49c8d3),_0x59f613['reverse']();for(const _0x3f9786 of _0x59f613)if(_0x3f9786<_0x369f6e)return _0x3f9786;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0xcfe197,_0x5f4ad2){const _0x4aaaa2=Array['from'](_0x5f4ad2['markers'])['map'](([_0x277e69,_0x156609])=>[_0x277e69,this['_fixRange'](_0x156609,_0xcfe197)]);_0xcfe197['markers']=new Map(_0x4aaaa2);}['_transformMarkers'](_0x41e2ac){for(const _0x48f9c1 of this['_markers']['values']()){const _0x47271=_0x48f9c1['getTransformedByOperation'](_0x41e2ac),_0x5b14aa=vt['_createFromRanges'](_0x47271);_0x48f9c1['start']=_0x5b14aa['start'],_0x48f9c1['end']=_0x5b14aa['end'];}}['_handleOperation'](_0x50d628,_0x3cdec2){if('addRoot'!=_0x50d628['type']&&'detachRoot'!=_0x50d628['type']){if('insert'==_0x50d628['type']){const _0x5569ef=_0x50d628['position']['root']['rootName'];this['_diffRoots']['has'](_0x5569ef)||(this['_diffRoots']['set'](_0x5569ef,F(_0x5569ef,!0x0)),this['_diffRootsAttributes']['set'](_0x5569ef,{}),_0x3cdec2&&this['_idsRoots']['set'](_0x5569ef,F(_0x5569ef,!0x0)));}else{if('addRootAttribute'==_0x50d628['type']||'removeRootAttribute'==_0x50d628['type']||'changeRootAttribute'==_0x50d628['type'])return void this['_handleRootAttributeOperation'](_0x50d628);'marker'==_0x50d628['type']&&this['_handleMarkerOperation'](_0x50d628);}if('marker'!==_0x50d628['type']){const _0x527639=this['_cloneOperation'](_0x50d628,this['_diffRoots']);_0x527639['_execute'](),this['_transformMarkers'](_0x527639);}if(_0x3cdec2)switch(_0x50d628['type']){case'insert':this['_handleInsertOperation'](_0x50d628);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x50d628);break;case'merge':this['_handleMergeOperation'](_0x50d628);break;case'split':this['_handleSplitOperation'](_0x50d628);}}else this['_handleRootOperation'](_0x50d628,_0x3cdec2);}['_cloneOperation'](_0x515beb,_0x1ffe3a){const _0x43c853=_0x515beb['clone']();return _0x43c853['_authorId']=_0x515beb['_authorId'],this['_fixOperation'](_0x43c853,_0x1ffe3a),_0x43c853;}['_getBaseVids'](_0x358adf){return _0x358adf['map'](_0x401d76=>{const _0x534b8b=this['_getVidAttributeName'](_0x401d76);return Number(_0x401d76['item']['getAttribute'](_0x534b8b));});}['_generateTape'](_0x2c8adf,_0x3e6b5e){if(_0x2c8adf['is']('element','$text'))_0x3e6b5e['push']({'item':_0x2c8adf,'type':'text'});else{_0x2c8adf['is']('element')&&_0x3e6b5e['push']({'item':_0x2c8adf,'type':'elementStart'});for(const _0x17e6da of _0x2c8adf['getChildren']())this['_generateTape'](_0x17e6da,_0x3e6b5e);_0x2c8adf['is']('element')&&_0x3e6b5e['push']({'item':_0x2c8adf,'type':'elementEnd'});}return _0x3e6b5e;}['_getState'](){const _0x5724f8=new Map(this['_touched']),_0xd9d323=new Map(_0x5724f8),_0x5207f5=new Map(),_0x558646={'insertions':{},'deletions':{}},_0x44f2e0={'insertions':{},'deletions':{}},_0x5754b8=new Map(),_0x268257=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x268257['delete']('$graveyard');for(const _0x4a1f88 of _0x268257){const _0x54500f=this['_diffRoots']['get'](_0x4a1f88)||F(_0x4a1f88,!0x1),_0x37e981=this['_baseRoots']['get'](_0x4a1f88)||F(_0x4a1f88,!0x1);_0x54500f['isAttached']()||_0x37e981['isAttached']()?(_0x558646['insertions'][_0x4a1f88]=T(_0x54500f),_0x558646['deletions'][_0x4a1f88]=T(_0x37e981),this['_copyMarkers'](_0x558646['deletions'][_0x4a1f88],_0x37e981),this['_copyMarkers'](_0x558646['insertions'][_0x4a1f88],_0x54500f),_0x44f2e0['insertions'][_0x4a1f88]=this['_generateTape'](this['_idsRoots']['get'](_0x4a1f88),[]),_0x44f2e0['deletions'][_0x4a1f88]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x4a1f88)||F(_0x4a1f88,!0x1),[])):_0x268257['delete'](_0x4a1f88);}for(const _0x50bafc of _0x268257){const _0x2c7f4c=_0x44f2e0['insertions'][_0x50bafc];for(const _0x56f2bd of _0x2c7f4c){const _0x504ec1=this['_getVidAttributeName'](_0x56f2bd),_0x4ab387=_0x56f2bd['item']['getAttribute'](_0x504ec1);_0xd9d323['delete'](_0x4ab387),_0x4ab387>=this['_startingRevisionId']&&_0x5207f5['set'](_0x4ab387,_0x5724f8['get'](_0x4ab387));}}for(const _0x24f8c3 of _0x268257){const _0x2c898b=_0x44f2e0['insertions'][_0x24f8c3],_0x3b6f38=this['_getBaseVids'](_0x44f2e0['deletions'][_0x24f8c3]);let _0x5e19de=0x0;for(const _0x5489ec of _0x2c898b){const _0x22e6fe=this['_getVidAttributeName'](_0x5489ec),_0x17e28e=_0x5489ec['item']['getAttribute'](_0x22e6fe);if(!_0x5207f5['has'](_0x17e28e)&&!_0x5754b8['has'](_0x17e28e)){if(_0xd9d323['has'](_0x17e28e))_0x5e19de++;else{if(_0x17e28e!=_0x3b6f38[_0x5e19de]){const _0x1ec293=_0x5724f8['get'](_0x17e28e)||_0x5724f8['get'](_0x3b6f38[_0x5e19de]);for(;_0x17e28e!=_0x3b6f38[_0x5e19de];)_0xd9d323['has'](_0x3b6f38[_0x5e19de])||(_0x5754b8['set'](_0x3b6f38[_0x5e19de],_0x1ec293),_0x5724f8['set'](_0x3b6f38[_0x5e19de],_0x1ec293)),_0x5e19de++;}_0x5e19de++;}}}}for(const _0x4e4f6b of _0x268257){const _0x37b6e2=_0x44f2e0['insertions'][_0x4e4f6b];for(const _0x2e4182 of _0x37b6e2){const _0x1b454b=this['_getVidAttributeName'](_0x2e4182),_0x4137a3=_0x2e4182['item']['getAttribute'](_0x1b454b);if(_0x5754b8['has'](_0x4137a3)){const _0x8210b7=_0x5754b8['get'](_0x4137a3);_0xd9d323['has'](_0x4137a3)||_0xd9d323['set'](_0x4137a3,{..._0x8210b7}),_0x5207f5['set'](_0x4137a3,{..._0x8210b7});}}}for(const _0x391e69 of _0xd9d323['keys']())_0x391e69>=this['_startingRevisionId']&&_0xd9d323['delete'](_0x391e69);const _0x4df915=new Map();for(const _0x42495d of _0x268257){let _0xeea94b=_0x44f2e0['insertions'][_0x42495d];for(const _0x4a8eb8 of _0xeea94b)if(_0x4a8eb8['item']['is']('element','tableCell')){const _0x3be70b=this['_getVidAttributeName'](_0x4a8eb8),_0x37917d=_0x4a8eb8['item']['getAttribute'](_0x3be70b);if(_0x5207f5['has'](_0x37917d)){const _0x37faf9=_0x4a8eb8['item']['parent']['parent']['getAttribute']('vid_start'),_0xdfc90d=_0x4df915['get'](_0x37faf9)||new Set();_0xdfc90d['add'](_0x5207f5['get'](_0x37917d)['userId']),_0x4df915['set'](_0x37faf9,_0xdfc90d);}}_0xeea94b=_0x44f2e0['deletions'][_0x42495d];for(const _0x364144 of _0xeea94b)if(_0x364144['item']['is']('element','tableCell')){const _0x18e73f=this['_getVidAttributeName'](_0x364144),_0x53fbf7=_0x364144['item']['getAttribute'](_0x18e73f);if(_0xd9d323['has'](_0x53fbf7)){const _0x515649=_0x364144['item']['parent']['parent']['getAttribute']('vid_start'),_0x501d7b=_0x4df915['get'](_0x515649)||new Set();_0x501d7b['add'](_0xd9d323['get'](_0x53fbf7)['userId']),_0x4df915['set'](_0x515649,_0x501d7b);}}for(const _0x5e6d41 of _0x4df915['keys']())(_0x5207f5['has'](_0x5e6d41)||_0xd9d323['has'](_0x5e6d41))&&_0x4df915['delete'](_0x5e6d41);}for(const _0x554d12 of _0x268257){const _0x79368f=_0x44f2e0['insertions'][_0x554d12];let _0x5b6d7f=null,_0x2b4a47=null;for(const _0x1d4f4e of _0x79368f){const _0x55dfe9=this['_getVidAttributeName'](_0x1d4f4e),_0x3b2e76=_0x1d4f4e['item']['getAttribute'](_0x55dfe9),_0x65e29c=_0x4df915['get'](_0x3b2e76);_0x65e29c&&'elementStart'==_0x1d4f4e['type']&&(_0x5b6d7f=Array['from'](_0x65e29c)[0x0],_0x2b4a47=_0x1d4f4e['item']['getAttribute']('vid_end')),_0x5b6d7f&&(_0xd9d323['set'](_0x3b2e76,{'userId':_0x5b6d7f}),_0x5207f5['set'](_0x3b2e76,{'userId':_0x5b6d7f})),_0x3b2e76==_0x2b4a47&&(_0x5b6d7f=null,_0x2b4a47=null);}}const _0x5ca4a3={},_0x18c992=new Set();for(const _0x245de8 of _0x268257){const _0x285f87=_0x558646['deletions'][_0x245de8],_0x5be934=_0x558646['insertions'][_0x245de8];for(const {userId:_0x4f8d12}of this['_touchedMarkers']['values']())null!==_0x4f8d12&&_0x18c992['add'](_0x4f8d12);for(const {userId:_0x5e07b6}of this['_touchedRoots']['values']())null!==_0x5e07b6&&_0x18c992['add'](_0x5e07b6);this['_markChanges'](_0x5be934,_0x44f2e0['insertions'][_0x245de8],_0x5207f5,'insertion',_0x18c992),this['_markChanges'](_0x285f87,_0x44f2e0['deletions'][_0x245de8],_0xd9d323,'deletion',_0x18c992),_0x5ca4a3[_0x245de8]={'insertions':this['_prepareViewToSave'](_0x5be934),'deletions':this['_prepareViewToSave'](_0x285f87),'attachChange':this['_touchedRoots']['get'](_0x245de8)||null,'attributesBefore':_0x5e8e51(this['_baseRootsAttributes']['get'](_0x245de8))||{},'attributesAfter':_0x5e8e51(this['_diffRootsAttributes']['get'](_0x245de8))};}return{'diffData':_0x5ca4a3,'authorsIds':Array['from'](_0x18c992)};}['_processRootBeforeSave'](_0x387843){for(const [,_0x863d51]of _0x387843['markers']){const _0x15a175=_0x863d51['start']['getAncestors']()['filter'](_0x298771=>'tableCell'==_0x298771['name']);for(const _0x86c39e of _0x15a175)0x1==_0x86c39e['childCount']&&_0x86c39e['getChild'](0x0)['is']('element','paragraph')&&_0x86c39e['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x4a5c5b){this['_processRootBeforeSave'](_0x4a5c5b);const _0x31efd7=this['editor']['data']['toView'](_0x4a5c5b,{}),_0x557ec1=Array['from'](_0x31efd7['getChildren']())['map'](_0x51f414=>this['_getViewJson'](_0x51f414));return JSON['stringify'](_0x557ec1);}['_getViewJson'](_0x1babf5){if(_0x1babf5['is']('$text'))return _0x1babf5['data'];{const _0x47ee01=_0x1babf5;return{'type':Object['keys'](P)['find'](_0x5a72d5=>_0x1babf5 instanceof P[_0x5a72d5]),'name':_0x47ee01['name'],'attributes':Array['from'](_0x47ee01['getAttributes']()),'children':Array['from'](_0x47ee01['getChildren']())['map'](_0x5785e4=>this['_getViewJson'](_0x5785e4))};}}['_markChanges'](_0x548ce0,_0x231682,_0x3ca639,_0xc1a17a,_0x4acc55){let _0x7f2422=null,_0xc0b5cf=null,_0x969387=0x0;const _0x2263fc=this['editor']['model'];for(let _0x2437eb=0x0;_0x2437eb<_0x231682['length'];_0x2437eb++){const _0x3f5bb1=this['_getVidAttributeName'](_0x231682[_0x2437eb]),_0x31b69a=_0x231682[_0x2437eb]['item']['getAttribute'](_0x3f5bb1),_0x19c324=_0x3ca639['get'](_0x31b69a),_0xdc8436=_0x2437eb==_0x231682['length']-0x1;(!_0x7f2422&&_0x19c324&&(_0x7f2422=_0x19c324,_0xc0b5cf=_0x231682[_0x2437eb]),_0x7f2422&&(!_0x19c324||_0x19c324['userId']!=_0x7f2422['userId']))&&(_0x150510(_0x19c324,B(_0xc0b5cf,_0x548ce0,_0x2263fc),B(_0x231682[_0x2437eb],_0x548ce0,_0x2263fc)),_0x7f2422=_0x19c324||null,_0xc0b5cf=_0x19c324?_0x231682[_0x2437eb]:null),_0x7f2422&&_0xdc8436&&_0x150510(_0x19c324,B(_0xc0b5cf,_0x548ce0,_0x2263fc),J(_0x231682[_0x2437eb],_0x548ce0,_0x2263fc));}function _0x150510(_0x37d539,_0x16a570,_0x3fc534){const _0x423ef0=_0x7f2422['userId'],_0x361763='revision:'+_0xc1a17a+':'+_0x423ef0+':'+_0x969387++,_0x42aa93=_0x2263fc['createRange'](_0x16a570,_0x3fc534);_0x548ce0['markers']['set'](_0x361763,_0x42aa93),null!==_0x423ef0&&_0x4acc55['add'](_0x423ef0);}}['_getVidAttributeName'](_0x4a8a62){switch(_0x4a8a62['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x3d41a6,_0x513087){_0x3d41a6['baseVersion']=null;for(const _0x12608f in _0x3d41a6){const _0x5a9678=_0x3d41a6[_0x12608f];if(_0x5a9678 instanceof gt){const _0x51f9fa=_0x513087['get'](_0x5a9678['root']['rootName']);_0x3d41a6[_0x12608f]=this['_fixPosition'](_0x5a9678,_0x51f9fa);}if(_0x5a9678 instanceof vt){const _0x58f544=_0x513087['get'](_0x5a9678['root']['rootName']);_0x3d41a6[_0x12608f]=this['_fixRange'](_0x5a9678,_0x58f544);}'root'===_0x12608f&&(_0x3d41a6['root']=_0x513087['get'](_0x3d41a6['root']['rootName']));}}['_fixRange'](_0x37c736,_0x5c5e59){return this['editor']['model']['createRange'](this['_fixPosition'](_0x37c736['start'],_0x5c5e59),this['_fixPosition'](_0x37c736['end'],_0x5c5e59));}['_fixPosition'](_0x2a4975,_0x105bf7){return this['editor']['model']['createPositionFromPath'](_0x105bf7,_0x2a4975['path'],_0x2a4975['stickiness']);}['_handleInsertOperation'](_0x4aaf94){const _0x194cba=this['_idsRoots']['get'](_0x4aaf94['position']['root']['rootName']),_0x133029=this['_fixPosition'](_0x4aaf94['position'],_0x194cba),_0x26dc71=null===_0x4aaf94['_authorId']?null:_0x4aaf94['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x250988=_0x133029['parent'],_0x450ead=this['_revisionId'],_0x2358f3=[];for(const _0x4dfa8e of _0x4aaf94['nodes'])if(_0x4dfa8e['is']('element'))_0x2358f3['push'](this['_makeIdsRoot'](_0x4dfa8e));else{for(let _0x3a6754=0x0;_0x3a6754<_0x4dfa8e['offsetSize'];_0x3a6754++)_0x2358f3['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x423a0c=this['_revisionId'];for(let _0x404c42=_0x450ead;_0x404c42<_0x423a0c;_0x404c42++)this['_touched']['set'](_0x404c42,{'userId':_0x26dc71});_0x250988['_insertChild'](_0x133029['offset'],_0x2358f3);}['_handleMoveOperation'](_0x20a854){(_0x20a854=this['_cloneOperation'](_0x20a854,this['_idsRoots']))['_execute']();const _0x3468c0=null===_0x20a854['_authorId']?null:_0x20a854['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x18a0b8=_0x20a854['getMovedRangeStart'](),_0x1b2a93=_0x18a0b8['parent'],_0x284ac7=_0x18a0b8['offset'];!function _0x42e858(_0x2e6f13,_0x5e4c47,_0x11196d,_0x8b91d4){for(let _0x569fb5=_0x11196d;_0x569fb5<_0x8b91d4;_0x569fb5++){const _0x6091cc=_0x5e4c47['getChild'](_0x569fb5);_0x6091cc['is']('element','$text')?_0x2e6f13['set'](_0x6091cc['getAttribute']('vid'),{'userId':_0x3468c0}):(_0x2e6f13['set'](_0x6091cc['getAttribute']('vid_start'),{'userId':_0x3468c0}),_0x42e858(_0x2e6f13,_0x6091cc,0x0,_0x6091cc['childCount']),_0x2e6f13['set'](_0x6091cc['getAttribute']('vid_end'),{'userId':_0x3468c0}));}}(this['_touched'],_0x1b2a93,_0x284ac7,_0x284ac7+_0x20a854['howMany']);}['_handleMergeOperation'](_0x3b37a0){const _0x6e043a=null===(_0x3b37a0=this['_cloneOperation'](_0x3b37a0,this['_idsRoots']))['_authorId']?null:_0x3b37a0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x400f02=_0x3b37a0['targetPosition']['parent'],_0x54a3aa=_0x3b37a0['sourcePosition']['parent'],_0x179859=_0x400f02['getAttribute']('vid_end'),_0x5c3bf2=_0x54a3aa['getAttribute']('vid_start');_0x400f02['_setAttribute']('vid_end',_0x54a3aa['getAttribute']('vid_end')),_0x54a3aa['_setAttribute']('vid_end',_0x179859),this['_touched']['set'](_0x5c3bf2,{'userId':_0x6e043a}),this['_touched']['set'](_0x179859,{'userId':_0x6e043a}),_0x3b37a0['_execute']();}['_handleSplitOperation'](_0x5a7aaf){const _0x38739c=null===(_0x5a7aaf=this['_cloneOperation'](_0x5a7aaf,this['_idsRoots']))['_authorId']?null:_0x5a7aaf['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2ddc6d=_0x5a7aaf['graveyardPosition'],_0xb77e6d=_0x5a7aaf['splitPosition']['parent'];_0x5a7aaf['_execute']();const _0x2fab23=_0xb77e6d['getAttribute']('vid_end'),_0x55ff9c=_0x5a7aaf['insertionPosition']['nodeAfter'];if(_0x2ddc6d){const _0x485a92=_0x55ff9c['getAttribute']('vid_end'),_0x5ba17c=_0xb77e6d['getAttribute']('vid_end');_0xb77e6d['_setAttribute']('vid_end',_0x485a92),_0x55ff9c['_setAttribute']('vid_end',_0x5ba17c),this['_touched']['set'](_0xb77e6d['getAttribute']('vid_end'),{'userId':_0x38739c}),this['_touched']['set'](_0x55ff9c['getAttribute']('vid_start'),{'userId':_0x38739c});}else{const _0x519261=this['_revisionId']++,_0x48a4ee=this['_revisionId']++;_0xb77e6d['_setAttribute']('vid_end',_0x519261),_0x55ff9c['_setAttribute']('vid_start',_0x48a4ee),_0x55ff9c['_setAttribute']('vid_end',_0x2fab23),this['_touched']['set'](_0x519261,{'userId':_0x38739c}),this['_touched']['set'](_0x48a4ee,{'userId':_0x38739c});}}['_handleMarkerOperation'](_0x1edbe9){if(!_0x1edbe9['affectsData'])return;const _0x441c54=(_0x1edbe9=this['_cloneOperation'](_0x1edbe9,this['_diffRoots']))['oldRange']?_0x1edbe9['oldRange']['root']:null,_0x5476d5=_0x1edbe9['newRange']?_0x1edbe9['newRange']['root']:null;_0x441c54&&this['_markers']['delete'](_0x1edbe9['name']),_0x5476d5&&this['_markers']['set'](_0x1edbe9['name'],_0x1edbe9['newRange']['clone']());const _0x24bed5=null===_0x1edbe9['_authorId']?null:_0x1edbe9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x28d285=_0x1edbe9['name'];if(!this['_touchedMarkers']['has'](_0x28d285))return void this['_touchedMarkers']['set'](_0x28d285,{'range':_0x1edbe9['oldRange'],'userId':_0x24bed5});const _0x3adb73=this['_touchedMarkers']['get'](_0x28d285),_0x48c581=_0x3adb73['range'],_0x564f60=_0x1edbe9['newRange'];null==_0x48c581&&null==_0x564f60||_0x48c581&&_0x564f60&&_0x48c581['isEqual'](_0x564f60)?this['_touchedMarkers']['delete'](_0x1edbe9['name']):_0x3adb73['userId']=_0x24bed5;}['_handleRootOperation'](_0x38bc5f,_0x344e2d){this['_diffRoots']['has'](_0x38bc5f['rootName'])?this['_diffRoots']['get'](_0x38bc5f['rootName'])['_isAttached']=_0x38bc5f['isAdd']:(this['_diffRoots']['set'](_0x38bc5f['rootName'],F(_0x38bc5f['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x38bc5f['rootName'],{}),_0x344e2d&&this['_idsRoots']['set'](_0x38bc5f['rootName'],F(_0x38bc5f['rootName'],!0x0)));const _0x4ddacd=null===_0x38bc5f['_authorId']?null:_0x38bc5f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xb05a8d=this['_touchedRoots']['get'](_0x38bc5f['rootName']);_0xb05a8d&&_0xb05a8d['userId']===_0x4ddacd?this['_touchedRoots']['delete'](_0x38bc5f['rootName']):this['_touchedRoots']['set'](_0x38bc5f['rootName'],{'userId':_0x4ddacd,'isAttached':_0x38bc5f['isAdd']});}['_handleRootAttributeOperation'](_0x4b0279){const _0x5eaca3=this['_diffRootsAttributes']['get'](_0x4b0279['root']['rootName']);null===_0x4b0279['newValue']?delete _0x5eaca3[_0x4b0279['key']]:_0x5eaca3[_0x4b0279['key']]=_0x4b0279['newValue'];}}function T(_0x514fe5){const _0x3718f8=F(_0x514fe5['rootName'],_0x514fe5['isAttached']());for(const _0x93e755 of _0x514fe5['getChildren']()){const _0x2a9bc7=_0x93e755['_clone'](!0x0);_0x3718f8['_appendChild'](_0x2a9bc7);}return _0x3718f8;}function F(_0x35008f,_0x90ee78=!0x0){const _0x48ac05=new mt();return _0x48ac05['rootName']=_0x35008f,_0x48ac05['_isAttached']=_0x90ee78,_0x48ac05['isAttached']=()=>_0x48ac05['_isAttached'],_0x48ac05;}function B(_0x32bad1,_0x943da8,_0x533a02){const _0x3e9cb0='elementEnd'==_0x32bad1['type']?_0x533a02['createPositionAt'](_0x32bad1['item'],'end'):_0x533a02['createPositionBefore'](_0x32bad1['item']);return _0x533a02['createPositionFromPath'](_0x943da8,_0x3e9cb0['path'],_0x3e9cb0['stickiness']);}function J(_0x3d13ba,_0x56da1d,_0xe2abd1){const _0x15b053='elementStart'==_0x3d13ba['type']?_0xe2abd1['createPositionAt'](_0x3d13ba['item'],0x0):_0xe2abd1['createPositionAfter'](_0x3d13ba['item']);return _0xe2abd1['createPositionFromPath'](_0x56da1d,_0x15b053['path'],_0x15b053['stickiness']);}class ns extends _0x46e692{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x1643a8,_0x3b80db){super(_0x1643a8),this['focusTracker']=new _0x2fd6cd(),this['keystrokes']=new _0x4d9c7b(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x3b80db),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'](),_0xc09350({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x201092=_0x1ade6f=>_0x1ade6f['stopPropagation']();this['keystrokes']['set']('arrowright',_0x201092),this['keystrokes']['set']('arrowleft',_0x201092),this['keystrokes']['set']('arrowup',_0x201092),this['keystrokes']['set']('arrowdown',_0x201092);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x486e7c){this['revisionNameInputView']['fieldView']['element']['value']=_0x486e7c['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x32212e){const _0x2333b8=new nt(this['locale'],_0x8c8f78),_0x2b3ede=_0x2333b8['fieldView'];_0x2b3ede['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x579152=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x32212e&&(_0x579152+='\x20('+m(this['locale'],'optional')+')'),(_0x2333b8['label']=_0x579152,_0x2b3ede['on']('input',()=>{this['revisionNameInputValue']=_0x2b3ede['element']['value']['trim']();}),_0x2333b8);}}class u extends _0xf0a0b{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x264f99=this['editor'],_0x4349f8=_0x264f99['plugins']['get']('RevisionTracker');_0x264f99['ui']['componentFactory']['add']('revisionHistory',_0x780a72=>{const _0x512914=_0x161ce7(_0x780a72),_0x2e0280=_0x512914['panelView']['children'],_0x4aa1b8=new te(_0x780a72),_0x290235=new _0x3657d9(_0x780a72),_0xb6f747=new _0x319a68(_0x780a72),_0x5ae3f9=new _0x3657d9(_0x780a72),_0x1a3ad7=new _0x319a68(_0x780a72);return _0x512914['bind']('isEnabled')['to'](_0x4349f8,'isReady',_0x4349f8,'isEnabled',_0x264f99,'isReadOnly',(_0x9f76ae,_0x53c6ec,_0x35b91e)=>_0x9f76ae&&_0x53c6ec&&!_0x35b91e),_0x512914['buttonView']['set']({'icon':_0x580a31['history'],'label':m(_0x780a72,'Revision\x20history'),'tooltip':!0x0}),_0xb6f747['set']({'label':m(_0x780a72,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0xb6f747['bind']('isEnabled')['to'](_0x4349f8,'isReady',_0x4349f8,'isEnabled',_0x264f99,'isReadOnly',(_0xd2f1c5,_0xa328df,_0x41ab57)=>_0xd2f1c5&&_0xa328df&&!_0x41ab57),_0xb6f747['on']('execute',()=>this['_showDialog']()),_0x1a3ad7['set']({'label':m(_0x780a72,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x1a3ad7['bind']('isEnabled')['to'](_0x4349f8,'isReady',_0x264f99,'isReadOnly',(_0x13904d,_0xe53ae4)=>_0x13904d&&!_0xe53ae4),_0x1a3ad7['on']('execute',()=>{_0x264f99['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x512914['isOpen']=!0x1,_0x264f99['editing']['view']['focus']();}),_0x290235['children']['add'](_0xb6f747),_0x5ae3f9['children']['add'](_0x1a3ad7),_0x4aa1b8['role']='menu',_0x4aa1b8['items']['addMany']([_0x290235,_0x5ae3f9]),_0x2e0280['add'](_0x4aa1b8),_0x512914;}),_0x264f99['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x20f756=this['editor'],_0xc78282=_0x20f756['locale'],_0x277086=new _0x102002(_0xc78282),_0x55bbf7=new _0x47b54a(_0xc78282);_0x277086['buttonView']['set']({'icon':_0x580a31['history'],'label':m(_0xc78282,'Revision\x20history')});const _0x35acf6=new _0x469bb2(_0xc78282,_0x277086),_0x49b439=new _0x32e8f4(_0xc78282);_0x49b439['set']({'label':m(_0xc78282,'Save\x20current\x20revision')}),_0x49b439['delegate']('execute')['to'](_0x277086),_0x49b439['on']('execute',()=>{this['_showDialog']();}),_0x35acf6['children']['add'](_0x49b439),_0x55bbf7['items']['add'](_0x35acf6);const _0x174465=new _0x469bb2(_0xc78282,_0x277086),_0x427fb8=new _0x32e8f4(_0xc78282);return _0x427fb8['set']({'label':m(_0xc78282,'Open\x20revision\x20history')}),_0x427fb8['delegate']('execute')['to'](_0x277086),_0x427fb8['on']('execute',()=>{_0x20f756['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x174465['children']['add'](_0x427fb8),_0x55bbf7['items']['add'](_0x174465),_0x277086['panelView']['children']['add'](_0x55bbf7),_0x277086;}['_showDialog'](){const _0x19640e=this['editor'],_0x25fe30=_0x19640e['locale'],_0x48368f=_0x19640e['plugins']['get']('Dialog'),_0x14bce8=_0x19640e['plugins']['get']('RevisionTracker');function _0xf0252d(_0x2a7ed1){_0x19640e['config']['get']('revisionHistory.requireRevisionName')&&''===_0x2a7ed1['revisionName']?_0x2a7ed1['revisionNameInputView']['errorText']=m(_0x25fe30,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x19640e['plugins']['get'](l)['saveRevision']({'name':_0x2a7ed1['revisionName']}),_0x48368f['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0xf0252d(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x48368f['show']({'id':'revisionSave','title':m(_0x25fe30,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x19640e['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x48368f['hide']()},{'label':m(_0x19640e['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x370ee8){_0x370ee8['bind']('isEnabled')['to'](_0x14bce8,'isReady',_0x14bce8,'isEnabled',_0x19640e,'isReadOnly',(_0xdae069,_0x45e3ac,_0x1f5582)=>_0xdae069&&_0x45e3ac&&!_0x1f5582);},'onExecute':()=>_0xf0252d(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x3b2b64=this['editor'],_0x1af2f0=_0x3b2b64['locale'];this['_saveRevisionFormView']=new ns(_0x1af2f0,_0x3b2b64['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x46e692{['changeId'];['_model'];constructor(_0x3c801a,_0x55dd5c){super(_0x3c801a),this['_model']=_0x55dd5c,this['changeId']=_0x55dd5c['id'];const _0x80ed30=this['bindTemplate'],_0x3d9b05=m(_0x3c801a,_0x55dd5c['data']['isSuggestion']?'Suggested\x20by':'add'==_0x55dd5c['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x55dd5c['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x80ed30['to']('type',_0x3dc883=>'ck-revision-change__'+_0x3dc883)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x3d9b05}]},{'text':'\x20'+_0x55dd5c['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x310331(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x3bf893){super(),this['id']=_0x3bf893['id']||_0x4b945d(),this['author']=_0x3bf893['author'],this['type']=_0x3bf893['type'],this['data']=_0x3bf893['data']||{},this['rootName']=_0x3bf893['rootName'],this['set']('createdAt',_0x3bf893['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(_0x3e2663,_0x24a227){this['newRevisionId']=_0x3e2663,this['oldRevisionId']=_0x24a227,this['changes']=new _0x5e4f58();}['_setChanges'](_0x3ba6bd){for(const _0x5a5144 of _0x3ba6bd)this['changes']['add'](_0x5a5144);}}const Y={'c':_0x4bc199,'a':_0x49254f,'e':_0x2de322,'r':_0x7e96d6,'u':_0x55fe2e};class d extends _0xf0a0b{['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[_0x225e2a,_0x5d5754,j];}constructor(_0x2a61c7){super(_0x2a61c7),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',(_0xc1ffbe,_0x527fa0,_0x5cbff1)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x25c848=>{for(const _0x44038b of this['editor']['editing']['view']['document']['roots'])_0x5cbff1?_0x25c848['removeClass']('ck-editor__editable__overlay',_0x44038b):_0x25c848['addClass']('ck-editor__editable__overlay',_0x44038b);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x5d9056=>null!==_0x5d9056),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x4d2024,_0x140ea8,_0x56bc73)=>_0x4d2024&&_0x56bc73?_0x140ea8['changes']['getIndex'](_0x56bc73):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x2472c7,_0x284d2)=>_0x2472c7?_0x284d2['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x5d5754);}['init'](){const _0x1eb799=this['editor'],_0x106aaa=new yt(_0x1eb799,{'direction':'backward'}),_0x321273=new yt(_0x1eb799,{'direction':'forward'});(_0x1eb799['commands']['add']('showPreviousChange',_0x106aaa),_0x1eb799['commands']['add']('showNextChange',_0x321273),_0x1eb799['commands']['add']('restoreRevision',new _t(_0x1eb799)),this['on']('change:numberOfChanges',()=>{_0x106aaa['refresh'](),_0x321273['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x1eb799['enableReadOnlyMode']('revision-viewer'),_0x1eb799['plugins']['has']('WidgetToolbarRepository'))&&_0x1eb799['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x4566eb){await this['loadRevisionData'](_0x4566eb);const _0x423872={};for(const _0x2556a5 in _0x4566eb['diffData']){if(_0x4566eb['diffData'][_0x2556a5]['attachChange']&&!_0x4566eb['diffData'][_0x2556a5]['attachChange']['isAttached'])continue;const _0x386676=this['_removeRevisionMarkers'](JSON['parse'](_0x4566eb['diffData'][_0x2556a5]['insertions'])),_0x410071=this['editor']['editing']['view']['document'],_0x138bc5=new _0xbc8b9d(_0x410071,_0x386676['map'](_0x200ff4=>this['_getViewObj'](_0x200ff4)));this['editor']['data']['processor']['useFillerType']('marked'),_0x423872[_0x2556a5]=this['editor']['data']['processor']['toData'](_0x138bc5),this['editor']['data']['processor']['useFillerType']('default');}return _0x423872;}async['getRevisionRootsAttributes'](_0x3c956c){await this['loadRevisionData'](_0x3c956c);const _0x28df10={};for(const _0x49bc9a in _0x3c956c['diffData'])_0x3c956c['diffData'][_0x49bc9a]['attachChange']&&!_0x3c956c['diffData'][_0x49bc9a]['attachChange']['isAttached']||(_0x28df10[_0x49bc9a]=_0x3c956c['diffData'][_0x49bc9a]['attributesAfter']||{});return _0x28df10;}['_removeRevisionMarkers'](_0x5d4689){return(_0x5d4689=_0x5d4689['filter'](_0x3bc2e1=>!_0x3bc2e1['name']||'revision-start'!==_0x3bc2e1['name']&&'revision-end'!==_0x3bc2e1['name']))['forEach'](_0x5e867e=>{'string'!=typeof _0x5e867e&&(_0x5e867e['children']=this['_removeRevisionMarkers'](_0x5e867e['children']),_0x5e867e['attributes']=_0x5e867e['attributes']['filter'](_0x480376=>!_0x480376[0x0]['startsWith']('data-revision-')));}),_0x5d4689;}async['compare'](_0x291e65,_0x4de1cf,_0x38d31e=!0x1){if(!this['isEnabled'])return;const _0x273913=this['diff'],_0x57cf3a=this['repository'],_0x346fab='string'==typeof _0x291e65?_0x57cf3a['getRevision'](_0x291e65):_0x291e65,_0x24d41b='string'==typeof _0x4de1cf?_0x57cf3a['getRevision'](_0x4de1cf):_0x4de1cf,_0x47c91a=_0x346fab['id'],_0x15b75d=_0x24d41b?_0x24d41b['id']:null;if(!_0x38d31e&&this['diff']&&this['diff']['newRevisionId']===_0x47c91a&&this['diff']['oldRevisionId']===_0x15b75d)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x47c91a,_0x15b75d);const _0x551b77=this['_getRevisionsRange'](_0x346fab,_0x24d41b,!0x0)['map'](_0xe1fa83=>this['loadRevisionData'](_0xe1fa83));return _0x551b77['push'](new Promise(_0x1d5829=>{setTimeout(_0x1d5829,0x14);})),Promise['all'](_0x551b77)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x168633=this['_getDiff'](_0x47c91a,_0x15b75d);for(const _0xf0229f of _0x168633['changes'])this['_changeIdToChange']['set'](_0xf0229f['id'],_0xf0229f);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2c5d3f=>{for(const _0x1d979e of this['editor']['model']['document']['getRootNames']())_0x2c5d3f['detachRoot'](_0x1d979e);for(const _0x2371fd of Object['keys'](_0x168633['model'])){const _0x49cc43=_0x2c5d3f['addRoot'](_0x2371fd);for(const _0x40e31d of Object['keys'](_0x168633['attributes'][_0x2371fd]))_0x2c5d3f['setAttribute'](_0x40e31d,_0x168633['attributes'][_0x2371fd][_0x40e31d],_0x49cc43);_0x2c5d3f['insert'](_0x168633['model'][_0x2371fd],_0x49cc43,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x168633['changes'])),this['isReady']=!0x0;})['catch'](_0x2a0ca2=>{console['error'](_0x2a0ca2),this['_cleanUp'](),_0x273913&&(this['diff']=_0x273913),this['isReady']=!0x0;});}['addRevisionData'](_0x5f9116,_0x26985e){const _0x29d173=this['repository']['createRevision'](_0x5f9116);return _0x29d173['on']('_update',(_0x1c4fc8,_0x291907,_0x4a7746)=>_0x26985e(_0x291907,_0x4a7746,_0x29d173)),this['repository']['addRevision'](_0x29d173),_0x29d173;}['loadRevisionData'](_0x312f12){if(!_0x312f12||_0x312f12['diffData'])return Promise['resolve']();{const _0x52ff9d=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x52ff9d,'revisionId':_0x312f12['id']})['then'](_0x39df8e=>{_0x312f12['_update']({'diffData':_0x39df8e['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},_0x3a576c=>{for(const _0x1a722e of this['editor']['model']['document']['getRootNames']())_0x3a576c['detachRoot'](_0x1a722e);});}['_sortAndFilterDiffChanges'](_0x3e1066){const _0x487f43=[],_0x335606=new Map();for(const _0x3d0900 of this['editor']['model']['document']['getRootNames']()){const _0x40fb64=this['editor']['editing']['view']['getDomRoot'](_0x3d0900);if(!_0x40fb64)continue;const _0x1269d5=_0x40fb64['getClientRects']()['item'](0x0);_0x1269d5&&(_0x487f43['push'](_0x3d0900),_0x335606['set'](_0x3d0900,_0x1269d5));}return _0x487f43['sort']((_0x33c72a,_0x30dbb5)=>{const _0x57fd5f=_0x335606['get'](_0x33c72a),_0x19bea9=_0x335606['get'](_0x30dbb5);return _0x57fd5f['y']-_0x19bea9['y']||_0x57fd5f['x']-_0x19bea9['x'];}),(_0x3e1066=_0x3e1066['filter'](_0x434de5=>_0x487f43['includes'](_0x434de5['rootName'])))['sort']((_0x1727f2,_0x5a4ed1)=>_0x487f43['indexOf'](_0x1727f2['rootName'])-_0x487f43['indexOf'](_0x5a4ed1['rootName'])),_0x3e1066;}['_makeTape'](_0x385796){const _0x84c0bc=Array['from'](_0x385796['markers'])['filter'](([_0x5e4e60,_0xe7042a])=>_0x5e4e60['startsWith']('revision:')&&!_0xe7042a['isCollapsed']),_0x1b592c=Array['from'](this['editor']['model']['createRangeIn'](_0x385796)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x84c0bc['length'])for(const _0x33bab9 of _0x1b592c){const [_0x53e800,_0x39f760]=_0x84c0bc[0x0],[,_0x1b4b98,_0x2072eb]=_0x53e800['split'](':');if(_0x39f760['end']['isEqual'](_0x33bab9['nextPosition'])&&_0x84c0bc['shift'](),(_0x33bab9['previousPosition']['isEqual'](_0x39f760['start'])||_0x33bab9['previousPosition']['isAfter'](_0x39f760['start']))&&('insertion'==_0x1b4b98?_0x33bab9['isAdded']={'userId':_0x2072eb}:'deletion'==_0x1b4b98&&(_0x33bab9['isRemoved']={'userId':_0x2072eb})),0x0==_0x84c0bc['length'])break;}return _0x1b592c;}['_refreshStartEndIndex'](_0x16717f){const _0x18f6f8=new Map();for(let _0x15cc01=0x0;_0x15cc01<_0x16717f['length'];_0x15cc01++)'text'===_0x16717f[_0x15cc01]['type']?(_0x16717f[_0x15cc01]['item']['startIndex']=_0x15cc01,_0x16717f[_0x15cc01]['item']['endIndex']=_0x15cc01):('elementStart'===_0x16717f[_0x15cc01]['type']?_0x16717f[_0x15cc01]['item']['startIndex']=_0x15cc01:'elementEnd'===_0x16717f[_0x15cc01]['type']&&(_0x16717f[_0x15cc01]['item']['endIndex']=_0x15cc01),_0x18f6f8['set'](_0x16717f[_0x15cc01]['id'],_0x15cc01));for(const _0xd85d13 of _0x18f6f8['values']())'elementStart'===_0x16717f[_0xd85d13]['type']?_0x16717f[_0xd85d13]['item']['endIndex']=_0x18f6f8['get'](_0x16717f[_0xd85d13]['pairId']):'elementEnd'===_0x16717f[_0xd85d13]['type']&&(_0x16717f[_0xd85d13]['item']['startIndex']=_0x18f6f8['get'](_0x16717f[_0xd85d13]['pairId']));}['_processTape'](_0x137cbf){for(let _0x3767c1=0x0;_0x3767c1<_0x137cbf['length'];_0x3767c1++){if('elementStart'===_0x137cbf[_0x3767c1]['type'])_0x137cbf[_0x3767c1]['item']['startIndex']=_0x3767c1;else{if('elementEnd'===_0x137cbf[_0x3767c1]['type']){_0x137cbf[_0x3767c1]['item']['endIndex']=_0x3767c1;const _0x5d0083=_0x137cbf[_0x3767c1]['item']['startIndex'];_0x137cbf[_0x5d0083]['pairId']=_0x137cbf[_0x3767c1]['id'],_0x137cbf[_0x3767c1]['pairId']=_0x137cbf[_0x5d0083]['id'];}else _0x137cbf[_0x3767c1]['item']['startIndex']=_0x3767c1,_0x137cbf[_0x3767c1]['item']['endIndex']=_0x3767c1,_0x137cbf[_0x3767c1]['pairId']=null;}_0x137cbf[_0x3767c1]['markersStart']||(_0x137cbf[_0x3767c1]['markersStart']=[],_0x137cbf[_0x3767c1]['markersEnd']=[]);}}['_markInsertions'](_0x1c60a3,_0x53a021){const _0x5704ed=_0x1c60a3['filter'](_0x111d32=>!_0x111d32['isAdded']);for(let _0x45ab99=0x0;_0x45ab99<_0x53a021['length'];_0x45ab99++)_0x53a021[_0x45ab99]['isAdded']&&(_0x5704ed[_0x45ab99]['isAdded']=_0x53a021[_0x45ab99]['isAdded']);}['_makeModelFromViewString'](_0x28c89c){const _0x5f064d=JSON['parse'](_0x28c89c),_0x49aa72=this['editor']['editing']['view']['document'],_0x3ad4a5=new _0xbc8b9d(_0x49aa72,_0x5f064d['map'](_0x5ce15b=>this['_getViewObj'](_0x5ce15b)));return this['editor']['data']['toModel'](_0x3ad4a5);}['_getViewObj'](_0x892be3){const _0x53cd86=this['editor']['editing']['view']['document'];if('string'==typeof _0x892be3)return new _0x331fa8(_0x53cd86,_0x892be3);{const _0x40f54a=_0x892be3['children']['map'](_0x1812e5=>this['_getViewObj'](_0x1812e5));return new(Y[_0x892be3['type']]||_0x1e1b37)(_0x53cd86,_0x892be3['name'],_0x892be3['attributes'],_0x40f54a);}}['_getDiff'](_0x2deae5,_0x2fed05=null){const _0x11c92a=this['repository']['getRevision'](_0x2deae5),_0x1abb56=_0x2fed05?this['repository']['getRevision'](_0x2fed05):null,_0x46c84b=this['_getRevisionsRange'](_0x11c92a,_0x1abb56),_0xfee816=_0x46c84b[_0x46c84b['length']-0x1],_0x535451=new Map(),_0x401b94={'model':{},'attributes':{},'changes':[]},_0x23f321=new Set(),_0x108c8a=new Map();for(let _0x52d6ad=_0x46c84b['length']-0x1;_0x52d6ad>=0x0;_0x52d6ad--){const _0x42f971=_0x46c84b[_0x52d6ad];for(const _0x3eef39 of Object['keys'](_0x42f971['diffData']))if(_0x42f971['diffData'][_0x3eef39]['attachChange']){const _0x1c221d=_0x42f971['diffData'][_0x3eef39]['attachChange'];_0x1c221d['isAttached']?(_0x23f321['add'](_0x3eef39),_0x108c8a['has'](_0x3eef39)&&_0x108c8a['get'](_0x3eef39)['userId']==_0x1c221d['userId']?_0x108c8a['delete'](_0x3eef39):_0x108c8a['set'](_0x3eef39,_0x1c221d)):_0x108c8a['has'](_0x3eef39)?(_0x23f321['delete'](_0x3eef39),_0x108c8a['delete'](_0x3eef39)):(_0x23f321['add'](_0x3eef39),_0x108c8a['set'](_0x3eef39,_0x1c221d));}else _0x23f321['add'](_0x3eef39);}for(const _0xd8784e of _0x23f321){const _0x2ff79b=_0x108c8a['has'](_0xd8784e)&&!_0x108c8a['get'](_0xd8784e)['isAttached'];let _0x4df4e6=_0x2ff79b?_0x46c84b['length']-0x1:0x0;const _0x40af6b=_0x2ff79b?-0x1:0x1;for(;_0x46c84b[_0x4df4e6];){const _0x57200d=_0x46c84b[_0x4df4e6];if(_0x57200d['diffData'][_0xd8784e]){const _0x3e228c=_0x2ff79b?_0x57200d['diffData'][_0xd8784e]['attributesBefore']:_0x57200d['diffData'][_0xd8784e]['attributesAfter'];_0x401b94['attributes'][_0xd8784e]=_0x3e228c?_0x5e8e51(_0x3e228c):{};break;}_0x4df4e6+=_0x40af6b;}}for(const _0x2daeb0 of _0x46c84b){_0x2daeb0['model']={};for(const _0x32eb60 of _0x2daeb0['authors'])_0x535451['set'](_0x32eb60['id'],_0x32eb60);for(const _0x4169c9 of _0x23f321){const _0x3bc77f=_0x2daeb0['diffData'][_0x4169c9]?_0x2daeb0['diffData'][_0x4169c9]['insertions']:'[]',_0x104517=_0x2daeb0['diffData'][_0x4169c9]?_0x2daeb0['diffData'][_0x4169c9]['deletions']:'[]';_0x2daeb0['model'][_0x4169c9]={'insertions':this['_makeModelFromViewString'](_0x3bc77f),'deletions':this['_makeModelFromViewString'](_0x104517)};}}for(const _0x6742bf of _0x23f321){let _0x41b739=null,_0x330338=0x0;const _0x5dbb9f=new Map(Array['from'](_0x11c92a['model'][_0x6742bf]['insertions']['markers'])['filter'](([_0x4df171])=>!_0x4df171['startsWith']('revision:')));let _0x18b7d0=0x0;for(const _0x2026b5 of _0x46c84b){const _0x2ab324=this['_makeTape'](_0x2026b5['model'][_0x6742bf]['insertions']);_0x2026b5==_0x11c92a?(_0x41b739=_0x2ab324,_0x330338=_0x41b739['length'],_0x41b739['forEach'](_0x3a5f1c=>{_0x3a5f1c['id']=_0x18b7d0++;}),this['_processTape'](_0x41b739)):this['_markInsertions'](_0x41b739,_0x2ab324);const _0x35e087=_0x41b739['filter'](_0x3403fc=>!_0x3403fc['isAdded'])['map'](_0x343ccd=>_0x343ccd['id']);let _0x43a028=0x0;const _0x2eeede=this['_makeTape'](_0x2026b5['model'][_0x6742bf]['deletions']);_0x2eeede['forEach'](_0x1f29ab=>{_0x1f29ab['isRemoved']?_0x1f29ab['id']=_0x330338++:_0x1f29ab['id']=_0x35e087[_0x43a028++];}),this['_processTape'](_0x2eeede),this['_setDistance'](_0x41b739,'isAdded'),this['_setDistance'](_0x2eeede,'isRemoved'),_0x2026b5==_0x11c92a&&this['_markMarkers'](_0x41b739,_0x5dbb9f),_0x41b739=this['_joinTapes'](_0x41b739,_0x2eeede),this['_refreshStartEndIndex'](_0x41b739),this['_setDistance'](_0x41b739,'isRemoved');}_0x41b739=_0x41b739['filter'](_0x116d3f=>!(_0x116d3f['isAdded']&&_0x116d3f['isRemoved']));const _0x2fb032=new Map(_0xfee816['model'][_0x6742bf]['deletions']['markers']),_0x2e6d0b=new Set(_0x5dbb9f['keys']());for(const _0x3fd7f1 of _0x2fb032['keys']())_0x2e6d0b['delete'](_0x3fd7f1);this['_markSuggestions'](_0x41b739,_0x2e6d0b),this['_fixObsoleteTags'](_0x41b739),_0x41b739=this['_removeMissingPairs'](_0x41b739),_0x41b739=this['_markMismatchedRemovedTags'](_0x41b739),_0x41b739=this['_removeUnsupportedChanges'](_0x41b739);const {root:_0x25ca64,changes:_0x1f8188}=this['_makeModelFromTape'](_0x41b739,_0x535451,_0x6742bf);_0x401b94['model'][_0x6742bf]=_0x25ca64;const _0x3095c4=_0x108c8a['get'](_0x6742bf);if(_0x3095c4){const _0x45ac5c=_0x535451['get'](_0x3095c4['userId']),_0x198679=new r({'author':_0x45ac5c,'type':_0x3095c4['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x6742bf});_0x1f8188['unshift'](_0x198679),_0x401b94['attributes'][_0x6742bf]['revisionHistoryAttachChange']=_0x198679['id'];}_0x401b94['changes']=_0x401b94['changes']['concat'](_0x1f8188);}return _0x401b94;}['_markMarkers'](_0x69daf4,_0x3359e7){for(let _0x3a2d8d=0x0;_0x3a2d8d<_0x69daf4['length'];_0x3a2d8d++)for(const [_0x6edea7,_0x44c126]of _0x3359e7)_0x44c126['start']['isEqual'](_0x69daf4[_0x3a2d8d]['previousPosition'])&&_0x69daf4[_0x3a2d8d]['markersStart']['push'](_0x6edea7),_0x44c126['end']['isEqual'](_0x69daf4[_0x3a2d8d]['nextPosition'])&&_0x69daf4[_0x3a2d8d]['markersEnd']['push'](_0x6edea7);}['_joinTapes'](_0xb14b82,_0x2451d0){let _0x30dbe8=[],_0x392064=0x0,_0x38e52e=0x0;for(;_0x392064<_0xb14b82['length']||_0x38e52e<_0x2451d0['length'];){const _0xa1ca72=_0xb14b82[_0x392064]||{},_0x12afff=_0x2451d0[_0x38e52e]||{};if(_0xa1ca72['id']==_0x12afff['id'])_0x392064++,_0x38e52e++,_0x30dbe8['push'](_0xa1ca72);else{if(_0x12afff['isRemoved']&&_0xa1ca72['isAdded']){const {commonTape:_0x1b325f,iEnd:_0x19ad53,jEnd:_0x4112d4}=this['_threeWayMerge'](_0xb14b82,_0x392064,_0x2451d0,_0x38e52e);_0x30dbe8=_0x30dbe8['concat'](_0x1b325f),_0x392064=_0x19ad53,_0x38e52e=_0x4112d4;}else _0x12afff['isRemoved']?(_0x38e52e++,_0x30dbe8['push'](_0x12afff)):(_0x392064++,_0x30dbe8['push'](_0xa1ca72));}}return _0x30dbe8;}['_markSuggestions'](_0x51da80,_0x1b93a1){const _0xe94c7f=[];for(let _0x984e7c=0x0;_0x984e7c<_0x51da80['length'];_0x984e7c++){for(let _0x532c31=0x0;_0x532c31<_0x51da80[_0x984e7c]['markersStart']['length'];_0x532c31++){const _0x47d1fb=_0x51da80[_0x984e7c]['markersStart'][_0x532c31];if(!_0x1b93a1['has'](_0x47d1fb))continue;const {group:_0x8d7762,type:_0x3f3cf5,authorId:_0x26cca3}=_0x521b91(_0x47d1fb);'revision-suggestion'!=_0x8d7762||'insertion'!=_0x3f3cf5&&'deletion'!=_0x3f3cf5||(_0xe94c7f['unshift']({'type':_0x3f3cf5,'name':_0x47d1fb,'userId':_0x26cca3}),_0x51da80[_0x984e7c]['markersStart']['splice'](_0x532c31,0x1),_0x532c31--);}_0x7d3687(_0x51da80[_0x984e7c]);for(let _0x27d369=0x0;_0x27d369<_0x51da80[_0x984e7c]['markersEnd']['length'];_0x27d369++){const _0x519ad3=_0x51da80[_0x984e7c]['markersEnd'][_0x27d369];if(!_0x1b93a1['has'](_0x519ad3))continue;const {group:_0x5c5070,type:_0x3b05b9}=_0x521b91(_0x519ad3);if('revision-suggestion'!=_0x5c5070||'insertion'!=_0x3b05b9&&'deletion'!=_0x3b05b9)continue;_0x51da80[_0x984e7c]['markersEnd']['splice'](_0x27d369,0x1),_0x27d369--;const _0x59724b=_0xe94c7f['findIndex'](_0x52beaf=>_0x52beaf['name']==_0x519ad3);_0x59724b>-0x1&&_0xe94c7f['splice'](_0x59724b,0x1);}}function _0x521b91(_0x501ecd){const _0x24dcd3=_0x501ecd['split'](':');return{'group':_0x24dcd3[0x0],'type':_0x24dcd3[0x1],'subType':_0x24dcd3['length']>=0x5?_0x24dcd3[0x2]:null,'id':_0x24dcd3['length']<0x5?_0x24dcd3[0x2]:_0x24dcd3[0x3],'authorId':_0x24dcd3['length']<0x5?_0x24dcd3[0x3]:_0x24dcd3[0x4],'markerCount':0x6==_0x24dcd3['length']?_0x24dcd3[0x5]:null};}function _0x7d3687(_0x15a26c){for(let _0x12dec9=0x0;_0x12dec9<_0xe94c7f['length'];_0x12dec9++){if(_0x15a26c['isAdded']&&'insertion'==_0xe94c7f[_0x12dec9]['type'])return _0x15a26c['isAddSuggestion']=_0xe94c7f[_0x12dec9],void delete _0x15a26c['isAdded'];if(!_0x15a26c['isAdded']&&!_0x15a26c['isRemoved']&&'deletion'==_0xe94c7f[_0x12dec9]['type'])return void(_0x15a26c['isRemoveSuggestion']=_0xe94c7f[_0x12dec9]);}}}['_setDistance'](_0x41db7b,_0x56a7b6){let _0x4f46ae=0x0,_0x5e879c=!0x1;const _0xea2e3a=new Map();for(const _0x39e0bb of _0x41db7b)_0x39e0bb[_0x56a7b6]?_0x5e879c&&(_0x4f46ae++,_0x5e879c=!0x1):(_0x4f46ae++,_0x5e879c=!0x0),_0xea2e3a['set'](_0x39e0bb['id'],_0x4f46ae);for(let _0x170b4e=0x0;_0x170b4e<_0x41db7b['length'];_0x170b4e++){if('isRemoved'==_0x56a7b6&&_0x41db7b[_0x170b4e]['isAdded']||'isAdded'==_0x56a7b6&&_0x41db7b[_0x170b4e]['isRemoved'])continue;if('text'==_0x41db7b[_0x170b4e]['type']){_0x41db7b[_0x170b4e]['distance']=0x0;continue;}const _0x52f9f2=_0xea2e3a['get'](_0x41db7b[_0x170b4e]['pairId']),_0xba2b54=_0xea2e3a['get'](_0x41db7b[_0x170b4e]['id']);_0x41db7b[_0x170b4e]['distance']=_0x52f9f2-_0xba2b54;}}['_getRevisionsRange'](_0x565f69,_0x49ee98,_0xf6c75f=!0x1){const _0x1eb3b7=[];let _0x57a48d=this['repository']['getIndex'](_0x565f69),_0x5b167d=this['repository']['getIndex'](_0x49ee98);for(-0x1==_0x5b167d&&(_0x5b167d=this['repository']['_revisions']['length'],_0xf6c75f=!0x1);_0x57a48d<_0x5b167d;)_0x1eb3b7['push'](this['repository']['getRevision'](_0x57a48d)),_0x57a48d++;return _0xf6c75f&&_0x1eb3b7['push'](this['repository']['getRevision'](_0x57a48d)),_0x1eb3b7;}['_threeWayMerge'](_0x5762c4,_0x12d361,_0x59e4fb,_0x3040e6){const _0x15e1d9=this['editor']['model']['schema'];let _0x238a1c=_0x12d361;for(;_0x5762c4[_0x238a1c]&&_0x5762c4[_0x238a1c]['isAdded'];)_0x238a1c++;let _0x5d31cb=_0x3040e6;for(;_0x59e4fb[_0x5d31cb]&&_0x59e4fb[_0x5d31cb]['isRemoved'];)_0x5d31cb++;_0x3d093e(_0x5762c4,_0x12d361,_0x238a1c),_0x3d093e(_0x59e4fb,_0x3040e6,_0x5d31cb);const _0x5bf2d8=_0x59e4fb['slice'](_0x3040e6,_0x5d31cb)['concat'](_0x5762c4['slice'](_0x12d361,_0x238a1c));return _0x5bf2d8['sort']((_0x4b182f,_0x216dcb)=>_0x4b182f['side']!=_0x216dcb['side']?_0x4b182f['side']-_0x216dcb['side']:_0x4b182f['level']!=_0x216dcb['level']?_0x4b182f['level']-_0x216dcb['level']:_0x4b182f['distance']!=_0x216dcb['distance']?_0x216dcb['distance']-_0x4b182f['distance']:!!_0x4b182f['isAdded']!=!!_0x216dcb['isAdded']?-0x1==_0x4b182f['side']||0x0==_0x4b182f['side']?_0x4b182f['isAdded']?-0x1:0x1:_0x4b182f['isAdded']?0x1:-0x1:_0x4b182f['index']-_0x216dcb['index']),{'commonTape':_0x5bf2d8,'iEnd':_0x238a1c,'jEnd':_0x5d31cb};function _0x3d093e(_0x238160,_0x15239a,_0x31c355){let _0x53c8c4=-0x1,_0x20f386=Number['POSITIVE_INFINITY'],_0x2878fe=!0x0;for(let _0x1e6a13=_0x15239a;_0x1e6a13<_0x31c355;_0x1e6a13++)if(_0x15e1d9['isInline'](_0x238160[_0x1e6a13]['item'])||(_0x2878fe=!0x1),_0x238160[_0x1e6a13]['item']['startIndex']<_0x15239a&&(_0x53c8c4=_0x1e6a13),_0x238160[_0x1e6a13]['item']['endIndex']>=_0x31c355){_0x20f386=_0x1e6a13;break;}_0x2878fe&&(_0x53c8c4=_0x31c355-0x1);for(let _0x42a65b=_0x15239a;_0x42a65b<_0x31c355;_0x42a65b++)_0x238160[_0x42a65b]['side']=_0x42a65b<=_0x53c8c4?-0x1:_0x42a65b<_0x20f386?0x0:0x1,_0x238160[_0x42a65b]['index']=_0x42a65b;let _0x5c532b=0x0;for(let _0x3400f9=_0x15239a;_0x3400f9<=_0x53c8c4;_0x3400f9++)0x0==_0x238160[_0x3400f9]['distance']?_0x238160[_0x3400f9]['level']=_0x5c532b:(_0x5c532b++,_0x238160[_0x3400f9]['level']=_0x5c532b,_0x5c532b++);for(let _0x15e755=_0x15239a;_0x15e755<_0x31c355;_0x15e755++)0x0==_0x238160[_0x15e755]['side']&&(_0x238160[_0x15e755]['level']=_0x5c532b);_0x5c532b=0x0;for(let _0x9253fc=_0x31c355-0x1;_0x9253fc>=_0x20f386;_0x9253fc--)0x0==_0x238160[_0x9253fc]['distance']?_0x238160[_0x9253fc]['level']=_0x5c532b:(_0x5c532b--,_0x238160[_0x9253fc]['level']=_0x5c532b,_0x5c532b--);}}['_fixObsoleteTags'](_0x925ba3){const _0x440658=new Map(),_0x1031a4=this['editor']['model']['schema'];for(let _0x59f3e8=0x1;_0x59f3e8<_0x925ba3['length'];_0x59f3e8++){let _0x27be16,_0x37f499,_0x5e9331;const _0x3ee1c5=_0x925ba3[_0x59f3e8],_0x5116e9=_0x925ba3[_0x59f3e8-0x1];if('text'==_0x3ee1c5['type'])continue;if(_0x3ee1c5['type']!=_0x5116e9['type'])continue;if(!_0x1031a4['isBlock'](_0x5116e9['item'])||_0x1031a4['isLimit'](_0x5116e9['item']))continue;if(!_0x1031a4['isBlock'](_0x3ee1c5['item'])||_0x1031a4['isLimit'](_0x3ee1c5['item']))continue;if((_0x925ba3[_0x59f3e8]['isAdded']||_0x925ba3[_0x59f3e8]['isAddSuggestion'])&&_0x925ba3[_0x59f3e8-0x1]['isRemoved'])_0x27be16=_0x925ba3[_0x59f3e8],_0x37f499=_0x925ba3[_0x59f3e8-0x1],_0x5e9331=_0x59f3e8-0x1;else{if(!_0x925ba3[_0x59f3e8]['isRemoved']||!_0x925ba3[_0x59f3e8-0x1]['isAdded']&&!_0x925ba3[_0x59f3e8-0x1]['isAddSuggestion'])continue;_0x27be16=_0x925ba3[_0x59f3e8-0x1],_0x37f499=_0x925ba3[_0x59f3e8],_0x5e9331=_0x59f3e8;}const _0x2d552f=_0x27be16['level']==_0x37f499['level'],_0x298218=Math['abs'](_0x27be16['level'])<Math['abs'](_0x37f499['level'])&&0x0==_0x37f499['distance'];(_0x2d552f||_0x298218)&&(_0x440658['set'](_0x37f499['id'],_0x27be16['id']),_0x925ba3['splice'](_0x5e9331,0x1),_0x59f3e8--,_0x27be16['isAdded']=!0x1);}for(let _0x3ce4af=0x0;_0x3ce4af<_0x925ba3['length'];_0x3ce4af++)_0x440658['has'](_0x925ba3[_0x3ce4af]['pairId'])&&(_0x925ba3[_0x3ce4af]['pairId']=_0x440658['get'](_0x925ba3[_0x3ce4af]['pairId']));}['_removeMissingPairs'](_0x147b6e){const _0x2c6752=new Set(_0x147b6e['map'](_0x2710bc=>_0x2710bc['id']));for(let _0x1ee22c=0x0;_0x1ee22c<_0x147b6e['length'];_0x1ee22c++)_0x2c6752['has'](_0x147b6e[_0x1ee22c]['pairId'])||0x0==_0x147b6e[_0x1ee22c]['distance']||(_0x147b6e[_0x1ee22c]['isIncorrect']=!0x0);return _0x147b6e['filter'](_0x339ccd=>!_0x339ccd['isIncorrect']);}['_markMismatchedRemovedTags'](_0x297004){const _0x497654=new Set();for(let _0x54b44c=0x0;_0x54b44c<_0x297004['length'];_0x54b44c++){if(_0x497654['has'](_0x297004[_0x54b44c]['id'])&&_0x297004[_0x54b44c]['isRemoved']&&(_0x297004[_0x54b44c]['isIncorrect']=!0x0),_0x297004[_0x54b44c]['isIncorrect'])continue;if(0x0==_0x297004[_0x54b44c]['distance'])continue;if('elementStart'!=_0x297004[_0x54b44c]['type'])continue;if(null==_0x297004[_0x54b44c]['pairId'])continue;let _0x39bb6f=_0x54b44c+0x1,_0x1d19e1=0x0;for(;_0x297004[_0x39bb6f]['id']!=_0x297004[_0x54b44c]['pairId'];)'elementStart'==_0x297004[_0x39bb6f]['type']?_0x1d19e1++:'elementEnd'==_0x297004[_0x39bb6f]['type']&&_0x1d19e1--,_0x39bb6f++;if(0x0!=_0x1d19e1){if(_0x297004[_0x54b44c]['isRemoved'])_0x297004[_0x54b44c]['isIncorrect']=!0x0;else{for(;_0x39bb6f!=_0x54b44c;)_0x297004[_0x39bb6f]['isRemoved']&&0x0!=_0x297004[_0x39bb6f]['distance']&&(_0x297004[_0x39bb6f]['isIncorrect']=!0x0,_0x497654['add'](_0x297004[_0x39bb6f]['pairId'])),_0x39bb6f--;}}}return _0x297004['filter'](_0x154cd4=>!_0x154cd4['isIncorrect']);}['_removeUnsupportedChanges'](_0x2412e1){const _0x397b02=this['editor']['model']['schema'];for(let _0x57c9c8=0x0;_0x57c9c8<_0x2412e1['length'];_0x57c9c8++){if(!(_0x2412e1[_0x57c9c8]['isAdded']||_0x2412e1[_0x57c9c8]['isAddSuggestion']||_0x2412e1[_0x57c9c8]['isRemoved']||_0x2412e1[_0x57c9c8]['isRemoveSuggestion']))continue;if(0x0==_0x2412e1[_0x57c9c8]['distance'])continue;const _0x222f5e=_0x2412e1[_0x57c9c8]['item'];_0x397b02['isBlock'](_0x222f5e)||_0x397b02['isLimit'](_0x222f5e)||(_0x2412e1[_0x57c9c8]['isAdded']&&delete _0x2412e1[_0x57c9c8]['isAdded'],_0x2412e1[_0x57c9c8]['isAddSuggestion']&&delete _0x2412e1[_0x57c9c8]['isAddSuggestion'],_0x2412e1[_0x57c9c8]['isRemoveSuggestion']&&delete _0x2412e1[_0x57c9c8]['isRemoveSuggestion'],_0x2412e1[_0x57c9c8]['isRemoved']&&(_0x2412e1[_0x57c9c8]['isIncorrect']=!0x0));}return _0x2412e1['filter'](_0x10935d=>!_0x10935d['isIncorrect']);}['_makeModelFromTape'](_0x14ea90,_0x3f94ff,_0x54b27b){const _0x3270ed=new mt(),_0x4d491=[],_0x5ca167=new Map(),_0x4a568a=this['editor']['model'],_0xc4c02f=_0x4a568a['schema'],_0x2548ca=[_0x3270ed],_0x405c98={},_0x4f2566={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3a277d=null;const _0x3c10a8=[0x0];for(let _0x2a105e=0x0;_0x2a105e<_0x14ea90['length'];_0x2a105e++)if('elementStart'===_0x14ea90[_0x2a105e]['type']){_0x14ea90[_0x2a105e]['previousPosition']=_0x4a568a['createPositionFromPath'](_0x3270ed,_0x3c10a8);const _0x16967e=new ft(_0x14ea90[_0x2a105e]['item']['name'],_0x14ea90[_0x2a105e]['item']['getAttributes']());_0x2548ca[0x0]['_appendChild'](_0x16967e),_0x3c10a8['push'](0x0),_0x2548ca['unshift'](_0x16967e),_0x14ea90[_0x2a105e]['nextPosition']=_0x4a568a['createPositionFromPath'](_0x3270ed,_0x3c10a8);}else'elementEnd'===_0x14ea90[_0x2a105e]['type']?(_0x2548ca['shift'](),_0x14ea90[_0x2a105e]['previousPosition']=_0x4a568a['createPositionFromPath'](_0x3270ed,_0x3c10a8),_0x3c10a8['pop'](),_0x3c10a8[_0x3c10a8['length']-0x1]++,_0x14ea90[_0x2a105e]['nextPosition']=_0x4a568a['createPositionFromPath'](_0x3270ed,_0x3c10a8)):(_0x14ea90[_0x2a105e]['previousPosition']=_0x4a568a['createPositionFromPath'](_0x3270ed,_0x3c10a8),_0x3a277d?_0x3a277d['_data']+=_0x14ea90[_0x2a105e]['item']['data']:_0x3a277d=new wt(_0x14ea90[_0x2a105e]['item']['data'],_0x14ea90[_0x2a105e]['item']['getAttributes']()),_0x14ea90[_0x2a105e+0x1]&&'text'===_0x14ea90[_0x2a105e+0x1]['type']&&_0x4e6e12(_0x3a277d,_0x14ea90[_0x2a105e+0x1]['item'])||(_0x2548ca[0x0]['_appendChild'](_0x3a277d),_0x3a277d=null),_0x3c10a8[_0x3c10a8['length']-0x1]+=_0x14ea90[_0x2a105e]['item']['offsetSize'],_0x14ea90[_0x2a105e]['nextPosition']=_0x4a568a['createPositionFromPath'](_0x3270ed,_0x3c10a8));for(let _0x467897=0x0;_0x467897<_0x14ea90['length'];_0x467897++){const _0x401293=_0x14ea90[_0x467897]['previousPosition'],_0x560301=_0x14ea90[_0x467897]['nextPosition'];for(const _0x28f1b9 of _0x14ea90[_0x467897]['markersStart'])_0x5ca167['set'](_0x28f1b9,{'start':_0x401293,'end':null});_0x2821c7('isRemoveSuggestion',_0x467897,_0x401293,_0x560301),_0x2821c7('isAddSuggestion',_0x467897,_0x401293,_0x560301),_0x2821c7('isRemoved',_0x467897,_0x401293,_0x560301),_0x2821c7('isAdded',_0x467897,_0x401293,_0x560301);for(const _0x526131 of _0x14ea90[_0x467897]['markersEnd']){_0x5ca167['get'](_0x526131)['end']=_0x560301;}}for(const [_0x244c5a,_0x279569]of _0x5ca167){const _0x1d7cd3=this['editor']['model']['createRange'](_0x279569['start'],_0x279569['end']);_0x3270ed['markers']['set'](_0x244c5a,_0x1d7cd3);}return _0x4d491['sort']((_0x4ee72a,_0xc3f212)=>{const _0x3dd17e=_0x3270ed['markers']['get']('revision:'+_0x4ee72a['id']),_0x20ace3=_0x3270ed['markers']['get']('revision:'+_0xc3f212['id']);return _0x3dd17e['start']['isBefore'](_0x20ace3['start'])?-0x1:_0x3dd17e['start']['isAfter'](_0x20ace3['start'])?0x1:_0x3dd17e['end']['isBefore'](_0x20ace3['end'])?-0x1:_0x3dd17e['end']['isAfter'](_0x20ace3['end'])?0x1:'add'===_0x4ee72a['type']?-0x1:0x1;}),{'root':_0x3270ed,'changes':_0x4d491};function _0x2821c7(_0x4b97ed,_0x5a3dd0,_0x211372,_0x4b92bf){const _0x56ce5c=!!_0x14ea90[_0x5a3dd0][_0x4b97ed],_0x44aa4f=_0x56ce5c?_0x14ea90[_0x5a3dd0][_0x4b97ed]['userId']:null,_0x2f519b=_0x5a3dd0===_0x14ea90['length']-0x1,_0x1d08d8=_0x4f2566[_0x4b97ed][0x0],_0x1b444a=_0xc4c02f['isObject'](_0x14ea90[_0x5a3dd0]['item']);!_0x405c98[_0x4b97ed]&&_0x56ce5c?_0x405c98[_0x4b97ed]={'start':_0x211372,'tapeItem':_0x14ea90[_0x5a3dd0],'userId':_0x44aa4f,'type':_0x4b97ed}:_0x405c98[_0x4b97ed]&&!_0x56ce5c?(_0x405c98[_0x4b97ed]['end']=_0x211372,_0x457d44(_0x405c98[_0x4b97ed]),_0x405c98[_0x4b97ed]=null):_0x405c98[_0x4b97ed]&&_0x56ce5c&&_0x405c98[_0x4b97ed]['userId']!==_0x44aa4f&&(_0x405c98[_0x4b97ed]['end']=_0x211372,_0x1d08d8&&_0x1d08d8['userId']===_0x405c98[_0x4b97ed]['userId']||_0x457d44(_0x405c98[_0x4b97ed]),_0x405c98[_0x4b97ed]={'start':_0x211372,'tapeItem':_0x14ea90[_0x5a3dd0],'userId':_0x44aa4f,'type':_0x4b97ed}),_0x405c98[_0x4b97ed]&&_0x1b444a&&('elementStart'!==_0x14ea90[_0x5a3dd0]['type']||_0x1d08d8&&_0x1d08d8['userId']===_0x44aa4f||_0x4f2566[_0x4b97ed]['unshift']({'userId':_0x44aa4f,'object':_0x14ea90[_0x5a3dd0]['item'],'change':_0x405c98[_0x4b97ed]}),'elementEnd'===_0x14ea90[_0x5a3dd0]['type']&&_0x1d08d8&&_0x1d08d8['object']===_0x14ea90[_0x5a3dd0]['item']&&(_0x4f2566[_0x4b97ed]['shift'](),_0x405c98[_0x4b97ed]=_0x1d08d8['change'])),_0x405c98[_0x4b97ed]&&_0x2f519b&&(_0x405c98[_0x4b97ed]['end']=_0x4b92bf,_0x457d44(_0x405c98[_0x4b97ed]),_0x405c98[_0x4b97ed]=null);}function _0x457d44({start:_0x50a781,end:_0x3e1706,tapeItem:_0x1eb16a,userId:_0x211a8f,type:_0x14bb2b}){const _0x2153b8=_0x1eb16a['item'],_0x251e85=_0x4a568a['schema']['isBlock'](_0x2153b8)&&!_0x4a568a['schema']['isLimit'](_0x2153b8),_0x881175=_0x50a781['nodeAfter']==_0x3e1706['parent']&&_0x3e1706['isAtStart'];if(_0x251e85&&_0x881175)return;const _0x53fd5f=_0x4a568a['createRange'](_0x50a781,_0x3e1706),_0x579870=_0x3f94ff['get'](_0x211a8f),_0x4eba0c=new r({'author':_0x579870,'type':'isAdded'==_0x14bb2b||'isAddSuggestion'==_0x14bb2b?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x14bb2b||'isRemoveSuggestion'==_0x14bb2b},'createdAt':new Date(),'rootName':_0x54b27b});_0x4d491['push'](_0x4eba0c),_0x3270ed['markers']['set']('revision:'+_0x4eba0c['id'],_0x53fd5f);}function _0x4e6e12(_0x50df70,_0x2d3b17){const _0x171c7d=_0x50df70['getAttributes'](),_0x4f372b=_0x2d3b17['getAttributes']();for(const _0xb9647f of _0x171c7d){if(_0xb9647f[0x1]!==_0x2d3b17['getAttribute'](_0xb9647f[0x0]))return!0x1;_0x4f372b['next']();}return _0x4f372b['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0xdfdbde=>{const _0x44d5e5=_0xdfdbde['markerName']['split'](':')[0x1],_0xc14ae4=this['_getChangeFromId'](_0x44d5e5);if(!_0xc14ae4)return null;const _0x4329f9='add'==_0xc14ae4['type']?'insertion':'deletion',_0x13f26d=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4329f9];return _0xc14ae4['data']['isSuggestion']&&_0x13f26d['push']('ck-suggestion-marker-'+_0x4329f9+'-new'),this['activeChange']==_0xc14ae4&&_0x13f26d['push']('ck-suggestion-marker--active'),{'classes':_0x13f26d,'attributes':{'data-change-id':_0x44d5e5}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x1cfe6f=>{_0x1cfe6f['on']('element:pre',(_0x6d1e06,_0x25985f,_0x416673)=>{const _0x38926d=_0x25985f['viewItem']['getChild'](0x0);if(!_0x38926d||!_0x38926d['is']('element','code'))return;if(!_0x416673['consumable']['consume'](_0x38926d,{'attributes':['vid_start','vid_end']}))return;const _0x5b544d=_0x25985f['modelRange']['start']['nodeAfter'];_0x416673['writer']['setAttribute']('vid_start',_0x38926d['getAttribute']('vid_start'),_0x5b544d),_0x416673['writer']['setAttribute']('vid_end',_0x38926d['getAttribute']('vid_end'),_0x5b544d);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x576eda=>{_0x576eda['on']('element',(_0x965c01,_0x14a4a,_0x1f9da1)=>{if(!_0x1f9da1['consumable']['consume'](_0x14a4a['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x14a4a['modelRange']['isCollapsed'])return;const _0x40d8db=_0x14a4a['modelRange']['start']['nodeAfter'];_0x40d8db['hasAttribute']('vid_start')||_0x40d8db['hasAttribute']('vid')||(_0x1f9da1['writer']['setAttribute']('vid_start',_0x14a4a['viewItem']['getAttribute']('vid_start'),_0x40d8db),_0x1f9da1['writer']['setAttribute']('vid_end',_0x14a4a['viewItem']['getAttribute']('vid_end'),_0x40d8db));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x2c5811=>_0x2c5811['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x1f06e3,[,_0x360e4d])=>{['vid_start','vid_end','vid']['includes'](_0x360e4d)&&(_0x1f06e3['return']=!0x0,_0x1f06e3['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1835d8=>{_0x1835d8['on']('attribute:vid',(_0x2b1387,_0x5074dc,_0x17bbb0)=>{if('\x20'!=_0x5074dc['item']['data']||_0x5074dc['item']['parent']['maxOffset']>0x1)return;if(!_0x17bbb0['consumable']['consume'](_0x5074dc['item'],_0x2b1387['name']))return;const _0x519119=_0x17bbb0['writer'],_0x55748b=_0x17bbb0['mapper']['toViewRange'](_0x5074dc['range']);_0x519119['wrap'](_0x55748b,_0x519119['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x3250b9){const _0xf4100e=_0x3250b9['plugins']['get']('RevisionViewer');return(_0x4b6d70,_0x2e9d8f,_0x53b973)=>{const _0xb3b48b=_0x2e9d8f['markerName']['split'](':')[0x1],_0xbd9a29=_0xf4100e['_getChangeFromId'](_0xb3b48b);if(!_0xbd9a29)return null;const _0x8d703a='add'==_0xbd9a29['type']?'split':'merge';if(!_0x53b973['consumable']['test'](_0x2e9d8f['markerRange'],_0x4b6d70['name']))return;const _0x247348=_0x2e9d8f['markerRange']['getWalker'](),_0x886d39=_0x2e9d8f['markerRange']['start'],_0x1d5a19=_0x3250b9['model']['schema'];let _0x557aae=null,_0xaa0344=null,_0x3dcc1c=!0x1,_0x2799c4=!0x1;for(const _0x2a6230 of _0x247348){const _0x5cfe86=_0x2a6230['item'];_0x3dcc1c=_0x3dcc1c||_0x1d5a19['isContent'](_0x5cfe86);const _0x431645=_0x53b973['mapper']['toViewElement'](_0x5cfe86);if(_0x431645&&_0x431645['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2a6230['type']&&(_0x1d5a19['isBlock'](_0x5cfe86)&&!_0x1d5a19['isLimit'](_0x5cfe86)&&(_0x5cfe86['nextSibling']||_0x886d39['isAtEnd']?_0x557aae&&_0x557aae['parent']==_0x5cfe86||(_0x557aae=_0x5cfe86,_0x401007(_0x2a6230['previousPosition']),_0x2799c4=!0x0):_0xaa0344=_0xaa0344||_0x2a6230['previousPosition']));}function _0x401007(_0x1c768c){const _0x2a568e=_0x53b973['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x8d703a}),_0x62e6da=_0x53b973['mapper']['toViewPosition'](_0x1c768c);_0xbd9a29['data']['isSuggestion']&&_0x53b973['writer']['addClass']('ck-suggestion-marker-'+_0x8d703a+'-new',_0x2a568e),_0xf4100e['activeChange']==_0xbd9a29&&_0x53b973['writer']['addClass']('ck-suggestion-marker--active',_0x2a568e),_0x53b973['writer']['insert'](_0x62e6da,_0x2a568e),_0x53b973['mapper']['bindElementToMarker'](_0x2a568e,_0x2e9d8f['markerName']);}_0x3dcc1c||_0x2799c4||!_0xaa0344||_0x401007(_0xaa0344);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x54fc91,_0x2d7d8d,_0x389b99)=>{const _0x1bcd64=_0x389b99['mapper']['markerNameToElements'](_0x2d7d8d['markerName']);if(_0x1bcd64){for(const _0x37a82b of _0x1bcd64)(_0x37a82b['hasClass']('ck-suggestion-marker-split')||_0x37a82b['hasClass']('ck-suggestion-marker-merge'))&&(_0x389b99['mapper']['unbindElementFromMarkerName'](_0x37a82b,_0x2d7d8d['markerName']),_0x389b99['writer']['remove'](_0x37a82b));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x4ae086,_0x2c14c4,_0x54b9b2)=>{const _0x50dce0=_0x2c14c4['markerName']['split'](':')[0x1],_0x5c90c8=this['_getChangeFromId'](_0x50dce0);if(!_0x5c90c8)return null;const _0x365186='add'==_0x5c90c8['type']?'split':'merge';if(_0x54b9b2['consumable']['test'](_0x2c14c4['markerRange'],_0x4ae086['name']))for(const _0x145c0b of _0x2c14c4['markerRange']['getItems']()){if(!_0x145c0b['is']('element','softBreak'))continue;const _0x3a219e=_0x54b9b2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x365186}),_0x404c2c=_0x54b9b2['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x145c0b));_0x5c90c8['data']['isSuggestion']&&_0x54b9b2['writer']['addClass']('ck-suggestion-marker-'+_0x365186+'-new',_0x3a219e),this['activeChange']==_0x5c90c8&&_0x54b9b2['writer']['addClass']('ck-suggestion-marker--active',_0x3a219e),_0x54b9b2['writer']['insert'](_0x404c2c,_0x3a219e),_0x54b9b2['mapper']['bindElementToMarker'](_0x3a219e,_0x2c14c4['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x351995=>{for(const _0x479dad of this['editor']['model']['document']['getRootNames']()){const _0x2da9de=this['editor']['model']['document']['getRoot'](_0x479dad),_0x33b2da=this['editor']['editing']['view']['document']['getRoot'](_0x479dad);if(_0x33b2da){const _0x47f0c8=_0x2da9de['getAttribute']('revisionHistoryAttachChange');if(_0x351995['removeAttribute']('data-change-id',_0x33b2da),_0x351995['removeClass']('ck-revision-history-root-add',_0x33b2da),_0x351995['removeClass']('ck-revision-history-root-remove',_0x33b2da),_0x351995['removeClass']('ck-revision-history-root--active',_0x33b2da),_0x47f0c8){const _0x229935=this['_getChangeFromId'](_0x47f0c8);if(!_0x229935)return null;_0x351995['setAttribute']('data-change-id',_0x47f0c8,_0x33b2da),_0x351995['addClass']('ck-revision-history-root-'+_0x229935['type'],_0x33b2da),this['activeChange']==_0x229935&&_0x351995['addClass']('ck-revision-history-root--active',_0x33b2da);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x19ce70=>'revision-comment:'+_0x19ce70,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x2e9367=>'revision-suggestion:'+_0x2e9367,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2e9f86=>({'name':'suggestion:'+_0x2e9f86,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0xc31319=>{const _0x1baded=_0xc31319['markerName']['split'](':')[0x1];return'insertion'!=_0x1baded&&'deletion'!=_0x1baded?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x1baded]};}}),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',(_0x9dc172,_0x17e7d6,_0x22e2ff)=>{const _0x46774b=_0x22e2ff['mapper']['markerNameToElements'](_0x17e7d6['markerName']);if(_0x46774b){for(const _0x1a4225 of _0x46774b)_0x1a4225['is']('uiElement')&&(_0x22e2ff['mapper']['unbindElementFromMarkerName'](_0x1a4225,_0x17e7d6['markerName']),_0x22e2ff['writer']['remove'](_0x1a4225));}},{'priority':'high'});}['_getChangeFromId'](_0x58f6a2){return this['_changeIdToChange']['get'](_0x58f6a2);}['_getViewForChange'](_0x3a021e){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x3a021e),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x23dade,_0x5e3dc3,_0x343e60,_0x227a74)=>{_0x227a74&&this['_balloon']['remove'](_0x227a74),_0x343e60&&(this['_balloon']['add']({'view':_0x343e60,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x35532b=this['editor']['editing'],_0xf3a8eb=this['_getChangeFromId'](_0x343e60['changeId']);let _0x3df7c2;if(_0xf3a8eb['data']['isOnRoot']){const _0xe307e7=_0x35532b['view']['getDomRoot'](_0xf3a8eb['rootName']);_0x3df7c2=Array['from'](_0xe307e7['getClientRects']());}else{const _0x31ab47=this['editor']['model']['markers']['get']('revision:'+_0x343e60['changeId']);_0x3df7c2=Array['from'](_0x35532b['mapper']['markerNameToElements'](_0x31ab47['name']))['map'](_0x460d1a=>_0x35532b['view']['domConverter']['mapViewToDom'](_0x460d1a))['map'](_0xa4ad00=>Array['from'](_0xa4ad00['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x3df7c2[0x0];return _0x3df7c2['find'](_0x542b44=>_0x542b44['top']-0x3<=this['_activeViewTarget']['y']&&_0x542b44['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x542b44['left']-0x3<=this['_activeViewTarget']['x']&&_0x542b44['right']+0x3>=this['_activeViewTarget']['x'])||_0x3df7c2[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x5899f5,_0x1e5985,_0xc7c3ac,_0x3f567c)=>{this['activeView']=_0xc7c3ac?this['_getViewForChange'](_0xc7c3ac):null,this['editor']['model']['change'](()=>{const _0x283654=this['editor']['editing'];_0x3f567c&&(_0x3f567c['data']['isOnRoot']?_0x283654['view']['change'](_0x501af4=>{_0x501af4['removeClass']('ck-revision-history-root--active',_0x283654['view']['document']['getRoot'](_0x3f567c['rootName']));}):_0x283654['reconvertMarker']('revision:'+_0x3f567c['id'])),_0xc7c3ac&&(_0xc7c3ac['data']['isOnRoot']?_0x283654['view']['change'](_0x39e990=>{_0x39e990['addClass']('ck-revision-history-root--active',_0x283654['view']['document']['getRoot'](_0xc7c3ac['rootName']));}):_0x283654['reconvertMarker']('revision:'+_0xc7c3ac['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x5c631a,_0x3dd89c)=>{if(this['activeChange'])return;const _0x574747=this['_findChangeIdFromDomTarget'](_0x3dd89c['target']),_0xefb341=this['_changeIdToChange']['get'](_0x574747);_0xefb341?(this['_activeViewTarget']={'x':_0x3dd89c['domEvent']['x'],'y':_0x3dd89c['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0xefb341)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x406c3a,_0x2fbb34)=>{const _0x2bfbe1=this['_findChangeIdFromDomTarget'](_0x2fbb34['target']),_0x33b6ce=this['_changeIdToChange']['get'](_0x2bfbe1);_0x33b6ce?(this['_activeViewTarget']={'x':_0x2fbb34['domEvent']['x'],'y':_0x2fbb34['domEvent']['y']},_0x33b6ce===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x33b6ce):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x23f112){do{const _0x37c89c=_0x23f112['getAttribute']('data-change-id');if(_0x37c89c)return _0x37c89c;_0x23f112=_0x23f112['parent'];}while(_0x23f112);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x277059=>{for(const _0x4fb510 of this['editor']['model']['markers'])_0x277059['removeMarker'](_0x4fb510);});}}function Z(_0x4560ce,_0x507329){return(_0x2c1486,_0x2a049c,_0xe596b6)=>{if(!_0xe596b6['consumable']['test'](_0x2a049c['markerRange'],_0x2c1486['name']))return;const _0x5e829f=_0x2a049c['markerRange']['getWalker'](),_0x12947f=_0x2a049c['markerRange']['start'],_0x224f74=_0x4560ce['model']['schema'];let _0x333e48=null,_0x575d42=null,_0x556499=!0x1,_0x1b2258=!0x1;for(const _0x3d4870 of _0x5e829f){const _0x269d61=_0x3d4870['item'];_0x556499=_0x556499||_0x224f74['isContent'](_0x269d61);const _0x2856bd=_0xe596b6['mapper']['toViewElement'](_0x269d61);if(_0x2856bd&&_0x2856bd['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3d4870['type']&&(_0x224f74['isBlock'](_0x269d61)&&!_0x224f74['isLimit'](_0x269d61)&&(_0x269d61['nextSibling']||_0x12947f['isAtEnd']?_0x333e48&&_0x333e48['parent']==_0x269d61||(_0x333e48=_0x269d61,_0x1a7d3c(_0x3d4870['previousPosition']),_0x1b2258=!0x0):_0x575d42=_0x575d42||_0x3d4870['previousPosition']));}function _0x1a7d3c(_0x362363){const _0x515cca=_0xe596b6['mapper']['toViewPosition'](_0x362363),_0x195938=_0xe596b6['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x507329});_0xe596b6['writer']['insert'](_0x515cca,_0x195938),_0xe596b6['mapper']['bindElementToMarker'](_0x195938,_0x2a049c['markerName']);}_0x556499||_0x1b2258||!_0x575d42||_0x1a7d3c(_0x575d42);};}class _t extends _0x1001ce{constructor(_0x100c6a){super(_0x100c6a);const _0x2e458c=_0x100c6a['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x2e458c,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2e458c,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x3d9dc4=this['editor'],_0x310f65=_0x3d9dc4['plugins']['get'](d),_0x5eb36b=_0x310f65['isReady']?_0x310f65['diff']['newRevisionId']:null;_0x3d9dc4['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5eb36b);}['refresh'](){const {isReady:_0x434ec1,isEnabled:_0x38c9a5,repository:_0x3f362e,diff:_0x5c493b}=this['editor']['plugins']['get'](d),_0x288af1=_0x5c493b&&_0x3f362e['getLaterVisibleRevision'](_0x5c493b['newRevisionId']);this['isEnabled']=_0x434ec1&&_0x38c9a5&&Boolean(_0x288af1);}}class yt extends _0x1001ce{['_step'];constructor(_0x4100bd,{direction:_0x29fbc9}){super(_0x4100bd);const _0xf69b81=_0x4100bd['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x29fbc9?0x1:-0x1,this['listenTo'](_0xf69b81,'change:isReady',()=>this['refresh']()),this['listenTo'](_0xf69b81,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0xf69b81,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x52d1fd=this['editor'],_0x26ff06=_0x52d1fd['plugins']['get'](d),{isNavigationMode:_0x1e19ab,currentChangeNumber:_0x152747}=_0x26ff06;let _0x3df060;if(_0x26ff06['activeChange']=_0x1e19ab?_0x26ff06['diff']['changes']['get'](_0x152747+this['_step']):_0x26ff06['diff']['changes']['first'],_0x26ff06['activeChange']['data']['isOnRoot'])_0x3df060=_0x52d1fd['editing']['view']['getDomRoot'](_0x26ff06['activeChange']['rootName']);else{const _0x169bd8=_0x52d1fd['model']['markers']['get']('revision:'+_0x26ff06['activeChange']['id']);_0x3df060=_0x216bee(_0x52d1fd['editing'],_0x169bd8);}_0x479610({'target':_0x3df060,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0xe29b75,currentChangeNumber:_0x4a9b11,numberOfChanges:_0x27ee2a,isReady:_0x3aabfe,isEnabled:_0x112217}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x112217&&_0x3aabfe&&_0x27ee2a)&&(!_0xe29b75||(0x1===this['_step']?_0x4a9b11<_0x27ee2a-0x1:_0x4a9b11>0x0));}}class _i extends _0x46e692{constructor(_0x86dd99){super(_0x86dd99);const _0x6a7534=this['bindTemplate'],_0xdca848=new _0x319a68(_0x86dd99),_0x588ea7=new _0x319a68(_0x86dd99);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',(_0x128db7,_0x16cf92)=>_0x128db7&&_0x16cf92>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x545497,_0x509851,_0xabf8e7,_0xaecac9)=>{if(!_0x545497)return m(_0x86dd99,'Loading...');if(!_0xabf8e7)return m(_0x86dd99,'No\x20changes');const _0x300789=m(_0x86dd99,'NUMBER_OF_CHANGES',_0xabf8e7);return _0xaecac9?m(_0x86dd99,'X_OF_Y_CHANGES',[_0x509851+0x1,_0xabf8e7]):_0x300789;}),_0xdca848['set']({'label':m(_0x86dd99,'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'}),_0x588ea7['set']({'label':m(_0x86dd99,'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'}),_0xdca848['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x588ea7['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0xdca848['on']('execute',()=>this['fire']('execute','backward')),_0x588ea7['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',_0x6a7534['if']('_isStatusLabelVisible','ck-hidden',_0x1d62dd=>!_0x1d62dd)]},'children':[{'text':_0x6a7534['to']('isNavigationMode',_0x4ae250=>_0x4ae250?m(_0x86dd99,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x86dd99,'Total')+':\x20')}]},{'text':_0x6a7534['to']('_statusText')}]},new _0x561d34(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0xdca848,_0x588ea7]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0xf0a0b{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x11696f=this['editor']['editing']['view'];_0x11696f['change'](_0x3b0592=>{for(const _0x58e5d5 of _0x11696f['document']['roots'])_0x3b0592['addClass'](ce,_0x58e5d5);});}['hide'](){const _0x3ff5d8=this['editor']['editing']['view'];_0x3ff5d8['change'](_0x2083de=>{for(const _0x3e4700 of _0x3ff5d8['document']['roots'])_0x2083de['removeClass'](ce,_0x3e4700);});}}class g extends _0xf0a0b{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x39f6d5=this['editor'],_0x32619f=_0x39f6d5['plugins']['get'](d),_0x47a6a2=_0x39f6d5['plugins']['get'](le);_0x39f6d5['ui']['componentFactory']['add']('exitToEditing',_0x4b1703=>{const _0x433bf1=new _0x319a68(_0x4b1703);return _0x433bf1['set']({'label':m(_0x4b1703,'Back\x20to\x20editing'),'icon':_0x580a31['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x433bf1,'execute',()=>{_0x39f6d5['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x433bf1;}),_0x39f6d5['ui']['componentFactory']['add']('restoreRevision',_0x3ed104=>{const _0xe1f605=new _0x319a68(_0x3ed104);return _0xe1f605['set']({'label':m(_0x3ed104,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0xe1f605['bind']('isEnabled')['to'](_0x39f6d5['commands']['get']('restoreRevision')),this['listenTo'](_0xe1f605,'execute',()=>_0x39f6d5['execute']('restoreRevision')),_0xe1f605;}),_0x39f6d5['ui']['componentFactory']['add']('changesNavigation',_0x57a23f=>{const _0x447dfa=new _i(_0x57a23f),_0x56ecb3=_0x39f6d5['commands']['get']('showPreviousChange'),_0x57ecae=_0x39f6d5['commands']['get']('showNextChange');return _0x447dfa['bind']('isBackwardNavigationEnabled')['to'](_0x56ecb3,'isEnabled'),_0x447dfa['bind']('isForwardNavigationEnabled')['to'](_0x57ecae,'isEnabled'),_0x447dfa['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x32619f),this['listenTo'](_0x447dfa,'execute',(_0x23a9b4,_0xe7b12d)=>{_0x39f6d5['execute']('forward'===_0xe7b12d?'showNextChange':'showPreviousChange');}),_0x447dfa;}),_0x47a6a2['show'](),_0x32619f['on']('change:isReady',(_0xe50d32,_0x5bedb8,_0x36bafd)=>{_0x36bafd?_0x47a6a2['hide']():_0x47a6a2['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x875d61,_0x5dc2e8){super(_0x875d61,_0x5dc2e8);const _0x55522f=this['bindTemplate'];this['set']({'label':m(_0x875d61,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x875d61,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x55522f['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 _0x494d43=this['fieldView']['element'];this['_tooltipString']=_0x494d43['scrollWidth']>_0x494d43['clientWidth']&&_0x494d43['value']||'';}}class ti extends _0x46e692{constructor(_0x386500,_0x20bfc1,_0x4903ae){super(_0x386500);const _0x2fd8b6=new _0x3f11b3();_0x2fd8b6['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 _0x5be7fa=['ck','ck-revision-history-sidebar__revision-author'];_0x4903ae&&_0x5be7fa['push']('ck-revision-history-sidebar__revision-author_creator');const _0x44af19=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x386500,_0x4903ae?'Revision\x20creator':'Revision\x20author')},'children':[_0x2fd8b6,_0x20bfc1['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x5be7fa},'children':_0x44af19});}}function ni(_0x9627d1,_0x17c9e2){const _0x5de099=_0x9627d1['bindTemplate'],_0x3a2d16=_0x9627d1['locale'],_0x468260=_0x161ce7(_0x3a2d16);_0x468260['panelPosition']='sw';const _0x1bd3aa=function(_0x55c65c,_0x21bc49){const _0xda750d=function(_0xe3a83d,_0x1f23a2){const _0x342409=_0xe3a83d['locale'],_0x29e60d={'Compare\x20against\x20selected':m(_0x342409,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x342409,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x342409,'Restore\x20this\x20revision')};return _0x1f23a2['map'](_0x55e022=>{const _0x8bfe5a=_0x29e60d[_0x55e022['name']];return _0x8bfe5a&&_0x8bfe5a!==_0x55e022['name']&&(_0x55e022['name']=_0x8bfe5a),_0x55e022;});}(_0x55c65c,_0x21bc49),_0xa4f7b7=new _0x5e4f58();for(const _0x5d9e3a of _0xda750d){const _0x3b4f96={'type':'button','model':new to({'label':_0x5d9e3a['name'],'class':_0x5d9e3a['class'],'withText':!0x0,'role':'menuitem','_action':_0x5d9e3a['action']})};_0x3b4f96['model']['bind']('isEnabled')['to'](_0x55c65c,'isActionsDropdownOpen',_0x121dc3=>'function'!=typeof _0x5d9e3a['isEnabled']||(!_0x121dc3||_0x5d9e3a['isEnabled'](_0x55c65c))),_0xa4f7b7['add'](_0x3b4f96);}return _0xa4f7b7;}(_0x9627d1,_0x17c9e2);return _0x9627d1['bind']('isActionsDropdownOpen')['to'](_0x468260,'isOpen'),_0x468260['buttonView']['set']({'label':m(_0x3a2d16,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x580a31['threeVerticalDots']}),_0x468260['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x5de099['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x5de099['to'](_0x12d924=>_0x12d924['stopPropagation']())}}),_0x468260['on']('execute',_0x39ff86=>{_0x9627d1['isReady']&&'function'==typeof _0x39ff86['source']['_action']&&_0x39ff86['source']['_action'](_0x9627d1);}),_0x3f681e(_0x468260,_0x1bd3aa,{'role':'menu'}),_0x468260['listenTo'](_0x9627d1,'change:isActionsDropdownOpen',(_0x2e3655,_0x13295f,_0x5acc05)=>{if(_0x5acc05)for(const _0xd4e684 of _0x468260['listView']['items']){const _0xd8c0b3=_0xd4e684['children']['first'],_0x3a10b9=_0x17c9e2['find'](_0x419cbb=>_0x419cbb['action']===_0xd8c0b3['_action'])['isVisible'];_0xd4e684['isVisible']=void 0x0===_0x3a10b9||_0x3a10b9(_0x9627d1);}}),_0x468260;}class ai extends/* #__PURE__ -- @preserve */
26
- _0xa3ae3f(_0x46e692){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x16ac29,_0x437ea0,_0x1b5a79,_0x418e7f){super(_0x16ac29);const _0x5d035f=this['bindTemplate'],_0x291794=function(_0xe64f0,_0x547374){const _0x52d063=Array['from'](_0x547374['authors'])['filter'](_0x3d5489=>_0x3d5489!=_0x547374['creator']);return _0x547374['creator']&&_0x52d063['unshift'](_0x547374['creator']),_0x52d063['map'](_0x33adfe=>new ti(_0xe64f0,_0x33adfe,_0x33adfe==_0x547374['creator']));}(_0x16ac29,_0x437ea0);this['id']=_0x437ea0['id'],this['_revision']=_0x437ea0,this['_requireRevisionName']=_0x418e7f,this['bind']('name','createdAt')['to'](_0x437ea0),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x244bd2=>{return _0x5d2fe2=_0x16ac29['uiLanguage'],(_0x251327=_0x244bd2)['toLocaleDateString'](_0x5d2fe2,{'month':'long','day':'numeric'})+',\x20'+_0x251327['toLocaleTimeString'](_0x5d2fe2,{'hour':'numeric','minute':'numeric'});var _0x5d2fe2,_0x251327;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x16ac29,_0x8c8f78),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x19d26d=>_0x19d26d||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x34f400,_0x56ee90)=>_0x34f400&&_0x56ee90),this['revisionActionsView']=_0x1b5a79&&_0x1b5a79['length']?ni(this,_0x1b5a79):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x5d035f['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x5d035f['if']('isEnabled','ck-disabled',_0x2193ba=>!_0x2193ba),_0x5d035f['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x5d035f['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x5d035f['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':_0x5d035f['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':_0x291794}]},this['revisionActionsView']],'on':{'click':_0x5d035f['to'](_0x2f94a0=>{_0x2f94a0['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x59ebd5=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x59ebd5,'change',()=>{this['_requireRevisionName']&&!_0x59ebd5['value']||this['fire']('setName',{'id':this['id'],'name':_0x59ebd5['value']}),_0x59ebd5['value']||(_0x59ebd5['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function di(_0xc2919b,_0x15c6e6){const _0x14969f=_0x1ecbea['fromJSDate'](_0xc2919b)['setLocale'](_0x15c6e6),_0x83801e=_0x1ecbea['local'](),_0x4d3171=_0x83801e['minus']({'days':0x1})['startOf']('day');let _0x4b7982,_0x2e51c7;return _0x14969f['hasSame'](_0x83801e,'day')?(_0x4b7982=_0x14969f['startOf']('day')['toJSDate'](),_0x2e51c7=_0x14969f['toRelativeCalendar']()):_0x14969f['hasSame'](_0x4d3171,'day')?(_0x4b7982=_0x4d3171['toJSDate'](),_0x2e51c7=_0x14969f['toRelativeCalendar']()):_0x14969f['hasSame'](_0x83801e,'week')?(_0x4b7982=_0x14969f['startOf']('week')['toJSDate'](),_0x2e51c7=_0x14969f['weekdayLong']||''):_0x14969f['hasSame'](_0x83801e,'year')?(_0x4b7982=_0x14969f['startOf']('month')['toJSDate'](),_0x2e51c7=_0x14969f['monthLong']||''):(_0x4b7982=_0x14969f['startOf']('year')['toJSDate'](),_0x2e51c7=String(_0x14969f['year'])),{'startDate':_0x4b7982,'localizedPeriodName':_0x2e51c7};}class mi extends _0x46e692{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x480728,_0x3a2d87,_0xdc70ad,_0x1ee260){super(_0x480728);const _0x2e6b34=di(_0x3a2d87,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x3a2d87,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0xdc70ad,this['_requireRevisionName']=_0x1ee260,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':_0x2e6b34}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x2dbc74){const _0x4935a9=new ai(this['locale'],_0x2dbc74,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x4935a9);}['removeRevision'](_0x518a36){const _0x5822d6=this['revisionViews']['find'](_0x319e21=>_0x319e21['id']===_0x518a36['id']);this['revisionViews']['remove'](_0x5822d6);}}class as extends _0x46e692{constructor(_0x5f5a8e){super(_0x5f5a8e);const _0x475dc7=new _0x3f11b3();_0x475dc7['content']=_0x580a31['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x475dc7,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x5f5a8e,'Revision\x20history')]}]});}}class ci extends _0x46e692{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x15e6a0,_0x2e29d0,_0x1e0c73,_0x1ba9b8){super(_0x15e6a0);const _0x1d7c7c=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x2e29d0,this['_revisionActions']=_0x1e0c73,this['_requireRevisionName']=_0x1ba9b8,this['on']('select',(_0x24af80,_0x1d6a4c)=>{this['fire']('revisionSelected',_0x1d6a4c);}),this['on']('setName',(_0x3a9b87,_0x53124f)=>{this['fire']('revisionSetName',_0x53124f);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x15e6a0),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x1d7c7c['if']('isEnabled','ck-disabled',_0x225f0e=>!_0x225f0e)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0xa87355 of this['_revisions'])this['_addRevision'](_0xa87355);this['_revisions']['on']('add',(_0x4632ae,_0x529b9a)=>{this['_addRevision'](_0x529b9a);}),this['_revisions']['on']('remove',(_0x1390f9,_0x193f9d)=>{this['_removeRevision'](_0x193f9d);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x33f2aa=>_0x33f2aa['revisionViews']['map'](_0x59aed7=>_0x59aed7))['flat']();}['selectRevision'](_0x40a113){for(const _0x379579 of this['revisionViews'])_0x40a113&&_0x40a113['id']===_0x379579['id']?_0x379579['select']():_0x379579['deselect']();}['highlightRevisions'](_0x2b3912){for(const _0x2443e9 of this['revisionViews'])_0x2b3912['some'](({id:_0x51057e})=>_0x51057e===_0x2443e9['id'])?_0x2443e9['highlight']():_0x2443e9['unhighlight']();}['_addRevision'](_0xc445d2){const _0x4a5d0d=di(_0xc445d2['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x10dffe=this['timePeriodViews']['get'](0x0);_0x10dffe&&_0x10dffe['startDate']['getTime']()===_0x4a5d0d['getTime']()||(_0x10dffe=new mi(this['locale'],_0x4a5d0d,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x10dffe)),_0x10dffe['addRevision'](_0xc445d2);}['_removeRevision'](_0x3f2276){const _0x5ac6af=di(_0x3f2276['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x5ac6af)['removeRevision'](_0x3f2276);}['_getTimePeriodViewByStartDate'](_0x374314){return this['timePeriodViews']['find'](_0xcb3ce6=>_0xcb3ce6['startDate']['getTime']()===_0x374314['getTime']());}}class w extends _0xf0a0b{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x4e32c3,uid as _0x5572ec,Collection as _0x1ac57c,logWarning as _0x224d59,FocusTracker as _0x3a2941,KeystrokeHandler as _0x5e0cef,scrollViewportToShowTarget as _0xe65805,ResizeObserver as nt,ElementReplacer as ht,CKEditorError as _0xb8dc66}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x22d7e8,set as _0xf6d80d,unset as _0x40989a,isEqual as _0x36962b}from'lodash-es';import{Plugin as _0x16c53d,PendingActions as _0x54ce04,icons as _0x17dc28,Command as _0x4cdf46,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x3705b6,getMarkerDomElement as _0x51562f,ConfirmMixin as ti,sanitizeEditorConfig as _0x36d947}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0xd84e17,ViewText as _0x583ce5,ViewElement as _0x2ac5e3,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0x15a493,ViewAttributeElement as _0x215329,ViewEmptyElement as _0x300fdc,ViewRawElement as _0x2ce16c,ViewUIElement as _0x19ae10,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0xb5e208,submitHandler as _0x191e84,LabeledFieldView as _0x35acf6,createLabeledInputText as _0x488b1b,createDropdown as _0x2a2bbb,ListView as _0x42865f,ListItemView as _0x15bd49,ButtonView as te,MenuBarMenuView as _0x789cb7,MenuBarMenuListView as _0x81b0ff,MenuBarMenuListItemView as _0x36350e,MenuBarMenuListItemButtonView as _0x40f2ab,ContextualBalloon as _0x5d1b5c,ToolbarSeparatorView as _0x4f56ef,IconView as _0x2d38b9,addListToDropdown as to,ViewModel as _0x177ff4,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 _0x4101e2}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
+ _0x4e32c3(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x52a479){super(),this['id']=_0x52a479['id']||_0x5572ec(),this['creator']=_0x52a479['creator']||null,this['authors']=_0x52a479['authors']||[],this['diffData']=_0x52a479['diffData']||null,this['toVersion']=_0x52a479['toVersion']||0x0,this['fromVersion']=_0x52a479['fromVersion']||0x0,this['set']('name',_0x52a479['name']||''),this['set']('createdAt',_0x52a479['createdAt']||new Date()),this['set']('attributes',_0x52a479['attributes']||{});}['setName'](_0x16fbef){this['_update']({'name':_0x16fbef});}['setAttribute'](_0x1c91eb,_0x507f6d){const _0x525091=_0x22d7e8(this['attributes']);_0xf6d80d(_0x525091,_0x1c91eb,_0x507f6d),this['_update']({'attributes':_0x525091});}['removeAttribute'](_0x2df93c){const _0x31052d=_0x22d7e8(this['attributes']);_0x40989a(_0x31052d,_0x2df93c),this['_update']({'attributes':_0x31052d});}['_update'](_0x1f9d0d,_0x488959=!0x1){let _0x22d334=!0x1;const _0x52799c={'id':this['id']},_0x5c9c80=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x104c95 of _0x5c9c80){const _0x2a776a=_0x1f9d0d[_0x104c95];void 0x0!==_0x2a776a&&_0x2a776a!==this[_0x104c95]&&(this[_0x104c95]=_0x2a776a,_0x52799c[_0x104c95]=_0x2a776a,_0x22d334=!0x0);}_0x22d334&&(_0x52799c['authors']&&(_0x52799c['authorsIds']=_0x52799c['authors']['map'](_0x521deb=>_0x521deb['id']),delete _0x52799c['authors']),this['fire']('_update',_0x52799c,_0x488959));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x317f15=>_0x317f15['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x16c53d{['_revisions'];static get['requires'](){return[_0x3705b6];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x28e44f){super(_0x28e44f),this['_revisions']=new _0x1ac57c();}['afterInit'](){!async function(_0x360007){const _0x59f487=_0x2682cf([0x6d,0x50,0x36,0x58,0x7a,0x34,0x4e,0x75,0x79,0x54,0x69,0x57,0x6a,0x44,0x49,0x47,0x33,0x51,0x32,0x4f,0x61,0x4a,0x67,0x5a,0x6c,0x56,0x68,0x45,0x6b,0x4b,0x46,0x6e,0x71,0x73,0x63,0x70,0x35,0x31,0x76,0x6f,0x38,0x74,0x42,0x62,0x59,0x66,0x30,0x52,0x37,0x55,0x41,0x43,0x72,0x4c,0x77,0x65,0x4d,0x78,0x64,0x39,0x48,0x53]),_0x38fc42=0xeb829,_0xafbd31=0x19f58def,_0x4f1148=0x19f2d0e7^_0xafbd31,_0x32d600=window[_0x2682cf([0x44,0x61,0x74,0x65])][_0x2682cf([0x6e,0x6f,0x77])](),_0x3c0ab2=_0x360007[_0x2682cf([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x44e6ef=new window[(_0x2682cf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4659d5=>{_0x3c0ab2[_0x2682cf([0x6f,0x6e,0x63,0x65])](_0x2682cf([0x72,0x65,0x61,0x64,0x79]),_0x4659d5);}),_0x3ee726={[_0x2682cf([0x6b,0x74,0x79])]:_0x2682cf([0x45,0x43]),[_0x2682cf([0x75,0x73,0x65])]:_0x2682cf([0x73,0x69,0x67]),[_0x2682cf([0x63,0x72,0x76])]:_0x2682cf([0x50,0x2d,0x32,0x35,0x36]),[_0x2682cf([0x78])]:_0x2682cf([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]),[_0x2682cf([0x79])]:_0x2682cf([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]),[_0x2682cf([0x61,0x6c,0x67])]:_0x2682cf([0x45,0x53,0x32,0x35,0x36])},_0x3cb07a=_0x3c0ab2[_0x2682cf([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2682cf([0x67,0x65,0x74])](_0x2682cf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x57bf7d(){let _0x8cb213,_0x35141a=null,_0x2e0c5d=null;try{if(_0x3cb07a==_0x2682cf([0x47,0x50,0x4c]))return _0x2682cf([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x8cb213=_0x443692(),!_0x8cb213)return _0x2682cf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x8cb213[_0x2682cf([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2e0c5d=_0x456ab1(_0x8cb213[_0x2682cf([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x8cb213[_0x2682cf([0x6a,0x74,0x69])])),await _0x73a4b()?_0x535e6a()?_0x2c65c8()?_0x2682cf([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3fec9d()?(_0x8cb213[_0x2682cf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2682cf([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x35141a=_0xffcbea(_0x2682cf([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x8cb213[_0x2682cf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2682cf([0x74,0x72,0x69,0x61,0x6c])&&(_0x35141a=_0xffcbea(_0x2682cf([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x8cb213[_0x2682cf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2682cf([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x35141a=_0xffcbea(_0x2682cf([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x507271()):_0x2682cf([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2682cf([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2682cf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5d046b){return _0x2682cf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2c65c8(){const _0x412268=[_0x2682cf([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2682cf([0x74,0x72,0x69,0x61,0x6c])][_0x2682cf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8cb213[_0x2682cf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x32d600/0x3e8:0xe10*_0x4f1148;return _0x8cb213[_0x2682cf([0x65,0x78,0x70])]<_0x412268;}function _0x535e6a(){const _0x4ec56b=_0x8cb213[_0x2682cf([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4ec56b)return!0x1;if(_0x4ec56b[_0x2682cf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2682cf([0x2a])))return!0x0;if(_0x4ec56b[_0x2682cf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2682cf([0x52,0x48])))return!0x0;if(_0x4ec56b[_0x2682cf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2682cf([0x52,0x52,0x48]))){if(_0x408091())return!0x0;if(_0x1678f1()||_0x12cf46())return!0x0;}return!0x1;}function _0x3fec9d(){const _0x3719e3=_0x8cb213[_0x2682cf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3719e3||0x0==_0x3719e3[_0x2682cf([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5cf56d}=new URL(window[_0x2682cf([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3719e3[_0x2682cf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5cf56d))return!0x0;const _0x375e72=_0x5cf56d[_0x2682cf([0x73,0x70,0x6c,0x69,0x74])](_0x2682cf([0x2e]));return _0x3719e3[_0x2682cf([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1bfbe6=>_0x1bfbe6[_0x2682cf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2682cf([0x2a])))[_0x2682cf([0x6d,0x61,0x70])](_0x35cdbc=>_0x35cdbc[_0x2682cf([0x73,0x70,0x6c,0x69,0x74])](_0x2682cf([0x2e])))[_0x2682cf([0x73,0x6f,0x6d,0x65])](_0x485f9b=>_0x375e72[_0x2682cf([0x65,0x76,0x65,0x72,0x79])]((_0x37f12f,_0x12a94e)=>_0x485f9b[_0x12a94e]===_0x37f12f||_0x485f9b[_0x12a94e]===_0x2682cf([0x2a])));}function _0x507271(){return _0x35141a&&_0x2e0c5d?new window[(_0x2682cf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b9ede,_0x17db1e)=>{_0x35141a[_0x2682cf([0x74,0x68,0x65,0x6e])](_0x5b9ede,_0x17db1e),_0x2e0c5d[_0x2682cf([0x74,0x68,0x65,0x6e])](_0x265cc1=>{_0x265cc1!=_0x2682cf([0x56,0x61,0x6c,0x69,0x64])&&_0x5b9ede(_0x265cc1);},_0x17db1e);}):_0x35141a||_0x2e0c5d||_0x2682cf([0x56,0x61,0x6c,0x69,0x64]);}}function _0x456ab1(_0x59375b,_0x1949bd){return new window[(_0x2682cf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2095b1=>{if(_0x3cca3a())return _0x2095b1(_0x2682cf([0x56,0x61,0x6c,0x69,0x64]));_0x40ff6a(),_0x3c0ab2[_0x2682cf([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2682cf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x52bbda=!0x1;const _0x5062b9=_0x5572ec();function _0x221dec(_0x136af5){return!!_0x136af5&&(typeof _0x136af5===_0x2682cf([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x136af5===_0x2682cf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x136af5[_0x2682cf([0x74,0x68,0x65,0x6e])]===_0x2682cf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x136af5[_0x2682cf([0x63,0x61,0x74,0x63,0x68])]===_0x2682cf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1e32b6(_0x823f76){_0x5dcb10(_0x823f76)[_0x2682cf([0x74,0x68,0x65,0x6e])](_0x308430=>{if(!_0x308430||_0x308430[_0x2682cf([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2682cf([0x6f,0x6b]))return _0x2682cf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1939f4(_0xba091(_0x5062b9+_0x1949bd))!=_0x308430[_0x2682cf([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2682cf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2682cf([0x56,0x61,0x6c,0x69,0x64]);})[_0x2682cf([0x74,0x68,0x65,0x6e])](_0x455e77=>(_0x50c934(),_0x455e77),()=>{const _0x3ef67a=_0x3bee6b();return null==_0x3ef67a?(_0x50c934(),_0x2682cf([0x56,0x61,0x6c,0x69,0x64])):_0x2682cf(_0x32d600-_0x3ef67a>(0x3df909ef^_0xafbd31)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2682cf([0x74,0x68,0x65,0x6e])](_0x2095b1)[_0x2682cf([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2095b1(_0x2682cf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x169944=0x19c3636f^_0xafbd31;function _0x50c934(){const _0x478fe9=_0x2682cf([0x6c,0x6c,0x63,0x74,0x2d])+_0x1939f4(_0xba091(_0x59375b)),_0x1e8ceb=_0x16daea(_0x1939f4(window[_0x2682cf([0x4d,0x61,0x74,0x68])][_0x2682cf([0x63,0x65,0x69,0x6c])](_0x32d600/_0x169944)));window[_0x2682cf([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2682cf([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x478fe9,_0x1e8ceb);}function _0x3bee6b(){const _0x4c1324=_0x2682cf([0x6c,0x6c,0x63,0x74,0x2d])+_0x1939f4(_0xba091(_0x59375b)),_0x38e966=window[_0x2682cf([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2682cf([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4c1324);return _0x38e966?window[_0x2682cf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x16daea(_0x38e966),0x10)*_0x169944:null;}function _0x5dcb10(_0x3400f2){return new window[(_0x2682cf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x35ee36,_0x2adccf)=>{_0x3400f2[_0x2682cf([0x74,0x68,0x65,0x6e])](_0x35ee36,_0x2adccf),window[_0x2682cf([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2adccf,0x19f4592f^_0xafbd31);});}}_0x3c0ab2[_0x2682cf([0x6f,0x6e])](_0x2682cf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x17a82a,_0x353fbe)=>{if(_0x353fbe[0x0]!=_0x59375b)return _0x2095b1(_0x2682cf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x353fbe[0x1]={..._0x353fbe[0x1],[_0x2682cf([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5062b9};},{[_0x2682cf([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2682cf([0x68,0x69,0x67,0x68])}),_0x3c0ab2[_0x2682cf([0x6f,0x6e])](_0x2682cf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xe1ab3c=>{_0x221dec(_0xe1ab3c[_0x2682cf([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x52bbda=!0x0,_0x1e32b6(_0xe1ab3c[_0x2682cf([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2682cf([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2682cf([0x6c,0x6f,0x77])}),_0x44e6ef[_0x2682cf([0x74,0x68,0x65,0x6e])](()=>{_0x52bbda||_0x2095b1(_0x2682cf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3cca3a(){return _0x3c0ab2[_0x2682cf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2682cf([0x76,0x69,0x65,0x77])][_0x2682cf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2682cf([0x61,0x75,0x74,0x6f]);}function _0x40ff6a(){_0x3c0ab2[_0x2682cf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2682cf([0x76,0x69,0x65,0x77])][_0x2682cf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2682cf([0x61,0x75,0x74,0x6f]);}}function _0xffcbea(_0x36943f){const _0x49b016=[new window[(_0x2682cf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a2eeb=>setTimeout(_0x2a2eeb,0x19fcb323^_0xafbd31)),_0x44e6ef[_0x2682cf([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2682cf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4dd852=>{const _0x1da9e5=0x19f58de8^_0xafbd31,_0x900849=_0x360007[_0x2682cf([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x18f7dc(){_0x900849[_0x2682cf([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x1da9e5&&_0x4dd852();}_0x18f7dc(),_0x900849[_0x2682cf([0x6f,0x6e])](_0x2682cf([0x61,0x64,0x64]),_0x18f7dc);})),new window[(_0x2682cf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x552049=>{function _0x5384be(){for(const _0x54c858 in window)if(window[_0x2682cf([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x2682cf([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x54c858))&&window[_0x54c858]==_0x38fc42)return _0x552049();_0x3c0ab2[_0x2682cf([0x73,0x74,0x61,0x74,0x65])]!=_0x2682cf([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x2682cf([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5384be,0x19f59e67^_0xafbd31);}_0x103391(_0x2682cf([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x5384be();})];return window[_0x2682cf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2682cf([0x72,0x61,0x63,0x65])](_0x49b016)[_0x2682cf([0x74,0x68,0x65,0x6e])](()=>_0x36943f);}async function _0x4dac57(){if(await _0x44e6ef,_0x103391(_0x2682cf([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x21837c=_0x360007[_0x2682cf([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x39f895=_0x360007[_0x2682cf([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])](_0x21837c[_0x2682cf([0x69,0x64])]),_0x33b046=_0x36bb0b(_0x2682cf([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x33b046[_0x2682cf([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x21837c['id'],_0x39f895?_0x39f895['id']:null,!0x0),_0x33b046[_0x2682cf([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2682cf([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x33b046[_0x2682cf([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x33b046[_0x2682cf([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x4f4fac,void(_0x33b046[_0x2682cf([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x4f4fac);}if(_0x103391(_0x2682cf([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x58b9f6=_0x36bb0b(_0x2682cf([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x58b9f6[_0x2682cf([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2682cf([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x58b9f6[_0x2682cf([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x58b9f6[_0x2682cf([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x4f4fac,_0x58b9f6[_0x2682cf([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x4f4fac;}_0x3c0ab2[_0x2682cf([0x6d,0x6f,0x64,0x65,0x6c])][_0x2682cf([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4f4fac,_0x3c0ab2[_0x2682cf([0x6d,0x6f,0x64,0x65,0x6c])][_0x2682cf([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4f4fac,_0x3c0ab2[_0x2682cf([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2682cf([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x408091(){return _0x103391(_0x2682cf([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x36bb0b(_0x2682cf([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2682cf([0x73,0x74,0x61,0x74,0x65])]==_0x2682cf([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1678f1(){return _0x103391(_0x2682cf([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 _0x12cf46(){return _0x103391(_0x2682cf([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x50476a(_0x36778d){const _0x4687f9=_0x54bb54();_0x3c0ab2[_0x4687f9]=_0x2682cf([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])+_0x36778d,_0x36778d[_0x2682cf([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x2682cf([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x54bb54()]=_0x38fc42),_0x36778d!=_0x2682cf([0x56,0x61,0x6c,0x69,0x64])&&_0x4dac57();}function _0x54bb54(){const _0x2e3412=window[_0x2682cf([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2682cf([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2682cf([0x6e,0x6f,0x77])]())[_0x2682cf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2682cf([0x2e]),'');let _0x155750=_0x2682cf([0x6d]);for(let _0x39a9e1=0x0;_0x39a9e1<_0x2e3412[_0x2682cf([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x39a9e1+=0x2){let _0x4a7ca4=window[_0x2682cf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e3412[_0x2682cf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x39a9e1,_0x39a9e1+0x2));_0x4a7ca4>=_0x59f487[_0x2682cf([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4a7ca4-=_0x59f487[_0x2682cf([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x155750+=_0x59f487[_0x4a7ca4];}return _0x155750;}function _0x443692(){const _0x3e441c=_0x3cb07a[_0x2682cf([0x73,0x70,0x6c,0x69,0x74])](_0x2682cf([0x2e]));if(0x3!=_0x3e441c[_0x2682cf([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x593637(_0x3e441c[0x1]);function _0x593637(_0x4b26cc){const _0x23b8d6=_0x5c89ca(_0x4b26cc);return _0x23b8d6&&_0x3e9a89()?_0x23b8d6:null;function _0x3e9a89(){const _0x3425dc=_0x23b8d6[_0x2682cf([0x6a,0x74,0x69])],_0x4d622=window[_0x2682cf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3425dc[_0x2682cf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3425dc[_0x2682cf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x54a4f7={..._0x23b8d6,[_0x2682cf([0x6a,0x74,0x69])]:_0x3425dc[_0x2682cf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3425dc[_0x2682cf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x54a4f7[_0x2682cf([0x76,0x63])],_0xba091(_0x54a4f7)==_0x4d622;}}}async function _0x73a4b(){let _0x1c0176=!0x0;try{const _0x1678c9=_0x3cb07a[_0x2682cf([0x73,0x70,0x6c,0x69,0x74])](_0x2682cf([0x2e])),[_0x2994cc,_0x2821a3,_0xb6c937]=_0x1678c9;return _0x109a49(_0x2994cc),await _0x5d23a(_0x2994cc,_0x2821a3,_0xb6c937),_0x1c0176;}catch(_0x11b986){return!0x1;}function _0x109a49(_0x11cbd5){const _0x88129e=_0x5c89ca(_0x11cbd5);_0x88129e&&_0x88129e[_0x2682cf([0x61,0x6c,0x67])]==_0x2682cf([0x45,0x53,0x32,0x35,0x36])||(_0x1c0176=!0x1);}async function _0x5d23a(_0x282561,_0x3f6c8c,_0x2a83a6){const _0x27aeab=window[_0x2682cf([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2682cf([0x66,0x72,0x6f,0x6d])](_0x14294d(_0x2a83a6),_0x1ca34a=>_0x1ca34a[_0x2682cf([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x11a9d0=new window[(_0x2682cf([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2682cf([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x282561+_0x2682cf([0x2e])+_0x3f6c8c),_0x13b6ce=window[_0x2682cf([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2682cf([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x13b6ce)return;const _0x2c5f42=await _0x13b6ce[_0x2682cf([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2682cf([0x6a,0x77,0x6b]),_0x3ee726,{[_0x2682cf([0x6e,0x61,0x6d,0x65])]:_0x2682cf([0x45,0x43,0x44,0x53,0x41]),[_0x2682cf([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2682cf([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2682cf([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x13b6ce[_0x2682cf([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2682cf([0x6e,0x61,0x6d,0x65])]:_0x2682cf([0x45,0x43,0x44,0x53,0x41]),[_0x2682cf([0x68,0x61,0x73,0x68])]:{[_0x2682cf([0x6e,0x61,0x6d,0x65])]:_0x2682cf([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2c5f42,_0x27aeab,_0x11a9d0)||(_0x1c0176=!0x1);}}function _0x5c89ca(_0x66e994){return _0x66e994[_0x2682cf([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2682cf([0x65,0x79]))?JSON[_0x2682cf([0x70,0x61,0x72,0x73,0x65])](_0x14294d(_0x66e994)):null;}function _0x14294d(_0xe99ffb){return window[_0x2682cf([0x61,0x74,0x6f,0x62])](_0xe99ffb[_0x2682cf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2682cf([0x2b]))[_0x2682cf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2682cf([0x2f])));}function _0xba091(_0x5cdfa0){let _0x21cf80=0x1505;function _0x57191a(_0x2322f4){for(let _0x3f9883=0x0;_0x3f9883<_0x2322f4[_0x2682cf([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3f9883++){const _0x55ffda=_0x2322f4[_0x2682cf([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3f9883);_0x21cf80=(_0x21cf80<<0x5)+_0x21cf80+_0x55ffda,_0x21cf80&=_0x21cf80;}}function _0x36d55a(_0x3f775e){Array[_0x2682cf([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3f775e)?_0x3f775e[_0x2682cf([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x36d55a):_0x3f775e&&typeof _0x3f775e==_0x2682cf([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2682cf([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3f775e)[_0x2682cf([0x73,0x6f,0x72,0x74])]()[_0x2682cf([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x51bc9c,_0x1efe51])=>{_0x57191a(_0x51bc9c),_0x36d55a(_0x1efe51);}):_0x57191a(window[_0x2682cf([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3f775e));}return _0x36d55a(_0x5cdfa0),_0x21cf80>>>0x0;}function _0x1939f4(_0x4b69c0){return _0x4b69c0[_0x2682cf([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2682cf([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2682cf([0x30]));}function _0x16daea(_0x2b3fda){return _0x2b3fda[_0x2682cf([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2682cf([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2682cf([0x6a,0x6f,0x69,0x6e])]('');}function _0x103391(_0x2e1860){return _0x3c0ab2[_0x2682cf([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2682cf([0x68,0x61,0x73])](_0x2e1860);}function _0x36bb0b(_0x15d91b){return _0x3c0ab2[_0x2682cf([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2682cf([0x67,0x65,0x74])](_0x15d91b);}function _0x4f4fac(){}function _0x2682cf(_0x542f54){return _0x542f54['map'](_0x2e23fd=>String['fromCharCode'](_0x2e23fd))['join']('');}_0x50476a(await _0x57bf7d());}(this);}['createRevision'](_0x538455){const _0x35b74b=this['editor']['plugins']['get']('Users');return new a({'id':_0x538455['id'],'name':_0x538455['name'],'creator':_0x538455['creatorId']?_0x35b74b['getUser'](_0x538455['creatorId']):null,'diffData':_0x538455['diffData']||_0x538455['data'],'authors':_0x538455['authorsIds']['map'](_0xa04706=>_0x35b74b['getUser'](_0xa04706)),'createdAt':new Date(_0x538455['createdAt']),'attributes':_0x538455['attributes'],'fromVersion':_0x538455['fromVersion'],'toVersion':_0x538455['toVersion']});}['addRevision'](_0x524558,_0x161ca3=0x0){this['_revisions']['add'](_0x524558,_0x161ca3);}['getRevision'](_0x3c98e0){return this['_revisions']['get'](_0x3c98e0);}['getRevisions'](_0xe0e899={'toJSON':!0x1}){const _0x2551e1=Array['from'](this['_revisions']);return _0x2551e1['reverse'](),_0xe0e899['toJSON']?_0x2551e1['map'](_0x5da42b=>_0x5da42b['toJSON']()):_0x2551e1;}['getIndex'](_0x43d47e){return this['_revisions']['getIndex'](_0x43d47e);}['getEarlierVisibleRevision'](_0x357fec){const [,_0x1e6c8a]=this['getRevisionsIterator'](_0x357fec,{'direction':'earlier'});return _0x1e6c8a;}['getLaterVisibleRevision'](_0x14b92d){const [,_0x5854c1]=this['getRevisionsIterator'](_0x14b92d,{'direction':'later'});return _0x5854c1;}['getRevisionsInDiff'](_0x4ab3a4){const _0x588435=[];for(const _0x5b4540 of this['getRevisionsIterator'](_0x4ab3a4['newRevisionId']))if(_0x588435['push'](_0x5b4540),_0x5b4540['id']===_0x4ab3a4['oldRevisionId'])break;return _0x588435;}*['getRevisionsIterator'](_0x2dcdfd,{direction:_0x2c8e85='earlier',filter:_0x3db3c9=()=>!0x0}={}){const _0x41a328='earlier'===_0x2c8e85?0x1:-0x1;let _0x9e343a=this['_revisions']['get'](_0x2dcdfd),_0x2dfd39=this['getIndex'](_0x9e343a);for(yield _0x9e343a;_0x9e343a;){if(_0x2dfd39+=_0x41a328,_0x9e343a=this['getRevision'](_0x2dfd39),!_0x9e343a)return;_0x3db3c9(_0x9e343a)&&(yield _0x9e343a);}}}function m(_0x160790,_0x35a4bc,_0x38915a){const t=_0x160790['t'];switch(_0x35a4bc){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'},_0x38915a);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x38915a);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':_0x15a493,'a':_0x215329,'e':_0x300fdc,'r':_0x2ce16c,'u':_0x19ae10};class l extends _0x16c53d{['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[_0x3705b6,j,_0x54ce04];}constructor(_0x13c5e3){super(_0x13c5e3),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 _0x4b9b2d=_0x5572ec();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x4b9b2d},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 _0xb26881=this['repository']['getRevision'](0x0),_0x5c5446=_0xb26881&&null===_0xb26881['creator']?_0xb26881:null;if(this['_continueCurrentRevision']=!!_0x5c5446&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x22ae5b=this['_source']['getCurrentRevisionId'](),_0x470aa6=this['repository']['getRevision'](_0x22ae5b);if(_0x470aa6)this['_startingVersion']=_0x470aa6['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5d5396=this['_source']['history']['_operations']['find'](_0xc1484b=>!_0xc1484b['_isInit']),_0x5b7a0e=_0x5d5396?_0x5d5396['baseVersion']:this['_source']['history']['version'];_0xb26881?(_0xb26881['toVersion']<_0x5b7a0e&&_0xb26881['_update']({'toVersion':_0x5b7a0e}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x5c5446['id'],this['_startingVersion']=_0x5c5446['fromVersion']):(this['_startingVersion']=_0xb26881['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x5b7a0e,this['_continueCurrentRevision']=!0x1);}}else _0x5c5446&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x5c5446['toVersion'],this['editor']['model']['document']['history']['version']),_0x5c5446['fromVersion']===_0x5c5446['toVersion']?(0x0!==_0x5c5446['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x5c5446['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x5c5446['id'],this['_startingVersion']=_0x5c5446['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',_0x2f04bb=>!_0x2f04bb),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x249b56=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x8734b3;for(const _0x3595fa in _0x249b56){const _0x3edcad=_0x3595fa,_0x37ba90=_0x249b56[_0x3edcad];if('revisionHistoryLicenseKeyValid'==_0x37ba90||'revisionHistoryLicenseKeyInvalid'==_0x37ba90||'revisionHistoryLicenseKeyExpired'==_0x37ba90||'revisionHistoryLicenseKeyDomainLimit'==_0x37ba90||'revisionHistoryLicenseKeyNotAllowed'==_0x37ba90||'revisionHistoryLicenseKeyEvaluationLimit'==_0x37ba90||'revisionHistoryLicenseKeyTrialLimit'==_0x37ba90||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x37ba90||'revisionHistoryLicenseKeyUsageLimit'==_0x37ba90){delete _0x249b56[_0x3edcad],_0x8734b3=_0x37ba90,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x8734b3&&_0x249b56['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x8734b3&&_0x249b56['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x8734b3&&_0x249b56['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x8734b3&&_0x249b56['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x8734b3&&_0x249b56['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x8734b3&&_0x249b56['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x8734b3&&_0x249b56['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x8734b3&&_0x249b56['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x348ab1=this['repository']['getRevision'](0x0),_0x44e282=await this['getRevisionDocumentData'](_0x348ab1),_0x25e08b=await this['getRevisionRootsAttributes'](_0x348ab1);this['_replaceEditorDataWithRevisionData'](_0x44e282,_0x25e08b);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x13c622){this['_source']=_0x13c622;}async['update'](){const _0x2acbd4=await this['_source']['getLatestVersion']();if(_0x2acbd4>this['currentRevision']['toVersion']){await this['_loadState']();const _0x28e666=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x2acbd4});_0x28e666['authors']=_0x28e666['authorsIds']['map'](_0x59fb60=>this['editor']['plugins']['get']('Users')['getUser'](_0x59fb60)),this['currentRevision']['_update'](_0x28e666);}}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'](_0xe0301={},_0xfb04ef=null){const _0x3c07f6=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0xfb04ef>this['currentRevision']['toVersion']&&(_0xfb04ef=null),null===_0xfb04ef&&(_0xfb04ef=await this['_source']['getLatestVersion']());const _0x3ee95a=this['_getFromVersion'](_0xfb04ef),_0xbb5252=this['buildRevisionData']({'from':_0x3ee95a,'to':_0xfb04ef});if(this['currentRevision']['toVersion']<_0xfb04ef){const _0x4a9ff0=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0xfb04ef,'to':_0xfb04ef});_0x4a9ff0['authors']=[],_0x4a9ff0['authorsIds']=[],_0x4a9ff0['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x4a9ff0,!0x0),delete _0x4a9ff0['authors'],_0x3c07f6['push'](_0x4a9ff0);}_0xe0301['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0xe0301['name']=_0xe0301['name']||null,_0xe0301['id']=_0xe0301['id']||_0x5572ec(),_0xe0301={..._0xe0301,..._0xbb5252};const _0x55ec3a=this['addRevisionData'](_0xe0301);_0x3c07f6['push'](_0xe0301);const _0x2409d2=this['repository']['getIndex'](_0x55ec3a);if(0x0!==_0x2409d2){const _0x4d05ed=this['repository']['getRevision'](_0x2409d2-0x1);if(_0x4d05ed['fromVersion']!==_0xfb04ef){const _0x4d268b=this['_revisionDataBuilder']['getData'](_0xfb04ef,_0x4d05ed['toVersion']),_0x1cdd5c={'id':_0x4d05ed['id'],'diffData':_0x4d268b['diffData'],'authorsIds':_0x4d268b['authorsIds'],'authors':_0x4d268b['authorsIds']['map'](_0x3b683c=>this['editor']['plugins']['get']('Users')['getUser'](_0x3b683c)),'fromVersion':_0xfb04ef};_0x4d05ed===this['currentRevision']&&(_0x1cdd5c['createdAt']=new Date(_0xe0301['createdAt']['getTime']()+0xa)),_0x4d05ed['_update'](_0x1cdd5c,!0x0),delete _0x1cdd5c['authors'],_0x3c07f6['push'](_0x1cdd5c);}}if(this['adapter']){for(const _0x2ab98a of _0x3c07f6)this['_bufferUpdate'](_0x2ab98a['id'],_0x2ab98a,!0x0);this['sendBufferedUpdates']();}return _0x55ec3a;}['addRevisionData'](_0x5e9f65){const _0x4f2ee0=this['repository']['createRevision'](_0x5e9f65);return this['adapter']&&_0x4f2ee0['on']('_update',(_0x293758,_0x4f8f3a,_0x4bf866)=>{_0x4bf866||(this['_bufferUpdate'](_0x4f8f3a['id'],_0x4f8f3a,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x4f2ee0,this['_findInsertionIndex'](_0x4f2ee0)),_0x4f2ee0;}async['getRevisionDocumentData'](_0x18806b){await this['_loadRevisionData'](_0x18806b);const _0x19de5a={};for(const _0x4a42d7 in _0x18806b['diffData']){if(_0x18806b['diffData'][_0x4a42d7]['attachChange']&&!_0x18806b['diffData'][_0x4a42d7]['attachChange']['isAttached'])continue;const _0x17f584=this['_removeRevisionMarkers'](JSON['parse'](_0x18806b['diffData'][_0x4a42d7]['insertions'])),_0x2303a4=this['editor']['editing']['view']['document'],_0xf0f301=new _0xd84e17(_0x2303a4,_0x17f584['map'](_0x16e733=>C(_0x16e733,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x19de5a[_0x4a42d7]=this['editor']['data']['processor']['toData'](_0xf0f301),this['editor']['data']['processor']['useFillerType']('default');}return _0x19de5a;}async['getRevisionRootsAttributes'](_0x5821f9){await this['_loadRevisionData'](_0x5821f9);const _0x3f3a13={};for(const _0x477db9 in _0x5821f9['diffData'])_0x5821f9['diffData'][_0x477db9]['attachChange']&&!_0x5821f9['diffData'][_0x477db9]['attachChange']['isAttached']||(_0x3f3a13[_0x477db9]=_0x5821f9['diffData'][_0x477db9]['attributesAfter']||{});return _0x3f3a13;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x95b467=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x25ec6c=0x0;_0x25ec6c<_0x95b467['length'];_0x25ec6c++){const _0x309f5a=_0x95b467[_0x25ec6c];let _0x3e6a9b=!0x1;for(const _0x1ef449 of Object['keys'](_0x309f5a))void 0x0===_0x309f5a[_0x1ef449]?delete _0x309f5a[_0x1ef449]:'id'!==_0x1ef449&&(_0x3e6a9b=!0x0);_0x3e6a9b||(_0x95b467[_0x25ec6c]=null);}if(_0x95b467=_0x95b467['filter'](_0x51a764=>null!==_0x51a764),!_0x95b467['length'])return;for(let _0x3e6f56=0x0;_0x3e6f56<_0x95b467['length'];_0x3e6f56++){const _0x43ea2d=_0x95b467[_0x3e6f56];void 0x0!==_0x43ea2d['fromVersion']&&void 0x0===_0x43ea2d['toVersion']&&(_0x43ea2d['toVersion']=this['repository']['getRevision'](_0x43ea2d['id'])['toVersion']),void 0x0!==_0x43ea2d['toVersion']&&void 0x0===_0x43ea2d['fromVersion']&&(_0x43ea2d['fromVersion']=this['repository']['getRevision'](_0x43ea2d['id'])['fromVersion']);}const _0x5beeb8=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x95b467,_0x5beeb8)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x408e49=>{if(_0x408e49){for(const _0x22d37b of _0x408e49)this['setRevisionData']({'id':_0x22d37b['id'],'createdAt':_0x22d37b['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x11bba0,_0x48b03d){let _0x4200e5=this['editor']['config']['get']('initialData'),_0x48899c=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x4200e5){_0x4200e5={};for(const _0x56c5fb of this['editor']['model']['document']['getRootNames']())_0x4200e5[_0x56c5fb]='';}if('string'==typeof _0x4200e5&&(_0x4200e5={'main':_0x4200e5}),void 0x0===_0x48899c){_0x48899c={};for(const _0x43cada of this['editor']['model']['document']['getRootNames']())_0x48899c[_0x43cada]={};}let _0x1b4643=!0x1;const _0x51ac61=Object['keys'](_0x4200e5),_0x13b386=Object['keys'](_0x11bba0);for(const _0x7aac29 of _0x51ac61){if(_0x4200e5[_0x7aac29]!==_0x11bba0[_0x7aac29]&&''!==_0x4200e5[_0x7aac29]['trim']()){_0x1b4643=!0x0;break;}if(!_0x36962b(_0x48899c[_0x7aac29],_0x48b03d[_0x7aac29])&&Object['keys'](_0x48899c[_0x7aac29])['length']>0x0){_0x1b4643=!0x0;break;}}_0x1b4643||(_0x1b4643=_0x13b386['some'](_0x299d50=>!this['editor']['model']['document']['getRoot'](_0x299d50))),_0x1b4643&&_0x224d59('editor-initial-data-replaced-with-revision-data',{'editorData':_0x4200e5,'editorRootsAttributes':_0x48899c,'revisionData':_0x11bba0,'revisionRootsAttributes':_0x48b03d}),this['editor']['config']['set']('initialData',_0x11bba0),this['editor']['config']['set']('rootsAttributes',_0x48b03d);}['_addPendingAction'](){if(!this['_pendingAction']){const _0xd9d4c7=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0xd9d4c7['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x52c897){const _0x337d07=this['repository']['getRevisions']();_0x337d07['reverse']();let _0x395c39=0x0;for(;_0x395c39<_0x337d07['length'];){const _0x31379e=_0x337d07[_0x395c39];if(_0x31379e===this['currentRevision']){_0x395c39++;continue;}if(_0x31379e['id']===this['_initialRevisionId'])break;const _0x30219c=_0x52c897['toVersion']-_0x31379e['toVersion']||_0x52c897['fromVersion']-_0x31379e['fromVersion'];if(_0x30219c>0x0)break;if(_0x30219c<0x0)_0x395c39++;else{if(!_0x52c897['creator']&&_0x31379e['creator'])break;if(_0x31379e['creator']||!_0x52c897['creator']){if(_0x52c897['createdAt']>_0x31379e['createdAt'])break;_0x395c39++;}else _0x395c39++;}}return _0x395c39;}['setRevisionData'](_0xf3e107){const _0x2a630a=this['repository']['getRevision'](_0xf3e107['id']);if(_0xf3e107['createdAt']&&(_0xf3e107['createdAt']=new Date(_0xf3e107['createdAt'])),_0xf3e107['authorsIds']){const _0x5c590f=this['editor']['plugins']['get']('Users');_0xf3e107['authors']=_0xf3e107['authorsIds']['map'](_0x1e0f2d=>_0x5c590f['getUser'](_0x1e0f2d));}_0x2a630a['_update'](_0xf3e107,!0x0);}['buildRevisionData']({revision:_0x5a2bc5=null,from:_0x15d0c5=null,to:_0x9a1b27=null}){_0x15d0c5=null!==_0x15d0c5?_0x15d0c5:_0x5a2bc5['fromVersion'],_0x9a1b27=null!==_0x9a1b27?_0x9a1b27:_0x5a2bc5['toVersion'];const _0x304181=this['_revisionDataBuilder']['getData'](_0x15d0c5,_0x9a1b27),_0x3c0a35={'diffData':_0x304181['diffData'],'authorsIds':_0x304181['authorsIds'],'fromVersion':_0x15d0c5,'toVersion':_0x9a1b27};if(!_0x5a2bc5||_0x9a1b27!==_0x5a2bc5['toVersion']){const _0x4d69df=_0x9a1b27-0x1,_0x42bc20=this['_source']['history']['getOperation'](_0x4d69df);_0x3c0a35['createdAt']=_0x42bc20&&_0x42bc20['createdAt']||new Date();}if(this['_loadedStateData']&&_0x15d0c5===this['_loadedStateData']['fromVersion']){for(const _0x431d48 of this['_loadedStateData']['authors'])_0x3c0a35['authorsIds']['includes'](_0x431d48['id'])||_0x3c0a35['authorsIds']['push'](_0x431d48['id']);}return _0x3c0a35;}['_loadRevisionData'](_0x3e16a0){if(!_0x3e16a0||_0x3e16a0['diffData'])return Promise['resolve']();{const _0x5d027d=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x5d027d,'revisionId':_0x3e16a0['id']})['then'](_0x44782d=>{_0x3e16a0['diffData']=_0x44782d['diffData'];});}}['_bufferUpdate'](_0x2a3036,_0x445414,_0x12317a){if(this['_bufferedUpdates']['has'](_0x2a3036)){const _0x24eeb9=this['_bufferedUpdates']['get'](_0x2a3036);_0x445414=_0x12317a?{..._0x24eeb9,..._0x445414}:{..._0x445414,..._0x24eeb9};}this['_bufferedUpdates']['set'](_0x2a3036,_0x445414);}['_getFromVersion'](_0x3e7bd1){const _0x26418d=this['repository']['getRevisions']();_0x26418d['reverse'](),_0x26418d['shift']();const _0x12c5b4=_0x26418d['find'](_0x3a32cd=>_0x3a32cd['toVersion']<=_0x3e7bd1)['toVersion'];return _0x12c5b4<this['_startingVersion']?this['_startingVersion']:_0x12c5b4;}['_createInitialRevision'](_0x1f4c63){const _0xfb48fd=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0xfb48fd)this['_initialRevisionId']=_0xfb48fd['id'];else{const _0x55f627=!this['editor']['model']['document']['roots']['find'](_0x273047=>this['editor']['model']['hasContent'](_0x273047)),_0x561c40=this['editor']['plugins']['get']('Users')['me']['id'],_0x3ddfd5=m(this['editor']['locale'],_0x55f627?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x1f4c63,'to':_0x1f4c63,'id':this['_initialRevisionId'],'name':_0x3ddfd5,'creatorId':_0x561c40});}}['_createCurrentRevision'](_0x20b139){const _0x5ceedd=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5ceedd),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x20b139,'to':_0x20b139,'id':_0x5ceedd,'name':'','creatorId':null}));}['_makeRevision']({name:_0x5c326c,from:_0x3de4b0,to:_0x56033d,creatorId:_0x9eb6e0,id:_0x4d9ce4}){const _0xd91e94=this['buildRevisionData']({'from':_0x3de4b0,'to':_0x56033d});_0xd91e94['name']=_0x5c326c,_0xd91e94['creatorId']=_0x9eb6e0,_0xd91e94['id']=_0x4d9ce4;const _0x61903d=this['addRevisionData'](_0xd91e94);return this['adapter']&&this['_bufferUpdate'](_0xd91e94['id'],_0xd91e94,!0x0),_0x61903d;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x594509){return(_0x594509=_0x594509['filter'](_0x3fa2b4=>!_0x3fa2b4['name']||'revision-start'!==_0x3fa2b4['name']&&'revision-end'!==_0x3fa2b4['name']))['forEach'](_0x9d5359=>{'string'!=typeof _0x9d5359&&(_0x9d5359['children']=this['_removeRevisionMarkers'](_0x9d5359['children']),_0x9d5359['attributes']=_0x9d5359['attributes']['filter'](_0x11a017=>!_0x11a017[0x0]['startsWith']('data-revision-')));}),_0x594509;}}function C(_0x2dd568,_0x261a07){const _0x42e2f2=_0x261a07['editing']['view']['document'];if('string'==typeof _0x2dd568)return new _0x583ce5(_0x42e2f2,_0x2dd568);{const _0x2038ae=_0x2dd568['children']['map'](_0x134578=>C(_0x134578,_0x261a07));return new(P[_0x2dd568['type']]||_0x2ac5e3)(_0x42e2f2,_0x2dd568['name'],_0x2dd568['attributes'],_0x2038ae);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x5102f6){this['editor']=_0x5102f6,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'](_0x13ad91){this['source']=_0x13ad91;const _0x548c05=new Map(),_0x152eda=new Map(),_0xf8797=this['editor']['model']['document']['roots']['map'](_0x5505a4=>_0x5505a4['rootName']);for(const _0x41040e of _0xf8797){const _0x5b9844=this['editor']['model']['document']['getRoot'](_0x41040e),_0xb98e1=T(_0x5b9844);_0x548c05['set'](_0x41040e,_0xb98e1),_0x152eda['set'](_0x41040e,Object['fromEntries'](_0x5b9844['getAttributes']()));}const _0x4f321b=Array['from'](this['editor']['model']['markers'])['map'](_0x1d9172=>[_0x1d9172['name'],_0x1d9172['getRange']()]),_0x3b3880=this['source']['version'];this['_saveMetaData'](_0x3b3880,_0x548c05,_0x4f321b,_0x152eda),this['_startingRevisionId']=this['_revisionId'];const _0x1d63fe=new Map(),_0x368096=new Map();for(const _0x4953ff of _0xf8797){const _0x205c41=F(_0x4953ff);_0x1d63fe['set'](_0x4953ff,_0x205c41),_0x368096['set'](_0x4953ff,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1d63fe,[],_0x368096);}['getData'](_0x388925,_0x3ad7e6){if(this['_lastFrom']===_0x388925&&this['_lastTo']<=_0x3ad7e6)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x3ad7e6,!0x0);else{if(!this['_savedMetaData']['has'](_0x388925)){const _0x573303=this['_getPreviousFrom'](_0x388925);this['_calculateMetaData'](_0x573303,_0x388925,!0x1);}this['_calculateMetaData'](_0x388925,_0x3ad7e6,!0x0);}return this['_lastFrom']=_0x388925,this['_lastTo']=_0x3ad7e6,this['_getState']();}['loadState'](_0x28d152){this['_reset'](),this['_lastFrom']=_0x28d152['fromVersion'],this['_lastTo']=_0x28d152['toVersion'];for(const _0x4a4385 in _0x28d152['diffData']){const _0x16f98=_0x28d152['diffData'][_0x4a4385]['attachChange'],_0x22a1a4=_0x22d7e8(_0x28d152['diffData'][_0x4a4385]['attributesBefore'])||{},_0x1bcc81=this['_makeModelFromViewString'](_0x28d152['diffData'][_0x4a4385]['deletions']);_0x1bcc81['rootName']=_0x4a4385,_0x1bcc81['_isAttached']=!_0x16f98||!_0x16f98['isAttached'],_0x1bcc81['isAttached']=()=>_0x1bcc81['_isAttached'],this['_baseRoots']['set'](_0x4a4385,_0x1bcc81),this['_baseRootsAttributes']['set'](_0x4a4385,_0x22a1a4),_0x16f98&&this['_touchedRoots']['set'](_0x4a4385,_0x16f98);const _0x4675f0=this['_makeIdsRoot'](_0x1bcc81);this['_baseIdsRoots']['set'](_0x4a4385,_0x4675f0);for(const [_0x518de7,_0xc2e591]of _0x1bcc81['markers']){if(!_0x518de7['startsWith']('revision:'))continue;const _0x5775d2=_0x518de7['split'](':')[0x2];for(const _0x8be8c2 of _0xc2e591['getWalker']({'singleCharacters':!0x0})){const _0x4015fb=this['_getVidAttributeName'](_0x8be8c2),_0x3d49c5='elementEnd'==_0x8be8c2['type']?_0x8be8c2['previousPosition']['path']['slice'](0x0,-0x1):_0x8be8c2['previousPosition']['path'],_0x409099=_0x4675f0['getNodeByPath'](_0x3d49c5)['getAttribute'](_0x4015fb);this['_touched']['set'](_0x409099,{'userId':_0x5775d2});}}}this['_startingRevisionId']=this['_revisionId'];const _0x3c1a38=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x5e98b8=>!this['_touched']['has'](_0x5e98b8));let _0x48e90c=0x0;const _0x10c421=new Map();for(const _0x482a01 in _0x28d152['diffData']){const _0x3e8396=_0x28d152['diffData'][_0x482a01]['attachChange'],_0x13e31a=_0x22d7e8(_0x28d152['diffData'][_0x482a01]['attributesAfter'])||{},_0x19ebd2=this['_makeModelFromViewString'](_0x28d152['diffData'][_0x482a01]['insertions']);_0x19ebd2['rootName']=_0x482a01,_0x19ebd2['_isAttached']=!_0x3e8396||_0x3e8396['isAttached'],_0x19ebd2['isAttached']=()=>_0x19ebd2['_isAttached'],this['_diffRoots']['set'](_0x482a01,_0x19ebd2),this['_diffRootsAttributes']['set'](_0x482a01,_0x13e31a);const _0x3a708e=this['_makeIdsRoot'](_0x19ebd2,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x482a01,_0x3a708e),_0x10c421['set'](_0x482a01,_0x19ebd2['isAttached']()?_0x13e31a:{});for(const [_0x45d7e4,_0x18f1a]of _0x19ebd2['markers']){if(!_0x45d7e4['startsWith']('revision:'))continue;const _0x1f9246=_0x45d7e4['split'](':')[0x2];for(const _0x3010eb of _0x18f1a['getWalker']({'singleCharacters':!0x0})){const _0x43a8af=this['_getVidAttributeName'](_0x3010eb),_0x55ca72=this['_revisionId']++,_0x33dad8='elementEnd'==_0x3010eb['type']?_0x3010eb['previousPosition']['path']['slice'](0x0,-0x1):_0x3010eb['previousPosition']['path'];_0x3a708e['getNodeByPath'](_0x33dad8)['_setAttribute'](_0x43a8af,_0x55ca72),this['_touched']['set'](_0x55ca72,{'userId':_0x1f9246});}}for(const _0xe06462 of this['editor']['model']['createRangeIn'](_0x19ebd2)['getWalker']({'singleCharacters':!0x0})){const _0x11c1f5=this['_getVidAttributeName'](_0xe06462),_0xeec6a='elementEnd'==_0xe06462['type']?_0xe06462['previousPosition']['path']['slice'](0x0,-0x1):_0xe06462['previousPosition']['path'],_0x2a46a0=_0x3a708e['getNodeByPath'](_0xeec6a);_0x2a46a0['getAttribute'](_0x11c1f5)>0x0||_0x2a46a0['_setAttribute'](_0x11c1f5,_0x3c1a38[_0x48e90c++]);}for(const [_0x1c0102,_0x4ec3e1]of _0x19ebd2['markers'])_0x1c0102['startsWith']('revision:')||this['_markers']['set'](_0x1c0102,_0x4ec3e1);}const _0xbf9f94=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0xbf9f94),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xbf9f94,0x1));const _0x595f42=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x595f42),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x595f42,0x1));const _0xc4e397=Array['from'](this['_diffRoots'])['map'](([_0x508419,_0xed9c32])=>[_0x508419,T(_0xed9c32)]);this['_saveMetaData'](this['_lastTo'],_0xc4e397,this['_markers'],_0x10c421);}['_makeModelFromViewString'](_0x37fd0a){const _0x4df0bf=JSON['parse'](_0x37fd0a),_0x3d9ae3=this['editor']['editing']['view']['document'],_0x4e669c=new _0xd84e17(_0x3d9ae3,_0x4df0bf['map'](_0x44517a=>C(_0x44517a,this['editor'])));return this['editor']['data']['toModel'](_0x4e669c);}['_saveMetaData'](_0x1628d9,_0x1133b9,_0x4555c1,_0x56bfc9){const _0x5826b8=new Map(_0x1133b9),_0x351af7=new Map(_0x22d7e8(_0x56bfc9)),_0x52ab1d=new Map();for(const [_0x290a1e,_0x39ca62]of _0x4555c1)_0x52ab1d['set'](_0x290a1e,{'start':_0x39ca62['start']['clone'](),'end':_0x39ca62['end']['clone'](),'rootName':_0x39ca62['root']['rootName']});this['_savedMetaData']['set'](_0x1628d9,{'roots':_0x5826b8,'markers':_0x52ab1d,'rootsAttributes':_0x351af7});}['_removeMetaData'](_0x352849){this['_savedMetaData']['delete'](_0x352849);}['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'](_0x2b4cfa,_0x3f1a6d=null){let _0x354b81=null;_0x2b4cfa['is']('documentFragment')||(_0x354b81=new ft(_0x2b4cfa['name'],{'vid_start':null===_0x3f1a6d?this['_revisionId']++:_0x3f1a6d++}));const _0x517e8c=[];for(const _0x7140c3 of _0x2b4cfa['getChildren']())if(_0x7140c3['is']('element')){_0x517e8c['push'](this['_makeIdsRoot'](_0x7140c3,_0x3f1a6d));const _0x44b2e3=_0x517e8c[_0x517e8c['length']-0x1];null!==_0x3f1a6d&&(_0x3f1a6d=_0x44b2e3['is']('element','$text')?_0x44b2e3['getAttribute']('vid')+0x1:_0x44b2e3['getAttribute']('vid_end')+0x1);}else{for(let _0x3ebaa4=0x0;_0x3ebaa4<_0x7140c3['offsetSize'];_0x3ebaa4++)_0x517e8c['push'](new ft('$text',{'vid':null===_0x3f1a6d?this['_revisionId']++:_0x3f1a6d++}));}if(_0x2b4cfa['is']('documentFragment')){const _0x229754=F(_0x2b4cfa['rootName']);return _0x229754['_insertChild'](0x0,_0x517e8c),_0x229754;}return _0x354b81['_setAttribute']('vid_end',null===_0x3f1a6d?this['_revisionId']++:_0x3f1a6d++),_0x354b81['_insertChild'](0x0,_0x517e8c),_0x354b81;}['_calculateMetaData'](_0x43330b,_0x3e64a0,_0x4052e9){this['_reset']();const {roots:_0x4efdb7,markers:_0x11d85f,rootsAttributes:_0x35dd12}=this['_savedMetaData']['get'](_0x43330b);this['_baseRoots']=new Map(_0x4efdb7),this['_baseRootsAttributes']=new Map(_0x22d7e8(_0x35dd12));for(const [_0x36e6d1,_0x4c2323]of this['_baseRoots'])if('$graveyard'!==_0x36e6d1&&(this['_diffRoots']['set'](_0x36e6d1,T(_0x4c2323)),this['_diffRootsAttributes']=new Map(_0x22d7e8(_0x35dd12)),_0x4052e9)){const _0x1f0f41=this['_revisionId'];this['_idsRoots']['set'](_0x36e6d1,this['_makeIdsRoot'](_0x4c2323)),this['_baseIdsRoots']['set'](_0x36e6d1,this['_makeIdsRoot'](_0x4c2323,_0x1f0f41));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x4052e9&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0xbdf34a,_0x46a1ac]of _0x11d85f){const _0x297b1c=this['_baseRoots']['get'](_0x46a1ac['rootName']),_0x32cea1=this['_diffRoots']['get'](_0x46a1ac['rootName']),_0x389fa6=new vt(this['_fixPosition'](_0x46a1ac['start'],_0x297b1c),this['_fixPosition'](_0x46a1ac['end'],_0x297b1c)),_0x47dea7=this['_fixRange'](_0x389fa6,_0x32cea1);_0x297b1c['markers']['set'](_0xbdf34a,_0x389fa6),this['_markers']['set'](_0xbdf34a,_0x47dea7);}this['_applyOperations'](_0x43330b,_0x3e64a0,_0x4052e9);}['_applyOperations'](_0x47aded,_0x153d5e,_0x211bf6){for(const _0x4bcdd6 of this['source']['getOperations'](_0x47aded,_0x153d5e))this['_handleOperation'](_0x4bcdd6,_0x211bf6);for(const _0x566493 of this['_diffRoots']['values']())_0x566493['markers']['clear']();for(const [_0x4e2204,_0x1e5100]of this['_markers']){this['_diffRoots']['get'](_0x1e5100['root']['rootName'])['markers']['set'](_0x4e2204,_0x1e5100['clone']());}const _0x3f3b3e=new Map(),_0x32c2cb=new Map();for(const [_0xbf2702,_0x3f4417]of this['_diffRoots'])_0x3f3b3e['set'](_0xbf2702,T(_0x3f4417)),_0x32c2cb['set'](_0xbf2702,this['_diffRootsAttributes']['get'](_0xbf2702));this['_saveMetaData'](_0x153d5e,_0x3f3b3e,this['_markers'],_0x32c2cb);}['_getPreviousFrom'](_0x2abfea){const _0x285fd6=Array['from'](this['_savedMetaData']['keys']());_0x285fd6['sort']((_0x4e28a9,_0x69823f)=>_0x4e28a9-_0x69823f),_0x285fd6['reverse']();for(const _0xa93de8 of _0x285fd6)if(_0xa93de8<_0x2abfea)return _0xa93de8;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x337cb5,_0x7c49a6){const _0x471589=Array['from'](_0x7c49a6['markers'])['map'](([_0x40bb27,_0x7ded1a])=>[_0x40bb27,this['_fixRange'](_0x7ded1a,_0x337cb5)]);_0x337cb5['markers']=new Map(_0x471589);}['_transformMarkers'](_0x1f111d){for(const _0x3bcdcd of this['_markers']['values']()){const _0x9e65d6=_0x3bcdcd['getTransformedByOperation'](_0x1f111d),_0x1ac142=vt['_createFromRanges'](_0x9e65d6);_0x3bcdcd['start']=_0x1ac142['start'],_0x3bcdcd['end']=_0x1ac142['end'];}}['_handleOperation'](_0x395342,_0x1676bf){if('addRoot'!=_0x395342['type']&&'detachRoot'!=_0x395342['type']){if('insert'==_0x395342['type']){const _0x29abbe=_0x395342['position']['root']['rootName'];this['_diffRoots']['has'](_0x29abbe)||(this['_diffRoots']['set'](_0x29abbe,F(_0x29abbe,!0x0)),this['_diffRootsAttributes']['set'](_0x29abbe,{}),_0x1676bf&&this['_idsRoots']['set'](_0x29abbe,F(_0x29abbe,!0x0)));}else{if('addRootAttribute'==_0x395342['type']||'removeRootAttribute'==_0x395342['type']||'changeRootAttribute'==_0x395342['type'])return void this['_handleRootAttributeOperation'](_0x395342);'marker'==_0x395342['type']&&this['_handleMarkerOperation'](_0x395342);}if('marker'!==_0x395342['type']){const _0x2fdf8f=this['_cloneOperation'](_0x395342,this['_diffRoots']);_0x2fdf8f['_execute'](),this['_transformMarkers'](_0x2fdf8f);}if(_0x1676bf)switch(_0x395342['type']){case'insert':this['_handleInsertOperation'](_0x395342);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x395342);break;case'merge':this['_handleMergeOperation'](_0x395342);break;case'split':this['_handleSplitOperation'](_0x395342);}}else this['_handleRootOperation'](_0x395342,_0x1676bf);}['_cloneOperation'](_0x5edd0d,_0xfda7bf){const _0x4edcec=_0x5edd0d['clone']();return _0x4edcec['_authorId']=_0x5edd0d['_authorId'],this['_fixOperation'](_0x4edcec,_0xfda7bf),_0x4edcec;}['_getBaseVids'](_0x4d862a){return _0x4d862a['map'](_0x355d26=>{const _0x367cfb=this['_getVidAttributeName'](_0x355d26);return Number(_0x355d26['item']['getAttribute'](_0x367cfb));});}['_generateTape'](_0x3217d0,_0x5107d5){if(_0x3217d0['is']('element','$text'))_0x5107d5['push']({'item':_0x3217d0,'type':'text'});else{_0x3217d0['is']('element')&&_0x5107d5['push']({'item':_0x3217d0,'type':'elementStart'});for(const _0x3bfcd7 of _0x3217d0['getChildren']())this['_generateTape'](_0x3bfcd7,_0x5107d5);_0x3217d0['is']('element')&&_0x5107d5['push']({'item':_0x3217d0,'type':'elementEnd'});}return _0x5107d5;}['_getState'](){const _0x491e2e=new Map(this['_touched']),_0xa4b0aa=new Map(_0x491e2e),_0x30b226=new Map(),_0x575839={'insertions':{},'deletions':{}},_0x166792={'insertions':{},'deletions':{}},_0x42b81a=new Map(),_0x5bc434=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x5bc434['delete']('$graveyard');for(const _0xfd7745 of _0x5bc434){const _0x195c7d=this['_diffRoots']['get'](_0xfd7745)||F(_0xfd7745,!0x1),_0x8fa90b=this['_baseRoots']['get'](_0xfd7745)||F(_0xfd7745,!0x1);_0x195c7d['isAttached']()||_0x8fa90b['isAttached']()?(_0x575839['insertions'][_0xfd7745]=T(_0x195c7d),_0x575839['deletions'][_0xfd7745]=T(_0x8fa90b),this['_copyMarkers'](_0x575839['deletions'][_0xfd7745],_0x8fa90b),this['_copyMarkers'](_0x575839['insertions'][_0xfd7745],_0x195c7d),_0x166792['insertions'][_0xfd7745]=this['_generateTape'](this['_idsRoots']['get'](_0xfd7745),[]),_0x166792['deletions'][_0xfd7745]=this['_generateTape'](this['_baseIdsRoots']['get'](_0xfd7745)||F(_0xfd7745,!0x1),[])):_0x5bc434['delete'](_0xfd7745);}for(const _0x1bf0fe of _0x5bc434){const _0x41bfd0=_0x166792['insertions'][_0x1bf0fe];for(const _0x504fc7 of _0x41bfd0){const _0x2d0a26=this['_getVidAttributeName'](_0x504fc7),_0x14b370=_0x504fc7['item']['getAttribute'](_0x2d0a26);_0xa4b0aa['delete'](_0x14b370),_0x14b370>=this['_startingRevisionId']&&_0x30b226['set'](_0x14b370,_0x491e2e['get'](_0x14b370));}}for(const _0x49aa29 of _0x5bc434){const _0x255076=_0x166792['insertions'][_0x49aa29],_0x353a4b=this['_getBaseVids'](_0x166792['deletions'][_0x49aa29]);let _0x4059b5=0x0;for(const _0x191c49 of _0x255076){const _0x46b7c2=this['_getVidAttributeName'](_0x191c49),_0x5b1f6f=_0x191c49['item']['getAttribute'](_0x46b7c2);if(!_0x30b226['has'](_0x5b1f6f)&&!_0x42b81a['has'](_0x5b1f6f)){if(_0xa4b0aa['has'](_0x5b1f6f))_0x4059b5++;else{if(_0x5b1f6f!=_0x353a4b[_0x4059b5]){const _0x228331=_0x491e2e['get'](_0x5b1f6f)||_0x491e2e['get'](_0x353a4b[_0x4059b5]);for(;_0x5b1f6f!=_0x353a4b[_0x4059b5];)_0xa4b0aa['has'](_0x353a4b[_0x4059b5])||(_0x42b81a['set'](_0x353a4b[_0x4059b5],_0x228331),_0x491e2e['set'](_0x353a4b[_0x4059b5],_0x228331)),_0x4059b5++;}_0x4059b5++;}}}}for(const _0x248a4f of _0x5bc434){const _0x267bed=_0x166792['insertions'][_0x248a4f];for(const _0x3496cd of _0x267bed){const _0x6d821c=this['_getVidAttributeName'](_0x3496cd),_0x58dd50=_0x3496cd['item']['getAttribute'](_0x6d821c);if(_0x42b81a['has'](_0x58dd50)){const _0x3ad605=_0x42b81a['get'](_0x58dd50);_0xa4b0aa['has'](_0x58dd50)||_0xa4b0aa['set'](_0x58dd50,{..._0x3ad605}),_0x30b226['set'](_0x58dd50,{..._0x3ad605});}}}for(const _0x3fc8c8 of _0xa4b0aa['keys']())_0x3fc8c8>=this['_startingRevisionId']&&_0xa4b0aa['delete'](_0x3fc8c8);const _0x440efe=new Map();for(const _0x36aa57 of _0x5bc434){let _0x3ef40e=_0x166792['insertions'][_0x36aa57];for(const _0x26d806 of _0x3ef40e)if(_0x26d806['item']['is']('element','tableCell')){const _0x2ea72f=this['_getVidAttributeName'](_0x26d806),_0x5d5d15=_0x26d806['item']['getAttribute'](_0x2ea72f);if(_0x30b226['has'](_0x5d5d15)){const _0x4cbd9b=_0x26d806['item']['parent']['parent']['getAttribute']('vid_start'),_0x44f6aa=_0x440efe['get'](_0x4cbd9b)||new Set();_0x44f6aa['add'](_0x30b226['get'](_0x5d5d15)['userId']),_0x440efe['set'](_0x4cbd9b,_0x44f6aa);}}_0x3ef40e=_0x166792['deletions'][_0x36aa57];for(const _0x3a0911 of _0x3ef40e)if(_0x3a0911['item']['is']('element','tableCell')){const _0x5e93b9=this['_getVidAttributeName'](_0x3a0911),_0x4a0c5b=_0x3a0911['item']['getAttribute'](_0x5e93b9);if(_0xa4b0aa['has'](_0x4a0c5b)){const _0x37419c=_0x3a0911['item']['parent']['parent']['getAttribute']('vid_start'),_0x4bd537=_0x440efe['get'](_0x37419c)||new Set();_0x4bd537['add'](_0xa4b0aa['get'](_0x4a0c5b)['userId']),_0x440efe['set'](_0x37419c,_0x4bd537);}}for(const _0x535b5f of _0x440efe['keys']())(_0x30b226['has'](_0x535b5f)||_0xa4b0aa['has'](_0x535b5f))&&_0x440efe['delete'](_0x535b5f);}for(const _0x120076 of _0x5bc434){const _0x434731=_0x166792['insertions'][_0x120076];let _0xf39f6d=null,_0x10e4a0=null;for(const _0x599b27 of _0x434731){const _0x387c67=this['_getVidAttributeName'](_0x599b27),_0x57afa9=_0x599b27['item']['getAttribute'](_0x387c67),_0x442dbf=_0x440efe['get'](_0x57afa9);_0x442dbf&&'elementStart'==_0x599b27['type']&&(_0xf39f6d=Array['from'](_0x442dbf)[0x0],_0x10e4a0=_0x599b27['item']['getAttribute']('vid_end')),_0xf39f6d&&(_0xa4b0aa['set'](_0x57afa9,{'userId':_0xf39f6d}),_0x30b226['set'](_0x57afa9,{'userId':_0xf39f6d})),_0x57afa9==_0x10e4a0&&(_0xf39f6d=null,_0x10e4a0=null);}}const _0x1c7b32={},_0x147450=new Set();for(const _0x516dda of _0x5bc434){const _0x175e0f=_0x575839['deletions'][_0x516dda],_0x2fed8c=_0x575839['insertions'][_0x516dda];for(const {userId:_0x503f56}of this['_touchedMarkers']['values']())null!==_0x503f56&&_0x147450['add'](_0x503f56);for(const {userId:_0x2ec5ca}of this['_touchedRoots']['values']())null!==_0x2ec5ca&&_0x147450['add'](_0x2ec5ca);this['_markChanges'](_0x2fed8c,_0x166792['insertions'][_0x516dda],_0x30b226,'insertion',_0x147450),this['_markChanges'](_0x175e0f,_0x166792['deletions'][_0x516dda],_0xa4b0aa,'deletion',_0x147450),_0x1c7b32[_0x516dda]={'insertions':this['_prepareViewToSave'](_0x2fed8c),'deletions':this['_prepareViewToSave'](_0x175e0f),'attachChange':this['_touchedRoots']['get'](_0x516dda)||null,'attributesBefore':_0x22d7e8(this['_baseRootsAttributes']['get'](_0x516dda))||{},'attributesAfter':_0x22d7e8(this['_diffRootsAttributes']['get'](_0x516dda))};}return{'diffData':_0x1c7b32,'authorsIds':Array['from'](_0x147450)};}['_processRootBeforeSave'](_0x51f292){for(const [,_0x38a8a7]of _0x51f292['markers']){const _0x16acbd=_0x38a8a7['start']['getAncestors']()['filter'](_0x1ad3b6=>'tableCell'==_0x1ad3b6['name']);for(const _0x977d59 of _0x16acbd)0x1==_0x977d59['childCount']&&_0x977d59['getChild'](0x0)['is']('element','paragraph')&&_0x977d59['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x2b03a0){this['_processRootBeforeSave'](_0x2b03a0);const _0x3e5263=this['editor']['data']['toView'](_0x2b03a0,{}),_0x22f2b9=Array['from'](_0x3e5263['getChildren']())['map'](_0x26c371=>this['_getViewJson'](_0x26c371));return JSON['stringify'](_0x22f2b9);}['_getViewJson'](_0x47c1d9){if(_0x47c1d9['is']('$text'))return _0x47c1d9['data'];{const _0x1b924a=_0x47c1d9;return{'type':Object['keys'](P)['find'](_0x1c16ab=>_0x47c1d9 instanceof P[_0x1c16ab]),'name':_0x1b924a['name'],'attributes':Array['from'](_0x1b924a['getAttributes']()),'children':Array['from'](_0x1b924a['getChildren']())['map'](_0x4f14a8=>this['_getViewJson'](_0x4f14a8))};}}['_markChanges'](_0x397c45,_0x228940,_0x5ecafb,_0x2b6fa0,_0x3d6462){let _0x56677d=null,_0x3a46c6=null,_0x4c460a=0x0;const _0x29e015=this['editor']['model'];for(let _0x5ec4be=0x0;_0x5ec4be<_0x228940['length'];_0x5ec4be++){const _0x38cb08=this['_getVidAttributeName'](_0x228940[_0x5ec4be]),_0x19b395=_0x228940[_0x5ec4be]['item']['getAttribute'](_0x38cb08),_0x547ef9=_0x5ecafb['get'](_0x19b395),_0x6d6b56=_0x5ec4be==_0x228940['length']-0x1;(!_0x56677d&&_0x547ef9&&(_0x56677d=_0x547ef9,_0x3a46c6=_0x228940[_0x5ec4be]),_0x56677d&&(!_0x547ef9||_0x547ef9['userId']!=_0x56677d['userId']))&&(_0x516bf7(_0x547ef9,B(_0x3a46c6,_0x397c45,_0x29e015),B(_0x228940[_0x5ec4be],_0x397c45,_0x29e015)),_0x56677d=_0x547ef9||null,_0x3a46c6=_0x547ef9?_0x228940[_0x5ec4be]:null),_0x56677d&&_0x6d6b56&&_0x516bf7(_0x547ef9,B(_0x3a46c6,_0x397c45,_0x29e015),J(_0x228940[_0x5ec4be],_0x397c45,_0x29e015));}function _0x516bf7(_0x5e9f3b,_0x780f4,_0x1f8ccc){const _0x11ac10=_0x56677d['userId'],_0x1059ee='revision:'+_0x2b6fa0+':'+_0x11ac10+':'+_0x4c460a++,_0x1ef6c4=_0x29e015['createRange'](_0x780f4,_0x1f8ccc);_0x397c45['markers']['set'](_0x1059ee,_0x1ef6c4),null!==_0x11ac10&&_0x3d6462['add'](_0x11ac10);}}['_getVidAttributeName'](_0x5d9e7d){switch(_0x5d9e7d['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x46e0ba,_0x1e7aca){_0x46e0ba['baseVersion']=null;for(const _0x22ccb2 in _0x46e0ba){const _0x2abe54=_0x46e0ba[_0x22ccb2];if(_0x2abe54 instanceof gt){const _0x99d567=_0x1e7aca['get'](_0x2abe54['root']['rootName']);_0x46e0ba[_0x22ccb2]=this['_fixPosition'](_0x2abe54,_0x99d567);}if(_0x2abe54 instanceof vt){const _0x36637c=_0x1e7aca['get'](_0x2abe54['root']['rootName']);_0x46e0ba[_0x22ccb2]=this['_fixRange'](_0x2abe54,_0x36637c);}'root'===_0x22ccb2&&(_0x46e0ba['root']=_0x1e7aca['get'](_0x46e0ba['root']['rootName']));}}['_fixRange'](_0x367e05,_0x27e0d1){return this['editor']['model']['createRange'](this['_fixPosition'](_0x367e05['start'],_0x27e0d1),this['_fixPosition'](_0x367e05['end'],_0x27e0d1));}['_fixPosition'](_0x44a306,_0x1e7a3e){return this['editor']['model']['createPositionFromPath'](_0x1e7a3e,_0x44a306['path'],_0x44a306['stickiness']);}['_handleInsertOperation'](_0x5dc16c){const _0x8986db=this['_idsRoots']['get'](_0x5dc16c['position']['root']['rootName']),_0x329e04=this['_fixPosition'](_0x5dc16c['position'],_0x8986db),_0x417485=null===_0x5dc16c['_authorId']?null:_0x5dc16c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x584325=_0x329e04['parent'],_0x36f2f1=this['_revisionId'],_0x61a180=[];for(const _0x246b06 of _0x5dc16c['nodes'])if(_0x246b06['is']('element'))_0x61a180['push'](this['_makeIdsRoot'](_0x246b06));else{for(let _0x5010f0=0x0;_0x5010f0<_0x246b06['offsetSize'];_0x5010f0++)_0x61a180['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x9b536f=this['_revisionId'];for(let _0x42826a=_0x36f2f1;_0x42826a<_0x9b536f;_0x42826a++)this['_touched']['set'](_0x42826a,{'userId':_0x417485});_0x584325['_insertChild'](_0x329e04['offset'],_0x61a180);}['_handleMoveOperation'](_0x1fec1b){(_0x1fec1b=this['_cloneOperation'](_0x1fec1b,this['_idsRoots']))['_execute']();const _0x11e1ff=null===_0x1fec1b['_authorId']?null:_0x1fec1b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x68210d=_0x1fec1b['getMovedRangeStart'](),_0xdb7f22=_0x68210d['parent'],_0x2917e4=_0x68210d['offset'];!function _0x46349e(_0x4b7141,_0x2d95a0,_0x3828b8,_0x1a43fd){for(let _0x18b7f7=_0x3828b8;_0x18b7f7<_0x1a43fd;_0x18b7f7++){const _0x27f588=_0x2d95a0['getChild'](_0x18b7f7);_0x27f588['is']('element','$text')?_0x4b7141['set'](_0x27f588['getAttribute']('vid'),{'userId':_0x11e1ff}):(_0x4b7141['set'](_0x27f588['getAttribute']('vid_start'),{'userId':_0x11e1ff}),_0x46349e(_0x4b7141,_0x27f588,0x0,_0x27f588['childCount']),_0x4b7141['set'](_0x27f588['getAttribute']('vid_end'),{'userId':_0x11e1ff}));}}(this['_touched'],_0xdb7f22,_0x2917e4,_0x2917e4+_0x1fec1b['howMany']);}['_handleMergeOperation'](_0x2f47b7){const _0x5b82fe=null===(_0x2f47b7=this['_cloneOperation'](_0x2f47b7,this['_idsRoots']))['_authorId']?null:_0x2f47b7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x236916=_0x2f47b7['targetPosition']['parent'],_0x5b424a=_0x2f47b7['sourcePosition']['parent'],_0x556907=_0x236916['getAttribute']('vid_end'),_0x461029=_0x5b424a['getAttribute']('vid_start');_0x236916['_setAttribute']('vid_end',_0x5b424a['getAttribute']('vid_end')),_0x5b424a['_setAttribute']('vid_end',_0x556907),this['_touched']['set'](_0x461029,{'userId':_0x5b82fe}),this['_touched']['set'](_0x556907,{'userId':_0x5b82fe}),_0x2f47b7['_execute']();}['_handleSplitOperation'](_0x28b02e){const _0x5142d1=null===(_0x28b02e=this['_cloneOperation'](_0x28b02e,this['_idsRoots']))['_authorId']?null:_0x28b02e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2a8ec3=_0x28b02e['graveyardPosition'],_0x271f90=_0x28b02e['splitPosition']['parent'];_0x28b02e['_execute']();const _0x3b6b35=_0x271f90['getAttribute']('vid_end'),_0x409aac=_0x28b02e['insertionPosition']['nodeAfter'];if(_0x2a8ec3){const _0x1abcab=_0x409aac['getAttribute']('vid_end'),_0x3cbed0=_0x271f90['getAttribute']('vid_end');_0x271f90['_setAttribute']('vid_end',_0x1abcab),_0x409aac['_setAttribute']('vid_end',_0x3cbed0),this['_touched']['set'](_0x271f90['getAttribute']('vid_end'),{'userId':_0x5142d1}),this['_touched']['set'](_0x409aac['getAttribute']('vid_start'),{'userId':_0x5142d1});}else{const _0x95bad8=this['_revisionId']++,_0x5280cd=this['_revisionId']++;_0x271f90['_setAttribute']('vid_end',_0x95bad8),_0x409aac['_setAttribute']('vid_start',_0x5280cd),_0x409aac['_setAttribute']('vid_end',_0x3b6b35),this['_touched']['set'](_0x95bad8,{'userId':_0x5142d1}),this['_touched']['set'](_0x5280cd,{'userId':_0x5142d1});}}['_handleMarkerOperation'](_0x26c2df){if(!_0x26c2df['affectsData'])return;const _0x37f402=(_0x26c2df=this['_cloneOperation'](_0x26c2df,this['_diffRoots']))['oldRange']?_0x26c2df['oldRange']['root']:null,_0x4d600f=_0x26c2df['newRange']?_0x26c2df['newRange']['root']:null;_0x37f402&&this['_markers']['delete'](_0x26c2df['name']),_0x4d600f&&this['_markers']['set'](_0x26c2df['name'],_0x26c2df['newRange']['clone']());const _0x343be7=null===_0x26c2df['_authorId']?null:_0x26c2df['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2e268e=_0x26c2df['name'];if(!this['_touchedMarkers']['has'](_0x2e268e))return void this['_touchedMarkers']['set'](_0x2e268e,{'range':_0x26c2df['oldRange'],'userId':_0x343be7});const _0x20b359=this['_touchedMarkers']['get'](_0x2e268e),_0xc2a099=_0x20b359['range'],_0x87b83f=_0x26c2df['newRange'];null==_0xc2a099&&null==_0x87b83f||_0xc2a099&&_0x87b83f&&_0xc2a099['isEqual'](_0x87b83f)?this['_touchedMarkers']['delete'](_0x26c2df['name']):_0x20b359['userId']=_0x343be7;}['_handleRootOperation'](_0x3f146e,_0x57cb79){this['_diffRoots']['has'](_0x3f146e['rootName'])?this['_diffRoots']['get'](_0x3f146e['rootName'])['_isAttached']=_0x3f146e['isAdd']:(this['_diffRoots']['set'](_0x3f146e['rootName'],F(_0x3f146e['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x3f146e['rootName'],{}),_0x57cb79&&this['_idsRoots']['set'](_0x3f146e['rootName'],F(_0x3f146e['rootName'],!0x0)));const _0x48eee7=null===_0x3f146e['_authorId']?null:_0x3f146e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x545901=this['_touchedRoots']['get'](_0x3f146e['rootName']);_0x545901&&_0x545901['userId']===_0x48eee7?this['_touchedRoots']['delete'](_0x3f146e['rootName']):this['_touchedRoots']['set'](_0x3f146e['rootName'],{'userId':_0x48eee7,'isAttached':_0x3f146e['isAdd']});}['_handleRootAttributeOperation'](_0xd12167){const _0x3cba33=this['_diffRootsAttributes']['get'](_0xd12167['root']['rootName']);null===_0xd12167['newValue']?delete _0x3cba33[_0xd12167['key']]:_0x3cba33[_0xd12167['key']]=_0xd12167['newValue'];}}function T(_0x36e49f){const _0x136719=F(_0x36e49f['rootName'],_0x36e49f['isAttached']());for(const _0xc369cc of _0x36e49f['getChildren']()){const _0x3e976d=_0xc369cc['_clone'](!0x0);_0x136719['_appendChild'](_0x3e976d);}return _0x136719;}function F(_0x3193ec,_0x490dea=!0x0){const _0x3ae508=new mt();return _0x3ae508['rootName']=_0x3193ec,_0x3ae508['_isAttached']=_0x490dea,_0x3ae508['isAttached']=()=>_0x3ae508['_isAttached'],_0x3ae508;}function B(_0x4f0cbf,_0x2f15b7,_0x265c62){const _0x2dc5a0='elementEnd'==_0x4f0cbf['type']?_0x265c62['createPositionAt'](_0x4f0cbf['item'],'end'):_0x265c62['createPositionBefore'](_0x4f0cbf['item']);return _0x265c62['createPositionFromPath'](_0x2f15b7,_0x2dc5a0['path'],_0x2dc5a0['stickiness']);}function J(_0x14ddeb,_0xbd500b,_0x55a056){const _0x4f28b1='elementStart'==_0x14ddeb['type']?_0x55a056['createPositionAt'](_0x14ddeb['item'],0x0):_0x55a056['createPositionAfter'](_0x14ddeb['item']);return _0x55a056['createPositionFromPath'](_0xbd500b,_0x4f28b1['path'],_0x4f28b1['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x2d45ba,_0x23be20){super(_0x2d45ba),this['focusTracker']=new _0x3a2941(),this['keystrokes']=new _0x5e0cef(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x23be20),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0xb5e208(this);}['render'](){super['render'](),_0x191e84({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x17b546=_0x44792c=>_0x44792c['stopPropagation']();this['keystrokes']['set']('arrowright',_0x17b546),this['keystrokes']['set']('arrowleft',_0x17b546),this['keystrokes']['set']('arrowup',_0x17b546),this['keystrokes']['set']('arrowdown',_0x17b546);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x31b1eb){this['revisionNameInputView']['fieldView']['element']['value']=_0x31b1eb['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x129344){const _0x54ff6b=new _0x35acf6(this['locale'],_0x488b1b),_0x49f259=_0x54ff6b['fieldView'];_0x49f259['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x4a8b35=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x129344&&(_0x4a8b35+='\x20('+m(this['locale'],'optional')+')'),(_0x54ff6b['label']=_0x4a8b35,_0x49f259['on']('input',()=>{this['revisionNameInputValue']=_0x49f259['element']['value']['trim']();}),_0x54ff6b);}}class u extends _0x16c53d{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x290bc2=this['editor'],_0x445ae3=_0x290bc2['plugins']['get']('RevisionTracker');_0x290bc2['ui']['componentFactory']['add']('revisionHistory',_0x35b9dc=>{const _0x782a02=_0x2a2bbb(_0x35b9dc),_0x593318=_0x782a02['panelView']['children'],_0x210843=new _0x42865f(_0x35b9dc),_0x98ac88=new _0x15bd49(_0x35b9dc),_0x43a8c7=new te(_0x35b9dc),_0x2eb924=new _0x15bd49(_0x35b9dc),_0x3563e9=new te(_0x35b9dc);return _0x782a02['bind']('isEnabled')['to'](_0x445ae3,'isReady',_0x445ae3,'isEnabled',_0x290bc2,'isReadOnly',(_0x3bd846,_0x175552,_0x26d792)=>_0x3bd846&&_0x175552&&!_0x26d792),_0x782a02['buttonView']['set']({'icon':_0x17dc28['history'],'label':m(_0x35b9dc,'Revision\x20history'),'tooltip':!0x0}),_0x43a8c7['set']({'label':m(_0x35b9dc,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x43a8c7['bind']('isEnabled')['to'](_0x445ae3,'isReady',_0x445ae3,'isEnabled',_0x290bc2,'isReadOnly',(_0x67d2ed,_0x40dc36,_0x5e9df1)=>_0x67d2ed&&_0x40dc36&&!_0x5e9df1),_0x43a8c7['on']('execute',()=>this['_showDialog']()),_0x3563e9['set']({'label':m(_0x35b9dc,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x3563e9['bind']('isEnabled')['to'](_0x445ae3,'isReady',_0x290bc2,'isReadOnly',(_0x3a3048,_0x2359d6)=>_0x3a3048&&!_0x2359d6),_0x3563e9['on']('execute',()=>{_0x290bc2['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x782a02['isOpen']=!0x1,_0x290bc2['editing']['view']['focus']();}),_0x98ac88['children']['add'](_0x43a8c7),_0x2eb924['children']['add'](_0x3563e9),_0x210843['role']='menu',_0x210843['items']['addMany']([_0x98ac88,_0x2eb924]),_0x593318['add'](_0x210843),_0x782a02;}),_0x290bc2['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0xd5b456=this['editor'],_0x28989e=_0xd5b456['locale'],_0x2bc8ca=new _0x789cb7(_0x28989e),_0x2e069e=new _0x81b0ff(_0x28989e);_0x2bc8ca['buttonView']['set']({'icon':_0x17dc28['history'],'label':m(_0x28989e,'Revision\x20history')});const _0x104f70=new _0x36350e(_0x28989e,_0x2bc8ca),_0x5baa5f=new _0x40f2ab(_0x28989e);_0x5baa5f['set']({'label':m(_0x28989e,'Save\x20current\x20revision')}),_0x5baa5f['delegate']('execute')['to'](_0x2bc8ca),_0x5baa5f['on']('execute',()=>{this['_showDialog']();}),_0x104f70['children']['add'](_0x5baa5f),_0x2e069e['items']['add'](_0x104f70);const _0x5caff7=new _0x36350e(_0x28989e,_0x2bc8ca),_0x429809=new _0x40f2ab(_0x28989e);return _0x429809['set']({'label':m(_0x28989e,'Open\x20revision\x20history')}),_0x429809['delegate']('execute')['to'](_0x2bc8ca),_0x429809['on']('execute',()=>{_0xd5b456['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x5caff7['children']['add'](_0x429809),_0x2e069e['items']['add'](_0x5caff7),_0x2bc8ca['panelView']['children']['add'](_0x2e069e),_0x2bc8ca;}['_showDialog'](){const _0x1f0189=this['editor'],_0x528686=_0x1f0189['locale'],_0x13432a=_0x1f0189['plugins']['get']('Dialog'),_0x48454f=_0x1f0189['plugins']['get']('RevisionTracker');function _0x32e61e(_0x35f4a2){_0x1f0189['config']['get']('revisionHistory.requireRevisionName')&&''===_0x35f4a2['revisionName']?_0x35f4a2['revisionNameInputView']['errorText']=m(_0x528686,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x1f0189['plugins']['get'](l)['saveRevision']({'name':_0x35f4a2['revisionName']}),_0x13432a['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x32e61e(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x13432a['show']({'id':'revisionSave','title':m(_0x528686,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x1f0189['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x13432a['hide']()},{'label':m(_0x1f0189['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x95285c){_0x95285c['bind']('isEnabled')['to'](_0x48454f,'isReady',_0x48454f,'isEnabled',_0x1f0189,'isReadOnly',(_0x216d66,_0x595630,_0xec6c1a)=>_0x216d66&&_0x595630&&!_0xec6c1a);},'onExecute':()=>_0x32e61e(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x1ca8a4=this['editor'],_0x394ea1=_0x1ca8a4['locale'];this['_saveRevisionFormView']=new hs(_0x394ea1,_0x1ca8a4['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends ts{['changeId'];['_model'];constructor(_0x2fd5bf,_0x37f0f7){super(_0x2fd5bf),this['_model']=_0x37f0f7,this['changeId']=_0x37f0f7['id'];const _0x335836=this['bindTemplate'],_0x536adf=m(_0x2fd5bf,_0x37f0f7['data']['isSuggestion']?'Suggested\x20by':'add'==_0x37f0f7['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x37f0f7['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x335836['to']('type',_0x59a44d=>'ck-revision-change__'+_0x59a44d)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x536adf}]},{'text':'\x20'+_0x37f0f7['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x4e32c3(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x31ccb6){super(),this['id']=_0x31ccb6['id']||_0x5572ec(),this['author']=_0x31ccb6['author'],this['type']=_0x31ccb6['type'],this['data']=_0x31ccb6['data']||{},this['rootName']=_0x31ccb6['rootName'],this['set']('createdAt',_0x31ccb6['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(_0x3dc74d,_0x74a4b8){this['newRevisionId']=_0x3dc74d,this['oldRevisionId']=_0x74a4b8,this['changes']=new _0x1ac57c();}['_setChanges'](_0x15ea52){for(const _0x385dd0 of _0x15ea52)this['changes']['add'](_0x385dd0);}}const Y={'c':_0x15a493,'a':_0x215329,'e':_0x300fdc,'r':_0x2ce16c,'u':_0x19ae10};class d extends _0x16c53d{['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[_0x3705b6,_0x5d1b5c,j];}constructor(_0x50a294){super(_0x50a294),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',(_0x3466bb,_0x2d7530,_0x496714)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x1a7060=>{for(const _0x1de64e of this['editor']['editing']['view']['document']['roots'])_0x496714?_0x1a7060['removeClass']('ck-editor__editable__overlay',_0x1de64e):_0x1a7060['addClass']('ck-editor__editable__overlay',_0x1de64e);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x463631=>null!==_0x463631),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x53671f,_0x2e6b62,_0x50528f)=>_0x53671f&&_0x50528f?_0x2e6b62['changes']['getIndex'](_0x50528f):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0xf3356c,_0x269163)=>_0xf3356c?_0x269163['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x5d1b5c);}['init'](){const _0x13035c=this['editor'],_0x42988c=new _t(_0x13035c,{'direction':'backward'}),_0x39bdba=new _t(_0x13035c,{'direction':'forward'});(_0x13035c['commands']['add']('showPreviousChange',_0x42988c),_0x13035c['commands']['add']('showNextChange',_0x39bdba),_0x13035c['commands']['add']('restoreRevision',new pt(_0x13035c)),this['on']('change:numberOfChanges',()=>{_0x42988c['refresh'](),_0x39bdba['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x13035c['enableReadOnlyMode']('revision-viewer'),_0x13035c['plugins']['has']('WidgetToolbarRepository'))&&_0x13035c['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x378e12){await this['loadRevisionData'](_0x378e12);const _0x110dec={};for(const _0xc0e717 in _0x378e12['diffData']){if(_0x378e12['diffData'][_0xc0e717]['attachChange']&&!_0x378e12['diffData'][_0xc0e717]['attachChange']['isAttached'])continue;const _0x15ffbd=this['_removeRevisionMarkers'](JSON['parse'](_0x378e12['diffData'][_0xc0e717]['insertions'])),_0x389990=this['editor']['editing']['view']['document'],_0x516d32=new _0xd84e17(_0x389990,_0x15ffbd['map'](_0x4040d0=>this['_getViewObj'](_0x4040d0)));this['editor']['data']['processor']['useFillerType']('marked'),_0x110dec[_0xc0e717]=this['editor']['data']['processor']['toData'](_0x516d32),this['editor']['data']['processor']['useFillerType']('default');}return _0x110dec;}async['getRevisionRootsAttributes'](_0x234b75){await this['loadRevisionData'](_0x234b75);const _0x262c25={};for(const _0x53e917 in _0x234b75['diffData'])_0x234b75['diffData'][_0x53e917]['attachChange']&&!_0x234b75['diffData'][_0x53e917]['attachChange']['isAttached']||(_0x262c25[_0x53e917]=_0x234b75['diffData'][_0x53e917]['attributesAfter']||{});return _0x262c25;}['_removeRevisionMarkers'](_0x24763c){return(_0x24763c=_0x24763c['filter'](_0x1fa3bd=>!_0x1fa3bd['name']||'revision-start'!==_0x1fa3bd['name']&&'revision-end'!==_0x1fa3bd['name']))['forEach'](_0x23f382=>{'string'!=typeof _0x23f382&&(_0x23f382['children']=this['_removeRevisionMarkers'](_0x23f382['children']),_0x23f382['attributes']=_0x23f382['attributes']['filter'](_0x4b09d2=>!_0x4b09d2[0x0]['startsWith']('data-revision-')));}),_0x24763c;}async['compare'](_0x75b845,_0x2cc649,_0x397887=!0x1){if(!this['isEnabled'])return;const _0xbfc961=this['diff'],_0x1724dd=this['repository'],_0x38f124='string'==typeof _0x75b845?_0x1724dd['getRevision'](_0x75b845):_0x75b845,_0x3b2823='string'==typeof _0x2cc649?_0x1724dd['getRevision'](_0x2cc649):_0x2cc649,_0x32441b=_0x38f124['id'],_0x44ea3b=_0x3b2823?_0x3b2823['id']:null;if(!_0x397887&&this['diff']&&this['diff']['newRevisionId']===_0x32441b&&this['diff']['oldRevisionId']===_0x44ea3b)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x32441b,_0x44ea3b);const _0x1ec1b3=this['_getRevisionsRange'](_0x38f124,_0x3b2823,!0x0)['map'](_0x7971b6=>this['loadRevisionData'](_0x7971b6));return _0x1ec1b3['push'](new Promise(_0x4486fa=>{setTimeout(_0x4486fa,0x14);})),Promise['all'](_0x1ec1b3)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x3637c5=this['_getDiff'](_0x32441b,_0x44ea3b);for(const _0x3cb7f1 of _0x3637c5['changes'])this['_changeIdToChange']['set'](_0x3cb7f1['id'],_0x3cb7f1);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x13c32b=>{for(const _0x529e40 of this['editor']['model']['document']['getRootNames']())_0x13c32b['detachRoot'](_0x529e40);for(const _0x1bc6d3 of Object['keys'](_0x3637c5['model'])){const _0x4a2ae5=_0x13c32b['addRoot'](_0x1bc6d3);for(const _0xbe996d of Object['keys'](_0x3637c5['attributes'][_0x1bc6d3]))_0x13c32b['setAttribute'](_0xbe996d,_0x3637c5['attributes'][_0x1bc6d3][_0xbe996d],_0x4a2ae5);_0x13c32b['insert'](_0x3637c5['model'][_0x1bc6d3],_0x4a2ae5,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x3637c5['changes'])),this['isReady']=!0x0;})['catch'](_0x4e6dfe=>{console['error'](_0x4e6dfe),this['_cleanUp'](),_0xbfc961&&(this['diff']=_0xbfc961),this['isReady']=!0x0;});}['addRevisionData'](_0x14086a,_0x39960b){const _0x12c4db=this['repository']['createRevision'](_0x14086a);return _0x12c4db['on']('_update',(_0x40ca7e,_0x782e8d,_0x3d59d6)=>_0x39960b(_0x782e8d,_0x3d59d6,_0x12c4db)),this['repository']['addRevision'](_0x12c4db),_0x12c4db;}['loadRevisionData'](_0x4e8b6c){if(!_0x4e8b6c||_0x4e8b6c['diffData'])return Promise['resolve']();{const _0x700c7f=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x700c7f,'revisionId':_0x4e8b6c['id']})['then'](_0x5622ff=>{_0x4e8b6c['_update']({'diffData':_0x5622ff['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},_0x2ef5cd=>{for(const _0xdb9103 of this['editor']['model']['document']['getRootNames']())_0x2ef5cd['detachRoot'](_0xdb9103);});}['_sortAndFilterDiffChanges'](_0x56a0b6){const _0x21913b=[],_0x57223c=new Map();for(const _0x386821 of this['editor']['model']['document']['getRootNames']()){const _0x24a06c=this['editor']['editing']['view']['getDomRoot'](_0x386821);if(!_0x24a06c)continue;const _0x5cfe7f=_0x24a06c['getClientRects']()['item'](0x0);_0x5cfe7f&&(_0x21913b['push'](_0x386821),_0x57223c['set'](_0x386821,_0x5cfe7f));}return _0x21913b['sort']((_0xc8bb4e,_0xf2d7b6)=>{const _0x32707b=_0x57223c['get'](_0xc8bb4e),_0x1ddbde=_0x57223c['get'](_0xf2d7b6);return _0x32707b['y']-_0x1ddbde['y']||_0x32707b['x']-_0x1ddbde['x'];}),(_0x56a0b6=_0x56a0b6['filter'](_0x54ca8a=>_0x21913b['includes'](_0x54ca8a['rootName'])))['sort']((_0x4d654f,_0xab7074)=>_0x21913b['indexOf'](_0x4d654f['rootName'])-_0x21913b['indexOf'](_0xab7074['rootName'])),_0x56a0b6;}['_makeTape'](_0x56760c){const _0x4915b3=Array['from'](_0x56760c['markers'])['filter'](([_0x43399d,_0x3fb2ae])=>_0x43399d['startsWith']('revision:')&&!_0x3fb2ae['isCollapsed']),_0x1e3e08=Array['from'](this['editor']['model']['createRangeIn'](_0x56760c)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x4915b3['length'])for(const _0x10be7c of _0x1e3e08){const [_0x2c19b6,_0x4332eb]=_0x4915b3[0x0],[,_0x4a020c,_0x30a072]=_0x2c19b6['split'](':');if(_0x4332eb['end']['isEqual'](_0x10be7c['nextPosition'])&&_0x4915b3['shift'](),(_0x10be7c['previousPosition']['isEqual'](_0x4332eb['start'])||_0x10be7c['previousPosition']['isAfter'](_0x4332eb['start']))&&('insertion'==_0x4a020c?_0x10be7c['isAdded']={'userId':_0x30a072}:'deletion'==_0x4a020c&&(_0x10be7c['isRemoved']={'userId':_0x30a072})),0x0==_0x4915b3['length'])break;}return _0x1e3e08;}['_refreshStartEndIndex'](_0x4571ea){const _0x5814ae=new Map();for(let _0x26efce=0x0;_0x26efce<_0x4571ea['length'];_0x26efce++)'text'===_0x4571ea[_0x26efce]['type']?(_0x4571ea[_0x26efce]['item']['startIndex']=_0x26efce,_0x4571ea[_0x26efce]['item']['endIndex']=_0x26efce):('elementStart'===_0x4571ea[_0x26efce]['type']?_0x4571ea[_0x26efce]['item']['startIndex']=_0x26efce:'elementEnd'===_0x4571ea[_0x26efce]['type']&&(_0x4571ea[_0x26efce]['item']['endIndex']=_0x26efce),_0x5814ae['set'](_0x4571ea[_0x26efce]['id'],_0x26efce));for(const _0x54cdbf of _0x5814ae['values']())'elementStart'===_0x4571ea[_0x54cdbf]['type']?_0x4571ea[_0x54cdbf]['item']['endIndex']=_0x5814ae['get'](_0x4571ea[_0x54cdbf]['pairId']):'elementEnd'===_0x4571ea[_0x54cdbf]['type']&&(_0x4571ea[_0x54cdbf]['item']['startIndex']=_0x5814ae['get'](_0x4571ea[_0x54cdbf]['pairId']));}['_processTape'](_0x2191cd){for(let _0xeb16b7=0x0;_0xeb16b7<_0x2191cd['length'];_0xeb16b7++){if('elementStart'===_0x2191cd[_0xeb16b7]['type'])_0x2191cd[_0xeb16b7]['item']['startIndex']=_0xeb16b7;else{if('elementEnd'===_0x2191cd[_0xeb16b7]['type']){_0x2191cd[_0xeb16b7]['item']['endIndex']=_0xeb16b7;const _0x4d394c=_0x2191cd[_0xeb16b7]['item']['startIndex'];_0x2191cd[_0x4d394c]['pairId']=_0x2191cd[_0xeb16b7]['id'],_0x2191cd[_0xeb16b7]['pairId']=_0x2191cd[_0x4d394c]['id'];}else _0x2191cd[_0xeb16b7]['item']['startIndex']=_0xeb16b7,_0x2191cd[_0xeb16b7]['item']['endIndex']=_0xeb16b7,_0x2191cd[_0xeb16b7]['pairId']=null;}_0x2191cd[_0xeb16b7]['markersStart']||(_0x2191cd[_0xeb16b7]['markersStart']=[],_0x2191cd[_0xeb16b7]['markersEnd']=[]);}}['_markInsertions'](_0xca9105,_0x3b0f5e){const _0xf6a2c5=_0xca9105['filter'](_0x3b9a43=>!_0x3b9a43['isAdded']);for(let _0x18f69a=0x0;_0x18f69a<_0x3b0f5e['length'];_0x18f69a++)_0x3b0f5e[_0x18f69a]['isAdded']&&(_0xf6a2c5[_0x18f69a]['isAdded']=_0x3b0f5e[_0x18f69a]['isAdded']);}['_makeModelFromViewString'](_0x13edd7){const _0x5e24cb=JSON['parse'](_0x13edd7),_0x1033fc=this['editor']['editing']['view']['document'],_0x47f471=new _0xd84e17(_0x1033fc,_0x5e24cb['map'](_0x247001=>this['_getViewObj'](_0x247001)));return this['editor']['data']['toModel'](_0x47f471);}['_getViewObj'](_0x22eba5){const _0x411244=this['editor']['editing']['view']['document'];if('string'==typeof _0x22eba5)return new _0x583ce5(_0x411244,_0x22eba5);{const _0x380ee9=_0x22eba5['children']['map'](_0x323373=>this['_getViewObj'](_0x323373));return new(Y[_0x22eba5['type']]||_0x2ac5e3)(_0x411244,_0x22eba5['name'],_0x22eba5['attributes'],_0x380ee9);}}['_getDiff'](_0x435231,_0x5bc042=null){const _0x3edb17=this['repository']['getRevision'](_0x435231),_0x132b95=_0x5bc042?this['repository']['getRevision'](_0x5bc042):null,_0x1f3ef9=this['_getRevisionsRange'](_0x3edb17,_0x132b95),_0x54092c=_0x1f3ef9[_0x1f3ef9['length']-0x1],_0x2d983d=new Map(),_0x5e5755={'model':{},'attributes':{},'changes':[]},_0x3f182e=new Set(),_0x157811=new Map();for(let _0x48edbf=_0x1f3ef9['length']-0x1;_0x48edbf>=0x0;_0x48edbf--){const _0x5796f0=_0x1f3ef9[_0x48edbf];for(const _0x13174e of Object['keys'](_0x5796f0['diffData']))if(_0x5796f0['diffData'][_0x13174e]['attachChange']){const _0x14eae8=_0x5796f0['diffData'][_0x13174e]['attachChange'];_0x14eae8['isAttached']?(_0x3f182e['add'](_0x13174e),_0x157811['has'](_0x13174e)&&_0x157811['get'](_0x13174e)['userId']==_0x14eae8['userId']?_0x157811['delete'](_0x13174e):_0x157811['set'](_0x13174e,_0x14eae8)):_0x157811['has'](_0x13174e)?(_0x3f182e['delete'](_0x13174e),_0x157811['delete'](_0x13174e)):(_0x3f182e['add'](_0x13174e),_0x157811['set'](_0x13174e,_0x14eae8));}else _0x3f182e['add'](_0x13174e);}for(const _0x541f5f of _0x3f182e){const _0x195bf2=_0x157811['has'](_0x541f5f)&&!_0x157811['get'](_0x541f5f)['isAttached'];let _0x4cd925=_0x195bf2?_0x1f3ef9['length']-0x1:0x0;const _0x4553ca=_0x195bf2?-0x1:0x1;for(;_0x1f3ef9[_0x4cd925];){const _0x22e63d=_0x1f3ef9[_0x4cd925];if(_0x22e63d['diffData'][_0x541f5f]){const _0x2e43e3=_0x195bf2?_0x22e63d['diffData'][_0x541f5f]['attributesBefore']:_0x22e63d['diffData'][_0x541f5f]['attributesAfter'];_0x5e5755['attributes'][_0x541f5f]=_0x2e43e3?_0x22d7e8(_0x2e43e3):{};break;}_0x4cd925+=_0x4553ca;}}for(const _0x51d03c of _0x1f3ef9){_0x51d03c['model']={};for(const _0xfd5bef of _0x51d03c['authors'])_0x2d983d['set'](_0xfd5bef['id'],_0xfd5bef);for(const _0x4e3b92 of _0x3f182e){const _0x320702=_0x51d03c['diffData'][_0x4e3b92]?_0x51d03c['diffData'][_0x4e3b92]['insertions']:'[]',_0x54023d=_0x51d03c['diffData'][_0x4e3b92]?_0x51d03c['diffData'][_0x4e3b92]['deletions']:'[]';_0x51d03c['model'][_0x4e3b92]={'insertions':this['_makeModelFromViewString'](_0x320702),'deletions':this['_makeModelFromViewString'](_0x54023d)};}}for(const _0x4189b2 of _0x3f182e){let _0x2556fe=null,_0x1070d4=0x0;const _0x352f38=new Map(Array['from'](_0x3edb17['model'][_0x4189b2]['insertions']['markers'])['filter'](([_0x2fc2ef])=>!_0x2fc2ef['startsWith']('revision:')));let _0x1014f7=0x0;for(const _0x407616 of _0x1f3ef9){const _0x352deb=this['_makeTape'](_0x407616['model'][_0x4189b2]['insertions']);_0x407616==_0x3edb17?(_0x2556fe=_0x352deb,_0x1070d4=_0x2556fe['length'],_0x2556fe['forEach'](_0x51cb0b=>{_0x51cb0b['id']=_0x1014f7++;}),this['_processTape'](_0x2556fe)):this['_markInsertions'](_0x2556fe,_0x352deb);const _0x241575=_0x2556fe['filter'](_0x36a4e0=>!_0x36a4e0['isAdded'])['map'](_0x36a0bc=>_0x36a0bc['id']);let _0xcd47d1=0x0;const _0x1ca5f5=this['_makeTape'](_0x407616['model'][_0x4189b2]['deletions']);_0x1ca5f5['forEach'](_0x66bfe7=>{_0x66bfe7['isRemoved']?_0x66bfe7['id']=_0x1070d4++:_0x66bfe7['id']=_0x241575[_0xcd47d1++];}),this['_processTape'](_0x1ca5f5),this['_setDistance'](_0x2556fe,'isAdded'),this['_setDistance'](_0x1ca5f5,'isRemoved'),_0x407616==_0x3edb17&&this['_markMarkers'](_0x2556fe,_0x352f38),_0x2556fe=this['_joinTapes'](_0x2556fe,_0x1ca5f5),this['_refreshStartEndIndex'](_0x2556fe),this['_setDistance'](_0x2556fe,'isRemoved');}_0x2556fe=_0x2556fe['filter'](_0x159d27=>!(_0x159d27['isAdded']&&_0x159d27['isRemoved']));const _0x588e3e=new Map(_0x54092c['model'][_0x4189b2]['deletions']['markers']),_0x2d359a=new Set(_0x352f38['keys']());for(const _0x151db2 of _0x588e3e['keys']())_0x2d359a['delete'](_0x151db2);this['_markSuggestions'](_0x2556fe,_0x2d359a),this['_fixObsoleteTags'](_0x2556fe),_0x2556fe=this['_removeMissingPairs'](_0x2556fe),_0x2556fe=this['_markMismatchedRemovedTags'](_0x2556fe),_0x2556fe=this['_removeUnsupportedChanges'](_0x2556fe);const {root:_0x311b6d,changes:_0x13300f}=this['_makeModelFromTape'](_0x2556fe,_0x2d983d,_0x4189b2);_0x5e5755['model'][_0x4189b2]=_0x311b6d;const _0x10dd41=_0x157811['get'](_0x4189b2);if(_0x10dd41){const _0x3a5eba=_0x2d983d['get'](_0x10dd41['userId']),_0x59d235=new r({'author':_0x3a5eba,'type':_0x10dd41['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4189b2});_0x13300f['unshift'](_0x59d235),_0x5e5755['attributes'][_0x4189b2]['revisionHistoryAttachChange']=_0x59d235['id'];}_0x5e5755['changes']=_0x5e5755['changes']['concat'](_0x13300f);}return _0x5e5755;}['_markMarkers'](_0x37352c,_0x21d19e){for(let _0x552647=0x0;_0x552647<_0x37352c['length'];_0x552647++)for(const [_0x775c3f,_0x23515e]of _0x21d19e)_0x23515e['start']['isEqual'](_0x37352c[_0x552647]['previousPosition'])&&_0x37352c[_0x552647]['markersStart']['push'](_0x775c3f),_0x23515e['end']['isEqual'](_0x37352c[_0x552647]['nextPosition'])&&_0x37352c[_0x552647]['markersEnd']['push'](_0x775c3f);}['_joinTapes'](_0x4d54aa,_0x293bf2){let _0x2eb5c0=[],_0x545111=0x0,_0x68e4cd=0x0;for(;_0x545111<_0x4d54aa['length']||_0x68e4cd<_0x293bf2['length'];){const _0x358f29=_0x4d54aa[_0x545111]||{},_0x581c3b=_0x293bf2[_0x68e4cd]||{};if(_0x358f29['id']==_0x581c3b['id'])_0x545111++,_0x68e4cd++,_0x2eb5c0['push'](_0x358f29);else{if(_0x581c3b['isRemoved']&&_0x358f29['isAdded']){const {commonTape:_0x1f6b56,iEnd:_0x1a6110,jEnd:_0x535fc2}=this['_threeWayMerge'](_0x4d54aa,_0x545111,_0x293bf2,_0x68e4cd);_0x2eb5c0=_0x2eb5c0['concat'](_0x1f6b56),_0x545111=_0x1a6110,_0x68e4cd=_0x535fc2;}else _0x581c3b['isRemoved']?(_0x68e4cd++,_0x2eb5c0['push'](_0x581c3b)):(_0x545111++,_0x2eb5c0['push'](_0x358f29));}}return _0x2eb5c0;}['_markSuggestions'](_0x35f36b,_0x3c8e95){const _0x394ecb=[];for(let _0x5235de=0x0;_0x5235de<_0x35f36b['length'];_0x5235de++){for(let _0x3604a7=0x0;_0x3604a7<_0x35f36b[_0x5235de]['markersStart']['length'];_0x3604a7++){const _0x490d27=_0x35f36b[_0x5235de]['markersStart'][_0x3604a7];if(!_0x3c8e95['has'](_0x490d27))continue;const {group:_0x624355,type:_0x18c0d3,authorId:_0x28195d}=_0x260190(_0x490d27);'revision-suggestion'!=_0x624355||'insertion'!=_0x18c0d3&&'deletion'!=_0x18c0d3||(_0x394ecb['unshift']({'type':_0x18c0d3,'name':_0x490d27,'userId':_0x28195d}),_0x35f36b[_0x5235de]['markersStart']['splice'](_0x3604a7,0x1),_0x3604a7--);}_0xc52e73(_0x35f36b[_0x5235de]);for(let _0x509512=0x0;_0x509512<_0x35f36b[_0x5235de]['markersEnd']['length'];_0x509512++){const _0x50e8c4=_0x35f36b[_0x5235de]['markersEnd'][_0x509512];if(!_0x3c8e95['has'](_0x50e8c4))continue;const {group:_0x3e1bdc,type:_0x5e61d2}=_0x260190(_0x50e8c4);if('revision-suggestion'!=_0x3e1bdc||'insertion'!=_0x5e61d2&&'deletion'!=_0x5e61d2)continue;_0x35f36b[_0x5235de]['markersEnd']['splice'](_0x509512,0x1),_0x509512--;const _0x35acbf=_0x394ecb['findIndex'](_0x53bb9a=>_0x53bb9a['name']==_0x50e8c4);_0x35acbf>-0x1&&_0x394ecb['splice'](_0x35acbf,0x1);}}function _0x260190(_0x833f5f){const _0x120892=_0x833f5f['split'](':');return{'group':_0x120892[0x0],'type':_0x120892[0x1],'subType':_0x120892['length']>=0x5?_0x120892[0x2]:null,'id':_0x120892['length']<0x5?_0x120892[0x2]:_0x120892[0x3],'authorId':_0x120892['length']<0x5?_0x120892[0x3]:_0x120892[0x4],'markerCount':0x6==_0x120892['length']?_0x120892[0x5]:null};}function _0xc52e73(_0x27d8d4){for(let _0x5266c9=0x0;_0x5266c9<_0x394ecb['length'];_0x5266c9++){if(_0x27d8d4['isAdded']&&'insertion'==_0x394ecb[_0x5266c9]['type'])return _0x27d8d4['isAddSuggestion']=_0x394ecb[_0x5266c9],void delete _0x27d8d4['isAdded'];if(!_0x27d8d4['isAdded']&&!_0x27d8d4['isRemoved']&&'deletion'==_0x394ecb[_0x5266c9]['type'])return void(_0x27d8d4['isRemoveSuggestion']=_0x394ecb[_0x5266c9]);}}}['_setDistance'](_0x2c8daa,_0x43e98f){let _0x13f4dc=0x0,_0x16c563=!0x1;const _0x12c5c0=new Map();for(const _0x411859 of _0x2c8daa)_0x411859[_0x43e98f]?_0x16c563&&(_0x13f4dc++,_0x16c563=!0x1):(_0x13f4dc++,_0x16c563=!0x0),_0x12c5c0['set'](_0x411859['id'],_0x13f4dc);for(let _0x5c649e=0x0;_0x5c649e<_0x2c8daa['length'];_0x5c649e++){if('isRemoved'==_0x43e98f&&_0x2c8daa[_0x5c649e]['isAdded']||'isAdded'==_0x43e98f&&_0x2c8daa[_0x5c649e]['isRemoved'])continue;if('text'==_0x2c8daa[_0x5c649e]['type']){_0x2c8daa[_0x5c649e]['distance']=0x0;continue;}const _0x5d1d58=_0x12c5c0['get'](_0x2c8daa[_0x5c649e]['pairId']),_0xf60fc9=_0x12c5c0['get'](_0x2c8daa[_0x5c649e]['id']);_0x2c8daa[_0x5c649e]['distance']=_0x5d1d58-_0xf60fc9;}}['_getRevisionsRange'](_0x3651d5,_0x5927e5,_0xa289a2=!0x1){const _0x561ca3=[];let _0x1cd414=this['repository']['getIndex'](_0x3651d5),_0x51591f=this['repository']['getIndex'](_0x5927e5);for(-0x1==_0x51591f&&(_0x51591f=this['repository']['_revisions']['length'],_0xa289a2=!0x1);_0x1cd414<_0x51591f;)_0x561ca3['push'](this['repository']['getRevision'](_0x1cd414)),_0x1cd414++;return _0xa289a2&&_0x561ca3['push'](this['repository']['getRevision'](_0x1cd414)),_0x561ca3;}['_threeWayMerge'](_0x2fedf9,_0x44e8da,_0x33605a,_0x18282f){const _0x1cad49=this['editor']['model']['schema'];let _0x17d1bf=_0x44e8da;for(;_0x2fedf9[_0x17d1bf]&&_0x2fedf9[_0x17d1bf]['isAdded'];)_0x17d1bf++;let _0x34818f=_0x18282f;for(;_0x33605a[_0x34818f]&&_0x33605a[_0x34818f]['isRemoved'];)_0x34818f++;_0x1312ba(_0x2fedf9,_0x44e8da,_0x17d1bf),_0x1312ba(_0x33605a,_0x18282f,_0x34818f);const _0x38428e=_0x33605a['slice'](_0x18282f,_0x34818f)['concat'](_0x2fedf9['slice'](_0x44e8da,_0x17d1bf));return _0x38428e['sort']((_0x3be0d5,_0x497f20)=>_0x3be0d5['side']!=_0x497f20['side']?_0x3be0d5['side']-_0x497f20['side']:_0x3be0d5['level']!=_0x497f20['level']?_0x3be0d5['level']-_0x497f20['level']:_0x3be0d5['distance']!=_0x497f20['distance']?_0x497f20['distance']-_0x3be0d5['distance']:!!_0x3be0d5['isAdded']!=!!_0x497f20['isAdded']?-0x1==_0x3be0d5['side']||0x0==_0x3be0d5['side']?_0x3be0d5['isAdded']?-0x1:0x1:_0x3be0d5['isAdded']?0x1:-0x1:_0x3be0d5['index']-_0x497f20['index']),{'commonTape':_0x38428e,'iEnd':_0x17d1bf,'jEnd':_0x34818f};function _0x1312ba(_0x23e487,_0x3fa64b,_0x55a567){let _0x225239=-0x1,_0x2b6b37=Number['POSITIVE_INFINITY'],_0x4b644b=!0x0;for(let _0x5651b1=_0x3fa64b;_0x5651b1<_0x55a567;_0x5651b1++)if(_0x1cad49['isInline'](_0x23e487[_0x5651b1]['item'])||(_0x4b644b=!0x1),_0x23e487[_0x5651b1]['item']['startIndex']<_0x3fa64b&&(_0x225239=_0x5651b1),_0x23e487[_0x5651b1]['item']['endIndex']>=_0x55a567){_0x2b6b37=_0x5651b1;break;}_0x4b644b&&(_0x225239=_0x55a567-0x1);for(let _0xc51f=_0x3fa64b;_0xc51f<_0x55a567;_0xc51f++)_0x23e487[_0xc51f]['side']=_0xc51f<=_0x225239?-0x1:_0xc51f<_0x2b6b37?0x0:0x1,_0x23e487[_0xc51f]['index']=_0xc51f;let _0xafff43=0x0;for(let _0x2e24ef=_0x3fa64b;_0x2e24ef<=_0x225239;_0x2e24ef++)0x0==_0x23e487[_0x2e24ef]['distance']?_0x23e487[_0x2e24ef]['level']=_0xafff43:(_0xafff43++,_0x23e487[_0x2e24ef]['level']=_0xafff43,_0xafff43++);for(let _0xd83a92=_0x3fa64b;_0xd83a92<_0x55a567;_0xd83a92++)0x0==_0x23e487[_0xd83a92]['side']&&(_0x23e487[_0xd83a92]['level']=_0xafff43);_0xafff43=0x0;for(let _0x2e8984=_0x55a567-0x1;_0x2e8984>=_0x2b6b37;_0x2e8984--)0x0==_0x23e487[_0x2e8984]['distance']?_0x23e487[_0x2e8984]['level']=_0xafff43:(_0xafff43--,_0x23e487[_0x2e8984]['level']=_0xafff43,_0xafff43--);}}['_fixObsoleteTags'](_0x57d8d8){const _0x27023e=new Map(),_0x61c051=this['editor']['model']['schema'];for(let _0xed1bef=0x1;_0xed1bef<_0x57d8d8['length'];_0xed1bef++){let _0x187b30,_0x21d514,_0x3cd534;const _0x35b57b=_0x57d8d8[_0xed1bef],_0x4acf84=_0x57d8d8[_0xed1bef-0x1];if('text'==_0x35b57b['type'])continue;if(_0x35b57b['type']!=_0x4acf84['type'])continue;if(!_0x61c051['isBlock'](_0x4acf84['item'])||_0x61c051['isLimit'](_0x4acf84['item']))continue;if(!_0x61c051['isBlock'](_0x35b57b['item'])||_0x61c051['isLimit'](_0x35b57b['item']))continue;if((_0x57d8d8[_0xed1bef]['isAdded']||_0x57d8d8[_0xed1bef]['isAddSuggestion'])&&_0x57d8d8[_0xed1bef-0x1]['isRemoved'])_0x187b30=_0x57d8d8[_0xed1bef],_0x21d514=_0x57d8d8[_0xed1bef-0x1],_0x3cd534=_0xed1bef-0x1;else{if(!_0x57d8d8[_0xed1bef]['isRemoved']||!_0x57d8d8[_0xed1bef-0x1]['isAdded']&&!_0x57d8d8[_0xed1bef-0x1]['isAddSuggestion'])continue;_0x187b30=_0x57d8d8[_0xed1bef-0x1],_0x21d514=_0x57d8d8[_0xed1bef],_0x3cd534=_0xed1bef;}const _0x37b8dc=_0x187b30['level']==_0x21d514['level'],_0x11a789=Math['abs'](_0x187b30['level'])<Math['abs'](_0x21d514['level'])&&0x0==_0x21d514['distance'];(_0x37b8dc||_0x11a789)&&(_0x27023e['set'](_0x21d514['id'],_0x187b30['id']),_0x57d8d8['splice'](_0x3cd534,0x1),_0xed1bef--,_0x187b30['isAdded']=!0x1);}for(let _0xefe74d=0x0;_0xefe74d<_0x57d8d8['length'];_0xefe74d++)_0x27023e['has'](_0x57d8d8[_0xefe74d]['pairId'])&&(_0x57d8d8[_0xefe74d]['pairId']=_0x27023e['get'](_0x57d8d8[_0xefe74d]['pairId']));}['_removeMissingPairs'](_0x298966){const _0x2482d5=new Set(_0x298966['map'](_0x39bb7c=>_0x39bb7c['id']));for(let _0x510396=0x0;_0x510396<_0x298966['length'];_0x510396++)_0x2482d5['has'](_0x298966[_0x510396]['pairId'])||0x0==_0x298966[_0x510396]['distance']||(_0x298966[_0x510396]['isIncorrect']=!0x0);return _0x298966['filter'](_0x270cca=>!_0x270cca['isIncorrect']);}['_markMismatchedRemovedTags'](_0x1f672a){const _0x36a6fe=new Set();for(let _0x414c53=0x0;_0x414c53<_0x1f672a['length'];_0x414c53++){if(_0x36a6fe['has'](_0x1f672a[_0x414c53]['id'])&&_0x1f672a[_0x414c53]['isRemoved']&&(_0x1f672a[_0x414c53]['isIncorrect']=!0x0),_0x1f672a[_0x414c53]['isIncorrect'])continue;if(0x0==_0x1f672a[_0x414c53]['distance'])continue;if('elementStart'!=_0x1f672a[_0x414c53]['type'])continue;if(null==_0x1f672a[_0x414c53]['pairId'])continue;let _0x926fda=_0x414c53+0x1,_0x51c7ad=0x0;for(;_0x1f672a[_0x926fda]['id']!=_0x1f672a[_0x414c53]['pairId'];)'elementStart'==_0x1f672a[_0x926fda]['type']?_0x51c7ad++:'elementEnd'==_0x1f672a[_0x926fda]['type']&&_0x51c7ad--,_0x926fda++;if(0x0!=_0x51c7ad){if(_0x1f672a[_0x414c53]['isRemoved'])_0x1f672a[_0x414c53]['isIncorrect']=!0x0;else{for(;_0x926fda!=_0x414c53;)_0x1f672a[_0x926fda]['isRemoved']&&0x0!=_0x1f672a[_0x926fda]['distance']&&(_0x1f672a[_0x926fda]['isIncorrect']=!0x0,_0x36a6fe['add'](_0x1f672a[_0x926fda]['pairId'])),_0x926fda--;}}}return _0x1f672a['filter'](_0x2985ea=>!_0x2985ea['isIncorrect']);}['_removeUnsupportedChanges'](_0x272e1f){const _0x59c567=this['editor']['model']['schema'];for(let _0x22f31c=0x0;_0x22f31c<_0x272e1f['length'];_0x22f31c++){if(!(_0x272e1f[_0x22f31c]['isAdded']||_0x272e1f[_0x22f31c]['isAddSuggestion']||_0x272e1f[_0x22f31c]['isRemoved']||_0x272e1f[_0x22f31c]['isRemoveSuggestion']))continue;if(0x0==_0x272e1f[_0x22f31c]['distance'])continue;const _0x354c36=_0x272e1f[_0x22f31c]['item'];_0x59c567['isBlock'](_0x354c36)||_0x59c567['isLimit'](_0x354c36)||(_0x272e1f[_0x22f31c]['isAdded']&&delete _0x272e1f[_0x22f31c]['isAdded'],_0x272e1f[_0x22f31c]['isAddSuggestion']&&delete _0x272e1f[_0x22f31c]['isAddSuggestion'],_0x272e1f[_0x22f31c]['isRemoveSuggestion']&&delete _0x272e1f[_0x22f31c]['isRemoveSuggestion'],_0x272e1f[_0x22f31c]['isRemoved']&&(_0x272e1f[_0x22f31c]['isIncorrect']=!0x0));}return _0x272e1f['filter'](_0x1d4beb=>!_0x1d4beb['isIncorrect']);}['_makeModelFromTape'](_0x43bc86,_0x10d120,_0x4d558b){const _0x368306=new mt(),_0x970980=[],_0x2759ff=new Map(),_0x37d6ed=this['editor']['model'],_0x2fd186=_0x37d6ed['schema'],_0x520dfc=[_0x368306],_0x39ca94={},_0x30021a={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5028b0=null;const _0xe8bc15=[0x0];for(let _0x1fc685=0x0;_0x1fc685<_0x43bc86['length'];_0x1fc685++)if('elementStart'===_0x43bc86[_0x1fc685]['type']){_0x43bc86[_0x1fc685]['previousPosition']=_0x37d6ed['createPositionFromPath'](_0x368306,_0xe8bc15);const _0x371c9a=new ft(_0x43bc86[_0x1fc685]['item']['name'],_0x43bc86[_0x1fc685]['item']['getAttributes']());_0x520dfc[0x0]['_appendChild'](_0x371c9a),_0xe8bc15['push'](0x0),_0x520dfc['unshift'](_0x371c9a),_0x43bc86[_0x1fc685]['nextPosition']=_0x37d6ed['createPositionFromPath'](_0x368306,_0xe8bc15);}else'elementEnd'===_0x43bc86[_0x1fc685]['type']?(_0x520dfc['shift'](),_0x43bc86[_0x1fc685]['previousPosition']=_0x37d6ed['createPositionFromPath'](_0x368306,_0xe8bc15),_0xe8bc15['pop'](),_0xe8bc15[_0xe8bc15['length']-0x1]++,_0x43bc86[_0x1fc685]['nextPosition']=_0x37d6ed['createPositionFromPath'](_0x368306,_0xe8bc15)):(_0x43bc86[_0x1fc685]['previousPosition']=_0x37d6ed['createPositionFromPath'](_0x368306,_0xe8bc15),_0x5028b0?_0x5028b0['_data']+=_0x43bc86[_0x1fc685]['item']['data']:_0x5028b0=new wt(_0x43bc86[_0x1fc685]['item']['data'],_0x43bc86[_0x1fc685]['item']['getAttributes']()),_0x43bc86[_0x1fc685+0x1]&&'text'===_0x43bc86[_0x1fc685+0x1]['type']&&_0x4e4b86(_0x5028b0,_0x43bc86[_0x1fc685+0x1]['item'])||(_0x520dfc[0x0]['_appendChild'](_0x5028b0),_0x5028b0=null),_0xe8bc15[_0xe8bc15['length']-0x1]+=_0x43bc86[_0x1fc685]['item']['offsetSize'],_0x43bc86[_0x1fc685]['nextPosition']=_0x37d6ed['createPositionFromPath'](_0x368306,_0xe8bc15));for(let _0x5d6fd2=0x0;_0x5d6fd2<_0x43bc86['length'];_0x5d6fd2++){const _0x219f80=_0x43bc86[_0x5d6fd2]['previousPosition'],_0x468184=_0x43bc86[_0x5d6fd2]['nextPosition'];for(const _0x5d6520 of _0x43bc86[_0x5d6fd2]['markersStart'])_0x2759ff['set'](_0x5d6520,{'start':_0x219f80,'end':null});_0x13c245('isRemoveSuggestion',_0x5d6fd2,_0x219f80,_0x468184),_0x13c245('isAddSuggestion',_0x5d6fd2,_0x219f80,_0x468184),_0x13c245('isRemoved',_0x5d6fd2,_0x219f80,_0x468184),_0x13c245('isAdded',_0x5d6fd2,_0x219f80,_0x468184);for(const _0x14c33d of _0x43bc86[_0x5d6fd2]['markersEnd']){_0x2759ff['get'](_0x14c33d)['end']=_0x468184;}}for(const [_0x4726b7,_0x3148cf]of _0x2759ff){const _0x371452=this['editor']['model']['createRange'](_0x3148cf['start'],_0x3148cf['end']);_0x368306['markers']['set'](_0x4726b7,_0x371452);}return _0x970980['sort']((_0x487d59,_0x548be6)=>{const _0x2666ae=_0x368306['markers']['get']('revision:'+_0x487d59['id']),_0x425817=_0x368306['markers']['get']('revision:'+_0x548be6['id']);return _0x2666ae['start']['isBefore'](_0x425817['start'])?-0x1:_0x2666ae['start']['isAfter'](_0x425817['start'])?0x1:_0x2666ae['end']['isBefore'](_0x425817['end'])?-0x1:_0x2666ae['end']['isAfter'](_0x425817['end'])?0x1:'add'===_0x487d59['type']?-0x1:0x1;}),{'root':_0x368306,'changes':_0x970980};function _0x13c245(_0x46da86,_0x3ef0e8,_0x217eaa,_0x5506b5){const _0x328d1e=!!_0x43bc86[_0x3ef0e8][_0x46da86],_0x49a8c3=_0x328d1e?_0x43bc86[_0x3ef0e8][_0x46da86]['userId']:null,_0x3ec41a=_0x3ef0e8===_0x43bc86['length']-0x1,_0x1404b9=_0x30021a[_0x46da86][0x0],_0x46f4a4=_0x2fd186['isObject'](_0x43bc86[_0x3ef0e8]['item']);!_0x39ca94[_0x46da86]&&_0x328d1e?_0x39ca94[_0x46da86]={'start':_0x217eaa,'tapeItem':_0x43bc86[_0x3ef0e8],'userId':_0x49a8c3,'type':_0x46da86}:_0x39ca94[_0x46da86]&&!_0x328d1e?(_0x39ca94[_0x46da86]['end']=_0x217eaa,_0x45d631(_0x39ca94[_0x46da86]),_0x39ca94[_0x46da86]=null):_0x39ca94[_0x46da86]&&_0x328d1e&&_0x39ca94[_0x46da86]['userId']!==_0x49a8c3&&(_0x39ca94[_0x46da86]['end']=_0x217eaa,_0x1404b9&&_0x1404b9['userId']===_0x39ca94[_0x46da86]['userId']||_0x45d631(_0x39ca94[_0x46da86]),_0x39ca94[_0x46da86]={'start':_0x217eaa,'tapeItem':_0x43bc86[_0x3ef0e8],'userId':_0x49a8c3,'type':_0x46da86}),_0x39ca94[_0x46da86]&&_0x46f4a4&&('elementStart'!==_0x43bc86[_0x3ef0e8]['type']||_0x1404b9&&_0x1404b9['userId']===_0x49a8c3||_0x30021a[_0x46da86]['unshift']({'userId':_0x49a8c3,'object':_0x43bc86[_0x3ef0e8]['item'],'change':_0x39ca94[_0x46da86]}),'elementEnd'===_0x43bc86[_0x3ef0e8]['type']&&_0x1404b9&&_0x1404b9['object']===_0x43bc86[_0x3ef0e8]['item']&&(_0x30021a[_0x46da86]['shift'](),_0x39ca94[_0x46da86]=_0x1404b9['change'])),_0x39ca94[_0x46da86]&&_0x3ec41a&&(_0x39ca94[_0x46da86]['end']=_0x5506b5,_0x45d631(_0x39ca94[_0x46da86]),_0x39ca94[_0x46da86]=null);}function _0x45d631({start:_0x3e1b5b,end:_0x5ac0c4,tapeItem:_0x4b9639,userId:_0x419f7b,type:_0xb9480}){const _0x23a608=_0x4b9639['item'],_0x3e1a61=_0x37d6ed['schema']['isBlock'](_0x23a608)&&!_0x37d6ed['schema']['isLimit'](_0x23a608),_0x49b805=_0x3e1b5b['nodeAfter']==_0x5ac0c4['parent']&&_0x5ac0c4['isAtStart'];if(_0x3e1a61&&_0x49b805)return;const _0x1e0226=_0x37d6ed['createRange'](_0x3e1b5b,_0x5ac0c4),_0x57c0fb=_0x10d120['get'](_0x419f7b),_0x37da45=new r({'author':_0x57c0fb,'type':'isAdded'==_0xb9480||'isAddSuggestion'==_0xb9480?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0xb9480||'isRemoveSuggestion'==_0xb9480},'createdAt':new Date(),'rootName':_0x4d558b});_0x970980['push'](_0x37da45),_0x368306['markers']['set']('revision:'+_0x37da45['id'],_0x1e0226);}function _0x4e4b86(_0x106541,_0x51a90f){const _0x1e1bc2=_0x106541['getAttributes'](),_0x5702d0=_0x51a90f['getAttributes']();for(const _0x59f73c of _0x1e1bc2){if(_0x59f73c[0x1]!==_0x51a90f['getAttribute'](_0x59f73c[0x0]))return!0x1;_0x5702d0['next']();}return _0x5702d0['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x410b6a=>{const _0x1002b6=_0x410b6a['markerName']['split'](':')[0x1],_0x1da437=this['_getChangeFromId'](_0x1002b6);if(!_0x1da437)return null;const _0x236df3='add'==_0x1da437['type']?'insertion':'deletion',_0x2ceca2=['ck-suggestion-marker','ck-suggestion-marker-'+_0x236df3];return _0x1da437['data']['isSuggestion']&&_0x2ceca2['push']('ck-suggestion-marker-'+_0x236df3+'-new'),this['activeChange']==_0x1da437&&_0x2ceca2['push']('ck-suggestion-marker--active'),{'classes':_0x2ceca2,'attributes':{'data-change-id':_0x1002b6}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x215e64=>{_0x215e64['on']('element:pre',(_0x43ba11,_0x2f02c3,_0x5e439c)=>{const _0x38908c=_0x2f02c3['viewItem']['getChild'](0x0);if(!_0x38908c||!_0x38908c['is']('element','code'))return;if(!_0x5e439c['consumable']['consume'](_0x38908c,{'attributes':['vid_start','vid_end']}))return;const _0x1af099=_0x2f02c3['modelRange']['start']['nodeAfter'];_0x5e439c['writer']['setAttribute']('vid_start',_0x38908c['getAttribute']('vid_start'),_0x1af099),_0x5e439c['writer']['setAttribute']('vid_end',_0x38908c['getAttribute']('vid_end'),_0x1af099);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x5a5321=>{_0x5a5321['on']('element',(_0x87b826,_0x183075,_0x55dbf2)=>{if(!_0x55dbf2['consumable']['consume'](_0x183075['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x183075['modelRange']['isCollapsed'])return;const _0x4eea93=_0x183075['modelRange']['start']['nodeAfter'];_0x4eea93['hasAttribute']('vid_start')||_0x4eea93['hasAttribute']('vid')||(_0x55dbf2['writer']['setAttribute']('vid_start',_0x183075['viewItem']['getAttribute']('vid_start'),_0x4eea93),_0x55dbf2['writer']['setAttribute']('vid_end',_0x183075['viewItem']['getAttribute']('vid_end'),_0x4eea93));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x17abc0=>_0x17abc0['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x5aa66e,[,_0x3d6602])=>{['vid_start','vid_end','vid']['includes'](_0x3d6602)&&(_0x5aa66e['return']=!0x0,_0x5aa66e['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x36b5ff=>{_0x36b5ff['on']('attribute:vid',(_0x425831,_0xb8c469,_0x17bee5)=>{if('\x20'!=_0xb8c469['item']['data']||_0xb8c469['item']['parent']['maxOffset']>0x1)return;if(!_0x17bee5['consumable']['consume'](_0xb8c469['item'],_0x425831['name']))return;const _0x16f1e3=_0x17bee5['writer'],_0x45b895=_0x17bee5['mapper']['toViewRange'](_0xb8c469['range']);_0x16f1e3['wrap'](_0x45b895,_0x16f1e3['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x52aca7){const _0x2b695c=_0x52aca7['plugins']['get']('RevisionViewer');return(_0x2e7529,_0x1487ff,_0x38697d)=>{const _0x166e43=_0x1487ff['markerName']['split'](':')[0x1],_0x1f83a9=_0x2b695c['_getChangeFromId'](_0x166e43);if(!_0x1f83a9)return null;const _0x551df4='add'==_0x1f83a9['type']?'split':'merge';if(!_0x38697d['consumable']['test'](_0x1487ff['markerRange'],_0x2e7529['name']))return;const _0x196616=_0x1487ff['markerRange']['getWalker'](),_0x23612a=_0x1487ff['markerRange']['start'],_0x2fd189=_0x52aca7['model']['schema'];let _0x5d9e48=null,_0x3fb504=null,_0x385228=!0x1,_0x2be82b=!0x1;for(const _0x5464e7 of _0x196616){const _0x309513=_0x5464e7['item'];_0x385228=_0x385228||_0x2fd189['isContent'](_0x309513);const _0x3f7baa=_0x38697d['mapper']['toViewElement'](_0x309513);if(_0x3f7baa&&_0x3f7baa['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5464e7['type']&&(_0x2fd189['isBlock'](_0x309513)&&!_0x2fd189['isLimit'](_0x309513)&&(_0x309513['nextSibling']||_0x23612a['isAtEnd']?_0x5d9e48&&_0x5d9e48['parent']==_0x309513||(_0x5d9e48=_0x309513,_0x44c3a6(_0x5464e7['previousPosition']),_0x2be82b=!0x0):_0x3fb504=_0x3fb504||_0x5464e7['previousPosition']));}function _0x44c3a6(_0x29a3f7){const _0x252f20=_0x38697d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x551df4}),_0x16042b=_0x38697d['mapper']['toViewPosition'](_0x29a3f7);_0x1f83a9['data']['isSuggestion']&&_0x38697d['writer']['addClass']('ck-suggestion-marker-'+_0x551df4+'-new',_0x252f20),_0x2b695c['activeChange']==_0x1f83a9&&_0x38697d['writer']['addClass']('ck-suggestion-marker--active',_0x252f20),_0x38697d['writer']['insert'](_0x16042b,_0x252f20),_0x38697d['mapper']['bindElementToMarker'](_0x252f20,_0x1487ff['markerName']);}_0x385228||_0x2be82b||!_0x3fb504||_0x44c3a6(_0x3fb504);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x3998c8,_0x2aa906,_0x3bbdeb)=>{const _0x4ef6b8=_0x3bbdeb['mapper']['markerNameToElements'](_0x2aa906['markerName']);if(_0x4ef6b8){for(const _0x3f607e of _0x4ef6b8)(_0x3f607e['hasClass']('ck-suggestion-marker-split')||_0x3f607e['hasClass']('ck-suggestion-marker-merge'))&&(_0x3bbdeb['mapper']['unbindElementFromMarkerName'](_0x3f607e,_0x2aa906['markerName']),_0x3bbdeb['writer']['remove'](_0x3f607e));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x35bc20,_0xe27bac,_0x7d76fd)=>{const _0x449efc=_0xe27bac['markerName']['split'](':')[0x1],_0x3e3f3d=this['_getChangeFromId'](_0x449efc);if(!_0x3e3f3d)return null;const _0x907d='add'==_0x3e3f3d['type']?'split':'merge';if(_0x7d76fd['consumable']['test'](_0xe27bac['markerRange'],_0x35bc20['name']))for(const _0x54f10c of _0xe27bac['markerRange']['getItems']()){if(!_0x54f10c['is']('element','softBreak'))continue;const _0x3759fc=_0x7d76fd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x907d}),_0x1b20ed=_0x7d76fd['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x54f10c));_0x3e3f3d['data']['isSuggestion']&&_0x7d76fd['writer']['addClass']('ck-suggestion-marker-'+_0x907d+'-new',_0x3759fc),this['activeChange']==_0x3e3f3d&&_0x7d76fd['writer']['addClass']('ck-suggestion-marker--active',_0x3759fc),_0x7d76fd['writer']['insert'](_0x1b20ed,_0x3759fc),_0x7d76fd['mapper']['bindElementToMarker'](_0x3759fc,_0xe27bac['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x13b904=>{for(const _0x22da82 of this['editor']['model']['document']['getRootNames']()){const _0xc7d047=this['editor']['model']['document']['getRoot'](_0x22da82),_0x43eb11=this['editor']['editing']['view']['document']['getRoot'](_0x22da82);if(_0x43eb11){const _0x10ee4c=_0xc7d047['getAttribute']('revisionHistoryAttachChange');if(_0x13b904['removeAttribute']('data-change-id',_0x43eb11),_0x13b904['removeClass']('ck-revision-history-root-add',_0x43eb11),_0x13b904['removeClass']('ck-revision-history-root-remove',_0x43eb11),_0x13b904['removeClass']('ck-revision-history-root--active',_0x43eb11),_0x10ee4c){const _0x13b1d8=this['_getChangeFromId'](_0x10ee4c);if(!_0x13b1d8)return null;_0x13b904['setAttribute']('data-change-id',_0x10ee4c,_0x43eb11),_0x13b904['addClass']('ck-revision-history-root-'+_0x13b1d8['type'],_0x43eb11),this['activeChange']==_0x13b1d8&&_0x13b904['addClass']('ck-revision-history-root--active',_0x43eb11);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x3319b6=>'revision-comment:'+_0x3319b6,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x1becc8=>'revision-suggestion:'+_0x1becc8,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x11889c=>({'name':'suggestion:'+_0x11889c,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x4e6574=>{const _0x20dd62=_0x4e6574['markerName']['split'](':')[0x1];return'insertion'!=_0x20dd62&&'deletion'!=_0x20dd62?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x20dd62]};}}),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',(_0x27d6e0,_0x118deb,_0x370255)=>{const _0x10b8f4=_0x370255['mapper']['markerNameToElements'](_0x118deb['markerName']);if(_0x10b8f4){for(const _0x36928b of _0x10b8f4)_0x36928b['is']('uiElement')&&(_0x370255['mapper']['unbindElementFromMarkerName'](_0x36928b,_0x118deb['markerName']),_0x370255['writer']['remove'](_0x36928b));}},{'priority':'high'});}['_getChangeFromId'](_0x17ac02){return this['_changeIdToChange']['get'](_0x17ac02);}['_getViewForChange'](_0x5d121f){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x5d121f),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0xc633c3,_0x36843f,_0x3ea1f5,_0x34acb6)=>{_0x34acb6&&this['_balloon']['remove'](_0x34acb6),_0x3ea1f5&&(this['_balloon']['add']({'view':_0x3ea1f5,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x5eb83f=this['editor']['editing'],_0x309a83=this['_getChangeFromId'](_0x3ea1f5['changeId']);let _0x159bde;if(_0x309a83['data']['isOnRoot']){const _0x4c0b58=_0x5eb83f['view']['getDomRoot'](_0x309a83['rootName']);_0x159bde=Array['from'](_0x4c0b58['getClientRects']());}else{const _0x4db6b5=this['editor']['model']['markers']['get']('revision:'+_0x3ea1f5['changeId']);_0x159bde=Array['from'](_0x5eb83f['mapper']['markerNameToElements'](_0x4db6b5['name']))['map'](_0x2555dc=>_0x5eb83f['view']['domConverter']['mapViewToDom'](_0x2555dc))['map'](_0x37ec8b=>Array['from'](_0x37ec8b['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x159bde[0x0];return _0x159bde['find'](_0x253e8f=>_0x253e8f['top']-0x3<=this['_activeViewTarget']['y']&&_0x253e8f['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x253e8f['left']-0x3<=this['_activeViewTarget']['x']&&_0x253e8f['right']+0x3>=this['_activeViewTarget']['x'])||_0x159bde[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x2713ec,_0xc476b,_0x41c6b5,_0x57932b)=>{this['activeView']=_0x41c6b5?this['_getViewForChange'](_0x41c6b5):null,this['editor']['model']['change'](()=>{const _0x3d772f=this['editor']['editing'];_0x57932b&&(_0x57932b['data']['isOnRoot']?_0x3d772f['view']['change'](_0x5215cb=>{_0x5215cb['removeClass']('ck-revision-history-root--active',_0x3d772f['view']['document']['getRoot'](_0x57932b['rootName']));}):_0x3d772f['reconvertMarker']('revision:'+_0x57932b['id'])),_0x41c6b5&&(_0x41c6b5['data']['isOnRoot']?_0x3d772f['view']['change'](_0x3aa0d3=>{_0x3aa0d3['addClass']('ck-revision-history-root--active',_0x3d772f['view']['document']['getRoot'](_0x41c6b5['rootName']));}):_0x3d772f['reconvertMarker']('revision:'+_0x41c6b5['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x405522,_0x55074e)=>{if(this['activeChange'])return;const _0x49a7ee=this['_findChangeIdFromDomTarget'](_0x55074e['target']),_0x1ddee8=this['_changeIdToChange']['get'](_0x49a7ee);_0x1ddee8?(this['_activeViewTarget']={'x':_0x55074e['domEvent']['x'],'y':_0x55074e['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x1ddee8)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x837acb,_0x24277a)=>{const _0x2b9a2b=this['_findChangeIdFromDomTarget'](_0x24277a['target']),_0x4fefe6=this['_changeIdToChange']['get'](_0x2b9a2b);_0x4fefe6?(this['_activeViewTarget']={'x':_0x24277a['domEvent']['x'],'y':_0x24277a['domEvent']['y']},_0x4fefe6===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x4fefe6):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x534a08){do{const _0x33dffb=_0x534a08['getAttribute']('data-change-id');if(_0x33dffb)return _0x33dffb;_0x534a08=_0x534a08['parent'];}while(_0x534a08);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x26fd48=>{for(const _0x22742e of this['editor']['model']['markers'])_0x26fd48['removeMarker'](_0x22742e);});}}function Z(_0x488780,_0x58d714){return(_0x2c7803,_0x5042ce,_0x126e2c)=>{if(!_0x126e2c['consumable']['test'](_0x5042ce['markerRange'],_0x2c7803['name']))return;const _0x1a30ff=_0x5042ce['markerRange']['getWalker'](),_0x2b9200=_0x5042ce['markerRange']['start'],_0x494c41=_0x488780['model']['schema'];let _0x3db27c=null,_0x3707a5=null,_0x34802e=!0x1,_0x86cf00=!0x1;for(const _0x362761 of _0x1a30ff){const _0x333d36=_0x362761['item'];_0x34802e=_0x34802e||_0x494c41['isContent'](_0x333d36);const _0x5d9118=_0x126e2c['mapper']['toViewElement'](_0x333d36);if(_0x5d9118&&_0x5d9118['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x362761['type']&&(_0x494c41['isBlock'](_0x333d36)&&!_0x494c41['isLimit'](_0x333d36)&&(_0x333d36['nextSibling']||_0x2b9200['isAtEnd']?_0x3db27c&&_0x3db27c['parent']==_0x333d36||(_0x3db27c=_0x333d36,_0x17e359(_0x362761['previousPosition']),_0x86cf00=!0x0):_0x3707a5=_0x3707a5||_0x362761['previousPosition']));}function _0x17e359(_0x2983ed){const _0x40b5ab=_0x126e2c['mapper']['toViewPosition'](_0x2983ed),_0x1317ea=_0x126e2c['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x58d714});_0x126e2c['writer']['insert'](_0x40b5ab,_0x1317ea),_0x126e2c['mapper']['bindElementToMarker'](_0x1317ea,_0x5042ce['markerName']);}_0x34802e||_0x86cf00||!_0x3707a5||_0x17e359(_0x3707a5);};}class pt extends _0x4cdf46{constructor(_0x143f5e){super(_0x143f5e);const _0x12f219=_0x143f5e['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x12f219,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x12f219,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0xe89a8c=this['editor'],_0x4bbfc1=_0xe89a8c['plugins']['get'](d),_0x54e006=_0x4bbfc1['isReady']?_0x4bbfc1['diff']['newRevisionId']:null;_0xe89a8c['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x54e006);}['refresh'](){const {isReady:_0x516351,isEnabled:_0x5ae64b,repository:_0x23df21,diff:_0x11b39a}=this['editor']['plugins']['get'](d),_0x2693de=_0x11b39a&&_0x23df21['getLaterVisibleRevision'](_0x11b39a['newRevisionId']);this['isEnabled']=_0x516351&&_0x5ae64b&&Boolean(_0x2693de);}}class _t extends _0x4cdf46{['_step'];constructor(_0xdf59ef,{direction:_0x293354}){super(_0xdf59ef);const _0x34e1cb=_0xdf59ef['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x293354?0x1:-0x1,this['listenTo'](_0x34e1cb,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x34e1cb,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x34e1cb,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x570c73=this['editor'],_0x13879b=_0x570c73['plugins']['get'](d),{isNavigationMode:_0x4b06b3,currentChangeNumber:_0x4a34fc}=_0x13879b;let _0x5a2e9c;if(_0x13879b['activeChange']=_0x4b06b3?_0x13879b['diff']['changes']['get'](_0x4a34fc+this['_step']):_0x13879b['diff']['changes']['first'],_0x13879b['activeChange']['data']['isOnRoot'])_0x5a2e9c=_0x570c73['editing']['view']['getDomRoot'](_0x13879b['activeChange']['rootName']);else{const _0x290952=_0x570c73['model']['markers']['get']('revision:'+_0x13879b['activeChange']['id']);_0x5a2e9c=_0x51562f(_0x570c73['editing'],_0x290952);}_0xe65805({'target':_0x5a2e9c,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x560264,currentChangeNumber:_0x568f11,numberOfChanges:_0x43c90a,isReady:_0x1c5015,isEnabled:_0x5e03ae}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x5e03ae&&_0x1c5015&&_0x43c90a)&&(!_0x560264||(0x1===this['_step']?_0x568f11<_0x43c90a-0x1:_0x568f11>0x0));}}class ui extends ts{constructor(_0x216b07){super(_0x216b07);const _0x3f252b=this['bindTemplate'],_0x198809=new te(_0x216b07),_0x379247=new te(_0x216b07);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',(_0x45d103,_0x4cff5b)=>_0x45d103&&_0x4cff5b>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3b6be6,_0x7f03f9,_0x5cf2f4,_0x3465e5)=>{if(!_0x3b6be6)return m(_0x216b07,'Loading...');if(!_0x5cf2f4)return m(_0x216b07,'No\x20changes');const _0x416a12=m(_0x216b07,'NUMBER_OF_CHANGES',_0x5cf2f4);return _0x3465e5?m(_0x216b07,'X_OF_Y_CHANGES',[_0x7f03f9+0x1,_0x5cf2f4]):_0x416a12;}),_0x198809['set']({'label':m(_0x216b07,'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'}),_0x379247['set']({'label':m(_0x216b07,'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'}),_0x198809['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x379247['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x198809['on']('execute',()=>this['fire']('execute','backward')),_0x379247['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',_0x3f252b['if']('_isStatusLabelVisible','ck-hidden',_0x567e75=>!_0x567e75)]},'children':[{'text':_0x3f252b['to']('isNavigationMode',_0x10e18f=>_0x10e18f?m(_0x216b07,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x216b07,'Total')+':\x20')}]},{'text':_0x3f252b['to']('_statusText')}]},new _0x4f56ef(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x198809,_0x379247]}]});}}const le='ck-editor__editable__loading-overlay';class de extends _0x16c53d{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x5bfdf1=this['editor']['editing']['view'];_0x5bfdf1['change'](_0x27fe8b=>{for(const _0x314395 of _0x5bfdf1['document']['roots'])_0x27fe8b['addClass'](le,_0x314395);});}['hide'](){const _0xf8ad95=this['editor']['editing']['view'];_0xf8ad95['change'](_0x37fd85=>{for(const _0x1c86b4 of _0xf8ad95['document']['roots'])_0x37fd85['removeClass'](le,_0x1c86b4);});}}class g extends _0x16c53d{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,de];}['init'](){const _0x326c9e=this['editor'],_0x4671a9=_0x326c9e['plugins']['get'](d),_0x49648a=_0x326c9e['plugins']['get'](de);_0x326c9e['ui']['componentFactory']['add']('exitToEditing',_0x4b3ef8=>{const _0x586662=new te(_0x4b3ef8);return _0x586662['set']({'label':m(_0x4b3ef8,'Back\x20to\x20editing'),'icon':_0x17dc28['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x586662,'execute',()=>{_0x326c9e['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x586662;}),_0x326c9e['ui']['componentFactory']['add']('restoreRevision',_0x4efe06=>{const _0x122c4b=new te(_0x4efe06);return _0x122c4b['set']({'label':m(_0x4efe06,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x122c4b['bind']('isEnabled')['to'](_0x326c9e['commands']['get']('restoreRevision')),this['listenTo'](_0x122c4b,'execute',()=>_0x326c9e['execute']('restoreRevision')),_0x122c4b;}),_0x326c9e['ui']['componentFactory']['add']('changesNavigation',_0x25d2c8=>{const _0x1b1a4d=new ui(_0x25d2c8),_0x1203f2=_0x326c9e['commands']['get']('showPreviousChange'),_0x550c18=_0x326c9e['commands']['get']('showNextChange');return _0x1b1a4d['bind']('isBackwardNavigationEnabled')['to'](_0x1203f2,'isEnabled'),_0x1b1a4d['bind']('isForwardNavigationEnabled')['to'](_0x550c18,'isEnabled'),_0x1b1a4d['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x4671a9),this['listenTo'](_0x1b1a4d,'execute',(_0x436d06,_0x184d51)=>{_0x326c9e['execute']('forward'===_0x184d51?'showNextChange':'showPreviousChange');}),_0x1b1a4d;}),_0x49648a['show'](),_0x4671a9['on']('change:isReady',(_0x53af22,_0x1202f9,_0x2fe164)=>{_0x2fe164?_0x49648a['hide']():_0x49648a['show']();});}}class at extends _0x35acf6{['_resizeObserver']=null;constructor(_0x4ef4ae,_0x48fecf){super(_0x4ef4ae,_0x48fecf);const _0x3e652f=this['bindTemplate'];this['set']({'label':m(_0x4ef4ae,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x4ef4ae,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x3e652f['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 _0x56e5e0=this['fieldView']['element'];this['_tooltipString']=_0x56e5e0['scrollWidth']>_0x56e5e0['clientWidth']&&_0x56e5e0['value']||'';}}class ri extends ts{constructor(_0x1e60e2,_0x275f8a,_0x57a914){super(_0x1e60e2);const _0x457646=new _0x2d38b9();_0x457646['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 _0x27ff3c=['ck','ck-revision-history-sidebar__revision-author'];_0x57a914&&_0x27ff3c['push']('ck-revision-history-sidebar__revision-author_creator');const _0x273ddc=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x1e60e2,_0x57a914?'Revision\x20creator':'Revision\x20author')},'children':[_0x457646,_0x275f8a['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x27ff3c},'children':_0x273ddc});}}function oi(_0x22ec71,_0x53d5df){const _0x5a2380=_0x22ec71['bindTemplate'],_0x39a56d=_0x22ec71['locale'],_0x2331be=_0x2a2bbb(_0x39a56d);_0x2331be['panelPosition']='sw';const _0x4269a9=function(_0x4b8dd9,_0x276b36){const _0x471e60=function(_0x491585,_0x59debb){const _0x216540=_0x491585['locale'],_0xd2ddd={'Compare\x20against\x20selected':m(_0x216540,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x216540,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x216540,'Restore\x20this\x20revision')};return _0x59debb['map'](_0x2ae671=>{const _0x6504b1=_0xd2ddd[_0x2ae671['name']];return _0x6504b1&&_0x6504b1!==_0x2ae671['name']&&(_0x2ae671['name']=_0x6504b1),_0x2ae671;});}(_0x4b8dd9,_0x276b36),_0x197c60=new _0x1ac57c();for(const _0x3a2ca7 of _0x471e60){const _0x35d981={'type':'button','model':new _0x177ff4({'label':_0x3a2ca7['name'],'class':_0x3a2ca7['class'],'withText':!0x0,'role':'menuitem','_action':_0x3a2ca7['action']})};_0x35d981['model']['bind']('isEnabled')['to'](_0x4b8dd9,'isActionsDropdownOpen',_0x103ada=>'function'!=typeof _0x3a2ca7['isEnabled']||(!_0x103ada||_0x3a2ca7['isEnabled'](_0x4b8dd9))),_0x197c60['add'](_0x35d981);}return _0x197c60;}(_0x22ec71,_0x53d5df);return _0x22ec71['bind']('isActionsDropdownOpen')['to'](_0x2331be,'isOpen'),_0x2331be['buttonView']['set']({'label':m(_0x39a56d,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x17dc28['threeVerticalDots']}),_0x2331be['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x5a2380['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x5a2380['to'](_0xc52b92=>_0xc52b92['stopPropagation']())}}),_0x2331be['on']('execute',_0x1d4eab=>{_0x22ec71['isReady']&&'function'==typeof _0x1d4eab['source']['_action']&&_0x1d4eab['source']['_action'](_0x22ec71);}),to(_0x2331be,_0x4269a9,{'role':'menu'}),_0x2331be['listenTo'](_0x22ec71,'change:isActionsDropdownOpen',(_0x172533,_0x5cf302,_0x62b0a1)=>{if(_0x62b0a1)for(const _0x2a248a of _0x2331be['listView']['items']){const _0x447860=_0x2a248a['children']['first'],_0x3eaa18=_0x53d5df['find'](_0x1c1184=>_0x1c1184['action']===_0x447860['_action'])['isVisible'];_0x2a248a['isVisible']=void 0x0===_0x3eaa18||_0x3eaa18(_0x22ec71);}}),_0x2331be;}class hi extends/* #__PURE__ -- @preserve */
26
+ ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x3a4f34,_0xa93d60,_0x541137,_0xf0aa9a){super(_0x3a4f34);const _0x4f30b4=this['bindTemplate'],_0x292652=function(_0x462a03,_0x5c3df7){const _0x2530fe=Array['from'](_0x5c3df7['authors'])['filter'](_0x47fba5=>_0x47fba5!=_0x5c3df7['creator']);return _0x5c3df7['creator']&&_0x2530fe['unshift'](_0x5c3df7['creator']),_0x2530fe['map'](_0x527ab0=>new ri(_0x462a03,_0x527ab0,_0x527ab0==_0x5c3df7['creator']));}(_0x3a4f34,_0xa93d60);this['id']=_0xa93d60['id'],this['_revision']=_0xa93d60,this['_requireRevisionName']=_0xf0aa9a,this['bind']('name','createdAt')['to'](_0xa93d60),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x2d42d1=>{return _0x5ac39f=_0x3a4f34['uiLanguage'],(_0x4a3fcc=_0x2d42d1)['toLocaleDateString'](_0x5ac39f,{'month':'long','day':'numeric'})+',\x20'+_0x4a3fcc['toLocaleTimeString'](_0x5ac39f,{'hour':'numeric','minute':'numeric'});var _0x5ac39f,_0x4a3fcc;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x3a4f34,_0x488b1b),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x17afdb=>_0x17afdb||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x5f34e3,_0x54692b)=>_0x5f34e3&&_0x54692b),this['revisionActionsView']=_0x541137&&_0x541137['length']?oi(this,_0x541137):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x4f30b4['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x4f30b4['if']('isEnabled','ck-disabled',_0x9ebcdc=>!_0x9ebcdc),_0x4f30b4['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x4f30b4['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x4f30b4['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':_0x4f30b4['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':_0x292652}]},this['revisionActionsView']],'on':{'click':_0x4f30b4['to'](_0x28ee9a=>{_0x28ee9a['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x390e91=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x390e91,'change',()=>{this['_requireRevisionName']&&!_0x390e91['value']||this['fire']('setName',{'id':this['id'],'name':_0x390e91['value']}),_0x390e91['value']||(_0x390e91['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(_0x5ead9c,_0x2a4663){const _0x6c5f96=_0x4101e2['fromJSDate'](_0x5ead9c)['setLocale'](_0x2a4663),_0x503cdc=_0x4101e2['local'](),_0x221192=_0x503cdc['minus']({'days':0x1})['startOf']('day');let _0x2cc4e9,_0x1ac4d3;return _0x6c5f96['hasSame'](_0x503cdc,'day')?(_0x2cc4e9=_0x6c5f96['startOf']('day')['toJSDate'](),_0x1ac4d3=_0x6c5f96['toRelativeCalendar']()):_0x6c5f96['hasSame'](_0x221192,'day')?(_0x2cc4e9=_0x221192['toJSDate'](),_0x1ac4d3=_0x6c5f96['toRelativeCalendar']()):_0x6c5f96['hasSame'](_0x503cdc,'week')?(_0x2cc4e9=_0x6c5f96['startOf']('week')['toJSDate'](),_0x1ac4d3=_0x6c5f96['weekdayLong']||''):_0x6c5f96['hasSame'](_0x503cdc,'year')?(_0x2cc4e9=_0x6c5f96['startOf']('month')['toJSDate'](),_0x1ac4d3=_0x6c5f96['monthLong']||''):(_0x2cc4e9=_0x6c5f96['startOf']('year')['toJSDate'](),_0x1ac4d3=String(_0x6c5f96['year'])),{'startDate':_0x2cc4e9,'localizedPeriodName':_0x1ac4d3};}class vi extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x569148,_0x5a2cd4,_0x2c31aa,_0xccb84f){super(_0x569148);const _0x2b079d=mi(_0x5a2cd4,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x5a2cd4,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x2c31aa,this['_requireRevisionName']=_0xccb84f,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':_0x2b079d}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0xd45a3d){const _0x368481=new hi(this['locale'],_0xd45a3d,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x368481);}['removeRevision'](_0x5d252e){const _0x4d8031=this['revisionViews']['find'](_0x5581ec=>_0x5581ec['id']===_0x5d252e['id']);this['revisionViews']['remove'](_0x4d8031);}}class as extends ts{constructor(_0x557579){super(_0x557579);const _0x195997=new _0x2d38b9();_0x195997['content']=_0x17dc28['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x195997,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x557579,'Revision\x20history')]}]});}}class di extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2e5112,_0x471093,_0x56f492,_0x15eea3){super(_0x2e5112);const _0x38e778=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x471093,this['_revisionActions']=_0x56f492,this['_requireRevisionName']=_0x15eea3,this['on']('select',(_0x489588,_0x5b5ade)=>{this['fire']('revisionSelected',_0x5b5ade);}),this['on']('setName',(_0x63dcf2,_0x2fbcfe)=>{this['fire']('revisionSetName',_0x2fbcfe);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x2e5112),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x38e778['if']('isEnabled','ck-disabled',_0x1bc710=>!_0x1bc710)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x4d5499 of this['_revisions'])this['_addRevision'](_0x4d5499);this['_revisions']['on']('add',(_0x376e93,_0x55cf24)=>{this['_addRevision'](_0x55cf24);}),this['_revisions']['on']('remove',(_0x27542e,_0x59d6e1)=>{this['_removeRevision'](_0x59d6e1);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x50b206=>_0x50b206['revisionViews']['map'](_0x1dbe80=>_0x1dbe80))['flat']();}['selectRevision'](_0xa60014){for(const _0x680907 of this['revisionViews'])_0xa60014&&_0xa60014['id']===_0x680907['id']?_0x680907['select']():_0x680907['deselect']();}['highlightRevisions'](_0x1838c6){for(const _0x2d5d3d of this['revisionViews'])_0x1838c6['some'](({id:_0x9afccd})=>_0x9afccd===_0x2d5d3d['id'])?_0x2d5d3d['highlight']():_0x2d5d3d['unhighlight']();}['_addRevision'](_0x21ad8f){const _0x4433ea=mi(_0x21ad8f['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x4f2a47=this['timePeriodViews']['get'](0x0);_0x4f2a47&&_0x4f2a47['startDate']['getTime']()===_0x4433ea['getTime']()||(_0x4f2a47=new vi(this['locale'],_0x4433ea,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x4f2a47)),_0x4f2a47['addRevision'](_0x21ad8f);}['_removeRevision'](_0x41dd3e){const _0x400851=mi(_0x41dd3e['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x400851)['removeRevision'](_0x41dd3e);}['_getTimePeriodViewByStartDate'](_0x2c36f4){return this['timePeriodViews']['find'](_0x3a7eb8=>_0x3a7eb8['startDate']['getTime']()===_0x2c36f4['getTime']());}}class w extends _0x16c53d{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x1d8c31){super(_0x1d8c31),this['_revisionViewer']=_0x1d8c31['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x409c69=this['_revisionsRepository']['_revisions'],_0x824897=this['_createRevisionActions'](),_0x4704a3=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0x409c69,_0x824897,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',(_0x4fc9e6,_0x4ec866)=>{_0x4ec866['revisionViews']['on']('add',(_0x4a5001,_0x49fded)=>{_0x49fded['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)),_0x4704a3['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x3975c9=this['_revisionsRepository']['getRevision'](0x0);if(_0x3975c9){const _0x90683a=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3975c9['id']);this['_revisionViewer']['compare'](_0x3975c9,_0x90683a);}}['_handleRevisionSelected'](_0x4f08c9,_0x8e3abd){const _0x332a04=this['_revisionsRepository']['getRevision'](_0x8e3abd['id']),_0x6db42c=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x332a04['id']);this['_revisionViewer']['compare'](_0x332a04,_0x6db42c);}['_handleRevisionSetName'](_0xddd07f,_0x152e19){this['_revisionsRepository']['getRevision'](_0x152e19['id'])['setName'](_0x152e19['name']);}['_handleDiffChange'](_0x3b4fe5,_0x1d0177,_0x4a4429){const _0x578b6b=this['_revisionsRepository']['getRevisionsInDiff'](_0x4a4429);_0x578b6b['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x578b6b),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x578b6b[0x0]));}['_createRevisionActions'](){const _0x3f7cc3=this['editor'],_0x56ca4f=w['availableRevisionActions'],_0x44862b=_0x3f7cc3['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x44862b['length'])return _0x44862b['map'](_0x32cf9a=>{const _0x3032fe='string'==typeof _0x32cf9a?Object['assign']({},_0x56ca4f[_0x32cf9a]):_0x32cf9a;return _0x3032fe['action']=_0x3032fe['action']['bind'](this,_0x3f7cc3),_0x3032fe['isVisible']&&(_0x3032fe['isVisible']=_0x3032fe['isVisible']['bind'](this,_0x3f7cc3)),_0x3032fe;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x416376},_0x3f0cfb)=>{const _0x57d406=_0x416376['get'](d),_0x17d09b=_0x57d406['repository'];let _0x39ef8c=_0x57d406['diff']['newRevisionId'],_0x30bd3f=_0x3f0cfb['id'];_0x17d09b['getIndex'](_0x39ef8c)>_0x17d09b['getIndex'](_0x30bd3f)&&([_0x39ef8c,_0x30bd3f]=[_0x30bd3f,_0x39ef8c]),_0x57d406['compare'](_0x39ef8c,_0x30bd3f);},'isVisible':({plugins:_0x5e5d2a},_0xed89f3)=>{const _0x31d59b=_0x5e5d2a['get'](d);return!(_0x31d59b['repository']['getRevisionsInDiff'](_0x31d59b['diff'])['length']>0x2)&&!_0xed89f3['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x2f6f99,{id:_0x28d3c2})=>{_0x2f6f99['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x28d3c2);},'isVisible':({plugins:_0x23b5af},_0x2919c9)=>!!_0x23b5af['get'](d)['repository']['getLaterVisibleRevision'](_0x2919c9['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x5c05e3},{id:_0x1e0263,revisionNameView:_0x582bf8})=>{const _0x1bec96=_0x5c05e3['get'](d),_0x2cc65c=_0x1bec96['repository']['getEarlierVisibleRevision'](_0x1e0263);_0x1bec96['compare'](_0x1e0263,_0x2cc65c),_0x582bf8['focus'](),_0x582bf8['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x80d486,_0x3fbca8){super(_0x80d486),this['_view']=_0x3fbca8,this['_toolbarConfig']=ot(_0x80d486['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0xa26a0e){const _0x15fb49=this['editor'],_0x167907=this['view'],_0x24c6e2=_0x15fb49['editing']['view'],_0x8a52ed=_0x167907['editable'],_0x510392=_0x24c6e2['document']['getRoot']();_0x8a52ed['name']=_0x510392['rootName'],_0x167907['render']();const _0x1ce9ab=_0x8a52ed['element'];this['setEditableElement'](_0x8a52ed['name'],_0x1ce9ab),_0x167907['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x24c6e2['attachDomRoot'](_0x1ce9ab),this['_elementReplacer']['replace'](_0xa26a0e,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x494203=this['view'],_0x4de964=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x4de964['detachDomRoot'](_0x494203['editable']['name']),_0x494203['destroy']();}['_initToolbar'](){const _0x5bc7e5=this['view'];_0x5bc7e5['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x5bc7e5['stickyPanel']['limiterElement']=_0x5bc7e5['element'],_0x5bc7e5['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x1d2e55})=>_0x1d2e55),_0x5bc7e5['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x5bc7e5['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x2a5a50,_0x374f0f,_0x55a55a={}){super(_0x2a5a50),this['stickyPanel']=new ut(_0x2a5a50),this['toolbar']=new lt(_0x2a5a50,{'shouldGroupWhenFull':_0x55a55a['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x2a5a50,_0x374f0f);}['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(_0x49a190,_0x26683a){super(_0x26683a),this['sourceElement']=_0x49a190,this['model']['document']['createRoot']();const _0x280766=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x280766);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x1cb835,_0x3795ac){const _0xd5a12e=new this(_0x1cb835,_0x3795ac);return await _0xd5a12e['initPlugins'](),await _0xd5a12e['ui']['init'](_0x1cb835),await _0xd5a12e['data']['init'](_0xd5a12e['config']['get']('initialData')||''),_0xd5a12e['fire']('ready'),_0xd5a12e;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0xf0a0b{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x139bc4){function _0x44e9f8(_0x333c33){return _0x333c33['map'](_0x2397f7=>String['fromCharCode'](_0x2397f7))['join']('');}super(_0x139bc4),this['result']='end',_0x139bc4[_0x44e9f8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x44e9f8([0x76,0x69,0x65,0x77])][_0x44e9f8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x44e9f8([0x61,0x75,0x74,0x6f]),_0x139bc4[_0x44e9f8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x44e9f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x44e9f8([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x44e9f8([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x44e9f8([0x6f,0x6b])});}}class k extends _0xf0a0b{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x530514){if(super(_0x530514),!this['editor']['config']['get']('revisionHistory'))throw new _0x3867aa('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x11b8ca=>this['_showRevisionViewer']({..._0x11b8ca,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x311ef9=>this['_closeRevisionViewer'](_0x311ef9)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x45951c=>this['_restoreRevision'](_0x45951c)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x37a382){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x37a382;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x1b132){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x1b132);}['getRevision'](_0xd944bc){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0xd944bc);}['getRevisions'](_0x5ee30f){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x5ee30f||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x51d5d9=this['editor'],_0x4f1cc5=_0x1a83ae(_0x51d5d9,p),_0x1ca71c=_0x51d5d9['plugins']['get']('RevisionTracker'),_0x408e1b=_0x51d5d9['plugins']['get']('Users')['users'];return _0x4f1cc5['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4f1cc5['lazyRoots'],(_0x4f1cc5['plugins']['push'](Rt,d,g,class extends _0xf0a0b{static get['requires'](){return[d,'Users'];}['init'](){const _0x2aca9d=this['editor']['plugins']['get']('Users');for(const _0x446680 of _0x408e1b)_0x446680['isAnonymous']||_0x2aca9d['getUser'](_0x446680['id'])||_0x2aca9d['addUser'](_0x446680);const _0x3e8456=_0x1ca71c['repository']['getRevisions']();let _0x3fe782=null;const _0xd5bc14=this['editor']['plugins']['get']('RevisionViewer');_0xd5bc14['adapter']=_0x1ca71c['adapter'],_0xd5bc14['bind']('isEnabled')['to'](_0x1ca71c),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x51d5d9,'isReadOnly',_0x550aa4=>!_0x550aa4);for(const _0x5c5503 of _0x3e8456){const _0x556a1a=null===_0x5c5503['creator'];if(_0x556a1a&&_0x5c5503['toVersion']===_0x5c5503['fromVersion'])continue;const _0x3a3af4=_0x5c5503['toJSON']();_0xd5bc14['addRevisionData'](_0x3a3af4,(_0x1350fc,_0x271da8,_0x271b17)=>{if(_0x556a1a){if(_0x3fe782)_0x3fe782['_update'](_0x1350fc,_0x271da8);else{if(!_0x271da8){const _0x3fc4c1=_0x271b17['toJSON']();_0x3fc4c1['id']=_0x4b945d(),_0x1ca71c['saveRevision'](_0x3fc4c1,_0x271b17['toVersion'])['then'](_0x146fdc=>{_0x3fe782=_0x146fdc;});}}}else _0x5c5503['_update'](_0x1350fc,_0x271da8);});}}},w),_0x4f1cc5);}['_enhanceShowRevisionViewerCallback'](){const _0x2490f2=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x191101=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4cf722=this['editor']['plugins']['get']('Autosave');await _0x4cf722['save']();}else await _0x191101['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x230526=this['editor']['plugins']['get']('Dialog');_0x230526['isOpen']&&_0x230526['hide']();}const _0x3dfc20=this['_getRevisionViewerEditorConfig']();return _0x2490f2(_0x3dfc20)['then'](_0xe91fc4=>{return(this['_viewerEditor']=_0xe91fc4,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0xe91fc4;})['catch'](_0x481d1b=>(console['error'](_0x481d1b),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x31a430=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'](),_0x31a430(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x445417=this['editor']['plugins']['get']('Annotations');_0x445417['refreshVisibility'](),_0x445417['refreshPositioning']();}})));}['_showRevisionViewer'](_0x47afb0){const _0x23c51f=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x17b22f=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x1fe2ae=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x1fe2ae,_0x47afb0)['then'](_0x5a90fa=>(_0x17b22f['style']['display']='block',_0x23c51f['style']['display']='none',_0x5a90fa));}['_closeRevisionViewer'](_0x5efa24){const _0x58b9ea=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x58b9ea['style']['display']='',_0x5efa24['destroy']();}async['_restoreRevision'](_0x21cbb6){const _0x540aee=this['editor'],_0x7af44e=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x471a6c=_0x540aee['plugins']['get']('RevisionTracker'),_0x3e5f28=_0x7af44e['repository']['getRevision'](_0x21cbb6);let _0x194906,_0x5e971a,_0x281104;try{_0x194906=await _0x7af44e['getRevisionData'](_0x3e5f28),_0x5e971a=await _0x7af44e['getRevisionRootsAttributes'](_0x3e5f28);}catch(_0x25f3b4){return void console['error'](_0x25f3b4);}_0x540aee['model']['change'](_0x2c8e37=>{for(const _0x33badd of Array['from'](_0x540aee['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x2c8e37['removeMarker'](_0x33badd);}),_0x7af44e['isReady']=!0x1,_0x540aee['model']['enqueueChange'](_0x276a91=>{_0x276a91['setSelection'](null),_0x276a91['removeSelectionAttribute'](_0x540aee['model']['document']['selection']['getAttributeKeys']());const _0x10193a=Object['keys'](_0x194906);for(const _0x214bd7 of _0x540aee['model']['document']['roots'])'$graveyard'!=_0x214bd7['rootName']&&_0x214bd7['isAttached']()&&!_0x10193a['includes'](_0x214bd7['rootName'])&&_0x276a91['detachRoot'](_0x214bd7);for(const _0x4bf90e of _0x10193a){let _0x40f232=_0x540aee['model']['document']['getRoot'](_0x4bf90e);_0x40f232&&_0x40f232['isAttached']()||(_0x40f232=_0x276a91['addRoot'](_0x4bf90e));const _0x2ae552=_0x5e971a[_0x4bf90e],_0x219bf8=Object['keys'](_0x2ae552),_0x64bd04=_0x194906[_0x4bf90e];for(const _0x42d70d of _0x40f232['getAttributeKeys']())_0x219bf8['includes'](_0x42d70d)||_0x276a91['removeAttribute'](_0x42d70d,_0x40f232);for(const _0x108668 of _0x219bf8)_0x276a91['setAttribute'](_0x108668,_0x5e971a[_0x4bf90e][_0x108668],_0x40f232);_0x276a91['remove'](_0x276a91['createRangeIn'](_0x40f232)),_0x276a91['insert'](_0x540aee['data']['parse'](_0x64bd04,_0x40f232),_0x40f232,0x0);}});const _0x473fef=m(_0x540aee['locale'],'Restored');if(_0x3e5f28['name'])_0x281104=-0x1==_0x3e5f28['name']['indexOf'](_0x473fef)?_0x473fef+':\x20'+_0x3e5f28['name']:_0x3e5f28['name'];else _0x281104=_0x473fef+':\x20'+(_0x3e5f28['createdAt']['toLocaleDateString'](_0x540aee['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3e5f28['createdAt']['toLocaleTimeString'](_0x540aee['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x471a6c['saveRevision']({'name':_0x281104}),_0x7af44e['isReady']=!0x0,_0x540aee['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
28
+ yt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0xb7a6df){super(_0xb7a6df),this['_revisionViewer']=_0xb7a6df['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x42e2d8=this['_revisionsRepository']['_revisions'],_0x1ee460=this['_createRevisionActions'](),_0x24b90c=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x42e2d8,_0x1ee460,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',(_0x376d65,_0x156d6e)=>{_0x156d6e['revisionViews']['on']('add',(_0x55143e,_0x3196c5)=>{_0x3196c5['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)),_0x24b90c['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x1c7b34=this['_revisionsRepository']['getRevision'](0x0);if(_0x1c7b34){const _0xa04f6f=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x1c7b34['id']);this['_revisionViewer']['compare'](_0x1c7b34,_0xa04f6f);}}['_handleRevisionSelected'](_0xff50b4,_0x97acde){const _0x5a7e4f=this['_revisionsRepository']['getRevision'](_0x97acde['id']),_0x33b0ac=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x5a7e4f['id']);this['_revisionViewer']['compare'](_0x5a7e4f,_0x33b0ac);}['_handleRevisionSetName'](_0x5609c4,_0x5d6194){this['_revisionsRepository']['getRevision'](_0x5d6194['id'])['setName'](_0x5d6194['name']);}['_handleDiffChange'](_0x427d48,_0x42c977,_0x4751a2){const _0x5a24a5=this['_revisionsRepository']['getRevisionsInDiff'](_0x4751a2);_0x5a24a5['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x5a24a5),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x5a24a5[0x0]));}['_createRevisionActions'](){const _0x14e488=this['editor'],_0x570023=w['availableRevisionActions'],_0x286ab6=_0x14e488['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x286ab6['length'])return _0x286ab6['map'](_0x4839af=>{const _0x259d70='string'==typeof _0x4839af?Object['assign']({},_0x570023[_0x4839af]):_0x4839af;return _0x259d70['action']=_0x259d70['action']['bind'](this,_0x14e488),_0x259d70['isVisible']&&(_0x259d70['isVisible']=_0x259d70['isVisible']['bind'](this,_0x14e488)),_0x259d70;});}}function yt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x148be3},_0xcc352c)=>{const _0x12077e=_0x148be3['get'](d),_0x344dee=_0x12077e['repository'];let _0x2ebb6f=_0x12077e['diff']['newRevisionId'],_0x17fad2=_0xcc352c['id'];_0x344dee['getIndex'](_0x2ebb6f)>_0x344dee['getIndex'](_0x17fad2)&&([_0x2ebb6f,_0x17fad2]=[_0x17fad2,_0x2ebb6f]),_0x12077e['compare'](_0x2ebb6f,_0x17fad2);},'isVisible':({plugins:_0x1078b8},_0x5417c7)=>{const _0x46b3cb=_0x1078b8['get'](d);return!(_0x46b3cb['repository']['getRevisionsInDiff'](_0x46b3cb['diff'])['length']>0x2)&&!_0x5417c7['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x4d4540,{id:_0x2047d7})=>{_0x4d4540['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2047d7);},'isVisible':({plugins:_0x474b7c},_0x4a8276)=>!!_0x474b7c['get'](d)['repository']['getLaterVisibleRevision'](_0x4a8276['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x2351fa},{id:_0x33b662,revisionNameView:_0x836307})=>{const _0x53bab3=_0x2351fa['get'](d),_0x49a462=_0x53bab3['repository']['getEarlierVisibleRevision'](_0x33b662);_0x53bab3['compare'](_0x33b662,_0x49a462),_0x836307['focus'](),_0x836307['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x146460,_0x1abb55){super(_0x146460),this['_view']=_0x1abb55,this['_toolbarConfig']=ot(_0x146460['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x567c30){const _0x2f8b52=this['editor'],_0x253d29=this['view'],_0x245190=_0x2f8b52['editing']['view'],_0x1e4fd3=_0x253d29['editable'],_0x323ff2=_0x245190['document']['getRoot']();_0x1e4fd3['name']=_0x323ff2['rootName'],_0x253d29['render']();const _0x232ab2=_0x1e4fd3['element'];this['setEditableElement'](_0x1e4fd3['name'],_0x232ab2),_0x253d29['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x245190['attachDomRoot'](_0x232ab2),this['_elementReplacer']['replace'](_0x567c30,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x2d8047=this['view'],_0x5cd4c7=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x5cd4c7['detachDomRoot'](_0x2d8047['editable']['name']),_0x2d8047['destroy']();}['_initToolbar'](){const _0x574293=this['view'];_0x574293['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x574293['stickyPanel']['limiterElement']=_0x574293['element'],_0x574293['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x2fb563})=>_0x2fb563),_0x574293['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x574293['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x17036a,_0xad5560,_0x12d6ea={}){super(_0x17036a),this['stickyPanel']=new ut(_0x17036a),this['toolbar']=new lt(_0x17036a,{'shouldGroupWhenFull':_0x12d6ea['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x17036a,_0xad5560);}['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(_0x4e2593,_0x5a88ad){super(_0x5a88ad),this['sourceElement']=_0x4e2593,this['model']['document']['createRoot']();const _0x1d3780=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x1d3780);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x55dbfe,_0x360523){const _0x1db605=new this(_0x55dbfe,_0x360523);return await _0x1db605['initPlugins'](),await _0x1db605['ui']['init'](_0x55dbfe),await _0x1db605['data']['init'](_0x1db605['config']['get']('initialData')||''),_0x1db605['fire']('ready'),_0x1db605;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class bt extends _0x16c53d{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x478937){function _0x5b4634(_0x4e9f37){return _0x4e9f37['map'](_0x5f517c=>String['fromCharCode'](_0x5f517c))['join']('');}super(_0x478937),this['result']='end',_0x478937[_0x5b4634([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5b4634([0x76,0x69,0x65,0x77])][_0x5b4634([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5b4634([0x61,0x75,0x74,0x6f]),_0x478937[_0x5b4634([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5b4634([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5b4634([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5b4634([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5b4634([0x6f,0x6b])});}}class k extends _0x16c53d{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x85bf04){if(super(_0x85bf04),!this['editor']['config']['get']('revisionHistory'))throw new _0xb8dc66('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x292434=>this['_showRevisionViewer']({..._0x292434,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x34fbd7=>this['_closeRevisionViewer'](_0x34fbd7)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x1c7c38=>this['_restoreRevision'](_0x1c7c38)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x23d78a){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x23d78a;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x7e3e26){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x7e3e26);}['getRevision'](_0x2596e5){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x2596e5);}['getRevisions'](_0x21d8f1){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x21d8f1||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x1bd10a=this['editor'],_0x563d81=_0x36d947(_0x1bd10a,p),_0x2bfe77=_0x1bd10a['plugins']['get']('RevisionTracker'),_0x129534=_0x1bd10a['plugins']['get']('Users')['users'];return _0x563d81['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x563d81['lazyRoots'],(_0x563d81['plugins']['push'](bt,d,g,class extends _0x16c53d{static get['requires'](){return[d,'Users'];}['init'](){const _0x40e225=this['editor']['plugins']['get']('Users');for(const _0x19f6bf of _0x129534)_0x19f6bf['isAnonymous']||_0x40e225['getUser'](_0x19f6bf['id'])||_0x40e225['addUser'](_0x19f6bf);const _0x462305=_0x2bfe77['repository']['getRevisions']();let _0x569724=null;const _0x4f2875=this['editor']['plugins']['get']('RevisionViewer');_0x4f2875['adapter']=_0x2bfe77['adapter'],_0x4f2875['bind']('isEnabled')['to'](_0x2bfe77),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x1bd10a,'isReadOnly',_0x2a9761=>!_0x2a9761);for(const _0x3cc531 of _0x462305){const _0x4629c4=null===_0x3cc531['creator'];if(_0x4629c4&&_0x3cc531['toVersion']===_0x3cc531['fromVersion'])continue;const _0x32c85b=_0x3cc531['toJSON']();_0x4f2875['addRevisionData'](_0x32c85b,(_0x51129e,_0x696b52,_0x5a0ff5)=>{if(_0x4629c4){if(_0x569724)_0x569724['_update'](_0x51129e,_0x696b52);else{if(!_0x696b52){const _0x5cfe34=_0x5a0ff5['toJSON']();_0x5cfe34['id']=_0x5572ec(),_0x2bfe77['saveRevision'](_0x5cfe34,_0x5a0ff5['toVersion'])['then'](_0x16d520=>{_0x569724=_0x16d520;});}}}else _0x3cc531['_update'](_0x51129e,_0x696b52);});}}},w),_0x563d81);}['_enhanceShowRevisionViewerCallback'](){const _0x54adf0=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x44bb51=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x324f03=this['editor']['plugins']['get']('Autosave');await _0x324f03['save']();}else await _0x44bb51['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x221b0e=this['editor']['plugins']['get']('Dialog');_0x221b0e['isOpen']&&_0x221b0e['hide']();}const _0x3924da=this['_getRevisionViewerEditorConfig']();return _0x54adf0(_0x3924da)['then'](_0x329a3e=>{return(this['_viewerEditor']=_0x329a3e,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x329a3e;})['catch'](_0x135adc=>(console['error'](_0x135adc),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x38f2f5=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'](),_0x38f2f5(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x5b6e01=this['editor']['plugins']['get']('Annotations');_0x5b6e01['refreshVisibility'](),_0x5b6e01['refreshPositioning']();}})));}['_showRevisionViewer'](_0x5d8ed9){const _0x37d829=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x2e2c58=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x3347ca=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x3347ca,_0x5d8ed9)['then'](_0x42b9d0=>(_0x2e2c58['style']['display']='block',_0x37d829['style']['display']='none',_0x42b9d0));}['_closeRevisionViewer'](_0x51e79e){const _0x505caa=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x505caa['style']['display']='',_0x51e79e['destroy']();}async['_restoreRevision'](_0x174cbe){const _0x3f1064=this['editor'],_0x3b7717=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x1173f0=_0x3f1064['plugins']['get']('RevisionTracker'),_0x22b527=_0x3b7717['repository']['getRevision'](_0x174cbe);let _0x2a1505,_0x3828b9,_0x241f4f;try{_0x2a1505=await _0x3b7717['getRevisionData'](_0x22b527),_0x3828b9=await _0x3b7717['getRevisionRootsAttributes'](_0x22b527);}catch(_0x5dbef4){return void console['error'](_0x5dbef4);}_0x3f1064['model']['change'](_0x54dc8f=>{for(const _0x60249 of Array['from'](_0x3f1064['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x54dc8f['removeMarker'](_0x60249);}),_0x3b7717['isReady']=!0x1,_0x3f1064['model']['enqueueChange'](_0x33cb93=>{_0x33cb93['setSelection'](null),_0x33cb93['removeSelectionAttribute'](_0x3f1064['model']['document']['selection']['getAttributeKeys']());const _0x52b846=Object['keys'](_0x2a1505);for(const _0x39ad7b of _0x3f1064['model']['document']['roots'])'$graveyard'!=_0x39ad7b['rootName']&&_0x39ad7b['isAttached']()&&!_0x52b846['includes'](_0x39ad7b['rootName'])&&_0x33cb93['detachRoot'](_0x39ad7b);for(const _0x51f66f of _0x52b846){let _0x1a220a=_0x3f1064['model']['document']['getRoot'](_0x51f66f);_0x1a220a&&_0x1a220a['isAttached']()||(_0x1a220a=_0x33cb93['addRoot'](_0x51f66f));const _0x433f0a=_0x3828b9[_0x51f66f],_0x30a371=Object['keys'](_0x433f0a),_0x496226=_0x2a1505[_0x51f66f];for(const _0x19653c of _0x1a220a['getAttributeKeys']())_0x30a371['includes'](_0x19653c)||_0x33cb93['removeAttribute'](_0x19653c,_0x1a220a);for(const _0x7922dd of _0x30a371)_0x33cb93['setAttribute'](_0x7922dd,_0x3828b9[_0x51f66f][_0x7922dd],_0x1a220a);_0x33cb93['remove'](_0x33cb93['createRangeIn'](_0x1a220a)),_0x33cb93['insert'](_0x3f1064['data']['parse'](_0x496226,_0x1a220a),_0x1a220a,0x0);}});const _0x1efccf=m(_0x3f1064['locale'],'Restored');if(_0x22b527['name'])_0x241f4f=-0x1==_0x22b527['name']['indexOf'](_0x1efccf)?_0x1efccf+':\x20'+_0x22b527['name']:_0x22b527['name'];else _0x241f4f=_0x1efccf+':\x20'+(_0x22b527['createdAt']['toLocaleDateString'](_0x3f1064['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x22b527['createdAt']['toLocaleTimeString'](_0x3f1064['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x1173f0['saveRevision']({'name':_0x241f4f}),_0x3b7717['isReady']=!0x0,_0x3f1064['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,de as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};